Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-04-07 13:39:17 +02:00
|
|
|
|
2026-04-17 12:19:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-04-07 13:39:17 +02:00
|
|
|
|
|
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-08-07 05:18:02 -07:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs: consolidate quick starts and sort guides by build path (#1274)
* docs: reorder sidebar, split streaming, and use install tabs
Put Guides in build-path order (chat first). Split streaming into stream
events and message queue. Replace stacked npm/pnpm/yarn fences with
package-manager tabs, including Octane.
* docs: consolidate quick starts and raise structured outputs
One Quick Start page switches client snippets with the selected
framework. Vue, Svelte, Angular, and Octane pages redirect into it.
Structured Outputs sits after Chat in the Guides sidebar.
* docs: put middleware after tools and sort guides by build path
Guides now follow the chat path: stream, structured output, tools,
middleware, interrupts, then MCP. Chat children start with the stream
and leave queueing last.
2026-08-31 18:43:31 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
docs: consolidate quick starts and sort guides by build path (#1274)
* docs: reorder sidebar, split streaming, and use install tabs
Put Guides in build-path order (chat first). Split streaming into stream
events and message queue. Replace stacked npm/pnpm/yarn fences with
package-manager tabs, including Octane.
* docs: consolidate quick starts and raise structured outputs
One Quick Start page switches client snippets with the selected
framework. Vue, Svelte, Angular, and Octane pages redirect into it.
Structured Outputs sits after Chat in the Guides sidebar.
* docs: put middleware after tools and sort guides by build path
Guides now follow the chat path: stream, structured output, tools,
middleware, interrupts, then MCP. Chat children start with the stream
and leave queueing last.
2026-08-31 18:43:31 +10:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
docs: consolidate quick starts and sort guides by build path (#1274)
* docs: reorder sidebar, split streaming, and use install tabs
Put Guides in build-path order (chat first). Split streaming into stream
events and message queue. Replace stacked npm/pnpm/yarn fences with
package-manager tabs, including Octane.
* docs: consolidate quick starts and raise structured outputs
One Quick Start page switches client snippets with the selected
framework. Vue, Svelte, Angular, and Octane pages redirect into it.
Structured Outputs sits after Chat in the Guides sidebar.
* docs: put middleware after tools and sort guides by build path
Guides now follow the chat path: stream, structured output, tools,
middleware, interrupts, then MCP. Chat children start with the stream
and leave queueing last.
2026-08-31 18:43:31 +10:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
docs: consolidate quick starts and sort guides by build path (#1274)
* docs: reorder sidebar, split streaming, and use install tabs
Put Guides in build-path order (chat first). Split streaming into stream
events and message queue. Replace stacked npm/pnpm/yarn fences with
package-manager tabs, including Octane.
* docs: consolidate quick starts and raise structured outputs
One Quick Start page switches client snippets with the selected
framework. Vue, Svelte, Angular, and Octane pages redirect into it.
Structured Outputs sits after Chat in the Guides sidebar.
* docs: put middleware after tools and sort guides by build path
Guides now follow the chat path: stream, structured output, tools,
middleware, interrupts, then MCP. Chat children start with the stream
and leave queueing last.
2026-08-31 18:43:31 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
feat(ai-isolate): add native QuickJS Code Mode isolate driver for Bun (#750)
* feat(ai-isolate): add native QuickJS Code Mode isolate driver for Bun
Adds @tanstack/ai-isolate-quickjs-bun, a Code Mode IsolateDriver that
runs QuickJS natively on the Bun runtime via bun:ffi (through
quickjs-bun) instead of WebAssembly. It is a drop-in replacement for
@tanstack/ai-isolate-quickjs on Bun servers.
- Per-context native QuickJS runtime with its own memory/stack/timeout
limits; contexts execute independently (the WASM driver serializes all
executions through one asyncified module).
- Same JSON tool-call protocol, console prefixes, and normalized
MemoryLimit/StackOverflowError/DisposedError contract as the other
drivers, plus a normalized TimeoutError for deadline expiry.
- maxToolCalls (default 1000) and conosle log caps to bound stack and
memory growth from untrusted snadbox code.
- Requires Bun >= 1.3.14; throws an error on Node.js.
Unit tests mirror the WASM/Node suites and run under `bun test`; the
Node-side rejection test runs in normal CI. Docs, the ai-code-mode
README + skill, and the code-mode example have been updated.
* fix: docs/code-mode/code-mode-isolates.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix(ai-isolate-quickjs-bun): address review feedback
Correctness:
- Classify fatal OOM/stack-limit errors thrown as Error *objects* (not just
bare-null) as fatal so an exhausted VM is released, not reused, by routing
the recovered name/message back through normalizeError.
- When vm.dump throws while materializing a tool call's args (sandbox heap
exhausted), surface it via hostSettleError and abandon the call instead of
running the host tool with empty {} args.
- Drain the QuickJS job queue between runs so a prior aborted/timed-out
execution's queued promise reactions can't bleed their output, tool-call
budget, or wall-clock into the next execution (+ regression test).
- Rename MAX_LOG_BYTES/logBytes -> MAX_LOG_CHARS/logChars to match the actual
UTF-16 code-unit measure.
Docs / metadata:
- Close the unterminated YAML frontmatter in code-mode-isolates.md, fix the
broken `external_*` inline code, and add the missing maxToolCalls option row.
- Soften the isolate-driver "fully isolated from the host" wording: this is an
in-process bun:ffi VM, not an OS/VM sandbox boundary.
- Fill in package.json author/homepage/bugs/funding; pin quickjs-bun exactly
and document the pre-1.0 supply-chain/compat caveat in the README + changeset.
- Convert the package's stray eslint scripts to oxlint (repo convention; also
brings its source under the CI lint gate and clears knip).
- Document that the full behavioral suite is Bun-only (test:bun).
Example:
- Gate the "QuickJS Bun" sidebar option honestly: create-isolate-driver falls
back to QuickJS (WASM) with a warning when not running under Bun, and the
option description states the requirement.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(ai-isolate-quickjs-bun): run the Bun-gated test suite in CI
The driver's substantive suite (escape attempts, timeouts, memory limits,
maxToolCalls, concurrency) is gated behind `describe.skipIf(typeof Bun ===
'undefined')` and only runs under Bun. The Node PR job exercised only the
"rejects on Node.js" case, leaving that behavior unverified in CI.
Add a separate, path-filtered `Bun Tests` workflow that installs Bun, builds
the package's workspace dependencies via nx (`@tanstack/ai-code-mode` is a
runtime peer dep), and runs `test:bun`. Path-filtered to the package so it
stays off unrelated PRs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(workspace): stop @types/bun from polluting other packages' global types
Adding @types/bun as a devDependency of @tanstack/ai-isolate-quickjs-bun let
pnpm hoist it into the shared virtual store (node_modules/.pnpm/node_modules),
where it became resolvable workspace-wide. Unrelated deps in the nitro/SSR
stack (srvx, crossws) carry phantom `import "bun"` type statements that
previously no-op'd; once @types/bun was reachable they resolved to it and
pulled bun-types into every dependent's `tsc` run. bun-types globally
redeclares `fetch` with `init: RequestInit | BunFetchRequestInit`, dropping the
DOM `preconnect` member, which broke `@tanstack/sandbox-web-example:test:types`
(and any other app using `typeof fetch`).
Exclude @types/bun from the shared hoist so only its direct dependent resolves
it via its own node_modules symlink. quickjs-bun still type-checks, builds, and
passes its Bun test suite; sandbox-web no longer pulls in bun-types.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(ai-isolate-quickjs-bun): make Bun isolate work under Vite/Start demos
Load quickjs-bun via Bun-aware path resolution and a host-native dynamic
import so Vite's module runner no longer fails package exports or inlines
bun:ffi sources. Add CODE_MODE_BUN/dev:bun for ts-code-mode-web (default
VM quickjs-bun, Nitro bun preset, SSR-only bun resolve conditions), runtime
sidebar warnings, and richer execute_typescript tracing (phase, stack,
execution_finished events).
* refactor(ts-code-mode-web): simplify Bun Vite config
Drop the quickjs-bun path walker/plugin/alias. Keep the working pattern:
browser-only client resolve conditions, bun on SSR only, externalize
quickjs-bun + the isolate driver, and CODE_MODE_BUN/Nitro bun preset.
* ci: apply automated fixes
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Tom Beckenham <34339192+tombeckenham@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-07 17:05:31 +08:00
|
|
|
|
docs: consolidate quick starts and sort guides by build path (#1274)
* docs: reorder sidebar, split streaming, and use install tabs
Put Guides in build-path order (chat first). Split streaming into stream
events and message queue. Replace stacked npm/pnpm/yarn fences with
package-manager tabs, including Octane.
* docs: consolidate quick starts and raise structured outputs
One Quick Start page switches client snippets with the selected
framework. Vue, Svelte, Angular, and Octane pages redirect into it.
Structured Outputs sits after Chat in the Guides sidebar.
* docs: put middleware after tools and sort guides by build path
Guides now follow the chat path: stream, structured output, tools,
middleware, interrupts, then MCP. Chat children start with the stream
and leave queueing last.
2026-08-31 18:43:31 +10:00
|
|
|
|
2026-08-07 05:18:02 -07:00
|
|
|
|
docs: consolidate quick starts and sort guides by build path (#1274)
* docs: reorder sidebar, split streaming, and use install tabs
Put Guides in build-path order (chat first). Split streaming into stream
events and message queue. Replace stacked npm/pnpm/yarn fences with
package-manager tabs, including Octane.
* docs: consolidate quick starts and raise structured outputs
One Quick Start page switches client snippets with the selected
framework. Vue, Svelte, Angular, and Octane pages redirect into it.
Structured Outputs sits after Chat in the Guides sidebar.
* docs: put middleware after tools and sort guides by build path
Guides now follow the chat path: stream, structured output, tools,
middleware, interrupts, then MCP. Chat children start with the stream
and leave queueing last.
2026-08-31 18:43:31 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci(docs): type-check doc code samples with kiira (#805)
* ci(docs): type-check doc code samples with kiira
Add kiira to type-check the TS/TSX/JS/JSX code fences in /docs against the
real package APIs, and wire it into the CI quality gate so doc examples
can't drift from the SDK.
- Add kiira devDependency + kiira.config.ts: checks docs/**/*.md, excludes
the auto-generated docs/reference/**, enables the JSX runtime per
framework, and provides an `ambient` fixture for illustrative
messages/message values. No tsconfig.docs.json.
- Add `test:kiira` script; include it in the test:pr/test:ci nx target
lists, nx.includedScripts, and an nx cache target (nx.json).
- knip: ignore kiira.config.ts (consumed by the kiira binary, not imported).
- Fix the type errors kiira surfaced across 81 docs: add missing imports,
group continuation fences, import arbitrary placeholders from relative
modules, and fix real API drift (e.g. toolDefinition now requires
`description`, ContentPartUrlSource uses `value`, chat passes tools via
`tools`/modelOptions). Genuinely un-checkable fences (competitor SDKs,
uninstalled community adapters, framework route-registration boilerplate)
are marked `ignore`.
* ci: apply automated fixes
* fix(docs): exclude Angular docs from kiira (ng-packagr entry not source-resolvable)
@tanstack/ai-angular ships only dist/types/*.d.ts (ng-packagr), which kiira's
dist->src resolution heuristic can't map to a source file, so its docs only
type-check against the built bundle. That isn't available during a source-based
docs check (and a docs-only PR builds nothing), so kiira failed on
@tanstack/ai-angular imports in CI. Exclude the two Angular docs until the
package exposes a source-resolvable entry.
* docs(kiira): use real minimal setup instead of declare/ambient/group-rename
Refine the doc snippets per review:
- Remove the ambient fixture and every `declare const`; show real minimal
setup instead (extract messages from the request in a server endpoint, a
minimal messages literal, import+create an adapter, define/import tools).
- Isolate snippets that were grouped only to share state via renamed
duplicates (client/client1, stream/stream2, chatSSE/chatHTTP, adapter
variants) — each fence now stands alone with natural names, importing shared
setup from a relative module where needed.
- Drop callback return-type annotations added only to satisfy the checker;
set noImplicitReturns:false for doc snippets so partial control flow in
illustrative callbacks is fine.
- Replace remaining gpt-4o usages touched along the way with current model ids.
Kiira: 596 snippets pass, 0 fail (more snippets now actually checked, fewer
ignored).
* docs(kiira): inline tool definitions so client tool input infers (no input: any)
The framework-hook examples imported tool definitions from an unresolved
relative module, so .client() callbacks fell back to (input: any). Define the
toolDefinition() inline (name + description + inputSchema) so the callback param
infers from the schema — the tools are fully type-safe, the any was masking a
missing definition.
* chore(lessons): capture kiira doc-snippet authoring + CI-setup lessons
* docs(kiira): infer tool callback input from inline schema (drop hand-typed params)
* ci: apply automated fixes
* docs(kiira): type-check third-party libs via externalPackages (kiira 0.5.0)
Upgrade kiira to 0.5.0 and declare the third-party packages the docs import
(Vercel AI SDK, openai, arktype/valibot, redis/pino/@opentelemetry/api/express/
hono, @modelcontextprotocol/sdk, and the community adapters) under
externalPackages, so kiira installs them into an isolated cache and type-checks
against the real types instead of ignoring those fences. Un-ignored ~67 fences
across migration/comparison, community-adapters, advanced (redis/pino/otel),
mcp, structured-outputs, and server quick-starts -- catching real API drift in
the examples along the way. Remaining ignores are genuine: removed/old TanStack
APIs in before-code, framework route boilerplate, MCP/cencori subpath exports
kiira's external resolver can't map yet, and a couple of pseudo-code blocks.
Kiira: 663 snippets pass, 0 fail, 147 ignored (was 596 / 214).
* docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the
externalPackages cache copy in CI (TS7016). Drop express/@types/express from
externalPackages and re-ignore the two express server snippets.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 08:38:42 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci(docs): type-check doc code samples with kiira (#805)
* ci(docs): type-check doc code samples with kiira
Add kiira to type-check the TS/TSX/JS/JSX code fences in /docs against the
real package APIs, and wire it into the CI quality gate so doc examples
can't drift from the SDK.
- Add kiira devDependency + kiira.config.ts: checks docs/**/*.md, excludes
the auto-generated docs/reference/**, enables the JSX runtime per
framework, and provides an `ambient` fixture for illustrative
messages/message values. No tsconfig.docs.json.
- Add `test:kiira` script; include it in the test:pr/test:ci nx target
lists, nx.includedScripts, and an nx cache target (nx.json).
- knip: ignore kiira.config.ts (consumed by the kiira binary, not imported).
- Fix the type errors kiira surfaced across 81 docs: add missing imports,
group continuation fences, import arbitrary placeholders from relative
modules, and fix real API drift (e.g. toolDefinition now requires
`description`, ContentPartUrlSource uses `value`, chat passes tools via
`tools`/modelOptions). Genuinely un-checkable fences (competitor SDKs,
uninstalled community adapters, framework route-registration boilerplate)
are marked `ignore`.
* ci: apply automated fixes
* fix(docs): exclude Angular docs from kiira (ng-packagr entry not source-resolvable)
@tanstack/ai-angular ships only dist/types/*.d.ts (ng-packagr), which kiira's
dist->src resolution heuristic can't map to a source file, so its docs only
type-check against the built bundle. That isn't available during a source-based
docs check (and a docs-only PR builds nothing), so kiira failed on
@tanstack/ai-angular imports in CI. Exclude the two Angular docs until the
package exposes a source-resolvable entry.
* docs(kiira): use real minimal setup instead of declare/ambient/group-rename
Refine the doc snippets per review:
- Remove the ambient fixture and every `declare const`; show real minimal
setup instead (extract messages from the request in a server endpoint, a
minimal messages literal, import+create an adapter, define/import tools).
- Isolate snippets that were grouped only to share state via renamed
duplicates (client/client1, stream/stream2, chatSSE/chatHTTP, adapter
variants) — each fence now stands alone with natural names, importing shared
setup from a relative module where needed.
- Drop callback return-type annotations added only to satisfy the checker;
set noImplicitReturns:false for doc snippets so partial control flow in
illustrative callbacks is fine.
- Replace remaining gpt-4o usages touched along the way with current model ids.
Kiira: 596 snippets pass, 0 fail (more snippets now actually checked, fewer
ignored).
* docs(kiira): inline tool definitions so client tool input infers (no input: any)
The framework-hook examples imported tool definitions from an unresolved
relative module, so .client() callbacks fell back to (input: any). Define the
toolDefinition() inline (name + description + inputSchema) so the callback param
infers from the schema — the tools are fully type-safe, the any was masking a
missing definition.
* chore(lessons): capture kiira doc-snippet authoring + CI-setup lessons
* docs(kiira): infer tool callback input from inline schema (drop hand-typed params)
* ci: apply automated fixes
* docs(kiira): type-check third-party libs via externalPackages (kiira 0.5.0)
Upgrade kiira to 0.5.0 and declare the third-party packages the docs import
(Vercel AI SDK, openai, arktype/valibot, redis/pino/@opentelemetry/api/express/
hono, @modelcontextprotocol/sdk, and the community adapters) under
externalPackages, so kiira installs them into an isolated cache and type-checks
against the real types instead of ignoring those fences. Un-ignored ~67 fences
across migration/comparison, community-adapters, advanced (redis/pino/otel),
mcp, structured-outputs, and server quick-starts -- catching real API drift in
the examples along the way. Remaining ignores are genuine: removed/old TanStack
APIs in before-code, framework route boilerplate, MCP/cencori subpath exports
kiira's external resolver can't map yet, and a couple of pseudo-code blocks.
Kiira: 663 snippets pass, 0 fail, 147 ignored (was 596 / 214).
* docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the
externalPackages cache copy in CI (TS7016). Drop express/@types/express from
externalPackages and re-ignore the two express server snippets.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 08:38:42 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci(docs): type-check doc code samples with kiira (#805)
* ci(docs): type-check doc code samples with kiira
Add kiira to type-check the TS/TSX/JS/JSX code fences in /docs against the
real package APIs, and wire it into the CI quality gate so doc examples
can't drift from the SDK.
- Add kiira devDependency + kiira.config.ts: checks docs/**/*.md, excludes
the auto-generated docs/reference/**, enables the JSX runtime per
framework, and provides an `ambient` fixture for illustrative
messages/message values. No tsconfig.docs.json.
- Add `test:kiira` script; include it in the test:pr/test:ci nx target
lists, nx.includedScripts, and an nx cache target (nx.json).
- knip: ignore kiira.config.ts (consumed by the kiira binary, not imported).
- Fix the type errors kiira surfaced across 81 docs: add missing imports,
group continuation fences, import arbitrary placeholders from relative
modules, and fix real API drift (e.g. toolDefinition now requires
`description`, ContentPartUrlSource uses `value`, chat passes tools via
`tools`/modelOptions). Genuinely un-checkable fences (competitor SDKs,
uninstalled community adapters, framework route-registration boilerplate)
are marked `ignore`.
* ci: apply automated fixes
* fix(docs): exclude Angular docs from kiira (ng-packagr entry not source-resolvable)
@tanstack/ai-angular ships only dist/types/*.d.ts (ng-packagr), which kiira's
dist->src resolution heuristic can't map to a source file, so its docs only
type-check against the built bundle. That isn't available during a source-based
docs check (and a docs-only PR builds nothing), so kiira failed on
@tanstack/ai-angular imports in CI. Exclude the two Angular docs until the
package exposes a source-resolvable entry.
* docs(kiira): use real minimal setup instead of declare/ambient/group-rename
Refine the doc snippets per review:
- Remove the ambient fixture and every `declare const`; show real minimal
setup instead (extract messages from the request in a server endpoint, a
minimal messages literal, import+create an adapter, define/import tools).
- Isolate snippets that were grouped only to share state via renamed
duplicates (client/client1, stream/stream2, chatSSE/chatHTTP, adapter
variants) — each fence now stands alone with natural names, importing shared
setup from a relative module where needed.
- Drop callback return-type annotations added only to satisfy the checker;
set noImplicitReturns:false for doc snippets so partial control flow in
illustrative callbacks is fine.
- Replace remaining gpt-4o usages touched along the way with current model ids.
Kiira: 596 snippets pass, 0 fail (more snippets now actually checked, fewer
ignored).
* docs(kiira): inline tool definitions so client tool input infers (no input: any)
The framework-hook examples imported tool definitions from an unresolved
relative module, so .client() callbacks fell back to (input: any). Define the
toolDefinition() inline (name + description + inputSchema) so the callback param
infers from the schema — the tools are fully type-safe, the any was masking a
missing definition.
* chore(lessons): capture kiira doc-snippet authoring + CI-setup lessons
* docs(kiira): infer tool callback input from inline schema (drop hand-typed params)
* ci: apply automated fixes
* docs(kiira): type-check third-party libs via externalPackages (kiira 0.5.0)
Upgrade kiira to 0.5.0 and declare the third-party packages the docs import
(Vercel AI SDK, openai, arktype/valibot, redis/pino/@opentelemetry/api/express/
hono, @modelcontextprotocol/sdk, and the community adapters) under
externalPackages, so kiira installs them into an isolated cache and type-checks
against the real types instead of ignoring those fences. Un-ignored ~67 fences
across migration/comparison, community-adapters, advanced (redis/pino/otel),
mcp, structured-outputs, and server quick-starts -- catching real API drift in
the examples along the way. Remaining ignores are genuine: removed/old TanStack
APIs in before-code, framework route boilerplate, MCP/cencori subpath exports
kiira's external resolver can't map yet, and a couple of pseudo-code blocks.
Kiira: 663 snippets pass, 0 fail, 147 ignored (was 596 / 214).
* docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the
externalPackages cache copy in CI (TS7016). Drop express/@types/express from
externalPackages and re-ignore the two express server snippets.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 08:38:42 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
2026-04-07 13:39:17 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
ci(docs): type-check doc code samples with kiira (#805)
* ci(docs): type-check doc code samples with kiira
Add kiira to type-check the TS/TSX/JS/JSX code fences in /docs against the
real package APIs, and wire it into the CI quality gate so doc examples
can't drift from the SDK.
- Add kiira devDependency + kiira.config.ts: checks docs/**/*.md, excludes
the auto-generated docs/reference/**, enables the JSX runtime per
framework, and provides an `ambient` fixture for illustrative
messages/message values. No tsconfig.docs.json.
- Add `test:kiira` script; include it in the test:pr/test:ci nx target
lists, nx.includedScripts, and an nx cache target (nx.json).
- knip: ignore kiira.config.ts (consumed by the kiira binary, not imported).
- Fix the type errors kiira surfaced across 81 docs: add missing imports,
group continuation fences, import arbitrary placeholders from relative
modules, and fix real API drift (e.g. toolDefinition now requires
`description`, ContentPartUrlSource uses `value`, chat passes tools via
`tools`/modelOptions). Genuinely un-checkable fences (competitor SDKs,
uninstalled community adapters, framework route-registration boilerplate)
are marked `ignore`.
* ci: apply automated fixes
* fix(docs): exclude Angular docs from kiira (ng-packagr entry not source-resolvable)
@tanstack/ai-angular ships only dist/types/*.d.ts (ng-packagr), which kiira's
dist->src resolution heuristic can't map to a source file, so its docs only
type-check against the built bundle. That isn't available during a source-based
docs check (and a docs-only PR builds nothing), so kiira failed on
@tanstack/ai-angular imports in CI. Exclude the two Angular docs until the
package exposes a source-resolvable entry.
* docs(kiira): use real minimal setup instead of declare/ambient/group-rename
Refine the doc snippets per review:
- Remove the ambient fixture and every `declare const`; show real minimal
setup instead (extract messages from the request in a server endpoint, a
minimal messages literal, import+create an adapter, define/import tools).
- Isolate snippets that were grouped only to share state via renamed
duplicates (client/client1, stream/stream2, chatSSE/chatHTTP, adapter
variants) — each fence now stands alone with natural names, importing shared
setup from a relative module where needed.
- Drop callback return-type annotations added only to satisfy the checker;
set noImplicitReturns:false for doc snippets so partial control flow in
illustrative callbacks is fine.
- Replace remaining gpt-4o usages touched along the way with current model ids.
Kiira: 596 snippets pass, 0 fail (more snippets now actually checked, fewer
ignored).
* docs(kiira): inline tool definitions so client tool input infers (no input: any)
The framework-hook examples imported tool definitions from an unresolved
relative module, so .client() callbacks fell back to (input: any). Define the
toolDefinition() inline (name + description + inputSchema) so the callback param
infers from the schema — the tools are fully type-safe, the any was masking a
missing definition.
* chore(lessons): capture kiira doc-snippet authoring + CI-setup lessons
* docs(kiira): infer tool callback input from inline schema (drop hand-typed params)
* ci: apply automated fixes
* docs(kiira): type-check third-party libs via externalPackages (kiira 0.5.0)
Upgrade kiira to 0.5.0 and declare the third-party packages the docs import
(Vercel AI SDK, openai, arktype/valibot, redis/pino/@opentelemetry/api/express/
hono, @modelcontextprotocol/sdk, and the community adapters) under
externalPackages, so kiira installs them into an isolated cache and type-checks
against the real types instead of ignoring those fences. Un-ignored ~67 fences
across migration/comparison, community-adapters, advanced (redis/pino/otel),
mcp, structured-outputs, and server quick-starts -- catching real API drift in
the examples along the way. Remaining ignores are genuine: removed/old TanStack
APIs in before-code, framework route boilerplate, MCP/cencori subpath exports
kiira's external resolver can't map yet, and a couple of pseudo-code blocks.
Kiira: 663 snippets pass, 0 fail, 147 ignored (was 596 / 214).
* docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the
externalPackages cache copy in CI (TS7016). Drop express/@types/express from
externalPackages and re-ignore the two express server snippets.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 08:38:42 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci(docs): type-check doc code samples with kiira (#805)
* ci(docs): type-check doc code samples with kiira
Add kiira to type-check the TS/TSX/JS/JSX code fences in /docs against the
real package APIs, and wire it into the CI quality gate so doc examples
can't drift from the SDK.
- Add kiira devDependency + kiira.config.ts: checks docs/**/*.md, excludes
the auto-generated docs/reference/**, enables the JSX runtime per
framework, and provides an `ambient` fixture for illustrative
messages/message values. No tsconfig.docs.json.
- Add `test:kiira` script; include it in the test:pr/test:ci nx target
lists, nx.includedScripts, and an nx cache target (nx.json).
- knip: ignore kiira.config.ts (consumed by the kiira binary, not imported).
- Fix the type errors kiira surfaced across 81 docs: add missing imports,
group continuation fences, import arbitrary placeholders from relative
modules, and fix real API drift (e.g. toolDefinition now requires
`description`, ContentPartUrlSource uses `value`, chat passes tools via
`tools`/modelOptions). Genuinely un-checkable fences (competitor SDKs,
uninstalled community adapters, framework route-registration boilerplate)
are marked `ignore`.
* ci: apply automated fixes
* fix(docs): exclude Angular docs from kiira (ng-packagr entry not source-resolvable)
@tanstack/ai-angular ships only dist/types/*.d.ts (ng-packagr), which kiira's
dist->src resolution heuristic can't map to a source file, so its docs only
type-check against the built bundle. That isn't available during a source-based
docs check (and a docs-only PR builds nothing), so kiira failed on
@tanstack/ai-angular imports in CI. Exclude the two Angular docs until the
package exposes a source-resolvable entry.
* docs(kiira): use real minimal setup instead of declare/ambient/group-rename
Refine the doc snippets per review:
- Remove the ambient fixture and every `declare const`; show real minimal
setup instead (extract messages from the request in a server endpoint, a
minimal messages literal, import+create an adapter, define/import tools).
- Isolate snippets that were grouped only to share state via renamed
duplicates (client/client1, stream/stream2, chatSSE/chatHTTP, adapter
variants) — each fence now stands alone with natural names, importing shared
setup from a relative module where needed.
- Drop callback return-type annotations added only to satisfy the checker;
set noImplicitReturns:false for doc snippets so partial control flow in
illustrative callbacks is fine.
- Replace remaining gpt-4o usages touched along the way with current model ids.
Kiira: 596 snippets pass, 0 fail (more snippets now actually checked, fewer
ignored).
* docs(kiira): inline tool definitions so client tool input infers (no input: any)
The framework-hook examples imported tool definitions from an unresolved
relative module, so .client() callbacks fell back to (input: any). Define the
toolDefinition() inline (name + description + inputSchema) so the callback param
infers from the schema — the tools are fully type-safe, the any was masking a
missing definition.
* chore(lessons): capture kiira doc-snippet authoring + CI-setup lessons
* docs(kiira): infer tool callback input from inline schema (drop hand-typed params)
* ci: apply automated fixes
* docs(kiira): type-check third-party libs via externalPackages (kiira 0.5.0)
Upgrade kiira to 0.5.0 and declare the third-party packages the docs import
(Vercel AI SDK, openai, arktype/valibot, redis/pino/@opentelemetry/api/express/
hono, @modelcontextprotocol/sdk, and the community adapters) under
externalPackages, so kiira installs them into an isolated cache and type-checks
against the real types instead of ignoring those fences. Un-ignored ~67 fences
across migration/comparison, community-adapters, advanced (redis/pino/otel),
mcp, structured-outputs, and server quick-starts -- catching real API drift in
the examples along the way. Remaining ignores are genuine: removed/old TanStack
APIs in before-code, framework route boilerplate, MCP/cencori subpath exports
kiira's external resolver can't map yet, and a couple of pseudo-code blocks.
Kiira: 663 snippets pass, 0 fail, 147 ignored (was 596 / 214).
* docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the
externalPackages cache copy in CI (TS7016). Drop express/@types/express from
externalPackages and re-ignore the two express server snippets.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 08:38:42 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci(docs): type-check doc code samples with kiira (#805)
* ci(docs): type-check doc code samples with kiira
Add kiira to type-check the TS/TSX/JS/JSX code fences in /docs against the
real package APIs, and wire it into the CI quality gate so doc examples
can't drift from the SDK.
- Add kiira devDependency + kiira.config.ts: checks docs/**/*.md, excludes
the auto-generated docs/reference/**, enables the JSX runtime per
framework, and provides an `ambient` fixture for illustrative
messages/message values. No tsconfig.docs.json.
- Add `test:kiira` script; include it in the test:pr/test:ci nx target
lists, nx.includedScripts, and an nx cache target (nx.json).
- knip: ignore kiira.config.ts (consumed by the kiira binary, not imported).
- Fix the type errors kiira surfaced across 81 docs: add missing imports,
group continuation fences, import arbitrary placeholders from relative
modules, and fix real API drift (e.g. toolDefinition now requires
`description`, ContentPartUrlSource uses `value`, chat passes tools via
`tools`/modelOptions). Genuinely un-checkable fences (competitor SDKs,
uninstalled community adapters, framework route-registration boilerplate)
are marked `ignore`.
* ci: apply automated fixes
* fix(docs): exclude Angular docs from kiira (ng-packagr entry not source-resolvable)
@tanstack/ai-angular ships only dist/types/*.d.ts (ng-packagr), which kiira's
dist->src resolution heuristic can't map to a source file, so its docs only
type-check against the built bundle. That isn't available during a source-based
docs check (and a docs-only PR builds nothing), so kiira failed on
@tanstack/ai-angular imports in CI. Exclude the two Angular docs until the
package exposes a source-resolvable entry.
* docs(kiira): use real minimal setup instead of declare/ambient/group-rename
Refine the doc snippets per review:
- Remove the ambient fixture and every `declare const`; show real minimal
setup instead (extract messages from the request in a server endpoint, a
minimal messages literal, import+create an adapter, define/import tools).
- Isolate snippets that were grouped only to share state via renamed
duplicates (client/client1, stream/stream2, chatSSE/chatHTTP, adapter
variants) — each fence now stands alone with natural names, importing shared
setup from a relative module where needed.
- Drop callback return-type annotations added only to satisfy the checker;
set noImplicitReturns:false for doc snippets so partial control flow in
illustrative callbacks is fine.
- Replace remaining gpt-4o usages touched along the way with current model ids.
Kiira: 596 snippets pass, 0 fail (more snippets now actually checked, fewer
ignored).
* docs(kiira): inline tool definitions so client tool input infers (no input: any)
The framework-hook examples imported tool definitions from an unresolved
relative module, so .client() callbacks fell back to (input: any). Define the
toolDefinition() inline (name + description + inputSchema) so the callback param
infers from the schema — the tools are fully type-safe, the any was masking a
missing definition.
* chore(lessons): capture kiira doc-snippet authoring + CI-setup lessons
* docs(kiira): infer tool callback input from inline schema (drop hand-typed params)
* ci: apply automated fixes
* docs(kiira): type-check third-party libs via externalPackages (kiira 0.5.0)
Upgrade kiira to 0.5.0 and declare the third-party packages the docs import
(Vercel AI SDK, openai, arktype/valibot, redis/pino/@opentelemetry/api/express/
hono, @modelcontextprotocol/sdk, and the community adapters) under
externalPackages, so kiira installs them into an isolated cache and type-checks
against the real types instead of ignoring those fences. Un-ignored ~67 fences
across migration/comparison, community-adapters, advanced (redis/pino/otel),
mcp, structured-outputs, and server quick-starts -- catching real API drift in
the examples along the way. Remaining ignores are genuine: removed/old TanStack
APIs in before-code, framework route boilerplate, MCP/cencori subpath exports
kiira's external resolver can't map yet, and a couple of pseudo-code blocks.
Kiira: 663 snippets pass, 0 fail, 147 ignored (was 596 / 214).
* docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the
externalPackages cache copy in CI (TS7016). Drop express/@types/express from
externalPackages and re-ignore the two express server snippets.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 08:38:42 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refactor(code-mode)!: rename Code Mode "skills" to "snippets" (#1114)
* refactor(code-mode)!: rename Code Mode "skills" to "snippets"
Disambiguates Code Mode's runtime code library from the agent/provider
"skills" systems (the SKILL.md packaging feature). Breaking rename of the
package, its public API, and the Code Mode wire contract.
- Package: `@tanstack/ai-code-mode-skills` -> `@tanstack/ai-code-mode-snippets`
(dir `packages/ai-code-mode-skills` -> `packages/ai-code-mode-snippets`)
- API: `codeModeWithSkills`->`codeModeWithSnippets`, `snippetsToTools`,
`snippetsToBindings`, `selectRelevantSnippets`, `createSnippetManagementTools`,
`createSnippetsSystemPrompt`, `generateSnippetTypes`,
`createFile/MemorySnippetStorage`, all `Snippet*` types/options
- Runtime tools: `search_snippets`/`get_snippet`/`register_snippet`; sandbox
binding prefix `snippet_`
- Wire contract (`@tanstack/ai`): events `code_mode:snippet_*`,
`snippet:registered`; types `CodeModeSnippet*Event`/`SnippetRegisteredEvent`
- Sandbox hook (`@tanstack/ai-code-mode`): `createCodeModeTool` option
`getSkillBindings` -> `getSnippetBindings`
- Updated example `ts-code-mode-web`, docs, and reference docs
Agent/provider skills (packages/*/skills, SKILL.md, provider skills-wire)
are intentionally untouched.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: apply automated fixes
* docs/test: address CodeRabbit review (rename-related fixes)
- Rename leftover test-cli id `SKL` -> `SNP` (skill abbreviation)
- Fix inaccurate "client-side" execution claim in provider-skills.md and
ai-core/tool-calling SKILL.md (snippets run in a local isolate, not
necessarily client-side)
- Package README: correct `registry` -> `toolsRegistry` return field; add
`text` language to bare fence
- code-mode-with-snippets.md: add `text` language to two bare fences (MD040)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(code-mode-snippets): reject path traversal in snippet names
`createFileSnippetStorage` used the LLM-supplied snippet name directly as an
on-disk path segment (`join(directory, name)`) in get/save/delete, so a name
like `../../x` could read, write, or delete files outside the storage
directory. Snippet names are already identifier-shaped (they double as
`snippet_<name>` sandbox tool names), so names are now validated against
`/^[A-Za-z0-9_-]+$/`: save/delete throw and get returns null for unsafe names.
Addresses a CodeRabbit finding (pre-existing under the old skills storage).
Adds regression tests covering traversal attempts and ordinary names.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: apply automated fixes
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-15 15:57:37 -07:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refactor(code-mode)!: rename Code Mode "skills" to "snippets" (#1114)
* refactor(code-mode)!: rename Code Mode "skills" to "snippets"
Disambiguates Code Mode's runtime code library from the agent/provider
"skills" systems (the SKILL.md packaging feature). Breaking rename of the
package, its public API, and the Code Mode wire contract.
- Package: `@tanstack/ai-code-mode-skills` -> `@tanstack/ai-code-mode-snippets`
(dir `packages/ai-code-mode-skills` -> `packages/ai-code-mode-snippets`)
- API: `codeModeWithSkills`->`codeModeWithSnippets`, `snippetsToTools`,
`snippetsToBindings`, `selectRelevantSnippets`, `createSnippetManagementTools`,
`createSnippetsSystemPrompt`, `generateSnippetTypes`,
`createFile/MemorySnippetStorage`, all `Snippet*` types/options
- Runtime tools: `search_snippets`/`get_snippet`/`register_snippet`; sandbox
binding prefix `snippet_`
- Wire contract (`@tanstack/ai`): events `code_mode:snippet_*`,
`snippet:registered`; types `CodeModeSnippet*Event`/`SnippetRegisteredEvent`
- Sandbox hook (`@tanstack/ai-code-mode`): `createCodeModeTool` option
`getSkillBindings` -> `getSnippetBindings`
- Updated example `ts-code-mode-web`, docs, and reference docs
Agent/provider skills (packages/*/skills, SKILL.md, provider skills-wire)
are intentionally untouched.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: apply automated fixes
* docs/test: address CodeRabbit review (rename-related fixes)
- Rename leftover test-cli id `SKL` -> `SNP` (skill abbreviation)
- Fix inaccurate "client-side" execution claim in provider-skills.md and
ai-core/tool-calling SKILL.md (snippets run in a local isolate, not
necessarily client-side)
- Package README: correct `registry` -> `toolsRegistry` return field; add
`text` language to bare fence
- code-mode-with-snippets.md: add `text` language to two bare fences (MD040)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(code-mode-snippets): reject path traversal in snippet names
`createFileSnippetStorage` used the LLM-supplied snippet name directly as an
on-disk path segment (`join(directory, name)`) in get/save/delete, so a name
like `../../x` could read, write, or delete files outside the storage
directory. Snippet names are already identifier-shaped (they double as
`snippet_<name>` sandbox tool names), so names are now validated against
`/^[A-Za-z0-9_-]+$/`: save/delete throw and get returns null for unsafe names.
Addresses a CodeRabbit finding (pre-existing under the old skills storage).
Adds regression tests covering traversal attempts and ordinary names.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: apply automated fixes
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-15 15:57:37 -07:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci(docs): type-check doc code samples with kiira (#805)
* ci(docs): type-check doc code samples with kiira
Add kiira to type-check the TS/TSX/JS/JSX code fences in /docs against the
real package APIs, and wire it into the CI quality gate so doc examples
can't drift from the SDK.
- Add kiira devDependency + kiira.config.ts: checks docs/**/*.md, excludes
the auto-generated docs/reference/**, enables the JSX runtime per
framework, and provides an `ambient` fixture for illustrative
messages/message values. No tsconfig.docs.json.
- Add `test:kiira` script; include it in the test:pr/test:ci nx target
lists, nx.includedScripts, and an nx cache target (nx.json).
- knip: ignore kiira.config.ts (consumed by the kiira binary, not imported).
- Fix the type errors kiira surfaced across 81 docs: add missing imports,
group continuation fences, import arbitrary placeholders from relative
modules, and fix real API drift (e.g. toolDefinition now requires
`description`, ContentPartUrlSource uses `value`, chat passes tools via
`tools`/modelOptions). Genuinely un-checkable fences (competitor SDKs,
uninstalled community adapters, framework route-registration boilerplate)
are marked `ignore`.
* ci: apply automated fixes
* fix(docs): exclude Angular docs from kiira (ng-packagr entry not source-resolvable)
@tanstack/ai-angular ships only dist/types/*.d.ts (ng-packagr), which kiira's
dist->src resolution heuristic can't map to a source file, so its docs only
type-check against the built bundle. That isn't available during a source-based
docs check (and a docs-only PR builds nothing), so kiira failed on
@tanstack/ai-angular imports in CI. Exclude the two Angular docs until the
package exposes a source-resolvable entry.
* docs(kiira): use real minimal setup instead of declare/ambient/group-rename
Refine the doc snippets per review:
- Remove the ambient fixture and every `declare const`; show real minimal
setup instead (extract messages from the request in a server endpoint, a
minimal messages literal, import+create an adapter, define/import tools).
- Isolate snippets that were grouped only to share state via renamed
duplicates (client/client1, stream/stream2, chatSSE/chatHTTP, adapter
variants) — each fence now stands alone with natural names, importing shared
setup from a relative module where needed.
- Drop callback return-type annotations added only to satisfy the checker;
set noImplicitReturns:false for doc snippets so partial control flow in
illustrative callbacks is fine.
- Replace remaining gpt-4o usages touched along the way with current model ids.
Kiira: 596 snippets pass, 0 fail (more snippets now actually checked, fewer
ignored).
* docs(kiira): inline tool definitions so client tool input infers (no input: any)
The framework-hook examples imported tool definitions from an unresolved
relative module, so .client() callbacks fell back to (input: any). Define the
toolDefinition() inline (name + description + inputSchema) so the callback param
infers from the schema — the tools are fully type-safe, the any was masking a
missing definition.
* chore(lessons): capture kiira doc-snippet authoring + CI-setup lessons
* docs(kiira): infer tool callback input from inline schema (drop hand-typed params)
* ci: apply automated fixes
* docs(kiira): type-check third-party libs via externalPackages (kiira 0.5.0)
Upgrade kiira to 0.5.0 and declare the third-party packages the docs import
(Vercel AI SDK, openai, arktype/valibot, redis/pino/@opentelemetry/api/express/
hono, @modelcontextprotocol/sdk, and the community adapters) under
externalPackages, so kiira installs them into an isolated cache and type-checks
against the real types instead of ignoring those fences. Un-ignored ~67 fences
across migration/comparison, community-adapters, advanced (redis/pino/otel),
mcp, structured-outputs, and server quick-starts -- catching real API drift in
the examples along the way. Remaining ignores are genuine: removed/old TanStack
APIs in before-code, framework route boilerplate, MCP/cencori subpath exports
kiira's external resolver can't map yet, and a couple of pseudo-code blocks.
Kiira: 663 snippets pass, 0 fail, 147 ignored (was 596 / 214).
* docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the
externalPackages cache copy in CI (TS7016). Drop express/@types/express from
externalPackages and re-ignore the two express server snippets.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 08:38:42 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ci(docs): type-check doc code samples with kiira (#805)
* ci(docs): type-check doc code samples with kiira
Add kiira to type-check the TS/TSX/JS/JSX code fences in /docs against the
real package APIs, and wire it into the CI quality gate so doc examples
can't drift from the SDK.
- Add kiira devDependency + kiira.config.ts: checks docs/**/*.md, excludes
the auto-generated docs/reference/**, enables the JSX runtime per
framework, and provides an `ambient` fixture for illustrative
messages/message values. No tsconfig.docs.json.
- Add `test:kiira` script; include it in the test:pr/test:ci nx target
lists, nx.includedScripts, and an nx cache target (nx.json).
- knip: ignore kiira.config.ts (consumed by the kiira binary, not imported).
- Fix the type errors kiira surfaced across 81 docs: add missing imports,
group continuation fences, import arbitrary placeholders from relative
modules, and fix real API drift (e.g. toolDefinition now requires
`description`, ContentPartUrlSource uses `value`, chat passes tools via
`tools`/modelOptions). Genuinely un-checkable fences (competitor SDKs,
uninstalled community adapters, framework route-registration boilerplate)
are marked `ignore`.
* ci: apply automated fixes
* fix(docs): exclude Angular docs from kiira (ng-packagr entry not source-resolvable)
@tanstack/ai-angular ships only dist/types/*.d.ts (ng-packagr), which kiira's
dist->src resolution heuristic can't map to a source file, so its docs only
type-check against the built bundle. That isn't available during a source-based
docs check (and a docs-only PR builds nothing), so kiira failed on
@tanstack/ai-angular imports in CI. Exclude the two Angular docs until the
package exposes a source-resolvable entry.
* docs(kiira): use real minimal setup instead of declare/ambient/group-rename
Refine the doc snippets per review:
- Remove the ambient fixture and every `declare const`; show real minimal
setup instead (extract messages from the request in a server endpoint, a
minimal messages literal, import+create an adapter, define/import tools).
- Isolate snippets that were grouped only to share state via renamed
duplicates (client/client1, stream/stream2, chatSSE/chatHTTP, adapter
variants) — each fence now stands alone with natural names, importing shared
setup from a relative module where needed.
- Drop callback return-type annotations added only to satisfy the checker;
set noImplicitReturns:false for doc snippets so partial control flow in
illustrative callbacks is fine.
- Replace remaining gpt-4o usages touched along the way with current model ids.
Kiira: 596 snippets pass, 0 fail (more snippets now actually checked, fewer
ignored).
* docs(kiira): inline tool definitions so client tool input infers (no input: any)
The framework-hook examples imported tool definitions from an unresolved
relative module, so .client() callbacks fell back to (input: any). Define the
toolDefinition() inline (name + description + inputSchema) so the callback param
infers from the schema — the tools are fully type-safe, the any was masking a
missing definition.
* chore(lessons): capture kiira doc-snippet authoring + CI-setup lessons
* docs(kiira): infer tool callback input from inline schema (drop hand-typed params)
* ci: apply automated fixes
* docs(kiira): type-check third-party libs via externalPackages (kiira 0.5.0)
Upgrade kiira to 0.5.0 and declare the third-party packages the docs import
(Vercel AI SDK, openai, arktype/valibot, redis/pino/@opentelemetry/api/express/
hono, @modelcontextprotocol/sdk, and the community adapters) under
externalPackages, so kiira installs them into an isolated cache and type-checks
against the real types instead of ignoring those fences. Un-ignored ~67 fences
across migration/comparison, community-adapters, advanced (redis/pino/otel),
mcp, structured-outputs, and server quick-starts -- catching real API drift in
the examples along the way. Remaining ignores are genuine: removed/old TanStack
APIs in before-code, framework route boilerplate, MCP/cencori subpath exports
kiira's external resolver can't map yet, and a couple of pseudo-code blocks.
Kiira: 663 snippets pass, 0 fail, 147 ignored (was 596 / 214).
* docs(kiira): keep express snippets ignored (workspace-shadowed, no @types)
express@5 is a transitive workspace dep without @types, shadowing the
externalPackages cache copy in CI (TS7016). Drop express/@types/express from
externalPackages and re-ignore the two express server snippets.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-24 08:38:42 +02:00
|
|
|
|
|
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
feat(ai-isolate): add native QuickJS Code Mode isolate driver for Bun (#750)
* feat(ai-isolate): add native QuickJS Code Mode isolate driver for Bun
Adds @tanstack/ai-isolate-quickjs-bun, a Code Mode IsolateDriver that
runs QuickJS natively on the Bun runtime via bun:ffi (through
quickjs-bun) instead of WebAssembly. It is a drop-in replacement for
@tanstack/ai-isolate-quickjs on Bun servers.
- Per-context native QuickJS runtime with its own memory/stack/timeout
limits; contexts execute independently (the WASM driver serializes all
executions through one asyncified module).
- Same JSON tool-call protocol, console prefixes, and normalized
MemoryLimit/StackOverflowError/DisposedError contract as the other
drivers, plus a normalized TimeoutError for deadline expiry.
- maxToolCalls (default 1000) and conosle log caps to bound stack and
memory growth from untrusted snadbox code.
- Requires Bun >= 1.3.14; throws an error on Node.js.
Unit tests mirror the WASM/Node suites and run under `bun test`; the
Node-side rejection test runs in normal CI. Docs, the ai-code-mode
README + skill, and the code-mode example have been updated.
* fix: docs/code-mode/code-mode-isolates.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix(ai-isolate-quickjs-bun): address review feedback
Correctness:
- Classify fatal OOM/stack-limit errors thrown as Error *objects* (not just
bare-null) as fatal so an exhausted VM is released, not reused, by routing
the recovered name/message back through normalizeError.
- When vm.dump throws while materializing a tool call's args (sandbox heap
exhausted), surface it via hostSettleError and abandon the call instead of
running the host tool with empty {} args.
- Drain the QuickJS job queue between runs so a prior aborted/timed-out
execution's queued promise reactions can't bleed their output, tool-call
budget, or wall-clock into the next execution (+ regression test).
- Rename MAX_LOG_BYTES/logBytes -> MAX_LOG_CHARS/logChars to match the actual
UTF-16 code-unit measure.
Docs / metadata:
- Close the unterminated YAML frontmatter in code-mode-isolates.md, fix the
broken `external_*` inline code, and add the missing maxToolCalls option row.
- Soften the isolate-driver "fully isolated from the host" wording: this is an
in-process bun:ffi VM, not an OS/VM sandbox boundary.
- Fill in package.json author/homepage/bugs/funding; pin quickjs-bun exactly
and document the pre-1.0 supply-chain/compat caveat in the README + changeset.
- Convert the package's stray eslint scripts to oxlint (repo convention; also
brings its source under the CI lint gate and clears knip).
- Document that the full behavioral suite is Bun-only (test:bun).
Example:
- Gate the "QuickJS Bun" sidebar option honestly: create-isolate-driver falls
back to QuickJS (WASM) with a warning when not running under Bun, and the
option description states the requirement.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(ai-isolate-quickjs-bun): run the Bun-gated test suite in CI
The driver's substantive suite (escape attempts, timeouts, memory limits,
maxToolCalls, concurrency) is gated behind `describe.skipIf(typeof Bun ===
'undefined')` and only runs under Bun. The Node PR job exercised only the
"rejects on Node.js" case, leaving that behavior unverified in CI.
Add a separate, path-filtered `Bun Tests` workflow that installs Bun, builds
the package's workspace dependencies via nx (`@tanstack/ai-code-mode` is a
runtime peer dep), and runs `test:bun`. Path-filtered to the package so it
stays off unrelated PRs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(workspace): stop @types/bun from polluting other packages' global types
Adding @types/bun as a devDependency of @tanstack/ai-isolate-quickjs-bun let
pnpm hoist it into the shared virtual store (node_modules/.pnpm/node_modules),
where it became resolvable workspace-wide. Unrelated deps in the nitro/SSR
stack (srvx, crossws) carry phantom `import "bun"` type statements that
previously no-op'd; once @types/bun was reachable they resolved to it and
pulled bun-types into every dependent's `tsc` run. bun-types globally
redeclares `fetch` with `init: RequestInit | BunFetchRequestInit`, dropping the
DOM `preconnect` member, which broke `@tanstack/sandbox-web-example:test:types`
(and any other app using `typeof fetch`).
Exclude @types/bun from the shared hoist so only its direct dependent resolves
it via its own node_modules symlink. quickjs-bun still type-checks, builds, and
passes its Bun test suite; sandbox-web no longer pulls in bun-types.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(ai-isolate-quickjs-bun): make Bun isolate work under Vite/Start demos
Load quickjs-bun via Bun-aware path resolution and a host-native dynamic
import so Vite's module runner no longer fails package exports or inlines
bun:ffi sources. Add CODE_MODE_BUN/dev:bun for ts-code-mode-web (default
VM quickjs-bun, Nitro bun preset, SSR-only bun resolve conditions), runtime
sidebar warnings, and richer execute_typescript tracing (phase, stack,
execution_finished events).
* refactor(ts-code-mode-web): simplify Bun Vite config
Drop the quickjs-bun path walker/plugin/alias. Keep the working pattern:
browser-only client resolve conditions, bun on SSR only, externalize
quickjs-bun + the isolate driver, and CODE_MODE_BUN/Nitro bun preset.
* ci: apply automated fixes
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Jack Herrington <jherr@pobox.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Tom Beckenham <34339192+tombeckenham@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-07 17:05:31 +08:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
2026-08-07 05:18:02 -07:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fix(code-mode): drop esbuild for edge-safe TypeScript stripping (#487) (#799)
* fix(code-mode): drop esbuild for edge-safe TypeScript stripping (#487)
@tanstack/ai-code-mode hard-depended on esbuild to strip TypeScript before
sandbox execution. esbuild ships a Node-native binary and pulls in Node-only
built-ins (e.g. require("pnpapi")), which broke browser bundles and edge
runtimes such as Cloudflare Workers/Pages.
Replace esbuild with sucrase, a pure-JavaScript transform with no native
binary, on the default TypeScript-stripping path. Add an optional `transpile`
escape hatch on createCodeModeTool so callers who don't need edge safety can
swap in a heavier Node-only transpiler (e.g. esbuild).
sucrase is a type-stripper rather than a down-leveler, so unlike esbuild it
does not compile a few exotic constructs (value `namespace` blocks, decorators,
the `accessor` keyword, post-ES2022 syntax such as `using` and the `/v` regex
flag). These are documented on stripTypeScript and in the changeset, with the
transpile hook as the workaround.
Add an edge-safety guard test asserting no source imports esbuild or a
Node-only built-in, and keep the dependency out of every install-facing bucket.
* test(code-mode): escape module names in edge-safety import scan
Escape regex metacharacters before interpolating each FORBIDDEN entry into
the import-scan pattern. The current entries contain no metacharacters, so
behavior is unchanged, but this keeps the pattern correct if an entry ever
contains one and silences a static-analysis ReDoS warning.
* ci: apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-22 20:11:49 +08:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-08-07 05:18:02 -07:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-04-07 13:39:17 +02:00
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
2026-04-08 16:23:52 -07:00
|
|
|
|
|
|
|
|
|
chore: remove stale PHP and Python packages (#643)
* chore: remove stale PHP and Python packages (closes #642)
Drop the PHP and Python packages and their example apps. TanStack AI now
focuses exclusively on TypeScript; AG-UI handles interop with non-JS
servers, so first-party PHP/Python clients are no longer maintained.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore: flatten packages/typescript/* into packages/*
The `typescript/` nesting was a leftover from when other-language packages
lived alongside it. With those gone (commit bda114e3), the extra level is
just noise. Moves all 31 packages with `git mv` so blame/history follow,
then updates workspace globs, tsconfig extends, package.json `directory`
fields, scripts, CI, docs, lockfile, and CLAUDE.md accordingly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: apply automated fixes
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-26 18:06:29 +10:00
|
|
|
|
2026-04-08 16:23:52 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
chore: remove stale PHP and Python packages (#643)
* chore: remove stale PHP and Python packages (closes #642)
Drop the PHP and Python packages and their example apps. TanStack AI now
focuses exclusively on TypeScript; AG-UI handles interop with non-JS
servers, so first-party PHP/Python clients are no longer maintained.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* chore: flatten packages/typescript/* into packages/*
The `typescript/` nesting was a leftover from when other-language packages
lived alongside it. With those gone (commit bda114e3), the extra level is
just noise. Moves all 31 packages with `git mv` so blame/history follow,
then updates workspace globs, tsconfig extends, package.json `directory`
fields, scripts, CI, docs, lockfile, and CLAUDE.md accordingly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci: apply automated fixes
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-05-26 18:06:29 +10:00
|
|
|
|
2026-04-08 16:23:52 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code mode (#362)
* Pull in code-mode changes from ai-code-mode
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>
* more refinements
* Simpler example
* Fewer examples
* Working skills example
* Home page really coming together
* Home page done
* More realistic tools
* Finished home page
* Reworking the demo
* final fixups
* last few fixups
* ci: apply automated fixes
* fix: replace md-to-pdf with puppeteer+marked to fix provenance check
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>
* ci: apply automated fixes
* add changeset for code mode packages and revert ai-devtools changes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add database tools demo route with in-memory DB
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
* database demo
* database demo
* feat: add gold-standard judging, export, layout fixes, and nav rename 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>
* ci: apply automated fixes
* simplifying
* simplifying
* adding skills
* refactoring
* dashboard demo start
* merging main
* small tweaks
* More execute prompt work
* Model evals
* Model evals
* chore: sync lockfile with models-eval dotenv ^17.2.3
Align pnpm-lock.yaml with @tanstack/ai-code-mode-models-eval so frozen
pnpm install in CI matches the manifest after sherif alignment.
Made-with: Cursor
* ci: apply automated fixes
* ci: bump autofix-ci/action to v1.3.3 and opt into Node 24
- Pin autofix-ci/action to 7a166d75 (v1.3.3) for API reliability
- Set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24 for JS action runtime deprecation
Made-with: Cursor
* feat(ts-code-mode-web): realtime dashboard + execute_prompt API
- Replace tile orchestrator dashboard with text-mode OpenAI Realtime + execute_prompt tool
- Add /api/execute-prompt (shoe catalog via executePrompt) and /api/realtime-token
- Harden client tool args and OpenAI Realtime function_call id (call_id/item_id)
- RealtimeClient: always send tool result for unknown tools
- Remove legacy dashboard components and lib/dashboard
Made-with: Cursor
* Working
* Merged main
* Docs update
* ci: apply automated fixes
* final fixes
* ci: apply automated fixes
* ci: fix formatting and lint in ai-isolate-node
Apply Prettier formatting fixes and remove unnecessary optional chain
on non-nullish value flagged by ESLint.
Made-with: Cursor
* chore: update changeset with missing packages
Add ai-event-client, ai-ollama, ai-openai, ai-client, and ai-devtools
to the changeset to cover all source changes on this branch.
Made-with: Cursor
* fix: correct ai-devtools package name in changeset
The package is @tanstack/ai-devtools-core, not @tanstack/ai-devtools.
Made-with: Cursor
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Alem Tuzlak <t.zlak@hotmail.com>
2026-04-01 11:40:41 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-04-07 13:39:17 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
refactor(code-mode)!: rename Code Mode "skills" to "snippets" (#1114)
* refactor(code-mode)!: rename Code Mode "skills" to "snippets"
Disambiguates Code Mode's runtime code library from the agent/provider
"skills" systems (the SKILL.md packaging feature). Breaking rename of the
package, its public API, and the Code Mode wire contract.
- Package: `@tanstack/ai-code-mode-skills` -> `@tanstack/ai-code-mode-snippets`
(dir `packages/ai-code-mode-skills` -> `packages/ai-code-mode-snippets`)
- API: `codeModeWithSkills`->`codeModeWithSnippets`, `snippetsToTools`,
`snippetsToBindings`, `selectRelevantSnippets`, `createSnippetManagementTools`,
`createSnippetsSystemPrompt`, `generateSnippetTypes`,
`createFile/MemorySnippetStorage`, all `Snippet*` types/options
- Runtime tools: `search_snippets`/`get_snippet`/`register_snippet`; sandbox
binding prefix `snippet_`
- Wire contract (`@tanstack/ai`): events `code_mode:snippet_*`,
`snippet:registered`; types `CodeModeSnippet*Event`/`SnippetRegisteredEvent`
- Sandbox hook (`@tanstack/ai-code-mode`): `createCodeModeTool` option
`getSkillBindings` -> `getSnippetBindings`
- Updated example `ts-code-mode-web`, docs, and reference docs
Agent/provider skills (packages/*/skills, SKILL.md, provider skills-wire)
are intentionally untouched.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: apply automated fixes
* docs/test: address CodeRabbit review (rename-related fixes)
- Rename leftover test-cli id `SKL` -> `SNP` (skill abbreviation)
- Fix inaccurate "client-side" execution claim in provider-skills.md and
ai-core/tool-calling SKILL.md (snippets run in a local isolate, not
necessarily client-side)
- Package README: correct `registry` -> `toolsRegistry` return field; add
`text` language to bare fence
- code-mode-with-snippets.md: add `text` language to two bare fences (MD040)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(code-mode-snippets): reject path traversal in snippet names
`createFileSnippetStorage` used the LLM-supplied snippet name directly as an
on-disk path segment (`join(directory, name)`) in get/save/delete, so a name
like `../../x` could read, write, or delete files outside the storage
directory. Snippet names are already identifier-shaped (they double as
`snippet_<name>` sandbox tool names), so names are now validated against
`/^[A-Za-z0-9_-]+$/`: save/delete throw and get returns null for unsafe names.
Addresses a CodeRabbit finding (pre-existing under the old skills storage).
Adds regression tests covering traversal attempts and ordinary names.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci: apply automated fixes
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-08-15 15:57:37 -07:00
|
|
|
|
2026-08-07 05:18:02 -07:00
|
|
|
|