@sentry/junior 0.316.0 → 0.317.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 (122) hide show
  1. package/dist/{admin-QYiDMnsu.js → admin-CAugg87B.js} +1 -1
  2. package/dist/{agent-runner-Cr5Fhjf-.js → agent-runner-AjrEV6Qe.js} +13438 -13149
  3. package/dist/{reporting-window-C4dbzDiR.js → agent-status-BA5x3Xtp.js} +33 -1
  4. package/dist/{agent-update-delivery-BY13DPSD.js → agent-update-delivery-B_YIZcgf.js} +5 -5
  5. package/dist/api/schema.d.ts +558 -102
  6. package/dist/api/schema.js +6 -6
  7. package/dist/api.js +230 -213
  8. package/dist/{app-BhvzRD__.d.ts → app-MoNAsVV5.d.ts} +34 -14
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +167 -122
  11. package/dist/catalog-runtime-DfSpJZdY.js +6 -0
  12. package/dist/{change-record-Bqsa5ZXE.d.ts → change-record-BzJgLsv7.d.ts} +60 -1
  13. package/dist/{adapter-context-Bref7aPI.js → channel-access-j-YAVYK4.js} +2 -42
  14. package/dist/{chat-core-engine-3dtlMku3.js → chat-core-engine-aH85nEHv.js} +4 -3
  15. package/dist/{child-message--2G3Ft26.js → child-message-DHjQLEd1.js} +1 -1
  16. package/dist/cli/chat.js +23 -23
  17. package/dist/cli/check.js +5 -5
  18. package/dist/cli/main.js +2 -2
  19. package/dist/cli/plugins.js +5 -4
  20. package/dist/cli/snapshot-create.js +5 -2
  21. package/dist/cli/upgrade.js +5 -3
  22. package/dist/config-CHQ8X251.js +2422 -0
  23. package/dist/{continue-in-slack-DbQUFe_F.js → continue-in-slack-D-FZ8Fin.js} +2 -3
  24. package/dist/{conversation-feed-B84pMjHo.js → conversation-feed--9S0_PXL.js} +3 -3
  25. package/dist/{proxy-path-BTmXDjfx.js → conversation-privacy-B1uXn5sf.js} +2 -16
  26. package/dist/{conversation-turn-DzEpTIaf.js → conversation-turn-BUE_7xaN.js} +99 -76
  27. package/dist/{create-DUJBXr6E.js → create-DoDIYgtZ.js} +12 -9
  28. package/dist/{credential-sync-JH_K9Adg.js → credential-sync-BJOqGnjV.js} +17 -12
  29. package/dist/{db-DhzvUY23.js → db-BFmyYZtJ.js} +20265 -27551
  30. package/dist/{deployment-BhvrhQeh.js → deployment-DXq9ZLU4.js} +17 -15
  31. package/dist/{engine-context-C9Nal48K.js → engine-context-CgQ7mlHt.js} +264 -47
  32. package/dist/{html-B_12WjKT.js → html-B3VKTGbJ.js} +6 -2
  33. package/dist/instrumentation.js +15 -7
  34. package/dist/{job-runner-DO8nslyY.js → job-runner-A1lCkybD.js} +391 -24
  35. package/dist/{lineage-D3AZAJVe.js → lineage-Bktb0UcV.js} +1 -1
  36. package/dist/{list-B0zsb5Cp.js → list-Bxvg5wXf.js} +224 -544
  37. package/dist/{logging-B8KEJegM.js → logging--smS7XRK.js} +2 -2
  38. package/dist/{session-stop-DponjDUZ.js → mailbox-turn-uSXhUFc9.js} +4747 -7039
  39. package/dist/{message-B5fKDYzz.js → message-BNenhsmB.js} +12 -22
  40. package/dist/{model-input-CuMWy37l.js → model-input-BReSnwHp.js} +3 -3
  41. package/dist/nitro.d.ts +1 -1
  42. package/dist/nitro.js +20 -6
  43. package/dist/{oauth-callback-server-B3Vvlydo.js → oauth-callback-server-CE4soEIY.js} +2 -2
  44. package/dist/{oauth-relay-6ERrGPbA.js → oauth-relay-C36gX1gH.js} +2 -2
  45. package/dist/{package-discovery-BI6T_RkD.js → package-discovery-DD9vencX.js} +1 -50
  46. package/dist/{list-mkB_GU8R.js → parent-result-Ck1rFYRQ.js} +107 -92
  47. package/dist/{plugins-BXMdNdyA.js → plugins-D_Ru4CWc.js} +1 -1
  48. package/dist/profile-BQ-iBDsZ.js +4657 -0
  49. package/dist/{transcript-CCi7323k.js → prompt-Dv7gkpD6.js} +97 -103
  50. package/dist/proxy-path-BHYoKZdq.js +15 -0
  51. package/dist/registry-iXMT5Jmh.js +3279 -0
  52. package/dist/reports-WKHfGTsU.js +195 -0
  53. package/dist/{resolve-D5JVvv6A.js → resolve-tony4ibz.js} +9 -29
  54. package/dist/{result-CS_7mo8a.js → result-Bta_dlWa.js} +25 -116
  55. package/dist/run-conversation-DL6ru7iW.js +336 -0
  56. package/dist/{runner-BzAES5W3.js → runner-BstDRbD9.js} +7 -7
  57. package/dist/{sandbox-egress-signals-Dwhk2Q5F.js → sandbox-egress-signals-oSJMJOnn.js} +1 -1
  58. package/dist/{schema-z5-wA6N4.js → schema-DfqrHACA.js} +48 -86
  59. package/dist/sender-actors-CPglLd5R.js +83 -0
  60. package/dist/{service-account-D6AsAtc1.js → service-account-CTV_jaNu.js} +3 -1
  61. package/dist/{skills-DgJ9GBPR.js → skills-BCEU41zM.js} +4 -4
  62. package/dist/{slack-conversation-unfurl-Dq71EkhM.js → slack-conversation-unfurl-DxVmhbGP.js} +7 -6
  63. package/dist/{spawn-BJWpdwhQ.js → spawn-frczVPIr.js} +11 -8
  64. package/dist/{system-prompt-table-iIgpmslr.js → system-prompt-table-CiXy0eNR.js} +88 -69
  65. package/dist/{task-runner-BJae4JwE.js → task-runner-C9Yc2_ae.js} +20 -46
  66. package/dist/{thread-context-fiMNylbg.js → thread-context-CqZDKErp.js} +6 -6
  67. package/dist/topics-SRN7IVX-.js +24 -0
  68. package/dist/turn-membership-CENFf3kI.js +856 -0
  69. package/dist/{turn-wake-BjDW7x-5.js → turn-wake-BhloiI2h.js} +4 -5
  70. package/dist/{media-BebquhET.js → types-C4iC-IMC.js} +801 -771
  71. package/dist/user-customization-CvfuY9Eo.js +93 -0
  72. package/dist/users-ByG5RCEJ.js +181 -0
  73. package/dist/{validation-D5WmmmhX.js → validation-8gjfR91V.js} +1 -1
  74. package/dist/{version-CBQoanXb.js → version-BeZhWWBE.js} +1 -1
  75. package/dist/version.js +1 -1
  76. package/dist/{worker-Cyb4kF17.js → worker-BqMQQNRk.js} +5 -4
  77. package/migrations/20261126025226_drop_agent_invocations/migration.sql +6 -0
  78. package/migrations/20261126025226_drop_agent_invocations/snapshot.json +9 -0
  79. package/migrations/20261126033000_space_conversations_lead_children/migration.sql +155 -0
  80. package/migrations/20261126033000_space_conversations_lead_children/snapshot.json +9 -0
  81. package/migrations/20261126144620_drop_user_message_time_index/migration.sql +1 -0
  82. package/migrations/20261126144620_drop_user_message_time_index/snapshot.json +38 -0
  83. package/migrations/20261126153100_inbox_item_subjects/migration.sql +140 -0
  84. package/migrations/20261126153100_inbox_item_subjects/snapshot.json +9 -0
  85. package/migrations/20261126153103_inbox_item_subjects_not_null/migration.sql +12 -0
  86. package/migrations/20261126153103_inbox_item_subjects_not_null/snapshot.json +9 -0
  87. package/migrations/20261126153105_inbox_item_subject_indexes/migration.sql +1 -0
  88. package/migrations/20261126153105_inbox_item_subject_indexes/snapshot.json +9 -0
  89. package/migrations/20261126153108_automation_run_conversation_index/migration.sql +1 -0
  90. package/migrations/20261126153108_automation_run_conversation_index/snapshot.json +9 -0
  91. package/migrations/20261126153159_inbox_item_subjects_schema/migration.sql +4 -0
  92. package/migrations/20261126153159_inbox_item_subjects_schema/snapshot.json +437 -0
  93. package/migrations/20261126153259_inbox_questions/migration.sql +76 -0
  94. package/migrations/20261126153259_inbox_questions/snapshot.json +9 -0
  95. package/migrations/20261126153301_inbox_questions_valid/migration.sql +3 -0
  96. package/migrations/20261126153301_inbox_questions_valid/snapshot.json +9 -0
  97. package/migrations/20261126153343_inbox_questions_schema/migration.sql +5 -0
  98. package/migrations/20261126153343_inbox_questions_schema/snapshot.json +407 -0
  99. package/migrations/20261126154025_inbox_item_owners/migration.sql +74 -0
  100. package/migrations/20261126154025_inbox_item_owners/snapshot.json +9 -0
  101. package/migrations/20261126154048_inbox_item_open_subject_key_index/migration.sql +1 -0
  102. package/migrations/20261126154048_inbox_item_open_subject_key_index/snapshot.json +9 -0
  103. package/migrations/20261126154051_drop_inbox_item_owner_indexes/migration.sql +7 -0
  104. package/migrations/20261126154051_drop_inbox_item_owner_indexes/snapshot.json +9 -0
  105. package/migrations/20261126154121_inbox_item_owners_schema/migration.sql +8 -0
  106. package/migrations/20261126154121_inbox_item_owners_schema/snapshot.json +311 -0
  107. package/migrations/20261126175601_conversation_event_turn/migration.sql +5 -0
  108. package/migrations/20261126175601_conversation_event_turn/snapshot.json +103 -0
  109. package/migrations/20261126175614_conversation_event_turn_index/migration.sql +1 -0
  110. package/migrations/20261126175614_conversation_event_turn_index/snapshot.json +62 -0
  111. package/migrations/20261126230028_merge_leaves/migration.sql +2 -0
  112. package/migrations/20261126230028_merge_leaves/snapshot.json +12 -0
  113. package/migrations/20261126231932_space_lead_holds_name/migration.sql +46 -0
  114. package/migrations/20261126231932_space_lead_holds_name/snapshot.json +58 -0
  115. package/migrations/20261127001022_merge_leaves/migration.sql +2 -0
  116. package/migrations/20261127001022_merge_leaves/snapshot.json +12 -0
  117. package/package.json +5 -5
  118. package/dist/people-CUtFApfL.js +0 -81
  119. package/dist/start-conversation-B-LIqqNi.js +0 -162
  120. package/dist/turn-session-routing-D15orfwy.js +0 -1309
  121. package/dist/user-customization-B27StpVQ.js +0 -9
  122. package/dist/web-message-id-C6P83ans.js +0 -10
@@ -0,0 +1,336 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
+ import { $r as getDispatchIdForConversation, Bo as credentialContextForActor, Oa as linkAutomationRunConversation, Qr as getDispatchConversationId, Vt as appendAndEnqueueInboundMessage, Xr as confirmDispatchMailboxAppend, Yr as claimDispatchMailboxAppend, ci as markDispatchCompleted, ei as getDispatchInputMessageId, hu as indexEndedTurnEvents, i as getConversationStore, ii as isTerminalDispatchStatus, li as markDispatchFailed, ni as getDispatchTurnId, o as getSqlExecutor, oi as markDispatchAwaitingResume, sc as resolveActorIdentityId, si as markDispatchBlocked, ti as getDispatchRecord, ui as markDispatchRunning } from "./db-BFmyYZtJ.js";
3
+ import { h as logWarn } from "./logging--smS7XRK.js";
4
+ import { Cr as listTurnSummaries, Sr as getTurnRecord, a as resolveMailboxTurnWork, at as isCooperativeTurnYieldError, cr as AuthorizationFlowDisabledError, ir as PluginCredentialFailureError, it as getConversationTurnBoundaryError, nt as TurnInputCommitLostError, ot as isTurnInputCommitLostError, wr as recordTurnSummary } from "./mailbox-turn-uSXhUFc9.js";
5
+ import { n as recordChildAgentEnded } from "./parent-result-Ck1rFYRQ.js";
6
+ import { n as withSenderActors } from "./sender-actors-CPglLd5R.js";
7
+ import * as z from "zod";
8
+ // src/chat/agent-dispatch/work.ts
9
+ const agentDispatchMailboxMetadataSchema = z.object({
10
+ dispatchId: z.string().min(1),
11
+ kind: z.literal("agent_dispatch")
12
+ }).strict();
13
+ const AGENT_DISPATCH_MAX_AGE_MS = 864e5;
14
+ /** Return whether a dispatch is a Scheduled or Event automation run. */
15
+ function isAutomationRun(dispatch) {
16
+ return dispatch.source.kind === "scheduled_automation" || dispatch.source.kind === "event_automation";
17
+ }
18
+ /** Restore the exact actor, credential, and dispatch routing for every slice. */
19
+ function buildDispatchRoutingContext(dispatch) {
20
+ return {
21
+ actor: dispatch.actor,
22
+ credentialContext: credentialContextForActor(dispatch.actor, dispatch.credentialSubject),
23
+ dispatch: {
24
+ actor: dispatch.actor,
25
+ id: dispatch.id,
26
+ metadata: dispatch.metadata,
27
+ plugin: dispatch.plugin,
28
+ replyAttribution: dispatch.replyAttribution,
29
+ outcomes: dispatch.outcomes,
30
+ ...dispatch.skill ? { skill: dispatch.skill } : void 0,
31
+ ...isAutomationRun(dispatch) ? { declaresResult: true } : void 0
32
+ },
33
+ surface: "api"
34
+ };
35
+ }
36
+ /** Build the stable mailbox work item for one agent dispatch. */
37
+ function buildAgentDispatchInboundMessage(dispatch, nowMs = Date.now(), authorIdentityId) {
38
+ return {
39
+ conversationId: getDispatchConversationId(dispatch),
40
+ createdAtMs: dispatch.createdAtMs,
41
+ delivery: "defer",
42
+ destination: dispatch.destination,
43
+ inboundMessageId: getDispatchInputMessageId(dispatch.id),
44
+ input: {
45
+ text: "[plugin dispatch]",
46
+ ...authorIdentityId ? { authorIdentityId } : void 0,
47
+ metadata: {
48
+ dispatchId: dispatch.id,
49
+ kind: "agent_dispatch"
50
+ }
51
+ },
52
+ receivedAtMs: nowMs,
53
+ source: "plugin"
54
+ };
55
+ }
56
+ /** Persist dispatch mailbox work before sending its conversation wake-up. */
57
+ async function enqueueAgentDispatch(dispatch, options) {
58
+ const nowMs = options.nowMs ?? Date.now();
59
+ const claimedDispatch = await claimDispatchMailboxAppend(dispatch.id);
60
+ if (!claimedDispatch) return;
61
+ const conversationStore = options.conversationStore ?? getConversationStore();
62
+ const conversationId = getDispatchConversationId(claimedDispatch);
63
+ const destination = claimedDispatch.destination;
64
+ await conversationStore.recordActivity({
65
+ activityAtMs: claimedDispatch.createdAtMs,
66
+ conversationId,
67
+ destination,
68
+ kind: isAutomationRun(claimedDispatch) ? "automation" : "thread",
69
+ nowMs,
70
+ source: "plugin",
71
+ sessionSource: claimedDispatch.source,
72
+ ...claimedDispatch.title ? { title: claimedDispatch.title } : void 0
73
+ });
74
+ const source = claimedDispatch.source;
75
+ if ((source.kind === "scheduled_automation" || source.kind === "event_automation") && source.automationRunId) await linkAutomationRunConversation({
76
+ conversationId,
77
+ runId: source.automationRunId
78
+ });
79
+ if (destination.platform === "slack" && destination.threadTs) await conversationStore.claimProviderConversation({
80
+ atMs: nowMs,
81
+ conversationId,
82
+ provider: "slack",
83
+ providerDestinationId: destination.channelId,
84
+ providerTenantId: destination.teamId,
85
+ providerConversationId: destination.threadTs
86
+ });
87
+ await appendAndEnqueueInboundMessage({
88
+ message: buildAgentDispatchInboundMessage(claimedDispatch, nowMs, await resolveActorIdentityId(getSqlExecutor(), claimedDispatch.actor)),
89
+ conversationStore: options.conversationStore,
90
+ nowMs,
91
+ queue: options.queue,
92
+ state: options.state
93
+ });
94
+ await confirmDispatchMailboxAppend(claimedDispatch.id);
95
+ }
96
+ /** Parse dispatch routing metadata from a durable mailbox message. */
97
+ function dispatchIdFromMessages(messages) {
98
+ if (messages.length === 0) return;
99
+ const parsed = messages.map((message) => agentDispatchMailboxMetadataSchema.safeParse(message.input.metadata));
100
+ if (parsed.every((result) => !result.success)) return;
101
+ if (parsed.some((result) => !result.success)) throw new Error("Conversation mailbox mixes dispatch and provider input");
102
+ const ids = new Set(parsed.map((result) => {
103
+ if (!result.success) throw new Error("Dispatch mailbox metadata failed validation");
104
+ return result.data.dispatchId;
105
+ }));
106
+ if (ids.size !== 1) throw new Error("Conversation mailbox contains multiple dispatches");
107
+ return ids.values().next().value;
108
+ }
109
+ /**
110
+ * Resolve a dispatch from concrete mailbox metadata or the active turn.
111
+ *
112
+ * Provider source and conversation-id conventions are deliberately not
113
+ * execution routing authority.
114
+ */
115
+ async function resolveAgentDispatchId(context) {
116
+ const mailboxDispatchId = dispatchIdFromMessages(context.attempt.messages);
117
+ if (mailboxDispatchId) return mailboxDispatchId;
118
+ if (context.attempt.messages.length > 0) return;
119
+ const summaries = await listTurnSummaries(context.conversationId);
120
+ const activeDispatchIds = new Set(summaries.filter((summary) => (summary.state === "paused" || summary.state === "running") && Boolean(summary.dispatchId)).map((summary) => summary.dispatchId).filter((id) => Boolean(id)));
121
+ if (activeDispatchIds.size > 1) throw new Error(`Conversation ${context.conversationId} has multiple active dispatches`);
122
+ const activeDispatchId = activeDispatchIds.values().next().value;
123
+ if (activeDispatchId) return activeDispatchId;
124
+ const durableDispatchIds = new Set(summaries.map((summary) => summary.dispatchId).filter((id) => Boolean(id)));
125
+ if (durableDispatchIds.size > 1) throw new Error(`Conversation ${context.conversationId} has multiple dispatch sessions`);
126
+ const durableDispatchId = durableDispatchIds.values().next().value;
127
+ if (!durableDispatchId) return;
128
+ const dispatch = await getDispatchRecord(durableDispatchId);
129
+ return dispatch && !isTerminalDispatchStatus(dispatch.status) ? durableDispatchId : void 0;
130
+ }
131
+ async function readDispatchTurnResult(dispatch) {
132
+ const conversationId = getDispatchConversationId(dispatch);
133
+ const turnId = getDispatchTurnId(dispatch.id);
134
+ const storedSession = await getTurnRecord(conversationId, turnId);
135
+ const summary = (await listTurnSummaries(conversationId)).find((candidate) => candidate.turnId === turnId);
136
+ const session = storedSession ?? summary;
137
+ const dispatchOutcome = summary?.dispatchOutcome ?? storedSession?.dispatchOutcome;
138
+ const resultMessageTs = summary?.resultMessageId ?? storedSession?.resultMessageId;
139
+ const errorMessage = storedSession?.errorMessage;
140
+ if (dispatchOutcome) return {
141
+ ...errorMessage ? { errorMessage } : void 0,
142
+ outcome: dispatchOutcome,
143
+ ...resultMessageTs ? { resultMessageTs } : void 0
144
+ };
145
+ if (resultMessageTs) return {
146
+ outcome: "completed",
147
+ resultMessageTs
148
+ };
149
+ if (!session) return { outcome: "not_started" };
150
+ switch (session.state) {
151
+ case "paused": return { outcome: "awaiting_resume" };
152
+ case "running": return { outcome: "still_running" };
153
+ case "completed": return { outcome: "completed" };
154
+ case "abandoned":
155
+ case "failed": return {
156
+ ...errorMessage ? { errorMessage } : void 0,
157
+ outcome: "retryable"
158
+ };
159
+ }
160
+ }
161
+ async function projectDispatchTurnResult(dispatchId, result) {
162
+ switch (result.outcome) {
163
+ case "awaiting_resume":
164
+ await markDispatchAwaitingResume(dispatchId);
165
+ break;
166
+ case "blocked":
167
+ await markDispatchBlocked(dispatchId, result.errorMessage ?? "Dispatch requires authorization that is unavailable for background work", result.resultMessageTs);
168
+ break;
169
+ case "failed":
170
+ await markDispatchFailed(dispatchId, result.errorMessage ?? "Agent turn failed", result.resultMessageTs);
171
+ break;
172
+ case "completed":
173
+ await markDispatchCompleted(dispatchId, result.resultMessageTs);
174
+ break;
175
+ case "not_started": await markDispatchFailed(dispatchId, "Dispatch turn record is missing");
176
+ }
177
+ }
178
+ function getDispatchBlockingError(error) {
179
+ const cause = getConversationTurnBoundaryError(error)?.cause ?? error;
180
+ return cause instanceof AuthorizationFlowDisabledError || cause instanceof PluginCredentialFailureError ? cause : void 0;
181
+ }
182
+ function missingAuthorizationReason(dispatch, provider) {
183
+ return dispatch.credentialSubject ? `This run needs a connected ${provider} account.` : `This run uses system credentials, which have no ${provider} access. Switch it to creator credentials and connect a ${provider} account.`;
184
+ }
185
+ async function persistBlockedDispatchTurn(dispatch, error) {
186
+ const conversationId = getDispatchConversationId(dispatch);
187
+ const sessionId = getDispatchTurnId(dispatch.id);
188
+ const session = await getTurnRecord(conversationId, sessionId);
189
+ await recordTurnSummary({
190
+ actor: dispatch.actor,
191
+ conversationId,
192
+ destination: dispatch.destination,
193
+ dispatchId: dispatch.id,
194
+ dispatchOutcome: "blocked",
195
+ turnId: sessionId,
196
+ sliceId: session?.sliceId ?? 1,
197
+ source: dispatch.source,
198
+ state: "failed",
199
+ surface: "api"
200
+ });
201
+ await markDispatchBlocked(dispatch.id, error instanceof AuthorizationFlowDisabledError ? missingAuthorizationReason(dispatch, error.provider) : error.message);
202
+ }
203
+ /** Run one dispatch start or resume under the owning conversation lease. */
204
+ function createAgentDispatchConversationWorker(options) {
205
+ return async (context, dispatchId) => {
206
+ const dispatch = await getDispatchRecord(dispatchId);
207
+ if (!dispatch) throw new Error(`Dispatch record is missing for ${dispatchId}`);
208
+ const expectedConversationId = getDispatchConversationId(dispatch);
209
+ if (context.conversationId !== expectedConversationId) throw new Error(`Dispatch ${dispatch.id} belongs to ${expectedConversationId}, not ${context.conversationId}`);
210
+ if (!context.destination || context.destination.platform !== dispatch.destination.platform || context.destination.teamId !== dispatch.destination.teamId || context.destination.channelId !== dispatch.destination.channelId) throw new Error(`Dispatch ${dispatch.id} destination does not match its conversation lease`);
211
+ let acknowledged = context.attempt.messages.length === 0;
212
+ const acknowledge = async () => {
213
+ if (acknowledged) return;
214
+ try {
215
+ await context.attempt.ack();
216
+ } catch {
217
+ throw new TurnInputCommitLostError(`Conversation work lease lost before dispatch inbox ack for ${context.conversationId}`);
218
+ }
219
+ acknowledged = true;
220
+ };
221
+ if (isTerminalDispatchStatus(dispatch.status)) {
222
+ await acknowledge();
223
+ return { status: "completed" };
224
+ }
225
+ const durableResult = await readDispatchTurnResult(dispatch);
226
+ if (durableResult.outcome === "blocked" || durableResult.outcome === "completed" || durableResult.outcome === "failed") {
227
+ await projectDispatchTurnResult(dispatch.id, durableResult);
228
+ await acknowledge();
229
+ return { status: "completed" };
230
+ }
231
+ if (Date.now() - dispatch.createdAtMs > 864e5) {
232
+ await markDispatchFailed(dispatch.id, "Dispatch exceeded its maximum processing age");
233
+ await acknowledge();
234
+ return { status: "completed" };
235
+ }
236
+ const runningDispatch = await markDispatchRunning(dispatch.id);
237
+ if (!runningDispatch) throw new Error(`Dispatch record disappeared for ${dispatch.id}`);
238
+ if (isTerminalDispatchStatus(runningDispatch.status)) {
239
+ await acknowledge();
240
+ return { status: "completed" };
241
+ }
242
+ try {
243
+ const resumesDurableTurn = durableResult.outcome === "awaiting_resume" || durableResult.outcome === "still_running";
244
+ if (resumesDurableTurn && context.attempt.messages.length > 0) await acknowledge();
245
+ let result;
246
+ if (resumesDurableTurn) {
247
+ await options.resumeTurn(dispatch, {
248
+ shouldYield: context.shouldYield,
249
+ checkIn: context.checkIn
250
+ });
251
+ result = await readDispatchTurnResult(dispatch);
252
+ } else result = await options.runTurn(dispatch, {
253
+ ack: acknowledge,
254
+ shouldYield: context.shouldYield,
255
+ checkIn: context.checkIn
256
+ }) ?? await readDispatchTurnResult(dispatch);
257
+ if (result.outcome === "still_running") throw new Error(`Dispatch turn ${dispatch.id} is still running after its attempt`);
258
+ if (result.outcome === "retryable") throw new Error(result.errorMessage ?? `Dispatch turn ${dispatch.id} failed`);
259
+ await projectDispatchTurnResult(dispatch.id, result);
260
+ if (!acknowledged) await acknowledge();
261
+ return result.outcome === "awaiting_resume" && context.shouldYield() ? { status: "yielded" } : { status: "completed" };
262
+ } catch (error) {
263
+ if (isCooperativeTurnYieldError(error)) {
264
+ await markDispatchAwaitingResume(dispatch.id);
265
+ return { status: "yielded" };
266
+ }
267
+ if (isTurnInputCommitLostError(error)) {
268
+ logWarn("agent.dispatch.lost_lease", {
269
+ "app.dispatch.id": dispatch.id,
270
+ "error.type": error.name,
271
+ "exception.message": error.message
272
+ });
273
+ return { status: "lost_lease" };
274
+ }
275
+ const blockingError = getDispatchBlockingError(error);
276
+ if (blockingError) {
277
+ await persistBlockedDispatchTurn(dispatch, blockingError);
278
+ await indexEndedTurnEvents({
279
+ conversationId: context.conversationId,
280
+ turnId: getDispatchTurnId(dispatch.id)
281
+ });
282
+ await acknowledge();
283
+ return { status: "completed" };
284
+ }
285
+ if (!context.attempt.isFinalAttempt) throw error;
286
+ await markDispatchFailed(dispatch.id, error instanceof Error ? error.message : "Dispatch turn failed");
287
+ await indexEndedTurnEvents({
288
+ conversationId: context.conversationId,
289
+ turnId: getDispatchTurnId(dispatch.id)
290
+ });
291
+ await acknowledge();
292
+ return { status: "completed" };
293
+ }
294
+ };
295
+ }
296
+ /**
297
+ * Fail the dispatch of stopped Conversation work, so the Automation run that
298
+ * waits on it settles instead of blocking later runs.
299
+ */
300
+ async function failStoppedDispatch(conversationId) {
301
+ const dispatchId = getDispatchIdForConversation(conversationId);
302
+ if (dispatchId) await markDispatchFailed(dispatchId, "Dispatch work stopped after repeated failed attempts.");
303
+ }
304
+ // src/chat/task-execution/run-conversation.ts
305
+ var run_conversation_exports = /* @__PURE__ */ __exportAll({ runConversation: () => runConversation });
306
+ /**
307
+ * Run one attempt of any Conversation, root or child: its mailbox Turn,
308
+ * then its dispatch, then its Destination work. An attempt with none of
309
+ * them, such as an empty wake after a stop, completes.
310
+ */
311
+ async function runConversation(context, workers) {
312
+ const mailboxTurn = await resolveMailboxTurnWork(context);
313
+ if (mailboxTurn) {
314
+ const work = await withSenderActors(mailboxTurn);
315
+ if (!work) {
316
+ await context.attempt.ack();
317
+ return { status: "completed" };
318
+ }
319
+ const result = await workers.runTurn(context, work);
320
+ if (result.status === "completed") await recordChildAgentEnded(context.conversationId, "success", { state: workers.state });
321
+ return result;
322
+ }
323
+ if (workers.runDispatch) {
324
+ const dispatchId = await resolveAgentDispatchId(context);
325
+ if (dispatchId) return await workers.runDispatch(context, dispatchId);
326
+ }
327
+ const destination = context.destination;
328
+ if (!destination) {
329
+ await context.attempt.ack();
330
+ return { status: "completed" };
331
+ }
332
+ const runDestination = workers.destinations?.[destination.platform];
333
+ if (!runDestination) throw new Error(`Conversation ${context.conversationId} has a ${destination.platform} destination but no matching conversation worker`);
334
+ return await runDestination(context);
335
+ }
336
+ export { createAgentDispatchConversationWorker as a, buildDispatchRoutingContext as i, run_conversation_exports as n, enqueueAgentDispatch as o, AGENT_DISPATCH_MAX_AGE_MS as r, failStoppedDispatch as s, runConversation as t };
@@ -1,10 +1,10 @@
1
- import { Rt as messageCardText } from "./media-BebquhET.js";
2
- import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-fiMNylbg.js";
3
- import { p as getAssistantReplyText } from "./system-prompt-table-iIgpmslr.js";
4
- import { S as setTags, T as withLogContext, p as logException } from "./logging-B8KEJegM.js";
5
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-BJae4JwE.js";
6
- import { Ci as getTurnLifecycle, Cr as normalizeConversationText, Dr as upsertConversationMessage, Pi as finalizeFailedTurnReplyWithEvent, Q as startActiveTurn, Qn as loadConversationProjection, Sr as markConversationMessage, Yn as commitAcceptedReply, Z as markTurnFailed, Zi as persistWithRetry, Zr as saveTurnCheckpoint, at as persistThreadStateById, fr as hydrateConversationMessages, ir as recordAuthorizationCompleted, mr as persistConversationMessages, nt as getPersistedSandboxState, ot as coerceThreadConversationState, rt as getPersistedThreadState, wr as recordDeliveredAssistantMessage, xr as latestConversationMessageSeq, zr as authorizationId } from "./session-stop-DponjDUZ.js";
7
- import { i as getConversationStore, of as credentialContextForActor, sl as SYSTEM_IDENTITY_ID } from "./db-DhzvUY23.js";
1
+ import { Ht as messageCardText } from "./types-C4iC-IMC.js";
2
+ import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-CqZDKErp.js";
3
+ import { h as getAssistantReplyText } from "./system-prompt-table-CiXy0eNR.js";
4
+ import { S as setTags, T as withLogContext, p as logException } from "./logging--smS7XRK.js";
5
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-C9Yc2_ae.js";
6
+ import { Er as getTurnLifecycle, Fn as persistConversationMessages, Gn as recordDeliveredAssistantMessage, Hn as latestConversationMessageSeq, Jn as upsertConversationMessage, Nn as hydrateConversationMessages, Rr as finalizeFailedTurnReplyWithEvent, Tn as recordAuthorizationCompleted, Un as markConversationMessage, Wn as normalizeConversationText, _t as coerceThreadConversationState, dt as startActiveTurn, gn as commitAcceptedReply, gt as persistThreadStateById, mt as getPersistedThreadState, or as authorizationId, pt as getPersistedSandboxState, ti as persistWithRetry, ut as markTurnFailed, vr as saveTurnCheckpoint, yn as loadConversationProjection } from "./mailbox-turn-uSXhUFc9.js";
7
+ import { Bo as credentialContextForActor, i as getConversationStore, oc as SYSTEM_IDENTITY_ID } from "./db-BFmyYZtJ.js";
8
8
  import { randomUUID } from "node:crypto";
9
9
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
10
10
  // src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { Cr as sandboxEgressSignalsResponseSchema } from "./db-DhzvUY23.js";
1
+ import { k as sandboxEgressSignalsResponseSchema } from "./profile-BQ-iBDsZ.js";
2
2
  // src/chat/local/sandbox-egress-signals.ts
3
3
  const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
4
4
  const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
@@ -1,20 +1,10 @@
1
- import { $ as conversationSummaryReportSchema, H as conversationAuxiliaryCostsSchema, J as conversationParamsSchema, R as actorIdentitySchema, Wt as inputFileSchema, _n as inboxItemRequestSchema, fn as TODO_STATUSES, rt as conversationChildAgentTotalsSchema, s as notificationScheduleSchema, tt as conversationUsageSchema } from "./media-BebquhET.js";
2
- import { f as conversationTitleSchema } from "./conversation-feed-B84pMjHo.js";
3
- import { i as fillUtcHours, r as fillUtcDays, s as sumUtcHoursIntoSixHours } from "./reporting-window-C4dbzDiR.js";
1
+ import "./user-customization-CvfuY9Eo.js";
2
+ import { F as actorIdentitySchema, G as conversationParamsSchema, Jt as inputFileSchema, Lt as conversationTreeStateSchema, Q as conversationUsageSchema, Rn as notificationScheduleSchema, X as conversationSummaryReportSchema, dn as inboxItemNoticeRequestSchema, et as conversationChildAgentTotalsSchema, i as TODO_STATUSES, pn as inboxItemRequestSchema, z as conversationAuxiliaryCostsSchema } from "./types-C4iC-IMC.js";
3
+ import { a as fillUtcDays, l as sumUtcHoursIntoSixHours, m as CHILD_AGENT_RESULTS, o as fillUtcHours, t as AGENT_STATUSES } from "./agent-status-BA5x3Xtp.js";
4
+ import { f as conversationTitleSchema } from "./conversation-feed--9S0_PXL.js";
4
5
  import { t as isPushServiceEndpoint } from "./push-endpoint-CO-nomUd.js";
5
- import "./user-customization-B27StpVQ.js";
6
6
  import * as z from "zod";
7
7
  import { codeChangeStateSchema, eventMatchSchema, objectTypeSchema, ownedObjectAnnotationSchema } from "@sentry/junior-plugin-api";
8
- // src/chat/agent-invocations/statuses.ts
9
- const AGENT_INVOCATION_STATUSES = [
10
- "pending",
11
- "running",
12
- "paused",
13
- "blocked",
14
- "completed",
15
- "failed",
16
- "stopped"
17
- ];
18
8
  // src/api/schema/conversation-fork.ts
19
9
  /** Body of a request to fork a Conversation at one assistant reply. */
20
10
  const forkConversationBodySchema = z.object({
@@ -107,8 +97,8 @@ const conversationOutlineSchema = z.object({ items: z.array(z.object({
107
97
  createdAt: z.string().datetime(),
108
98
  /** Identity id of the author. Detail `authors` maps it to the person. */
109
99
  actorIdentityId: z.string().min(1).optional(),
110
- /** Set on input that an earlier release's agent wrote. */
111
- agentInvocationId: z.string().min(1).optional(),
100
+ /** Set on input that a parent agent wrote, not a person. */
101
+ fromParentAgent: z.literal(true).optional(),
112
102
  text: z.string().min(1),
113
103
  /** The last Junior text before the next item. */
114
104
  reply: z.string().min(1).optional(),
@@ -215,9 +205,10 @@ const continueConversationInSlackResponseSchema = z.object({
215
205
  * One direct child agent of a Conversation, from its stored agent config.
216
206
  *
217
207
  * Viewers who cannot see private content get the status, time, and usage, but
218
- * not the name, task, title, or error. Usage covers the child Conversation and
219
- * all its own child agents, like the detail of that child Conversation.
220
- * Archived children stay in the report.
208
+ * not the name or title. A visible child always has a title, null when its
209
+ * spawn gave none. Usage covers the child Conversation and all its own child
210
+ * agents, like the detail of that child Conversation. Archived children stay
211
+ * in the report.
221
212
  */
222
213
  const conversationChildAgentSchema = z.object({
223
214
  auxiliaryCosts: conversationAuxiliaryCostsSchema.optional(),
@@ -227,22 +218,26 @@ const conversationChildAgentSchema = z.object({
227
218
  conversationId: z.string().min(1),
228
219
  cumulativeDurationMs: z.number(),
229
220
  cumulativeUsage: conversationUsageSchema.optional(),
230
- error: z.string().min(1).optional(),
231
221
  kind: z.enum(["thread", "task"]),
222
+ /** How its newest finished Turn that was not stopped ended. */
223
+ lastResult: z.enum(CHILD_AGENT_RESULTS).optional(),
232
224
  name: z.string().min(1).optional(),
233
225
  redacted: z.literal(true).optional(),
234
- status: z.enum(AGENT_INVOCATION_STATUSES),
235
- task: z.string().optional(),
236
- title: z.string().min(1).optional(),
237
- updatedAt: z.string().datetime()
226
+ status: z.enum(AGENT_STATUSES),
227
+ title: z.string().min(1).nullable().optional(),
228
+ /** What the child and its own children wait on, for the viewer. */
229
+ treeState: conversationTreeStateSchema,
230
+ updatedAt: z.string().datetime(),
231
+ /** The child or one of its own children watches for an Event or Timer. */
232
+ watching: z.boolean()
238
233
  }).strict().superRefine((data, context) => {
239
- if (data.task === void 0 === (data.redacted !== true)) context.addIssue({
234
+ if (data.title === void 0 === (data.redacted !== true)) context.addIssue({
240
235
  code: "custom",
241
- message: "child agent task must be text or explicitly redacted"
236
+ message: "child agent title must be set or explicitly redacted"
242
237
  });
243
- if (data.redacted && (data.name || data.title || data.error)) context.addIssue({
238
+ if (data.redacted && data.name) context.addIssue({
244
239
  code: "custom",
245
- message: "redacted child agents must not expose a name, title, or error"
240
+ message: "redacted child agents must not expose a name"
246
241
  });
247
242
  });
248
243
  /** Direct child agents of one Conversation, newest activity first. */
@@ -633,35 +628,6 @@ const spaceConfigEntrySchema = z.object({
633
628
  }).strict();
634
629
  /** A Space's configuration, by key. */
635
630
  const spaceConfigurationSchema = z.object({ entries: z.array(spaceConfigEntrySchema) }).strict();
636
- // src/api/schema/lead.ts
637
- /**
638
- * The Lead of a Space. Members send it messages with the Conversation
639
- * message route.
640
- */
641
- const leadSchema = z.object({
642
- conversationId: z.string().min(1),
643
- /**
644
- * The Lead's newest event seq, read before its Watches, or -1 before its
645
- * first event. Watches change only in the Lead's Turns, so a transcript
646
- * event past this seq means the Watches may be out of date.
647
- */
648
- lastSeq: z.number().int().min(-1),
649
- /** The Conversations that the Lead has an active Watch on. */
650
- watchedConversationIds: z.array(z.string().min(1))
651
- }).strict();
652
- // src/api/schema/space-member.ts
653
- /** One member of a Space. */
654
- const spaceMemberSchema = z.object({
655
- userId: z.string().min(1),
656
- email: z.string(),
657
- displayName: z.string().nullable(),
658
- /** Junior API path of the member's profile photo. */
659
- avatarUrl: z.string().nullable(),
660
- joinedAt: z.iso.datetime()
661
- }).strict();
662
- const spaceMemberListSchema = z.object({ members: z.array(spaceMemberSchema) }).strict();
663
- /** Add one person to a Space by the primary email of their User. */
664
- const addSpaceMemberBodySchema = z.object({ email: z.string().trim().min(1).max(320) }).strict();
665
631
  // src/api/schema/person.ts
666
632
  const personParamsSchema = z.object({ email: z.string().trim().min(1) }).strict();
667
633
  /**
@@ -792,28 +758,21 @@ const personCardReportSchema = z.object({
792
758
  const USER_SEARCH_DEFAULT_LIMIT = 10;
793
759
  /** The most Users one search returns. */
794
760
  const USER_SEARCH_MAX_LIMIT = 25;
795
- /**
796
- * A search for Users to add to one Space or Conversation that the viewer
797
- * can read. Set exactly one of `spaceId` and `conversationId`.
798
- */
761
+ /** A search for Users to add to one Conversation that the viewer can read. */
799
762
  const userSearchQuerySchema = z.object({
800
- conversationId: z.string().min(1).max(500).optional(),
763
+ conversationId: z.string().min(1).max(500),
801
764
  limit: z.coerce.number().int().min(1).max(25).default(10),
802
- q: z.string().trim().min(1).max(100),
803
- spaceId: z.string().uuid().optional()
804
- }).strict().refine((query) => query.spaceId === void 0 !== !query.conversationId, { message: "Set exactly one of spaceId and conversationId." });
765
+ q: z.string().trim().min(1).max(100)
766
+ }).strict();
805
767
  /**
806
768
  * One User that the people picker shows. `isMember` is true when they are
807
- * already a Member of the Space or a Participant of the Conversation.
808
- * `slackUserId` is set for a Conversation search, because Invite names a
809
- * person by their Slack account in its workspace.
769
+ * already a Participant of the Conversation. Invite names them by `userId`.
810
770
  */
811
771
  const userSearchResultSchema = z.object({
812
772
  avatarUrl: z.string().optional(),
813
773
  email: z.string().min(1),
814
774
  fullName: z.string().optional(),
815
775
  isMember: z.literal(true).optional(),
816
- slackUserId: z.string().min(1).optional(),
817
776
  slackUserName: z.string().optional(),
818
777
  userId: z.string().min(1)
819
778
  }).strict();
@@ -1210,11 +1169,10 @@ const inboxItemSchema = z.object({
1210
1169
  }).strict())
1211
1170
  }).strict().optional(),
1212
1171
  /**
1213
- * Set on the reply notice of a Conversation's starter. Its body is a
1214
- * short preview of the reply, which its Turn's message holds in full.
1172
+ * The question and its related links. A notice has only the related
1173
+ * links, which say what it is about.
1215
1174
  */
1216
- replyNotice: z.literal(true).optional(),
1217
- request: inboxItemRequestSchema.optional(),
1175
+ request: z.union([inboxItemRequestSchema, inboxItemNoticeRequestSchema]).optional(),
1218
1176
  /**
1219
1177
  * The top of the owner Conversation's tree that the viewer can see, at
1220
1178
  * any depth: the owner when it is a root, or when the viewer cannot see
@@ -1227,8 +1185,22 @@ const inboxItemSchema = z.object({
1227
1185
  "done",
1228
1186
  "dismissed"
1229
1187
  ]),
1188
+ /**
1189
+ * What the item is about. `kind` says what the item asks, such as
1190
+ * `github:pull_request_review`. The rest comes from the subject when
1191
+ * Junior reads the item, never from a copy in the item.
1192
+ */
1230
1193
  subject: z.object({
1231
1194
  id: z.string().min(1),
1195
+ kind: z.string().min(1),
1196
+ /** The name of a plugin kind's ask, such as `Review requested`. */
1197
+ label: z.string().min(1).optional(),
1198
+ /**
1199
+ * The viewer's card of `url`, such as a pull request with its title
1200
+ * and state. Unset when no link type claims `url`, the viewer
1201
+ * cannot see it, or its provider read failed.
1202
+ */
1203
+ object: ownedObjectAnnotationSchema.optional(),
1232
1204
  /**
1233
1205
  * The object type of the link type that claims `url`, such as
1234
1206
  * `code_change` for a pull request. Unset when none claims it.
@@ -1240,19 +1212,9 @@ const inboxItemSchema = z.object({
1240
1212
  * Unset when no Event source claims it.
1241
1213
  */
1242
1214
  resource: inboxSnoozeResourceSchema.optional(),
1243
- title: z.string().min(1).optional(),
1244
- /**
1245
- * A code change title split by Conventional Commits, as the plugin
1246
- * that owns the code change parsed it.
1247
- */
1248
- titleParts: z.object({
1249
- breaking: z.boolean().optional(),
1250
- scope: z.string().min(1).optional(),
1251
- text: z.string().min(1),
1252
- type: z.string().min(1).optional()
1253
- }).strict().optional(),
1215
+ /** The web link of `id`, when `id` is one. */
1254
1216
  url: z.string().min(1).optional()
1255
- }).strict().optional(),
1217
+ }).strict(),
1256
1218
  title: z.string().min(1),
1257
1219
  /**
1258
1220
  * The id of the To-do that the item shows, for a To-do assigned to the
@@ -1477,4 +1439,4 @@ const versionsSchema = z.object({
1477
1439
  /** The viewer's rolling model spend. */
1478
1440
  spend: z.string().min(1)
1479
1441
  }).strict();
1480
- export { userSearchQuerySchema as $, conversationWatchSchema as $t, cacheHealthQuerySchema as A, connectionListSchema as At, serviceAccountParamsSchema as B, codeChangeSummarySchema as Bt, inboxSnoozeResourceQuerySchema as C, createConversationMessageBodySchema as Cn, activityHours as Ct, inboxSnoozeWakesClearSchema as D, pushSubscriptionBodySchema as Dt, inboxSnoozeSubjectSchema as E, notificationSettingsSchema as Et, cacheWarmingSavingsRefillResponseSchema as F, IDLE_CHANGE_DAYS as Ft, createPersonalTokenBodySchema as G, codeRepositoryReportSchema as Gt, startServiceAccountSignInResponseSchema as H, codePersonReportSchema as Ht, cacheWarmingSavingsReportSchema as I, codeActivityDaySchema as It, personalTokenMetadataSchema as J, personCodeQuerySchema as Jt, createdPersonalTokenSchema as K, codeRepositorySummarySchema as Kt, closeCacheWarmingBreakerResponseSchema as L, codeChangeSearchQuerySchema as Lt, cacheWarmingBreakerListSchema as M, connectionSchema as Mt, cacheWarmingBreakerParamsSchema as N, disconnectConnectionResponseSchema as Nt, gatewayProvidersSchema as O, pushSubscriptionDeleteBodySchema as Ot, cacheWarmingSavingsQuerySchema as P, startConnectionResponseSchema as Pt, USER_SEARCH_MAX_LIMIT as Q, todoStatusBodySchema as Qt, disconnectServiceAccountResponseSchema as R, codeChangeSearchReportSchema as Rt, inboxSnoozeCreateSchema as S, createConversationBodySchema as Sn, activityDays as St, inboxSnoozeSchema as T, forkConversationResponseSchema as Tn, dailyConversationActivitySchema as Tt, searchQuerySchema as U, codeRepositoryParamsSchema as Ut, serviceAccountSchema as V, codeOverviewReportSchema as Vt, searchReportSchema as W, codeRepositoryQuerySchema as Wt, revokePersonalTokenResponseSchema as X, conversationTodosReportSchema as Xt, personalTokenParamsSchema as Y, conversationTodoSchema as Yt, USER_SEARCH_DEFAULT_LIMIT as Z, todoParamsSchema as Zt, inboxItemListSchema as _, conversationCatchUpSchema as _n, spaceConfigurationSchema as _t, statsReportSchema as a, continueConversationInSlackResponseSchema as an, avatarParamsSchema as at, inboxItemWaitingConversationsSchema as b, createAttachmentUploadBodySchema as bn, locationDirectoryReportSchema as bt, workspaceBodySchema as c, attachObjectLinkResponseSchema as cn, peopleSearchReportSchema as ct, workspaceRepoSchema as d, conversationStatsReportSchema as dn, personalSpendReportSchema as dt, conversationWatchesReportSchema as en, userSearchReportSchema as et, workspaceSchema as f, CONVERSATION_OUTLINE_TEXT_LENGTH as fn, addSpaceMemberBodySchema as ft, inboxItemListQuerySchema as g, conversationCatchUpBodySchema as gn, spaceConfigEntrySchema as gt, inboxItemCountSchema as h, conversationDeliveryResponseSchema as hn, leadSchema as ht, statSchema as i, continueConversationInSlackBodySchema as in, actorProfileReportSchema as it, cacheHealthReportSchema as j, connectionParamsSchema as jt, updateGatewayProvidersBodySchema as k, testNotificationResponseSchema as kt, workspaceListSchema as l, objectLinksQuerySchema as ln, personCardReportSchema as lt, inboxItemCountQuerySchema as m, conversationDeliveryBodySchema as mn, spaceMemberSchema as mt, versionsQuerySchema as n, conversationChildAgentSchema as nn, PERSON_CARD_RECENT_LIMIT as nt, baselineSnapshotSchema as o, MAX_OBJECT_LINKS as on, mentionablePersonSchema as ot, inboxItemActionSchema as p, conversationOutlineSchema as pn, spaceMemberListSchema as pt, personalTokenListSchema as q, mentionableCodeChangeSchema as qt, versionsSchema as r, conversationChildAgentsReportSchema as rn, actorDirectoryReportSchema as rt, deleteWorkspaceResponseSchema as s, attachObjectLinkBodySchema as sn, peopleSearchQuerySchema as st, VERSIONS_CONVERSATION_LIMIT as t, watchParamsSchema as tn, userSearchResultSchema as tt, workspaceParamsSchema as u, objectLinksReportSchema as un, personParamsSchema as ut, inboxItemParamsSchema as v, attachmentUploadParamsSchema as vn, locationActivityDayReportSchema as vt, inboxSnoozeResourceSchema as w, forkConversationBodySchema as wn, activitySixHours as wt, INBOX_SNOOZE_MAX_TRIGGERS as x, acceptedConversationMessageSchema as xn, locationParamsSchema as xt, inboxItemSchema as y, attachmentUploadSchema as yn, locationDetailReportSchema as yt, serviceAccountListSchema as z, codeChangeSummaryReportSchema as zt };
1442
+ export { userSearchQuerySchema as $, conversationChildAgentsReportSchema as $t, cacheHealthQuerySchema as A, startConnectionResponseSchema as At, serviceAccountParamsSchema as B, codeRepositoryQuerySchema as Bt, inboxSnoozeResourceQuerySchema as C, pushSubscriptionBodySchema as Ct, inboxSnoozeWakesClearSchema as D, connectionParamsSchema as Dt, inboxSnoozeSubjectSchema as E, connectionListSchema as Et, cacheWarmingSavingsRefillResponseSchema as F, codeChangeSummaryReportSchema as Ft, createPersonalTokenBodySchema as G, conversationTodoSchema as Gt, startServiceAccountSignInResponseSchema as H, codeRepositorySummarySchema as Ht, cacheWarmingSavingsReportSchema as I, codeChangeSummarySchema as It, personalTokenMetadataSchema as J, todoStatusBodySchema as Jt, createdPersonalTokenSchema as K, conversationTodosReportSchema as Kt, closeCacheWarmingBreakerResponseSchema as L, codeOverviewReportSchema as Lt, cacheWarmingBreakerListSchema as M, codeActivityDaySchema as Mt, cacheWarmingBreakerParamsSchema as N, codeChangeSearchQuerySchema as Nt, gatewayProvidersSchema as O, connectionSchema as Ot, cacheWarmingSavingsQuerySchema as P, codeChangeSearchReportSchema as Pt, USER_SEARCH_MAX_LIMIT as Q, conversationChildAgentSchema as Qt, disconnectServiceAccountResponseSchema as R, codePersonReportSchema as Rt, inboxSnoozeCreateSchema as S, notificationSettingsSchema as St, inboxSnoozeSchema as T, testNotificationResponseSchema as Tt, searchQuerySchema as U, mentionableCodeChangeSchema as Ut, serviceAccountSchema as V, codeRepositoryReportSchema as Vt, searchReportSchema as W, personCodeQuerySchema as Wt, revokePersonalTokenResponseSchema as X, conversationWatchesReportSchema as Xt, personalTokenParamsSchema as Y, conversationWatchSchema as Yt, USER_SEARCH_DEFAULT_LIMIT as Z, watchParamsSchema as Zt, inboxItemListSchema as _, acceptedConversationMessageSchema as _n, locationParamsSchema as _t, statsReportSchema as a, objectLinksQuerySchema as an, avatarParamsSchema as at, inboxItemWaitingConversationsSchema as b, forkConversationBodySchema as bn, activitySixHours as bt, workspaceBodySchema as c, CONVERSATION_OUTLINE_TEXT_LENGTH as cn, peopleSearchReportSchema as ct, workspaceRepoSchema as d, conversationDeliveryResponseSchema as dn, personalSpendReportSchema as dt, continueConversationInSlackBodySchema as en, userSearchReportSchema as et, workspaceSchema as f, conversationCatchUpBodySchema as fn, spaceConfigEntrySchema as ft, inboxItemListQuerySchema as g, createAttachmentUploadBodySchema as gn, locationDirectoryReportSchema as gt, inboxItemCountSchema as h, attachmentUploadSchema as hn, locationDetailReportSchema as ht, statSchema as i, attachObjectLinkResponseSchema as in, actorProfileReportSchema as it, cacheHealthReportSchema as j, IDLE_CHANGE_DAYS as jt, updateGatewayProvidersBodySchema as k, disconnectConnectionResponseSchema as kt, workspaceListSchema as l, conversationOutlineSchema as ln, personCardReportSchema as lt, inboxItemCountQuerySchema as m, attachmentUploadParamsSchema as mn, locationActivityDayReportSchema as mt, versionsQuerySchema as n, MAX_OBJECT_LINKS as nn, PERSON_CARD_RECENT_LIMIT as nt, baselineSnapshotSchema as o, objectLinksReportSchema as on, mentionablePersonSchema as ot, inboxItemActionSchema as p, conversationCatchUpSchema as pn, spaceConfigurationSchema as pt, personalTokenListSchema as q, todoParamsSchema as qt, versionsSchema as r, attachObjectLinkBodySchema as rn, actorDirectoryReportSchema as rt, deleteWorkspaceResponseSchema as s, conversationStatsReportSchema as sn, peopleSearchQuerySchema as st, VERSIONS_CONVERSATION_LIMIT as t, continueConversationInSlackResponseSchema as tn, userSearchResultSchema as tt, workspaceParamsSchema as u, conversationDeliveryBodySchema as un, personParamsSchema as ut, inboxItemParamsSchema as v, createConversationBodySchema as vn, activityDays as vt, inboxSnoozeResourceSchema as w, pushSubscriptionDeleteBodySchema as wt, INBOX_SNOOZE_MAX_TRIGGERS as x, forkConversationResponseSchema as xn, dailyConversationActivitySchema as xt, inboxItemSchema as y, createConversationMessageBodySchema as yn, activityHours as yt, serviceAccountListSchema as z, codeRepositoryParamsSchema as zt };