@sentry/junior 0.301.0 → 0.303.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-context-BdVnSuY5.js +43 -0
- package/dist/{admin-CRJHvCGg.js → admin-AfeAdS3J.js} +2 -2
- package/dist/{agent-runner-H4YhvNBj.js → agent-runner-BP8_DLUv.js} +4688 -13870
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -8
- package/dist/api.d.ts +13 -12
- package/dist/api.js +268 -118
- package/dist/{app-HDZglaIu.d.ts → app-Dd9v1mNx.d.ts} +15 -15
- package/dist/app.d.ts +1 -1
- package/dist/app.js +99 -330
- package/dist/{automation-Cva5ZOwW.js → automation-D9MvhOWY.js} +3 -1
- package/dist/{background-compaction-queue-CNrZ3QcU.js → background-compaction-queue-xaE05jxH.js} +97 -206
- package/dist/{briefs-x6Mzwxmg.js → briefs-D8i-dKTp.js} +4 -4
- package/dist/{catalog-runtime-BEY6EGRi.js → catalog-runtime-d1EM6Z0V.js} +2 -2
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +21 -21
- package/dist/cli/check.js +8 -8
- package/dist/cli/env.d.ts +1 -0
- package/dist/cli/env.js +8 -7
- package/dist/cli/init.js +13 -4
- package/dist/cli/main.js +4 -4
- package/dist/cli/plugins.js +6 -6
- package/dist/cli/snapshot-create.js +7 -5
- package/dist/cli/upgrade.d.ts +2 -2
- package/dist/cli/upgrade.js +5 -5
- package/dist/{config-CmjhyqgB.js → config-oGM7KA9M.js} +44 -63
- package/dist/{connections-CfIRm0xv.js → connections-BlikzEJv.js} +6 -6
- package/dist/{continue-in-slack-DPoABVkB.js → continue-in-slack-BZnYifiG.js} +5 -6
- package/dist/{conversation-BNXfq6Lb.js → conversation-CY1jnBiC.js} +1 -1
- package/dist/{conversation-feed-CfpyFMHP.js → conversation-feed-BZJRk6UV.js} +2 -1
- package/dist/{conversation-privacy-0CM0V2qK.js → conversation-privacy-Cx515ddM.js} +7 -7
- package/dist/{conversation-turn-C0sxyvS-.js → conversation-turn-DAhRdX4m.js} +20 -24
- package/dist/{credential-sync-tEMKZ_8M.js → credential-sync-DfhmWFeo.js} +18 -20
- package/dist/{db-Czra10QW.js → db-C-2tFxk3.js} +326 -17
- package/dist/{db-BdUHQhrC.d.ts → db-DPqcEM9_.d.ts} +25 -25
- package/dist/{executor-D_023K0H.js → executor-NVfS8aQ2.js} +51 -10
- package/dist/{history-IjdmO_r6.js → history-UZ3M2M9r.js} +13 -10
- package/dist/install-CHLrpRZc.js +228 -0
- package/dist/instrumentation.d.ts +4 -4
- package/dist/instrumentation.js +10 -10
- package/dist/{lineage-DmMIE0VL.js → lineage-HGLhd_-N.js} +2 -2
- package/dist/{logging-DcjLDDqi.js → logging-DiyqRLBx.js} +24 -20
- package/dist/{message-C0JY9RJP.js → message-CkCOcbFH.js} +9 -9
- package/dist/{model-input-CBp-p24N.js → model-input-DmoPPtPE.js} +5 -10
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +7 -6
- package/dist/{oauth-callback-server-BRq9QNhU.js → oauth-callback-server-CIf_6YmA.js} +5 -4
- package/dist/{oauth-relay-DRzq73b6.js → oauth-relay-DAmfVmJu.js} +3 -6
- package/dist/{package-discovery-DJhGdS4c.js → package-discovery-x4AvVhMj.js} +1 -1
- package/dist/{plugin-module-Cf5gVPWP.js → plugin-module-Cv2ETe8Y.js} +1 -1
- package/dist/{plugins-BBX07Jzt.js → plugins-Bkk0XRo2.js} +3 -3
- package/dist/{projection-CQNDOi82.js → projection-DBq8tsA5.js} +489 -223
- package/dist/{prompt-DLUB5m72.js → prompt-D2KlJopL.js} +15 -5
- package/dist/{queue-CZyYgPF0.d.ts → queue-CbEHUO0l.d.ts} +1 -1
- package/dist/queue-DFaOscp5.js +115 -0
- package/dist/{registry-Dj377ADs.js → registry-Bu0Z9BEO.js} +37 -37
- package/dist/{resolve-DJkh9Fky.js → resolve-DXuA3G0g.js} +4 -229
- package/dist/{result-C8iIpDl1.js → result-DpiNseDA.js} +11 -16
- package/dist/rolldown-runtime-BKpuH2hG.js +26 -0
- package/dist/{runner-DZqrOy8C.js → runner-iu1heRFv.js} +10 -10
- package/dist/{sandbox-egress-signals-CGwH86S9.js → sandbox-egress-signals-2HFYDcQf.js} +1 -1
- package/dist/{schema-CdZFn7Qd.d.ts → schema-DHMOaRzC.d.ts} +959 -41
- package/dist/{schema-DyHXiQKI.js → schema-DvfX3Gq_.js} +141 -40
- package/dist/{secrets-DebYU866.js → secrets-DHaJ5TTn.js} +4 -4
- package/dist/{sentry-BRTJqumy.js → sentry-CPbZjomA.js} +3 -28
- package/dist/{sentry-route-name-BhwWnfqj.js → sentry-route-name-C6EIzAGP.js} +1 -1
- package/dist/{service-account-suY004dx.js → service-account-BcT5LR7V.js} +271 -20
- package/dist/{service-account-D6jGR4a1.js → service-account-xYkaQTrw.js} +3 -3
- package/dist/{session-stop-BLmfFI3d.js → session-stop-BLLp1IP_.js} +1098 -1110
- package/dist/{skills-CmNG0dHb.js → skills-CNAGH4ju.js} +6 -9
- package/dist/{slack-conversation-unfurl-Bty-DlHe.js → slack-conversation-unfurl-DYnqe5ci.js} +10 -14
- package/dist/{spawn-CNjkpXpk.js → spawn-cGasWW33.js} +7 -7
- package/dist/{state-CEbZuZD6.js → state-CDS6h_Wv.js} +34 -5
- package/dist/{stop-Bjy2-K4H.js → stop-DMMA67yT.js} +896 -196
- package/dist/{store-DmV4CoNr.js → store-Dgs7Oe44.js} +5 -5
- package/dist/{task-queue-AhG1tSXR.js → task-queue-DcF0nhhz.js} +3 -3
- package/dist/{task-runner-BMxZI3o7.js → task-runner-BGXF7Fo7.js} +15 -20
- package/dist/{thread-context-CXLnbg7g.js → thread-context-BPky1KBe.js} +12 -12
- package/dist/{store-Epv6t4vV.js → turn-session-routing-DGvn9MSl.js} +384 -13
- package/dist/{turn-user-message-DsUZi9gn.js → turn-user-message-19CkuUvM.js} +3 -3
- package/dist/{validation-DOz8X9BU.js → validation-lu1DgjNQ.js} +2 -2
- package/dist/vercel.js +1 -1
- package/dist/{version-CGMRmMPK.js → version-Uo3c94Dx.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-H3EsMWtJ.js → viewer-BPQHMx3-.js} +3 -3
- package/dist/warmup-H8uLvW9e.js +13946 -0
- package/dist/{statuses-Hn-HsOph.js → web-message-id-lNodcCOI.js} +136 -1
- package/dist/{worker-ClphajjD.js → worker-B-pM_-3K.js} +9 -12
- package/migrations/0108_conversation_embeddings.sql +13 -0
- package/migrations/0109_user_preferences.sql +1 -0
- package/migrations/0110_code_change_repository_state_index.sql +1 -0
- package/migrations/meta/0108_snapshot.json +4688 -0
- package/migrations/meta/0109_snapshot.json +4925 -0
- package/migrations/meta/0110_snapshot.json +4952 -0
- package/migrations/meta/_journal.json +22 -1
- package/package.json +16 -17
- package/dist/adapter-CNjGEJO9.js +0 -303
- package/dist/reporting-window-DopzcOHh.js +0 -137
- package/dist/turn-session-routing-BD3-jJl7.js +0 -380
- package/dist/users-BxvYclQg.js +0 -424
- package/dist/warmup-CdU5hR49.js +0 -3715
package/dist/api.js
CHANGED
|
@@ -1,39 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { h as
|
|
4
|
-
import { f as
|
|
5
|
-
import { D as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { R as escapeXml, Z as getAttachmentStorage, n as botConfig } from "./config-oGM7KA9M.js";
|
|
2
|
+
import { G as createCache, J as getStateAdapter, O as conversationKindFromRow, _ as loadConversationSlackTenantIds, a as getConversationStore, ft as nextDetailVersion, o as getDb, s as getSqlExecutor, x as withConversationMutationLock } from "./db-C-2tFxk3.js";
|
|
3
|
+
import { Bt as listOwnedWatches, Dt as AttachmentUploadError, Jn as setConversationSubscription, Nt as readLiveAttachment, Tt as webActorFromUser, Vt as listChildAgents, Xn as jsonResponse, Yn as emptyResponse, Zn as throwApiError, _ as closeBreaker, _i as readViewerAutomationVersions, ai as activateViewerAutomationVersion, ci as changeViewerAutomationLifecycle, di as updateViewerAutomation, fi as ViewerTaskNotFoundError, ft as reportConversationRead, g as breakerStates, gi as readViewerAutomationSummary, h as savingsTotals, hi as readViewerAutomationRuns, ji as countOwnedAutomationsNeedingAttention, jt as writeAttachmentUpload, kt as createAttachmentUpload, li as deleteViewerTask, lt as archiveConversation, mi as readViewerAutomationExecutions, u as SAVINGS_NAMESPACE, ui as readViewerAutomationEdit, v as connectedState, vi as readViewerAutomations, w as readStats, wi as AutomationEditError, yt as acceptsWebMessages } from "./warmup-H8uLvW9e.js";
|
|
4
|
+
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-CY1jnBiC.js";
|
|
5
|
+
import { $ as testNotificationResponseSchema, A as startServiceAccountSignInResponseSchema, At as conversationOutlineSchema, B as personParamsSchema, Bt as pinConversationResponseSchema, C as cacheWarmingSavingsRefillResponseSchema, Ct as attachObjectLinkBodySchema, D as serviceAccountListSchema, Dt as stopConversationTurnResponseSchema, E as disconnectServiceAccountResponseSchema, Et as objectLinksReportSchema, F as personalTokenParamsSchema, Ft as conversationSubscriptionBodySchema, G as locationParamsSchema, Gt as attachmentUploadParamsSchema, Ht as reorderPinnedConversationsResponseSchema, I as revokePersonalTokenResponseSchema, It as conversationSubscriptionResponseSchema, J as activitySixHours$1, K as activityDays$1, Kt as attachmentUploadSchema, L as actorDirectoryReportSchema, Lt as conversationDeliveryBodySchema, M as createdPersonalTokenSchema, Mt as archiveConversationResponseSchema, N as personalTokenListSchema, Nt as archiveDoneConversationsResponseSchema, O as serviceAccountParamsSchema, Ot as conversationStatsReportSchema, Pt as conversationAutoArchiveSchema, Q as pushSubscriptionDeleteBodySchema, R as actorProfileReportSchema, Rt as conversationDeliveryResponseSchema, S as cacheWarmingSavingsQuerySchema, T as closeCacheWarmingBreakerResponseSchema, Tt as objectLinksQuerySchema, U as locationDetailReportSchema, Ut as conversationCatchUpBodySchema, V as personalSpendReportSchema, Vt as reorderPinnedConversationsBodySchema, W as locationDirectoryReportSchema, Wt as conversationCatchUpSchema, X as notificationSettingsSchema, Z as pushSubscriptionBodySchema, _ as reviewItemParamsSchema, _t as conversationWatchesReportSchema, b as cacheWarmingBreakerListSchema, bt as continueConversationInSlackBodySchema, c as workspaceListSchema, d as workspaceSchema, dt as codeRepositoryParamsSchema, et as connectionListSchema, f as reviewItemActionSchema, ft as codeRepositoryQuerySchema, g as reviewItemListSchema, h as reviewItemListQuerySchema, ht as personCodeQuerySchema, i as statsReportSchema, it as startConnectionResponseSchema, j as createPersonalTokenBodySchema, jt as archiveConversationBodySchema, l as workspaceParamsSchema, lt as codeOverviewReportSchema, m as reviewItemCountSchema, n as versionsSchema, o as deleteWorkspaceResponseSchema, p as reviewItemCountQuerySchema, pt as codeRepositoryReportSchema, q as activityHours$1, qt as createAttachmentUploadBodySchema, rt as disconnectConnectionResponseSchema, s as workspaceBodySchema, t as versionsQuerySchema, tt as connectionParamsSchema, ut as codePersonReportSchema, v as reviewItemSchema, w as cacheWarmingSavingsReportSchema, wt as attachObjectLinkResponseSchema, x as cacheWarmingBreakerParamsSchema, xt as continueConversationInSlackResponseSchema, y as reviewItemWaitingConversationsSchema, yt as conversationChildAgentsReportSchema, z as avatarParamsSchema, zt as pinConversationBodySchema } from "./schema-DvfX3Gq_.js";
|
|
6
|
+
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-BZJRk6UV.js";
|
|
7
|
+
import { J as isExperimentalFeatureEnabled, X as getEventCatalog, _ as readUserCustomization, v as saveUserCustomization, y as addConversationNote } from "./session-stop-BLLp1IP_.js";
|
|
8
|
+
import { $a as SANDBOX_RUNTIME, $r as reviewItemReaderForUser, Ar as countOpenReviewItemsForUser, Co as readConversationAccessFromSql, Cr as saveNotificationSchedule, Cs as createPluginCache, Gi as deleteWorkspace, Go as readSlackAttachmentSource, Ii as getDashboardSettingsLink, Ji as listWorkspaces, Jr as itemNeedsUser, Ki as getWorkspace, Lr as listWaitingConversations, No as readConversationEventPage, Rr as reviewItemsNeedingUserVersionQuery, So as createConversationAccessReader, Sr as readNotificationSchedule, Tr as isPausedBySlack, Ur as canActOnReviewItem, V as createPluginEgress, Wi as createWorkspace, Xi as updateWorkspace, Yi as listWorkspacesByRepository, Zi as WorkspaceValidationError, Zn as createUserTokenStore, _r as readWebPushConfig, br as deletePushSubscription, ei as reviewItemReaderForUserInConversation, hs as listConversationAnnotations, jo as readConversationBriefThrough, jr as countReviewItemsNeedingUserBySubject, ms as createPluginAnnotations, na as create, qr as isOnlyAssignee, ra as hash, to as workspaceRepoCheckoutPath, ur as getPlugins, vr as sendPushNotificationToUser, wr as savePushSubscription, xr as listPushSubscriptions, yo as createPluginLogger, yr as resolveNotificationTimezone, zr as searchReviewItems } from "./projection-DBq8tsA5.js";
|
|
9
|
+
import { $ as readObjectLinkTypes, A as isAllowedSignInEmail, D as resolveMentions, Dt as IMAGE_WIDTHS, E as requireConversationPendingMessages, Et as createViewerMcp, F as actOnReviewItem, G as readSavingsRefill, H as DEFAULT_USER_SETTINGS, L as readReviewItemForUser, Ot as decodeImageId, P as ReviewItemActionError, Q as readLinkObjectType, Tt as readFirstHumanMessageTexts, U as readUserSettings, V as setConversationAutoArchive, W as updateUserSettings, X as readHealthReport, Z as OBJECT_LINK_TTL_MS, _ as readConversationEvents, a as decodePageCursor, b as createConversationForViewer, c as reorderPinnedConversations, d as childAgentTotalsReport, et as resolveObjectLinkNow, f as readConversationTreeMetricsFromSql, g as keepQuickQuestionForViewer, h as forkConversationForViewer, i as readConversationFeed, l as readConversationDetail, m as readConversationDetailEtag, n as steerConversationPendingMessagesForViewer, nt as guardedFetch, o as encodePageCursor, p as conversationVersionQuery, q as startSavingsRefill, r as conversationFeedVersionQuery, s as pinConversation, st as getProductionSlackAdapter, t as stopConversationTurnForViewer, tt as resolveObjectLinks, u as readConversationAuxiliaryCostsFromSql, w as cancelConversationPendingMessagesForViewer, wt as conversationSummaryFromStoredConversation, x as requireWebMessageConversation, y as appendConversationMessageForViewer, z as archiveViewerDoneConversations } from "./stop-DMMA67yT.js";
|
|
10
|
+
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-D2KlJopL.js";
|
|
11
|
+
import { a as resumeConversationDelivery, i as pauseConversationDelivery, r as canPauseConversationDelivery } from "./conversation-turn-DAhRdX4m.js";
|
|
12
12
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { s as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
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";
|
|
13
|
+
import { C as juniorConversationMetrics, E as juniorApiTokens, F as juniorDestinations, M as juniorConversations, N as juniorIdentities, O as juniorCodeChanges, P as juniorUsers, T as juniorConversationEvents, k as juniorCodeRepositories, x as juniorConversationBriefs } from "./executor-NVfS8aQ2.js";
|
|
14
|
+
import { t as runWithSlackInstallation } from "./adapter-context-BdVnSuY5.js";
|
|
15
|
+
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-BZnYifiG.js";
|
|
16
|
+
import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-D2iXzvlN.js";
|
|
17
|
+
import { A as fillUtcSixHours, D as HOUR_MS$1, E as DAY_MS$2, F as trailingUtcSixHourWindow, I as utcDayKey, L as utcHourKey, M as sumUtcHoursIntoSixHours, N as trailingUtcDayWindow, O as fillUtcDays, P as trailingUtcHourWindow, T as apiErrorSchema, _ as userCustomizationSchema, f as INLINE_VIDEO_TYPES, j as startOfUtcHour, k as fillUtcHours, m as detectImageMediaType, p as INPUT_IMAGE_TYPES } from "./web-message-id-lNodcCOI.js";
|
|
18
|
+
import { O as previewOriginBelongsTo, d as AttachmentDownloadError, f as readAttachmentContent, y as createSlackReviewItemShow } from "./agent-runner-BP8_DLUv.js";
|
|
19
|
+
import { F as readAutomationTitlesByConversationId, L as conversationAggregateColumns, R as conversationRangeColumns, _t as automationEventCatalog, pt as AutomationConflictError, z as conversationUsageCostExpr } from "./turn-session-routing-DGvn9MSl.js";
|
|
20
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-BlikzEJv.js";
|
|
21
|
+
import { h as logWarn, m as logInfo, p as logException } from "./logging-DiyqRLBx.js";
|
|
22
|
+
import { f as credentialContextForActor } from "./registry-Bu0Z9BEO.js";
|
|
23
|
+
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarFetch, t as findUserByEmail } from "./viewer-BPQHMx3-.js";
|
|
24
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-BcT5LR7V.js";
|
|
25
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-d1EM6Z0V.js";
|
|
26
|
+
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-D9MvhOWY.js";
|
|
27
|
+
import { o as getSandboxResources } from "./install-CHLrpRZc.js";
|
|
28
|
+
import { t as getCachedSnapshot } from "./resolve-DXuA3G0g.js";
|
|
29
|
+
import { o as getVercelConversationWorkQueue } from "./background-compaction-queue-xaE05jxH.js";
|
|
32
30
|
import { Hono } from "hono";
|
|
33
31
|
import * as z from "zod";
|
|
34
32
|
import path from "node:path";
|
|
35
33
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
36
|
-
import { and, asc, countDistinct, desc, eq, gt, gte, inArray, isNull, lte, notExists, or, sql } from "drizzle-orm";
|
|
34
|
+
import { and, asc, countDistinct, desc, eq, gt, gte, inArray, isNull, lt, lte, ne, notExists, or, sql } from "drizzle-orm";
|
|
37
35
|
import { objectPresentation, pluginUserPageContentSchema, pluginUserPageCursorSchema, pluginUserPageFilterSchema, pluginUserPageLinksSchema, pluginUserPageQuerySchema } from "@sentry/junior-plugin-api";
|
|
38
36
|
import { alias } from "drizzle-orm/pg-core";
|
|
39
37
|
import fs from "node:fs/promises";
|
|
@@ -68,7 +66,7 @@ async function attachObjectLink(viewer, conversationId, url) {
|
|
|
68
66
|
if ((await listConversationAnnotations(db, conversationId)).some((annotation) => annotation.url && sameLink(annotation.url, link) || annotation.plugin === linkType.owner && annotation.key === object.key)) return { status: "unchanged" };
|
|
69
67
|
const type = object.displayType ?? objectPresentation(object).label;
|
|
70
68
|
const article = /^[aeiou]/i.test(type) ? "an" : "a";
|
|
71
|
-
const
|
|
69
|
+
const readTool = linkType.readTool?.(object);
|
|
72
70
|
await addConversationNote({
|
|
73
71
|
conversationId,
|
|
74
72
|
createdAtMs: Date.now(),
|
|
@@ -400,7 +398,7 @@ function parseRangeHeader(header, size) {
|
|
|
400
398
|
};
|
|
401
399
|
}
|
|
402
400
|
const start = Number(first);
|
|
403
|
-
const end = last ? Number(last) :
|
|
401
|
+
const end = last ? Number(last) : 1e400;
|
|
404
402
|
if (end < start) return void 0;
|
|
405
403
|
if (start >= size) return "unsatisfiable";
|
|
406
404
|
return {
|
|
@@ -1321,11 +1319,12 @@ function createConversationRoutes(options) {
|
|
|
1321
1319
|
return app;
|
|
1322
1320
|
}
|
|
1323
1321
|
// src/api/code/overview.ts
|
|
1324
|
-
const DAY_MS = 864e5;
|
|
1322
|
+
const DAY_MS$1 = 864e5;
|
|
1325
1323
|
const WINDOW_DAYS = 30;
|
|
1326
1324
|
/**
|
|
1327
|
-
* Code changes
|
|
1328
|
-
*
|
|
1325
|
+
* Code changes on one page of a person's code overview. Open changes sort
|
|
1326
|
+
* first, so the first page has the open changes before completed ones, and
|
|
1327
|
+
* `nextCursor` reads the rest.
|
|
1329
1328
|
*/
|
|
1330
1329
|
const PERSON_CHANGE_LIMIT = 100;
|
|
1331
1330
|
function startOfUtcDay(timestampMs) {
|
|
@@ -1397,35 +1396,43 @@ async function readTreeCosts(conversationIds) {
|
|
|
1397
1396
|
return total;
|
|
1398
1397
|
};
|
|
1399
1398
|
}
|
|
1400
|
-
/**
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1399
|
+
/**
|
|
1400
|
+
* True when any linked conversation actor belongs to the subject user. The
|
|
1401
|
+
* subquery starts from the user's Conversations, so Postgres hash-joins them
|
|
1402
|
+
* with the linked ids instead of one lookup per code change.
|
|
1403
|
+
*/
|
|
1404
|
+
function ownedByUserSql(userId) {
|
|
1405
|
+
return sql`${juniorCodeChanges.id} IN (
|
|
1406
|
+
SELECT linked.id
|
|
1407
|
+
FROM junior_identities AS identities
|
|
1405
1408
|
INNER JOIN junior_conversations AS conversations
|
|
1406
|
-
ON conversations.
|
|
1407
|
-
INNER JOIN
|
|
1408
|
-
|
|
1409
|
+
ON conversations.actor_identity_id = identities.id
|
|
1410
|
+
INNER JOIN (
|
|
1411
|
+
SELECT id, unnest(conversation_ids) AS conversation_id
|
|
1412
|
+
FROM junior_code_changes
|
|
1413
|
+
) AS linked
|
|
1414
|
+
ON linked.conversation_id = conversations.conversation_id
|
|
1409
1415
|
WHERE identities.user_id = ${userId}
|
|
1410
1416
|
)`;
|
|
1411
1417
|
}
|
|
1412
1418
|
/** Limit code changes to one person's conversations or one repository. */
|
|
1413
1419
|
function changeScopeFilter(args) {
|
|
1414
|
-
return and(args.userId ? ownedByUserSql(
|
|
1420
|
+
return and(args.userId ? ownedByUserSql(args.userId) : void 0, args.repositoryId ? eq(juniorCodeChanges.repositoryId, args.repositoryId) : void 0);
|
|
1415
1421
|
}
|
|
1416
1422
|
/** Read windowed code summary and activity buckets for an optional scope. */
|
|
1417
1423
|
async function readCodeWindows(args) {
|
|
1418
1424
|
const db = getDb();
|
|
1419
1425
|
const windowEnd = new Date(args.nowMs);
|
|
1420
|
-
const windowStart = /* @__PURE__ */ new Date(args.nowMs - WINDOW_DAYS * DAY_MS);
|
|
1421
|
-
const activityStart = startOfUtcDay(args.nowMs - 89 * DAY_MS);
|
|
1426
|
+
const windowStart = /* @__PURE__ */ new Date(args.nowMs - WINDOW_DAYS * DAY_MS$1);
|
|
1427
|
+
const activityStart = startOfUtcDay(args.nowMs - 89 * DAY_MS$1);
|
|
1422
1428
|
const changes = juniorCodeChanges;
|
|
1423
1429
|
const activityHourEnd = new Date(args.nowMs);
|
|
1424
1430
|
activityHourEnd.setUTCMinutes(0, 0, 0);
|
|
1425
|
-
const activityHourStart = /* @__PURE__ */ new Date(activityHourEnd.getTime() - 167 * (DAY_MS / 24));
|
|
1431
|
+
const activityHourStart = /* @__PURE__ */ new Date(activityHourEnd.getTime() - 167 * (DAY_MS$1 / 24));
|
|
1426
1432
|
const rows = await db.select({
|
|
1427
1433
|
closedAt: changes.closedAt,
|
|
1428
1434
|
conversationIds: changes.conversationIds,
|
|
1435
|
+
lastActivityAt: changes.lastActivityAt,
|
|
1429
1436
|
mergedAt: changes.mergedAt,
|
|
1430
1437
|
openedAt: changes.openedAt,
|
|
1431
1438
|
state: changes.state
|
|
@@ -1441,12 +1448,13 @@ async function readCodeWindows(args) {
|
|
|
1441
1448
|
end: activityHourEnd,
|
|
1442
1449
|
keyLength: 13,
|
|
1443
1450
|
start: activityHourStart,
|
|
1444
|
-
stepMs: DAY_MS / 24
|
|
1451
|
+
stepMs: DAY_MS$1 / 24
|
|
1445
1452
|
});
|
|
1446
1453
|
const summary = {
|
|
1447
1454
|
closed: closed.length,
|
|
1448
1455
|
costUsd: treeCost(createdConversationIds),
|
|
1449
1456
|
created: created.length,
|
|
1457
|
+
idle: rows.filter((row) => row.state === "open" && Math.floor((args.nowMs - (row.lastActivityAt ?? row.openedAt).getTime()) / DAY_MS$1) > 7).length,
|
|
1450
1458
|
medianCostUsd: median(changeCosts.filter((cost) => cost > 0)),
|
|
1451
1459
|
medianMergeTimeMs: median(merged.flatMap((row) => row.state === "merged" && row.mergedAt ? [row.mergedAt.getTime() - row.openedAt.getTime()] : [])),
|
|
1452
1460
|
merged: merged.length,
|
|
@@ -1457,7 +1465,7 @@ async function readCodeWindows(args) {
|
|
|
1457
1465
|
end: startOfUtcDay(args.nowMs),
|
|
1458
1466
|
keyLength: 10,
|
|
1459
1467
|
start: activityStart,
|
|
1460
|
-
stepMs: DAY_MS
|
|
1468
|
+
stepMs: DAY_MS$1
|
|
1461
1469
|
}),
|
|
1462
1470
|
activityHours,
|
|
1463
1471
|
activitySixHours: sumUtcHoursIntoSixHours({
|
|
@@ -1556,22 +1564,51 @@ async function readCodeOverview(nowMs = Date.now()) {
|
|
|
1556
1564
|
});
|
|
1557
1565
|
}
|
|
1558
1566
|
/**
|
|
1567
|
+
* Position after the last change of a page of a person's code overview.
|
|
1568
|
+
* `idleSince` is set only when that change was open. Code change times are
|
|
1569
|
+
* written from JavaScript dates, so milliseconds keep the order exact.
|
|
1570
|
+
*/
|
|
1571
|
+
const personCodeCursorSchema = z.object({
|
|
1572
|
+
id: z.guid(),
|
|
1573
|
+
idleSince: z.iso.datetime().optional(),
|
|
1574
|
+
updatedAt: z.iso.datetime()
|
|
1575
|
+
}).strict();
|
|
1576
|
+
const idleSince = sql`coalesce(${juniorCodeChanges.lastActivityAt}, ${juniorCodeChanges.openedAt})`;
|
|
1577
|
+
function afterPersonCodeCursor(cursor) {
|
|
1578
|
+
const updatedAt = new Date(cursor.updatedAt);
|
|
1579
|
+
const laterInGroup = or(lt(juniorCodeChanges.updatedAt, updatedAt), and(eq(juniorCodeChanges.updatedAt, updatedAt), gt(juniorCodeChanges.id, cursor.id)));
|
|
1580
|
+
const completed = ne(juniorCodeChanges.state, "open");
|
|
1581
|
+
if (cursor.idleSince === void 0) return and(completed, laterInGroup);
|
|
1582
|
+
const since = sql`${cursor.idleSince}::timestamptz`;
|
|
1583
|
+
return or(completed, sql`${idleSince} > ${since}`, and(sql`${idleSince} = ${since}`, laterInGroup));
|
|
1584
|
+
}
|
|
1585
|
+
/**
|
|
1559
1586
|
* Read person-scoped code activity and recent code changes linked through
|
|
1560
1587
|
* conversation actors on Junior-owned code changes.
|
|
1561
1588
|
*/
|
|
1562
1589
|
async function readPersonCodeOverview(args) {
|
|
1563
1590
|
const nowMs = args.nowMs ?? Date.now();
|
|
1591
|
+
const after = args.cursor ? decodePageCursor(personCodeCursorSchema, args.cursor, "Invalid code change cursor.") : void 0;
|
|
1564
1592
|
const db = getDb();
|
|
1565
1593
|
const [windows, changes] = await Promise.all([readCodeWindows({
|
|
1566
1594
|
nowMs,
|
|
1567
1595
|
userId: args.userId
|
|
1568
|
-
}), db.select(
|
|
1596
|
+
}), db.select({
|
|
1597
|
+
change: codeChangeReportColumns,
|
|
1598
|
+
updatedAt: juniorCodeChanges.updatedAt
|
|
1599
|
+
}).from(juniorCodeChanges).innerJoin(juniorCodeRepositories, eq(juniorCodeChanges.repositoryId, juniorCodeRepositories.id)).where(and(changeScopeFilter({ userId: args.userId }), after ? afterPersonCodeCursor(after) : void 0)).orderBy(desc(sql`${juniorCodeChanges.state} = 'open'`), asc(sql`CASE WHEN ${juniorCodeChanges.state} = 'open' THEN ${idleSince} END`), desc(juniorCodeChanges.updatedAt), asc(juniorCodeChanges.id)).limit(PERSON_CHANGE_LIMIT)]);
|
|
1600
|
+
const last = changes.at(-1);
|
|
1569
1601
|
return codePersonReportSchema.parse({
|
|
1570
1602
|
activityDays: windows.activityDays,
|
|
1571
1603
|
activityHours: windows.activityHours,
|
|
1572
1604
|
activitySixHours: windows.activitySixHours,
|
|
1573
|
-
changes: changes.map(codeChangeReport),
|
|
1605
|
+
changes: changes.map((row) => codeChangeReport(row.change)),
|
|
1574
1606
|
generatedAt: windows.windowEnd.toISOString(),
|
|
1607
|
+
nextCursor: last && changes.length === PERSON_CHANGE_LIMIT ? encodePageCursor(personCodeCursorSchema, {
|
|
1608
|
+
id: last.change.id,
|
|
1609
|
+
...last.change.state === "open" ? { idleSince: (last.change.lastActivityAt ?? last.change.openedAt).toISOString() } : void 0,
|
|
1610
|
+
updatedAt: last.updatedAt.toISOString()
|
|
1611
|
+
}) : void 0,
|
|
1575
1612
|
summary: windows.summary,
|
|
1576
1613
|
windowEnd: windows.windowEnd.toISOString(),
|
|
1577
1614
|
windowStart: windows.windowStart.toISOString()
|
|
@@ -1580,25 +1617,35 @@ async function readPersonCodeOverview(args) {
|
|
|
1580
1617
|
// src/api/code/repository.ts
|
|
1581
1618
|
/** Most recent code changes listed on one repository page. */
|
|
1582
1619
|
const REPOSITORY_CHANGE_LIMIT = 100;
|
|
1620
|
+
function countState(state) {
|
|
1621
|
+
return sql`count(*) filter (where ${juniorCodeChanges.state} = ${state})`.mapWith(Number);
|
|
1622
|
+
}
|
|
1583
1623
|
/**
|
|
1584
1624
|
* Read code activity for one repository: windowed summary, activity buckets,
|
|
1585
|
-
* recent code changes, and the Workspaces that
|
|
1625
|
+
* recent code changes, change counts by state, and the Workspaces that
|
|
1626
|
+
* include it. `state` limits the listed changes; the counts cover every
|
|
1627
|
+
* change.
|
|
1586
1628
|
*/
|
|
1587
|
-
async function readCodeRepository(repositoryId,
|
|
1629
|
+
async function readCodeRepository(repositoryId, options = {}) {
|
|
1630
|
+
const nowMs = options.nowMs ?? Date.now();
|
|
1588
1631
|
const db = getDb();
|
|
1589
|
-
const [
|
|
1632
|
+
const [row] = await db.select({
|
|
1633
|
+
closed: countState("closed"),
|
|
1590
1634
|
id: juniorCodeRepositories.id,
|
|
1635
|
+
merged: countState("merged"),
|
|
1591
1636
|
name: juniorCodeRepositories.name,
|
|
1637
|
+
open: countState("open"),
|
|
1592
1638
|
provider: juniorCodeRepositories.provider,
|
|
1593
1639
|
url: juniorCodeRepositories.url
|
|
1594
|
-
}).from(juniorCodeRepositories).where(eq(juniorCodeRepositories.id, repositoryId)).
|
|
1595
|
-
if (!
|
|
1640
|
+
}).from(juniorCodeRepositories).leftJoin(juniorCodeChanges, eq(juniorCodeChanges.repositoryId, juniorCodeRepositories.id)).where(eq(juniorCodeRepositories.id, repositoryId)).groupBy(juniorCodeRepositories.id);
|
|
1641
|
+
if (!row) return void 0;
|
|
1642
|
+
const { closed, merged, open, ...repository } = row;
|
|
1596
1643
|
const [windows, changes, workspaces] = await Promise.all([
|
|
1597
1644
|
readCodeWindows({
|
|
1598
1645
|
nowMs,
|
|
1599
1646
|
repositoryId
|
|
1600
1647
|
}),
|
|
1601
|
-
db.select(codeChangeReportColumns).from(juniorCodeChanges).innerJoin(juniorCodeRepositories, eq(juniorCodeChanges.repositoryId, juniorCodeRepositories.id)).where(eq(juniorCodeChanges.repositoryId, repositoryId)).orderBy(desc(juniorCodeChanges.updatedAt)).limit(REPOSITORY_CHANGE_LIMIT),
|
|
1648
|
+
db.select(codeChangeReportColumns).from(juniorCodeChanges).innerJoin(juniorCodeRepositories, eq(juniorCodeChanges.repositoryId, juniorCodeRepositories.id)).where(and(eq(juniorCodeChanges.repositoryId, repositoryId), options.state ? eq(juniorCodeChanges.state, options.state) : void 0)).orderBy(desc(juniorCodeChanges.updatedAt)).limit(REPOSITORY_CHANGE_LIMIT),
|
|
1602
1649
|
listWorkspacesByRepository(db, {
|
|
1603
1650
|
provider: repository.provider,
|
|
1604
1651
|
repo: repository.name
|
|
@@ -1608,6 +1655,11 @@ async function readCodeRepository(repositoryId, nowMs = Date.now()) {
|
|
|
1608
1655
|
activityDays: windows.activityDays,
|
|
1609
1656
|
activityHours: windows.activityHours,
|
|
1610
1657
|
activitySixHours: windows.activitySixHours,
|
|
1658
|
+
changeCounts: {
|
|
1659
|
+
closed,
|
|
1660
|
+
merged,
|
|
1661
|
+
open
|
|
1662
|
+
},
|
|
1611
1663
|
changes: changes.map(codeChangeReport),
|
|
1612
1664
|
generatedAt: windows.windowEnd.toISOString(),
|
|
1613
1665
|
repository: {
|
|
@@ -1625,9 +1677,10 @@ async function readCodeRepository(repositoryId, nowMs = Date.now()) {
|
|
|
1625
1677
|
function createCodeRoutes() {
|
|
1626
1678
|
const app = new Hono();
|
|
1627
1679
|
app.get("/", async () => jsonResponse(codeOverviewReportSchema, await readCodeOverview()));
|
|
1628
|
-
app.get("/repositories/:repositoryId", validateRequest("param", codeRepositoryParamsSchema, "Invalid route parameters."), async (context) => {
|
|
1680
|
+
app.get("/repositories/:repositoryId", validateRequest("param", codeRepositoryParamsSchema, "Invalid route parameters."), validateRequest("query", codeRepositoryQuerySchema, "Invalid query parameters."), async (context) => {
|
|
1629
1681
|
const { repositoryId } = context.req.valid("param");
|
|
1630
|
-
const
|
|
1682
|
+
const { state } = context.req.valid("query");
|
|
1683
|
+
const report = await readCodeRepository(repositoryId, { state });
|
|
1631
1684
|
if (!report) throwApiError(404, "Repository not found.");
|
|
1632
1685
|
return jsonResponse(codeRepositoryReportSchema, report);
|
|
1633
1686
|
});
|
|
@@ -2213,7 +2266,8 @@ function pluginSource(plugin) {
|
|
|
2213
2266
|
}),
|
|
2214
2267
|
log: createPluginLogger(name),
|
|
2215
2268
|
plugin: { name },
|
|
2216
|
-
viewer
|
|
2269
|
+
viewer,
|
|
2270
|
+
viewerMcp: createViewerMcp(name, viewer.id)
|
|
2217
2271
|
}, ref);
|
|
2218
2272
|
}
|
|
2219
2273
|
function findSource(source) {
|
|
@@ -2310,7 +2364,7 @@ function createImageRoutes() {
|
|
|
2310
2364
|
}
|
|
2311
2365
|
// src/api/people/code.ts
|
|
2312
2366
|
/** Read person-scoped native code activity for one People profile. */
|
|
2313
|
-
async function readPeopleCode(email) {
|
|
2367
|
+
async function readPeopleCode(email, cursor) {
|
|
2314
2368
|
const subject = await findUserByEmail(email);
|
|
2315
2369
|
if (!subject) {
|
|
2316
2370
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -2321,6 +2375,7 @@ async function readPeopleCode(email) {
|
|
|
2321
2375
|
summary: {
|
|
2322
2376
|
closed: 0,
|
|
2323
2377
|
created: 0,
|
|
2378
|
+
idle: 0,
|
|
2324
2379
|
merged: 0,
|
|
2325
2380
|
open: 0
|
|
2326
2381
|
},
|
|
@@ -2328,7 +2383,10 @@ async function readPeopleCode(email) {
|
|
|
2328
2383
|
windowStart: (/* @__PURE__ */ new Date(now.getTime() - 2592e6)).toISOString()
|
|
2329
2384
|
});
|
|
2330
2385
|
}
|
|
2331
|
-
return await readPersonCodeOverview({
|
|
2386
|
+
return await readPersonCodeOverview({
|
|
2387
|
+
cursor,
|
|
2388
|
+
userId: subject.id
|
|
2389
|
+
});
|
|
2332
2390
|
}
|
|
2333
2391
|
function turnMetricSum(metric) {
|
|
2334
2392
|
return sql`SUM(${juniorConversationMetrics.value}) FILTER (
|
|
@@ -2591,10 +2649,10 @@ function rangeWindow(buckets, nowMs, range, conversations) {
|
|
|
2591
2649
|
};
|
|
2592
2650
|
}
|
|
2593
2651
|
const current = trailingUtcDayWindow(nowMs, range);
|
|
2594
|
-
const priorEndMs = current.start.getTime() - DAY_MS$
|
|
2595
|
-
const priorStartMs = priorEndMs - (range - 1) * DAY_MS$
|
|
2596
|
-
const currentTotals = sumBuckets(buckets, current.start.getTime(), current.end.getTime(), utcDayKey, DAY_MS$
|
|
2597
|
-
const priorTotals = sumBuckets(buckets, priorStartMs, priorEndMs, utcDayKey, DAY_MS$
|
|
2652
|
+
const priorEndMs = current.start.getTime() - DAY_MS$2;
|
|
2653
|
+
const priorStartMs = priorEndMs - (range - 1) * DAY_MS$2;
|
|
2654
|
+
const currentTotals = sumBuckets(buckets, current.start.getTime(), current.end.getTime(), utcDayKey, DAY_MS$2);
|
|
2655
|
+
const priorTotals = sumBuckets(buckets, priorStartMs, priorEndMs, utcDayKey, DAY_MS$2);
|
|
2598
2656
|
return {
|
|
2599
2657
|
conversations,
|
|
2600
2658
|
costUsd: currentTotals.costUsd,
|
|
@@ -2740,7 +2798,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2740
2798
|
reports: [],
|
|
2741
2799
|
source: "plugins"
|
|
2742
2800
|
});
|
|
2743
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2801
|
+
const { getPluginProfileReports } = await import("./projection-DBq8tsA5.js").then((n) => n.er);
|
|
2744
2802
|
return pluginOperationalReportFeedSchema.parse({
|
|
2745
2803
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2746
2804
|
reports: await getPluginProfileReports({
|
|
@@ -3015,9 +3073,10 @@ function createPeopleRoutes() {
|
|
|
3015
3073
|
viewer
|
|
3016
3074
|
}));
|
|
3017
3075
|
});
|
|
3018
|
-
app.get("/:email/code", validateRequest("param", personParamsSchema, "Invalid route parameters."), async (context) => {
|
|
3076
|
+
app.get("/:email/code", validateRequest("param", personParamsSchema, "Invalid route parameters."), validateRequest("query", personCodeQuerySchema, "Invalid code query."), async (context) => {
|
|
3019
3077
|
const { email } = context.req.valid("param");
|
|
3020
|
-
|
|
3078
|
+
const { cursor } = context.req.valid("query");
|
|
3079
|
+
return jsonResponse(codePersonReportSchema, await readPeopleCode(email, cursor));
|
|
3021
3080
|
});
|
|
3022
3081
|
app.get("/:email", validateRequest("param", personParamsSchema, "Invalid route parameters."), async (context) => {
|
|
3023
3082
|
const { email } = context.req.valid("param");
|
|
@@ -3126,7 +3185,7 @@ function createPersonalTokenRoutes() {
|
|
|
3126
3185
|
* provider sends the Admin back to the dashboard session that started it.
|
|
3127
3186
|
*/
|
|
3128
3187
|
function callbackUrl(request, provider) {
|
|
3129
|
-
const base = process.env
|
|
3188
|
+
const base = process.env["JUNIOR_BASE_URL"]?.trim() || new URL(request.url).origin;
|
|
3130
3189
|
return new URL(`api/service-accounts/${encodeURIComponent(provider)}/callback`, base.endsWith("/") ? base : `${base}/`).toString();
|
|
3131
3190
|
}
|
|
3132
3191
|
function requirePlugin(provider) {
|
|
@@ -3178,16 +3237,60 @@ function createServiceAccountRoutes() {
|
|
|
3178
3237
|
});
|
|
3179
3238
|
return app;
|
|
3180
3239
|
}
|
|
3240
|
+
// src/api/cache-warming/savings.ts
|
|
3241
|
+
const DAY_MS = 864e5;
|
|
3242
|
+
function savings(stats) {
|
|
3243
|
+
const { historyDays: _, ...totals } = savingsTotals(stats);
|
|
3244
|
+
return totals;
|
|
3245
|
+
}
|
|
3246
|
+
/**
|
|
3247
|
+
* Read what cache warming saved on each of the last `days` UTC days, today
|
|
3248
|
+
* included, and in total. Net savings and effectiveness leave out days filled
|
|
3249
|
+
* from history: history has no warmup calls, so their warmup cost is unknown.
|
|
3250
|
+
*/
|
|
3251
|
+
async function readCacheWarmingSavings(days, nowMs = Date.now()) {
|
|
3252
|
+
const dates = Array.from({ length: days }, (_, index) => (/* @__PURE__ */ new Date(nowMs - (days - 1 - index) * DAY_MS)).toISOString().slice(0, 10));
|
|
3253
|
+
const stats = (await readStats(dates[0], dates.at(-1))).filter((stat) => stat.namespace === SAVINGS_NAMESPACE);
|
|
3254
|
+
const unknownCostDates = new Set(dates.filter((date) => savingsTotals(stats.filter((stat) => stat.date === date)).historyDays > 0));
|
|
3255
|
+
const known = savings(stats.filter((stat) => !unknownCostDates.has(stat.date)));
|
|
3256
|
+
const netSavingsUsd = known.savedUsd - known.warmupCostUsd;
|
|
3257
|
+
return cacheWarmingSavingsReportSchema.parse({
|
|
3258
|
+
days: dates.map((date) => {
|
|
3259
|
+
const day = savings(stats.filter((stat) => stat.date === date));
|
|
3260
|
+
return {
|
|
3261
|
+
date,
|
|
3262
|
+
...day,
|
|
3263
|
+
netSavingsUsd: unknownCostDates.has(date) ? null : day.savedUsd - day.warmupCostUsd
|
|
3264
|
+
};
|
|
3265
|
+
}),
|
|
3266
|
+
totals: {
|
|
3267
|
+
...savings(stats),
|
|
3268
|
+
netSavingsUsd,
|
|
3269
|
+
knownCostOracleSavingsUsd: known.oracleSavingsUsd,
|
|
3270
|
+
effectiveness: known.oracleSavingsUsd > 0 ? netSavingsUsd / known.oracleSavingsUsd : null,
|
|
3271
|
+
unknownCostDays: unknownCostDates.size
|
|
3272
|
+
}
|
|
3273
|
+
});
|
|
3274
|
+
}
|
|
3181
3275
|
// src/api/cache-warming/routes.ts
|
|
3182
3276
|
/**
|
|
3183
|
-
* Create
|
|
3277
|
+
* Create the cache warming routes: its savings for the System page, and
|
|
3278
|
+
* admin-only routes that re-fill the savings from history and show and close
|
|
3279
|
+
* the breakers.
|
|
3184
3280
|
*
|
|
3185
3281
|
* A breaker stops warming for every Conversation, so only a Junior admin can
|
|
3186
|
-
* close one before it closes by itself.
|
|
3282
|
+
* close one before it closes by itself. A re-fill replaces counters that
|
|
3283
|
+
* everyone sees, so only a Junior admin can start one.
|
|
3187
3284
|
*/
|
|
3188
3285
|
function createCacheWarmingRoutes() {
|
|
3189
3286
|
const app = new Hono();
|
|
3190
|
-
app.get("/
|
|
3287
|
+
app.get("/savings", validateRequest("query", cacheWarmingSavingsQuerySchema, "Invalid query parameters."), async (context) => jsonResponse(cacheWarmingSavingsReportSchema, await readCacheWarmingSavings(context.req.valid("query").days)));
|
|
3288
|
+
app.get("/savings/refill", requireAdmin, async () => jsonResponse(cacheWarmingSavingsRefillResponseSchema, { refill: await readSavingsRefill() }));
|
|
3289
|
+
app.post("/savings/refill", requireAdmin, async () => {
|
|
3290
|
+
const { started, refill } = await startSavingsRefill();
|
|
3291
|
+
return jsonResponse(cacheWarmingSavingsRefillResponseSchema, { refill }, { status: started ? 202 : 409 });
|
|
3292
|
+
});
|
|
3293
|
+
app.get("/breakers", requireAdmin, async () => jsonResponse(cacheWarmingBreakerListSchema, { breakers: await breakerStates(await connectedState(), [botConfig.modelId, ...botConfig.refusalFallbackModelId ? [botConfig.refusalFallbackModelId] : []]) }));
|
|
3191
3294
|
app.delete("/breakers/:provider", requireAdmin, validateRequest("param", cacheWarmingBreakerParamsSchema, "Invalid provider."), async (context) => {
|
|
3192
3295
|
const { provider } = context.req.valid("param");
|
|
3193
3296
|
if (!await closeBreaker(await connectedState(), provider)) throwApiError(404, "Breaker not found.");
|
|
@@ -3470,20 +3573,26 @@ function createUserCustomizationRoutes() {
|
|
|
3470
3573
|
// src/api/review-items/routes.ts
|
|
3471
3574
|
const ARCHIVED_LIMIT = 50;
|
|
3472
3575
|
const cursorSchema = z.object({
|
|
3576
|
+
closedAtMs: z.number().int().optional(),
|
|
3473
3577
|
conversationId: z.string().min(1).optional(),
|
|
3474
3578
|
createdAtMs: z.number().int(),
|
|
3475
3579
|
forUserId: z.string().min(1).optional(),
|
|
3476
3580
|
id: z.string().min(1),
|
|
3581
|
+
needsUser: z.boolean().optional(),
|
|
3477
3582
|
query: z.string().min(1).optional(),
|
|
3583
|
+
sort: z.literal("waiting").optional(),
|
|
3584
|
+
status: z.string().min(1).optional(),
|
|
3478
3585
|
version: z.literal(2)
|
|
3479
3586
|
}).strict();
|
|
3480
3587
|
/**
|
|
3481
|
-
* Encode the last
|
|
3588
|
+
* Encode the last item of a page as the cursor of the next page. The
|
|
3482
3589
|
* cursor names its list, so it cannot page through a different list.
|
|
3483
3590
|
*/
|
|
3484
|
-
function encodeCursor(item, filters) {
|
|
3591
|
+
function encodeCursor(item, filters, viewer) {
|
|
3485
3592
|
return Buffer.from(JSON.stringify({
|
|
3486
3593
|
...filters,
|
|
3594
|
+
...filters.status && item.closedAt ? { closedAtMs: item.closedAt.getTime() } : void 0,
|
|
3595
|
+
...filters.sort ? { needsUser: itemNeedsUser(item, viewer.id) } : void 0,
|
|
3487
3596
|
createdAtMs: item.createdAt.getTime(),
|
|
3488
3597
|
id: item.id,
|
|
3489
3598
|
version: 2
|
|
@@ -3493,10 +3602,12 @@ function encodeCursor(item, filters) {
|
|
|
3493
3602
|
function decodeCursor(cursor, filters) {
|
|
3494
3603
|
try {
|
|
3495
3604
|
const parsed = cursorSchema.parse(JSON.parse(Buffer.from(cursor, "base64url").toString("utf8")));
|
|
3496
|
-
if (parsed.conversationId !== filters.conversationId || parsed.forUserId !== filters.forUserId || parsed.query !== filters.query) return;
|
|
3605
|
+
if (parsed.conversationId !== filters.conversationId || parsed.forUserId !== filters.forUserId || parsed.query !== filters.query || parsed.sort !== filters.sort || parsed.status !== filters.status || filters.status !== void 0 && parsed.closedAtMs === void 0 || filters.sort !== void 0 && parsed.needsUser === void 0) return;
|
|
3497
3606
|
return {
|
|
3607
|
+
...parsed.closedAtMs !== void 0 ? { closedAt: new Date(parsed.closedAtMs) } : void 0,
|
|
3498
3608
|
createdAt: new Date(parsed.createdAtMs),
|
|
3499
|
-
id: parsed.id
|
|
3609
|
+
id: parsed.id,
|
|
3610
|
+
...parsed.needsUser !== void 0 ? { needsUser: parsed.needsUser } : void 0
|
|
3500
3611
|
};
|
|
3501
3612
|
} catch {
|
|
3502
3613
|
return;
|
|
@@ -3508,6 +3619,13 @@ const ERROR_STATUS = {
|
|
|
3508
3619
|
invalid: 400,
|
|
3509
3620
|
not_found: 404
|
|
3510
3621
|
};
|
|
3622
|
+
function subjectPayload(subject) {
|
|
3623
|
+
const objectType = subject.url && readLinkObjectType(subject.url);
|
|
3624
|
+
return {
|
|
3625
|
+
...subject,
|
|
3626
|
+
...objectType ? { objectType } : void 0
|
|
3627
|
+
};
|
|
3628
|
+
}
|
|
3511
3629
|
/** Build the API payload of one Review item for its viewer. */
|
|
3512
3630
|
function reviewItemPayload(item, viewer) {
|
|
3513
3631
|
return {
|
|
@@ -3532,7 +3650,7 @@ function reviewItemPayload(item, viewer) {
|
|
|
3532
3650
|
...item.closedAt ? { closedAt: item.closedAt.toISOString() } : void 0,
|
|
3533
3651
|
...item.closedBy ? { closedBy: item.closedBy } : void 0,
|
|
3534
3652
|
...item.request ? { request: item.request } : void 0,
|
|
3535
|
-
...item.subject ? { subject: item.subject } : void 0
|
|
3653
|
+
...item.subject ? { subject: subjectPayload(item.subject) } : void 0
|
|
3536
3654
|
};
|
|
3537
3655
|
}
|
|
3538
3656
|
function actionErrorResponse(error) {
|
|
@@ -3548,35 +3666,87 @@ function createReviewItemRoutes(services) {
|
|
|
3548
3666
|
const filters = {
|
|
3549
3667
|
...query.conversationId ? { conversationId: query.conversationId } : void 0,
|
|
3550
3668
|
...query.for === "viewer" ? { forUserId: viewer.id } : void 0,
|
|
3551
|
-
...query.q ? { query: query.q } : void 0
|
|
3669
|
+
...query.q ? { query: query.q } : void 0,
|
|
3670
|
+
...query.status[0] === "open" ? query.sort ? { sort: query.sort } : void 0 : { status: [...query.status].sort().join(",") }
|
|
3552
3671
|
};
|
|
3553
3672
|
const after = query.cursor ? decodeCursor(query.cursor, filters) : void 0;
|
|
3554
3673
|
if (query.cursor && !after) return jsonResponse(apiErrorSchema, { error: "Invalid review item cursor." }, { status: 400 });
|
|
3555
3674
|
const db = getDb();
|
|
3556
3675
|
const reader = filters.conversationId ? await reviewItemReaderForUserInConversation(viewer, filters.conversationId) : reviewItemReaderForUser(viewer);
|
|
3557
|
-
|
|
3676
|
+
if (filters.status) {
|
|
3677
|
+
const closed = await searchReviewItems(db, reader, {
|
|
3678
|
+
...filters,
|
|
3679
|
+
limit: query.limit + 1,
|
|
3680
|
+
order: "closed",
|
|
3681
|
+
statuses: query.status,
|
|
3682
|
+
...after?.closedAt ? { closedBefore: {
|
|
3683
|
+
closedAt: after.closedAt,
|
|
3684
|
+
id: after.id
|
|
3685
|
+
} } : void 0
|
|
3686
|
+
});
|
|
3687
|
+
const page = closed.slice(0, query.limit);
|
|
3688
|
+
const last = page.at(-1);
|
|
3689
|
+
return jsonResponse(reviewItemListSchema, {
|
|
3690
|
+
items: page.map((item) => reviewItemPayload(item, viewer)),
|
|
3691
|
+
...closed.length > query.limit && last ? { nextCursor: encodeCursor(last, filters, viewer) } : void 0
|
|
3692
|
+
});
|
|
3693
|
+
}
|
|
3694
|
+
const [open, archived] = await Promise.all([searchReviewItems(db, reader, {
|
|
3558
3695
|
...filters,
|
|
3559
3696
|
limit: query.limit + 1,
|
|
3560
|
-
order: "oldest",
|
|
3561
3697
|
statuses: ["open"],
|
|
3562
|
-
...
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3698
|
+
...filters.sort ? {
|
|
3699
|
+
order: { needsUserId: viewer.id },
|
|
3700
|
+
...after ? { afterWaiting: {
|
|
3701
|
+
createdAt: after.createdAt,
|
|
3702
|
+
id: after.id,
|
|
3703
|
+
needsUser: after.needsUser === true
|
|
3704
|
+
} } : void 0
|
|
3705
|
+
} : {
|
|
3706
|
+
order: "oldest",
|
|
3707
|
+
...after ? { after } : void 0
|
|
3708
|
+
}
|
|
3709
|
+
}), (filters.query || query.include === "archived") && !after ? searchReviewItems(db, reader, {
|
|
3567
3710
|
...filters,
|
|
3568
3711
|
limit: 51,
|
|
3569
3712
|
statuses: ["done", "dismissed"]
|
|
3570
|
-
}) : [];
|
|
3713
|
+
}) : []]);
|
|
3714
|
+
const page = open.slice(0, query.limit);
|
|
3715
|
+
const last = page.at(-1);
|
|
3571
3716
|
return jsonResponse(reviewItemListSchema, {
|
|
3572
3717
|
items: [...page, ...archived.slice(0, ARCHIVED_LIMIT)].map((item) => reviewItemPayload(item, viewer)),
|
|
3573
3718
|
...archived.length > ARCHIVED_LIMIT ? { moreArchived: true } : void 0,
|
|
3574
|
-
...open.length > query.limit && last ? { nextCursor: encodeCursor(last, filters) } : void 0
|
|
3719
|
+
...open.length > query.limit && last ? { nextCursor: encodeCursor(last, filters, viewer) } : void 0
|
|
3575
3720
|
});
|
|
3576
3721
|
});
|
|
3577
|
-
app.get("/count", requireViewer, async (context) => {
|
|
3722
|
+
app.get("/count", requireViewer, validateRequest("query", reviewItemCountQuerySchema, "Invalid review item count query."), async (context) => {
|
|
3578
3723
|
const viewer = context.get("viewer");
|
|
3579
|
-
|
|
3724
|
+
const query = context.req.valid("query");
|
|
3725
|
+
const db = getDb();
|
|
3726
|
+
const [subjects, snoozed, automations] = await Promise.all([
|
|
3727
|
+
countReviewItemsNeedingUserBySubject(db, viewer.id),
|
|
3728
|
+
countOpenReviewItemsForUser(db, {
|
|
3729
|
+
...reviewItemReaderForUser(viewer),
|
|
3730
|
+
userId: viewer.id
|
|
3731
|
+
}, query.snoozed),
|
|
3732
|
+
query.include === "automations" ? countOwnedAutomationsNeedingAttention(viewer) : void 0
|
|
3733
|
+
]);
|
|
3734
|
+
const linkTypes = readObjectLinkTypes();
|
|
3735
|
+
let codeChanges = 0;
|
|
3736
|
+
let decisions = 0;
|
|
3737
|
+
let needsViewer = 0;
|
|
3738
|
+
for (const subject of subjects) {
|
|
3739
|
+
needsViewer += subject.total;
|
|
3740
|
+
decisions += subject.decisions;
|
|
3741
|
+
if (subject.subjectUrl && readLinkObjectType(subject.subjectUrl, linkTypes) === "code_change") codeChanges += subject.total;
|
|
3742
|
+
}
|
|
3743
|
+
return jsonResponse(reviewItemCountSchema, {
|
|
3744
|
+
...automations === void 0 ? void 0 : { automations },
|
|
3745
|
+
codeChanges,
|
|
3746
|
+
decisions,
|
|
3747
|
+
needsViewer,
|
|
3748
|
+
snoozed
|
|
3749
|
+
});
|
|
3580
3750
|
});
|
|
3581
3751
|
app.get("/waiting-conversations", requireViewer, async (context) => {
|
|
3582
3752
|
const viewer = context.get("viewer");
|
|
@@ -3711,25 +3881,6 @@ function createWorkspaceRoutes() {
|
|
|
3711
3881
|
});
|
|
3712
3882
|
return app;
|
|
3713
3883
|
}
|
|
3714
|
-
// src/api/reply-times.ts
|
|
3715
|
-
/**
|
|
3716
|
-
* Read the gap list that the cache warming planner reads for each segment.
|
|
3717
|
-
* The lists hold only gap lengths, so the report names no person or
|
|
3718
|
-
* Conversation.
|
|
3719
|
-
*/
|
|
3720
|
-
async function readReplyTimeSegments() {
|
|
3721
|
-
const state = getStateAdapter();
|
|
3722
|
-
await state.connect();
|
|
3723
|
-
const segments = await Promise.all(GAP_SEGMENTS.map(async (segment) => ({
|
|
3724
|
-
histogram: gapHistogramReport(await state.getList(segmentGapsKey(segment))),
|
|
3725
|
-
segment
|
|
3726
|
-
})));
|
|
3727
|
-
return replyTimeSegmentsReportSchema.parse({
|
|
3728
|
-
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
3729
|
-
minSamples: 20,
|
|
3730
|
-
segments
|
|
3731
|
-
});
|
|
3732
|
-
}
|
|
3733
3884
|
// src/api/stats.ts
|
|
3734
3885
|
/** Read the last 90 days of named daily counters. */
|
|
3735
3886
|
async function readStatsReport() {
|
|
@@ -3779,7 +3930,7 @@ function readDescriptionText(home) {
|
|
|
3779
3930
|
}
|
|
3780
3931
|
/** Read discovered skills for runtime diagnostics and the Automation editor. */
|
|
3781
3932
|
async function readSkillReports() {
|
|
3782
|
-
const { discoverSkills } = await import("./skills-
|
|
3933
|
+
const { discoverSkills } = await import("./skills-CNAGH4ju.js").then((n) => n.o);
|
|
3783
3934
|
const skills = await discoverSkills();
|
|
3784
3935
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3785
3936
|
name: skill.name,
|
|
@@ -3793,7 +3944,7 @@ async function readSkillReports() {
|
|
|
3793
3944
|
* what the skill tells Junior. Returns null when no skill has that name.
|
|
3794
3945
|
*/
|
|
3795
3946
|
async function readSkillDetailReport(name) {
|
|
3796
|
-
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-
|
|
3947
|
+
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-CNAGH4ju.js").then((n) => n.o);
|
|
3797
3948
|
const skill = findSkillByName(name, await discoverSkills());
|
|
3798
3949
|
if (!skill) return null;
|
|
3799
3950
|
const parsed = parseSkillFile(await fs.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
@@ -3808,7 +3959,7 @@ async function readSkillDetailReport(name) {
|
|
|
3808
3959
|
}
|
|
3809
3960
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3810
3961
|
async function readPlugins() {
|
|
3811
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3962
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-d1EM6Z0V.js").then((n) => n.t);
|
|
3812
3963
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3813
3964
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3814
3965
|
description: plugin.manifest.description,
|
|
@@ -3819,8 +3970,8 @@ async function readPlugins() {
|
|
|
3819
3970
|
/** Read authenticated runtime discovery data. */
|
|
3820
3971
|
async function readRuntimeInfoReport() {
|
|
3821
3972
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3822
|
-
import("./package-discovery-
|
|
3823
|
-
import("./catalog-runtime-
|
|
3973
|
+
import("./package-discovery-x4AvVhMj.js").then((n) => n.r),
|
|
3974
|
+
import("./catalog-runtime-d1EM6Z0V.js").then((n) => n.t),
|
|
3824
3975
|
readPlugins(),
|
|
3825
3976
|
readSkillReports()
|
|
3826
3977
|
]);
|
|
@@ -3837,7 +3988,7 @@ async function readRuntimeInfoReport() {
|
|
|
3837
3988
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3838
3989
|
async function readPluginOperationalReportFeed() {
|
|
3839
3990
|
const nowMs = Date.now();
|
|
3840
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3991
|
+
const { getPluginOperationalReports } = await import("./projection-DBq8tsA5.js").then((n) => n.er);
|
|
3841
3992
|
return pluginOperationalReportFeedSchema.parse({
|
|
3842
3993
|
source: "plugins",
|
|
3843
3994
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -3859,7 +4010,6 @@ function createJuniorApi(options = {}) {
|
|
|
3859
4010
|
});
|
|
3860
4011
|
app.get("/api/plugin-reports", async () => jsonResponse(pluginOperationalReportFeedSchema, await readPluginOperationalReportFeed()));
|
|
3861
4012
|
app.get("/api/stats", async () => jsonResponse(statsReportSchema, await readStatsReport()));
|
|
3862
|
-
app.get("/api/reply-times", async () => jsonResponse(replyTimeSegmentsReportSchema, await readReplyTimeSegments()));
|
|
3863
4013
|
app.get("/api/versions", requireViewer, validateRequest("query", versionsQuerySchema, "Invalid query parameters."), async (context) => jsonResponse(versionsSchema, await readVersions(context.get("viewer"), context.req.valid("query")), { headers: { "cache-control": "private, no-store" } }));
|
|
3864
4014
|
const queue = options.conversationWorkQueue ?? getVercelConversationWorkQueue();
|
|
3865
4015
|
app.route("/api/conversations", createConversationRoutes({
|
|
@@ -3895,4 +4045,4 @@ function createJuniorApi(options = {}) {
|
|
|
3895
4045
|
});
|
|
3896
4046
|
return app;
|
|
3897
4047
|
}
|
|
3898
|
-
export {
|
|
4048
|
+
export { DEFAULT_USER_SETTINGS, authenticatePersonalToken, createJuniorApi, isAllowedSignInEmail, jsonResponse, readUserSettings, readViewerAvatarUrl, resolveViewerUser, updateUserSettings, updateViewerDisplayName };
|