Skip to content

Commit d2bad11

Browse files
committed
Merge remote-tracking branch 'origin/main' into docs/webhooks-pricing
2 parents 5d34acd + f65fa00 commit d2bad11

474 files changed

Lines changed: 28892 additions & 9575 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/chat-agent-telemetry-default.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
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.

‎.changeset/forward-sub-agent.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
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.
6+
7+
```ts
8+
execute: async ({ topic }, { toolCallId, abortSignal }) => {
9+
const stream = await researcher.sendMessage(topic, { abortSignal });
10+
return await chat.forwardSubAgent(stream, { toolCallId });
11+
},
12+
```
13+
14+
Render it while it runs with `useSubAgentMessages()` from `@trigger.dev/sdk/chat/react` (or `createSubAgentMessages()` outside React).

‎.changeset/hosted-webhook-channels.md‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

‎.changeset/hosted-webhook-ingress.md‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

‎.changeset/hosted-webhook-slack.md‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

‎.changeset/linear-channel.md‎

Lines changed: 0 additions & 23 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/core": patch
3+
---
4+
5+
Run metadata operations now reject JSON-path keys that use escaped dots to reach `__proto__`, `constructor` or `prototype`.

‎.changeset/realtime-stream-error-event.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/core": patch
3+
---
4+
5+
`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.

0 commit comments

Comments
 (0)