@sentry/junior 0.128.0 → 0.128.1

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 (41) hide show
  1. package/dist/{agent-hooks-F75ANGBV.js → agent-hooks-IWQNFJMS.js} +8 -8
  2. package/dist/api.js +15 -15
  3. package/dist/app.d.ts +2 -1
  4. package/dist/app.js +27 -21
  5. package/dist/{catalog-runtime-ZPSA5QM2.js → catalog-runtime-KLSYFS4A.js} +5 -5
  6. package/dist/chat/sandbox/resources.d.ts +12 -1
  7. package/dist/{chunk-5KKIBIIP.js → chunk-54KP2EAH.js} +12 -12
  8. package/dist/{chunk-K5ZB3WWH.js → chunk-5IR7SGRO.js} +2 -2
  9. package/dist/{chunk-YY6CVET7.js → chunk-AAMF2IRC.js} +14 -14
  10. package/dist/{chunk-Z4KTQMWW.js → chunk-EHEACYJ6.js} +1 -1
  11. package/dist/{chunk-BY43CEXN.js → chunk-EOIA25WC.js} +2 -2
  12. package/dist/{chunk-NHWE6Y7G.js → chunk-ETGUGGO2.js} +7 -7
  13. package/dist/{chunk-A76LKS5W.js → chunk-H4HMCSOZ.js} +4 -4
  14. package/dist/{chunk-B7FPRGUJ.js → chunk-J3YIO3LE.js} +2 -2
  15. package/dist/{chunk-PBWUUVVG.js → chunk-LIJ4APSS.js} +1 -1
  16. package/dist/{chunk-KTGJAWRO.js → chunk-MKM5552O.js} +1 -1
  17. package/dist/{chunk-G6XQODHM.js → chunk-MZ6ZOWMJ.js} +1 -1
  18. package/dist/{chunk-3PKF6YNU.js → chunk-O3C5BJFD.js} +1 -1
  19. package/dist/{chunk-OLGB5Y7R.js → chunk-O3YROBH4.js} +1 -1
  20. package/dist/{chunk-HBFQLSGV.js → chunk-OIQCRZ67.js} +4 -4
  21. package/dist/{chunk-2HTHX6XV.js → chunk-P7UUNWC4.js} +38 -17
  22. package/dist/{chunk-JDCPDJ54.js → chunk-PLAMHS3D.js} +2 -2
  23. package/dist/{chunk-RYWMDDWK.js → chunk-Q5TMMCBV.js} +1 -1
  24. package/dist/{chunk-WZ365SQC.js → chunk-R2LXTX4J.js} +1 -1
  25. package/dist/{chunk-FJEIX3AH.js → chunk-REHOYCYS.js} +1 -1
  26. package/dist/{chunk-KNRODVH2.js → chunk-S2O64VXP.js} +6 -6
  27. package/dist/{chunk-B6E3YA2H.js → chunk-TONH5NXR.js} +1 -1
  28. package/dist/cli/chat.js +23 -23
  29. package/dist/cli/check.js +6 -6
  30. package/dist/cli/plugins.js +11 -11
  31. package/dist/cli/snapshot-create.js +9 -9
  32. package/dist/cli/upgrade.js +6 -6
  33. package/dist/{db-FYJYPAKG.js → db-VOU5QNLY.js} +6 -6
  34. package/dist/instrumentation.js +4 -4
  35. package/dist/nitro.js +2 -2
  36. package/dist/{oauth-callback-server-W3PPIHCS.js → oauth-callback-server-GS7FBYBC.js} +16 -16
  37. package/dist/{runner-5NOFUYKR.js → runner-GSJSBI3J.js} +10 -10
  38. package/dist/{skills-ENIBKF5V.js → skills-DSHG54LM.js} +6 -6
  39. package/dist/{validation-BHLBOO6K.js → validation-25XWT6TA.js} +6 -6
  40. package/dist/version.js +1 -1
  41. package/package.json +5 -5
@@ -11,19 +11,19 @@ import {
11
11
  getPlugins,
12
12
  setPlugins,
13
13
  validatePlugins
14
- } from "./chunk-A76LKS5W.js";
15
- import "./chunk-B7FPRGUJ.js";
14
+ } from "./chunk-H4HMCSOZ.js";
15
+ import "./chunk-J3YIO3LE.js";
16
16
  import "./chunk-SHMHHXD5.js";
17
- import "./chunk-G6XQODHM.js";
18
- import "./chunk-K5ZB3WWH.js";
17
+ import "./chunk-MZ6ZOWMJ.js";
18
+ import "./chunk-5IR7SGRO.js";
19
19
  import "./chunk-VFUK3X5B.js";
20
- import "./chunk-Z4KTQMWW.js";
20
+ import "./chunk-EHEACYJ6.js";
21
21
  import "./chunk-HZF5P5UN.js";
22
22
  import "./chunk-F3B2YJ76.js";
23
- import "./chunk-B6E3YA2H.js";
23
+ import "./chunk-TONH5NXR.js";
24
24
  import "./chunk-6GWA276C.js";
25
- import "./chunk-RYWMDDWK.js";
26
- import "./chunk-KTGJAWRO.js";
25
+ import "./chunk-Q5TMMCBV.js";
26
+ import "./chunk-MKM5552O.js";
27
27
  import "./chunk-MLKGABMK.js";
28
28
  export {
29
29
  PluginHookDeniedError,
package/dist/api.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  formatSlackConversationRedactedLabel,
31
31
  readHealthReport,
32
32
  resolveSlackConversationContextFromThreadId
33
- } from "./chunk-JDCPDJ54.js";
33
+ } from "./chunk-PLAMHS3D.js";
34
34
  import {
35
35
  buildSentryConversationUrl
36
36
  } from "./chunk-4CODA7P5.js";
@@ -43,10 +43,10 @@ import {
43
43
  } from "./chunk-UTL3MHPC.js";
44
44
  import {
45
45
  readStats
46
- } from "./chunk-FJEIX3AH.js";
46
+ } from "./chunk-REHOYCYS.js";
47
47
  import {
48
48
  parseSlackThreadId
49
- } from "./chunk-PBWUUVVG.js";
49
+ } from "./chunk-LIJ4APSS.js";
50
50
  import {
51
51
  agentTurnUsageSchema,
52
52
  hasAgentTurnUsage,
@@ -59,13 +59,13 @@ import {
59
59
  listConversationAnnotations,
60
60
  renderPluginConversationEvent,
61
61
  resolveViewerUser
62
- } from "./chunk-A76LKS5W.js";
62
+ } from "./chunk-H4HMCSOZ.js";
63
63
  import {
64
64
  decodeStoredConversationEvent,
65
65
  getDb,
66
66
  getSqlExecutor,
67
67
  parseSessionSource
68
- } from "./chunk-B7FPRGUJ.js";
68
+ } from "./chunk-J3YIO3LE.js";
69
69
  import {
70
70
  juniorApiTokens,
71
71
  juniorConversationEvents,
@@ -73,23 +73,23 @@ import {
73
73
  juniorIdentities,
74
74
  juniorUsers
75
75
  } from "./chunk-SHMHHXD5.js";
76
- import "./chunk-G6XQODHM.js";
77
- import "./chunk-K5ZB3WWH.js";
76
+ import "./chunk-MZ6ZOWMJ.js";
77
+ import "./chunk-5IR7SGRO.js";
78
78
  import {
79
79
  juniorDestinations
80
80
  } from "./chunk-VFUK3X5B.js";
81
81
  import {
82
82
  canExposeConversationPayload
83
- } from "./chunk-Z4KTQMWW.js";
83
+ } from "./chunk-EHEACYJ6.js";
84
84
  import "./chunk-HZF5P5UN.js";
85
85
  import {
86
86
  parseSlackChannelId,
87
87
  parseSlackTeamId
88
88
  } from "./chunk-F3B2YJ76.js";
89
- import "./chunk-B6E3YA2H.js";
89
+ import "./chunk-TONH5NXR.js";
90
90
  import "./chunk-6GWA276C.js";
91
- import "./chunk-RYWMDDWK.js";
92
- import "./chunk-KTGJAWRO.js";
91
+ import "./chunk-Q5TMMCBV.js";
92
+ import "./chunk-MKM5552O.js";
93
93
  import "./chunk-MLKGABMK.js";
94
94
 
95
95
  // src/api.ts
@@ -2015,7 +2015,7 @@ function readDescriptionText(home) {
2015
2015
  }
2016
2016
  }
2017
2017
  async function readSkillReports() {
2018
- const { discoverSkills } = await import("./skills-ENIBKF5V.js");
2018
+ const { discoverSkills } = await import("./skills-DSHG54LM.js");
2019
2019
  const skills = await discoverSkills();
2020
2020
  return skillReportsSchema.parse(
2021
2021
  skills.map((skill) => ({
@@ -2025,7 +2025,7 @@ async function readSkillReports() {
2025
2025
  );
2026
2026
  }
2027
2027
  async function readPlugins() {
2028
- const { pluginCatalogRuntime } = await import("./catalog-runtime-ZPSA5QM2.js");
2028
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-KLSYFS4A.js");
2029
2029
  return pluginsSchema.parse(
2030
2030
  pluginCatalogRuntime.getProviders().map((plugin) => ({
2031
2031
  configKeys: plugin.manifest.configKeys ?? [],
@@ -2038,7 +2038,7 @@ async function readPlugins() {
2038
2038
  async function readRuntimeInfoReport() {
2039
2039
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
2040
2040
  import("./discovery-GUFTFBTL.js"),
2041
- import("./catalog-runtime-ZPSA5QM2.js"),
2041
+ import("./catalog-runtime-KLSYFS4A.js"),
2042
2042
  readPlugins(),
2043
2043
  readSkillReports()
2044
2044
  ]);
@@ -2054,7 +2054,7 @@ async function readRuntimeInfoReport() {
2054
2054
  }
2055
2055
  async function readPluginOperationalReportFeed() {
2056
2056
  const nowMs = Date.now();
2057
- const { getPluginOperationalReports } = await import("./agent-hooks-F75ANGBV.js");
2057
+ const { getPluginOperationalReports } = await import("./agent-hooks-IWQNFJMS.js");
2058
2058
  return pluginOperationalReportFeedSchema.parse({
2059
2059
  source: "plugins",
2060
2060
  generatedAt: new Date(nowMs).toISOString(),
package/dist/app.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Hono } from "hono";
2
+ import { type SandboxResourceConfig } from "@/chat/sandbox/resources";
2
3
  import { type JuniorPluginSet } from "./plugins";
3
4
  import { type VercelConversationWorkCallbackOptions } from "@/chat/task-execution/vercel-callback";
4
5
  import type { WaitUntilFn } from "@/handlers/types";
@@ -22,7 +23,7 @@ export interface JuniorAppOptions {
22
23
  /** Direct plugin set override. Usually omitted when `juniorNitro()` uses a plugin module. */
23
24
  plugins?: JuniorPluginSet;
24
25
  /** Sandbox execution options. */
25
- sandbox?: {
26
+ sandbox?: SandboxResourceConfig & {
26
27
  /**
27
28
  * Egress domains allowed to carry Sentry trace propagation headers.
28
29
  * Entries may be exact domains or leading wildcard domains such as
package/dist/app.js CHANGED
@@ -50,7 +50,7 @@ import {
50
50
  startConversationWork,
51
51
  startSlackProcessingReaction,
52
52
  stripLeadingBotMention
53
- } from "./chunk-5KKIBIIP.js";
53
+ } from "./chunk-54KP2EAH.js";
54
54
  import "./chunk-FA6POGLH.js";
55
55
  import {
56
56
  ConversationTurnLifecycleService,
@@ -65,13 +65,13 @@ import {
65
65
  processPluginTask,
66
66
  requireTurnFailureEventId,
67
67
  scheduleSessionCompletedPluginTasks
68
- } from "./chunk-KNRODVH2.js";
68
+ } from "./chunk-S2O64VXP.js";
69
69
  import {
70
70
  GET,
71
71
  conversationVisibilityFromSlackChannelType,
72
72
  resolveSlackChannelTypeFromMessage,
73
73
  resolveSlackConversationContext
74
- } from "./chunk-JDCPDJ54.js";
74
+ } from "./chunk-PLAMHS3D.js";
75
75
  import "./chunk-4CODA7P5.js";
76
76
  import "./chunk-UTL3MHPC.js";
77
77
  import {
@@ -90,7 +90,7 @@ import {
90
90
  import {
91
91
  validatePluginEgressCredentialHooks,
92
92
  validatePluginRegistrations
93
- } from "./chunk-3PKF6YNU.js";
93
+ } from "./chunk-O3C5BJFD.js";
94
94
  import {
95
95
  defineJuniorPlugins,
96
96
  pluginCatalogConfigFromEnv,
@@ -125,7 +125,7 @@ import {
125
125
  setConfigDefaults,
126
126
  shouldEmitDevAgentTrace,
127
127
  shouldPropagateSandboxEgressTrace
128
- } from "./chunk-YY6CVET7.js";
128
+ } from "./chunk-AAMF2IRC.js";
129
129
  import "./chunk-DIB4GX3G.js";
130
130
  import {
131
131
  RetryableDeliveryError,
@@ -136,7 +136,7 @@ import {
136
136
  formatProviderLabel,
137
137
  postSlackMessage,
138
138
  startOAuthFlow
139
- } from "./chunk-NHWE6Y7G.js";
139
+ } from "./chunk-ETGUGGO2.js";
140
140
  import {
141
141
  ConversationTurnBoundaryError,
142
142
  CooperativeTurnYieldError,
@@ -192,13 +192,16 @@ import {
192
192
  trimTrailingAssistantMessages,
193
193
  updateConversationStats,
194
194
  upsertConversationMessage
195
- } from "./chunk-HBFQLSGV.js";
195
+ } from "./chunk-OIQCRZ67.js";
196
196
  import "./chunk-EPBBYMNE.js";
197
- import "./chunk-2HTHX6XV.js";
198
- import "./chunk-FJEIX3AH.js";
197
+ import {
198
+ getSandboxResourceConfig,
199
+ setSandboxResourceConfig
200
+ } from "./chunk-P7UUNWC4.js";
201
+ import "./chunk-REHOYCYS.js";
199
202
  import {
200
203
  parseSlackThreadId
201
- } from "./chunk-PBWUUVVG.js";
204
+ } from "./chunk-LIJ4APSS.js";
202
205
  import "./chunk-HX236W2U.js";
203
206
  import "./chunk-PDO5BLNM.js";
204
207
  import "./chunk-UIE3R5XU.js";
@@ -226,7 +229,7 @@ import {
226
229
  verifyEventTaskCredentialSubject,
227
230
  verifyScheduledTaskCredentialSubject,
228
231
  verifySlackDirectCredentialSubject
229
- } from "./chunk-A76LKS5W.js";
232
+ } from "./chunk-H4HMCSOZ.js";
230
233
  import {
231
234
  contextProvenance,
232
235
  createSlackDestination,
@@ -237,7 +240,7 @@ import {
237
240
  instructionProvenanceFor,
238
241
  requireSlackDestination,
239
242
  withConversationEventLock
240
- } from "./chunk-B7FPRGUJ.js";
243
+ } from "./chunk-J3YIO3LE.js";
241
244
  import {
242
245
  juniorConversationEvents,
243
246
  juniorConversations
@@ -246,7 +249,7 @@ import {
246
249
  acquireActiveLock,
247
250
  getStateAdapter,
248
251
  sleep
249
- } from "./chunk-G6XQODHM.js";
252
+ } from "./chunk-MZ6ZOWMJ.js";
250
253
  import {
251
254
  STANDARD_MODEL_PROFILE,
252
255
  botConfig,
@@ -264,16 +267,16 @@ import {
264
267
  modelIdForProfile,
265
268
  setSlackReactionConfig,
266
269
  standardModelId
267
- } from "./chunk-K5ZB3WWH.js";
270
+ } from "./chunk-5IR7SGRO.js";
268
271
  import {
269
272
  juniorDestinations
270
273
  } from "./chunk-VFUK3X5B.js";
271
- import "./chunk-Z4KTQMWW.js";
272
- import "./chunk-BY43CEXN.js";
274
+ import "./chunk-EHEACYJ6.js";
275
+ import "./chunk-EOIA25WC.js";
273
276
  import {
274
277
  pluginCatalogRuntime
275
- } from "./chunk-WZ365SQC.js";
276
- import "./chunk-OLGB5Y7R.js";
278
+ } from "./chunk-R2LXTX4J.js";
279
+ import "./chunk-O3YROBH4.js";
277
280
  import {
278
281
  credentialSubjectSchema
279
282
  } from "./chunk-77VDLF3Z.js";
@@ -305,7 +308,7 @@ import {
305
308
  withContext,
306
309
  withLogContext,
307
310
  withSpan
308
- } from "./chunk-B6E3YA2H.js";
311
+ } from "./chunk-TONH5NXR.js";
309
312
  import {
310
313
  continueTrace
311
314
  } from "./chunk-6GWA276C.js";
@@ -313,10 +316,10 @@ import "./chunk-OOUNJNMR.js";
313
316
  import "./chunk-H4HBKISO.js";
314
317
  import {
315
318
  JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
316
- } from "./chunk-RYWMDDWK.js";
319
+ } from "./chunk-Q5TMMCBV.js";
317
320
  import {
318
321
  JUNIOR_VERSION
319
- } from "./chunk-KTGJAWRO.js";
322
+ } from "./chunk-MKM5552O.js";
320
323
  import "./chunk-MLKGABMK.js";
321
324
 
322
325
  // src/app.ts
@@ -9349,6 +9352,7 @@ async function createApp(options) {
9349
9352
  const previousPlugins = setPlugins(plugins);
9350
9353
  const previousConfigDefaults = getConfigDefaults();
9351
9354
  const previousSlackReactionConfig = getSlackReactionConfig();
9355
+ const previousSandboxResources = getSandboxResourceConfig();
9352
9356
  const previousDashboardLinkOptions = setDashboardConversationLinkOptions(dashboard);
9353
9357
  let pluginRoutes = [];
9354
9358
  let pluginApiRoutes = [];
@@ -9383,6 +9387,7 @@ async function createApp(options) {
9383
9387
  sandboxEgressTracePropagationDomains = normalizeSandboxEgressTracePropagationDomains(
9384
9388
  options?.sandbox?.egressTracePropagationDomains
9385
9389
  );
9390
+ setSandboxResourceConfig(options?.sandbox);
9386
9391
  setConfigDefaults(options?.configDefaults);
9387
9392
  if (options?.slack) {
9388
9393
  setSlackReactionConfig(options.slack);
@@ -9404,6 +9409,7 @@ async function createApp(options) {
9404
9409
  setPlugins(previousPlugins);
9405
9410
  setConfigDefaults(previousConfigDefaults);
9406
9411
  setSlackReactionConfig(previousSlackReactionConfig);
9412
+ setSandboxResourceConfig(previousSandboxResources);
9407
9413
  setDashboardConversationLinkOptions(previousDashboardLinkOptions);
9408
9414
  throw error;
9409
9415
  }
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-WZ365SQC.js";
4
- import "./chunk-OLGB5Y7R.js";
3
+ } from "./chunk-R2LXTX4J.js";
4
+ import "./chunk-O3YROBH4.js";
5
5
  import "./chunk-77VDLF3Z.js";
6
6
  import "./chunk-HZF5P5UN.js";
7
7
  import "./chunk-F3B2YJ76.js";
8
- import "./chunk-B6E3YA2H.js";
8
+ import "./chunk-TONH5NXR.js";
9
9
  import "./chunk-6GWA276C.js";
10
10
  import "./chunk-OOUNJNMR.js";
11
11
  import "./chunk-H4HBKISO.js";
12
- import "./chunk-RYWMDDWK.js";
13
- import "./chunk-KTGJAWRO.js";
12
+ import "./chunk-Q5TMMCBV.js";
13
+ import "./chunk-MKM5552O.js";
14
14
  import "./chunk-MLKGABMK.js";
15
15
  export {
16
16
  pluginCatalogRuntime
@@ -1,4 +1,15 @@
1
- /** Resolve optional resource sizing shared by every newly created sandbox. */
1
+ export interface SandboxResourceConfig {
2
+ vcpus?: number;
3
+ }
4
+ /** Return the app-level sandbox sizing override. */
5
+ export declare function getSandboxResourceConfig(): {
6
+ vcpus: number;
7
+ } | undefined;
8
+ /** Replace app-level sandbox sizing and return the previous setting. */
9
+ export declare function setSandboxResourceConfig(config?: SandboxResourceConfig): {
10
+ vcpus: number;
11
+ } | undefined;
12
+ /** Resolve app-level sandbox sizing, falling back to the legacy environment setting. */
2
13
  export declare function getSandboxResources(): {
3
14
  vcpus: number;
4
15
  } | undefined;
@@ -13,7 +13,7 @@ import {
13
13
  persistAuthPauseTurnState,
14
14
  requireTurnFailureEventId,
15
15
  scheduleSessionCompletedPluginTasks
16
- } from "./chunk-KNRODVH2.js";
16
+ } from "./chunk-S2O64VXP.js";
17
17
  import {
18
18
  buildSentryConversationUrl
19
19
  } from "./chunk-4CODA7P5.js";
@@ -40,7 +40,7 @@ import {
40
40
  resolveBaseUrl,
41
41
  resolvePluginOAuthAccount,
42
42
  truncateStatusText
43
- } from "./chunk-NHWE6Y7G.js";
43
+ } from "./chunk-ETGUGGO2.js";
44
44
  import {
45
45
  JUNIOR_THREAD_STATE_TTL_MS,
46
46
  TurnSliceLimitExceededError,
@@ -73,13 +73,13 @@ import {
73
73
  recordDeliveredAssistantMessage,
74
74
  turnHasReply,
75
75
  updateConversationStats
76
- } from "./chunk-HBFQLSGV.js";
76
+ } from "./chunk-OIQCRZ67.js";
77
77
  import {
78
78
  parseSlackThreadId,
79
79
  readSlackRawMessageContext,
80
80
  resolveSlackChannelIdFromMessage,
81
81
  resolveSlackChannelIdFromThreadId
82
- } from "./chunk-PBWUUVVG.js";
82
+ } from "./chunk-LIJ4APSS.js";
83
83
  import {
84
84
  SlackActionError,
85
85
  getDashboardConversationLink,
@@ -88,19 +88,19 @@ import {
88
88
  getSlackClient,
89
89
  isDmChannel,
90
90
  normalizeSlackConversationId
91
- } from "./chunk-A76LKS5W.js";
91
+ } from "./chunk-H4HMCSOZ.js";
92
92
  import {
93
93
  getConversationEventStore,
94
94
  getConversationStore,
95
95
  parseDestination,
96
96
  requireSlackDestination,
97
97
  sameDestination
98
- } from "./chunk-B7FPRGUJ.js";
98
+ } from "./chunk-J3YIO3LE.js";
99
99
  import {
100
100
  acquireActiveLock,
101
101
  getDefaultRedisStateAdapterFor,
102
102
  getStateAdapter
103
- } from "./chunk-G6XQODHM.js";
103
+ } from "./chunk-MZ6ZOWMJ.js";
104
104
  import {
105
105
  FUNCTION_TIMEOUT_BUFFER_SECONDS,
106
106
  botConfig,
@@ -109,18 +109,18 @@ import {
109
109
  getRuntimeMetadata,
110
110
  normalizeSlackEmojiName,
111
111
  standardModelId
112
- } from "./chunk-K5ZB3WWH.js";
112
+ } from "./chunk-5IR7SGRO.js";
113
113
  import {
114
114
  discoverSkills
115
- } from "./chunk-BY43CEXN.js";
115
+ } from "./chunk-EOIA25WC.js";
116
116
  import {
117
117
  pluginCatalogRuntime
118
- } from "./chunk-WZ365SQC.js";
118
+ } from "./chunk-R2LXTX4J.js";
119
119
  import {
120
120
  buildOAuthTokenRequest,
121
121
  hasRequiredOAuthScope,
122
122
  parseOAuthTokenResponse
123
- } from "./chunk-OLGB5Y7R.js";
123
+ } from "./chunk-O3YROBH4.js";
124
124
  import {
125
125
  createSlackResumeActor,
126
126
  isUserActor,
@@ -139,7 +139,7 @@ import {
139
139
  toOptionalNumber,
140
140
  toOptionalString,
141
141
  withLogContext
142
- } from "./chunk-B6E3YA2H.js";
142
+ } from "./chunk-TONH5NXR.js";
143
143
  import {
144
144
  homeDir
145
145
  } from "./chunk-H4HBKISO.js";
@@ -3,7 +3,7 @@ import {
3
3
  toCanonicalInputMessage,
4
4
  toCanonicalOutputMessage,
5
5
  toGenAiMessagesTraceAttributes
6
- } from "./chunk-Z4KTQMWW.js";
6
+ } from "./chunk-EHEACYJ6.js";
7
7
  import {
8
8
  extractGenAiUsageAttributes,
9
9
  logException,
@@ -11,7 +11,7 @@ import {
11
11
  normalizeGenAiFinishReason,
12
12
  serializeGenAiAttribute,
13
13
  withSpan
14
- } from "./chunk-B6E3YA2H.js";
14
+ } from "./chunk-TONH5NXR.js";
15
15
 
16
16
  // src/chat/config.ts
17
17
  import { getModel as getModel2 } from "@earendil-works/pi-ai/compat";
@@ -30,7 +30,7 @@ import {
30
30
  toMcpProviderError,
31
31
  toolInvocationDestination,
32
32
  uploadFilesToConversation
33
- } from "./chunk-NHWE6Y7G.js";
33
+ } from "./chunk-ETGUGGO2.js";
34
34
  import {
35
35
  CooperativeTurnYieldError,
36
36
  JUNIOR_THREAD_STATE_TTL_MS,
@@ -80,7 +80,7 @@ import {
80
80
  stripRuntimeTurnContext,
81
81
  trimTrailingAssistantMessages,
82
82
  updateConversationStats
83
- } from "./chunk-HBFQLSGV.js";
83
+ } from "./chunk-OIQCRZ67.js";
84
84
  import {
85
85
  parseSandboxEgressAuthRequiredSignal,
86
86
  parseSandboxEgressPermissionDeniedSignal,
@@ -104,13 +104,13 @@ import {
104
104
  runNonInteractiveCommand,
105
105
  throwSandboxOperationError,
106
106
  wrapSandboxSetupError
107
- } from "./chunk-2HTHX6XV.js";
107
+ } from "./chunk-P7UUNWC4.js";
108
108
  import {
109
109
  incrementStat
110
- } from "./chunk-FJEIX3AH.js";
110
+ } from "./chunk-REHOYCYS.js";
111
111
  import {
112
112
  parseSlackThreadId
113
- } from "./chunk-PBWUUVVG.js";
113
+ } from "./chunk-LIJ4APSS.js";
114
114
  import {
115
115
  addAgentTurnUsage,
116
116
  hasAgentTurnUsage
@@ -135,7 +135,7 @@ import {
135
135
  readActorIdentity,
136
136
  resolveChannelCapabilities,
137
137
  withSlackRetries
138
- } from "./chunk-A76LKS5W.js";
138
+ } from "./chunk-H4HMCSOZ.js";
139
139
  import {
140
140
  KNOWN_CONVERSATION_EVENT_TYPES,
141
141
  contextProvenance,
@@ -146,7 +146,7 @@ import {
146
146
  instructionActors,
147
147
  instructionProvenanceFor,
148
148
  sameActorIdentity
149
- } from "./chunk-B7FPRGUJ.js";
149
+ } from "./chunk-J3YIO3LE.js";
150
150
  import {
151
151
  juniorEventTasks
152
152
  } from "./chunk-SHMHHXD5.js";
@@ -159,7 +159,7 @@ import {
159
159
  sandboxSkillFile,
160
160
  sandboxSkillPathResolution,
161
161
  sleep
162
- } from "./chunk-G6XQODHM.js";
162
+ } from "./chunk-MZ6ZOWMJ.js";
163
163
  import {
164
164
  ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX,
165
165
  COMPACTION_SUMMARY_PREFIX,
@@ -193,7 +193,7 @@ import {
193
193
  renderCurrentInstruction,
194
194
  resolveGatewayModel,
195
195
  unwrapCurrentInstruction
196
- } from "./chunk-K5ZB3WWH.js";
196
+ } from "./chunk-5IR7SGRO.js";
197
197
  import {
198
198
  canExposeConversationPayload,
199
199
  resolveConversationPrivacy,
@@ -203,16 +203,16 @@ import {
203
203
  toGenAiMessagesTraceAttributes,
204
204
  toGenAiPayloadMetadata,
205
205
  toGenAiPayloadTraceAttributes
206
- } from "./chunk-Z4KTQMWW.js";
206
+ } from "./chunk-EHEACYJ6.js";
207
207
  import {
208
208
  discoverSkills,
209
209
  findSkillByName,
210
210
  loadSkillsByName,
211
211
  parseSkillInvocation
212
- } from "./chunk-BY43CEXN.js";
212
+ } from "./chunk-EOIA25WC.js";
213
213
  import {
214
214
  pluginCatalogRuntime
215
- } from "./chunk-WZ365SQC.js";
215
+ } from "./chunk-R2LXTX4J.js";
216
216
  import {
217
217
  CredentialUnavailableError,
218
218
  OAuthProviderError,
@@ -220,7 +220,7 @@ import {
220
220
  getOAuthProviderErrorAttributes,
221
221
  resolveAuthTokenPlaceholder,
222
222
  resolvePluginCommandEnv
223
- } from "./chunk-OLGB5Y7R.js";
223
+ } from "./chunk-O3YROBH4.js";
224
224
  import {
225
225
  credentialUserSubjectId
226
226
  } from "./chunk-77VDLF3Z.js";
@@ -249,7 +249,7 @@ import {
249
249
  summarizeMessageText,
250
250
  withLogContext,
251
251
  withSpan
252
- } from "./chunk-B6E3YA2H.js";
252
+ } from "./chunk-TONH5NXR.js";
253
253
  import {
254
254
  startInactiveSpan,
255
255
  withActiveSpan
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logWarn
3
- } from "./chunk-B6E3YA2H.js";
3
+ } from "./chunk-TONH5NXR.js";
4
4
 
5
5
  // src/chat/conversation-privacy.ts
6
6
  import { AsyncLocalStorage } from "async_hooks";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-WZ365SQC.js";
3
+ } from "./chunk-R2LXTX4J.js";
4
4
  import {
5
5
  logWarn
6
- } from "./chunk-B6E3YA2H.js";
6
+ } from "./chunk-TONH5NXR.js";
7
7
  import {
8
8
  skillRoots
9
9
  } from "./chunk-H4HBKISO.js";
@@ -6,25 +6,25 @@ import {
6
6
  isDmChannel,
7
7
  normalizeSlackConversationId,
8
8
  withSlackRetries
9
- } from "./chunk-A76LKS5W.js";
9
+ } from "./chunk-H4HMCSOZ.js";
10
10
  import {
11
11
  getDb,
12
12
  parseDestination
13
- } from "./chunk-B7FPRGUJ.js";
13
+ } from "./chunk-J3YIO3LE.js";
14
14
  import {
15
15
  acquireActiveLock,
16
16
  getStateAdapter,
17
17
  sleep
18
- } from "./chunk-G6XQODHM.js";
18
+ } from "./chunk-MZ6ZOWMJ.js";
19
19
  import {
20
20
  normalizeSlackEmojiName
21
- } from "./chunk-K5ZB3WWH.js";
21
+ } from "./chunk-5IR7SGRO.js";
22
22
  import {
23
23
  pluginCatalogRuntime
24
- } from "./chunk-WZ365SQC.js";
24
+ } from "./chunk-R2LXTX4J.js";
25
25
  import {
26
26
  fetchWithBoundedOAuthErrorBodies
27
- } from "./chunk-OLGB5Y7R.js";
27
+ } from "./chunk-O3YROBH4.js";
28
28
  import {
29
29
  parseSlackMessageTs,
30
30
  parseSlackUserId
@@ -33,7 +33,7 @@ import {
33
33
  isRecord,
34
34
  logInfo,
35
35
  logWarn
36
- } from "./chunk-B6E3YA2H.js";
36
+ } from "./chunk-TONH5NXR.js";
37
37
 
38
38
  // src/chat/capabilities/router.ts
39
39
  var ProviderCredentialRouter = class {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getConversationEventStore,
3
3
  getDb
4
- } from "./chunk-B7FPRGUJ.js";
4
+ } from "./chunk-J3YIO3LE.js";
5
5
  import {
6
6
  juniorConversationAnnotations,
7
7
  juniorConversationEvents,
@@ -12,14 +12,14 @@ import {
12
12
  SANDBOX_WORKSPACE_ROOT,
13
13
  getStateAdapter,
14
14
  sleep
15
- } from "./chunk-G6XQODHM.js";
15
+ } from "./chunk-MZ6ZOWMJ.js";
16
16
  import {
17
17
  botConfig,
18
18
  completeObject,
19
19
  embedTexts,
20
20
  getSlackBotToken,
21
21
  standardModelId
22
- } from "./chunk-K5ZB3WWH.js";
22
+ } from "./chunk-5IR7SGRO.js";
23
23
  import {
24
24
  isActorUserId,
25
25
  parseActorUserId
@@ -37,7 +37,7 @@ import {
37
37
  setSpanAttributes,
38
38
  setSpanStatus,
39
39
  withSpan
40
- } from "./chunk-B6E3YA2H.js";
40
+ } from "./chunk-TONH5NXR.js";
41
41
 
42
42
  // src/chat/plugins/agent-hooks.ts
43
43
  import {
@@ -9,7 +9,7 @@ import {
9
9
  TURN_REASONING_LEVELS,
10
10
  getChatConfig,
11
11
  modelProfileSchema
12
- } from "./chunk-K5ZB3WWH.js";
12
+ } from "./chunk-5IR7SGRO.js";
13
13
  import {
14
14
  juniorDestinations
15
15
  } from "./chunk-VFUK3X5B.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-F3B2YJ76.js";
20
20
  import {
21
21
  normalizeIdentityEmail
22
- } from "./chunk-B6E3YA2H.js";
22
+ } from "./chunk-TONH5NXR.js";
23
23
 
24
24
  // src/chat/conversations/sql/store.ts
25
25
  import { randomUUID as randomUUID2 } from "crypto";