@kodax-ai/kodax 0.7.77 → 0.7.79

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.
Files changed (133) hide show
  1. package/CHANGELOG.md +3651 -3201
  2. package/README.md +317 -110
  3. package/README_CN.md +255 -91
  4. package/config-templates/config.example.jsonc +124 -32
  5. package/config-templates/integrations/a2a.example.jsonc +23 -7
  6. package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +2 -1
  7. package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +1 -0
  8. package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +4 -3
  9. package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +1 -0
  10. package/dist/builtin/skill-creator/scripts/compare-runs.js +4 -3
  11. package/dist/builtin/skill-creator/scripts/generate-review.js +2 -1
  12. package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +1 -0
  13. package/dist/builtin/skill-creator/scripts/grade-evals.js +4 -3
  14. package/dist/builtin/skill-creator/scripts/improve-description.js +2 -1
  15. package/dist/builtin/skill-creator/scripts/init-skill.d.ts +1 -0
  16. package/dist/builtin/skill-creator/scripts/init-skill.js +4 -3
  17. package/dist/builtin/skill-creator/scripts/install-skill.d.ts +1 -0
  18. package/dist/builtin/skill-creator/scripts/install-skill.js +4 -3
  19. package/dist/builtin/skill-creator/scripts/package-skill.d.ts +1 -0
  20. package/dist/builtin/skill-creator/scripts/package-skill.js +4 -3
  21. package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +1 -0
  22. package/dist/builtin/skill-creator/scripts/quick-validate.js +4 -3
  23. package/dist/builtin/skill-creator/scripts/run-eval.d.ts +1 -0
  24. package/dist/builtin/skill-creator/scripts/run-eval.js +4 -3
  25. package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
  26. package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +2 -1
  27. package/dist/builtin/skill-creator/scripts/utils.d.ts +3 -0
  28. package/dist/builtin/skill-creator/scripts/utils.js +5 -1
  29. package/dist/chunks/agent-V4AC5JZD.js +2 -0
  30. package/dist/chunks/argument-completer-ZPC2MLES.js +2 -0
  31. package/dist/chunks/chunk-5BNQXXGY.js +1 -0
  32. package/dist/chunks/{chunk-EH7AOMJ7.js → chunk-67THZRM6.js} +1 -1
  33. package/dist/chunks/chunk-6GVQDQTQ.js +292 -0
  34. package/dist/chunks/chunk-B6UY3VHV.js +348 -0
  35. package/dist/chunks/{chunk-HORNWBYR.js → chunk-BBOVVDQJ.js} +1 -1
  36. package/dist/chunks/chunk-CR2IF7VF.js +30 -0
  37. package/dist/chunks/{chunk-FNW2XUL5.js → chunk-CXHEZY5G.js} +1 -1
  38. package/dist/chunks/chunk-EDZ4QILG.js +266 -0
  39. package/dist/chunks/chunk-GEECPO2H.js +218 -0
  40. package/dist/chunks/chunk-H5LLM7DB.js +89 -0
  41. package/dist/chunks/chunk-KLWP7POA.js +467 -0
  42. package/dist/chunks/{chunk-XSA37BVM.js → chunk-M4N2JZTZ.js} +2 -2
  43. package/dist/chunks/chunk-OWQT3FTE.js +5 -0
  44. package/dist/chunks/chunk-Q4M7DJOD.js +319 -0
  45. package/dist/chunks/{chunk-3DD4QEBH.js → chunk-QCZLCLFL.js} +10 -10
  46. package/dist/chunks/chunk-RQPMGRTR.js +810 -0
  47. package/dist/chunks/chunk-SG6P4SZS.js +123 -0
  48. package/dist/chunks/chunk-TSTVAU5E.js +386 -0
  49. package/dist/chunks/chunk-ZCZZUE5E.js +662 -0
  50. package/dist/chunks/compaction-config-AEUGVROL.js +2 -0
  51. package/dist/chunks/{construction-bootstrap-RPRL3L7R.js → construction-bootstrap-K3ZGEN5N.js} +1 -1
  52. package/dist/chunks/dist-GFJFRPAV.js +2 -0
  53. package/dist/chunks/{dist-FDSOIR35.js → dist-JMO47GJV.js} +1 -1
  54. package/dist/chunks/host-23K2Q6RZ.js +2 -0
  55. package/dist/chunks/run-manager-PGIR6ITA.js +2 -0
  56. package/dist/chunks/utils-6LEKJPQN.js +2 -0
  57. package/dist/index.d.ts +22 -21
  58. package/dist/index.js +6 -6
  59. package/dist/kodax_bootstrap.js +2 -1
  60. package/dist/kodax_cli.js +2225 -1468
  61. package/dist/kodax_resume.js +570 -34
  62. package/dist/provider-capabilities.json +85 -50
  63. package/dist/runtime-worker.js +2076 -1343
  64. package/dist/sandbox-workspace-session.js +829 -0
  65. package/dist/sdk-a2a.d.ts +24 -18
  66. package/dist/sdk-a2a.js +8 -8
  67. package/dist/sdk-agent.d.ts +315 -168
  68. package/dist/sdk-agent.js +1 -1
  69. package/dist/sdk-coding.d.ts +42 -205
  70. package/dist/sdk-coding.js +1 -1
  71. package/dist/sdk-experimental-memory.d.ts +3 -3
  72. package/dist/sdk-experimental-memory.js +1 -1
  73. package/dist/sdk-llm.d.ts +7 -6
  74. package/dist/sdk-llm.js +1 -1
  75. package/dist/sdk-mcp.d.ts +1 -1
  76. package/dist/sdk-mcp.js +1 -1
  77. package/dist/sdk-media.d.ts +1 -1
  78. package/dist/sdk-media.js +1 -1
  79. package/dist/sdk-repl.d.ts +77 -36
  80. package/dist/sdk-repl.js +2 -2
  81. package/dist/sdk-runtime.d.ts +406 -163
  82. package/dist/sdk-runtime.js +1 -1
  83. package/dist/sdk-sandbox.d.ts +93 -0
  84. package/dist/sdk-sandbox.js +2 -0
  85. package/dist/sdk-session.d.ts +8 -9
  86. package/dist/sdk-session.js +1 -1
  87. package/dist/sdk-skills.d.ts +2 -2
  88. package/dist/sdk-skills.js +1 -1
  89. package/dist/semantic-worker.js +283 -18
  90. package/dist/types-chunks/{base.d-4e74xDdy.d.ts → base.d-DxG0m09Z.d.ts} +1 -1
  91. package/dist/types-chunks/{bash-prefix-extractor.d-pZdu6qt7.d.ts → bash-prefix-extractor.d-CNSidpmv.d.ts} +149 -10
  92. package/dist/types-chunks/{capability-learning.d-CVsdHw4j.d.ts → capability-learning.d-iPSiAmc_.d.ts} +1 -1
  93. package/dist/types-chunks/{capsule.d-CxCm1KZz.d.ts → capsule.d-B3q98pLQ.d.ts} +9 -7
  94. package/dist/types-chunks/{types.d-RdWRfUEs.d.ts → controller.d-RGV7Pjv9.d.ts} +785 -8
  95. package/dist/types-chunks/{guardrail.d-B0PwAZVR.d.ts → guardrail.d-1NLSFTyN.d.ts} +310 -70
  96. package/dist/types-chunks/{history-retrieval.d-B__aEN62.d.ts → history-retrieval.d-BAegI14A.d.ts} +16 -3
  97. package/dist/types-chunks/{integration-config.d-ojG4swOP.d.ts → integration-config.d-BNowXE8k.d.ts} +23 -8
  98. package/dist/types-chunks/{oauth-login.d-Bgb4rdLN.d.ts → oauth-login.d-6i-vidxv.d.ts} +6 -2
  99. package/dist/types-chunks/{public-api.d--fF88JrC.d.ts → public-api.d-BpJhHoa7.d.ts} +366 -28
  100. package/dist/types-chunks/{commands.d-BccESAMV.d.ts → repl.d-CZ12Ow3X.d.ts} +89 -78
  101. package/dist/types-chunks/{side-query.d-5JvXhuOZ.d.ts → resolver.d-C9IW4fmU.d.ts} +7 -67
  102. package/dist/types-chunks/{run-manager.d-B47hIqnI.d.ts → run-manager.d-CX3AUocA.d.ts} +1 -1
  103. package/dist/types-chunks/{sdk-session-CLWf8Adb.d.ts → sdk-session-B3cfJKqF.d.ts} +3 -3
  104. package/dist/types-chunks/side-query.d-CP1LiRiH.d.ts +83 -0
  105. package/dist/types-chunks/{types-LanCEDj8.d.ts → types-Bf3Y3mW-.d.ts} +42 -3
  106. package/dist/types-chunks/{types.d-CODuyyqy.d.ts → types.d-BZ9oXvTV.d.ts} +2 -2
  107. package/dist/types-chunks/{types.d-DCQVBqVn.d.ts → types.d-BbtGlKZu.d.ts} +25 -3
  108. package/dist/types-chunks/{types.d-DCsKM8aT.d.ts → types.d-C0_rn--1.d.ts} +4 -4
  109. package/dist/types-chunks/{types.d-DIpZJKUl.d.ts → types.d-CgrXrFrq.d.ts} +16 -2
  110. package/dist/types-chunks/{utils.d-CDduqbFw.d.ts → utils.d-CGpHavsU.d.ts} +32 -8
  111. package/docs/SDK_EMBEDDER_GUIDE.md +1117 -227
  112. package/package.json +11 -1
  113. package/dist/chunks/agent-NGSWFE73.js +0 -2
  114. package/dist/chunks/argument-completer-WGGZPEEO.js +0 -2
  115. package/dist/chunks/chunk-27QLRH3D.js +0 -5
  116. package/dist/chunks/chunk-2MQPVY6P.js +0 -770
  117. package/dist/chunks/chunk-6WAPVAGQ.js +0 -74
  118. package/dist/chunks/chunk-AOENDSVN.js +0 -448
  119. package/dist/chunks/chunk-FSXI4MAV.js +0 -78
  120. package/dist/chunks/chunk-HV2GMZUZ.js +0 -343
  121. package/dist/chunks/chunk-IQT4RPCE.js +0 -46
  122. package/dist/chunks/chunk-JS2BHGJP.js +0 -158
  123. package/dist/chunks/chunk-OAMKECRG.js +0 -381
  124. package/dist/chunks/chunk-ON2WG2LG.js +0 -622
  125. package/dist/chunks/chunk-RUGAAHTF.js +0 -321
  126. package/dist/chunks/chunk-TGCG7U2W.js +0 -37
  127. package/dist/chunks/compaction-config-BE7VYWH6.js +0 -2
  128. package/dist/chunks/dist-ZZBNVTKU.js +0 -2
  129. package/dist/chunks/host-QAKQVC4A.js +0 -2
  130. package/dist/chunks/run-manager-N4UFWA2D.js +0 -2
  131. package/dist/chunks/utils-AUHCI4D5.js +0 -2
  132. package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +0 -91
  133. package/dist/types-chunks/guardrail.d-CJx9RRd3.d.ts +0 -156
@@ -1,28 +1,25 @@
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, ab as AgentMutationOptions, aD as AgentTurnRef, z as AgentDataClassification, a9 as AgentMetadataValue, $ 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-RdWRfUEs.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-RdWRfUEs.js';
3
- import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-CxCm1KZz.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-CxCm1KZz.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-CJx9RRd3.js';
6
- import { i as KodaXImageBlock, k as KodaXMessage, a1 as KodaXToolDefinition, a6 as KodaXToolUseBlock, H as KodaXReasoningRequest, e as KodaXEphemeralSuffix, a0 as KodaXTokenUsage } from './types-chunks/types.d-DIpZJKUl.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, a2 as KodaXToolResultBlock } from './types-chunks/types.d-DIpZJKUl.js';
8
- import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-CVsdHw4j.js';
9
- export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-CVsdHw4j.js';
1
+ import { ef as Span, eA as Trace, f as Agent, bs as Handoff, e1 as RunnerToolCall, e4 as RunnerToolResult, ae as AgentMessage, ad as AgentManifest, d0 as ManifestPatch, bx as InvariantId, dP as QualityInvariant, bN as KodaXInputArtifactSource, bL as KodaXImageMediaType, cl as KodaXVideoMediaType, bG as KodaXFileInputArtifact, bK as KodaXImageInputArtifact, ck as KodaXVideoInputArtifact, bM as KodaXInputArtifact, b5 as DiscoveredInstance, ed as SessionMeta, ee as SessionStateSnapshot, en as StateWriterFs, bw as InstanceDiscoveryFs, em as StateWriter, ep as StopHookContext, er as StopHookResult, eq as StopHookFn, db as MemoryContextIdentity, dk as MemoryItemRef, c1 as KodaXSessionLineage, bU as KodaXSessionArtifactLedgerEntry, dg as MemoryEvent, dD as MemoryReviewRunner, dc as MemoryController, d1 as MemoryActionProposal, d4 as MemoryApplyResult, dv as MemoryRejectResult, dt as MemoryRefFilter, d9 as MemoryBodySnapshot, dm as MemoryLifecycleOperationResult, dd as MemoryCuratorInput, dj as MemoryGovernanceReport, d7 as MemoryAutoCuratorInput, d8 as MemoryAutoCuratorResult, dq as MemoryPackInput, dn as MemoryPack, dy as MemoryReviewInput, dC as MemoryReviewPlan, bR as KodaXMemoryOutcomeDigest, dz as MemoryReviewModelInput, df as MemoryEpisodeReviewResult, d2 as MemoryApplicability, cJ as LearningActionDriver, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cY as LearningSurfaceSnapshot, cO as LearningEvent, cX as LearningSubscribeOptions, cQ as LearningExplicitUserAuthority, cn as LearnedAreaStore, cy as LearnedCapabilityScope, ca as KodaXSessionStorage, a_ as CompactionUpdate, bY as KodaXSessionData, bI as KodaXGoalState, bH as KodaXGoalEventType, bZ as KodaXSessionEntry, b$ as KodaXSessionGoalEntry, aV as CompactionConfig, aW as CompactionDetails, aY as CompactionResult, bE as KodaXExtensionStore, bF as KodaXExtensionStoreEntry, bO as KodaXJsonValue, fi as WorkflowRunState, eY as WorkflowOutcome, eJ as WorkflowApi, eX as WorkflowModule, eI as WorkflowAgentBackend, eT as WorkflowLimits, eO as WorkflowEvent, eU as WorkflowLogEvent, fo as WorkflowTaskResult, a0 as AgentExecutorPlaneStore, a$ as CreateAgentExecutorPlaneOptions, Y as AgentExecutorPlane, bf as ExternalAgentProtocol, W as AgentExecutorFactory, w as AgentBudgetExhausted, aa as AgentLimitReached } from './types-chunks/controller.d-RGV7Pjv9.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, h as AgentActorClient, i as AgentActorController, j as AgentActorOwner, k as AgentActorSnapshot, l as AgentActorSnapshotV1, m as AgentActorSnapshotV2, n as AgentActorState, o as AgentActorStore, p as AgentArtifactDescriptor, q as AgentArtifactPolicy, r as AgentArtifactPolicyDecision, s as AgentArtifactPolicyInput, t as AgentArtifactReference, u as AgentBudgetAdmission, v as AgentBudgetAdmissionInput, x as AgentBudgetPort, y as AgentCapabilities, z as AgentCapabilityDeclaration, B as AgentCapabilityRequirements, C as AgentContinuationInput, D as AgentControllerHealth, E as AgentControllerOptions, F as AgentCredentialBroker, G as AgentDataClassification, H as AgentDetail, I as AgentDispatchContext, J as AgentDispatchPolicy, K as AgentDispatchPolicyDecision, L as AgentDispatchPolicyInput, M as AgentDispatchabilitySnapshot, N as AgentDispatchabilityStatus, O as AgentEffectDeclaration, P as AgentEvent, Q as AgentEventKind, R as AgentExecutionInput, S as AgentExecutionKind, T as AgentExecutionResult, U as AgentExecutor, V as AgentExecutorEvent, X as AgentExecutorFactoryContext, Z as AgentExecutorPlaneBackgroundErrorContext, _ as AgentExecutorPlaneBackgroundErrorHandler, $ as AgentExecutorPlaneBinding, a1 as AgentExecutorPreflightResult, a2 as AgentExecutorProtocol, a3 as AgentExecutorTaskReference, a4 as AgentExecutorTaskSnapshot, a5 as AgentFollowupResult, a6 as AgentForkTurns, a7 as AgentInterruptScope, a8 as AgentJsonObject, a9 as AgentJsonValue, ab as AgentListEntry, ac as AgentMailboxMessage, af as AgentMetadataValue, ag as AgentMiddlewareDeclaration, ah as AgentMutationOptions, ai as AgentOutput, aj as AgentPreflightInput, ak as AgentPreflightResult, al as AgentProgressItem, am as AgentProgressKind, an as AgentProgressUpdate, ao as AgentReasoningProfile, ap as AgentRegistrationEnabledMutationOptions, aq as AgentRegistrationMutationOptions, ar as AgentRegistrationService, as as AgentSpanData, at as AgentSpawnInput, au as AgentTaskCancellation, av as AgentTaskCorrelation, aw as AgentTaskEvent, ax as AgentTaskFilter, ay as AgentTaskProgress, az as AgentTaskRegistrationSnapshot, aA as AgentTaskService, aB as AgentTaskSnapshot, aC as AgentTaskStartInput, aD as AgentTaskState, aE as AgentTaskUsage, aF as AgentTool, aG as AgentTreeSnapshot, aH as AgentTurn, aI as AgentTurnExecutor, aJ as AgentTurnRef, aK as AgentTurnState, aL as AgentTurnSummary, aM as AskUserAnswer, aN as AskUserCustomInputAnswer, aO as AskUserMultiOptions, aP as AskUserQuestionItem, aQ as AskUserQuestionOptions, aR as AskUserSelectionAnswer, aS as CapabilitySupport, aT as CommitLearnedSkillRevisionInput, aU as CompactionAnchor, aX as CompactionReport, aZ as CompactionSpanData, b0 as CreateLearnedSkillRecordInput, b1 as CurrentTodoSummary, b2 as DEFAULT_SYSTEM_CAP, b3 as DeclarativeSkillSpec, b4 as Deliverable, b6 as DiscoveryOptions, b7 as DispatchableAgentDescriptor, b8 as DispatchableAgentListing, b9 as DispatchableAgentOrigin, ba as DispatchableAgentQuery, bb as EvidenceSpanData, bc as ExactInvokedSkillSnapshot, bd as ExternalAgentEffectDeclaration, be as ExternalAgentHealth, bg as ExternalAgentRegistration, bh as ExternalAgentRegistrationSummary, bi as FanoutSpanData, bj as FileOperations, bk as GenerationSpanData, bl as Guardrail, bm as GuardrailBlockedError, bn as GuardrailContext, bo as GuardrailEscalateError, bp as GuardrailPermissionIntent, bq as GuardrailSpanData, br as GuardrailVerdict, bt as HandoffSpanData, bu as InMemorySessionOptions, bv as InputGuardrail, by as InvariantResult, bz as InvariantSession, bA as KodaXCompactMemoryProgress, bB as KodaXCompactMemorySeed, bC as KodaXExtensionSessionRecord, bD as KodaXExtensionSessionState, bJ as KodaXGoalStatus, bP as KodaXMemoryInfluenceRef, bQ as KodaXMemoryIntent, bS as KodaXMemoryOutcomeEvidence, bT as KodaXSessionArchiveMarkerEntry, bV as KodaXSessionBranchSummaryEntry, bW as KodaXSessionClientNoticeEntry, bX as KodaXSessionCompactionEntry, b_ as KodaXSessionEntryBase, c0 as KodaXSessionLabelEntry, c2 as KodaXSessionMemoryOutcomeDigestEntry, c3 as KodaXSessionMemoryReviewReceiptEntry, c4 as KodaXSessionMessageEntry, c5 as KodaXSessionMeta, c6 as KodaXSessionNavigationOptions, c7 as KodaXSessionRewindMarkerEntry, c8 as KodaXSessionRuntimeInfo, c9 as KodaXSessionScope, cb as KodaXSessionTreeNode, cc as KodaXSessionUiHistoryItem, cd as KodaXSessionUiHistoryItemType, ce as KodaXSessionUiTextHistoryItem, cf as KodaXSessionUiTextHistoryItemType, cg as KodaXSessionUiToolCall, ch as KodaXSessionUiToolCallStatus, ci as KodaXSessionUiToolGroupHistoryItem, cj as KodaXSessionWorkspaceKind, cm as LearnedAreaPaths, co as LearnedCapabilityArtifact, cp as LearnedCapabilityCanary, cq as LearnedCapabilityCanaryBinding, cr as LearnedCapabilityCanaryInvocation, cs as LearnedCapabilityCarrier, ct as LearnedCapabilityLifecycle, cu as LearnedCapabilityProvenance, cw as LearnedCapabilityRecordV1, cx as LearnedCapabilityRecordV2, cz as LearnedCapabilitySource, cA as LearnedSkillBindingAdmission, cB as LearnedSkillCanaryOutcome, cC as LearnedSkillDecisionDisposition, cD as LearnedSkillInvocationAdmission, cE as LearnedSkillInvokedReceipt, cF as LearnedSkillOfferedReceipt, cG as LearnedSkillOutcomeReceipt, cH as LearnedSkillUsageReceipt, cI as LearningAction, cK as LearningCapabilityError, cL as LearningCapabilityErrorCode, cM as LearningClientEventState, cN as LearningClientRecord, cP as LearningEventKind, cR as LearningNotificationState, cU as LearningReviewEvidencePacket, cV as LearningReviewQualification, cW as LearningReviewVerifierFact, cZ as LocalAgentTaskInput, c_ as LocalAgentTaskUpdate, c$ as MAX_TOOL_LOOP_ITERATIONS, d3 as MemoryApplyPreview, d5 as MemoryApproval, d6 as MemoryAuthority, da as MemoryClaimKind, de as MemoryDecisionTraceReceipt, dh as MemoryGovernanceFinding, di as MemoryGovernanceFindingKind, dl as MemoryLifecycle, dp as MemoryPackHint, dr as MemoryPackTraceMetadata, ds as MemoryProposalAction, du as MemoryRefKind, dw as MemoryReviewCandidateRef, dx as MemoryReviewDraftAction, dA as MemoryReviewPersistenceDecision, dB as MemoryReviewPersistenceKind, dE as MemoryReviewTrigger, dF as MemoryScope, dG as MemorySourceAdapter, dH as MemoryVisibility, dI as MessageEntry, dJ as NormalizedLearnedSkillDecision, dK as ObserveCtx, dL as OutputGuardrail, dM as PersistedSessionState, dN as PresetDispatcher, dO as PresetTracingContext, dQ as ReadonlyMutationTracker, dR as ReadonlyRecorder, dS as ReasoningDepth, dT as RecentlyModifiedFile, dU as RunEvent, dV as RunOptions, dW as RunResult, dX as RunnableTool, dY as Runner, dZ as RunnerEvent, d_ as RunnerLlmResult, d$ as RunnerLlmReturn, e0 as RunnerRecoveryTranscriptCarrier, e2 as RunnerToolContext, e3 as RunnerToolObserver, e5 as RunnerToolResultBatch, e6 as RunnerToolResultBatchTransform, e7 as Session, e8 as SessionDispatchResult, e9 as SessionEntry, ea as SessionErrorMetadata, eb as SessionExtension, ec as SessionForkOptions, eg as SpanData, eh as SpanError, ei as SpanImpl, ej as SpanImplOptions, ek as StagedLearnedSkillArtifact, el as StartTraceOptions, eo as StateWriterOptions, es as StopHookSpanData, et as SystemCap, eu as TerminalCtx, ev as ToolBeforeOutcome, ew as ToolCallSpanData, ex as ToolCapability, ey as ToolGuardrail, ez as ToolPermission, eB as TraceOptions, eC as Tracer, eD as TracerOptions, eE as UnifiedLearningReviewModelInput, eF as UnifiedLearningReviewResult, eG as UnifiedLearningReviewRunner, eH as UserInteraction, eK as WorkflowApproval, eL as WorkflowApprovalSummary, eM as WorkflowArtifactRef, eN as WorkflowBudget, eP as WorkflowEventCorrelation, eQ as WorkflowEventRecorder, eR as WorkflowEventType, eS as WorkflowIsolation, eV as WorkflowMeta, eW as WorkflowModelHint, eZ as WorkflowOutcomeError, e_ as WorkflowOutcomeResult, e$ as WorkflowOutcomeStatus, f0 as WorkflowOutcomeUsage, f1 as WorkflowParallelOptions, f2 as WorkflowProcessArtifact, f3 as WorkflowProcessCounts, f4 as WorkflowProcessEvent, f5 as WorkflowProcessItem, f6 as WorkflowProcessItemKind, f7 as WorkflowProcessItemOrigin, f8 as WorkflowProcessItemStatus, f9 as WorkflowProcessProgress, fa as WorkflowProcessSnapshot, fb as WorkflowProcessSource, fc as WorkflowProcessStatus, fd as WorkflowProcessSummaryStatus, fe as WorkflowProcessTokenUsage, ff as WorkflowProcessTracker, fg as WorkflowProcessTrackerOptions, fh as WorkflowRun, fj as WorkflowRunStatus, fk as WorkflowSpawnAgentInput, fl as WorkflowSynthesis, fm as WorkflowSynthesizeInput, fn as WorkflowTaskHandle, fp as WorkflowTaskSnapshot, fq as WorkflowTaskStatus, fr as WorkflowTaskSummaryEventUpdate, fs as WorkflowTaskSummaryKind, ft as WorkflowTaskSummaryUpdate, fu as WorkflowTaskUsage, fv as WorkflowTaskVerification, fw as WorkflowTaskVerificationResult, fx as WorkflowWaitOptions, fy as _resetAdmittedAgentBindings, fz as _resetPresetDispatchers, fA as admitAndRecordLearnedSkillInvocation, fB as admitLearnedSkillBinding, fC as asSingleSelection, fD as assertLearnedCapabilityTransition, fE as attachRunnerRecoveryTranscript, fF as buildAssistantMessageFromLlmResult, fG as buildSystemPrompt, fH as buildToolResultMessage, fI as canTransitionLearnedCapability, fJ as collectGuardrails, fK as commitLearnedSkillRevision, fL as completeLearnedSkillOutcome, fM as completeLearnedSkillSessionOutcomes, fN as createAgent, fO as createAgentActorController, fP as createHandoff, fQ as createInMemorySession, fR as createInvariantSessionForAgent, fS as createLearnedCapabilityScope, fT as createLearnedSkillRecord, fU as createStateWriter, fV as createTrace, fW as createWorkflowProcessTracker, fX as defaultTracer, fY as detectInstructionsInjection, fZ as discoverInstances, f_ as eventFromCapability, f$ as exactInvokedSkillSnapshotForSession, g0 as executeRunnerToolCall, g1 as extractAssistantTextFromMessage, g2 as getActiveUserInteraction, g3 as getAdmittedAgentBindings, g4 as hashMemoryIdentityComponent, g5 as invokeLearnedSkillCanary, g6 as isAskUserCustomInputAnswer, g7 as isFinalWorkflowProcessStatus, g8 as isLearnedCapabilityRecordV2, g9 as isRunnableTool, ga as isRunnerLlmResult, gb as isUnifiedLearningReviewModelInput, gc as learningEventIdFor, gd as learningEventKindForLifecycle, ge as listLearnedSkillUsageReceipts, gf as matchesMemoryApplicability, gg as memoryApplicabilityFingerprint, gh as normalizeHostMetadata, gi as normalizeUnifiedLearningReview, gj as quarantineLearnedSkillRevision, gk as readRunnerRecoveryTranscript, gl as reconcileLearnedSkillBindingOutcomes, gm as recordLearnedSkillOffered, gn as registerPresetDispatcher, go as releaseLearnedSkillBinding, gp as renderDeclarativeSkill, gq as resolveLearnedAreaPaths, gr as resolveProjectLearnedAreaRoot, gs as runAdmissionAudit, gt as runInputGuardrails, gu as runOutputGuardrails, gv as runToolAfterGuardrails, gw as runToolBeforeGuardrails, gx as sanitizeUnifiedLearningReviewInput, gy as setActiveUserInteraction, gz as setAdmittedAgentBindings, gA as slugifyLearnedCapabilityName, gB as stageLearnedSkillRevision, gC as validateDeclarativeSkillSpec } from './types-chunks/controller.d-RGV7Pjv9.js';
3
+ import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-B3q98pLQ.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 generateSessionIdSync, ab as getAgentConfigHome, ac as getAgentConfigPath, ad as getAppDataDir, ae as getSessionLineagePath, af as getSessionMessagesFromLineage, ag as isPathInsideDirectory, ah as lintRestrictedWorkflowSource, ai as mergeArtifactLedger, aj as mergeFileOps, ak as registerActiveRootQueueRoute, al as resolveActiveRootQueueRoute, am as resolveExecutionPath, an as resolveSessionLineageTarget, ao as rewindSessionLineage, ap as setAgentConfigHome, aq as setSessionLineageActiveEntry, ar as validateAndFixToolHistory, as as validateWorkflowCapsule, at as validateWorkflowScriptManifest } from './types-chunks/capsule.d-B3q98pLQ.js';
5
+ import { i as KodaXImageBlock, k as KodaXMessage, a2 as KodaXToolDefinition, a7 as KodaXToolUseBlock, I as KodaXReasoningRequest, e as KodaXEphemeralSuffix, a1 as KodaXTokenUsage } from './types-chunks/types.d-CgrXrFrq.js';
6
+ export { K as KodaXAssuranceIntent, c as KodaXContentBlock, f as KodaXExecutionMode, g as KodaXExecutionPattern, m as KodaXMutationSurface, r as KodaXProviderConfig, z as KodaXProviderStreamOptions, C as KodaXReasoningCapability, G as KodaXReasoningMode, J as KodaXRedactedThinkingBlock, M as KodaXRiskLevel, O as KodaXStreamResult, P as KodaXTaskActionability, Q as KodaXTaskBudgetOverrides, R as KodaXTaskComplexity, S as KodaXTaskFamily, T as KodaXTaskResultMetadata, U as KodaXTaskResultSource, V as KodaXTaskRoutingDecision, W as KodaXTaskType, X as KodaXTaskWorkIntent, Y as KodaXTextBlock, Z as KodaXThinkingBlock, _ as KodaXThinkingBudgetMap, $ as KodaXThinkingDepth, a3 as KodaXToolResultBlock } from './types-chunks/types.d-CgrXrFrq.js';
7
+ import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-iPSiAmc_.js';
8
+ export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-iPSiAmc_.js';
10
9
  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
10
  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-CODuyyqy.js';
13
- export { M as MessageMode } from './types-chunks/types.d-CODuyyqy.js';
14
- import { K as KodaXBaseProvider } from './types-chunks/base.d-4e74xDdy.js';
15
- import { R as ResolvedSkillSource } from './types-chunks/types.d-DCQVBqVn.js';
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
- 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';
18
- export { L as LearnedCapabilityCarrier, a as LearnedCapabilityLifecycle, c as LearnedCapabilitySource, d as LearningAction, f as LearningCapabilityError, g as LearningCapabilityErrorCode, h as LearningClientEventState, k as LearningEventKind, l as LearningNotificationState, q as assertLearnedCapabilityTransition, r as canTransitionLearnedCapability, s as learningEventIdFor, t as learningEventKindForLifecycle, u as slugifyLearnedCapabilityName } from './types-chunks/center-types.d-BBT122uJ.js';
11
+ import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-BZ9oXvTV.js';
12
+ export { M as MessageMode } from './types-chunks/types.d-BZ9oXvTV.js';
13
+ import { K as KodaXBaseProvider } from './types-chunks/base.d-DxG0m09Z.js';
14
+ import { R as ResolvedSkillSource } from './types-chunks/types.d-BbtGlKZu.js';
15
+ export { I as ISkillRegistry, a as IVariableResolver, L as LearnedSkillDiscoveryConfig, 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-BbtGlKZu.js';
19
16
  export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
20
17
  export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, e as McpDiscoveryCatalog, f as McpElicitRequest, g as McpElicitResult, h as McpIcon, i as McpManager, j as McpProviderOptions, k as McpReverseCapabilities, l as McpRoot, m as McpSamplingRequest, n as McpSamplingResult, o as McpServerCatalog, p as McpServerCatalogSnapshot, q as McpServerLogs, r as McpServerRuntime, s as McpServerRuntimeDiagnostics, t as McpServerStatus, u as McpServerToolList, v as McpToolTaskSupport, w as buildInitializeCapabilities, x as createMcpCapabilityId, y as createMcpManager, z as defaultMcpCacheDir, A as getMcpCachePaths, B as normalizeMcpCapabilityId, C as parseMcpCapabilityId, D as searchMcpCatalog } from './types-chunks/manager.d-B67TmPO1.js';
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';
18
+ export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportCleanupIncompleteError, d as McpTransportEvents, O as OAuthClientInfo, e as OAuthLoginConsent, P as PerformOAuthLoginOptions, f as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, g as createMcpTransport, h as discoverAuthorizationServerMetadata, i as discoverOAuthEndpoints, j as discoverProtectedResourceMetadata, k as extractInsufficientScope, l as extractResourceMetadataUrl, m as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-6i-vidxv.js';
22
19
  export { createMcpTestServerFixture } from './sdk-mcp.js';
23
20
  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 { 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-B__aEN62.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-B47hIqnI.js';
21
+ 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, g as searchSessionHistoryCooperatively, v as validateSessionHistorySearchQuery } from './types-chunks/history-retrieval.d-BAegI14A.js';
22
+ 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-CX3AUocA.js';
26
23
 
27
24
  declare const CONTEXT_SAFETY_FLOOR_TOKENS = 2048;
28
25
  declare const CONTEXT_SAFETY_RATIO = 0.03;
@@ -525,6 +522,8 @@ declare const HARDENED_ENV_VARS: readonly ["LD_PRELOAD", "DYLD_INSERT_LIBRARIES"
525
522
  declare const HARDENING_OPT_OUT_ENV = "KODAX_DISABLE_HARDENING";
526
523
  /** Electron bootstrap switch. It must never survive in long-running KodaX code. */
527
524
  declare const ELECTRON_RUN_AS_NODE_ENV = "ELECTRON_RUN_AS_NODE";
525
+ /** Makes a Bun standalone executable behave as the Bun JavaScript runtime. */
526
+ declare const BUN_BE_BUN_ENV = "BUN_BE_BUN";
528
527
  /**
529
528
  * Runs before the requested Node entrypoint and removes the Electron-only
530
529
  * bootstrap switch. The switch is still present when the OS creates the
@@ -535,11 +534,18 @@ interface InternalNodeLaunch {
535
534
  readonly args: readonly string[];
536
535
  readonly env: NodeJS.ProcessEnv;
537
536
  }
537
+ interface JavaScriptChildLaunch extends InternalNodeLaunch {
538
+ readonly command: string;
539
+ }
538
540
  interface PrepareInternalNodeLaunchOptions {
539
541
  readonly args: readonly string[];
540
542
  readonly env: NodeJS.ProcessEnv;
541
543
  readonly isElectron: boolean;
542
544
  }
545
+ interface PrepareJavaScriptChildLaunchOptions extends PrepareInternalNodeLaunchOptions {
546
+ readonly executable?: string;
547
+ readonly isBundled?: boolean;
548
+ }
543
549
  /**
544
550
  * Consume the Electron bootstrap switch and strip dynamic-linker preload vars
545
551
  * from the live `process.env`. Call once at process startup, before anything
@@ -553,6 +559,14 @@ declare function applyProcessHardening(): void;
553
559
  * boundary; the target process removes it before loading application code.
554
560
  */
555
561
  declare function prepareInternalNodeLaunch(options: PrepareInternalNodeLaunchOptions): InternalNodeLaunch;
562
+ /**
563
+ * Prepare a child that must interpret JavaScript rather than re-enter KodaX.
564
+ *
565
+ * Node and Electron use their normal executable contracts. A Bun-compiled
566
+ * standalone has no separate interpreter binary, so `BUN_BE_BUN=1` switches
567
+ * the executable to Bun mode for this child only.
568
+ */
569
+ declare function prepareJavaScriptChildLaunch(options: PrepareJavaScriptChildLaunchOptions): JavaScriptChildLaunch;
556
570
  /**
557
571
  * Return a copy of `env` with the dynamic-linker preload vars removed. Used
558
572
  * when spawning MCP children so a server cannot reintroduce them via its own
@@ -565,13 +579,29 @@ interface ProcessTreeKillOptions {
565
579
  readonly gracefulMs?: number;
566
580
  readonly forceMs?: number;
567
581
  readonly taskkillMs?: number;
582
+ /** Exact OS process-start identity captured before cleanup begins. */
583
+ readonly expectedProcessStartIdentity?: string;
584
+ /** Exact Windows tree identities retained by a managed-process registry. */
585
+ readonly expectedProcessTreeIdentities?: readonly WindowsProcessTreeIdentity[];
586
+ readonly expectedProcessTreeComplete?: boolean;
587
+ }
588
+ interface WindowsProcessTreeIdentity {
589
+ readonly pid: number;
590
+ readonly creationTime: string;
591
+ }
592
+ type ProcessTreeKillStatus = 'terminated' | 'already-exited' | 'unknown';
593
+ interface ProcessTreeKillResult {
594
+ readonly status: ProcessTreeKillStatus;
568
595
  }
569
596
  declare function isChildProcessExited(child: Pick<ChildProcess, 'exitCode' | 'signalCode'>): boolean;
570
597
  declare function waitForChildProcessExit(child: ChildProcess, timeoutMs: number): Promise<boolean>;
571
- declare function killPidTree(pid: number, options?: ProcessTreeKillOptions): Promise<void>;
572
- declare function killPidTreeSync(pid: number): void;
573
- declare function killChildProcessTree(child: ChildProcess, options?: ProcessTreeKillOptions): Promise<void>;
574
- declare function killChildProcessTreeSync(child: ChildProcess): void;
598
+ /** Read an OS-issued start identity so later cleanup never trusts a bare PID. */
599
+ declare function readProcessStartIdentity(pid: number): string | undefined;
600
+ declare function rememberChildProcessTree(child: ChildProcess): string | undefined;
601
+ declare function killPidTree(pid: number, options?: ProcessTreeKillOptions): Promise<ProcessTreeKillResult>;
602
+ declare function killPidTreeSync(pid: number): ProcessTreeKillResult;
603
+ declare function killChildProcessTree(child: ChildProcess, options?: ProcessTreeKillOptions): Promise<ProcessTreeKillResult>;
604
+ declare function killChildProcessTreeSync(child: ChildProcess): ProcessTreeKillResult;
575
605
 
576
606
  interface ManagedChildProcessMetadata {
577
607
  readonly kind: string;
@@ -590,6 +620,8 @@ interface ManagedChildCleanupSummary {
590
620
  }
591
621
  interface CleanupOptions {
592
622
  readonly includeCurrentOwner?: boolean;
623
+ /** Fail when a child owned by this process cannot be verified as reclaimed. */
624
+ readonly requireCurrentOwnerCleanup?: boolean;
593
625
  }
594
626
  declare function registerManagedChildProcess(child: ChildProcess, metadata: ManagedChildProcessMetadata, options?: ManagedChildRegistrationOptions): () => void;
595
627
  declare function cleanupRegisteredManagedChildren(options?: CleanupOptions): Promise<ManagedChildCleanupSummary>;
@@ -1677,6 +1709,8 @@ interface InvokeLlmJudgeOptions<TVerdict> {
1677
1709
  readonly abortSignal?: AbortSignal;
1678
1710
  /** Short structured-call output cap. Default 1024. */
1679
1711
  readonly maxOutputTokens?: number;
1712
+ /** Optional logical cache domain owned by the caller. */
1713
+ readonly promptCacheKey?: string;
1680
1714
  }
1681
1715
  /**
1682
1716
  * Run a one-shot LLM consult: a single forced tool call, fuzzy-matched,
@@ -1970,6 +2004,7 @@ declare class MemoryControlPlane implements MemoryController {
1970
2004
  constructor(options: CreateMemoryControlPlaneOptions);
1971
2005
  listInbox(): Promise<readonly MemoryActionProposal[]>;
1972
2006
  showProposal(id: string): Promise<MemoryActionProposal | undefined>;
2007
+ listHostAppliedEpisodeProposalIds(proposalIds: readonly string[]): Promise<readonly string[]>;
1973
2008
  approveProposal(id: string, expectedFingerprints: Readonly<Record<string, string>>): Promise<MemoryApplyResult>;
1974
2009
  rejectProposal(id: string, reason?: string): Promise<MemoryRejectResult>;
1975
2010
  listRefs(filter?: MemoryRefFilter): Promise<readonly MemoryItemRef[]>;
@@ -1982,11 +2017,14 @@ declare class MemoryControlPlane implements MemoryController {
1982
2017
  maybeRunAutoCurator(input?: MemoryAutoCuratorInput): Promise<MemoryAutoCuratorResult>;
1983
2018
  buildMemoryPack(input: MemoryPackInput): Promise<MemoryPack>;
1984
2019
  reviewMemoryFeedback(input: MemoryReviewInput): Promise<MemoryReviewPlan>;
2020
+ prepareEpisodeReview(digest: KodaXMemoryOutcomeDigest): Promise<MemoryReviewModelInput>;
2021
+ private prepareReviewInput;
1985
2022
  persistReviewPlan(plan: MemoryReviewPlan): Promise<readonly string[]>;
1986
2023
  private persistReviewPlanWithDecisions;
1987
2024
  private resolveReviewMemoryPlacement;
1988
2025
  private projectPlacement;
1989
2026
  reviewEpisode(digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal): Promise<MemoryEpisodeReviewResult>;
2027
+ applyReviewedEpisode(reviewedPlan: MemoryReviewPlan, digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal, revalidateAuthority?: () => Promise<void>): Promise<MemoryEpisodeReviewResult>;
1990
2028
  private consultReviewAction;
1991
2029
  private applyHostEligibleProposal;
1992
2030
  private projectLearningProposal;
@@ -2018,7 +2056,7 @@ declare class MemoryControlPlane implements MemoryController {
2018
2056
  */
2019
2057
  declare function sanitizePromptSafeMemoryClaim(value: string, maxChars?: number): string | undefined;
2020
2058
 
2021
- interface PendingEpisodeReview {
2059
+ interface PendingEpisodeReviewV1 {
2022
2060
  readonly version: 1;
2023
2061
  readonly reviewKey: string;
2024
2062
  readonly digest: KodaXMemoryOutcomeDigest;
@@ -2027,9 +2065,107 @@ interface PendingEpisodeReview {
2027
2065
  readonly ownerProjectHash?: string;
2028
2066
  readonly createdAt: string;
2029
2067
  }
2068
+ interface PendingEpisodeReviewV2 {
2069
+ readonly version: 2;
2070
+ readonly jobId: string;
2071
+ readonly reviewKey: string;
2072
+ readonly digest: KodaXMemoryOutcomeDigest;
2073
+ readonly ownerSessionRef: string;
2074
+ readonly ownerAgentHash: string;
2075
+ readonly ownerProjectHash?: string;
2076
+ readonly branchId: string;
2077
+ readonly branchEpoch: number;
2078
+ readonly authorityCeiling: 'memory_and_project_skill';
2079
+ readonly createdAt: string;
2080
+ }
2081
+ type PendingEpisodeReview = PendingEpisodeReviewV1 | PendingEpisodeReviewV2;
2082
+ type EpisodeReviewJobStatus = 'pending' | 'processing' | 'decided' | 'completed' | 'attention';
2083
+ interface EpisodeReviewJobState {
2084
+ readonly schemaVersion: 1;
2085
+ readonly jobId: string;
2086
+ readonly status: EpisodeReviewJobStatus;
2087
+ readonly claimEpoch: number;
2088
+ readonly claimToken?: string;
2089
+ readonly leaseDeadline?: string;
2090
+ readonly providerAttempts: number;
2091
+ readonly applyAttempts: number;
2092
+ readonly applyAttemptsByCarrier: {
2093
+ readonly memory: number;
2094
+ readonly skill: number;
2095
+ };
2096
+ readonly completionAttempts: number;
2097
+ readonly nextAttemptAt?: string;
2098
+ readonly nextApplyAttemptAt?: string;
2099
+ readonly nextCompletionAttemptAt?: string;
2100
+ readonly lastError?: string;
2101
+ readonly updatedAt: string;
2102
+ }
2103
+ interface EpisodeReviewClaim {
2104
+ readonly jobId: string;
2105
+ readonly reviewKey: string;
2106
+ readonly ownerSessionRef: string;
2107
+ readonly branchId: string;
2108
+ readonly branchEpoch: number;
2109
+ readonly epoch: number;
2110
+ readonly token: string;
2111
+ readonly leaseDeadline: string;
2112
+ }
2113
+ interface EpisodeReviewInputSpec {
2114
+ readonly evidence: unknown;
2115
+ readonly promptRevision: string;
2116
+ readonly schemaRevision: string;
2117
+ readonly policyRevision: string;
2118
+ readonly providerRevision: string;
2119
+ }
2120
+ interface EpisodeReviewInputCheckpoint extends EpisodeReviewInputSpec {
2121
+ readonly version: 1;
2122
+ readonly jobId: string;
2123
+ readonly evidenceBytes: string;
2124
+ readonly evidenceHash: string;
2125
+ readonly createdAt: string;
2126
+ }
2127
+ interface EpisodeReviewDecisionInput {
2128
+ readonly inputHash: string;
2129
+ readonly memoryProposalIds: readonly string[];
2130
+ readonly requiredCarriers?: readonly ('memory' | 'skill')[];
2131
+ readonly memoryPlan?: unknown;
2132
+ readonly capabilityDecision?: unknown;
2133
+ }
2134
+ interface EpisodeReviewDecision extends EpisodeReviewDecisionInput {
2135
+ readonly version: 1;
2136
+ readonly jobId: string;
2137
+ readonly decisionId: string;
2138
+ readonly committedAt: string;
2139
+ }
2140
+ interface EpisodeReviewActionInput {
2141
+ readonly actionId: string;
2142
+ readonly decisionId: string;
2143
+ readonly carrier: 'memory' | 'skill';
2144
+ readonly resultRefs: readonly string[];
2145
+ }
2146
+ interface EpisodeReviewActionReceipt extends EpisodeReviewActionInput {
2147
+ readonly version: 1;
2148
+ readonly jobId: string;
2149
+ readonly committedAt: string;
2150
+ }
2151
+ type EpisodeReviewFailureKind = 'provider_timeout' | 'provider_error' | 'malformed_response' | 'shutdown' | 'budget_unavailable' | 'provider_unavailable';
2152
+ declare class EpisodeReviewFailure extends Error {
2153
+ readonly kind: EpisodeReviewFailureKind;
2154
+ constructor(kind: EpisodeReviewFailureKind, message: string);
2155
+ }
2156
+ interface EpisodeReviewJobSnapshot {
2157
+ readonly envelope: PendingEpisodeReviewV2;
2158
+ readonly state: EpisodeReviewJobState;
2159
+ readonly input?: EpisodeReviewInputCheckpoint;
2160
+ readonly decision?: EpisodeReviewDecision;
2161
+ readonly actions: readonly EpisodeReviewActionReceipt[];
2162
+ }
2030
2163
  interface EpisodeReviewReceipt {
2031
2164
  readonly version: 1;
2165
+ readonly jobId?: string;
2032
2166
  readonly reviewKey: string;
2167
+ readonly ownerAgentHash?: string;
2168
+ readonly ownerProjectHash?: string;
2033
2169
  readonly proposalIds: readonly string[];
2034
2170
  readonly completedAt: string;
2035
2171
  }
@@ -2038,6 +2174,11 @@ interface EpisodeReviewDrainOptions {
2038
2174
  readonly maxEntries?: number;
2039
2175
  readonly revalidate: (entry: PendingEpisodeReview) => Promise<EpisodeReviewDrainEligibility>;
2040
2176
  readonly review: (entry: PendingEpisodeReview) => Promise<readonly string[]>;
2177
+ readonly prepareV2Input?: (entry: PendingEpisodeReviewV2) => Promise<EpisodeReviewInputSpec>;
2178
+ readonly decideV2?: (entry: PendingEpisodeReviewV2, input: EpisodeReviewInputCheckpoint, signal: AbortSignal) => Promise<EpisodeReviewDecisionInput>;
2179
+ readonly listV2Actions?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision) => readonly ('memory' | 'skill')[];
2180
+ readonly applyV2Action?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision, carrier: 'memory' | 'skill', claim: EpisodeReviewClaim, commitWithAuthority: (effect: (revalidateAuthority: () => Promise<void>) => Promise<readonly string[]>) => Promise<readonly string[]>) => Promise<readonly string[]>;
2181
+ readonly onV2Completed?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision, proposalIds: readonly string[]) => Promise<void>;
2041
2182
  }
2042
2183
  interface EpisodeReviewDrainResult {
2043
2184
  readonly reviewed: number;
@@ -2049,11 +2190,42 @@ interface EpisodeReviewDrainResult {
2049
2190
  readonly error: string;
2050
2191
  }[];
2051
2192
  }
2052
- declare function persistPendingEpisodeReview(identity: MemoryContextIdentity, digest: KodaXMemoryOutcomeDigest): Promise<{
2193
+ declare class EpisodeReviewBranchChangedError extends Error {
2194
+ constructor();
2195
+ }
2196
+ declare function captureEpisodeReviewBranchEpoch(identity: MemoryContextIdentity): Promise<number>;
2197
+ declare function persistPendingEpisodeReview(identity: MemoryContextIdentity, digest: KodaXMemoryOutcomeDigest, options?: {
2198
+ readonly expectedBranchEpoch?: number;
2199
+ readonly persistOwner?: (entry: PendingEpisodeReviewV2) => Promise<void>;
2200
+ }): Promise<{
2053
2201
  readonly path: string;
2054
- readonly entry: PendingEpisodeReview;
2202
+ readonly entry: PendingEpisodeReviewV2;
2203
+ }>;
2204
+ declare function claimEpisodeReview(identity: MemoryContextIdentity, reviewKeyOrJobId: string, options?: {
2205
+ readonly now?: Date;
2206
+ readonly leaseMs?: number;
2207
+ }): Promise<EpisodeReviewClaim | undefined>;
2208
+ declare function freezeEpisodeReviewInput(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, spec: EpisodeReviewInputSpec, now?: Date): Promise<EpisodeReviewInputCheckpoint>;
2209
+ declare function commitEpisodeReviewDecision(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, input: EpisodeReviewDecisionInput, now?: Date): Promise<EpisodeReviewDecision>;
2210
+ declare function commitEpisodeReviewAction(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, input: EpisodeReviewActionInput, now?: Date): Promise<EpisodeReviewActionReceipt>;
2211
+ declare function withEpisodeReviewClaimAuthority<T>(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, operation: (revalidateAuthority: () => Promise<void>) => Promise<T>): Promise<T>;
2212
+ declare function failEpisodeReviewAttempt(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, failure: {
2213
+ readonly kind: EpisodeReviewFailureKind;
2214
+ readonly message: string;
2215
+ }, now?: Date): Promise<EpisodeReviewJobState>;
2216
+ declare function failEpisodeReviewApply(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, failure: {
2217
+ readonly carrier: 'memory' | 'skill';
2218
+ readonly message: string;
2219
+ }, now?: Date): Promise<EpisodeReviewJobState>;
2220
+ declare function deferEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, reason: string, now?: Date): Promise<EpisodeReviewJobState>;
2221
+ declare function completeFencedEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, proposalIds: readonly string[], now?: Date): Promise<{
2222
+ readonly acknowledged: boolean;
2223
+ readonly receiptPath: string;
2055
2224
  }>;
2225
+ declare function discardFencedEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, reason: string, now?: Date): Promise<void>;
2226
+ declare function inspectEpisodeReviewJob(identity: MemoryContextIdentity, reviewKeyOrJobId: string): Promise<EpisodeReviewJobSnapshot | undefined>;
2056
2227
  declare function listPendingEpisodeReviews(filter: {
2228
+ readonly configHome?: string;
2057
2229
  readonly tenantId: string;
2058
2230
  readonly agentId?: string;
2059
2231
  readonly projectId?: string;
@@ -2063,6 +2235,31 @@ declare function completeEpisodeReview(identity: MemoryContextIdentity, reviewKe
2063
2235
  readonly receiptPath: string;
2064
2236
  }>;
2065
2237
  declare function rewindPendingEpisodeReviews(identity: MemoryContextIdentity, throughSequence: number): Promise<number>;
2238
+ declare function rewindPendingEpisodeReviewsForSession(input: {
2239
+ readonly configHome?: string;
2240
+ readonly sessionId: string;
2241
+ }, throughSequence: number): Promise<number>;
2242
+ /**
2243
+ * Fences every tenant-owned review job for a Session unless its exact durable
2244
+ * job identity is attached to the prospective active lineage branch. Legacy
2245
+ * lineage records may supply digest.id as a conservative fallback.
2246
+ */
2247
+ declare function fencePendingEpisodeReviewsForSession(input: {
2248
+ readonly configHome?: string;
2249
+ readonly sessionId: string;
2250
+ }, activeReviewIds: readonly string[]): Promise<number>;
2251
+ /**
2252
+ * Establishes the lock order used by both review completion and Session branch
2253
+ * mutation: the Session root registry first, every sorted tenant branch fence
2254
+ * next, then the caller-owned Session transaction. The supplied fence operation
2255
+ * runs without reacquiring those locks, so a mutation can fence its prospective
2256
+ * lineage and persist that exact lineage atomically with respect to review
2257
+ * effects, new tenant registration and completion delivery.
2258
+ */
2259
+ declare function withPendingEpisodeReviewSessionFence<T>(input: {
2260
+ readonly configHome?: string;
2261
+ readonly sessionId: string;
2262
+ }, operation: (fence: (activeReviewIds: readonly string[]) => Promise<number>) => Promise<T>): Promise<T>;
2066
2263
  declare function drainPendingEpisodeReviews(identity: MemoryContextIdentity, options: EpisodeReviewDrainOptions): Promise<EpisodeReviewDrainResult>;
2067
2264
 
2068
2265
  type SkillWriteOrigin = 'foreground_user' | 'assistant_tool' | 'background_learning';
@@ -2088,7 +2285,7 @@ interface MemoryHandoffMetadata {
2088
2285
  readonly preconditions?: string;
2089
2286
  readonly applicability?: MemoryApplicability;
2090
2287
  readonly requestedLifecycle?: 'active' | 'provisional';
2091
- readonly episodeOutcome?: 'succeeded' | 'failed';
2288
+ readonly episodeOutcome?: 'succeeded' | 'failed' | 'cancelled';
2092
2289
  readonly verifiedEvidence?: boolean;
2093
2290
  readonly evidenceProjectId?: string;
2094
2291
  }
@@ -2304,8 +2501,9 @@ declare function readLearningProposalStore(filePath: string): Promise<LearningPr
2304
2501
  declare function upsertLearningProposal(filePath: string, proposal: ReviewableLearningProposal, options?: {
2305
2502
  readonly now?: () => string;
2306
2503
  readonly applyPlan?: StoredLearningApplyPlan;
2504
+ readonly revalidateAuthority?: () => Promise<void>;
2307
2505
  }): Promise<StoredLearningProposal>;
2308
- declare function resolveLearningProposalStore(cwd: string): string;
2506
+ declare function resolveLearningProposalStore(cwd: string, configHome?: string): string;
2309
2507
  declare function updateLearningProposalStatus(filePath: string, proposalId: string, status: LearningProposalReviewStatus, options?: {
2310
2508
  readonly rejectedReason?: string;
2311
2509
  readonly appliedAt?: string;
@@ -2318,6 +2516,7 @@ declare function updateLearningProposalStatus(filePath: string, proposalId: stri
2318
2516
  readonly approvalExpectedFingerprints?: Readonly<Record<string, string>>;
2319
2517
  readonly approvalResultingFingerprints?: Readonly<Record<string, string>>;
2320
2518
  readonly now?: () => string;
2519
+ readonly revalidateAuthority?: () => Promise<void>;
2321
2520
  }): Promise<StoredLearningProposal>;
2322
2521
 
2323
2522
  declare function applySkillLearningProposal(input: SkillLearningApplyInput): Promise<SkillMutationApplyResult>;
@@ -2482,14 +2681,14 @@ interface LearningCenterService {
2482
2681
  acknowledge(nameOrSlug: string): Promise<void>;
2483
2682
  markSeen(nameOrSlug: string): Promise<void>;
2484
2683
  snooze(nameOrSlug: string, until: string): Promise<void>;
2485
- reject(nameOrSlug: string): Promise<void>;
2486
- disable(nameOrSlug: string): Promise<void>;
2487
- rollback(nameOrSlug: string): Promise<void>;
2684
+ reject(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2685
+ disable(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2686
+ rollback(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2488
2687
  archive(nameOrSlug: string): Promise<void>;
2489
2688
  restore(nameOrSlug: string): Promise<void>;
2490
- promote(nameOrSlug: string, scope: 'user'): Promise<void>;
2491
- review(nameOrSlug: string): Promise<void>;
2492
- trust(nameOrSlug: string): Promise<void>;
2689
+ promote(nameOrSlug: string, scope: 'user', authority?: LearningExplicitUserAuthority): Promise<void>;
2690
+ review(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2691
+ trust(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2493
2692
  record(record: LearnedCapabilityRecord): Promise<LearnedCapabilityRecord>;
2494
2693
  }
2495
2694
  declare class FileLearningCenterService implements LearningCenterService {
@@ -2509,18 +2708,17 @@ declare class FileLearningCenterService implements LearningCenterService {
2509
2708
  acknowledge(nameOrSlug: string): Promise<void>;
2510
2709
  markSeen(nameOrSlug: string): Promise<void>;
2511
2710
  snooze(nameOrSlug: string, until: string): Promise<void>;
2512
- reject(nameOrSlug: string): Promise<void>;
2513
- disable(nameOrSlug: string): Promise<void>;
2514
- rollback(nameOrSlug: string): Promise<void>;
2711
+ reject(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2712
+ disable(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2713
+ rollback(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2515
2714
  archive(nameOrSlug: string): Promise<void>;
2516
2715
  restore(nameOrSlug: string): Promise<void>;
2517
- promote(nameOrSlug: string, _scope: 'user'): Promise<void>;
2518
- review(nameOrSlug: string): Promise<void>;
2519
- trust(nameOrSlug: string): Promise<void>;
2716
+ promote(nameOrSlug: string, scope: 'user', authority?: LearningExplicitUserAuthority): Promise<void>;
2717
+ review(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2718
+ trust(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2520
2719
  record(record: LearnedCapabilityRecord): Promise<LearnedCapabilityRecord>;
2521
2720
  private recordUnlocked;
2522
2721
  private transitionByName;
2523
- private transition;
2524
2722
  private executeDriverAction;
2525
2723
  private driverFor;
2526
2724
  private loadCapabilities;
@@ -2531,32 +2729,6 @@ declare class FileLearningCenterService implements LearningCenterService {
2531
2729
  }
2532
2730
  declare function createLearningCenterService(options: CreateLearningCenterServiceOptions): FileLearningCenterService;
2533
2731
 
2534
- interface LearnedAreaPaths {
2535
- readonly root: string;
2536
- readonly skills: string;
2537
- readonly extensions: string;
2538
- readonly capabilities: string;
2539
- readonly events: string;
2540
- readonly clients: string;
2541
- }
2542
- declare function resolveLearnedAreaPaths(rootDir: string): LearnedAreaPaths;
2543
- declare class LearnedAreaStore {
2544
- readonly paths: LearnedAreaPaths;
2545
- constructor(rootDir: string);
2546
- initialize(): Promise<void>;
2547
- readCapability(capabilityId: string): Promise<LearnedCapabilityRecord | undefined>;
2548
- listCapabilities(): Promise<readonly LearnedCapabilityRecord[]>;
2549
- writeCapability(record: LearnedCapabilityRecord): Promise<void>;
2550
- writeEvent(event: LearningEvent): Promise<void>;
2551
- listEvents(): Promise<readonly LearningEvent[]>;
2552
- readClient(identity: string): Promise<LearningClientRecord>;
2553
- writeClient(record: LearningClientRecord): Promise<void>;
2554
- withOwnerMutation<T>(operation: () => Promise<T>): Promise<T>;
2555
- withClientMutation<T>(identity: string, operation: () => Promise<T>): Promise<T>;
2556
- ensureCurrentEvent(record: LearnedCapabilityRecord): Promise<LearningEvent>;
2557
- }
2558
- declare function eventFromCapability(record: LearnedCapabilityRecord, sequence: number): LearningEvent;
2559
-
2560
2732
  interface LearningProposalProjection {
2561
2733
  readonly records: readonly LearnedCapabilityRecord[];
2562
2734
  readonly warnings: readonly string[];
@@ -2566,12 +2738,52 @@ declare function projectLearningProposals(filePath: string): Promise<LearningPro
2566
2738
  declare function getLearnedExtensionToolName(slug: string, toolName: string): string;
2567
2739
  declare function isLearnedExtensionCommandAllowed(_command: string): false;
2568
2740
 
2569
- declare function appendMemoryOutcomeDigest(lineage: KodaXSessionLineage, digest: KodaXMemoryOutcomeDigest): KodaXSessionLineage;
2741
+ interface CreateLearnedSkillActionDriverOptions {
2742
+ readonly learnedAreaRoot: string;
2743
+ readonly learnedAreaKind?: 'global' | 'project';
2744
+ readonly userSkillsRoot: string;
2745
+ readonly now?: () => string;
2746
+ }
2747
+ /**
2748
+ * Explicit-user actions for one project Learned Area.
2749
+ *
2750
+ * The Learning Center invokes this driver while holding the carrier owner
2751
+ * lock, then commits the returned next record with the usual revision CAS.
2752
+ */
2753
+ declare function createLearnedSkillActionDriver(options: CreateLearnedSkillActionDriverOptions): LearningActionDriver;
2754
+
2755
+ interface LegacyLearnedSkillMigrationResult {
2756
+ readonly migratedActive: number;
2757
+ readonly recordedAttention: number;
2758
+ readonly alreadyComplete: boolean;
2759
+ }
2760
+ /**
2761
+ * One-time compatibility bridge from F266's loose global learned/skills tree.
2762
+ * V1 records have no trusted historical content fingerprint. All loose
2763
+ * artifacts therefore become non-loadable Ready/attention instead of being
2764
+ * trusted from their current mutable bytes.
2765
+ */
2766
+ declare function migrateLegacyLearnedSkillsForProject(configHome: string, projectStore: LearnedAreaStore, scope: LearnedCapabilityScope): Promise<LegacyLearnedSkillMigrationResult>;
2767
+
2768
+ declare function withLearningFileLock<T>(lockPath: string, operation: () => Promise<T>, acquireTimeoutMs?: number): Promise<T>;
2769
+
2770
+ declare const SKILL_CREATOR_DISPATCH_ACTIONS: readonly ["init", "validate", "eval", "grade", "analyze", "compare", "package", "install"];
2771
+ type SkillCreatorDispatchAction = (typeof SKILL_CREATOR_DISPATCH_ACTIONS)[number];
2772
+ declare function isSkillCreatorDispatchAction(value: string | undefined): value is SkillCreatorDispatchAction;
2773
+ declare function dispatchSkillCreatorTool(action: SkillCreatorDispatchAction, args: readonly string[], sdk: Readonly<Record<string, unknown>>): Promise<void>;
2774
+
2775
+ declare function appendMemoryOutcomeDigest(lineage: KodaXSessionLineage, digest: KodaXMemoryOutcomeDigest, jobId?: string): KodaXSessionLineage;
2570
2776
  declare function appendMemoryReviewReceipt(lineage: KodaXSessionLineage, input: {
2777
+ readonly jobId?: string;
2571
2778
  readonly reviewKey: string;
2572
2779
  readonly proposalIds: readonly string[];
2573
2780
  readonly completedAt: string;
2574
2781
  }): KodaXSessionLineage;
2782
+ /**
2783
+ * Returns exact durable review identities for outcome digests attached to the
2784
+ * active branch. New records use jobId; legacy records fall back to digest.id.
2785
+ */
2786
+ declare function getActiveMemoryOutcomeReviewIds(lineage: KodaXSessionLineage): readonly string[];
2575
2787
  declare function appendMemoryClientNotice(lineage: KodaXSessionLineage, input: {
2576
2788
  readonly episodeId: string;
2577
2789
  readonly summaries: readonly string[];
@@ -3366,104 +3578,6 @@ interface ReferenceAgentExecutorFactoryOptions {
3366
3578
  }
3367
3579
  declare function createReferenceAgentExecutorFactory(options: ReferenceAgentExecutorFactoryOptions): AgentExecutorFactory;
3368
3580
 
3369
- interface AgentControllerOptions {
3370
- readonly maxConcurrentThreadsPerSession?: number;
3371
- readonly rootCapabilities?: AgentCapabilities;
3372
- readonly executor?: AgentTurnExecutor;
3373
- readonly executorFor?: (kind: AgentExecutionKind) => AgentTurnExecutor;
3374
- readonly budget?: AgentBudgetPort;
3375
- readonly store?: AgentActorStore;
3376
- readonly now?: () => string;
3377
- readonly warn?: (message: string) => void;
3378
- readonly onBackgroundError?: (error: unknown) => void;
3379
- /** Post-durability event sink. Callback failures never roll back committed actor state. */
3380
- readonly onEventCommitted?: (event: AgentEvent) => void | Promise<void>;
3381
- /** Post-durability mailbox sink. Callback failures never roll back committed actor state. */
3382
- readonly onMessageCommitted?: (message: AgentMailboxMessage) => void | Promise<void>;
3383
- }
3384
- declare class AgentActorController {
3385
- private readonly options;
3386
- private readonly actors;
3387
- private readonly turns;
3388
- private readonly mailboxes;
3389
- private readonly acknowledgedCompletionTurnIds;
3390
- private readonly pendingRootCompletionTurnIds;
3391
- private readonly eventsLog;
3392
- private readonly abortControllers;
3393
- private readonly waiters;
3394
- private readonly scheduler;
3395
- private readonly budget;
3396
- private readonly now;
3397
- private mutationTail;
3398
- private revision;
3399
- private committedSnapshot;
3400
- constructor(options?: AgentControllerOptions);
3401
- initialize(): Promise<void>;
3402
- bind(callerPath: string): AgentActorClient;
3403
- /** Trusted host API: register a zero-slot Workflow protocol owner in this tree. */
3404
- createProtocolOwner(callerPath: string, ownerId: string): Promise<AgentActorClient>;
3405
- /** Trusted host API: settle a zero-slot Workflow protocol owner. */
3406
- settleProtocolOwner(ownerPath: string, state: 'completed' | 'failed' | 'interrupted', result: AgentExecutionResult & {
3407
- readonly error?: string;
3408
- }): Promise<void>;
3409
- /** Trusted host API: cancellation signal for a zero-slot Workflow protocol owner. */
3410
- protocolOwnerSignal(ownerPath: string): AbortSignal;
3411
- spawn(callerPath: string, input: AgentSpawnInput, options?: AgentMutationOptions): Promise<AgentTurnRef>;
3412
- send(callerPath: string, targetPath: string, content: string, classification?: AgentDataClassification, forwardedMessageId?: string): Promise<AgentMailboxMessage>;
3413
- acknowledgeCompletions(callerPath: string, turnIds: readonly string[]): Promise<number>;
3414
- followup(callerPath: string, targetPath: string, objective: string, metadata?: Readonly<Record<string, AgentMetadataValue>>, options?: AgentMutationOptions): Promise<AgentFollowupResult>;
3415
- interrupt(callerPath: string, targetPath: string, reason?: string, scope?: AgentInterruptScope): Promise<void>;
3416
- close(callerPath: string, targetPath: string, reason?: string): Promise<void>;
3417
- /** Stops in-flight work for process shutdown while preserving reusable Actor identities. */
3418
- shutdown(reason?: string): Promise<void>;
3419
- list(callerPath: string): AgentTreeSnapshot;
3420
- get(callerPath: string, targetPath: string): AgentDetail;
3421
- output(callerPath: string, targetPath: string, turnId?: string): AgentOutput;
3422
- eventSnapshot(callerPath: string, afterSequence?: number): readonly AgentEvent[];
3423
- private isAcknowledgedDirectChildTerminal;
3424
- wait(callerPath: string, afterSequence?: number, timeoutMs?: number, signal?: AbortSignal): Promise<AgentEvent | undefined>;
3425
- private prepareSpawn;
3426
- private prepareExistingTurn;
3427
- private admitTurn;
3428
- private commitStart;
3429
- private launch;
3430
- private completeExecution;
3431
- private failExecution;
3432
- private finishTurn;
3433
- private appendCompletion;
3434
- private drainMailbox;
3435
- private unreadMailbox;
3436
- private recordProgress;
3437
- private resolveForwarding;
3438
- private appendMessage;
3439
- private appendEvent;
3440
- private requireControl;
3441
- private assertMessagePermission;
3442
- private isVisible;
3443
- private visibleActors;
3444
- private latestTurnSummary;
3445
- private descendantsInclusive;
3446
- private createActor;
3447
- private createTurn;
3448
- private requireActor;
3449
- private requireTurn;
3450
- private requireCommittedActor;
3451
- private requireCommittedTurn;
3452
- private requireCommittedControl;
3453
- private installRoot;
3454
- private mutate;
3455
- private snapshot;
3456
- private restore;
3457
- private republishUnacknowledgedRootCompletions;
3458
- private recoverUnmatchedTurns;
3459
- private notify;
3460
- private publishCommittedEvent;
3461
- private publishCommittedMessage;
3462
- private reportBackgroundError;
3463
- private assertExpectedTreeRevision;
3464
- }
3465
- declare function createAgentActorController(options?: AgentControllerOptions): Promise<AgentActorController>;
3466
-
3467
3581
  declare class AgentLimitReachedError extends Error implements AgentLimitReached {
3468
3582
  readonly maxConcurrentThreads: number;
3469
3583
  readonly activeNonRootTurns: number;
@@ -3484,6 +3598,39 @@ declare class AgentRevisionConflictError extends Error {
3484
3598
  readonly code: "revision_conflict";
3485
3599
  constructor(expectedRevision: number, currentRevision: number);
3486
3600
  }
3601
+ declare class AgentActorStoreConflictError extends Error {
3602
+ readonly expectedRevision: number;
3603
+ readonly currentRevision: number;
3604
+ readonly code: "actor_snapshot_conflict";
3605
+ constructor(expectedRevision: number, currentRevision: number, scope?: string);
3606
+ }
3607
+ declare class AgentOwnerConflictError extends Error {
3608
+ readonly ownerRuntimeId: string | undefined;
3609
+ readonly currentRevision: number;
3610
+ readonly localExecutionsAborted: boolean;
3611
+ readonly code: "actor_owner_conflict";
3612
+ readonly retryable: false;
3613
+ constructor(ownerRuntimeId: string | undefined, currentRevision: number, localExecutionsAborted: boolean);
3614
+ }
3615
+ declare class AgentOwnerUnknownError extends Error {
3616
+ readonly currentRevision: number;
3617
+ readonly code: "actor_owner_unknown";
3618
+ readonly retryable: false;
3619
+ constructor(currentRevision: number);
3620
+ }
3621
+ declare class AgentSettlementPersistenceError extends Error {
3622
+ readonly turnId: string;
3623
+ readonly cause: unknown;
3624
+ readonly code: "actor_settlement_not_persisted";
3625
+ readonly retryable: false;
3626
+ constructor(turnId: string, cause: unknown);
3627
+ }
3628
+ declare class AgentShutdownPersistenceError extends Error {
3629
+ readonly cause: unknown;
3630
+ readonly code: "actor_shutdown_not_persisted";
3631
+ readonly retryable: false;
3632
+ constructor(cause: unknown);
3633
+ }
3487
3634
  type AgentControlErrorCode = 'actor_closed' | 'actor_not_found' | 'invalid_actor_path' | 'invalid_capabilities' | 'invalid_fork_turns' | 'invalid_forward_reference' | 'invalid_message' | 'invalid_task_name' | 'message_cycle_detected' | 'name_collision' | 'no_active_turn' | 'permission_denied' | 'unsupported_operation';
3488
3635
  declare class AgentControlError extends Error {
3489
3636
  readonly code: AgentControlErrorCode;
@@ -3500,5 +3647,5 @@ declare class AgentTurnScheduler {
3500
3647
  restore(turnIds: readonly string[]): void;
3501
3648
  }
3502
3649
 
3503
- 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, KodaXTokenUsage, 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, sanitizePromptSafeMemoryClaim, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent };
3504
- export type { AdmissionMetricsSnapshot, AgentControlErrorCode, AgentControllerOptions, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompactionCacheContext, CompactionProviderObserver, CompactionProviderRequest, CompactionProviderRouting, 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 };
3650
+ export { Agent, AgentActorStoreConflictError, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentCancellationUncertainError, AgentControlError, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentLimitReached, AgentLimitReachedError, AgentManifest, AgentMessage, AgentOwnerConflictError, AgentOwnerUnknownError, AgentRevisionConflictError, AgentSettlementPersistenceError, AgentShutdownPersistenceError, AgentStartUncertainError, AgentTurnScheduler, BUN_BE_BUN_ENV, 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, EpisodeReviewBranchChangedError, EpisodeReviewFailure, 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, KodaXTokenUsage, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, LearnedAreaStore, LearnedCapabilityRecord, LearnedCapabilityScope, LearningActionDriver, LearningEvent, LearningExplicitUserAuthority, 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, MemoryReviewModelInput, 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, captureEpisodeReviewBranchEpoch, claimEpisodeReview, cleanupRegisteredManagedChildren, clearCapabilityCache, collectUserQueryLedger, commitEpisodeReviewAction, commitEpisodeReviewDecision, compact, completeEpisodeReview, completeFencedEpisodeReview, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLearnedSkillActionDriver, createLearningCenterService, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, deferEpisodeReview, detectHandoffSignal, detectIdleYield, discardFencedEpisodeReview, dispatchSkillCreatorTool, drainPendingEpisodeReviews, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueWithArtifacts, evidenceTrail, exceedsContextCapacity, failEpisodeReviewApply, failEpisodeReviewAttempt, fencePendingEpisodeReviewsForSession, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, freezeEpisodeReviewInput, generateSummary, getActiveMemoryOutcomeReviewIds, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getLearnedExtensionToolName, getMessageQueue, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, inspectEpisodeReviewJob, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, isLearnedExtensionCommandAllowed, isSkillCreatorDispatchAction, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listPendingEpisodeReviews, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, mergeUserQueryLedger, microcompact, midTurnDrainPriority, migrateLegacyLearnedSkillsForProject, needsCompaction, normalizeCompactionConfig, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, parseUserQueryLedger, persistCompactedSessionHistory, persistImageAsBlock, persistPendingEpisodeReview, prepareInternalNodeLaunch, prepareJavaScriptChildLaunch, projectLearningProposals, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readProcessStartIdentity, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, rememberChildProcessTree, renderUserQueryLedger, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveCompactionPolicy, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveScopedMemoryRoot, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, rewindPendingEpisodeReviews, rewindPendingEpisodeReviewsForSession, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, sanitizePromptSafeMemoryClaim, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent, withEpisodeReviewClaimAuthority, withLearningFileLock as withKodaXFileLock, withPendingEpisodeReviewSessionFence };
3651
+ export type { AdmissionMetricsSnapshot, AgentControlErrorCode, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompactionCacheContext, CompactionProviderObserver, CompactionProviderRequest, CompactionProviderRouting, CompactionTriggerSource, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLearnedSkillActionDriverOptions, CreateLearningCenterServiceOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, EpisodeReviewActionInput, EpisodeReviewActionReceipt, EpisodeReviewClaim, EpisodeReviewDecision, EpisodeReviewDecisionInput, EpisodeReviewDrainEligibility, EpisodeReviewDrainOptions, EpisodeReviewDrainResult, EpisodeReviewFailureKind, EpisodeReviewInputCheckpoint, EpisodeReviewInputSpec, EpisodeReviewJobSnapshot, EpisodeReviewJobState, EpisodeReviewJobStatus, EpisodeReviewReceipt, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, GracefulCompactionCapacity, HandoffSignal, IdleYieldSnapshot, InternalNodeLaunch, InvokeLlmJudgeOptions, JavaScriptChildLaunch, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningCenterService, LearningIntakeRecordResult, LearningProposalProjection, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LegacyLearnedSkillMigrationResult, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PendingEpisodeReview, PendingEpisodeReviewV1, PendingEpisodeReviewV2, PersistCompactedSessionHistoryInput, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, PrepareInternalNodeLaunchOptions, PrepareJavaScriptChildLaunchOptions, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ProcessTreeKillResult, ProcessTreeKillStatus, 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 };