@sentry/junior 0.286.0 → 0.287.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 (69) hide show
  1. package/dist/{adapter-JQZaJ-B_.js → adapter-CL-HUKgd.js} +1 -1
  2. package/dist/{admin-Dm2bimJ-.js → admin-C9urXVfi.js} +2 -1
  3. package/dist/{agent-runner-DGCwOEyL.js → agent-runner-Bfnw551N.js} +644 -312
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +7 -7
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +36 -53
  8. package/dist/{app-BKq0JzWx.d.ts → app-DBY5TnfY.d.ts} +2 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +62 -29
  11. package/dist/{assistant-reply-CAPafcUY.js → assistant-reply-u_PRYzuz.js} +1 -1
  12. package/dist/{automation-B-jJN_gM.js → automation-DksGNDRO.js} +3 -6
  13. package/dist/{background-compaction-queue-Btu2oab_.js → background-compaction-queue-CYI909P5.js} +3 -3
  14. package/dist/{briefs-UMeYehUe.js → briefs-DaXiMWzT.js} +6 -5
  15. package/dist/{catalog-runtime-Bym8GVdh.js → catalog-runtime-BCIuBe4d.js} +1 -1
  16. package/dist/cli/chat.js +14 -14
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.js +4 -4
  20. package/dist/cli/snapshot-create.js +4 -4
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +3 -3
  23. package/dist/{client-B0aAs7wC.js → config-CkHcUMN7.js} +580 -3
  24. package/dist/{connections-CQ7p0aNJ.js → connections-BnIj0wtx.js} +9 -9
  25. package/dist/{conversation-BusI2uzj.js → conversation-E7ZPJx2H.js} +8 -1
  26. package/dist/{conversation-pending-messages-DwehU0Fd.js → conversation-pending-messages-DVch6YQw.js} +2 -5
  27. package/dist/{conversation-privacy-Cd_nZZBM.js → conversation-privacy-DF1hW0ja.js} +1 -1
  28. package/dist/{credential-sync-DmiJi_At.js → credential-sync-CzMar9hq.js} +13 -13
  29. package/dist/{viewer-CH-ASQzh.js → db-DJ11eZqq.js} +37 -343
  30. package/dist/{db-C5zi4ecs.d.ts → db-YDKKDxlh.d.ts} +1 -1
  31. package/dist/{executor-Dipi2Ixl.js → executor-BY9TB31g.js} +11 -4
  32. package/dist/instrumentation.js +2 -2
  33. package/dist/{logging-CMFhLLj4.js → logging-BO5zU6Mt.js} +1 -1
  34. package/dist/{media-B-BpXo41.js → media-Cz1ZiV1U.js} +2 -2
  35. package/dist/{message-D1xLljUF.js → message-CsUbuEc8.js} +10 -10
  36. package/dist/nitro.d.ts +1 -1
  37. package/dist/nitro.js +2 -2
  38. package/dist/{oauth-callback-server-DCAFIUQr.js → oauth-callback-server-hiDKK0_n.js} +2 -2
  39. package/dist/{projection-CoeMNxJ4.js → projection-CL_YWeGf.js} +82 -160
  40. package/dist/{prompt-C9OQEfan.js → prompt-BHOEQSmf.js} +182 -2
  41. package/dist/{registry-u-sFYtx_.js → registry-BriFLnaJ.js} +1 -1
  42. package/dist/{reporting-window-B4TwyuJo.js → reporting-window-B3Ze-Qnt.js} +4 -1
  43. package/dist/{resolve-DYqgL3Eo.js → resolve-Bt6GgAiA.js} +3 -3
  44. package/dist/{result-CescSwAw.js → result-Bo1TZu0Q.js} +8 -8
  45. package/dist/{runner-Cr67a8TB.js → runner-D3YeCQgt.js} +8 -8
  46. package/dist/{sandbox-egress-signals-DLOazy5W.js → sandbox-egress-signals-CcnSPP4S.js} +1 -1
  47. package/dist/{schema-BUSi3sgv.js → schema-BWE3RJEB.js} +17 -5
  48. package/dist/{schema-Ih60j59-.d.ts → schema-C6fsEwjo.d.ts} +46 -1
  49. package/dist/{service-account-CGEqz9wG.js → service-account-DiQQuuw7.js} +3 -3
  50. package/dist/{service-account-CsKxktLk.js → service-account-r6fl0b-9.js} +3 -3
  51. package/dist/{session-stop-CGz5DByb.js → session-stop-B2Nut40V.js} +18 -18
  52. package/dist/{skills-COCqf61f.js → skills-CD5aJdzg.js} +2 -2
  53. package/dist/spawn-CalgZQiu.js +79 -0
  54. package/dist/{stop-GyFZkHuQ.js → stop-kujZLbi0.js} +56 -240
  55. package/dist/{store-D0-8plWp.js → store-DdIEUL1q.js} +3 -3
  56. package/dist/{task-runner-xPuQmEot.js → task-runner-D_RDr2Hu.js} +12 -11
  57. package/dist/{turn-failure-response-BOviBdT-.js → turn-failure-response-B5nV1Er-.js} +16 -11
  58. package/dist/{validation-DZDKorGz.js → validation-K4pqwoVZ.js} +1 -1
  59. package/dist/{version-BTIz7fGi.js → version-DBvhk1X9.js} +1 -1
  60. package/dist/version.js +1 -1
  61. package/dist/viewer-DrMmFUul.js +337 -0
  62. package/dist/{work-C75_IM5e.js → work-ljRoODGu.js} +30 -19
  63. package/dist/{worker-Dl47I729.js → worker-CYO1Q0Js.js} +5 -6
  64. package/migrations/0088_conversation_unsubscribe.sql +1 -0
  65. package/migrations/meta/0088_snapshot.json +4372 -0
  66. package/migrations/meta/_journal.json +7 -0
  67. package/package.json +4 -4
  68. package/dist/config-B9f9Lqo5.js +0 -579
  69. package/dist/spawn-C8F_iXWO.js +0 -42
@@ -1,5 +1,5 @@
1
- import { i as getChatConfig } from "./config-B9f9Lqo5.js";
2
- import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-CMFhLLj4.js";
1
+ import { i as getChatConfig } from "./config-CkHcUMN7.js";
2
+ import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-BO5zU6Mt.js";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  import { createHash, createHmac, timingSafeEqual } from "node:crypto";
5
5
  import * as z from "zod";
@@ -489,7 +489,7 @@ function pluginTaskCallback() {
489
489
  maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
490
490
  onRejected: logPluginTaskQueueMessageRejected,
491
491
  run: async (message) => {
492
- const { processPluginTask } = await import("./task-runner-xPuQmEot.js").then((n) => n.r);
492
+ const { processPluginTask } = await import("./task-runner-D_RDr2Hu.js").then((n) => n.r);
493
493
  await processPluginTask(message);
494
494
  },
495
495
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -1,6 +1,5 @@
1
- import { i as completeObject } from "./client-B0aAs7wC.js";
2
- import { K as parseBriefInput, V as briefCodeChangeSchema, W as briefResourceLabel, d as conversationEventPageSchema, l as conversationDetailReportSchema } from "./conversation-BusI2uzj.js";
3
- import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-C9OQEfan.js";
1
+ import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-BHOEQSmf.js";
2
+ import { K as parseBriefInput, V as briefCodeChangeSchema, W as briefResourceLabel, d as conversationEventPageSchema, l as conversationDetailReportSchema } from "./conversation-E7ZPJx2H.js";
4
3
  import { CLI_USAGE } from "./cli/run.js";
5
4
  import path from "node:path";
6
5
  import * as z from "zod";
@@ -263,7 +262,7 @@ async function parseRunOptions(argv) {
263
262
  * token.
264
263
  */
265
264
  async function configuredBriefModelId() {
266
- const { botConfig } = await import("./config-B9f9Lqo5.js").then((n) => n.r);
265
+ const { botConfig } = await import("./config-CkHcUMN7.js").then((n) => n.r);
267
266
  return botConfig.fastModelId;
268
267
  }
269
268
  function apiUrl(baseUrl, pathname) {
@@ -335,7 +334,9 @@ async function runSnapshot(snapshotPath, options, prompt) {
335
334
  for (const throughIndex of generationIndexes(snapshot, options.turnByTurn, finalThroughIndex)) versions.push(await generateBrief({
336
335
  completeObject: (request) => completeObject({
337
336
  ...request,
338
- modelId: options.model
337
+ modelId: options.model,
338
+ operation: "brief_update",
339
+ cost: { owner: "caller" }
339
340
  }),
340
341
  input: briefInputFromSnapshot(snapshot, throughIndex),
341
342
  previous: versions.at(-1)?.brief,
@@ -1,5 +1,5 @@
1
1
  import { v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { t as createPluginCatalogRuntime } from "./registry-u-sFYtx_.js";
2
+ import { t as createPluginCatalogRuntime } from "./registry-BriFLnaJ.js";
3
3
  // src/chat/plugins/catalog-runtime.ts
4
4
  var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
5
5
  const pluginCatalogRuntime = createPluginCatalogRuntime();
package/dist/cli/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-DGCwOEyL.js";
1
+ import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-Bfnw551N.js";
2
2
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
3
3
  import path from "node:path";
4
4
  import { createHash, randomUUID } from "node:crypto";
@@ -99,10 +99,10 @@ async function loadLocalPluginSet() {
99
99
  async function configureLocalChatPlugins(pluginSet) {
100
100
  const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
101
101
  import("../plugins-HYh_JOdw.js").then((n) => n.o),
102
- import("../projection-CoeMNxJ4.js").then((n) => n.Vn),
103
- import("../catalog-runtime-Bym8GVdh.js").then((n) => n.t),
104
- import("../validation-DZDKorGz.js").then((n) => n.r),
105
- import("../viewer-CH-ASQzh.js").then((n) => n.v)
102
+ import("../projection-CL_YWeGf.js").then((n) => n.Un),
103
+ import("../catalog-runtime-BCIuBe4d.js").then((n) => n.t),
104
+ import("../validation-K4pqwoVZ.js").then((n) => n.r),
105
+ import("../db-DJ11eZqq.js").then((n) => n.n)
106
106
  ]);
107
107
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
108
108
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -152,18 +152,18 @@ function localDevServerUrl() {
152
152
  async function prepareLocalChatRun(io, pluginSet) {
153
153
  defaultStateAdapterForLocalChat();
154
154
  await configureLocalChatPlugins(pluginSet);
155
- const { setBriefsConfig } = await import("../projection-CoeMNxJ4.js").then((n) => n.$n);
155
+ const { setBriefsConfig } = await import("../projection-CL_YWeGf.js").then((n) => n.tr);
156
156
  setBriefsConfig({ enabled: true });
157
- const { runLocalAgentTurn } = await import("../runner-Cr67a8TB.js");
158
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-DCAFIUQr.js");
157
+ const { runLocalAgentTurn } = await import("../runner-D3YeCQgt.js");
158
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-hiDKK0_n.js");
159
159
  const { createLocalOAuthState } = await import("../oauth-relay-D6xxVywK.js").then((n) => n.t);
160
- const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-DLOazy5W.js");
161
- const { bindSpawnAgent } = await import("../spawn-C8F_iXWO.js").then((n) => n.n);
162
- const { bindMessageAgent } = await import("../message-D1xLljUF.js").then((n) => n.n);
163
- const { createChildConversationWorker } = await import("../result-CescSwAw.js").then((n) => n.i);
164
- const { skipInputAfterConversationStop } = await import("../session-stop-CGz5DByb.js").then((n) => n.a);
160
+ const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-CcnSPP4S.js");
161
+ const { bindSpawnAgent } = await import("../spawn-CalgZQiu.js").then((n) => n.n);
162
+ const { bindMessageAgent } = await import("../message-CsUbuEc8.js").then((n) => n.n);
163
+ const { createChildConversationWorker } = await import("../result-Bo1TZu0Q.js").then((n) => n.i);
164
+ const { skipInputAfterConversationStop } = await import("../session-stop-B2Nut40V.js").then((n) => n.a);
165
165
  const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
166
- const { processConversationWork } = await import("../worker-Dl47I729.js").then((n) => n.n);
166
+ const { processConversationWork } = await import("../worker-CYO1Q0Js.js").then((n) => n.n);
167
167
  let agentRunner;
168
168
  const localConversationWork = createLocalConversationWork(async (message) => {
169
169
  if (!agentRunner) throw new Error("Local agent runner is not ready");
package/dist/cli/check.js CHANGED
@@ -1,6 +1,6 @@
1
- import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-CMFhLLj4.js";
2
- import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-u-sFYtx_.js";
3
- import { i as parseSkillFile } from "../skills-COCqf61f.js";
1
+ import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-BO5zU6Mt.js";
2
+ import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-BriFLnaJ.js";
3
+ import { i as parseSkillFile } from "../skills-CD5aJdzg.js";
4
4
  import path from "node:path";
5
5
  import fs from "node:fs/promises";
6
6
  import { pathToFileURL } from "node:url";
package/dist/cli/main.js CHANGED
@@ -25,13 +25,13 @@ async function runChat(argv, pluginSet) {
25
25
  return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
26
26
  }
27
27
  async function runAdmin(argv) {
28
- return await (await import("../admin-Dm2bimJ-.js")).runAdmin(argv);
28
+ return await (await import("../admin-C9urXVfi.js")).runAdmin(argv);
29
29
  }
30
30
  async function runServiceAccount(argv) {
31
- return await (await import("../service-account-CsKxktLk.js")).runServiceAccount(argv);
31
+ return await (await import("../service-account-r6fl0b-9.js")).runServiceAccount(argv);
32
32
  }
33
33
  async function runBriefs(argv) {
34
- return await (await import("../briefs-UMeYehUe.js")).runBriefs(argv);
34
+ return await (await import("../briefs-DaXiMWzT.js")).runBriefs(argv);
35
35
  }
36
36
  function topLevelCommand(argv) {
37
37
  return (argv[0] === "--" ? argv.slice(1) : argv)[0];
@@ -1,7 +1,7 @@
1
- import { Xn as setPlugins, Za as createPluginLogger, Zn as validatePlugins } from "../projection-CoeMNxJ4.js";
2
- import { S as getDb } from "../viewer-CH-ASQzh.js";
3
- import { n as pluginCatalogRuntime } from "../catalog-runtime-Bym8GVdh.js";
4
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-DZDKorGz.js";
1
+ import { $a as createPluginLogger, $n as validatePlugins, Qn as setPlugins } from "../projection-CL_YWeGf.js";
2
+ import { o as getDb } from "../db-DJ11eZqq.js";
3
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-BCIuBe4d.js";
4
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-K4pqwoVZ.js";
5
5
  import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-HYh_JOdw.js";
6
6
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
7
7
  import { stderr, stdout } from "node:process";
@@ -1,7 +1,7 @@
1
- import { Di as create, Ma as SANDBOX_RUNTIME } from "../projection-CoeMNxJ4.js";
2
- import { n as pluginCatalogRuntime } from "../catalog-runtime-Bym8GVdh.js";
3
- import { t as disconnectStateAdapter } from "../adapter-JQZaJ-B_.js";
4
- import { n as resolve } from "../resolve-DYqgL3Eo.js";
1
+ import { Pa as SANDBOX_RUNTIME, ki as create } from "../projection-CL_YWeGf.js";
2
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-BCIuBe4d.js";
3
+ import { t as disconnectStateAdapter } from "../adapter-CL-HUKgd.js";
4
+ import { n as resolve } from "../resolve-Bt6GgAiA.js";
5
5
  // src/cli/snapshot-create.ts
6
6
  const DEFAULT_TIMEOUT_MS = 6e5;
7
7
  function progressMessage(phase) {
@@ -1,4 +1,4 @@
1
- import "../db-C5zi4ecs.js";
1
+ import "../db-YDKKDxlh.js";
2
2
  import { n as JuniorPluginSet } from "../plugins-DtmjkTza.js";
3
3
  interface UpgradeIo {
4
4
  info: (line: string) => void;
@@ -1,6 +1,6 @@
1
- import { i as getChatConfig } from "../config-B9f9Lqo5.js";
2
- import { t as createJuniorSqlExecutor } from "../executor-Dipi2Ixl.js";
3
- import { t as createPluginCatalogRuntime } from "../registry-u-sFYtx_.js";
1
+ import { i as getChatConfig } from "../config-CkHcUMN7.js";
2
+ import { t as createJuniorSqlExecutor } from "../executor-BY9TB31g.js";
3
+ import { t as createPluginCatalogRuntime } from "../registry-BriFLnaJ.js";
4
4
  import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-HYh_JOdw.js";
5
5
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
6
6
  import { basename, dirname, join, resolve } from "node:path";