@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
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@sentry/junior",
4
- version: "0.113.0",
4
+ version: "0.114.0",
5
5
  private: false,
6
6
  publishConfig: {
7
7
  access: "public"
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-4ZNGQH7C.js";
4
4
  import {
5
5
  getSlackBotToken
6
- } from "./chunk-RCBUZGIT.js";
6
+ } from "./chunk-ZGXH3REA.js";
7
7
  import {
8
8
  logWarn,
9
9
  setSpanAttributes,
10
10
  setSpanStatus,
11
11
  withSpan
12
- } from "./chunk-36UJA3OD.js";
12
+ } from "./chunk-4FUEG3QY.js";
13
13
  import {
14
14
  parseSlackChannelReferenceId
15
15
  } from "./chunk-42WRQLJ6.js";
@@ -117,7 +117,30 @@ var conversationReportTurnLifecycleEventDataSchema = z2.discriminatedUnion(
117
117
  }).strict()
118
118
  ]
119
119
  );
120
- var conversationReportCompactionEventDataSchema = z2.object({ type: z2.literal("compaction") }).strict();
120
+ var conversationReportTurnRoutedEventDataSchema = z2.object({
121
+ type: z2.literal("turn_routed"),
122
+ turnId: z2.string().min(1),
123
+ modelProfile: z2.string().min(1),
124
+ modelId: z2.string().min(1),
125
+ reasoningLevel: z2.string().min(1),
126
+ confidence: z2.number().min(0).max(1).optional(),
127
+ source: z2.enum(["configured", "inherited", "router"])
128
+ }).strict();
129
+ var conversationReportCompactionEventDataSchema = z2.object({
130
+ type: z2.literal("compaction"),
131
+ modelProfile: z2.string().min(1).optional(),
132
+ modelId: z2.string().min(1).optional(),
133
+ details: z2.object({
134
+ reason: z2.literal("capacity"),
135
+ estimatedInputTokens: z2.number().int().nonnegative(),
136
+ replacementInputTokens: z2.number().int().nonnegative().optional(),
137
+ triggerTokens: z2.number().int().nonnegative(),
138
+ inputLimitTokens: z2.number().int().positive(),
139
+ inputMessageCount: z2.number().int().nonnegative(),
140
+ retainedMessageCount: z2.number().int().nonnegative(),
141
+ summaryChars: z2.number().int().nonnegative()
142
+ }).strict().optional()
143
+ }).strict();
121
144
  var conversationReportHandoffEventDataSchema = z2.object({
122
145
  type: z2.literal("handoff"),
123
146
  modelProfile: z2.string().min(1),
@@ -139,6 +162,7 @@ var conversationReportEventDataSchema = z2.discriminatedUnion("type", [
139
162
  conversationReportMessageHandledEventDataSchema,
140
163
  conversationReportToolCallsEventDataSchema,
141
164
  conversationReportTurnLifecycleEventDataSchema,
165
+ conversationReportTurnRoutedEventDataSchema,
142
166
  conversationReportCompactionEventDataSchema,
143
167
  conversationReportHandoffEventDataSchema,
144
168
  conversationReportSubagentEventDataSchema
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-LR2SKL5Y.js";
3
+ } from "./chunk-OSKEC4XU.js";
4
4
  import {
5
5
  logWarn
6
- } from "./chunk-36UJA3OD.js";
6
+ } from "./chunk-4FUEG3QY.js";
7
7
  import {
8
8
  skillRoots
9
9
  } from "./chunk-3V7OFJZC.js";
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  SANDBOX_WORKSPACE_ROOT,
3
3
  getStateAdapter
4
- } from "./chunk-HMRVILWZ.js";
4
+ } from "./chunk-YU6PO42Q.js";
5
5
  import {
6
6
  isConversationChannel,
7
7
  isConversationScopedChannel,
8
8
  isDmChannel,
9
9
  normalizeSlackConversationId
10
- } from "./chunk-QTS66GMR.js";
10
+ } from "./chunk-RD7EJI7H.js";
11
11
  import {
12
12
  getDb
13
- } from "./chunk-LLKDNPYV.js";
13
+ } from "./chunk-FIGAF6KL.js";
14
14
  import {
15
15
  botConfig,
16
16
  completeObject,
17
17
  embedTexts,
18
18
  standardModelId
19
- } from "./chunk-RCBUZGIT.js";
19
+ } from "./chunk-ZGXH3REA.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-36UJA3OD.js";
28
+ } from "./chunk-4FUEG3QY.js";
29
29
  import {
30
30
  parseSlackChannelReferenceId,
31
31
  parseSlackMessageTs,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pluginCatalogRuntime
3
- } from "./chunk-LR2SKL5Y.js";
3
+ } from "./chunk-OSKEC4XU.js";
4
4
 
5
5
  // src/chat/plugins/validation.ts
6
6
  import { isDeepStrictEqual } from "util";