@sentry/junior 0.276.0 → 0.278.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 (80) hide show
  1. package/dist/{adapter-DoPR2jS-.js → adapter-BXosqTMx.js} +1 -1
  2. package/dist/{admin-BJTT-kXb.js → admin-Thn7NfOi.js} +1 -1
  3. package/dist/{agent-invocations-CUWrrzkc.js → agent-invocations-D7c4BQGc.js} +6 -2
  4. package/dist/{agent-runner-sMpA5qGM.js → agent-runner-DE-43MPb.js} +396 -877
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +5 -5
  7. package/dist/api.d.ts +13 -2
  8. package/dist/api.js +132 -61
  9. package/dist/{app-DTj-yAQt.d.ts → app-CHNS-AX2.d.ts} +6 -27
  10. package/dist/app.d.ts +3 -3
  11. package/dist/app.js +65 -57
  12. package/dist/{assistant-reply-DbxKnBQF.js → assistant-reply-pauL6qyn.js} +28 -6
  13. package/dist/{automation-B8_mC68r.js → automation-DphoTRYl.js} +1 -1
  14. package/dist/{background-compaction-queue-Bywqo1WJ.js → background-compaction-queue-CAL4A2y7.js} +2 -2
  15. package/dist/{briefs-IL7QnCCR.js → briefs-4fyPJJEu.js} +5 -6
  16. package/dist/{catalog-runtime--sC2CYLQ.js → catalog-runtime-BoOb5oUv.js} +1 -1
  17. package/dist/cli/chat.d.ts +1 -1
  18. package/dist/cli/chat.js +14 -14
  19. package/dist/cli/check.js +3 -3
  20. package/dist/cli/init.js +0 -2
  21. package/dist/cli/main.js +3 -3
  22. package/dist/cli/plugins.d.ts +1 -1
  23. package/dist/cli/plugins.js +4 -4
  24. package/dist/cli/snapshot-create.js +4 -4
  25. package/dist/cli/upgrade.d.ts +2 -2
  26. package/dist/cli/upgrade.js +3 -3
  27. package/dist/{client-7diKvInp.js → client-v_OVYuHZ.js} +3 -3
  28. package/dist/{config-Cb--cuv-.js → config-o2jLRY5J.js} +24 -99
  29. package/dist/{connections-C4-4fxaE.js → connections-RC4NXAx8.js} +10 -10
  30. package/dist/{conversation-DppJ83Hw.js → conversation-CZfyQvdm.js} +54 -109
  31. package/dist/{conversation-privacy-DTwdT3Pi.js → conversation-privacy-C23M8KaD.js} +1 -1
  32. package/dist/{credential-sync-Sl5RQCkS.js → credential-sync-Dd0WyNfF.js} +13 -13
  33. package/dist/{db-Ck6TXQIx.d.ts → db-BjLzDJCt.d.ts} +1 -1
  34. package/dist/{executor-BFKmqxYe.js → executor-CJfsD0VX.js} +13 -5
  35. package/dist/instrumentation.js +2 -2
  36. package/dist/{logging-B04X_eCB.js → logging-dFaXvBRK.js} +4 -2
  37. package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
  38. package/dist/{message-DQMFyyE-.js → message-DSwxIZet.js} +22 -28
  39. package/dist/nitro.d.ts +2 -2
  40. package/dist/nitro.js +7 -3
  41. package/dist/{oauth-callback-server-BGq0_vQI.js → oauth-callback-server-CDcuCp27.js} +2 -2
  42. package/dist/{plugins-B_0Cr0MO.d.ts → plugins-DtmjkTza.d.ts} +1 -0
  43. package/dist/{projection-6dXaN0n-.js → projection-BTge9wrH.js} +5426 -5300
  44. package/dist/{prompt-B4fQKGZR.js → prompt-DDtCnlHP.js} +1 -1
  45. package/dist/{registry-CEqKR_ld.js → registry-Cp6CNmtP.js} +24 -8
  46. package/dist/{resolve-8I5DkrfI.js → resolve-B_7h2cXx.js} +3 -3
  47. package/dist/{result-BgAW90IM.js → result-5LBEfnLX.js} +9 -9
  48. package/dist/{runner-CSKDr_19.js → runner-C5-S4oq-.js} +11 -11
  49. package/dist/{sandbox-egress-signals-BxAT276e.js → sandbox-egress-signals-B4GehT1L.js} +1 -1
  50. package/dist/{schema-Cal-EFdi.js → schema-B5fpczDw.js} +82 -4
  51. package/dist/{schema-CaUWl2EV.d.ts → schema-Tr484cCC.d.ts} +935 -688
  52. package/dist/{service-account-CUuVJCKT.js → service-account-BkEv20zf.js} +3 -3
  53. package/dist/{service-account-CtOab1Xz.js → service-account-Cq_dLrZJ.js} +3 -3
  54. package/dist/{session-stop-DK8LuPZW.js → session-stop-BsS4qFS2.js} +26 -16
  55. package/dist/{skills-Bc0D7BGy.js → skills-M0BA0_s6.js} +2 -2
  56. package/dist/{spawn-DF_GUcd8.js → spawn-BO3y7H4d.js} +2 -3
  57. package/dist/{stop-DthSy-z8.js → stop-D5R82Wla.js} +612 -186
  58. package/dist/{store-C5uVTx2G.js → store-BGBzQWNf.js} +9 -16
  59. package/dist/{store-BgH2P3X9.js → store-CGJZTEVz.js} +3 -3
  60. package/dist/{task-queue-C6ROM_XJ.js → task-queue-UD27ei2U.js} +3 -3
  61. package/dist/{task-runner-BwAkjjVE.js → task-runner-noxjOjkM.js} +7 -7
  62. package/dist/{thread-state-BXjgk1pW.js → thread-state-BSu6rM6p.js} +4 -4
  63. package/dist/{turn-failure-response-CVI57qKL.js → turn-failure-response-wahwyPrZ.js} +7 -7
  64. package/dist/{turn-lifecycle-CF6ibonp.js → turn-lifecycle-Bo4Trccw.js} +1 -1
  65. package/dist/{turn-session-routing-DddybdNu.js → turn-session-routing-DnSaaEpn.js} +10 -10
  66. package/dist/{validation-BxF1nQbC.js → validation-B9-8iKyw.js} +1 -1
  67. package/dist/{version-CTzSbCmR.js → version-C7HejFP2.js} +1 -1
  68. package/dist/version.js +1 -1
  69. package/dist/{viewer-CQwBszc7.js → viewer-DLXajQZE.js} +94 -28
  70. package/dist/{work-BHlShEQ6.js → work-DRGSlfia.js} +12 -17
  71. package/dist/{worker-DhY9MnsH.js → worker-BGh5Dwc6.js} +6 -6
  72. package/migrations/0074_conversation_participant_pins.sql +1 -0
  73. package/migrations/0075_conversation_detail_version.sql +1 -0
  74. package/migrations/0076_conversation_auto_archive.sql +5 -0
  75. package/migrations/meta/0074_snapshot.json +4076 -0
  76. package/migrations/meta/0075_snapshot.json +4083 -0
  77. package/migrations/meta/0076_snapshot.json +4147 -0
  78. package/migrations/meta/_journal.json +21 -0
  79. package/package.json +5 -5
  80. package/dist/model-profile-B998sjVd.js +0 -67
@@ -519,6 +519,27 @@
519
519
  "when": 1793782228382,
520
520
  "tag": "0073_conversation_quick_question",
521
521
  "breakpoints": true
522
+ },
523
+ {
524
+ "idx": 74,
525
+ "version": "7",
526
+ "when": 1793803896566,
527
+ "tag": "0074_conversation_participant_pins",
528
+ "breakpoints": true
529
+ },
530
+ {
531
+ "idx": 75,
532
+ "version": "7",
533
+ "when": 1793810669602,
534
+ "tag": "0075_conversation_detail_version",
535
+ "breakpoints": true
536
+ },
537
+ {
538
+ "idx": 76,
539
+ "version": "7",
540
+ "when": 1793812855460,
541
+ "tag": "0076_conversation_auto_archive",
542
+ "breakpoints": true
522
543
  }
523
544
  ]
524
545
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.276.0",
3
+ "version": "0.278.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -91,7 +91,7 @@
91
91
  "sharp": "^0.35.3",
92
92
  "yaml": "^2.9.0",
93
93
  "zod": "^4.5.4",
94
- "@sentry/junior-plugin-api": "0.276.0"
94
+ "@sentry/junior-plugin-api": "0.278.0"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "bullmq": "^6.5.0",
@@ -126,9 +126,9 @@
126
126
  "typescript": "^7.0.2",
127
127
  "vercel": "^54.4.0",
128
128
  "vitest": "^4.1.12",
129
- "@sentry/junior-github": "0.276.0",
130
- "@sentry/junior-memory": "0.276.0",
131
- "@sentry/junior-testing": "0.0.0"
129
+ "@sentry/junior-github": "0.278.0",
130
+ "@sentry/junior-testing": "0.0.0",
131
+ "@sentry/junior-memory": "0.278.0"
132
132
  },
133
133
  "scripts": {
134
134
  "build": "tsdown",
@@ -1,67 +0,0 @@
1
- import { z } from "zod";
2
- // src/chat/reasoning-level.ts
3
- const TURN_REASONING_LEVELS = [
4
- "none",
5
- "low",
6
- "medium",
7
- "high",
8
- "xhigh"
9
- ];
10
- /** Validate a configured main-agent reasoning level. */
11
- function parseTurnReasoningLevel(value) {
12
- return z.enum(TURN_REASONING_LEVELS).parse(value);
13
- }
14
- // src/chat/model-profile.ts
15
- /** Keep durable profile names stable and safe to expose in tool schemas. */
16
- const modelProfileSchema = z.string().regex(/^[a-z][a-z0-9_-]*$/);
17
- /** Shared model profiles used when the app does not configure its own. */
18
- const DEFAULT_MODEL_PROFILES = {
19
- standard: {
20
- modelId: "openai/gpt-6-luna",
21
- description: "Use for lookups, explanations, summaries, routine tool use, and focused source checks, including reading a single code file. Avoid for implementation, debugging, code review, architecture decisions, or research across several systems.",
22
- reasoningLevel: "high"
23
- },
24
- handoff: {
25
- modelId: "anthropic/claude-opus-5.5",
26
- description: "Use for implementation, debugging, code review, architecture decisions, and research across several systems. Include verification of unfinished work. Avoid for routine lookups, short explanations, or a new routine request after completed work.",
27
- reasoningLevel: "high"
28
- }
29
- };
30
- /** Format one profile and its task-fit description. */
31
- function formatModelProfile(profile, description) {
32
- const text = description?.trim();
33
- return text ? `"${profile}": ${text}` : `"${profile}"`;
34
- }
35
- /** Format configured profiles as one list item per line. */
36
- function formatModelProfiles(profiles, profileNames) {
37
- return profileNames.map((profile) => `- ${formatModelProfile(profile, profiles[profile]?.description)}`).join("\n");
38
- }
39
- /** Identify a profile name that the current host does not configure. */
40
- var ModelProfileNotConfiguredError = class extends Error {
41
- constructor(profile) {
42
- super(`Model profile "${profile}" is not configured`);
43
- this.name = "ModelProfileNotConfiguredError";
44
- }
45
- };
46
- /**
47
- * Resolve a durable profile binding against the configured profiles.
48
- * A binding to a profile that the host removed uses the default profile.
49
- */
50
- function boundProfile(config, profile) {
51
- return Object.hasOwn(config.profiles, profile) ? profile : config.defaultProfile;
52
- }
53
- /** Resolve a model id from a configured profile. */
54
- function modelIdForProfile(config, profile) {
55
- return profileConfig(config, profile).modelId;
56
- }
57
- /** Resolve the configured default profile's model. */
58
- function defaultModelId(config) {
59
- return modelIdForProfile(config, config.defaultProfile);
60
- }
61
- /** Return one configured profile. */
62
- function profileConfig(config, profile) {
63
- const profileConfig = Object.hasOwn(config.profiles, profile) ? config.profiles[profile] : void 0;
64
- if (!profileConfig) throw new ModelProfileNotConfiguredError(profile);
65
- return profileConfig;
66
- }
67
- export { formatModelProfile as a, modelProfileSchema as c, parseTurnReasoningLevel as d, defaultModelId as i, profileConfig as l, ModelProfileNotConfiguredError as n, formatModelProfiles as o, boundProfile as r, modelIdForProfile as s, DEFAULT_MODEL_PROFILES as t, TURN_REASONING_LEVELS as u };