@sentry/junior 0.273.0 → 0.275.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 (67) hide show
  1. package/dist/{adapter-umap1cth.js → adapter-dE2BiWP_.js} +1 -1
  2. package/dist/{admin-0o6E_3lo.js → admin-CkPaAYuZ.js} +1 -1
  3. package/dist/{agent-runner-D7Qz-lGO.js → agent-runner-bE7aH7ew.js} +1131 -306
  4. package/dist/api/schema.d.ts +1 -1
  5. package/dist/api/schema.js +4 -4
  6. package/dist/api.d.ts +1 -1
  7. package/dist/api.js +27 -27
  8. package/dist/{app-BcyhJq8x.d.ts → app-CgkquhZ8.d.ts} +18 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +74 -30
  11. package/dist/{assistant-reply-wZ7i4OFa.js → assistant-reply-CjRU9Z59.js} +1 -1
  12. package/dist/{automation-yffXcZt9.js → automation-BGrd03QO.js} +1 -1
  13. package/dist/{job-queue-C4lphW9Y.js → background-compaction-queue-BYuOt3qK.js} +42 -3
  14. package/dist/{briefs-CgMnlpIp.js → briefs-6xUvmGos.js} +4 -4
  15. package/dist/{catalog-runtime-TygDsPOU.js → catalog-runtime-DcJ5NHDW.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 +4 -4
  21. package/dist/cli/upgrade.d.ts +1 -1
  22. package/dist/cli/upgrade.js +3 -3
  23. package/dist/{client-DhqbV0Fe.js → client-gnKpkpqP.js} +2 -2
  24. package/dist/{config-C6FTd7PX.js → config-D0GKc9sC.js} +2 -2
  25. package/dist/{connections-Dq72KajR.js → connections-DLqP5Bp1.js} +10 -10
  26. package/dist/{conversation-T4oabbBi.js → conversation-BjTo9ZFL.js} +1 -1
  27. package/dist/{conversation-privacy-BeRgrsph.js → conversation-privacy-BCXFshP9.js} +1 -1
  28. package/dist/{credential-sync-BmCbHAp4.js → credential-sync-BjihXFF2.js} +13 -13
  29. package/dist/{db-DOzBGLn5.d.ts → db-BMZhoYKj.d.ts} +1 -1
  30. package/dist/{executor-BafgvQcc.js → executor-j8VMt-To.js} +2 -2
  31. package/dist/instrumentation.js +2 -2
  32. package/dist/{logging-CNs1e04n.js → logging-CFHIO4Vs.js} +10 -2
  33. package/dist/{media-U6Tuz6Mi.js → media-DstkkoNP.js} +21 -2
  34. package/dist/{message-CETC5lsl.js → message-DH0cqFRS.js} +9 -9
  35. package/dist/nitro.d.ts +1 -1
  36. package/dist/nitro.js +13 -3
  37. package/dist/{oauth-callback-server-DcQZsKMm.js → oauth-callback-server-BgU4EZsJ.js} +2 -2
  38. package/dist/{projection-BOpi891B.js → projection-CTvLSwcm.js} +42 -15
  39. package/dist/{prompt-B1ySjUyf.js → prompt-JEWUUpLW.js} +1 -1
  40. package/dist/{registry-B-yUrv3h.js → registry-OsyWR4GO.js} +1 -1
  41. package/dist/{resolve-DqVtd4Q9.js → resolve-DCrKjmVP.js} +3 -3
  42. package/dist/{result-DQwTiLTw.js → result-Btdt5bSl.js} +9 -9
  43. package/dist/{runner-Dco5qMq6.js → runner-C1AwS93W.js} +11 -11
  44. package/dist/{sandbox-egress-signals-DFc_9Mcv.js → sandbox-egress-signals-C-5i7Zxm.js} +1 -1
  45. package/dist/{schema-5xHDGlBW.js → schema-CX9XGKCm.js} +11 -4
  46. package/dist/{schema-9OGdsaxF.d.ts → schema-DfdHlBnb.d.ts} +9 -2
  47. package/dist/{service-account-smdPFWNy.js → service-account-CQIW6At4.js} +3 -3
  48. package/dist/{service-account-CWfk9Cs-.js → service-account-DZX1KlQl.js} +3 -3
  49. package/dist/{session-stop-DaT_7tYa.js → session-stop-DjIyORJw.js} +11 -11
  50. package/dist/{skills-BbtJSF2-.js → skills-BEfAAT6p.js} +2 -2
  51. package/dist/{spawn-Ceikdjkp.js → spawn-Dgj4xxvO.js} +2 -2
  52. package/dist/{stop-dKUc-x2K.js → stop-DomyNvuv.js} +61 -69
  53. package/dist/{store-C1xuZcLd.js → store-B7Z6zIc7.js} +3 -3
  54. package/dist/{store-DaxUuOmD.js → store-Dp3RMEQd.js} +3 -3
  55. package/dist/{task-queue-ymAh_-P1.js → task-queue-CVQ9cWnC.js} +3 -3
  56. package/dist/{task-runner-vlH6pEm3.js → task-runner-DHBG47gS.js} +7 -7
  57. package/dist/{thread-state-BkUpE9Ae.js → thread-state-BF8VwIxd.js} +4 -4
  58. package/dist/{turn-failure-response-DIsD7ip_.js → turn-failure-response-Di7TbgsF.js} +7 -7
  59. package/dist/{turn-lifecycle-BdPKdPS8.js → turn-lifecycle-DzXwXmLg.js} +1 -1
  60. package/dist/{turn-session-routing-BdCTDq9m.js → turn-session-routing-CIWhXKeT.js} +9 -9
  61. package/dist/{validation-BQjCfh84.js → validation-BRmwRaXc.js} +1 -1
  62. package/dist/{version-BpiFGZZW.js → version-DBVMsgvA.js} +1 -1
  63. package/dist/version.js +1 -1
  64. package/dist/{viewer-C6Y1aXjZ.js → viewer-BFADRGP8.js} +17 -8
  65. package/dist/{work-ChPh_YEh.js → work-DDaoxZAw.js} +11 -11
  66. package/dist/{worker-Be_sK_ou.js → worker-Bub0fDtW.js} +6 -6
  67. package/package.json +4 -4
@@ -1,2 +1,2 @@
1
- import { $ as automationExecutionStatusDaySchema, $n as ConversationPendingMessageDelivery, $r as codeChangeSummarySchema, $t as LocationSummaryReport, A as StatsReport, An as ConversationMetricDay, Ar as conversationPendingAuthorizationSchema, At as createPersonalTokenBodySchema, B as AutomationRun, Bn as CancelConversationPendingMessagesBody, Br as forkConversationResponseSchema, Bt as startServiceAccountSignInResponseSchema, C as pluginPackageContentReportSchema, Ci as MAX_INPUT_IMAGE_BYTES, Cn as ConversationChildAgentsReport, Cr as conversationDetailReportSchema, Ct as workspaceListSchema, D as skillReportSchema, Dn as conversationReadPositionSchema, Dr as conversationFeedQuerySchema, Dt as USER_CUSTOMIZATION_MAX_CHARS, E as runtimeInfoReportSchema, En as ConversationReadPosition, Er as conversationEventsQuerySchema, Et as workspaceSchema, F as AutomationExecutionDay, Fn as conversationStatsReportSchema, Fr as conversationReportEventSchema, Ft as revokePersonalTokenResponseSchema, G as AutomationUpdate, Gn as ConversationCost, Gr as CodeActivityDay, Gt as startConnectionResponseSchema, H as AutomationRunWindows, Hn as ConversationActivityPreview, Hr as steerConversationPendingMessagesResponseSchema, Ht as connectionParamsSchema, I as AutomationExecutionList, In as AcceptedConversationMessage, Ir as conversationSummaryReportSchema, It as disconnectServiceAccountResponseSchema, J as automationEditErrorSchema, Jn as ConversationEventPage, Jr as CodePersonReport, Jt as LocationActivityDayReport, K as AutomationVersionList, Kn as ConversationDetailReport, Kr as CodeChangeSummaryReport, Kt as ApiError, L as AutomationExecutionStatusDay, Ln as ActorIdentity, Lr as createConversationBodySchema, Lt as serviceAccountListSchema, M as statsReportSchema, Mn as ConversationStatsReport, Mr as conversationPendingMessageSchema, Mt as personalTokenListSchema, N as AutomationEdit, Nn as GuardianMetricDay, Nr as conversationPendingMessagesReportSchema, Nt as personalTokenMetadataSchema, O as skillReportsSchema, On as StopConversationTurnResponse, Or as conversationFeedSchema, Ot as userCustomizationSchema, P as AutomationExecution, Pn as GuardianStats, Pr as conversationReportEventDataSchema, Pt as personalTokenParamsSchema, Q as automationExecutionSchema, Qn as ConversationPendingMessage, Qr as codeChangeSummaryReportSchema, Qt as LocationParams, R as AutomationList, Rn as ArchiveConversationBody, Rr as createConversationMessageBodySchema, Rt as serviceAccountParamsSchema, S as pluginPackageContentItemReportSchema, Si as MAX_INPUT_IMAGES, Sn as ConversationChildAgent, Sr as conversationDetailQuerySchema, St as workspaceBodySchema, T as pluginsSchema, Ti as INPUT_IMAGE_TYPES, Tn as conversationChildAgentsReportSchema, Tr as conversationEventPageSchema, Tt as workspaceRepoSchema, U as AutomationScheduleIntent, Un as ConversationAgentTreeNode, Ur as conversationTurnFailureCodeSchema, Ut as connectionSchema, V as AutomationRunList, Vn as CancelConversationPendingMessagesResponse, Vr as steerConversationPendingMessagesBodySchema, Vt as connectionListSchema, W as AutomationSummary, Wn as ConversationAuxiliaryCosts, Wr as conversationTurnFailureReasonSchema, Wt as disconnectConnectionResponseSchema, X as automationEventCatalogSchema, Xn as ConversationModelUsage, Xr as CodeRepositorySummary, Xt as LocationDetailReport, Y as automationEditSchema, Yn as ConversationFeed, Yr as CodeRepositoryReport, Yt as LocationActorSummaryReport, Z as automationExecutionListSchema, Zn as ConversationParams, Zr as codeActivityDaySchema, Zt as LocationDirectoryReport, _ as SkillReport, _i as buttonUserInputField, _n as personalSpendReportSchema, _r as archiveConversationResponseSchema, _t as BaselineSnapshotReport, a as reviewItemCountSchema, ai as ConversationChildAgentTotals, an as ActorDirectoryReport, ar as ConversationSourceTask, at as automationRunSchema, b as pluginOperationalReportFeedSchema, bi as webMessageId, bn as conversationWatchSchema, br as conversationActivityPreviewSchema, bt as baselineSnapshotSchema, c as reviewItemWaitingConversationsSchema, ci as dailyConversationActivitySchema, cn as ActorSummaryReport, cr as ConversationTurnFailureCode, ct as automationSchedulePreviewSchema, d as PluginOperationalReport, di as resolveMessageCards, dn as PeopleActivityDayReport, dr as CreateConversationBody, dt as automationVersionActivateSchema, ei as codeOverviewReportSchema, en as locationActivityDayReportSchema, er as ConversationPendingMessagesReport, et as automationExecutionStatusSchema, f as PluginOperationalReportFeed, fi as AutomationCard, fn as PersonParams, fr as CreateConversationMessageBody, ft as automationVersionListSchema, g as RuntimeInfoReport, gi as UserInputRequest, gn as personParamsSchema, gr as archiveConversationBodySchema, gt as scheduledAutomationSummarySchema, h as Plugins, hi as UserInputField, hn as actorProfileReportSchema, hr as acceptedConversationMessageSchema, ht as eventAutomationSummarySchema, i as reviewItemActionSchema, ii as codeRepositorySummarySchema, in as ActorActivityDayReport, ir as ConversationReportStatus, it as automationRunListSchema, j as statSchema, jn as ConversationStatsItem, jr as conversationPendingMessageDeliverySchema, jt as createdPersonalTokenSchema, k as StatReport, kn as stopConversationTurnResponseSchema, kr as conversationParamsSchema, kt as PersonalTokenMetadata, l as HealthReport, li as MessageCard, ln as ActorTotalsReport, lr as ConversationTurnFailureReason, lt as automationSummarySchema, m as PluginPackageContentReport, mi as UserInputAnswer, mn as actorDirectoryReportSchema, mr as SteerConversationPendingMessagesResponse, mt as automationVersionSchema, n as ReviewItemActionBody, ni as codeRepositoryParamsSchema, nn as locationDirectoryReportSchema, nr as ConversationReportEventData, nt as automationListSchema, o as reviewItemListSchema, oi as conversationChildAgentTotalsSchema, on as ActorDirectoryWindows, or as ConversationSummaryReport, ot as automationRunWindowsSchema, p as PluginPackageContentItemReport, pi as USER_INPUT_NOTE, pn as PersonalSpendReport, pr as SteerConversationPendingMessagesBody, pt as automationVersionParamsSchema, q as ListedAutomationVersion, qn as ConversationEventHistory, qr as CodeOverviewReport, qt as apiErrorSchema, r as ReviewItemPayload, ri as codeRepositoryReportSchema, rn as locationParamsSchema, rr as ConversationReportMessageEvent, rt as automationParamsSchema, s as reviewItemSchema, si as DailyConversationActivity, sn as ActorProfileReport, sr as ConversationSurface, st as automationScheduleIntentSchema, t as OwnedObjectAnnotation, ti as codePersonReportSchema, tn as locationDetailReportSchema, tr as ConversationReportEvent, tt as automationListQuerySchema, u as Plugin, ui as messageCardText, un as ActorWindowMetrics, ur as ConversationUsage, ut as automationUpdateSchema, v as SkillReports, vi as isEmptyUserInputAnswer, vn as ConversationWatch, vr as cancelConversationPendingMessagesBodySchema, vt as WorkspaceListReport, w as pluginSchema, wi as MessageAttachment, wn as conversationChildAgentSchema, wr as conversationEventHistorySchema, wt as workspaceParamsSchema, x as pluginOperationalReportSchema, xi as InputImage, xn as conversationWatchesReportSchema, xr as conversationAuxiliaryCostsSchema, xt as deleteWorkspaceResponseSchema, y as healthReportSchema, yi as normalizeUserInputAnswer, yn as ConversationWatchesReport, yr as cancelConversationPendingMessagesResponseSchema, yt as WorkspaceReport, z as AutomationListQuery, zn as ArchiveConversationResponse, zr as forkConversationBodySchema, zt as serviceAccountSchema } from "../schema-9OGdsaxF.js";
1
+ import { $ as automationExecutionStatusDaySchema, $n as ConversationPendingMessageDelivery, $r as codeChangeSummarySchema, $t as LocationSummaryReport, A as StatsReport, An as ConversationMetricDay, Ar as conversationPendingAuthorizationSchema, At as createPersonalTokenBodySchema, B as AutomationRun, Bn as CancelConversationPendingMessagesBody, Br as forkConversationResponseSchema, Bt as startServiceAccountSignInResponseSchema, C as pluginPackageContentReportSchema, Ci as MAX_INPUT_IMAGE_BYTES, Cn as ConversationChildAgentsReport, Cr as conversationDetailReportSchema, Ct as workspaceListSchema, D as skillReportSchema, Dn as conversationReadPositionSchema, Dr as conversationFeedQuerySchema, Dt as USER_CUSTOMIZATION_MAX_CHARS, E as runtimeInfoReportSchema, En as ConversationReadPosition, Er as conversationEventsQuerySchema, Et as workspaceSchema, F as AutomationExecutionDay, Fn as conversationStatsReportSchema, Fr as conversationReportEventSchema, Ft as revokePersonalTokenResponseSchema, G as AutomationUpdate, Gn as ConversationCost, Gr as CodeActivityDay, Gt as startConnectionResponseSchema, H as AutomationRunWindows, Hn as ConversationActivityPreview, Hr as steerConversationPendingMessagesResponseSchema, Ht as connectionParamsSchema, I as AutomationExecutionList, In as AcceptedConversationMessage, Ir as conversationSummaryReportSchema, It as disconnectServiceAccountResponseSchema, J as automationEditErrorSchema, Jn as ConversationEventPage, Jr as CodePersonReport, Jt as LocationActivityDayReport, K as AutomationVersionList, Kn as ConversationDetailReport, Kr as CodeChangeSummaryReport, Kt as ApiError, L as AutomationExecutionStatusDay, Ln as ActorIdentity, Lr as createConversationBodySchema, Lt as serviceAccountListSchema, M as statsReportSchema, Mn as ConversationStatsReport, Mr as conversationPendingMessageSchema, Mt as personalTokenListSchema, N as AutomationEdit, Nn as GuardianMetricDay, Nr as conversationPendingMessagesReportSchema, Nt as personalTokenMetadataSchema, O as skillReportsSchema, On as StopConversationTurnResponse, Or as conversationFeedSchema, Ot as userCustomizationSchema, P as AutomationExecution, Pn as GuardianStats, Pr as conversationReportEventDataSchema, Pt as personalTokenParamsSchema, Q as automationExecutionSchema, Qn as ConversationPendingMessage, Qr as codeChangeSummaryReportSchema, Qt as LocationParams, R as AutomationList, Rn as ArchiveConversationBody, Rr as createConversationMessageBodySchema, Rt as serviceAccountParamsSchema, S as pluginPackageContentItemReportSchema, Si as MAX_INPUT_IMAGES, Sn as ConversationChildAgent, Sr as conversationDetailQuerySchema, St as workspaceBodySchema, T as pluginsSchema, Ti as INPUT_IMAGE_TYPES, Tn as conversationChildAgentsReportSchema, Tr as conversationEventPageSchema, Tt as workspaceRepoSchema, U as AutomationScheduleIntent, Un as ConversationAgentTreeNode, Ur as conversationTurnFailureCodeSchema, Ut as connectionSchema, V as AutomationRunList, Vn as CancelConversationPendingMessagesResponse, Vr as steerConversationPendingMessagesBodySchema, Vt as connectionListSchema, W as AutomationSummary, Wn as ConversationAuxiliaryCosts, Wr as conversationTurnFailureReasonSchema, Wt as disconnectConnectionResponseSchema, X as automationEventCatalogSchema, Xn as ConversationModelUsage, Xr as CodeRepositorySummary, Xt as LocationDetailReport, Y as automationEditSchema, Yn as ConversationFeed, Yr as CodeRepositoryReport, Yt as LocationActorSummaryReport, Z as automationExecutionListSchema, Zn as ConversationParams, Zr as codeActivityDaySchema, Zt as LocationDirectoryReport, _ as SkillReport, _i as buttonUserInputField, _n as personalSpendReportSchema, _r as archiveConversationResponseSchema, _t as BaselineSnapshotReport, a as reviewItemCountSchema, ai as ConversationChildAgentTotals, an as ActorDirectoryReport, ar as ConversationSourceTask, at as automationRunSchema, b as pluginOperationalReportFeedSchema, bi as webMessageId, bn as conversationWatchSchema, br as conversationActivityPreviewSchema, bt as baselineSnapshotSchema, c as reviewItemWaitingConversationsSchema, ci as dailyConversationActivitySchema, cn as ActorSummaryReport, cr as ConversationTurnFailureCode, ct as automationSchedulePreviewSchema, d as PluginOperationalReport, di as resolveMessageCards, dn as PeopleActivityDayReport, dr as CreateConversationBody, dt as automationVersionActivateSchema, ei as codeOverviewReportSchema, en as locationActivityDayReportSchema, er as ConversationPendingMessagesReport, et as automationExecutionStatusSchema, f as PluginOperationalReportFeed, fi as AutomationCard, fn as PersonParams, fr as CreateConversationMessageBody, ft as automationVersionListSchema, g as RuntimeInfoReport, gi as UserInputRequest, gn as personParamsSchema, gr as archiveConversationBodySchema, gt as scheduledAutomationSummarySchema, h as Plugins, hi as UserInputField, hn as actorProfileReportSchema, hr as acceptedConversationMessageSchema, ht as eventAutomationSummarySchema, i as reviewItemActionSchema, ii as codeRepositorySummarySchema, in as ActorActivityDayReport, ir as ConversationReportStatus, it as automationRunListSchema, j as statSchema, jn as ConversationStatsItem, jr as conversationPendingMessageDeliverySchema, jt as createdPersonalTokenSchema, k as StatReport, kn as stopConversationTurnResponseSchema, kr as conversationParamsSchema, kt as PersonalTokenMetadata, l as HealthReport, li as MessageCard, ln as ActorTotalsReport, lr as ConversationTurnFailureReason, lt as automationSummarySchema, m as PluginPackageContentReport, mi as UserInputAnswer, mn as actorDirectoryReportSchema, mr as SteerConversationPendingMessagesResponse, mt as automationVersionSchema, n as ReviewItemActionBody, ni as codeRepositoryParamsSchema, nn as locationDirectoryReportSchema, nr as ConversationReportEventData, nt as automationListSchema, o as reviewItemListSchema, oi as conversationChildAgentTotalsSchema, on as ActorDirectoryWindows, or as ConversationSummaryReport, ot as automationRunWindowsSchema, p as PluginPackageContentItemReport, pi as USER_INPUT_NOTE, pn as PersonalSpendReport, pr as SteerConversationPendingMessagesBody, pt as automationVersionParamsSchema, q as ListedAutomationVersion, qn as ConversationEventHistory, qr as CodeOverviewReport, qt as apiErrorSchema, r as ReviewItemPayload, ri as codeRepositoryReportSchema, rn as locationParamsSchema, rr as ConversationReportMessageEvent, rt as automationParamsSchema, s as reviewItemSchema, si as DailyConversationActivity, sn as ActorProfileReport, sr as ConversationSurface, st as automationScheduleIntentSchema, t as OwnedObjectAnnotation, ti as codePersonReportSchema, tn as locationDetailReportSchema, tr as ConversationReportEvent, tt as automationListQuerySchema, u as Plugin, ui as messageCardText, un as ActorWindowMetrics, ur as ConversationUsage, ut as automationUpdateSchema, v as SkillReports, vi as isEmptyUserInputAnswer, vn as ConversationWatch, vr as cancelConversationPendingMessagesBodySchema, vt as WorkspaceListReport, w as pluginSchema, wi as MessageAttachment, wn as conversationChildAgentSchema, wr as conversationEventHistorySchema, wt as workspaceParamsSchema, x as pluginOperationalReportSchema, xi as InputImage, xn as conversationWatchesReportSchema, xr as conversationAuxiliaryCostsSchema, xt as deleteWorkspaceResponseSchema, y as healthReportSchema, yi as normalizeUserInputAnswer, yn as ConversationWatchesReport, yr as cancelConversationPendingMessagesResponseSchema, yt as WorkspaceReport, z as AutomationListQuery, zn as ArchiveConversationResponse, zr as forkConversationBodySchema, zt as serviceAccountSchema } from "../schema-DfdHlBnb.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, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAuxiliaryCosts, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INPUT_IMAGE_TYPES, type InputImage, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MessageAttachment, type MessageCard, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type ReviewItemActionBody, type ReviewItemPayload, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
@@ -1,7 +1,7 @@
1
- import { c as conversationTurnFailureReasonSchema, s as conversationTurnFailureCodeSchema, t as INPUT_IMAGE_TYPES } from "../media-U6Tuz6Mi.js";
2
- import { A as createConversationMessageBodySchema, C as conversationReportEventSchema, E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, H as resolveMessageCards, I as conversationReadPositionSchema, M as forkConversationResponseSchema, N as steerConversationPendingMessagesBodySchema, P as steerConversationPendingMessagesResponseSchema, S as conversationReportEventDataSchema, U as MAX_INPUT_IMAGES, W as MAX_INPUT_IMAGE_BYTES, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as forkConversationBodySchema, k as createConversationBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema, z as messageCardText } from "../conversation-T4oabbBi.js";
1
+ import { c as conversationTurnFailureReasonSchema, s as conversationTurnFailureCodeSchema, t as INPUT_IMAGE_TYPES } from "../media-DstkkoNP.js";
2
+ import { A as createConversationMessageBodySchema, C as conversationReportEventSchema, E as conversationSummaryReportSchema, F as conversationChildAgentTotalsSchema, H as resolveMessageCards, I as conversationReadPositionSchema, M as forkConversationResponseSchema, N as steerConversationPendingMessagesBodySchema, P as steerConversationPendingMessagesResponseSchema, S as conversationReportEventDataSchema, U as MAX_INPUT_IMAGES, W as MAX_INPUT_IMAGE_BYTES, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, b as conversationPendingMessageSchema, d as conversationDetailReportSchema, f as conversationEventHistorySchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as forkConversationBodySchema, k as createConversationBodySchema, l as conversationAuxiliaryCostsSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, s as conversationActivityPreviewSchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, v as conversationPendingAuthorizationSchema, x as conversationPendingMessagesReportSchema, y as conversationPendingMessageDeliverySchema, z as messageCardText } from "../conversation-BjTo9ZFL.js";
3
3
  import { S as userCustomizationSchema, _ as isEmptyUserInputAnswer, b as webMessageId, h as buttonUserInputField, m as USER_INPUT_NOTE, v as normalizeUserInputAnswer, x as USER_CUSTOMIZATION_MAX_CHARS } from "../reporting-window-DgHgwQB3.js";
4
- import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-yffXcZt9.js";
4
+ import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-BGrd03QO.js";
5
5
  import { a as pluginPackageContentItemReportSchema, c as pluginsSchema, d as skillReportsSchema, i as pluginOperationalReportSchema, l as runtimeInfoReportSchema, n as healthReportSchema, o as pluginPackageContentReportSchema, r as pluginOperationalReportFeedSchema, s as pluginSchema, t as apiErrorSchema, u as skillReportSchema } from "../common-Eu6sx09c.js";
6
- import { $ as codeRepositorySummarySchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, J as codeChangeSummarySchema, K as codeActivityDaySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, U as connectionSchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, d as reviewItemCountSchema, et as conversationWatchSchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, n as statsReportSchema, nt as conversationChildAgentSchema, o as workspaceListSchema, p as reviewItemListSchema, q as codeChangeSummaryReportSchema, r as baselineSnapshotSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, t as statSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema } from "../schema-5xHDGlBW.js";
6
+ import { $ as codeRepositorySummarySchema, B as dailyConversationActivitySchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, J as codeChangeSummarySchema, K as codeActivityDaySchema, M as personalSpendReportSchema, N as locationActivityDayReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, S as createPersonalTokenBodySchema, T as personalTokenMetadataSchema, U as connectionSchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, b as serviceAccountSchema, c as workspaceRepoSchema, d as reviewItemCountSchema, et as conversationWatchSchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, n as statsReportSchema, nt as conversationChildAgentSchema, o as workspaceListSchema, p as reviewItemListSchema, q as codeChangeSummaryReportSchema, r as baselineSnapshotSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, t as statSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema } from "../schema-CX9XGKCm.js";
7
7
  export { INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, conversationActivityPreviewSchema, conversationAuxiliaryCostsSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isEmptyUserInputAnswer, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, normalizeUserInputAnswer, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, userCustomizationSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
package/dist/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { n as ConversationWorkQueue } from "./queue-C37RbDVc.js";
2
- import "./db-DOzBGLn5.js";
2
+ import "./db-BMZhoYKj.js";
3
3
  import { Hono } from "hono";
4
4
  import { z } from "zod";
5
5
  import { User } from "@sentry/junior-plugin-api";
package/dist/api.js CHANGED
@@ -1,27 +1,27 @@
1
- import { Ca as createPluginLogger, Cr as hash, Fa as readConversationEventPage, Jn as searchReviewItems, Nn as getPlugins, Qn as canActOnReviewItem, Sn as createUserTokenStore, Sr as create, Vn as countReviewItemsNeedingUser, Xa as lookupSlackUser, Za as createPluginCache, _i as workspaceRepoCheckoutPath, _r as WorkspaceValidationError, ar as reviewItemReaderForUser, bn as isExperimentalFeatureEnabled, dr as deleteWorkspace, fr as getWorkspace, gr as updateWorkspace, hi as SANDBOX_RUNTIME, hr as listWorkspacesByRepository, mr as listWorkspaces, qn as listWaitingConversationIds, tr as isOnlyAssignee, ur as createWorkspace, wa as readConversationAccessFromSql } from "./projection-BOpi891B.js";
2
- import { m as escapeXml } from "./client-DhqbV0Fe.js";
3
- import { m as logInfo, p as logException } from "./logging-CNs1e04n.js";
4
- import { C as getSqlExecutor, D as loadConversationSlackTenantIds, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-C6Y1aXjZ.js";
1
+ import { Da as createPluginLogger, Dr as hash, En as createUserTokenStore, Er as create, Gn as countReviewItemsNeedingUser, Ln as getPlugins, Oa as readConversationAccessFromSql, Qn as searchReviewItems, Zn as listWaitingConversations, ar as isOnlyAssignee, br as updateWorkspace, eo as lookupSlackUser, gr as getWorkspace, hr as deleteWorkspace, lr as reviewItemReaderForUser, mr as createWorkspace, nr as canActOnReviewItem, to as createPluginCache, vr as listWorkspaces, wn as isExperimentalFeatureEnabled, xi as workspaceRepoCheckoutPath, xr as WorkspaceValidationError, yi as SANDBOX_RUNTIME, yr as listWorkspacesByRepository, za as readConversationEventPage } from "./projection-CTvLSwcm.js";
2
+ import { m as escapeXml } from "./client-gnKpkpqP.js";
3
+ import { m as logInfo, p as logException } from "./logging-CFHIO4Vs.js";
4
+ import { C as getSqlExecutor, D as loadConversationSlackTenantIds, S as getDb, c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail, x as getConversationStore } from "./viewer-BFADRGP8.js";
5
5
  import { c as juniorIdentities, d as juniorDestinations, l as juniorUsers, s as juniorConversations } from "./agent-invocations-C1RNOCs8.js";
6
- import { C as juniorCodeChanges, b as juniorConversationEvents, w as juniorCodeRepositories, x as juniorApiTokens, y as juniorConversationMetrics } from "./executor-BafgvQcc.js";
7
- import { t as INPUT_IMAGE_TYPES } from "./media-U6Tuz6Mi.js";
8
- import { n as pluginCatalogRuntime } from "./catalog-runtime-TygDsPOU.js";
9
- import { $ as AutomationEditError, At as saveUserCustomization, G as updateViewerAutomation, H as changeViewerAutomationLifecycle, J as readViewerAutomationExecutions, K as ViewerTaskNotFoundError, Q as readViewerAutomations, U as deleteViewerTask, V as activateViewerAutomationVersion, W as readViewerAutomationEdit, X as readViewerAutomationSummary, Y as readViewerAutomationRuns, Z as readViewerAutomationVersions, at as appendAndEnqueueWebMessage, ft as decodeInputImages, it as acceptsWebMessages, kt as readUserCustomization, m as readStats, mt as readLiveAttachment, st as createAndEnqueueConversation, tt as listOwnedWatches, ut as webActorFromEmail, x as createSlackReviewItemShow, xt as listChildAgents } from "./agent-runner-D7Qz-lGO.js";
10
- import { r as getStateAdapter } from "./adapter-umap1cth.js";
11
- import { A as createConversationMessageBodySchema, G as readMessageAttachments, I as conversationReadPositionSchema, M as forkConversationResponseSchema, N as steerConversationPendingMessagesBodySchema, P as steerConversationPendingMessagesResponseSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as forkConversationBodySchema, k as createConversationBodySchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-T4oabbBi.js";
12
- import { d as getEventCatalog } from "./session-stop-DaT_7tYa.js";
6
+ import { C as juniorCodeChanges, b as juniorConversationEvents, w as juniorCodeRepositories, x as juniorApiTokens, y as juniorConversationMetrics } from "./executor-j8VMt-To.js";
7
+ import { t as INPUT_IMAGE_TYPES } from "./media-DstkkoNP.js";
8
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DcJ5NHDW.js";
9
+ import { $ as readViewerAutomations, At as readUserCustomization, G as readViewerAutomationEdit, H as activateViewerAutomationVersion, K as updateViewerAutomation, Q as readViewerAutomationVersions, S as createSlackReviewItemShow, St as listChildAgents, U as changeViewerAutomationLifecycle, W as deleteViewerTask, X as readViewerAutomationRuns, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, at as acceptsWebMessages, ct as createAndEnqueueConversation, dt as webActorFromEmail, et as AutomationEditError, h as readStats, ht as readLiveAttachment, jt as saveUserCustomization, nt as listOwnedWatches, ot as appendAndEnqueueWebMessage, pt as decodeInputImages, q as ViewerTaskNotFoundError } from "./agent-runner-bE7aH7ew.js";
10
+ import { r as getStateAdapter } from "./adapter-dE2BiWP_.js";
11
+ import { A as createConversationMessageBodySchema, G as readMessageAttachments, I as conversationReadPositionSchema, M as forkConversationResponseSchema, N as steerConversationPendingMessagesBodySchema, P as steerConversationPendingMessagesResponseSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, j as forkConversationBodySchema, k as createConversationBodySchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-BjTo9ZFL.js";
12
+ import { d as getEventCatalog } from "./session-stop-DjIyORJw.js";
13
13
  import { S as userCustomizationSchema, a as fillUtcSixHours, b as webMessageId, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, n as HOUR_MS$1, o as startOfUtcHour, r as fillUtcDays, s as sumUtcHoursIntoSixHours, t as DAY_MS$1, u as trailingUtcSixHourWindow } from "./reporting-window-DgHgwQB3.js";
14
- import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-DqVtd4Q9.js";
15
- import { a as getVercelConversationWorkQueue } from "./job-queue-C4lphW9Y.js";
16
- import { E as steerWebPendingMessages, a as cancelHumanFacingPendingMessages, g as getConversationWorkState, h as getConversation } from "./store-DaxUuOmD.js";
17
- import { F as conversationRangeColumns, N as conversationActiveDaysColumn, P as conversationAggregateColumns, ct as AutomationConflictError, ft as automationEventCatalog, j as readAutomationTitlesByConversationId } from "./turn-session-routing-BdCTDq9m.js";
18
- import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-smdPFWNy.js";
19
- import { N as ScheduleIntentError, P as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-yffXcZt9.js";
14
+ import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-DCrKjmVP.js";
15
+ import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-BYuOt3qK.js";
16
+ import { E as steerWebPendingMessages, a as cancelHumanFacingPendingMessages, g as getConversationWorkState, h as getConversation } from "./store-Dp3RMEQd.js";
17
+ import { F as conversationRangeColumns, N as conversationActiveDaysColumn, P as conversationAggregateColumns, ct as AutomationConflictError, ft as automationEventCatalog, j as readAutomationTitlesByConversationId } from "./turn-session-routing-CIWhXKeT.js";
18
+ import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CQIW6At4.js";
19
+ import { N as ScheduleIntentError, P as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-BGrd03QO.js";
20
20
  import { c as pluginsSchema, d as skillReportsSchema, l as runtimeInfoReportSchema, n as healthReportSchema, r as pluginOperationalReportFeedSchema, t as apiErrorSchema } from "./common-Eu6sx09c.js";
21
- import { C as getProductionSlackAdapter, D as isAllowedSignInEmail, G as closeReviewItemsAnsweredByReply, H as parseContent, J as getAttachmentStorage, K as readReviewItemForUser, M as clearSlackPendingReactions, Q as readHealthReport, U as ReviewItemActionError, W as actOnReviewItem, _ as archiveConversation, a as readConversationFeed, b as throwApiError, c as childAgentTotalsReport, d as conversationSummaryFromStoredConversation, f as attachConversationMentions, g as encodeConversationCursor, h as decodeConversationCursor, i as forkConversationForViewer, l as readConversationTreeMetricsFromSql, m as readFirstHumanMessageTexts, n as readConversationDetail, o as readConversationRecordFromSql, p as resolveMentions, r as markConversationRead, s as readConversationAuxiliaryCostsFromSql, t as stopConversationTurnForViewer, u as conversationEventHistory, v as emptyResponse, y as jsonResponse } from "./stop-dKUc-x2K.js";
22
- import { f as legacyWebMailboxMetadataSchema } from "./result-DQwTiLTw.js";
23
- import { a as startConnection, l as getWebAuthorization, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-Dq72KajR.js";
24
- import { A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, d as reviewItemCountSchema, f as reviewItemListQuerySchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, m as reviewItemParamsSchema, n as statsReportSchema, o as workspaceListSchema, p as reviewItemListSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, z as activitySixHours$1 } from "./schema-5xHDGlBW.js";
21
+ import { C as getProductionSlackAdapter, D as isAllowedSignInEmail, G as closeReviewItemsAnsweredByReply, H as parseContent, J as getAttachmentStorage, K as readReviewItemForUser, M as clearSlackPendingReactions, Q as readHealthReport, U as ReviewItemActionError, W as actOnReviewItem, _ as archiveConversation, a as readConversationFeed, b as throwApiError, c as childAgentTotalsReport, d as conversationSummaryFromStoredConversation, f as attachConversationMentions, g as encodeConversationCursor, h as decodeConversationCursor, i as forkConversationForViewer, l as readConversationTreeMetricsFromSql, m as readFirstHumanMessageTexts, n as readConversationDetail, o as readConversationRecordFromSql, p as resolveMentions, r as markConversationRead, s as readConversationAuxiliaryCostsFromSql, t as stopConversationTurnForViewer, u as conversationEventHistory, v as emptyResponse, y as jsonResponse } from "./stop-DomyNvuv.js";
22
+ import { f as legacyWebMailboxMetadataSchema } from "./result-Btdt5bSl.js";
23
+ import { a as startConnection, l as getWebAuthorization, n as isConnectableProvider, r as listConnections, t as disconnectConnection, u as htmlCallbackResponse } from "./connections-DLqP5Bp1.js";
24
+ import { A as avatarParamsSchema, C as createdPersonalTokenSchema, D as revokePersonalTokenResponseSchema, E as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as startConnectionResponseSchema, H as connectionParamsSchema, I as locationParamsSchema, L as activityDays$1, M as personalSpendReportSchema, O as actorDirectoryReportSchema, P as locationDetailReportSchema, Q as codeRepositoryReportSchema, R as activityHours$1, S as createPersonalTokenBodySchema, V as connectionListSchema, W as disconnectConnectionResponseSchema, X as codePersonReportSchema, Y as codeOverviewReportSchema, Z as codeRepositoryParamsSchema, _ as disconnectServiceAccountResponseSchema, a as workspaceBodySchema, at as conversationStatsReportSchema, d as reviewItemCountSchema, f as reviewItemListQuerySchema, g as reviewItemWaitingConversationsSchema, h as reviewItemSchema, i as deleteWorkspaceResponseSchema, it as stopConversationTurnResponseSchema, j as personParamsSchema, k as actorProfileReportSchema, l as workspaceSchema, m as reviewItemParamsSchema, n as statsReportSchema, o as workspaceListSchema, p as reviewItemListSchema, rt as conversationChildAgentsReportSchema, s as workspaceParamsSchema, tt as conversationWatchesReportSchema, u as reviewItemActionSchema, v as serviceAccountListSchema, w as personalTokenListSchema, x as startServiceAccountSignInResponseSchema, y as serviceAccountParamsSchema, z as activitySixHours$1 } from "./schema-CX9XGKCm.js";
25
25
  import { Hono } from "hono";
26
26
  import path from "node:path";
27
27
  import { createHash, randomBytes, randomUUID } from "node:crypto";
@@ -2239,7 +2239,7 @@ async function readPeoplePluginReports(args) {
2239
2239
  reports: [],
2240
2240
  source: "plugins"
2241
2241
  });
2242
- const { getPluginProfileReports } = await import("./projection-BOpi891B.js").then((n) => n.Tn);
2242
+ const { getPluginProfileReports } = await import("./projection-CTvLSwcm.js").then((n) => n.kn);
2243
2243
  return pluginOperationalReportFeedSchema.parse({
2244
2244
  generatedAt: new Date(nowMs).toISOString(),
2245
2245
  reports: await getPluginProfileReports({
@@ -3110,7 +3110,7 @@ function createReviewItemRoutes(services) {
3110
3110
  });
3111
3111
  app.get("/waiting-conversations", requireViewer, async (context) => {
3112
3112
  const viewer = context.get("viewer");
3113
- return jsonResponse(reviewItemWaitingConversationsSchema, { conversationIds: await listWaitingConversationIds(getDb(), viewer.id) });
3113
+ return jsonResponse(reviewItemWaitingConversationsSchema, { conversations: await listWaitingConversations(getDb(), viewer.id) });
3114
3114
  });
3115
3115
  app.get("/:id", requireViewer, validateRequest("param", reviewItemParamsSchema, "Invalid review item."), async (context) => {
3116
3116
  const viewer = context.get("viewer");
@@ -3267,7 +3267,7 @@ function readDescriptionText(home) {
3267
3267
  }
3268
3268
  /** Read discovered skill names for authenticated runtime diagnostics. */
3269
3269
  async function readSkillReports() {
3270
- const { discoverSkills } = await import("./skills-BbtJSF2-.js").then((n) => n.o);
3270
+ const { discoverSkills } = await import("./skills-BEfAAT6p.js").then((n) => n.o);
3271
3271
  const skills = await discoverSkills();
3272
3272
  return skillReportsSchema.parse(skills.map((skill) => ({
3273
3273
  name: skill.name,
@@ -3276,7 +3276,7 @@ async function readSkillReports() {
3276
3276
  }
3277
3277
  /** Read safe configured plugin metadata for authenticated runtime diagnostics. */
3278
3278
  async function readPlugins() {
3279
- const { pluginCatalogRuntime } = await import("./catalog-runtime-TygDsPOU.js").then((n) => n.t);
3279
+ const { pluginCatalogRuntime } = await import("./catalog-runtime-DcJ5NHDW.js").then((n) => n.t);
3280
3280
  return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
3281
3281
  configKeys: plugin.manifest.configKeys ?? [],
3282
3282
  description: plugin.manifest.description,
@@ -3288,7 +3288,7 @@ async function readPlugins() {
3288
3288
  async function readRuntimeInfoReport() {
3289
3289
  const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
3290
3290
  import("./package-discovery-DJBompdd.js").then((n) => n.r),
3291
- import("./catalog-runtime-TygDsPOU.js").then((n) => n.t),
3291
+ import("./catalog-runtime-DcJ5NHDW.js").then((n) => n.t),
3292
3292
  readPlugins(),
3293
3293
  readSkillReports()
3294
3294
  ]);
@@ -3305,7 +3305,7 @@ async function readRuntimeInfoReport() {
3305
3305
  /** Read sanitized operational summaries contributed by plugins. */
3306
3306
  async function readPluginOperationalReportFeed() {
3307
3307
  const nowMs = Date.now();
3308
- const { getPluginOperationalReports } = await import("./projection-BOpi891B.js").then((n) => n.Tn);
3308
+ const { getPluginOperationalReports } = await import("./projection-CTvLSwcm.js").then((n) => n.kn);
3309
3309
  return pluginOperationalReportFeedSchema.parse({
3310
3310
  source: "plugins",
3311
3311
  generatedAt: new Date(nowMs).toISOString(),
@@ -1,6 +1,6 @@
1
1
  import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-C37RbDVc.js";
2
- import { t as ConversationStore } from "./db-DOzBGLn5.js";
3
- import "./schema-9OGdsaxF.js";
2
+ import { t as ConversationStore } from "./db-BMZhoYKj.js";
3
+ import "./schema-DfdHlBnb.js";
4
4
  import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
5
5
  import { Hono } from "hono";
6
6
  import "@earendil-works/pi-ai/compat";
@@ -104,6 +104,17 @@ declare const pluginTaskQueueMessageSchema: z.ZodObject<{
104
104
  plugin: z.ZodString;
105
105
  }, z.core.$strict>;
106
106
  type PluginTaskQueueMessage = z.output<typeof pluginTaskQueueMessageSchema>;
107
+ declare const backgroundCompactionMessageSchema: z.ZodObject<{
108
+ conversationId: z.ZodString;
109
+ historyVersion: z.ZodNumber;
110
+ markSeq: z.ZodNumber;
111
+ }, z.core.$strict>;
112
+ /** One background compaction job: the request that it prepares a summary for. */
113
+ type BackgroundCompactionMessage = z.output<typeof backgroundCompactionMessageSchema>;
114
+ /** Sends background compaction jobs. Tests and evals can run them in process. */
115
+ interface BackgroundCompactionQueue {
116
+ send(message: BackgroundCompactionMessage): Promise<void>;
117
+ }
107
118
  /** Canonical durable mailbox entry owned by task execution. */
108
119
  declare const inboundMessageSchema: z.ZodObject<{
109
120
  attemptCount: z.ZodOptional<z.ZodNumber>;
@@ -294,6 +305,11 @@ interface JuniorAppOptions extends BotModelConfig {
294
305
  pluginTaskQueue?: (consume: (message: PluginTaskQueueMessage) => Promise<void>) => {
295
306
  send(message: PluginTaskQueueMessage): Promise<void>;
296
307
  };
308
+ /**
309
+ * Replace the Vercel Queue transport for background compaction jobs, for
310
+ * example with an in-process queue. `consume` runs one job.
311
+ */
312
+ backgroundCompactionQueue?: (consume: (message: BackgroundCompactionMessage) => Promise<void>) => BackgroundCompactionQueue;
297
313
  /** Direct plugin set override. Usually omitted when `juniorNitro()` uses a plugin module. */
298
314
  plugins?: JuniorPluginSet;
299
315
  /** Sandbox execution options. */
package/dist/app.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as ModelProfileInput, i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-BcyhJq8x.js";
1
+ import { a as ModelProfileInput, i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-CgkquhZ8.js";
2
2
  import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.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, type ModelProfileInput, createApp, defineJuniorPlugins };
package/dist/app.js CHANGED
@@ -1,39 +1,39 @@
1
- import { $i as runWithWorkspaceTeamId, Ai as findMatchingWatches, C as projectConversationMessages, Ca as createPluginLogger, Dn as getPluginApiRoutes, Dr as isVercelSandboxEgressRequest, E as settleConversationTitleWork, Ei as collectEventMatchKeys, Et as isInvalidConversationRecordError, Fa as readConversationEventPage, Fi as bindScheduledAutomationCredentialSubject, Fn as validatePlugins, Gi as getSlackClient, Gr as postSlackEphemeralMessage, Hn as dismissOpenReviewItems, Ii as bindSlackDirectCredentialSubject, Jn as searchReviewItems, Ka as listConversationAnnotations, Li as verifyEventAutomationCredentialSubject, Mr as resolveBaseUrl, Ni as takeDueTimerWatches, Nn as getPlugins, On as getPluginRoutes, Or as proxyVercelSandboxEgressRequest, Pi as bindEventAutomationCredentialSubject, Pn as setPlugins, Qi as getWorkspaceTeamId, Qn as canActOnReviewItem, Ri as verifyScheduledAutomationCredentialSubject, Rn as setBriefsConfig, Rr as slackMention, Sn as createUserTokenStore, Ua as resolveRootVisibility, Wr as openSlackModal, Xr as slackEntitySchema, Za as createPluginCache, Zr as slackExternalRefIdSchema, aa as setDashboardConversationLinkOptions, ao as setConfigDefaults, ar as reviewItemReaderForUser, b as appendConversationMessages, ba as createPluginState, bn as isExperimentalFeatureEnabled, ci as consumeSandboxEgressPermissionDeniedSignal, ct as CONVERSATION_WORK_STALE_ENQUEUE_MS, fn as SubscribedReplyReason, hn as getThreadStopDecision, ia as getDashboardTaskLink, io as getConfigDefaults, mi as normalizeSandboxEgressTracePropagationDomains, oi as clearSandboxEgressSignals, qi as isDmChannel, ra as getDashboardReviewItemLink, si as consumeSandboxEgressAuthRequiredSignal, ta as getDashboardConversationLink, ui as parseSandboxEgressCredentialToken, wa as readConversationAccessFromSql, wt as hasRunnableConversationWork, xa as createPluginEmbedder, xn as setExperimentalFeatures, yn as getExperimentalFeatures, zi as verifySlackDirectCredentialSubject } from "./projection-BOpi891B.js";
2
- import { d as restoreRuntimeConfig, f as setBotModelConfig, g as snapshotRuntimeConfig, h as setSlackReactionConfig, i as getChatConfig, m as setRuntimeLimits, n as botConfig, o as getSlackBotToken, p as setProfiles, u as resetRuntimeConfig } from "./config-C6FTd7PX.js";
3
- import { A as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, E as withSpan, L as GOOGLE_IDENTITY_PROVIDER, N as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, T as withLogContext, b as setSpanAttributes, h as logWarn, m as logInfo, p as logException, r as createRequestContext, w as withContext, z as normalizeIdentityEmail } from "./logging-CNs1e04n.js";
1
+ import { Ai as collectEventMatchKeys, Bi as bindSlackDirectCredentialSubject, C as projectConversationMessages, Cn as getExperimentalFeatures, Da as createPluginLogger, E as settleConversationTitleWork, En as createUserTokenStore, Et as isInvalidConversationRecordError, Hi as verifyScheduledAutomationCredentialSubject, Hn as setBriefsConfig, Hr as slackMention, Ir as resolveBaseUrl, Jr as openSlackModal, Kn as dismissOpenReviewItems, Li as takeDueTimerWatches, Ln as getPlugins, Mn as getPluginRoutes, Mr as proxyVercelSandboxEgressRequest, Oa as readConversationAccessFromSql, Pi as findMatchingWatches, Qn as searchReviewItems, Ri as bindEventAutomationCredentialSubject, Rn as setPlugins, Ta as createPluginEmbedder, Tn as setExperimentalFeatures, Ui as verifySlackDirectCredentialSubject, Vi as verifyEventAutomationCredentialSubject, Xa as listConversationAnnotations, Yi as getSlackClient, Yr as postSlackEphemeralMessage, Zi as isDmChannel, _n as getThreadStopDecision, aa as getDashboardConversationLink, b as appendConversationMessages, ca as getDashboardTaskLink, ct as CONVERSATION_WORK_STALE_ENQUEUE_MS, di as consumeSandboxEgressAuthRequiredSignal, ei as slackEntitySchema, fi as consumeSandboxEgressPermissionDeniedSignal, jn as getPluginApiRoutes, jr as isVercelSandboxEgressRequest, la as setDashboardConversationLinkOptions, lo as getConfigDefaults, lr as reviewItemReaderForUser, mi as parseSandboxEgressCredentialToken, mn as SubscribedReplyReason, na as getWorkspaceTeamId, nr as canActOnReviewItem, qa as resolveRootVisibility, ra as runWithWorkspaceTeamId, sa as getDashboardReviewItemLink, ti as slackExternalRefIdSchema, to as createPluginCache, ui as clearSandboxEgressSignals, uo as setConfigDefaults, vi as normalizeSandboxEgressTracePropagationDomains, wa as createPluginState, wn as isExperimentalFeatureEnabled, wt as hasRunnableConversationWork, za as readConversationEventPage, zi as bindScheduledAutomationCredentialSubject, zn as validatePlugins } from "./projection-CTvLSwcm.js";
2
+ import { d as restoreRuntimeConfig, f as setBotModelConfig, g as snapshotRuntimeConfig, h as setSlackReactionConfig, i as getChatConfig, m as setRuntimeLimits, n as botConfig, o as getSlackBotToken, p as setProfiles, u as resetRuntimeConfig } from "./config-D0GKc9sC.js";
3
+ import { D as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, P as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, T as withLogContext, V as normalizeIdentityEmail, b as setSpanAttributes, h as logWarn, j as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext, z as GOOGLE_IDENTITY_PROVIDER } from "./logging-CFHIO4Vs.js";
4
4
  import { n as captureMessage } from "./sentry-MDkYAVPV.js";
5
- import { t as JUNIOR_VERSION } from "./version-BpiFGZZW.js";
5
+ import { t as JUNIOR_VERSION } from "./version-DBVMsgvA.js";
6
6
  import { _ as slackMessageTsSchema, f as parseSlackTeamId, g as slackMessageTsFromMs, h as parseSlackMessageTs, m as slackChannelIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-B4DYygOB.js";
7
- import { C as getSqlExecutor, E as withConversationEventLock, N as resolveActorIdentityId, S as getDb, _ as closeDb, g as createCache, i as readActorIdentity, k as withConversationMutationLock, l as resolveViewerUser, p as parseAvatarUrl, x as getConversationStore, y as getConversationEventStore, z as recordGoogleSignIn } from "./viewer-C6Y1aXjZ.js";
7
+ import { C as getSqlExecutor, E as withConversationEventLock, N as resolveActorIdentityId, S as getDb, _ as closeDb, g as createCache, i as readActorIdentity, k as withConversationMutationLock, l as resolveViewerUser, p as parseAvatarUrl, x as getConversationStore, y as getConversationEventStore, z as recordGoogleSignIn } from "./viewer-BFADRGP8.js";
8
8
  import { a as juniorAgentInvocations, d as juniorDestinations, i as juniorAgentBindings, s as juniorConversations } from "./agent-invocations-C1RNOCs8.js";
9
- import { _ as juniorConversationBriefs, b as juniorConversationEvents, c as juniorReviewItems, d as juniorAutomations, l as juniorAutomationRuns } from "./executor-BafgvQcc.js";
10
- import { n as pluginCatalogRuntime } from "./catalog-runtime-TygDsPOU.js";
11
- import { A as verifySlackSignature, B as scheduledAutomationRunAttributes, C as syncReviewItemSlackCards, D as parseSlackReviewItemFormTarget, E as parseSlackReviewItemClick, Et as ingestEvent, I as joinPublicChannel, J as readViewerAutomationExecutions, K as ViewerTaskNotFoundError, O as parseSlackUserInputSubmission, Q as readViewerAutomations, S as readSlackReviewItemCardConversationId, T as buildSlackReviewItemModal, Tt as processWorkspaceSnapshotJob, X as readViewerAutomationSummary, _ as unpublishedArtifactHeaders, at as appendAndEnqueueWebMessage, et as effectiveTaskOutcomes, g as readPublicArtifact, h as publicArtifactHeaders, ht as requestAttachmentDeletion, j as parseSlackThreadId, k as runWithSlackInstallation, lt as recordWebConversationActivity, n as executeAgentRun, nt as deliverReviewItemChange, ot as conversationTurnIdForMessage, pt as collectAttachmentGarbage, rt as renderReviewItemMessage, t as createAgentRunner, ut as webActorFromEmail, v as lookupSlackUserProfile, vt as stopConversationSession, x as createSlackReviewItemShow, yt as recordSubagentEnded, z as logScheduledAutomationRunSkipped } from "./agent-runner-D7Qz-lGO.js";
9
+ import { _ as juniorConversationBriefs, b as juniorConversationEvents, c as juniorReviewItems, d as juniorAutomations, l as juniorAutomationRuns } from "./executor-j8VMt-To.js";
10
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-DcJ5NHDW.js";
11
+ import { $ as readViewerAutomations, A as runWithSlackInstallation, B as logScheduledAutomationRunSkipped, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, Dt as ingestEvent, E as buildSlackReviewItemModal, Et as processWorkspaceSnapshotJob, L as joinPublicChannel, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, S as createSlackReviewItemShow, V as scheduledAutomationRunAttributes, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, _ as readPublicArtifact, bt as recordSubagentEnded, dt as webActorFromEmail, g as publicArtifactHeaders, gt as requestAttachmentDeletion, it as renderReviewItemMessage, j as verifySlackSignature, k as parseSlackUserInputSubmission, mt as collectAttachmentGarbage, n as executeAgentRun, ot as appendAndEnqueueWebMessage, q as ViewerTaskNotFoundError, r as processBackgroundCompaction, rt as deliverReviewItemChange, st as conversationTurnIdForMessage, t as createAgentRunner, tt as effectiveTaskOutcomes, ut as recordWebConversationActivity, v as unpublishedArtifactHeaders, w as syncReviewItemSlackCards, y as lookupSlackUserProfile, yt as stopConversationSession } from "./agent-runner-bE7aH7ew.js";
12
12
  import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
13
- import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-umap1cth.js";
13
+ import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-dE2BiWP_.js";
14
14
  import { n as getNextRunAtMs } from "./cadence-R7Em4RjE.js";
15
- import { D as conversationSurfaceSchema, L as annotationCard, T as conversationReportStatusSchema, Y as conversationBriefSchema, h as conversationFeedQuerySchema } from "./conversation-T4oabbBi.js";
16
- import { b as listPendingAgentInvocationMailboxAppends, x as listPendingAgentInvocationResults } from "./store-C1xuZcLd.js";
17
- import { C as renderTaskInput, O as renderSlackObjectCard, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-DaT_7tYa.js";
15
+ import { D as conversationSurfaceSchema, L as annotationCard, T as conversationReportStatusSchema, Y as conversationBriefSchema, h as conversationFeedQuerySchema } from "./conversation-BjTo9ZFL.js";
16
+ import { b as listPendingAgentInvocationMailboxAppends, x as listPendingAgentInvocationResults } from "./store-B7Z6zIc7.js";
17
+ import { C as renderTaskInput, O as renderSlackObjectCard, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-DjIyORJw.js";
18
18
  import { h as buttonUserInputField } from "./reporting-window-DgHgwQB3.js";
19
- import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-DqVtd4Q9.js";
20
- import { a as getVercelConversationWorkQueue, d as getQueueProvider, g as isConversationQueueMessageRejectedError, h as conversationQueueMessageSchema, i as verifyWorkspaceSnapshotJobMessage, o as resolveConversationWorkQueueTopic, s as verifyConversationQueueMessage, t as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC } from "./job-queue-C4lphW9Y.js";
21
- import { S as removeActiveConversation, _ as hasRunnableConversationWork$1, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-DaxUuOmD.js";
22
- import { B as readScheduledAutomation, G as blockEventAutomation, H as saveScheduledAutomationInLock, K as collectEventAutomationMatchKeys, M as recordAutomationExecution, R as listScheduledAutomationsForTeam, S as existingConversationId, U as scheduledRunId, W as withScheduledAutomationLock, Y as findMatchingEventAutomations, a as confirmDispatchMailboxAppend, b as notifyAutomationBlocked, f as getPluginDispatchProjection, ht as eventGuidance, it as automationVersionOf, m as listPendingDispatchMailboxAppends, nt as eventAutomationRunLimitReason, o as createOrGetDispatch, p as isTerminalDispatchStatus, r as buildDispatchId, s as getDispatchConversationId, tt as admitEventAutomationRun, u as getDispatchRecord, v as markDispatchFailed } from "./turn-session-routing-BdCTDq9m.js";
23
- import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-yffXcZt9.js";
24
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-BQjCfh84.js";
19
+ import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-DCrKjmVP.js";
20
+ import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, b as isConversationQueueMessageRejectedError, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, h as getQueueProvider, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, y as conversationQueueMessageSchema } from "./background-compaction-queue-BYuOt3qK.js";
21
+ import { S as removeActiveConversation, _ as hasRunnableConversationWork$1, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-Dp3RMEQd.js";
22
+ import { B as readScheduledAutomation, G as blockEventAutomation, H as saveScheduledAutomationInLock, K as collectEventAutomationMatchKeys, M as recordAutomationExecution, R as listScheduledAutomationsForTeam, S as existingConversationId, U as scheduledRunId, W as withScheduledAutomationLock, Y as findMatchingEventAutomations, a as confirmDispatchMailboxAppend, b as notifyAutomationBlocked, f as getPluginDispatchProjection, ht as eventGuidance, it as automationVersionOf, m as listPendingDispatchMailboxAppends, nt as eventAutomationRunLimitReason, o as createOrGetDispatch, p as isTerminalDispatchStatus, r as buildDispatchId, s as getDispatchConversationId, tt as admitEventAutomationRun, u as getDispatchRecord, v as markDispatchFailed } from "./turn-session-routing-CIWhXKeT.js";
23
+ import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-BGrd03QO.js";
24
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-BRmwRaXc.js";
25
25
  import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-DOm9Y6qI.js";
26
- import { A as recordSkippedConversationMessage, B as startProcessingReaction, C as getProductionSlackAdapter, D as isAllowedSignInEmail, E as isAllowedDomain, F as normalizeIncomingSlackThreadId, G as closeReviewItemsAnsweredByReply, H as parseContent, I as withNormalizedThreadId, J as getAttachmentStorage, K as readReviewItemForUser, L as stopConversationTurn, M as clearSlackPendingReactions, N as isSlackMessageStopped, O as readEnvList, P as stopSlackThread, R as THREAD_OPTOUT_ACK, S as createProductionSlackWebhookServices, T as assertNoLegacyAllowedDomains, U as ReviewItemActionError, V as stripLeadingBotMention, W as actOnReviewItem, X as enqueueAgentDispatch, Z as GET$3, _ as archiveConversation, a as readConversationFeed, g as encodeConversationCursor, h as decodeConversationCursor, j as buildSlackInboundMessage, k as resolveAllowedDomains, n as readConversationDetail, o as readConversationRecordFromSql, q as reviewItemChange, t as stopConversationTurnForViewer, w as createSlackWebApiStatusSender, x as createProductionConversationWorkOptions, z as bindMessageAuthorIdentityId } from "./stop-dKUc-x2K.js";
27
- import { n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId } from "./result-DQwTiLTw.js";
28
- import { r as enqueueAgentInvocation } from "./work-ChPh_YEh.js";
29
- import { o as coerceThreadConversationState } from "./thread-state-BkUpE9Ae.js";
30
- import { o as unlinkProvider } from "./connections-Dq72KajR.js";
31
- import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-BmCbHAp4.js";
32
- import { a as pluginTaskQueueConsumer, c as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-ymAh_-P1.js";
33
- import { t as processConversationWork } from "./worker-Be_sK_ou.js";
34
- import { t as bindMessageAgent } from "./message-CETC5lsl.js";
35
- import { t as bindSpawnAgent } from "./spawn-Ceikdjkp.js";
36
- import { t as processPluginTask } from "./task-runner-vlH6pEm3.js";
26
+ import { A as recordSkippedConversationMessage, B as startProcessingReaction, C as getProductionSlackAdapter, D as isAllowedSignInEmail, E as isAllowedDomain, F as normalizeIncomingSlackThreadId, G as closeReviewItemsAnsweredByReply, H as parseContent, I as withNormalizedThreadId, J as getAttachmentStorage, K as readReviewItemForUser, L as stopConversationTurn, M as clearSlackPendingReactions, N as isSlackMessageStopped, O as readEnvList, P as stopSlackThread, R as THREAD_OPTOUT_ACK, S as createProductionSlackWebhookServices, T as assertNoLegacyAllowedDomains, U as ReviewItemActionError, V as stripLeadingBotMention, W as actOnReviewItem, X as enqueueAgentDispatch, Z as GET$3, _ as archiveConversation, a as readConversationFeed, g as encodeConversationCursor, h as decodeConversationCursor, j as buildSlackInboundMessage, k as resolveAllowedDomains, n as readConversationDetail, o as readConversationRecordFromSql, q as reviewItemChange, t as stopConversationTurnForViewer, w as createSlackWebApiStatusSender, x as createProductionConversationWorkOptions, z as bindMessageAuthorIdentityId } from "./stop-DomyNvuv.js";
27
+ import { n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId } from "./result-Btdt5bSl.js";
28
+ import { r as enqueueAgentInvocation } from "./work-DDaoxZAw.js";
29
+ import { o as coerceThreadConversationState } from "./thread-state-BF8VwIxd.js";
30
+ import { o as unlinkProvider } from "./connections-DLqP5Bp1.js";
31
+ import { a as GET$4, i as publishAppHomeView, r as GET$5, t as receiveLocalOAuthCredential } from "./credential-sync-BjihXFF2.js";
32
+ import { a as pluginTaskQueueConsumer, c as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-CVQ9cWnC.js";
33
+ import { t as processConversationWork } from "./worker-Bub0fDtW.js";
34
+ import { t as bindMessageAgent } from "./message-DH0cqFRS.js";
35
+ import { t as bindSpawnAgent } from "./spawn-Dgj4xxvO.js";
36
+ import { t as processPluginTask } from "./task-runner-DHBG47gS.js";
37
37
  import { createRequire } from "node:module";
38
38
  import { Hono } from "hono";
39
39
  import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
@@ -3230,6 +3230,41 @@ function workspaceSnapshotJobQueueConsumer() {
3230
3230
  function registerVercelWorkspaceSnapshotJobDevConsumer() {
3231
3231
  return workspaceSnapshotJobCallback().registerDev();
3232
3232
  }
3233
+ // src/chat/services/background-compaction-callback.ts
3234
+ /** Receive background compaction jobs from the queue. */
3235
+ const BACKGROUND_COMPACTION_DEV_CONSUMER_GROUP = "junior_context_compaction_dev";
3236
+ const BACKGROUND_COMPACTION_MAX_DELIVERIES = 3;
3237
+ function logRejected(reason, metadata) {
3238
+ logWarn("context_compaction.queue_message.rejected", {
3239
+ "app.queue.consumer_group": metadata.consumerGroup,
3240
+ "app.queue.delivery_count": metadata.deliveryCount,
3241
+ "app.queue.message_id": metadata.messageId,
3242
+ "app.queue.reject_reason": reason,
3243
+ "app.queue.topic_name": metadata.topicName
3244
+ });
3245
+ }
3246
+ function backgroundCompactionCallback() {
3247
+ return queueCallback({
3248
+ consumerGroup: BACKGROUND_COMPACTION_DEV_CONSUMER_GROUP,
3249
+ maxDeliveries: BACKGROUND_COMPACTION_MAX_DELIVERIES,
3250
+ onRejected: logRejected,
3251
+ run: async (message, metadata) => await processBackgroundCompaction(message, { enqueuedAtMs: metadata.createdAt.getTime() }),
3252
+ topic: BACKGROUND_COMPACTION_QUEUE_TOPIC,
3253
+ verify: verifyBackgroundCompactionMessage
3254
+ });
3255
+ }
3256
+ /** Create the HTTP route for background compaction jobs. */
3257
+ function createVercelBackgroundCompactionCallback() {
3258
+ return backgroundCompactionCallback().create();
3259
+ }
3260
+ /** Return the queue consumer for background compaction, for a pulling worker. */
3261
+ function backgroundCompactionQueueConsumer() {
3262
+ return backgroundCompactionCallback().consumer;
3263
+ }
3264
+ /** Receive background compaction jobs during local development. */
3265
+ function registerVercelBackgroundCompactionDevConsumer() {
3266
+ return backgroundCompactionCallback().registerDev();
3267
+ }
3233
3268
  // src/handlers/artifacts.ts
3234
3269
  /** Serve one content-addressed public artifact without authentication. */
3235
3270
  async function publicArtifactGET(args) {
@@ -7173,9 +7208,11 @@ async function createApp(options) {
7173
7208
  messageId: delivery.messageId
7174
7209
  })) ?? getVercelConversationWorkQueue();
7175
7210
  const pluginTaskQueue = options?.pluginTaskQueue?.(processPluginTask);
7211
+ const backgroundCompactionQueue = options?.backgroundCompactionQueue?.((message) => processBackgroundCompaction(message)) ?? vercelBackgroundCompactionQueue;
7176
7212
  const attachmentStorage = getAttachmentStorage();
7177
7213
  const agentRunner = createAgentRunner(executeAgentRun, {
7178
7214
  attachmentStorage,
7215
+ backgroundCompactionQueue,
7179
7216
  bindMessageAgent: (request) => bindMessageAgent(request, { queue: conversationWorkQueue }),
7180
7217
  bindSpawnAgent: (request) => bindSpawnAgent(request, { queue: conversationWorkQueue }),
7181
7218
  conversationWorkQueue,
@@ -7341,6 +7378,7 @@ async function createApp(options) {
7341
7378
  registerVercelConversationWorkDevConsumer(getConversationWorkOptions());
7342
7379
  registerVercelPluginTaskDevConsumer();
7343
7380
  registerVercelWorkspaceSnapshotJobDevConsumer();
7381
+ registerVercelBackgroundCompactionDevConsumer();
7344
7382
  }
7345
7383
  app.post("/api/internal/agent/continue", (c) => {
7346
7384
  agentContinuePOST ??= createVercelConversationWorkCallback(getConversationWorkOptions());
@@ -7355,6 +7393,11 @@ async function createApp(options) {
7355
7393
  workspaceSnapshotJobPOST ??= createVercelWorkspaceSnapshotJobCallback();
7356
7394
  return workspaceSnapshotJobPOST(c.req.raw);
7357
7395
  });
7396
+ let backgroundCompactionPOST;
7397
+ app.post(JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, (c) => {
7398
+ backgroundCompactionPOST ??= createVercelBackgroundCompactionCallback();
7399
+ return backgroundCompactionPOST(c.req.raw);
7400
+ });
7358
7401
  app.get("/api/internal/heartbeat", (c) => {
7359
7402
  return GET$2(c.req.raw, waitUntil, { conversationWorkQueue });
7360
7403
  });
@@ -7370,7 +7413,8 @@ async function createApp(options) {
7370
7413
  return Object.assign(app, { startQueueWorker: () => startQueueWorker([
7371
7414
  conversationWorkQueueConsumer(getConversationWorkOptions()),
7372
7415
  pluginTaskQueueConsumer(),
7373
- workspaceSnapshotJobQueueConsumer()
7416
+ workspaceSnapshotJobQueueConsumer(),
7417
+ backgroundCompactionQueueConsumer()
7374
7418
  ], backgroundWork) });
7375
7419
  }
7376
7420
  export { JUNIOR_VERSION, createApp, defineJuniorPlugins };
@@ -1,4 +1,4 @@
1
- import { qt as extractAssistantText } from "./projection-BOpi891B.js";
1
+ import { qt as extractAssistantText } from "./projection-CTvLSwcm.js";
2
2
  // src/chat/no-reply.ts
3
3
  const NO_REPLY_MARKER = "[[NO_REPLY]]";
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import { a as resolveLocalScheduleAtMs, i as isValidTimeZone, r as getZonedDateTimeParts, t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
2
- import { n as actorIdentitySchema } from "./conversation-T4oabbBi.js";
2
+ import { n as actorIdentitySchema } from "./conversation-BjTo9ZFL.js";
3
3
  import { z } from "zod";
4
4
  import { actorUserIdSchema, destinationVisibilitySchema, eventMatchFieldsSchema, eventMatchSchema, eventReachSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
5
5
  // src/chat/scheduled-automations/schedule-intent.ts
@@ -1,5 +1,5 @@
1
- import { i as getChatConfig } from "./config-C6FTd7PX.js";
2
- import { E as withSpan, m as logInfo, p as logException } from "./logging-CNs1e04n.js";
1
+ import { i as getChatConfig } from "./config-D0GKc9sC.js";
2
+ import { E as withSpan, m as logInfo, p as logException } from "./logging-CFHIO4Vs.js";
3
3
  import { AsyncLocalStorage } from "node:async_hooks";
4
4
  import { createHash, createHmac, timingSafeEqual } from "node:crypto";
5
5
  import { z } from "zod";
@@ -381,4 +381,43 @@ async function sendWorkspaceSnapshotJob(message) {
381
381
  async function sendNextWorkspaceSnapshotJob(message) {
382
382
  await send(message);
383
383
  }
384
- export { getVercelConversationWorkQueue as a, QUEUE_SIGNATURE_MAX_AGE_MS as c, getQueueProvider as d, getTurnRequestDeadline as f, isConversationQueueMessageRejectedError as g, conversationQueueMessageSchema as h, verifyWorkspaceSnapshotJobMessage as i, signQueueMessage as l, ConversationQueueMessageRejectedError as m, sendNextWorkspaceSnapshotJob as n, resolveConversationWorkQueueTopic as o, runWithTurnRequestDeadline as p, sendWorkspaceSnapshotJob as r, verifyConversationQueueMessage as s, WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC as t, verifyQueueMessage as u };
384
+ // src/chat/services/background-compaction-queue.ts
385
+ /**
386
+ * Messages of background compaction jobs.
387
+ *
388
+ * A message names one `compaction_requested` event. The event log holds the
389
+ * request, and the State adapter holds the request snapshot, so the message
390
+ * stays small.
391
+ */
392
+ /** Deploy topic name. Keep stable for Vercel queue wiring. */
393
+ const BACKGROUND_COMPACTION_QUEUE_TOPIC = "junior_context_compaction";
394
+ const backgroundCompactionSign = {
395
+ context: "junior.context_compaction_queue.v1",
396
+ schema: z.object({
397
+ conversationId: z.string().min(1),
398
+ historyVersion: z.number().int().nonnegative(),
399
+ markSeq: z.number().int().nonnegative()
400
+ }).strict(),
401
+ signatureVersion: "v1",
402
+ parts: (message) => [
403
+ message.conversationId,
404
+ String(message.historyVersion),
405
+ String(message.markSeq)
406
+ ]
407
+ };
408
+ /** Stable id of one request, for event, snapshot, and delivery dedupe. */
409
+ function backgroundCompactionId(message) {
410
+ return `context-compaction_${createHash("sha256").update(message.conversationId).update("\0").update(String(message.historyVersion)).update("\0").update(String(message.markSeq)).digest("hex").slice(0, 32)}`;
411
+ }
412
+ /** Check that a recent queue message came from Junior. */
413
+ function verifyBackgroundCompactionMessage(value) {
414
+ return verifyQueueMessage(backgroundCompactionSign, value);
415
+ }
416
+ /** The production queue for background compaction jobs. */
417
+ const vercelBackgroundCompactionQueue = { send: async (message) => {
418
+ await getQueueProvider().send(BACKGROUND_COMPACTION_QUEUE_TOPIC, signQueueMessage(backgroundCompactionSign, message), {
419
+ idempotencyKey: backgroundCompactionId(message),
420
+ retentionSeconds: QUEUE_SIGNATURE_MAX_AGE_MS / 1e3
421
+ });
422
+ } };
423
+ export { runWithTurnRequestDeadline as _, WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC as a, isConversationQueueMessageRejectedError as b, verifyWorkspaceSnapshotJobMessage as c, verifyConversationQueueMessage as d, QUEUE_SIGNATURE_MAX_AGE_MS as f, getTurnRequestDeadline as g, getQueueProvider as h, verifyBackgroundCompactionMessage as i, getVercelConversationWorkQueue as l, verifyQueueMessage as m, backgroundCompactionId as n, sendNextWorkspaceSnapshotJob as o, signQueueMessage as p, vercelBackgroundCompactionQueue as r, sendWorkspaceSnapshotJob as s, BACKGROUND_COMPACTION_QUEUE_TOPIC as t, resolveConversationWorkQueueTopic as u, ConversationQueueMessageRejectedError as v, conversationQueueMessageSchema as y };
@@ -1,7 +1,7 @@
1
- import { i as completeObject } from "./client-DhqbV0Fe.js";
1
+ import { i as completeObject } from "./client-gnKpkpqP.js";
2
2
  import { i as defaultModelId } from "./model-profile-B998sjVd.js";
3
- import { K as briefCodeChangeSchema, X as parseBriefInput, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-T4oabbBi.js";
4
- import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-B1ySjUyf.js";
3
+ import { K as briefCodeChangeSchema, X as parseBriefInput, d as conversationDetailReportSchema, p as conversationEventPageSchema } from "./conversation-BjTo9ZFL.js";
4
+ import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-JEWUUpLW.js";
5
5
  import { CLI_USAGE } from "./cli/run.js";
6
6
  import path from "node:path";
7
7
  import { z } from "zod";
@@ -267,7 +267,7 @@ async function parseRunOptions(argv) {
267
267
  * `DATABASE_URL` at import, and `briefs pull` must work with only a token.
268
268
  */
269
269
  async function configuredDefaultModelId() {
270
- const { botConfig } = await import("./config-C6FTd7PX.js").then((n) => n.r);
270
+ const { botConfig } = await import("./config-D0GKc9sC.js").then((n) => n.r);
271
271
  return defaultModelId(botConfig);
272
272
  }
273
273
  function apiUrl(baseUrl, pathname) {
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
2
- import { t as createPluginCatalogRuntime } from "./registry-B-yUrv3h.js";
2
+ import { t as createPluginCatalogRuntime } from "./registry-OsyWR4GO.js";
3
3
  // src/chat/plugins/catalog-runtime.ts
4
4
  var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
5
5
  const pluginCatalogRuntime = createPluginCatalogRuntime();