Commit c746621
committed
feat(webhooks): channel reactions/startOn, session-target deliveries, and a data-plane DB seam
Bundles the uncommitted webhook work (entangled across shared files, so committed together):
- Channels: a startOn session-start gate (only summon a new session on matching
events, otherwise resume), agent and lifecycle reactions, Slack mrkdwn conversion,
and a mentions() helper in @trigger.dev/slack.
- Deliveries UI links the chat.agent session as the delivery target.
- Webhook database seam: an injected webhookPrisma (writer) and webhookReplica
(reader) so the whole webhook feature (WebhookEndpoint + WebhookDelivery) can move
to a dedicated Postgres by config. Prep only and connection-neutral until
WEBHOOK_DATABASE_URL is set; narrow WebhookDatabase types keep control-plane tables
off the webhook client, with a two-DB test as the runtime backstop.1 parent 3a39054 commit c746621
36 files changed
Lines changed: 910 additions & 318 deletions
File tree
- .changeset
- apps/webapp/app
- components/webhookDeliveries/v1
- presenters/v3
- routes
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.webhooks._index
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.webhooks.deliveries.$deliveryParam
- _app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.webhooks.endpoints.$endpointParam
- services
- realtime
- webhookDeliveriesRepository
- v3
- services
- internal-packages
- database/src
- testcontainers/src
- webhook-engine/src/engine
- filter
- packages
- core/src/v3/schemas
- slack/src
- trigger-sdk/src/v3
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Lines changed: 43 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
61 | 68 | | |
62 | 69 | | |
63 | 70 | | |
64 | | - | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
89 | 96 | | |
90 | 97 | | |
91 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
| |||
132 | 147 | | |
133 | 148 | | |
134 | 149 | | |
135 | | - | |
136 | | - | |
137 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
138 | 161 | | |
139 | 162 | | |
140 | 163 | | |
| |||
163 | 186 | | |
164 | 187 | | |
165 | 188 | | |
166 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
167 | 194 | | |
168 | 195 | | |
169 | 196 | | |
| |||
186 | 213 | | |
187 | 214 | | |
188 | 215 | | |
| 216 | + | |
189 | 217 | | |
190 | 218 | | |
191 | 219 | | |
| 220 | + | |
192 | 221 | | |
193 | 222 | | |
194 | 223 | | |
| |||
201 | 230 | | |
202 | 231 | | |
203 | 232 | | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
204 | 241 | | |
205 | 242 | | |
206 | 243 | | |
| |||
0 commit comments