@sentry/junior 0.288.0 → 0.289.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-Cikcqdty.js → adapter-tE1wnl0T.js} +1 -1
- package/dist/{admin-BcSxHuTB.js → admin-BmsPbmO_.js} +2 -2
- package/dist/{agent-runner-9MXyWUL8.js → agent-runner-bvl8U5uH.js} +343 -103
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +6 -7
- package/dist/api.d.ts +1 -1
- package/dist/api.js +281 -254
- package/dist/{app-BUklJVBe.d.ts → app-Cu454FXq.d.ts} +2 -4
- package/dist/app.d.ts +1 -1
- package/dist/app.js +92 -64
- package/dist/assistant-reply-1N9oxyyb.js +58 -0
- package/dist/{automation-DDXwHQs5.js → automation-DWbjJltM.js} +1 -1
- package/dist/{background-compaction-queue-CjllSPir.js → background-compaction-queue-D36oCldp.js} +4 -4
- package/dist/{briefs-DW9iuolG.js → briefs-CV-1qkXa.js} +3 -4
- package/dist/{catalog-runtime-B3gfH58M.js → catalog-runtime-BNK4uJVZ.js} +1 -1
- package/dist/cli/chat.js +14 -14
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +4 -4
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-CLJcyYEF.js → config-DHAy7XlP.js} +4 -41
- package/dist/{connections-BtdJftow.js → connections-C3VmH3cf.js} +7 -129
- package/dist/{conversation-DhoqHtQ7.js → conversation-CwC8K3RZ.js} +8 -8
- package/dist/{conversation-pending-messages-DHV0S4uF.js → conversation-pending-messages-B0cuLReP.js} +1 -1
- package/dist/{conversation-privacy-BPirIVlX.js → conversation-privacy-Bky_veSp.js} +1 -1
- package/dist/{credential-sync-Co8Q2xRW.js → credential-sync-dY9o0YSj.js} +13 -13
- package/dist/{db-Co7DTYYh.js → db-BS2Kql3j.js} +56 -31
- package/dist/{db-zIs8-Ba3.d.ts → db-BebRmhsH.d.ts} +5 -1
- package/dist/{executor-m0kIN71Q.js → executor-cc4nH86C.js} +35 -9
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-DbD-dErY.js → logging-CtCJmt9p.js} +2 -2
- package/dist/{history-IjdmO_r6.js → media-BepyEUNm.js} +85 -1
- package/dist/{message-DKTdTYm-.js → message-C5VuRcP9.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-CpbepSbp.js → oauth-callback-server-KRrYUZ35.js} +2 -2
- package/dist/{projection-BViECfYu.js → projection-BFJG58TG.js} +153 -119
- package/dist/{prompt-KT6MaDHN.js → prompt-D15oftoL.js} +183 -3
- package/dist/{registry-D-Acyjhh.js → registry-C_JrgqUz.js} +1 -1
- package/dist/{resolve-gkT2R66z.js → resolve-Cn_7JfP-.js} +3 -3
- package/dist/{result-DHmCFEt8.js → result-CIbQFLp6.js} +16 -10
- package/dist/{runner-DBKjGjH-.js → runner-BwmaMJVO.js} +8 -8
- package/dist/{sandbox-egress-signals-9n8hqx29.js → sandbox-egress-signals-BOQ8gn7i.js} +1 -1
- package/dist/{schema-DxicIQbc.js → schema-Bptz19Ja.js} +14 -9
- package/dist/{schema-B_6aOcx5.d.ts → schema-DQaFSkZZ.d.ts} +13 -5
- package/dist/{service-account-CDlC9ssy.js → service-account-AGw_pANb.js} +3 -3
- package/dist/{service-account-Bi0HsY6w.js → service-account-CLZfF8O1.js} +3 -3
- package/dist/{session-stop-BWOsuo8p.js → session-stop-CbzKf7UI.js} +41 -30
- package/dist/{skills-DO5K68Rq.js → skills-CcAJBquq.js} +2 -2
- package/dist/{spawn-BBqZDcPa.js → spawn-BvAk2vTI.js} +5 -5
- package/dist/{stop-WC97cmHz.js → stop-BQU4u7la.js} +123 -213
- package/dist/{store-ByR1Lr7e.js → store-DE7NJOvQ.js} +3 -3
- package/dist/{task-runner-B-Ewf8TX.js → task-runner-Q_7duP_T.js} +13 -17
- package/dist/{turn-failure-response-CpdPoZSl.js → turn-failure-response-aWZLfUM8.js} +8 -8
- package/dist/{validation-B4sbIoES.js → validation-BOoPeIJR.js} +1 -1
- package/dist/{version-D6lpuAgL.js → version-Db0MFy61.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-CeP27tC3.js → viewer-FFEFu9In.js} +4 -4
- package/dist/{warmup-P_GJCL1c.js → warmup-DDzrA9Gv.js} +260 -60
- package/dist/{work-DI7x1Slm.js → work-BBJK458E.js} +14 -14
- package/dist/{worker-CYPTOT4j.js → worker-2iU5RFyq.js} +6 -30
- package/migrations/0091_conversation_participant_unsubscribed_index.sql +20 -0
- package/migrations/0092_turn_metric_actor.sql +12 -0
- package/migrations/0093_participant_root_actor_backfill.sql +18 -0
- package/migrations/0094_conversation_delivery_paused_at.sql +1 -0
- package/migrations/meta/0091_snapshot.json +4410 -0
- package/migrations/meta/0092_snapshot.json +4446 -0
- package/migrations/meta/0093_snapshot.json +4446 -0
- package/migrations/meta/0094_snapshot.json +4452 -0
- package/migrations/meta/_journal.json +28 -0
- package/package.json +5 -5
- package/dist/assistant-reply-mj47jMRV.js +0 -65
- package/dist/core-model-BTt5E5b0.js +0 -182
- package/dist/media-BAHvgkok.js +0 -85
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
|
|
2
|
-
import { t as ConversationStore } from "./db-
|
|
3
|
-
import "./schema-
|
|
2
|
+
import { t as ConversationStore } from "./db-BebRmhsH.js";
|
|
3
|
+
import "./schema-DQaFSkZZ.js";
|
|
4
4
|
import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
|
6
6
|
import { Hono } from "hono";
|
|
@@ -32,8 +32,6 @@ interface BotModelConfig {
|
|
|
32
32
|
guardianModelId?: string;
|
|
33
33
|
/** Model used to generate images. */
|
|
34
34
|
imageGenerationModelId?: string;
|
|
35
|
-
/** Model used to transcribe dictated audio. */
|
|
36
|
-
transcriptionModelId?: string;
|
|
37
35
|
/** Model used to analyze images. */
|
|
38
36
|
visionModelId?: string;
|
|
39
37
|
/** Model used for web search. */
|
package/dist/app.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-
|
|
1
|
+
import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-Cu454FXq.js";
|
|
2
2
|
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-DtmjkTza.js";
|
|
3
3
|
import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
|
|
4
4
|
export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };
|
package/dist/app.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { $
|
|
3
|
-
import {
|
|
4
|
-
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan,
|
|
5
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { $a as readConversationAccessFromSql, $i as slackEntitySchema, $r as verifySlackDirectCredentialSubject, Ai as proxyVercelSandboxEgressRequest, At as isInvalidConversationRecordError, Bi as slackMention, Bn as setPlugins, Br as collectEventMatchKeys, C as settleConversationTitleWork, Ca as consumeSandboxEgressPermissionDeniedSignal, En as createUserTokenStore, Er as reviewItemReaderForUserInConversation, Fa as createPluginEmbedder, Ii as escapeSlackMrkdwnText, Jr as bindEventAutomationCredentialSubject, Ki as openSlackModal, Li as formatSlackLink, Lo as getConfigDefaults, Nn as getPluginApiRoutes, Ot as hasRunnableConversationWork, Pi as resolveBaseUrl, Pn as getPluginRoutes, Pt as pruneActiveConversation, Qr as verifyScheduledAutomationCredentialSubject, Ro as setConfigDefaults, Sa as consumeSandboxEgressAuthRequiredSignal, So as resolveRootVisibility, Ta as parseSandboxEgressCredentialToken, To as listConversationAnnotations, Tr as reviewItemReaderForUser, Vn as validatePlugins, Wn as setBriefsConfig, Wr as findMatchingWatches, Xi as unfurlSlackLinks, Xr as bindSlackDirectCredentialSubject, Ya as createPluginLogger, Yr as bindScheduledAutomationCredentialSubject, Zr as verifyEventAutomationCredentialSubject, _ as appendConversationMessages, aa as getSlackClient, ci as setDashboardConversationLinkOptions, co as readLatestConversationBrief, da as getWorkspaceTeamId, dr as searchReviewItems, ea as slackExternalRefIdSchema, er as projectConversationMessages, fa as runWithWorkspaceTeamId, fo as readConversationLastEventSeq, hr as canActOnReviewItem, ii as getDashboardReviewItemLink, ir as dismissOpenReviewItems, jo as createPluginCache, ka as normalizeSandboxEgressTracePropagationDomains, ki as isVercelSandboxEgressRequest, lo as readConversationEventPage, ni as getDashboardConversationLink, oi as getDashboardTaskLink, po as readConversationMessageEventSeq, qi as postSlackEphemeralMessage, qr as takeDueTimerWatches, sa as isDmChannel, si as parseDashboardConversationLink, ui as createPluginState, uo as readConversationEventPageAfter, ut as CONVERSATION_WORK_STALE_ENQUEUE_MS, xa as clearSandboxEgressSignals, zn as getPlugins } from "./projection-BFJG58TG.js";
|
|
3
|
+
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, q as getAttachmentStorage, u as resetRuntimeConfig } from "./config-DHAy7XlP.js";
|
|
4
|
+
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, H as GOOGLE_IDENTITY_PROVIDER, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, W as normalizeIdentityEmail, b as setSpanAttributes, h as logWarn, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-CtCJmt9p.js";
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-Db0MFy61.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-6jsm_v96.js";
|
|
7
|
-
import { D as resolveActorIdentityId,
|
|
8
|
-
import { A as juniorConversations, N as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-
|
|
9
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
10
|
-
import { $ as readViewerAutomationSummary,
|
|
7
|
+
import { D as resolveActorIdentityId, N as recordGoogleSignIn, R as getConversationIdByProviderConversation, X as createSlackDestination, Y as touchConversationDetail, a as getConversationStore, b as withConversationMutationLock, o as getDb, p as withConversationEventLock, r as getConversationEventStore, s as getSqlExecutor, t as closeDb, x as conversationKindFromRow } from "./db-BS2Kql3j.js";
|
|
8
|
+
import { A as juniorConversations, N as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-cc4nH86C.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BNK4uJVZ.js";
|
|
10
|
+
import { $ as readViewerAutomationSummary, $t as resumeConversationDelivery, A as runWithSlackInstallation, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, E as buildSlackReviewItemModal, H as logScheduledAutomationRunSkipped, I as checkSlackChannelReadAccess, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as recordSubagentEnded, S as createSlackReviewItemShow, St as markConversationRead, U as scheduledAutomationRunAttributes, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, _ as unpublishedArtifactHeaders, at as deliverReviewItemChange, bt as archiveConversation, cn as processWorkspaceSnapshotJob, g as readPublicArtifact, gt as collectAttachmentGarbage, h as publicArtifactHeaders, j as verifySlackSignature, k as parseSlackUserInputSubmission, ln as ingestEvent, lt as appendAndEnqueueWebMessage, mt as webActorFromUser, n as executeAgentRun, ot as renderReviewItemMessage, pt as recordWebConversationActivity, r as processBackgroundCompaction, rt as effectiveTaskOutcomes, st as reviewItemChangeRecord, t as createAgentRunner, tt as readViewerAutomations, ut as conversationTurnIdForMessage, v as setConversationSubscription, vt as requestAttachmentDeletion, w as syncReviewItemSlackCards, y as lookupSlackUserProfile, z as joinPublicChannel } from "./agent-runner-bvl8U5uH.js";
|
|
11
11
|
import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
12
|
-
import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-
|
|
13
|
-
import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-
|
|
12
|
+
import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-FFEFu9In.js";
|
|
13
|
+
import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-tE1wnl0T.js";
|
|
14
14
|
import { a as getNextRunAtMs } from "./schedule-cP0AACm1.js";
|
|
15
|
-
import { F as annotationCard,
|
|
15
|
+
import { F as annotationCard, Y as conversationBriefSchema, k as conversationTitleSchema, p as conversationFeedQuerySchema, x as conversationSurfaceSchema, y as conversationReportStatusSchema } from "./conversation-CwC8K3RZ.js";
|
|
16
16
|
import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
17
|
-
import { a as segmentGapsKey,
|
|
18
|
-
import { A as getQueueProvider, C as cacheWarmupQueueConsumer, O as queueCallback, T as registerVercelCacheWarmupDevConsumer, _ as resolveConversationWorkQueueTopic, b as conversationQueueMessageSchema, f as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, g as getVercelConversationWorkQueue, h as verifyWorkspaceSnapshotJobMessage, i as verifyBackgroundCompactionMessage, l as pluginTaskQueueConsumer, o as createVercelPluginTaskCallback, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as registerVercelPluginTaskDevConsumer, v as verifyConversationQueueMessage, w as createVercelCacheWarmupCallback, x as isConversationQueueMessageRejectedError } from "./background-compaction-queue-
|
|
19
|
-
import { D as listPendingAgentInvocationResults, E as listPendingAgentInvocationMailboxAppends } from "./turn-failure-response-
|
|
20
|
-
import { M as slackChannelMessageReplyThreadTs, N as slackChannelMessageRunsAutomation, O as getEventCatalog, W as renderSlackObjectCard, d as getAuthPausedConversationTurnId, it as setExperimentalFeatures, j as slackChannelMessageEvent, k as SLACK_EVENT_NAMESPACE, nt as getExperimentalFeatures, rt as isExperimentalFeatureEnabled, z as renderTaskInput } from "./session-stop-
|
|
17
|
+
import { a as segmentGapsKey, d as MINUTE_MS, f as MIN_WARMUP_PREFIX_TOKENS, m as gapSegment, n as GLOBAL_GAPS_MAX, p as NO_REPLY_GAP_MS, r as GLOBAL_GAPS_TTL_MS, t as CONVERSATION_STATE_TTL_MS } from "./warmup-DDzrA9Gv.js";
|
|
18
|
+
import { A as getQueueProvider, C as cacheWarmupQueueConsumer, O as queueCallback, T as registerVercelCacheWarmupDevConsumer, _ as resolveConversationWorkQueueTopic, b as conversationQueueMessageSchema, f as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, g as getVercelConversationWorkQueue, h as verifyWorkspaceSnapshotJobMessage, i as verifyBackgroundCompactionMessage, l as pluginTaskQueueConsumer, o as createVercelPluginTaskCallback, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as registerVercelPluginTaskDevConsumer, v as verifyConversationQueueMessage, w as createVercelCacheWarmupCallback, x as isConversationQueueMessageRejectedError } from "./background-compaction-queue-D36oCldp.js";
|
|
19
|
+
import { D as listPendingAgentInvocationResults, E as listPendingAgentInvocationMailboxAppends } from "./turn-failure-response-aWZLfUM8.js";
|
|
20
|
+
import { M as slackChannelMessageReplyThreadTs, N as slackChannelMessageRunsAutomation, O as getEventCatalog, W as renderSlackObjectCard, d as getAuthPausedConversationTurnId, it as setExperimentalFeatures, j as slackChannelMessageEvent, k as SLACK_EVENT_NAMESPACE, nt as getExperimentalFeatures, rt as isExperimentalFeatureEnabled, z as renderTaskInput } from "./session-stop-CbzKf7UI.js";
|
|
21
21
|
import { _ as buttonUserInputField } from "./reporting-window-B3Ze-Qnt.js";
|
|
22
|
-
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-
|
|
23
|
-
import { _ as listActiveConversationIds, g as getConversationWorkState, h as getConversation, l as clearExpiredConversationLease, m as ensureConversationWake, r as appendAndEnqueueInboundMessage } from "./store-
|
|
24
|
-
import { A as withScheduledAutomationLock, E as readScheduledAutomation, F as findMatchingEventAutomations, H as eventAutomationRunLimitReason, M as collectEventAutomationMatchKeys, O as saveScheduledAutomationInLock, Q as existingConversationId,
|
|
25
|
-
import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-
|
|
26
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
22
|
+
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-Cn_7JfP-.js";
|
|
23
|
+
import { _ as listActiveConversationIds, g as getConversationWorkState, h as getConversation, l as clearExpiredConversationLease, m as ensureConversationWake, r as appendAndEnqueueInboundMessage } from "./store-DE7NJOvQ.js";
|
|
24
|
+
import { A as withScheduledAutomationLock, Ct as eventGuidance, E as readScheduledAutomation, F as findMatchingEventAutomations, H as eventAutomationRunLimitReason, M as collectEventAutomationMatchKeys, O as saveScheduledAutomationInLock, Q as existingConversationId, V as admitEventAutomationRun, W as automationVersionOf, c as getDispatchConversationId, ct as recordAutomationExecution, d as getDispatchRecord, h as listPendingDispatchMailboxAppends, i as buildDispatchId, j as blockEventAutomation, k as scheduledRunId, m as isTerminalDispatchStatus, o as confirmDispatchMailboxAppend, p as getPluginDispatchProjection, s as createOrGetDispatch, t as processPluginTask, vt as coerceThreadConversationState, w as listScheduledAutomationsForTeam, x as notifyAutomationBlocked, y as markDispatchFailed } from "./task-runner-Q_7duP_T.js";
|
|
25
|
+
import { M as scheduledRunSchema, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-DWbjJltM.js";
|
|
26
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-BOoPeIJR.js";
|
|
27
27
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-HYh_JOdw.js";
|
|
28
|
-
import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-
|
|
29
|
-
import { $ as actOnReviewItem, A as createProductionConversationWorkOptions, B as clearSlackPendingReactions, C as createConversationForViewer, D as readConversationPendingMessages, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, G as createSlackWebApiStatusSender, H as stripLeadingBotMention, I as readEnvList, J as stopConversation, K as SubscribedReplyReason, L as resolveAllowedDomains, M as getProductionSlackAdapter, N as assertNoLegacyAllowedDomains, P as isAllowedDomain, Q as ReviewItemActionError, R as startProcessingReaction, S as appendConversationMessageForViewer, T as encodeConversationCursor, U as normalizeIncomingSlackThreadId, V as slackInboundMessageId, W as withNormalizedThreadId, X as recordSkippedConversationMessage, Y as parseContent, Z as bindMessageAuthorIdentityId, a as pinConversation, at as continueConversationInSlack, b as readConversationRecordFromSql, ct as archiveViewerDoneConversations, dt as setConversationAutoArchive, et as closeReviewItemsAnsweredByReply, ht as GET$4, i as readConversationFeed, it as canContinueInSlack, j as createProductionSlackWebhookServices, mt as enqueueAgentDispatch, n as steerConversationPendingMessagesForViewer, nt as reviewItemChange, ot as isMovableToSlack, q as getThreadStopDecision, rt as alreadyContinuesInSlackMessage, s as readConversationDetail, t as stopConversationTurnForViewer, tt as readReviewItemForUser, ut as runAutoArchiveSweep, w as decodeConversationCursor, z as buildSlackInboundMessage } from "./stop-
|
|
30
|
-
import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-
|
|
31
|
-
import { n as enqueueAgentInvocationResult } from "./result-
|
|
32
|
-
import { o as unlinkProvider } from "./connections-
|
|
33
|
-
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
28
|
+
import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-B0cuLReP.js";
|
|
29
|
+
import { $ as actOnReviewItem, A as createProductionConversationWorkOptions, B as clearSlackPendingReactions, C as createConversationForViewer, D as readConversationPendingMessages, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, G as createSlackWebApiStatusSender, H as stripLeadingBotMention, I as readEnvList, J as stopConversation, K as SubscribedReplyReason, L as resolveAllowedDomains, M as getProductionSlackAdapter, N as assertNoLegacyAllowedDomains, P as isAllowedDomain, Q as ReviewItemActionError, R as startProcessingReaction, S as appendConversationMessageForViewer, T as encodeConversationCursor, U as normalizeIncomingSlackThreadId, V as slackInboundMessageId, W as withNormalizedThreadId, X as recordSkippedConversationMessage, Y as parseContent, Z as bindMessageAuthorIdentityId, a as pinConversation, at as continueConversationInSlack, b as readConversationRecordFromSql, ct as archiveViewerDoneConversations, dt as setConversationAutoArchive, et as closeReviewItemsAnsweredByReply, ht as GET$4, i as readConversationFeed, it as canContinueInSlack, j as createProductionSlackWebhookServices, mt as enqueueAgentDispatch, n as steerConversationPendingMessagesForViewer, nt as reviewItemChange, ot as isMovableToSlack, q as getThreadStopDecision, rt as alreadyContinuesInSlackMessage, s as readConversationDetail, t as stopConversationTurnForViewer, tt as readReviewItemForUser, ut as runAutoArchiveSweep, w as decodeConversationCursor, z as buildSlackInboundMessage } from "./stop-BQU4u7la.js";
|
|
30
|
+
import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-BBJK458E.js";
|
|
31
|
+
import { n as enqueueAgentInvocationResult } from "./result-CIbQFLp6.js";
|
|
32
|
+
import { o as unlinkProvider } from "./connections-C3VmH3cf.js";
|
|
33
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-dY9o0YSj.js";
|
|
34
34
|
import { t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
|
|
35
|
-
import { t as processConversationWork } from "./worker-
|
|
36
|
-
import { t as bindMessageAgent } from "./message-
|
|
37
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
35
|
+
import { t as processConversationWork } from "./worker-2iU5RFyq.js";
|
|
36
|
+
import { t as bindMessageAgent } from "./message-C5VuRcP9.js";
|
|
37
|
+
import { t as bindSpawnAgent } from "./spawn-BvAk2vTI.js";
|
|
38
38
|
import { createRequire } from "node:module";
|
|
39
39
|
import { Hono } from "hono";
|
|
40
40
|
import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -72,19 +72,36 @@ import { betterAuth } from "better-auth/minimal";
|
|
|
72
72
|
* batch that the statement timeout canceled. It fills only segment lists
|
|
73
73
|
* that are empty when it starts, so it does not add history to gaps that
|
|
74
74
|
* live recording already has.
|
|
75
|
+
*
|
|
76
|
+
* History does not tell the plugin work state or the archive state that a
|
|
77
|
+
* Conversation had when an idle period started. So it fills only the
|
|
78
|
+
* segments of Conversations that are not archived and have work state
|
|
79
|
+
* `none`, which most Conversations have. The `open` and `done` segments and
|
|
80
|
+
* the `archived:*` segments stay empty until live gaps arrive. With fewer
|
|
81
|
+
* than `MIN_GAP_SAMPLES` gaps, `decideWarmup` returns `few_gaps` and Junior
|
|
82
|
+
* sends no warmup. The idle period still records its gap, so the segment
|
|
83
|
+
* fills from live idle periods.
|
|
75
84
|
*/
|
|
76
|
-
const BACKFILL_KEY = "junior:cache_warming:backfill";
|
|
85
|
+
const BACKFILL_KEY = "junior:cache_warming:backfill:work_state";
|
|
77
86
|
const BACKFILL_CLAIM_TTL_MS = 60 * MINUTE_MS;
|
|
78
87
|
const CONVERSATION_BATCH_SIZE = 10;
|
|
79
88
|
const QUERY_CANCELED = "57014";
|
|
80
89
|
const BACKFILL_BUDGET_MS = 6e4;
|
|
81
90
|
const BACKFILL_GAPS_MAX = GLOBAL_GAPS_MAX / 2;
|
|
82
|
-
const
|
|
91
|
+
const BACKFILL_SEGMENTS = new Set([true, false].flatMap((userActor) => [
|
|
83
92
|
0,
|
|
84
93
|
1,
|
|
85
94
|
2,
|
|
86
95
|
3
|
|
87
|
-
].map((endedTurns) =>
|
|
96
|
+
].map((endedTurns) => historySegment(userActor, endedTurns))));
|
|
97
|
+
function historySegment(userActor, endedTurns) {
|
|
98
|
+
return gapSegment({
|
|
99
|
+
userActor,
|
|
100
|
+
endedTurns,
|
|
101
|
+
workState: "none",
|
|
102
|
+
archived: false
|
|
103
|
+
});
|
|
104
|
+
}
|
|
88
105
|
async function loadConversations(windowStartMs) {
|
|
89
106
|
return await getSqlExecutor().query(`SELECT conversation_id AS "conversationId", kind,
|
|
90
107
|
parent_conversation_id AS "parentConversationId"
|
|
@@ -171,7 +188,7 @@ function replayConversation(kind, events, nowMs) {
|
|
|
171
188
|
const prefixTokens = Number(event.cacheRead ?? 0) + Number(event.cacheWrite ?? 0);
|
|
172
189
|
idle = {
|
|
173
190
|
sinceMs: startedAtMs,
|
|
174
|
-
segment:
|
|
191
|
+
segment: historySegment(userActor, endedTurns),
|
|
175
192
|
eligible: prefixTokens >= MIN_WARMUP_PREFIX_TOKENS
|
|
176
193
|
};
|
|
177
194
|
endedTurns += 1;
|
|
@@ -251,36 +268,47 @@ async function backfillCacheWarmingGaps(args) {
|
|
|
251
268
|
const state = getStateAdapter();
|
|
252
269
|
await state.connect();
|
|
253
270
|
if (!await state.setIfNotExists(BACKFILL_KEY, "running", BACKFILL_CLAIM_TTL_MS)) return;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
271
|
+
await withSpan("cache_warming.backfill", "cache_warming.backfill", {}, async (setSpanAttributes) => {
|
|
272
|
+
const emptySegments = /* @__PURE__ */ new Set();
|
|
273
|
+
for (const segment of BACKFILL_SEGMENTS) if ((await state.getList(segmentGapsKey(segment))).length === 0) emptySegments.add(segment);
|
|
274
|
+
const { bySegment, scanned, canceledBatches, budgetExceeded } = await collectGaps(args.nowMs, args.budgetMs ?? BACKFILL_BUDGET_MS);
|
|
275
|
+
const logAttributes = {
|
|
276
|
+
"app.cache_warming.backfill.conversation_count": scanned,
|
|
277
|
+
"app.cache_warming.backfill.canceled_batch_count": canceledBatches,
|
|
278
|
+
"app.cache_warming.backfill.budget_exceeded": budgetExceeded
|
|
279
|
+
};
|
|
280
|
+
if (scanned === 0 && canceledBatches > 0) {
|
|
281
|
+
logInfo("cache_warming.backfill.not_completed", logAttributes);
|
|
282
|
+
setSpanAttributes({
|
|
283
|
+
...logAttributes,
|
|
284
|
+
"app.cache_warming.backfill.outcome": "not_completed"
|
|
285
|
+
});
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
let gapCount = 0;
|
|
289
|
+
let segmentCount = 0;
|
|
290
|
+
for (const [segment, gaps] of bySegment) {
|
|
291
|
+
if (!emptySegments.has(segment)) continue;
|
|
292
|
+
const key = segmentGapsKey(segment);
|
|
293
|
+
const newest = gaps.slice(-BACKFILL_GAPS_MAX);
|
|
294
|
+
for (const gapMs of newest) await state.appendToList(key, gapMs, {
|
|
295
|
+
maxLength: GLOBAL_GAPS_MAX,
|
|
296
|
+
ttlMs: GLOBAL_GAPS_TTL_MS
|
|
297
|
+
});
|
|
298
|
+
gapCount += newest.length;
|
|
299
|
+
segmentCount += 1;
|
|
300
|
+
}
|
|
301
|
+
await state.set(BACKFILL_KEY, "done");
|
|
302
|
+
const completed = {
|
|
303
|
+
...logAttributes,
|
|
304
|
+
"app.cache_warming.backfill.gap_count": gapCount,
|
|
305
|
+
"app.cache_warming.backfill.segment_count": segmentCount
|
|
306
|
+
};
|
|
307
|
+
logInfo("cache_warming.backfill.completed", completed);
|
|
308
|
+
setSpanAttributes({
|
|
309
|
+
...completed,
|
|
310
|
+
"app.cache_warming.backfill.outcome": "completed"
|
|
275
311
|
});
|
|
276
|
-
gapCount += newest.length;
|
|
277
|
-
segmentCount += 1;
|
|
278
|
-
}
|
|
279
|
-
await state.set(BACKFILL_KEY, "done");
|
|
280
|
-
logInfo("cache_warming.backfill.completed", {
|
|
281
|
-
...logAttributes,
|
|
282
|
-
"app.cache_warming.backfill.gap_count": gapCount,
|
|
283
|
-
"app.cache_warming.backfill.segment_count": segmentCount
|
|
284
312
|
});
|
|
285
313
|
}
|
|
286
314
|
// src/chat/events/timers.ts
|
|
@@ -3237,6 +3265,7 @@ async function routeParsedMessage(args) {
|
|
|
3237
3265
|
});
|
|
3238
3266
|
return;
|
|
3239
3267
|
}
|
|
3268
|
+
if (route === "mention") await resumeConversationDelivery(conversationId);
|
|
3240
3269
|
if (isSubscribed && !isExperimentalFeatureEnabled("passive-routing")) {
|
|
3241
3270
|
await saveSkippedSlackMessage({
|
|
3242
3271
|
conversationId,
|
|
@@ -7252,7 +7281,7 @@ function registerSearchReviewItemsTool(server, { user }) {
|
|
|
7252
7281
|
readOnlyHint: true
|
|
7253
7282
|
}
|
|
7254
7283
|
}, async ({ conversationId, limit, q }) => {
|
|
7255
|
-
const items = await searchReviewItems(getDb(), reviewItemReaderForUser(user), {
|
|
7284
|
+
const items = await searchReviewItems(getDb(), conversationId ? await reviewItemReaderForUserInConversation(user, conversationId) : reviewItemReaderForUser(user), {
|
|
7256
7285
|
...conversationId ? { conversationId } : void 0,
|
|
7257
7286
|
limit: limit + 1,
|
|
7258
7287
|
...q ? { query: q } : void 0,
|
|
@@ -7969,7 +7998,6 @@ function dashboardHostRoutePaths(dashboard, authenticatedRoutes = []) {
|
|
|
7969
7998
|
"/api/notifications/*",
|
|
7970
7999
|
"/api/stats",
|
|
7971
8000
|
"/api/versions",
|
|
7972
|
-
"/api/transcriptions",
|
|
7973
8001
|
"/api/conversations",
|
|
7974
8002
|
"/api/conversations/*",
|
|
7975
8003
|
"/api/locations",
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { $t as extractAssistantText, dn as normalizeToolNameFromResult, ln as isToolResultError, un as isToolResultMessage } from "./projection-BFJG58TG.js";
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
// src/chat/no-reply.ts
|
|
4
|
+
/** No-reply result of a Turn. */
|
|
5
|
+
/** Model-facing tool that ends a Turn with no reply. */
|
|
6
|
+
const NO_REPLY_TOOL_NAME = "noReply";
|
|
7
|
+
const noReplySchema = z.object({ note: z.string().trim().min(1).optional() });
|
|
8
|
+
/**
|
|
9
|
+
* Read the last successful no-reply result from the new messages of one run.
|
|
10
|
+
* Do not pass the whole history: a call from an earlier Turn must not end
|
|
11
|
+
* this one.
|
|
12
|
+
*/
|
|
13
|
+
function readNoReply(messages) {
|
|
14
|
+
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
15
|
+
const message = messages[index];
|
|
16
|
+
if (!isToolResultMessage(message) || isToolResultError(message) || normalizeToolNameFromResult(message) !== "noReply") continue;
|
|
17
|
+
const parsed = noReplySchema.safeParse(message.details);
|
|
18
|
+
if (parsed.success) return parsed.data;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
const LEGACY_NO_REPLY_MARKERS = ["[[NO_REPLY]]", "[[QUIET]]"];
|
|
22
|
+
/** True when the text is only a legacy no-reply marker from old history. */
|
|
23
|
+
function isLegacyNoReplyMarker(text) {
|
|
24
|
+
return LEGACY_NO_REPLY_MARKERS.includes(text.trim());
|
|
25
|
+
}
|
|
26
|
+
// src/chat/services/assistant-reply.ts
|
|
27
|
+
const THINKING_XML_BLOCK_PATTERN = /[ \t]*<thinking\b[^>]*>[\s\S]*?<\/thinking>[ \t]*(?:\r?\n)?/gi;
|
|
28
|
+
const FENCED_CODE_BLOCK_PATTERN = /```[\s\S]*?```/g;
|
|
29
|
+
/** Remove provider reasoning wrappers while preserving fenced code examples. */
|
|
30
|
+
function sanitizeAssistantText(text) {
|
|
31
|
+
let result = "";
|
|
32
|
+
let cursor = 0;
|
|
33
|
+
for (const match of text.matchAll(FENCED_CODE_BLOCK_PATTERN)) {
|
|
34
|
+
const start = match.index;
|
|
35
|
+
if (start === void 0) continue;
|
|
36
|
+
result += text.slice(cursor, start).replace(THINKING_XML_BLOCK_PATTERN, "");
|
|
37
|
+
result += match[0];
|
|
38
|
+
cursor = start + match[0].length;
|
|
39
|
+
}
|
|
40
|
+
return (result + text.slice(cursor).replace(THINKING_XML_BLOCK_PATTERN, "")).trim();
|
|
41
|
+
}
|
|
42
|
+
/** Decide whether one completed assistant message becomes a reply. */
|
|
43
|
+
function decideReply(message) {
|
|
44
|
+
if (message.content.some((part) => part.type === "toolCall")) return { kind: "suppress" };
|
|
45
|
+
const text = sanitizeAssistantText(extractAssistantText(message));
|
|
46
|
+
if (!text) return { kind: "empty" };
|
|
47
|
+
if (isLegacyNoReplyMarker(text)) return { kind: "suppress" };
|
|
48
|
+
return {
|
|
49
|
+
kind: "deliver",
|
|
50
|
+
text
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
/** Return destination-visible reply text when the message is deliverable. */
|
|
54
|
+
function getAssistantReplyText(message) {
|
|
55
|
+
const decision = decideReply(message);
|
|
56
|
+
return decision.kind === "deliver" ? decision.text : void 0;
|
|
57
|
+
}
|
|
58
|
+
export { isLegacyNoReplyMarker as a, NO_REPLY_TOOL_NAME as i, getAssistantReplyText as n, readNoReply as o, sanitizeAssistantText as r, decideReply as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as resolveLocalScheduleAtMs, i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-cP0AACm1.js";
|
|
2
|
-
import { i as actorIdentitySchema } from "./conversation-
|
|
2
|
+
import { i as actorIdentitySchema } from "./conversation-CwC8K3RZ.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { actorUserIdSchema, destinationVisibilitySchema, eventMatchFieldsSchema, eventMatchSchema, eventReachSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
|
|
5
5
|
// src/chat/scheduled-automations/schedule-intent.ts
|
package/dist/{background-compaction-queue-CjllSPir.js → background-compaction-queue-D36oCldp.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { i as getChatConfig } from "./config-DHAy7XlP.js";
|
|
2
|
+
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-CtCJmt9p.js";
|
|
3
3
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4
4
|
import { createHash, createHmac, timingSafeEqual } from "node:crypto";
|
|
5
5
|
import * as z from "zod";
|
|
@@ -371,7 +371,7 @@ function cacheWarmupCallback() {
|
|
|
371
371
|
maxDeliveries: 1,
|
|
372
372
|
onRejected: logCacheWarmupRejected,
|
|
373
373
|
run: async (message) => {
|
|
374
|
-
const { runCacheWarmup } = await import("./warmup-
|
|
374
|
+
const { runCacheWarmup } = await import("./warmup-DDzrA9Gv.js").then((n) => n.o);
|
|
375
375
|
await runCacheWarmup(message);
|
|
376
376
|
},
|
|
377
377
|
skip: () => !getChatConfig().cacheWarmingEnabled,
|
|
@@ -560,7 +560,7 @@ function pluginTaskCallback() {
|
|
|
560
560
|
maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
|
|
561
561
|
onRejected: logPluginTaskQueueMessageRejected,
|
|
562
562
|
run: async (message) => {
|
|
563
|
-
const { processPluginTask } = await import("./task-runner-
|
|
563
|
+
const { processPluginTask } = await import("./task-runner-Q_7duP_T.js").then((n) => n.r);
|
|
564
564
|
await processPluginTask(message);
|
|
565
565
|
},
|
|
566
566
|
topic: PLUGIN_TASK_QUEUE_TOPIC,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-KT6MaDHN.js";
|
|
1
|
+
import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-D15oftoL.js";
|
|
2
|
+
import { G as briefCodeChangeSchema, J as briefResourceLabel, X as parseBriefInput, d as conversationEventPageSchema, l as conversationDetailReportSchema } from "./conversation-CwC8K3RZ.js";
|
|
4
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
5
4
|
import path from "node:path";
|
|
6
5
|
import * as z from "zod";
|
|
@@ -263,7 +262,7 @@ async function parseRunOptions(argv) {
|
|
|
263
262
|
* token.
|
|
264
263
|
*/
|
|
265
264
|
async function configuredBriefModelId() {
|
|
266
|
-
const { botConfig } = await import("./config-
|
|
265
|
+
const { botConfig } = await import("./config-DHAy7XlP.js").then((n) => n.r);
|
|
267
266
|
return botConfig.fastModelId;
|
|
268
267
|
}
|
|
269
268
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-C_JrgqUz.js";
|
|
3
3
|
// src/chat/plugins/catalog-runtime.ts
|
|
4
4
|
var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
|
|
5
5
|
const pluginCatalogRuntime = createPluginCatalogRuntime();
|
package/dist/cli/chat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-
|
|
1
|
+
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-bvl8U5uH.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-HYh_JOdw.js").then((n) => n.o),
|
|
102
|
-
import("../projection-
|
|
103
|
-
import("../catalog-runtime-
|
|
104
|
-
import("../validation-
|
|
105
|
-
import("../db-
|
|
102
|
+
import("../projection-BFJG58TG.js").then((n) => n.jn),
|
|
103
|
+
import("../catalog-runtime-BNK4uJVZ.js").then((n) => n.t),
|
|
104
|
+
import("../validation-BOoPeIJR.js").then((n) => n.r),
|
|
105
|
+
import("../db-BS2Kql3j.js").then((n) => n.n)
|
|
106
106
|
]);
|
|
107
107
|
const resolvedPluginSet = pluginSet === void 0 ? await loadLocalPluginSet() : pluginSet ?? void 0;
|
|
108
108
|
const plugins = pluginsModule.pluginRuntimeRegistrationsFromPluginSet(resolvedPluginSet);
|
|
@@ -152,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-BFJG58TG.js").then((n) => n.Un);
|
|
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-BwmaMJVO.js");
|
|
158
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-KRrYUZ35.js");
|
|
159
159
|
const { createLocalOAuthState } = await import("../oauth-relay-D6xxVywK.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 { skipInputAfterConversationStop } = await import("../session-stop-
|
|
160
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-BOQ8gn7i.js");
|
|
161
|
+
const { bindSpawnAgent } = await import("../spawn-BvAk2vTI.js").then((n) => n.n);
|
|
162
|
+
const { bindMessageAgent } = await import("../message-C5VuRcP9.js").then((n) => n.n);
|
|
163
|
+
const { createChildConversationWorker } = await import("../result-CIbQFLp6.js").then((n) => n.i);
|
|
164
|
+
const { skipInputAfterConversationStop } = await import("../session-stop-CbzKf7UI.js").then((n) => n.a);
|
|
165
165
|
const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
|
|
166
|
-
const { processConversationWork } = await import("../worker-
|
|
166
|
+
const { processConversationWork } = await import("../worker-2iU5RFyq.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 { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-
|
|
2
|
-
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-
|
|
3
|
-
import { i as parseSkillFile } from "../skills-
|
|
1
|
+
import { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-CtCJmt9p.js";
|
|
2
|
+
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-C_JrgqUz.js";
|
|
3
|
+
import { i as parseSkillFile } from "../skills-CcAJBquq.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
import fs from "node:fs/promises";
|
|
6
6
|
import { pathToFileURL } from "node:url";
|
package/dist/cli/main.js
CHANGED
|
@@ -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-BmsPbmO_.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-CLZfF8O1.js")).runServiceAccount(argv);
|
|
32
32
|
}
|
|
33
33
|
async function runBriefs(argv) {
|
|
34
|
-
return await (await import("../briefs-
|
|
34
|
+
return await (await import("../briefs-CV-1qkXa.js")).runBriefs(argv);
|
|
35
35
|
}
|
|
36
36
|
function topLevelCommand(argv) {
|
|
37
37
|
return (argv[0] === "--" ? argv.slice(1) : argv)[0];
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as getDb } from "../db-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { Bn as setPlugins, Vn as validatePlugins, Ya as createPluginLogger } from "../projection-BFJG58TG.js";
|
|
2
|
+
import { o as getDb } from "../db-BS2Kql3j.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BNK4uJVZ.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-BOoPeIJR.js";
|
|
5
5
|
import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-HYh_JOdw.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 { Aa as SANDBOX_RUNTIME, wi as create } from "../projection-BFJG58TG.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BNK4uJVZ.js";
|
|
3
|
+
import { t as disconnectStateAdapter } from "../adapter-tE1wnl0T.js";
|
|
4
|
+
import { n as resolve } from "../resolve-Cn_7JfP-.js";
|
|
5
5
|
// src/cli/snapshot-create.ts
|
|
6
6
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
|
7
7
|
function progressMessage(phase) {
|
package/dist/cli/upgrade.d.ts
CHANGED
package/dist/cli/upgrade.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "../config-
|
|
2
|
-
import { t as createJuniorSqlExecutor } from "../executor-
|
|
3
|
-
import { t as createPluginCatalogRuntime } from "../registry-
|
|
1
|
+
import { i as getChatConfig } from "../config-DHAy7XlP.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-cc4nH86C.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-C_JrgqUz.js";
|
|
4
4
|
import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-HYh_JOdw.js";
|
|
5
5
|
import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|