Conversation
Adds code-mode packages (ai-code-mode, ai-code-mode-skills, ai-isolate-*), example app, tool registry, and devtools code-mode tab. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # .gitignore # knip.json # package.json # pnpm-lock.yaml
|
Important Review skippedToo many files! This PR contains 212 files, which is 62 over the limit of 150. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (212)
You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 48de0b4
☁️ Nx Cloud last updated this comment at |
@tanstack/ai
@tanstack/ai-anthropic
@tanstack/ai-client
@tanstack/ai-code-mode
@tanstack/ai-code-mode-skills
@tanstack/ai-devtools-core
@tanstack/ai-elevenlabs
@tanstack/ai-event-client
@tanstack/ai-fal
@tanstack/ai-gemini
@tanstack/ai-grok
@tanstack/ai-groq
@tanstack/ai-isolate-cloudflare
@tanstack/ai-isolate-node
@tanstack/ai-isolate-quickjs
@tanstack/ai-ollama
@tanstack/ai-openai
@tanstack/ai-openrouter
@tanstack/ai-preact
@tanstack/ai-react
@tanstack/ai-react-ui
@tanstack/ai-solid
@tanstack/ai-solid-ui
@tanstack/ai-svelte
@tanstack/ai-vue
@tanstack/ai-vue-ui
@tanstack/preact-ai-devtools
@tanstack/react-ai-devtools
@tanstack/solid-ai-devtools
commit: |
md-to-pdf depends on marked@4 which lacks npm provenance, failing the CI provenance check. Use puppeteer (already a dep) + marked@15 directly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # examples/ts-code-mode-web/src/routes/_npm-github-chat/api.generate-pdf.ts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
# Conflicts: # packages/typescript/ai/src/index.ts
🦋 Changeset detectedLatest commit: 48de0b4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 34 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Add a new demo route for database code tools using an in-memory database with three tables: customers (10 rows), products (10 rows), and purchases (25 rows). Includes two simple tools - queryTable for filtering/sorting/ selecting data and getSchemaInfo for introspection. Supports both Code Mode (execute_typescript) and regular tool-calling modes. https://claude.ai/code/session_012K7mAaWtcw5ZCGPcs88zmm
… for database demo - Add Opus-powered judge API that compares responses against gold-standard results using structured output - Add JSON export button for message arrays - Fix three-column layout so sidebars don't get pushed off screen - Remove duplicate "Try These" from left sidebar - Expose getSchemaInfo as both a code-mode and direct LLM tool - Rename nav item to "Database Demo" and move to second position Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| * import { createCodeModeToolAndPrompt } from '@tanstack/ai-code-mode' | ||
| * import { createNodeIsolateDriver } from '@tanstack/ai-isolate-node' | ||
| * | ||
| * const { tool, systemPrompt } = createCodeModeToolAndPrompt({ |
| * }) | ||
| * ``` | ||
| */ | ||
| export function createCodeModeToolAndPrompt(config: CodeModeToolConfig) { |
There was a problem hiding this comment.
I think we should just call this createCodeMode
🎯 Changes
Provides a tool that can execute TypeScript in an isolate container that has injected tools. Has dramatic benefits in token efficiency and overall accuracy.
✅ Checklist
pnpm run test:pr.🚀 Release Impact