@kodax-ai/kodax 0.7.72 → 0.7.74
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/CHANGELOG.md +226 -0
- package/README.md +72 -18
- package/README_CN.md +55 -14
- package/config-templates/config.example.jsonc +7 -0
- package/dist/chunks/agent-2ABIG5NW.js +2 -0
- package/dist/chunks/argument-completer-C45DEO34.js +2 -0
- package/dist/chunks/chunk-5GH3SVI3.js +74 -0
- package/dist/chunks/{chunk-SQODXBLX.js → chunk-64M5HOCA.js} +1 -1
- package/dist/chunks/{chunk-PKQOEDHJ.js → chunk-7W6KYJU2.js} +224 -230
- package/dist/chunks/chunk-C7TZAT3S.js +369 -0
- package/dist/chunks/chunk-F7AIEHSS.js +46 -0
- package/dist/chunks/{chunk-E27LHEIP.js → chunk-GAFFYJU3.js} +1 -1
- package/dist/chunks/chunk-KPGVY6PF.js +321 -0
- package/dist/chunks/{chunk-44QXPEEE.js → chunk-MBAPT2R5.js} +1 -1
- package/dist/chunks/{chunk-IR5KIK7E.js → chunk-MVCAFD6M.js} +1 -1
- package/dist/chunks/chunk-PP53SIIL.js +5 -0
- package/dist/chunks/chunk-QH56WEHK.js +2 -0
- package/dist/chunks/chunk-UJS7JAO6.js +770 -0
- package/dist/chunks/{chunk-MVARIMQV.js → chunk-VK5QTHS6.js} +6 -6
- package/dist/chunks/chunk-VPURXE2F.js +427 -0
- package/dist/chunks/chunk-XM724XAA.js +329 -0
- package/dist/chunks/{chunk-WIBLZK4G.js → chunk-XMP66YWG.js} +11 -4
- package/dist/chunks/chunk-XXQLPTAN.js +78 -0
- package/dist/chunks/compaction-config-QYCDOW3Q.js +2 -0
- package/dist/chunks/{construction-bootstrap-ZJPXUPXQ.js → construction-bootstrap-BKNPJI7O.js} +1 -1
- package/dist/chunks/dist-6EK4H7TP.js +2 -0
- package/dist/chunks/{dist-GOUP4YVE.js → dist-EVEJAII2.js} +1 -1
- package/dist/chunks/host-KS4TJKWQ.js +2 -0
- package/dist/chunks/run-manager-L7MKGQNX.js +2 -0
- package/dist/chunks/{utils-OTT5CG5J.js → utils-GTJLL4GT.js} +1 -1
- package/dist/index.d.ts +17 -16
- package/dist/index.js +5 -5
- package/dist/kodax_cli.js +1357 -1294
- package/dist/provider-capabilities.json +184 -5
- package/dist/runtime-worker.js +1277 -1224
- package/dist/sdk-a2a.d.ts +11 -10
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +110 -62
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +114 -32
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +8 -49
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +153 -24
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +238 -19
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +6 -6
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +16 -14
- package/dist/types-chunks/{base.d-Cz_rwpOi.d.ts → base.d-ChvpaKjZ.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-CHJO5y94.d.ts → bash-prefix-extractor.d-r1beOESM.d.ts} +50 -14
- package/dist/types-chunks/{capability-learning.d-_lR0J4iR.d.ts → capability-learning.d-DPrYxRjF.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-DxtdE-GD.d.ts → capsule.d-zeqV4IQX.d.ts} +11 -3
- package/dist/types-chunks/{commands.d-DZxHzH5-.d.ts → commands.d-DUxnK2TU.d.ts} +67 -8
- package/dist/types-chunks/{guardrail.d-DlpMnd-Y.d.ts → guardrail.d-CWYD1bdL.d.ts} +2 -1
- package/dist/types-chunks/{guardrail.d-auV61_h5.d.ts → guardrail.d-qjuKJZ31.d.ts} +79 -18
- package/dist/types-chunks/history-retrieval.d-BKTJIrVd.d.ts +57 -0
- package/dist/types-chunks/{public-api.d--IDNJsu1.d.ts → public-api.d-CX4B11qY.d.ts} +19 -5
- package/dist/types-chunks/{run-manager.d-Bh50OdVl.d.ts → run-manager.d-B9fEIjZk.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-Cfw6NFu-.d.ts → sdk-session-B0fhAOPa.d.ts} +3 -3
- package/dist/types-chunks/{resolver.d-ssgNSlrh.d.ts → side-query.d-DWTMsndP.d.ts} +68 -5
- package/dist/types-chunks/{types.d-EqQmHztg.d.ts → types.d-Bm_y6YuM.d.ts} +16 -9
- package/dist/types-chunks/{types.d-Cqaw71Ax.d.ts → types.d-CSmF0t0n.d.ts} +6 -5
- package/dist/types-chunks/{types.d-CNZgY52F.d.ts → types.d-DEctY20M.d.ts} +10 -3
- package/dist/types-chunks/{types.d-DH1mvdcl.d.ts → types.d-sRLugmjy.d.ts} +64 -15
- package/dist/types-chunks/{utils.d-gmn3c5U4.d.ts → utils.d-D0wPxz8y.d.ts} +94 -10
- package/docs/SDK_EMBEDDER_GUIDE.md +1952 -1573
- package/package.json +9 -2
- package/dist/chunks/agent-YKGU4USA.js +0 -2
- package/dist/chunks/argument-completer-QZETLNAB.js +0 -2
- package/dist/chunks/chunk-23X6REO4.js +0 -46
- package/dist/chunks/chunk-2RI252RN.js +0 -2
- package/dist/chunks/chunk-CLFP6UGU.js +0 -71
- package/dist/chunks/chunk-EDZ5KJFT.js +0 -5
- package/dist/chunks/chunk-GIK4SGAT.js +0 -364
- package/dist/chunks/chunk-GVWPHE23.js +0 -310
- package/dist/chunks/chunk-JSDLBXME.js +0 -755
- package/dist/chunks/chunk-VDGCGOQH.js +0 -328
- package/dist/chunks/chunk-VVE3UM4F.js +0 -410
- package/dist/chunks/chunk-ZJIMT5I3.js +0 -78
- package/dist/chunks/compaction-config-TWCDFLX6.js +0 -2
- package/dist/chunks/dist-JT4ATXVM.js +0 -2
- package/dist/chunks/host-SVEDZUC5.js +0 -2
- package/dist/chunks/run-manager-RX42UNEM.js +0 -2
package/dist/sdk-agent.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ASK_USER_BACK_SIGNAL, a as ASK_USER_CUSTOM_INPUT_SIGNAL, b as AdmissionAuditOptions, c as AdmissionCtx, d as AdmissionVerdict, e as AdmittedHandle, g as AgentActor, i as AgentActorSnapshot, j as AgentActorState, l as AgentArtifactDescriptor, m as AgentArtifactPolicy, n as AgentArtifactPolicyDecision, o as AgentArtifactPolicyInput, p as AgentArtifactReference, q as AgentBudgetAdmission, r as AgentBudgetAdmissionInput, v as AgentCapabilityDeclaration, w as AgentCapabilityRequirements, x as AgentContinuationInput, y as AgentCredentialBroker, C as AgentDispatchContext, D as AgentDispatchPolicy, E as AgentDispatchPolicyDecision, F as AgentDispatchPolicyInput, G as AgentDispatchabilitySnapshot, H as AgentDispatchabilityStatus, I as AgentEffectDeclaration, K as AgentEventKind, L as AgentExecutionInput, O as AgentExecutor, P as AgentExecutorEvent, R as AgentExecutorFactoryContext, T as AgentExecutorPlaneBackgroundErrorContext, U as AgentExecutorPlaneBackgroundErrorHandler, V as AgentExecutorPlaneBinding, X as AgentExecutorPreflightResult, Y as AgentExecutorProtocol, Z as AgentExecutorTaskReference, _ as AgentExecutorTaskSnapshot, a0 as AgentForkTurns, a2 as AgentJsonObject, a3 as AgentJsonValue, a5 as AgentListEntry, aa as AgentMiddlewareDeclaration, ad as AgentPreflightInput, ae as AgentPreflightResult, af as AgentProgressItem, ag as AgentProgressKind, ah as AgentProgressUpdate, ai as AgentReasoningProfile, aj as AgentRegistrationEnabledMutationOptions, ak as AgentRegistrationMutationOptions, al as AgentRegistrationService, am as AgentSpanData, ao as AgentTaskCancellation, ap as AgentTaskCorrelation, aq as AgentTaskEvent, ar as AgentTaskFilter, as as AgentTaskProgress, at as AgentTaskRegistrationSnapshot, au as AgentTaskService, av as AgentTaskSnapshot, aw as AgentTaskStartInput, ax as AgentTaskState, ay as AgentTaskUsage, az as AgentTool, aB as AgentTurn, aE as AgentTurnState, aF as AgentTurnSummary, aG as AskUserAnswer, aH as AskUserCustomInputAnswer, aI as AskUserMultiOptions, aJ as AskUserQuestionItem, aK as AskUserQuestionOptions, aL as AskUserSelectionAnswer, aM as CapabilitySupport, aN as CompactionAnchor,
|
|
3
|
-
import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-
|
|
4
|
-
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetActiveRootQueueRoutesForTests, N as actorQueueId, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as
|
|
5
|
-
export { G as GuardrailBlockedError, a as GuardrailContext, b as GuardrailEscalateError, c as GuardrailVerdict, I as InputGuardrail, O as OutputGuardrail, T as ToolBeforeOutcome, d as ToolGuardrail, e as collectGuardrails, r as runInputGuardrails, f as runOutputGuardrails, g as runToolAfterGuardrails, h as runToolBeforeGuardrails } from './types-chunks/guardrail.d-
|
|
6
|
-
import { i as KodaXImageBlock, k as KodaXMessage, a1 as KodaXToolDefinition, a6 as KodaXToolUseBlock } from './types-chunks/types.d-
|
|
7
|
-
export { K as KodaXAssuranceIntent, c as KodaXContentBlock, f as KodaXExecutionMode, g as KodaXExecutionPattern, m as KodaXMutationSurface, q as KodaXProviderConfig, y as KodaXProviderStreamOptions, B as KodaXReasoningCapability, F as KodaXReasoningMode,
|
|
8
|
-
import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-
|
|
9
|
-
export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-
|
|
1
|
+
import { dk as Span, dD as Trace, f as Agent, bd as Handoff, d6 as RunnerToolCall, d9 as RunnerToolResult, a8 as AgentMessage, a7 as AgentManifest, c8 as ManifestPatch, bh as InvariantId, cU as QualityInvariant, bx as KodaXInputArtifactSource, bv as KodaXImageMediaType, c4 as KodaXVideoMediaType, bq as KodaXFileInputArtifact, bu as KodaXImageInputArtifact, c3 as KodaXVideoInputArtifact, bw as KodaXInputArtifact, aY as DiscoveredInstance, di as SessionMeta, dj as SessionStateSnapshot, ds as StateWriterFs, bg as InstanceDiscoveryFs, dr as StateWriter, du as StopHookContext, dw as StopHookResult, dv as StopHookFn, cj as MemoryContextIdentity, cs as MemoryItemRef, bM as KodaXSessionLineage, bD as KodaXSessionArtifactLedgerEntry, co as MemoryEvent, cK as MemoryReviewRunner, ck as MemoryController, c9 as MemoryActionProposal, cc as MemoryApplyResult, cC as MemoryRejectResult, cA as MemoryRefFilter, ch as MemoryBodySnapshot, cu as MemoryLifecycleOperationResult, cl as MemoryCuratorInput, cr as MemoryGovernanceReport, cf as MemoryAutoCuratorInput, cg as MemoryAutoCuratorResult, cx as MemoryPackInput, cv as MemoryPack, cF as MemoryReviewInput, cJ as MemoryReviewPlan, bA as KodaXMemoryOutcomeDigest, cn as MemoryEpisodeReviewResult, ca as MemoryApplicability, bV as KodaXSessionStorage, aT as CompactionUpdate, bH as KodaXSessionData, bs as KodaXGoalState, br as KodaXGoalEventType, bI as KodaXSessionEntry, bK as KodaXSessionGoalEntry, aO as CompactionConfig, aP as CompactionDetails, aR as CompactionResult, bo as KodaXExtensionStore, bp as KodaXExtensionStoreEntry, by as KodaXJsonValue, ei as WorkflowRunState, dY as WorkflowOutcome, dJ as WorkflowApi, dX as WorkflowModule, dI as WorkflowAgentBackend, dT as WorkflowLimits, dO as WorkflowEvent, dU as WorkflowLogEvent, eo as WorkflowTaskResult, W as AgentExecutorPlaneStore, aU as CreateAgentExecutorPlaneOptions, S as AgentExecutorPlane, b5 as ExternalAgentProtocol, Q as AgentExecutorFactory, u as AgentCapabilities, aC as AgentTurnExecutor, M as AgentExecutionKind, t as AgentBudgetPort, k as AgentActorStore, J as AgentEvent, a6 as AgentMailboxMessage, h as AgentActorClient, N as AgentExecutionResult, an as AgentSpawnInput, aD as AgentTurnRef, z as AgentDataClassification, a9 as AgentMetadataValue, ab as AgentMutationOptions, $ as AgentFollowupResult, a1 as AgentInterruptScope, aA as AgentTreeSnapshot, B as AgentDetail, ac as AgentOutput, s as AgentBudgetExhausted, a4 as AgentLimitReached } from './types-chunks/types.d-sRLugmjy.js';
|
|
2
|
+
export { A as ASK_USER_BACK_SIGNAL, a as ASK_USER_CUSTOM_INPUT_SIGNAL, b as AdmissionAuditOptions, c as AdmissionCtx, d as AdmissionVerdict, e as AdmittedHandle, g as AgentActor, i as AgentActorSnapshot, j as AgentActorState, l as AgentArtifactDescriptor, m as AgentArtifactPolicy, n as AgentArtifactPolicyDecision, o as AgentArtifactPolicyInput, p as AgentArtifactReference, q as AgentBudgetAdmission, r as AgentBudgetAdmissionInput, v as AgentCapabilityDeclaration, w as AgentCapabilityRequirements, x as AgentContinuationInput, y as AgentCredentialBroker, C as AgentDispatchContext, D as AgentDispatchPolicy, E as AgentDispatchPolicyDecision, F as AgentDispatchPolicyInput, G as AgentDispatchabilitySnapshot, H as AgentDispatchabilityStatus, I as AgentEffectDeclaration, K as AgentEventKind, L as AgentExecutionInput, O as AgentExecutor, P as AgentExecutorEvent, R as AgentExecutorFactoryContext, T as AgentExecutorPlaneBackgroundErrorContext, U as AgentExecutorPlaneBackgroundErrorHandler, V as AgentExecutorPlaneBinding, X as AgentExecutorPreflightResult, Y as AgentExecutorProtocol, Z as AgentExecutorTaskReference, _ as AgentExecutorTaskSnapshot, a0 as AgentForkTurns, a2 as AgentJsonObject, a3 as AgentJsonValue, a5 as AgentListEntry, aa as AgentMiddlewareDeclaration, ad as AgentPreflightInput, ae as AgentPreflightResult, af as AgentProgressItem, ag as AgentProgressKind, ah as AgentProgressUpdate, ai as AgentReasoningProfile, aj as AgentRegistrationEnabledMutationOptions, ak as AgentRegistrationMutationOptions, al as AgentRegistrationService, am as AgentSpanData, ao as AgentTaskCancellation, ap as AgentTaskCorrelation, aq as AgentTaskEvent, ar as AgentTaskFilter, as as AgentTaskProgress, at as AgentTaskRegistrationSnapshot, au as AgentTaskService, av as AgentTaskSnapshot, aw as AgentTaskStartInput, ax as AgentTaskState, ay as AgentTaskUsage, az as AgentTool, aB as AgentTurn, aE as AgentTurnState, aF as AgentTurnSummary, aG as AskUserAnswer, aH as AskUserCustomInputAnswer, aI as AskUserMultiOptions, aJ as AskUserQuestionItem, aK as AskUserQuestionOptions, aL as AskUserSelectionAnswer, aM as CapabilitySupport, aN as CompactionAnchor, aQ as CompactionReport, aS as CompactionSpanData, aV as CurrentTodoSummary, aW as DEFAULT_SYSTEM_CAP, aX as Deliverable, aZ as DiscoveryOptions, a_ as DispatchableAgentDescriptor, a$ as DispatchableAgentListing, b0 as DispatchableAgentOrigin, b1 as DispatchableAgentQuery, b2 as EvidenceSpanData, b3 as ExternalAgentEffectDeclaration, b4 as ExternalAgentHealth, b6 as ExternalAgentRegistration, b7 as ExternalAgentRegistrationSummary, b8 as FanoutSpanData, b9 as FileOperations, ba as GenerationSpanData, bb as Guardrail, bc as GuardrailSpanData, be as HandoffSpanData, bf as InMemorySessionOptions, bi as InvariantResult, bj as InvariantSession, bk as KodaXCompactMemoryProgress, bl as KodaXCompactMemorySeed, bm as KodaXExtensionSessionRecord, bn as KodaXExtensionSessionState, bt as KodaXGoalStatus, bz as KodaXMemoryInfluenceRef, bB as KodaXMemoryOutcomeEvidence, bC as KodaXSessionArchiveMarkerEntry, bE as KodaXSessionBranchSummaryEntry, bF as KodaXSessionClientNoticeEntry, bG as KodaXSessionCompactionEntry, bJ as KodaXSessionEntryBase, bL as KodaXSessionLabelEntry, bN as KodaXSessionMemoryOutcomeDigestEntry, bO as KodaXSessionMemoryReviewReceiptEntry, bP as KodaXSessionMessageEntry, bQ as KodaXSessionMeta, bR as KodaXSessionNavigationOptions, bS as KodaXSessionRewindMarkerEntry, bT as KodaXSessionRuntimeInfo, bU as KodaXSessionScope, bW as KodaXSessionTreeNode, bX as KodaXSessionUiHistoryItem, bY as KodaXSessionUiHistoryItemType, bZ as KodaXSessionUiTextHistoryItem, b_ as KodaXSessionUiTextHistoryItemType, b$ as KodaXSessionUiToolCall, c0 as KodaXSessionUiToolCallStatus, c1 as KodaXSessionUiToolGroupHistoryItem, c2 as KodaXSessionWorkspaceKind, c5 as LocalAgentTaskInput, c6 as LocalAgentTaskUpdate, c7 as MAX_TOOL_LOOP_ITERATIONS, cb as MemoryApplyPreview, cd as MemoryApproval, ce as MemoryAuthority, ci as MemoryClaimKind, cm as MemoryDecisionTraceReceipt, cp as MemoryGovernanceFinding, cq as MemoryGovernanceFindingKind, ct as MemoryLifecycle, cw as MemoryPackHint, cy as MemoryPackTraceMetadata, cz as MemoryProposalAction, cB as MemoryRefKind, cD as MemoryReviewCandidateRef, cE as MemoryReviewDraftAction, cG as MemoryReviewModelInput, cH as MemoryReviewPersistenceDecision, cI as MemoryReviewPersistenceKind, cL as MemoryReviewTrigger, cM as MemoryScope, cN as MemorySourceAdapter, cO as MemoryVisibility, cP as MessageEntry, cQ as ObserveCtx, cR as PersistedSessionState, cS as PresetDispatcher, cT as PresetTracingContext, cV as ReadonlyMutationTracker, cW as ReadonlyRecorder, cX as ReasoningDepth, cY as RecentlyModifiedFile, cZ as RunEvent, c_ as RunOptions, c$ as RunResult, d0 as RunnableTool, d1 as Runner, d2 as RunnerEvent, d3 as RunnerLlmResult, d4 as RunnerLlmReturn, d5 as RunnerRecoveryTranscriptCarrier, d7 as RunnerToolContext, d8 as RunnerToolObserver, da as RunnerToolResultBatch, db as RunnerToolResultBatchTransform, dc as Session, dd as SessionDispatchResult, de as SessionEntry, df as SessionErrorMetadata, dg as SessionExtension, dh as SessionForkOptions, dl as SpanData, dm as SpanError, dn as SpanImpl, dp as SpanImplOptions, dq as StartTraceOptions, dt as StateWriterOptions, dx as StopHookSpanData, dy as SystemCap, dz as TerminalCtx, dA as ToolCallSpanData, dB as ToolCapability, dC as ToolPermission, dE as TraceOptions, dF as Tracer, dG as TracerOptions, dH as UserInteraction, dK as WorkflowApproval, dL as WorkflowApprovalSummary, dM as WorkflowArtifactRef, dN as WorkflowBudget, dP as WorkflowEventCorrelation, dQ as WorkflowEventRecorder, dR as WorkflowEventType, dS as WorkflowIsolation, dV as WorkflowMeta, dW as WorkflowModelHint, dZ as WorkflowOutcomeError, d_ as WorkflowOutcomeResult, d$ as WorkflowOutcomeStatus, e0 as WorkflowOutcomeUsage, e1 as WorkflowParallelOptions, e2 as WorkflowProcessArtifact, e3 as WorkflowProcessCounts, e4 as WorkflowProcessEvent, e5 as WorkflowProcessItem, e6 as WorkflowProcessItemKind, e7 as WorkflowProcessItemOrigin, e8 as WorkflowProcessItemStatus, e9 as WorkflowProcessProgress, ea as WorkflowProcessSnapshot, eb as WorkflowProcessSource, ec as WorkflowProcessStatus, ed as WorkflowProcessSummaryStatus, ee as WorkflowProcessTokenUsage, ef as WorkflowProcessTracker, eg as WorkflowProcessTrackerOptions, eh as WorkflowRun, ej as WorkflowRunStatus, ek as WorkflowSpawnAgentInput, el as WorkflowSynthesis, em as WorkflowSynthesizeInput, en as WorkflowTaskHandle, ep as WorkflowTaskSnapshot, eq as WorkflowTaskStatus, er as WorkflowTaskSummaryEventUpdate, es as WorkflowTaskSummaryKind, et as WorkflowTaskSummaryUpdate, eu as WorkflowTaskUsage, ev as WorkflowTaskVerification, ew as WorkflowTaskVerificationResult, ex as WorkflowWaitOptions, ey as _resetAdmittedAgentBindings, ez as _resetPresetDispatchers, eA as asSingleSelection, eB as attachRunnerRecoveryTranscript, eC as buildAssistantMessageFromLlmResult, eD as buildSystemPrompt, eE as buildToolResultMessage, eF as createAgent, eG as createHandoff, eH as createInMemorySession, eI as createInvariantSessionForAgent, eJ as createStateWriter, eK as createTrace, eL as createWorkflowProcessTracker, eM as defaultTracer, eN as detectInstructionsInjection, eO as discoverInstances, eP as executeRunnerToolCall, eQ as extractAssistantTextFromMessage, eR as getActiveUserInteraction, eS as getAdmittedAgentBindings, eT as hashMemoryIdentityComponent, eU as isAskUserCustomInputAnswer, eV as isFinalWorkflowProcessStatus, eW as isRunnableTool, eX as isRunnerLlmResult, eY as matchesMemoryApplicability, eZ as memoryApplicabilityFingerprint, e_ as normalizeHostMetadata, e$ as readRunnerRecoveryTranscript, f0 as registerPresetDispatcher, f1 as runAdmissionAudit, f2 as setActiveUserInteraction, f3 as setAdmittedAgentBindings } from './types-chunks/types.d-sRLugmjy.js';
|
|
3
|
+
import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-zeqV4IQX.js';
|
|
4
|
+
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetActiveRootQueueRoutesForTests, N as actorQueueId, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as evictOldIslandMessageContent, a4 as extractArtifactLedger, a5 as extractFileOps, a6 as extractTitleFromMessages, a7 as findPreviousUserEntryId, a8 as forkSessionLineage, a9 as generateSessionId, aa as getAgentConfigHome, ab as getAgentConfigPath, ac as getAppDataDir, ad as getSessionLineagePath, ae as getSessionMessagesFromLineage, af as isPathInsideDirectory, ag as lintRestrictedWorkflowSource, ah as mergeArtifactLedger, ai as mergeFileOps, aj as registerActiveRootQueueRoute, ak as resolveActiveRootQueueRoute, al as resolveExecutionPath, am as resolveSessionLineageTarget, an as rewindSessionLineage, ao as setAgentConfigHome, ap as setSessionLineageActiveEntry, aq as validateAndFixToolHistory, ar as validateWorkflowCapsule, as as validateWorkflowScriptManifest } from './types-chunks/capsule.d-zeqV4IQX.js';
|
|
5
|
+
export { G as GuardrailBlockedError, a as GuardrailContext, b as GuardrailEscalateError, c as GuardrailVerdict, I as InputGuardrail, O as OutputGuardrail, T as ToolBeforeOutcome, d as ToolGuardrail, e as collectGuardrails, r as runInputGuardrails, f as runOutputGuardrails, g as runToolAfterGuardrails, h as runToolBeforeGuardrails } from './types-chunks/guardrail.d-CWYD1bdL.js';
|
|
6
|
+
import { i as KodaXImageBlock, k as KodaXMessage, a1 as KodaXToolDefinition, a6 as KodaXToolUseBlock, H as KodaXReasoningRequest } from './types-chunks/types.d-CSmF0t0n.js';
|
|
7
|
+
export { K as KodaXAssuranceIntent, c as KodaXContentBlock, f as KodaXExecutionMode, g as KodaXExecutionPattern, m as KodaXMutationSurface, q as KodaXProviderConfig, y as KodaXProviderStreamOptions, B as KodaXReasoningCapability, F as KodaXReasoningMode, I as KodaXRedactedThinkingBlock, L as KodaXRiskLevel, N as KodaXStreamResult, O as KodaXTaskActionability, P as KodaXTaskBudgetOverrides, Q as KodaXTaskComplexity, R as KodaXTaskFamily, S as KodaXTaskResultMetadata, T as KodaXTaskResultSource, U as KodaXTaskRoutingDecision, V as KodaXTaskType, W as KodaXTaskWorkIntent, X as KodaXTextBlock, Y as KodaXThinkingBlock, Z as KodaXThinkingBudgetMap, _ as KodaXThinkingDepth, a0 as KodaXTokenUsage, a2 as KodaXToolResultBlock } from './types-chunks/types.d-CSmF0t0n.js';
|
|
8
|
+
import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-DPrYxRjF.js';
|
|
9
|
+
export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-DPrYxRjF.js';
|
|
10
10
|
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult, c as CapabilitySearchFailure, d as CapabilitySearchFreshness, e as CapabilitySearchOptions, f as CapabilitySearchSnapshot } from './types-chunks/capability.d-K664nHOS.js';
|
|
11
11
|
import { ChildProcess } from 'node:child_process';
|
|
12
|
-
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-
|
|
13
|
-
export { M as MessageMode } from './types-chunks/types.d-
|
|
14
|
-
import { K as KodaXBaseProvider } from './types-chunks/base.d-
|
|
12
|
+
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-DEctY20M.js';
|
|
13
|
+
export { M as MessageMode } from './types-chunks/types.d-DEctY20M.js';
|
|
14
|
+
import { K as KodaXBaseProvider } from './types-chunks/base.d-ChvpaKjZ.js';
|
|
15
15
|
import { R as ResolvedSkillSource } from './types-chunks/types.d-DCQVBqVn.js';
|
|
16
16
|
export { I as ISkillRegistry, a as IVariableResolver, S as Skill, b as SkillArtifact, c as SkillContext, d as SkillDynamicContextExecutor, e as SkillFile, f as SkillFrontmatter, g as SkillHook, h as SkillHooks, i as SkillMetadata, j as SkillPathsConfig, k as SkillResult, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-DCQVBqVn.js';
|
|
17
17
|
import { e as LearningActionDriver, n as LearningQuery, m as LearningPage, b as LearnedCapabilityRecord, p as LearningSurfaceSnapshot, j as LearningEvent, o as LearningSubscribeOptions, i as LearningClientRecord } from './types-chunks/center-types.d-BBT122uJ.js';
|
|
@@ -21,7 +21,8 @@ export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilit
|
|
|
21
21
|
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo, d as OAuthLoginConsent, P as PerformOAuthLoginOptions, e as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, f as createMcpTransport, g as discoverAuthorizationServerMetadata, h as discoverOAuthEndpoints, i as discoverProtectedResourceMetadata, j as extractInsufficientScope, k as extractResourceMetadataUrl, l as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-Bgb4rdLN.js';
|
|
22
22
|
export { createMcpTestServerFixture } from './sdk-mcp.js';
|
|
23
23
|
export { DiscoveryResult, ExecutionMode, ExecutionOptions, SkillExecutor, SkillExpansionResult, SkillRegistry, VariableResolver, clearPluginSkillPaths, createExecutor, createResolver, discoverSkills, discoverSkillsWithMonorepo, executeSkill, expandSkillForLLM, formatSkillActivationMessage, getNestedSkillPaths, getSkillRegistry, initializeSkillRegistry, listPluginSkillPaths, loadFullSkill, loadSkillFileContent, loadSkillMetadata, parseArguments, parseSkillMarkdown, registerPluginSkillPath, resetSkillRegistry, resolveSkillContent, unregisterPluginSkillPath } from './sdk-skills.js';
|
|
24
|
-
export {
|
|
24
|
+
export { K as KodaXSessionHistoryHit, a as KodaXSessionHistoryReadOptions, b as KodaXSessionHistoryReadResult, c as KodaXSessionHistoryScope, d as KodaXSessionHistorySearchOptions, e as KodaXSessionHistorySearchResult, f as KodaXSessionHistorySource, r as readSessionHistoryEntry, s as searchSessionHistory } from './types-chunks/history-retrieval.d-BKTJIrVd.js';
|
|
25
|
+
export { M as ManagedRunClassification, a as ManagedRunHooks, b as ManagedWorkflowRun, c as ManagedWorkflowSnapshot, d as ManagedWorkflowStatus, S as StartManagedRunInput, W as WorkflowProcessMetadata, e as WorkflowRunManager, f as createWorkflowRunManager, g as getDefaultWorkflowRunManager } from './types-chunks/run-manager.d-B9fEIjZk.js';
|
|
25
26
|
|
|
26
27
|
declare const CONTEXT_SAFETY_FLOOR_TOKENS = 2048;
|
|
27
28
|
declare const CONTEXT_SAFETY_RATIO = 0.03;
|
|
@@ -693,28 +694,18 @@ declare function _resetMessageQueueForTests(): void;
|
|
|
693
694
|
* interrupts the agent loop; background-priority messages
|
|
694
695
|
* (subagent task-notifications) wait for the next safe boundary.
|
|
695
696
|
*
|
|
696
|
-
* **
|
|
697
|
-
*
|
|
698
|
-
*
|
|
699
|
-
*
|
|
700
|
-
*
|
|
701
|
-
*
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
*
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* but the set is empty so the gate is currently a no-op.
|
|
709
|
-
*/
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Tools that gate background-priority drain. Empty under FEATURE_155
|
|
713
|
-
* idle-yield (v0.7.39+) — see file header. Adding an entry should
|
|
714
|
-
* remain a deliberate decision: only tools that semantically
|
|
715
|
-
* represent the agent yielding control should unlock background
|
|
716
|
-
* priority, because background drain can interleave subagent
|
|
717
|
-
* results into the main conversation in unexpected places.
|
|
697
|
+
* **FEATURE_273 v0.7.74 — mailbox-yield gate.** Ordinary tools drain
|
|
698
|
+
* user-priority traffic between LLM turns: real user prompts and urgent
|
|
699
|
+
* Actor follow-ups retain distinct delivery modes. An explicit
|
|
700
|
+
* `wait_agent` call widens the next safe-boundary drain to background
|
|
701
|
+
* priority so Agent messages and completion envelopes are delivered
|
|
702
|
+
* without exposing Actor progress events to the model.
|
|
703
|
+
*/
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Tools that gate background-priority drain. Only tools that
|
|
707
|
+
* semantically yield for mailbox evidence belong here; ordinary tools
|
|
708
|
+
* must not interleave background Agent results into the next request.
|
|
718
709
|
*/
|
|
719
710
|
declare const YIELD_TOOL_NAMES: ReadonlySet<string>;
|
|
720
711
|
interface MaybeDrainMidTurnInput {
|
|
@@ -729,15 +720,14 @@ interface MaybeDrainMidTurnInput {
|
|
|
729
720
|
* Returns the priority ceiling that mid-turn drain should use given the
|
|
730
721
|
* tools the agent invoked in the most recent iteration.
|
|
731
722
|
*
|
|
732
|
-
*
|
|
733
|
-
*
|
|
734
|
-
*
|
|
735
|
-
* the no-tool-calls exit, not by the mid-turn drain.
|
|
723
|
+
* FEATURE_273 widens to `'background'` only after `wait_agent`.
|
|
724
|
+
* Otherwise background messages remain for idle-yield or a later
|
|
725
|
+
* explicit wait boundary.
|
|
736
726
|
*/
|
|
737
727
|
declare function midTurnDrainPriority(lastTurnToolNames: readonly string[]): MessagePriority;
|
|
738
728
|
/**
|
|
739
729
|
* Drain queued messages destined for `agentId` (main-thread by default)
|
|
740
|
-
* up to the priority ceiling decided by
|
|
730
|
+
* up to the priority ceiling decided by yield gating. Returns the drained
|
|
741
731
|
* messages in `dequeue` order (priority-first FIFO).
|
|
742
732
|
*/
|
|
743
733
|
declare function maybeDrainMidTurn(input: MaybeDrainMidTurnInput): QueuedMessage[];
|
|
@@ -1109,7 +1099,7 @@ type EnvelopeAggregateEnforcer = (fragments: readonly string[], context?: Envelo
|
|
|
1109
1099
|
* Post-FEATURE_159: fragments are partitioned by `msg.mode`. Two
|
|
1110
1100
|
* separate messages may be emitted:
|
|
1111
1101
|
* 1. Synthetic banner (`_synthetic: true`) — concatenates
|
|
1112
|
-
* `task-notification` + `system-reminder` content. Hidden from
|
|
1102
|
+
* `agent-message` + `task-notification` + `system-reminder` content. Hidden from
|
|
1113
1103
|
* REPL display; the agent sees it as context. Spliced FIRST so it
|
|
1114
1104
|
* reads as the "tail of the prior turn" before the new prompt.
|
|
1115
1105
|
* 2. Real user message (no `_synthetic`) — concatenates `prompt`
|
|
@@ -1126,7 +1116,7 @@ type EnvelopeAggregateEnforcer = (fragments: readonly string[], context?: Envelo
|
|
|
1126
1116
|
* `readonly KodaXMessage[]` (possibly empty). Callers must spread the
|
|
1127
1117
|
* result into their next-iteration input.
|
|
1128
1118
|
*/
|
|
1129
|
-
declare function composeIdleYieldUserMessage(wakeEvent: WakeEvent, drainBackgroundQueue: () => readonly QueuedMessage[], enforceAggregate?: EnvelopeAggregateEnforcer, onUserPrompts?: (prompts: readonly string[]) => void, resolveTurnId?: () => string | undefined, priorMessages?: readonly KodaXMessage[]): Promise<readonly KodaXMessage[]>;
|
|
1119
|
+
declare function composeIdleYieldUserMessage(wakeEvent: WakeEvent, drainBackgroundQueue: () => readonly QueuedMessage[], enforceAggregate?: EnvelopeAggregateEnforcer, onUserPrompts?: (prompts: readonly string[], queuedMessageIds: readonly string[]) => void, resolveTurnId?: () => string | undefined, priorMessages?: readonly KodaXMessage[]): Promise<readonly KodaXMessage[]>;
|
|
1130
1120
|
|
|
1131
1121
|
/**
|
|
1132
1122
|
* Generic outer loop for async fan-out + idle-yield resume.
|
|
@@ -1232,7 +1222,7 @@ interface RunWithIdleYieldOptions<TRunResult extends RunWithIdleYieldRunResult>
|
|
|
1232
1222
|
* for a sub-agent reaches the agent (it answers) but never appears in the
|
|
1233
1223
|
* transcript. Coding wires this to the same `onMidTurnUserMessages` UI sink.
|
|
1234
1224
|
*/
|
|
1235
|
-
readonly onResumedUserPrompts?: (contents: readonly string[]) => void;
|
|
1225
|
+
readonly onResumedUserPrompts?: (contents: readonly string[], queuedMessageIds: readonly string[]) => void;
|
|
1236
1226
|
/**
|
|
1237
1227
|
* Optional attribution hook for real user prompts spliced during an
|
|
1238
1228
|
* idle-yield resume. The agent layer stays transport-agnostic; callers that
|
|
@@ -2576,6 +2566,17 @@ declare function appendMemoryClientNotice(lineage: KodaXSessionLineage, input: {
|
|
|
2576
2566
|
readonly createdAt: string;
|
|
2577
2567
|
}): KodaXSessionLineage;
|
|
2578
2568
|
|
|
2569
|
+
interface PersistCompactedSessionHistoryInput {
|
|
2570
|
+
readonly storage: KodaXSessionStorage;
|
|
2571
|
+
readonly sessionId: string;
|
|
2572
|
+
readonly compactedMessages: readonly KodaXMessage[];
|
|
2573
|
+
readonly update: CompactionUpdate;
|
|
2574
|
+
/** Explicit metadata used only when a new Session compacts before its first routine snapshot. */
|
|
2575
|
+
readonly initialSessionData?: Omit<KodaXSessionData, 'messages' | 'lineage'>;
|
|
2576
|
+
}
|
|
2577
|
+
/** Persist one exact root compaction transaction before its replacement is used. */
|
|
2578
|
+
declare function persistCompactedSessionHistory(input: PersistCompactedSessionHistoryInput): Promise<KodaXSessionLineage>;
|
|
2579
|
+
|
|
2579
2580
|
/**
|
|
2580
2581
|
* FEATURE_192 v0.7.44 — goal-entry helpers for session lineage.
|
|
2581
2582
|
*
|
|
@@ -2632,6 +2633,38 @@ declare function appendGoalEntry(lineage: KodaXSessionLineage, goal: KodaXGoalSt
|
|
|
2632
2633
|
*/
|
|
2633
2634
|
declare function isGoalEntry(entry: KodaXSessionEntry): entry is KodaXSessionGoalEntry;
|
|
2634
2635
|
|
|
2636
|
+
declare const DEFAULT_COMPACTION_TRIGGER_PERCENT = 75;
|
|
2637
|
+
declare const MIN_COMPACTION_TRIGGER_PERCENT = 15;
|
|
2638
|
+
declare const MAX_COMPACTION_TRIGGER_PERCENT = 90;
|
|
2639
|
+
declare const COMPACTION_PROTECTION_RATIO = 0.2;
|
|
2640
|
+
type CompactionTriggerSource = 'percentage' | 'absolute' | 'physical_capacity';
|
|
2641
|
+
interface ResolvedCompactionPolicy {
|
|
2642
|
+
readonly config: CompactionConfig;
|
|
2643
|
+
readonly percentageTriggerTokens: number;
|
|
2644
|
+
readonly absoluteTriggerTokens?: number;
|
|
2645
|
+
readonly physicalCapacityTokens: number;
|
|
2646
|
+
readonly triggerTokens: number;
|
|
2647
|
+
readonly protectionTokens: number;
|
|
2648
|
+
readonly triggerSource: CompactionTriggerSource;
|
|
2649
|
+
}
|
|
2650
|
+
/** Normalize every public large-compaction entry to one always-on policy. */
|
|
2651
|
+
declare function normalizeCompactionConfig(input: Partial<CompactionConfig>): CompactionConfig;
|
|
2652
|
+
/** Resolve token budgets after provider capacity/reserve is known. */
|
|
2653
|
+
declare function resolveCompactionPolicy(input: Partial<CompactionConfig>, contextWindow: number, physicalCapacityTokens?: number): ResolvedCompactionPolicy;
|
|
2654
|
+
|
|
2655
|
+
interface UserQueryLedgerEntry {
|
|
2656
|
+
readonly queryId: string;
|
|
2657
|
+
readonly messageId: string;
|
|
2658
|
+
readonly turnId: string;
|
|
2659
|
+
readonly order: number;
|
|
2660
|
+
readonly text: string;
|
|
2661
|
+
readonly supersedesQueryId?: string;
|
|
2662
|
+
}
|
|
2663
|
+
declare function collectUserQueryLedger(messages: readonly KodaXMessage[], startOrder?: number): UserQueryLedgerEntry[];
|
|
2664
|
+
declare function mergeUserQueryLedger(existing: readonly UserQueryLedgerEntry[], messages: readonly KodaXMessage[]): UserQueryLedgerEntry[];
|
|
2665
|
+
declare function renderUserQueryLedger(entries: readonly UserQueryLedgerEntry[]): string;
|
|
2666
|
+
declare function parseUserQueryLedger(content: string): UserQueryLedgerEntry[];
|
|
2667
|
+
|
|
2635
2668
|
/**
|
|
2636
2669
|
* ../../index.js Compaction Utils
|
|
2637
2670
|
*
|
|
@@ -2717,6 +2750,13 @@ interface KodaXCompactionPromptSnapshot {
|
|
|
2717
2750
|
sections: KodaXCompactionPromptSection[];
|
|
2718
2751
|
hash: string;
|
|
2719
2752
|
}
|
|
2753
|
+
interface CompactionCacheContext {
|
|
2754
|
+
readonly tools: readonly KodaXToolDefinition[];
|
|
2755
|
+
readonly reasoning?: boolean | KodaXReasoningRequest;
|
|
2756
|
+
/** Raw tail already present in the cached prefix but excluded from this summary. */
|
|
2757
|
+
readonly protectedTailMessageCount?: number;
|
|
2758
|
+
}
|
|
2759
|
+
declare function buildCompactionCacheInstruction(promptSnapshot: KodaXCompactionPromptSnapshot, protectedTailMessageCount?: number): string;
|
|
2720
2760
|
declare function buildCompactionPromptSnapshot(args: {
|
|
2721
2761
|
messages: KodaXMessage[];
|
|
2722
2762
|
details: CompactionDetails;
|
|
@@ -2737,13 +2777,13 @@ declare function buildCompactionPromptSnapshot(args: {
|
|
|
2737
2777
|
*/
|
|
2738
2778
|
updateSummaryPrompt?: string;
|
|
2739
2779
|
}): KodaXCompactionPromptSnapshot;
|
|
2740
|
-
declare function generateSummary(messages: KodaXMessage[], provider: KodaXBaseProvider, details: CompactionDetails, customInstructions?: string, systemPrompt?: string, previousSummary?: string, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string): Promise<string>;
|
|
2780
|
+
declare function generateSummary(messages: KodaXMessage[], provider: KodaXBaseProvider, details: CompactionDetails, customInstructions?: string, systemPrompt?: string, previousSummary?: string, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string, cacheContext?: CompactionCacheContext): Promise<string>;
|
|
2741
2781
|
|
|
2742
2782
|
/**
|
|
2743
2783
|
* ../../index.js Compaction Core
|
|
2744
2784
|
*
|
|
2745
|
-
*
|
|
2746
|
-
*
|
|
2785
|
+
* Full-coverage large compaction with deterministic recent-context and
|
|
2786
|
+
* user-query preservation.
|
|
2747
2787
|
*/
|
|
2748
2788
|
|
|
2749
2789
|
/**
|
|
@@ -2760,6 +2800,7 @@ declare const PROTECTED_TOOL_NAMES: ReadonlySet<string>;
|
|
|
2760
2800
|
* drift from the producer side.
|
|
2761
2801
|
*/
|
|
2762
2802
|
declare const COMPACTION_SUMMARY_PREFIX = "[\u5BF9\u8BDD\u5386\u53F2\u6458\u8981]\n\n";
|
|
2803
|
+
declare const COMPACTED_HISTORY_RECOVERY_GUIDANCE = "\n\n## Exact history recovery\nThis checkpoint is a semantic summary, not an exact transcript. If a later\nrequest depends on an omitted historical detail, do not guess. When available,\nuse session_history_search to find cited entries, then session_history_read to\nread only the required exact evidence.";
|
|
2763
2804
|
/**
|
|
2764
2805
|
* FEATURE_181 (v0.7.42): detect LLM "I have no content to summarize" output.
|
|
2765
2806
|
*
|
|
@@ -2778,7 +2819,7 @@ declare const COMPACTION_SUMMARY_PREFIX = "[\u5BF9\u8BDD\u5386\u53F2\u6458\u8981
|
|
|
2778
2819
|
*/
|
|
2779
2820
|
declare function isEmptyLikeSummary(summary: string): boolean;
|
|
2780
2821
|
declare function needsCompaction(messages: KodaXMessage[], config: CompactionConfig, contextWindow?: number, tokenCountOverride?: number, reservedResponseTokens?: number): boolean;
|
|
2781
|
-
declare function compact(messages: KodaXMessage[], config: CompactionConfig, provider: KodaXBaseProvider, contextWindow?: number, customInstructions?: string, systemPrompt?: string, tokenCountOverride?: number, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string, force?: boolean, reservedResponseTokens?: number): Promise<CompactionResult>;
|
|
2822
|
+
declare function compact(messages: KodaXMessage[], config: CompactionConfig, provider: KodaXBaseProvider, contextWindow?: number, customInstructions?: string, systemPrompt?: string, tokenCountOverride?: number, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string, force?: boolean, reservedResponseTokens?: number, cacheContext?: CompactionCacheContext): Promise<CompactionResult>;
|
|
2782
2823
|
|
|
2783
2824
|
/**
|
|
2784
2825
|
* KodaX Microcompaction - Explicit legacy context cleanup
|
|
@@ -2978,12 +3019,8 @@ declare function createExtensionStore(namespaceId: string): KodaXExtensionStore;
|
|
|
2978
3019
|
* output reserve, and shared safety margin against the model window. A
|
|
2979
3020
|
* trigger below 100 remains an explicit early-compaction opt-in.
|
|
2980
3021
|
*
|
|
2981
|
-
*
|
|
2982
|
-
*
|
|
2983
|
-
* helper already returns `false` when the config is disabled. The
|
|
2984
|
-
* double-gate matches the pre-FEATURE_100 baseline byte-for-byte —
|
|
2985
|
-
* removing the redundancy is a P3.6 cleanup concern, not a P3.4
|
|
2986
|
-
* extraction concern.
|
|
3022
|
+
* Since FEATURE_272 automatic large compaction is always enabled. The legacy
|
|
3023
|
+
* `enabled` field remains source-compatible but cannot short-circuit pressure.
|
|
2987
3024
|
*
|
|
2988
3025
|
* Migration history:
|
|
2989
3026
|
* - extracted from `agent.ts:598-600` — pre-FEATURE_100 baseline —
|
|
@@ -3021,9 +3058,9 @@ declare function shouldCompact(input: ShouldCompactInput): boolean;
|
|
|
3021
3058
|
* token overflow during summarization, etc.) so the run can continue
|
|
3022
3059
|
* instead of hard-failing.
|
|
3023
3060
|
*
|
|
3024
|
-
* Strategy:
|
|
3025
|
-
*
|
|
3026
|
-
*
|
|
3061
|
+
* Strategy: first materialize a synthetic recovery checkpoint containing the
|
|
3062
|
+
* prior summary and an exact user-query ledger, then drop the oldest remaining
|
|
3063
|
+
* atomic blocks until the shared effective trigger is met.
|
|
3027
3064
|
* Three invariants are load-bearing:
|
|
3028
3065
|
*
|
|
3029
3066
|
* 1. **Summary preservation** — if the very first message is a
|
|
@@ -3080,12 +3117,18 @@ declare function shouldCompact(input: ShouldCompactInput): boolean;
|
|
|
3080
3117
|
* lifecycle, which is session-lineage's domain.
|
|
3081
3118
|
*/
|
|
3082
3119
|
|
|
3120
|
+
/** Request capacity that is not represented by the message array itself. */
|
|
3121
|
+
interface GracefulCompactionCapacity {
|
|
3122
|
+
/** System prompt and tool-definition tokens outside `messages`. */
|
|
3123
|
+
readonly fixedOverheadTokens?: number;
|
|
3124
|
+
/** Provider output tokens reserved from the context window. */
|
|
3125
|
+
readonly reservedResponseTokens?: number;
|
|
3126
|
+
}
|
|
3083
3127
|
/**
|
|
3084
|
-
* Graceful compact degradation:
|
|
3085
|
-
*
|
|
3086
|
-
* Preserves summary messages, message structure integrity, and recent context.
|
|
3128
|
+
* Graceful compact degradation: protect an exact user-query checkpoint, then
|
|
3129
|
+
* drop oldest atomic blocks until the shared effective trigger is met.
|
|
3087
3130
|
*/
|
|
3088
|
-
declare function gracefulCompactDegradation(messages: KodaXMessage[], contextWindow: number, config: CompactionConfig): KodaXMessage[];
|
|
3131
|
+
declare function gracefulCompactDegradation(messages: KodaXMessage[], contextWindow: number, config: CompactionConfig, capacity?: GracefulCompactionCapacity): KodaXMessage[];
|
|
3089
3132
|
|
|
3090
3133
|
/**
|
|
3091
3134
|
* Effective context-window resolver — CAP-056
|
|
@@ -3309,6 +3352,8 @@ declare class AgentActorController {
|
|
|
3309
3352
|
private readonly actors;
|
|
3310
3353
|
private readonly turns;
|
|
3311
3354
|
private readonly mailboxes;
|
|
3355
|
+
private readonly acknowledgedCompletionTurnIds;
|
|
3356
|
+
private readonly pendingRootCompletionTurnIds;
|
|
3312
3357
|
private readonly eventsLog;
|
|
3313
3358
|
private readonly abortControllers;
|
|
3314
3359
|
private readonly waiters;
|
|
@@ -3331,6 +3376,7 @@ declare class AgentActorController {
|
|
|
3331
3376
|
protocolOwnerSignal(ownerPath: string): AbortSignal;
|
|
3332
3377
|
spawn(callerPath: string, input: AgentSpawnInput): Promise<AgentTurnRef>;
|
|
3333
3378
|
send(callerPath: string, targetPath: string, content: string, classification?: AgentDataClassification, forwardedMessageId?: string): Promise<AgentMailboxMessage>;
|
|
3379
|
+
acknowledgeCompletions(callerPath: string, turnIds: readonly string[]): Promise<number>;
|
|
3334
3380
|
followup(callerPath: string, targetPath: string, objective: string, metadata?: Readonly<Record<string, AgentMetadataValue>>, options?: AgentMutationOptions): Promise<AgentFollowupResult>;
|
|
3335
3381
|
interrupt(callerPath: string, targetPath: string, reason?: string, scope?: AgentInterruptScope): Promise<void>;
|
|
3336
3382
|
close(callerPath: string, targetPath: string, reason?: string): Promise<void>;
|
|
@@ -3340,6 +3386,7 @@ declare class AgentActorController {
|
|
|
3340
3386
|
get(callerPath: string, targetPath: string): AgentDetail;
|
|
3341
3387
|
output(callerPath: string, targetPath: string, turnId?: string): AgentOutput;
|
|
3342
3388
|
eventSnapshot(callerPath: string, afterSequence?: number): readonly AgentEvent[];
|
|
3389
|
+
private isAcknowledgedDirectChildTerminal;
|
|
3343
3390
|
wait(callerPath: string, afterSequence?: number, timeoutMs?: number, signal?: AbortSignal): Promise<AgentEvent | undefined>;
|
|
3344
3391
|
private prepareSpawn;
|
|
3345
3392
|
private prepareExistingTurn;
|
|
@@ -3373,6 +3420,7 @@ declare class AgentActorController {
|
|
|
3373
3420
|
private mutate;
|
|
3374
3421
|
private snapshot;
|
|
3375
3422
|
private restore;
|
|
3423
|
+
private republishUnacknowledgedRootCompletions;
|
|
3376
3424
|
private recoverUnmatchedTurns;
|
|
3377
3425
|
private notify;
|
|
3378
3426
|
private publishCommittedEvent;
|
|
@@ -3417,5 +3465,5 @@ declare class AgentTurnScheduler {
|
|
|
3417
3465
|
restore(turnIds: readonly string[]): void;
|
|
3418
3466
|
}
|
|
3419
3467
|
|
|
3420
|
-
export { Agent, AgentActorClient, AgentActorController, AgentActorStore, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentBudgetPort, AgentCancellationUncertainError, AgentCapabilities, AgentControlError, AgentDataClassification, AgentDetail, AgentEvent, AgentExecutionKind, AgentExecutionResult, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentFollowupResult, AgentInterruptScope, AgentLimitReached, AgentLimitReachedError, AgentMailboxMessage, AgentManifest, AgentMessage, AgentMetadataValue, AgentMutationOptions, AgentOutput, AgentRevisionConflictError, AgentSpawnInput, AgentStartUncertainError, AgentTreeSnapshot, AgentTurnExecutor, AgentTurnRef, AgentTurnScheduler, CAPABILITY_CACHE_FILENAME, COMPACTION_SUMMARY_PREFIX, CONTEXT_SAFETY_FLOOR_TOKENS, CONTEXT_SAFETY_RATIO, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, CompactionConfig, CompactionDetails, CompactionResult, ConsoleTracingProcessor, ContextCapacityError, CreateAgentExecutorPlaneOptions, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, ELECTRON_NODE_ENV_SCRUB_IMPORT, ELECTRON_RUN_AS_NODE_ENV, EnqueueInput, ExternalAgentProtocol, ExternalAgentRegistrationConflictError, FileExtensionStore, FileLearningCenterService, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, ImageResizeError, InstanceDiscoveryFs, InvariantId, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXFileInputArtifact, KodaXGoalEventType, KodaXGoalState, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXMediaError, KodaXMemoryOutcomeDigest, KodaXMessage, KodaXSessionArtifactLedgerEntry, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, LearnedAreaStore, LearnedCapabilityRecord, LearningActionDriver, LearningClientRecord, LearningEvent, LearningPage, LearningQuery, LearningSubscribeOptions, LearningSurfaceSnapshot, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, MEMORY_POLICY_VERSION, ManifestPatch, MemoryActionProposal, MemoryApplicability, MemoryApplyResult, MemoryBodySnapshot, MemoryContextIdentity, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEpisodeReviewResult, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryLifecycleOperationResult, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewPlan, MemoryReviewRunner, MessagePriority, MessageQueue, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedInputArtifact, QueuedInputArtifactError, QueuedMessage, ResolvedSkillSource, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowOutcome, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, addTracingProcessor, appendGoalEntry, appendMemoryClientNotice, appendMemoryOutcomeDigest, appendMemoryReviewReceipt, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, buildWorkflowOutcome, calculateContextSafetyMargin, calculateMaxContextInputTokens, canMarkCreatedByAgent, cleanupRegisteredManagedChildren, clearCapabilityCache, compact, completeEpisodeReview, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createAgentActorController, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLearningCenterService, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, detectHandoffSignal, detectIdleYield, drainPendingEpisodeReviews, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueWithArtifacts, eventFromCapability, evidenceTrail, exceedsContextCapacity, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, generateSummary, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getLearnedExtensionToolName, getMessageQueue, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, isLearnedExtensionCommandAllowed, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listPendingEpisodeReviews, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, microcompact, midTurnDrainPriority, needsCompaction, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, persistImageAsBlock, persistPendingEpisodeReview, prepareInternalNodeLaunch, projectLearningProposals, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveContextWindow, resolveEffectiveInvariants, resolveLearnedAreaPaths, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveScopedMemoryRoot, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, rewindPendingEpisodeReviews, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent };
|
|
3421
|
-
export type { AdmissionMetricsSnapshot, AgentControlErrorCode, AgentControllerOptions, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLearningCenterServiceOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, EpisodeReviewDrainEligibility, EpisodeReviewDrainOptions, EpisodeReviewDrainResult, EpisodeReviewReceipt, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, HandoffSignal, IdleYieldSnapshot, InternalNodeLaunch, InvokeLlmJudgeOptions, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearnedAreaPaths, LearningCandidate, LearningCenterService, LearningIntakeRecordResult, LearningProposalProjection, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PendingEpisodeReview, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, PrepareInternalNodeLaunchOptions, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, ReferenceAgentExecutorFactoryOptions, RenderOptions, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RunFanOutOptions, RunFanOutResult, RunRestrictedWorkflowScriptOptions, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, SkillConsumerImpact, SkillConsumerImpactScanInput, SkillGovernanceAction, SkillGovernanceDecision, SkillGovernanceInput, SkillGovernanceMode, SkillLearningApplyInput, SkillLearningProposal, SkillMutationApplyResult, SkillMutationChange, SkillOwnership, SkillSnapshotLocation, SkillTrustLedgerReadResult, SkillTrustRecord, SkillTrustState, SkillTrustUpdateInput, SkillTrustUpdateResult, SkillUsageEvent, SkillUsageEventInput, SkillUsageLedgerReadResult, SkillUsageRecord, SkillUsageRecordResult, SkillWriteOrigin, StoredLearningApplyPlan, StoredLearningApprovalResult, StoredLearningProposal, StoredSkillLearningApplyPlan, TeamModeBootstrapOptions, TeamModeHandle, TraceOnlyLearningReport, TracingProcessor, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
|
|
3468
|
+
export { Agent, AgentActorClient, AgentActorController, AgentActorStore, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentBudgetPort, AgentCancellationUncertainError, AgentCapabilities, AgentControlError, AgentDataClassification, AgentDetail, AgentEvent, AgentExecutionKind, AgentExecutionResult, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentFollowupResult, AgentInterruptScope, AgentLimitReached, AgentLimitReachedError, AgentMailboxMessage, AgentManifest, AgentMessage, AgentMetadataValue, AgentMutationOptions, AgentOutput, AgentRevisionConflictError, AgentSpawnInput, AgentStartUncertainError, AgentTreeSnapshot, AgentTurnExecutor, AgentTurnRef, AgentTurnScheduler, CAPABILITY_CACHE_FILENAME, COMPACTED_HISTORY_RECOVERY_GUIDANCE, COMPACTION_PROTECTION_RATIO, COMPACTION_SUMMARY_PREFIX, CONTEXT_SAFETY_FLOOR_TOKENS, CONTEXT_SAFETY_RATIO, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, CompactionConfig, CompactionDetails, CompactionResult, CompactionUpdate, ConsoleTracingProcessor, ContextCapacityError, CreateAgentExecutorPlaneOptions, DEFAULT_COMPACTION_TRIGGER_PERCENT, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, ELECTRON_NODE_ENV_SCRUB_IMPORT, ELECTRON_RUN_AS_NODE_ENV, EnqueueInput, ExternalAgentProtocol, ExternalAgentRegistrationConflictError, FileExtensionStore, FileLearningCenterService, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, ImageResizeError, InstanceDiscoveryFs, InvariantId, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXFileInputArtifact, KodaXGoalEventType, KodaXGoalState, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXMediaError, KodaXMemoryOutcomeDigest, KodaXMessage, KodaXReasoningRequest, KodaXSessionArtifactLedgerEntry, KodaXSessionData, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXSessionStorage, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, LearnedAreaStore, LearnedCapabilityRecord, LearningActionDriver, LearningClientRecord, LearningEvent, LearningPage, LearningQuery, LearningSubscribeOptions, LearningSurfaceSnapshot, MAX_COMPACTION_TRIGGER_PERCENT, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, MEMORY_POLICY_VERSION, MIN_COMPACTION_TRIGGER_PERCENT, ManifestPatch, MemoryActionProposal, MemoryApplicability, MemoryApplyResult, MemoryBodySnapshot, MemoryContextIdentity, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEpisodeReviewResult, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryLifecycleOperationResult, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewPlan, MemoryReviewRunner, MessagePriority, MessageQueue, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedInputArtifact, QueuedInputArtifactError, QueuedMessage, ResolvedSkillSource, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowOutcome, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, addTracingProcessor, appendGoalEntry, appendMemoryClientNotice, appendMemoryOutcomeDigest, appendMemoryReviewReceipt, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionCacheInstruction, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, buildWorkflowOutcome, calculateContextSafetyMargin, calculateMaxContextInputTokens, canMarkCreatedByAgent, cleanupRegisteredManagedChildren, clearCapabilityCache, collectUserQueryLedger, compact, completeEpisodeReview, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createAgentActorController, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLearningCenterService, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, detectHandoffSignal, detectIdleYield, drainPendingEpisodeReviews, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueWithArtifacts, eventFromCapability, evidenceTrail, exceedsContextCapacity, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, generateSummary, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getLearnedExtensionToolName, getMessageQueue, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, isLearnedExtensionCommandAllowed, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listPendingEpisodeReviews, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, mergeUserQueryLedger, microcompact, midTurnDrainPriority, needsCompaction, normalizeCompactionConfig, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, parseUserQueryLedger, persistCompactedSessionHistory, persistImageAsBlock, persistPendingEpisodeReview, prepareInternalNodeLaunch, projectLearningProposals, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, renderUserQueryLedger, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveCompactionPolicy, resolveContextWindow, resolveEffectiveInvariants, resolveLearnedAreaPaths, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveScopedMemoryRoot, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, rewindPendingEpisodeReviews, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent };
|
|
3469
|
+
export type { AdmissionMetricsSnapshot, AgentControlErrorCode, AgentControllerOptions, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompactionCacheContext, CompactionTriggerSource, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLearningCenterServiceOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, EpisodeReviewDrainEligibility, EpisodeReviewDrainOptions, EpisodeReviewDrainResult, EpisodeReviewReceipt, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, GracefulCompactionCapacity, HandoffSignal, IdleYieldSnapshot, InternalNodeLaunch, InvokeLlmJudgeOptions, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearnedAreaPaths, LearningCandidate, LearningCenterService, LearningIntakeRecordResult, LearningProposalProjection, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PendingEpisodeReview, PersistCompactedSessionHistoryInput, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, PrepareInternalNodeLaunchOptions, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, ReferenceAgentExecutorFactoryOptions, RenderOptions, ResolvedCompactionPolicy, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RunFanOutOptions, RunFanOutResult, RunRestrictedWorkflowScriptOptions, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, SkillConsumerImpact, SkillConsumerImpactScanInput, SkillGovernanceAction, SkillGovernanceDecision, SkillGovernanceInput, SkillGovernanceMode, SkillLearningApplyInput, SkillLearningProposal, SkillMutationApplyResult, SkillMutationChange, SkillOwnership, SkillSnapshotLocation, SkillTrustLedgerReadResult, SkillTrustRecord, SkillTrustState, SkillTrustUpdateInput, SkillTrustUpdateResult, SkillUsageEvent, SkillUsageEventInput, SkillUsageLedgerReadResult, SkillUsageRecord, SkillUsageRecordResult, SkillWriteOrigin, StoredLearningApplyPlan, StoredLearningApprovalResult, StoredLearningProposal, StoredSkillLearningApplyPlan, TeamModeBootstrapOptions, TeamModeHandle, TraceOnlyLearningReport, TracingProcessor, UserQueryLedgerEntry, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
|
package/dist/sdk-agent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$ as Jo,$a as Pr,$b as Rf,$c as Rm,$d as Rp,A as xo,Aa as ar,Ab as kf,Ac as km,Ad as kp,B as ao,Ba as br,Bb as lf,Bc as lm,Bd as lp,C as bo,Ca as kr,Cb as nf,Cc as nm,Cd as np,D as co,Da as lr,Db as qf,Dc as qm,Dd as qp,E as go,Ea as nr,Eb as sf,Ec as sm,Ed as sp,F as ho,Fa as qr,Fb as uf,Fc as um,Fd as up,G as io,Ga as sr,Gb as vf,Gc as vm,Gd as vp,H as jo,Ha as ur,Hb as wf,Hc as wm,Hd as wp,I as ko,Ia as vr,Ib as yf,Ic as ym,Id as yp,J as lo,Ja as wr,Jb as zf,Jc as zm,Jd as zp,K as no,Ka as yr,Kb as Af,Kc as Am,Kd as Ap,L as qo,La as zr,Lb as Bf,Lc as Bm,Ld as Bp,M as so,Ma as Ar,Mb as Cf,Mc as Cm,Md as Cp,N as uo,Na as Br,Nb as Df,Nc as Dm,Nd as Dp,O as vo,Oa as Cr,Ob as Ef,Oc as Em,Od as Ep,P as wo,Pa as Dr,Pb as Ff,Pc as Fm,Pd as Fp,Q as yo,Qa as Er,Qb as Gf,Qc as Gm,Qd as Gp,R as zo,Ra as Fr,Rb as Hf,Rc as Hm,Rd as Hp,S as Ao,Sa as Gr,Sb as If,Sc as Im,Sd as Ip,T as Bo,Ta as Hr,Tb as Jf,Tc as Jm,Td as Jp,U as Co,Ua as Ir,Ub as Kf,Uc as Km,Ud as Kp,V as Do,Va as Jr,Vb as Lf,Vc as Lm,Vd as Lp,W as Eo,Wa as Kr,Wb as Mf,Wc as Mm,Wd as Mp,X as Fo,Xa as Lr,Xb as Nf,Xc as Nm,Xd as Np,Y as Go,Ya as Mr,Yb as Of,Yc as Om,Yd as Op,Z as Ho,Za as Nr,Zb as Pf,Zc as Pm,Zd as Pp,_ as Io,_a as Or,_b as Qf,_c as Qm,_d as Qp,a as G,aa as Ko,ab as Qr,ac as Sf,ad as Sm,ae as Sp,b as H,ba as Lo,bb as Rr,bc as Tf,bd as Tm,be as Tp,c as I,ca as Mo,cb as Sr,cc as Uf,cd as Um,ce as Up,d as J,da as No,db as Tr,dc as Vf,dd as Vm,de as Vp,e as K,ea as Oo,eb as Ur,ec as Wf,ed as Wm,ee as Wp,f as L,fa as Po,fb as Vr,fc as Xf,fd as Xm,fe as Xp,g as M,ga as Qo,gb as Wr,gc as Yf,gd as Ym,ge as Yp,h as N,ha as Ro,hb as Xr,hc as Zf,hd as Zm,he as Zp,i as O,ia as So,ib as Yr,ic as _f,id as _m,ie as _p,j as P,ja as To,jb as Zr,jc as $f,jd as $m,je as $p,k as Q,ka as Uo,kb as _r,kc as om,kd as op,ke as ot,l as R,la as Vo,lb as $r,lc as rm,ld as rp,le as rt,m as S,ma as Wo,mb as oe,mc as em,md as ep,me as et,n as T,na as Xo,nb as re,nc as fm,nd as fp,ne as ft,o as U,oa as Yo,ob as ee,oc as mm,od as mp,p as V,pa as Zo,pb as fe,pc as pm,pd as pp,q as W,qa as _o,qb as me,qc as tm,qd as tp,r as X,ra as $o,rb as pe,rc as xm,rd as xp,s as $,sa as or,sb as te,sc as am,sd as ap,t as oo,ta as rr,tb as xe,tc as bm,td as bp,u as ro,ua as er,ub as ae,uc as cm,ud as cp,v as eo,va as fr,vb as be,vc as dm,vd as dp,w as fo,wa as mr,wb as ce,wc as gm,wd as gp,x as mo,xa as pr,xb as de,xc as hm,xd as hp,y as po,ya as tr,yb as hf,yc as im,yd as ip,z as to,za as xr,zb as jf,zc as jm,zd as jp}from"./chunks/chunk-JSDLBXME.js";import{$ as $e,A as De,B as Ee,C as Fe,D as Ge,E as He,F as Ie,G as Je,K as Ke,L as Le,M as Me,N as Ne,O as Oe,P as Pe,Q as Qe,R as Re,S as Se,T as Te,U as Ue,V as Ve,W as We,X as Xe,Y as Ye,Z as Ze,_ as _e,a as Y,aa as of,b as Z,ba as rf,c as _,ca as ef,d as cr,da as ff,e as dr,ea as mf,f as gr,fa as pf,g as hr,ga as tf,h as ir,ha as xf,i as jr,ia as af,j as ge,ja as bf,k as he,ka as cf,l as ie,la as df,m as je,ma as gf,n as ke,o as le,p as ne,q as qe,r as se,s as ue,t as ve,u as we,v as ye,w as ze,x as Ae,y as Be,z as Ce}from"./chunks/chunk-E27LHEIP.js";import{A,B,C,D,E,F,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s,v as u,w as v,x as w,y,z}from"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.js";import"./chunks/chunk-ONUPGMER.js";export{Mr as ASK_USER_BACK_SIGNAL,Nr as ASK_USER_CUSTOM_INPUT_SIGNAL,et as AgentActorController,_p as AgentBudgetExhaustedError,Vp as AgentCancellationUncertainError,ot as AgentControlError,Zp as AgentLimitReachedError,$p as AgentRevisionConflictError,Up as AgentStartUncertainError,rt as AgentTurnScheduler,kr as CAPABILITY_CACHE_FILENAME,ep as COMPACTION_SUMMARY_PREFIX,S as CONTEXT_SAFETY_FLOOR_TOKENS,T as CONTEXT_SAFETY_RATIO,ar as CORE_INVARIANTS,jo as ConsoleTracingProcessor,U as ContextCapacityError,ip as DEFAULT_CONTEXT_WINDOW,Yr as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,tp as DEFAULT_MICROCOMPACTION_CONFIG,ym as DEFAULT_POST_COMPACT_CONFIG,Zm as DEFAULT_SUMMARY_PROMPT,Co as DEFAULT_SYSTEM_CAP,_m as DEFAULT_UPDATE_SUMMARY_PROMPT,eo as DefaultSummaryCompaction,Ar as ELECTRON_NODE_ENV_SCRUB_IMPORT,zr as ELECTRON_RUN_AS_NODE_ENV,Wp as ExternalAgentRegistrationConflictError,cp as FileExtensionStore,Pf as FileLearningCenterService,ko as FileTracingProcessor,Qo as GuardrailBlockedError,Ro as GuardrailEscalateError,wr as HARDENED_ENV_VARS,yr as HARDENING_OPT_OUT_ENV,r as ImageResizeError,Io as InvariantSession,O as KODAX_API_MIN_INTERVAL,H as KODAX_DEFAULT_TIMEOUT,n as KODAX_FILE_MEDIA_TYPES,I as KODAX_HARD_TIMEOUT,k as KODAX_IMAGE_MEDIA_TYPES,L as KODAX_MAX_INCOMPLETE_RETRIES,M as KODAX_MAX_MAXTOKENS_RETRIES,J as KODAX_MAX_RETRIES,G as KODAX_MAX_TOKENS,K as KODAX_RETRY_BASE_DELAY,N as KODAX_STAGGER_DELAY,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,im as LINEAGE_ENTRY_TYPES,Mf as LearnedAreaStore,Ff as LearningCapabilityError,km as LineageCompaction,jm as LineageExtension,x as MAX_DIMENSION,Ce as MAX_ENTRYPOINT_BYTES,Be as MAX_ENTRYPOINT_LINES,lf as MAX_SKILL_MD_BYTES,nf as MAX_SKILL_SUPPORT_FILE_BYTES,Ko as MAX_TOOL_LOOP_ITERATIONS,je as MEMORY_POLICY_VERSION,_f as McpAuthRequiredError,cm as McpCapabilityProvider,Zf as McpExpiredSessionError,dm as McpManager,bm as McpServerRuntime,xf as MemoryControlPlane,u as MessageQueue,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,wm as POST_COMPACT_MAX_TOKENS_PER_FILE,vm as POST_COMPACT_TOKEN_BUDGET,P as PROMISE_PATTERN,rp as PROTECTED_TOOL_NAMES,Sr as QueuedInputArtifactError,fr as Runner,Ze as SkillExecutor,Ve as SkillRegistry,fo as SpanImpl,a as TARGET_RAW_SIZE_BYTES,ho as Tracer,Se as VariableResolver,Fp as WORKFLOW_CAPSULE_API_VERSION,Dp as WORKFLOW_CAPSULE_FORMAT,Ep as WORKFLOW_CAPSULE_VERSION,up as WORKFLOW_PATTERN_IDS,Kp as WorkflowAbortError,Mp as WorkflowBudgetError,lp as WorkflowEventRecorder,Lp as WorkflowLimitError,zp as WorkflowScriptExecutionError,Np as WorkflowTaskFailedError,C as YIELD_TOOL_NAMES,bo as _emitSpanEnd,ao as _emitSpanStart,co as _emitTraceEnd,xo as _getRegisteredProcessors,B as _resetActiveRootQueueRoutesForTests,Ao as _resetAdmissionMetrics,Ho as _resetAdmittedAgentBindings,vo as _resetInvariantRegistry,w as _resetMessageQueueForTests,rr as _resetPresetDispatchers,y as actorQueueId,po as addTracingProcessor,Sm as appendGoalEntry,qm as appendMemoryClientNotice,lm as appendMemoryOutcomeDigest,nm as appendMemoryReviewReceipt,Hm as appendSessionLineageLabel,Jm as applyLineageTruncation,lo as applyManifestPatch,Br as applyProcessHardening,Im as applySessionCompaction,sf as applySkillLearningProposal,uf as approveStoredLearningProposal,Pm as archiveOldIslands,Pr as asSingleSelection,Hf as assertLearnedCapabilityTransition,yp as assertRestrictedWorkflowQuality,_o as attachRunnerRecoveryTranscript,pe as bootstrapTeamMode,Oo as buildAssistantMessageFromLlmResult,$m as buildCompactionPromptSnapshot,Bm as buildFileContentMessages,am as buildInitializeCapabilities,re as buildOtherInstancesPromptBlock,zm as buildPostCompactAttachments,bp as buildRecoverySeed,Nm as buildSessionTree,er as buildSystemPrompt,Po as buildToolResultMessage,Jp as buildWorkflowCapsuleIntent,kp as buildWorkflowOutcome,V as calculateContextSafetyMargin,X as calculateMaxContextInputTokens,jf as canMarkCreatedByAgent,Gf as canTransitionLearnedCapability,xe as cleanupIncompleteToolCalls,Lr as cleanupRegisteredManagedChildren,ur as clearCapabilityCache,He as clearPluginSkillPaths,So as collectGuardrails,pp as compact,cf as completeEpisodeReview,Xr as composeIdleYieldUserMessage,no as composePatches,Df as computeSkillConsumerImpact,Om as countActiveLineageMessages,Ur as countLastAssistantToolCalls,R as countTokens,$ as createAgent,ft as createAgentActorController,Xp as createAgentExecutorPlane,_e as createExecutor,dp as createExtensionStore,p as createFileArtifactFromPath,oo as createHandoff,m as createImageArtifactFromPath,ro as createInMemorySession,Jo as createInvariantSessionForAgent,Qf as createLearningCenterService,de as createLlmJudgedStopHook,Uf as createMcpCapabilityId,gm as createMcpManager,hm as createMcpTestServerFixture,$f as createMcpTransport,Tp as createMemoryAgentExecutorPlaneStore,tf as createMemoryControlPlane,Yp as createReferenceAgentExecutorFactory,Te as createResolver,Cp as createRestrictedWorkflowModule,Cm as createSessionLineage,$r as createStateWriter,mo as createTrace,t as createVideoArtifactFromPath,Hp as createWorkflowCapsule,Ip as createWorkflowModuleFromCapsule,sp as createWorkflowProcessTracker,Rp as createWorkflowRunManager,Pp as createWorkflowRuntime,kf as decideSkillGovernance,Tf as defaultMcpCacheDir,io as defaultTracer,Xo as detectHandoffSignal,Vr as detectIdleYield,Do as detectInstructionsInjection,fm as discoverAuthorizationServerMetadata,oe as discoverInstances,mm as discoverOAuthEndpoints,em as discoverProtectedResourceMetadata,Oe as discoverSkills,Qe as discoverSkillsWithMonorepo,gf as drainPendingEpisodeReviews,ae as editDistance,Zo as emitHandoffSpan,Z as emitKodaXDiagnostic,F as enqueueWithArtifacts,Q as estimateTokens,Nf as eventFromCapability,pr as evidenceTrail,W as exceedsContextCapacity,No as executeRunnerToolCall,$e as executeSkill,of as expandSkillForLLM,Wm as extractArtifactLedger,mr as extractAssistantTextFromMessage,Um as extractFileOps,rm as extractInsufficientScope,om as extractResourceMetadataUrl,um as extractTitleFromMessages,tr as finalOwner,be as findFuzzyToolMatch,Km as findPreviousUserEntryId,Mm as forkSessionLineage,_ as formatKodaXDiagnostic,rf as formatSkillActivationMessage,sm as generateSessionId,op as generateSummary,fe as getActiveTeamModeWriter,Rr as getActiveUserInteraction,zo as getAdmissionMetricsSnapshot,Go as getAdmittedAgentBindings,dr as getAgentConfigHome,gr as getAgentConfigPath,jr as getAppDataDir,qr as getCachedRejectedEfforts,lr as getCapabilityCacheFile,Ie as getDefaultSkillPaths,Sp as getDefaultWorkflowRunManager,so as getInvariant,Rf as getLearnedExtensionToolName,Yf as getMcpCachePaths,v as getMessageQueue,q as getModelInputCapabilities,Pe as getNestedSkillPaths,Dm as getSessionLineagePath,Em as getSessionMessagesFromLineage,Je as getSkillPathsFlat,We as getSkillRegistry,hp as gracefulCompactDegradation,xr as handoffLegality,le as hashCwd,he as hashMemoryIdentityComponent,e as inferImageMediaType,f as inferVideoMediaType,Xe as initializeSkillRegistry,Am as injectPostCompactAttachments,ce as invokeLlmJudge,Bo as isAdmissionDebugEnabled,Or as isAskUserCustomInputAnswer,ve as isAutoManagedMemoryFile,Er as isChildProcessExited,fp as isEmptyLikeSummary,np as isFinalWorkflowProcessStatus,Tm as isGoalEntry,Tr as isIdleYieldEnabled,Sf as isLearnedExtensionCommandAllowed,hr as isPathInsideDirectory,Lo as isRunnableTool,Mo as isRunnerLlmResult,Ir as killChildProcessTree,Jr as killChildProcessTreeSync,Gr as killPidTree,Hr as killPidTreeSync,Kf as learningEventIdFor,Jf as learningEventKindForLifecycle,wp as lintRestrictedWorkflowSource,bf as listPendingEpisodeReviews,Ge as listPluginSkillPaths,uo as listRegisteredInvariants,nr as loadCapabilityCache,Me as loadFullSkill,Ne as loadSkillFileContent,Le as loadSkillMetadata,xm as loadValidToken,ge as matchesMemoryApplicability,E as maybeDrainMidTurn,ie as memoryApplicabilityFingerprint,Xm as mergeArtifactLedger,Vm as mergeFileOps,xp as microcompact,D as midTurnDrainPriority,mp as needsCompaction,qp as normalizeHostMetadata,Vf as normalizeMcpCapabilityId,b as normalizePastedImage,ap as normalizeRecoveryPrompt,Op as normalizeWorkflowLimits,Re as parseArguments,Wf as parseMcpCapabilityId,ze as parseMemoryFile,ye as parseMemoryType,we as parseMemoryTypeFromFilename,Ae as parseScalarFields,Ke as parseSkillMarkdown,tm as performOAuthLogin,i as persistImageAsBlock,af as persistPendingEpisodeReview,Cr as prepareInternalNodeLaunch,Of as projectLearningProposals,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,Qm as readLatestGoalFromBranch,Rm as readLatestGoalState,ef as readLearningProposalStore,$o as readRunnerRecoveryTranscript,Bf as readSkillTrustLedger,zf as readSkillUsageLedger,Ef as recordCompletedTurnLearning,vf as recordProceduralLearning,sr as recordRejectedEffort,Af as recordSkillUsage,z as registerActiveRootQueueRoute,br as registerCoreInvariants,qo as registerInvariant,Kr as registerManagedChildProcess,pm as registerOAuthClient,Ee as registerPluginSkillPath,or as registerPresetDispatcher,Yo as replaceSystemMessage,vr as resetCapabilityCacheMemoForTesting,Ye as resetSkillRegistry,A as resolveActiveRootQueueRoute,jp as resolveContextWindow,yo as resolveEffectiveInvariants,ir as resolveExecutionPath,Lf as resolveLearnedAreaPaths,mf as resolveLearningProposalStore,se as resolveMemoryEntrypoint,qe as resolveMemoryRoot,wo as resolveRequiredInvariants,ue as resolveScopedMemoryRoot,Fm as resolveSessionLineageTarget,Ue as resolveSkillContent,qf as resolveSkillSnapshotLocation,yf as resolveSkillTrustLedger,wf as resolveSkillUsageLedger,df as rewindPendingEpisodeReviews,Lm as rewindSessionLineage,Eo as runAdmissionAudit,_r as runFanOut,To as runInputGuardrails,Uo as runOutputGuardrails,Bp as runRestrictedWorkflowScript,Wo as runToolAfterGuardrails,Vo as runToolBeforeGuardrails,Zr as runWithIdleYield,Qp as runWorkflow,ke as sanitizeProjectKey,Xf as searchMcpCatalog,Ym as serializeConversation,ee as setActiveTeamModeWriter,Qr as setActiveUserInteraction,Fo as setAdmittedAgentBindings,cr as setAgentConfigHome,Y as setKodaXDiagnosticSink,Gm as setSessionLineageActiveEntry,to as setTracingProcessors,gp as shouldCompact,go as shutdownTracing,If as slugifyLearnedCapabilityName,Dr as stripHardenedEnvVars,hf as triageProceduralLearning,De as truncateEntrypointContent,ne as tryGitRemote,Fe as unregisterPluginSkillPath,me as updateActiveTeamMode,pf as updateLearningProposalStatus,Cf as updateSkillTrustLedger,ff as upsertLearningProposal,te as validateAndFixToolHistory,s as validateInputArtifactsForModel,Ap as validateRestrictedWorkflowSource,Gp as validateWorkflowCapsule,vp as validateWorkflowScriptManifest,Fr as waitForChildProcessExit,Wr as waitForWakeEvent};
|
|
2
|
+
import{$ as Jo,$a as Pr,$b as Rf,$c as Rm,$d as Rp,A as xo,Aa as ar,Ab as kf,Ac as km,Ad as kp,Ae as kt,B as ao,Ba as br,Bb as lf,Bc as lm,Bd as lp,Be as lt,C as bo,Ca as kr,Cb as nf,Cc as nm,Cd as np,Ce as nt,D as co,Da as lr,Db as qf,Dc as qm,Dd as qp,De as qt,E as go,Ea as nr,Eb as sf,Ec as sm,Ed as sp,F as ho,Fa as qr,Fb as uf,Fc as um,Fd as up,G as io,Ga as sr,Gb as vf,Gc as vm,Gd as vp,H as jo,Ha as ur,Hb as wf,Hc as wm,Hd as wp,I as ko,Ia as vr,Ib as yf,Ic as ym,Id as yp,J as lo,Ja as wr,Jb as zf,Jc as zm,Jd as zp,K as no,Ka as yr,Kb as Af,Kc as Am,Kd as Ap,L as qo,La as zr,Lb as Bf,Lc as Bm,Ld as Bp,M as so,Ma as Ar,Mb as Cf,Mc as Cm,Md as Cp,N as uo,Na as Br,Nb as Df,Nc as Dm,Nd as Dp,O as vo,Oa as Cr,Ob as Ef,Oc as Em,Od as Ep,P as wo,Pa as Dr,Pb as Ff,Pc as Fm,Pd as Fp,Q as yo,Qa as Er,Qb as Gf,Qc as Gm,Qd as Gp,R as zo,Ra as Fr,Rb as Hf,Rc as Hm,Rd as Hp,S as Ao,Sa as Gr,Sb as If,Sc as Im,Sd as Ip,T as Bo,Ta as Hr,Tb as Jf,Tc as Jm,Td as Jp,U as Co,Ua as Ir,Ub as Kf,Uc as Km,Ud as Kp,V as Do,Va as Jr,Vb as Lf,Vc as Lm,Vd as Lp,W as Eo,Wa as Kr,Wb as Mf,Wc as Mm,Wd as Mp,X as Fo,Xa as Lr,Xb as Nf,Xc as Nm,Xd as Np,Y as Go,Ya as Mr,Yb as Of,Yc as Om,Yd as Op,Z as Ho,Za as Nr,Zb as Pf,Zc as Pm,Zd as Pp,_ as Io,_a as Or,_b as Qf,_c as Qm,_d as Qp,a as G,aa as Ko,ab as Qr,ac as Sf,ad as Sm,ae as Sp,b as H,ba as Lo,bb as Rr,bc as Tf,bd as Tm,be as Tp,c as I,ca as Mo,cb as Sr,cc as Uf,cd as Um,ce as Up,d as J,da as No,db as Tr,dc as Vf,dd as Vm,de as Vp,e as K,ea as Oo,eb as Ur,ec as Wf,ed as Wm,ee as Wp,f as L,fa as Po,fb as Vr,fc as Xf,fd as Xm,fe as Xp,g as M,ga as Qo,gb as Wr,gc as Yf,gd as Ym,ge as Yp,h as N,ha as Ro,hb as Xr,hc as Zf,hd as Zm,he as Zp,i as O,ia as So,ib as Yr,ic as _f,id as _m,ie as _p,j as P,ja as To,jb as Zr,jc as $f,jd as $m,je as $p,k as Q,ka as Uo,kb as _r,kc as om,kd as op,ke as ot,l as R,la as Vo,lb as $r,lc as rm,ld as rp,le as rt,m as S,ma as Wo,mb as oe,mc as em,md as ep,me as et,n as T,na as Xo,nb as re,nc as fm,nd as fp,ne as ft,o as U,oa as Yo,ob as ee,oc as mm,od as mp,oe as mt,p as V,pa as Zo,pb as fe,pc as pm,pd as pp,pe as pt,q as W,qa as _o,qb as me,qc as tm,qd as tp,qe as tt,r as X,ra as $o,rb as pe,rc as xm,rd as xp,re as xt,s as $,sa as or,sb as te,sc as am,sd as ap,se as at,t as oo,ta as rr,tb as xe,tc as bm,td as bp,te as bt,u as ro,ua as er,ub as ae,uc as cm,ud as cp,ue as ct,v as eo,va as fr,vb as be,vc as dm,vd as dp,ve as dt,w as fo,wa as mr,wb as ce,wc as gm,wd as gp,we as gt,x as mo,xa as pr,xb as de,xc as hm,xd as hp,xe as ht,y as po,ya as tr,yb as hf,yc as im,yd as ip,ye as it,z as to,za as xr,zb as jf,zc as jm,zd as jp,ze as jt}from"./chunks/chunk-UJS7JAO6.js";import{$ as $e,A as De,B as Ee,C as Fe,D as Ge,E as He,F as Ie,G as Je,K as Ke,L as Le,M as Me,N as Ne,O as Oe,P as Pe,Q as Qe,R as Re,S as Se,T as Te,U as Ue,V as Ve,W as We,X as Xe,Y as Ye,Z as Ze,_ as _e,a as Y,aa as of,b as Z,ba as rf,c as _,ca as ef,d as cr,da as ff,e as dr,ea as mf,f as gr,fa as pf,g as hr,ga as tf,h as ir,ha as xf,i as jr,ia as af,j as ge,ja as bf,k as he,ka as cf,l as ie,la as df,m as je,ma as gf,n as ke,o as le,p as ne,q as qe,r as se,s as ue,t as ve,u as we,v as ye,w as ze,x as Ae,y as Be,z as Ce}from"./chunks/chunk-GAFFYJU3.js";import{A,B,C,D,E,F,a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n,t as q,u as s,v as u,w as v,x as w,y,z}from"./chunks/chunk-PP53SIIL.js";import"./chunks/chunk-F7AIEHSS.js";import"./chunks/chunk-ONUPGMER.js";export{Mr as ASK_USER_BACK_SIGNAL,Nr as ASK_USER_CUSTOM_INPUT_SIGNAL,nt as AgentActorController,it as AgentBudgetExhaustedError,bt as AgentCancellationUncertainError,kt as AgentControlError,ht as AgentLimitReachedError,jt as AgentRevisionConflictError,at as AgentStartUncertainError,lt as AgentTurnScheduler,kr as CAPABILITY_CACHE_FILENAME,Sm as COMPACTED_HISTORY_RECOVERY_GUIDANCE,Jm as COMPACTION_PROTECTION_RATIO,Rm as COMPACTION_SUMMARY_PREFIX,S as CONTEXT_SAFETY_FLOOR_TOKENS,T as CONTEXT_SAFETY_RATIO,ar as CORE_INVARIANTS,jo as ConsoleTracingProcessor,U as ContextCapacityError,Gm as DEFAULT_COMPACTION_TRIGGER_PERCENT,Ep as DEFAULT_CONTEXT_WINDOW,Yr as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,vp as DEFAULT_MICROCOMPACTION_CONFIG,Ym as DEFAULT_POST_COMPACT_CONFIG,Bm as DEFAULT_SUMMARY_PROMPT,Co as DEFAULT_SYSTEM_CAP,Cm as DEFAULT_UPDATE_SUMMARY_PROMPT,eo as DefaultSummaryCompaction,Ar as ELECTRON_NODE_ENV_SCRUB_IMPORT,zr as ELECTRON_RUN_AS_NODE_ENV,ct as ExternalAgentRegistrationConflictError,Ap as FileExtensionStore,Pf as FileLearningCenterService,ko as FileTracingProcessor,Qo as GuardrailBlockedError,Ro as GuardrailEscalateError,wr as HARDENED_ENV_VARS,yr as HARDENING_OPT_OUT_ENV,r as ImageResizeError,Io as InvariantSession,O as KODAX_API_MIN_INTERVAL,H as KODAX_DEFAULT_TIMEOUT,n as KODAX_FILE_MEDIA_TYPES,I as KODAX_HARD_TIMEOUT,k as KODAX_IMAGE_MEDIA_TYPES,L as KODAX_MAX_INCOMPLETE_RETRIES,M as KODAX_MAX_MAXTOKENS_RETRIES,J as KODAX_MAX_RETRIES,G as KODAX_MAX_TOKENS,K as KODAX_RETRY_BASE_DELAY,N as KODAX_STAGGER_DELAY,l as KODAX_VIDEO_MEDIA_TYPES,o as KodaXMediaError,im as LINEAGE_ENTRY_TYPES,Mf as LearnedAreaStore,Ff as LearningCapabilityError,km as LineageCompaction,jm as LineageExtension,Im as MAX_COMPACTION_TRIGGER_PERCENT,x as MAX_DIMENSION,Ce as MAX_ENTRYPOINT_BYTES,Be as MAX_ENTRYPOINT_LINES,lf as MAX_SKILL_MD_BYTES,nf as MAX_SKILL_SUPPORT_FILE_BYTES,Ko as MAX_TOOL_LOOP_ITERATIONS,je as MEMORY_POLICY_VERSION,Hm as MIN_COMPACTION_TRIGGER_PERCENT,_f as McpAuthRequiredError,cm as McpCapabilityProvider,Zf as McpExpiredSessionError,dm as McpManager,bm as McpServerRuntime,xf as MemoryControlPlane,u as MessageQueue,g as PASTE_TMP_DIR_ENV,h as PASTE_TMP_TTL_MS,Xm as POST_COMPACT_MAX_TOKENS_PER_FILE,Wm as POST_COMPACT_TOKEN_BUDGET,P as PROMISE_PATTERN,Qm as PROTECTED_TOOL_NAMES,Sr as QueuedInputArtifactError,fr as Runner,Ze as SkillExecutor,Ve as SkillRegistry,fo as SpanImpl,a as TARGET_RAW_SIZE_BYTES,ho as Tracer,Se as VariableResolver,Vp as WORKFLOW_CAPSULE_API_VERSION,Tp as WORKFLOW_CAPSULE_FORMAT,Up as WORKFLOW_CAPSULE_VERSION,Lp as WORKFLOW_PATTERN_IDS,_p as WorkflowAbortError,ot as WorkflowBudgetError,Hp as WorkflowEventRecorder,$p as WorkflowLimitError,Pp as WorkflowScriptExecutionError,rt as WorkflowTaskFailedError,C as YIELD_TOOL_NAMES,bo as _emitSpanEnd,ao as _emitSpanStart,co as _emitTraceEnd,xo as _getRegisteredProcessors,B as _resetActiveRootQueueRoutesForTests,Ao as _resetAdmissionMetrics,Ho as _resetAdmittedAgentBindings,vo as _resetInvariantRegistry,w as _resetMessageQueueForTests,rr as _resetPresetDispatchers,y as actorQueueId,po as addTracingProcessor,sp as appendGoalEntry,qm as appendMemoryClientNotice,lm as appendMemoryOutcomeDigest,nm as appendMemoryReviewReceipt,pp as appendSessionLineageLabel,xp as applyLineageTruncation,lo as applyManifestPatch,Br as applyProcessHardening,tp as applySessionCompaction,sf as applySkillLearningProposal,uf as approveStoredLearningProposal,ip as archiveOldIslands,Pr as asSingleSelection,Hf as assertLearnedCapabilityTransition,Op as assertRestrictedWorkflowQuality,_o as attachRunnerRecoveryTranscript,pe as bootstrapTeamMode,Oo as buildAssistantMessageFromLlmResult,Dm as buildCompactionCacheInstruction,Em as buildCompactionPromptSnapshot,$m as buildFileContentMessages,am as buildInitializeCapabilities,re as buildOtherInstancesPromptBlock,Zm as buildPostCompactAttachments,zp as buildRecoverySeed,gp as buildSessionTree,er as buildSystemPrompt,Po as buildToolResultMessage,Zp as buildWorkflowCapsuleIntent,Gp as buildWorkflowOutcome,V as calculateContextSafetyMargin,X as calculateMaxContextInputTokens,jf as canMarkCreatedByAgent,Gf as canTransitionLearnedCapability,xe as cleanupIncompleteToolCalls,Lr as cleanupRegisteredManagedChildren,ur as clearCapabilityCache,He as clearPluginSkillPaths,So as collectGuardrails,Mm as collectUserQueryLedger,Vm as compact,cf as completeEpisodeReview,Xr as composeIdleYieldUserMessage,no as composePatches,Df as computeSkillConsumerImpact,hp as countActiveLineageMessages,Ur as countLastAssistantToolCalls,R as countTokens,$ as createAgent,qt as createAgentActorController,dt as createAgentExecutorPlane,_e as createExecutor,Bp as createExtensionStore,p as createFileArtifactFromPath,oo as createHandoff,m as createImageArtifactFromPath,ro as createInMemorySession,Jo as createInvariantSessionForAgent,Qf as createLearningCenterService,de as createLlmJudgedStopHook,Uf as createMcpCapabilityId,gm as createMcpManager,hm as createMcpTestServerFixture,$f as createMcpTransport,xt as createMemoryAgentExecutorPlaneStore,tf as createMemoryControlPlane,gt as createReferenceAgentExecutorFactory,Te as createResolver,Sp as createRestrictedWorkflowModule,op as createSessionLineage,$r as createStateWriter,mo as createTrace,t as createVideoArtifactFromPath,Xp as createWorkflowCapsule,Yp as createWorkflowModuleFromCapsule,Kp as createWorkflowProcessTracker,pt as createWorkflowRunManager,ft as createWorkflowRuntime,kf as decideSkillGovernance,Tf as defaultMcpCacheDir,io as defaultTracer,Xo as detectHandoffSignal,Vr as detectIdleYield,Do as detectInstructionsInjection,fm as discoverAuthorizationServerMetadata,oe as discoverInstances,mm as discoverOAuthEndpoints,em as discoverProtectedResourceMetadata,Oe as discoverSkills,Qe as discoverSkillsWithMonorepo,gf as drainPendingEpisodeReviews,ae as editDistance,Zo as emitHandoffSpan,Z as emitKodaXDiagnostic,F as enqueueWithArtifacts,Q as estimateTokens,Nf as eventFromCapability,ap as evictOldIslandMessageContent,pr as evidenceTrail,W as exceedsContextCapacity,No as executeRunnerToolCall,$e as executeSkill,of as expandSkillForLLM,ym as extractArtifactLedger,mr as extractAssistantTextFromMessage,vm as extractFileOps,rm as extractInsufficientScope,om as extractResourceMetadataUrl,um as extractTitleFromMessages,tr as finalOwner,be as findFuzzyToolMatch,bp as findPreviousUserEntryId,dp as forkSessionLineage,_ as formatKodaXDiagnostic,rf as formatSkillActivationMessage,sm as generateSessionId,Fm as generateSummary,fe as getActiveTeamModeWriter,Rr as getActiveUserInteraction,zo as getAdmissionMetricsSnapshot,Go as getAdmittedAgentBindings,dr as getAgentConfigHome,gr as getAgentConfigPath,jr as getAppDataDir,qr as getCachedRejectedEfforts,lr as getCapabilityCacheFile,Ie as getDefaultSkillPaths,tt as getDefaultWorkflowRunManager,so as getInvariant,Rf as getLearnedExtensionToolName,Yf as getMcpCachePaths,v as getMessageQueue,q as getModelInputCapabilities,Pe as getNestedSkillPaths,rp as getSessionLineagePath,ep as getSessionMessagesFromLineage,Je as getSkillPathsFlat,We as getSkillRegistry,Dp as gracefulCompactDegradation,xr as handoffLegality,le as hashCwd,he as hashMemoryIdentityComponent,e as inferImageMediaType,f as inferVideoMediaType,Xe as initializeSkillRegistry,_m as injectPostCompactAttachments,ce as invokeLlmJudge,Bo as isAdmissionDebugEnabled,Or as isAskUserCustomInputAnswer,ve as isAutoManagedMemoryFile,Er as isChildProcessExited,Tm as isEmptyLikeSummary,Ip as isFinalWorkflowProcessStatus,up as isGoalEntry,Tr as isIdleYieldEnabled,Sf as isLearnedExtensionCommandAllowed,hr as isPathInsideDirectory,Lo as isRunnableTool,Mo as isRunnerLlmResult,Ir as killChildProcessTree,Jr as killChildProcessTreeSync,Gr as killPidTree,Hr as killPidTreeSync,Kf as learningEventIdFor,Jf as learningEventKindForLifecycle,Np as lintRestrictedWorkflowSource,bf as listPendingEpisodeReviews,Ge as listPluginSkillPaths,uo as listRegisteredInvariants,nr as loadCapabilityCache,Me as loadFullSkill,Ne as loadSkillFileContent,Le as loadSkillMetadata,xm as loadValidToken,ge as matchesMemoryApplicability,E as maybeDrainMidTurn,ie as memoryApplicabilityFingerprint,zm as mergeArtifactLedger,wm as mergeFileOps,Nm as mergeUserQueryLedger,wp as microcompact,D as midTurnDrainPriority,Um as needsCompaction,Km as normalizeCompactionConfig,Jp as normalizeHostMetadata,Vf as normalizeMcpCapabilityId,b as normalizePastedImage,yp as normalizeRecoveryPrompt,et as normalizeWorkflowLimits,Re as parseArguments,Wf as parseMcpCapabilityId,ze as parseMemoryFile,ye as parseMemoryType,we as parseMemoryTypeFromFilename,Ae as parseScalarFields,Ke as parseSkillMarkdown,Pm as parseUserQueryLedger,tm as performOAuthLogin,lp as persistCompactedSessionHistory,i as persistImageAsBlock,af as persistPendingEpisodeReview,Cr as prepareInternalNodeLaunch,Of as projectLearningProposals,j as prunePasteTmpDir,d as readAndNormalizeClipboardImage,c as readClipboardImage,np as readLatestGoalFromBranch,qp as readLatestGoalState,ef as readLearningProposalStore,$o as readRunnerRecoveryTranscript,kp as readSessionHistoryEntry,Bf as readSkillTrustLedger,zf as readSkillUsageLedger,Ef as recordCompletedTurnLearning,vf as recordProceduralLearning,sr as recordRejectedEffort,Af as recordSkillUsage,z as registerActiveRootQueueRoute,br as registerCoreInvariants,qo as registerInvariant,Kr as registerManagedChildProcess,pm as registerOAuthClient,Ee as registerPluginSkillPath,or as registerPresetDispatcher,Om as renderUserQueryLedger,Yo as replaceSystemMessage,vr as resetCapabilityCacheMemoForTesting,Ye as resetSkillRegistry,A as resolveActiveRootQueueRoute,Lm as resolveCompactionPolicy,Fp as resolveContextWindow,yo as resolveEffectiveInvariants,ir as resolveExecutionPath,Lf as resolveLearnedAreaPaths,mf as resolveLearningProposalStore,se as resolveMemoryEntrypoint,qe as resolveMemoryRoot,wo as resolveRequiredInvariants,ue as resolveScopedMemoryRoot,fp as resolveSessionLineageTarget,Ue as resolveSkillContent,qf as resolveSkillSnapshotLocation,yf as resolveSkillTrustLedger,wf as resolveSkillUsageLedger,df as rewindPendingEpisodeReviews,cp as rewindSessionLineage,Eo as runAdmissionAudit,_r as runFanOut,To as runInputGuardrails,Uo as runOutputGuardrails,Rp as runRestrictedWorkflowScript,Wo as runToolAfterGuardrails,Vo as runToolBeforeGuardrails,Zr as runWithIdleYield,mt as runWorkflow,ke as sanitizeProjectKey,Xf as searchMcpCatalog,jp as searchSessionHistory,Am as serializeConversation,ee as setActiveTeamModeWriter,Qr as setActiveUserInteraction,Fo as setAdmittedAgentBindings,cr as setAgentConfigHome,Y as setKodaXDiagnosticSink,mp as setSessionLineageActiveEntry,to as setTracingProcessors,Cp as shouldCompact,go as shutdownTracing,If as slugifyLearnedCapabilityName,Dr as stripHardenedEnvVars,hf as triageProceduralLearning,De as truncateEntrypointContent,ne as tryGitRemote,Fe as unregisterPluginSkillPath,me as updateActiveTeamMode,pf as updateLearningProposalStatus,Cf as updateSkillTrustLedger,ff as upsertLearningProposal,te as validateAndFixToolHistory,s as validateInputArtifactsForModel,Qp as validateRestrictedWorkflowSource,Wp as validateWorkflowCapsule,Mp as validateWorkflowScriptManifest,Fr as waitForChildProcessExit,Wr as waitForWakeEvent};
|