@sentry/junior 0.277.0 → 0.279.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 (91) hide show
  1. package/dist/{adapter-BtfBHVM5.js → adapter-phTTgw7H.js} +1 -1
  2. package/dist/{admin-DzAKbZsm.js → admin-PcpJDugZ.js} +1 -1
  3. package/dist/{agent-invocations-Crs3XHhg.js → agent-invocations-CUg_SODU.js} +0 -1
  4. package/dist/{agent-runner-BsYAbniN.js → agent-runner-DwvT1BY0.js} +321 -847
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +6 -6
  7. package/dist/api.d.ts +1 -1
  8. package/dist/api.js +46 -414
  9. package/dist/{app-BjEQwNVP.d.ts → app-DVs6noo7.d.ts} +6 -27
  10. package/dist/app.d.ts +2 -2
  11. package/dist/app.js +460 -78
  12. package/dist/{assistant-reply-NebRGG4G.js → assistant-reply-BXfxczd7.js} +28 -6
  13. package/dist/{automation-Cql9h2vO.js → automation-BehArCcq.js} +1 -1
  14. package/dist/{background-compaction-queue-hh18yCeU.js → background-compaction-queue-CcbuLJrZ.js} +2 -2
  15. package/dist/{briefs-BBo0Eimi.js → briefs-Dd_ezwED.js} +10 -10
  16. package/dist/{catalog-runtime-DE-F4Awo.js → catalog-runtime-BWVMeZhW.js} +2 -2
  17. package/dist/cli/chat.js +16 -16
  18. package/dist/cli/check.js +3 -3
  19. package/dist/cli/init.js +0 -2
  20. package/dist/cli/main.js +4 -4
  21. package/dist/cli/plugins.js +5 -5
  22. package/dist/cli/snapshot-create.js +4 -4
  23. package/dist/cli/upgrade.d.ts +1 -1
  24. package/dist/cli/upgrade.js +4 -4
  25. package/dist/{client-DZ8HTnYH.js → client-Bpxe4vKa.js} +8 -4
  26. package/dist/{config-D5uUtrCP.js → config-C_bmRhrJ.js} +25 -100
  27. package/dist/{connections-Do24CGP5.js → connections-B2rHe5W5.js} +10 -10
  28. package/dist/{conversation-SsASlWL7.js → conversation-CIiJtx5q.js} +56 -104
  29. package/dist/conversation-pending-messages-CnBvE6-6.js +173 -0
  30. package/dist/{conversation-privacy-VuylvlKr.js → conversation-privacy-CzOfcz0U.js} +1 -1
  31. package/dist/{credential-sync-BGQK3pOa.js → credential-sync-Dal_unpv.js} +15 -15
  32. package/dist/{db-DEiwO5Sh.d.ts → db-CyLrV9C7.d.ts} +1 -1
  33. package/dist/{executor-hPfFTH0C.js → executor-BfYH-Wws.js} +6 -4
  34. package/dist/instrumentation.d.ts +12 -0
  35. package/dist/instrumentation.js +56 -23
  36. package/dist/{logging-cI3T1dNc.js → logging-CkT3_Xxp.js} +2 -2
  37. package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
  38. package/dist/{message-DBwsAl7O.js → message-Q5dkgaJ5.js} +23 -29
  39. package/dist/nitro.d.ts +1 -1
  40. package/dist/nitro.js +18 -6
  41. package/dist/{oauth-callback-server-DXrnbplb.js → oauth-callback-server-BDRaqe8O.js} +2 -2
  42. package/dist/{oauth-relay-C6ZAyJgf.js → oauth-relay-D0G3T16m.js} +1 -1
  43. package/dist/{package-discovery-DJBompdd.js → package-discovery-DJhGdS4c.js} +1 -1
  44. package/dist/{plugins-DOm9Y6qI.js → plugins-HYh_JOdw.js} +1 -1
  45. package/dist/{projection-7EFIqzuj.js → projection-DWxX7pb1.js} +214 -138
  46. package/dist/{prompt-oRfGsxd3.js → prompt--dwus7Y-.js} +1 -1
  47. package/dist/proxy-path-BHYoKZdq.js +15 -0
  48. package/dist/{registry-Bzefs7kT.js → registry-DnrdeO4s.js} +2 -2
  49. package/dist/{resolve-CuiEY_2u.js → resolve-C_QXfqD_.js} +3 -3
  50. package/dist/{result-DrcUtFaD.js → result-DNmOxT-N.js} +10 -10
  51. package/dist/{runner-CDE4CZ52.js → runner-zd_noJ1l.js} +11 -11
  52. package/dist/{sandbox-egress-signals-0tcmGd13.js → sandbox-egress-signals-DQjv-nbG.js} +1 -1
  53. package/dist/{schema-Dzi3lkdP.js → schema-CNJNzvr8.js} +4 -4
  54. package/dist/{schema-B6N2nc6v.d.ts → schema-e90H5FIN.d.ts} +2176 -967
  55. package/dist/sentry-BRTJqumy.js +51 -0
  56. package/dist/sentry-DrKC2NeM.d.ts +1 -0
  57. package/dist/sentry-route-name-BhwWnfqj.js +51 -0
  58. package/dist/{service-account-BOz9pqOE.js → service-account-BK26XlHo.js} +3 -3
  59. package/dist/{service-account-DIyz_9Uh.js → service-account-CCH2Hv4h.js} +3 -3
  60. package/dist/{session-stop-0juF_BP0.js → session-stop-6Tf--T7G.js} +23 -16
  61. package/dist/{skills-CU5Is147.js → skills-BNrk8gi4.js} +4 -4
  62. package/dist/{spawn-6C9jHH4b.js → spawn-C75hAB9l.js} +3 -4
  63. package/dist/{stop-6FVG1c-r.js → stop-RYbf7PWi.js} +742 -207
  64. package/dist/{store-DtHZviJ1.js → store-CO5vGjwD.js} +9 -16
  65. package/dist/{store-DKs1WwdB.js → store-G3h2djJU.js} +3 -3
  66. package/dist/{task-queue-CcvFQE_p.js → task-queue-DlN58XeM.js} +3 -3
  67. package/dist/{task-runner-DBkNejLl.js → task-runner-B-Bdm23d.js} +22 -10
  68. package/dist/{thread-state-4hjEIkIq.js → thread-state-Cj_7Slru.js} +4 -4
  69. package/dist/{turn-failure-response-BZNLydC3.js → turn-failure-response-CE7gaoC7.js} +7 -7
  70. package/dist/{turn-lifecycle-BhqYjaa4.js → turn-lifecycle-7sXwXLJ6.js} +1 -1
  71. package/dist/{turn-session-routing-jnLOfBHJ.js → turn-session-routing-FBdaH1zf.js} +10 -10
  72. package/dist/{validation-BUFmsnKs.js → validation-DLWxEzWW.js} +2 -2
  73. package/dist/{version-DJTk0ZCE.js → version-DtQ8WFIZ.js} +1 -1
  74. package/dist/version.js +1 -1
  75. package/dist/{viewer-WY0RYE4E.js → viewer-vsM8_90o.js} +53 -22
  76. package/dist/{work-C5AKvXJV.js → work-DsoFRO_0.js} +12 -17
  77. package/dist/{worker-BcYVDVUy.js → worker-6kZEsCXs.js} +7 -7
  78. package/migrations/0077_drop_agent_invocation_model_profile.sql +1 -0
  79. package/migrations/0078_plugin_conversation_index.sql +20 -0
  80. package/migrations/0079_conversation_event_author_index.sql +20 -0
  81. package/migrations/meta/0075_snapshot.json +98 -314
  82. package/migrations/meta/0076_snapshot.json +98 -314
  83. package/migrations/meta/0077_snapshot.json +4141 -0
  84. package/migrations/meta/0078_snapshot.json +4175 -0
  85. package/migrations/meta/0079_snapshot.json +4203 -0
  86. package/migrations/meta/_journal.json +22 -1
  87. package/package.json +5 -5
  88. package/dist/common-Eu6sx09c.js +0 -107
  89. package/dist/model-profile-B998sjVd.js +0 -67
  90. package/dist/rolldown-runtime-nwUcYXjP.js +0 -27
  91. package/dist/sentry-MDkYAVPV.js +0 -23
@@ -540,6 +540,27 @@
540
540
  "when": 1793812855460,
541
541
  "tag": "0076_conversation_auto_archive",
542
542
  "breakpoints": true
543
+ },
544
+ {
545
+ "idx": 77,
546
+ "version": "7",
547
+ "when": 1793840083445,
548
+ "tag": "0077_drop_agent_invocation_model_profile",
549
+ "breakpoints": true
550
+ },
551
+ {
552
+ "idx": 78,
553
+ "version": "7",
554
+ "when": 1793853487201,
555
+ "tag": "0078_plugin_conversation_index",
556
+ "breakpoints": true
557
+ },
558
+ {
559
+ "idx": 79,
560
+ "version": "7",
561
+ "when": 1793855917036,
562
+ "tag": "0079_conversation_event_author_index",
563
+ "breakpoints": true
543
564
  }
544
565
  ]
545
- }
566
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.277.0",
3
+ "version": "0.279.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.277.0"
94
+ "@sentry/junior-plugin-api": "0.279.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.277.0",
130
- "@sentry/junior-testing": "0.0.0",
131
- "@sentry/junior-memory": "0.277.0"
129
+ "@sentry/junior-github": "0.279.0",
130
+ "@sentry/junior-memory": "0.279.0",
131
+ "@sentry/junior-testing": "0.0.0"
132
132
  },
133
133
  "scripts": {
134
134
  "build": "tsdown",
@@ -1,107 +0,0 @@
1
- import { z } from "zod";
2
- // src/reporting-schema.ts
3
- const healthReportSchema = z.object({
4
- status: z.literal("ok"),
5
- service: z.string(),
6
- timestamp: z.string()
7
- }).strict();
8
- const pluginSchema = z.object({
9
- configKeys: z.array(z.string()),
10
- description: z.string(),
11
- displayName: z.string(),
12
- name: z.string()
13
- }).strict();
14
- const pluginsSchema = z.array(pluginSchema);
15
- const skillReportSchema = z.object({
16
- name: z.string(),
17
- pluginProvider: z.string().optional()
18
- }).strict();
19
- const skillReportsSchema = z.array(skillReportSchema);
20
- const pluginPackageContentItemReportSchema = z.object({
21
- dir: z.string(),
22
- hasMigrationsDir: z.boolean(),
23
- hasSkillsDir: z.boolean(),
24
- packageName: z.string()
25
- }).strict();
26
- const pluginPackageContentReportSchema = z.object({
27
- packageNames: z.array(z.string()),
28
- packages: z.array(pluginPackageContentItemReportSchema),
29
- manifestRoots: z.array(z.string()),
30
- skillRoots: z.array(z.string()),
31
- tracingIncludes: z.array(z.string())
32
- }).strict();
33
- const runtimeInfoReportSchema = z.object({
34
- cwd: z.string(),
35
- homeDir: z.string(),
36
- descriptionText: z.string().optional(),
37
- providers: z.array(z.string()),
38
- skills: z.array(skillReportSchema),
39
- packagedContent: pluginPackageContentReportSchema
40
- }).strict();
41
- const pluginOperationalToneSchema = z.enum([
42
- "danger",
43
- "good",
44
- "neutral",
45
- "warning"
46
- ]);
47
- const pluginOperationalMetricSchema = z.object({
48
- label: z.string(),
49
- tone: pluginOperationalToneSchema.optional(),
50
- value: z.string()
51
- }).strict();
52
- const pluginOperationalFieldSchema = z.object({
53
- key: z.string(),
54
- label: z.string()
55
- }).strict();
56
- const pluginOperationalRecordSchema = z.object({
57
- id: z.string(),
58
- tone: pluginOperationalToneSchema.optional(),
59
- values: z.record(z.string(), z.string())
60
- }).strict();
61
- const pluginOperationalRecordSetSchema = z.object({
62
- fields: z.array(pluginOperationalFieldSchema).optional(),
63
- emptyText: z.string().optional(),
64
- records: z.array(pluginOperationalRecordSchema).optional(),
65
- title: z.string()
66
- }).strict();
67
- const pluginOperationalBarChartWidgetSchema = z.object({
68
- categories: z.array(z.object({
69
- id: z.string().min(1),
70
- label: z.string().min(1),
71
- values: z.record(z.string(), z.number().finite())
72
- }).strict()).max(100),
73
- description: z.string().optional(),
74
- emptyText: z.string().optional(),
75
- id: z.string().min(1),
76
- series: z.array(z.object({
77
- format: z.literal("usd").optional(),
78
- key: z.string().min(1),
79
- label: z.string().min(1),
80
- tone: pluginOperationalToneSchema.optional()
81
- }).strict()).min(1).max(8),
82
- timeRangeDays: z.array(z.union([
83
- z.literal(1),
84
- z.literal(7),
85
- z.literal(30),
86
- z.literal(90)
87
- ])).min(1).max(4).optional(),
88
- title: z.string().min(1),
89
- type: z.literal("bar_chart")
90
- }).strict();
91
- const pluginOperationalReportSchema = z.object({
92
- generatedAt: z.string().optional(),
93
- metrics: z.array(pluginOperationalMetricSchema).optional(),
94
- recordSets: z.array(pluginOperationalRecordSetSchema).optional(),
95
- title: z.string().optional(),
96
- pluginName: z.string(),
97
- widgets: z.array(pluginOperationalBarChartWidgetSchema).max(12).optional()
98
- }).strict();
99
- const pluginOperationalReportFeedSchema = z.object({
100
- generatedAt: z.string(),
101
- reports: z.array(pluginOperationalReportSchema),
102
- source: z.literal("plugins")
103
- }).strict();
104
- // src/api/schema/common.ts
105
- /** Stable error body returned by Junior-owned REST endpoints. */
106
- const apiErrorSchema = z.object({ error: z.string().min(1) }).strict();
107
- export { pluginPackageContentItemReportSchema as a, pluginsSchema as c, skillReportsSchema as d, pluginOperationalReportSchema as i, runtimeInfoReportSchema as l, healthReportSchema as n, pluginPackageContentReportSchema as o, pluginOperationalReportFeedSchema as r, pluginSchema as s, apiErrorSchema as t, skillReportSchema as u };
@@ -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 };
@@ -1,27 +0,0 @@
1
- import "node:module";
2
- // \0rolldown/runtime.js
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __exportAll = (all, no_symbols) => {
8
- let target = {};
9
- for (var name in all) __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true
12
- });
13
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
14
- return target;
15
- };
16
- var __copyProps = (to, from, except, desc) => {
17
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
18
- key = keys[i];
19
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
20
- get: ((k) => from[k]).bind(null, key),
21
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
22
- });
23
- }
24
- return to;
25
- };
26
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
- export { __reExport as n, __exportAll as t };
@@ -1,23 +0,0 @@
1
- import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { captureException, captureMessage, continueTrace, flush, getActiveSpan, getClient, getGlobalScope, getTraceData, init, logger, setTag, setUser, spanToJSON, startInactiveSpan, startSpan, withActiveSpan, withScope } from "@sentry/node";
3
- // src/chat/sentry.ts
4
- var sentry_exports = /* @__PURE__ */ __exportAll({
5
- captureException: () => captureException,
6
- captureMessage: () => captureMessage,
7
- continueTrace: () => continueTrace,
8
- flush: () => flush,
9
- getActiveSpan: () => getActiveSpan,
10
- getClient: () => getClient,
11
- getGlobalScope: () => getGlobalScope,
12
- getTraceData: () => getTraceData,
13
- init: () => init,
14
- logger: () => logger,
15
- setTag: () => setTag,
16
- setUser: () => setUser,
17
- spanToJSON: () => spanToJSON,
18
- startInactiveSpan: () => startInactiveSpan,
19
- startSpan: () => startSpan,
20
- withActiveSpan: () => withActiveSpan,
21
- withScope: () => withScope
22
- });
23
- export { withScope as _, getClient as a, init as c, setTag as d, setUser as f, withActiveSpan as g, startSpan as h, getActiveSpan as i, logger as l, startInactiveSpan as m, captureMessage as n, getGlobalScope as o, spanToJSON as p, continueTrace as r, getTraceData as s, captureException as t, sentry_exports as u };