@sentry/junior 0.312.0 → 0.313.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-iIq7ihf7.js → adapter-CYAvJzZS.js} +1 -1
- package/dist/{adapter-context-BRjEWRy1.js → adapter-context-CVsHoVSf.js} +2 -2
- package/dist/{admin-DhInw5K9.js → admin-Cyhb4TwZ.js} +1 -1
- package/dist/{agent-runner-C9iDurwX.js → agent-runner-B5y9MsT-.js} +93 -45
- package/dist/api/schema.d.ts +1 -1
- package/dist/api/schema.js +4 -4
- package/dist/api.d.ts +1 -1
- package/dist/api.js +40 -40
- package/dist/{app-DRFrC8Mw.d.ts → app-DA8-hCMj.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +31 -33
- package/dist/{background-compaction-queue-DrKi7w3d.js → background-compaction-queue-iZXadLV3.js} +56 -6
- package/dist/{catalog-runtime-D7xapBAX.js → catalog-runtime-kkE3hvCX.js} +1 -1
- package/dist/{channel-access-CJGfNTdn.js → channel-access-mt7K6dPh.js} +2 -2
- package/dist/cli/chat.js +16 -16
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +2 -2
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-kXB2Y5tl.js → config-CWbwKj0j.js} +3 -3
- package/dist/{continue-in-slack-O6pV5004.js → continue-in-slack-CxyFzdlF.js} +6 -6
- package/dist/{conversation-feed-uNOv_x68.js → conversation-feed-BEXLD3Me.js} +13 -2
- package/dist/{conversation-privacy-L4ja1_W6.js → conversation-privacy-BrMiDN61.js} +1 -1
- package/dist/{conversation-turn-CeLbHqdw.js → conversation-turn-B35eu0uz.js} +63 -45
- package/dist/{credential-sync-I8VBGk05.js → credential-sync-DWTOEQrm.js} +15 -16
- package/dist/{credentialed-Cb6E2phL.js → credentialed-Dyv8b-lu.js} +12 -14
- package/dist/{db-BbC5stfa.d.ts → db-DYGcXYl3.d.ts} +1 -1
- package/dist/{db-LAyyX8tk.js → db-PwSRzWWn.js} +17 -19
- package/dist/{executor-SCub-fAq.js → executor-CgWyWfYz.js} +2 -4
- package/dist/{html-BCZ3Xtb_.js → html-DidUcRhI.js} +6 -6
- package/dist/ingest-B0AggUEC.js +7931 -0
- package/dist/{install-DCFJFkC0.js → install-2urLLXNt.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-B_m-4TJw.js → lineage-BXplQAVH.js} +2 -2
- package/dist/{list-CN2QA2R9.js → list-DyIyReSV.js} +82 -69
- package/dist/{logging-dQ9ZRGQ8.js → logging-DNt-qOIO.js} +1 -1
- package/dist/{media-CYm1QD8T.js → media-B0pZJ0bG.js} +9 -6
- package/dist/{message-DSXGj1hM.js → message-Z5YKC-Af.js} +23 -9
- package/dist/{model-input--TrP9hYV.js → model-input-BhPJYdSV.js} +3 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-DHCZC6B4.js → oauth-callback-server-ByvDdcdY.js} +2 -2
- package/dist/{oauth-relay-pPMGnDZt.js → oauth-relay-D-kK0yoN.js} +1 -1
- package/dist/{registry-CZOzddwu.js → registry-POH4bZC4.js} +1 -1
- package/dist/{statuses-_cRJHXK7.js → reporting-window-C4dbzDiR.js} +1 -27
- package/dist/request-deadline-BUiRYQYj.js +24 -0
- package/dist/{resolve-cKOQ14Dh.js → resolve-CWtBNSKP.js} +3 -3
- package/dist/{runner-DBfUW44l.js → runner-CsZ_VRxp.js} +8 -8
- package/dist/{sandbox-egress-signals-BVF_xAm1.js → sandbox-egress-signals-FbCk1FkN.js} +1 -1
- package/dist/{schema-BEHKxr4I.d.ts → schema-DBf18QPS.d.ts} +131 -912
- package/dist/{schema-Bk9Nm2E8.js → schema-DojR2uCL.js} +4 -4
- package/dist/{service-account-CVYsFjty.js → service-account-CDYb9hfX.js} +3 -3
- package/dist/{service-account-Ts4ulcrV.js → service-account-o15pZWcJ.js} +5 -5
- package/dist/{skills-VTnhAJWm.js → skills-B0jP4whm.js} +2 -2
- package/dist/{slack-conversation-unfurl-fuLnF1jE.js → slack-conversation-unfurl-D26t9kBC.js} +8 -8
- package/dist/{spawn-vxAarlX5.js → spawn-BjljgExZ.js} +14 -33
- package/dist/{start-conversation-CEn2KH1A.js → start-conversation-DbVujrwO.js} +10 -196
- package/dist/{state-C1P3_Ywk.js → state-BTawTCme.js} +4 -4
- package/dist/{result-event-type-BdIJuZxg.js → statuses-BKwqCPhj.js} +25 -4
- package/dist/{store-DFZaN-Ix.js → store-CjXrp-Up.js} +3 -3
- package/dist/{task-queue-Cx4Lmjyk.js → task-queue-Cwlatjz3.js} +4 -4
- package/dist/{task-runner-CbTwFA6k.js → task-runner--Ke8KSMf.js} +11 -11
- package/dist/{thread-context-BkAZDTX2.js → thread-context-B8exINEe.js} +6 -7
- package/dist/{thread-state-DhPndWi1.js → turn-membership-DTR3SaKD.js} +251 -17
- package/dist/{validation-nIzMtAVJ.js → validation-Ce0qbMlT.js} +1 -1
- package/dist/{vercel-queue-hW90XzbG.js → vercel-queue-q4z8w5QO.js} +2 -2
- package/dist/{version-Brbtz4Qf.js → version-DFh4n9nr.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{warmup-BDA5myRK.js → warmup-D5hzqTcp.js} +44 -2969
- package/dist/{worker-D63RcaVD.js → worker-CDg9Lbpg.js} +6 -6
- package/migrations/0158_keep_legacy_archive_columns.sql +5 -0
- package/migrations/0159_conversation_embeddings_fk_validate.sql +5 -0
- package/migrations/meta/0158_snapshot.json +6515 -0
- package/migrations/meta/0159_snapshot.json +6515 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +5 -5
- package/dist/callback-mFlTUWWx.js +0 -75
- package/dist/child-message-DcsritGf.js +0 -179
- package/dist/ingest-BDf3D50j.js +0 -3836
- package/dist/result-DcvEOe1r.js +0 -574
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Cr as runNonInteractiveCommand, _r as SANDBOX_WORKSPACE_ROOT, fr as SANDBOX_COMMAND_PATH } from "./credentialed-
|
|
2
|
-
import { E as withSpan, b as setSpanAttributes } from "./logging-
|
|
1
|
+
import { Cr as runNonInteractiveCommand, _r as SANDBOX_WORKSPACE_ROOT, fr as SANDBOX_COMMAND_PATH } from "./credentialed-Dyv8b-lu.js";
|
|
2
|
+
import { E as withSpan, b as setSpanAttributes } from "./logging-DNt-qOIO.js";
|
|
3
3
|
// src/chat/sandbox/resources.ts
|
|
4
4
|
let configuredResources;
|
|
5
5
|
function resourcesFromEnv() {
|
package/dist/instrumentation.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as getClient, c as init, i as getActiveSpan, o as getGlobalScope, p as spanToJSON, s as getTraceData } from "./sentry-CPbZjomA.js";
|
|
2
|
-
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-
|
|
2
|
+
import { n as getCurrentConversationPrivacy } from "./conversation-privacy-BrMiDN61.js";
|
|
3
3
|
import { n as isPushServiceHost } from "./push-endpoint-CO-nomUd.js";
|
|
4
4
|
import { n as redactSandboxEgressProxyPath } from "./proxy-path-BHYoKZdq.js";
|
|
5
5
|
import { n as promoteHttpRouteName, r as routeNameMiddleware, t as nameRequestRoute } from "./sentry-route-name-C6EIzAGP.js";
|
|
6
6
|
import { t as consumePrivateTraceResultMarker } from "./private-trace-result-CE7_lEdq.js";
|
|
7
|
-
import { B as getDeploymentServiceVersion, V as getDeploymentTelemetryAttributes } from "./logging-
|
|
7
|
+
import { B as getDeploymentServiceVersion, V as getDeploymentTelemetryAttributes } from "./logging-DNt-qOIO.js";
|
|
8
8
|
import { performance } from "node:perf_hooks";
|
|
9
9
|
import { subscribe, unsubscribe } from "node:diagnostics_channel";
|
|
10
10
|
// src/chat/pi/gateway-request-timing.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as getDb, tt as conversationKindFromRow } from "./db-
|
|
2
|
-
import { H as juniorConversations } from "./executor-
|
|
1
|
+
import { o as getDb, tt as conversationKindFromRow } from "./db-PwSRzWWn.js";
|
|
2
|
+
import { H as juniorConversations } from "./executor-CgWyWfYz.js";
|
|
3
3
|
import { desc, eq, sql } from "drizzle-orm";
|
|
4
4
|
// src/chat/conversations/lineage.ts
|
|
5
5
|
/**
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
import { Aa as ownerConversationId, Ao as getSlackClient, Ar as getDispatchConversationId, Ba as listFiringInboxSnoozeTriggers, Bi as findMatchingEventAutomations, Br as markDispatchCompleted, Ca as dismissOpenInboxItems, Co as verifyScheduledAutomationCredentialSubject, Di as getDashboardLinkFilter, Do as downloadPrivateSlackFile, Dr as claimDispatchMailboxAppend, Eo as SlackActionError, Er as buildDispatchId, Et as createCodeChangePublisher, Fa as SNOOZE_TIMER_EVENT_TYPE, Fr as getPluginDispatchProjection, Ha as settleInboxSnoozes, Ho as updateTimerIndex, Hr as markDispatchRunning, Ii as blockEventAutomation, Ir as isTerminalDispatchStatus, Jn as createPluginAnnotations, Ka as getEventCatalog, Ki as admitEventAutomationRun, Ko as eventGuidance, Li as collectEventAutomationMatchKeys, Lo as streamPrivateSlackFile, Ma as takeInboxItem, Mi as isDashboardLink, Mn as createPluginEmbedder, Mo as isDmChannel, Mr as getDispatchInputMessageId, Ni as parseDashboardConversationLink, No as isSlackRequestTimeout, Nr as getDispatchRecord, Oa as listReplyActionItems, Or as confirmDispatchMailboxAppend, Pa as waitingConversationIdsQuery, Pi as parseDashboardPersonLink, Po as normalizeSlackConversationId, Pr as getDispatchTurnId, Pt as createPluginState, Ro as withSlackRetries, Rr as markDispatchAwaitingResume, So as verifyEventAutomationCredentialSubject, Tt as createPluginInboxItems, Uo as CORE_EVENT_NAMESPACE, Ur as notifyAutomationBlocked, Vr as markDispatchFailed, Wr as addReactionToMessage, Xa as slackChannelMessageReplyThreadTs, Xn as listConversationAnnotationsById, Yi as automationVersionOf, Yn as listConversationAnnotations, Za as slackChannelMessageRunsAutomation, Zr as removeReactionFromMessage, _a as fallbackShortTitle, an as resolveBaseUrl, as as createPluginCache, bo as bindScheduledAutomationCredentialSubject, co as collectEventMatchKeys, cs as completeText, da as readAutomationTitlesByConversationId, di as slackMentionedUserIds, er as lookupSlackUser, fa as recordAutomationExecution, fi as wrapBareSlackUserIds, fo as findMatchingWatches, h as getPlugins, ha as AUTOMATION_ALERT_STEP_FIELD_ID, ho as listConversationsWithWatches, ii as SLACK_USER_MENTION_RE, jr as getDispatchIdForConversation, ki as getDashboardPersonLink, ko as getHeaderString, kr as createOrGetDispatch, kt as createPluginConversationWatches, li as normalizeSlackStatusText, lr as basePluginContext, ma as AUTOMATION_ALERT_STEPS, o as applyPluginFormatMarkdown, oo as cancelSubscriptions, os as completeDecision, pi as truncateStatusText, ps as JUNIOR_NATIVE_EVENT_NAMESPACE, qi as eventAutomationRunLimitReason, r as createUserTokenStore, ra as existingConversationId, rt as storedMessageJson, s as createPluginEventPublisher, tr as lookupSlackUserNames, ui as slackMention, wa as getInboxItem, wi as getDashboardConversationLink, wo as verifySlackDirectCredentialSubject, wr as createPluginLogger, wt as PLUGIN_CHOICE_FIELD_ID, xa as closeInboxItem, xo as bindSlackDirectCredentialSubject, yo as bindEventAutomationCredentialSubject, yt as trimTrailingAssistantMessages, zn as conversationSearchVector, zr as markDispatchBlocked } from "./credentialed-
|
|
2
|
-
import { L as acquireActiveLock, O as resolveGatewayModel, P as createCache, U as estimateTextTokens, W as textCharsForTokens, a as getSlackBotToken, c as getSlackSigningSecret, ft as isProviderRetryError, n as botConfig, o as getSlackClientId, r as getChatConfig, s as getSlackClientSecret, v as normalizeSlackEmojiName } from "./config-
|
|
1
|
+
import { Aa as ownerConversationId, Ao as getSlackClient, Ar as getDispatchConversationId, Ba as listFiringInboxSnoozeTriggers, Bi as findMatchingEventAutomations, Br as markDispatchCompleted, Ca as dismissOpenInboxItems, Co as verifyScheduledAutomationCredentialSubject, Di as getDashboardLinkFilter, Do as downloadPrivateSlackFile, Dr as claimDispatchMailboxAppend, Eo as SlackActionError, Er as buildDispatchId, Et as createCodeChangePublisher, Fa as SNOOZE_TIMER_EVENT_TYPE, Fr as getPluginDispatchProjection, Ha as settleInboxSnoozes, Ho as updateTimerIndex, Hr as markDispatchRunning, Ii as blockEventAutomation, Ir as isTerminalDispatchStatus, Jn as createPluginAnnotations, Ka as getEventCatalog, Ki as admitEventAutomationRun, Ko as eventGuidance, Li as collectEventAutomationMatchKeys, Lo as streamPrivateSlackFile, Ma as takeInboxItem, Mi as isDashboardLink, Mn as createPluginEmbedder, Mo as isDmChannel, Mr as getDispatchInputMessageId, Ni as parseDashboardConversationLink, No as isSlackRequestTimeout, Nr as getDispatchRecord, Oa as listReplyActionItems, Or as confirmDispatchMailboxAppend, Pa as waitingConversationIdsQuery, Pi as parseDashboardPersonLink, Po as normalizeSlackConversationId, Pr as getDispatchTurnId, Pt as createPluginState, Ro as withSlackRetries, Rr as markDispatchAwaitingResume, So as verifyEventAutomationCredentialSubject, Tt as createPluginInboxItems, Uo as CORE_EVENT_NAMESPACE, Ur as notifyAutomationBlocked, Vr as markDispatchFailed, Wr as addReactionToMessage, Xa as slackChannelMessageReplyThreadTs, Xn as listConversationAnnotationsById, Yi as automationVersionOf, Yn as listConversationAnnotations, Za as slackChannelMessageRunsAutomation, Zr as removeReactionFromMessage, _a as fallbackShortTitle, an as resolveBaseUrl, as as createPluginCache, bo as bindScheduledAutomationCredentialSubject, co as collectEventMatchKeys, cs as completeText, da as readAutomationTitlesByConversationId, di as slackMentionedUserIds, er as lookupSlackUser, fa as recordAutomationExecution, fi as wrapBareSlackUserIds, fo as findMatchingWatches, h as getPlugins, ha as AUTOMATION_ALERT_STEP_FIELD_ID, ho as listConversationsWithWatches, ii as SLACK_USER_MENTION_RE, jr as getDispatchIdForConversation, ki as getDashboardPersonLink, ko as getHeaderString, kr as createOrGetDispatch, kt as createPluginConversationWatches, li as normalizeSlackStatusText, lr as basePluginContext, ma as AUTOMATION_ALERT_STEPS, o as applyPluginFormatMarkdown, oo as cancelSubscriptions, os as completeDecision, pi as truncateStatusText, ps as JUNIOR_NATIVE_EVENT_NAMESPACE, qi as eventAutomationRunLimitReason, r as createUserTokenStore, ra as existingConversationId, rt as storedMessageJson, s as createPluginEventPublisher, tr as lookupSlackUserNames, ui as slackMention, wa as getInboxItem, wi as getDashboardConversationLink, wo as verifySlackDirectCredentialSubject, wr as createPluginLogger, wt as PLUGIN_CHOICE_FIELD_ID, xa as closeInboxItem, xo as bindSlackDirectCredentialSubject, yo as bindEventAutomationCredentialSubject, yt as trimTrailingAssistantMessages, zn as conversationSearchVector, zr as markDispatchBlocked } from "./credentialed-Dyv8b-lu.js";
|
|
2
|
+
import { L as acquireActiveLock, O as resolveGatewayModel, P as createCache, U as estimateTextTokens, W as textCharsForTokens, a as getSlackBotToken, c as getSlackSigningSecret, ft as isProviderRetryError, n as botConfig, o as getSlackClientId, r as getChatConfig, s as getSlackClientSecret, v as normalizeSlackEmojiName } from "./config-CWbwKj0j.js";
|
|
3
3
|
import { t as mapBounded } from "./fan-out-Cod-yEHG.js";
|
|
4
|
-
import { E as withSpan, H as buildSentryConversationUrl, J as normalizeIdentityEmail, S as setTags, T as withLogContext, Y as toOptionalString, b as setSpanAttributes, f as logError, h as logWarn, m as logInfo, n as createChatSdkLogger, o as getActiveTraceContext, p as logException, s as getActiveTraceId, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-
|
|
4
|
+
import { E as withSpan, H as buildSentryConversationUrl, J as normalizeIdentityEmail, S as setTags, T as withLogContext, Y as toOptionalString, b as setSpanAttributes, f as logError, h as logWarn, m as logInfo, n as createChatSdkLogger, o as getActiveTraceContext, p as logException, s as getActiveTraceId, t as buildTurnFailureResponse, y as setSentryUser } from "./logging-DNt-qOIO.js";
|
|
5
5
|
import { h as startSpan, n as captureMessage } from "./sentry-CPbZjomA.js";
|
|
6
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
6
|
+
import { t as JUNIOR_VERSION } from "./version-DFh4n9nr.js";
|
|
7
7
|
import { f as parseSlackTeamId, i as isActorUserId, n as createSlackActor, o as isUserActor, r as createSlackResumeActor, s as parseActorUserId, t as createActor, u as parseSlackChannelId, v as parseSlackMessageTs } from "./actor-BsBdxDXQ.js";
|
|
8
|
-
import { $ as conversationWaitsOnUserSql, $t as
|
|
9
|
-
import { B as juniorAttachments, C as juniorConversationParticipants, H as juniorConversations, K as juniorUsers, L as juniorCodeChanges, M as juniorConversationEvents, P as juniorConversationAnnotations, U as juniorIdentities, V as juniorMessageAttachments, _ as juniorAutomationRuns, c as juniorTodos, g as juniorAutomations, h as juniorInboxItems, n as isPostgresErrorCode,
|
|
8
|
+
import { $ as conversationWaitsOnUserSql, $t as saveActorAvatar, A as isTopLevelKind, An as agentTurnUsageSchema, Cn as conversationPinnedForUser, Ct as isPluginInboxItem, Dn as addAgentTurnUsage, En as viewerMarksFromParticipant, F as turnBehavior, Fn as nextDetailVersion, Gt as identityAvatarUrl, H as parseSessionSource, L as locationFromRow, Ln as createSlackDestination, M as postsRunNotices, Mn as resolveRootConversationId, Q as conversationTurnFailedSql, Qt as resolveActorIdentityId, Sn as conversationIsNotUnsubscribedRoot, St as isOnlyAssignee, T as deliversFinalText, Tn as rootVisibleToViewer, U as conversationCostOf, Wt as hasUserPhoto, X as conversationIsActiveSql, Xt as userAvatarUrlsFromJoinedPhotos, Yt as userAvatarUrlsFromIdentities, Z as conversationStatusSql, _ as readConversationTrees, _n as createConversationAccessReader, _t as inboxItemPlugin, a as getConversationStore, b as loadConversationSlackTenantIds, et as executionIsActive, f as copyMessageLinks, ft as inboxItemForUser, gn as conversationAccessFromRows, gt as inboxItemOwnedByConversation, h as conversationAncestors, it as treeAwaitsAuthorization, jn as hasAgentTurnUsage, m as withConversationEventLock, mn as canAddConversationMessages, mt as inboxItemNeedsInput, o as getDb, ot as PLUGIN_INBOX_ITEM_KEY_PREFIX, r as getConversationEventStore, rt as awaitsAuthorizationFrom, s as getSqlExecutor, st as canActOnInboxItem, tt as conversationKindFromRow, un as readCachedUserByEmail, ut as canUserReadInboxItem, v as setArchivedAt, vn as readConversationAccessFromSql, wn as readMemberParticipants, x as lastMessageAtSql, xn as conversationIsMemberRoot, xt as isAutomationAlertItem, y as conversationSlackTenantId, yn as readConversationAccessRows, zn as requireSlackDestination } from "./db-PwSRzWWn.js";
|
|
9
|
+
import { B as juniorAttachments, C as juniorConversationParticipants, H as juniorConversations, K as juniorUsers, L as juniorCodeChanges, M as juniorConversationEvents, P as juniorConversationAnnotations, U as juniorIdentities, V as juniorMessageAttachments, _ as juniorAutomationRuns, c as juniorTodos, g as juniorAutomations, h as juniorInboxItems, n as isPostgresErrorCode, q as juniorDestinations, x as juniorAgentInvocations } from "./executor-CgWyWfYz.js";
|
|
10
10
|
import { d as contextProvenance, p as instructionProvenanceFor, t as KNOWN_CONVERSATION_EVENT_TYPES } from "./history-CYstOMKX.js";
|
|
11
|
-
import { a as getStateValues, i as getStateAdapter, o as setStateValues } from "./adapter-
|
|
12
|
-
import { f as actorLogContext, p as credentialContextForActor } from "./registry-
|
|
13
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
14
|
-
import { M as shouldEmitDevAgentTrace, S as canPauseConversationDelivery, a as getMcpOAuthCallbackPath, b as safeLinkUrl, c as latestProgressStatus, f as createSlackInboxItemShow, k as RetryableDeliveryError, l as resolveDestinationVisibility, n as executeAgentRun, o as createClientMetadata, r as buildAuthPauseResponse, s as readMcpClientInformation, t as createAgentRunner } from "./agent-runner-
|
|
15
|
-
import { d as PluginMcpClient, u as McpAuthorizationRequiredError, v as getMcpStoredOAuthCredentials } from "./service-account-
|
|
16
|
-
import { i as webActorUserIds } from "./state-
|
|
17
|
-
import { $ as
|
|
18
|
-
import { $ as conversationReportStatusSchema, Tt as MAX_ATTACHMENT_BYTES, Zt as answeredChoices, en as isEmptyUserInputAnswer, ft as conversationTreeStateSchema, i as isVisionImageMediaType, kt as readMessageAttachments, ot as activityPreviewText, r as detectImageMediaType, sn as automationTaskText, tn as normalizeUserInputAnswer, tt as conversationSurfaceSchema } from "./media-
|
|
19
|
-
import { f as readJuniorSecret, t as getVercelConversationWorkQueue } from "./vercel-queue-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { a as isConversationMember, i as getConversationInfo, l as listThreadReplies, o as isPublicSlackChannel, r as getChannelMessage } from "./channel-access-
|
|
24
|
-
import { r as isFileAttachment, s as storeAttachment } from "./store-
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
11
|
+
import { a as getStateValues, i as getStateAdapter, o as setStateValues } from "./adapter-CYAvJzZS.js";
|
|
12
|
+
import { f as actorLogContext, p as credentialContextForActor } from "./registry-POH4bZC4.js";
|
|
13
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-kkE3hvCX.js";
|
|
14
|
+
import { M as shouldEmitDevAgentTrace, S as canPauseConversationDelivery, a as getMcpOAuthCallbackPath, b as safeLinkUrl, c as latestProgressStatus, f as createSlackInboxItemShow, k as RetryableDeliveryError, l as resolveDestinationVisibility, n as executeAgentRun, o as createClientMetadata, r as buildAuthPauseResponse, s as readMcpClientInformation, t as createAgentRunner } from "./agent-runner-B5y9MsT-.js";
|
|
15
|
+
import { d as PluginMcpClient, u as McpAuthorizationRequiredError, v as getMcpStoredOAuthCredentials } from "./service-account-o15pZWcJ.js";
|
|
16
|
+
import { i as webActorUserIds } from "./state-BTawTCme.js";
|
|
17
|
+
import { $t as abandonTurnRecord, Ct as recordDeliveredAssistantMessage, Et as upsertConversationMessage, G as buildDeterministicAssistantMessageId, Ht as AuthorizationFlowDisabledError, In as finalizeFailedTurnReplyWithEvent, J as commitMessages, K as buildDeterministicTurnId, Kt as clearPendingAuth, Ln as getAgentTurnDiagnosticsAttributes, Lt as createPluginEgress, M as getConversation, Mn as buildTurnErrorResponse, Mt as isEventConversationMessage, N as getConversationWorkState, Q as loadTurnProjection, Qt as saveTurnCheckpoint, Rn as requireTurnFailureEventId, Rt as PluginCredentialFailureError, St as normalizeConversationText, Tn as loadTurnStart, Tt as turnHasReply, X as loadConversationProjection, Xt as lostWorkerBeforeFirstSave, Yt as loadTurnCheckpoint, Zt as pauseLostWorkerTurn, _ as appendAndEnqueueInboundMessage, _t as estimateConversationMessagesTokens, an as recordTurnSummary, b as cancelHumanFacingPendingMessages, bn as canShareTurn, bt as latestConversationMessageSeq, c as notInheritedByForkChild, d as getPersistedThreadState, dr as persistWithRetry, dt as persistConversationMessageWindow, en as completeTurnRecord, f as persistThreadRuntimeState, fr as configValueSchema, ft as persistConversationMessages, gt as buildConversationContext, i as resolveTurnResumeRouting, in as listTurnSummaries, kt as EVENT_SYSTEM_ACTOR, l as getLocationConfigurationService, m as coerceThreadConversationState, mr as piMessageFromHistoryItem, mt as resolveConversationTitle, n as savedTurnMessages, nt as recordAuthorizationCompleted, p as persistThreadStateById, q as commitAcceptedReply, r as resolveConversationRouting, rn as getTurnRecord, st as recordSubscribedReplyRoute, tn as failTurnRecord, tr as getAssistantReplyText, u as getPersistedSandboxState, ut as hydrateConversationMessages, vt as getConversationMessageSlackTs, wn as getTurnLifecycle, wt as trimConversationMessages, xt as markConversationMessage, yn as canJoinTurn, yt as isHumanConversationMessage } from "./turn-membership-DTR3SaKD.js";
|
|
18
|
+
import { $ as conversationReportStatusSchema, Tt as MAX_ATTACHMENT_BYTES, Zt as answeredChoices, en as isEmptyUserInputAnswer, ft as conversationTreeStateSchema, i as isVisionImageMediaType, kt as readMessageAttachments, ot as activityPreviewText, r as detectImageMediaType, sn as automationTaskText, tn as normalizeUserInputAnswer, tt as conversationSurfaceSchema } from "./media-B0pZJ0bG.js";
|
|
19
|
+
import { f as readJuniorSecret, t as getVercelConversationWorkQueue } from "./vercel-queue-q4z8w5QO.js";
|
|
20
|
+
import { $t as markTurnCompleted, Bt as getTurnUserMessage, D as resolveSlackReplyTarget, E as stopAtAutomatedTurnLimit, Et as eventAuthorText, F as createChildConversationWorker, Fn as conversationSubtree, Gt as CooperativeTurnYieldError, Ht as getTurnUserReplyAttachmentContext, I as createDeliverToParent, In as conversationSubtreeColumns, It as resumeForPersonInput, Jt as getConversationTurnBoundaryError, Kt as TurnInputCommitLostError, M as stopConversation, Nt as resolveBotSlackTeamId, O as sendSlackReply, P as stopChildAgentsOf, Qt as markTurnClosed, R as enqueueAgentInvocationResult, Rn as isExperimentalFeatureEnabled, S as recordFailedDispatchTurn, T as getTurnAuthorization, Ut as getTurnUserSlackMessageTs, V as withAgentInvocationResultActors, Wt as ConversationTurnBoundaryError, Xt as isTurnInputCommitLostError, Yt as isCooperativeTurnYieldError, Zt as isTurnInputDeferredError, _n as renderTaskInput, b as createPausedTurns, c as resolveMailboxTurnWork, d as legacyWebMailboxMetadataSchema, dn as instructionActorFor, en as markTurnFailed, gt as recordFinishedTurnForAutomatedLimit, hn as withoutSavedSteeringMessages, in as getWebAuthorization, it as getChildAgentLabel, jt as resolveEventAuthor, on as loadInboxItemInput, qt as TurnInputDeferredError, sn as savedInputInstruction, t as ingestEvent, tn as startActiveTurn, un as buildSteeringPiMessage, vt as AgentRunError, x as getPausedTurnRequest, y as supersedeTurnForInput, yt as executeTurn } from "./ingest-B0AggUEC.js";
|
|
21
|
+
import { Ar as gapSegment, At as parseSlackMessageReference, Bt as readSlackRawMessageContext, Ct as setConversationSubscription, Er as MINUTE_MS, Et as throwApiError, Fn as readConversationSourceTask, Jn as findAutomationSkill, Kn as AutomationEditError, Mn as takeViewerAutomationAlertStep, Or as NO_REPLY_GAP_MS, Ot as renderAttachmentText, Pn as ViewerTaskNotFoundError, Tt as jsonResponse, Vt as resolveSlackChannelIdFromMessage, Xn as effectiveTaskOutcomes, Yn as missingAutomationSkillReason, br as connectedState, ct as archiveConversation, i as GLOBAL_GAPS_TTL_MS, ir as historyPeriodSavings, kt as renderBlockText, l as isConversationWorkDone, lr as replaceHistorySavings, lt as conversationReadPositionQuery, mt as deliverInboxItemChange, n as CONVERSATION_STATE_TTL_MS, nr as addHistoryWarmupCost, o as segmentGapsKey, r as GLOBAL_GAPS_MAX, rr as firstLiveSavingsDate, st as readLastUserMessageAtByConversation, t as ANSWER_TOOL_ENDINGS, tr as addHistoryPeriod, u as listConversationWork, xr as providerCacheTtlMs, zt as parseSlackThreadId } from "./warmup-D5hzqTcp.js";
|
|
22
|
+
import { C as recordSlackAttachment, _ as verifyAttachmentUploads, d as recordWebConversationActivity, f as webActorFromUser, l as createAndEnqueueConversation, m as AttachmentUploadError, o as acceptsWebMessages, s as appendAndEnqueueWebMessage, u as createConversationId, w as slackAttachmentsVersionQuery, x as readAttachmentVisionSummary, y as getSlackFileId } from "./start-conversation-DbVujrwO.js";
|
|
23
|
+
import { a as isConversationMember, i as getConversationInfo, l as listThreadReplies, o as isPublicSlackChannel, r as getChannelMessage } from "./channel-access-mt7K6dPh.js";
|
|
24
|
+
import { r as isFileAttachment, s as storeAttachment } from "./store-CjXrp-Up.js";
|
|
25
|
+
import { f as OPEN_TODO_STATUSES } from "./statuses-BKwqCPhj.js";
|
|
26
|
+
import { t as getTurnRequestDeadline } from "./request-deadline-BUiRYQYj.js";
|
|
27
27
|
import { t as webMessageId } from "./web-message-id-C6P83ans.js";
|
|
28
|
-
import { t as runWithSlackInstallation } from "./adapter-context-
|
|
29
|
-
import { B as webPageObjectCard, E as healthReportSchema, L as conversationObjectCard, R as messageObjectCard, _ as cancelConversationPendingMessagesResponseSchema, b as conversationPendingMessageDeliverySchema, c as pinConversationBodySchema, f as archiveConversationBodySchema, g as cancelConversationPendingMessagesBodySchema, h as conversationAutoArchiveSchema, l as pinConversationResponseSchema, m as archiveDoneConversationsResponseSchema, o as conversationSubscriptionBodySchema, p as archiveConversationResponseSchema, r as stopConversationTurnResponseSchema, s as conversationSubscriptionResponseSchema, z as personObjectCard } from "./conversation-feed-
|
|
30
|
-
import { a as withTurnSpan, i as turnInputTelemetry, n as createConversationTurnWorker, r as getTurnInputSpanAttributes } from "./conversation-turn-
|
|
31
|
-
import { n as attachmentFactLines, r as buildStoredAttachmentPromptText } from "./model-input
|
|
32
|
-
import {
|
|
33
|
-
import { t as
|
|
34
|
-
import { t as
|
|
35
|
-
import { t as
|
|
36
|
-
import { a as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import { r as canContinueInSlack } from "./continue-in-slack-O6pV5004.js";
|
|
28
|
+
import { t as runWithSlackInstallation } from "./adapter-context-CVsHoVSf.js";
|
|
29
|
+
import { B as webPageObjectCard, E as healthReportSchema, L as conversationObjectCard, R as messageObjectCard, _ as cancelConversationPendingMessagesResponseSchema, b as conversationPendingMessageDeliverySchema, c as pinConversationBodySchema, f as archiveConversationBodySchema, g as cancelConversationPendingMessagesBodySchema, h as conversationAutoArchiveSchema, l as pinConversationResponseSchema, m as archiveDoneConversationsResponseSchema, o as conversationSubscriptionBodySchema, p as archiveConversationResponseSchema, r as stopConversationTurnResponseSchema, s as conversationSubscriptionResponseSchema, z as personObjectCard } from "./conversation-feed-BEXLD3Me.js";
|
|
30
|
+
import { a as withTurnSpan, i as turnInputTelemetry, n as createConversationTurnWorker, r as getTurnInputSpanAttributes } from "./conversation-turn-B35eu0uz.js";
|
|
31
|
+
import { n as attachmentFactLines, r as buildStoredAttachmentPromptText } from "./model-input-BhPJYdSV.js";
|
|
32
|
+
import { t as bindMessageAgent } from "./message-Z5YKC-Af.js";
|
|
33
|
+
import { t as readConversationLineage } from "./lineage-BXplQAVH.js";
|
|
34
|
+
import { t as bindSpawnAgent } from "./spawn-BjljgExZ.js";
|
|
35
|
+
import { a as buildDeliveredTurnStatePatch, i as persistAuthPauseTurnState, n as loadThreadContextTrimFloor, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-B8exINEe.js";
|
|
36
|
+
import { a as readConversationEventPage, n as scheduleSessionCompletedPluginTasks, o as readConversationEventPageAfter, s as readConversationEventPageAround } from "./task-runner--Ke8KSMf.js";
|
|
37
|
+
import { s as sendVercelPluginTask } from "./task-queue-Cwlatjz3.js";
|
|
38
|
+
import { r as canContinueInSlack } from "./continue-in-slack-CxyFzdlF.js";
|
|
40
39
|
import * as z from "zod";
|
|
41
40
|
import pLimit from "p-limit";
|
|
42
41
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -8838,10 +8837,12 @@ function runCutoff(run) {
|
|
|
8838
8837
|
/**
|
|
8839
8838
|
* True when the participant row's root and every child conversation are idle
|
|
8840
8839
|
* and had no activity after the cutoff. Child activity does not move the
|
|
8841
|
-
* root's `lastActivityAt`, so the whole tree is checked.
|
|
8840
|
+
* root's `lastActivityAt`, so the whole tree is checked. A stopped
|
|
8841
|
+
* conversation counts from its stop: held input still saves Messages, which
|
|
8842
|
+
* would keep it from ever being quiet.
|
|
8842
8843
|
*/
|
|
8843
8844
|
function treeIsQuiet(run) {
|
|
8844
|
-
const active = getDb().select({ conversationId: juniorConversations.conversationId }).from(juniorConversations).where(and(or(eq(juniorConversations.conversationId, juniorConversationParticipants.rootConversationId), eq(juniorConversations.rootConversationId, juniorConversationParticipants.rootConversationId)), or(ne(juniorConversations.executionStatus, "idle"), gt(juniorConversations.
|
|
8845
|
+
const active = getDb().select({ conversationId: juniorConversations.conversationId }).from(juniorConversations).where(and(or(eq(juniorConversations.conversationId, juniorConversationParticipants.rootConversationId), eq(juniorConversations.rootConversationId, juniorConversationParticipants.rootConversationId)), or(ne(juniorConversations.executionStatus, "idle"), gt(sql`coalesce(${juniorConversations.stoppedAt}, ${juniorConversations.lastActivityAt})`, runCutoff(run)))));
|
|
8845
8846
|
return sql`not exists (${active})`;
|
|
8846
8847
|
}
|
|
8847
8848
|
/**
|
|
@@ -8859,16 +8860,6 @@ function treeNeedsNoOne() {
|
|
|
8859
8860
|
return sql`not exists (${needing})`;
|
|
8860
8861
|
}
|
|
8861
8862
|
/**
|
|
8862
|
-
* True when no open Inbox item on the participant row's root or a child
|
|
8863
|
-
* conversation needs a person. Archive applies to everyone, so a
|
|
8864
|
-
* conversation that waits on anyone must stay in the feed.
|
|
8865
|
-
*/
|
|
8866
|
-
function notWaitingOnAnyone() {
|
|
8867
|
-
const linked = alias(juniorConversations, "linked_conversation");
|
|
8868
|
-
const waiting = getDb().select({ itemId: juniorInboxItemConversations.itemId }).from(juniorInboxItemConversations).innerJoin(juniorInboxItems, eq(juniorInboxItems.id, juniorInboxItemConversations.itemId)).innerJoin(linked, eq(linked.conversationId, juniorInboxItemConversations.conversationId)).where(and(inboxItemNeedsSomeone(), or(eq(linked.conversationId, juniorConversationParticipants.rootConversationId), eq(linked.rootConversationId, juniorConversationParticipants.rootConversationId))));
|
|
8869
|
-
return sql`not exists (${waiting})`;
|
|
8870
|
-
}
|
|
8871
|
-
/**
|
|
8872
8863
|
* True when no subscribed participant of the row's root pinned it or turned
|
|
8873
8864
|
* auto-archive off for it. Archive applies to everyone, so one person's run
|
|
8874
8865
|
* must not undo another person's pin or manual restore. A person who
|
|
@@ -8879,11 +8870,14 @@ function noParticipantKeepsRoot() {
|
|
|
8879
8870
|
const keeping = getDb().select({ userId: keeper.userId }).from(keeper).where(and(eq(keeper.rootConversationId, juniorConversationParticipants.rootConversationId), isNull(keeper.unsubscribedAt), or(isNotNull(keeper.pinnedAt), eq(keeper.autoArchive, false))));
|
|
8880
8871
|
return sql`not exists (${keeping})`;
|
|
8881
8872
|
}
|
|
8882
|
-
/**
|
|
8883
|
-
|
|
8873
|
+
/**
|
|
8874
|
+
* True when the participant row's root is not archived and is not a Lead.
|
|
8875
|
+
* The Lead is the dashboard home, not a feed row, so it is never archived.
|
|
8876
|
+
*/
|
|
8877
|
+
function rootIsArchivable() {
|
|
8884
8878
|
const root = alias(juniorConversations, "archive_root");
|
|
8885
|
-
const
|
|
8886
|
-
return sql`exists (${
|
|
8879
|
+
const eligible = getDb().select({ conversationId: root.conversationId }).from(root).where(and(eq(root.conversationId, juniorConversationParticipants.rootConversationId), isNull(root.archivedAt), or(isNull(root.kind), ne(root.kind, "lead"))));
|
|
8880
|
+
return sql`exists (${eligible})`;
|
|
8887
8881
|
}
|
|
8888
8882
|
/**
|
|
8889
8883
|
* Conditions that a participant row must meet when it is selected and again
|
|
@@ -8891,7 +8885,7 @@ function rootIsUnarchived() {
|
|
|
8891
8885
|
* changed setting wins over a stale read.
|
|
8892
8886
|
*/
|
|
8893
8887
|
function archivableRow(run) {
|
|
8894
|
-
return and(eq(juniorConversationParticipants.userId, run.userId), isNull(juniorConversationParticipants.unsubscribedAt),
|
|
8888
|
+
return and(eq(juniorConversationParticipants.userId, run.userId), isNull(juniorConversationParticipants.unsubscribedAt), rootIsArchivable(), noParticipantKeepsRoot(), lte(juniorConversationParticipants.lastMessageAt, runCutoff(run)), runOptsIn(run), run.kind === "scheduled" ? sql`${juniorUsers.autoArchiveGraceHours} <= ${run.graceHours}` : void 0, treeIsQuiet(run), treeNeedsNoOne());
|
|
8895
8889
|
}
|
|
8896
8890
|
/**
|
|
8897
8891
|
* One page of the user's participant rows on unarchived roots that may be
|
|
@@ -8933,10 +8927,7 @@ async function selectDoneRoots(rootIds, cutoffMs) {
|
|
|
8933
8927
|
async function archiveRoots(run, rootConversationIds) {
|
|
8934
8928
|
if (rootConversationIds.length === 0) return 0;
|
|
8935
8929
|
const archivable = getDb().select({ userId: juniorConversationParticipants.userId }).from(juniorConversationParticipants).innerJoin(juniorUsers, eq(juniorUsers.id, juniorConversationParticipants.userId)).where(and(eq(juniorConversationParticipants.rootConversationId, juniorConversations.conversationId), archivableRow(run)));
|
|
8936
|
-
return
|
|
8937
|
-
archivedAt: run.now,
|
|
8938
|
-
detailVersion: nextDetailVersion
|
|
8939
|
-
}).where(and(inArray(juniorConversations.conversationId, rootConversationIds), isNull(juniorConversations.archivedAt), sql`exists (${archivable})`)).returning({ conversationId: juniorConversations.conversationId })).length;
|
|
8930
|
+
return await setArchivedAt(getDb(), rootConversationIds, run.now, and(isNull(juniorConversations.archivedAt), sql`exists (${archivable})`));
|
|
8940
8931
|
}
|
|
8941
8932
|
/** Archive every done conversation of one user and count the rows. */
|
|
8942
8933
|
async function archiveUserDoneConversations(run) {
|
|
@@ -8963,7 +8954,7 @@ async function archiveUserDoneConversations(run) {
|
|
|
8963
8954
|
* conversation. Most users never turn it on, so the sweep reads only these.
|
|
8964
8955
|
*/
|
|
8965
8956
|
async function selectAutoArchiveUsers() {
|
|
8966
|
-
const optedInConversation = getDb().select({ userId: juniorConversationParticipants.userId }).from(juniorConversationParticipants).where(and(eq(juniorConversationParticipants.userId, juniorUsers.id), eq(juniorConversationParticipants.autoArchive, true),
|
|
8957
|
+
const optedInConversation = getDb().select({ userId: juniorConversationParticipants.userId }).from(juniorConversationParticipants).where(and(eq(juniorConversationParticipants.userId, juniorUsers.id), eq(juniorConversationParticipants.autoArchive, true), rootIsArchivable()));
|
|
8967
8958
|
return await getDb().select({
|
|
8968
8959
|
graceHours: juniorUsers.autoArchiveGraceHours,
|
|
8969
8960
|
id: juniorUsers.id
|
|
@@ -12051,16 +12042,20 @@ async function readFeedThreadRecords(db, rootIds) {
|
|
|
12051
12042
|
* Nest the shown Threads of `readFeedThreadRecords` under their nearest shown
|
|
12052
12043
|
* ancestor. A Thread shows when it and every ancestor have no
|
|
12053
12044
|
* `archived_at`. A Thread uses the access of its root. `tree` holds the
|
|
12054
|
-
* trees of at least the listed roots.
|
|
12045
|
+
* trees of at least the listed roots. Each root lists at most
|
|
12046
|
+
* `CONVERSATION_FEED_THREAD_LIMIT` Threads, depth first in activity order,
|
|
12047
|
+
* so a kept Thread always has its parent.
|
|
12055
12048
|
*/
|
|
12056
12049
|
function nestFeedThreads(records, tree, accessByRoot) {
|
|
12057
12050
|
if (!records) return /* @__PURE__ */ new Map();
|
|
12058
12051
|
const { firstHumanMessageTexts, rootIds, threads } = records;
|
|
12059
12052
|
const childrenByParent = /* @__PURE__ */ new Map();
|
|
12053
|
+
const placedByRoot = /* @__PURE__ */ new Map();
|
|
12060
12054
|
for (const { conversation, row } of threads) {
|
|
12061
12055
|
const parentId = findThreadPlacement(conversation.conversationId, tree, rootIds);
|
|
12062
12056
|
if (!parentId) continue;
|
|
12063
12057
|
const rootId = row.conversation.rootConversationId;
|
|
12058
|
+
if (rootId) placedByRoot.set(rootId, (placedByRoot.get(rootId) ?? 0) + 1);
|
|
12064
12059
|
const summary = conversationSummaryFromStoredConversation({
|
|
12065
12060
|
access: rootId ? accessByRoot.get(rootId) : void 0,
|
|
12066
12061
|
conversation,
|
|
@@ -12073,16 +12068,26 @@ function nestFeedThreads(records, tree, accessByRoot) {
|
|
|
12073
12068
|
siblings.push(summary);
|
|
12074
12069
|
childrenByParent.set(parentId, siblings);
|
|
12075
12070
|
}
|
|
12076
|
-
const nest = (items) => items.
|
|
12071
|
+
const nest = (items, budget) => items.flatMap((item) => {
|
|
12072
|
+
if (budget.left === 0) return [];
|
|
12073
|
+
budget.left -= 1;
|
|
12077
12074
|
const children = childrenByParent.get(item.conversationId);
|
|
12078
|
-
|
|
12075
|
+
const nested = children ? nest(children, budget) : [];
|
|
12076
|
+
return [nested.length > 0 ? {
|
|
12079
12077
|
...item,
|
|
12080
|
-
threads:
|
|
12081
|
-
} : item;
|
|
12078
|
+
threads: nested
|
|
12079
|
+
} : item];
|
|
12082
12080
|
});
|
|
12083
12081
|
return new Map([...rootIds].flatMap((rootId) => {
|
|
12084
12082
|
const children = childrenByParent.get(rootId);
|
|
12085
|
-
|
|
12083
|
+
if (!children) return [];
|
|
12084
|
+
const budget = { left: 100 };
|
|
12085
|
+
const nested = nest(children, budget);
|
|
12086
|
+
const shown = 100 - budget.left;
|
|
12087
|
+
return [[rootId, {
|
|
12088
|
+
omittedThreadCount: (placedByRoot.get(rootId) ?? 0) - shown,
|
|
12089
|
+
threads: nested
|
|
12090
|
+
}]];
|
|
12086
12091
|
}));
|
|
12087
12092
|
}
|
|
12088
12093
|
// src/api/conversations/priority.ts
|
|
@@ -12484,6 +12489,11 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
12484
12489
|
filter,
|
|
12485
12490
|
include,
|
|
12486
12491
|
includePrivateMatches: true,
|
|
12492
|
+
limit: limit + 50 + 1,
|
|
12493
|
+
pinnedForUserId: {
|
|
12494
|
+
pinned: false,
|
|
12495
|
+
userId: filter.userId
|
|
12496
|
+
},
|
|
12487
12497
|
status: "active",
|
|
12488
12498
|
waitingForUserId: filter.userId
|
|
12489
12499
|
}) : []
|
|
@@ -12491,11 +12501,14 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
12491
12501
|
const page = pageRows.slice(0, limit);
|
|
12492
12502
|
const lastRow = pageRows.length > limit ? page.at(-1) : void 0;
|
|
12493
12503
|
const rows = [...pinnedRows, ...page];
|
|
12504
|
+
let waitingRowsTruncated = false;
|
|
12494
12505
|
if (firstPage) {
|
|
12495
12506
|
const loaded = new Set(rows.map((row) => row.conversation.conversationId));
|
|
12496
12507
|
const outsidePage = waitingRows.filter((row) => !loaded.has(row.conversation.conversationId));
|
|
12497
|
-
|
|
12498
|
-
|
|
12508
|
+
waitingRowsTruncated = outsidePage.length > 50;
|
|
12509
|
+
const waiting = outsidePage.slice(0, 50);
|
|
12510
|
+
options.onWaitingRows?.(waiting.length);
|
|
12511
|
+
rows.push(...waiting);
|
|
12499
12512
|
}
|
|
12500
12513
|
const conversations = rows.map((row) => conversationFromRecordRow(row));
|
|
12501
12514
|
const conversationIds = conversations.map((conversation) => conversation.conversationId);
|
|
@@ -12558,12 +12571,11 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
12558
12571
|
...conversationWork.finishedAtById[conversation.conversationId] ? { finishedWorkAt: conversationWork.finishedAtById[conversation.conversationId] } : void 0,
|
|
12559
12572
|
...unfinishedWork.has(conversation.conversationId) ? { unfinishedWork: true } : void 0
|
|
12560
12573
|
};
|
|
12561
|
-
const annotations = access?.canViewPrivateContent ? annotationsByConversation.get(conversation.conversationId) ?? [] : [];
|
|
12562
12574
|
const activityPreview = visibleActivityPreviews.get(conversation.conversationId);
|
|
12563
12575
|
const participants = access?.canViewPrivateContent ? participantsByConversation.get(conversation.conversationId) : void 0;
|
|
12564
12576
|
const threads = threadsByRoot.get(conversation.conversationId);
|
|
12565
12577
|
const media = access?.canViewPrivateContent ? row.media : null;
|
|
12566
|
-
const links = access?.canViewPrivateContent && row.links ? pickFeedLinks(conversation.conversationId, row.links, annotationUrls(
|
|
12578
|
+
const links = access?.canViewPrivateContent && row.links ? pickFeedLinks(conversation.conversationId, row.links, annotationUrls(visibleAnnotationsByConversation.get(conversation.conversationId))) : [];
|
|
12567
12579
|
const lastMessageAt = row.lastMessageAt?.toISOString();
|
|
12568
12580
|
const treeRead = treeStateByConversation.get(conversation.conversationId);
|
|
12569
12581
|
const viewerAnswer = access?.canViewPrivateContent ? feedViewerAnswer(row.viewerAnswer) : void 0;
|
|
@@ -12574,13 +12586,13 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
12574
12586
|
...row.awaitingAuthorization ? { awaitingAuthorization: true } : void 0,
|
|
12575
12587
|
...row.latestTurnFailed ? { latestTurnFailed: true } : void 0,
|
|
12576
12588
|
...lastMessageAt ? { lastMessageAt } : void 0,
|
|
12577
|
-
...threads ? { threads } : void 0,
|
|
12589
|
+
...threads ? { threads: threads.threads } : void 0,
|
|
12590
|
+
...threads?.omittedThreadCount ? { omittedThreadCount: threads.omittedThreadCount } : void 0,
|
|
12578
12591
|
...participants && participants.length > 0 ? { participants } : void 0,
|
|
12579
12592
|
...activityPreview ? { activityPreview } : void 0,
|
|
12580
12593
|
...viewerAnswer ? { viewerAnswer } : void 0,
|
|
12581
12594
|
...media?.length ? { media } : void 0,
|
|
12582
12595
|
...links.length > 0 ? { links } : void 0,
|
|
12583
|
-
...annotations.length > 0 ? { annotations } : void 0,
|
|
12584
12596
|
...sidebarAnnotationsByConversation[conversation.conversationId] ? { sidebarAnnotations: sidebarAnnotationsByConversation[conversation.conversationId] } : void 0,
|
|
12585
12597
|
isPriority: isConversationPriority({
|
|
12586
12598
|
lastSeenAt: summary.lastSeenAt,
|
|
@@ -12594,7 +12606,8 @@ async function readConversationFeedFromSql(options = {}) {
|
|
|
12594
12606
|
at: lastRow.activityCursor,
|
|
12595
12607
|
conversationId: lastRow.conversation.conversationId
|
|
12596
12608
|
}) } : void 0,
|
|
12597
|
-
source: "conversation_index"
|
|
12609
|
+
source: "conversation_index",
|
|
12610
|
+
...waitingRowsTruncated ? { waitingRowsTruncated: true } : void 0
|
|
12598
12611
|
};
|
|
12599
12612
|
}
|
|
12600
12613
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as withScope, a as getClient, d as setTag, f as setUser, h as startSpan, i as getActiveSpan, l as logger, n as captureMessage, p as spanToJSON, s as getTraceData, t as captureException } from "./sentry-CPbZjomA.js";
|
|
2
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
2
|
+
import { t as JUNIOR_VERSION } from "./version-DFh4n9nr.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
5
|
import { ConfigError, configureSync, getConfig, getLogger } from "@logtape/logtape";
|
|
@@ -1076,7 +1076,7 @@ const agentTypeSchema = z.string().regex(/^[a-z][a-z0-9_-]*$/);
|
|
|
1076
1076
|
const AGENT_TYPE_DEFINITIONS = {
|
|
1077
1077
|
explore: {
|
|
1078
1078
|
whenToUse: "Investigation across code, docs, logs, telemetry, or the web. Use it when an answer needs reading across many files or sources and you need the conclusion with evidence, not the raw output.",
|
|
1079
|
-
instructions: "You are an explore agent.
|
|
1079
|
+
instructions: "You are an explore agent. Investigate, and do not change anything outside your sandbox unless the task asks for it. Back your answer with exact evidence, such as paths, lines, links, and ids."
|
|
1080
1080
|
},
|
|
1081
1081
|
reviewer: {
|
|
1082
1082
|
whenToUse: "An independent second opinion on a change, plan, or claim. Give it the evidence to judge, not your conclusion.",
|
|
@@ -1333,12 +1333,9 @@ const conversationSummaryReportSchema = z.object({
|
|
|
1333
1333
|
locationUrl: z.string().url().optional(),
|
|
1334
1334
|
traceId: z.string().optional(),
|
|
1335
1335
|
/**
|
|
1336
|
-
* Plugin-
|
|
1337
|
-
*
|
|
1338
|
-
* Clients must not fetch provider state while rendering these links.
|
|
1336
|
+
* Plugin-selected annotations for the compact conversation row. The feed
|
|
1337
|
+
* sends only these; the detail also sends the full `annotations`.
|
|
1339
1338
|
*/
|
|
1340
|
-
annotations: z.array(conversationAnnotationReportSchema).optional(),
|
|
1341
|
-
/** Plugin-selected annotations for the compact conversation row. */
|
|
1342
1339
|
sidebarAnnotations: z.array(conversationSidebarAnnotationSchema).optional(),
|
|
1343
1340
|
assignedWork: z.boolean().optional(),
|
|
1344
1341
|
finishedWorkAt: z.string().datetime().optional(),
|
|
@@ -1756,6 +1753,12 @@ const conversationDetailReportSchema = conversationSummaryReportSchema.extend({
|
|
|
1756
1753
|
* Conversation last. Root Conversations omit it.
|
|
1757
1754
|
*/
|
|
1758
1755
|
agentTree: z.array(conversationAgentTreeNodeSchema).min(2).optional(),
|
|
1756
|
+
/**
|
|
1757
|
+
* Plugin-owned annotations of this Conversation and its tree, when the
|
|
1758
|
+
* viewer can see private content. Clients must not fetch provider state
|
|
1759
|
+
* while rendering them.
|
|
1760
|
+
*/
|
|
1761
|
+
annotations: z.array(conversationAnnotationReportSchema).optional(),
|
|
1759
1762
|
/** The viewer's effective auto-archive choice. Participants only. */
|
|
1760
1763
|
autoArchive: z.boolean().optional(),
|
|
1761
1764
|
/** The viewer can fork this conversation from an assistant reply. */
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { A as actorFromRun, j as toolInvocationDestination } from "./agent-runner-
|
|
3
|
-
import {
|
|
4
|
-
import { a as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { it as renderUntrustedTag } from "./config-kXB2Y5tl.js";
|
|
8
|
-
import { i as leadPersonParticipates } from "./start-conversation-CEn2KH1A.js";
|
|
2
|
+
import { A as actorFromRun, j as toolInvocationDestination } from "./agent-runner-B5y9MsT-.js";
|
|
3
|
+
import { H as createAgentInvocationForMessage, J as AgentMessageTargetError, Pt as enqueueAutomatedInput, U as messageChildAgent, Z as findChildAgentConversationId, _ as enqueueAgentInvocation, at as getLatestAgentInvocationForConversation, et as readChildConversationSender, ft as PARENT_AGENT_TARGET, nt as getActiveAgentInvocationForConversation, xt as EVENT_WAIT_MS, z as enqueueAgentMessageToParent } from "./ingest-B0AggUEC.js";
|
|
4
|
+
import { Zt as SYSTEM_IDENTITY_ID, a as getConversationStore, o as getDb, pn as canAccessConversation, vn as readConversationAccessFromSql } from "./db-PwSRzWWn.js";
|
|
5
|
+
import { it as renderUntrustedTag } from "./config-CWbwKj0j.js";
|
|
6
|
+
import { i as leadPersonParticipates } from "./start-conversation-DbVujrwO.js";
|
|
9
7
|
// src/chat/agent-invocations/top-level-message.ts
|
|
10
8
|
const AGENT_MESSAGE_EVENT_NAMESPACE = "junior";
|
|
11
9
|
/** Event type of a message from another top-level agent. */
|
|
@@ -138,15 +136,31 @@ function bindMessageAgent(run, options) {
|
|
|
138
136
|
delivery: "queued"
|
|
139
137
|
};
|
|
140
138
|
}
|
|
141
|
-
const
|
|
139
|
+
const message = {
|
|
142
140
|
actor,
|
|
143
141
|
childConversationId,
|
|
144
142
|
...run.credentialContext ? { credentialContext: run.credentialContext } : void 0,
|
|
145
|
-
destination: toolInvocationDestination(run),
|
|
146
143
|
idempotencyKey: `${run.turnId}:${call.toolCallId}`,
|
|
147
144
|
input: input.text,
|
|
148
145
|
parentConversationId: run.conversationId,
|
|
149
146
|
parentToolCallId: call.toolCallId
|
|
147
|
+
};
|
|
148
|
+
if (!await getLatestAgentInvocationForConversation(childConversationId)) {
|
|
149
|
+
const { delivery } = await messageChildAgent({
|
|
150
|
+
...message,
|
|
151
|
+
parentTurnId: run.turnId
|
|
152
|
+
}, {
|
|
153
|
+
...options,
|
|
154
|
+
queue
|
|
155
|
+
});
|
|
156
|
+
return {
|
|
157
|
+
conversationId: childConversationId,
|
|
158
|
+
delivery
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
const { invocation, queued } = await createAgentInvocationForMessage({
|
|
162
|
+
...message,
|
|
163
|
+
destination: toolInvocationDestination(run)
|
|
150
164
|
});
|
|
151
165
|
await enqueueAgentInvocation(invocation, {
|
|
152
166
|
...options,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { s as getSqlExecutor } from "./db-
|
|
3
|
-
import { i as isVisionImageMediaType, r as detectImageMediaType } from "./media-
|
|
4
|
-
import { i as readLiveAttachment } from "./store-
|
|
2
|
+
import { s as getSqlExecutor } from "./db-PwSRzWWn.js";
|
|
3
|
+
import { i as isVisionImageMediaType, r as detectImageMediaType } from "./media-B0pZJ0bG.js";
|
|
4
|
+
import { i as readLiveAttachment } from "./store-CjXrp-Up.js";
|
|
5
5
|
import { escapeTagText, renderTag } from "@sentry/junior-plugin-api";
|
|
6
6
|
// src/chat/attachments/model-input.ts
|
|
7
7
|
var model_input_exports = /* @__PURE__ */ __exportAll({ loadInputAttachments: () => loadInputAttachments });
|
package/dist/nitro.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as JuniorPluginSet } from "./plugins-fBrz8PCV.js";
|
|
2
|
-
import { i as JuniorDashboardOptions } from "./app-
|
|
2
|
+
import { i as JuniorDashboardOptions } from "./app-DA8-hCMj.js";
|
|
3
3
|
import { withSentryConfig as withSentryConfig$1 } from "@sentry/nitro";
|
|
4
4
|
type SentryNitroConfig = Parameters<typeof withSentryConfig$1>[0];
|
|
5
5
|
type SentryNitroOptions = NonNullable<Parameters<typeof withSentryConfig$1>[1]>;
|
package/dist/nitro.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { d as resolvePackageDir, t as discoverInstalledPluginPackageContent, u as isValidPackageName } from "./package-discovery-DD9vencX.js";
|
|
2
2
|
import { a as pluginRuntimeRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "./plugins-Bkk0XRo2.js";
|
|
3
|
-
import { a as CACHE_WARMUP_QUEUE_TOPIC,
|
|
4
|
-
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-
|
|
5
|
-
import { n as resolveConversationWorkQueueTopic } from "./vercel-queue-
|
|
6
|
-
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, B as getDeploymentServiceVersion, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./logging-
|
|
3
|
+
import { a as CACHE_WARMUP_QUEUE_TOPIC, d as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, t as BACKGROUND_COMPACTION_QUEUE_TOPIC } from "./background-compaction-queue-iZXadLV3.js";
|
|
4
|
+
import { t as PLUGIN_TASK_QUEUE_TOPIC } from "./task-queue-Cwlatjz3.js";
|
|
5
|
+
import { n as resolveConversationWorkQueueTopic } from "./vercel-queue-q4z8w5QO.js";
|
|
6
|
+
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, B as getDeploymentServiceVersion, D as JUNIOR_AUTO_ARCHIVE_CRON_SCHEDULE, F as JUNIOR_RETENTION_CRON_SCHEDULE, I as JUNIOR_RETENTION_ROUTE, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, M as JUNIOR_HEARTBEAT_CRON_SCHEDULE, N as JUNIOR_HEARTBEAT_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE } from "./logging-DNt-qOIO.js";
|
|
7
7
|
import { n as loadPluginSetFromModule, r as resolvePluginModule } from "./plugin-module-Cv2ETe8Y.js";
|
|
8
8
|
import path from "node:path";
|
|
9
9
|
import { cpSync, existsSync, mkdirSync, readdirSync, statSync } from "node:fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-
|
|
2
|
-
import { r as createUserTokenStore } from "./credentialed-
|
|
1
|
+
import { a as GET, n as syncLocalOAuthCredential, r as GET$1 } from "./credential-sync-DWTOEQrm.js";
|
|
2
|
+
import { r as createUserTokenStore } from "./credentialed-Dyv8b-lu.js";
|
|
3
3
|
import { createServer } from "node:http";
|
|
4
4
|
// src/chat/local/oauth-callback-server.ts
|
|
5
5
|
const LOCAL_OAUTH_TIMEOUT_MS = 6e5;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { f as readJuniorSecret } from "./vercel-queue-
|
|
2
|
+
import { f as readJuniorSecret } from "./vercel-queue-q4z8w5QO.js";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { SignJWT, jwtVerify } from "jose";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-DD9vencX.js";
|
|
2
|
-
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-
|
|
2
|
+
import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-DNt-qOIO.js";
|
|
3
3
|
import { o as isUserActor, s as parseActorUserId } from "./actor-BsBdxDXQ.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import path from "node:path";
|
|
@@ -121,30 +121,4 @@ function sumUtcHoursIntoSixHours(args) {
|
|
|
121
121
|
rows: bySix
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
const AGENT_INVOCATION_STATUSES = [
|
|
126
|
-
"pending",
|
|
127
|
-
"running",
|
|
128
|
-
"paused",
|
|
129
|
-
"blocked",
|
|
130
|
-
"completed",
|
|
131
|
-
"failed",
|
|
132
|
-
"stopped"
|
|
133
|
-
];
|
|
134
|
-
const AGENT_INVOCATION_MAILBOX_STATUSES = ["pending", "appended"];
|
|
135
|
-
/**
|
|
136
|
-
* Parent mailbox append state. Only terminal invocations have a value.
|
|
137
|
-
* `replaced` means the child still had open work, so a later agent invocation
|
|
138
|
-
* on the same child sends the result instead. `skipped` means a stop ended
|
|
139
|
-
* the work, so the result is never used. `steered` means the agent invocation
|
|
140
|
-
* that was running read the input as a steering message, so its result covers
|
|
141
|
-
* this one.
|
|
142
|
-
*/
|
|
143
|
-
const AGENT_INVOCATION_PARENT_MAILBOX_STATUSES = [
|
|
144
|
-
"pending",
|
|
145
|
-
"appended",
|
|
146
|
-
"replaced",
|
|
147
|
-
"skipped",
|
|
148
|
-
"steered"
|
|
149
|
-
];
|
|
150
|
-
export { HOUR_MS as a, fillUtcSixHours as c, trailingUtcDayWindow as d, trailingUtcHourWindow as f, DAY_MS as i, startOfUtcHour as l, utcHourKey as m, AGENT_INVOCATION_PARENT_MAILBOX_STATUSES as n, fillUtcDays as o, trailingUtcSixHourWindow as p, AGENT_INVOCATION_STATUSES as r, fillUtcHours as s, AGENT_INVOCATION_MAILBOX_STATUSES as t, sumUtcHoursIntoSixHours as u };
|
|
124
|
+
export { fillUtcSixHours as a, trailingUtcDayWindow as c, utcHourKey as d, fillUtcHours as i, trailingUtcHourWindow as l, HOUR_MS as n, startOfUtcHour as o, fillUtcDays as r, sumUtcHoursIntoSixHours as s, DAY_MS as t, trailingUtcSixHourWindow as u };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { r as getChatConfig } from "./config-CWbwKj0j.js";
|
|
2
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3
|
+
// src/chat/runtime/request-deadline.ts
|
|
4
|
+
const requestDeadlineStorage = new AsyncLocalStorage();
|
|
5
|
+
function createTurnRequestDeadline(startedAtMs) {
|
|
6
|
+
return {
|
|
7
|
+
startedAtMs,
|
|
8
|
+
deadlineAtMs: startedAtMs + Math.max(1, getChatConfig().functionMaxDurationSeconds * 1e3 - 2e4)
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
/** Return the host request deadline inherited by the current async turn. */
|
|
12
|
+
function getTurnRequestDeadline() {
|
|
13
|
+
return requestDeadlineStorage.getStore();
|
|
14
|
+
}
|
|
15
|
+
/** Run work under the current host request deadline, or start one. */
|
|
16
|
+
function runWithTurnRequestDeadline(callback, startedAtMs = Date.now()) {
|
|
17
|
+
if (requestDeadlineStorage.getStore()) return callback();
|
|
18
|
+
return runWithNewTurnRequestDeadline(callback, startedAtMs);
|
|
19
|
+
}
|
|
20
|
+
/** Run work that a new host request owns, even inside another request. */
|
|
21
|
+
function runWithNewTurnRequestDeadline(callback, startedAtMs = Date.now()) {
|
|
22
|
+
return requestDeadlineStorage.run(createTurnRequestDeadline(startedAtMs), callback);
|
|
23
|
+
}
|
|
24
|
+
export { runWithNewTurnRequestDeadline as n, runWithTurnRequestDeadline as r, getTurnRequestDeadline as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-
|
|
2
|
-
import { Jt as create, Qt as getSandboxProvider, Xt as isStale, zo as sleep } from "./credentialed-
|
|
3
|
-
import { i as getStateAdapter } from "./adapter-
|
|
1
|
+
import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-2urLLXNt.js";
|
|
2
|
+
import { Jt as create, Qt as getSandboxProvider, Xt as isStale, zo as sleep } from "./credentialed-Dyv8b-lu.js";
|
|
3
|
+
import { i as getStateAdapter } from "./adapter-CYAvJzZS.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
// src/chat/sandbox/snapshot/resolve.ts
|
|
6
6
|
const SNAPSHOT_CACHE_PREFIX = "junior:sandbox_snapshot_profile:v2";
|