@sentry/junior 0.285.0 → 0.287.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-DN5AB4VU.js → adapter-CL-HUKgd.js} +1 -1
- package/dist/{admin-DOITMKnn.js → admin-C9urXVfi.js} +2 -1
- package/dist/{agent-runner-BsWhHe4N.js → agent-runner-Bfnw551N.js} +2174 -1323
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +73 -112
- package/dist/{app-DyMs9330.d.ts → app-DBY5TnfY.d.ts} +2 -3
- package/dist/app.d.ts +1 -1
- package/dist/app.js +72 -42
- package/dist/{assistant-reply-9Jip5bsr.js → assistant-reply-u_PRYzuz.js} +1 -1
- package/dist/{automation-Mk8aaHzy.js → automation-DksGNDRO.js} +3 -6
- package/dist/{background-compaction-queue-DXkLsWoH.js → background-compaction-queue-CYI909P5.js} +137 -3
- package/dist/{briefs-Cl8-nK9B.js → briefs-DaXiMWzT.js} +6 -5
- package/dist/{catalog-runtime-Bte6jRB2.js → catalog-runtime-BCIuBe4d.js} +1 -1
- package/dist/cli/chat.js +14 -14
- 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 +5 -6
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-DDbBucBw.js → config-CkHcUMN7.js} +580 -3
- package/dist/{connections-DA4LT9LL.js → connections-BnIj0wtx.js} +16 -50
- package/dist/{conversation-D8kVoCrP.js → conversation-E7ZPJx2H.js} +22 -6
- package/dist/{conversation-pending-messages-BvROq1bq.js → conversation-pending-messages-DVch6YQw.js} +2 -5
- package/dist/{conversation-privacy-D0j_h70R.js → conversation-privacy-DF1hW0ja.js} +1 -1
- package/dist/{credential-sync-hcsYatw-.js → credential-sync-CzMar9hq.js} +13 -13
- package/dist/{viewer-1Ea81s0b.js → db-DJ11eZqq.js} +64 -367
- package/dist/{db-BhHZSuFw.d.ts → db-YDKKDxlh.d.ts} +4 -4
- package/dist/{executor-BLEMIgIZ.js → executor-BY9TB31g.js} +20 -19
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-BfORLKoq.js → logging-BO5zU6Mt.js} +1 -1
- package/dist/{media-Bu9C6lz0.js → media-Cz1ZiV1U.js} +16 -4
- package/dist/{message-DqjuKzUx.js → message-CsUbuEc8.js} +10 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -3
- package/dist/{oauth-callback-server-CFSRzu1n.js → oauth-callback-server-hiDKK0_n.js} +2 -2
- package/dist/{projection-DliWYrnT.js → projection-CL_YWeGf.js} +352 -356
- package/dist/{prompt-BvIUzY4y.js → prompt-BHOEQSmf.js} +182 -2
- package/dist/{registry-rC7MCxu8.js → registry-BriFLnaJ.js} +1 -1
- package/dist/{reporting-window-B4TwyuJo.js → reporting-window-B3Ze-Qnt.js} +4 -1
- package/dist/{resolve-Biu8Qw3u.js → resolve-Bt6GgAiA.js} +3 -3
- package/dist/{result-DxJMCX47.js → result-Bo1TZu0Q.js} +8 -8
- package/dist/{runner-BQJSFLKg.js → runner-D3YeCQgt.js} +16 -12
- package/dist/{sandbox-egress-signals-6aMxJSDn.js → sandbox-egress-signals-CcnSPP4S.js} +1 -1
- package/dist/{schema-BasXTvi2.js → schema-BWE3RJEB.js} +19 -7
- package/dist/{schema-BUviRAs8.d.ts → schema-C6fsEwjo.d.ts} +90 -8
- package/dist/{service-account-BI5Wgx22.js → service-account-DiQQuuw7.js} +3 -3
- package/dist/{service-account-CAE-_1dR.js → service-account-r6fl0b-9.js} +3 -3
- package/dist/{session-stop-CA-jOJ84.js → session-stop-B2Nut40V.js} +27 -25
- package/dist/{skills-B22duVJU.js → skills-CD5aJdzg.js} +2 -2
- package/dist/spawn-CalgZQiu.js +79 -0
- package/dist/{stop-DioIcEAu.js → stop-kujZLbi0.js} +233 -1127
- package/dist/{store-Dn4W7qgH.js → store-DdIEUL1q.js} +3 -3
- package/dist/{turn-session-routing-CGMKrYOj.js → task-runner-D_RDr2Hu.js} +1440 -993
- package/dist/{store-B26LV6UP.js → turn-failure-response-B5nV1Er-.js} +337 -6
- package/dist/{validation-TzhfQABF.js → validation-K4pqwoVZ.js} +1 -1
- package/dist/{version-DSk8CFvA.js → version-DBvhk1X9.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/viewer-DrMmFUul.js +337 -0
- package/dist/{work-ybG4_q5C.js → work-ljRoODGu.js} +110 -94
- package/dist/{worker-ccSyZRNz.js → worker-CYO1Q0Js.js} +5 -6
- package/migrations/0086_shared_archive.sql +31 -0
- package/migrations/0087_child_location.sql +64 -0
- package/migrations/0088_conversation_unsubscribe.sql +1 -0
- package/migrations/meta/0086_snapshot.json +4366 -0
- package/migrations/meta/0087_snapshot.json +4366 -0
- package/migrations/meta/0088_snapshot.json +4372 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +5 -4
- package/dist/config-DqFnykQT.js +0 -579
- package/dist/spawn-BB2_4VYn.js +0 -31
- package/dist/task-queue-Bt0IoR2i.js +0 -139
- package/dist/task-runner-D8lddjzp.js +0 -290
- package/dist/thread-state-CrFk3K_7.js +0 -173
- package/dist/turn-failure-response-DaJ04qVj.js +0 -224
- package/dist/turn-lifecycle-C2mXS7AZ.js +0 -58
package/dist/api/schema.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as automationEventCatalogSchema, $i as
|
|
2
|
-
export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReadReport, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUnread, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, DEFAULT_NOTIFICATION_SCHEDULE, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, type InputImage, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MarkConversationUnreadBody, type MessageAttachment, type MessageCard, type NotificationSchedule, type NotificationSettings, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type PinConversationBody, type PinConversationResponse, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RenameConversationBody, type RenameConversationResponse, type ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type Versions, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReadReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationUnreadSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, markConversationUnreadBodySchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
|
1
|
+
import { $ as automationEventCatalogSchema, $i as codeRepositorySummarySchema, $n as pinConversationBodySchema, $r as ConversationAuxiliaryCosts, $t as connectionSchema, A as skillReportSchema, Ai as conversationParamsSchema, An as conversationWatchSchema, Ar as CancelConversationPendingMessagesBody, At as USER_CUSTOMIZATION_MAX_CHARS, B as AutomationExecutionStatusDay, Bi as CodeActivityDay, Bn as renameConversationResponseSchema, Br as conversationPendingAuthorizationSchema, Bt as serviceAccountListSchema, C as pluginOperationalReportFeedSchema, Ci as conversationDetailQuerySchema, Cn as PersonalSpendReport, Cr as ArchiveConversationBody, Ct as baselineSnapshotSchema, D as pluginSchema, Di as conversationEventsQuerySchema, Dn as personalSpendReportSchema, Dr as archiveConversationResponseSchema, Dt as workspaceParamsSchema, E as pluginPackageContentReportSchema, Ei as conversationEventPageSchema, En as personParamsSchema, Er as archiveConversationBodySchema, Et as workspaceListSchema, F as statsReportSchema, Fi as createConversationMessageBodySchema, Fn as conversationChildAgentsReportSchema, Fr as SteerConversationPendingMessagesBody, Ft as personalTokenListSchema, G as AutomationRunWindows, Gi as CodeRepositorySummary, Gn as ConversationSubscriptionBody, Gr as steerConversationPendingMessagesBodySchema, Gt as notificationSettingsSchema, H as AutomationListQuery, Hi as CodeOverviewReport, Hn as MarkConversationUnreadBody, Hr as conversationPendingMessageSchema, Ht as serviceAccountSchema, I as AutomationEdit, Ii as forkConversationBodySchema, In as CONVERSATION_TITLE_MAX_LENGTH, Ir as SteerConversationPendingMessagesResponse, It as personalTokenMetadataSchema, J as AutomationUpdate, Ji as codeChangeSummarySchema, Jn as conversationSubscriptionResponseSchema, Jr as ActorIdentity, Jt as NotificationSchedule, K as AutomationScheduleIntent, Ki as codeActivityDaySchema, Kn as ConversationSubscriptionResponse, Kr as steerConversationPendingMessagesResponseSchema, Kt as testNotificationResponseSchema, L as AutomationExecution, Li as forkConversationResponseSchema, Ln as RenameConversationBody, Lr as cancelConversationPendingMessagesBodySchema, Lt as personalTokenParamsSchema, M as StatReport, Mi as conversationReportEventSchema, Mn as ConversationChildAgent, Mr as ConversationPendingMessage, Mt as PersonalTokenMetadata, N as StatsReport, Ni as conversationSummaryReportSchema, Nn as ConversationChildAgentsReport, Nr as ConversationPendingMessageDelivery, Nt as createPersonalTokenBodySchema, O as pluginsSchema, Oi as conversationFeedQuerySchema, On as ConversationWatch, Or as archiveDoneConversationsResponseSchema, Ot as workspaceRepoSchema, P as statSchema, Pi as createConversationBodySchema, Pn as conversationChildAgentSchema, Pr as ConversationPendingMessagesReport, Pt as createdPersonalTokenSchema, Q as automationEditSchema, Qi as codeRepositoryReportSchema, Qn as ReorderPinnedConversationsResponse, Qr as ConversationAgentTreeNode, Qt as connectionParamsSchema, R as AutomationExecutionDay, Ri as conversationTurnFailureCodeSchema, Rn as RenameConversationResponse, Rr as cancelConversationPendingMessagesResponseSchema, Rt as revokePersonalTokenResponseSchema, S as healthReportSchema, Sa as INPUT_IMAGE_TYPES, Si as conversationAuxiliaryCostsSchema, Sn as PersonParams, Sr as conversationStatsReportSchema, St as WorkspaceReport, T as pluginPackageContentItemReportSchema, Ti as conversationEventHistorySchema, Tn as actorProfileReportSchema, Tr as ConversationAutoArchive, Tt as workspaceBodySchema, U as AutomationRun, Ui as CodePersonReport, Un as conversationUnreadSchema, Ur as conversationPendingMessagesReportSchema, Ut as startServiceAccountSignInResponseSchema, V as AutomationList, Vi as CodeChangeSummaryReport, Vn as ConversationUnread, Vr as conversationPendingMessageDeliverySchema, Vt as serviceAccountParamsSchema, W as AutomationRunList, Wi as CodeRepositoryReport, Wn as markConversationUnreadBodySchema, Wr as conversationUnchangedDetailWithMailboxSchema, Wt as NotificationSettings, X as ListedAutomationVersion, Xi as codePersonReportSchema, Xn as PinConversationResponse, Xr as CONVERSATION_VERSION_HEADER, Xt as notificationScheduleSchema, Y as AutomationVersionList, Yi as codeOverviewReportSchema, Yn as PinConversationBody, Yr as CONVERSATION_DETAIL_VERSION_HEADER, Yt as isWithinNotificationSchedule, Z as automationEditErrorSchema, Zi as codeRepositoryParamsSchema, Zn as ReorderPinnedConversationsBody, Zr as ConversationActivityPreview, Zt as connectionListSchema, _ as PluginPackageContentReport, _a as InputImage, _i as ConversationUsage, _n as ActorProfileReport, _r as ConversationMetricDay, _t as automationVersionSchema, a as ReviewItemPayload, aa as messageCardText, ai as ConversationFeedItem, an as LocationActorSummaryReport, ar as conversationCatchUpBodySchema, at as automationListSchema, b as SkillReport, ba as MessageAttachment, bi as acceptedConversationMessageSchema, bn as ActorWindowMetrics, br as GuardianMetricDay, bt as BaselineSnapshotReport, c as reviewItemListSchema, ca as USER_INPUT_NOTE, ci as ConversationReportEvent, cn as LocationParams, cr as ConversationReadReport, ct as automationRunSchema, d as ReviewItemChangeRecord, da as UserInputRequest, di as ConversationReportStatus, dn as locationDetailReportSchema, dr as ContinueConversationInSlackBody, dt as automationSchedulePreviewSchema, ea as ConversationChildAgentTotals, ei as ConversationCost, en as disconnectConnectionResponseSchema, er as pinConversationResponseSchema, et as automationExecutionListSchema, f as HealthReport, fa as buttonUserInputField, fi as ConversationSourceTask, fn as locationDirectoryReportSchema, fr as ContinueConversationInSlackResponse, ft as automationSummarySchema, g as PluginPackageContentItemReport, ga as isAgentInvocationResultEventType, gi as ConversationTurnFailureReason, gn as ActorDirectoryWindows, gr as stopConversationTurnResponseSchema, gt as automationVersionParamsSchema, h as PluginOperationalReportFeed, ha as webMessageId, hi as ConversationTurnFailureCode, hn as ActorDirectoryReport, hr as StopConversationTurnResponse, ht as automationVersionListSchema, i as ReviewItemActionBody, ia as MessageCard, ii as ConversationFeed, in as LocationActivityDayReport, ir as ConversationCatchUpBody, it as automationListQuerySchema, j as skillReportsSchema, ji as conversationReportEventDataSchema, jn as conversationWatchesReportSchema, jr as CancelConversationPendingMessagesResponse, jt as userCustomizationSchema, k as runtimeInfoReportSchema, ki as conversationFeedSchema, kn as ConversationWatchesReport, kr as conversationAutoArchiveSchema, kt as workspaceSchema, l as reviewItemSchema, la as UserInputAnswer, li as ConversationReportEventData, ln as LocationSummaryReport, lr as conversationReadPositionSchema, lt as automationRunWindowsSchema, m as PluginOperationalReport, ma as normalizeUserInputAnswer, mi as ConversationSurface, mn as ActorActivityDayReport, mr as continueConversationInSlackResponseSchema, mt as automationVersionActivateSchema, n as Versions, na as DailyConversationActivity, ni as ConversationEventHistory, nn as ApiError, nr as reorderPinnedConversationsResponseSchema, nt as automationExecutionStatusDaySchema, o as reviewItemActionSchema, oa as resolveMessageCards, oi as ConversationModelUsage, on as LocationDetailReport, or as conversationCatchUpSchema, ot as automationParamsSchema, p as Plugin, pa as isEmptyUserInputAnswer, pi as ConversationSummaryReport, pn as locationParamsSchema, pr as continueConversationInSlackBodySchema, pt as automationUpdateSchema, q as AutomationSummary, qi as codeChangeSummaryReportSchema, qn as conversationSubscriptionBodySchema, qr as AcceptedConversationMessage, qt as DEFAULT_NOTIFICATION_SCHEDULE, r as versionsSchema, ra as dailyConversationActivitySchema, ri as ConversationEventPage, rn as apiErrorSchema, rr as ConversationCatchUp, rt as automationExecutionStatusSchema, s as reviewItemCountSchema, sa as AutomationCard, si as ConversationParams, sn as LocationDirectoryReport, sr as ConversationReadPosition, st as automationRunListSchema, t as OwnedObjectAnnotation, ta as conversationChildAgentTotalsSchema, ti as ConversationDetailReport, tn as startConnectionResponseSchema, tr as reorderPinnedConversationsBodySchema, tt as automationExecutionSchema, u as reviewItemWaitingConversationsSchema, ua as UserInputField, ui as ConversationReportMessageEvent, un as locationActivityDayReportSchema, ur as conversationReadReportSchema, ut as automationScheduleIntentSchema, v as Plugins, va as MAX_INPUT_IMAGES, vi as CreateConversationBody, vn as ActorSummaryReport, vr as ConversationStatsItem, vt as eventAutomationSummarySchema, w as pluginOperationalReportSchema, wi as conversationDetailReportSchema, wn as actorDirectoryReportSchema, wr as ArchiveConversationResponse, wt as deleteWorkspaceResponseSchema, x as SkillReports, xa as INLINE_VIDEO_TYPES, xi as conversationActivityPreviewSchema, xn as PeopleActivityDayReport, xr as GuardianStats, xt as WorkspaceListReport, y as RuntimeInfoReport, ya as MAX_INPUT_IMAGE_BYTES, yi as CreateConversationMessageBody, yn as ActorTotalsReport, yr as ConversationStatsReport, yt as scheduledAutomationSummarySchema, z as AutomationExecutionList, zi as conversationTurnFailureReasonSchema, zn as renameConversationBodySchema, zr as conversationDetailWithMailboxReportSchema, zt as disconnectServiceAccountResponseSchema } from "../schema-C6fsEwjo.js";
|
|
2
|
+
export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionDay, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReadReport, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSubscriptionBody, type ConversationSubscriptionResponse, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUnread, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type CreateConversationBody, type CreateConversationMessageBody, DEFAULT_NOTIFICATION_SCHEDULE, type DailyConversationActivity, type GuardianMetricDay, type GuardianStats, type HealthReport, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, type InputImage, type ListedAutomationVersion, type LocationActivityDayReport, type LocationActorSummaryReport, type LocationDetailReport, type LocationDirectoryReport, type LocationParams, type LocationSummaryReport, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, type MarkConversationUnreadBody, type MessageAttachment, type MessageCard, type NotificationSchedule, type NotificationSettings, type OwnedObjectAnnotation, type PeopleActivityDayReport, type PersonParams, type PersonalSpendReport, type PersonalTokenMetadata, type PinConversationBody, type PinConversationResponse, type Plugin, type PluginOperationalReport, type PluginOperationalReportFeed, type PluginPackageContentItemReport, type PluginPackageContentReport, type Plugins, type RenameConversationBody, type RenameConversationResponse, type ReorderPinnedConversationsBody, type ReorderPinnedConversationsResponse, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type Versions, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReadReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationUnreadSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, markConversationUnreadBodySchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api/schema.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-
|
|
1
|
+
import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-Cz1ZiV1U.js";
|
|
2
2
|
import { n as isWithinNotificationSchedule, r as notificationScheduleSchema, t as DEFAULT_NOTIFICATION_SCHEDULE } from "../schedule-BTp__wrw.js";
|
|
3
|
-
import { C as createConversationBodySchema, D as conversationChildAgentTotalsSchema, E as forkConversationResponseSchema, I as resolveMessageCards, L as MAX_INPUT_IMAGES, N as messageCardText, O as conversationReadPositionSchema, R as MAX_INPUT_IMAGE_BYTES, T as forkConversationBodySchema, _ as conversationReportEventSchema, a as conversationActivityPreviewSchema, b as conversationSummaryReportSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, g as conversationReportEventDataSchema, h as conversationParamsSchema, k as conversationReadReportSchema, l as conversationDetailReportSchema, m as conversationFeedSchema, n as CONVERSATION_VERSION_HEADER, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, s as conversationAuxiliaryCostsSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventHistorySchema, w as createConversationMessageBodySchema } from "../conversation-
|
|
4
|
-
import {
|
|
5
|
-
import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-
|
|
6
|
-
import { _ as
|
|
3
|
+
import { C as createConversationBodySchema, D as conversationChildAgentTotalsSchema, E as forkConversationResponseSchema, I as resolveMessageCards, L as MAX_INPUT_IMAGES, N as messageCardText, O as conversationReadPositionSchema, R as MAX_INPUT_IMAGE_BYTES, T as forkConversationBodySchema, _ as conversationReportEventSchema, a as conversationActivityPreviewSchema, b as conversationSummaryReportSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, g as conversationReportEventDataSchema, h as conversationParamsSchema, k as conversationReadReportSchema, l as conversationDetailReportSchema, m as conversationFeedSchema, n as CONVERSATION_VERSION_HEADER, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, s as conversationAuxiliaryCostsSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationEventHistorySchema, w as createConversationMessageBodySchema } from "../conversation-E7ZPJx2H.js";
|
|
4
|
+
import { E as userCustomizationSchema, T as USER_CUSTOMIZATION_MAX_CHARS, _ as buttonUserInputField, b as normalizeUserInputAnswer, g as USER_INPUT_NOTE, m as apiErrorSchema, p as webMessageId, y as isEmptyUserInputAnswer } from "../reporting-window-B3Ze-Qnt.js";
|
|
5
|
+
import { C as eventAutomationSummarySchema, S as automationVersionSchema, _ as automationSummarySchema, a as automationExecutionSchema, b as automationVersionListSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, m as automationRunWindowsSchema, n as automationEditSchema, o as automationExecutionStatusDaySchema, p as automationRunSchema, r as automationEventCatalogSchema, s as automationExecutionStatusSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, w as scheduledAutomationSummarySchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "../automation-DksGNDRO.js";
|
|
6
|
+
import { _ as pluginsSchema, a as conversationPendingMessageDeliverySchema, b as skillReportsSchema, c as conversationUnchangedDetailWithMailboxSchema, d as healthReportSchema, f as pluginOperationalReportFeedSchema, g as pluginSchema, h as pluginPackageContentReportSchema, i as conversationPendingAuthorizationSchema, l as steerConversationPendingMessagesBodySchema, m as pluginPackageContentItemReportSchema, n as cancelConversationPendingMessagesResponseSchema, o as conversationPendingMessageSchema, p as pluginOperationalReportSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as runtimeInfoReportSchema, y as skillReportSchema } from "../conversation-pending-messages-DVch6YQw.js";
|
|
7
7
|
import { n as isAgentInvocationResultEventType } from "../result-event-type-DD6BAgT7.js";
|
|
8
|
-
import { $ as codeChangeSummaryReportSchema, A as actorDirectoryReportSchema, C as startServiceAccountSignInResponseSchema, Ct as
|
|
9
|
-
export { CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReadReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationUnreadSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, markConversationUnreadBodySchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
|
8
|
+
import { $ as codeChangeSummaryReportSchema, A as actorDirectoryReportSchema, At as conversationCatchUpSchema, C as startServiceAccountSignInResponseSchema, Ct as conversationSubscriptionBodySchema, D as personalTokenMetadataSchema, Dt as reorderPinnedConversationsBodySchema, E as personalTokenListSchema, Et as pinConversationResponseSchema, F as locationActivityDayReportSchema, H as dailyConversationActivitySchema, I as locationDetailReportSchema, J as connectionParamsSchema, K as testNotificationResponseSchema, L as locationDirectoryReportSchema, N as personParamsSchema, O as personalTokenParamsSchema, Ot as reorderPinnedConversationsResponseSchema, P as personalSpendReportSchema, Q as codeActivityDaySchema, R as locationParamsSchema, S as serviceAccountSchema, St as markConversationUnreadBodySchema, T as createdPersonalTokenSchema, Tt as pinConversationBodySchema, U as notificationSettingsSchema, X as disconnectConnectionResponseSchema, Y as connectionSchema, Z as startConnectionResponseSchema, _ as reviewItemSchema, _t as archiveConversationBodySchema, a as baselineSnapshotSchema, at as codeRepositorySummarySchema, b as serviceAccountListSchema, bt as conversationAutoArchiveSchema, c as workspaceListSchema, ct as conversationChildAgentSchema, d as workspaceSchema, dt as continueConversationInSlackResponseSchema, et as codeChangeSummarySchema, f as reviewItemActionSchema, ft as stopConversationTurnResponseSchema, gt as renameConversationResponseSchema, h as reviewItemListSchema, ht as renameConversationBodySchema, i as statsReportSchema, it as codeRepositoryReportSchema, j as actorProfileReportSchema, k as revokePersonalTokenResponseSchema, kt as conversationCatchUpBodySchema, l as workspaceParamsSchema, lt as conversationChildAgentsReportSchema, mt as CONVERSATION_TITLE_MAX_LENGTH, n as versionsSchema, nt as codePersonReportSchema, o as deleteWorkspaceResponseSchema, ot as conversationWatchSchema, p as reviewItemCountSchema, pt as conversationStatsReportSchema, q as connectionListSchema, r as statSchema, rt as codeRepositoryParamsSchema, s as workspaceBodySchema, st as conversationWatchesReportSchema, tt as codeOverviewReportSchema, u as workspaceRepoSchema, ut as continueConversationInSlackBodySchema, v as reviewItemWaitingConversationsSchema, vt as archiveConversationResponseSchema, w as createPersonalTokenBodySchema, wt as conversationSubscriptionResponseSchema, x as serviceAccountParamsSchema, xt as conversationUnreadSchema, y as disconnectServiceAccountResponseSchema, yt as archiveDoneConversationsResponseSchema } from "../schema-BWE3RJEB.js";
|
|
9
|
+
export { CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReadReportSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationUnreadSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, markConversationUnreadBodySchema, messageCardText, normalizeUserInputAnswer, notificationScheduleSchema, notificationSettingsSchema, personParamsSchema, personalSpendReportSchema, personalTokenListSchema, personalTokenMetadataSchema, personalTokenParamsSchema, pinConversationBodySchema, pinConversationResponseSchema, pluginOperationalReportFeedSchema, pluginOperationalReportSchema, pluginPackageContentItemReportSchema, pluginPackageContentReportSchema, pluginSchema, pluginsSchema, renameConversationBodySchema, renameConversationResponseSchema, reorderPinnedConversationsBodySchema, reorderPinnedConversationsResponseSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { $a as createPluginLogger, Ai as hash, Ci as updateWorkspace, Fo as createPluginCache, In as isExperimentalFeatureEnabled, La as workspaceRepoCheckoutPath, Nr as reviewItemReaderForUser, Or as isOnlyAssignee, Pa as SANDBOX_RUNTIME, Rn as createUserTokenStore, Si as listWorkspacesByRepository, Tr as canActOnReviewItem, Zn as getPlugins, _i as createWorkspace, ar as resolveNotificationTimezone, br as reviewItemsNeedingUserVersionQuery, cr as readNotificationSchedule, di as getDashboardSettingsLink, do as readConversationBriefThrough, ir as sendPushNotificationToUser, ki as create, lr as saveNotificationSchedule, no as readConversationAccessFromSql, or as deletePushSubscription, po as readConversationEventPage, pr as countReviewItemsNeedingUser, rr as readWebPushConfig, sr as listPushSubscriptions, to as createConversationAccessReader, ur as savePushSubscription, vi as deleteWorkspace, wi as WorkspaceValidationError, xi as listWorkspaces, xr as searchReviewItems, yi as getWorkspace, yr as listWaitingConversations } from "./projection-CL_YWeGf.js";
|
|
2
|
+
import { H as getAttachmentStorage, M as escapeXml, n as botConfig } from "./config-CkHcUMN7.js";
|
|
3
|
+
import { m as logInfo, p as logException } from "./logging-BO5zU6Mt.js";
|
|
4
|
+
import { a as getConversationStore, b as withConversationMutationLock, o as getDb, s as getSqlExecutor, x as conversationKindFromRow, z as nextDetailVersion } from "./db-DJ11eZqq.js";
|
|
5
|
+
import { A as juniorConversations, D as juniorCodeChanges, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorIdentities, w as juniorConversationEvents } from "./executor-BY9TB31g.js";
|
|
6
|
+
import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-Cz1ZiV1U.js";
|
|
7
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BCIuBe4d.js";
|
|
8
|
+
import { $ as readViewerAutomationSummary, Et as throwApiError, G as changeViewerAutomationLifecycle, J as updateViewerAutomation, K as deleteViewerTask, Q as readViewerAutomationRuns, S as createSlackReviewItemShow, Tt as jsonResponse, W as activateViewerAutomationVersion, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, _t as readLiveAttachment, et as readViewerAutomationVersions, it as listOwnedWatches, m as readStats, mt as webActorFromUser, nt as AutomationEditError, q as readViewerAutomationEdit, qt as listChildAgents, tt as readViewerAutomations, v as setConversationSubscription, wt as emptyResponse, xt as archiveConversation } from "./agent-runner-Bfnw551N.js";
|
|
9
|
+
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-BHOEQSmf.js";
|
|
10
|
+
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail } from "./viewer-DrMmFUul.js";
|
|
11
|
+
import { r as getStateAdapter } from "./adapter-CL-HUKgd.js";
|
|
11
12
|
import { r as notificationScheduleSchema } from "./schedule-BTp__wrw.js";
|
|
12
|
-
import { C as createConversationBodySchema, E as forkConversationResponseSchema, O as conversationReadPositionSchema, T as forkConversationBodySchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, h as conversationParamsSchema, k as conversationReadReportSchema, l as conversationDetailReportSchema, m as conversationFeedSchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, w as createConversationMessageBodySchema } from "./conversation-
|
|
13
|
-
import {
|
|
14
|
-
import { $ as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { c as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { A as actorDirectoryReportSchema, B as activityHours$1, C as startServiceAccountSignInResponseSchema, Ct as pinConversationBodySchema, Dt as conversationCatchUpBodySchema, E as personalTokenListSchema, Et as reorderPinnedConversationsResponseSchema, G as pushSubscriptionDeleteBodySchema, I as locationDetailReportSchema, J as connectionParamsSchema, K as testNotificationResponseSchema, L as locationDirectoryReportSchema, M as avatarParamsSchema, N as personParamsSchema, O as personalTokenParamsSchema, Ot as conversationCatchUpSchema, P as personalSpendReportSchema, R as locationParamsSchema, St as markConversationUnreadBodySchema, T as createdPersonalTokenSchema, Tt as reorderPinnedConversationsBodySchema, U as notificationSettingsSchema, V as activitySixHours$1, W as pushSubscriptionBodySchema, X as disconnectConnectionResponseSchema, Z as startConnectionResponseSchema, _ as reviewItemSchema, _t as archiveConversationBodySchema, b as serviceAccountListSchema, bt as conversationAutoArchiveSchema, c as workspaceListSchema, d as workspaceSchema, dt as continueConversationInSlackResponseSchema, f as reviewItemActionSchema, ft as stopConversationTurnResponseSchema, g as reviewItemParamsSchema, gt as renameConversationResponseSchema, h as reviewItemListSchema, ht as renameConversationBodySchema, i as statsReportSchema, it as codeRepositoryReportSchema, j as actorProfileReportSchema, k as revokePersonalTokenResponseSchema, l as workspaceParamsSchema, lt as conversationChildAgentsReportSchema, m as reviewItemListQuerySchema, n as versionsSchema, nt as codePersonReportSchema, o as deleteWorkspaceResponseSchema, p as reviewItemCountSchema, pt as conversationStatsReportSchema, q as connectionListSchema, rt as codeRepositoryParamsSchema, s as workspaceBodySchema, st as conversationWatchesReportSchema, t as versionsQuerySchema, tt as codeOverviewReportSchema, ut as continueConversationInSlackBodySchema, v as reviewItemWaitingConversationsSchema, vt as archiveConversationResponseSchema, w as createPersonalTokenBodySchema, wt as pinConversationResponseSchema, x as serviceAccountParamsSchema, xt as conversationUnreadSchema, y as disconnectServiceAccountResponseSchema, yt as archiveDoneConversationsResponseSchema, z as activityDays$1 } from "./schema-BasXTvi2.js";
|
|
13
|
+
import { C as createConversationBodySchema, E as forkConversationResponseSchema, O as conversationReadPositionSchema, T as forkConversationBodySchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, h as conversationParamsSchema, k as conversationReadReportSchema, l as conversationDetailReportSchema, m as conversationFeedSchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, w as createConversationMessageBodySchema } from "./conversation-E7ZPJx2H.js";
|
|
14
|
+
import { O as getEventCatalog, et as readUserCustomization, tt as saveUserCustomization } from "./session-stop-B2Nut40V.js";
|
|
15
|
+
import { E as userCustomizationSchema, 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-B3Ze-Qnt.js";
|
|
16
|
+
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-Bt6GgAiA.js";
|
|
17
|
+
import { _ as getVercelConversationWorkQueue } from "./background-compaction-queue-CYI909P5.js";
|
|
18
|
+
import { J as AutomationConflictError, St as automationEventCatalog, dt as conversationRangeColumns, ft as conversationUsageCostExpr, lt as conversationActiveDaysColumn, st as readAutomationTitlesByConversationId, ut as conversationAggregateColumns } from "./task-runner-D_RDr2Hu.js";
|
|
19
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DiQQuuw7.js";
|
|
20
|
+
import { N as ScheduleIntentError, P as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-DksGNDRO.js";
|
|
21
|
+
import { _ as pluginsSchema, b as skillReportsSchema, c as conversationUnchangedDetailWithMailboxSchema, d as healthReportSchema, f as pluginOperationalReportFeedSchema, l as steerConversationPendingMessagesBodySchema, n as cancelConversationPendingMessagesResponseSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as runtimeInfoReportSchema } from "./conversation-pending-messages-DVch6YQw.js";
|
|
22
|
+
import { $ as readReviewItemForUser, C as createConversationForViewer, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, M as getProductionSlackAdapter, O as requireConversationPendingMessages, S as appendConversationMessageForViewer, X as ReviewItemActionError, Z as actOnReviewItem, _ as keepQuickQuestionForViewer, a as pinConversation, at as setConversationAutoArchive, c as continueConversationInSlackForViewer, d as readConversationTreeMetricsFromSql, f as conversationVersionQuery, g as forkConversationForViewer, h as reportConversationRead, i as readConversationFeed, k as resolveMentions, l as readConversationAuxiliaryCostsFromSql, m as markConversationUnread, n as steerConversationPendingMessagesForViewer, nt as archiveViewerDoneConversations, o as reorderPinnedConversations, ot as updateUserAutoArchiveSettings, p as readConversationDetailEtag, r as conversationFeedVersionQuery, rt as readUserAutoArchiveSettings, s as readConversationDetail, t as stopConversationTurnForViewer, tt as DEFAULT_AUTO_ARCHIVE_SETTINGS, u as childAgentTotalsReport, ut as readHealthReport, v as readConversationEvents, x as readFirstHumanMessageTexts, y as conversationSummaryFromStoredConversation } from "./stop-kujZLbi0.js";
|
|
23
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-BnIj0wtx.js";
|
|
24
|
+
import { A as actorDirectoryReportSchema, At as conversationCatchUpSchema, B as activityHours$1, C as startServiceAccountSignInResponseSchema, Ct as conversationSubscriptionBodySchema, Dt as reorderPinnedConversationsBodySchema, E as personalTokenListSchema, Et as pinConversationResponseSchema, G as pushSubscriptionDeleteBodySchema, I as locationDetailReportSchema, J as connectionParamsSchema, K as testNotificationResponseSchema, L as locationDirectoryReportSchema, M as avatarParamsSchema, N as personParamsSchema, O as personalTokenParamsSchema, Ot as reorderPinnedConversationsResponseSchema, P as personalSpendReportSchema, R as locationParamsSchema, St as markConversationUnreadBodySchema, T as createdPersonalTokenSchema, Tt as pinConversationBodySchema, U as notificationSettingsSchema, V as activitySixHours$1, W as pushSubscriptionBodySchema, X as disconnectConnectionResponseSchema, Z as startConnectionResponseSchema, _ as reviewItemSchema, _t as archiveConversationBodySchema, b as serviceAccountListSchema, bt as conversationAutoArchiveSchema, c as workspaceListSchema, d as workspaceSchema, dt as continueConversationInSlackResponseSchema, f as reviewItemActionSchema, ft as stopConversationTurnResponseSchema, g as reviewItemParamsSchema, gt as renameConversationResponseSchema, h as reviewItemListSchema, ht as renameConversationBodySchema, i as statsReportSchema, it as codeRepositoryReportSchema, j as actorProfileReportSchema, k as revokePersonalTokenResponseSchema, kt as conversationCatchUpBodySchema, l as workspaceParamsSchema, lt as conversationChildAgentsReportSchema, m as reviewItemListQuerySchema, n as versionsSchema, nt as codePersonReportSchema, o as deleteWorkspaceResponseSchema, p as reviewItemCountSchema, pt as conversationStatsReportSchema, q as connectionListSchema, rt as codeRepositoryParamsSchema, s as workspaceBodySchema, st as conversationWatchesReportSchema, t as versionsQuerySchema, tt as codeOverviewReportSchema, ut as continueConversationInSlackBodySchema, v as reviewItemWaitingConversationsSchema, vt as archiveConversationResponseSchema, w as createPersonalTokenBodySchema, wt as conversationSubscriptionResponseSchema, x as serviceAccountParamsSchema, xt as conversationUnreadSchema, y as disconnectServiceAccountResponseSchema, yt as archiveDoneConversationsResponseSchema, z as activityDays$1 } from "./schema-BWE3RJEB.js";
|
|
25
25
|
import { Hono } from "hono";
|
|
26
26
|
import path from "node:path";
|
|
27
27
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
28
28
|
import * as z from "zod";
|
|
29
|
-
import { and, asc, desc, eq, gt, gte,
|
|
29
|
+
import { and, asc, desc, eq, gt, gte, isNull, lte, notExists, or, sql } from "drizzle-orm";
|
|
30
30
|
import { pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema } from "@sentry/junior-plugin-api";
|
|
31
31
|
import { alias } from "drizzle-orm/pg-core";
|
|
32
32
|
import { readFileSync } from "node:fs";
|
|
@@ -131,7 +131,8 @@ async function generateCatchUp(args) {
|
|
|
131
131
|
modelId: args.modelId
|
|
132
132
|
},
|
|
133
133
|
modelId: args.modelId,
|
|
134
|
-
|
|
134
|
+
operation: "conversation_catch_up",
|
|
135
|
+
cost: args.cost,
|
|
135
136
|
system: CATCH_UP_PROMPT,
|
|
136
137
|
temperature: 0
|
|
137
138
|
})).text);
|
|
@@ -183,6 +184,7 @@ async function catchUpOnConversation(viewer, conversationId, range) {
|
|
|
183
184
|
...brief ? { brief: brief.content } : void 0,
|
|
184
185
|
completeText,
|
|
185
186
|
conversationId,
|
|
187
|
+
cost: { conversationId },
|
|
186
188
|
entries,
|
|
187
189
|
modelId: botConfig.fastModelId,
|
|
188
190
|
omittedEarlierRows,
|
|
@@ -224,20 +226,6 @@ async function renameConversation(viewer, conversationId, body) {
|
|
|
224
226
|
return { title };
|
|
225
227
|
}
|
|
226
228
|
// src/api/conversations/child-agents.ts
|
|
227
|
-
/** Read the kind and archive of each child Conversation. */
|
|
228
|
-
async function readChildKinds(db, childIds) {
|
|
229
|
-
if (childIds.length === 0) return /* @__PURE__ */ new Map();
|
|
230
|
-
const rows = await db.select({
|
|
231
|
-
conversationId: juniorConversations.conversationId,
|
|
232
|
-
kind: juniorConversations.kind,
|
|
233
|
-
parentConversationId: juniorConversations.parentConversationId,
|
|
234
|
-
childArchivedAt: juniorConversations.childArchivedAt
|
|
235
|
-
}).from(juniorConversations).where(inArray(juniorConversations.conversationId, [...childIds]));
|
|
236
|
-
return new Map(rows.map((row) => [row.conversationId, {
|
|
237
|
-
kind: conversationKindFromRow(row) === "thread" ? "thread" : "task",
|
|
238
|
-
childArchivedAt: row.childArchivedAt?.toISOString() ?? null
|
|
239
|
-
}]));
|
|
240
|
-
}
|
|
241
229
|
/**
|
|
242
230
|
* Load the direct child agents of one Conversation, or throw a standard API
|
|
243
231
|
* not-found error. Viewers who cannot see private content get only the status,
|
|
@@ -250,11 +238,7 @@ async function requireConversationChildAgents(conversationId, options = {}) {
|
|
|
250
238
|
const [accessByConversation, children] = await Promise.all([readConversationAccessFromSql(db, [conversationId], options.viewer), listChildAgents(conversationId)]);
|
|
251
239
|
const canExposePayload = accessByConversation.get(conversationId)?.canViewPrivateContent ?? false;
|
|
252
240
|
const childIds = children.map((agent) => agent.childConversationId);
|
|
253
|
-
const [metricsByChild, auxiliaryCostsByChild
|
|
254
|
-
readConversationTreeMetricsFromSql(db, childIds),
|
|
255
|
-
readConversationAuxiliaryCostsFromSql(db, childIds),
|
|
256
|
-
readChildKinds(db, childIds)
|
|
257
|
-
]);
|
|
241
|
+
const [metricsByChild, auxiliaryCostsByChild] = await Promise.all([readConversationTreeMetricsFromSql(db, childIds), readConversationAuxiliaryCostsFromSql(db, childIds)]);
|
|
258
242
|
const agents = children.map((agent) => {
|
|
259
243
|
const metrics = metricsByChild.get(agent.childConversationId);
|
|
260
244
|
const auxiliaryCosts = auxiliaryCostsByChild.get(agent.childConversationId);
|
|
@@ -265,10 +249,8 @@ async function requireConversationChildAgents(conversationId, options = {}) {
|
|
|
265
249
|
...metrics?.usage ? { cumulativeUsage: metrics.usage } : void 0,
|
|
266
250
|
...auxiliaryCosts ? { auxiliaryCosts: auxiliaryCosts.total } : void 0,
|
|
267
251
|
...childAgentTotals ? { childAgentTotals } : void 0,
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
childArchivedAt: null
|
|
271
|
-
},
|
|
252
|
+
archivedAt: agent.archivedAtMs !== void 0 ? new Date(agent.archivedAtMs).toISOString() : null,
|
|
253
|
+
kind: agent.kind,
|
|
272
254
|
status: agent.status,
|
|
273
255
|
updatedAt: new Date(agent.updatedAtMs).toISOString(),
|
|
274
256
|
...canExposePayload ? {
|
|
@@ -810,6 +792,7 @@ function createConversationRoutes(options) {
|
|
|
810
792
|
return jsonResponse(archiveConversationResponseSchema, await archiveConversation(viewer, conversationId, body));
|
|
811
793
|
});
|
|
812
794
|
app.patch("/:conversationId/pin", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", pinConversationBodySchema, "Invalid request body."), async (context) => jsonResponse(pinConversationResponseSchema, await pinConversation(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
795
|
+
app.patch("/:conversationId/subscription", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationSubscriptionBodySchema, "Invalid request body."), async (context) => jsonResponse(conversationSubscriptionResponseSchema, await setConversationSubscription(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
813
796
|
app.patch("/:conversationId/unread", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", markConversationUnreadBodySchema, "Invalid request body."), async (context) => jsonResponse(conversationUnreadSchema, await markConversationUnread(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
814
797
|
app.patch("/:conversationId/title", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", renameConversationBodySchema, "Invalid request body."), async (context) => jsonResponse(renameConversationResponseSchema, await renameConversation(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
815
798
|
app.put("/:conversationId/read-position", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationReadPositionSchema, "Invalid request body."), async (context) => {
|
|
@@ -1539,7 +1522,7 @@ function summaryFromRow(row, options = {}) {
|
|
|
1539
1522
|
...actor ? { actor } : void 0,
|
|
1540
1523
|
...row.channelName ? { channelName: row.channelName } : void 0,
|
|
1541
1524
|
...row.parentConversationId ? { parentConversationId: row.parentConversationId } : void 0,
|
|
1542
|
-
...row.
|
|
1525
|
+
...row.archivedAt ? { archivedAtMs: row.archivedAt.getTime() } : void 0,
|
|
1543
1526
|
...row.source ? { source: row.source } : void 0,
|
|
1544
1527
|
...row.stoppedAt ? { stoppedAtMs: row.stoppedAt.getTime() } : void 0,
|
|
1545
1528
|
...row.title ? { title: row.title } : void 0
|
|
@@ -1761,7 +1744,7 @@ async function recentLocationRows(db, locationId) {
|
|
|
1761
1744
|
fullName: juniorUsers.displayName,
|
|
1762
1745
|
kind: juniorConversations.kind,
|
|
1763
1746
|
parentConversationId: juniorConversations.parentConversationId,
|
|
1764
|
-
|
|
1747
|
+
archivedAt: juniorConversations.archivedAt,
|
|
1765
1748
|
handle: juniorIdentities.handle,
|
|
1766
1749
|
lastActivityAt: juniorConversations.lastActivityAt,
|
|
1767
1750
|
providerSubjectId: sql`CASE
|
|
@@ -2040,7 +2023,7 @@ async function recentActorRows(email) {
|
|
|
2040
2023
|
fullName: juniorUsers.displayName,
|
|
2041
2024
|
kind: juniorConversations.kind,
|
|
2042
2025
|
parentConversationId: juniorConversations.parentConversationId,
|
|
2043
|
-
|
|
2026
|
+
archivedAt: juniorConversations.archivedAt,
|
|
2044
2027
|
handle: sql`CASE WHEN ${juniorIdentities.provider} = 'slack' THEN ${juniorIdentities.handle} END`,
|
|
2045
2028
|
lastActivityAt: juniorConversations.lastActivityAt,
|
|
2046
2029
|
providerSubjectId: sql`CASE WHEN ${juniorIdentities.provider} = 'slack' THEN ${juniorIdentities.providerSubjectId} END`,
|
|
@@ -2272,7 +2255,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2272
2255
|
reports: [],
|
|
2273
2256
|
source: "plugins"
|
|
2274
2257
|
});
|
|
2275
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2258
|
+
const { getPluginProfileReports } = await import("./projection-CL_YWeGf.js").then((n) => n.Un);
|
|
2276
2259
|
return pluginOperationalReportFeedSchema.parse({
|
|
2277
2260
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2278
2261
|
reports: await getPluginProfileReports({
|
|
@@ -2481,36 +2464,48 @@ function spendWindow(nowMs) {
|
|
|
2481
2464
|
thirtyDayStart
|
|
2482
2465
|
};
|
|
2483
2466
|
}
|
|
2484
|
-
/**
|
|
2485
|
-
|
|
2486
|
-
*
|
|
2487
|
-
* Writes that record Conversation metrics also move `updated_at` forward, so
|
|
2488
|
-
* the marker changes when spend can change. The window start is part of the
|
|
2489
|
-
* marker, so it also changes when the window moves at UTC midnight.
|
|
2490
|
-
*/
|
|
2491
|
-
function personalSpendVersionQuery(db, email, nowMs) {
|
|
2467
|
+
/** Match the viewer's own Conversations with activity in the spend window. */
|
|
2468
|
+
function viewerWindowWhere(email, nowMs) {
|
|
2492
2469
|
const normalizedEmail = normalizeEmail$1(email);
|
|
2493
2470
|
const { end, thirtyDayStart } = spendWindow(nowMs);
|
|
2494
|
-
return
|
|
2495
|
-
}
|
|
2496
|
-
/** Read the change marker of one viewer's spend window. */
|
|
2497
|
-
async function readPersonalSpendVersion(email, nowMs = Date.now()) {
|
|
2498
|
-
const [row] = await personalSpendVersionQuery(getDb(), email, nowMs);
|
|
2499
|
-
return row?.version ?? "";
|
|
2471
|
+
return normalizedEmail ? and(verifiedActorWhere(normalizedEmail), gte(juniorConversations.lastActivityAt, thirtyDayStart), lte(juniorConversations.lastActivityAt, end)) : sql`false`;
|
|
2500
2472
|
}
|
|
2501
|
-
/**
|
|
2502
|
-
|
|
2503
|
-
const normalizedEmail = normalizeEmail$1(email);
|
|
2504
|
-
const { end, sevenDayStart, thirtyDayStart } = spendWindow(nowMs);
|
|
2473
|
+
/** Return a query for one viewer's model spend for each UTC day in the window. */
|
|
2474
|
+
function personalSpendDaysQuery(db, email, nowMs) {
|
|
2505
2475
|
const activityDate = sql`TO_CHAR(
|
|
2506
2476
|
${juniorConversations.lastActivityAt} AT TIME ZONE 'UTC',
|
|
2507
2477
|
'YYYY-MM-DD'
|
|
2508
2478
|
)`;
|
|
2509
|
-
|
|
2510
|
-
const rows = normalizedEmail ? await getDb().select({
|
|
2479
|
+
return db.select({
|
|
2511
2480
|
costUsd: peopleTreeAggregateColumns.costUsd,
|
|
2512
2481
|
date: activityDate
|
|
2513
|
-
}).from(juniorConversations).innerJoin(juniorIdentities, eq(juniorIdentities.id, juniorConversations.actorIdentityId)).innerJoin(juniorUsers, eq(juniorUsers.id, juniorIdentities.userId)).leftJoin(peopleTreeConversation,
|
|
2482
|
+
}).from(juniorConversations).innerJoin(juniorIdentities, eq(juniorIdentities.id, juniorConversations.actorIdentityId)).innerJoin(juniorUsers, eq(juniorUsers.id, juniorIdentities.userId)).leftJoin(peopleTreeConversation, peopleTreeMetricsJoin()).where(viewerWindowWhere(email, nowMs)).groupBy(activityDate);
|
|
2483
|
+
}
|
|
2484
|
+
/**
|
|
2485
|
+
* Return a query for a change marker of one viewer's spend window.
|
|
2486
|
+
*
|
|
2487
|
+
* It reads only the viewer's own rows, without the tree join of the spend
|
|
2488
|
+
* read, so it costs about as much as a count. It sums each row's own cost
|
|
2489
|
+
* and the UTC day of its last activity, so a recorded cost, or a
|
|
2490
|
+
* Conversation that moves to a new day, moves it. Other writes do not. A
|
|
2491
|
+
* Task that another person's Turn started under the viewer's root is not
|
|
2492
|
+
* the viewer's row, so its cost shows on the next spend read: a page load,
|
|
2493
|
+
* a tab focus, or the viewer's next own cost. The window start moves it at
|
|
2494
|
+
* UTC midnight.
|
|
2495
|
+
*/
|
|
2496
|
+
function personalSpendVersionQuery(db, email, nowMs) {
|
|
2497
|
+
const { thirtyDayStart } = spendWindow(nowMs);
|
|
2498
|
+
return db.select({ version: sql`concat_ws(':',
|
|
2499
|
+
${thirtyDayStart.toISOString().slice(0, 10)}::text,
|
|
2500
|
+
count(*),
|
|
2501
|
+
sum(${conversationUsageCostExpr(juniorConversations.usage)}),
|
|
2502
|
+
sum(extract(epoch from date_trunc('day', ${juniorConversations.lastActivityAt} at time zone 'UTC')))
|
|
2503
|
+
)` }).from(juniorConversations).innerJoin(juniorIdentities, eq(juniorIdentities.id, juniorConversations.actorIdentityId)).innerJoin(juniorUsers, eq(juniorUsers.id, juniorIdentities.userId)).where(viewerWindowWhere(email, nowMs));
|
|
2504
|
+
}
|
|
2505
|
+
/** Read one viewer's rolling model spend with one bounded aggregate query. */
|
|
2506
|
+
async function readPersonalSpendFromSql(email, nowMs = Date.now()) {
|
|
2507
|
+
const { end, sevenDayStart, thirtyDayStart } = spendWindow(nowMs);
|
|
2508
|
+
const rows = await personalSpendDaysQuery(getDb(), email, nowMs);
|
|
2514
2509
|
const sevenDayStartDate = sevenDayStart.toISOString().slice(0, 10);
|
|
2515
2510
|
let sevenDaysUsd = 0;
|
|
2516
2511
|
let thirtyDaysUsd = 0;
|
|
@@ -2528,45 +2523,11 @@ async function readPersonalSpendFromSql(email, nowMs = Date.now()) {
|
|
|
2528
2523
|
windowStart: thirtyDayStart.toISOString()
|
|
2529
2524
|
};
|
|
2530
2525
|
}
|
|
2531
|
-
// src/api/people/spend.ts
|
|
2532
|
-
const PERSONAL_SPEND_CACHE_TTL_MS = 3e5;
|
|
2533
|
-
/**
|
|
2534
|
-
* Create an app-scoped personal-spend reader.
|
|
2535
|
-
*
|
|
2536
|
-
* A cached report stays valid for five minutes, or until the viewer's spend
|
|
2537
|
-
* version changes. The dashboard can poll often and still see a finished Turn
|
|
2538
|
-
* without a full aggregate query on every poll.
|
|
2539
|
-
*/
|
|
2540
|
-
function createPersonalSpendReader() {
|
|
2541
|
-
const cache = /* @__PURE__ */ new Map();
|
|
2542
|
-
return async function readPersonalSpend(email) {
|
|
2543
|
-
const normalizedEmail = email.trim().toLowerCase();
|
|
2544
|
-
const nowMs = Date.now();
|
|
2545
|
-
const version = await readPersonalSpendVersion(normalizedEmail, nowMs);
|
|
2546
|
-
const cached = cache.get(normalizedEmail);
|
|
2547
|
-
if (cached && cached.expiresAtMs > nowMs && cached.version === version) return cached.report;
|
|
2548
|
-
cache.delete(normalizedEmail);
|
|
2549
|
-
const report = readPersonalSpendFromSql(normalizedEmail, nowMs);
|
|
2550
|
-
const entry = {
|
|
2551
|
-
expiresAtMs: nowMs + PERSONAL_SPEND_CACHE_TTL_MS,
|
|
2552
|
-
report,
|
|
2553
|
-
version
|
|
2554
|
-
};
|
|
2555
|
-
cache.set(normalizedEmail, entry);
|
|
2556
|
-
try {
|
|
2557
|
-
return await report;
|
|
2558
|
-
} catch (error) {
|
|
2559
|
-
if (cache.get(normalizedEmail) === entry) cache.delete(normalizedEmail);
|
|
2560
|
-
throw error;
|
|
2561
|
-
}
|
|
2562
|
-
};
|
|
2563
|
-
}
|
|
2564
2526
|
// src/api/people/routes.ts
|
|
2565
2527
|
const AVATAR_IMMUTABLE_CACHE_CONTROL = "private, max-age=31536000, immutable";
|
|
2566
2528
|
/** Create the HTTP routes owned by the People API. */
|
|
2567
2529
|
function createPeopleRoutes() {
|
|
2568
2530
|
const app = new Hono();
|
|
2569
|
-
const readPersonalSpend = createPersonalSpendReader();
|
|
2570
2531
|
app.get("/avatars/:identityId", requireViewer, validateRequest("param", avatarParamsSchema, "Invalid route parameters."), async (context) => {
|
|
2571
2532
|
const { identityId } = context.req.valid("param");
|
|
2572
2533
|
const avatar = await readAvatarImage(getDb(), getStateAdapter(), identityId);
|
|
@@ -2589,7 +2550,7 @@ function createPeopleRoutes() {
|
|
|
2589
2550
|
});
|
|
2590
2551
|
app.get("/me/spend", requireViewer, async (context) => {
|
|
2591
2552
|
const viewer = context.get("viewer");
|
|
2592
|
-
return jsonResponse(personalSpendReportSchema, await
|
|
2553
|
+
return jsonResponse(personalSpendReportSchema, await readPersonalSpendFromSql(viewer.email));
|
|
2593
2554
|
});
|
|
2594
2555
|
app.get("/", async () => jsonResponse(actorDirectoryReportSchema, await readPeopleList()));
|
|
2595
2556
|
app.get("/:email/plugin-reports", requireViewer, validateRequest("param", personParamsSchema, "Invalid route parameters."), async (context) => {
|
|
@@ -3323,7 +3284,7 @@ function readDescriptionText(home) {
|
|
|
3323
3284
|
}
|
|
3324
3285
|
/** Read discovered skill names for authenticated runtime diagnostics. */
|
|
3325
3286
|
async function readSkillReports() {
|
|
3326
|
-
const { discoverSkills } = await import("./skills-
|
|
3287
|
+
const { discoverSkills } = await import("./skills-CD5aJdzg.js").then((n) => n.o);
|
|
3327
3288
|
const skills = await discoverSkills();
|
|
3328
3289
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3329
3290
|
name: skill.name,
|
|
@@ -3332,7 +3293,7 @@ async function readSkillReports() {
|
|
|
3332
3293
|
}
|
|
3333
3294
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3334
3295
|
async function readPlugins() {
|
|
3335
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3296
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-BCIuBe4d.js").then((n) => n.t);
|
|
3336
3297
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3337
3298
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3338
3299
|
description: plugin.manifest.description,
|
|
@@ -3344,7 +3305,7 @@ async function readPlugins() {
|
|
|
3344
3305
|
async function readRuntimeInfoReport() {
|
|
3345
3306
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3346
3307
|
import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
|
|
3347
|
-
import("./catalog-runtime-
|
|
3308
|
+
import("./catalog-runtime-BCIuBe4d.js").then((n) => n.t),
|
|
3348
3309
|
readPlugins(),
|
|
3349
3310
|
readSkillReports()
|
|
3350
3311
|
]);
|
|
@@ -3361,7 +3322,7 @@ async function readRuntimeInfoReport() {
|
|
|
3361
3322
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3362
3323
|
async function readPluginOperationalReportFeed() {
|
|
3363
3324
|
const nowMs = Date.now();
|
|
3364
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3325
|
+
const { getPluginOperationalReports } = await import("./projection-CL_YWeGf.js").then((n) => n.Un);
|
|
3365
3326
|
return pluginOperationalReportFeedSchema.parse({
|
|
3366
3327
|
source: "plugins",
|
|
3367
3328
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
|
|
2
|
-
import { t as ConversationStore } from "./db-
|
|
3
|
-
import "./schema-
|
|
2
|
+
import { t as ConversationStore } from "./db-YDKKDxlh.js";
|
|
3
|
+
import "./schema-C6fsEwjo.js";
|
|
4
4
|
import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
|
@@ -121,7 +121,6 @@ declare const inboundMessageSchema: z.ZodObject<{
|
|
|
121
121
|
conversationId: z.ZodString;
|
|
122
122
|
}, z.core.$strict>], "platform">>;
|
|
123
123
|
inboundMessageId: z.ZodString;
|
|
124
|
-
injectedAtMs: z.ZodOptional<z.ZodNumber>;
|
|
125
124
|
input: z.ZodObject<{
|
|
126
125
|
attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
127
126
|
authorId: z.ZodOptional<z.ZodString>;
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-DBY5TnfY.js";
|
|
2
2
|
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-DtmjkTza.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };
|