@sentry/junior 0.300.0 → 0.301.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-S5UkjNK3.js → adapter-CNjGEJO9.js} +1 -1
- package/dist/{admin-UrTniSPO.js → admin-CRJHvCGg.js} +2 -2
- package/dist/{agent-runner-bY4_0UPm.js → agent-runner-H4YhvNBj.js} +32 -93
- 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 +67 -33
- package/dist/{app-D-AcIcCV.d.ts → app-HDZglaIu.d.ts} +3 -3
- package/dist/app.d.ts +1 -1
- package/dist/app.js +36 -34
- package/dist/{automation-Dw82oQ-h.js → automation-Cva5ZOwW.js} +1 -1
- package/dist/{background-compaction-queue-B6U3060-.js → background-compaction-queue-CNrZ3QcU.js} +3 -3
- package/dist/{briefs-DqiwWu-n.js → briefs-x6Mzwxmg.js} +3 -3
- package/dist/{catalog-runtime-D1oYNv04.js → catalog-runtime-BEY6EGRi.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-9nHoFiJP.js → config-CmjhyqgB.js} +2 -2
- package/dist/{connections-DZjTN3JC.js → connections-CfIRm0xv.js} +6 -6
- package/dist/{continue-in-slack-Dtv7_U42.js → continue-in-slack-DPoABVkB.js} +6 -6
- package/dist/{conversation-Dyjq2CZ8.js → conversation-BNXfq6Lb.js} +11 -1
- package/dist/{conversation-feed-CcDxlrlQ.js → conversation-feed-CfpyFMHP.js} +1 -1
- package/dist/{conversation-privacy-D-5HTXjS.js → conversation-privacy-0CM0V2qK.js} +1 -1
- package/dist/{conversation-turn-Cxl8WZD7.js → conversation-turn-C0sxyvS-.js} +17 -17
- package/dist/{credential-sync-C49ClwDX.js → credential-sync-tEMKZ_8M.js} +15 -15
- package/dist/{db-2resqBh1.d.ts → db-BdUHQhrC.d.ts} +1 -1
- package/dist/{db-BJNo6fK5.js → db-Czra10QW.js} +4 -4
- package/dist/{executor-DBIaOeJ_.js → executor-D_023K0H.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-0dereG7H.js → lineage-DmMIE0VL.js} +2 -2
- package/dist/{logging-BIclibct.js → logging-DcjLDDqi.js} +1 -1
- package/dist/{message-dkOl-Iii.js → message-C0JY9RJP.js} +8 -8
- package/dist/{model-input-CLo9TaUd.js → model-input-CBp-p24N.js} +2 -2
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-WmpjfJgQ.js → oauth-callback-server-BRq9QNhU.js} +2 -2
- package/dist/{projection-w_X-zi7v.js → projection-CQNDOi82.js} +167 -45
- package/dist/{prompt-B1Xw46-S.js → prompt-DLUB5m72.js} +4 -4
- package/dist/{registry-BmP5vnlj.js → registry-Dj377ADs.js} +1 -1
- package/dist/{resolve-goo34bJK.js → resolve-DJkh9Fky.js} +3 -3
- package/dist/{result-PVBeU0Wf.js → result-C8iIpDl1.js} +8 -8
- package/dist/{runner-DKrfvNV6.js → runner-DZqrOy8C.js} +9 -9
- package/dist/{sandbox-egress-signals-DsUcqrI0.js → sandbox-egress-signals-CGwH86S9.js} +1 -1
- package/dist/{schema-Dns-sTas.d.ts → schema-CdZFn7Qd.d.ts} +30 -1
- package/dist/{schema-C9iNFz5n.js → schema-DyHXiQKI.js} +12 -4
- package/dist/{service-account-CMAAloAL.js → service-account-D6jGR4a1.js} +3 -3
- package/dist/{service-account-CmowamcB.js → service-account-suY004dx.js} +4 -4
- package/dist/{session-stop-BcAXze8a.js → session-stop-BLmfFI3d.js} +117 -16
- package/dist/{skills-DfsazET6.js → skills-CmNG0dHb.js} +2 -2
- package/dist/{slack-conversation-unfurl-CzQonuWz.js → slack-conversation-unfurl-Bty-DlHe.js} +7 -7
- package/dist/{spawn-C7o0FDDp.js → spawn-CNjkpXpk.js} +6 -6
- package/dist/{state-zSilNpbi.js → state-CEbZuZD6.js} +2 -2
- package/dist/{stop-CFOujp8C.js → stop-Bjy2-K4H.js} +249 -2237
- package/dist/{store-E3x2Fg_F.js → store-DmV4CoNr.js} +5 -5
- package/dist/{store-Dkeis_8o.js → store-Epv6t4vV.js} +9 -9
- package/dist/{task-queue-D-hCqdZW.js → task-queue-AhG1tSXR.js} +3 -3
- package/dist/{task-runner-vohUPLHe.js → task-runner-BMxZI3o7.js} +8 -8
- package/dist/{thread-context-BzvdkgI9.js → thread-context-CXLnbg7g.js} +8 -8
- package/dist/{turn-session-routing-Bo_LxFum.js → turn-session-routing-BD3-jJl7.js} +5 -5
- package/dist/{turn-user-message-D5RnVmxQ.js → turn-user-message-DsUZi9gn.js} +3 -3
- package/dist/{users-2bggndVg.js → users-BxvYclQg.js} +3 -3
- package/dist/{validation-BbWikeSa.js → validation-DOz8X9BU.js} +1 -1
- package/dist/{version-GVBMW2jA.js → version-CGMRmMPK.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-BpxRliyO.js → viewer-H3EsMWtJ.js} +3 -3
- package/dist/{warmup-BW2qwnal.js → warmup-CdU5hR49.js} +47 -25
- package/dist/{worker-Cbd-iuwZ.js → worker-ClphajjD.js} +7 -7
- package/package.json +6 -6
package/dist/api.js
CHANGED
|
@@ -1,33 +1,34 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { R as escapeXml, Z as getAttachmentStorage, n as botConfig } from "./config-
|
|
3
|
-
import { h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { $a as workspaceRepoCheckoutPath, Ar as countReviewItemsNeedingUser, Cr as readNotificationSchedule, Er as isPausedBySlack, Hi as createWorkspace, Hr as canActOnReviewItem, Ir as listWaitingConversations, Ji as updateWorkspace, Ki as listWorkspaces, Kr as isOnlyAssignee, Lr as reviewItemsNeedingUserVersionQuery, Pi as getDashboardSettingsLink, Qr as reviewItemReaderForUserInConversation, Rr as searchReviewItems, Sr as listPushSubscriptions, Tr as savePushSubscription, Ui as deleteWorkspace, Uo as readSlackAttachmentSource, V as createPluginEgress, Wi as getWorkspace, Yi as WorkspaceValidationError, Za as SANDBOX_RUNTIME, Zn as createUserTokenStore, Zr as reviewItemReaderForUser, _o as createPluginLogger, bo as createConversationAccessReader, br as resolveNotificationTimezone, ds as listConversationAnnotations, ea as create, fr as getPlugins, jo as readConversationEventPage, ko as readConversationBriefThrough, qi as listWorkspacesByRepository, ta as hash, us as createPluginAnnotations, vr as readWebPushConfig, wr as saveNotificationSchedule, xo as readConversationAccessFromSql, xr as deletePushSubscription, yr as sendPushNotificationToUser, ys as createPluginCache } from "./projection-CQNDOi82.js";
|
|
2
|
+
import { R as escapeXml, Z as getAttachmentStorage, n as botConfig } from "./config-CmjhyqgB.js";
|
|
3
|
+
import { h as logWarn, m as logInfo, p as logException } from "./logging-DcjLDDqi.js";
|
|
4
4
|
import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-D2iXzvlN.js";
|
|
5
|
-
import { D as conversationKindFromRow, W as createCache, _ as loadConversationSlackTenantIds, a as getConversationStore, nt as nextDetailVersion, o as getDb, s as getSqlExecutor, x as withConversationMutationLock } from "./db-
|
|
6
|
-
import { D as juniorCodeChanges, M as juniorIdentities, N as juniorUsers, O as juniorCodeRepositories, P as juniorDestinations, S as juniorConversationMetrics, T as juniorApiTokens, b as juniorConversationBriefs, j as juniorConversations, w as juniorConversationEvents } from "./executor-
|
|
7
|
-
import { r as getStateAdapter } from "./adapter-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
5
|
+
import { D as conversationKindFromRow, W as createCache, _ as loadConversationSlackTenantIds, a as getConversationStore, nt as nextDetailVersion, o as getDb, s as getSqlExecutor, x as withConversationMutationLock } from "./db-Czra10QW.js";
|
|
6
|
+
import { D as juniorCodeChanges, M as juniorIdentities, N as juniorUsers, O as juniorCodeRepositories, P as juniorDestinations, S as juniorConversationMetrics, T as juniorApiTokens, b as juniorConversationBriefs, j as juniorConversations, w as juniorConversationEvents } from "./executor-D_023K0H.js";
|
|
7
|
+
import { r as getStateAdapter } from "./adapter-CNjGEJO9.js";
|
|
8
|
+
import { f as credentialContextForActor } from "./registry-Dj377ADs.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BEY6EGRi.js";
|
|
10
|
+
import { B as activateViewerAutomationVersion, Dt as throwApiError, Et as jsonResponse, G as ViewerTaskNotFoundError, H as deleteViewerTask, J as readViewerAutomationRuns, Ot as previewOriginBelongsTo, Q as AutomationEditError, T as createSlackReviewItemShow, Tt as emptyResponse, U as readViewerAutomationEdit, V as changeViewerAutomationLifecycle, W as updateViewerAutomation, X as readViewerAutomationVersions, Y as readViewerAutomationSummary, Z as readViewerAutomations, _ as readAttachmentContent, et as listOwnedWatches, ft as AttachmentUploadError, g as AttachmentDownloadError, gt as writeAttachmentUpload, h as readStats, it as acceptsWebMessages, mt as createAttachmentUpload, q as readViewerAutomationExecutions, ut as webActorFromUser, vt as readLiveAttachment, wt as reportConversationRead, x as setConversationSubscription, xt as archiveConversation } from "./agent-runner-H4YhvNBj.js";
|
|
11
|
+
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-DLUB5m72.js";
|
|
11
12
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
12
|
-
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarFetch, t as findUserByEmail } from "./viewer-
|
|
13
|
-
import { C as createConversationBodySchema, E as forkConversationResponseSchema, F as renameConversationBodySchema, G as MAX_ATTACHMENT_BYTES, I as renameConversationResponseSchema, L as conversationReadPositionSchema, T as forkConversationBodySchema, f as conversationEventPageSchema, h as conversationParamsSchema, l as conversationDetailQuerySchema, m as conversationFeedQuerySchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationEventsQuerySchema, r as acceptedConversationMessageSchema, s as conversationAttachmentQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationDetailReportSchema, w as createConversationMessageBodySchema } from "./conversation-
|
|
14
|
-
import { R as getEventCatalog, S as addConversationNote, _ as readUserCustomization, b as isExperimentalFeatureEnabled, v as saveUserCustomization } from "./session-stop-
|
|
15
|
-
import {
|
|
16
|
-
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
17
|
-
import { u as automationEventCatalog } from "./turn-session-routing-
|
|
13
|
+
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarFetch, t as findUserByEmail } from "./viewer-H3EsMWtJ.js";
|
|
14
|
+
import { C as createConversationBodySchema, E as forkConversationResponseSchema, F as renameConversationBodySchema, G as MAX_ATTACHMENT_BYTES, I as renameConversationResponseSchema, L as conversationReadPositionSchema, T as forkConversationBodySchema, f as conversationEventPageSchema, h as conversationParamsSchema, l as conversationDetailQuerySchema, m as conversationFeedQuerySchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationEventsQuerySchema, r as acceptedConversationMessageSchema, s as conversationAttachmentQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationDetailReportSchema, w as createConversationMessageBodySchema } from "./conversation-BNXfq6Lb.js";
|
|
15
|
+
import { R as getEventCatalog, S as addConversationNote, _ as readUserCustomization, b as isExperimentalFeatureEnabled, v as saveUserCustomization } from "./session-stop-BLmfFI3d.js";
|
|
16
|
+
import { At as GAP_SEGMENTS, Dt as breakerStates, Ft as gapHistogramReport, Ot as closeBreaker, a as segmentGapsKey, d as listChildAgents, kt as connectedState } from "./warmup-CdU5hR49.js";
|
|
17
|
+
import { l as getVercelConversationWorkQueue } from "./background-compaction-queue-CNrZ3QcU.js";
|
|
18
|
+
import { u as automationEventCatalog } from "./turn-session-routing-BD3-jJl7.js";
|
|
18
19
|
import { d as INLINE_VIDEO_TYPES, f as INPUT_IMAGE_TYPES, g as userCustomizationSchema, p as detectImageMediaType } from "./statuses-Hn-HsOph.js";
|
|
19
|
-
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-
|
|
20
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
20
|
+
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-DJkh9Fky.js";
|
|
21
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-suY004dx.js";
|
|
21
22
|
import { a as fillUtcSixHours, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, m as apiErrorSchema, n as HOUR_MS$1, o as startOfUtcHour, r as fillUtcDays, s as sumUtcHoursIntoSixHours, t as DAY_MS$1, u as trailingUtcSixHourWindow } from "./reporting-window-DopzcOHh.js";
|
|
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 { A as conversationRangeColumns, D as readAutomationTitlesByConversationId, at as AutomationConflictError, j as conversationUsageCostExpr, k as conversationAggregateColumns } from "./store-
|
|
24
|
-
import { a as runWithSlackInstallation } from "./users-
|
|
25
|
-
import { $ as decodeImageId, F as readReviewItemForUser, G as OBJECT_LINK_TTL_MS, H as updateUserAutoArchiveSettings, J as resolveObjectLinks, L as DEFAULT_AUTO_ARCHIVE_SETTINGS, M as ReviewItemActionError, N as actOnReviewItem, O as isAllowedSignInEmail, Q as IMAGE_WIDTHS, R as archiveViewerDoneConversations, S as cancelConversationPendingMessagesForViewer, T as resolveMentions, V as setConversationAutoArchive, W as readHealthReport, Y as guardedFetch, _ as appendConversationMessageForViewer, a as pinConversation, bt as readFirstHumanMessageTexts, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionQuery, f as readConversationDetailEtag, h as readConversationEvents, i as readConversationFeed, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, n as steerConversationPendingMessagesForViewer, nt as getProductionSlackAdapter, o as reorderPinnedConversations, p as forkConversationForViewer, q as resolveObjectLinkNow, r as conversationFeedVersionQuery, s as readConversationDetail, t as stopConversationTurnForViewer, u as readConversationTreeMetricsFromSql, v as createConversationForViewer, w as requireConversationPendingMessages, y as requireWebMessageConversation, yt as conversationSummaryFromStoredConversation, z as readUserAutoArchiveSettings } from "./stop-
|
|
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-
|
|
27
|
-
import { a as resumeConversationDelivery, i as pauseConversationDelivery, r as canPauseConversationDelivery } from "./conversation-turn-
|
|
28
|
-
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-
|
|
29
|
-
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-
|
|
30
|
-
import { A as
|
|
23
|
+
import { F as compileScheduleIntent, P as ScheduleIntentError, U as automationTaskText, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-Cva5ZOwW.js";
|
|
24
|
+
import { A as conversationRangeColumns, D as readAutomationTitlesByConversationId, at as AutomationConflictError, j as conversationUsageCostExpr, k as conversationAggregateColumns } from "./store-Epv6t4vV.js";
|
|
25
|
+
import { a as runWithSlackInstallation } from "./users-BxvYclQg.js";
|
|
26
|
+
import { $ as decodeImageId, F as readReviewItemForUser, G as OBJECT_LINK_TTL_MS, H as updateUserAutoArchiveSettings, J as resolveObjectLinks, L as DEFAULT_AUTO_ARCHIVE_SETTINGS, M as ReviewItemActionError, N as actOnReviewItem, O as isAllowedSignInEmail, Q as IMAGE_WIDTHS, R as archiveViewerDoneConversations, S as cancelConversationPendingMessagesForViewer, T as resolveMentions, V as setConversationAutoArchive, W as readHealthReport, Y as guardedFetch, _ as appendConversationMessageForViewer, a as pinConversation, bt as readFirstHumanMessageTexts, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionQuery, f as readConversationDetailEtag, h as readConversationEvents, i as readConversationFeed, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, n as steerConversationPendingMessagesForViewer, nt as getProductionSlackAdapter, o as reorderPinnedConversations, p as forkConversationForViewer, q as resolveObjectLinkNow, r as conversationFeedVersionQuery, s as readConversationDetail, t as stopConversationTurnForViewer, u as readConversationTreeMetricsFromSql, v as createConversationForViewer, w as requireConversationPendingMessages, y as requireWebMessageConversation, yt as conversationSummaryFromStoredConversation, z as readUserAutoArchiveSettings } from "./stop-Bjy2-K4H.js";
|
|
27
|
+
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-CfpyFMHP.js";
|
|
28
|
+
import { a as resumeConversationDelivery, i as pauseConversationDelivery, r as canPauseConversationDelivery } from "./conversation-turn-C0sxyvS-.js";
|
|
29
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-CfIRm0xv.js";
|
|
30
|
+
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-DPoABVkB.js";
|
|
31
|
+
import { A as personalTokenListSchema, At as conversationSubscriptionResponseSchema, B as locationDetailReportSchema, Bt as attachmentUploadSchema, C as disconnectServiceAccountResponseSchema, D as startServiceAccountSignInResponseSchema, Dt as archiveDoneConversationsResponseSchema, Et as archiveConversationResponseSchema, F as actorProfileReportSchema, Ft as reorderPinnedConversationsBodySchema, G as activitySixHours$1, H as locationParamsSchema, I as avatarParamsSchema, It as reorderPinnedConversationsResponseSchema, J as pushSubscriptionBodySchema, L as personParamsSchema, Lt as conversationCatchUpBodySchema, M as personalTokenParamsSchema, Mt as conversationDeliveryResponseSchema, N as revokePersonalTokenResponseSchema, Nt as pinConversationBodySchema, O as createPersonalTokenBodySchema, Ot as conversationAutoArchiveSchema, P as actorDirectoryReportSchema, Pt as pinConversationResponseSchema, Q as connectionParamsSchema, R as personalSpendReportSchema, Rt as conversationCatchUpSchema, S as closeCacheWarmingBreakerResponseSchema, St as conversationStatsReportSchema, T as serviceAccountParamsSchema, Tt as archiveConversationBodySchema, U as activityDays$1, V as locationDirectoryReportSchema, Vt as createAttachmentUploadBodySchema, W as activityHours$1, X as testNotificationResponseSchema, Y as pushSubscriptionDeleteBodySchema, Z as connectionListSchema, _ as reviewItemParamsSchema, _t as attachObjectLinkBodySchema, a as replyTimeSegmentsReportSchema, at as codeOverviewReportSchema, b as cacheWarmingBreakerListSchema, bt as objectLinksReportSchema, c as workspaceBodySchema, ct as codeRepositoryReportSchema, dt as conversationWatchesReportSchema, et as disconnectConnectionResponseSchema, f as workspaceSchema, g as reviewItemListSchema, h as reviewItemListQuerySchema, ht as continueConversationInSlackResponseSchema, i as statsReportSchema, jt as conversationDeliveryBodySchema, k as createdPersonalTokenSchema, kt as conversationSubscriptionBodySchema, l as workspaceListSchema, m as reviewItemCountSchema, mt as continueConversationInSlackBodySchema, n as versionsSchema, ot as codePersonReportSchema, p as reviewItemActionSchema, pt as conversationChildAgentsReportSchema, q as notificationSettingsSchema, s as deleteWorkspaceResponseSchema, st as codeRepositoryParamsSchema, t as versionsQuerySchema, tt as startConnectionResponseSchema, u as workspaceParamsSchema, v as reviewItemSchema, vt as attachObjectLinkResponseSchema, w as serviceAccountListSchema, wt as conversationOutlineSchema, x as cacheWarmingBreakerParamsSchema, xt as stopConversationTurnResponseSchema, y as reviewItemWaitingConversationsSchema, yt as objectLinksQuerySchema, zt as attachmentUploadParamsSchema } from "./schema-DyHXiQKI.js";
|
|
31
32
|
import { Hono } from "hono";
|
|
32
33
|
import * as z from "zod";
|
|
33
34
|
import path from "node:path";
|
|
@@ -2164,8 +2165,14 @@ const FETCH_TIMEOUT_MS = 5e3;
|
|
|
2164
2165
|
* image format.
|
|
2165
2166
|
*/
|
|
2166
2167
|
async function fetchImage(image) {
|
|
2168
|
+
const { location, ...request } = image;
|
|
2169
|
+
const url = location ? await location() : request.url;
|
|
2170
|
+
if (!url) return { failure: "not_found" };
|
|
2167
2171
|
const fetched = await guardedFetch({
|
|
2168
|
-
...
|
|
2172
|
+
...location ? {
|
|
2173
|
+
hosts: request.hosts,
|
|
2174
|
+
url
|
|
2175
|
+
} : request,
|
|
2169
2176
|
accept: "image/*",
|
|
2170
2177
|
maxBytes: MAX_IMAGE_BYTES,
|
|
2171
2178
|
timeoutMs: FETCH_TIMEOUT_MS
|
|
@@ -2185,6 +2192,10 @@ async function fetchImage(image) {
|
|
|
2185
2192
|
*/
|
|
2186
2193
|
const IMAGE_CACHE_TTL_MS = 864e5;
|
|
2187
2194
|
const IMAGE_FAILURE_TTL_MS = 3e5;
|
|
2195
|
+
const IMAGE_SYSTEM_ACTOR = {
|
|
2196
|
+
platform: "system",
|
|
2197
|
+
name: "image"
|
|
2198
|
+
};
|
|
2188
2199
|
const CORE_SOURCES = {
|
|
2189
2200
|
avatar: (_viewer, identityId) => readAvatarFetch(getDb(), identityId),
|
|
2190
2201
|
public: async (_viewer, url) => ({ url })
|
|
@@ -2196,6 +2207,10 @@ function pluginSource(plugin) {
|
|
|
2196
2207
|
return (viewer, ref) => images.resolve({
|
|
2197
2208
|
cache: createPluginCache(name),
|
|
2198
2209
|
db: getDb(),
|
|
2210
|
+
egress: createPluginEgress({
|
|
2211
|
+
credentialContext: credentialContextForActor(IMAGE_SYSTEM_ACTOR),
|
|
2212
|
+
pluginAuth: { async handleAuthRequired() {} }
|
|
2213
|
+
}),
|
|
2199
2214
|
log: createPluginLogger(name),
|
|
2200
2215
|
plugin: { name },
|
|
2201
2216
|
viewer
|
|
@@ -2725,7 +2740,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2725
2740
|
reports: [],
|
|
2726
2741
|
source: "plugins"
|
|
2727
2742
|
});
|
|
2728
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2743
|
+
const { getPluginProfileReports } = await import("./projection-CQNDOi82.js").then((n) => n.nr);
|
|
2729
2744
|
return pluginOperationalReportFeedSchema.parse({
|
|
2730
2745
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2731
2746
|
reports: await getPluginProfileReports({
|
|
@@ -3163,6 +3178,24 @@ function createServiceAccountRoutes() {
|
|
|
3163
3178
|
});
|
|
3164
3179
|
return app;
|
|
3165
3180
|
}
|
|
3181
|
+
// src/api/cache-warming/routes.ts
|
|
3182
|
+
/**
|
|
3183
|
+
* Create admin-only routes that show and close the cache warming breakers.
|
|
3184
|
+
*
|
|
3185
|
+
* A breaker stops warming for every Conversation, so only a Junior admin can
|
|
3186
|
+
* close one before it closes by itself.
|
|
3187
|
+
*/
|
|
3188
|
+
function createCacheWarmingRoutes() {
|
|
3189
|
+
const app = new Hono();
|
|
3190
|
+
app.get("/breakers", requireAdmin, async () => jsonResponse(cacheWarmingBreakerListSchema, { breakers: await breakerStates(await connectedState()) }));
|
|
3191
|
+
app.delete("/breakers/:provider", requireAdmin, validateRequest("param", cacheWarmingBreakerParamsSchema, "Invalid provider."), async (context) => {
|
|
3192
|
+
const { provider } = context.req.valid("param");
|
|
3193
|
+
if (!await closeBreaker(await connectedState(), provider)) throwApiError(404, "Breaker not found.");
|
|
3194
|
+
logInfo("dashboard.cache_warming.breaker_closed", { "app.cache_warming.provider": provider });
|
|
3195
|
+
return jsonResponse(closeCacheWarmingBreakerResponseSchema, { closed: true });
|
|
3196
|
+
});
|
|
3197
|
+
return app;
|
|
3198
|
+
}
|
|
3166
3199
|
// src/chat/plugins/user-pages.ts
|
|
3167
3200
|
/**
|
|
3168
3201
|
* Runtime ownership for plugin user pages.
|
|
@@ -3746,7 +3779,7 @@ function readDescriptionText(home) {
|
|
|
3746
3779
|
}
|
|
3747
3780
|
/** Read discovered skills for runtime diagnostics and the Automation editor. */
|
|
3748
3781
|
async function readSkillReports() {
|
|
3749
|
-
const { discoverSkills } = await import("./skills-
|
|
3782
|
+
const { discoverSkills } = await import("./skills-CmNG0dHb.js").then((n) => n.o);
|
|
3750
3783
|
const skills = await discoverSkills();
|
|
3751
3784
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3752
3785
|
name: skill.name,
|
|
@@ -3760,7 +3793,7 @@ async function readSkillReports() {
|
|
|
3760
3793
|
* what the skill tells Junior. Returns null when no skill has that name.
|
|
3761
3794
|
*/
|
|
3762
3795
|
async function readSkillDetailReport(name) {
|
|
3763
|
-
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-
|
|
3796
|
+
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-CmNG0dHb.js").then((n) => n.o);
|
|
3764
3797
|
const skill = findSkillByName(name, await discoverSkills());
|
|
3765
3798
|
if (!skill) return null;
|
|
3766
3799
|
const parsed = parseSkillFile(await fs.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
@@ -3775,7 +3808,7 @@ async function readSkillDetailReport(name) {
|
|
|
3775
3808
|
}
|
|
3776
3809
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3777
3810
|
async function readPlugins() {
|
|
3778
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3811
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-BEY6EGRi.js").then((n) => n.t);
|
|
3779
3812
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3780
3813
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3781
3814
|
description: plugin.manifest.description,
|
|
@@ -3787,7 +3820,7 @@ async function readPlugins() {
|
|
|
3787
3820
|
async function readRuntimeInfoReport() {
|
|
3788
3821
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3789
3822
|
import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
|
|
3790
|
-
import("./catalog-runtime-
|
|
3823
|
+
import("./catalog-runtime-BEY6EGRi.js").then((n) => n.t),
|
|
3791
3824
|
readPlugins(),
|
|
3792
3825
|
readSkillReports()
|
|
3793
3826
|
]);
|
|
@@ -3804,7 +3837,7 @@ async function readRuntimeInfoReport() {
|
|
|
3804
3837
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3805
3838
|
async function readPluginOperationalReportFeed() {
|
|
3806
3839
|
const nowMs = Date.now();
|
|
3807
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3840
|
+
const { getPluginOperationalReports } = await import("./projection-CQNDOi82.js").then((n) => n.nr);
|
|
3808
3841
|
return pluginOperationalReportFeedSchema.parse({
|
|
3809
3842
|
source: "plugins",
|
|
3810
3843
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -3842,6 +3875,7 @@ function createJuniorApi(options = {}) {
|
|
|
3842
3875
|
app.route("/api/notifications", createNotificationRoutes());
|
|
3843
3876
|
app.route("/api/personal-tokens", createPersonalTokenRoutes());
|
|
3844
3877
|
app.route("/api/service-accounts", createServiceAccountRoutes());
|
|
3878
|
+
app.route("/api/cache-warming", createCacheWarmingRoutes());
|
|
3845
3879
|
app.route("/api/images", createImageRoutes());
|
|
3846
3880
|
app.route("/api/objects", createObjectRoutes());
|
|
3847
3881
|
app.route("/api/people", createPeopleRoutes());
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
|
|
2
|
-
import { t as ConversationStore } from "./db-
|
|
3
|
-
import "./schema-
|
|
2
|
+
import { t as ConversationStore } from "./db-BdUHQhrC.js";
|
|
3
|
+
import "./schema-CdZFn7Qd.js";
|
|
4
4
|
import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
|
@@ -11,12 +11,12 @@ import "ai";
|
|
|
11
11
|
import "drizzle-orm";
|
|
12
12
|
import { Destination, OwnedObjectAnnotation, PluginRegistration, Source, User } from "@sentry/junior-plugin-api";
|
|
13
13
|
import "@earendil-works/pi-agent-core";
|
|
14
|
+
import { Message, StateAdapter } from "chat";
|
|
14
15
|
import "@earendil-works/pi-ai";
|
|
15
16
|
import "@modelcontextprotocol/sdk/client/auth.js";
|
|
16
17
|
import { Client } from "@modelcontextprotocol/sdk/client";
|
|
17
18
|
import "@sinclair/typebox";
|
|
18
19
|
import { SlackAdapter } from "@chat-adapter/slack";
|
|
19
|
-
import { Message, StateAdapter } from "chat";
|
|
20
20
|
interface BotModelConfig {
|
|
21
21
|
/** Model that runs every agent Turn. */
|
|
22
22
|
modelId?: string;
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-HDZglaIu.js";
|
|
2
2
|
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };
|
package/dist/app.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import {
|
|
3
|
-
import { Z as getAttachmentStorage, d as restoreRuntimeConfig, f as setBotModelConfig, g as snapshotRuntimeConfig, h as setSlackReactionConfig, i as getChatConfig, m as setRuntimeLimits, n as botConfig, o as getSlackBotToken, p as setBotName, 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 { Bi as createPluginState, C as settleConversationTitleWork, Ci as bindSlackDirectCredentialSubject, Dr as projectConversationMessages, Ea as postSlackEphemeralMessage, Ei as verifySlackDirectCredentialSubject, Es as setConfigDefaults, Fi as getDashboardTaskLink, Fo as readConversationMessageEventSeq, Ha as clearSandboxEgressSignals, Hr as canActOnReviewItem, Ka as parseSandboxEgressCredentialToken, Ma as slackEntitySchema, Mo as readConversationEventPageAfter, Mt as hasRunnableConversationWork, Na as slackExternalRefIdSchema, Ni as getDashboardReviewItemLink, Po as readConversationLastEventSeq, Pt as isInvalidConversationRecordError, Qo as isDmChannel, Qr as reviewItemReaderForUserInConversation, Rr as searchReviewItems, Rt as pruneActiveConversation, Si as bindScheduledAutomationCredentialSubject, Ta as openSlackModal, Ti as verifyScheduledAutomationCredentialSubject, Ts as getConfigDefaults, Ua as consumeSandboxEgressAuthRequiredSignal, Wa as consumeSandboxEgressPermissionDeniedSignal, Xa as normalizeSandboxEgressTracePropagationDomains, Xo as getSlackClient, Zn as createUserTokenStore, Zr as reviewItemReaderForUser, _ as appendConversationMessages, _a as slackMention, _i as findMatchingWatches, _o as createPluginLogger, _r as setBriefsConfig, aa as isVercelSandboxEgressRequest, as as getWorkspaceTeamId, bi as takeDueTimerWatches, cs as resolveRootVisibility, ds as listConversationAnnotations, dt as CONVERSATION_WORK_STALE_ENQUEUE_MS, fr as getPlugins, ii as createCodeChangePublisher, ir as createPluginEventPublisher, jo as readConversationEventPage, jr as dismissOpenReviewItems, ki as getDashboardConversationLink, mr as validatePlugins, oa as proxyVercelSandboxEgressRequest, or as getPluginApiRoutes, os as runWithWorkspaceTeamId, pi as collectEventMatchKeys, pr as setPlugins, ro as createPluginEmbedder, sr as getPluginRoutes, ua as resolveBaseUrl, us as createPluginAnnotations, wi as verifyEventAutomationCredentialSubject, xi as bindEventAutomationCredentialSubject, xo as readConversationAccessFromSql, ys as createPluginCache, zi as setDashboardConversationLinkOptions } from "./projection-CQNDOi82.js";
|
|
3
|
+
import { Z as getAttachmentStorage, d as restoreRuntimeConfig, f as setBotModelConfig, g as snapshotRuntimeConfig, h as setSlackReactionConfig, i as getChatConfig, m as setRuntimeLimits, n as botConfig, o as getSlackBotToken, p as setBotName, u as resetRuntimeConfig } from "./config-CmjhyqgB.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-DcjLDDqi.js";
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-CGMRmMPK.js";
|
|
6
6
|
import { b as slackMessageTsSchema, g as slackTeamIdSchema, h as slackChannelIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId, v as parseSlackMessageTs, y as slackMessageTsFromMs } from "./actor-D2iXzvlN.js";
|
|
7
|
-
import { D as conversationKindFromRow, N as resolveActorIdentityId, W as createCache, a as getConversationStore, f as withConversationEventLock, it as createSlackDestination, o as getDb, r as getConversationEventStore, rt as touchConversationDetail, s as getSqlExecutor, t as closeDb, x as withConversationMutationLock, z as recordGoogleSignIn } from "./db-
|
|
8
|
-
import { P as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, j as juniorConversations, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-
|
|
9
|
-
import { c as fenceLock, l as withLock, o as MUTATION_LOCK_TTL_MS, r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-
|
|
10
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
11
|
-
import { $ as effectiveTaskOutcomes, A as parseSlackReviewItemClick, At as ingestEvent, Ct as markConversationRead, D as syncReviewItemSlackCards, E as readSlackReviewItemCardConversationId, G as ViewerTaskNotFoundError, M as parseSlackUserInputSubmission, Mt as missingAutomationSkillReason, N as parseSlackThreadId, R as logScheduledAutomationRunSkipped, T as createSlackReviewItemShow, Y as readViewerAutomationSummary, Z as readViewerAutomations, _t as collectAttachmentGarbage, at as appendAndEnqueueWebMessage, b as unpublishedArtifactHeaders, j as parseSlackReviewItemFormTarget, jt as findAutomationSkill, k as buildSlackReviewItemModal, kt as processWorkspaceSnapshotJob, lt as recordWebConversationActivity, n as executeAgentRun, nt as renderReviewItemMessage, ot as conversationTurnIdForMessage, pt as collectAttachmentUploadGarbage, q as readViewerAutomationExecutions, r as processBackgroundCompaction, rt as reviewItemChangeRecord, t as createAgentRunner, tt as deliverReviewItemChange, ut as webActorFromUser, v as publicArtifactHeaders, x as setConversationSubscription, xt as archiveConversation, y as readPublicArtifact, yt as requestAttachmentDeletion, z as scheduledAutomationRunAttributes } from "./agent-runner-
|
|
7
|
+
import { D as conversationKindFromRow, N as resolveActorIdentityId, W as createCache, a as getConversationStore, f as withConversationEventLock, it as createSlackDestination, o as getDb, r as getConversationEventStore, rt as touchConversationDetail, s as getSqlExecutor, t as closeDb, x as withConversationMutationLock, z as recordGoogleSignIn } from "./db-Czra10QW.js";
|
|
8
|
+
import { P as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, j as juniorConversations, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-D_023K0H.js";
|
|
9
|
+
import { c as fenceLock, l as withLock, o as MUTATION_LOCK_TTL_MS, r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-CNjGEJO9.js";
|
|
10
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BEY6EGRi.js";
|
|
11
|
+
import { $ as effectiveTaskOutcomes, A as parseSlackReviewItemClick, At as ingestEvent, Ct as markConversationRead, D as syncReviewItemSlackCards, E as readSlackReviewItemCardConversationId, G as ViewerTaskNotFoundError, M as parseSlackUserInputSubmission, Mt as missingAutomationSkillReason, N as parseSlackThreadId, R as logScheduledAutomationRunSkipped, T as createSlackReviewItemShow, Y as readViewerAutomationSummary, Z as readViewerAutomations, _t as collectAttachmentGarbage, at as appendAndEnqueueWebMessage, b as unpublishedArtifactHeaders, j as parseSlackReviewItemFormTarget, jt as findAutomationSkill, k as buildSlackReviewItemModal, kt as processWorkspaceSnapshotJob, lt as recordWebConversationActivity, n as executeAgentRun, nt as renderReviewItemMessage, ot as conversationTurnIdForMessage, pt as collectAttachmentUploadGarbage, q as readViewerAutomationExecutions, r as processBackgroundCompaction, rt as reviewItemChangeRecord, t as createAgentRunner, tt as deliverReviewItemChange, ut as webActorFromUser, v as publicArtifactHeaders, x as setConversationSubscription, xt as archiveConversation, y as readPublicArtifact, yt as requestAttachmentDeletion, z as scheduledAutomationRunAttributes } from "./agent-runner-H4YhvNBj.js";
|
|
12
12
|
import { a as getNextRunAtMs } from "./schedule-cP0AACm1.js";
|
|
13
|
-
import { i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-
|
|
14
|
-
import { P as conversationTitleSchema, et as conversationBriefSchema, m as conversationFeedQuerySchema, x as conversationSurfaceSchema, y as conversationReportStatusSchema, z as annotationCard } from "./conversation-
|
|
13
|
+
import { i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-H3EsMWtJ.js";
|
|
14
|
+
import { P as conversationTitleSchema, et as conversationBriefSchema, m as conversationFeedQuerySchema, x as conversationSurfaceSchema, y as conversationReportStatusSchema, z as annotationCard } from "./conversation-BNXfq6Lb.js";
|
|
15
15
|
import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
16
16
|
import { n as readSchedulerSecret, r as readSignInSecret } from "./secrets-DebYU866.js";
|
|
17
|
-
import { C as getAuthPausedConversationTurnId, H as slackChannelMessageReplyThreadTs, R as getEventCatalog, U as slackChannelMessageRunsAutomation, V as slackChannelMessageEvent, Y as renderTaskInput, b as isExperimentalFeatureEnabled,
|
|
18
|
-
import {
|
|
19
|
-
import { E as getQueueProvider, _ as cacheWarmupQueueConsumer, a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, m as isConversationQueueMessageRejectedError, p as conversationQueueMessageSchema, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, v as createVercelCacheWarmupCallback, w as queueCallback, y as registerVercelCacheWarmupDevConsumer } from "./background-compaction-queue-
|
|
20
|
-
import { _ as getConversationWorkState, g as getConversation, h as ensureConversationWake, l as clearExpiredConversationLease, r as appendAndEnqueueInboundMessage, y as listActiveConversationIds } from "./store-
|
|
21
|
-
import { c as coerceThreadConversationState, p as eventGuidance } from "./turn-session-routing-
|
|
17
|
+
import { C as getAuthPausedConversationTurnId, H as slackChannelMessageReplyThreadTs, R as getEventCatalog, U as slackChannelMessageRunsAutomation, V as slackChannelMessageEvent, Y as renderTaskInput, b as isExperimentalFeatureEnabled, tt as renderSlackObjectCard, x as setExperimentalFeatures, y as getExperimentalFeatures, z as SLACK_EVENT_NAMESPACE } from "./session-stop-BLmfFI3d.js";
|
|
18
|
+
import { C as listPendingAgentInvocationMailboxAppends, H as enqueueAgentInvocation, It as gapSegment, Mt as MINUTE_MS, Nt as MIN_WARMUP_PREFIX_TOKENS, Pt as NO_REPLY_GAP_MS, X as recordSubagentEnded, a as segmentGapsKey, n as GLOBAL_GAPS_MAX, r as GLOBAL_GAPS_TTL_MS, t as CONVERSATION_STATE_TTL_MS, w as listPendingAgentInvocationResults } from "./warmup-CdU5hR49.js";
|
|
19
|
+
import { E as getQueueProvider, _ as cacheWarmupQueueConsumer, a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, m as isConversationQueueMessageRejectedError, p as conversationQueueMessageSchema, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, v as createVercelCacheWarmupCallback, w as queueCallback, y as registerVercelCacheWarmupDevConsumer } from "./background-compaction-queue-CNrZ3QcU.js";
|
|
20
|
+
import { _ as getConversationWorkState, g as getConversation, h as ensureConversationWake, l as clearExpiredConversationLease, r as appendAndEnqueueInboundMessage, y as listActiveConversationIds } from "./store-DmV4CoNr.js";
|
|
21
|
+
import { c as coerceThreadConversationState, p as eventGuidance } from "./turn-session-routing-BD3-jJl7.js";
|
|
22
22
|
import { o as buttonUserInputField } from "./statuses-Hn-HsOph.js";
|
|
23
|
-
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-
|
|
24
|
-
import { H as automationTaskSchema, N as scheduledRunSchema, U as automationTaskText, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-
|
|
25
|
-
import { $ as eventAutomationRunLimitReason, B as scheduledRunId, F as listScheduledAutomationsForTeam, H as blockEventAutomation, K as findMatchingEventAutomations, L as readScheduledAutomation, O as recordAutomationExecution, Q as admitEventAutomationRun, U as collectEventAutomationMatchKeys, V as withScheduledAutomationLock, a as getDispatchConversationId, b as existingConversationId, c as getDispatchRecord, d as isTerminalDispatchStatus, f as listPendingDispatchMailboxAppends, g as markDispatchFailed, i as createOrGetDispatch, r as confirmDispatchMailboxAppend, t as buildDispatchId, tt as automationVersionOf, u as getPluginDispatchProjection, v as notifyAutomationBlocked, z as saveScheduledAutomationInLock } from "./store-
|
|
26
|
-
import { a as runWithSlackInstallation, o as verifySlackSignature, p as joinPublicChannel, r as lookupSlackUserProfile } from "./users-
|
|
27
|
-
import { A as resolveAllowedDomains, B as runAutoArchiveSweep, C as readConversationPendingMessages, D as isAllowedDomain, E as assertNoLegacyAllowedDomains, F as readReviewItemForUser, I as reviewItemChange, K as readObjectLinkTypes, M as ReviewItemActionError, N as actOnReviewItem, O as isAllowedSignInEmail, P as closeReviewItemsAnsweredByReply, R as archiveViewerDoneConversations, S as cancelConversationPendingMessagesForViewer, U as GET$4, V as setConversationAutoArchive, X as isPublicAddress, Z as publicAddressLookup, _ as appendConversationMessageForViewer, _t as SubscribedReplyReason, a as pinConversation, at as slackInboundMessageId, b as decodeConversationCursor, dt as recordSkippedConversationMessage, et as createProductionConversationWorkOptions, ft as createSlackWebApiStatusSender, g as readConversationRecordFromSql, gt as parseContent, ht as stripLeadingBotMention, i as readConversationFeed, it as clearSlackPendingReactions, j as stopConversation, k as readEnvList, lt as enqueueAgentDispatch, mt as startProcessingReaction, n as steerConversationPendingMessagesForViewer, nt as getProductionSlackAdapter, ot as normalizeIncomingSlackThreadId, pt as bindMessageAuthorIdentityId, rt as buildSlackInboundMessage, s as readConversationDetail, st as withNormalizedThreadId, t as stopConversationTurnForViewer, tt as createProductionSlackWebhookServices, ut as failStoppedDispatch, v as createConversationForViewer, vt as getThreadStopDecision, x as encodeConversationCursor } from "./stop-
|
|
28
|
-
import { s as conversationPendingMessageDeliverySchema } from "./conversation-feed-
|
|
29
|
-
import { a as resumeConversationDelivery } from "./conversation-turn-
|
|
30
|
-
import { i as enqueueAgentInvocationResult, r as createEndStoppedChildWork } from "./result-
|
|
31
|
-
import { t as bindMessageAgent } from "./message-
|
|
32
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
33
|
-
import { a as pluginTaskQueueConsumer, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-
|
|
34
|
-
import { t as processPluginTask } from "./task-runner-
|
|
35
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
23
|
+
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-DJkh9Fky.js";
|
|
24
|
+
import { H as automationTaskSchema, N as scheduledRunSchema, U as automationTaskText, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-Cva5ZOwW.js";
|
|
25
|
+
import { $ as eventAutomationRunLimitReason, B as scheduledRunId, F as listScheduledAutomationsForTeam, H as blockEventAutomation, K as findMatchingEventAutomations, L as readScheduledAutomation, O as recordAutomationExecution, Q as admitEventAutomationRun, U as collectEventAutomationMatchKeys, V as withScheduledAutomationLock, a as getDispatchConversationId, b as existingConversationId, c as getDispatchRecord, d as isTerminalDispatchStatus, f as listPendingDispatchMailboxAppends, g as markDispatchFailed, i as createOrGetDispatch, r as confirmDispatchMailboxAppend, t as buildDispatchId, tt as automationVersionOf, u as getPluginDispatchProjection, v as notifyAutomationBlocked, z as saveScheduledAutomationInLock } from "./store-Epv6t4vV.js";
|
|
26
|
+
import { a as runWithSlackInstallation, o as verifySlackSignature, p as joinPublicChannel, r as lookupSlackUserProfile } from "./users-BxvYclQg.js";
|
|
27
|
+
import { A as resolveAllowedDomains, B as runAutoArchiveSweep, C as readConversationPendingMessages, D as isAllowedDomain, E as assertNoLegacyAllowedDomains, F as readReviewItemForUser, I as reviewItemChange, K as readObjectLinkTypes, M as ReviewItemActionError, N as actOnReviewItem, O as isAllowedSignInEmail, P as closeReviewItemsAnsweredByReply, R as archiveViewerDoneConversations, S as cancelConversationPendingMessagesForViewer, U as GET$4, V as setConversationAutoArchive, X as isPublicAddress, Z as publicAddressLookup, _ as appendConversationMessageForViewer, _t as SubscribedReplyReason, a as pinConversation, at as slackInboundMessageId, b as decodeConversationCursor, dt as recordSkippedConversationMessage, et as createProductionConversationWorkOptions, ft as createSlackWebApiStatusSender, g as readConversationRecordFromSql, gt as parseContent, ht as stripLeadingBotMention, i as readConversationFeed, it as clearSlackPendingReactions, j as stopConversation, k as readEnvList, lt as enqueueAgentDispatch, mt as startProcessingReaction, n as steerConversationPendingMessagesForViewer, nt as getProductionSlackAdapter, ot as normalizeIncomingSlackThreadId, pt as bindMessageAuthorIdentityId, rt as buildSlackInboundMessage, s as readConversationDetail, st as withNormalizedThreadId, t as stopConversationTurnForViewer, tt as createProductionSlackWebhookServices, ut as failStoppedDispatch, v as createConversationForViewer, vt as getThreadStopDecision, x as encodeConversationCursor } from "./stop-Bjy2-K4H.js";
|
|
28
|
+
import { s as conversationPendingMessageDeliverySchema } from "./conversation-feed-CfpyFMHP.js";
|
|
29
|
+
import { a as resumeConversationDelivery } from "./conversation-turn-C0sxyvS-.js";
|
|
30
|
+
import { i as enqueueAgentInvocationResult, r as createEndStoppedChildWork } from "./result-C8iIpDl1.js";
|
|
31
|
+
import { t as bindMessageAgent } from "./message-C0JY9RJP.js";
|
|
32
|
+
import { t as bindSpawnAgent } from "./spawn-CNjkpXpk.js";
|
|
33
|
+
import { a as pluginTaskQueueConsumer, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-AhG1tSXR.js";
|
|
34
|
+
import { t as processPluginTask } from "./task-runner-BMxZI3o7.js";
|
|
35
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-DOz8X9BU.js";
|
|
36
36
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-BBX07Jzt.js";
|
|
37
|
-
import { o as unlinkProvider } from "./connections-
|
|
38
|
-
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
37
|
+
import { o as unlinkProvider } from "./connections-CfIRm0xv.js";
|
|
38
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-tEMKZ_8M.js";
|
|
39
39
|
import { t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
|
|
40
|
-
import { a as resolveSlackActingUser, i as unfurlDashboardConversationLinks, n as handleSlackContinueHereClick, o as isSlackWorkspaceMember, s as slackWorkspaceBotId, t as SLACK_CONTINUE_HERE_ACTION_ID } from "./slack-conversation-unfurl-
|
|
41
|
-
import { t as processConversationWork } from "./worker-
|
|
40
|
+
import { a as resolveSlackActingUser, i as unfurlDashboardConversationLinks, n as handleSlackContinueHereClick, o as isSlackWorkspaceMember, s as slackWorkspaceBotId, t as SLACK_CONTINUE_HERE_ACTION_ID } from "./slack-conversation-unfurl-Bty-DlHe.js";
|
|
41
|
+
import { t as processConversationWork } from "./worker-ClphajjD.js";
|
|
42
42
|
import { createRequire } from "node:module";
|
|
43
43
|
import { Hono } from "hono";
|
|
44
44
|
import * as z from "zod";
|
|
@@ -46,13 +46,13 @@ import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypt
|
|
|
46
46
|
import { and, asc, desc, eq, gte, inArray, isNotNull, isNull, lte, ne, or, sql } from "drizzle-orm";
|
|
47
47
|
import { EVENT_SUMMARY_MAX_LENGTH, EVENT_TEXT_MAX_LENGTH, dispatchOptionsSchema, eventSchema, eventTriggerFiltersText, isSlackDestination, userSchema } from "@sentry/junior-plugin-api";
|
|
48
48
|
import { pathToFileURL } from "node:url";
|
|
49
|
+
import { Message, ThreadImpl } from "chat";
|
|
49
50
|
import pLimit from "p-limit";
|
|
50
51
|
import net from "node:net";
|
|
51
52
|
import { decodeJwt } from "jose";
|
|
52
53
|
import { performance } from "node:perf_hooks";
|
|
53
54
|
import { HTTPException } from "hono/http-exception";
|
|
54
55
|
import https from "node:https";
|
|
55
|
-
import { Message, ThreadImpl } from "chat";
|
|
56
56
|
import * as acp from "@agentclientprotocol/sdk";
|
|
57
57
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
58
58
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
@@ -7706,6 +7706,8 @@ function dashboardHostRoutePaths(dashboard, authenticatedRoutes = []) {
|
|
|
7706
7706
|
"/api/personal-tokens/*",
|
|
7707
7707
|
"/api/service-accounts",
|
|
7708
7708
|
"/api/service-accounts/*",
|
|
7709
|
+
"/api/cache-warming",
|
|
7710
|
+
"/api/cache-warming/*",
|
|
7709
7711
|
"/api/workspaces",
|
|
7710
7712
|
"/api/workspaces/*",
|
|
7711
7713
|
"/api/config",
|
|
@@ -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-BNXfq6Lb.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
|
package/dist/{background-compaction-queue-B6U3060-.js → background-compaction-queue-CNrZ3QcU.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
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-CmjhyqgB.js";
|
|
2
|
+
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-DcjLDDqi.js";
|
|
3
3
|
import { t as readJuniorSecret } from "./secrets-DebYU866.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
@@ -369,7 +369,7 @@ function cacheWarmupCallback() {
|
|
|
369
369
|
maxDeliveries: 1,
|
|
370
370
|
onRejected: logCacheWarmupRejected,
|
|
371
371
|
run: async (message) => {
|
|
372
|
-
const { runCacheWarmup } = await import("./warmup-
|
|
372
|
+
const { runCacheWarmup } = await import("./warmup-CdU5hR49.js").then((n) => n.o);
|
|
373
373
|
await runCacheWarmup(message);
|
|
374
374
|
},
|
|
375
375
|
skip: () => !getChatConfig().cacheWarmingEnabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
2
|
-
import { $ as briefResourceLabel, X as briefCodeChangeSchema, f as conversationEventPageSchema, tt as parseBriefInput, u as conversationDetailReportSchema } from "./conversation-
|
|
1
|
+
import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-DLUB5m72.js";
|
|
2
|
+
import { $ as briefResourceLabel, X as briefCodeChangeSchema, f as conversationEventPageSchema, tt as parseBriefInput, u as conversationDetailReportSchema } from "./conversation-BNXfq6Lb.js";
|
|
3
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import path from "node:path";
|
|
@@ -262,7 +262,7 @@ async function parseRunOptions(argv) {
|
|
|
262
262
|
* token.
|
|
263
263
|
*/
|
|
264
264
|
async function configuredBriefModelId() {
|
|
265
|
-
const { botConfig } = await import("./config-
|
|
265
|
+
const { botConfig } = await import("./config-CmjhyqgB.js").then((n) => n.r);
|
|
266
266
|
return botConfig.fastModelId;
|
|
267
267
|
}
|
|
268
268
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-Dj377ADs.js";
|
|
3
3
|
// src/chat/plugins/catalog-runtime.ts
|
|
4
4
|
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
5
|
const pluginCatalogRuntime = createPluginCatalogRuntime();
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-
|
|
1
|
+
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-H4YhvNBj.js";
|
|
2
2
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -99,10 +99,10 @@ async function loadLocalPluginSet() {
|
|
|
99
99
|
async function configureLocalChatPlugins(pluginSet) {
|
|
100
100
|
const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
|
|
101
101
|
import("../plugins-BBX07Jzt.js").then((n) => n.o),
|
|
102
|
-
import("../projection-
|
|
103
|
-
import("../catalog-runtime-
|
|
104
|
-
import("../validation-
|
|
105
|
-
import("../db-
|
|
102
|
+
import("../projection-CQNDOi82.js").then((n) => n.nr),
|
|
103
|
+
import("../catalog-runtime-BEY6EGRi.js").then((n) => n.t),
|
|
104
|
+
import("../validation-DOz8X9BU.js").then((n) => n.r),
|
|
105
|
+
import("../db-Czra10QW.js").then((n) => n.n)
|
|
106
106
|
]);
|
|
107
107
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
108
108
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -152,19 +152,19 @@ function localDevServerUrl() {
|
|
|
152
152
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
153
153
|
defaultStateAdapterForLocalChat();
|
|
154
154
|
await configureLocalChatPlugins(pluginSet);
|
|
155
|
-
const { setBriefsConfig } = await import("../projection-
|
|
155
|
+
const { setBriefsConfig } = await import("../projection-CQNDOi82.js").then((n) => n.gr);
|
|
156
156
|
setBriefsConfig({ enabled: true });
|
|
157
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
158
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
157
|
+
const { runLocalAgentTurn } = await import("../runner-DZqrOy8C.js");
|
|
158
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-BRq9QNhU.js");
|
|
159
159
|
const { createLocalOAuthState } = await import("../oauth-relay-DRzq73b6.js").then((n) => n.t);
|
|
160
|
-
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-
|
|
161
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
162
|
-
const { bindMessageAgent } = await import("../message-
|
|
163
|
-
const { createChildConversationWorker, createDeliverToParent } = await import("../result-
|
|
164
|
-
const { createConversationTurnWorker } = await import("../conversation-turn-
|
|
165
|
-
const { skipInputAfterConversationStop } = await import("../session-stop-
|
|
160
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-CGwH86S9.js");
|
|
161
|
+
const { bindSpawnAgent } = await import("../spawn-CNjkpXpk.js").then((n) => n.n);
|
|
162
|
+
const { bindMessageAgent } = await import("../message-C0JY9RJP.js").then((n) => n.n);
|
|
163
|
+
const { createChildConversationWorker, createDeliverToParent } = await import("../result-C8iIpDl1.js").then((n) => n.o);
|
|
164
|
+
const { createConversationTurnWorker } = await import("../conversation-turn-C0sxyvS-.js").then((n) => n.t);
|
|
165
|
+
const { skipInputAfterConversationStop } = await import("../session-stop-BLmfFI3d.js").then((n) => n.a);
|
|
166
166
|
const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
|
|
167
|
-
const { processConversationWork } = await import("../worker-
|
|
167
|
+
const { processConversationWork } = await import("../worker-ClphajjD.js").then((n) => n.n);
|
|
168
168
|
let agentRunner;
|
|
169
169
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
170
170
|
if (!agentRunner) throw new Error("Local agent runner is not ready");
|
package/dist/cli/check.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-
|
|
2
|
-
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-
|
|
3
|
-
import { i as parseSkillFile } from "../skills-
|
|
1
|
+
import { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-DcjLDDqi.js";
|
|
2
|
+
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-Dj377ADs.js";
|
|
3
|
+
import { i as parseSkillFile } from "../skills-CmNG0dHb.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
package/dist/cli/main.js
CHANGED
|
@@ -45,13 +45,13 @@ async function runChat(argv, pluginSet) {
|
|
|
45
45
|
return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
|
|
46
46
|
}
|
|
47
47
|
async function runAdmin(argv) {
|
|
48
|
-
return await (await import("../admin-
|
|
48
|
+
return await (await import("../admin-CRJHvCGg.js")).runAdmin(argv);
|
|
49
49
|
}
|
|
50
50
|
async function runServiceAccount(argv) {
|
|
51
|
-
return await (await import("../service-account-
|
|
51
|
+
return await (await import("../service-account-D6jGR4a1.js")).runServiceAccount(argv);
|
|
52
52
|
}
|
|
53
53
|
async function runBriefs(argv) {
|
|
54
|
-
return await (await import("../briefs-
|
|
54
|
+
return await (await import("../briefs-x6Mzwxmg.js")).runBriefs(argv);
|
|
55
55
|
}
|
|
56
56
|
function topLevelCommand(argv) {
|
|
57
57
|
return (argv[0] === "--" ? argv.slice(1) : argv)[0];
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as getDb } from "../db-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { _o as createPluginLogger, mr as validatePlugins, pr as setPlugins } from "../projection-CQNDOi82.js";
|
|
2
|
+
import { o as getDb } from "../db-Czra10QW.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BEY6EGRi.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-DOz8X9BU.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-BBX07Jzt.js";
|
|
6
6
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import { stderr, stdout } from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as disconnectStateAdapter } from "../adapter-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
4
|
-
import { n as resolve } from "../resolve-
|
|
1
|
+
import { Za as SANDBOX_RUNTIME, ea as create } from "../projection-CQNDOi82.js";
|
|
2
|
+
import { t as disconnectStateAdapter } from "../adapter-CNjGEJO9.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BEY6EGRi.js";
|
|
4
|
+
import { n as resolve } from "../resolve-DJkh9Fky.js";
|
|
5
5
|
// src/cli/snapshot-create.ts
|
|
6
6
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
|
7
7
|
function progressMessage(phase) {
|
package/dist/cli/upgrade.d.ts
CHANGED
package/dist/cli/upgrade.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "../config-
|
|
2
|
-
import { t as createJuniorSqlExecutor } from "../executor-
|
|
3
|
-
import { t as createPluginCatalogRuntime } from "../registry-
|
|
1
|
+
import { i as getChatConfig } from "../config-CmjhyqgB.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-D_023K0H.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-Dj377ADs.js";
|
|
4
4
|
import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-BBX07Jzt.js";
|
|
5
5
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
3
|
-
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
2
|
+
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-DcjLDDqi.js";
|
|
3
|
+
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-0CM0V2qK.js";
|
|
4
4
|
import { AwsClient } from "aws4fetch";
|
|
5
5
|
import { del, get, issueSignedToken, presignUrl, put } from "@vercel/blob";
|
|
6
6
|
import * as z from "zod";
|