@sentry/junior 0.113.0 → 0.114.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 (51) hide show
  1. package/dist/{agent-hooks-BKEMWR3Z.js → agent-hooks-WNBUY4OB.js} +8 -8
  2. package/dist/api/conversations/detail.d.ts +24 -0
  3. package/dist/api/conversations/event-list.d.ts +24 -0
  4. package/dist/api/conversations/events.d.ts +1 -1
  5. package/dist/api/schema/conversation.d.ts +96 -0
  6. package/dist/api/schema.js +1 -1
  7. package/dist/api.js +29 -13
  8. package/dist/app.d.ts +2 -0
  9. package/dist/app.js +30 -21
  10. package/dist/{catalog-runtime-6XYOUVRZ.js → catalog-runtime-6O4M6JGA.js} +5 -5
  11. package/dist/chat/config.d.ts +1 -1
  12. package/dist/chat/conversations/history.d.ts +86 -0
  13. package/dist/chat/conversations/projection.d.ts +20 -1
  14. package/dist/chat/services/context-budget.d.ts +7 -2
  15. package/dist/chat/services/context-compaction.d.ts +28 -1
  16. package/dist/chat/services/conversation-memory.d.ts +1 -0
  17. package/dist/chat/services/provider-error.d.ts +1 -0
  18. package/dist/chat/services/turn-router.d.ts +1 -0
  19. package/dist/chat/tools/sandbox/edit-file.d.ts +1 -1
  20. package/dist/chat/tools/sandbox/text-edits.d.ts +1 -0
  21. package/dist/{chunk-36UJA3OD.js → chunk-4FUEG3QY.js} +1 -1
  22. package/dist/{chunk-NP7TYFYR.js → chunk-5CZ7RETL.js} +1 -1
  23. package/dist/{chunk-DXRPHBOU.js → chunk-6QWPVTMO.js} +72 -33
  24. package/dist/{chunk-WBB22ANL.js → chunk-ABPSDO6M.js} +6 -6
  25. package/dist/{chunk-LLKDNPYV.js → chunk-FIGAF6KL.js} +34 -2
  26. package/dist/{chunk-OXE5ZUTS.js → chunk-K2W4CK7K.js} +1 -1
  27. package/dist/{chunk-K5BXPM74.js → chunk-O4GT7LYB.js} +1 -1
  28. package/dist/{chunk-LR2SKL5Y.js → chunk-OSKEC4XU.js} +1 -1
  29. package/dist/{chunk-ZRSUCJGA.js → chunk-PM3PX42K.js} +1 -1
  30. package/dist/{chunk-QTS66GMR.js → chunk-RD7EJI7H.js} +2 -2
  31. package/dist/{chunk-UKGNSJQQ.js → chunk-S4QDH23A.js} +25 -1
  32. package/dist/{chunk-4WZ7YKDF.js → chunk-TLGM5X2M.js} +2 -2
  33. package/dist/{chunk-YJ44UT7D.js → chunk-VNNBSKCO.js} +5 -5
  34. package/dist/{chunk-3CTIAKSS.js → chunk-W6RDUAO3.js} +1 -1
  35. package/dist/{chunk-H5ON7XTE.js → chunk-WV4UJBAS.js} +369 -79
  36. package/dist/{chunk-4VKFQPCW.js → chunk-XLFBQJUO.js} +4 -4
  37. package/dist/{chunk-HMRVILWZ.js → chunk-YU6PO42Q.js} +1 -1
  38. package/dist/{chunk-RCBUZGIT.js → chunk-ZGXH3REA.js} +12 -19
  39. package/dist/cli/chat.js +19 -19
  40. package/dist/cli/check.js +6 -6
  41. package/dist/cli/plugins.js +11 -11
  42. package/dist/cli/snapshot-warmup.js +8 -8
  43. package/dist/cli/upgrade.js +5 -5
  44. package/dist/{db-2ASK6MV6.js → db-4VLP7KBF.js} +5 -5
  45. package/dist/instrumentation.js +2 -2
  46. package/dist/nitro.js +2 -2
  47. package/dist/{runner-L363K62Z.js → runner-IPXLWQOF.js} +10 -10
  48. package/dist/{skills-VCPG3NOO.js → skills-QCNZISNF.js} +6 -6
  49. package/dist/{validation-GY7AJBLC.js → validation-I2BW3UHD.js} +6 -6
  50. package/dist/version.js +1 -1
  51. package/package.json +5 -5
@@ -11,21 +11,21 @@ import {
11
11
  getPlugins,
12
12
  setPlugins,
13
13
  validatePlugins
14
- } from "./chunk-YJ44UT7D.js";
15
- import "./chunk-HMRVILWZ.js";
16
- import "./chunk-QTS66GMR.js";
17
- import "./chunk-LLKDNPYV.js";
14
+ } from "./chunk-VNNBSKCO.js";
15
+ import "./chunk-YU6PO42Q.js";
16
+ import "./chunk-RD7EJI7H.js";
17
+ import "./chunk-FIGAF6KL.js";
18
18
  import "./chunk-JQFJO5WH.js";
19
19
  import "./chunk-4ZNGQH7C.js";
20
- import "./chunk-RCBUZGIT.js";
20
+ import "./chunk-ZGXH3REA.js";
21
21
  import "./chunk-VFUK3X5B.js";
22
22
  import "./chunk-6Y5L4BOM.js";
23
23
  import "./chunk-C4MZ3GP5.js";
24
- import "./chunk-36UJA3OD.js";
24
+ import "./chunk-4FUEG3QY.js";
25
25
  import "./chunk-42WRQLJ6.js";
26
26
  import "./chunk-6GWA276C.js";
27
- import "./chunk-NP7TYFYR.js";
28
- import "./chunk-ZRSUCJGA.js";
27
+ import "./chunk-5CZ7RETL.js";
28
+ import "./chunk-PM3PX42K.js";
29
29
  import "./chunk-MLKGABMK.js";
30
30
  export {
31
31
  PluginHookDeniedError,
@@ -119,7 +119,31 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
119
119
  agent: "agent";
120
120
  }>;
121
121
  }, import("zod/v4/core").$strict>], "state">, import("zod").ZodObject<{
122
+ type: import("zod").ZodLiteral<"turn_routed">;
123
+ turnId: import("zod").ZodString;
124
+ modelProfile: import("zod").ZodString;
125
+ modelId: import("zod").ZodString;
126
+ reasoningLevel: import("zod").ZodString;
127
+ confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
128
+ source: import("zod").ZodEnum<{
129
+ configured: "configured";
130
+ inherited: "inherited";
131
+ router: "router";
132
+ }>;
133
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
122
134
  type: import("zod").ZodLiteral<"compaction">;
135
+ modelProfile: import("zod").ZodOptional<import("zod").ZodString>;
136
+ modelId: import("zod").ZodOptional<import("zod").ZodString>;
137
+ details: import("zod").ZodOptional<import("zod").ZodObject<{
138
+ reason: import("zod").ZodLiteral<"capacity">;
139
+ estimatedInputTokens: import("zod").ZodNumber;
140
+ replacementInputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
141
+ triggerTokens: import("zod").ZodNumber;
142
+ inputLimitTokens: import("zod").ZodNumber;
143
+ inputMessageCount: import("zod").ZodNumber;
144
+ retainedMessageCount: import("zod").ZodNumber;
145
+ summaryChars: import("zod").ZodNumber;
146
+ }, import("zod/v4/core").$strict>>;
123
147
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
124
148
  type: import("zod").ZodLiteral<"handoff">;
125
149
  modelProfile: import("zod").ZodString;
@@ -54,7 +54,31 @@ declare const _default: import("../route").ApiRoute<import("zod").ZodObject<{
54
54
  agent: "agent";
55
55
  }>;
56
56
  }, import("zod/v4/core").$strict>], "state">, import("zod").ZodObject<{
57
+ type: import("zod").ZodLiteral<"turn_routed">;
58
+ turnId: import("zod").ZodString;
59
+ modelProfile: import("zod").ZodString;
60
+ modelId: import("zod").ZodString;
61
+ reasoningLevel: import("zod").ZodString;
62
+ confidence: import("zod").ZodOptional<import("zod").ZodNumber>;
63
+ source: import("zod").ZodEnum<{
64
+ configured: "configured";
65
+ inherited: "inherited";
66
+ router: "router";
67
+ }>;
68
+ }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
57
69
  type: import("zod").ZodLiteral<"compaction">;
70
+ modelProfile: import("zod").ZodOptional<import("zod").ZodString>;
71
+ modelId: import("zod").ZodOptional<import("zod").ZodString>;
72
+ details: import("zod").ZodOptional<import("zod").ZodObject<{
73
+ reason: import("zod").ZodLiteral<"capacity">;
74
+ estimatedInputTokens: import("zod").ZodNumber;
75
+ replacementInputTokens: import("zod").ZodOptional<import("zod").ZodNumber>;
76
+ triggerTokens: import("zod").ZodNumber;
77
+ inputLimitTokens: import("zod").ZodNumber;
78
+ inputMessageCount: import("zod").ZodNumber;
79
+ retainedMessageCount: import("zod").ZodNumber;
80
+ summaryChars: import("zod").ZodNumber;
81
+ }, import("zod/v4/core").$strict>>;
58
82
  }, import("zod/v4/core").$strict>, import("zod").ZodObject<{
59
83
  type: import("zod").ZodLiteral<"handoff">;
60
84
  modelProfile: import("zod").ZodString;
@@ -1,7 +1,7 @@
1
1
  import type { ConversationEvent } from "@/chat/conversations/history";
2
2
  import { type ConversationReportEvent } from "../schema/conversation";
3
3
  /** Canonical event types that can contribute to the reporting projection. */
4
- export declare const conversationReportSourceEventTypes: readonly ["message", "message_handled", "agent_step", "tool_execution_started", "turn_started", "turn_completed", "turn_failed", "compaction", "handoff", "subagent_started", "subagent_ended"];
4
+ export declare const conversationReportSourceEventTypes: readonly ["message", "message_handled", "agent_step", "tool_execution_started", "turn_started", "turn_routed", "turn_completed", "turn_failed", "compaction", "handoff", "subagent_started", "subagent_ended"];
5
5
  /** Return tool result ids that may need start metadata from outside a page. */
6
6
  export declare function conversationReportToolResultIds(events: ConversationEvent[]): string[];
7
7
  /**
@@ -153,7 +153,31 @@ export declare const conversationReportEventDataSchema: z.ZodDiscriminatedUnion<
153
153
  agent: "agent";
154
154
  }>;
155
155
  }, z.core.$strict>], "state">, z.ZodObject<{
156
+ type: z.ZodLiteral<"turn_routed">;
157
+ turnId: z.ZodString;
158
+ modelProfile: z.ZodString;
159
+ modelId: z.ZodString;
160
+ reasoningLevel: z.ZodString;
161
+ confidence: z.ZodOptional<z.ZodNumber>;
162
+ source: z.ZodEnum<{
163
+ configured: "configured";
164
+ inherited: "inherited";
165
+ router: "router";
166
+ }>;
167
+ }, z.core.$strict>, z.ZodObject<{
156
168
  type: z.ZodLiteral<"compaction">;
169
+ modelProfile: z.ZodOptional<z.ZodString>;
170
+ modelId: z.ZodOptional<z.ZodString>;
171
+ details: z.ZodOptional<z.ZodObject<{
172
+ reason: z.ZodLiteral<"capacity">;
173
+ estimatedInputTokens: z.ZodNumber;
174
+ replacementInputTokens: z.ZodOptional<z.ZodNumber>;
175
+ triggerTokens: z.ZodNumber;
176
+ inputLimitTokens: z.ZodNumber;
177
+ inputMessageCount: z.ZodNumber;
178
+ retainedMessageCount: z.ZodNumber;
179
+ summaryChars: z.ZodNumber;
180
+ }, z.core.$strict>>;
157
181
  }, z.core.$strict>, z.ZodObject<{
158
182
  type: z.ZodLiteral<"handoff">;
159
183
  modelProfile: z.ZodString;
@@ -224,7 +248,31 @@ export declare const conversationReportEventSchema: z.ZodObject<{
224
248
  agent: "agent";
225
249
  }>;
226
250
  }, z.core.$strict>], "state">, z.ZodObject<{
251
+ type: z.ZodLiteral<"turn_routed">;
252
+ turnId: z.ZodString;
253
+ modelProfile: z.ZodString;
254
+ modelId: z.ZodString;
255
+ reasoningLevel: z.ZodString;
256
+ confidence: z.ZodOptional<z.ZodNumber>;
257
+ source: z.ZodEnum<{
258
+ configured: "configured";
259
+ inherited: "inherited";
260
+ router: "router";
261
+ }>;
262
+ }, z.core.$strict>, z.ZodObject<{
227
263
  type: z.ZodLiteral<"compaction">;
264
+ modelProfile: z.ZodOptional<z.ZodString>;
265
+ modelId: z.ZodOptional<z.ZodString>;
266
+ details: z.ZodOptional<z.ZodObject<{
267
+ reason: z.ZodLiteral<"capacity">;
268
+ estimatedInputTokens: z.ZodNumber;
269
+ replacementInputTokens: z.ZodOptional<z.ZodNumber>;
270
+ triggerTokens: z.ZodNumber;
271
+ inputLimitTokens: z.ZodNumber;
272
+ inputMessageCount: z.ZodNumber;
273
+ retainedMessageCount: z.ZodNumber;
274
+ summaryChars: z.ZodNumber;
275
+ }, z.core.$strict>>;
228
276
  }, z.core.$strict>, z.ZodObject<{
229
277
  type: z.ZodLiteral<"handoff">;
230
278
  modelProfile: z.ZodString;
@@ -388,7 +436,31 @@ export declare const conversationDetailReportSchema: z.ZodObject<{
388
436
  agent: "agent";
389
437
  }>;
390
438
  }, z.core.$strict>], "state">, z.ZodObject<{
439
+ type: z.ZodLiteral<"turn_routed">;
440
+ turnId: z.ZodString;
441
+ modelProfile: z.ZodString;
442
+ modelId: z.ZodString;
443
+ reasoningLevel: z.ZodString;
444
+ confidence: z.ZodOptional<z.ZodNumber>;
445
+ source: z.ZodEnum<{
446
+ configured: "configured";
447
+ inherited: "inherited";
448
+ router: "router";
449
+ }>;
450
+ }, z.core.$strict>, z.ZodObject<{
391
451
  type: z.ZodLiteral<"compaction">;
452
+ modelProfile: z.ZodOptional<z.ZodString>;
453
+ modelId: z.ZodOptional<z.ZodString>;
454
+ details: z.ZodOptional<z.ZodObject<{
455
+ reason: z.ZodLiteral<"capacity">;
456
+ estimatedInputTokens: z.ZodNumber;
457
+ replacementInputTokens: z.ZodOptional<z.ZodNumber>;
458
+ triggerTokens: z.ZodNumber;
459
+ inputLimitTokens: z.ZodNumber;
460
+ inputMessageCount: z.ZodNumber;
461
+ retainedMessageCount: z.ZodNumber;
462
+ summaryChars: z.ZodNumber;
463
+ }, z.core.$strict>>;
392
464
  }, z.core.$strict>, z.ZodObject<{
393
465
  type: z.ZodLiteral<"handoff">;
394
466
  modelProfile: z.ZodString;
@@ -473,7 +545,31 @@ export declare const conversationEventPageSchema: z.ZodObject<{
473
545
  agent: "agent";
474
546
  }>;
475
547
  }, z.core.$strict>], "state">, z.ZodObject<{
548
+ type: z.ZodLiteral<"turn_routed">;
549
+ turnId: z.ZodString;
550
+ modelProfile: z.ZodString;
551
+ modelId: z.ZodString;
552
+ reasoningLevel: z.ZodString;
553
+ confidence: z.ZodOptional<z.ZodNumber>;
554
+ source: z.ZodEnum<{
555
+ configured: "configured";
556
+ inherited: "inherited";
557
+ router: "router";
558
+ }>;
559
+ }, z.core.$strict>, z.ZodObject<{
476
560
  type: z.ZodLiteral<"compaction">;
561
+ modelProfile: z.ZodOptional<z.ZodString>;
562
+ modelId: z.ZodOptional<z.ZodString>;
563
+ details: z.ZodOptional<z.ZodObject<{
564
+ reason: z.ZodLiteral<"capacity">;
565
+ estimatedInputTokens: z.ZodNumber;
566
+ replacementInputTokens: z.ZodOptional<z.ZodNumber>;
567
+ triggerTokens: z.ZodNumber;
568
+ inputLimitTokens: z.ZodNumber;
569
+ inputMessageCount: z.ZodNumber;
570
+ retainedMessageCount: z.ZodNumber;
571
+ summaryChars: z.ZodNumber;
572
+ }, z.core.$strict>>;
477
573
  }, z.core.$strict>, z.ZodObject<{
478
574
  type: z.ZodLiteral<"handoff">;
479
575
  modelProfile: z.ZodString;
@@ -22,7 +22,7 @@ import {
22
22
  locationDirectoryReportSchema,
23
23
  locationParamsSchema,
24
24
  personParamsSchema
25
- } from "../chunk-UKGNSJQQ.js";
25
+ } from "../chunk-S4QDH23A.js";
26
26
  import {
27
27
  healthReportSchema,
28
28
  pluginOperationalReportFeedSchema,
package/dist/api.js CHANGED
@@ -18,13 +18,13 @@ import {
18
18
  locationDirectoryReportSchema,
19
19
  locationParamsSchema,
20
20
  personParamsSchema
21
- } from "./chunk-UKGNSJQQ.js";
21
+ } from "./chunk-S4QDH23A.js";
22
22
  import {
23
23
  buildSentryConversationUrl,
24
24
  formatSlackConversationRedactedLabel,
25
25
  readHealthReport,
26
26
  resolveSlackConversationContextFromThreadId
27
- } from "./chunk-K5BXPM74.js";
27
+ } from "./chunk-O4GT7LYB.js";
28
28
  import {
29
29
  healthReportSchema,
30
30
  pluginOperationalReportFeedSchema,
@@ -37,12 +37,12 @@ import {
37
37
  hasAgentTurnUsage
38
38
  } from "./chunk-MU6HHZEN.js";
39
39
  import "./chunk-PDO5BLNM.js";
40
- import "./chunk-QTS66GMR.js";
40
+ import "./chunk-RD7EJI7H.js";
41
41
  import {
42
42
  decodeStoredConversationEvent,
43
43
  getDb,
44
44
  getSqlExecutor
45
- } from "./chunk-LLKDNPYV.js";
45
+ } from "./chunk-FIGAF6KL.js";
46
46
  import {
47
47
  juniorConversationEvents,
48
48
  juniorConversations,
@@ -50,7 +50,7 @@ import {
50
50
  juniorUsers
51
51
  } from "./chunk-JQFJO5WH.js";
52
52
  import "./chunk-4ZNGQH7C.js";
53
- import "./chunk-RCBUZGIT.js";
53
+ import "./chunk-ZGXH3REA.js";
54
54
  import {
55
55
  juniorDestinations
56
56
  } from "./chunk-VFUK3X5B.js";
@@ -58,11 +58,11 @@ import {
58
58
  canExposeConversationPayload,
59
59
  parseSlackThreadId
60
60
  } from "./chunk-6Y5L4BOM.js";
61
- import "./chunk-36UJA3OD.js";
61
+ import "./chunk-4FUEG3QY.js";
62
62
  import "./chunk-42WRQLJ6.js";
63
63
  import "./chunk-6GWA276C.js";
64
- import "./chunk-NP7TYFYR.js";
65
- import "./chunk-ZRSUCJGA.js";
64
+ import "./chunk-5CZ7RETL.js";
65
+ import "./chunk-PM3PX42K.js";
66
66
  import "./chunk-MLKGABMK.js";
67
67
 
68
68
  // src/api.ts
@@ -342,6 +342,7 @@ var conversationReportSourceEventTypes = [
342
342
  "agent_step",
343
343
  "tool_execution_started",
344
344
  "turn_started",
345
+ "turn_routed",
345
346
  "turn_completed",
346
347
  "turn_failed",
347
348
  "compaction",
@@ -474,6 +475,16 @@ function reportEventData(args) {
474
475
  turnId: data.turnId,
475
476
  state: "started"
476
477
  };
478
+ case "turn_routed":
479
+ return {
480
+ type: "turn_routed",
481
+ turnId: data.turnId,
482
+ modelProfile: data.modelProfile,
483
+ modelId: data.modelId,
484
+ reasoningLevel: data.reasoningLevel,
485
+ ...data.confidence !== void 0 ? { confidence: data.confidence } : {},
486
+ source: data.source
487
+ };
477
488
  case "turn_completed":
478
489
  return {
479
490
  type: "turn_lifecycle",
@@ -488,7 +499,12 @@ function reportEventData(args) {
488
499
  failureKind: data.failureCode === "delivery_failed" ? "delivery" : "agent"
489
500
  };
490
501
  case "compaction":
491
- return { type: "compaction" };
502
+ return {
503
+ type: "compaction",
504
+ modelProfile: data.modelProfile,
505
+ modelId: data.modelId,
506
+ ...data.details ? { details: data.details } : {}
507
+ };
492
508
  default:
493
509
  return void 0;
494
510
  }
@@ -2563,7 +2579,7 @@ function readDescriptionText(home) {
2563
2579
  }
2564
2580
  }
2565
2581
  async function readSkillReports() {
2566
- const { discoverSkills } = await import("./skills-VCPG3NOO.js");
2582
+ const { discoverSkills } = await import("./skills-QCNZISNF.js");
2567
2583
  const skills = await discoverSkills();
2568
2584
  return skillReportsSchema.parse(
2569
2585
  skills.map((skill) => ({
@@ -2573,7 +2589,7 @@ async function readSkillReports() {
2573
2589
  );
2574
2590
  }
2575
2591
  async function readPluginReports() {
2576
- const { pluginCatalogRuntime } = await import("./catalog-runtime-6XYOUVRZ.js");
2592
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-6O4M6JGA.js");
2577
2593
  return pluginReportsSchema.parse(
2578
2594
  pluginCatalogRuntime.getProviders().map((plugin) => ({
2579
2595
  name: plugin.manifest.name
@@ -2583,7 +2599,7 @@ async function readPluginReports() {
2583
2599
  async function readRuntimeInfoReport() {
2584
2600
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
2585
2601
  import("./discovery-RMHYSRL7.js"),
2586
- import("./catalog-runtime-6XYOUVRZ.js"),
2602
+ import("./catalog-runtime-6O4M6JGA.js"),
2587
2603
  readPluginReports(),
2588
2604
  readSkillReports()
2589
2605
  ]);
@@ -2599,7 +2615,7 @@ async function readRuntimeInfoReport() {
2599
2615
  }
2600
2616
  async function readPluginOperationalReportFeed() {
2601
2617
  const nowMs = Date.now();
2602
- const { getPluginOperationalReports } = await import("./agent-hooks-BKEMWR3Z.js");
2618
+ const { getPluginOperationalReports } = await import("./agent-hooks-WNBUY4OB.js");
2603
2619
  return pluginOperationalReportFeedSchema.parse({
2604
2620
  source: "plugins",
2605
2621
  generatedAt: new Date(nowMs).toISOString(),
package/dist/app.d.ts CHANGED
@@ -45,6 +45,8 @@ export interface JuniorDashboardOptions {
45
45
  basePath?: string;
46
46
  /** Public deployment origin used for auth callbacks and external links. */
47
47
  baseURL?: string;
48
+ /** Expose the config-gated component gallery for local visual QA. */
49
+ componentGallery?: boolean;
48
50
  /** Disable dashboard route mounting while preserving serializable config shape. */
49
51
  disabled?: boolean;
50
52
  /** Replace conversation API responses with dashboard visual-QA fixtures. */
package/dist/app.js CHANGED
@@ -6,14 +6,14 @@ import {
6
6
  processPluginTask,
7
7
  requireTurnFailureEventId,
8
8
  scheduleSessionCompletedPluginTasks
9
- } from "./chunk-WBB22ANL.js";
9
+ } from "./chunk-ABPSDO6M.js";
10
10
  import {
11
11
  GET,
12
12
  buildSentryConversationUrl,
13
13
  conversationVisibilityFromSlackChannelType,
14
14
  resolveSlackChannelTypeFromMessage,
15
15
  resolveSlackConversationContext
16
- } from "./chunk-K5BXPM74.js";
16
+ } from "./chunk-O4GT7LYB.js";
17
17
  import "./chunk-2ZTTXTSZ.js";
18
18
  import {
19
19
  ConversationQueueMessageRejectedError,
@@ -31,7 +31,7 @@ import {
31
31
  import {
32
32
  validatePluginEgressCredentialHooks,
33
33
  validatePluginRegistrations
34
- } from "./chunk-3CTIAKSS.js";
34
+ } from "./chunk-W6RDUAO3.js";
35
35
  import {
36
36
  defineJuniorPlugins,
37
37
  pluginCatalogConfigFromEnv,
@@ -84,7 +84,7 @@ import {
84
84
  splitSlackReplyText,
85
85
  startOAuthFlow,
86
86
  truncateStatusText
87
- } from "./chunk-H5ON7XTE.js";
87
+ } from "./chunk-WV4UJBAS.js";
88
88
  import {
89
89
  ConversationTurnBoundaryError,
90
90
  CooperativeTurnYieldError,
@@ -145,8 +145,8 @@ import {
145
145
  turnHasReply,
146
146
  updateConversationStats,
147
147
  upsertConversationMessage
148
- } from "./chunk-DXRPHBOU.js";
149
- import "./chunk-4VKFQPCW.js";
148
+ } from "./chunk-6QWPVTMO.js";
149
+ import "./chunk-XLFBQJUO.js";
150
150
  import "./chunk-MU6HHZEN.js";
151
151
  import "./chunk-PDO5BLNM.js";
152
152
  import "./chunk-UIE3R5XU.js";
@@ -165,12 +165,12 @@ import {
165
165
  validatePlugins,
166
166
  verifyScheduledTaskCredentialSubject,
167
167
  verifySlackDirectCredentialSubject
168
- } from "./chunk-YJ44UT7D.js";
168
+ } from "./chunk-VNNBSKCO.js";
169
169
  import {
170
170
  acquireActiveLock,
171
171
  getDefaultRedisStateAdapterFor,
172
172
  getStateAdapter
173
- } from "./chunk-HMRVILWZ.js";
173
+ } from "./chunk-YU6PO42Q.js";
174
174
  import {
175
175
  SlackActionError,
176
176
  downloadPrivateSlackFile,
@@ -181,7 +181,7 @@ import {
181
181
  normalizeSlackConversationId,
182
182
  runWithSlackInstallationToken,
183
183
  runWithWorkspaceTeamId
184
- } from "./chunk-QTS66GMR.js";
184
+ } from "./chunk-RD7EJI7H.js";
185
185
  import {
186
186
  contextProvenance,
187
187
  createSlackDestination,
@@ -195,7 +195,7 @@ import {
195
195
  requireSlackDestination,
196
196
  sameDestination,
197
197
  withConversationEventLock
198
- } from "./chunk-LLKDNPYV.js";
198
+ } from "./chunk-FIGAF6KL.js";
199
199
  import {
200
200
  juniorConversationEvents,
201
201
  juniorConversations
@@ -205,6 +205,7 @@ import {
205
205
  } from "./chunk-4ZNGQH7C.js";
206
206
  import {
207
207
  FUNCTION_TIMEOUT_BUFFER_SECONDS,
208
+ STANDARD_MODEL_PROFILE,
208
209
  botConfig,
209
210
  completeObject,
210
211
  completeText,
@@ -222,7 +223,7 @@ import {
222
223
  normalizeSlackEmojiName,
223
224
  setSlackReactionConfig,
224
225
  standardModelId
225
- } from "./chunk-RCBUZGIT.js";
226
+ } from "./chunk-ZGXH3REA.js";
226
227
  import {
227
228
  juniorDestinations
228
229
  } from "./chunk-VFUK3X5B.js";
@@ -234,16 +235,16 @@ import {
234
235
  } from "./chunk-6Y5L4BOM.js";
235
236
  import {
236
237
  discoverSkills
237
- } from "./chunk-4WZ7YKDF.js";
238
+ } from "./chunk-TLGM5X2M.js";
238
239
  import {
239
240
  pluginCatalogRuntime
240
- } from "./chunk-LR2SKL5Y.js";
241
+ } from "./chunk-OSKEC4XU.js";
241
242
  import {
242
243
  buildOAuthTokenRequest,
243
244
  credentialSubjectSchema,
244
245
  hasRequiredOAuthScope,
245
246
  parseOAuthTokenResponse
246
- } from "./chunk-OXE5ZUTS.js";
247
+ } from "./chunk-K2W4CK7K.js";
247
248
  import {
248
249
  createActor,
249
250
  createSlackActor,
@@ -268,7 +269,7 @@ import {
268
269
  setTags,
269
270
  withContext,
270
271
  withSpan
271
- } from "./chunk-36UJA3OD.js";
272
+ } from "./chunk-4FUEG3QY.js";
272
273
  import {
273
274
  isRecord,
274
275
  parseSlackChannelId,
@@ -285,10 +286,10 @@ import {
285
286
  } from "./chunk-3V7OFJZC.js";
286
287
  import {
287
288
  JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE
288
- } from "./chunk-NP7TYFYR.js";
289
+ } from "./chunk-5CZ7RETL.js";
289
290
  import {
290
291
  JUNIOR_VERSION
291
- } from "./chunk-ZRSUCJGA.js";
292
+ } from "./chunk-PM3PX42K.js";
292
293
  import "./chunk-MLKGABMK.js";
293
294
 
294
295
  // src/app.ts
@@ -10764,13 +10765,14 @@ async function loadPiMessagesForTurn(args) {
10764
10765
  };
10765
10766
  }
10766
10767
  }
10767
- const projection = await loadProjection({
10768
+ const projection = await loadConversationProjection({
10768
10769
  conversationId: args.conversationId
10769
10770
  });
10770
- if (projection.length > 0) {
10771
+ if (projection.messages.length > 0) {
10771
10772
  return {
10772
10773
  canCompact: true,
10773
- piMessages: projection
10774
+ modelProfile: projection.modelProfile,
10775
+ piMessages: projection.messages
10774
10776
  };
10775
10777
  }
10776
10778
  return {};
@@ -11340,7 +11342,11 @@ function createReplyToThread(deps) {
11340
11342
  runId
11341
11343
  },
11342
11344
  onCompactionStart: () => status.update(compactingStatus),
11343
- piMessages
11345
+ piMessages,
11346
+ modelId: modelIdForProfile(
11347
+ botConfig,
11348
+ loadedPiMessages.modelProfile ?? STANDARD_MODEL_PROFILE
11349
+ )
11344
11350
  });
11345
11351
  if (compaction.compacted) {
11346
11352
  piMessages = compaction.piMessages;
@@ -13166,6 +13172,9 @@ function dashboardHostRoutePaths(dashboard) {
13166
13172
  `${peoplePath}/*`,
13167
13173
  pagePath("system")
13168
13174
  ];
13175
+ if (dashboard.componentGallery) {
13176
+ pagePaths.push(pagePath("dev"), `${pagePath("dev")}/*`);
13177
+ }
13169
13178
  const loginPath = basePath === "/" ? "/auth/login" : `${basePath}/auth/login`;
13170
13179
  return [
13171
13180
  ...pagePaths,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-LR2SKL5Y.js";
4
- import "./chunk-OXE5ZUTS.js";
3
+ } from "./chunk-OSKEC4XU.js";
4
+ import "./chunk-K2W4CK7K.js";
5
5
  import "./chunk-C4MZ3GP5.js";
6
- import "./chunk-36UJA3OD.js";
6
+ import "./chunk-4FUEG3QY.js";
7
7
  import "./chunk-42WRQLJ6.js";
8
8
  import "./chunk-6GWA276C.js";
9
9
  import "./chunk-B3IT5END.js";
10
10
  import "./chunk-3V7OFJZC.js";
11
- import "./chunk-NP7TYFYR.js";
12
- import "./chunk-ZRSUCJGA.js";
11
+ import "./chunk-5CZ7RETL.js";
12
+ import "./chunk-PM3PX42K.js";
13
13
  import "./chunk-MLKGABMK.js";
14
14
  export {
15
15
  pluginCatalogRuntime
@@ -8,13 +8,13 @@ export declare const FUNCTION_TIMEOUT_BUFFER_SECONDS = 20;
8
8
  /** Additional buffer that makes conversation work yield before the hard request deadline. */
9
9
  export declare const CONVERSATION_WORK_SOFT_YIELD_BUFFER_SECONDS = 40;
10
10
  export interface BotConfig {
11
+ contextWindowTokens: number;
11
12
  embeddingModelId: string;
12
13
  fastModelId: string;
13
14
  imageGenerationModelId: string;
14
15
  loadingMessages: string[];
15
16
  profiles: Readonly<Record<string, ExecutionProfileConfig>>;
16
17
  reasoningLevel?: TurnReasoningLevel;
17
- modelContextWindowTokens?: number;
18
18
  visionModelId?: string;
19
19
  maxSlicesPerTurn: number;
20
20
  turnTimeoutMs: number;