@sentry/junior 0.294.0 → 0.295.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/{admin-vt8aSiCD.js → admin-ifgjyfpF.js} +2 -2
- package/dist/{agent-runner-DJu7w6mI.js → agent-runner-DjMTPWEO.js} +147 -90
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +1 -1
- package/dist/api.js +52 -28
- package/dist/{app--a5RLOrr.d.ts → app-uiTzRbvq.d.ts} +3 -3
- package/dist/app.d.ts +2 -2
- package/dist/app.js +33 -34
- package/dist/{automation-BM-OBsKW.js → automation-yJX3C7i3.js} +3 -3
- package/dist/{background-compaction-queue-D2j-0XkH.js → background-compaction-queue-DUkHZjmL.js} +7 -9
- package/dist/{briefs-JOAoCb6d.js → briefs-CbNYM-q2.js} +3 -3
- package/dist/{catalog-runtime-CLMA9AXd.js → catalog-runtime-DgouZKZm.js} +1 -1
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/init.js +2 -0
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.d.ts +1 -1
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +2 -2
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-mIZeGEWv.js → config-DvnTPCfp.js} +43 -2
- package/dist/{connections-XhdVg7OR.js → connections-CWaIVl_1.js} +6 -6
- package/dist/{conversation-CDWejM4R.js → conversation-CMkSmi02.js} +2 -11
- package/dist/{conversation-pending-messages-Dh2tfbaw.js → conversation-feed-BVAOga0H.js} +27 -2
- package/dist/{conversation-privacy-C6h-X2cZ.js → conversation-privacy-DPjv4SnA.js} +1 -1
- package/dist/{credential-sync-zigBlXS3.js → credential-sync-BhbaZfmO.js} +16 -15
- package/dist/{db-DV5AbcGM.d.ts → db-CCUqQe0E.d.ts} +6 -1
- package/dist/{db--xuNV7g6.js → db-Dts2XvLu.js} +54 -10
- package/dist/{executor-BItuRqAR.js → executor-Ck73J0wP.js} +8 -3
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-Cb6MGvdt.js → logging-9OAq-fdg.js} +2 -1
- package/dist/{message-BTGgSmaH.js → message-CtaPzC7m.js} +9 -9
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-Dvh1aOIi.js → oauth-callback-server-C_LXY1d4.js} +2 -2
- package/dist/{oauth-relay-D6xxVywK.js → oauth-relay-CsfIazeF.js} +2 -1
- package/dist/{plugins-DtmjkTza.d.ts → plugins-B_0Cr0MO.d.ts} +0 -1
- package/dist/{projection-DLQgfO5N.js → projection-BzJQncZV.js} +248 -77
- package/dist/{prompt-qp_LdxLX.js → prompt-Cbq5b4SO.js} +4 -4
- package/dist/{registry-MtwokaqW.js → registry-cbpOxO4M.js} +3 -13
- package/dist/{resolve-BnJA0UNE.js → resolve-t-pmRdwS.js} +3 -3
- package/dist/{result-ChL-1KyW.js → result-DhgjR3nQ.js} +8 -8
- package/dist/{runner-BONN7Dp2.js → runner-CHv9X9TH.js} +8 -8
- package/dist/{sandbox-egress-signals-nmlmI5Ab.js → sandbox-egress-signals-Yy3fSCbg.js} +1 -1
- package/dist/{schema-yr0ccDni.js → schema-BhneuGYv.js} +13 -6
- package/dist/{schema-DgvcyJ1y.d.ts → schema-TSEisVJR.d.ts} +50 -14
- package/dist/secrets-DebYU866.js +18 -0
- package/dist/{service-account-Bd0lBaGr.js → service-account-C4rBP8ne.js} +3 -3
- package/dist/{service-account-kio5nXSD.js → service-account-DjPIwCMj.js} +42 -26
- package/dist/{session-stop-CeCXL3j9.js → session-stop-DkxI5vc3.js} +20 -775
- package/dist/{skills-e3DDNlKO.js → skills-BZE2DP8I.js} +2 -2
- package/dist/{spawn--cRxITWQ.js → spawn-BvULxIiu.js} +5 -5
- package/dist/{adapter-DxLhJEnO.js → state-CO9ETDzk.js} +132 -2
- package/dist/{stop-Iai5N2PU.js → stop-CL-rdtQb.js} +84 -30
- package/dist/{store-C8LsaJwS.js → store-DgD78_NK.js} +3 -3
- package/dist/{task-runner-Dw7exu0-.js → task-runner-CKOj6xla.js} +11 -11
- package/dist/{turn-failure-response-BqTTx3XG.js → turn-failure-response-BTSo6SMJ.js} +8 -8
- package/dist/{validation-BrGahtnv.js → validation-CXeYgBzq.js} +1 -1
- package/dist/{version-Bdqhx8Qh.js → version-AQa7Fr2H.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CjRFHR5U.js → viewer-Bqkb678l.js} +3 -3
- package/dist/warmup-h6u1e9n0.js +1869 -0
- package/dist/{work-BWBG1EGV.js → work-yN_GAuXY.js} +11 -11
- package/dist/{worker-DAnBIVMs.js → worker-Hl7N292I.js} +6 -6
- package/migrations/0098_review_item_plugin_actions.sql +5 -0
- package/migrations/0099_conversation_last_message_at.sql +1 -0
- package/migrations/0100_automation_task_kind_repair.sql +48 -0
- package/migrations/meta/0098_snapshot.json +4490 -0
- package/migrations/meta/0099_snapshot.json +4720 -0
- package/migrations/meta/0100_snapshot.json +4496 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +5 -5
- package/dist/assistant-reply-iTtEdDyc.js +0 -58
- package/dist/warmup-DuxCtzKC.js +0 -1039
package/dist/api/schema.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ 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 AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationTask, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, type BoardCard, type BoardColumn, type BoardReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDeliveryBody, type ConversationDeliveryResponse, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationOutline, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type 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 ReplyTimeHistogram, type ReplyTimeSegmentsReport, 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, boardReportSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationOutlineSchema, 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, replyTimeSegmentsReportSchema, 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 AutomationVersionList, $i as CodeOverviewReport, $n as ConversationSubscriptionResponse, $r as conversationDetailWithMailboxReportSchema, $t as isWithinNotificationSchedule, A as runtimeInfoReportSchema, Aa as normalizeUserInputAnswer, Ai as CreateConversationBody, An as personParamsSchema, Ar as ConversationStatsReport, At as workspaceListSchema, B as replyTimeSegmentsReportSchema, Bi as conversationFeedQuerySchema, Bn as CONVERSATION_TITLE_MAX_LENGTH, Br as conversationAutoArchiveSchema, Bt as personalTokenMetadataSchema, C as healthReportSchema, Ca as AutomationCard, Ci as ConversationReportStatus, Cn as ActorTotalsReport, Cr as ContinueConversationInSlackResponse, Ct as scheduledAutomationSummarySchema, D as pluginPackageContentReportSchema, Da as UserInputRequest, Di as ConversationTurnFailureCode, Dn as PersonalSpendReport, Dr as stopConversationTurnResponseSchema, Dt as baselineSnapshotSchema, E as pluginPackageContentItemReportSchema, Ea as UserInputField, Ei as ConversationSurface, En as PersonParams, Er as StopConversationTurnResponse, Et as WorkspaceReport, F as StatsReport, Fa as MAX_INPUT_IMAGE_BYTES, Fi as conversationDetailQuerySchema, Fn as conversationWatchesReportSchema, Fr as ArchiveConversationResponse, Ft as userCustomizationSchema, G as AutomationList, Gi as createConversationBodySchema, Gn as CONVERSATION_OUTLINE_TEXT_LENGTH, Gr as CancelConversationPendingMessagesResponse, Gt as serviceAccountParamsSchema, H as AutomationExecution, Hi as conversationReportEventDataSchema, Hn as RenameConversationResponse, Hr as ConversationFeedItem, Ht as revokePersonalTokenResponseSchema, I as statSchema, Ia as MessageAttachment, Ii as conversationDetailReportSchema, In as ConversationChildAgent, Ir as ConversationAutoArchive, It as PersonalTokenMetadata, J as AutomationRunList, Ji as forkConversationResponseSchema, Jn as ConversationUnread, Jr as ConversationPendingMessagesReport, Jt as NotificationSettings, K as AutomationListQuery, Ki as createConversationMessageBodySchema, Kn as ConversationOutline, Kr as ConversationPendingMessage, Kt as serviceAccountSchema, L as statsReportSchema, La as INLINE_VIDEO_TYPES, Li as conversationEventHistorySchema, Ln as ConversationChildAgentsReport, Lr as archiveConversationBodySchema, Lt as createPersonalTokenBodySchema, M as skillReportSchema, Ma as isAgentInvocationResultEventType, Mi as acceptedConversationMessageSchema, Mn as ConversationWatch, Mr as GuardianStats, Mt as workspaceRepoSchema, N as skillReportsSchema, Na as InputImage, Ni as conversationActivityPreviewSchema, Nn as ConversationWatchesReport, Nr as conversationStatsReportSchema, Nt as workspaceSchema, O as pluginSchema, Oa as buttonUserInputField, Oi as ConversationTurnFailureReason, On as actorDirectoryReportSchema, Or as ConversationMetricDay, Ot as deleteWorkspaceResponseSchema, P as StatReport, Pa as MAX_INPUT_IMAGES, Pi as conversationAuxiliaryCostsSchema, Pn as conversationWatchSchema, Pr as ArchiveConversationBody, Pt as USER_CUSTOMIZATION_MAX_CHARS, Q as AutomationUpdate, Qi as CodeChangeSummaryReport, Qn as ConversationSubscriptionBody, Qr as cancelConversationPendingMessagesResponseSchema, Qt as NotificationSchedule, R as ReplyTimeHistogram, Ra as INPUT_IMAGE_TYPES, Ri as conversationEventPageSchema, Rn as conversationChildAgentSchema, Rr as archiveConversationResponseSchema, Rt as createdPersonalTokenSchema, S as SkillReports, Sa as AutomationTask, Si as ConversationReportMessageEvent, Sn as ActorSummaryReport, Sr as ContinueConversationInSlackBody, St as eventAutomationSummarySchema, T as pluginOperationalReportSchema, Ta as UserInputAnswer, Ti as ConversationSummaryReport, Tn as PeopleActivityDayReport, Tr as continueConversationInSlackResponseSchema, Tt as WorkspaceListReport, U as AutomationExecutionList, Ui as conversationReportEventSchema, Un as renameConversationBodySchema, Ur as conversationFeedSchema, Ut as disconnectServiceAccountResponseSchema, V as AutomationEdit, Vi as conversationParamsSchema, Vn as RenameConversationBody, Vr as ConversationFeed, Vt as personalTokenParamsSchema, W as AutomationExecutionStatusDay, Wi as conversationSummaryReportSchema, Wn as renameConversationResponseSchema, Wr as CancelConversationPendingMessagesBody, Wt as serviceAccountListSchema, X as AutomationScheduleIntent, Xi as conversationTurnFailureReasonSchema, Xn as conversationUnreadSchema, Xr as SteerConversationPendingMessagesResponse, Xt as testNotificationResponseSchema, Y as AutomationRunWindows, Yi as conversationTurnFailureCodeSchema, Yn as MarkConversationUnreadBody, Yr as SteerConversationPendingMessagesBody, Yt as notificationSettingsSchema, Z as AutomationSummary, Zi as CodeActivityDay, Zn as markConversationUnreadBodySchema, Zr as cancelConversationPendingMessagesBodySchema, Zt as DEFAULT_NOTIFICATION_SCHEDULE, _ as PluginPackageContentReport, _a as BoardReport, _i as ConversationEventPage, _n as locationParamsSchema, _r as conversationCatchUpSchema, _t as automationUpdateSchema, a as ReviewItemPayload, aa as codeChangeSummarySchema, ai as steerConversationPendingMessagesBodySchema, an as startConnectionResponseSchema, ar as conversationDeliveryResponseSchema, at as automationExecutionSchema, b as SkillDetailReport, ba as messageCardText, bi as ConversationReportEvent, bn as ActorDirectoryWindows, br as conversationReadPositionSchema, bt as automationVersionParamsSchema, c as reviewItemListSchema, ca as codeRepositoryParamsSchema, ci as ActorIdentity, cn as LocationActivityDayReport, cr as ReorderPinnedConversationsBody, ct as automationListQuerySchema, d as ReviewItemChangeRecord, da as ConversationChildAgentTotals, di as ConversationActivityPreview, dn as LocationDirectoryReport, dr as pinConversationResponseSchema, dt as automationRunListSchema, ea as CodePersonReport, ei as conversationPendingAuthorizationSchema, en as notificationScheduleSchema, er as conversationSubscriptionBodySchema, et as ListedAutomationVersion, f as HealthReport, fa as conversationChildAgentTotalsSchema, fi as ConversationAgentTreeNode, fn as LocationParams, fr as reorderPinnedConversationsBodySchema, ft as automationRunSchema, g as PluginPackageContentItemReport, ga as BoardColumn, gi as ConversationEventHistory, gn as locationDirectoryReportSchema, gr as conversationCatchUpBodySchema, gt as automationSummarySchema, h as PluginOperationalReportFeed, ha as BoardCard, hi as ConversationDetailReport, hn as locationDetailReportSchema, hr as ConversationCatchUpBody, ht as automationSchedulePreviewSchema, i as ReviewItemActionBody, ia as codeChangeSummaryReportSchema, ii as conversationUnchangedDetailWithMailboxSchema, in as disconnectConnectionResponseSchema, ir as conversationDeliveryBodySchema, it as automationExecutionListSchema, j as skillDetailReportSchema, ja as webMessageId, ji as CreateConversationMessageBody, jn as personalSpendReportSchema, jr as GuardianMetricDay, jt as workspaceParamsSchema, k as pluginsSchema, ka as isEmptyUserInputAnswer, ki as ConversationUsage, kn as actorProfileReportSchema, kr as ConversationStatsItem, kt as workspaceBodySchema, l as reviewItemSchema, la as codeRepositoryReportSchema, li as CONVERSATION_DETAIL_VERSION_HEADER, ln as LocationActorSummaryReport, lr as ReorderPinnedConversationsResponse, lt as automationListSchema, m as PluginOperationalReport, ma as dailyConversationActivitySchema, mi as ConversationCost, mn as locationActivityDayReportSchema, mr as ConversationCatchUp, mt as automationScheduleIntentSchema, n as Versions, na as CodeRepositorySummary, ni as conversationPendingMessageSchema, nn as connectionParamsSchema, nr as ConversationDeliveryBody, nt as automationEditSchema, o as reviewItemActionSchema, oa as codeOverviewReportSchema, oi as steerConversationPendingMessagesResponseSchema, on as ApiError, or as PinConversationBody, ot as automationExecutionStatusDaySchema, p as Plugin, pa as DailyConversationActivity, pi as ConversationAuxiliaryCosts, pn as LocationSummaryReport, pr as reorderPinnedConversationsResponseSchema, pt as automationRunWindowsSchema, q as AutomationRun, qi as forkConversationBodySchema, qn as conversationOutlineSchema, qr as ConversationPendingMessageDelivery, qt as startServiceAccountSignInResponseSchema, r as versionsSchema, ra as codeActivityDaySchema, ri as conversationPendingMessagesReportSchema, rn as connectionSchema, rr as ConversationDeliveryResponse, rt as automationEventCatalogSchema, s as reviewItemCountSchema, sa as codePersonReportSchema, si as AcceptedConversationMessage, sn as apiErrorSchema, sr as PinConversationResponse, st as automationExecutionStatusSchema, t as OwnedObjectAnnotation, ta as CodeRepositoryReport, ti as conversationPendingMessageDeliverySchema, tn as connectionListSchema, tr as conversationSubscriptionResponseSchema, tt as automationEditErrorSchema, u as reviewItemWaitingConversationsSchema, ua as codeRepositorySummarySchema, ui as CONVERSATION_VERSION_HEADER, un as LocationDetailReport, ur as pinConversationBodySchema, ut as automationParamsSchema, v as Plugins, va as boardReportSchema, vi as ConversationModelUsage, vn as ActorActivityDayReport, vr as ConversationReadPosition, vt as automationVersionActivateSchema, w as pluginOperationalReportFeedSchema, wa as USER_INPUT_NOTE, wi as ConversationSourceTask, wn as ActorWindowMetrics, wr as continueConversationInSlackBodySchema, wt as BaselineSnapshotReport, x as SkillReport, xa as resolveMessageCards, xi as ConversationReportEventData, xn as ActorProfileReport, xr as conversationReadReportSchema, xt as automationVersionSchema, y as RuntimeInfoReport, ya as MessageCard, yi as ConversationParams, yn as ActorDirectoryReport, yr as ConversationReadReport, yt as automationVersionListSchema, z as ReplyTimeSegmentsReport, zi as conversationEventsQuerySchema, zn as conversationChildAgentsReportSchema, zr as archiveDoneConversationsResponseSchema, zt as personalTokenListSchema } from "../schema-TSEisVJR.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 AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationTask, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, type BoardCard, type BoardColumn, type BoardReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDeliveryBody, type ConversationDeliveryResponse, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationOutline, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type 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 ReplyTimeHistogram, type ReplyTimeSegmentsReport, type ReviewItemActionBody, type ReviewItemChangeRecord, type ReviewItemPayload, type RuntimeInfoReport, type SkillDetailReport, type SkillReport, type SkillReports, type StatReport, type StatsReport, type SteerConversationPendingMessagesBody, type SteerConversationPendingMessagesResponse, type StopConversationTurnResponse, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, type UserInputAnswer, type UserInputField, type UserInputRequest, type Versions, type WorkspaceListReport, type WorkspaceReport, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, 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, boardReportSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationOutlineSchema, 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, replyTimeSegmentsReportSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api/schema.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as conversationTurnFailureCodeSchema, l as conversationTurnFailureReasonSchema, n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "../media-BepyEUNm.js";
|
|
2
2
|
import { n as isWithinNotificationSchedule, r as notificationScheduleSchema, t as DEFAULT_NOTIFICATION_SCHEDULE } from "../schedule-cP0AACm1.js";
|
|
3
|
-
import { A as
|
|
3
|
+
import { A as renameConversationResponseSchema, B as MAX_INPUT_IMAGES, C as createConversationMessageBodySchema, D as CONVERSATION_TITLE_MAX_LENGTH, E as conversationChildAgentTotalsSchema, I as messageCardText, M as conversationReadReportSchema, S as createConversationBodySchema, T as forkConversationResponseSchema, V as MAX_INPUT_IMAGE_BYTES, a as conversationActivityPreviewSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, g as conversationReportEventSchema, h as conversationReportEventDataSchema, j as conversationReadPositionSchema, k as renameConversationBodySchema, l as conversationDetailReportSchema, m as conversationParamsSchema, 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 forkConversationBodySchema, y as conversationSummaryReportSchema, z as resolveMessageCards } from "../conversation-CMkSmi02.js";
|
|
4
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-
|
|
6
|
-
import { _ as
|
|
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-yJX3C7i3.js";
|
|
6
|
+
import { C as skillReportsSchema, S as skillReportSchema, _ as pluginPackageContentReportSchema, a as conversationDetailWithMailboxReportSchema, b as runtimeInfoReportSchema, c as conversationPendingMessageSchema, d as steerConversationPendingMessagesBodySchema, f as steerConversationPendingMessagesResponseSchema, g as pluginPackageContentItemReportSchema, h as pluginOperationalReportSchema, i as cancelConversationPendingMessagesResponseSchema, l as conversationPendingMessagesReportSchema, m as pluginOperationalReportFeedSchema, n as conversationFeedSchema, o as conversationPendingAuthorizationSchema, p as healthReportSchema, r as cancelConversationPendingMessagesBodySchema, s as conversationPendingMessageDeliverySchema, u as conversationUnchangedDetailWithMailboxSchema, v as pluginSchema, x as skillDetailReportSchema, y as pluginsSchema } from "../conversation-feed-BVAOga0H.js";
|
|
7
7
|
import { n as isAgentInvocationResultEventType } from "../result-event-type-DD6BAgT7.js";
|
|
8
|
-
import { $ as codeActivityDaySchema, A as revokePersonalTokenResponseSchema, At as reorderPinnedConversationsBodySchema, C as serviceAccountSchema, Ct as markConversationUnreadBodySchema, D as personalTokenListSchema, Dt as conversationDeliveryResponseSchema, E as createdPersonalTokenSchema, Et as conversationDeliveryBodySchema, F as personalSpendReportSchema, I as locationActivityDayReportSchema, J as connectionListSchema, L as locationDetailReportSchema, M as actorProfileReportSchema, Mt as conversationCatchUpBodySchema, Nt as conversationCatchUpSchema, O as personalTokenMetadataSchema, Ot as pinConversationBodySchema, P as personParamsSchema, Q as startConnectionResponseSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as conversationUnreadSchema, T as createPersonalTokenBodySchema, Tt as conversationSubscriptionResponseSchema, U as dailyConversationActivitySchema, W as notificationSettingsSchema, X as connectionSchema, Y as connectionParamsSchema, Z as disconnectConnectionResponseSchema, _t as conversationOutlineSchema, a as replyTimeSegmentsReportSchema, at as codeRepositoryReportSchema, b as disconnectServiceAccountResponseSchema, bt as archiveDoneConversationsResponseSchema, c as workspaceBodySchema, ct as conversationWatchSchema, d as workspaceRepoSchema, dt as conversationChildAgentsReportSchema, et as codeChangeSummaryReportSchema, f as workspaceSchema, ft as continueConversationInSlackBodySchema, g as reviewItemListSchema, gt as CONVERSATION_OUTLINE_TEXT_LENGTH, ht as conversationStatsReportSchema, i as statsReportSchema, it as codeRepositoryParamsSchema, j as actorDirectoryReportSchema, jt as reorderPinnedConversationsResponseSchema, k as personalTokenParamsSchema, kt as pinConversationResponseSchema, l as workspaceListSchema, lt as conversationWatchesReportSchema, m as reviewItemCountSchema, mt as stopConversationTurnResponseSchema, n as versionsSchema, nt as codeOverviewReportSchema, o as baselineSnapshotSchema, ot as codeRepositorySummarySchema, p as reviewItemActionSchema, pt as continueConversationInSlackResponseSchema, q as testNotificationResponseSchema, r as statSchema, rt as codePersonReportSchema, s as deleteWorkspaceResponseSchema, st as boardReportSchema, tt as codeChangeSummarySchema, u as workspaceParamsSchema, ut as conversationChildAgentSchema, v as reviewItemSchema, vt as archiveConversationBodySchema, w as startServiceAccountSignInResponseSchema, wt as conversationSubscriptionBodySchema, x as serviceAccountListSchema, xt as conversationAutoArchiveSchema, y as reviewItemWaitingConversationsSchema, yt as archiveConversationResponseSchema, z as locationParamsSchema } from "../schema-
|
|
9
|
-
export { CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_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, boardReportSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationOutlineSchema, 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, replyTimeSegmentsReportSchema, 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 codeActivityDaySchema, A as revokePersonalTokenResponseSchema, At as reorderPinnedConversationsBodySchema, C as serviceAccountSchema, Ct as markConversationUnreadBodySchema, D as personalTokenListSchema, Dt as conversationDeliveryResponseSchema, E as createdPersonalTokenSchema, Et as conversationDeliveryBodySchema, F as personalSpendReportSchema, I as locationActivityDayReportSchema, J as connectionListSchema, L as locationDetailReportSchema, M as actorProfileReportSchema, Mt as conversationCatchUpBodySchema, Nt as conversationCatchUpSchema, O as personalTokenMetadataSchema, Ot as pinConversationBodySchema, P as personParamsSchema, Q as startConnectionResponseSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as conversationUnreadSchema, T as createPersonalTokenBodySchema, Tt as conversationSubscriptionResponseSchema, U as dailyConversationActivitySchema, W as notificationSettingsSchema, X as connectionSchema, Y as connectionParamsSchema, Z as disconnectConnectionResponseSchema, _t as conversationOutlineSchema, a as replyTimeSegmentsReportSchema, at as codeRepositoryReportSchema, b as disconnectServiceAccountResponseSchema, bt as archiveDoneConversationsResponseSchema, c as workspaceBodySchema, ct as conversationWatchSchema, d as workspaceRepoSchema, dt as conversationChildAgentsReportSchema, et as codeChangeSummaryReportSchema, f as workspaceSchema, ft as continueConversationInSlackBodySchema, g as reviewItemListSchema, gt as CONVERSATION_OUTLINE_TEXT_LENGTH, ht as conversationStatsReportSchema, i as statsReportSchema, it as codeRepositoryParamsSchema, j as actorDirectoryReportSchema, jt as reorderPinnedConversationsResponseSchema, k as personalTokenParamsSchema, kt as pinConversationResponseSchema, l as workspaceListSchema, lt as conversationWatchesReportSchema, m as reviewItemCountSchema, mt as stopConversationTurnResponseSchema, n as versionsSchema, nt as codeOverviewReportSchema, o as baselineSnapshotSchema, ot as codeRepositorySummarySchema, p as reviewItemActionSchema, pt as continueConversationInSlackResponseSchema, q as testNotificationResponseSchema, r as statSchema, rt as codePersonReportSchema, s as deleteWorkspaceResponseSchema, st as boardReportSchema, tt as codeChangeSummarySchema, u as workspaceParamsSchema, ut as conversationChildAgentSchema, v as reviewItemSchema, vt as archiveConversationBodySchema, w as startServiceAccountSignInResponseSchema, wt as conversationSubscriptionBodySchema, x as serviceAccountListSchema, xt as conversationAutoArchiveSchema, y as reviewItemWaitingConversationsSchema, yt as archiveConversationResponseSchema, z as locationParamsSchema } from "../schema-BhneuGYv.js";
|
|
9
|
+
export { CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_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, boardReportSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationOutlineSchema, 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, replyTimeSegmentsReportSchema, resolveMessageCards, reviewItemActionSchema, reviewItemCountSchema, reviewItemListSchema, reviewItemSchema, reviewItemWaitingConversationsSchema, revokePersonalTokenResponseSchema, runtimeInfoReportSchema, scheduledAutomationSummarySchema, serviceAccountListSchema, serviceAccountParamsSchema, serviceAccountSchema, skillDetailReportSchema, skillReportSchema, skillReportsSchema, startConnectionResponseSchema, startServiceAccountSignInResponseSchema, statSchema, statsReportSchema, steerConversationPendingMessagesBodySchema, steerConversationPendingMessagesResponseSchema, stopConversationTurnResponseSchema, testNotificationResponseSchema, userCustomizationSchema, versionsSchema, webMessageId, workspaceBodySchema, workspaceListSchema, workspaceParamsSchema, workspaceRepoSchema, workspaceSchema };
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { $a as createConversationAccessReader, $n as savePushSubscription, Bn as getPlugins, Dr as reviewItemReaderForUserInConversation, Ei as hash, En as createUserTokenStore, Er as reviewItemReaderForUser, Jn as resolveNotificationTimezone, Kn as readWebPushConfig,
|
|
2
|
-
import { L as escapeXml, Y as getAttachmentStorage, n as botConfig } from "./config-
|
|
3
|
-
import { m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { $a as createConversationAccessReader, $n as savePushSubscription, Bn as getPlugins, Dr as reviewItemReaderForUserInConversation, Ei as hash, En as createUserTokenStore, Er as reviewItemReaderForUser, Jn as resolveNotificationTimezone, Kn as readWebPushConfig, Pa as workspaceRepoCheckoutPath, Po as createPluginCache, Qn as saveNotificationSchedule, Ti as create, Tr as reviewItemNeedsUser, Xa as createPluginLogger, Xn as listPushSubscriptions, Yn as deletePushSubscription, Zn as readNotificationSchedule, _i as listWorkspaces, bi as WorkspaceValidationError, br as isOnlyAssignee, co as readConversationBriefThrough, dr as reviewItemsNeedingUserVersionQuery, eo as readConversationAccessFromSql, er as isPausedBySlack, fr as searchReviewItems, gr as canActOnReviewItem, hi as getWorkspace, hr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, ir as countReviewItemsNeedingUser, ja as SANDBOX_RUNTIME, mi as deleteWorkspace, no as conversationIsMemberRoot, oi as getDashboardSettingsLink, pi as createWorkspace, qn as sendPushNotificationToUser, uo as readConversationEventPage, ur as listWaitingConversations, vi as listWorkspacesByRepository, yi as updateWorkspace } from "./projection-BzJQncZV.js";
|
|
2
|
+
import { L as escapeXml, Y as getAttachmentStorage, n as botConfig } from "./config-DvnTPCfp.js";
|
|
3
|
+
import { m as logInfo, p as logException } from "./logging-9OAq-fdg.js";
|
|
4
4
|
import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
5
|
-
import {
|
|
6
|
-
import { A as juniorConversations, D as juniorCodeChanges, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorIdentities, l as juniorReviewItems, s as juniorReviewItemConversations, w as juniorConversationEvents } from "./executor-
|
|
5
|
+
import { O as conversationKindFromRow, S as withConversationMutationLock, a as getConversationStore, o as getDb, s as getSqlExecutor, tt as nextDetailVersion, v as loadConversationSlackTenantIds } from "./db-Dts2XvLu.js";
|
|
6
|
+
import { A as juniorConversations, D as juniorCodeChanges, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorIdentities, l as juniorReviewItems, s as juniorReviewItemConversations, w as juniorConversationEvents } from "./executor-Ck73J0wP.js";
|
|
7
7
|
import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-BepyEUNm.js";
|
|
8
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
9
|
-
import { $ as readViewerAutomationSummary, $t as resumeConversationDelivery, A as runWithSlackInstallation, Ct as emptyResponse, G as changeViewerAutomationLifecycle, J as updateViewerAutomation, K as deleteViewerTask, Q as readViewerAutomationRuns, Qt as pauseConversationDelivery, S as createSlackReviewItemShow, Tt as throwApiError, W as activateViewerAutomationVersion, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, Zt as canPauseConversationDelivery, _t as readLiveAttachment, bt as archiveConversation, et as readViewerAutomationVersions, it as listOwnedWatches, m as readStats, mt as webActorFromUser, nt as AutomationEditError, on as listedConversation, q as readViewerAutomationEdit, sn as listChildAgents, tt as readViewerAutomations, v as setConversationSubscription, wt as jsonResponse } from "./agent-runner-
|
|
10
|
-
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-
|
|
11
|
-
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail } from "./viewer-
|
|
12
|
-
import {
|
|
8
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DgouZKZm.js";
|
|
9
|
+
import { $ as readViewerAutomationSummary, $t as resumeConversationDelivery, A as runWithSlackInstallation, Ct as emptyResponse, G as changeViewerAutomationLifecycle, J as updateViewerAutomation, K as deleteViewerTask, Q as readViewerAutomationRuns, Qt as pauseConversationDelivery, S as createSlackReviewItemShow, Tt as throwApiError, W as activateViewerAutomationVersion, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, Zt as canPauseConversationDelivery, _t as readLiveAttachment, bt as archiveConversation, et as readViewerAutomationVersions, it as listOwnedWatches, m as readStats, mt as webActorFromUser, nt as AutomationEditError, on as listedConversation, q as readViewerAutomationEdit, sn as listChildAgents, tt as readViewerAutomations, v as setConversationSubscription, wt as jsonResponse } from "./agent-runner-DjMTPWEO.js";
|
|
10
|
+
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-Cbq5b4SO.js";
|
|
11
|
+
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail } from "./viewer-Bqkb678l.js";
|
|
12
|
+
import { a as getStateAdapter } from "./state-CO9ETDzk.js";
|
|
13
13
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
14
|
-
import { A as
|
|
15
|
-
import { a as segmentGapsKey, h as gapHistogramReport, u as GAP_SEGMENTS } from "./warmup-
|
|
16
|
-
import { g as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
17
|
-
import { O as getEventCatalog, et as readUserCustomization, rt as isExperimentalFeatureEnabled, tt as saveUserCustomization } from "./session-stop-
|
|
14
|
+
import { A as renameConversationResponseSchema, C as createConversationMessageBodySchema, M as conversationReadReportSchema, S as createConversationBodySchema, T as forkConversationResponseSchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, j as conversationReadPositionSchema, k as renameConversationBodySchema, l as conversationDetailReportSchema, m as conversationParamsSchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, w as forkConversationBodySchema } from "./conversation-CMkSmi02.js";
|
|
15
|
+
import { a as segmentGapsKey, h as gapHistogramReport, u as GAP_SEGMENTS } from "./warmup-h6u1e9n0.js";
|
|
16
|
+
import { g as getVercelConversationWorkQueue } from "./background-compaction-queue-DUkHZjmL.js";
|
|
17
|
+
import { O as getEventCatalog, et as readUserCustomization, rt as isExperimentalFeatureEnabled, tt as saveUserCustomization } from "./session-stop-DkxI5vc3.js";
|
|
18
18
|
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";
|
|
19
|
-
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-
|
|
20
|
-
import { J as AutomationConflictError, at as readAutomationTitlesByConversationId, ct as conversationRangeColumns, st as conversationAggregateColumns, vt as automationEventCatalog } from "./task-runner-
|
|
21
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
22
|
-
import { F as compileScheduleIntent, P as ScheduleIntentError, U as automationTaskText, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-
|
|
23
|
-
import {
|
|
24
|
-
import { $ as actOnReviewItem, C as createConversationForViewer, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, M as getProductionSlackAdapter, O as requireConversationPendingMessages, Q as ReviewItemActionError, S as appendConversationMessageForViewer, _ as keepQuickQuestionForViewer, a as pinConversation, at as continueConversationInSlack, c as readConversationParticipants, ct as archiveViewerDoneConversations, d as readConversationTreeMetricsFromSql, dt as setConversationAutoArchive, f as conversationVersionQuery, ft as updateUserAutoArchiveSettings, g as forkConversationForViewer, gt as readHealthReport, h as reportConversationRead, i as readConversationFeed, it as canContinueInSlack, k as resolveMentions, l as readConversationAuxiliaryCostsFromSql, lt as readUserAutoArchiveSettings, m as markConversationUnread, n as steerConversationPendingMessagesForViewer, o as reorderPinnedConversations, p as readConversationDetailEtag, r as conversationFeedVersionQuery, s as readConversationDetail, st as DEFAULT_AUTO_ARCHIVE_SETTINGS, t as stopConversationTurnForViewer, tt as readReviewItemForUser, u as childAgentTotalsReport, v as readConversationEvents, x as readFirstHumanMessageTexts, y as conversationSummaryFromStoredConversation } from "./stop-
|
|
25
|
-
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-
|
|
26
|
-
import { A as revokePersonalTokenResponseSchema, At as reorderPinnedConversationsBodySchema, B as activityDays$1, Ct as markConversationUnreadBodySchema, D as personalTokenListSchema, Dt as conversationDeliveryResponseSchema, E as createdPersonalTokenSchema, Et as conversationDeliveryBodySchema, F as personalSpendReportSchema, G as pushSubscriptionBodySchema, H as activitySixHours$1, J as connectionListSchema, K as pushSubscriptionDeleteBodySchema, L as locationDetailReportSchema, M as actorProfileReportSchema, Mt as conversationCatchUpBodySchema, N as avatarParamsSchema, Nt as conversationCatchUpSchema, Ot as pinConversationBodySchema, P as personParamsSchema, Q as startConnectionResponseSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as conversationUnreadSchema, T as createPersonalTokenBodySchema, Tt as conversationSubscriptionResponseSchema, V as activityHours$1, W as notificationSettingsSchema, Y as connectionParamsSchema, Z as disconnectConnectionResponseSchema, _ as reviewItemParamsSchema, _t as conversationOutlineSchema, a as replyTimeSegmentsReportSchema, at as codeRepositoryReportSchema, b as disconnectServiceAccountResponseSchema, bt as archiveDoneConversationsResponseSchema, c as workspaceBodySchema, dt as conversationChildAgentsReportSchema, f as workspaceSchema, ft as continueConversationInSlackBodySchema, g as reviewItemListSchema, h as reviewItemListQuerySchema, ht as conversationStatsReportSchema, i as statsReportSchema, it as codeRepositoryParamsSchema, j as actorDirectoryReportSchema, jt as reorderPinnedConversationsResponseSchema, k as personalTokenParamsSchema, kt as pinConversationResponseSchema, l as workspaceListSchema, lt as conversationWatchesReportSchema, m as reviewItemCountSchema, mt as stopConversationTurnResponseSchema, n as versionsSchema, nt as codeOverviewReportSchema, p as reviewItemActionSchema, pt as continueConversationInSlackResponseSchema, q as testNotificationResponseSchema, rt as codePersonReportSchema, s as deleteWorkspaceResponseSchema, st as boardReportSchema, t as versionsQuerySchema, u as workspaceParamsSchema, v as reviewItemSchema, vt as archiveConversationBodySchema, w as startServiceAccountSignInResponseSchema, wt as conversationSubscriptionBodySchema, x as serviceAccountListSchema, xt as conversationAutoArchiveSchema, y as reviewItemWaitingConversationsSchema, yt as archiveConversationResponseSchema, z as locationParamsSchema } from "./schema-
|
|
19
|
+
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-t-pmRdwS.js";
|
|
20
|
+
import { J as AutomationConflictError, at as readAutomationTitlesByConversationId, ct as conversationRangeColumns, st as conversationAggregateColumns, vt as automationEventCatalog } from "./task-runner-CKOj6xla.js";
|
|
21
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-DjPIwCMj.js";
|
|
22
|
+
import { F as compileScheduleIntent, P as ScheduleIntentError, U as automationTaskText, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-yJX3C7i3.js";
|
|
23
|
+
import { C as skillReportsSchema, a as conversationDetailWithMailboxReportSchema, b as runtimeInfoReportSchema, d as steerConversationPendingMessagesBodySchema, f as steerConversationPendingMessagesResponseSchema, i as cancelConversationPendingMessagesResponseSchema, l as conversationPendingMessagesReportSchema, m as pluginOperationalReportFeedSchema, n as conversationFeedSchema, p as healthReportSchema, r as cancelConversationPendingMessagesBodySchema, u as conversationUnchangedDetailWithMailboxSchema, x as skillDetailReportSchema, y as pluginsSchema } from "./conversation-feed-BVAOga0H.js";
|
|
24
|
+
import { $ as actOnReviewItem, C as createConversationForViewer, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, M as getProductionSlackAdapter, O as requireConversationPendingMessages, Q as ReviewItemActionError, S as appendConversationMessageForViewer, _ as keepQuickQuestionForViewer, a as pinConversation, at as continueConversationInSlack, c as readConversationParticipants, ct as archiveViewerDoneConversations, d as readConversationTreeMetricsFromSql, dt as setConversationAutoArchive, f as conversationVersionQuery, ft as updateUserAutoArchiveSettings, g as forkConversationForViewer, gt as readHealthReport, h as reportConversationRead, i as readConversationFeed, it as canContinueInSlack, k as resolveMentions, l as readConversationAuxiliaryCostsFromSql, lt as readUserAutoArchiveSettings, m as markConversationUnread, n as steerConversationPendingMessagesForViewer, o as reorderPinnedConversations, p as readConversationDetailEtag, r as conversationFeedVersionQuery, s as readConversationDetail, st as DEFAULT_AUTO_ARCHIVE_SETTINGS, t as stopConversationTurnForViewer, tt as readReviewItemForUser, u as childAgentTotalsReport, v as readConversationEvents, x as readFirstHumanMessageTexts, y as conversationSummaryFromStoredConversation } from "./stop-CL-rdtQb.js";
|
|
25
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-CWaIVl_1.js";
|
|
26
|
+
import { A as revokePersonalTokenResponseSchema, At as reorderPinnedConversationsBodySchema, B as activityDays$1, Ct as markConversationUnreadBodySchema, D as personalTokenListSchema, Dt as conversationDeliveryResponseSchema, E as createdPersonalTokenSchema, Et as conversationDeliveryBodySchema, F as personalSpendReportSchema, G as pushSubscriptionBodySchema, H as activitySixHours$1, J as connectionListSchema, K as pushSubscriptionDeleteBodySchema, L as locationDetailReportSchema, M as actorProfileReportSchema, Mt as conversationCatchUpBodySchema, N as avatarParamsSchema, Nt as conversationCatchUpSchema, Ot as pinConversationBodySchema, P as personParamsSchema, Q as startConnectionResponseSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as conversationUnreadSchema, T as createPersonalTokenBodySchema, Tt as conversationSubscriptionResponseSchema, V as activityHours$1, W as notificationSettingsSchema, Y as connectionParamsSchema, Z as disconnectConnectionResponseSchema, _ as reviewItemParamsSchema, _t as conversationOutlineSchema, a as replyTimeSegmentsReportSchema, at as codeRepositoryReportSchema, b as disconnectServiceAccountResponseSchema, bt as archiveDoneConversationsResponseSchema, c as workspaceBodySchema, dt as conversationChildAgentsReportSchema, f as workspaceSchema, ft as continueConversationInSlackBodySchema, g as reviewItemListSchema, h as reviewItemListQuerySchema, ht as conversationStatsReportSchema, i as statsReportSchema, it as codeRepositoryParamsSchema, j as actorDirectoryReportSchema, jt as reorderPinnedConversationsResponseSchema, k as personalTokenParamsSchema, kt as pinConversationResponseSchema, l as workspaceListSchema, lt as conversationWatchesReportSchema, m as reviewItemCountSchema, mt as stopConversationTurnResponseSchema, n as versionsSchema, nt as codeOverviewReportSchema, p as reviewItemActionSchema, pt as continueConversationInSlackResponseSchema, q as testNotificationResponseSchema, rt as codePersonReportSchema, s as deleteWorkspaceResponseSchema, st as boardReportSchema, t as versionsQuerySchema, u as workspaceParamsSchema, v as reviewItemSchema, vt as archiveConversationBodySchema, w as startServiceAccountSignInResponseSchema, wt as conversationSubscriptionBodySchema, x as serviceAccountListSchema, xt as conversationAutoArchiveSchema, y as reviewItemWaitingConversationsSchema, yt as archiveConversationResponseSchema, z as locationParamsSchema } from "./schema-BhneuGYv.js";
|
|
27
27
|
import { Hono } from "hono";
|
|
28
28
|
import path from "node:path";
|
|
29
29
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
@@ -31,6 +31,7 @@ import * as z from "zod";
|
|
|
31
31
|
import { and, arrayOverlaps, asc, desc, eq, gt, gte, inArray, isNull, like, lte, or, sql } from "drizzle-orm";
|
|
32
32
|
import { conversationAnnotationInputSchema, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema } from "@sentry/junior-plugin-api";
|
|
33
33
|
import { alias } from "drizzle-orm/pg-core";
|
|
34
|
+
import fs from "node:fs/promises";
|
|
34
35
|
import { readFileSync } from "node:fs";
|
|
35
36
|
import { HTTPException } from "hono/http-exception";
|
|
36
37
|
import { bodyLimit } from "hono/body-limit";
|
|
@@ -1118,7 +1119,7 @@ async function readBoard(args) {
|
|
|
1118
1119
|
readConversationParticipants(db, rootIds)
|
|
1119
1120
|
]);
|
|
1120
1121
|
const codeChangeUrls = codeChanges.flatMap((change) => change.state === "open" && change.url ? [change.url] : []);
|
|
1121
|
-
const readyUrls = new Set(codeChangeUrls.length === 0 ? [] : (await db.select({ subjectId: juniorReviewItems.subjectId }).from(juniorReviewItems).where(and(eq(juniorReviewItems.status, "open"),
|
|
1122
|
+
const readyUrls = new Set(codeChangeUrls.length === 0 ? [] : (await db.select({ subjectId: juniorReviewItems.subjectId }).from(juniorReviewItems).where(and(eq(juniorReviewItems.status, "open"), like(juniorReviewItems.dedupeKey, `${PLUGIN_REVIEW_ITEM_KEY_PREFIX}%`), inArray(juniorReviewItems.subjectId, codeChangeUrls)))).flatMap((row) => row.subjectId ? [row.subjectId] : []));
|
|
1122
1123
|
const homes = /* @__PURE__ */ new Map();
|
|
1123
1124
|
const workingHomes = /* @__PURE__ */ new Set();
|
|
1124
1125
|
const needsViewerHomes = /* @__PURE__ */ new Set();
|
|
@@ -2666,7 +2667,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2666
2667
|
reports: [],
|
|
2667
2668
|
source: "plugins"
|
|
2668
2669
|
});
|
|
2669
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2670
|
+
const { getPluginProfileReports } = await import("./projection-BzJQncZV.js").then((n) => n.jn);
|
|
2670
2671
|
return pluginOperationalReportFeedSchema.parse({
|
|
2671
2672
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2672
2673
|
reports: await getPluginProfileReports({
|
|
@@ -3695,7 +3696,7 @@ function readDescriptionText(home) {
|
|
|
3695
3696
|
}
|
|
3696
3697
|
/** Read discovered skills for runtime diagnostics and the Automation editor. */
|
|
3697
3698
|
async function readSkillReports() {
|
|
3698
|
-
const { discoverSkills } = await import("./skills-
|
|
3699
|
+
const { discoverSkills } = await import("./skills-BZE2DP8I.js").then((n) => n.o);
|
|
3699
3700
|
const skills = await discoverSkills();
|
|
3700
3701
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3701
3702
|
name: skill.name,
|
|
@@ -3704,9 +3705,27 @@ async function readSkillReports() {
|
|
|
3704
3705
|
disableModelInvocation: skill.disableModelInvocation
|
|
3705
3706
|
})));
|
|
3706
3707
|
}
|
|
3708
|
+
/**
|
|
3709
|
+
* Read one discovered skill with the body its author wrote, so people can see
|
|
3710
|
+
* what the skill tells Junior. Returns null when no skill has that name.
|
|
3711
|
+
*/
|
|
3712
|
+
async function readSkillDetailReport(name) {
|
|
3713
|
+
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-BZE2DP8I.js").then((n) => n.o);
|
|
3714
|
+
const skill = findSkillByName(name, await discoverSkills());
|
|
3715
|
+
if (!skill) return null;
|
|
3716
|
+
const parsed = parseSkillFile(await fs.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
3717
|
+
if (!parsed.ok) throw new Error(`Invalid skill file for ${skill.name}: ${parsed.error}`);
|
|
3718
|
+
return skillDetailReportSchema.parse({
|
|
3719
|
+
name: skill.name,
|
|
3720
|
+
description: skill.description,
|
|
3721
|
+
pluginProvider: skill.pluginProvider,
|
|
3722
|
+
disableModelInvocation: skill.disableModelInvocation,
|
|
3723
|
+
body: parsed.skill.body
|
|
3724
|
+
});
|
|
3725
|
+
}
|
|
3707
3726
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3708
3727
|
async function readPlugins() {
|
|
3709
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3728
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-DgouZKZm.js").then((n) => n.t);
|
|
3710
3729
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3711
3730
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3712
3731
|
description: plugin.manifest.description,
|
|
@@ -3718,7 +3737,7 @@ async function readPlugins() {
|
|
|
3718
3737
|
async function readRuntimeInfoReport() {
|
|
3719
3738
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3720
3739
|
import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
|
|
3721
|
-
import("./catalog-runtime-
|
|
3740
|
+
import("./catalog-runtime-DgouZKZm.js").then((n) => n.t),
|
|
3722
3741
|
readPlugins(),
|
|
3723
3742
|
readSkillReports()
|
|
3724
3743
|
]);
|
|
@@ -3735,7 +3754,7 @@ async function readRuntimeInfoReport() {
|
|
|
3735
3754
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3736
3755
|
async function readPluginOperationalReportFeed() {
|
|
3737
3756
|
const nowMs = Date.now();
|
|
3738
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3757
|
+
const { getPluginOperationalReports } = await import("./projection-BzJQncZV.js").then((n) => n.jn);
|
|
3739
3758
|
return pluginOperationalReportFeedSchema.parse({
|
|
3740
3759
|
source: "plugins",
|
|
3741
3760
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -3750,6 +3769,11 @@ function createJuniorApi(options = {}) {
|
|
|
3750
3769
|
app.get("/api/runtime", async () => jsonResponse(runtimeInfoReportSchema, await readRuntimeInfoReport()));
|
|
3751
3770
|
app.get("/api/plugins", async () => jsonResponse(pluginsSchema, await readPlugins()));
|
|
3752
3771
|
app.get("/api/skills", async () => jsonResponse(skillReportsSchema, await readSkillReports()));
|
|
3772
|
+
app.get("/api/skills/:name", async (context) => {
|
|
3773
|
+
const skill = await readSkillDetailReport(context.req.param("name"));
|
|
3774
|
+
if (!skill) throwApiError(404, "Skill not found.");
|
|
3775
|
+
return jsonResponse(skillDetailReportSchema, skill);
|
|
3776
|
+
});
|
|
3753
3777
|
app.get("/api/plugin-reports", async () => jsonResponse(pluginOperationalReportFeedSchema, await readPluginOperationalReportFeed()));
|
|
3754
3778
|
app.get("/api/stats", async () => jsonResponse(statsReportSchema, await readStatsReport()));
|
|
3755
3779
|
app.get("/api/reply-times", async () => jsonResponse(replyTimeSegmentsReportSchema, await readReplyTimeSegments()));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
|
|
2
|
-
import { t as ConversationStore } from "./db-
|
|
3
|
-
import "./schema-
|
|
4
|
-
import { n as JuniorPluginSet } from "./plugins-
|
|
2
|
+
import { t as ConversationStore } from "./db-CCUqQe0E.js";
|
|
3
|
+
import "./schema-TSEisVJR.js";
|
|
4
|
+
import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
|
7
7
|
import "@earendil-works/pi-ai/compat";
|
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
|
|
2
|
-
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-
|
|
1
|
+
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-uiTzRbvq.js";
|
|
2
|
+
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };
|
package/dist/app.js
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { $r as verifyScheduledAutomationCredentialSubject, Aa as normalizeSandboxEgressTracePropagationDomains, Ai as isVercelSandboxEgressRequest, At as isInvalidConversationRecordError, Bn as getPlugins, C as settleConversationTitleWork, Ca as consumeSandboxEgressAuthRequiredSignal, Co as resolveRootVisibility, Dr as reviewItemReaderForUserInConversation, Ea as parseSandboxEgressCredentialToken, En as createUserTokenStore, Eo as listConversationAnnotations, Er as reviewItemReaderForUser, Fi as resolveBaseUrl, Fn as getPluginRoutes, Gn as setBriefsConfig, Gr as findMatchingWatches, Hn as validatePlugins, Ia as createPluginEmbedder, Ji as postSlackEphemeralMessage, Jr as takeDueTimerWatches, Li as escapeSlackMrkdwnText, Mn as createPluginEventPublisher,
|
|
3
|
-
import { Y 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-
|
|
4
|
-
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, H as GOOGLE_IDENTITY_PROVIDER, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, W as normalizeIdentityEmail, b as setSpanAttributes, h as logWarn, k as JUNIOR_CACHE_WARMUP_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 { $r as verifyScheduledAutomationCredentialSubject, Aa as normalizeSandboxEgressTracePropagationDomains, Ai as isVercelSandboxEgressRequest, At as isInvalidConversationRecordError, Bn as getPlugins, Bo as getConfigDefaults, C as settleConversationTitleWork, Ca as consumeSandboxEgressAuthRequiredSignal, Co as resolveRootVisibility, Dr as reviewItemReaderForUserInConversation, Ea as parseSandboxEgressCredentialToken, En as createUserTokenStore, Eo as listConversationAnnotations, Er as reviewItemReaderForUser, Fi as resolveBaseUrl, Fn as getPluginRoutes, Gn as setBriefsConfig, Gr as findMatchingWatches, Hn as validatePlugins, Ia as createPluginEmbedder, Ji as postSlackEphemeralMessage, Jr as takeDueTimerWatches, Li as escapeSlackMrkdwnText, Mn as createPluginEventPublisher, Ot as hasRunnableConversationWork, Pn as getPluginApiRoutes, Po as createPluginCache, Pt as pruneActiveConversation, Qr as verifyEventAutomationCredentialSubject, Ri as formatSlackLink, Sa as clearSandboxEgressSignals, Vi as slackMention, Vn as setPlugins, Vo as setConfigDefaults, Vr as collectEventMatchKeys, Xa as createPluginLogger, Xr as bindScheduledAutomationCredentialSubject, Yr as bindEventAutomationCredentialSubject, Zi as unfurlSlackLinks, Zr as bindSlackDirectCredentialSubject, _ as appendConversationMessages, ai as getDashboardReviewItemLink, ar as dismissOpenReviewItems, ca as isDmChannel, ci as parseDashboardConversationLink, di as createPluginState, do as readConversationEventPageAfter, ea as slackEntitySchema, ei as verifySlackDirectCredentialSubject, eo as readConversationAccessFromSql, fa as getWorkspaceTeamId, fr as searchReviewItems, gr as canActOnReviewItem, ji as proxyVercelSandboxEgressRequest, li as setDashboardConversationLinkOptions, lo as readLatestConversationBrief, mo as readConversationMessageEventSeq, oa as getSlackClient, pa as runWithWorkspaceTeamId, po as readConversationLastEventSeq, qi as openSlackModal, ri as getDashboardConversationLink, si as getDashboardTaskLink, ta as slackExternalRefIdSchema, tr as projectConversationMessages, uo as readConversationEventPage, ut as CONVERSATION_WORK_STALE_ENQUEUE_MS, wa as consumeSandboxEgressPermissionDeniedSignal } from "./projection-BzJQncZV.js";
|
|
3
|
+
import { Y 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-DvnTPCfp.js";
|
|
4
|
+
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, H as GOOGLE_IDENTITY_PROVIDER, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, W as normalizeIdentityEmail, b as setSpanAttributes, h as logWarn, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-9OAq-fdg.js";
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-AQa7Fr2H.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, $t as resumeConversationDelivery, A as runWithSlackInstallation, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, E as buildSlackReviewItemModal, H as logScheduledAutomationRunSkipped, I as checkSlackChannelReadAccess, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as recordSubagentEnded, S as createSlackReviewItemShow, St as markConversationRead, U as scheduledAutomationRunAttributes, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, _ as unpublishedArtifactHeaders, at as deliverReviewItemChange, bt as archiveConversation, dn as findAutomationSkill, fn as missingAutomationSkillReason, g as readPublicArtifact, gt as collectAttachmentGarbage, h as publicArtifactHeaders, j as verifySlackSignature, k as parseSlackUserInputSubmission, ln as processWorkspaceSnapshotJob, 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, un as ingestEvent, ut as conversationTurnIdForMessage, v as setConversationSubscription, vt as requestAttachmentDeletion, w as syncReviewItemSlackCards, y as lookupSlackUserProfile, z as joinPublicChannel } from "./agent-runner-
|
|
7
|
+
import { B as recordGoogleSignIn, G as getConversationIdByProviderConversation, O as conversationKindFromRow, P as resolveActorIdentityId, S as withConversationMutationLock, a as getConversationStore, nt as touchConversationDetail, o as getDb, p as withConversationEventLock, r as getConversationEventStore, rt as createSlackDestination, s as getSqlExecutor, t as closeDb } from "./db-Dts2XvLu.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-Ck73J0wP.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-DgouZKZm.js";
|
|
10
|
+
import { $ as readViewerAutomationSummary, $t as resumeConversationDelivery, A as runWithSlackInstallation, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, E as buildSlackReviewItemModal, H as logScheduledAutomationRunSkipped, I as checkSlackChannelReadAccess, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as recordSubagentEnded, S as createSlackReviewItemShow, St as markConversationRead, U as scheduledAutomationRunAttributes, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, _ as unpublishedArtifactHeaders, at as deliverReviewItemChange, bt as archiveConversation, dn as findAutomationSkill, fn as missingAutomationSkillReason, g as readPublicArtifact, gt as collectAttachmentGarbage, h as publicArtifactHeaders, j as verifySlackSignature, k as parseSlackUserInputSubmission, ln as processWorkspaceSnapshotJob, 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, un as ingestEvent, ut as conversationTurnIdForMessage, v as setConversationSubscription, vt as requestAttachmentDeletion, w as syncReviewItemSlackCards, y as lookupSlackUserProfile, z as joinPublicChannel } from "./agent-runner-DjMTPWEO.js";
|
|
11
11
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
12
|
-
import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-
|
|
13
|
-
import {
|
|
12
|
+
import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-Bqkb678l.js";
|
|
13
|
+
import { a as getStateAdapter, r as disconnectStateAdapter } from "./state-CO9ETDzk.js";
|
|
14
14
|
import { a as getNextRunAtMs } from "./schedule-cP0AACm1.js";
|
|
15
|
-
import {
|
|
15
|
+
import { J as conversationBriefSchema, O as conversationTitleSchema, P as annotationCard, b as conversationSurfaceSchema, p as conversationFeedQuerySchema, v as conversationReportStatusSchema } from "./conversation-CMkSmi02.js";
|
|
16
16
|
import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
17
|
+
import { n as readSchedulerSecret, r as readSignInSecret } from "./secrets-DebYU866.js";
|
|
18
|
+
import { a as segmentGapsKey, f as MINUTE_MS, g as gapSegment, m as NO_REPLY_GAP_MS, n as GLOBAL_GAPS_MAX, p as MIN_WARMUP_PREFIX_TOKENS, r as GLOBAL_GAPS_TTL_MS, t as CONVERSATION_STATE_TTL_MS } from "./warmup-h6u1e9n0.js";
|
|
19
|
+
import { A as getQueueProvider, C as cacheWarmupQueueConsumer, O as queueCallback, T as registerVercelCacheWarmupDevConsumer, _ as resolveConversationWorkQueueTopic, b as conversationQueueMessageSchema, f as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, g as getVercelConversationWorkQueue, h as verifyWorkspaceSnapshotJobMessage, i as verifyBackgroundCompactionMessage, l as pluginTaskQueueConsumer, o as createVercelPluginTaskCallback, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as registerVercelPluginTaskDevConsumer, v as verifyConversationQueueMessage, w as createVercelCacheWarmupCallback, x as isConversationQueueMessageRejectedError } from "./background-compaction-queue-DUkHZjmL.js";
|
|
20
|
+
import { D as listPendingAgentInvocationResults, E as listPendingAgentInvocationMailboxAppends } from "./turn-failure-response-BTSo6SMJ.js";
|
|
21
|
+
import { M as slackChannelMessageReplyThreadTs, N as slackChannelMessageRunsAutomation, O as getEventCatalog, W as renderSlackObjectCard, d as getAuthPausedConversationTurnId, it as setExperimentalFeatures, j as slackChannelMessageEvent, k as SLACK_EVENT_NAMESPACE, nt as getExperimentalFeatures, rt as isExperimentalFeatureEnabled, z as renderTaskInput } from "./session-stop-DkxI5vc3.js";
|
|
21
22
|
import { _ as buttonUserInputField } from "./reporting-window-B3Ze-Qnt.js";
|
|
22
|
-
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-
|
|
23
|
-
import { _ as listActiveConversationIds, g as getConversationWorkState, h as getConversation, l as clearExpiredConversationLease, m as ensureConversationWake, r as appendAndEnqueueInboundMessage } from "./store-
|
|
24
|
-
import { A as withScheduledAutomationLock, E as readScheduledAutomation, F as findMatchingEventAutomations, H as eventAutomationRunLimitReason, M as collectEventAutomationMatchKeys, O as saveScheduledAutomationInLock, Q as existingConversationId, V as admitEventAutomationRun, W as automationVersionOf, c as getDispatchConversationId, d as getDispatchRecord, gt as coerceThreadConversationState, h as listPendingDispatchMailboxAppends, i as buildDispatchId, j as blockEventAutomation, k as scheduledRunId, m as isTerminalDispatchStatus, o as confirmDispatchMailboxAppend, ot as recordAutomationExecution, p as getPluginDispatchProjection, s as createOrGetDispatch, t as processPluginTask, w as listScheduledAutomationsForTeam, x as notifyAutomationBlocked, xt as eventGuidance, y as markDispatchFailed } from "./task-runner-
|
|
25
|
-
import { H as automationTaskSchema, N as scheduledRunSchema, U as automationTaskText, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-
|
|
26
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
23
|
+
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-t-pmRdwS.js";
|
|
24
|
+
import { _ as listActiveConversationIds, g as getConversationWorkState, h as getConversation, l as clearExpiredConversationLease, m as ensureConversationWake, r as appendAndEnqueueInboundMessage } from "./store-DgD78_NK.js";
|
|
25
|
+
import { A as withScheduledAutomationLock, E as readScheduledAutomation, F as findMatchingEventAutomations, H as eventAutomationRunLimitReason, M as collectEventAutomationMatchKeys, O as saveScheduledAutomationInLock, Q as existingConversationId, V as admitEventAutomationRun, W as automationVersionOf, c as getDispatchConversationId, d as getDispatchRecord, gt as coerceThreadConversationState, h as listPendingDispatchMailboxAppends, i as buildDispatchId, j as blockEventAutomation, k as scheduledRunId, m as isTerminalDispatchStatus, o as confirmDispatchMailboxAppend, ot as recordAutomationExecution, p as getPluginDispatchProjection, s as createOrGetDispatch, t as processPluginTask, w as listScheduledAutomationsForTeam, x as notifyAutomationBlocked, xt as eventGuidance, y as markDispatchFailed } from "./task-runner-CKOj6xla.js";
|
|
26
|
+
import { H as automationTaskSchema, N as scheduledRunSchema, U as automationTaskText, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-yJX3C7i3.js";
|
|
27
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-CXeYgBzq.js";
|
|
27
28
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-HYh_JOdw.js";
|
|
28
|
-
import {
|
|
29
|
-
import { $ as actOnReviewItem, 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 stopConversation, K as SubscribedReplyReason, L as resolveAllowedDomains, M as getProductionSlackAdapter, N as assertNoLegacyAllowedDomains, P as isAllowedDomain, Q as ReviewItemActionError, R as startProcessingReaction, S as appendConversationMessageForViewer, T as encodeConversationCursor, U as normalizeIncomingSlackThreadId, V as slackInboundMessageId, W as withNormalizedThreadId, X as recordSkippedConversationMessage, Y as parseContent, Z as bindMessageAuthorIdentityId, a as pinConversation, at as continueConversationInSlack, b as readConversationRecordFromSql, ct as archiveViewerDoneConversations, dt as setConversationAutoArchive, et as closeReviewItemsAnsweredByReply, ht as GET$4, i as readConversationFeed, it as canContinueInSlack, j as createProductionSlackWebhookServices, mt as enqueueAgentDispatch, n as steerConversationPendingMessagesForViewer, nt as reviewItemChange, ot as isMovableToSlack, q as getThreadStopDecision, rt as alreadyContinuesInSlackMessage, s as readConversationDetail, t as stopConversationTurnForViewer, tt as readReviewItemForUser, ut as runAutoArchiveSweep, w as decodeConversationCursor, z as buildSlackInboundMessage } from "./stop-
|
|
30
|
-
import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-
|
|
31
|
-
import { n as enqueueAgentInvocationResult } from "./result-
|
|
32
|
-
import { o as unlinkProvider } from "./connections-
|
|
33
|
-
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
29
|
+
import { s as conversationPendingMessageDeliverySchema } from "./conversation-feed-BVAOga0H.js";
|
|
30
|
+
import { $ as actOnReviewItem, 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 stopConversation, K as SubscribedReplyReason, L as resolveAllowedDomains, M as getProductionSlackAdapter, N as assertNoLegacyAllowedDomains, P as isAllowedDomain, Q as ReviewItemActionError, R as startProcessingReaction, S as appendConversationMessageForViewer, T as encodeConversationCursor, U as normalizeIncomingSlackThreadId, V as slackInboundMessageId, W as withNormalizedThreadId, X as recordSkippedConversationMessage, Y as parseContent, Z as bindMessageAuthorIdentityId, a as pinConversation, at as continueConversationInSlack, b as readConversationRecordFromSql, ct as archiveViewerDoneConversations, dt as setConversationAutoArchive, et as closeReviewItemsAnsweredByReply, ht as GET$4, i as readConversationFeed, it as canContinueInSlack, j as createProductionSlackWebhookServices, mt as enqueueAgentDispatch, n as steerConversationPendingMessagesForViewer, nt as reviewItemChange, ot as isMovableToSlack, q as getThreadStopDecision, rt as alreadyContinuesInSlackMessage, s as readConversationDetail, t as stopConversationTurnForViewer, tt as readReviewItemForUser, ut as runAutoArchiveSweep, w as decodeConversationCursor, z as buildSlackInboundMessage } from "./stop-CL-rdtQb.js";
|
|
31
|
+
import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-yN_GAuXY.js";
|
|
32
|
+
import { n as enqueueAgentInvocationResult } from "./result-DhgjR3nQ.js";
|
|
33
|
+
import { o as unlinkProvider } from "./connections-CWaIVl_1.js";
|
|
34
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-BhbaZfmO.js";
|
|
34
35
|
import { t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
|
|
35
|
-
import { t as processConversationWork } from "./worker-
|
|
36
|
-
import { t as bindMessageAgent } from "./message-
|
|
37
|
-
import { t as bindSpawnAgent } from "./spawn
|
|
36
|
+
import { t as processConversationWork } from "./worker-Hl7N292I.js";
|
|
37
|
+
import { t as bindMessageAgent } from "./message-CtaPzC7m.js";
|
|
38
|
+
import { t as bindSpawnAgent } from "./spawn-BvULxIiu.js";
|
|
38
39
|
import { createRequire } from "node:module";
|
|
39
40
|
import { Hono } from "hono";
|
|
40
41
|
import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1604,12 +1605,9 @@ async function runHeartbeat(args) {
|
|
|
1604
1605
|
}
|
|
1605
1606
|
}
|
|
1606
1607
|
// src/handlers/scheduler-auth.ts
|
|
1607
|
-
function getSchedulerSecret() {
|
|
1608
|
-
return process.env.JUNIOR_SCHEDULER_SECRET?.trim() || process.env.CRON_SECRET?.trim();
|
|
1609
|
-
}
|
|
1610
1608
|
/** Check the bearer secret that internal cron requests must send. */
|
|
1611
1609
|
function verifySchedulerRequest(request) {
|
|
1612
|
-
const secret =
|
|
1610
|
+
const secret = readSchedulerSecret();
|
|
1613
1611
|
if (!secret) return false;
|
|
1614
1612
|
const authorization = request.headers.get("authorization")?.trim();
|
|
1615
1613
|
if (!authorization?.startsWith("Bearer ")) return false;
|
|
@@ -7788,7 +7786,7 @@ function required(value, name) {
|
|
|
7788
7786
|
return value.trim();
|
|
7789
7787
|
}
|
|
7790
7788
|
function createBetterAuth(config) {
|
|
7791
|
-
const secret = required(config.secret ??
|
|
7789
|
+
const secret = required(config.secret ?? readSignInSecret(), "JUNIOR_SECRET or BETTER_AUTH_SECRET");
|
|
7792
7790
|
const sessionMaxAgeSeconds = config.sessionMaxAgeSeconds ?? DEFAULT_SESSION_MAX_AGE_SECONDS;
|
|
7793
7791
|
const { allowedDomains } = config;
|
|
7794
7792
|
const hostedDomain = allowedDomains.length === 0 ? void 0 : allowedDomains.length === 1 ? allowedDomains[0] : "*";
|
|
@@ -8004,6 +8002,7 @@ function dashboardHostRoutePaths(dashboard, authenticatedRoutes = []) {
|
|
|
8004
8002
|
"/api/automations",
|
|
8005
8003
|
"/api/automations/*",
|
|
8006
8004
|
"/api/skills",
|
|
8005
|
+
"/api/skills/*",
|
|
8007
8006
|
"/api/board",
|
|
8008
8007
|
"/api/code",
|
|
8009
8008
|
"/api/code/*",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolveLocalScheduleAtMs, i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-cP0AACm1.js";
|
|
2
|
-
import { i as actorIdentitySchema } from "./conversation-
|
|
2
|
+
import { i as actorIdentitySchema } from "./conversation-CMkSmi02.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/automations/task.ts
|
|
@@ -437,9 +437,9 @@ const automationTitleSchema = z.string().trim().min(1).max(60);
|
|
|
437
437
|
* instruction names exact targets. It calls the creator "the Automation
|
|
438
438
|
* creator". It names every other person with their mention.
|
|
439
439
|
*/
|
|
440
|
-
const automationInstructionToolSchema = automationTaskTextSchema.describe("Work to perform when the Automation runs. The run does not see this conversation, so words like \"this channel\" or \"here\" will mean nothing then.
|
|
440
|
+
const automationInstructionToolSchema = automationTaskTextSchema.describe("Work to perform when the Automation runs. Say what to do, what to post, and when to post nothing. Do not say where to post: the outcomes set that, a run triggered by a Slack message replies in its thread, and each run ends with one message at most. The run does not see this conversation, so words like \"this channel\" or \"here\" will mean nothing then. Where the run reads or changes something, write the exact target, such as a channel mention, a repo, or a link. Call the person who created the Automation \"the Automation creator\", not \"me\"; each run knows who that is. Name every other person with their Slack mention, such as <@U123>, including a requester who did not create the Automation. Preserve the user's scope, targets, and constraints. Do not add permissions or side effects the user did not request.");
|
|
441
441
|
/** Context input for agent tools. It follows the same rules as an instruction. */
|
|
442
|
-
const automationContextToolSchema = automationTaskTextSchema.describe("What a skill run needs beyond the skill, such as a repo, a threshold, or who to tag. Follow the same rules as an instruction: write exact targets, call the creator \"the Automation creator\", and name other people with their Slack mention.");
|
|
442
|
+
const automationContextToolSchema = automationTaskTextSchema.describe("What a skill run needs beyond the skill, such as a repo, a threshold, or who to tag. Leave out what the skill already says. Follow the same rules as an instruction: do not say where to post, write exact targets, call the creator \"the Automation creator\", and name other people with their Slack mention.");
|
|
443
443
|
const automationEditFieldsSchema = z.object({
|
|
444
444
|
title: automationTitleSchema.optional(),
|
|
445
445
|
/** Replaces the whole task, so a mode switch drops the other mode's text. */
|
package/dist/{background-compaction-queue-D2j-0XkH.js → background-compaction-queue-DUkHZjmL.js}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { i as getChatConfig } from "./config-DvnTPCfp.js";
|
|
2
|
+
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-9OAq-fdg.js";
|
|
3
|
+
import { t as readJuniorSecret } from "./secrets-DebYU866.js";
|
|
3
4
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
5
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
5
6
|
import * as z from "zod";
|
|
@@ -237,9 +238,6 @@ function queueCallback(options) {
|
|
|
237
238
|
// src/chat/queue/sign.ts
|
|
238
239
|
/** Sign and check queue messages before public callbacks run them. */
|
|
239
240
|
const QUEUE_SIGNATURE_MAX_AGE_MS = 36e5;
|
|
240
|
-
function secret() {
|
|
241
|
-
return process.env.JUNIOR_SECRET?.trim() || void 0;
|
|
242
|
-
}
|
|
243
241
|
function digest(args) {
|
|
244
242
|
return createHmac("sha256", args.secret).update([
|
|
245
243
|
args.context,
|
|
@@ -258,7 +256,7 @@ function body(value) {
|
|
|
258
256
|
}
|
|
259
257
|
/** Sign one queue message. */
|
|
260
258
|
function signQueueMessage(config, message, nowMs = Date.now()) {
|
|
261
|
-
const key =
|
|
259
|
+
const key = readJuniorSecret();
|
|
262
260
|
if (!key) throw new Error("Cannot sign queue message without JUNIOR_SECRET");
|
|
263
261
|
if (!Number.isFinite(nowMs)) throw new Error("Cannot sign queue message with an invalid clock");
|
|
264
262
|
const separator = config.separator ?? "\0";
|
|
@@ -291,7 +289,7 @@ function verifyQueueMessage(config, value, nowMs = Date.now()) {
|
|
|
291
289
|
status: "rejected",
|
|
292
290
|
reason: "malformed"
|
|
293
291
|
};
|
|
294
|
-
const key =
|
|
292
|
+
const key = readJuniorSecret();
|
|
295
293
|
if (!key) return {
|
|
296
294
|
status: "unavailable",
|
|
297
295
|
reason: "missing_secret"
|
|
@@ -371,7 +369,7 @@ function cacheWarmupCallback() {
|
|
|
371
369
|
maxDeliveries: 1,
|
|
372
370
|
onRejected: logCacheWarmupRejected,
|
|
373
371
|
run: async (message) => {
|
|
374
|
-
const { runCacheWarmup } = await import("./warmup-
|
|
372
|
+
const { runCacheWarmup } = await import("./warmup-h6u1e9n0.js").then((n) => n.o);
|
|
375
373
|
await runCacheWarmup(message);
|
|
376
374
|
},
|
|
377
375
|
skip: () => !getChatConfig().cacheWarmingEnabled,
|
|
@@ -560,7 +558,7 @@ function pluginTaskCallback() {
|
|
|
560
558
|
maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
|
|
561
559
|
onRejected: logPluginTaskQueueMessageRejected,
|
|
562
560
|
run: async (message) => {
|
|
563
|
-
const { processPluginTask } = await import("./task-runner-
|
|
561
|
+
const { processPluginTask } = await import("./task-runner-CKOj6xla.js").then((n) => n.r);
|
|
564
562
|
await processPluginTask(message);
|
|
565
563
|
},
|
|
566
564
|
topic: PLUGIN_TASK_QUEUE_TOPIC,
|