@sentry/junior 0.289.0 → 0.290.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-tE1wnl0T.js → adapter-CHMVy-j0.js} +1 -1
- package/dist/{admin-BmsPbmO_.js → admin-C45Ap5Tn.js} +2 -2
- package/dist/{agent-runner-bvl8U5uH.js → agent-runner-CZjf6MOQ.js} +21 -21
- package/dist/api.d.ts +1 -1
- package/dist/api.js +22 -22
- package/dist/{app-Cu454FXq.d.ts → app-BB1j2krL.d.ts} +1 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +26 -26
- package/dist/{assistant-reply-1N9oxyyb.js → assistant-reply-BtIV0hq6.js} +1 -1
- package/dist/{background-compaction-queue-D36oCldp.js → background-compaction-queue-2gKhjRD3.js} +4 -4
- package/dist/{briefs-CV-1qkXa.js → briefs-BGke_Cz5.js} +2 -2
- package/dist/{catalog-runtime-BNK4uJVZ.js → catalog-runtime-BSOlVfXi.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 +4 -4
- package/dist/{config-DHAy7XlP.js → config-DHDub41t.js} +2 -2
- package/dist/{connections-C3VmH3cf.js → connections-BAb0fedk.js} +6 -6
- package/dist/{conversation-privacy-Bky_veSp.js → conversation-privacy-QRdLPH-9.js} +1 -1
- package/dist/{credential-sync-dY9o0YSj.js → credential-sync-YIMGiRk7.js} +13 -13
- package/dist/{db-BS2Kql3j.js → db-DBHig2sI.js} +3 -3
- package/dist/{db-BebRmhsH.d.ts → db-DCSmv9tz.d.ts} +1 -1
- package/dist/{executor-cc4nH86C.js → executor-DKrtH0k_.js} +29 -6
- package/dist/instrumentation.js +2 -2
- package/dist/{logging-CtCJmt9p.js → logging-f24cZPEj.js} +1 -1
- package/dist/{message-C5VuRcP9.js → message-BbBOajiX.js} +9 -9
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +2 -2
- package/dist/{oauth-callback-server-KRrYUZ35.js → oauth-callback-server-rHJYjFoz.js} +2 -2
- package/dist/{projection-BFJG58TG.js → projection-D-9aVaHj.js} +10 -10
- package/dist/{prompt-D15oftoL.js → prompt-C7SZhNDy.js} +3 -3
- package/dist/{registry-C_JrgqUz.js → registry-CwA-kSjW.js} +1 -1
- package/dist/{resolve-Cn_7JfP-.js → resolve-B5WJgt9k.js} +3 -3
- package/dist/{result-CIbQFLp6.js → result-B2sCVIwl.js} +8 -8
- package/dist/{runner-BwmaMJVO.js → runner-CZq7wyIh.js} +7 -7
- package/dist/{sandbox-egress-signals-BOQ8gn7i.js → sandbox-egress-signals-C4d6Pa9a.js} +1 -1
- package/dist/{service-account-AGw_pANb.js → service-account-B6OJtplS.js} +3 -3
- package/dist/{service-account-CLZfF8O1.js → service-account-BC73M8rj.js} +3 -3
- package/dist/{session-stop-CbzKf7UI.js → session-stop-1cku9Vm3.js} +11 -11
- package/dist/{skills-CcAJBquq.js → skills-BFopj5ID.js} +2 -2
- package/dist/{spawn-BvAk2vTI.js → spawn-B-1JlJwH.js} +5 -5
- package/dist/{stop-BQU4u7la.js → stop-CJweYiOH.js} +22 -22
- package/dist/{store-DE7NJOvQ.js → store-CK869JpC.js} +3 -3
- package/dist/{task-runner-Q_7duP_T.js → task-runner-XmXL9E-k.js} +10 -10
- package/dist/{turn-failure-response-aWZLfUM8.js → turn-failure-response-hhpek6Fn.js} +7 -7
- package/dist/{validation-BOoPeIJR.js → validation-DHQjCRFx.js} +1 -1
- package/dist/{version-Db0MFy61.js → version-DQgCf4FE.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-FFEFu9In.js → viewer-DG97nzP4.js} +3 -3
- package/dist/{warmup-DDzrA9Gv.js → warmup-C00-jOoN.js} +20 -26
- package/dist/{work-BBJK458E.js → work-Ch3EWO6u.js} +11 -11
- package/dist/{worker-2iU5RFyq.js → worker-B8kyM1fB.js} +6 -6
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
1
|
+
import { i as getChatConfig } from "./config-DHDub41t.js";
|
|
2
2
|
import { t as ACTIVE_LOCK_TTL_MS } from "./locks-D-0h111u.js";
|
|
3
3
|
import { createMemoryState } from "@chat-adapter/state-memory";
|
|
4
4
|
import { createRedisState } from "@chat-adapter/state-redis";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as getDb } from "./db-
|
|
2
|
-
import { r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-
|
|
1
|
+
import { o as getDb } from "./db-DBHig2sI.js";
|
|
2
|
+
import { r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-DG97nzP4.js";
|
|
3
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
4
4
|
// src/cli/admin.ts
|
|
5
5
|
/**
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { g as withActiveSpan, h as startSpan, i as getActiveSpan, m as startInactiveSpan, r as continueTrace, v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { $ as loadTurnCheckpoint, $a as readConversationAccessFromSql, $t as extractAssistantText, A as latestConversationMessageSeq, Aa as SANDBOX_RUNTIME, Ar as resolveAssignee, B as getAgentContextInputLimitTokens, Ba as SANDBOX_SKILLS_ROOT, Bi as slackMention, Ca as consumeSandboxEgressPermissionDeniedSignal, Ci as setWorkspaceSnapshotBuild, Co as saveObjectAnnotations, Da as buildSandboxEgressNetworkPolicy, Di as ensureDockerDaemon, Dn as findLegacyWebActorUserId, Do as defaultTimezone, Dr as EVERYONE_ASSIGNEE, Ei as isStale, En as createUserTokenStore, Fo as piMessageFromHistoryItem, Fr as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, G as AuthPausePersistenceError, Ga as buildCommandScript, Gi as openSlackDirectMessage, Gr as getWatch, Gt as TurnBudgetExceededError, H as PluginCredentialFailureError, Ha as sandboxSkillDir, Hi as addReactionToMessage, Hr as createWatch, I as upsertConversationMessage, Ii as escapeSlackMrkdwnText, Io as projectConversationEvents, Ir as RESOURCE_WATCH_TOOL_SOURCE, J as abandonReplacedPendingAuth, Ji as postSlackMessage, K as AuthorizationFlowDisabledError, Ka as buildNonInteractiveShellScript, Kr as listWatches, Kt as TurnSliceLimitExceededError, L as calculateContextCompactionTargetTokens, La as SANDBOX_COMMAND_PATH, Ln as getPluginTools, Lo as getConfigDefaults, Lr as STOP_WATCHING_TOOL_NAME, M as normalizeConversationText, Ma as tryWorkspaceRepoCheckoutPath, Mi as formatProviderLabel, Mn as createPluginHookRunner, Mr as resolveChannelCapabilities, N as recordDeliveredAssistantMessage, Na as workspaceRepoCheckoutPath, Nr as getSlackToolContext, Oa as resolveSandboxCommandEnvironment, Oi as getSandboxProvider, Oo as resolveUserTimezone, Or as activeParticipantUserIds, Pa as PluginToolDeniedError, Pi as resolveBaseUrl, Po as historyItemFromPiMessage, Pr as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, Q as continuableMessages, Qi as uploadFilesToConversation, Qt as persistWithRetry, R as getAgentBackgroundCompactionMarkTokens, Ra as SANDBOX_DATA_ROOT, Ri as normalizeSlackReplyMarkdown, Sa as consumeSandboxEgressAuthRequiredSignal, Si as setWorkspaceSnapshot, Sr as requireReviewItemLinks, T as resolveTaskTitle, Ti as hash, U as createPluginAuthOrchestration, Ua as sandboxSkillFile, Ui as deleteSlackMessage, Ur as deliverWatch, V as createPluginEgress, Va as SANDBOX_WORKSPACE_ROOT, Vr as createTimerWatch, W as authorizationId, Wa as sandboxSkillPathResolution, Wi as getSlackMessagePermalink, Wr as findMatchingWatches, Wt as TURN_LIMIT_WRAP_UP_MESSAGE, X as clearPendingAuth, Xa as canAccessConversation, Xt as isTurnExecutionLimitExceededError, Y as canReusePendingAuthLink, Yt as createTurnLimitGate, Zi as updateSlackMessage, Zt as CODEMODE_TOOL_NAME, _a as WorkspaceSnapshotNotReadyError, _n as TURN_CONTEXT_TAG, _r as canReadReviewItem, a as loadProjection, aa as getSlackClient, ar as getOpenReviewItemByDedupeKey, at as failTurnRecord, b as persistConversationMessages, ba as workspaceSnapshotNotReadyUserMessage, bi as invalidateReadySnapshot, bn as readParentAgentTask, br as readReviewItemAgentScope, c as recordAgentsInstructionsUpdated, ca as normalizeSlackConversationId, cn as isStandaloneRuntimeContextMessage, di as renderToolResultNudge, dn as normalizeToolNameFromResult, dr as searchReviewItems, ei as verifyTimerWatchCredentialSubject, en as getPiMessageRole, f as recordAuthorizationRequested, fi as createWorkspace, fn as retainRuntimeTurnContext, g as recordToolExecutionStarted, ga as wrapSandboxSetupError, gi as listWorkspaces, gr as canAgentChangeReviewItem, ha as throwSandboxOperationError, hi as getWorkspaceByName, hn as REQUEST_CONTEXT_SECTION_TAG, i as loadConversationProjection, ii as getDashboardReviewItemLink, in as hasTurnInput, ir as dismissOpenReviewItems, j as markConversationMessage, ja as sleep, ji as deliverOAuthAuthorization, jr as resolveAssignees, kn as getOAuthAccountProviders, kr as automationCreatorUserId, l as recordAttachmentsDelivered, la as runWithSlackInstallationToken, li as ToolInputError, ln as isToolResultError, m as recordMcpProviderConnected, ma as isAlreadyExistsError, mi as getWorkspace, mn as trimTrailingAssistantMessages, mr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, na as downloadPrivateSlackFile, ni as getDashboardConversationLink, nn as getUserMessageInstructionText, nr as closeReviewItem, nt as saveTurnCheckpoint, oa as isConversationScopedChannel, oi as getDashboardTaskLink, on as isAssistantMessage, or as getReviewItem, ot as getTurnRecord, p as recordGuardianActionReviewed, pa as isAbortError, pi as deleteWorkspace, pn as stripRuntimeTurnContext, pr as updateReviewItemContent, q as AuthorizationPauseError, qa as runNonInteractiveCommand, qt as TurnToolCallLimitExceededError, r as loadConnectedMcpProviders, ra as getFilePermalink, rt as abandonTurnRecord, sn as isContinuablePiBoundary, sr as insertReviewItem, t as commitAcceptedReply, ta as SlackActionError, tn as getTerminalAssistantMessages, ua as withSlackRetries, un as isToolResultMessage, v as hydrateConversationMessages, va as getWorkspaceSnapshotNotReadyError, vi as updateWorkspace, vo as matchSlackAttachments, w as fallbackShortTitle, wa as createSandboxEgressCredentialToken, wi as create, wo as createPluginAnnotations, xa as clearSandboxEgressSignals, xi as loadSnapshotsForProfile, xr as requireReviewItemAssignees, ya as isWorkspaceSnapshotNotReadyError, yi as WorkspaceValidationError, z as getAgentContextCompactionTriggerTokens, za as SANDBOX_REPOS_ROOT, zn as getPlugins, zr as cancelWatch } from "./projection-
|
|
3
|
-
import { A as estimateTextTokens, B as createProviderError, D as requestPrefixAttributes, E as resolveGatewayModel, G as getGatewayApiKey, H as getProviderErrorAttributes, I as unwrapCurrentInstruction, K as resolveGatewayCredential, L as escapeXml, M as COMPACTION_SUMMARY_PREFIX, N as hasCompactedConversationContext, O as estimateMessagesTokens, P as isCompactionSummaryText, V as findProviderError, W as isProviderRetryError, _ as toPiReasoningLevel, b as GEN_AI_SERVER_ADDRESS, g as TURN_REASONING_LEVELS, j as textCharsForTokens, k as estimateRequestOverheadTokens, n as botConfig, v as normalizeSlackEmojiName, y as GEN_AI_PROVIDER_NAME, z as ProviderError } from "./config-
|
|
4
|
-
import { C as summarizeMessageText, E as withSpan, G as isRecord$4, S as setTags, T as withLogContext, V as runWithLogAttributes, W as normalizeIdentityEmail, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, d as logAudit, f as logError, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, l as getLogContextAttributesForSpan, m as logInfo, o as getActiveTraceContext, p as logException, q as toOptionalString, u as getTracePropagationHeaders, v as serializeGenAiAttribute, x as setSpanStatus } from "./logging-
|
|
5
|
-
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
2
|
+
import { $ as loadTurnCheckpoint, $a as readConversationAccessFromSql, $t as extractAssistantText, A as latestConversationMessageSeq, Aa as SANDBOX_RUNTIME, Ar as resolveAssignee, B as getAgentContextInputLimitTokens, Ba as SANDBOX_SKILLS_ROOT, Bi as slackMention, Ca as consumeSandboxEgressPermissionDeniedSignal, Ci as setWorkspaceSnapshotBuild, Co as saveObjectAnnotations, Da as buildSandboxEgressNetworkPolicy, Di as ensureDockerDaemon, Dn as findLegacyWebActorUserId, Do as defaultTimezone, Dr as EVERYONE_ASSIGNEE, Ei as isStale, En as createUserTokenStore, Fo as piMessageFromHistoryItem, Fr as RESOURCE_SUBSCRIPTION_MAX_TTL_MS, G as AuthPausePersistenceError, Ga as buildCommandScript, Gi as openSlackDirectMessage, Gr as getWatch, Gt as TurnBudgetExceededError, H as PluginCredentialFailureError, Ha as sandboxSkillDir, Hi as addReactionToMessage, Hr as createWatch, I as upsertConversationMessage, Ii as escapeSlackMrkdwnText, Io as projectConversationEvents, Ir as RESOURCE_WATCH_TOOL_SOURCE, J as abandonReplacedPendingAuth, Ji as postSlackMessage, K as AuthorizationFlowDisabledError, Ka as buildNonInteractiveShellScript, Kr as listWatches, Kt as TurnSliceLimitExceededError, L as calculateContextCompactionTargetTokens, La as SANDBOX_COMMAND_PATH, Ln as getPluginTools, Lo as getConfigDefaults, Lr as STOP_WATCHING_TOOL_NAME, M as normalizeConversationText, Ma as tryWorkspaceRepoCheckoutPath, Mi as formatProviderLabel, Mn as createPluginHookRunner, Mr as resolveChannelCapabilities, N as recordDeliveredAssistantMessage, Na as workspaceRepoCheckoutPath, Nr as getSlackToolContext, Oa as resolveSandboxCommandEnvironment, Oi as getSandboxProvider, Oo as resolveUserTimezone, Or as activeParticipantUserIds, Pa as PluginToolDeniedError, Pi as resolveBaseUrl, Po as historyItemFromPiMessage, Pr as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, Q as continuableMessages, Qi as uploadFilesToConversation, Qt as persistWithRetry, R as getAgentBackgroundCompactionMarkTokens, Ra as SANDBOX_DATA_ROOT, Ri as normalizeSlackReplyMarkdown, Sa as consumeSandboxEgressAuthRequiredSignal, Si as setWorkspaceSnapshot, Sr as requireReviewItemLinks, T as resolveTaskTitle, Ti as hash, U as createPluginAuthOrchestration, Ua as sandboxSkillFile, Ui as deleteSlackMessage, Ur as deliverWatch, V as createPluginEgress, Va as SANDBOX_WORKSPACE_ROOT, Vr as createTimerWatch, W as authorizationId, Wa as sandboxSkillPathResolution, Wi as getSlackMessagePermalink, Wr as findMatchingWatches, Wt as TURN_LIMIT_WRAP_UP_MESSAGE, X as clearPendingAuth, Xa as canAccessConversation, Xt as isTurnExecutionLimitExceededError, Y as canReusePendingAuthLink, Yt as createTurnLimitGate, Zi as updateSlackMessage, Zt as CODEMODE_TOOL_NAME, _a as WorkspaceSnapshotNotReadyError, _n as TURN_CONTEXT_TAG, _r as canReadReviewItem, a as loadProjection, aa as getSlackClient, ar as getOpenReviewItemByDedupeKey, at as failTurnRecord, b as persistConversationMessages, ba as workspaceSnapshotNotReadyUserMessage, bi as invalidateReadySnapshot, bn as readParentAgentTask, br as readReviewItemAgentScope, c as recordAgentsInstructionsUpdated, ca as normalizeSlackConversationId, cn as isStandaloneRuntimeContextMessage, di as renderToolResultNudge, dn as normalizeToolNameFromResult, dr as searchReviewItems, ei as verifyTimerWatchCredentialSubject, en as getPiMessageRole, f as recordAuthorizationRequested, fi as createWorkspace, fn as retainRuntimeTurnContext, g as recordToolExecutionStarted, ga as wrapSandboxSetupError, gi as listWorkspaces, gr as canAgentChangeReviewItem, ha as throwSandboxOperationError, hi as getWorkspaceByName, hn as REQUEST_CONTEXT_SECTION_TAG, i as loadConversationProjection, ii as getDashboardReviewItemLink, in as hasTurnInput, ir as dismissOpenReviewItems, j as markConversationMessage, ja as sleep, ji as deliverOAuthAuthorization, jr as resolveAssignees, kn as getOAuthAccountProviders, kr as automationCreatorUserId, l as recordAttachmentsDelivered, la as runWithSlackInstallationToken, li as ToolInputError, ln as isToolResultError, m as recordMcpProviderConnected, ma as isAlreadyExistsError, mi as getWorkspace, mn as trimTrailingAssistantMessages, mr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, na as downloadPrivateSlackFile, ni as getDashboardConversationLink, nn as getUserMessageInstructionText, nr as closeReviewItem, nt as saveTurnCheckpoint, oa as isConversationScopedChannel, oi as getDashboardTaskLink, on as isAssistantMessage, or as getReviewItem, ot as getTurnRecord, p as recordGuardianActionReviewed, pa as isAbortError, pi as deleteWorkspace, pn as stripRuntimeTurnContext, pr as updateReviewItemContent, q as AuthorizationPauseError, qa as runNonInteractiveCommand, qt as TurnToolCallLimitExceededError, r as loadConnectedMcpProviders, ra as getFilePermalink, rt as abandonTurnRecord, sn as isContinuablePiBoundary, sr as insertReviewItem, t as commitAcceptedReply, ta as SlackActionError, tn as getTerminalAssistantMessages, ua as withSlackRetries, un as isToolResultMessage, v as hydrateConversationMessages, va as getWorkspaceSnapshotNotReadyError, vi as updateWorkspace, vo as matchSlackAttachments, w as fallbackShortTitle, wa as createSandboxEgressCredentialToken, wi as create, wo as createPluginAnnotations, xa as clearSandboxEgressSignals, xi as loadSnapshotsForProfile, xr as requireReviewItemAssignees, ya as isWorkspaceSnapshotNotReadyError, yi as WorkspaceValidationError, z as getAgentContextCompactionTriggerTokens, za as SANDBOX_REPOS_ROOT, zn as getPlugins, zr as cancelWatch } from "./projection-D-9aVaHj.js";
|
|
3
|
+
import { A as estimateTextTokens, B as createProviderError, D as requestPrefixAttributes, E as resolveGatewayModel, G as getGatewayApiKey, H as getProviderErrorAttributes, I as unwrapCurrentInstruction, K as resolveGatewayCredential, L as escapeXml, M as COMPACTION_SUMMARY_PREFIX, N as hasCompactedConversationContext, O as estimateMessagesTokens, P as isCompactionSummaryText, V as findProviderError, W as isProviderRetryError, _ as toPiReasoningLevel, b as GEN_AI_SERVER_ADDRESS, g as TURN_REASONING_LEVELS, j as textCharsForTokens, k as estimateRequestOverheadTokens, n as botConfig, v as normalizeSlackEmojiName, y as GEN_AI_PROVIDER_NAME, z as ProviderError } from "./config-DHDub41t.js";
|
|
4
|
+
import { C as summarizeMessageText, E as withSpan, G as isRecord$4, S as setTags, T as withLogContext, V as runWithLogAttributes, W as normalizeIdentityEmail, _ as runBestEffort, a as extractGenAiUsageSummary, b as setSpanAttributes, d as logAudit, f as logError, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, l as getLogContextAttributesForSpan, m as logInfo, o as getActiveTraceContext, p as logException, q as toOptionalString, u as getTracePropagationHeaders, v as serializeGenAiAttribute, x as setSpanStatus } from "./logging-f24cZPEj.js";
|
|
5
|
+
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-QRdLPH-9.js";
|
|
6
6
|
import { d as parseSlackChannelReferenceId, f as parseSlackTeamId, h as parseSlackMessageTs, n as createSlackActor, o as isUserActor, p as parseSlackUserId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
7
|
-
import { $ as sameDestination, B as addAgentTurnUsage, D as resolveActorIdentityId, G as resolveRootConversationId$1, J as nextDetailVersion, T as SYSTEM_IDENTITY_ID, V as agentTurnCostUsd, W as hasAgentTurnUsage, Y as touchConversationDetail, Z as parseDestination, _ as setArchivedAt, a as getConversationStore, c as conversationIdsWithAnnotation, g as readConversationTrees, h as conversationDescendants, i as getConversationMessageSearchStore, l as hasAnnotationKey, m as conversationAncestors, o as getDb, q as conversationDetailTouch, r as getConversationEventStore, s as getSqlExecutor, u as treeHasAnnotationKey, x as conversationKindFromRow } from "./db-
|
|
8
|
-
import { A as juniorConversations, M as juniorUsers, N as juniorDestinations, P as juniorArtifacts, _ as juniorConversationReadPositions, b as juniorConversationBriefs, c as juniorReviewItemSlackCards, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, j as juniorIdentities, k as juniorAttachments, p as juniorStats, u as juniorAutomationRuns, v as juniorConversationParticipants, w as juniorConversationEvents } from "./executor-
|
|
7
|
+
import { $ as sameDestination, B as addAgentTurnUsage, D as resolveActorIdentityId, G as resolveRootConversationId$1, J as nextDetailVersion, T as SYSTEM_IDENTITY_ID, V as agentTurnCostUsd, W as hasAgentTurnUsage, Y as touchConversationDetail, Z as parseDestination, _ as setArchivedAt, a as getConversationStore, c as conversationIdsWithAnnotation, g as readConversationTrees, h as conversationDescendants, i as getConversationMessageSearchStore, l as hasAnnotationKey, m as conversationAncestors, o as getDb, q as conversationDetailTouch, r as getConversationEventStore, s as getSqlExecutor, u as treeHasAnnotationKey, x as conversationKindFromRow } from "./db-DBHig2sI.js";
|
|
8
|
+
import { A as juniorConversations, M as juniorUsers, N as juniorDestinations, P as juniorArtifacts, _ as juniorConversationReadPositions, b as juniorConversationBriefs, c as juniorReviewItemSlackCards, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, j as juniorIdentities, k as juniorAttachments, p as juniorStats, u as juniorAutomationRuns, v as juniorConversationParticipants, w as juniorConversationEvents } from "./executor-DKrtH0k_.js";
|
|
9
9
|
import { _ as instructionProvenanceFor, a as KNOWN_CONVERSATION_EVENT_TYPES, g as instructionActors, h as contextProvenance, r as detectImageMediaType, v as sameActorIdentity } from "./media-BepyEUNm.js";
|
|
10
10
|
import { a as listReferenceFiles } from "./package-discovery-DJhGdS4c.js";
|
|
11
|
-
import { c as fetchWithBoundedOAuthErrorBodies, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, s as OAuthProviderError } from "./registry-
|
|
12
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
13
|
-
import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-
|
|
14
|
-
import { l as completeObject, o as isEventConversationMessage, r as EVENT_AUTHOR_ID, u as completeText } from "./prompt-
|
|
11
|
+
import { c as fetchWithBoundedOAuthErrorBodies, d as actorLogContext, f as credentialContextForActor, g as credentialUserSubjectId, i as resolvePluginHeaderEnvRefs, l as getOAuthProviderErrorAttributes, s as OAuthProviderError } from "./registry-CwA-kSjW.js";
|
|
12
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BSOlVfXi.js";
|
|
13
|
+
import { a as parseSkillInvocation, i as parseSkillFile, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-BFopj5ID.js";
|
|
14
|
+
import { l as completeObject, o as isEventConversationMessage, r as EVENT_AUTHOR_ID, u as completeText } from "./prompt-C7SZhNDy.js";
|
|
15
15
|
import { a as withLock, i as fenceLock } from "./locks-D-0h111u.js";
|
|
16
|
-
import { a as readActorIdentityFromSql, f as identityAvatarUrl, h as readUserAvatarUrls, i as readActorIdentity } from "./viewer-
|
|
17
|
-
import { r as getStateAdapter } from "./adapter-
|
|
16
|
+
import { a as readActorIdentityFromSql, f as identityAvatarUrl, h as readUserAvatarUrls, i as readActorIdentity } from "./viewer-DG97nzP4.js";
|
|
17
|
+
import { r as getStateAdapter } from "./adapter-CHMVy-j0.js";
|
|
18
18
|
import { i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-cP0AACm1.js";
|
|
19
19
|
import { K as briefLinkSchema, W as readMessageAttachments, Z as parseStoredBrief, q as briefOutcomeStatusSchema, z as removedCardSchema } from "./conversation-CwC8K3RZ.js";
|
|
20
|
-
import { i as createCacheWarmingRecorder, l as readLastUserMessageAtByConversation } from "./warmup-
|
|
21
|
-
import { D as QUEUE_SIGNATURE_MAX_AGE_MS, g as getVercelConversationWorkQueue, k as getTurnRequestDeadline, m as sendWorkspaceSnapshotJob, n as backgroundCompactionId, p as sendNextWorkspaceSnapshotJob } from "./background-compaction-queue-
|
|
22
|
-
import { B as AGENT_TYPES, C as isTerminalAgentInvocation, F as CHILD_AGENT_RESULTS, I as PARENT_AGENT_TARGET, J as getAgentInvocationMessageId, P as CHILD_AGENT_KINDS, R as agentNameSchema, S as invocationFromRow, T as listOpenAgentInvocations, U as formatAgentTypes, Z as getChildAgentLockName, at as getConversationTurnBoundaryError, dt as markTurnFailed, et as parseAgentInvocationResultMessageId, f as ConversationTurnLifecycleService, ft as startActiveTurn, g as NON_TERMINAL_AGENT_INVOCATION_STATUSES, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, lt as markTurnClosed, m as loadPendingMessageCards, mt as buildDeterministicTurnId, nt as CooperativeTurnYieldError, o as getTurnUserMessage, q as getAgentInvocationIdForResult, rt as TurnInputCommitLostError, st as isTurnInputCommitLostError, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext, w as listAgentInvocationsForConversation, x as getLatestAgentInvocationForConversation } from "./turn-failure-response-
|
|
23
|
-
import { a as isLegacyNoReplyMarker, i as NO_REPLY_TOOL_NAME, n as getAssistantReplyText, o as readNoReply, r as sanitizeAssistantText, t as decideReply } from "./assistant-reply-
|
|
24
|
-
import { $ as withoutSavedSteeringMessages, A as requireSlackChannelMessageScope, B as maybePostAutomatedTurnLimitNotice, C as enqueueEventNotification, D as timerWatchCredentialSubject, E as renderEventBatchInputs, F as WORKSPACE_SNAPSHOT_FAILED_EVENT, H as resolveSlackReplyTarget, I as WORKSPACE_SNAPSHOT_READY_EVENT, J as assemblePrompt, K as recordFinishedTurnForAutomatedLimit, L as workspaceSnapshotFinishedEvent, O as getEventCatalog, P as slackChannelMessageTrigger, Q as loadPromptTurnContext, R as workspaceSnapshotWatch, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, X as buildSteeringPiMessage, Y as buildPromptInput, Z as instructionForInputs, _ as sourceFromTurnInput, at as addConversationNote, b as conversationSubtree, c as loadReviewItemInput, ct as readBlockedReport, d as getAuthPausedConversationTurnId, f as getEventBatchDelayMs, ht as remindMissingAutomationResult, lt as FINISH_AUTOMATION_RUN_TOOL_NAME, mt as readAutomationResult, ot as JUNIOR_PERSONALITY, p as listActiveMailboxTurns, r as markConversationsStopped, rt as isExperimentalFeatureEnabled, s as eventReviewItemInputs, st as REPORT_BLOCKED_TOOL_NAME, t as getConversationStoppedAtMs, tt as saveUserCustomization, ut as automationResultSchema$1, v as turnInputFactsFromConversationMessage, w as eventBatchMessageMeta, x as conversationSubtreeColumns, y as legacyWebMailboxMetadataSchema } from "./session-stop-
|
|
20
|
+
import { i as createCacheWarmingRecorder, l as readLastUserMessageAtByConversation } from "./warmup-C00-jOoN.js";
|
|
21
|
+
import { D as QUEUE_SIGNATURE_MAX_AGE_MS, g as getVercelConversationWorkQueue, k as getTurnRequestDeadline, m as sendWorkspaceSnapshotJob, n as backgroundCompactionId, p as sendNextWorkspaceSnapshotJob } from "./background-compaction-queue-2gKhjRD3.js";
|
|
22
|
+
import { B as AGENT_TYPES, C as isTerminalAgentInvocation, F as CHILD_AGENT_RESULTS, I as PARENT_AGENT_TARGET, J as getAgentInvocationMessageId, P as CHILD_AGENT_KINDS, R as agentNameSchema, S as invocationFromRow, T as listOpenAgentInvocations, U as formatAgentTypes, Z as getChildAgentLockName, at as getConversationTurnBoundaryError, dt as markTurnFailed, et as parseAgentInvocationResultMessageId, f as ConversationTurnLifecycleService, ft as startActiveTurn, g as NON_TERMINAL_AGENT_INVOCATION_STATUSES, i as completeAuthPauseTurn, l as buildDeliveredTurnStatePatch, lt as markTurnClosed, m as loadPendingMessageCards, mt as buildDeterministicTurnId, nt as CooperativeTurnYieldError, o as getTurnUserMessage, q as getAgentInvocationIdForResult, rt as TurnInputCommitLostError, st as isTurnInputCommitLostError, t as finalizeFailedTurnReplyWithEvent, u as buildTurnThreadContext, w as listAgentInvocationsForConversation, x as getLatestAgentInvocationForConversation } from "./turn-failure-response-hhpek6Fn.js";
|
|
23
|
+
import { a as isLegacyNoReplyMarker, i as NO_REPLY_TOOL_NAME, n as getAssistantReplyText, o as readNoReply, r as sanitizeAssistantText, t as decideReply } from "./assistant-reply-BtIV0hq6.js";
|
|
24
|
+
import { $ as withoutSavedSteeringMessages, A as requireSlackChannelMessageScope, B as maybePostAutomatedTurnLimitNotice, C as enqueueEventNotification, D as timerWatchCredentialSubject, E as renderEventBatchInputs, F as WORKSPACE_SNAPSHOT_FAILED_EVENT, H as resolveSlackReplyTarget, I as WORKSPACE_SNAPSHOT_READY_EVENT, J as assemblePrompt, K as recordFinishedTurnForAutomatedLimit, L as workspaceSnapshotFinishedEvent, O as getEventCatalog, P as slackChannelMessageTrigger, Q as loadPromptTurnContext, R as workspaceSnapshotWatch, S as EVENT_WAIT_MS, T as isEventMailboxMetadata, X as buildSteeringPiMessage, Y as buildPromptInput, Z as instructionForInputs, _ as sourceFromTurnInput, at as addConversationNote, b as conversationSubtree, c as loadReviewItemInput, ct as readBlockedReport, d as getAuthPausedConversationTurnId, f as getEventBatchDelayMs, ht as remindMissingAutomationResult, lt as FINISH_AUTOMATION_RUN_TOOL_NAME, mt as readAutomationResult, ot as JUNIOR_PERSONALITY, p as listActiveMailboxTurns, r as markConversationsStopped, rt as isExperimentalFeatureEnabled, s as eventReviewItemInputs, st as REPORT_BLOCKED_TOOL_NAME, t as getConversationStoppedAtMs, tt as saveUserCustomization, ut as automationResultSchema$1, v as turnInputFactsFromConversationMessage, w as eventBatchMessageMeta, x as conversationSubtreeColumns, y as legacyWebMailboxMetadataSchema } from "./session-stop-1cku9Vm3.js";
|
|
25
25
|
import { D as userCustomizationTextSchema, T as USER_CUSTOMIZATION_MAX_CHARS, _ as buttonUserInputField, b as normalizeUserInputAnswer, g as USER_INPUT_NOTE, h as USER_INPUT_LIMITS, m as apiErrorSchema, p as webMessageId, s as sumUtcHoursIntoSixHours, v as formatUserInputAnswer, w as AGENT_INVOCATION_STATUSES, x as userInputRequestSchema } from "./reporting-window-B3Ze-Qnt.js";
|
|
26
|
-
import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, r as dependencies, s as getSandboxResources } from "./resolve-
|
|
27
|
-
import { S as requestConversationWork, T as stopConversationWork, g as getConversationWorkState, m as ensureConversationWake, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage } from "./store-
|
|
28
|
-
import { $ as readAutomationExecutionByConversationId, At as registeredResourceTypeSchema, B as setEventAutomationStatus, C as deleteScheduledAutomation, D as saveScheduledAutomation, Dt as registeredEventMatchSchema, E as readScheduledAutomation, Et as hasEventCatalogEntries, G as listAutomationVersions, I as getEventAutomation, K as readAutomationVersion, L as listDeletedEventAutomationsCreatedBy, Mt as requireValidEventTrigger, N as createEventAutomation, Ot as registeredEventTriggerProblems, P as deleteEventAutomation, R as parseEventAutomationRow, S as createScheduledAutomation, T as parseScheduledAutomationRow, Tt as eventWatchUnavailable, U as automationDefinition, X as requireAutomationRevision, Y as automationRevision, Z as emptyAutomationRunWindows, _t as persistThreadStateById, at as readAutomationExecutions, bt as automationEventCatalog, d as getDispatchRecord, dt as resolveConversationRouting, et as readAutomationExecutionDays, ft as resolveTurnSessionRouting, ht as getPersistedThreadState, it as readAutomationExecutionSummaries, jt as requireEventIdentifier, kt as registeredEventTypeSchema, l as getDispatchIdForConversation, mt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, nt as readAutomationExecutionStatusDays, ot as readAutomationRuns, q as sameDefinitionValue, rt as readAutomationExecutionStatusHours, t as processPluginTask, tt as readAutomationExecutionHours, u as getDispatchInputMessageId, vt as coerceThreadConversationState, wt as eventNamespaceSchema, xt as describeRegisteredEventTrigger, z as saveEventAutomation } from "./task-runner-
|
|
29
|
-
import { _ as getMcpProviderErrorAttributes, a as serviceAccountOnly, c as createMcpServiceAccountClientProvider, d as PluginMcpClient, f as McpProviderError, g as getMcpAwareTelemetryMessage, h as getMcpAwareErrorType, i as serviceAccountAllows, l as getMcpServiceAccountCredentials, m as McpToolError, p as McpServiceAccountRequiredError, u as McpAuthorizationRequiredError, v as toMcpProviderError } from "./service-account-
|
|
26
|
+
import { a as setSnapshotSpanAttributes, i as postinstall, n as resolve$1, r as dependencies, s as getSandboxResources } from "./resolve-B5WJgt9k.js";
|
|
27
|
+
import { S as requestConversationWork, T as stopConversationWork, g as getConversationWorkState, m as ensureConversationWake, n as appendAndEnqueueExclusiveInboundMessage, r as appendAndEnqueueInboundMessage } from "./store-CK869JpC.js";
|
|
28
|
+
import { $ as readAutomationExecutionByConversationId, At as registeredResourceTypeSchema, B as setEventAutomationStatus, C as deleteScheduledAutomation, D as saveScheduledAutomation, Dt as registeredEventMatchSchema, E as readScheduledAutomation, Et as hasEventCatalogEntries, G as listAutomationVersions, I as getEventAutomation, K as readAutomationVersion, L as listDeletedEventAutomationsCreatedBy, Mt as requireValidEventTrigger, N as createEventAutomation, Ot as registeredEventTriggerProblems, P as deleteEventAutomation, R as parseEventAutomationRow, S as createScheduledAutomation, T as parseScheduledAutomationRow, Tt as eventWatchUnavailable, U as automationDefinition, X as requireAutomationRevision, Y as automationRevision, Z as emptyAutomationRunWindows, _t as persistThreadStateById, at as readAutomationExecutions, bt as automationEventCatalog, d as getDispatchRecord, dt as resolveConversationRouting, et as readAutomationExecutionDays, ft as resolveTurnSessionRouting, ht as getPersistedThreadState, it as readAutomationExecutionSummaries, jt as requireEventIdentifier, kt as registeredEventTypeSchema, l as getDispatchIdForConversation, mt as getPersistedSandboxState, n as scheduleSessionCompletedPluginTasks, nt as readAutomationExecutionStatusDays, ot as readAutomationRuns, q as sameDefinitionValue, rt as readAutomationExecutionStatusHours, t as processPluginTask, tt as readAutomationExecutionHours, u as getDispatchInputMessageId, vt as coerceThreadConversationState, wt as eventNamespaceSchema, xt as describeRegisteredEventTrigger, z as saveEventAutomation } from "./task-runner-XmXL9E-k.js";
|
|
29
|
+
import { _ as getMcpProviderErrorAttributes, a as serviceAccountOnly, c as createMcpServiceAccountClientProvider, d as PluginMcpClient, f as McpProviderError, g as getMcpAwareTelemetryMessage, h as getMcpAwareErrorType, i as serviceAccountAllows, l as getMcpServiceAccountCredentials, m as McpToolError, p as McpServiceAccountRequiredError, u as McpAuthorizationRequiredError, v as toMcpProviderError } from "./service-account-B6OJtplS.js";
|
|
30
30
|
import { A as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, D as taskOutcomeInputSchema, E as automationTitleSchema, F as scheduleIntentFromTool, I as toolScheduleIntentSchema, L as weekdaySchema, N as ScheduleIntentError, P as compileScheduleIntent, T as automationInstructionToolSchema, k as eventAutomationTriggerSchema, l as automationListQuerySchema } from "./automation-DWbjJltM.js";
|
|
31
31
|
import { n as privateTraceResultAttributes } from "./private-trace-result-CE7_lEdq.js";
|
|
32
32
|
import { streamSimple } from "@earendil-works/pi-ai/compat";
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { $a as readConversationAccessFromSql, $n as isPausedBySlack, Aa as SANDBOX_RUNTIME, En as createUserTokenStore, Er as reviewItemReaderForUserInConversation, Gn as readWebPushConfig, Jn as deletePushSubscription, Kn as sendPushNotificationToUser, Na as workspaceRepoCheckoutPath, Qa as createConversationAccessReader, Qn as savePushSubscription, Ti as hash, Tr as reviewItemReaderForUser, Xn as readNotificationSchedule, Ya as createPluginLogger, Yn as listPushSubscriptions, Zn as saveNotificationSchedule, _i as listWorkspacesByRepository, ai as getDashboardSettingsLink, dr as searchReviewItems, fi as createWorkspace, gi as listWorkspaces, hr as canActOnReviewItem, jo as createPluginCache, lo as readConversationEventPage, lr as listWaitingConversations, mi as getWorkspace, mr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, pi as deleteWorkspace, qn as resolveNotificationTimezone, rr as countReviewItemsNeedingUser, so as readConversationBriefThrough, to as conversationIsMemberRoot, ur as reviewItemsNeedingUserVersionQuery, vi as updateWorkspace, wi as create, wr as reviewItemNeedsUser, yi as WorkspaceValidationError, yr as isOnlyAssignee, zn as getPlugins } from "./projection-
|
|
2
|
-
import { L as escapeXml, n as botConfig, q as getAttachmentStorage } from "./config-
|
|
3
|
-
import { m as logInfo, p as logException } from "./logging-
|
|
1
|
+
import { $a as readConversationAccessFromSql, $n as isPausedBySlack, Aa as SANDBOX_RUNTIME, En as createUserTokenStore, Er as reviewItemReaderForUserInConversation, Gn as readWebPushConfig, Jn as deletePushSubscription, Kn as sendPushNotificationToUser, Na as workspaceRepoCheckoutPath, Qa as createConversationAccessReader, Qn as savePushSubscription, Ti as hash, Tr as reviewItemReaderForUser, Xn as readNotificationSchedule, Ya as createPluginLogger, Yn as listPushSubscriptions, Zn as saveNotificationSchedule, _i as listWorkspacesByRepository, ai as getDashboardSettingsLink, dr as searchReviewItems, fi as createWorkspace, gi as listWorkspaces, hr as canActOnReviewItem, jo as createPluginCache, lo as readConversationEventPage, lr as listWaitingConversations, mi as getWorkspace, mr as PLUGIN_REVIEW_ITEM_KEY_PREFIX, pi as deleteWorkspace, qn as resolveNotificationTimezone, rr as countReviewItemsNeedingUser, so as readConversationBriefThrough, to as conversationIsMemberRoot, ur as reviewItemsNeedingUserVersionQuery, vi as updateWorkspace, wi as create, wr as reviewItemNeedsUser, yi as WorkspaceValidationError, yr as isOnlyAssignee, zn as getPlugins } from "./projection-D-9aVaHj.js";
|
|
2
|
+
import { L as escapeXml, n as botConfig, q as getAttachmentStorage } from "./config-DHDub41t.js";
|
|
3
|
+
import { m as logInfo, p as logException } from "./logging-f24cZPEj.js";
|
|
4
4
|
import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-6jsm_v96.js";
|
|
5
|
-
import { J as nextDetailVersion, a as getConversationStore, b as withConversationMutationLock, o as getDb, s as getSqlExecutor, v as loadConversationSlackTenantIds, x as conversationKindFromRow } from "./db-
|
|
6
|
-
import { A as juniorConversations, D as juniorCodeChanges, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorIdentities, l as juniorReviewItems, s as juniorReviewItemConversations, w as juniorConversationEvents } from "./executor-
|
|
5
|
+
import { J as nextDetailVersion, a as getConversationStore, b as withConversationMutationLock, o as getDb, s as getSqlExecutor, v as loadConversationSlackTenantIds, x as conversationKindFromRow } from "./db-DBHig2sI.js";
|
|
6
|
+
import { A as juniorConversations, D as juniorCodeChanges, E as juniorConversationAnnotations, M as juniorUsers, N as juniorDestinations, O as juniorCodeRepositories, S as juniorConversationMetrics, T as juniorApiTokens, j as juniorIdentities, l as juniorReviewItems, s as juniorReviewItemConversations, w as juniorConversationEvents } from "./executor-DKrtH0k_.js";
|
|
7
7
|
import { n as INPUT_IMAGE_TYPES, t as INLINE_VIDEO_TYPES } from "./media-BepyEUNm.js";
|
|
8
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
9
|
-
import { $ as readViewerAutomationSummary, $t as resumeConversationDelivery, A as runWithSlackInstallation, Ct as emptyResponse, G as changeViewerAutomationLifecycle, J as updateViewerAutomation, K as deleteViewerTask, Q as readViewerAutomationRuns, Qt as pauseConversationDelivery, S as createSlackReviewItemShow, Tt as throwApiError, W as activateViewerAutomationVersion, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, Zt as canPauseConversationDelivery, _t as readLiveAttachment, bt as archiveConversation, et as readViewerAutomationVersions, it as listOwnedWatches, m as readStats, mt as webActorFromUser, nt as AutomationEditError, on as listChildAgents, q as readViewerAutomationEdit, tt as readViewerAutomations, v as setConversationSubscription, wt as jsonResponse } from "./agent-runner-
|
|
10
|
-
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-
|
|
11
|
-
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail } from "./viewer-
|
|
12
|
-
import { r as getStateAdapter } from "./adapter-
|
|
8
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BSOlVfXi.js";
|
|
9
|
+
import { $ as readViewerAutomationSummary, $t as resumeConversationDelivery, A as runWithSlackInstallation, Ct as emptyResponse, G as changeViewerAutomationLifecycle, J as updateViewerAutomation, K as deleteViewerTask, Q as readViewerAutomationRuns, Qt as pauseConversationDelivery, S as createSlackReviewItemShow, Tt as throwApiError, W as activateViewerAutomationVersion, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, Zt as canPauseConversationDelivery, _t as readLiveAttachment, bt as archiveConversation, et as readViewerAutomationVersions, it as listOwnedWatches, m as readStats, mt as webActorFromUser, nt as AutomationEditError, on as listChildAgents, q as readViewerAutomationEdit, tt as readViewerAutomations, v as setConversationSubscription, wt as jsonResponse } from "./agent-runner-CZjf6MOQ.js";
|
|
10
|
+
import { n as briefEntriesFromReportEvents, u as completeText } from "./prompt-C7SZhNDy.js";
|
|
11
|
+
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarImage, t as findUserByEmail } from "./viewer-DG97nzP4.js";
|
|
12
|
+
import { r as getStateAdapter } from "./adapter-CHMVy-j0.js";
|
|
13
13
|
import { r as notificationScheduleSchema } from "./schedule-cP0AACm1.js";
|
|
14
14
|
import { A as renameConversationBodySchema, C as createConversationBodySchema, E as forkConversationResponseSchema, M as conversationReadPositionSchema, N as conversationReadReportSchema, T as forkConversationBodySchema, c as conversationDetailQuerySchema, d as conversationEventPageSchema, f as conversationEventsQuerySchema, h as conversationParamsSchema, j as renameConversationResponseSchema, l as conversationDetailReportSchema, m as conversationFeedSchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationFeedQuerySchema, r as acceptedConversationMessageSchema, t as CONVERSATION_DETAIL_VERSION_HEADER, w as createConversationMessageBodySchema } from "./conversation-CwC8K3RZ.js";
|
|
15
|
-
import { g as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
16
|
-
import { O as getEventCatalog, et as readUserCustomization, rt as isExperimentalFeatureEnabled, tt as saveUserCustomization } from "./session-stop-
|
|
15
|
+
import { g as getVercelConversationWorkQueue } from "./background-compaction-queue-2gKhjRD3.js";
|
|
16
|
+
import { O as getEventCatalog, et as readUserCustomization, rt as isExperimentalFeatureEnabled, tt as saveUserCustomization } from "./session-stop-1cku9Vm3.js";
|
|
17
17
|
import { E as userCustomizationSchema, a as fillUtcSixHours, c as trailingUtcDayWindow, d as utcDayKey, f as utcHourKey, i as fillUtcHours, l as trailingUtcHourWindow, m as apiErrorSchema, n as HOUR_MS$1, o as startOfUtcHour, r as fillUtcDays, s as sumUtcHoursIntoSixHours, t as DAY_MS$1, u as trailingUtcSixHourWindow } from "./reporting-window-B3Ze-Qnt.js";
|
|
18
|
-
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-
|
|
19
|
-
import { J as AutomationConflictError, bt as automationEventCatalog, lt as conversationAggregateColumns, st as readAutomationTitlesByConversationId, ut as conversationRangeColumns } from "./task-runner-
|
|
20
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
18
|
+
import { s as getSandboxResources, t as getCachedSnapshot } from "./resolve-B5WJgt9k.js";
|
|
19
|
+
import { J as AutomationConflictError, bt as automationEventCatalog, lt as conversationAggregateColumns, st as readAutomationTitlesByConversationId, ut as conversationRangeColumns } from "./task-runner-XmXL9E-k.js";
|
|
20
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-B6OJtplS.js";
|
|
21
21
|
import { N as ScheduleIntentError, P as compileScheduleIntent, _ as automationSummarySchema, b as automationVersionListSchema, c as automationLifecycleSchema, d as automationParamsSchema, f as automationRunListSchema, g as automationSchedulePreviewSchema, h as automationScheduleIntentSchema, i as automationExecutionListSchema, l as automationListQuerySchema, n as automationEditSchema, r as automationEventCatalogSchema, t as automationEditErrorSchema, u as automationListSchema, v as automationUpdateSchema, x as automationVersionParamsSchema, y as automationVersionActivateSchema } from "./automation-DWbjJltM.js";
|
|
22
22
|
import { _ as pluginsSchema, b as skillReportsSchema, c as conversationUnchangedDetailWithMailboxSchema, d as healthReportSchema, f as pluginOperationalReportFeedSchema, l as steerConversationPendingMessagesBodySchema, n as cancelConversationPendingMessagesResponseSchema, r as conversationDetailWithMailboxReportSchema, s as conversationPendingMessagesReportSchema, t as cancelConversationPendingMessagesBodySchema, u as steerConversationPendingMessagesResponseSchema, v as runtimeInfoReportSchema } from "./conversation-pending-messages-B0cuLReP.js";
|
|
23
|
-
import { $ as actOnReviewItem, C as createConversationForViewer, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, M as getProductionSlackAdapter, O as requireConversationPendingMessages, Q as ReviewItemActionError, S as appendConversationMessageForViewer, _ as keepQuickQuestionForViewer, a as pinConversation, at as continueConversationInSlack, c as readConversationParticipants, ct as archiveViewerDoneConversations, d as readConversationTreeMetricsFromSql, dt as setConversationAutoArchive, f as conversationVersionQuery, ft as updateUserAutoArchiveSettings, g as forkConversationForViewer, gt as readHealthReport, h as reportConversationRead, i as readConversationFeed, it as canContinueInSlack, k as resolveMentions, l as readConversationAuxiliaryCostsFromSql, lt as readUserAutoArchiveSettings, m as markConversationUnread, n as steerConversationPendingMessagesForViewer, o as reorderPinnedConversations, p as readConversationDetailEtag, r as conversationFeedVersionQuery, s as readConversationDetail, st as DEFAULT_AUTO_ARCHIVE_SETTINGS, t as stopConversationTurnForViewer, tt as readReviewItemForUser, u as childAgentTotalsReport, v as readConversationEvents, x as readFirstHumanMessageTexts, y as conversationSummaryFromStoredConversation } from "./stop-
|
|
24
|
-
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-
|
|
23
|
+
import { $ as actOnReviewItem, C as createConversationForViewer, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, M as getProductionSlackAdapter, O as requireConversationPendingMessages, Q as ReviewItemActionError, S as appendConversationMessageForViewer, _ as keepQuickQuestionForViewer, a as pinConversation, at as continueConversationInSlack, c as readConversationParticipants, ct as archiveViewerDoneConversations, d as readConversationTreeMetricsFromSql, dt as setConversationAutoArchive, f as conversationVersionQuery, ft as updateUserAutoArchiveSettings, g as forkConversationForViewer, gt as readHealthReport, h as reportConversationRead, i as readConversationFeed, it as canContinueInSlack, k as resolveMentions, l as readConversationAuxiliaryCostsFromSql, lt as readUserAutoArchiveSettings, m as markConversationUnread, n as steerConversationPendingMessagesForViewer, o as reorderPinnedConversations, p as readConversationDetailEtag, r as conversationFeedVersionQuery, s as readConversationDetail, st as DEFAULT_AUTO_ARCHIVE_SETTINGS, t as stopConversationTurnForViewer, tt as readReviewItemForUser, u as childAgentTotalsReport, v as readConversationEvents, x as readFirstHumanMessageTexts, y as conversationSummaryFromStoredConversation } from "./stop-CJweYiOH.js";
|
|
24
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-BAb0fedk.js";
|
|
25
25
|
import { A as actorDirectoryReportSchema, At as reorderPinnedConversationsResponseSchema, B as activityHours$1, C as startServiceAccountSignInResponseSchema, Ct as conversationSubscriptionBodySchema, Dt as pinConversationBodySchema, E as personalTokenListSchema, Et as conversationDeliveryResponseSchema, G as pushSubscriptionDeleteBodySchema, I as locationDetailReportSchema, J as connectionParamsSchema, K as testNotificationResponseSchema, L as locationDirectoryReportSchema, M as avatarParamsSchema, Mt as conversationCatchUpSchema, N as personParamsSchema, O as personalTokenParamsSchema, Ot as pinConversationResponseSchema, P as personalSpendReportSchema, R as locationParamsSchema, St as markConversationUnreadBodySchema, T as createdPersonalTokenSchema, Tt as conversationDeliveryBodySchema, U as notificationSettingsSchema, V as activitySixHours$1, W as pushSubscriptionBodySchema, X as disconnectConnectionResponseSchema, Z as startConnectionResponseSchema, _ as reviewItemSchema, _t as archiveConversationBodySchema, b as serviceAccountListSchema, bt as conversationAutoArchiveSchema, c as workspaceListSchema, ct as conversationWatchesReportSchema, d as workspaceSchema, dt as continueConversationInSlackBodySchema, f as reviewItemActionSchema, ft as continueConversationInSlackResponseSchema, g as reviewItemParamsSchema, gt as conversationOutlineSchema, h as reviewItemListSchema, i as statsReportSchema, it as codeRepositoryReportSchema, j as actorProfileReportSchema, jt as conversationCatchUpBodySchema, k as revokePersonalTokenResponseSchema, kt as reorderPinnedConversationsBodySchema, l as workspaceParamsSchema, m as reviewItemListQuerySchema, mt as conversationStatsReportSchema, n as versionsSchema, nt as codePersonReportSchema, o as deleteWorkspaceResponseSchema, ot as boardReportSchema, p as reviewItemCountSchema, pt as stopConversationTurnResponseSchema, q as connectionListSchema, rt as codeRepositoryParamsSchema, s as workspaceBodySchema, t as versionsQuerySchema, tt as codeOverviewReportSchema, ut as conversationChildAgentsReportSchema, v as reviewItemWaitingConversationsSchema, vt as archiveConversationResponseSchema, w as createPersonalTokenBodySchema, wt as conversationSubscriptionResponseSchema, x as serviceAccountParamsSchema, xt as conversationUnreadSchema, y as disconnectServiceAccountResponseSchema, yt as archiveDoneConversationsResponseSchema, z as activityDays$1 } from "./schema-Bptz19Ja.js";
|
|
26
26
|
import { Hono } from "hono";
|
|
27
27
|
import path from "node:path";
|
|
@@ -2666,7 +2666,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2666
2666
|
reports: [],
|
|
2667
2667
|
source: "plugins"
|
|
2668
2668
|
});
|
|
2669
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2669
|
+
const { getPluginProfileReports } = await import("./projection-D-9aVaHj.js").then((n) => n.jn);
|
|
2670
2670
|
return pluginOperationalReportFeedSchema.parse({
|
|
2671
2671
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2672
2672
|
reports: await getPluginProfileReports({
|
|
@@ -3673,7 +3673,7 @@ function readDescriptionText(home) {
|
|
|
3673
3673
|
}
|
|
3674
3674
|
/** Read discovered skill names for authenticated runtime diagnostics. */
|
|
3675
3675
|
async function readSkillReports() {
|
|
3676
|
-
const { discoverSkills } = await import("./skills-
|
|
3676
|
+
const { discoverSkills } = await import("./skills-BFopj5ID.js").then((n) => n.o);
|
|
3677
3677
|
const skills = await discoverSkills();
|
|
3678
3678
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
3679
3679
|
name: skill.name,
|
|
@@ -3682,7 +3682,7 @@ async function readSkillReports() {
|
|
|
3682
3682
|
}
|
|
3683
3683
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
3684
3684
|
async function readPlugins() {
|
|
3685
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
3685
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-BSOlVfXi.js").then((n) => n.t);
|
|
3686
3686
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
3687
3687
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
3688
3688
|
description: plugin.manifest.description,
|
|
@@ -3694,7 +3694,7 @@ async function readPlugins() {
|
|
|
3694
3694
|
async function readRuntimeInfoReport() {
|
|
3695
3695
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
3696
3696
|
import("./package-discovery-DJhGdS4c.js").then((n) => n.r),
|
|
3697
|
-
import("./catalog-runtime-
|
|
3697
|
+
import("./catalog-runtime-BSOlVfXi.js").then((n) => n.t),
|
|
3698
3698
|
readPlugins(),
|
|
3699
3699
|
readSkillReports()
|
|
3700
3700
|
]);
|
|
@@ -3711,7 +3711,7 @@ async function readRuntimeInfoReport() {
|
|
|
3711
3711
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
3712
3712
|
async function readPluginOperationalReportFeed() {
|
|
3713
3713
|
const nowMs = Date.now();
|
|
3714
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
3714
|
+
const { getPluginOperationalReports } = await import("./projection-D-9aVaHj.js").then((n) => n.jn);
|
|
3715
3715
|
return pluginOperationalReportFeedSchema.parse({
|
|
3716
3716
|
source: "plugins",
|
|
3717
3717
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
|
|
2
|
-
import { t as ConversationStore } from "./db-
|
|
2
|
+
import { t as ConversationStore } from "./db-DCSmv9tz.js";
|
|
3
3
|
import "./schema-DQaFSkZZ.js";
|
|
4
4
|
import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
|
|
5
5
|
import "./sentry-DrKC2NeM.js";
|
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-BB1j2krL.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 { $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-
|
|
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-
|
|
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-
|
|
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-D-9aVaHj.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-DHDub41t.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-f24cZPEj.js";
|
|
5
|
+
import { t as JUNIOR_VERSION } from "./version-DQgCf4FE.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, 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-
|
|
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, $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-
|
|
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-DBHig2sI.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-DKrtH0k_.js";
|
|
9
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-BSOlVfXi.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-CZjf6MOQ.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-DG97nzP4.js";
|
|
13
|
+
import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-CHMVy-j0.js";
|
|
14
14
|
import { a as getNextRunAtMs } from "./schedule-cP0AACm1.js";
|
|
15
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, 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-
|
|
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-C00-jOoN.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-2gKhjRD3.js";
|
|
19
|
+
import { D as listPendingAgentInvocationResults, E as listPendingAgentInvocationMailboxAppends } from "./turn-failure-response-hhpek6Fn.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-1cku9Vm3.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, 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-
|
|
22
|
+
import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-B5WJgt9k.js";
|
|
23
|
+
import { _ as listActiveConversationIds, g as getConversationWorkState, h as getConversation, l as clearExpiredConversationLease, m as ensureConversationWake, r as appendAndEnqueueInboundMessage } from "./store-CK869JpC.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-XmXL9E-k.js";
|
|
25
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-
|
|
26
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-DHQjCRFx.js";
|
|
27
27
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-HYh_JOdw.js";
|
|
28
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-
|
|
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-
|
|
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-CJweYiOH.js";
|
|
30
|
+
import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-Ch3EWO6u.js";
|
|
31
|
+
import { n as enqueueAgentInvocationResult } from "./result-B2sCVIwl.js";
|
|
32
|
+
import { o as unlinkProvider } from "./connections-BAb0fedk.js";
|
|
33
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-YIMGiRk7.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-B8kyM1fB.js";
|
|
36
|
+
import { t as bindMessageAgent } from "./message-BbBOajiX.js";
|
|
37
|
+
import { t as bindSpawnAgent } from "./spawn-B-1JlJwH.js";
|
|
38
38
|
import { createRequire } from "node:module";
|
|
39
39
|
import { Hono } from "hono";
|
|
40
40
|
import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as extractAssistantText, dn as normalizeToolNameFromResult, ln as isToolResultError, un as isToolResultMessage } from "./projection-
|
|
1
|
+
import { $t as extractAssistantText, dn as normalizeToolNameFromResult, ln as isToolResultError, un as isToolResultMessage } from "./projection-D-9aVaHj.js";
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
// src/chat/no-reply.ts
|
|
4
4
|
/** No-reply result of a Turn. */
|
package/dist/{background-compaction-queue-D36oCldp.js → background-compaction-queue-2gKhjRD3.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-DHDub41t.js";
|
|
2
|
+
import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-f24cZPEj.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-C00-jOoN.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-XmXL9E-k.js").then((n) => n.r);
|
|
564
564
|
await processPluginTask(message);
|
|
565
565
|
},
|
|
566
566
|
topic: PLUGIN_TASK_QUEUE_TOPIC,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-
|
|
1
|
+
import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-C7SZhNDy.js";
|
|
2
2
|
import { G as briefCodeChangeSchema, J as briefResourceLabel, X as parseBriefInput, d as conversationEventPageSchema, l as conversationDetailReportSchema } from "./conversation-CwC8K3RZ.js";
|
|
3
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
4
4
|
import path from "node:path";
|
|
@@ -262,7 +262,7 @@ async function parseRunOptions(argv) {
|
|
|
262
262
|
* token.
|
|
263
263
|
*/
|
|
264
264
|
async function configuredBriefModelId() {
|
|
265
|
-
const { botConfig } = await import("./config-
|
|
265
|
+
const { botConfig } = await import("./config-DHDub41t.js").then((n) => n.r);
|
|
266
266
|
return botConfig.fastModelId;
|
|
267
267
|
}
|
|
268
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-CwA-kSjW.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-CZjf6MOQ.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-D-9aVaHj.js").then((n) => n.jn),
|
|
103
|
+
import("../catalog-runtime-BSOlVfXi.js").then((n) => n.t),
|
|
104
|
+
import("../validation-DHQjCRFx.js").then((n) => n.r),
|
|
105
|
+
import("../db-DBHig2sI.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-D-9aVaHj.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-CZq7wyIh.js");
|
|
158
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-rHJYjFoz.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-C4d6Pa9a.js");
|
|
161
|
+
const { bindSpawnAgent } = await import("../spawn-B-1JlJwH.js").then((n) => n.n);
|
|
162
|
+
const { bindMessageAgent } = await import("../message-BbBOajiX.js").then((n) => n.n);
|
|
163
|
+
const { createChildConversationWorker } = await import("../result-B2sCVIwl.js").then((n) => n.i);
|
|
164
|
+
const { skipInputAfterConversationStop } = await import("../session-stop-1cku9Vm3.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-B8kyM1fB.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-f24cZPEj.js";
|
|
2
|
+
import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-CwA-kSjW.js";
|
|
3
|
+
import { i as parseSkillFile } from "../skills-BFopj5ID.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-C45Ap5Tn.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-BC73M8rj.js")).runServiceAccount(argv);
|
|
32
32
|
}
|
|
33
33
|
async function runBriefs(argv) {
|
|
34
|
-
return await (await import("../briefs-
|
|
34
|
+
return await (await import("../briefs-BGke_Cz5.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 { Bn as setPlugins, Vn as validatePlugins, Ya as createPluginLogger } from "../projection-
|
|
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-D-9aVaHj.js";
|
|
2
|
+
import { o as getDb } from "../db-DBHig2sI.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BSOlVfXi.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-DHQjCRFx.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 { Aa as SANDBOX_RUNTIME, wi as create } from "../projection-
|
|
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-D-9aVaHj.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-BSOlVfXi.js";
|
|
3
|
+
import { t as disconnectStateAdapter } from "../adapter-CHMVy-j0.js";
|
|
4
|
+
import { n as resolve } from "../resolve-B5WJgt9k.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,13 +1,13 @@
|
|
|
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-DHDub41t.js";
|
|
2
|
+
import { t as createJuniorSqlExecutor } from "../executor-DKrtH0k_.js";
|
|
3
|
+
import { t as createPluginCatalogRuntime } from "../registry-CwA-kSjW.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";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
|
+
import { readMigrationFiles } from "drizzle-orm/migrator";
|
|
8
9
|
import { fileURLToPath } from "node:url";
|
|
9
10
|
import { createJiti } from "jiti";
|
|
10
|
-
import { readMigrationFiles } from "drizzle-orm/migrator";
|
|
11
11
|
// src/db/concurrent-indexes.ts
|
|
12
12
|
const CONCURRENT_INDEX_MARKER = "-- junior:concurrent-index";
|
|
13
13
|
const INDEX_STATEMENT = /^CREATE INDEX "([a-z0-9_]+)" ON "([a-z0-9_]+)" .+;$/;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { v as __exportAll } from "./sentry-BRTJqumy.js";
|
|
2
|
-
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-
|
|
3
|
-
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-
|
|
2
|
+
import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-f24cZPEj.js";
|
|
3
|
+
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-QRdLPH-9.js";
|
|
4
4
|
import { AwsClient } from "aws4fetch";
|
|
5
5
|
import { del, get, put } from "@vercel/blob";
|
|
6
6
|
import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
|