@sentry/junior 0.238.0 → 0.238.1

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 (49) hide show
  1. package/dist/{admin-ZGlZ8lY6.js → admin-leAJ2k0P.js} +1 -1
  2. package/dist/{agent-hooks-CxdSqU2u.js → agent-hooks-p3UA9FI1.js} +8 -8
  3. package/dist/{agent-runner-ZS1LHtSR.js → agent-runner-DjQSEVuD.js} +17 -17
  4. package/dist/api.js +18 -18
  5. package/dist/app.js +22 -22
  6. package/dist/{briefs-B6IhUAgK.js → briefs-mzUaJkBX.js} +2 -2
  7. package/dist/{catalog-runtime-BzNg07bb.js → catalog-runtime-xq-njrMs.js} +1 -1
  8. package/dist/{checkpoint-DWGyJg4c.js → checkpoint-C37Xgtj-.js} +7 -7
  9. package/dist/cli/chat.js +12 -12
  10. package/dist/cli/check.js +3 -3
  11. package/dist/cli/main.js +2 -2
  12. package/dist/cli/plugins.js +4 -4
  13. package/dist/cli/snapshot-create.js +3 -3
  14. package/dist/cli/upgrade.js +3 -3
  15. package/dist/{client-CKs0rj3A.js → client-BZdqKg6S.js} +2 -2
  16. package/dist/{config-DRw358bB.js → config-CGK_VplU.js} +2 -2
  17. package/dist/{conversation-privacy-DAYxHp74.js → conversation-privacy-Ci3QLNOb.js} +1 -1
  18. package/dist/{credential-sync-DmRbuyE4.js → credential-sync-BBeYpK4k.js} +14 -14
  19. package/dist/{executor-DgPk8Lsx.js → executor-DmIad4GI.js} +2 -2
  20. package/dist/{images-puyEuXoY.js → images-1xUjTHGf.js} +2 -2
  21. package/dist/instrumentation.js +2 -2
  22. package/dist/{job-queue-BL9stv_E.js → job-queue-CXpx6KfD.js} +1 -1
  23. package/dist/{logging-BNi_jyHb.js → logging-Bne7JUXI.js} +1 -1
  24. package/dist/nitro.js +3 -3
  25. package/dist/{oauth-authorization-Zv1oLB1J.js → oauth-authorization-O8N3knp9.js} +1 -1
  26. package/dist/{oauth-callback-server-BHtVbKvO.js → oauth-callback-server-Cb-HPZPS.js} +2 -2
  27. package/dist/{pending-auth-DulDjfwL.js → pending-auth-C6w4Gwve.js} +2 -2
  28. package/dist/{profile-C2TScny6.js → profile-DIcHBAxe.js} +4 -4
  29. package/dist/{registry-D1RsbgDb.js → registry-VSrEYeaD.js} +1 -1
  30. package/dist/{resolve-CuY3dhxy.js → resolve-BkpWmZgN.js} +2 -2
  31. package/dist/{runner-BUkReLln.js → runner-52ezCnZF.js} +9 -9
  32. package/dist/{sandbox-egress-signals-etjG6qQX.js → sandbox-egress-signals-Cmhf3P6Y.js} +1 -1
  33. package/dist/{skills-BGhThSGR.js → skills-PHvy-ZgH.js} +2 -2
  34. package/dist/{spawn-PtyOnoXt.js → spawn-CY34_HCm.js} +2 -2
  35. package/dist/{task-queue-Bi2uNATu.js → task-queue-B9uJqkal.js} +3 -3
  36. package/dist/{task-runner-CDoZCo8g.js → task-runner-BZUoctJ1.js} +10 -10
  37. package/dist/{thread-state-B-t88gH0.js → thread-state-SnFcB9Rk.js} +6 -6
  38. package/dist/{turn-failure-response-di4Jx90o.js → turn-failure-response-CrSc1Vtn.js} +8 -8
  39. package/dist/{turn-lifecycle-ByhUHYjD.js → turn-lifecycle-D49hJbjm.js} +1 -1
  40. package/dist/{turn-session-routing-QjNvsevm.js → turn-session-routing-cMvumCLK.js} +1 -1
  41. package/dist/{validation-D3li76Ti.js → validation-DsLyiOfn.js} +1 -1
  42. package/dist/{version-Chc6bVG5.js → version-Dayi_ng2.js} +1 -1
  43. package/dist/version.js +1 -1
  44. package/dist/{viewer-DsyM9kb9.js → viewer-DF3HTfW5.js} +3 -3
  45. package/dist/{web-authorization-Enb5lVYt.js → web-authorization-Dg_R1tMc.js} +6 -6
  46. package/dist/{web-input-efQlcCis.js → web-input-qVi8134S.js} +22 -22
  47. package/dist/{work-CeiA_ZxD.js → work-BbcghZZp.js} +7 -7
  48. package/dist/{worker-BJb2hsUB.js → worker-B-uRQzKw.js} +5 -5
  49. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import { a as setUserAdminFromSql, d as getDb, n as listAdminUsersFromSql } from "./viewer-DsyM9kb9.js";
1
+ import { a as setUserAdminFromSql, d as getDb, n as listAdminUsersFromSql } from "./viewer-DF3HTfW5.js";
2
2
  import { CLI_USAGE } from "./cli/run.js";
3
3
  //#region src/cli/admin.ts
4
4
  /**
@@ -1,18 +1,18 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { a as embedTexts, r as completeObject } from "./client-CKs0rj3A.js";
3
- import { I as isRecord$1, a as extractGenAiUsageSummary, d as logException, f as logInfo, p as logWarn, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-BNi_jyHb.js";
2
+ import { a as embedTexts, r as completeObject } from "./client-BZdqKg6S.js";
3
+ import { I as isRecord$1, a as extractGenAiUsageSummary, d as logException, f as logInfo, p as logWarn, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-Bne7JUXI.js";
4
4
  import { a as getClient$1 } from "./sentry-CgWZM_kV.js";
5
- import { t as canExposeConversationPayload } from "./conversation-privacy-DAYxHp74.js";
6
- import { i as getChatConfig, n as botConfig, o as getSlackBotToken } from "./config-DRw358bB.js";
5
+ import { t as canExposeConversationPayload } from "./conversation-privacy-Ci3QLNOb.js";
6
+ import { i as getChatConfig, n as botConfig, o as getSlackBotToken } from "./config-CGK_VplU.js";
7
7
  import { r as defaultModelId } from "./model-profile-BwU8mqwD.js";
8
8
  import { d as parseSlackTeamId, g as parseSlackMessageTs, i as isActorUserId, o as parseActorUserId, u as parseSlackChannelReferenceId } from "./actor-BTtLaeWy.js";
9
- import { c as getConversationEventStore, d as getDb, f as getSqlExecutor, h as createSqlStore, i as resolveViewerUser, r as readActorIdentity, w as hasAgentTurnUsage } from "./viewer-DsyM9kb9.js";
9
+ import { c as getConversationEventStore, d as getDb, f as getSqlExecutor, h as createSqlStore, i as resolveViewerUser, r as readActorIdentity, w as hasAgentTurnUsage } from "./viewer-DF3HTfW5.js";
10
10
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
11
- import { C as juniorCodeChanges, D as juniorConversations, O as juniorIdentities, S as juniorConversationAnnotations, T as juniorAttachments, _ as juniorConversationBriefs, b as juniorConversationEvents, h as juniorConversationParticipants, i as juniorWorkspaces, k as juniorUsers, n as juniorSnapshots, r as juniorWorkspaceRepos, w as juniorCodeRepositories } from "./executor-DgPk8Lsx.js";
11
+ import { C as juniorCodeChanges, D as juniorConversations, O as juniorIdentities, S as juniorConversationAnnotations, T as juniorAttachments, _ as juniorConversationBriefs, b as juniorConversationEvents, h as juniorConversationParticipants, i as juniorWorkspaces, k as juniorUsers, n as juniorSnapshots, r as juniorWorkspaceRepos, w as juniorCodeRepositories } from "./executor-DmIad4GI.js";
12
12
  import { o as decodeStoredConversationEvent } from "./history-BLTUgFYO.js";
13
- import { p as credentialSubjectSchema } from "./registry-D1RsbgDb.js";
13
+ import { p as credentialSubjectSchema } from "./registry-VSrEYeaD.js";
14
14
  import { B as parseBriefInput, C as conversationReportEventSchema, N as readMessageAttachments, W as readMessageCardRefs, z as conversationBriefSchema } from "./conversation-DwD-vquD.js";
15
- import { C as getDefaultRedisStateAdapterFor, N as SANDBOX_WORKSPACE_ROOT, k as sleep$1, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-C2TScny6.js";
15
+ import { C as getDefaultRedisStateAdapterFor, N as SANDBOX_WORKSPACE_ROOT, k as sleep$1, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-DIcHBAxe.js";
16
16
  import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-CMU-B4FA.js";
17
17
  import { AsyncLocalStorage } from "node:async_hooks";
18
18
  import { z } from "zod";
@@ -1,27 +1,27 @@
1
- import { b as getGatewayApiKey, c as hasCompactedConversationContext, d as unwrapCurrentInstruction, f as escapeXml, g as getProviderErrorAttributes, h as findProviderError, i as completeText, l as isCompactionSummaryText, m as createProviderError, n as GEN_AI_SERVER_ADDRESS, o as resolveGatewayModel, p as ProviderError, r as completeObject, s as COMPACTION_SUMMARY_PREFIX, t as GEN_AI_PROVIDER_NAME, u as renderCurrentInstruction, v as isProviderRetryError, x as resolveGatewayCredential, y as MISSING_GATEWAY_CREDENTIALS_ERROR } from "./client-CKs0rj3A.js";
2
- import { C as withLogContext, F as normalizeIdentityEmail, I as isRecord$3, L as toOptionalNumber, R as toOptionalString, a as extractGenAiUsageSummary, b as setTags, c as getLogContextAttributesForSpan, d as logException, f as logInfo, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, l as getTracePropagationHeaders, m as normalizeGenAiFinishReason, p as logWarn, s as getLogContextAttributes, u as logError, v as setSpanAttributes, w as withSpan, x as summarizeMessageText, y as setSpanStatus } from "./logging-BNi_jyHb.js";
1
+ import { b as getGatewayApiKey, c as hasCompactedConversationContext, d as unwrapCurrentInstruction, f as escapeXml, g as getProviderErrorAttributes, h as findProviderError, i as completeText, l as isCompactionSummaryText, m as createProviderError, n as GEN_AI_SERVER_ADDRESS, o as resolveGatewayModel, p as ProviderError, r as completeObject, s as COMPACTION_SUMMARY_PREFIX, t as GEN_AI_PROVIDER_NAME, u as renderCurrentInstruction, v as isProviderRetryError, x as resolveGatewayCredential, y as MISSING_GATEWAY_CREDENTIALS_ERROR } from "./client-BZdqKg6S.js";
2
+ import { C as withLogContext, F as normalizeIdentityEmail, I as isRecord$3, L as toOptionalNumber, R as toOptionalString, a as extractGenAiUsageSummary, b as setTags, c as getLogContextAttributesForSpan, d as logException, f as logInfo, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, l as getTracePropagationHeaders, m as normalizeGenAiFinishReason, p as logWarn, s as getLogContextAttributes, u as logError, v as setSpanAttributes, w as withSpan, x as summarizeMessageText, y as setSpanStatus } from "./logging-Bne7JUXI.js";
3
3
  import { m as startInactiveSpan, n as captureMessage, v as withActiveSpan } from "./sentry-CgWZM_kV.js";
4
- import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-DAYxHp74.js";
5
- import { i as getChatConfig, n as botConfig, o as getSlackBotToken, v as normalizeSlackEmojiName } from "./config-DRw358bB.js";
4
+ import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-Ci3QLNOb.js";
5
+ import { i as getChatConfig, n as botConfig, o as getSlackBotToken, v as normalizeSlackEmojiName } from "./config-CGK_VplU.js";
6
6
  import { a as formatModelProfiles, c as profileConfig, i as formatModelProfile, l as TURN_REASONING_LEVELS, n as ModelProfileNotConfiguredError, o as modelIdForProfile, s as modelProfileSchema } from "./model-profile-BwU8mqwD.js";
7
7
  import { a as isUserActor, d as parseSlackTeamId, f as parseSlackUserId, g as parseSlackMessageTs, l as parseSlackChannelId, s as parseStoredSlackActor, u as parseSlackChannelReferenceId } from "./actor-BTtLaeWy.js";
8
- import { D as readUserTimezone, M as parseDestination, O as saveUserTimezone, P as sameDestination$1, b as addAgentTurnUsage, c as getConversationEventStore, d as getDb, f as getSqlExecutor, l as getConversationMessageSearchStore, r as readActorIdentity, u as getConversationStore, w as hasAgentTurnUsage } from "./viewer-DsyM9kb9.js";
8
+ import { D as readUserTimezone, M as parseDestination, O as saveUserTimezone, P as sameDestination$1, b as addAgentTurnUsage, c as getConversationEventStore, d as getDb, f as getSqlExecutor, l as getConversationMessageSearchStore, r as readActorIdentity, u as getConversationStore, w as hasAgentTurnUsage } from "./viewer-DF3HTfW5.js";
9
9
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
10
- import { A as juniorArtifacts, D as juniorConversations, O as juniorIdentities, S as juniorConversationAnnotations, T as juniorAttachments, _ as juniorConversationBriefs, a as juniorSchedulerRuns, f as AGENT_INVOCATION_MAILBOX_STATUSES, l as juniorStats, o as juniorSchedulerTasks, s as juniorAutomationVersions, u as juniorEventAutomations } from "./executor-DgPk8Lsx.js";
10
+ import { A as juniorArtifacts, D as juniorConversations, O as juniorIdentities, S as juniorConversationAnnotations, T as juniorAttachments, _ as juniorConversationBriefs, a as juniorSchedulerRuns, f as AGENT_INVOCATION_MAILBOX_STATUSES, l as juniorStats, o as juniorSchedulerTasks, s as juniorAutomationVersions, u as juniorEventAutomations } from "./executor-DmIad4GI.js";
11
11
  import { d as instructionActors, f as instructionProvenanceFor, p as sameActorIdentity, t as KNOWN_CONVERSATION_EVENT_TYPES, u as contextProvenance } from "./history-BLTUgFYO.js";
12
12
  import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-BVvSnQBB.js";
13
- import { a as resolveAuthTokenPlaceholder, c as fetchWithBoundedOAuthErrorBodies, d as credentialContextForActor, f as credentialContextSchema, h as CredentialUnavailableError, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, m as credentialUserSubjectId, o as resolvePluginCommandEnv, p as credentialSubjectSchema, s as OAuthProviderError } from "./registry-D1RsbgDb.js";
14
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BzNg07bb.js";
15
- import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-BGhThSGR.js";
16
- import { C as isToolResultError, D as stripRuntimeTurnContext, E as retainRuntimeTurnContext, H as recordAuthorizationRequested, I as loadTurnRoute, K as recordToolExecutionStarted, L as openConversationProjection, M as loadConnectedMcpProviders, N as loadConversationProjection, O as trimTrailingAssistantMessages, R as recordAgentsInstructionsUpdated, S as isContinuablePiBoundary, T as normalizeToolNameFromResult, U as recordGuardianActionReviewed, W as recordMcpProviderConnected, _ as getTerminalAssistantMessages, _t as historyItemFromPiMessage, d as TurnSliceLimitExceededError, f as assertTurnToolCallLimit, g as getPiMessageRole, gt as getAgentContextInputLimitTokens, h as extractAssistantText, ht as getAgentContextCompactionTriggerTokens, k as TURN_CONTEXT_TAG, m as isTurnExecutionLimitExceededError, mt as estimateTextTokens, n as loadTurnCheckpoint, nt as resolveTaskTitle, q as recordTurnRoute, r as saveTurnCheckpoint, t as continuableMessages, tt as fallbackShortTitle, v as getUserMessageInstructionText, vt as piMessageFromHistoryItem, w as isToolResultMessage, x as isAssistantMessage, y as hasRuntimeTurnContext, z as recordAttachmentsDelivered } from "./checkpoint-DWGyJg4c.js";
17
- import { A as getWorkspaceSnapshotBuilder, B as cancelWatch, Bt as saveObjectAnnotations, C as WorkspaceValidationError, D as setWorkspaceSnapshotBuild, E as setWorkspaceSnapshot, F as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, G as findMatchingWatches, H as createTimerWatch, I as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, It as matchSlackAttachments, K as listWatches, L as RESOURCE_WATCH_TOOL_SOURCE, M as workspaceRepoCheckoutPath, N as resolveChannelCapabilities, O as SANDBOX_RUNTIME, P as getSlackToolContext, R as STOP_WATCHING_TOOL_NAME, S as updateWorkspace, T as loadSnapshotsForProfile, U as createWatch, Vt as createPluginAnnotations, W as deliverWatch, _ as deleteWorkspace, at as getSlackClient, b as listWorkspaces, c as getPluginTools, ct as normalizeSlackConversationId, et as verifyTimerWatchCredentialSubject, g as createWorkspace, gt as getDashboardTaskLink, j as tryWorkspaceRepoCheckoutPath, k as deleteWorkspaceSnapshotBuilders, l as getPluginUserPromptContributions, mt as getDashboardConversationLink, n as applyPluginFormatMarkdown, nt as downloadPrivateSlackFile, ot as isConversationScopedChannel, pt as JUNIOR_THREAD_STATE_TTL_MS, r as createPluginHookRunner, rt as getFilePermalink, s as getPluginSystemPromptContributions, st as isDmChannel$1, tt as SlackActionError, u as getPlugins, ut as withSlackRetries, v as getWorkspace, w as invalidateReadySnapshot, xt as createPluginLogger, y as getWorkspaceByName, z as cancelSubscriptions } from "./agent-hooks-CxdSqU2u.js";
13
+ import { a as resolveAuthTokenPlaceholder, c as fetchWithBoundedOAuthErrorBodies, d as credentialContextForActor, f as credentialContextSchema, h as CredentialUnavailableError, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, m as credentialUserSubjectId, o as resolvePluginCommandEnv, p as credentialSubjectSchema, s as OAuthProviderError } from "./registry-VSrEYeaD.js";
14
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-xq-njrMs.js";
15
+ import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-PHvy-ZgH.js";
16
+ import { C as isToolResultError, D as stripRuntimeTurnContext, E as retainRuntimeTurnContext, H as recordAuthorizationRequested, I as loadTurnRoute, K as recordToolExecutionStarted, L as openConversationProjection, M as loadConnectedMcpProviders, N as loadConversationProjection, O as trimTrailingAssistantMessages, R as recordAgentsInstructionsUpdated, S as isContinuablePiBoundary, T as normalizeToolNameFromResult, U as recordGuardianActionReviewed, W as recordMcpProviderConnected, _ as getTerminalAssistantMessages, _t as historyItemFromPiMessage, d as TurnSliceLimitExceededError, f as assertTurnToolCallLimit, g as getPiMessageRole, gt as getAgentContextInputLimitTokens, h as extractAssistantText, ht as getAgentContextCompactionTriggerTokens, k as TURN_CONTEXT_TAG, m as isTurnExecutionLimitExceededError, mt as estimateTextTokens, n as loadTurnCheckpoint, nt as resolveTaskTitle, q as recordTurnRoute, r as saveTurnCheckpoint, t as continuableMessages, tt as fallbackShortTitle, v as getUserMessageInstructionText, vt as piMessageFromHistoryItem, w as isToolResultMessage, x as isAssistantMessage, y as hasRuntimeTurnContext, z as recordAttachmentsDelivered } from "./checkpoint-C37Xgtj-.js";
17
+ import { A as getWorkspaceSnapshotBuilder, B as cancelWatch, Bt as saveObjectAnnotations, C as WorkspaceValidationError, D as setWorkspaceSnapshotBuild, E as setWorkspaceSnapshot, F as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, G as findMatchingWatches, H as createTimerWatch, I as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, It as matchSlackAttachments, K as listWatches, L as RESOURCE_WATCH_TOOL_SOURCE, M as workspaceRepoCheckoutPath, N as resolveChannelCapabilities, O as SANDBOX_RUNTIME, P as getSlackToolContext, R as STOP_WATCHING_TOOL_NAME, S as updateWorkspace, T as loadSnapshotsForProfile, U as createWatch, Vt as createPluginAnnotations, W as deliverWatch, _ as deleteWorkspace, at as getSlackClient, b as listWorkspaces, c as getPluginTools, ct as normalizeSlackConversationId, et as verifyTimerWatchCredentialSubject, g as createWorkspace, gt as getDashboardTaskLink, j as tryWorkspaceRepoCheckoutPath, k as deleteWorkspaceSnapshotBuilders, l as getPluginUserPromptContributions, mt as getDashboardConversationLink, n as applyPluginFormatMarkdown, nt as downloadPrivateSlackFile, ot as isConversationScopedChannel, pt as JUNIOR_THREAD_STATE_TTL_MS, r as createPluginHookRunner, rt as getFilePermalink, s as getPluginSystemPromptContributions, st as isDmChannel$1, tt as SlackActionError, u as getPlugins, ut as withSlackRetries, v as getWorkspace, w as invalidateReadySnapshot, xt as createPluginLogger, y as getWorkspaceByName, z as cancelSubscriptions } from "./agent-hooks-p3UA9FI1.js";
18
18
  import { F as isVisionImageMediaType, G as removedCardSchema, L as briefLinkSchema, R as briefOutcomeStatusSchema, z as conversationBriefSchema } from "./conversation-DwD-vquD.js";
19
- import { A as SANDBOX_DATA_ROOT, C as getDefaultRedisStateAdapterFor, D as fenceLock, E as acquireActiveLock, F as sandboxSkillFile, I as sandboxSkillPathResolution, M as SANDBOX_SKILLS_ROOT, N as SANDBOX_WORKSPACE_ROOT, O as withLock, P as sandboxSkillDir, _ as workspaceSnapshotNotReadyUserMessage, a as isAbortError, b as buildNonInteractiveShellScript, c as isSandboxCommandStreamInterruptedError, d as isSnapshottingError, f as throwSandboxOperationError, g as isWorkspaceSnapshotNotReadyError, h as getWorkspaceSnapshotNotReadyError, i as ensureDockerDaemon, j as SANDBOX_REPOS_ROOT, k as sleep$2, l as isSandboxMissingError, m as WorkspaceSnapshotNotReadyError, n as hash, o as isAlreadyExistsError, p as wrapSandboxSetupError, r as isStale, s as isSandboxApiTransientError, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand, y as buildCommandScript } from "./profile-C2TScny6.js";
20
- import { n as canReusePendingAuthLink, t as abandonReplacedPendingAuth } from "./pending-auth-DulDjfwL.js";
21
- import { a as NO_REPLY_MARKER, c as CooperativeTurnYieldError, i as sanitizeAssistantText, l as TurnInputCommitLostError, n as decideReply, o as isNoReplyMarker, p as isTurnInputCommitLostError, r as getAssistantReplyText, t as authorizationId } from "./oauth-authorization-Zv1oLB1J.js";
19
+ import { A as SANDBOX_DATA_ROOT, C as getDefaultRedisStateAdapterFor, D as fenceLock, E as acquireActiveLock, F as sandboxSkillFile, I as sandboxSkillPathResolution, M as SANDBOX_SKILLS_ROOT, N as SANDBOX_WORKSPACE_ROOT, O as withLock, P as sandboxSkillDir, _ as workspaceSnapshotNotReadyUserMessage, a as isAbortError, b as buildNonInteractiveShellScript, c as isSandboxCommandStreamInterruptedError, d as isSnapshottingError, f as throwSandboxOperationError, g as isWorkspaceSnapshotNotReadyError, h as getWorkspaceSnapshotNotReadyError, i as ensureDockerDaemon, j as SANDBOX_REPOS_ROOT, k as sleep$2, l as isSandboxMissingError, m as WorkspaceSnapshotNotReadyError, n as hash, o as isAlreadyExistsError, p as wrapSandboxSetupError, r as isStale, s as isSandboxApiTransientError, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand, y as buildCommandScript } from "./profile-DIcHBAxe.js";
20
+ import { n as canReusePendingAuthLink, t as abandonReplacedPendingAuth } from "./pending-auth-C6w4Gwve.js";
21
+ import { a as NO_REPLY_MARKER, c as CooperativeTurnYieldError, i as sanitizeAssistantText, l as TurnInputCommitLostError, n as decideReply, o as isNoReplyMarker, p as isTurnInputCommitLostError, r as getAssistantReplyText, t as authorizationId } from "./oauth-authorization-O8N3knp9.js";
22
22
  import { r as EVENT_AUTHOR_ID } from "./prompt-CMU-B4FA.js";
23
- import { a as createSandboxSession, c as postinstall, d as getSandboxResources, i as bindSandboxFileSystem, l as setSnapshotSpanAttributes, n as isMissingError, o as stopSession, r as resolve$1, s as dependencies } from "./resolve-CuY3dhxy.js";
24
- import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-BL9stv_E.js";
23
+ import { a as createSandboxSession, c as postinstall, d as getSandboxResources, i as bindSandboxFileSystem, l as setSnapshotSpanAttributes, n as isMissingError, o as stopSession, r as resolve$1, s as dependencies } from "./resolve-BkpWmZgN.js";
24
+ import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-CXpx6KfD.js";
25
25
  import { A as eventAutomationSchema, D as scheduledRunSchema, E as scheduledAutomationSchema, M as compileScheduleIntent, N as isValidTimeZone$1, O as automationInstructionToolSchema, P as scheduleIntentSchema, R as getZonedDateTimeParts, S as automationVersionSchema, T as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, j as ScheduleIntentError, k as automationTitleSchema, z as taskOutcomeInputSchema } from "./automation-CrQGQ2MT.js";
26
26
  import { r as isExperimentalFeatureEnabled } from "./experimental-Qn9rKLgx.js";
27
27
  import { n as privateTraceResultAttributes } from "./private-trace-result-BLvBjy_e.js";
@@ -21879,7 +21879,7 @@ function createAgentRunner(execute, options) {
21879
21879
  } } : void 0
21880
21880
  };
21881
21881
  if (run.instruction.storedAttachments?.length) {
21882
- const { loadInputImages } = await import("./images-puyEuXoY.js").then((n) => n.n);
21882
+ const { loadInputImages } = await import("./images-1xUjTHGf.js").then((n) => n.n);
21883
21883
  const storage = nextRun.environment?.attachmentStorage;
21884
21884
  if (!storage) throw new Error("Attachment storage is unavailable.");
21885
21885
  nextRun.instruction = {
package/dist/api.js CHANGED
@@ -1,22 +1,22 @@
1
- import { $ as eventAutomationBelongsToUser, Et as pluginEventCatalog, F as lookupSlackUser, H as saveScheduledAutomation, J as eventAutomationTriggerAvailable, K as editEventAutomation, O as parseSlackThreadId, P as editScheduledAutomation, T as readLiveAttachment, V as readScheduledAutomation, Vt as getConversation, X as resolveTaskOutcomes, at as setEventAutomationStatus, ct as readAutomationVersion, dt as automationRevision, ft as requireAutomationRevision, g as readStats, it as saveEventAutomation, jt as cancelHumanFacingPendingMessages, lt as sameDefinitionValue, ot as automationDefinition, q as AutomationEditError, tt as getEventAutomation, ut as AutomationConflictError, wt as getEventCatalog } from "./agent-runner-ZS1LHtSR.js";
2
- import { d as logException, p as logWarn } from "./logging-BNi_jyHb.js";
1
+ import { $ as eventAutomationBelongsToUser, Et as pluginEventCatalog, F as lookupSlackUser, H as saveScheduledAutomation, J as eventAutomationTriggerAvailable, K as editEventAutomation, O as parseSlackThreadId, P as editScheduledAutomation, T as readLiveAttachment, V as readScheduledAutomation, Vt as getConversation, X as resolveTaskOutcomes, at as setEventAutomationStatus, ct as readAutomationVersion, dt as automationRevision, ft as requireAutomationRevision, g as readStats, it as saveEventAutomation, jt as cancelHumanFacingPendingMessages, lt as sameDefinitionValue, ot as automationDefinition, q as AutomationEditError, tt as getEventAutomation, ut as AutomationConflictError, wt as getEventCatalog } from "./agent-runner-DjQSEVuD.js";
2
+ import { d as logException, p as logWarn } from "./logging-Bne7JUXI.js";
3
3
  import { d as parseSlackTeamId, g as parseSlackMessageTs, l as parseSlackChannelId } from "./actor-BTtLaeWy.js";
4
- import { C as agentTurnUsageSchema, T as resolveRootConversationId, _ as locationFromRow, c as getConversationEventStore, d as getDb, f as getSqlExecutor, i as resolveViewerUser, m as withConversationEventLock, o as updateViewerDisplayName, t as findUserByEmail, u as getConversationStore, w as hasAgentTurnUsage, y as parseSessionSource } from "./viewer-DsyM9kb9.js";
4
+ import { C as agentTurnUsageSchema, T as resolveRootConversationId, _ as locationFromRow, c as getConversationEventStore, d as getDb, f as getSqlExecutor, i as resolveViewerUser, m as withConversationEventLock, o as updateViewerDisplayName, t as findUserByEmail, u as getConversationStore, w as hasAgentTurnUsage, y as parseSessionSource } from "./viewer-DF3HTfW5.js";
5
5
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
6
- import { C as juniorCodeChanges, D as juniorConversations, E as conversationReadColumns, O as juniorIdentities, _ as juniorConversationBriefs, b as juniorConversationEvents, h as juniorConversationParticipants, k as juniorUsers, w as juniorCodeRepositories, x as juniorApiTokens, y as juniorConversationMetrics } from "./executor-DgPk8Lsx.js";
6
+ import { C as juniorCodeChanges, D as juniorConversations, E as conversationReadColumns, O as juniorIdentities, _ as juniorConversationBriefs, b as juniorConversationEvents, h as juniorConversationParticipants, k as juniorUsers, w as juniorCodeRepositories, x as juniorApiTokens, y as juniorConversationMetrics } from "./executor-DmIad4GI.js";
7
7
  import { u as contextProvenance } from "./history-BLTUgFYO.js";
8
- import { F as loadTurnProjection, vt as piMessageFromHistoryItem } from "./checkpoint-DWGyJg4c.js";
9
- import { At as viewerConversationMembership, C as WorkspaceValidationError, Ct as conversationArchiveTimes, Dt as conversationHasParticipantUser, Et as conversationHasParticipantEmail, Ht as listConversationAnnotations, M as workspaceRepoCheckoutPath, Mt as readLatestConversationBrief, Nt as readConversationEventPage, O as SANDBOX_RUNTIME, Ot as conversationNotArchivedForEmail, Pt as buildSentryConversationUrl, S as updateWorkspace, St as readConversationAccessFromSql, Tt as conversationArchivedForUser, Ut as listConversationAnnotationsById, _ as deleteWorkspace, at as getSlackClient, b as listWorkspaces, g as createWorkspace, kt as conversationNotArchivedForUser, u as getPlugins, ut as withSlackRetries, v as getWorkspace, wt as conversationArchivedForEmail, x as listWorkspacesByRepository, xt as createPluginLogger } from "./agent-hooks-CxdSqU2u.js";
8
+ import { F as loadTurnProjection, vt as piMessageFromHistoryItem } from "./checkpoint-C37Xgtj-.js";
9
+ import { At as viewerConversationMembership, C as WorkspaceValidationError, Ct as conversationArchiveTimes, Dt as conversationHasParticipantUser, Et as conversationHasParticipantEmail, Ht as listConversationAnnotations, M as workspaceRepoCheckoutPath, Mt as readLatestConversationBrief, Nt as readConversationEventPage, O as SANDBOX_RUNTIME, Ot as conversationNotArchivedForEmail, Pt as buildSentryConversationUrl, S as updateWorkspace, St as readConversationAccessFromSql, Tt as conversationArchivedForUser, Ut as listConversationAnnotationsById, _ as deleteWorkspace, at as getSlackClient, b as listWorkspaces, g as createWorkspace, kt as conversationNotArchivedForUser, u as getPlugins, ut as withSlackRetries, v as getWorkspace, wt as conversationArchivedForEmail, x as listWorkspacesByRepository, xt as createPluginLogger } from "./agent-hooks-p3UA9FI1.js";
10
10
  import { A as forkConversationResponseSchema, D as createConversationBodySchema, N as readMessageAttachments, O as createConversationMessageBodySchema, P as INPUT_IMAGE_TYPES, T as conversationStatsReportSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, k as forkConversationBodySchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-DwD-vquD.js";
11
- import { n as hash, t as create } from "./profile-C2TScny6.js";
12
- import { t as getCachedSnapshot } from "./resolve-CuY3dhxy.js";
13
- import { a as getVercelConversationWorkQueue } from "./job-queue-BL9stv_E.js";
11
+ import { n as hash, t as create } from "./profile-DIcHBAxe.js";
12
+ import { t as getCachedSnapshot } from "./resolve-BkpWmZgN.js";
13
+ import { a as getVercelConversationWorkQueue } from "./job-queue-CXpx6KfD.js";
14
14
  import { F as weekdaySchema, I as getFirstRunAtMs, M as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, j as ScheduleIntentError, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-CrQGQ2MT.js";
15
15
  import { C as skillReportsSchema, a as fillUtcHours, b as pluginsSchema, c as sumUtcHoursIntoSixHours, d as trailingUtcSixHourWindow, f as utcDayKey, h as pluginOperationalReportFeedSchema, i as fillUtcDays, l as trailingUtcDayWindow, m as healthReportSchema, n as DAY_MS$1, o as fillUtcSixHours, p as utcHourKey, r as HOUR_MS$1, s as startOfUtcHour, u as trailingUtcHourWindow, x as runtimeInfoReportSchema } from "./web-message-id-xPI_EFSC.js";
16
- import { B as readHealthReport, C as clearSlackPendingReactions, I as createVercelAttachmentStorage, _ as readViewerAutomationSummary, a as recordWebConversationActivity, b as resolveViewerTaskCandidate, d as resolveSlackConversationContextFromThreadId, f as ViewerTaskNotFoundError, g as readViewerAutomationRuns, h as readViewerAutomationExecutions, i as createConversationId, j as legacyWebMailboxMetadataSchema, l as getProductionSlackAdapter, m as readConversationSourceTask, o as webActorFromEmail, p as deleteViewerTask, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as formatSlackConversationRedactedLabel, v as readViewerAutomationVersions, y as readViewerAutomations } from "./web-input-efQlcCis.js";
17
- import { A as conversationAggregateColumns, j as conversationRangeColumns, k as conversationActiveDaysColumn } from "./task-runner-CDoZCo8g.js";
18
- import { r as getWebAuthorization } from "./web-authorization-Enb5lVYt.js";
19
- import { t as decodeInputImages } from "./images-puyEuXoY.js";
16
+ import { B as readHealthReport, C as clearSlackPendingReactions, I as createVercelAttachmentStorage, _ as readViewerAutomationSummary, a as recordWebConversationActivity, b as resolveViewerTaskCandidate, d as resolveSlackConversationContextFromThreadId, f as ViewerTaskNotFoundError, g as readViewerAutomationRuns, h as readViewerAutomationExecutions, i as createConversationId, j as legacyWebMailboxMetadataSchema, l as getProductionSlackAdapter, m as readConversationSourceTask, o as webActorFromEmail, p as deleteViewerTask, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage, u as formatSlackConversationRedactedLabel, v as readViewerAutomationVersions, y as readViewerAutomations } from "./web-input-qVi8134S.js";
17
+ import { A as conversationAggregateColumns, j as conversationRangeColumns, k as conversationActiveDaysColumn } from "./task-runner-BZUoctJ1.js";
18
+ import { r as getWebAuthorization } from "./web-authorization-Dg_R1tMc.js";
19
+ import { t as decodeInputImages } from "./images-1xUjTHGf.js";
20
20
  import { C as locationParamsSchema, E as activitySixHours$1, I as apiErrorSchema, M as codePersonReportSchema, N as codeRepositoryParamsSchema, P as codeRepositoryReportSchema, S as locationDirectoryReportSchema, T as activityHours$1, _ as actorProfileReportSchema, a as workspaceBodySchema, d as createdPersonalTokenSchema, f as personalTokenListSchema, g as actorDirectoryReportSchema, h as revokePersonalTokenResponseSchema, i as deleteWorkspaceResponseSchema, j as codeOverviewReportSchema, l as workspaceSchema, m as personalTokenParamsSchema, n as statsReportSchema, o as workspaceListSchema, s as workspaceParamsSchema, u as createPersonalTokenBodySchema, v as personParamsSchema, w as activityDays$1, x as locationDetailReportSchema, y as personalSpendReportSchema } from "./schema-CxWAN2zq.js";
21
21
  import { Hono } from "hono";
22
22
  import path from "node:path";
@@ -3356,7 +3356,7 @@ async function readPeoplePluginReports(args) {
3356
3356
  reports: [],
3357
3357
  source: "plugins"
3358
3358
  });
3359
- const { getPluginProfileReports } = await import("./agent-hooks-CxdSqU2u.js").then((n) => n.t);
3359
+ const { getPluginProfileReports } = await import("./agent-hooks-p3UA9FI1.js").then((n) => n.t);
3360
3360
  return pluginOperationalReportFeedSchema.parse({
3361
3361
  generatedAt: new Date(nowMs).toISOString(),
3362
3362
  reports: await getPluginProfileReports({
@@ -4324,7 +4324,7 @@ function readDescriptionText(home) {
4324
4324
  }
4325
4325
  /** Read discovered skill names for authenticated runtime diagnostics. */
4326
4326
  async function readSkillReports() {
4327
- const { discoverSkills } = await import("./skills-BGhThSGR.js").then((n) => n.o);
4327
+ const { discoverSkills } = await import("./skills-PHvy-ZgH.js").then((n) => n.o);
4328
4328
  const skills = await discoverSkills();
4329
4329
  return skillReportsSchema.parse(skills.map((skill) => ({
4330
4330
  name: skill.name,
@@ -4333,7 +4333,7 @@ async function readSkillReports() {
4333
4333
  }
4334
4334
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
4335
4335
  async function readPlugins() {
4336
- const { pluginCatalogRuntime } = await import("./catalog-runtime-BzNg07bb.js").then((n) => n.t);
4336
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-xq-njrMs.js").then((n) => n.t);
4337
4337
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
4338
4338
  configKeys: plugin.manifest.configKeys ?? [],
4339
4339
  description: plugin.manifest.description,
@@ -4345,7 +4345,7 @@ async function readPlugins() {
4345
4345
  async function readRuntimeInfoReport() {
4346
4346
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
4347
4347
  import("./package-discovery-BVvSnQBB.js").then((n) => n.r),
4348
- import("./catalog-runtime-BzNg07bb.js").then((n) => n.t),
4348
+ import("./catalog-runtime-xq-njrMs.js").then((n) => n.t),
4349
4349
  readPlugins(),
4350
4350
  readSkillReports()
4351
4351
  ]);
@@ -4362,7 +4362,7 @@ async function readRuntimeInfoReport() {
4362
4362
  /** Read sanitized operational summaries contributed by plugins. */
4363
4363
  async function readPluginOperationalReportFeed() {
4364
4364
  const nowMs = Date.now();
4365
- const { getPluginOperationalReports } = await import("./agent-hooks-CxdSqU2u.js").then((n) => n.t);
4365
+ const { getPluginOperationalReports } = await import("./agent-hooks-p3UA9FI1.js").then((n) => n.t);
4366
4366
  return pluginOperationalReportFeedSchema.parse({
4367
4367
  source: "plugins",
4368
4368
  generatedAt: new Date(nowMs).toISOString(),
package/dist/app.js CHANGED
@@ -1,32 +1,32 @@
1
- import { An as slackEntitySchema, Bn as setConfigDefaults, Bt as ensureConversationWake, E as requestAttachmentDeletion, G as withScheduledAutomationLock, Ht as getConversationWorkState, I as logScheduledAutomationRunSkipped, Jt as removeActiveConversation, L as scheduledAutomationRunAttributes, Mn as createUserTokenStore, O as parseSlackThreadId, Pt as clearExpiredConversationLease, Qt as stopConversationWork, R as listScheduledAutomations, Tn as slackMention, Tt as eventGuidance, U as saveScheduledAutomationInLock, Ut as hasRunnableConversationWork, V as readScheduledAutomation, Vt as getConversation, W as scheduledRunId, Wt as listActiveConversationIds, Xt as requestConversationWork, Y as effectiveTaskOutcomes, Z as collectEventAutomationMatchKeys, _n as formatProviderLabel, an as renderTaskInput, b as unpublishedArtifactHeaders, bn as startOAuthFlow, bt as ingestEvent, c as deleteMcpAuthSessionsForUserProvider, cn as resolveSandboxEgressProviderForHost, dn as SANDBOX_EGRESS_PROXY_PATH, en as CONVERSATION_WORK_STALE_ENQUEUE_MS, et as findMatchingEventAutomations, fn as clearSandboxEgressSignals, hn as parseSandboxEgressCredentialToken, i as executeCredentialedEgressRequest, in as isInvalidConversationRecordError, jn as slackExternalRefIdSchema, kt as appendAndEnqueueInboundMessage, l as deleteMcpServerSessionId, ln as normalizeSandboxEgressTracePropagationDomains, mn as consumeSandboxEgressPermissionDeniedSignal, n as executeAgentRun, nn as hasRunnableConversationWork$1, pn as consumeSandboxEgressAuthRequiredSignal, t as createAgentRunner, u as deleteMcpStoredOAuthCredentials, un as shouldPropagateSandboxEgressTrace, v as publicArtifactHeaders, w as collectAttachmentGarbage, wt as getEventCatalog, x as lookupSlackUserProfile, y as readPublicArtifact, yt as processWorkspaceSnapshotJob, z as listScheduledAutomationsForTeam, zn as getConfigDefaults } from "./agent-runner-ZS1LHtSR.js";
2
- import { C as withLogContext, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, S as withContext, d as logException, f as logInfo, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, p as logWarn, r as createRequestContext, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-BNi_jyHb.js";
1
+ import { An as slackEntitySchema, Bn as setConfigDefaults, Bt as ensureConversationWake, E as requestAttachmentDeletion, G as withScheduledAutomationLock, Ht as getConversationWorkState, I as logScheduledAutomationRunSkipped, Jt as removeActiveConversation, L as scheduledAutomationRunAttributes, Mn as createUserTokenStore, O as parseSlackThreadId, Pt as clearExpiredConversationLease, Qt as stopConversationWork, R as listScheduledAutomations, Tn as slackMention, Tt as eventGuidance, U as saveScheduledAutomationInLock, Ut as hasRunnableConversationWork, V as readScheduledAutomation, Vt as getConversation, W as scheduledRunId, Wt as listActiveConversationIds, Xt as requestConversationWork, Y as effectiveTaskOutcomes, Z as collectEventAutomationMatchKeys, _n as formatProviderLabel, an as renderTaskInput, b as unpublishedArtifactHeaders, bn as startOAuthFlow, bt as ingestEvent, c as deleteMcpAuthSessionsForUserProvider, cn as resolveSandboxEgressProviderForHost, dn as SANDBOX_EGRESS_PROXY_PATH, en as CONVERSATION_WORK_STALE_ENQUEUE_MS, et as findMatchingEventAutomations, fn as clearSandboxEgressSignals, hn as parseSandboxEgressCredentialToken, i as executeCredentialedEgressRequest, in as isInvalidConversationRecordError, jn as slackExternalRefIdSchema, kt as appendAndEnqueueInboundMessage, l as deleteMcpServerSessionId, ln as normalizeSandboxEgressTracePropagationDomains, mn as consumeSandboxEgressPermissionDeniedSignal, n as executeAgentRun, nn as hasRunnableConversationWork$1, pn as consumeSandboxEgressAuthRequiredSignal, t as createAgentRunner, u as deleteMcpStoredOAuthCredentials, un as shouldPropagateSandboxEgressTrace, v as publicArtifactHeaders, w as collectAttachmentGarbage, wt as getEventCatalog, x as lookupSlackUserProfile, y as readPublicArtifact, yt as processWorkspaceSnapshotJob, z as listScheduledAutomationsForTeam, zn as getConfigDefaults } from "./agent-runner-DjQSEVuD.js";
2
+ import { C as withLogContext, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, S as withContext, d as logException, f as logInfo, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, p as logWarn, r as createRequestContext, v as setSpanAttributes, w as withSpan, y as setSpanStatus } from "./logging-Bne7JUXI.js";
3
3
  import { r as continueTrace } from "./sentry-CgWZM_kV.js";
4
- import { t as JUNIOR_VERSION } from "./version-Chc6bVG5.js";
5
- import { _ as snapshotRuntimeConfig, d as restoreRuntimeConfig, f as setBotModelConfig, g as setSlackReactionConfig, h as setRuntimeLimits, i as getChatConfig, m as setProfiles, n as botConfig, o as getSlackBotToken, p as setCrossActorMidRunMode, u as resetRuntimeConfig } from "./config-DRw358bB.js";
4
+ import { t as JUNIOR_VERSION } from "./version-Dayi_ng2.js";
5
+ import { _ as snapshotRuntimeConfig, d as restoreRuntimeConfig, f as setBotModelConfig, g as setSlackReactionConfig, h as setRuntimeLimits, i as getChatConfig, m as setProfiles, n as botConfig, o as getSlackBotToken, p as setCrossActorMidRunMode, u as resetRuntimeConfig } from "./config-CGK_VplU.js";
6
6
  import { _ as slackMessageTsSchema, d as parseSlackTeamId, f as parseSlackUserId, h as slackUserIdSchema, m as slackTeamIdSchema, o as parseActorUserId, p as slackChannelIdSchema } from "./actor-BTtLaeWy.js";
7
- import { E as deleteProviderIdentityForSlackUser, c as getConversationEventStore, d as getDb, f as getSqlExecutor, g as withConversationMutationLock, m as withConversationEventLock, r as readActorIdentity, u as getConversationStore } from "./viewer-DsyM9kb9.js";
7
+ import { E as deleteProviderIdentityForSlackUser, c as getConversationEventStore, d as getDb, f as getSqlExecutor, g as withConversationMutationLock, m as withConversationEventLock, r as readActorIdentity, u as getConversationStore } from "./viewer-DF3HTfW5.js";
8
8
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
9
- import { D as juniorConversations, _ as juniorConversationBriefs, a as juniorSchedulerRuns, b as juniorConversationEvents, m as juniorAgentInvocations, o as juniorSchedulerTasks, p as juniorAgentBindings } from "./executor-DgPk8Lsx.js";
10
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BzNg07bb.js";
11
- import { J as appendConversationMessages, Z as projectConversationMessages, et as settleConversationTitleWork } from "./checkpoint-DWGyJg4c.js";
12
- import { $ as verifySlackDirectCredentialSubject, G as findMatchingWatches, Ht as listConversationAnnotations, J as bindEventAutomationCredentialSubject, Q as verifyScheduledAutomationCredentialSubject, St as readConversationAccessFromSql, V as collectEventMatchKeys, X as bindSlackDirectCredentialSubject, Y as bindScheduledAutomationCredentialSubject, Z as verifyEventAutomationCredentialSubject, _t as setDashboardConversationLinkOptions, a as getPluginRoutes, at as getSlackClient, d as setPlugins, dt as getWorkspaceTeamId, f as validatePlugins, ft as runWithWorkspaceTeamId, gt as getDashboardTaskLink, h as setBriefsConfig, i as getPluginApiRoutes, mt as getDashboardConversationLink, q as takeDueTimerWatches, st as isDmChannel, u as getPlugins, vt as createPluginState, xt as createPluginLogger, z as cancelSubscriptions, zt as resolveRootVisibility } from "./agent-hooks-CxdSqU2u.js";
9
+ import { D as juniorConversations, _ as juniorConversationBriefs, a as juniorSchedulerRuns, b as juniorConversationEvents, m as juniorAgentInvocations, o as juniorSchedulerTasks, p as juniorAgentBindings } from "./executor-DmIad4GI.js";
10
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-xq-njrMs.js";
11
+ import { J as appendConversationMessages, Z as projectConversationMessages, et as settleConversationTitleWork } from "./checkpoint-C37Xgtj-.js";
12
+ import { $ as verifySlackDirectCredentialSubject, G as findMatchingWatches, Ht as listConversationAnnotations, J as bindEventAutomationCredentialSubject, Q as verifyScheduledAutomationCredentialSubject, St as readConversationAccessFromSql, V as collectEventMatchKeys, X as bindSlackDirectCredentialSubject, Y as bindScheduledAutomationCredentialSubject, Z as verifyEventAutomationCredentialSubject, _t as setDashboardConversationLinkOptions, a as getPluginRoutes, at as getSlackClient, d as setPlugins, dt as getWorkspaceTeamId, f as validatePlugins, ft as runWithWorkspaceTeamId, gt as getDashboardTaskLink, h as setBriefsConfig, i as getPluginApiRoutes, mt as getDashboardConversationLink, q as takeDueTimerWatches, st as isDmChannel, u as getPlugins, vt as createPluginState, xt as createPluginLogger, z as cancelSubscriptions, zt as resolveRootVisibility } from "./agent-hooks-p3UA9FI1.js";
13
13
  import { V as annotationCard } from "./conversation-DwD-vquD.js";
14
- import { O as withLock$1, w as getStateAdapter } from "./profile-C2TScny6.js";
15
- import { c as getThreadStopDecision } from "./pending-auth-DulDjfwL.js";
16
- import { f as setSandboxResourceConfig, u as getSandboxResourceConfig } from "./resolve-CuY3dhxy.js";
17
- import { a as getVercelConversationWorkQueue, g as isConversationQueueMessageRejectedError, h as conversationQueueMessageSchema, i as verifyWorkspaceSnapshotJobMessage, o as resolveConversationWorkQueueTopic, s as verifyConversationQueueMessage, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-BL9stv_E.js";
14
+ import { O as withLock$1, w as getStateAdapter } from "./profile-DIcHBAxe.js";
15
+ import { c as getThreadStopDecision } from "./pending-auth-C6w4Gwve.js";
16
+ import { f as setSandboxResourceConfig, u as getSandboxResourceConfig } from "./resolve-BkpWmZgN.js";
17
+ import { a as getVercelConversationWorkQueue, g as isConversationQueueMessageRejectedError, h as conversationQueueMessageSchema, i as verifyWorkspaceSnapshotJobMessage, o as resolveConversationWorkQueueTopic, s as verifyConversationQueueMessage, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-CXpx6KfD.js";
18
18
  import { D as scheduledRunSchema, L as getNextRunAtMs } from "./automation-CrQGQ2MT.js";
19
19
  import { i as setExperimentalFeatures, n as getExperimentalFeatures, r as isExperimentalFeatureEnabled } from "./experimental-Qn9rKLgx.js";
20
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-D3li76Ti.js";
20
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-DsLyiOfn.js";
21
21
  import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-egKWjgue.js";
22
- import { A as getAuthPausedConversationTurnId, C as clearSlackPendingReactions, D as stopSlackThread, E as isSlackMessageStopped, F as renderSlackObjectCard, I as createVercelAttachmentStorage, M as THREAD_OPTOUT_ACK, N as startProcessingReaction, O as normalizeIncomingSlackThreadId, P as parseContent, R as enqueueAgentDispatch, S as buildSlackInboundMessage, T as verifySlackSignature, _ as readViewerAutomationSummary, a as recordWebConversationActivity, c as createProductionSlackWebhookServices, k as withNormalizedThreadId, l as getProductionSlackAdapter, n as conversationTurnIdForMessage, o as webActorFromEmail, s as createProductionConversationWorkOptions, t as appendAndEnqueueWebMessage, w as runWithSlackInstallation, x as recordSkippedConversationMessage, z as GET$3 } from "./web-input-efQlcCis.js";
23
- import { O as recordAutomationExecution, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, d as getPluginDispatchProjection, f as isTerminalDispatchStatus, l as getDispatchRecord, o as createOrGetDispatch, p as listPendingDispatchMailboxAppends, s as getDispatchConversationId, t as processPluginTask } from "./task-runner-CDoZCo8g.js";
24
- import { c as listPendingAgentInvocationMailboxAppends, r as enqueueAgentInvocation } from "./work-CeiA_ZxD.js";
25
- import { s as coerceThreadConversationState } from "./thread-state-B-t88gH0.js";
26
- import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-DmRbuyE4.js";
27
- import { a as registerVercelPluginTaskDevConsumer, n as createVercelPluginTaskCallback, s as queueCallback } from "./task-queue-Bi2uNATu.js";
28
- import { t as processConversationWork } from "./worker-BJb2hsUB.js";
29
- import { t as bindSpawnAgent } from "./spawn-PtyOnoXt.js";
22
+ import { A as getAuthPausedConversationTurnId, C as clearSlackPendingReactions, D as stopSlackThread, E as isSlackMessageStopped, F as renderSlackObjectCard, I as createVercelAttachmentStorage, M as THREAD_OPTOUT_ACK, N as startProcessingReaction, O as normalizeIncomingSlackThreadId, P as parseContent, R as enqueueAgentDispatch, S as buildSlackInboundMessage, T as verifySlackSignature, _ as readViewerAutomationSummary, a as recordWebConversationActivity, c as createProductionSlackWebhookServices, k as withNormalizedThreadId, l as getProductionSlackAdapter, n as conversationTurnIdForMessage, o as webActorFromEmail, s as createProductionConversationWorkOptions, t as appendAndEnqueueWebMessage, w as runWithSlackInstallation, x as recordSkippedConversationMessage, z as GET$3 } from "./web-input-qVi8134S.js";
23
+ import { O as recordAutomationExecution, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, d as getPluginDispatchProjection, f as isTerminalDispatchStatus, l as getDispatchRecord, o as createOrGetDispatch, p as listPendingDispatchMailboxAppends, s as getDispatchConversationId, t as processPluginTask } from "./task-runner-BZUoctJ1.js";
24
+ import { c as listPendingAgentInvocationMailboxAppends, r as enqueueAgentInvocation } from "./work-BbcghZZp.js";
25
+ import { s as coerceThreadConversationState } from "./thread-state-SnFcB9Rk.js";
26
+ import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-BBeYpK4k.js";
27
+ import { a as registerVercelPluginTaskDevConsumer, n as createVercelPluginTaskCallback, s as queueCallback } from "./task-queue-B9uJqkal.js";
28
+ import { t as processConversationWork } from "./worker-B-uRQzKw.js";
29
+ import { t as bindSpawnAgent } from "./spawn-CY34_HCm.js";
30
30
  import { createRequire } from "node:module";
31
31
  import { Hono } from "hono";
32
32
  import { z } from "zod";
@@ -1,4 +1,4 @@
1
- import { r as completeObject } from "./client-CKs0rj3A.js";
1
+ import { r as completeObject } from "./client-BZdqKg6S.js";
2
2
  import { r as defaultModelId } from "./model-profile-BwU8mqwD.js";
3
3
  import { B as parseBriefInput, I as briefCodeChangeSchema, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-DwD-vquD.js";
4
4
  import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-CMU-B4FA.js";
@@ -269,7 +269,7 @@ async function parseRunOptions(argv) {
269
269
  * `DATABASE_URL` at import, and `briefs pull` must work with only a token.
270
270
  */
271
271
  async function configuredDefaultModelId() {
272
- const { botConfig } = await import("./config-DRw358bB.js").then((n) => n.r);
272
+ const { botConfig } = await import("./config-CGK_VplU.js").then((n) => n.r);
273
273
  return defaultModelId(botConfig);
274
274
  }
275
275
  function apiUrl(baseUrl, pathname) {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { t as createPluginCatalogRuntime } from "./registry-D1RsbgDb.js";
2
+ import { t as createPluginCatalogRuntime } from "./registry-VSrEYeaD.js";
3
3
  //#region src/chat/plugins/catalog-runtime.ts
4
4
  var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
5
5
  const pluginCatalogRuntime = createPluginCatalogRuntime();
@@ -1,13 +1,13 @@
1
- import { d as unwrapCurrentInstruction, f as escapeXml, i as completeText, o as resolveGatewayModel } from "./client-CKs0rj3A.js";
2
- import { d as logException, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, v as setSpanAttributes } from "./logging-BNi_jyHb.js";
3
- import { n as botConfig } from "./config-DRw358bB.js";
1
+ import { d as unwrapCurrentInstruction, f as escapeXml, i as completeText, o as resolveGatewayModel } from "./client-BZdqKg6S.js";
2
+ import { d as logException, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, v as setSpanAttributes } from "./logging-Bne7JUXI.js";
3
+ import { n as botConfig } from "./config-CGK_VplU.js";
4
4
  import { c as toStoredSlackActor, g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
5
- import { b as addAgentTurnUsage, c as getConversationEventStore, f as getSqlExecutor, m as withConversationEventLock, p as createSqlConversationEventStore, u as getConversationStore, v as bindProviderConversation } from "./viewer-DsyM9kb9.js";
5
+ import { b as addAgentTurnUsage, c as getConversationEventStore, f as getSqlExecutor, m as withConversationEventLock, p as createSqlConversationEventStore, u as getConversationStore, v as bindProviderConversation } from "./viewer-DF3HTfW5.js";
6
6
  import { d as instructionActors, f as instructionProvenanceFor, n as agentHistoryItemSchema, u as contextProvenance } from "./history-BLTUgFYO.js";
7
- import { p as credentialSubjectSchema } from "./registry-D1RsbgDb.js";
8
- import { Gt as agentsInstructionsUpdatedEvent, Kt as authenticationLinkedEvent, Wt as JUNIOR_NATIVE_EVENT_NAMESPACE, qt as authenticationUnlinkedEvent } from "./agent-hooks-CxdSqU2u.js";
7
+ import { p as credentialSubjectSchema } from "./registry-VSrEYeaD.js";
8
+ import { Gt as agentsInstructionsUpdatedEvent, Kt as authenticationLinkedEvent, Wt as JUNIOR_NATIVE_EVENT_NAMESPACE, qt as authenticationUnlinkedEvent } from "./agent-hooks-p3UA9FI1.js";
9
9
  import { H as messageCardRef } from "./conversation-DwD-vquD.js";
10
- import { D as fenceLock, O as withLock, T as MUTATION_LOCK_TTL_MS, k as sleep, w as getStateAdapter } from "./profile-C2TScny6.js";
10
+ import { D as fenceLock, O as withLock, T as MUTATION_LOCK_TTL_MS, k as sleep, w as getStateAdapter } from "./profile-DIcHBAxe.js";
11
11
  import { isDeepStrictEqual } from "node:util";
12
12
  import { z } from "zod";
13
13
  import { createHash } from "node:crypto";
package/dist/cli/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-ZS1LHtSR.js";
1
+ import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-DjQSEVuD.js";
2
2
  import { t as loadAppPluginSet } from "../plugin-module-CVvEUSMH.js";
3
3
  import path from "node:path";
4
4
  import { createHash, randomUUID } from "node:crypto";
@@ -100,10 +100,10 @@ async function loadLocalPluginSet() {
100
100
  async function configureLocalChatPlugins(pluginSet) {
101
101
  const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
102
102
  import("../plugins-egKWjgue.js").then((n) => n.o),
103
- import("../agent-hooks-CxdSqU2u.js").then((n) => n.t),
104
- import("../catalog-runtime-BzNg07bb.js").then((n) => n.t),
105
- import("../validation-D3li76Ti.js").then((n) => n.r),
106
- import("../viewer-DsyM9kb9.js").then((n) => n.s)
103
+ import("../agent-hooks-p3UA9FI1.js").then((n) => n.t),
104
+ import("../catalog-runtime-xq-njrMs.js").then((n) => n.t),
105
+ import("../validation-DsLyiOfn.js").then((n) => n.r),
106
+ import("../viewer-DF3HTfW5.js").then((n) => n.s)
107
107
  ]);
108
108
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
109
109
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -155,16 +155,16 @@ async function prepareLocalChatRun(io, pluginSet) {
155
155
  await configureLocalChatPlugins(pluginSet);
156
156
  const { setExperimentalFeatures } = await import("../experimental-Qn9rKLgx.js").then((n) => n.t);
157
157
  setExperimentalFeatures({ subagents: true });
158
- const { setBriefsConfig } = await import("../agent-hooks-CxdSqU2u.js").then((n) => n.m);
158
+ const { setBriefsConfig } = await import("../agent-hooks-p3UA9FI1.js").then((n) => n.m);
159
159
  setBriefsConfig({ enabled: true });
160
- const { runLocalAgentTurn } = await import("../runner-BUkReLln.js");
161
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-BHtVbKvO.js");
160
+ const { runLocalAgentTurn } = await import("../runner-52ezCnZF.js");
161
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-Cb-HPZPS.js");
162
162
  const { createLocalOAuthState } = await import("../oauth-relay-CdCnu80W.js").then((n) => n.t);
163
- const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-etjG6qQX.js");
164
- const { bindSpawnAgent } = await import("../spawn-PtyOnoXt.js").then((n) => n.n);
165
- const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-CeiA_ZxD.js").then((n) => n.a);
163
+ const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-Cmhf3P6Y.js");
164
+ const { bindSpawnAgent } = await import("../spawn-CY34_HCm.js").then((n) => n.n);
165
+ const { createAgentInvocationWorker, routeAgentInvocationWork } = await import("../work-BbcghZZp.js").then((n) => n.a);
166
166
  const { createLocalConversationWork } = await import("../conversation-work-C6y3T5Hx.js");
167
- const { processConversationWork } = await import("../worker-BJb2hsUB.js").then((n) => n.n);
167
+ const { processConversationWork } = await import("../worker-B-uRQzKw.js").then((n) => n.n);
168
168
  let agentRunner;
169
169
  const localConversationWork = createLocalConversationWork(async (message) => {
170
170
  if (!agentRunner) throw new Error("Local agent runner is not ready");
package/dist/cli/check.js CHANGED
@@ -1,6 +1,6 @@
1
- import { D as JUNIOR_HEARTBEAT_ROUTE, M as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, T as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-BNi_jyHb.js";
2
- import { _ as parsePluginManifest, g as parseInlinePluginManifest } from "../registry-D1RsbgDb.js";
3
- import { i as parseSkillFile } from "../skills-BGhThSGR.js";
1
+ import { D as JUNIOR_HEARTBEAT_ROUTE, M as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, T as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-Bne7JUXI.js";
2
+ import { _ as parsePluginManifest, g as parseInlinePluginManifest } from "../registry-VSrEYeaD.js";
3
+ import { i as parseSkillFile } from "../skills-PHvy-ZgH.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,10 +25,10 @@ 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-ZGlZ8lY6.js")).runAdmin(argv);
28
+ return await (await import("../admin-leAJ2k0P.js")).runAdmin(argv);
29
29
  }
30
30
  async function runBriefs(argv) {
31
- return await (await import("../briefs-B6IhUAgK.js")).runBriefs(argv);
31
+ return await (await import("../briefs-mzUaJkBX.js")).runBriefs(argv);
32
32
  }
33
33
  function topLevelCommand(argv) {
34
34
  return (argv[0] === "--" ? argv.slice(1) : argv)[0];
@@ -1,7 +1,7 @@
1
- import { d as getDb } from "../viewer-DsyM9kb9.js";
2
- import { n as pluginCatalogRuntime } from "../catalog-runtime-BzNg07bb.js";
3
- import { d as setPlugins, f as validatePlugins, xt as createPluginLogger } from "../agent-hooks-CxdSqU2u.js";
4
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-D3li76Ti.js";
1
+ import { d as getDb } from "../viewer-DF3HTfW5.js";
2
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-xq-njrMs.js";
3
+ import { d as setPlugins, f as validatePlugins, xt as createPluginLogger } from "../agent-hooks-p3UA9FI1.js";
4
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-DsLyiOfn.js";
5
5
  import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-egKWjgue.js";
6
6
  import { t as loadAppPluginSet } from "../plugin-module-CVvEUSMH.js";
7
7
  import { stderr, stdout } from "node:process";
@@ -1,6 +1,6 @@
1
- import { n as pluginCatalogRuntime } from "../catalog-runtime-BzNg07bb.js";
2
- import { S as disconnectStateAdapter, t as create } from "../profile-C2TScny6.js";
3
- import { r as resolve } from "../resolve-CuY3dhxy.js";
1
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-xq-njrMs.js";
2
+ import { S as disconnectStateAdapter, t as create } from "../profile-DIcHBAxe.js";
3
+ import { r as resolve } from "../resolve-BkpWmZgN.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 { i as getChatConfig } from "../config-DRw358bB.js";
2
- import { t as createJuniorSqlExecutor } from "../executor-DgPk8Lsx.js";
3
- import { t as createPluginCatalogRuntime } from "../registry-D1RsbgDb.js";
1
+ import { i as getChatConfig } from "../config-CGK_VplU.js";
2
+ import { t as createJuniorSqlExecutor } from "../executor-DmIad4GI.js";
3
+ import { t as createPluginCatalogRuntime } from "../registry-VSrEYeaD.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-CVvEUSMH.js";
6
6
  import { basename, dirname, join, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
- import { d as logException, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, m as normalizeGenAiFinishReason, p as logWarn, w as withSpan } from "./logging-BNi_jyHb.js";
2
- import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-DAYxHp74.js";
1
+ import { d as logException, g as serializeGenAiAttribute, i as extractGenAiUsageAttributes, m as normalizeGenAiFinishReason, p as logWarn, w as withSpan } from "./logging-Bne7JUXI.js";
2
+ import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-Ci3QLNOb.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 { S as toOptionalTrimmed, o as resolveGatewayModel } from "./client-CKs0rj3A.js";
3
- import { p as logWarn } from "./logging-BNi_jyHb.js";
2
+ import { S as toOptionalTrimmed, o as resolveGatewayModel } from "./client-BZdqKg6S.js";
3
+ import { p as logWarn } from "./logging-Bne7JUXI.js";
4
4
  import { l as TURN_REASONING_LEVELS, s as modelProfileSchema, t as DEFAULT_MODEL_PROFILES, u as parseTurnReasoningLevel } from "./model-profile-BwU8mqwD.js";
5
5
  //#region src/chat/slack/emoji.ts
6
6
  const SLACK_EMOJI_NAME_RE = /^(?:[a-z0-9_+-]+)(?:::(?:skin-tone-[2-6]))?$/;
@@ -1,4 +1,4 @@
1
- import { p as logWarn } from "./logging-BNi_jyHb.js";
1
+ import { p as logWarn } from "./logging-Bne7JUXI.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,19 +1,19 @@
1
- import { Mn as createUserTokenStore, On as postSlackMessage, _ as resolvePluginOAuthAccount, _n as formatProviderLabel, d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession, vn as parseOAuthStatePayload, vt as getMcpProviderErrorAttributes, x as lookupSlackUserProfile, yn as resolveBaseUrl } from "./agent-runner-ZS1LHtSR.js";
2
- import { f as escapeXml } from "./client-CKs0rj3A.js";
3
- import { d as logException, h as runBestEffort, p as logWarn } from "./logging-BNi_jyHb.js";
4
- import { a as getRuntimeMetadata, n as botConfig } from "./config-DRw358bB.js";
1
+ import { Mn as createUserTokenStore, On as postSlackMessage, _ as resolvePluginOAuthAccount, _n as formatProviderLabel, d as getMcpAuthSession, f as getMcpStoredOAuthCredentials, o as finalizeMcpAuthorization, p as putMcpStoredOAuthCredentials, s as deleteMcpAuthSession, vn as parseOAuthStatePayload, vt as getMcpProviderErrorAttributes, x as lookupSlackUserProfile, yn as resolveBaseUrl } from "./agent-runner-DjQSEVuD.js";
2
+ import { f as escapeXml } from "./client-BZdqKg6S.js";
3
+ import { d as logException, h as runBestEffort, p as logWarn } from "./logging-Bne7JUXI.js";
4
+ import { a as getRuntimeMetadata, n as botConfig } from "./config-CGK_VplU.js";
5
5
  import { f as parseSlackUserId } from "./actor-BTtLaeWy.js";
6
- import { A as upsertLinkedIdentity, f as getSqlExecutor, k as upsertIdentity } from "./viewer-DsyM9kb9.js";
6
+ import { A as upsertLinkedIdentity, f as getSqlExecutor, k as upsertIdentity } from "./viewer-DF3HTfW5.js";
7
7
  import { i as homeDir } from "./package-discovery-BVvSnQBB.js";
8
- import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-D1RsbgDb.js";
9
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BzNg07bb.js";
10
- import { t as discoverSkills } from "./skills-BGhThSGR.js";
11
- import { B as recordAuthenticationLinked, V as recordAuthorizationCompleted, s as getTurnRecord } from "./checkpoint-DWGyJg4c.js";
12
- import { at as getSlackClient } from "./agent-hooks-CxdSqU2u.js";
13
- import { E as acquireActiveLock, w as getStateAdapter } from "./profile-C2TScny6.js";
14
- import { i as getConversationPendingAuth } from "./pending-auth-DulDjfwL.js";
15
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-B-t88gH0.js";
16
- import { n as deleteWebAuthorization, o as wakeAuthorizedTurn, s as wakePausedTurn } from "./web-authorization-Enb5lVYt.js";
8
+ import { n as buildOAuthTokenRequest, r as parseOAuthTokenResponse, u as hasRequiredOAuthScope } from "./registry-VSrEYeaD.js";
9
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-xq-njrMs.js";
10
+ import { t as discoverSkills } from "./skills-PHvy-ZgH.js";
11
+ import { B as recordAuthenticationLinked, V as recordAuthorizationCompleted, s as getTurnRecord } from "./checkpoint-C37Xgtj-.js";
12
+ import { at as getSlackClient } from "./agent-hooks-p3UA9FI1.js";
13
+ import { E as acquireActiveLock, w as getStateAdapter } from "./profile-DIcHBAxe.js";
14
+ import { i as getConversationPendingAuth } from "./pending-auth-C6w4Gwve.js";
15
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-SnFcB9Rk.js";
16
+ import { n as deleteWebAuthorization, o as wakeAuthorizedTurn, s as wakePausedTurn } from "./web-authorization-Dg_R1tMc.js";
17
17
  import { n as relayLocalOAuthCallback } from "./oauth-relay-CdCnu80W.js";
18
18
  import path from "node:path";
19
19
  import { z } from "zod";
@@ -1,6 +1,6 @@
1
- import { d as logException } from "./logging-BNi_jyHb.js";
1
+ import { d as logException } from "./logging-Bne7JUXI.js";
2
2
  import { g as startSpanManual } from "./sentry-CgWZM_kV.js";
3
- import "./config-DRw358bB.js";
3
+ import "./config-CGK_VplU.js";
4
4
  import { n as juniorDestinations, r as timestamptz } from "./destinations-BeBiJeEM.js";
5
5
  import { AsyncLocalStorage } from "node:async_hooks";
6
6
  import { getTableColumns, sql } from "drizzle-orm";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { D as storeAttachment, T as readLiveAttachment } from "./agent-runner-ZS1LHtSR.js";
3
- import { f as getSqlExecutor } from "./viewer-DsyM9kb9.js";
2
+ import { D as storeAttachment, T as readLiveAttachment } from "./agent-runner-DjQSEVuD.js";
3
+ import { f as getSqlExecutor } from "./viewer-DF3HTfW5.js";
4
4
  import "./conversation-DwD-vquD.js";
5
5
  //#region src/chat/attachments/images.ts
6
6
  var images_exports = /* @__PURE__ */ __exportAll({
@@ -1,6 +1,6 @@
1
- import { N as getDeploymentServiceVersion, P as getDeploymentTelemetryAttributes } from "./logging-BNi_jyHb.js";
1
+ import { N as getDeploymentServiceVersion, P as getDeploymentTelemetryAttributes } from "./logging-Bne7JUXI.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-DAYxHp74.js";
3
+ import { n as getCurrentConversationPrivacy } from "./conversation-privacy-Ci3QLNOb.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 { i as getChatConfig } from "./config-DRw358bB.js";
1
+ import { i as getChatConfig } from "./config-CGK_VplU.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  import { z } from "zod";
4
4
  import { createHash, createHmac, timingSafeEqual } from "node:crypto";
@@ -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-Chc6bVG5.js";
2
+ import { t as JUNIOR_VERSION } from "./version-Dayi_ng2.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,8 +1,8 @@
1
- import { A as JUNIOR_RETENTION_ROUTE, D as JUNIOR_HEARTBEAT_ROUTE, E as JUNIOR_HEARTBEAT_CRON_SCHEDULE, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, k as JUNIOR_RETENTION_CRON_SCHEDULE } from "./logging-BNi_jyHb.js";
1
+ import { A as JUNIOR_RETENTION_ROUTE, D as JUNIOR_HEARTBEAT_ROUTE, E as JUNIOR_HEARTBEAT_CRON_SCHEDULE, O as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, j as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, k as JUNIOR_RETENTION_CRON_SCHEDULE } from "./logging-Bne7JUXI.js";
2
2
  import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-BVvSnQBB.js";
3
- import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-BL9stv_E.js";
3
+ import { o as resolveConversationWorkQueueTopic, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-CXpx6KfD.js";
4
4
  import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-egKWjgue.js";
5
- import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-Bi2uNATu.js";
5
+ import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-B9uJqkal.js";
6
6
  import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-CVvEUSMH.js";
7
7
  import path from "node:path";
8
8
  import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { h as extractAssistantText } from "./checkpoint-DWGyJg4c.js";
1
+ import { h as extractAssistantText } from "./checkpoint-C37Xgtj-.js";
2
2
  //#region src/chat/runtime/turn.ts
3
3
  /** Classified Slack turn failure carrying the owning Sentry capture outward. */
4
4
  var ConversationTurnBoundaryError = class extends Error {
@@ -1,5 +1,5 @@
1
- import { Mn as createUserTokenStore } from "./agent-runner-ZS1LHtSR.js";
2
- import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-DmRbuyE4.js";
1
+ import { Mn as createUserTokenStore } from "./agent-runner-DjQSEVuD.js";
2
+ import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-BBeYpK4k.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 { v as isProviderRetryError } from "./client-CKs0rj3A.js";
2
- import { i as abandonTurnRecord, mt as estimateTextTokens } from "./checkpoint-DWGyJg4c.js";
1
+ import { v as isProviderRetryError } from "./client-BZdqKg6S.js";
2
+ import { i as abandonTurnRecord, mt as estimateTextTokens } from "./checkpoint-C37Xgtj-.js";
3
3
  import { r as isExperimentalFeatureEnabled } from "./experimental-Qn9rKLgx.js";
4
4
  import { z } from "zod";
5
5
  //#region src/chat/state/turn-id.ts
@@ -1,7 +1,7 @@
1
- import { S as toOptionalTrimmed } from "./client-CKs0rj3A.js";
2
- import { v as setSpanAttributes, y as setSpanStatus } from "./logging-BNi_jyHb.js";
3
- import { i as getChatConfig } from "./config-DRw358bB.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BzNg07bb.js";
1
+ import { S as toOptionalTrimmed } from "./client-BZdqKg6S.js";
2
+ import { v as setSpanAttributes, y as setSpanStatus } from "./logging-Bne7JUXI.js";
3
+ import { i as getChatConfig } from "./config-CGK_VplU.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-xq-njrMs.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 { f as logInfo, p as logWarn, v as setSpanAttributes } from "./logging-BNi_jyHb.js";
1
+ import { f as logInfo, p as logWarn, v as setSpanAttributes } from "./logging-Bne7JUXI.js";
2
2
  import { o as parseActorUserId } from "./actor-BTtLaeWy.js";
3
3
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-BVvSnQBB.js";
4
4
  import path from "node:path";
@@ -1,5 +1,5 @@
1
- import { v as setSpanAttributes, w as withSpan } from "./logging-BNi_jyHb.js";
2
- import { N as SANDBOX_WORKSPACE_ROOT, k as sleep, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-C2TScny6.js";
1
+ import { v as setSpanAttributes, w as withSpan } from "./logging-Bne7JUXI.js";
2
+ import { N as SANDBOX_WORKSPACE_ROOT, k as sleep, r as isStale, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-DIcHBAxe.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 { C as withLogContext, b as setTags, d as logException } from "./logging-BNi_jyHb.js";
2
- import { c as getConversationEventStore, u as getConversationStore } from "./viewer-DsyM9kb9.js";
3
- import { d as credentialContextForActor } from "./registry-D1RsbgDb.js";
4
- import { A as commitAcceptedReply, P as loadProjection, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, dt as recordDeliveredAssistantMessage, it as buildConversationContext, lt as markConversationMessage, pt as upsertConversationMessage, r as saveTurnCheckpoint, u as persistWithRetry, ut as normalizeConversationText } from "./checkpoint-DWGyJg4c.js";
1
+ import { C as withLogContext, b as setTags, d as logException } from "./logging-Bne7JUXI.js";
2
+ import { c as getConversationEventStore, u as getConversationStore } from "./viewer-DF3HTfW5.js";
3
+ import { d as credentialContextForActor } from "./registry-VSrEYeaD.js";
4
+ import { A as commitAcceptedReply, P as loadProjection, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, dt as recordDeliveredAssistantMessage, it as buildConversationContext, lt as markConversationMessage, pt as upsertConversationMessage, r as saveTurnCheckpoint, u as persistWithRetry, ut as normalizeConversationText } from "./checkpoint-C37Xgtj-.js";
5
5
  import { U as messageCardText } from "./conversation-DwD-vquD.js";
6
- import { _ as markTurnFailed, r as getAssistantReplyText, t as authorizationId, v as startActiveTurn } from "./oauth-authorization-Zv1oLB1J.js";
7
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-CDoZCo8g.js";
8
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-ByhUHYjD.js";
9
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-B-t88gH0.js";
10
- import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-di4Jx90o.js";
6
+ import { _ as markTurnFailed, r as getAssistantReplyText, t as authorizationId, v as startActiveTurn } from "./oauth-authorization-O8N3knp9.js";
7
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-BZUoctJ1.js";
8
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-D49hJbjm.js";
9
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-SnFcB9Rk.js";
10
+ import { d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, t as finalizeFailedTurnReplyWithEvent } from "./turn-failure-response-CrSc1Vtn.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 { gn as sandboxEgressSignalsResponseSchema } from "./agent-runner-ZS1LHtSR.js";
1
+ import { gn as sandboxEgressSignalsResponseSchema } from "./agent-runner-DjQSEVuD.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,7 +1,7 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { p as logWarn } from "./logging-BNi_jyHb.js";
2
+ import { p as logWarn } from "./logging-Bne7JUXI.js";
3
3
  import { s as skillRoots } from "./package-discovery-BVvSnQBB.js";
4
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BzNg07bb.js";
4
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-xq-njrMs.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 { Fn as actorFromRun, In as toolInvocationDestination } from "./agent-runner-ZS1LHtSR.js";
3
- import { n as createAndEnqueueAgentInvocation } from "./work-CeiA_ZxD.js";
2
+ import { Fn as actorFromRun, In as toolInvocationDestination } from "./agent-runner-DjQSEVuD.js";
3
+ import { n as createAndEnqueueAgentInvocation } from "./work-BbcghZZp.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,5 +1,5 @@
1
- import { p as logWarn } from "./logging-BNi_jyHb.js";
2
- import { c as QUEUE_SIGNATURE_MAX_AGE_MS, d as createVercelQueueClient, l as signQueueMessage, p as runWithTurnRequestDeadline, u as verifyQueueMessage } from "./job-queue-BL9stv_E.js";
1
+ import { p as logWarn } from "./logging-Bne7JUXI.js";
2
+ import { c as QUEUE_SIGNATURE_MAX_AGE_MS, d as createVercelQueueClient, l as signQueueMessage, p as runWithTurnRequestDeadline, u as verifyQueueMessage } from "./job-queue-CXpx6KfD.js";
3
3
  import { z } from "zod";
4
4
  import { createHash } from "node:crypto";
5
5
  import { handleCallback, registerDevConsumer } from "@vercel/queue";
@@ -115,7 +115,7 @@ function pluginTaskCallback() {
115
115
  maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
116
116
  onRejected: logPluginTaskQueueMessageRejected,
117
117
  run: async (message) => {
118
- const { processPluginTask } = await import("./task-runner-CDoZCo8g.js").then((n) => n.r);
118
+ const { processPluginTask } = await import("./task-runner-BZUoctJ1.js").then((n) => n.r);
119
119
  await processPluginTask(message);
120
120
  },
121
121
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -1,16 +1,16 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { p as logWarn } from "./logging-BNi_jyHb.js";
2
+ import { p as logWarn } from "./logging-Bne7JUXI.js";
3
3
  import { g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
4
- import { S as agentTurnTotalTokens, d as getDb, r as readActorIdentity, u as getConversationStore, x as agentTurnCostUsd } from "./viewer-DsyM9kb9.js";
5
- import { D as juniorConversations, c as juniorAutomationExecutions } from "./executor-DgPk8Lsx.js";
4
+ import { S as agentTurnTotalTokens, d as getDb, r as readActorIdentity, u as getConversationStore, x as agentTurnCostUsd } from "./viewer-DF3HTfW5.js";
5
+ import { D as juniorConversations, c as juniorAutomationExecutions } from "./executor-DmIad4GI.js";
6
6
  import { p as sameActorIdentity } from "./history-BLTUgFYO.js";
7
- import { p as credentialSubjectSchema } from "./registry-D1RsbgDb.js";
8
- import { C as isToolResultError, D as stripRuntimeTurnContext, T as normalizeToolNameFromResult, Y as hydrateConversationMessages, b as instructionTextForProjection, g as getPiMessageRole, s as getTurnRecord, w as isToolResultMessage } from "./checkpoint-DWGyJg4c.js";
9
- import { bt as createPluginModel, jt as createPluginConversationEvents, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginState, xt as createPluginLogger, yt as createPluginEmbedder } from "./agent-hooks-CxdSqU2u.js";
10
- import { w as getStateAdapter } from "./profile-C2TScny6.js";
11
- import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-B-t88gH0.js";
12
- import { t as resolveConversationRouting } from "./turn-session-routing-QjNvsevm.js";
13
- import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-Bi2uNATu.js";
7
+ import { p as credentialSubjectSchema } from "./registry-VSrEYeaD.js";
8
+ import { C as isToolResultError, D as stripRuntimeTurnContext, T as normalizeToolNameFromResult, Y as hydrateConversationMessages, b as instructionTextForProjection, g as getPiMessageRole, s as getTurnRecord, w as isToolResultMessage } from "./checkpoint-C37Xgtj-.js";
9
+ import { bt as createPluginModel, jt as createPluginConversationEvents, p as coreTaskRegistrations, pt as JUNIOR_THREAD_STATE_TTL_MS, u as getPlugins, vt as createPluginState, xt as createPluginLogger, yt as createPluginEmbedder } from "./agent-hooks-p3UA9FI1.js";
10
+ import { w as getStateAdapter } from "./profile-DIcHBAxe.js";
11
+ import { r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-SnFcB9Rk.js";
12
+ import { t as resolveConversationRouting } from "./turn-session-routing-cMvumCLK.js";
13
+ import { i as pluginTaskParamsSchema, o as sendVercelPluginTask, r as pluginTaskId } from "./task-queue-B9uJqkal.js";
14
14
  import { z } from "zod";
15
15
  import { createHash } from "node:crypto";
16
16
  import { and, asc, count, desc, eq, gte, inArray, lte, max, or, sql } from "drizzle-orm";
@@ -1,10 +1,10 @@
1
- import { I as isRecord, L as toOptionalNumber, R as toOptionalString } from "./logging-BNi_jyHb.js";
2
- import { d as getDb } from "./viewer-DsyM9kb9.js";
1
+ import { I as isRecord, L as toOptionalNumber, R as toOptionalString } from "./logging-Bne7JUXI.js";
2
+ import { d as getDb } from "./viewer-DF3HTfW5.js";
3
3
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
4
- import { d as juniorLocationConfigurations } from "./executor-DgPk8Lsx.js";
5
- import { X as persistConversationMessages } from "./checkpoint-DWGyJg4c.js";
6
- import { pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-CxdSqU2u.js";
7
- import { w as getStateAdapter } from "./profile-C2TScny6.js";
4
+ import { d as juniorLocationConfigurations } from "./executor-DmIad4GI.js";
5
+ import { X as persistConversationMessages } from "./checkpoint-C37Xgtj-.js";
6
+ import { pt as JUNIOR_THREAD_STATE_TTL_MS } from "./agent-hooks-p3UA9FI1.js";
7
+ import { w as getStateAdapter } from "./profile-DIcHBAxe.js";
8
8
  import { z } from "zod";
9
9
  import { randomUUID } from "node:crypto";
10
10
  import { and, eq, sql } from "drizzle-orm";
@@ -1,13 +1,13 @@
1
- import { _ as getProviderErrorUserMessage, g as getProviderErrorAttributes, h as findProviderError, p as ProviderError } from "./client-CKs0rj3A.js";
2
- import { I as isRecord, t as buildTurnFailureResponse } from "./logging-BNi_jyHb.js";
1
+ import { _ as getProviderErrorUserMessage, g as getProviderErrorAttributes, h as findProviderError, p as ProviderError } from "./client-BZdqKg6S.js";
2
+ import { I as isRecord, t as buildTurnFailureResponse } from "./logging-Bne7JUXI.js";
3
3
  import { g as parseSlackMessageTs } from "./actor-BTtLaeWy.js";
4
- import { c as getConversationEventStore, d as getDb } from "./viewer-DsyM9kb9.js";
5
- import { Y as hydrateConversationMessages, lt as markConversationMessage } from "./checkpoint-DWGyJg4c.js";
6
- import { Ht as listConversationAnnotations } from "./agent-hooks-CxdSqU2u.js";
4
+ import { c as getConversationEventStore, d as getDb } from "./viewer-DF3HTfW5.js";
5
+ import { Y as hydrateConversationMessages, lt as markConversationMessage } from "./checkpoint-C37Xgtj-.js";
6
+ import { Ht as listConversationAnnotations } from "./agent-hooks-p3UA9FI1.js";
7
7
  import { G as removedCardSchema, K as resolveMessageCards, W as readMessageCardRefs } from "./conversation-DwD-vquD.js";
8
- import { r as clearPendingAuth, u as buildDeterministicTurnId } from "./pending-auth-DulDjfwL.js";
9
- import { g as markTurnCompleted, h as markTurnClosed } from "./oauth-authorization-Zv1oLB1J.js";
10
- import { o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-B-t88gH0.js";
8
+ import { r as clearPendingAuth, u as buildDeterministicTurnId } from "./pending-auth-C6w4Gwve.js";
9
+ import { g as markTurnCompleted, h as markTurnClosed } from "./oauth-authorization-O8N3knp9.js";
10
+ import { o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState } from "./thread-state-SnFcB9Rk.js";
11
11
  //#region src/chat/conversations/pending-cards.ts
12
12
  /** Select undelivered cards and load their latest saved facts. */
13
13
  async function loadPendingMessageCards(conversationId) {
@@ -1,4 +1,4 @@
1
- import { c as getConversationEventStore } from "./viewer-DsyM9kb9.js";
1
+ import { c as getConversationEventStore } from "./viewer-DF3HTfW5.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 {
@@ -34,7 +34,7 @@ function slackSourceForDestination(args) {
34
34
  * Reads parent Conversations when this Conversation has no Destination.
35
35
  */
36
36
  async function resolveConversationRouting(args) {
37
- const conversationStore = args.conversationStore ?? (await import("./viewer-DsyM9kb9.js").then((n) => n.s)).getConversationStore();
37
+ const conversationStore = args.conversationStore ?? (await import("./viewer-DF3HTfW5.js").then((n) => n.s)).getConversationStore();
38
38
  const chain = await loadConversationChain(args.conversationId, conversationStore);
39
39
  let destination;
40
40
  let source;
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { n as pluginCatalogRuntime } from "./catalog-runtime-BzNg07bb.js";
2
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-xq-njrMs.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.238.0";
2
+ var version = "0.238.1";
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-Chc6bVG5.js";
1
+ import { t as JUNIOR_VERSION } from "./version-Dayi_ng2.js";
2
2
  export { JUNIOR_VERSION };
@@ -1,9 +1,9 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { F as normalizeIdentityEmail } from "./logging-BNi_jyHb.js";
3
- import { i as getChatConfig } from "./config-DRw358bB.js";
2
+ import { F as normalizeIdentityEmail } from "./logging-Bne7JUXI.js";
3
+ import { i as getChatConfig } from "./config-CGK_VplU.js";
4
4
  import { d as parseSlackTeamId, o as parseActorUserId, u as parseSlackChannelReferenceId } from "./actor-BTtLaeWy.js";
5
5
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
6
- import { D as juniorConversations, E as conversationReadColumns, O as juniorIdentities, S as juniorConversationAnnotations, b as juniorConversationEvents, g as juniorConversationBindings, h as juniorConversationParticipants, k as juniorUsers, t as createJuniorSqlExecutor, v as CONVERSATION_METRICS, y as juniorConversationMetrics } from "./executor-DgPk8Lsx.js";
6
+ import { D as juniorConversations, E as conversationReadColumns, O as juniorIdentities, S as juniorConversationAnnotations, b as juniorConversationEvents, g as juniorConversationBindings, h as juniorConversationParticipants, k as juniorUsers, t as createJuniorSqlExecutor, v as CONVERSATION_METRICS, y as juniorConversationMetrics } from "./executor-DmIad4GI.js";
7
7
  import { c as newConversationEventSchema, l as encodeHistoryPayload, m as usageSchema, o as decodeStoredConversationEvent, r as conversationEventDataSchema, s as historyReplacementSchema } from "./history-BLTUgFYO.js";
8
8
  import { randomUUID } from "node:crypto";
9
9
  import { and, asc, desc, eq, gt, gte, inArray, isNull, lt, lte, ne, or, sql } from "drizzle-orm";
@@ -1,9 +1,9 @@
1
- import { Bt as ensureConversationWake, Xt as requestConversationWork } from "./agent-runner-ZS1LHtSR.js";
2
- import { c as getConversationEventStore } from "./viewer-DsyM9kb9.js";
3
- import { n as loadTurnCheckpoint, o as failTurnRecord, s as getTurnRecord } from "./checkpoint-DWGyJg4c.js";
4
- import { w as getStateAdapter } from "./profile-C2TScny6.js";
5
- import { a as getVercelConversationWorkQueue } from "./job-queue-BL9stv_E.js";
6
- import { n as resolveTurnSessionRouting } from "./turn-session-routing-QjNvsevm.js";
1
+ import { Bt as ensureConversationWake, Xt as requestConversationWork } from "./agent-runner-DjQSEVuD.js";
2
+ import { c as getConversationEventStore } from "./viewer-DF3HTfW5.js";
3
+ import { n as loadTurnCheckpoint, o as failTurnRecord, s as getTurnRecord } from "./checkpoint-C37Xgtj-.js";
4
+ import { w as getStateAdapter } from "./profile-DIcHBAxe.js";
5
+ import { a as getVercelConversationWorkQueue } from "./job-queue-CXpx6KfD.js";
6
+ import { n as resolveTurnSessionRouting } from "./turn-session-routing-cMvumCLK.js";
7
7
  import { z } from "zod";
8
8
  import { randomUUID } from "node:crypto";
9
9
  //#region src/chat/task-execution/authorized-turn.ts
@@ -1,34 +1,34 @@
1
- import { $ as eventAutomationBelongsToUser, A as resolveSlackChannelIdFromMessage, B as parseScheduledAutomationRow, C as renderBlockText, Cn as normalizeSlackReplyMarkdown, Ct as timerWatchCredentialSubject, D as storeAttachment, Dn as addReactionToMessage, En as truncateStatusText, Et as pluginEventCatalog, F as lookupSlackUser, G as withScheduledAutomationLock, Ht as getConversationWorkState, J as eventAutomationTriggerAvailable, Ln as AuthorizationFlowDisabledError, M as getConversationInfo, Mn as createUserTokenStore, N as listThreadReplies, Nn as buildSteeringPiMessage, O as parseSlackThreadId, On as postSlackMessage, Ot as appendAndEnqueueExclusiveInboundMessage, Pn as RetryableDeliveryError, Q as deleteEventAutomation, Rn as shouldEmitDevAgentTrace, S as renderAttachmentText, Sn as formatSlackLink, St as isEventMailboxMetadata, U as saveScheduledAutomationInLock, V as readScheduledAutomation, Y as effectiveTaskOutcomes, a as buildAuthPauseResponse, h as latestProgressStatus, j as resolveSlackChannelIdFromThreadId, k as readSlackRawMessageContext, kn as removeReactionFromMessage, kt as appendAndEnqueueInboundMessage, lt as sameDefinitionValue, m as PluginCredentialFailureError, n as executeAgentRun, nt as listDeletedEventAutomationsCreatedBy, on as maybePostAutomatedTurnLimitNotice, ot as automationDefinition, r as createContextCompactor, rt as parseEventAutomationRow, sn as recordFinishedTurnForAutomatedLimit, st as listAutomationVersions, t as createAgentRunner, tt as getEventAutomation, wn as normalizeSlackStatusText, wt as getEventCatalog, xn as escapeSlackMrkdwnText, xt as EVENT_WAIT_MS } from "./agent-runner-ZS1LHtSR.js";
2
- import { f as escapeXml, i as completeText, r as completeObject, v as isProviderRetryError } from "./client-CKs0rj3A.js";
3
- import { C as withLogContext, I as isRecord, L as toOptionalNumber, R as toOptionalString, _ as setSentryUser, b as setTags, d as logException, f as logInfo, n as createChatSdkLogger, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, u as logError, v as setSpanAttributes, w as withSpan } from "./logging-BNi_jyHb.js";
4
- import { c as getSlackClientSecret, i as getChatConfig, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, s as getSlackClientId, v as normalizeSlackEmojiName } from "./config-DRw358bB.js";
1
+ import { $ as eventAutomationBelongsToUser, A as resolveSlackChannelIdFromMessage, B as parseScheduledAutomationRow, C as renderBlockText, Cn as normalizeSlackReplyMarkdown, Ct as timerWatchCredentialSubject, D as storeAttachment, Dn as addReactionToMessage, En as truncateStatusText, Et as pluginEventCatalog, F as lookupSlackUser, G as withScheduledAutomationLock, Ht as getConversationWorkState, J as eventAutomationTriggerAvailable, Ln as AuthorizationFlowDisabledError, M as getConversationInfo, Mn as createUserTokenStore, N as listThreadReplies, Nn as buildSteeringPiMessage, O as parseSlackThreadId, On as postSlackMessage, Ot as appendAndEnqueueExclusiveInboundMessage, Pn as RetryableDeliveryError, Q as deleteEventAutomation, Rn as shouldEmitDevAgentTrace, S as renderAttachmentText, Sn as formatSlackLink, St as isEventMailboxMetadata, U as saveScheduledAutomationInLock, V as readScheduledAutomation, Y as effectiveTaskOutcomes, a as buildAuthPauseResponse, h as latestProgressStatus, j as resolveSlackChannelIdFromThreadId, k as readSlackRawMessageContext, kn as removeReactionFromMessage, kt as appendAndEnqueueInboundMessage, lt as sameDefinitionValue, m as PluginCredentialFailureError, n as executeAgentRun, nt as listDeletedEventAutomationsCreatedBy, on as maybePostAutomatedTurnLimitNotice, ot as automationDefinition, r as createContextCompactor, rt as parseEventAutomationRow, sn as recordFinishedTurnForAutomatedLimit, st as listAutomationVersions, t as createAgentRunner, tt as getEventAutomation, wn as normalizeSlackStatusText, wt as getEventCatalog, xn as escapeSlackMrkdwnText, xt as EVENT_WAIT_MS } from "./agent-runner-DjQSEVuD.js";
2
+ import { f as escapeXml, i as completeText, r as completeObject, v as isProviderRetryError } from "./client-BZdqKg6S.js";
3
+ import { C as withLogContext, I as isRecord, L as toOptionalNumber, R as toOptionalString, _ as setSentryUser, b as setTags, d as logException, f as logInfo, n as createChatSdkLogger, o as getActiveTraceId, p as logWarn, t as buildTurnFailureResponse, u as logError, v as setSpanAttributes, w as withSpan } from "./logging-Bne7JUXI.js";
4
+ import { c as getSlackClientSecret, i as getChatConfig, l as getSlackSigningSecret, n as botConfig, o as getSlackBotToken, s as getSlackClientId, v as normalizeSlackEmojiName } from "./config-CGK_VplU.js";
5
5
  import { o as modelIdForProfile, r as defaultModelId } from "./model-profile-BwU8mqwD.js";
6
6
  import { a as isUserActor, g as parseSlackMessageTs, i as isActorUserId, l as parseSlackChannelId, n as createSlackActor, o as parseActorUserId, r as createSlackResumeActor, t as createActor } from "./actor-BTtLaeWy.js";
7
- import { N as requireSlackDestination, c as getConversationEventStore, d as getDb, f as getSqlExecutor, j as createSlackDestination, u as getConversationStore } from "./viewer-DsyM9kb9.js";
7
+ import { N as requireSlackDestination, c as getConversationEventStore, d as getDb, f as getSqlExecutor, j as createSlackDestination, u as getConversationStore } from "./viewer-DF3HTfW5.js";
8
8
  import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
9
- import { O as juniorIdentities, c as juniorAutomationExecutions, k as juniorUsers, o as juniorSchedulerTasks, u as juniorEventAutomations } from "./executor-DgPk8Lsx.js";
9
+ import { O as juniorIdentities, c as juniorAutomationExecutions, k as juniorUsers, o as juniorSchedulerTasks, u as juniorEventAutomations } from "./executor-DmIad4GI.js";
10
10
  import { f as instructionProvenanceFor } from "./history-BLTUgFYO.js";
11
- import { d as credentialContextForActor } from "./registry-D1RsbgDb.js";
12
- import { $ as resolveConversationTitle, A as commitAcceptedReply, G as recordSubscribedReplyRoute, N as loadConversationProjection, O as trimTrailingAssistantMessages, P as loadProjection, Q as persistConversationMessageSummaries, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, a as completeTurnRecord, at as createConversationMemoryService, c as listTurnSummaries, ct as isHumanConversationMessage, dt as recordDeliveredAssistantMessage, ft as turnHasReply, i as abandonTurnRecord, it as buildConversationContext, j as commitMessages, l as recordTurnSummary, lt as markConversationMessage, n as loadTurnCheckpoint, o as failTurnRecord, ot as estimateConversationContextTokens, p as buildTurnErrorResponse, pt as upsertConversationMessage, r as saveTurnCheckpoint, rt as appendThreadContextMessages, s as getTurnRecord, st as getConversationMessageSlackTs, tt as fallbackShortTitle, u as persistWithRetry, ut as normalizeConversationText } from "./checkpoint-DWGyJg4c.js";
13
- import { Ft as getSlackFileId, Lt as readAttachmentVisionSummary, Pt as buildSentryConversationUrl, Rt as recordSlackAttachment, at as getSlackClient, ct as normalizeSlackConversationId, et as verifyTimerWatchCredentialSubject, ht as getDashboardObjectIconLink, it as getHeaderString, lt as runWithSlackInstallationToken, mt as getDashboardConversationLink, nt as downloadPrivateSlackFile, o as getPluginSlackConversationLink, pt as JUNIOR_THREAD_STATE_TTL_MS, st as isDmChannel, tt as SlackActionError, z as cancelSubscriptions } from "./agent-hooks-CxdSqU2u.js";
11
+ import { d as credentialContextForActor } from "./registry-VSrEYeaD.js";
12
+ import { $ as resolveConversationTitle, A as commitAcceptedReply, G as recordSubscribedReplyRoute, N as loadConversationProjection, O as trimTrailingAssistantMessages, P as loadProjection, Q as persistConversationMessageSummaries, V as recordAuthorizationCompleted, X as persistConversationMessages, Y as hydrateConversationMessages, a as completeTurnRecord, at as createConversationMemoryService, c as listTurnSummaries, ct as isHumanConversationMessage, dt as recordDeliveredAssistantMessage, ft as turnHasReply, i as abandonTurnRecord, it as buildConversationContext, j as commitMessages, l as recordTurnSummary, lt as markConversationMessage, n as loadTurnCheckpoint, o as failTurnRecord, ot as estimateConversationContextTokens, p as buildTurnErrorResponse, pt as upsertConversationMessage, r as saveTurnCheckpoint, rt as appendThreadContextMessages, s as getTurnRecord, st as getConversationMessageSlackTs, tt as fallbackShortTitle, u as persistWithRetry, ut as normalizeConversationText } from "./checkpoint-C37Xgtj-.js";
13
+ import { Ft as getSlackFileId, Lt as readAttachmentVisionSummary, Pt as buildSentryConversationUrl, Rt as recordSlackAttachment, at as getSlackClient, ct as normalizeSlackConversationId, et as verifyTimerWatchCredentialSubject, ht as getDashboardObjectIconLink, it as getHeaderString, lt as runWithSlackInstallationToken, mt as getDashboardConversationLink, nt as downloadPrivateSlackFile, o as getPluginSlackConversationLink, pt as JUNIOR_THREAD_STATE_TTL_MS, st as isDmChannel, tt as SlackActionError, z as cancelSubscriptions } from "./agent-hooks-p3UA9FI1.js";
14
14
  import { F as isVisionImageMediaType, N as readMessageAttachments } from "./conversation-DwD-vquD.js";
15
- import { E as acquireActiveLock, O as withLock, T as MUTATION_LOCK_TTL_MS, w as getStateAdapter } from "./profile-C2TScny6.js";
16
- import { a as wasPendingAuthStopped, c as getThreadStopDecision, l as buildDeterministicAssistantMessageId, o as decideSubscribedThreadReply, r as clearPendingAuth, s as getSubscribedReplyPreflightDecision, u as buildDeterministicTurnId } from "./pending-auth-DulDjfwL.js";
17
- import { _ as markTurnFailed, c as CooperativeTurnYieldError, d as getConversationTurnBoundaryError, f as isCooperativeTurnYieldError, g as markTurnCompleted, h as markTurnClosed, l as TurnInputCommitLostError, m as isTurnInputDeferredError, p as isTurnInputCommitLostError, r as getAssistantReplyText, s as ConversationTurnBoundaryError, u as TurnInputDeferredError, v as startActiveTurn } from "./oauth-authorization-Zv1oLB1J.js";
15
+ import { E as acquireActiveLock, O as withLock, T as MUTATION_LOCK_TTL_MS, w as getStateAdapter } from "./profile-DIcHBAxe.js";
16
+ import { a as wasPendingAuthStopped, c as getThreadStopDecision, l as buildDeterministicAssistantMessageId, o as decideSubscribedThreadReply, r as clearPendingAuth, s as getSubscribedReplyPreflightDecision, u as buildDeterministicTurnId } from "./pending-auth-C6w4Gwve.js";
17
+ import { _ as markTurnFailed, c as CooperativeTurnYieldError, d as getConversationTurnBoundaryError, f as isCooperativeTurnYieldError, g as markTurnCompleted, h as markTurnClosed, l as TurnInputCommitLostError, m as isTurnInputDeferredError, p as isTurnInputCommitLostError, r as getAssistantReplyText, s as ConversationTurnBoundaryError, u as TurnInputDeferredError, v as startActiveTurn } from "./oauth-authorization-O8N3knp9.js";
18
18
  import { a as EVENT_SYSTEM_ACTOR, i as EVENT_MESSAGE_AUTHOR, o as isEventConversationMessage } from "./prompt-CMU-B4FA.js";
19
- import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline } from "./job-queue-BL9stv_E.js";
19
+ import { a as getVercelConversationWorkQueue, f as getTurnRequestDeadline } from "./job-queue-CXpx6KfD.js";
20
20
  import { l as automationListQuerySchema } from "./automation-CrQGQ2MT.js";
21
21
  import { r as isExperimentalFeatureEnabled } from "./experimental-Qn9rKLgx.js";
22
22
  import { c as sumUtcHoursIntoSixHours, m as healthReportSchema, t as webMessageId } from "./web-message-id-xPI_EFSC.js";
23
- import { C as readAutomationExecutionStatusDays, D as readAutomationRuns, E as readAutomationExecutions, S as readAutomationExecutionHours, T as readAutomationExecutionSummaries, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, b as readAutomationExecutionByConversationId, c as getDispatchInputMessageId, f as isTerminalDispatchStatus, g as markDispatchCompleted, h as markDispatchBlocked, i as claimDispatchMailboxAppend, l as getDispatchRecord, m as markDispatchAwaitingResume, n as scheduleSessionCompletedPluginTasks, s as getDispatchConversationId, t as processPluginTask, u as getDispatchTurnId, v as markDispatchRunning, w as readAutomationExecutionStatusHours, x as readAutomationExecutionDays, y as emptyAutomationRunWindows } from "./task-runner-CDoZCo8g.js";
24
- import { i as resolveAgentInvocationId, o as AgentRunError, s as executeTurn, t as createAgentInvocationWorker } from "./work-CeiA_ZxD.js";
25
- import { n as getTurnLifecycle, t as ConversationTurnLifecycleService } from "./turn-lifecycle-ByhUHYjD.js";
26
- import { a as persistThreadState, c as configValueSchema, i as persistThreadRuntimeState, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-B-t88gH0.js";
27
- import { a as getPausedTurnRequest, c as getTurnAuthorization, i as createPausedTurns, n as deleteWebAuthorization, s as wakePausedTurn, t as createWebAuthorization } from "./web-authorization-Enb5lVYt.js";
28
- import { n as resolveTurnSessionRouting } from "./turn-session-routing-QjNvsevm.js";
29
- import { t as bindSpawnAgent } from "./spawn-PtyOnoXt.js";
30
- import { a as persistAuthPauseTurnState, c as getTurnUserSlackMessageTs, d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, n as getAgentTurnDiagnosticsAttributes, o as getTurnUserMessage, r as requireTurnFailureEventId, s as getTurnUserReplyAttachmentContext, t as finalizeFailedTurnReplyWithEvent, u as getInterruptionMarker } from "./turn-failure-response-di4Jx90o.js";
31
- import { r as storeInputImages } from "./images-puyEuXoY.js";
23
+ import { C as readAutomationExecutionStatusDays, D as readAutomationRuns, E as readAutomationExecutions, S as readAutomationExecutionHours, T as readAutomationExecutionSummaries, _ as markDispatchFailed, a as confirmDispatchMailboxAppend, b as readAutomationExecutionByConversationId, c as getDispatchInputMessageId, f as isTerminalDispatchStatus, g as markDispatchCompleted, h as markDispatchBlocked, i as claimDispatchMailboxAppend, l as getDispatchRecord, m as markDispatchAwaitingResume, n as scheduleSessionCompletedPluginTasks, s as getDispatchConversationId, t as processPluginTask, u as getDispatchTurnId, v as markDispatchRunning, w as readAutomationExecutionStatusHours, x as readAutomationExecutionDays, y as emptyAutomationRunWindows } from "./task-runner-BZUoctJ1.js";
24
+ import { i as resolveAgentInvocationId, o as AgentRunError, s as executeTurn, t as createAgentInvocationWorker } from "./work-BbcghZZp.js";
25
+ import { n as getTurnLifecycle, t as ConversationTurnLifecycleService } from "./turn-lifecycle-D49hJbjm.js";
26
+ import { a as persistThreadState, c as configValueSchema, i as persistThreadRuntimeState, n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState, s as coerceThreadConversationState, t as getLocationConfigurationService } from "./thread-state-SnFcB9Rk.js";
27
+ import { a as getPausedTurnRequest, c as getTurnAuthorization, i as createPausedTurns, n as deleteWebAuthorization, s as wakePausedTurn, t as createWebAuthorization } from "./web-authorization-Dg_R1tMc.js";
28
+ import { n as resolveTurnSessionRouting } from "./turn-session-routing-cMvumCLK.js";
29
+ import { t as bindSpawnAgent } from "./spawn-CY34_HCm.js";
30
+ import { a as persistAuthPauseTurnState, c as getTurnUserSlackMessageTs, d as loadPendingMessageCards, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, n as getAgentTurnDiagnosticsAttributes, o as getTurnUserMessage, r as requireTurnFailureEventId, s as getTurnUserReplyAttachmentContext, t as finalizeFailedTurnReplyWithEvent, u as getInterruptionMarker } from "./turn-failure-response-CrSc1Vtn.js";
31
+ import { r as storeInputImages } from "./images-1xUjTHGf.js";
32
32
  import { z } from "zod";
33
33
  import { createHash } from "node:crypto";
34
34
  import { and, asc, count, desc, eq, exists, inArray, ne, or, sql } from "drizzle-orm";
@@ -1,11 +1,11 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { Ln as AuthorizationFlowDisabledError, _t as AgentInvocationLimitError, gt as AgentInvocationBusyError, ht as createAgentInvocationSchema, kt as appendAndEnqueueInboundMessage, m as PluginCredentialFailureError, mt as agentInvocationSchema, pt as agentBindingSchema } from "./agent-runner-ZS1LHtSR.js";
3
- import { c as getConversationEventStore, f as getSqlExecutor, u as getConversationStore } from "./viewer-DsyM9kb9.js";
4
- import { m as juniorAgentInvocations, p as juniorAgentBindings } from "./executor-DgPk8Lsx.js";
5
- import { L as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-DWGyJg4c.js";
6
- import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-Zv1oLB1J.js";
7
- import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-ByhUHYjD.js";
8
- import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-B-t88gH0.js";
2
+ import { Ln as AuthorizationFlowDisabledError, _t as AgentInvocationLimitError, gt as AgentInvocationBusyError, ht as createAgentInvocationSchema, kt as appendAndEnqueueInboundMessage, m as PluginCredentialFailureError, mt as agentInvocationSchema, pt as agentBindingSchema } from "./agent-runner-DjQSEVuD.js";
3
+ import { c as getConversationEventStore, f as getSqlExecutor, u as getConversationStore } from "./viewer-DF3HTfW5.js";
4
+ import { m as juniorAgentInvocations, p as juniorAgentBindings } from "./executor-DmIad4GI.js";
5
+ import { L as openConversationProjection, _ as getTerminalAssistantMessages, o as failTurnRecord, r as saveTurnCheckpoint, s as getTurnRecord } from "./checkpoint-C37Xgtj-.js";
6
+ import { d as getConversationTurnBoundaryError, l as TurnInputCommitLostError, p as isTurnInputCommitLostError, r as getAssistantReplyText } from "./oauth-authorization-O8N3knp9.js";
7
+ import { t as ConversationTurnLifecycleService } from "./turn-lifecycle-D49hJbjm.js";
8
+ import { n as getPersistedSandboxState, o as persistThreadStateById, r as getPersistedThreadState } from "./thread-state-SnFcB9Rk.js";
9
9
  import { z } from "zod";
10
10
  import { createHash } from "node:crypto";
11
11
  import { and, asc, count, eq, inArray } from "drizzle-orm";
@@ -1,9 +1,9 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
2
- import { At as beginConversationResume, Bt as ensureConversationWake, Dt as ackMessages, Ft as completeConversationStop, Gt as recordAttemptFailure, Ht as getConversationWorkState, It as completeConversationWork, Kt as recordConversationRetry, Lt as countPendingConversationMessages, Mt as checkInConversationWork, Nt as clearConsumedConversationWake, Rt as deadLetterAttempt, Yt as requestAnotherSlice, Zt as startConversationWork, in as isInvalidConversationRecordError, qt as releaseConversationWork, rn as isFinalAttempt, tn as hasConversationStop, zt as drainConversationMailbox } from "./agent-runner-ZS1LHtSR.js";
3
- import { v as isProviderRetryError } from "./client-CKs0rj3A.js";
4
- import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-BNi_jyHb.js";
5
- import { i as getChatConfig } from "./config-DRw358bB.js";
6
- import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-BL9stv_E.js";
2
+ import { At as beginConversationResume, Bt as ensureConversationWake, Dt as ackMessages, Ft as completeConversationStop, Gt as recordAttemptFailure, Ht as getConversationWorkState, It as completeConversationWork, Kt as recordConversationRetry, Lt as countPendingConversationMessages, Mt as checkInConversationWork, Nt as clearConsumedConversationWake, Rt as deadLetterAttempt, Yt as requestAnotherSlice, Zt as startConversationWork, in as isInvalidConversationRecordError, qt as releaseConversationWork, rn as isFinalAttempt, tn as hasConversationStop, zt as drainConversationMailbox } from "./agent-runner-DjQSEVuD.js";
3
+ import { v as isProviderRetryError } from "./client-BZdqKg6S.js";
4
+ import { C as withLogContext, d as logException, f as logInfo, p as logWarn } from "./logging-Bne7JUXI.js";
5
+ import { i as getChatConfig } from "./config-CGK_VplU.js";
6
+ import { f as getTurnRequestDeadline, m as ConversationQueueMessageRejectedError } from "./job-queue-CXpx6KfD.js";
7
7
  //#region src/chat/task-execution/worker.ts
8
8
  var worker_exports = /* @__PURE__ */ __exportAll({
9
9
  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.238.0",
3
+ "version": "0.238.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -87,7 +87,7 @@
87
87
  "pg": "^8.16.3",
88
88
  "yaml": "^2.9.0",
89
89
  "zod": "^4.5.4",
90
- "@sentry/junior-plugin-api": "0.238.0"
90
+ "@sentry/junior-plugin-api": "0.238.1"
91
91
  },
92
92
  "devDependencies": {
93
93
  "@emnapi/core": "^1.10.0",
@@ -106,9 +106,9 @@
106
106
  "typescript": "^6.0.3",
107
107
  "vercel": "^54.4.0",
108
108
  "vitest": "^4.1.7",
109
- "@sentry/junior-github": "0.238.0",
110
- "@sentry/junior-memory": "0.238.0",
111
- "@sentry/junior-testing": "0.0.0"
109
+ "@sentry/junior-github": "0.238.1",
110
+ "@sentry/junior-testing": "0.0.0",
111
+ "@sentry/junior-memory": "0.238.1"
112
112
  },
113
113
  "scripts": {
114
114
  "build": "tsdown",