@sentry/junior 0.307.0 → 0.308.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{adapter-context-B69WPn6b.js → adapter-context-BO432242.js} +2 -2
- package/dist/{admin-nCJXMgkp.js → admin-vSmheo3Z.js} +2 -2
- package/dist/{agent-runner-DdFcxAxG.js → agent-runner-BnOofGFG.js} +22 -22
- package/dist/api.js +26 -26
- package/dist/{app-EZur8cVC.d.ts → app-CqYqy541.d.ts} +2 -1
- package/dist/app.d.ts +1 -1
- package/dist/app.js +27 -27
- package/dist/{background-compaction-queue-BhEe4UfU.js → background-compaction-queue-BpmDEQf6.js} +4 -4
- package/dist/{briefs-Dl9lxi7J.js → briefs-Dbh94cRp.js} +2 -2
- package/dist/{catalog-runtime-OXrv2Ewn.js → catalog-runtime-q9AJjuUN.js} +1 -1
- package/dist/cli/chat.js +16 -16
- 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 +5 -5
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-362yMSIz.js → config-Cx8H0MRw.js} +3 -3
- package/dist/{connections-BJv3EjmB.js → connections-DUylBPiR.js} +6 -6
- package/dist/{continue-in-slack-CFEevC7z.js → continue-in-slack-CtTv1tkn.js} +5 -5
- package/dist/{conversation-privacy-Tjj5P2W6.js → conversation-privacy-CivmFlWP.js} +1 -1
- package/dist/{conversation-turn-DU0_WDAr.js → conversation-turn-C9-Nfnsy.js} +14 -14
- package/dist/{credential-sync-D6aFARKE.js → credential-sync-CWIORwD9.js} +16 -16
- package/dist/{db-Bcbd9zQc.js → db-CO6Y10eM.js} +3 -3
- package/dist/{executor-DBMBrpNV.js → executor-Doo-N6Yn.js} +2 -2
- package/dist/{install-CgoAbzfF.js → install-Y2s9ZPvk.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-CsZDmz3e.js → lineage-BcqyhMyp.js} +2 -2
- package/dist/{logging-CHCuQ5iz.js → logging-DnBYBM8z.js} +1 -1
- package/dist/{message-B8vCbZZB.js → message-fSnXIqvl.js} +8 -8
- package/dist/{model-input-Xluiy-1W.js → model-input-DRChpXJ7.js} +2 -2
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +12 -4
- package/dist/{oauth-callback-server-BUuNvfvu.js → oauth-callback-server-BUU6zd_T.js} +2 -2
- package/dist/{oauth-relay-DGAZzg9m.js → oauth-relay-gO_Ynmpb.js} +1 -1
- package/dist/{projection-xPpvqexa.js → projection-Bqn6zdVT.js} +22 -15
- package/dist/{prompt-D8u4jFs_.js → prompt-DAjjk5fm.js} +3 -3
- package/dist/{registry-D20hG3r6.js → registry-tHJLCtKS.js} +1 -1
- package/dist/{resolve-BhCySRCW.js → resolve-z2sKt8xM.js} +3 -3
- package/dist/{result-DddO63S9.js → result-D2wshngt.js} +8 -8
- package/dist/{runner-DQR9vYce.js → runner-BvNPWLAy.js} +9 -9
- package/dist/{sandbox-egress-signals-DFlNUOnK.js → sandbox-egress-signals-CmHD-6vr.js} +1 -1
- package/dist/{service-account-CNfycv0z.js → service-account-B2d1Er_r.js} +3 -3
- package/dist/{service-account-Bv5QwrEq.js → service-account-CddxU-yC.js} +5 -5
- package/dist/{session-stop-BDdwyZaa.js → session-stop-BQ0J0Fph.js} +43 -16
- package/dist/{skills-63i1Bcv1.js → skills-Dm2-5nn5.js} +2 -2
- package/dist/{slack-conversation-unfurl-DtpBUlUu.js → slack-conversation-unfurl-CLH0tTLk.js} +10 -10
- package/dist/{spawn-mwimEY9_.js → spawn-PwAuSN59.js} +6 -6
- package/dist/{state-BBn9L6gC.js → state-rXH58smZ.js} +4 -4
- package/dist/{stop-Da-Ug7tg.js → stop-CcHPEcFE.js} +30 -30
- package/dist/{store-CdWg2r2L.js → store-7QA00oK6.js} +5 -5
- package/dist/{task-queue-BcjAYWyB.js → task-queue-DvQZH5rG.js} +3 -3
- package/dist/{task-runner-CoXmMlsW.js → task-runner-CyZMcuZy.js} +6 -6
- package/dist/{thread-context-ZPGqOjW7.js → thread-context-C-hLTQST.js} +6 -6
- package/dist/{turn-session-routing-DFYak28Q.js → turn-session-routing-Cqjj1B3i.js} +4 -4
- package/dist/{turn-user-message-B1S8nOnG.js → turn-user-message-DbU7MNd9.js} +3 -3
- package/dist/{users-DDbENg-I.js → users-B-UpCmw9.js} +1 -1
- package/dist/{validation-fl21ps-k.js → validation-BEUlev32.js} +1 -1
- package/dist/{version-DCdMMx_0.js → version-BE1OyrXV.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-DN_xzVKj.js → viewer-CqOkWizK.js} +3 -3
- package/dist/{warmup-CxhEhm71.js → warmup-HFgFZFwS.js} +18 -18
- package/dist/{worker-Btb1SB5h.js → worker-CCEDWbsY.js} +8 -8
- package/package.json +7 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ks as runWithSlackInstallationToken } from "./projection-
|
|
2
|
-
import { $ as getStateAdapter } from "./db-
|
|
1
|
+
import { ks as runWithSlackInstallationToken } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { $ as getStateAdapter } from "./db-CO6Y10eM.js";
|
|
3
3
|
// src/chat/slack/adapter-context.ts
|
|
4
4
|
const initializedAdapters = /* @__PURE__ */ new WeakSet();
|
|
5
5
|
async function getConnectedState(stateAdapter) {
|
|
@@ -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-CO6Y10eM.js";
|
|
2
|
+
import { r as listAdminUsersFromSql, u as setUserAdminFromSql } from "./viewer-CqOkWizK.js";
|
|
3
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
4
4
|
// src/cli/admin.ts
|
|
5
5
|
/**
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { $n as getTerminalAssistantMessages, Aa as SANDBOX_COMMAND_PATH, Ao as createConversationEmbedder, B as PluginCredentialFailureError, Ba as buildNonInteractiveShellScript, Da as PluginToolDeniedError, En as createPluginHookRunner, Eo as AttachmentSourceUnavailableError, F as calculateContextCompactionTargetTokens, Fa as SANDBOX_WORKSPACE_ROOT, G as AuthorizationPauseError,
|
|
2
|
-
import { $ as ProviderError, B as unwrapCurrentInstruction, F as textCharsForTokens, H as escapeXmlText, I as COMPACTION_SUMMARY_PREFIX, J as readParentAgentTask, L as hasCompactedConversationContext, M as estimateMessagesTokens, N as estimateRequestOverheadTokens, P as estimateTextTokens, R as isCompactionSummaryText, V as escapeXml, at as isProviderRefusal, b as GEN_AI_PROVIDER_NAME, et as createAssistantProviderError, it as getProviderErrorUserMessage, j as requestPrefixAttributes, k as resolveGatewayModel, lt as bufferBody, n as botConfig, nt as findProviderError, ot as isProviderRetryError, rt as getProviderErrorAttributes, st as getGatewayApiKey, tt as createProviderError, v as toPiReasoningLevel, x as GEN_AI_SERVER_ADDRESS, y as normalizeSlackEmojiName } from "./config-
|
|
3
|
-
import { C as summarizeMessageText, E as withSpan, H as runWithLogAttributes, S as setTags, T as withLogContext, _ 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, p as logException, t as buildTurnFailureResponse, u as getTracePropagationHeaders, v as serializeGenAiAttribute, x as setSpanStatus } from "./logging-
|
|
1
|
+
import { $n as getTerminalAssistantMessages, Aa as SANDBOX_COMMAND_PATH, Ao as createConversationEmbedder, B as PluginCredentialFailureError, Ba as buildNonInteractiveShellScript, Da as PluginToolDeniedError, En as createPluginHookRunner, Eo as AttachmentSourceUnavailableError, F as calculateContextCompactionTargetTokens, Fa as SANDBOX_WORKSPACE_ROOT, G as AuthorizationPauseError, H as authorizationId, I as getAgentBackgroundCompactionMarkTokens, Ia as sandboxSkillDir, Ii as getWorkspace, Is as escapeSlackMrkdwnText, Jt as GATED_TURN_LIMIT_WRAP_UP_MESSAGE, K as abandonReplacedPendingAuth, Kc as ToolInputError, Ks as createScheduledAutomation, L as getAgentContextCompactionTriggerTokens, La as sandboxSkillFile, Ms as sleep, Na as SANDBOX_SCRATCH_ROOT, Ni as renderToolResultNudge, Pa as SANDBOX_SKILLS_ROOT, Pr as getReviewItem, Qn as getPiMessageRole, Qt as TurnToolCallLimitExceededError, R as getAgentContextInputLimitTokens, Ra as sandboxSkillPathResolution, Ro as resolveUserTimezone, Sa as resolveSandboxCommandEnvironment, Ta as tryWorkspaceRepoCheckoutPath, To as storeDeferredAttachment, Ts as isConversationScopedChannel, U as AuthPausePersistenceError, V as createPluginAuthOrchestration, Va as runNonInteractiveCommand, W as AuthorizationFlowDisabledError, Wc as automationRevision, X as continuableMessages, Xi as getSandboxProvider, Xs as readScheduledAutomation, Xt as TurnBudgetExceededError, Yi as ensureDockerDaemon, Yt as TURN_LIMIT_WRAP_UP_MESSAGE, Z as loadTurnCheckpoint, Zi as isRetryableSandboxFailure, Zn as extractAssistantText, Zs as saveScheduledAutomation, Zt as TurnSliceLimitExceededError, _a as consumeSandboxEgressPermissionDeniedSignal, _c as getEventAutomation, _l as getConfigDefaults, _n as readBlockedReport, aa as SandboxCallTimeoutError, ac as getDashboardReviewItemLink, an as remindMissingAnswer, ar as isContinuablePiBoundary, bc as saveEventAutomation, bn as createUserTokenStore, bo as readLiveAttachment, bs as SlackActionError, c as recordAgentsInstructionsUpdated, ca as isAlreadyExistsError, ci as getSlackToolContext, cn as getAssistantReplyText, cr as isToolResultMessage, dr as stripRuntimeTurnContext, ea as deliverOAuthAuthorization, en as createTurnLimitGate, er as getUserMessageInstructionText, et as saveTurnCheckpoint, f as recordAuthorizationRequested, fa as getWorkspaceSnapshotNotReadyError, fn as isLegacyNoReplyMarker, fr as trimTrailingAssistantMessages, fs as postSlackMessage, g as recordToolExecutionStarted, ga as consumeSandboxEgressAuthRequiredSignal, gl as projectConversationEvents, gn as REPORT_BLOCKED_TOOL_NAME, gr as TURN_CONTEXT_TAG, gs as uploadFilesToConversation, ha as clearSandboxEgressSignals, hl as piMessageFromHistoryItem, hn as CODE_MODE_CALL_STATUS_TEXT, ho as readSlackAttachmentSource, hs as updateSlackMessage, i as loadConversationProjection, in as readTurnAnswer, ir as isAssistantMessage, ja as SANDBOX_DATA_ROOT, jn as getPluginTools, l as recordAttachmentsDelivered, la as throwSandboxOperationError, ll as credentialAuditAttributes, ln as sanitizeAssistantText, lr as normalizeToolNameFromResult, m as recordMcpProviderConnected, ma as workspaceSnapshotNotReadyUserMessage, mc as createEventAutomation, ml as historyItemFromPiMessage, mn as CODEMODE_TOOL_NAME, mr as REQUEST_CONTEXT_SECTION_TAG, nn as REPLY_TOOL_NAME, nr as hasTurnInput, oa as findInErrorChain, or as isStandaloneRuntimeContextMessage, os as addReactionToMessage, p as recordGuardianActionReviewed, pa as isWorkspaceSnapshotNotReadyError, pn as readNoReply, pr as CAPABILITY_SECTION_TAG, q as canReusePendingAuthLink, qc as isToolInputError, qi as hash, r as loadConnectedMcpProviders, ra as resolveBaseUrl, rn as isAnswerToolName, si as resolveChannelCapabilities, sl as resolveTaskTitle, sn as decideReply, sr as isToolResultError, ss as deleteSlackMessage, ta as formatProviderLabel, tn as isTurnExecutionLimitExceededError, ua as wrapSandboxSetupError, ul as credentialAuditSource, un as NO_REPLY_TOOL_NAME, ur as retainRuntimeTurnContext, va as createSandboxEgressCredentialToken, wa as SANDBOX_RUNTIME, wo as storeAttachments, xa as buildSandboxEgressNetworkPolicy, z as createPluginEgress, za as buildCommandScript, zn as isEventEmbeddingsEnabled, zs as normalizeSlackReplyMarkdown } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { $ as ProviderError, B as unwrapCurrentInstruction, F as textCharsForTokens, H as escapeXmlText, I as COMPACTION_SUMMARY_PREFIX, J as readParentAgentTask, L as hasCompactedConversationContext, M as estimateMessagesTokens, N as estimateRequestOverheadTokens, P as estimateTextTokens, R as isCompactionSummaryText, V as escapeXml, at as isProviderRefusal, b as GEN_AI_PROVIDER_NAME, et as createAssistantProviderError, it as getProviderErrorUserMessage, j as requestPrefixAttributes, k as resolveGatewayModel, lt as bufferBody, n as botConfig, nt as findProviderError, ot as isProviderRetryError, rt as getProviderErrorAttributes, st as getGatewayApiKey, tt as createProviderError, v as toPiReasoningLevel, x as GEN_AI_SERVER_ADDRESS, y as normalizeSlackEmojiName } from "./config-Cx8H0MRw.js";
|
|
3
|
+
import { C as summarizeMessageText, E as withSpan, H as runWithLogAttributes, S as setTags, T as withLogContext, _ 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, p as logException, t as buildTurnFailureResponse, u as getTracePropagationHeaders, v as serializeGenAiAttribute, x as setSpanStatus } from "./logging-DnBYBM8z.js";
|
|
4
4
|
import { g as withActiveSpan, i as getActiveSpan, m as startInactiveSpan } from "./sentry-CPbZjomA.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-
|
|
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-CivmFlWP.js";
|
|
6
6
|
import { f as parseSlackTeamId, n as createSlackActor, o as isUserActor, p as parseSlackUserId, v as parseSlackMessageTs } from "./actor-D2iXzvlN.js";
|
|
7
|
-
import { $ as getStateAdapter, E as isTopLevelKind, O as promptModeTurnTools, T as isPersonInput, _t as agentTurnCostUsd, a as getConversationStore, at as withLock, bt as hasAgentTurnUsage, gt as addAgentTurnUsage, k as turnBehavior, kt as sameDestination, o as getDb, r as getConversationEventStore, s as getSqlExecutor, wt as nextDetailVersion } from "./db-
|
|
8
|
-
import { H as juniorArtifacts, R as juniorConversations, d as juniorReviewItemSlackCards, p as juniorAutomationRuns } from "./executor-
|
|
7
|
+
import { $ as getStateAdapter, E as isTopLevelKind, O as promptModeTurnTools, T as isPersonInput, _t as agentTurnCostUsd, a as getConversationStore, at as withLock, bt as hasAgentTurnUsage, gt as addAgentTurnUsage, k as turnBehavior, kt as sameDestination, o as getDb, r as getConversationEventStore, s as getSqlExecutor, wt as nextDetailVersion } from "./db-CO6Y10eM.js";
|
|
8
|
+
import { H as juniorArtifacts, R as juniorConversations, d as juniorReviewItemSlackCards, p as juniorAutomationRuns } from "./executor-Doo-N6Yn.js";
|
|
9
9
|
import { d as contextProvenance, f as instructionActors, m as sameActorIdentity, p as instructionProvenanceFor } from "./history-N7IVbUom.js";
|
|
10
10
|
import { a as listReferenceFiles } from "./package-discovery-x4AvVhMj.js";
|
|
11
|
-
import { a as parseSkillInvocation, n as findSkillByName, r as loadSkillsByName, s as skillReferences, t as discoverSkills } from "./skills-
|
|
12
|
-
import { _ as credentialUserSubjectId, c as OAuthProviderError, f as actorLogContext, i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies, u as getOAuthProviderErrorAttributes } from "./registry-
|
|
13
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
14
|
-
import { C as McpProviderError, D as getMcpAwareTelemetryMessage, E as getMcpAwareErrorType, O as getMcpProviderErrorAttributes, S as putMcpStoredOAuthCredentials, T as McpToolError, _ as getMcpServerSessionId, a as serviceAccountOnly, b as putMcpAuthSession, c as createMcpServiceAccountClientProvider, d as PluginMcpClient, f as deleteMcpAuthSession, g as getMcpAuthSession, i as serviceAccountAllows, k as toMcpProviderError, l as getMcpServiceAccountCredentials, m as deleteMcpServerSessionId, u as McpAuthorizationRequiredError, v as getMcpStoredOAuthCredentials, w as McpServiceAccountRequiredError, x as putMcpServerSessionId, y as patchMcpAuthSession } from "./service-account-
|
|
15
|
-
import { d as completeText, g as NoAudioError, h as transcribeFromUrl, p as generateImages, u as completeObject } from "./prompt-
|
|
11
|
+
import { a as parseSkillInvocation, n as findSkillByName, r as loadSkillsByName, s as skillReferences, t as discoverSkills } from "./skills-Dm2-5nn5.js";
|
|
12
|
+
import { _ as credentialUserSubjectId, c as OAuthProviderError, f as actorLogContext, i as resolvePluginHeaderEnvRefs, l as fetchWithBoundedOAuthErrorBodies, u as getOAuthProviderErrorAttributes } from "./registry-tHJLCtKS.js";
|
|
13
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
14
|
+
import { C as McpProviderError, D as getMcpAwareTelemetryMessage, E as getMcpAwareErrorType, O as getMcpProviderErrorAttributes, S as putMcpStoredOAuthCredentials, T as McpToolError, _ as getMcpServerSessionId, a as serviceAccountOnly, b as putMcpAuthSession, c as createMcpServiceAccountClientProvider, d as PluginMcpClient, f as deleteMcpAuthSession, g as getMcpAuthSession, i as serviceAccountAllows, k as toMcpProviderError, l as getMcpServiceAccountCredentials, m as deleteMcpServerSessionId, u as McpAuthorizationRequiredError, v as getMcpStoredOAuthCredentials, w as McpServiceAccountRequiredError, x as putMcpServerSessionId, y as patchMcpAuthSession } from "./service-account-CddxU-yC.js";
|
|
15
|
+
import { d as completeText, g as NoAudioError, h as transcribeFromUrl, p as generateImages, u as completeObject } from "./prompt-DAjjk5fm.js";
|
|
16
16
|
import { A as automationContextToolSchema, B as compileScheduleIntent, I as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, M as automationTitleSchema, N as taskOutcomeInputSchema, V as scheduleIntentFromTool, X as automationTaskDescription, j as automationInstructionToolSchema, z as ScheduleIntentError } from "./schedule-BG1tEbRF.js";
|
|
17
17
|
import { Z as MAX_ATTACHMENT_BYTES } from "./conversation--f85g4zL.js";
|
|
18
|
-
import { a as readActorIdentityFromSql, i as readActorIdentity } from "./viewer-
|
|
19
|
-
import { c as QUEUE_SIGNATURE_MAX_AGE_MS } from "./task-queue-
|
|
20
|
-
import { At as findVisibleAgentsInstructions, C as PLAN_DELTA_TAG, Dt as AGENTS_REMOVAL_NOTICE, Et as JUNIOR_PERSONALITY, Ft as foldSystemMessages, It as readAgentHistory, Lt as withAgentRequest, Mt as renderAgentsInstructions, Nt as showsAgentsInstructions, Ot as AGENTS_REPLACEMENT_NOTICE, Pt as foldLeadingSystemMessages, Rt as writeAgentHistory, T as renderPlanSnapshot, bt as slackChannelMessageTrigger, d as buildPromptInput, et as resolveSlackReplyTarget, f as buildSteeringPiMessage, gt as requireSlackChannelMessageScope, h as loadPromptTurnContext, jt as readRepositoryInstructions, kt as buildAgentsInstructionsMessage, mt as getEventCatalog, u as assemblePrompt, x as listPlanItems } from "./session-stop-
|
|
21
|
-
import { $ as createStopAgentTool, $n as createSlackListUpdateItemTool, $r as requireToolCreator, A as createWebSearchTool, Ar as createRunAutomationNowTool, B as createSearchEventTypesTool, Br as automationTriggerChangesSchema, C as incrementStat, Cr as SLACK_TOOL_SOURCE, D as requireReadyWorkspaceSnapshot, Di as resolveTaskOutcomes, Dr as createOperationKey, Ei as moveTaskOutcomes, Er as resolveWorkspacePath, F as userLookupIdentityProviders, Fr as zodToolDefinition, G as missingFileResult, Gr as injectContinuationToolName, Gt as listAgentInvocationsForConversation, H as createSearchConversationsTool, Hr as editedAutomationTask, I as createUpdateUserCustomizationTool, Ir as automationIdForToolCall, J as capToolResult, Jn as createSlackThreadReadTool, Jr as getConversationAccess, K as sliceFileContent, Kr as juniorToolOutputSchema, L as createSubmitFeedbackTool, Lr as automationSkillToolSchema, M as createWatchTimerTool, Mr as AUTOMATIONS_TOOL_SOURCE, Mt as createReadConversationEventTool, N as createWatchEventsTool, Nr as parseToolInput, Nt as createRunOperatorSqlTool, O as prepareWorkspaceSnapshot, Or as createCanvas, P as createUserLookupTool, Pr as zodTool, Pt as createListWatchesTool, Q as createUpdatePlanTool, Qn as createSlackPublicSearchTool, Qr as requireToolCaller, R as createSystemTimeTool, Rr as automationToolResult, S as createWorkspaceTools, Si as requireAutomationSkill, Sr as createSlackCanvasEditTool, T as ensureWorkspaceSnapshotBuild, Tr as positiveInteger, U as createWriteFileTool, Un as createSetConversationSubscriptionTool, Ur as newAutomationTask, V as createSearchConversationEventsTool, Vr as automationTriggerSchema, W as createReadFileTool, Wr as triggerKind, X as editFile, Xr as automationToolsDisabledReason, Y as createEditFileTool, Yr as automationToolContext, Z as createBashTool, Zr as requireToolAutomation, _i as changedEventMatch, a as createCacheWarmingRecorder, ar as createSlackChannelListMessagesTool, at as createNoReplyTool, b as coreToolSlots, bi as requireAutomationTaskText, br as createSlackCanvasWriteTool, dr as slackChannelRefParam, ei as requireToolDestination, er as createSlackListGetItemsTool, et as createSpawnAgentTool, fr as checkSlackChannelReadAccess, gi as editEventAutomation, hi as editScheduledAutomation, ht as createUpdateReviewItemTool, ir as createSlackConversationSearchChannelPort, it as createReplyTool, j as createWebFetchTool, jr as createDeleteAutomationTool, kr as createSearchAutomationsTool, lr as createSlackChannelJoinTool, mt as createSearchReviewItemsTool, ni as automationEditor, nn as isParentMessageMeta, nr as createSlackListAddItemsTool, nt as createReportProgressTool, ot as createMessageAgentTool, pr as joinPublicChannelForRead, pt as createAddReviewItemTool, q as TOOL_RESULT_MAX_CHARS, qr as makeStructuredToolOutput, ri as changeAutomationLifecycle, rr as createSlackConversationMessageSearchTool, rt as createReportBlockedTool, st as createArchiveAgentTool, tr as createSlackListCreateTool, tt as createListAgentsTool, ur as resolveSlackChannelRef, vi as requireEventAutomationTrigger, wi as missingAutomationSkillReason, wr as isMissingPathError, x as enabledMode, xr as createSlackCanvasReadTool, z as createStopWatchingResourcesTool, zr as automationToolResultSchema } from "./warmup-
|
|
18
|
+
import { a as readActorIdentityFromSql, i as readActorIdentity } from "./viewer-CqOkWizK.js";
|
|
19
|
+
import { c as QUEUE_SIGNATURE_MAX_AGE_MS } from "./task-queue-DvQZH5rG.js";
|
|
20
|
+
import { At as findVisibleAgentsInstructions, C as PLAN_DELTA_TAG, Dt as AGENTS_REMOVAL_NOTICE, Et as JUNIOR_PERSONALITY, Ft as foldSystemMessages, It as readAgentHistory, Lt as withAgentRequest, Mt as renderAgentsInstructions, Nt as showsAgentsInstructions, Ot as AGENTS_REPLACEMENT_NOTICE, Pt as foldLeadingSystemMessages, Rt as writeAgentHistory, T as renderPlanSnapshot, bt as slackChannelMessageTrigger, d as buildPromptInput, et as resolveSlackReplyTarget, f as buildSteeringPiMessage, gt as requireSlackChannelMessageScope, h as loadPromptTurnContext, jt as readRepositoryInstructions, kt as buildAgentsInstructionsMessage, mt as getEventCatalog, u as assemblePrompt, x as listPlanItems } from "./session-stop-BQ0J0Fph.js";
|
|
21
|
+
import { $ as createStopAgentTool, $n as createSlackListUpdateItemTool, $r as requireToolCreator, A as createWebSearchTool, Ar as createRunAutomationNowTool, B as createSearchEventTypesTool, Br as automationTriggerChangesSchema, C as incrementStat, Cr as SLACK_TOOL_SOURCE, D as requireReadyWorkspaceSnapshot, Di as resolveTaskOutcomes, Dr as createOperationKey, Ei as moveTaskOutcomes, Er as resolveWorkspacePath, F as userLookupIdentityProviders, Fr as zodToolDefinition, G as missingFileResult, Gr as injectContinuationToolName, Gt as listAgentInvocationsForConversation, H as createSearchConversationsTool, Hr as editedAutomationTask, I as createUpdateUserCustomizationTool, Ir as automationIdForToolCall, J as capToolResult, Jn as createSlackThreadReadTool, Jr as getConversationAccess, K as sliceFileContent, Kr as juniorToolOutputSchema, L as createSubmitFeedbackTool, Lr as automationSkillToolSchema, M as createWatchTimerTool, Mr as AUTOMATIONS_TOOL_SOURCE, Mt as createReadConversationEventTool, N as createWatchEventsTool, Nr as parseToolInput, Nt as createRunOperatorSqlTool, O as prepareWorkspaceSnapshot, Or as createCanvas, P as createUserLookupTool, Pr as zodTool, Pt as createListWatchesTool, Q as createUpdatePlanTool, Qn as createSlackPublicSearchTool, Qr as requireToolCaller, R as createSystemTimeTool, Rr as automationToolResult, S as createWorkspaceTools, Si as requireAutomationSkill, Sr as createSlackCanvasEditTool, T as ensureWorkspaceSnapshotBuild, Tr as positiveInteger, U as createWriteFileTool, Un as createSetConversationSubscriptionTool, Ur as newAutomationTask, V as createSearchConversationEventsTool, Vr as automationTriggerSchema, W as createReadFileTool, Wr as triggerKind, X as editFile, Xr as automationToolsDisabledReason, Y as createEditFileTool, Yr as automationToolContext, Z as createBashTool, Zr as requireToolAutomation, _i as changedEventMatch, a as createCacheWarmingRecorder, ar as createSlackChannelListMessagesTool, at as createNoReplyTool, b as coreToolSlots, bi as requireAutomationTaskText, br as createSlackCanvasWriteTool, dr as slackChannelRefParam, ei as requireToolDestination, er as createSlackListGetItemsTool, et as createSpawnAgentTool, fr as checkSlackChannelReadAccess, gi as editEventAutomation, hi as editScheduledAutomation, ht as createUpdateReviewItemTool, ir as createSlackConversationSearchChannelPort, it as createReplyTool, j as createWebFetchTool, jr as createDeleteAutomationTool, kr as createSearchAutomationsTool, lr as createSlackChannelJoinTool, mt as createSearchReviewItemsTool, ni as automationEditor, nn as isParentMessageMeta, nr as createSlackListAddItemsTool, nt as createReportProgressTool, ot as createMessageAgentTool, pr as joinPublicChannelForRead, pt as createAddReviewItemTool, q as TOOL_RESULT_MAX_CHARS, qr as makeStructuredToolOutput, ri as changeAutomationLifecycle, rr as createSlackConversationMessageSearchTool, rt as createReportBlockedTool, st as createArchiveAgentTool, tr as createSlackListCreateTool, tt as createListAgentsTool, ur as resolveSlackChannelRef, vi as requireEventAutomationTrigger, wi as missingAutomationSkillReason, wr as isMissingPathError, x as enabledMode, xr as createSlackCanvasReadTool, z as createStopWatchingResourcesTool, zr as automationToolResultSchema } from "./warmup-HFgFZFwS.js";
|
|
22
22
|
import { a as USER_INPUT_LIMITS, i as AGENT_INVOCATION_STATUSES, m as detectImageMediaType, o as USER_INPUT_NOTE, s as buttonUserInputField, u as normalizeUserInputAnswer } from "./web-message-id-BT8Mg8LL.js";
|
|
23
|
-
import { d as isTurnInputCommitLostError, o as CooperativeTurnYieldError, s as TurnInputCommitLostError } from "./turn-user-message-
|
|
24
|
-
import { m as getVercelConversationWorkQueue, n as backgroundCompactionId } from "./background-compaction-queue-
|
|
25
|
-
import { t as resolveConversationRouting } from "./turn-session-routing-
|
|
26
|
-
import { o as getSandboxResources, r as setSnapshotSpanAttributes } from "./install-
|
|
27
|
-
import { n as resolve$1 } from "./resolve-
|
|
28
|
-
import { t as runWithSlackInstallation } from "./adapter-context-
|
|
23
|
+
import { d as isTurnInputCommitLostError, o as CooperativeTurnYieldError, s as TurnInputCommitLostError } from "./turn-user-message-DbU7MNd9.js";
|
|
24
|
+
import { m as getVercelConversationWorkQueue, n as backgroundCompactionId } from "./background-compaction-queue-BpmDEQf6.js";
|
|
25
|
+
import { t as resolveConversationRouting } from "./turn-session-routing-Cqjj1B3i.js";
|
|
26
|
+
import { o as getSandboxResources, r as setSnapshotSpanAttributes } from "./install-Y2s9ZPvk.js";
|
|
27
|
+
import { n as resolve$1 } from "./resolve-z2sKt8xM.js";
|
|
28
|
+
import { t as runWithSlackInstallation } from "./adapter-context-BO432242.js";
|
|
29
29
|
import { n as privateTraceResultAttributes } from "./private-trace-result-CE7_lEdq.js";
|
|
30
30
|
import pLimit from "p-limit";
|
|
31
31
|
import * as z from "zod";
|
|
@@ -12390,7 +12390,7 @@ function createAgentRunner(execute, options) {
|
|
|
12390
12390
|
}
|
|
12391
12391
|
};
|
|
12392
12392
|
const loadStoredAttachments = async (attachments) => {
|
|
12393
|
-
const { loadInputAttachments } = await import("./model-input-
|
|
12393
|
+
const { loadInputAttachments } = await import("./model-input-DRChpXJ7.js").then((n) => n.r);
|
|
12394
12394
|
const storage = nextRun.environment?.attachmentStorage;
|
|
12395
12395
|
if (!storage) throw new Error("Attachment storage is unavailable.");
|
|
12396
12396
|
return await loadInputAttachments({
|
package/dist/api.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { V as escapeXml, n as botConfig, ut as getAttachmentStorage } from "./config-
|
|
2
|
-
import { $ as getStateAdapter, A as conversationKindFromRow, C as withConversationMutationLock, X as createCache, a as getConversationStore, dt as microUsdToUsd, ht as conversationUsageCostExpr, mt as conversationRangeColumns, o as getDb, pt as conversationAggregateColumns, s as getSqlExecutor, ut as microUsdSql, wt as nextDetailVersion, y as loadConversationSlackTenantIds } from "./db-
|
|
3
|
-
import { Dt as AttachmentUploadError, Ft as listOwnedWatches, Gn as emptyResponse, It as listChildAgents, Kn as jsonResponse, Oi as countOwnedAutomationsNeedingAttention, Tt as webActorFromUser, Wn as setConversationSubscription, _ as closeBreaker, ai as deleteViewerTask, ci as ViewerTaskNotFoundError, di as readViewerAutomationRuns, fi as readViewerAutomationSummary, ft as reportConversationRead, g as breakerStates, h as savingsTotals, ii as changeViewerAutomationLifecycle, jt as writeAttachmentUpload, kt as createAttachmentUpload, lt as archiveConversation, mi as readViewerAutomations, oi as readViewerAutomationEdit, pi as readViewerAutomationVersions, qn as throwApiError, si as updateViewerAutomation, ti as activateViewerAutomationVersion, u as SAVINGS_NAMESPACE, ui as readViewerAutomationExecutions, v as connectedState, w as readStats, xi as AutomationEditError, yt as acceptsWebMessages } from "./warmup-
|
|
1
|
+
import { V as escapeXml, n as botConfig, ut as getAttachmentStorage } from "./config-Cx8H0MRw.js";
|
|
2
|
+
import { $ as getStateAdapter, A as conversationKindFromRow, C as withConversationMutationLock, X as createCache, a as getConversationStore, dt as microUsdToUsd, ht as conversationUsageCostExpr, mt as conversationRangeColumns, o as getDb, pt as conversationAggregateColumns, s as getSqlExecutor, ut as microUsdSql, wt as nextDetailVersion, y as loadConversationSlackTenantIds } from "./db-CO6Y10eM.js";
|
|
3
|
+
import { Dt as AttachmentUploadError, Ft as listOwnedWatches, Gn as emptyResponse, It as listChildAgents, Kn as jsonResponse, Oi as countOwnedAutomationsNeedingAttention, Tt as webActorFromUser, Wn as setConversationSubscription, _ as closeBreaker, ai as deleteViewerTask, ci as ViewerTaskNotFoundError, di as readViewerAutomationRuns, fi as readViewerAutomationSummary, ft as reportConversationRead, g as breakerStates, h as savingsTotals, ii as changeViewerAutomationLifecycle, jt as writeAttachmentUpload, kt as createAttachmentUpload, lt as archiveConversation, mi as readViewerAutomations, oi as readViewerAutomationEdit, pi as readViewerAutomationVersions, qn as throwApiError, si as updateViewerAutomation, ti as activateViewerAutomationVersion, u as SAVINGS_NAMESPACE, ui as readViewerAutomationExecutions, v as connectedState, w as readStats, xi as AutomationEditError, yt as acceptsWebMessages } from "./warmup-HFgFZFwS.js";
|
|
4
4
|
import { C as createConversationMessageBodySchema, H as renameConversationResponseSchema, S as createConversationBodySchema, T as forkConversationResponseSchema, U as conversationReadPositionSchema, V as renameConversationBodySchema, Z as MAX_ATTACHMENT_BYTES, f as conversationEventPageSchema, l as conversationDetailQuerySchema, m as conversationParamsSchema, n as CONVERSATION_VERSION_HEADER, o as conversationAttachmentParamsSchema, p as conversationEventsQuerySchema, r as acceptedConversationMessageSchema, s as conversationAttachmentQuerySchema, t as CONVERSATION_DETAIL_VERSION_HEADER, u as conversationDetailReportSchema, w as forkConversationBodySchema } from "./conversation--f85g4zL.js";
|
|
5
5
|
import { $ as testNotificationResponseSchema, A as startServiceAccountSignInResponseSchema, At as objectLinksReportSchema, B as personParamsSchema, Bt as conversationSubscriptionResponseSchema, C as cacheWarmingSavingsRefillResponseSchema, Ct as conversationChildAgentsReportSchema, D as serviceAccountListSchema, Dt as attachObjectLinkBodySchema, E as disconnectServiceAccountResponseSchema, F as personalTokenParamsSchema, Ft as archiveConversationBodySchema, G as locationParamsSchema, Gt as reorderPinnedConversationsBodySchema, Ht as conversationDeliveryResponseSchema, I as revokePersonalTokenResponseSchema, It as archiveConversationResponseSchema, J as activitySixHours$1, Jt as conversationCatchUpSchema, K as activityDays$1, Kt as reorderPinnedConversationsResponseSchema, L as actorDirectoryReportSchema, Lt as archiveDoneConversationsResponseSchema, M as createdPersonalTokenSchema, Mt as conversationStatsReportSchema, N as personalTokenListSchema, O as serviceAccountParamsSchema, Ot as attachObjectLinkResponseSchema, Pt as conversationOutlineSchema, Q as pushSubscriptionDeleteBodySchema, R as actorProfileReportSchema, Rt as conversationAutoArchiveSchema, S as cacheWarmingSavingsQuerySchema, T as closeCacheWarmingBreakerResponseSchema, Tt as continueConversationInSlackResponseSchema, U as locationDetailReportSchema, Ut as pinConversationBodySchema, V as personalSpendReportSchema, Vt as conversationDeliveryBodySchema, W as locationDirectoryReportSchema, Wt as pinConversationResponseSchema, X as notificationSettingsSchema, Xt as attachmentUploadSchema, Yt as attachmentUploadParamsSchema, Z as pushSubscriptionBodySchema, Zt as createAttachmentUploadBodySchema, _ as reviewItemParamsSchema, _t as conversationPlanReportSchema, b as cacheWarmingBreakerListSchema, c as workspaceListSchema, d as workspaceSchema, dt as codeRepositoryParamsSchema, et as connectionListSchema, f as reviewItemActionSchema, ft as codeRepositoryQuerySchema, g as reviewItemListSchema, gt as conversationPlanItemSchema, h as reviewItemListQuerySchema, ht as personCodeQuerySchema, i as statsReportSchema, it as startConnectionResponseSchema, j as createPersonalTokenBodySchema, jt as stopConversationTurnResponseSchema, kt as objectLinksQuerySchema, l as workspaceParamsSchema, lt as codeOverviewReportSchema, m as reviewItemCountSchema, n as versionsSchema, o as deleteWorkspaceResponseSchema, p as reviewItemCountQuerySchema, pt as codeRepositoryReportSchema, q as activityHours$1, qt as conversationCatchUpBodySchema, rt as disconnectConnectionResponseSchema, s as workspaceBodySchema, t as versionsQuerySchema, tt as connectionParamsSchema, ut as codePersonReportSchema, v as reviewItemSchema, vt as planItemParamsSchema, w as cacheWarmingSavingsReportSchema, wt as continueConversationInSlackBodySchema, x as cacheWarmingBreakerParamsSchema, xt as conversationWatchesReportSchema, y as reviewItemWaitingConversationsSchema, yt as planItemStatusBodySchema, z as avatarParamsSchema, zt as conversationSubscriptionBodySchema } from "./schema-D4jdesIu.js";
|
|
6
6
|
import { S as skillDetailReportSchema, a as cancelConversationPendingMessagesResponseSchema, b as pluginsSchema, d as conversationUnchangedDetailWithMailboxSchema, f as steerConversationPendingMessagesBodySchema, h as pluginOperationalReportFeedSchema, i as cancelConversationPendingMessagesBodySchema, m as healthReportSchema, n as conversationFeedQuerySchema, o as conversationDetailWithMailboxReportSchema, p as steerConversationPendingMessagesResponseSchema, r as conversationFeedSchema, u as conversationPendingMessagesReportSchema, w as skillReportsSchema, x as runtimeInfoReportSchema } from "./conversation-feed-BNs9KiqC.js";
|
|
7
|
-
import { G as isAllowedDomain, H as addConversationNote, S as setPlanItemStatusByUser, _ as readUserCustomization, ft as isExperimentalFeatureEnabled, mt as getEventCatalog, q as parseEmail, v as saveUserCustomization, x as listPlanItems } from "./session-stop-
|
|
8
|
-
import { $r as reviewItemReaderForUser, Ar as countOpenReviewItemsForUser, Bi as updateWorkspace, Cr as saveNotificationSchedule, Ea as workspaceRepoCheckoutPath, Fi as deleteWorkspace,
|
|
9
|
-
import { A as actOnReviewItem, B as readSavingsRefill, Ct as decodeImageId, D as resolveMentions, E as requireConversationPendingMessages, G as readHealthReport, H as startSavingsRefill, I as setConversationAutoArchive, J as readObjectLinkTypes, K as OBJECT_LINK_TTL_MS, L as DEFAULT_USER_SETTINGS, M as readReviewItemForUser, P as archiveViewerDoneConversations, R as readUserSettings, St as IMAGE_WIDTHS, X as resolveObjectLinks, Y as resolveObjectLinkNow, Z as guardedFetch, _ as readConversationEvents, a as decodePageCursor, b as createConversationForViewer, bt as readFirstHumanMessageTexts, c as reorderPinnedConversations, d as childAgentTotalsReport, f as readConversationTreeMetricsFromSql, g as keepQuickQuestionForViewer, h as forkConversationForViewer, i as readConversationFeed, k as ReviewItemActionError, l as readConversationDetail, m as readConversationDetailEtag, n as steerConversationPendingMessagesForViewer, nt as getProductionSlackAdapter, o as encodePageCursor, p as conversationVersionQuery, q as readLinkObjectType, r as conversationFeedVersionQuery, s as pinConversation, t as stopConversationTurnForViewer, u as readConversationAuxiliaryCostsFromSql, w as cancelConversationPendingMessagesForViewer, x as requireWebMessageConversation, xt as createViewerMcp, y as appendConversationMessageForViewer, yt as conversationSummaryFromStoredConversation, z as updateUserSettings } from "./stop-
|
|
10
|
-
import { d as completeText, n as briefEntriesFromReportEvents } from "./prompt-
|
|
11
|
-
import { A as resumeConversationDelivery, D as canPauseConversationDelivery, M as readAttachmentContent, N as previewOriginBelongsTo, _ as createSlackReviewItemShow, j as AttachmentDownloadError, k as pauseConversationDelivery } from "./agent-runner-
|
|
12
|
-
import { _ as runBestEffort, h as logWarn, m as logInfo, p as logException } from "./logging-
|
|
13
|
-
import { t as runWithSlackInstallation } from "./adapter-context-
|
|
14
|
-
import { A as juniorConversationEvents, B as juniorUsers, E as juniorConversationBriefs, N as juniorCodeChanges, O as juniorConversationMetrics, P as juniorCodeRepositories, R as juniorConversations, V as juniorDestinations, j as juniorApiTokens, z as juniorIdentities } from "./executor-
|
|
15
|
-
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-
|
|
7
|
+
import { G as isAllowedDomain, H as addConversationNote, S as setPlanItemStatusByUser, _ as readUserCustomization, ft as isExperimentalFeatureEnabled, mt as getEventCatalog, q as parseEmail, v as saveUserCustomization, x as listPlanItems } from "./session-stop-BQ0J0Fph.js";
|
|
8
|
+
import { $r as reviewItemReaderForUser, Ar as countOpenReviewItemsForUser, Bi as updateWorkspace, Cr as saveNotificationSchedule, Ea as workspaceRepoCheckoutPath, Fi as deleteWorkspace, Ii as getWorkspace, Is as escapeSlackMrkdwnText, Jr as itemNeedsUser, Ka as createConversationAccessReader, Ki as create, Lr as listWaitingConversations, Ls as formatSlackLink, Nn as getPlugins, No as createPluginAnnotations, Pi as createWorkspace, Po as listConversationAnnotations, Ri as listWorkspaces, Rr as reviewItemsNeedingUserVersionQuery, Sr as readNotificationSchedule, Tc as automationEventCatalog, Tr as isPausedBySlack, Ua as createPluginLogger, Uc as AutomationConflictError, Ur as canActOnReviewItem, Vi as WorkspaceValidationError, _r as readWebPushConfig, bn as createUserTokenStore, bo as readLiveAttachment, br as deletePushSubscription, dl as createPluginCache, ei as reviewItemReaderForUserInConversation, fs as postSlackMessage, ho as readSlackAttachmentSource, jr as countReviewItemsNeedingUserBySubject, oc as getDashboardSettingsLink, qa as readConversationAccessFromSql, qi as hash, qr as isOnlyAssignee, rl as readAutomationTitlesByConversationId, ro as readConversationEventPage, tc as getDashboardConversationLink, to as readConversationBriefThrough, vr as sendPushNotificationToUser, wa as SANDBOX_RUNTIME, wr as savePushSubscription, xr as listPushSubscriptions, yr as resolveNotificationTimezone, z as createPluginEgress, zi as listWorkspacesByRepository, zr as searchReviewItems } from "./projection-Bqn6zdVT.js";
|
|
9
|
+
import { A as actOnReviewItem, B as readSavingsRefill, Ct as decodeImageId, D as resolveMentions, E as requireConversationPendingMessages, G as readHealthReport, H as startSavingsRefill, I as setConversationAutoArchive, J as readObjectLinkTypes, K as OBJECT_LINK_TTL_MS, L as DEFAULT_USER_SETTINGS, M as readReviewItemForUser, P as archiveViewerDoneConversations, R as readUserSettings, St as IMAGE_WIDTHS, X as resolveObjectLinks, Y as resolveObjectLinkNow, Z as guardedFetch, _ as readConversationEvents, a as decodePageCursor, b as createConversationForViewer, bt as readFirstHumanMessageTexts, c as reorderPinnedConversations, d as childAgentTotalsReport, f as readConversationTreeMetricsFromSql, g as keepQuickQuestionForViewer, h as forkConversationForViewer, i as readConversationFeed, k as ReviewItemActionError, l as readConversationDetail, m as readConversationDetailEtag, n as steerConversationPendingMessagesForViewer, nt as getProductionSlackAdapter, o as encodePageCursor, p as conversationVersionQuery, q as readLinkObjectType, r as conversationFeedVersionQuery, s as pinConversation, t as stopConversationTurnForViewer, u as readConversationAuxiliaryCostsFromSql, w as cancelConversationPendingMessagesForViewer, x as requireWebMessageConversation, xt as createViewerMcp, y as appendConversationMessageForViewer, yt as conversationSummaryFromStoredConversation, z as updateUserSettings } from "./stop-CcHPEcFE.js";
|
|
10
|
+
import { d as completeText, n as briefEntriesFromReportEvents } from "./prompt-DAjjk5fm.js";
|
|
11
|
+
import { A as resumeConversationDelivery, D as canPauseConversationDelivery, M as readAttachmentContent, N as previewOriginBelongsTo, _ as createSlackReviewItemShow, j as AttachmentDownloadError, k as pauseConversationDelivery } from "./agent-runner-BnOofGFG.js";
|
|
12
|
+
import { _ as runBestEffort, h as logWarn, m as logInfo, p as logException } from "./logging-DnBYBM8z.js";
|
|
13
|
+
import { t as runWithSlackInstallation } from "./adapter-context-BO432242.js";
|
|
14
|
+
import { A as juniorConversationEvents, B as juniorUsers, E as juniorConversationBriefs, N as juniorCodeChanges, O as juniorConversationMetrics, P as juniorCodeRepositories, R as juniorConversations, V as juniorDestinations, j as juniorApiTokens, z as juniorIdentities } from "./executor-Doo-N6Yn.js";
|
|
15
|
+
import { i as continueConversationInSlack, r as canContinueInSlack, t as BUSY } from "./continue-in-slack-CtTv1tkn.js";
|
|
16
16
|
import { f as parseSlackTeamId, u as parseSlackChannelId } from "./actor-D2iXzvlN.js";
|
|
17
17
|
import { A as HOUR_MS$1, F as sumUtcHoursIntoSixHours, I as trailingUtcDayWindow, L as trailingUtcHourWindow, M as fillUtcHours, N as fillUtcSixHours, O as apiErrorSchema, P as startOfUtcHour, R as trailingUtcSixHourWindow, _ as userCustomizationSchema, f as INLINE_VIDEO_TYPES, j as fillUtcDays, k as DAY_MS$2, m as detectImageMediaType, p as INPUT_IMAGE_TYPES, x as isOpenPlanItemStatus, z as utcHourKey } from "./web-message-id-BT8Mg8LL.js";
|
|
18
|
-
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-
|
|
19
|
-
import { p as credentialContextForActor } from "./registry-
|
|
20
|
-
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarFetch, t as findUserByEmail } from "./viewer-
|
|
21
|
-
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-
|
|
22
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
18
|
+
import { a as startConnection, n as isConnectableProvider, r as listConnections, s as htmlCallbackResponse, t as disconnectConnection } from "./connections-DUylBPiR.js";
|
|
19
|
+
import { p as credentialContextForActor } from "./registry-tHJLCtKS.js";
|
|
20
|
+
import { c as readViewerAvatarUrl, d as updateViewerDisplayName, l as resolveViewerUser, m as readAvatarFetch, t as findUserByEmail } from "./viewer-CqOkWizK.js";
|
|
21
|
+
import { n as finishServiceAccountSignIn, o as serviceAccountPlugins, r as getServiceAccountStatus, s as startServiceAccountSignIn, t as disconnectServiceAccount } from "./service-account-CddxU-yC.js";
|
|
22
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
23
23
|
import { B as compileScheduleIntent, C as automationUpdateSchema, E as automationVersionParamsSchema, Q as automationTaskText, S as automationSummarySchema, T as automationVersionListSchema, _ as automationRunListSchema, a as automationEditSchema, b as automationScheduleIntentSchema, d as automationLifecycleSchema, g as automationParamsSchema, i as automationEditErrorSchema, m as automationListQuerySchema, o as automationEventCatalogSchema, p as automationListPageSchema, r as notificationScheduleSchema, s as automationExecutionListSchema, w as automationVersionActivateSchema, x as automationSchedulePreviewSchema, z as ScheduleIntentError } from "./schedule-BG1tEbRF.js";
|
|
24
|
-
import { o as getSandboxResources } from "./install-
|
|
25
|
-
import { t as getCachedSnapshot } from "./resolve-
|
|
26
|
-
import { m as getVercelConversationWorkQueue } from "./background-compaction-queue-
|
|
24
|
+
import { o as getSandboxResources } from "./install-Y2s9ZPvk.js";
|
|
25
|
+
import { t as getCachedSnapshot } from "./resolve-z2sKt8xM.js";
|
|
26
|
+
import { m as getVercelConversationWorkQueue } from "./background-compaction-queue-BpmDEQf6.js";
|
|
27
27
|
import { Hono } from "hono";
|
|
28
28
|
import * as z from "zod";
|
|
29
29
|
import path from "node:path";
|
|
@@ -2870,7 +2870,7 @@ async function readPeoplePluginReports(args) {
|
|
|
2870
2870
|
reports: [],
|
|
2871
2871
|
source: "plugins"
|
|
2872
2872
|
});
|
|
2873
|
-
const { getPluginProfileReports } = await import("./projection-
|
|
2873
|
+
const { getPluginProfileReports } = await import("./projection-Bqn6zdVT.js").then((n) => n.Cn);
|
|
2874
2874
|
return pluginOperationalReportFeedSchema.parse({
|
|
2875
2875
|
generatedAt: new Date(nowMs).toISOString(),
|
|
2876
2876
|
reports: await getPluginProfileReports({
|
|
@@ -4055,7 +4055,7 @@ function readDescriptionText(home) {
|
|
|
4055
4055
|
}
|
|
4056
4056
|
/** Read discovered skills for runtime diagnostics and the Automation editor. */
|
|
4057
4057
|
async function readSkillReports() {
|
|
4058
|
-
const { discoverSkills } = await import("./skills-
|
|
4058
|
+
const { discoverSkills } = await import("./skills-Dm2-5nn5.js").then((n) => n.o);
|
|
4059
4059
|
const skills = await discoverSkills();
|
|
4060
4060
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
4061
4061
|
name: skill.name,
|
|
@@ -4069,7 +4069,7 @@ async function readSkillReports() {
|
|
|
4069
4069
|
* what the skill tells Junior. Returns null when no skill has that name.
|
|
4070
4070
|
*/
|
|
4071
4071
|
async function readSkillDetailReport(name) {
|
|
4072
|
-
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-
|
|
4072
|
+
const { discoverSkills, findSkillByName, parseSkillFile } = await import("./skills-Dm2-5nn5.js").then((n) => n.o);
|
|
4073
4073
|
const skill = findSkillByName(name, await discoverSkills());
|
|
4074
4074
|
if (!skill) return null;
|
|
4075
4075
|
const parsed = parseSkillFile(await fs.readFile(path.join(skill.skillPath, "SKILL.md"), "utf8"), skill.name);
|
|
@@ -4084,7 +4084,7 @@ async function readSkillDetailReport(name) {
|
|
|
4084
4084
|
}
|
|
4085
4085
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
4086
4086
|
async function readPlugins() {
|
|
4087
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4087
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-q9AJjuUN.js").then((n) => n.t);
|
|
4088
4088
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4089
4089
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
4090
4090
|
description: plugin.manifest.description,
|
|
@@ -4096,7 +4096,7 @@ async function readPlugins() {
|
|
|
4096
4096
|
async function readRuntimeInfoReport() {
|
|
4097
4097
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4098
4098
|
import("./package-discovery-x4AvVhMj.js").then((n) => n.r),
|
|
4099
|
-
import("./catalog-runtime-
|
|
4099
|
+
import("./catalog-runtime-q9AJjuUN.js").then((n) => n.t),
|
|
4100
4100
|
readPlugins(),
|
|
4101
4101
|
readSkillReports()
|
|
4102
4102
|
]);
|
|
@@ -4113,7 +4113,7 @@ async function readRuntimeInfoReport() {
|
|
|
4113
4113
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
4114
4114
|
async function readPluginOperationalReportFeed() {
|
|
4115
4115
|
const nowMs = Date.now();
|
|
4116
|
-
const { getPluginOperationalReports } = await import("./projection-
|
|
4116
|
+
const { getPluginOperationalReports } = await import("./projection-Bqn6zdVT.js").then((n) => n.Cn);
|
|
4117
4117
|
return pluginOperationalReportFeedSchema.parse({
|
|
4118
4118
|
source: "plugins",
|
|
4119
4119
|
generatedAt: new Date(nowMs).toISOString(),
|
|
@@ -47,7 +47,8 @@ interface RuntimeLimits {
|
|
|
47
47
|
contextWindowTokens?: number;
|
|
48
48
|
/**
|
|
49
49
|
* Levels of child agents that can start their own child agents. The
|
|
50
|
-
* default,
|
|
50
|
+
* default, 1, lets a child of the root start child agents, and those
|
|
51
|
+
* cannot start more. 0 lets only the root Conversation start them.
|
|
51
52
|
*/
|
|
52
53
|
maxAgentDepth?: number;
|
|
53
54
|
/** Automated turns in a row before Junior stops answering automation. */
|
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-CqYqy541.js";
|
|
2
2
|
import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-fBrz8PCV.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,38 +1,38 @@
|
|
|
1
|
-
import { $i as proxyVercelSandboxEgressRequest, $o as listPendingDispatchMailboxAppends, $r as reviewItemReaderForUser, $s as
|
|
2
|
-
import { d as restoreRuntimeConfig, f as setBotModelConfig, g as snapshotRuntimeConfig, h as setSlackReactionConfig, i as getChatConfig, m as setRuntimeLimits, n as botConfig, p as setBotName, u as resetRuntimeConfig, ut as getAttachmentStorage } from "./config-
|
|
3
|
-
import { $ as getStateAdapter, C as withConversationMutationLock, Et as createSlackDestination, G as recordGoogleSignIn, I as resolveActorIdentityId, Tt as touchConversationDetail, Z as disconnectStateAdapter, a as getConversationStore, at as withLock, it as fenceLock, lt as conversationCostOf, m as withConversationEventLock, nt as MUTATION_LOCK_TTL_MS, o as getDb, p as deleteMessageLinks, r as getConversationEventStore, s as getSqlExecutor, t as closeDb } from "./db-
|
|
4
|
-
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, G as normalizeIdentityEmail, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, U as GOOGLE_IDENTITY_PROVIDER, 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 { A as resumeConversationDelivery, C as parseSlackReviewItemClick, E as parseSlackUserInputSubmission, S as buildSlackReviewItemModal, _ as createSlackReviewItemShow, b as findSlackThreadOwnerId, d as publicArtifactHeaders, f as readPublicArtifact, g as scheduledAutomationRunAttributes, h as logScheduledAutomationRunSkipped, n as executeAgentRun, p as unpublishedArtifactHeaders, r as processBackgroundCompaction, t as createAgentRunner, v as resolveSlackReviewItemCardConversationId, w as parseSlackReviewItemFormTarget, y as syncReviewItemSlackCards } from "./agent-runner-
|
|
6
|
-
import { E as getAuthPausedConversationTurnId, G as isAllowedDomain, J as resolveEventAuthor, K as isTrustedSlackAuthor, U as eventAuthorText, W as findTrustedUser, X as resolveBotSlackTeamId, Y as setTrustConfig, Z as renderTaskInput, _t as slackChannelMessageEvent, at as decodeAnnotationRef, b as deletePlanItems, dt as getExperimentalFeatures, ft as isExperimentalFeatureEnabled, ht as SLACK_EVENT_NAMESPACE, it as annotationKeyDigest, mt as getEventCatalog, pt as setExperimentalFeatures, q as parseEmail, rt as renderSlackObjectCard, vt as slackChannelMessageReplyThreadTs, yt as slackChannelMessageRunsAutomation } from "./session-stop-
|
|
7
|
-
import { a as getSandboxResourceConfig, s as setSandboxResourceConfig } from "./install-
|
|
8
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
9
|
-
import { $ as publicAddressLookup, A as actOnReviewItem, C as encodeConversationCursor, F as runAutoArchiveSweep, I as setConversationAutoArchive, J as readObjectLinkTypes, M as readReviewItemForUser, N as reviewItemChange, O as stopConversation, P as archiveViewerDoneConversations, Q as isPublicAddress, S as decodeConversationCursor, T as readConversationPendingMessages, U as backfillCacheWarmingGaps, V as runSavingsRefillSlice, W as GET$4, _t as SubscribedReplyReason, at as slackInboundMessageId, b as createConversationForViewer, dt as recordSkippedConversationMessage, et as createProductionConversationWorkOptions, ft as createSlackWebApiStatusSender, gt as parseContent, ht as stripLeadingBotMention, i as readConversationFeed, it as clearSlackPendingReactions, j as closeReviewItemsAnsweredByReply, k as ReviewItemActionError, l as readConversationDetail, lt as enqueueAgentDispatch, mt as startProcessingReaction, n as steerConversationPendingMessagesForViewer, nt as getProductionSlackAdapter, ot as normalizeIncomingSlackThreadId, pt as bindMessageAuthorIdentityId, rt as buildSlackInboundMessage, s as pinConversation, st as withNormalizedThreadId, t as stopConversationTurnForViewer, tt as createProductionSlackWebhookServices, ut as failStoppedDispatch, v as readConversationRecordFromSql, vt as getThreadStopDecision, w as cancelConversationPendingMessagesForViewer, y as appendConversationMessageForViewer } from "./stop-
|
|
10
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-
|
|
1
|
+
import { $i as proxyVercelSandboxEgressRequest, $o as listPendingDispatchMailboxAppends, $r as reviewItemReaderForUser, $s as scheduledRunId, Ai as verifySlackDirectCredentialSubject, Ao as createConversationEmbedder, At as hasRunnableConversationWork, C as settleConversationTitleWork, Ca as normalizeSandboxEgressTracePropagationDomains, Cc as eventAutomationRunLimitReason, Ci as takeDueTimerWatches, Di as bindSlackDirectCredentialSubject, Dn as getPluginApiRoutes, Do as resolveRootVisibility, Dr as createPluginReviewItems, Ei as bindScheduledAutomationCredentialSubject, Er as projectConversationMessages, Es as isDmChannel, Fn as setPlugins, Go as createOrGetDispatch, Hn as setEventEmbeddingsConfig, Ho as buildDispatchId, In as validatePlugins, It as pruneActiveConversation, Js as listScheduledAutomationsForTeam, Ko as getDispatchConversationId, Mi as createPluginState, Mr as dismissOpenReviewItems, Mt as isInvalidConversationRecordError, Nn as getPlugins, No as createPluginAnnotations, Ns as getWorkspaceTeamId, Oa as createPluginEmbedder, Oc as eventGuidance, Oi as verifyEventAutomationCredentialSubject, On as getPluginRoutes, Po as listConversationAnnotations, Ps as runWithWorkspaceTeamId, Qi as isVercelSandboxEgressRequest, Qo as isTerminalDispatchStatus, Qs as saveScheduledAutomationInLock, Rn as isBriefsEnabled, Sc as admitEventAutomationRun, So as requestAttachmentDeletion, Ti as bindEventAutomationCredentialSubject, Tn as createPluginEventPublisher, Ua as createPluginLogger, Ur as canActOnReviewItem, Vn as setBriefsConfig, Vs as slackMention, Wo as confirmDispatchMailboxAppend, Xs as readScheduledAutomation, Yc as existingConversationId, Yo as getDispatchRecord, Zo as getPluginDispatchProjection, _ as appendConversationMessages, _a as consumeSandboxEgressPermissionDeniedSignal, _l as getConfigDefaults, ac as getDashboardReviewItemLink, al as refreshAutomationLastRun, as as notifyAutomationBlocked, bn as createUserTokenStore, dc as setDashboardConversationLinkOptions, dl as createPluginCache, ds as postSlackEphemeralMessage, ec as withScheduledAutomationLock, ei as reviewItemReaderForUserInConversation, fc as blockEventAutomation, ga as consumeSandboxEgressAuthRequiredSignal, gc as findMatchingEventAutomations, ha as clearSandboxEgressSignals, hi as collectEventMatchKeys, il as recordAutomationExecution, io as readConversationEventPageAfter, ki as verifyScheduledAutomationCredentialSubject, ko as backfillConversationEmbeddings, lt as CONVERSATION_WORK_STALE_ENQUEUE_MS, oi as createCodeChangePublisher, oo as readConversationLastEventSeq, pc as collectEventAutomationMatchKeys, qa as readConversationAccessFromSql, ra as resolveBaseUrl, ro as readConversationEventPage, rs as markDispatchFailed, sc as getDashboardTaskLink, so as readConversationMessageEventSeq, tc as getDashboardConversationLink, us as openSlackModal, vl as setConfigDefaults, vo as collectAttachmentGarbage, vs as slackEntitySchema, ws as getSlackClient, ya as parseSandboxEgressCredentialToken, yi as findMatchingWatches, ys as slackExternalRefIdSchema, zc as automationVersionOf, zr as searchReviewItems } from "./projection-Bqn6zdVT.js";
|
|
2
|
+
import { d as restoreRuntimeConfig, f as setBotModelConfig, g as snapshotRuntimeConfig, h as setSlackReactionConfig, i as getChatConfig, m as setRuntimeLimits, n as botConfig, p as setBotName, u as resetRuntimeConfig, ut as getAttachmentStorage } from "./config-Cx8H0MRw.js";
|
|
3
|
+
import { $ as getStateAdapter, C as withConversationMutationLock, Et as createSlackDestination, G as recordGoogleSignIn, I as resolveActorIdentityId, Tt as touchConversationDetail, Z as disconnectStateAdapter, a as getConversationStore, at as withLock, it as fenceLock, lt as conversationCostOf, m as withConversationEventLock, nt as MUTATION_LOCK_TTL_MS, o as getDb, p as deleteMessageLinks, r as getConversationEventStore, s as getSqlExecutor, t as closeDb } from "./db-CO6Y10eM.js";
|
|
4
|
+
import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, G as normalizeIdentityEmail, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, U as GOOGLE_IDENTITY_PROVIDER, 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-DnBYBM8z.js";
|
|
5
|
+
import { A as resumeConversationDelivery, C as parseSlackReviewItemClick, E as parseSlackUserInputSubmission, S as buildSlackReviewItemModal, _ as createSlackReviewItemShow, b as findSlackThreadOwnerId, d as publicArtifactHeaders, f as readPublicArtifact, g as scheduledAutomationRunAttributes, h as logScheduledAutomationRunSkipped, n as executeAgentRun, p as unpublishedArtifactHeaders, r as processBackgroundCompaction, t as createAgentRunner, v as resolveSlackReviewItemCardConversationId, w as parseSlackReviewItemFormTarget, y as syncReviewItemSlackCards } from "./agent-runner-BnOofGFG.js";
|
|
6
|
+
import { E as getAuthPausedConversationTurnId, G as isAllowedDomain, J as resolveEventAuthor, K as isTrustedSlackAuthor, U as eventAuthorText, W as findTrustedUser, X as resolveBotSlackTeamId, Y as setTrustConfig, Z as renderTaskInput, _t as slackChannelMessageEvent, at as decodeAnnotationRef, b as deletePlanItems, dt as getExperimentalFeatures, ft as isExperimentalFeatureEnabled, ht as SLACK_EVENT_NAMESPACE, it as annotationKeyDigest, mt as getEventCatalog, pt as setExperimentalFeatures, q as parseEmail, rt as renderSlackObjectCard, vt as slackChannelMessageReplyThreadTs, yt as slackChannelMessageRunsAutomation } from "./session-stop-BQ0J0Fph.js";
|
|
7
|
+
import { a as getSandboxResourceConfig, s as setSandboxResourceConfig } from "./install-Y2s9ZPvk.js";
|
|
8
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-q9AJjuUN.js";
|
|
9
|
+
import { $ as publicAddressLookup, A as actOnReviewItem, C as encodeConversationCursor, F as runAutoArchiveSweep, I as setConversationAutoArchive, J as readObjectLinkTypes, M as readReviewItemForUser, N as reviewItemChange, O as stopConversation, P as archiveViewerDoneConversations, Q as isPublicAddress, S as decodeConversationCursor, T as readConversationPendingMessages, U as backfillCacheWarmingGaps, V as runSavingsRefillSlice, W as GET$4, _t as SubscribedReplyReason, at as slackInboundMessageId, b as createConversationForViewer, dt as recordSkippedConversationMessage, et as createProductionConversationWorkOptions, ft as createSlackWebApiStatusSender, gt as parseContent, ht as stripLeadingBotMention, i as readConversationFeed, it as clearSlackPendingReactions, j as closeReviewItemsAnsweredByReply, k as ReviewItemActionError, l as readConversationDetail, lt as enqueueAgentDispatch, mt as startProcessingReaction, n as steerConversationPendingMessagesForViewer, nt as getProductionSlackAdapter, ot as normalizeIncomingSlackThreadId, pt as bindMessageAuthorIdentityId, rt as buildSlackInboundMessage, s as pinConversation, st as withNormalizedThreadId, t as stopConversationTurnForViewer, tt as createProductionSlackWebhookServices, ut as failStoppedDispatch, v as readConversationRecordFromSql, vt as getThreadStopDecision, w as cancelConversationPendingMessagesForViewer, y as appendConversationMessageForViewer } from "./stop-CcHPEcFE.js";
|
|
10
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-BEUlev32.js";
|
|
11
11
|
import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-Bkk0XRo2.js";
|
|
12
|
-
import { Ci as findAutomationSkill, E as processWorkspaceSnapshotJob, Kt as listPendingAgentInvocationMailboxAppends, Ot as collectAttachmentUploadGarbage, St as createAndEnqueueConversation, Ti as effectiveTaskOutcomes, Tt as webActorFromUser, Wn as setConversationSubscription, _n as recordSubagentEnded, _t as renderReviewItemMessage, bt as appendAndEnqueueWebMessage, ci as ViewerTaskNotFoundError, dt as markConversationRead, fi as readViewerAutomationSummary, gt as deliverReviewItemChange, k as ingestEvent, lt as archiveConversation, mi as readViewerAutomations, or as parseSlackThreadId, qt as listPendingAgentInvocationResults, ui as readViewerAutomationExecutions, un as enqueueAgentInvocation, vr as joinPublicChannel, vt as reviewItemChangeRecord, wi as missingAutomationSkillReason, wt as recordWebConversationActivity, xt as conversationTurnIdForMessage, yi as automationCardStatus } from "./warmup-
|
|
13
|
-
import { _ as getConversationWorkState, g as getConversation, h as ensureConversationWake, l as clearExpiredConversationLease, r as appendAndEnqueueInboundMessage, y as listActiveConversationIds } from "./store-
|
|
12
|
+
import { Ci as findAutomationSkill, E as processWorkspaceSnapshotJob, Kt as listPendingAgentInvocationMailboxAppends, Ot as collectAttachmentUploadGarbage, St as createAndEnqueueConversation, Ti as effectiveTaskOutcomes, Tt as webActorFromUser, Wn as setConversationSubscription, _n as recordSubagentEnded, _t as renderReviewItemMessage, bt as appendAndEnqueueWebMessage, ci as ViewerTaskNotFoundError, dt as markConversationRead, fi as readViewerAutomationSummary, gt as deliverReviewItemChange, k as ingestEvent, lt as archiveConversation, mi as readViewerAutomations, or as parseSlackThreadId, qt as listPendingAgentInvocationResults, ui as readViewerAutomationExecutions, un as enqueueAgentInvocation, vr as joinPublicChannel, vt as reviewItemChangeRecord, wi as missingAutomationSkillReason, wt as recordWebConversationActivity, xt as conversationTurnIdForMessage, yi as automationCardStatus } from "./warmup-HFgFZFwS.js";
|
|
13
|
+
import { _ as getConversationWorkState, g as getConversation, h as ensureConversationWake, l as clearExpiredConversationLease, r as appendAndEnqueueInboundMessage, y as listActiveConversationIds } from "./store-7QA00oK6.js";
|
|
14
14
|
import { G as getNextRunAtMs, Q as automationTaskText, R as scheduledRunSchema, Z as automationTaskSchema, m as automationListQuerySchema, u as automationExecutionStatusSchema } from "./schedule-BG1tEbRF.js";
|
|
15
|
-
import { A as juniorConversationEvents, E as juniorConversationBriefs, R as juniorConversations, V as juniorDestinations, f as juniorReviewItems, h as juniorAutomations, p as juniorAutomationRuns, v as juniorAgentBindings, y as juniorAgentInvocations } from "./executor-
|
|
16
|
-
import { c as registerVercelCacheWarmupDevConsumer, g as verifyConversationQueueMessage, h as resolveConversationWorkQueueTopic, i as verifyBackgroundCompactionMessage, m as getVercelConversationWorkQueue, o as cacheWarmupQueueConsumer, p as verifyWorkspaceSnapshotJobMessage, r as vercelBackgroundCompactionQueue, s as createVercelCacheWarmupCallback, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, v as conversationQueueMessageSchema, y as isConversationQueueMessageRejectedError } from "./background-compaction-queue-
|
|
17
|
-
import { i as enqueueAgentInvocationResult, r as createEndStoppedChildWork } from "./result-
|
|
18
|
-
import { _ as getQueueProvider, a as pluginTaskQueueConsumer, f as readSchedulerSecret, h as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer, p as readSignInSecret, s as sendVercelPluginTask } from "./task-queue-
|
|
19
|
-
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-
|
|
15
|
+
import { A as juniorConversationEvents, E as juniorConversationBriefs, R as juniorConversations, V as juniorDestinations, f as juniorReviewItems, h as juniorAutomations, p as juniorAutomationRuns, v as juniorAgentBindings, y as juniorAgentInvocations } from "./executor-Doo-N6Yn.js";
|
|
16
|
+
import { c as registerVercelCacheWarmupDevConsumer, g as verifyConversationQueueMessage, h as resolveConversationWorkQueueTopic, i as verifyBackgroundCompactionMessage, m as getVercelConversationWorkQueue, o as cacheWarmupQueueConsumer, p as verifyWorkspaceSnapshotJobMessage, r as vercelBackgroundCompactionQueue, s as createVercelCacheWarmupCallback, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, v as conversationQueueMessageSchema, y as isConversationQueueMessageRejectedError } from "./background-compaction-queue-BpmDEQf6.js";
|
|
17
|
+
import { i as enqueueAgentInvocationResult, r as createEndStoppedChildWork } from "./result-D2wshngt.js";
|
|
18
|
+
import { _ as getQueueProvider, a as pluginTaskQueueConsumer, f as readSchedulerSecret, h as queueCallback, n as createVercelPluginTaskCallback, o as registerVercelPluginTaskDevConsumer, p as readSignInSecret, s as sendVercelPluginTask } from "./task-queue-DvQZH5rG.js";
|
|
19
|
+
import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-CWIORwD9.js";
|
|
20
20
|
import { t as nameRequestRoute } from "./sentry-route-name-C6EIzAGP.js";
|
|
21
21
|
import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
|
|
22
22
|
import { B as conversationTitleSchema, G as annotationCard, I as conversationBriefSchema, b as conversationSurfaceSchema, v as conversationReportStatusSchema } from "./conversation--f85g4zL.js";
|
|
23
|
-
import { i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-
|
|
23
|
+
import { i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-CqOkWizK.js";
|
|
24
24
|
import { b as slackMessageTsSchema, g as slackTeamIdSchema, h as slackChannelIdSchema, n as createSlackActor, s as parseActorUserId, u as parseSlackChannelId, v as parseSlackMessageTs, y as slackMessageTsFromMs } from "./actor-D2iXzvlN.js";
|
|
25
|
-
import { a as resolveSlackActingUser, i as unfurlDashboardConversationLinks, n as handleSlackContinueHereClick, o as isSlackWorkspaceMember, s as slackWorkspaceBotId, t as SLACK_CONTINUE_HERE_ACTION_ID } from "./slack-conversation-unfurl-
|
|
26
|
-
import { o as unlinkProvider } from "./connections-
|
|
25
|
+
import { a as resolveSlackActingUser, i as unfurlDashboardConversationLinks, n as handleSlackContinueHereClick, o as isSlackWorkspaceMember, s as slackWorkspaceBotId, t as SLACK_CONTINUE_HERE_ACTION_ID } from "./slack-conversation-unfurl-CLH0tTLk.js";
|
|
26
|
+
import { o as unlinkProvider } from "./connections-DUylBPiR.js";
|
|
27
27
|
import { s as buttonUserInputField } from "./web-message-id-BT8Mg8LL.js";
|
|
28
|
-
import { n as verifySlackSignature, t as runWithSlackInstallation } from "./adapter-context-
|
|
29
|
-
import { c as coerceThreadConversationState } from "./turn-session-routing-
|
|
28
|
+
import { n as verifySlackSignature, t as runWithSlackInstallation } from "./adapter-context-BO432242.js";
|
|
29
|
+
import { c as coerceThreadConversationState } from "./turn-session-routing-Cqjj1B3i.js";
|
|
30
30
|
import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-CPbZjomA.js";
|
|
31
|
-
import { t as processConversationWork } from "./worker-
|
|
32
|
-
import { t as bindMessageAgent } from "./message-
|
|
33
|
-
import { t as bindSpawnAgent } from "./spawn-
|
|
34
|
-
import { t as processPluginTask } from "./task-runner-
|
|
35
|
-
import { t as JUNIOR_VERSION } from "./version-
|
|
31
|
+
import { t as processConversationWork } from "./worker-CCEDWbsY.js";
|
|
32
|
+
import { t as bindMessageAgent } from "./message-fSnXIqvl.js";
|
|
33
|
+
import { t as bindSpawnAgent } from "./spawn-PwAuSN59.js";
|
|
34
|
+
import { t as processPluginTask } from "./task-runner-CyZMcuZy.js";
|
|
35
|
+
import { t as JUNIOR_VERSION } from "./version-BE1OyrXV.js";
|
|
36
36
|
import { c as conversationPendingMessageDeliverySchema, n as conversationFeedQuerySchema } from "./conversation-feed-BNs9KiqC.js";
|
|
37
37
|
import { createRequire } from "node:module";
|
|
38
38
|
import { Hono } from "hono";
|
package/dist/{background-compaction-queue-BhEe4UfU.js → background-compaction-queue-BpmDEQf6.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getChatConfig } from "./config-
|
|
2
|
-
import { E as withSpan, h as logWarn } from "./logging-
|
|
3
|
-
import { _ as getQueueProvider, c as QUEUE_SIGNATURE_MAX_AGE_MS, h as queueCallback, l as signQueueMessage, u as verifyQueueMessage } from "./task-queue-
|
|
1
|
+
import { i as getChatConfig } from "./config-Cx8H0MRw.js";
|
|
2
|
+
import { E as withSpan, h as logWarn } from "./logging-DnBYBM8z.js";
|
|
3
|
+
import { _ as getQueueProvider, c as QUEUE_SIGNATURE_MAX_AGE_MS, h as queueCallback, l as signQueueMessage, u as verifyQueueMessage } from "./task-queue-DvQZH5rG.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
/** Validate the v2 conversation work hint sent through Vercel Queue. */
|
|
@@ -169,7 +169,7 @@ function cacheWarmupCallback() {
|
|
|
169
169
|
maxDeliveries: 1,
|
|
170
170
|
onRejected: logCacheWarmupRejected,
|
|
171
171
|
run: async (message) => {
|
|
172
|
-
const { runCacheWarmup } = await import("./warmup-
|
|
172
|
+
const { runCacheWarmup } = await import("./warmup-HFgFZFwS.js").then((n) => n.s);
|
|
173
173
|
await runCacheWarmup(message);
|
|
174
174
|
},
|
|
175
175
|
skip: () => !getChatConfig().cacheWarmingEnabled,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as briefResourceLabel, L as parseBriefInput, M as briefCodeChangeSchema, f as conversationEventPageSchema, u as conversationDetailReportSchema } from "./conversation--f85g4zL.js";
|
|
2
|
-
import { c as generateBrief, n as briefEntriesFromReportEvents, t as BRIEF_PROMPT, u as completeObject } from "./prompt-
|
|
2
|
+
import { c as generateBrief, n as briefEntriesFromReportEvents, t as BRIEF_PROMPT, u as completeObject } from "./prompt-DAjjk5fm.js";
|
|
3
3
|
import { CLI_USAGE } from "./cli/run.js";
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import path from "node:path";
|
|
@@ -264,7 +264,7 @@ async function parseRunOptions(argv) {
|
|
|
264
264
|
* token.
|
|
265
265
|
*/
|
|
266
266
|
async function configuredBot() {
|
|
267
|
-
const { botConfig } = await import("./config-
|
|
267
|
+
const { botConfig } = await import("./config-Cx8H0MRw.js").then((n) => n.r);
|
|
268
268
|
return botConfig;
|
|
269
269
|
}
|
|
270
270
|
function apiUrl(baseUrl, pathname) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
|
|
2
|
-
import { t as createPluginCatalogRuntime } from "./registry-
|
|
2
|
+
import { t as createPluginCatalogRuntime } from "./registry-tHJLCtKS.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,5 +1,5 @@
|
|
|
1
1
|
import { t as loadAppPluginSet } from "../plugin-module-Cv2ETe8Y.js";
|
|
2
|
-
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-
|
|
2
|
+
import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-BnOofGFG.js";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
import { stderr, stdin, stdout } from "node:process";
|
|
@@ -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-Bkk0XRo2.js").then((n) => n.o),
|
|
102
|
-
import("../projection-
|
|
103
|
-
import("../catalog-runtime-
|
|
104
|
-
import("../validation-
|
|
105
|
-
import("../db-
|
|
102
|
+
import("../projection-Bqn6zdVT.js").then((n) => n.Cn),
|
|
103
|
+
import("../catalog-runtime-q9AJjuUN.js").then((n) => n.t),
|
|
104
|
+
import("../validation-BEUlev32.js").then((n) => n.r),
|
|
105
|
+
import("../db-CO6Y10eM.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,20 +152,20 @@ function localDevServerUrl() {
|
|
|
152
152
|
async function prepareLocalChatRun(io, pluginSet) {
|
|
153
153
|
defaultStateAdapterForLocalChat();
|
|
154
154
|
await configureLocalChatPlugins(pluginSet);
|
|
155
|
-
const { setBriefsConfig, setEventEmbeddingsConfig } = await import("../projection-
|
|
155
|
+
const { setBriefsConfig, setEventEmbeddingsConfig } = await import("../projection-Bqn6zdVT.js").then((n) => n.Bn);
|
|
156
156
|
setBriefsConfig({ enabled: true });
|
|
157
157
|
setEventEmbeddingsConfig({ enabled: true });
|
|
158
|
-
const { runLocalAgentTurn } = await import("../runner-
|
|
159
|
-
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-
|
|
160
|
-
const { createLocalOAuthState } = await import("../oauth-relay-
|
|
161
|
-
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-
|
|
162
|
-
const { bindSpawnAgent } = await import("../spawn-
|
|
163
|
-
const { bindMessageAgent } = await import("../message-
|
|
164
|
-
const { createChildConversationWorker, createDeliverToParent } = await import("../result-
|
|
165
|
-
const { createConversationTurnWorker } = await import("../conversation-turn-
|
|
166
|
-
const { skipInputAfterConversationStop } = await import("../session-stop-
|
|
158
|
+
const { runLocalAgentTurn } = await import("../runner-BvNPWLAy.js");
|
|
159
|
+
const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-BUU6zd_T.js");
|
|
160
|
+
const { createLocalOAuthState } = await import("../oauth-relay-gO_Ynmpb.js").then((n) => n.t);
|
|
161
|
+
const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-CmHD-6vr.js");
|
|
162
|
+
const { bindSpawnAgent } = await import("../spawn-PwAuSN59.js").then((n) => n.n);
|
|
163
|
+
const { bindMessageAgent } = await import("../message-fSnXIqvl.js").then((n) => n.n);
|
|
164
|
+
const { createChildConversationWorker, createDeliverToParent } = await import("../result-D2wshngt.js").then((n) => n.o);
|
|
165
|
+
const { createConversationTurnWorker } = await import("../conversation-turn-C9-Nfnsy.js").then((n) => n.t);
|
|
166
|
+
const { skipInputAfterConversationStop } = await import("../session-stop-BQ0J0Fph.js").then((n) => n.a);
|
|
167
167
|
const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
|
|
168
|
-
const { processConversationWork } = await import("../worker-
|
|
168
|
+
const { processConversationWork } = await import("../worker-CCEDWbsY.js").then((n) => n.n);
|
|
169
169
|
let agentRunner;
|
|
170
170
|
const localConversationWork = createLocalConversationWork(async (message) => {
|
|
171
171
|
if (!agentRunner) throw new Error("Local agent runner is not ready");
|
package/dist/cli/check.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as parseSkillFile } from "../skills-
|
|
2
|
-
import { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-
|
|
3
|
-
import { b as parsePluginManifest, y as parseInlinePluginManifest } from "../registry-
|
|
1
|
+
import { i as parseSkillFile } from "../skills-Dm2-5nn5.js";
|
|
2
|
+
import { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-DnBYBM8z.js";
|
|
3
|
+
import { b as parsePluginManifest, y as parseInlinePluginManifest } from "../registry-tHJLCtKS.js";
|
|
4
4
|
import pLimit from "p-limit";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import fs from "node:fs/promises";
|
package/dist/cli/main.js
CHANGED
|
@@ -45,13 +45,13 @@ async function runChat(argv, pluginSet) {
|
|
|
45
45
|
return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
|
|
46
46
|
}
|
|
47
47
|
async function runAdmin(argv) {
|
|
48
|
-
return await (await import("../admin-
|
|
48
|
+
return await (await import("../admin-vSmheo3Z.js")).runAdmin(argv);
|
|
49
49
|
}
|
|
50
50
|
async function runServiceAccount(argv) {
|
|
51
|
-
return await (await import("../service-account-
|
|
51
|
+
return await (await import("../service-account-B2d1Er_r.js")).runServiceAccount(argv);
|
|
52
52
|
}
|
|
53
53
|
async function runBriefs(argv) {
|
|
54
|
-
return await (await import("../briefs-
|
|
54
|
+
return await (await import("../briefs-Dbh94cRp.js")).runBriefs(argv);
|
|
55
55
|
}
|
|
56
56
|
function topLevelCommand(argv) {
|
|
57
57
|
return (argv[0] === "--" ? argv.slice(1) : argv)[0];
|
package/dist/cli/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { o as getDb } from "../db-
|
|
2
|
-
import { Fn as setPlugins, In as validatePlugins, Ua as createPluginLogger } from "../projection-
|
|
3
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
4
|
-
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-
|
|
1
|
+
import { o as getDb } from "../db-CO6Y10eM.js";
|
|
2
|
+
import { Fn as setPlugins, In as validatePlugins, Ua as createPluginLogger } from "../projection-Bqn6zdVT.js";
|
|
3
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-q9AJjuUN.js";
|
|
4
|
+
import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-BEUlev32.js";
|
|
5
5
|
import { t as loadAppPluginSet } from "../plugin-module-Cv2ETe8Y.js";
|
|
6
6
|
import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-Bkk0XRo2.js";
|
|
7
7
|
import { stderr, stdout } from "node:process";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as getChatConfig } from "../config-
|
|
2
|
-
import { n as pluginCatalogRuntime } from "../catalog-runtime-
|
|
3
|
-
import { n as resolve } from "../resolve-
|
|
4
|
-
import { Ki as create, wa as SANDBOX_RUNTIME } from "../projection-
|
|
5
|
-
import { Z as disconnectStateAdapter } from "../db-
|
|
1
|
+
import { i as getChatConfig } from "../config-Cx8H0MRw.js";
|
|
2
|
+
import { n as pluginCatalogRuntime } from "../catalog-runtime-q9AJjuUN.js";
|
|
3
|
+
import { n as resolve } from "../resolve-z2sKt8xM.js";
|
|
4
|
+
import { Ki as create, wa as SANDBOX_RUNTIME } from "../projection-Bqn6zdVT.js";
|
|
5
|
+
import { Z as disconnectStateAdapter } from "../db-CO6Y10eM.js";
|
|
6
6
|
// src/cli/snapshot-create.ts
|
|
7
7
|
const DEFAULT_TIMEOUT_MS = 6e5;
|
|
8
8
|
function progressMessage(phase) {
|
package/dist/cli/upgrade.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as getChatConfig } from "../config-
|
|
2
|
-
import { n as isPostgresErrorCode, t as createJuniorSqlExecutor } from "../executor-
|
|
1
|
+
import { i as getChatConfig } from "../config-Cx8H0MRw.js";
|
|
2
|
+
import { n as isPostgresErrorCode, t as createJuniorSqlExecutor } from "../executor-Doo-N6Yn.js";
|
|
3
3
|
import { t as loadAppPluginSet } from "../plugin-module-Cv2ETe8Y.js";
|
|
4
|
-
import { t as createPluginCatalogRuntime } from "../registry-
|
|
4
|
+
import { t as createPluginCatalogRuntime } from "../registry-tHJLCtKS.js";
|
|
5
5
|
import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-Bkk0XRo2.js";
|
|
6
6
|
import { basename, dirname, join, resolve } from "node:path";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.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-DnBYBM8z.js";
|
|
3
|
+
import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-CivmFlWP.js";
|
|
4
4
|
import pLimit from "p-limit";
|
|
5
5
|
import { AwsClient } from "aws4fetch";
|
|
6
6
|
import { del, get, issueSignedToken, presignUrl, put } from "@vercel/blob";
|
|
@@ -1924,7 +1924,7 @@ function readBotConfig(env, functionMaxDurationSeconds) {
|
|
|
1924
1924
|
loadingMessages: parseLoadingMessages(env["JUNIOR_LOADING_MESSAGES"]),
|
|
1925
1925
|
refusalFallbackModelId: validateGatewayModelId(env["AI_REFUSAL_FALLBACK_MODEL"]),
|
|
1926
1926
|
visionModelId: env["AI_VISION_MODEL"] === void 0 ? DEFAULT_VISION_MODEL_ID : validateGatewayModelId(env["AI_VISION_MODEL"]),
|
|
1927
|
-
maxAgentDepth:
|
|
1927
|
+
maxAgentDepth: 1,
|
|
1928
1928
|
maxSlicesPerTurn: MAX_SLICES_PER_TURN,
|
|
1929
1929
|
maxToolCallsPerTurn: MAX_TOOL_CALLS_PER_TURN,
|
|
1930
1930
|
maxTurnCostUsd: MAX_TURN_COST_USD,
|