@sentry/junior 0.302.0 → 0.303.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 (93) hide show
  1. package/dist/{adapter-context-Cx9fn9B3.js → adapter-context-BdVnSuY5.js} +2 -2
  2. package/dist/{admin-_poE5NKL.js → admin-AfeAdS3J.js} +2 -2
  3. package/dist/{agent-runner-CY9RvsTX.js → agent-runner-BP8_DLUv.js} +2987 -2948
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +6 -6
  6. package/dist/api.d.ts +13 -12
  7. package/dist/api.js +207 -80
  8. package/dist/{app-BpY3wtRP.d.ts → app-Dd9v1mNx.d.ts} +15 -15
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +63 -64
  11. package/dist/{automation-Cva5ZOwW.js → automation-D9MvhOWY.js} +3 -1
  12. package/dist/{background-compaction-queue-CXFq1_Cz.js → background-compaction-queue-xaE05jxH.js} +6 -6
  13. package/dist/{briefs-B3NG-pid.js → briefs-D8i-dKTp.js} +4 -4
  14. package/dist/{catalog-runtime-Dss0lSV6.js → catalog-runtime-d1EM6Z0V.js} +2 -2
  15. package/dist/cli/chat.d.ts +1 -1
  16. package/dist/cli/chat.js +21 -21
  17. package/dist/cli/check.js +8 -8
  18. package/dist/cli/env.d.ts +1 -0
  19. package/dist/cli/env.js +8 -7
  20. package/dist/cli/init.js +13 -4
  21. package/dist/cli/main.js +4 -4
  22. package/dist/cli/plugins.js +6 -6
  23. package/dist/cli/snapshot-create.js +7 -5
  24. package/dist/cli/upgrade.d.ts +2 -2
  25. package/dist/cli/upgrade.js +5 -5
  26. package/dist/{config-CzeZiMKs.js → config-oGM7KA9M.js} +44 -63
  27. package/dist/{connections-CDYhMfrs.js → connections-BlikzEJv.js} +6 -6
  28. package/dist/{continue-in-slack-7Uf05ndC.js → continue-in-slack-BZnYifiG.js} +5 -5
  29. package/dist/{conversation-BNXfq6Lb.js → conversation-CY1jnBiC.js} +1 -1
  30. package/dist/{conversation-feed-Clf_cv0n.js → conversation-feed-BZJRk6UV.js} +1 -1
  31. package/dist/{conversation-privacy-D9xnM5mK.js → conversation-privacy-Cx515ddM.js} +7 -7
  32. package/dist/{conversation-turn-D7SEZgTG.js → conversation-turn-DAhRdX4m.js} +20 -23
  33. package/dist/{credential-sync-DoD0gW-j.js → credential-sync-DfhmWFeo.js} +18 -18
  34. package/dist/{db-B-gtnNjr.js → db-C-2tFxk3.js} +15 -15
  35. package/dist/{db-BdsCzytP.d.ts → db-DPqcEM9_.d.ts} +25 -25
  36. package/dist/{executor-DZg20EqU.js → executor-NVfS8aQ2.js} +14 -8
  37. package/dist/{history-IjdmO_r6.js → history-UZ3M2M9r.js} +13 -10
  38. package/dist/{install-t1KQyTUs.js → install-CHLrpRZc.js} +3 -3
  39. package/dist/instrumentation.d.ts +4 -4
  40. package/dist/instrumentation.js +10 -10
  41. package/dist/{lineage-C79GjoQr.js → lineage-HGLhd_-N.js} +2 -2
  42. package/dist/{logging-C9oDAg4M.js → logging-DiyqRLBx.js} +19 -19
  43. package/dist/{message-BLUCzJXN.js → message-CkCOcbFH.js} +9 -9
  44. package/dist/{model-input-5jwNC45G.js → model-input-DmoPPtPE.js} +4 -9
  45. package/dist/nitro.d.ts +1 -1
  46. package/dist/nitro.js +7 -7
  47. package/dist/{oauth-callback-server-BBl66vCb.js → oauth-callback-server-CIf_6YmA.js} +5 -4
  48. package/dist/{oauth-relay-DRzq73b6.js → oauth-relay-DAmfVmJu.js} +3 -6
  49. package/dist/{package-discovery-DJhGdS4c.js → package-discovery-x4AvVhMj.js} +1 -1
  50. package/dist/{plugin-module-Cf5gVPWP.js → plugin-module-Cv2ETe8Y.js} +1 -1
  51. package/dist/{plugins-BBX07Jzt.js → plugins-Bkk0XRo2.js} +3 -3
  52. package/dist/{projection-CIBwgD3s.js → projection-DBq8tsA5.js} +221 -173
  53. package/dist/{prompt-CRQbzp5e.js → prompt-D2KlJopL.js} +4 -4
  54. package/dist/{queue-CZyYgPF0.d.ts → queue-CbEHUO0l.d.ts} +1 -1
  55. package/dist/{queue-DtCDaIct.js → queue-DFaOscp5.js} +4 -4
  56. package/dist/{registry-DdFQHZ_d.js → registry-Bu0Z9BEO.js} +37 -37
  57. package/dist/{resolve-CdW4BdrK.js → resolve-DXuA3G0g.js} +3 -3
  58. package/dist/{result-oOMv1t4O.js → result-DpiNseDA.js} +10 -15
  59. package/dist/rolldown-runtime-BKpuH2hG.js +26 -0
  60. package/dist/{runner-DqitLtm-.js → runner-iu1heRFv.js} +10 -10
  61. package/dist/{sandbox-egress-signals-Bw9I0yfJ.js → sandbox-egress-signals-2HFYDcQf.js} +1 -1
  62. package/dist/{schema-BIFM-U1a.d.ts → schema-DHMOaRzC.d.ts} +520 -13
  63. package/dist/{schema-DnVQepWP.js → schema-DvfX3Gq_.js} +77 -13
  64. package/dist/{secrets-DebYU866.js → secrets-DHaJ5TTn.js} +4 -4
  65. package/dist/{sentry-BRTJqumy.js → sentry-CPbZjomA.js} +3 -28
  66. package/dist/{sentry-route-name-BhwWnfqj.js → sentry-route-name-C6EIzAGP.js} +1 -1
  67. package/dist/{service-account-CrZftRTb.js → service-account-BcT5LR7V.js} +47 -47
  68. package/dist/{service-account-B6mKAPVo.js → service-account-xYkaQTrw.js} +3 -3
  69. package/dist/{session-stop-DW63Z3kj.js → session-stop-BLLp1IP_.js} +28 -35
  70. package/dist/{skills-C16fz60Z.js → skills-CNAGH4ju.js} +6 -9
  71. package/dist/{slack-conversation-unfurl-BHhefEb7.js → slack-conversation-unfurl-DYnqe5ci.js} +10 -15
  72. package/dist/{spawn-D_RnFYfy.js → spawn-cGasWW33.js} +7 -7
  73. package/dist/{legacy-web-actor-id-C-cEeWqL.js → state-CDS6h_Wv.js} +32 -32
  74. package/dist/{stop-7p1i08CY.js → stop-DMMA67yT.js} +221 -139
  75. package/dist/{store-C28I0CVW.js → store-Dgs7Oe44.js} +5 -5
  76. package/dist/{task-queue-BVUJbQ28.js → task-queue-DcF0nhhz.js} +3 -3
  77. package/dist/{task-runner-CWi8j7Z6.js → task-runner-BGXF7Fo7.js} +15 -18
  78. package/dist/{thread-context-D3-yYUd0.js → thread-context-BPky1KBe.js} +12 -12
  79. package/dist/{turn-session-routing-BFMS9ATF.js → turn-session-routing-DGvn9MSl.js} +32 -32
  80. package/dist/{turn-user-message-C3-O8Omt.js → turn-user-message-19CkuUvM.js} +3 -3
  81. package/dist/{validation-BSFKUIb4.js → validation-lu1DgjNQ.js} +2 -2
  82. package/dist/vercel.js +1 -1
  83. package/dist/{version-BHHXNi-0.js → version-Uo3c94Dx.js} +1 -1
  84. package/dist/version.js +1 -1
  85. package/dist/{viewer-B1SO21Qa.js → viewer-BPQHMx3-.js} +3 -3
  86. package/dist/{warmup-Bz9bzkzN.js → warmup-H8uLvW9e.js} +149 -130
  87. package/dist/{worker-BspReIIK.js → worker-B-pM_-3K.js} +9 -12
  88. package/migrations/0109_user_preferences.sql +1 -0
  89. package/migrations/0110_code_change_repository_state_index.sql +1 -0
  90. package/migrations/meta/0109_snapshot.json +4925 -0
  91. package/migrations/meta/0110_snapshot.json +4952 -0
  92. package/migrations/meta/_journal.json +15 -1
  93. package/package.json +16 -19
package/dist/nitro.js CHANGED
@@ -1,10 +1,10 @@
1
- import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, B as getDeploymentServiceVersion, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./logging-C9oDAg4M.js";
2
- import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DJhGdS4c.js";
3
- import { s as resolveConversationWorkQueueTopic, t as BACKGROUND_COMPACTION_QUEUE_TOPIC } from "./background-compaction-queue-CXFq1_Cz.js";
4
- import { o as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as CACHE_WARMUP_QUEUE_TOPIC } from "./queue-DtCDaIct.js";
5
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-BVUJbQ28.js";
6
- import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-BBX07Jzt.js";
7
- import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cf5gVPWP.js";
1
+ import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-x4AvVhMj.js";
2
+ import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-Bkk0XRo2.js";
3
+ import { o as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as CACHE_WARMUP_QUEUE_TOPIC } from "./queue-DFaOscp5.js";
4
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-DcF0nhhz.js";
5
+ import { s as resolveConversationWorkQueueTopic, t as BACKGROUND_COMPACTION_QUEUE_TOPIC } from "./background-compaction-queue-xaE05jxH.js";
6
+ import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, B as getDeploymentServiceVersion, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./logging-DiyqRLBx.js";
7
+ import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cv2ETe8Y.js";
8
8
  import path from "node:path";
9
9
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
10
10
  import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
@@ -1,5 +1,5 @@
1
- import { Zn as createUserTokenStore } from "./projection-CIBwgD3s.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-DoD0gW-j.js";
1
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-DfhmWFeo.js";
2
+ import { Zn as createUserTokenStore } from "./projection-DBq8tsA5.js";
3
3
  import { createServer } from "node:http";
4
4
  // src/chat/local/oauth-callback-server.ts
5
5
  const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
@@ -28,7 +28,7 @@ async function startLocalOAuthCallbackServer() {
28
28
  pendingAuthorization = void 0;
29
29
  completeAuthorization(authorization, /* @__PURE__ */ new Error("Local OAuth authorization canceled"));
30
30
  };
31
- const server = createServer(async (incoming, outgoing) => {
31
+ const handleRequest = async (incoming, outgoing) => {
32
32
  const host = incoming.headers.host ?? "127.0.0.1";
33
33
  let requestUrl;
34
34
  try {
@@ -80,7 +80,8 @@ async function startLocalOAuthCallbackServer() {
80
80
  if (!outgoing.headersSent) outgoing.writeHead(500).end("Authorization callback failed");
81
81
  completeAuthorization(authorization, error instanceof Error ? error : new Error(String(error)));
82
82
  }
83
- });
83
+ };
84
+ const server = createServer((incoming, outgoing) => void handleRequest(incoming, outgoing));
84
85
  await new Promise((resolve, reject) => {
85
86
  server.once("error", reject);
86
87
  server.listen(0, "127.0.0.1", () => {
@@ -1,13 +1,10 @@
1
- import { v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { t as readJuniorSecret } from "./secrets-DebYU866.js";
1
+ import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
+ import { t as readJuniorSecret } from "./secrets-DHaJ5TTn.js";
3
3
  import * as z from "zod";
4
4
  import { randomBytes } from "node:crypto";
5
5
  import { SignJWT, jwtVerify } from "jose";
6
6
  // src/chat/local/oauth-relay.ts
7
- var oauth_relay_exports = /* @__PURE__ */ __exportAll({
8
- createLocalOAuthState: () => createLocalOAuthState,
9
- relayLocalOAuthCallback: () => relayLocalOAuthCallback
10
- });
7
+ var oauth_relay_exports = /* @__PURE__ */ __exportAll({ createLocalOAuthState: () => createLocalOAuthState });
11
8
  const LOCAL_OAUTH_STATE_PREFIX = "jr-local";
12
9
  const LOCAL_OAUTH_TOKEN_CONTEXT = "junior.local-oauth-relay.v1";
13
10
  const LOCAL_OAUTH_TOKEN_TTL = "10m";
@@ -1,4 +1,4 @@
1
- import { v as __exportAll } from "./sentry-BRTJqumy.js";
1
+ import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
2
  import { createRequire } from "node:module";
3
3
  import path from "node:path";
4
4
  import fs, { statSync } from "node:fs";
@@ -64,7 +64,7 @@ function assertPluginSet(value, source) {
64
64
  /** Load a resolved plugin module and return its configured plugin set. */
65
65
  async function loadPluginSetFromModule(moduleRef, importModule = async (ref) => await import(ref.importUrl)) {
66
66
  const mod = await importModule(moduleRef);
67
- return assertPluginSet(moduleRef.exportName === "default" ? mod.default : mod[moduleRef.exportName], `${moduleRef.importUrl}#${moduleRef.exportName}`);
67
+ return assertPluginSet(moduleRef.exportName === "default" ? mod["default"] : mod[moduleRef.exportName], `${moduleRef.importUrl}#${moduleRef.exportName}`);
68
68
  }
69
69
  /** Load an app-local `./plugins` module when one exists. */
70
70
  async function loadAppPluginSet(cwd, importModule) {
@@ -1,4 +1,4 @@
1
- import { v as __exportAll } from "./sentry-BRTJqumy.js";
1
+ import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
2
  // src/plugins.ts
3
3
  var plugins_exports = /* @__PURE__ */ __exportAll({
4
4
  defineJuniorPlugins: () => defineJuniorPlugins,
@@ -71,7 +71,7 @@ function pluginCatalogConfigFromPluginSet(pluginSet) {
71
71
  };
72
72
  }
73
73
  function readEnvPluginPackages(env = process.env) {
74
- const value = env.JUNIOR_PLUGIN_PACKAGES;
74
+ const value = env["JUNIOR_PLUGIN_PACKAGES"];
75
75
  if (!value) return;
76
76
  let parsed;
77
77
  try {
@@ -79,7 +79,7 @@ function readEnvPluginPackages(env = process.env) {
79
79
  } catch (error) {
80
80
  throw new Error("JUNIOR_PLUGIN_PACKAGES must be valid JSON", { cause: error });
81
81
  }
82
- if (!Array.isArray(parsed) || parsed.some((item) => typeof item !== "string" || !item.trim())) throw new Error("JUNIOR_PLUGIN_PACKAGES must be a JSON array of package names");
82
+ if (!Array.isArray(parsed) || !parsed.every((item) => typeof item === "string" && item.trim() !== "")) throw new Error("JUNIOR_PLUGIN_PACKAGES must be a JSON array of package names");
83
83
  return parsed;
84
84
  }
85
85
  /** Build the manifest catalog config implied by plugin package env. */