@sentry/junior 0.276.0 → 0.278.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-DoPR2jS-.js → adapter-BXosqTMx.js} +1 -1
- package/dist/{admin-BJTT-kXb.js → admin-Thn7NfOi.js} +1 -1
- package/dist/{agent-invocations-CUWrrzkc.js → agent-invocations-D7c4BQGc.js} +6 -2
- package/dist/{agent-runner-sMpA5qGM.js → agent-runner-DE-43MPb.js} +396 -877
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +5 -5
- package/dist/api.d.ts +13 -2
- package/dist/api.js +132 -61
- package/dist/{app-DTj-yAQt.d.ts → app-CHNS-AX2.d.ts} +6 -27
- package/dist/app.d.ts +3 -3
- package/dist/app.js +65 -57
- package/dist/{assistant-reply-DbxKnBQF.js → assistant-reply-pauL6qyn.js} +28 -6
- package/dist/{automation-B8_mC68r.js → automation-DphoTRYl.js} +1 -1
- package/dist/{background-compaction-queue-Bywqo1WJ.js → background-compaction-queue-CAL4A2y7.js} +2 -2
- package/dist/{briefs-IL7QnCCR.js → briefs-4fyPJJEu.js} +5 -6
- package/dist/{catalog-runtime--sC2CYLQ.js → catalog-runtime-BoOb5oUv.js} +1 -1
- package/dist/cli/chat.d.ts +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/init.js +0 -2
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.d.ts +1 -1
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +2 -2
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-7diKvInp.js → client-v_OVYuHZ.js} +3 -3
- package/dist/{config-Cb--cuv-.js → config-o2jLRY5J.js} +24 -99
- package/dist/{connections-C4-4fxaE.js → connections-RC4NXAx8.js} +10 -10
- package/dist/{conversation-DppJ83Hw.js → conversation-CZfyQvdm.js} +54 -109
- package/dist/{conversation-privacy-DTwdT3Pi.js → conversation-privacy-C23M8KaD.js} +1 -1
- package/dist/{credential-sync-Sl5RQCkS.js → credential-sync-Dd0WyNfF.js} +13 -13
- package/dist/{db-Ck6TXQIx.d.ts → db-BjLzDJCt.d.ts} +1 -1
- package/dist/{executor-BFKmqxYe.js → executor-CJfsD0VX.js} +13 -5
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-B04X_eCB.js → logging-dFaXvBRK.js} +4 -2
- package/dist/{media-DstkkoNP.js → media-DTAA8Qs_.js} +21 -23
- package/dist/{message-DQMFyyE-.js → message-DSwxIZet.js} +22 -28
- package/dist/nitro.d.ts +2 -2
- package/dist/nitro.js +7 -3
- package/dist/{oauth-callback-server-BGq0_vQI.js → oauth-callback-server-CDcuCp27.js} +2 -2
- package/dist/{plugins-B_0Cr0MO.d.ts → plugins-DtmjkTza.d.ts} +1 -0
- package/dist/{projection-6dXaN0n-.js → projection-BTge9wrH.js} +5426 -5300
- package/dist/{prompt-B4fQKGZR.js → prompt-DDtCnlHP.js} +1 -1
- package/dist/{registry-CEqKR_ld.js → registry-Cp6CNmtP.js} +24 -8
- package/dist/{resolve-8I5DkrfI.js → resolve-B_7h2cXx.js} +3 -3
- package/dist/{result-BgAW90IM.js → result-5LBEfnLX.js} +9 -9
- package/dist/{runner-CSKDr_19.js → runner-C5-S4oq-.js} +11 -11
- package/dist/{sandbox-egress-signals-BxAT276e.js → sandbox-egress-signals-B4GehT1L.js} +1 -1
- package/dist/{schema-Cal-EFdi.js → schema-B5fpczDw.js} +82 -4
- package/dist/{schema-CaUWl2EV.d.ts → schema-Tr484cCC.d.ts} +935 -688
- package/dist/{service-account-CUuVJCKT.js → service-account-BkEv20zf.js} +3 -3
- package/dist/{service-account-CtOab1Xz.js → service-account-Cq_dLrZJ.js} +3 -3
- package/dist/{session-stop-DK8LuPZW.js → session-stop-BsS4qFS2.js} +26 -16
- package/dist/{skills-Bc0D7BGy.js → skills-M0BA0_s6.js} +2 -2
- package/dist/{spawn-DF_GUcd8.js → spawn-BO3y7H4d.js} +2 -3
- package/dist/{stop-DthSy-z8.js → stop-D5R82Wla.js} +612 -186
- package/dist/{store-C5uVTx2G.js → store-BGBzQWNf.js} +9 -16
- package/dist/{store-BgH2P3X9.js → store-CGJZTEVz.js} +3 -3
- package/dist/{task-queue-C6ROM_XJ.js → task-queue-UD27ei2U.js} +3 -3
- package/dist/{task-runner-BwAkjjVE.js → task-runner-noxjOjkM.js} +7 -7
- package/dist/{thread-state-BXjgk1pW.js → thread-state-BSu6rM6p.js} +4 -4
- package/dist/{turn-failure-response-CVI57qKL.js → turn-failure-response-wahwyPrZ.js} +7 -7
- package/dist/{turn-lifecycle-CF6ibonp.js → turn-lifecycle-Bo4Trccw.js} +1 -1
- package/dist/{turn-session-routing-DddybdNu.js → turn-session-routing-DnSaaEpn.js} +10 -10
- package/dist/{validation-BxF1nQbC.js → validation-B9-8iKyw.js} +1 -1
- package/dist/{version-CTzSbCmR.js → version-C7HejFP2.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CQwBszc7.js → viewer-DLXajQZE.js} +94 -28
- package/dist/{work-BHlShEQ6.js → work-DRGSlfia.js} +12 -17
- package/dist/{worker-DhY9MnsH.js → worker-BGh5Dwc6.js} +6 -6
- package/migrations/0074_conversation_participant_pins.sql +1 -0
- package/migrations/0075_conversation_detail_version.sql +1 -0
- package/migrations/0076_conversation_auto_archive.sql +5 -0
- package/migrations/meta/0074_snapshot.json +4076 -0
- package/migrations/meta/0075_snapshot.json +4083 -0
- package/migrations/meta/0076_snapshot.json +4147 -0
- package/migrations/meta/_journal.json +21 -0
- package/package.json +5 -5
- package/dist/model-profile-B998sjVd.js +0 -67
package/dist/app.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as restoreRuntimeConfig, f as setBotModelConfig,
|
|
3
|
-
import {
|
|
1
|
+
import { Ar as takeDueTimerWatches, C as settleConversationTitleWork, Cn as setExperimentalFeatures, Cr as collectEventMatchKeys, Ct as isInvalidConversationRecordError, Di as openSlackModal, Dr as findMatchingWatches, Fr as verifyScheduledAutomationCredentialSubject, Gi as getWorkspaceTeamId, Gr as createPluginState, Hn as setBriefsConfig, Hr as getDashboardTaskLink, Ir as verifySlackDirectCredentialSubject, Ki as runWithWorkspaceTeamId, Kn as dismissOpenReviewItems, Ln as getPlugins, Mn as getPluginRoutes, Mr as bindScheduledAutomationCredentialSubject, Ni as slackEntitySchema, Nr as bindSlackDirectCredentialSubject, Oi as postSlackEphemeralMessage, Pi as slackExternalRefIdSchema, Pr as verifyEventAutomationCredentialSubject, Qn as searchReviewItems, Rn as setPlugins, Sn as isExperimentalFeatureEnabled, Ur as setDashboardConversationLinkOptions, Vi as isDmChannel, Vr as getDashboardReviewItemLink, Wa as readConversationEventPage, _ as appendConversationMessages, _o as setConfigDefaults, aa as parseSandboxEgressCredentialToken, at as CONVERSATION_WORK_STALE_ENQUEUE_MS, b as projectConversationMessages, co as createPluginCache, di as proxyVercelSandboxEgressRequest, dn as SubscribedReplyReason, eo as resolveRootVisibility, go as getConfigDefaults, ha as createPluginEmbedder, hi as resolveBaseUrl, ja as readConversationAccessFromSql, jn as getPluginApiRoutes, jr as bindEventAutomationCredentialSubject, ka as createPluginLogger, la as normalizeSandboxEgressTracePropagationDomains, mn as getThreadStopDecision, na as consumeSandboxEgressAuthRequiredSignal, nr as canActOnReviewItem, ra as consumeSandboxEgressPermissionDeniedSignal, ro as listConversationAnnotations, ta as clearSandboxEgressSignals, ui as isVercelSandboxEgressRequest, ur as reviewItemReaderForUser, wn as createUserTokenStore, xi as slackMention, xn as getExperimentalFeatures, xt as hasRunnableConversationWork, zi as getSlackClient, zn as validatePlugins, zr as getDashboardConversationLink } from "./projection-BTge9wrH.js";
|
|
2
|
+
import { d as restoreRuntimeConfig, f as setBotModelConfig, h as snapshotRuntimeConfig, i as getChatConfig, m as setSlackReactionConfig, n as botConfig, o as getSlackBotToken, p as setRuntimeLimits, u as resetRuntimeConfig } from "./config-o2jLRY5J.js";
|
|
3
|
+
import { E as withSpan, I as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, N as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, T as withLogContext, U as normalizeIdentityEmail, V as GOOGLE_IDENTITY_PROVIDER, b as setSpanAttributes, h as logWarn, k as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-dFaXvBRK.js";
|
|
4
4
|
import { n as captureMessage } from "./sentry-MDkYAVPV.js";
|
|
5
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-C7HejFP2.js";
|
|
6
6
|
import { _ as slackMessageTsSchema, f as parseSlackTeamId, g as slackMessageTsFromMs, h as parseSlackMessageTs, m as slackChannelIdSchema, n as createSlackActor, p as parseSlackUserId, s as parseActorUserId, u as parseSlackChannelId } from "./actor-B4DYygOB.js";
|
|
7
|
-
import { C as getSqlExecutor,
|
|
8
|
-
import { a as juniorAgentInvocations, d as juniorDestinations, i as juniorAgentBindings, s as juniorConversations } from "./agent-invocations-
|
|
9
|
-
import { _ as juniorConversationBriefs, b as juniorConversationEvents, c as juniorReviewItems, d as juniorAutomations, l as juniorAutomationRuns } from "./executor-
|
|
10
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime
|
|
11
|
-
import { $ as readViewerAutomations, A as runWithSlackInstallation, B as logScheduledAutomationRunSkipped, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, Dt as processWorkspaceSnapshotJob, E as buildSlackReviewItemModal, L as joinPublicChannel, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as ingestEvent, S as createSlackReviewItemShow, V as scheduledAutomationRunAttributes, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, _ as readPublicArtifact, _t as requestAttachmentDeletion, at as reviewItemChangeRecord, bt as stopConversationSession, ct as conversationTurnIdForMessage, dt as recordWebConversationActivity, ft as webActorFromUser, g as publicArtifactHeaders, ht as collectAttachmentGarbage, it as renderReviewItemMessage, j as verifySlackSignature, k as parseSlackUserInputSubmission, n as executeAgentRun, q as ViewerTaskNotFoundError, r as processBackgroundCompaction, rt as deliverReviewItemChange, st as appendAndEnqueueWebMessage, t as createAgentRunner, tt as effectiveTaskOutcomes, v as unpublishedArtifactHeaders, w as syncReviewItemSlackCards, xt as recordSubagentEnded, y as lookupSlackUserProfile } from "./agent-runner-
|
|
7
|
+
import { C as getSqlExecutor, H as recordGoogleSignIn, I as resolveActorIdentityId, M as withConversationMutationLock, S as getDb, Y as touchConversationDetail, _ as closeDb, g as createCache, i as readActorIdentity, k as withConversationEventLock, l as resolveViewerUser, p as parseAvatarUrl, x as getConversationStore, y as getConversationEventStore } from "./viewer-DLXajQZE.js";
|
|
8
|
+
import { a as juniorAgentInvocations, d as juniorDestinations, i as juniorAgentBindings, s as juniorConversations } from "./agent-invocations-D7c4BQGc.js";
|
|
9
|
+
import { _ as juniorConversationBriefs, b as juniorConversationEvents, c as juniorReviewItems, d as juniorAutomations, l as juniorAutomationRuns } from "./executor-CJfsD0VX.js";
|
|
10
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BoOb5oUv.js";
|
|
11
|
+
import { $ as readViewerAutomations, A as runWithSlackInstallation, B as logScheduledAutomationRunSkipped, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, Dt as processWorkspaceSnapshotJob, E as buildSlackReviewItemModal, L as joinPublicChannel, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as ingestEvent, S as createSlackReviewItemShow, V as scheduledAutomationRunAttributes, Y as readViewerAutomationExecutions, Z as readViewerAutomationSummary, _ as readPublicArtifact, _t as requestAttachmentDeletion, at as reviewItemChangeRecord, bt as stopConversationSession, ct as conversationTurnIdForMessage, dt as recordWebConversationActivity, ft as webActorFromUser, g as publicArtifactHeaders, ht as collectAttachmentGarbage, it as renderReviewItemMessage, j as verifySlackSignature, k as parseSlackUserInputSubmission, n as executeAgentRun, q as ViewerTaskNotFoundError, r as processBackgroundCompaction, rt as deliverReviewItemChange, st as appendAndEnqueueWebMessage, t as createAgentRunner, tt as effectiveTaskOutcomes, v as unpublishedArtifactHeaders, w as syncReviewItemSlackCards, xt as recordSubagentEnded, y as lookupSlackUserProfile } from "./agent-runner-DE-43MPb.js";
|
|
12
12
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
13
|
-
import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-
|
|
13
|
+
import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-BXosqTMx.js";
|
|
14
14
|
import { n as getNextRunAtMs } from "./cadence-R7Em4RjE.js";
|
|
15
|
-
import {
|
|
16
|
-
import { S as listPendingAgentInvocationResults, x as listPendingAgentInvocationMailboxAppends } from "./store-
|
|
17
|
-
import { A as renderSlackObjectCard, T as renderTaskInput, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-
|
|
15
|
+
import { H as conversationBriefSchema, b as conversationSurfaceSchema, f as conversationFeedQuerySchema, k as annotationCard, v as conversationReportStatusSchema } from "./conversation-CZfyQvdm.js";
|
|
16
|
+
import { S as listPendingAgentInvocationResults, x as listPendingAgentInvocationMailboxAppends } from "./store-BGBzQWNf.js";
|
|
17
|
+
import { A as renderSlackObjectCard, T as renderTaskInput, d as getEventCatalog, f as SLACK_EVENT_NAMESPACE, g as slackChannelMessageRunsAutomation, h as slackChannelMessageReplyThreadTs, m as slackChannelMessageEvent } from "./session-stop-BsS4qFS2.js";
|
|
18
18
|
import { h as buttonUserInputField } from "./reporting-window-DgHgwQB3.js";
|
|
19
|
-
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-
|
|
20
|
-
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, b as isConversationQueueMessageRejectedError, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, h as getQueueProvider, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, y as conversationQueueMessageSchema } from "./background-compaction-queue-
|
|
21
|
-
import { S as removeActiveConversation, _ as hasRunnableConversationWork$1, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-
|
|
22
|
-
import { B as readScheduledAutomation, G as blockEventAutomation, H as saveScheduledAutomationInLock, K as collectEventAutomationMatchKeys, M as recordAutomationExecution, R as listScheduledAutomationsForTeam, S as existingConversationId, U as scheduledRunId, W as withScheduledAutomationLock, Y as findMatchingEventAutomations, a as confirmDispatchMailboxAppend, b as notifyAutomationBlocked, f as getPluginDispatchProjection, ht as eventGuidance, it as automationVersionOf, m as listPendingDispatchMailboxAppends, nt as eventAutomationRunLimitReason, o as createOrGetDispatch, p as isTerminalDispatchStatus, r as buildDispatchId, s as getDispatchConversationId, tt as admitEventAutomationRun, u as getDispatchRecord, v as markDispatchFailed } from "./turn-session-routing-
|
|
23
|
-
import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-
|
|
24
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
19
|
+
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-B_7h2cXx.js";
|
|
20
|
+
import { a as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, b as isConversationQueueMessageRejectedError, c as verifyWorkspaceSnapshotJobMessage, d as verifyConversationQueueMessage, h as getQueueProvider, i as verifyBackgroundCompactionMessage, l as getVercelConversationWorkQueue, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as resolveConversationWorkQueueTopic, y as conversationQueueMessageSchema } from "./background-compaction-queue-CAL4A2y7.js";
|
|
21
|
+
import { S as removeActiveConversation, _ as hasRunnableConversationWork$1, c as clearExpiredConversationLease, g as getConversationWorkState, h as getConversation, m as ensureConversationWake, r as appendAndEnqueueInboundMessage, v as listActiveConversationIds } from "./store-CGJZTEVz.js";
|
|
22
|
+
import { B as readScheduledAutomation, G as blockEventAutomation, H as saveScheduledAutomationInLock, K as collectEventAutomationMatchKeys, M as recordAutomationExecution, R as listScheduledAutomationsForTeam, S as existingConversationId, U as scheduledRunId, W as withScheduledAutomationLock, Y as findMatchingEventAutomations, a as confirmDispatchMailboxAppend, b as notifyAutomationBlocked, f as getPluginDispatchProjection, ht as eventGuidance, it as automationVersionOf, m as listPendingDispatchMailboxAppends, nt as eventAutomationRunLimitReason, o as createOrGetDispatch, p as isTerminalDispatchStatus, r as buildDispatchId, s as getDispatchConversationId, tt as admitEventAutomationRun, u as getDispatchRecord, v as markDispatchFailed } from "./turn-session-routing-DnSaaEpn.js";
|
|
23
|
+
import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-DphoTRYl.js";
|
|
24
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-B9-8iKyw.js";
|
|
25
25
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-DOm9Y6qI.js";
|
|
26
|
-
import { A as
|
|
27
|
-
import { n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId } from "./result-
|
|
28
|
-
import { i as enqueueAgentInvocation, r as endAgentInvocationsOfStoppedWork } from "./work-
|
|
29
|
-
import { o as coerceThreadConversationState } from "./thread-state-
|
|
30
|
-
import { o as unlinkProvider } from "./connections-
|
|
31
|
-
import { a as GET$
|
|
32
|
-
import { a as pluginTaskQueueConsumer, c as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-
|
|
33
|
-
import { t as processConversationWork } from "./worker-
|
|
34
|
-
import { t as bindMessageAgent } from "./message-
|
|
35
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
36
|
-
import { t as processPluginTask } from "./task-runner-
|
|
26
|
+
import { A as recordSkippedConversationMessage, B as startProcessingReaction, C as getProductionSlackAdapter, D as isAllowedSignInEmail, E as isAllowedDomain, F as normalizeIncomingSlackThreadId, G as closeReviewItemsAnsweredByReply, H as parseContent, I as withNormalizedThreadId, K as readReviewItemForUser, L as stopConversationTurn, M as clearSlackPendingReactions, N as isSlackMessageStopped, O as readEnvList, P as stopSlackThread, Q as runAutoArchiveSweep, R as THREAD_OPTOUT_ACK, S as createProductionSlackWebhookServices, T as assertNoLegacyAllowedDomains, U as ReviewItemActionError, V as stripLeadingBotMention, W as actOnReviewItem, b as archiveConversation, d as readConversationRecordFromSql, it as getAttachmentStorage, j as buildSlackInboundMessage, k as resolveAllowedDomains, n as readConversationDetail, ot as enqueueAgentDispatch, q as reviewItemChange, st as GET$4, t as stopConversationTurnForViewer, u as readConversationFeed, v as decodeConversationCursor, w as createSlackWebApiStatusSender, x as createProductionConversationWorkOptions, y as encodeConversationCursor, z as bindMessageAuthorIdentityId } from "./stop-D5R82Wla.js";
|
|
27
|
+
import { n as enqueueAgentInvocationResult, o as getAuthPausedConversationTurnId } from "./result-5LBEfnLX.js";
|
|
28
|
+
import { i as enqueueAgentInvocation, r as endAgentInvocationsOfStoppedWork } from "./work-DRGSlfia.js";
|
|
29
|
+
import { o as coerceThreadConversationState } from "./thread-state-BSu6rM6p.js";
|
|
30
|
+
import { o as unlinkProvider } from "./connections-RC4NXAx8.js";
|
|
31
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-Dd0WyNfF.js";
|
|
32
|
+
import { a as pluginTaskQueueConsumer, c as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer } from "./task-queue-UD27ei2U.js";
|
|
33
|
+
import { t as processConversationWork } from "./worker-BGh5Dwc6.js";
|
|
34
|
+
import { t as bindMessageAgent } from "./message-DSwxIZet.js";
|
|
35
|
+
import { t as bindSpawnAgent } from "./spawn-BO3y7H4d.js";
|
|
36
|
+
import { t as processPluginTask } from "./task-runner-noxjOjkM.js";
|
|
37
37
|
import { createRequire } from "node:module";
|
|
38
38
|
import { Hono } from "hono";
|
|
39
39
|
import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -44,12 +44,12 @@ import { pathToFileURL } from "node:url";
|
|
|
44
44
|
import net from "node:net";
|
|
45
45
|
import { decodeJwt } from "jose";
|
|
46
46
|
import https from "node:https";
|
|
47
|
+
import { HTTPException } from "hono/http-exception";
|
|
47
48
|
import { Message, ThreadImpl } from "chat";
|
|
48
49
|
import * as acp from "@agentclientprotocol/sdk";
|
|
49
50
|
import dns from "node:dns";
|
|
50
51
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
51
52
|
import { WebStandardStreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/webStandardStreamableHttp.js";
|
|
52
|
-
import { HTTPException } from "hono/http-exception";
|
|
53
53
|
import { bodyLimit } from "hono/body-limit";
|
|
54
54
|
import { createAuthMiddleware } from "better-auth/api";
|
|
55
55
|
import { betterAuth } from "better-auth/minimal";
|
|
@@ -1142,12 +1142,13 @@ async function runHeartbeat(args) {
|
|
|
1142
1142
|
nowMs: args.nowMs
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
|
-
// src/handlers/
|
|
1146
|
-
function
|
|
1145
|
+
// src/handlers/scheduler-auth.ts
|
|
1146
|
+
function getSchedulerSecret() {
|
|
1147
1147
|
return process.env.JUNIOR_SCHEDULER_SECRET?.trim() || process.env.CRON_SECRET?.trim();
|
|
1148
1148
|
}
|
|
1149
|
-
|
|
1150
|
-
|
|
1149
|
+
/** Check the bearer secret that internal cron requests must send. */
|
|
1150
|
+
function verifySchedulerRequest(request) {
|
|
1151
|
+
const secret = getSchedulerSecret();
|
|
1151
1152
|
if (!secret) return false;
|
|
1152
1153
|
const authorization = request.headers.get("authorization")?.trim();
|
|
1153
1154
|
if (!authorization?.startsWith("Bearer ")) return false;
|
|
@@ -1155,9 +1156,10 @@ function verifyHeartbeatRequest(request) {
|
|
|
1155
1156
|
const expected = Buffer.from(secret);
|
|
1156
1157
|
return actual.length === expected.length && timingSafeEqual(actual, expected);
|
|
1157
1158
|
}
|
|
1159
|
+
// src/handlers/heartbeat.ts
|
|
1158
1160
|
/** Handle the authenticated internal heartbeat. */
|
|
1159
|
-
async function GET$
|
|
1160
|
-
if (!
|
|
1161
|
+
async function GET$3(request, waitUntil, options = {}) {
|
|
1162
|
+
if (!verifySchedulerRequest(request)) return new Response("Unauthorized", { status: 401 });
|
|
1161
1163
|
const nowMs = Date.now();
|
|
1162
1164
|
waitUntil(() => runHeartbeat({
|
|
1163
1165
|
conversationWorkQueue: options.conversationWorkQueue,
|
|
@@ -1344,6 +1346,7 @@ async function purgeConversationTree(executor, args) {
|
|
|
1344
1346
|
actor: null
|
|
1345
1347
|
} : void 0
|
|
1346
1348
|
}).where(inArray(juniorConversations.conversationId, ids));
|
|
1349
|
+
await touchConversationDetail(executor.db(), ids);
|
|
1347
1350
|
return {
|
|
1348
1351
|
purged: true,
|
|
1349
1352
|
conversations: ids.length
|
|
@@ -1428,25 +1431,13 @@ async function runRetentionPurge(executor, args) {
|
|
|
1428
1431
|
};
|
|
1429
1432
|
}
|
|
1430
1433
|
// src/handlers/retention.ts
|
|
1431
|
-
function getRetentionSecret() {
|
|
1432
|
-
return process.env.JUNIOR_SCHEDULER_SECRET?.trim() || process.env.CRON_SECRET?.trim();
|
|
1433
|
-
}
|
|
1434
|
-
function verifyRetentionRequest(request) {
|
|
1435
|
-
const secret = getRetentionSecret();
|
|
1436
|
-
if (!secret) return false;
|
|
1437
|
-
const authorization = request.headers.get("authorization")?.trim();
|
|
1438
|
-
if (!authorization?.startsWith("Bearer ")) return false;
|
|
1439
|
-
const actual = Buffer.from(authorization.slice(7));
|
|
1440
|
-
const expected = Buffer.from(secret);
|
|
1441
|
-
return actual.length === expected.length && timingSafeEqual(actual, expected);
|
|
1442
|
-
}
|
|
1443
1434
|
/**
|
|
1444
1435
|
* Handle the authenticated internal retention cron. One request runs a single
|
|
1445
1436
|
* bounded purge batch and returns its counts. Failures are contained here so
|
|
1446
1437
|
* retention can never affect task execution, heartbeat recovery, or delivery.
|
|
1447
1438
|
*/
|
|
1448
|
-
async function GET$
|
|
1449
|
-
if (!
|
|
1439
|
+
async function GET$2(request, options = {}) {
|
|
1440
|
+
if (!verifySchedulerRequest(request)) return new Response("Unauthorized", { status: 401 });
|
|
1450
1441
|
try {
|
|
1451
1442
|
const result = await runRetentionPurge(getSqlExecutor(), {
|
|
1452
1443
|
attachmentStorage: options.attachmentStorage ?? getAttachmentStorage(),
|
|
@@ -1458,6 +1449,21 @@ async function GET$1(request, options = {}) {
|
|
|
1458
1449
|
return new Response("Retention purge failed", { status: 500 });
|
|
1459
1450
|
}
|
|
1460
1451
|
}
|
|
1452
|
+
// src/handlers/auto-archive.ts
|
|
1453
|
+
/**
|
|
1454
|
+
* Handle the authenticated auto-archive cron. One request runs one bounded
|
|
1455
|
+
* sweep. Failures stay here so archive state never affects task execution.
|
|
1456
|
+
*/
|
|
1457
|
+
async function GET$1(request) {
|
|
1458
|
+
if (!verifySchedulerRequest(request)) return new Response("Unauthorized", { status: 401 });
|
|
1459
|
+
try {
|
|
1460
|
+
const result = await runAutoArchiveSweep({ nowMs: Date.now() });
|
|
1461
|
+
return Response.json(result, { status: 200 });
|
|
1462
|
+
} catch (error) {
|
|
1463
|
+
logException(error, "auto_archive.run.failed");
|
|
1464
|
+
return new Response("Auto-archive failed", { status: 500 });
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1461
1467
|
// src/handlers/sandbox-egress-proxy.ts
|
|
1462
1468
|
/** Handles Vercel Sandbox firewall egress proxy requests. */
|
|
1463
1469
|
async function ALL(request, options = {}) {
|
|
@@ -7285,7 +7291,6 @@ async function createApp(options) {
|
|
|
7285
7291
|
setConfigDefaults(options?.configDefaults);
|
|
7286
7292
|
warnUnregisteredConfigDefaults(options?.configDefaults);
|
|
7287
7293
|
resetRuntimeConfig(virtualConfig?.functionMaxDurationSeconds);
|
|
7288
|
-
if (options?.profiles || options?.defaultProfile) setProfiles(options.profiles, options.defaultProfile);
|
|
7289
7294
|
setBotModelConfig(options ?? {});
|
|
7290
7295
|
setRuntimeLimits(options?.limits);
|
|
7291
7296
|
setSlackReactionConfig(options?.slack ?? {});
|
|
@@ -7457,17 +7462,17 @@ async function createApp(options) {
|
|
|
7457
7462
|
createDashboardApp: virtualConfig?.createDashboardApp,
|
|
7458
7463
|
pluginRoutes: pluginApiRoutes
|
|
7459
7464
|
}));
|
|
7460
|
-
app.get("/", () => GET$
|
|
7461
|
-
app.get("/health", () => GET$
|
|
7465
|
+
app.get("/", () => GET$4());
|
|
7466
|
+
app.get("/health", () => GET$4());
|
|
7462
7467
|
app.get("/public/artifacts/:filename", (c) => publicArtifactGET({
|
|
7463
7468
|
filename: c.req.param("filename"),
|
|
7464
7469
|
storage: attachmentStorage
|
|
7465
7470
|
}));
|
|
7466
7471
|
app.get("/api/oauth/callback/mcp/:provider", (c) => {
|
|
7467
|
-
return GET$
|
|
7472
|
+
return GET$5(c.req.raw, c.req.param("provider"), waitUntil, { conversationWorkQueue });
|
|
7468
7473
|
});
|
|
7469
7474
|
app.get("/api/oauth/callback/:provider", (c) => {
|
|
7470
|
-
return GET$
|
|
7475
|
+
return GET$6(c.req.raw, c.req.param("provider"), waitUntil, { conversationWorkQueue });
|
|
7471
7476
|
});
|
|
7472
7477
|
app.get("/api/internal/sandbox-egress/signals", (c) => {
|
|
7473
7478
|
return GET(c.req.raw);
|
|
@@ -7505,9 +7510,12 @@ async function createApp(options) {
|
|
|
7505
7510
|
return backgroundCompactionPOST(c.req.raw);
|
|
7506
7511
|
});
|
|
7507
7512
|
app.get("/api/internal/heartbeat", (c) => {
|
|
7508
|
-
return GET$
|
|
7513
|
+
return GET$3(c.req.raw, waitUntil, { conversationWorkQueue });
|
|
7509
7514
|
});
|
|
7510
7515
|
app.get("/api/internal/retention", (c) => {
|
|
7516
|
+
return GET$2(c.req.raw);
|
|
7517
|
+
});
|
|
7518
|
+
app.get(JUNIOR_AUTO_ARCHIVE_ROUTE, (c) => {
|
|
7511
7519
|
return GET$1(c.req.raw);
|
|
7512
7520
|
});
|
|
7513
7521
|
app.post("/api/webhooks/slack", (c) => {
|
|
@@ -1,12 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Wt as extractAssistantText } from "./projection-BTge9wrH.js";
|
|
2
2
|
// src/chat/no-reply.ts
|
|
3
3
|
const NO_REPLY_MARKER = "[[NO_REPLY]]";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* Trailing marker for a Quiet message: an Event Turn reply that Junior stores
|
|
6
|
+
* but does not deliver to the Location.
|
|
7
|
+
*/
|
|
8
|
+
const QUIET_MARKER = "[[QUIET]]";
|
|
9
|
+
/**
|
|
10
|
+
* True when one assistant message ends with the silence marker, or is only
|
|
11
|
+
* the quiet marker. Mid-sentence mentions do not match. Detection is per
|
|
12
|
+
* message only.
|
|
7
13
|
*/
|
|
8
14
|
function isNoReplyMarker(text) {
|
|
9
|
-
|
|
15
|
+
const trimmed = text.trim();
|
|
16
|
+
return trimmed.endsWith("[[NO_REPLY]]") || trimmed === "[[QUIET]]";
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Return the text before a trailing quiet marker, or undefined when the text
|
|
20
|
+
* does not end with one. Mid-sentence mentions do not match.
|
|
21
|
+
*/
|
|
22
|
+
function stripQuietMarker(text) {
|
|
23
|
+
const trimmed = text.trimEnd();
|
|
24
|
+
if (!trimmed.endsWith("[[QUIET]]")) return void 0;
|
|
25
|
+
return trimmed.slice(0, -9).trimEnd();
|
|
10
26
|
}
|
|
11
27
|
// src/chat/services/assistant-reply.ts
|
|
12
28
|
const THINKING_XML_BLOCK_PATTERN = /[ \t]*<thinking\b[^>]*>[\s\S]*?<\/thinking>[ \t]*(?:\r?\n)?/gi;
|
|
@@ -30,14 +46,20 @@ function decideReply(message) {
|
|
|
30
46
|
const text = sanitizeAssistantText(extractAssistantText(message));
|
|
31
47
|
if (!text) return { kind: "empty" };
|
|
32
48
|
if (isNoReplyMarker(text)) return { kind: "suppress" };
|
|
33
|
-
|
|
49
|
+
const quietText = stripQuietMarker(text);
|
|
50
|
+
if (quietText === void 0) return {
|
|
34
51
|
kind: "deliver",
|
|
35
52
|
text
|
|
36
53
|
};
|
|
54
|
+
return {
|
|
55
|
+
kind: "deliver",
|
|
56
|
+
text: quietText,
|
|
57
|
+
quiet: true
|
|
58
|
+
};
|
|
37
59
|
}
|
|
38
60
|
/** Return destination-visible reply text when the message is deliverable. */
|
|
39
61
|
function getAssistantReplyText(message) {
|
|
40
62
|
const decision = decideReply(message);
|
|
41
63
|
return decision.kind === "deliver" ? decision.text : void 0;
|
|
42
64
|
}
|
|
43
|
-
export {
|
|
65
|
+
export { QUIET_MARKER as a, NO_REPLY_MARKER as i, getAssistantReplyText as n, isNoReplyMarker as o, sanitizeAssistantText as r, decideReply as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as resolveLocalScheduleAtMs, i as isValidTimeZone, r as getZonedDateTimeParts, t as getFirstRunAtMs } from "./cadence-R7Em4RjE.js";
|
|
2
|
-
import {
|
|
2
|
+
import { r as actorIdentitySchema } from "./conversation-CZfyQvdm.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { actorUserIdSchema, destinationVisibilitySchema, eventMatchFieldsSchema, eventMatchSchema, eventReachSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
5
5
|
// src/chat/scheduled-automations/schedule-intent.ts
|
package/dist/{background-compaction-queue-Bywqo1WJ.js → background-compaction-queue-CAL4A2y7.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { E as withSpan, m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { i as getChatConfig } from "./config-o2jLRY5J.js";
|
|
2
|
+
import { E as withSpan, m as logInfo, p as logException } from "./logging-dFaXvBRK.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
5
5
|
import { z } from "zod";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { i as completeObject } from "./client-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-B4fQKGZR.js";
|
|
1
|
+
import { i as completeObject } from "./client-v_OVYuHZ.js";
|
|
2
|
+
import { U as parseBriefInput, c as conversationDetailReportSchema, u as conversationEventPageSchema, z as briefCodeChangeSchema } from "./conversation-CZfyQvdm.js";
|
|
3
|
+
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-DDtCnlHP.js";
|
|
5
4
|
import { CLI_USAGE } from "./cli/run.js";
|
|
6
5
|
import path from "node:path";
|
|
7
6
|
import { z } from "zod";
|
|
@@ -267,8 +266,8 @@ async function parseRunOptions(argv) {
|
|
|
267
266
|
* `DATABASE_URL` at import, and `briefs pull` must work with only a token.
|
|
268
267
|
*/
|
|
269
268
|
async function configuredDefaultModelId() {
|
|
270
|
-
const { botConfig } = await import("./config-
|
|
271
|
-
return
|
|
269
|
+
const { botConfig } = await import("./config-o2jLRY5J.js").then((n) => n.r);
|
|
270
|
+
return botConfig.modelId;
|
|
272
271
|
}
|
|
273
272
|
function apiUrl(baseUrl, pathname) {
|
|
274
273
|
const base = new URL(baseUrl);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-nwUcYXjP.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-Cp6CNmtP.js";
|
|
3
3
|
// src/chat/plugins/catalog-runtime.ts
|
|
4
4
|
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
5
|
const pluginCatalogRuntime = createPluginCatalogRuntime();
|
package/dist/cli/chat.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as JuniorPluginSet } from "../plugins-
|
|
1
|
+
import { n as JuniorPluginSet } from "../plugins-DtmjkTza.js";
|
|
2
2
|
export declare const CHAT_USAGE = "usage: junior chat\n junior chat -p <message>";
|
|
3
3
|
export type ChatCommandOptions = {
|
|
4
4
|
mode: "interactive";
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-
|
|
1
|
+
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-DE-43MPb.js";
|
|
2
2
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
@@ -99,10 +99,10 @@ async function loadLocalPluginSet() {
|
|
|
99
99
|
async function configureLocalChatPlugins(pluginSet) {
|
|
100
100
|
const [pluginsModule, agentHooksModule, catalogRuntimeModule, validationModule, databaseModule] = await Promise.all([
|
|
101
101
|
import("../plugins-DOm9Y6qI.js").then((n) => n.o),
|
|
102
|
-
import("../projection-
|
|
103
|
-
import("../catalog-runtime
|
|
104
|
-
import("../validation-
|
|
105
|
-
import("../viewer-
|
|
102
|
+
import("../projection-BTge9wrH.js").then((n) => n.kn),
|
|
103
|
+
import("../catalog-runtime-BoOb5oUv.js").then((n) => n.t),
|
|
104
|
+
import("../validation-B9-8iKyw.js").then((n) => n.r),
|
|
105
|
+
import("../viewer-DLXajQZE.js").then((n) => n.v)
|
|
106
106
|
]);
|
|
107
107
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
108
108
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -152,18 +152,18 @@ function localDevServerUrl() {
|
|
|
152
152
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
153
153
|
defaultStateAdapterForLocalChat();
|
|
154
154
|
await configureLocalChatPlugins(pluginSet);
|
|
155
|
-
const { setBriefsConfig } = await import("../projection-
|
|
155
|
+
const { setBriefsConfig } = await import("../projection-BTge9wrH.js").then((n) => n.Vn);
|
|
156
156
|
setBriefsConfig({ enabled: true });
|
|
157
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
158
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
157
|
+
const { runLocalAgentTurn } = await import("../runner-C5-S4oq-.js");
|
|
158
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-CDcuCp27.js");
|
|
159
159
|
const { createLocalOAuthState } = await import("../oauth-relay-C6ZAyJgf.js").then((n) => n.t);
|
|
160
|
-
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-
|
|
161
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
162
|
-
const { bindMessageAgent } = await import("../message-
|
|
163
|
-
const { createChildConversationWorker } = await import("../result-
|
|
164
|
-
const { skipInputBeforeConversationStop } = await import("../session-stop-
|
|
160
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-B4GehT1L.js");
|
|
161
|
+
const { bindSpawnAgent } = await import("../spawn-BO3y7H4d.js").then((n) => n.n);
|
|
162
|
+
const { bindMessageAgent } = await import("../message-DSwxIZet.js").then((n) => n.n);
|
|
163
|
+
const { createChildConversationWorker } = await import("../result-5LBEfnLX.js").then((n) => n.i);
|
|
164
|
+
const { skipInputBeforeConversationStop } = await import("../session-stop-BsS4qFS2.js").then((n) => n.r);
|
|
165
165
|
const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
|
|
166
|
-
const { processConversationWork } = await import("../worker-
|
|
166
|
+
const { processConversationWork } = await import("../worker-BGh5Dwc6.js").then((n) => n.n);
|
|
167
167
|
let agentRunner;
|
|
168
168
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
169
169
|
if (!agentRunner) throw new Error("Local agent runner is not ready");
|
package/dist/cli/check.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-
|
|
3
|
-
import { i as parseSkillFile } from "../skills-
|
|
1
|
+
import { A as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, L as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, M as JUNIOR_HEARTBEAT_ROUTE } from "../logging-dFaXvBRK.js";
|
|
2
|
+
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-Cp6CNmtP.js";
|
|
3
|
+
import { i as parseSkillFile } from "../skills-M0BA0_s6.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
package/dist/cli/init.js
CHANGED
package/dist/cli/main.js
CHANGED
|
@@ -25,13 +25,13 @@ async function runChat(argv, pluginSet) {
|
|
|
25
25
|
return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
|
|
26
26
|
}
|
|
27
27
|
async function runAdmin(argv) {
|
|
28
|
-
return await (await import("../admin-
|
|
28
|
+
return await (await import("../admin-Thn7NfOi.js")).runAdmin(argv);
|
|
29
29
|
}
|
|
30
30
|
async function runServiceAccount(argv) {
|
|
31
|
-
return await (await import("../service-account-
|
|
31
|
+
return await (await import("../service-account-Cq_dLrZJ.js")).runServiceAccount(argv);
|
|
32
32
|
}
|
|
33
33
|
async function runBriefs(argv) {
|
|
34
|
-
return await (await import("../briefs-
|
|
34
|
+
return await (await import("../briefs-4fyPJJEu.js")).runBriefs(argv);
|
|
35
35
|
}
|
|
36
36
|
function topLevelCommand(argv) {
|
|
37
37
|
return (argv[0] === "--" ? argv.slice(1) : argv)[0];
|
package/dist/cli/plugins.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as JuniorPluginSet } from "../plugins-
|
|
1
|
+
import { n as JuniorPluginSet } from "../plugins-DtmjkTza.js";
|
|
2
2
|
import { PluginCliIo } from "@sentry/junior-plugin-api";
|
|
3
3
|
export type PluginCommandIo = PluginCliIo;
|
|
4
4
|
export interface CliPluginCommandDispatcher {
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as getDb } from "../viewer-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { Rn as setPlugins, ka as createPluginLogger, zn as validatePlugins } from "../projection-BTge9wrH.js";
|
|
2
|
+
import { S as getDb } from "../viewer-DLXajQZE.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BoOb5oUv.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-B9-8iKyw.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-DOm9Y6qI.js";
|
|
6
6
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
7
7
|
import { stderr, stdout } from "node:process";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime
|
|
3
|
-
import { t as disconnectStateAdapter } from "../adapter-
|
|
4
|
-
import { n as resolve } from "../resolve-
|
|
1
|
+
import { ai as create } from "../projection-BTge9wrH.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BoOb5oUv.js";
|
|
3
|
+
import { t as disconnectStateAdapter } from "../adapter-BXosqTMx.js";
|
|
4
|
+
import { n as resolve } from "../resolve-B_7h2cXx.js";
|
|
5
5
|
// src/cli/snapshot-create.ts
|
|
6
6
|
const DEFAULT_RUNTIME = "node22";
|
|
7
7
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
package/dist/cli/upgrade.d.ts
CHANGED
package/dist/cli/upgrade.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "../config-
|
|
2
|
-
import { t as createJuniorSqlExecutor } from "../executor-
|
|
3
|
-
import { t as createPluginCatalogRuntime } from "../registry-
|
|
1
|
+
import { i as getChatConfig } from "../config-o2jLRY5J.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-CJfsD0VX.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-Cp6CNmtP.js";
|
|
4
4
|
import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-DOm9Y6qI.js";
|
|
5
5
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
2
|
-
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
1
|
+
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-dFaXvBRK.js";
|
|
2
|
+
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-C23M8KaD.js";
|
|
3
3
|
import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
|
|
4
4
|
import { stream as streamAnthropic, streamSimple as streamSimpleAnthropic } from "@earendil-works/pi-ai/api/anthropic-messages";
|
|
5
5
|
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
@@ -281,7 +281,7 @@ const COMPACTION_SUMMARY_PREFIX = "Another language model started to solve this
|
|
|
281
281
|
/** Return whether text is one of Junior's durable compacted-context markers. */
|
|
282
282
|
function isCompactionSummaryText(text) {
|
|
283
283
|
const normalized = (unwrapCurrentInstruction(text) ?? text).trimStart();
|
|
284
|
-
return normalized.startsWith("Another language model started to solve this problem and produced a summary of its thinking process. You also have access to the state of the tools that were used by that language model. Use this to build on the work that has already been done and avoid duplicating work. Here is the summary produced by the other language model, use the information in this summary to assist with your own analysis:") || normalized.startsWith("Another language model started to solve this problem and produced a summary of its thinking process. You also have access to the state of the tools that were used by that language model. Use this to build on the work that has already been done and avoid duplicating work. Here is the summary produced by the other language model, use the information in this summary to assist with your own analysis:")
|
|
284
|
+
return normalized.startsWith("Another language model started to solve this problem and produced a summary of its thinking process. You also have access to the state of the tools that were used by that language model. Use this to build on the work that has already been done and avoid duplicating work. Here is the summary produced by the other language model, use the information in this summary to assist with your own analysis:") || normalized.startsWith("Another language model started to solve this problem and produced a summary of its thinking process. You also have access to the state of the tools that were used by that language model. Use this to build on the work that has already been done and avoid duplicating work. Here is the summary produced by the other language model, use the information in this summary to assist with your own analysis:");
|
|
285
285
|
}
|
|
286
286
|
/** Return whether model-visible history contains a durable compacted context marker. */
|
|
287
287
|
function hasCompactedConversationContext(messages) {
|