@sentry/junior 0.285.0 → 0.286.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 (73) hide show
  1. package/dist/{adapter-DN5AB4VU.js → adapter-JQZaJ-B_.js} +1 -1
  2. package/dist/{admin-DOITMKnn.js → admin-Dm2bimJ-.js} +1 -1
  3. package/dist/{agent-runner-BsWhHe4N.js → agent-runner-DGCwOEyL.js} +1567 -1048
  4. package/dist/api/schema.d.ts +1 -1
  5. package/dist/api/schema.js +5 -5
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +70 -92
  8. package/dist/{app-DyMs9330.d.ts → app-BKq0JzWx.d.ts} +2 -3
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +37 -40
  11. package/dist/{assistant-reply-9Jip5bsr.js → assistant-reply-CAPafcUY.js} +1 -1
  12. package/dist/{automation-Mk8aaHzy.js → automation-B-jJN_gM.js} +1 -1
  13. package/dist/{background-compaction-queue-DXkLsWoH.js → background-compaction-queue-Btu2oab_.js} +137 -3
  14. package/dist/{briefs-Cl8-nK9B.js → briefs-UMeYehUe.js} +4 -4
  15. package/dist/{catalog-runtime-Bte6jRB2.js → catalog-runtime-Bym8GVdh.js} +1 -1
  16. package/dist/cli/chat.js +14 -14
  17. package/dist/cli/check.js +3 -3
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.js +4 -4
  20. package/dist/cli/snapshot-create.js +5 -6
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +3 -3
  23. package/dist/{client-DDbBucBw.js → client-B0aAs7wC.js} +2 -2
  24. package/dist/{config-DqFnykQT.js → config-B9f9Lqo5.js} +1 -1
  25. package/dist/{connections-DA4LT9LL.js → connections-CQ7p0aNJ.js} +16 -50
  26. package/dist/{conversation-D8kVoCrP.js → conversation-BusI2uzj.js} +15 -6
  27. package/dist/{conversation-pending-messages-BvROq1bq.js → conversation-pending-messages-DwehU0Fd.js} +1 -1
  28. package/dist/{conversation-privacy-D0j_h70R.js → conversation-privacy-Cd_nZZBM.js} +1 -1
  29. package/dist/{credential-sync-hcsYatw-.js → credential-sync-DmiJi_At.js} +13 -13
  30. package/dist/{db-BhHZSuFw.d.ts → db-C5zi4ecs.d.ts} +4 -4
  31. package/dist/{executor-BLEMIgIZ.js → executor-Dipi2Ixl.js} +11 -17
  32. package/dist/instrumentation.js +2 -2
  33. package/dist/{logging-BfORLKoq.js → logging-CMFhLLj4.js} +1 -1
  34. package/dist/{media-Bu9C6lz0.js → media-B-BpXo41.js} +14 -2
  35. package/dist/{message-DqjuKzUx.js → message-D1xLljUF.js} +9 -9
  36. package/dist/nitro.d.ts +1 -1
  37. package/dist/nitro.js +2 -3
  38. package/dist/{oauth-callback-server-CFSRzu1n.js → oauth-callback-server-DCAFIUQr.js} +2 -2
  39. package/dist/{projection-DliWYrnT.js → projection-CoeMNxJ4.js} +286 -212
  40. package/dist/{prompt-BvIUzY4y.js → prompt-C9OQEfan.js} +1 -1
  41. package/dist/{registry-rC7MCxu8.js → registry-u-sFYtx_.js} +1 -1
  42. package/dist/{resolve-Biu8Qw3u.js → resolve-DYqgL3Eo.js} +3 -3
  43. package/dist/{result-DxJMCX47.js → result-CescSwAw.js} +8 -8
  44. package/dist/{runner-BQJSFLKg.js → runner-Cr67a8TB.js} +16 -12
  45. package/dist/{sandbox-egress-signals-6aMxJSDn.js → sandbox-egress-signals-DLOazy5W.js} +1 -1
  46. package/dist/{schema-BasXTvi2.js → schema-BUSi3sgv.js} +5 -5
  47. package/dist/{schema-BUviRAs8.d.ts → schema-Ih60j59-.d.ts} +44 -7
  48. package/dist/{service-account-BI5Wgx22.js → service-account-CGEqz9wG.js} +3 -3
  49. package/dist/{service-account-CAE-_1dR.js → service-account-CsKxktLk.js} +3 -3
  50. package/dist/{session-stop-CA-jOJ84.js → session-stop-CGz5DByb.js} +22 -20
  51. package/dist/{skills-B22duVJU.js → skills-COCqf61f.js} +2 -2
  52. package/dist/{spawn-BB2_4VYn.js → spawn-C8F_iXWO.js} +13 -2
  53. package/dist/{stop-DioIcEAu.js → stop-GyFZkHuQ.js} +242 -952
  54. package/dist/{store-Dn4W7qgH.js → store-D0-8plWp.js} +3 -3
  55. package/dist/{turn-session-routing-CGMKrYOj.js → task-runner-xPuQmEot.js} +1439 -993
  56. package/dist/{store-B26LV6UP.js → turn-failure-response-BOviBdT-.js} +331 -5
  57. package/dist/{validation-TzhfQABF.js → validation-DZDKorGz.js} +1 -1
  58. package/dist/{version-DSk8CFvA.js → version-BTIz7fGi.js} +1 -1
  59. package/dist/version.js +1 -1
  60. package/dist/{viewer-1Ea81s0b.js → viewer-CH-ASQzh.js} +39 -36
  61. package/dist/{work-ybG4_q5C.js → work-C75_IM5e.js} +92 -87
  62. package/dist/{worker-ccSyZRNz.js → worker-Dl47I729.js} +6 -6
  63. package/migrations/0086_shared_archive.sql +31 -0
  64. package/migrations/0087_child_location.sql +64 -0
  65. package/migrations/meta/0086_snapshot.json +4366 -0
  66. package/migrations/meta/0087_snapshot.json +4366 -0
  67. package/migrations/meta/_journal.json +14 -0
  68. package/package.json +5 -4
  69. package/dist/task-queue-Bt0IoR2i.js +0 -139
  70. package/dist/task-runner-D8lddjzp.js +0 -290
  71. package/dist/thread-state-CrFk3K_7.js +0 -173
  72. package/dist/turn-failure-response-DaJ04qVj.js +0 -224
  73. package/dist/turn-lifecycle-C2mXS7AZ.js +0 -58
@@ -1,2 +1,2 @@
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";
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-Ih60j59-.js";
2
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,9 +1,9 @@
1
- import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-Bu9C6lz0.js";
1
+ import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-B-BpXo41.js";
2
2
  import { n as isWithinNotificationSchedule, r as notificationScheduleSchema, t as DEFAULT_NOTIFICATION_SCHEDULE } from "../schedule-BTp__wrw.js";
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";
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-BusI2uzj.js";
4
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";
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-B-jJN_gM.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-DwehU0Fd.js";
7
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";
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-BUSi3sgv.js";
9
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-BhHZSuFw.js";
2
+ import "./db-C5zi4ecs.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,27 +1,27 @@
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
- import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-Bu9C6lz0.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";
1
+ import { $a as createConversationAccessReader, Cr as canActOnReviewItem, Di as create, Er as isOnlyAssignee, Fa as workspaceRepoCheckoutPath, In as createUserTokenStore, Ma as SANDBOX_RUNTIME, Mo as createPluginCache, Oi as hash, Pn as isExperimentalFeatureEnabled, Si as WorkspaceValidationError, Yn as getPlugins, Za as createPluginLogger, _i as getWorkspace, _r as listWaitingConversations, ar as listPushSubscriptions, bi as listWorkspacesByRepository, co as readConversationBriefThrough, cr as savePushSubscription, dr as countReviewItemsNeedingUser, eo as readConversationAccessFromSql, gi as deleteWorkspace, hi as createWorkspace, ir as deletePushSubscription, jr as reviewItemReaderForUser, li as getDashboardSettingsLink, nr as sendPushNotificationToUser, or as readNotificationSchedule, rr as resolveNotificationTimezone, sr as saveNotificationSchedule, tr as readWebPushConfig, uo as readConversationEventPage, vr as reviewItemsNeedingUserVersionQuery, xi as updateWorkspace, yi as listWorkspaces, yr as searchReviewItems } from "./projection-CoeMNxJ4.js";
2
+ import { a as completeText, m as escapeXml } from "./client-B0aAs7wC.js";
3
+ import { n as botConfig, y as getAttachmentStorage } from "./config-B9f9Lqo5.js";
4
+ import { m as logInfo, p as logException } from "./logging-CMFhLLj4.js";
5
+ import { C as getSqlExecutor, I as withConversationMutationLock, L as conversationKindFromRow, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, et as nextDetailVersion, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-CH-ASQzh.js";
6
+ import { A as juniorConversations, D as juniorCodeChanges, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorIdentities, w as juniorConversationEvents } from "./executor-Dipi2Ixl.js";
7
+ import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-B-BpXo41.js";
8
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-Bym8GVdh.js";
9
+ import { $ as readViewerAutomationSummary, Bt 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, _t as readLiveAttachment, et as readViewerAutomationVersions, h as readStats, it as listOwnedWatches, mt as webActorFromUser, nt as AutomationEditError, q as readViewerAutomationEdit, tt as readViewerAutomations } from "./agent-runner-DGCwOEyL.js";
10
+ import { r as getStateAdapter } from "./adapter-JQZaJ-B_.js";
11
11
  import { r as notificationScheduleSchema } from "./schedule-BTp__wrw.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";
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-BusI2uzj.js";
13
+ import { n as briefEntriesFromReportEvents } from "./prompt-C9OQEfan.js";
14
+ import { O as getEventCatalog, et as readUserCustomization, tt as saveUserCustomization } from "./session-stop-CGz5DByb.js";
15
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";
16
+ import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-DYqgL3Eo.js";
17
+ import { _ as getVercelConversationWorkQueue } from "./background-compaction-queue-Btu2oab_.js";
18
+ import { J as AutomationConflictError, St as automationEventCatalog, dt as conversationRangeColumns, ft as conversationUsageCostExpr, lt as conversationActiveDaysColumn, st as readAutomationTitlesByConversationId, ut as conversationAggregateColumns } from "./task-runner-xPuQmEot.js";
19
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CGEqz9wG.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-B-jJN_gM.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-DwehU0Fd.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-GyFZkHuQ.js";
23
+ import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-CQ7p0aNJ.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-BUSi3sgv.js";
25
25
  import { Hono } from "hono";
26
26
  import path from "node:path";
27
27
  import { createHash, randomBytes, randomUUID } from "node:crypto";
@@ -230,12 +230,12 @@ async function readChildKinds(db, childIds) {
230
230
  const rows = await db.select({
231
231
  conversationId: juniorConversations.conversationId,
232
232
  kind: juniorConversations.kind,
233
- parentConversationId: juniorConversations.parentConversationId,
234
- childArchivedAt: juniorConversations.childArchivedAt
233
+ archivedAt: juniorConversations.archivedAt,
234
+ parentConversationId: juniorConversations.parentConversationId
235
235
  }).from(juniorConversations).where(inArray(juniorConversations.conversationId, [...childIds]));
236
236
  return new Map(rows.map((row) => [row.conversationId, {
237
- kind: conversationKindFromRow(row) === "thread" ? "thread" : "task",
238
- childArchivedAt: row.childArchivedAt?.toISOString() ?? null
237
+ archivedAt: row.archivedAt?.toISOString() ?? null,
238
+ kind: conversationKindFromRow(row) === "thread" ? "thread" : "task"
239
239
  }]));
240
240
  }
241
241
  /**
@@ -266,8 +266,8 @@ async function requireConversationChildAgents(conversationId, options = {}) {
266
266
  ...auxiliaryCosts ? { auxiliaryCosts: auxiliaryCosts.total } : void 0,
267
267
  ...childAgentTotals ? { childAgentTotals } : void 0,
268
268
  ...kindByChild.get(agent.childConversationId) ?? {
269
- kind: "task",
270
- childArchivedAt: null
269
+ archivedAt: null,
270
+ kind: "task"
271
271
  },
272
272
  status: agent.status,
273
273
  updatedAt: new Date(agent.updatedAtMs).toISOString(),
@@ -1539,7 +1539,7 @@ function summaryFromRow(row, options = {}) {
1539
1539
  ...actor ? { actor } : void 0,
1540
1540
  ...row.channelName ? { channelName: row.channelName } : void 0,
1541
1541
  ...row.parentConversationId ? { parentConversationId: row.parentConversationId } : void 0,
1542
- ...row.childArchivedAt ? { childArchivedAtMs: row.childArchivedAt.getTime() } : void 0,
1542
+ ...row.archivedAt ? { archivedAtMs: row.archivedAt.getTime() } : void 0,
1543
1543
  ...row.source ? { source: row.source } : void 0,
1544
1544
  ...row.stoppedAt ? { stoppedAtMs: row.stoppedAt.getTime() } : void 0,
1545
1545
  ...row.title ? { title: row.title } : void 0
@@ -1761,7 +1761,7 @@ async function recentLocationRows(db, locationId) {
1761
1761
  fullName: juniorUsers.displayName,
1762
1762
  kind: juniorConversations.kind,
1763
1763
  parentConversationId: juniorConversations.parentConversationId,
1764
- childArchivedAt: juniorConversations.childArchivedAt,
1764
+ archivedAt: juniorConversations.archivedAt,
1765
1765
  handle: juniorIdentities.handle,
1766
1766
  lastActivityAt: juniorConversations.lastActivityAt,
1767
1767
  providerSubjectId: sql`CASE
@@ -2040,7 +2040,7 @@ async function recentActorRows(email) {
2040
2040
  fullName: juniorUsers.displayName,
2041
2041
  kind: juniorConversations.kind,
2042
2042
  parentConversationId: juniorConversations.parentConversationId,
2043
- childArchivedAt: juniorConversations.childArchivedAt,
2043
+ archivedAt: juniorConversations.archivedAt,
2044
2044
  handle: sql`CASE WHEN ${juniorIdentities.provider} = 'slack' THEN ${juniorIdentities.handle} END`,
2045
2045
  lastActivityAt: juniorConversations.lastActivityAt,
2046
2046
  providerSubjectId: sql`CASE WHEN ${juniorIdentities.provider} = 'slack' THEN ${juniorIdentities.providerSubjectId} END`,
@@ -2272,7 +2272,7 @@ async function readPeoplePluginReports(args) {
2272
2272
  reports: [],
2273
2273
  source: "plugins"
2274
2274
  });
2275
- const { getPluginProfileReports } = await import("./projection-DliWYrnT.js").then((n) => n.zn);
2275
+ const { getPluginProfileReports } = await import("./projection-CoeMNxJ4.js").then((n) => n.Vn);
2276
2276
  return pluginOperationalReportFeedSchema.parse({
2277
2277
  generatedAt: new Date(nowMs).toISOString(),
2278
2278
  reports: await getPluginProfileReports({
@@ -2481,36 +2481,48 @@ function spendWindow(nowMs) {
2481
2481
  thirtyDayStart
2482
2482
  };
2483
2483
  }
2484
- /**
2485
- * Return a query for a cheap change marker of one viewer's spend window.
2486
- *
2487
- * Writes that record Conversation metrics also move `updated_at` forward, so
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.
2490
- */
2491
- function personalSpendVersionQuery(db, email, nowMs) {
2484
+ /** Match the viewer's own Conversations with activity in the spend window. */
2485
+ function viewerWindowWhere(email, nowMs) {
2492
2486
  const normalizedEmail = normalizeEmail$1(email);
2493
2487
  const { end, thirtyDayStart } = spendWindow(nowMs);
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 ?? "";
2488
+ return normalizedEmail ? and(verifiedActorWhere(normalizedEmail), gte(juniorConversations.lastActivityAt, thirtyDayStart), lte(juniorConversations.lastActivityAt, end)) : sql`false`;
2500
2489
  }
2501
- /** Read one viewer's rolling model spend with one bounded aggregate query. */
2502
- async function readPersonalSpendFromSql(email, nowMs = Date.now()) {
2503
- const normalizedEmail = normalizeEmail$1(email);
2504
- const { end, sevenDayStart, thirtyDayStart } = spendWindow(nowMs);
2490
+ /** Return a query for one viewer's model spend for each UTC day in the window. */
2491
+ function personalSpendDaysQuery(db, email, nowMs) {
2505
2492
  const activityDate = sql`TO_CHAR(
2506
2493
  ${juniorConversations.lastActivityAt} AT TIME ZONE 'UTC',
2507
2494
  'YYYY-MM-DD'
2508
2495
  )`;
2509
- const metricsJoin = peopleTreeMetricsJoin();
2510
- const rows = normalizedEmail ? await getDb().select({
2496
+ return db.select({
2511
2497
  costUsd: peopleTreeAggregateColumns.costUsd,
2512
2498
  date: activityDate
2513
- }).from(juniorConversations).innerJoin(juniorIdentities, eq(juniorIdentities.id, juniorConversations.actorIdentityId)).innerJoin(juniorUsers, eq(juniorUsers.id, juniorIdentities.userId)).leftJoin(peopleTreeConversation, metricsJoin).where(and(verifiedActorWhere(normalizedEmail), gte(juniorConversations.lastActivityAt, thirtyDayStart), lte(juniorConversations.lastActivityAt, end))).groupBy(activityDate) : [];
2499
+ }).from(juniorConversations).innerJoin(juniorIdentities, eq(juniorIdentities.id, juniorConversations.actorIdentityId)).innerJoin(juniorUsers, eq(juniorUsers.id, juniorIdentities.userId)).leftJoin(peopleTreeConversation, peopleTreeMetricsJoin()).where(viewerWindowWhere(email, nowMs)).groupBy(activityDate);
2500
+ }
2501
+ /**
2502
+ * Return a query for a change marker of one viewer's spend window.
2503
+ *
2504
+ * It reads only the viewer's own rows, without the tree join of the spend
2505
+ * read, so it costs about as much as a count. It sums each row's own cost
2506
+ * and the UTC day of its last activity, so a recorded cost, or a
2507
+ * Conversation that moves to a new day, moves it. Other writes do not. A
2508
+ * Task that another person's Turn started under the viewer's root is not
2509
+ * the viewer's row, so its cost shows on the next spend read: a page load,
2510
+ * a tab focus, or the viewer's next own cost. The window start moves it at
2511
+ * UTC midnight.
2512
+ */
2513
+ function personalSpendVersionQuery(db, email, nowMs) {
2514
+ const { thirtyDayStart } = spendWindow(nowMs);
2515
+ return db.select({ version: sql`concat_ws(':',
2516
+ ${thirtyDayStart.toISOString().slice(0, 10)}::text,
2517
+ count(*),
2518
+ sum(${conversationUsageCostExpr(juniorConversations.usage)}),
2519
+ sum(extract(epoch from date_trunc('day', ${juniorConversations.lastActivityAt} at time zone 'UTC')))
2520
+ )` }).from(juniorConversations).innerJoin(juniorIdentities, eq(juniorIdentities.id, juniorConversations.actorIdentityId)).innerJoin(juniorUsers, eq(juniorUsers.id, juniorIdentities.userId)).where(viewerWindowWhere(email, nowMs));
2521
+ }
2522
+ /** Read one viewer's rolling model spend with one bounded aggregate query. */
2523
+ async function readPersonalSpendFromSql(email, nowMs = Date.now()) {
2524
+ const { end, sevenDayStart, thirtyDayStart } = spendWindow(nowMs);
2525
+ const rows = await personalSpendDaysQuery(getDb(), email, nowMs);
2514
2526
  const sevenDayStartDate = sevenDayStart.toISOString().slice(0, 10);
2515
2527
  let sevenDaysUsd = 0;
2516
2528
  let thirtyDaysUsd = 0;
@@ -2528,45 +2540,11 @@ async function readPersonalSpendFromSql(email, nowMs = Date.now()) {
2528
2540
  windowStart: thirtyDayStart.toISOString()
2529
2541
  };
2530
2542
  }
2531
- // src/api/people/spend.ts
2532
- const PERSONAL_SPEND_CACHE_TTL_MS = 3e5;
2533
- /**
2534
- * Create an app-scoped personal-spend reader.
2535
- *
2536
- * A cached report stays valid for five minutes, or until the viewer's spend
2537
- * version changes. The dashboard can poll often and still see a finished Turn
2538
- * without a full aggregate query on every poll.
2539
- */
2540
- function createPersonalSpendReader() {
2541
- const cache = /* @__PURE__ */ new Map();
2542
- return async function readPersonalSpend(email) {
2543
- const normalizedEmail = email.trim().toLowerCase();
2544
- const nowMs = Date.now();
2545
- const version = await readPersonalSpendVersion(normalizedEmail, nowMs);
2546
- const cached = cache.get(normalizedEmail);
2547
- if (cached && cached.expiresAtMs > nowMs && cached.version === version) return cached.report;
2548
- cache.delete(normalizedEmail);
2549
- const report = readPersonalSpendFromSql(normalizedEmail, nowMs);
2550
- const entry = {
2551
- expiresAtMs: nowMs + PERSONAL_SPEND_CACHE_TTL_MS,
2552
- report,
2553
- version
2554
- };
2555
- cache.set(normalizedEmail, entry);
2556
- try {
2557
- return await report;
2558
- } catch (error) {
2559
- if (cache.get(normalizedEmail) === entry) cache.delete(normalizedEmail);
2560
- throw error;
2561
- }
2562
- };
2563
- }
2564
2543
  // src/api/people/routes.ts
2565
2544
  const AVATAR_IMMUTABLE_CACHE_CONTROL = "private, max-age=31536000, immutable";
2566
2545
  /** Create the HTTP routes owned by the People API. */
2567
2546
  function createPeopleRoutes() {
2568
2547
  const app = new Hono();
2569
- const readPersonalSpend = createPersonalSpendReader();
2570
2548
  app.get("/avatars/:identityId", requireViewer, validateRequest("param", avatarParamsSchema, "Invalid route parameters."), async (context) => {
2571
2549
  const { identityId } = context.req.valid("param");
2572
2550
  const avatar = await readAvatarImage(getDb(), getStateAdapter(), identityId);
@@ -2589,7 +2567,7 @@ function createPeopleRoutes() {
2589
2567
  });
2590
2568
  app.get("/me/spend", requireViewer, async (context) => {
2591
2569
  const viewer = context.get("viewer");
2592
- return jsonResponse(personalSpendReportSchema, await readPersonalSpend(viewer.email));
2570
+ return jsonResponse(personalSpendReportSchema, await readPersonalSpendFromSql(viewer.email));
2593
2571
  });
2594
2572
  app.get("/", async () => jsonResponse(actorDirectoryReportSchema, await readPeopleList()));
2595
2573
  app.get("/:email/plugin-reports", requireViewer, validateRequest("param", personParamsSchema, "Invalid route parameters."), async (context) => {
@@ -3323,7 +3301,7 @@ function readDescriptionText(home) {
3323
3301
  }
3324
3302
  /** Read discovered skill names for authenticated runtime diagnostics. */
3325
3303
  async function readSkillReports() {
3326
- const { discoverSkills } = await import("./skills-B22duVJU.js").then((n) => n.o);
3304
+ const { discoverSkills } = await import("./skills-COCqf61f.js").then((n) => n.o);
3327
3305
  const skills = await discoverSkills();
3328
3306
  return skillReportsSchema.parse(skills.map((skill) => ({
3329
3307
  name: skill.name,
@@ -3332,7 +3310,7 @@ async function readSkillReports() {
3332
3310
  }
3333
3311
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
3334
3312
  async function readPlugins() {
3335
- const { pluginCatalogRuntime } = await import("./catalog-runtime-Bte6jRB2.js").then((n) => n.t);
3313
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-Bym8GVdh.js").then((n) => n.t);
3336
3314
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
3337
3315
  configKeys: plugin.manifest.configKeys ?? [],
3338
3316
  description: plugin.manifest.description,
@@ -3344,7 +3322,7 @@ async function readPlugins() {
3344
3322
  async function readRuntimeInfoReport() {
3345
3323
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
3346
3324
  import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
3347
- import("./catalog-runtime-Bte6jRB2.js").then((n) => n.t),
3325
+ import("./catalog-runtime-Bym8GVdh.js").then((n) => n.t),
3348
3326
  readPlugins(),
3349
3327
  readSkillReports()
3350
3328
  ]);
@@ -3361,7 +3339,7 @@ async function readRuntimeInfoReport() {
3361
3339
  /** Read sanitized operational summaries contributed by plugins. */
3362
3340
  async function readPluginOperationalReportFeed() {
3363
3341
  const nowMs = Date.now();
3364
- const { getPluginOperationalReports } = await import("./projection-DliWYrnT.js").then((n) => n.zn);
3342
+ const { getPluginOperationalReports } = await import("./projection-CoeMNxJ4.js").then((n) => n.Vn);
3365
3343
  return pluginOperationalReportFeedSchema.parse({
3366
3344
  source: "plugins",
3367
3345
  generatedAt: new Date(nowMs).toISOString(),
@@ -1,6 +1,6 @@
1
1
  import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
2
- import { t as ConversationStore } from "./db-BhHZSuFw.js";
3
- import "./schema-BUviRAs8.js";
2
+ import { t as ConversationStore } from "./db-C5zi4ecs.js";
3
+ import "./schema-Ih60j59-.js";
4
4
  import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
5
5
  import "./sentry-DrKC2NeM.js";
6
6
  import { Hono } from "hono";
@@ -121,7 +121,6 @@ declare const inboundMessageSchema: z.ZodObject<{
121
121
  conversationId: z.ZodString;
122
122
  }, z.core.$strict>], "platform">>;
123
123
  inboundMessageId: z.ZodString;
124
- injectedAtMs: z.ZodOptional<z.ZodNumber>;
125
124
  input: z.ZodObject<{
126
125
  attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
127
126
  authorId: z.ZodOptional<z.ZodString>;
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-DyMs9330.js";
1
+ import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-BKq0JzWx.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 };