@sentry/junior 0.185.0 → 0.186.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 (88) hide show
  1. package/dist/{agent-hooks-NGZQLL5O.js → agent-hooks-4B3Z4WRK.js} +11 -11
  2. package/dist/api/schema/conversation.d.ts +8 -0
  3. package/dist/api/schema.js +1 -1
  4. package/dist/api.js +43 -35
  5. package/dist/app.js +1061 -216
  6. package/dist/{catalog-runtime-AAEAO2RL.js → catalog-runtime-AFJCAOHC.js} +4 -4
  7. package/dist/chat/api-turns/mailbox-input.d.ts +7 -0
  8. package/dist/chat/api-turns/routing.d.ts +18 -3
  9. package/dist/chat/conversations/turn-lifecycle.d.ts +2 -0
  10. package/dist/chat/providers/slack/runtime.d.ts +0 -2
  11. package/dist/chat/providers/slack/turn.d.ts +0 -2
  12. package/dist/chat/resource-events/actor.d.ts +7 -2
  13. package/dist/chat/resource-events/app-publisher.d.ts +18 -0
  14. package/dist/chat/resource-events/catalog.d.ts +19 -0
  15. package/dist/chat/resource-events/ingest.d.ts +0 -1
  16. package/dist/chat/resource-events/notification.d.ts +28 -3
  17. package/dist/chat/resource-events/runtime-catalog.d.ts +7 -2
  18. package/dist/chat/resource-events/store.d.ts +1 -13
  19. package/dist/chat/resource-events/workspace.d.ts +7 -3
  20. package/dist/chat/sandbox/egress/credentials.d.ts +5 -4
  21. package/dist/chat/sandbox/egress/session.d.ts +9 -9
  22. package/dist/chat/sandbox/errors.d.ts +1 -1
  23. package/dist/chat/sandbox/ref.d.ts +1 -1
  24. package/dist/chat/sandbox/snapshot/events.d.ts +8 -1
  25. package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +6 -1
  26. package/dist/chat/sentry-links.d.ts +2 -0
  27. package/dist/chat/services/turn-session-routing.d.ts +20 -5
  28. package/dist/chat/task-execution/slack-resource-event.d.ts +47 -0
  29. package/dist/chat/task-execution/slack-work.d.ts +0 -21
  30. package/dist/chat/tools/event-tasks.d.ts +1 -1
  31. package/dist/chat/tools/resource-events.d.ts +1 -1
  32. package/dist/{chunk-D63IUQQE.js → chunk-2IBDVE62.js} +12 -9
  33. package/dist/{chunk-C6TS47CQ.js → chunk-2U7EPTRZ.js} +11 -5
  34. package/dist/{chunk-OMQ2J6F6.js → chunk-3CVEE6LA.js} +1 -1
  35. package/dist/{chunk-ABAX75GG.js → chunk-43LODHJM.js} +17 -3
  36. package/dist/{chunk-7MHNIGHP.js → chunk-64WF2GQ3.js} +1 -1
  37. package/dist/{chunk-X7NCJQAA.js → chunk-7EOWT62G.js} +1 -1
  38. package/dist/{chunk-MWOH6CIK.js → chunk-7EU4YSZ4.js} +201 -57
  39. package/dist/{chunk-4S47VHJR.js → chunk-ACGWTJ74.js} +3 -3
  40. package/dist/{chunk-LRI5IRGY.js → chunk-AD64YMEC.js} +2 -2
  41. package/dist/{chunk-FTVMXDNN.js → chunk-BRKB5R7P.js} +1 -1
  42. package/dist/{chunk-Y5G23T2D.js → chunk-CM6RTYSO.js} +5 -5
  43. package/dist/{chunk-QCT4226Q.js → chunk-CV5CPRVG.js} +3 -3
  44. package/dist/{chunk-QZKHHG3B.js → chunk-DHYZ4VKG.js} +382 -279
  45. package/dist/{chunk-PNYJOEVV.js → chunk-DOP3FIQC.js} +1 -1
  46. package/dist/{chunk-HJPC32TQ.js → chunk-EWRPUXE3.js} +9 -9
  47. package/dist/{chunk-EIJCPJOY.js → chunk-FFYDRLXW.js} +1 -1
  48. package/dist/{chunk-W7GCLNIV.js → chunk-GQMQCY7H.js} +2 -2
  49. package/dist/{chunk-6DOAUXLD.js → chunk-GSB3NTNS.js} +744 -1707
  50. package/dist/{chunk-WLKWN4CD.js → chunk-H7X2G2KS.js} +8 -5
  51. package/dist/{chunk-ATUWN6Z3.js → chunk-HKFLRIBD.js} +2 -2
  52. package/dist/{chunk-EJYP3NQ4.js → chunk-HWXP6RHG.js} +37 -3
  53. package/dist/{chunk-VH4IU3UC.js → chunk-JFPY6XFF.js} +19 -45
  54. package/dist/{chunk-FFHXG2FX.js → chunk-MCLWOBPN.js} +76 -16
  55. package/dist/{chunk-GJTIZQGJ.js → chunk-NRMAOGRS.js} +1 -1
  56. package/dist/{chunk-X2SS6BF7.js → chunk-O6GQO7VP.js} +27 -33
  57. package/dist/{chunk-DAPC2HTM.js → chunk-OZG7E22Y.js} +5 -5
  58. package/dist/{chunk-4K25ODAO.js → chunk-PFAZSRGR.js} +3 -1
  59. package/dist/{chunk-UUULGCKK.js → chunk-PZZOGHVR.js} +14 -4
  60. package/dist/{chunk-TVVAMOLS.js → chunk-QBL2AVFF.js} +1 -1
  61. package/dist/{chunk-4HA36IWS.js → chunk-QU3URVWG.js} +8 -8
  62. package/dist/{chunk-6Q7YZLCL.js → chunk-STOCCPWH.js} +9 -1
  63. package/dist/{chunk-EWEH2PJW.js → chunk-TXLBLGNQ.js} +5 -5
  64. package/dist/{chunk-U4CTAVWN.js → chunk-VOGOTEW7.js} +1 -1
  65. package/dist/{chunk-ZIF2S464.js → chunk-VQIWBJOP.js} +1 -1
  66. package/dist/{chunk-ZKKGFUWM.js → chunk-VQZYIVYN.js} +6 -6
  67. package/dist/{chunk-LVK4WJKM.js → chunk-VXL2LBPK.js} +1 -1
  68. package/dist/{chunk-7GAP2XG4.js → chunk-YXSBZRP7.js} +1 -1
  69. package/dist/cli/chat.js +32 -32
  70. package/dist/cli/check.js +5 -5
  71. package/dist/cli/plugins.js +12 -12
  72. package/dist/cli/snapshot-create.js +9 -9
  73. package/dist/cli/upgrade.js +6 -6
  74. package/dist/{db-TRJ77FAU.js → db-7XL4UPAE.js} +6 -6
  75. package/dist/instrumentation.js +3 -3
  76. package/dist/nitro.js +6 -6
  77. package/dist/{oauth-callback-server-XD5SV3MS.js → oauth-callback-server-RAOYHWDI.js} +27 -27
  78. package/dist/{runner-KFX7NG6D.js → runner-KMPBWRPM.js} +19 -19
  79. package/dist/{skills-J2AH26CW.js → skills-IPCALGLQ.js} +5 -5
  80. package/dist/spawn-OSOWTMBG.js +41 -0
  81. package/dist/task-runner-IQNBA3RY.js +34 -0
  82. package/dist/{validation-O5J4VOPF.js → validation-BSRCCX6N.js} +5 -5
  83. package/dist/version.js +1 -1
  84. package/dist/{work-ECPQTG3U.js → work-T6UFTOJY.js} +20 -20
  85. package/dist/{worker-RS3DXUDO.js → worker-L35OG7VA.js} +10 -10
  86. package/package.json +5 -5
  87. package/dist/spawn-VU3CSRI6.js +0 -41
  88. package/dist/task-runner-5JG3VIIY.js +0 -34
@@ -4,11 +4,11 @@ import {
4
4
  import {
5
5
  buildSentryConversationUrl,
6
6
  deleteWebAuthorization
7
- } from "./chunk-UUULGCKK.js";
7
+ } from "./chunk-PZZOGHVR.js";
8
8
  import {
9
9
  AgentRunError,
10
10
  executeTurn
11
- } from "./chunk-W7GCLNIV.js";
11
+ } from "./chunk-GQMQCY7H.js";
12
12
  import {
13
13
  buildDeliveredTurnStatePatch,
14
14
  finalizeFailedTurnReplyWithEvent,
@@ -19,14 +19,14 @@ import {
19
19
  getTurnUserSlackMessageTs,
20
20
  persistAuthPauseTurnState,
21
21
  requireTurnFailureEventId
22
- } from "./chunk-DAPC2HTM.js";
22
+ } from "./chunk-OZG7E22Y.js";
23
23
  import {
24
24
  resolveTurnSessionRouting,
25
25
  scheduleSessionCompletedPluginTasks
26
- } from "./chunk-FFHXG2FX.js";
26
+ } from "./chunk-MCLWOBPN.js";
27
27
  import {
28
- ConversationTurnLifecycleService
29
- } from "./chunk-6Q7YZLCL.js";
28
+ getTurnLifecycle
29
+ } from "./chunk-STOCCPWH.js";
30
30
  import {
31
31
  coerceThreadConversationState,
32
32
  configValueSchema,
@@ -34,7 +34,7 @@ import {
34
34
  getPersistedSandboxState,
35
35
  getPersistedThreadState,
36
36
  persistThreadStateById
37
- } from "./chunk-Y5G23T2D.js";
37
+ } from "./chunk-CM6RTYSO.js";
38
38
  import {
39
39
  createUserTokenStore,
40
40
  deleteMcpAuthSession,
@@ -44,7 +44,7 @@ import {
44
44
  getMcpStoredOAuthCredentials,
45
45
  lookupSlackUserProfile,
46
46
  resolvePluginOAuthAccount
47
- } from "./chunk-4HA36IWS.js";
47
+ } from "./chunk-QU3URVWG.js";
48
48
  import {
49
49
  addReactionToMessage,
50
50
  escapeSlackMrkdwnText,
@@ -57,20 +57,20 @@ import {
57
57
  removeReactionFromMessage,
58
58
  resolveBaseUrl,
59
59
  truncateStatusText
60
- } from "./chunk-ZKKGFUWM.js";
60
+ } from "./chunk-VQZYIVYN.js";
61
61
  import {
62
62
  parseSlackThreadId,
63
63
  readSlackRawMessageContext,
64
64
  resolveSlackChannelIdFromMessage,
65
65
  resolveSlackChannelIdFromThreadId
66
- } from "./chunk-X7NCJQAA.js";
66
+ } from "./chunk-7EOWT62G.js";
67
67
  import {
68
68
  RetryableDeliveryError
69
69
  } from "./chunk-INQHUE72.js";
70
70
  import {
71
71
  ensureConversationWake,
72
72
  requestConversationWork
73
- } from "./chunk-D63IUQQE.js";
73
+ } from "./chunk-2IBDVE62.js";
74
74
  import {
75
75
  CooperativeTurnYieldError,
76
76
  clearPendingAuth,
@@ -79,7 +79,7 @@ import {
79
79
  isCooperativeTurnYieldError,
80
80
  isPendingAuthLatestRequest,
81
81
  markTurnFailed
82
- } from "./chunk-U4CTAVWN.js";
82
+ } from "./chunk-VOGOTEW7.js";
83
83
  import {
84
84
  TurnSliceLimitExceededError,
85
85
  abandonTurnRecord,
@@ -99,13 +99,13 @@ import {
99
99
  recordTurnSummary,
100
100
  saveTurnCheckpoint,
101
101
  turnHasReply
102
- } from "./chunk-WLKWN4CD.js";
102
+ } from "./chunk-H7X2G2KS.js";
103
103
  import {
104
104
  getVercelConversationWorkQueue
105
105
  } from "./chunk-DKIJ2RP5.js";
106
106
  import {
107
107
  getTurnRequestDeadline
108
- } from "./chunk-FTVMXDNN.js";
108
+ } from "./chunk-BRKB5R7P.js";
109
109
  import {
110
110
  SlackActionError,
111
111
  getDashboardConversationLink,
@@ -114,39 +114,38 @@ import {
114
114
  getSlackClient,
115
115
  isDmChannel,
116
116
  normalizeSlackConversationId
117
- } from "./chunk-VH4IU3UC.js";
117
+ } from "./chunk-JFPY6XFF.js";
118
118
  import {
119
- getConversationEventStore,
120
119
  getSqlExecutor,
121
120
  requireSlackDestination,
122
121
  upsertIdentity,
123
122
  upsertLinkedIdentity
124
- } from "./chunk-ABAX75GG.js";
123
+ } from "./chunk-43LODHJM.js";
125
124
  import {
126
125
  acquireActiveLock,
127
126
  getStateAdapter
128
- } from "./chunk-PNYJOEVV.js";
127
+ } from "./chunk-DOP3FIQC.js";
129
128
  import {
130
129
  botConfig,
131
130
  escapeXml,
132
131
  getChatConfig,
133
132
  getRuntimeMetadata,
134
133
  normalizeSlackEmojiName
135
- } from "./chunk-LRI5IRGY.js";
134
+ } from "./chunk-AD64YMEC.js";
136
135
  import {
137
136
  defaultModelId
138
137
  } from "./chunk-D4YV5TDV.js";
139
138
  import {
140
139
  discoverSkills
141
- } from "./chunk-ATUWN6Z3.js";
140
+ } from "./chunk-HKFLRIBD.js";
142
141
  import {
143
142
  pluginCatalogRuntime
144
- } from "./chunk-GJTIZQGJ.js";
143
+ } from "./chunk-NRMAOGRS.js";
145
144
  import {
146
145
  buildOAuthTokenRequest,
147
146
  hasRequiredOAuthScope,
148
147
  parseOAuthTokenResponse
149
- } from "./chunk-7MHNIGHP.js";
148
+ } from "./chunk-64WF2GQ3.js";
150
149
  import {
151
150
  createSlackResumeActor,
152
151
  isUserActor,
@@ -165,7 +164,7 @@ import {
165
164
  setTags,
166
165
  toOptionalString,
167
166
  withLogContext
168
- } from "./chunk-OMQ2J6F6.js";
167
+ } from "./chunk-3CVEE6LA.js";
169
168
 
170
169
  // src/chat/slack/assistant-thread/status-render.ts
171
170
  var DEFAULT_STATUS_CONTEXTS = {
@@ -1176,6 +1175,7 @@ async function postResumeFailureReply(args) {
1176
1175
  });
1177
1176
  }
1178
1177
  async function handleResumeFailure(args) {
1178
+ const turnLifecycle = getTurnLifecycle();
1179
1179
  const capturedEventId = logException(args.error, args.eventName);
1180
1180
  const eventId = requireTurnFailureEventId(capturedEventId, args.eventName);
1181
1181
  let failureStatePersistError;
@@ -1188,7 +1188,7 @@ async function handleResumeFailure(args) {
1188
1188
  { "app.error.original_event_id": eventId }
1189
1189
  );
1190
1190
  try {
1191
- await args.turnLifecycle.fail({
1191
+ await turnLifecycle.fail({
1192
1192
  conversationId: args.resume.conversationId,
1193
1193
  turnId: args.resume.turnId,
1194
1194
  createdAtMs: Date.now(),
@@ -1218,7 +1218,7 @@ async function handleResumeFailure(args) {
1218
1218
  { "app.error.original_event_id": eventId }
1219
1219
  );
1220
1220
  try {
1221
- await args.turnLifecycle.fail({
1221
+ await turnLifecycle.fail({
1222
1222
  conversationId: args.resume.conversationId,
1223
1223
  turnId: args.resume.turnId,
1224
1224
  createdAtMs: Date.now(),
@@ -1237,7 +1237,7 @@ async function handleResumeFailure(args) {
1237
1237
  if (failureStatePersistError) {
1238
1238
  throw failureStatePersistError;
1239
1239
  }
1240
- await args.turnLifecycle.fail({
1240
+ await turnLifecycle.fail({
1241
1241
  conversationId: args.resume.conversationId,
1242
1242
  turnId: args.resume.turnId,
1243
1243
  createdAtMs: Date.now(),
@@ -1324,9 +1324,7 @@ async function resumeSlackTurnInContext(args) {
1324
1324
  let assistantMessageDelivered = false;
1325
1325
  let shouldScheduleCompletedPluginTasks = false;
1326
1326
  let postDeliveryCommitError;
1327
- const turnLifecycle = new ConversationTurnLifecycleService(
1328
- getConversationEventStore()
1329
- );
1327
+ const turnLifecycle = getTurnLifecycle();
1330
1328
  let failureCode = "agent_run_failed";
1331
1329
  let runArgs = args;
1332
1330
  try {
@@ -1609,7 +1607,6 @@ async function resumeSlackTurnInContext(args) {
1609
1607
  error: new Error("Resumed Run ended suspended without onSuspend"),
1610
1608
  eventName: "slack.resume.turn.failed",
1611
1609
  failureCode: "agent_run_failed",
1612
- turnLifecycle,
1613
1610
  resume: runArgs
1614
1611
  });
1615
1612
  };
@@ -1622,7 +1619,6 @@ async function resumeSlackTurnInContext(args) {
1622
1619
  ),
1623
1620
  eventName: "slack.resume.turn.failed",
1624
1621
  failureCode: "agent_run_failed",
1625
- turnLifecycle,
1626
1622
  resume: runArgs
1627
1623
  });
1628
1624
  };
@@ -1668,7 +1664,6 @@ async function resumeSlackTurnInContext(args) {
1668
1664
  error: runError,
1669
1665
  eventName: "slack.resume.turn.failed",
1670
1666
  failureCode,
1671
- turnLifecycle,
1672
1667
  resume: runArgs
1673
1668
  });
1674
1669
  };
@@ -1719,7 +1714,6 @@ async function resumeSlackTurnInContext(args) {
1719
1714
  error: pauseError,
1720
1715
  eventName: "slack.resume.pause_handler.failed",
1721
1716
  failureCode: "persistence_failed",
1722
- turnLifecycle,
1723
1717
  resume: runArgs
1724
1718
  });
1725
1719
  return true;
@@ -2,29 +2,29 @@ import {
2
2
  coerceThreadConversationState,
3
3
  getPersistedThreadState,
4
4
  persistThreadStateById
5
- } from "./chunk-Y5G23T2D.js";
5
+ } from "./chunk-CM6RTYSO.js";
6
6
  import {
7
7
  buildDeterministicTurnId,
8
8
  clearPendingAuth,
9
9
  markTurnClosed,
10
10
  markTurnCompleted
11
- } from "./chunk-U4CTAVWN.js";
11
+ } from "./chunk-VOGOTEW7.js";
12
12
  import {
13
13
  hydrateConversationMessages,
14
14
  markConversationMessage
15
- } from "./chunk-WLKWN4CD.js";
15
+ } from "./chunk-H7X2G2KS.js";
16
16
  import {
17
17
  ProviderError,
18
18
  findProviderError,
19
19
  getProviderErrorAttributes,
20
20
  getProviderErrorUserMessage
21
- } from "./chunk-LRI5IRGY.js";
21
+ } from "./chunk-AD64YMEC.js";
22
22
  import {
23
23
  parseSlackMessageTs
24
24
  } from "./chunk-N7TMSOZH.js";
25
25
  import {
26
26
  buildTurnFailureResponse
27
- } from "./chunk-OMQ2J6F6.js";
27
+ } from "./chunk-3CVEE6LA.js";
28
28
 
29
29
  // src/chat/runtime/delivered-turn-state.ts
30
30
  function buildDeliveredTurnStatePatch(args) {
@@ -405,7 +405,9 @@ var conversationReportTurnLifecycleEventDataSchema = z3.discriminatedUnion(
405
405
  turnId: z3.string().min(1),
406
406
  state: z3.literal("failed"),
407
407
  failureCode: conversationTurnFailureCodeSchema,
408
- failureReason: conversationTurnFailureReasonSchema.optional()
408
+ failureReason: conversationTurnFailureReasonSchema.optional(),
409
+ eventId: z3.string().regex(/^[a-f0-9]{32}$/i).optional(),
410
+ sentryEventUrl: z3.string().url().optional()
409
411
  }).strict()
410
412
  ]
411
413
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getStateAdapter
3
- } from "./chunk-PNYJOEVV.js";
3
+ } from "./chunk-DOP3FIQC.js";
4
4
  import {
5
5
  getClient
6
6
  } from "./chunk-PEQXYSSE.js";
@@ -61,7 +61,7 @@ function buildSentryWebBaseUrl(dsn) {
61
61
  const path = dsn.path ? `/${dsn.path}` : "";
62
62
  return `${dsn.protocol}://${dsn.host}${port}${path}`;
63
63
  }
64
- function buildSentryConversationUrl(conversationId) {
64
+ function buildSentryOrgPath(args) {
65
65
  const client = getClient();
66
66
  const dsn = client?.getDsn();
67
67
  if (!dsn?.host || !dsn.projectId) {
@@ -71,18 +71,28 @@ function buildSentryConversationUrl(conversationId) {
71
71
  if (!orgSlug) {
72
72
  return void 0;
73
73
  }
74
- const encodedId = encodeURIComponent(conversationId);
75
74
  const params = new URLSearchParams();
76
75
  params.set("project", dsn.projectId);
77
- const path = `explore/conversations/${encodedId}/?${params.toString()}`;
76
+ const path = `${args.path}?${params.toString()}`;
78
77
  if (isSentrySaasDsnHost(dsn.host)) {
79
78
  return `https://${orgSlug}.sentry.io/${path}`;
80
79
  }
81
80
  return `${buildSentryWebBaseUrl(dsn)}/organizations/${orgSlug}/${path}`;
82
81
  }
82
+ function buildSentryConversationUrl(conversationId) {
83
+ return buildSentryOrgPath({
84
+ path: `explore/conversations/${encodeURIComponent(conversationId)}/`
85
+ });
86
+ }
87
+ function buildSentryEventUrl(eventId) {
88
+ return buildSentryOrgPath({
89
+ path: `events/${encodeURIComponent(eventId)}/`
90
+ });
91
+ }
83
92
 
84
93
  export {
85
94
  buildSentryConversationUrl,
95
+ buildSentryEventUrl,
86
96
  createWebAuthorization,
87
97
  getWebAuthorization,
88
98
  deleteWebAuthorization
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createAndEnqueueAgentInvocation
3
- } from "./chunk-HJPC32TQ.js";
3
+ } from "./chunk-EWRPUXE3.js";
4
4
  import {
5
5
  actorFromRun,
6
6
  toolInvocationDestination
@@ -1,32 +1,32 @@
1
1
  import {
2
2
  resolveBaseUrl
3
- } from "./chunk-ZKKGFUWM.js";
3
+ } from "./chunk-VQZYIVYN.js";
4
4
  import {
5
5
  createPluginLogger,
6
6
  getPlugins,
7
7
  getSlackClient,
8
8
  withSlackRetries
9
- } from "./chunk-VH4IU3UC.js";
9
+ } from "./chunk-JFPY6XFF.js";
10
10
  import {
11
11
  getDb,
12
12
  parseDestination
13
- } from "./chunk-ABAX75GG.js";
13
+ } from "./chunk-43LODHJM.js";
14
14
  import {
15
15
  sleep
16
- } from "./chunk-EJYP3NQ4.js";
16
+ } from "./chunk-HWXP6RHG.js";
17
17
  import {
18
18
  acquireActiveLock,
19
19
  getStateAdapter
20
- } from "./chunk-PNYJOEVV.js";
20
+ } from "./chunk-DOP3FIQC.js";
21
21
  import {
22
22
  pluginCatalogRuntime
23
- } from "./chunk-GJTIZQGJ.js";
23
+ } from "./chunk-NRMAOGRS.js";
24
24
  import {
25
25
  fetchWithBoundedOAuthErrorBodies
26
- } from "./chunk-7MHNIGHP.js";
26
+ } from "./chunk-64WF2GQ3.js";
27
27
  import {
28
28
  isRecord
29
- } from "./chunk-OMQ2J6F6.js";
29
+ } from "./chunk-3CVEE6LA.js";
30
30
 
31
31
  // src/chat/capabilities/router.ts
32
32
  var ProviderCredentialRouter = class {
@@ -1,3 +1,7 @@
1
+ import {
2
+ getConversationEventStore
3
+ } from "./chunk-43LODHJM.js";
4
+
1
5
  // src/chat/conversations/turn-lifecycle.ts
2
6
  var ConversationTurnLifecycleService = class {
3
7
  constructor(events) {
@@ -50,7 +54,11 @@ var ConversationTurnLifecycleService = class {
50
54
  ]);
51
55
  }
52
56
  };
57
+ function getTurnLifecycle() {
58
+ return new ConversationTurnLifecycleService(getConversationEventStore());
59
+ }
53
60
 
54
61
  export {
55
- ConversationTurnLifecycleService
62
+ ConversationTurnLifecycleService,
63
+ getTurnLifecycle
56
64
  };
@@ -7,23 +7,23 @@ import {
7
7
  import {
8
8
  formatProviderLabel,
9
9
  startOAuthFlow
10
- } from "./chunk-ZKKGFUWM.js";
10
+ } from "./chunk-VQZYIVYN.js";
11
11
  import {
12
12
  abandonReplacedPendingAuth,
13
13
  canReusePendingAuthLink
14
- } from "./chunk-U4CTAVWN.js";
14
+ } from "./chunk-VOGOTEW7.js";
15
15
  import {
16
16
  recordAuthorizationRequested
17
- } from "./chunk-WLKWN4CD.js";
17
+ } from "./chunk-H7X2G2KS.js";
18
18
  import {
19
19
  AGENT_INVOCATION_MAILBOX_STATUSES
20
- } from "./chunk-LVK4WJKM.js";
20
+ } from "./chunk-VXL2LBPK.js";
21
21
  import {
22
22
  TURN_REASONING_LEVELS
23
23
  } from "./chunk-D4YV5TDV.js";
24
24
  import {
25
25
  pluginCatalogRuntime
26
- } from "./chunk-GJTIZQGJ.js";
26
+ } from "./chunk-NRMAOGRS.js";
27
27
  import {
28
28
  credentialContextSchema
29
29
  } from "./chunk-CEMMLV5L.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  abandonTurnRecord,
3
3
  extractAssistantText
4
- } from "./chunk-WLKWN4CD.js";
4
+ } from "./chunk-H7X2G2KS.js";
5
5
 
6
6
  // src/chat/state/turn-id.ts
7
7
  function buildDeterministicTurnId(messageId) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-GJTIZQGJ.js";
3
+ } from "./chunk-NRMAOGRS.js";
4
4
 
5
5
  // src/chat/plugins/validation.ts
6
6
  import { isDeepStrictEqual } from "util";
@@ -5,19 +5,19 @@ import {
5
5
  isDmChannel,
6
6
  normalizeSlackConversationId,
7
7
  withSlackRetries
8
- } from "./chunk-VH4IU3UC.js";
8
+ } from "./chunk-JFPY6XFF.js";
9
9
  import {
10
10
  parseDestination
11
- } from "./chunk-ABAX75GG.js";
11
+ } from "./chunk-43LODHJM.js";
12
12
  import {
13
13
  getStateAdapter
14
- } from "./chunk-PNYJOEVV.js";
14
+ } from "./chunk-DOP3FIQC.js";
15
15
  import {
16
16
  normalizeSlackEmojiName
17
- } from "./chunk-LRI5IRGY.js";
17
+ } from "./chunk-AD64YMEC.js";
18
18
  import {
19
19
  pluginCatalogRuntime
20
- } from "./chunk-GJTIZQGJ.js";
20
+ } from "./chunk-NRMAOGRS.js";
21
21
  import {
22
22
  parseSlackMessageTs,
23
23
  parseSlackUserId
@@ -26,7 +26,7 @@ import {
26
26
  isRecord,
27
27
  logInfo,
28
28
  logWarn
29
- } from "./chunk-OMQ2J6F6.js";
29
+ } from "./chunk-3CVEE6LA.js";
30
30
 
31
31
  // src/chat/slack/outbound.ts
32
32
  var MAX_SLACK_MESSAGE_TEXT_CHARS = 4e4;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-VFUK3X5B.js";
5
5
  import {
6
6
  DEFAULT_SQL_STATEMENT_TIMEOUT_MS
7
- } from "./chunk-LRI5IRGY.js";
7
+ } from "./chunk-AD64YMEC.js";
8
8
 
9
9
  // src/db/neon.ts
10
10
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@sentry/junior",
4
- version: "0.185.0",
4
+ version: "0.186.0",
5
5
  private: false,
6
6
  publishConfig: {
7
7
  access: "public"
package/dist/cli/chat.js CHANGED
@@ -1,52 +1,52 @@
1
1
  import {
2
2
  executeAgentRun
3
- } from "../chunk-6DOAUXLD.js";
4
- import "../chunk-EWEH2PJW.js";
3
+ } from "../chunk-GSB3NTNS.js";
4
+ import "../chunk-TXLBLGNQ.js";
5
5
  import "../chunk-6Y5B5PEX.js";
6
6
  import "../chunk-DIB4GX3G.js";
7
- import "../chunk-4HA36IWS.js";
8
- import "../chunk-ZKKGFUWM.js";
9
- import "../chunk-QZKHHG3B.js";
10
- import "../chunk-X7NCJQAA.js";
7
+ import "../chunk-QU3URVWG.js";
8
+ import "../chunk-VQZYIVYN.js";
9
+ import "../chunk-DHYZ4VKG.js";
10
+ import "../chunk-7EOWT62G.js";
11
11
  import {
12
12
  createAgentRunner
13
13
  } from "../chunk-INQHUE72.js";
14
- import "../chunk-D63IUQQE.js";
15
- import "../chunk-U4CTAVWN.js";
16
- import "../chunk-WLKWN4CD.js";
14
+ import "../chunk-2IBDVE62.js";
15
+ import "../chunk-VOGOTEW7.js";
16
+ import "../chunk-H7X2G2KS.js";
17
17
  import "../chunk-2LYHWMR4.js";
18
- import "../chunk-QCT4226Q.js";
18
+ import "../chunk-CV5CPRVG.js";
19
19
  import "../chunk-PDO5BLNM.js";
20
20
  import "../chunk-UIE3R5XU.js";
21
21
  import "../chunk-X6GDDWQH.js";
22
22
  import "../chunk-DKIJ2RP5.js";
23
23
  import "../chunk-JAL3CH4G.js";
24
24
  import "../chunk-7H2VZTWN.js";
25
- import "../chunk-FTVMXDNN.js";
25
+ import "../chunk-BRKB5R7P.js";
26
26
  import {
27
27
  loadAppPluginSet
28
28
  } from "../chunk-Y2CM7HXH.js";
29
- import "../chunk-VH4IU3UC.js";
29
+ import "../chunk-JFPY6XFF.js";
30
30
  import "../chunk-3Y47VMHV.js";
31
- import "../chunk-ABAX75GG.js";
32
- import "../chunk-LVK4WJKM.js";
33
- import "../chunk-EJYP3NQ4.js";
34
- import "../chunk-PNYJOEVV.js";
31
+ import "../chunk-43LODHJM.js";
32
+ import "../chunk-VXL2LBPK.js";
33
+ import "../chunk-HWXP6RHG.js";
34
+ import "../chunk-DOP3FIQC.js";
35
35
  import "../chunk-GFBR4S3Q.js";
36
36
  import "../chunk-VFUK3X5B.js";
37
- import "../chunk-LRI5IRGY.js";
37
+ import "../chunk-AD64YMEC.js";
38
38
  import "../chunk-D4YV5TDV.js";
39
- import "../chunk-EIJCPJOY.js";
40
- import "../chunk-ATUWN6Z3.js";
41
- import "../chunk-GJTIZQGJ.js";
42
- import "../chunk-7MHNIGHP.js";
39
+ import "../chunk-FFYDRLXW.js";
40
+ import "../chunk-HKFLRIBD.js";
41
+ import "../chunk-NRMAOGRS.js";
42
+ import "../chunk-64WF2GQ3.js";
43
43
  import "../chunk-CEMMLV5L.js";
44
44
  import "../chunk-N7TMSOZH.js";
45
45
  import "../chunk-DWPN6SCH.js";
46
46
  import "../chunk-TXKUKMVO.js";
47
- import "../chunk-OMQ2J6F6.js";
47
+ import "../chunk-3CVEE6LA.js";
48
48
  import "../chunk-PEQXYSSE.js";
49
- import "../chunk-7GAP2XG4.js";
49
+ import "../chunk-YXSBZRP7.js";
50
50
 
51
51
  // src/cli/chat.ts
52
52
  import {
@@ -168,10 +168,10 @@ async function configureLocalChatPlugins(pluginSet) {
168
168
  databaseModule
169
169
  ] = await Promise.all([
170
170
  import("../plugins-YTYJMMJF.js"),
171
- import("../agent-hooks-NGZQLL5O.js"),
172
- import("../catalog-runtime-AAEAO2RL.js"),
173
- import("../validation-O5J4VOPF.js"),
174
- import("../db-TRJ77FAU.js")
171
+ import("../agent-hooks-4B3Z4WRK.js"),
172
+ import("../catalog-runtime-AFJCAOHC.js"),
173
+ import("../validation-BSRCCX6N.js"),
174
+ import("../db-7XL4UPAE.js")
175
175
  ]);
176
176
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
177
177
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -237,14 +237,14 @@ async function prepareLocalChatRun(io, pluginSet) {
237
237
  await configureLocalChatPlugins(pluginSet);
238
238
  const { setExperimentalFeatures } = await import("../experimental-P5FZM4CU.js");
239
239
  setExperimentalFeatures({ subagents: true });
240
- const { runLocalAgentTurn } = await import("../runner-KFX7NG6D.js");
241
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-XD5SV3MS.js");
240
+ const { runLocalAgentTurn } = await import("../runner-KMPBWRPM.js");
241
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-RAOYHWDI.js");
242
242
  const { createLocalOAuthState } = await import("../oauth-relay-5XPVRPYB.js");
243
243
  const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-FIL7EGPR.js");
244
- const { bindSpawnAgent } = await import("../spawn-VU3CSRI6.js");
245
- const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-ECPQTG3U.js");
244
+ const { bindSpawnAgent } = await import("../spawn-OSOWTMBG.js");
245
+ const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-T6UFTOJY.js");
246
246
  const { createLocalConversationWork } = await import("../conversation-work-VIOQ5ZF3.js");
247
- const { processConversationWork } = await import("../worker-RS3DXUDO.js");
247
+ const { processConversationWork } = await import("../worker-L35OG7VA.js");
248
248
  let agentRunner;
249
249
  const localConversationWork = createLocalConversationWork(async (message) => {
250
250
  if (!agentRunner) {
package/dist/cli/check.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  parseSkillFile
3
- } from "../chunk-ATUWN6Z3.js";
4
- import "../chunk-GJTIZQGJ.js";
3
+ } from "../chunk-HKFLRIBD.js";
4
+ import "../chunk-NRMAOGRS.js";
5
5
  import {
6
6
  parseInlinePluginManifest,
7
7
  parsePluginManifest
8
- } from "../chunk-7MHNIGHP.js";
8
+ } from "../chunk-64WF2GQ3.js";
9
9
  import "../chunk-CEMMLV5L.js";
10
10
  import "../chunk-N7TMSOZH.js";
11
11
  import "../chunk-DWPN6SCH.js";
@@ -14,9 +14,9 @@ import {
14
14
  JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
15
15
  JUNIOR_HEARTBEAT_ROUTE,
16
16
  LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
17
- } from "../chunk-OMQ2J6F6.js";
17
+ } from "../chunk-3CVEE6LA.js";
18
18
  import "../chunk-PEQXYSSE.js";
19
- import "../chunk-7GAP2XG4.js";
19
+ import "../chunk-YXSBZRP7.js";
20
20
 
21
21
  // src/cli/check.ts
22
22
  import fs from "fs/promises";