@sentry/junior 0.152.0 → 0.153.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 (55) hide show
  1. package/dist/{agent-hooks-U66Q3X2P.js → agent-hooks-7BWOB7SN.js} +10 -10
  2. package/dist/api/conversations/list.d.ts +11 -5
  3. package/dist/api.js +34 -28
  4. package/dist/app.js +32 -32
  5. package/dist/{catalog-runtime-CVCR7SND.js → catalog-runtime-CGUDNL3D.js} +5 -5
  6. package/dist/{chunk-NF733C66.js → chunk-2J4VCHRX.js} +6 -6
  7. package/dist/{chunk-I4LR7MS2.js → chunk-2NS3ACHB.js} +9 -9
  8. package/dist/{chunk-SFYDSI34.js → chunk-37LMRT7G.js} +1 -1
  9. package/dist/{chunk-KC5XZBRB.js → chunk-4TWLKHOM.js} +4 -4
  10. package/dist/{chunk-SDMVFTH4.js → chunk-5DMPHA4V.js} +18 -18
  11. package/dist/{chunk-3PCKG4BT.js → chunk-5QBK3QHJ.js} +4 -4
  12. package/dist/{chunk-UFKSILED.js → chunk-5TXDKTET.js} +5 -5
  13. package/dist/{chunk-3UJ3QYRV.js → chunk-5XBRH3N7.js} +10 -10
  14. package/dist/{chunk-AYPU5T5L.js → chunk-A5SROS6H.js} +4 -4
  15. package/dist/{chunk-ELAVLP7Z.js → chunk-COC65LIW.js} +1 -1
  16. package/dist/{chunk-WZN4RQ64.js → chunk-EPOA52SD.js} +1 -1
  17. package/dist/{chunk-X4RM4TBW.js → chunk-ET54Q4TD.js} +1 -1
  18. package/dist/{chunk-QKPIW2CY.js → chunk-FLEY546A.js} +6 -6
  19. package/dist/{chunk-7TZM33YX.js → chunk-HMU2QP5M.js} +1 -1
  20. package/dist/{chunk-Z5WLTGME.js → chunk-HOK7MEWG.js} +1 -1
  21. package/dist/{chunk-VD6CRYCT.js → chunk-HYEAR6HL.js} +1 -1
  22. package/dist/{chunk-67VR4BJK.js → chunk-ISEROVYZ.js} +5 -5
  23. package/dist/{chunk-KTYC3GDO.js → chunk-JAJVUQV7.js} +2 -2
  24. package/dist/{chunk-M6PWM3OK.js → chunk-JJAMURMR.js} +1 -1
  25. package/dist/{chunk-CLX3T7Q3.js → chunk-JY2HJYJT.js} +1 -1
  26. package/dist/{chunk-ETXLHT3S.js → chunk-K4LK6KYO.js} +4 -4
  27. package/dist/{chunk-N2472SQK.js → chunk-O2YXWWPM.js} +8 -8
  28. package/dist/{chunk-OEECXAGT.js → chunk-PGJBNO3I.js} +2 -2
  29. package/dist/{chunk-KW2MGCW5.js → chunk-PMJAY6JS.js} +5 -5
  30. package/dist/{chunk-LETPYIDF.js → chunk-RKW5QGGN.js} +1 -1
  31. package/dist/{chunk-RCBAXKMB.js → chunk-TIV3PX5H.js} +1 -1
  32. package/dist/{chunk-5LDOQV7Y.js → chunk-URFV5RWN.js} +18 -18
  33. package/dist/{chunk-732P2RBQ.js → chunk-VXWTGOLW.js} +1 -1
  34. package/dist/{chunk-TSQMITMQ.js → chunk-WTKAALLV.js} +6 -6
  35. package/dist/{chunk-XTLF7C4I.js → chunk-XAYXN4EG.js} +3 -3
  36. package/dist/{chunk-X6JP6AMX.js → chunk-XQPKMLRI.js} +1 -1
  37. package/dist/{chunk-KC47ZY6Q.js → chunk-YECBSG77.js} +2 -2
  38. package/dist/cli/chat.js +30 -30
  39. package/dist/cli/check.js +6 -6
  40. package/dist/cli/plugins.js +13 -13
  41. package/dist/cli/snapshot-create.js +9 -9
  42. package/dist/cli/upgrade.js +7 -7
  43. package/dist/{db-HQAZQASY.js → db-QNQM5YRR.js} +7 -7
  44. package/dist/instrumentation.js +4 -4
  45. package/dist/nitro.js +2 -2
  46. package/dist/{oauth-callback-server-OJONZ7T3.js → oauth-callback-server-ERQPIR27.js} +23 -23
  47. package/dist/{runner-BIJAVQDX.js → runner-BX46SQIE.js} +13 -13
  48. package/dist/{skills-SIPNY4AT.js → skills-JL44EIRX.js} +6 -6
  49. package/dist/spawn-W6FO32T4.js +38 -0
  50. package/dist/{validation-KRPOY5RQ.js → validation-UU2AIJIY.js} +6 -6
  51. package/dist/version.js +1 -1
  52. package/dist/{work-KS3JOEI2.js → work-SS7RU5CH.js} +17 -17
  53. package/dist/{worker-CZ5KNZUI.js → worker-5P2E7LVI.js} +11 -11
  54. package/package.json +4 -4
  55. package/dist/spawn-ABDIBQT6.js +0 -38
@@ -11,21 +11,21 @@ import {
11
11
  getPlugins,
12
12
  setPlugins,
13
13
  validatePlugins
14
- } from "./chunk-NF733C66.js";
15
- import "./chunk-KTYC3GDO.js";
16
- import "./chunk-XTLF7C4I.js";
17
- import "./chunk-X4RM4TBW.js";
14
+ } from "./chunk-2J4VCHRX.js";
15
+ import "./chunk-JAJVUQV7.js";
16
+ import "./chunk-XAYXN4EG.js";
17
+ import "./chunk-ET54Q4TD.js";
18
18
  import "./chunk-EM225ITJ.js";
19
- import "./chunk-X6JP6AMX.js";
20
- import "./chunk-OEECXAGT.js";
19
+ import "./chunk-XQPKMLRI.js";
20
+ import "./chunk-PGJBNO3I.js";
21
21
  import "./chunk-VFUK3X5B.js";
22
- import "./chunk-732P2RBQ.js";
22
+ import "./chunk-VXWTGOLW.js";
23
23
  import "./chunk-HZF5P5UN.js";
24
24
  import "./chunk-F3B2YJ76.js";
25
- import "./chunk-7TZM33YX.js";
25
+ import "./chunk-HMU2QP5M.js";
26
26
  import "./chunk-6GWA276C.js";
27
- import "./chunk-M6PWM3OK.js";
28
- import "./chunk-ELAVLP7Z.js";
27
+ import "./chunk-JJAMURMR.js";
28
+ import "./chunk-COC65LIW.js";
29
29
  import "./chunk-MLKGABMK.js";
30
30
  export {
31
31
  PluginHookDeniedError,
@@ -2,7 +2,13 @@ import type { User } from "@sentry/junior-plugin-api";
2
2
  import type { Conversation } from "@/chat/conversations/store";
3
3
  import type { JuniorDatabase } from "@/db/db";
4
4
  import type { ConversationFeed } from "../schema/conversation";
5
- declare function conversationRows(db: JuniorDatabase, limit: number, actorEmail?: string): Promise<{
5
+ declare function conversationRows(db: JuniorDatabase, limit: number, filter?: {
6
+ kind: "viewer";
7
+ userId: string;
8
+ } | {
9
+ kind: "actorEmail";
10
+ email: string;
11
+ }): Promise<{
6
12
  conversation: {
7
13
  conversationId: string;
8
14
  schemaVersion: number;
@@ -110,8 +116,8 @@ export declare function readConversationRecordFromSql(conversationId: string): P
110
116
  rootConversationId: string | null;
111
117
  } | undefined>;
112
118
  /**
113
- * Build a bounded dashboard feed, applying a normalized actor-email filter
114
- * before the limit when one is provided.
119
+ * Build a bounded dashboard feed. Prefer the viewer user when present; otherwise
120
+ * keep only roots linked to actorEmail before applying the limit.
115
121
  */
116
122
  export declare function readConversationFeedFromSql(options?: {
117
123
  actorEmail?: string;
@@ -119,8 +125,8 @@ export declare function readConversationFeedFromSql(options?: {
119
125
  viewer?: User;
120
126
  }): Promise<ConversationFeed>;
121
127
  /**
122
- * Load a bounded feed with an optional normalized actor-email presentation
123
- * filter. This filter is not an authorization boundary.
128
+ * Load a bounded feed with an optional viewer-primary linked-user filter.
129
+ * This filter is not an authorization boundary.
124
130
  */
125
131
  export declare function readConversationFeed(options?: {
126
132
  actorEmail?: string;
package/dist/api.js CHANGED
@@ -42,14 +42,14 @@ import {
42
42
  readHealthReport,
43
43
  resolveSlackConversationContextFromThreadId,
44
44
  webActorFromEmail
45
- } from "./chunk-3UJ3QYRV.js";
45
+ } from "./chunk-5XBRH3N7.js";
46
46
  import {
47
47
  buildSentryConversationUrl,
48
48
  getWebAuthorization
49
- } from "./chunk-SFYDSI34.js";
49
+ } from "./chunk-37LMRT7G.js";
50
50
  import {
51
51
  getConversation
52
- } from "./chunk-AYPU5T5L.js";
52
+ } from "./chunk-A5SROS6H.js";
53
53
  import {
54
54
  readTaskExecutionByConversationId,
55
55
  readTaskExecutionDays,
@@ -57,8 +57,8 @@ import {
57
57
  readTaskExecutionSummaries,
58
58
  readTaskExecutions,
59
59
  readTaskRuns
60
- } from "./chunk-I4LR7MS2.js";
61
- import "./chunk-67VR4BJK.js";
60
+ } from "./chunk-2NS3ACHB.js";
61
+ import "./chunk-ISEROVYZ.js";
62
62
  import {
63
63
  healthReportSchema,
64
64
  pluginOperationalReportFeedSchema,
@@ -82,16 +82,16 @@ import {
82
82
  listPublicEventTasksForTeams,
83
83
  listPublicScheduledTasksForTeams,
84
84
  readStats
85
- } from "./chunk-KW2MGCW5.js";
85
+ } from "./chunk-PMJAY6JS.js";
86
86
  import {
87
87
  parseSlackThreadId
88
- } from "./chunk-RCBAXKMB.js";
88
+ } from "./chunk-TIV3PX5H.js";
89
89
  import {
90
90
  agentTurnUsageSchema,
91
91
  fallbackShortTitle,
92
92
  hasAgentTurnUsage,
93
93
  renderJuniorNativeConversationEvent
94
- } from "./chunk-3PCKG4BT.js";
94
+ } from "./chunk-5QBK3QHJ.js";
95
95
  import "./chunk-3Y47VMHV.js";
96
96
  import "./chunk-PDO5BLNM.js";
97
97
  import {
@@ -101,11 +101,11 @@ import {
101
101
  renderPluginConversationEvent,
102
102
  resolveViewerUser,
103
103
  updateViewerDisplayName
104
- } from "./chunk-NF733C66.js";
104
+ } from "./chunk-2J4VCHRX.js";
105
105
  import {
106
106
  getSlackClient,
107
107
  withSlackRetries
108
- } from "./chunk-KTYC3GDO.js";
108
+ } from "./chunk-JAJVUQV7.js";
109
109
  import {
110
110
  decodeStoredConversationEvent,
111
111
  getConversationStore,
@@ -113,23 +113,23 @@ import {
113
113
  getSqlExecutor,
114
114
  locationFromRow,
115
115
  parseSessionSource
116
- } from "./chunk-XTLF7C4I.js";
116
+ } from "./chunk-XAYXN4EG.js";
117
117
  import {
118
118
  juniorApiTokens,
119
119
  juniorConversationEvents,
120
120
  juniorConversations,
121
121
  juniorIdentities,
122
122
  juniorUsers
123
- } from "./chunk-X4RM4TBW.js";
123
+ } from "./chunk-ET54Q4TD.js";
124
124
  import "./chunk-EM225ITJ.js";
125
- import "./chunk-X6JP6AMX.js";
126
- import "./chunk-OEECXAGT.js";
125
+ import "./chunk-XQPKMLRI.js";
126
+ import "./chunk-PGJBNO3I.js";
127
127
  import {
128
128
  juniorDestinations
129
129
  } from "./chunk-VFUK3X5B.js";
130
130
  import {
131
131
  canExposeConversationPayload
132
- } from "./chunk-732P2RBQ.js";
132
+ } from "./chunk-VXWTGOLW.js";
133
133
  import "./chunk-RUIXF3YQ.js";
134
134
  import "./chunk-HZF5P5UN.js";
135
135
  import {
@@ -139,10 +139,10 @@ import {
139
139
  } from "./chunk-F3B2YJ76.js";
140
140
  import {
141
141
  logException
142
- } from "./chunk-7TZM33YX.js";
142
+ } from "./chunk-HMU2QP5M.js";
143
143
  import "./chunk-6GWA276C.js";
144
- import "./chunk-M6PWM3OK.js";
145
- import "./chunk-ELAVLP7Z.js";
144
+ import "./chunk-JJAMURMR.js";
145
+ import "./chunk-COC65LIW.js";
146
146
  import "./chunk-MLKGABMK.js";
147
147
 
148
148
  // src/api.ts
@@ -1533,7 +1533,7 @@ async function readConversationAuxiliaryCostsFromSql(db, conversationIds, option
1533
1533
 
1534
1534
  // src/api/conversations/list.ts
1535
1535
  var CONVERSATION_FEED_LIMIT = 50;
1536
- async function conversationRows(db, limit, actorEmail) {
1536
+ async function conversationRows(db, limit, filter) {
1537
1537
  return db.select({
1538
1538
  conversation: juniorConversations,
1539
1539
  destination: juniorDestinations,
@@ -1554,10 +1554,7 @@ async function conversationRows(db, limit, actorEmail) {
1554
1554
  and6(
1555
1555
  isNull3(juniorConversations.parentConversationId),
1556
1556
  isNull3(juniorConversations.archivedAt),
1557
- actorEmail ? and6(
1558
- eq7(juniorIdentities.emailNormalized, actorEmail),
1559
- eq7(juniorIdentities.emailVerified, true)
1560
- ) : void 0
1557
+ filter?.kind === "viewer" ? eq7(juniorIdentities.userId, filter.userId) : filter?.kind === "actorEmail" ? eq7(juniorUsers.primaryEmailNormalized, filter.email) : void 0
1561
1558
  )
1562
1559
  ).orderBy(
1563
1560
  desc2(juniorConversations.lastActivityAt),
@@ -1629,13 +1626,22 @@ async function readConversationRecordFromSql(conversationId) {
1629
1626
  rootConversationId: row.conversation.rootConversationId
1630
1627
  } : void 0;
1631
1628
  }
1629
+ function conversationFeedFilter(options) {
1630
+ if (options.viewer) {
1631
+ return { kind: "viewer", userId: options.viewer.id };
1632
+ }
1633
+ if (options.actorEmail) {
1634
+ return { kind: "actorEmail", email: options.actorEmail };
1635
+ }
1636
+ return void 0;
1637
+ }
1632
1638
  async function readConversationFeedFromSql(options = {}) {
1633
1639
  const nowMs = Date.now();
1634
1640
  const db = getDb();
1635
1641
  const rows = await conversationRows(
1636
1642
  db,
1637
1643
  options.limit ?? CONVERSATION_FEED_LIMIT,
1638
- options.actorEmail
1644
+ conversationFeedFilter(options)
1639
1645
  );
1640
1646
  const conversations = rows.map((row) => conversationFromRow(row));
1641
1647
  const conversationIds = conversations.map(
@@ -4353,7 +4359,7 @@ function readDescriptionText(home) {
4353
4359
  }
4354
4360
  }
4355
4361
  async function readSkillReports() {
4356
- const { discoverSkills } = await import("./skills-SIPNY4AT.js");
4362
+ const { discoverSkills } = await import("./skills-JL44EIRX.js");
4357
4363
  const skills = await discoverSkills();
4358
4364
  return skillReportsSchema.parse(
4359
4365
  skills.map((skill) => ({
@@ -4363,7 +4369,7 @@ async function readSkillReports() {
4363
4369
  );
4364
4370
  }
4365
4371
  async function readPlugins() {
4366
- const { pluginCatalogRuntime } = await import("./catalog-runtime-CVCR7SND.js");
4372
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-CGUDNL3D.js");
4367
4373
  return pluginsSchema.parse(
4368
4374
  pluginCatalogRuntime.getProviders().map((plugin) => ({
4369
4375
  configKeys: plugin.manifest.configKeys ?? [],
@@ -4376,7 +4382,7 @@ async function readPlugins() {
4376
4382
  async function readRuntimeInfoReport() {
4377
4383
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
4378
4384
  import("./discovery-GUFTFBTL.js"),
4379
- import("./catalog-runtime-CVCR7SND.js"),
4385
+ import("./catalog-runtime-CGUDNL3D.js"),
4380
4386
  readPlugins(),
4381
4387
  readSkillReports()
4382
4388
  ]);
@@ -4392,7 +4398,7 @@ async function readRuntimeInfoReport() {
4392
4398
  }
4393
4399
  async function readPluginOperationalReportFeed() {
4394
4400
  const nowMs = Date.now();
4395
- const { getPluginOperationalReports } = await import("./agent-hooks-U66Q3X2P.js");
4401
+ const { getPluginOperationalReports } = await import("./agent-hooks-7BWOB7SN.js");
4396
4402
  return pluginOperationalReportFeedSchema.parse({
4397
4403
  source: "plugins",
4398
4404
  generatedAt: new Date(nowMs).toISOString(),
package/dist/app.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  processConversationWork
3
- } from "./chunk-ETXLHT3S.js";
3
+ } from "./chunk-K4LK6KYO.js";
4
4
  import {
5
5
  bindSpawnAgent
6
- } from "./chunk-LETPYIDF.js";
6
+ } from "./chunk-RKW5QGGN.js";
7
7
  import {
8
8
  createAgentInvocationWorker,
9
9
  enqueueAgentInvocation,
10
10
  listPendingAgentInvocationMailboxAppends,
11
11
  routeAgentInvocationWork
12
- } from "./chunk-TSQMITMQ.js";
12
+ } from "./chunk-WTKAALLV.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-SDMVFTH4.js";
39
+ } from "./chunk-5DMPHA4V.js";
40
40
  import "./chunk-FA6POGLH.js";
41
41
  import {
42
42
  getTurnRequestDeadline,
43
43
  runWithTurnRequestDeadline
44
- } from "./chunk-Z5WLTGME.js";
44
+ } from "./chunk-HOK7MEWG.js";
45
45
  import {
46
46
  GET,
47
47
  conversationVisibilityFromSlackChannelType,
@@ -50,8 +50,8 @@ import {
50
50
  resolveSlackChannelTypeFromMessage,
51
51
  resolveSlackConversationContext,
52
52
  routeApiTurnWork
53
- } from "./chunk-3UJ3QYRV.js";
54
- import "./chunk-SFYDSI34.js";
53
+ } from "./chunk-5XBRH3N7.js";
54
+ import "./chunk-37LMRT7G.js";
55
55
  import {
56
56
  CONVERSATION_WORK_STALE_ENQUEUE_MS,
57
57
  appendAndEnqueueInboundMessage,
@@ -62,7 +62,7 @@ import {
62
62
  isInvalidConversationRecordError,
63
63
  listActiveConversationIds,
64
64
  removeActiveConversation
65
- } from "./chunk-AYPU5T5L.js";
65
+ } from "./chunk-A5SROS6H.js";
66
66
  import {
67
67
  buildDeliveredTurnStatePatch,
68
68
  claimDispatchMailboxAppend,
@@ -93,7 +93,7 @@ import {
93
93
  requireTurnFailureEventId,
94
94
  resolveTurnSessionRouting,
95
95
  scheduleSessionCompletedPluginTasks
96
- } from "./chunk-I4LR7MS2.js";
96
+ } from "./chunk-2NS3ACHB.js";
97
97
  import {
98
98
  ConversationTurnLifecycleService,
99
99
  coerceThreadConversationState,
@@ -103,7 +103,7 @@ import {
103
103
  persistThreadRuntimeState,
104
104
  persistThreadState,
105
105
  persistThreadStateById
106
- } from "./chunk-67VR4BJK.js";
106
+ } from "./chunk-ISEROVYZ.js";
107
107
  import "./chunk-UTL3MHPC.js";
108
108
  import {
109
109
  getVercelConversationWorkQueue,
@@ -122,7 +122,7 @@ import {
122
122
  import {
123
123
  validatePluginEgressCredentialHooks,
124
124
  validatePluginRegistrations
125
- } from "./chunk-VD6CRYCT.js";
125
+ } from "./chunk-HYEAR6HL.js";
126
126
  import {
127
127
  defineJuniorPlugins,
128
128
  pluginCatalogConfigFromEnv,
@@ -155,18 +155,18 @@ import {
155
155
  setConfigDefaults,
156
156
  shouldEmitDevAgentTrace,
157
157
  shouldPropagateSandboxEgressTrace
158
- } from "./chunk-5LDOQV7Y.js";
158
+ } from "./chunk-URFV5RWN.js";
159
159
  import {
160
160
  AuthorizationFlowDisabledError,
161
161
  PluginCredentialFailureError
162
- } from "./chunk-UFKSILED.js";
162
+ } from "./chunk-5TXDKTET.js";
163
163
  import "./chunk-DIB4GX3G.js";
164
164
  import {
165
165
  createUserTokenStore,
166
166
  deleteMcpAuthSessionsForUserProvider,
167
167
  deleteMcpServerSessionId,
168
168
  deleteMcpStoredOAuthCredentials
169
- } from "./chunk-N2472SQK.js";
169
+ } from "./chunk-O2YXWWPM.js";
170
170
  import {
171
171
  RetryableDeliveryError
172
172
  } from "./chunk-RF6J3DIO.js";
@@ -174,7 +174,7 @@ import {
174
174
  formatProviderLabel,
175
175
  postSlackMessage,
176
176
  startOAuthFlow
177
- } from "./chunk-QKPIW2CY.js";
177
+ } from "./chunk-FLEY546A.js";
178
178
  import "./chunk-HUO3UTAQ.js";
179
179
  import {
180
180
  getExperimentalFeatures,
@@ -183,16 +183,16 @@ import {
183
183
  import {
184
184
  getSandboxResourceConfig,
185
185
  setSandboxResourceConfig
186
- } from "./chunk-KC5XZBRB.js";
186
+ } from "./chunk-4TWLKHOM.js";
187
187
  import {
188
188
  createSchedulerSqlStore,
189
189
  findMatchingEventTasks,
190
190
  logScheduledTaskRunSkipped,
191
191
  scheduledTaskRunAttributes
192
- } from "./chunk-KW2MGCW5.js";
192
+ } from "./chunk-PMJAY6JS.js";
193
193
  import {
194
194
  parseSlackThreadId
195
- } from "./chunk-RCBAXKMB.js";
195
+ } from "./chunk-TIV3PX5H.js";
196
196
  import {
197
197
  ConversationTurnBoundaryError,
198
198
  CooperativeTurnYieldError,
@@ -242,7 +242,7 @@ import {
242
242
  trimTrailingAssistantMessages,
243
243
  turnHasReply,
244
244
  upsertConversationMessage
245
- } from "./chunk-3PCKG4BT.js";
245
+ } from "./chunk-5QBK3QHJ.js";
246
246
  import "./chunk-3Y47VMHV.js";
247
247
  import "./chunk-PDO5BLNM.js";
248
248
  import "./chunk-UIE3R5XU.js";
@@ -262,7 +262,7 @@ import {
262
262
  verifyEventTaskCredentialSubject,
263
263
  verifyScheduledTaskCredentialSubject,
264
264
  verifySlackDirectCredentialSubject
265
- } from "./chunk-NF733C66.js";
265
+ } from "./chunk-2J4VCHRX.js";
266
266
  import {
267
267
  SlackActionError,
268
268
  downloadPrivateSlackFile,
@@ -272,7 +272,7 @@ import {
272
272
  normalizeSlackConversationId,
273
273
  runWithSlackInstallationToken,
274
274
  runWithWorkspaceTeamId
275
- } from "./chunk-KTYC3GDO.js";
275
+ } from "./chunk-JAJVUQV7.js";
276
276
  import {
277
277
  contextProvenance,
278
278
  createSlackDestination,
@@ -285,19 +285,19 @@ import {
285
285
  requireSlackDestination,
286
286
  withConversationEventLock,
287
287
  withConversationMutationLock
288
- } from "./chunk-XTLF7C4I.js";
288
+ } from "./chunk-XAYXN4EG.js";
289
289
  import {
290
290
  juniorAgentBindings,
291
291
  juniorAgentInvocations,
292
292
  juniorConversationEvents,
293
293
  juniorConversations
294
- } from "./chunk-X4RM4TBW.js";
294
+ } from "./chunk-ET54Q4TD.js";
295
295
  import "./chunk-EM225ITJ.js";
296
296
  import {
297
297
  acquireActiveLock,
298
298
  getStateAdapter,
299
299
  withActiveLock
300
- } from "./chunk-X6JP6AMX.js";
300
+ } from "./chunk-XQPKMLRI.js";
301
301
  import {
302
302
  STANDARD_MODEL_PROFILE,
303
303
  botConfig,
@@ -315,16 +315,16 @@ import {
315
315
  modelIdForProfile,
316
316
  setSlackReactionConfig,
317
317
  standardModelId
318
- } from "./chunk-OEECXAGT.js";
318
+ } from "./chunk-PGJBNO3I.js";
319
319
  import {
320
320
  juniorDestinations
321
321
  } from "./chunk-VFUK3X5B.js";
322
- import "./chunk-732P2RBQ.js";
323
- import "./chunk-KC47ZY6Q.js";
322
+ import "./chunk-VXWTGOLW.js";
323
+ import "./chunk-YECBSG77.js";
324
324
  import {
325
325
  pluginCatalogRuntime
326
- } from "./chunk-WZN4RQ64.js";
327
- import "./chunk-CLX3T7Q3.js";
326
+ } from "./chunk-EPOA52SD.js";
327
+ import "./chunk-JY2HJYJT.js";
328
328
  import {
329
329
  credentialContextForActor
330
330
  } from "./chunk-RUIXF3YQ.js";
@@ -358,7 +358,7 @@ import {
358
358
  withContext,
359
359
  withLogContext,
360
360
  withSpan
361
- } from "./chunk-7TZM33YX.js";
361
+ } from "./chunk-HMU2QP5M.js";
362
362
  import {
363
363
  continueTrace
364
364
  } from "./chunk-6GWA276C.js";
@@ -366,10 +366,10 @@ import "./chunk-OOUNJNMR.js";
366
366
  import "./chunk-H4HBKISO.js";
367
367
  import {
368
368
  JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
369
- } from "./chunk-M6PWM3OK.js";
369
+ } from "./chunk-JJAMURMR.js";
370
370
  import {
371
371
  JUNIOR_VERSION
372
- } from "./chunk-ELAVLP7Z.js";
372
+ } from "./chunk-COC65LIW.js";
373
373
  import "./chunk-MLKGABMK.js";
374
374
 
375
375
  // src/app.ts
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-WZN4RQ64.js";
4
- import "./chunk-CLX3T7Q3.js";
3
+ } from "./chunk-EPOA52SD.js";
4
+ import "./chunk-JY2HJYJT.js";
5
5
  import "./chunk-RUIXF3YQ.js";
6
6
  import "./chunk-HZF5P5UN.js";
7
7
  import "./chunk-F3B2YJ76.js";
8
- import "./chunk-7TZM33YX.js";
8
+ import "./chunk-HMU2QP5M.js";
9
9
  import "./chunk-6GWA276C.js";
10
10
  import "./chunk-OOUNJNMR.js";
11
11
  import "./chunk-H4HBKISO.js";
12
- import "./chunk-M6PWM3OK.js";
13
- import "./chunk-ELAVLP7Z.js";
12
+ import "./chunk-JJAMURMR.js";
13
+ import "./chunk-COC65LIW.js";
14
14
  import "./chunk-MLKGABMK.js";
15
15
  export {
16
16
  pluginCatalogRuntime
@@ -4,30 +4,30 @@ import {
4
4
  isConversationScopedChannel,
5
5
  isDmChannel,
6
6
  normalizeSlackConversationId
7
- } from "./chunk-KTYC3GDO.js";
7
+ } from "./chunk-JAJVUQV7.js";
8
8
  import {
9
9
  getConversationEventStore,
10
10
  getDb
11
- } from "./chunk-XTLF7C4I.js";
11
+ } from "./chunk-XAYXN4EG.js";
12
12
  import {
13
13
  juniorConversationAnnotations,
14
14
  juniorConversationEvents,
15
15
  juniorIdentities,
16
16
  juniorUsers
17
- } from "./chunk-X4RM4TBW.js";
17
+ } from "./chunk-ET54Q4TD.js";
18
18
  import {
19
19
  SANDBOX_WORKSPACE_ROOT
20
20
  } from "./chunk-EM225ITJ.js";
21
21
  import {
22
22
  getStateAdapter
23
- } from "./chunk-X6JP6AMX.js";
23
+ } from "./chunk-XQPKMLRI.js";
24
24
  import {
25
25
  botConfig,
26
26
  completeObject,
27
27
  embedTexts,
28
28
  getSlackBotToken,
29
29
  standardModelId
30
- } from "./chunk-OEECXAGT.js";
30
+ } from "./chunk-PGJBNO3I.js";
31
31
  import {
32
32
  isActorUserId,
33
33
  parseActorUserId
@@ -42,7 +42,7 @@ import {
42
42
  logInfo,
43
43
  logWarn,
44
44
  normalizeIdentityEmail
45
- } from "./chunk-7TZM33YX.js";
45
+ } from "./chunk-HMU2QP5M.js";
46
46
 
47
47
  // src/chat/plugins/agent-hooks.ts
48
48
  import {
@@ -2,7 +2,7 @@ import {
2
2
  coerceThreadConversationState,
3
3
  getPersistedThreadState,
4
4
  persistThreadStateById
5
- } from "./chunk-67VR4BJK.js";
5
+ } from "./chunk-ISEROVYZ.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-3PCKG4BT.js";
25
+ } from "./chunk-5QBK3QHJ.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-NF733C66.js";
36
+ } from "./chunk-2J4VCHRX.js";
37
37
  import {
38
38
  getConversationStore,
39
39
  getDb,
40
40
  sameActorIdentity
41
- } from "./chunk-XTLF7C4I.js";
41
+ } from "./chunk-XAYXN4EG.js";
42
42
  import {
43
43
  juniorConversations,
44
44
  juniorTaskExecutions
45
- } from "./chunk-X4RM4TBW.js";
45
+ } from "./chunk-ET54Q4TD.js";
46
46
  import {
47
47
  getStateAdapter
48
- } from "./chunk-X6JP6AMX.js";
48
+ } from "./chunk-XQPKMLRI.js";
49
49
  import {
50
50
  ProviderError,
51
51
  findProviderError,
52
52
  getProviderErrorAttributes,
53
53
  getProviderErrorUserMessage
54
- } from "./chunk-OEECXAGT.js";
54
+ } from "./chunk-PGJBNO3I.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-7TZM33YX.js";
64
+ } from "./chunk-HMU2QP5M.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-HQAZQASY.js")).getConversationStore();
90
+ const conversationStore = args.conversationStore ?? (await import("./db-QNQM5YRR.js")).getConversationStore();
91
91
  const conversation = await conversationStore.get({
92
92
  conversationId: args.conversationId
93
93
  });
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getStateAdapter
3
- } from "./chunk-X6JP6AMX.js";
3
+ } from "./chunk-XQPKMLRI.js";
4
4
  import {
5
5
  getClient
6
6
  } from "./chunk-6GWA276C.js";
@@ -4,18 +4,18 @@ import {
4
4
  } from "./chunk-EM225ITJ.js";
5
5
  import {
6
6
  getStateAdapter
7
- } from "./chunk-X6JP6AMX.js";
7
+ } from "./chunk-XQPKMLRI.js";
8
8
  import {
9
9
  toOptionalTrimmed
10
- } from "./chunk-OEECXAGT.js";
10
+ } from "./chunk-PGJBNO3I.js";
11
11
  import {
12
12
  pluginCatalogRuntime
13
- } from "./chunk-WZN4RQ64.js";
13
+ } from "./chunk-EPOA52SD.js";
14
14
  import {
15
15
  setSpanAttributes,
16
16
  setSpanStatus,
17
17
  withSpan
18
- } from "./chunk-7TZM33YX.js";
18
+ } from "./chunk-HMU2QP5M.js";
19
19
 
20
20
  // src/chat/sandbox/resources.ts
21
21
  var configuredResources;