@sentry/junior 0.218.0 → 0.220.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 (54) hide show
  1. package/dist/{agent-C-wRol8n.js → agent-CJ_-GRPT.js} +40 -29
  2. package/dist/{agent-hooks-Au93EfEr.js → agent-hooks-DsFlR7gi.js} +8 -8
  3. package/dist/{agent-runner-skcXibgb.js → agent-runner-D82gVT0O.js} +5 -5
  4. package/dist/api/schema.d.ts +30 -0
  5. package/dist/api/schema.js +2 -2
  6. package/dist/api.js +80 -19
  7. package/dist/app.js +31 -158
  8. package/dist/{auth-pause-state-CU71X-6Z.js → auth-pause-state-DL5YJXnT.js} +6 -6
  9. package/dist/{briefs-Dcdrr46e.js → briefs-CvXfErSa.js} +4 -4
  10. package/dist/{catalog-runtime-B9yDPVCR.js → catalog-runtime-DSEzvNVT.js} +1 -1
  11. package/dist/{checkpoint-CQ6eQrJD.js → checkpoint-DfpPyo-x.js} +7 -7
  12. package/dist/cli/chat.js +13 -13
  13. package/dist/cli/check.js +3 -3
  14. package/dist/cli/main.js +1 -1
  15. package/dist/cli/plugins.js +3 -3
  16. package/dist/cli/snapshot-create.js +3 -3
  17. package/dist/cli/upgrade.js +3 -3
  18. package/dist/{client-BV3_abpr.js → client-pBijNHYx.js} +2 -2
  19. package/dist/{config-DceVK986.js → config-DYi2mx6N.js} +2 -2
  20. package/dist/{conversation-BpqLg4MM.js → conversation-BSRGzJmY.js} +1 -0
  21. package/dist/{conversation-privacy-C_w2FAlM.js → conversation-privacy-TiU3SGZh.js} +1 -1
  22. package/dist/{credential-sync-DKXGTID8.js → credential-sync-hBiu11zS.js} +20 -20
  23. package/dist/{execution-stats-BIyGof8p.js → execution-stats-DAWGg9WH.js} +3 -3
  24. package/dist/{executor-CxoH7xaY.js → executor-t2OCqFgz.js} +1 -1
  25. package/dist/instrumentation.js +2 -2
  26. package/dist/{job-queue-DwA7xmCQ.js → job-queue-Deruj7qS.js} +1 -1
  27. package/dist/{logging-CtfUmyiN.js → logging-wngKXw7u.js} +1 -1
  28. package/dist/nitro.js +3 -3
  29. package/dist/{oauth-callback-server-RefMcYAD.js → oauth-callback-server-D1jNG0lr.js} +2 -2
  30. package/dist/{pending-auth-B_nSqxpd.js → pending-auth-DJa76b68.js} +2 -2
  31. package/dist/{profile-BRupCR8f.js → profile-Mv2uNsKJ.js} +4 -4
  32. package/dist/{prompt-DAoaq0CT.js → prompt-BkaHwBW0.js} +1 -1
  33. package/dist/{registry-DiIwniX1.js → registry-6_Zog2YF.js} +1 -1
  34. package/dist/{resolve-0BvJroyG.js → resolve-BI3Dfm9p.js} +2 -2
  35. package/dist/{runner-DDHI2RaU.js → runner-CzrmejYr.js} +9 -9
  36. package/dist/{sandbox-egress-signals-CoVhGAih.js → sandbox-egress-signals-BcSCyPKx.js} +1 -1
  37. package/dist/{schema-BMG8MJPJ.js → schema-YPJXVcOW.js} +1 -1
  38. package/dist/{short-title-BdpXj7eS.js → short-title-Bs3wWE1M.js} +2 -2
  39. package/dist/{skills-MlftIiVP.js → skills-DOE_QPVJ.js} +2 -2
  40. package/dist/{spawn-DLlXPelG.js → spawn-DylJoJnT.js} +2 -2
  41. package/dist/{stats-BjipUP7p.js → stats--FeHjGJ1.js} +5 -5
  42. package/dist/{task-queue-DyfnQ7ZM.js → task-queue-CSEo5Ly9.js} +3 -3
  43. package/dist/{task-runner-BOuCBVgO.js → task-runner-BDwZj8OX.js} +8 -8
  44. package/dist/{thread-state-DrGVG1E-.js → thread-state-CpZAVpdG.js} +5 -5
  45. package/dist/{turn-execution-CZKg5Fw9.js → turn-execution-AROC0tUZ.js} +3 -3
  46. package/dist/{turn-lifecycle-BV2Wp_qF.js → turn-lifecycle-CGNjfgbT.js} +1 -1
  47. package/dist/{validation-BXDSxuOX.js → validation-QFwh6qzp.js} +1 -1
  48. package/dist/{version-DNJ6W0LC.js → version-FAS9qrpM.js} +1 -1
  49. package/dist/version.js +1 -1
  50. package/dist/{web-authorization-DhXHpeMK.js → web-authorization-ZAQcIE4e.js} +1 -1
  51. package/dist/{web-input-BqFF7CQB.js → web-input-C5nhIX0j.js} +4 -4
  52. package/dist/{work-DEMP0L3f.js → work-BNw2Vmxi.js} +9 -9
  53. package/dist/{worker-DvK47zmH.js → worker-9Us77-te.js} +5 -5
  54. package/package.json +5 -5
@@ -1,7 +1,7 @@
1
- import { w as toOptionalTrimmed } from "./client-BV3_abpr.js";
2
- import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-CtfUmyiN.js";
3
- import { a as getChatConfig } from "./config-DceVK986.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-B9yDPVCR.js";
1
+ import { w as toOptionalTrimmed } from "./client-pBijNHYx.js";
2
+ import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-wngKXw7u.js";
3
+ import { a as getChatConfig } from "./config-DYi2mx6N.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DSEzvNVT.js";
5
5
  import { createHash } from "node:crypto";
6
6
  import { createMemoryState } from "@chat-adapter/state-memory";
7
7
  import { createRedisState } from "@chat-adapter/state-redis";
@@ -1,4 +1,4 @@
1
- import { M as conversationBriefSchema, N as parseBriefInput, j as briefOutcomeStatusSchema } from "./conversation-BpqLg4MM.js";
1
+ import { M as conversationBriefSchema, N as parseBriefInput, j as briefOutcomeStatusSchema } from "./conversation-BSRGzJmY.js";
2
2
  import { z } from "zod";
3
3
  //#region src/chat/briefs/generate.ts
4
4
  const MAX_INPUT_CHARS = 6e4;
@@ -1,4 +1,4 @@
1
- import { _ as setSpanAttributes, d as logInfo, f as logWarn } from "./logging-CtfUmyiN.js";
1
+ import { _ as setSpanAttributes, d as logInfo, f as logWarn } from "./logging-wngKXw7u.js";
2
2
  import { i as credentialUserSubjectId } from "./context-Bplcgypl.js";
3
3
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-7a9YqLhE.js";
4
4
  import path from "node:path";
@@ -1,5 +1,5 @@
1
- import { C as withSpan, _ as setSpanAttributes } from "./logging-CtfUmyiN.js";
2
- import { A as sleep, P as SANDBOX_WORKSPACE_ROOT, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-BRupCR8f.js";
1
+ import { C as withSpan, _ as setSpanAttributes } from "./logging-wngKXw7u.js";
2
+ import { A as sleep, P as SANDBOX_WORKSPACE_ROOT, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-Mv2uNsKJ.js";
3
3
  import { z } from "zod";
4
4
  import { FileSystem, Sandbox } from "@vercel/sandbox";
5
5
  //#region src/chat/sandbox/resources.ts
@@ -1,13 +1,13 @@
1
- import { p as authorizationId } from "./agent-C-wRol8n.js";
2
- import { S as withLogContext, u as logException, y as setTags } from "./logging-CtfUmyiN.js";
1
+ import { p as authorizationId } from "./agent-CJ_-GRPT.js";
2
+ import { S as withLogContext, u as logException, y as setTags } from "./logging-wngKXw7u.js";
3
3
  import { t as credentialContextForActor } from "./context-Bplcgypl.js";
4
- import { Ht as getConversationEventStore, Wt as getConversationStore } from "./agent-hooks-Au93EfEr.js";
5
- import { F as loadProjection, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, ct as recordDeliveredAssistantMessage, d as persistWithRetry, j as commitAcceptedReply, ot as markConversationMessage, r as saveTurnCheckpoint, st as normalizeConversationText, tt as buildConversationContext, ut as upsertConversationMessage } from "./checkpoint-CQ6eQrJD.js";
6
- import { S as startActiveTurn, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-B_nSqxpd.js";
7
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-BOuCBVgO.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BV2Wp_qF.js";
9
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-DrGVG1E-.js";
10
- import { d as buildDeliveredTurnStatePatch, r as finalizeFailedTurnReplyWithEvent, t as completeAuthPauseTurn } from "./auth-pause-state-CU71X-6Z.js";
4
+ import { Ht as getConversationEventStore, Wt as getConversationStore } from "./agent-hooks-DsFlR7gi.js";
5
+ import { F as loadProjection, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, ct as recordDeliveredAssistantMessage, d as persistWithRetry, j as commitAcceptedReply, ot as markConversationMessage, r as saveTurnCheckpoint, st as normalizeConversationText, tt as buildConversationContext, ut as upsertConversationMessage } from "./checkpoint-DfpPyo-x.js";
6
+ import { S as startActiveTurn, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-DJa76b68.js";
7
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-BDwZj8OX.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CGNjfgbT.js";
9
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-CpZAVpdG.js";
10
+ import { d as buildDeliveredTurnStatePatch, r as finalizeFailedTurnReplyWithEvent, t as completeAuthPauseTurn } from "./auth-pause-state-DL5YJXnT.js";
11
11
  import { randomUUID } from "node:crypto";
12
12
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
13
13
  //#region src/chat/local/runner.ts
@@ -1,4 +1,4 @@
1
- import { Y as sandboxEgressSignalsResponseSchema } from "./agent-C-wRol8n.js";
1
+ import { Y as sandboxEgressSignalsResponseSchema } from "./agent-CJ_-GRPT.js";
2
2
  //#region src/chat/local/sandbox-egress-signals.ts
3
3
  const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
4
4
  const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
@@ -1,5 +1,5 @@
1
1
  import { t as juniorDestinationKindSchema } from "./destinations-BeBiJeEM.js";
2
- import { E as conversationSummaryReportSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-BpqLg4MM.js";
2
+ import { E as conversationSummaryReportSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-BSRGzJmY.js";
3
3
  import "./reporting-schema-DosTN__Q.js";
4
4
  import { z } from "zod";
5
5
  import { codeChangeStateSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
@@ -1,5 +1,5 @@
1
- import { f as logWarn } from "./logging-CtfUmyiN.js";
2
- import { n as botConfig } from "./config-DceVK986.js";
1
+ import { f as logWarn } from "./logging-wngKXw7u.js";
2
+ import { n as botConfig } from "./config-DYi2mx6N.js";
3
3
  const TITLE_PROMPTS = {
4
4
  conversation: [
5
5
  "Generate a concise 5-8 word conversation title from the first user message below.",
@@ -1,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { f as logWarn } from "./logging-CtfUmyiN.js";
2
+ import { f as logWarn } from "./logging-wngKXw7u.js";
3
3
  import { s as skillRoots } from "./package-discovery-7a9YqLhE.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-B9yDPVCR.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DSEzvNVT.js";
5
5
  import path from "node:path";
6
6
  import { z } from "zod";
7
7
  import fs from "node:fs/promises";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { C as toolInvocationDestination, y as actorFromRun } from "./agent-runner-skcXibgb.js";
3
- import { n as createAndEnqueueAgentInvocation } from "./work-DEMP0L3f.js";
2
+ import { C as toolInvocationDestination, y as actorFromRun } from "./agent-runner-D82gVT0O.js";
3
+ import { n as createAndEnqueueAgentInvocation } from "./work-BNw2Vmxi.js";
4
4
  //#region src/chat/agent-invocations/spawn.ts
5
5
  var spawn_exports = /* @__PURE__ */ __exportAll({ bindSpawnAgent: () => bindSpawnAgent });
6
6
  /** Bind a Run's Actor and credentials to new Agent invocations. */
@@ -1,10 +1,10 @@
1
- import { F as isRecord$1, I as toOptionalNumber, L as toOptionalString } from "./logging-CtfUmyiN.js";
2
- import { a as getChatConfig } from "./config-DceVK986.js";
1
+ import { F as isRecord$1, I as toOptionalNumber, L as toOptionalString } from "./logging-wngKXw7u.js";
2
+ import { a as getChatConfig } from "./config-DYi2mx6N.js";
3
3
  import { _ as parseSlackMessageTs, d as parseStoredSlackActor, h as parseSlackTeamId, p as parseSlackChannelId } from "./context-Bplcgypl.js";
4
- import { Gt as getDb, J as withSlackRetries, U as getSlackClient, Wt as getConversationStore, fn as sameDestination, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, un as parseDestination } from "./agent-hooks-Au93EfEr.js";
4
+ import { Gt as getDb, J as withSlackRetries, U as getSlackClient, Wt as getConversationStore, fn as sameDestination, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, un as parseDestination } from "./agent-hooks-DsFlR7gi.js";
5
5
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
6
- import { E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments } from "./executor-CxoH7xaY.js";
7
- import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-BRupCR8f.js";
6
+ import { E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments } from "./executor-t2OCqFgz.js";
7
+ import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-Mv2uNsKJ.js";
8
8
  import "./vercel-queue-DIkVcfK4.js";
9
9
  import { z } from "zod";
10
10
  import { createHash, randomUUID } from "node:crypto";
@@ -1,6 +1,6 @@
1
- import { f as logWarn } from "./logging-CtfUmyiN.js";
1
+ import { f as logWarn } from "./logging-wngKXw7u.js";
2
2
  import { a as signQueueMessage, i as QUEUE_SIGNATURE_MAX_AGE_MS, o as verifyQueueMessage, s as createVercelQueueClient } from "./vercel-queue-DIkVcfK4.js";
3
- import { o as runWithTurnRequestDeadline } from "./job-queue-DwA7xmCQ.js";
3
+ import { o as runWithTurnRequestDeadline } from "./job-queue-Deruj7qS.js";
4
4
  import { z } from "zod";
5
5
  import { createHash } from "node:crypto";
6
6
  import { handleCallback, registerDevConsumer } from "@vercel/queue";
@@ -110,7 +110,7 @@ function pluginTaskCallback() {
110
110
  maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
111
111
  onRejected: logPluginTaskQueueMessageRejected,
112
112
  run: async (message) => {
113
- const { processPluginTask } = await import("./task-runner-BOuCBVgO.js").then((n) => n.r);
113
+ const { processPluginTask } = await import("./task-runner-BDwZj8OX.js").then((n) => n.r);
114
114
  await processPluginTask(message);
115
115
  },
116
116
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -1,12 +1,12 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
2
  import { _ as parseSlackMessageTs, r as credentialSubjectSchema } from "./context-Bplcgypl.js";
3
- import { At as createPluginConversationEvents, Gt as getDb, Q as readActorIdentity, Wt as getConversationStore, _t as createPluginState, bt as createPluginLogger, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginEmbedder, yt as createPluginModel } from "./agent-hooks-Au93EfEr.js";
4
- import { G as sameActorIdentity } from "./conversation-BpqLg4MM.js";
5
- import { E as normalizeToolNameFromResult, O as stripRuntimeTurnContext, T as isToolResultMessage, Y as hydrateConversationMessages, _ as getPiMessageRole, s as getTurnRecord, w as isToolResultError, x as instructionTextForProjection } from "./checkpoint-CQ6eQrJD.js";
6
- import { w as getStateAdapter } from "./profile-BRupCR8f.js";
7
- import { u as recordAutomationExecution } from "./execution-stats-BIyGof8p.js";
8
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-DrGVG1E-.js";
9
- import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-DyfnQ7ZM.js";
3
+ import { At as createPluginConversationEvents, Gt as getDb, Q as readActorIdentity, Wt as getConversationStore, _t as createPluginState, bt as createPluginLogger, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginEmbedder, yt as createPluginModel } from "./agent-hooks-DsFlR7gi.js";
4
+ import { G as sameActorIdentity } from "./conversation-BSRGzJmY.js";
5
+ import { E as normalizeToolNameFromResult, O as stripRuntimeTurnContext, T as isToolResultMessage, Y as hydrateConversationMessages, _ as getPiMessageRole, s as getTurnRecord, w as isToolResultError, x as instructionTextForProjection } from "./checkpoint-DfpPyo-x.js";
6
+ import { w as getStateAdapter } from "./profile-Mv2uNsKJ.js";
7
+ import { u as recordAutomationExecution } from "./execution-stats-DAWGg9WH.js";
8
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-CpZAVpdG.js";
9
+ import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-CSEo5Ly9.js";
10
10
  import { z } from "zod";
11
11
  import { createHash } from "node:crypto";
12
12
  import { destinationSchema, destinationVisibilitySchema, isSlackDestination, pluginRunContextSchema, replyAttributionSchema, sourceSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
@@ -345,7 +345,7 @@ function slackSourceForDestination(args) {
345
345
  * Reads parent Conversations when this Conversation has no Destination.
346
346
  */
347
347
  async function resolveConversationRouting(args) {
348
- const conversationStore = args.conversationStore ?? (await import("./agent-hooks-Au93EfEr.js").then((n) => n.Vt)).getConversationStore();
348
+ const conversationStore = args.conversationStore ?? (await import("./agent-hooks-DsFlR7gi.js").then((n) => n.Vt)).getConversationStore();
349
349
  const chain = await loadConversationChain(args.conversationId, conversationStore);
350
350
  let destination;
351
351
  let source;
@@ -1,9 +1,9 @@
1
- import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-CtfUmyiN.js";
2
- import { Gt as getDb, pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-Au93EfEr.js";
1
+ import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-wngKXw7u.js";
2
+ import { Gt as getDb, pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-DsFlR7gi.js";
3
3
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
4
- import { u as juniorLocationConfigurations } from "./executor-CxoH7xaY.js";
5
- import { X as persistConversationMessages } from "./checkpoint-CQ6eQrJD.js";
6
- import { w as getStateAdapter } from "./profile-BRupCR8f.js";
4
+ import { u as juniorLocationConfigurations } from "./executor-t2OCqFgz.js";
5
+ import { X as persistConversationMessages } from "./checkpoint-DfpPyo-x.js";
6
+ import { w as getStateAdapter } from "./profile-Mv2uNsKJ.js";
7
7
  import { z } from "zod";
8
8
  import { randomUUID } from "node:crypto";
9
9
  import { and, eq, sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
- import { Ht as getConversationEventStore } from "./agent-hooks-Au93EfEr.js";
2
- import { n as runAgentWithTimeout } from "./agent-runner-skcXibgb.js";
3
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BV2Wp_qF.js";
1
+ import { Ht as getConversationEventStore } from "./agent-hooks-DsFlR7gi.js";
2
+ import { n as runAgentWithTimeout } from "./agent-runner-D82gVT0O.js";
3
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CGNjfgbT.js";
4
4
  //#region src/chat/runtime/turn-execution.ts
5
5
  /** An error thrown while the agent advances a Run. */
6
6
  var AgentRunError = class extends Error {
@@ -1,4 +1,4 @@
1
- import { Ht as getConversationEventStore } from "./agent-hooks-Au93EfEr.js";
1
+ import { Ht as getConversationEventStore } from "./agent-hooks-DsFlR7gi.js";
2
2
  //#region src/chat/conversations/turn-lifecycle.ts
3
3
  /** Persist correlated turn lifecycle facts with retry-safe terminal exclusion. */
4
4
  var ConversationTurnLifecycleService = class {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { n as pluginCatalogRuntime } from "./catalog-runtime-B9yDPVCR.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DSEzvNVT.js";
3
3
  import { isDeepStrictEqual } from "node:util";
4
4
  //#region src/chat/plugins/validation.ts
5
5
  var validation_exports = /* @__PURE__ */ __exportAll({
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.218.0";
2
+ var version = "0.220.0";
3
3
  //#endregion
4
4
  //#region src/version.ts
5
5
  /** Installed Junior package version, or `unknown` when package metadata is unavailable. */
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- import { t as JUNIOR_VERSION } from "./version-DNJ6W0LC.js";
1
+ import { t as JUNIOR_VERSION } from "./version-FAS9qrpM.js";
2
2
  export { JUNIOR_VERSION };
@@ -1,4 +1,4 @@
1
- import { w as getStateAdapter } from "./profile-BRupCR8f.js";
1
+ import { w as getStateAdapter } from "./profile-Mv2uNsKJ.js";
2
2
  import { randomUUID } from "node:crypto";
3
3
  //#region src/chat/conversations/web-authorization.ts
4
4
  const WEB_AUTHORIZATION_PREFIX = "junior:web_authorization:v1";
@@ -1,8 +1,8 @@
1
- import { f as logWarn } from "./logging-CtfUmyiN.js";
2
- import { s as getSlackBotToken } from "./config-DceVK986.js";
1
+ import { f as logWarn } from "./logging-wngKXw7u.js";
2
+ import { s as getSlackBotToken } from "./config-DYi2mx6N.js";
3
3
  import "./context-Bplcgypl.js";
4
- import { K as normalizeSlackConversationId, Wt as getConversationStore } from "./agent-hooks-Au93EfEr.js";
5
- import { c as parseSlackThreadId, ft as appendAndEnqueueExclusiveInboundMessage, pt as appendAndEnqueueInboundMessage, qt as buildDeterministicTurnId } from "./stats-BjipUP7p.js";
4
+ import { K as normalizeSlackConversationId, Wt as getConversationStore } from "./agent-hooks-DsFlR7gi.js";
5
+ import { c as parseSlackThreadId, ft as appendAndEnqueueExclusiveInboundMessage, pt as appendAndEnqueueInboundMessage, qt as buildDeterministicTurnId } from "./stats--FeHjGJ1.js";
6
6
  import { t as healthReportSchema } from "./reporting-schema-DosTN__Q.js";
7
7
  import { z } from "zod";
8
8
  import { createHash } from "node:crypto";
@@ -1,13 +1,13 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { $ as AuthorizationFlowDisabledError, A as createAgentInvocationSchema, M as AgentInvocationLimitError, O as agentBindingSchema, f as PluginCredentialFailureError, j as AgentInvocationBusyError, k as agentInvocationSchema } from "./agent-C-wRol8n.js";
3
- import { Ht as getConversationEventStore, Kt as getSqlExecutor, Wt as getConversationStore } from "./agent-hooks-Au93EfEr.js";
4
- import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-CxoH7xaY.js";
5
- import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-CQ6eQrJD.js";
6
- import { pt as appendAndEnqueueInboundMessage } from "./stats-BjipUP7p.js";
7
- import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-B_nSqxpd.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BV2Wp_qF.js";
9
- import { n as executeTurn, t as AgentRunError } from "./turn-execution-CZKg5Fw9.js";
10
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-DrGVG1E-.js";
2
+ import { $ as AuthorizationFlowDisabledError, A as createAgentInvocationSchema, M as AgentInvocationLimitError, O as agentBindingSchema, f as PluginCredentialFailureError, j as AgentInvocationBusyError, k as agentInvocationSchema } from "./agent-CJ_-GRPT.js";
3
+ import { Ht as getConversationEventStore, Kt as getSqlExecutor, Wt as getConversationStore } from "./agent-hooks-DsFlR7gi.js";
4
+ import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-t2OCqFgz.js";
5
+ import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-DfpPyo-x.js";
6
+ import { pt as appendAndEnqueueInboundMessage } from "./stats--FeHjGJ1.js";
7
+ import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-DJa76b68.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-CGNjfgbT.js";
9
+ import { n as executeTurn, t as AgentRunError } from "./turn-execution-AROC0tUZ.js";
10
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-CpZAVpdG.js";
11
11
  import { z } from "zod";
12
12
  import { createHash } from "node:crypto";
13
13
  import { and, asc, count, eq, inArray } from "drizzle-orm";
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { b as isProviderRetryError } from "./client-BV3_abpr.js";
3
- import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-CtfUmyiN.js";
4
- import { a as getChatConfig } from "./config-DceVK986.js";
5
- import { At as recordConversationRetry, Ct as drainConversationMailbox, Et as getConversationWorkState, Ft as startConversationWork, Ht as isInvalidConversationRecordError, Nt as requestAnotherSlice, St as deadLetterAttempt, Vt as isFinalAttempt, _t as clearConsumedConversationWake, bt as completeConversationWork, dt as ackMessages, gt as checkInConversationWork, jt as releaseConversationWork, kt as recordAttemptFailure, mt as beginConversationResume, wt as ensureConversationWake, xt as countPendingConversationMessages, yt as completeConversationStop, zt as hasConversationStop } from "./stats-BjipUP7p.js";
2
+ import { b as isProviderRetryError } from "./client-pBijNHYx.js";
3
+ import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-wngKXw7u.js";
4
+ import { a as getChatConfig } from "./config-DYi2mx6N.js";
5
+ import { At as recordConversationRetry, Ct as drainConversationMailbox, Et as getConversationWorkState, Ft as startConversationWork, Ht as isInvalidConversationRecordError, Nt as requestAnotherSlice, St as deadLetterAttempt, Vt as isFinalAttempt, _t as clearConsumedConversationWake, bt as completeConversationWork, dt as ackMessages, gt as checkInConversationWork, jt as releaseConversationWork, kt as recordAttemptFailure, mt as beginConversationResume, wt as ensureConversationWake, xt as countPendingConversationMessages, yt as completeConversationStop, zt as hasConversationStop } from "./stats--FeHjGJ1.js";
6
6
  import { c as ConversationQueueMessageRejectedError } from "./vercel-queue-DIkVcfK4.js";
7
- import { a as getTurnRequestDeadline } from "./job-queue-DwA7xmCQ.js";
7
+ import { a as getTurnRequestDeadline } from "./job-queue-Deruj7qS.js";
8
8
  //#region src/chat/task-execution/worker.ts
9
9
  var worker_exports = /* @__PURE__ */ __exportAll({
10
10
  CONVERSATION_WORK_DEFER_DELAY_MS: () => CONVERSATION_WORK_DEFER_DELAY_MS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/junior",
3
- "version": "0.218.0",
3
+ "version": "0.220.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -85,7 +85,7 @@
85
85
  "pg": "^8.16.3",
86
86
  "yaml": "^2.9.0",
87
87
  "zod": "^4.5.4",
88
- "@sentry/junior-plugin-api": "0.218.0"
88
+ "@sentry/junior-plugin-api": "0.220.0"
89
89
  },
90
90
  "devDependencies": {
91
91
  "@emnapi/core": "^1.10.0",
@@ -104,9 +104,9 @@
104
104
  "typescript": "^6.0.3",
105
105
  "vercel": "^54.4.0",
106
106
  "vitest": "^4.1.7",
107
- "@sentry/junior-github": "0.218.0",
108
- "@sentry/junior-testing": "0.0.0",
109
- "@sentry/junior-memory": "0.218.0"
107
+ "@sentry/junior-github": "0.220.0",
108
+ "@sentry/junior-memory": "0.220.0",
109
+ "@sentry/junior-testing": "0.0.0"
110
110
  },
111
111
  "scripts": {
112
112
  "build": "tsdown",