@sentry/junior 0.192.0 → 0.193.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 (77) hide show
  1. package/dist/{agent-hooks-3JY76L5X.js → agent-hooks-DWY3MZZ7.js} +11 -11
  2. package/dist/api.js +24 -24
  3. package/dist/app.js +49 -82
  4. package/dist/{catalog-runtime-5JVLWXRY.js → catalog-runtime-NAD44W5K.js} +4 -4
  5. package/dist/chat/agent/prompt.d.ts +1 -1
  6. package/dist/chat/agent-dispatch/types.d.ts +2 -1
  7. package/dist/chat/agent-dispatch/validation.d.ts +1 -1
  8. package/dist/chat/agent-invocations/types.d.ts +24 -28
  9. package/dist/chat/event-tasks/tool-support.d.ts +10 -1
  10. package/dist/chat/plugins/agent-hooks.d.ts +2 -2
  11. package/dist/chat/prompt.d.ts +4 -5
  12. package/dist/chat/services/turn-session-routing.d.ts +4 -3
  13. package/dist/chat/slack/tool-support/context.d.ts +3 -6
  14. package/dist/chat/source.d.ts +4 -6
  15. package/dist/chat/tools/delete-event-task.d.ts +1 -1
  16. package/dist/chat/tools/types.d.ts +10 -9
  17. package/dist/chat/tools/update-event-task.d.ts +1 -1
  18. package/dist/{chunk-AKR6W7VV.js → chunk-2CYWEVOP.js} +4 -4
  19. package/dist/{chunk-PYVGXGKC.js → chunk-3YZ2Q6AW.js} +2 -2
  20. package/dist/{chunk-47JFLZSF.js → chunk-42N6CDWF.js} +4 -4
  21. package/dist/{chunk-ITTEDZGY.js → chunk-4UA5C7AM.js} +32 -25
  22. package/dist/{chunk-3O2NXVGB.js → chunk-5E5SLAVD.js} +21 -21
  23. package/dist/{chunk-G4E5WIRL.js → chunk-5LEVZYXF.js} +4 -4
  24. package/dist/{chunk-IBO4YFFZ.js → chunk-5S6AQFNG.js} +1 -1
  25. package/dist/{chunk-4CCQZHD3.js → chunk-AZVDODSP.js} +11 -11
  26. package/dist/{chunk-EIYOABL4.js → chunk-BFP3ZKG6.js} +12 -8
  27. package/dist/{chunk-SSR6YBWW.js → chunk-COCVPDWX.js} +11 -7
  28. package/dist/{chunk-YE6DVM43.js → chunk-D4XQZOHB.js} +8 -8
  29. package/dist/{chunk-OBN7UEQJ.js → chunk-D5YQPCEG.js} +2 -2
  30. package/dist/{chunk-BGLMT6KP.js → chunk-DVU734PI.js} +3 -3
  31. package/dist/{chunk-FGYWKKTJ.js → chunk-DXFUYLHX.js} +1 -1
  32. package/dist/{chunk-BUTAWPUV.js → chunk-FQ5HFSFR.js} +37 -31
  33. package/dist/{chunk-YRWGJ5OO.js → chunk-GTXQHZ2O.js} +5 -5
  34. package/dist/{chunk-5V4BAUCH.js → chunk-GUKGU6R7.js} +1 -1
  35. package/dist/{chunk-MB2CTEPD.js → chunk-GUMBIDDL.js} +3 -3
  36. package/dist/{chunk-4WIA45WD.js → chunk-HMBTX5RK.js} +1 -1
  37. package/dist/{chunk-3UJSII43.js → chunk-IBXXTO3J.js} +3 -3
  38. package/dist/{chunk-LRTEMMCZ.js → chunk-IOUUS6H4.js} +1 -1
  39. package/dist/{chunk-SZ2O3CGS.js → chunk-IQCL5JGL.js} +1 -1
  40. package/dist/{chunk-7XO7PTZE.js → chunk-K47OVEO4.js} +1 -1
  41. package/dist/{chunk-6LX6KV5C.js → chunk-KWXZMHJS.js} +3 -3
  42. package/dist/{chunk-KR5F3QSP.js → chunk-LG7Q4OW4.js} +8 -8
  43. package/dist/{chunk-PXP2M32M.js → chunk-LXRTHE43.js} +6 -7
  44. package/dist/{chunk-RWBZZMW6.js → chunk-N6Q2PNSI.js} +3 -3
  45. package/dist/{chunk-EYNUOZCN.js → chunk-OICYQPKP.js} +1 -1
  46. package/dist/{chunk-4B4DQGOM.js → chunk-PYBFVK6K.js} +73 -64
  47. package/dist/{chunk-ARSUYYQG.js → chunk-QDU5MW2R.js} +1 -1
  48. package/dist/{chunk-6FCKJDKS.js → chunk-QWY4KI2V.js} +1 -1
  49. package/dist/{chunk-3ADPXQBL.js → chunk-QY2IU47O.js} +1 -1
  50. package/dist/{chunk-Z4DNJI5F.js → chunk-S5HS6WRH.js} +5 -5
  51. package/dist/{chunk-4AFSQJD6.js → chunk-THFNL3TL.js} +3 -4
  52. package/dist/{chunk-H5Q2T5VC.js → chunk-THYNA2QN.js} +1 -1
  53. package/dist/{chunk-PXUBRZBU.js → chunk-WH5VV2RW.js} +1 -1
  54. package/dist/{chunk-4Z7B5WVV.js → chunk-WJJDQLVL.js} +2 -2
  55. package/dist/{chunk-VF3EDS7P.js → chunk-ZFPEPWOO.js} +6 -6
  56. package/dist/cli/chat.js +33 -33
  57. package/dist/cli/check.js +5 -5
  58. package/dist/cli/plugins.js +12 -12
  59. package/dist/cli/snapshot-create.js +9 -9
  60. package/dist/cli/upgrade.js +6 -6
  61. package/dist/db/schema/agent-invocations.d.ts +16 -0
  62. package/dist/db/schema.d.ts +16 -0
  63. package/dist/{db-LRM6AP66.js → db-H5MDRQEY.js} +6 -6
  64. package/dist/instrumentation.js +3 -3
  65. package/dist/nitro.js +6 -6
  66. package/dist/{oauth-callback-server-BKCDVYVH.js → oauth-callback-server-IOU3NUHT.js} +29 -29
  67. package/dist/{runner-RUXGS3E6.js → runner-FZ5ZHLFG.js} +21 -21
  68. package/dist/{skills-DXP2RCJF.js → skills-AR3WD6BX.js} +5 -5
  69. package/dist/spawn-ZU6JABR7.js +42 -0
  70. package/dist/task-runner-EEGGG2PM.js +36 -0
  71. package/dist/{validation-F4KYLIF2.js → validation-VYE7TQY7.js} +5 -5
  72. package/dist/version.js +1 -1
  73. package/dist/{work-UUNMNSML.js → work-CTQFWYKE.js} +21 -21
  74. package/dist/{worker-PMIJ5NLD.js → worker-6WQU3IT5.js} +10 -10
  75. package/package.json +4 -4
  76. package/dist/spawn-HH7GH7XT.js +0 -42
  77. package/dist/task-runner-H5I7R3LJ.js +0 -36
@@ -13,26 +13,26 @@ import {
13
13
  getPlugins,
14
14
  setPlugins,
15
15
  validatePlugins
16
- } from "./chunk-BUTAWPUV.js";
16
+ } from "./chunk-FQ5HFSFR.js";
17
17
  import "./chunk-3Y47VMHV.js";
18
- import "./chunk-AKR6W7VV.js";
19
- import "./chunk-IBO4YFFZ.js";
20
- import "./chunk-6LX6KV5C.js";
21
- import "./chunk-LRTEMMCZ.js";
18
+ import "./chunk-2CYWEVOP.js";
19
+ import "./chunk-5S6AQFNG.js";
20
+ import "./chunk-KWXZMHJS.js";
21
+ import "./chunk-IOUUS6H4.js";
22
22
  import "./chunk-GFBR4S3Q.js";
23
23
  import "./chunk-VFUK3X5B.js";
24
- import "./chunk-4Z7B5WVV.js";
24
+ import "./chunk-WJJDQLVL.js";
25
25
  import "./chunk-D4YV5TDV.js";
26
- import "./chunk-EYNUOZCN.js";
27
- import "./chunk-FGYWKKTJ.js";
28
- import "./chunk-6FCKJDKS.js";
26
+ import "./chunk-OICYQPKP.js";
27
+ import "./chunk-DXFUYLHX.js";
28
+ import "./chunk-QWY4KI2V.js";
29
29
  import "./chunk-CEMMLV5L.js";
30
30
  import "./chunk-N7TMSOZH.js";
31
31
  import "./chunk-DWPN6SCH.js";
32
32
  import "./chunk-TXKUKMVO.js";
33
- import "./chunk-3ADPXQBL.js";
33
+ import "./chunk-QY2IU47O.js";
34
34
  import "./chunk-PEQXYSSE.js";
35
- import "./chunk-ARSUYYQG.js";
35
+ import "./chunk-QDU5MW2R.js";
36
36
  export {
37
37
  PluginHookDeniedError,
38
38
  applyPluginFormatMarkdown,
package/dist/api.js CHANGED
@@ -72,12 +72,12 @@ import {
72
72
  resolveSlackConversationContextFromThreadId,
73
73
  viewerConversationMembership,
74
74
  webActorFromEmail
75
- } from "./chunk-KR5F3QSP.js";
75
+ } from "./chunk-LG7Q4OW4.js";
76
76
  import {
77
77
  buildSentryConversationUrl,
78
78
  buildSentryEventUrl,
79
79
  getWebAuthorization
80
- } from "./chunk-H5Q2T5VC.js";
80
+ } from "./chunk-THYNA2QN.js";
81
81
  import {
82
82
  readTaskExecutionByConversationId,
83
83
  readTaskExecutionDays,
@@ -87,7 +87,7 @@ import {
87
87
  readTaskExecutionSummaries,
88
88
  readTaskExecutions,
89
89
  readTaskRuns
90
- } from "./chunk-MB2CTEPD.js";
90
+ } from "./chunk-GUMBIDDL.js";
91
91
  import {
92
92
  healthReportSchema,
93
93
  pluginOperationalReportFeedSchema,
@@ -110,24 +110,24 @@ import {
110
110
  readScheduledTask,
111
111
  readStats,
112
112
  saveScheduledTask
113
- } from "./chunk-EIYOABL4.js";
113
+ } from "./chunk-BFP3ZKG6.js";
114
114
  import {
115
115
  parseSlackThreadId
116
- } from "./chunk-4WIA45WD.js";
116
+ } from "./chunk-HMBTX5RK.js";
117
117
  import {
118
118
  cancelHumanFacingPendingMessages,
119
119
  getConversation
120
- } from "./chunk-G4E5WIRL.js";
120
+ } from "./chunk-5LEVZYXF.js";
121
121
  import "./chunk-DA2KGZZI.js";
122
122
  import {
123
123
  agentTurnUsageSchema,
124
124
  fallbackShortTitle,
125
125
  hasAgentTurnUsage,
126
126
  renderJuniorNativeConversationEvent
127
- } from "./chunk-OBN7UEQJ.js";
127
+ } from "./chunk-D5YQPCEG.js";
128
128
  import {
129
129
  getCachedSnapshot
130
- } from "./chunk-3UJSII43.js";
130
+ } from "./chunk-IBXXTO3J.js";
131
131
  import "./chunk-PDO5BLNM.js";
132
132
  import {
133
133
  getVercelConversationWorkQueue
@@ -153,7 +153,7 @@ import {
153
153
  updateWorkspace,
154
154
  withSlackRetries,
155
155
  workspaceRepoCheckoutPath
156
- } from "./chunk-BUTAWPUV.js";
156
+ } from "./chunk-FQ5HFSFR.js";
157
157
  import "./chunk-3Y47VMHV.js";
158
158
  import {
159
159
  getConversationStore,
@@ -162,7 +162,7 @@ import {
162
162
  locationFromRow,
163
163
  parseSessionSource,
164
164
  resolveRootConversationId
165
- } from "./chunk-AKR6W7VV.js";
165
+ } from "./chunk-2CYWEVOP.js";
166
166
  import {
167
167
  conversationReadColumns,
168
168
  juniorApiTokens,
@@ -174,23 +174,23 @@ import {
174
174
  juniorIdentities,
175
175
  juniorSchedulerTasks,
176
176
  juniorUsers
177
- } from "./chunk-IBO4YFFZ.js";
177
+ } from "./chunk-5S6AQFNG.js";
178
178
  import {
179
179
  create,
180
180
  hash
181
- } from "./chunk-6LX6KV5C.js";
182
- import "./chunk-LRTEMMCZ.js";
181
+ } from "./chunk-KWXZMHJS.js";
182
+ import "./chunk-IOUUS6H4.js";
183
183
  import {
184
184
  decodeStoredConversationEvent
185
185
  } from "./chunk-GFBR4S3Q.js";
186
186
  import {
187
187
  juniorDestinations
188
188
  } from "./chunk-VFUK3X5B.js";
189
- import "./chunk-4Z7B5WVV.js";
189
+ import "./chunk-WJJDQLVL.js";
190
190
  import "./chunk-D4YV5TDV.js";
191
- import "./chunk-EYNUOZCN.js";
192
- import "./chunk-FGYWKKTJ.js";
193
- import "./chunk-6FCKJDKS.js";
191
+ import "./chunk-OICYQPKP.js";
192
+ import "./chunk-DXFUYLHX.js";
193
+ import "./chunk-QWY4KI2V.js";
194
194
  import "./chunk-CEMMLV5L.js";
195
195
  import {
196
196
  parseSlackChannelId,
@@ -202,9 +202,9 @@ import "./chunk-TXKUKMVO.js";
202
202
  import {
203
203
  logException,
204
204
  logWarn
205
- } from "./chunk-3ADPXQBL.js";
205
+ } from "./chunk-QY2IU47O.js";
206
206
  import "./chunk-PEQXYSSE.js";
207
- import "./chunk-ARSUYYQG.js";
207
+ import "./chunk-QDU5MW2R.js";
208
208
 
209
209
  // src/api.ts
210
210
  import { Hono as Hono9 } from "hono";
@@ -4952,7 +4952,7 @@ async function readPeoplePluginReports(args) {
4952
4952
  source: "plugins"
4953
4953
  });
4954
4954
  }
4955
- const { getPluginProfileReports } = await import("./agent-hooks-3JY76L5X.js");
4955
+ const { getPluginProfileReports } = await import("./agent-hooks-DWY3MZZ7.js");
4956
4956
  return pluginOperationalReportFeedSchema.parse({
4957
4957
  generatedAt: new Date(nowMs).toISOString(),
4958
4958
  reports: await getPluginProfileReports({
@@ -5784,7 +5784,7 @@ function readDescriptionText(home) {
5784
5784
  }
5785
5785
  }
5786
5786
  async function readSkillReports() {
5787
- const { discoverSkills } = await import("./skills-DXP2RCJF.js");
5787
+ const { discoverSkills } = await import("./skills-AR3WD6BX.js");
5788
5788
  const skills = await discoverSkills();
5789
5789
  return skillReportsSchema.parse(
5790
5790
  skills.map((skill) => ({
@@ -5794,7 +5794,7 @@ async function readSkillReports() {
5794
5794
  );
5795
5795
  }
5796
5796
  async function readPlugins() {
5797
- const { pluginCatalogRuntime } = await import("./catalog-runtime-5JVLWXRY.js");
5797
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-NAD44W5K.js");
5798
5798
  return pluginsSchema.parse(
5799
5799
  pluginCatalogRuntime.getProviders().map((plugin) => ({
5800
5800
  configKeys: plugin.manifest.configKeys ?? [],
@@ -5807,7 +5807,7 @@ async function readPlugins() {
5807
5807
  async function readRuntimeInfoReport() {
5808
5808
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
5809
5809
  import("./discovery-DWVDM7UK.js"),
5810
- import("./catalog-runtime-5JVLWXRY.js"),
5810
+ import("./catalog-runtime-NAD44W5K.js"),
5811
5811
  readPlugins(),
5812
5812
  readSkillReports()
5813
5813
  ]);
@@ -5823,7 +5823,7 @@ async function readRuntimeInfoReport() {
5823
5823
  }
5824
5824
  async function readPluginOperationalReportFeed() {
5825
5825
  const nowMs = Date.now();
5826
- const { getPluginOperationalReports } = await import("./agent-hooks-3JY76L5X.js");
5826
+ const { getPluginOperationalReports } = await import("./agent-hooks-DWY3MZZ7.js");
5827
5827
  return pluginOperationalReportFeedSchema.parse({
5828
5828
  source: "plugins",
5829
5829
  generatedAt: new Date(nowMs).toISOString(),
package/dist/app.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  processConversationWork
3
- } from "./chunk-47JFLZSF.js";
3
+ } from "./chunk-42N6CDWF.js";
4
4
  import {
5
5
  bindSpawnAgent
6
- } from "./chunk-4AFSQJD6.js";
6
+ } from "./chunk-THFNL3TL.js";
7
7
  import {
8
8
  createAgentInvocationWorker,
9
9
  enqueueAgentInvocation,
10
10
  listPendingAgentInvocationMailboxAppends,
11
11
  resolveAgentInvocationId
12
- } from "./chunk-4CCQZHD3.js";
12
+ } from "./chunk-AZVDODSP.js";
13
13
  import {
14
14
  GET as GET2,
15
15
  GET2 as GET3,
@@ -37,12 +37,12 @@ import {
37
37
  startProcessingReaction,
38
38
  stripLeadingBotMention,
39
39
  wakePausedTurn
40
- } from "./chunk-3O2NXVGB.js";
40
+ } from "./chunk-5E5SLAVD.js";
41
41
  import "./chunk-FA6POGLH.js";
42
42
  import {
43
43
  AgentRunError,
44
44
  executeTurn
45
- } from "./chunk-BGLMT6KP.js";
45
+ } from "./chunk-DVU734PI.js";
46
46
  import {
47
47
  buildDeliveredTurnStatePatch,
48
48
  completeAuthPauseTurn,
@@ -53,7 +53,7 @@ import {
53
53
  getTurnUserSlackMessageTs,
54
54
  persistAuthPauseTurnState,
55
55
  requireTurnFailureEventId
56
- } from "./chunk-YRWGJ5OO.js";
56
+ } from "./chunk-GTXQHZ2O.js";
57
57
  import {
58
58
  claimDispatchMailboxAppend,
59
59
  confirmDispatchMailboxAppend,
@@ -73,11 +73,11 @@ import {
73
73
  processPluginTask,
74
74
  resolveTurnSessionRouting,
75
75
  scheduleSessionCompletedPluginTasks
76
- } from "./chunk-ITTEDZGY.js";
76
+ } from "./chunk-4UA5C7AM.js";
77
77
  import {
78
78
  ConversationTurnLifecycleService,
79
79
  getTurnLifecycle
80
- } from "./chunk-PXUBRZBU.js";
80
+ } from "./chunk-WH5VV2RW.js";
81
81
  import {
82
82
  coerceThreadConversationState,
83
83
  getLocationConfigurationService,
@@ -86,7 +86,7 @@ import {
86
86
  persistThreadRuntimeState,
87
87
  persistThreadState,
88
88
  persistThreadStateById
89
- } from "./chunk-Z4DNJI5F.js";
89
+ } from "./chunk-S5HS6WRH.js";
90
90
  import {
91
91
  GET,
92
92
  appendAndEnqueueWebMessage,
@@ -101,24 +101,24 @@ import {
101
101
  resolveSlackChannelTypeFromMessage,
102
102
  resolveSlackConversationContext,
103
103
  webActorFromEmail
104
- } from "./chunk-KR5F3QSP.js";
104
+ } from "./chunk-LG7Q4OW4.js";
105
105
  import {
106
106
  createWebAuthorization,
107
107
  deleteWebAuthorization
108
- } from "./chunk-H5Q2T5VC.js";
108
+ } from "./chunk-THYNA2QN.js";
109
109
  import {
110
110
  recordTaskExecution
111
- } from "./chunk-MB2CTEPD.js";
111
+ } from "./chunk-GUMBIDDL.js";
112
112
  import "./chunk-RC745GGZ.js";
113
113
  import {
114
114
  createVercelPluginTaskCallback,
115
115
  queueCallback,
116
116
  registerVercelPluginTaskDevConsumer
117
- } from "./chunk-RWBZZMW6.js";
117
+ } from "./chunk-N6Q2PNSI.js";
118
118
  import {
119
119
  validatePluginEgressCredentialHooks,
120
120
  validatePluginRegistrations
121
- } from "./chunk-5V4BAUCH.js";
121
+ } from "./chunk-GUKGU6R7.js";
122
122
  import {
123
123
  defineJuniorPlugins,
124
124
  pluginCatalogConfigFromEnv,
@@ -158,11 +158,11 @@ import {
158
158
  shouldEmitDevAgentTrace,
159
159
  shouldPropagateSandboxEgressTrace,
160
160
  unpublishedArtifactHeaders
161
- } from "./chunk-4B4DQGOM.js";
161
+ } from "./chunk-PYBFVK6K.js";
162
162
  import {
163
163
  AuthorizationFlowDisabledError,
164
164
  PluginCredentialFailureError
165
- } from "./chunk-PXP2M32M.js";
165
+ } from "./chunk-LXRTHE43.js";
166
166
  import "./chunk-6Y5B5PEX.js";
167
167
  import "./chunk-DIB4GX3G.js";
168
168
  import {
@@ -170,14 +170,14 @@ import {
170
170
  deleteMcpAuthSessionsForUserProvider,
171
171
  deleteMcpServerSessionId,
172
172
  deleteMcpStoredOAuthCredentials
173
- } from "./chunk-YE6DVM43.js";
173
+ } from "./chunk-D4XQZOHB.js";
174
174
  import {
175
175
  RetryableDeliveryError,
176
176
  createAgentRunner,
177
177
  formatProviderLabel,
178
178
  postSlackMessage,
179
179
  startOAuthFlow
180
- } from "./chunk-SSR6YBWW.js";
180
+ } from "./chunk-COCVPDWX.js";
181
181
  import {
182
182
  ConversationTurnBoundaryError,
183
183
  CooperativeTurnYieldError,
@@ -193,7 +193,7 @@ import {
193
193
  markTurnCompleted,
194
194
  markTurnFailed,
195
195
  startActiveTurn
196
- } from "./chunk-7XO7PTZE.js";
196
+ } from "./chunk-K47OVEO4.js";
197
197
  import {
198
198
  abandonTurnRecord,
199
199
  appendThreadContextMessages,
@@ -229,7 +229,7 @@ import {
229
229
  trimTrailingAssistantMessages,
230
230
  turnHasReply,
231
231
  upsertConversationMessage
232
- } from "./chunk-VF3EDS7P.js";
232
+ } from "./chunk-ZFPEPWOO.js";
233
233
  import {
234
234
  getExperimentalFeatures,
235
235
  isExperimentalFeatureEnabled,
@@ -249,10 +249,10 @@ import {
249
249
  scheduledRunId,
250
250
  scheduledRunSchema,
251
251
  withScheduledTaskLock
252
- } from "./chunk-EIYOABL4.js";
252
+ } from "./chunk-BFP3ZKG6.js";
253
253
  import {
254
254
  parseSlackThreadId
255
- } from "./chunk-4WIA45WD.js";
255
+ } from "./chunk-HMBTX5RK.js";
256
256
  import {
257
257
  CONVERSATION_WORK_STALE_ENQUEUE_MS,
258
258
  appendAndEnqueueInboundMessage,
@@ -267,16 +267,16 @@ import {
267
267
  removeActiveConversation,
268
268
  requestConversationWork,
269
269
  stopConversationWork
270
- } from "./chunk-G4E5WIRL.js";
270
+ } from "./chunk-5LEVZYXF.js";
271
271
  import {
272
272
  buildDeterministicAssistantMessageId,
273
273
  buildDeterministicTurnId
274
274
  } from "./chunk-DA2KGZZI.js";
275
- import "./chunk-OBN7UEQJ.js";
275
+ import "./chunk-D5YQPCEG.js";
276
276
  import {
277
277
  getSandboxResourceConfig,
278
278
  setSandboxResourceConfig
279
- } from "./chunk-3UJSII43.js";
279
+ } from "./chunk-IBXXTO3J.js";
280
280
  import "./chunk-PDO5BLNM.js";
281
281
  import "./chunk-UIE3R5XU.js";
282
282
  import {
@@ -285,7 +285,7 @@ import {
285
285
  } from "./chunk-X6GDDWQH.js";
286
286
  import {
287
287
  getTurnRequestDeadline
288
- } from "./chunk-SZ2O3CGS.js";
288
+ } from "./chunk-IQCL5JGL.js";
289
289
  import {
290
290
  getVercelConversationWorkQueue,
291
291
  resolveConversationWorkQueueTopic,
@@ -321,7 +321,7 @@ import {
321
321
  verifyEventTaskCredentialSubject,
322
322
  verifyScheduledTaskCredentialSubject,
323
323
  verifySlackDirectCredentialSubject
324
- } from "./chunk-BUTAWPUV.js";
324
+ } from "./chunk-FQ5HFSFR.js";
325
325
  import "./chunk-3Y47VMHV.js";
326
326
  import {
327
327
  createSlackDestination,
@@ -333,7 +333,7 @@ import {
333
333
  requireSlackDestination,
334
334
  withConversationEventLock,
335
335
  withConversationMutationLock
336
- } from "./chunk-AKR6W7VV.js";
336
+ } from "./chunk-2CYWEVOP.js";
337
337
  import {
338
338
  juniorAgentBindings,
339
339
  juniorAgentInvocations,
@@ -341,13 +341,13 @@ import {
341
341
  juniorConversations,
342
342
  juniorSchedulerRuns,
343
343
  juniorSchedulerTasks
344
- } from "./chunk-IBO4YFFZ.js";
345
- import "./chunk-6LX6KV5C.js";
344
+ } from "./chunk-5S6AQFNG.js";
345
+ import "./chunk-KWXZMHJS.js";
346
346
  import {
347
347
  acquireActiveLock,
348
348
  getStateAdapter,
349
349
  withActiveLock
350
- } from "./chunk-LRTEMMCZ.js";
350
+ } from "./chunk-IOUUS6H4.js";
351
351
  import {
352
352
  instructionProvenanceFor
353
353
  } from "./chunk-GFBR4S3Q.js";
@@ -369,17 +369,17 @@ import {
369
369
  isProviderRetryError,
370
370
  setProfiles,
371
371
  setSlackReactionConfig
372
- } from "./chunk-4Z7B5WVV.js";
372
+ } from "./chunk-WJJDQLVL.js";
373
373
  import {
374
374
  defaultModelId,
375
375
  modelIdForProfile
376
376
  } from "./chunk-D4YV5TDV.js";
377
- import "./chunk-EYNUOZCN.js";
378
- import "./chunk-PYVGXGKC.js";
377
+ import "./chunk-OICYQPKP.js";
378
+ import "./chunk-3YZ2Q6AW.js";
379
379
  import {
380
380
  pluginCatalogRuntime
381
- } from "./chunk-FGYWKKTJ.js";
382
- import "./chunk-6FCKJDKS.js";
381
+ } from "./chunk-DXFUYLHX.js";
382
+ import "./chunk-QWY4KI2V.js";
383
383
  import {
384
384
  credentialContextForActor
385
385
  } from "./chunk-CEMMLV5L.js";
@@ -415,13 +415,13 @@ import {
415
415
  withContext,
416
416
  withLogContext,
417
417
  withSpan
418
- } from "./chunk-3ADPXQBL.js";
418
+ } from "./chunk-QY2IU47O.js";
419
419
  import {
420
420
  continueTrace
421
421
  } from "./chunk-PEQXYSSE.js";
422
422
  import {
423
423
  JUNIOR_VERSION
424
- } from "./chunk-ARSUYYQG.js";
424
+ } from "./chunk-QDU5MW2R.js";
425
425
 
426
426
  // src/app.ts
427
427
  import { createRequire } from "module";
@@ -551,11 +551,6 @@ async function recoverConversationWork(args) {
551
551
  return result;
552
552
  }
553
553
 
554
- // src/chat/scheduled-tasks/heartbeat.ts
555
- import {
556
- createSlackSource
557
- } from "@sentry/junior-plugin-api";
558
-
559
554
  // src/chat/agent-dispatch/work.ts
560
555
  import { z } from "zod";
561
556
  var agentDispatchMailboxMetadataSchema = z.object({
@@ -935,23 +930,6 @@ function dispatchOptionsErrorMessage(issues) {
935
930
  if (hasIssueUnderPath(issues, ["destination", "channelId"])) {
936
931
  return "Dispatch destination channelId must be a Slack channel id";
937
932
  }
938
- if (issues.some(
939
- (issue) => issue.code === "unrecognized_keys" && issue.path[0] === "source"
940
- )) {
941
- return "Dispatch source must not include unknown fields";
942
- }
943
- if (hasIssueAtPath(issues, ["source"])) {
944
- return "Dispatch Source kind is required";
945
- }
946
- if (hasIssueUnderPath(issues, ["source", "teamId"])) {
947
- return "Dispatch source teamId must be a Slack team id";
948
- }
949
- if (hasIssueUnderPath(issues, ["source", "channelId"])) {
950
- return "Dispatch source channelId must be a Slack channel id";
951
- }
952
- if (hasIssueUnderPath(issues, ["source", "conversationId"])) {
953
- return "Dispatch source conversationId must be a local conversation id";
954
- }
955
933
  if (hasIssueUnderPath(issues, ["idempotencyKey"])) {
956
934
  const tooLong = issues.some(
957
935
  (issue) => issue.path[0] === "idempotencyKey" && issue.code === "too_big"
@@ -1030,7 +1008,7 @@ var MAX_DISPATCHES_PER_HEARTBEAT = 25;
1030
1008
  function bindDispatchCredentialSubject(options, plugin) {
1031
1009
  const { credentialSubject, ...baseOptions } = options;
1032
1010
  if (!credentialSubject) {
1033
- return baseOptions;
1011
+ return { ...baseOptions, source: { kind: "plugin_dispatch" } };
1034
1012
  }
1035
1013
  if ("binding" in credentialSubject) {
1036
1014
  throw new Error("Dispatch credentialSubject binding is runtime-owned");
@@ -1048,7 +1026,8 @@ function bindDispatchCredentialSubject(options, plugin) {
1048
1026
  }
1049
1027
  return {
1050
1028
  ...baseOptions,
1051
- credentialSubject: boundSubject
1029
+ credentialSubject: boundSubject,
1030
+ source: { kind: "plugin_dispatch" }
1052
1031
  };
1053
1032
  }
1054
1033
  async function dispatch(args) {
@@ -1119,7 +1098,8 @@ async function dispatchEventTask(args) {
1119
1098
  }
1120
1099
  const options = {
1121
1100
  ...unboundOptions,
1122
- ...boundSubject ? { credentialSubject: boundSubject } : void 0
1101
+ ...boundSubject ? { credentialSubject: boundSubject } : void 0,
1102
+ source: { kind: "event_task" }
1123
1103
  };
1124
1104
  return await dispatch({
1125
1105
  conversationWorkQueue: args.conversationWorkQueue,
@@ -1141,7 +1121,8 @@ async function dispatchScheduledTask(args) {
1141
1121
  }
1142
1122
  const options = {
1143
1123
  ...unboundOptions,
1144
- ...boundSubject ? { credentialSubject: boundSubject } : void 0
1124
+ ...boundSubject ? { credentialSubject: boundSubject } : void 0,
1125
+ source: { kind: "scheduled_task" }
1145
1126
  };
1146
1127
  return await dispatch({
1147
1128
  conversationWorkQueue: args.conversationWorkQueue,
@@ -1575,13 +1556,6 @@ function replyAttribution(task) {
1575
1556
  detail: `Every ${recurrence.interval} ${frequency.unit}s`
1576
1557
  };
1577
1558
  }
1578
- function dispatchSource(task) {
1579
- return createSlackSource({
1580
- teamId: task.destination.teamId,
1581
- channelId: task.destination.channelId,
1582
- visibility: task.conversationAccess.visibility
1583
- });
1584
- }
1585
1559
  function shouldSkipRun(task, run) {
1586
1560
  if (task.status === "deleted") {
1587
1561
  return `Scheduled task ${task.id} was deleted before the run started.`;
@@ -1835,8 +1809,7 @@ async function runScheduledTaskHeartbeat(args) {
1835
1809
  destinationVisibility: task.conversationAccess.visibility,
1836
1810
  input: buildDispatchInput(task),
1837
1811
  metadata,
1838
- replyAttribution: replyAttribution(task),
1839
- source: dispatchSource(task)
1812
+ replyAttribution: replyAttribution(task)
1840
1813
  }
1841
1814
  });
1842
1815
  } catch (error) {
@@ -6191,7 +6164,7 @@ function createJuniorRuntimeServices(overrides = {}) {
6191
6164
  }
6192
6165
 
6193
6166
  // src/chat/providers/slack/turn.ts
6194
- import { createSlackSource as createSlackSource2 } from "@sentry/junior-plugin-api";
6167
+ import { createSlackSource } from "@sentry/junior-plugin-api";
6195
6168
 
6196
6169
  // src/chat/slack/message/identity.ts
6197
6170
  function getMessageTimestamp(message) {
@@ -6490,7 +6463,7 @@ function createSlackTurn(deps) {
6490
6463
  const threadTs = getThreadTs(threadId) ?? assistantThreadContext?.threadTs;
6491
6464
  const messageTs = getMessageTs(message);
6492
6465
  const teamId = destination.teamId;
6493
- const source = options.execution?.source ?? createSlackSource2({
6466
+ const source = options.execution?.source ?? createSlackSource({
6494
6467
  channelId: channelId ?? destination.channelId,
6495
6468
  messageTs,
6496
6469
  teamId,
@@ -9506,7 +9479,6 @@ async function publicArtifactGET(args) {
9506
9479
  // src/chat/event-tasks/ingest.ts
9507
9480
  import { createHash as createHash2 } from "crypto";
9508
9481
  import {
9509
- createSlackSource as createSlackSource3,
9510
9482
  RESOURCE_EVENT_SUMMARY_MAX_LENGTH,
9511
9483
  RESOURCE_EVENT_TEXT_MAX_LENGTH,
9512
9484
  resourceEventSchema
@@ -9569,12 +9541,7 @@ async function ingestEventTasks(input, options) {
9569
9541
  destinationVisibility: task.destinationVisibility,
9570
9542
  input: eventInput(task, event),
9571
9543
  metadata: { eventTaskId: task.id },
9572
- replyAttribution: replyAttribution2(task),
9573
- source: createSlackSource3({
9574
- teamId: task.destination.teamId,
9575
- channelId: task.destination.channelId,
9576
- visibility: task.destinationVisibility
9577
- })
9544
+ replyAttribution: replyAttribution2(task)
9578
9545
  }
9579
9546
  });
9580
9547
  if (dispatch2.status === "created") {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-FGYWKKTJ.js";
4
- import "./chunk-6FCKJDKS.js";
3
+ } from "./chunk-DXFUYLHX.js";
4
+ import "./chunk-QWY4KI2V.js";
5
5
  import "./chunk-CEMMLV5L.js";
6
6
  import "./chunk-N7TMSOZH.js";
7
7
  import "./chunk-DWPN6SCH.js";
8
8
  import "./chunk-TXKUKMVO.js";
9
- import "./chunk-3ADPXQBL.js";
9
+ import "./chunk-QY2IU47O.js";
10
10
  import "./chunk-PEQXYSSE.js";
11
- import "./chunk-ARSUYYQG.js";
11
+ import "./chunk-QDU5MW2R.js";
12
12
  export {
13
13
  pluginCatalogRuntime
14
14
  };
@@ -73,7 +73,7 @@ export declare function assemblePrompt(args: {
73
73
  explicitSkill: Skill | null;
74
74
  priorPiMessages?: PiMessage[];
75
75
  resumedFromSessionRecord: boolean;
76
- run: Pick<AgentRun, "source" | "destination" | "dispatch" | "slackConversation">;
76
+ run: Pick<AgentRun, "source" | "destination" | "dispatch" | "slackConversation" | "location" | "delivery">;
77
77
  spanContext: LogContext;
78
78
  turnId: string;
79
79
  toolGuidance: Array<{
@@ -1,4 +1,4 @@
1
- import type { DispatchOptions, DestinationVisibility, ReplyAttribution, Source, SlackDestination } from "@sentry/junior-plugin-api";
1
+ import type { DispatchOptions, DestinationVisibility, EventTaskSource, PluginDispatchSource, ReplyAttribution, ScheduledTaskSource, Source, SlackDestination } from "@sentry/junior-plugin-api";
2
2
  import type { CredentialContext, CredentialSubject, CredentialSystemActor } from "@/chat/credentials/context";
3
3
  import type { AgentDispatch } from "@/chat/agent/types";
4
4
  import type { AgentTurnSurface } from "@/chat/task-execution/checkpoint";
@@ -9,6 +9,7 @@ export type SlackDispatchOptions = Omit<DispatchOptions, "destination"> & {
9
9
  };
10
10
  export interface BoundDispatchOptions extends Omit<SlackDispatchOptions, "credentialSubject"> {
11
11
  credentialSubject?: CredentialSubject;
12
+ source: EventTaskSource | PluginDispatchSource | ScheduledTaskSource;
12
13
  }
13
14
  export interface DispatchRecord {
14
15
  actor: CredentialSystemActor;
@@ -2,4 +2,4 @@ import type { BoundDispatchOptions, SlackDispatchOptions } from "./types";
2
2
  /** Validate plugin-provided dispatch options before core persists them. */
3
3
  export declare function validateDispatchOptions(options: unknown): asserts options is SlackDispatchOptions;
4
4
  /** Verify runtime-owned access requirements for delegated dispatch credentials. */
5
- export declare function verifyDispatchCredentialSubjectAccess(options: BoundDispatchOptions, plugin: string): Promise<void>;
5
+ export declare function verifyDispatchCredentialSubjectAccess(options: Pick<BoundDispatchOptions, "credentialSubject" | "destination">, plugin: string): Promise<void>;