@sentry/junior 0.301.0 → 0.302.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.
- package/dist/adapter-context-Cx9fn9B3.js +43 -0
- package/dist/{admin-CRJHvCGg.js → admin-_poE5NKL.js} +2 -2
- package/dist/{agent-runner-H4YhvNBj.js → agent-runner-CY9RvsTX.js} +1380 -10601
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +4 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +91 -68
- package/dist/{app-HDZglaIu.d.ts → app-BpY3wtRP.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +66 -296
- package/dist/{background-compaction-queue-CNrZ3QcU.js → background-compaction-queue-CXFq1_Cz.js} +94 -203
- package/dist/{briefs-x6Mzwxmg.js → briefs-B3NG-pid.js} +2 -2
- package/dist/{catalog-runtime-BEY6EGRi.js → catalog-runtime-Dss0lSV6.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-CmjhyqgB.js → config-CzeZiMKs.js} +2 -2
- package/dist/{connections-CfIRm0xv.js → connections-CDYhMfrs.js} +6 -6
- package/dist/{continue-in-slack-DPoABVkB.js → continue-in-slack-7Uf05ndC.js} +5 -6
- package/dist/{conversation-feed-CfpyFMHP.js → conversation-feed-Clf_cv0n.js} +1 -0
- package/dist/{conversation-privacy-0CM0V2qK.js → conversation-privacy-D9xnM5mK.js} +1 -1
- package/dist/{conversation-turn-C0sxyvS-.js → conversation-turn-D7SEZgTG.js} +15 -16
- package/dist/{credential-sync-tEMKZ_8M.js → credential-sync-DoD0gW-j.js} +13 -15
- package/dist/{db-Czra10QW.js → db-B-gtnNjr.js} +314 -5
- package/dist/{db-BdUHQhrC.d.ts → db-BdsCzytP.d.ts} +1 -1
- package/dist/{executor-D_023K0H.js → executor-DZg20EqU.js} +39 -4
- package/dist/install-t1KQyTUs.js +228 -0
- package/dist/instrumentation.js +2 -2
- package/dist/{state-CEbZuZD6.js → legacy-web-actor-id-C-cEeWqL.js} +33 -4
- package/dist/{lineage-DmMIE0VL.js → lineage-C79GjoQr.js} +2 -2
- package/dist/{logging-DcjLDDqi.js → logging-C9oDAg4M.js} +7 -3
- package/dist/{message-C0JY9RJP.js → message-BLUCzJXN.js} +8 -8
- package/dist/{model-input-CBp-p24N.js → model-input-5jwNC45G.js} +3 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +4 -3
- package/dist/{oauth-callback-server-BRq9QNhU.js → oauth-callback-server-BBl66vCb.js} +2 -2
- package/dist/{projection-CQNDOi82.js → projection-CIBwgD3s.js} +282 -64
- package/dist/{prompt-DLUB5m72.js → prompt-CRQbzp5e.js} +14 -4
- package/dist/queue-DtCDaIct.js +115 -0
- package/dist/{registry-Dj377ADs.js → registry-DdFQHZ_d.js} +1 -1
- package/dist/{resolve-DJkh9Fky.js → resolve-CdW4BdrK.js} +4 -229
- package/dist/{result-C8iIpDl1.js → result-oOMv1t4O.js} +9 -9
- package/dist/{runner-DZqrOy8C.js → runner-DqitLtm-.js} +8 -8
- package/dist/{sandbox-egress-signals-CGwH86S9.js → sandbox-egress-signals-Bw9I0yfJ.js} +1 -1
- package/dist/{schema-CdZFn7Qd.d.ts → schema-BIFM-U1a.d.ts} +441 -30
- package/dist/{schema-DyHXiQKI.js → schema-DnVQepWP.js} +66 -29
- package/dist/{service-account-D6jGR4a1.js → service-account-B6mKAPVo.js} +3 -3
- package/dist/{service-account-suY004dx.js → service-account-CrZftRTb.js} +257 -6
- package/dist/{session-stop-BLmfFI3d.js → session-stop-DW63Z3kj.js} +543 -548
- package/dist/{skills-CmNG0dHb.js → skills-C16fz60Z.js} +2 -2
- package/dist/{slack-conversation-unfurl-Bty-DlHe.js → slack-conversation-unfurl-BHhefEb7.js} +8 -7
- package/dist/{spawn-CNjkpXpk.js → spawn-D_RnFYfy.js} +6 -6
- package/dist/{stop-Bjy2-K4H.js → stop-7p1i08CY.js} +724 -106
- package/dist/{store-DmV4CoNr.js → store-C28I0CVW.js} +5 -5
- package/dist/{task-queue-AhG1tSXR.js → task-queue-BVUJbQ28.js} +3 -3
- package/dist/{task-runner-BMxZI3o7.js → task-runner-CWi8j7Z6.js} +6 -8
- package/dist/{thread-context-CXLnbg7g.js → thread-context-D3-yYUd0.js} +7 -7
- package/dist/{store-Epv6t4vV.js → turn-session-routing-BFMS9ATF.js} +381 -10
- package/dist/{turn-user-message-DsUZi9gn.js → turn-user-message-C3-O8Omt.js} +3 -3
- package/dist/{validation-DOz8X9BU.js → validation-BSFKUIb4.js} +1 -1
- package/dist/{version-CGMRmMPK.js → version-BHHXNi-0.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-H3EsMWtJ.js → viewer-B1SO21Qa.js} +3 -3
- package/dist/warmup-Bz9bzkzN.js +13927 -0
- package/dist/{statuses-Hn-HsOph.js → web-message-id-lNodcCOI.js} +136 -1
- package/dist/{worker-ClphajjD.js → worker-BspReIIK.js} +7 -7
- package/migrations/0108_conversation_embeddings.sql +13 -0
- package/migrations/meta/0108_snapshot.json +4688 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +8 -6
- package/dist/adapter-CNjGEJO9.js +0 -303
- package/dist/reporting-window-DopzcOHh.js +0 -137
- package/dist/turn-session-routing-BD3-jJl7.js +0 -380
- package/dist/users-BxvYclQg.js +0 -424
- package/dist/warmup-CdU5hR49.js +0 -3715
package/dist/api/schema.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as AutomationVersionList, $i as ConversationSourceTask, $n as conversationSubscriptionResponseSchema, $r as conversationPendingMessagesReportSchema, $t as DEFAULT_NOTIFICATION_SCHEDULE, A as runtimeInfoReportSchema, Aa as AutomationTask, Ai as objectLinksQuerySchema, An as actorDirectoryReportSchema, Ar as ArchiveConversationBody, At as workspaceListSchema, B as replyTimeSegmentsReportSchema, Ba as AGENT_REPLY_EVENT_TYPE, Bi as ConversationActivityPreview, Bn as conversationChildAgentSchema, Br as CancelConversationPendingMessagesBody, Bt as personalTokenMetadataSchema, C as healthReportSchema, Ca as forkConversationResponseSchema, Ci as DailyConversationActivity, Cn as ActorProfileReport, Cr as stopConversationTurnResponseSchema, Ct as scheduledAutomationSummarySchema, D as pluginPackageContentReportSchema, Da as annotationCard, Di as ObjectLinksReport, Dn as PeopleActivityDayReport, Dr as GuardianMetricDay, Dt as baselineSnapshotSchema, E as pluginPackageContentItemReportSchema, Ea as MessageCard, Ei as MAX_OBJECT_LINKS, En as ActorWindowMetrics, Er as ConversationStatsReport, Et as WorkspaceReport, F as StatsReport, Fa as UserInputRequest, Fi as webPageObjectCard, Fn as ConversationWatchesReport, Fr as archiveDoneConversationsResponseSchema, Ft as userCustomizationSchema, G as AutomationList, Ga as MessageAttachment, Gi as ConversationEventHistory, Gn as renameConversationBodySchema, Gr as SteerConversationPendingMessagesBody, Gt as serviceAccountParamsSchema, H as AutomationExecution, Ha as InputFile, Hi as ConversationAuxiliaryCosts, Hn as CONVERSATION_TITLE_MAX_LENGTH, Hr as ConversationPendingMessage, Ht as revokePersonalTokenResponseSchema, I as statSchema, Ia as buttonUserInputField, Ii as AcceptedConversationMessage, In as conversationWatchSchema, Ir as conversationAutoArchiveSchema, It as PersonalTokenMetadata, J as AutomationRunList, Ji as ConversationParams, Jn as ConversationOutline, Jr as cancelConversationPendingMessagesResponseSchema, Jt as cacheWarmingBreakerListSchema, K as AutomationListQuery, Ka as INLINE_VIDEO_TYPES, Ki as ConversationEventPage, Kn as renameConversationResponseSchema, Kr as SteerConversationPendingMessagesResponse, Kt as serviceAccountSchema, L as statsReportSchema, La as isEmptyUserInputAnswer, Li as ActorIdentity, Ln as conversationWatchesReportSchema, Lr as ConversationFeed, Lt as createPersonalTokenBodySchema, M as skillReportSchema, Ma as USER_INPUT_NOTE, Mi as conversationObjectCard, Mn as personParamsSchema, Mr as ConversationAutoArchive, Mt as workspaceRepoSchema, N as skillReportsSchema, Na as UserInputAnswer, Ni as messageObjectCard, Nn as personalSpendReportSchema, Nr as archiveConversationBodySchema, Nt as workspaceSchema, O as pluginSchema, Oa as messageCardText, Oi as attachObjectLinkBodySchema, On as PersonParams, Or as GuardianStats, Ot as deleteWorkspaceResponseSchema, P as StatReport, Pa as UserInputField, Pi as personObjectCard, Pn as ConversationWatch, Pr as archiveConversationResponseSchema, Pt as USER_CUSTOMIZATION_MAX_CHARS, Q as AutomationUpdate, Qi as ConversationReportStatus, Qn as conversationSubscriptionBodySchema, Qr as conversationPendingMessageSchema, Qt as testNotificationResponseSchema, R as ReplyTimeHistogram, Ra as normalizeUserInputAnswer, Ri as CONVERSATION_DETAIL_VERSION_HEADER, Rn as ConversationChildAgent, Rr as ConversationFeedItem, Rt as createdPersonalTokenSchema, S as SkillReports, Sa as forkConversationBodySchema, Si as conversationChildAgentTotalsSchema, Sn as ActorDirectoryWindows, Sr as StopConversationTurnResponse, St as eventAutomationSummarySchema, T as pluginOperationalReportSchema, Ta as conversationTurnFailureReasonSchema, Ti as AttachObjectLinkResponse, Tn as ActorTotalsReport, Tr as ConversationStatsItem, Tt as WorkspaceListReport, U as AutomationExecutionList, Ua as MAX_ATTACHMENT_BYTES, Ui as ConversationCost, Un as RenameConversationBody, Ur as ConversationPendingMessageDelivery, Ut as disconnectServiceAccountResponseSchema, V as AutomationEdit, Va as isAgentInvocationResultEventType, Vi as ConversationAgentTreeNode, Vn as conversationChildAgentsReportSchema, Vr as CancelConversationPendingMessagesResponse, Vt as personalTokenParamsSchema, W as AutomationExecutionStatusDay, Wa as MAX_INPUT_ATTACHMENTS, Wi as ConversationDetailReport, Wn as RenameConversationResponse, Wr as ConversationPendingMessagesReport, Wt as serviceAccountListSchema, X as AutomationScheduleIntent, Xi as ConversationReportEventData, Xn as ConversationSubscriptionBody, Xr as conversationPendingAuthorizationSchema, Xt as NotificationSettings, Y as AutomationRunWindows, Yi as ConversationReportEvent, Yn as conversationOutlineSchema, Yr as conversationDetailWithMailboxReportSchema, Yt as closeCacheWarmingBreakerResponseSchema, Z as AutomationSummary, Zi as ConversationReportMessageEvent, Zn as ConversationSubscriptionResponse, Zr as conversationPendingMessageDeliverySchema, Zt as notificationSettingsSchema, _ as PluginPackageContentReport, _a as conversationReportEventDataSchema, _i as codePersonReportSchema, _n as locationDetailReportSchema, _r as conversationReadPositionSchema, _t as automationUpdateSchema, a as ReviewItemPayload, aa as CreateConversationBody, ai as attachmentUploadSchema, an as connectionSchema, ar as PinConversationResponse, at as automationExecutionSchema, b as SkillDetailReport, ba as createConversationBodySchema, bi as codeRepositorySummarySchema, bn as ActorActivityDayReport, br as continueConversationInSlackBodySchema, bt as automationVersionParamsSchema, c as reviewItemListSchema, ca as conversationActivityPreviewSchema, ci as CodeChangeSummaryReport, cn as ApiError, cr as pinConversationBodySchema, ct as automationListQuerySchema, d as ReviewItemChangeRecord, da as conversationDetailReportSchema, di as CodeRepositoryReport, dn as LocationActorSummaryReport, dr as reorderPinnedConversationsResponseSchema, dt as automationRunListSchema, ea as ConversationSummaryReport, ei as conversationUnchangedDetailWithMailboxSchema, en as NotificationSchedule, er as ConversationDeliveryBody, et as ListedAutomationVersion, f as HealthReport, fa as conversationEventHistorySchema, fi as CodeRepositorySummary, fn as LocationDetailReport, fr as ConversationCatchUp, ft as automationRunSchema, g as PluginPackageContentItemReport, ga as conversationParamsSchema, gi as codeOverviewReportSchema, gn as locationActivityDayReportSchema, gr as ConversationReadPosition, gt as automationSummarySchema, h as PluginOperationalReportFeed, ha as conversationFeedQuerySchema, hi as codeChangeSummarySchema, hn as LocationSummaryReport, hr as conversationCatchUpSchema, ht as automationSchedulePreviewSchema, i as ReviewItemActionBody, ia as ConversationUsage, ii as CreateAttachmentUploadBody, in as connectionParamsSchema, ir as PinConversationBody, it as automationExecutionListSchema, j as skillDetailReportSchema, ja as AutomationCard, ji as objectLinksReportSchema, jn as actorProfileReportSchema, jr as ArchiveConversationResponse, jt as workspaceParamsSchema, k as pluginsSchema, ka as resolveMessageCards, ki as attachObjectLinkResponseSchema, kn as PersonalSpendReport, kr as conversationStatsReportSchema, kt as workspaceBodySchema, l as reviewItemSchema, la as conversationAuxiliaryCostsSchema, li as CodeOverviewReport, ln as apiErrorSchema, lr as pinConversationResponseSchema, lt as automationListSchema, m as PluginOperationalReport, ma as conversationEventsQuerySchema, mi as codeChangeSummaryReportSchema, mn as LocationParams, mr as conversationCatchUpBodySchema, mt as automationScheduleIntentSchema, n as Versions, na as ConversationTurnFailureCode, ni as steerConversationPendingMessagesResponseSchema, nn as notificationScheduleSchema, nr as conversationDeliveryBodySchema, nt as automationEditSchema, o as reviewItemActionSchema, oa as CreateConversationMessageBody, oi as createAttachmentUploadBodySchema, on as disconnectConnectionResponseSchema, or as ReorderPinnedConversationsBody, ot as automationExecutionStatusDaySchema, p as Plugin, pa as conversationEventPageSchema, pi as codeActivityDaySchema, pn as LocationDirectoryReport, pr as ConversationCatchUpBody, pt as automationRunWindowsSchema, q as AutomationRun, qa as INPUT_IMAGE_TYPES, qi as ConversationModelUsage, qn as CONVERSATION_OUTLINE_TEXT_LENGTH, qr as cancelConversationPendingMessagesBodySchema, qt as startServiceAccountSignInResponseSchema, r as versionsSchema, ra as ConversationTurnFailureReason, ri as AttachmentUpload, rn as connectionListSchema, rr as conversationDeliveryResponseSchema, rt as automationEventCatalogSchema, s as reviewItemCountSchema, sa as acceptedConversationMessageSchema, si as CodeActivityDay, sn as startConnectionResponseSchema, sr as ReorderPinnedConversationsResponse, st as automationExecutionStatusSchema, t as OwnedObjectAnnotation, ta as ConversationSurface, ti as steerConversationPendingMessagesBodySchema, tn as isWithinNotificationSchedule, tr as ConversationDeliveryResponse, tt as automationEditErrorSchema, u as reviewItemWaitingConversationsSchema, ua as conversationDetailQuerySchema, ui as CodePersonReport, un as LocationActivityDayReport, ur as reorderPinnedConversationsBodySchema, ut as automationParamsSchema, v as Plugins, va as conversationReportEventSchema, vi as codeRepositoryParamsSchema, vn as locationDirectoryReportSchema, vr as ContinueConversationInSlackBody, vt as automationVersionActivateSchema, w as pluginOperationalReportFeedSchema, wa as conversationTurnFailureCodeSchema, wi as dailyConversationActivitySchema, wn as ActorSummaryReport, wr as ConversationMetricDay, wt as BaselineSnapshotReport, x as SkillReport, xa as createConversationMessageBodySchema, xi as ConversationChildAgentTotals, xn as ActorDirectoryReport, xr as continueConversationInSlackResponseSchema, xt as automationVersionSchema, y as RuntimeInfoReport, ya as conversationSummaryReportSchema, yi as codeRepositoryReportSchema, yn as locationParamsSchema, yr as ContinueConversationInSlackResponse, yt as automationVersionListSchema, z as ReplyTimeSegmentsReport, za as webMessageId, zi as CONVERSATION_VERSION_HEADER, zn as ConversationChildAgentsReport, zr as conversationFeedSchema, zt as personalTokenListSchema } from "../schema-CdZFn7Qd.js";
|
|
2
|
-
export { AGENT_REPLY_EVENT_TYPE, 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 AttachObjectLinkResponse, type AttachmentUpload, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationTask, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDeliveryBody, type ConversationDeliveryResponse, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationOutline, 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 ConversationSubscriptionBody, type ConversationSubscriptionResponse, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateAttachmentUploadBody, type CreateConversationBody, type CreateConversationMessageBody, DEFAULT_NOTIFICATION_SCHEDULE, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, type InputFile, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_ATTACHMENT_BYTES, MAX_INPUT_ATTACHMENTS, MAX_OBJECT_LINKS, type MessageAttachment, type MessageCard, type NotificationSchedule, type NotificationSettings, type ObjectLinksReport, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type PinConversationBody, type PinConversationResponse, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RenameConversationBody, type RenameConversationResponse, type ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, type
|
|
1
|
+
import { $ as automationEditSchema, $i as ConversationReportStatus, $n as conversationSubscriptionBodySchema, $r as conversationPendingMessageSchema, $t as testNotificationResponseSchema, A as runtimeInfoReportSchema, Aa as resolveMessageCards, Ai as attachObjectLinkResponseSchema, An as PersonalSpendReport, Ar as conversationStatsReportSchema, At as workspaceSchema, B as AutomationExecutionList, Ba as webMessageId, Bi as CONVERSATION_VERSION_HEADER, Bn as ConversationChildAgentsReport, Br as conversationFeedSchema, Bt as disconnectServiceAccountResponseSchema, C as healthReportSchema, Ca as forkConversationBodySchema, Ci as conversationChildAgentTotalsSchema, Cn as ActorDirectoryWindows, Cr as StopConversationTurnResponse, Ct as WorkspaceReport, D as pluginPackageContentReportSchema, Da as MessageCard, Di as MAX_OBJECT_LINKS, Dn as ActorWindowMetrics, Dr as ConversationStatsReport, Dt as workspaceListSchema, E as pluginPackageContentItemReportSchema, Ea as conversationTurnFailureReasonSchema, Ei as AttachObjectLinkResponse, En as ActorTotalsReport, Er as ConversationStatsItem, Et as workspaceBodySchema, F as StatsReport, Fa as UserInputField, Fi as personObjectCard, Fn as ConversationWatch, Fr as archiveConversationResponseSchema, Ft as createdPersonalTokenSchema, G as AutomationRunList, Ga as MAX_INPUT_ATTACHMENTS, Gi as ConversationDetailReport, Gn as RenameConversationResponse, Gr as ConversationPendingMessagesReport, Gt as CacheWarmingSavingsRefill, H as AutomationList, Ha as isAgentInvocationResultEventType, Hi as ConversationAgentTreeNode, Hn as conversationChildAgentsReportSchema, Hr as CancelConversationPendingMessagesResponse, Ht as serviceAccountParamsSchema, I as statSchema, Ia as UserInputRequest, Ii as webPageObjectCard, In as ConversationWatchesReport, Ir as archiveDoneConversationsResponseSchema, It as personalTokenListSchema, J as AutomationSummary, Ja as INPUT_IMAGE_TYPES, Ji as ConversationModelUsage, Jn as CONVERSATION_OUTLINE_TEXT_LENGTH, Jr as cancelConversationPendingMessagesBodySchema, Jt as cacheWarmingSavingsRefillResponseSchema, K as AutomationRunWindows, Ka as MessageAttachment, Ki as ConversationEventHistory, Kn as renameConversationBodySchema, Kr as SteerConversationPendingMessagesBody, Kt as CacheWarmingSavingsReport, L as statsReportSchema, La as buttonUserInputField, Li as AcceptedConversationMessage, Ln as conversationWatchSchema, Lr as conversationAutoArchiveSchema, Lt as personalTokenMetadataSchema, M as skillReportSchema, Ma as AutomationCard, Mi as objectLinksReportSchema, Mn as actorProfileReportSchema, Mr as ArchiveConversationResponse, Mt as userCustomizationSchema, N as skillReportsSchema, Na as USER_INPUT_NOTE, Ni as conversationObjectCard, Nn as personParamsSchema, Nr as ConversationAutoArchive, Nt as PersonalTokenMetadata, O as pluginSchema, Oa as annotationCard, Oi as ObjectLinksReport, On as PeopleActivityDayReport, Or as GuardianMetricDay, Ot as workspaceParamsSchema, P as StatReport, Pa as UserInputAnswer, Pi as messageObjectCard, Pn as personalSpendReportSchema, Pr as archiveConversationBodySchema, Pt as createPersonalTokenBodySchema, Q as automationEditErrorSchema, Qi as ConversationReportMessageEvent, Qn as ConversationSubscriptionResponse, Qr as conversationPendingMessageDeliverySchema, Qt as notificationSettingsSchema, R as AutomationEdit, Ra as isEmptyUserInputAnswer, Ri as ActorIdentity, Rn as conversationWatchesReportSchema, Rr as ConversationFeed, Rt as personalTokenParamsSchema, S as SkillReports, Sa as createConversationMessageBodySchema, Si as ConversationChildAgentTotals, Sn as ActorDirectoryReport, Sr as continueConversationInSlackResponseSchema, St as WorkspaceListReport, T as pluginOperationalReportSchema, Ta as conversationTurnFailureCodeSchema, Ti as dailyConversationActivitySchema, Tn as ActorSummaryReport, Tr as ConversationMetricDay, Tt as deleteWorkspaceResponseSchema, U as AutomationListQuery, Ua as InputFile, Ui as ConversationAuxiliaryCosts, Un as CONVERSATION_TITLE_MAX_LENGTH, Ur as ConversationPendingMessage, Ut as serviceAccountSchema, V as AutomationExecutionStatusDay, Va as AGENT_REPLY_EVENT_TYPE, Vi as ConversationActivityPreview, Vn as conversationChildAgentSchema, Vr as CancelConversationPendingMessagesBody, Vt as serviceAccountListSchema, W as AutomationRun, Wa as MAX_ATTACHMENT_BYTES, Wi as ConversationCost, Wn as RenameConversationBody, Wr as ConversationPendingMessageDelivery, Wt as startServiceAccountSignInResponseSchema, X as AutomationVersionList, Xi as ConversationReportEvent, Xn as conversationOutlineSchema, Xr as conversationDetailWithMailboxReportSchema, Xt as closeCacheWarmingBreakerResponseSchema, Y as AutomationUpdate, Yi as ConversationParams, Yn as ConversationOutline, Yr as cancelConversationPendingMessagesResponseSchema, Yt as cacheWarmingSavingsReportSchema, Z as ListedAutomationVersion, Zi as ConversationReportEventData, Zn as ConversationSubscriptionBody, Zr as conversationPendingAuthorizationSchema, Zt as NotificationSettings, _ as PluginPackageContentReport, _a as conversationParamsSchema, _i as codeOverviewReportSchema, _n as locationActivityDayReportSchema, _r as ConversationReadPosition, _t as automationVersionParamsSchema, a as ReviewItemPayload, aa as ConversationUsage, ai as CreateAttachmentUploadBody, an as connectionParamsSchema, ar as PinConversationBody, at as automationListQuerySchema, b as SkillDetailReport, ba as conversationSummaryReportSchema, bi as codeRepositoryReportSchema, bn as locationParamsSchema, br as ContinueConversationInSlackResponse, bt as scheduledAutomationSummarySchema, c as reviewItemListSchema, ca as acceptedConversationMessageSchema, ci as CodeActivityDay, cn as startConnectionResponseSchema, cr as ReorderPinnedConversationsResponse, ct as automationRunListSchema, d as ReviewItemChangeRecord, da as conversationDetailQuerySchema, di as CodePersonReport, dn as LocationActivityDayReport, dr as reorderPinnedConversationsBodySchema, dt as automationScheduleIntentSchema, ea as ConversationSourceTask, ei as conversationPendingMessagesReportSchema, en as DEFAULT_NOTIFICATION_SCHEDULE, er as conversationSubscriptionResponseSchema, et as automationEventCatalogSchema, f as HealthReport, fa as conversationDetailReportSchema, fi as CodeRepositoryReport, fn as LocationActorSummaryReport, fr as reorderPinnedConversationsResponseSchema, ft as automationSchedulePreviewSchema, g as PluginPackageContentItemReport, ga as conversationFeedQuerySchema, gi as codeChangeSummarySchema, gn as LocationSummaryReport, gr as conversationCatchUpSchema, gt as automationVersionListSchema, h as PluginOperationalReportFeed, ha as conversationEventsQuerySchema, hi as codeChangeSummaryReportSchema, hn as LocationParams, hr as conversationCatchUpBodySchema, ht as automationVersionActivateSchema, i as ReviewItemActionBody, ia as ConversationTurnFailureReason, ii as AttachmentUpload, in as connectionListSchema, ir as conversationDeliveryResponseSchema, it as automationExecutionStatusSchema, j as skillDetailReportSchema, ja as AutomationTask, ji as objectLinksQuerySchema, jn as actorDirectoryReportSchema, jr as ArchiveConversationBody, jt as USER_CUSTOMIZATION_MAX_CHARS, k as pluginsSchema, ka as messageCardText, ki as attachObjectLinkBodySchema, kn as PersonParams, kr as GuardianStats, kt as workspaceRepoSchema, l as reviewItemSchema, la as conversationActivityPreviewSchema, li as CodeChangeSummaryReport, ln as ApiError, lr as pinConversationBodySchema, lt as automationRunSchema, m as PluginOperationalReport, ma as conversationEventPageSchema, mi as codeActivityDaySchema, mn as LocationDirectoryReport, mr as ConversationCatchUpBody, mt as automationUpdateSchema, n as Versions, na as ConversationSurface, ni as steerConversationPendingMessagesBodySchema, nn as isWithinNotificationSchedule, nr as ConversationDeliveryResponse, nt as automationExecutionSchema, o as reviewItemActionSchema, oa as CreateConversationBody, oi as attachmentUploadSchema, on as connectionSchema, or as PinConversationResponse, ot as automationListSchema, p as Plugin, pa as conversationEventHistorySchema, pi as CodeRepositorySummary, pn as LocationDetailReport, pr as ConversationCatchUp, pt as automationSummarySchema, q as AutomationScheduleIntent, qa as INLINE_VIDEO_TYPES, qi as ConversationEventPage, qn as renameConversationResponseSchema, qr as SteerConversationPendingMessagesResponse, qt as cacheWarmingBreakerListSchema, r as versionsSchema, ra as ConversationTurnFailureCode, ri as steerConversationPendingMessagesResponseSchema, rn as notificationScheduleSchema, rr as conversationDeliveryBodySchema, rt as automationExecutionStatusDaySchema, s as reviewItemCountSchema, sa as CreateConversationMessageBody, si as createAttachmentUploadBodySchema, sn as disconnectConnectionResponseSchema, sr as ReorderPinnedConversationsBody, st as automationParamsSchema, t as OwnedObjectAnnotation, ta as ConversationSummaryReport, ti as conversationUnchangedDetailWithMailboxSchema, tn as NotificationSchedule, tr as ConversationDeliveryBody, tt as automationExecutionListSchema, u as reviewItemWaitingConversationsSchema, ua as conversationAuxiliaryCostsSchema, ui as CodeOverviewReport, un as apiErrorSchema, ur as pinConversationResponseSchema, ut as automationRunWindowsSchema, v as Plugins, va as conversationReportEventDataSchema, vi as codePersonReportSchema, vn as locationDetailReportSchema, vr as conversationReadPositionSchema, vt as automationVersionSchema, w as pluginOperationalReportFeedSchema, wa as forkConversationResponseSchema, wi as DailyConversationActivity, wn as ActorProfileReport, wr as stopConversationTurnResponseSchema, wt as baselineSnapshotSchema, x as SkillReport, xa as createConversationBodySchema, xi as codeRepositorySummarySchema, xn as ActorActivityDayReport, xr as continueConversationInSlackBodySchema, xt as BaselineSnapshotReport, y as RuntimeInfoReport, ya as conversationReportEventSchema, yi as codeRepositoryParamsSchema, yn as locationDirectoryReportSchema, yr as ContinueConversationInSlackBody, yt as eventAutomationSummarySchema, z as AutomationExecution, za as normalizeUserInputAnswer, zi as CONVERSATION_DETAIL_VERSION_HEADER, zn as ConversationChildAgent, zr as ConversationFeedItem, zt as revokePersonalTokenResponseSchema } from "../schema-BIFM-U1a.js";
|
|
2
|
+
export { AGENT_REPLY_EVENT_TYPE, 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 AttachObjectLinkResponse, type AttachmentUpload, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationTask, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CacheWarmingSavingsRefill, type CacheWarmingSavingsReport, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDeliveryBody, type ConversationDeliveryResponse, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationOutline, 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 ConversationSubscriptionBody, type ConversationSubscriptionResponse, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateAttachmentUploadBody, type CreateConversationBody, type CreateConversationMessageBody, DEFAULT_NOTIFICATION_SCHEDULE, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, type InputFile, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_ATTACHMENT_BYTES, MAX_INPUT_ATTACHMENTS, MAX_OBJECT_LINKS, type MessageAttachment, type MessageCard, type NotificationSchedule, type NotificationSettings, type ObjectLinksReport, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type PinConversationBody, type PinConversationResponse, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RenameConversationBody, type RenameConversationResponse, type ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillDetailReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type Versions, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, annotationCard, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, attachObjectLinkBodySchema, attachObjectLinkResponseSchema, attachmentUploadSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cacheWarmingBreakerListSchema, cacheWarmingSavingsRefillResponseSchema, cacheWarmingSavingsReportSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, closeCacheWarmingBreakerResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationObjectCard, conversationOutlineSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createAttachmentUploadBodySchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, messageObjectCard, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, objectLinksQuerySchema, objectLinksReportSchema, personObjectCard, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, webPageObjectCard, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api/schema.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { a as conversationTurnFailureReasonSchema, i as conversationTurnFailureCodeSchema } from "../history-IjdmO_r6.js";
|
|
2
2
|
import { n as isWithinNotificationSchedule, r as notificationScheduleSchema, t as DEFAULT_NOTIFICATION_SCHEDULE } from "../schedule-cP0AACm1.js";
|
|
3
3
|
import { C as createConversationBodySchema, E as forkConversationResponseSchema, F as renameConversationBodySchema, G as MAX_ATTACHMENT_BYTES, I as renameConversationResponseSchema, K as MAX_INPUT_ATTACHMENTS, L as conversationReadPositionSchema, N as CONVERSATION_TITLE_MAX_LENGTH, O as conversationChildAgentTotalsSchema, T as forkConversationBodySchema, V as messageCardText, W as resolveMessageCards, _ as conversationReportEventSchema, a as conversationActivityPreviewSchema, b as conversationSummaryReportSchema, c as conversationAuxiliaryCostsSchema, d as conversationEventHistorySchema, f as conversationEventPageSchema, g as conversationReportEventDataSchema, h as conversationParamsSchema, l as conversationDetailQuerySchema, m as conversationFeedQuerySchema, n as CONVERSATION_VERSION_HEADER, p as conversationEventsQuerySchema, r as acceptedConversationMessageSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationDetailReportSchema, w as createConversationMessageBodySchema, z as annotationCard } from "../conversation-BNXfq6Lb.js";
|
|
4
|
-
import { C as isAgentInvocationResultEventType, a as USER_INPUT_NOTE, c as isEmptyUserInputAnswer, d as INLINE_VIDEO_TYPES, f as INPUT_IMAGE_TYPES, g as userCustomizationSchema, h as USER_CUSTOMIZATION_MAX_CHARS, l as normalizeUserInputAnswer, o as buttonUserInputField, x as AGENT_REPLY_EVENT_TYPE } from "../statuses-Hn-HsOph.js";
|
|
5
|
-
import { m as apiErrorSchema, p as webMessageId } from "../reporting-window-DopzcOHh.js";
|
|
6
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-Cva5ZOwW.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
5
|
+
import { S as AGENT_REPLY_EVENT_TYPE, T as apiErrorSchema, _ as userCustomizationSchema, f as INLINE_VIDEO_TYPES, g as USER_CUSTOMIZATION_MAX_CHARS, l as isEmptyUserInputAnswer, o as USER_INPUT_NOTE, p as INPUT_IMAGE_TYPES, s as buttonUserInputField, t as webMessageId, u as normalizeUserInputAnswer, w as isAgentInvocationResultEventType } from "../web-message-id-lNodcCOI.js";
|
|
6
|
+
import { C as skillReportsSchema, D as webPageObjectCard, E as personObjectCard, S as skillReportSchema, T as messageObjectCard, _ as pluginPackageContentReportSchema, a as conversationDetailWithMailboxReportSchema, b as runtimeInfoReportSchema, c as conversationPendingMessageSchema, d as steerConversationPendingMessagesBodySchema, f as steerConversationPendingMessagesResponseSchema, g as pluginPackageContentItemReportSchema, h as pluginOperationalReportSchema, i as cancelConversationPendingMessagesResponseSchema, l as conversationPendingMessagesReportSchema, m as pluginOperationalReportFeedSchema, n as conversationFeedSchema, o as conversationPendingAuthorizationSchema, p as healthReportSchema, r as cancelConversationPendingMessagesBodySchema, s as conversationPendingMessageDeliverySchema, u as conversationUnchangedDetailWithMailboxSchema, v as pluginSchema, w as conversationObjectCard, x as skillDetailReportSchema, y as pluginsSchema } from "../conversation-feed-Clf_cv0n.js";
|
|
7
|
+
import { $ as connectionListSchema, A as createPersonalTokenBodySchema, At as conversationAutoArchiveSchema, B as personalSpendReportSchema, Bt as conversationCatchUpSchema, C as cacheWarmingSavingsReportSchema, Ct as stopConversationTurnResponseSchema, D as serviceAccountParamsSchema, Dt as archiveConversationBodySchema, E as serviceAccountListSchema, Et as conversationOutlineSchema, F as revokePersonalTokenResponseSchema, Ft as pinConversationBodySchema, H as locationDetailReportSchema, Ht as attachmentUploadSchema, I as actorDirectoryReportSchema, It as pinConversationResponseSchema, J as dailyConversationActivitySchema, L as actorProfileReportSchema, Lt as reorderPinnedConversationsBodySchema, M as personalTokenListSchema, Mt as conversationSubscriptionResponseSchema, N as personalTokenMetadataSchema, Nt as conversationDeliveryBodySchema, O as serviceAccountSchema, Ot as archiveConversationResponseSchema, P as personalTokenParamsSchema, Pt as conversationDeliveryResponseSchema, Q as testNotificationResponseSchema, Rt as reorderPinnedConversationsResponseSchema, S as cacheWarmingSavingsRefillResponseSchema, St as objectLinksReportSchema, T as disconnectServiceAccountResponseSchema, Tt as CONVERSATION_OUTLINE_TEXT_LENGTH, U as locationDirectoryReportSchema, Ut as createAttachmentUploadBodySchema, V as locationActivityDayReportSchema, W as locationParamsSchema, Y as notificationSettingsSchema, _ as reviewItemSchema, _t as continueConversationInSlackResponseSchema, a as baselineSnapshotSchema, at as codeChangeSummaryReportSchema, bt as attachObjectLinkResponseSchema, c as workspaceListSchema, ct as codePersonReportSchema, d as workspaceSchema, dt as codeRepositorySummarySchema, et as connectionParamsSchema, f as reviewItemActionSchema, ft as conversationWatchSchema, gt as continueConversationInSlackBodySchema, h as reviewItemListSchema, ht as conversationChildAgentsReportSchema, i as statsReportSchema, it as codeActivityDaySchema, j as createdPersonalTokenSchema, jt as conversationSubscriptionBodySchema, k as startServiceAccountSignInResponseSchema, kt as archiveDoneConversationsResponseSchema, l as workspaceParamsSchema, lt as codeRepositoryParamsSchema, mt as conversationChildAgentSchema, n as versionsSchema, nt as disconnectConnectionResponseSchema, o as deleteWorkspaceResponseSchema, ot as codeChangeSummarySchema, p as reviewItemCountSchema, pt as conversationWatchesReportSchema, r as statSchema, rt as startConnectionResponseSchema, s as workspaceBodySchema, st as codeOverviewReportSchema, tt as connectionSchema, u as workspaceRepoSchema, ut as codeRepositoryReportSchema, v as reviewItemWaitingConversationsSchema, vt as MAX_OBJECT_LINKS, w as closeCacheWarmingBreakerResponseSchema, wt as conversationStatsReportSchema, xt as objectLinksQuerySchema, y as cacheWarmingBreakerListSchema, yt as attachObjectLinkBodySchema, z as personParamsSchema, zt as conversationCatchUpBodySchema } from "../schema-DnVQepWP.js";
|
|
8
|
+
export { AGENT_REPLY_EVENT_TYPE, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_ATTACHMENT_BYTES, MAX_INPUT_ATTACHMENTS, MAX_OBJECT_LINKS, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, annotationCard, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, attachObjectLinkBodySchema, attachObjectLinkResponseSchema, attachmentUploadSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cacheWarmingBreakerListSchema, cacheWarmingSavingsRefillResponseSchema, cacheWarmingSavingsReportSchema, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, closeCacheWarmingBreakerResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationObjectCard, conversationOutlineSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createAttachmentUploadBodySchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, messageCardText, messageObjectCard, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, objectLinksQuerySchema, objectLinksReportSchema, personObjectCard, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, webPageObjectCard, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
import { $a as workspaceRepoCheckoutPath, Ar as countReviewItemsNeedingUser, Cr as
|
|
2
|
-
import { R as escapeXml, Z as getAttachmentStorage, n as botConfig } from "./config-
|
|
3
|
-
import { h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { $a as workspaceRepoCheckoutPath, Ar as countReviewItemsNeedingUser, Cr as saveNotificationSchedule, Hi as createWorkspace, Hr as canActOnReviewItem, Ir as listWaitingConversations, Ji as updateWorkspace, Ki as listWorkspaces, Kr as isOnlyAssignee, Lr as reviewItemsNeedingUserVersionQuery, Pi as getDashboardSettingsLink, Qr as reviewItemReaderForUserInConversation, Rr as searchReviewItems, Sr as readNotificationSchedule, Tr as isPausedBySlack, Ui as deleteWorkspace, Uo as readSlackAttachmentSource, V as createPluginEgress, Wi as getWorkspace, Yi as WorkspaceValidationError, Za as SANDBOX_RUNTIME, Zn as createUserTokenStore, Zr as reviewItemReaderForUser, _o as createPluginLogger, _r as readWebPushConfig, bo as createConversationAccessReader, br as deletePushSubscription, ea as create, fs as createPluginAnnotations, jo as readConversationEventPage, ko as readConversationBriefThrough, ps as listConversationAnnotations, qi as listWorkspacesByRepository, ta as hash, ur as getPlugins, vr as sendPushNotificationToUser, wr as savePushSubscription, xo as readConversationAccessFromSql, xr as listPushSubscriptions, xs as createPluginCache, yr as resolveNotificationTimezone } from "./projection-CIBwgD3s.js";
|
|
2
|
+
import { R as escapeXml, Z as getAttachmentStorage, n as botConfig } from "./config-CzeZiMKs.js";
|
|
3
|
+
import { h as logWarn, m as logInfo, p as logException } from "./logging-C9oDAg4M.js";
|
|
4
4
|
import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-D2iXzvlN.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-DLUB5m72.js";
|
|
5
|
+
import { G as createCache, J as getStateAdapter, O as conversationKindFromRow, _ as loadConversationSlackTenantIds, a as getConversationStore, ft as nextDetailVersion, o as getDb, s as getSqlExecutor, x as withConversationMutationLock } from "./db-B-gtnNjr.js";
|
|
6
|
+
import { C as juniorConversationMetrics, E as juniorApiTokens, F as juniorDestinations, M as juniorConversations, N as juniorIdentities, O as juniorCodeChanges, P as juniorUsers, T as juniorConversationEvents, k as juniorCodeRepositories, x as juniorConversationBriefs } from "./executor-DZg20EqU.js";
|
|
7
|
+
import { f as credentialContextForActor } from "./registry-DdFQHZ_d.js";
|
|
8
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-Dss0lSV6.js";
|
|
9
|
+
import { O as previewOriginBelongsTo, d as AttachmentDownloadError, f as readAttachmentContent, y as createSlackReviewItemShow } from "./agent-runner-CY9RvsTX.js";
|
|
10
|
+
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-CRQbzp5e.js";
|
|
12
11
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
13
|
-
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarFetch, t as findUserByEmail } from "./viewer-
|
|
12
|
+
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarFetch, t as findUserByEmail } from "./viewer-B1SO21Qa.js";
|
|
14
13
|
import { C as createConversationBodySchema, E as forkConversationResponseSchema, F as renameConversationBodySchema, G as MAX_ATTACHMENT_BYTES, I as renameConversationResponseSchema, L as conversationReadPositionSchema, T as forkConversationBodySchema, f as conversationEventPageSchema, h as conversationParamsSchema, l as conversationDetailQuerySchema, m as conversationFeedQuerySchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationEventsQuerySchema, r as acceptedConversationMessageSchema, s as conversationAttachmentQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationDetailReportSchema, w as createConversationMessageBodySchema } from "./conversation-BNXfq6Lb.js";
|
|
15
|
-
import {
|
|
16
|
-
import { At as
|
|
17
|
-
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CNrZ3QcU.js";
|
|
18
|
-
import { u as automationEventCatalog } from "./turn-session-routing-BD3-jJl7.js";
|
|
19
|
-
import { d as INLINE_VIDEO_TYPES, f as INPUT_IMAGE_TYPES, g as userCustomizationSchema, p as detectImageMediaType } from "./statuses-Hn-HsOph.js";
|
|
20
|
-
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-DJkh9Fky.js";
|
|
21
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-suY004dx.js";
|
|
22
|
-
import { a as fillUtcSixHours, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, m as apiErrorSchema, 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-DopzcOHh.js";
|
|
14
|
+
import { J as isExperimentalFeatureEnabled, X as getEventCatalog, _ as readUserCustomization, v as saveUserCustomization, y as addConversationNote } from "./session-stop-DW63Z3kj.js";
|
|
15
|
+
import { At as writeAttachmentUpload, Bt as listChildAgents, C as readStats, Ci as AutomationEditError, Et as AttachmentUploadError, Jn as emptyResponse, Mt as readLiveAttachment, Ot as createAttachmentUpload, Xn as throwApiError, Yn as jsonResponse, _ as connectedState, _i as readViewerAutomations, ci as deleteViewerTask, ct as archiveConversation, di as ViewerTaskNotFoundError, dt as reportConversationRead, g as closeBreaker, gi as readViewerAutomationVersions, h as breakerStates, hi as readViewerAutomationSummary, ii as activateViewerAutomationVersion, l as SAVINGS_NAMESPACE, li as readViewerAutomationEdit, m as savingsTotals, mi as readViewerAutomationRuns, pi as readViewerAutomationExecutions, qn as setConversationSubscription, si as changeViewerAutomationLifecycle, ui as updateViewerAutomation, vt as acceptsWebMessages, wt as webActorFromUser, zt as listOwnedWatches } from "./warmup-Bz9bzkzN.js";
|
|
23
16
|
import { F as compileScheduleIntent, P as ScheduleIntentError, U as automationTaskText, _ 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-Cva5ZOwW.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
17
|
+
import { F as readAutomationTitlesByConversationId, L as conversationAggregateColumns, R as conversationRangeColumns, _t as automationEventCatalog, pt as AutomationConflictError, z as conversationUsageCostExpr } from "./turn-session-routing-BFMS9ATF.js";
|
|
18
|
+
import { A as fillUtcSixHours, D as HOUR_MS$1, E as DAY_MS$2, F as trailingUtcSixHourWindow, I as utcDayKey, L as utcHourKey, M as sumUtcHoursIntoSixHours, N as trailingUtcDayWindow, O as fillUtcDays, P as trailingUtcHourWindow, T as apiErrorSchema, _ as userCustomizationSchema, f as INLINE_VIDEO_TYPES, j as startOfUtcHour, k as fillUtcHours, m as detectImageMediaType, p as INPUT_IMAGE_TYPES } from "./web-message-id-lNodcCOI.js";
|
|
19
|
+
import { o as getVercelConversationWorkQueue } from "./background-compaction-queue-CXFq1_Cz.js";
|
|
20
|
+
import { o as getSandboxResources } from "./install-t1KQyTUs.js";
|
|
21
|
+
import { t as getCachedSnapshot } from "./resolve-CdW4BdrK.js";
|
|
22
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CrZftRTb.js";
|
|
23
|
+
import { t as runWithSlackInstallation } from "./adapter-context-Cx9fn9B3.js";
|
|
24
|
+
import { $ as guardedFetch, Ct as createViewerMcp, F as readReviewItemForUser, G as startSavingsRefill, H as updateUserAutoArchiveSettings, J as readHealthReport, L as DEFAULT_AUTO_ARCHIVE_SETTINGS, M as ReviewItemActionError, N as actOnReviewItem, O as isAllowedSignInEmail, Q as resolveObjectLinks, R as archiveViewerDoneConversations, S as cancelConversationPendingMessagesForViewer, St as readFirstHumanMessageTexts, T as resolveMentions, Tt as decodeImageId, U as readSavingsRefill, V as setConversationAutoArchive, Y as OBJECT_LINK_TTL_MS, Z as resolveObjectLinkNow, _ as appendConversationMessageForViewer, a as pinConversation, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionQuery, f as readConversationDetailEtag, h as readConversationEvents, i as readConversationFeed, it as getProductionSlackAdapter, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, n as steerConversationPendingMessagesForViewer, o as reorderPinnedConversations, p as forkConversationForViewer, r as conversationFeedVersionQuery, s as readConversationDetail, t as stopConversationTurnForViewer, u as readConversationTreeMetricsFromSql, v as createConversationForViewer, w as requireConversationPendingMessages, wt as IMAGE_WIDTHS, xt as conversationSummaryFromStoredConversation, y as requireWebMessageConversation, z as readUserAutoArchiveSettings } from "./stop-7p1i08CY.js";
|
|
25
|
+
import { C as skillReportsSchema, a as conversationDetailWithMailboxReportSchema, b as runtimeInfoReportSchema, d as steerConversationPendingMessagesBodySchema, f as steerConversationPendingMessagesResponseSchema, i as cancelConversationPendingMessagesResponseSchema, l as conversationPendingMessagesReportSchema, m as pluginOperationalReportFeedSchema, n as conversationFeedSchema, p as healthReportSchema, r as cancelConversationPendingMessagesBodySchema, u as conversationUnchangedDetailWithMailboxSchema, x as skillDetailReportSchema, y as pluginsSchema } from "./conversation-feed-Clf_cv0n.js";
|
|
26
|
+
import { a as resumeConversationDelivery, i as pauseConversationDelivery, r as canPauseConversationDelivery } from "./conversation-turn-D7SEZgTG.js";
|
|
27
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-CDYhMfrs.js";
|
|
28
|
+
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-7Uf05ndC.js";
|
|
29
|
+
import { $ as connectionListSchema, A as createPersonalTokenBodySchema, At as conversationAutoArchiveSchema, B as personalSpendReportSchema, Bt as conversationCatchUpSchema, C as cacheWarmingSavingsReportSchema, Ct as stopConversationTurnResponseSchema, D as serviceAccountParamsSchema, Dt as archiveConversationBodySchema, E as serviceAccountListSchema, Et as conversationOutlineSchema, F as revokePersonalTokenResponseSchema, Ft as pinConversationBodySchema, G as activityDays$1, H as locationDetailReportSchema, Ht as attachmentUploadSchema, I as actorDirectoryReportSchema, It as pinConversationResponseSchema, K as activityHours$1, L as actorProfileReportSchema, Lt as reorderPinnedConversationsBodySchema, M as personalTokenListSchema, Mt as conversationSubscriptionResponseSchema, Nt as conversationDeliveryBodySchema, Ot as archiveConversationResponseSchema, P as personalTokenParamsSchema, Pt as conversationDeliveryResponseSchema, Q as testNotificationResponseSchema, R as avatarParamsSchema, Rt as reorderPinnedConversationsResponseSchema, S as cacheWarmingSavingsRefillResponseSchema, St as objectLinksReportSchema, T as disconnectServiceAccountResponseSchema, U as locationDirectoryReportSchema, Ut as createAttachmentUploadBodySchema, Vt as attachmentUploadParamsSchema, W as locationParamsSchema, X as pushSubscriptionBodySchema, Y as notificationSettingsSchema, Z as pushSubscriptionDeleteBodySchema, _ as reviewItemSchema, _t as continueConversationInSlackResponseSchema, b as cacheWarmingBreakerParamsSchema, bt as attachObjectLinkResponseSchema, c as workspaceListSchema, ct as codePersonReportSchema, d as workspaceSchema, et as connectionParamsSchema, f as reviewItemActionSchema, g as reviewItemParamsSchema, gt as continueConversationInSlackBodySchema, h as reviewItemListSchema, ht as conversationChildAgentsReportSchema, i as statsReportSchema, j as createdPersonalTokenSchema, jt as conversationSubscriptionBodySchema, k as startServiceAccountSignInResponseSchema, kt as archiveDoneConversationsResponseSchema, l as workspaceParamsSchema, lt as codeRepositoryParamsSchema, m as reviewItemListQuerySchema, n as versionsSchema, nt as disconnectConnectionResponseSchema, o as deleteWorkspaceResponseSchema, p as reviewItemCountSchema, pt as conversationWatchesReportSchema, q as activitySixHours$1, rt as startConnectionResponseSchema, s as workspaceBodySchema, st as codeOverviewReportSchema, t as versionsQuerySchema, ut as codeRepositoryReportSchema, v as reviewItemWaitingConversationsSchema, w as closeCacheWarmingBreakerResponseSchema, wt as conversationStatsReportSchema, x as cacheWarmingSavingsQuerySchema, xt as objectLinksQuerySchema, y as cacheWarmingBreakerListSchema, yt as attachObjectLinkBodySchema, z as personParamsSchema, zt as conversationCatchUpBodySchema } from "./schema-DnVQepWP.js";
|
|
32
30
|
import { Hono } from "hono";
|
|
33
31
|
import * as z from "zod";
|
|
34
32
|
import path from "node:path";
|
|
@@ -68,7 +66,7 @@ async function attachObjectLink(viewer, conversationId, url) {
|
|
|
68
66
|
if ((await listConversationAnnotations(db, conversationId)).some((annotation) => annotation.url && sameLink(annotation.url, link) || annotation.plugin === linkType.owner && annotation.key === object.key)) return { status: "unchanged" };
|
|
69
67
|
const type = object.displayType ?? objectPresentation(object).label;
|
|
70
68
|
const article = /^[aeiou]/i.test(type) ? "an" : "a";
|
|
71
|
-
const
|
|
69
|
+
const readTool = linkType.readTool?.(object);
|
|
72
70
|
await addConversationNote({
|
|
73
71
|
conversationId,
|
|
74
72
|
createdAtMs: Date.now(),
|
|
@@ -1321,7 +1319,7 @@ function createConversationRoutes(options) {
|
|
|
1321
1319
|
return app;
|
|
1322
1320
|
}
|
|
1323
1321
|
// src/api/code/overview.ts
|
|
1324
|
-
const DAY_MS = 864e5;
|
|
1322
|
+
const DAY_MS$1 = 864e5;
|
|
1325
1323
|
const WINDOW_DAYS = 30;
|
|
1326
1324
|
/**
|
|
1327
1325
|
* Code changes listed on one People profile. Open changes sort first so a
|
|
@@ -1417,12 +1415,12 @@ function changeScopeFilter(args) {
|
|
|
1417
1415
|
async function readCodeWindows(args) {
|
|
1418
1416
|
const db = getDb();
|
|
1419
1417
|
const windowEnd = new Date(args.nowMs);
|
|
1420
|
-
const windowStart = /* @__PURE__ */ new Date(args.nowMs - WINDOW_DAYS * DAY_MS);
|
|
1421
|
-
const activityStart = startOfUtcDay(args.nowMs - 89 * DAY_MS);
|
|
1418
|
+
const windowStart = /* @__PURE__ */ new Date(args.nowMs - WINDOW_DAYS * DAY_MS$1);
|
|
1419
|
+
const activityStart = startOfUtcDay(args.nowMs - 89 * DAY_MS$1);
|
|
1422
1420
|
const changes = juniorCodeChanges;
|
|
1423
1421
|
const activityHourEnd = new Date(args.nowMs);
|
|
1424
1422
|
activityHourEnd.setUTCMinutes(0, 0, 0);
|
|
1425
|
-
const activityHourStart = /* @__PURE__ */ new Date(activityHourEnd.getTime() - 167 * (DAY_MS / 24));
|
|
1423
|
+
const activityHourStart = /* @__PURE__ */ new Date(activityHourEnd.getTime() - 167 * (DAY_MS$1 / 24));
|
|
1426
1424
|
const rows = await db.select({
|
|
1427
1425
|
closedAt: changes.closedAt,
|
|
1428
1426
|
conversationIds: changes.conversationIds,
|
|
@@ -1441,7 +1439,7 @@ async function readCodeWindows(args) {
|
|
|
1441
1439
|
end: activityHourEnd,
|
|
1442
1440
|
keyLength: 13,
|
|
1443
1441
|
start: activityHourStart,
|
|
1444
|
-
stepMs: DAY_MS / 24
|
|
1442
|
+
stepMs: DAY_MS$1 / 24
|
|
1445
1443
|
});
|
|
1446
1444
|
const summary = {
|
|
1447
1445
|
closed: closed.length,
|
|
@@ -1457,7 +1455,7 @@ async function readCodeWindows(args) {
|
|
|
1457
1455
|
end: startOfUtcDay(args.nowMs),
|
|
1458
1456
|
keyLength: 10,
|
|
1459
1457
|
start: activityStart,
|
|
1460
|
-
stepMs: DAY_MS
|
|
1458
|
+
stepMs: DAY_MS$1
|
|
1461
1459
|
}),
|
|
1462
1460
|
activityHours,
|
|
1463
1461
|
activitySixHours: sumUtcHoursIntoSixHours({
|
|
@@ -2213,7 +2211,8 @@ function pluginSource(plugin) {
|
|
|
2213
2211
|
}),
|
|
2214
2212
|
log: createPluginLogger(name),
|
|
2215
2213
|
plugin: { name },
|
|
2216
|
-
viewer
|
|
2214
|
+
viewer,
|
|
2215
|
+
viewerMcp: createViewerMcp(name, viewer.id)
|
|
2217
2216
|
}, ref);
|
|
2218
2217
|
}
|
|
2219
2218
|
function findSource(source) {
|
|
@@ -2591,10 +2590,10 @@ function rangeWindow(buckets, nowMs, range, conversations) {
|
|
|
2591
2590
|
};
|
|
2592
2591
|
}
|
|
2593
2592
|
const current = trailingUtcDayWindow(nowMs, range);
|
|
2594
|
-
const priorEndMs = current.start.getTime() - DAY_MS$
|
|
2595
|
-
const priorStartMs = priorEndMs - (range - 1) * DAY_MS$
|
|
2596
|
-
const currentTotals = sumBuckets(buckets, current.start.getTime(), current.end.getTime(), utcDayKey, DAY_MS$
|
|
2597
|
-
const priorTotals = sumBuckets(buckets, priorStartMs, priorEndMs, utcDayKey, DAY_MS$
|
|
2593
|
+
const priorEndMs = current.start.getTime() - DAY_MS$2;
|
|
2594
|
+
const priorStartMs = priorEndMs - (range - 1) * DAY_MS$2;
|
|
2595
|
+
const currentTotals = sumBuckets(buckets, current.start.getTime(), current.end.getTime(), utcDayKey, DAY_MS$2);
|
|
2596
|
+
const priorTotals = sumBuckets(buckets, priorStartMs, priorEndMs, utcDayKey, DAY_MS$2);
|
|
2598
2597
|
return {
|
|
2599
2598
|
conversations,
|
|
2600
2599
|
costUsd: currentTotals.costUsd,
|
|
@@ -2740,7 +2739,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2740
2739
|
reports: [],
|
|
2741
2740
|
source: "plugins"
|
|
2742
2741
|
});
|
|
2743
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2742
|
+
const { getPluginProfileReports } = await import("./projection-CIBwgD3s.js").then((n) => n.er);
|
|
2744
2743
|
return pluginOperationalReportFeedSchema.parse({
|
|
2745
2744
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2746
2745
|
reports: await getPluginProfileReports({
|
|
@@ -3178,16 +3177,60 @@ function createServiceAccountRoutes() {
|
|
|
3178
3177
|
});
|
|
3179
3178
|
return app;
|
|
3180
3179
|
}
|
|
3180
|
+
// src/api/cache-warming/savings.ts
|
|
3181
|
+
const DAY_MS = 864e5;
|
|
3182
|
+
function savings(stats) {
|
|
3183
|
+
const { historyDays: _, ...totals } = savingsTotals(stats);
|
|
3184
|
+
return totals;
|
|
3185
|
+
}
|
|
3186
|
+
/**
|
|
3187
|
+
* Read what cache warming saved on each of the last `days` UTC days, today
|
|
3188
|
+
* included, and in total. Net savings and effectiveness leave out days filled
|
|
3189
|
+
* from history: history has no warmup calls, so their warmup cost is unknown.
|
|
3190
|
+
*/
|
|
3191
|
+
async function readCacheWarmingSavings(days, nowMs = Date.now()) {
|
|
3192
|
+
const dates = Array.from({ length: days }, (_, index) => (/* @__PURE__ */ new Date(nowMs - (days - 1 - index) * DAY_MS)).toISOString().slice(0, 10));
|
|
3193
|
+
const stats = (await readStats(dates[0], dates.at(-1))).filter((stat) => stat.namespace === SAVINGS_NAMESPACE);
|
|
3194
|
+
const unknownCostDates = new Set(dates.filter((date) => savingsTotals(stats.filter((stat) => stat.date === date)).historyDays > 0));
|
|
3195
|
+
const known = savings(stats.filter((stat) => !unknownCostDates.has(stat.date)));
|
|
3196
|
+
const netSavingsUsd = known.savedUsd - known.warmupCostUsd;
|
|
3197
|
+
return cacheWarmingSavingsReportSchema.parse({
|
|
3198
|
+
days: dates.map((date) => {
|
|
3199
|
+
const day = savings(stats.filter((stat) => stat.date === date));
|
|
3200
|
+
return {
|
|
3201
|
+
date,
|
|
3202
|
+
...day,
|
|
3203
|
+
netSavingsUsd: unknownCostDates.has(date) ? null : day.savedUsd - day.warmupCostUsd
|
|
3204
|
+
};
|
|
3205
|
+
}),
|
|
3206
|
+
totals: {
|
|
3207
|
+
...savings(stats),
|
|
3208
|
+
netSavingsUsd,
|
|
3209
|
+
knownCostOracleSavingsUsd: known.oracleSavingsUsd,
|
|
3210
|
+
effectiveness: known.oracleSavingsUsd > 0 ? netSavingsUsd / known.oracleSavingsUsd : null,
|
|
3211
|
+
unknownCostDays: unknownCostDates.size
|
|
3212
|
+
}
|
|
3213
|
+
});
|
|
3214
|
+
}
|
|
3181
3215
|
// src/api/cache-warming/routes.ts
|
|
3182
3216
|
/**
|
|
3183
|
-
* Create
|
|
3217
|
+
* Create the cache warming routes: its savings for the System page, and
|
|
3218
|
+
* admin-only routes that re-fill the savings from history and show and close
|
|
3219
|
+
* the breakers.
|
|
3184
3220
|
*
|
|
3185
3221
|
* A breaker stops warming for every Conversation, so only a Junior admin can
|
|
3186
|
-
* close one before it closes by itself.
|
|
3222
|
+
* close one before it closes by itself. A re-fill replaces counters that
|
|
3223
|
+
* everyone sees, so only a Junior admin can start one.
|
|
3187
3224
|
*/
|
|
3188
3225
|
function createCacheWarmingRoutes() {
|
|
3189
3226
|
const app = new Hono();
|
|
3190
|
-
app.get("/
|
|
3227
|
+
app.get("/savings", validateRequest("query", cacheWarmingSavingsQuerySchema, "Invalid query parameters."), async (context) => jsonResponse(cacheWarmingSavingsReportSchema, await readCacheWarmingSavings(context.req.valid("query").days)));
|
|
3228
|
+
app.get("/savings/refill", requireAdmin, async () => jsonResponse(cacheWarmingSavingsRefillResponseSchema, { refill: await readSavingsRefill() }));
|
|
3229
|
+
app.post("/savings/refill", requireAdmin, async () => {
|
|
3230
|
+
const { started, refill } = await startSavingsRefill();
|
|
3231
|
+
return jsonResponse(cacheWarmingSavingsRefillResponseSchema, { refill }, { status: started ? 202 : 409 });
|
|
3232
|
+
});
|
|
3233
|
+
app.get("/breakers", requireAdmin, async () => jsonResponse(cacheWarmingBreakerListSchema, { breakers: await breakerStates(await connectedState(), [botConfig.modelId, ...botConfig.refusalFallbackModelId ? [botConfig.refusalFallbackModelId] : []]) }));
|
|
3191
3234
|
app.delete("/breakers/:provider", requireAdmin, validateRequest("param", cacheWarmingBreakerParamsSchema, "Invalid provider."), async (context) => {
|
|
3192
3235
|
const { provider } = context.req.valid("param");
|
|
3193
3236
|
if (!await closeBreaker(await connectedState(), provider)) throwApiError(404, "Breaker not found.");
|
|
@@ -3711,25 +3754,6 @@ function createWorkspaceRoutes() {
|
|
|
3711
3754
|
});
|
|
3712
3755
|
return app;
|
|
3713
3756
|
}
|
|
3714
|
-
// src/api/reply-times.ts
|
|
3715
|
-
/**
|
|
3716
|
-
* Read the gap list that the cache warming planner reads for each segment.
|
|
3717
|
-
* The lists hold only gap lengths, so the report names no person or
|
|
3718
|
-
* Conversation.
|
|
3719
|
-
*/
|
|
3720
|
-
async function readReplyTimeSegments() {
|
|
3721
|
-
const state = getStateAdapter();
|
|
3722
|
-
await state.connect();
|
|
3723
|
-
const segments = await Promise.all(GAP_SEGMENTS.map(async (segment) => ({
|
|
3724
|
-
histogram: gapHistogramReport(await state.getList(segmentGapsKey(segment))),
|
|
3725
|
-
segment
|
|
3726
|
-
})));
|
|
3727
|
-
return replyTimeSegmentsReportSchema.parse({
|
|
3728
|
-
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3729
|
-
minSamples: 20,
|
|
3730
|
-
segments
|
|
3731
|
-
});
|
|
3732
|
-
}
|
|
3733
3757
|
// src/api/stats.ts
|
|
3734
3758
|
/** Read the last 90 days of named daily counters. */
|
|
3735
3759
|
async function readStatsReport() {
|
|
@@ -3779,7 +3803,7 @@ function readDescriptionText(home) {
|
|
|
3779
3803
|
}
|
|
3780
3804
|
/** Read discovered skills for runtime diagnostics and the Automation editor. */
|
|
3781
3805
|
async function readSkillReports() {
|
|
3782
|
-
const { discoverSkills } = await import("./skills-
|
|
3806
|
+
const { discoverSkills } = await import("./skills-C16fz60Z.js").then((n) => n.o);
|
|
3783
3807
|
const skills = await discoverSkills();
|
|
3784
3808
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3785
3809
|
name: skill.name,
|
|
@@ -3793,7 +3817,7 @@ async function readSkillReports() {
|
|
|
3793
3817
|
* what the skill tells Junior. Returns null when no skill has that name.
|
|
3794
3818
|
*/
|
|
3795
3819
|
async function readSkillDetailReport(name) {
|
|
3796
|
-
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-
|
|
3820
|
+
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-C16fz60Z.js").then((n) => n.o);
|
|
3797
3821
|
const skill = findSkillByName(name, await discoverSkills());
|
|
3798
3822
|
if (!skill) return null;
|
|
3799
3823
|
const parsed = parseSkillFile(await fs.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
@@ -3808,7 +3832,7 @@ async function readSkillDetailReport(name) {
|
|
|
3808
3832
|
}
|
|
3809
3833
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3810
3834
|
async function readPlugins() {
|
|
3811
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3835
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-Dss0lSV6.js").then((n) => n.t);
|
|
3812
3836
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3813
3837
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3814
3838
|
description: plugin.manifest.description,
|
|
@@ -3820,7 +3844,7 @@ async function readPlugins() {
|
|
|
3820
3844
|
async function readRuntimeInfoReport() {
|
|
3821
3845
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3822
3846
|
import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
|
|
3823
|
-
import("./catalog-runtime-
|
|
3847
|
+
import("./catalog-runtime-Dss0lSV6.js").then((n) => n.t),
|
|
3824
3848
|
readPlugins(),
|
|
3825
3849
|
readSkillReports()
|
|
3826
3850
|
]);
|
|
@@ -3837,7 +3861,7 @@ async function readRuntimeInfoReport() {
|
|
|
3837
3861
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3838
3862
|
async function readPluginOperationalReportFeed() {
|
|
3839
3863
|
const nowMs = Date.now();
|
|
3840
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3864
|
+
const { getPluginOperationalReports } = await import("./projection-CIBwgD3s.js").then((n) => n.er);
|
|
3841
3865
|
return pluginOperationalReportFeedSchema.parse({
|
|
3842
3866
|
source: "plugins",
|
|
3843
3867
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -3859,7 +3883,6 @@ function createJuniorApi(options = {}) {
|
|
|
3859
3883
|
});
|
|
3860
3884
|
app.get("/api/plugin-reports", async () => jsonResponse(pluginOperationalReportFeedSchema, await readPluginOperationalReportFeed()));
|
|
3861
3885
|
app.get("/api/stats", async () => jsonResponse(statsReportSchema, await readStatsReport()));
|
|
3862
|
-
app.get("/api/reply-times", async () => jsonResponse(replyTimeSegmentsReportSchema, await readReplyTimeSegments()));
|
|
3863
3886
|
app.get("/api/versions", requireViewer, validateRequest("query", versionsQuerySchema, "Invalid query parameters."), async (context) => jsonResponse(versionsSchema, await readVersions(context.get("viewer"), context.req.valid("query")), { headers: { "cache-control": "private, no-store" } }));
|
|
3864
3887
|
const queue = options.conversationWorkQueue ?? getVercelConversationWorkQueue();
|
|
3865
3888
|
app.route("/api/conversations", createConversationRoutes({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
|
|
2
|
-
import { t as ConversationStore } from "./db-
|
|
3
|
-
import "./schema-
|
|
2
|
+
import { t as ConversationStore } from "./db-BdsCzytP.js";
|
|
3
|
+
import "./schema-BIFM-U1a.js";
|
|
4
4
|
import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-BpY3wtRP.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, createApp, defineJuniorPlugins };
|