@kodax-ai/kodax 0.7.77 → 0.7.78

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 (98) hide show
  1. package/CHANGELOG.md +176 -4
  2. package/README.md +200 -64
  3. package/README_CN.md +153 -49
  4. package/config-templates/config.example.jsonc +114 -32
  5. package/dist/chunks/agent-ASP4MS3X.js +2 -0
  6. package/dist/chunks/argument-completer-JYQ7FX3W.js +2 -0
  7. package/dist/chunks/{chunk-XSA37BVM.js → chunk-2CFHBKRE.js} +1 -1
  8. package/dist/chunks/chunk-35PPHOQ2.js +292 -0
  9. package/dist/chunks/chunk-43QNNDHR.js +29 -0
  10. package/dist/chunks/chunk-5BNQXXGY.js +1 -0
  11. package/dist/chunks/chunk-5GO6FH7L.js +458 -0
  12. package/dist/chunks/{chunk-FSXI4MAV.js → chunk-5NDCSFOP.js} +14 -14
  13. package/dist/chunks/{chunk-3DD4QEBH.js → chunk-6FOJVETH.js} +10 -10
  14. package/dist/chunks/chunk-6XM4B6K2.js +48 -0
  15. package/dist/chunks/chunk-6YZUE6NC.js +240 -0
  16. package/dist/chunks/{chunk-HORNWBYR.js → chunk-7OEBJGHK.js} +1 -1
  17. package/dist/chunks/{chunk-OAMKECRG.js → chunk-KQLQYHWU.js} +205 -200
  18. package/dist/chunks/{chunk-IQT4RPCE.js → chunk-NXO6GWSY.js} +2 -2
  19. package/dist/chunks/chunk-T2XZTLYE.js +316 -0
  20. package/dist/chunks/chunk-TQDBTTIM.js +348 -0
  21. package/dist/chunks/{chunk-FNW2XUL5.js → chunk-UID7BLAB.js} +1 -1
  22. package/dist/chunks/chunk-VAT2QYXM.js +765 -0
  23. package/dist/chunks/chunk-YAZQTC2L.js +5 -0
  24. package/dist/chunks/chunk-YVRYHC4C.js +655 -0
  25. package/dist/chunks/{chunk-EH7AOMJ7.js → chunk-Z3KFRTSB.js} +1 -1
  26. package/dist/chunks/compaction-config-BQSSIWK5.js +2 -0
  27. package/dist/chunks/{construction-bootstrap-RPRL3L7R.js → construction-bootstrap-VQLQGWPY.js} +1 -1
  28. package/dist/chunks/{dist-FDSOIR35.js → dist-BFT5YIGU.js} +1 -1
  29. package/dist/chunks/dist-PCFE24YP.js +2 -0
  30. package/dist/chunks/host-UTFXCYYM.js +2 -0
  31. package/dist/chunks/run-manager-PJU3WIFJ.js +2 -0
  32. package/dist/chunks/utils-SID4HW2Q.js +2 -0
  33. package/dist/index.d.ts +18 -17
  34. package/dist/index.js +6 -6
  35. package/dist/kodax_cli.js +1751 -1352
  36. package/dist/kodax_resume.js +17 -17
  37. package/dist/runtime-worker.js +1680 -1299
  38. package/dist/sandbox-workspace-session.js +563 -0
  39. package/dist/sdk-a2a.d.ts +16 -16
  40. package/dist/sdk-a2a.js +8 -8
  41. package/dist/sdk-agent.d.ts +275 -60
  42. package/dist/sdk-agent.js +1 -1
  43. package/dist/sdk-coding.d.ts +33 -165
  44. package/dist/sdk-coding.js +1 -1
  45. package/dist/sdk-experimental-memory.d.ts +2 -2
  46. package/dist/sdk-experimental-memory.js +1 -1
  47. package/dist/sdk-llm.d.ts +2 -1
  48. package/dist/sdk-llm.js +1 -1
  49. package/dist/sdk-mcp.js +1 -1
  50. package/dist/sdk-media.js +1 -1
  51. package/dist/sdk-repl.d.ts +67 -25
  52. package/dist/sdk-repl.js +2 -2
  53. package/dist/sdk-runtime.d.ts +194 -147
  54. package/dist/sdk-runtime.js +1 -1
  55. package/dist/sdk-sandbox.d.ts +93 -0
  56. package/dist/sdk-sandbox.js +2 -0
  57. package/dist/sdk-session.d.ts +6 -7
  58. package/dist/sdk-session.js +1 -1
  59. package/dist/sdk-skills.d.ts +2 -2
  60. package/dist/sdk-skills.js +1 -1
  61. package/dist/semantic-worker.js +15 -15
  62. package/dist/types-chunks/{bash-prefix-extractor.d-pZdu6qt7.d.ts → bash-prefix-extractor.d-uAe2Oqda.d.ts} +126 -8
  63. package/dist/types-chunks/{capsule.d-CxCm1KZz.d.ts → capsule.d-BlSv9l3V.d.ts} +1 -1
  64. package/dist/types-chunks/{guardrail.d-CJx9RRd3.d.ts → guardrail.d-BRE_ErEj.d.ts} +1 -1
  65. package/dist/types-chunks/{guardrail.d-B0PwAZVR.d.ts → guardrail.d-CXDYRgZ3.d.ts} +200 -34
  66. package/dist/types-chunks/{history-retrieval.d-B__aEN62.d.ts → history-retrieval.d-DtCy7x64.d.ts} +1 -1
  67. package/dist/types-chunks/{integration-config.d-ojG4swOP.d.ts → integration-config.d-BNowXE8k.d.ts} +23 -8
  68. package/dist/types-chunks/{public-api.d--fF88JrC.d.ts → public-api.d-B3AohsxN.d.ts} +36 -7
  69. package/dist/types-chunks/{commands.d-BccESAMV.d.ts → repl.d-Ie_ZXb_U.d.ts} +89 -78
  70. package/dist/types-chunks/{side-query.d-5JvXhuOZ.d.ts → resolver.d-iAQ9ocLB.d.ts} +3 -66
  71. package/dist/types-chunks/{run-manager.d-B47hIqnI.d.ts → run-manager.d-D1twIhF9.d.ts} +1 -1
  72. package/dist/types-chunks/{sdk-session-CLWf8Adb.d.ts → sdk-session-DB9KksIx.d.ts} +2 -2
  73. package/dist/types-chunks/side-query.d-DTuLPcC5.d.ts +77 -0
  74. package/dist/types-chunks/{types-LanCEDj8.d.ts → types-D3g6XUQr.d.ts} +41 -2
  75. package/dist/types-chunks/{types.d-RdWRfUEs.d.ts → types.d-BA-Jwpfs.d.ts} +459 -7
  76. package/dist/types-chunks/{types.d-CODuyyqy.d.ts → types.d-BH0ZkTGf.d.ts} +1 -1
  77. package/dist/types-chunks/{types.d-DCQVBqVn.d.ts → types.d-BbtGlKZu.d.ts} +25 -3
  78. package/dist/types-chunks/{types.d-DCsKM8aT.d.ts → types.d-DVDTIfB_.d.ts} +2 -2
  79. package/dist/types-chunks/{utils.d-CDduqbFw.d.ts → utils.d-CVp6bFl9.d.ts} +22 -6
  80. package/docs/SDK_EMBEDDER_GUIDE.md +399 -55
  81. package/package.json +8 -1
  82. package/dist/chunks/agent-NGSWFE73.js +0 -2
  83. package/dist/chunks/argument-completer-WGGZPEEO.js +0 -2
  84. package/dist/chunks/chunk-27QLRH3D.js +0 -5
  85. package/dist/chunks/chunk-2MQPVY6P.js +0 -770
  86. package/dist/chunks/chunk-6WAPVAGQ.js +0 -74
  87. package/dist/chunks/chunk-AOENDSVN.js +0 -448
  88. package/dist/chunks/chunk-HV2GMZUZ.js +0 -343
  89. package/dist/chunks/chunk-JS2BHGJP.js +0 -158
  90. package/dist/chunks/chunk-ON2WG2LG.js +0 -622
  91. package/dist/chunks/chunk-RUGAAHTF.js +0 -321
  92. package/dist/chunks/chunk-TGCG7U2W.js +0 -37
  93. package/dist/chunks/compaction-config-BE7VYWH6.js +0 -2
  94. package/dist/chunks/dist-ZZBNVTKU.js +0 -2
  95. package/dist/chunks/host-QAKQVC4A.js +0 -2
  96. package/dist/chunks/run-manager-N4UFWA2D.js +0 -2
  97. package/dist/chunks/utils-AUHCI4D5.js +0 -2
  98. package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +0 -91
@@ -1,28 +1,26 @@
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';
1
+ import { e5 as Span, eo as Trace, f as Agent, bk as Handoff, dT as RunnerToolCall, dW as RunnerToolResult, ab as AgentMessage, aa as AgentManifest, cT as ManifestPatch, bo as InvariantId, dF as QualityInvariant, bE as KodaXInputArtifactSource, bC as KodaXImageMediaType, cc as KodaXVideoMediaType, bx as KodaXFileInputArtifact, bB as KodaXImageInputArtifact, cb as KodaXVideoInputArtifact, bD as KodaXInputArtifact, b2 as DiscoveredInstance, e3 as SessionMeta, e4 as SessionStateSnapshot, ed as StateWriterFs, bn as InstanceDiscoveryFs, ec as StateWriter, ef as StopHookContext, eh as StopHookResult, eg as StopHookFn, d2 as MemoryContextIdentity, db as MemoryItemRef, bU as KodaXSessionLineage, bL as KodaXSessionArtifactLedgerEntry, d7 as MemoryEvent, du as MemoryReviewRunner, d3 as MemoryController, cU as MemoryActionProposal, cX as MemoryApplyResult, dl as MemoryRejectResult, dj as MemoryRefFilter, d0 as MemoryBodySnapshot, dd as MemoryLifecycleOperationResult, d4 as MemoryCuratorInput, da as MemoryGovernanceReport, c_ as MemoryAutoCuratorInput, c$ as MemoryAutoCuratorResult, dg as MemoryPackInput, de as MemoryPack, dp as MemoryReviewInput, dt as MemoryReviewPlan, bI as KodaXMemoryOutcomeDigest, dq as MemoryReviewModelInput, d6 as MemoryEpisodeReviewResult, cV as MemoryApplicability, cA as LearningActionDriver, cK as LearningQuery, cJ as LearningPage, cm as LearnedCapabilityRecord, cP as LearningSurfaceSnapshot, cF as LearningEvent, cO as LearningSubscribeOptions, cH as LearningExplicitUserAuthority, ce as LearnedAreaStore, cp as LearnedCapabilityScope, c1 as KodaXSessionStorage, aX as CompactionUpdate, bP as KodaXSessionData, bz as KodaXGoalState, by as KodaXGoalEventType, bQ as KodaXSessionEntry, bS as KodaXSessionGoalEntry, aS as CompactionConfig, aT as CompactionDetails, aV as CompactionResult, bv as KodaXExtensionStore, bw as KodaXExtensionStoreEntry, bF as KodaXJsonValue, f6 as WorkflowRunState, eM as WorkflowOutcome, ex as WorkflowApi, eL as WorkflowModule, ew as WorkflowAgentBackend, eH as WorkflowLimits, eC as WorkflowEvent, eI as WorkflowLogEvent, fc as WorkflowTaskResult, Z as AgentExecutorPlaneStore, aY as CreateAgentExecutorPlaneOptions, V as AgentExecutorPlane, bc as ExternalAgentProtocol, T as AgentExecutorFactory, x as AgentCapabilities, aF as AgentTurnExecutor, P as AgentExecutionKind, w as AgentBudgetPort, n as AgentActorStore, i as AgentActorOwner, M as AgentEvent, a9 as AgentMailboxMessage, h as AgentActorClient, Q as AgentExecutionResult, aq as AgentSpawnInput, ae as AgentMutationOptions, aG as AgentTurnRef, D as AgentDataClassification, ac as AgentMetadataValue, a2 as AgentFollowupResult, a4 as AgentInterruptScope, aD as AgentTreeSnapshot, E as AgentDetail, af as AgentOutput, v as AgentBudgetExhausted, a7 as AgentLimitReached } from './types-chunks/types.d-BA-Jwpfs.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, j as AgentActorSnapshot, k as AgentActorSnapshotV1, l as AgentActorSnapshotV2, m as AgentActorState, o as AgentArtifactDescriptor, p as AgentArtifactPolicy, q as AgentArtifactPolicyDecision, r as AgentArtifactPolicyInput, s as AgentArtifactReference, t as AgentBudgetAdmission, u as AgentBudgetAdmissionInput, y as AgentCapabilityDeclaration, z as AgentCapabilityRequirements, B as AgentContinuationInput, C as AgentCredentialBroker, F as AgentDispatchContext, G as AgentDispatchPolicy, H as AgentDispatchPolicyDecision, I as AgentDispatchPolicyInput, J as AgentDispatchabilitySnapshot, K as AgentDispatchabilityStatus, L as AgentEffectDeclaration, N as AgentEventKind, O as AgentExecutionInput, R as AgentExecutor, S as AgentExecutorEvent, U as AgentExecutorFactoryContext, W as AgentExecutorPlaneBackgroundErrorContext, X as AgentExecutorPlaneBackgroundErrorHandler, Y as AgentExecutorPlaneBinding, _ as AgentExecutorPreflightResult, $ as AgentExecutorProtocol, a0 as AgentExecutorTaskReference, a1 as AgentExecutorTaskSnapshot, a3 as AgentForkTurns, a5 as AgentJsonObject, a6 as AgentJsonValue, a8 as AgentListEntry, ad as AgentMiddlewareDeclaration, ag as AgentPreflightInput, ah as AgentPreflightResult, ai as AgentProgressItem, aj as AgentProgressKind, ak as AgentProgressUpdate, al as AgentReasoningProfile, am as AgentRegistrationEnabledMutationOptions, an as AgentRegistrationMutationOptions, ao as AgentRegistrationService, ap as AgentSpanData, ar as AgentTaskCancellation, as as AgentTaskCorrelation, at as AgentTaskEvent, au as AgentTaskFilter, av as AgentTaskProgress, aw as AgentTaskRegistrationSnapshot, ax as AgentTaskService, ay as AgentTaskSnapshot, az as AgentTaskStartInput, aA as AgentTaskState, aB as AgentTaskUsage, aC as AgentTool, aE as AgentTurn, aH as AgentTurnState, aI as AgentTurnSummary, aJ as AskUserAnswer, aK as AskUserCustomInputAnswer, aL as AskUserMultiOptions, aM as AskUserQuestionItem, aN as AskUserQuestionOptions, aO as AskUserSelectionAnswer, aP as CapabilitySupport, aQ as CommitLearnedSkillRevisionInput, aR as CompactionAnchor, aU as CompactionReport, aW as CompactionSpanData, aZ as CreateLearnedSkillRecordInput, a_ as CurrentTodoSummary, a$ as DEFAULT_SYSTEM_CAP, b0 as DeclarativeSkillSpec, b1 as Deliverable, b3 as DiscoveryOptions, b4 as DispatchableAgentDescriptor, b5 as DispatchableAgentListing, b6 as DispatchableAgentOrigin, b7 as DispatchableAgentQuery, b8 as EvidenceSpanData, b9 as ExactInvokedSkillSnapshot, ba as ExternalAgentEffectDeclaration, bb as ExternalAgentHealth, bd as ExternalAgentRegistration, be as ExternalAgentRegistrationSummary, bf as FanoutSpanData, bg as FileOperations, bh as GenerationSpanData, bi as Guardrail, bj as GuardrailSpanData, bl as HandoffSpanData, bm as InMemorySessionOptions, bp as InvariantResult, bq as InvariantSession, br as KodaXCompactMemoryProgress, bs as KodaXCompactMemorySeed, bt as KodaXExtensionSessionRecord, bu as KodaXExtensionSessionState, bA as KodaXGoalStatus, bG as KodaXMemoryInfluenceRef, bH as KodaXMemoryIntent, bJ as KodaXMemoryOutcomeEvidence, bK as KodaXSessionArchiveMarkerEntry, bM as KodaXSessionBranchSummaryEntry, bN as KodaXSessionClientNoticeEntry, bO as KodaXSessionCompactionEntry, bR as KodaXSessionEntryBase, bT as KodaXSessionLabelEntry, bV as KodaXSessionMemoryOutcomeDigestEntry, bW as KodaXSessionMemoryReviewReceiptEntry, bX as KodaXSessionMessageEntry, bY as KodaXSessionMeta, bZ as KodaXSessionNavigationOptions, b_ as KodaXSessionRewindMarkerEntry, b$ as KodaXSessionRuntimeInfo, c0 as KodaXSessionScope, c2 as KodaXSessionTreeNode, c3 as KodaXSessionUiHistoryItem, c4 as KodaXSessionUiHistoryItemType, c5 as KodaXSessionUiTextHistoryItem, c6 as KodaXSessionUiTextHistoryItemType, c7 as KodaXSessionUiToolCall, c8 as KodaXSessionUiToolCallStatus, c9 as KodaXSessionUiToolGroupHistoryItem, ca as KodaXSessionWorkspaceKind, cd as LearnedAreaPaths, cf as LearnedCapabilityArtifact, cg as LearnedCapabilityCanary, ch as LearnedCapabilityCanaryBinding, ci as LearnedCapabilityCanaryInvocation, cj as LearnedCapabilityCarrier, ck as LearnedCapabilityLifecycle, cl as LearnedCapabilityProvenance, cn as LearnedCapabilityRecordV1, co as LearnedCapabilityRecordV2, cq as LearnedCapabilitySource, cr as LearnedSkillBindingAdmission, cs as LearnedSkillCanaryOutcome, ct as LearnedSkillDecisionDisposition, cu as LearnedSkillInvocationAdmission, cv as LearnedSkillInvokedReceipt, cw as LearnedSkillOfferedReceipt, cx as LearnedSkillOutcomeReceipt, cy as LearnedSkillUsageReceipt, cz as LearningAction, cB as LearningCapabilityError, cC as LearningCapabilityErrorCode, cD as LearningClientEventState, cE as LearningClientRecord, cG as LearningEventKind, cI as LearningNotificationState, cL as LearningReviewEvidencePacket, cM as LearningReviewQualification, cN as LearningReviewVerifierFact, cQ as LocalAgentTaskInput, cR as LocalAgentTaskUpdate, cS as MAX_TOOL_LOOP_ITERATIONS, cW as MemoryApplyPreview, cY as MemoryApproval, cZ as MemoryAuthority, d1 as MemoryClaimKind, d5 as MemoryDecisionTraceReceipt, d8 as MemoryGovernanceFinding, d9 as MemoryGovernanceFindingKind, dc as MemoryLifecycle, df as MemoryPackHint, dh as MemoryPackTraceMetadata, di as MemoryProposalAction, dk as MemoryRefKind, dm as MemoryReviewCandidateRef, dn as MemoryReviewDraftAction, dr as MemoryReviewPersistenceDecision, ds as MemoryReviewPersistenceKind, dv as MemoryReviewTrigger, dw as MemoryScope, dx as MemorySourceAdapter, dy as MemoryVisibility, dz as MessageEntry, dA as NormalizedLearnedSkillDecision, dB as ObserveCtx, dC as PersistedSessionState, dD as PresetDispatcher, dE as PresetTracingContext, dG as ReadonlyMutationTracker, dH as ReadonlyRecorder, dI as ReasoningDepth, dJ as RecentlyModifiedFile, dK as RunEvent, dL as RunOptions, dM as RunResult, dN as RunnableTool, dO as Runner, dP as RunnerEvent, dQ as RunnerLlmResult, dR as RunnerLlmReturn, dS as RunnerRecoveryTranscriptCarrier, dU as RunnerToolContext, dV as RunnerToolObserver, dX as RunnerToolResultBatch, dY as RunnerToolResultBatchTransform, dZ as Session, d_ as SessionDispatchResult, d$ as SessionEntry, e0 as SessionErrorMetadata, e1 as SessionExtension, e2 as SessionForkOptions, e6 as SpanData, e7 as SpanError, e8 as SpanImpl, e9 as SpanImplOptions, ea as StagedLearnedSkillArtifact, eb as StartTraceOptions, ee as StateWriterOptions, ei as StopHookSpanData, ej as SystemCap, ek as TerminalCtx, el as ToolCallSpanData, em as ToolCapability, en as ToolPermission, ep as TraceOptions, eq as Tracer, er as TracerOptions, es as UnifiedLearningReviewModelInput, et as UnifiedLearningReviewResult, eu as UnifiedLearningReviewRunner, ev as UserInteraction, ey as WorkflowApproval, ez as WorkflowApprovalSummary, eA as WorkflowArtifactRef, eB as WorkflowBudget, eD as WorkflowEventCorrelation, eE as WorkflowEventRecorder, eF as WorkflowEventType, eG as WorkflowIsolation, eJ as WorkflowMeta, eK as WorkflowModelHint, eN as WorkflowOutcomeError, eO as WorkflowOutcomeResult, eP as WorkflowOutcomeStatus, eQ as WorkflowOutcomeUsage, eR as WorkflowParallelOptions, eS as WorkflowProcessArtifact, eT as WorkflowProcessCounts, eU as WorkflowProcessEvent, eV as WorkflowProcessItem, eW as WorkflowProcessItemKind, eX as WorkflowProcessItemOrigin, eY as WorkflowProcessItemStatus, eZ as WorkflowProcessProgress, e_ as WorkflowProcessSnapshot, e$ as WorkflowProcessSource, f0 as WorkflowProcessStatus, f1 as WorkflowProcessSummaryStatus, f2 as WorkflowProcessTokenUsage, f3 as WorkflowProcessTracker, f4 as WorkflowProcessTrackerOptions, f5 as WorkflowRun, f7 as WorkflowRunStatus, f8 as WorkflowSpawnAgentInput, f9 as WorkflowSynthesis, fa as WorkflowSynthesizeInput, fb as WorkflowTaskHandle, fd as WorkflowTaskSnapshot, fe as WorkflowTaskStatus, ff as WorkflowTaskSummaryEventUpdate, fg as WorkflowTaskSummaryKind, fh as WorkflowTaskSummaryUpdate, fi as WorkflowTaskUsage, fj as WorkflowTaskVerification, fk as WorkflowTaskVerificationResult, fl as WorkflowWaitOptions, fm as _resetAdmittedAgentBindings, fn as _resetPresetDispatchers, fo as admitAndRecordLearnedSkillInvocation, fp as admitLearnedSkillBinding, fq as asSingleSelection, fr as assertLearnedCapabilityTransition, fs as attachRunnerRecoveryTranscript, ft as buildAssistantMessageFromLlmResult, fu as buildSystemPrompt, fv as buildToolResultMessage, fw as canTransitionLearnedCapability, fx as commitLearnedSkillRevision, fy as completeLearnedSkillOutcome, fz as completeLearnedSkillSessionOutcomes, fA as createAgent, fB as createHandoff, fC as createInMemorySession, fD as createInvariantSessionForAgent, fE as createLearnedCapabilityScope, fF as createLearnedSkillRecord, fG as createStateWriter, fH as createTrace, fI as createWorkflowProcessTracker, fJ as defaultTracer, fK as detectInstructionsInjection, fL as discoverInstances, fM as eventFromCapability, fN as exactInvokedSkillSnapshotForSession, fO as executeRunnerToolCall, fP as extractAssistantTextFromMessage, fQ as getActiveUserInteraction, fR as getAdmittedAgentBindings, fS as hashMemoryIdentityComponent, fT as invokeLearnedSkillCanary, fU as isAskUserCustomInputAnswer, fV as isFinalWorkflowProcessStatus, fW as isLearnedCapabilityRecordV2, fX as isRunnableTool, fY as isRunnerLlmResult, fZ as isUnifiedLearningReviewModelInput, f_ as learningEventIdFor, f$ as learningEventKindForLifecycle, g0 as listLearnedSkillUsageReceipts, g1 as matchesMemoryApplicability, g2 as memoryApplicabilityFingerprint, g3 as normalizeHostMetadata, g4 as normalizeUnifiedLearningReview, g5 as quarantineLearnedSkillRevision, g6 as readRunnerRecoveryTranscript, g7 as reconcileLearnedSkillBindingOutcomes, g8 as recordLearnedSkillOffered, g9 as registerPresetDispatcher, ga as releaseLearnedSkillBinding, gb as renderDeclarativeSkill, gc as resolveLearnedAreaPaths, gd as resolveProjectLearnedAreaRoot, ge as runAdmissionAudit, gf as sanitizeUnifiedLearningReviewInput, gg as setActiveUserInteraction, gh as setAdmittedAgentBindings, gi as slugifyLearnedCapabilityName, gj as stageLearnedSkillRevision, gk as validateDeclarativeSkillSpec } from './types-chunks/types.d-BA-Jwpfs.js';
3
+ import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-BlSv9l3V.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-BlSv9l3V.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-BRE_ErEj.js';
6
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
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
8
  import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-CVsdHw4j.js';
9
9
  export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-CVsdHw4j.js';
10
10
  export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult, c as CapabilitySearchFailure, d as CapabilitySearchFreshness, e as CapabilitySearchOptions, f as CapabilitySearchSnapshot } from './types-chunks/capability.d-K664nHOS.js';
11
11
  import { ChildProcess } from 'node:child_process';
12
- import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-CODuyyqy.js';
13
- export { M as MessageMode } from './types-chunks/types.d-CODuyyqy.js';
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-BH0ZkTGf.js';
13
+ export { M as MessageMode } from './types-chunks/types.d-BH0ZkTGf.js';
14
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';
15
+ import { R as ResolvedSkillSource } from './types-chunks/types.d-BbtGlKZu.js';
16
+ 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
17
  export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
20
18
  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
19
  export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo, d as OAuthLoginConsent, P as PerformOAuthLoginOptions, e as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, f as createMcpTransport, g as discoverAuthorizationServerMetadata, h as discoverOAuthEndpoints, i as discoverProtectedResourceMetadata, j as extractInsufficientScope, k as extractResourceMetadataUrl, l as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-Bgb4rdLN.js';
22
20
  export { createMcpTestServerFixture } from './sdk-mcp.js';
23
21
  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';
22
+ 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-DtCy7x64.js';
23
+ 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-D1twIhF9.js';
26
24
 
27
25
  declare const CONTEXT_SAFETY_FLOOR_TOKENS = 2048;
28
26
  declare const CONTEXT_SAFETY_RATIO = 0.03;
@@ -1677,6 +1675,8 @@ interface InvokeLlmJudgeOptions<TVerdict> {
1677
1675
  readonly abortSignal?: AbortSignal;
1678
1676
  /** Short structured-call output cap. Default 1024. */
1679
1677
  readonly maxOutputTokens?: number;
1678
+ /** Optional logical cache domain owned by the caller. */
1679
+ readonly promptCacheKey?: string;
1680
1680
  }
1681
1681
  /**
1682
1682
  * Run a one-shot LLM consult: a single forced tool call, fuzzy-matched,
@@ -1970,6 +1970,7 @@ declare class MemoryControlPlane implements MemoryController {
1970
1970
  constructor(options: CreateMemoryControlPlaneOptions);
1971
1971
  listInbox(): Promise<readonly MemoryActionProposal[]>;
1972
1972
  showProposal(id: string): Promise<MemoryActionProposal | undefined>;
1973
+ listHostAppliedEpisodeProposalIds(proposalIds: readonly string[]): Promise<readonly string[]>;
1973
1974
  approveProposal(id: string, expectedFingerprints: Readonly<Record<string, string>>): Promise<MemoryApplyResult>;
1974
1975
  rejectProposal(id: string, reason?: string): Promise<MemoryRejectResult>;
1975
1976
  listRefs(filter?: MemoryRefFilter): Promise<readonly MemoryItemRef[]>;
@@ -1982,11 +1983,14 @@ declare class MemoryControlPlane implements MemoryController {
1982
1983
  maybeRunAutoCurator(input?: MemoryAutoCuratorInput): Promise<MemoryAutoCuratorResult>;
1983
1984
  buildMemoryPack(input: MemoryPackInput): Promise<MemoryPack>;
1984
1985
  reviewMemoryFeedback(input: MemoryReviewInput): Promise<MemoryReviewPlan>;
1986
+ prepareEpisodeReview(digest: KodaXMemoryOutcomeDigest): Promise<MemoryReviewModelInput>;
1987
+ private prepareReviewInput;
1985
1988
  persistReviewPlan(plan: MemoryReviewPlan): Promise<readonly string[]>;
1986
1989
  private persistReviewPlanWithDecisions;
1987
1990
  private resolveReviewMemoryPlacement;
1988
1991
  private projectPlacement;
1989
1992
  reviewEpisode(digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal): Promise<MemoryEpisodeReviewResult>;
1993
+ applyReviewedEpisode(reviewedPlan: MemoryReviewPlan, digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal, revalidateAuthority?: () => Promise<void>): Promise<MemoryEpisodeReviewResult>;
1990
1994
  private consultReviewAction;
1991
1995
  private applyHostEligibleProposal;
1992
1996
  private projectLearningProposal;
@@ -2018,7 +2022,7 @@ declare class MemoryControlPlane implements MemoryController {
2018
2022
  */
2019
2023
  declare function sanitizePromptSafeMemoryClaim(value: string, maxChars?: number): string | undefined;
2020
2024
 
2021
- interface PendingEpisodeReview {
2025
+ interface PendingEpisodeReviewV1 {
2022
2026
  readonly version: 1;
2023
2027
  readonly reviewKey: string;
2024
2028
  readonly digest: KodaXMemoryOutcomeDigest;
@@ -2027,9 +2031,107 @@ interface PendingEpisodeReview {
2027
2031
  readonly ownerProjectHash?: string;
2028
2032
  readonly createdAt: string;
2029
2033
  }
2034
+ interface PendingEpisodeReviewV2 {
2035
+ readonly version: 2;
2036
+ readonly jobId: string;
2037
+ readonly reviewKey: string;
2038
+ readonly digest: KodaXMemoryOutcomeDigest;
2039
+ readonly ownerSessionRef: string;
2040
+ readonly ownerAgentHash: string;
2041
+ readonly ownerProjectHash?: string;
2042
+ readonly branchId: string;
2043
+ readonly branchEpoch: number;
2044
+ readonly authorityCeiling: 'memory_and_project_skill';
2045
+ readonly createdAt: string;
2046
+ }
2047
+ type PendingEpisodeReview = PendingEpisodeReviewV1 | PendingEpisodeReviewV2;
2048
+ type EpisodeReviewJobStatus = 'pending' | 'processing' | 'decided' | 'completed' | 'attention';
2049
+ interface EpisodeReviewJobState {
2050
+ readonly schemaVersion: 1;
2051
+ readonly jobId: string;
2052
+ readonly status: EpisodeReviewJobStatus;
2053
+ readonly claimEpoch: number;
2054
+ readonly claimToken?: string;
2055
+ readonly leaseDeadline?: string;
2056
+ readonly providerAttempts: number;
2057
+ readonly applyAttempts: number;
2058
+ readonly applyAttemptsByCarrier: {
2059
+ readonly memory: number;
2060
+ readonly skill: number;
2061
+ };
2062
+ readonly completionAttempts: number;
2063
+ readonly nextAttemptAt?: string;
2064
+ readonly nextApplyAttemptAt?: string;
2065
+ readonly nextCompletionAttemptAt?: string;
2066
+ readonly lastError?: string;
2067
+ readonly updatedAt: string;
2068
+ }
2069
+ interface EpisodeReviewClaim {
2070
+ readonly jobId: string;
2071
+ readonly reviewKey: string;
2072
+ readonly ownerSessionRef: string;
2073
+ readonly branchId: string;
2074
+ readonly branchEpoch: number;
2075
+ readonly epoch: number;
2076
+ readonly token: string;
2077
+ readonly leaseDeadline: string;
2078
+ }
2079
+ interface EpisodeReviewInputSpec {
2080
+ readonly evidence: unknown;
2081
+ readonly promptRevision: string;
2082
+ readonly schemaRevision: string;
2083
+ readonly policyRevision: string;
2084
+ readonly providerRevision: string;
2085
+ }
2086
+ interface EpisodeReviewInputCheckpoint extends EpisodeReviewInputSpec {
2087
+ readonly version: 1;
2088
+ readonly jobId: string;
2089
+ readonly evidenceBytes: string;
2090
+ readonly evidenceHash: string;
2091
+ readonly createdAt: string;
2092
+ }
2093
+ interface EpisodeReviewDecisionInput {
2094
+ readonly inputHash: string;
2095
+ readonly memoryProposalIds: readonly string[];
2096
+ readonly requiredCarriers?: readonly ('memory' | 'skill')[];
2097
+ readonly memoryPlan?: unknown;
2098
+ readonly capabilityDecision?: unknown;
2099
+ }
2100
+ interface EpisodeReviewDecision extends EpisodeReviewDecisionInput {
2101
+ readonly version: 1;
2102
+ readonly jobId: string;
2103
+ readonly decisionId: string;
2104
+ readonly committedAt: string;
2105
+ }
2106
+ interface EpisodeReviewActionInput {
2107
+ readonly actionId: string;
2108
+ readonly decisionId: string;
2109
+ readonly carrier: 'memory' | 'skill';
2110
+ readonly resultRefs: readonly string[];
2111
+ }
2112
+ interface EpisodeReviewActionReceipt extends EpisodeReviewActionInput {
2113
+ readonly version: 1;
2114
+ readonly jobId: string;
2115
+ readonly committedAt: string;
2116
+ }
2117
+ type EpisodeReviewFailureKind = 'provider_timeout' | 'provider_error' | 'malformed_response' | 'shutdown' | 'budget_unavailable' | 'provider_unavailable';
2118
+ declare class EpisodeReviewFailure extends Error {
2119
+ readonly kind: EpisodeReviewFailureKind;
2120
+ constructor(kind: EpisodeReviewFailureKind, message: string);
2121
+ }
2122
+ interface EpisodeReviewJobSnapshot {
2123
+ readonly envelope: PendingEpisodeReviewV2;
2124
+ readonly state: EpisodeReviewJobState;
2125
+ readonly input?: EpisodeReviewInputCheckpoint;
2126
+ readonly decision?: EpisodeReviewDecision;
2127
+ readonly actions: readonly EpisodeReviewActionReceipt[];
2128
+ }
2030
2129
  interface EpisodeReviewReceipt {
2031
2130
  readonly version: 1;
2131
+ readonly jobId?: string;
2032
2132
  readonly reviewKey: string;
2133
+ readonly ownerAgentHash?: string;
2134
+ readonly ownerProjectHash?: string;
2033
2135
  readonly proposalIds: readonly string[];
2034
2136
  readonly completedAt: string;
2035
2137
  }
@@ -2038,6 +2140,11 @@ interface EpisodeReviewDrainOptions {
2038
2140
  readonly maxEntries?: number;
2039
2141
  readonly revalidate: (entry: PendingEpisodeReview) => Promise<EpisodeReviewDrainEligibility>;
2040
2142
  readonly review: (entry: PendingEpisodeReview) => Promise<readonly string[]>;
2143
+ readonly prepareV2Input?: (entry: PendingEpisodeReviewV2) => Promise<EpisodeReviewInputSpec>;
2144
+ readonly decideV2?: (entry: PendingEpisodeReviewV2, input: EpisodeReviewInputCheckpoint, signal: AbortSignal) => Promise<EpisodeReviewDecisionInput>;
2145
+ readonly listV2Actions?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision) => readonly ('memory' | 'skill')[];
2146
+ 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[]>;
2147
+ readonly onV2Completed?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision, proposalIds: readonly string[]) => Promise<void>;
2041
2148
  }
2042
2149
  interface EpisodeReviewDrainResult {
2043
2150
  readonly reviewed: number;
@@ -2049,11 +2156,42 @@ interface EpisodeReviewDrainResult {
2049
2156
  readonly error: string;
2050
2157
  }[];
2051
2158
  }
2052
- declare function persistPendingEpisodeReview(identity: MemoryContextIdentity, digest: KodaXMemoryOutcomeDigest): Promise<{
2159
+ declare class EpisodeReviewBranchChangedError extends Error {
2160
+ constructor();
2161
+ }
2162
+ declare function captureEpisodeReviewBranchEpoch(identity: MemoryContextIdentity): Promise<number>;
2163
+ declare function persistPendingEpisodeReview(identity: MemoryContextIdentity, digest: KodaXMemoryOutcomeDigest, options?: {
2164
+ readonly expectedBranchEpoch?: number;
2165
+ readonly persistOwner?: (entry: PendingEpisodeReviewV2) => Promise<void>;
2166
+ }): Promise<{
2053
2167
  readonly path: string;
2054
- readonly entry: PendingEpisodeReview;
2168
+ readonly entry: PendingEpisodeReviewV2;
2169
+ }>;
2170
+ declare function claimEpisodeReview(identity: MemoryContextIdentity, reviewKeyOrJobId: string, options?: {
2171
+ readonly now?: Date;
2172
+ readonly leaseMs?: number;
2173
+ }): Promise<EpisodeReviewClaim | undefined>;
2174
+ declare function freezeEpisodeReviewInput(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, spec: EpisodeReviewInputSpec, now?: Date): Promise<EpisodeReviewInputCheckpoint>;
2175
+ declare function commitEpisodeReviewDecision(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, input: EpisodeReviewDecisionInput, now?: Date): Promise<EpisodeReviewDecision>;
2176
+ declare function commitEpisodeReviewAction(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, input: EpisodeReviewActionInput, now?: Date): Promise<EpisodeReviewActionReceipt>;
2177
+ declare function withEpisodeReviewClaimAuthority<T>(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, operation: (revalidateAuthority: () => Promise<void>) => Promise<T>): Promise<T>;
2178
+ declare function failEpisodeReviewAttempt(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, failure: {
2179
+ readonly kind: EpisodeReviewFailureKind;
2180
+ readonly message: string;
2181
+ }, now?: Date): Promise<EpisodeReviewJobState>;
2182
+ declare function failEpisodeReviewApply(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, failure: {
2183
+ readonly carrier: 'memory' | 'skill';
2184
+ readonly message: string;
2185
+ }, now?: Date): Promise<EpisodeReviewJobState>;
2186
+ declare function deferEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, reason: string, now?: Date): Promise<EpisodeReviewJobState>;
2187
+ declare function completeFencedEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, proposalIds: readonly string[], now?: Date): Promise<{
2188
+ readonly acknowledged: boolean;
2189
+ readonly receiptPath: string;
2055
2190
  }>;
2191
+ declare function discardFencedEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, reason: string, now?: Date): Promise<void>;
2192
+ declare function inspectEpisodeReviewJob(identity: MemoryContextIdentity, reviewKeyOrJobId: string): Promise<EpisodeReviewJobSnapshot | undefined>;
2056
2193
  declare function listPendingEpisodeReviews(filter: {
2194
+ readonly configHome?: string;
2057
2195
  readonly tenantId: string;
2058
2196
  readonly agentId?: string;
2059
2197
  readonly projectId?: string;
@@ -2063,6 +2201,31 @@ declare function completeEpisodeReview(identity: MemoryContextIdentity, reviewKe
2063
2201
  readonly receiptPath: string;
2064
2202
  }>;
2065
2203
  declare function rewindPendingEpisodeReviews(identity: MemoryContextIdentity, throughSequence: number): Promise<number>;
2204
+ declare function rewindPendingEpisodeReviewsForSession(input: {
2205
+ readonly configHome?: string;
2206
+ readonly sessionId: string;
2207
+ }, throughSequence: number): Promise<number>;
2208
+ /**
2209
+ * Fences every tenant-owned review job for a Session unless its exact durable
2210
+ * job identity is attached to the prospective active lineage branch. Legacy
2211
+ * lineage records may supply digest.id as a conservative fallback.
2212
+ */
2213
+ declare function fencePendingEpisodeReviewsForSession(input: {
2214
+ readonly configHome?: string;
2215
+ readonly sessionId: string;
2216
+ }, activeReviewIds: readonly string[]): Promise<number>;
2217
+ /**
2218
+ * Establishes the lock order used by both review completion and Session branch
2219
+ * mutation: the Session root registry first, every sorted tenant branch fence
2220
+ * next, then the caller-owned Session transaction. The supplied fence operation
2221
+ * runs without reacquiring those locks, so a mutation can fence its prospective
2222
+ * lineage and persist that exact lineage atomically with respect to review
2223
+ * effects, new tenant registration and completion delivery.
2224
+ */
2225
+ declare function withPendingEpisodeReviewSessionFence<T>(input: {
2226
+ readonly configHome?: string;
2227
+ readonly sessionId: string;
2228
+ }, operation: (fence: (activeReviewIds: readonly string[]) => Promise<number>) => Promise<T>): Promise<T>;
2066
2229
  declare function drainPendingEpisodeReviews(identity: MemoryContextIdentity, options: EpisodeReviewDrainOptions): Promise<EpisodeReviewDrainResult>;
2067
2230
 
2068
2231
  type SkillWriteOrigin = 'foreground_user' | 'assistant_tool' | 'background_learning';
@@ -2088,7 +2251,7 @@ interface MemoryHandoffMetadata {
2088
2251
  readonly preconditions?: string;
2089
2252
  readonly applicability?: MemoryApplicability;
2090
2253
  readonly requestedLifecycle?: 'active' | 'provisional';
2091
- readonly episodeOutcome?: 'succeeded' | 'failed';
2254
+ readonly episodeOutcome?: 'succeeded' | 'failed' | 'cancelled';
2092
2255
  readonly verifiedEvidence?: boolean;
2093
2256
  readonly evidenceProjectId?: string;
2094
2257
  }
@@ -2304,8 +2467,9 @@ declare function readLearningProposalStore(filePath: string): Promise<LearningPr
2304
2467
  declare function upsertLearningProposal(filePath: string, proposal: ReviewableLearningProposal, options?: {
2305
2468
  readonly now?: () => string;
2306
2469
  readonly applyPlan?: StoredLearningApplyPlan;
2470
+ readonly revalidateAuthority?: () => Promise<void>;
2307
2471
  }): Promise<StoredLearningProposal>;
2308
- declare function resolveLearningProposalStore(cwd: string): string;
2472
+ declare function resolveLearningProposalStore(cwd: string, configHome?: string): string;
2309
2473
  declare function updateLearningProposalStatus(filePath: string, proposalId: string, status: LearningProposalReviewStatus, options?: {
2310
2474
  readonly rejectedReason?: string;
2311
2475
  readonly appliedAt?: string;
@@ -2318,6 +2482,7 @@ declare function updateLearningProposalStatus(filePath: string, proposalId: stri
2318
2482
  readonly approvalExpectedFingerprints?: Readonly<Record<string, string>>;
2319
2483
  readonly approvalResultingFingerprints?: Readonly<Record<string, string>>;
2320
2484
  readonly now?: () => string;
2485
+ readonly revalidateAuthority?: () => Promise<void>;
2321
2486
  }): Promise<StoredLearningProposal>;
2322
2487
 
2323
2488
  declare function applySkillLearningProposal(input: SkillLearningApplyInput): Promise<SkillMutationApplyResult>;
@@ -2482,14 +2647,14 @@ interface LearningCenterService {
2482
2647
  acknowledge(nameOrSlug: string): Promise<void>;
2483
2648
  markSeen(nameOrSlug: string): Promise<void>;
2484
2649
  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>;
2650
+ reject(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2651
+ disable(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2652
+ rollback(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2488
2653
  archive(nameOrSlug: string): Promise<void>;
2489
2654
  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>;
2655
+ promote(nameOrSlug: string, scope: 'user', authority?: LearningExplicitUserAuthority): Promise<void>;
2656
+ review(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2657
+ trust(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2493
2658
  record(record: LearnedCapabilityRecord): Promise<LearnedCapabilityRecord>;
2494
2659
  }
2495
2660
  declare class FileLearningCenterService implements LearningCenterService {
@@ -2509,18 +2674,17 @@ declare class FileLearningCenterService implements LearningCenterService {
2509
2674
  acknowledge(nameOrSlug: string): Promise<void>;
2510
2675
  markSeen(nameOrSlug: string): Promise<void>;
2511
2676
  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>;
2677
+ reject(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2678
+ disable(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2679
+ rollback(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2515
2680
  archive(nameOrSlug: string): Promise<void>;
2516
2681
  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>;
2682
+ promote(nameOrSlug: string, scope: 'user', authority?: LearningExplicitUserAuthority): Promise<void>;
2683
+ review(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2684
+ trust(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
2520
2685
  record(record: LearnedCapabilityRecord): Promise<LearnedCapabilityRecord>;
2521
2686
  private recordUnlocked;
2522
2687
  private transitionByName;
2523
- private transition;
2524
2688
  private executeDriverAction;
2525
2689
  private driverFor;
2526
2690
  private loadCapabilities;
@@ -2531,32 +2695,6 @@ declare class FileLearningCenterService implements LearningCenterService {
2531
2695
  }
2532
2696
  declare function createLearningCenterService(options: CreateLearningCenterServiceOptions): FileLearningCenterService;
2533
2697
 
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
2698
  interface LearningProposalProjection {
2561
2699
  readonly records: readonly LearnedCapabilityRecord[];
2562
2700
  readonly warnings: readonly string[];
@@ -2566,12 +2704,47 @@ declare function projectLearningProposals(filePath: string): Promise<LearningPro
2566
2704
  declare function getLearnedExtensionToolName(slug: string, toolName: string): string;
2567
2705
  declare function isLearnedExtensionCommandAllowed(_command: string): false;
2568
2706
 
2569
- declare function appendMemoryOutcomeDigest(lineage: KodaXSessionLineage, digest: KodaXMemoryOutcomeDigest): KodaXSessionLineage;
2707
+ interface CreateLearnedSkillActionDriverOptions {
2708
+ readonly learnedAreaRoot: string;
2709
+ readonly learnedAreaKind?: 'global' | 'project';
2710
+ readonly userSkillsRoot: string;
2711
+ readonly now?: () => string;
2712
+ }
2713
+ /**
2714
+ * Explicit-user actions for one project Learned Area.
2715
+ *
2716
+ * The Learning Center invokes this driver while holding the carrier owner
2717
+ * lock, then commits the returned next record with the usual revision CAS.
2718
+ */
2719
+ declare function createLearnedSkillActionDriver(options: CreateLearnedSkillActionDriverOptions): LearningActionDriver;
2720
+
2721
+ interface LegacyLearnedSkillMigrationResult {
2722
+ readonly migratedActive: number;
2723
+ readonly recordedAttention: number;
2724
+ readonly alreadyComplete: boolean;
2725
+ }
2726
+ /**
2727
+ * One-time compatibility bridge from F266's loose global learned/skills tree.
2728
+ * V1 records have no trusted historical content fingerprint. All loose
2729
+ * artifacts therefore become non-loadable Ready/attention instead of being
2730
+ * trusted from their current mutable bytes.
2731
+ */
2732
+ declare function migrateLegacyLearnedSkillsForProject(configHome: string, projectStore: LearnedAreaStore, scope: LearnedCapabilityScope): Promise<LegacyLearnedSkillMigrationResult>;
2733
+
2734
+ declare function withLearningFileLock<T>(lockPath: string, operation: () => Promise<T>, acquireTimeoutMs?: number): Promise<T>;
2735
+
2736
+ declare function appendMemoryOutcomeDigest(lineage: KodaXSessionLineage, digest: KodaXMemoryOutcomeDigest, jobId?: string): KodaXSessionLineage;
2570
2737
  declare function appendMemoryReviewReceipt(lineage: KodaXSessionLineage, input: {
2738
+ readonly jobId?: string;
2571
2739
  readonly reviewKey: string;
2572
2740
  readonly proposalIds: readonly string[];
2573
2741
  readonly completedAt: string;
2574
2742
  }): KodaXSessionLineage;
2743
+ /**
2744
+ * Returns exact durable review identities for outcome digests attached to the
2745
+ * active branch. New records use jobId; legacy records fall back to digest.id.
2746
+ */
2747
+ declare function getActiveMemoryOutcomeReviewIds(lineage: KodaXSessionLineage): readonly string[];
2575
2748
  declare function appendMemoryClientNotice(lineage: KodaXSessionLineage, input: {
2576
2749
  readonly episodeId: string;
2577
2750
  readonly summaries: readonly string[];
@@ -3373,6 +3546,10 @@ interface AgentControllerOptions {
3373
3546
  readonly executorFor?: (kind: AgentExecutionKind) => AgentTurnExecutor;
3374
3547
  readonly budget?: AgentBudgetPort;
3375
3548
  readonly store?: AgentActorStore;
3549
+ /** Unique Runtime/controller claim for one durable Session Actor tree. */
3550
+ readonly owner?: AgentActorOwner;
3551
+ /** Conservative liveness probe for a persisted foreign owner. Omitted means alive. */
3552
+ readonly isOwnerAlive?: (owner: AgentActorOwner) => boolean | Promise<boolean>;
3376
3553
  readonly now?: () => string;
3377
3554
  readonly warn?: (message: string) => void;
3378
3555
  readonly onBackgroundError?: (error: unknown) => void;
@@ -3396,9 +3573,15 @@ declare class AgentActorController {
3396
3573
  private readonly now;
3397
3574
  private mutationTail;
3398
3575
  private revision;
3576
+ private snapshotSchemaVersion;
3577
+ private durableOwner?;
3578
+ private initialized;
3579
+ private ownershipLost;
3580
+ private ownershipReleased;
3399
3581
  private committedSnapshot;
3400
3582
  constructor(options?: AgentControllerOptions);
3401
3583
  initialize(): Promise<void>;
3584
+ ownsDurableFence(): boolean;
3402
3585
  bind(callerPath: string): AgentActorClient;
3403
3586
  /** Trusted host API: register a zero-slot Workflow protocol owner in this tree. */
3404
3587
  createProtocolOwner(callerPath: string, ownerId: string): Promise<AgentActorClient>;
@@ -3414,6 +3597,13 @@ declare class AgentActorController {
3414
3597
  followup(callerPath: string, targetPath: string, objective: string, metadata?: Readonly<Record<string, AgentMetadataValue>>, options?: AgentMutationOptions): Promise<AgentFollowupResult>;
3415
3598
  interrupt(callerPath: string, targetPath: string, reason?: string, scope?: AgentInterruptScope): Promise<void>;
3416
3599
  close(callerPath: string, targetPath: string, reason?: string): Promise<void>;
3600
+ /**
3601
+ * Final local teardown after the host has durably removed the backing store.
3602
+ * No mutation is allowed here because there is no longer a snapshot to save.
3603
+ */
3604
+ disposeAfterStoreRemoval(reason?: string): void;
3605
+ /** Interrupts every local execution while retaining the durable owner fence. */
3606
+ quiesce(reason?: string): Promise<void>;
3417
3607
  /** Stops in-flight work for process shutdown while preserving reusable Actor identities. */
3418
3608
  shutdown(reason?: string): Promise<void>;
3419
3609
  list(callerPath: string): AgentTreeSnapshot;
@@ -3456,6 +3646,11 @@ declare class AgentActorController {
3456
3646
  private restore;
3457
3647
  private republishUnacknowledgedRootCompletions;
3458
3648
  private recoverUnmatchedTurns;
3649
+ private claimOwnership;
3650
+ private releaseOwnershipAfterInitializationFailure;
3651
+ private assertWritableOwner;
3652
+ private fenceAfterSnapshotConflict;
3653
+ private isInterruptionDurable;
3459
3654
  private notify;
3460
3655
  private publishCommittedEvent;
3461
3656
  private publishCommittedMessage;
@@ -3484,6 +3679,26 @@ declare class AgentRevisionConflictError extends Error {
3484
3679
  readonly code: "revision_conflict";
3485
3680
  constructor(expectedRevision: number, currentRevision: number);
3486
3681
  }
3682
+ declare class AgentActorStoreConflictError extends Error {
3683
+ readonly expectedRevision: number;
3684
+ readonly currentRevision: number;
3685
+ readonly code: "actor_snapshot_conflict";
3686
+ constructor(expectedRevision: number, currentRevision: number, scope?: string);
3687
+ }
3688
+ declare class AgentOwnerConflictError extends Error {
3689
+ readonly ownerRuntimeId: string | undefined;
3690
+ readonly currentRevision: number;
3691
+ readonly localExecutionsAborted: boolean;
3692
+ readonly code: "actor_owner_conflict";
3693
+ readonly retryable: false;
3694
+ constructor(ownerRuntimeId: string | undefined, currentRevision: number, localExecutionsAborted: boolean);
3695
+ }
3696
+ declare class AgentOwnerUnknownError extends Error {
3697
+ readonly currentRevision: number;
3698
+ readonly code: "actor_owner_unknown";
3699
+ readonly retryable: false;
3700
+ constructor(currentRevision: number);
3701
+ }
3487
3702
  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
3703
  declare class AgentControlError extends Error {
3489
3704
  readonly code: AgentControlErrorCode;
@@ -3500,5 +3715,5 @@ declare class AgentTurnScheduler {
3500
3715
  restore(turnIds: readonly string[]): void;
3501
3716
  }
3502
3717
 
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 };
3718
+ export { Agent, AgentActorClient, AgentActorController, AgentActorOwner, AgentActorStore, AgentActorStoreConflictError, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentBudgetPort, AgentCancellationUncertainError, AgentCapabilities, AgentControlError, AgentDataClassification, AgentDetail, AgentEvent, AgentExecutionKind, AgentExecutionResult, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentFollowupResult, AgentInterruptScope, AgentLimitReached, AgentLimitReachedError, AgentMailboxMessage, AgentManifest, AgentMessage, AgentMetadataValue, AgentMutationOptions, AgentOutput, AgentOwnerConflictError, AgentOwnerUnknownError, 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, 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, createAgentActorController, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLearnedSkillActionDriver, createLearningCenterService, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, deferEpisodeReview, detectHandoffSignal, detectIdleYield, discardFencedEpisodeReview, 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, 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, projectLearningProposals, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, 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 };
3719
+ export type { AdmissionMetricsSnapshot, AgentControlErrorCode, AgentControllerOptions, 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, 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, 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 };