@sentry/junior 0.296.0 → 0.297.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-z_lgDi-z.js → admin-tmGIw4KS.js} +2 -2
- package/dist/{agent-runner-HoQiUKLL.js → agent-runner-CneTquAE.js} +378 -1919
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +38 -267
- package/dist/{app-C75Ft-A_.d.ts → app-BJojZ7HL.d.ts} +7 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +64 -44
- package/dist/attempt-selection-ClP3MMPr.js +61 -0
- package/dist/{automation-yJX3C7i3.js → automation-BrP6ImrC.js} +1 -1
- package/dist/{background-compaction-queue-Cre1wFt9.js → background-compaction-queue-CwfJy3Cd.js} +4 -88
- package/dist/{briefs-BXECHduJ.js → briefs-uFTuhMqA.js} +3 -3
- package/dist/{catalog-runtime-CpCmlD9L.js → catalog-runtime-0kuQqYL4.js} +1 -1
- package/dist/cli/chat.js +19 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-CCPHvTqx.js → config-Dj9M_nqB.js} +2 -2
- package/dist/{connections-B5pWh8e2.js → connections-B96JUM5o.js} +6 -6
- package/dist/{conversation-CMkSmi02.js → conversation-CvcBU1z2.js} +2 -16
- package/dist/{conversation-feed-BVAOga0H.js → conversation-feed-BSMlGZnS.js} +1 -1
- package/dist/{conversation-privacy-CZD5soDW.js → conversation-privacy-DI29jbZV.js} +1 -1
- package/dist/conversation-turn-CZWBr091.js +805 -0
- package/dist/{credential-sync-DwLkIvXI.js → credential-sync-Blhx4_xf.js} +14 -13
- package/dist/{db-C1M1y-bh.js → db-Br0tfAo7.js} +43 -15
- package/dist/{db-B3iyr_Or.d.ts → db-CrtyFRz7.d.ts} +13 -1
- package/dist/{executor-DUSEwXaO.js → executor-BMPipFVA.js} +14 -6
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-D0svFM8r.js → logging-CQjlDQYX.js} +1 -1
- package/dist/{message-BFnIwKpx.js → message-BOZEIuxy.js} +15 -13
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -2
- package/dist/{session-stop-hYNTNpVf.js → notification-gusCgdQ6.js} +11 -930
- package/dist/{oauth-callback-server-BXRtD6Fk.js → oauth-callback-server-V_DuMuNX.js} +2 -2
- package/dist/{projection-B6VS7kbo.js → projection-B08mfi0u.js} +333 -106
- package/dist/{prompt-CD11tfG8.js → prompt-BlutWLNt.js} +4 -4
- package/dist/prompt-input-Dxn8cDC0.js +1424 -0
- package/dist/{registry-CHewwYEo.js → registry-BDWgCJDf.js} +1 -1
- package/dist/reporting-window-DopzcOHh.js +137 -0
- package/dist/{resolve-1owMH4qo.js → resolve-2Z_o_SsI.js} +3 -3
- package/dist/result-CAujiaci.js +463 -0
- package/dist/{runner-BtWvJslp.js → runner-D2Chc02N.js} +9 -8
- package/dist/{sandbox-egress-signals-ByftwJVt.js → sandbox-egress-signals-CFoJduFj.js} +1 -1
- package/dist/{schema-D2iGyYIp.js → schema-Bqa5NbcP.js} +11 -48
- package/dist/{schema-Ct1Zf2xy.d.ts → schema-Ce2XCS7O.d.ts} +8 -107
- package/dist/{service-account-DLoeoHww.js → service-account-C9kRQEb_.js} +3 -3
- package/dist/{service-account-BZEuMKdo.js → service-account-CERfXEVU.js} +3 -3
- package/dist/session-stop-B-I1rAS1.js +181 -0
- package/dist/{skills-DXgd5Inh.js → skills-B0m1nZ_j.js} +2 -2
- package/dist/{spawn-YeqlNDv8.js → spawn-CwMjRRtn.js} +6 -5
- package/dist/{state-C3CbtD_m.js → state-DFnmLmfn.js} +2 -2
- package/dist/{stop-Cze_pEL8.js → stop-BCH9VNGf.js} +63 -158
- package/dist/{store-CZ9vqR4P.js → store-B59rOYbS.js} +11 -4
- package/dist/{task-runner-CMiNGsER.js → store-m5bmdmsP.js} +939 -1593
- package/dist/task-queue-N0kuCknH.js +89 -0
- package/dist/task-runner-COOwR8qm.js +291 -0
- package/dist/thread-context-Cd44z_W5.js +248 -0
- package/dist/turn-cancel-DDu8TOwt.js +201 -0
- package/dist/turn-session-routing-BlCtVFRN.js +380 -0
- package/dist/{turn-failure-response-pXhZ2wMK.js → turn-user-message-ygLG3ylQ.js} +183 -361
- package/dist/turn-wake-DmQec4AG.js +161 -0
- package/dist/{reporting-window-B3Ze-Qnt.js → user-input-request-CXNIov9n.js} +24 -143
- package/dist/{validation-Du7NdkOR.js → validation-Ba2OcUse.js} +1 -1
- package/dist/{version-EN3Wnq-R.js → version-KNDzIAh6.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-Agxi_o5c.js → viewer-BPpuN2f9.js} +3 -3
- package/dist/warmup-Bskrwmk1.js +2697 -0
- package/dist/{worker-BALVdWbv.js → worker-B1skZlit.js} +20 -8
- package/migrations/0102_code_change_last_activity.sql +1 -0
- package/migrations/0103_agent_invocation_fork.sql +8 -0
- package/migrations/meta/0102_snapshot.json +4502 -0
- package/migrations/meta/0103_snapshot.json +4509 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +4 -4
- package/dist/result-CEqQFrEf.js +0 -305
- package/dist/result-event-type-DD6BAgT7.js +0 -11
- package/dist/warmup-CY2ArYag.js +0 -2017
- package/dist/work-EA98F0ia.js +0 -768
package/dist/api/schema.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as AutomationVersionList, $i as
|
|
2
|
-
export { type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type 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,
|
|
1
|
+
import { $ as AutomationVersionList, $i as codeChangeSummarySchema, $n as ConversationDeliveryResponse, $r as steerConversationPendingMessagesBodySchema, $t as isWithinNotificationSchedule, A as runtimeInfoReportSchema, Ai as conversationDetailReportSchema, An as personParamsSchema, Ar as ConversationAutoArchive, At as workspaceListSchema, B as replyTimeSegmentsReportSchema, Bi as createConversationMessageBodySchema, Bn as CONVERSATION_TITLE_MAX_LENGTH, Br as ConversationPendingMessage, Bt as personalTokenMetadataSchema, C as healthReportSchema, Ca as isAgentInvocationResultEventType, Ci as ConversationUsage, Cn as ActorTotalsReport, Cr as ConversationStatsItem, Ct as scheduledAutomationSummarySchema, D as pluginPackageContentReportSchema, Da as MessageAttachment, Di as conversationActivityPreviewSchema, Dn as PersonalSpendReport, Dr as conversationStatsReportSchema, Dt as baselineSnapshotSchema, E as pluginPackageContentItemReportSchema, Ea as MAX_INPUT_IMAGE_BYTES, Ei as acceptedConversationMessageSchema, En as PersonParams, Er as GuardianStats, Et as WorkspaceReport, F as StatsReport, Fi as conversationParamsSchema, Fn as conversationWatchesReportSchema, Fr as ConversationFeed, Ft as userCustomizationSchema, G as AutomationList, Gi as CodeActivityDay, Gn as CONVERSATION_OUTLINE_TEXT_LENGTH, Gr as cancelConversationPendingMessagesBodySchema, Gt as serviceAccountParamsSchema, H as AutomationExecution, Hi as forkConversationResponseSchema, Hn as RenameConversationResponse, Hr as ConversationPendingMessagesReport, Ht as revokePersonalTokenResponseSchema, I as statSchema, Ii as conversationReportEventDataSchema, In as ConversationChildAgent, Ir as ConversationFeedItem, It as PersonalTokenMetadata, J as AutomationRunList, Ji as CodePersonReport, Jn as ConversationSubscriptionBody, Jr as conversationPendingAuthorizationSchema, Jt as NotificationSettings, K as AutomationListQuery, Ki as CodeChangeSummaryReport, Kn as ConversationOutline, Kr as cancelConversationPendingMessagesResponseSchema, Kt as serviceAccountSchema, L as statsReportSchema, Li as conversationReportEventSchema, Ln as ConversationChildAgentsReport, Lr as conversationFeedSchema, Lt as createPersonalTokenBodySchema, M as skillReportSchema, Mi as conversationEventPageSchema, Mn as ConversationWatch, Mr as archiveConversationResponseSchema, Mt as workspaceRepoSchema, N as skillReportsSchema, Ni as conversationEventsQuerySchema, Nn as ConversationWatchesReport, Nr as archiveDoneConversationsResponseSchema, Nt as workspaceSchema, O as pluginSchema, Oa as INLINE_VIDEO_TYPES, Oi as conversationAuxiliaryCostsSchema, On as actorDirectoryReportSchema, Or as ArchiveConversationBody, Ot as deleteWorkspaceResponseSchema, P as StatReport, Pi as conversationFeedQuerySchema, Pn as conversationWatchSchema, Pr as conversationAutoArchiveSchema, Pt as USER_CUSTOMIZATION_MAX_CHARS, Q as AutomationUpdate, Qi as codeChangeSummaryReportSchema, Qn as ConversationDeliveryBody, Qr as conversationUnchangedDetailWithMailboxSchema, Qt as NotificationSchedule, R as ReplyTimeHistogram, Ri as conversationSummaryReportSchema, Rn as conversationChildAgentSchema, Rr as CancelConversationPendingMessagesBody, Rt as createdPersonalTokenSchema, S as SkillReports, Sa as AGENT_REPLY_EVENT_TYPE, Si as ConversationTurnFailureReason, Sn as ActorSummaryReport, Sr as ConversationMetricDay, St as eventAutomationSummarySchema, T as pluginOperationalReportSchema, Ta as MAX_INPUT_IMAGES, Ti as CreateConversationMessageBody, Tn as PeopleActivityDayReport, Tr as GuardianMetricDay, Tt as WorkspaceListReport, U as AutomationExecutionList, Ui as conversationTurnFailureCodeSchema, Un as renameConversationBodySchema, Ur as SteerConversationPendingMessagesBody, Ut as disconnectServiceAccountResponseSchema, V as AutomationEdit, Vi as forkConversationBodySchema, Vn as RenameConversationBody, Vr as ConversationPendingMessageDelivery, Vt as personalTokenParamsSchema, W as AutomationExecutionStatusDay, Wi as conversationTurnFailureReasonSchema, Wn as renameConversationResponseSchema, Wr as SteerConversationPendingMessagesResponse, Wt as serviceAccountListSchema, X as AutomationScheduleIntent, Xi as CodeRepositorySummary, Xn as conversationSubscriptionBodySchema, Xr as conversationPendingMessageSchema, Xt as testNotificationResponseSchema, Y as AutomationRunWindows, Yi as CodeRepositoryReport, Yn as ConversationSubscriptionResponse, Yr as conversationPendingMessageDeliverySchema, Yt as notificationSettingsSchema, Z as AutomationSummary, Zi as codeActivityDaySchema, Zn as conversationSubscriptionResponseSchema, Zr as conversationPendingMessagesReportSchema, Zt as DEFAULT_NOTIFICATION_SCHEDULE, _ as PluginPackageContentReport, _a as UserInputRequest, _i as ConversationReportStatus, _n as locationParamsSchema, _r as ContinueConversationInSlackResponse, _t as automationUpdateSchema, a as ReviewItemPayload, aa as ConversationChildAgentTotals, ai as ConversationActivityPreview, an as startConnectionResponseSchema, ar as ReorderPinnedConversationsResponse, at as automationExecutionSchema, b as SkillDetailReport, ba as normalizeUserInputAnswer, bi as ConversationSurface, bn as ActorDirectoryWindows, br as StopConversationTurnResponse, bt as automationVersionParamsSchema, c as reviewItemListSchema, ca as dailyConversationActivitySchema, ci as ConversationCost, cn as LocationActivityDayReport, cr as reorderPinnedConversationsBodySchema, ct as automationListQuerySchema, d as ReviewItemChangeRecord, da as resolveMessageCards, di as ConversationEventPage, dn as LocationDirectoryReport, dr as ConversationCatchUpBody, dt as automationRunListSchema, ea as codeOverviewReportSchema, ei as steerConversationPendingMessagesResponseSchema, en as notificationScheduleSchema, er as conversationDeliveryBodySchema, et as ListedAutomationVersion, f as HealthReport, fa as AutomationTask, fi as ConversationModelUsage, fn as LocationParams, fr as conversationCatchUpBodySchema, ft as automationRunSchema, g as PluginPackageContentItemReport, ga as UserInputField, gi as ConversationReportMessageEvent, gn as locationDirectoryReportSchema, gr as ContinueConversationInSlackBody, gt as automationSummarySchema, h as PluginOperationalReportFeed, ha as UserInputAnswer, hi as ConversationReportEventData, hn as locationDetailReportSchema, hr as conversationReadPositionSchema, ht as automationSchedulePreviewSchema, i as ReviewItemActionBody, ia as codeRepositorySummarySchema, ii as CONVERSATION_VERSION_HEADER, in as disconnectConnectionResponseSchema, ir as ReorderPinnedConversationsBody, it as automationExecutionListSchema, j as skillDetailReportSchema, ji as conversationEventHistorySchema, jn as personalSpendReportSchema, jr as archiveConversationBodySchema, jt as workspaceParamsSchema, k as pluginsSchema, ka as INPUT_IMAGE_TYPES, ki as conversationDetailQuerySchema, kn as actorProfileReportSchema, kr as ArchiveConversationResponse, kt as workspaceBodySchema, l as reviewItemSchema, la as MessageCard, li as ConversationDetailReport, ln as LocationActorSummaryReport, lr as reorderPinnedConversationsResponseSchema, lt as automationListSchema, m as PluginOperationalReport, ma as USER_INPUT_NOTE, mi as ConversationReportEvent, mn as locationActivityDayReportSchema, mr as ConversationReadPosition, mt as automationScheduleIntentSchema, n as Versions, na as codeRepositoryParamsSchema, ni as ActorIdentity, nn as connectionParamsSchema, nr as PinConversationBody, nt as automationEditSchema, o as reviewItemActionSchema, oa as conversationChildAgentTotalsSchema, oi as ConversationAgentTreeNode, on as ApiError, or as pinConversationBodySchema, ot as automationExecutionStatusDaySchema, p as Plugin, pa as AutomationCard, pi as ConversationParams, pn as LocationSummaryReport, pr as conversationCatchUpSchema, pt as automationRunWindowsSchema, q as AutomationRun, qi as CodeOverviewReport, qn as conversationOutlineSchema, qr as conversationDetailWithMailboxReportSchema, qt as startServiceAccountSignInResponseSchema, r as versionsSchema, ra as codeRepositoryReportSchema, ri as CONVERSATION_DETAIL_VERSION_HEADER, rn as connectionSchema, rr as PinConversationResponse, rt as automationEventCatalogSchema, s as reviewItemCountSchema, sa as DailyConversationActivity, si as ConversationAuxiliaryCosts, sn as apiErrorSchema, sr as pinConversationResponseSchema, st as automationExecutionStatusSchema, t as OwnedObjectAnnotation, ta as codePersonReportSchema, ti as AcceptedConversationMessage, tn as connectionListSchema, tr as conversationDeliveryResponseSchema, tt as automationEditErrorSchema, u as reviewItemWaitingConversationsSchema, ua as messageCardText, ui as ConversationEventHistory, un as LocationDetailReport, ur as ConversationCatchUp, ut as automationParamsSchema, v as Plugins, va as buttonUserInputField, vi as ConversationSourceTask, vn as ActorActivityDayReport, vr as continueConversationInSlackBodySchema, vt as automationVersionActivateSchema, w as pluginOperationalReportFeedSchema, wa as InputImage, wi as CreateConversationBody, wn as ActorWindowMetrics, wr as ConversationStatsReport, wt as BaselineSnapshotReport, x as SkillReport, xa as webMessageId, xi as ConversationTurnFailureCode, xn as ActorProfileReport, xr as stopConversationTurnResponseSchema, xt as automationVersionSchema, y as RuntimeInfoReport, ya as isEmptyUserInputAnswer, yi as ConversationSummaryReport, yn as ActorDirectoryReport, yr as continueConversationInSlackResponseSchema, yt as automationVersionListSchema, z as ReplyTimeSegmentsReport, zi as createConversationBodySchema, zn as conversationChildAgentsReportSchema, zr as CancelConversationPendingMessagesResponse, zt as personalTokenListSchema } from "../schema-Ce2XCS7O.js";
|
|
2
|
+
export { AGENT_REPLY_EVENT_TYPE, type AcceptedConversationMessage, type ActorActivityDayReport, type ActorDirectoryReport, type ActorDirectoryWindows, type ActorIdentity, type ActorProfileReport, type ActorSummaryReport, type ActorTotalsReport, type ActorWindowMetrics, type ApiError, type ArchiveConversationBody, type ArchiveConversationResponse, type AutomationCard, type AutomationEdit, type AutomationExecution, type AutomationExecutionList, type AutomationExecutionStatusDay, type AutomationList, type AutomationListQuery, type AutomationRun, type AutomationRunList, type AutomationRunWindows, type AutomationScheduleIntent, type AutomationSummary, type AutomationTask, type AutomationUpdate, type AutomationVersionList, type BaselineSnapshotReport, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, type CancelConversationPendingMessagesBody, type CancelConversationPendingMessagesResponse, type CodeActivityDay, type CodeChangeSummaryReport, type CodeOverviewReport, type CodePersonReport, type CodeRepositoryReport, type CodeRepositorySummary, type ContinueConversationInSlackBody, type ContinueConversationInSlackResponse, type ConversationActivityPreview, type ConversationAgentTreeNode, type ConversationAutoArchive, type ConversationAuxiliaryCosts, type ConversationCatchUp, type ConversationCatchUpBody, type ConversationChildAgent, type ConversationChildAgentTotals, type ConversationChildAgentsReport, type ConversationCost, type ConversationDeliveryBody, type ConversationDeliveryResponse, type ConversationDetailReport, type ConversationEventHistory, type ConversationEventPage, type ConversationFeed, type ConversationFeedItem, type ConversationMetricDay, type ConversationModelUsage, type ConversationOutline, type ConversationParams, type ConversationPendingMessage, type ConversationPendingMessageDelivery, type ConversationPendingMessagesReport, type ConversationReadPosition, type ConversationReportEvent, type ConversationReportEventData, type ConversationReportMessageEvent, type ConversationReportStatus, type ConversationSourceTask, type ConversationStatsItem, type ConversationStatsReport, type ConversationSubscriptionBody, type ConversationSubscriptionResponse, type ConversationSummaryReport, type ConversationSurface, type ConversationTurnFailureCode, type ConversationTurnFailureReason, type ConversationUsage, type ConversationWatch, type ConversationWatchesReport, type 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 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, 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, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, 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 renameConversationResponseSchema, B as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { C as
|
|
7
|
-
import { n as
|
|
8
|
-
import { $ as codeActivityDaySchema, A as revokePersonalTokenResponseSchema, At as
|
|
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,
|
|
3
|
+
import { A as renameConversationResponseSchema, B as MAX_INPUT_IMAGE_BYTES, C as createConversationMessageBodySchema, D as CONVERSATION_TITLE_MAX_LENGTH, E as conversationChildAgentTotalsSchema, F as messageCardText, R as resolveMessageCards, S as createConversationBodySchema, T as forkConversationResponseSchema, 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 MAX_INPUT_IMAGES } from "../conversation-CvcBU1z2.js";
|
|
4
|
+
import { a as isEmptyUserInputAnswer, c as USER_CUSTOMIZATION_MAX_CHARS, g as AGENT_REPLY_EVENT_TYPE, l as userCustomizationSchema, n as USER_INPUT_NOTE, o as normalizeUserInputAnswer, r as buttonUserInputField, v as isAgentInvocationResultEventType } from "../user-input-request-CXNIov9n.js";
|
|
5
|
+
import { m as apiErrorSchema, p as webMessageId } from "../reporting-window-DopzcOHh.js";
|
|
6
|
+
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-BrP6ImrC.js";
|
|
7
|
+
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-BSMlGZnS.js";
|
|
8
|
+
import { $ as codeActivityDaySchema, A as revokePersonalTokenResponseSchema, At as conversationCatchUpSchema, C as serviceAccountSchema, Ct as conversationDeliveryBodySchema, D as personalTokenListSchema, Dt as reorderPinnedConversationsBodySchema, E as createdPersonalTokenSchema, Et as pinConversationResponseSchema, F as personalSpendReportSchema, I as locationActivityDayReportSchema, J as connectionListSchema, L as locationDetailReportSchema, M as actorProfileReportSchema, O as personalTokenMetadataSchema, Ot as reorderPinnedConversationsResponseSchema, P as personParamsSchema, Q as startConnectionResponseSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as conversationSubscriptionResponseSchema, T as createPersonalTokenBodySchema, Tt as pinConversationBodySchema, U as dailyConversationActivitySchema, W as notificationSettingsSchema, X as connectionSchema, Y as connectionParamsSchema, Z as disconnectConnectionResponseSchema, _t as archiveConversationBodySchema, a as replyTimeSegmentsReportSchema, at as codeRepositoryReportSchema, b as disconnectServiceAccountResponseSchema, bt as conversationAutoArchiveSchema, c as workspaceBodySchema, ct as conversationWatchesReportSchema, d as workspaceRepoSchema, dt as continueConversationInSlackBodySchema, et as codeChangeSummaryReportSchema, f as workspaceSchema, ft as continueConversationInSlackResponseSchema, g as reviewItemListSchema, gt as conversationOutlineSchema, ht as CONVERSATION_OUTLINE_TEXT_LENGTH, i as statsReportSchema, it as codeRepositoryParamsSchema, j as actorDirectoryReportSchema, k as personalTokenParamsSchema, kt as conversationCatchUpBodySchema, l as workspaceListSchema, lt as conversationChildAgentSchema, m as reviewItemCountSchema, mt as conversationStatsReportSchema, n as versionsSchema, nt as codeOverviewReportSchema, o as baselineSnapshotSchema, ot as codeRepositorySummarySchema, p as reviewItemActionSchema, pt as stopConversationTurnResponseSchema, q as testNotificationResponseSchema, r as statSchema, rt as codePersonReportSchema, s as deleteWorkspaceResponseSchema, st as conversationWatchSchema, tt as codeChangeSummarySchema, u as workspaceParamsSchema, ut as conversationChildAgentsReportSchema, v as reviewItemSchema, vt as archiveConversationResponseSchema, w as startServiceAccountSignInResponseSchema, wt as conversationDeliveryResponseSchema, x as serviceAccountListSchema, xt as conversationSubscriptionBodySchema, y as reviewItemWaitingConversationsSchema, yt as archiveDoneConversationsResponseSchema, z as locationParamsSchema } from "../schema-Bqa5NbcP.js";
|
|
9
|
+
export { AGENT_REPLY_EVENT_TYPE, CONVERSATION_DETAIL_VERSION_HEADER, CONVERSATION_OUTLINE_TEXT_LENGTH, CONVERSATION_TITLE_MAX_LENGTH, CONVERSATION_VERSION_HEADER, DEFAULT_NOTIFICATION_SCHEDULE, INLINE_VIDEO_TYPES, INPUT_IMAGE_TYPES, MAX_INPUT_IMAGES, MAX_INPUT_IMAGE_BYTES, USER_CUSTOMIZATION_MAX_CHARS, USER_INPUT_NOTE, acceptedConversationMessageSchema, actorDirectoryReportSchema, actorProfileReportSchema, apiErrorSchema, archiveConversationBodySchema, archiveConversationResponseSchema, archiveDoneConversationsResponseSchema, automationEditErrorSchema, automationEditSchema, automationEventCatalogSchema, automationExecutionListSchema, automationExecutionSchema, automationExecutionStatusDaySchema, automationExecutionStatusSchema, automationListQuerySchema, automationListSchema, automationParamsSchema, automationRunListSchema, automationRunSchema, automationRunWindowsSchema, automationScheduleIntentSchema, automationSchedulePreviewSchema, automationSummarySchema, automationUpdateSchema, automationVersionActivateSchema, automationVersionListSchema, automationVersionParamsSchema, automationVersionSchema, baselineSnapshotSchema, buttonUserInputField, cancelConversationPendingMessagesBodySchema, cancelConversationPendingMessagesResponseSchema, codeActivityDaySchema, codeChangeSummaryReportSchema, codeChangeSummarySchema, codeOverviewReportSchema, codePersonReportSchema, codeRepositoryParamsSchema, codeRepositoryReportSchema, codeRepositorySummarySchema, connectionListSchema, connectionParamsSchema, connectionSchema, continueConversationInSlackBodySchema, continueConversationInSlackResponseSchema, conversationActivityPreviewSchema, conversationAutoArchiveSchema, conversationAuxiliaryCostsSchema, conversationCatchUpBodySchema, conversationCatchUpSchema, conversationChildAgentSchema, conversationChildAgentTotalsSchema, conversationChildAgentsReportSchema, conversationDeliveryBodySchema, conversationDeliveryResponseSchema, conversationDetailQuerySchema, conversationDetailReportSchema, conversationDetailWithMailboxReportSchema, conversationEventHistorySchema, conversationEventPageSchema, conversationEventsQuerySchema, conversationFeedQuerySchema, conversationFeedSchema, conversationOutlineSchema, conversationParamsSchema, conversationPendingAuthorizationSchema, conversationPendingMessageDeliverySchema, conversationPendingMessageSchema, conversationPendingMessagesReportSchema, conversationReadPositionSchema, conversationReportEventDataSchema, conversationReportEventSchema, conversationStatsReportSchema, conversationSubscriptionBodySchema, conversationSubscriptionResponseSchema, conversationSummaryReportSchema, conversationTurnFailureCodeSchema, conversationTurnFailureReasonSchema, conversationUnchangedDetailWithMailboxSchema, conversationWatchSchema, conversationWatchesReportSchema, createConversationBodySchema, createConversationMessageBodySchema, createPersonalTokenBodySchema, createdPersonalTokenSchema, dailyConversationActivitySchema, deleteWorkspaceResponseSchema, disconnectConnectionResponseSchema, disconnectServiceAccountResponseSchema, eventAutomationSummarySchema, forkConversationBodySchema, forkConversationResponseSchema, healthReportSchema, isAgentInvocationResultEventType, isEmptyUserInputAnswer, isWithinNotificationSchedule, locationActivityDayReportSchema, locationDetailReportSchema, locationDirectoryReportSchema, locationParamsSchema, 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,35 +1,39 @@
|
|
|
1
|
-
import {
|
|
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 { Ai as deleteWorkspace, Dr as reviewItemsNeedingUserVersionQuery, Eo as readConversationEventPage, Er as listWaitingConversations, Fi as updateWorkspace, Hi as hash, Hn as createUserTokenStore, Hr as reviewItemReaderForUserInConversation, Ii as WorkspaceValidationError, Ir as isOnlyAssignee, Mr as canActOnReviewItem, Ni as listWorkspaces, Or as searchReviewItems, Pi as listWorkspacesByRepository, Si as getDashboardSettingsLink, Vi as create, Vr as reviewItemReaderForUser, Xa as workspaceRepoCheckoutPath, Zo as createPluginCache, br as countReviewItemsNeedingUser, cr as readWebPushConfig, dr as deletePushSubscription, fo as createPluginLogger, fr as listPushSubscriptions, go as readConversationAccessFromSql, gr as isPausedBySlack, ho as createConversationAccessReader, hr as savePushSubscription, ji as getWorkspace, ki as createWorkspace, lr as sendPushNotificationToUser, mr as saveNotificationSchedule, nr as getPlugins, pr as readNotificationSchedule, qa as SANDBOX_RUNTIME, ur as resolveNotificationTimezone, wo as readConversationBriefThrough } from "./projection-B08mfi0u.js";
|
|
2
|
+
import { L as escapeXml, Y as getAttachmentStorage, n as botConfig } from "./config-Dj9M_nqB.js";
|
|
3
|
+
import { m as logInfo, p as logException } from "./logging-CQjlDQYX.js";
|
|
4
4
|
import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
5
|
-
import { O as conversationKindFromRow, S as withConversationMutationLock, a as getConversationStore,
|
|
6
|
-
import { A as juniorConversations, D as juniorCodeChanges,
|
|
5
|
+
import { O as conversationKindFromRow, S as withConversationMutationLock, a as getConversationStore, et as nextDetailVersion, o as getDb, s as getSqlExecutor, v as loadConversationSlackTenantIds } from "./db-Br0tfAo7.js";
|
|
6
|
+
import { A as juniorConversations, D as juniorCodeChanges, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, S as juniorConversationMetrics, T as juniorApiTokens, b as juniorConversationBriefs, j as juniorIdentities, w as juniorConversationEvents } from "./executor-BMPipFVA.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
|
|
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 { a as getStateAdapter } from "./state-
|
|
8
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-0kuQqYL4.js";
|
|
9
|
+
import { $ as readViewerAutomationRuns, C as createSlackReviewItemShow, Dt as jsonResponse, Et as emptyResponse, G as activateViewerAutomationVersion, J as readViewerAutomationEdit, K as changeViewerAutomationLifecycle, Ot as throwApiError, Q as readViewerAutomationExecutions, St as archiveConversation, Tt as reportConversationRead, X as ViewerTaskNotFoundError, Y as updateViewerAutomation, at as listOwnedWatches, et as readViewerAutomationSummary, h as readStats, ht as webActorFromUser, j as runWithSlackInstallation, nt as readViewerAutomations, q as deleteViewerTask, rt as AutomationEditError, tt as readViewerAutomationVersions, y as setConversationSubscription, yt as readLiveAttachment } from "./agent-runner-CneTquAE.js";
|
|
10
|
+
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-BlutWLNt.js";
|
|
11
|
+
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail } from "./viewer-BPpuN2f9.js";
|
|
12
|
+
import { a as getStateAdapter } from "./state-DFnmLmfn.js";
|
|
13
13
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
14
|
-
import { A as renameConversationResponseSchema, C as createConversationMessageBodySchema,
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
14
|
+
import { A as renameConversationResponseSchema, C as createConversationMessageBodySchema, 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-CvcBU1z2.js";
|
|
15
|
+
import { d as saveUserCustomization, p as isExperimentalFeatureEnabled, u as readUserCustomization } from "./prompt-input-Dxn8cDC0.js";
|
|
16
|
+
import { H as gapHistogramReport, L as GAP_SEGMENTS, a as segmentGapsKey, d as listChildAgents } from "./warmup-Bskrwmk1.js";
|
|
17
|
+
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CwfJy3Cd.js";
|
|
18
|
+
import { s as getEventCatalog } from "./notification-gusCgdQ6.js";
|
|
19
|
+
import { u as automationEventCatalog } from "./turn-session-routing-BlCtVFRN.js";
|
|
20
|
+
import { l as userCustomizationSchema } from "./user-input-request-CXNIov9n.js";
|
|
21
|
+
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-2Z_o_SsI.js";
|
|
22
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-C9kRQEb_.js";
|
|
23
|
+
import { a as fillUtcSixHours, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, m as apiErrorSchema, n as HOUR_MS$1, o as startOfUtcHour, r as fillUtcDays, s as sumUtcHoursIntoSixHours, t as DAY_MS$1, u as trailingUtcSixHourWindow } from "./reporting-window-DopzcOHh.js";
|
|
24
|
+
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-BrP6ImrC.js";
|
|
25
|
+
import { A as conversationRangeColumns, D as readAutomationTitlesByConversationId, at as AutomationConflictError, j as conversationUsageCostExpr, k as conversationAggregateColumns } from "./store-m5bmdmsP.js";
|
|
26
|
+
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-BSMlGZnS.js";
|
|
27
|
+
import { C as cancelConversationPendingMessagesForViewer, E as resolveMentions, M as isAllowedSignInEmail, Q as readReviewItemForUser, T as requireConversationPendingMessages, X as actOnReviewItem, Y as ReviewItemActionError, _ as conversationSummaryFromStoredConversation, a as pinConversation, at as archiveViewerDoneConversations, b as createConversationForViewer, c as readConversationAuxiliaryCostsFromSql, ct as setConversationAutoArchive, d as conversationVersionQuery, f as readConversationDetailEtag, h as readConversationEvents, i as readConversationFeed, it as DEFAULT_AUTO_ARCHIVE_SETTINGS, k as getProductionSlackAdapter, l as childAgentTotalsReport, lt as updateUserAutoArchiveSettings, m as keepQuickQuestionForViewer, n as steerConversationPendingMessagesForViewer, nt as continueConversationInSlack, o as reorderPinnedConversations, ot as readUserAutoArchiveSettings, p as forkConversationForViewer, pt as readHealthReport, r as conversationFeedVersionQuery, s as readConversationDetail, t as stopConversationTurnForViewer, tt as canContinueInSlack, u as readConversationTreeMetricsFromSql, v as readFirstHumanMessageTexts, y as appendConversationMessageForViewer } from "./stop-BCH9VNGf.js";
|
|
28
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-B96JUM5o.js";
|
|
29
|
+
import { c as resumeConversationDelivery, o as canPauseConversationDelivery, s as pauseConversationDelivery } from "./conversation-turn-CZWBr091.js";
|
|
30
|
+
import { A as revokePersonalTokenResponseSchema, At as conversationCatchUpSchema, B as activityDays$1, Ct as conversationDeliveryBodySchema, D as personalTokenListSchema, Dt as reorderPinnedConversationsBodySchema, E as createdPersonalTokenSchema, Et as pinConversationResponseSchema, F as personalSpendReportSchema, G as pushSubscriptionBodySchema, H as activitySixHours$1, J as connectionListSchema, K as pushSubscriptionDeleteBodySchema, L as locationDetailReportSchema, M as actorProfileReportSchema, N as avatarParamsSchema, Ot as reorderPinnedConversationsResponseSchema, P as personParamsSchema, Q as startConnectionResponseSchema, R as locationDirectoryReportSchema, S as serviceAccountParamsSchema, St as conversationSubscriptionResponseSchema, T as createPersonalTokenBodySchema, Tt as pinConversationBodySchema, V as activityHours$1, W as notificationSettingsSchema, Y as connectionParamsSchema, Z as disconnectConnectionResponseSchema, _ as reviewItemParamsSchema, _t as archiveConversationBodySchema, a as replyTimeSegmentsReportSchema, at as codeRepositoryReportSchema, b as disconnectServiceAccountResponseSchema, bt as conversationAutoArchiveSchema, c as workspaceBodySchema, ct as conversationWatchesReportSchema, dt as continueConversationInSlackBodySchema, f as workspaceSchema, ft as continueConversationInSlackResponseSchema, g as reviewItemListSchema, gt as conversationOutlineSchema, h as reviewItemListQuerySchema, i as statsReportSchema, it as codeRepositoryParamsSchema, j as actorDirectoryReportSchema, k as personalTokenParamsSchema, kt as conversationCatchUpBodySchema, l as workspaceListSchema, m as reviewItemCountSchema, mt as conversationStatsReportSchema, n as versionsSchema, nt as codeOverviewReportSchema, p as reviewItemActionSchema, pt as stopConversationTurnResponseSchema, q as testNotificationResponseSchema, rt as codePersonReportSchema, s as deleteWorkspaceResponseSchema, t as versionsQuerySchema, u as workspaceParamsSchema, ut as conversationChildAgentsReportSchema, v as reviewItemSchema, vt as archiveConversationResponseSchema, w as startServiceAccountSignInResponseSchema, wt as conversationDeliveryResponseSchema, x as serviceAccountListSchema, xt as conversationSubscriptionBodySchema, y as reviewItemWaitingConversationsSchema, yt as archiveDoneConversationsResponseSchema, z as locationParamsSchema } from "./schema-Bqa5NbcP.js";
|
|
27
31
|
import { Hono } from "hono";
|
|
28
32
|
import path from "node:path";
|
|
29
33
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
30
34
|
import * as z from "zod";
|
|
31
|
-
import { and,
|
|
32
|
-
import {
|
|
35
|
+
import { and, asc, countDistinct, desc, eq, gt, gte, inArray, isNull, lte, notExists, or, sql } from "drizzle-orm";
|
|
36
|
+
import { pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema } from "@sentry/junior-plugin-api";
|
|
33
37
|
import { alias } from "drizzle-orm/pg-core";
|
|
34
38
|
import fs from "node:fs/promises";
|
|
35
39
|
import { readFileSync } from "node:fs";
|
|
@@ -1026,13 +1030,12 @@ function createConversationRoutes(options) {
|
|
|
1026
1030
|
app.patch("/:conversationId/pin", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", pinConversationBodySchema, "Invalid request body."), async (context) => jsonResponse(pinConversationResponseSchema, await pinConversation(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
1027
1031
|
app.patch("/:conversationId/delivery", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationDeliveryBodySchema, "Invalid request body."), async (context) => jsonResponse(conversationDeliveryResponseSchema, await setConversationDeliveryForViewer(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
1028
1032
|
app.patch("/:conversationId/subscription", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationSubscriptionBodySchema, "Invalid request body."), async (context) => jsonResponse(conversationSubscriptionResponseSchema, await setConversationSubscription(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
1029
|
-
app.patch("/:conversationId/unread", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", markConversationUnreadBodySchema, "Invalid request body."), async (context) => jsonResponse(conversationUnreadSchema, await markConversationUnread(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
1030
1033
|
app.patch("/:conversationId/title", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", renameConversationBodySchema, "Invalid request body."), async (context) => jsonResponse(renameConversationResponseSchema, await renameConversation(context.get("viewer"), context.req.valid("param").conversationId, context.req.valid("json"))));
|
|
1031
1034
|
app.put("/:conversationId/read-position", requireViewer, validateRequest("param", conversationParamsSchema, "Invalid route parameters."), validateRequest("json", conversationReadPositionSchema, "Invalid request body."), async (context) => {
|
|
1032
1035
|
const viewer = context.get("viewer");
|
|
1033
1036
|
const { conversationId } = context.req.valid("param");
|
|
1034
1037
|
const body = context.req.valid("json");
|
|
1035
|
-
return jsonResponse(
|
|
1038
|
+
return jsonResponse(conversationReadPositionSchema, await reportConversationRead(viewer, conversationId, body));
|
|
1036
1039
|
});
|
|
1037
1040
|
app.put("/pin-order", requireViewer, validateRequest("json", reorderPinnedConversationsBodySchema, "Invalid request body."), async (context) => jsonResponse(reorderPinnedConversationsResponseSchema, await reorderPinnedConversations(context.get("viewer"), context.req.valid("json"))));
|
|
1038
1041
|
app.post("/archive-done", requireViewer, async (context) => jsonResponse(archiveDoneConversationsResponseSchema, await archiveViewerDoneConversations(context.get("viewer"))));
|
|
@@ -1145,239 +1148,6 @@ function createConversationRoutes(options) {
|
|
|
1145
1148
|
});
|
|
1146
1149
|
return app;
|
|
1147
1150
|
}
|
|
1148
|
-
// src/api/board/columns.ts
|
|
1149
|
-
const DONE_WINDOW_MS = 216e5;
|
|
1150
|
-
/** Choose the column of a code change that Junior created. */
|
|
1151
|
-
function codeChangeColumn(args) {
|
|
1152
|
-
if (args.state === "merged") return args.mergedAtMs !== void 0 && args.nowMs - args.mergedAtMs <= DONE_WINDOW_MS ? "done" : void 0;
|
|
1153
|
-
if (args.state === "closed") return void 0;
|
|
1154
|
-
return args.hasReadyNotice ? "ready" : "in_progress";
|
|
1155
|
-
}
|
|
1156
|
-
/** Choose the column of a ticket linked to a Conversation. */
|
|
1157
|
-
function ticketColumn(args) {
|
|
1158
|
-
if (args.status === "closed") return args.nowMs - args.updatedAtMs <= DONE_WINDOW_MS ? "done" : void 0;
|
|
1159
|
-
if (args.status !== "open") return void 0;
|
|
1160
|
-
return args.working ? "in_progress" : "planned";
|
|
1161
|
-
}
|
|
1162
|
-
// src/api/board/read.ts
|
|
1163
|
-
/** Root Conversations with activity in this window feed the Board. */
|
|
1164
|
-
const ACTIVE_WINDOW_MS = 12096e5;
|
|
1165
|
-
/** Bound the Board to the viewer's most recent root Conversations. */
|
|
1166
|
-
const ROOT_LIMIT = 200;
|
|
1167
|
-
function parentOf(nodes, node) {
|
|
1168
|
-
return node.parentConversationId ? nodes.get(node.parentConversationId) : void 0;
|
|
1169
|
-
}
|
|
1170
|
-
/**
|
|
1171
|
-
* A card belongs to the nearest root or Thread. People do not message a
|
|
1172
|
-
* Task, so its work shows on its parent. A row from an older deploy has no
|
|
1173
|
-
* kind; a child without a kind is treated as a Task. A Conversation shows
|
|
1174
|
-
* only while it and every ancestor are unarchived.
|
|
1175
|
-
*/
|
|
1176
|
-
function homeId(nodes, conversationId) {
|
|
1177
|
-
const start = nodes.get(conversationId);
|
|
1178
|
-
for (let node = start; node; node = parentOf(nodes, node)) if (node.archived) return void 0;
|
|
1179
|
-
let node = start;
|
|
1180
|
-
while (node && (node.kind === "task" || !node.kind && node.parentConversationId)) node = parentOf(nodes, node);
|
|
1181
|
-
return node?.conversationId;
|
|
1182
|
-
}
|
|
1183
|
-
function rootOf(nodes, node) {
|
|
1184
|
-
let current = node;
|
|
1185
|
-
for (let parent = parentOf(nodes, current); parent; parent = parentOf(nodes, parent)) current = parent;
|
|
1186
|
-
return current;
|
|
1187
|
-
}
|
|
1188
|
-
async function readViewerTrees(userId, nowMs) {
|
|
1189
|
-
const db = getDb();
|
|
1190
|
-
const rootIds = (await db.select({ conversationId: juniorConversations.conversationId }).from(juniorConversations).where(and(conversationIsMemberRoot({ userId }), listedConversation(), isNull(juniorConversations.archivedAt), gte(juniorConversations.lastActivityAt, /* @__PURE__ */ new Date(nowMs - ACTIVE_WINDOW_MS)))).orderBy(desc(juniorConversations.lastActivityAt)).limit(ROOT_LIMIT)).map((row) => row.conversationId);
|
|
1191
|
-
if (rootIds.length === 0) return {
|
|
1192
|
-
nodes: /* @__PURE__ */ new Map(),
|
|
1193
|
-
rootIds
|
|
1194
|
-
};
|
|
1195
|
-
const rows = await db.select({
|
|
1196
|
-
archivedAt: juniorConversations.archivedAt,
|
|
1197
|
-
conversationId: juniorConversations.conversationId,
|
|
1198
|
-
createdAt: juniorConversations.createdAt,
|
|
1199
|
-
kind: juniorConversations.kind,
|
|
1200
|
-
parentConversationId: juniorConversations.parentConversationId,
|
|
1201
|
-
status: juniorConversations.executionStatus,
|
|
1202
|
-
title: juniorConversations.title
|
|
1203
|
-
}).from(juniorConversations).where(or(inArray(juniorConversations.conversationId, rootIds), inArray(juniorConversations.rootConversationId, rootIds)));
|
|
1204
|
-
return {
|
|
1205
|
-
nodes: new Map(rows.map((row) => [row.conversationId, {
|
|
1206
|
-
archived: row.archivedAt !== null,
|
|
1207
|
-
conversationId: row.conversationId,
|
|
1208
|
-
createdAtMs: row.createdAt.getTime(),
|
|
1209
|
-
kind: row.kind,
|
|
1210
|
-
parentConversationId: row.parentConversationId,
|
|
1211
|
-
status: row.status,
|
|
1212
|
-
title: row.title
|
|
1213
|
-
}])),
|
|
1214
|
-
rootIds
|
|
1215
|
-
};
|
|
1216
|
-
}
|
|
1217
|
-
/**
|
|
1218
|
-
* Read the viewer's Board: the code changes and tickets of their recent
|
|
1219
|
-
* Conversations, each in one column. See `./columns` for the column rules.
|
|
1220
|
-
*/
|
|
1221
|
-
async function readBoard(args) {
|
|
1222
|
-
const db = getDb();
|
|
1223
|
-
const { nodes, rootIds } = await readViewerTrees(args.userId, args.nowMs);
|
|
1224
|
-
const treeIds = [...nodes.keys()];
|
|
1225
|
-
if (treeIds.length === 0) return {
|
|
1226
|
-
cards: [],
|
|
1227
|
-
doneWindowHours: 6
|
|
1228
|
-
};
|
|
1229
|
-
const doneSince = /* @__PURE__ */ new Date(args.nowMs - 216e5);
|
|
1230
|
-
const [codeChanges, ticketRows, needsViewerRows, participants] = await Promise.all([
|
|
1231
|
-
db.select({
|
|
1232
|
-
conversationIds: juniorCodeChanges.conversationIds,
|
|
1233
|
-
id: juniorCodeChanges.id,
|
|
1234
|
-
mergedAt: juniorCodeChanges.mergedAt,
|
|
1235
|
-
number: juniorCodeChanges.number,
|
|
1236
|
-
repository: juniorCodeRepositories.name,
|
|
1237
|
-
state: juniorCodeChanges.state,
|
|
1238
|
-
title: juniorCodeChanges.title,
|
|
1239
|
-
updatedAt: juniorCodeChanges.updatedAt,
|
|
1240
|
-
url: juniorCodeChanges.url
|
|
1241
|
-
}).from(juniorCodeChanges).innerJoin(juniorCodeRepositories, eq(juniorCodeRepositories.id, juniorCodeChanges.repositoryId)).where(and(or(eq(juniorCodeChanges.state, "open"), and(eq(juniorCodeChanges.state, "merged"), gte(juniorCodeChanges.mergedAt, doneSince))), arrayOverlaps(juniorCodeChanges.conversationIds, treeIds))),
|
|
1242
|
-
db.select({
|
|
1243
|
-
annotation: juniorConversationAnnotations.annotation,
|
|
1244
|
-
conversationId: juniorConversationAnnotations.conversationId,
|
|
1245
|
-
key: juniorConversationAnnotations.key,
|
|
1246
|
-
plugin: juniorConversationAnnotations.plugin,
|
|
1247
|
-
updatedAt: juniorConversationAnnotations.updatedAt
|
|
1248
|
-
}).from(juniorConversationAnnotations).where(and(inArray(juniorConversationAnnotations.conversationId, treeIds), sql`${juniorConversationAnnotations.annotation}->>'objectType' = 'task'`)),
|
|
1249
|
-
db.selectDistinct({ conversationId: juniorReviewItemConversations.conversationId }).from(juniorReviewItemConversations).innerJoin(juniorReviewItems, eq(juniorReviewItems.id, juniorReviewItemConversations.itemId)).where(and(inArray(juniorReviewItemConversations.conversationId, treeIds), reviewItemNeedsUser(args.userId))),
|
|
1250
|
-
readConversationParticipants(db, rootIds)
|
|
1251
|
-
]);
|
|
1252
|
-
const codeChangeUrls = codeChanges.flatMap((change) => change.state === "open" && change.url ? [change.url] : []);
|
|
1253
|
-
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] : []));
|
|
1254
|
-
const homes = /* @__PURE__ */ new Map();
|
|
1255
|
-
const workingHomes = /* @__PURE__ */ new Set();
|
|
1256
|
-
const needsViewerHomes = /* @__PURE__ */ new Set();
|
|
1257
|
-
for (const node of nodes.values()) {
|
|
1258
|
-
if (node.status !== "running" && node.status !== "pending") continue;
|
|
1259
|
-
const home = homeId(nodes, node.conversationId);
|
|
1260
|
-
if (home) workingHomes.add(home);
|
|
1261
|
-
}
|
|
1262
|
-
for (const row of needsViewerRows) {
|
|
1263
|
-
const home = homeId(nodes, row.conversationId);
|
|
1264
|
-
if (home) needsViewerHomes.add(home);
|
|
1265
|
-
}
|
|
1266
|
-
const homeFor = (conversationIds) => {
|
|
1267
|
-
let node;
|
|
1268
|
-
for (const conversationId of conversationIds) {
|
|
1269
|
-
const candidateId = homeId(nodes, conversationId);
|
|
1270
|
-
const candidate = candidateId ? nodes.get(candidateId) : void 0;
|
|
1271
|
-
if (!candidate) continue;
|
|
1272
|
-
if (!node || candidate.createdAtMs < node.createdAtMs || candidate.createdAtMs === node.createdAtMs && candidate.conversationId < node.conversationId) node = candidate;
|
|
1273
|
-
}
|
|
1274
|
-
if (!node) return void 0;
|
|
1275
|
-
const id = node.conversationId;
|
|
1276
|
-
const cached = homes.get(id);
|
|
1277
|
-
if (cached) return cached;
|
|
1278
|
-
const root = rootOf(nodes, node);
|
|
1279
|
-
const home = {
|
|
1280
|
-
conversation: {
|
|
1281
|
-
conversationId: id,
|
|
1282
|
-
...node.title ? { title: node.title } : void 0,
|
|
1283
|
-
...root !== node && root.title ? { rootTitle: root.title } : void 0
|
|
1284
|
-
},
|
|
1285
|
-
needsViewer: needsViewerHomes.has(id),
|
|
1286
|
-
participants: participants.get(root.conversationId) ?? [],
|
|
1287
|
-
working: workingHomes.has(id)
|
|
1288
|
-
};
|
|
1289
|
-
homes.set(id, home);
|
|
1290
|
-
return home;
|
|
1291
|
-
};
|
|
1292
|
-
const cards = [];
|
|
1293
|
-
for (const change of codeChanges) {
|
|
1294
|
-
const home = homeFor(change.conversationIds);
|
|
1295
|
-
if (!home) continue;
|
|
1296
|
-
const mergedAtMs = change.mergedAt?.getTime();
|
|
1297
|
-
const column = codeChangeColumn({
|
|
1298
|
-
hasReadyNotice: Boolean(change.url && readyUrls.has(change.url)),
|
|
1299
|
-
...mergedAtMs !== void 0 ? { mergedAtMs } : void 0,
|
|
1300
|
-
nowMs: args.nowMs,
|
|
1301
|
-
state: change.state
|
|
1302
|
-
});
|
|
1303
|
-
if (!column) continue;
|
|
1304
|
-
const label = `${change.repository}#${change.number}`;
|
|
1305
|
-
cards.push({
|
|
1306
|
-
column,
|
|
1307
|
-
conversation: home.conversation,
|
|
1308
|
-
key: `code_change:${change.id}`,
|
|
1309
|
-
label,
|
|
1310
|
-
needsViewer: home.needsViewer,
|
|
1311
|
-
objectType: "code_change",
|
|
1312
|
-
participants: home.participants,
|
|
1313
|
-
status: change.state,
|
|
1314
|
-
title: change.title ?? label,
|
|
1315
|
-
updatedAt: (change.mergedAt ?? change.updatedAt).toISOString(),
|
|
1316
|
-
...change.url ? { url: change.url } : void 0,
|
|
1317
|
-
working: home.working
|
|
1318
|
-
});
|
|
1319
|
-
}
|
|
1320
|
-
const tickets = /* @__PURE__ */ new Map();
|
|
1321
|
-
for (const row of ticketRows) {
|
|
1322
|
-
const key = `${row.plugin}:${row.key}`;
|
|
1323
|
-
const current = tickets.get(key);
|
|
1324
|
-
if (!current) {
|
|
1325
|
-
tickets.set(key, {
|
|
1326
|
-
conversationIds: /* @__PURE__ */ new Set([row.conversationId]),
|
|
1327
|
-
latest: row
|
|
1328
|
-
});
|
|
1329
|
-
continue;
|
|
1330
|
-
}
|
|
1331
|
-
current.conversationIds.add(row.conversationId);
|
|
1332
|
-
if (row.updatedAt > current.latest.updatedAt) current.latest = row;
|
|
1333
|
-
}
|
|
1334
|
-
for (const [key, ticket] of tickets) {
|
|
1335
|
-
const parsed = conversationAnnotationInputSchema.safeParse(ticket.latest.annotation);
|
|
1336
|
-
if (!parsed.success) continue;
|
|
1337
|
-
const annotation = parsed.data;
|
|
1338
|
-
const status = annotation.status;
|
|
1339
|
-
if (!status) continue;
|
|
1340
|
-
const home = homeFor(ticket.conversationIds);
|
|
1341
|
-
if (!home) continue;
|
|
1342
|
-
const column = ticketColumn({
|
|
1343
|
-
nowMs: args.nowMs,
|
|
1344
|
-
status,
|
|
1345
|
-
updatedAtMs: ticket.latest.updatedAt.getTime(),
|
|
1346
|
-
working: home.working
|
|
1347
|
-
});
|
|
1348
|
-
if (!column) continue;
|
|
1349
|
-
const title = annotation.kind === "object" ? annotation.title : annotation.description ?? annotation.label;
|
|
1350
|
-
cards.push({
|
|
1351
|
-
column,
|
|
1352
|
-
conversation: home.conversation,
|
|
1353
|
-
key: `ticket:${key}`,
|
|
1354
|
-
label: annotation.label,
|
|
1355
|
-
needsViewer: home.needsViewer,
|
|
1356
|
-
objectType: "task",
|
|
1357
|
-
participants: home.participants,
|
|
1358
|
-
status,
|
|
1359
|
-
title,
|
|
1360
|
-
updatedAt: ticket.latest.updatedAt.toISOString(),
|
|
1361
|
-
...annotation.url ? { url: annotation.url } : void 0,
|
|
1362
|
-
working: home.working
|
|
1363
|
-
});
|
|
1364
|
-
}
|
|
1365
|
-
cards.sort((left, right) => right.updatedAt.localeCompare(left.updatedAt));
|
|
1366
|
-
return {
|
|
1367
|
-
cards,
|
|
1368
|
-
doneWindowHours: 6
|
|
1369
|
-
};
|
|
1370
|
-
}
|
|
1371
|
-
// src/api/board/routes.ts
|
|
1372
|
-
/** Create the viewer's Board API. */
|
|
1373
|
-
function createBoardRoutes() {
|
|
1374
|
-
const app = new Hono();
|
|
1375
|
-
app.get("/", requireViewer, async (context) => jsonResponse(boardReportSchema, await readBoard({
|
|
1376
|
-
nowMs: Date.now(),
|
|
1377
|
-
userId: context.get("viewer").id
|
|
1378
|
-
}), { headers: { "cache-control": "private, no-store" } }));
|
|
1379
|
-
return app;
|
|
1380
|
-
}
|
|
1381
1151
|
// src/api/code/overview.ts
|
|
1382
1152
|
const DAY_MS = 864e5;
|
|
1383
1153
|
const WINDOW_DAYS = 30;
|
|
@@ -1540,6 +1310,7 @@ async function readCodeWindows(args) {
|
|
|
1540
1310
|
const codeChangeReportColumns = {
|
|
1541
1311
|
closedAt: juniorCodeChanges.closedAt,
|
|
1542
1312
|
id: juniorCodeChanges.id,
|
|
1313
|
+
lastActivityAt: juniorCodeChanges.lastActivityAt,
|
|
1543
1314
|
mergedAt: juniorCodeChanges.mergedAt,
|
|
1544
1315
|
number: juniorCodeChanges.number,
|
|
1545
1316
|
openedAt: juniorCodeChanges.openedAt,
|
|
@@ -1554,6 +1325,7 @@ function codeChangeReport(change) {
|
|
|
1554
1325
|
return {
|
|
1555
1326
|
...change,
|
|
1556
1327
|
closedAt: change.closedAt?.toISOString(),
|
|
1328
|
+
lastActivityAt: change.lastActivityAt?.toISOString(),
|
|
1557
1329
|
mergedAt: change.mergedAt?.toISOString(),
|
|
1558
1330
|
openedAt: change.openedAt.toISOString(),
|
|
1559
1331
|
title: change.title ?? void 0,
|
|
@@ -2633,7 +2405,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2633
2405
|
reports: [],
|
|
2634
2406
|
source: "plugins"
|
|
2635
2407
|
});
|
|
2636
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2408
|
+
const { getPluginProfileReports } = await import("./projection-B08mfi0u.js").then((n) => n.qn);
|
|
2637
2409
|
return pluginOperationalReportFeedSchema.parse({
|
|
2638
2410
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2639
2411
|
reports: await getPluginProfileReports({
|
|
@@ -3662,7 +3434,7 @@ function readDescriptionText(home) {
|
|
|
3662
3434
|
}
|
|
3663
3435
|
/** Read discovered skills for runtime diagnostics and the Automation editor. */
|
|
3664
3436
|
async function readSkillReports() {
|
|
3665
|
-
const { discoverSkills } = await import("./skills-
|
|
3437
|
+
const { discoverSkills } = await import("./skills-B0m1nZ_j.js").then((n) => n.o);
|
|
3666
3438
|
const skills = await discoverSkills();
|
|
3667
3439
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3668
3440
|
name: skill.name,
|
|
@@ -3676,7 +3448,7 @@ async function readSkillReports() {
|
|
|
3676
3448
|
* what the skill tells Junior. Returns null when no skill has that name.
|
|
3677
3449
|
*/
|
|
3678
3450
|
async function readSkillDetailReport(name) {
|
|
3679
|
-
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-
|
|
3451
|
+
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-B0m1nZ_j.js").then((n) => n.o);
|
|
3680
3452
|
const skill = findSkillByName(name, await discoverSkills());
|
|
3681
3453
|
if (!skill) return null;
|
|
3682
3454
|
const parsed = parseSkillFile(await fs.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
@@ -3691,7 +3463,7 @@ async function readSkillDetailReport(name) {
|
|
|
3691
3463
|
}
|
|
3692
3464
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3693
3465
|
async function readPlugins() {
|
|
3694
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3466
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-0kuQqYL4.js").then((n) => n.t);
|
|
3695
3467
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3696
3468
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3697
3469
|
description: plugin.manifest.description,
|
|
@@ -3703,7 +3475,7 @@ async function readPlugins() {
|
|
|
3703
3475
|
async function readRuntimeInfoReport() {
|
|
3704
3476
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3705
3477
|
import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
|
|
3706
|
-
import("./catalog-runtime-
|
|
3478
|
+
import("./catalog-runtime-0kuQqYL4.js").then((n) => n.t),
|
|
3707
3479
|
readPlugins(),
|
|
3708
3480
|
readSkillReports()
|
|
3709
3481
|
]);
|
|
@@ -3720,7 +3492,7 @@ async function readRuntimeInfoReport() {
|
|
|
3720
3492
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3721
3493
|
async function readPluginOperationalReportFeed() {
|
|
3722
3494
|
const nowMs = Date.now();
|
|
3723
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3495
|
+
const { getPluginOperationalReports } = await import("./projection-B08mfi0u.js").then((n) => n.qn);
|
|
3724
3496
|
return pluginOperationalReportFeedSchema.parse({
|
|
3725
3497
|
source: "plugins",
|
|
3726
3498
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -3753,7 +3525,6 @@ function createJuniorApi(options = {}) {
|
|
|
3753
3525
|
queue,
|
|
3754
3526
|
show: createSlackReviewItemShow(getProductionSlackAdapter)
|
|
3755
3527
|
} }));
|
|
3756
|
-
app.route("/api/board", createBoardRoutes());
|
|
3757
3528
|
app.route("/api/code", createCodeRoutes());
|
|
3758
3529
|
app.route("/api/connections", createConnectionRoutes());
|
|
3759
3530
|
app.route("/api/notifications", createNotificationRoutes());
|