Skip to content

Commit 7cb5a99

Browse files
chore: release
1 parent 6e715da commit 7cb5a99

28 files changed

Lines changed: 255 additions & 119 deletions

‎.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/webhook-additional-signature-headers.md‎

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

‎.server-changes/supervisor-distrust-emudhra-roots.md‎

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

‎.server-changes/webhook-secret-rotation-grace.md‎

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

‎hosting/k8s/helm/Chart.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: trigger
33
description: The official Trigger.dev Helm chart
44
type: application
5-
version: 4.7.6
6-
appVersion: v4.7.6
5+
version: 4.8.0
6+
appVersion: v4.8.0
77
home: https://trigger.dev
88
sources:
99
- https://github.com/triggerdotdev/trigger.dev

‎packages/build/CHANGELOG.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @trigger.dev/build
22

3+
## 4.8.0
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- `@trigger.dev/core@4.8.0`
9+
310
## 4.7.6
411

512
### Patch Changes

‎packages/build/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@trigger.dev/build",
3-
"version": "4.7.6",
3+
"version": "4.8.0",
44
"description": "trigger.dev build extensions",
55
"license": "MIT",
66
"publishConfig": {
@@ -82,7 +82,7 @@
8282
},
8383
"dependencies": {
8484
"@prisma/config": "^6.10.0",
85-
"@trigger.dev/core": "workspace:4.7.6",
85+
"@trigger.dev/core": "workspace:4.8.0",
8686
"mlly": "^1.7.1",
8787
"pkg-types": "^1.1.3",
8888
"tinyglobby": "^0.2.2",

‎packages/cli-v3/CHANGELOG.md‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# trigger.dev
22

3+
## 4.8.0
4+
5+
### Minor Changes
6+
7+
- Route verified webhooks into agent sessions with `chat.event({ endpoint, key })`, and connect external chat surfaces with `chat.channels.custom({ endpoint })`. Both subscribe to a shared webhook endpoint, so an agent and your other webhook tasks can use the same provider URL. Channels support reply delivery, session binding, conversation seeding, and lifecycle reactions, and a failed turn posts a short line instead of the error (`errorMessage` sets it, as a string or a function of the failure). Use `chat.createWatchToken()` to watch a session from another surface. ([`d6955ee9f`](https://github.com/triggerdotdev/trigger.dev/commit/d6955ee9f31b0b1a3af55bb8fbbc77ba68bcb3f7))
8+
9+
A connector can also stream replies natively (`stream()`), mirror the session's state into the surface (`lifecycle()`), show tool calls as they run (`progress()`), stop a running turn from the surface (`onControl()`), post approvals and tool controls and resume the run from a verified click, download files only the surface can read (`download()`), and acknowledge or fold in messages that arrive mid-turn (`received()`, `pendingMessages`).
10+
11+
- Add hosted webhooks: declare an endpoint once with `webhooks.endpoint.define({ id, source })` and Trigger.dev hosts its URL, verifies every request, and routes each event to the endpoint's subscribers. Subscribe tasks with `webhook({ endpoint, filter, onEvent })`, each with its own type-safe filter, and pause a run until a matching webhook arrives with `webhooks.waiter.create()` and `webhooks.waiter.wait()`. ([`d6955ee9f`](https://github.com/triggerdotdev/trigger.dev/commit/d6955ee9f31b0b1a3af55bb8fbbc77ba68bcb3f7))
12+
13+
```ts
14+
export const stripe = webhooks.endpoint.define({
15+
id: "stripe",
16+
source: webhooks.stripe(),
17+
});
18+
19+
export const fulfill = webhook({
20+
id: "fulfill",
21+
endpoint: stripe,
22+
filter: "event.type == 'checkout.session.completed'",
23+
onEvent: async ({ event }) => {},
24+
});
25+
26+
const waiter = await webhooks.waiter.create(stripe, {
27+
match: { "event.data.object.metadata.orderId": order.id },
28+
});
29+
const { event } = await webhooks.waiter.wait(waiter).unwrap();
30+
```
31+
32+
Sources cover presets (`webhooks.stripe()`, `webhooks.github()`, `webhooks.svix()`, `webhooks.discord()`, and others), named providers (`webhooks.clerk()`, `webhooks.shopify()`, and more) and `webhooks.custom<T>(config)`, and most carry a setup prompt an AI coding agent can follow to register the endpoint. Retries are deduplicated on the provider's own event or delivery id where it sends one. Filters, keys and waiter `match` paths share the `event.`, `header.` and `webhook.` namespaces, and filters accept `== null` / `!= null` presence checks and `event any (...)` over a payload that is an array of events. `webhook()` takes `task()` options such as `queue`, `machine` and `retry`. The HTTP API lists endpoints and deliveries, replays deliveries, and creates and cancels waiters, and both it and the MCP server can read an endpoint's setup prompt and generate or store its signing secret.
33+
34+
### Patch Changes
35+
36+
- Updated dependencies:
37+
- `@trigger.dev/core@4.8.0`
38+
- `@trigger.dev/build@4.8.0`
39+
- `@trigger.dev/schema-to-json@4.8.0`
40+
341
## 4.7.6
442

543
### Patch Changes

0 commit comments

Comments
 (0)