@sentry/junior 0.294.0 → 0.295.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 (77) hide show
  1. package/dist/{admin-vt8aSiCD.js → admin-ifgjyfpF.js} +2 -2
  2. package/dist/{agent-runner-DJu7w6mI.js → agent-runner-DjMTPWEO.js} +147 -90
  3. package/dist/api/schema.d.ts +2 -2
  4. package/dist/api/schema.js +5 -5
  5. package/dist/api.d.ts +1 -1
  6. package/dist/api.js +52 -28
  7. package/dist/{app--a5RLOrr.d.ts → app-uiTzRbvq.d.ts} +3 -3
  8. package/dist/app.d.ts +2 -2
  9. package/dist/app.js +33 -34
  10. package/dist/{automation-BM-OBsKW.js → automation-yJX3C7i3.js} +3 -3
  11. package/dist/{background-compaction-queue-D2j-0XkH.js → background-compaction-queue-DUkHZjmL.js} +7 -9
  12. package/dist/{briefs-JOAoCb6d.js → briefs-CbNYM-q2.js} +3 -3
  13. package/dist/{catalog-runtime-CLMA9AXd.js → catalog-runtime-DgouZKZm.js} +1 -1
  14. package/dist/cli/chat.d.ts +1 -1
  15. package/dist/cli/chat.js +15 -15
  16. package/dist/cli/check.js +3 -3
  17. package/dist/cli/init.js +2 -0
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.d.ts +1 -1
  20. package/dist/cli/plugins.js +4 -4
  21. package/dist/cli/snapshot-create.js +4 -4
  22. package/dist/cli/upgrade.d.ts +2 -2
  23. package/dist/cli/upgrade.js +3 -3
  24. package/dist/{config-mIZeGEWv.js → config-DvnTPCfp.js} +43 -2
  25. package/dist/{connections-XhdVg7OR.js → connections-CWaIVl_1.js} +6 -6
  26. package/dist/{conversation-CDWejM4R.js → conversation-CMkSmi02.js} +2 -11
  27. package/dist/{conversation-pending-messages-Dh2tfbaw.js → conversation-feed-BVAOga0H.js} +27 -2
  28. package/dist/{conversation-privacy-C6h-X2cZ.js → conversation-privacy-DPjv4SnA.js} +1 -1
  29. package/dist/{credential-sync-zigBlXS3.js → credential-sync-BhbaZfmO.js} +16 -15
  30. package/dist/{db-DV5AbcGM.d.ts → db-CCUqQe0E.d.ts} +6 -1
  31. package/dist/{db--xuNV7g6.js → db-Dts2XvLu.js} +54 -10
  32. package/dist/{executor-BItuRqAR.js → executor-Ck73J0wP.js} +8 -3
  33. package/dist/instrumentation.js +2 -2
  34. package/dist/{logging-Cb6MGvdt.js → logging-9OAq-fdg.js} +2 -1
  35. package/dist/{message-BTGgSmaH.js → message-CtaPzC7m.js} +9 -9
  36. package/dist/nitro.d.ts +2 -2
  37. package/dist/nitro.js +2 -2
  38. package/dist/{oauth-callback-server-Dvh1aOIi.js → oauth-callback-server-C_LXY1d4.js} +2 -2
  39. package/dist/{oauth-relay-D6xxVywK.js → oauth-relay-CsfIazeF.js} +2 -1
  40. package/dist/{plugins-DtmjkTza.d.ts → plugins-B_0Cr0MO.d.ts} +0 -1
  41. package/dist/{projection-DLQgfO5N.js → projection-BzJQncZV.js} +248 -77
  42. package/dist/{prompt-qp_LdxLX.js → prompt-Cbq5b4SO.js} +4 -4
  43. package/dist/{registry-MtwokaqW.js → registry-cbpOxO4M.js} +3 -13
  44. package/dist/{resolve-BnJA0UNE.js → resolve-t-pmRdwS.js} +3 -3
  45. package/dist/{result-ChL-1KyW.js → result-DhgjR3nQ.js} +8 -8
  46. package/dist/{runner-BONN7Dp2.js → runner-CHv9X9TH.js} +8 -8
  47. package/dist/{sandbox-egress-signals-nmlmI5Ab.js → sandbox-egress-signals-Yy3fSCbg.js} +1 -1
  48. package/dist/{schema-yr0ccDni.js → schema-BhneuGYv.js} +13 -6
  49. package/dist/{schema-DgvcyJ1y.d.ts → schema-TSEisVJR.d.ts} +50 -14
  50. package/dist/secrets-DebYU866.js +18 -0
  51. package/dist/{service-account-Bd0lBaGr.js → service-account-C4rBP8ne.js} +3 -3
  52. package/dist/{service-account-kio5nXSD.js → service-account-DjPIwCMj.js} +42 -26
  53. package/dist/{session-stop-CeCXL3j9.js → session-stop-DkxI5vc3.js} +20 -775
  54. package/dist/{skills-e3DDNlKO.js → skills-BZE2DP8I.js} +2 -2
  55. package/dist/{spawn--cRxITWQ.js → spawn-BvULxIiu.js} +5 -5
  56. package/dist/{adapter-DxLhJEnO.js → state-CO9ETDzk.js} +132 -2
  57. package/dist/{stop-Iai5N2PU.js → stop-CL-rdtQb.js} +84 -30
  58. package/dist/{store-C8LsaJwS.js → store-DgD78_NK.js} +3 -3
  59. package/dist/{task-runner-Dw7exu0-.js → task-runner-CKOj6xla.js} +11 -11
  60. package/dist/{turn-failure-response-BqTTx3XG.js → turn-failure-response-BTSo6SMJ.js} +8 -8
  61. package/dist/{validation-BrGahtnv.js → validation-CXeYgBzq.js} +1 -1
  62. package/dist/{version-Bdqhx8Qh.js → version-AQa7Fr2H.js} +1 -1
  63. package/dist/version.js +1 -1
  64. package/dist/{viewer-CjRFHR5U.js → viewer-Bqkb678l.js} +3 -3
  65. package/dist/warmup-h6u1e9n0.js +1869 -0
  66. package/dist/{work-BWBG1EGV.js → work-yN_GAuXY.js} +11 -11
  67. package/dist/{worker-DAnBIVMs.js → worker-Hl7N292I.js} +6 -6
  68. package/migrations/0098_review_item_plugin_actions.sql +5 -0
  69. package/migrations/0099_conversation_last_message_at.sql +1 -0
  70. package/migrations/0100_automation_task_kind_repair.sql +48 -0
  71. package/migrations/meta/0098_snapshot.json +4490 -0
  72. package/migrations/meta/0099_snapshot.json +4720 -0
  73. package/migrations/meta/0100_snapshot.json +4496 -0
  74. package/migrations/meta/_journal.json +21 -0
  75. package/package.json +5 -5
  76. package/dist/assistant-reply-iTtEdDyc.js +0 -58
  77. package/dist/warmup-DuxCtzKC.js +0 -1039
@@ -687,6 +687,27 @@
687
687
  "when": 1794344562301,
688
688
  "tag": "0097_conversation_kind_automation",
689
689
  "breakpoints": true
690
+ },
691
+ {
692
+ "idx": 98,
693
+ "version": "7",
694
+ "when": 1794349592269,
695
+ "tag": "0098_review_item_plugin_actions",
696
+ "breakpoints": true
697
+ },
698
+ {
699
+ "idx": 99,
700
+ "version": "7",
701
+ "when": 1794351117170,
702
+ "tag": "0099_conversation_last_message_at",
703
+ "breakpoints": true
704
+ },
705
+ {
706
+ "idx": 100,
707
+ "version": "7",
708
+ "when": 1794360831303,
709
+ "tag": "0100_automation_task_kind_repair",
710
+ "breakpoints": true
690
711
  }
691
712
  ]
692
713
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.294.0",
3
+ "version": "0.295.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -94,7 +94,7 @@
94
94
  "web-push": "^3.6.7",
95
95
  "yaml": "^2.9.0",
96
96
  "zod": "^4.5.4",
97
- "@sentry/junior-plugin-api": "0.294.0"
97
+ "@sentry/junior-plugin-api": "0.295.0"
98
98
  },
99
99
  "peerDependencies": {
100
100
  "bullmq": "^6.5.0",
@@ -130,9 +130,9 @@
130
130
  "typescript": "^7.0.2",
131
131
  "vercel": "^54.4.0",
132
132
  "vitest": "^4.1.12",
133
- "@sentry/junior-github": "0.294.0",
134
- "@sentry/junior-testing": "0.0.0",
135
- "@sentry/junior-memory": "0.294.0"
133
+ "@sentry/junior-github": "0.295.0",
134
+ "@sentry/junior-memory": "0.295.0",
135
+ "@sentry/junior-testing": "0.0.0"
136
136
  },
137
137
  "scripts": {
138
138
  "build": "tsdown",
@@ -1,58 +0,0 @@
1
- import { $t as extractAssistantText, dn as normalizeToolNameFromResult, ln as isToolResultError, un as isToolResultMessage } from "./projection-DLQgfO5N.js";
2
- import * as z from "zod";
3
- // src/chat/no-reply.ts
4
- /** No-reply result of a Turn. */
5
- /** Model-facing tool that ends a Turn with no reply. */
6
- const NO_REPLY_TOOL_NAME = "noReply";
7
- const noReplySchema = z.object({ note: z.string().trim().min(1).optional() });
8
- /**
9
- * Read the last successful no-reply result from the new messages of one run.
10
- * Do not pass the whole history: a call from an earlier Turn must not end
11
- * this one.
12
- */
13
- function readNoReply(messages) {
14
- for (let index = messages.length - 1; index >= 0; index -= 1) {
15
- const message = messages[index];
16
- if (!isToolResultMessage(message) || isToolResultError(message) || normalizeToolNameFromResult(message) !== "noReply") continue;
17
- const parsed = noReplySchema.safeParse(message.details);
18
- if (parsed.success) return parsed.data;
19
- }
20
- }
21
- const LEGACY_NO_REPLY_MARKERS = ["[[NO_REPLY]]", "[[QUIET]]"];
22
- /** True when the text is only a legacy no-reply marker from old history. */
23
- function isLegacyNoReplyMarker(text) {
24
- return LEGACY_NO_REPLY_MARKERS.includes(text.trim());
25
- }
26
- // src/chat/services/assistant-reply.ts
27
- const THINKING_XML_BLOCK_PATTERN = /[ \t]*<thinking\b[^>]*>[\s\S]*?<\/thinking>[ \t]*(?:\r?\n)?/gi;
28
- const FENCED_CODE_BLOCK_PATTERN = /```[\s\S]*?```/g;
29
- /** Remove provider reasoning wrappers while preserving fenced code examples. */
30
- function sanitizeAssistantText(text) {
31
- let result = "";
32
- let cursor = 0;
33
- for (const match of text.matchAll(FENCED_CODE_BLOCK_PATTERN)) {
34
- const start = match.index;
35
- if (start === void 0) continue;
36
- result += text.slice(cursor, start).replace(THINKING_XML_BLOCK_PATTERN, "");
37
- result += match[0];
38
- cursor = start + match[0].length;
39
- }
40
- return (result + text.slice(cursor).replace(THINKING_XML_BLOCK_PATTERN, "")).trim();
41
- }
42
- /** Decide whether one completed assistant message becomes a reply. */
43
- function decideReply(message) {
44
- if (message.content.some((part) => part.type === "toolCall")) return { kind: "suppress" };
45
- const text = sanitizeAssistantText(extractAssistantText(message));
46
- if (!text) return { kind: "empty" };
47
- if (isLegacyNoReplyMarker(text)) return { kind: "suppress" };
48
- return {
49
- kind: "deliver",
50
- text
51
- };
52
- }
53
- /** Return destination-visible reply text when the message is deliverable. */
54
- function getAssistantReplyText(message) {
55
- const decision = decideReply(message);
56
- return decision.kind === "deliver" ? decision.text : void 0;
57
- }
58
- export { isLegacyNoReplyMarker as a, NO_REPLY_TOOL_NAME as i, getAssistantReplyText as n, readNoReply as o, sanitizeAssistantText as r, decideReply as t };