From b0bbe24d04e2148d3e965d7502c5abd056cf86db Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 21 Nov 2026 06:43:44 +0000 Subject: [PATCH] ci: Version Packages --- .changeset/cloudflare-exec-subshell.md | 5 ---- .changeset/computer-sandbox-keep-desktop.md | 5 ---- .changeset/computer-sandbox-snapshots.md | 8 ------- .changeset/docker-publish-localhost.md | 5 ---- .../harness-release-stops-snapshot-timer.md | 5 ---- .changeset/lazy-discovery-offered-tools.md | 5 ---- .changeset/local-process-exec-utf8.md | 5 ---- .../mcp-events-webhook-id-per-message.md | 5 ---- .changeset/openai-gpt-image-2-6.md | 5 ---- .changeset/optimize-adornments.md | 19 --------------- .changeset/routed-agent-history.md | 15 ------------ .changeset/soft-voices-speak.md | 5 ---- evals/harbor/CHANGELOG.md | 13 ++++++++++ evals/harbor/package.json | 2 +- packages/ai-acp/CHANGELOG.md | 9 +++++++ packages/ai-acp/package.json | 2 +- packages/ai-cartesia/CHANGELOG.md | 12 ++++++++++ packages/ai-cartesia/package.json | 2 +- packages/ai-code-mode/CHANGELOG.md | 8 +++++++ packages/ai-code-mode/package.json | 2 +- packages/ai-computer-sandbox/CHANGELOG.md | 16 +++++++++++++ packages/ai-computer-sandbox/package.json | 2 +- packages/ai-computer-use/CHANGELOG.md | 8 +++++++ packages/ai-computer-use/package.json | 2 +- packages/ai-harness-cli/CHANGELOG.md | 10 ++++++++ packages/ai-harness-cli/package.json | 2 +- packages/ai-harness/CHANGELOG.md | 23 ++++++++++++++++++ packages/ai-harness/package.json | 2 +- packages/ai-mcp/CHANGELOG.md | 10 ++++++++ packages/ai-mcp/package.json | 2 +- packages/ai-openai/CHANGELOG.md | 10 ++++++++ packages/ai-openai/package.json | 2 +- packages/ai-optimize/CHANGELOG.md | 24 +++++++++++++++++++ packages/ai-optimize/package.json | 2 +- packages/ai-sandbox-cloudflare/CHANGELOG.md | 11 +++++++++ packages/ai-sandbox-cloudflare/package.json | 2 +- packages/ai-sandbox-docker/CHANGELOG.md | 9 +++++++ packages/ai-sandbox-docker/package.json | 2 +- .../ai-sandbox-local-process/CHANGELOG.md | 9 +++++++ .../ai-sandbox-local-process/package.json | 2 +- packages/ai-sandbox/CHANGELOG.md | 16 +++++++++++++ packages/ai-sandbox/package.json | 2 +- packages/ai-skills/CHANGELOG.md | 8 +++++++ packages/ai-skills/package.json | 2 +- packages/ai/CHANGELOG.md | 22 +++++++++++++++++ packages/ai/package.json | 2 +- 46 files changed, 235 insertions(+), 104 deletions(-) delete mode 100644 .changeset/cloudflare-exec-subshell.md delete mode 100644 .changeset/computer-sandbox-keep-desktop.md delete mode 100644 .changeset/computer-sandbox-snapshots.md delete mode 100644 .changeset/docker-publish-localhost.md delete mode 100644 .changeset/harness-release-stops-snapshot-timer.md delete mode 100644 .changeset/lazy-discovery-offered-tools.md delete mode 100644 .changeset/local-process-exec-utf8.md delete mode 100644 .changeset/mcp-events-webhook-id-per-message.md delete mode 100644 .changeset/openai-gpt-image-2-6.md delete mode 100644 .changeset/optimize-adornments.md delete mode 100644 .changeset/routed-agent-history.md delete mode 100644 .changeset/soft-voices-speak.md create mode 100644 evals/harbor/CHANGELOG.md create mode 100644 packages/ai-cartesia/CHANGELOG.md create mode 100644 packages/ai-optimize/CHANGELOG.md diff --git a/.changeset/cloudflare-exec-subshell.md b/.changeset/cloudflare-exec-subshell.md deleted file mode 100644 index 84246415e0..0000000000 --- a/.changeset/cloudflare-exec-subshell.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-sandbox-cloudflare': patch ---- - -Run each `exec` and `spawn` command in a subshell. Cloudflare runs every command in one shared shell session, so a command that called `exit` ended the session and every later command failed. This broke the `@tanstack/ai-computer-sandbox` driver on Cloudflare. diff --git a/.changeset/computer-sandbox-keep-desktop.md b/.changeset/computer-sandbox-keep-desktop.md deleted file mode 100644 index 86eb60be6f..0000000000 --- a/.changeset/computer-sandbox-keep-desktop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-computer-sandbox': minor ---- - -Add the `persist.reconnect` option to `sandboxComputer()`. It keeps the sandbox of each thread and reconnects to the same sandbox later with `provider.resume`, so a user who comes back to a thread gets the same desktop. A kept sandbox is not destroyed when its thread closes or goes idle. diff --git a/.changeset/computer-sandbox-snapshots.md b/.changeset/computer-sandbox-snapshots.md deleted file mode 100644 index a4c32c6850..0000000000 --- a/.changeset/computer-sandbox-snapshots.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@tanstack/ai-computer-sandbox': minor -'@tanstack/ai-sandbox': minor ---- - -`sandboxComputer()` takes a `persist.snapshots` option. The driver saves the files of one folder, like a browser profile, when a thread closes or goes idle. It restores them into the next new sandbox of the thread, so a sign-in survives a sandbox that is gone. A kept sandbox that comes back with an empty disk gets them back too. Saves and restores of one thread run one at a time. This works with every provider. Call `saveComputerSnapshot({ sandbox, threadId, snapshots })` to save right away, for example after a sign-in. - -`@tanstack/ai-sandbox` exports `captureSandboxFiles` and `restoreSandboxFiles`, the file capture and restore of portable snapshots. diff --git a/.changeset/docker-publish-localhost.md b/.changeset/docker-publish-localhost.md deleted file mode 100644 index 2e08c6408a..0000000000 --- a/.changeset/docker-publish-localhost.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-sandbox-docker': patch ---- - -`publishPorts` now publishes each port on 127.0.0.1 only, and `ports.connect` returns a `http://127.0.0.1:` address. Before, Docker published the ports on every network interface, so other computers on the network could connect. diff --git a/.changeset/harness-release-stops-snapshot-timer.md b/.changeset/harness-release-stops-snapshot-timer.md deleted file mode 100644 index 130f0d4f8b..0000000000 --- a/.changeset/harness-release-stops-snapshot-timer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-harness': patch ---- - -A log that gives its ownership back when its sessions have no work now also clears its pending snapshot timer, so the timer no longer stays armed for a snapshot this host cannot write. diff --git a/.changeset/lazy-discovery-offered-tools.md b/.changeset/lazy-discovery-offered-tools.md deleted file mode 100644 index da9152841b..0000000000 --- a/.changeset/lazy-discovery-offered-tools.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai': patch ---- - -The lazy tool discovery tool no longer says `Unknown tool` for a tool that the model can already call. Before, it knew only the lazy tools. When a model asked it for an eager tool, or for a tool that a middleware added, it returned `Unknown tool`, and some models then stopped using that tool. Discovery now returns the definition of each tool offered to the model in that step. An eager tool that a middleware removed still gets `Unknown tool`. A lazy tool that a middleware removed still returns its definition. diff --git a/.changeset/local-process-exec-utf8.md b/.changeset/local-process-exec-utf8.md deleted file mode 100644 index 51e3460619..0000000000 --- a/.changeset/local-process-exec-utf8.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-sandbox-local-process': patch ---- - -`exec()` no longer corrupts multi-byte UTF-8 characters in `stdout` and `stderr`. A character that a pipe split across two reads used to decode as U+FFFD. Output is now decoded across chunks, like `spawn()` already does. diff --git a/.changeset/mcp-events-webhook-id-per-message.md b/.changeset/mcp-events-webhook-id-per-message.md deleted file mode 100644 index 16b7778c66..0000000000 --- a/.changeset/mcp-events-webhook-id-per-message.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-mcp': patch ---- - -`createMCPEventWebhook` no longer requires the `webhook-id` header to equal the event's `eventId`. SEP-3415 says `webhook-id` is a per-message id that must not be derived from `eventId`, so the receiver returned 400 for every event from a server that follows the spec. It now accepts both a per-message id and the older `webhook-id` = `eventId` form. `onEvent` still gets the header as `messageId`, so keep deduplicating on `(subscription.id, messageId)`. diff --git a/.changeset/openai-gpt-image-2-6.md b/.changeset/openai-gpt-image-2-6.md deleted file mode 100644 index 0d018824ec..0000000000 --- a/.changeset/openai-gpt-image-2-6.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-openai': patch ---- - -`openaiImage()` accepts `gpt-image-2.6-flare` and `gpt-image-2.6-sunburst`. Both take sizes `1024x1024`, `1536x1024`, `1024x1536` and `auto`, and `quality` takes `low`, `medium`, `high`, `xhigh`, `max` and `auto`. Before, both ids threw `Unknown image model` before any request was sent. diff --git a/.changeset/optimize-adornments.md b/.changeset/optimize-adornments.md deleted file mode 100644 index 15e209d1a1..0000000000 --- a/.changeset/optimize-adornments.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -'@tanstack/ai-optimize': minor -'@tanstack/ai': minor ---- - -Add optimization-driven, deterministic tool-result context projection. - -- `@tanstack/ai` gains a `context` field (`ToolContextPolicy`) on tool - definitions plus the `FieldProjection` type and its combinators - (`truncateHead`, `truncateTail`, `truncateHeadTail`, `dropWithRef`, - `aboveTokens`). `FieldProjection` is branded, so a projection is always built - with a combinator, never a bare object. The core reads nothing from it (same - posture as `replay`); behavior lives in the new package. -- New package `@tanstack/ai-optimize`: a `chat()` middleware that truncates only - **optimized** tool-result (and `optimize()`-declared argument) fields in the - model projection, never in the canonical messages, event stream, or UI. - Deterministic strategies only, a run-scoped stash, an injected - `retrieve_context` tool, and an `optimize()` wrapper for foreign/MCP tool - sets. The combinators are re-exported here too. diff --git a/.changeset/routed-agent-history.md b/.changeset/routed-agent-history.md deleted file mode 100644 index 9d52032223..0000000000 --- a/.changeset/routed-agent-history.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -'@tanstack/ai-harness': minor ---- - -Routed agents now remember their own tool calls, you can pass your own handoff tool, and a `harnessAgent` can be a root agent. - -- `routing.history` sets what each model call gets of the routed runs of earlier turns. With `'own'` (the default), a routed agent gets its own earlier runs in full, with tool calls and results. It gets the other agents and the main model as labeled text in a user message, for example `main:\n...`. The main model gets the routed answers the same way, so no model reads the words of another speaker as its own. `'all'` gives every speaker every routed run in full. `'text'` gives routed runs as text only, as before. -- `routing.handoffTool` makes the handoff tool of each speaker. It gets `from`, `targets`, `allowHuman`, and `handoff`. The tool can have any name and its own fields. -- A `harnessAgent` in `agents` with `routing` keeps one child session across turns. Each turn sends it what happened in the thread since its last turn. Its model gets the `handoff` tool, so it can hand back. - -The default `history: 'own'` changes the messages that routed agents and handoff targets get. A target gets the turns of the main model as labeled text. To keep the earlier messages, and the prompt cache of the provider for a handoff target, set `routing: { router, history: 'text' }`. - -An app tool with the name of the handoff tool now replaces the harness tool. Before, the turn failed with a duplicate tool error. - -A handoff from the `handoff` tool of a root agent now adds the note messages to the thread, as a router or code handoff does. Before, the next speaker did not see that the agent handed off. On models that reject a context that ends on an assistant message (new Claude models), the main model failed after a hand-back. diff --git a/.changeset/soft-voices-speak.md b/.changeset/soft-voices-speak.md deleted file mode 100644 index 45018c6f09..0000000000 --- a/.changeset/soft-voices-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-cartesia': minor ---- - -Add Cartesia text-to-speech and batch transcription adapters. diff --git a/evals/harbor/CHANGELOG.md b/evals/harbor/CHANGELOG.md new file mode 100644 index 0000000000..cda80b9944 --- /dev/null +++ b/evals/harbor/CHANGELOG.md @@ -0,0 +1,13 @@ +# @tanstack/ai-optimize-evals + +## 0.0.1 + +### Patch Changes + +- Updated dependencies [[`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`b8a0ce6`](https://github.com/TanStack/ai/commit/b8a0ce655266fa5e0c05527904bb79746167d35f), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934)]: + - @tanstack/ai@1.9.0 + - @tanstack/ai-openai@1.2.1 + - @tanstack/ai-optimize@0.1.0 + - @tanstack/ai-code-mode@1.1.3 + - @tanstack/ai-anthropic@1.2.1 + - @tanstack/ai-gemini@1.3.0 diff --git a/evals/harbor/package.json b/evals/harbor/package.json index bc81f2048a..a32d2420c0 100644 --- a/evals/harbor/package.json +++ b/evals/harbor/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-optimize-evals", - "version": "0.0.0", + "version": "0.0.1", "private": true, "description": "Context-optimization eval harness (Harbor adapter + Node runner). Not published.", "type": "module", diff --git a/packages/ai-acp/CHANGELOG.md b/packages/ai-acp/CHANGELOG.md index 82ef137371..9660e3faf1 100644 --- a/packages/ai-acp/CHANGELOG.md +++ b/packages/ai-acp/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/ai-acp +## 1.0.4 + +### Patch Changes + +- Updated dependencies [[`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48), [`3e9a35d`](https://github.com/TanStack/ai/commit/3e9a35df8eb725a1a783777ce87335a98eab544e), [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934), [`ca20519`](https://github.com/TanStack/ai/commit/ca205198b06d2a392152b0a91ecc495a0982620c)]: + - @tanstack/ai-sandbox@1.6.0 + - @tanstack/ai-harness@0.5.0 + - @tanstack/ai@1.9.0 + ## 1.0.3 ### Patch Changes diff --git a/packages/ai-acp/package.json b/packages/ai-acp/package.json index 051c09198e..18b4221a51 100644 --- a/packages/ai-acp/package.json +++ b/packages/ai-acp/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-acp", - "version": "1.0.3", + "version": "1.0.4", "description": "Shared Agent Client Protocol (ACP) transport, session, and AG-UI translation for TanStack AI harness adapters.", "author": "", "license": "MIT", diff --git a/packages/ai-cartesia/CHANGELOG.md b/packages/ai-cartesia/CHANGELOG.md new file mode 100644 index 0000000000..a97a58fb10 --- /dev/null +++ b/packages/ai-cartesia/CHANGELOG.md @@ -0,0 +1,12 @@ +# @tanstack/ai-cartesia + +## 0.1.0 + +### Minor Changes + +- [#2085](https://github.com/TanStack/ai/pull/2085) [`5aa5808`](https://github.com/TanStack/ai/commit/5aa58081cff35eb8ab6c4f0b576317d92c0347d1) - Add Cartesia text-to-speech and batch transcription adapters. + +### Patch Changes + +- Updated dependencies [[`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934)]: + - @tanstack/ai@1.9.0 diff --git a/packages/ai-cartesia/package.json b/packages/ai-cartesia/package.json index 998ec5dc8c..06d8093940 100644 --- a/packages/ai-cartesia/package.json +++ b/packages/ai-cartesia/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-cartesia", - "version": "0.0.0", + "version": "0.1.0", "description": "Cartesia speech and transcription adapters for TanStack AI", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-code-mode/CHANGELOG.md b/packages/ai-code-mode/CHANGELOG.md index 1ee559d771..21fc28712b 100644 --- a/packages/ai-code-mode/CHANGELOG.md +++ b/packages/ai-code-mode/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/ai-code-mode +## 1.1.3 + +### Patch Changes + +- Updated dependencies [[`3e9a35d`](https://github.com/TanStack/ai/commit/3e9a35df8eb725a1a783777ce87335a98eab544e), [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934), [`ca20519`](https://github.com/TanStack/ai/commit/ca205198b06d2a392152b0a91ecc495a0982620c)]: + - @tanstack/ai-harness@0.5.0 + - @tanstack/ai@1.9.0 + ## 1.1.2 ### Patch Changes diff --git a/packages/ai-code-mode/package.json b/packages/ai-code-mode/package.json index 82c82426ba..a048e507ce 100644 --- a/packages/ai-code-mode/package.json +++ b/packages/ai-code-mode/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-code-mode", - "version": "1.1.2", + "version": "1.1.3", "description": "Secure TypeScript Code Mode for TanStack AI agents to execute sandboxed tool orchestration programs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-computer-sandbox/CHANGELOG.md b/packages/ai-computer-sandbox/CHANGELOG.md index fb32da39c7..fdc776a091 100644 --- a/packages/ai-computer-sandbox/CHANGELOG.md +++ b/packages/ai-computer-sandbox/CHANGELOG.md @@ -1,5 +1,21 @@ # @tanstack/ai-computer-sandbox +## 1.2.0 + +### Minor Changes + +- [#1982](https://github.com/TanStack/ai/pull/1982) [`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48) - Add the `persist.reconnect` option to `sandboxComputer()`. It keeps the sandbox of each thread and reconnects to the same sandbox later with `provider.resume`, so a user who comes back to a thread gets the same desktop. A kept sandbox is not destroyed when its thread closes or goes idle. + +- [#1982](https://github.com/TanStack/ai/pull/1982) [`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48) - `sandboxComputer()` takes a `persist.snapshots` option. The driver saves the files of one folder, like a browser profile, when a thread closes or goes idle. It restores them into the next new sandbox of the thread, so a sign-in survives a sandbox that is gone. A kept sandbox that comes back with an empty disk gets them back too. Saves and restores of one thread run one at a time. This works with every provider. Call `saveComputerSnapshot({ sandbox, threadId, snapshots })` to save right away, for example after a sign-in. + + `@tanstack/ai-sandbox` exports `captureSandboxFiles` and `restoreSandboxFiles`, the file capture and restore of portable snapshots. + +### Patch Changes + +- Updated dependencies [[`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48)]: + - @tanstack/ai-sandbox@1.6.0 + - @tanstack/ai-computer-use@1.1.3 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-computer-sandbox/package.json b/packages/ai-computer-sandbox/package.json index 624d8d49c0..6990e55861 100644 --- a/packages/ai-computer-sandbox/package.json +++ b/packages/ai-computer-sandbox/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-computer-sandbox", - "version": "1.1.0", + "version": "1.2.0", "description": "Sandbox desktop driver for TanStack AI computer use. Works with any @tanstack/ai-sandbox provider.", "author": "", "license": "MIT", diff --git a/packages/ai-computer-use/CHANGELOG.md b/packages/ai-computer-use/CHANGELOG.md index daecc60756..ad5bc1f690 100644 --- a/packages/ai-computer-use/CHANGELOG.md +++ b/packages/ai-computer-use/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/ai-computer-use +## 1.1.3 + +### Patch Changes + +- Updated dependencies [[`3e9a35d`](https://github.com/TanStack/ai/commit/3e9a35df8eb725a1a783777ce87335a98eab544e), [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934), [`ca20519`](https://github.com/TanStack/ai/commit/ca205198b06d2a392152b0a91ecc495a0982620c)]: + - @tanstack/ai-harness@0.5.0 + - @tanstack/ai@1.9.0 + ## 1.1.2 ### Patch Changes diff --git a/packages/ai-computer-use/package.json b/packages/ai-computer-use/package.json index 41dcefba2b..612d35d3f6 100644 --- a/packages/ai-computer-use/package.json +++ b/packages/ai-computer-use/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-computer-use", - "version": "1.1.2", + "version": "1.1.3", "description": "Provider-agnostic computer use for TanStack AI.", "author": "", "license": "MIT", diff --git a/packages/ai-harness-cli/CHANGELOG.md b/packages/ai-harness-cli/CHANGELOG.md index 3ddce9eac8..acbc7e9db1 100644 --- a/packages/ai-harness-cli/CHANGELOG.md +++ b/packages/ai-harness-cli/CHANGELOG.md @@ -1,5 +1,15 @@ # @tanstack/ai-harness-cli +## 0.1.4 + +### Patch Changes + +- Updated dependencies [[`3e9a35d`](https://github.com/TanStack/ai/commit/3e9a35df8eb725a1a783777ce87335a98eab544e), [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`1a23e34`](https://github.com/TanStack/ai/commit/1a23e34b49d750ec34450bbc5d276c94291f8100), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934), [`ca20519`](https://github.com/TanStack/ai/commit/ca205198b06d2a392152b0a91ecc495a0982620c)]: + - @tanstack/ai-harness@0.5.0 + - @tanstack/ai@1.9.0 + - @tanstack/ai-mcp@1.3.2 + - @tanstack/ai-acp@1.0.4 + ## 0.1.3 ### Patch Changes diff --git a/packages/ai-harness-cli/package.json b/packages/ai-harness-cli/package.json index 12ae8c6edb..b498bc2916 100644 --- a/packages/ai-harness-cli/package.json +++ b/packages/ai-harness-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-harness-cli", - "version": "0.1.3", + "version": "0.1.4", "description": "Run a TanStack AI harness from the terminal: line mode or your own screen, print mode, NDJSON, ACP, MCP, and an HTTP server", "author": "", "license": "MIT", diff --git a/packages/ai-harness/CHANGELOG.md b/packages/ai-harness/CHANGELOG.md index 47ee605225..352d41e1a6 100644 --- a/packages/ai-harness/CHANGELOG.md +++ b/packages/ai-harness/CHANGELOG.md @@ -1,5 +1,28 @@ # @tanstack/ai-harness +## 0.5.0 + +### Minor Changes + +- [#2145](https://github.com/TanStack/ai/pull/2145) [`ca20519`](https://github.com/TanStack/ai/commit/ca205198b06d2a392152b0a91ecc495a0982620c) - Routed agents now remember their own tool calls, you can pass your own handoff tool, and a `harnessAgent` can be a root agent. + - `routing.history` sets what each model call gets of the routed runs of earlier turns. With `'own'` (the default), a routed agent gets its own earlier runs in full, with tool calls and results. It gets the other agents and the main model as labeled text in a user message, for example `main:\n...`. The main model gets the routed answers the same way, so no model reads the words of another speaker as its own. `'all'` gives every speaker every routed run in full. `'text'` gives routed runs as text only, as before. + - `routing.handoffTool` makes the handoff tool of each speaker. It gets `from`, `targets`, `allowHuman`, and `handoff`. The tool can have any name and its own fields. + - A `harnessAgent` in `agents` with `routing` keeps one child session across turns. Each turn sends it what happened in the thread since its last turn. Its model gets the `handoff` tool, so it can hand back. + + The default `history: 'own'` changes the messages that routed agents and handoff targets get. A target gets the turns of the main model as labeled text. To keep the earlier messages, and the prompt cache of the provider for a handoff target, set `routing: { router, history: 'text' }`. + + An app tool with the name of the handoff tool now replaces the harness tool. Before, the turn failed with a duplicate tool error. + + A handoff from the `handoff` tool of a root agent now adds the note messages to the thread, as a router or code handoff does. Before, the next speaker did not see that the agent handed off. On models that reject a context that ends on an assistant message (new Claude models), the main model failed after a hand-back. + +### Patch Changes + +- [#2175](https://github.com/TanStack/ai/pull/2175) [`3e9a35d`](https://github.com/TanStack/ai/commit/3e9a35df8eb725a1a783777ce87335a98eab544e) - A log that gives its ownership back when its sessions have no work now also clears its pending snapshot timer, so the timer no longer stays armed for a snapshot this host cannot write. + +- Updated dependencies [[`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934)]: + - @tanstack/ai@1.9.0 + - @tanstack/ai-persistence@1.1.0 + ## 0.4.0 ### Minor Changes diff --git a/packages/ai-harness/package.json b/packages/ai-harness/package.json index 8b82c7b09b..f703f18f54 100644 --- a/packages/ai-harness/package.json +++ b/packages/ai-harness/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-harness", - "version": "0.4.0", + "version": "0.5.0", "description": "Build agent harnesses on TanStack AI: long-lived sessions, typed agents, and plugins", "keywords": [ "agent", diff --git a/packages/ai-mcp/CHANGELOG.md b/packages/ai-mcp/CHANGELOG.md index a9437e0bd2..a0236edc9a 100644 --- a/packages/ai-mcp/CHANGELOG.md +++ b/packages/ai-mcp/CHANGELOG.md @@ -1,5 +1,15 @@ # @tanstack/ai-mcp +## 1.3.2 + +### Patch Changes + +- [#2150](https://github.com/TanStack/ai/pull/2150) [`1a23e34`](https://github.com/TanStack/ai/commit/1a23e34b49d750ec34450bbc5d276c94291f8100) - `createMCPEventWebhook` no longer requires the `webhook-id` header to equal the event's `eventId`. SEP-3415 says `webhook-id` is a per-message id that must not be derived from `eventId`, so the receiver returned 400 for every event from a server that follows the spec. It now accepts both a per-message id and the older `webhook-id` = `eventId` form. `onEvent` still gets the header as `messageId`, so keep deduplicating on `(subscription.id, messageId)`. + +- Updated dependencies [[`3e9a35d`](https://github.com/TanStack/ai/commit/3e9a35df8eb725a1a783777ce87335a98eab544e), [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934), [`ca20519`](https://github.com/TanStack/ai/commit/ca205198b06d2a392152b0a91ecc495a0982620c)]: + - @tanstack/ai-harness@0.5.0 + - @tanstack/ai@1.9.0 + ## 1.3.1 ### Patch Changes diff --git a/packages/ai-mcp/package.json b/packages/ai-mcp/package.json index 5e05854744..6715a529f9 100644 --- a/packages/ai-mcp/package.json +++ b/packages/ai-mcp/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-mcp", - "version": "1.3.1", + "version": "1.3.2", "description": "Host-side Model Context Protocol client for TanStack AI: discover and run MCP server tools, resources, and prompts in any adapter's chat() loop, with generated end-to-end types.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-openai/CHANGELOG.md b/packages/ai-openai/CHANGELOG.md index 946c22f6f5..4e37c91ee9 100644 --- a/packages/ai-openai/CHANGELOG.md +++ b/packages/ai-openai/CHANGELOG.md @@ -1,5 +1,15 @@ # @tanstack/ai-openai +## 1.2.1 + +### Patch Changes + +- [#2208](https://github.com/TanStack/ai/pull/2208) [`b8a0ce6`](https://github.com/TanStack/ai/commit/b8a0ce655266fa5e0c05527904bb79746167d35f) - `openaiImage()` accepts `gpt-image-2.6-flare` and `gpt-image-2.6-sunburst`. Both take sizes `1024x1024`, `1536x1024`, `1024x1536` and `auto`, and `quality` takes `low`, `medium`, `high`, `xhigh`, `max` and `auto`. Before, both ids threw `Unknown image model` before any request was sent. + +- Updated dependencies [[`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934)]: + - @tanstack/ai@1.9.0 + - @tanstack/openai-base@1.1.0 + ## 1.2.0 ### Minor Changes diff --git a/packages/ai-openai/package.json b/packages/ai-openai/package.json index 8d1ac42081..dee49b7dcc 100644 --- a/packages/ai-openai/package.json +++ b/packages/ai-openai/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-openai", - "version": "1.2.0", + "version": "1.2.1", "description": "OpenAI adapter for TanStack AI chat, tools, images, video, speech, transcription, realtime, and structured outputs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-optimize/CHANGELOG.md b/packages/ai-optimize/CHANGELOG.md new file mode 100644 index 0000000000..b8d580ee50 --- /dev/null +++ b/packages/ai-optimize/CHANGELOG.md @@ -0,0 +1,24 @@ +# @tanstack/ai-optimize + +## 0.1.0 + +### Minor Changes + +- [#2148](https://github.com/TanStack/ai/pull/2148) [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934) - Add optimization-driven, deterministic tool-result context projection. + - `@tanstack/ai` gains a `context` field (`ToolContextPolicy`) on tool + definitions plus the `FieldProjection` type and its combinators + (`truncateHead`, `truncateTail`, `truncateHeadTail`, `dropWithRef`, + `aboveTokens`). `FieldProjection` is branded, so a projection is always built + with a combinator, never a bare object. The core reads nothing from it (same + posture as `replay`); behavior lives in the new package. + - New package `@tanstack/ai-optimize`: a `chat()` middleware that truncates only + **optimized** tool-result (and `optimize()`-declared argument) fields in the + model projection, never in the canonical messages, event stream, or UI. + Deterministic strategies only, a run-scoped stash, an injected + `retrieve_context` tool, and an `optimize()` wrapper for foreign/MCP tool + sets. The combinators are re-exported here too. + +### Patch Changes + +- Updated dependencies [[`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934)]: + - @tanstack/ai@1.9.0 diff --git a/packages/ai-optimize/package.json b/packages/ai-optimize/package.json index 34eb4a4b1c..fe8b16c0b2 100644 --- a/packages/ai-optimize/package.json +++ b/packages/ai-optimize/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-optimize", - "version": "0.0.1", + "version": "0.1.0", "description": "Deterministic, opt-in tool-result context optimization middleware for TanStack AI chat()", "author": "", "license": "MIT", diff --git a/packages/ai-sandbox-cloudflare/CHANGELOG.md b/packages/ai-sandbox-cloudflare/CHANGELOG.md index dae51b6384..132bdbfa7b 100644 --- a/packages/ai-sandbox-cloudflare/CHANGELOG.md +++ b/packages/ai-sandbox-cloudflare/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/ai-sandbox-cloudflare +## 1.1.1 + +### Patch Changes + +- [#1982](https://github.com/TanStack/ai/pull/1982) [`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48) - Run each `exec` and `spawn` command in a subshell. Cloudflare runs every command in one shared shell session, so a command that called `exit` ended the session and every later command failed. This broke the `@tanstack/ai-computer-sandbox` driver on Cloudflare. + +- Updated dependencies [[`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48), [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`dfbacd1`](https://github.com/TanStack/ai/commit/dfbacd1be4ee72c875e740bb35794ff3b80be379), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934)]: + - @tanstack/ai-sandbox@1.6.0 + - @tanstack/ai@1.9.0 + - @tanstack/ai-sandbox-local-process@1.0.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-sandbox-cloudflare/package.json b/packages/ai-sandbox-cloudflare/package.json index add4bf129a..63ea39ac51 100644 --- a/packages/ai-sandbox-cloudflare/package.json +++ b/packages/ai-sandbox-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-sandbox-cloudflare", - "version": "1.1.0", + "version": "1.1.1", "description": "Cloudflare sandbox provider for TanStack AI — run harness adapters inside Cloudflare Containers (edge) through the uniform SandboxHandle.", "author": "", "license": "MIT", diff --git a/packages/ai-sandbox-docker/CHANGELOG.md b/packages/ai-sandbox-docker/CHANGELOG.md index ef7d4463fe..9ccf60d3cb 100644 --- a/packages/ai-sandbox-docker/CHANGELOG.md +++ b/packages/ai-sandbox-docker/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/ai-sandbox-docker +## 1.1.1 + +### Patch Changes + +- [#1982](https://github.com/TanStack/ai/pull/1982) [`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48) - `publishPorts` now publishes each port on 127.0.0.1 only, and `ports.connect` returns a `http://127.0.0.1:` address. Before, Docker published the ports on every network interface, so other computers on the network could connect. + +- Updated dependencies [[`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48)]: + - @tanstack/ai-sandbox@1.6.0 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-sandbox-docker/package.json b/packages/ai-sandbox-docker/package.json index 210dc7388f..9b9201d969 100644 --- a/packages/ai-sandbox-docker/package.json +++ b/packages/ai-sandbox-docker/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-sandbox-docker", - "version": "1.1.0", + "version": "1.1.1", "description": "Docker sandbox providers for TanStack AI — dockerSandbox() runs a container; sbxSandbox() runs a Docker Sandboxes microVM.", "author": "", "license": "MIT", diff --git a/packages/ai-sandbox-local-process/CHANGELOG.md b/packages/ai-sandbox-local-process/CHANGELOG.md index 6aba446f04..bc3a64c439 100644 --- a/packages/ai-sandbox-local-process/CHANGELOG.md +++ b/packages/ai-sandbox-local-process/CHANGELOG.md @@ -1,5 +1,14 @@ # @tanstack/ai-sandbox-local-process +## 1.0.1 + +### Patch Changes + +- [#2162](https://github.com/TanStack/ai/pull/2162) [`dfbacd1`](https://github.com/TanStack/ai/commit/dfbacd1be4ee72c875e740bb35794ff3b80be379) - `exec()` no longer corrupts multi-byte UTF-8 characters in `stdout` and `stderr`. A character that a pipe split across two reads used to decode as U+FFFD. Output is now decoded across chunks, like `spawn()` already does. + +- Updated dependencies [[`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48)]: + - @tanstack/ai-sandbox@1.6.0 + ## 1.0.0 ### Major Changes diff --git a/packages/ai-sandbox-local-process/package.json b/packages/ai-sandbox-local-process/package.json index cf3342c769..d48efe7e44 100644 --- a/packages/ai-sandbox-local-process/package.json +++ b/packages/ai-sandbox-local-process/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-sandbox-local-process", - "version": "1.0.0", + "version": "1.0.1", "description": "Local-process sandbox provider for TanStack AI — runs the agent directly on the host through the uniform SandboxHandle (no isolation; trusted/dev use).", "author": "", "license": "MIT", diff --git a/packages/ai-sandbox/CHANGELOG.md b/packages/ai-sandbox/CHANGELOG.md index 85a2d405a5..642817aced 100644 --- a/packages/ai-sandbox/CHANGELOG.md +++ b/packages/ai-sandbox/CHANGELOG.md @@ -1,5 +1,21 @@ # @tanstack/ai-sandbox +## 1.6.0 + +### Minor Changes + +- [#1982](https://github.com/TanStack/ai/pull/1982) [`d595931`](https://github.com/TanStack/ai/commit/d5959314c65622ba82937837666d98976c250a48) - `sandboxComputer()` takes a `persist.snapshots` option. The driver saves the files of one folder, like a browser profile, when a thread closes or goes idle. It restores them into the next new sandbox of the thread, so a sign-in survives a sandbox that is gone. A kept sandbox that comes back with an empty disk gets them back too. Saves and restores of one thread run one at a time. This works with every provider. Call `saveComputerSnapshot({ sandbox, threadId, snapshots })` to save right away, for example after a sign-in. + + `@tanstack/ai-sandbox` exports `captureSandboxFiles` and `restoreSandboxFiles`, the file capture and restore of portable snapshots. + +### Patch Changes + +- Updated dependencies [[`3e9a35d`](https://github.com/TanStack/ai/commit/3e9a35df8eb725a1a783777ce87335a98eab544e), [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934), [`ca20519`](https://github.com/TanStack/ai/commit/ca205198b06d2a392152b0a91ecc495a0982620c)]: + - @tanstack/ai-harness@0.5.0 + - @tanstack/ai@1.9.0 + - @tanstack/ai-skills@1.0.4 + - @tanstack/ai-persistence@1.1.0 + ## 1.5.0 ### Minor Changes diff --git a/packages/ai-sandbox/package.json b/packages/ai-sandbox/package.json index 429384e350..e89a9529dd 100644 --- a/packages/ai-sandbox/package.json +++ b/packages/ai-sandbox/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-sandbox", - "version": "1.5.0", + "version": "1.6.0", "description": "Provider-agnostic sandbox layer for TanStack AI — run harness adapters inside isolated sandboxes (defineSandbox, defineWorkspace, withSandbox) with a uniform SandboxHandle, workspace bootstrap, policy, and resumable lifecycle.", "author": "", "license": "MIT", diff --git a/packages/ai-skills/CHANGELOG.md b/packages/ai-skills/CHANGELOG.md index b763b03a15..c22a570ca1 100644 --- a/packages/ai-skills/CHANGELOG.md +++ b/packages/ai-skills/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/ai-skills +## 1.0.4 + +### Patch Changes + +- Updated dependencies [[`3e9a35d`](https://github.com/TanStack/ai/commit/3e9a35df8eb725a1a783777ce87335a98eab544e), [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942), [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934), [`ca20519`](https://github.com/TanStack/ai/commit/ca205198b06d2a392152b0a91ecc495a0982620c)]: + - @tanstack/ai-harness@0.5.0 + - @tanstack/ai@1.9.0 + ## 1.0.3 ### Patch Changes diff --git a/packages/ai-skills/package.json b/packages/ai-skills/package.json index 9d04c80494..738126443c 100644 --- a/packages/ai-skills/package.json +++ b/packages/ai-skills/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-skills", - "version": "1.0.3", + "version": "1.0.4", "description": "Portable Agent Skills (SKILL.md) as a first-class chat() middleware for TanStack AI.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index e325728b1b..a6e06de061 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -1,5 +1,27 @@ # @tanstack/ai +## 1.9.0 + +### Minor Changes + +- [#2148](https://github.com/TanStack/ai/pull/2148) [`f25954a`](https://github.com/TanStack/ai/commit/f25954a2867ceacaad11c0a5995ba742e2201934) - Add optimization-driven, deterministic tool-result context projection. + - `@tanstack/ai` gains a `context` field (`ToolContextPolicy`) on tool + definitions plus the `FieldProjection` type and its combinators + (`truncateHead`, `truncateTail`, `truncateHeadTail`, `dropWithRef`, + `aboveTokens`). `FieldProjection` is branded, so a projection is always built + with a combinator, never a bare object. The core reads nothing from it (same + posture as `replay`); behavior lives in the new package. + - New package `@tanstack/ai-optimize`: a `chat()` middleware that truncates only + **optimized** tool-result (and `optimize()`-declared argument) fields in the + model projection, never in the canonical messages, event stream, or UI. + Deterministic strategies only, a run-scoped stash, an injected + `retrieve_context` tool, and an `optimize()` wrapper for foreign/MCP tool + sets. The combinators are re-exported here too. + +### Patch Changes + +- [#2174](https://github.com/TanStack/ai/pull/2174) [`e5bb4d5`](https://github.com/TanStack/ai/commit/e5bb4d5e666663664321ea2d3c6cf06176c3d942) - The lazy tool discovery tool no longer says `Unknown tool` for a tool that the model can already call. Before, it knew only the lazy tools. When a model asked it for an eager tool, or for a tool that a middleware added, it returned `Unknown tool`, and some models then stopped using that tool. Discovery now returns the definition of each tool offered to the model in that step. An eager tool that a middleware removed still gets `Unknown tool`. A lazy tool that a middleware removed still returns its definition. + ## 1.8.0 ### Minor Changes diff --git a/packages/ai/package.json b/packages/ai/package.json index d0f2c86ae5..99621c3d5d 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai", - "version": "1.8.0", + "version": "1.9.0", "description": "Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.", "author": "Tanner Linsley", "license": "MIT",