@sentry/junior 0.320.0 → 0.321.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/{adapter-DlLLoJKj.js → adapter-BkDQYdg6.js} +1 -1
  2. package/dist/{admin-BzRXDVfh.js → admin-XS3G9BOj.js} +1 -1
  3. package/dist/{agent-DxZ7nHfD.js → agent-CL9ZkOgx.js} +20 -17
  4. package/dist/{agent-update-delivery-CO4FU5Gg.js → agent-update-delivery-t0bXEgPs.js} +4 -4
  5. package/dist/api/schema.d.ts +2 -12
  6. package/dist/api/schema.js +4 -4
  7. package/dist/api.js +21 -21
  8. package/dist/{app-CHCFIIDu.d.ts → app-CwFRvmEH.d.ts} +1 -1
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +21 -21
  11. package/dist/{change-record-K-KsqNhT.d.ts → change-record-CRuG9Mu3.d.ts} +1 -6
  12. package/dist/{channel-access-BghWqlXx.js → channel-access-BUHB0saC.js} +1 -1
  13. package/dist/{chat-core-engine-BgfSLrDu.js → chat-core-engine-DuBaPbqK.js} +4 -4
  14. package/dist/cli/chat.js +16 -16
  15. package/dist/cli/check.js +4 -4
  16. package/dist/cli/main.js +2 -2
  17. package/dist/cli/plugins.js +3 -3
  18. package/dist/cli/snapshot-create.js +4 -4
  19. package/dist/cli/upgrade.js +2 -2
  20. package/dist/{continue-in-slack-DBlQP4PC.js → continue-in-slack-D9naZmqM.js} +3 -3
  21. package/dist/{conversation-feed-DEUdD7mb.js → conversation-feed-B1_1NJc8.js} +2 -12
  22. package/dist/{conversation-privacy-qoh95v90.js → conversation-privacy-C0mixZKx.js} +1 -1
  23. package/dist/{create-jZSaDrCR.js → create-CLV0M1vw.js} +2 -2
  24. package/dist/{credential-sync-Bj9-UlNE.js → credential-sync-DL9r-ry5.js} +11 -11
  25. package/dist/{db-BacvswT0.js → db-CbURDbaB.js} +23 -15
  26. package/dist/{deployment-BoJkRPDt.js → deployment-D9uPRDMD.js} +1 -1
  27. package/dist/{engine-context-Bi3Ync5t.js → engine-context-BP0h6u4m.js} +9 -9
  28. package/dist/{html-DW0pw5Pr.js → html-l4hKICAL.js} +4 -4
  29. package/dist/instrumentation.js +2 -2
  30. package/dist/{list-Dz3CdP3g.js → list-cGaO9_Hf.js} +12 -46
  31. package/dist/{logging-DsTnMqyi.js → logging-CqgOoICc.js} +1 -1
  32. package/dist/{markers-C33gNYNE.js → markers-BtUv4-oc.js} +18 -16
  33. package/dist/nitro.d.ts +1 -1
  34. package/dist/nitro.js +2 -2
  35. package/dist/{oauth-callback-server-C-pEhAQK.js → oauth-callback-server-C3GxhsuB.js} +2 -2
  36. package/dist/{oauth-relay-DIXdH-io.js → oauth-relay-BGm6sLCB.js} +1 -1
  37. package/dist/{profile-v9vA3RvH.js → profile-bLo0h7Le.js} +12 -6
  38. package/dist/{prompt-C5CW2wKO.js → prompt-CX29OGO9.js} +1 -1
  39. package/dist/{reports-eBgrhPXS.js → reports-DeDCCu_H.js} +2 -2
  40. package/dist/{resolve-HVXmbeCr.js → resolve-D9RKNH3v.js} +5 -5
  41. package/dist/{result-BPNzgeTl.js → result-BFBwK1M2.js} +7 -7
  42. package/dist/{runner-aNSDTST6.js → runner-DNdoVQg8.js} +7 -7
  43. package/dist/{sandbox-egress-signals-nzp9Ykf7.js → sandbox-egress-signals-BBcCiEhm.js} +1 -1
  44. package/dist/{schema-BlTO5M1d.js → schema-RzsplzdI.js} +2 -2
  45. package/dist/{service-account-DWIf1t6p.js → service-account-B7E7OIFP.js} +2 -2
  46. package/dist/{skills-50izzzdK.js → skills-DMJsS5e4.js} +4 -4
  47. package/dist/{slack-conversation-unfurl-C6jXhVYg.js → slack-conversation-unfurl-EWYTnBZI.js} +7 -7
  48. package/dist/{storage-BtCxXiNt.js → storage-XD0lB4Gk.js} +2 -2
  49. package/dist/{system-prompt-table-CIR1B44Z.js → system-prompt-table-C886lsT9.js} +4 -4
  50. package/dist/{types-BNHkJrOP.js → types-CGgQ3-Bb.js} +1 -9
  51. package/dist/{users-DOVo9sdU.js → users-DBrcQl47.js} +1 -1
  52. package/dist/{validation-CK0vuEHB.js → validation-CofUHWqz.js} +1 -1
  53. package/dist/{version-BuLVNlxB.js → version-D_vbXyNw.js} +1 -1
  54. package/dist/version.js +1 -1
  55. package/dist/{worker-C82kHU1R.js → worker-buhFcpl9.js} +4 -4
  56. package/package.json +6 -6
package/dist/app.js CHANGED
@@ -1,28 +1,28 @@
1
- import { C as parseActorUserId, E as parseSlackChannelId, F as slackMessageTsFromMs, G as loadConfig, I as slackMessageTsSchema, K as parseEnvList, L as botConfig, M as slackTeamIdSchema, P as parseSlackMessageTs, R as getChatConfig, W as installChatConfig, i as getStateAdapter, j as slackChannelIdSchema, l as fenceLock, s as MUTATION_LOCK_TTL_MS, u as withLock, v as createSlackActor } from "./adapter-DlLLoJKj.js";
2
- import { $ as canActOnInboxItem, $r as annotationKeyDigest, As as isPublicConversation, Au as embedConversationEvents, Br as verifyConversationQueueMessage, Cl as getDashboardInboxItemLink, Cr as canAddConversationMessages, Ct as inboxItemOwnerConversationId, Di as openSlackModal, Dt as validatePlugins, Ec as recordGoogleSignIn, En as pruneActiveConversation, Ep as juniorConversationEmbeddings, Et as getRegistrations, Fd as installAppContext, Gf as createSlackDestination, Hn as resolveSlackInboxItemCardConversationId, Hr as conversationQueueMessageSchema, Hu as isEventEmbeddingsEnabled, Iu as storeConversationEventLexemes, Jn as parseSlackInboxItemFormTarget, Jr as getQueueProvider, Kn as buildSlackInboxItemModal, Kp as juniorDestinations, Nd as createAppContext, Ni as slackEntitySchema, Nl as projectConversationMessages, O as withConversationMutationLock, Oi as postSlackEphemeralMessage, Ol as getDashboardTaskLink, Op as juniorConversationEvents, Pd as getAppContext, Pi as slackExternalRefIdSchema, Qr as renderSlackObjectCard, Rc as dismissOpenInboxItems, Rn as createInboxItemShow, Rr as getVercelConversationWorkQueue, Si as notifyAutomationBlocked, Sl as getDashboardConversationLink, Sn as hasRunnableConversationWork, Tp as juniorConversationEventEmbeddings, U as conversationIsActiveSql, Un as syncInboxItemSlackCards, Ur as isConversationQueueMessageRejectedError, Ut as appendAndEnqueueInboundMessage, Uu as backfillConversationEmbeddings, Vn as runInboxItemPushTimers, Wc as searchInboxItems, Wf as touchConversationDetail, Wn as findSlackThreadOwnerId, Wu as createConversationEmbedder, Xa as refreshAutomationLastRun, Xc as itemQuestion, Xn as parseSlackUserInputSubmission, Xs as getSlackClient, Zt as clearExpiredConversationLease, _a as withScheduledAutomationLock, a as getDb, an as getConversationWorkState, ar as createVercelPluginTaskCallback, at as inboxItemAddedByAnyAutomation, bi as markDispatchFailed, cp as juniorQuestions, cr as sendVercelPluginTask, da as listScheduledAutomationsForTeam, dc as readActorIdentity, dp as juniorAutomationRuns, dt as inboxItemReaderForUserInConversation, ei as decodeAnnotationRef, ep as juniorTurnOutbox, er as createPluginEventPublisher, es as resumeConversationDelivery, fi as getDispatchRecord, ga as scheduledRunId, gi as listPendingDispatchMailboxAppends, gt as isPluginInboxItem, ha as saveScheduledAutomationInLock, hc as resolveViewerUser, hi as isTerminalDispatchStatus, ho as slackChannelMessageEvent, i as getConversationStore, in as getConversation, ja as automationVersionOf, ju as eventIndexLockKey, kp as juniorTurns, kr as readConversationAccessFromSql, ku as EVENT_INDEX_LOCK_TTL_MS, li as getDispatchConversationId, lr as queueCallback, m as deleteMessageLinks, mp as juniorAutomations, n as getConversationEventStore, ni as verifySlackSignature, nr as getPluginRoutes, o as getSqlExecutor, oc as getWorkspaceTeamId, ol as parseAvatarUrl, pa as readScheduledAutomation, pl as deleteExpiredInboxSnoozes, po as SLACK_EVENT_NAMESPACE, qn as parseSlackInboxItemClick, rn as ensureConversationWake, ro as syncAutomationAlerts, sc as runWithWorkspaceTeamId, si as confirmDispatchMailboxAppend, sn as listActiveConversationIds, ss as subjectKey, ti as runWithSlackInstallation, tp as juniorTurnInbox, tr as getPluginApiRoutes, tt as canAnswerInboxItem, u as isPostgresErrorCode, ut as inboxItemReaderForUser, v as withConversationEventLock, vn as CONVERSATION_WORK_STALE_ENQUEUE_MS, wn as isInvalidConversationRecordError, wp as juniorConversationEventLexemes, wt as inboxItemVisibility, xp as juniorAgentBindings, yc as resolveActorIdentityId, yp as juniorInboxItems, ys as listConversationAnnotations, z as conversationCostOf, za as existingConversationId, zi as slackMention, zn as pushConversationInboxItemsNow, zo as takeDueTimerWatches, zp as juniorConversations, zr as resolveConversationWorkTopic } from "./db-BacvswT0.js";
3
- import { C as withContext, D as GOOGLE_IDENTITY_PROVIDER, T as withSpan, f as logException, k as normalizeIdentityEmail, m as logWarn, n as createRequestContext, p as logInfo, w as withLogContext, y as setSpanAttributes } from "./logging-DsTnMqyi.js";
4
- import { $ as slackInboundMessageId, C as processWorkspaceSnapshotJob, Cn as recordWebConversationActivity, En as collectAttachmentUploadGarbage, F as markConversationRead, Ft as isPublicAddress, Gn as readPublicArtifact, Hn as requestAttachmentDeletion, It as publicAddressLookup, J as getProductionSlackAdapter, K as createProductionConversationWorkOptions, Kn as unpublishedArtifactHeaders, L as deliverInboxItemChange, Q as clearSlackPendingReactions, R as inboxItemChangeRecord, S as createVercelCacheWarmupCallback, T as ingestEvent, Un as parseSlackThreadId, Ut as readConversationRecordFromSql, Wn as publicArtifactHeaders, Z as buildSlackInboundMessage, _t as recordSkippedConversationMessage, ar as readViewerAutomationSummary, at as enqueueAgentDispatch, b as vercelBackgroundCompactionQueue, bn as conversationTurnIdForMessage, cn as startProcessingReaction, dr as effectiveTaskOutcomes, dt as readConversationEventPage, er as ViewerTaskNotFoundError, et as normalizeIncomingSlackThreadId, fn as SubscribedReplyReason, ft as readConversationEventPageAfter, ht as readConversationMessageEventSeq, i as scheduledAutomationRunAttributes, in as bindMessageAgent, kt as readObjectLinkTypes, ln as stripLeadingBotMention, lr as findAutomationSkill, mt as readConversationLastEventSeq, on as createAgentRunner, ot as failStoppedDispatch, pn as getThreadStopDecision, q as createProductionSlackWebhookServices, r as logScheduledAutomationRunSkipped, rr as readViewerAutomationExecutions, sn as bindMessageAuthorIdentityId, sr as readViewerAutomations, st as processPluginTask, t as executeAgentRun, tn as bindSpawnAgent, tt as withNormalizedThreadId, un as parseContent, ur as missingAutomationSkillReason, vt as stopConversation, w as verifyWorkspaceSnapshotJobMessage, wn as webActorFromUser, wt as readLiveAnnotations, x as verifyBackgroundCompactionMessage, xn as createAndEnqueueConversation, y as processBackgroundCompaction, yn as appendAndEnqueueWebMessage, yt as createSlackWebApiStatusSender, z as renderInboxItemMessage, zn as collectAttachmentGarbage } from "./agent-DxZ7nHfD.js";
5
- import { A as createUserTokenStore, C as clearSandboxEgressSignals, D as parseSandboxEgressCredentialToken, P as normalizeSandboxEgressTracePropagationDomains, T as consumeSandboxEgressPermissionDeniedSignal, c as isVercelSandboxEgressRequest, l as proxyVercelSandboxEgressRequest, w as consumeSandboxEgressAuthRequiredSignal } from "./profile-v9vA3RvH.js";
6
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-CK0vuEHB.js";
1
+ import { C as parseActorUserId, E as parseSlackChannelId, F as slackMessageTsFromMs, G as loadConfig, I as slackMessageTsSchema, K as parseEnvList, L as botConfig, M as slackTeamIdSchema, P as parseSlackMessageTs, R as getChatConfig, W as installChatConfig, i as getStateAdapter, j as slackChannelIdSchema, l as fenceLock, s as MUTATION_LOCK_TTL_MS, u as withLock, v as createSlackActor } from "./adapter-BkDQYdg6.js";
2
+ import { $ as canActOnInboxItem, $f as juniorTurnOutbox, $r as annotationKeyDigest, As as isPublicConversation, Au as eventIndexLockKey, Br as verifyConversationQueueMessage, Cp as juniorConversationEventLexemes, Cr as canAddConversationMessages, Ct as inboxItemOwnerConversationId, Di as openSlackModal, Dl as getDashboardTaskLink, Dp as juniorConversationEvents, Dt as validatePlugins, Ec as recordGoogleSignIn, En as pruneActiveConversation, Et as getRegistrations, Fu as storeConversationEventLexemes, Gp as juniorDestinations, Hn as resolveSlackInboxItemCardConversationId, Hr as conversationQueueMessageSchema, Hu as backfillConversationEmbeddings, Jn as parseSlackInboxItemFormTarget, Jr as getQueueProvider, Kn as buildSlackInboxItemModal, Md as createAppContext, Ml as projectConversationMessages, Nd as getAppContext, Ni as slackEntitySchema, O as withConversationMutationLock, Oi as postSlackEphemeralMessage, Op as juniorTurns, Ou as EVENT_INDEX_LOCK_TTL_MS, Pd as installAppContext, Pi as slackExternalRefIdSchema, Qr as renderSlackObjectCard, Rc as dismissOpenInboxItems, Rn as createInboxItemShow, Rp as juniorConversations, Rr as getVercelConversationWorkQueue, Si as notifyAutomationBlocked, Sl as getDashboardInboxItemLink, Sn as hasRunnableConversationWork, Tp as juniorConversationEmbeddings, U as conversationIsActiveSql, Uf as touchConversationDetail, Un as syncInboxItemSlackCards, Ur as isConversationQueueMessageRejectedError, Ut as appendAndEnqueueInboundMessage, Uu as createConversationEmbedder, Vn as runInboxItemPushTimers, Vu as isEventEmbeddingsEnabled, Wc as searchInboxItems, Wf as createSlackDestination, Wn as findSlackThreadOwnerId, Xa as refreshAutomationLastRun, Xn as parseSlackUserInputSubmission, Xs as getSlackClient, Yc as itemQuestion, Zt as clearExpiredConversationLease, _a as withScheduledAutomationLock, a as getDb, al as parseAvatarUrl, an as getConversationWorkState, ar as createVercelPluginTaskCallback, at as inboxItemAddedByAnyAutomation, bi as markDispatchFailed, bp as juniorAgentBindings, cr as sendVercelPluginTask, da as listScheduledAutomationsForTeam, dc as readActorIdentity, dt as inboxItemReaderForUserInConversation, ei as decodeAnnotationRef, ep as juniorTurnInbox, er as createPluginEventPublisher, es as resumeConversationDelivery, fi as getDispatchRecord, fl as deleteExpiredInboxSnoozes, ga as scheduledRunId, gi as listPendingDispatchMailboxAppends, gt as isPluginInboxItem, ha as saveScheduledAutomationInLock, hc as resolveViewerUser, hi as isTerminalDispatchStatus, ho as slackChannelMessageEvent, i as getConversationStore, in as getConversation, ja as automationVersionOf, kr as readConversationAccessFromSql, ku as embedConversationEvents, li as getDispatchConversationId, lr as queueCallback, m as deleteMessageLinks, n as getConversationEventStore, ni as verifySlackSignature, nr as getPluginRoutes, o as getSqlExecutor, oc as getWorkspaceTeamId, pa as readScheduledAutomation, po as SLACK_EVENT_NAMESPACE, pp as juniorAutomations, qn as parseSlackInboxItemClick, rn as ensureConversationWake, ro as syncAutomationAlerts, sc as runWithWorkspaceTeamId, si as confirmDispatchMailboxAppend, sn as listActiveConversationIds, sp as juniorQuestions, ss as subjectKey, ti as runWithSlackInstallation, tr as getPluginApiRoutes, tt as canAnswerInboxItem, u as isPostgresErrorCode, up as juniorAutomationRuns, ut as inboxItemReaderForUser, v as withConversationEventLock, vn as CONVERSATION_WORK_STALE_ENQUEUE_MS, vp as juniorInboxItems, wn as isInvalidConversationRecordError, wp as juniorConversationEventEmbeddings, wt as inboxItemVisibility, xl as getDashboardConversationLink, yc as resolveActorIdentityId, ys as listConversationAnnotations, z as conversationCostOf, za as existingConversationId, zi as slackMention, zn as pushConversationInboxItemsNow, zo as takeDueTimerWatches, zr as resolveConversationWorkTopic } from "./db-CbURDbaB.js";
3
+ import { C as withContext, D as GOOGLE_IDENTITY_PROVIDER, T as withSpan, f as logException, k as normalizeIdentityEmail, m as logWarn, n as createRequestContext, p as logInfo, w as withLogContext, y as setSpanAttributes } from "./logging-CqgOoICc.js";
4
+ import { $ as slackInboundMessageId, C as processWorkspaceSnapshotJob, Cn as recordWebConversationActivity, En as collectAttachmentUploadGarbage, F as markConversationRead, Ft as isPublicAddress, Gn as readPublicArtifact, Hn as requestAttachmentDeletion, It as publicAddressLookup, J as getProductionSlackAdapter, K as createProductionConversationWorkOptions, Kn as unpublishedArtifactHeaders, L as deliverInboxItemChange, Q as clearSlackPendingReactions, R as inboxItemChangeRecord, S as createVercelCacheWarmupCallback, T as ingestEvent, Un as parseSlackThreadId, Ut as readConversationRecordFromSql, Wn as publicArtifactHeaders, Z as buildSlackInboundMessage, _t as recordSkippedConversationMessage, ar as readViewerAutomationSummary, at as enqueueAgentDispatch, b as vercelBackgroundCompactionQueue, bn as conversationTurnIdForMessage, cn as startProcessingReaction, dr as effectiveTaskOutcomes, dt as readConversationEventPage, er as ViewerTaskNotFoundError, et as normalizeIncomingSlackThreadId, fn as SubscribedReplyReason, ft as readConversationEventPageAfter, ht as readConversationMessageEventSeq, i as scheduledAutomationRunAttributes, in as bindMessageAgent, kt as readObjectLinkTypes, ln as stripLeadingBotMention, lr as findAutomationSkill, mt as readConversationLastEventSeq, on as createAgentRunner, ot as failStoppedDispatch, pn as getThreadStopDecision, q as createProductionSlackWebhookServices, r as logScheduledAutomationRunSkipped, rr as readViewerAutomationExecutions, sn as bindMessageAuthorIdentityId, sr as readViewerAutomations, st as processPluginTask, t as executeAgentRun, tn as bindSpawnAgent, tt as withNormalizedThreadId, un as parseContent, ur as missingAutomationSkillReason, vt as stopConversation, w as verifyWorkspaceSnapshotJobMessage, wn as webActorFromUser, wt as readLiveAnnotations, x as verifyBackgroundCompactionMessage, xn as createAndEnqueueConversation, y as processBackgroundCompaction, yn as appendAndEnqueueWebMessage, yt as createSlackWebApiStatusSender, z as renderInboxItemMessage, zn as collectAttachmentGarbage } from "./agent-CL9ZkOgx.js";
5
+ import { A as createUserTokenStore, C as clearSandboxEgressSignals, D as parseSandboxEgressCredentialToken, P as normalizeSandboxEgressTracePropagationDomains, T as consumeSandboxEgressPermissionDeniedSignal, c as isVercelSandboxEgressRequest, l as proxyVercelSandboxEgressRequest, w as consumeSandboxEgressAuthRequiredSignal } from "./profile-bLo0h7Le.js";
6
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-CofUHWqz.js";
7
7
  import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-D_Ru4CWc.js";
8
- import { $ as reviewItemChange, B as mcpIdempotencyKeySchema, F as mcpAuthorizationSchema$1, G as readMcpPendingWork, H as mcpMessageTextSchema, I as mcpConversation, K as readMcpPendingWorkAfterSend, L as mcpConversationIdSchema, P as mcpAcceptedMessageSchema, Q as readInboxItemForUser, R as mcpConversationSchema, U as mcpMessages, V as mcpMessageSchema, W as mcpPendingMessagesSchema, X as actOnInboxItem, Y as InboxItemActionError, Z as closeInboxItemsAnsweredByReply, _ as createConversationForViewer, _t as backfillCacheWarmingGaps, a as resolveInboxItemSubjects, b as encodeConversationCursor, ct as listOpenAutomationQuestions, dt as getScheduledAutomationDispatch, et as createEventAppPublisher, ft as runInboxSnoozeTimers, g as appendConversationMessageForViewer, ht as runSavingsRefillSlice, lt as createHeartbeatContext, n as readConversationFeed, nt as runAutoArchiveSweep, o as readConversationDetail, ot as automationReplyAttribution, st as settleEventAutomationRuns, tt as ingestEventAutomations, ut as dispatchScheduledAutomation, vt as GET$4, w as conversationOperations, y as decodeConversationCursor, z as mcpCursorSchema } from "./list-Dz3CdP3g.js";
9
- import { Bn as appendConversationMessages, F as getAuthPausedConversationTurnId, Kn as settleConversationTitleWork, Z as coerceThreadConversationState, ft as findTrustedUser, ht as parseEmail, jt as renderTaskInput, mt as isTrustedSlackAuthor, pt as isAllowedDomain, un as isExperimentalFeatureEnabled } from "./markers-C33gNYNE.js";
10
- import { Bt as annotationCard, Kt as automationCardStatus, On as automationTaskSchema, Pn as getNextRunAtMs, _ as automationListQuerySchema, in as scheduledRunSchema, kn as automationTaskText, p as automationExecutionStatusSchema, pn as inboxItemQuestion, vn as buttonUserInputField } from "./types-BNHkJrOP.js";
11
- import { t as createEndStoppedChildWork } from "./result-BPNzgeTl.js";
12
- import { h as createPluginLogger } from "./prompt-C5CW2wKO.js";
13
- import { n as getAttachmentStorage } from "./storage-BtCxXiNt.js";
8
+ import { $ as reviewItemChange, B as mcpIdempotencyKeySchema, F as mcpAuthorizationSchema$1, G as readMcpPendingWork, H as mcpMessageTextSchema, I as mcpConversation, K as readMcpPendingWorkAfterSend, L as mcpConversationIdSchema, P as mcpAcceptedMessageSchema, Q as readInboxItemForUser, R as mcpConversationSchema, U as mcpMessages, V as mcpMessageSchema, W as mcpPendingMessagesSchema, X as actOnInboxItem, Y as InboxItemActionError, Z as closeInboxItemsAnsweredByReply, _ as createConversationForViewer, _t as backfillCacheWarmingGaps, a as resolveInboxItemSubjects, b as encodeConversationCursor, ct as listOpenAutomationQuestions, dt as getScheduledAutomationDispatch, et as createEventAppPublisher, ft as runInboxSnoozeTimers, g as appendConversationMessageForViewer, ht as runSavingsRefillSlice, lt as createHeartbeatContext, n as readConversationFeed, nt as runAutoArchiveSweep, o as readConversationDetail, ot as automationReplyAttribution, st as settleEventAutomationRuns, tt as ingestEventAutomations, ut as dispatchScheduledAutomation, vt as GET$4, w as conversationOperations, y as decodeConversationCursor, z as mcpCursorSchema } from "./list-cGaO9_Hf.js";
9
+ import { Bn as appendConversationMessages, F as getAuthPausedConversationTurnId, Kn as settleConversationTitleWork, Z as coerceThreadConversationState, ft as findTrustedUser, ht as parseEmail, jt as renderTaskInput, mt as isTrustedSlackAuthor, pt as isAllowedDomain, un as isExperimentalFeatureEnabled } from "./markers-BtUv4-oc.js";
10
+ import { Bt as annotationCard, Dn as automationTaskSchema, Kt as automationCardStatus, Nn as getNextRunAtMs, On as automationTaskText, _ as automationListQuerySchema, _n as buttonUserInputField, in as scheduledRunSchema, p as automationExecutionStatusSchema, pn as inboxItemQuestion } from "./types-CGgQ3-Bb.js";
11
+ import { t as createEndStoppedChildWork } from "./result-BFBwK1M2.js";
12
+ import { h as createPluginLogger } from "./prompt-CX29OGO9.js";
13
+ import { n as getAttachmentStorage } from "./storage-XD0lB4Gk.js";
14
14
  import { i as getActiveSpan, u as sentry_exports } from "./sentry-CPbZjomA.js";
15
- import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-Bj9-UlNE.js";
15
+ import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-DL9r-ry5.js";
16
16
  import { t as nameRequestRoute } from "./sentry-route-name-C6EIzAGP.js";
17
17
  import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
18
- import { a as resolveSlackActingUser, i as unfurlDashboardConversationLinks, n as handleSlackContinueHereClick, o as isSlackWorkspaceMember, s as slackWorkspaceBotId, t as SLACK_CONTINUE_HERE_ACTION_ID } from "./slack-conversation-unfurl-C6jXhVYg.js";
19
- import { l as unlinkProvider, n as renderHtmlPage, r as requestHasSameOrigin, t as escapeHtml } from "./html-DW0pw5Pr.js";
20
- import { s as joinPublicChannel } from "./channel-access-BghWqlXx.js";
21
- import { a as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, c as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, d as JUNIOR_TURN_ENDED_CALLBACK_ROUTE, f as JUNIOR_TURN_STEP_CALLBACK_ROUTE, i as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, n as JUNIOR_AUTO_ARCHIVE_ROUTE, p as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, r as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./deployment-BoJkRPDt.js";
22
- import { t as processConversationWork } from "./worker-C82kHU1R.js";
23
- import { a as createGatewayModelClient, c as findStalledTurns, d as countMetric, f as withSpan$1, i as turnTools, l as publishTurnEnded, n as createDeploymentDelivery, o as turnStepConsumer, r as turnEndedConsumer, t as createEngineContext, u as publishTurnStep } from "./engine-context-Bi3Ync5t.js";
24
- import { t as JUNIOR_VERSION } from "./version-BuLVNlxB.js";
25
- import { D as conversationPendingMessageDeliverySchema, f as conversationTitleSchema, t as conversationFeedQuerySchema } from "./conversation-feed-DEUdD7mb.js";
18
+ import { a as resolveSlackActingUser, i as unfurlDashboardConversationLinks, n as handleSlackContinueHereClick, o as isSlackWorkspaceMember, s as slackWorkspaceBotId, t as SLACK_CONTINUE_HERE_ACTION_ID } from "./slack-conversation-unfurl-EWYTnBZI.js";
19
+ import { l as unlinkProvider, n as renderHtmlPage, r as requestHasSameOrigin, t as escapeHtml } from "./html-l4hKICAL.js";
20
+ import { s as joinPublicChannel } from "./channel-access-BUHB0saC.js";
21
+ import { a as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, c as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, d as JUNIOR_TURN_ENDED_CALLBACK_ROUTE, f as JUNIOR_TURN_STEP_CALLBACK_ROUTE, i as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, n as JUNIOR_AUTO_ARCHIVE_ROUTE, p as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, r as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./deployment-D9uPRDMD.js";
22
+ import { t as processConversationWork } from "./worker-buhFcpl9.js";
23
+ import { a as createGatewayModelClient, c as findStalledTurns, d as countMetric, f as withSpan$1, i as turnTools, l as publishTurnEnded, n as createDeploymentDelivery, o as turnStepConsumer, r as turnEndedConsumer, t as createEngineContext, u as publishTurnStep } from "./engine-context-BP0h6u4m.js";
24
+ import { t as JUNIOR_VERSION } from "./version-D_vbXyNw.js";
25
+ import { D as conversationPendingMessageDeliverySchema, f as conversationTitleSchema, t as conversationFeedQuerySchema } from "./conversation-feed-B1_1NJc8.js";
26
26
  import { t as isMissingVirtualModule } from "./virtual-module-BeKA_EII.js";
27
27
  import { createRequire } from "node:module";
28
28
  import { Hono } from "hono";
@@ -91,11 +91,6 @@ declare function buttonUserInputField(request: UserInputRequest): Extract<UserIn
91
91
  * option labels, one value for a `choice` field, and trimmed text.
92
92
  */
93
93
  declare function normalizeUserInputAnswer(request: UserInputRequest, answer: UserInputAnswer): UserInputAnswer;
94
- /**
95
- * Return the option labels that an answer picked, in field order. Text
96
- * fields and the note pick no option.
97
- */
98
- declare function answeredChoices(request: UserInputRequest, answer: UserInputAnswer): string[];
99
94
  /** Return true when an answer has no value and no free text. */
100
95
  declare function isEmptyUserInputAnswer(answer: UserInputAnswer): boolean;
101
96
  /**
@@ -235,4 +230,4 @@ declare const inboxItemChangeRecordSchema: z.ZodObject<{
235
230
  reviewItemId: z.ZodString;
236
231
  }, z.core.$strict>;
237
232
  type InboxItemChangeRecord = z.output<typeof inboxItemChangeRecordSchema>;
238
- export { normalizeUserInputAnswer as _, annotationCard as a, MAX_INPUT_ATTACHMENTS as b, AutomationCard as c, UserInputAnswer as d, UserInputField as f, isEmptyUserInputAnswer as g, buttonUserInputField as h, MessageCard as i, inboxItemQuestion as l, answeredChoices as m, conversationTurnFailureCodeSchema as n, messageCardText as o, UserInputRequest as p, conversationTurnFailureReasonSchema as r, resolveMessageCards as s, InboxItemChangeRecord as t, USER_INPUT_NOTE as u, InputFile as v, MessageAttachment as x, MAX_ATTACHMENT_BYTES as y };
233
+ export { InputFile as _, annotationCard as a, MessageAttachment as b, AutomationCard as c, UserInputAnswer as d, UserInputField as f, normalizeUserInputAnswer as g, isEmptyUserInputAnswer as h, MessageCard as i, inboxItemQuestion as l, buttonUserInputField as m, conversationTurnFailureCodeSchema as n, messageCardText as o, UserInputRequest as p, conversationTurnFailureReasonSchema as r, resolveMessageCards as s, InboxItemChangeRecord as t, USER_INPUT_NOTE as u, MAX_ATTACHMENT_BYTES as v, MAX_INPUT_ATTACHMENTS as y };
@@ -1,4 +1,4 @@
1
- import { Ks as SlackActionError, Xs as getSlackClient, i as getConversationStore, ic as withSlackRetries } from "./db-BacvswT0.js";
1
+ import { Ks as SlackActionError, Xs as getSlackClient, i as getConversationStore, ic as withSlackRetries } from "./db-CbURDbaB.js";
2
2
  import * as z from "zod";
3
3
  // src/chat/slack/channel.ts
4
4
  const replySubtypeSchema = z.object({ subtype: z.string().optional() });
@@ -1,9 +1,9 @@
1
- import { R as getChatConfig } from "./adapter-DlLLoJKj.js";
2
- import { d as createSqlConversationEventStore, i as getConversationStore, kp as juniorTurns, vc as SYSTEM_IDENTITY_ID } from "./db-BacvswT0.js";
1
+ import { R as getChatConfig } from "./adapter-BkDQYdg6.js";
2
+ import { Op as juniorTurns, d as createSqlConversationEventStore, i as getConversationStore, vc as SYSTEM_IDENTITY_ID } from "./db-CbURDbaB.js";
3
3
  import { t as startLocalVercelQueueServer } from "./local-server-CpnGhYml.js";
4
- import { mi as projectConversationEvents } from "./markers-C33gNYNE.js";
4
+ import { mi as projectConversationEvents } from "./markers-BtUv4-oc.js";
5
5
  import { n as TURN_STEP_TOPIC, t as TURN_ENDED_TOPIC } from "./topic-B2EWKKBT.js";
6
- import { a as createGatewayModelClient, i as turnTools, o as turnStepConsumer, r as turnEndedConsumer, s as scheduleInput, t as createEngineContext } from "./engine-context-Bi3Ync5t.js";
6
+ import { a as createGatewayModelClient, i as turnTools, o as turnStepConsumer, r as turnEndedConsumer, s as scheduleInput, t as createEngineContext } from "./engine-context-BP0h6u4m.js";
7
7
  import { eq } from "drizzle-orm";
8
8
  import { localDestinationSchema } from "@sentry/junior-plugin-api";
9
9
  import { randomUUID } from "node:crypto";
package/dist/cli/chat.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { t as loadAppPluginSet } from "../plugin-module-Cv2ETe8Y.js";
2
- import { G as loadConfig, W as installChatConfig } from "../adapter-DlLLoJKj.js";
3
- import { on as createAgentRunner, t as executeAgentRun } from "../agent-DxZ7nHfD.js";
2
+ import { G as loadConfig, W as installChatConfig } from "../adapter-BkDQYdg6.js";
3
+ import { on as createAgentRunner, t as executeAgentRun } from "../agent-CL9ZkOgx.js";
4
4
  import path from "node:path";
5
5
  import { createHash, randomUUID } from "node:crypto";
6
6
  import { stderr, stdin, stdout } from "node:process";
@@ -109,9 +109,9 @@ async function loadLocalPluginSet() {
109
109
  async function configureLocalChatPlugins(pluginSet) {
110
110
  const [pluginsModule, appContextModule, validationModule, databaseModule] = await Promise.all([
111
111
  import("../plugins-D_Ru4CWc.js").then((n) => n.o),
112
- import("../db-BacvswT0.js").then((n) => n.Md),
113
- import("../validation-CK0vuEHB.js").then((n) => n.r),
114
- import("../db-BacvswT0.js").then((n) => n.t)
112
+ import("../db-CbURDbaB.js").then((n) => n.jd),
113
+ import("../validation-CofUHWqz.js").then((n) => n.r),
114
+ import("../db-CbURDbaB.js").then((n) => n.t)
115
115
  ]);
116
116
  const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
117
117
  const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
@@ -164,17 +164,17 @@ function localDevServerUrl() {
164
164
  async function prepareLocalChatRun(io, pluginSet) {
165
165
  installLocalChatConfig({ eventEmbeddings: { enabled: true } });
166
166
  await configureLocalChatPlugins(pluginSet);
167
- const { runLocalAgentTurn } = await import("../runner-aNSDTST6.js");
168
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-C-pEhAQK.js");
169
- const { createLocalOAuthState } = await import("../oauth-relay-DIXdH-io.js").then((n) => n.t);
170
- const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-nzp9Ykf7.js");
171
- const { bindSpawnAgent } = await import("../agent-DxZ7nHfD.js").then((n) => n.nn);
172
- const { bindMessageAgent } = await import("../agent-DxZ7nHfD.js").then((n) => n.an);
173
- const { runConversation } = await import("../agent-DxZ7nHfD.js").then((n) => n.Y);
174
- const { createConversationTurnWorker } = await import("../agent-DxZ7nHfD.js").then((n) => n.X);
175
- const { resumeForPersonInput } = await import("../markers-C33gNYNE.js").then((n) => n.M);
167
+ const { runLocalAgentTurn } = await import("../runner-DNdoVQg8.js");
168
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-C3GxhsuB.js");
169
+ const { createLocalOAuthState } = await import("../oauth-relay-BGm6sLCB.js").then((n) => n.t);
170
+ const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-BBcCiEhm.js");
171
+ const { bindSpawnAgent } = await import("../agent-CL9ZkOgx.js").then((n) => n.nn);
172
+ const { bindMessageAgent } = await import("../agent-CL9ZkOgx.js").then((n) => n.an);
173
+ const { runConversation } = await import("../agent-CL9ZkOgx.js").then((n) => n.Y);
174
+ const { createConversationTurnWorker } = await import("../agent-CL9ZkOgx.js").then((n) => n.X);
175
+ const { resumeForPersonInput } = await import("../markers-BtUv4-oc.js").then((n) => n.M);
176
176
  const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
177
- const { processConversationWork } = await import("../worker-C82kHU1R.js").then((n) => n.n);
177
+ const { processConversationWork } = await import("../worker-buhFcpl9.js").then((n) => n.n);
178
178
  let agentRunner;
179
179
  const localConversationWork = createLocalConversationWork(async (message) => {
180
180
  if (!agentRunner) throw new Error("Local agent runner is not ready");
@@ -241,7 +241,7 @@ async function runPrompt(options, io, pluginSet) {
241
241
  async function runCorePrompt(options, io, pluginSet) {
242
242
  installLocalChatConfig();
243
243
  await configureLocalChatPlugins(pluginSet);
244
- const { runCoreEnginePrompt } = await import("../chat-core-engine-BgfSLrDu.js");
244
+ const { runCoreEnginePrompt } = await import("../chat-core-engine-DuBaPbqK.js");
245
245
  const result = await runCoreEnginePrompt({
246
246
  conversationId: newRunConversationId(),
247
247
  message: options.message
package/dist/cli/check.js CHANGED
@@ -1,7 +1,7 @@
1
- import { G as mapBounded } from "../prompt-C5CW2wKO.js";
2
- import { a as parseSkillFile } from "../skills-50izzzdK.js";
3
- import { a as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, m as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, s as JUNIOR_HEARTBEAT_ROUTE } from "../deployment-BoJkRPDt.js";
4
- import { Mf as parsePluginManifest, jf as parseInlinePluginManifest } from "../db-BacvswT0.js";
1
+ import { G as mapBounded } from "../prompt-CX29OGO9.js";
2
+ import { a as parseSkillFile } from "../skills-DMJsS5e4.js";
3
+ import { a as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, m as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, s as JUNIOR_HEARTBEAT_ROUTE } from "../deployment-D9uPRDMD.js";
4
+ import { Af as parseInlinePluginManifest, jf as parsePluginManifest } from "../db-CbURDbaB.js";
5
5
  import * as z from "zod";
6
6
  import path from "node:path";
7
7
  import { mentionsTag } from "@sentry/junior-plugin-api";
package/dist/cli/main.js CHANGED
@@ -45,10 +45,10 @@ async function runChat(argv, pluginSet) {
45
45
  return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
46
46
  }
47
47
  async function runAdmin(argv) {
48
- return await (await import("../admin-BzRXDVfh.js")).runAdmin(argv);
48
+ return await (await import("../admin-XS3G9BOj.js")).runAdmin(argv);
49
49
  }
50
50
  async function runServiceAccount(argv) {
51
- return await (await import("../service-account-DWIf1t6p.js")).runServiceAccount(argv);
51
+ return await (await import("../service-account-B7E7OIFP.js")).runServiceAccount(argv);
52
52
  }
53
53
  function topLevelCommand(argv) {
54
54
  return (argv[0] === "--" ? argv.slice(1) : argv)[0];
@@ -1,6 +1,6 @@
1
- import { Fd as installAppContext, Nd as createAppContext, a as getDb, kt as coreRegistrations } from "../db-BacvswT0.js";
2
- import { h as createPluginLogger } from "../prompt-C5CW2wKO.js";
3
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-CK0vuEHB.js";
1
+ import { Md as createAppContext, Pd as installAppContext, a as getDb, kt as coreRegistrations } from "../db-CbURDbaB.js";
2
+ import { h as createPluginLogger } from "../prompt-CX29OGO9.js";
3
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-CofUHWqz.js";
4
4
  import { t as loadAppPluginSet } from "../plugin-module-Cv2ETe8Y.js";
5
5
  import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-D_Ru4CWc.js";
6
6
  import { Command, CommanderError } from "commander";
@@ -1,7 +1,7 @@
1
- import { R as getChatConfig, n as disconnectStateAdapter } from "../adapter-DlLLoJKj.js";
2
- import { Pd as getAppContext } from "../db-BacvswT0.js";
3
- import { n as resolve } from "../resolve-HVXmbeCr.js";
4
- import { t as create, u as SANDBOX_RUNTIME } from "../profile-v9vA3RvH.js";
1
+ import { R as getChatConfig, n as disconnectStateAdapter } from "../adapter-BkDQYdg6.js";
2
+ import { Nd as getAppContext } from "../db-CbURDbaB.js";
3
+ import { n as resolve } from "../resolve-D9RKNH3v.js";
4
+ import { t as create, u as SANDBOX_RUNTIME } from "../profile-bLo0h7Le.js";
5
5
  // src/cli/snapshot-create.ts
6
6
  const DEFAULT_TIMEOUT_MS = 6e5;
7
7
  function progressMessage(phase) {
@@ -1,5 +1,5 @@
1
- import { R as getChatConfig } from "../adapter-DlLLoJKj.js";
2
- import { Id as createPluginCatalogRuntime, c as pendingMigrations, l as readMigrationRecords, s as createJuniorSqlExecutor } from "../db-BacvswT0.js";
1
+ import { R as getChatConfig } from "../adapter-BkDQYdg6.js";
2
+ import { Fd as createPluginCatalogRuntime, c as pendingMigrations, l as readMigrationRecords, s as createJuniorSqlExecutor } from "../db-CbURDbaB.js";
3
3
  import { t as loadAppPluginSet } from "../plugin-module-Cv2ETe8Y.js";
4
4
  import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-D_Ru4CWc.js";
5
5
  import { t as isMissingVirtualModule } from "../virtual-module-BeKA_EII.js";
@@ -1,6 +1,6 @@
1
- import { A as setFirstConversationLocation, Ii as escapeSlackMrkdwnText, Kp as juniorDestinations, Li as formatSlackLink, N as claimProviderConversation, O as withConversationMutationLock, P as getConversationIdByProviderConversation, Sl as getDashboardConversationLink, Ti as getSlackMessagePermalink, Tn as moveIdleConversationDestination, a as getDb, i as getConversationStore, ki as postSlackMessage, o as getSqlExecutor, wi as deleteSlackMessage } from "./db-BacvswT0.js";
2
- import { E as parseSlackChannelId, P as parseSlackMessageTs, i as getStateAdapter } from "./adapter-DlLLoJKj.js";
3
- import { n as joinPublicChannelForRead, t as checkSlackChannelReadAccess } from "./channel-access-BghWqlXx.js";
1
+ import { A as setFirstConversationLocation, Gp as juniorDestinations, Ii as escapeSlackMrkdwnText, Li as formatSlackLink, N as claimProviderConversation, O as withConversationMutationLock, P as getConversationIdByProviderConversation, Ti as getSlackMessagePermalink, Tn as moveIdleConversationDestination, a as getDb, i as getConversationStore, ki as postSlackMessage, o as getSqlExecutor, wi as deleteSlackMessage, xl as getDashboardConversationLink } from "./db-CbURDbaB.js";
2
+ import { E as parseSlackChannelId, P as parseSlackMessageTs, i as getStateAdapter } from "./adapter-BkDQYdg6.js";
3
+ import { n as joinPublicChannelForRead, t as checkSlackChannelReadAccess } from "./channel-access-BUHB0saC.js";
4
4
  import { and, eq } from "drizzle-orm";
5
5
  // src/chat/slack/continue-in-slack.ts
6
6
  /** Refusal for a move that cannot wait for the active Run. */
@@ -1,4 +1,4 @@
1
- import { F as actorIdentitySchema, Nt as spaceRefSchema, V as conversationDetailReportSchema, X as conversationSummaryReportSchema, Xt as messageAttachmentSchema, zt as inboxItemChangeRecordSchema } from "./types-BNHkJrOP.js";
1
+ import { F as actorIdentitySchema, Nt as spaceRefSchema, V as conversationDetailReportSchema, X as conversationSummaryReportSchema, Xt as messageAttachmentSchema, zt as inboxItemChangeRecordSchema } from "./types-CGgQ3-Bb.js";
2
2
  import * as z from "zod";
3
3
  // src/reporting-schema.ts
4
4
  const healthReportSchema = z.object({
@@ -296,14 +296,6 @@ const conversationFeedMediaSchema = z.object({
296
296
  id: z.string().min(1)
297
297
  }).strict();
298
298
  /**
299
- * The viewer's newest answer to an Inbox item that the Conversation added:
300
- * when it closed and the options they picked. A text answer has no choices.
301
- */
302
- const conversationFeedViewerAnswerSchema = z.object({
303
- choices: z.array(z.string()),
304
- closedAt: z.string().datetime()
305
- }).strict();
306
- /**
307
299
  * A root in the feed, or one of its visible Threads. A Thread nests under
308
300
  * its nearest visible Thread ancestor, or under the root. Tasks never show.
309
301
  */
@@ -321,9 +313,7 @@ const conversationFeedItemSchema = conversationSummaryReportSchema.extend({
321
313
  * Only on a root, and only when the cap cut some.
322
314
  */
323
315
  omittedThreadCount: z.number().int().positive().optional(),
324
- threads: z.lazy(() => z.array(conversationFeedItemSchema)).optional(),
325
- /** Only on the viewer's own feed. */
326
- viewerAnswer: conversationFeedViewerAnswerSchema.optional()
316
+ threads: z.lazy(() => z.array(conversationFeedItemSchema)).optional()
327
317
  });
328
318
  const conversationFeedSchema = z.object({
329
319
  conversations: z.array(conversationFeedItemSchema),
@@ -1,4 +1,4 @@
1
- import { m as logWarn } from "./logging-DsTnMqyi.js";
1
+ import { m as logWarn } from "./logging-CqgOoICc.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  import { renderSystemMessageUpdate } from "@earendil-works/pi-ai";
4
4
  // src/chat/conversation-privacy.ts
@@ -1,5 +1,5 @@
1
- import { Pt as getAgentBinding, Rt as spawnChildAgentInputSchema, Uf as nextDetailVersion, an as getConversationWorkState, i as getConversationStore, o as getSqlExecutor, rn as ensureConversationWake, xn as hasConversationStop, xp as juniorAgentBindings, zp as juniorConversations } from "./db-BacvswT0.js";
2
- import { C as getChildAgentLockName, Nr as loadTurnStart, Pt as addConversationNote, T as getSpawnedChildConversationId, b as readAgentConfig, f as readChildConversationSender, k as getConversationStoppedAtMs, m as buildParentMessage, n as recordSubagentStartedMarker, o as listOpenChildAgents, p as appendParentMessage, y as agentConfigSchema } from "./markers-C33gNYNE.js";
1
+ import { Hf as nextDetailVersion, Pt as getAgentBinding, Rp as juniorConversations, Rt as spawnChildAgentInputSchema, an as getConversationWorkState, bp as juniorAgentBindings, i as getConversationStore, o as getSqlExecutor, rn as ensureConversationWake, xn as hasConversationStop } from "./db-CbURDbaB.js";
2
+ import { C as getChildAgentLockName, Nr as loadTurnStart, Pt as addConversationNote, T as getSpawnedChildConversationId, b as readAgentConfig, f as readChildConversationSender, k as getConversationStoppedAtMs, m as buildParentMessage, n as recordSubagentStartedMarker, o as listOpenChildAgents, p as appendParentMessage, y as agentConfigSchema } from "./markers-BtUv4-oc.js";
3
3
  import { eq } from "drizzle-orm";
4
4
  import { randomUUID } from "node:crypto";
5
5
  // src/chat/agent/types.ts
@@ -1,15 +1,15 @@
1
1
  import { l as homeDir } from "./topics-DxuKurCX.js";
2
- import { L as botConfig, R as getChatConfig, c as acquireActiveLock, i as getStateAdapter, k as parseSlackUserId, z as getRuntimeMetadata } from "./adapter-DlLLoJKj.js";
3
- import { Cf as getMcpProviderErrorAttributes, Dc as upsertLinkedIdentity, Jd as parseOAuthTokenResponse, Pd as getAppContext, Tc as findUserByVerifiedEmails, Xs as getSlackClient, Yd as hasRequiredOAuthScope, ef as deleteMcpAuthSession, fc as readIdentityById, if as getMcpAuthSession, ki as postSlackMessage, o as getSqlExecutor, of as getMcpStoredOAuthCredentials, qd as buildOAuthTokenRequest, uf as putMcpStoredOAuthCredentials, yc as resolveActorIdentityId } from "./db-BacvswT0.js";
4
- import { O as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-DsTnMqyi.js";
5
- import { G as mapBounded } from "./prompt-C5CW2wKO.js";
6
- import { $ as deleteWebAuthorization, J as getPersistedThreadState, Mn as recordAuthenticationLinked, Nn as recordAuthorizationCompleted, Or as getTurnRecord, Z as coerceThreadConversationState, di as formatProviderLabel, fi as parseOAuthStatePayload, fr as authorizationId, yr as getConversationPendingAuth } from "./markers-C33gNYNE.js";
7
- import { Zt as finalizeMcpAuthorization, nt as wakeAuthorizedTurn, rt as wakePausedTurn } from "./agent-DxZ7nHfD.js";
8
- import { t as discoverSkills } from "./skills-50izzzdK.js";
9
- import { A as createUserTokenStore, I as resolvePluginOAuthAccount } from "./profile-v9vA3RvH.js";
10
- import { i as lookupSlackUserProfile } from "./users-DOVo9sdU.js";
11
- import { s as readConnectedOAuthTokens, t as escapeHtml, u as htmlCallbackResponse } from "./html-DW0pw5Pr.js";
12
- import { n as relayLocalOAuthCallback } from "./oauth-relay-DIXdH-io.js";
2
+ import { L as botConfig, R as getChatConfig, c as acquireActiveLock, i as getStateAdapter, k as parseSlackUserId, z as getRuntimeMetadata } from "./adapter-BkDQYdg6.js";
3
+ import { $d as deleteMcpAuthSession, Dc as upsertLinkedIdentity, Jd as hasRequiredOAuthScope, Kd as buildOAuthTokenRequest, Nd as getAppContext, Sf as getMcpProviderErrorAttributes, Tc as findUserByVerifiedEmails, Xs as getSlackClient, af as getMcpStoredOAuthCredentials, fc as readIdentityById, ki as postSlackMessage, lf as putMcpStoredOAuthCredentials, o as getSqlExecutor, qd as parseOAuthTokenResponse, rf as getMcpAuthSession, yc as resolveActorIdentityId } from "./db-CbURDbaB.js";
4
+ import { O as isNativeIdentityProvider, f as logException, g as runBestEffort, m as logWarn } from "./logging-CqgOoICc.js";
5
+ import { G as mapBounded } from "./prompt-CX29OGO9.js";
6
+ import { $ as deleteWebAuthorization, J as getPersistedThreadState, Mn as recordAuthenticationLinked, Nn as recordAuthorizationCompleted, Or as getTurnRecord, Z as coerceThreadConversationState, di as formatProviderLabel, fi as parseOAuthStatePayload, fr as authorizationId, yr as getConversationPendingAuth } from "./markers-BtUv4-oc.js";
7
+ import { Zt as finalizeMcpAuthorization, nt as wakeAuthorizedTurn, rt as wakePausedTurn } from "./agent-CL9ZkOgx.js";
8
+ import { t as discoverSkills } from "./skills-DMJsS5e4.js";
9
+ import { A as createUserTokenStore, I as resolvePluginOAuthAccount } from "./profile-bLo0h7Le.js";
10
+ import { i as lookupSlackUserProfile } from "./users-DBrcQl47.js";
11
+ import { s as readConnectedOAuthTokens, t as escapeHtml, u as htmlCallbackResponse } from "./html-l4hKICAL.js";
12
+ import { n as relayLocalOAuthCallback } from "./oauth-relay-BGm6sLCB.js";
13
13
  import * as z from "zod";
14
14
  import path from "node:path";
15
15
  import { pluginStoredTokensSchema } from "@sentry/junior-plugin-api";
@@ -1,10 +1,10 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { $ as resolveGatewayModel, B as getSlackBotToken, C as parseActorUserId, D as parseSlackChannelReferenceId, J as normalizeSlackEmojiName, L as botConfig, O as parseSlackTeamId, P as parseSlackMessageTs, Q as findGatewayModel, R as getChatConfig, S as isUserActor, Y as TURN_REASONING_LEVELS, Z as GATEWAY_PROVIDER, a as getStateValues, at as streamSimpleAnthropic, b as isActorUserId, et as calculateCost, g as credentialUserSubjectId, h as credentialSubjectSchema, i as getStateAdapter, it as streamAnthropic, k as parseSlackUserId, l as fenceLock, nt as getEnvApiKey, o as setStateValues, p as credentialContextSchema, r as getDefaultRedisStateAdapterFor, rt as registerApiProvider, s as MUTATION_LOCK_TTL_MS, tt as completeSimple, u as withLock, v as createSlackActor, w as parseStoredSlackActor, x as isSlackUserId } from "./adapter-DlLLoJKj.js";
3
- import { A as automationVersionSchema, An as DEFAULT_NOTIFICATION_SCHEDULE, Bn as AGENT_UPDATE_EVENT_TYPE, Dn as automationTaskDescription, En as automationTaskColumns, Gn as gatewayOnlyProviders, In as isValidTimeZone, Kn as usageSchema, Ln as CONTENT_VERSION_HEADER, Mn as notificationScheduleSchema, On as automationTaskSchema, Tn as automationSkillNameSchema, Tt as sameActorIdentity, _t as historyReplacementSchema, a as UPDATE_TODOS_TOOL_NAME, dn as eventAutomationTriggerSchema, ft as encodeAgentHistoryPayload, gn as USER_INPUT_NOTE, hn as USER_INPUT_LIMITS, i as TODO_STATUSES, jn as isWithinNotificationSchedule, lt as decodeStoredConversationEvent, mn as inboxItemRequestSchema, n as SELF_TODO_ASSIGNEE, o as isOpenTodoStatus, ot as conversationEventDataSchema, pn as inboxItemQuestion, pt as isAgentHistoryData, r as TODOS_REGISTRATION_NAME, rn as scheduledAutomationSchema, rt as agentTypeSchema, t as OPEN_TODO_STATUSES, un as eventAutomationSchema, ut as newConversationEventSchema, vn as buttonUserInputField, xn as normalizeUserInputAnswer, zt as inboxItemChangeRecordSchema } from "./types-BNHkJrOP.js";
2
+ import { $ as resolveGatewayModel, B as getSlackBotToken, C as parseActorUserId, D as parseSlackChannelReferenceId, J as normalizeSlackEmojiName, L as botConfig, O as parseSlackTeamId, P as parseSlackMessageTs, Q as findGatewayModel, R as getChatConfig, S as isUserActor, Y as TURN_REASONING_LEVELS, Z as GATEWAY_PROVIDER, a as getStateValues, at as streamSimpleAnthropic, b as isActorUserId, et as calculateCost, g as credentialUserSubjectId, h as credentialSubjectSchema, i as getStateAdapter, it as streamAnthropic, k as parseSlackUserId, l as fenceLock, nt as getEnvApiKey, o as setStateValues, p as credentialContextSchema, r as getDefaultRedisStateAdapterFor, rt as registerApiProvider, s as MUTATION_LOCK_TTL_MS, tt as completeSimple, u as withLock, v as createSlackActor, w as parseStoredSlackActor, x as isSlackUserId } from "./adapter-BkDQYdg6.js";
3
+ import { A as automationVersionSchema, An as isWithinNotificationSchedule, Dn as automationTaskSchema, En as automationTaskDescription, Fn as isValidTimeZone, Gn as usageSchema, In as CONTENT_VERSION_HEADER, Tn as automationTaskColumns, Tt as sameActorIdentity, Wn as gatewayOnlyProviders, _n as buttonUserInputField, _t as historyReplacementSchema, a as UPDATE_TODOS_TOOL_NAME, bn as normalizeUserInputAnswer, dn as eventAutomationTriggerSchema, ft as encodeAgentHistoryPayload, gn as USER_INPUT_NOTE, hn as USER_INPUT_LIMITS, i as TODO_STATUSES, jn as notificationScheduleSchema, kn as DEFAULT_NOTIFICATION_SCHEDULE, lt as decodeStoredConversationEvent, mn as inboxItemRequestSchema, n as SELF_TODO_ASSIGNEE, o as isOpenTodoStatus, ot as conversationEventDataSchema, pn as inboxItemQuestion, pt as isAgentHistoryData, r as TODOS_REGISTRATION_NAME, rn as scheduledAutomationSchema, rt as agentTypeSchema, t as OPEN_TODO_STATUSES, un as eventAutomationSchema, ut as newConversationEventSchema, wn as automationSkillNameSchema, zn as AGENT_UPDATE_EVENT_TYPE, zt as inboxItemChangeRecordSchema } from "./types-CGgQ3-Bb.js";
4
4
  import { _ as toOptionalTrimmed, d as pluginRoots, i as PLUGIN_TASK_QUEUE_TOPIC, o as discoverInstalledPluginPackageContent, s as normalizePluginPackageNames } from "./topics-DxuKurCX.js";
5
- import { A as toOptionalString, D as GOOGLE_IDENTITY_PROVIDER, T as withSpan, _ as serializeGenAiAttribute, b as setSpanStatus, f as logException, g as runBestEffort, i as extractGenAiUsageSummary, k as normalizeIdentityEmail, m as logWarn, p as logInfo, r as extractGenAiUsageAttributes, s as getLogContextAttributes, y as setSpanAttributes } from "./logging-DsTnMqyi.js";
6
- import { G as mapBounded, R as unwrapCurrentInstruction, d as SANDBOX_WORKSPACE_ROOT, g as RUNTIME_CONTEXT_TEXT_STARTS, h as createPluginLogger, n as toPromptContributionContext, r as runPluginHooksAtOnce, s as SANDBOX_JUNIOR_ROOT } from "./prompt-C5CW2wKO.js";
7
- import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-qoh95v90.js";
5
+ import { A as toOptionalString, D as GOOGLE_IDENTITY_PROVIDER, T as withSpan, _ as serializeGenAiAttribute, b as setSpanStatus, f as logException, g as runBestEffort, i as extractGenAiUsageSummary, k as normalizeIdentityEmail, m as logWarn, p as logInfo, r as extractGenAiUsageAttributes, s as getLogContextAttributes, y as setSpanAttributes } from "./logging-CqgOoICc.js";
6
+ import { G as mapBounded, R as unwrapCurrentInstruction, d as SANDBOX_WORKSPACE_ROOT, g as RUNTIME_CONTEXT_TEXT_STARTS, h as createPluginLogger, n as toPromptContributionContext, r as runPluginHooksAtOnce, s as SANDBOX_JUNIOR_ROOT } from "./prompt-CX29OGO9.js";
7
+ import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-C0mixZKx.js";
8
8
  import { _ as withScope, a as getClient$1, n as captureMessage } from "./sentry-CPbZjomA.js";
9
9
  import * as z from "zod";
10
10
  import path from "node:path";
@@ -1862,6 +1862,7 @@ function inlineMcpSource(mcp) {
1862
1862
  setDefined$1(result, "allowed-tools", mcp.allowedTools);
1863
1863
  setDefined$1(result, "wrapped-tools", mcp.wrappedTools);
1864
1864
  setDefined$1(result, "viewer-tools", mcp.viewerTools);
1865
+ setDefined$1(result, "guardian", mcp.guardian && { skipReview: mcp.guardian.skipReview });
1865
1866
  return result;
1866
1867
  }
1867
1868
  function inlineOauthSource(oauth) {
@@ -2208,7 +2209,8 @@ const mcpSourceSchema = z.object({
2208
2209
  "oauth-client": mcpOauthClientSourceSchema.optional(),
2209
2210
  "allowed-tools": nonEmptyStringArraySchema("allowed-tools").optional(),
2210
2211
  "wrapped-tools": nonEmptyStringArraySchema("wrapped-tools").optional(),
2211
- "viewer-tools": nonEmptyStringArraySchema("viewer-tools").optional()
2212
+ "viewer-tools": nonEmptyStringArraySchema("viewer-tools").optional(),
2213
+ guardian: z.object({ skipReview: nonEmptyStringArraySchema("skipReview").optional() }).strict().optional()
2212
2214
  }).passthrough();
2213
2215
  const targetSourceSchema = z.object({
2214
2216
  type: nonEmptyTrimmedString.refine((value) => PLUGIN_NAME_RE$1.test(value), { error: "type must be a lowercase target identifier" }),
@@ -2579,6 +2581,12 @@ function normalizeMcp(data, envVars, name) {
2579
2581
  wrappedTools: result.data["wrapped-tools"]
2580
2582
  }, result.data["viewer-tools"] ?? []);
2581
2583
  if (unloadedViewerTools.length > 0) throw new Error(`Plugin ${name} mcp.viewer-tools must be listed in mcp.allowed-tools or mcp.wrapped-tools: ${unloadedViewerTools.join(", ")}`);
2584
+ const skipReview = result.data.guardian?.["skipReview"];
2585
+ const unloadedSkipReview = skipReview ? unloadedMcpTools({
2586
+ allowedTools: result.data["allowed-tools"],
2587
+ wrappedTools: result.data["wrapped-tools"]
2588
+ }, skipReview) : [];
2589
+ if (unloadedSkipReview.length > 0) throw new Error(`Plugin ${name} mcp.guardian.skipReview must be listed in mcp.allowed-tools or mcp.wrapped-tools: ${unloadedSkipReview.join(", ")}`);
2582
2590
  return {
2583
2591
  transport: "http",
2584
2592
  url: result.data.url,
@@ -2596,7 +2604,8 @@ function normalizeMcp(data, envVars, name) {
2596
2604
  } } : void 0,
2597
2605
  ...result.data["allowed-tools"] ? { allowedTools: result.data["allowed-tools"] } : void 0,
2598
2606
  ...result.data["wrapped-tools"] ? { wrappedTools: result.data["wrapped-tools"] } : void 0,
2599
- ...result.data["viewer-tools"] ? { viewerTools: result.data["viewer-tools"] } : void 0
2607
+ ...result.data["viewer-tools"] ? { viewerTools: result.data["viewer-tools"] } : void 0,
2608
+ ...skipReview ? { guardian: { skipReview } } : void 0
2600
2609
  };
2601
2610
  }
2602
2611
  /**
@@ -6064,7 +6073,7 @@ async function readServedProviders(state, modelId) {
6064
6073
  }));
6065
6074
  }
6066
6075
  async function gatewayOnlyForModel(modelId) {
6067
- const { getStateAdapter } = await import("./adapter-DlLLoJKj.js").then((n) => n.t);
6076
+ const { getStateAdapter } = await import("./adapter-BkDQYdg6.js").then((n) => n.t);
6068
6077
  const state = getStateAdapter();
6069
6078
  const enabled = await readLocal(localEnabledProviders, "enabled", () => readEnabledProviders(state));
6070
6079
  if (enabled === null) return void 0;
@@ -12152,8 +12161,7 @@ const inboxItemTitle = sql`coalesce(${juniorQuestions.title}, ${juniorInboxItems
12152
12161
  const inboxItemBody = sql`coalesce(${juniorQuestions.body}, ${juniorInboxItems.body}, '')`;
12153
12162
  /** SQL: the request of an item, from its question when it has one. */
12154
12163
  const inboxItemRequest = sql`coalesce(${juniorQuestions.request}, ${juniorInboxItems.request})`;
12155
- /** SQL: the answer of an item, from its question when it has one. */
12156
- const inboxItemAnswer = sql`coalesce(${juniorQuestions.answer}, ${juniorInboxItems.answer})`;
12164
+ sql`coalesce(${juniorQuestions.answer}, ${juniorInboxItems.answer})`;
12157
12165
  // src/chat/inbox-items/store.ts
12158
12166
  /**
12159
12167
  * Close reason of an action item that a person answered with a reply in
@@ -14500,7 +14508,7 @@ async function writeConversationMetadata(db, input) {
14500
14508
  * imports search and the tools that save Annotations, so they load lazily.
14501
14509
  */
14502
14510
  async function loadAnnotationLabeler() {
14503
- const [{ annotationLabel }, { readObjectLinkTypes }] = await Promise.all([import("./agent-DxZ7nHfD.js").then((n) => n.Ct), import("./agent-DxZ7nHfD.js").then((n) => n.Mt)]);
14511
+ const [{ annotationLabel }, { readObjectLinkTypes }] = await Promise.all([import("./agent-CL9ZkOgx.js").then((n) => n.Ct), import("./agent-CL9ZkOgx.js").then((n) => n.Mt)]);
14504
14512
  const linkTypes = readObjectLinkTypes();
14505
14513
  return (annotation) => annotationLabel(annotation, linkTypes);
14506
14514
  }
@@ -16188,7 +16196,7 @@ async function publishAgentUpdate(conversationId, key, options) {
16188
16196
  const eventKey = updateEventKey(conversationId, key);
16189
16197
  let update;
16190
16198
  const readUpdate = () => update ??= options.update();
16191
- const delivery = () => import("./agent-update-delivery-CO4FU5Gg.js");
16199
+ const delivery = () => import("./agent-update-delivery-t0bXEgPs.js");
16192
16200
  if (options.starter !== false) {
16193
16201
  const { deliverToStarter } = await delivery();
16194
16202
  await deliverToStarter({
@@ -21263,7 +21271,7 @@ function pluginTaskCallback(options) {
21263
21271
  onRejected: logPluginTaskQueueMessageRejected,
21264
21272
  retryDelaySeconds: pluginTaskRetryDelaySeconds,
21265
21273
  run: async (message, metadata) => {
21266
- const { processPluginTask } = await import("./agent-DxZ7nHfD.js").then((n) => n.lt);
21274
+ const { processPluginTask } = await import("./agent-CL9ZkOgx.js").then((n) => n.lt);
21267
21275
  await processPluginTask(message, {
21268
21276
  ...options,
21269
21277
  deliveryCount: metadata.deliveryCount
@@ -24697,7 +24705,7 @@ async function runDeferredMove(args) {
24697
24705
  const move = await takeDeferredConversationMove(args);
24698
24706
  if (move === void 0) return;
24699
24707
  try {
24700
- const { continueDeferredSlackClick } = await import("./slack-conversation-unfurl-C6jXhVYg.js").then((n) => n.r);
24708
+ const { continueDeferredSlackClick } = await import("./slack-conversation-unfurl-EWYTnBZI.js").then((n) => n.r);
24701
24709
  await continueDeferredSlackClick(move, args.getSlackAdapter);
24702
24710
  } catch (error) {
24703
24711
  logException(error, "slack.continue_here.deferred.failed", { "gen_ai.conversation.id": args.conversationId });
@@ -28698,4 +28706,4 @@ async function closeDb() {
28698
28706
  current = void 0;
28699
28707
  await previous?.db.close();
28700
28708
  }
28701
- export { canActOnInboxItem as $, usdToMicroUsd as $a, questionLinks as $c, PluginMcpClient as $d, topLevelConversation as $f, createSandboxCapability as $i, isPersonInput as $l, resolveEventMentions as $n, pauseConversationDelivery as $o, annotationKeyDigest as $r, isDmChannel as $s, completeConversationWork as $t, NoAudioError as $u, setFirstConversationLocation as A, automationDefinition as Aa, countInboxItemsNeedingUserBySubject as Ac, conversationNoteEvent as Ad, ServiceAccountUnavailableError as Af, removeReactionFromMessage as Ai, parseDashboardConversationLink as Al, canJoinTurn as An, collectEventMatchKeys as Ao, juniorApiTokens as Ap, readConversationAccessRows as Ar, isPublicConversation as As, injectContinuationToolName as At, embedConversationEvents as Au, conversationAggregateColumns as B, linkAutomationRunConversation as Ba, getOpenInboxItemBySubject as Bc, disconnectServiceAccount as Bd, resolveRootConversationId as Bf, slackMentionedUserIds as Bi, parseTypedQuery as Bl, pushInboxSnoozeWakes as Bn, turnEvents as Bo, juniorSpaceConfigurations as Bp, verifyConversationQueueMessage as Br, deletePushSubscription as Bs, setTodoStatusByUser as Bt, excerptTerms as Bu, conversationSlackTenantId as C, getEventAutomation as Ca, findLinkedSlackUser as Cc, getProviderErrorUserMessage as Cd, getMcpProviderErrorAttributes as Cf, addReactionToMessage as Ci, getDashboardInboxItemLink as Cl, isFinalAttempt as Cn, AGENT_RESOURCE_TYPE as Co, juniorConversationParticipants as Cp, canAddConversationMessages as Cr, conversationAncestorsOrSelf as Cs, inboxItemOwnerConversationId as Ct, registeredEventTypeSchema as Cu, createSqlStore as D, setEventAutomationStatus as Da, upsertLinkedIdentity as Dc, JUNIOR_NATIVE_EVENT_NAMESPACE as Dd, getOAuthProviderErrorAttributes as Df, openSlackModal as Di, getDashboardSpaceLink as Dl, releaseInboundMessage as Dn, starterWatchId as Do, juniorConversationMetrics as Dp, createConversationAccessReader as Dr, conversationSearchVector as Ds, validatePlugins as Dt, ToolInputError as Du, latestUserMessageQuery as E, saveEventAutomation as Ea, recordGoogleSignIn as Ec, getGatewayApiKey as Ed, fetchWithBoundedOAuthErrorBodies as Ef, openSlackDirectMessage as Ei, getDashboardSettingsLink as El, pruneActiveConversation as En, publishAgentUpdate as Eo, juniorConversationEmbeddings as Ep, conversationAccessFromRows as Er, loadAnnotationLabeler as Es, getRegistrations as Et, requireValidEventTrigger as Eu, destinationUpsertFromDestination as F, AutomationConflictError as Fa, closeReadReplyNotice as Fc, installAppContext as Fd, agentTurnCostUsd as Ff, SLACK_USER_MENTION_RE as Fi, contentVersion as Fl, readInboundMessageSender as Fn, getWatch as Fo, juniorCodeRepositories as Fp, readMemberParticipants as Fr, defaultTimezone as Fs, CHILD_AGENT_KINDS as Ft, seqIn as Fu, conversationStatusSql as G, readAutomationExecutions as Ga, takeInboxItem as Gc, serviceAccountPlugins as Gd, createSlackDestination as Gf, createPluginState as Gi, rankSearchMatches as Gl, SLACK_INBOX_ITEM_VIEW_ID as Gn, verifyEventAutomationCredentialSubject as Go, juniorUsers as Gp, QUEUE_SIGNATURE_MAX_AGE_MS as Gr, isPausedBySlack as Gs, beginConversationResume as Gt, embedConversationQuery as Gu, conversationUsageCostExpr as H, readAutomationExecutionStatusDays as Ha, listReplyActionItems as Hc, getServiceAccountStatus as Hd, conversationDetailTouch as Hf, applyPluginFormatMarkdown as Hi, fuzzyRank as Hl, resolveSlackInboxItemCardConversationId as Hn, bindScheduledAutomationCredentialSubject as Ho, juniorIdentities as Hp, conversationQueueMessageSchema as Hr, readNotificationSchedule as Hs, appendAndEnqueueExclusiveInboundMessage as Ht, isEventEmbeddingsEnabled as Hu, upsertDestination as I, automationRevision as Ia, INBOX_ITEM_REPLIED_REASON as Ic, createPluginCatalogRuntime as Id, agentTurnTotalTokens as If, escapeSlackMrkdwnText as Ii, contentVersionHeaders as Il, isEventMailboxMetadata as In, isQuietEvent as Io, juniorAttachmentUploads as Ip, rootVisibleToViewer as Ir, findActorTimezone as Is, PARENT_AGENT_TARGET as It, storeConversationEventLexemes as Iu, executionIsActive as J, readAutomationTitlesByConversationId as Ja, inboxItemRequest as Jc, parseOAuthTokenResponse as Jd, isLeadSql$1 as Jf, createPluginModel as Ji, canMoveToSpace as Jl, parseSlackInboxItemFormTarget as Jn, verifyTimerWatchCredentialSubject as Jo, juniorArtifacts as Jp, getQueueProvider as Jr, getFilePermalink as Js, claimConversationAttempt as Jt, completeObject as Ju, conversationTurnFailedSql as K, readAutomationRowStats as Ka, updateInboxItemContent as Kc, startServiceAccountSignIn as Kd, requireSlackDestination as Kf, createPluginDecider as Ki, scoredSearchMatches as Kl, buildSlackInboxItemModal as Kn, verifyScheduledAutomationCredentialSubject as Ko, juniorDestinations as Kp, signQueueMessage as Kr, SlackActionError as Ks, cancelHumanFacingPendingMessages as Kt, storeConversationEmbedding as Ku, parseSessionSource as L, requireAutomationRevision as La, closeInboxItem as Lc, HOST_MANAGED_CREDENTIAL_PLACEHOLDER as Ld, agentTurnUsageSchema as Lf, formatSlackLink as Li, revalidateContent as Ll, createSlackInboxItemToolServices as Ln, listConversationsWithWatches as Lo, juniorAttachments as Lp, viewerMarksFromParticipant as Lr, resolveUserTimezone as Ls, agentNameSchema as Lt, SEARCHABLE_EVENT_TYPES as Lu, locationSchema as M, listAutomationVersions as Ma, listWaitingConversations as Mc, context_exports as Md, parsePluginManifest as Mf, uploadFilesToConversation as Mi, parseDashboardTaskLink as Ml, isAttemptInterrupt as Mn, createWatch as Mo, codeChangeSearchDocument as Mp, conversationIsMemberRoot as Mr, readWebPushConfig as Ms, makeStructuredToolOutput as Mt, indexEndedTurnEvents as Mu, claimProviderConversation as N, readAutomationVersion as Na, waitingConversationIdsQuery as Nc, createAppContext as Nd, workloadIdentityHeader as Nf, slackEntitySchema as Ni, projectConversationMessages as Nl, selectAttemptMessages as Nn, deliverWatch as No, codeRepositorySearchDocument as Np, conversationIsNotUnsubscribedRoot as Nr, sendPushNotificationToUser as Ns, findChildAgentConversationId as Nt, lexemesSql as Nu, withConversationMutationLock as O, admitEventAutomationRun as Oa, readCachedLinkedHandle as Oc, agentsInstructionsUpdatedEvent as Od, CredentialMintError as Of, postSlackEphemeralMessage as Oi, getDashboardTaskLink as Ol, traceContextSchema as On, cancelSubscriptions as Oo, juniorConversationEvents as Op, leaveEndsAccess as Or, readConversationMetadata as Os, apiRoutePrefix as Ot, isToolInputError as Ou, getConversationIdByProviderConversation as P, sameDefinitionValue as Pa, closeHandledReplyNotices as Pc, getAppContext as Pd, addAgentTurnUsage as Pf, slackExternalRefIdSchema as Pi, REVALIDATED_READ_PATHS as Pl, readParentMessage as Pn, findMatchingWatches as Po, juniorCodeChanges as Pp, conversationPinnedForUser as Pr, resolveNotificationTimezone as Ps, getAgentBinding as Pt, searchedEventTextSql as Pu, treeAwaitsAuthorization as Q, microUsdToUsd as Qa, pluginSubjectKind as Qc, McpAuthorizationRequiredError as Qd, notLeadConversation as Qf, basePluginContext as Qi, instructionAuthor as Ql, sendSlackReply as Qn, isConversationDeliveryPaused as Qo, renderSlackObjectCard as Qr, isConversationScopedChannel as Qs, completeConversationStop as Qt, transcribeFromUrl as Qu, replaceConversationMetrics as R, emptyAutomationRunWindows as Ra, dismissOpenInboxItems as Rc, resolveAuthTokenPlaceholder as Rd, hasAgentTurnUsage as Rf, normalizeSlackStatusText as Ri, memoryDb as Rl, createInboxItemShow as Rn, listWatches as Ro, juniorMessageAttachments as Rp, getVercelConversationWorkQueue as Rr, lookupSlackUser as Rs, spawnChildAgentInputSchema as Rt, callsToolSql as Ru, setArchivedAt as S, findMatchingEventAutomations as Sa, deleteProviderIdentityForUser as Sc, getProviderErrorAttributes as Sd, getMcpAwareTelemetryMessage as Sf, notifyAutomationBlocked as Si, getDashboardConversationLink as Sl, hasRunnableConversationWork as Sn, workspaceSnapshotWatch as So, juniorConversationReadPositions as Sp, canAccessConversation as Sr, upsertPluginAnnotation as Ss, inboxItemOwnedByThroughSubject as St, registeredEventTriggerProblems as Su, lastMessageAtSql as T, parseEventAutomationRow as Ta, findUserByVerifiedEmails as Tc, isProviderRetryError as Td, OAuthProviderError as Tf, getSlackMessagePermalink as Ti, getDashboardPersonLink as Tl, moveIdleConversationDestination as Tn, isAgentResourceType as To, juniorConversationEventEmbeddings as Tp, canReadConversation as Tr, conversationSubtreeColumns as Ts, getPlugins as Tt, requireEventIdentifier as Tu, conversationIsActiveSql as U, readAutomationExecutionStatusHours as Ua, ownerConversationId as Uc, serviceAccountAllows as Ud, nextDetailVersion as Uf, getPluginUserPromptContributions as Ui, prefixMatch as Ul, syncInboxItemSlackCards as Un, bindSlackDirectCredentialSubject as Uo, slackPersonPredicate as Up, isConversationQueueMessageRejectedError as Ur, saveNotificationSchedule as Us, appendAndEnqueueInboundMessage as Ut, backfillConversationEmbeddings as Uu, conversationRangeColumns as V, readAutomationExecutionByConversationId as Va, insertInboxItem as Vc, finishServiceAccountSignIn as Vd, rootConversationIsArchived as Vf, wrapBareSlackUserIds as Vi, fuzzyMatch as Vl, runInboxItemPushTimers as Vn, bindEventAutomationCredentialSubject as Vo, juniorSpaces as Vp, ConversationQueueMessageRejectedError as Vr, listPushSubscriptions as Vs, ackMessages as Vt, storedMessageJson as Vu, conversationLastTurnOutcomeSql as W, readAutomationExecutionSummaries as Wa, searchInboxItems as Wc, serviceAccountOnly as Wd, touchConversationDetail as Wf, pluginMcpContext as Wi, prefixRank as Wl, findSlackThreadOwnerId as Wn, createSlackDirectCredentialSubject as Wo, slackPersonSearchDocument as Wp, nudgeIdempotencyKey as Wr, savePushSubscription as Ws, appendInboundMessage as Wt, createConversationEmbedder as Wu, awaitsAuthorizationFrom as X, refreshAutomationLastRun as Xa, itemQuestion as Xc, createMcpServiceAccountClientProvider as Xd, spaceLeadIds as Xf, createPluginConversationEvents as Xi, dispatchInstructionsInvokeSkills as Xl, parseSlackUserInputSubmission as Xn, JUNIOR_THREAD_STATE_TTL_MS as Xo, buildSentryEventUrl as Xr, getSlackClient as Xs, clearConsumedConversationWake as Xt, generateImages as Xu, conversationKindFromRow as Y, recordAutomationExecution as Ya, inboxItemTitle as Yc, hasRequiredOAuthScope as Yd, rootSpaceIdSql as Yf, createPluginModelCostRecorder as Yi, deliversFinalText as Yl, safeLinkUrl as Yn, updateTimerIndex as Yo, buildSentryConversationUrl as Yr, getHeaderString as Ys, claimInboundMessage as Yt, completeText as Yu, hasUnexpiredAuthorizationRequest as Z, microUsdSql as Za, INBOX_SUBJECT_KINDS as Zc, getMcpServiceAccountCredentials as Zd, listedConversation as Zf, renderPluginConversationEvent as Zi, hasConversationMetadata as Zl, resolveSlackReplyTarget as Zn, canPauseConversationDelivery as Zo, formatSentryEventReference as Zr, isConversationChannel as Zs, clearExpiredConversationLease as Zt, searchWeb as Zu, unseenEvents as _, withScheduledAutomationLock as _a, updateViewerDisplayName as _c, isCompactionSummaryText as _d, resolvePluginCommandEnv as _f, markDispatchAwaitingResume as _i, readViewerInboxSnoozes as _l, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as _n, slackChannelMessageRunsAutomation as _o, inboxItemSearchDocument as _p, dismissPluginInboxItem as _r, createPluginAnnotations as _s, itemNeedsUser as _t, eventGuidance as _u, getDb as a, createPluginCache as aa, sleep$2 as ac, cacheKeyPrefix as ad, getMcpServerSessionId as af, buildDispatchId as ai, identityAvatarUrl as al, getConversationWorkState as an, generateShortTitle as ao, juniorTodos as ap, createVercelPluginTaskCallback as ar, codeChangeSubjectProvider as as, inboxItemAddedByAnyAutomation as at, remindsNoReplyForChildStatus as au, conversationDescendants as b, createEventAutomation as ba, saveActorAvatar as bc, createProviderError as bd, McpToolError as bf, markDispatchFailed as bi, snoozeTimerTrigger as bl, deferConversationMove as bn, WORKSPACE_SNAPSHOT_READY_EVENT as bo, juniorLocationConfigurations as bp, takeOverPluginClose as br, listConversationAnnotationsById as bs, requireInboxItemAssignees as bt, hasEventCatalogEntries as bu, pendingMigrations as c, blockScheduledAutomation as ca, createPluginUsers as cc, claudeMaxImageSize as cd, putMcpAuthSession as cf, createOrGetDispatch as ci, readUserAvatarUrls as cl, recordAttemptFailure as cn, activeParticipantUserIds as co, juniorQuestions as cp, sendVercelPluginTask as cr, codeChangeUrl as cs, inboxItemNeedsInput as ct, EVENT_AUTHOR_ID as cu, createSqlConversationEventStore as d, listScheduledAutomationsForTeam as da, readActorIdentity as dc, estimateTextTokens as dd, createEncryptedState as df, getDispatchInputMessageId as di, SNOOZE_TIMER_EVENT_TYPE as dl, requestAnotherSlice as dn, resolveAssignees as do, juniorAutomationRuns as dp, readThroughHttpCache as dr, assertNoObjectLinkConflicts as ds, inboxItemReaderForUserInConversation as dt, eventBotAuthorId as du, pluginConfigValues as ea, isSlackRequestTimeout as ec, GEN_AI_PROVIDER_NAME as ed, deleteMcpAuthSession as ef, decodeAnnotationRef as ei, subjectKindDismissNote as el, deadLetterAttempt as en, usdToMicroUsdUnbiased as eo, juniorTurnOutbox as ep, createPluginEventPublisher as er, resumeConversationDelivery as es, canAgentChangeInboxItem as et, isThread as eu, eventFromRow as f, parseScheduledAutomationRow as fa, readIdentityById as fc, textCharsForTokens as fd, readEncryptedState as ff, getDispatchRecord as fi, clearInboxWakeReasons as fl, requestConversationWork as fn, getEventCatalog as fo, automationFuzzyTitle as fp, createPluginConversationEventStats as fr, findObjectLinkType as fs, inboxItemVisibleTo as ft, isEventAuthorId as fu, readEventCursor as g, scheduledRunId as ga, setUserAdminFromSql as gc, hasCompactedConversationContext as gd, resolvePluginHeaderEnvRefs as gf, listPendingDispatchMailboxAppends as gi, listFiringInboxSnoozeTriggers as gl, takePendingEventMessages as gn, slackChannelMessageReplyThreadTs as go, inboxItemFuzzyTitle as gp, createPluginInboxItems as gr, annotationSubject as gs, isPluginInboxItem as gt, describeRegisteredEventTrigger as gu, insertEventRows as h, saveScheduledAutomationInLock as ha, resolveViewerUser as hc, COMPACTION_SUMMARY_PREFIX as hd, resolveApiHeaderTransforms as hf, isTerminalDispatchStatus as hi, inboxItemSnoozedBy as hl, stopConversationWork as hn, slackChannelMessageEvent as ho, juniorStats as hp, PLUGIN_CHOICE_FIELD_ID as hr, CORE_ANNOTATION_PLUGIN as hs, isOnlyAssignee as ht, automationEventCatalog as hu, getConversationStore as i, runNonInteractiveCommand as ia, withSlackRetries as ic, saveEnabledProviders as id, getMcpAuthSession as if, resolveTurnResumeRouting as ii, hasUserPhoto as il, getConversation as in, fallbackShortTitle as io, juniorWorkspaces as ip, startedTaskDefinition as ir, codeChangeSubjectKinds as is, conversationOwnsInboxItem as it, promptModeTurnTools as iu, startLocationThread as j, automationVersionOf as ja, inboxItemsNeedingUserVersionQuery as jc, renderJuniorNativeConversationEvent as jd, parseInlinePluginManifest as jf, unfurlSlackLinks as ji, parseDashboardPersonLink as jl, canShareTurn as jn, createTimerWatch as jo, juniorConversationAnnotations as jp, readableSlackTeamId as jr, resolveRootVisibility as js, juniorToolOutputSchema as jt, eventIndexLockKey as ju, locationFromRow as k, eventAutomationRunLimitReason as ka, readCachedUserByEmail as kc, authenticationLinkedEvent as kd, CredentialUnavailableError as kf, postSlackMessage as ki, isDashboardLink as kl, withIdleConversation as kn, cancelWatch as ko, juniorTurns as kp, readConversationAccessFromSql as kr, writeConversationMetadata as ks, coreRegistrations as kt, EVENT_INDEX_LOCK_TTL_MS as ku, readMigrationRecords as l, createScheduledAutomation as la, findUserByEmail as lc, estimateMessagesTokens as ld, putMcpServerSessionId as lf, getDispatchConversationId as li, userAvatarUrlsFromIdentities as ll, recordConversationRetry as ln, automationCreatorUserId as lo, questionFuzzyTitle as lp, queueCallback as lr, codeRepositoryUrl as ls, inboxItemPlugin as lt, EVENT_MESSAGE_AUTHOR as lu, deleteMessageLinks as m, saveScheduledAutomation as ma, readViewerAvatarUrl as mc, gatewayRoutingAttributes as md, webActorUserIds as mf, getPluginDispatchProjection as mi, inboxItemInRow as ml, steerWebPendingMessages as mn, requireSlackChannelMessageScope as mo, juniorAutomations as mp, createPluginConversationChanges as mr, ANNOTATION_SUBJECT_KINDS as ms, isInboxItemForEveryone as mt, CORE_EVENT_NAMESPACE as mu, getConversationEventStore as n, buildCommandScript as na, readPrivateSlackFile as nc, readEnabledProviders as nd, deleteMcpServerSessionId as nf, verifySlackSignature as ni, subjectKindPlugin as nl, dropPendingMessages as nn, AUTOMATION_ALERT_STEP_FIELD_ID as no, juniorSnapshots as np, getPluginRoutes as nr, annotationMatches as ns, canReadInboxItem as nt, parentResultActor as nu, getSqlExecutor as o, getConfigDefaults as oa, getWorkspaceTeamId as oc, createCache as od, getMcpStoredOAuthCredentials as of, claimDispatchMailboxAppend as oi, parseAvatarUrl as ol, getConversationWorkStates as on, resolveTaskTitle as oo, todoFuzzyTitle as op, pluginTaskId as or, readSubjectLinks as os, inboxItemAddedByAutomation as ot, turnBehavior as ou, copyMessageLinks as p, readScheduledAutomation as pa, readIdentityByIdFromSql as pc, readImageDimensions as pd, findLegacyWebActorUserId as pf, getDispatchTurnId as pi, deleteExpiredInboxSnoozes as pl, startConversationWork as pn, SLACK_EVENT_NAMESPACE as po, automationSearchDocument as pp, createPluginTurnEventReader as pr, linkTypeName as ps, isAutomationAlertItem as pt, isEventConversationMessage as pu, conversationWaitsOnUserSql as q, readAutomationRuns as qa, inboxItemAnswer as qc, buildOAuthTokenRequest as qd, sameDestination as qf, createPluginEmbedder as qi, fuseRankedLists as ql, parseSlackInboxItemClick as qn, verifySlackDirectCredentialSubject as qo, guardedCosineDistance as qp, verifyQueueMessage as qr, downloadPrivateSlackFile as qs, checkInConversationWork as qt, completeDecision as qu, getConversationMessageSearchStore as r, buildNonInteractiveShellScript as ra, streamPrivateSlackFile as rc, readServedProviders as rd, deleteMcpStoredOAuthCredentials as rf, resolveConversationRouting as ri, subjectTodo as rl, ensureConversationWake as rn, syncAutomationAlerts as ro, juniorWorkspaceRepos as rp, createPluginTaskStarter as rr, resolveAnnotationFilter as rs, canUserReadInboxItem as rt, postsRunNotices as ru, createJuniorSqlExecutor as s, truncateStatusText as sa, runWithWorkspaceTeamId as sc, requestPrefixAttributes as sd, patchMcpAuthSession as sf, confirmDispatchMailboxAppend as si, readAvatarFetch as sl, listActiveConversationIds as sn, EVERYONE_ASSIGNEE as so, todoSearchDocument as sp, pluginTaskParamsSchema as sr, subjectKey as ss, inboxItemForUser as st, watcherStartedConversation as su, db_exports as t, withPluginHookSpan as ta, normalizeSlackConversationId as tc, GEN_AI_SERVER_ADDRESS as td, deleteMcpAuthSessionsForUserProvider as tf, runWithSlackInstallation as ti, subjectKindLabel as tl, drainConversationMailbox as tn, AUTOMATION_ALERT_STEPS as to, juniorTurnInbox as tp, getPluginApiRoutes as tr, searchConversations as ts, canAnswerInboxItem as tt, isTopLevel as tu, isPostgresErrorCode as u, deleteScheduledAutomation as ua, listAdminUsersFromSql as uc, estimateRequestOverheadTokens as ud, putMcpStoredOAuthCredentials as uf, getDispatchIdForConversation as ui, userAvatarUrlsFromJoinedPhotos as ul, releaseConversationWork as un, resolveAssignee as uo, questionSearchDocument as up, getTurnRequestDeadline as ur, linkedCodeProviders as us, inboxItemReaderForUser as ut, EVENT_SYSTEM_ACTOR as uu, withConversationEventLock as v, blockEventAutomation as va, SYSTEM_IDENTITY_ID as vc, ProviderError as vd, McpProviderError as vf, markDispatchBlocked as vi, settleInboxSnoozes as vl, CONVERSATION_WORK_STALE_ENQUEUE_MS as vn, slackChannelMessageTrigger as vo, juniorInboxItemConversations as vp, hasAssigneeRoles as vr, createPluginConversationAnnotations as vs, questionSubject as vt, eventNamespaceSchema as vu, loadConversationSlackTenantIds as w, listDeletedEventAutomationsCreatedBy as wa, findSlackUserByPrimaryEmail as wc, isProviderRefusal as wd, toMcpProviderError as wf, deleteSlackMessage as wi, getDashboardLinkFilter as wl, isInvalidConversationRecordError as wn, agentWatch as wo, juniorConversationEventLexemes as wp, canInviteToConversation as wr, conversationSubtree as ws, inboxItemVisibility as wt, registeredResourceTypeSchema as wu, readConversationTrees as x, deleteEventAutomation as xa, deleteProviderIdentityForSlackUser as xc, findProviderError as xd, getMcpAwareErrorType as xf, markDispatchRunning as xi, unsnoozeInboxRow as xl, hasConversationStop as xn, workspaceSnapshotFinishedEvent as xo, juniorAgentBindings as xp, createPluginCodeChanges as xr, replaceAnnotationSubjectId as xs, requireInboxItemLinks as xt, registeredEventMatchSchema as xu, conversationAncestors as y, collectEventAutomationMatchKeys as ya, resolveActorIdentityId as yc, createAssistantProviderError as yd, McpServiceAccountRequiredError as yf, markDispatchCompleted as yi, snoozeInboxItems as yl, countPendingConversationMessages as yn, WORKSPACE_SNAPSHOT_FAILED_EVENT as yo, juniorInboxItems as yp, leavePluginInboxItem as yr, listConversationAnnotations as ys, readInboxItemAgentScope as yt, eventWatchUnavailable as yu, conversationCostOf as z, existingConversationId as za, getInboxItem as zc, mergeHeaderTransforms as zd, isLeadConversation as zf, slackMention as zi, searchTypedMemories as zl, pushConversationInboxItemsNow as zn, takeDueTimerWatches as zo, juniorConversations as zp, resolveConversationWorkTopic as zr, lookupSlackUserNames as zs, listTodos as zt, eventExcerpt as zu };
28709
+ export { canActOnInboxItem as $, usdToMicroUsd as $a, subjectKindDismissNote as $c, deleteMcpAuthSession as $d, juniorTurnOutbox as $f, createSandboxCapability as $i, isThread as $l, resolveEventMentions as $n, pauseConversationDelivery as $o, annotationKeyDigest as $r, isDmChannel as $s, completeConversationWork as $t, GEN_AI_PROVIDER_NAME as $u, setFirstConversationLocation as A, automationDefinition as Aa, countInboxItemsNeedingUserBySubject as Ac, renderJuniorNativeConversationEvent as Ad, parseInlinePluginManifest as Af, removeReactionFromMessage as Ai, parseDashboardPersonLink as Al, canJoinTurn as An, collectEventMatchKeys as Ao, juniorConversationAnnotations as Ap, readConversationAccessRows as Ar, isPublicConversation as As, injectContinuationToolName as At, eventIndexLockKey as Au, conversationAggregateColumns as B, linkAutomationRunConversation as Ba, getOpenInboxItemBySubject as Bc, finishServiceAccountSignIn as Bd, rootConversationIsArchived as Bf, slackMentionedUserIds as Bi, fuzzyMatch as Bl, pushInboxSnoozeWakes as Bn, turnEvents as Bo, juniorSpaces as Bp, verifyConversationQueueMessage as Br, deletePushSubscription as Bs, setTodoStatusByUser as Bt, storedMessageJson as Bu, conversationSlackTenantId as C, getEventAutomation as Ca, findLinkedSlackUser as Cc, isProviderRefusal as Cd, toMcpProviderError as Cf, addReactionToMessage as Ci, getDashboardLinkFilter as Cl, isFinalAttempt as Cn, AGENT_RESOURCE_TYPE as Co, juniorConversationEventLexemes as Cp, canAddConversationMessages as Cr, conversationAncestorsOrSelf as Cs, inboxItemOwnerConversationId as Ct, registeredResourceTypeSchema as Cu, createSqlStore as D, setEventAutomationStatus as Da, upsertLinkedIdentity as Dc, agentsInstructionsUpdatedEvent as Dd, CredentialMintError as Df, openSlackModal as Di, getDashboardTaskLink as Dl, releaseInboundMessage as Dn, starterWatchId as Do, juniorConversationEvents as Dp, createConversationAccessReader as Dr, conversationSearchVector as Ds, validatePlugins as Dt, isToolInputError as Du, latestUserMessageQuery as E, saveEventAutomation as Ea, recordGoogleSignIn as Ec, JUNIOR_NATIVE_EVENT_NAMESPACE as Ed, getOAuthProviderErrorAttributes as Ef, openSlackDirectMessage as Ei, getDashboardSpaceLink as El, pruneActiveConversation as En, publishAgentUpdate as Eo, juniorConversationMetrics as Ep, conversationAccessFromRows as Er, loadAnnotationLabeler as Es, getRegistrations as Et, ToolInputError as Eu, destinationUpsertFromDestination as F, AutomationConflictError as Fa, closeReadReplyNotice as Fc, createPluginCatalogRuntime as Fd, agentTurnTotalTokens as Ff, SLACK_USER_MENTION_RE as Fi, contentVersionHeaders as Fl, readInboundMessageSender as Fn, getWatch as Fo, juniorAttachmentUploads as Fp, readMemberParticipants as Fr, defaultTimezone as Fs, CHILD_AGENT_KINDS as Ft, storeConversationEventLexemes as Fu, conversationStatusSql as G, readAutomationExecutions as Ga, takeInboxItem as Gc, startServiceAccountSignIn as Gd, requireSlackDestination as Gf, createPluginState as Gi, scoredSearchMatches as Gl, SLACK_INBOX_ITEM_VIEW_ID as Gn, verifyEventAutomationCredentialSubject as Go, juniorDestinations as Gp, QUEUE_SIGNATURE_MAX_AGE_MS as Gr, isPausedBySlack as Gs, beginConversationResume as Gt, storeConversationEmbedding as Gu, conversationUsageCostExpr as H, readAutomationExecutionStatusDays as Ha, listReplyActionItems as Hc, serviceAccountAllows as Hd, nextDetailVersion as Hf, applyPluginFormatMarkdown as Hi, prefixMatch as Hl, resolveSlackInboxItemCardConversationId as Hn, bindScheduledAutomationCredentialSubject as Ho, slackPersonPredicate as Hp, conversationQueueMessageSchema as Hr, readNotificationSchedule as Hs, appendAndEnqueueExclusiveInboundMessage as Ht, backfillConversationEmbeddings as Hu, upsertDestination as I, automationRevision as Ia, INBOX_ITEM_REPLIED_REASON as Ic, HOST_MANAGED_CREDENTIAL_PLACEHOLDER as Id, agentTurnUsageSchema as If, escapeSlackMrkdwnText as Ii, revalidateContent as Il, isEventMailboxMetadata as In, isQuietEvent as Io, juniorAttachments as Ip, rootVisibleToViewer as Ir, findActorTimezone as Is, PARENT_AGENT_TARGET as It, SEARCHABLE_EVENT_TYPES as Iu, executionIsActive as J, readAutomationTitlesByConversationId as Ja, inboxItemTitle as Jc, hasRequiredOAuthScope as Jd, rootSpaceIdSql as Jf, createPluginModel as Ji, deliversFinalText as Jl, parseSlackInboxItemFormTarget as Jn, verifyTimerWatchCredentialSubject as Jo, getQueueProvider as Jr, getFilePermalink as Js, claimConversationAttempt as Jt, completeText as Ju, conversationTurnFailedSql as K, readAutomationRowStats as Ka, updateInboxItemContent as Kc, buildOAuthTokenRequest as Kd, sameDestination as Kf, createPluginDecider as Ki, fuseRankedLists as Kl, buildSlackInboxItemModal as Kn, verifyScheduledAutomationCredentialSubject as Ko, guardedCosineDistance as Kp, signQueueMessage as Kr, SlackActionError as Ks, cancelHumanFacingPendingMessages as Kt, completeDecision as Ku, parseSessionSource as L, requireAutomationRevision as La, closeInboxItem as Lc, resolveAuthTokenPlaceholder as Ld, hasAgentTurnUsage as Lf, formatSlackLink as Li, memoryDb as Ll, createSlackInboxItemToolServices as Ln, listConversationsWithWatches as Lo, juniorMessageAttachments as Lp, viewerMarksFromParticipant as Lr, resolveUserTimezone as Ls, agentNameSchema as Lt, callsToolSql as Lu, locationSchema as M, listAutomationVersions as Ma, listWaitingConversations as Mc, createAppContext as Md, workloadIdentityHeader as Mf, uploadFilesToConversation as Mi, projectConversationMessages as Ml, isAttemptInterrupt as Mn, createWatch as Mo, codeRepositorySearchDocument as Mp, conversationIsMemberRoot as Mr, readWebPushConfig as Ms, makeStructuredToolOutput as Mt, lexemesSql as Mu, claimProviderConversation as N, readAutomationVersion as Na, waitingConversationIdsQuery as Nc, getAppContext as Nd, addAgentTurnUsage as Nf, slackEntitySchema as Ni, REVALIDATED_READ_PATHS as Nl, selectAttemptMessages as Nn, deliverWatch as No, juniorCodeChanges as Np, conversationIsNotUnsubscribedRoot as Nr, sendPushNotificationToUser as Ns, findChildAgentConversationId as Nt, searchedEventTextSql as Nu, withConversationMutationLock as O, admitEventAutomationRun as Oa, readCachedLinkedHandle as Oc, authenticationLinkedEvent as Od, CredentialUnavailableError as Of, postSlackEphemeralMessage as Oi, isDashboardLink as Ol, traceContextSchema as On, cancelSubscriptions as Oo, juniorTurns as Op, leaveEndsAccess as Or, readConversationMetadata as Os, apiRoutePrefix as Ot, EVENT_INDEX_LOCK_TTL_MS as Ou, getConversationIdByProviderConversation as P, sameDefinitionValue as Pa, closeHandledReplyNotices as Pc, installAppContext as Pd, agentTurnCostUsd as Pf, slackExternalRefIdSchema as Pi, contentVersion as Pl, readParentMessage as Pn, findMatchingWatches as Po, juniorCodeRepositories as Pp, conversationPinnedForUser as Pr, resolveNotificationTimezone as Ps, getAgentBinding as Pt, seqIn as Pu, treeAwaitsAuthorization as Q, microUsdToUsd as Qa, questionLinks as Qc, PluginMcpClient as Qd, topLevelConversation as Qf, basePluginContext as Qi, isPersonInput as Ql, sendSlackReply as Qn, isConversationDeliveryPaused as Qo, renderSlackObjectCard as Qr, isConversationScopedChannel as Qs, completeConversationStop as Qt, NoAudioError as Qu, replaceConversationMetrics as R, emptyAutomationRunWindows as Ra, dismissOpenInboxItems as Rc, mergeHeaderTransforms as Rd, isLeadConversation as Rf, normalizeSlackStatusText as Ri, searchTypedMemories as Rl, createInboxItemShow as Rn, listWatches as Ro, juniorConversations as Rp, getVercelConversationWorkQueue as Rr, lookupSlackUser as Rs, spawnChildAgentInputSchema as Rt, eventExcerpt as Ru, setArchivedAt as S, findMatchingEventAutomations as Sa, deleteProviderIdentityForUser as Sc, getProviderErrorUserMessage as Sd, getMcpProviderErrorAttributes as Sf, notifyAutomationBlocked as Si, getDashboardInboxItemLink as Sl, hasRunnableConversationWork as Sn, workspaceSnapshotWatch as So, juniorConversationParticipants as Sp, canAccessConversation as Sr, upsertPluginAnnotation as Ss, inboxItemOwnedByThroughSubject as St, registeredEventTypeSchema as Su, lastMessageAtSql as T, parseEventAutomationRow as Ta, findUserByVerifiedEmails as Tc, getGatewayApiKey as Td, fetchWithBoundedOAuthErrorBodies as Tf, getSlackMessagePermalink as Ti, getDashboardSettingsLink as Tl, moveIdleConversationDestination as Tn, isAgentResourceType as To, juniorConversationEmbeddings as Tp, canReadConversation as Tr, conversationSubtreeColumns as Ts, getPlugins as Tt, requireValidEventTrigger as Tu, conversationIsActiveSql as U, readAutomationExecutionStatusHours as Ua, ownerConversationId as Uc, serviceAccountOnly as Ud, touchConversationDetail as Uf, getPluginUserPromptContributions as Ui, prefixRank as Ul, syncInboxItemSlackCards as Un, bindSlackDirectCredentialSubject as Uo, slackPersonSearchDocument as Up, isConversationQueueMessageRejectedError as Ur, saveNotificationSchedule as Us, appendAndEnqueueInboundMessage as Ut, createConversationEmbedder as Uu, conversationRangeColumns as V, readAutomationExecutionByConversationId as Va, insertInboxItem as Vc, getServiceAccountStatus as Vd, conversationDetailTouch as Vf, wrapBareSlackUserIds as Vi, fuzzyRank as Vl, runInboxItemPushTimers as Vn, bindEventAutomationCredentialSubject as Vo, juniorIdentities as Vp, ConversationQueueMessageRejectedError as Vr, listPushSubscriptions as Vs, ackMessages as Vt, isEventEmbeddingsEnabled as Vu, conversationLastTurnOutcomeSql as W, readAutomationExecutionSummaries as Wa, searchInboxItems as Wc, serviceAccountPlugins as Wd, createSlackDestination as Wf, pluginMcpContext as Wi, rankSearchMatches as Wl, findSlackThreadOwnerId as Wn, createSlackDirectCredentialSubject as Wo, juniorUsers as Wp, nudgeIdempotencyKey as Wr, savePushSubscription as Ws, appendInboundMessage as Wt, embedConversationQuery as Wu, awaitsAuthorizationFrom as X, refreshAutomationLastRun as Xa, INBOX_SUBJECT_KINDS as Xc, getMcpServiceAccountCredentials as Xd, listedConversation as Xf, createPluginConversationEvents as Xi, hasConversationMetadata as Xl, parseSlackUserInputSubmission as Xn, JUNIOR_THREAD_STATE_TTL_MS as Xo, buildSentryEventUrl as Xr, getSlackClient as Xs, clearConsumedConversationWake as Xt, searchWeb as Xu, conversationKindFromRow as Y, recordAutomationExecution as Ya, itemQuestion as Yc, createMcpServiceAccountClientProvider as Yd, spaceLeadIds as Yf, createPluginModelCostRecorder as Yi, dispatchInstructionsInvokeSkills as Yl, safeLinkUrl as Yn, updateTimerIndex as Yo, buildSentryConversationUrl as Yr, getHeaderString as Ys, claimInboundMessage as Yt, generateImages as Yu, hasUnexpiredAuthorizationRequest as Z, microUsdSql as Za, pluginSubjectKind as Zc, McpAuthorizationRequiredError as Zd, notLeadConversation as Zf, renderPluginConversationEvent as Zi, instructionAuthor as Zl, resolveSlackReplyTarget as Zn, canPauseConversationDelivery as Zo, formatSentryEventReference as Zr, isConversationChannel as Zs, clearExpiredConversationLease as Zt, transcribeFromUrl as Zu, unseenEvents as _, withScheduledAutomationLock as _a, updateViewerDisplayName as _c, ProviderError as _d, McpProviderError as _f, markDispatchAwaitingResume as _i, settleInboxSnoozes as _l, CONVERSATION_WORK_CHECK_IN_INTERVAL_MS as _n, slackChannelMessageRunsAutomation as _o, juniorInboxItemConversations as _p, dismissPluginInboxItem as _r, createPluginAnnotations as _s, itemNeedsUser as _t, eventNamespaceSchema as _u, getDb as a, createPluginCache as aa, sleep$2 as ac, createCache as ad, getMcpStoredOAuthCredentials as af, buildDispatchId as ai, parseAvatarUrl as al, getConversationWorkState as an, generateShortTitle as ao, todoFuzzyTitle as ap, createVercelPluginTaskCallback as ar, codeChangeSubjectProvider as as, inboxItemAddedByAnyAutomation as at, turnBehavior as au, conversationDescendants as b, createEventAutomation as ba, saveActorAvatar as bc, findProviderError as bd, getMcpAwareErrorType as bf, markDispatchFailed as bi, unsnoozeInboxRow as bl, deferConversationMove as bn, WORKSPACE_SNAPSHOT_READY_EVENT as bo, juniorAgentBindings as bp, takeOverPluginClose as br, listConversationAnnotationsById as bs, requireInboxItemAssignees as bt, registeredEventMatchSchema as bu, pendingMigrations as c, blockScheduledAutomation as ca, createPluginUsers as cc, estimateMessagesTokens as cd, putMcpServerSessionId as cf, createOrGetDispatch as ci, userAvatarUrlsFromIdentities as cl, recordAttemptFailure as cn, activeParticipantUserIds as co, questionFuzzyTitle as cp, sendVercelPluginTask as cr, codeChangeUrl as cs, inboxItemNeedsInput as ct, EVENT_MESSAGE_AUTHOR as cu, createSqlConversationEventStore as d, listScheduledAutomationsForTeam as da, readActorIdentity as dc, textCharsForTokens as dd, readEncryptedState as df, getDispatchInputMessageId as di, clearInboxWakeReasons as dl, requestAnotherSlice as dn, resolveAssignees as do, automationFuzzyTitle as dp, readThroughHttpCache as dr, assertNoObjectLinkConflicts as ds, inboxItemReaderForUserInConversation as dt, isEventAuthorId as du, pluginConfigValues as ea, isSlackRequestTimeout as ec, GEN_AI_SERVER_ADDRESS as ed, deleteMcpAuthSessionsForUserProvider as ef, decodeAnnotationRef as ei, subjectKindLabel as el, deadLetterAttempt as en, usdToMicroUsdUnbiased as eo, juniorTurnInbox as ep, createPluginEventPublisher as er, resumeConversationDelivery as es, canAgentChangeInboxItem as et, isTopLevel as eu, eventFromRow as f, parseScheduledAutomationRow as fa, readIdentityById as fc, readImageDimensions as fd, findLegacyWebActorUserId as ff, getDispatchRecord as fi, deleteExpiredInboxSnoozes as fl, requestConversationWork as fn, getEventCatalog as fo, automationSearchDocument as fp, createPluginConversationEventStats as fr, findObjectLinkType as fs, inboxItemVisibleTo as ft, isEventConversationMessage as fu, readEventCursor as g, scheduledRunId as ga, setUserAdminFromSql as gc, isCompactionSummaryText as gd, resolvePluginCommandEnv as gf, listPendingDispatchMailboxAppends as gi, readViewerInboxSnoozes as gl, takePendingEventMessages as gn, slackChannelMessageReplyThreadTs as go, inboxItemSearchDocument as gp, createPluginInboxItems as gr, annotationSubject as gs, isPluginInboxItem as gt, eventGuidance as gu, insertEventRows as h, saveScheduledAutomationInLock as ha, resolveViewerUser as hc, hasCompactedConversationContext as hd, resolvePluginHeaderEnvRefs as hf, isTerminalDispatchStatus as hi, listFiringInboxSnoozeTriggers as hl, stopConversationWork as hn, slackChannelMessageEvent as ho, inboxItemFuzzyTitle as hp, PLUGIN_CHOICE_FIELD_ID as hr, CORE_ANNOTATION_PLUGIN as hs, isOnlyAssignee as ht, describeRegisteredEventTrigger as hu, getConversationStore as i, runNonInteractiveCommand as ia, withSlackRetries as ic, cacheKeyPrefix as id, getMcpServerSessionId as if, resolveTurnResumeRouting as ii, identityAvatarUrl as il, getConversation as in, fallbackShortTitle as io, juniorTodos as ip, startedTaskDefinition as ir, codeChangeSubjectKinds as is, conversationOwnsInboxItem as it, remindsNoReplyForChildStatus as iu, startLocationThread as j, automationVersionOf as ja, inboxItemsNeedingUserVersionQuery as jc, context_exports as jd, parsePluginManifest as jf, unfurlSlackLinks as ji, parseDashboardTaskLink as jl, canShareTurn as jn, createTimerWatch as jo, codeChangeSearchDocument as jp, readableSlackTeamId as jr, resolveRootVisibility as js, juniorToolOutputSchema as jt, indexEndedTurnEvents as ju, locationFromRow as k, eventAutomationRunLimitReason as ka, readCachedUserByEmail as kc, conversationNoteEvent as kd, ServiceAccountUnavailableError as kf, postSlackMessage as ki, parseDashboardConversationLink as kl, withIdleConversation as kn, cancelWatch as ko, juniorApiTokens as kp, readConversationAccessFromSql as kr, writeConversationMetadata as ks, coreRegistrations as kt, embedConversationEvents as ku, readMigrationRecords as l, createScheduledAutomation as la, findUserByEmail as lc, estimateRequestOverheadTokens as ld, putMcpStoredOAuthCredentials as lf, getDispatchConversationId as li, userAvatarUrlsFromJoinedPhotos as ll, recordConversationRetry as ln, automationCreatorUserId as lo, questionSearchDocument as lp, queueCallback as lr, codeRepositoryUrl as ls, inboxItemPlugin as lt, EVENT_SYSTEM_ACTOR as lu, deleteMessageLinks as m, saveScheduledAutomation as ma, readViewerAvatarUrl as mc, COMPACTION_SUMMARY_PREFIX as md, resolveApiHeaderTransforms as mf, getPluginDispatchProjection as mi, inboxItemSnoozedBy as ml, steerWebPendingMessages as mn, requireSlackChannelMessageScope as mo, juniorStats as mp, createPluginConversationChanges as mr, ANNOTATION_SUBJECT_KINDS as ms, isInboxItemForEveryone as mt, automationEventCatalog as mu, getConversationEventStore as n, buildCommandScript as na, readPrivateSlackFile as nc, readServedProviders as nd, deleteMcpStoredOAuthCredentials as nf, verifySlackSignature as ni, subjectTodo as nl, dropPendingMessages as nn, AUTOMATION_ALERT_STEP_FIELD_ID as no, juniorWorkspaceRepos as np, getPluginRoutes as nr, annotationMatches as ns, canReadInboxItem as nt, postsRunNotices as nu, getSqlExecutor as o, getConfigDefaults as oa, getWorkspaceTeamId as oc, requestPrefixAttributes as od, patchMcpAuthSession as of, claimDispatchMailboxAppend as oi, readAvatarFetch as ol, getConversationWorkStates as on, resolveTaskTitle as oo, todoSearchDocument as op, pluginTaskId as or, readSubjectLinks as os, inboxItemAddedByAutomation as ot, watcherStartedConversation as ou, copyMessageLinks as p, readScheduledAutomation as pa, readIdentityByIdFromSql as pc, gatewayRoutingAttributes as pd, webActorUserIds as pf, getDispatchTurnId as pi, inboxItemInRow as pl, startConversationWork as pn, SLACK_EVENT_NAMESPACE as po, juniorAutomations as pp, createPluginTurnEventReader as pr, linkTypeName as ps, isAutomationAlertItem as pt, CORE_EVENT_NAMESPACE as pu, conversationWaitsOnUserSql as q, readAutomationRuns as qa, inboxItemRequest as qc, parseOAuthTokenResponse as qd, isLeadSql$1 as qf, createPluginEmbedder as qi, canMoveToSpace as ql, parseSlackInboxItemClick as qn, verifySlackDirectCredentialSubject as qo, juniorArtifacts as qp, verifyQueueMessage as qr, downloadPrivateSlackFile as qs, checkInConversationWork as qt, completeObject as qu, getConversationMessageSearchStore as r, buildNonInteractiveShellScript as ra, streamPrivateSlackFile as rc, saveEnabledProviders as rd, getMcpAuthSession as rf, resolveConversationRouting as ri, hasUserPhoto as rl, ensureConversationWake as rn, syncAutomationAlerts as ro, juniorWorkspaces as rp, createPluginTaskStarter as rr, resolveAnnotationFilter as rs, canUserReadInboxItem as rt, promptModeTurnTools as ru, createJuniorSqlExecutor as s, truncateStatusText as sa, runWithWorkspaceTeamId as sc, claudeMaxImageSize as sd, putMcpAuthSession as sf, confirmDispatchMailboxAppend as si, readUserAvatarUrls as sl, listActiveConversationIds as sn, EVERYONE_ASSIGNEE as so, juniorQuestions as sp, pluginTaskParamsSchema as sr, subjectKey as ss, inboxItemForUser as st, EVENT_AUTHOR_ID as su, db_exports as t, withPluginHookSpan as ta, normalizeSlackConversationId as tc, readEnabledProviders as td, deleteMcpServerSessionId as tf, runWithSlackInstallation as ti, subjectKindPlugin as tl, drainConversationMailbox as tn, AUTOMATION_ALERT_STEPS as to, juniorSnapshots as tp, getPluginApiRoutes as tr, searchConversations as ts, canAnswerInboxItem as tt, parentResultActor as tu, isPostgresErrorCode as u, deleteScheduledAutomation as ua, listAdminUsersFromSql as uc, estimateTextTokens as ud, createEncryptedState as uf, getDispatchIdForConversation as ui, SNOOZE_TIMER_EVENT_TYPE as ul, releaseConversationWork as un, resolveAssignee as uo, juniorAutomationRuns as up, getTurnRequestDeadline as ur, linkedCodeProviders as us, inboxItemReaderForUser as ut, eventBotAuthorId as uu, withConversationEventLock as v, blockEventAutomation as va, SYSTEM_IDENTITY_ID as vc, createAssistantProviderError as vd, McpServiceAccountRequiredError as vf, markDispatchBlocked as vi, snoozeInboxItems as vl, CONVERSATION_WORK_STALE_ENQUEUE_MS as vn, slackChannelMessageTrigger as vo, juniorInboxItems as vp, hasAssigneeRoles as vr, createPluginConversationAnnotations as vs, questionSubject as vt, eventWatchUnavailable as vu, loadConversationSlackTenantIds as w, listDeletedEventAutomationsCreatedBy as wa, findSlackUserByPrimaryEmail as wc, isProviderRetryError as wd, OAuthProviderError as wf, deleteSlackMessage as wi, getDashboardPersonLink as wl, isInvalidConversationRecordError as wn, agentWatch as wo, juniorConversationEventEmbeddings as wp, canInviteToConversation as wr, conversationSubtree as ws, inboxItemVisibility as wt, requireEventIdentifier as wu, readConversationTrees as x, deleteEventAutomation as xa, deleteProviderIdentityForSlackUser as xc, getProviderErrorAttributes as xd, getMcpAwareTelemetryMessage as xf, markDispatchRunning as xi, getDashboardConversationLink as xl, hasConversationStop as xn, workspaceSnapshotFinishedEvent as xo, juniorConversationReadPositions as xp, createPluginCodeChanges as xr, replaceAnnotationSubjectId as xs, requireInboxItemLinks as xt, registeredEventTriggerProblems as xu, conversationAncestors as y, collectEventAutomationMatchKeys as ya, resolveActorIdentityId as yc, createProviderError as yd, McpToolError as yf, markDispatchCompleted as yi, snoozeTimerTrigger as yl, countPendingConversationMessages as yn, WORKSPACE_SNAPSHOT_FAILED_EVENT as yo, juniorLocationConfigurations as yp, leavePluginInboxItem as yr, listConversationAnnotations as ys, readInboxItemAgentScope as yt, hasEventCatalogEntries as yu, conversationCostOf as z, existingConversationId as za, getInboxItem as zc, disconnectServiceAccount as zd, resolveRootConversationId as zf, slackMention as zi, parseTypedQuery as zl, pushConversationInboxItemsNow as zn, takeDueTimerWatches as zo, juniorSpaceConfigurations as zp, resolveConversationWorkTopic as zr, lookupSlackUserNames as zs, listTodos as zt, excerptTerms as zu };
@@ -1,4 +1,4 @@
1
- import { t as JUNIOR_VERSION } from "./version-BuLVNlxB.js";
1
+ import { t as JUNIOR_VERSION } from "./version-D_vbXyNw.js";
2
2
  import { randomUUID } from "node:crypto";
3
3
  // src/deployment.ts
4
4
  const JUNIOR_HEARTBEAT_ROUTE = "/api/internal/heartbeat";