@sentry/junior 0.284.0 → 0.285.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 (79) hide show
  1. package/dist/{adapter-CW5UW7vL.js → adapter-DN5AB4VU.js} +37 -3
  2. package/dist/{admin-DUWN8zZX.js → admin-DOITMKnn.js} +1 -1
  3. package/dist/{agent-runner-Cqr21pOU.js → agent-runner-BsWhHe4N.js} +579 -1653
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +7 -6
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +141 -43
  8. package/dist/{app-CvGalMxi.d.ts → app-DyMs9330.d.ts} +2 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +226 -186
  11. package/dist/{assistant-reply-CFE-OZMS.js → assistant-reply-9Jip5bsr.js} +1 -1
  12. package/dist/{automation-Zvx_I9Z5.js → automation-Mk8aaHzy.js} +1 -1
  13. package/dist/{background-compaction-queue-CHFzrQbS.js → background-compaction-queue-DXkLsWoH.js} +2 -2
  14. package/dist/{briefs-Cx7mkfSk.js → briefs-Cl8-nK9B.js} +5 -5
  15. package/dist/{catalog-runtime-dKOVbR7l.js → catalog-runtime-Bte6jRB2.js} +1 -1
  16. package/dist/cli/chat.js +19 -16
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/init.js +3 -0
  19. package/dist/cli/main.js +3 -3
  20. package/dist/cli/plugins.js +4 -4
  21. package/dist/cli/snapshot-create.js +4 -4
  22. package/dist/cli/upgrade.d.ts +1 -1
  23. package/dist/cli/upgrade.js +12 -17
  24. package/dist/{client-CMyH5rDz.js → client-DDbBucBw.js} +2 -2
  25. package/dist/{config-Dt3CpG17.js → config-DqFnykQT.js} +1 -1
  26. package/dist/{connections-CCHPybZP.js → connections-DA4LT9LL.js} +10 -10
  27. package/dist/{conversation-DdT7SNar.js → conversation-D8kVoCrP.js} +58 -6
  28. package/dist/{conversation-pending-messages-Dct5pheX.js → conversation-pending-messages-BvROq1bq.js} +1 -1
  29. package/dist/{conversation-privacy-BpHHhEVp.js → conversation-privacy-D0j_h70R.js} +1 -1
  30. package/dist/{credential-sync-BBPw8dam.js → credential-sync-hcsYatw-.js} +13 -13
  31. package/dist/{db-D7CCwAo8.d.ts → db-BhHZSuFw.d.ts} +18 -2
  32. package/dist/{executor-CyIwHz9r.js → executor-BLEMIgIZ.js} +11 -3
  33. package/dist/instrumentation.js +2 -2
  34. package/dist/{logging-Qo-7xGp1.js → logging-BfORLKoq.js} +1 -1
  35. package/dist/{message-DFbtOWqv.js → message-DqjuKzUx.js} +13 -23
  36. package/dist/nitro.d.ts +1 -1
  37. package/dist/nitro.js +3 -3
  38. package/dist/{oauth-callback-server-BB1gixWo.js → oauth-callback-server-CFSRzu1n.js} +2 -2
  39. package/dist/{projection-0UcUeuzn.js → projection-DliWYrnT.js} +280 -71
  40. package/dist/{prompt-CCtaGgbI.js → prompt-BvIUzY4y.js} +8 -6
  41. package/dist/{registry-DOnPkI8g.js → registry-rC7MCxu8.js} +1 -1
  42. package/dist/{reporting-window-B-QP9zX1.js → reporting-window-B4TwyuJo.js} +14 -14
  43. package/dist/{resolve-Di3omymY.js → resolve-Biu8Qw3u.js} +3 -3
  44. package/dist/result-DxJMCX47.js +299 -0
  45. package/dist/result-event-type-DD6BAgT7.js +11 -0
  46. package/dist/{runner-CnX_dTKw.js → runner-BQJSFLKg.js} +11 -11
  47. package/dist/{sandbox-egress-signals-CtxLJmmg.js → sandbox-egress-signals-6aMxJSDn.js} +1 -1
  48. package/dist/{schema-B017enNE.d.ts → schema-BUviRAs8.d.ts} +157 -220
  49. package/dist/{schema-Bn3miEd_.js → schema-BasXTvi2.js} +63 -5
  50. package/dist/{service-account-KhZIqXRi.js → service-account-BI5Wgx22.js} +3 -3
  51. package/dist/{service-account-ewDAx4Mx.js → service-account-CAE-_1dR.js} +3 -3
  52. package/dist/session-stop-CA-jOJ84.js +2924 -0
  53. package/dist/{skills-CKyotM4g.js → skills-B22duVJU.js} +2 -2
  54. package/dist/{spawn-D5D2MQdz.js → spawn-BB2_4VYn.js} +2 -2
  55. package/dist/{stop-BSKRTaRS.js → stop-DioIcEAu.js} +4821 -4199
  56. package/dist/{store-G3S0kWSD.js → store-B26LV6UP.js} +78 -311
  57. package/dist/{store-ymkEUWe4.js → store-Dn4W7qgH.js} +30 -5
  58. package/dist/{task-queue-BcOHzXxe.js → task-queue-Bt0IoR2i.js} +3 -3
  59. package/dist/{task-runner-B65cDumh.js → task-runner-D8lddjzp.js} +7 -7
  60. package/dist/{thread-state-D6rNGQu9.js → thread-state-CrFk3K_7.js} +4 -4
  61. package/dist/{turn-failure-response-BlO4nuDJ.js → turn-failure-response-DaJ04qVj.js} +7 -7
  62. package/dist/{turn-lifecycle-BQ8ETk63.js → turn-lifecycle-C2mXS7AZ.js} +1 -1
  63. package/dist/{turn-session-routing-D_GXfcAG.js → turn-session-routing-CGMKrYOj.js} +10 -10
  64. package/dist/{validation-DJG_wrg2.js → validation-TzhfQABF.js} +1 -1
  65. package/dist/{version-i1An1eTS.js → version-DSk8CFvA.js} +1 -1
  66. package/dist/version.js +1 -1
  67. package/dist/{viewer-BlpnzZZa.js → viewer-1Ea81s0b.js} +190 -53
  68. package/dist/{work-BgCW3FDC.js → work-ybG4_q5C.js} +238 -32
  69. package/dist/{worker-BJz1mwYt.js → worker-ccSyZRNz.js} +6 -6
  70. package/migrations/0083_conversation_kind.sql +11 -0
  71. package/migrations/0084_read_position_backfill.sql +25 -0
  72. package/migrations/0085_child_archived_at.sql +1 -0
  73. package/migrations/meta/0083_snapshot.json +4388 -0
  74. package/migrations/meta/0084_snapshot.json +4388 -0
  75. package/migrations/meta/0085_snapshot.json +4394 -0
  76. package/migrations/meta/_journal.json +21 -0
  77. package/package.json +4 -4
  78. package/dist/result-NvndYzCb.js +0 -483
  79. package/dist/session-stop-D_1SysjC.js +0 -1438
@@ -1,2 +1,2 @@
1
- import { $ as automationExecutionSchema, $n as GuardianMetricDay, $r as conversationAuxiliaryCostsSchema, $t as startConnectionResponseSchema, A as StatReport, Ai as codeRepositorySummarySchema, An as ConversationChildAgent, Ar as ConversationAgentTreeNode, At as PersonalTokenMetadata, B as AutomationListQuery, Bi as UserInputAnswer, Bn as reorderPinnedConversationsBodySchema, Br as ConversationReportEventData, Bt as serviceAccountSchema, C as pluginPackageContentItemReportSchema, Ci as codeActivityDaySchema, Cn as actorProfileReportSchema, Cr as conversationUnchangedDetailWithMailboxSchema, Ct as workspaceBodySchema, D as runtimeInfoReportSchema, Di as codePersonReportSchema, Dn as ConversationWatchesReport, Dr as ActorIdentity, Dt as workspaceSchema, E as pluginsSchema, Ei as codeOverviewReportSchema, En as ConversationWatch, Er as AcceptedConversationMessage, Et as workspaceRepoSchema, F as AutomationExecution, Fi as MessageCard, Fn as PinConversationResponse, Fr as ConversationEventPage, Ft as personalTokenParamsSchema, G as AutomationSummary, Gi as normalizeUserInputAnswer, Gn as conversationCatchUpSchema, Gr as ConversationSurface, Gt as DEFAULT_NOTIFICATION_SCHEDULE, H as AutomationRunList, Hi as UserInputRequest, Hn as ConversationCatchUp, Hr as ConversationReportStatus, Ht as NotificationSettings, I as AutomationExecutionDay, Ii as messageCardText, In as ReorderPinnedConversationsBody, Ir as ConversationFeed, It as revokePersonalTokenResponseSchema, J as ListedAutomationVersion, Ji as MAX_INPUT_IMAGES, Jn as StopConversationTurnResponse, Jr as ConversationUsage, Jt as notificationScheduleSchema, K as AutomationUpdate, Ki as webMessageId, Kn as ConversationReadPosition, Kr as ConversationTurnFailureCode, Kt as NotificationSchedule, L as AutomationExecutionList, Li as resolveMessageCards, Ln as ReorderPinnedConversationsResponse, Lr as ConversationModelUsage, Lt as disconnectServiceAccountResponseSchema, M as statSchema, Mi as conversationChildAgentTotalsSchema, Mn as conversationChildAgentSchema, Mr as ConversationCost, Mt as createdPersonalTokenSchema, N as statsReportSchema, Ni as DailyConversationActivity, Nn as conversationChildAgentsReportSchema, Nr as ConversationDetailReport, Nt as personalTokenListSchema, O as skillReportSchema, Oi as codeRepositoryParamsSchema, On as conversationWatchSchema, Or as CONVERSATION_DETAIL_VERSION_HEADER, Ot as USER_CUSTOMIZATION_MAX_CHARS, P as AutomationEdit, Pi as dailyConversationActivitySchema, Pn as PinConversationBody, Pr as ConversationEventHistory, Pt as personalTokenMetadataSchema, Q as automationExecutionListSchema, Qi as INPUT_IMAGE_TYPES, Qn as ConversationStatsReport, Qr as conversationActivityPreviewSchema, Qt as disconnectConnectionResponseSchema, R as AutomationExecutionStatusDay, Ri as AutomationCard, Rn as pinConversationBodySchema, Rr as ConversationParams, Rt as serviceAccountListSchema, S as pluginOperationalReportSchema, Si as CodeRepositorySummary, Sn as actorDirectoryReportSchema, Sr as conversationPendingMessagesReportSchema, St as deleteWorkspaceResponseSchema, T as pluginSchema, Ti as codeChangeSummarySchema, Tn as personalSpendReportSchema, Tr as steerConversationPendingMessagesResponseSchema, Tt as workspaceParamsSchema, U as AutomationRunWindows, Ui as buttonUserInputField, Un as ConversationCatchUpBody, Ur as ConversationSourceTask, Ut as notificationSettingsSchema, V as AutomationRun, Vi as UserInputField, Vn as reorderPinnedConversationsResponseSchema, Vr as ConversationReportMessageEvent, Vt as startServiceAccountSignInResponseSchema, W as AutomationScheduleIntent, Wi as isEmptyUserInputAnswer, Wn as conversationCatchUpBodySchema, Wr as ConversationSummaryReport, Wt as testNotificationResponseSchema, X as automationEditSchema, Xi as MessageAttachment, Xn as ConversationMetricDay, Xr as CreateConversationMessageBody, Xt as connectionParamsSchema, Y as automationEditErrorSchema, Yi as MAX_INPUT_IMAGE_BYTES, Yn as stopConversationTurnResponseSchema, Yr as CreateConversationBody, Yt as connectionListSchema, Z as automationEventCatalogSchema, Zi as INLINE_VIDEO_TYPES, Zn as ConversationStatsItem, Zr as acceptedConversationMessageSchema, Zt as connectionSchema, _ as RuntimeInfoReport, _i as CodeActivityDay, _n as ActorTotalsReport, _r as cancelConversationPendingMessagesResponseSchema, _t as scheduledAutomationSummarySchema, a as reviewItemCountSchema, ai as conversationFeedQuerySchema, an as LocationDirectoryReport, ar as archiveConversationBodySchema, at as automationRunListSchema, b as healthReportSchema, bi as CodePersonReport, bn as PersonParams, br as conversationPendingMessageDeliverySchema, bt as WorkspaceReport, c as reviewItemWaitingConversationsSchema, ci as conversationReportEventDataSchema, cn as locationActivityDayReportSchema, cr as conversationAutoArchiveSchema, ct as automationScheduleIntentSchema, d as Plugin, di as createConversationBodySchema, dn as locationParamsSchema, dr as ConversationPendingMessage, dt as automationUpdateSchema, ei as conversationDetailQuerySchema, en as ApiError, er as GuardianStats, et as automationExecutionStatusDaySchema, f as PluginOperationalReport, fi as createConversationMessageBodySchema, fn as ActorActivityDayReport, fr as ConversationPendingMessageDelivery, ft as automationVersionActivateSchema, g as Plugins, gi as conversationTurnFailureReasonSchema, gn as ActorSummaryReport, gr as cancelConversationPendingMessagesBodySchema, gt as eventAutomationSummarySchema, h as PluginPackageContentReport, hi as conversationTurnFailureCodeSchema, hn as ActorProfileReport, hr as SteerConversationPendingMessagesResponse, ht as automationVersionSchema, i as reviewItemActionSchema, ii as conversationEventsQuerySchema, in as LocationDetailReport, ir as ConversationAutoArchive, it as automationParamsSchema, j as StatsReport, ji as ConversationChildAgentTotals, jn as ConversationChildAgentsReport, jr as ConversationAuxiliaryCosts, jt as createPersonalTokenBodySchema, k as skillReportsSchema, ki as codeRepositoryReportSchema, kn as conversationWatchesReportSchema, kr as ConversationActivityPreview, kt as userCustomizationSchema, l as ReviewItemChangeRecord, li as conversationReportEventSchema, ln as locationDetailReportSchema, lr as CancelConversationPendingMessagesBody, lt as automationSchedulePreviewSchema, m as PluginPackageContentItemReport, mi as forkConversationResponseSchema, mn as ActorDirectoryWindows, mr as SteerConversationPendingMessagesBody, mt as automationVersionParamsSchema, n as ReviewItemActionBody, ni as conversationEventHistorySchema, nn as LocationActivityDayReport, nr as ArchiveConversationBody, nt as automationListQuerySchema, o as reviewItemListSchema, oi as conversationFeedSchema, on as LocationParams, or as archiveConversationResponseSchema, ot as automationRunSchema, p as PluginOperationalReportFeed, pi as forkConversationBodySchema, pn as ActorDirectoryReport, pr as ConversationPendingMessagesReport, pt as automationVersionListSchema, q as AutomationVersionList, qi as InputImage, qn as conversationReadPositionSchema, qr as ConversationTurnFailureReason, qt as isWithinNotificationSchedule, r as ReviewItemPayload, ri as conversationEventPageSchema, rn as LocationActorSummaryReport, rr as ArchiveConversationResponse, rt as automationListSchema, s as reviewItemSchema, si as conversationParamsSchema, sn as LocationSummaryReport, sr as archiveDoneConversationsResponseSchema, st as automationRunWindowsSchema, t as OwnedObjectAnnotation, ti as conversationDetailReportSchema, tn as apiErrorSchema, tr as conversationStatsReportSchema, tt as automationExecutionStatusSchema, u as HealthReport, ui as conversationSummaryReportSchema, un as locationDirectoryReportSchema, ur as CancelConversationPendingMessagesResponse, ut as automationSummarySchema, v as SkillReport, vi as CodeChangeSummaryReport, vn as ActorWindowMetrics, vr as conversationDetailWithMailboxReportSchema, vt as BaselineSnapshotReport, w as pluginPackageContentReportSchema, wi as codeChangeSummaryReportSchema, wn as personParamsSchema, wr as steerConversationPendingMessagesBodySchema, wt as workspaceListSchema, x as pluginOperationalReportFeedSchema, xi as CodeRepositoryReport, xn as PersonalSpendReport, xr as conversationPendingMessageSchema, xt as baselineSnapshotSchema, y as SkillReports, yi as CodeOverviewReport, yn as PeopleActivityDayReport, yr as conversationPendingAuthorizationSchema, yt as WorkspaceListReport, z as AutomationList, zi as USER_INPUT_NOTE, zn as pinConversationResponseSchema, zr as ConversationReportEvent, zt as serviceAccountParamsSchema } from "../schema-B017enNE.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 ConversationCatchUp, type ConversationCatchUpBody, 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, DEFAULT_NOTIFICATION_SCHEDULE, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INLINE_VIDEO_TYPES, 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 NotificationSchedule, type NotificationSettings, 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 ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, 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, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
1
+ import { $ as automationEventCatalogSchema, $i as dailyConversationActivitySchema, $n as ConversationCatchUp, $r as ConversationEventPage, $t as connectionSchema, A as skillReportSchema, Ai as createConversationBodySchema, An as conversationWatchSchema, Ar as ConversationPendingMessagesReport, At as USER_CUSTOMIZATION_MAX_CHARS, B as AutomationExecutionStatusDay, Bi as CodeRepositoryReport, Bn as renameConversationResponseSchema, Br as conversationUnchangedDetailWithMailboxSchema, Bt as serviceAccountListSchema, C as pluginOperationalReportFeedSchema, Ci as conversationEventsQuerySchema, Cn as PersonalSpendReport, Cr as archiveConversationResponseSchema, Ct as baselineSnapshotSchema, D as pluginSchema, Di as conversationReportEventDataSchema, Dn as personalSpendReportSchema, Dr as CancelConversationPendingMessagesResponse, Dt as workspaceParamsSchema, E as pluginPackageContentReportSchema, Ei as conversationParamsSchema, En as personParamsSchema, Er as CancelConversationPendingMessagesBody, Et as workspaceListSchema, F as statsReportSchema, Fi as conversationTurnFailureReasonSchema, Fn as conversationChildAgentsReportSchema, Fr as conversationDetailWithMailboxReportSchema, Ft as personalTokenListSchema, G as AutomationRunWindows, Gi as codeOverviewReportSchema, Gn as PinConversationBody, Gr as CONVERSATION_DETAIL_VERSION_HEADER, Gt as notificationSettingsSchema, H as AutomationListQuery, Hi as codeActivityDaySchema, Hn as MarkConversationUnreadBody, Hr as steerConversationPendingMessagesResponseSchema, Ht as serviceAccountSchema, I as AutomationEdit, Ii as CodeActivityDay, In as CONVERSATION_TITLE_MAX_LENGTH, Ir as conversationPendingAuthorizationSchema, It as personalTokenMetadataSchema, J as AutomationUpdate, Ji as codeRepositoryReportSchema, Jn as ReorderPinnedConversationsResponse, Jr as ConversationAgentTreeNode, Jt as NotificationSchedule, K as AutomationScheduleIntent, Ki as codePersonReportSchema, Kn as PinConversationResponse, Kr as CONVERSATION_VERSION_HEADER, Kt as testNotificationResponseSchema, L as AutomationExecution, Li as CodeChangeSummaryReport, Ln as RenameConversationBody, Lr as conversationPendingMessageDeliverySchema, Lt as personalTokenParamsSchema, M as StatReport, Mi as forkConversationBodySchema, Mn as ConversationChildAgent, Mr as SteerConversationPendingMessagesResponse, Mt as PersonalTokenMetadata, N as StatsReport, Ni as forkConversationResponseSchema, Nn as ConversationChildAgentsReport, Nr as cancelConversationPendingMessagesBodySchema, Nt as createPersonalTokenBodySchema, O as pluginsSchema, Oi as conversationReportEventSchema, On as ConversationWatch, Or as ConversationPendingMessage, Ot as workspaceRepoSchema, P as statSchema, Pi as conversationTurnFailureCodeSchema, Pn as conversationChildAgentSchema, Pr as cancelConversationPendingMessagesResponseSchema, Pt as createdPersonalTokenSchema, Q as automationEditSchema, Qi as DailyConversationActivity, Qn as reorderPinnedConversationsResponseSchema, Qr as ConversationEventHistory, Qt as connectionParamsSchema, R as AutomationExecutionDay, Ri as CodeOverviewReport, Rn as RenameConversationResponse, Rr as conversationPendingMessageSchema, Rt as revokePersonalTokenResponseSchema, S as healthReportSchema, Si as conversationEventPageSchema, Sn as PersonParams, Sr as archiveConversationBodySchema, St as WorkspaceReport, T as pluginPackageContentItemReportSchema, Ti as conversationFeedSchema, Tn as actorProfileReportSchema, Tr as conversationAutoArchiveSchema, Tt as workspaceBodySchema, U as AutomationRun, Ui as codeChangeSummaryReportSchema, Un as conversationUnreadSchema, Ur as AcceptedConversationMessage, Ut as startServiceAccountSignInResponseSchema, V as AutomationList, Vi as CodeRepositorySummary, Vn as ConversationUnread, Vr as steerConversationPendingMessagesBodySchema, Vt as serviceAccountParamsSchema, W as AutomationRunList, Wi as codeChangeSummarySchema, Wn as markConversationUnreadBodySchema, Wr as ActorIdentity, Wt as NotificationSettings, X as ListedAutomationVersion, Xi as ConversationChildAgentTotals, Xn as pinConversationResponseSchema, Xr as ConversationCost, Xt as notificationScheduleSchema, Y as AutomationVersionList, Yi as codeRepositorySummarySchema, Yn as pinConversationBodySchema, Yr as ConversationAuxiliaryCosts, Yt as isWithinNotificationSchedule, Z as automationEditErrorSchema, Zi as conversationChildAgentTotalsSchema, Zn as reorderPinnedConversationsBodySchema, Zr as ConversationDetailReport, Zt as connectionListSchema, _ as PluginPackageContentReport, _a as INLINE_VIDEO_TYPES, _i as conversationActivityPreviewSchema, _n as ActorProfileReport, _r as GuardianStats, _t as automationVersionSchema, a as ReviewItemPayload, aa as UserInputAnswer, ai as ConversationReportEventData, an as LocationActorSummaryReport, ar as conversationReadPositionSchema, at as automationListSchema, b as SkillReport, bi as conversationDetailReportSchema, bn as ActorWindowMetrics, br as ArchiveConversationResponse, bt as BaselineSnapshotReport, c as reviewItemListSchema, ca as buttonUserInputField, ci as ConversationSourceTask, cn as LocationParams, cr as ContinueConversationInSlackResponse, ct as automationRunSchema, d as ReviewItemChangeRecord, da as webMessageId, di as ConversationTurnFailureCode, dn as locationDetailReportSchema, dr as StopConversationTurnResponse, dt as automationSchedulePreviewSchema, ea as MessageCard, ei as ConversationFeed, en as disconnectConnectionResponseSchema, er as ConversationCatchUpBody, et as automationExecutionListSchema, f as HealthReport, fa as isAgentInvocationResultEventType, fi as ConversationTurnFailureReason, fn as locationDirectoryReportSchema, fr as stopConversationTurnResponseSchema, ft as automationSummarySchema, g as PluginPackageContentItemReport, ga as MessageAttachment, gi as acceptedConversationMessageSchema, gn as ActorDirectoryWindows, gr as GuardianMetricDay, gt as automationVersionParamsSchema, h as PluginOperationalReportFeed, ha as MAX_INPUT_IMAGE_BYTES, hi as CreateConversationMessageBody, hn as ActorDirectoryReport, hr as ConversationStatsReport, ht as automationVersionListSchema, i as ReviewItemActionBody, ia as USER_INPUT_NOTE, ii as ConversationReportEvent, in as LocationActivityDayReport, ir as ConversationReadReport, it as automationListQuerySchema, j as skillReportsSchema, ji as createConversationMessageBodySchema, jn as conversationWatchesReportSchema, jr as SteerConversationPendingMessagesBody, jt as userCustomizationSchema, k as runtimeInfoReportSchema, ki as conversationSummaryReportSchema, kn as ConversationWatchesReport, kr as ConversationPendingMessageDelivery, kt as workspaceSchema, l as reviewItemSchema, la as isEmptyUserInputAnswer, li as ConversationSummaryReport, ln as LocationSummaryReport, lr as continueConversationInSlackBodySchema, lt as automationRunWindowsSchema, m as PluginOperationalReport, ma as MAX_INPUT_IMAGES, mi as CreateConversationBody, mn as ActorActivityDayReport, mr as ConversationStatsItem, mt as automationVersionActivateSchema, n as Versions, na as resolveMessageCards, ni as ConversationModelUsage, nn as ApiError, nr as conversationCatchUpSchema, nt as automationExecutionStatusDaySchema, o as reviewItemActionSchema, oa as UserInputField, oi as ConversationReportMessageEvent, on as LocationDetailReport, or as conversationReadReportSchema, ot as automationParamsSchema, p as Plugin, pa as InputImage, pi as ConversationUsage, pn as locationParamsSchema, pr as ConversationMetricDay, pt as automationUpdateSchema, q as AutomationSummary, qi as codeRepositoryParamsSchema, qn as ReorderPinnedConversationsBody, qr as ConversationActivityPreview, qt as DEFAULT_NOTIFICATION_SCHEDULE, r as versionsSchema, ra as AutomationCard, ri as ConversationParams, rn as apiErrorSchema, rr as ConversationReadPosition, rt as automationExecutionStatusSchema, s as reviewItemCountSchema, sa as UserInputRequest, si as ConversationReportStatus, sn as LocationDirectoryReport, sr as ContinueConversationInSlackBody, st as automationRunListSchema, t as OwnedObjectAnnotation, ta as messageCardText, ti as ConversationFeedItem, tn as startConnectionResponseSchema, tr as conversationCatchUpBodySchema, tt as automationExecutionSchema, u as reviewItemWaitingConversationsSchema, ua as normalizeUserInputAnswer, ui as ConversationSurface, un as locationActivityDayReportSchema, ur as continueConversationInSlackResponseSchema, ut as automationScheduleIntentSchema, v as Plugins, va as INPUT_IMAGE_TYPES, vi as conversationAuxiliaryCostsSchema, vn as ActorSummaryReport, vr as conversationStatsReportSchema, vt as eventAutomationSummarySchema, w as pluginOperationalReportSchema, wi as conversationFeedQuerySchema, wn as actorDirectoryReportSchema, wr as archiveDoneConversationsResponseSchema, wt as deleteWorkspaceResponseSchema, x as SkillReports, xi as conversationEventHistorySchema, xn as PeopleActivityDayReport, xr as ConversationAutoArchive, xt as WorkspaceListReport, y as RuntimeInfoReport, yi as conversationDetailQuerySchema, yn as ActorTotalsReport, yr as ArchiveConversationBody, yt as scheduledAutomationSummarySchema, z as AutomationExecutionList, zi as CodePersonReport, zn as renameConversationBodySchema, zr as conversationPendingMessagesReportSchema, zt as disconnectServiceAccountResponseSchema } from "../schema-BUviRAs8.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, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReadReport, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUnread, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, DEFAULT_NOTIFICATION_SCHEDULE, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INLINE_VIDEO_TYPES, 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 MarkConversationUnreadBody, type MessageAttachment, type MessageCard, type NotificationSchedule, type NotificationSettings, 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 RenameConversationBody, type RenameConversationResponse, type ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, 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 Versions, 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, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReadReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationUnreadSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, markConversationUnreadBodySchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
@@ -1,8 +1,9 @@
1
1
  import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-Bu9C6lz0.js";
2
2
  import { n as isWithinNotificationSchedule, r as notificationScheduleSchema, t as DEFAULT_NOTIFICATION_SCHEDULE } from "../schedule-BTp__wrw.js";
3
- 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-DdT7SNar.js";
4
- import { T as userCustomizationSchema, _ as isEmptyUserInputAnswer, b as webMessageId, h as buttonUserInputField, m as USER_INPUT_NOTE, v as normalizeUserInputAnswer, w as USER_CUSTOMIZATION_MAX_CHARS } from "../reporting-window-B-QP9zX1.js";
5
- 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-Zvx_I9Z5.js";
6
- import { _ as pluginSchema, a as conversationPendingMessageDeliverySchema, b as skillReportSchema, c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, g as pluginPackageContentReportSchema, h as pluginPackageContentItemReportSchema, i as conversationPendingAuthorizationSchema, l as steerConversationPendingMessagesBodySchema, m as pluginOperationalReportSchema, n as cancelConversationPendingMessagesResponseSchema, o as conversationPendingMessageSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "../conversation-pending-messages-Dct5pheX.js";
7
- import { $ as codeOverviewReportSchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as connectionListSchema, I as locationParamsSchema, J as disconnectConnectionResponseSchema, K as connectionParamsSchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeChangeSummarySchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, V as notificationSettingsSchema, W as testNotificationResponseSchema, X as codeActivityDaySchema, Y as startConnectionResponseSchema, Z as codeChangeSummaryReportSchema, _ as disconnectServiceAccountResponseSchema, _t as reorderPinnedConversationsResponseSchema, a as workspaceBodySchema, at as conversationWatchesReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, ct as stopConversationTurnResponseSchema, d as reviewItemCountSchema, dt as archiveConversationResponseSchema, et as codePersonReportSchema, ft as archiveDoneConversationsResponseSchema, g as reviewItemWaitingConversationsSchema, gt as reorderPinnedConversationsBodySchema, h as reviewItemSchema, ht as pinConversationResponseSchema, i as deleteWorkspaceResponseSchema, it as conversationWatchSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationStatsReportSchema, mt as pinConversationBodySchema, n as statsReportSchema, nt as codeRepositoryReportSchema, o as workspaceListSchema, ot as conversationChildAgentSchema, p as reviewItemListSchema, pt as conversationAutoArchiveSchema, q as connectionSchema, r as baselineSnapshotSchema, rt as codeRepositorySummarySchema, s as workspaceParamsSchema, st as conversationChildAgentsReportSchema, t as statSchema, tt as codeRepositoryParamsSchema, u as reviewItemActionSchema, ut as archiveConversationBodySchema, v as serviceAccountListSchema, vt as conversationCatchUpBodySchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, yt as conversationCatchUpSchema } from "../schema-Bn3miEd_.js";
8
- export { CONVERSATION_DETAIL_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, 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, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
3
+ import { C as createConversationBodySchema, D as conversationChildAgentTotalsSchema, E as forkConversationResponseSchema, I as resolveMessageCards, L as MAX_INPUT_IMAGES, N as messageCardText, O as conversationReadPositionSchema, R as MAX_INPUT_IMAGE_BYTES, T as forkConversationBodySchema, _ as conversationReportEventSchema, a as conversationActivityPreviewSchema, b as conversationSummaryReportSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, g as conversationReportEventDataSchema, h as conversationParamsSchema, k as conversationReadReportSchema, l as conversationDetailReportSchema, m as conversationFeedSchema, n as CONVERSATION_VERSION_HEADER, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, s as conversationAuxiliaryCostsSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventHistorySchema, w as createConversationMessageBodySchema } from "../conversation-D8kVoCrP.js";
4
+ import { T as userCustomizationSchema, g as buttonUserInputField, h as USER_INPUT_NOTE, p as webMessageId, v as isEmptyUserInputAnswer, w as USER_CUSTOMIZATION_MAX_CHARS, y as normalizeUserInputAnswer } from "../reporting-window-B4TwyuJo.js";
5
+ 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-Mk8aaHzy.js";
6
+ import { _ as pluginSchema, a as conversationPendingMessageDeliverySchema, b as skillReportSchema, c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, g as pluginPackageContentReportSchema, h as pluginPackageContentItemReportSchema, i as conversationPendingAuthorizationSchema, l as steerConversationPendingMessagesBodySchema, m as pluginOperationalReportSchema, n as cancelConversationPendingMessagesResponseSchema, o as conversationPendingMessageSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "../conversation-pending-messages-BvROq1bq.js";
7
+ import { n as isAgentInvocationResultEventType } from "../result-event-type-DD6BAgT7.js";
8
+ import { $ as codeChangeSummaryReportSchema, A as actorDirectoryReportSchema, C as startServiceAccountSignInResponseSchema, Ct as pinConversationBodySchema, D as personalTokenMetadataSchema, Dt as conversationCatchUpBodySchema, E as personalTokenListSchema, Et as reorderPinnedConversationsResponseSchema, F as locationActivityDayReportSchema, H as dailyConversationActivitySchema, I as locationDetailReportSchema, J as connectionParamsSchema, K as testNotificationResponseSchema, L as locationDirectoryReportSchema, N as personParamsSchema, O as personalTokenParamsSchema, Ot as conversationCatchUpSchema, P as personalSpendReportSchema, Q as codeActivityDaySchema, R as locationParamsSchema, S as serviceAccountSchema, St as markConversationUnreadBodySchema, T as createdPersonalTokenSchema, Tt as reorderPinnedConversationsBodySchema, U as notificationSettingsSchema, X as disconnectConnectionResponseSchema, Y as connectionSchema, Z as startConnectionResponseSchema, _ as reviewItemSchema, _t as archiveConversationBodySchema, a as baselineSnapshotSchema, at as codeRepositorySummarySchema, b as serviceAccountListSchema, bt as conversationAutoArchiveSchema, c as workspaceListSchema, ct as conversationChildAgentSchema, d as workspaceSchema, dt as continueConversationInSlackResponseSchema, et as codeChangeSummarySchema, f as reviewItemActionSchema, ft as stopConversationTurnResponseSchema, gt as renameConversationResponseSchema, h as reviewItemListSchema, ht as renameConversationBodySchema, i as statsReportSchema, it as codeRepositoryReportSchema, j as actorProfileReportSchema, k as revokePersonalTokenResponseSchema, l as workspaceParamsSchema, lt as conversationChildAgentsReportSchema, mt as CONVERSATION_TITLE_MAX_LENGTH, n as versionsSchema, nt as codePersonReportSchema, o as deleteWorkspaceResponseSchema, ot as conversationWatchSchema, p as reviewItemCountSchema, pt as conversationStatsReportSchema, q as connectionListSchema, r as statSchema, rt as codeRepositoryParamsSchema, s as workspaceBodySchema, st as conversationWatchesReportSchema, tt as codeOverviewReportSchema, u as workspaceRepoSchema, ut as continueConversationInSlackBodySchema, v as reviewItemWaitingConversationsSchema, vt as archiveConversationResponseSchema, w as createPersonalTokenBodySchema, wt as pinConversationResponseSchema, x as serviceAccountParamsSchema, xt as conversationUnreadSchema, y as disconnectServiceAccountResponseSchema, yt as archiveDoneConversationsResponseSchema } from "../schema-BasXTvi2.js";
9
+ export { CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, 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, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReadReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationUnreadSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, markConversationUnreadBodySchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as ConversationWorkQueue } from "./queue-CZyYgPF0.js";
2
- import "./db-D7CCwAo8.js";
2
+ import "./db-BhHZSuFw.js";
3
3
  import { Hono } from "hono";
4
4
  import * as z from "zod";
5
5
  import { User } from "@sentry/junior-plugin-api";
package/dist/api.js CHANGED
@@ -1,32 +1,32 @@
1
- import { $n as countReviewItemsNeedingUser, Co as createPluginCache, Gn as resolveNotificationTimezone, Ha as readConversationAccessFromSql, Jn as readNotificationSchedule, Kn as deletePushSubscription, Ln as getPlugins, Sa as workspaceRepoCheckoutPath, Sn as isExperimentalFeatureEnabled, Un as readWebPushConfig, Wn as sendPushNotificationToUser, Xn as savePushSubscription, Xr as getDashboardSettingsLink, Yn as saveNotificationSchedule, ar as listWaitingConversations, ci as updateWorkspace, eo as readConversationBriefThrough, hi as hash, ii as getWorkspace, li as WorkspaceValidationError, mi as create, ni as createWorkspace, no as readConversationEventPage, oi as listWorkspaces, or as searchReviewItems, pr as isOnlyAssignee, qn as listPushSubscriptions, ri as deleteWorkspace, si as listWorkspacesByRepository, ur as canActOnReviewItem, vr as reviewItemReaderForUser, wn as createUserTokenStore, ya as SANDBOX_RUNTIME, za as createPluginLogger } from "./projection-0UcUeuzn.js";
2
- import { a as completeText, m as escapeXml } from "./client-CMyH5rDz.js";
3
- import { n as botConfig, y as getAttachmentStorage } from "./config-Dt3CpG17.js";
4
- import { m as logInfo, p as logException } from "./logging-Qo-7xGp1.js";
5
- import { C as getSqlExecutor, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-BlpnzZZa.js";
6
- import { D as juniorCodeChanges, M as juniorIdentities, N as juniorUsers, O as juniorCodeRepositories, P as juniorDestinations, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorConversations, w as juniorConversationEvents } from "./executor-CyIwHz9r.js";
1
+ import { $n as readWebPushConfig, Aa as SANDBOX_RUNTIME, Ei as hash, Mn as isExperimentalFeatureEnabled, Na as workspaceRepoCheckoutPath, Pn as createUserTokenStore, Qa as readConversationAccessFromSql, Ti as create, Ya as createPluginLogger, Za as createConversationAccessReader, _i as listWorkspaces, _r as searchReviewItems, ar as saveNotificationSchedule, bi as WorkspaceValidationError, co as readConversationBriefThrough, er as sendPushNotificationToUser, gr as reviewItemsNeedingUserVersionQuery, hi as getWorkspace, hr as listWaitingConversations, ir as readNotificationSchedule, jo as createPluginCache, kr as reviewItemReaderForUser, lr as countReviewItemsNeedingUser, mi as deleteWorkspace, nr as deletePushSubscription, or as savePushSubscription, pi as createWorkspace, qn as getPlugins, rr as listPushSubscriptions, si as getDashboardSettingsLink, tr as resolveNotificationTimezone, uo as readConversationEventPage, vi as listWorkspacesByRepository, wr as isOnlyAssignee, xr as canActOnReviewItem, yi as updateWorkspace } from "./projection-DliWYrnT.js";
2
+ import { a as completeText, m as escapeXml } from "./client-DDbBucBw.js";
3
+ import { n as botConfig, y as getAttachmentStorage } from "./config-DqFnykQT.js";
4
+ import { m as logInfo, p as logException } from "./logging-BfORLKoq.js";
5
+ import { C as getSqlExecutor, I as withConversationMutationLock, L as conversationKindFromRow, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, tt as nextDetailVersion, x as getConversationStore } from "./viewer-1Ea81s0b.js";
6
+ import { D as juniorCodeChanges, M as juniorIdentities, N as juniorUsers, O as juniorCodeRepositories, P as juniorDestinations, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorConversations, w as juniorConversationEvents } from "./executor-BLEMIgIZ.js";
7
7
  import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-Bu9C6lz0.js";
8
- import { n as pluginCatalogRuntime } from "./catalog-runtime-dKOVbR7l.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, nt as listOwnedWatches, q as ViewerTaskNotFoundError } from "./agent-runner-Cqr21pOU.js";
10
- import { r as getStateAdapter } from "./adapter-CW5UW7vL.js";
8
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-Bte6jRB2.js";
9
+ import { $ as readViewerAutomationSummary, At as listChildAgents, G as changeViewerAutomationLifecycle, J as updateViewerAutomation, K as deleteViewerTask, Q as readViewerAutomationRuns, S as createSlackReviewItemShow, W as activateViewerAutomationVersion, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, et as readViewerAutomationVersions, h as readStats, it as listOwnedWatches, mt as webActorFromUser, nt as AutomationEditError, q as readViewerAutomationEdit, tt as readViewerAutomations, vt as readLiveAttachment } from "./agent-runner-BsWhHe4N.js";
10
+ import { r as getStateAdapter } from "./adapter-DN5AB4VU.js";
11
11
  import { r as notificationScheduleSchema } from "./schedule-BTp__wrw.js";
12
- import { C as createConversationMessageBodySchema, D as conversationReadPositionSchema, 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-DdT7SNar.js";
13
- import { n as briefEntriesFromReportEvents } from "./prompt-CCtaGgbI.js";
14
- import { d as getEventCatalog } from "./session-stop-D_1SysjC.js";
15
- import { T as userCustomizationSchema, a as fillUtcSixHours, 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-B-QP9zX1.js";
16
- import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-Di3omymY.js";
17
- import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CHFzrQbS.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-D_GXfcAG.js";
19
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-KhZIqXRi.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-Zvx_I9Z5.js";
21
- import { c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, l as steerConversationPendingMessagesBodySchema, n as cancelConversationPendingMessagesResponseSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "./conversation-pending-messages-Dct5pheX.js";
22
- import { E as archiveConversation, N as isAllowedSignInEmail, Q as readReviewItemForUser, S as cancelConversationPendingMessagesForViewer, T as resolveMentions, X as actOnReviewItem, Y as ReviewItemActionError, _ as readFirstHumanMessageTexts, a as readConversationDetail, at as updateUserAutoArchiveSettings, c as forkConversationForViewer, ct as throwApiError, d as readConversationFeed, et as DEFAULT_AUTO_ARCHIVE_SETTINGS, ft as readHealthReport, g as conversationSummaryFromStoredConversation, h as readConversationTreeMetricsFromSql, i as reorderPinnedConversations, it as setConversationAutoArchive, k as getProductionSlackAdapter, l as keepQuickQuestionForViewer, m as childAgentTotalsReport, n as steerConversationPendingMessagesForViewer, nt as readUserAutoArchiveSettings, o as readConversationDetailEtag, ot as emptyResponse, p as readConversationAuxiliaryCostsFromSql, r as pinConversation, s as markConversationRead, st as jsonResponse, t as stopConversationTurnForViewer, tt as archiveViewerDoneConversations, u as readConversationEvents, v as appendConversationMessageForViewer, w as requireConversationPendingMessages, y as createConversationForViewer } from "./stop-BSKRTaRS.js";
23
- import { a as startConnection, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-CCHPybZP.js";
24
- import { $ as codeOverviewReportSchema, A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as connectionListSchema, H as pushSubscriptionBodySchema, I as locationParamsSchema, J as disconnectConnectionResponseSchema, K as connectionParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, U as pushSubscriptionDeleteBodySchema, V as notificationSettingsSchema, W as testNotificationResponseSchema, Y as startConnectionResponseSchema, _ as disconnectServiceAccountResponseSchema, _t as reorderPinnedConversationsResponseSchema, a as workspaceBodySchema, at as conversationWatchesReportSchema, ct as stopConversationTurnResponseSchema, d as reviewItemCountSchema, dt as archiveConversationResponseSchema, et as codePersonReportSchema, f as reviewItemListQuerySchema, ft as archiveDoneConversationsResponseSchema, g as reviewItemWaitingConversationsSchema, gt as reorderPinnedConversationsBodySchema, h as reviewItemSchema, ht as pinConversationResponseSchema, i as deleteWorkspaceResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, lt as conversationStatsReportSchema, m as reviewItemParamsSchema, mt as pinConversationBodySchema, n as statsReportSchema, nt as codeRepositoryReportSchema, o as workspaceListSchema, p as reviewItemListSchema, pt as conversationAutoArchiveSchema, s as workspaceParamsSchema, st as conversationChildAgentsReportSchema, tt as codeRepositoryParamsSchema, u as reviewItemActionSchema, ut as archiveConversationBodySchema, v as serviceAccountListSchema, vt as conversationCatchUpBodySchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, yt as conversationCatchUpSchema, z as activitySixHours$1 } from "./schema-Bn3miEd_.js";
12
+ import { C as createConversationBodySchema, E as forkConversationResponseSchema, O as conversationReadPositionSchema, T as forkConversationBodySchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, h as conversationParamsSchema, k as conversationReadReportSchema, l as conversationDetailReportSchema, m as conversationFeedSchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, w as createConversationMessageBodySchema } from "./conversation-D8kVoCrP.js";
13
+ import { n as briefEntriesFromReportEvents } from "./prompt-BvIUzY4y.js";
14
+ import { $ as saveUserCustomization, E as getEventCatalog, Q as readUserCustomization } from "./session-stop-CA-jOJ84.js";
15
+ import { T as userCustomizationSchema, a as fillUtcSixHours, 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-B4TwyuJo.js";
16
+ import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-Biu8Qw3u.js";
17
+ import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-DXkLsWoH.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-CGMKrYOj.js";
19
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-BI5Wgx22.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-Mk8aaHzy.js";
21
+ import { c as conversationUnchangedDetailWithMailboxSchema, d as apiErrorSchema, f as healthReportSchema, l as steerConversationPendingMessagesBodySchema, n as cancelConversationPendingMessagesResponseSchema, p as pluginOperationalReportFeedSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as pluginsSchema, x as skillReportsSchema, y as runtimeInfoReportSchema } from "./conversation-pending-messages-BvROq1bq.js";
22
+ import { $ as actOnReviewItem, A as archiveConversation, C as createConversationForViewer, E as cancelConversationPendingMessagesForViewer, L as isAllowedSignInEmail, O as requireConversationPendingMessages, P as getProductionSlackAdapter, Q as ReviewItemActionError, S as appendConversationMessageForViewer, _ as keepQuickQuestionForViewer, a as pinConversation, at as readUserAutoArchiveSettings, c as continueConversationInSlackForViewer, ct as updateUserAutoArchiveSettings, d as readConversationTreeMetricsFromSql, dt as throwApiError, f as conversationVersionQuery, g as forkConversationForViewer, h as reportConversationRead, ht as readHealthReport, i as readConversationFeed, it as archiveViewerDoneConversations, k as resolveMentions, l as readConversationAuxiliaryCostsFromSql, lt as emptyResponse, m as markConversationUnread, n as steerConversationPendingMessagesForViewer, o as reorderPinnedConversations, p as readConversationDetailEtag, r as conversationFeedVersionQuery, rt as DEFAULT_AUTO_ARCHIVE_SETTINGS, s as readConversationDetail, st as setConversationAutoArchive, t as stopConversationTurnForViewer, tt as readReviewItemForUser, u as childAgentTotalsReport, ut as jsonResponse, v as readConversationEvents, x as readFirstHumanMessageTexts, y as conversationSummaryFromStoredConversation } from "./stop-DioIcEAu.js";
23
+ import { a as startConnection, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-DA4LT9LL.js";
24
+ import { A as actorDirectoryReportSchema, B as activityHours$1, C as startServiceAccountSignInResponseSchema, Ct as pinConversationBodySchema, Dt as conversationCatchUpBodySchema, E as personalTokenListSchema, Et as reorderPinnedConversationsResponseSchema, G as pushSubscriptionDeleteBodySchema, I as locationDetailReportSchema, J as connectionParamsSchema, K as testNotificationResponseSchema, L as locationDirectoryReportSchema, M as avatarParamsSchema, N as personParamsSchema, O as personalTokenParamsSchema, Ot as conversationCatchUpSchema, P as personalSpendReportSchema, R as locationParamsSchema, St as markConversationUnreadBodySchema, T as createdPersonalTokenSchema, Tt as reorderPinnedConversationsBodySchema, U as notificationSettingsSchema, V as activitySixHours$1, W as pushSubscriptionBodySchema, X as disconnectConnectionResponseSchema, Z as startConnectionResponseSchema, _ as reviewItemSchema, _t as archiveConversationBodySchema, b as serviceAccountListSchema, bt as conversationAutoArchiveSchema, c as workspaceListSchema, d as workspaceSchema, dt as continueConversationInSlackResponseSchema, f as reviewItemActionSchema, ft as stopConversationTurnResponseSchema, g as reviewItemParamsSchema, gt as renameConversationResponseSchema, h as reviewItemListSchema, ht as renameConversationBodySchema, i as statsReportSchema, it as codeRepositoryReportSchema, j as actorProfileReportSchema, k as revokePersonalTokenResponseSchema, l as workspaceParamsSchema, lt as conversationChildAgentsReportSchema, m as reviewItemListQuerySchema, n as versionsSchema, nt as codePersonReportSchema, o as deleteWorkspaceResponseSchema, p as reviewItemCountSchema, pt as conversationStatsReportSchema, q as connectionListSchema, rt as codeRepositoryParamsSchema, s as workspaceBodySchema, st as conversationWatchesReportSchema, t as versionsQuerySchema, tt as codeOverviewReportSchema, ut as continueConversationInSlackBodySchema, v as reviewItemWaitingConversationsSchema, vt as archiveConversationResponseSchema, w as createPersonalTokenBodySchema, wt as pinConversationResponseSchema, x as serviceAccountParamsSchema, xt as conversationUnreadSchema, y as disconnectServiceAccountResponseSchema, yt as archiveDoneConversationsResponseSchema, z as activityDays$1 } from "./schema-BasXTvi2.js";
25
25
  import { Hono } from "hono";
26
26
  import path from "node:path";
27
27
  import { createHash, randomBytes, randomUUID } from "node:crypto";
28
28
  import * as z from "zod";
29
- import { and, asc, desc, eq, gt, gte, isNull, lte, notExists, or, sql } from "drizzle-orm";
29
+ import { and, asc, desc, eq, gt, gte, inArray, isNull, lte, notExists, or, sql } from "drizzle-orm";
30
30
  import { pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema } from "@sentry/junior-plugin-api";
31
31
  import { alias } from "drizzle-orm/pg-core";
32
32
  import { readFileSync } from "node:fs";
@@ -193,11 +193,56 @@ async function catchUpOnConversation(viewer, conversationId, range) {
193
193
  ...conversation.title ? { title: conversation.title } : void 0
194
194
  });
195
195
  }
196
+ // src/chat/conversations/sql/title.ts
197
+ /**
198
+ * Replace one Conversation's title. Returns the stored title, or undefined
199
+ * when the Conversation does not exist.
200
+ *
201
+ * recordActivity reads the title and writes it back under the mutation lock,
202
+ * so this write takes the same lock. A concurrent Turn cannot restore the old
203
+ * title.
204
+ */
205
+ async function setConversationTitle(executor, conversationId, title) {
206
+ return await withConversationMutationLock(executor, conversationId, async () => {
207
+ const [row] = await executor.db().update(juniorConversations).set({
208
+ detailVersion: nextDetailVersion,
209
+ title
210
+ }).where(eq(juniorConversations.conversationId, conversationId)).returning({ title: juniorConversations.title });
211
+ return row?.title ?? void 0;
212
+ });
213
+ }
214
+ // src/api/conversations/rename.ts
215
+ /**
216
+ * Rename one conversation. The title is shared, so only a participant can
217
+ * change it, the same as pin and archive. Automatic titles are set once, so a
218
+ * later Turn keeps this title.
219
+ */
220
+ async function renameConversation(viewer, conversationId, body) {
221
+ if (!(await readConversationAccessFromSql(getDb(), [conversationId], viewer)).get(conversationId)?.isParticipant) throwApiError(404, "Conversation not found.");
222
+ const title = await setConversationTitle(getSqlExecutor(), conversationId, body.title);
223
+ if (!title) throwApiError(404, "Conversation not found.");
224
+ return { title };
225
+ }
196
226
  // src/api/conversations/child-agents.ts
227
+ /** Read the kind and archive of each child Conversation. */
228
+ async function readChildKinds(db, childIds) {
229
+ if (childIds.length === 0) return /* @__PURE__ */ new Map();
230
+ const rows = await db.select({
231
+ conversationId: juniorConversations.conversationId,
232
+ kind: juniorConversations.kind,
233
+ parentConversationId: juniorConversations.parentConversationId,
234
+ childArchivedAt: juniorConversations.childArchivedAt
235
+ }).from(juniorConversations).where(inArray(juniorConversations.conversationId, [...childIds]));
236
+ return new Map(rows.map((row) => [row.conversationId, {
237
+ kind: conversationKindFromRow(row) === "thread" ? "thread" : "task",
238
+ childArchivedAt: row.childArchivedAt?.toISOString() ?? null
239
+ }]));
240
+ }
197
241
  /**
198
242
  * Load the direct child agents of one Conversation, or throw a standard API
199
243
  * not-found error. Viewers who cannot see private content get only the status,
200
- * time, and usage of each child agent.
244
+ * time, and usage of each child agent. Archived children stay in the report,
245
+ * so the dashboard can show and restore them.
201
246
  */
202
247
  async function requireConversationChildAgents(conversationId, options = {}) {
203
248
  if (!await getConversationStore().get({ conversationId })) throwApiError(404, "Conversation not found.");
@@ -205,7 +250,11 @@ async function requireConversationChildAgents(conversationId, options = {}) {
205
250
  const [accessByConversation, children] = await Promise.all([readConversationAccessFromSql(db, [conversationId], options.viewer), listChildAgents(conversationId)]);
206
251
  const canExposePayload = accessByConversation.get(conversationId)?.canViewPrivateContent ?? false;
207
252
  const childIds = children.map((agent) => agent.childConversationId);
208
- const [metricsByChild, auxiliaryCostsByChild] = await Promise.all([readConversationTreeMetricsFromSql(db, childIds), readConversationAuxiliaryCostsFromSql(db, childIds)]);
253
+ const [metricsByChild, auxiliaryCostsByChild, kindByChild] = await Promise.all([
254
+ readConversationTreeMetricsFromSql(db, childIds),
255
+ readConversationAuxiliaryCostsFromSql(db, childIds),
256
+ readChildKinds(db, childIds)
257
+ ]);
209
258
  const agents = children.map((agent) => {
210
259
  const metrics = metricsByChild.get(agent.childConversationId);
211
260
  const auxiliaryCosts = auxiliaryCostsByChild.get(agent.childConversationId);
@@ -216,6 +265,10 @@ async function requireConversationChildAgents(conversationId, options = {}) {
216
265
  ...metrics?.usage ? { cumulativeUsage: metrics.usage } : void 0,
217
266
  ...auxiliaryCosts ? { auxiliaryCosts: auxiliaryCosts.total } : void 0,
218
267
  ...childAgentTotals ? { childAgentTotals } : void 0,
268
+ ...kindByChild.get(agent.childConversationId) ?? {
269
+ kind: "task",
270
+ childArchivedAt: null
271
+ },
219
272
  status: agent.status,
220
273
  updatedAt: new Date(agent.updatedAtMs).toISOString(),
221
274
  ...canExposePayload ? {
@@ -747,6 +800,7 @@ function createConversationRoutes(options) {
747
800
  const { conversationId } = context.req.valid("param");
748
801
  return jsonResponse(stopConversationTurnResponseSchema, await stopConversationTurnForViewer(viewer, conversationId, options));
749
802
  });
803
+ app.post("/:conversationId/continue-in-slack", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", continueConversationInSlackBodySchema, "Invalid request body."), async (context) => jsonResponse(continueConversationInSlackResponseSchema, await continueConversationInSlackForViewer(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
750
804
  app.post("/:conversationId/forks", requireViewer, bodyLimit({ maxSize: 32768 }), validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", forkConversationBodySchema, "Invalid request body."), async (context) => jsonResponse(forkConversationResponseSchema, await forkConversationForViewer(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
751
805
  app.post("/:conversationId/quick-question/keep", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), async (context) => jsonResponse(forkConversationResponseSchema, await keepQuickQuestionForViewer(context.get("viewer"), context.req.valid("param").conversationId)));
752
806
  app.patch("/:conversationId/archive", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", archiveConversationBodySchema, "Invalid request body."), async (context) => {
@@ -756,11 +810,13 @@ function createConversationRoutes(options) {
756
810
  return jsonResponse(archiveConversationResponseSchema, await archiveConversation(viewer, conversationId, body));
757
811
  });
758
812
  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"))));
813
+ app.patch("/:conversationId/unread", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", markConversationUnreadBodySchema, "Invalid request body."), async (context) => jsonResponse(conversationUnreadSchema, await markConversationUnread(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
814
+ app.patch("/:conversationId/title", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", renameConversationBodySchema, "Invalid request body."), async (context) => jsonResponse(renameConversationResponseSchema, await renameConversation(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
759
815
  app.put("/:conversationId/read-position", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationReadPositionSchema, "Invalid request body."), async (context) => {
760
816
  const viewer = context.get("viewer");
761
817
  const { conversationId } = context.req.valid("param");
762
818
  const body = context.req.valid("json");
763
- return jsonResponse(conversationReadPositionSchema, await markConversationRead(viewer, conversationId, body));
819
+ return jsonResponse(conversationReadReportSchema, await reportConversationRead(viewer, conversationId, body));
764
820
  });
765
821
  app.put("/pin-order", requireViewer, validateRequest("json", reorderPinnedConversationsBodySchema, "Invalid request body."), async (context) => jsonResponse(reorderPinnedConversationsResponseSchema, await reorderPinnedConversations(context.get("viewer"), context.req.valid("json"))));
766
822
  app.post("/archive-done", requireViewer, async (context) => jsonResponse(archiveDoneConversationsResponseSchema, await archiveViewerDoneConversations(context.get("viewer"))));
@@ -826,15 +882,21 @@ function createConversationRoutes(options) {
826
882
  const viewer = context.get("viewer");
827
883
  const viewerOptions = viewer ? { viewer } : void 0;
828
884
  const sentVersion = context.req.header(CONVERSATION_DETAIL_VERSION_HEADER);
829
- const readMailbox = () => requireConversationPendingMessages(conversationId, viewerOptions);
885
+ const readAccess = createConversationAccessReader(getDb(), viewer);
886
+ const readMailbox = () => requireConversationPendingMessages(conversationId, {
887
+ readAccess,
888
+ ...viewerOptions
889
+ });
830
890
  const readVersion = () => readConversationDetailEtag(conversationId, {
831
891
  limit: query.limit,
892
+ readAccess,
832
893
  ...viewerOptions
833
894
  });
834
895
  const [mailbox, version] = withMailbox && sentVersion ? [await readMailbox(), await readVersion()] : await Promise.all([withMailbox ? readMailbox() : void 0, readVersion()]);
835
896
  const headers = version ? {
836
897
  "cache-control": "private, no-store",
837
- [CONVERSATION_DETAIL_VERSION_HEADER]: version.etag
898
+ [CONVERSATION_DETAIL_VERSION_HEADER]: version.etag,
899
+ [CONVERSATION_VERSION_HEADER]: version.version
838
900
  } : void 0;
839
901
  if (version && sentVersion === version.etag) return mailbox ? jsonResponse(conversationUnchangedDetailWithMailboxSchema, {
840
902
  mailbox,
@@ -1467,6 +1529,7 @@ function summaryFromRow(row, options = {}) {
1467
1529
  const conversation = {
1468
1530
  conversationId: row.conversationId,
1469
1531
  createdAtMs: row.createdAt.getTime(),
1532
+ kind: conversationKindFromRow(row),
1470
1533
  lastActivityAtMs: row.lastActivityAt.getTime(),
1471
1534
  updatedAtMs: row.updatedAt.getTime(),
1472
1535
  execution: {
@@ -1475,7 +1538,10 @@ function summaryFromRow(row, options = {}) {
1475
1538
  },
1476
1539
  ...actor ? { actor } : void 0,
1477
1540
  ...row.channelName ? { channelName: row.channelName } : void 0,
1541
+ ...row.parentConversationId ? { parentConversationId: row.parentConversationId } : void 0,
1542
+ ...row.childArchivedAt ? { childArchivedAtMs: row.childArchivedAt.getTime() } : void 0,
1478
1543
  ...row.source ? { source: row.source } : void 0,
1544
+ ...row.stoppedAt ? { stoppedAtMs: row.stoppedAt.getTime() } : void 0,
1479
1545
  ...row.title ? { title: row.title } : void 0
1480
1546
  };
1481
1547
  return conversationSummaryFromStoredConversation({
@@ -1690,8 +1756,12 @@ async function recentLocationRows(db, locationId) {
1690
1756
  ${juniorIdentities.email}
1691
1757
  )`,
1692
1758
  executionStatus: juniorConversations.executionStatus,
1759
+ stoppedAt: juniorConversations.stoppedAt,
1693
1760
  executionUpdatedAt: juniorConversations.executionUpdatedAt,
1694
1761
  fullName: juniorUsers.displayName,
1762
+ kind: juniorConversations.kind,
1763
+ parentConversationId: juniorConversations.parentConversationId,
1764
+ childArchivedAt: juniorConversations.childArchivedAt,
1695
1765
  handle: juniorIdentities.handle,
1696
1766
  lastActivityAt: juniorConversations.lastActivityAt,
1697
1767
  providerSubjectId: sql`CASE
@@ -1965,8 +2035,12 @@ async function recentActorRows(email) {
1965
2035
  durationMs: juniorConversations.durationMs,
1966
2036
  email: juniorUsers.primaryEmailNormalized,
1967
2037
  executionStatus: juniorConversations.executionStatus,
2038
+ stoppedAt: juniorConversations.stoppedAt,
1968
2039
  executionUpdatedAt: juniorConversations.executionUpdatedAt,
1969
2040
  fullName: juniorUsers.displayName,
2041
+ kind: juniorConversations.kind,
2042
+ parentConversationId: juniorConversations.parentConversationId,
2043
+ childArchivedAt: juniorConversations.childArchivedAt,
1970
2044
  handle: sql`CASE WHEN ${juniorIdentities.provider} = 'slack' THEN ${juniorIdentities.handle} END`,
1971
2045
  lastActivityAt: juniorConversations.lastActivityAt,
1972
2046
  providerSubjectId: sql`CASE WHEN ${juniorIdentities.provider} = 'slack' THEN ${juniorIdentities.providerSubjectId} END`,
@@ -2198,7 +2272,7 @@ async function readPeoplePluginReports(args) {
2198
2272
  reports: [],
2199
2273
  source: "plugins"
2200
2274
  });
2201
- const { getPluginProfileReports } = await import("./projection-0UcUeuzn.js").then((n) => n.kn);
2275
+ const { getPluginProfileReports } = await import("./projection-DliWYrnT.js").then((n) => n.zn);
2202
2276
  return pluginOperationalReportFeedSchema.parse({
2203
2277
  generatedAt: new Date(nowMs).toISOString(),
2204
2278
  reports: await getPluginProfileReports({
@@ -2408,21 +2482,21 @@ function spendWindow(nowMs) {
2408
2482
  };
2409
2483
  }
2410
2484
  /**
2411
- * Read a cheap change marker for one viewer's spend window.
2485
+ * Return a query for a cheap change marker of one viewer's spend window.
2412
2486
  *
2413
2487
  * Writes that record Conversation metrics also move `updated_at` forward, so
2414
- * the marker changes when spend can change. The spend cache TTL bounds changes
2415
- * that the marker misses, such as a day that leaves the window.
2488
+ * the marker changes when spend can change. The window start is part of the
2489
+ * marker, so it also changes when the window moves at UTC midnight.
2416
2490
  */
2417
- async function readPersonalSpendVersion(email, nowMs = Date.now()) {
2491
+ function personalSpendVersionQuery(db, email, nowMs) {
2418
2492
  const normalizedEmail = normalizeEmail$1(email);
2419
- if (!normalizedEmail) return "";
2420
2493
  const { end, thirtyDayStart } = spendWindow(nowMs);
2421
- const [row] = await getDb().select({
2422
- conversations: sql`count(*)::int`,
2423
- updatedAt: sql`max(${juniorConversations.updatedAt})::text`
2424
- }).from(juniorConversations).innerJoin(juniorIdentities, eq(juniorIdentities.id, juniorConversations.actorIdentityId)).innerJoin(juniorUsers, eq(juniorUsers.id, juniorIdentities.userId)).where(and(verifiedActorWhere(normalizedEmail), gte(juniorConversations.lastActivityAt, thirtyDayStart), lte(juniorConversations.lastActivityAt, end)));
2425
- return `${row?.conversations ?? 0}:${row?.updatedAt ?? ""}`;
2494
+ return db.select({ version: sql`concat_ws(':', ${thirtyDayStart.toISOString().slice(0, 10)}::text, count(*), max(${juniorConversations.updatedAt}))` }).from(juniorConversations).innerJoin(juniorIdentities, eq(juniorIdentities.id, juniorConversations.actorIdentityId)).innerJoin(juniorUsers, eq(juniorUsers.id, juniorIdentities.userId)).where(normalizedEmail ? and(verifiedActorWhere(normalizedEmail), gte(juniorConversations.lastActivityAt, thirtyDayStart), lte(juniorConversations.lastActivityAt, end)) : sql`false`);
2495
+ }
2496
+ /** Read the change marker of one viewer's spend window. */
2497
+ async function readPersonalSpendVersion(email, nowMs = Date.now()) {
2498
+ const [row] = await personalSpendVersionQuery(getDb(), email, nowMs);
2499
+ return row?.version ?? "";
2426
2500
  }
2427
2501
  /** Read one viewer's rolling model spend with one bounded aggregate query. */
2428
2502
  async function readPersonalSpendFromSql(email, nowMs = Date.now()) {
@@ -3216,6 +3290,29 @@ async function readStatsReport() {
3216
3290
  windowStart: start
3217
3291
  });
3218
3292
  }
3293
+ // src/api/versions.ts
3294
+ /**
3295
+ * Read the change tokens of the dashboard reads in one statement, so one
3296
+ * cheap poll can tell which reads to refresh. The real endpoints still check
3297
+ * access. The Conversation token shows no more than its detail report does:
3298
+ * that report answers any viewer, with private content redacted.
3299
+ */
3300
+ async function readVersions(viewer, options = {}) {
3301
+ const db = getDb();
3302
+ const [row] = await db.select({
3303
+ conversation: options.conversationId ? sql`(${conversationVersionQuery(db, options.conversationId, viewer.id)})` : sql`null`,
3304
+ conversations: sql`(${conversationFeedVersionQuery(db, viewer.id)})`,
3305
+ reviewItems: sql`(${reviewItemsNeedingUserVersionQuery(db, viewer.id)})`,
3306
+ spend: sql`(${personalSpendVersionQuery(db, viewer.email, Date.now())})`
3307
+ }).from(juniorUsers).where(eq(juniorUsers.id, viewer.id));
3308
+ if (!row) throw new Error("Viewer user row is missing");
3309
+ return {
3310
+ ...row.conversation ? { conversation: row.conversation } : void 0,
3311
+ conversations: row.conversations,
3312
+ reviewItems: row.reviewItems,
3313
+ spend: row.spend
3314
+ };
3315
+ }
3219
3316
  // src/reporting.ts
3220
3317
  function readDescriptionText(home) {
3221
3318
  try {
@@ -3226,7 +3323,7 @@ function readDescriptionText(home) {
3226
3323
  }
3227
3324
  /** Read discovered skill names for authenticated runtime diagnostics. */
3228
3325
  async function readSkillReports() {
3229
- const { discoverSkills } = await import("./skills-CKyotM4g.js").then((n) => n.o);
3326
+ const { discoverSkills } = await import("./skills-B22duVJU.js").then((n) => n.o);
3230
3327
  const skills = await discoverSkills();
3231
3328
  return skillReportsSchema.parse(skills.map((skill) => ({
3232
3329
  name: skill.name,
@@ -3235,7 +3332,7 @@ async function readSkillReports() {
3235
3332
  }
3236
3333
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
3237
3334
  async function readPlugins() {
3238
- const { pluginCatalogRuntime } = await import("./catalog-runtime-dKOVbR7l.js").then((n) => n.t);
3335
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-Bte6jRB2.js").then((n) => n.t);
3239
3336
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
3240
3337
  configKeys: plugin.manifest.configKeys ?? [],
3241
3338
  description: plugin.manifest.description,
@@ -3247,7 +3344,7 @@ async function readPlugins() {
3247
3344
  async function readRuntimeInfoReport() {
3248
3345
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
3249
3346
  import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
3250
- import("./catalog-runtime-dKOVbR7l.js").then((n) => n.t),
3347
+ import("./catalog-runtime-Bte6jRB2.js").then((n) => n.t),
3251
3348
  readPlugins(),
3252
3349
  readSkillReports()
3253
3350
  ]);
@@ -3264,7 +3361,7 @@ async function readRuntimeInfoReport() {
3264
3361
  /** Read sanitized operational summaries contributed by plugins. */
3265
3362
  async function readPluginOperationalReportFeed() {
3266
3363
  const nowMs = Date.now();
3267
- const { getPluginOperationalReports } = await import("./projection-0UcUeuzn.js").then((n) => n.kn);
3364
+ const { getPluginOperationalReports } = await import("./projection-DliWYrnT.js").then((n) => n.zn);
3268
3365
  return pluginOperationalReportFeedSchema.parse({
3269
3366
  source: "plugins",
3270
3367
  generatedAt: new Date(nowMs).toISOString(),
@@ -3281,6 +3378,7 @@ function createJuniorApi(options = {}) {
3281
3378
  app.get("/api/skills", async () => jsonResponse(skillReportsSchema, await readSkillReports()));
3282
3379
  app.get("/api/plugin-reports", async () => jsonResponse(pluginOperationalReportFeedSchema, await readPluginOperationalReportFeed()));
3283
3380
  app.get("/api/stats", async () => jsonResponse(statsReportSchema, await readStatsReport()));
3381
+ app.get("/api/versions", requireViewer, validateRequest("query", versionsQuerySchema, "Invalid query parameters."), async (context) => jsonResponse(versionsSchema, await readVersions(context.get("viewer"), context.req.valid("query")), { headers: { "cache-control": "private, no-store" } }));
3284
3382
  const queue = options.conversationWorkQueue ?? getVercelConversationWorkQueue();
3285
3383
  app.route("/api/conversations", createConversationRoutes({
3286
3384
  attachmentStorage: getAttachmentStorage(),
@@ -1,6 +1,6 @@
1
1
  import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
2
- import { t as ConversationStore } from "./db-D7CCwAo8.js";
3
- import "./schema-B017enNE.js";
2
+ import { t as ConversationStore } from "./db-BhHZSuFw.js";
3
+ import "./schema-BUviRAs8.js";
4
4
  import { n as JuniorPluginSet } from "./plugins-DtmjkTza.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 JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-CvGalMxi.js";
1
+ import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-DyMs9330.js";
2
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
4
  export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };