Packages

@tanstack/ai-code-mode

1.0.0 · 22 Oct 2026MIT54.1k / weekRepositoryHomepagenpmAtom feed

76 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 1.x · latest line
  2. 1.0.0

    22 Oct 2026
    • breaking

      TanStack AI 1.0.0. This release removes every API that was deprecated in 0.x. Read the upgrade guide before you upgrade: tanstack.com/ai/latest/docs/migration/v1

    • Add @tanstack/ai-code-mode/harness with codeMode({ driver }): a harness plugin that gives the model one execute_typescript tool. The model writes a program that calls several tools, and the program runs in the isolate of any @tanstack/ai-isolate-* driver.

      @tanstack/ai-harness is an optional peer dependency.

    • The execute_typescript tool description and the code-mode system prompt now tell the model that the tool returns { success, result, logs, error }, where result is the value its code returned.

  3. 0.5.x
  4. 0.5.1 – 0.5.55 releases that only update dependencies@tanstack/ai 0.71.0Show each
  5. 0.5.0

    8 Oct 2026
    • Add a debug option to createCodeMode / createCodeModeTool. Failed executions and secret-parameter warnings now go through the @tanstack/ai debug logger instead of hard-coded console.error / console.warn, so debug: { logger } routes them to your own Logger and debug: false silences them. Errors still reach the console by default. The success line previously behind CODE_MODE_DEBUG=1 now logs under the tools category.

  6. 0.4.x
  7. 0.4.21

    6 Oct 2026
    • Pass the chat run's abortSignal and runtime context to the tools that Code Mode calls as external_* functions. A tool that listens to the signal now stops its in-flight work when the run stops, for example MCP tools. A call does not start when the run is already aborted. toolCallId and inputResponse of the execute_typescript call are not passed on.

  8. 0.4.20

    5 Oct 2026
    • Keep enum and const values and property descriptions in the generated Code Mode type stubs. A typed schema such as { type: 'string', enum: ['a', 'b'] } now renders as 'a' | 'b' instead of string, and property descriptions are emitted as JSDoc, as the includeDescriptions option of generateTypeStubs already documented.

  9. 0.4.1 – 0.4.1916 releases that only update dependencies@tanstack/ai 0.64.0Show each
  10. 0.4.0

    18 Aug 2026
    • Rename Code Mode "skills" to "snippets" to disambiguate them from agent skills (the SKILL.md packaging system).

      Breaking — package rename. @tanstack/ai-code-mode-skills is now published as @tanstack/ai-code-mode-snippets. Update your dependency and imports. The /storage subpath is unchanged.

      Breaking — API rename. Every Skill/skill identifier in the package public API becomes Snippet/snippet, for example:

      Breaking — sandbox hook (@tanstack/ai-code-mode). The createCodeModeTool config option getSkillBindings is renamed to getSnippetBindings (same signature — an optional () => Promise<Record<string, ToolBinding>> returning dynamic bindings merged at execution time).

      Breaking — wire contract (@tanstack/ai). The Code Mode custom events are renamed: code_mode:skill_call / _result / _error → code_mode:snippet_* (payload field skill → snippet), and skill:registered → snippet:registered. The exported event types CodeModeSkillCallEvent / CodeModeSkillResultEvent / CodeModeSkillErrorEvent / SkillRegisteredEvent are renamed to their Snippet equivalents.

  11. 0.3.x
  12. 0.3.11

    10 Aug 2026
    • Add @tanstack/ai-isolate-quickjs-bun, a Code Mode isolate driver that runs QuickJS natively on the Bun runtime through bun:ffi (via quickjs-bun).

      It implements the same IsolateDriver contract as the existing drivers and is a drop-in replacement for @tanstack/ai-isolate-quickjs on Bun servers:

      import { createQuickJSBunIsolateDriver } from '@tanstack/ai-isolate-quickjs-bun'
      import { createCodeModeTool } from '@tanstack/ai-code-mode'
      
      const executeTypescript = createCodeModeTool({
        driver: createQuickJSBunIsolateDriver(),
        tools: [myTool],
      })

      Compared to the WASM driver:

      The driver requires Bun >= 1.3.14 and throws an error when used on Node.js.

      It pins quickjs-bun to an exact version (0.1.2) rather than a range, because that package is still pre-1.0 and compiles QuickJS through TinyCC/bun:ffi — its API and platform support may shift between patch releases (see the package README for the compatibility note and the Windows QUICKJS_BUN_NATIVE_LIBRARY requirement).

      The @tanstack/ai-code-mode README and bundled skill are updated to document the new driver.

    • publish internal dependency ranges as ^x.y.z instead of exact pins

      Internal dependencies on other TanStack AI packages used workspace:* in dependencies and peerDependencies. pnpm rewrites that to an exact version at publish time, so a released package asked for e.g. @tanstack/ai-utils@0.4.0 rather than ^0.4.0.

      Two consequences for consumers:

      These fields now use workspace:^, which publishes as ^x.y.z. Every package here is still 0.x, so ^0.43.1 resolves to 0.43.x only — patches dedupe cleanly and no breaking minor is ever pulled in.

      devDependencies deliberately keep workspace:*: they are never published, and * correctly means "always build against the local copy".

  13. 0.3.9 – 0.3.102 releases that only update dependencies@tanstack/ai 0.43.1Show each
  14. 0.3.8

    20 Jul 2026

    Reading the note…

  15. 0.3.7

    16 Jul 2026

    Reading the note…

  16. 0.3.6

    6 Jul 2026

    Reading the note…

  17. 0.3.5

    3 Jul 2026

    Reading the note…

  18. 0.3.4

    1 Jul 2026

    Reading the note…

  19. 0.3.3

    30 Jun 2026

    Reading the note…

  20. 0.3.2

    26 Jun 2026

    Reading the note…

  21. 0.3.1

    25 Jun 2026

    Reading the note…

  22. 0.3.0

    25 Jun 2026

    Reading the note…

  23. 0.2.x
  24. 0.2.13

    24 Jun 2026

    Reading the note…

  25. 0.2.12

    24 Jun 2026

    Reading the note…

  26. 0.2.11

    23 Jun 2026

    Reading the note…

  27. 0.2.10

    22 Jun 2026

    Reading the note…

  28. 0.2.9

    18 Jun 2026

    Reading the note…

  29. 0.2.8

    16 Jun 2026

    Reading the note…

  30. 0.2.6

    15 Jun 2026

    Reading the note…

  31. 0.2.5

    5 Jun 2026

    Reading the note…

  32. 0.2.4

    3 Jun 2026

    Reading the note…

  33. 0.2.3

    2 Jun 2026

    Reading the note…

  34. 0.2.2

    1 Jun 2026

    Reading the note…

  35. 0.2.1

    1 Jun 2026

    Reading the note…