@sentry/junior 0.212.0 → 0.214.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-Cgc7jAIH.js → agent-DDGM_Hu8.js} +19 -19
  2. package/dist/{agent-hooks-B2Yt2b88.js → agent-hooks-BGkp7dir.js} +8 -8
  3. package/dist/{agent-runner-CkNX-ynf.js → agent-runner-AkPS55x9.js} +5 -5
  4. package/dist/api/schema.d.ts +5 -0
  5. package/dist/api/schema.js +2 -2
  6. package/dist/api.js +22 -17
  7. package/dist/app.js +31 -31
  8. package/dist/{auth-pause-state-BbcDkPac.js → auth-pause-state-BYnY5GgY.js} +6 -6
  9. package/dist/{briefs-4-OVELML.js → briefs-ouLaaE-x.js} +4 -4
  10. package/dist/{catalog-runtime-BvN_lNVo.js → catalog-runtime-_QTE8fXL.js} +1 -1
  11. package/dist/{checkpoint-EAQ5Xerb.js → checkpoint-4TdcpUHj.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-C1KycWNq.js → client-CnrUbhNZ.js} +2 -2
  19. package/dist/{config-C0-PnQoF.js → config-CI-Lh-gu.js} +2 -2
  20. package/dist/{conversation-CRWntH-A.js → conversation-BpqLg4MM.js} +2 -0
  21. package/dist/{conversation-privacy-BFzYxnTS.js → conversation-privacy-CGtSdQ9v.js} +1 -1
  22. package/dist/{credential-sync-CZz6Vk6X.js → credential-sync-C8SVt0I7.js} +20 -20
  23. package/dist/{execution-stats-CoDjBQbE.js → execution-stats-DoSehREK.js} +4 -3
  24. package/dist/{executor-CaVeGYeA.js → executor-BkDIAOly.js} +1 -1
  25. package/dist/instrumentation.js +2 -2
  26. package/dist/{job-queue-BhaNX9DL.js → job-queue-DxTCN2I6.js} +1 -1
  27. package/dist/{logging-B5-PLvDo.js → logging-CwkLd1GL.js} +1 -1
  28. package/dist/nitro.js +3 -3
  29. package/dist/{oauth-callback-server-G5q7i0Qp.js → oauth-callback-server-BH76ipxE.js} +2 -2
  30. package/dist/{pending-auth-CDndLOLO.js → pending-auth-DpbSGw5x.js} +2 -2
  31. package/dist/{profile-BcZ6EBQ4.js → profile-BO8GoFld.js} +4 -4
  32. package/dist/{prompt-kRlibHYT.js → prompt-DAoaq0CT.js} +1 -1
  33. package/dist/{registry-BIeo1ST6.js → registry-Dfce-i2p.js} +1 -1
  34. package/dist/{resolve-BgAZ4KxF.js → resolve-DhanmDJC.js} +2 -2
  35. package/dist/{runner-Cqd0EG3G.js → runner-Cf9HZTSs.js} +9 -9
  36. package/dist/{sandbox-egress-signals-DrOoklMj.js → sandbox-egress-signals-DQHGXC4N.js} +1 -1
  37. package/dist/{schema-xHUgeh46.js → schema-BMG8MJPJ.js} +1 -1
  38. package/dist/{short-title-CxQHLU3_.js → short-title-GFXgb3Pa.js} +2 -2
  39. package/dist/{skills-DlrAH1on.js → skills-4pbgYGyf.js} +2 -2
  40. package/dist/{spawn-BtMqHjwx.js → spawn-CPK0_AAU.js} +2 -2
  41. package/dist/{stats-D5OWazLs.js → stats-CRQ33as0.js} +5 -5
  42. package/dist/{task-queue-C-o2Q4O-.js → task-queue-DcxWxHUC.js} +3 -3
  43. package/dist/{task-runner-Mt_TGUBH.js → task-runner-DFd8j2js.js} +8 -8
  44. package/dist/{thread-state-C81fvhJu.js → thread-state-DgVdqz5n.js} +5 -5
  45. package/dist/{turn-execution-Ruj9SSJU.js → turn-execution-MPIxm9rL.js} +3 -3
  46. package/dist/{turn-lifecycle-xIZNwgaq.js → turn-lifecycle-BJayrlpy.js} +1 -1
  47. package/dist/{validation-sgYqCVwr.js → validation-Bz8K4ain.js} +1 -1
  48. package/dist/{version-BE7Zf9Wx.js → version-Csf_XS_O.js} +1 -1
  49. package/dist/version.js +1 -1
  50. package/dist/{web-authorization-BXrGezGm.js → web-authorization-Cw8fSKiS.js} +1 -1
  51. package/dist/{web-input-FJ7NNJDx.js → web-input-3ZOMzNt7.js} +4 -4
  52. package/dist/{work-DlYdbVfB.js → work-BgAHoSzD.js} +9 -9
  53. package/dist/{worker-BfxedsTU.js → worker-Cf8PgMjQ.js} +5 -5
  54. package/package.json +5 -5
@@ -1,6 +1,6 @@
1
- import { n as pluginCatalogRuntime } from "../catalog-runtime-BvN_lNVo.js";
2
- import { S as disconnectStateAdapter, t as create } from "../profile-BcZ6EBQ4.js";
3
- import { r as resolve } from "../resolve-BgAZ4KxF.js";
1
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-_QTE8fXL.js";
2
+ import { S as disconnectStateAdapter, t as create } from "../profile-BO8GoFld.js";
3
+ import { r as resolve } from "../resolve-DhanmDJC.js";
4
4
  //#region src/cli/snapshot-create.ts
5
5
  const DEFAULT_RUNTIME = "node22";
6
6
  const DEFAULT_TIMEOUT_MS = 6e5;
@@ -1,6 +1,6 @@
1
- import { a as getChatConfig } from "../config-C0-PnQoF.js";
2
- import { t as createJuniorSqlExecutor } from "../executor-CaVeGYeA.js";
3
- import { t as createPluginCatalogRuntime } from "../registry-BIeo1ST6.js";
1
+ import { a as getChatConfig } from "../config-CI-Lh-gu.js";
2
+ import { t as createJuniorSqlExecutor } from "../executor-BkDIAOly.js";
3
+ import { t as createPluginCatalogRuntime } from "../registry-Dfce-i2p.js";
4
4
  import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-egKWjgue.js";
5
5
  import { t as loadAppPluginSet } from "../plugin-module-BKGOXca2.js";
6
6
  import { fileURLToPath } from "node:url";
@@ -1,5 +1,5 @@
1
- import { C as withSpan, f as logWarn, h as serializeGenAiAttribute, i as extractGenAiUsageAttributes, p as normalizeGenAiFinishReason, u as logException } from "./logging-B5-PLvDo.js";
2
- import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-BFzYxnTS.js";
1
+ import { C as withSpan, f as logWarn, h as serializeGenAiAttribute, i as extractGenAiUsageAttributes, p as normalizeGenAiFinishReason, u as logException } from "./logging-CwkLd1GL.js";
2
+ import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-CGtSdQ9v.js";
3
3
  import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
4
4
  import { stream as streamAnthropic, streamSimple as streamSimpleAnthropic } from "@earendil-works/pi-ai/api/anthropic-messages";
5
5
  import { createGatewayProvider } from "@ai-sdk/gateway";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { o as resolveGatewayModel, w as toOptionalTrimmed } from "./client-C1KycWNq.js";
3
- import { f as logWarn } from "./logging-B5-PLvDo.js";
2
+ import { o as resolveGatewayModel, w as toOptionalTrimmed } from "./client-CnrUbhNZ.js";
3
+ import { f as logWarn } from "./logging-CwkLd1GL.js";
4
4
  import { c as TURN_REASONING_LEVELS, l as parseTurnReasoningLevel, o as modelProfileSchema } from "./model-profile-CZmVoGdX.js";
5
5
  import { getModel } from "@earendil-works/pi-ai/compat";
6
6
  //#region src/chat/slack/emoji.ts
@@ -1113,6 +1113,7 @@ const conversationStatsItemSchema = z.object({
1113
1113
  const conversationMetricBucketSchema = z.string().regex(/^\d{4}-\d{2}-\d{2}(T\d{2})?$/);
1114
1114
  const conversationMetricDaySchema = z.object({
1115
1115
  cachedInputTokens: z.number().optional(),
1116
+ cacheCreationTokens: z.number().optional(),
1116
1117
  conversations: z.number(),
1117
1118
  costUsd: z.number().optional(),
1118
1119
  date: conversationMetricBucketSchema,
@@ -1141,6 +1142,7 @@ const guardianStatsSchema = z.object({
1141
1142
  const conversationStatsReportSchema = z.object({
1142
1143
  active: z.number(),
1143
1144
  cachedInputTokens: z.number().optional(),
1145
+ cacheCreationTokens: z.number().optional(),
1144
1146
  conversations: z.number(),
1145
1147
  durationMs: z.number(),
1146
1148
  failed: z.number(),
@@ -1,4 +1,4 @@
1
- import { f as logWarn } from "./logging-B5-PLvDo.js";
1
+ import { f as logWarn } from "./logging-CwkLd1GL.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/chat/conversation-privacy.ts
4
4
  const SAFE_METADATA_KEY_LIMIT = 20;
@@ -1,28 +1,28 @@
1
- import { N as getMcpProviderErrorAttributes, X as createUserTokenStore, a as deleteMcpAuthSession, d as putMcpStoredOAuthCredentials, h as resolvePluginOAuthAccount, i as finalizeMcpAuthorization, l as getMcpAuthSession, u as getMcpStoredOAuthCredentials, y as lookupSlackUserProfile } from "./agent-Cgc7jAIH.js";
2
- import { m as escapeXml } from "./client-C1KycWNq.js";
3
- import { L as toOptionalString, S as withLogContext, d as logInfo, f as logWarn, m as runBestEffort, u as logException, y as setTags } from "./logging-B5-PLvDo.js";
4
- import { a as getChatConfig, h as normalizeSlackEmojiName, n as botConfig, o as getRuntimeMetadata } from "./config-C0-PnQoF.js";
1
+ import { N as getMcpProviderErrorAttributes, X as createUserTokenStore, a as deleteMcpAuthSession, d as putMcpStoredOAuthCredentials, h as resolvePluginOAuthAccount, i as finalizeMcpAuthorization, l as getMcpAuthSession, u as getMcpStoredOAuthCredentials, y as lookupSlackUserProfile } from "./agent-DDGM_Hu8.js";
2
+ import { m as escapeXml } from "./client-CnrUbhNZ.js";
3
+ import { L as toOptionalString, S as withLogContext, d as logInfo, f as logWarn, m as runBestEffort, u as logException, y as setTags } from "./logging-CwkLd1GL.js";
4
+ import { a as getChatConfig, h as normalizeSlackEmojiName, n as botConfig, o as getRuntimeMetadata } from "./config-CI-Lh-gu.js";
5
5
  import { n as defaultModelId } from "./model-profile-CZmVoGdX.js";
6
6
  import { _ as parseSlackMessageTs, g as parseSlackUserId, l as isUserActor, s as createSlackResumeActor } from "./context-Bplcgypl.js";
7
- import { G as isDmChannel, H as getHeaderString, K as normalizeSlackConversationId, Kt as getSqlExecutor, Nt as buildSentryConversationUrl, U as getSlackClient, Wt as getConversationStore, cn as upsertLinkedIdentity, dn as requireSlackDestination, mt as getDashboardConversationLink, o as getPluginSlackConversationLink, sn as upsertIdentity, z as SlackActionError } from "./agent-hooks-B2Yt2b88.js";
7
+ import { G as isDmChannel, H as getHeaderString, K as normalizeSlackConversationId, Kt as getSqlExecutor, Nt as buildSentryConversationUrl, U as getSlackClient, Wt as getConversationStore, cn as upsertLinkedIdentity, dn as requireSlackDestination, mt as getDashboardConversationLink, o as getPluginSlackConversationLink, sn as upsertIdentity, z as SlackActionError } from "./agent-hooks-BGkp7dir.js";
8
8
  import { i as homeDir } from "./package-discovery-7a9YqLhE.js";
9
- import { l as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-BIeo1ST6.js";
10
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BvN_lNVo.js";
11
- import { t as discoverSkills } from "./skills-DlrAH1on.js";
12
- import { B as recordAuthenticationLinked, F as loadProjection, V as recordAuthorizationCompleted, Y as hydrateConversationMessages, ct as recordDeliveredAssistantMessage, d as persistWithRetry, i as abandonTurnRecord, j as commitAcceptedReply, lt as turnHasReply, m as buildTurnErrorResponse, n as loadTurnCheckpoint, o as failTurnRecord, ot as markConversationMessage, r as saveTurnCheckpoint, s as getTurnRecord, tt as buildConversationContext, u as recordTurnSummary } from "./checkpoint-EAQ5Xerb.js";
13
- import { E as acquireActiveLock, w as getStateAdapter } from "./profile-BcZ6EBQ4.js";
14
- import { Pt as requestConversationWork, c as parseSlackThreadId, d as resolveSlackChannelIdFromThreadId, l as readSlackRawMessageContext, u as resolveSlackChannelIdFromMessage, wt as ensureConversationWake } from "./stats-D5OWazLs.js";
15
- import { a as isPendingAuthLatestRequest, f as CooperativeTurnYieldError, g as isCooperativeTurnYieldError, i as getConversationPendingAuth, r as clearPendingAuth, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-CDndLOLO.js";
16
- import { a as parseOAuthStatePayload, c as escapeSlackMrkdwnText, d as normalizeSlackStatusText, f as truncateStatusText, g as removeReactionFromMessage, h as postSlackMessage, i as formatProviderLabel, l as formatSlackLink, o as resolveBaseUrl, p as addReactionToMessage, u as normalizeSlackReplyMarkdown, v as RetryableDeliveryError } from "./agent-runner-CkNX-ynf.js";
9
+ import { l as hasRequiredOAuthScope, n as buildOAuthTokenRequest, r as parseOAuthTokenResponse } from "./registry-Dfce-i2p.js";
10
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-_QTE8fXL.js";
11
+ import { t as discoverSkills } from "./skills-4pbgYGyf.js";
12
+ import { B as recordAuthenticationLinked, F as loadProjection, V as recordAuthorizationCompleted, Y as hydrateConversationMessages, ct as recordDeliveredAssistantMessage, d as persistWithRetry, i as abandonTurnRecord, j as commitAcceptedReply, lt as turnHasReply, m as buildTurnErrorResponse, n as loadTurnCheckpoint, o as failTurnRecord, ot as markConversationMessage, r as saveTurnCheckpoint, s as getTurnRecord, tt as buildConversationContext, u as recordTurnSummary } from "./checkpoint-4TdcpUHj.js";
13
+ import { E as acquireActiveLock, w as getStateAdapter } from "./profile-BO8GoFld.js";
14
+ import { Pt as requestConversationWork, c as parseSlackThreadId, d as resolveSlackChannelIdFromThreadId, l as readSlackRawMessageContext, u as resolveSlackChannelIdFromMessage, wt as ensureConversationWake } from "./stats-CRQ33as0.js";
15
+ import { a as isPendingAuthLatestRequest, f as CooperativeTurnYieldError, g as isCooperativeTurnYieldError, i as getConversationPendingAuth, r as clearPendingAuth, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-DpbSGw5x.js";
16
+ import { a as parseOAuthStatePayload, c as escapeSlackMrkdwnText, d as normalizeSlackStatusText, f as truncateStatusText, g as removeReactionFromMessage, h as postSlackMessage, i as formatProviderLabel, l as formatSlackLink, o as resolveBaseUrl, p as addReactionToMessage, u as normalizeSlackReplyMarkdown, v as RetryableDeliveryError } from "./agent-runner-AkPS55x9.js";
17
17
  import { t as getVercelConversationWorkQueue } from "./vercel-queue-DIkVcfK4.js";
18
- import { a as getTurnRequestDeadline } from "./job-queue-BhaNX9DL.js";
19
- import { i as resolveTurnSessionRouting, n as scheduleSessionCompletedPluginTasks } from "./task-runner-Mt_TGUBH.js";
20
- import { n as getTurnLifecycle } from "./turn-lifecycle-xIZNwgaq.js";
21
- import { n as executeTurn, t as AgentRunError } from "./turn-execution-Ruj9SSJU.js";
22
- import { c as configValueSchema, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-C81fvhJu.js";
23
- import { a as requireTurnFailureEventId, c as getTurnUserMessageId, d as buildDeliveredTurnStatePatch, l as getTurnUserReplyAttachmentContext, n as persistAuthPauseTurnState, o as getInterruptionMarker, r as finalizeFailedTurnReplyWithEvent, s as getTurnUserMessage, u as getTurnUserSlackMessageTs } from "./auth-pause-state-BbcDkPac.js";
18
+ import { a as getTurnRequestDeadline } from "./job-queue-DxTCN2I6.js";
19
+ import { i as resolveTurnSessionRouting, n as scheduleSessionCompletedPluginTasks } from "./task-runner-DFd8j2js.js";
20
+ import { n as getTurnLifecycle } from "./turn-lifecycle-BJayrlpy.js";
21
+ import { n as executeTurn, t as AgentRunError } from "./turn-execution-MPIxm9rL.js";
22
+ import { c as configValueSchema, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-DgVdqz5n.js";
23
+ import { a as requireTurnFailureEventId, c as getTurnUserMessageId, d as buildDeliveredTurnStatePatch, l as getTurnUserReplyAttachmentContext, n as persistAuthPauseTurnState, o as getInterruptionMarker, r as finalizeFailedTurnReplyWithEvent, s as getTurnUserMessage, u as getTurnUserSlackMessageTs } from "./auth-pause-state-BYnY5GgY.js";
24
24
  import { n as relayLocalOAuthCallback } from "./oauth-relay-CdCnu80W.js";
25
- import { n as deleteWebAuthorization } from "./web-authorization-BXrGezGm.js";
25
+ import { n as deleteWebAuthorization } from "./web-authorization-Cw8fSKiS.js";
26
26
  import path from "node:path";
27
27
  import { z } from "zod";
28
28
  import { createHmac, createSecretKey, timingSafeEqual } from "node:crypto";
@@ -1,6 +1,6 @@
1
- import { f as logWarn } from "./logging-B5-PLvDo.js";
2
- import { Gt as getDb, nn as agentTurnTotalTokens, tn as agentTurnCostUsd } from "./agent-hooks-B2Yt2b88.js";
3
- import { E as juniorConversations, s as juniorAutomationExecutions } from "./executor-CaVeGYeA.js";
1
+ import { f as logWarn } from "./logging-CwkLd1GL.js";
2
+ import { Gt as getDb, nn as agentTurnTotalTokens, tn as agentTurnCostUsd } from "./agent-hooks-BGkp7dir.js";
3
+ import { E as juniorConversations, s as juniorAutomationExecutions } from "./executor-BkDIAOly.js";
4
4
  import { and, asc, count, desc, eq, gte, inArray, lte, max, or, sql } from "drizzle-orm";
5
5
  //#region src/api/conversations/aggregate.ts
6
6
  function usageTokenValue(source, field) {
@@ -63,6 +63,7 @@ function conversationAggregateColumns(sources) {
63
63
  )::integer`,
64
64
  conversations: sql`${conversationCount}::integer`,
65
65
  cachedInputTokens: sql`SUM(${usageTokenValue(metrics, "cachedInputTokens")})::double precision`,
66
+ cacheCreationTokens: sql`SUM(${usageTokenValue(metrics, "cacheCreationTokens")})::double precision`,
66
67
  costUsd: sql`SUM(${costValue(metrics)})::double precision`,
67
68
  durationMs: sql`COALESCE(SUM(${metrics.durationMs}), 0)::double precision`,
68
69
  failed: sql`${conversationCount} FILTER (
@@ -1,5 +1,5 @@
1
1
  import { g as startSpanManual } from "./sentry-CgWZM_kV.js";
2
- import "./config-C0-PnQoF.js";
2
+ import "./config-CI-Lh-gu.js";
3
3
  import { n as juniorDestinations, r as timestamptz } from "./destinations-BeBiJeEM.js";
4
4
  import { AsyncLocalStorage } from "node:async_hooks";
5
5
  import { getTableColumns, sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
- import { M as getDeploymentServiceVersion, N as getDeploymentTelemetryAttributes } from "./logging-B5-PLvDo.js";
1
+ import { M as getDeploymentServiceVersion, N as getDeploymentTelemetryAttributes } from "./logging-CwkLd1GL.js";
2
2
  import { _ as vercelAIIntegration, a as getClient, b as withStreamedSpan, c as init, o as getGlobalScope } from "./sentry-CgWZM_kV.js";
3
- import { n as getCurrentConversationPrivacy } from "./conversation-privacy-BFzYxnTS.js";
3
+ import { n as getCurrentConversationPrivacy } from "./conversation-privacy-CGtSdQ9v.js";
4
4
  import { t as consumePrivateTraceResultMarker } from "./private-trace-result-BLvBjy_e.js";
5
5
  //#region src/chat/sentry-payload-filter.ts
6
6
  const PAYLOAD_ATTRIBUTE_KEYS = /* @__PURE__ */ new Set([
@@ -1,4 +1,4 @@
1
- import { a as getChatConfig } from "./config-C0-PnQoF.js";
1
+ import { a as getChatConfig } from "./config-CI-Lh-gu.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
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  import { z } from "zod";
@@ -1,5 +1,5 @@
1
1
  import { d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException, y as withScope } from "./sentry-CgWZM_kV.js";
2
- import { t as JUNIOR_VERSION } from "./version-BE7Zf9Wx.js";
2
+ import { t as JUNIOR_VERSION } from "./version-Csf_XS_O.js";
3
3
  import path from "node:path";
4
4
  import { styleText } from "node:util";
5
5
  import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
package/dist/nitro.js CHANGED
@@ -1,9 +1,9 @@
1
- import { A as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, D as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, E as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_RETENTION_CRON_SCHEDULE, T as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_RETENTION_ROUTE, w as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "./logging-B5-PLvDo.js";
1
+ import { A as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, D as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, E as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_RETENTION_CRON_SCHEDULE, T as JUNIOR_HEARTBEAT_CRON_SCHEDULE, k as JUNIOR_RETENTION_ROUTE, w as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "./logging-CwkLd1GL.js";
2
2
  import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-7a9YqLhE.js";
3
3
  import { n as resolveConversationWorkQueueTopic } from "./vercel-queue-DIkVcfK4.js";
4
- import { t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-BhaNX9DL.js";
4
+ import { t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-DxTCN2I6.js";
5
5
  import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-egKWjgue.js";
6
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-C-o2Q4O-.js";
6
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-DcxWxHUC.js";
7
7
  import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-BKGOXca2.js";
8
8
  import path from "node:path";
9
9
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
@@ -1,5 +1,5 @@
1
- import { X as createUserTokenStore } from "./agent-Cgc7jAIH.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-CZz6Vk6X.js";
1
+ import { X as createUserTokenStore } from "./agent-DDGM_Hu8.js";
2
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-C8SVt0I7.js";
3
3
  import { createServer } from "node:http";
4
4
  //#region src/chat/local/oauth-callback-server.ts
5
5
  const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
@@ -1,5 +1,5 @@
1
- import { g as extractAssistantText, i as abandonTurnRecord } from "./checkpoint-EAQ5Xerb.js";
2
- import { qt as buildDeterministicTurnId } from "./stats-D5OWazLs.js";
1
+ import { g as extractAssistantText, i as abandonTurnRecord } from "./checkpoint-4TdcpUHj.js";
2
+ import { qt as buildDeterministicTurnId } from "./stats-CRQ33as0.js";
3
3
  //#region src/chat/runtime/turn.ts
4
4
  /** Classified Slack turn failure carrying the owning Sentry capture outward. */
5
5
  var ConversationTurnBoundaryError = class extends Error {
@@ -1,7 +1,7 @@
1
- import { w as toOptionalTrimmed } from "./client-C1KycWNq.js";
2
- import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-B5-PLvDo.js";
3
- import { a as getChatConfig } from "./config-C0-PnQoF.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BvN_lNVo.js";
1
+ import { w as toOptionalTrimmed } from "./client-CnrUbhNZ.js";
2
+ import { _ as setSpanAttributes, v as setSpanStatus } from "./logging-CwkLd1GL.js";
3
+ import { a as getChatConfig } from "./config-CI-Lh-gu.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-_QTE8fXL.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-CRWntH-A.js";
1
+ import { M as conversationBriefSchema, N as parseBriefInput, j as briefOutcomeStatusSchema } from "./conversation-BpqLg4MM.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-B5-PLvDo.js";
1
+ import { _ as setSpanAttributes, d as logInfo, f as logWarn } from "./logging-CwkLd1GL.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-B5-PLvDo.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-BcZ6EBQ4.js";
1
+ import { C as withSpan, _ as setSpanAttributes } from "./logging-CwkLd1GL.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-BO8GoFld.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-Cgc7jAIH.js";
2
- import { S as withLogContext, u as logException, y as setTags } from "./logging-B5-PLvDo.js";
1
+ import { p as authorizationId } from "./agent-DDGM_Hu8.js";
2
+ import { S as withLogContext, u as logException, y as setTags } from "./logging-CwkLd1GL.js";
3
3
  import { t as credentialContextForActor } from "./context-Bplcgypl.js";
4
- import { Ht as getConversationEventStore, Wt as getConversationStore } from "./agent-hooks-B2Yt2b88.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-EAQ5Xerb.js";
6
- import { S as startActiveTurn, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-CDndLOLO.js";
7
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-Mt_TGUBH.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-xIZNwgaq.js";
9
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-C81fvhJu.js";
10
- import { d as buildDeliveredTurnStatePatch, r as finalizeFailedTurnReplyWithEvent, t as completeAuthPauseTurn } from "./auth-pause-state-BbcDkPac.js";
4
+ import { Ht as getConversationEventStore, Wt as getConversationStore } from "./agent-hooks-BGkp7dir.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-4TdcpUHj.js";
6
+ import { S as startActiveTurn, s as getAssistantReplyText, x as markTurnFailed } from "./pending-auth-DpbSGw5x.js";
7
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-DFd8j2js.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BJayrlpy.js";
9
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-DgVdqz5n.js";
10
+ import { d as buildDeliveredTurnStatePatch, r as finalizeFailedTurnReplyWithEvent, t as completeAuthPauseTurn } from "./auth-pause-state-BYnY5GgY.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-Cgc7jAIH.js";
1
+ import { Y as sandboxEgressSignalsResponseSchema } from "./agent-DDGM_Hu8.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-CRWntH-A.js";
2
+ import { E as conversationSummaryReportSchema, n as actorIdentitySchema, w as conversationStatsItemSchema } from "./conversation-BpqLg4MM.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-B5-PLvDo.js";
2
- import { n as botConfig } from "./config-C0-PnQoF.js";
1
+ import { f as logWarn } from "./logging-CwkLd1GL.js";
2
+ import { n as botConfig } from "./config-CI-Lh-gu.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-B5-PLvDo.js";
2
+ import { f as logWarn } from "./logging-CwkLd1GL.js";
3
3
  import { s as skillRoots } from "./package-discovery-7a9YqLhE.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BvN_lNVo.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-_QTE8fXL.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-CkNX-ynf.js";
3
- import { n as createAndEnqueueAgentInvocation } from "./work-DlYdbVfB.js";
2
+ import { C as toolInvocationDestination, y as actorFromRun } from "./agent-runner-AkPS55x9.js";
3
+ import { n as createAndEnqueueAgentInvocation } from "./work-BgAHoSzD.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-B5-PLvDo.js";
2
- import { a as getChatConfig } from "./config-C0-PnQoF.js";
1
+ import { F as isRecord$1, I as toOptionalNumber, L as toOptionalString } from "./logging-CwkLd1GL.js";
2
+ import { a as getChatConfig } from "./config-CI-Lh-gu.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-B2Yt2b88.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-BGkp7dir.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-CaVeGYeA.js";
7
- import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-BcZ6EBQ4.js";
6
+ import { E as juniorConversations, a as juniorSchedulerRuns, c as juniorStats, l as juniorEventAutomations, o as juniorSchedulerTasks, w as juniorAttachments } from "./executor-BkDIAOly.js";
7
+ import { C as getDefaultRedisStateAdapterFor, w as getStateAdapter } from "./profile-BO8GoFld.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-B5-PLvDo.js";
1
+ import { f as logWarn } from "./logging-CwkLd1GL.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-BhaNX9DL.js";
3
+ import { o as runWithTurnRequestDeadline } from "./job-queue-DxTCN2I6.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-Mt_TGUBH.js").then((n) => n.r);
113
+ const { processPluginTask } = await import("./task-runner-DFd8j2js.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-B2Yt2b88.js";
4
- import { G as sameActorIdentity } from "./conversation-CRWntH-A.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-EAQ5Xerb.js";
6
- import { w as getStateAdapter } from "./profile-BcZ6EBQ4.js";
7
- import { u as recordAutomationExecution } from "./execution-stats-CoDjBQbE.js";
8
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-C81fvhJu.js";
9
- import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-C-o2Q4O-.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-BGkp7dir.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-4TdcpUHj.js";
6
+ import { w as getStateAdapter } from "./profile-BO8GoFld.js";
7
+ import { u as recordAutomationExecution } from "./execution-stats-DoSehREK.js";
8
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-DgVdqz5n.js";
9
+ import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-DcxWxHUC.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-B2Yt2b88.js").then((n) => n.Vt)).getConversationStore();
348
+ const conversationStore = args.conversationStore ?? (await import("./agent-hooks-BGkp7dir.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-B5-PLvDo.js";
2
- import { Gt as getDb, pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-B2Yt2b88.js";
1
+ import { F as isRecord, I as toOptionalNumber, L as toOptionalString } from "./logging-CwkLd1GL.js";
2
+ import { Gt as getDb, pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-BGkp7dir.js";
3
3
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
4
- import { u as juniorLocationConfigurations } from "./executor-CaVeGYeA.js";
5
- import { X as persistConversationMessages } from "./checkpoint-EAQ5Xerb.js";
6
- import { w as getStateAdapter } from "./profile-BcZ6EBQ4.js";
4
+ import { u as juniorLocationConfigurations } from "./executor-BkDIAOly.js";
5
+ import { X as persistConversationMessages } from "./checkpoint-4TdcpUHj.js";
6
+ import { w as getStateAdapter } from "./profile-BO8GoFld.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-B2Yt2b88.js";
2
- import { n as runAgentWithTimeout } from "./agent-runner-CkNX-ynf.js";
3
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-xIZNwgaq.js";
1
+ import { Ht as getConversationEventStore } from "./agent-hooks-BGkp7dir.js";
2
+ import { n as runAgentWithTimeout } from "./agent-runner-AkPS55x9.js";
3
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BJayrlpy.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-B2Yt2b88.js";
1
+ import { Ht as getConversationEventStore } from "./agent-hooks-BGkp7dir.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-BvN_lNVo.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-_QTE8fXL.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.212.0";
2
+ var version = "0.214.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-BE7Zf9Wx.js";
1
+ import { t as JUNIOR_VERSION } from "./version-Csf_XS_O.js";
2
2
  export { JUNIOR_VERSION };
@@ -1,4 +1,4 @@
1
- import { w as getStateAdapter } from "./profile-BcZ6EBQ4.js";
1
+ import { w as getStateAdapter } from "./profile-BO8GoFld.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-B5-PLvDo.js";
2
- import { s as getSlackBotToken } from "./config-C0-PnQoF.js";
1
+ import { f as logWarn } from "./logging-CwkLd1GL.js";
2
+ import { s as getSlackBotToken } from "./config-CI-Lh-gu.js";
3
3
  import "./context-Bplcgypl.js";
4
- import { K as normalizeSlackConversationId, Wt as getConversationStore } from "./agent-hooks-B2Yt2b88.js";
5
- import { c as parseSlackThreadId, ft as appendAndEnqueueExclusiveInboundMessage, pt as appendAndEnqueueInboundMessage, qt as buildDeterministicTurnId } from "./stats-D5OWazLs.js";
4
+ import { K as normalizeSlackConversationId, Wt as getConversationStore } from "./agent-hooks-BGkp7dir.js";
5
+ import { c as parseSlackThreadId, ft as appendAndEnqueueExclusiveInboundMessage, pt as appendAndEnqueueInboundMessage, qt as buildDeterministicTurnId } from "./stats-CRQ33as0.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-Cgc7jAIH.js";
3
- import { Ht as getConversationEventStore, Kt as getSqlExecutor, Wt as getConversationStore } from "./agent-hooks-B2Yt2b88.js";
4
- import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-CaVeGYeA.js";
5
- import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-EAQ5Xerb.js";
6
- import { pt as appendAndEnqueueInboundMessage } from "./stats-D5OWazLs.js";
7
- import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-CDndLOLO.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-xIZNwgaq.js";
9
- import { n as executeTurn, t as AgentRunError } from "./turn-execution-Ruj9SSJU.js";
10
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-C81fvhJu.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-DDGM_Hu8.js";
3
+ import { Ht as getConversationEventStore, Kt as getSqlExecutor, Wt as getConversationStore } from "./agent-hooks-BGkp7dir.js";
4
+ import { f as juniorAgentBindings, p as juniorAgentInvocations } from "./executor-BkDIAOly.js";
5
+ import { L as openConversationProjection, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord, v as getTerminalAssistantMessages } from "./checkpoint-4TdcpUHj.js";
6
+ import { pt as appendAndEnqueueInboundMessage } from "./stats-CRQ33as0.js";
7
+ import { _ as isTurnInputCommitLostError, h as getConversationTurnBoundaryError, p as TurnInputCommitLostError, s as getAssistantReplyText } from "./pending-auth-DpbSGw5x.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-BJayrlpy.js";
9
+ import { n as executeTurn, t as AgentRunError } from "./turn-execution-MPIxm9rL.js";
10
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-DgVdqz5n.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-C1KycWNq.js";
3
- import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-B5-PLvDo.js";
4
- import { a as getChatConfig } from "./config-C0-PnQoF.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-D5OWazLs.js";
2
+ import { b as isProviderRetryError } from "./client-CnrUbhNZ.js";
3
+ import { S as withLogContext, d as logInfo, f as logWarn, u as logException } from "./logging-CwkLd1GL.js";
4
+ import { a as getChatConfig } from "./config-CI-Lh-gu.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-CRQ33as0.js";
6
6
  import { c as ConversationQueueMessageRejectedError } from "./vercel-queue-DIkVcfK4.js";
7
- import { a as getTurnRequestDeadline } from "./job-queue-BhaNX9DL.js";
7
+ import { a as getTurnRequestDeadline } from "./job-queue-DxTCN2I6.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.212.0",
3
+ "version": "0.214.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.212.0"
88
+ "@sentry/junior-plugin-api": "0.214.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-testing": "0.0.0",
108
- "@sentry/junior-memory": "0.212.0",
109
- "@sentry/junior-github": "0.212.0"
107
+ "@sentry/junior-memory": "0.214.0",
108
+ "@sentry/junior-github": "0.214.0",
109
+ "@sentry/junior-testing": "0.0.0"
110
110
  },
111
111
  "scripts": {
112
112
  "build": "tsdown",