@sentry/junior 0.286.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-JQZaJ-B_.js → adapter-CL-HUKgd.js} +1 -1
- package/dist/{admin-Dm2bimJ-.js → admin-C9urXVfi.js} +2 -1
- package/dist/{agent-runner-DGCwOEyL.js → agent-runner-Bfnw551N.js} +644 -312
- 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 +36 -53
- package/dist/{app-BKq0JzWx.d.ts → app-DBY5TnfY.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +62 -29
- package/dist/{assistant-reply-CAPafcUY.js → assistant-reply-u_PRYzuz.js} +1 -1
- package/dist/{automation-B-jJN_gM.js → automation-DksGNDRO.js} +3 -6
- package/dist/{background-compaction-queue-Btu2oab_.js → background-compaction-queue-CYI909P5.js} +3 -3
- package/dist/{briefs-UMeYehUe.js → briefs-DaXiMWzT.js} +6 -5
- package/dist/{catalog-runtime-Bym8GVdh.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 +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-B0aAs7wC.js → config-CkHcUMN7.js} +580 -3
- package/dist/{connections-CQ7p0aNJ.js → connections-BnIj0wtx.js} +9 -9
- package/dist/{conversation-BusI2uzj.js → conversation-E7ZPJx2H.js} +8 -1
- package/dist/{conversation-pending-messages-DwehU0Fd.js → conversation-pending-messages-DVch6YQw.js} +2 -5
- package/dist/{conversation-privacy-Cd_nZZBM.js → conversation-privacy-DF1hW0ja.js} +1 -1
- package/dist/{credential-sync-DmiJi_At.js → credential-sync-CzMar9hq.js} +13 -13
- package/dist/{viewer-CH-ASQzh.js → db-DJ11eZqq.js} +37 -343
- package/dist/{db-C5zi4ecs.d.ts → db-YDKKDxlh.d.ts} +1 -1
- package/dist/{executor-Dipi2Ixl.js → executor-BY9TB31g.js} +11 -4
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CMFhLLj4.js → logging-BO5zU6Mt.js} +1 -1
- package/dist/{media-B-BpXo41.js → media-Cz1ZiV1U.js} +2 -2
- package/dist/{message-D1xLljUF.js → message-CsUbuEc8.js} +10 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-DCAFIUQr.js → oauth-callback-server-hiDKK0_n.js} +2 -2
- package/dist/{projection-CoeMNxJ4.js → projection-CL_YWeGf.js} +82 -160
- package/dist/{prompt-C9OQEfan.js → prompt-BHOEQSmf.js} +182 -2
- package/dist/{registry-u-sFYtx_.js → registry-BriFLnaJ.js} +1 -1
- package/dist/{reporting-window-B4TwyuJo.js → reporting-window-B3Ze-Qnt.js} +4 -1
- package/dist/{resolve-DYqgL3Eo.js → resolve-Bt6GgAiA.js} +3 -3
- package/dist/{result-CescSwAw.js → result-Bo1TZu0Q.js} +8 -8
- package/dist/{runner-Cr67a8TB.js → runner-D3YeCQgt.js} +8 -8
- package/dist/{sandbox-egress-signals-DLOazy5W.js → sandbox-egress-signals-CcnSPP4S.js} +1 -1
- package/dist/{schema-BUSi3sgv.js → schema-BWE3RJEB.js} +17 -5
- package/dist/{schema-Ih60j59-.d.ts → schema-C6fsEwjo.d.ts} +46 -1
- package/dist/{service-account-CGEqz9wG.js → service-account-DiQQuuw7.js} +3 -3
- package/dist/{service-account-CsKxktLk.js → service-account-r6fl0b-9.js} +3 -3
- package/dist/{session-stop-CGz5DByb.js → session-stop-B2Nut40V.js} +18 -18
- package/dist/{skills-COCqf61f.js → skills-CD5aJdzg.js} +2 -2
- package/dist/spawn-CalgZQiu.js +79 -0
- package/dist/{stop-GyFZkHuQ.js → stop-kujZLbi0.js} +56 -240
- package/dist/{store-D0-8plWp.js → store-DdIEUL1q.js} +3 -3
- package/dist/{task-runner-xPuQmEot.js → task-runner-D_RDr2Hu.js} +12 -11
- package/dist/{turn-failure-response-BOviBdT-.js → turn-failure-response-B5nV1Er-.js} +16 -11
- package/dist/{validation-DZDKorGz.js → validation-K4pqwoVZ.js} +1 -1
- package/dist/{version-BTIz7fGi.js → version-DBvhk1X9.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/viewer-DrMmFUul.js +337 -0
- package/dist/{work-C75_IM5e.js → work-ljRoODGu.js} +30 -19
- package/dist/{worker-Dl47I729.js → worker-CYO1Q0Js.js} +5 -6
- package/migrations/0088_conversation_unsubscribe.sql +1 -0
- package/migrations/meta/0088_snapshot.json +4372 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +4 -4
- package/dist/config-B9f9Lqo5.js +0 -579
- package/dist/spawn-C8F_iXWO.js +0 -42
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 { $a as
|
|
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 {
|
|
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-BUSi3sgv.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
|
-
archivedAt: juniorConversations.archivedAt,
|
|
234
|
-
parentConversationId: juniorConversations.parentConversationId
|
|
235
|
-
}).from(juniorConversations).where(inArray(juniorConversations.conversationId, [...childIds]));
|
|
236
|
-
return new Map(rows.map((row) => [row.conversationId, {
|
|
237
|
-
archivedAt: row.archivedAt?.toISOString() ?? null,
|
|
238
|
-
kind: conversationKindFromRow(row) === "thread" ? "thread" : "task"
|
|
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
|
-
kind: "task"
|
|
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) => {
|
|
@@ -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({
|
|
@@ -3301,7 +3284,7 @@ function readDescriptionText(home) {
|
|
|
3301
3284
|
}
|
|
3302
3285
|
/** Read discovered skill names for authenticated runtime diagnostics. */
|
|
3303
3286
|
async function readSkillReports() {
|
|
3304
|
-
const { discoverSkills } = await import("./skills-
|
|
3287
|
+
const { discoverSkills } = await import("./skills-CD5aJdzg.js").then((n) => n.o);
|
|
3305
3288
|
const skills = await discoverSkills();
|
|
3306
3289
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3307
3290
|
name: skill.name,
|
|
@@ -3310,7 +3293,7 @@ async function readSkillReports() {
|
|
|
3310
3293
|
}
|
|
3311
3294
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3312
3295
|
async function readPlugins() {
|
|
3313
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3296
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-BCIuBe4d.js").then((n) => n.t);
|
|
3314
3297
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3315
3298
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3316
3299
|
description: plugin.manifest.description,
|
|
@@ -3322,7 +3305,7 @@ async function readPlugins() {
|
|
|
3322
3305
|
async function readRuntimeInfoReport() {
|
|
3323
3306
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3324
3307
|
import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
|
|
3325
|
-
import("./catalog-runtime-
|
|
3308
|
+
import("./catalog-runtime-BCIuBe4d.js").then((n) => n.t),
|
|
3326
3309
|
readPlugins(),
|
|
3327
3310
|
readSkillReports()
|
|
3328
3311
|
]);
|
|
@@ -3339,7 +3322,7 @@ async function readRuntimeInfoReport() {
|
|
|
3339
3322
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3340
3323
|
async function readPluginOperationalReportFeed() {
|
|
3341
3324
|
const nowMs = Date.now();
|
|
3342
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3325
|
+
const { getPluginOperationalReports } = await import("./projection-CL_YWeGf.js").then((n) => n.Un);
|
|
3343
3326
|
return pluginOperationalReportFeedSchema.parse({
|
|
3344
3327
|
source: "plugins",
|
|
3345
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";
|
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 };
|
package/dist/app.js
CHANGED
|
@@ -1,38 +1,39 @@
|
|
|
1
1
|
import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { $
|
|
3
|
-
import { d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig
|
|
4
|
-
import { E as withSpan, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, T as withLogContext, U as normalizeIdentityEmail, V as GOOGLE_IDENTITY_PROVIDER, b as setSpanAttributes, h as logWarn, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-
|
|
5
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { $a as createPluginLogger, $n as validatePlugins, $r as takeDueTimerWatches, Da as consumeSandboxEgressPermissionDeniedSignal, Dn as getThreadStopDecision, Dt as isInvalidConversationRecordError, Ea as consumeSandboxEgressAuthRequiredSignal, Eo as resolveRootVisibility, Fi as proxyVercelSandboxEgressRequest, Fn as getExperimentalFeatures, Fo as createPluginCache, Gi as slackMention, Gn as getPluginApiRoutes, Ho as setConfigDefaults, In as isExperimentalFeatureEnabled, Kn as getPluginRoutes, Kr as collectEventMatchKeys, Ln as setExperimentalFeatures, Na as normalizeSandboxEgressTracePropagationDomains, Nr as reviewItemReaderForUser, Pi as isVercelSandboxEgressRequest, Qi as postSlackEphemeralMessage, Qn as setPlugins, Rn as createUserTokenStore, S as projectConversationMessages, Ta as clearSandboxEgressSignals, Tr as canActOnReviewItem, Tt as hasRunnableConversationWork, Vo as getConfigDefaults, Xr as findMatchingWatches, Zi as openSlackModal, Zn as getPlugins, _ as appendConversationMessages, _o as readConversationMessageEventSeq, ai as verifySlackDirectCredentialSubject, ci as getDashboardConversationLink, ct as CONVERSATION_WORK_STALE_ENQUEUE_MS, da as isDmChannel, ei as bindEventAutomationCredentialSubject, fi as getDashboardTaskLink, ga as runWithWorkspaceTeamId, go as readConversationLastEventSeq, ha as getWorkspaceTeamId, hi as createPluginState, ia as slackExternalRefIdSchema, ii as verifyScheduledAutomationCredentialSubject, ka as parseSandboxEgressCredentialToken, ko as listConversationAnnotations, la as getSlackClient, mo as readConversationEventPageAfter, mr as dismissOpenReviewItems, ni as bindSlackDirectCredentialSubject, no as readConversationAccessFromSql, nr as setBriefsConfig, pi as setDashboardConversationLinkOptions, po as readConversationEventPage, ra as slackEntitySchema, ri as verifyEventAutomationCredentialSubject, ti as bindScheduledAutomationCredentialSubject, ui as getDashboardReviewItemLink, w as settleConversationTitleWork, wn as SubscribedReplyReason, xr as searchReviewItems, za as createPluginEmbedder, zi as resolveBaseUrl } from "./projection-CL_YWeGf.js";
|
|
3
|
+
import { H as getAttachmentStorage, d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig } from "./config-CkHcUMN7.js";
|
|
4
|
+
import { E as withSpan, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, T as withLogContext, U as normalizeIdentityEmail, V as GOOGLE_IDENTITY_PROVIDER, b as setSpanAttributes, h as logWarn, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-BO5zU6Mt.js";
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-DBvhk1X9.js";
|
|
6
6
|
import { _ as slackMessageTsSchema, f as parseSlackTeamId, g as slackMessageTsFromMs, h as parseSlackMessageTs, m as slackChannelIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
7
|
-
import {
|
|
8
|
-
import { A as juniorConversations, N as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { $ as readViewerAutomationSummary, A as runWithSlackInstallation, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, E as buildSlackReviewItemModal, H as logScheduledAutomationRunSkipped,
|
|
7
|
+
import { B as touchConversationDetail, D as resolveActorIdentityId, N as recordGoogleSignIn, a as getConversationStore, b as withConversationMutationLock, o as getDb, p as withConversationEventLock, q as createSlackDestination, r as getConversationEventStore, s as getSqlExecutor, t as closeDb } from "./db-DJ11eZqq.js";
|
|
8
|
+
import { A as juniorConversations, N as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-BY9TB31g.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BCIuBe4d.js";
|
|
10
|
+
import { $ as readViewerAutomationSummary, A as runWithSlackInstallation, C as readSlackReviewItemCardConversationId, Ct as markConversationRead, D as parseSlackReviewItemClick, E as buildSlackReviewItemModal, H as logScheduledAutomationRunSkipped, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, S as createSlackReviewItemShow, U as scheduledAutomationRunAttributes, Xt as ingestEvent, Y as ViewerTaskNotFoundError, Yt as processWorkspaceSnapshotJob, Z as readViewerAutomationExecutions, _ as unpublishedArtifactHeaders, at as deliverReviewItemChange, g as readPublicArtifact, gt as collectAttachmentGarbage, h as publicArtifactHeaders, j as verifySlackSignature, k as parseSlackUserInputSubmission, kt as recordSubagentEnded, lt as appendAndEnqueueWebMessage, mt as webActorFromUser, n as executeAgentRun, ot as renderReviewItemMessage, pt as recordWebConversationActivity, r as processBackgroundCompaction, rt as effectiveTaskOutcomes, st as reviewItemChangeRecord, t as createAgentRunner, tt as readViewerAutomations, ut as conversationTurnIdForMessage, v as setConversationSubscription, vt as requestAttachmentDeletion, w as syncReviewItemSlackCards, xt as archiveConversation, y as lookupSlackUserProfile, z as joinPublicChannel } from "./agent-runner-Bfnw551N.js";
|
|
11
11
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
12
|
-
import {
|
|
12
|
+
import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-DrMmFUul.js";
|
|
13
|
+
import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-CL-HUKgd.js";
|
|
13
14
|
import { a as getNextRunAtMs } from "./schedule-BTp__wrw.js";
|
|
14
|
-
import { G as conversationBriefSchema, j as annotationCard, p as conversationFeedQuerySchema, x as conversationSurfaceSchema, y as conversationReportStatusSchema } from "./conversation-
|
|
15
|
+
import { G as conversationBriefSchema, j as annotationCard, p as conversationFeedQuerySchema, x as conversationSurfaceSchema, y as conversationReportStatusSchema } from "./conversation-E7ZPJx2H.js";
|
|
15
16
|
import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
16
|
-
import { D as listPendingAgentInvocationResults, E as listPendingAgentInvocationMailboxAppends } from "./turn-failure-response-
|
|
17
|
-
import { M as slackChannelMessageReplyThreadTs, N as slackChannelMessageRunsAutomation, O as getEventCatalog, W as renderSlackObjectCard, d as getAuthPausedConversationTurnId, j as slackChannelMessageEvent, k as SLACK_EVENT_NAMESPACE, z as renderTaskInput } from "./session-stop-
|
|
18
|
-
import {
|
|
19
|
-
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-
|
|
20
|
-
import { T as isConversationQueueMessageRejectedError, _ as getVercelConversationWorkQueue, f as queueCallback, g as verifyWorkspaceSnapshotJobMessage, i as verifyBackgroundCompactionMessage, l as pluginTaskQueueConsumer, o as createVercelPluginTaskCallback, p as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as registerVercelPluginTaskDevConsumer, v as resolveConversationWorkQueueTopic, w as conversationQueueMessageSchema, x as getQueueProvider, y as verifyConversationQueueMessage } from "./background-compaction-queue-
|
|
21
|
-
import { C as removeActiveConversation, _ as getConversationWorkState, g as getConversation, h as ensureConversationWake, l as clearExpiredConversationLease, r as appendAndEnqueueInboundMessage, v as hasRunnableConversationWork$1, y as listActiveConversationIds } from "./store-
|
|
22
|
-
import { A as withScheduledAutomationLock, E as readScheduledAutomation, F as findMatchingEventAutomations, H as eventAutomationRunLimitReason, M as collectEventAutomationMatchKeys, O as saveScheduledAutomationInLock, Q as existingConversationId, Tt as eventGuidance, V as admitEventAutomationRun, W as automationVersionOf, bt as coerceThreadConversationState, c as getDispatchConversationId, ct as recordAutomationExecution, d as getDispatchRecord, h as listPendingDispatchMailboxAppends, i as buildDispatchId, j as blockEventAutomation, k as scheduledRunId, m as isTerminalDispatchStatus, o as confirmDispatchMailboxAppend, p as getPluginDispatchProjection, s as createOrGetDispatch, t as processPluginTask, w as listScheduledAutomationsForTeam, x as notifyAutomationBlocked, y as markDispatchFailed } from "./task-runner-
|
|
23
|
-
import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-
|
|
24
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
17
|
+
import { D as listPendingAgentInvocationResults, E as listPendingAgentInvocationMailboxAppends } from "./turn-failure-response-B5nV1Er-.js";
|
|
18
|
+
import { M as slackChannelMessageReplyThreadTs, N as slackChannelMessageRunsAutomation, O as getEventCatalog, W as renderSlackObjectCard, d as getAuthPausedConversationTurnId, j as slackChannelMessageEvent, k as SLACK_EVENT_NAMESPACE, z as renderTaskInput } from "./session-stop-B2Nut40V.js";
|
|
19
|
+
import { _ as buttonUserInputField } from "./reporting-window-B3Ze-Qnt.js";
|
|
20
|
+
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-Bt6GgAiA.js";
|
|
21
|
+
import { T as isConversationQueueMessageRejectedError, _ as getVercelConversationWorkQueue, f as queueCallback, g as verifyWorkspaceSnapshotJobMessage, i as verifyBackgroundCompactionMessage, l as pluginTaskQueueConsumer, o as createVercelPluginTaskCallback, p as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as registerVercelPluginTaskDevConsumer, v as resolveConversationWorkQueueTopic, w as conversationQueueMessageSchema, x as getQueueProvider, y as verifyConversationQueueMessage } from "./background-compaction-queue-CYI909P5.js";
|
|
22
|
+
import { C as removeActiveConversation, _ as getConversationWorkState, g as getConversation, h as ensureConversationWake, l as clearExpiredConversationLease, r as appendAndEnqueueInboundMessage, v as hasRunnableConversationWork$1, y as listActiveConversationIds } from "./store-DdIEUL1q.js";
|
|
23
|
+
import { A as withScheduledAutomationLock, E as readScheduledAutomation, F as findMatchingEventAutomations, H as eventAutomationRunLimitReason, M as collectEventAutomationMatchKeys, O as saveScheduledAutomationInLock, Q as existingConversationId, Tt as eventGuidance, V as admitEventAutomationRun, W as automationVersionOf, bt as coerceThreadConversationState, c as getDispatchConversationId, ct as recordAutomationExecution, d as getDispatchRecord, h as listPendingDispatchMailboxAppends, i as buildDispatchId, j as blockEventAutomation, k as scheduledRunId, m as isTerminalDispatchStatus, o as confirmDispatchMailboxAppend, p as getPluginDispatchProjection, s as createOrGetDispatch, t as processPluginTask, w as listScheduledAutomationsForTeam, x as notifyAutomationBlocked, y as markDispatchFailed } from "./task-runner-D_RDr2Hu.js";
|
|
24
|
+
import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-DksGNDRO.js";
|
|
25
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-K4pqwoVZ.js";
|
|
25
26
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-HYh_JOdw.js";
|
|
26
|
-
import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-
|
|
27
|
-
import { $ as
|
|
28
|
-
import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-
|
|
29
|
-
import { n as enqueueAgentInvocationResult } from "./result-
|
|
30
|
-
import { o as unlinkProvider } from "./connections-
|
|
31
|
-
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
27
|
+
import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-DVch6YQw.js";
|
|
28
|
+
import { $ as readReviewItemForUser, A as createProductionConversationWorkOptions, B as clearSlackPendingReactions, C as createConversationForViewer, D as readConversationPendingMessages, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, G as createSlackWebApiStatusSender, H as stripLeadingBotMention, I as readEnvList, J as recordSkippedConversationMessage, K as stopConversation, L as resolveAllowedDomains, M as getProductionSlackAdapter, N as assertNoLegacyAllowedDomains, P as isAllowedDomain, Q as closeReviewItemsAnsweredByReply, R as startProcessingReaction, S as appendConversationMessageForViewer, T as encodeConversationCursor, U as normalizeIncomingSlackThreadId, V as slackInboundMessageId, W as withNormalizedThreadId, X as ReviewItemActionError, Y as bindMessageAuthorIdentityId, Z as actOnReviewItem, a as pinConversation, at as setConversationAutoArchive, b as readConversationRecordFromSql, ct as enqueueAgentDispatch, et as reviewItemChange, i as readConversationFeed, it as runAutoArchiveSweep, j as createProductionSlackWebhookServices, lt as GET$4, n as steerConversationPendingMessagesForViewer, nt as archiveViewerDoneConversations, q as parseContent, s as readConversationDetail, t as stopConversationTurnForViewer, w as decodeConversationCursor, z as buildSlackInboundMessage } from "./stop-kujZLbi0.js";
|
|
29
|
+
import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-ljRoODGu.js";
|
|
30
|
+
import { n as enqueueAgentInvocationResult } from "./result-Bo1TZu0Q.js";
|
|
31
|
+
import { o as unlinkProvider } from "./connections-BnIj0wtx.js";
|
|
32
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-CzMar9hq.js";
|
|
32
33
|
import { t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
|
|
33
|
-
import { t as processConversationWork } from "./worker-
|
|
34
|
-
import { t as bindMessageAgent } from "./message-
|
|
35
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
34
|
+
import { t as processConversationWork } from "./worker-CYO1Q0Js.js";
|
|
35
|
+
import { t as bindMessageAgent } from "./message-CsUbuEc8.js";
|
|
36
|
+
import { t as bindSpawnAgent } from "./spawn-CalgZQiu.js";
|
|
36
37
|
import { createRequire } from "node:module";
|
|
37
38
|
import { Hono } from "hono";
|
|
38
39
|
import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -42,8 +43,8 @@ import { EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, dispatchOptionsSchema,
|
|
|
42
43
|
import { pathToFileURL } from "node:url";
|
|
43
44
|
import net from "node:net";
|
|
44
45
|
import { decodeJwt } from "jose";
|
|
45
|
-
import https from "node:https";
|
|
46
46
|
import { HTTPException } from "hono/http-exception";
|
|
47
|
+
import https from "node:https";
|
|
47
48
|
import { Message, ThreadImpl } from "chat";
|
|
48
49
|
import * as acp from "@agentclientprotocol/sdk";
|
|
49
50
|
import dns from "node:dns";
|
|
@@ -6904,6 +6905,37 @@ function registerSetConversationAutoArchiveTool(server, { user }) {
|
|
|
6904
6905
|
}
|
|
6905
6906
|
});
|
|
6906
6907
|
}
|
|
6908
|
+
// src/api/mcp/tools/set-conversation-subscription.ts
|
|
6909
|
+
/**
|
|
6910
|
+
* Register `setConversationSubscription`, which subscribes or unsubscribes
|
|
6911
|
+
* the user. It never changes another person's subscription.
|
|
6912
|
+
*/
|
|
6913
|
+
function registerSetConversationSubscriptionTool(server, { user }) {
|
|
6914
|
+
server.registerTool("setConversationSubscription", {
|
|
6915
|
+
title: "Set conversation subscription",
|
|
6916
|
+
description: "Subscribe to one of your conversations, or unsubscribe from it. Unsubscribe removes it only from your feed and clears your pin. When nobody else is subscribed, it archives the conversation for everyone. Your next mention of the bot in it subscribes you again.",
|
|
6917
|
+
inputSchema: {
|
|
6918
|
+
conversationId: mcpConversationIdSchema,
|
|
6919
|
+
subscribed: z.boolean().describe("False unsubscribes you.")
|
|
6920
|
+
},
|
|
6921
|
+
outputSchema: {
|
|
6922
|
+
archivedAt: z.string().nullable().describe("Set when the conversation is archived for everyone."),
|
|
6923
|
+
subscribed: z.boolean()
|
|
6924
|
+
},
|
|
6925
|
+
annotations: {
|
|
6926
|
+
destructiveHint: false,
|
|
6927
|
+
idempotentHint: true,
|
|
6928
|
+
openWorldHint: false,
|
|
6929
|
+
readOnlyHint: false
|
|
6930
|
+
}
|
|
6931
|
+
}, async ({ conversationId, subscribed }) => {
|
|
6932
|
+
try {
|
|
6933
|
+
return mcpToolResult(await setConversationSubscription(user, conversationId, { subscribed }));
|
|
6934
|
+
} catch (error) {
|
|
6935
|
+
return apiToolError(error);
|
|
6936
|
+
}
|
|
6937
|
+
});
|
|
6938
|
+
}
|
|
6907
6939
|
// src/api/mcp/tools/stop-conversation.ts
|
|
6908
6940
|
/**
|
|
6909
6941
|
* Register `stopConversation`, which stops the Conversation and every child
|
|
@@ -6958,6 +6990,7 @@ const TOOLS_BY_SCOPE = {
|
|
|
6958
6990
|
registerArchiveDoneConversationsTool,
|
|
6959
6991
|
registerPinConversationTool,
|
|
6960
6992
|
registerSetConversationAutoArchiveTool,
|
|
6993
|
+
registerSetConversationSubscriptionTool,
|
|
6961
6994
|
registerMarkConversationReadTool,
|
|
6962
6995
|
registerStopConversationTool,
|
|
6963
6996
|
registerCancelQueuedMessagesTool
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolveLocalScheduleAtMs, i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-BTp__wrw.js";
|
|
2
|
-
import { i as actorIdentitySchema } from "./conversation-
|
|
2
|
+
import { i as actorIdentitySchema } from "./conversation-E7ZPJx2H.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { actorUserIdSchema, destinationVisibilitySchema, eventMatchFieldsSchema, eventMatchSchema, eventReachSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
5
5
|
// src/chat/scheduled-automations/schedule-intent.ts
|
|
@@ -403,10 +403,7 @@ const automationEditFieldsSchema = z.object({
|
|
|
403
403
|
credentialMode: z.enum(["system", "creator"]).optional(),
|
|
404
404
|
outcomes: z.array(z.union([taskOutcomeInputSchema, taskOutcomeSchema])).max(5).optional()
|
|
405
405
|
});
|
|
406
|
-
const scheduledAutomationEditSchema = automationEditFieldsSchema.extend({
|
|
407
|
-
schedule: scheduleIntentSchema.optional(),
|
|
408
|
-
status: z.enum(["active", "blocked"]).optional()
|
|
409
|
-
}).strict();
|
|
406
|
+
const scheduledAutomationEditSchema = automationEditFieldsSchema.extend({ schedule: scheduleIntentSchema.optional() }).strict();
|
|
410
407
|
const eventAutomationEditSchema = automationEditFieldsSchema.extend({ trigger: eventAutomationTriggerSchema.safeExtend({
|
|
411
408
|
identifier: z.string().trim().min(1).max(300).optional(),
|
|
412
409
|
label: z.string().trim().min(1).max(500)
|
|
@@ -692,7 +689,7 @@ const automationEditSchema = z.discriminatedUnion("kind", [automationEditBaseSch
|
|
|
692
689
|
])
|
|
693
690
|
}).strict()]);
|
|
694
691
|
/** Partial edits require the revision returned by the edit read. */
|
|
695
|
-
const automationUpdateSchema = z.discriminatedUnion("kind", [scheduledAutomationEditSchema.
|
|
692
|
+
const automationUpdateSchema = z.discriminatedUnion("kind", [scheduledAutomationEditSchema.extend({
|
|
696
693
|
kind: z.literal("scheduled"),
|
|
697
694
|
revision: automationRevisionSchema
|
|
698
695
|
}).strict(), eventAutomationEditSchema.extend({
|