@sentry/junior 0.311.0 → 0.312.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/dist/{adapter-context-G2M0y6rP.js → adapter-context-BRjEWRy1.js} +2 -2
  2. package/dist/{adapter-B1wujchl.js → adapter-iIq7ihf7.js} +1 -1
  3. package/dist/{admin-DCiBhUT1.js → admin-DhInw5K9.js} +1 -1
  4. package/dist/{agent-runner-BVHPUIc8.js → agent-runner-C9iDurwX.js} +3423 -3477
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +6 -6
  7. package/dist/api.d.ts +2 -2
  8. package/dist/api.js +289 -306
  9. package/dist/{app-Cw5Vy6H6.d.ts → app-DRFrC8Mw.d.ts} +2 -9
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +338 -604
  12. package/dist/{background-compaction-queue-CJDnWVOJ.js → background-compaction-queue-DrKi7w3d.js} +10 -85
  13. package/dist/callback-mFlTUWWx.js +75 -0
  14. package/dist/{catalog-runtime-DMY3VV-D.js → catalog-runtime-D7xapBAX.js} +1 -1
  15. package/dist/channel-access-CJGfNTdn.js +221 -0
  16. package/dist/child-message-DcsritGf.js +179 -0
  17. package/dist/cli/chat.js +18 -19
  18. package/dist/cli/check.js +3 -3
  19. package/dist/cli/init.js +0 -1
  20. package/dist/cli/main.js +3 -7
  21. package/dist/cli/plugins.js +4 -4
  22. package/dist/cli/run.d.ts +1 -2
  23. package/dist/cli/run.js +1 -2
  24. package/dist/cli/snapshot-create.js +5 -5
  25. package/dist/cli/upgrade.d.ts +1 -1
  26. package/dist/cli/upgrade.js +3 -3
  27. package/dist/{config-BrXDQefC.js → config-kXB2Y5tl.js} +59 -27
  28. package/dist/{continue-in-slack-DNXSC9So.js → continue-in-slack-O6pV5004.js} +7 -8
  29. package/dist/{conversation-feed-DkinDu5o.js → conversation-feed-uNOv_x68.js} +74 -20
  30. package/dist/{conversation-privacy-DxttrKb9.js → conversation-privacy-L4ja1_W6.js} +1 -1
  31. package/dist/{conversation-turn-DWw7Xhdr.js → conversation-turn-CeLbHqdw.js} +31 -27
  32. package/dist/{credential-sync-Bk8wGb8Y.js → credential-sync-I8VBGk05.js} +16 -15
  33. package/dist/{projection-Cns7XwWa.js → credentialed-Cb6E2phL.js} +16308 -20732
  34. package/dist/{db-7ETESH44.d.ts → db-BbC5stfa.d.ts} +11 -6
  35. package/dist/{db-DTxzH7u5.js → db-LAyyX8tk.js} +174 -91
  36. package/dist/{executor-DqTiYj9S.js → executor-SCub-fAq.js} +117 -97
  37. package/dist/{html-B9Sl4Axb.js → html-BCZ3Xtb_.js} +6 -6
  38. package/dist/ingest-BDf3D50j.js +3836 -0
  39. package/dist/{install-Sg4ePfLl.js → install-DCFJFkC0.js} +2 -2
  40. package/dist/instrumentation.js +3 -3
  41. package/dist/{lineage-BHAMpNKr.js → lineage-B_m-4TJw.js} +2 -2
  42. package/dist/{stop-CYsfc0Ed.js → list-CN2QA2R9.js} +663 -442
  43. package/dist/{logging-FjclQsXu.js → logging-dQ9ZRGQ8.js} +1 -1
  44. package/dist/{schedule-BLJ476XQ.js → media-CYm1QD8T.js} +1055 -11
  45. package/dist/{message-CJ7_RL50.js → message-DSXGj1hM.js} +19 -26
  46. package/dist/{model-input-CMLh4Cwq.js → model-input--TrP9hYV.js} +3 -3
  47. package/dist/nitro.d.ts +1 -1
  48. package/dist/nitro.js +4 -3
  49. package/dist/{oauth-callback-server-RVcbiDjL.js → oauth-callback-server-DHCZC6B4.js} +2 -2
  50. package/dist/{oauth-relay-Bu9kkaQu.js → oauth-relay-pPMGnDZt.js} +1 -1
  51. package/dist/{registry-BPwuOP2O.js → registry-CZOzddwu.js} +1 -1
  52. package/dist/{resolve-BK29bBry.js → resolve-cKOQ14Dh.js} +3 -3
  53. package/dist/result-DcvEOe1r.js +574 -0
  54. package/dist/result-event-type-BdIJuZxg.js +48 -0
  55. package/dist/{runner-BcAE-cJm.js → runner-DBfUW44l.js} +14 -16
  56. package/dist/{sandbox-egress-signals-C-q0go5b.js → sandbox-egress-signals-BVF_xAm1.js} +1 -1
  57. package/dist/{schema-DYcJeV7d.d.ts → schema-BEHKxr4I.d.ts} +166 -242
  58. package/dist/{schema-BLgSZXcL.js → schema-Bk9Nm2E8.js} +106 -121
  59. package/dist/{service-account-iJoCtkHR.js → service-account-CVYsFjty.js} +3 -3
  60. package/dist/{service-account-gN0zqf0S.js → service-account-Ts4ulcrV.js} +5 -5
  61. package/dist/{skills-BoZ80epJ.js → skills-VTnhAJWm.js} +2 -2
  62. package/dist/{slack-conversation-unfurl-CogYrITA.js → slack-conversation-unfurl-fuLnF1jE.js} +9 -9
  63. package/dist/{spawn-Dk92r7mX.js → spawn-vxAarlX5.js} +6 -5
  64. package/dist/start-conversation-CEn2KH1A.js +941 -0
  65. package/dist/{state-DH3Cmgp3.js → state-C1P3_Ywk.js} +4 -4
  66. package/dist/statuses-_cRJHXK7.js +150 -0
  67. package/dist/store-DFZaN-Ix.js +492 -0
  68. package/dist/task-queue-Cx4Lmjyk.js +90 -0
  69. package/dist/task-runner-CbTwFA6k.js +1432 -0
  70. package/dist/{thread-context-BW2BsQbH.js → thread-context-BkAZDTX2.js} +7 -7
  71. package/dist/thread-state-DhPndWi1.js +5625 -0
  72. package/dist/{validation-DrJd0nnq.js → validation-nIzMtAVJ.js} +1 -1
  73. package/dist/{task-queue-C_zldF5J.js → vercel-queue-hW90XzbG.js} +93 -172
  74. package/dist/{version-CNKZ8owc.js → version-Brbtz4Qf.js} +1 -1
  75. package/dist/version.js +1 -1
  76. package/dist/{warmup-BWdHew2H.js → warmup-BDA5myRK.js} +6463 -12290
  77. package/dist/web-message-id-C6P83ans.js +10 -0
  78. package/dist/{worker-t9qpu_Zx.js → worker-D63RcaVD.js} +20 -7
  79. package/migrations/0143_todos.sql +14 -0
  80. package/migrations/0144_inbox_items.sql +32 -0
  81. package/migrations/0145_todo_changed_by_agent.sql +1 -0
  82. package/migrations/0146_inbox_item_subject_title_parts.sql +1 -0
  83. package/migrations/0147_inbox_snooze_wake_reason.sql +1 -0
  84. package/migrations/0148_authorization_request_index.sql +1 -0
  85. package/migrations/0149_conversation_metadata.sql +10 -0
  86. package/migrations/0150_conversation_metadata_fill.sql +39 -0
  87. package/migrations/0151_conversation_search_index.sql +1 -0
  88. package/migrations/0152_inbox_item_legacy_automation_keys.sql +21 -0
  89. package/migrations/0153_artifact_expiry.sql +1 -0
  90. package/migrations/0154_artifact_permanent_sha_index.sql +1 -0
  91. package/migrations/0155_artifact_drop_public_sha_index.sql +3 -0
  92. package/migrations/0156_conversation_kind_lead.sql +6 -0
  93. package/migrations/0157_conversation_lead_actor_index.sql +1 -0
  94. package/migrations/meta/0143_snapshot.json +6434 -0
  95. package/migrations/meta/0144_snapshot.json +6434 -0
  96. package/migrations/meta/0145_snapshot.json +6440 -0
  97. package/migrations/meta/0146_snapshot.json +6446 -0
  98. package/migrations/meta/0147_snapshot.json +6452 -0
  99. package/migrations/meta/0148_snapshot.json +6474 -0
  100. package/migrations/meta/0149_snapshot.json +6490 -0
  101. package/migrations/meta/0150_snapshot.json +6490 -0
  102. package/migrations/meta/0151_snapshot.json +6505 -0
  103. package/migrations/meta/0152_snapshot.json +6505 -0
  104. package/migrations/meta/0153_snapshot.json +6511 -0
  105. package/migrations/meta/0154_snapshot.json +6533 -0
  106. package/migrations/meta/0155_snapshot.json +6511 -0
  107. package/migrations/meta/0156_snapshot.json +6511 -0
  108. package/migrations/meta/0157_snapshot.json +6527 -0
  109. package/migrations/meta/_journal.json +106 -1
  110. package/package.json +6 -6
  111. package/skills/design-automation-skill/SKILL.md +108 -0
  112. package/dist/briefs-BDjnug6Y.js +0 -395
  113. package/dist/conversation-ca__NDQW.js +0 -1063
  114. package/dist/prompt-CDqcsDYC.js +0 -910
  115. package/dist/store-DmmMIrQi.js +0 -335
  116. package/dist/task-runner-C7oCJQIx.js +0 -294
  117. package/dist/turn-session-routing-Xh_2nSQe.js +0 -261
  118. package/dist/web-message-id-Ch5dPq-a.js +0 -306
@@ -1,10 +1,21 @@
1
- import { A as sumUtcHoursIntoSixHours, D as fillUtcHours, E as fillUtcDays, i as AGENT_INVOCATION_STATUSES, v as PLAN_ITEM_STATUSES } from "./web-message-id-Ch5dPq-a.js";
2
- import { E as idempotencyKeySchema, O as conversationChildAgentTotalsSchema, c as conversationAuxiliaryCostsSchema, i as actorIdentitySchema, m as conversationParamsSchema, tt as inputFileSchema, x as conversationUsageSchema, y as conversationSummaryReportSchema } from "./conversation-ca__NDQW.js";
3
- import { J as reviewItemRequestSchema, r as notificationScheduleSchema } from "./schedule-BLJ476XQ.js";
4
- import "./conversation-feed-DkinDu5o.js";
1
+ import { Dt as inputFileSchema, Jt as inboxItemRequestSchema, U as conversationAuxiliaryCostsSchema, Y as conversationParamsSchema, at as idempotencyKeySchema, et as conversationSummaryReportSchema, nt as conversationUsageSchema, s as notificationScheduleSchema, st as conversationChildAgentTotalsSchema, z as actorIdentitySchema } from "./media-CYm1QD8T.js";
2
+ import { f as TODO_STATUSES } from "./result-event-type-BdIJuZxg.js";
3
+ import "./conversation-feed-uNOv_x68.js";
4
+ import { o as fillUtcDays, r as AGENT_INVOCATION_STATUSES, s as fillUtcHours, u as sumUtcHoursIntoSixHours } from "./statuses-_cRJHXK7.js";
5
5
  import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
6
6
  import * as z from "zod";
7
7
  import { codeChangeSizeSchema, codeChangeStateSchema, eventMatchSchema, objectTypeSchema, ownedObjectAnnotationSchema } from "@sentry/junior-plugin-api";
8
+ // src/api/schema/conversation-fork.ts
9
+ /** Body of a request to fork a Conversation at one assistant reply. */
10
+ const forkConversationBodySchema = z.object({
11
+ /** Assistant reply that ends the copied history. */
12
+ messageId: z.string().min(1).max(500),
13
+ idempotencyKey: z.string().trim().min(1).max(200),
14
+ /** Start a hidden, read-only Quick question about this reply text. */
15
+ quickQuestion: z.object({ quote: z.string().trim().min(1).max(4e3) }).strict().optional()
16
+ }).strict();
17
+ /** The Conversation that a fork made. */
18
+ const forkConversationResponseSchema = z.object({ conversationId: z.string() }).strict();
8
19
  // src/api/schema/conversation-attachment-upload.ts
9
20
  /**
10
21
  * Ask to upload one file for a Message. `conversationId` names an existing
@@ -40,56 +51,11 @@ const conversationCatchUpSchema = z.object({
40
51
  needsYou: z.string().min(1).optional(),
41
52
  summary: z.string().min(1)
42
53
  }).strict();
43
- // src/api/schema/conversation-pin.ts
44
- /** Pin or unpin one Conversation for the signed-in viewer. */
45
- const pinConversationBodySchema = z.object({ pinned: z.boolean() }).strict();
46
- /** The viewer's pin time after the change, or null when unpinned. */
47
- const pinConversationResponseSchema = z.object({ pinnedAt: z.string().datetime().nullable() }).strict();
48
- /**
49
- * The viewer's full Pinned order, first to last. Each pin takes its index as
50
- * its new place.
51
- */
52
- const reorderPinnedConversationsBodySchema = z.object({ conversationIds: z.array(z.string().min(1)).min(1).max(500).refine((ids) => new Set(ids).size === ids.length, { message: "Each Conversation can appear once." }) }).strict();
53
- /** The pinned Conversations that got a new place, in order. */
54
- const reorderPinnedConversationsResponseSchema = z.object({ conversationIds: z.array(z.string()) }).strict();
55
54
  // src/api/schema/conversation-delivery.ts
56
55
  /** Pause or resume Delivery of a root's Event Turn replies to its Location. */
57
56
  const conversationDeliveryBodySchema = z.object({ paused: z.boolean() }).strict();
58
57
  /** The Delivery state after the change. */
59
58
  const conversationDeliveryResponseSchema = z.object({ paused: z.boolean() }).strict();
60
- // src/api/schema/conversation-subscription.ts
61
- /** Subscribe to or unsubscribe from one Conversation for the viewer. */
62
- const conversationSubscriptionBodySchema = z.object({ subscribed: z.boolean() }).strict();
63
- /**
64
- * The viewer's subscription after the change. `archivedAt` is set when the
65
- * viewer was the last subscriber, so the unsubscribe archived the
66
- * Conversation for everyone.
67
- */
68
- const conversationSubscriptionResponseSchema = z.object({
69
- archivedAt: z.string().datetime().nullable(),
70
- subscribed: z.boolean()
71
- }).strict();
72
- /** Invite one mentioned person, by Slack user id, to a public Conversation. */
73
- const conversationInviteBodySchema = z.object({ slackUserId: z.string().min(1).max(64) }).strict();
74
- /** `added` is false when the person was already a Participant. */
75
- const conversationInviteResponseSchema = z.object({ added: z.boolean() }).strict();
76
- // src/api/schema/conversation-archive.ts
77
- /**
78
- * Archive or restore one conversation. `applyToChildren` applies to a child
79
- * only: archive refuses while a descendant is unarchived unless it is true,
80
- * and restore also restores the descendants archived with the child when it
81
- * is true. A root archive is per viewer and writes no child rows.
82
- */
83
- const archiveConversationBodySchema = z.object({
84
- applyToChildren: z.boolean().optional(),
85
- archived: z.boolean(),
86
- lastSeenAt: z.string().datetime()
87
- }).strict();
88
- const archiveConversationResponseSchema = z.object({ archivedAt: z.string().datetime().nullable() }).strict();
89
- /** Viewer's auto-archive choice for one conversation. */
90
- const conversationAutoArchiveSchema = z.object({ autoArchive: z.boolean() }).strict();
91
- /** Result of archiving all of the viewer's done conversations once. */
92
- const archiveDoneConversationsResponseSchema = z.object({ archived: z.number().int().nonnegative() }).strict();
93
59
  // src/api/schema/conversation-outline.ts
94
60
  /**
95
61
  * Longest outline item text and reply. The outline previews each message,
@@ -136,15 +102,8 @@ const conversationMetricDaySchema = z.object({
136
102
  inputTokens: z.number().optional(),
137
103
  /** Conversation cost split to `mergedCodeChanges`. */
138
104
  mergedCodeChangeCostUsd: z.number().optional(),
139
- /** Code changes merged in this bucket. They are also `outcomes`. */
105
+ /** Code changes merged in this bucket. */
140
106
  mergedCodeChanges: z.number().optional(),
141
- /** Conversation cost of `outcomes`. */
142
- outcomeCostUsd: z.number().optional(),
143
- /**
144
- * Merged code changes, plus root Conversations without code changes
145
- * whose latest Brief is `done` or `answered`.
146
- */
147
- outcomes: z.number().optional(),
148
107
  tokens: z.number().optional()
149
108
  }).strict();
150
109
  const guardianMetricDaySchema = z.object({
@@ -175,25 +134,6 @@ const conversationStatsReportSchema = z.object({
175
134
  windowEnd: z.string(),
176
135
  windowStart: z.string()
177
136
  }).strict();
178
- // src/api/schema/conversation-stop.ts
179
- /** One queued web message from the viewer that a stop removed. */
180
- const stoppedConversationMessageSchema = z.object({
181
- inboundMessageId: z.string().min(1),
182
- text: z.string().min(1)
183
- }).strict();
184
- /**
185
- * Result of stopping the active Turn.
186
- *
187
- * `stoppedInboundMessageIds` lists every queued human message the stop
188
- * removes. `stoppedMessages` holds only the viewer's own web text, so the
189
- * dashboard can return it to the composer.
190
- */
191
- const stopConversationTurnResponseSchema = z.object({
192
- conversationId: z.string().min(1),
193
- status: z.enum(["no_work", "requested"]),
194
- stoppedInboundMessageIds: z.array(z.string().min(1)),
195
- stoppedMessages: z.array(stoppedConversationMessageSchema)
196
- }).strict();
197
137
  // src/api/schema/object-link.ts
198
138
  /** The most links that one object request may resolve. */
199
139
  const MAX_OBJECT_LINKS = 20;
@@ -303,8 +243,8 @@ const conversationWatchesReportSchema = z.object({
303
243
  }).strict();
304
244
  /** Route params that name one Watch of one Conversation. */
305
245
  const watchParamsSchema = conversationParamsSchema.extend({ watchId: z.string().min(1) }).strict();
306
- // src/api/schema/plan.ts
307
- const planItemAssigneeSchema = z.discriminatedUnion("kind", [
246
+ // src/api/schema/todos.ts
247
+ const todoAssigneeSchema = z.discriminatedUnion("kind", [
308
248
  z.object({ kind: z.literal("self") }).strict(),
309
249
  z.object({
310
250
  kind: z.literal("agent"),
@@ -317,16 +257,16 @@ const planItemAssigneeSchema = z.discriminatedUnion("kind", [
317
257
  }).strict()
318
258
  ]);
319
259
  /**
320
- * One Plan item of a Conversation. Viewers who cannot see private content
260
+ * One To-do of a Conversation. Viewers who cannot see private content
321
261
  * get the status, assignee kind, and times, but not the title, notes, or
322
262
  * names.
323
263
  */
324
- const conversationPlanItemSchema = z.object({
264
+ const conversationTodoSchema = z.object({
325
265
  id: z.number().int().positive(),
326
266
  title: z.string().min(1).optional(),
327
267
  notes: z.string().min(1).optional(),
328
- status: z.enum(PLAN_ITEM_STATUSES),
329
- assignee: planItemAssigneeSchema,
268
+ status: z.enum(TODO_STATUSES),
269
+ assignee: todoAssigneeSchema,
330
270
  /** Name of the person who made the latest change. */
331
271
  changedBy: z.string().min(1).optional(),
332
272
  redacted: z.literal(true).optional(),
@@ -334,22 +274,18 @@ const conversationPlanItemSchema = z.object({
334
274
  }).strict().superRefine((data, context) => {
335
275
  if (data.title === void 0 === (data.redacted !== true)) context.addIssue({
336
276
  code: "custom",
337
- message: "plan item title must be text or explicitly redacted"
277
+ message: "To-do title must be text or explicitly redacted"
338
278
  });
339
279
  });
340
- /** The open Plan items of one Conversation, then the latest closed ones. */
341
- const conversationPlanReportSchema = z.object({
280
+ /** The open To-dos of one Conversation, then the latest closed ones. */
281
+ const conversationTodosReportSchema = z.object({
342
282
  conversationId: z.string().min(1),
343
- items: z.array(conversationPlanItemSchema)
344
- }).strict();
345
- /** Route parameters of one Plan item. */
346
- const planItemParamsSchema = conversationParamsSchema.extend({ itemId: z.coerce.number().int().positive() }).strict();
347
- /** Status that a person can set on a Plan item. */
348
- const planItemStatusBodySchema = z.object({ status: z.enum([
349
- "pending",
350
- "done",
351
- "cancelled"
352
- ]) }).strict();
283
+ todos: z.array(conversationTodoSchema)
284
+ }).strict();
285
+ /** Route parameters of one To-do. */
286
+ const todoParamsSchema = conversationParamsSchema.extend({ todoId: z.coerce.number().int().positive() }).strict();
287
+ /** Status that a person can set on a To-do. */
288
+ const todoStatusBodySchema = z.object({ status: z.enum(TODO_STATUSES) }).strict();
353
289
  // src/api/schema/code.ts
354
290
  const codeChangeSummarySchema = z.object({
355
291
  closed: z.number().int().nonnegative(),
@@ -628,6 +564,13 @@ const locationDetailReportSchema = locationSummaryReportSchema.extend({
628
564
  windowEnd: z.string(),
629
565
  windowStart: z.string()
630
566
  }).strict();
567
+ // src/api/schema/lead.ts
568
+ /** The viewer's Lead. Messages to it use the Conversation message route. */
569
+ const leadSchema = z.object({
570
+ conversationId: z.string().min(1),
571
+ /** The Conversations that the Lead has an active Watch on. */
572
+ watchedConversationIds: z.array(z.string().min(1))
573
+ }).strict();
631
574
  // src/api/schema/person.ts
632
575
  const personParamsSchema = z.object({ email: z.string().trim().min(1) }).strict();
633
576
  /**
@@ -940,9 +883,9 @@ const updateGatewayProvidersBodySchema = z.object({ enabled: z.array(providerSlu
940
883
  // src/api/schema/inbox-snooze.ts
941
884
  const conversationRowSchema = z.object({
942
885
  conversationId: z.string().min(1),
943
- reviewItemId: z.string().min(1).optional()
886
+ inboxItemId: z.string().min(1).optional()
944
887
  }).strict();
945
- const itemRowSchema = z.object({ reviewItemId: z.string().min(1) }).strict();
888
+ const itemRowSchema = z.object({ inboxItemId: z.string().min(1) }).strict();
946
889
  /**
947
890
  * The Inbox row of a snooze: one Conversation, one item in it, or one item
948
891
  * on its own.
@@ -979,17 +922,39 @@ const inboxSnoozeResourceQuerySchema = z.object({ url: z.string().url().max(2e3)
979
922
  const INBOX_SNOOZE_MAX_TRIGGERS = 30;
980
923
  const snoozeUntil = {
981
924
  triggers: z.array(inboxSnoozeTriggerSchema).min(1).max(30).optional(),
925
+ /**
926
+ * No time and no Event: the snooze lasts until the item closes, so it
927
+ * waits until someone else handles it, or the viewer wakes it.
928
+ */
929
+ untilClosed: z.literal(true).optional(),
982
930
  wakeAt: z.string().datetime().optional()
983
931
  };
984
932
  /**
985
933
  * `POST /api/inbox/snoozes` body: hide the row's open items from the viewer
986
- * until `wakeAt` or one of `triggers` fires, whichever is first. A later
987
- * item in the row shows by itself.
934
+ * until `wakeAt` or one of `triggers` fires, whichever is first, or with
935
+ * `untilClosed`, until each item closes. A later item in the row shows by
936
+ * itself.
988
937
  */
989
- const inboxSnoozeCreateSchema = z.union([conversationRowSchema.extend(snoozeUntil).strict(), itemRowSchema.extend(snoozeUntil).strict()]).refine((body) => body.wakeAt !== void 0 || body.triggers !== void 0, { message: "Set wakeAt, triggers, or both." });
938
+ const inboxSnoozeCreateSchema = z.union([conversationRowSchema.extend(snoozeUntil).strict(), itemRowSchema.extend(snoozeUntil).strict()]).refine((body) => body.untilClosed === true !== (body.wakeAt !== void 0 || body.triggers !== void 0), { message: "Set wakeAt, triggers, or both, or set untilClosed alone." });
990
939
  /** The items that a snooze hid from the viewer, one snooze each. */
991
- const inboxSnoozeSchema = z.object({ reviewItemIds: z.array(z.string().min(1)).min(1) }).strict();
992
- // src/api/schema/review-item.ts
940
+ const inboxSnoozeSchema = z.object({ inboxItemIds: z.array(z.string().min(1)).min(1) }).strict();
941
+ /**
942
+ * Why the viewer's snooze of an item woke: its time came, or an Event on
943
+ * `resource`, such as `getsentry/junior#12`. `phrase` says how the Event
944
+ * reads after the resource's name, where its source says.
945
+ */
946
+ const inboxSnoozeWakeSchema = z.discriminatedUnion("kind", [z.object({ kind: z.literal("time") }).strict(), z.object({
947
+ eventType: z.string().min(1),
948
+ kind: z.literal("event"),
949
+ phrase: z.string().min(1).optional(),
950
+ resource: z.string().min(1)
951
+ }).strict()]);
952
+ /**
953
+ * `DELETE /api/inbox/snoozes/wakes` body: the viewer opened these items, so
954
+ * they no longer show why their snoozes woke.
955
+ */
956
+ const inboxSnoozeWakesClearSchema = z.object({ inboxItemIds: z.array(z.string().min(1)).min(1).max(100) }).strict();
957
+ // src/api/schema/inbox-item.ts
993
958
  const answerSchema = z.object({
994
959
  other: z.string().max(4e3).optional(),
995
960
  requestId: z.string().min(1),
@@ -1002,8 +967,8 @@ const personSchema = z.object({
1002
967
  email: z.string().min(1),
1003
968
  userId: z.string().min(1)
1004
969
  }).strict();
1005
- /** One Review item as the viewer sees it. */
1006
- const reviewItemSchema = z.object({
970
+ /** One Inbox item as the viewer sees it. */
971
+ const inboxItemSchema = z.object({
1007
972
  /**
1008
973
  * Names the Conversation that owns the item when it is not
1009
974
  * `rootConversationId`, such as a child agent's Thread title.
@@ -1026,6 +991,11 @@ const reviewItemSchema = z.object({
1026
991
  closedBy: personSchema.optional(),
1027
992
  conversationIds: z.array(z.string().min(1)),
1028
993
  createdAt: z.string().datetime(),
994
+ /**
995
+ * Set when the viewer snoozed the open item, and the snooze has not
996
+ * woken. It stays open for the other people it is for.
997
+ */
998
+ snoozedByViewer: z.literal(true).optional(),
1029
999
  id: z.string().min(1),
1030
1000
  kind: z.enum(["notice", "action"]),
1031
1001
  /** People that the title, body, and question mention. */
@@ -1055,7 +1025,7 @@ const reviewItemSchema = z.object({
1055
1025
  title: z.string().min(1)
1056
1026
  }).strict())
1057
1027
  }).strict().optional(),
1058
- request: reviewItemRequestSchema.optional(),
1028
+ request: inboxItemRequestSchema.optional(),
1059
1029
  /**
1060
1030
  * The top of the owner Conversation's tree that the viewer can see, at
1061
1031
  * any depth: the owner when it is a root, or when the viewer cannot see
@@ -1082,11 +1052,26 @@ const reviewItemSchema = z.object({
1082
1052
  */
1083
1053
  resource: inboxSnoozeResourceSchema.optional(),
1084
1054
  title: z.string().min(1).optional(),
1055
+ /**
1056
+ * A code change title split by Conventional Commits, as the plugin
1057
+ * that owns the code change parsed it.
1058
+ */
1059
+ titleParts: z.object({
1060
+ breaking: z.boolean().optional(),
1061
+ scope: z.string().min(1).optional(),
1062
+ text: z.string().min(1),
1063
+ type: z.string().min(1).optional()
1064
+ }).strict().optional(),
1085
1065
  url: z.string().min(1).optional()
1086
1066
  }).strict().optional(),
1087
1067
  title: z.string().min(1),
1088
1068
  updatedAt: z.string().datetime(),
1089
- visibility: z.enum(["public", "private"])
1069
+ visibility: z.enum(["public", "private"]),
1070
+ /**
1071
+ * Why the viewer's snooze of the open item woke. Only that viewer sees
1072
+ * it, until they open or act on the item.
1073
+ */
1074
+ wake: inboxSnoozeWakeSchema.optional()
1090
1075
  }).strict();
1091
1076
  /**
1092
1077
  * Inbox list filters. The list has the open items that the viewer can
@@ -1094,7 +1079,7 @@ const reviewItemSchema = z.object({
1094
1079
  * dismissed items, after the open ones. `status` lists closed items instead,
1095
1080
  * with the same visibility.
1096
1081
  */
1097
- const reviewItemListQuerySchema = z.object({
1082
+ const inboxItemListQuerySchema = z.object({
1098
1083
  conversationId: z.string().min(1).optional(),
1099
1084
  /** `nextCursor` of the page before. */
1100
1085
  cursor: z.string().min(1).max(1e3).optional(),
@@ -1136,15 +1121,15 @@ const reviewItemListQuerySchema = z.object({
1136
1121
  * The first page of a search, or of a list that includes archived items,
1137
1122
  * also has the newest archived matches.
1138
1123
  */
1139
- const reviewItemListSchema = z.object({
1140
- items: z.array(reviewItemSchema),
1124
+ const inboxItemListSchema = z.object({
1125
+ items: z.array(inboxItemSchema),
1141
1126
  /** Set when more archived items match than the list shows. */
1142
1127
  moreArchived: z.boolean().optional(),
1143
1128
  /** Set when more open items follow. Pass it as `cursor` to read them. */
1144
1129
  nextCursor: z.string().min(1).optional()
1145
1130
  }).strict();
1146
- /** `GET /api/review-items/count` query. */
1147
- const reviewItemCountQuerySchema = z.object({
1131
+ /** `GET /api/inbox-items/count` query. */
1132
+ const inboxItemCountQuerySchema = z.object({
1148
1133
  /**
1149
1134
  * Extra counts, comma separated. `automations` counts the viewer's
1150
1135
  * Automations that need attention, and `snoozed` their snoozed rows.
@@ -1152,10 +1137,10 @@ const reviewItemCountQuerySchema = z.object({
1152
1137
  include: z.string().default("").transform((value) => [...new Set(value.split(",").filter(Boolean))]).pipe(z.array(z.enum(["automations", "snoozed"]))) }).strict();
1153
1138
  /**
1154
1139
  * The counts behind the Inbox badge, which shows `needsViewer`, and behind
1155
- * the Inbox entries. An Automation alert is a Review item, so
1140
+ * the Inbox entries. An Automation alert is an Inbox item, so
1156
1141
  * `needsViewer` counts it.
1157
1142
  */
1158
- const reviewItemCountSchema = z.object({
1143
+ const inboxItemCountSchema = z.object({
1159
1144
  /**
1160
1145
  * The viewer's own Automations that need attention, as the Automations
1161
1146
  * entry counts them (`scope=attention&owner=me`). Only with
@@ -1168,7 +1153,7 @@ const reviewItemCountSchema = z.object({
1168
1153
  decisions: z.number().int().nonnegative(),
1169
1154
  /**
1170
1155
  * Open action items assigned to the viewer as a User
1171
- * (`reviewItemNeedsUser`). Notices and items for Everyone do not count.
1156
+ * (`inboxItemNeedsUser`). Notices and items for Everyone do not count.
1172
1157
  */
1173
1158
  needsViewer: z.number().int().nonnegative(),
1174
1159
  /**
@@ -1182,7 +1167,7 @@ const reviewItemCountSchema = z.object({
1182
1167
  * is the newest such item; `count` is how many there are; `waitingSince` is
1183
1168
  * when the oldest was added.
1184
1169
  */
1185
- const reviewItemWaitingConversationsSchema = z.object({ conversations: z.array(z.object({
1170
+ const inboxItemWaitingConversationsSchema = z.object({ conversations: z.array(z.object({
1186
1171
  conversationId: z.string().min(1),
1187
1172
  /** Open items that need the viewer, newest first. */
1188
1173
  items: z.array(z.object({
@@ -1193,9 +1178,9 @@ const reviewItemWaitingConversationsSchema = z.object({ conversations: z.array(z
1193
1178
  /** When the oldest of those items was added: when the wait began. */
1194
1179
  waitingSince: z.string().datetime()
1195
1180
  }).strict()) }).strict();
1196
- const reviewItemParamsSchema = z.object({ id: z.string().min(1) }).strict();
1197
- /** One person action on a Review item. */
1198
- const reviewItemActionSchema = z.discriminatedUnion("action", [
1181
+ const inboxItemParamsSchema = z.object({ id: z.string().min(1) }).strict();
1182
+ /** One person action on an Inbox item. */
1183
+ const inboxItemActionSchema = z.discriminatedUnion("action", [
1199
1184
  z.object({ action: z.literal("take") }).strict(),
1200
1185
  z.object({ action: z.literal("dismiss") }).strict(),
1201
1186
  z.object({
@@ -1289,9 +1274,9 @@ const versionsSchema = z.object({
1289
1274
  * can record which inputs moved it.
1290
1275
  */
1291
1276
  conversations: z.string().min(1),
1292
- /** Open Review items that need the viewer. */
1293
- reviewItems: z.string().min(1),
1277
+ /** Open Inbox items that need the viewer. */
1278
+ inboxItems: z.string().min(1),
1294
1279
  /** The viewer's rolling model spend. */
1295
1280
  spend: z.string().min(1)
1296
1281
  }).strict();
1297
- export { peopleSearchQuerySchema as $, CONVERSATION_OUTLINE_TEXT_LENGTH as $t, cacheHealthReportSchema as A, codeRepositoryQuerySchema as At, serviceAccountSchema as B, conversationWatchesReportSchema as Bt, inboxSnoozeResourceQuerySchema as C, codeChangeSearchQuerySchema as Ct, gatewayProvidersSchema as D, codeOverviewReportSchema as Dt, inboxSnoozeSubjectSchema as E, codeChangeSummarySchema as Et, cacheWarmingSavingsReportSchema as F, conversationPlanItemSchema as Ft, personalTokenMetadataSchema as G, continueConversationInSlackResponseSchema as Gt, createPersonalTokenBodySchema as H, conversationChildAgentSchema as Ht, closeCacheWarmingBreakerResponseSchema as I, conversationPlanReportSchema as It, PERSON_CARD_RECENT_LIMIT as J, attachObjectLinkResponseSchema as Jt, personalTokenParamsSchema as K, MAX_OBJECT_LINKS as Kt, disconnectServiceAccountResponseSchema as L, planItemParamsSchema as Lt, cacheWarmingBreakerParamsSchema as M, codeRepositorySummarySchema as Mt, cacheWarmingSavingsQuerySchema as N, mentionableCodeChangeSchema as Nt, updateGatewayProvidersBodySchema as O, codePersonReportSchema as Ot, cacheWarmingSavingsRefillResponseSchema as P, personCodeQuerySchema as Pt, mentionablePersonSchema as Q, conversationStatsReportSchema as Qt, serviceAccountListSchema as R, planItemStatusBodySchema as Rt, inboxSnoozeCreateSchema as S, codeActivityDaySchema as St, inboxSnoozeSchema as T, codeChangeSummaryReportSchema as Tt, createdPersonalTokenSchema as U, conversationChildAgentsReportSchema as Ut, startServiceAccountSignInResponseSchema as V, watchParamsSchema as Vt, personalTokenListSchema as W, continueConversationInSlackBodySchema as Wt, actorProfileReportSchema as X, objectLinksReportSchema as Xt, actorDirectoryReportSchema as Y, objectLinksQuerySchema as Yt, avatarParamsSchema as Z, stopConversationTurnResponseSchema as Zt, reviewItemListSchema as _, attachmentUploadParamsSchema as _n, connectionParamsSchema as _t, statsReportSchema as a, conversationInviteBodySchema as an, locationDetailReportSchema as at, reviewItemWaitingConversationsSchema as b, startConnectionResponseSchema as bt, workspaceBodySchema as c, conversationSubscriptionResponseSchema as cn, activityDays as ct, workspaceRepoSchema as d, pinConversationBodySchema as dn, dailyConversationActivitySchema as dt, conversationOutlineSchema as en, peopleSearchReportSchema as et, workspaceSchema as f, pinConversationResponseSchema as fn, notificationSettingsSchema as ft, reviewItemListQuerySchema as g, conversationCatchUpSchema as gn, connectionListSchema as gt, reviewItemCountSchema as h, conversationCatchUpBodySchema as hn, testNotificationResponseSchema as ht, statSchema as i, conversationAutoArchiveSchema as in, locationActivityDayReportSchema as it, cacheWarmingBreakerListSchema as j, codeRepositoryReportSchema as jt, cacheHealthQuerySchema as k, codeRepositoryParamsSchema as kt, workspaceListSchema as l, conversationDeliveryBodySchema as ln, activityHours as lt, reviewItemCountQuerySchema as m, reorderPinnedConversationsResponseSchema as mn, pushSubscriptionDeleteBodySchema as mt, versionsQuerySchema as n, archiveConversationResponseSchema as nn, personParamsSchema as nt, baselineSnapshotSchema as o, conversationInviteResponseSchema as on, locationDirectoryReportSchema as ot, reviewItemActionSchema as p, reorderPinnedConversationsBodySchema as pn, pushSubscriptionBodySchema as pt, revokePersonalTokenResponseSchema as q, attachObjectLinkBodySchema as qt, versionsSchema as r, archiveDoneConversationsResponseSchema as rn, personalSpendReportSchema as rt, deleteWorkspaceResponseSchema as s, conversationSubscriptionBodySchema as sn, locationParamsSchema as st, VERSIONS_CONVERSATION_LIMIT as t, archiveConversationBodySchema as tn, personCardReportSchema as tt, workspaceParamsSchema as u, conversationDeliveryResponseSchema as un, activitySixHours as ut, reviewItemParamsSchema as v, attachmentUploadSchema as vn, connectionSchema as vt, inboxSnoozeResourceSchema as w, codeChangeSearchReportSchema as wt, INBOX_SNOOZE_MAX_TRIGGERS as x, IDLE_CHANGE_DAYS as xt, reviewItemSchema as y, createAttachmentUploadBodySchema as yn, disconnectConnectionResponseSchema as yt, serviceAccountParamsSchema as z, conversationWatchSchema as zt };
1282
+ export { mentionablePersonSchema as $, conversationStatsReportSchema as $t, cacheHealthQuerySchema as A, codePersonReportSchema as At, serviceAccountParamsSchema as B, todoStatusBodySchema as Bt, inboxSnoozeResourceQuerySchema as C, IDLE_CHANGE_DAYS as Ct, inboxSnoozeWakesClearSchema as D, codeChangeSummaryReportSchema as Dt, inboxSnoozeSubjectSchema as E, codeChangeSearchReportSchema as Et, cacheWarmingSavingsRefillResponseSchema as F, mentionableCodeChangeSchema as Ft, personalTokenListSchema as G, conversationChildAgentsReportSchema as Gt, startServiceAccountSignInResponseSchema as H, conversationWatchesReportSchema as Ht, cacheWarmingSavingsReportSchema as I, personCodeQuerySchema as It, revokePersonalTokenResponseSchema as J, MAX_OBJECT_LINKS as Jt, personalTokenMetadataSchema as K, continueConversationInSlackBodySchema as Kt, closeCacheWarmingBreakerResponseSchema as L, conversationTodoSchema as Lt, cacheWarmingBreakerListSchema as M, codeRepositoryQuerySchema as Mt, cacheWarmingBreakerParamsSchema as N, codeRepositoryReportSchema as Nt, gatewayProvidersSchema as O, codeChangeSummarySchema as Ot, cacheWarmingSavingsQuerySchema as P, codeRepositorySummarySchema as Pt, avatarParamsSchema as Q, objectLinksReportSchema as Qt, disconnectServiceAccountResponseSchema as R, conversationTodosReportSchema as Rt, inboxSnoozeCreateSchema as S, startConnectionResponseSchema as St, inboxSnoozeSchema as T, codeChangeSearchQuerySchema as Tt, createPersonalTokenBodySchema as U, watchParamsSchema as Ut, serviceAccountSchema as V, conversationWatchSchema as Vt, createdPersonalTokenSchema as W, conversationChildAgentSchema as Wt, actorDirectoryReportSchema as X, attachObjectLinkResponseSchema as Xt, PERSON_CARD_RECENT_LIMIT as Y, attachObjectLinkBodySchema as Yt, actorProfileReportSchema as Z, objectLinksQuerySchema as Zt, inboxItemListSchema as _, testNotificationResponseSchema as _t, statsReportSchema as a, conversationCatchUpSchema as an, leadSchema as at, inboxItemWaitingConversationsSchema as b, connectionSchema as bt, workspaceBodySchema as c, createAttachmentUploadBodySchema as cn, locationDirectoryReportSchema as ct, workspaceRepoSchema as d, activityHours as dt, CONVERSATION_OUTLINE_TEXT_LENGTH as en, peopleSearchQuerySchema as et, workspaceSchema as f, activitySixHours as ft, inboxItemListQuerySchema as g, pushSubscriptionDeleteBodySchema as gt, inboxItemCountSchema as h, pushSubscriptionBodySchema as ht, statSchema as i, conversationCatchUpBodySchema as in, personalSpendReportSchema as it, cacheHealthReportSchema as j, codeRepositoryParamsSchema as jt, updateGatewayProvidersBodySchema as k, codeOverviewReportSchema as kt, workspaceListSchema as l, forkConversationBodySchema as ln, locationParamsSchema as lt, inboxItemCountQuerySchema as m, notificationSettingsSchema as mt, versionsQuerySchema as n, conversationDeliveryBodySchema as nn, personCardReportSchema as nt, baselineSnapshotSchema as o, attachmentUploadParamsSchema as on, locationActivityDayReportSchema as ot, inboxItemActionSchema as p, dailyConversationActivitySchema as pt, personalTokenParamsSchema as q, continueConversationInSlackResponseSchema as qt, versionsSchema as r, conversationDeliveryResponseSchema as rn, personParamsSchema as rt, deleteWorkspaceResponseSchema as s, attachmentUploadSchema as sn, locationDetailReportSchema as st, VERSIONS_CONVERSATION_LIMIT as t, conversationOutlineSchema as tn, peopleSearchReportSchema as tt, workspaceParamsSchema as u, forkConversationResponseSchema as un, activityDays as ut, inboxItemParamsSchema as v, connectionListSchema as vt, inboxSnoozeResourceSchema as w, codeActivityDaySchema as wt, INBOX_SNOOZE_MAX_TRIGGERS as x, disconnectConnectionResponseSchema as xt, inboxItemSchema as y, connectionParamsSchema as yt, serviceAccountListSchema as z, todoParamsSchema as zt };
@@ -1,6 +1,6 @@
1
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-gN0zqf0S.js";
2
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DMY3VV-D.js";
3
- import { n as disconnectStateAdapter } from "./adapter-B1wujchl.js";
1
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-Ts4ulcrV.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-D7xapBAX.js";
3
+ import { n as disconnectStateAdapter } from "./adapter-iIq7ihf7.js";
4
4
  import { CLI_USAGE } from "./cli/run.js";
5
5
  import { createServer } from "node:http";
6
6
  // src/cli/service-account.ts
@@ -1,8 +1,8 @@
1
- import { b as setSpanAttributes, h as logWarn } from "./logging-FjclQsXu.js";
2
- import { i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies } from "./registry-BPwuOP2O.js";
3
- import { i as getStateAdapter } from "./adapter-B1wujchl.js";
4
- import { B as withLock, L as MUTATION_LOCK_TTL_MS, n as botConfig, z as fenceLock } from "./config-BrXDQefC.js";
5
- import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-DH3Cmgp3.js";
1
+ import { b as setSpanAttributes, h as logWarn } from "./logging-dQ9ZRGQ8.js";
2
+ import { i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies } from "./registry-CZOzddwu.js";
3
+ import { i as getStateAdapter } from "./adapter-iIq7ihf7.js";
4
+ import { I as MUTATION_LOCK_TTL_MS, R as fenceLock, n as botConfig, z as withLock } from "./config-kXB2Y5tl.js";
5
+ import { n as readEncryptedState, r as findLegacyWebActorUserId, t as createEncryptedState } from "./state-C1P3_Ywk.js";
6
6
  import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
7
7
  import * as z from "zod";
8
8
  import { AsyncLocalStorage } from "node:async_hooks";
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
2
  import { s as skillRoots } from "./package-discovery-DD9vencX.js";
3
- import { h as logWarn } from "./logging-FjclQsXu.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-DMY3VV-D.js";
3
+ import { h as logWarn } from "./logging-dQ9ZRGQ8.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-D7xapBAX.js";
5
5
  import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
6
6
  import * as z from "zod";
7
7
  import path from "node:path";
@@ -1,13 +1,13 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { Pt as readActorIdentity, a as getConversationStore, hn as readConversationAccessFromSql, o as getDb, s as getSqlExecutor, z as getConversationIdByProviderConversation } from "./db-DTxzH7u5.js";
2
+ import { Lt as readActorIdentity, V as getConversationIdByProviderConversation, a as getConversationStore, o as getDb, s as getSqlExecutor, yn as readConversationAccessFromSql } from "./db-LAyyX8tk.js";
3
3
  import { _ as slackUserIdSchema, b as slackMessageTsSchema, f as parseSlackTeamId, g as slackTeamIdSchema, h as slackChannelIdSchema, m as slackBotIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-BsBdxDXQ.js";
4
- import { Ho as unfurlSlackLinks, Ls as parseDashboardConversationLink, Tt as deferConversationMove, ds as formatSlackLink, ja as readLatestConversationBrief, ss as getWorkspaceTeamId, us as escapeSlackMrkdwnText, zo as postSlackEphemeralMessage } from "./projection-Cns7XwWa.js";
5
- import { Hi as checkSlackChannelReadAccess, hn as lookupSlackUserProfile, mn as lookupSlackBot } from "./warmup-BWdHew2H.js";
6
- import { F as createCache, n as botConfig } from "./config-BrXDQefC.js";
7
- import { E as withSpan } from "./logging-FjclQsXu.js";
8
- import { t as runWithSlackInstallation } from "./adapter-context-G2M0y6rP.js";
9
- import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-DNXSC9So.js";
10
- import "./store-DmmMIrQi.js";
4
+ import { Bo as getWorkspaceTeamId, Ni as parseDashboardConversationLink, Qr as unfurlSlackLinks, Yr as postSlackEphemeralMessage, ai as escapeSlackMrkdwnText, oi as formatSlackLink, or as lookupSlackBot, sr as lookupSlackUserProfile } from "./credentialed-Cb6E2phL.js";
5
+ import { P as createCache, n as botConfig } from "./config-kXB2Y5tl.js";
6
+ import { E as withSpan } from "./logging-dQ9ZRGQ8.js";
7
+ import { t as runWithSlackInstallation } from "./adapter-context-BRjEWRy1.js";
8
+ import { a as isMovableToSlack, i as continueConversationInSlack, n as alreadyContinuesInSlackMessage, t as BUSY } from "./continue-in-slack-O6pV5004.js";
9
+ import { t as checkSlackChannelReadAccess } from "./channel-access-CJGfNTdn.js";
10
+ import { tn as deferConversationMove } from "./thread-state-DhPndWi1.js";
11
11
  import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
12
12
  import * as z from "zod";
13
13
  // src/chat/ingress/workspace-membership.ts
@@ -153,7 +153,7 @@ function parseContinueHereValue(raw) {
153
153
  }
154
154
  async function previewBlocks(args) {
155
155
  const title = args.conversation.title ?? "Untitled conversation";
156
- const summary = (await readLatestConversationBrief(getDb(), args.conversation.conversationId))?.content.summary.trim();
156
+ const summary = args.conversation.summary?.trim();
157
157
  const shortSummary = summary && summary.length > MAX_SUMMARY_CHARS ? `${summary.slice(0, 299)}…` : summary;
158
158
  return [{
159
159
  type: "section",
@@ -1,9 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { N as actorFromRun, P as toolInvocationDestination } from "./agent-runner-BVHPUIc8.js";
3
- import { n as botConfig } from "./config-BrXDQefC.js";
4
- import { t as readConversationLineage } from "./lineage-BHAMpNKr.js";
5
- import { _ as getConversationWorkState } from "./store-DmmMIrQi.js";
6
- import { Br as getAgentInvocationId, Fn as createAndEnqueueAgentInvocation, Hr as getUnnamedAgentConversationId, Vr as getAgentInvocationMessageId, Yn as getAgentInvocation, ar as getAgentBinding, tr as AgentDepthLimitError } from "./warmup-BWdHew2H.js";
2
+ import { A as actorFromRun, j as toolInvocationDestination } from "./agent-runner-C9iDurwX.js";
3
+ import { n as botConfig } from "./config-kXB2Y5tl.js";
4
+ import { t as readConversationLineage } from "./lineage-B_m-4TJw.js";
5
+ import { w as getConversationWorkState } from "./thread-state-DhPndWi1.js";
6
+ import { Dt as getAgentInvocation, Jt as createAndEnqueueAgentInvocation, in as getAgentBinding, tn as AgentDepthLimitError } from "./warmup-BDA5myRK.js";
7
+ import { c as getAgentInvocationId, f as getAgentInvocationMessageId, y as getUnnamedAgentConversationId } from "./child-message-DcsritGf.js";
7
8
  // src/chat/agent-invocations/spawn.ts
8
9
  var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
9
10
  /**