diff --git a/.changeset/chat-inject-mid-turn-order.md b/.changeset/chat-inject-mid-turn-order.md deleted file mode 100644 index 9f0dffac35f..00000000000 --- a/.changeset/chat-inject-mid-turn-order.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Fix `chat.inject` messages added from a tool mid-turn being saved before the assistant's response. They now stay after the tool result, where the model saw them, so the next turn keeps the same prompt prefix. If you roll `@trigger.dev/sdk` back to an earlier version, chats saved by this version lose these mid-turn `chat.inject` messages from the model's context, though the chat history shown in the UI keeps them. diff --git a/.changeset/cost-skill-webhook-filters.md b/.changeset/cost-skill-webhook-filters.md deleted file mode 100644 index 021993699a8..00000000000 --- a/.changeset/cost-skill-webhook-filters.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -The bundled `trigger-cost-savings` skill now notes that a webhook delivery starts no run when no subscriber's filter matches, so it costs no compute. diff --git a/.changeset/forward-sub-agent.md b/.changeset/forward-sub-agent.md deleted file mode 100644 index 2c0047b2202..00000000000 --- a/.changeset/forward-sub-agent.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Stream a sub-agent's reply through a parent tool call with `chat.forwardSubAgent`. Each chunk is written to the parent chat once and the tool resolves with the sub-agent's final message, so streaming a sub-agent costs bytes in proportion to its reply. Yielding `stream.messages()` snapshots resends the whole message on every chunk, which grows with the square of the reply. - -```ts -execute: async ({ topic }, { toolCallId, abortSignal }) => { - const stream = await researcher.sendMessage(topic, { abortSignal }); - return await chat.forwardSubAgent(stream, { toolCallId }); -}, -``` - -Render it while it runs with `useSubAgentMessages()` from `@trigger.dev/sdk/chat/react` (or `createSubAgentMessages()` outside React). diff --git a/.changeset/head-start-parallel-tool-results.md b/.changeset/head-start-parallel-tool-results.md deleted file mode 100644 index f8f6c1bfa9b..00000000000 --- a/.changeset/head-start-parallel-tool-results.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Fix a `chat.agent` turn failing after a head start that ended with two or more parallel tool calls. When those tools finished out of call order, the agent sent their results to the model twice on the next step, and the provider rejected the request (Anthropic: "each tool_use must have a single result"). Each handed-over tool result is now sent once. diff --git a/.changeset/metadata-key-escaped-segments.md b/.changeset/metadata-key-escaped-segments.md deleted file mode 100644 index b962e77515e..00000000000 --- a/.changeset/metadata-key-escaped-segments.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/core": patch ---- - -Run metadata operations now reject JSON-path keys that use escaped dots to reach `__proto__`, `constructor` or `prototype`. diff --git a/.changeset/socket-io-client-ws.md b/.changeset/socket-io-client-ws.md deleted file mode 100644 index c44051162f0..00000000000 --- a/.changeset/socket-io-client-ws.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@trigger.dev/core": patch -"trigger.dev": patch ---- - -Upgrade `socket.io-client` to 4.8.4 so projects using the SDK and CLI install `ws` 8.21 instead of 8.17.1, which has published advisories (GHSA-96hv-2xvq-fx4p, GHSA-58qx-3vcg-4xpx). The old pin blocked upgrading `ws` without a package manager override. diff --git a/.changeset/subscribe-to-run-ends.md b/.changeset/subscribe-to-run-ends.md deleted file mode 100644 index 0558564f403..00000000000 --- a/.changeset/subscribe-to-run-ends.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/core": patch ---- - -`runs.subscribeToRun` now ends after the run completes. The `for await` loop exits right after the update with the final status, and the subscription stops its connection, so a script that subscribes to a run exits on its own. Pass `stopOnCompletion: false` to keep the subscription open after completion. diff --git a/.changeset/versioned-bun-runtimes.md b/.changeset/versioned-bun-runtimes.md deleted file mode 100644 index aed8bc42ba3..00000000000 --- a/.changeset/versioned-bun-runtimes.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"trigger.dev": patch -"@trigger.dev/core": patch -"@trigger.dev/rsc": patch ---- - -Adds the `bun-1.4` runtime. `runtime: "bun-1.4"` deploys on Bun 1.4.4 in a Bun-only image with no Node.js binary, and the run controller itself runs under Bun. `runtime: "bun"` is unchanged (Bun 1.3 with Node.js alongside it); `bun-legacy` is accepted as an explicit spelling of the same runtime. On Bun 1.4 the worker no longer crashes at startup on the `--no-warnings=ExperimentalWarning` flag. diff --git a/.server-changes/batch-results-sharded-batch-ids.md b/.server-changes/batch-results-sharded-batch-ids.md deleted file mode 100644 index 5035eefc0d8..00000000000 --- a/.server-changes/batch-results-sharded-batch-ids.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix the batch results API returning "Batch not found" for some batches that the batch retrieve API could see. diff --git a/.server-changes/cancelled-run-page-stops-live-updates.md b/.server-changes/cancelled-run-page-stops-live-updates.md deleted file mode 100644 index f408d118b66..00000000000 --- a/.server-changes/cancelled-run-page-stops-live-updates.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix the run page continuing to live-update forever for some cancelled runs. These runs now show as finished, and loading their trace is faster. diff --git a/.server-changes/child-run-trace-api-faster.md b/.server-changes/child-run-trace-api-faster.md deleted file mode 100644 index be0b9ae7892..00000000000 --- a/.server-changes/child-run-trace-api-faster.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix fetching the trace of a child run through the API sometimes being very slow or failing. These requests now return quickly. diff --git a/.server-changes/email-change-confirmation.md b/.server-changes/email-change-confirmation.md deleted file mode 100644 index d50efbf1831..00000000000 --- a/.server-changes/email-change-confirmation.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Changing your email address now requires clicking a confirmation button after opening the emailed link. diff --git a/.server-changes/fix-concurrent-stream-subscriptions.md b/.server-changes/fix-concurrent-stream-subscriptions.md deleted file mode 100644 index 232cd571f48..00000000000 --- a/.server-changes/fix-concurrent-stream-subscriptions.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix intermittent read and subscription errors when multiple clients first open the same realtime stream. diff --git a/.server-changes/org-delete-cancels-subscription.md b/.server-changes/org-delete-cancels-subscription.md deleted file mode 100644 index 4bac981c7bc..00000000000 --- a/.server-changes/org-delete-cancels-subscription.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Deleting an organization now cancels its billing subscription. diff --git a/.server-changes/progressive-trace-loading.md b/.server-changes/progressive-trace-loading.md deleted file mode 100644 index 4e9bc22d868..00000000000 --- a/.server-changes/progressive-trace-loading.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -The run page now loads large traces progressively and updates live runs incrementally, so big traces open faster and open run pages no longer reload the whole trace while a run is executing. The run trace API can also page large traces. diff --git a/.server-changes/query-alias-table-conflict.md b/.server-changes/query-alias-table-conflict.md deleted file mode 100644 index 60558310dd8..00000000000 --- a/.server-changes/query-alias-table-conflict.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Queries now reject an alias that reuses a table's alias in the same SELECT, unless the aliased expression contains an aggregate or window function (`count() AS runs FROM runs` still works). diff --git a/.server-changes/query-with-expression-alias.md b/.server-changes/query-with-expression-alias.md deleted file mode 100644 index 3d3e9644302..00000000000 --- a/.server-changes/query-with-expression-alias.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Queries using `WITH AS ` now run instead of failing with a syntax error, and the name can be used in the rest of the query. The name can't reuse a table alias used anywhere in the query. diff --git a/.server-changes/queue-archiving-everywhere.md b/.server-changes/queue-archiving-everywhere.md deleted file mode 100644 index 43d80529e24..00000000000 --- a/.server-changes/queue-archiving-everywhere.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -Archiving unused queues from the Concurrency page is now available on all instances, including self-hosted. diff --git a/.server-changes/route-v1-event-store-to-v2.md b/.server-changes/route-v1-event-store-to-v2.md deleted file mode 100644 index b5c210472ec..00000000000 --- a/.server-changes/route-v1-event-store-to-v2.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: breaking ---- - -The legacy `clickhouse` event store is retired: task events now go to `clickhouse_v2`. If you self-host with `EVENT_REPOSITORY_DEFAULT_STORE=clickhouse`, switch it to `clickhouse_v2` and follow the self-hosting guide to copy older events, which no longer show until you do. diff --git a/.server-changes/run-snapshot-ordering.md b/.server-changes/run-snapshot-ordering.md deleted file mode 100644 index c1b5a5f95cc..00000000000 --- a/.server-changes/run-snapshot-ordering.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Fix a rare case where clock skew between run engine instances could leave a run executing after its task finished, or stop a wait from ever resuming. A run's state changes are now always ordered in the order they happened, regardless of clock skew. diff --git a/.server-changes/run-start-commit-ack-recovery.md b/.server-changes/run-start-commit-ack-recovery.md deleted file mode 100644 index f7b0bdf5dee..00000000000 --- a/.server-changes/run-start-commit-ack-recovery.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -A run whose attempt start was interrupted no longer gets stuck executing without its task ever running, then failing as stalled. diff --git a/.server-changes/session-external-id-channels-segment.md b/.server-changes/session-external-id-channels-segment.md deleted file mode 100644 index 3a7110ec888..00000000000 --- a/.server-changes/session-external-id-channels-segment.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: improvement ---- - -Session external ids can no longer contain a `/channels` path segment (for example `chat-1/channels/support`) or end in `:channels`, since both forms name a session's channels. Creating a session with one now returns a 422 validation error. diff --git a/.server-changes/session-runs-always-linked.md b/.server-changes/session-runs-always-linked.md deleted file mode 100644 index e73c39e595a..00000000000 --- a/.server-changes/session-runs-always-linked.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -New runs a session starts are now always linked to their session, so their Agent tab no longer fails to load because the link was missing. diff --git a/.server-changes/vercel-uninstall.md b/.server-changes/vercel-uninstall.md deleted file mode 100644 index 2c56daa6148..00000000000 --- a/.server-changes/vercel-uninstall.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Deleting an organization now uninstalls its Vercel integration. A Vercel installation disabled on Vercel's side is reported as such instead of as an expired connection, and removing it no longer reports success. diff --git a/.server-changes/webhook-endpoints-sync-on-promote.md b/.server-changes/webhook-endpoints-sync-on-promote.md deleted file mode 100644 index f076e651ecc..00000000000 --- a/.server-changes/webhook-endpoints-sync-on-promote.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Promoting or rolling back a deployment now updates your webhook endpoints to match the deployment that's now current. diff --git a/hosting/k8s/helm/Chart.yaml b/hosting/k8s/helm/Chart.yaml index 1743c2815c2..b218a63e0d0 100644 --- a/hosting/k8s/helm/Chart.yaml +++ b/hosting/k8s/helm/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: trigger description: The official Trigger.dev Helm chart type: application -version: 4.8.1 -appVersion: v4.8.1 +version: 4.8.2 +appVersion: v4.8.2 home: https://trigger.dev sources: - https://github.com/triggerdotdev/trigger.dev diff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.md index 06017b5011f..7d184aee52f 100644 --- a/packages/build/CHANGELOG.md +++ b/packages/build/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/build +## 4.8.2 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/build/package.json b/packages/build/package.json index 0c616f9a1e5..9909569a7d3 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/build", - "version": "4.8.1", + "version": "4.8.2", "description": "trigger.dev build extensions", "license": "MIT", "publishConfig": { @@ -82,7 +82,7 @@ }, "dependencies": { "@prisma/config": "^6.10.0", - "@trigger.dev/core": "workspace:4.8.1", + "@trigger.dev/core": "workspace:4.8.2", "mlly": "^1.7.1", "pkg-types": "^1.1.3", "tinyglobby": "^0.2.2", diff --git a/packages/cli-v3/CHANGELOG.md b/packages/cli-v3/CHANGELOG.md index 82e963a6b56..ad1167c82cc 100644 --- a/packages/cli-v3/CHANGELOG.md +++ b/packages/cli-v3/CHANGELOG.md @@ -1,5 +1,16 @@ # trigger.dev +## 4.8.2 + +### Patch Changes + +- Upgrade `socket.io-client` to 4.8.4 so projects using the SDK and CLI install `ws` 8.21 instead of 8.17.1, which has published advisories (GHSA-96hv-2xvq-fx4p, GHSA-58qx-3vcg-4xpx). The old pin blocked upgrading `ws` without a package manager override. ([`2df9860b4`](https://github.com/triggerdotdev/trigger.dev/commit/2df9860b4c736da3ba3b8dd61b8f08a4d9b03521)) +- Adds the `bun-1.4` runtime. `runtime: "bun-1.4"` deploys on Bun 1.4.4 in a Bun-only image with no Node.js binary, and the run controller itself runs under Bun. `runtime: "bun"` is unchanged (Bun 1.3 with Node.js alongside it); `bun-legacy` is accepted as an explicit spelling of the same runtime. On Bun 1.4 the worker no longer crashes at startup on the `--no-warnings=ExperimentalWarning` flag. ([`a8a87850b`](https://github.com/triggerdotdev/trigger.dev/commit/a8a87850bdaa57b6e40c0dcdbdf8b5bf59a39113)) +- Updated dependencies: + - `@trigger.dev/core@4.8.2` + - `@trigger.dev/build@4.8.2` + - `@trigger.dev/schema-to-json@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/cli-v3/package.json b/packages/cli-v3/package.json index 346a0da9b1a..a3454c463b2 100644 --- a/packages/cli-v3/package.json +++ b/packages/cli-v3/package.json @@ -1,6 +1,6 @@ { "name": "trigger.dev", - "version": "4.8.1", + "version": "4.8.2", "description": "A Command-Line Interface for Trigger.dev projects", "type": "module", "license": "MIT", @@ -84,9 +84,9 @@ "@opentelemetry/api-logs": "0.219.0", "@opentelemetry/instrumentation": "0.219.0", "@s2-dev/streamstore": "^0.25.0", - "@trigger.dev/build": "workspace:4.8.1", - "@trigger.dev/core": "workspace:4.8.1", - "@trigger.dev/schema-to-json": "workspace:4.8.1", + "@trigger.dev/build": "workspace:4.8.2", + "@trigger.dev/core": "workspace:4.8.2", + "@trigger.dev/schema-to-json": "workspace:4.8.2", "ansi-escapes": "^7.0.0", "braces": "^3.0.3", "c12": "^1.11.1", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index ead3275ab8a..1196a31be76 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,14 @@ # internal-platform +## 4.8.2 + +### Patch Changes + +- Run metadata operations now reject JSON-path keys that use escaped dots to reach `__proto__`, `constructor` or `prototype`. ([`dce5048a8`](https://github.com/triggerdotdev/trigger.dev/commit/dce5048a8e4ac35e72f85b4534239dec6a013211)) +- Upgrade `socket.io-client` to 4.8.4 so projects using the SDK and CLI install `ws` 8.21 instead of 8.17.1, which has published advisories (GHSA-96hv-2xvq-fx4p, GHSA-58qx-3vcg-4xpx). The old pin blocked upgrading `ws` without a package manager override. ([`2df9860b4`](https://github.com/triggerdotdev/trigger.dev/commit/2df9860b4c736da3ba3b8dd61b8f08a4d9b03521)) +- `runs.subscribeToRun` now ends after the run completes. The `for await` loop exits right after the update with the final status, and the subscription stops its connection, so a script that subscribes to a run exits on its own. Pass `stopOnCompletion: false` to keep the subscription open after completion. ([`485ab83aa`](https://github.com/triggerdotdev/trigger.dev/commit/485ab83aaf55057af9da8944570285f05880eaaf)) +- Adds the `bun-1.4` runtime. `runtime: "bun-1.4"` deploys on Bun 1.4.4 in a Bun-only image with no Node.js binary, and the run controller itself runs under Bun. `runtime: "bun"` is unchanged (Bun 1.3 with Node.js alongside it); `bun-legacy` is accepted as an explicit spelling of the same runtime. On Bun 1.4 the worker no longer crashes at startup on the `--no-warnings=ExperimentalWarning` flag. ([`a8a87850b`](https://github.com/triggerdotdev/trigger.dev/commit/a8a87850bdaa57b6e40c0dcdbdf8b5bf59a39113)) + ## 4.8.1 ## 4.8.0 diff --git a/packages/core/package.json b/packages/core/package.json index 5cf9d17c73c..b3ab9d3310d 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/core", - "version": "4.8.1", + "version": "4.8.2", "description": "Core code used across the Trigger.dev SDK and platform", "license": "MIT", "publishConfig": { diff --git a/packages/linear/CHANGELOG.md b/packages/linear/CHANGELOG.md index fd736341a8e..017e70138c5 100644 --- a/packages/linear/CHANGELOG.md +++ b/packages/linear/CHANGELOG.md @@ -1,5 +1,13 @@ # @trigger.dev/linear +## 4.8.2 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/sdk@4.8.2` + - `@trigger.dev/core@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/linear/package.json b/packages/linear/package.json index 026873413c0..2745915d762 100644 --- a/packages/linear/package.json +++ b/packages/linear/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/linear", - "version": "4.8.1", + "version": "4.8.2", "description": "Linear agent sessions as a chat frontend (channel) for trigger.dev agents", "license": "MIT", "publishConfig": { @@ -41,15 +41,15 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:4.8.1" + "@trigger.dev/core": "workspace:4.8.2" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.1", + "@trigger.dev/sdk": "workspace:^4.8.2", "ai": "^5.0.0 || ^6.0.0 || >=7.0.0-canary <8" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.5", - "@trigger.dev/sdk": "workspace:4.8.1", + "@trigger.dev/sdk": "workspace:4.8.2", "@types/node": "^24.13.3", "rimraf": "6.0.1", "tshy": "^3.0.2", diff --git a/packages/python/CHANGELOG.md b/packages/python/CHANGELOG.md index 754dd2b6475..2884f0c56af 100644 --- a/packages/python/CHANGELOG.md +++ b/packages/python/CHANGELOG.md @@ -1,5 +1,14 @@ # @trigger.dev/python +## 4.8.2 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/sdk@4.8.2` + - `@trigger.dev/core@4.8.2` + - `@trigger.dev/build@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/python/package.json b/packages/python/package.json index 790f8f514e3..9bcdf88405b 100644 --- a/packages/python/package.json +++ b/packages/python/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/python", - "version": "4.8.1", + "version": "4.8.2", "description": "Python runtime and build extension for Trigger.dev", "license": "MIT", "publishConfig": { @@ -45,7 +45,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:4.8.1", + "@trigger.dev/core": "workspace:4.8.2", "tinyexec": "^0.3.2" }, "devDependencies": { @@ -55,12 +55,12 @@ "typescript": "catalog:", "tsx": "4.17.0", "@arethetypeswrong/cli": "^0.18.5", - "@trigger.dev/build": "workspace:4.8.1", - "@trigger.dev/sdk": "workspace:4.8.1" + "@trigger.dev/build": "workspace:4.8.2", + "@trigger.dev/sdk": "workspace:4.8.2" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.1", - "@trigger.dev/build": "workspace:^4.8.1" + "@trigger.dev/sdk": "workspace:^4.8.2", + "@trigger.dev/build": "workspace:^4.8.2" }, "engines": { "node": ">=18.20.0" diff --git a/packages/react-hooks/CHANGELOG.md b/packages/react-hooks/CHANGELOG.md index 3044526225a..4510f575253 100644 --- a/packages/react-hooks/CHANGELOG.md +++ b/packages/react-hooks/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/react-hooks +## 4.8.2 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/react-hooks/package.json b/packages/react-hooks/package.json index 27894b99378..fe7b1dc18cc 100644 --- a/packages/react-hooks/package.json +++ b/packages/react-hooks/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/react-hooks", - "version": "4.8.1", + "version": "4.8.2", "description": "trigger.dev react hooks", "license": "MIT", "publishConfig": { @@ -37,7 +37,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:^4.8.1", + "@trigger.dev/core": "workspace:^4.8.2", "swr": "^2.2.5" }, "devDependencies": { diff --git a/packages/redis-worker/CHANGELOG.md b/packages/redis-worker/CHANGELOG.md index 88ecf5c8d0a..c27d6f61f9c 100644 --- a/packages/redis-worker/CHANGELOG.md +++ b/packages/redis-worker/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/redis-worker +## 4.8.2 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/redis-worker/package.json b/packages/redis-worker/package.json index 8c9e7160219..5418b681344 100644 --- a/packages/redis-worker/package.json +++ b/packages/redis-worker/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/redis-worker", - "version": "4.8.1", + "version": "4.8.2", "description": "Redis worker for trigger.dev", "license": "MIT", "publishConfig": { @@ -23,7 +23,7 @@ "test": "vitest --sequence.concurrent=false --no-file-parallelism" }, "dependencies": { - "@trigger.dev/core": "workspace:4.8.1", + "@trigger.dev/core": "workspace:4.8.2", "nanoid": "^5.1.16", "p-limit": "^6.2.0", "seedrandom": "^3.0.5", diff --git a/packages/rsc/CHANGELOG.md b/packages/rsc/CHANGELOG.md index fb66752d93e..ae834929cbb 100644 --- a/packages/rsc/CHANGELOG.md +++ b/packages/rsc/CHANGELOG.md @@ -1,5 +1,13 @@ # @trigger.dev/rsc +## 4.8.2 + +### Patch Changes + +- Adds the `bun-1.4` runtime. `runtime: "bun-1.4"` deploys on Bun 1.4.4 in a Bun-only image with no Node.js binary, and the run controller itself runs under Bun. `runtime: "bun"` is unchanged (Bun 1.3 with Node.js alongside it); `bun-legacy` is accepted as an explicit spelling of the same runtime. On Bun 1.4 the worker no longer crashes at startup on the `--no-warnings=ExperimentalWarning` flag. ([`a8a87850b`](https://github.com/triggerdotdev/trigger.dev/commit/a8a87850bdaa57b6e40c0dcdbdf8b5bf59a39113)) +- Updated dependencies: + - `@trigger.dev/core@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/rsc/package.json b/packages/rsc/package.json index 6f688a549b2..d822031da0a 100644 --- a/packages/rsc/package.json +++ b/packages/rsc/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/rsc", - "version": "4.8.1", + "version": "4.8.2", "description": "trigger.dev rsc", "license": "MIT", "publishConfig": { @@ -37,7 +37,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:^4.8.1", + "@trigger.dev/core": "workspace:^4.8.2", "mlly": "^1.7.1", "react": "19.0.0-rc.1", "react-dom": "19.0.0-rc.1" diff --git a/packages/schema-to-json/CHANGELOG.md b/packages/schema-to-json/CHANGELOG.md index f9f086dc1b1..e599fe3031f 100644 --- a/packages/schema-to-json/CHANGELOG.md +++ b/packages/schema-to-json/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/schema-to-json +## 4.8.2 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/schema-to-json/package.json b/packages/schema-to-json/package.json index b846539b182..834b73a8d6a 100644 --- a/packages/schema-to-json/package.json +++ b/packages/schema-to-json/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/schema-to-json", - "version": "4.8.1", + "version": "4.8.2", "description": "Convert various schema validation libraries to JSON Schema", "license": "MIT", "publishConfig": { diff --git a/packages/slack/CHANGELOG.md b/packages/slack/CHANGELOG.md index c45ab5118fb..fa16fbcda11 100644 --- a/packages/slack/CHANGELOG.md +++ b/packages/slack/CHANGELOG.md @@ -1,5 +1,13 @@ # @trigger.dev/slack +## 4.8.2 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/sdk@4.8.2` + - `@trigger.dev/core@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/slack/package.json b/packages/slack/package.json index 3b3cb59eadb..ab391f69ed7 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/slack", - "version": "4.8.1", + "version": "4.8.2", "description": "Slack chat frontend (channel) for trigger.dev agents", "license": "MIT", "publishConfig": { @@ -41,14 +41,14 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:4.8.1" + "@trigger.dev/core": "workspace:4.8.2" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.1" + "@trigger.dev/sdk": "workspace:^4.8.2" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.5", - "@trigger.dev/sdk": "workspace:4.8.1", + "@trigger.dev/sdk": "workspace:4.8.2", "@types/node": "^24.13.3", "rimraf": "6.0.1", "tshy": "^3.0.2", diff --git a/packages/trigger-sdk/CHANGELOG.md b/packages/trigger-sdk/CHANGELOG.md index 321761b9995..5f305ab0bc5 100644 --- a/packages/trigger-sdk/CHANGELOG.md +++ b/packages/trigger-sdk/CHANGELOG.md @@ -1,5 +1,26 @@ # @trigger.dev/sdk +## 4.8.2 + +### Patch Changes + +- Fix `chat.inject` messages added from a tool mid-turn being saved before the assistant's response. They now stay after the tool result, where the model saw them, so the next turn keeps the same prompt prefix. If you roll `@trigger.dev/sdk` back to an earlier version, chats saved by this version lose these mid-turn `chat.inject` messages from the model's context, though the chat history shown in the UI keeps them. ([`fc33769a5`](https://github.com/triggerdotdev/trigger.dev/commit/fc33769a559a69cae687354413b2316bf9fd0bf3)) +- The bundled `trigger-cost-savings` skill now notes that a webhook delivery starts no run when no subscriber's filter matches, so it costs no compute. ([#5051](https://github.com/triggerdotdev/trigger.dev/pull/5051)) +- Stream a sub-agent's reply through a parent tool call with `chat.forwardSubAgent`. Each chunk is written to the parent chat once and the tool resolves with the sub-agent's final message, so streaming a sub-agent costs bytes in proportion to its reply. Yielding `stream.messages()` snapshots resends the whole message on every chunk, which grows with the square of the reply. ([`bdc994c4d`](https://github.com/triggerdotdev/trigger.dev/commit/bdc994c4d3f80d047b4d0a830cca81330912f8c2)) + + ```ts + execute: async ({ topic }, { toolCallId, abortSignal }) => { + const stream = await researcher.sendMessage(topic, { abortSignal }); + return await chat.forwardSubAgent(stream, { toolCallId }); + }, + ``` + + Render it while it runs with `useSubAgentMessages()` from `@trigger.dev/sdk/chat/react` (or `createSubAgentMessages()` outside React). + +- Fix a `chat.agent` turn failing after a head start that ended with two or more parallel tool calls. When those tools finished out of call order, the agent sent their results to the model twice on the next step, and the provider rejected the request (Anthropic: "each tool_use must have a single result"). Each handed-over tool result is now sent once. ([`d06ee5825`](https://github.com/triggerdotdev/trigger.dev/commit/d06ee5825baf1d92202604f4ebc1107a01a1aad6)) +- Updated dependencies: + - `@trigger.dev/core@4.8.2` + ## 4.8.1 ### Patch Changes diff --git a/packages/trigger-sdk/package.json b/packages/trigger-sdk/package.json index d993ea5825a..39756daa0bd 100644 --- a/packages/trigger-sdk/package.json +++ b/packages/trigger-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/sdk", - "version": "4.8.1", + "version": "4.8.2", "description": "trigger.dev Node.JS SDK", "license": "MIT", "publishConfig": { @@ -80,7 +80,7 @@ "dependencies": { "@opentelemetry/api": "1.9.1", "@opentelemetry/semantic-conventions": "1.41.1", - "@trigger.dev/core": "workspace:4.8.1", + "@trigger.dev/core": "workspace:4.8.2", "uncrypto": "^0.1.3" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 088cb50279f..915bf0b2118 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1575,7 +1575,7 @@ importers: specifier: ^6.10.0 version: 6.19.0(magicast@0.3.5) '@trigger.dev/core': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../core mlly: specifier: ^1.7.1 @@ -1642,13 +1642,13 @@ importers: specifier: ^0.25.0 version: 0.25.0(supports-color@10.0.0) '@trigger.dev/build': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../build '@trigger.dev/core': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../core '@trigger.dev/schema-to-json': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../schema-to-json ansi-escapes: specifier: ^7.0.0 @@ -1959,14 +1959,14 @@ importers: packages/linear: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../core devDependencies: '@arethetypeswrong/cli': specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/sdk': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2009,7 +2009,7 @@ importers: packages/python: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../core tinyexec: specifier: ^0.3.2 @@ -2019,10 +2019,10 @@ importers: specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/build': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../build '@trigger.dev/sdk': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2043,7 +2043,7 @@ importers: packages/react-hooks: dependencies: '@trigger.dev/core': - specifier: workspace:^4.8.1 + specifier: workspace:^4.8.2 version: link:../core react: specifier: 18.3.1 @@ -2077,7 +2077,7 @@ importers: packages/redis-worker: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../core cron-parser: specifier: ^4.9.0 @@ -2123,7 +2123,7 @@ importers: packages/rsc: dependencies: '@trigger.dev/core': - specifier: workspace:^4.8.1 + specifier: workspace:^4.8.2 version: link:../core mlly: specifier: ^1.7.1 @@ -2203,14 +2203,14 @@ importers: packages/slack: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../core devDependencies: '@arethetypeswrong/cli': specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/sdk': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2237,7 +2237,7 @@ importers: specifier: 1.41.1 version: 1.41.1 '@trigger.dev/core': - specifier: workspace:4.8.1 + specifier: workspace:4.8.2 version: link:../core react: specifier: 18.3.1