@sentry/junior 0.111.0 → 0.113.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 (57) hide show
  1. package/dist/{agent-hooks-QQ2IWKOP.js → agent-hooks-BKEMWR3Z.js} +8 -8
  2. package/dist/api/conversations/cursor.d.ts +17 -0
  3. package/dist/api/conversations/detail.d.ts +16 -18
  4. package/dist/api/conversations/event-list.d.ts +91 -0
  5. package/dist/api/conversations/event-page.d.ts +18 -0
  6. package/dist/api/conversations/events.d.ts +5 -1
  7. package/dist/api/conversations/projection.d.ts +6 -1
  8. package/dist/api/people/profile.d.ts +1 -0
  9. package/dist/api/schema/conversation.d.ts +132 -51
  10. package/dist/api/schema/person.d.ts +2 -0
  11. package/dist/api/schema.d.ts +2 -2
  12. package/dist/api/schema.js +7 -1
  13. package/dist/api.js +445 -138
  14. package/dist/app.js +50 -27
  15. package/dist/{catalog-runtime-D22W6QEJ.js → catalog-runtime-6XYOUVRZ.js} +5 -5
  16. package/dist/chat/pi/transcript.d.ts +2 -0
  17. package/dist/chat/runtime/agent-run-outcome.d.ts +1 -0
  18. package/dist/chat/services/auth-pause-response.d.ts +1 -1
  19. package/dist/chat/services/auth-pause.d.ts +2 -1
  20. package/dist/chat/services/mcp-auth-orchestration.d.ts +1 -1
  21. package/dist/chat/services/plugin-auth-orchestration.d.ts +2 -1
  22. package/dist/chat/services/provider-error.d.ts +39 -0
  23. package/dist/chat/services/provider-retry.d.ts +3 -6
  24. package/dist/chat/task-execution/state.d.ts +2 -2
  25. package/dist/chat/task-execution/store.d.ts +1 -1
  26. package/dist/chat/tools/resource-events.d.ts +3 -129
  27. package/dist/{chunk-J7APPQIJ.js → chunk-36UJA3OD.js} +1 -1
  28. package/dist/{chunk-Z2W4SJZ7.js → chunk-3CTIAKSS.js} +1 -1
  29. package/dist/{chunk-B45FPP2A.js → chunk-4VKFQPCW.js} +4 -4
  30. package/dist/{chunk-BTRNMS6A.js → chunk-4WZ7YKDF.js} +2 -2
  31. package/dist/{chunk-SL3ZKNLQ.js → chunk-DXRPHBOU.js} +132 -23
  32. package/dist/{chunk-OOLU34J4.js → chunk-H5ON7XTE.js} +125 -62
  33. package/dist/{chunk-PYKKM4MM.js → chunk-HMRVILWZ.js} +1 -1
  34. package/dist/{chunk-L6JPKANW.js → chunk-K5BXPM74.js} +1 -1
  35. package/dist/{chunk-ZRZ4SVWG.js → chunk-LLKDNPYV.js} +2 -2
  36. package/dist/{chunk-WSRBFHPX.js → chunk-LR2SKL5Y.js} +1 -1
  37. package/dist/{chunk-MPVES2IC.js → chunk-NP7TYFYR.js} +1 -1
  38. package/dist/{chunk-XQAYFRWT.js → chunk-OXE5ZUTS.js} +1 -1
  39. package/dist/{chunk-IFAHK54X.js → chunk-QTS66GMR.js} +2 -2
  40. package/dist/{chunk-NQLWOTY4.js → chunk-RCBUZGIT.js} +217 -199
  41. package/dist/{chunk-FPK7XY3F.js → chunk-UKGNSJQQ.js} +51 -42
  42. package/dist/{chunk-PZELBSHC.js → chunk-WBB22ANL.js} +20 -15
  43. package/dist/{chunk-QQIVLZW4.js → chunk-YJ44UT7D.js} +5 -5
  44. package/dist/{chunk-Z4G3WCP3.js → chunk-ZRSUCJGA.js} +1 -1
  45. package/dist/cli/chat.js +19 -19
  46. package/dist/cli/check.js +6 -6
  47. package/dist/cli/plugins.js +11 -11
  48. package/dist/cli/snapshot-warmup.js +8 -8
  49. package/dist/cli/upgrade.js +5 -5
  50. package/dist/{db-WXQOQESG.js → db-2ASK6MV6.js} +5 -5
  51. package/dist/instrumentation.js +2 -2
  52. package/dist/nitro.js +2 -2
  53. package/dist/{runner-4QY4XH4B.js → runner-L363K62Z.js} +12 -13
  54. package/dist/{skills-P5MU4EBX.js → skills-VCPG3NOO.js} +6 -6
  55. package/dist/{validation-PQF5OP6T.js → validation-GY7AJBLC.js} +6 -6
  56. package/dist/version.js +1 -1
  57. package/package.json +5 -5
@@ -24,6 +24,13 @@ var conversationSurfaceSchema = z2.enum([
24
24
  ]);
25
25
  var conversationUsageSchema = usageSchema;
26
26
  var conversationParamsSchema = z2.object({ conversationId: z2.string().min(1) }).strict();
27
+ var conversationDetailQuerySchema = z2.object({
28
+ limit: z2.coerce.number().int().min(1).max(1e3).default(500)
29
+ }).strict();
30
+ var conversationEventsQuerySchema = z2.object({
31
+ before: z2.string().min(1),
32
+ limit: z2.coerce.number().int().min(1).max(1e3).default(500)
33
+ }).strict();
27
34
  var conversationFeedQuerySchema = z2.object({
28
35
  actorEmail: z2.string().trim().email().transform((value) => value.toLowerCase()).optional()
29
36
  }).strict();
@@ -74,26 +81,26 @@ var conversationReportMessageHandledEventDataSchema = z2.object({
74
81
  type: z2.literal("message_handled"),
75
82
  messageId: z2.string().min(1)
76
83
  }).strict();
77
- var conversationReportToolStartedEventDataSchema = z2.object({
78
- type: z2.literal("tool_started"),
79
- toolCallId: z2.string().min(1),
80
- name: z2.string().min(1)
81
- }).strict();
82
84
  var conversationReportToolCallSchema = z2.object({
83
85
  toolCallId: z2.string().min(1),
84
86
  name: z2.string().min(1),
85
- input: z2.unknown().optional()
86
- }).strict();
87
+ status: z2.enum(["running", "completed", "error"]),
88
+ startedAt: z2.string().datetime().optional(),
89
+ startedSeq: z2.number().int().nonnegative().optional(),
90
+ input: z2.unknown().optional(),
91
+ output: z2.unknown().optional()
92
+ }).strict().superRefine((call, context) => {
93
+ if (call.startedAt === void 0 !== (call.startedSeq === void 0)) {
94
+ context.addIssue({
95
+ code: "custom",
96
+ message: "tool start sequence and timestamp must be provided together"
97
+ });
98
+ }
99
+ });
87
100
  var conversationReportToolCallsEventDataSchema = z2.object({
88
101
  type: z2.literal("tool_calls"),
89
102
  calls: z2.array(conversationReportToolCallSchema).min(1)
90
103
  }).strict();
91
- var conversationReportToolResultEventDataSchema = z2.object({
92
- type: z2.literal("tool_result"),
93
- toolCallId: z2.string().min(1),
94
- outcome: z2.enum(["completed", "error"]),
95
- output: z2.unknown().optional()
96
- }).strict();
97
104
  var conversationReportTurnLifecycleEventDataSchema = z2.discriminatedUnion(
98
105
  "state",
99
106
  [
@@ -118,28 +125,23 @@ var conversationReportHandoffEventDataSchema = z2.object({
118
125
  reasoningLevel: z2.string().min(1).optional(),
119
126
  triggeringToolCallId: z2.string().min(1).optional()
120
127
  }).strict();
121
- var conversationReportSubagentStartedEventDataSchema = z2.object({
122
- type: z2.literal("subagent_started"),
128
+ var conversationReportSubagentEventDataSchema = z2.object({
129
+ type: z2.literal("subagent"),
130
+ startedSeq: z2.number().int().nonnegative(),
131
+ startedAt: z2.string().datetime(),
123
132
  childConversationId: z2.string().min(1),
124
133
  subagentKind: z2.string().min(1),
125
- parentToolCallId: z2.string().min(1).optional()
126
- }).strict();
127
- var conversationReportSubagentEndedEventDataSchema = z2.object({
128
- type: z2.literal("subagent_ended"),
129
- startedSeq: z2.number().int().nonnegative(),
130
- outcome: z2.enum(["success", "error", "aborted"])
134
+ parentToolCallId: z2.string().min(1).optional(),
135
+ status: z2.enum(["running", "completed", "error", "aborted"])
131
136
  }).strict();
132
137
  var conversationReportEventDataSchema = z2.discriminatedUnion("type", [
133
138
  conversationReportMessageEventDataSchema,
134
139
  conversationReportMessageHandledEventDataSchema,
135
- conversationReportToolStartedEventDataSchema,
136
140
  conversationReportToolCallsEventDataSchema,
137
- conversationReportToolResultEventDataSchema,
138
141
  conversationReportTurnLifecycleEventDataSchema,
139
142
  conversationReportCompactionEventDataSchema,
140
143
  conversationReportHandoffEventDataSchema,
141
- conversationReportSubagentStartedEventDataSchema,
142
- conversationReportSubagentEndedEventDataSchema
144
+ conversationReportSubagentEventDataSchema
143
145
  ]);
144
146
  var conversationReportEventSchema = z2.object({
145
147
  seq: z2.number().int().nonnegative(),
@@ -161,13 +163,7 @@ var conversationModelUsageSchema = z2.object({
161
163
  modelId: z2.string(),
162
164
  usage: conversationUsageSchema
163
165
  }).strict();
164
- var conversationDetailReportSchema = conversationSummaryReportSchema.extend({
165
- modelUsage: z2.array(conversationModelUsageSchema).optional(),
166
- events: z2.array(conversationReportEventSchema),
167
- eventHistory: conversationEventHistorySchema,
168
- generatedAt: z2.string(),
169
- sentryConversationUrl: z2.string().optional()
170
- }).strict().superRefine((report, context) => {
166
+ function validateConversationEvents(report, context) {
171
167
  if (report.eventHistory.status === "expired" && report.events.length > 0) {
172
168
  context.addIssue({
173
169
  code: "custom",
@@ -201,22 +197,31 @@ var conversationDetailReportSchema = conversationSummaryReportSchema.extend({
201
197
  });
202
198
  }
203
199
  }
204
- if (report.eventHistory.status === "redacted" && event.data.type === "tool_calls" && event.data.calls.some((call) => call.input !== void 0)) {
205
- context.addIssue({
206
- code: "custom",
207
- path: ["events", index, "data"],
208
- message: "redacted event history must redact tool inputs"
209
- });
210
- }
211
- if (report.eventHistory.status === "redacted" && event.data.type === "tool_result" && event.data.output !== void 0) {
200
+ if (report.eventHistory.status === "redacted" && event.data.type === "tool_calls" && event.data.calls.some(
201
+ (call) => call.input !== void 0 || call.output !== void 0
202
+ )) {
212
203
  context.addIssue({
213
204
  code: "custom",
214
205
  path: ["events", index, "data"],
215
- message: "redacted event history must redact tool outputs"
206
+ message: "redacted event history must redact tool payloads"
216
207
  });
217
208
  }
218
209
  }
219
- });
210
+ }
211
+ var conversationDetailReportSchema = conversationSummaryReportSchema.extend({
212
+ modelUsage: z2.array(conversationModelUsageSchema).optional(),
213
+ events: z2.array(conversationReportEventSchema),
214
+ eventHistory: conversationEventHistorySchema,
215
+ previousCursor: z2.string().min(1).optional(),
216
+ generatedAt: z2.string(),
217
+ sentryConversationUrl: z2.string().optional()
218
+ }).strict().superRefine(validateConversationEvents);
219
+ var conversationEventPageSchema = z2.object({
220
+ events: z2.array(conversationReportEventSchema),
221
+ eventHistory: conversationEventHistorySchema,
222
+ previousCursor: z2.string().min(1).optional(),
223
+ generatedAt: z2.string()
224
+ }).strict().superRefine(validateConversationEvents);
220
225
  var conversationFeedSchema = z2.object({
221
226
  conversations: z2.array(conversationSummaryReportSchema),
222
227
  source: z2.literal("conversation_index"),
@@ -329,6 +334,7 @@ var peopleConversationStatsItemSchema = conversationStatsItemSchema.omit({ costU
329
334
  var actorActivityDayReportSchema = z5.object({
330
335
  active: z5.number(),
331
336
  conversations: z5.number(),
337
+ costUsd: z5.number().optional(),
332
338
  date: z5.string(),
333
339
  durationMs: z5.number(),
334
340
  failed: z5.number(),
@@ -377,6 +383,8 @@ var actorProfileReportSchema = z5.object({
377
383
  export {
378
384
  apiErrorSchema,
379
385
  conversationParamsSchema,
386
+ conversationDetailQuerySchema,
387
+ conversationEventsQuerySchema,
380
388
  conversationFeedQuerySchema,
381
389
  archiveConversationBodySchema,
382
390
  archiveConversationResponseSchema,
@@ -385,6 +393,7 @@ export {
385
393
  conversationReportEventSchema,
386
394
  conversationEventHistorySchema,
387
395
  conversationDetailReportSchema,
396
+ conversationEventPageSchema,
388
397
  conversationFeedSchema,
389
398
  conversationStatsReportSchema,
390
399
  dailyConversationActivitySchema,
@@ -9,36 +9,39 @@ import {
9
9
  getAgentTurnSessionRecord,
10
10
  getInterruptionMarker,
11
11
  getPersistedThreadState,
12
+ getPiMessageRole,
12
13
  hydrateConversationMessages,
14
+ instructionTextForProjection,
15
+ isToolResultError,
16
+ isToolResultMessage,
13
17
  markConversationMessage,
14
18
  markTurnCompleted,
15
19
  mergeArtifactsState,
20
+ normalizeToolNameFromResult,
21
+ stripRuntimeTurnContext,
16
22
  updateConversationStats
17
- } from "./chunk-SL3ZKNLQ.js";
23
+ } from "./chunk-DXRPHBOU.js";
18
24
  import {
19
25
  createPluginEmbedder,
20
26
  createPluginLogger,
21
27
  createPluginModel,
22
28
  createPluginState,
23
29
  getPlugins
24
- } from "./chunk-QQIVLZW4.js";
30
+ } from "./chunk-YJ44UT7D.js";
25
31
  import {
26
32
  getStateAdapter
27
- } from "./chunk-PYKKM4MM.js";
33
+ } from "./chunk-HMRVILWZ.js";
28
34
  import {
29
35
  getDb
30
- } from "./chunk-ZRZ4SVWG.js";
36
+ } from "./chunk-LLKDNPYV.js";
31
37
  import {
32
- getPiMessageRole,
33
- instructionTextForProjection,
34
- isToolResultError,
35
- isToolResultMessage,
36
- normalizeToolNameFromResult,
37
- stripRuntimeTurnContext
38
- } from "./chunk-NQLWOTY4.js";
38
+ ProviderError,
39
+ getProviderErrorAttributes,
40
+ getProviderErrorUserMessage
41
+ } from "./chunk-RCBUZGIT.js";
39
42
  import {
40
43
  buildTurnFailureResponse
41
- } from "./chunk-J7APPQIJ.js";
44
+ } from "./chunk-36UJA3OD.js";
42
45
  import {
43
46
  parseSlackMessageTs
44
47
  } from "./chunk-42WRQLJ6.js";
@@ -70,7 +73,7 @@ function getFailureCapture(reply) {
70
73
  error: reply.diagnostics.providerError ?? new Error(
71
74
  reply.diagnostics.errorMessage ?? "Provider error without explicit message"
72
75
  ),
73
- attributes: {},
76
+ attributes: reply.diagnostics.providerError instanceof ProviderError ? getProviderErrorAttributes(reply.diagnostics.providerError) : {},
74
77
  body: "Agent turn failed with provider error"
75
78
  };
76
79
  }
@@ -98,7 +101,7 @@ function getAgentTurnDiagnosticsAttributes(reply) {
98
101
  ...reply.diagnostics.stopReason ? {
99
102
  "gen_ai.response.finish_reasons": [reply.diagnostics.stopReason]
100
103
  } : {},
101
- ...reply.diagnostics.errorMessage ? { "exception.message": reply.diagnostics.errorMessage } : {}
104
+ ...reply.diagnostics.errorMessage && reply.diagnostics.outcome !== "provider_error" ? { "exception.message": reply.diagnostics.errorMessage } : {}
102
105
  };
103
106
  }
104
107
  function finalizeFailedTurnReplyWithEvent(args) {
@@ -121,11 +124,13 @@ function finalizeFailedTurnReplyWithEvent(args) {
121
124
  capture.eventName
122
125
  );
123
126
  const providerPartialText = args.reply.diagnostics.outcome === "provider_error" && args.reply.diagnostics.assistantMessageCount > 0 ? args.reply.text.trim() : "";
127
+ const providerUserMessage = args.reply.diagnostics.providerError instanceof ProviderError ? getProviderErrorUserMessage(args.reply.diagnostics.providerError) : "";
128
+ const failureText = providerUserMessage ? `${providerUserMessage} Reference: \`event_id=${eventId}\`.` : buildTurnFailureResponse(eventId);
124
129
  return {
125
130
  eventId,
126
131
  reply: {
127
132
  ...args.reply,
128
- text: providerPartialText ? `${providerPartialText}${getInterruptionMarker()}` : buildTurnFailureResponse(eventId)
133
+ text: providerPartialText ? `${providerPartialText}${getInterruptionMarker()}` : failureText
129
134
  }
130
135
  };
131
136
  }
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  SANDBOX_WORKSPACE_ROOT,
3
3
  getStateAdapter
4
- } from "./chunk-PYKKM4MM.js";
4
+ } from "./chunk-HMRVILWZ.js";
5
5
  import {
6
6
  isConversationChannel,
7
7
  isConversationScopedChannel,
8
8
  isDmChannel,
9
9
  normalizeSlackConversationId
10
- } from "./chunk-IFAHK54X.js";
10
+ } from "./chunk-QTS66GMR.js";
11
11
  import {
12
12
  getDb
13
- } from "./chunk-ZRZ4SVWG.js";
13
+ } from "./chunk-LLKDNPYV.js";
14
14
  import {
15
15
  botConfig,
16
16
  completeObject,
17
17
  embedTexts,
18
18
  standardModelId
19
- } from "./chunk-NQLWOTY4.js";
19
+ } from "./chunk-RCBUZGIT.js";
20
20
  import {
21
21
  isActorUserId,
22
22
  parseActorUserId
@@ -25,7 +25,7 @@ import {
25
25
  logException,
26
26
  logInfo,
27
27
  logWarn
28
- } from "./chunk-J7APPQIJ.js";
28
+ } from "./chunk-36UJA3OD.js";
29
29
  import {
30
30
  parseSlackChannelReferenceId,
31
31
  parseSlackMessageTs,
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@sentry/junior",
4
- version: "0.111.0",
4
+ version: "0.113.0",
5
5
  private: false,
6
6
  publishConfig: {
7
7
  access: "public"
package/dist/cli/chat.js CHANGED
@@ -1,35 +1,35 @@
1
1
  import {
2
2
  createAgentRunner,
3
3
  executeAgentRun
4
- } from "../chunk-OOLU34J4.js";
5
- import "../chunk-SL3ZKNLQ.js";
6
- import "../chunk-B45FPP2A.js";
4
+ } from "../chunk-H5ON7XTE.js";
5
+ import "../chunk-DXRPHBOU.js";
6
+ import "../chunk-4VKFQPCW.js";
7
7
  import "../chunk-MU6HHZEN.js";
8
8
  import "../chunk-PDO5BLNM.js";
9
9
  import "../chunk-UIE3R5XU.js";
10
10
  import {
11
11
  loadAppPluginSet
12
12
  } from "../chunk-Y2CM7HXH.js";
13
- import "../chunk-QQIVLZW4.js";
14
- import "../chunk-PYKKM4MM.js";
15
- import "../chunk-IFAHK54X.js";
16
- import "../chunk-ZRZ4SVWG.js";
13
+ import "../chunk-YJ44UT7D.js";
14
+ import "../chunk-HMRVILWZ.js";
15
+ import "../chunk-QTS66GMR.js";
16
+ import "../chunk-LLKDNPYV.js";
17
17
  import "../chunk-JQFJO5WH.js";
18
18
  import "../chunk-4ZNGQH7C.js";
19
- import "../chunk-NQLWOTY4.js";
19
+ import "../chunk-RCBUZGIT.js";
20
20
  import "../chunk-VFUK3X5B.js";
21
21
  import "../chunk-6Y5L4BOM.js";
22
- import "../chunk-BTRNMS6A.js";
23
- import "../chunk-WSRBFHPX.js";
24
- import "../chunk-XQAYFRWT.js";
22
+ import "../chunk-4WZ7YKDF.js";
23
+ import "../chunk-LR2SKL5Y.js";
24
+ import "../chunk-OXE5ZUTS.js";
25
25
  import "../chunk-C4MZ3GP5.js";
26
- import "../chunk-J7APPQIJ.js";
26
+ import "../chunk-36UJA3OD.js";
27
27
  import "../chunk-42WRQLJ6.js";
28
28
  import "../chunk-6GWA276C.js";
29
29
  import "../chunk-B3IT5END.js";
30
30
  import "../chunk-3V7OFJZC.js";
31
- import "../chunk-MPVES2IC.js";
32
- import "../chunk-Z4G3WCP3.js";
31
+ import "../chunk-NP7TYFYR.js";
32
+ import "../chunk-ZRSUCJGA.js";
33
33
  import "../chunk-MLKGABMK.js";
34
34
 
35
35
  // src/cli/chat.ts
@@ -152,10 +152,10 @@ async function configureLocalChatPlugins(pluginSet) {
152
152
  databaseModule
153
153
  ] = await Promise.all([
154
154
  import("../plugins-PZMDS7AT.js"),
155
- import("../agent-hooks-QQ2IWKOP.js"),
156
- import("../catalog-runtime-D22W6QEJ.js"),
157
- import("../validation-PQF5OP6T.js"),
158
- import("../db-WXQOQESG.js")
155
+ import("../agent-hooks-BKEMWR3Z.js"),
156
+ import("../catalog-runtime-6XYOUVRZ.js"),
157
+ import("../validation-GY7AJBLC.js"),
158
+ import("../db-2ASK6MV6.js")
159
159
  ]);
160
160
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
161
161
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -216,7 +216,7 @@ function newRunConversationId() {
216
216
  async function prepareLocalChatRun(io, pluginSet) {
217
217
  defaultStateAdapterForLocalChat();
218
218
  await configureLocalChatPlugins(pluginSet);
219
- const { runLocalAgentTurn } = await import("../runner-4QY4XH4B.js");
219
+ const { runLocalAgentTurn } = await import("../runner-L363K62Z.js");
220
220
  const deps = {
221
221
  agentRunner: createAgentRunner(executeAgentRun),
222
222
  deliverReply: async (reply) => {
package/dist/cli/check.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  parseSkillFile
3
- } from "../chunk-BTRNMS6A.js";
4
- import "../chunk-WSRBFHPX.js";
3
+ } from "../chunk-4WZ7YKDF.js";
4
+ import "../chunk-LR2SKL5Y.js";
5
5
  import {
6
6
  parseInlinePluginManifest,
7
7
  parsePluginManifest
8
- } from "../chunk-XQAYFRWT.js";
8
+ } from "../chunk-OXE5ZUTS.js";
9
9
  import "../chunk-C4MZ3GP5.js";
10
- import "../chunk-J7APPQIJ.js";
10
+ import "../chunk-36UJA3OD.js";
11
11
  import "../chunk-42WRQLJ6.js";
12
12
  import "../chunk-6GWA276C.js";
13
13
  import "../chunk-B3IT5END.js";
@@ -16,8 +16,8 @@ import {
16
16
  JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE,
17
17
  JUNIOR_HEARTBEAT_ROUTE,
18
18
  LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION
19
- } from "../chunk-MPVES2IC.js";
20
- import "../chunk-Z4G3WCP3.js";
19
+ } from "../chunk-NP7TYFYR.js";
20
+ import "../chunk-ZRSUCJGA.js";
21
21
  import "../chunk-MLKGABMK.js";
22
22
 
23
23
  // src/cli/check.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  validatePluginEgressCredentialHooks,
3
3
  validatePluginRegistrations
4
- } from "../chunk-Z2W4SJZ7.js";
4
+ } from "../chunk-3CTIAKSS.js";
5
5
  import {
6
6
  pluginCatalogConfigFromPluginSet,
7
7
  pluginCliRegistrationsFromPluginSet,
@@ -14,29 +14,29 @@ import {
14
14
  createPluginLogger,
15
15
  setPlugins,
16
16
  validatePlugins
17
- } from "../chunk-QQIVLZW4.js";
18
- import "../chunk-PYKKM4MM.js";
19
- import "../chunk-IFAHK54X.js";
17
+ } from "../chunk-YJ44UT7D.js";
18
+ import "../chunk-HMRVILWZ.js";
19
+ import "../chunk-QTS66GMR.js";
20
20
  import {
21
21
  getDb
22
- } from "../chunk-ZRZ4SVWG.js";
22
+ } from "../chunk-LLKDNPYV.js";
23
23
  import "../chunk-JQFJO5WH.js";
24
24
  import "../chunk-4ZNGQH7C.js";
25
- import "../chunk-NQLWOTY4.js";
25
+ import "../chunk-RCBUZGIT.js";
26
26
  import "../chunk-VFUK3X5B.js";
27
27
  import "../chunk-6Y5L4BOM.js";
28
28
  import {
29
29
  pluginCatalogRuntime
30
- } from "../chunk-WSRBFHPX.js";
31
- import "../chunk-XQAYFRWT.js";
30
+ } from "../chunk-LR2SKL5Y.js";
31
+ import "../chunk-OXE5ZUTS.js";
32
32
  import "../chunk-C4MZ3GP5.js";
33
- import "../chunk-J7APPQIJ.js";
33
+ import "../chunk-36UJA3OD.js";
34
34
  import "../chunk-42WRQLJ6.js";
35
35
  import "../chunk-6GWA276C.js";
36
36
  import "../chunk-B3IT5END.js";
37
37
  import "../chunk-3V7OFJZC.js";
38
- import "../chunk-MPVES2IC.js";
39
- import "../chunk-Z4G3WCP3.js";
38
+ import "../chunk-NP7TYFYR.js";
39
+ import "../chunk-ZRSUCJGA.js";
40
40
  import "../chunk-MLKGABMK.js";
41
41
 
42
42
  // src/cli/plugins.ts
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  GLOBAL_RUNTIME_DEPENDENCIES,
3
3
  resolveRuntimeDependencySnapshot
4
- } from "../chunk-B45FPP2A.js";
4
+ } from "../chunk-4VKFQPCW.js";
5
5
  import {
6
6
  disconnectStateAdapter
7
- } from "../chunk-PYKKM4MM.js";
7
+ } from "../chunk-HMRVILWZ.js";
8
8
  import "../chunk-4ZNGQH7C.js";
9
- import "../chunk-NQLWOTY4.js";
9
+ import "../chunk-RCBUZGIT.js";
10
10
  import "../chunk-6Y5L4BOM.js";
11
11
  import {
12
12
  pluginCatalogRuntime
13
- } from "../chunk-WSRBFHPX.js";
14
- import "../chunk-XQAYFRWT.js";
13
+ } from "../chunk-LR2SKL5Y.js";
14
+ import "../chunk-OXE5ZUTS.js";
15
15
  import "../chunk-C4MZ3GP5.js";
16
- import "../chunk-J7APPQIJ.js";
16
+ import "../chunk-36UJA3OD.js";
17
17
  import "../chunk-42WRQLJ6.js";
18
18
  import "../chunk-6GWA276C.js";
19
19
  import "../chunk-B3IT5END.js";
20
20
  import "../chunk-3V7OFJZC.js";
21
- import "../chunk-MPVES2IC.js";
22
- import "../chunk-Z4G3WCP3.js";
21
+ import "../chunk-NP7TYFYR.js";
22
+ import "../chunk-ZRSUCJGA.js";
23
23
  import "../chunk-MLKGABMK.js";
24
24
 
25
25
  // src/cli/snapshot-warmup.ts
@@ -11,20 +11,20 @@ import {
11
11
  } from "../chunk-JQFJO5WH.js";
12
12
  import {
13
13
  getChatConfig
14
- } from "../chunk-NQLWOTY4.js";
14
+ } from "../chunk-RCBUZGIT.js";
15
15
  import "../chunk-VFUK3X5B.js";
16
16
  import "../chunk-6Y5L4BOM.js";
17
17
  import {
18
18
  createPluginCatalogRuntime
19
- } from "../chunk-XQAYFRWT.js";
19
+ } from "../chunk-OXE5ZUTS.js";
20
20
  import "../chunk-C4MZ3GP5.js";
21
- import "../chunk-J7APPQIJ.js";
21
+ import "../chunk-36UJA3OD.js";
22
22
  import "../chunk-42WRQLJ6.js";
23
23
  import "../chunk-6GWA276C.js";
24
24
  import "../chunk-B3IT5END.js";
25
25
  import "../chunk-3V7OFJZC.js";
26
- import "../chunk-MPVES2IC.js";
27
- import "../chunk-Z4G3WCP3.js";
26
+ import "../chunk-NP7TYFYR.js";
27
+ import "../chunk-ZRSUCJGA.js";
28
28
  import "../chunk-MLKGABMK.js";
29
29
 
30
30
  // src/chat/conversations/sql/migrations.ts
@@ -5,16 +5,16 @@ import {
5
5
  getConversationStore,
6
6
  getDb,
7
7
  getSqlExecutor
8
- } from "./chunk-ZRZ4SVWG.js";
8
+ } from "./chunk-LLKDNPYV.js";
9
9
  import "./chunk-JQFJO5WH.js";
10
- import "./chunk-NQLWOTY4.js";
10
+ import "./chunk-RCBUZGIT.js";
11
11
  import "./chunk-VFUK3X5B.js";
12
12
  import "./chunk-6Y5L4BOM.js";
13
- import "./chunk-J7APPQIJ.js";
13
+ import "./chunk-36UJA3OD.js";
14
14
  import "./chunk-42WRQLJ6.js";
15
15
  import "./chunk-6GWA276C.js";
16
- import "./chunk-MPVES2IC.js";
17
- import "./chunk-Z4G3WCP3.js";
16
+ import "./chunk-NP7TYFYR.js";
17
+ import "./chunk-ZRSUCJGA.js";
18
18
  import "./chunk-MLKGABMK.js";
19
19
  export {
20
20
  closeDb,
@@ -15,8 +15,8 @@ import {
15
15
  import {
16
16
  getDeploymentServiceVersion,
17
17
  getDeploymentTelemetryAttributes
18
- } from "./chunk-MPVES2IC.js";
19
- import "./chunk-Z4G3WCP3.js";
18
+ } from "./chunk-NP7TYFYR.js";
19
+ import "./chunk-ZRSUCJGA.js";
20
20
  import "./chunk-MLKGABMK.js";
21
21
 
22
22
  // src/chat/sentry-payload-filter.ts
package/dist/nitro.js CHANGED
@@ -25,8 +25,8 @@ import {
25
25
  JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE,
26
26
  JUNIOR_RETENTION_CRON_SCHEDULE,
27
27
  JUNIOR_RETENTION_ROUTE
28
- } from "./chunk-MPVES2IC.js";
29
- import "./chunk-Z4G3WCP3.js";
28
+ } from "./chunk-NP7TYFYR.js";
29
+ import "./chunk-ZRSUCJGA.js";
30
30
  import "./chunk-MLKGABMK.js";
31
31
 
32
32
  // src/nitro.ts
@@ -4,7 +4,7 @@ import {
4
4
  finalizeFailedTurnReplyWithEvent,
5
5
  processPluginTask,
6
6
  scheduleSessionCompletedPluginTasks
7
- } from "./chunk-PZELBSHC.js";
7
+ } from "./chunk-WBB22ANL.js";
8
8
  import "./chunk-KNFROR7R.js";
9
9
  import {
10
10
  buildConversationContext,
@@ -23,33 +23,32 @@ import {
23
23
  persistWithRetry,
24
24
  recordDeliveredAssistantMessage,
25
25
  startActiveTurn,
26
+ stripRuntimeTurnContext,
27
+ trimTrailingAssistantMessages,
26
28
  updateConversationStats,
27
29
  upsertConversationMessage
28
- } from "./chunk-SL3ZKNLQ.js";
30
+ } from "./chunk-DXRPHBOU.js";
29
31
  import "./chunk-MU6HHZEN.js";
30
32
  import "./chunk-PDO5BLNM.js";
31
- import "./chunk-QQIVLZW4.js";
32
- import "./chunk-PYKKM4MM.js";
33
- import "./chunk-IFAHK54X.js";
33
+ import "./chunk-YJ44UT7D.js";
34
+ import "./chunk-HMRVILWZ.js";
35
+ import "./chunk-QTS66GMR.js";
34
36
  import {
35
37
  getConversationEventStore
36
- } from "./chunk-ZRZ4SVWG.js";
38
+ } from "./chunk-LLKDNPYV.js";
37
39
  import "./chunk-JQFJO5WH.js";
38
40
  import "./chunk-4ZNGQH7C.js";
39
- import {
40
- stripRuntimeTurnContext,
41
- trimTrailingAssistantMessages
42
- } from "./chunk-NQLWOTY4.js";
41
+ import "./chunk-RCBUZGIT.js";
43
42
  import "./chunk-VFUK3X5B.js";
44
43
  import "./chunk-6Y5L4BOM.js";
45
44
  import "./chunk-C4MZ3GP5.js";
46
45
  import {
47
46
  logException
48
- } from "./chunk-J7APPQIJ.js";
47
+ } from "./chunk-36UJA3OD.js";
49
48
  import "./chunk-42WRQLJ6.js";
50
49
  import "./chunk-6GWA276C.js";
51
- import "./chunk-MPVES2IC.js";
52
- import "./chunk-Z4G3WCP3.js";
50
+ import "./chunk-NP7TYFYR.js";
51
+ import "./chunk-ZRSUCJGA.js";
53
52
  import "./chunk-MLKGABMK.js";
54
53
 
55
54
  // src/chat/local/runner.ts
@@ -6,17 +6,17 @@ import {
6
6
  parseSkillInvocation,
7
7
  resetSkillDiscoveryCache,
8
8
  stripFrontmatter
9
- } from "./chunk-BTRNMS6A.js";
10
- import "./chunk-WSRBFHPX.js";
11
- import "./chunk-XQAYFRWT.js";
9
+ } from "./chunk-4WZ7YKDF.js";
10
+ import "./chunk-LR2SKL5Y.js";
11
+ import "./chunk-OXE5ZUTS.js";
12
12
  import "./chunk-C4MZ3GP5.js";
13
- import "./chunk-J7APPQIJ.js";
13
+ import "./chunk-36UJA3OD.js";
14
14
  import "./chunk-42WRQLJ6.js";
15
15
  import "./chunk-6GWA276C.js";
16
16
  import "./chunk-B3IT5END.js";
17
17
  import "./chunk-3V7OFJZC.js";
18
- import "./chunk-MPVES2IC.js";
19
- import "./chunk-Z4G3WCP3.js";
18
+ import "./chunk-NP7TYFYR.js";
19
+ import "./chunk-ZRSUCJGA.js";
20
20
  import "./chunk-MLKGABMK.js";
21
21
  export {
22
22
  discoverSkills,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  validatePluginEgressCredentialHooks,
3
3
  validatePluginRegistrations
4
- } from "./chunk-Z2W4SJZ7.js";
5
- import "./chunk-WSRBFHPX.js";
6
- import "./chunk-XQAYFRWT.js";
4
+ } from "./chunk-3CTIAKSS.js";
5
+ import "./chunk-LR2SKL5Y.js";
6
+ import "./chunk-OXE5ZUTS.js";
7
7
  import "./chunk-C4MZ3GP5.js";
8
- import "./chunk-J7APPQIJ.js";
8
+ import "./chunk-36UJA3OD.js";
9
9
  import "./chunk-42WRQLJ6.js";
10
10
  import "./chunk-6GWA276C.js";
11
11
  import "./chunk-B3IT5END.js";
12
12
  import "./chunk-3V7OFJZC.js";
13
- import "./chunk-MPVES2IC.js";
14
- import "./chunk-Z4G3WCP3.js";
13
+ import "./chunk-NP7TYFYR.js";
14
+ import "./chunk-ZRSUCJGA.js";
15
15
  import "./chunk-MLKGABMK.js";
16
16
  export {
17
17
  validatePluginEgressCredentialHooks,