@sentry/junior 0.321.0 → 0.322.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 (65) hide show
  1. package/dist/{adapter-BkDQYdg6.js → adapter-CKtEUuWD.js} +23 -2
  2. package/dist/{admin-XS3G9BOj.js → admin-BGOiUGwR.js} +1 -1
  3. package/dist/{agent-CL9ZkOgx.js → agent-OUkEw6Bv.js} +272 -1647
  4. package/dist/{agent-status-Bq_AIpyp.js → agent-status-C_HHxO_d.js} +1 -10
  5. package/dist/{agent-update-delivery-t0bXEgPs.js → agent-update-delivery-H6mnPI4q.js} +4 -4
  6. package/dist/api/schema.d.ts +98 -6
  7. package/dist/api/schema.js +6 -6
  8. package/dist/api.js +81 -36
  9. package/dist/{app-CwFRvmEH.d.ts → app-BK_vhZIq.d.ts} +1 -1
  10. package/dist/app.d.ts +1 -1
  11. package/dist/app.js +85 -48
  12. package/dist/{change-record-CRuG9Mu3.d.ts → change-record-DdrJxahk.d.ts} +26 -10
  13. package/dist/{channel-access-BUHB0saC.js → channel-access-DRhVJIuQ.js} +1 -1
  14. package/dist/{chat-core-engine-DuBaPbqK.js → chat-core-engine-El308gYr.js} +5 -10
  15. package/dist/cli/chat.js +16 -16
  16. package/dist/cli/check.js +4 -4
  17. package/dist/cli/main.js +2 -2
  18. package/dist/cli/plugins.js +3 -3
  19. package/dist/cli/snapshot-create.js +4 -4
  20. package/dist/cli/upgrade.js +2 -2
  21. package/dist/{continue-in-slack-D9naZmqM.js → continue-in-slack-DYl631oM.js} +3 -3
  22. package/dist/{conversation-feed-B1_1NJc8.js → conversation-feed-BUaMmSLi.js} +1 -1
  23. package/dist/{conversation-privacy-C0mixZKx.js → conversation-privacy-DR_j5Tqf.js} +1 -1
  24. package/dist/{create-CLV0M1vw.js → create-ZkI-_JAs.js} +2 -2
  25. package/dist/{credential-sync-DL9r-ry5.js → credential-sync-Bo6_FtCI.js} +12 -12
  26. package/dist/{db-CbURDbaB.js → db-RDpWIeRK.js} +1733 -213
  27. package/dist/{deployment-D9uPRDMD.js → deployment-CeKaP0ZJ.js} +1 -1
  28. package/dist/{html-l4hKICAL.js → html-BMv4fAPu.js} +5 -5
  29. package/dist/instrumentation.js +2 -2
  30. package/dist/{list-cGaO9_Hf.js → list-CuLf7Ob2.js} +38 -35
  31. package/dist/{logging-CqgOoICc.js → logging-BQsfrLHl.js} +1 -1
  32. package/dist/{markers-BtUv4-oc.js → markers-Bh0vqJ5k.js} +3178 -1748
  33. package/dist/nitro.d.ts +1 -1
  34. package/dist/nitro.js +3 -4
  35. package/dist/{oauth-callback-server-C3GxhsuB.js → oauth-callback-server-BxuN0Jqz.js} +2 -2
  36. package/dist/{oauth-relay-BGm6sLCB.js → oauth-relay-vyG2gOwY.js} +1 -1
  37. package/dist/{profile-bLo0h7Le.js → profile-DiAB4QfT.js} +31 -6
  38. package/dist/{prompt-CX29OGO9.js → prompt-5PDkRQ1K.js} +2 -1
  39. package/dist/{reports-DeDCCu_H.js → reports-CbqB7unq.js} +2 -2
  40. package/dist/{resolve-D9RKNH3v.js → resolve-C7e0pwuP.js} +5 -5
  41. package/dist/{result-BFBwK1M2.js → result-D_D-2Adp.js} +5 -5
  42. package/dist/{runner-DNdoVQg8.js → runner-CCVTdp0x.js} +7 -7
  43. package/dist/{sandbox-egress-signals-BBcCiEhm.js → sandbox-egress-signals-D4OKOFgy.js} +1 -1
  44. package/dist/{schema-RzsplzdI.js → schema-CmPO8BfI.js} +50 -12
  45. package/dist/{service-account-B7E7OIFP.js → service-account-CeWsFrBi.js} +2 -2
  46. package/dist/{skills-DMJsS5e4.js → skills-DfbOjWxl.js} +5 -5
  47. package/dist/{slack-conversation-unfurl-EWYTnBZI.js → slack-conversation-unfurl-BxF0Yb3-.js} +10 -9
  48. package/dist/{system-prompt-table-C886lsT9.js → system-prompt-table-DySHMtu0.js} +15 -15
  49. package/dist/{topics-DxuKurCX.js → topic-ChZe9WPj.js} +6 -1
  50. package/dist/{engine-context-BP0h6u4m.js → turn-ended-DQ10G3in.js} +11 -845
  51. package/dist/{types-CGgQ3-Bb.js → types-BWAgOJtR.js} +95 -70
  52. package/dist/{user-customization-CvfuY9Eo.js → user-customization-DNzu_r1x.js} +10 -1
  53. package/dist/{users-DBrcQl47.js → users-BmZlg_ci.js} +13 -7
  54. package/dist/{validation-CofUHWqz.js → validation-BU4tXvH3.js} +1 -1
  55. package/dist/{version-D_vbXyNw.js → version-D9yLYOBu.js} +1 -1
  56. package/dist/version.js +1 -1
  57. package/dist/{worker-buhFcpl9.js → worker-C7EDSL3d.js} +4 -4
  58. package/migrations/20261127184420_question_answerer/migration.sql +36 -0
  59. package/migrations/20261127184420_question_answerer/snapshot.json +108 -0
  60. package/migrations/20261127224730_inbox_item_close_action/migration.sql +1 -0
  61. package/migrations/20261127224730_inbox_item_close_action/snapshot.json +42 -0
  62. package/package.json +6 -6
  63. package/skills/design-automation-skill/SKILL.md +1 -1
  64. package/dist/storage-XD0lB4Gk.js +0 -273
  65. package/dist/topic-B2EWKKBT.js +0 -6
package/dist/api.js CHANGED
@@ -1,21 +1,20 @@
1
- import { n as getAttachmentStorage } from "./storage-XD0lB4Gk.js";
2
- import { $ as canActOnInboxItem, $c as subjectKindDismissNote, $o as pauseConversationDelivery, Ac as countInboxItemsNeedingUserBySubject, As as isPublicConversation, B as conversationAggregateColumns, Bd as finishServiceAccountSignIn, Bl as fuzzyMatch, Bs as deletePushSubscription, Bt as setTodoStatusByUser, Dp as juniorConversationEvents, Dr as createConversationAccessReader, Ep as juniorConversationMetrics, Et as getRegistrations, Fa as AutomationConflictError, Fl as contentVersionHeaders, G as conversationStatusSql, Gd as startServiceAccountSignIn, Gl as scoredSearchMatches, Gp as juniorDestinations, Gs as isPausedBySlack, H as conversationUsageCostExpr, Hl as prefixMatch, Hp as slackPersonPredicate, Hs as readNotificationSchedule, Il as revalidateContent, Ir as rootVisibleToViewer, Ja as readAutomationTitlesByConversationId, Jc as inboxItemTitle, Jf as rootSpaceIdSql, Ju as completeText, K as conversationTurnFailedSql, Ll as memoryDb, Mc as listWaitingConversations, Mp as codeRepositorySearchDocument, Ms as readWebPushConfig, Nd as getAppContext, Nl as REVALIDATED_READ_PATHS, Np as juniorCodeChanges, Ns as sendPushNotificationToUser, Ot as apiRoutePrefix, Pl as contentVersion, Pp as juniorCodeRepositories, Ps as resolveNotificationTimezone, Qa as microUsdToUsd, Qc as questionLinks, Qf as topLevelConversation, Rl as searchTypedMemories, Rn as createInboxItemShow, Rp as juniorConversations, Rr as getVercelConversationWorkQueue, Sp as juniorConversationParticipants, Ss as upsertPluginAnnotation, Tl as getDashboardSettingsLink, Tt as getPlugins, U as conversationIsActiveSql, Uc as ownerConversationId, Ul as prefixRank, Up as slackPersonSearchDocument, Us as saveNotificationSchedule, V as conversationRangeColumns, Vd as getServiceAccountStatus, Vl as fuzzyRank, Vp as juniorIdentities, Vs as listPushSubscriptions, Wc as searchInboxItems, Wd as serviceAccountPlugins, Wl as rankSearchMatches, Wp as juniorUsers, Ws as savePushSubscription, Xc as INBOX_SUBJECT_KINDS, Xf as listedConversation, Y as conversationKindFromRow, Yc as itemQuestion, Za as microUsdSql, Zf as notLeadConversation, Zo as canPauseConversationDelivery, _c as updateViewerDisplayName, _l as settleInboxSnoozes, _p as juniorInboxItemConversations, _t as itemNeedsUser, a as getDb, aa as createPluginCache, ad as createCache, ap as todoFuzzyTitle, as as codeChangeSubjectProvider, bl as unsnoozeInboxRow, bp as juniorAgentBindings, cp as questionFuzzyTitle, cs as codeChangeUrl, dl as clearInboxWakeReasons, dp as automationFuzzyTitle, dt as inboxItemReaderForUserInConversation, el as subjectKindLabel, eo as usdToMicroUsdUnbiased, es as resumeConversationDelivery, fo as getEventCatalog, fp as automationSearchDocument, ft as inboxItemVisibleTo, gl as readViewerInboxSnoozes, gp as inboxItemSearchDocument, gs as annotationSubject, hc as resolveViewerUser, hp as inboxItemFuzzyTitle, ht as isOnlyAssignee, i as getConversationStore, id as cacheKeyPrefix, il as identityAvatarUrl, ip as juniorTodos, is as codeChangeSubjectKinds, jc as inboxItemsNeedingUserVersionQuery, jp as codeChangeSearchDocument, jr as readableSlackTeamId, ko as cancelWatch, kp as juniorApiTokens, kr as readConversationAccessFromSql, lc as findUserByEmail, lp as questionSearchDocument, ls as codeRepositoryUrl, mc as readViewerAvatarUrl, ml as inboxItemSnoozedBy, mn as steerWebPendingMessages, ms as ANNOTATION_SUBJECT_KINDS, mt as isInboxItemForEveryone, mu as automationEventCatalog, nd as readServedProviders, nl as subjectTodo, o as getSqlExecutor, ol as readAvatarFetch, op as todoSearchDocument, os as readSubjectLinks, pf as webActorUserIds, pl as inboxItemInRow, pp as juniorAutomations, qc as inboxItemRequest, qi as createPluginEmbedder, rd as saveEnabledProviders, rt as canUserReadInboxItem, sl as readUserAvatarUrls, sp as juniorQuestions, ss as subjectKey, st as inboxItemForUser, td as readEnabledProviders, ti as runWithSlackInstallation, tl as subjectKindPlugin, tt as canAnswerInboxItem, up as juniorAutomationRuns, us as linkedCodeProviders, ut as inboxItemReaderForUser, vl as snoozeInboxItems, vp as juniorInboxItems, vr as hasAssigneeRoles, vu as eventWatchUnavailable, w as loadConversationSlackTenantIds, wl as getDashboardPersonLink, yl as snoozeTimerTrigger, ys as listConversationAnnotations, zc as getInboxItem, zd as disconnectServiceAccount, zl as parseTypedQuery, zn as pushConversationInboxItemsNow, zt as listTodos } from "./db-CbURDbaB.js";
3
- import { T as withSpan, f as logException, g as runBestEffort, m as logWarn, p as logInfo, v as setSentryUser } from "./logging-CqgOoICc.js";
4
- import { $n as updateViewerAutomation, $t as decodeImageId, At as resolveObjectLinkNow, B as listOwnedWatches, Cr as closeBreaker, Dn as createAttachmentUpload, Dt as OBJECT_LINK_TTL_MS, Fn as jsonResponse, G as getSpaceLead, I as reportConversationRead, In as throwApiError, J as getProductionSlackAdapter, Jn as activateViewerAutomationVersion, Kt as conversationSummaryFromStoredConversation, Ln as readSlackAttachmentSource, M as setConversationArchive, N as stopArchivedWork, Nt as viewerCanViewPluginLink, Ot as readLinkObjectType, Pn as emptyResponse, Pt as guardedFetch, Qt as IMAGE_WIDTHS, Rt as resolvePersonLink, Sr as breakerStates, Tn as AttachmentUploadError, Vn as readLiveAttachment, W as postSlackDetachNotice, Xn as deleteViewerTask, Xt as createViewerMcp, Yn as changeViewerAutomationLifecycle, Yt as readFirstHumanMessageTexts, Zn as readViewerAutomationEdit, _n as updateSpace, a as AttachmentDownloadError, ar as readViewerAutomationSummary, br as addStats, cr as AutomationEditError, dt as readConversationEventPage, er as ViewerTaskNotFoundError, fr as viewerAutomationCollection, gn as readSpace, gt as reportParentAgentInput, hn as listSpaces, ir as readViewerAutomationRuns, jn as inviteToConversation, jr as listSpaceConfiguration, jt as resolveObjectLinks, kn as writeAttachmentUpload, kt as readObjectLinkTypes, mn as createSpace, o as readAttachmentContent, or as readViewerAutomationVersions, pr as SAVINGS_NAMESPACE, rr as readViewerAutomationExecutions, s as previewOriginBelongsTo, sr as readViewerAutomations, tr as collectionRowTitle, ut as transcriptEntriesFromReportEvents, vn as acceptsWebMessages, wn as webActorFromUser, wr as connectedState, xr as readStats, yr as savingsTotals } from "./agent-CL9ZkOgx.js";
5
- import { At as spaceListQuerySchema, B as conversationDetailQuerySchema, C as automationScheduleIntentSchema, D as automationVersionActivateSchema, E as automationUpdateSchema, G as conversationParamsSchema, It as updateSpaceBodySchema, L as conversationAttachmentParamsSchema, Ln as apiErrorSchema, Mt as spaceParamsSchema, N as CONVERSATION_DETAIL_VERSION_HEADER, O as automationVersionListSchema, On as automationTaskText, Ot as archiveSpaceBodySchema, P as CONVERSATION_VERSION_HEADER, Pt as spaceSchema, R as conversationAttachmentQuerySchema, Rt as conversationReadPositionSchema, T as automationSummarySchema, U as conversationEventPageSchema, V as conversationDetailReportSchema, W as conversationEventsQuerySchema, _ as automationListQuerySchema, an as ScheduleIntentError, b as automationRunListSchema, c as automationEditSchema, g as automationListPageSchema, jn as notificationScheduleSchema, jt as spaceListSchema, k as automationVersionParamsSchema, kt as createSpaceBodySchema, l as automationEventCatalogSchema, m as automationLifecycleSchema, o as isOpenTodoStatus, on as compileScheduleIntent, pn as inboxItemQuestion, qt as MAX_ATTACHMENT_BYTES, s as automationEditErrorSchema, u as automationExecutionListSchema, w as automationSchedulePreviewSchema, y as automationParamsSchema } from "./types-CGgQ3-Bb.js";
6
- import { $ as userSearchQuerySchema, $t as conversationChildAgentsReportSchema, A as cacheHealthQuerySchema, At as startConnectionResponseSchema, B as serviceAccountParamsSchema, Bt as codeRepositoryQuerySchema, C as inboxSnoozeResourceQuerySchema, Ct as pushSubscriptionBodySchema, D as inboxSnoozeWakesClearSchema, Dt as connectionParamsSchema, E as inboxSnoozeSubjectSchema, Et as connectionListSchema, F as cacheWarmingSavingsRefillResponseSchema, G as createPersonalTokenBodySchema, Gt as conversationTodoSchema, H as startServiceAccountSignInResponseSchema, I as cacheWarmingSavingsReportSchema, Jt as todoStatusBodySchema, K as createdPersonalTokenSchema, Kt as conversationTodosReportSchema, L as closeCacheWarmingBreakerResponseSchema, Lt as codeOverviewReportSchema, M as cacheWarmingBreakerListSchema, N as cacheWarmingBreakerParamsSchema, Nt as codeChangeSearchQuerySchema, O as gatewayProvidersSchema, P as cacheWarmingSavingsQuerySchema, Pt as codeChangeSearchReportSchema, R as disconnectServiceAccountResponseSchema, Rt as codePersonReportSchema, S as inboxSnoozeCreateSchema, St as notificationSettingsSchema, T as inboxSnoozeSchema, Tt as testNotificationResponseSchema, U as searchQuerySchema, Vt as codeRepositoryReportSchema, W as searchReportSchema, Wt as personCodeQuerySchema, X as revokePersonalTokenResponseSchema, Xt as conversationWatchesReportSchema, Y as personalTokenParamsSchema, Zt as watchParamsSchema, _ as inboxItemListSchema, _n as acceptedConversationMessageSchema, _t as locationParamsSchema, a as statsReportSchema, an as objectLinksQuerySchema, at as avatarParamsSchema, b as inboxItemWaitingConversationsSchema, bn as forkConversationBodySchema, bt as activitySixHours$1, c as workspaceBodySchema, ct as peopleSearchReportSchema, dn as conversationDeliveryResponseSchema, dt as personalSpendReportSchema, en as continueConversationInSlackBodySchema, et as userSearchReportSchema, f as workspaceSchema, fn as conversationCatchUpBodySchema, g as inboxItemListQuerySchema, gn as createAttachmentUploadBodySchema, gt as locationDirectoryReportSchema, h as inboxItemCountSchema, hn as attachmentUploadSchema, ht as locationDetailReportSchema, in as attachObjectLinkResponseSchema, it as actorProfileReportSchema, j as cacheHealthReportSchema, k as updateGatewayProvidersBodySchema, kt as disconnectConnectionResponseSchema, l as workspaceListSchema, ln as conversationOutlineSchema, lt as personCardReportSchema, m as inboxItemCountQuerySchema, mn as attachmentUploadParamsSchema, n as versionsQuerySchema, on as objectLinksReportSchema, p as inboxItemActionSchema, pn as conversationCatchUpSchema, pt as spaceConfigurationSchema, q as personalTokenListSchema, qt as todoParamsSchema, r as versionsSchema, rn as attachObjectLinkBodySchema, rt as actorDirectoryReportSchema, s as deleteWorkspaceResponseSchema, sn as conversationStatsReportSchema, st as peopleSearchQuerySchema, tn as continueConversationInSlackResponseSchema, u as workspaceParamsSchema, un as conversationDeliveryBodySchema, ut as personParamsSchema, v as inboxItemParamsSchema, vn as createConversationBodySchema, vt as activityDays$1, w as inboxSnoozeResourceSchema, wt as pushSubscriptionDeleteBodySchema, xn as forkConversationResponseSchema, y as inboxItemSchema, yn as createConversationMessageBodySchema, yt as activityHours$2, z as serviceAccountListSchema, zt as codeRepositoryParamsSchema } from "./schema-RzsplzdI.js";
7
- import { A as conversationUnchangedDetailWithMailboxSchema, B as runtimeInfoReportSchema, M as steerConversationPendingMessagesResponseSchema, N as healthReportSchema, P as pluginOperationalReportFeedSchema, T as conversationDetailWithMailboxReportSchema, U as skillReportsSchema, V as skillDetailReportSchema, _ as reorderPinnedConversationsBodySchema, a as conversationInviteResponseSchema, i as conversationInviteBodySchema, j as steerConversationPendingMessagesBodySchema, k as conversationPendingMessagesReportSchema, n as conversationFeedSchema, t as conversationFeedQuerySchema, v as reorderPinnedConversationsResponseSchema, z as pluginsSchema } from "./conversation-feed-B1_1NJc8.js";
8
- import { Mt as readUserCustomization, Nt as saveUserCustomization, Pt as addConversationNote, Xt as deleteWorkspace, Yt as createWorkspace, Zt as getWorkspace, an as workspaceRepoCheckoutPath, en as listWorkspaces, ht as parseEmail, i as listChildAgents, lr as createPluginEgress, nn as updateWorkspace, pt as isAllowedDomain, rn as WorkspaceValidationError, tn as listWorkspacesByRepository, un as isExperimentalFeatureEnabled } from "./markers-BtUv4-oc.js";
9
- import { A as setConversationSubscriptionOperation, C as cancelQueuedMessagesOperation, D as renameConversationOperation, E as pinConversationOperation, J as resolveMentions, M as reorderPinnedConversations, N as apiOperationHandler, O as setConversationAutoArchiveOperation, Q as readInboxItemForUser, S as archiveDoneConversationsOperation, T as leaveConversationOperation, X as actOnInboxItem, Y as InboxItemActionError, _ as createConversationForViewer, a as resolveInboxItemSubjects, at as updateUserSettings, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionsQuery, f as readConversationDetailEtag, g as appendConversationMessageForViewer, gt as startSavingsRefill, h as readConversationEvents, i as encodePageCursor, it as readUserSettings, j as stopConversationOperation, k as setConversationSpaceOperation, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, mt as readSavingsRefill, n as readConversationFeed, o as readConversationDetail, p as forkConversationForViewer, pt as scheduleInboxSnoozeTimer, q as requireConversationPendingMessages, r as decodePageCursor, rt as DEFAULT_USER_SETTINGS, s as readConversationTreeStates, t as conversationFeedVersionQuery, u as readConversationTreeMetricsFromSql, v as requireWebMessageConversation, x as archiveConversationOperation, yt as readHealthReport } from "./list-cGaO9_Hf.js";
10
- import { E as parseSlackChannelId, L as botConfig, O as parseSlackTeamId, R as getChatConfig, f as credentialContextForActor, i as getStateAdapter, u as withLock } from "./adapter-BkDQYdg6.js";
11
- import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-D9naZmqM.js";
12
- import { a as INPUT_IMAGE_TYPES, i as INLINE_VIDEO_TYPES, n as userCustomizationSchema, o as detectImageMediaType } from "./user-customization-CvfuY9Eo.js";
1
+ import { Cn as getWorkspace, Dn as listWorkspacesByRepository, En as listWorkspaces, Fr as createPluginEgress, In as isExperimentalFeatureEnabled, Jt as acceptsWebMessages, On as updateWorkspace, Sn as deleteWorkspace, _t as addConversationNote, an as AttachmentUploadError, bn as getAttachmentStorage, en as webActorFromUser, gt as saveUserCustomization, ht as readUserCustomization, i as listChildAgents, jn as workspaceRepoCheckoutPath, kn as WorkspaceValidationError, ln as writeAttachmentUpload, pn as readLiveAttachment, sn as createAttachmentUpload, x as parseEmail, xn as createWorkspace, y as isAllowedDomain } from "./markers-Bh0vqJ5k.js";
2
+ import { $a as createPluginCache, $d as readEnabledProviders, $l as identityAvatarUrl, $s as readSubjectLinks, Ai as rootVisibleToViewer, Am as codeRepositorySearchDocument, Au as REVALIDATED_READ_PATHS, Bl as inboxItemRequest, Bm as slackPersonPredicate, Bu as prefixRank, Cc as isPublicConversation, Ci as readConversationAccessFromSql, Cl as countInboxItemsNeedingUserBySubject, Ct as apiRoutePrefix, Dc as resolveNotificationTimezone, Dm as juniorApiTokens, Ec as sendPushNotificationToUser, Fc as readNotificationSchedule, Ft as setTodoStatusByUser, Fu as searchTypedMemories, G as conversationKindFromRow, Gl as questionLinks, Go as microUsdSql, H as conversationTurnFailedSql, Hf as serviceAccountPlugins, Hl as itemQuestion, Hm as juniorUsers, Ho as readAutomationTitlesByConversationId, Hu as scoredSearchMatches, I as conversationAggregateColumns, Ic as saveNotificationSchedule, Il as ownerConversationId, Im as juniorConversations, Iu as parseTypedQuery, Jl as subjectKindDismissNote, Jo as usdToMicroUsdUnbiased, Jp as listedConversation, Kd as completeText, Kl as subjectKindActionLabel, Ko as microUsdToUsd, Kp as rootSpaceIdSql, Ks as pauseConversationDelivery, L as conversationRangeColumns, Lc as savePushSubscription, Lf as disconnectServiceAccount, Ll as searchInboxItems, Lu as fuzzyMatch, Mi as getVercelConversationWorkQueue, Ml as getInboxItem, Mm as juniorCodeRepositories, Mu as contentVersionHeaders, Nc as deletePushSubscription, Nu as revalidateContent, Pc as listPushSubscriptions, Pt as listTodos, Pu as memoryDb, Q as canUserReadInboxItem, Qs as codeChangeSubjectProvider, R as conversationUsageCostExpr, Rc as isPausedBySlack, Rf as finishServiceAccountSignIn, Ru as fuzzyRank, Ss as cancelWatch, Su as getDashboardSettingsLink, Tc as readWebPushConfig, Ti as readableSlackTeamId, Tl as listWaitingConversations, Tm as juniorConversationEvents, Uf as startServiceAccountSignIn, Ul as INBOX_SUBJECT_KINDS, Um as juniorDestinations, V as conversationStatusSql, Va as createPluginEmbedder, Vl as inboxItemTitle, Vm as slackPersonSearchDocument, Vu as rankSearchMatches, Ws as canPauseConversationDelivery, Xl as subjectKindPlugin, Xp as topLevelConversation, Y as canActOnInboxItem, Yi as runWithSlackInstallation, Yl as subjectKindLabel, Yp as notLeadConversation, Z as canAnswerInboxItem, Zl as subjectTodo, Zs as codeChangeSubjectKinds, _u as unsnoozeInboxRow, a as getDb, am as juniorQuestions, as as getEventCatalog, at as inboxItemReaderForUser, au as SNOOZE_TIMER_EVENT_TYPE, b as loadConversationSlackTenantIds, bm as juniorConversationParticipants, br as createInboxItemShow, bt as getPlugins, cl as resolveViewerUser, cm as juniorAutomationRuns, cu as inboxItemInRow, dm as juniorAutomations, dp as webActorUserIds, du as readViewerInboxSnoozes, ec as subjectKey, ef as readServedProviders, fc as listConversationAnnotations, fd as automationEventCatalog, fi as hasAssigneeRoles, ft as itemNeedsUser, fu as settleInboxSnoozes, gd as eventWatchUnavailable, gm as juniorInboxItems, gu as snoozeTimerWakeAtMs, hc as upsertPluginAnnotation, hm as juniorInboxItemConversations, hu as snoozeTimerTrigger, i as getConversationStore, im as todoSearchDocument, jf as getAppContext, jm as juniorCodeChanges, ju as contentVersion, km as codeChangeSearchDocument, ko as AutomationConflictError, lc as annotationSubject, lm as automationFuzzyTitle, ln as steerWebPendingMessages, lt as isInboxItemForEveryone, lu as inboxItemSnoozedBy, mm as inboxItemSearchDocument, mu as snoozeTimerId, nc as codeRepositoryUrl, nf as cacheKeyPrefix, nl as findUserByEmail, nm as juniorTodos, nt as inboxItemForUser, nu as readUserAvatarUrls, o as getSqlExecutor, om as questionFuzzyTitle, ot as inboxItemReaderForUserInConversation, ou as clearInboxWakeReasons, pm as inboxItemFuzzyTitle, pu as snoozeInboxItems, ql as subjectKindActions, qs as resumeConversationDelivery, rc as linkedCodeProviders, rf as createCache, rm as todoFuzzyTitle, sc as ANNOTATION_SUBJECT_KINDS, sl as readViewerAvatarUrl, sm as questionSearchDocument, st as inboxItemVisibleTo, tc as codeChangeUrl, tf as saveEnabledProviders, tu as readAvatarFetch, ul as updateViewerDisplayName, um as automationSearchDocument, ut as isOnlyAssignee, vm as juniorAgentBindings, wl as inboxItemsNeedingUserVersionQuery, wm as juniorConversationMetrics, xi as createConversationAccessReader, xr as pushConversationInboxItemsNow, xt as getRegistrations, xu as getDashboardPersonLink, z as conversationIsActiveSql, zf as getServiceAccountStatus, zm as juniorIdentities, zu as prefixMatch } from "./db-RDpWIeRK.js";
3
+ import { T as withSpan, f as logException, g as runBestEffort, m as logWarn, p as logInfo, v as setSentryUser } from "./logging-BQsfrLHl.js";
4
+ import { An as changeViewerAutomationLifecycle, Bn as readViewerAutomationSummary, Cn as readSlackAttachmentSource, Dt as readObjectLinkTypes, Et as readLinkObjectType, Fn as ViewerTaskNotFoundError, H as postSlackDetachNotice, Hn as readViewerAutomations, I as reportConversationRead, In as collectionRowTitle, It as resolvePersonLink, Jn as SAVINGS_NAMESPACE, Jt as createViewerMcp, K as getProductionSlackAdapter, M as setConversationArchive, Mn as readViewerAutomationEdit, Mt as guardedFetch, N as stopArchivedWork, Ot as resolveObjectLinkNow, Pn as updateViewerAutomation, R as listOwnedWatches, Rn as readViewerAutomationExecutions, Sn as throwApiError, Tt as OBJECT_LINK_TTL_MS, U as getSpaceLead, Un as AutomationEditError, Vn as readViewerAutomationVersions, Wt as conversationSummaryFromStoredConversation, Xt as IMAGE_WIDTHS, Zt as decodeImageId, _n as inviteToConversation, a as AttachmentDownloadError, ar as connectedState, bn as emptyResponse, ct as transcriptEntriesFromReportEvents, er as savingsTotals, fn as createSpace, fr as listSpaceConfiguration, hn as updateSpace, ir as closeBreaker, jn as deleteViewerTask, jt as viewerCanViewPluginLink, kn as activateViewerAutomationVersion, kt as resolveObjectLinks, lt as readConversationEventPage, mn as readSpace, mt as reportParentAgentInput, nr as readStats, o as readAttachmentContent, pn as listSpaces, qn as viewerAutomationCollection, qt as readFirstHumanMessageTexts, rr as breakerStates, s as previewOriginBelongsTo, tr as addStats, xn as jsonResponse, zn as readViewerAutomationRuns } from "./agent-OUkEw6Bv.js";
5
+ import { An as automationTaskText, At as spaceListQuerySchema, B as conversationDetailQuerySchema, C as automationScheduleIntentSchema, D as automationVersionActivateSchema, E as automationUpdateSchema, G as conversationParamsSchema, It as updateSpaceBodySchema, Jt as MAX_ATTACHMENT_BYTES, L as conversationAttachmentParamsSchema, Mt as spaceParamsSchema, N as CONVERSATION_DETAIL_VERSION_HEADER, Nn as notificationScheduleSchema, O as automationVersionListSchema, Ot as archiveSpaceBodySchema, P as CONVERSATION_VERSION_HEADER, Pt as spaceSchema, R as conversationAttachmentQuerySchema, T as automationSummarySchema, Tn as userInputQuestionText, U as conversationEventPageSchema, V as conversationDetailReportSchema, W as conversationEventsQuerySchema, _ as automationListQuerySchema, _n as inboxItemQuestion, b as automationRunListSchema, c as automationEditSchema, g as automationListPageSchema, jt as spaceListSchema, k as automationVersionParamsSchema, kt as createSpaceBodySchema, l as automationEventCatalogSchema, m as automationLifecycleSchema, o as isOpenTodoStatus, on as ScheduleIntentError, s as automationEditErrorSchema, sn as compileScheduleIntent, u as automationExecutionListSchema, w as automationSchedulePreviewSchema, y as automationParamsSchema, zn as apiErrorSchema, zt as conversationReadPositionSchema } from "./types-BWAgOJtR.js";
6
+ import { $ as userSearchQuerySchema, $t as conversationChildAgentsReportSchema, A as cacheHealthQuerySchema, At as startConnectionResponseSchema, B as serviceAccountParamsSchema, Bt as codeRepositoryQuerySchema, C as inboxSnoozeResourceQuerySchema, Ct as pushSubscriptionBodySchema, D as inboxSnoozeWakesClearSchema, Dt as connectionParamsSchema, E as inboxSnoozeSubjectSchema, Et as connectionListSchema, F as cacheWarmingSavingsRefillResponseSchema, G as createPersonalTokenBodySchema, Gt as conversationTodoSchema, H as startServiceAccountSignInResponseSchema, I as cacheWarmingSavingsReportSchema, Jt as todoStatusBodySchema, K as createdPersonalTokenSchema, Kt as conversationTodosReportSchema, L as closeCacheWarmingBreakerResponseSchema, Lt as codeOverviewReportSchema, M as cacheWarmingBreakerListSchema, N as cacheWarmingBreakerParamsSchema, Nt as codeChangeSearchQuerySchema, O as gatewayProvidersSchema, P as cacheWarmingSavingsQuerySchema, Pt as codeChangeSearchReportSchema, R as disconnectServiceAccountResponseSchema, Rt as codePersonReportSchema, S as inboxSnoozeCreateSchema, St as notificationSettingsSchema, T as inboxSnoozeSchema, Tt as testNotificationResponseSchema, U as searchQuerySchema, Vt as codeRepositoryReportSchema, W as searchReportSchema, Wt as personCodeQuerySchema, X as revokePersonalTokenResponseSchema, Xt as conversationWatchesReportSchema, Y as personalTokenParamsSchema, Zt as watchParamsSchema, _ as inboxItemListSchema, _n as acceptedConversationMessageSchema, _t as locationParamsSchema, a as statsReportSchema, an as objectLinksQuerySchema, at as avatarParamsSchema, b as inboxItemWaitingConversationsSchema, bn as forkConversationBodySchema, bt as activitySixHours$1, c as workspaceBodySchema, ct as peopleSearchReportSchema, dn as conversationDeliveryResponseSchema, dt as personalSpendReportSchema, en as continueConversationInSlackBodySchema, et as userSearchReportSchema, f as workspaceSchema, fn as conversationCatchUpBodySchema, g as inboxItemListQuerySchema, gn as createAttachmentUploadBodySchema, gt as locationDirectoryReportSchema, h as inboxItemCountSchema, hn as attachmentUploadSchema, ht as locationDetailReportSchema, in as attachObjectLinkResponseSchema, it as actorProfileReportSchema, j as cacheHealthReportSchema, k as updateGatewayProvidersBodySchema, kt as disconnectConnectionResponseSchema, l as workspaceListSchema, ln as conversationOutlineSchema, lt as personCardReportSchema, m as inboxItemCountQuerySchema, mn as attachmentUploadParamsSchema, n as versionsQuerySchema, on as objectLinksReportSchema, p as inboxItemActionSchema, pn as conversationCatchUpSchema, pt as spaceConfigurationSchema, q as personalTokenListSchema, qt as todoParamsSchema, r as versionsSchema, rn as attachObjectLinkBodySchema, rt as actorDirectoryReportSchema, s as deleteWorkspaceResponseSchema, sn as conversationStatsReportSchema, st as peopleSearchQuerySchema, tn as continueConversationInSlackResponseSchema, u as workspaceParamsSchema, un as conversationDeliveryBodySchema, ut as personParamsSchema, v as inboxItemParamsSchema, vn as createConversationBodySchema, vt as activityDays$1, w as inboxSnoozeResourceSchema, wt as pushSubscriptionDeleteBodySchema, xn as forkConversationResponseSchema, y as inboxItemSchema, yn as createConversationMessageBodySchema, yt as activityHours$2, z as serviceAccountListSchema, zt as codeRepositoryParamsSchema } from "./schema-CmPO8BfI.js";
7
+ import { A as conversationUnchangedDetailWithMailboxSchema, B as runtimeInfoReportSchema, M as steerConversationPendingMessagesResponseSchema, N as healthReportSchema, P as pluginOperationalReportFeedSchema, T as conversationDetailWithMailboxReportSchema, U as skillReportsSchema, V as skillDetailReportSchema, _ as reorderPinnedConversationsBodySchema, a as conversationInviteResponseSchema, i as conversationInviteBodySchema, j as steerConversationPendingMessagesBodySchema, k as conversationPendingMessagesReportSchema, n as conversationFeedSchema, t as conversationFeedQuerySchema, v as reorderPinnedConversationsResponseSchema, z as pluginsSchema } from "./conversation-feed-BUaMmSLi.js";
8
+ import { A as setConversationSubscriptionOperation, C as cancelQueuedMessagesOperation, D as renameConversationOperation, E as pinConversationOperation, J as resolveMentions, M as reorderPinnedConversations, N as apiOperationHandler, O as setConversationAutoArchiveOperation, Q as readInboxItemForUser, S as archiveDoneConversationsOperation, T as leaveConversationOperation, X as actOnInboxItem, Y as InboxItemActionError, _ as createConversationForViewer, a as resolveInboxItemSubjects, at as updateUserSettings, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionsQuery, f as readConversationDetailEtag, g as appendConversationMessageForViewer, gt as startSavingsRefill, h as readConversationEvents, i as encodePageCursor, it as readUserSettings, j as stopConversationOperation, k as setConversationSpaceOperation, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, mt as readSavingsRefill, n as readConversationFeed, o as readConversationDetail, p as forkConversationForViewer, pt as scheduleInboxSnoozeTimer, q as requireConversationPendingMessages, r as decodePageCursor, rt as DEFAULT_USER_SETTINGS, s as readConversationTreeStates, t as conversationFeedVersionQuery, u as readConversationTreeMetricsFromSql, v as requireWebMessageConversation, x as archiveConversationOperation, yt as readHealthReport } from "./list-CuLf7Ob2.js";
9
+ import { E as parseSlackChannelId, L as botConfig, O as parseSlackTeamId, R as getChatConfig, f as credentialContextForActor, i as getStateAdapter, u as withLock } from "./adapter-CKtEUuWD.js";
10
+ import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-DYl631oM.js";
11
+ import { a as INLINE_VIDEO_TYPES, n as userCustomizationSchema, o as INPUT_IMAGE_TYPES, s as detectImageMediaType } from "./user-customization-DNzu_r1x.js";
13
12
  import { u as sentry_exports } from "./sentry-CPbZjomA.js";
14
- import { _ as utcHourKey, c as HOUR_MS$3, d as fillUtcSixHours, f as startOfUtcHour, g as trailingUtcSixHourWindow, h as trailingUtcHourWindow, l as fillUtcDays, m as trailingUtcDayWindow, p as sumUtcHoursIntoSixHours, s as DAY_MS$3, u as fillUtcHours } from "./agent-status-Bq_AIpyp.js";
15
- import { A as createUserTokenStore, n as hash, t as create, u as SANDBOX_RUNTIME } from "./profile-bLo0h7Le.js";
16
- import { a as isConnectableProvider, c as startConnection, i as disconnectConnection, o as listConnections, t as escapeHtml, u as htmlCallbackResponse } from "./html-l4hKICAL.js";
17
- import { G as mapBounded, h as createPluginLogger } from "./prompt-CX29OGO9.js";
18
- import { o as getSandboxResources, t as getCachedSnapshot } from "./resolve-D9RKNH3v.js";
13
+ import { c as fillUtcDays, d as startOfUtcHour, f as sumUtcHoursIntoSixHours, g as utcHourKey, h as trailingUtcSixHourWindow, l as fillUtcHours, m as trailingUtcHourWindow, o as DAY_MS$3, p as trailingUtcDayWindow, s as HOUR_MS$3, u as fillUtcSixHours } from "./agent-status-C_HHxO_d.js";
14
+ import { A as createUserTokenStore, n as hash, t as create, u as SANDBOX_RUNTIME } from "./profile-DiAB4QfT.js";
15
+ import { a as isConnectableProvider, c as startConnection, i as disconnectConnection, o as listConnections, t as escapeHtml, u as htmlCallbackResponse } from "./html-BMv4fAPu.js";
16
+ import { G as mapBounded, h as createPluginLogger } from "./prompt-5PDkRQ1K.js";
17
+ import { o as getSandboxResources, t as getCachedSnapshot } from "./resolve-C7e0pwuP.js";
19
18
  import { Hono } from "hono";
20
19
  import * as z from "zod";
21
20
  import path from "node:path";
@@ -3514,7 +3513,7 @@ async function readPeoplePluginReports(args) {
3514
3513
  reports: [],
3515
3514
  source: "plugins"
3516
3515
  });
3517
- const { getPluginProfileReports } = await import("./reports-DeDCCu_H.js");
3516
+ const { getPluginProfileReports } = await import("./reports-CbqB7unq.js");
3518
3517
  return pluginOperationalReportFeedSchema.parse({
3519
3518
  generatedAt: new Date(nowMs).toISOString(),
3520
3519
  reports: await getPluginProfileReports({
@@ -4148,7 +4147,12 @@ function subjectQuestion(item, question) {
4148
4147
  async function searchInboxItemsForUser(viewer, query, limit) {
4149
4148
  const db = getDb();
4150
4149
  const items = juniorInboxItems;
4151
- const visible = and(inboxItemVisibleTo(inboxItemReaderForUser(viewer)), inboxItemForUser(viewer.id));
4150
+ const statuses = [
4151
+ "open",
4152
+ "done",
4153
+ "dismissed"
4154
+ ];
4155
+ const visible = and(inboxItemVisibleTo(inboxItemReaderForUser(viewer), statuses), inboxItemForUser(viewer.id, statuses));
4152
4156
  const ownMatches = db.select({ id: items.id }).from(items).where(and(or(prefixMatch(inboxItemSearchDocument(items), query), fuzzyMatch(inboxItemFuzzyTitle(items), query)), visible)).orderBy(desc(items.updatedAt), desc(items.id)).limit(200);
4153
4157
  const questionMatches = db.select({ id: items.id }).from(juniorQuestions).innerJoin(items, subjectQuestion(items, juniorQuestions)).where(and(or(prefixMatch(questionSearchDocument(juniorQuestions), query), fuzzyMatch(questionFuzzyTitle(juniorQuestions), query)), visible)).orderBy(desc(items.updatedAt), desc(items.id)).limit(200);
4154
4158
  const kinds = codeChangeSubjectKinds();
@@ -5112,7 +5116,7 @@ function linkedWork(item) {
5112
5116
  return item.conversationIds.filter((id) => id !== ownerConversationId(item));
5113
5117
  }
5114
5118
  function openVisible(reader) {
5115
- return and(eq(juniorInboxItems.status, "open"), inboxItemVisibleTo(reader));
5119
+ return and(eq(juniorInboxItems.status, "open"), inboxItemVisibleTo(reader, ["open"]));
5116
5120
  }
5117
5121
  /** Rank the candidates in each group, newest first. */
5118
5122
  function newestInGroup(group) {
@@ -5269,12 +5273,12 @@ async function visibleRowItems(user, root, inboxItemId) {
5269
5273
  if (!root) return [];
5270
5274
  const reader = await inboxItemReaderForUserInConversation(user, root);
5271
5275
  const rows = await getDb().select({
5272
- canAct: sql`${inboxItemForUser(user.id)}`,
5276
+ canAct: sql`${inboxItemForUser(user.id, ["open"])}`,
5273
5277
  id: juniorInboxItems.id,
5274
5278
  request: inboxItemRequest,
5275
5279
  subjectId: juniorInboxItems.subjectId,
5276
5280
  subjectKind: juniorInboxItems.subjectKind
5277
- }).from(juniorInboxItems).leftJoin(juniorQuestions, itemQuestion).where(and(eq(juniorInboxItems.status, "open"), inboxItemVisibleTo(reader), inboxItemInRow(root)));
5281
+ }).from(juniorInboxItems).leftJoin(juniorQuestions, itemQuestion).where(and(eq(juniorInboxItems.status, "open"), inboxItemVisibleTo(reader, ["open"]), inboxItemInRow(root)));
5278
5282
  const items = rows.map((row) => ({
5279
5283
  request: row.request,
5280
5284
  subject: {
@@ -5371,7 +5375,7 @@ async function createViewerSnooze(user, input, nowMs = Date.now()) {
5371
5375
  if (items.length === 0) throw new InboxRowNotFoundError("Inbox row was not found.");
5372
5376
  const triggers = input.triggers ?? [];
5373
5377
  const snoozed = itemsWithTriggers(items, triggers, await namedResources(user, triggers));
5374
- const timerId = wakeAtMs === void 0 ? void 0 : `inbox-snooze:${randomUUID()}`;
5378
+ const timerId = wakeAtMs === void 0 ? void 0 : snoozeTimerId(wakeAtMs);
5375
5379
  if (timerId && wakeAtMs !== void 0) await scheduleInboxSnoozeTimer(timerId, wakeAtMs);
5376
5380
  const snoozeIds = await snoozeInboxItems(getDb(), {
5377
5381
  items: snoozed.map(({ item, triggers }) => ({
@@ -5413,7 +5417,7 @@ async function unsnoozeViewerRow(user, subject) {
5413
5417
  * each, as a root Conversation's stack does.
5414
5418
  */
5415
5419
  async function countViewerSnoozes(user) {
5416
- const [row] = await getDb().select({ count: count$1() }).from(juniorInboxItems).where(and(eq(juniorInboxItems.status, "open"), inboxItemVisibleTo(inboxItemReaderForUser(user)), inboxItemForUser(user.id), inboxItemSnoozedBy(user.id)));
5420
+ const [row] = await getDb().select({ count: count$1() }).from(juniorInboxItems).where(and(eq(juniorInboxItems.status, "open"), inboxItemVisibleTo(inboxItemReaderForUser(user), ["open"]), inboxItemForUser(user.id, ["open"]), inboxItemSnoozedBy(user.id)));
5417
5421
  return row?.count ?? 0;
5418
5422
  }
5419
5423
  // src/api/inbox-items/item-roots.ts
@@ -5480,10 +5484,14 @@ async function readInboxItemMentions(executor, items) {
5480
5484
  texts: [
5481
5485
  item.title,
5482
5486
  item.body,
5483
- inboxItemQuestion(item.request)?.question
5487
+ questionText(item)
5484
5488
  ]
5485
5489
  })));
5486
5490
  }
5491
+ function questionText(item) {
5492
+ const question = inboxItemQuestion(item.request);
5493
+ return question ? userInputQuestionText(question) : void 0;
5494
+ }
5487
5495
  // src/api/inbox-items/routes.ts
5488
5496
  const ARCHIVED_LIMIT = 50;
5489
5497
  const cursorSchema = z.object({
@@ -5539,12 +5547,18 @@ function subjectPayload(item, views, viewer) {
5539
5547
  const object = view?.object;
5540
5548
  const label = subjectKindLabel(subject.kind, getPlugins(), object, viewer);
5541
5549
  const dismissNote = subjectKindDismissNote(subject.kind, getPlugins(), object, viewer);
5550
+ const actions = subjectKindActions(subject.kind, getPlugins());
5542
5551
  const objectType = url && readLinkObjectType(url);
5543
5552
  const snoozeUrl = url ?? questionLinks(item)[0];
5544
5553
  const resource = snoozeUrl && snoozeSubjectResource(getEventCatalog(), snoozeUrl);
5545
5554
  return {
5546
5555
  id: subject.id,
5547
5556
  kind: subject.kind,
5557
+ ...actions.length > 0 ? { actions: actions.map(({ icon, id, label }) => ({
5558
+ id,
5559
+ label,
5560
+ ...icon ? { icon } : void 0
5561
+ })) } : void 0,
5548
5562
  ...label ? { label } : void 0,
5549
5563
  ...dismissNote ? { dismissNote } : void 0,
5550
5564
  ...url ? { url } : void 0,
@@ -5558,9 +5572,12 @@ function subjectPayload(item, views, viewer) {
5558
5572
  } } : void 0
5559
5573
  };
5560
5574
  }
5575
+ function eventPhrase(namespace, eventType) {
5576
+ return getEventCatalog()[namespace]?.events[eventType]?.phrase;
5577
+ }
5561
5578
  function wakePayload(reason) {
5562
5579
  if (reason.kind === "time") return reason;
5563
- const phrase = getEventCatalog()[reason.namespace]?.events[reason.eventType]?.phrase;
5580
+ const phrase = eventPhrase(reason.namespace, reason.eventType);
5564
5581
  return {
5565
5582
  eventType: reason.eventType,
5566
5583
  kind: "event",
@@ -5568,6 +5585,29 @@ function wakePayload(reason) {
5568
5585
  ...phrase ? { phrase } : void 0
5569
5586
  };
5570
5587
  }
5588
+ function isSnoozeTimer(trigger) {
5589
+ return trigger.eventType === SNOOZE_TIMER_EVENT_TYPE;
5590
+ }
5591
+ /** What ends the viewer's snooze of an item, as its row says it. */
5592
+ function viewerSnoozePayload(snooze) {
5593
+ const events = snooze.triggers.filter((trigger) => !isSnoozeTimer(trigger)).map((trigger) => {
5594
+ const phrase = eventPhrase(trigger.namespace, trigger.eventType);
5595
+ return {
5596
+ eventType: trigger.eventType,
5597
+ outcome: trigger.outcome,
5598
+ resource: trigger.identifier,
5599
+ ...phrase ? { phrase } : void 0
5600
+ };
5601
+ });
5602
+ const timer = snooze.triggers.find(isSnoozeTimer);
5603
+ const wakeAtMs = timer && snoozeTimerWakeAtMs(timer.identifier);
5604
+ return {
5605
+ snoozedAt: snooze.createdAt.toISOString(),
5606
+ ...snooze.triggers.length === 0 ? { untilClosed: true } : void 0,
5607
+ ...wakeAtMs !== void 0 ? { wakeAt: new Date(wakeAtMs).toISOString() } : timer ? { untilSetTime: true } : void 0,
5608
+ ...events.length > 0 ? { events } : void 0
5609
+ };
5610
+ }
5571
5611
  /** Build the API payload of one Inbox item for its viewer. */
5572
5612
  function inboxItemPayload(item, viewer, roots, mentions, related, wake, views, hidden) {
5573
5613
  const owner = ownerConversationId(item);
@@ -5576,6 +5616,7 @@ function inboxItemPayload(item, viewer, roots, mentions, related, wake, views, h
5576
5616
  const root = conversationId ? roots.get(conversationId) : void 0;
5577
5617
  const todo = subjectTodo(item.subject);
5578
5618
  const question = inboxItemQuestion(item.request);
5619
+ const closeAction = subjectKindActionLabel(item.subject.kind, getPlugins(), item.closeAction);
5579
5620
  return {
5580
5621
  ...root ? { addedByLabel: root.label } : void 0,
5581
5622
  assignedToEveryone: isInboxItemForEveryone(item),
@@ -5596,8 +5637,10 @@ function inboxItemPayload(item, viewer, roots, mentions, related, wake, views, h
5596
5637
  visibility: item.visibility,
5597
5638
  ...conversationId ? { rootConversationId: root?.rootConversationId ?? conversationId } : void 0,
5598
5639
  ...item.answer ? { answer: item.answer } : void 0,
5640
+ ...item.answeredBy ? { answeredBy: item.answeredBy } : void 0,
5599
5641
  ...item.addedByTurnId && !conversationHidden ? { addedByTurnId: item.addedByTurnId } : void 0,
5600
5642
  ...item.addedByAutomationId ? { automationId: item.addedByAutomationId } : void 0,
5643
+ ...closeAction ? { closeAction } : void 0,
5601
5644
  ...item.closeReason ? { closeReason: item.closeReason } : void 0,
5602
5645
  ...item.closedAt ? { closedAt: item.closedAt.toISOString() } : void 0,
5603
5646
  ...item.closedBy ? { closedBy: item.closedBy } : void 0,
@@ -5625,13 +5668,14 @@ async function inboxItemPayloads(items, viewer, reader) {
5625
5668
  inboxItemIds: items.filter((item) => item.status === "open").map((item) => item.id),
5626
5669
  userId: viewer.id
5627
5670
  }),
5628
- resolveInboxItemSubjects(viewer, items)
5671
+ resolveInboxItemSubjects(viewer, items, { cacheOnly: true })
5629
5672
  ]);
5630
5673
  return items.map((item, index) => {
5631
5674
  const payload = inboxItemPayload(item, viewer, roots, mentions[index], related.get(item.id), snoozes.wakeReasons.get(item.id), views, hidden);
5632
- return snoozes.snoozed.has(item.id) ? {
5675
+ const snooze = snoozes.snoozed.get(item.id);
5676
+ return snooze ? {
5633
5677
  ...payload,
5634
- snoozedByViewer: true
5678
+ snoozedByViewer: viewerSnoozePayload(snooze)
5635
5679
  } : payload;
5636
5680
  });
5637
5681
  }
@@ -5765,7 +5809,8 @@ function createInboxItemRoutes(services) {
5765
5809
  ...body.action === "submit" ? { answer: {
5766
5810
  ...body.answer,
5767
5811
  requestId: id
5768
- } } : void 0
5812
+ } } : void 0,
5813
+ ...body.action === "done" && body.id ? { kindAction: body.id } : void 0
5769
5814
  });
5770
5815
  await clearInboxWakeReasons(getDb(), {
5771
5816
  inboxItemIds: [id],
@@ -5977,7 +6022,7 @@ function readDescriptionText(home) {
5977
6022
  }
5978
6023
  /** Read discovered skills for runtime diagnostics and the Automation editor. */
5979
6024
  async function readSkillReports() {
5980
- const { discoverSkills } = await import("./skills-DMJsS5e4.js").then((n) => n.s);
6025
+ const { discoverSkills } = await import("./skills-DfbOjWxl.js").then((n) => n.s);
5981
6026
  const skills = await discoverSkills();
5982
6027
  return skillReportsSchema.parse(skills.map((skill) => ({
5983
6028
  name: skill.name,
@@ -5991,7 +6036,7 @@ async function readSkillReports() {
5991
6036
  * what the skill tells Junior. Returns null when no skill has that name.
5992
6037
  */
5993
6038
  async function readSkillDetailReport(name) {
5994
- const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-DMJsS5e4.js").then((n) => n.s);
6039
+ const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-DfbOjWxl.js").then((n) => n.s);
5995
6040
  const skill = findSkillByName(name, await discoverSkills());
5996
6041
  if (!skill) return null;
5997
6042
  const parsed = parseSkillFile(await fs$1.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
@@ -6006,7 +6051,7 @@ async function readSkillDetailReport(name) {
6006
6051
  }
6007
6052
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
6008
6053
  async function readPlugins() {
6009
- const { getAppContext } = await import("./db-CbURDbaB.js").then((n) => n.jd);
6054
+ const { getAppContext } = await import("./db-RDpWIeRK.js").then((n) => n.kf);
6010
6055
  return pluginsSchema.parse(getAppContext().catalog.getProviders().map((plugin) => ({
6011
6056
  configKeys: plugin.manifest.configKeys ?? [],
6012
6057
  description: plugin.manifest.description,
@@ -6017,8 +6062,8 @@ async function readPlugins() {
6017
6062
  /** Read authenticated runtime discovery data. */
6018
6063
  async function readRuntimeInfoReport() {
6019
6064
  const [{ homeDir }, { getAppContext }, plugins, skills] = await Promise.all([
6020
- import("./topics-DxuKurCX.js").then((n) => n.c),
6021
- import("./db-CbURDbaB.js").then((n) => n.jd),
6065
+ import("./topic-ChZe9WPj.js").then((n) => n.u),
6066
+ import("./db-RDpWIeRK.js").then((n) => n.kf),
6022
6067
  readPlugins(),
6023
6068
  readSkillReports()
6024
6069
  ]);
@@ -6035,7 +6080,7 @@ async function readRuntimeInfoReport() {
6035
6080
  /** Read sanitized operational summaries contributed by plugins. */
6036
6081
  async function readPluginOperationalReportFeed() {
6037
6082
  const nowMs = Date.now();
6038
- const { getPluginOperationalReports } = await import("./reports-DeDCCu_H.js");
6083
+ const { getPluginOperationalReports } = await import("./reports-CbqB7unq.js");
6039
6084
  return pluginOperationalReportFeedSchema.parse({
6040
6085
  source: "plugins",
6041
6086
  generatedAt: new Date(nowMs).toISOString(),
@@ -1,6 +1,6 @@
1
1
  import { n as JuniorPluginSet } from "./plugins-DhGXZjlu.js";
2
2
  import { n as ConversationQueueMessage, r as ConversationWorkQueue, t as WaitUntilFn } from "./types-fnU7Xs__.js";
3
- import "./change-record-CRuG9Mu3.js";
3
+ import "./change-record-DdrJxahk.js";
4
4
  import "./db-BpxcYXfD.js";
5
5
  import "./sentry-DrKC2NeM.js";
6
6
  import { Hono } from "hono";
package/dist/app.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { i as MemoryOptions, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-CwFRvmEH.js";
1
+ import { i as MemoryOptions, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-BK_vhZIq.js";
2
2
  import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-DhGXZjlu.js";
3
3
  import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
4
4
  export { JUNIOR_VERSION, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, type MemoryOptions, createApp, defineJuniorPlugins };