@sentry/junior 0.190.0 → 0.191.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 (78) hide show
  1. package/dist/{agent-hooks-3IG2FQW2.js → agent-hooks-HIWWBBKO.js} +11 -11
  2. package/dist/api.js +24 -24
  3. package/dist/app.js +92 -129
  4. package/dist/{catalog-runtime-2OT7S3ZC.js → catalog-runtime-4OKH4265.js} +4 -4
  5. package/dist/chat/agent/resume.d.ts +0 -1
  6. package/dist/chat/agent/types.d.ts +0 -1
  7. package/dist/chat/agent-invocations/types.d.ts +4 -4
  8. package/dist/chat/providers/slack/runtime.d.ts +1 -2
  9. package/dist/chat/providers/slack/system-turn.d.ts +9 -4
  10. package/dist/chat/providers/slack/turn.d.ts +0 -1
  11. package/dist/chat/services/turn-router.d.ts +1 -1
  12. package/dist/chat/slack/dispatch-turn.d.ts +0 -1
  13. package/dist/chat/slack/timestamp-param.d.ts +1 -1
  14. package/dist/chat/task-execution/assistant-message.d.ts +7 -7
  15. package/dist/chat/task-execution/checkpoint.d.ts +0 -1
  16. package/dist/chat/task-execution/conversation-turn.d.ts +2 -2
  17. package/dist/chat/task-execution/state.d.ts +0 -3
  18. package/dist/chat/task-execution/store.d.ts +0 -1
  19. package/dist/chat/task-execution/turn-cursor.d.ts +0 -2
  20. package/dist/chat/task-execution/worker.d.ts +0 -1
  21. package/dist/{chunk-VWNIDTFR.js → chunk-2JAWOTUT.js} +2 -2
  22. package/dist/{chunk-YFU4DGZY.js → chunk-3PDR63SX.js} +30 -9
  23. package/dist/{chunk-4BLFIYVK.js → chunk-5IMKUVMS.js} +8 -11
  24. package/dist/{chunk-REVH4BZU.js → chunk-6KISW5UY.js} +2 -2
  25. package/dist/{chunk-HI5KXE3C.js → chunk-7PYCRKQL.js} +3 -3
  26. package/dist/{chunk-OJFX2FP7.js → chunk-AWFSSFAX.js} +9 -11
  27. package/dist/{chunk-3J3BCB4J.js → chunk-BVWC5DBM.js} +1 -1
  28. package/dist/{chunk-DVX6U6GI.js → chunk-BVYUIVXE.js} +1 -1
  29. package/dist/{chunk-IRQ3RSX3.js → chunk-CCPOZMS4.js} +3 -3
  30. package/dist/{chunk-FVFJ57RK.js → chunk-CECRMPXJ.js} +9 -8
  31. package/dist/{chunk-2MKHYSYL.js → chunk-CUUE5MGF.js} +3 -3
  32. package/dist/{chunk-BUJU6C2J.js → chunk-DP6H3U2X.js} +1 -1
  33. package/dist/{chunk-4PKEJK5B.js → chunk-EQZUBYRF.js} +1 -1
  34. package/dist/{chunk-GWCFXTB6.js → chunk-GQN4REF5.js} +6 -6
  35. package/dist/{chunk-OYCOLHCR.js → chunk-HNMRX2EN.js} +5 -5
  36. package/dist/{chunk-7Y7XMI6P.js → chunk-K2NKG42A.js} +5 -5
  37. package/dist/{chunk-BGOLRC36.js → chunk-KTW62MG5.js} +13 -11
  38. package/dist/{chunk-Y4WL4OYD.js → chunk-L4JLLS6C.js} +1 -1
  39. package/dist/{chunk-62DRKZQU.js → chunk-LOYTPSAK.js} +4 -4
  40. package/dist/{chunk-7UJ6IJCK.js → chunk-MFZOIKET.js} +1 -1
  41. package/dist/{chunk-2MRF22J4.js → chunk-NK3UEKAW.js} +6 -6
  42. package/dist/{chunk-DJZGQ7OL.js → chunk-NY5SJGJZ.js} +22 -29
  43. package/dist/{chunk-ECOR3OXY.js → chunk-Q32BSFN4.js} +8 -8
  44. package/dist/{chunk-663DQH5W.js → chunk-QRNJO7DZ.js} +1 -1
  45. package/dist/{chunk-CZXZKTAI.js → chunk-RZS4F5K4.js} +3 -3
  46. package/dist/{chunk-OKAHLUSU.js → chunk-S7NSFCCW.js} +3 -3
  47. package/dist/{chunk-ZFCO2TMB.js → chunk-SEIZ2XLD.js} +1 -1
  48. package/dist/{chunk-W2C4TPLB.js → chunk-SGRL7NV6.js} +5 -5
  49. package/dist/{chunk-6H7YU6XH.js → chunk-TH6LMEOW.js} +1 -1
  50. package/dist/{chunk-F3K2267N.js → chunk-VGYZ3YZM.js} +77 -35
  51. package/dist/{chunk-T66GV7A3.js → chunk-WBNQYVCM.js} +2 -2
  52. package/dist/{chunk-67MMSYSE.js → chunk-WCSXTDOL.js} +1 -1
  53. package/dist/{chunk-YKIAUKYH.js → chunk-WNIVCR74.js} +2 -2
  54. package/dist/{chunk-RLYJYEIY.js → chunk-X6PQKQTY.js} +5 -7
  55. package/dist/{chunk-6BXUSF7J.js → chunk-YNRLCUCB.js} +1 -1
  56. package/dist/{chunk-MNHJ4WLE.js → chunk-ZJRGWZZ2.js} +3 -3
  57. package/dist/{chunk-JV7U4665.js → chunk-ZNFNGDT7.js} +1 -1
  58. package/dist/{chunk-OON4IQHH.js → chunk-ZRN3OS7M.js} +1 -1
  59. package/dist/cli/chat.js +33 -33
  60. package/dist/cli/check.js +5 -5
  61. package/dist/cli/plugins.js +12 -12
  62. package/dist/cli/snapshot-create.js +9 -9
  63. package/dist/cli/upgrade.js +6 -6
  64. package/dist/{db-2IFDMDDY.js → db-LG4ZEWA3.js} +6 -6
  65. package/dist/instrumentation.js +3 -3
  66. package/dist/nitro.js +6 -6
  67. package/dist/{oauth-callback-server-SZSS2KH6.js → oauth-callback-server-KI7ZRTOG.js} +29 -29
  68. package/dist/{runner-2N4QU77X.js → runner-K2EOSAZQ.js} +21 -21
  69. package/dist/{skills-VU2LZAKX.js → skills-JTRDFKMA.js} +5 -5
  70. package/dist/spawn-SRBETYCF.js +42 -0
  71. package/dist/task-runner-INQIQ4VF.js +36 -0
  72. package/dist/{validation-IJGHK7NI.js → validation-NBWURHAP.js} +5 -5
  73. package/dist/version.js +1 -1
  74. package/dist/{work-DI45MLRL.js → work-35TBEAUI.js} +21 -21
  75. package/dist/{worker-FY7KWG2M.js → worker-F762M6XM.js} +10 -10
  76. package/package.json +5 -5
  77. package/dist/spawn-3K7RV4T5.js +0 -42
  78. package/dist/task-runner-52DYFHW3.js +0 -36
@@ -2,16 +2,16 @@ import {
2
2
  coerceThreadConversationState,
3
3
  getPersistedThreadState,
4
4
  persistThreadStateById
5
- } from "./chunk-W2C4TPLB.js";
5
+ } from "./chunk-SGRL7NV6.js";
6
6
  import {
7
7
  clearPendingAuth,
8
8
  markTurnClosed,
9
9
  markTurnCompleted
10
- } from "./chunk-67MMSYSE.js";
10
+ } from "./chunk-WCSXTDOL.js";
11
11
  import {
12
12
  hydrateConversationMessages,
13
13
  markConversationMessage
14
- } from "./chunk-BGOLRC36.js";
14
+ } from "./chunk-KTW62MG5.js";
15
15
  import {
16
16
  buildDeterministicTurnId
17
17
  } from "./chunk-DA2KGZZI.js";
@@ -20,13 +20,13 @@ import {
20
20
  findProviderError,
21
21
  getProviderErrorAttributes,
22
22
  getProviderErrorUserMessage
23
- } from "./chunk-VWNIDTFR.js";
23
+ } from "./chunk-2JAWOTUT.js";
24
24
  import {
25
25
  parseSlackMessageTs
26
26
  } from "./chunk-N7TMSOZH.js";
27
27
  import {
28
28
  buildTurnFailureResponse
29
- } from "./chunk-Y4WL4OYD.js";
29
+ } from "./chunk-L4JLLS6C.js";
30
30
 
31
31
  // src/chat/runtime/delivered-turn-state.ts
32
32
  function buildDeliveredTurnStatePatch(args) {
@@ -7,7 +7,7 @@ import {
7
7
  authenticationUnlinkedEvent,
8
8
  fallbackShortTitle,
9
9
  generateShortTitle
10
- } from "./chunk-YKIAUKYH.js";
10
+ } from "./chunk-WNIVCR74.js";
11
11
  import {
12
12
  bindProviderConversation,
13
13
  createSqlConversationEventStore,
@@ -16,18 +16,18 @@ import {
16
16
  getSqlExecutor,
17
17
  sanitizePostgresJson,
18
18
  withConversationEventLock
19
- } from "./chunk-OKAHLUSU.js";
19
+ } from "./chunk-S7NSFCCW.js";
20
20
  import {
21
21
  SANDBOX_REPOS_ROOT,
22
22
  SANDBOX_WORKSPACE_ROOT,
23
23
  sleep
24
- } from "./chunk-HI5KXE3C.js";
24
+ } from "./chunk-7PYCRKQL.js";
25
25
  import {
26
26
  MUTATION_LOCK_TTL_MS,
27
27
  fenceLock,
28
28
  getStateAdapter,
29
29
  withLock
30
- } from "./chunk-6BXUSF7J.js";
30
+ } from "./chunk-YNRLCUCB.js";
31
31
  import {
32
32
  agentHistoryItemSchema,
33
33
  contextProvenance,
@@ -40,7 +40,7 @@ import {
40
40
  escapeXml,
41
41
  resolveGatewayModel,
42
42
  unwrapCurrentInstruction
43
- } from "./chunk-VWNIDTFR.js";
43
+ } from "./chunk-2JAWOTUT.js";
44
44
  import {
45
45
  parseSlackMessageTs,
46
46
  toStoredSlackActor
@@ -50,7 +50,7 @@ import {
50
50
  logException,
51
51
  logWarn,
52
52
  setSpanAttributes
53
- } from "./chunk-Y4WL4OYD.js";
53
+ } from "./chunk-L4JLLS6C.js";
54
54
 
55
55
  // src/chat/turn-context-tag.ts
56
56
  var TURN_CONTEXT_TAG = "runtime-turn-context";
@@ -2180,7 +2180,6 @@ function materializeTurnRecord(stored, piProjection, turnStartMessageIndex, rest
2180
2180
  dispatchOutcome: stored.dispatchOutcome,
2181
2181
  errorMessage: stored.errorMessage,
2182
2182
  resumeReason: stored.resumeReason,
2183
- publishExternally: stored.publishExternally,
2184
2183
  source: stored.source,
2185
2184
  resultMessageId: stored.resultMessageId,
2186
2185
  resumedFromSliceId: stored.resumedFromSliceId,
@@ -2385,7 +2384,7 @@ async function updateTurnState(args) {
2385
2384
  errorMessage: args.errorMessage ?? args.existing.errorMessage,
2386
2385
  historyVersion: parsed.historyVersion,
2387
2386
  resumeReason: args.existing.resumeReason,
2388
- publishExternally: args.existing.publishExternally,
2387
+ publishExternally: parsed.publishExternally,
2389
2388
  source: args.existing.source,
2390
2389
  resultMessageId: args.resultMessageId ?? args.existing.resultMessageId,
2391
2390
  resumedFromSliceId: args.existing.resumedFromSliceId,
@@ -2439,6 +2438,10 @@ async function upsertTurnRecordLocked(args, fence) {
2439
2438
  const retainedRuntimeContext = runtimeContext.length > 0 ? runtimeContext : existingRecord?.historyVersion === commit.historyVersion ? existingRecord.runtimeContext : void 0;
2440
2439
  const turnStartSeq = durableTurnStartMessageIndex === void 0 ? existingRecord?.turnStartSeq : durableTurnStartMessageIndex <= 0 ? -1 : commit.messageSeqs[durableTurnStartMessageIndex - 1] ?? commit.committedSeq;
2441
2440
  const turnStartMessageIndex = durableTurnStartMessageIndex ?? (turnStartSeq === void 0 ? void 0 : commit.messageSeqs.filter((seq) => seq <= turnStartSeq).length);
2441
+ const turnSource = args.source ?? existingRecord?.source;
2442
+ const dispatchId = args.dispatchId ?? existingRecord?.dispatchId;
2443
+ const hasProviderLocation = Boolean(conversation?.location) || args.destination?.platform === "slack";
2444
+ const publishExternally = dispatchId || turnSource ? hasProviderLocation && (Boolean(dispatchId) || turnSource?.kind === "slack" || turnSource?.kind === "resource_event") : existingRecord?.publishExternally ?? false;
2442
2445
  return await setStoredRecord({
2443
2446
  actor: existingRecord?.actor ?? args.actor,
2444
2447
  fence,
@@ -2470,12 +2473,12 @@ async function upsertTurnRecordLocked(args, fence) {
2470
2473
  historyVersion: commit.historyVersion,
2471
2474
  previousVersion: existingRecord?.version,
2472
2475
  ...definedProps({
2473
- dispatchId: args.dispatchId ?? existingRecord?.dispatchId,
2476
+ dispatchId,
2474
2477
  dispatchOutcome: args.dispatchOutcome ?? existingRecord?.dispatchOutcome,
2475
2478
  errorMessage: args.errorMessage,
2476
2479
  lastProgressAtMs: args.lastProgressAtMs,
2477
2480
  resumeReason: args.resumeReason,
2478
- publishExternally: args.publishExternally ?? existingRecord?.publishExternally,
2481
+ publishExternally,
2479
2482
  source: args.source ?? existingRecord?.source,
2480
2483
  resultMessageId: args.resultMessageId ?? existingRecord?.resultMessageId,
2481
2484
  resumedFromSliceId: args.resumedFromSliceId,
@@ -2693,7 +2696,6 @@ function sharedWrite(args, latest) {
2693
2696
  destination: args.destination,
2694
2697
  destinationVisibility: args.destinationVisibility,
2695
2698
  dispatchId: args.dispatchId ?? latest?.dispatchId,
2696
- publishExternally: args.publishExternally ?? latest?.publishExternally,
2697
2699
  source: args.source,
2698
2700
  surface: args.surface ?? latest?.surface,
2699
2701
  traceId: getActiveTraceId() ?? latest?.traceId,
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-PEQXYSSE.js";
13
13
  import {
14
14
  JUNIOR_VERSION
15
- } from "./chunk-JV7U4665.js";
15
+ } from "./chunk-ZNFNGDT7.js";
16
16
 
17
17
  // src/deployment.ts
18
18
  var JUNIOR_HEARTBEAT_ROUTE = "/api/internal/heartbeat";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ToolInputError
3
- } from "./chunk-YKIAUKYH.js";
3
+ } from "./chunk-WNIVCR74.js";
4
4
  import {
5
5
  getPlugins
6
- } from "./chunk-2MRF22J4.js";
6
+ } from "./chunk-NK3UEKAW.js";
7
7
  import {
8
8
  getDb
9
- } from "./chunk-OKAHLUSU.js";
9
+ } from "./chunk-S7NSFCCW.js";
10
10
  import {
11
11
  juniorAttachments,
12
12
  juniorConversations,
@@ -14,7 +14,7 @@ import {
14
14
  juniorSchedulerRuns,
15
15
  juniorSchedulerTasks,
16
16
  juniorStats
17
- } from "./chunk-ZFCO2TMB.js";
17
+ } from "./chunk-SEIZ2XLD.js";
18
18
  import {
19
19
  juniorDestinations
20
20
  } from "./chunk-VFUK3X5B.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  FUNCTION_TIMEOUT_BUFFER_SECONDS,
3
3
  getChatConfig
4
- } from "./chunk-VWNIDTFR.js";
4
+ } from "./chunk-2JAWOTUT.js";
5
5
 
6
6
  // src/chat/runtime/request-deadline.ts
7
7
  import { AsyncLocalStorage } from "async_hooks";
@@ -5,7 +5,7 @@ import {
5
5
  getConversationEventStore,
6
6
  getDb,
7
7
  getSqlExecutor
8
- } from "./chunk-OKAHLUSU.js";
8
+ } from "./chunk-S7NSFCCW.js";
9
9
  import {
10
10
  juniorCodeChanges,
11
11
  juniorCodeRepositories,
@@ -16,7 +16,7 @@ import {
16
16
  juniorUsers,
17
17
  juniorWorkspaceRepos,
18
18
  juniorWorkspaces
19
- } from "./chunk-ZFCO2TMB.js";
19
+ } from "./chunk-SEIZ2XLD.js";
20
20
  import {
21
21
  SANDBOX_WORKSPACE_ROOT,
22
22
  getVercelSandboxCredentials,
@@ -24,16 +24,16 @@ import {
24
24
  isSandboxMissingError,
25
25
  runNonInteractiveCommand,
26
26
  sleep
27
- } from "./chunk-HI5KXE3C.js";
27
+ } from "./chunk-7PYCRKQL.js";
28
28
  import {
29
29
  getStateAdapter
30
- } from "./chunk-6BXUSF7J.js";
30
+ } from "./chunk-YNRLCUCB.js";
31
31
  import {
32
32
  botConfig,
33
33
  completeObject,
34
34
  embedTexts,
35
35
  getSlackBotToken
36
- } from "./chunk-VWNIDTFR.js";
36
+ } from "./chunk-2JAWOTUT.js";
37
37
  import {
38
38
  defaultModelId
39
39
  } from "./chunk-D4YV5TDV.js";
@@ -52,7 +52,7 @@ import {
52
52
  setSpanAttributes,
53
53
  setSpanStatus,
54
54
  withSpan
55
- } from "./chunk-Y4WL4OYD.js";
55
+ } from "./chunk-L4JLLS6C.js";
56
56
 
57
57
  // src/chat/plugins/agent-hooks.ts
58
58
  import {
@@ -7,7 +7,7 @@ import {
7
7
  PluginCredentialFailureError,
8
8
  agentNameSchema,
9
9
  createPluginAuthOrchestration
10
- } from "./chunk-OYCOLHCR.js";
10
+ } from "./chunk-HNMRX2EN.js";
11
11
  import {
12
12
  parseSandboxEgressAuthRequiredSignal,
13
13
  parseSandboxEgressPermissionDeniedSignal,
@@ -38,7 +38,7 @@ import {
38
38
  searchSlackUsers,
39
39
  selectPluginGrant,
40
40
  toMcpProviderError
41
- } from "./chunk-FVFJ57RK.js";
41
+ } from "./chunk-CECRMPXJ.js";
42
42
  import {
43
43
  RetryableDeliveryError,
44
44
  actorFromRun,
@@ -52,7 +52,7 @@ import {
52
52
  surfaceFromRun,
53
53
  toolInvocationDestination,
54
54
  uploadFilesToConversation
55
- } from "./chunk-GWCFXTB6.js";
55
+ } from "./chunk-GQN4REF5.js";
56
56
  import {
57
57
  CooperativeTurnYieldError,
58
58
  NO_REPLY_MARKER,
@@ -65,7 +65,7 @@ import {
65
65
  isNoReplyMarker,
66
66
  isTurnInputCommitLostError,
67
67
  sanitizeAssistantText
68
- } from "./chunk-67MMSYSE.js";
68
+ } from "./chunk-WCSXTDOL.js";
69
69
  import {
70
70
  AGENTS_REMOVAL_NOTICE,
71
71
  AGENTS_REPLACEMENT_NOTICE,
@@ -119,7 +119,7 @@ import {
119
119
  stripRuntimeTurnContext,
120
120
  trimTrailingAssistantMessages,
121
121
  truncateText
122
- } from "./chunk-BGOLRC36.js";
122
+ } from "./chunk-KTW62MG5.js";
123
123
  import {
124
124
  SCHEDULED_TASK_SYSTEM_ACTOR,
125
125
  WORKSPACE_SNAPSHOT_FAILED_EVENT,
@@ -160,13 +160,13 @@ import {
160
160
  workspaceSnapshotFinishedEvent,
161
161
  workspaceSnapshotWatch,
162
162
  writableEventTask
163
- } from "./chunk-62DRKZQU.js";
163
+ } from "./chunk-LOYTPSAK.js";
164
164
  import {
165
165
  parseSlackThreadId
166
- } from "./chunk-BUJU6C2J.js";
166
+ } from "./chunk-DP6H3U2X.js";
167
167
  import {
168
168
  appendAndEnqueueInboundMessage
169
- } from "./chunk-YFU4DGZY.js";
169
+ } from "./chunk-3PDR63SX.js";
170
170
  import {
171
171
  SHORT_TITLE_MAX_LENGTH,
172
172
  ToolInputError,
@@ -174,7 +174,7 @@ import {
174
174
  generateShortTitle,
175
175
  hasAgentTurnUsage,
176
176
  resolveTaskTitle
177
- } from "./chunk-YKIAUKYH.js";
177
+ } from "./chunk-WNIVCR74.js";
178
178
  import {
179
179
  bindSandboxFileSystem,
180
180
  createSandboxSession,
@@ -185,7 +185,7 @@ import {
185
185
  resolve,
186
186
  setSnapshotSpanAttributes,
187
187
  stopSession
188
- } from "./chunk-2MKHYSYL.js";
188
+ } from "./chunk-CUUE5MGF.js";
189
189
  import {
190
190
  privateTraceResultAttributes
191
191
  } from "./chunk-UIE3R5XU.js";
@@ -195,7 +195,7 @@ import {
195
195
  } from "./chunk-X6GDDWQH.js";
196
196
  import {
197
197
  getTurnRequestDeadline
198
- } from "./chunk-7UJ6IJCK.js";
198
+ } from "./chunk-MFZOIKET.js";
199
199
  import {
200
200
  getVercelConversationWorkQueue
201
201
  } from "./chunk-DKIJ2RP5.js";
@@ -242,19 +242,19 @@ import {
242
242
  updateWorkspace,
243
243
  withSlackRetries,
244
244
  workspaceRepoCheckoutPath
245
- } from "./chunk-2MRF22J4.js";
245
+ } from "./chunk-NK3UEKAW.js";
246
246
  import {
247
247
  getConversationEventStore,
248
248
  getConversationMessageSearchStore,
249
249
  getConversationStore,
250
250
  getDb,
251
251
  getSqlExecutor
252
- } from "./chunk-OKAHLUSU.js";
252
+ } from "./chunk-S7NSFCCW.js";
253
253
  import {
254
254
  juniorArtifacts,
255
255
  juniorIdentities,
256
256
  juniorSchedulerRuns
257
- } from "./chunk-ZFCO2TMB.js";
257
+ } from "./chunk-SEIZ2XLD.js";
258
258
  import {
259
259
  SANDBOX_DATA_ROOT,
260
260
  SANDBOX_REPOS_ROOT,
@@ -285,12 +285,12 @@ import {
285
285
  throwSandboxOperationError,
286
286
  workspaceSnapshotNotReadyUserMessage,
287
287
  wrapSandboxSetupError
288
- } from "./chunk-HI5KXE3C.js";
288
+ } from "./chunk-7PYCRKQL.js";
289
289
  import {
290
290
  fenceLock,
291
291
  getStateAdapter,
292
292
  withLock
293
- } from "./chunk-6BXUSF7J.js";
293
+ } from "./chunk-YNRLCUCB.js";
294
294
  import {
295
295
  KNOWN_CONVERSATION_EVENT_TYPES,
296
296
  contextProvenance,
@@ -323,7 +323,7 @@ import {
323
323
  resolveGatewayCredential,
324
324
  resolveGatewayModel,
325
325
  unwrapCurrentInstruction
326
- } from "./chunk-VWNIDTFR.js";
326
+ } from "./chunk-2JAWOTUT.js";
327
327
  import {
328
328
  ModelProfileNotConfiguredError,
329
329
  TURN_REASONING_LEVELS,
@@ -340,16 +340,16 @@ import {
340
340
  toGenAiMessagesTraceAttributes,
341
341
  toGenAiPayloadMetadata,
342
342
  toGenAiPayloadTraceAttributes
343
- } from "./chunk-DVX6U6GI.js";
343
+ } from "./chunk-BVYUIVXE.js";
344
344
  import {
345
345
  discoverSkills,
346
346
  findSkillByName,
347
347
  loadSkillsByName,
348
348
  parseSkillInvocation
349
- } from "./chunk-REVH4BZU.js";
349
+ } from "./chunk-6KISW5UY.js";
350
350
  import {
351
351
  pluginCatalogRuntime
352
- } from "./chunk-4PKEJK5B.js";
352
+ } from "./chunk-EQZUBYRF.js";
353
353
  import {
354
354
  CredentialUnavailableError,
355
355
  OAuthProviderError,
@@ -357,7 +357,7 @@ import {
357
357
  getOAuthProviderErrorAttributes,
358
358
  resolveAuthTokenPlaceholder,
359
359
  resolvePluginCommandEnv
360
- } from "./chunk-663DQH5W.js";
360
+ } from "./chunk-QRNJO7DZ.js";
361
361
  import {
362
362
  credentialContextForActor,
363
363
  credentialUserSubjectId
@@ -393,7 +393,7 @@ import {
393
393
  summarizeMessageText,
394
394
  withLogContext,
395
395
  withSpan
396
- } from "./chunk-Y4WL4OYD.js";
396
+ } from "./chunk-L4JLLS6C.js";
397
397
  import {
398
398
  startInactiveSpan,
399
399
  withActiveSpan
@@ -3220,10 +3220,6 @@ function createResourceEventInboundMessage(input) {
3220
3220
  delivery: "defer",
3221
3221
  source: "resource_event",
3222
3222
  receivedAtMs: input.receivedAtMs ?? Date.now(),
3223
- // TODO(dcramer): Store the final publish fact here after resource-event
3224
- // ingress loads the Conversation. Then remove the worker's Location-based
3225
- // publish default. Resource events only wake the mailbox until that change.
3226
- publishExternally: false,
3227
3223
  input: {
3228
3224
  text: input.text,
3229
3225
  authorId: RESOURCE_EVENT_AUTHOR_ID,
@@ -17881,7 +17877,6 @@ function createResumeState(args) {
17881
17877
  channelName: args.channelName,
17882
17878
  destination: args.destination,
17883
17879
  dispatchId: args.dispatchId,
17884
- publishExternally: args.publishExternally,
17885
17880
  source: args.runSource,
17886
17881
  actor: args.actor,
17887
17882
  surface: args.surface
@@ -18692,7 +18687,6 @@ async function executeAgentRunInPrivacyContext(run, conversationPrivacy, runLogC
18692
18687
  slackConversation: run.slackConversation,
18693
18688
  slackActionToken: run.slackActionToken,
18694
18689
  destination: run.destination,
18695
- publishExternally: run.publishExternally,
18696
18690
  surface: run.surface,
18697
18691
  dispatch: run.dispatch,
18698
18692
  toolChannelId: run.toolChannelId
@@ -18847,7 +18841,6 @@ async function executeAgentRunInPrivacyContext(run, conversationPrivacy, runLogC
18847
18841
  ...routing.dispatch?.id ? { dispatchId: routing.dispatch.id } : void 0,
18848
18842
  durability,
18849
18843
  recordActiveMcpProviders,
18850
- publishExternally: checkpoint.record?.publishExternally ?? routing.publishExternally ?? false,
18851
18844
  actor,
18852
18845
  runSource,
18853
18846
  conversationId,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  coerceThreadConversationState,
3
3
  getPersistedThreadState
4
- } from "./chunk-W2C4TPLB.js";
4
+ } from "./chunk-SGRL7NV6.js";
5
5
  import {
6
6
  recordTaskExecution
7
- } from "./chunk-MNHJ4WLE.js";
7
+ } from "./chunk-ZJRGWZZ2.js";
8
8
  import {
9
9
  pluginTaskId,
10
10
  pluginTaskParamsSchema,
11
11
  sendVercelPluginTask
12
- } from "./chunk-CZXZKTAI.js";
12
+ } from "./chunk-RZS4F5K4.js";
13
13
  import {
14
14
  getPiMessageRole,
15
15
  getTurnRecord,
@@ -19,7 +19,7 @@ import {
19
19
  isToolResultMessage,
20
20
  normalizeToolNameFromResult,
21
21
  stripRuntimeTurnContext
22
- } from "./chunk-BGOLRC36.js";
22
+ } from "./chunk-KTW62MG5.js";
23
23
  import {
24
24
  createPluginConversationEvents,
25
25
  createPluginEmbedder,
@@ -28,17 +28,17 @@ import {
28
28
  createPluginState,
29
29
  getPlugins,
30
30
  readActorIdentity
31
- } from "./chunk-2MRF22J4.js";
31
+ } from "./chunk-NK3UEKAW.js";
32
32
  import {
33
33
  JUNIOR_THREAD_STATE_TTL_MS
34
34
  } from "./chunk-3Y47VMHV.js";
35
35
  import {
36
36
  getConversationStore,
37
37
  getDb
38
- } from "./chunk-OKAHLUSU.js";
38
+ } from "./chunk-S7NSFCCW.js";
39
39
  import {
40
40
  getStateAdapter
41
- } from "./chunk-6BXUSF7J.js";
41
+ } from "./chunk-YNRLCUCB.js";
42
42
  import {
43
43
  sameActorIdentity
44
44
  } from "./chunk-GFBR4S3Q.js";
@@ -84,7 +84,7 @@ function slackSourceForDestination(args) {
84
84
  };
85
85
  }
86
86
  async function resolveConversationRouting(args) {
87
- const conversationStore = args.conversationStore ?? (await import("./db-2IFDMDDY.js")).getConversationStore();
87
+ const conversationStore = args.conversationStore ?? (await import("./db-LG4ZEWA3.js")).getConversationStore();
88
88
  const chain = await loadConversationChain(
89
89
  args.conversationId,
90
90
  conversationStore
@@ -12,7 +12,7 @@ import {
12
12
  logInfo,
13
13
  logWarn,
14
14
  setSpanAttributes
15
- } from "./chunk-Y4WL4OYD.js";
15
+ } from "./chunk-L4JLLS6C.js";
16
16
 
17
17
  // src/chat/plugins/manifest.ts
18
18
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runWithTurnRequestDeadline
3
- } from "./chunk-7UJ6IJCK.js";
3
+ } from "./chunk-MFZOIKET.js";
4
4
  import {
5
5
  QUEUE_SIGNATURE_MAX_AGE_MS,
6
6
  createVercelQueueClient,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-7H2VZTWN.js";
10
10
  import {
11
11
  logWarn
12
- } from "./chunk-Y4WL4OYD.js";
12
+ } from "./chunk-L4JLLS6C.js";
13
13
 
14
14
  // src/chat/plugins/task-queue.ts
15
15
  import { createHash } from "crypto";
@@ -129,7 +129,7 @@ function pluginTaskCallback() {
129
129
  onRejected: logPluginTaskQueueMessageRejected,
130
130
  // Load the runner on first use so this module can send without a cycle.
131
131
  run: async (message) => {
132
- const { processPluginTask } = await import("./task-runner-52DYFHW3.js");
132
+ const { processPluginTask } = await import("./task-runner-INQIQ4VF.js");
133
133
  await processPluginTask(message);
134
134
  },
135
135
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -8,7 +8,7 @@ import {
8
8
  juniorConversations,
9
9
  juniorIdentities,
10
10
  juniorUsers
11
- } from "./chunk-ZFCO2TMB.js";
11
+ } from "./chunk-SEIZ2XLD.js";
12
12
  import {
13
13
  conversationEventDataSchema,
14
14
  decodeStoredConversationEvent,
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-VFUK3X5B.js";
21
21
  import {
22
22
  getChatConfig
23
- } from "./chunk-VWNIDTFR.js";
23
+ } from "./chunk-2JAWOTUT.js";
24
24
  import {
25
25
  parseActorUserId,
26
26
  parseSlackChannelReferenceId,
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-N7TMSOZH.js";
29
29
  import {
30
30
  normalizeIdentityEmail
31
- } from "./chunk-Y4WL4OYD.js";
31
+ } from "./chunk-L4JLLS6C.js";
32
32
 
33
33
  // src/chat/conversations/sql/store.ts
34
34
  import { randomUUID as randomUUID2 } from "crypto";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-VFUK3X5B.js";
5
5
  import {
6
6
  DEFAULT_SQL_STATEMENT_TIMEOUT_MS
7
- } from "./chunk-VWNIDTFR.js";
7
+ } from "./chunk-2JAWOTUT.js";
8
8
 
9
9
  // src/db/neon.ts
10
10
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  persistConversationMessages
3
- } from "./chunk-BGOLRC36.js";
3
+ } from "./chunk-KTW62MG5.js";
4
4
  import {
5
5
  JUNIOR_THREAD_STATE_TTL_MS
6
6
  } from "./chunk-3Y47VMHV.js";
7
7
  import {
8
8
  getDb
9
- } from "./chunk-OKAHLUSU.js";
9
+ } from "./chunk-S7NSFCCW.js";
10
10
  import {
11
11
  juniorLocationConfigurations
12
- } from "./chunk-ZFCO2TMB.js";
12
+ } from "./chunk-SEIZ2XLD.js";
13
13
  import {
14
14
  getStateAdapter
15
- } from "./chunk-6BXUSF7J.js";
15
+ } from "./chunk-YNRLCUCB.js";
16
16
  import {
17
17
  juniorDestinations
18
18
  } from "./chunk-VFUK3X5B.js";
@@ -20,7 +20,7 @@ import {
20
20
  isRecord,
21
21
  toOptionalNumber,
22
22
  toOptionalString
23
- } from "./chunk-Y4WL4OYD.js";
23
+ } from "./chunk-L4JLLS6C.js";
24
24
 
25
25
  // src/chat/state/conversation.ts
26
26
  function defaultConversationState() {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getConversationEventStore
3
- } from "./chunk-OKAHLUSU.js";
3
+ } from "./chunk-S7NSFCCW.js";
4
4
 
5
5
  // src/chat/conversations/turn-lifecycle.ts
6
6
  var ConversationTurnLifecycleService = class {