@sentry/junior 0.214.0 → 0.216.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/{agent-DDGM_Hu8.js → agent-BFKt9huN.js} +199 -114
- package/dist/{agent-hooks-BGkp7dir.js → agent-hooks-pyhfSnAL.js} +6 -6
- package/dist/{agent-runner-AkPS55x9.js → agent-runner-CIiziOcz.js} +5 -5
- package/dist/api.js +15 -15
- package/dist/app.js +30 -30
- package/dist/{auth-pause-state-BYnY5GgY.js → auth-pause-state-BKGc9Y8O.js} +6 -6
- package/dist/{briefs-ouLaaE-x.js → briefs-Bq5vouaO.js} +2 -2
- package/dist/{catalog-runtime-_QTE8fXL.js → catalog-runtime-D3hJdAMz.js} +1 -1
- package/dist/{checkpoint-4TdcpUHj.js → checkpoint-Ja5A32op.js} +6 -6
- package/dist/cli/chat.js +13 -13
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +1 -1
- package/dist/cli/plugins.js +3 -3
- package/dist/cli/snapshot-create.js +3 -3
- package/dist/cli/upgrade.js +3 -3
- package/dist/{client-CnrUbhNZ.js → client-DqG_LDSH.js} +6 -6
- package/dist/{config-CI-Lh-gu.js → config-CdS5GQ7W.js} +2 -2
- package/dist/{conversation-privacy-CGtSdQ9v.js → conversation-privacy-B7844ly7.js} +1 -1
- package/dist/{credential-sync-C8SVt0I7.js → credential-sync-DLWVq50D.js} +20 -20
- package/dist/{execution-stats-DoSehREK.js → execution-stats-BbYien1O.js} +3 -3
- package/dist/{executor-BkDIAOly.js → executor-CIl9A6cO.js} +1 -1
- package/dist/instrumentation.js +2 -2
- package/dist/{job-queue-DxTCN2I6.js → job-queue-CIz2Sij0.js} +1 -1
- package/dist/{logging-CwkLd1GL.js → logging-dD_n9Ocp.js} +1 -1
- package/dist/nitro.js +3 -3
- package/dist/{oauth-callback-server-BH76ipxE.js → oauth-callback-server-CBfuGXP0.js} +2 -2
- package/dist/{pending-auth-DpbSGw5x.js → pending-auth-KOZWIp4m.js} +2 -2
- package/dist/{profile-BO8GoFld.js → profile-BfWuRDUF.js} +4 -4
- package/dist/{registry-Dfce-i2p.js → registry-DYHLzGuO.js} +1 -1
- package/dist/{resolve-DhanmDJC.js → resolve-CU8DArbR.js} +2 -2
- package/dist/{runner-Cf9HZTSs.js → runner-BtHHH38l.js} +9 -9
- package/dist/{sandbox-egress-signals-DQHGXC4N.js → sandbox-egress-signals-BvZZ02w9.js} +1 -1
- package/dist/{short-title-GFXgb3Pa.js → short-title-CKnmS3nO.js} +2 -2
- package/dist/{skills-4pbgYGyf.js → skills-CLsaAMtU.js} +2 -2
- package/dist/{spawn-CPK0_AAU.js → spawn-C6Utdbzm.js} +2 -2
- package/dist/{stats-CRQ33as0.js → stats-D4Ar_7MS.js} +5 -5
- package/dist/{task-queue-DcxWxHUC.js → task-queue-BgOOj26_.js} +3 -3
- package/dist/{task-runner-DFd8j2js.js → task-runner-BfOnhH3C.js} +7 -7
- package/dist/{thread-state-DgVdqz5n.js → thread-state-B-jR3Aa8.js} +5 -5
- package/dist/{turn-execution-MPIxm9rL.js → turn-execution-_rlctc-2.js} +3 -3
- package/dist/{turn-lifecycle-BJayrlpy.js → turn-lifecycle-CVRu8Hmm.js} +1 -1
- package/dist/{validation-Bz8K4ain.js → validation-5255qF_p.js} +1 -1
- package/dist/{version-Csf_XS_O.js → version-DS_6p6x1.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{web-authorization-Cw8fSKiS.js → web-authorization-TdkXi7XG.js} +1 -1
- package/dist/{web-input-3ZOMzNt7.js → web-input-vHOAXVxj.js} +4 -4
- package/dist/{work-BgAHoSzD.js → work-NIWYQvh-.js} +9 -9
- package/dist/{worker-Cf8PgMjQ.js → worker-BgY7599f.js} +5 -5
- package/package.json +5 -5
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { C as resolveGatewayCredential, S as getGatewayApiKey, _ as findProviderError, b as isProviderRetryError, c as COMPACTION_SUMMARY_PREFIX, d as isCompactionSummaryText, f as renderCurrentInstruction, g as createProviderError, h as ProviderError, i as completeText, l as MODEL_HANDOFF_SUMMARY_PREFIX, m as escapeXml, n as GEN_AI_SERVER_ADDRESS, o as resolveGatewayModel, p as unwrapCurrentInstruction, r as completeObject, s as ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX, t as GEN_AI_PROVIDER_NAME, u as hasCompactedConversationContext, v as getProviderErrorAttributes, x as MISSING_GATEWAY_CREDENTIALS_ERROR } from "./client-
|
|
2
|
-
import { C as withSpan, F as isRecord$2, P as normalizeIdentityEmail, S as withLogContext, _ as setSpanAttributes, a as extractGenAiUsageSummary, b as summarizeMessageText, c as getTracePropagationHeaders, d as logInfo, f as logWarn, h as serializeGenAiAttribute, i as extractGenAiUsageAttributes, l as logError, p as normalizeGenAiFinishReason, s as getLogContextAttributesForSpan, u as logException, v as setSpanStatus, y as setTags } from "./logging-
|
|
1
|
+
import { C as resolveGatewayCredential, S as getGatewayApiKey, _ as findProviderError, b as isProviderRetryError, c as COMPACTION_SUMMARY_PREFIX, d as isCompactionSummaryText, f as renderCurrentInstruction, g as createProviderError, h as ProviderError, i as completeText, l as MODEL_HANDOFF_SUMMARY_PREFIX, m as escapeXml, n as GEN_AI_SERVER_ADDRESS, o as resolveGatewayModel, p as unwrapCurrentInstruction, r as completeObject, s as ACTIVE_TURN_COMPACTION_SUMMARY_PREFIX, t as GEN_AI_PROVIDER_NAME, u as hasCompactedConversationContext, v as getProviderErrorAttributes, x as MISSING_GATEWAY_CREDENTIALS_ERROR } from "./client-DqG_LDSH.js";
|
|
2
|
+
import { C as withSpan, F as isRecord$2, P as normalizeIdentityEmail, S as withLogContext, _ as setSpanAttributes, a as extractGenAiUsageSummary, b as summarizeMessageText, c as getTracePropagationHeaders, d as logInfo, f as logWarn, h as serializeGenAiAttribute, i as extractGenAiUsageAttributes, l as logError, p as normalizeGenAiFinishReason, s as getLogContextAttributesForSpan, u as logException, v as setSpanStatus, y as setTags } from "./logging-dD_n9Ocp.js";
|
|
3
3
|
import { m as startInactiveSpan, v as withActiveSpan } from "./sentry-CgWZM_kV.js";
|
|
4
|
-
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-
|
|
5
|
-
import { h as normalizeSlackEmojiName, n as botConfig } from "./config-
|
|
4
|
+
import { a as toCanonicalInputMessage, c as toGenAiPayloadMetadata, i as runWithConversationPrivacy, l as toGenAiPayloadTraceAttributes, o as toCanonicalOutputMessage, r as resolveConversationPrivacy, s as toGenAiMessagesTraceAttributes, t as canExposeConversationPayload } from "./conversation-privacy-B7844ly7.js";
|
|
5
|
+
import { h as normalizeSlackEmojiName, n as botConfig } from "./config-CdS5GQ7W.js";
|
|
6
6
|
import { a as modelIdForProfile, c as TURN_REASONING_LEVELS, i as formatModelProfiles, o as modelProfileSchema, r as formatModelProfile, s as profileConfig, t as ModelProfileNotConfiguredError } from "./model-profile-CZmVoGdX.js";
|
|
7
7
|
import { _ as parseSlackMessageTs, g as parseSlackUserId, h as parseSlackTeamId, i as credentialUserSubjectId, l as isUserActor, m as parseSlackChannelReferenceId, n as credentialContextSchema, p as parseSlackChannelId, t as credentialContextForActor } from "./context-Bplcgypl.js";
|
|
8
|
-
import { A as tryWorkspaceRepoCheckoutPath, B as downloadPrivateSlackFile, C as invalidateReadySnapshot, D as SANDBOX_RUNTIME, E as setWorkspaceSnapshotBuild, Gt as getDb, Ht as getConversationEventStore, J as withSlackRetries, K as normalizeSlackConversationId, Kt as getSqlExecutor, M as resolveChannelCapabilities, O as deleteWorkspaceSnapshotBuilders, Q as readActorIdentity, S as WorkspaceValidationError, T as setWorkspaceSnapshot, U as getSlackClient, Ut as getConversationMessageSearchStore, V as getFilePermalink, W as isConversationScopedChannel, Wt as getConversationStore, _ as deleteWorkspace, at as STOP_WATCHING_TOOL_NAME, b as listWorkspaces, bt as createPluginLogger, c as getPluginTools, dt as findMatchingWatches, en as addAgentTurnUsage, ft as listWatches, g as createWorkspace, ht as getDashboardTaskLink, in as hasAgentTurnUsage, it as RESOURCE_WATCH_TOOL_SOURCE, j as workspaceRepoCheckoutPath, k as getWorkspaceSnapshotBuilder, l as getPluginUserPromptContributions, lt as createWatch, mt as getDashboardConversationLink, nt as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, ot as cancelSubscriptions, pt as JUNIOR_THREAD_STATE_TTL_MS, r as createPluginHookRunner, s as getPluginSystemPromptContributions, st as cancelWatch, tt as getSlackToolContext, u as getPlugins, un as parseDestination, ut as deliverWatch, v as getWorkspace, w as loadSnapshotsForProfile, x as updateWorkspace, y as getWorkspaceByName, z as SlackActionError } from "./agent-hooks-
|
|
8
|
+
import { A as tryWorkspaceRepoCheckoutPath, B as downloadPrivateSlackFile, C as invalidateReadySnapshot, D as SANDBOX_RUNTIME, E as setWorkspaceSnapshotBuild, Gt as getDb, Ht as getConversationEventStore, J as withSlackRetries, K as normalizeSlackConversationId, Kt as getSqlExecutor, M as resolveChannelCapabilities, O as deleteWorkspaceSnapshotBuilders, Q as readActorIdentity, S as WorkspaceValidationError, T as setWorkspaceSnapshot, U as getSlackClient, Ut as getConversationMessageSearchStore, V as getFilePermalink, W as isConversationScopedChannel, Wt as getConversationStore, _ as deleteWorkspace, at as STOP_WATCHING_TOOL_NAME, b as listWorkspaces, bt as createPluginLogger, c as getPluginTools, dt as findMatchingWatches, en as addAgentTurnUsage, ft as listWatches, g as createWorkspace, ht as getDashboardTaskLink, in as hasAgentTurnUsage, it as RESOURCE_WATCH_TOOL_SOURCE, j as workspaceRepoCheckoutPath, k as getWorkspaceSnapshotBuilder, l as getPluginUserPromptContributions, lt as createWatch, mt as getDashboardConversationLink, nt as RESOURCE_SUBSCRIPTION_DEFAULT_TTL_MS, ot as cancelSubscriptions, pt as JUNIOR_THREAD_STATE_TTL_MS, r as createPluginHookRunner, s as getPluginSystemPromptContributions, st as cancelWatch, tt as getSlackToolContext, u as getPlugins, un as parseDestination, ut as deliverWatch, v as getWorkspace, w as loadSnapshotsForProfile, x as updateWorkspace, y as getWorkspaceByName, z as SlackActionError } from "./agent-hooks-pyhfSnAL.js";
|
|
9
9
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
10
|
-
import { D as juniorIdentities, E as juniorConversations, a as juniorSchedulerRuns, d as AGENT_INVOCATION_MAILBOX_STATUSES, g as juniorConversationBriefs, k as juniorArtifacts, w as juniorAttachments, x as juniorConversationAnnotations } from "./executor-
|
|
10
|
+
import { D as juniorIdentities, E as juniorConversations, a as juniorSchedulerRuns, d as AGENT_INVOCATION_MAILBOX_STATUSES, g as juniorConversationBriefs, k as juniorArtifacts, w as juniorAttachments, x as juniorConversationAnnotations } from "./executor-CIl9A6cO.js";
|
|
11
11
|
import { A as briefLinkSchema, G as sameActorIdentity, H as contextProvenance, M as conversationBriefSchema, P as KNOWN_CONVERSATION_EVENT_TYPES, U as instructionActors, W as instructionProvenanceFor, j as briefOutcomeStatusSchema } from "./conversation-BpqLg4MM.js";
|
|
12
12
|
import { a as listReferenceFiles, c as soulPathCandidates, l as worldPathCandidates } from "./package-discovery-7a9YqLhE.js";
|
|
13
|
-
import { a as resolvePluginCommandEnv, c as getOAuthProviderErrorAttributes, i as resolveAuthTokenPlaceholder, o as OAuthProviderError, s as fetchWithBoundedOAuthErrorBodies, u as CredentialUnavailableError } from "./registry-
|
|
14
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
15
|
-
import { a as parseSkillInvocation, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-
|
|
16
|
-
import { A as TURN_CONTEXT_TAG, C as isContinuablePiBoundary, D as retainRuntimeTurnContext, E as normalizeToolNameFromResult, H as recordAuthorizationRequested, I as loadTurnRoute, K as recordToolExecutionStarted, L as openConversationProjection, N as loadConnectedMcpProviders, O as stripRuntimeTurnContext, P as loadConversationProjection, R as recordAgentsInstructionsUpdated, S as isAssistantMessage, T as isToolResultMessage, U as recordGuardianActionReviewed, W as recordMcpProviderConnected, _ as getPiMessageRole, b as hasRuntimeTurnContext, dt as estimateTextTokens, f as TurnSliceLimitExceededError, ft as getAgentContextCompactionTriggerTokens, g as extractAssistantText, h as isTurnExecutionLimitExceededError, ht as piMessageFromHistoryItem, k as trimTrailingAssistantMessages, mt as historyItemFromPiMessage, n as loadTurnCheckpoint, p as assertTurnToolCallLimit, pt as getAgentContextInputLimitTokens, q as recordTurnRoute, r as saveTurnCheckpoint, t as continuableMessages, v as getTerminalAssistantMessages, w as isToolResultError, y as getUserMessageInstructionText, z as recordAttachmentsDelivered } from "./checkpoint-
|
|
17
|
-
import { n as generateShortTitle, r as resolveTaskTitle } from "./short-title-
|
|
18
|
-
import { A as sleep$1, D as fenceLock, E as acquireActiveLock, F as sandboxSkillDir, I as sandboxSkillFile, L as sandboxSkillPathResolution, M as SANDBOX_REPOS_ROOT, N as SANDBOX_SKILLS_ROOT, P as SANDBOX_WORKSPACE_ROOT, _ as workspaceSnapshotNotReadyUserMessage, a as isAbortError, b as buildNonInteractiveShellScript, c as isSandboxCommandStreamInterruptedError, d as isSnapshottingError, f as throwSandboxOperationError, g as isWorkspaceSnapshotNotReadyError, h as getWorkspaceSnapshotNotReadyError, i as ensureDockerDaemon, j as SANDBOX_DATA_ROOT, k as withLock, l as isSandboxMissingError, m as WorkspaceSnapshotNotReadyError, n as hash, o as isAlreadyExistsError, p as wrapSandboxSetupError, r as isStale, s as isSandboxApiTransientError, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand, y as buildCommandScript } from "./profile-
|
|
19
|
-
import { $ as workspaceSnapshotFinishedEvent, B as createEventAutomation, C as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, D as eventAutomationMatchesDestination, E as eventAutomationListToolResultSchema, F as effectiveTaskOutcomes, Gt as makeStructuredToolOutput, I as moveTaskOutcomes, Jt as ToolInputError, L as resolveTaskOutcomes, M as requireEventAutomationSlackContext, N as requireSupportedEventAutomationTrigger, O as eventAutomationToolResult, P as writableEventAutomation, Q as WORKSPACE_SNAPSHOT_READY_EVENT, R as taskOutcomeInputSchema, T as compactEventAutomation, Ut as injectContinuationToolName, V as deleteEventAutomation, W as getEventAutomation, Wt as juniorToolOutputSchema, X as getEventCatalog, Y as saveEventAutomation, Z as WORKSPACE_SNAPSHOT_FAILED_EVENT, at as normalizeCatalogEventIdentifier, c as parseSlackThreadId, ct as registeredEventTypeSchema, et as workspaceSnapshotWatch, f as createScheduledAutomation, g as listScheduledAutomationsForTeam, i as readLiveAttachment, it as hasPluginEventCatalogEntries, j as registeredEventAutomationTriggerSchema, k as eventAutomationToolResultSchema, lt as registeredResourceTypeSchema, nt as eventNamespaceSchema, ot as pluginSupportsEvent, pt as appendAndEnqueueInboundMessage, q as listEventAutomationsForTeam, rt as hasEventCatalogEntries, s as storeAttachments, st as registeredEventMatchSchema, t as incrementStat, tt as eventGuidance, ut as requireSupportedEventMatch, v as readScheduledAutomation, y as saveScheduledAutomation } from "./stats-
|
|
20
|
-
import { _ as isTurnInputCommitLostError, c as sanitizeAssistantText, f as CooperativeTurnYieldError, l as NO_REPLY_MARKER, n as canReusePendingAuthLink, o as decideReply, p as TurnInputCommitLostError, s as getAssistantReplyText, t as abandonReplacedPendingAuth, u as isNoReplyMarker } from "./pending-auth-
|
|
21
|
-
import { C as toolInvocationDestination, S as surfaceFromRun, _ as uploadFilesToConversation, b as assertRunConsistency, h as postSlackMessage, i as formatProviderLabel, m as getSlackMessagePermalink, o as resolveBaseUrl, p as addReactionToMessage, r as deliverOAuthAuthorization, s as startOAuthFlow, v as RetryableDeliveryError, x as isAgentRunFeatureDisabled, y as actorFromRun } from "./agent-runner-
|
|
13
|
+
import { a as resolvePluginCommandEnv, c as getOAuthProviderErrorAttributes, i as resolveAuthTokenPlaceholder, o as OAuthProviderError, s as fetchWithBoundedOAuthErrorBodies, u as CredentialUnavailableError } from "./registry-DYHLzGuO.js";
|
|
14
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-D3hJdAMz.js";
|
|
15
|
+
import { a as parseSkillInvocation, n as findSkillByName, r as loadSkillsByName, t as discoverSkills } from "./skills-CLsaAMtU.js";
|
|
16
|
+
import { A as TURN_CONTEXT_TAG, C as isContinuablePiBoundary, D as retainRuntimeTurnContext, E as normalizeToolNameFromResult, H as recordAuthorizationRequested, I as loadTurnRoute, K as recordToolExecutionStarted, L as openConversationProjection, N as loadConnectedMcpProviders, O as stripRuntimeTurnContext, P as loadConversationProjection, R as recordAgentsInstructionsUpdated, S as isAssistantMessage, T as isToolResultMessage, U as recordGuardianActionReviewed, W as recordMcpProviderConnected, _ as getPiMessageRole, b as hasRuntimeTurnContext, dt as estimateTextTokens, f as TurnSliceLimitExceededError, ft as getAgentContextCompactionTriggerTokens, g as extractAssistantText, h as isTurnExecutionLimitExceededError, ht as piMessageFromHistoryItem, k as trimTrailingAssistantMessages, mt as historyItemFromPiMessage, n as loadTurnCheckpoint, p as assertTurnToolCallLimit, pt as getAgentContextInputLimitTokens, q as recordTurnRoute, r as saveTurnCheckpoint, t as continuableMessages, v as getTerminalAssistantMessages, w as isToolResultError, y as getUserMessageInstructionText, z as recordAttachmentsDelivered } from "./checkpoint-Ja5A32op.js";
|
|
17
|
+
import { n as generateShortTitle, r as resolveTaskTitle } from "./short-title-CKnmS3nO.js";
|
|
18
|
+
import { A as sleep$1, D as fenceLock, E as acquireActiveLock, F as sandboxSkillDir, I as sandboxSkillFile, L as sandboxSkillPathResolution, M as SANDBOX_REPOS_ROOT, N as SANDBOX_SKILLS_ROOT, P as SANDBOX_WORKSPACE_ROOT, _ as workspaceSnapshotNotReadyUserMessage, a as isAbortError, b as buildNonInteractiveShellScript, c as isSandboxCommandStreamInterruptedError, d as isSnapshottingError, f as throwSandboxOperationError, g as isWorkspaceSnapshotNotReadyError, h as getWorkspaceSnapshotNotReadyError, i as ensureDockerDaemon, j as SANDBOX_DATA_ROOT, k as withLock, l as isSandboxMissingError, m as WorkspaceSnapshotNotReadyError, n as hash, o as isAlreadyExistsError, p as wrapSandboxSetupError, r as isStale, s as isSandboxApiTransientError, t as create, u as isSandboxUnavailableError, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand, y as buildCommandScript } from "./profile-BfWuRDUF.js";
|
|
19
|
+
import { $ as workspaceSnapshotFinishedEvent, B as createEventAutomation, C as SCHEDULED_AUTOMATION_SYSTEM_ACTOR, D as eventAutomationMatchesDestination, E as eventAutomationListToolResultSchema, F as effectiveTaskOutcomes, Gt as makeStructuredToolOutput, I as moveTaskOutcomes, Jt as ToolInputError, L as resolveTaskOutcomes, M as requireEventAutomationSlackContext, N as requireSupportedEventAutomationTrigger, O as eventAutomationToolResult, P as writableEventAutomation, Q as WORKSPACE_SNAPSHOT_READY_EVENT, R as taskOutcomeInputSchema, T as compactEventAutomation, Ut as injectContinuationToolName, V as deleteEventAutomation, W as getEventAutomation, Wt as juniorToolOutputSchema, X as getEventCatalog, Y as saveEventAutomation, Z as WORKSPACE_SNAPSHOT_FAILED_EVENT, at as normalizeCatalogEventIdentifier, c as parseSlackThreadId, ct as registeredEventTypeSchema, et as workspaceSnapshotWatch, f as createScheduledAutomation, g as listScheduledAutomationsForTeam, i as readLiveAttachment, it as hasPluginEventCatalogEntries, j as registeredEventAutomationTriggerSchema, k as eventAutomationToolResultSchema, lt as registeredResourceTypeSchema, nt as eventNamespaceSchema, ot as pluginSupportsEvent, pt as appendAndEnqueueInboundMessage, q as listEventAutomationsForTeam, rt as hasEventCatalogEntries, s as storeAttachments, st as registeredEventMatchSchema, t as incrementStat, tt as eventGuidance, ut as requireSupportedEventMatch, v as readScheduledAutomation, y as saveScheduledAutomation } from "./stats-D4Ar_7MS.js";
|
|
20
|
+
import { _ as isTurnInputCommitLostError, c as sanitizeAssistantText, f as CooperativeTurnYieldError, l as NO_REPLY_MARKER, n as canReusePendingAuthLink, o as decideReply, p as TurnInputCommitLostError, s as getAssistantReplyText, t as abandonReplacedPendingAuth, u as isNoReplyMarker } from "./pending-auth-KOZWIp4m.js";
|
|
21
|
+
import { C as toolInvocationDestination, S as surfaceFromRun, _ as uploadFilesToConversation, b as assertRunConsistency, h as postSlackMessage, i as formatProviderLabel, m as getSlackMessagePermalink, o as resolveBaseUrl, p as addReactionToMessage, r as deliverOAuthAuthorization, s as startOAuthFlow, v as RetryableDeliveryError, x as isAgentRunFeatureDisabled, y as actorFromRun } from "./agent-runner-CIiziOcz.js";
|
|
22
22
|
import { r as EVENT_AUTHOR_ID } from "./prompt-DAoaq0CT.js";
|
|
23
|
-
import { a as createSandboxSession, c as postinstall, d as getSandboxResources, i as bindSandboxFileSystem, l as setSnapshotSpanAttributes, n as isMissingError, o as stopSession, r as resolve$1, s as dependencies } from "./resolve-
|
|
23
|
+
import { a as createSandboxSession, c as postinstall, d as getSandboxResources, i as bindSandboxFileSystem, l as setSnapshotSpanAttributes, n as isMissingError, o as stopSession, r as resolve$1, s as dependencies } from "./resolve-CU8DArbR.js";
|
|
24
24
|
import { t as getVercelConversationWorkQueue } from "./vercel-queue-DIkVcfK4.js";
|
|
25
|
-
import { a as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-
|
|
25
|
+
import { a as getTurnRequestDeadline, n as sendNextWorkspaceSnapshotJob, r as sendWorkspaceSnapshotJob } from "./job-queue-CIz2Sij0.js";
|
|
26
26
|
import { n as privateTraceResultAttributes } from "./private-trace-result-BLvBjy_e.js";
|
|
27
27
|
import { streamSimple } from "@earendil-works/pi-ai/compat";
|
|
28
28
|
import { createGatewayProvider } from "@ai-sdk/gateway";
|
|
@@ -1501,13 +1501,87 @@ const SKILL_POLICY_RULES = [
|
|
|
1501
1501
|
"- Otherwise, scan `<available-skills>` before acting. Load the most specific skill whose description matches the request; do not answer from memory when one fits. Only call `loadSkill` with an exact listed `<name>`; if none fits, do not load a skill.",
|
|
1502
1502
|
"- Load one skill at a time. After `loadSkill`, follow the instructions returned by that tool result."
|
|
1503
1503
|
];
|
|
1504
|
-
const
|
|
1504
|
+
const PLANNING_RULES = `You have access to an \`update_plan\` tool which tracks steps and progress and renders them to the user. Using the tool helps demonstrate that you've understood the task and convey how you're approaching it. Plans can help to make complex, ambiguous, or multi-phase work clearer and more collaborative for the user. A good plan should break the task into meaningful, logically ordered steps that are easy to verify as you go.
|
|
1505
|
+
|
|
1506
|
+
Note that plans are not for padding out simple work with filler steps or stating the obvious. The content of your plan should not involve doing anything that you aren't capable of doing (i.e. don't try to test things that you can't test). Do not use plans for simple or single-step queries that you can just do or answer immediately.
|
|
1507
|
+
|
|
1508
|
+
Do not repeat the full contents of the plan after an \`update_plan\` call — the harness already displays it. Instead, summarize the change made and highlight any important context or next step.
|
|
1509
|
+
|
|
1510
|
+
Before running a command, consider whether or not you have completed the previous step, and make sure to mark it as completed before moving on to the next step. It may be the case that you complete all steps in your plan after a single pass of implementation. If this is the case, you can simply mark all the planned steps as completed. Sometimes, you may need to change plans in the middle of a task: call \`update_plan\` with the updated plan and make sure to provide an \`explanation\` of the rationale when doing so.
|
|
1511
|
+
|
|
1512
|
+
Use a plan when:
|
|
1513
|
+
|
|
1514
|
+
- The task is non-trivial and will require multiple actions over a long time horizon.
|
|
1515
|
+
- There are logical phases or dependencies where sequencing matters.
|
|
1516
|
+
- The work has ambiguity that benefits from outlining high-level goals.
|
|
1517
|
+
- You want intermediate checkpoints for feedback and validation.
|
|
1518
|
+
- When the user asked you to do more than one thing in a single prompt
|
|
1519
|
+
- The user has asked you to use the plan tool (aka "TODOs")
|
|
1520
|
+
- You generate additional steps while working, and plan to do them before yielding to the user
|
|
1521
|
+
|
|
1522
|
+
### Examples
|
|
1523
|
+
|
|
1524
|
+
**High-quality plans**
|
|
1525
|
+
|
|
1526
|
+
Example 1:
|
|
1527
|
+
|
|
1528
|
+
1. Add CLI entry with file args
|
|
1529
|
+
2. Parse Markdown via CommonMark library
|
|
1530
|
+
3. Apply semantic HTML template
|
|
1531
|
+
4. Handle code blocks, images, links
|
|
1532
|
+
5. Add error handling for invalid files
|
|
1533
|
+
|
|
1534
|
+
Example 2:
|
|
1535
|
+
|
|
1536
|
+
1. Define CSS variables for colors
|
|
1537
|
+
2. Add toggle with localStorage state
|
|
1538
|
+
3. Refactor components to use variables
|
|
1539
|
+
4. Verify all views for readability
|
|
1540
|
+
5. Add smooth theme-change transition
|
|
1541
|
+
|
|
1542
|
+
Example 3:
|
|
1543
|
+
|
|
1544
|
+
1. Set up Node.js + WebSocket server
|
|
1545
|
+
2. Add join/leave broadcast events
|
|
1546
|
+
3. Implement messaging with timestamps
|
|
1547
|
+
4. Add usernames + mention highlighting
|
|
1548
|
+
5. Persist messages in lightweight DB
|
|
1549
|
+
6. Add typing indicators + unread count
|
|
1550
|
+
|
|
1551
|
+
**Low-quality plans**
|
|
1552
|
+
|
|
1553
|
+
Example 1:
|
|
1554
|
+
|
|
1555
|
+
1. Create CLI tool
|
|
1556
|
+
2. Add Markdown parser
|
|
1557
|
+
3. Convert to HTML
|
|
1558
|
+
|
|
1559
|
+
Example 2:
|
|
1560
|
+
|
|
1561
|
+
1. Add dark mode toggle
|
|
1562
|
+
2. Save preference
|
|
1563
|
+
3. Make styles look good
|
|
1564
|
+
|
|
1565
|
+
Example 3:
|
|
1566
|
+
|
|
1567
|
+
1. Create single-file HTML game
|
|
1568
|
+
2. Run quick sanity check
|
|
1569
|
+
3. Summarize usage instructions
|
|
1570
|
+
|
|
1571
|
+
If you need to write a plan, only write high quality plans, not low quality ones.
|
|
1572
|
+
`.split("\n");
|
|
1573
|
+
const UPDATE_PLAN_RULES = `A tool named \`update_plan\` is available to you. You can use it to keep an up‑to‑date, step‑by‑step plan for the task.
|
|
1574
|
+
|
|
1575
|
+
To create a new plan, call \`update_plan\` with a short list of 1‑sentence steps (no more than 5-7 words each) with a \`status\` for each step (\`pending\`, \`in_progress\`, or \`completed\`).
|
|
1576
|
+
|
|
1577
|
+
When steps have been completed, use \`update_plan\` to mark each finished step as \`completed\` and the next step you are working on as \`in_progress\`. There should always be exactly one \`in_progress\` step until everything is done. You can mark multiple items as complete in a single \`update_plan\` call.
|
|
1578
|
+
|
|
1579
|
+
If all steps are complete, ensure you call \`update_plan\` to mark all steps as \`completed\`.`.split("\n");
|
|
1580
|
+
const TASK_EXECUTION_RULES = [
|
|
1505
1581
|
"- Actionable request: act in this turn.",
|
|
1506
1582
|
"- Continue until done or genuinely blocked. Do not finish with a plan, promise, or offer to check next when an available tool or source can move the request forward.",
|
|
1507
|
-
"- Complete the full task, but report only the result and evidence the user needs; do not narrate every step, check, or detail.",
|
|
1508
1583
|
"- Ask the user only for missing access, approval, or a decision that blocks safe progress. Ask one focused question; otherwise infer conservatively and continue.",
|
|
1509
1584
|
"- For conflicting evidence, compare sources and state which source is authoritative for the answer.",
|
|
1510
|
-
"- Use `reportProgress` only for work with multiple substantive phases or a materially long wait. Skip short lookups and routine commands; after an initial update, call it again only when the major phase changes.",
|
|
1511
1585
|
"- A tool result with `timed_out: true` means that attempt did not finish. Continue the active task. Before retrying work that may have side effects, inspect authoritative state and do not repeat a mutation that already applied."
|
|
1512
1586
|
];
|
|
1513
1587
|
const CONVERSATION_RULES = [
|
|
@@ -1545,12 +1619,14 @@ function buildBehaviorSection(platform) {
|
|
|
1545
1619
|
renderRuleSection("tool-policy", TOOL_POLICY_RULES),
|
|
1546
1620
|
renderRuleSection("tool-call-style", TOOL_CALL_STYLE_RULES),
|
|
1547
1621
|
renderRuleSection("skill-policy", SKILL_POLICY_RULES),
|
|
1548
|
-
renderRuleSection("
|
|
1622
|
+
renderRuleSection("planning", PLANNING_RULES),
|
|
1623
|
+
renderRuleSection("task-execution", TASK_EXECUTION_RULES),
|
|
1549
1624
|
renderRuleSection("conversation", CONVERSATION_RULES),
|
|
1550
1625
|
renderRuleSection("safety", SAFETY_RULES),
|
|
1551
|
-
renderRuleSection("failure-handling", FAILURE_RULES)
|
|
1626
|
+
renderRuleSection("failure-handling", FAILURE_RULES),
|
|
1627
|
+
renderRuleSection("update-plan", UPDATE_PLAN_RULES)
|
|
1552
1628
|
];
|
|
1553
|
-
if (platform === "slack") sections.splice(
|
|
1629
|
+
if (platform === "slack") sections.splice(6, 0, renderRuleSection("slack-actions", SLACK_ACTION_RULES));
|
|
1554
1630
|
return sections.join("\n\n");
|
|
1555
1631
|
}
|
|
1556
1632
|
function buildOutputSection(platform) {
|
|
@@ -7377,6 +7453,41 @@ function createReportProgressTool() {
|
|
|
7377
7453
|
});
|
|
7378
7454
|
}
|
|
7379
7455
|
//#endregion
|
|
7456
|
+
//#region src/chat/tools/runtime/update-plan.ts
|
|
7457
|
+
const planItemSchema = z.object({
|
|
7458
|
+
step: z.string().describe("Task step text."),
|
|
7459
|
+
status: z.enum([
|
|
7460
|
+
"pending",
|
|
7461
|
+
"in_progress",
|
|
7462
|
+
"completed"
|
|
7463
|
+
]).describe("Step status.")
|
|
7464
|
+
}).strict();
|
|
7465
|
+
const updatePlanInputSchema = z.object({
|
|
7466
|
+
explanation: z.string().optional().describe("Optional explanation for this plan update."),
|
|
7467
|
+
plan: z.array(planItemSchema).describe("The list of steps")
|
|
7468
|
+
}).strict();
|
|
7469
|
+
/** Create the internal tool the model uses to replace its task plan. */
|
|
7470
|
+
function createUpdatePlanTool() {
|
|
7471
|
+
return zodTool({
|
|
7472
|
+
annotations: {
|
|
7473
|
+
destructiveHint: false,
|
|
7474
|
+
idempotentHint: true,
|
|
7475
|
+
openWorldHint: false,
|
|
7476
|
+
readOnlyHint: false
|
|
7477
|
+
},
|
|
7478
|
+
description: [
|
|
7479
|
+
"Updates the task plan.",
|
|
7480
|
+
"Provide an optional explanation and a list of plan items, each with a step and status.",
|
|
7481
|
+
"At most one step can be in_progress at a time."
|
|
7482
|
+
].join("\n"),
|
|
7483
|
+
inputSchema: updatePlanInputSchema,
|
|
7484
|
+
execute: async () => ({ content: [{
|
|
7485
|
+
type: "text",
|
|
7486
|
+
text: "Plan updated"
|
|
7487
|
+
}] })
|
|
7488
|
+
});
|
|
7489
|
+
}
|
|
7490
|
+
//#endregion
|
|
7380
7491
|
//#region src/chat/agent-invocations/errors.ts
|
|
7381
7492
|
/** Named child cannot accept another invocation until its active work ends. */
|
|
7382
7493
|
var AgentInvocationBusyError = class extends Error {
|
|
@@ -13408,6 +13519,7 @@ function createTools(availableSkills, hooks = {}, context, options = {}) {
|
|
|
13408
13519
|
const eventCatalog = getEventCatalog();
|
|
13409
13520
|
const tools = {
|
|
13410
13521
|
...options.includeLoadSkill === false ? void 0 : { loadSkill: createLoadSkillTool(availableSkills, { onSkillLoaded: hooks.onSkillLoaded }) },
|
|
13522
|
+
update_plan: createUpdatePlanTool(),
|
|
13411
13523
|
reportProgress: createReportProgressTool(),
|
|
13412
13524
|
systemTime: createSystemTimeTool(),
|
|
13413
13525
|
bash: createBashTool(),
|
|
@@ -13500,6 +13612,11 @@ function createTools(availableSkills, hooks = {}, context, options = {}) {
|
|
|
13500
13612
|
}
|
|
13501
13613
|
//#endregion
|
|
13502
13614
|
//#region src/chat/runtime/report-progress.ts
|
|
13615
|
+
function isActivePlanItem(value) {
|
|
13616
|
+
if (!value || typeof value !== "object") return false;
|
|
13617
|
+
const item = value;
|
|
13618
|
+
return item.status === "in_progress" && typeof item.step === "string" && item.step.trim().length > 0;
|
|
13619
|
+
}
|
|
13503
13620
|
/** Convert a `reportProgress` tool payload into assistant status text. */
|
|
13504
13621
|
function buildReportedProgressStatus(input) {
|
|
13505
13622
|
if (!input || typeof input !== "object") return;
|
|
@@ -13509,8 +13626,16 @@ function buildReportedProgressStatus(input) {
|
|
|
13509
13626
|
if (!text) return;
|
|
13510
13627
|
return { text };
|
|
13511
13628
|
}
|
|
13512
|
-
/**
|
|
13513
|
-
function
|
|
13629
|
+
/** Convert an `update_plan` payload into the active assistant status. */
|
|
13630
|
+
function buildPlanStatus(input) {
|
|
13631
|
+
if (!input || typeof input !== "object") return;
|
|
13632
|
+
const plan = input.plan;
|
|
13633
|
+
if (!Array.isArray(plan)) return;
|
|
13634
|
+
const active = plan.find(isActivePlanItem);
|
|
13635
|
+
return active ? { text: active.step.trim() } : void 0;
|
|
13636
|
+
}
|
|
13637
|
+
/** Recover the latest progress status from a resumable Pi transcript. */
|
|
13638
|
+
function latestProgressStatus(messages) {
|
|
13514
13639
|
for (let messageIndex = messages.length - 1; messageIndex >= 0; messageIndex -= 1) {
|
|
13515
13640
|
const message = messages[messageIndex];
|
|
13516
13641
|
if (message.role !== "assistant" || !Array.isArray(message.content)) continue;
|
|
@@ -13518,9 +13643,12 @@ function latestReportedProgress(messages) {
|
|
|
13518
13643
|
const part = message.content[partIndex];
|
|
13519
13644
|
if (!part || typeof part !== "object") continue;
|
|
13520
13645
|
const toolCall = part;
|
|
13521
|
-
if (toolCall.type !== "toolCall"
|
|
13522
|
-
|
|
13523
|
-
if (
|
|
13646
|
+
if (toolCall.type !== "toolCall") continue;
|
|
13647
|
+
if (toolCall.name === "update_plan") return buildPlanStatus(toolCall.arguments);
|
|
13648
|
+
if (toolCall.name === "reportProgress") {
|
|
13649
|
+
const status = buildReportedProgressStatus(toolCall.arguments);
|
|
13650
|
+
if (status) return status;
|
|
13651
|
+
}
|
|
13524
13652
|
}
|
|
13525
13653
|
}
|
|
13526
13654
|
}
|
|
@@ -14457,8 +14585,7 @@ function createPiAgentTools(tools, sandbox, spanContext, onStatus, sandboxTools,
|
|
|
14457
14585
|
return normalized;
|
|
14458
14586
|
};
|
|
14459
14587
|
const reportStatus = async (executionToolName, params) => {
|
|
14460
|
-
|
|
14461
|
-
const status = buildReportedProgressStatus(params);
|
|
14588
|
+
const status = executionToolName === "update_plan" ? buildPlanStatus(params) : executionToolName === "reportProgress" ? buildReportedProgressStatus(params) : void 0;
|
|
14462
14589
|
if (status) await onStatus?.(status);
|
|
14463
14590
|
};
|
|
14464
14591
|
return Object.entries(visibleTools).map(([toolName, toolDef]) => ({
|
|
@@ -16529,21 +16656,8 @@ function createResumeState(args) {
|
|
|
16529
16656
|
}
|
|
16530
16657
|
//#endregion
|
|
16531
16658
|
//#region src/chat/services/context-compaction.ts
|
|
16532
|
-
/**
|
|
16533
|
-
* Context compaction.
|
|
16534
|
-
*
|
|
16535
|
-
* This module bounds visible Pi history for long conversations. It strips
|
|
16536
|
-
* runtime-only turn context before summarizing and opens replacement epochs in
|
|
16537
|
-
* the durable event store. Capacity compaction retains recent user intent;
|
|
16538
|
-
* handoff starts a profile-bound epoch with only its summary. Normal checkpoints
|
|
16539
|
-
* may later append the current bootstrap; future replacement strips it again.
|
|
16540
|
-
*/
|
|
16541
16659
|
const RETAINED_USER_MESSAGE_TOKENS = 2e4;
|
|
16542
|
-
const MAX_SUMMARY_INPUT_CHARS = 8e4;
|
|
16543
|
-
const MAX_VISIBLE_CONTEXT_CHARS = 2e4;
|
|
16544
16660
|
const MAX_SUMMARY_CHARS = 6e3;
|
|
16545
|
-
const MAX_RENDERED_MESSAGE_CHARS = 4e3;
|
|
16546
|
-
const OMITTED_OLDER_CONTEXT_NOTICE = "[older context omitted]";
|
|
16547
16661
|
/** Raised when Junior cannot compact history below the active model's hard ceiling. */
|
|
16548
16662
|
var ContextInputLimitExceededError = class extends Error {
|
|
16549
16663
|
estimatedTokens;
|
|
@@ -16558,7 +16672,7 @@ var ContextInputLimitExceededError = class extends Error {
|
|
|
16558
16672
|
function textPart(value) {
|
|
16559
16673
|
if (value && typeof value === "object" && value.type === "text" && typeof value.text === "string") return value.text;
|
|
16560
16674
|
}
|
|
16561
|
-
/** Render Pi message text for
|
|
16675
|
+
/** Render Pi message text for retained user-message selection. */
|
|
16562
16676
|
function messageText(message) {
|
|
16563
16677
|
const content = message.content;
|
|
16564
16678
|
const unwrapTask = message.role === "user";
|
|
@@ -16660,71 +16774,37 @@ function selectRetainedUserMessageEntries(messages, maxTokens = RETAINED_USER_ME
|
|
|
16660
16774
|
}
|
|
16661
16775
|
return selected.reverse();
|
|
16662
16776
|
}
|
|
16663
|
-
function renderMessageForSummary(message) {
|
|
16664
|
-
const role = message.role;
|
|
16665
|
-
if (typeof role !== "string") return;
|
|
16666
|
-
const text = sanitizeText(messageText(message));
|
|
16667
|
-
if (!text) return;
|
|
16668
|
-
return `[${role}] ${text.length > MAX_RENDERED_MESSAGE_CHARS ? `${text.slice(0, MAX_RENDERED_MESSAGE_CHARS).trimEnd()}...` : text}`;
|
|
16669
|
-
}
|
|
16670
|
-
function keepTail(text, maxChars) {
|
|
16671
|
-
if (text.length <= maxChars) return text;
|
|
16672
|
-
const prefix = `${OMITTED_OLDER_CONTEXT_NOTICE}\n`;
|
|
16673
|
-
return `${prefix}${text.slice(Math.max(0, text.length - maxChars + prefix.length))}`;
|
|
16674
|
-
}
|
|
16675
|
-
function renderSummaryInput(piMessages, conversationContext) {
|
|
16676
|
-
const lines = [];
|
|
16677
|
-
const visibleContext = conversationContext?.trim();
|
|
16678
|
-
if (visibleContext) lines.push("<visible-thread-context>", keepTail(visibleContext, MAX_VISIBLE_CONTEXT_CHARS), "</visible-thread-context>", "");
|
|
16679
|
-
const renderedPiMessages = stripRuntimeTurnContext(piMessages).map(renderMessageForSummary).filter((line) => Boolean(line));
|
|
16680
|
-
if (renderedPiMessages.length > 0) {
|
|
16681
|
-
const piHistory = keepTail(renderedPiMessages.join("\n"), Math.max(1, MAX_SUMMARY_INPUT_CHARS - lines.join("\n").length - 28));
|
|
16682
|
-
lines.push("<pi-history>", piHistory, "</pi-history>");
|
|
16683
|
-
}
|
|
16684
|
-
return keepTail(lines.join("\n"), MAX_SUMMARY_INPUT_CHARS);
|
|
16685
|
-
}
|
|
16686
16777
|
/** Ask the fast model for a bounded continuation summary of durable context. */
|
|
16687
16778
|
async function summarizeContext(args, deps) {
|
|
16688
|
-
const
|
|
16689
|
-
|
|
16690
|
-
"You are performing an ACTIVE-TURN CONTEXT CHECKPOINT COMPACTION for Junior.",
|
|
16691
|
-
"Create concise internal continuation state for the same agent run, which must continue the unfinished task immediately after this checkpoint.",
|
|
16779
|
+
const instructions = [
|
|
16780
|
+
"You are performing a CONTEXT CHECKPOINT COMPACTION. Create a handoff summary for another LLM that will resume the task.",
|
|
16692
16781
|
"",
|
|
16693
16782
|
"Include:",
|
|
16694
|
-
"-
|
|
16695
|
-
"-
|
|
16696
|
-
"-
|
|
16697
|
-
"-
|
|
16783
|
+
"- Current progress and key decisions made",
|
|
16784
|
+
"- Important context, constraints, or user preferences",
|
|
16785
|
+
"- What remains to be done (clear next steps)",
|
|
16786
|
+
"- Any critical data, examples, or references needed to continue",
|
|
16698
16787
|
"",
|
|
16699
|
-
"
|
|
16700
|
-
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
16704
|
-
"",
|
|
16705
|
-
"
|
|
16706
|
-
"
|
|
16707
|
-
|
|
16708
|
-
"- Durable constraints, user preferences, IDs, URLs, artifacts, canvas links, sandbox references, and auth state",
|
|
16709
|
-
"- Clear next steps and unresolved blockers"
|
|
16710
|
-
];
|
|
16788
|
+
"Be concise, structured, and focused on helping the next LLM seamlessly continue the work."
|
|
16789
|
+
].join("\n");
|
|
16790
|
+
const visibleContext = args.conversationContext?.trim();
|
|
16791
|
+
const labeledContext = visibleContext ? `<visible-thread-context>\n${visibleContext}\n</visible-thread-context>` : void 0;
|
|
16792
|
+
const history = stripRuntimeTurnContext(args.piMessages).filter((message) => [
|
|
16793
|
+
"user",
|
|
16794
|
+
"assistant",
|
|
16795
|
+
"toolResult"
|
|
16796
|
+
].includes(message.role));
|
|
16711
16797
|
const summary = (await deps.completeText({
|
|
16712
16798
|
modelId: botConfig.fastModelId,
|
|
16713
16799
|
messageAttributeMode: "metadata",
|
|
16714
16800
|
temperature: 0,
|
|
16715
16801
|
signal: args.signal,
|
|
16716
16802
|
promptName: "junior.context_compaction",
|
|
16717
|
-
messages: [
|
|
16718
|
-
|
|
16719
|
-
|
|
16720
|
-
|
|
16721
|
-
|
|
16722
|
-
"Do not invent details. Do not include raw secrets or credentials.",
|
|
16723
|
-
"",
|
|
16724
|
-
source
|
|
16725
|
-
].join("\n"),
|
|
16726
|
-
timestamp: Date.now()
|
|
16727
|
-
}],
|
|
16803
|
+
messages: [
|
|
16804
|
+
...history,
|
|
16805
|
+
...labeledContext ? [userMessage(labeledContext)] : [],
|
|
16806
|
+
userMessage(instructions)
|
|
16807
|
+
],
|
|
16728
16808
|
metadata: {
|
|
16729
16809
|
modelId: botConfig.fastModelId,
|
|
16730
16810
|
threadId: args.metadata?.threadId ?? "",
|
|
@@ -16912,8 +16992,7 @@ async function compactActiveContextIfNeeded(args, deps) {
|
|
|
16912
16992
|
try {
|
|
16913
16993
|
summary = await summarizeContext({
|
|
16914
16994
|
...args,
|
|
16915
|
-
piMessages: args.piMessages
|
|
16916
|
-
purpose: "active_turn"
|
|
16995
|
+
piMessages: args.piMessages
|
|
16917
16996
|
}, deps);
|
|
16918
16997
|
} catch (error) {
|
|
16919
16998
|
if (source.estimatedTokens >= inputLimitTokens) throw new ContextInputLimitExceededError(source.estimatedTokens, inputLimitTokens);
|
|
@@ -16933,15 +17012,24 @@ async function compactActiveContextIfNeeded(args, deps) {
|
|
|
16933
17012
|
const instructionProvenance = retainedInstruction ? [retainedInstruction.provenance] : pendingMessages.map((entry) => entry.provenance);
|
|
16934
17013
|
const instructionTimestamp = instructionMessages[0]?.timestamp;
|
|
16935
17014
|
const contextMessage = runtimeContextMessage(retainRuntimeTurnContext(args.runtimeContextMessages ?? args.piMessages), typeof instructionTimestamp === "number" ? instructionTimestamp : void 0);
|
|
16936
|
-
const
|
|
16937
|
-
...contextMessage ? [
|
|
16938
|
-
|
|
16939
|
-
|
|
17015
|
+
const replacement = [
|
|
17016
|
+
...contextMessage ? [{
|
|
17017
|
+
message: contextMessage,
|
|
17018
|
+
provenance: contextProvenance
|
|
17019
|
+
}] : [],
|
|
17020
|
+
...instructionMessages.map((message, index) => ({
|
|
17021
|
+
message,
|
|
17022
|
+
provenance: instructionProvenance[index],
|
|
17023
|
+
...index === 0 && retainedInstruction ? { sourceEventSeq: retainedInstruction.sourceEventSeq } : void 0
|
|
17024
|
+
})),
|
|
17025
|
+
{
|
|
17026
|
+
message: summaryMessage,
|
|
17027
|
+
provenance: contextProvenance
|
|
17028
|
+
}
|
|
16940
17029
|
];
|
|
17030
|
+
const messages = replacement.map((entry) => entry.message);
|
|
16941
17031
|
const replacementInputTokens = estimateHistoryTokens(messages);
|
|
16942
17032
|
if (replacementInputTokens >= inputLimitTokens) throw new ContextInputLimitExceededError(replacementInputTokens, inputLimitTokens);
|
|
16943
|
-
const replacementMessages = stripRuntimeTurnContext(messages);
|
|
16944
|
-
if (replacementMessages.length !== 1 + instructionProvenance.length) throw new Error("persisted instruction provenance must align one-to-one with messages");
|
|
16945
17033
|
args.signal?.throwIfAborted();
|
|
16946
17034
|
await getConversationEventStore().replaceHistory(args.conversationId, {
|
|
16947
17035
|
createdAtMs: Date.now(),
|
|
@@ -16960,13 +17048,10 @@ async function compactActiveContextIfNeeded(args, deps) {
|
|
|
16960
17048
|
summaryChars: summary.length
|
|
16961
17049
|
},
|
|
16962
17050
|
summary,
|
|
16963
|
-
replacementHistory:
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
|
|
16967
|
-
...index === 0 && retainedInstruction ? { sourceEventSeq: retainedInstruction.sourceEventSeq } : void 0
|
|
16968
|
-
};
|
|
16969
|
-
})
|
|
17051
|
+
replacementHistory: replacement.map((entry) => ({
|
|
17052
|
+
item: historyItemFromPiMessage(entry.message, entry.provenance),
|
|
17053
|
+
...entry.sourceEventSeq === void 0 ? void 0 : { sourceEventSeq: entry.sourceEventSeq }
|
|
17054
|
+
}))
|
|
16970
17055
|
}
|
|
16971
17056
|
});
|
|
16972
17057
|
setSpanAttributes({
|
|
@@ -18061,4 +18146,4 @@ async function executeAgentRunInPrivacyContext(run, conversationPrivacy, runLogC
|
|
|
18061
18146
|
}
|
|
18062
18147
|
}
|
|
18063
18148
|
//#endregion
|
|
18064
|
-
export { AuthorizationFlowDisabledError as $, createAgentInvocationSchema as A, recordFinishedTurnForAutomatedLimit as B, renderBlockText as C, getNextRunAtMs as D, scheduledAutomationRunAttributes as E, ingestEvent as F, clearSandboxEgressSignals as G, normalizeSandboxEgressTracePropagationDomains as H, EVENT_WAIT_MS as I, parseSandboxEgressCredentialToken as J, consumeSandboxEgressAuthRequiredSignal as K, isEventMailboxMetadata as L, AgentInvocationLimitError as M, getMcpProviderErrorAttributes as N, agentBindingSchema as O, processWorkspaceSnapshotJob as P, isVisionImageMediaType as Q, renderTaskInput as R, renderAttachmentText as S, logScheduledAutomationRunSkipped as T, shouldPropagateSandboxEgressTrace as U, resolveSandboxEgressProviderForHost as V, SANDBOX_EGRESS_PROXY_PATH as W, createUserTokenStore as X, sandboxEgressSignalsResponseSchema as Y, buildSteeringPiMessage as Z, readPublicArtifact as _, deleteMcpAuthSession as a, readAttachmentVisionSummary as b, deleteMcpStoredOAuthCredentials as c, putMcpStoredOAuthCredentials as d, shouldEmitDevAgentTrace as et, PluginCredentialFailureError as f, publicArtifactHeaders as g, resolvePluginOAuthAccount as h, finalizeMcpAuthorization as i, AgentInvocationBusyError as j, agentInvocationSchema as k, getMcpAuthSession as l,
|
|
18149
|
+
export { AuthorizationFlowDisabledError as $, createAgentInvocationSchema as A, recordFinishedTurnForAutomatedLimit as B, renderBlockText as C, getNextRunAtMs as D, scheduledAutomationRunAttributes as E, ingestEvent as F, clearSandboxEgressSignals as G, normalizeSandboxEgressTracePropagationDomains as H, EVENT_WAIT_MS as I, parseSandboxEgressCredentialToken as J, consumeSandboxEgressAuthRequiredSignal as K, isEventMailboxMetadata as L, AgentInvocationLimitError as M, getMcpProviderErrorAttributes as N, agentBindingSchema as O, processWorkspaceSnapshotJob as P, isVisionImageMediaType as Q, renderTaskInput as R, renderAttachmentText as S, logScheduledAutomationRunSkipped as T, shouldPropagateSandboxEgressTrace as U, resolveSandboxEgressProviderForHost as V, SANDBOX_EGRESS_PROXY_PATH as W, createUserTokenStore as X, sandboxEgressSignalsResponseSchema as Y, buildSteeringPiMessage as Z, readPublicArtifact as _, deleteMcpAuthSession as a, readAttachmentVisionSummary as b, deleteMcpStoredOAuthCredentials as c, putMcpStoredOAuthCredentials as d, shouldEmitDevAgentTrace as et, PluginCredentialFailureError as f, publicArtifactHeaders as g, resolvePluginOAuthAccount as h, finalizeMcpAuthorization as i, AgentInvocationBusyError as j, agentInvocationSchema as k, getMcpAuthSession as l, latestProgressStatus as m, createContextCompactor as n, setConfigDefaults as nt, deleteMcpAuthSessionsForUserProvider as o, authorizationId as p, consumeSandboxEgressPermissionDeniedSignal as q, executeCredentialedEgressRequest as r, deleteMcpServerSessionId as s, executeAgentRun as t, getConfigDefaults as tt, getMcpStoredOAuthCredentials as u, unpublishedArtifactHeaders as v, listThreadReplies as w, recordSlackAttachment as x, lookupSlackUserProfile as y, maybePostAutomatedTurnLimitNotice as z };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-B4FMCO8f.js";
|
|
2
|
-
import { a as embedTexts, r as completeObject } from "./client-
|
|
3
|
-
import { C as withSpan, P as normalizeIdentityEmail, _ as setSpanAttributes, d as logInfo, f as logWarn, u as logException, v as setSpanStatus } from "./logging-
|
|
2
|
+
import { a as embedTexts, r as completeObject } from "./client-DqG_LDSH.js";
|
|
3
|
+
import { C as withSpan, P as normalizeIdentityEmail, _ as setSpanAttributes, d as logInfo, f as logWarn, u as logException, v as setSpanStatus } from "./logging-dD_n9Ocp.js";
|
|
4
4
|
import { a as getClient$1 } from "./sentry-CgWZM_kV.js";
|
|
5
|
-
import { t as canExposeConversationPayload } from "./conversation-privacy-
|
|
6
|
-
import { a as getChatConfig, n as botConfig, s as getSlackBotToken } from "./config-
|
|
5
|
+
import { t as canExposeConversationPayload } from "./conversation-privacy-B7844ly7.js";
|
|
6
|
+
import { a as getChatConfig, n as botConfig, s as getSlackBotToken } from "./config-CdS5GQ7W.js";
|
|
7
7
|
import { n as defaultModelId } from "./model-profile-CZmVoGdX.js";
|
|
8
8
|
import { _ as parseSlackMessageTs, c as isActorUserId, h as parseSlackTeamId, m as parseSlackChannelReferenceId, u as parseActorUserId } from "./context-Bplcgypl.js";
|
|
9
9
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
10
|
-
import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, _ as CONVERSATION_METRICS, g as juniorConversationBriefs, h as juniorConversationBindings, i as juniorWorkspaces, m as juniorConversationParticipants, n as juniorSnapshots, r as juniorWorkspaceRepos, t as createJuniorSqlExecutor, v as juniorConversationMetrics, x as juniorConversationAnnotations, y as juniorConversationEvents } from "./executor-
|
|
10
|
+
import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, _ as CONVERSATION_METRICS, g as juniorConversationBriefs, h as juniorConversationBindings, i as juniorWorkspaces, m as juniorConversationParticipants, n as juniorSnapshots, r as juniorWorkspaceRepos, t as createJuniorSqlExecutor, v as juniorConversationMetrics, x as juniorConversationAnnotations, y as juniorConversationEvents } from "./executor-CIl9A6cO.js";
|
|
11
11
|
import { B as historyReplacementSchema, C as conversationReportEventSchema, I as conversationEventDataSchema, K as usageSchema, M as conversationBriefSchema, N as parseBriefInput, V as newConversationEventSchema, z as decodeStoredConversationEvent } from "./conversation-BpqLg4MM.js";
|
|
12
|
-
import { A as sleep$1, P as SANDBOX_WORKSPACE_ROOT, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-
|
|
12
|
+
import { A as sleep$1, P as SANDBOX_WORKSPACE_ROOT, l as isSandboxMissingError, n as hash, v as getVercelSandboxCredentials, w as getStateAdapter, x as runNonInteractiveCommand } from "./profile-BfWuRDUF.js";
|
|
13
13
|
import { n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-DAoaq0CT.js";
|
|
14
14
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
15
15
|
import { z } from "zod";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { F as isRecord, d as logInfo, f as logWarn } from "./logging-
|
|
2
|
-
import { h as normalizeSlackEmojiName } from "./config-
|
|
1
|
+
import { F as isRecord, d as logInfo, f as logWarn } from "./logging-dD_n9Ocp.js";
|
|
2
|
+
import { h as normalizeSlackEmojiName } from "./config-CdS5GQ7W.js";
|
|
3
3
|
import { _ as parseSlackMessageTs, g as parseSlackUserId } from "./context-Bplcgypl.js";
|
|
4
|
-
import { G as isDmChannel, J as withSlackRetries, K as normalizeSlackConversationId, U as getSlackClient, n as applyPluginFormatMarkdown, un as parseDestination, z as SlackActionError } from "./agent-hooks-
|
|
5
|
-
import { n as pluginCatalogRuntime } from "./catalog-runtime-
|
|
6
|
-
import { w as getStateAdapter } from "./profile-
|
|
4
|
+
import { G as isDmChannel, J as withSlackRetries, K as normalizeSlackConversationId, U as getSlackClient, n as applyPluginFormatMarkdown, un as parseDestination, z as SlackActionError } from "./agent-hooks-pyhfSnAL.js";
|
|
5
|
+
import { n as pluginCatalogRuntime } from "./catalog-runtime-D3hJdAMz.js";
|
|
6
|
+
import { w as getStateAdapter } from "./profile-BfWuRDUF.js";
|
|
7
7
|
import { r as isExperimentalFeatureEnabled } from "./experimental-CIXf7Uye.js";
|
|
8
8
|
import { randomBytes } from "node:crypto";
|
|
9
9
|
import { actorSchema, sourceSchema } from "@sentry/junior-plugin-api";
|
package/dist/api.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { f as logWarn, u as logException } from "./logging-
|
|
1
|
+
import { f as logWarn, u as logException } from "./logging-dD_n9Ocp.js";
|
|
2
2
|
import { _ as parseSlackMessageTs, h as parseSlackTeamId, p as parseSlackChannelId } from "./context-Bplcgypl.js";
|
|
3
|
-
import { $ as resolveViewerUser, $t as parseSessionSource, Ct as conversationArchivedForEmail, D as SANDBOX_RUNTIME, Dt as conversationNotArchivedForEmail, Et as conversationHasParticipantUser, Ft as listConversationAnnotations, Gt as getDb, It as listConversationAnnotationsById, J as withSlackRetries, Kt as getSqlExecutor, Mt as readConversationEventPage, Nt as buildSentryConversationUrl, Ot as conversationNotArchivedForUser, S as WorkspaceValidationError, St as conversationArchiveTimes, Tt as conversationHasParticipantEmail, U as getSlackClient, Wt as getConversationStore, Z as findUserByEmail, Zt as locationFromRow, _ as deleteWorkspace, an as resolveRootConversationId, b as listWorkspaces, bt as createPluginLogger, et as updateViewerDisplayName, g as createWorkspace, in as hasAgentTurnUsage, j as workspaceRepoCheckoutPath, jt as readLatestConversationBrief, kt as viewerConversationMembership, rn as agentTurnUsageSchema, u as getPlugins, v as getWorkspace, wt as conversationArchivedForUser, x as updateWorkspace, xt as readConversationAccessFromSql } from "./agent-hooks-
|
|
3
|
+
import { $ as resolveViewerUser, $t as parseSessionSource, Ct as conversationArchivedForEmail, D as SANDBOX_RUNTIME, Dt as conversationNotArchivedForEmail, Et as conversationHasParticipantUser, Ft as listConversationAnnotations, Gt as getDb, It as listConversationAnnotationsById, J as withSlackRetries, Kt as getSqlExecutor, Mt as readConversationEventPage, Nt as buildSentryConversationUrl, Ot as conversationNotArchivedForUser, S as WorkspaceValidationError, St as conversationArchiveTimes, Tt as conversationHasParticipantEmail, U as getSlackClient, Wt as getConversationStore, Z as findUserByEmail, Zt as locationFromRow, _ as deleteWorkspace, an as resolveRootConversationId, b as listWorkspaces, bt as createPluginLogger, et as updateViewerDisplayName, g as createWorkspace, in as hasAgentTurnUsage, j as workspaceRepoCheckoutPath, jt as readLatestConversationBrief, kt as viewerConversationMembership, rn as agentTurnUsageSchema, u as getPlugins, v as getWorkspace, wt as conversationArchivedForUser, x as updateWorkspace, xt as readConversationAccessFromSql } from "./agent-hooks-pyhfSnAL.js";
|
|
4
4
|
import { n as juniorDestinations } from "./destinations-BeBiJeEM.js";
|
|
5
|
-
import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, b as juniorApiTokens, g as juniorConversationBriefs, m as juniorConversationParticipants, o as juniorSchedulerTasks, v as juniorConversationMetrics, y as juniorConversationEvents } from "./executor-
|
|
5
|
+
import { C as juniorCodeRepositories, D as juniorIdentities, E as juniorConversations, O as juniorUsers, S as juniorCodeChanges, T as conversationReadColumns, b as juniorApiTokens, g as juniorConversationBriefs, m as juniorConversationParticipants, o as juniorSchedulerTasks, v as juniorConversationMetrics, y as juniorConversationEvents } from "./executor-CIl9A6cO.js";
|
|
6
6
|
import { D as createConversationBodySchema, O as createConversationMessageBodySchema, T as conversationStatsReportSchema, _ as conversationParamsSchema, a as cancelConversationPendingMessagesBodySchema, c as conversationAttachmentParamsSchema, d as conversationDetailReportSchema, g as conversationFeedSchema, h as conversationFeedQuerySchema, i as archiveConversationResponseSchema, m as conversationEventsQuerySchema, o as cancelConversationPendingMessagesResponseSchema, p as conversationEventPageSchema, r as archiveConversationBodySchema, t as acceptedConversationMessageSchema, u as conversationDetailQuerySchema, x as conversationPendingMessagesReportSchema } from "./conversation-BpqLg4MM.js";
|
|
7
|
-
import { t as fallbackShortTitle } from "./short-title-
|
|
8
|
-
import { n as hash, t as create } from "./profile-
|
|
9
|
-
import { A as eventAutomationTriggerAvailable, F as effectiveTaskOutcomes, G as listDeletedEventAutomationsCreatedBy, H as eventAutomationBelongsToUser, J as listPublicEventAutomationsForTeams, K as listEventAutomationsCreatedBy, Tt as getConversation, V as deleteEventAutomation, W as getEventAutomation, X as getEventCatalog, _ as parseScheduledAutomationRow, c as parseSlackThreadId, ht as cancelHumanFacingPendingMessages, i as readLiveAttachment, m as listPublicScheduledAutomationsForTeams, n as readStats, p as isListedScheduledAutomation, v as readScheduledAutomation, y as saveScheduledAutomation } from "./stats-
|
|
10
|
-
import { t as getCachedSnapshot } from "./resolve-
|
|
7
|
+
import { t as fallbackShortTitle } from "./short-title-CKnmS3nO.js";
|
|
8
|
+
import { n as hash, t as create } from "./profile-BfWuRDUF.js";
|
|
9
|
+
import { A as eventAutomationTriggerAvailable, F as effectiveTaskOutcomes, G as listDeletedEventAutomationsCreatedBy, H as eventAutomationBelongsToUser, J as listPublicEventAutomationsForTeams, K as listEventAutomationsCreatedBy, Tt as getConversation, V as deleteEventAutomation, W as getEventAutomation, X as getEventCatalog, _ as parseScheduledAutomationRow, c as parseSlackThreadId, ht as cancelHumanFacingPendingMessages, i as readLiveAttachment, m as listPublicScheduledAutomationsForTeams, n as readStats, p as isListedScheduledAutomation, v as readScheduledAutomation, y as saveScheduledAutomation } from "./stats-D4Ar_7MS.js";
|
|
10
|
+
import { t as getCachedSnapshot } from "./resolve-CU8DArbR.js";
|
|
11
11
|
import { t as getVercelConversationWorkQueue } from "./vercel-queue-DIkVcfK4.js";
|
|
12
12
|
import { c as runtimeInfoReportSchema, n as pluginOperationalReportFeedSchema, s as pluginsSchema, t as healthReportSchema, u as skillReportsSchema } from "./reporting-schema-DosTN__Q.js";
|
|
13
|
-
import { a as webActorFromEmail, c as formatSlackConversationRedactedLabel, d as resolveSlackConversationContextFromThreadId, f as lookupSlackUser, g as readHealthReport, m as createVercelAttachmentStorage, p as legacyWebMailboxMetadataSchema, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage } from "./web-input-
|
|
14
|
-
import { a as readAutomationExecutionStatusDays, c as readAutomationExecutions, d as conversationActiveDaysColumn, f as conversationAggregateColumns, i as readAutomationExecutionHours, l as readAutomationRuns, n as readAutomationExecutionByConversationId, o as readAutomationExecutionStatusHours, p as conversationRangeColumns, r as readAutomationExecutionDays, s as readAutomationExecutionSummaries, t as emptyAutomationRunWindows } from "./execution-stats-
|
|
15
|
-
import { r as getWebAuthorization } from "./web-authorization-
|
|
13
|
+
import { a as webActorFromEmail, c as formatSlackConversationRedactedLabel, d as resolveSlackConversationContextFromThreadId, f as lookupSlackUser, g as readHealthReport, m as createVercelAttachmentStorage, p as legacyWebMailboxMetadataSchema, r as createAndEnqueueConversation, t as appendAndEnqueueWebMessage } from "./web-input-vHOAXVxj.js";
|
|
14
|
+
import { a as readAutomationExecutionStatusDays, c as readAutomationExecutions, d as conversationActiveDaysColumn, f as conversationAggregateColumns, i as readAutomationExecutionHours, l as readAutomationRuns, n as readAutomationExecutionByConversationId, o as readAutomationExecutionStatusHours, p as conversationRangeColumns, r as readAutomationExecutionDays, s as readAutomationExecutionSummaries, t as emptyAutomationRunWindows } from "./execution-stats-BbYien1O.js";
|
|
15
|
+
import { r as getWebAuthorization } from "./web-authorization-TdkXi7XG.js";
|
|
16
16
|
import { $ as sumUtcHoursIntoSixHours, A as actorProfileReportSchema, C as createPersonalTokenBodySchema, D as personalTokenParamsSchema, F as locationDirectoryReportSchema, G as codePersonReportSchema, I as locationParamsSchema, J as HOUR_MS$1, L as activityDays$1, M as personalSpendReportSchema, O as revokePersonalTokenResponseSchema, P as locationDetailReportSchema, Q as startOfUtcHour, R as activityHours$1, T as personalTokenListSchema, W as codeOverviewReportSchema, X as fillUtcHours, Y as fillUtcDays, Z as fillUtcSixHours, _ as automationRunListSchema, a as workspaceBodySchema, at as apiErrorSchema, et as trailingUtcDayWindow, g as automationParamsSchema, h as automationListSchema, i as deleteWorkspaceResponseSchema, it as utcHourKey, j as personParamsSchema, k as actorDirectoryReportSchema, l as workspaceSchema, m as automationListQuerySchema, n as statsReportSchema, nt as trailingUtcSixHourWindow, o as workspaceListSchema, q as DAY_MS$1, rt as utcDayKey, s as workspaceParamsSchema, tt as trailingUtcHourWindow, u as automationExecutionListSchema, w as createdPersonalTokenSchema, z as activitySixHours$1 } from "./schema-BMG8MJPJ.js";
|
|
17
17
|
import { Hono } from "hono";
|
|
18
18
|
import path from "node:path";
|
|
@@ -3453,7 +3453,7 @@ async function readPeoplePluginReports(args) {
|
|
|
3453
3453
|
reports: [],
|
|
3454
3454
|
source: "plugins"
|
|
3455
3455
|
});
|
|
3456
|
-
const { getPluginProfileReports } = await import("./agent-hooks-
|
|
3456
|
+
const { getPluginProfileReports } = await import("./agent-hooks-pyhfSnAL.js").then((n) => n.t);
|
|
3457
3457
|
return pluginOperationalReportFeedSchema.parse({
|
|
3458
3458
|
generatedAt: new Date(nowMs).toISOString(),
|
|
3459
3459
|
reports: await getPluginProfileReports({
|
|
@@ -4062,7 +4062,7 @@ function readDescriptionText(home) {
|
|
|
4062
4062
|
}
|
|
4063
4063
|
/** Read discovered skill names for authenticated runtime diagnostics. */
|
|
4064
4064
|
async function readSkillReports() {
|
|
4065
|
-
const { discoverSkills } = await import("./skills-
|
|
4065
|
+
const { discoverSkills } = await import("./skills-CLsaAMtU.js").then((n) => n.o);
|
|
4066
4066
|
const skills = await discoverSkills();
|
|
4067
4067
|
return skillReportsSchema.parse(skills.map((skill) => ({
|
|
4068
4068
|
name: skill.name,
|
|
@@ -4071,7 +4071,7 @@ async function readSkillReports() {
|
|
|
4071
4071
|
}
|
|
4072
4072
|
/** Read safe configured plugin metadata for authenticated runtime diagnostics. */
|
|
4073
4073
|
async function readPlugins() {
|
|
4074
|
-
const { pluginCatalogRuntime } = await import("./catalog-runtime-
|
|
4074
|
+
const { pluginCatalogRuntime } = await import("./catalog-runtime-D3hJdAMz.js").then((n) => n.t);
|
|
4075
4075
|
return pluginsSchema.parse(pluginCatalogRuntime.getProviders().map((plugin) => ({
|
|
4076
4076
|
configKeys: plugin.manifest.configKeys ?? [],
|
|
4077
4077
|
description: plugin.manifest.description,
|
|
@@ -4083,7 +4083,7 @@ async function readPlugins() {
|
|
|
4083
4083
|
async function readRuntimeInfoReport() {
|
|
4084
4084
|
const [{ homeDir }, { pluginCatalogRuntime }, plugins, skills] = await Promise.all([
|
|
4085
4085
|
import("./package-discovery-7a9YqLhE.js").then((n) => n.r),
|
|
4086
|
-
import("./catalog-runtime-
|
|
4086
|
+
import("./catalog-runtime-D3hJdAMz.js").then((n) => n.t),
|
|
4087
4087
|
readPlugins(),
|
|
4088
4088
|
readSkillReports()
|
|
4089
4089
|
]);
|
|
@@ -4100,7 +4100,7 @@ async function readRuntimeInfoReport() {
|
|
|
4100
4100
|
/** Read sanitized operational summaries contributed by plugins. */
|
|
4101
4101
|
async function readPluginOperationalReportFeed() {
|
|
4102
4102
|
const nowMs = Date.now();
|
|
4103
|
-
const { getPluginOperationalReports } = await import("./agent-hooks-
|
|
4103
|
+
const { getPluginOperationalReports } = await import("./agent-hooks-pyhfSnAL.js").then((n) => n.t);
|
|
4104
4104
|
return pluginOperationalReportFeedSchema.parse({
|
|
4105
4105
|
source: "plugins",
|
|
4106
4106
|
generatedAt: new Date(nowMs).toISOString(),
|