@sentry/junior 0.153.0 → 0.154.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 (54) hide show
  1. package/dist/{agent-hooks-7BWOB7SN.js → agent-hooks-VEHV2QUA.js} +10 -10
  2. package/dist/api.js +22 -22
  3. package/dist/app.js +32 -32
  4. package/dist/{catalog-runtime-CGUDNL3D.js → catalog-runtime-AK5MY63F.js} +5 -5
  5. package/dist/{chunk-5XBRH3N7.js → chunk-2XNVS6RC.js} +10 -10
  6. package/dist/{chunk-EPOA52SD.js → chunk-3567VGCN.js} +1 -1
  7. package/dist/{chunk-HMU2QP5M.js → chunk-3HX67UPN.js} +1 -1
  8. package/dist/{chunk-HYEAR6HL.js → chunk-3ZR2R5EQ.js} +1 -1
  9. package/dist/{chunk-HOK7MEWG.js → chunk-4R2XCKUH.js} +1 -1
  10. package/dist/{chunk-5QBK3QHJ.js → chunk-4U4MNYGP.js} +4 -4
  11. package/dist/{chunk-37LMRT7G.js → chunk-65IAU2L2.js} +1 -1
  12. package/dist/{chunk-VXWTGOLW.js → chunk-6AF5GOZA.js} +1 -1
  13. package/dist/{chunk-PGJBNO3I.js → chunk-6PJXR4BC.js} +2 -2
  14. package/dist/{chunk-4TWLKHOM.js → chunk-6VWMX7NS.js} +4 -4
  15. package/dist/{chunk-JAJVUQV7.js → chunk-7CPN5JTA.js} +2 -2
  16. package/dist/{chunk-ISEROVYZ.js → chunk-7RFWIHPM.js} +5 -5
  17. package/dist/{chunk-2NS3ACHB.js → chunk-A6LWN4K6.js} +9 -9
  18. package/dist/{chunk-YECBSG77.js → chunk-CCAU73CE.js} +2 -2
  19. package/dist/{chunk-ET54Q4TD.js → chunk-CZD6M57V.js} +1 -1
  20. package/dist/{chunk-URFV5RWN.js → chunk-DAJZZFU7.js} +18 -18
  21. package/dist/{chunk-PMJAY6JS.js → chunk-DK2FSQHS.js} +5 -5
  22. package/dist/{chunk-RKW5QGGN.js → chunk-F2Q3ZHW2.js} +1 -1
  23. package/dist/{chunk-A5SROS6H.js → chunk-F7QUK3YP.js} +4 -4
  24. package/dist/{chunk-5TXDKTET.js → chunk-FVY7AJ46.js} +5 -5
  25. package/dist/{chunk-WTKAALLV.js → chunk-HOGJ6TBT.js} +6 -6
  26. package/dist/{chunk-JY2HJYJT.js → chunk-MSOZLASC.js} +1 -1
  27. package/dist/{chunk-JJAMURMR.js → chunk-NG4IAOVD.js} +1 -1
  28. package/dist/{chunk-XQPKMLRI.js → chunk-NNN2WYAD.js} +1 -1
  29. package/dist/{chunk-TIV3PX5H.js → chunk-NUG3VYHL.js} +1 -1
  30. package/dist/{chunk-FLEY546A.js → chunk-O4AQDOKA.js} +6 -6
  31. package/dist/{chunk-O2YXWWPM.js → chunk-PTJ75ZWR.js} +8 -8
  32. package/dist/{chunk-K4LK6KYO.js → chunk-QGR6QTC4.js} +4 -4
  33. package/dist/{chunk-5DMPHA4V.js → chunk-UCH55IGZ.js} +18 -18
  34. package/dist/{chunk-2J4VCHRX.js → chunk-XYMCZGH6.js} +6 -6
  35. package/dist/{chunk-XAYXN4EG.js → chunk-Y654CTW2.js} +3 -3
  36. package/dist/{chunk-COC65LIW.js → chunk-ZQT4RHUO.js} +1 -1
  37. package/dist/cli/chat.js +30 -30
  38. package/dist/cli/check.js +6 -6
  39. package/dist/cli/plugins.js +13 -13
  40. package/dist/cli/snapshot-create.js +9 -9
  41. package/dist/cli/upgrade.js +7 -7
  42. package/dist/{db-QNQM5YRR.js → db-SOJJLMJK.js} +7 -7
  43. package/dist/instrumentation.js +4 -4
  44. package/dist/nitro.js +2 -2
  45. package/dist/{oauth-callback-server-ERQPIR27.js → oauth-callback-server-GCJROMVO.js} +23 -23
  46. package/dist/{runner-BX46SQIE.js → runner-SY6KDQCN.js} +13 -13
  47. package/dist/{skills-JL44EIRX.js → skills-XJ2LJ2ML.js} +6 -6
  48. package/dist/spawn-QFCQREEP.js +38 -0
  49. package/dist/{validation-UU2AIJIY.js → validation-XQWY6QRY.js} +6 -6
  50. package/dist/version.js +1 -1
  51. package/dist/{work-SS7RU5CH.js → work-FFT5JAOU.js} +17 -17
  52. package/dist/{worker-5P2E7LVI.js → worker-JAITK72F.js} +11 -11
  53. package/package.json +5 -5
  54. package/dist/spawn-W6FO32T4.js +0 -38
@@ -2,7 +2,7 @@ import {
2
2
  coerceThreadConversationState,
3
3
  getPersistedThreadState,
4
4
  persistThreadStateById
5
- } from "./chunk-ISEROVYZ.js";
5
+ } from "./chunk-7RFWIHPM.js";
6
6
  import {
7
7
  pluginTaskId,
8
8
  pluginTaskParamsSchema,
@@ -22,7 +22,7 @@ import {
22
22
  markTurnCompleted,
23
23
  normalizeToolNameFromResult,
24
24
  stripRuntimeTurnContext
25
- } from "./chunk-5QBK3QHJ.js";
25
+ } from "./chunk-4U4MNYGP.js";
26
26
  import {
27
27
  JUNIOR_THREAD_STATE_TTL_MS
28
28
  } from "./chunk-3Y47VMHV.js";
@@ -33,25 +33,25 @@ import {
33
33
  createPluginModel,
34
34
  createPluginState,
35
35
  getPlugins
36
- } from "./chunk-2J4VCHRX.js";
36
+ } from "./chunk-XYMCZGH6.js";
37
37
  import {
38
38
  getConversationStore,
39
39
  getDb,
40
40
  sameActorIdentity
41
- } from "./chunk-XAYXN4EG.js";
41
+ } from "./chunk-Y654CTW2.js";
42
42
  import {
43
43
  juniorConversations,
44
44
  juniorTaskExecutions
45
- } from "./chunk-ET54Q4TD.js";
45
+ } from "./chunk-CZD6M57V.js";
46
46
  import {
47
47
  getStateAdapter
48
- } from "./chunk-XQPKMLRI.js";
48
+ } from "./chunk-NNN2WYAD.js";
49
49
  import {
50
50
  ProviderError,
51
51
  findProviderError,
52
52
  getProviderErrorAttributes,
53
53
  getProviderErrorUserMessage
54
- } from "./chunk-PGJBNO3I.js";
54
+ } from "./chunk-6PJXR4BC.js";
55
55
  import {
56
56
  credentialSubjectSchema
57
57
  } from "./chunk-RUIXF3YQ.js";
@@ -61,7 +61,7 @@ import {
61
61
  import {
62
62
  buildTurnFailureResponse,
63
63
  logWarn
64
- } from "./chunk-HMU2QP5M.js";
64
+ } from "./chunk-3HX67UPN.js";
65
65
 
66
66
  // src/chat/runtime/delivered-turn-state.ts
67
67
  function buildDeliveredTurnStatePatch(args) {
@@ -87,7 +87,7 @@ import { pluginRunContextSchema } from "@sentry/junior-plugin-api";
87
87
 
88
88
  // src/chat/services/turn-session-routing.ts
89
89
  async function resolveTurnSessionRouting(args) {
90
- const conversationStore = args.conversationStore ?? (await import("./db-QNQM5YRR.js")).getConversationStore();
90
+ const conversationStore = args.conversationStore ?? (await import("./db-SOJJLMJK.js")).getConversationStore();
91
91
  const conversation = await conversationStore.get({
92
92
  conversationId: args.conversationId
93
93
  });
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-EPOA52SD.js";
3
+ } from "./chunk-3567VGCN.js";
4
4
  import {
5
5
  logWarn
6
- } from "./chunk-HMU2QP5M.js";
6
+ } from "./chunk-3HX67UPN.js";
7
7
  import {
8
8
  skillRoots
9
9
  } from "./chunk-H4HBKISO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SQL_STATEMENT_TIMEOUT_MS
3
- } from "./chunk-PGJBNO3I.js";
3
+ } from "./chunk-6PJXR4BC.js";
4
4
  import {
5
5
  juniorDestinations,
6
6
  timestamptz
@@ -7,7 +7,7 @@ import {
7
7
  PluginCredentialFailureError,
8
8
  agentNameSchema,
9
9
  createPluginAuthOrchestration
10
- } from "./chunk-5TXDKTET.js";
10
+ } from "./chunk-FVY7AJ46.js";
11
11
  import {
12
12
  authorizationId
13
13
  } from "./chunk-DIB4GX3G.js";
@@ -32,7 +32,7 @@ import {
32
32
  searchSlackUsers,
33
33
  selectPluginGrant,
34
34
  toMcpProviderError
35
- } from "./chunk-O2YXWWPM.js";
35
+ } from "./chunk-PTJ75ZWR.js";
36
36
  import {
37
37
  RetryableDeliveryError,
38
38
  actorFromRun,
@@ -48,7 +48,7 @@ import {
48
48
  getSlackMessagePermalink,
49
49
  resolveBaseUrl,
50
50
  uploadFilesToConversation
51
- } from "./chunk-FLEY546A.js";
51
+ } from "./chunk-O4AQDOKA.js";
52
52
  import {
53
53
  parseSandboxEgressAuthRequiredSignal,
54
54
  parseSandboxEgressPermissionDeniedSignal,
@@ -77,7 +77,7 @@ import {
77
77
  runNonInteractiveCommand,
78
78
  throwSandboxOperationError,
79
79
  wrapSandboxSetupError
80
- } from "./chunk-4TWLKHOM.js";
80
+ } from "./chunk-6VWMX7NS.js";
81
81
  import {
82
82
  SCHEDULED_TASK_SYSTEM_ACTOR,
83
83
  compactEventTask,
@@ -109,10 +109,10 @@ import {
109
109
  saveEventTask,
110
110
  scheduledTaskAttributes,
111
111
  writableEventTask
112
- } from "./chunk-PMJAY6JS.js";
112
+ } from "./chunk-DK2FSQHS.js";
113
113
  import {
114
114
  parseSlackThreadId
115
- } from "./chunk-TIV3PX5H.js";
115
+ } from "./chunk-NUG3VYHL.js";
116
116
  import {
117
117
  AGENTS_REMOVAL_NOTICE,
118
118
  AGENTS_REPLACEMENT_NOTICE,
@@ -182,7 +182,7 @@ import {
182
182
  stripRuntimeTurnContext,
183
183
  trimTrailingAssistantMessages,
184
184
  truncateText
185
- } from "./chunk-5QBK3QHJ.js";
185
+ } from "./chunk-4U4MNYGP.js";
186
186
  import {
187
187
  JUNIOR_THREAD_STATE_TTL_MS
188
188
  } from "./chunk-3Y47VMHV.js";
@@ -198,7 +198,7 @@ import {
198
198
  getSlackToolContext,
199
199
  readActorIdentity,
200
200
  resolveChannelCapabilities
201
- } from "./chunk-2J4VCHRX.js";
201
+ } from "./chunk-XYMCZGH6.js";
202
202
  import {
203
203
  SlackActionError,
204
204
  downloadPrivateSlackFile,
@@ -207,7 +207,7 @@ import {
207
207
  isConversationScopedChannel,
208
208
  normalizeSlackConversationId,
209
209
  withSlackRetries
210
- } from "./chunk-JAJVUQV7.js";
210
+ } from "./chunk-7CPN5JTA.js";
211
211
  import {
212
212
  KNOWN_CONVERSATION_EVENT_TYPES,
213
213
  contextProvenance,
@@ -219,10 +219,10 @@ import {
219
219
  instructionActors,
220
220
  instructionProvenanceFor,
221
221
  sameActorIdentity
222
- } from "./chunk-XAYXN4EG.js";
222
+ } from "./chunk-Y654CTW2.js";
223
223
  import {
224
224
  juniorIdentities
225
- } from "./chunk-ET54Q4TD.js";
225
+ } from "./chunk-CZD6M57V.js";
226
226
  import {
227
227
  SANDBOX_DATA_ROOT,
228
228
  SANDBOX_SKILLS_ROOT,
@@ -234,7 +234,7 @@ import {
234
234
  } from "./chunk-EM225ITJ.js";
235
235
  import {
236
236
  getStateAdapter
237
- } from "./chunk-XQPKMLRI.js";
237
+ } from "./chunk-NNN2WYAD.js";
238
238
  import {
239
239
  ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
240
240
  COMPACTION_SUMMARY_PREFIX,
@@ -267,7 +267,7 @@ import {
267
267
  resolveGatewayCredential,
268
268
  resolveGatewayModel,
269
269
  unwrapCurrentInstruction
270
- } from "./chunk-PGJBNO3I.js";
270
+ } from "./chunk-6PJXR4BC.js";
271
271
  import {
272
272
  canExposeConversationPayload,
273
273
  resolveConversationPrivacy,
@@ -277,16 +277,16 @@ import {
277
277
  toGenAiMessagesTraceAttributes,
278
278
  toGenAiPayloadMetadata,
279
279
  toGenAiPayloadTraceAttributes
280
- } from "./chunk-VXWTGOLW.js";
280
+ } from "./chunk-6AF5GOZA.js";
281
281
  import {
282
282
  discoverSkills,
283
283
  findSkillByName,
284
284
  loadSkillsByName,
285
285
  parseSkillInvocation
286
- } from "./chunk-YECBSG77.js";
286
+ } from "./chunk-CCAU73CE.js";
287
287
  import {
288
288
  pluginCatalogRuntime
289
- } from "./chunk-EPOA52SD.js";
289
+ } from "./chunk-3567VGCN.js";
290
290
  import {
291
291
  CredentialUnavailableError,
292
292
  OAuthProviderError,
@@ -294,7 +294,7 @@ import {
294
294
  getOAuthProviderErrorAttributes,
295
295
  resolveAuthTokenPlaceholder,
296
296
  resolvePluginCommandEnv
297
- } from "./chunk-JY2HJYJT.js";
297
+ } from "./chunk-MSOZLASC.js";
298
298
  import {
299
299
  credentialUserSubjectId
300
300
  } from "./chunk-RUIXF3YQ.js";
@@ -324,7 +324,7 @@ import {
324
324
  summarizeMessageText,
325
325
  withLogContext,
326
326
  withSpan
327
- } from "./chunk-HMU2QP5M.js";
327
+ } from "./chunk-3HX67UPN.js";
328
328
  import {
329
329
  startInactiveSpan,
330
330
  withActiveSpan
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  ToolInputError
3
- } from "./chunk-5QBK3QHJ.js";
3
+ } from "./chunk-4U4MNYGP.js";
4
4
  import {
5
5
  canRouteResourceEvents,
6
6
  getPlugins
7
- } from "./chunk-2J4VCHRX.js";
7
+ } from "./chunk-XYMCZGH6.js";
8
8
  import {
9
9
  getDb
10
- } from "./chunk-XAYXN4EG.js";
10
+ } from "./chunk-Y654CTW2.js";
11
11
  import {
12
12
  juniorEventTasks,
13
13
  juniorSchedulerRuns,
14
14
  juniorSchedulerTasks,
15
15
  juniorStats
16
- } from "./chunk-ET54Q4TD.js";
16
+ } from "./chunk-CZD6M57V.js";
17
17
  import {
18
18
  juniorDestinations
19
19
  } from "./chunk-VFUK3X5B.js";
20
20
  import {
21
21
  logInfo
22
- } from "./chunk-HMU2QP5M.js";
22
+ } from "./chunk-3HX67UPN.js";
23
23
 
24
24
  // src/chat/event-tasks/store.ts
25
25
  import { and, asc, desc, eq, inArray, or, sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createAndEnqueueAgentInvocation
3
- } from "./chunk-WTKAALLV.js";
3
+ } from "./chunk-HOGJ6TBT.js";
4
4
  import {
5
5
  actorFromRun,
6
6
  toolInvocationDestination
@@ -8,14 +8,14 @@ import {
8
8
  getConversationStore,
9
9
  parseDestination,
10
10
  sameDestination
11
- } from "./chunk-XAYXN4EG.js";
11
+ } from "./chunk-Y654CTW2.js";
12
12
  import {
13
13
  getDefaultRedisStateAdapterFor,
14
14
  getStateAdapter
15
- } from "./chunk-XQPKMLRI.js";
15
+ } from "./chunk-NNN2WYAD.js";
16
16
  import {
17
17
  getChatConfig
18
- } from "./chunk-PGJBNO3I.js";
18
+ } from "./chunk-6PJXR4BC.js";
19
19
  import {
20
20
  parseStoredSlackActor
21
21
  } from "./chunk-HZF5P5UN.js";
@@ -23,7 +23,7 @@ import {
23
23
  isRecord,
24
24
  toOptionalNumber,
25
25
  toOptionalString
26
- } from "./chunk-HMU2QP5M.js";
26
+ } from "./chunk-3HX67UPN.js";
27
27
 
28
28
  // src/chat/task-execution/state.ts
29
29
  import { randomUUID } from "crypto";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  formatProviderLabel,
6
6
  startOAuthFlow
7
- } from "./chunk-FLEY546A.js";
7
+ } from "./chunk-O4AQDOKA.js";
8
8
  import {
9
9
  parseSandboxEgressAuthRequiredSignal
10
10
  } from "./chunk-HUO3UTAQ.js";
@@ -12,16 +12,16 @@ import {
12
12
  abandonReplacedPendingAuth,
13
13
  canReusePendingAuthLink,
14
14
  recordAuthorizationRequested
15
- } from "./chunk-5QBK3QHJ.js";
15
+ } from "./chunk-4U4MNYGP.js";
16
16
  import {
17
17
  AGENT_INVOCATION_MAILBOX_STATUSES
18
- } from "./chunk-ET54Q4TD.js";
18
+ } from "./chunk-CZD6M57V.js";
19
19
  import {
20
20
  TURN_REASONING_LEVELS
21
- } from "./chunk-PGJBNO3I.js";
21
+ } from "./chunk-6PJXR4BC.js";
22
22
  import {
23
23
  pluginCatalogRuntime
24
- } from "./chunk-EPOA52SD.js";
24
+ } from "./chunk-3567VGCN.js";
25
25
  import {
26
26
  credentialContextSchema
27
27
  } from "./chunk-RUIXF3YQ.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  appendAndEnqueueInboundMessage
3
- } from "./chunk-A5SROS6H.js";
3
+ } from "./chunk-F7QUK3YP.js";
4
4
  import {
5
5
  ConversationTurnLifecycleService,
6
6
  getPersistedSandboxState,
7
7
  getPersistedThreadState,
8
8
  persistThreadStateById
9
- } from "./chunk-ISEROVYZ.js";
9
+ } from "./chunk-7RFWIHPM.js";
10
10
  import {
11
11
  AgentInvocationBusyError,
12
12
  AgentInvocationLimitError,
@@ -15,7 +15,7 @@ import {
15
15
  agentBindingSchema,
16
16
  agentInvocationSchema,
17
17
  createAgentInvocationSchema
18
- } from "./chunk-5TXDKTET.js";
18
+ } from "./chunk-FVY7AJ46.js";
19
19
  import {
20
20
  TurnInputCommitLostError,
21
21
  failTurnRecord,
@@ -26,16 +26,16 @@ import {
26
26
  isTurnInputCommitLostError,
27
27
  openConversationProjection,
28
28
  saveTurnCheckpoint
29
- } from "./chunk-5QBK3QHJ.js";
29
+ } from "./chunk-4U4MNYGP.js";
30
30
  import {
31
31
  getConversationEventStore,
32
32
  getConversationStore,
33
33
  getSqlExecutor
34
- } from "./chunk-XAYXN4EG.js";
34
+ } from "./chunk-Y654CTW2.js";
35
35
  import {
36
36
  juniorAgentBindings,
37
37
  juniorAgentInvocations
38
- } from "./chunk-ET54Q4TD.js";
38
+ } from "./chunk-CZD6M57V.js";
39
39
 
40
40
  // src/chat/agent-invocations/work.ts
41
41
  import { z } from "zod";
@@ -5,7 +5,7 @@ import {
5
5
  logInfo,
6
6
  logWarn,
7
7
  setSpanAttributes
8
- } from "./chunk-HMU2QP5M.js";
8
+ } from "./chunk-3HX67UPN.js";
9
9
  import {
10
10
  discoverInstalledPluginPackageContent,
11
11
  normalizePluginPackageNames
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  JUNIOR_VERSION
3
- } from "./chunk-COC65LIW.js";
3
+ } from "./chunk-ZQT4RHUO.js";
4
4
 
5
5
  // src/deployment.ts
6
6
  var JUNIOR_HEARTBEAT_ROUTE = "/api/internal/heartbeat";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getChatConfig
3
- } from "./chunk-PGJBNO3I.js";
3
+ } from "./chunk-6PJXR4BC.js";
4
4
 
5
5
  // src/chat/state/adapter.ts
6
6
  import { createMemoryState } from "@chat-adapter/state-memory";
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-F3B2YJ76.js";
6
6
  import {
7
7
  toOptionalString
8
- } from "./chunk-HMU2QP5M.js";
8
+ } from "./chunk-3HX67UPN.js";
9
9
 
10
10
  // src/chat/slack/context.ts
11
11
  import { z } from "zod";
@@ -4,19 +4,19 @@ import {
4
4
  isDmChannel,
5
5
  normalizeSlackConversationId,
6
6
  withSlackRetries
7
- } from "./chunk-JAJVUQV7.js";
7
+ } from "./chunk-7CPN5JTA.js";
8
8
  import {
9
9
  parseDestination
10
- } from "./chunk-XAYXN4EG.js";
10
+ } from "./chunk-Y654CTW2.js";
11
11
  import {
12
12
  getStateAdapter
13
- } from "./chunk-XQPKMLRI.js";
13
+ } from "./chunk-NNN2WYAD.js";
14
14
  import {
15
15
  normalizeSlackEmojiName
16
- } from "./chunk-PGJBNO3I.js";
16
+ } from "./chunk-6PJXR4BC.js";
17
17
  import {
18
18
  pluginCatalogRuntime
19
- } from "./chunk-EPOA52SD.js";
19
+ } from "./chunk-3567VGCN.js";
20
20
  import {
21
21
  parseSlackMessageTs,
22
22
  parseSlackUserId
@@ -25,7 +25,7 @@ import {
25
25
  isRecord,
26
26
  logInfo,
27
27
  logWarn
28
- } from "./chunk-HMU2QP5M.js";
28
+ } from "./chunk-3HX67UPN.js";
29
29
 
30
30
  // src/chat/slack/outbound.ts
31
31
  var MAX_SLACK_MESSAGE_TEXT_CHARS = 4e4;
@@ -1,34 +1,34 @@
1
1
  import {
2
2
  resolveBaseUrl
3
- } from "./chunk-FLEY546A.js";
3
+ } from "./chunk-O4AQDOKA.js";
4
4
  import {
5
5
  createPluginLogger,
6
6
  getPlugins
7
- } from "./chunk-2J4VCHRX.js";
7
+ } from "./chunk-XYMCZGH6.js";
8
8
  import {
9
9
  getSlackClient,
10
10
  withSlackRetries
11
- } from "./chunk-JAJVUQV7.js";
11
+ } from "./chunk-7CPN5JTA.js";
12
12
  import {
13
13
  getDb,
14
14
  parseDestination
15
- } from "./chunk-XAYXN4EG.js";
15
+ } from "./chunk-Y654CTW2.js";
16
16
  import {
17
17
  sleep
18
18
  } from "./chunk-EM225ITJ.js";
19
19
  import {
20
20
  acquireActiveLock,
21
21
  getStateAdapter
22
- } from "./chunk-XQPKMLRI.js";
22
+ } from "./chunk-NNN2WYAD.js";
23
23
  import {
24
24
  pluginCatalogRuntime
25
- } from "./chunk-EPOA52SD.js";
25
+ } from "./chunk-3567VGCN.js";
26
26
  import {
27
27
  fetchWithBoundedOAuthErrorBodies
28
- } from "./chunk-JY2HJYJT.js";
28
+ } from "./chunk-MSOZLASC.js";
29
29
  import {
30
30
  isRecord
31
- } from "./chunk-HMU2QP5M.js";
31
+ } from "./chunk-3HX67UPN.js";
32
32
 
33
33
  // src/chat/capabilities/router.ts
34
34
  var ProviderCredentialRouter = class {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTurnRequestDeadline
3
- } from "./chunk-HOK7MEWG.js";
3
+ } from "./chunk-4R2XCKUH.js";
4
4
  import {
5
5
  CONVERSATION_WORK_CHECK_IN_INTERVAL_MS,
6
6
  CONVERSATION_WORK_MAX_RETRIES,
@@ -21,20 +21,20 @@ import {
21
21
  releaseConversationWork,
22
22
  requestAnotherSlice,
23
23
  startConversationWork
24
- } from "./chunk-A5SROS6H.js";
24
+ } from "./chunk-F7QUK3YP.js";
25
25
  import {
26
26
  ConversationQueueMessageRejectedError
27
27
  } from "./chunk-JAL3CH4G.js";
28
28
  import {
29
29
  getChatConfig,
30
30
  isProviderRetryError
31
- } from "./chunk-PGJBNO3I.js";
31
+ } from "./chunk-6PJXR4BC.js";
32
32
  import {
33
33
  logException,
34
34
  logInfo,
35
35
  logWarn,
36
36
  withLogContext
37
- } from "./chunk-HMU2QP5M.js";
37
+ } from "./chunk-3HX67UPN.js";
38
38
 
39
39
  // src/chat/task-execution/worker.ts
40
40
  var CONVERSATION_WORK_DEFER_DELAY_MS = 15e3;
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-FA6POGLH.js";
4
4
  import {
5
5
  getTurnRequestDeadline
6
- } from "./chunk-HOK7MEWG.js";
6
+ } from "./chunk-4R2XCKUH.js";
7
7
  import {
8
8
  buildSentryConversationUrl,
9
9
  deleteWebAuthorization
10
- } from "./chunk-37LMRT7G.js";
10
+ } from "./chunk-65IAU2L2.js";
11
11
  import {
12
12
  ensureConversationWake,
13
13
  requestConversationWork
14
- } from "./chunk-A5SROS6H.js";
14
+ } from "./chunk-F7QUK3YP.js";
15
15
  import {
16
16
  buildDeliveredTurnStatePatch,
17
17
  finalizeFailedTurnReplyWithEvent,
@@ -24,7 +24,7 @@ import {
24
24
  requireTurnFailureEventId,
25
25
  resolveTurnSessionRouting,
26
26
  scheduleSessionCompletedPluginTasks
27
- } from "./chunk-2NS3ACHB.js";
27
+ } from "./chunk-A6LWN4K6.js";
28
28
  import {
29
29
  ConversationTurnLifecycleService,
30
30
  coerceThreadConversationState,
@@ -33,7 +33,7 @@ import {
33
33
  getPersistedSandboxState,
34
34
  getPersistedThreadState,
35
35
  persistThreadStateById
36
- } from "./chunk-ISEROVYZ.js";
36
+ } from "./chunk-7RFWIHPM.js";
37
37
  import {
38
38
  getVercelConversationWorkQueue
39
39
  } from "./chunk-WR76IVA5.js";
@@ -46,7 +46,7 @@ import {
46
46
  getMcpStoredOAuthCredentials,
47
47
  lookupSlackUserProfile,
48
48
  resolvePluginOAuthAccount
49
- } from "./chunk-O2YXWWPM.js";
49
+ } from "./chunk-PTJ75ZWR.js";
50
50
  import {
51
51
  RetryableDeliveryError
52
52
  } from "./chunk-RF6J3DIO.js";
@@ -62,13 +62,13 @@ import {
62
62
  removeReactionFromMessage,
63
63
  resolveBaseUrl,
64
64
  truncateStatusText
65
- } from "./chunk-FLEY546A.js";
65
+ } from "./chunk-O4AQDOKA.js";
66
66
  import {
67
67
  parseSlackThreadId,
68
68
  readSlackRawMessageContext,
69
69
  resolveSlackChannelIdFromMessage,
70
70
  resolveSlackChannelIdFromThreadId
71
- } from "./chunk-TIV3PX5H.js";
71
+ } from "./chunk-NUG3VYHL.js";
72
72
  import {
73
73
  CooperativeTurnYieldError,
74
74
  TurnSliceLimitExceededError,
@@ -95,29 +95,29 @@ import {
95
95
  recordTurnSummary,
96
96
  saveTurnCheckpoint,
97
97
  turnHasReply
98
- } from "./chunk-5QBK3QHJ.js";
98
+ } from "./chunk-4U4MNYGP.js";
99
99
  import {
100
100
  getDashboardConversationLink,
101
101
  getPluginSlackConversationLink
102
- } from "./chunk-2J4VCHRX.js";
102
+ } from "./chunk-XYMCZGH6.js";
103
103
  import {
104
104
  SlackActionError,
105
105
  getHeaderString,
106
106
  getSlackClient,
107
107
  isDmChannel,
108
108
  normalizeSlackConversationId
109
- } from "./chunk-JAJVUQV7.js";
109
+ } from "./chunk-7CPN5JTA.js";
110
110
  import {
111
111
  getConversationEventStore,
112
112
  getSqlExecutor,
113
113
  requireSlackDestination,
114
114
  upsertIdentity,
115
115
  upsertLinkedIdentity
116
- } from "./chunk-XAYXN4EG.js";
116
+ } from "./chunk-Y654CTW2.js";
117
117
  import {
118
118
  acquireActiveLock,
119
119
  getStateAdapter
120
- } from "./chunk-XQPKMLRI.js";
120
+ } from "./chunk-NNN2WYAD.js";
121
121
  import {
122
122
  botConfig,
123
123
  escapeXml,
@@ -125,18 +125,18 @@ import {
125
125
  getRuntimeMetadata,
126
126
  normalizeSlackEmojiName,
127
127
  standardModelId
128
- } from "./chunk-PGJBNO3I.js";
128
+ } from "./chunk-6PJXR4BC.js";
129
129
  import {
130
130
  discoverSkills
131
- } from "./chunk-YECBSG77.js";
131
+ } from "./chunk-CCAU73CE.js";
132
132
  import {
133
133
  pluginCatalogRuntime
134
- } from "./chunk-EPOA52SD.js";
134
+ } from "./chunk-3567VGCN.js";
135
135
  import {
136
136
  buildOAuthTokenRequest,
137
137
  hasRequiredOAuthScope,
138
138
  parseOAuthTokenResponse
139
- } from "./chunk-JY2HJYJT.js";
139
+ } from "./chunk-MSOZLASC.js";
140
140
  import {
141
141
  createSlackResumeActor,
142
142
  isUserActor
@@ -154,7 +154,7 @@ import {
154
154
  setTags,
155
155
  toOptionalString,
156
156
  withLogContext
157
- } from "./chunk-HMU2QP5M.js";
157
+ } from "./chunk-3HX67UPN.js";
158
158
  import {
159
159
  homeDir
160
160
  } from "./chunk-H4HBKISO.js";