@sentry/junior 0.318.0 → 0.319.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/{context-BKF_5zzI.js → adapter-8_S6Birm.js} +537 -537
- package/dist/{admin-UOHix_5P.js → admin-EsbUON1j.js} +1 -1
- package/dist/{agent-runner-DeYymwh2.js → agent-CtzMl32d.js} +18608 -5452
- package/dist/{agent-status-BA5x3Xtp.js → agent-status-Bq_AIpyp.js} +105 -1
- package/dist/{agent-update-delivery-DH8bx7jU.js → agent-update-delivery-pAvsbuGL.js} +4 -5
- package/dist/api/schema.d.ts +43 -23
- package/dist/api/schema.js +4 -4
- package/dist/api.js +70 -80
- package/dist/{app-DKAOuaoC.d.ts → app-tACXxJPI.d.ts} +4 -4
- package/dist/app.d.ts +2 -2
- package/dist/app.js +213 -91
- package/dist/{change-record-BzJgLsv7.d.ts → change-record-K-KsqNhT.d.ts} +9 -5
- package/dist/{channel-access-A0de5lRv.js → channel-access-DET5hzZM.js} +1 -1
- package/dist/{chat-core-engine-D3Wd7f5n.js → chat-core-engine-DpM3tMVi.js} +5 -5
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +23 -23
- package/dist/cli/check.js +5 -5
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.d.ts +1 -1
- package/dist/cli/plugins.js +8 -8
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -4
- package/dist/{continue-in-slack-YxwMQVeR.js → continue-in-slack-CFzDyxkH.js} +3 -3
- package/dist/{conversation-feed-Cj7IuBtM.js → conversation-feed-DEUdD7mb.js} +2 -106
- package/dist/{conversation-privacy-Cr_dNW1p.js → conversation-privacy-C2vYK55O.js} +1 -1
- package/dist/{create-Btl1y1rq.js → create-Ta3SEIB5.js} +115 -5
- package/dist/{credential-sync-DTarZ63K.js → credential-sync-DyRqDmY4.js} +15 -18
- package/dist/{db-of6e3sGt.js → db-BCaNWl9p.js} +4579 -717
- package/dist/{deployment-C0qXa0FD.js → deployment-CfOew1Tm.js} +3 -3
- package/dist/{engine-context-C_QL_bMQ.js → engine-context-CiExoy1B.js} +144 -149
- package/dist/{html-9_pS9SjY.js → html-Bb2Si1bR.js} +6 -8
- package/dist/instrumentation.js +7 -23
- package/dist/list-wwDcROh9.js +5007 -0
- package/dist/{logging-BnOG0qz2.js → logging-BRPTXAdf.js} +8 -33
- package/dist/{mailbox-turn-Byrry9o1.js → markers-9QoqW5ov.js} +1675 -1255
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +6 -7
- package/dist/{oauth-callback-server-CjnnUr4o.js → oauth-callback-server-vhL9b-PZ.js} +2 -2
- package/dist/{oauth-relay-BvHFH0fV.js → oauth-relay-CH2v7WiB.js} +1 -1
- package/dist/{plugins-fBrz8PCV.d.ts → plugins-DhGXZjlu.d.ts} +1 -0
- package/dist/{profile-iHw1uu32.js → profile-D9LdwmZi.js} +16 -18
- package/dist/{prompt-DEkStuxG.js → prompt-3TqxEOtc.js} +1 -1
- package/dist/{reports-C1d9azyV.js → reports-K-tbtEyx.js} +2 -2
- package/dist/{resolve-DC6zBuDV.js → resolve-BBV2qf8A.js} +5 -5
- package/dist/{result-DxewDuXb.js → result-5IdGJP4M.js} +20 -9
- package/dist/{runner-99YxVN_r.js → runner-BK_joPlM.js} +7 -8
- package/dist/{sandbox-egress-signals-CgoX5CTI.js → sandbox-egress-signals-DXgWXXmm.js} +1 -1
- package/dist/{schema-BTojNBr5.js → schema-zWGG6VC1.js} +13 -7
- package/dist/{service-account-YDCPSByj.js → service-account-CateFyhw.js} +4 -5
- package/dist/{skills-CleC0Hze.js → skills-Ccjw8h2P.js} +9 -9
- package/dist/{slack-conversation-unfurl-BNQLC12R.js → slack-conversation-unfurl-ZC_TSpc4.js} +7 -7
- package/dist/storage-C9U7R5rM.js +273 -0
- package/dist/{system-prompt-table-Ci6Ck4gk.js → system-prompt-table-YBTHIFlP.js} +26 -84
- package/dist/topic-B2EWKKBT.js +6 -0
- package/dist/{package-discovery-DD9vencX.js → topics-DxuKurCX.js} +21 -1
- package/dist/{types-DCzTAA63.js → types-BNHkJrOP.js} +25 -11
- package/dist/{users-Cb9c1k9q.js → users-CCRAqYb_.js} +1 -1
- package/dist/{validation-BiUmWPhy.js → validation-BCUpJa8K.js} +4 -4
- package/dist/{version-VEXiEcZu.js → version-BNm0JYj3.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{worker-ChWYQdhm.js → worker-BhgpZ7_b.js} +4 -4
- package/migrations/20261127052408_space_name_nullable/migration.sql +5 -0
- package/migrations/20261127052408_space_name_nullable/snapshot.json +29 -0
- package/migrations/20261127060000_annotation_object_id_index/migration.sql +1 -0
- package/migrations/20261127060000_annotation_object_id_index/snapshot.json +69 -0
- package/migrations/20261127060001_annotation_subjects/migration.sql +78 -0
- package/migrations/20261127060001_annotation_subjects/snapshot.json +104 -0
- package/migrations/20261127060002_annotation_subject_index/migration.sql +1 -0
- package/migrations/20261127060002_annotation_subject_index/snapshot.json +70 -0
- package/migrations/20261127060003_annotation_title_url/migration.sql +84 -0
- package/migrations/20261127060003_annotation_title_url/snapshot.json +73 -0
- package/package.json +9 -7
- package/dist/auth-pause-state-f9hJM_zO.js +0 -113
- package/dist/catalog-runtime-BfdAnztW.js +0 -6
- package/dist/child-message-peFWLcCZ.js +0 -15
- package/dist/conversation-turn-Bru4w_FD.js +0 -1250
- package/dist/job-runner-B2XEvpif.js +0 -1505
- package/dist/lineage-nh4z9iQN.js +0 -36
- package/dist/list-HRP3TIRl.js +0 -12631
- package/dist/markers-CTTtJqYn.js +0 -342
- package/dist/message-BRUuLgrY.js +0 -153
- package/dist/model-input-CFC62mf-.js +0 -82
- package/dist/registry-Cl7Labpe.js +0 -3279
- package/dist/run-conversation-Cz2ubZK-.js +0 -337
- package/dist/sender-actors-77zTQbSG.js +0 -84
- package/dist/spawn-DuZfodPa.js +0 -45
- package/dist/task-runner-BJ9Up3bG.js +0 -1529
- package/dist/topic-CRYYBYp-.js +0 -7
- package/dist/topics-BoCkoPJJ.js +0 -21
- package/dist/turn-membership-VT7XZh-L.js +0 -856
- package/dist/turn-wake-C7HeLHAM.js +0 -151
package/dist/api.js
CHANGED
|
@@ -1,35 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $
|
|
3
|
-
import { T as withSpan, f as logException, g as runBestEffort, m as logWarn, p as logInfo, v as setSentryUser } from "./logging-
|
|
4
|
-
import { $t as
|
|
5
|
-
import { At as spaceListQuerySchema, B as conversationDetailQuerySchema, C as automationScheduleIntentSchema, D as automationVersionActivateSchema, E as automationUpdateSchema, G as conversationParamsSchema, It as updateSpaceBodySchema,
|
|
6
|
-
import { $ as userSearchQuerySchema, $t as conversationChildAgentsReportSchema, A as cacheHealthQuerySchema, At as startConnectionResponseSchema, B as serviceAccountParamsSchema, Bt as codeRepositoryQuerySchema, C as inboxSnoozeResourceQuerySchema, Ct as pushSubscriptionBodySchema, D as inboxSnoozeWakesClearSchema, Dt as connectionParamsSchema, E as inboxSnoozeSubjectSchema, Et as connectionListSchema, F as cacheWarmingSavingsRefillResponseSchema, G as createPersonalTokenBodySchema, Gt as conversationTodoSchema, H as startServiceAccountSignInResponseSchema, I as cacheWarmingSavingsReportSchema, Jt as todoStatusBodySchema, K as createdPersonalTokenSchema, Kt as conversationTodosReportSchema, L as closeCacheWarmingBreakerResponseSchema, Lt as codeOverviewReportSchema, M as cacheWarmingBreakerListSchema, N as cacheWarmingBreakerParamsSchema, Nt as codeChangeSearchQuerySchema, O as gatewayProvidersSchema, P as cacheWarmingSavingsQuerySchema, Pt as codeChangeSearchReportSchema, R as disconnectServiceAccountResponseSchema, Rt as codePersonReportSchema, S as inboxSnoozeCreateSchema, St as notificationSettingsSchema, T as inboxSnoozeSchema, Tt as testNotificationResponseSchema, U as searchQuerySchema, Vt as codeRepositoryReportSchema, W as searchReportSchema, Wt as personCodeQuerySchema, X as revokePersonalTokenResponseSchema, Xt as conversationWatchesReportSchema, Y as personalTokenParamsSchema, Zt as watchParamsSchema, _ as inboxItemListSchema, _n as acceptedConversationMessageSchema, _t as locationParamsSchema, a as statsReportSchema, an as objectLinksQuerySchema, at as avatarParamsSchema, b as inboxItemWaitingConversationsSchema, bn as forkConversationBodySchema, bt as activitySixHours$1, c as workspaceBodySchema, ct as peopleSearchReportSchema, dn as conversationDeliveryResponseSchema, dt as personalSpendReportSchema, en as continueConversationInSlackBodySchema, et as userSearchReportSchema, f as workspaceSchema, fn as conversationCatchUpBodySchema, g as inboxItemListQuerySchema, gn as createAttachmentUploadBodySchema, gt as locationDirectoryReportSchema, h as inboxItemCountSchema, hn as attachmentUploadSchema, ht as locationDetailReportSchema, in as attachObjectLinkResponseSchema, it as actorProfileReportSchema, j as cacheHealthReportSchema, k as updateGatewayProvidersBodySchema, kt as disconnectConnectionResponseSchema, l as workspaceListSchema, ln as conversationOutlineSchema, lt as personCardReportSchema, m as inboxItemCountQuerySchema, mn as attachmentUploadParamsSchema, n as versionsQuerySchema, on as objectLinksReportSchema, p as inboxItemActionSchema, pn as conversationCatchUpSchema, pt as spaceConfigurationSchema, q as personalTokenListSchema, qt as todoParamsSchema, r as versionsSchema, rn as attachObjectLinkBodySchema, rt as actorDirectoryReportSchema, s as deleteWorkspaceResponseSchema, sn as conversationStatsReportSchema, st as peopleSearchQuerySchema, tn as continueConversationInSlackResponseSchema, u as workspaceParamsSchema, un as conversationDeliveryBodySchema, ut as personParamsSchema, v as inboxItemParamsSchema, vn as createConversationBodySchema, vt as activityDays$1, w as inboxSnoozeResourceSchema, wt as pushSubscriptionDeleteBodySchema, xn as forkConversationResponseSchema, y as inboxItemSchema, yn as createConversationMessageBodySchema, yt as activityHours$2, z as serviceAccountListSchema, zt as codeRepositoryParamsSchema } from "./schema-
|
|
7
|
-
import { A as conversationUnchangedDetailWithMailboxSchema, B as runtimeInfoReportSchema, M as steerConversationPendingMessagesResponseSchema, N as healthReportSchema, P as pluginOperationalReportFeedSchema, T as conversationDetailWithMailboxReportSchema, U as skillReportsSchema, V as skillDetailReportSchema, _ as reorderPinnedConversationsBodySchema, a as conversationInviteResponseSchema, i as conversationInviteBodySchema, j as steerConversationPendingMessagesBodySchema, k as conversationPendingMessagesReportSchema, n as conversationFeedSchema, t as conversationFeedQuerySchema, v as reorderPinnedConversationsResponseSchema, z as pluginsSchema } from "./conversation-feed-
|
|
8
|
-
import {
|
|
9
|
-
import { A as setConversationSubscriptionOperation, C as cancelQueuedMessagesOperation,
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { i as listChildAgents } from "./markers-CTTtJqYn.js";
|
|
13
|
-
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-YxwMQVeR.js";
|
|
1
|
+
import { n as getAttachmentStorage } from "./storage-C9U7R5rM.js";
|
|
2
|
+
import { $ as canActOnInboxItem, $a as microUsdToUsd, $f as notLeadConversation, Ao as cancelWatch, Ar as readConversationAccessFromSql, B as conversationAggregateColumns, Bc as getInboxItem, Bl as searchTypedMemories, Bn as pushConversationInboxItemsNow, Bp as juniorConversations, Bt as listTodos, Cs as upsertPluginAnnotation, Dl as getDashboardSettingsLink, Dt as getRegistrations, El as getDashboardPersonLink, Et as getPlugins, Fd as getAppContext, Fl as REVALIDATED_READ_PATHS, Fp as juniorCodeChanges, Fs as resolveNotificationTimezone, G as conversationStatusSql, Gc as searchInboxItems, Gl as prefixRank, Gp as slackPersonSearchDocument, Gs as savePushSubscription, H as conversationUsageCostExpr, Hd as finishServiceAccountSignIn, Hl as fuzzyMatch, Hs as listPushSubscriptions, Ia as AutomationConflictError, Il as contentVersion, Ip as juniorCodeRepositories, Ji as createPluginEmbedder, K as conversationTurnFailedSql, Kd as serviceAccountPlugins, Kl as rankSearchMatches, Kp as juniorUsers, Ks as isPausedBySlack, Ll as contentVersionHeaders, Lr as rootVisibleToViewer, Mc as inboxItemsNeedingUserVersionQuery, Mr as readableSlackTeamId, Nc as listWaitingConversations, Np as codeChangeSearchDocument, Ns as readWebPushConfig, Op as juniorConversationMetrics, Or as createConversationAccessReader, Pp as codeRepositorySearchDocument, Ps as sendPushNotificationToUser, Qa as microUsdSql, Qc as INBOX_SUBJECT_KINDS, Qf as listedConversation, Qo as canPauseConversationDelivery, Rl as revalidateContent, Sl as unsnoozeInboxRow, Sp as juniorAgentBindings, U as conversationIsActiveSql, Ud as getServiceAccountStatus, Ul as fuzzyRank, Up as juniorIdentities, Us as readNotificationSchedule, V as conversationRangeColumns, Vd as disconnectServiceAccount, Vl as parseTypedQuery, Vs as deletePushSubscription, Vt as setTodoStatusByUser, Wc as ownerConversationId, Wl as prefixMatch, Wp as slackPersonPredicate, Ws as saveNotificationSchedule, Xc as inboxItemTitle, Xf as rootSpaceIdSql, Xu as completeText, Y as conversationKindFromRow, Ya as readAutomationTitlesByConversationId, Yc as inboxItemRequest, Zc as itemQuestion, _p as inboxItemFuzzyTitle, _s as annotationSubject, a as getDb, ad as saveEnabledProviders, as as codeChangeSubjectKinds, bl as snoozeInboxItems, bp as juniorInboxItems, bs as listConversationAnnotations, bu as eventWatchUnavailable, cl as readAvatarFetch, cp as todoSearchDocument, cs as subjectKey, dp as questionSearchDocument, ds as linkedCodeProviders, dt as inboxItemReaderForUser, el as questionLinks, ep as topLevelConversation, es as pauseConversationDelivery, fp as juniorAutomationRuns, ft as inboxItemReaderForUserInConversation, gc as resolveViewerUser, gl as inboxItemSnoozedBy, gt as isOnlyAssignee, gu as automationEventCatalog, hc as readViewerAvatarUrl, hf as webActorUserIds, hl as inboxItemInRow, hn as steerWebPendingMessages, hp as juniorAutomations, hs as ANNOTATION_SUBJECT_KINDS, ht as isInboxItemForEveryone, i as getConversationStore, id as readServedProviders, il as subjectTodo, jc as countInboxItemsNeedingUserBySubject, jp as juniorApiTokens, js as isPublicConversation, kp as juniorConversationEvents, kt as apiRoutePrefix, ll as readUserAvatarUrls, lp as juniorQuestions, ls as codeChangeUrl, mp as automationSearchDocument, ni as runWithSlackInstallation, nl as subjectKindLabel, o as getSqlExecutor, oa as createPluginCache, od as cacheKeyPrefix, ol as identityAvatarUrl, op as juniorTodos, os as codeChangeSubjectProvider, pl as clearInboxWakeReasons, po as getEventCatalog, pp as automationFuzzyTitle, pt as inboxItemVisibleTo, qd as startServiceAccountSignIn, ql as scoredSearchMatches, qp as juniorDestinations, rd as readEnabledProviders, rl as subjectKindPlugin, rt as canUserReadInboxItem, sd as createCache, sp as todoFuzzyTitle, ss as readSubjectLinks, st as inboxItemForUser, tl as subjectKindDismissNote, to as usdToMicroUsdUnbiased, ts as resumeConversationDelivery, tt as canAnswerInboxItem, uc as findUserByEmail, up as questionFuzzyTitle, us as codeRepositoryUrl, vc as updateViewerDisplayName, vl as readViewerInboxSnoozes, vp as inboxItemSearchDocument, vt as itemNeedsUser, w as loadConversationSlackTenantIds, wp as juniorConversationParticipants, xl as snoozeTimerTrigger, yl as settleInboxSnoozes, yp as juniorInboxItemConversations, yr as hasAssigneeRoles, zl as memoryDb, zn as createInboxItemShow, zr as getVercelConversationWorkQueue } from "./db-BCaNWl9p.js";
|
|
3
|
+
import { T as withSpan, f as logException, g as runBestEffort, m as logWarn, p as logInfo, v as setSentryUser } from "./logging-BRPTXAdf.js";
|
|
4
|
+
import { $n as updateViewerAutomation, $t as decodeImageId, At as resolveObjectLinkNow, B as listOwnedWatches, Cr as closeBreaker, Dn as createAttachmentUpload, Dt as OBJECT_LINK_TTL_MS, Fn as jsonResponse, G as getSpaceLead, I as reportConversationRead, In as throwApiError, J as getProductionSlackAdapter, Jn as activateViewerAutomationVersion, Kt as conversationSummaryFromStoredConversation, Ln as readSlackAttachmentSource, M as setConversationArchive, N as stopArchivedWork, Nt as viewerCanViewPluginLink, Ot as readLinkObjectType, Pn as emptyResponse, Pt as guardedFetch, Qt as IMAGE_WIDTHS, Rt as resolvePersonLink, Sr as breakerStates, Tn as AttachmentUploadError, Vn as readLiveAttachment, W as postSlackDetachNotice, Xn as deleteViewerTask, Xt as createViewerMcp, Yn as changeViewerAutomationLifecycle, Yt as readFirstHumanMessageTexts, Zn as readViewerAutomationEdit, _n as updateSpace, a as AttachmentDownloadError, ar as readViewerAutomationSummary, br as addStats, cr as AutomationEditError, dt as readConversationEventPage, er as ViewerTaskNotFoundError, fr as viewerAutomationCollection, gn as readSpace, gt as reportParentAgentInput, hn as listSpaces, ir as readViewerAutomationRuns, jn as inviteToConversation, jr as listSpaceConfiguration, jt as resolveObjectLinks, kn as writeAttachmentUpload, kt as readObjectLinkTypes, mn as createSpace, o as readAttachmentContent, or as readViewerAutomationVersions, pr as SAVINGS_NAMESPACE, rr as readViewerAutomationExecutions, s as previewOriginBelongsTo, sr as readViewerAutomations, tr as collectionRowTitle, ut as transcriptEntriesFromReportEvents, vn as acceptsWebMessages, wn as webActorFromUser, wr as connectedState, xr as readStats, yr as savingsTotals } from "./agent-CtzMl32d.js";
|
|
5
|
+
import { At as spaceListQuerySchema, B as conversationDetailQuerySchema, C as automationScheduleIntentSchema, D as automationVersionActivateSchema, E as automationUpdateSchema, G as conversationParamsSchema, It as updateSpaceBodySchema, L as conversationAttachmentParamsSchema, Mn as notificationScheduleSchema, Mt as spaceParamsSchema, N as CONVERSATION_DETAIL_VERSION_HEADER, O as automationVersionListSchema, Ot as archiveSpaceBodySchema, P as CONVERSATION_VERSION_HEADER, Pt as spaceSchema, R as conversationAttachmentQuerySchema, Rn as apiErrorSchema, Rt as conversationReadPositionSchema, T as automationSummarySchema, U as conversationEventPageSchema, V as conversationDetailReportSchema, W as conversationEventsQuerySchema, _ as automationListQuerySchema, an as ScheduleIntentError, b as automationRunListSchema, c as automationEditSchema, g as automationListPageSchema, jt as spaceListSchema, k as automationVersionParamsSchema, kn as automationTaskText, kt as createSpaceBodySchema, l as automationEventCatalogSchema, m as automationLifecycleSchema, o as isOpenTodoStatus, on as compileScheduleIntent, pn as inboxItemQuestion, qt as MAX_ATTACHMENT_BYTES, s as automationEditErrorSchema, u as automationExecutionListSchema, w as automationSchedulePreviewSchema, y as automationParamsSchema } from "./types-BNHkJrOP.js";
|
|
6
|
+
import { $ as userSearchQuerySchema, $t as conversationChildAgentsReportSchema, A as cacheHealthQuerySchema, At as startConnectionResponseSchema, B as serviceAccountParamsSchema, Bt as codeRepositoryQuerySchema, C as inboxSnoozeResourceQuerySchema, Ct as pushSubscriptionBodySchema, D as inboxSnoozeWakesClearSchema, Dt as connectionParamsSchema, E as inboxSnoozeSubjectSchema, Et as connectionListSchema, F as cacheWarmingSavingsRefillResponseSchema, G as createPersonalTokenBodySchema, Gt as conversationTodoSchema, H as startServiceAccountSignInResponseSchema, I as cacheWarmingSavingsReportSchema, Jt as todoStatusBodySchema, K as createdPersonalTokenSchema, Kt as conversationTodosReportSchema, L as closeCacheWarmingBreakerResponseSchema, Lt as codeOverviewReportSchema, M as cacheWarmingBreakerListSchema, N as cacheWarmingBreakerParamsSchema, Nt as codeChangeSearchQuerySchema, O as gatewayProvidersSchema, P as cacheWarmingSavingsQuerySchema, Pt as codeChangeSearchReportSchema, R as disconnectServiceAccountResponseSchema, Rt as codePersonReportSchema, S as inboxSnoozeCreateSchema, St as notificationSettingsSchema, T as inboxSnoozeSchema, Tt as testNotificationResponseSchema, U as searchQuerySchema, Vt as codeRepositoryReportSchema, W as searchReportSchema, Wt as personCodeQuerySchema, X as revokePersonalTokenResponseSchema, Xt as conversationWatchesReportSchema, Y as personalTokenParamsSchema, Zt as watchParamsSchema, _ as inboxItemListSchema, _n as acceptedConversationMessageSchema, _t as locationParamsSchema, a as statsReportSchema, an as objectLinksQuerySchema, at as avatarParamsSchema, b as inboxItemWaitingConversationsSchema, bn as forkConversationBodySchema, bt as activitySixHours$1, c as workspaceBodySchema, ct as peopleSearchReportSchema, dn as conversationDeliveryResponseSchema, dt as personalSpendReportSchema, en as continueConversationInSlackBodySchema, et as userSearchReportSchema, f as workspaceSchema, fn as conversationCatchUpBodySchema, g as inboxItemListQuerySchema, gn as createAttachmentUploadBodySchema, gt as locationDirectoryReportSchema, h as inboxItemCountSchema, hn as attachmentUploadSchema, ht as locationDetailReportSchema, in as attachObjectLinkResponseSchema, it as actorProfileReportSchema, j as cacheHealthReportSchema, k as updateGatewayProvidersBodySchema, kt as disconnectConnectionResponseSchema, l as workspaceListSchema, ln as conversationOutlineSchema, lt as personCardReportSchema, m as inboxItemCountQuerySchema, mn as attachmentUploadParamsSchema, n as versionsQuerySchema, on as objectLinksReportSchema, p as inboxItemActionSchema, pn as conversationCatchUpSchema, pt as spaceConfigurationSchema, q as personalTokenListSchema, qt as todoParamsSchema, r as versionsSchema, rn as attachObjectLinkBodySchema, rt as actorDirectoryReportSchema, s as deleteWorkspaceResponseSchema, sn as conversationStatsReportSchema, st as peopleSearchQuerySchema, tn as continueConversationInSlackResponseSchema, u as workspaceParamsSchema, un as conversationDeliveryBodySchema, ut as personParamsSchema, v as inboxItemParamsSchema, vn as createConversationBodySchema, vt as activityDays$1, w as inboxSnoozeResourceSchema, wt as pushSubscriptionDeleteBodySchema, xn as forkConversationResponseSchema, y as inboxItemSchema, yn as createConversationMessageBodySchema, yt as activityHours$2, z as serviceAccountListSchema, zt as codeRepositoryParamsSchema } from "./schema-zWGG6VC1.js";
|
|
7
|
+
import { A as conversationUnchangedDetailWithMailboxSchema, B as runtimeInfoReportSchema, M as steerConversationPendingMessagesResponseSchema, N as healthReportSchema, P as pluginOperationalReportFeedSchema, T as conversationDetailWithMailboxReportSchema, U as skillReportsSchema, V as skillDetailReportSchema, _ as reorderPinnedConversationsBodySchema, a as conversationInviteResponseSchema, i as conversationInviteBodySchema, j as steerConversationPendingMessagesBodySchema, k as conversationPendingMessagesReportSchema, n as conversationFeedSchema, t as conversationFeedQuerySchema, v as reorderPinnedConversationsResponseSchema, z as pluginsSchema } from "./conversation-feed-DEUdD7mb.js";
|
|
8
|
+
import { Ft as addConversationNote, Nt as readUserCustomization, Pt as saveUserCustomization, Qt as getWorkspace, Xt as createWorkspace, Zt as deleteWorkspace, dn as isExperimentalFeatureEnabled, gt as parseEmail, i as listChildAgents, in as WorkspaceValidationError, lr as createPluginEgress, mt as isAllowedDomain, nn as listWorkspacesByRepository, on as workspaceRepoCheckoutPath, rn as updateWorkspace, tn as listWorkspaces } from "./markers-9QoqW5ov.js";
|
|
9
|
+
import { A as setConversationSubscriptionOperation, C as cancelQueuedMessagesOperation, D as renameConversationOperation, E as pinConversationOperation, J as resolveMentions, M as reorderPinnedConversations, N as apiOperationHandler, O as setConversationAutoArchiveOperation, Q as readInboxItemForUser, S as archiveDoneConversationsOperation, T as leaveConversationOperation, X as actOnInboxItem, Y as InboxItemActionError, _ as createConversationForViewer, a as resolveInboxItemSubjects, at as updateUserSettings, c as readConversationAuxiliaryCostsFromSql, d as conversationVersionsQuery, f as readConversationDetailEtag, g as appendConversationMessageForViewer, gt as startSavingsRefill, h as readConversationEvents, i as encodePageCursor, it as readUserSettings, j as stopConversationOperation, k as setConversationSpaceOperation, l as childAgentTotalsReport, m as keepQuickQuestionForViewer, mt as readSavingsRefill, n as readConversationFeed, o as readConversationDetail, p as forkConversationForViewer, pt as scheduleInboxSnoozeTimer, q as requireConversationPendingMessages, r as decodePageCursor, rt as DEFAULT_USER_SETTINGS, s as readConversationTreeStates, t as conversationFeedVersionQuery, u as readConversationTreeMetricsFromSql, v as requireWebMessageConversation, x as archiveConversationOperation, yt as readHealthReport } from "./list-wwDcROh9.js";
|
|
10
|
+
import { E as parseSlackChannelId, L as botConfig, O as parseSlackTeamId, R as getChatConfig, f as credentialContextForActor, i as getStateAdapter, u as withLock } from "./adapter-8_S6Birm.js";
|
|
11
|
+
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-CFzDyxkH.js";
|
|
14
12
|
import { a as INPUT_IMAGE_TYPES, i as INLINE_VIDEO_TYPES, n as userCustomizationSchema, o as detectImageMediaType } from "./user-customization-CvfuY9Eo.js";
|
|
15
13
|
import { u as sentry_exports } from "./sentry-CPbZjomA.js";
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { F as listSpaceConfiguration } from "./job-runner-B2XEvpif.js";
|
|
22
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-BfdAnztW.js";
|
|
23
|
-
import { o as getSandboxResources, t as getCachedSnapshot } from "./resolve-DC6zBuDV.js";
|
|
14
|
+
import { _ as utcHourKey, c as HOUR_MS$3, d as fillUtcSixHours, f as startOfUtcHour, g as trailingUtcSixHourWindow, h as trailingUtcHourWindow, l as fillUtcDays, m as trailingUtcDayWindow, p as sumUtcHoursIntoSixHours, s as DAY_MS$3, u as fillUtcHours } from "./agent-status-Bq_AIpyp.js";
|
|
15
|
+
import { A as createUserTokenStore, n as hash, t as create, u as SANDBOX_RUNTIME } from "./profile-D9LdwmZi.js";
|
|
16
|
+
import { a as isConnectableProvider, c as startConnection, i as disconnectConnection, o as listConnections, t as escapeHtml, u as htmlCallbackResponse } from "./html-Bb2Si1bR.js";
|
|
17
|
+
import { G as mapBounded, h as createPluginLogger } from "./prompt-3TqxEOtc.js";
|
|
18
|
+
import { o as getSandboxResources, t as getCachedSnapshot } from "./resolve-BBV2qf8A.js";
|
|
24
19
|
import { Hono } from "hono";
|
|
25
20
|
import * as z from "zod";
|
|
26
21
|
import path from "node:path";
|
|
27
22
|
import { and, asc, count as count$1, desc, eq, exists, gt, gte, inArray, isNotNull, isNull, like, lt, lte, ne, or, sql } from "drizzle-orm";
|
|
28
23
|
import { alias, union } from "drizzle-orm/pg-core";
|
|
29
24
|
import { normalizeEventIdentifier, objectPresentation, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema } from "@sentry/junior-plugin-api";
|
|
30
|
-
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
31
|
-
import fs from "node:fs/promises";
|
|
32
25
|
import { readFileSync } from "node:fs";
|
|
26
|
+
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
27
|
+
import fs$1 from "node:fs/promises";
|
|
33
28
|
import { HTTPException } from "hono/http-exception";
|
|
34
29
|
import { bodyLimit } from "hono/body-limit";
|
|
35
30
|
import { waitUntil } from "@vercel/functions";
|
|
@@ -69,16 +64,19 @@ async function attachObjectLink(viewer, conversationId, url) {
|
|
|
69
64
|
key: `object_attached:${linkType.owner}:${object.key}`,
|
|
70
65
|
text: [`${viewer.displayName ?? viewer.email} attached ${article} ${type} (${link}) to this Conversation.`, readTool ? `Read it live with \`${readTool}\` when the work needs its content.` : ""].filter(Boolean).join(" ")
|
|
71
66
|
});
|
|
72
|
-
await
|
|
67
|
+
await upsertPluginAnnotation(db, {
|
|
68
|
+
annotation: {
|
|
69
|
+
kind: "resource_link",
|
|
70
|
+
key: object.key,
|
|
71
|
+
objectType: object.objectType,
|
|
72
|
+
url: link
|
|
73
|
+
},
|
|
73
74
|
conversationId,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
label: link.slice(0, 256),
|
|
80
|
-
objectType: object.objectType,
|
|
81
|
-
url: link
|
|
75
|
+
plugin: linkType.owner,
|
|
76
|
+
subject: annotationSubject(linkType.owner, object) ?? {
|
|
77
|
+
id: link,
|
|
78
|
+
kind: ANNOTATION_SUBJECT_KINDS.link
|
|
79
|
+
}
|
|
82
80
|
});
|
|
83
81
|
return { status: "attached" };
|
|
84
82
|
}
|
|
@@ -230,26 +228,6 @@ async function catchUpOnConversation(viewer, conversationId, range) {
|
|
|
230
228
|
...conversation.title ? { title: conversation.title } : void 0
|
|
231
229
|
});
|
|
232
230
|
}
|
|
233
|
-
// src/chat/slack/detach-notice.ts
|
|
234
|
-
function detachNoticeText(conversationId, actorName) {
|
|
235
|
-
const url = getDashboardConversationLink(conversationId);
|
|
236
|
-
const dashboard = url ? formatSlackLink(url, "the dashboard") : "the dashboard";
|
|
237
|
-
return `${escapeSlackMrkdwnText(actorName)} detached this conversation from Slack. Updates continue in ${dashboard}. Mention me here to attach it again.`;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Tell a Slack thread once that its Conversation was detached, so people
|
|
241
|
-
* there know replies stopped. Call it only when the detach changed state.
|
|
242
|
-
* Run it inside the Slack installation of `location.teamId`.
|
|
243
|
-
*/
|
|
244
|
-
async function postSlackDetachNotice(args) {
|
|
245
|
-
const { location } = args;
|
|
246
|
-
if (!location.threadTs) return;
|
|
247
|
-
await postSlackMessage({
|
|
248
|
-
channelId: location.channelId,
|
|
249
|
-
text: detachNoticeText(args.conversationId, args.actorName),
|
|
250
|
-
threadTs: location.threadTs
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
231
|
// src/api/conversations/delivery.ts
|
|
254
232
|
/**
|
|
255
233
|
* Detach a root from its Location, or attach it again. Only a participant
|
|
@@ -3069,12 +3047,12 @@ const TREE_STATE_ORDER = [
|
|
|
3069
3047
|
*/
|
|
3070
3048
|
async function readSpaceStates(db, spaceIds, viewerUserId) {
|
|
3071
3049
|
if (spaceIds.length === 0) return /* @__PURE__ */ new Map();
|
|
3072
|
-
const leads = db.select({ id: spaceLead.conversationId }).from(spaceLead).where(and(eq(spaceLead.kind, "lead"), inArray(spaceLead.spaceId, [...spaceIds])))
|
|
3050
|
+
const leads = sql`array(${db.select({ id: spaceLead.conversationId }).from(spaceLead).where(and(eq(spaceLead.kind, "lead"), inArray(spaceLead.spaceId, [...spaceIds])))})`;
|
|
3073
3051
|
const roots = await db.select({
|
|
3074
3052
|
conversationId: juniorConversations.conversationId,
|
|
3075
3053
|
spaceId: rootSpaceIdSql(juniorConversations),
|
|
3076
3054
|
latestTurnFailed: conversationTurnFailedSql(juniorConversations)
|
|
3077
|
-
}).from(juniorConversations).where(and(or(
|
|
3055
|
+
}).from(juniorConversations).where(and(or(sql`${juniorConversations.conversationId} = any(${leads})`, sql`${juniorConversations.parentConversationId} = any(${leads})`), isNull(juniorConversations.archivedAt), isNull(juniorConversations.quickQuestionAt), rootVisibleToViewer(viewerUserId))).orderBy(desc(juniorConversations.lastActivityAt)).limit(SPACE_STATE_CONVERSATION_LIMIT);
|
|
3078
3056
|
const trees = await readConversationTreeStates(db, roots.map((root) => root.conversationId), viewerUserId);
|
|
3079
3057
|
const states = new Map(spaceIds.map((spaceId) => [spaceId, {
|
|
3080
3058
|
latestTurnFailed: false,
|
|
@@ -3531,7 +3509,7 @@ async function readPeoplePluginReports(args) {
|
|
|
3531
3509
|
reports: [],
|
|
3532
3510
|
source: "plugins"
|
|
3533
3511
|
});
|
|
3534
|
-
const { getPluginProfileReports } = await import("./reports-
|
|
3512
|
+
const { getPluginProfileReports } = await import("./reports-K-tbtEyx.js");
|
|
3535
3513
|
return pluginOperationalReportFeedSchema.parse({
|
|
3536
3514
|
generatedAt: new Date(nowMs).toISOString(),
|
|
3537
3515
|
reports: await getPluginProfileReports({
|
|
@@ -4145,12 +4123,6 @@ async function searchAutomationsForViewer(viewer, query, limit) {
|
|
|
4145
4123
|
}]);
|
|
4146
4124
|
}
|
|
4147
4125
|
// src/chat/inbox-items/search.ts
|
|
4148
|
-
function codeChangeSubjectKinds() {
|
|
4149
|
-
return getPlugins().flatMap((plugin) => (plugin.inboxSubjects ?? []).flatMap((subject) => {
|
|
4150
|
-
const kind = `${plugin.manifest.name}:${subject.kind}`;
|
|
4151
|
-
return codeChangeSubjectProvider(kind) ? [kind] : [];
|
|
4152
|
-
}));
|
|
4153
|
-
}
|
|
4154
4126
|
function subjectCodeChange(item, change) {
|
|
4155
4127
|
return and(eq(change.providerId, item.subjectId), eq(change.provider, sql`split_part(${item.subjectKind}, ':', 1)`));
|
|
4156
4128
|
}
|
|
@@ -4393,7 +4365,7 @@ function callbackUrl(request, provider) {
|
|
|
4393
4365
|
return new URL(`api/service-accounts/${encodeURIComponent(provider)}/callback`, base.endsWith("/") ? base : `${base}/`).toString();
|
|
4394
4366
|
}
|
|
4395
4367
|
function requirePlugin(provider) {
|
|
4396
|
-
const plugin =
|
|
4368
|
+
const plugin = getAppContext().catalog.getDefinition(provider);
|
|
4397
4369
|
if (!plugin?.manifest.accounts?.serviceAccount) throwApiError(404, "Service account not found.");
|
|
4398
4370
|
return plugin;
|
|
4399
4371
|
}
|
|
@@ -4410,7 +4382,7 @@ function callbackPage(title, message, status) {
|
|
|
4410
4382
|
*/
|
|
4411
4383
|
function createServiceAccountRoutes() {
|
|
4412
4384
|
const app = new Hono();
|
|
4413
|
-
app.get("/", requireAdmin, async () => jsonResponse(serviceAccountListSchema, { serviceAccounts: await mapBounded(serviceAccountPlugins(
|
|
4385
|
+
app.get("/", requireAdmin, async () => jsonResponse(serviceAccountListSchema, { serviceAccounts: await mapBounded(serviceAccountPlugins(getAppContext().catalog.getProviders()), getServiceAccountStatus) }));
|
|
4414
4386
|
app.post("/:provider", requireAdmin, validateRequest("param", serviceAccountParamsSchema, "Invalid provider."), async (context) => {
|
|
4415
4387
|
const { provider } = context.req.valid("param");
|
|
4416
4388
|
const { authorizationUrl } = await startServiceAccountSignIn({
|
|
@@ -5479,6 +5451,19 @@ async function readItemRoots(db, items, viewer) {
|
|
|
5479
5451
|
}]];
|
|
5480
5452
|
}));
|
|
5481
5453
|
}
|
|
5454
|
+
/**
|
|
5455
|
+
* Read the owner Conversations of a page of items that the viewer cannot
|
|
5456
|
+
* see. Only a role on a plugin item's object (`assigneeRoles`) puts a
|
|
5457
|
+
* person on an item outside its Conversation, so only those owners are
|
|
5458
|
+
* read. Their card then shows the item and its subject, and no
|
|
5459
|
+
* Conversation.
|
|
5460
|
+
*/
|
|
5461
|
+
async function readHiddenOwners(db, items, viewer) {
|
|
5462
|
+
const ids = [...new Set(items.flatMap((item) => hasAssigneeRoles(item) ? ownerConversationId(item) ?? [] : []))];
|
|
5463
|
+
if (ids.length === 0) return /* @__PURE__ */ new Set();
|
|
5464
|
+
const access = await readConversationAccessFromSql(db, ids, viewer);
|
|
5465
|
+
return new Set(ids.filter((id) => !access.get(id)?.canViewPrivateContent));
|
|
5466
|
+
}
|
|
5482
5467
|
// src/api/inbox-items/mentions.ts
|
|
5483
5468
|
/**
|
|
5484
5469
|
* Resolve the people that each Inbox item's title, body, and question
|
|
@@ -5548,6 +5533,7 @@ function subjectPayload(item, views, viewer) {
|
|
|
5548
5533
|
const url = view?.url;
|
|
5549
5534
|
const object = view?.object;
|
|
5550
5535
|
const label = subjectKindLabel(subject.kind, getPlugins(), object, viewer);
|
|
5536
|
+
const dismissNote = subjectKindDismissNote(subject.kind, getPlugins(), object, viewer);
|
|
5551
5537
|
const objectType = url && readLinkObjectType(url);
|
|
5552
5538
|
const snoozeUrl = url ?? questionLinks(item)[0];
|
|
5553
5539
|
const resource = snoozeUrl && snoozeSubjectResource(getEventCatalog(), snoozeUrl);
|
|
@@ -5555,6 +5541,7 @@ function subjectPayload(item, views, viewer) {
|
|
|
5555
5541
|
id: subject.id,
|
|
5556
5542
|
kind: subject.kind,
|
|
5557
5543
|
...label ? { label } : void 0,
|
|
5544
|
+
...dismissNote ? { dismissNote } : void 0,
|
|
5558
5545
|
...url ? { url } : void 0,
|
|
5559
5546
|
...object ? { object } : void 0,
|
|
5560
5547
|
...objectType ? { objectType } : void 0,
|
|
@@ -5577,8 +5564,10 @@ function wakePayload(reason) {
|
|
|
5577
5564
|
};
|
|
5578
5565
|
}
|
|
5579
5566
|
/** Build the API payload of one Inbox item for its viewer. */
|
|
5580
|
-
function inboxItemPayload(item, viewer, roots, mentions, related, wake, views) {
|
|
5581
|
-
const
|
|
5567
|
+
function inboxItemPayload(item, viewer, roots, mentions, related, wake, views, hidden) {
|
|
5568
|
+
const owner = ownerConversationId(item);
|
|
5569
|
+
const conversationHidden = owner !== void 0 && hidden.has(owner);
|
|
5570
|
+
const conversationId = conversationHidden ? void 0 : owner;
|
|
5582
5571
|
const root = conversationId ? roots.get(conversationId) : void 0;
|
|
5583
5572
|
const todo = subjectTodo(item.subject);
|
|
5584
5573
|
const question = inboxItemQuestion(item.request);
|
|
@@ -5589,8 +5578,8 @@ function inboxItemPayload(item, viewer, roots, mentions, related, wake, views) {
|
|
|
5589
5578
|
body: item.body,
|
|
5590
5579
|
canAct: canActOnInboxItem(item, viewer.id),
|
|
5591
5580
|
canAnswer: canAnswerInboxItem(item, viewer.id),
|
|
5592
|
-
canTake: canActOnInboxItem(item, viewer.id) && !isOnlyAssignee(item, viewer.id),
|
|
5593
|
-
conversationIds: item.conversationIds,
|
|
5581
|
+
canTake: canActOnInboxItem(item, viewer.id) && !isOnlyAssignee(item, viewer.id) && !hasAssigneeRoles(item),
|
|
5582
|
+
conversationIds: conversationHidden ? [] : item.conversationIds,
|
|
5594
5583
|
createdAt: item.createdAt.toISOString(),
|
|
5595
5584
|
id: item.id,
|
|
5596
5585
|
kind: item.kind,
|
|
@@ -5602,7 +5591,7 @@ function inboxItemPayload(item, viewer, roots, mentions, related, wake, views) {
|
|
|
5602
5591
|
visibility: item.visibility,
|
|
5603
5592
|
...conversationId ? { rootConversationId: root?.rootConversationId ?? conversationId } : void 0,
|
|
5604
5593
|
...item.answer ? { answer: item.answer } : void 0,
|
|
5605
|
-
...item.addedByTurnId ? { addedByTurnId: item.addedByTurnId } : void 0,
|
|
5594
|
+
...item.addedByTurnId && !conversationHidden ? { addedByTurnId: item.addedByTurnId } : void 0,
|
|
5606
5595
|
...item.addedByAutomationId ? { automationId: item.addedByAutomationId } : void 0,
|
|
5607
5596
|
...item.closeReason ? { closeReason: item.closeReason } : void 0,
|
|
5608
5597
|
...item.closedAt ? { closedAt: item.closedAt.toISOString() } : void 0,
|
|
@@ -5622,8 +5611,9 @@ function inboxItemPayload(item, viewer, roots, mentions, related, wake, views) {
|
|
|
5622
5611
|
*/
|
|
5623
5612
|
async function inboxItemPayloads(items, viewer, reader) {
|
|
5624
5613
|
const db = getDb();
|
|
5625
|
-
const [roots, mentions, related, snoozes, views] = await Promise.all([
|
|
5614
|
+
const [roots, hidden, mentions, related, snoozes, views] = await Promise.all([
|
|
5626
5615
|
readItemRoots(db, items, viewer),
|
|
5616
|
+
readHiddenOwners(db, items, viewer),
|
|
5627
5617
|
readInboxItemMentions(getSqlExecutor(), items),
|
|
5628
5618
|
readRelatedReviewWork(db, reader, viewer, items),
|
|
5629
5619
|
readViewerInboxSnoozes(db, {
|
|
@@ -5633,7 +5623,7 @@ async function inboxItemPayloads(items, viewer, reader) {
|
|
|
5633
5623
|
resolveInboxItemSubjects(viewer, items)
|
|
5634
5624
|
]);
|
|
5635
5625
|
return items.map((item, index) => {
|
|
5636
|
-
const payload = inboxItemPayload(item, viewer, roots, mentions[index], related.get(item.id), snoozes.wakeReasons.get(item.id), views);
|
|
5626
|
+
const payload = inboxItemPayload(item, viewer, roots, mentions[index], related.get(item.id), snoozes.wakeReasons.get(item.id), views, hidden);
|
|
5637
5627
|
return snoozes.snoozed.has(item.id) ? {
|
|
5638
5628
|
...payload,
|
|
5639
5629
|
snoozedByViewer: true
|
|
@@ -5982,7 +5972,7 @@ function readDescriptionText(home) {
|
|
|
5982
5972
|
}
|
|
5983
5973
|
/** Read discovered skills for runtime diagnostics and the Automation editor. */
|
|
5984
5974
|
async function readSkillReports() {
|
|
5985
|
-
const { discoverSkills } = await import("./skills-
|
|
5975
|
+
const { discoverSkills } = await import("./skills-Ccjw8h2P.js").then((n) => n.s);
|
|
5986
5976
|
const skills = await discoverSkills();
|
|
5987
5977
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
5988
5978
|
name: skill.name,
|
|
@@ -5996,10 +5986,10 @@ async function readSkillReports() {
|
|
|
5996
5986
|
* what the skill tells Junior. Returns null when no skill has that name.
|
|
5997
5987
|
*/
|
|
5998
5988
|
async function readSkillDetailReport(name) {
|
|
5999
|
-
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-
|
|
5989
|
+
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-Ccjw8h2P.js").then((n) => n.s);
|
|
6000
5990
|
const skill = findSkillByName(name, await discoverSkills());
|
|
6001
5991
|
if (!skill) return null;
|
|
6002
|
-
const parsed = parseSkillFile(await fs.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
5992
|
+
const parsed = parseSkillFile(await fs$1.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
6003
5993
|
if (!parsed.ok) throw new Error(`Invalid skill file for ${skill.name}: ${parsed.error}`);
|
|
6004
5994
|
return skillDetailReportSchema.parse({
|
|
6005
5995
|
name: skill.name,
|
|
@@ -6011,8 +6001,8 @@ async function readSkillDetailReport(name) {
|
|
|
6011
6001
|
}
|
|
6012
6002
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
6013
6003
|
async function readPlugins() {
|
|
6014
|
-
const {
|
|
6015
|
-
return pluginsSchema.parse(
|
|
6004
|
+
const { getAppContext } = await import("./db-BCaNWl9p.js").then((n) => n.Nd);
|
|
6005
|
+
return pluginsSchema.parse(getAppContext().catalog.getProviders().map((plugin) => ({
|
|
6016
6006
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
6017
6007
|
description: plugin.manifest.description,
|
|
6018
6008
|
displayName: plugin.manifest.displayName,
|
|
@@ -6021,9 +6011,9 @@ async function readPlugins() {
|
|
|
6021
6011
|
}
|
|
6022
6012
|
/** Read authenticated runtime discovery data. */
|
|
6023
6013
|
async function readRuntimeInfoReport() {
|
|
6024
|
-
const [{ homeDir }, {
|
|
6025
|
-
import("./
|
|
6026
|
-
import("./
|
|
6014
|
+
const [{ homeDir }, { getAppContext }, plugins, skills] = await Promise.all([
|
|
6015
|
+
import("./topics-DxuKurCX.js").then((n) => n.c),
|
|
6016
|
+
import("./db-BCaNWl9p.js").then((n) => n.Nd),
|
|
6027
6017
|
readPlugins(),
|
|
6028
6018
|
readSkillReports()
|
|
6029
6019
|
]);
|
|
@@ -6034,13 +6024,13 @@ async function readRuntimeInfoReport() {
|
|
|
6034
6024
|
descriptionText: readDescriptionText(home),
|
|
6035
6025
|
providers: plugins.map((plugin) => plugin.name),
|
|
6036
6026
|
skills,
|
|
6037
|
-
packagedContent:
|
|
6027
|
+
packagedContent: getAppContext().catalog.getPackageContent()
|
|
6038
6028
|
});
|
|
6039
6029
|
}
|
|
6040
6030
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
6041
6031
|
async function readPluginOperationalReportFeed() {
|
|
6042
6032
|
const nowMs = Date.now();
|
|
6043
|
-
const { getPluginOperationalReports } = await import("./reports-
|
|
6033
|
+
const { getPluginOperationalReports } = await import("./reports-K-tbtEyx.js");
|
|
6044
6034
|
return pluginOperationalReportFeedSchema.parse({
|
|
6045
6035
|
source: "plugins",
|
|
6046
6036
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as JuniorPluginSet } from "./plugins-
|
|
1
|
+
import { n as JuniorPluginSet } from "./plugins-DhGXZjlu.js";
|
|
2
2
|
import { n as ConversationQueueMessage, r as ConversationWorkQueue, t as WaitUntilFn } from "./types-fnU7Xs__.js";
|
|
3
|
-
import "./change-record-
|
|
3
|
+
import "./change-record-K-KsqNhT.js";
|
|
4
4
|
import "./db-BpxcYXfD.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
|
@@ -9,11 +9,11 @@ import "@earendil-works/pi-ai/compat";
|
|
|
9
9
|
import "@earendil-works/pi-ai/api/anthropic-messages";
|
|
10
10
|
import "drizzle-orm";
|
|
11
11
|
import { Destination, Source, locationSchema } from "@sentry/junior-plugin-api";
|
|
12
|
+
import "@modelcontextprotocol/sdk/client/auth.js";
|
|
13
|
+
import "@modelcontextprotocol/sdk/client";
|
|
12
14
|
import "ai";
|
|
13
15
|
import "@earendil-works/pi-ai";
|
|
14
16
|
import "@earendil-works/pi-agent-core";
|
|
15
|
-
import "@modelcontextprotocol/sdk/client/auth.js";
|
|
16
|
-
import "@modelcontextprotocol/sdk/client";
|
|
17
17
|
import { StateAdapter } from "chat";
|
|
18
18
|
import { SlackAdapter } from "@chat-adapter/slack";
|
|
19
19
|
interface BotModelConfig {
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as MemoryOptions, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-
|
|
2
|
-
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-
|
|
1
|
+
import { i as MemoryOptions, n as createApp, r as JuniorDashboardOptions, t as JuniorAppOptions } from "./app-tACXxJPI.js";
|
|
2
|
+
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-DhGXZjlu.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, type MemoryOptions, createApp, defineJuniorPlugins };
|