@sentry/junior 0.169.0 → 0.170.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 (64) hide show
  1. package/dist/{agent-hooks-YGKANST4.js → agent-hooks-IPUNCZPZ.js} +10 -10
  2. package/dist/api.js +27 -27
  3. package/dist/app.js +34 -34
  4. package/dist/catalog-runtime-E6XHWRPG.js +16 -0
  5. package/dist/chat/conversations/sql/store.d.ts +7 -0
  6. package/dist/chat/conversations/store.d.ts +14 -0
  7. package/dist/chat/slack/channel.d.ts +0 -13
  8. package/dist/chat/slack/ids.d.ts +7 -1
  9. package/dist/chat/slack/tool-support/channel-target.d.ts +6 -5
  10. package/dist/{chunk-7RIHHVFN.js → chunk-2XI6OLXA.js} +11 -11
  11. package/dist/{chunk-VRMPMOAT.js → chunk-3SFZJVX5.js} +2 -2
  12. package/dist/{chunk-URM4KBIU.js → chunk-47GJ7QRO.js} +1 -1
  13. package/dist/{chunk-EPXPE5Y5.js → chunk-4PSUCN4P.js} +2 -2
  14. package/dist/{chunk-FSH6HT5C.js → chunk-5EPG7PYS.js} +1 -1
  15. package/dist/{chunk-TMZOUVEP.js → chunk-6E4WQV75.js} +1 -1
  16. package/dist/{chunk-HWXQZCKV.js → chunk-6GOKKLWF.js} +7 -7
  17. package/dist/{chunk-MKEHLCSM.js → chunk-6W2UIZSA.js} +1 -1
  18. package/dist/{chunk-7MA4HV4W.js → chunk-6ZWRNC4D.js} +1 -1
  19. package/dist/{chunk-N7V2WPZV.js → chunk-74XMBKRI.js} +1 -1
  20. package/dist/{chunk-ZXCVYSTS.js → chunk-7TVGQZOH.js} +5 -5
  21. package/dist/{chunk-JNK444WM.js → chunk-A22DGDXT.js} +2 -2
  22. package/dist/{chunk-Q62IHFIH.js → chunk-B53NR3XY.js} +4 -4
  23. package/dist/{chunk-YTVYU5IF.js → chunk-BW644E3V.js} +1 -1
  24. package/dist/{chunk-VVQYG2GD.js → chunk-CA6JIB7S.js} +59 -96
  25. package/dist/{chunk-BDUENQD3.js → chunk-CGA4ERJ5.js} +1 -1
  26. package/dist/{chunk-MPLBAWGP.js → chunk-E7HKIHI5.js} +2 -2
  27. package/dist/{chunk-EEKFF74Y.js → chunk-F3I6YFB4.js} +6 -6
  28. package/dist/{chunk-5OUQCD2J.js → chunk-F4UM52UH.js} +1 -1
  29. package/dist/{chunk-5Z7QQYHV.js → chunk-FKOLWEMX.js} +7 -7
  30. package/dist/{chunk-ECBD46QI.js → chunk-HZALSYOW.js} +5 -5
  31. package/dist/{chunk-WF3WTELH.js → chunk-IF3OK4XO.js} +6 -6
  32. package/dist/{chunk-JJUZK6P2.js → chunk-IJTFG6AK.js} +5 -5
  33. package/dist/{chunk-FIMO3IDW.js → chunk-IX7VHMIJ.js} +32 -4
  34. package/dist/{chunk-S6JDUILF.js → chunk-KQCHIOME.js} +7 -7
  35. package/dist/{chunk-V7YE4WCP.js → chunk-M63DETLL.js} +7 -4
  36. package/dist/{chunk-BOZCSRAR.js → chunk-NESGW5HV.js} +1 -1
  37. package/dist/{chunk-WYNLAO2K.js → chunk-NFERKIUX.js} +4 -4
  38. package/dist/{chunk-23IKSW3E.js → chunk-NGL4XFT2.js} +1 -1
  39. package/dist/{chunk-OU2DMDUI.js → chunk-T4SEUU7A.js} +1 -1
  40. package/dist/{chunk-73XNLM4O.js → chunk-TX553KXA.js} +5 -5
  41. package/dist/{chunk-2VK3CYSL.js → chunk-UD4BNNM2.js} +1 -1
  42. package/dist/{chunk-65QX23BY.js → chunk-UHW5RAIB.js} +13 -13
  43. package/dist/{chunk-ELOZI777.js → chunk-YWX7D7BJ.js} +18 -18
  44. package/dist/cli/chat.js +33 -33
  45. package/dist/cli/check.js +8 -8
  46. package/dist/cli/plugins.js +14 -14
  47. package/dist/cli/snapshot-create.js +11 -11
  48. package/dist/cli/upgrade.js +9 -9
  49. package/dist/{db-CA3AJ2BU.js → db-WMSEGSFM.js} +8 -8
  50. package/dist/instrumentation.js +4 -4
  51. package/dist/nitro.js +2 -2
  52. package/dist/{oauth-callback-server-JVWWSDT5.js → oauth-callback-server-GBS47NTO.js} +24 -24
  53. package/dist/{runner-CMDQJDCH.js → runner-V2A2Z7K3.js} +14 -14
  54. package/dist/{sandbox-egress-signals-U3ZX7C5W.js → sandbox-egress-signals-DXOOBSBI.js} +3 -3
  55. package/dist/{skills-GYJ4MBNQ.js → skills-Z35YXLUG.js} +8 -8
  56. package/dist/spawn-AKPJBUS2.js +37 -0
  57. package/dist/{validation-55EBPZHH.js → validation-EQCK4DA5.js} +8 -8
  58. package/dist/version.js +1 -1
  59. package/dist/{work-N7CBTARL.js → work-XIANCABO.js} +20 -20
  60. package/dist/worker-YALLEN2Z.js +24 -0
  61. package/package.json +4 -4
  62. package/dist/catalog-runtime-BFDMFZV4.js +0 -16
  63. package/dist/spawn-KSP4DKK6.js +0 -37
  64. package/dist/worker-CGMUVQ2Q.js +0 -24
@@ -13,19 +13,19 @@ import {
13
13
  getPlugins,
14
14
  setPlugins,
15
15
  validatePlugins
16
- } from "./chunk-EEKFF74Y.js";
17
- import "./chunk-FIMO3IDW.js";
18
- import "./chunk-MKEHLCSM.js";
16
+ } from "./chunk-F3I6YFB4.js";
17
+ import "./chunk-IX7VHMIJ.js";
18
+ import "./chunk-6W2UIZSA.js";
19
19
  import "./chunk-BVREIWBD.js";
20
- import "./chunk-N7V2WPZV.js";
21
- import "./chunk-MPLBAWGP.js";
20
+ import "./chunk-74XMBKRI.js";
21
+ import "./chunk-E7HKIHI5.js";
22
22
  import "./chunk-VFUK3X5B.js";
23
- import "./chunk-23IKSW3E.js";
24
- import "./chunk-V7YE4WCP.js";
25
- import "./chunk-FSH6HT5C.js";
23
+ import "./chunk-NGL4XFT2.js";
24
+ import "./chunk-M63DETLL.js";
25
+ import "./chunk-5EPG7PYS.js";
26
26
  import "./chunk-6GWA276C.js";
27
- import "./chunk-YTVYU5IF.js";
28
- import "./chunk-5OUQCD2J.js";
27
+ import "./chunk-BW644E3V.js";
28
+ import "./chunk-F4UM52UH.js";
29
29
  import "./chunk-MLKGABMK.js";
30
30
  export {
31
31
  PluginHookDeniedError,
package/dist/api.js CHANGED
@@ -59,15 +59,15 @@ import {
59
59
  revokePersonalToken,
60
60
  viewerConversationMembership,
61
61
  webActorFromEmail
62
- } from "./chunk-65QX23BY.js";
62
+ } from "./chunk-UHW5RAIB.js";
63
63
  import {
64
64
  buildSentryConversationUrl,
65
65
  getWebAuthorization
66
- } from "./chunk-BOZCSRAR.js";
66
+ } from "./chunk-NESGW5HV.js";
67
67
  import {
68
68
  cancelHumanFacingPendingMessages,
69
69
  getConversation
70
- } from "./chunk-ZXCVYSTS.js";
70
+ } from "./chunk-7TVGQZOH.js";
71
71
  import {
72
72
  readTaskExecutionByConversationId,
73
73
  readTaskExecutionDays,
@@ -75,8 +75,8 @@ import {
75
75
  readTaskExecutionSummaries,
76
76
  readTaskExecutions,
77
77
  readTaskRuns
78
- } from "./chunk-7RIHHVFN.js";
79
- import "./chunk-73XNLM4O.js";
78
+ } from "./chunk-2XI6OLXA.js";
79
+ import "./chunk-TX553KXA.js";
80
80
  import {
81
81
  healthReportSchema,
82
82
  pluginOperationalReportFeedSchema,
@@ -102,22 +102,22 @@ import {
102
102
  listPublicScheduledTasksForTeams,
103
103
  readLiveAttachment,
104
104
  readStats
105
- } from "./chunk-JJUZK6P2.js";
105
+ } from "./chunk-IJTFG6AK.js";
106
106
  import {
107
107
  parseSlackThreadId
108
- } from "./chunk-EPXPE5Y5.js";
108
+ } from "./chunk-4PSUCN4P.js";
109
109
  import {
110
110
  agentTurnUsageSchema,
111
111
  fallbackShortTitle,
112
112
  hasAgentTurnUsage,
113
113
  renderJuniorNativeConversationEvent
114
- } from "./chunk-ECBD46QI.js";
114
+ } from "./chunk-HZALSYOW.js";
115
115
  import "./chunk-3Y47VMHV.js";
116
116
  import {
117
117
  create,
118
118
  getCachedSnapshot,
119
119
  hash
120
- } from "./chunk-Q62IHFIH.js";
120
+ } from "./chunk-B53NR3XY.js";
121
121
  import "./chunk-PDO5BLNM.js";
122
122
  import {
123
123
  WorkspaceValidationError,
@@ -137,7 +137,7 @@ import {
137
137
  updateWorkspace,
138
138
  withSlackRetries,
139
139
  workspaceRepoCheckoutPath
140
- } from "./chunk-EEKFF74Y.js";
140
+ } from "./chunk-F3I6YFB4.js";
141
141
  import {
142
142
  decodeStoredConversationEvent,
143
143
  getConversationStore,
@@ -145,37 +145,37 @@ import {
145
145
  getSqlExecutor,
146
146
  locationFromRow,
147
147
  parseSessionSource
148
- } from "./chunk-FIMO3IDW.js";
148
+ } from "./chunk-IX7VHMIJ.js";
149
149
  import {
150
150
  juniorConversationEvents,
151
151
  juniorConversations,
152
152
  juniorIdentities,
153
153
  juniorUsers
154
- } from "./chunk-MKEHLCSM.js";
154
+ } from "./chunk-6W2UIZSA.js";
155
155
  import "./chunk-BVREIWBD.js";
156
- import "./chunk-N7V2WPZV.js";
157
- import "./chunk-MPLBAWGP.js";
156
+ import "./chunk-74XMBKRI.js";
157
+ import "./chunk-E7HKIHI5.js";
158
158
  import {
159
159
  juniorDestinations
160
160
  } from "./chunk-VFUK3X5B.js";
161
- import "./chunk-23IKSW3E.js";
162
- import "./chunk-TMZOUVEP.js";
163
- import "./chunk-JNK444WM.js";
164
- import "./chunk-BDUENQD3.js";
161
+ import "./chunk-NGL4XFT2.js";
162
+ import "./chunk-6E4WQV75.js";
163
+ import "./chunk-A22DGDXT.js";
164
+ import "./chunk-CGA4ERJ5.js";
165
165
  import {
166
166
  parseSlackChannelId,
167
167
  parseSlackMessageTs,
168
168
  parseSlackTeamId
169
- } from "./chunk-V7YE4WCP.js";
169
+ } from "./chunk-M63DETLL.js";
170
170
  import {
171
171
  logException,
172
172
  logWarn
173
- } from "./chunk-FSH6HT5C.js";
173
+ } from "./chunk-5EPG7PYS.js";
174
174
  import "./chunk-6GWA276C.js";
175
175
  import "./chunk-OOUNJNMR.js";
176
176
  import "./chunk-H4HBKISO.js";
177
- import "./chunk-YTVYU5IF.js";
178
- import "./chunk-5OUQCD2J.js";
177
+ import "./chunk-BW644E3V.js";
178
+ import "./chunk-F4UM52UH.js";
179
179
  import "./chunk-MLKGABMK.js";
180
180
 
181
181
  // src/api.ts
@@ -4076,7 +4076,7 @@ async function readPeoplePluginReports(args) {
4076
4076
  source: "plugins"
4077
4077
  });
4078
4078
  }
4079
- const { getPluginProfileReports } = await import("./agent-hooks-YGKANST4.js");
4079
+ const { getPluginProfileReports } = await import("./agent-hooks-IPUNCZPZ.js");
4080
4080
  return pluginOperationalReportFeedSchema.parse({
4081
4081
  generatedAt: new Date(nowMs).toISOString(),
4082
4082
  reports: await getPluginProfileReports({
@@ -4795,7 +4795,7 @@ function readDescriptionText(home) {
4795
4795
  }
4796
4796
  }
4797
4797
  async function readSkillReports() {
4798
- const { discoverSkills } = await import("./skills-GYJ4MBNQ.js");
4798
+ const { discoverSkills } = await import("./skills-Z35YXLUG.js");
4799
4799
  const skills = await discoverSkills();
4800
4800
  return skillReportsSchema.parse(
4801
4801
  skills.map((skill) => ({
@@ -4805,7 +4805,7 @@ async function readSkillReports() {
4805
4805
  );
4806
4806
  }
4807
4807
  async function readPlugins() {
4808
- const { pluginCatalogRuntime } = await import("./catalog-runtime-BFDMFZV4.js");
4808
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-E6XHWRPG.js");
4809
4809
  return pluginsSchema.parse(
4810
4810
  pluginCatalogRuntime.getProviders().map((plugin) => ({
4811
4811
  configKeys: plugin.manifest.configKeys ?? [],
@@ -4818,7 +4818,7 @@ async function readPlugins() {
4818
4818
  async function readRuntimeInfoReport() {
4819
4819
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
4820
4820
  import("./discovery-GUFTFBTL.js"),
4821
- import("./catalog-runtime-BFDMFZV4.js"),
4821
+ import("./catalog-runtime-E6XHWRPG.js"),
4822
4822
  readPlugins(),
4823
4823
  readSkillReports()
4824
4824
  ]);
@@ -4834,7 +4834,7 @@ async function readRuntimeInfoReport() {
4834
4834
  }
4835
4835
  async function readPluginOperationalReportFeed() {
4836
4836
  const nowMs = Date.now();
4837
- const { getPluginOperationalReports } = await import("./agent-hooks-YGKANST4.js");
4837
+ const { getPluginOperationalReports } = await import("./agent-hooks-IPUNCZPZ.js");
4838
4838
  return pluginOperationalReportFeedSchema.parse({
4839
4839
  source: "plugins",
4840
4840
  generatedAt: new Date(nowMs).toISOString(),
package/dist/app.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  processConversationWork
3
- } from "./chunk-WYNLAO2K.js";
3
+ } from "./chunk-NFERKIUX.js";
4
4
  import {
5
5
  bindSpawnAgent
6
- } from "./chunk-2VK3CYSL.js";
6
+ } from "./chunk-UD4BNNM2.js";
7
7
  import {
8
8
  createAgentInvocationWorker,
9
9
  enqueueAgentInvocation,
10
10
  listPendingAgentInvocationMailboxAppends,
11
11
  routeAgentInvocationWork
12
- } from "./chunk-WF3WTELH.js";
12
+ } from "./chunk-IF3OK4XO.js";
13
13
  import {
14
14
  GET as GET2,
15
15
  GET2 as GET3,
@@ -36,12 +36,12 @@ import {
36
36
  startSlackProcessingReaction,
37
37
  stripLeadingBotMention,
38
38
  wakePausedTurn
39
- } from "./chunk-ELOZI777.js";
39
+ } from "./chunk-YWX7D7BJ.js";
40
40
  import "./chunk-FA6POGLH.js";
41
41
  import {
42
42
  getTurnRequestDeadline,
43
43
  runWithTurnRequestDeadline
44
- } from "./chunk-OU2DMDUI.js";
44
+ } from "./chunk-T4SEUU7A.js";
45
45
  import {
46
46
  GET,
47
47
  apiTurnIdForMessage,
@@ -58,8 +58,8 @@ import {
58
58
  resolveSlackConversationContext,
59
59
  routeApiTurnWork,
60
60
  webActorFromEmail
61
- } from "./chunk-65QX23BY.js";
62
- import "./chunk-BOZCSRAR.js";
61
+ } from "./chunk-UHW5RAIB.js";
62
+ import "./chunk-NESGW5HV.js";
63
63
  import {
64
64
  CONVERSATION_WORK_STALE_ENQUEUE_MS,
65
65
  appendAndEnqueueInboundMessage,
@@ -70,7 +70,7 @@ import {
70
70
  isInvalidConversationRecordError,
71
71
  listActiveConversationIds,
72
72
  removeActiveConversation
73
- } from "./chunk-ZXCVYSTS.js";
73
+ } from "./chunk-7TVGQZOH.js";
74
74
  import {
75
75
  buildDeliveredTurnStatePatch,
76
76
  claimDispatchMailboxAppend,
@@ -101,7 +101,7 @@ import {
101
101
  requireTurnFailureEventId,
102
102
  resolveTurnSessionRouting,
103
103
  scheduleSessionCompletedPluginTasks
104
- } from "./chunk-7RIHHVFN.js";
104
+ } from "./chunk-2XI6OLXA.js";
105
105
  import {
106
106
  ConversationTurnLifecycleService,
107
107
  coerceThreadConversationState,
@@ -111,7 +111,7 @@ import {
111
111
  persistThreadRuntimeState,
112
112
  persistThreadState,
113
113
  persistThreadStateById
114
- } from "./chunk-73XNLM4O.js";
114
+ } from "./chunk-TX553KXA.js";
115
115
  import "./chunk-UTL3MHPC.js";
116
116
  import {
117
117
  getVercelConversationWorkQueue,
@@ -130,7 +130,7 @@ import {
130
130
  import {
131
131
  validatePluginEgressCredentialHooks,
132
132
  validatePluginRegistrations
133
- } from "./chunk-URM4KBIU.js";
133
+ } from "./chunk-47GJ7QRO.js";
134
134
  import {
135
135
  defineJuniorPlugins,
136
136
  pluginCatalogConfigFromEnv,
@@ -165,11 +165,11 @@ import {
165
165
  shouldEmitDevAgentTrace,
166
166
  shouldPropagateSandboxEgressTrace,
167
167
  unpublishedArtifactHeaders
168
- } from "./chunk-VVQYG2GD.js";
168
+ } from "./chunk-CA6JIB7S.js";
169
169
  import {
170
170
  AuthorizationFlowDisabledError,
171
171
  PluginCredentialFailureError
172
- } from "./chunk-5Z7QQYHV.js";
172
+ } from "./chunk-FKOLWEMX.js";
173
173
  import "./chunk-DIB4GX3G.js";
174
174
  import {
175
175
  createAgentRunner,
@@ -177,7 +177,7 @@ import {
177
177
  deleteMcpAuthSessionsForUserProvider,
178
178
  deleteMcpServerSessionId,
179
179
  deleteMcpStoredOAuthCredentials
180
- } from "./chunk-S6JDUILF.js";
180
+ } from "./chunk-KQCHIOME.js";
181
181
  import {
182
182
  RetryableDeliveryError
183
183
  } from "./chunk-RF6J3DIO.js";
@@ -185,8 +185,8 @@ import {
185
185
  formatProviderLabel,
186
186
  postSlackMessage,
187
187
  startOAuthFlow
188
- } from "./chunk-HWXQZCKV.js";
189
- import "./chunk-7MA4HV4W.js";
188
+ } from "./chunk-6GOKKLWF.js";
189
+ import "./chunk-6ZWRNC4D.js";
190
190
  import {
191
191
  getExperimentalFeatures,
192
192
  isExperimentalFeatureEnabled,
@@ -199,10 +199,10 @@ import {
199
199
  logScheduledTaskRunSkipped,
200
200
  requestAttachmentDeletion,
201
201
  scheduledTaskRunAttributes
202
- } from "./chunk-JJUZK6P2.js";
202
+ } from "./chunk-IJTFG6AK.js";
203
203
  import {
204
204
  parseSlackThreadId
205
- } from "./chunk-EPXPE5Y5.js";
205
+ } from "./chunk-4PSUCN4P.js";
206
206
  import {
207
207
  ConversationTurnBoundaryError,
208
208
  CooperativeTurnYieldError,
@@ -254,12 +254,12 @@ import {
254
254
  trimTrailingAssistantMessages,
255
255
  turnHasReply,
256
256
  upsertConversationMessage
257
- } from "./chunk-ECBD46QI.js";
257
+ } from "./chunk-HZALSYOW.js";
258
258
  import "./chunk-3Y47VMHV.js";
259
259
  import {
260
260
  getSandboxResourceConfig,
261
261
  setSandboxResourceConfig
262
- } from "./chunk-Q62IHFIH.js";
262
+ } from "./chunk-B53NR3XY.js";
263
263
  import "./chunk-PDO5BLNM.js";
264
264
  import "./chunk-UIE3R5XU.js";
265
265
  import {
@@ -287,7 +287,7 @@ import {
287
287
  verifyEventTaskCredentialSubject,
288
288
  verifyScheduledTaskCredentialSubject,
289
289
  verifySlackDirectCredentialSubject
290
- } from "./chunk-EEKFF74Y.js";
290
+ } from "./chunk-F3I6YFB4.js";
291
291
  import {
292
292
  contextProvenance,
293
293
  createSlackDestination,
@@ -300,13 +300,13 @@ import {
300
300
  requireSlackDestination,
301
301
  withConversationEventLock,
302
302
  withConversationMutationLock
303
- } from "./chunk-FIMO3IDW.js";
303
+ } from "./chunk-IX7VHMIJ.js";
304
304
  import {
305
305
  juniorAgentBindings,
306
306
  juniorAgentInvocations,
307
307
  juniorConversationEvents,
308
308
  juniorConversations
309
- } from "./chunk-MKEHLCSM.js";
309
+ } from "./chunk-6W2UIZSA.js";
310
310
  import {
311
311
  sleep
312
312
  } from "./chunk-BVREIWBD.js";
@@ -314,7 +314,7 @@ import {
314
314
  acquireActiveLock,
315
315
  getStateAdapter,
316
316
  withActiveLock
317
- } from "./chunk-N7V2WPZV.js";
317
+ } from "./chunk-74XMBKRI.js";
318
318
  import {
319
319
  STANDARD_MODEL_PROFILE,
320
320
  botConfig,
@@ -332,19 +332,19 @@ import {
332
332
  modelIdForProfile,
333
333
  setSlackReactionConfig,
334
334
  standardModelId
335
- } from "./chunk-MPLBAWGP.js";
335
+ } from "./chunk-E7HKIHI5.js";
336
336
  import {
337
337
  juniorDestinations
338
338
  } from "./chunk-VFUK3X5B.js";
339
- import "./chunk-23IKSW3E.js";
340
- import "./chunk-VRMPMOAT.js";
339
+ import "./chunk-NGL4XFT2.js";
340
+ import "./chunk-3SFZJVX5.js";
341
341
  import {
342
342
  pluginCatalogRuntime
343
- } from "./chunk-TMZOUVEP.js";
344
- import "./chunk-JNK444WM.js";
343
+ } from "./chunk-6E4WQV75.js";
344
+ import "./chunk-A22DGDXT.js";
345
345
  import {
346
346
  credentialContextForActor
347
- } from "./chunk-BDUENQD3.js";
347
+ } from "./chunk-CGA4ERJ5.js";
348
348
  import {
349
349
  createActor,
350
350
  createSlackActor,
@@ -353,7 +353,7 @@ import {
353
353
  parseActorUserId,
354
354
  parseSlackChannelId,
355
355
  parseSlackMessageTs
356
- } from "./chunk-V7YE4WCP.js";
356
+ } from "./chunk-M63DETLL.js";
357
357
  import {
358
358
  buildTurnFailureResponse,
359
359
  createChatSdkLogger,
@@ -373,7 +373,7 @@ import {
373
373
  withContext,
374
374
  withLogContext,
375
375
  withSpan
376
- } from "./chunk-FSH6HT5C.js";
376
+ } from "./chunk-5EPG7PYS.js";
377
377
  import {
378
378
  continueTrace
379
379
  } from "./chunk-6GWA276C.js";
@@ -381,10 +381,10 @@ import "./chunk-OOUNJNMR.js";
381
381
  import "./chunk-H4HBKISO.js";
382
382
  import {
383
383
  JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
384
- } from "./chunk-YTVYU5IF.js";
384
+ } from "./chunk-BW644E3V.js";
385
385
  import {
386
386
  JUNIOR_VERSION
387
- } from "./chunk-5OUQCD2J.js";
387
+ } from "./chunk-F4UM52UH.js";
388
388
  import "./chunk-MLKGABMK.js";
389
389
 
390
390
  // src/app.ts
@@ -0,0 +1,16 @@
1
+ import {
2
+ pluginCatalogRuntime
3
+ } from "./chunk-6E4WQV75.js";
4
+ import "./chunk-A22DGDXT.js";
5
+ import "./chunk-CGA4ERJ5.js";
6
+ import "./chunk-M63DETLL.js";
7
+ import "./chunk-5EPG7PYS.js";
8
+ import "./chunk-6GWA276C.js";
9
+ import "./chunk-OOUNJNMR.js";
10
+ import "./chunk-H4HBKISO.js";
11
+ import "./chunk-BW644E3V.js";
12
+ import "./chunk-F4UM52UH.js";
13
+ import "./chunk-MLKGABMK.js";
14
+ export {
15
+ pluginCatalogRuntime
16
+ };
@@ -59,6 +59,13 @@ export declare class SqlStore implements ConversationStore {
59
59
  providerDestinationId: string;
60
60
  providerTenantId?: string;
61
61
  }): Promise<ConversationPrivacy | undefined>;
62
+ findSlackDestinationByName(args: {
63
+ channelName: string;
64
+ teamId: string;
65
+ }): Promise<{
66
+ channelId: string;
67
+ channelName?: string;
68
+ } | undefined>;
62
69
  /** Serialize all durable mutations for one conversation inside a SQL transaction. */
63
70
  private withConversationMutation;
64
71
  private readConversationRow;
@@ -85,6 +85,20 @@ export interface ConversationStore {
85
85
  providerDestinationId: string;
86
86
  providerTenantId?: string;
87
87
  }): Promise<ConversationPrivacy | undefined>;
88
+ /**
89
+ * Resolve one Slack channel id from a known destination display name.
90
+ *
91
+ * Matches only destinations Junior already stored for this workspace. Exact
92
+ * name match after stripping a leading `#`. Returns undefined when missing
93
+ * or ambiguous. Does not scan Slack.
94
+ */
95
+ findSlackDestinationByName(args: {
96
+ channelName: string;
97
+ teamId: string;
98
+ }): Promise<{
99
+ channelId: string;
100
+ channelName?: string;
101
+ } | undefined>;
88
102
  recordActivity(args: {
89
103
  activityAtMs?: number;
90
104
  channelName?: string;
@@ -63,16 +63,3 @@ export interface SlackConversationInfo {
63
63
  export declare function getConversationInfo(channelId: SlackChannelId): Promise<SlackConversationInfo>;
64
64
  /** Join a public channel so the bot can read history and threads there. */
65
65
  export declare function joinPublicChannel(channelId: SlackChannelId): Promise<void>;
66
- export interface SlackPublicChannelSummary {
67
- id: SlackChannelId;
68
- name?: string;
69
- isMember?: boolean;
70
- isArchived?: boolean;
71
- }
72
- /** List public channels the bot can see for name resolution. */
73
- export declare function listPublicChannels(input?: {
74
- limit?: number;
75
- maxPages?: number;
76
- }): Promise<SlackPublicChannelSummary[]>;
77
- /** Resolve a public channel name (with or without leading #) to a channel id. */
78
- export declare function resolvePublicChannelByName(channelName: string): Promise<SlackPublicChannelSummary | undefined>;
@@ -7,7 +7,13 @@ export type SlackTeamId = z.output<typeof slackTeamIdSchema>;
7
7
  export type SlackUserId = z.output<typeof slackUserIdSchema>;
8
8
  /** Parse an exact Slack channel/conversation ID from untrusted input. */
9
9
  export declare function parseSlackChannelId(value: unknown): SlackChannelId | undefined;
10
- /** Parse a Slack channel ID from native IDs or Junior Slack reference strings. */
10
+ /**
11
+ * Parse a channel id from common tool/model reference forms.
12
+ *
13
+ * Accepts exact ids (`C123`), Slack mentions (`<#C123>` / `<#C123|name>`),
14
+ * and Junior slack references (`slack:C123`, `slack:C123:ts`). Plain channel
15
+ * names are not ids and are rejected here.
16
+ */
11
17
  export declare function parseSlackChannelReferenceId(value: unknown): SlackChannelId | undefined;
12
18
  /** Parse a Slack workspace/team ID from untrusted metadata. */
13
19
  export declare function parseSlackTeamId(value: unknown): SlackTeamId | undefined;
@@ -1,21 +1,21 @@
1
- import { type SlackChannelId } from "@/chat/slack/ids";
1
+ import { type SlackChannelId, type SlackTeamId } from "@/chat/slack/ids";
2
2
  import { z } from "zod";
3
3
  export interface ResolvedSlackChannelTarget {
4
4
  channelId: SlackChannelId;
5
5
  channelName?: string;
6
- resolvedFromName: boolean;
7
6
  }
8
- /** Model-facing Slack channel ID or public channel name parameter. */
7
+ /** Model-facing Slack channel id or known channel name parameter. */
9
8
  export declare const slackChannelRefParam: z.ZodString;
10
9
  /**
11
10
  * Resolve a channel reference from a tool param value.
12
11
  *
13
- * Exact channel ids are parsed directly. Anything else is treated as a public
14
- * channel name (with or without a leading `#`) and resolved via Slack.
12
+ * Prefer id-bearing forms. Plain names may match one known destination already
13
+ * stored for this workspace. Do not scan Slack's public channel list.
15
14
  */
16
15
  export declare function resolveSlackChannelRef(input: {
17
16
  field: string;
18
17
  value: string;
18
+ teamId: SlackTeamId;
19
19
  }): Promise<ResolvedSlackChannelTarget>;
20
20
  /**
21
21
  * Resolve an optional channel reference, falling back to the active channel.
@@ -24,4 +24,5 @@ export declare function resolveOptionalSlackChannelRef(input: {
24
24
  field?: string;
25
25
  value?: string;
26
26
  defaultChannelId?: SlackChannelId;
27
+ teamId: SlackTeamId;
27
28
  }): Promise<ResolvedSlackChannelTarget>;
@@ -2,7 +2,7 @@ import {
2
2
  coerceThreadConversationState,
3
3
  getPersistedThreadState,
4
4
  persistThreadStateById
5
- } from "./chunk-73XNLM4O.js";
5
+ } from "./chunk-TX553KXA.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-ECBD46QI.js";
25
+ } from "./chunk-HZALSYOW.js";
26
26
  import {
27
27
  JUNIOR_THREAD_STATE_TTL_MS
28
28
  } from "./chunk-3Y47VMHV.js";
@@ -33,35 +33,35 @@ import {
33
33
  createPluginModel,
34
34
  createPluginState,
35
35
  getPlugins
36
- } from "./chunk-EEKFF74Y.js";
36
+ } from "./chunk-F3I6YFB4.js";
37
37
  import {
38
38
  getConversationStore,
39
39
  getDb,
40
40
  sameActorIdentity
41
- } from "./chunk-FIMO3IDW.js";
41
+ } from "./chunk-IX7VHMIJ.js";
42
42
  import {
43
43
  juniorConversations,
44
44
  juniorTaskExecutions
45
- } from "./chunk-MKEHLCSM.js";
45
+ } from "./chunk-6W2UIZSA.js";
46
46
  import {
47
47
  getStateAdapter
48
- } from "./chunk-N7V2WPZV.js";
48
+ } from "./chunk-74XMBKRI.js";
49
49
  import {
50
50
  ProviderError,
51
51
  findProviderError,
52
52
  getProviderErrorAttributes,
53
53
  getProviderErrorUserMessage
54
- } from "./chunk-MPLBAWGP.js";
54
+ } from "./chunk-E7HKIHI5.js";
55
55
  import {
56
56
  credentialSubjectSchema
57
- } from "./chunk-BDUENQD3.js";
57
+ } from "./chunk-CGA4ERJ5.js";
58
58
  import {
59
59
  parseSlackMessageTs
60
- } from "./chunk-V7YE4WCP.js";
60
+ } from "./chunk-M63DETLL.js";
61
61
  import {
62
62
  buildTurnFailureResponse,
63
63
  logWarn
64
- } from "./chunk-FSH6HT5C.js";
64
+ } from "./chunk-5EPG7PYS.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-CA3AJ2BU.js")).getConversationStore();
90
+ const conversationStore = args.conversationStore ?? (await import("./db-WMSEGSFM.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-TMZOUVEP.js";
3
+ } from "./chunk-6E4WQV75.js";
4
4
  import {
5
5
  logWarn
6
- } from "./chunk-FSH6HT5C.js";
6
+ } from "./chunk-5EPG7PYS.js";
7
7
  import {
8
8
  skillRoots
9
9
  } from "./chunk-H4HBKISO.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-TMZOUVEP.js";
3
+ } from "./chunk-6E4WQV75.js";
4
4
 
5
5
  // src/chat/plugins/validation.ts
6
6
  import { isDeepStrictEqual } from "util";
@@ -2,10 +2,10 @@ import {
2
2
  parseSlackChannelId,
3
3
  parseSlackMessageTs,
4
4
  parseSlackTeamId
5
- } from "./chunk-V7YE4WCP.js";
5
+ } from "./chunk-M63DETLL.js";
6
6
  import {
7
7
  toOptionalString
8
- } from "./chunk-FSH6HT5C.js";
8
+ } from "./chunk-5EPG7PYS.js";
9
9
 
10
10
  // src/chat/slack/context.ts
11
11
  import { z } from "zod";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6GWA276C.js";
10
10
  import {
11
11
  getDeploymentTelemetryAttributes
12
- } from "./chunk-YTVYU5IF.js";
12
+ } from "./chunk-BW644E3V.js";
13
13
 
14
14
  // src/chat/logging.ts
15
15
  import path from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createPluginCatalogRuntime
3
- } from "./chunk-JNK444WM.js";
3
+ } from "./chunk-A22DGDXT.js";
4
4
 
5
5
  // src/chat/plugins/catalog-runtime.ts
6
6
  var pluginCatalogRuntime = createPluginCatalogRuntime();