diff --git a/.changeset/chat-agent-ai-sdk-7-channel-files.md b/.changeset/chat-agent-ai-sdk-7-channel-files.md deleted file mode 100644 index b15ea987d1c..00000000000 --- a/.changeset/chat-agent-ai-sdk-7-channel-files.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Fix `chat.agent` channels on AI SDK 7 failing the whole turn when a channel file can't be downloaded. A file the connector owns but can't read is now replaced with an `[Attached file "…" could not be loaded]` note and the agent still answers, as it does on AI SDK 6. AI SDK 7 describes a file's URL in a tagged form that the SDK didn't recognise, so the failed file was never found. - -An inline `data:` file in a channel message is no longer passed to a connector's `download`, and on AI SDK 6 it reaches the model instead of failing the turn. diff --git a/.changeset/chat-agent-ai-sdk-7-compaction.md b/.changeset/chat-agent-ai-sdk-7-compaction.md deleted file mode 100644 index 13771db68d4..00000000000 --- a/.changeset/chat-agent-ai-sdk-7-compaction.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Fix two compaction problems on AI SDK 7. After a compaction, a `chat.agent` turn that continued a tool approval sent the model the full pre-compaction transcript instead of the summary, which undid the compaction (this also affected `chat.MessageAccumulator`). And between-turn compaction, in `chat.agent` and `chat.createSession`, was asked about the whole turn's token usage instead of the last step's, so `shouldCompact` thresholds triggered too early on multi-step turns. - -If you call `compactIfNeeded` on a `chat.MessageAccumulator`, pass it the last step's usage, `(await result.steps).at(-1)?.usage`. `result.usage` is the turn's sum on AI SDK 7. diff --git a/.changeset/chat-agent-ai-sdk-7-steering.md b/.changeset/chat-agent-ai-sdk-7-steering.md deleted file mode 100644 index db1842ff3cf..00000000000 --- a/.changeset/chat-agent-ai-sdk-7-steering.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Fix `chat.agent` steering on AI SDK 7. A steering message that `pendingMessages.prepare` turns into a `system` message no longer makes the step fail with an invalid-prompt error: `chat.toStreamTextOptions()` now sets `allowSystemInMessages: true`, as AI SDK 5 and 6 already behave (pass `allowSystemInMessages: false` after the spread to keep AI SDK 7's strict default). A turn whose stream ends on an error now reports `finishReason: "error"` in `onTurnComplete`, where it could be `undefined` or the previous step's reason. diff --git a/.changeset/chat-agent-bigint-tojson.md b/.changeset/chat-agent-bigint-tojson.md deleted file mode 100644 index 1a33f764498..00000000000 --- a/.changeset/chat-agent-bigint-tojson.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Fix a `chat.agent` tool result containing a `BigInt` failing the next turn's model call in apps that define `BigInt.prototype.toJSON`. It is now sent as the JSON that `toJSON` gives, in the next step and in later turns. diff --git a/.changeset/chat-agent-tool-results-json.md b/.changeset/chat-agent-tool-results-json.md deleted file mode 100644 index d614e19b41c..00000000000 --- a/.changeset/chat-agent-tool-results-json.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/sdk": patch ---- - -Fix `chat.agent` failing the next step or turn with `AI_InvalidPromptError` ("The messages do not match the ModelMessage[] schema") when a tool returned a value that isn't plain JSON, such as a `Date` from an ORM row. On AI SDK 6, and AI SDK 7 before 7.0.101, tool results are now converted to JSON the way newer AI SDK versions do it, so a `Date` reaches the model as its ISO string. A value JSON can't hold, such as a `BigInt` or a circular reference, is replaced by an error result that names the tool and the field, and the same error is logged on the run. diff --git a/.changeset/keepalive-wait-guard-reset.md b/.changeset/keepalive-wait-guard-reset.md deleted file mode 100644 index c29e63094c7..00000000000 --- a/.changeset/keepalive-wait-guard-reset.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@trigger.dev/core": patch ---- - -Fix runs failing with `TASK_DID_CONCURRENT_WAIT` on their first wait when `processKeepAlive` is enabled. diff --git a/.changeset/session-concurrency-key-map.md b/.changeset/session-concurrency-key-map.md deleted file mode 100644 index b96a5ee389c..00000000000 --- a/.changeset/session-concurrency-key-map.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@trigger.dev/core": patch -"@trigger.dev/sdk": patch ---- - -Sessions and `chat.agent` now accept the object form of `concurrencyKey` in `triggerConfig`, giving each concurrency limit its own key, the same as `task.trigger()`. diff --git a/.server-changes/limit-worker-source-file-size.md b/.server-changes/limit-worker-source-file-size.md deleted file mode 100644 index a2cb94d7301..00000000000 --- a/.server-changes/limit-worker-source-file-size.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Worker registration now refuses task source files that are too large once decompressed or aren't valid text, with an error that names the file. diff --git a/.server-changes/session-page-conversation-fixes.md b/.server-changes/session-page-conversation-fixes.md deleted file mode 100644 index e4242b79788..00000000000 --- a/.server-changes/session-page-conversation-fixes.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -The session page now says when earlier conversation messages couldn't be loaded, with a retry, and closing a session keeps the view you were on. diff --git a/.server-changes/trace-filter-live-updates.md b/.server-changes/trace-filter-live-updates.md deleted file mode 100644 index c7ab4f31b60..00000000000 --- a/.server-changes/trace-filter-live-updates.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -On a live run's trace, "Errors only" and search now pick up a span that fails or gets a new name after it first appeared. diff --git a/.server-changes/webhook-url-reserved-addresses.md b/.server-changes/webhook-url-reserved-addresses.md deleted file mode 100644 index dca52c24d05..00000000000 --- a/.server-changes/webhook-url-reserved-addresses.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -area: webapp -type: fix ---- - -Alert webhook URLs that point at private or reserved network addresses are now rejected in more cases. diff --git a/hosting/k8s/helm/Chart.yaml b/hosting/k8s/helm/Chart.yaml index 8e37c570617..4d37ae07549 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.6 -appVersion: v4.8.6 +version: 4.8.7 +appVersion: v4.8.7 home: https://trigger.dev sources: - https://github.com/triggerdotdev/trigger.dev diff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.md index 11e8277daa7..bc68d5d03b5 100644 --- a/packages/build/CHANGELOG.md +++ b/packages/build/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/build +## 4.8.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/build/package.json b/packages/build/package.json index 28656f06903..2c7d3f91493 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/build", - "version": "4.8.6", + "version": "4.8.7", "description": "trigger.dev build extensions", "license": "MIT", "publishConfig": { @@ -82,7 +82,7 @@ }, "dependencies": { "@prisma/config": "^6.10.0", - "@trigger.dev/core": "workspace:4.8.6", + "@trigger.dev/core": "workspace:4.8.7", "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 e49b56254ae..451eecb238b 100644 --- a/packages/cli-v3/CHANGELOG.md +++ b/packages/cli-v3/CHANGELOG.md @@ -1,5 +1,14 @@ # trigger.dev +## 4.8.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.7` + - `@trigger.dev/build@4.8.7` + - `@trigger.dev/schema-to-json@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/cli-v3/package.json b/packages/cli-v3/package.json index 276e490abdb..9bf58b64906 100644 --- a/packages/cli-v3/package.json +++ b/packages/cli-v3/package.json @@ -1,6 +1,6 @@ { "name": "trigger.dev", - "version": "4.8.6", + "version": "4.8.7", "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.6", - "@trigger.dev/core": "workspace:4.8.6", - "@trigger.dev/schema-to-json": "workspace:4.8.6", + "@trigger.dev/build": "workspace:4.8.7", + "@trigger.dev/core": "workspace:4.8.7", + "@trigger.dev/schema-to-json": "workspace:4.8.7", "ansi-escapes": "^7.0.0", "braces": "^3.0.3", "c12": "^1.11.1", diff --git a/packages/convex/CHANGELOG.md b/packages/convex/CHANGELOG.md index a8c9b09998b..90e9e17b8d4 100644 --- a/packages/convex/CHANGELOG.md +++ b/packages/convex/CHANGELOG.md @@ -1,5 +1,7 @@ # @trigger.dev/convex +## 4.8.7 + ## 4.8.6 ## 4.8.5 diff --git a/packages/convex/package.json b/packages/convex/package.json index 893bd128915..c2dbaa675a9 100644 --- a/packages/convex/package.json +++ b/packages/convex/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/convex", - "version": "4.8.6", + "version": "4.8.7", "description": "Run Trigger.dev tasks from Convex mutations and query their results reactively", "license": "Apache-2.0", "type": "module", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index e3c461d2b28..2249d0d8795 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,12 @@ # internal-platform +## 4.8.7 + +### Patch Changes + +- Fix runs failing with `TASK_DID_CONCURRENT_WAIT` on their first wait when `processKeepAlive` is enabled. ([`fe57ea018`](https://github.com/triggerdotdev/trigger.dev/commit/fe57ea0183f1bba5607967f2c6a929a0a4a81e11)) +- Sessions and `chat.agent` now accept the object form of `concurrencyKey` in `triggerConfig`, giving each concurrency limit its own key, the same as `task.trigger()`. ([`767ab4521`](https://github.com/triggerdotdev/trigger.dev/commit/767ab452135fc9c0107f84ba56d0add7a8b65567)) + ## 4.8.6 ### Patch Changes diff --git a/packages/core/package.json b/packages/core/package.json index f5f36d319c8..c65fe6f2845 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/core", - "version": "4.8.6", + "version": "4.8.7", "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 f2c5867f862..de8011589be 100644 --- a/packages/linear/CHANGELOG.md +++ b/packages/linear/CHANGELOG.md @@ -1,5 +1,13 @@ # @trigger.dev/linear +## 4.8.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/sdk@4.8.7` + - `@trigger.dev/core@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/linear/package.json b/packages/linear/package.json index 43f3f552804..091259d1f93 100644 --- a/packages/linear/package.json +++ b/packages/linear/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/linear", - "version": "4.8.6", + "version": "4.8.7", "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.6" + "@trigger.dev/core": "workspace:4.8.7" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.6", + "@trigger.dev/sdk": "workspace:^4.8.7", "ai": "^5.0.0 || ^6.0.0 || >=7.0.0-canary <8" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.5", - "@trigger.dev/sdk": "workspace:4.8.6", + "@trigger.dev/sdk": "workspace:4.8.7", "@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 084bd69321c..6ba10ab7bad 100644 --- a/packages/python/CHANGELOG.md +++ b/packages/python/CHANGELOG.md @@ -1,5 +1,14 @@ # @trigger.dev/python +## 4.8.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/sdk@4.8.7` + - `@trigger.dev/core@4.8.7` + - `@trigger.dev/build@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/python/package.json b/packages/python/package.json index f71513cde43..165d0c97013 100644 --- a/packages/python/package.json +++ b/packages/python/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/python", - "version": "4.8.6", + "version": "4.8.7", "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.6", + "@trigger.dev/core": "workspace:4.8.7", "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.6", - "@trigger.dev/sdk": "workspace:4.8.6" + "@trigger.dev/build": "workspace:4.8.7", + "@trigger.dev/sdk": "workspace:4.8.7" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.6", - "@trigger.dev/build": "workspace:^4.8.6" + "@trigger.dev/sdk": "workspace:^4.8.7", + "@trigger.dev/build": "workspace:^4.8.7" }, "engines": { "node": ">=18.20.0" diff --git a/packages/react-hooks/CHANGELOG.md b/packages/react-hooks/CHANGELOG.md index 69cecf3bcd2..014abf1f059 100644 --- a/packages/react-hooks/CHANGELOG.md +++ b/packages/react-hooks/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/react-hooks +## 4.8.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/react-hooks/package.json b/packages/react-hooks/package.json index 4838cd9838e..8dcc394872f 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.6", + "version": "4.8.7", "description": "trigger.dev react hooks", "license": "MIT", "publishConfig": { @@ -37,7 +37,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:^4.8.6", + "@trigger.dev/core": "workspace:^4.8.7", "swr": "^2.2.5" }, "devDependencies": { diff --git a/packages/redis-worker/CHANGELOG.md b/packages/redis-worker/CHANGELOG.md index b67249ced8b..cf90f557fef 100644 --- a/packages/redis-worker/CHANGELOG.md +++ b/packages/redis-worker/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/redis-worker +## 4.8.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/redis-worker/package.json b/packages/redis-worker/package.json index 20458bd1f90..f944dc48c52 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.6", + "version": "4.8.7", "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.6", + "@trigger.dev/core": "workspace:4.8.7", "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 412c394a123..b23551bfbd7 100644 --- a/packages/rsc/CHANGELOG.md +++ b/packages/rsc/CHANGELOG.md @@ -1,5 +1,12 @@ # @trigger.dev/rsc +## 4.8.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/rsc/package.json b/packages/rsc/package.json index b7ac47352b0..915fa949bb6 100644 --- a/packages/rsc/package.json +++ b/packages/rsc/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/rsc", - "version": "4.8.6", + "version": "4.8.7", "description": "trigger.dev rsc", "license": "MIT", "publishConfig": { @@ -37,7 +37,7 @@ "check-exports": "attw --pack ." }, "dependencies": { - "@trigger.dev/core": "workspace:^4.8.6", + "@trigger.dev/core": "workspace:^4.8.7", "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 46c6f38f12e..4b946897fb3 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.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/core@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/schema-to-json/package.json b/packages/schema-to-json/package.json index b37e3017d5e..348ea0d3006 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.6", + "version": "4.8.7", "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 e0edaec800a..95951b7fa34 100644 --- a/packages/slack/CHANGELOG.md +++ b/packages/slack/CHANGELOG.md @@ -1,5 +1,13 @@ # @trigger.dev/slack +## 4.8.7 + +### Patch Changes + +- Updated dependencies: + - `@trigger.dev/sdk@4.8.7` + - `@trigger.dev/core@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/slack/package.json b/packages/slack/package.json index c1f34a50eaf..4b11ee8a276 100644 --- a/packages/slack/package.json +++ b/packages/slack/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/slack", - "version": "4.8.6", + "version": "4.8.7", "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.6" + "@trigger.dev/core": "workspace:4.8.7" }, "peerDependencies": { - "@trigger.dev/sdk": "workspace:^4.8.6" + "@trigger.dev/sdk": "workspace:^4.8.7" }, "devDependencies": { "@arethetypeswrong/cli": "^0.18.5", - "@trigger.dev/sdk": "workspace:4.8.6", + "@trigger.dev/sdk": "workspace:4.8.7", "@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 f5c9990a0d7..c6c6ae2b6fe 100644 --- a/packages/trigger-sdk/CHANGELOG.md +++ b/packages/trigger-sdk/CHANGELOG.md @@ -1,5 +1,24 @@ # @trigger.dev/sdk +## 4.8.7 + +### Patch Changes + +- Fix `chat.agent` channels on AI SDK 7 failing the whole turn when a channel file can't be downloaded. A file the connector owns but can't read is now replaced with an `[Attached file "…" could not be loaded]` note and the agent still answers, as it does on AI SDK 6. AI SDK 7 describes a file's URL in a tagged form that the SDK didn't recognise, so the failed file was never found. ([`c888eb885`](https://github.com/triggerdotdev/trigger.dev/commit/c888eb885ea0ef04f777720df4c534eed80d1eec)) + + An inline `data:` file in a channel message is no longer passed to a connector's `download`, and on AI SDK 6 it reaches the model instead of failing the turn. + +- Fix two compaction problems on AI SDK 7. After a compaction, a `chat.agent` turn that continued a tool approval sent the model the full pre-compaction transcript instead of the summary, which undid the compaction (this also affected `chat.MessageAccumulator`). And between-turn compaction, in `chat.agent` and `chat.createSession`, was asked about the whole turn's token usage instead of the last step's, so `shouldCompact` thresholds triggered too early on multi-step turns. ([`c615d762e`](https://github.com/triggerdotdev/trigger.dev/commit/c615d762e4644f70c9b7e4420e8edc75fe97c8d1)) + + If you call `compactIfNeeded` on a `chat.MessageAccumulator`, pass it the last step's usage, `(await result.steps).at(-1)?.usage`. `result.usage` is the turn's sum on AI SDK 7. + +- Fix `chat.agent` steering on AI SDK 7. A steering message that `pendingMessages.prepare` turns into a `system` message no longer makes the step fail with an invalid-prompt error: `chat.toStreamTextOptions()` now sets `allowSystemInMessages: true`, as AI SDK 5 and 6 already behave (pass `allowSystemInMessages: false` after the spread to keep AI SDK 7's strict default). A turn whose stream ends on an error now reports `finishReason: "error"` in `onTurnComplete`, where it could be `undefined` or the previous step's reason. ([`53f17ee0b`](https://github.com/triggerdotdev/trigger.dev/commit/53f17ee0b9d7ca3be81b482f73f7fe15ba2f1f8a)) +- Fix a `chat.agent` tool result containing a `BigInt` failing the next turn's model call in apps that define `BigInt.prototype.toJSON`. It is now sent as the JSON that `toJSON` gives, in the next step and in later turns. ([`8167e49f3`](https://github.com/triggerdotdev/trigger.dev/commit/8167e49f3f7274757d8b3adf55b32f2390c4ada4)) +- Fix `chat.agent` failing the next step or turn with `AI_InvalidPromptError` ("The messages do not match the ModelMessage[] schema") when a tool returned a value that isn't plain JSON, such as a `Date` from an ORM row. On AI SDK 6, and AI SDK 7 before 7.0.101, tool results are now converted to JSON the way newer AI SDK versions do it, so a `Date` reaches the model as its ISO string. A value JSON can't hold, such as a `BigInt` or a circular reference, is replaced by an error result that names the tool and the field, and the same error is logged on the run. ([`49b3dc055`](https://github.com/triggerdotdev/trigger.dev/commit/49b3dc055da8ef8ee62cf860e9b4c57d1e751b7e)) +- Sessions and `chat.agent` now accept the object form of `concurrencyKey` in `triggerConfig`, giving each concurrency limit its own key, the same as `task.trigger()`. ([`767ab4521`](https://github.com/triggerdotdev/trigger.dev/commit/767ab452135fc9c0107f84ba56d0add7a8b65567)) +- Updated dependencies: + - `@trigger.dev/core@4.8.7` + ## 4.8.6 ### Patch Changes diff --git a/packages/trigger-sdk/package.json b/packages/trigger-sdk/package.json index 34addff74ee..4c90160233d 100644 --- a/packages/trigger-sdk/package.json +++ b/packages/trigger-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@trigger.dev/sdk", - "version": "4.8.6", + "version": "4.8.7", "description": "trigger.dev Node.JS SDK", "license": "MIT", "publishConfig": { @@ -87,7 +87,7 @@ "dependencies": { "@opentelemetry/api": "1.9.1", "@opentelemetry/semantic-conventions": "1.41.1", - "@trigger.dev/core": "workspace:4.8.6", + "@trigger.dev/core": "workspace:4.8.7", "uncrypto": "^0.1.3" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b8508272699..d2d35eadf6e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1602,7 +1602,7 @@ importers: specifier: ^6.10.0 version: 6.19.0(magicast@0.3.5) '@trigger.dev/core': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../core mlly: specifier: ^1.7.1 @@ -1669,13 +1669,13 @@ importers: specifier: ^0.25.0 version: 0.25.0(supports-color@10.0.0) '@trigger.dev/build': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../build '@trigger.dev/core': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../core '@trigger.dev/schema-to-json': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../schema-to-json ansi-escapes: specifier: ^7.0.0 @@ -2001,14 +2001,14 @@ importers: packages/linear: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../core devDependencies: '@arethetypeswrong/cli': specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/sdk': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2051,7 +2051,7 @@ importers: packages/python: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../core tinyexec: specifier: ^0.3.2 @@ -2061,10 +2061,10 @@ importers: specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/build': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../build '@trigger.dev/sdk': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2085,7 +2085,7 @@ importers: packages/react-hooks: dependencies: '@trigger.dev/core': - specifier: workspace:^4.8.6 + specifier: workspace:^4.8.7 version: link:../core react: specifier: 18.3.1 @@ -2119,7 +2119,7 @@ importers: packages/redis-worker: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../core cron-parser: specifier: ^4.9.0 @@ -2165,7 +2165,7 @@ importers: packages/rsc: dependencies: '@trigger.dev/core': - specifier: workspace:^4.8.6 + specifier: workspace:^4.8.7 version: link:../core mlly: specifier: ^1.7.1 @@ -2245,14 +2245,14 @@ importers: packages/slack: dependencies: '@trigger.dev/core': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../core devDependencies: '@arethetypeswrong/cli': specifier: ^0.18.5 version: 0.18.5 '@trigger.dev/sdk': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../trigger-sdk '@types/node': specifier: 24.13.3 @@ -2279,7 +2279,7 @@ importers: specifier: 1.41.1 version: 1.41.1 '@trigger.dev/core': - specifier: workspace:4.8.6 + specifier: workspace:4.8.7 version: link:../core react: specifier: 18.3.1