@sentry/junior 0.276.0 → 0.278.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 (80) hide show
  1. package/dist/{adapter-DoPR2jS-.js → adapter-BXosqTMx.js} +1 -1
  2. package/dist/{admin-BJTT-kXb.js → admin-Thn7NfOi.js} +1 -1
  3. package/dist/{agent-invocations-CUWrrzkc.js → agent-invocations-D7c4BQGc.js} +6 -2
  4. package/dist/{agent-runner-sMpA5qGM.js → agent-runner-DE-43MPb.js} +396 -877
  5. package/dist/api/schema.d.ts +2 -2
  6. package/dist/api/schema.js +5 -5
  7. package/dist/api.d.ts +13 -2
  8. package/dist/api.js +132 -61
  9. package/dist/{app-DTj-yAQt.d.ts → app-CHNS-AX2.d.ts} +6 -27
  10. package/dist/app.d.ts +3 -3
  11. package/dist/app.js +65 -57
  12. package/dist/{assistant-reply-DbxKnBQF.js → assistant-reply-pauL6qyn.js} +28 -6
  13. package/dist/{automation-B8_mC68r.js → automation-DphoTRYl.js} +1 -1
  14. package/dist/{background-compaction-queue-Bywqo1WJ.js → background-compaction-queue-CAL4A2y7.js} +2 -2
  15. package/dist/{briefs-IL7QnCCR.js → briefs-4fyPJJEu.js} +5 -6
  16. package/dist/{catalog-runtime--sC2CYLQ.js → catalog-runtime-BoOb5oUv.js} +1 -1
  17. package/dist/cli/chat.d.ts +1 -1
  18. package/dist/cli/chat.js +14 -14
  19. package/dist/cli/check.js +3 -3
  20. package/dist/cli/init.js +0 -2
  21. package/dist/cli/main.js +3 -3
  22. package/dist/cli/plugins.d.ts +1 -1
  23. package/dist/cli/plugins.js +4 -4
  24. package/dist/cli/snapshot-create.js +4 -4
  25. package/dist/cli/upgrade.d.ts +2 -2
  26. package/dist/cli/upgrade.js +3 -3
  27. package/dist/{client-7diKvInp.js → client-v_OVYuHZ.js} +3 -3
  28. package/dist/{config-Cb--cuv-.js → config-o2jLRY5J.js} +24 -99
  29. package/dist/{connections-C4-4fxaE.js → connections-RC4NXAx8.js} +10 -10
  30. package/dist/{conversation-DppJ83Hw.js → conversation-CZfyQvdm.js} +54 -109
  31. package/dist/{conversation-privacy-DTwdT3Pi.js → conversation-privacy-C23M8KaD.js} +1 -1
  32. package/dist/{credential-sync-Sl5RQCkS.js → credential-sync-Dd0WyNfF.js} +13 -13
  33. package/dist/{db-Ck6TXQIx.d.ts → db-BjLzDJCt.d.ts} +1 -1
  34. package/dist/{executor-BFKmqxYe.js → executor-CJfsD0VX.js} +13 -5
  35. package/dist/instrumentation.js +2 -2
  36. package/dist/{logging-B04X_eCB.js → logging-dFaXvBRK.js} +4 -2
  37. package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
  38. package/dist/{message-DQMFyyE-.js → message-DSwxIZet.js} +22 -28
  39. package/dist/nitro.d.ts +2 -2
  40. package/dist/nitro.js +7 -3
  41. package/dist/{oauth-callback-server-BGq0_vQI.js → oauth-callback-server-CDcuCp27.js} +2 -2
  42. package/dist/{plugins-B_0Cr0MO.d.ts → plugins-DtmjkTza.d.ts} +1 -0
  43. package/dist/{projection-6dXaN0n-.js → projection-BTge9wrH.js} +5426 -5300
  44. package/dist/{prompt-B4fQKGZR.js → prompt-DDtCnlHP.js} +1 -1
  45. package/dist/{registry-CEqKR_ld.js → registry-Cp6CNmtP.js} +24 -8
  46. package/dist/{resolve-8I5DkrfI.js → resolve-B_7h2cXx.js} +3 -3
  47. package/dist/{result-BgAW90IM.js → result-5LBEfnLX.js} +9 -9
  48. package/dist/{runner-CSKDr_19.js → runner-C5-S4oq-.js} +11 -11
  49. package/dist/{sandbox-egress-signals-BxAT276e.js → sandbox-egress-signals-B4GehT1L.js} +1 -1
  50. package/dist/{schema-Cal-EFdi.js → schema-B5fpczDw.js} +82 -4
  51. package/dist/{schema-CaUWl2EV.d.ts → schema-Tr484cCC.d.ts} +935 -688
  52. package/dist/{service-account-CUuVJCKT.js → service-account-BkEv20zf.js} +3 -3
  53. package/dist/{service-account-CtOab1Xz.js → service-account-Cq_dLrZJ.js} +3 -3
  54. package/dist/{session-stop-DK8LuPZW.js → session-stop-BsS4qFS2.js} +26 -16
  55. package/dist/{skills-Bc0D7BGy.js → skills-M0BA0_s6.js} +2 -2
  56. package/dist/{spawn-DF_GUcd8.js → spawn-BO3y7H4d.js} +2 -3
  57. package/dist/{stop-DthSy-z8.js → stop-D5R82Wla.js} +612 -186
  58. package/dist/{store-C5uVTx2G.js → store-BGBzQWNf.js} +9 -16
  59. package/dist/{store-BgH2P3X9.js → store-CGJZTEVz.js} +3 -3
  60. package/dist/{task-queue-C6ROM_XJ.js → task-queue-UD27ei2U.js} +3 -3
  61. package/dist/{task-runner-BwAkjjVE.js → task-runner-noxjOjkM.js} +7 -7
  62. package/dist/{thread-state-BXjgk1pW.js → thread-state-BSu6rM6p.js} +4 -4
  63. package/dist/{turn-failure-response-CVI57qKL.js → turn-failure-response-wahwyPrZ.js} +7 -7
  64. package/dist/{turn-lifecycle-CF6ibonp.js → turn-lifecycle-Bo4Trccw.js} +1 -1
  65. package/dist/{turn-session-routing-DddybdNu.js → turn-session-routing-DnSaaEpn.js} +10 -10
  66. package/dist/{validation-BxF1nQbC.js → validation-B9-8iKyw.js} +1 -1
  67. package/dist/{version-CTzSbCmR.js → version-C7HejFP2.js} +1 -1
  68. package/dist/version.js +1 -1
  69. package/dist/{viewer-CQwBszc7.js → viewer-DLXajQZE.js} +94 -28
  70. package/dist/{work-BHlShEQ6.js → work-DRGSlfia.js} +12 -17
  71. package/dist/{worker-DhY9MnsH.js → worker-BGh5Dwc6.js} +6 -6
  72. package/migrations/0074_conversation_participant_pins.sql +1 -0
  73. package/migrations/0075_conversation_detail_version.sql +1 -0
  74. package/migrations/0076_conversation_auto_archive.sql +5 -0
  75. package/migrations/meta/0074_snapshot.json +4076 -0
  76. package/migrations/meta/0075_snapshot.json +4083 -0
  77. package/migrations/meta/0076_snapshot.json +4147 -0
  78. package/migrations/meta/_journal.json +21 -0
  79. package/package.json +5 -5
  80. package/dist/model-profile-B998sjVd.js +0 -67
@@ -1,2 +1,2 @@
1
- import { $ as automationExecutionSchema, $n as ConversationPendingMessage, $r as codeChangeSummaryReportSchema, $t as LocationParams, A as StatReport, An as stopConversationTurnResponseSchema, Ar as conversationParamsSchema, At as PersonalTokenMetadata, B as AutomationListQuery, Bn as ArchiveConversationResponse, Br as forkConversationBodySchema, Bt as serviceAccountSchema, C as pluginPackageContentItemReportSchema, Ci as MAX_INPUT_IMAGES, Cn as ConversationChildAgent, Cr as conversationDetailQuerySchema, Ct as workspaceBodySchema, D as runtimeInfoReportSchema, Dn as ConversationReadPosition, Dr as conversationEventsQuerySchema, Dt as workspaceSchema, E as pluginsSchema, Ei as INPUT_IMAGE_TYPES, En as conversationChildAgentsReportSchema, Er as conversationEventPageSchema, Et as workspaceRepoSchema, F as AutomationExecution, Fn as GuardianStats, Fr as conversationReportEventDataSchema, Ft as personalTokenParamsSchema, G as AutomationSummary, Gn as ConversationAuxiliaryCosts, Gr as conversationTurnFailureReasonSchema, Gt as disconnectConnectionResponseSchema, H as AutomationRunList, Hn as CancelConversationPendingMessagesResponse, Hr as steerConversationPendingMessagesBodySchema, Ht as connectionListSchema, I as AutomationExecutionDay, In as conversationStatsReportSchema, Ir as conversationReportEventSchema, It as revokePersonalTokenResponseSchema, J as ListedAutomationVersion, Jn as ConversationEventHistory, Jr as CodeOverviewReport, Jt as apiErrorSchema, K as AutomationUpdate, Kn as ConversationCost, Kr as CodeActivityDay, Kt as startConnectionResponseSchema, L as AutomationExecutionList, Ln as AcceptedConversationMessage, Lr as conversationSummaryReportSchema, Lt as disconnectServiceAccountResponseSchema, M as statSchema, Mn as ConversationStatsItem, Mr as conversationPendingMessageDeliverySchema, Mt as createdPersonalTokenSchema, N as statsReportSchema, Nn as ConversationStatsReport, Nr as conversationPendingMessageSchema, Nt as personalTokenListSchema, O as skillReportSchema, On as conversationReadPositionSchema, Or as conversationFeedQuerySchema, Ot as USER_CUSTOMIZATION_MAX_CHARS, P as AutomationEdit, Pn as GuardianMetricDay, Pr as conversationPendingMessagesReportSchema, Pt as personalTokenMetadataSchema, Q as automationExecutionListSchema, Qn as ConversationParams, Qr as codeActivityDaySchema, Qt as LocationDirectoryReport, R as AutomationExecutionStatusDay, Rn as ActorIdentity, Rr as createConversationBodySchema, Rt as serviceAccountListSchema, S as pluginOperationalReportSchema, Si as InputImage, Sn as conversationWatchesReportSchema, Sr as conversationAuxiliaryCostsSchema, St as deleteWorkspaceResponseSchema, T as pluginSchema, Ti as MessageAttachment, Tn as conversationChildAgentSchema, Tr as conversationEventHistorySchema, Tt as workspaceParamsSchema, U as AutomationRunWindows, Un as ConversationActivityPreview, Ur as steerConversationPendingMessagesResponseSchema, Ut as connectionParamsSchema, V as AutomationRun, Vn as CancelConversationPendingMessagesBody, Vr as forkConversationResponseSchema, Vt as startServiceAccountSignInResponseSchema, W as AutomationScheduleIntent, Wn as ConversationAgentTreeNode, Wr as conversationTurnFailureCodeSchema, Wt as connectionSchema, X as automationEditSchema, Xn as ConversationFeed, Xr as CodeRepositoryReport, Xt as LocationActorSummaryReport, Y as automationEditErrorSchema, Yn as ConversationEventPage, Yr as CodePersonReport, Yt as LocationActivityDayReport, Z as automationEventCatalogSchema, Zn as ConversationModelUsage, Zr as CodeRepositorySummary, Zt as LocationDetailReport, _ as RuntimeInfoReport, _i as UserInputRequest, _n as personParamsSchema, _r as archiveConversationBodySchema, _t as scheduledAutomationSummarySchema, a as reviewItemCountSchema, ai as codeRepositorySummarySchema, an as ActorActivityDayReport, ar as ConversationReportStatus, at as automationRunListSchema, b as healthReportSchema, bi as normalizeUserInputAnswer, bn as ConversationWatchesReport, br as cancelConversationPendingMessagesResponseSchema, bt as WorkspaceReport, c as reviewItemWaitingConversationsSchema, ci as DailyConversationActivity, cn as ActorProfileReport, cr as ConversationSurface, ct as automationScheduleIntentSchema, d as Plugin, di as messageCardText, dn as ActorWindowMetrics, dr as ConversationUsage, dt as automationUpdateSchema, ei as codeChangeSummarySchema, en as LocationSummaryReport, er as ConversationPendingMessageDelivery, et as automationExecutionStatusDaySchema, f as PluginOperationalReport, fi as resolveMessageCards, fn as PeopleActivityDayReport, fr as CreateConversationBody, ft as automationVersionActivateSchema, g as Plugins, gi as UserInputField, gn as actorProfileReportSchema, gr as acceptedConversationMessageSchema, gt as eventAutomationSummarySchema, h as PluginPackageContentReport, hi as UserInputAnswer, hn as actorDirectoryReportSchema, hr as SteerConversationPendingMessagesResponse, ht as automationVersionSchema, i as reviewItemActionSchema, ii as codeRepositoryReportSchema, in as locationParamsSchema, ir as ConversationReportMessageEvent, it as automationParamsSchema, j as StatsReport, jn as ConversationMetricDay, jr as conversationPendingAuthorizationSchema, jt as createPersonalTokenBodySchema, k as skillReportsSchema, kn as StopConversationTurnResponse, kr as conversationFeedSchema, kt as userCustomizationSchema, l as ReviewItemChangeRecord, li as dailyConversationActivitySchema, ln as ActorSummaryReport, lr as ConversationTurnFailureCode, lt as automationSchedulePreviewSchema, m as PluginPackageContentItemReport, mi as USER_INPUT_NOTE, mn as PersonalSpendReport, mr as SteerConversationPendingMessagesBody, mt as automationVersionParamsSchema, n as ReviewItemActionBody, ni as codePersonReportSchema, nn as locationDetailReportSchema, nr as ConversationReportEvent, nt as automationListQuerySchema, o as reviewItemListSchema, oi as ConversationChildAgentTotals, on as ActorDirectoryReport, or as ConversationSourceTask, ot as automationRunSchema, p as PluginOperationalReportFeed, pi as AutomationCard, pn as PersonParams, pr as CreateConversationMessageBody, pt as automationVersionListSchema, q as AutomationVersionList, qn as ConversationDetailReport, qr as CodeChangeSummaryReport, qt as ApiError, r as ReviewItemPayload, ri as codeRepositoryParamsSchema, rn as locationDirectoryReportSchema, rr as ConversationReportEventData, rt as automationListSchema, s as reviewItemSchema, si as conversationChildAgentTotalsSchema, sn as ActorDirectoryWindows, sr as ConversationSummaryReport, st as automationRunWindowsSchema, t as OwnedObjectAnnotation, ti as codeOverviewReportSchema, tn as locationActivityDayReportSchema, tr as ConversationPendingMessagesReport, tt as automationExecutionStatusSchema, u as HealthReport, ui as MessageCard, un as ActorTotalsReport, ur as ConversationTurnFailureReason, ut as automationSummarySchema, v as SkillReport, vi as buttonUserInputField, vn as personalSpendReportSchema, vr as archiveConversationResponseSchema, vt as BaselineSnapshotReport, w as pluginPackageContentReportSchema, wi as MAX_INPUT_IMAGE_BYTES, wn as ConversationChildAgentsReport, wr as conversationDetailReportSchema, wt as workspaceListSchema, x as pluginOperationalReportFeedSchema, xi as webMessageId, xn as conversationWatchSchema, xr as conversationActivityPreviewSchema, xt as baselineSnapshotSchema, y as SkillReports, yi as isEmptyUserInputAnswer, yn as ConversationWatch, yr as cancelConversationPendingMessagesBodySchema, yt as WorkspaceListReport, z as AutomationList, zn as ArchiveConversationBody, zr as createConversationMessageBodySchema, zt as serviceAccountParamsSchema } from "../schema-CaUWl2EV.js";
2
- export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAuxiliaryCosts, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INPUT_IMAGE_TYPES, type InputImage, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MessageAttachment, type MessageCard, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
1
+ import { $ as automationExecutionSchema, $n as SteerConversationPendingMessagesBody, $r as conversationTurnFailureReasonSchema, $t as LocationParams, A as StatReport, Ai as InputImage, An as pinConversationResponseSchema, Ar as ConversationTurnFailureReason, At as PersonalTokenMetadata, B as AutomationListQuery, Bn as conversationStatsReportSchema, Br as conversationEventPageSchema, Bt as serviceAccountSchema, C as pluginPackageContentItemReportSchema, Ci as UserInputAnswer, Cn as ConversationChildAgent, Cr as ConversationReportEventData, Ct as workspaceBodySchema, D as runtimeInfoReportSchema, Di as isEmptyUserInputAnswer, Dn as PinConversationBody, Dr as ConversationSummaryReport, Dt as workspaceSchema, E as pluginsSchema, Ei as buttonUserInputField, En as conversationChildAgentsReportSchema, Er as ConversationSourceTask, Et as workspaceRepoSchema, F as AutomationExecution, Fn as ConversationMetricDay, Fr as conversationActivityPreviewSchema, Ft as personalTokenParamsSchema, G as AutomationSummary, Gn as archiveConversationResponseSchema, Gr as conversationReportEventDataSchema, Gt as disconnectConnectionResponseSchema, H as AutomationRunList, Hn as ArchiveConversationResponse, Hr as conversationFeedQuerySchema, Ht as connectionListSchema, I as AutomationExecutionDay, In as ConversationStatsItem, Ir as conversationAuxiliaryCostsSchema, It as revokePersonalTokenResponseSchema, J as ListedAutomationVersion, Jn as CancelConversationPendingMessagesBody, Jr as createConversationBodySchema, Jt as apiErrorSchema, K as AutomationUpdate, Kn as archiveDoneConversationsResponseSchema, Kr as conversationReportEventSchema, Kt as startConnectionResponseSchema, L as AutomationExecutionList, Ln as ConversationStatsReport, Lr as conversationDetailQuerySchema, Lt as disconnectServiceAccountResponseSchema, M as statSchema, Mi as MAX_INPUT_IMAGE_BYTES, Mn as conversationReadPositionSchema, Mr as CreateConversationBody, Mt as createdPersonalTokenSchema, N as statsReportSchema, Ni as MessageAttachment, Nn as StopConversationTurnResponse, Nr as CreateConversationMessageBody, Nt as personalTokenListSchema, O as skillReportSchema, Oi as normalizeUserInputAnswer, On as PinConversationResponse, Or as ConversationSurface, Ot as USER_CUSTOMIZATION_MAX_CHARS, P as AutomationEdit, Pi as INPUT_IMAGE_TYPES, Pn as stopConversationTurnResponseSchema, Pr as acceptedConversationMessageSchema, Pt as personalTokenMetadataSchema, Q as automationExecutionListSchema, Qn as ConversationPendingMessagesReport, Qr as conversationTurnFailureCodeSchema, Qt as LocationDirectoryReport, R as AutomationExecutionStatusDay, Rn as GuardianMetricDay, Rr as conversationDetailReportSchema, Rt as serviceAccountListSchema, S as pluginOperationalReportSchema, Si as USER_INPUT_NOTE, Sn as conversationWatchesReportSchema, Sr as ConversationReportEvent, St as deleteWorkspaceResponseSchema, T as pluginSchema, Ti as UserInputRequest, Tn as conversationChildAgentSchema, Tr as ConversationReportStatus, Tt as workspaceParamsSchema, U as AutomationRunWindows, Un as ConversationAutoArchive, Ur as conversationFeedSchema, Ut as connectionParamsSchema, V as AutomationRun, Vn as ArchiveConversationBody, Vr as conversationEventsQuerySchema, Vt as startServiceAccountSignInResponseSchema, W as AutomationScheduleIntent, Wn as archiveConversationBodySchema, Wr as conversationParamsSchema, Wt as connectionSchema, X as automationEditSchema, Xn as ConversationPendingMessage, Xr as forkConversationBodySchema, Xt as LocationActorSummaryReport, Y as automationEditErrorSchema, Yn as CancelConversationPendingMessagesResponse, Yr as createConversationMessageBodySchema, Yt as LocationActivityDayReport, Z as automationEventCatalogSchema, Zn as ConversationPendingMessageDelivery, Zr as forkConversationResponseSchema, Zt as LocationDetailReport, _ as RuntimeInfoReport, _i as dailyConversationActivitySchema, _n as personParamsSchema, _r as ConversationEventHistory, _t as scheduledAutomationSummarySchema, a as reviewItemCountSchema, ai as CodeRepositorySummary, an as ActorActivityDayReport, ar as conversationPendingMessageSchema, at as automationRunListSchema, b as healthReportSchema, bi as resolveMessageCards, bn as ConversationWatchesReport, br as ConversationModelUsage, bt as WorkspaceReport, c as reviewItemWaitingConversationsSchema, ci as codeChangeSummarySchema, cn as ActorProfileReport, cr as steerConversationPendingMessagesResponseSchema, ct as automationScheduleIntentSchema, d as Plugin, di as codeRepositoryParamsSchema, dn as ActorWindowMetrics, dr as CONVERSATION_DETAIL_VERSION_HEADER, dt as automationUpdateSchema, ei as CodeActivityDay, en as LocationSummaryReport, er as SteerConversationPendingMessagesResponse, et as automationExecutionStatusDaySchema, f as PluginOperationalReport, fi as codeRepositoryReportSchema, fn as PeopleActivityDayReport, fr as ConversationActivityPreview, ft as automationVersionActivateSchema, g as Plugins, gi as DailyConversationActivity, gn as actorProfileReportSchema, gr as ConversationDetailReport, gt as eventAutomationSummarySchema, h as PluginPackageContentReport, hi as conversationChildAgentTotalsSchema, hn as actorDirectoryReportSchema, hr as ConversationCost, ht as automationVersionSchema, i as reviewItemActionSchema, ii as CodeRepositoryReport, in as locationParamsSchema, ir as conversationPendingMessageDeliverySchema, it as automationParamsSchema, j as StatsReport, ji as MAX_INPUT_IMAGES, jn as ConversationReadPosition, jr as ConversationUsage, jt as createPersonalTokenBodySchema, k as skillReportsSchema, ki as webMessageId, kn as pinConversationBodySchema, kr as ConversationTurnFailureCode, kt as userCustomizationSchema, l as ReviewItemChangeRecord, li as codeOverviewReportSchema, ln as ActorSummaryReport, lr as AcceptedConversationMessage, lt as automationSchedulePreviewSchema, m as PluginPackageContentItemReport, mi as ConversationChildAgentTotals, mn as PersonalSpendReport, mr as ConversationAuxiliaryCosts, mt as automationVersionParamsSchema, n as ReviewItemActionBody, ni as CodeOverviewReport, nn as locationDetailReportSchema, nr as cancelConversationPendingMessagesResponseSchema, nt as automationListQuerySchema, o as reviewItemListSchema, oi as codeActivityDaySchema, on as ActorDirectoryReport, or as conversationPendingMessagesReportSchema, ot as automationRunSchema, p as PluginOperationalReportFeed, pi as codeRepositorySummarySchema, pn as PersonParams, pr as ConversationAgentTreeNode, pt as automationVersionListSchema, q as AutomationVersionList, qn as conversationAutoArchiveSchema, qr as conversationSummaryReportSchema, qt as ApiError, r as ReviewItemPayload, ri as CodePersonReport, rn as locationDirectoryReportSchema, rr as conversationPendingAuthorizationSchema, rt as automationListSchema, s as reviewItemSchema, si as codeChangeSummaryReportSchema, sn as ActorDirectoryWindows, sr as steerConversationPendingMessagesBodySchema, st as automationRunWindowsSchema, t as OwnedObjectAnnotation, ti as CodeChangeSummaryReport, tn as locationActivityDayReportSchema, tr as cancelConversationPendingMessagesBodySchema, tt as automationExecutionStatusSchema, u as HealthReport, ui as codePersonReportSchema, un as ActorTotalsReport, ur as ActorIdentity, ut as automationSummarySchema, v as SkillReport, vi as MessageCard, vn as personalSpendReportSchema, vr as ConversationEventPage, vt as BaselineSnapshotReport, w as pluginPackageContentReportSchema, wi as UserInputField, wn as ConversationChildAgentsReport, wr as ConversationReportMessageEvent, wt as workspaceListSchema, x as pluginOperationalReportFeedSchema, xi as AutomationCard, xn as conversationWatchSchema, xr as ConversationParams, xt as baselineSnapshotSchema, y as SkillReports, yi as messageCardText, yn as ConversationWatch, yr as ConversationFeed, yt as WorkspaceListReport, z as AutomationList, zn as GuardianStats, zr as conversationEventHistorySchema, zt as serviceAccountParamsSchema } from "../schema-Tr484cCC.js";
2
+ export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INPUT_IMAGE_TYPES, type InputImage, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MessageAttachment, type MessageCard, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type PinConversationBody, type PinConversationResponse, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
@@ -1,7 +1,7 @@
1
- import { c as conversationTurnFailureReasonSchema, s as conversationTurnFailureCodeSchema, t as INPUT_IMAGE_TYPES } from "../media-DstkkoNP.js";
2
- import { A as createConversationMessageBodySchema, B as messageCardText, C as conversationReportEventSchema, E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, G as MAX_INPUT_IMAGE_BYTES, I as conversationReadPositionSchema, M as forkConversationResponseSchema, N as steerConversationPendingMessagesBodySchema, P as steerConversationPendingMessagesResponseSchema, S as conversationReportEventDataSchema, U as resolveMessageCards, W as MAX_INPUT_IMAGES, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as forkConversationBodySchema, k as createConversationBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema } from "../conversation-DppJ83Hw.js";
1
+ import { c as conversationTurnFailureReasonSchema, s as conversationTurnFailureCodeSchema, t as INPUT_IMAGE_TYPES } from "../media-DTAA8Qs_.js";
2
+ import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, E as conversationChildAgentTotalsSchema, F as MAX_INPUT_IMAGES, I as MAX_INPUT_IMAGE_BYTES, P as resolveMessageCards, S as createConversationBodySchema, T as forkConversationResponseSchema, c as conversationDetailReportSchema, d as conversationEventsQuerySchema, f as conversationFeedQuerySchema, g as conversationReportEventSchema, h as conversationReportEventDataSchema, i as conversationActivityPreviewSchema, j as messageCardText, l as conversationEventHistorySchema, m as conversationParamsSchema, n as acceptedConversationMessageSchema, o as conversationAuxiliaryCostsSchema, p as conversationFeedSchema, s as conversationDetailQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventPageSchema, w as forkConversationBodySchema, y as conversationSummaryReportSchema } from "../conversation-CZfyQvdm.js";
3
3
  import { S as userCustomizationSchema, _ as isEmptyUserInputAnswer, b as webMessageId, h as buttonUserInputField, m as USER_INPUT_NOTE, v as normalizeUserInputAnswer, x as USER_CUSTOMIZATION_MAX_CHARS } from "../reporting-window-DgHgwQB3.js";
4
- import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-B8_mC68r.js";
4
+ import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-DphoTRYl.js";
5
5
  import { a as pluginPackageContentItemReportSchema, c as pluginsSchema, d as skillReportsSchema, i as pluginOperationalReportSchema, l as runtimeInfoReportSchema, n as healthReportSchema, o as pluginPackageContentReportSchema, r as pluginOperationalReportFeedSchema, s as pluginSchema, t as apiErrorSchema, u as skillReportSchema } from "../common-Eu6sx09c.js";
6
- import { $ as codeRepositorySummarySchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, J as codeChangeSummarySchema, K as codeActivityDaySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, U as connectionSchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, d as reviewItemCountSchema, et as conversationWatchSchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, n as statsReportSchema, nt as conversationChildAgentSchema, o as workspaceListSchema, p as reviewItemListSchema, q as codeChangeSummaryReportSchema, r as baselineSnapshotSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, t as statSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema } from "../schema-Cal-EFdi.js";
7
- export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
6
+ import { $ as codeRepositorySummarySchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, J as codeChangeSummarySchema, K as codeActivityDaySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, U as connectionSchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, _t as conversationAutoArchiveSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, ct as conversationPendingAuthorizationSchema, d as reviewItemCountSchema, dt as conversationPendingMessagesReportSchema, et as conversationWatchSchema, ft as steerConversationPendingMessagesBodySchema, g as reviewItemWaitingConversationsSchema, gt as archiveDoneConversationsResponseSchema, h as reviewItemSchema, ht as archiveConversationResponseSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationPendingMessageDeliverySchema, mt as archiveConversationBodySchema, n as statsReportSchema, nt as conversationChildAgentSchema, o as workspaceListSchema, ot as cancelConversationPendingMessagesBodySchema, p as reviewItemListSchema, pt as steerConversationPendingMessagesResponseSchema, q as codeChangeSummaryReportSchema, r as baselineSnapshotSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, st as cancelConversationPendingMessagesResponseSchema, t as statSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, ut as conversationPendingMessageSchema, v as serviceAccountListSchema, vt as pinConversationBodySchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, yt as pinConversationResponseSchema } from "../schema-B5fpczDw.js";
7
+ export { CONVERSATION_DETAIL_VERSION_HEADER, INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as ConversationWorkQueue } from "./queue-C37RbDVc.js";
2
- import "./db-Ck6TXQIx.js";
2
+ import "./db-BjLzDJCt.js";
3
3
  import { Hono } from "hono";
4
4
  import { z } from "zod";
5
5
  import { User } from "@sentry/junior-plugin-api";
@@ -21,6 +21,17 @@ export declare function authenticatePersonalToken(token: string, now?: Date): Pr
21
21
  * needs a configured list, so an empty list allows no email.
22
22
  */
23
23
  export declare function isAllowedSignInEmail(email: string, allowedDomains: readonly string[]): boolean;
24
+ /** A user's auto-archive settings. */
25
+ type AutoArchiveSettings = {
26
+ autoArchiveDefault: boolean;
27
+ autoArchiveGraceHours: number;
28
+ };
29
+ /** Settings of a user who has not changed auto-archive. */
30
+ export declare const DEFAULT_AUTO_ARCHIVE_SETTINGS: AutoArchiveSettings;
31
+ /** Read the user's auto-archive settings. */
32
+ export declare function readUserAutoArchiveSettings(userId: string): Promise<AutoArchiveSettings | undefined>;
33
+ /** Save changed auto-archive settings and return the saved settings. */
34
+ export declare function updateUserAutoArchiveSettings(userId: string, settings: Partial<AutoArchiveSettings>): Promise<AutoArchiveSettings | undefined>;
24
35
  /** Resolve or create the canonical user for one authenticated viewer. */
25
36
  export declare function resolveViewerUser(email: string): Promise<User | undefined>;
26
37
  /** Read the photo path of one canonical user: Slack, then Google. */
@@ -34,4 +45,4 @@ export interface JuniorApiOptions {
34
45
  }
35
46
  /** Create Junior's production REST API for authenticated dashboard consumers. */
36
47
  export declare function createJuniorApi(options?: JuniorApiOptions): Hono<JuniorApiEnv>;
37
- export type { ConversationWorkQueue, JuniorApiVariables };
48
+ export type { AutoArchiveSettings, ConversationWorkQueue, JuniorApiVariables };
package/dist/api.js CHANGED
@@ -1,27 +1,28 @@
1
- import { Aa as createPluginLogger, Ar as hash, Bn as getPlugins, Cr as updateWorkspace, Dn as createUserTokenStore, Ha as readConversationEventPage, Jn as countReviewItemsNeedingUser, Si as SANDBOX_RUNTIME, Sr as listWorkspacesByRepository, Tn as isExperimentalFeatureEnabled, _r as createWorkspace, ar as canActOnReviewItem, cr as isOnlyAssignee, er as listWaitingConversations, fr as reviewItemReaderForUser, io as createPluginCache, ja as readConversationAccessFromSql, kn as webActorUserIds, kr as create, ro as lookupSlackUser, tr as searchReviewItems, vr as deleteWorkspace, wi as workspaceRepoCheckoutPath, wr as WorkspaceValidationError, xr as listWorkspaces, yr as getWorkspace } from "./projection-6dXaN0n-.js";
2
- import { m as escapeXml } from "./client-7diKvInp.js";
3
- import { m as logInfo, p as logException } from "./logging-B04X_eCB.js";
4
- import { C as getSqlExecutor, D as loadConversationSlackTenantIds, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-CQwBszc7.js";
5
- import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, s as juniorConversations } from "./agent-invocations-CUWrrzkc.js";
6
- import { C as juniorCodeChanges, b as juniorConversationEvents, w as juniorCodeRepositories, x as juniorApiTokens, y as juniorConversationMetrics } from "./executor-BFKmqxYe.js";
7
- import { t as INPUT_IMAGE_TYPES } from "./media-DstkkoNP.js";
8
- import { n as pluginCatalogRuntime } from "./catalog-runtime--sC2CYLQ.js";
9
- import { $ as readViewerAutomations, Ct as listChildAgents, G as readViewerAutomationEdit, H as activateViewerAutomationVersion, K as updateViewerAutomation, Mt as saveUserCustomization, Q as readViewerAutomationVersions, S as createSlackReviewItemShow, U as changeViewerAutomationLifecycle, W as deleteViewerTask, X as readViewerAutomationRuns, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, et as AutomationEditError, ft as webActorFromUser, gt as readLiveAttachment, h as readStats, jt as readUserCustomization, lt as createAndEnqueueConversation, mt as decodeInputImages, nt as listOwnedWatches, ot as acceptsWebMessages, q as ViewerTaskNotFoundError, st as appendAndEnqueueWebMessage } from "./agent-runner-sMpA5qGM.js";
10
- import { r as getStateAdapter } from "./adapter-DoPR2jS-.js";
11
- import { A as createConversationMessageBodySchema, I as conversationReadPositionSchema, K as readMessageAttachments, M as forkConversationResponseSchema, N as steerConversationPendingMessagesBodySchema, P as steerConversationPendingMessagesResponseSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as forkConversationBodySchema, k as createConversationBodySchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-DppJ83Hw.js";
12
- import { d as getEventCatalog } from "./session-stop-DK8LuPZW.js";
1
+ import { $r as updateWorkspace, Ba as readConversationViewerMarks, En as webActorUserIds, Gn as countReviewItemsNeedingUser, Jr as deleteWorkspace, Ln as getPlugins, Qn as searchReviewItems, Qr as listWorkspacesByRepository, Sn as isExperimentalFeatureEnabled, Yr as getWorkspace, Zn as listWaitingConversations, Zr as listWorkspaces, ai as create, ar as isOnlyAssignee, co as createPluginCache, ei as WorkspaceValidationError, ja as readConversationAccessFromSql, ka as createPluginLogger, nr as canActOnReviewItem, oi as hash, pa as workspaceRepoCheckoutPath, qr as createWorkspace, so as lookupSlackUser, ua as SANDBOX_RUNTIME, ur as reviewItemReaderForUser, wn as createUserTokenStore } from "./projection-BTge9wrH.js";
2
+ import { m as escapeXml } from "./client-v_OVYuHZ.js";
3
+ import { m as logInfo, p as logException } from "./logging-dFaXvBRK.js";
4
+ import { t as JUNIOR_VERSION } from "./version-C7HejFP2.js";
5
+ import { A as loadConversationSlackTenantIds, C as getSqlExecutor, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, tt as resolveRootConversationId, x as getConversationStore } from "./viewer-DLXajQZE.js";
6
+ import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, s as juniorConversations } from "./agent-invocations-D7c4BQGc.js";
7
+ import { C as juniorCodeChanges, b as juniorConversationEvents, h as juniorConversationParticipants, w as juniorCodeRepositories, x as juniorApiTokens, y as juniorConversationMetrics } from "./executor-CJfsD0VX.js";
8
+ import { t as INPUT_IMAGE_TYPES } from "./media-DTAA8Qs_.js";
9
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-BoOb5oUv.js";
10
+ import { $ as readViewerAutomations, Ct as listChildAgents, Et as conversationSubtreeColumns, G as readViewerAutomationEdit, H as activateViewerAutomationVersion, K as updateViewerAutomation, Mt as saveUserCustomization, Q as readViewerAutomationVersions, S as createSlackReviewItemShow, Tt as conversationSubtree, U as changeViewerAutomationLifecycle, W as deleteViewerTask, X as readViewerAutomationRuns, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, et as AutomationEditError, ft as webActorFromUser, gt as readLiveAttachment, h as readStats, jt as readUserCustomization, lt as createAndEnqueueConversation, mt as decodeInputImages, nt as listOwnedWatches, ot as acceptsWebMessages, q as ViewerTaskNotFoundError, st as appendAndEnqueueWebMessage } from "./agent-runner-DE-43MPb.js";
11
+ import { r as getStateAdapter } from "./adapter-BXosqTMx.js";
12
+ import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, R as readMessageAttachments, S as createConversationBodySchema, T as forkConversationResponseSchema, a as conversationAttachmentParamsSchema, c as conversationDetailReportSchema, d as conversationEventsQuerySchema, f as conversationFeedQuerySchema, m as conversationParamsSchema, n as acceptedConversationMessageSchema, p as conversationFeedSchema, s as conversationDetailQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventPageSchema, w as forkConversationBodySchema } from "./conversation-CZfyQvdm.js";
13
+ import { d as getEventCatalog } from "./session-stop-BsS4qFS2.js";
13
14
  import { S as userCustomizationSchema, a as fillUtcSixHours, b as webMessageId, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, n as HOUR_MS$1, o as startOfUtcHour, r as fillUtcDays, s as sumUtcHoursIntoSixHours, t as DAY_MS$1, u as trailingUtcSixHourWindow } from "./reporting-window-DgHgwQB3.js";
14
- import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-8I5DkrfI.js";
15
- import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-Bywqo1WJ.js";
16
- import { E as steerWebPendingMessages, a as cancelHumanFacingPendingMessages, g as getConversationWorkState, h as getConversation } from "./store-BgH2P3X9.js";
17
- import { F as conversationRangeColumns, N as conversationActiveDaysColumn, P as conversationAggregateColumns, ct as AutomationConflictError, ft as automationEventCatalog, j as readAutomationTitlesByConversationId } from "./turn-session-routing-DddybdNu.js";
18
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CUuVJCKT.js";
19
- import { N as ScheduleIntentError, P as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-B8_mC68r.js";
15
+ import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-B_7h2cXx.js";
16
+ import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CAL4A2y7.js";
17
+ import { E as steerWebPendingMessages, a as cancelHumanFacingPendingMessages, g as getConversationWorkState, h as getConversation } from "./store-CGJZTEVz.js";
18
+ import { F as conversationRangeColumns, N as conversationActiveDaysColumn, P as conversationAggregateColumns, ct as AutomationConflictError, ft as automationEventCatalog, j as readAutomationTitlesByConversationId } from "./turn-session-routing-DnSaaEpn.js";
19
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-BkEv20zf.js";
20
+ import { N as ScheduleIntentError, P as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-DphoTRYl.js";
20
21
  import { c as pluginsSchema, d as skillReportsSchema, l as runtimeInfoReportSchema, n as healthReportSchema, r as pluginOperationalReportFeedSchema, t as apiErrorSchema } from "./common-Eu6sx09c.js";
21
- import { $ as readHealthReport, G as actOnReviewItem, K as closeReviewItemsAnsweredByReply, N as clearSlackPendingReactions, O as isAllowedSignInEmail, U as parseContent, W as ReviewItemActionError, Y as getAttachmentStorage, _ as encodeConversationCursor, a as keepQuickQuestionForViewer, b as jsonResponse, c as readConversationAuxiliaryCostsFromSql, d as conversationEventHistory, f as conversationSummaryFromStoredConversation, g as decodeConversationCursor, h as readFirstHumanMessageTexts, i as forkConversationForViewer, l as childAgentTotalsReport, m as resolveMentions, n as readConversationDetail, o as readConversationFeed, p as attachConversationMentions, q as readReviewItemForUser, r as markConversationRead, s as readConversationRecordFromSql, t as stopConversationTurnForViewer, u as readConversationTreeMetricsFromSql, v as archiveConversation, w as getProductionSlackAdapter, x as throwApiError, y as emptyResponse } from "./stop-DthSy-z8.js";
22
- import { f as legacyWebMailboxMetadataSchema } from "./result-BgAW90IM.js";
23
- import { a as startConnection, l as getWebAuthorization, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-C4-4fxaE.js";
24
- import { A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, d as reviewItemCountSchema, f as reviewItemListQuerySchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, m as reviewItemParamsSchema, n as statsReportSchema, o as workspaceListSchema, p as reviewItemListSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, z as activitySixHours$1 } from "./schema-Cal-EFdi.js";
22
+ import { $ as setConversationAutoArchive, C as getProductionSlackAdapter, D as isAllowedSignInEmail, G as closeReviewItemsAnsweredByReply, H as parseContent, J as DEFAULT_AUTO_ARCHIVE_SETTINGS, K as readReviewItemForUser, M as clearSlackPendingReactions, U as ReviewItemActionError, W as actOnReviewItem, X as readConversationAutoArchive, Y as archiveViewerDoneConversations, Z as readUserAutoArchiveSettings, _ as readFirstHumanMessageTexts, a as readConversationAgentTree, b as archiveConversation, c as readConversationForks, ct as readHealthReport, et as updateUserAutoArchiveSettings, f as readConversationAuxiliaryCostsFromSql, g as resolveMentions, h as conversationSummaryFromStoredConversation, i as readConversationReadPosition, it as getAttachmentStorage, l as readConversationEvents, m as readConversationTreeMetricsFromSql, n as readConversationDetail, nt as jsonResponse, o as forkConversationForViewer, p as childAgentTotalsReport, r as markConversationRead, rt as throwApiError, s as keepQuickQuestionForViewer, t as stopConversationTurnForViewer, tt as emptyResponse, u as readConversationFeed } from "./stop-D5R82Wla.js";
23
+ import { f as legacyWebMailboxMetadataSchema } from "./result-5LBEfnLX.js";
24
+ import { a as startConnection, l as getWebAuthorization, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-RC4NXAx8.js";
25
+ import { A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, _t as conversationAutoArchiveSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, d as reviewItemCountSchema, dt as conversationPendingMessagesReportSchema, f as reviewItemListQuerySchema, ft as steerConversationPendingMessagesBodySchema, g as reviewItemWaitingConversationsSchema, gt as archiveDoneConversationsResponseSchema, h as reviewItemSchema, ht as archiveConversationResponseSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, m as reviewItemParamsSchema, mt as archiveConversationBodySchema, n as statsReportSchema, o as workspaceListSchema, ot as cancelConversationPendingMessagesBodySchema, p as reviewItemListSchema, pt as steerConversationPendingMessagesResponseSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, st as cancelConversationPendingMessagesResponseSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, v as serviceAccountListSchema, vt as pinConversationBodySchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, yt as pinConversationResponseSchema, z as activitySixHours$1 } from "./schema-B5fpczDw.js";
25
26
  import { Hono } from "hono";
26
27
  import path from "node:path";
27
28
  import { createHash, randomBytes, randomUUID } from "node:crypto";
@@ -54,6 +55,42 @@ const requireAdmin = createMiddleware(async (context, next) => {
54
55
  if (viewer.isAdmin !== true) throwApiError(403, "Only Junior admins can do this.");
55
56
  await next();
56
57
  });
58
+ // src/api/conversations/pin.ts
59
+ /**
60
+ * Pin or unpin one conversation for the signed-in viewer.
61
+ *
62
+ * A pin lives on the viewer's participant row, and that row grants send and
63
+ * control access. So only a participant can pin, the same as archive. The
64
+ * root actor may have no row yet, so pinning adds it. A pin also restores an
65
+ * archived conversation, because the Pinned section shows only active
66
+ * conversations.
67
+ */
68
+ async function pinConversation(viewer, conversationId, body) {
69
+ if (!(await readConversationAccessFromSql(getDb(), [conversationId], viewer)).get(conversationId)?.isParticipant) throwApiError(404, "Conversation not found.");
70
+ const executor = getSqlExecutor();
71
+ const rootConversationId = await resolveRootConversationId(executor, conversationId);
72
+ const db = executor.db();
73
+ if (!body.pinned) {
74
+ await db.update(juniorConversationParticipants).set({ pinnedAt: null }).where(and(eq(juniorConversationParticipants.userId, viewer.id), eq(juniorConversationParticipants.rootConversationId, rootConversationId)));
75
+ return { pinnedAt: null };
76
+ }
77
+ const [root] = await db.select({ lastActivityAt: juniorConversations.lastActivityAt }).from(juniorConversations).where(eq(juniorConversations.conversationId, rootConversationId)).limit(1);
78
+ if (!root) throwApiError(404, "Conversation not found.");
79
+ const pinnedAt = /* @__PURE__ */ new Date();
80
+ await db.insert(juniorConversationParticipants).values({
81
+ lastMessageAt: root.lastActivityAt,
82
+ pinnedAt,
83
+ rootConversationId,
84
+ userId: viewer.id
85
+ }).onConflictDoUpdate({
86
+ target: [juniorConversationParticipants.userId, juniorConversationParticipants.rootConversationId],
87
+ set: {
88
+ archivedAt: null,
89
+ pinnedAt
90
+ }
91
+ });
92
+ return { pinnedAt: pinnedAt.toISOString() };
93
+ }
57
94
  // src/api/conversations/child-agents.ts
58
95
  /**
59
96
  * Load the direct child agents of one Conversation, or throw a standard API
@@ -216,36 +253,55 @@ async function appendConversationMessageForViewer(viewer, conversationId, body,
216
253
  throwApiError(500, "Unable to append message.", error);
217
254
  }
218
255
  }
219
- // src/api/conversations/event-list.ts
220
- /** Read one bounded page of reporting events before a signed cursor. */
221
- async function readConversationEvents(conversationId, beforeValue, options = {}) {
222
- const record = await readConversationRecordFromSql(conversationId);
223
- if (!record) return void 0;
224
- const before = decodeConversationCursor({
225
- conversationId,
226
- cursor: beforeValue
227
- });
228
- if (!before) throwApiError(400, "Invalid conversation cursor.");
229
- const canExposePayload = (await readConversationAccessFromSql(getDb(), [conversationId], options.viewer)).get(conversationId)?.canViewPrivateContent ?? false;
230
- const transcriptPurgedAtMs = record.conversation.transcriptPurgedAtMs;
231
- const page = transcriptPurgedAtMs === void 0 ? await readConversationEventPage(getSqlExecutor(), {
232
- beforeSeq: before.seq,
233
- canExposePayload,
234
- conversationId,
235
- limit: options.limit ?? 500
236
- }) : { events: [] };
237
- return conversationEventPageSchema.parse({
238
- events: (await attachConversationMentions(getSqlExecutor(), conversationId, { events: page.events })).events,
239
- eventHistory: conversationEventHistory({
240
- canExposePayload,
241
- ...transcriptPurgedAtMs === void 0 ? void 0 : { transcriptPurgedAtMs }
242
- }),
243
- ...page.previousSeq === void 0 ? void 0 : { previousCursor: encodeConversationCursor({
244
- conversationId,
245
- seq: page.previousSeq
246
- }) },
247
- generatedAt: (/* @__PURE__ */ new Date()).toISOString()
248
- });
256
+ // src/api/conversations/detail-etag.ts
257
+ /**
258
+ * Sum the detail versions of a Conversation and its child agents. Child
259
+ * writes bump only their own row, and the row count changes when a child
260
+ * starts, so the parent needs no bump of its own.
261
+ */
262
+ async function readSubtreeDetailVersion(conversationId) {
263
+ const [row] = await getDb().select({
264
+ conversations: sql`count(*)::int`,
265
+ version: sql`coalesce(sum(${juniorConversations.detailVersion}), 0)::text`
266
+ }).from(juniorConversations).innerJoin(conversationSubtree([conversationId]), eq(conversationSubtreeColumns.conversationId, juniorConversations.conversationId));
267
+ return row ?? {
268
+ conversations: 0,
269
+ version: "0"
270
+ };
271
+ }
272
+ /**
273
+ * Return the detail ETag without building the report, or undefined for a
274
+ * missing Conversation.
275
+ *
276
+ * Shared content is covered by `detail_version`. Viewer state (marks, read
277
+ * position, auto-archive choice) and data that other Conversations own (forks,
278
+ * agent tree labels) are cheap, so they are read on each request. Names, avatars, Automation titles, and plugin sidebar
279
+ * labels are not covered: they refresh with the next detail change or a reload.
280
+ */
281
+ async function readConversationDetailEtag(conversationId, options) {
282
+ const { viewer } = options;
283
+ const [subtree, access, viewerMarks, forks, agentTree, readPosition, autoArchive] = await Promise.all([
284
+ readSubtreeDetailVersion(conversationId),
285
+ readConversationAccessFromSql(getDb(), [conversationId], viewer),
286
+ viewer ? readConversationViewerMarks(viewer, conversationId) : void 0,
287
+ readConversationForks(conversationId, viewer),
288
+ readConversationAgentTree(conversationId, viewer),
289
+ viewer ? readConversationReadPosition(viewer, conversationId) : void 0,
290
+ viewer ? readConversationAutoArchive(viewer, conversationId) : void 0
291
+ ]);
292
+ if (subtree.conversations === 0) return void 0;
293
+ const basis = JSON.stringify({
294
+ access: access.get(conversationId) ?? null,
295
+ agentTree: agentTree ?? null,
296
+ autoArchive: autoArchive ?? null,
297
+ forks,
298
+ junior: JUNIOR_VERSION,
299
+ limit: options.limit,
300
+ readPosition: readPosition ?? null,
301
+ subtree,
302
+ viewerMarks: viewerMarks ?? null
303
+ });
304
+ return createHash("sha256").update(basis).digest("hex");
249
305
  }
250
306
  // src/api/conversations/cancel-pending-messages.ts
251
307
  /** Cancel accepted human-facing mailbox rows for one conversation participant. */
@@ -906,17 +962,20 @@ function createConversationRoutes(options) {
906
962
  const body = context.req.valid("json");
907
963
  return jsonResponse(archiveConversationResponseSchema, await archiveConversation(viewer, conversationId, body));
908
964
  });
965
+ app.patch("/:conversationId/pin", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", pinConversationBodySchema, "Invalid request body."), async (context) => jsonResponse(pinConversationResponseSchema, await pinConversation(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
909
966
  app.put("/:conversationId/read-position", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationReadPositionSchema, "Invalid request body."), async (context) => {
910
967
  const viewer = context.get("viewer");
911
968
  const { conversationId } = context.req.valid("param");
912
969
  const body = context.req.valid("json");
913
970
  return jsonResponse(conversationReadPositionSchema, await markConversationRead(viewer, conversationId, body));
914
971
  });
972
+ app.post("/archive-done", requireViewer, async (context) => jsonResponse(archiveDoneConversationsResponseSchema, await archiveViewerDoneConversations(context.get("viewer"))));
973
+ app.patch("/:conversationId/auto-archive", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationAutoArchiveSchema, "Invalid request body."), async (context) => jsonResponse(conversationAutoArchiveSchema, await setConversationAutoArchive(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json").autoArchive)));
915
974
  app.get("/:conversationId/events", validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("query", conversationEventsQuerySchema, "Invalid query parameters."), async (context) => {
916
975
  const { conversationId } = context.req.valid("param");
917
- const { before, limit } = context.req.valid("query");
976
+ const { limit, ...boundary } = context.req.valid("query");
918
977
  const viewer = context.get("viewer");
919
- const report = await readConversationEvents(conversationId, before, {
978
+ const report = await readConversationEvents(conversationId, boundary, {
920
979
  limit,
921
980
  ...viewer ? { viewer } : void 0
922
981
  });
@@ -969,12 +1028,24 @@ function createConversationRoutes(options) {
969
1028
  const { conversationId } = context.req.valid("param");
970
1029
  const query = context.req.valid("query");
971
1030
  const viewer = context.get("viewer");
1031
+ const etag = await readConversationDetailEtag(conversationId, {
1032
+ limit: query.limit,
1033
+ ...viewer ? { viewer } : void 0
1034
+ });
1035
+ const headers = etag ? {
1036
+ "cache-control": "private, no-store",
1037
+ [CONVERSATION_DETAIL_VERSION_HEADER]: etag
1038
+ } : void 0;
1039
+ if (headers && context.req.header("x-junior-detail-version") === etag) return new Response(null, {
1040
+ status: 304,
1041
+ headers
1042
+ });
972
1043
  const report = await readConversationDetail(conversationId, {
973
1044
  ...query,
974
1045
  ...viewer ? { viewer } : void 0
975
1046
  });
976
1047
  if (!report) throwApiError(404, "Conversation not found.");
977
- return jsonResponse(conversationDetailReportSchema, report);
1048
+ return jsonResponse(conversationDetailReportSchema, report, headers ? { headers } : void 0);
978
1049
  });
979
1050
  return app;
980
1051
  }
@@ -2248,7 +2319,7 @@ async function readPeoplePluginReports(args) {
2248
2319
  reports: [],
2249
2320
  source: "plugins"
2250
2321
  });
2251
- const { getPluginProfileReports } = await import("./projection-6dXaN0n-.js").then((n) => n.Mn);
2322
+ const { getPluginProfileReports } = await import("./projection-BTge9wrH.js").then((n) => n.kn);
2252
2323
  return pluginOperationalReportFeedSchema.parse({
2253
2324
  generatedAt: new Date(nowMs).toISOString(),
2254
2325
  reports: await getPluginProfileReports({
@@ -3276,7 +3347,7 @@ function readDescriptionText(home) {
3276
3347
  }
3277
3348
  /** Read discovered skill names for authenticated runtime diagnostics. */
3278
3349
  async function readSkillReports() {
3279
- const { discoverSkills } = await import("./skills-Bc0D7BGy.js").then((n) => n.o);
3350
+ const { discoverSkills } = await import("./skills-M0BA0_s6.js").then((n) => n.o);
3280
3351
  const skills = await discoverSkills();
3281
3352
  return skillReportsSchema.parse(skills.map((skill) => ({
3282
3353
  name: skill.name,
@@ -3285,7 +3356,7 @@ async function readSkillReports() {
3285
3356
  }
3286
3357
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
3287
3358
  async function readPlugins() {
3288
- const { pluginCatalogRuntime } = await import("./catalog-runtime--sC2CYLQ.js").then((n) => n.t);
3359
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-BoOb5oUv.js").then((n) => n.t);
3289
3360
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
3290
3361
  configKeys: plugin.manifest.configKeys ?? [],
3291
3362
  description: plugin.manifest.description,
@@ -3297,7 +3368,7 @@ async function readPlugins() {
3297
3368
  async function readRuntimeInfoReport() {
3298
3369
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
3299
3370
  import("./package-discovery-DJBompdd.js").then((n) => n.r),
3300
- import("./catalog-runtime--sC2CYLQ.js").then((n) => n.t),
3371
+ import("./catalog-runtime-BoOb5oUv.js").then((n) => n.t),
3301
3372
  readPlugins(),
3302
3373
  readSkillReports()
3303
3374
  ]);
@@ -3314,7 +3385,7 @@ async function readRuntimeInfoReport() {
3314
3385
  /** Read sanitized operational summaries contributed by plugins. */
3315
3386
  async function readPluginOperationalReportFeed() {
3316
3387
  const nowMs = Date.now();
3317
- const { getPluginOperationalReports } = await import("./projection-6dXaN0n-.js").then((n) => n.Mn);
3388
+ const { getPluginOperationalReports } = await import("./projection-BTge9wrH.js").then((n) => n.kn);
3318
3389
  return pluginOperationalReportFeedSchema.parse({
3319
3390
  source: "plugins",
3320
3391
  generatedAt: new Date(nowMs).toISOString(),
@@ -3361,4 +3432,4 @@ function createJuniorApi(options = {}) {
3361
3432
  });
3362
3433
  return app;
3363
3434
  }
3364
- export { authenticatePersonalToken, createJuniorApi, isAllowedSignInEmail, jsonResponse, readViewerAvatarUrl, resolveViewerUser, updateViewerDisplayName };
3435
+ export { DEFAULT_AUTO_ARCHIVE_SETTINGS, authenticatePersonalToken, createJuniorApi, isAllowedSignInEmail, jsonResponse, readUserAutoArchiveSettings, readViewerAvatarUrl, resolveViewerUser, updateUserAutoArchiveSettings, updateViewerDisplayName };
@@ -1,7 +1,7 @@
1
1
  import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-C37RbDVc.js";
2
- import { t as ConversationStore } from "./db-Ck6TXQIx.js";
3
- import "./schema-CaUWl2EV.js";
4
- import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
2
+ import { t as ConversationStore } from "./db-BjLzDJCt.js";
3
+ import "./schema-Tr484cCC.js";
4
+ import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
5
5
  import { Hono } from "hono";
6
6
  import "@earendil-works/pi-ai/compat";
7
7
  import "@earendil-works/pi-ai/api/anthropic-messages";
@@ -17,22 +17,9 @@ import { Client } from "@modelcontextprotocol/sdk/client";
17
17
  import "@sinclair/typebox";
18
18
  import { Message, StateAdapter } from "chat";
19
19
  import "@chat-adapter/slack";
20
- declare const TURN_REASONING_LEVELS: readonly ["none", "low", "medium", "high", "xhigh"];
21
- type TurnReasoningLevel = (typeof TURN_REASONING_LEVELS)[number];
22
- /** Runtime configuration for one named model profile. */
23
- interface ModelProfileConfig {
24
- /**
25
- * Tells models which tasks fit this profile.
26
- * Name concrete tasks. Add use and avoid cases when helpful.
27
- * Do not use model product names as the selection rule.
28
- */
29
- description?: string;
30
- modelId: string;
31
- reasoningLevel?: TurnReasoningLevel;
32
- }
33
- /** App-level profile input: a model id string or a full profile config. */
34
- type ModelProfileInput = string | ModelProfileConfig;
35
20
  interface BotModelConfig {
21
+ /** Model that runs every agent Turn. */
22
+ modelId?: string;
36
23
  /** Decision model used by the passive reply router. */
37
24
  decisionModelId?: string;
38
25
  /** Model used for embeddings. */
@@ -263,14 +250,6 @@ interface JuniorAppOptions extends BotModelConfig {
263
250
  * you are deliberately dogfooding a pre-stable surface.
264
251
  */
265
252
  experimental?: ExperimentalFeaturesConfig;
266
- /** Profile used for new conversations. Configure with `profiles`. */
267
- defaultProfile?: string;
268
- /**
269
- * Named profiles available to the router and `handoff` tool. Configure with
270
- * `defaultProfile`. Each value may be a model id string or an object with
271
- * `modelId` and optional `description` and `reasoningLevel` settings.
272
- */
273
- profiles?: Readonly<Record<string, ModelProfileInput>>;
274
253
  /** Turn and conversation limits. Unset limits keep their defaults. */
275
254
  limits?: RuntimeLimits;
276
255
  /** Slack-specific overrides applied after env parsing. */
@@ -345,4 +324,4 @@ type JuniorApp = Hono & {
345
324
  };
346
325
  /** Create a Hono app with all Junior routes. */
347
326
  declare function createApp(options?: JuniorAppOptions): Promise<JuniorApp>;
348
- export { ModelProfileInput as a, JuniorDashboardOptions as i, JuniorAppOptions as n, createApp as r, JuniorApp as t };
327
+ export { JuniorDashboardOptions as i, JuniorAppOptions as n, createApp as r, JuniorApp as t };
package/dist/app.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as ModelProfileInput, i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-DTj-yAQt.js";
2
- import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.js";
1
+ import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-CHNS-AX2.js";
2
+ import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-DtmjkTza.js";
3
3
  import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
4
- export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, type ModelProfileInput, createApp, defineJuniorPlugins };
4
+ export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };