@kodax-ai/kodax 0.7.83 → 0.7.85

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 (91) hide show
  1. package/CHANGELOG.md +154 -4
  2. package/README.md +48 -26
  3. package/README_CN.md +26 -21
  4. package/dist/chunks/agent-OQ37XUWF.js +2 -0
  5. package/dist/chunks/argument-completer-IMRSIF2N.js +2 -0
  6. package/dist/chunks/chunk-2XJQNFVR.js +379 -0
  7. package/dist/chunks/chunk-3E4OSFP2.js +1279 -0
  8. package/dist/chunks/chunk-CDWYKVZC.js +482 -0
  9. package/dist/chunks/chunk-CZCEFGQG.js +412 -0
  10. package/dist/chunks/chunk-IA246OAN.js +679 -0
  11. package/dist/chunks/chunk-IWRNGH4M.js +319 -0
  12. package/dist/chunks/chunk-MJ4G5ZCW.js +2 -0
  13. package/dist/chunks/{chunk-RAQGGVIF.js → chunk-ODRLFQQH.js} +1 -1
  14. package/dist/chunks/chunk-RSOAHVUR.js +5 -0
  15. package/dist/chunks/chunk-RTFVMEF6.js +415 -0
  16. package/dist/chunks/{chunk-XB2JNLXH.js → chunk-SR4E5FQK.js} +2 -2
  17. package/dist/chunks/{chunk-HI6RCW5Y.js → chunk-TBBY2DKE.js} +2 -2
  18. package/dist/chunks/chunk-UH5WNJXF.js +92 -0
  19. package/dist/chunks/{chunk-6QILIBOU.js → chunk-ZVOXWLT6.js} +214 -201
  20. package/dist/chunks/compaction-config-3WLLNN57.js +2 -0
  21. package/dist/chunks/{construction-bootstrap-E4M3CY3N.js → construction-bootstrap-CZ6NWEWQ.js} +1 -1
  22. package/dist/chunks/dist-NFLLOZWF.js +2 -0
  23. package/dist/chunks/host-LWUSSCWH.js +2 -0
  24. package/dist/chunks/run-manager-PBMOVP7A.js +2 -0
  25. package/dist/chunks/utils-KFLK3EHJ.js +2 -0
  26. package/dist/index.d.ts +17 -15
  27. package/dist/index.js +2 -2
  28. package/dist/kodax_bootstrap.js +1 -1
  29. package/dist/kodax_cli.js +1975 -1564
  30. package/dist/kodax_resume.js +269 -90
  31. package/dist/runtime-worker.js +1824 -1419
  32. package/dist/sandbox-workspace-session.js +979 -66
  33. package/dist/sdk-a2a.d.ts +11 -10
  34. package/dist/sdk-a2a.js +9 -8
  35. package/dist/sdk-agent.d.ts +39 -299
  36. package/dist/sdk-agent.js +1 -1
  37. package/dist/sdk-coding.d.ts +103 -16
  38. package/dist/sdk-coding.js +1 -1
  39. package/dist/sdk-experimental-memory.d.ts +7 -20
  40. package/dist/sdk-experimental-memory.js +1 -1
  41. package/dist/sdk-mcp.js +1 -1
  42. package/dist/sdk-media.js +1 -1
  43. package/dist/sdk-repl.d.ts +14 -13
  44. package/dist/sdk-repl.js +2 -2
  45. package/dist/sdk-runtime.d.ts +64 -23
  46. package/dist/sdk-runtime.js +1 -1
  47. package/dist/sdk-sandbox.js +1 -1
  48. package/dist/sdk-session.d.ts +7 -6
  49. package/dist/sdk-session.js +1 -1
  50. package/dist/sdk-skills.d.ts +2 -2
  51. package/dist/sdk-skills.js +1 -1
  52. package/dist/semantic-worker.js +251 -64
  53. package/dist/types-chunks/{bash-prefix-extractor.d-CJM7OY-L.d.ts → bash-prefix-extractor.d-BnZQDirs.d.ts} +130 -13
  54. package/dist/types-chunks/{capsule.d-B7yoH4dM.d.ts → capsule.d-CN_iMqAS.d.ts} +2 -1
  55. package/dist/types-chunks/controller.d-A73Kf6tH.d.ts +105 -0
  56. package/dist/types-chunks/{controller.d-CYNuR2n9.d.ts → controller.d-Dzxz22X-.d.ts} +28 -1020
  57. package/dist/types-chunks/{guardrail.d-fM3mn4Op.d.ts → guardrail.d-BCkgaWT1.d.ts} +25 -19
  58. package/dist/types-chunks/{history-retrieval.d-BDI-ZMvY.d.ts → history-retrieval.d-Debbzn1z.d.ts} +1 -1
  59. package/dist/types-chunks/{public-api.d-i10kvYFs.d.ts → public-api.d-N6G6Jw8X.d.ts} +3 -2
  60. package/dist/types-chunks/{repl.d-Cs3eqGVT.d.ts → repl.d-BkTIOkJD.d.ts} +5 -5
  61. package/dist/types-chunks/review-inbox.d-DuZqFX-z.d.ts +221 -0
  62. package/dist/types-chunks/{run-manager.d-CodHf6rw.d.ts → run-manager.d-BS4lJfL3.d.ts} +1 -1
  63. package/dist/types-chunks/{sdk-session-CRXu5xNs.d.ts → sdk-session-DLkZTOc-.d.ts} +2 -2
  64. package/dist/types-chunks/{shell-command-sets.d-DfeSUjjM.d.ts → shell-command-sets.d-BrLw-WN9.d.ts} +3 -2
  65. package/dist/types-chunks/{types-Bf3Y3mW-.d.ts → types-PHjfwebT.d.ts} +62 -190
  66. package/dist/types-chunks/{types.d-BbtGlKZu.d.ts → types.d-BSPlmJqf.d.ts} +25 -6
  67. package/dist/types-chunks/{types.d-DIXZFauU.d.ts → types.d-Bo4fyMLu.d.ts} +1 -1
  68. package/dist/types-chunks/{types.d-DKs4tfSd.d.ts → types.d-Ch3BD97c.d.ts} +2 -2
  69. package/dist/types-chunks/types.d-DlLBRqZ9.d.ts +1057 -0
  70. package/dist/types-chunks/{utils.d-CgITiLyc.d.ts → utils.d-BI-kjuev.d.ts} +7 -4
  71. package/package.json +4 -2
  72. package/dist/chunks/agent-S7LMMTG7.js +0 -2
  73. package/dist/chunks/argument-completer-SQHG2LYE.js +0 -2
  74. package/dist/chunks/chunk-37RT45HT.js +0 -379
  75. package/dist/chunks/chunk-3DKQC7A2.js +0 -479
  76. package/dist/chunks/chunk-45E23YJI.js +0 -885
  77. package/dist/chunks/chunk-6UENDY33.js +0 -89
  78. package/dist/chunks/chunk-DSFHIUHZ.js +0 -655
  79. package/dist/chunks/chunk-DZUMH6GJ.js +0 -2
  80. package/dist/chunks/chunk-E7C4DRD2.js +0 -5
  81. package/dist/chunks/chunk-EVXIJPZ6.js +0 -218
  82. package/dist/chunks/chunk-KHEFUT6O.js +0 -5
  83. package/dist/chunks/chunk-LF2JBTBG.js +0 -319
  84. package/dist/chunks/chunk-TC2VHPG5.js +0 -348
  85. package/dist/chunks/chunk-URCS6CVP.js +0 -292
  86. package/dist/chunks/compaction-config-SSQ5NXUP.js +0 -2
  87. package/dist/chunks/dist-MIXP4ULB.js +0 -2
  88. package/dist/chunks/host-ZCPI7SMC.js +0 -2
  89. package/dist/chunks/run-manager-4RYG7HSP.js +0 -2
  90. package/dist/chunks/utils-7DKE2EKT.js +0 -2
  91. package/docs/SDK_EMBEDDER_GUIDE.md +0 -5735
@@ -1,25 +1,29 @@
1
- import { eg as Span, eB as Trace, f as Agent, bs as Handoff, e2 as RunnerToolCall, e5 as RunnerToolResult, ae as AgentMessage, ad as AgentManifest, d0 as ManifestPatch, bx as InvariantId, dP as QualityInvariant, bN as KodaXInputArtifactSource, bL as KodaXImageMediaType, cl as KodaXVideoMediaType, bG as KodaXFileInputArtifact, bK as KodaXImageInputArtifact, ck as KodaXVideoInputArtifact, bM as KodaXInputArtifact, b5 as DiscoveredInstance, ee as SessionMeta, ef as SessionStateSnapshot, eo as StateWriterFs, bw as InstanceDiscoveryFs, en as StateWriter, eq as StopHookContext, es as StopHookResult, er as StopHookFn, db as MemoryContextIdentity, dk as MemoryItemRef, c1 as KodaXSessionLineage, bU as KodaXSessionArtifactLedgerEntry, dg as MemoryEvent, dD as MemoryReviewRunner, dc as MemoryController, d1 as MemoryActionProposal, d4 as MemoryApplyResult, dv as MemoryRejectResult, dt as MemoryRefFilter, d9 as MemoryBodySnapshot, dm as MemoryLifecycleOperationResult, dd as MemoryCuratorInput, dj as MemoryGovernanceReport, d7 as MemoryAutoCuratorInput, d8 as MemoryAutoCuratorResult, dq as MemoryPackInput, dn as MemoryPack, dy as MemoryReviewInput, dC as MemoryReviewPlan, bR as KodaXMemoryOutcomeDigest, dz as MemoryReviewModelInput, df as MemoryEpisodeReviewResult, d2 as MemoryApplicability, cJ as LearningActionDriver, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cY as LearningSurfaceSnapshot, cO as LearningEvent, cX as LearningSubscribeOptions, cQ as LearningExplicitUserAuthority, cn as LearnedAreaStore, cy as LearnedCapabilityScope, ca as KodaXSessionStorage, a_ as CompactionUpdate, bY as KodaXSessionData, bI as KodaXGoalState, bH as KodaXGoalEventType, bZ as KodaXSessionEntry, b$ as KodaXSessionGoalEntry, aV as CompactionConfig, aW as CompactionDetails, aY as CompactionResult, bE as KodaXExtensionStore, bF as KodaXExtensionStoreEntry, bO as KodaXJsonValue, fj as WorkflowRunState, eZ as WorkflowOutcome, eK as WorkflowApi, eY as WorkflowModule, eJ as WorkflowAgentBackend, eU as WorkflowLimits, eP as WorkflowEvent, eV as WorkflowLogEvent, fp as WorkflowTaskResult, a0 as AgentExecutorPlaneStore, a$ as CreateAgentExecutorPlaneOptions, Y as AgentExecutorPlane, bf as ExternalAgentProtocol, W as AgentExecutorFactory, w as AgentBudgetExhausted, aa as AgentLimitReached } from './types-chunks/controller.d-CYNuR2n9.js';
2
- export { A as ASK_USER_BACK_SIGNAL, a as ASK_USER_CUSTOM_INPUT_SIGNAL, b as AdmissionAuditOptions, c as AdmissionCtx, d as AdmissionVerdict, e as AdmittedHandle, g as AgentActor, h as AgentActorClient, i as AgentActorController, j as AgentActorOwner, k as AgentActorSnapshot, l as AgentActorSnapshotV1, m as AgentActorSnapshotV2, n as AgentActorState, o as AgentActorStore, p as AgentArtifactDescriptor, q as AgentArtifactPolicy, r as AgentArtifactPolicyDecision, s as AgentArtifactPolicyInput, t as AgentArtifactReference, u as AgentBudgetAdmission, v as AgentBudgetAdmissionInput, x as AgentBudgetPort, y as AgentCapabilities, z as AgentCapabilityDeclaration, B as AgentCapabilityRequirements, C as AgentContinuationInput, D as AgentControllerHealth, E as AgentControllerOptions, F as AgentCredentialBroker, G as AgentDataClassification, H as AgentDetail, I as AgentDispatchContext, J as AgentDispatchPolicy, K as AgentDispatchPolicyDecision, L as AgentDispatchPolicyInput, M as AgentDispatchabilitySnapshot, N as AgentDispatchabilityStatus, O as AgentEffectDeclaration, P as AgentEvent, Q as AgentEventKind, R as AgentExecutionInput, S as AgentExecutionKind, T as AgentExecutionResult, U as AgentExecutor, V as AgentExecutorEvent, X as AgentExecutorFactoryContext, Z as AgentExecutorPlaneBackgroundErrorContext, _ as AgentExecutorPlaneBackgroundErrorHandler, $ as AgentExecutorPlaneBinding, a1 as AgentExecutorPreflightResult, a2 as AgentExecutorProtocol, a3 as AgentExecutorTaskReference, a4 as AgentExecutorTaskSnapshot, a5 as AgentFollowupResult, a6 as AgentForkTurns, a7 as AgentInterruptScope, a8 as AgentJsonObject, a9 as AgentJsonValue, ab as AgentListEntry, ac as AgentMailboxMessage, af as AgentMetadataValue, ag as AgentMiddlewareDeclaration, ah as AgentMutationOptions, ai as AgentOutput, aj as AgentPreflightInput, ak as AgentPreflightResult, al as AgentProgressItem, am as AgentProgressKind, an as AgentProgressUpdate, ao as AgentReasoningProfile, ap as AgentRegistrationEnabledMutationOptions, aq as AgentRegistrationMutationOptions, ar as AgentRegistrationService, as as AgentSpanData, at as AgentSpawnInput, au as AgentTaskCancellation, av as AgentTaskCorrelation, aw as AgentTaskEvent, ax as AgentTaskFilter, ay as AgentTaskProgress, az as AgentTaskRegistrationSnapshot, aA as AgentTaskService, aB as AgentTaskSnapshot, aC as AgentTaskStartInput, aD as AgentTaskState, aE as AgentTaskUsage, aF as AgentTool, aG as AgentTreeSnapshot, aH as AgentTurn, aI as AgentTurnExecutor, aJ as AgentTurnRef, aK as AgentTurnState, aL as AgentTurnSummary, aM as AskUserAnswer, aN as AskUserCustomInputAnswer, aO as AskUserMultiOptions, aP as AskUserQuestionItem, aQ as AskUserQuestionOptions, aR as AskUserSelectionAnswer, aS as CapabilitySupport, aT as CommitLearnedSkillRevisionInput, aU as CompactionAnchor, aX as CompactionReport, aZ as CompactionSpanData, b0 as CreateLearnedSkillRecordInput, b1 as CurrentTodoSummary, b2 as DEFAULT_SYSTEM_CAP, b3 as DeclarativeSkillSpec, b4 as Deliverable, b6 as DiscoveryOptions, b7 as DispatchableAgentDescriptor, b8 as DispatchableAgentListing, b9 as DispatchableAgentOrigin, ba as DispatchableAgentQuery, bb as EvidenceSpanData, bc as ExactInvokedSkillSnapshot, bd as ExternalAgentEffectDeclaration, be as ExternalAgentHealth, bg as ExternalAgentRegistration, bh as ExternalAgentRegistrationSummary, bi as FanoutSpanData, bj as FileOperations, bk as GenerationSpanData, bl as Guardrail, bm as GuardrailBlockedError, bn as GuardrailContext, bo as GuardrailEscalateError, bp as GuardrailPermissionIntent, bq as GuardrailSpanData, br as GuardrailVerdict, bt as HandoffSpanData, bu as InMemorySessionOptions, bv as InputGuardrail, by as InvariantResult, bz as InvariantSession, bA as KodaXCompactMemoryProgress, bB as KodaXCompactMemorySeed, bC as KodaXExtensionSessionRecord, bD as KodaXExtensionSessionState, bJ as KodaXGoalStatus, bP as KodaXMemoryInfluenceRef, bQ as KodaXMemoryIntent, bS as KodaXMemoryOutcomeEvidence, bT as KodaXSessionArchiveMarkerEntry, bV as KodaXSessionBranchSummaryEntry, bW as KodaXSessionClientNoticeEntry, bX as KodaXSessionCompactionEntry, b_ as KodaXSessionEntryBase, c0 as KodaXSessionLabelEntry, c2 as KodaXSessionMemoryOutcomeDigestEntry, c3 as KodaXSessionMemoryReviewReceiptEntry, c4 as KodaXSessionMessageEntry, c5 as KodaXSessionMeta, c6 as KodaXSessionNavigationOptions, c7 as KodaXSessionRewindMarkerEntry, c8 as KodaXSessionRuntimeInfo, c9 as KodaXSessionScope, cb as KodaXSessionTreeNode, cc as KodaXSessionUiHistoryItem, cd as KodaXSessionUiHistoryItemType, ce as KodaXSessionUiTextHistoryItem, cf as KodaXSessionUiTextHistoryItemType, cg as KodaXSessionUiToolCall, ch as KodaXSessionUiToolCallStatus, ci as KodaXSessionUiToolGroupHistoryItem, cj as KodaXSessionWorkspaceKind, cm as LearnedAreaPaths, co as LearnedCapabilityArtifact, cp as LearnedCapabilityCanary, cq as LearnedCapabilityCanaryBinding, cr as LearnedCapabilityCanaryInvocation, cs as LearnedCapabilityCarrier, ct as LearnedCapabilityLifecycle, cu as LearnedCapabilityProvenance, cw as LearnedCapabilityRecordV1, cx as LearnedCapabilityRecordV2, cz as LearnedCapabilitySource, cA as LearnedSkillBindingAdmission, cB as LearnedSkillCanaryOutcome, cC as LearnedSkillDecisionDisposition, cD as LearnedSkillInvocationAdmission, cE as LearnedSkillInvokedReceipt, cF as LearnedSkillOfferedReceipt, cG as LearnedSkillOutcomeReceipt, cH as LearnedSkillUsageReceipt, cI as LearningAction, cK as LearningCapabilityError, cL as LearningCapabilityErrorCode, cM as LearningClientEventState, cN as LearningClientRecord, cP as LearningEventKind, cR as LearningNotificationState, cU as LearningReviewEvidencePacket, cV as LearningReviewQualification, cW as LearningReviewVerifierFact, cZ as LocalAgentTaskInput, c_ as LocalAgentTaskUpdate, c$ as MAX_TOOL_LOOP_ITERATIONS, d3 as MemoryApplyPreview, d5 as MemoryApproval, d6 as MemoryAuthority, da as MemoryClaimKind, de as MemoryDecisionTraceReceipt, dh as MemoryGovernanceFinding, di as MemoryGovernanceFindingKind, dl as MemoryLifecycle, dp as MemoryPackHint, dr as MemoryPackTraceMetadata, ds as MemoryProposalAction, du as MemoryRefKind, dw as MemoryReviewCandidateRef, dx as MemoryReviewDraftAction, dA as MemoryReviewPersistenceDecision, dB as MemoryReviewPersistenceKind, dE as MemoryReviewTrigger, dF as MemoryScope, dG as MemorySourceAdapter, dH as MemoryVisibility, dI as MessageEntry, dJ as NormalizedLearnedSkillDecision, dK as ObserveCtx, dL as OutputGuardrail, dM as PersistedSessionState, dN as PresetDispatcher, dO as PresetTracingContext, dQ as ReadonlyMutationTracker, dR as ReadonlyRecorder, dS as ReasoningDepth, dT as RecentlyModifiedFile, dU as RunEvent, dV as RunOptions, dW as RunResult, dX as RunnableTool, dY as Runner, dZ as RunnerEvent, d_ as RunnerIterationLimitError, d$ as RunnerLlmResult, e0 as RunnerLlmReturn, e1 as RunnerRecoveryTranscriptCarrier, e3 as RunnerToolContext, e4 as RunnerToolObserver, e6 as RunnerToolResultBatch, e7 as RunnerToolResultBatchTransform, e8 as Session, e9 as SessionDispatchResult, ea as SessionEntry, eb as SessionErrorMetadata, ec as SessionExtension, ed as SessionForkOptions, eh as SpanData, ei as SpanError, ej as SpanImpl, ek as SpanImplOptions, el as StagedLearnedSkillArtifact, em as StartTraceOptions, ep as StateWriterOptions, et as StopHookSpanData, eu as SystemCap, ev as TerminalCtx, ew as ToolBeforeOutcome, ex as ToolCallSpanData, ey as ToolCapability, ez as ToolGuardrail, eA as ToolPermission, eC as TraceOptions, eD as Tracer, eE as TracerOptions, eF as UnifiedLearningReviewModelInput, eG as UnifiedLearningReviewResult, eH as UnifiedLearningReviewRunner, eI as UserInteraction, eL as WorkflowApproval, eM as WorkflowApprovalSummary, eN as WorkflowArtifactRef, eO as WorkflowBudget, eQ as WorkflowEventCorrelation, eR as WorkflowEventRecorder, eS as WorkflowEventType, eT as WorkflowIsolation, eW as WorkflowMeta, eX as WorkflowModelHint, e_ as WorkflowOutcomeError, e$ as WorkflowOutcomeResult, f0 as WorkflowOutcomeStatus, f1 as WorkflowOutcomeUsage, f2 as WorkflowParallelOptions, f3 as WorkflowProcessArtifact, f4 as WorkflowProcessCounts, f5 as WorkflowProcessEvent, f6 as WorkflowProcessItem, f7 as WorkflowProcessItemKind, f8 as WorkflowProcessItemOrigin, f9 as WorkflowProcessItemStatus, fa as WorkflowProcessProgress, fb as WorkflowProcessSnapshot, fc as WorkflowProcessSource, fd as WorkflowProcessStatus, fe as WorkflowProcessSummaryStatus, ff as WorkflowProcessTokenUsage, fg as WorkflowProcessTracker, fh as WorkflowProcessTrackerOptions, fi as WorkflowRun, fk as WorkflowRunStatus, fl as WorkflowSpawnAgentInput, fm as WorkflowSynthesis, fn as WorkflowSynthesizeInput, fo as WorkflowTaskHandle, fq as WorkflowTaskSnapshot, fr as WorkflowTaskStatus, fs as WorkflowTaskSummaryEventUpdate, ft as WorkflowTaskSummaryKind, fu as WorkflowTaskSummaryUpdate, fv as WorkflowTaskUsage, fw as WorkflowTaskVerification, fx as WorkflowTaskVerificationResult, fy as WorkflowWaitOptions, fz as _resetAdmittedAgentBindings, fA as _resetPresetDispatchers, fB as admitAndRecordLearnedSkillInvocation, fC as admitLearnedSkillBinding, fD as asSingleSelection, fE as assertLearnedCapabilityTransition, fF as attachRunnerRecoveryTranscript, fG as buildAssistantMessageFromLlmResult, fH as buildSystemPrompt, fI as buildToolResultMessage, fJ as canTransitionLearnedCapability, fK as collectGuardrails, fL as commitLearnedSkillRevision, fM as completeLearnedSkillOutcome, fN as completeLearnedSkillSessionOutcomes, fO as createAgent, fP as createAgentActorController, fQ as createHandoff, fR as createInMemorySession, fS as createInvariantSessionForAgent, fT as createLearnedCapabilityScope, fU as createLearnedSkillRecord, fV as createStateWriter, fW as createTrace, fX as createWorkflowProcessTracker, fY as defaultTracer, fZ as detectInstructionsInjection, f_ as discoverInstances, f$ as eventFromCapability, g0 as exactInvokedSkillSnapshotForSession, g1 as executeRunnerToolCall, g2 as extractAssistantTextFromMessage, g3 as getActiveUserInteraction, g4 as getAdmittedAgentBindings, g5 as hashMemoryIdentityComponent, g6 as invokeLearnedSkillCanary, g7 as isAskUserCustomInputAnswer, g8 as isFinalWorkflowProcessStatus, g9 as isLearnedCapabilityRecordV2, ga as isRunnableTool, gb as isRunnerIterationLimitError, gc as isRunnerLlmResult, gd as isUnifiedLearningReviewModelInput, ge as learningEventIdFor, gf as learningEventKindForLifecycle, gg as listLearnedSkillUsageReceipts, gh as matchesMemoryApplicability, gi as memoryApplicabilityFingerprint, gj as normalizeHostMetadata, gk as normalizeUnifiedLearningReview, gl as quarantineLearnedSkillRevision, gm as readRunnerRecoveryTranscript, gn as reconcileLearnedSkillBindingOutcomes, go as recordLearnedSkillOffered, gp as registerPresetDispatcher, gq as releaseLearnedSkillBinding, gr as renderDeclarativeSkill, gs as resolveLearnedAreaPaths, gt as resolveProjectLearnedAreaRoot, gu as runAdmissionAudit, gv as runInputGuardrails, gw as runOutputGuardrails, gx as runToolAfterGuardrails, gy as runToolBeforeGuardrails, gz as sanitizeUnifiedLearningReviewInput, gA as setActiveUserInteraction, gB as setAdmittedAgentBindings, gC as slugifyLearnedCapabilityName, gD as stageLearnedSkillRevision, gE as validateDeclarativeSkillSpec } from './types-chunks/controller.d-CYNuR2n9.js';
3
- import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-B7yoH4dM.js';
4
- export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetActiveRootQueueRoutesForTests, N as actorQueueId, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as evictOldIslandMessageContent, a4 as extractArtifactLedger, a5 as extractFileOps, a6 as extractTitleFromMessages, a7 as findPreviousUserEntryId, a8 as forkSessionLineage, a9 as generateSessionId, aa as generateSessionIdSync, ab as getAgentConfigHome, ac as getAgentConfigPath, ad as getAppDataDir, ae as getSessionLineagePath, af as getSessionMessageEntryId, ag as getSessionMessagesFromLineage, ah as isPathInsideDirectory, ai as lintRestrictedWorkflowSource, aj as mergeArtifactLedger, ak as mergeFileOps, al as registerActiveRootQueueRoute, am as resolveActiveRootQueueRoute, an as resolveExecutionPath, ao as resolveSessionLineageTarget, ap as rewindSessionLineage, aq as setAgentConfigHome, ar as setSessionLineageActiveEntry, as as validateAndFixToolHistory, at as validateWorkflowCapsule, au as validateWorkflowScriptManifest } from './types-chunks/capsule.d-B7yoH4dM.js';
1
+ import { aE as MemoryContextIdentity, au as MemoryActionProposal, aM as MemoryItemRef, av as MemoryApplicability, ab as KodaXSessionLineage, $ as KodaXMemoryOutcomeDigest, ak as KodaXSessionStorage, a6 as KodaXSessionData, V as KodaXGoalState, U as KodaXGoalEventType, a7 as KodaXSessionEntry, a9 as KodaXSessionGoalEntry, a2 as KodaXSessionArtifactLedgerEntry, S as KodaXExtensionStore, T as KodaXExtensionStoreEntry, Y as KodaXJsonValue, k as AgentBudgetExhausted, x as AgentLimitReached } from './types-chunks/types.d-DlLBRqZ9.js';
2
+ export { A as AgentActor, a as AgentActorClient, b as AgentActorOwner, c as AgentActorSnapshot, d as AgentActorSnapshotV1, e as AgentActorSnapshotV2, f as AgentActorState, g as AgentActorStore, h as AgentArtifactDescriptor, i as AgentBudgetAdmission, j as AgentBudgetAdmissionInput, l as AgentBudgetPort, m as AgentCapabilities, n as AgentDataClassification, o as AgentDetail, p as AgentEvent, q as AgentEventKind, r as AgentExecutionInput, s as AgentExecutionKind, t as AgentExecutionResult, u as AgentFollowupResult, v as AgentForkTurns, w as AgentInterruptScope, y as AgentListEntry, z as AgentMailboxMessage, B as AgentMetadataValue, C as AgentMutationOptions, D as AgentOutput, E as AgentProgressItem, F as AgentProgressKind, G as AgentProgressUpdate, H as AgentSpawnInput, I as AgentTreeSnapshot, J as AgentTurn, K as AgentTurnExecutor, L as AgentTurnRef, M as AgentTurnState, N as AgentTurnSummary, O as KodaXCompactMemoryProgress, P as KodaXCompactMemorySeed, Q as KodaXExtensionSessionRecord, R as KodaXExtensionSessionState, W as KodaXGoalStatus, X as KodaXHandledMemoryOperation, Z as KodaXMemoryInfluenceRef, _ as KodaXMemoryIntent, a0 as KodaXMemoryOutcomeEvidence, a1 as KodaXSessionArchiveMarkerEntry, a3 as KodaXSessionBranchSummaryEntry, a4 as KodaXSessionClientNoticeEntry, a5 as KodaXSessionCompactionEntry, a8 as KodaXSessionEntryBase, aa as KodaXSessionLabelEntry, ac as KodaXSessionMemoryOutcomeDigestEntry, ad as KodaXSessionMemoryReviewReceiptEntry, ae as KodaXSessionMessageEntry, af as KodaXSessionMeta, ag as KodaXSessionNavigationOptions, ah as KodaXSessionRewindMarkerEntry, ai as KodaXSessionRuntimeInfo, aj as KodaXSessionScope, al as KodaXSessionTreeNode, am as KodaXSessionUiHistoryItem, an as KodaXSessionUiHistoryItemType, ao as KodaXSessionUiTextHistoryItem, ap as KodaXSessionUiTextHistoryItemType, aq as KodaXSessionUiToolCall, ar as KodaXSessionUiToolCallStatus, as as KodaXSessionUiToolGroupHistoryItem, at as KodaXSessionWorkspaceKind, aw as MemoryApplyPreview, ax as MemoryApplyResult, ay as MemoryApproval, az as MemoryAuthority, aC as MemoryBodySnapshot, aD as MemoryClaimKind, aF as MemoryController, aG as MemoryCuratorInput, aH as MemoryEpisodeReviewResult, aI as MemoryEvent, aJ as MemoryGovernanceFinding, aK as MemoryGovernanceFindingKind, aL as MemoryGovernanceReport, aN as MemoryLifecycle, aO as MemoryLifecycleOperationResult, aP as MemoryManagementController, aQ as MemoryPack, aR as MemoryPackHint, aS as MemoryPackInput, aT as MemoryPackTraceMetadata, aU as MemoryProposalAction, aV as MemoryRefFilter, aW as MemoryRefKind, aX as MemoryRejectResult, aY as MemoryRememberInput, aZ as MemoryRememberResult, a_ as MemoryReviewCandidateRef, a$ as MemoryReviewDraftAction, b0 as MemoryReviewInput, b1 as MemoryReviewModelInput, b2 as MemoryReviewPersistenceDecision, b3 as MemoryReviewPersistenceKind, b4 as MemoryReviewPlan, b5 as MemoryReviewRunner, b6 as MemoryReviewTrigger, b7 as MemoryScope, b8 as MemorySourceAdapter, b9 as MemoryVisibility, ba as SessionErrorMetadata, bb as hashMemoryIdentityComponent, bc as isMemoryManagementController, bd as matchesMemoryApplicability, be as memoryApplicabilityFingerprint } from './types-chunks/types.d-DlLBRqZ9.js';
3
+ import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-CN_iMqAS.js';
4
+ export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetActiveRootQueueRoutesForTests, N as actorQueueId, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as evictOldIslandMessageContent, a4 as extractArtifactLedger, a5 as extractFileOps, a6 as extractTitleFromMessages, a7 as findPreviousUserEntryId, a8 as forkSessionLineage, a9 as generateSessionId, aa as generateSessionIdSync, ab as getAgentConfigHome, ac as getAgentConfigPath, ad as getAppDataDir, ae as getSessionLineagePath, af as getSessionMessageEntryId, ag as getSessionMessagesFromLineage, ah as isPathInsideDirectory, ai as lintRestrictedWorkflowSource, aj as mergeArtifactLedger, ak as mergeFileOps, al as registerActiveRootQueueRoute, am as resolveActiveRootQueueRoute, an as resolveExecutionPath, ao as resolveSessionLineageTarget, ap as rewindSessionLineage, aq as setAgentConfigHome, ar as setSessionLineageActiveEntry, as as validateAndFixToolHistory, at as validateWorkflowCapsule, au as validateWorkflowScriptManifest } from './types-chunks/capsule.d-CN_iMqAS.js';
5
+ import { ci as Span, cD as Trace, f as Agent, aQ as Handoff, c5 as RunnerToolCall, c8 as RunnerToolResult, P as AgentMessage, O as AgentManifest, bJ as ManifestPatch, aV as InvariantId, bS as QualityInvariant, b0 as KodaXInputArtifactSource, a_ as KodaXImageMediaType, b2 as KodaXVideoMediaType, aY as KodaXFileInputArtifact, aZ as KodaXImageInputArtifact, b1 as KodaXVideoInputArtifact, a$ as KodaXInputArtifact, at as DiscoveredInstance, cg as SessionMeta, ch as SessionStateSnapshot, cq as StateWriterFs, aU as InstanceDiscoveryFs, cp as StateWriter, cs as StopHookContext, cu as StopHookResult, ct as StopHookFn, bq as LearningActionDriver, bA as LearningQuery, bz as LearningPage, bc as LearnedCapabilityRecord, bF as LearningSurfaceSnapshot, bv as LearningEvent, bE as LearningSubscribeOptions, bx as LearningExplicitUserAuthority, b4 as LearnedAreaStore, bf as LearnedCapabilityScope, am as CompactionUpdate, ah as CompactionConfig, ai as CompactionDetails, ak as CompactionResult, dl as WorkflowRunState, c$ as WorkflowOutcome, cM as WorkflowApi, c_ as WorkflowModule, cL as WorkflowAgentBackend, cW as WorkflowLimits, cR as WorkflowEvent, cX as WorkflowLogEvent, ds as WorkflowTaskResult, H as AgentExecutorPlaneStore, an as CreateAgentExecutorPlaneOptions, D as AgentExecutorPlane, aD as ExternalAgentProtocol, B as AgentExecutorFactory } from './types-chunks/controller.d-Dzxz22X-.js';
6
+ 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 AgentActorController, h as AgentArtifactPolicy, i as AgentArtifactPolicyDecision, j as AgentArtifactPolicyInput, k as AgentArtifactReference, l as AgentCapabilityDeclaration, m as AgentCapabilityRequirements, n as AgentContinuationInput, o as AgentControllerHealth, p as AgentControllerOptions, q as AgentCredentialBroker, r as AgentDispatchContext, s as AgentDispatchPolicy, t as AgentDispatchPolicyDecision, u as AgentDispatchPolicyInput, v as AgentDispatchabilitySnapshot, w as AgentDispatchabilityStatus, x as AgentEffectDeclaration, y as AgentExecutor, z as AgentExecutorEvent, C as AgentExecutorFactoryContext, E as AgentExecutorPlaneBackgroundErrorContext, F as AgentExecutorPlaneBackgroundErrorHandler, G as AgentExecutorPlaneBinding, I as AgentExecutorPreflightResult, J as AgentExecutorProtocol, K as AgentExecutorTaskReference, L as AgentExecutorTaskSnapshot, M as AgentJsonObject, N as AgentJsonValue, Q as AgentMiddlewareDeclaration, R as AgentPreflightInput, S as AgentPreflightResult, T as AgentReasoningProfile, U as AgentRegistrationEnabledMutationOptions, V as AgentRegistrationMutationOptions, W as AgentRegistrationService, X as AgentSpanData, Y as AgentTaskCancellation, Z as AgentTaskCorrelation, _ as AgentTaskEvent, $ as AgentTaskFilter, a0 as AgentTaskProgress, a1 as AgentTaskRegistrationSnapshot, a2 as AgentTaskService, a3 as AgentTaskSnapshot, a4 as AgentTaskStartInput, a5 as AgentTaskState, a6 as AgentTaskUsage, a7 as AgentTool, a8 as AskUserAnswer, a9 as AskUserCustomInputAnswer, aa as AskUserMultiOptions, ab as AskUserQuestionItem, ac as AskUserQuestionOptions, ad as AskUserSelectionAnswer, ae as CapabilitySupport, af as CommitLearnedSkillRevisionInput, ag as CompactionAnchor, aj as CompactionReport, al as CompactionSpanData, ao as CreateLearnedSkillRecordInput, ap as CurrentTodoSummary, aq as DEFAULT_SYSTEM_CAP, ar as DeclarativeSkillSpec, as as Deliverable, au as DiscoveryOptions, av as DispatchableAgentDescriptor, aw as DispatchableAgentListing, ax as DispatchableAgentOrigin, ay as DispatchableAgentQuery, az as EvidenceSpanData, aA as ExactInvokedSkillSnapshot, aB as ExternalAgentEffectDeclaration, aC as ExternalAgentHealth, aE as ExternalAgentRegistration, aF as ExternalAgentRegistrationSummary, aG as FanoutSpanData, aH as FileOperations, aI as GenerationSpanData, aJ as Guardrail, aK as GuardrailBlockedError, aL as GuardrailContext, aM as GuardrailEscalateError, aN as GuardrailPermissionIntent, aO as GuardrailSpanData, aP as GuardrailVerdict, aR as HandoffSpanData, aS as InMemorySessionOptions, aT as InputGuardrail, aW as InvariantResult, aX as InvariantSession, b3 as LearnedAreaPaths, b5 as LearnedCapabilityArtifact, b6 as LearnedCapabilityCanary, b7 as LearnedCapabilityCanaryBinding, b8 as LearnedCapabilityCanaryInvocation, b9 as LearnedCapabilityCarrier, ba as LearnedCapabilityLifecycle, bb as LearnedCapabilityProvenance, bd as LearnedCapabilityRecordV1, be as LearnedCapabilityRecordV2, bg as LearnedCapabilitySource, bh as LearnedSkillBindingAdmission, bi as LearnedSkillCanaryOutcome, bj as LearnedSkillDecisionDisposition, bk as LearnedSkillInvocationAdmission, bl as LearnedSkillInvokedReceipt, bm as LearnedSkillOfferedReceipt, bn as LearnedSkillOutcomeReceipt, bo as LearnedSkillUsageReceipt, bp as LearningAction, br as LearningCapabilityError, bs as LearningCapabilityErrorCode, bt as LearningClientEventState, bu as LearningClientRecord, bw as LearningEventKind, by as LearningNotificationState, bB as LearningReviewEvidencePacket, bC as LearningReviewQualification, bD as LearningReviewVerifierFact, bG as LocalAgentTaskInput, bH as LocalAgentTaskUpdate, bI as MAX_TOOL_LOOP_ITERATIONS, bK as MemoryDecisionTraceReceipt, bL as MessageEntry, bM as NormalizedLearnedSkillDecision, bN as ObserveCtx, bO as OutputGuardrail, bP as PersistedSessionState, bQ as PresetDispatcher, bR as PresetTracingContext, bT as ReadonlyMutationTracker, bU as ReadonlyRecorder, bV as ReasoningDepth, bW as RecentlyModifiedFile, bX as RunEvent, bY as RunOptions, bZ as RunResult, b_ as RunnableTool, b$ as Runner, c0 as RunnerEvent, c1 as RunnerIterationLimitError, c2 as RunnerLlmResult, c3 as RunnerLlmReturn, c4 as RunnerRecoveryTranscriptCarrier, c6 as RunnerToolContext, c7 as RunnerToolObserver, c9 as RunnerToolResultBatch, ca as RunnerToolResultBatchTransform, cb as Session, cc as SessionDispatchResult, cd as SessionEntry, ce as SessionExtension, cf as SessionForkOptions, cj as SpanData, ck as SpanError, cl as SpanImpl, cm as SpanImplOptions, cn as StagedLearnedSkillArtifact, co as StartTraceOptions, cr as StateWriterOptions, cv as StopHookSpanData, cw as SystemCap, cx as TerminalCtx, cy as ToolBeforeOutcome, cz as ToolCallSpanData, cA as ToolCapability, cB as ToolGuardrail, cC as ToolPermission, cE as TraceOptions, cF as Tracer, cG as TracerOptions, cH as UnifiedLearningReviewModelInput, cI as UnifiedLearningReviewResult, cJ as UnifiedLearningReviewRunner, cK as UserInteraction, cN as WorkflowApproval, cO as WorkflowApprovalSummary, cP as WorkflowArtifactRef, cQ as WorkflowBudget, cS as WorkflowEventCorrelation, cT as WorkflowEventRecorder, cU as WorkflowEventType, cV as WorkflowIsolation, cY as WorkflowMeta, cZ as WorkflowModelHint, d0 as WorkflowOutcomeError, d1 as WorkflowOutcomeResult, d2 as WorkflowOutcomeStatus, d3 as WorkflowOutcomeUsage, d4 as WorkflowParallelOptions, d5 as WorkflowProcessArtifact, d6 as WorkflowProcessCounts, d7 as WorkflowProcessEvent, d8 as WorkflowProcessItem, d9 as WorkflowProcessItemKind, da as WorkflowProcessItemOrigin, db as WorkflowProcessItemStatus, dc as WorkflowProcessProgress, dd as WorkflowProcessSnapshot, de as WorkflowProcessSource, df as WorkflowProcessStatus, dg as WorkflowProcessSummaryStatus, dh as WorkflowProcessTokenUsage, di as WorkflowProcessTracker, dj as WorkflowProcessTrackerOptions, dk as WorkflowRun, dm as WorkflowRunStatus, dn as WorkflowSpawnAgentInput, dp as WorkflowSynthesis, dq as WorkflowSynthesizeInput, dr as WorkflowTaskHandle, dt as WorkflowTaskSnapshot, du as WorkflowTaskStatus, dv as WorkflowTaskSummaryEventUpdate, dw as WorkflowTaskSummaryKind, dx as WorkflowTaskSummaryUpdate, dy as WorkflowTaskUsage, dz as WorkflowTaskVerification, dA as WorkflowTaskVerificationResult, dB as WorkflowWaitOptions, dC as _resetAdmittedAgentBindings, dD as _resetPresetDispatchers, dE as admitAndRecordLearnedSkillInvocation, dF as admitLearnedSkillBinding, dG as asSingleSelection, dH as assertLearnedCapabilityTransition, dI as attachRunnerRecoveryTranscript, dJ as buildAssistantMessageFromLlmResult, dK as buildSystemPrompt, dL as buildToolResultMessage, dM as canTransitionLearnedCapability, dN as collectGuardrails, dO as commitLearnedSkillRevision, dP as completeLearnedSkillOutcome, dQ as completeLearnedSkillSessionOutcomes, dR as createAgent, dS as createAgentActorController, dT as createHandoff, dU as createInMemorySession, dV as createInvariantSessionForAgent, dW as createLearnedCapabilityScope, dX as createLearnedSkillRecord, dY as createStateWriter, dZ as createTrace, d_ as createWorkflowProcessTracker, d$ as defaultTracer, e0 as detectInstructionsInjection, e1 as discoverInstances, e2 as eventFromCapability, e3 as exactInvokedSkillSnapshotForSession, e4 as executeRunnerToolCall, e5 as extractAssistantTextFromMessage, e6 as getActiveUserInteraction, e7 as getAdmittedAgentBindings, e8 as invokeLearnedSkillCanary, e9 as isAskUserCustomInputAnswer, ea as isFinalWorkflowProcessStatus, eb as isLearnedCapabilityRecordV2, ec as isRunnableTool, ed as isRunnerIterationLimitError, ee as isRunnerLlmResult, ef as isUnifiedLearningReviewModelInput, eg as learningEventIdFor, eh as learningEventKindForLifecycle, ei as listLearnedSkillUsageReceipts, ej as normalizeHostMetadata, ek as normalizeUnifiedLearningReview, el as quarantineLearnedSkillRevision, em as readRunnerRecoveryTranscript, en as reconcileLearnedSkillBindingOutcomes, eo as recordLearnedSkillOffered, ep as registerPresetDispatcher, eq as releaseLearnedSkillBinding, er as renderDeclarativeSkill, es as resolveLearnedAreaPaths, et as resolveProjectLearnedAreaRoot, eu as runAdmissionAudit, ev as runInputGuardrails, ew as runOutputGuardrails, ex as runToolAfterGuardrails, ey as runToolBeforeGuardrails, ez as sanitizeUnifiedLearningReviewInput, eA as setActiveUserInteraction, eB as setAdmittedAgentBindings, eC as slugifyLearnedCapabilityName, eD as stageLearnedSkillRevision, eE as validateDeclarativeSkillSpec } from './types-chunks/controller.d-Dzxz22X-.js';
5
7
  import { i as KodaXImageBlock, k as KodaXMessage, a2 as KodaXToolDefinition, a7 as KodaXToolUseBlock, I as KodaXReasoningRequest, e as KodaXEphemeralSuffix, a1 as KodaXTokenUsage } from './types-chunks/types.d-CgrXrFrq.js';
6
8
  export { K as KodaXAssuranceIntent, c as KodaXContentBlock, f as KodaXExecutionMode, g as KodaXExecutionPattern, m as KodaXMutationSurface, r as KodaXProviderConfig, z as KodaXProviderStreamOptions, C as KodaXReasoningCapability, G as KodaXReasoningMode, J as KodaXRedactedThinkingBlock, M as KodaXRiskLevel, O as KodaXStreamResult, P as KodaXTaskActionability, Q as KodaXTaskBudgetOverrides, R as KodaXTaskComplexity, S as KodaXTaskFamily, T as KodaXTaskResultMetadata, U as KodaXTaskResultSource, V as KodaXTaskRoutingDecision, W as KodaXTaskType, X as KodaXTaskWorkIntent, Y as KodaXTextBlock, Z as KodaXThinkingBlock, _ as KodaXThinkingBudgetMap, $ as KodaXThinkingDepth, a3 as KodaXToolResultBlock } from './types-chunks/types.d-CgrXrFrq.js';
7
9
  import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-iPSiAmc_.js';
8
10
  export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-iPSiAmc_.js';
9
11
  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';
10
12
  import { ChildProcess } from 'node:child_process';
11
- import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-DIXZFauU.js';
12
- export { M as MessageMode } from './types-chunks/types.d-DIXZFauU.js';
13
+ import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-Bo4fyMLu.js';
14
+ export { M as MessageMode } from './types-chunks/types.d-Bo4fyMLu.js';
13
15
  import { K as KodaXBaseProvider } from './types-chunks/base.d-DxG0m09Z.js';
14
- import { R as ResolvedSkillSource } from './types-chunks/types.d-BbtGlKZu.js';
15
- export { I as ISkillRegistry, a as IVariableResolver, L as LearnedSkillDiscoveryConfig, S as Skill, b as SkillArtifact, c as SkillContext, d as SkillDynamicContextExecutor, e as SkillFile, f as SkillFrontmatter, g as SkillHook, h as SkillHooks, i as SkillMetadata, j as SkillPathsConfig, k as SkillResult, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-BbtGlKZu.js';
16
+ export { C as CreateMemoryControlPlaneOptions, M as MemoryControlPlane, c as createMemoryControlPlane } from './types-chunks/controller.d-A73Kf6tH.js';
17
+ export { E as EpisodeReviewActionInput, a as EpisodeReviewActionReceipt, b as EpisodeReviewBranchChangedError, c as EpisodeReviewClaim, d as EpisodeReviewDecision, e as EpisodeReviewDecisionInput, f as EpisodeReviewDrainEligibility, g as EpisodeReviewDrainOptions, h as EpisodeReviewDrainResult, i as EpisodeReviewFailure, j as EpisodeReviewFailureKind, k as EpisodeReviewInputCheckpoint, l as EpisodeReviewInputSpec, m as EpisodeReviewJobSnapshot, n as EpisodeReviewJobState, o as EpisodeReviewJobStatus, p as EpisodeReviewReceipt, P as PendingEpisodeReview, q as PendingEpisodeReviewFilter, r as PendingEpisodeReviewSummary, s as PendingEpisodeReviewV1, t as PendingEpisodeReviewV2, u as captureEpisodeReviewBranchEpoch, v as claimEpisodeReview, w as commitEpisodeReviewAction, x as commitEpisodeReviewDecision, y as completeEpisodeReview, z as completeFencedEpisodeReview, A as deferEpisodeReview, B as discardFencedEpisodeReview, C as drainPendingEpisodeReviews, D as failEpisodeReviewApply, F as failEpisodeReviewAttempt, G as freezeEpisodeReviewInput, H as inspectEpisodeReviewJob, I as listPendingEpisodeReviewSummaries, J as listPendingEpisodeReviews, K as persistPendingEpisodeReview, L as withEpisodeReviewClaimAuthority, M as withPendingEpisodeReviewSessionFence } from './types-chunks/review-inbox.d-DuZqFX-z.js';
18
+ import { R as ResolvedSkillSource } from './types-chunks/types.d-BSPlmJqf.js';
19
+ 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-BSPlmJqf.js';
16
20
  export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
17
21
  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';
18
22
  export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportCleanupIncompleteError, d as McpTransportEvents, O as OAuthClientInfo, e as OAuthLoginConsent, P as PerformOAuthLoginOptions, f as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, g as createMcpTransport, h as discoverAuthorizationServerMetadata, i as discoverOAuthEndpoints, j as discoverProtectedResourceMetadata, k as extractInsufficientScope, l as extractResourceMetadataUrl, m as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-6i-vidxv.js';
19
23
  export { createMcpTestServerFixture } from './sdk-mcp.js';
20
24
  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';
21
- export { K as KodaXSessionHistoryHit, a as KodaXSessionHistoryReadOptions, b as KodaXSessionHistoryReadResult, c as KodaXSessionHistoryScope, d as KodaXSessionHistorySearchOptions, e as KodaXSessionHistorySearchResult, f as KodaXSessionHistorySource, r as readSessionHistoryEntry, s as searchSessionHistory, g as searchSessionHistoryCooperatively, v as validateSessionHistorySearchQuery } from './types-chunks/history-retrieval.d-BDI-ZMvY.js';
22
- export { M as ManagedRunClassification, a as ManagedRunHooks, b as ManagedWorkflowRun, c as ManagedWorkflowSnapshot, d as ManagedWorkflowStatus, S as StartManagedRunInput, W as WorkflowProcessMetadata, e as WorkflowRunManager, f as createWorkflowRunManager, g as getDefaultWorkflowRunManager } from './types-chunks/run-manager.d-CodHf6rw.js';
25
+ export { K as KodaXSessionHistoryHit, a as KodaXSessionHistoryReadOptions, b as KodaXSessionHistoryReadResult, c as KodaXSessionHistoryScope, d as KodaXSessionHistorySearchOptions, e as KodaXSessionHistorySearchResult, f as KodaXSessionHistorySource, r as readSessionHistoryEntry, s as searchSessionHistory, g as searchSessionHistoryCooperatively, v as validateSessionHistorySearchQuery } from './types-chunks/history-retrieval.d-Debbzn1z.js';
26
+ 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-BS4lJfL3.js';
23
27
 
24
28
  declare const CONTEXT_SAFETY_FLOOR_TOKENS = 2048;
25
29
  declare const CONTEXT_SAFETY_RATIO = 0.03;
@@ -613,6 +617,8 @@ interface ManagedChildProcessMetadata {
613
617
  interface ManagedChildRegistrationOptions {
614
618
  /** Keep the record until the returned cleanup callback is invoked. */
615
619
  readonly manualUnregister?: boolean;
620
+ /** Do not let an externally mutating child start without durable recovery evidence. */
621
+ readonly requireDurableRecord?: boolean;
616
622
  }
617
623
  interface ManagedChildCleanupSummary {
618
624
  readonly killed: number;
@@ -633,6 +639,14 @@ interface CleanupOptions {
633
639
  declare function registerManagedChildProcess(child: ChildProcess, metadata: ManagedChildProcessMetadata, options?: ManagedChildRegistrationOptions): () => void;
634
640
  declare function cleanupRegisteredManagedChildren(options?: CleanupOptions): Promise<ManagedChildCleanupSummary>;
635
641
 
642
+ interface WindowsEffectJob {
643
+ /** Resolves only after the Job reports zero active processes. */
644
+ readonly drained: Promise<void>;
645
+ /** The process that owns the Job handle and proves the effect is still fenced. */
646
+ readonly supervisorPid: number;
647
+ }
648
+ declare function containWindowsEffectProcess(processPid: number, ownerPid?: number): Promise<WindowsEffectJob>;
649
+
636
650
  /**
637
651
  * @kodax-ai/agent/messaging/queue — 2-tier agentId-scoped FIFO message queue.
638
652
  *
@@ -1974,298 +1988,17 @@ interface EntrypointTruncation {
1974
1988
  */
1975
1989
  declare function truncateEntrypointContent(raw: string): EntrypointTruncation;
1976
1990
 
1977
- interface CreateMemoryControlPlaneOptions {
1978
- readonly cwd: string;
1979
- readonly identity?: MemoryContextIdentity;
1980
- readonly learningStorePath?: string;
1981
- readonly memoryRoot?: string;
1982
- readonly projectDocs?: readonly string[];
1983
- readonly extraRefs?: readonly MemoryItemRef[];
1984
- readonly sessionId?: string;
1985
- readonly sessionLineage?: KodaXSessionLineage;
1986
- readonly artifactLedger?: readonly KodaXSessionArtifactLedgerEntry[];
1987
- readonly now?: () => string;
1988
- readonly onEvent?: (event: MemoryEvent) => void;
1989
- readonly discoverSkills?: boolean;
1990
- readonly memoryReviewer?: MemoryReviewRunner;
1991
- }
1992
- declare function createMemoryControlPlane(options: CreateMemoryControlPlaneOptions): MemoryController;
1993
- declare class MemoryControlPlane implements MemoryController {
1994
- private readonly cwd;
1995
- private readonly learningStorePath;
1996
- private readonly memoryRoot;
1997
- private readonly now;
1998
- private readonly onEvent?;
1999
- private readonly projectDocs;
2000
- private readonly extraRefs;
2001
- private readonly sessionId;
2002
- private readonly sessionLineage?;
2003
- private readonly artifactLedger;
2004
- private readonly discoverSkills;
2005
- private readonly memoryReviewer?;
2006
- private readonly identity?;
2007
- private readonly applicability?;
2008
- private readonly scopedRoots;
2009
- constructor(options: CreateMemoryControlPlaneOptions);
2010
- listInbox(): Promise<readonly MemoryActionProposal[]>;
2011
- showProposal(id: string): Promise<MemoryActionProposal | undefined>;
2012
- listHostAppliedEpisodeProposalIds(proposalIds: readonly string[]): Promise<readonly string[]>;
2013
- approveProposal(id: string, expectedFingerprints: Readonly<Record<string, string>>): Promise<MemoryApplyResult>;
2014
- rejectProposal(id: string, reason?: string): Promise<MemoryRejectResult>;
2015
- listRefs(filter?: MemoryRefFilter): Promise<readonly MemoryItemRef[]>;
2016
- readRef(ref: MemoryItemRef): Promise<MemoryBodySnapshot>;
2017
- archiveRef(id: string): Promise<MemoryLifecycleOperationResult>;
2018
- forgetRef(id: string): Promise<MemoryLifecycleOperationResult>;
2019
- purgeRef(id: string): Promise<MemoryLifecycleOperationResult>;
2020
- private removeManagedRef;
2021
- runCurator(input?: MemoryCuratorInput): Promise<MemoryGovernanceReport>;
2022
- maybeRunAutoCurator(input?: MemoryAutoCuratorInput): Promise<MemoryAutoCuratorResult>;
2023
- buildMemoryPack(input: MemoryPackInput): Promise<MemoryPack>;
2024
- reviewMemoryFeedback(input: MemoryReviewInput): Promise<MemoryReviewPlan>;
2025
- prepareEpisodeReview(digest: KodaXMemoryOutcomeDigest): Promise<MemoryReviewModelInput>;
2026
- private prepareReviewInput;
2027
- persistReviewPlan(plan: MemoryReviewPlan): Promise<readonly string[]>;
2028
- private persistReviewPlanWithDecisions;
2029
- private resolveReviewMemoryPlacement;
2030
- private projectPlacement;
2031
- reviewEpisode(digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal): Promise<MemoryEpisodeReviewResult>;
2032
- applyReviewedEpisode(reviewedPlan: MemoryReviewPlan, digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal, revalidateAuthority?: () => Promise<void>): Promise<MemoryEpisodeReviewResult>;
2033
- private consultReviewAction;
2034
- private applyHostEligibleProposal;
2035
- private projectLearningProposal;
2036
- private projectMemdirHandoff;
2037
- private projectReasoningHandoff;
2038
- private listLearningRefs;
2039
- private readLearningRef;
2040
- private listProjectDocRefs;
2041
- private listSessionTraceRefs;
2042
- private listArtifactLedgerRefs;
2043
- private readSessionTraceRef;
2044
- private readArtifactLedgerRef;
2045
- private listSkillRefs;
2046
- private buildPackHints;
2047
- private selectReviewCandidateRefs;
2048
- private readReviewCandidateRef;
2049
- private adapterForProposal;
2050
- private memdirAdapter;
2051
- private memdirAdapters;
2052
- private memoryRootForHandoff;
2053
- private memoryRootForRef;
2054
- private emit;
2055
- private buildGovernanceReport;
2056
- }
2057
-
2058
1991
  /**
2059
1992
  * Returns one bounded claim that is safe to expose as low-authority memory
2060
1993
  * evidence. Undefined means the source must remain reference-only.
2061
1994
  */
2062
1995
  declare function sanitizePromptSafeMemoryClaim(value: string, maxChars?: number): string | undefined;
2063
1996
 
2064
- interface PendingEpisodeReviewV1 {
2065
- readonly version: 1;
2066
- readonly reviewKey: string;
2067
- readonly digest: KodaXMemoryOutcomeDigest;
2068
- readonly ownerSessionRef: string;
2069
- readonly ownerAgentHash: string;
2070
- readonly ownerProjectHash?: string;
2071
- readonly createdAt: string;
2072
- }
2073
- interface PendingEpisodeReviewV2 {
2074
- readonly version: 2;
2075
- readonly jobId: string;
2076
- readonly reviewKey: string;
2077
- readonly digest: KodaXMemoryOutcomeDigest;
2078
- readonly ownerSessionRef: string;
2079
- readonly ownerAgentHash: string;
2080
- readonly ownerProjectHash?: string;
2081
- readonly branchId: string;
2082
- readonly branchEpoch: number;
2083
- readonly authorityCeiling: 'memory_and_project_skill';
2084
- readonly createdAt: string;
2085
- }
2086
- type PendingEpisodeReview = PendingEpisodeReviewV1 | PendingEpisodeReviewV2;
2087
- type EpisodeReviewJobStatus = 'pending' | 'processing' | 'decided' | 'completed' | 'attention';
2088
- interface EpisodeReviewJobState {
2089
- readonly schemaVersion: 1;
2090
- readonly jobId: string;
2091
- readonly status: EpisodeReviewJobStatus;
2092
- readonly claimEpoch: number;
2093
- readonly claimToken?: string;
2094
- readonly leaseDeadline?: string;
2095
- readonly providerAttempts: number;
2096
- readonly applyAttempts: number;
2097
- readonly applyAttemptsByCarrier: {
2098
- readonly memory: number;
2099
- readonly skill: number;
2100
- };
2101
- readonly completionAttempts: number;
2102
- readonly nextAttemptAt?: string;
2103
- readonly nextApplyAttemptAt?: string;
2104
- readonly nextCompletionAttemptAt?: string;
2105
- readonly lastError?: string;
2106
- readonly updatedAt: string;
2107
- }
2108
- interface EpisodeReviewClaim {
2109
- readonly jobId: string;
2110
- readonly reviewKey: string;
2111
- readonly ownerSessionRef: string;
2112
- readonly branchId: string;
2113
- readonly branchEpoch: number;
2114
- readonly epoch: number;
2115
- readonly token: string;
2116
- readonly leaseDeadline: string;
2117
- }
2118
- interface EpisodeReviewInputSpec {
2119
- readonly evidence: unknown;
2120
- readonly promptRevision: string;
2121
- readonly schemaRevision: string;
2122
- readonly policyRevision: string;
2123
- readonly providerRevision: string;
2124
- }
2125
- interface EpisodeReviewInputCheckpoint extends EpisodeReviewInputSpec {
2126
- readonly version: 1;
2127
- readonly jobId: string;
2128
- readonly evidenceBytes: string;
2129
- readonly evidenceHash: string;
2130
- readonly createdAt: string;
2131
- }
2132
- interface EpisodeReviewDecisionInput {
2133
- readonly inputHash: string;
2134
- readonly memoryProposalIds: readonly string[];
2135
- readonly requiredCarriers?: readonly ('memory' | 'skill')[];
2136
- readonly memoryPlan?: unknown;
2137
- readonly capabilityDecision?: unknown;
2138
- }
2139
- interface EpisodeReviewDecision extends EpisodeReviewDecisionInput {
2140
- readonly version: 1;
2141
- readonly jobId: string;
2142
- readonly decisionId: string;
2143
- readonly committedAt: string;
2144
- }
2145
- interface EpisodeReviewActionInput {
2146
- readonly actionId: string;
2147
- readonly decisionId: string;
2148
- readonly carrier: 'memory' | 'skill';
2149
- readonly resultRefs: readonly string[];
2150
- }
2151
- interface EpisodeReviewActionReceipt extends EpisodeReviewActionInput {
2152
- readonly version: 1;
2153
- readonly jobId: string;
2154
- readonly committedAt: string;
2155
- }
2156
- type EpisodeReviewFailureKind = 'provider_timeout' | 'provider_error' | 'malformed_response' | 'shutdown' | 'budget_unavailable' | 'provider_unavailable';
2157
- declare class EpisodeReviewFailure extends Error {
2158
- readonly kind: EpisodeReviewFailureKind;
2159
- constructor(kind: EpisodeReviewFailureKind, message: string);
2160
- }
2161
- interface EpisodeReviewJobSnapshot {
2162
- readonly envelope: PendingEpisodeReviewV2;
2163
- readonly state: EpisodeReviewJobState;
2164
- readonly input?: EpisodeReviewInputCheckpoint;
2165
- readonly decision?: EpisodeReviewDecision;
2166
- readonly actions: readonly EpisodeReviewActionReceipt[];
2167
- }
2168
- interface EpisodeReviewReceipt {
2169
- readonly version: 1;
2170
- readonly jobId?: string;
2171
- readonly reviewKey: string;
2172
- readonly ownerAgentHash?: string;
2173
- readonly ownerProjectHash?: string;
2174
- readonly proposalIds: readonly string[];
2175
- readonly completedAt: string;
2176
- }
2177
- type EpisodeReviewDrainEligibility = 'eligible' | 'discard' | 'defer';
2178
- interface EpisodeReviewDrainOptions {
2179
- readonly maxEntries?: number;
2180
- readonly revalidate: (entry: PendingEpisodeReview) => Promise<EpisodeReviewDrainEligibility>;
2181
- readonly review: (entry: PendingEpisodeReview) => Promise<readonly string[]>;
2182
- readonly prepareV2Input?: (entry: PendingEpisodeReviewV2) => Promise<EpisodeReviewInputSpec>;
2183
- readonly decideV2?: (entry: PendingEpisodeReviewV2, input: EpisodeReviewInputCheckpoint, signal: AbortSignal) => Promise<EpisodeReviewDecisionInput>;
2184
- readonly listV2Actions?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision) => readonly ('memory' | 'skill')[];
2185
- 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[]>;
2186
- readonly onV2Completed?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision, proposalIds: readonly string[]) => Promise<void>;
2187
- }
2188
- interface EpisodeReviewDrainResult {
2189
- readonly reviewed: number;
2190
- readonly discarded: number;
2191
- readonly deferred: number;
2192
- readonly failed: number;
2193
- readonly failures: readonly {
2194
- readonly reviewKey: string;
2195
- readonly error: string;
2196
- }[];
2197
- }
2198
- declare class EpisodeReviewBranchChangedError extends Error {
2199
- constructor();
2200
- }
2201
- declare function captureEpisodeReviewBranchEpoch(identity: MemoryContextIdentity): Promise<number>;
2202
- declare function persistPendingEpisodeReview(identity: MemoryContextIdentity, digest: KodaXMemoryOutcomeDigest, options?: {
2203
- readonly expectedBranchEpoch?: number;
2204
- readonly persistOwner?: (entry: PendingEpisodeReviewV2) => Promise<void>;
2205
- }): Promise<{
2206
- readonly path: string;
2207
- readonly entry: PendingEpisodeReviewV2;
2208
- }>;
2209
- declare function claimEpisodeReview(identity: MemoryContextIdentity, reviewKeyOrJobId: string, options?: {
2210
- readonly now?: Date;
2211
- readonly leaseMs?: number;
2212
- }): Promise<EpisodeReviewClaim | undefined>;
2213
- declare function freezeEpisodeReviewInput(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, spec: EpisodeReviewInputSpec, now?: Date): Promise<EpisodeReviewInputCheckpoint>;
2214
- declare function commitEpisodeReviewDecision(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, input: EpisodeReviewDecisionInput, now?: Date): Promise<EpisodeReviewDecision>;
2215
- declare function commitEpisodeReviewAction(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, input: EpisodeReviewActionInput, now?: Date): Promise<EpisodeReviewActionReceipt>;
2216
- declare function withEpisodeReviewClaimAuthority<T>(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, operation: (revalidateAuthority: () => Promise<void>) => Promise<T>): Promise<T>;
2217
- declare function failEpisodeReviewAttempt(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, failure: {
2218
- readonly kind: EpisodeReviewFailureKind;
2219
- readonly message: string;
2220
- }, now?: Date): Promise<EpisodeReviewJobState>;
2221
- declare function failEpisodeReviewApply(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, failure: {
2222
- readonly carrier: 'memory' | 'skill';
2223
- readonly message: string;
2224
- }, now?: Date): Promise<EpisodeReviewJobState>;
2225
- declare function deferEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, reason: string, now?: Date): Promise<EpisodeReviewJobState>;
2226
- declare function completeFencedEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, proposalIds: readonly string[], now?: Date): Promise<{
2227
- readonly acknowledged: boolean;
2228
- readonly receiptPath: string;
2229
- }>;
2230
- declare function discardFencedEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, reason: string, now?: Date): Promise<void>;
2231
- declare function inspectEpisodeReviewJob(identity: MemoryContextIdentity, reviewKeyOrJobId: string): Promise<EpisodeReviewJobSnapshot | undefined>;
2232
- declare function listPendingEpisodeReviews(filter: {
2233
- readonly configHome?: string;
2234
- readonly tenantId: string;
2235
- readonly agentId?: string;
2236
- readonly projectId?: string;
2237
- }): Promise<readonly PendingEpisodeReview[]>;
2238
- declare function completeEpisodeReview(identity: MemoryContextIdentity, reviewKey: string, proposalIds: readonly string[]): Promise<{
2239
- readonly acknowledged: boolean;
2240
- readonly receiptPath: string;
2241
- }>;
2242
- declare function rewindPendingEpisodeReviews(identity: MemoryContextIdentity, throughSequence: number): Promise<number>;
2243
- declare function rewindPendingEpisodeReviewsForSession(input: {
2244
- readonly configHome?: string;
2245
- readonly sessionId: string;
2246
- }, throughSequence: number): Promise<number>;
2247
- /**
2248
- * Fences every tenant-owned review job for a Session unless its exact durable
2249
- * job identity is attached to the prospective active lineage branch. Legacy
2250
- * lineage records may supply digest.id as a conservative fallback.
2251
- */
2252
- declare function fencePendingEpisodeReviewsForSession(input: {
2253
- readonly configHome?: string;
2254
- readonly sessionId: string;
2255
- }, activeReviewIds: readonly string[]): Promise<number>;
2256
- /**
2257
- * Establishes the lock order used by both review completion and Session branch
2258
- * mutation: the Session root registry first, every sorted tenant branch fence
2259
- * next, then the caller-owned Session transaction. The supplied fence operation
2260
- * runs without reacquiring those locks, so a mutation can fence its prospective
2261
- * lineage and persist that exact lineage atomically with respect to review
2262
- * effects, new tenant registration and completion delivery.
2263
- */
2264
- declare function withPendingEpisodeReviewSessionFence<T>(input: {
2265
- readonly configHome?: string;
2266
- readonly sessionId: string;
2267
- }, operation: (fence: (activeReviewIds: readonly string[]) => Promise<number>) => Promise<T>): Promise<T>;
2268
- declare function drainPendingEpisodeReviews(identity: MemoryContextIdentity, options: EpisodeReviewDrainOptions): Promise<EpisodeReviewDrainResult>;
1997
+ /** Revision of the exact decision preview shown to a user. */
1998
+ declare function memoryProposalRevision(proposal: MemoryActionProposal): string;
1999
+
2000
+ /** Unambiguous user/SDK handle for a mutable Memory item. */
2001
+ declare function memoryMutationHandle(ref: MemoryItemRef): string;
2269
2002
 
2270
2003
  type SkillWriteOrigin = 'foreground_user' | 'assistant_tool' | 'background_learning';
2271
2004
  type ProceduralLearningDestination = 'skill_patch' | 'skill_create' | 'workflow_handoff' | 'memdir_handoff' | 'reasoning_handoff' | 'trace_only' | 'discard';
@@ -2284,9 +2017,14 @@ interface MemoryHandoffMetadata {
2284
2017
  readonly claimKind?: 'fact' | 'policy' | 'preference' | 'procedure' | 'episode';
2285
2018
  readonly claimKey?: string;
2286
2019
  readonly actionSignature?: string;
2287
- readonly persistenceKind?: 'create' | 'evidence_update' | 'condition_refinement';
2020
+ readonly persistenceKind?: 'create' | 'evidence_update' | 'condition_refinement' | 'conflict';
2021
+ /** User-facing explanation preserved across proposal-store restarts. */
2022
+ readonly reviewRationale?: string;
2023
+ /** User-facing risk preserved across proposal-store restarts. */
2024
+ readonly reviewRisk?: LearningRisk;
2288
2025
  readonly targetRefId?: string;
2289
2026
  readonly targetStorageUri?: string;
2027
+ readonly authorizationTargetFingerprint?: string;
2290
2028
  readonly preconditions?: string;
2291
2029
  readonly applicability?: MemoryApplicability;
2292
2030
  readonly requestedLifecycle?: 'active' | 'provisional';
@@ -2510,6 +2248,7 @@ declare function upsertLearningProposal(filePath: string, proposal: ReviewableLe
2510
2248
  }): Promise<StoredLearningProposal>;
2511
2249
  declare function resolveLearningProposalStore(cwd: string, configHome?: string): string;
2512
2250
  declare function updateLearningProposalStatus(filePath: string, proposalId: string, status: LearningProposalReviewStatus, options?: {
2251
+ readonly expectedStatus?: LearningProposalReviewStatus;
2513
2252
  readonly rejectedReason?: string;
2514
2253
  readonly appliedAt?: string;
2515
2254
  readonly appliedChangedPaths?: readonly string[];
@@ -2771,6 +2510,7 @@ interface LegacyLearnedSkillMigrationResult {
2771
2510
  declare function migrateLegacyLearnedSkillsForProject(configHome: string, projectStore: LearnedAreaStore, scope: LearnedCapabilityScope): Promise<LegacyLearnedSkillMigrationResult>;
2772
2511
 
2773
2512
  declare function withLearningFileLock<T>(lockPath: string, operation: () => Promise<T>, acquireTimeoutMs?: number): Promise<T>;
2513
+ declare function acquireLearningFileLock(lockPath: string, acquireTimeoutMs?: number): Promise<() => Promise<void>>;
2774
2514
 
2775
2515
  declare const SKILL_CREATOR_DISPATCH_ACTIONS: readonly ["init", "validate", "eval", "grade", "analyze", "compare", "package", "install"];
2776
2516
  type SkillCreatorDispatchAction = (typeof SKILL_CREATOR_DISPATCH_ACTIONS)[number];
@@ -3652,5 +3392,5 @@ declare class AgentTurnScheduler {
3652
3392
  restore(turnIds: readonly string[]): void;
3653
3393
  }
3654
3394
 
3655
- export { Agent, AgentActorStoreConflictError, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentCancellationUncertainError, AgentControlError, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentLimitReached, AgentLimitReachedError, AgentManifest, AgentMessage, AgentOwnerConflictError, AgentOwnerUnknownError, AgentRevisionConflictError, AgentSettlementPersistenceError, AgentShutdownPersistenceError, AgentStartUncertainError, AgentTurnScheduler, BUN_BE_BUN_ENV, CAPABILITY_CACHE_FILENAME, COMPACTED_HISTORY_RECOVERY_GUIDANCE, COMPACTION_PROTECTION_RATIO, COMPACTION_SUMMARY_PREFIX, CONTEXT_SAFETY_FLOOR_TOKENS, CONTEXT_SAFETY_RATIO, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, CompactionConfig, CompactionDetails, CompactionResult, CompactionUpdate, ConsoleTracingProcessor, ContextCapacityError, CreateAgentExecutorPlaneOptions, DEFAULT_COMPACTION_TRIGGER_PERCENT, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, ELECTRON_NODE_ENV_SCRUB_IMPORT, ELECTRON_RUN_AS_NODE_ENV, EnqueueInput, EpisodeReviewBranchChangedError, EpisodeReviewFailure, ExternalAgentProtocol, ExternalAgentRegistrationConflictError, FileExtensionStore, FileLearningCenterService, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, ImageResizeError, InstanceDiscoveryFs, InvariantId, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXFileInputArtifact, KodaXGoalEventType, KodaXGoalState, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXMediaError, KodaXMemoryOutcomeDigest, KodaXMessage, KodaXReasoningRequest, KodaXSessionArtifactLedgerEntry, KodaXSessionData, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXSessionStorage, KodaXTokenUsage, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, LearnedAreaStore, LearnedCapabilityRecord, LearnedCapabilityScope, LearningActionDriver, LearningEvent, LearningExplicitUserAuthority, LearningPage, LearningQuery, LearningSubscribeOptions, LearningSurfaceSnapshot, MAX_COMPACTION_TRIGGER_PERCENT, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, MEMORY_POLICY_VERSION, MIN_COMPACTION_TRIGGER_PERCENT, ManifestPatch, MemoryActionProposal, MemoryApplicability, MemoryApplyResult, MemoryBodySnapshot, MemoryContextIdentity, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEpisodeReviewResult, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryLifecycleOperationResult, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewModelInput, MemoryReviewPlan, MemoryReviewRunner, MessagePriority, MessageQueue, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedInputArtifact, QueuedInputArtifactError, QueuedMessage, ResolvedSkillSource, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowOutcome, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, addTracingProcessor, appendGoalEntry, appendMemoryClientNotice, appendMemoryOutcomeDigest, appendMemoryReviewReceipt, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionCacheInstruction, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, buildWorkflowOutcome, calculateContextSafetyMargin, calculateMaxContextInputTokens, canMarkCreatedByAgent, captureEpisodeReviewBranchEpoch, claimEpisodeReview, cleanupRegisteredManagedChildren, clearCapabilityCache, collectUserQueryLedger, commitEpisodeReviewAction, commitEpisodeReviewDecision, compact, completeEpisodeReview, completeFencedEpisodeReview, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLearnedSkillActionDriver, createLearningCenterService, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, deferEpisodeReview, detectHandoffSignal, detectIdleYield, discardFencedEpisodeReview, dispatchSkillCreatorTool, drainPendingEpisodeReviews, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueWithArtifacts, evidenceTrail, exceedsContextCapacity, failEpisodeReviewApply, failEpisodeReviewAttempt, fencePendingEpisodeReviewsForSession, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, freezeEpisodeReviewInput, generateSummary, getActiveMemoryOutcomeReviewIds, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getLearnedExtensionToolName, getMessageQueue, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, inspectEpisodeReviewJob, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isCurrentProcessWindowsJobContained, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, isLearnedExtensionCommandAllowed, isSkillCreatorDispatchAction, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listPendingEpisodeReviews, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, mergeUserQueryLedger, microcompact, midTurnDrainPriority, migrateLegacyLearnedSkillsForProject, needsCompaction, normalizeCompactionConfig, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, parseUserQueryLedger, persistCompactedSessionHistory, persistImageAsBlock, persistPendingEpisodeReview, prepareInternalNodeLaunch, prepareJavaScriptChildLaunch, projectLearningProposals, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readProcessStartIdentity, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, rememberChildProcessTree, renderUserQueryLedger, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveCompactionPolicy, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveScopedMemoryRoot, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, rewindPendingEpisodeReviews, rewindPendingEpisodeReviewsForSession, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, sanitizePromptSafeMemoryClaim, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent, withEpisodeReviewClaimAuthority, withLearningFileLock as withKodaXFileLock, withPendingEpisodeReviewSessionFence };
3656
- export type { AdmissionMetricsSnapshot, AgentControlErrorCode, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompactionCacheContext, CompactionProviderObserver, CompactionProviderRequest, CompactionProviderRouting, CompactionTriggerSource, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLearnedSkillActionDriverOptions, CreateLearningCenterServiceOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, EpisodeReviewActionInput, EpisodeReviewActionReceipt, EpisodeReviewClaim, EpisodeReviewDecision, EpisodeReviewDecisionInput, EpisodeReviewDrainEligibility, EpisodeReviewDrainOptions, EpisodeReviewDrainResult, EpisodeReviewFailureKind, EpisodeReviewInputCheckpoint, EpisodeReviewInputSpec, EpisodeReviewJobSnapshot, EpisodeReviewJobState, EpisodeReviewJobStatus, EpisodeReviewReceipt, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, GracefulCompactionCapacity, HandoffSignal, IdleYieldSnapshot, InternalNodeLaunch, InvokeLlmJudgeOptions, JavaScriptChildLaunch, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningCenterService, LearningIntakeRecordResult, LearningProposalProjection, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LegacyLearnedSkillMigrationResult, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PendingEpisodeReview, PendingEpisodeReviewV1, PendingEpisodeReviewV2, PersistCompactedSessionHistoryInput, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, PrepareInternalNodeLaunchOptions, PrepareJavaScriptChildLaunchOptions, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ProcessTreeKillResult, ProcessTreeKillStatus, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, ReferenceAgentExecutorFactoryOptions, RenderOptions, ResolvedCompactionPolicy, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RunFanOutOptions, RunFanOutResult, RunRestrictedWorkflowScriptOptions, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, SkillConsumerImpact, SkillConsumerImpactScanInput, SkillGovernanceAction, SkillGovernanceDecision, SkillGovernanceInput, SkillGovernanceMode, SkillLearningApplyInput, SkillLearningProposal, SkillMutationApplyResult, SkillMutationChange, SkillOwnership, SkillSnapshotLocation, SkillTrustLedgerReadResult, SkillTrustRecord, SkillTrustState, SkillTrustUpdateInput, SkillTrustUpdateResult, SkillUsageEvent, SkillUsageEventInput, SkillUsageLedgerReadResult, SkillUsageRecord, SkillUsageRecordResult, SkillWriteOrigin, StoredLearningApplyPlan, StoredLearningApprovalResult, StoredLearningProposal, StoredSkillLearningApplyPlan, TeamModeBootstrapOptions, TeamModeHandle, TraceOnlyLearningReport, TracingProcessor, UserQueryLedgerEntry, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
3395
+ export { Agent, AgentActorStoreConflictError, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentCancellationUncertainError, AgentControlError, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentLimitReached, AgentLimitReachedError, AgentManifest, AgentMessage, AgentOwnerConflictError, AgentOwnerUnknownError, AgentRevisionConflictError, AgentSettlementPersistenceError, AgentShutdownPersistenceError, AgentStartUncertainError, AgentTurnScheduler, BUN_BE_BUN_ENV, CAPABILITY_CACHE_FILENAME, COMPACTED_HISTORY_RECOVERY_GUIDANCE, COMPACTION_PROTECTION_RATIO, COMPACTION_SUMMARY_PREFIX, CONTEXT_SAFETY_FLOOR_TOKENS, CONTEXT_SAFETY_RATIO, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, CompactionConfig, CompactionDetails, CompactionResult, CompactionUpdate, ConsoleTracingProcessor, ContextCapacityError, CreateAgentExecutorPlaneOptions, DEFAULT_COMPACTION_TRIGGER_PERCENT, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, ELECTRON_NODE_ENV_SCRUB_IMPORT, ELECTRON_RUN_AS_NODE_ENV, EnqueueInput, 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, MemoryContextIdentity, MemoryItemRef, 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, acquireLearningFileLock as acquireKodaXFileLock, addTracingProcessor, appendGoalEntry, appendMemoryClientNotice, appendMemoryOutcomeDigest, appendMemoryReviewReceipt, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionCacheInstruction, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, buildWorkflowOutcome, calculateContextSafetyMargin, calculateMaxContextInputTokens, canMarkCreatedByAgent, cleanupRegisteredManagedChildren, clearCapabilityCache, collectUserQueryLedger, compact, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, containWindowsEffectProcess, countLastAssistantToolCalls, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLearnedSkillActionDriver, createLearningCenterService, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, detectHandoffSignal, detectIdleYield, dispatchSkillCreatorTool, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueWithArtifacts, evidenceTrail, exceedsContextCapacity, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, generateSummary, getActiveMemoryOutcomeReviewIds, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getLearnedExtensionToolName, getMessageQueue, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isCurrentProcessWindowsJobContained, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, isLearnedExtensionCommandAllowed, isSkillCreatorDispatchAction, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, memoryMutationHandle, memoryProposalRevision, mergeUserQueryLedger, microcompact, midTurnDrainPriority, migrateLegacyLearnedSkillsForProject, needsCompaction, normalizeCompactionConfig, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, parseUserQueryLedger, persistCompactedSessionHistory, persistImageAsBlock, prepareInternalNodeLaunch, prepareJavaScriptChildLaunch, projectLearningProposals, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readProcessStartIdentity, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, rememberChildProcessTree, renderUserQueryLedger, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveCompactionPolicy, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveScopedMemoryRoot, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, sanitizePromptSafeMemoryClaim, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent, withLearningFileLock as withKodaXFileLock };
3396
+ export type { AdmissionMetricsSnapshot, AgentControlErrorCode, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompactionCacheContext, CompactionProviderObserver, CompactionProviderRequest, CompactionProviderRouting, CompactionTriggerSource, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLearnedSkillActionDriverOptions, CreateLearningCenterServiceOptions, CreateLlmJudgedStopHookOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, GracefulCompactionCapacity, HandoffSignal, IdleYieldSnapshot, InternalNodeLaunch, InvokeLlmJudgeOptions, JavaScriptChildLaunch, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningCenterService, LearningIntakeRecordResult, LearningProposalProjection, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LegacyLearnedSkillMigrationResult, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PersistCompactedSessionHistoryInput, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, PrepareInternalNodeLaunchOptions, PrepareJavaScriptChildLaunchOptions, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ProcessTreeKillResult, ProcessTreeKillStatus, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, ReferenceAgentExecutorFactoryOptions, RenderOptions, ResolvedCompactionPolicy, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RunFanOutOptions, RunFanOutResult, RunRestrictedWorkflowScriptOptions, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, SkillConsumerImpact, SkillConsumerImpactScanInput, SkillGovernanceAction, SkillGovernanceDecision, SkillGovernanceInput, SkillGovernanceMode, SkillLearningApplyInput, SkillLearningProposal, SkillMutationApplyResult, SkillMutationChange, SkillOwnership, SkillSnapshotLocation, SkillTrustLedgerReadResult, SkillTrustRecord, SkillTrustState, SkillTrustUpdateInput, SkillTrustUpdateResult, SkillUsageEvent, SkillUsageEventInput, SkillUsageLedgerReadResult, SkillUsageRecord, SkillUsageRecordResult, SkillWriteOrigin, StoredLearningApplyPlan, StoredLearningApprovalResult, StoredLearningProposal, StoredSkillLearningApplyPlan, TeamModeBootstrapOptions, TeamModeHandle, TraceOnlyLearningReport, TracingProcessor, UserQueryLedgerEntry, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WindowsEffectJob, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
package/dist/sdk-agent.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{$ as mo,$a as dr,$b as hp,$c as ht,$d as hx,A as F,Aa as Go,Ab as ke,Ac as Op,Ad as Ot,B as G,Ba as Ho,Bb as le,Bc as Pp,Bd as Pt,C as H,Ca as Oo,Cb as ne,Cc as Qp,Cd as Qt,D as I,Da as Po,Db as Rm,Dc as Rp,Dd as Rt,E as J,Ea as Qo,Eb as Sm,Ec as Sp,Ed as St,F as K,Fa as Ro,Fb as Tm,Fc as Tp,Fd as Tt,G as L,Ga as So,Gb as Um,Gc as Up,Gd as Ut,H as M,Ha as To,Hb as Vm,Hc as Vp,Hd as Vt,I as N,Ia as Uo,Ib as Wm,Ic as Wp,Id as Wt,J as O,Ja as Vo,Jb as Xm,Jc as Xp,Jd as Xt,K as P,Ka as Wo,Kb as Ym,Kc as Yp,Kd as Yt,L as Q,La as Xo,Lb as Zm,Lc as Zp,Ld as Zt,M as R,Ma as Yo,Mb as _m,Mc as _p,Md as _t,N as S,Na as Zo,Nb as $m,Nc as $p,Nd as $t,O as T,Oa as _o,Ob as op,Oc as ot,Od as ox,P as U,Pa as $o,Pb as rp,Pc as rt,Pd as rx,Q as V,Qa as or,Qb as ep,Qc as et,Qd as ex,R as W,Ra as rr,Rb as fp,Rc as ft,Rd as fx,S as X,Sa as er,Sb as mp,Sc as mt,Sd as mx,T as Y,Ta as fr,Tb as pp,Tc as pt,Td as px,U as Z,Ua as mr,Ub as tp,Uc as tt,Ud as tx,V as _,Va as pr,Vb as xp,Vc as xt,Vd as xx,W as $,Wa as tr,Wb as ap,Wc as at,Wd as ax,X as oo,Xa as xr,Xb as bp,Xc as bt,Xd as bx,Y as ro,Ya as ar,Yb as cp,Yc as ct,Yd as cx,Z as eo,Za as br,Zb as dp,Zc as dt,Zd as dx,_ as fo,_a as cr,_b as gp,_c as gt,_d as gx,a as o,aa as po,ab as gr,ac as ip,ad as it,ae as ix,b as r,ba as to,bb as hr,bc as jp,bd as jt,be as jx,c as e,ca as xo,cb as ir,cc as kp,cd as kt,ce as kx,d as f,da as ao,db as jr,dc as lp,dd as lt,de as lx,e as m,ea as bo,eb as kr,ec as np,ed as nt,ee as nx,f as p,fa as co,fb as lr,fc as qp,fd as qt,fe as qx,g as t,ga as go,gb as nr,gc as sp,gd as st,ge as sx,h as x,ha as ho,hb as Zr,hc as up,hd as ut,he as ux,i as a,ia as io,ib as _r,ic as vp,id as vt,ie as vx,j as b,ja as jo,jb as $r,jc as wp,jd as wt,je as wx,k as g,ka as ko,kb as oe,kc as yp,kd as yt,ke as yx,l as h,la as lo,lb as re,lc as zp,ld as zt,le as zx,m as i,ma as no,mb as ee,mc as Ap,md as At,me as Ax,n as j,na as qo,nb as fe,nc as Bp,nd as Bt,ne as Bx,o as k,oa as so,ob as me,oc as Cp,od as Ct,oe as Cx,p as l,pa as uo,pb as pe,pc as Dp,pd as Dt,q as u,qa as vo,qb as te,qc as Ep,qd as Et,r as v,ra as wo,rb as xe,rc as Fp,rd as Ft,s as w,sa as yo,sb as ae,sc as Gp,sd as Gt,t as y,ta as zo,tb as be,tc as Hp,td as Ht,u as z,ua as Ao,ub as ce,uc as Ip,ud as It,v as A,va as Bo,vb as de,vc as Jp,vd as Jt,w as B,wa as Co,wb as ge,wc as Kp,wd as Kt,x as C,xa as Do,xb as he,xc as Lp,xd as Lt,y as D,ya as Eo,yb as ie,yc as Mp,yd as Mt,z as E,za as Fo,zb as je,zc as Np,zd as Nt}from"./chunks/chunk-45E23YJI.js";import{$ as mf,$a as pm,A as Ie,Aa as Gf,Ab as Fm,B as Je,Ba as Hf,Bb as Gm,C as Ke,Ca as If,Cb as Hm,D as Le,Da as Jf,Db as Im,E as Me,Ea as Kf,Eb as Jm,F as Ne,Fa as Lf,Fb as Km,G as Oe,Ga as Mf,Gb as Lm,H as Pe,Ha as Nf,Hb as Mm,I as Qe,Ia as Of,Ib as Nm,Ja as Pf,Jb as Om,Ka as Qf,Kb as Pm,La as Rf,Lb as Qm,M as Re,Ma as Sf,N as Se,Na as Tf,O as Te,Oa as Uf,P as Ue,Pa as Vf,Q as Ve,Qa as Wf,R as We,Ra as Xf,S as Xe,Sa as Yf,T as Ye,Ta as Zf,U as Ze,Ua as _f,V as _e,Va as $f,W as $e,Wa as om,X as of,Xa as rm,Y as rf,Ya as em,Z as ef,Za as fm,_ as ff,_a as mm,a as c,aa as pf,ab as tm,b as d,ba as tf,bb as xm,c as n,ca as xf,cb as am,d as q,da as af,db as bm,e as s,ea as bf,eb as cm,f as Io,fa as cf,fb as dm,g as Jo,ga as df,gb as gm,h as Ko,ha as gf,hb as hm,i as Lo,ia as hf,ib as im,j as Mo,ja as jf,k as No,ka as kf,kb as jm,l as qe,la as lf,lb as km,m as se,ma as nf,mb as lm,n as ue,na as qf,nb as nm,o as ve,oa as sf,ob as qm,p as we,pa as uf,pb as sm,q as ye,qa as vf,qb as um,r as ze,ra as wf,rb as vm,s as Ae,sa as yf,sb as wm,t as Be,ta as zf,tb as ym,u as Ce,ua as Af,ub as zm,v as De,va as Bf,vb as Am,w as Ee,wa as Cf,wb as Bm,x as Fe,xa as Df,xb as Cm,y as Ge,ya as Ef,yb as Dm,z as He,za as Ff,zb as Em}from"./chunks/chunk-EVXIJPZ6.js";import{A as Tr,B as Ur,C as Vr,D as Wr,E as Xr,F as Yr,a as qr,b as sr,c as ur,d as vr,e as wr,f as yr,g as zr,h as Ar,i as Br,j as Cr,k as Dr,l as Er,m as Fr,n as Gr,o as Hr,p as Ir,q as Jr,r as Kr,s as Lr,t as Mr,u as Nr,v as Or,w as Pr,x as Qr,y as Rr,z as Sr}from"./chunks/chunk-E7C4DRD2.js";import"./chunks/chunk-6UENDY33.js";import"./chunks/chunk-ONUPGMER.js";export{hr as ASK_USER_BACK_SIGNAL,ir as ASK_USER_CUSTOM_INPUT_SIGNAL,Bx as AgentActorController,sx as AgentActorStoreConflictError,nx as AgentBudgetExhaustedError,hx as AgentCancellationUncertainError,zx as AgentControlError,lx as AgentLimitReachedError,ux as AgentOwnerConflictError,vx as AgentOwnerUnknownError,qx as AgentRevisionConflictError,wx as AgentSettlementPersistenceError,yx as AgentShutdownPersistenceError,gx as AgentStartUncertainError,Ax as AgentTurnScheduler,Yo as BUN_BE_BUN_ENV,Oo as CAPABILITY_CACHE_FILENAME,Mp as COMPACTED_HISTORY_RECOVERY_GUIDANCE,Dp as COMPACTION_PROTECTION_RATIO,Lp as COMPACTION_SUMMARY_PREFIX,g as CONTEXT_SAFETY_FLOOR_TOKENS,h as CONTEXT_SAFETY_RATIO,Go as CORE_INVARIANTS,K as ConsoleTracingProcessor,i as ContextCapacityError,Ap as DEFAULT_COMPACTION_TRIGGER_PERCENT,It as DEFAULT_CONTEXT_WINDOW,fe as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,At as DEFAULT_MICROCOMPACTION_CONFIG,Sp as DEFAULT_POST_COMPACT_CONFIG,up as DEFAULT_SUMMARY_PROMPT,X as DEFAULT_SYSTEM_CAP,vp as DEFAULT_UPDATE_SUMMARY_PROMPT,y as DefaultSummaryCompaction,Zo as ELECTRON_NODE_ENV_SCRUB_IMPORT,Xo as ELECTRON_RUN_AS_NODE_ENV,qm as EpisodeReviewBranchChangedError,nm as EpisodeReviewFailure,ix as ExternalAgentRegistrationConflictError,Et as FileExtensionStore,Af as FileLearningCenterService,L as FileTracingProcessor,bo as GuardrailBlockedError,co as GuardrailEscalateError,Vo as HARDENED_ENV_VARS,Wo as HARDENING_OPT_OUT_ENV,Er as ImageResizeError,ro as InvariantSession,a as KODAX_API_MIN_INTERVAL,r as KODAX_DEFAULT_TIMEOUT,Vr as KODAX_FILE_MEDIA_TYPES,e as KODAX_HARD_TIMEOUT,Tr as KODAX_IMAGE_MEDIA_TYPES,p as KODAX_MAX_INCOMPLETE_RETRIES,t as KODAX_MAX_MAXTOKENS_RETRIES,f as KODAX_MAX_RETRIES,o as KODAX_MAX_TOKENS,m as KODAX_RETRY_BASE_DELAY,x as KODAX_STAGGER_DELAY,Ur as KODAX_VIDEO_MEDIA_TYPES,Dr as KodaXMediaError,hp as LINEAGE_ENTRY_TYPES,wf as LearnedAreaStore,kf as LearningCapabilityError,jp as LineageCompaction,ip as LineageExtension,Cp as MAX_COMPACTION_TRIGGER_PERCENT,Kr as MAX_DIMENSION,Je as MAX_ENTRYPOINT_BYTES,Ie as MAX_ENTRYPOINT_LINES,Ye as MAX_SKILL_MD_BYTES,Ze as MAX_SKILL_SUPPORT_FILE_BYTES,fo as MAX_TOOL_LOOP_ITERATIONS,ve as MEMORY_POLICY_VERSION,Bp as MIN_COMPACTION_TRIGGER_PERCENT,Ym as McpAuthRequiredError,bp as McpCapabilityProvider,Xm as McpExpiredSessionError,cp as McpManager,ap as McpServerRuntime,Zm as McpTransportCleanupIncompleteError,lm as MemoryControlPlane,qr as MessageQueue,Pr as PASTE_TMP_DIR_ENV,Qr as PASTE_TMP_TTL_MS,Rp as POST_COMPACT_MAX_TOKENS_PER_FILE,Qp as POST_COMPACT_TOKEN_BUDGET,b as PROMISE_PATTERN,Kp as PROTECTED_TOOL_NAMES,Zr as QueuedInputArtifactError,Bo as Runner,vo as RunnerIterationLimitError,am as SkillExecutor,mm as SkillRegistry,z as SpanImpl,Lr as TARGET_RAW_SIZE_BYTES,I as Tracer,rm as VariableResolver,Zt as WORKFLOW_CAPSULE_API_VERSION,Xt as WORKFLOW_CAPSULE_FORMAT,Yt as WORKFLOW_CAPSULE_VERSION,Pt as WORKFLOW_PATTERN_IDS,ex as WorkflowAbortError,mx as WorkflowBudgetError,Lt as WorkflowEventRecorder,fx as WorkflowLimitError,Tt as WorkflowScriptExecutionError,px as WorkflowTaskFailedError,Ar as YIELD_TOOL_NAMES,F as _emitSpanEnd,E as _emitSpanStart,G as _emitTraceEnd,D as _getRegisteredProcessors,zr as _resetActiveRootQueueRoutesForTests,V as _resetAdmissionMetrics,oo as _resetAdmittedAgentBindings,R as _resetInvariantRegistry,ur as _resetMessageQueueForTests,zo as _resetPresetDispatchers,vr as actorQueueId,B as addTracingProcessor,Uf as admitAndRecordLearnedSkillInvocation,Lf as admitLearnedSkillBinding,yt as appendGoalEntry,ht as appendMemoryClientNotice,ct as appendMemoryOutcomeDigest,dt as appendMemoryReviewReceipt,ot as appendSessionLineageLabel,et as applyLineageTruncation,M as applyManifestPatch,_o as applyProcessHardening,rt as applySessionCompaction,mf as applySkillLearningProposal,pf as approveStoredLearningProposal,bt as archiveOldIslands,kr as asSingleSelection,nf as assertLearnedCapabilityTransition,St as assertRestrictedWorkflowQuality,so as attachRunnerRecoveryTranscript,ge as bootstrapTeamMode,xo as buildAssistantMessageFromLlmResult,wp as buildCompactionCacheInstruction,yp as buildCompactionPromptSnapshot,Vp as buildFileContentMessages,xp as buildInitializeCapabilities,ae as buildOtherInstancesPromptBlock,Tp as buildPostCompactAttachments,Dt as buildRecoverySeed,xt as buildSessionTree,Ao as buildSystemPrompt,ao as buildToolResultMessage,rx as buildWorkflowCapsuleIntent,Kt as buildWorkflowOutcome,j as calculateContextSafetyMargin,l as calculateMaxContextInputTokens,We as canMarkCreatedByAgent,lf as canTransitionLearnedCapability,sm as captureEpisodeReviewBranchEpoch,vm as claimEpisodeReview,ie as cleanupIncompleteToolCalls,gr as cleanupRegisteredManagedChildren,To as clearCapabilityCache,Oe as clearPluginSkillPaths,go as collectGuardrails,Gp as collectUserQueryLedger,zm as commitEpisodeReviewAction,ym as commitEpisodeReviewDecision,Kf as commitLearnedSkillRevision,Pp as compact,Im as completeEpisodeReview,Em as completeFencedEpisodeReview,Of as completeLearnedSkillOutcome,Vf as completeLearnedSkillSessionOutcomes,ee as composeIdleYieldUserMessage,N as composePatches,hf as computeSkillConsumerImpact,at as countActiveLineageMessages,$r as countLastAssistantToolCalls,d as countTokens,u as createAgent,Cx as createAgentActorController,jx as createAgentExecutorPlane,bm as createExecutor,Ft as createExtensionStore,Ir as createFileArtifactFromPath,v as createHandoff,Hr as createImageArtifactFromPath,w as createInMemorySession,eo as createInvariantSessionForAgent,Ff as createLearnedCapabilityScope,Rf as createLearnedSkillActionDriver,Jf as createLearnedSkillRecord,Bf as createLearningCenterService,ne as createLlmJudgedStopHook,Sm as createMcpCapabilityId,dp as createMcpManager,gp as createMcpTestServerFixture,_m as createMcpTransport,dx as createMemoryAgentExecutorPlaneStore,km as createMemoryControlPlane,kx as createReferenceAgentExecutorFactory,em as createResolver,Wt as createRestrictedWorkflowModule,Xp as createSessionLineage,te as createStateWriter,A as createTrace,Jr as createVideoArtifactFromPath,$t as createWorkflowCapsule,ox as createWorkflowModuleFromCapsule,Ot as createWorkflowProcessTracker,bx as createWorkflowRunManager,xx as createWorkflowRuntime,Xe as decideSkillGovernance,Rm as defaultMcpCacheDir,J as defaultTracer,Dm as deferEpisodeReview,lo as detectHandoffSignal,oe as detectIdleYield,Y as detectInstructionsInjection,Fm as discardFencedEpisodeReview,ep as discoverAuthorizationServerMetadata,xe as discoverInstances,fp as discoverOAuthEndpoints,rp as discoverProtectedResourceMetadata,Zf as discoverSkills,$f as discoverSkillsWithMonorepo,im as dispatchSkillCreatorTool,Nm as drainPendingEpisodeReviews,je as editDistance,qo as emitHandoffSpan,q as emitKodaXDiagnostic,Yr as enqueueWithArtifacts,c as estimateTokens,yf as eventFromCapability,ft as evictOldIslandMessageContent,Do as evidenceTrail,Yf as exactInvokedSkillSnapshotForSession,k as exceedsContextCapacity,to as executeRunnerToolCall,cm as executeSkill,dm as expandSkillForLLM,np as extractArtifactLedger,Co as extractAssistantTextFromMessage,kp as extractFileOps,op as extractInsufficientScope,$m as extractResourceMetadataUrl,kt as extractTitleFromMessages,Cm as failEpisodeReviewApply,Bm as failEpisodeReviewAttempt,Lm as fencePendingEpisodeReviewsForSession,Eo as finalOwner,ke as findFuzzyToolMatch,mt as findPreviousUserEntryId,tt as forkSessionLineage,s as formatKodaXDiagnostic,gm as formatSkillActivationMessage,wm as freezeEpisodeReviewInput,jt as generateSessionId,it as generateSessionIdSync,zp as generateSummary,gt as getActiveMemoryOutcomeReviewIds,ce as getActiveTeamModeWriter,nr as getActiveUserInteraction,U as getAdmissionMetricsSnapshot,$ as getAdmittedAgentBindings,Jo as getAgentConfigHome,Ko as getAgentConfigPath,No as getAppDataDir,Ro as getCachedRejectedEfforts,Po as getCapabilityCacheFile,Pe as getDefaultSkillPaths,cx as getDefaultWorkflowRunManager,P as getInvariant,Cf as getLearnedExtensionToolName,Wm as getMcpCachePaths,sr as getMessageQueue,Wr as getModelInputCapabilities,_f as getNestedSkillPaths,Yp as getSessionLineagePath,Wp as getSessionMessageEntryId,Zp as getSessionMessagesFromLineage,Qe as getSkillPathsFlat,pm as getSkillRegistry,Ht as gracefulCompactDegradation,Fo as handoffLegality,ye as hashCwd,se as hashMemoryIdentityComponent,Fr as inferImageMediaType,Gr as inferVideoMediaType,tm as initializeSkillRegistry,Up as injectPostCompactAttachments,Gm as inspectEpisodeReviewJob,Nf as invokeLearnedSkillCanary,le as invokeLlmJudge,W as isAdmissionDebugEnabled,jr as isAskUserCustomInputAnswer,De as isAutoManagedMemoryFile,er as isChildProcessExited,pr as isCurrentProcessWindowsJobContained,Np as isEmptyLikeSummary,Mt as isFinalWorkflowProcessStatus,zt as isGoalEntry,_r as isIdleYieldEnabled,Qf as isLearnedCapabilityRecordV2,Df as isLearnedExtensionCommandAllowed,Lo as isPathInsideDirectory,mo as isRunnableTool,wo as isRunnerIterationLimitError,po as isRunnerLlmResult,hm as isSkillCreatorDispatchAction,Pm as isUnifiedLearningReviewModelInput,br as killChildProcessTree,cr as killChildProcessTreeSync,xr as killPidTree,ar as killPidTreeSync,uf as learningEventIdFor,sf as learningEventKindForLifecycle,Rt as lintRestrictedWorkflowSource,Xf as listLearnedSkillUsageReceipts,Hm as listPendingEpisodeReviews,Ne as listPluginSkillPaths,Q as listRegisteredInvariants,Qo as loadCapabilityCache,Te as loadFullSkill,Ue as loadSkillFileContent,Se as loadSkillMetadata,tp as loadValidToken,qe as matchesMemoryApplicability,Cr as maybeDrainMidTurn,ue as memoryApplicabilityFingerprint,qp as mergeArtifactLedger,lp as mergeFileOps,Hp as mergeUserQueryLedger,Bt as microcompact,Br as midTurnDrainPriority,Sf as migrateLegacyLearnedSkillsForProject,Op as needsCompaction,Ep as normalizeCompactionConfig,Nt as normalizeHostMetadata,Tm as normalizeMcpCapabilityId,Mr as normalizePastedImage,Ct as normalizeRecoveryPrompt,Qm as normalizeUnifiedLearningReview,tx as normalizeWorkflowLimits,om as parseArguments,Um as parseMcpCapabilityId,Ge as parseMemoryFile,Fe as parseMemoryType,Ee as parseMemoryTypeFromFilename,He as parseScalarFields,Re as parseSkillMarkdown,Jp as parseUserQueryLedger,pp as performOAuthLogin,ut as persistCompactedSessionHistory,Rr as persistImageAsBlock,um as persistPendingEpisodeReview,$o as prepareInternalNodeLaunch,or as prepareJavaScriptChildLaunch,zf as projectLearningProposals,Sr as prunePasteTmpDir,Pf as quarantineLearnedSkillRevision,Or as readAndNormalizeClipboardImage,Nr as readClipboardImage,vt as readLatestGoalFromBranch,wt as readLatestGoalState,of as readLearningProposalStore,mr as readProcessStartIdentity,uo as readRunnerRecoveryTranscript,st as readSessionHistoryEntry,df as readSkillTrustLedger,bf as readSkillUsageLedger,Wf as reconcileLearnedSkillBindingOutcomes,jf as recordCompletedTurnLearning,Tf as recordLearnedSkillOffered,tf as recordProceduralLearning,So as recordRejectedEffort,cf as recordSkillUsage,wr as registerActiveRootQueueRoute,Ho as registerCoreInvariants,O as registerInvariant,dr as registerManagedChildProcess,mp as registerOAuthClient,Le as registerPluginSkillPath,yo as registerPresetDispatcher,Mf as releaseLearnedSkillBinding,tr as rememberChildProcessTree,Hf as renderDeclarativeSkill,Ip as renderUserQueryLedger,no as replaceSystemMessage,Uo as resetCapabilityCacheMemoForTesting,xm as resetSkillRegistry,yr as resolveActiveRootQueueRoute,Fp as resolveCompactionPolicy,Jt as resolveContextWindow,T as resolveEffectiveInvariants,Mo as resolveExecutionPath,vf as resolveLearnedAreaPaths,ef as resolveLearningProposalStore,Be as resolveMemoryEntrypoint,Ae as resolveMemoryRoot,Ef as resolveProjectLearnedAreaRoot,S as resolveRequiredInvariants,Ce as resolveScopedMemoryRoot,_p as resolveSessionLineageTarget,fm as resolveSkillContent,_e as resolveSkillSnapshotLocation,af as resolveSkillTrustLedger,xf as resolveSkillUsageLedger,Jm as rewindPendingEpisodeReviews,Km as rewindPendingEpisodeReviewsForSession,pt as rewindSessionLineage,Z as runAdmissionAudit,pe as runFanOut,ho as runInputGuardrails,io as runOutputGuardrails,Vt as runRestrictedWorkflowScript,ko as runToolAfterGuardrails,jo as runToolBeforeGuardrails,me as runWithIdleYield,ax as runWorkflow,we as sanitizeProjectKey,jm as sanitizePromptSafeMemoryClaim,Om as sanitizeUnifiedLearningReviewInput,Vm as searchMcpCatalog,lt as searchSessionHistory,qt as searchSessionHistoryCooperatively,sp as serializeConversation,be as setActiveTeamModeWriter,lr as setActiveUserInteraction,_ as setAdmittedAgentBindings,Io as setAgentConfigHome,n as setKodaXDiagnosticSink,$p as setSessionLineageActiveEntry,C as setTracingProcessors,Gt as shouldCompact,H as shutdownTracing,qf as slugifyLearnedCapabilityName,If as stageLearnedSkillRevision,rr as stripHardenedEnvVars,Ve as triageProceduralLearning,Ke as truncateEntrypointContent,ze as tryGitRemote,Me as unregisterPluginSkillPath,de as updateActiveTeamMode,ff as updateLearningProposalStatus,gf as updateSkillTrustLedger,rf as upsertLearningProposal,he as validateAndFixToolHistory,Gf as validateDeclarativeSkillSpec,Xr as validateInputArtifactsForModel,Ut as validateRestrictedWorkflowSource,nt as validateSessionHistorySearchQuery,_t as validateWorkflowCapsule,Qt as validateWorkflowScriptManifest,fr as waitForChildProcessExit,re as waitForWakeEvent,Am as withEpisodeReviewClaimAuthority,$e as withKodaXFileLock,Mm as withPendingEpisodeReviewSessionFence};
2
+ import{$,$a as or,$b as Ge,$c as Ef,$d as Dm,$e as Dp,$f as Dt,$g as Dx,A,Aa as Bo,Ab as pe,Ac as ef,Ad as fm,Ae as ep,Af as et,Ag as ex,B,Ba as Co,Bb as te,Bc as ff,Bd as mm,Be as fp,Bf as ft,Bg as fx,C,Ca as Do,Cb as xe,Cc as mf,Cd as pm,Ce as mp,Cf as mt,Cg as mx,D,Da as Eo,Db as ae,Dc as pf,Dd as tm,De as pp,Df as pt,Dg as px,E,Ea as Fo,Eb as be,Ec as tf,Ed as xm,Ee as tp,Ef as tt,Eg as tx,F,Fa as Go,Fb as ce,Fc as xf,Fd as am,Fe as xp,Ff as xt,Fg as xx,G,Ga as Ho,Gb as de,Gc as af,Gd as bm,Ge as ap,Gf as at,Gg as ax,H,Ha as Io,Hb as ge,Hc as bf,Hd as cm,He as bp,Hf as bt,Hg as bx,I,Ia as Jo,Ib as he,Ic as cf,Id as dm,Ie as cp,If as ct,Ig as cx,J,Ja as Ko,Jb as ie,Jc as df,Jd as gm,Je as dp,Jf as dt,Jg as dx,K,Ka as Lo,Kb as je,Kc as gf,Kd as hm,Ke as gp,Kf as gt,Kg as gx,L,La as Mo,Lb as ke,Lc as hf,Ld as im,Le as hp,Lf as ht,Lg as hx,M,Ma as No,Mb as le,Mc as jf,Md as jm,Me as ip,Mf as it,Mg as ix,N,Na as Oo,Nb as ne,Nc as kf,Nd as km,Ne as jp,Nf as jt,Ng as jx,O,Oa as Po,Ob as qe,Oc as lf,Od as lm,Oe as kp,Of as kt,Og as kx,P,Pa as Qo,Pb as se,Pc as nf,Pd as nm,Pe as lp,Pf as lt,Pg as lx,Q,Qa as Ro,Qb as ue,Qc as qf,Qd as qm,Qe as np,Qf as nt,Qg as nx,R,Ra as So,Rb as ve,Rc as sf,Re as qp,Rf as qt,Rg as qx,S,Sa as To,Sb as we,Sc as uf,Sd as sm,Se as sp,Sf as st,Sg as sx,T,Ta as Uo,Tb as ye,Tc as vf,Td as um,Te as up,Tf as ut,Tg as ux,U,Ua as Vo,Ub as ze,Uc as wf,Ud as vm,Ue as vp,Uf as vt,Ug as vx,V,Va as Wo,Vb as Ae,Vc as yf,Vd as wm,Ve as wp,Vf as wt,Vg as wx,W,Wa as Xo,Wb as Be,Wc as zf,Wd as ym,We as yp,Wf as yt,Wg as yx,X,Xa as Yo,Xb as Ce,Xc as Af,Xd as zm,Xe as zp,Xf as zt,Xg as zx,Y,Ya as Zo,Yb as De,Yc as Bf,Yd as Am,Ye as Ap,Yf as At,Yg as Ax,Z,Za as _o,Zb as Ee,Zc as Cf,Zd as Bm,Ze as Bp,Zf as Bt,Zg as Bx,_,_a as $o,_b as Fe,_c as Df,_d as Cm,_e as Cp,_f as Ct,_g as Cx,a as o,aa as oo,ab as rr,ac as He,ad as Ff,ae as Em,af as Ep,ag as Et,ah as Ex,b as r,ba as ro,bb as er,bc as Ie,bd as Gf,be as Fm,bf as Fp,bg as Ft,bh as Fx,c as e,ca as eo,cb as fr,cc as Je,cd as Hf,ce as Gm,cf as Gp,cg as Gt,d as f,da as fo,db as mr,dc as Ke,dd as If,de as Hm,df as Hp,dg as Ht,e as m,ea as mo,eb as pr,ec as Le,ed as Jf,ee as Im,ef as Ip,eg as It,f as p,fa as po,fb as tr,fc as Me,fd as Kf,fe as Jm,ff as Jp,fg as Jt,g as t,ga as to,gb as xr,gc as Ne,gd as Lf,ge as Km,gf as Kp,gg as Kt,h as x,ha as xo,hb as ar,hc as Oe,hd as Mf,he as Lm,hf as Lp,hg as Lt,i as a,ia as ao,ib as br,ic as Pe,id as Nf,ie as Mm,if as Mp,ig as Mt,j as b,ja as bo,jb as cr,jc as Qe,jd as Of,je as Nm,jf as Np,jg as Nt,k as c,ka as co,kb as dr,kc as Re,kd as Pf,ke as Om,kf as Op,kg as Ot,l as d,la as go,lb as gr,lc as Se,ld as Qf,le as Pm,lf as Pp,lg as Pt,m as g,ma as ho,mb as hr,md as Rf,me as Qm,mf as Qp,mg as Qt,n as h,na as io,nb as ir,nd as Sf,ne as Rm,nf as Rp,ng as Rt,o as i,oa as jo,ob as jr,od as Tf,oe as Sm,of as Sp,og as St,p as j,pa as ko,pb as kr,pc as Te,pd as Uf,pe as Tm,pf as Tp,pg as Tt,q as k,qa as lo,qb as lr,qc as Ue,qd as Vf,qe as Um,qf as Up,qg as Ut,r as l,ra as no,rb as nr,rc as Ve,rd as Wf,re as Vm,rf as Vp,rg as Vt,s as n,sa as qo,sb as qr,sc as We,sd as Xf,se as Wm,sf as Wp,sg as Wt,t as q,ta as so,tb as _r,tc as Xe,td as Yf,te as Xm,tf as Xp,tg as Xt,u as s,ua as uo,ub as $r,uc as Ye,ud as Zf,ue as Ym,uf as Yp,ug as Yt,v as u,va as vo,vb as oe,vc as Ze,vd as _f,ve as Zm,vf as Zp,vg as Zt,w as v,wa as wo,wb as re,wc as _e,wd as $f,we as _m,wf as _p,wg as _t,x as w,xa as yo,xb as ee,xc as $e,xd as om,xe as $m,xf as $p,xg as $t,y,ya as zo,yb as fe,yc as of,yd as rm,ye as op,yf as ot,yg as ox,z,za as Ao,zb as me,zc as rf,zd as em,ze as rp,zf as rt,zg as rx}from"./chunks/chunk-3E4OSFP2.js";import{A as Or,B as Pr,C as Qr,D as Rr,E as Sr,F as Tr,G as Ur,H as Vr,I as Wr,J as Xr,K as Yr,L as Zr,g as sr,h as ur,i as vr,j as wr,k as yr,l as zr,m as Ar,n as Br,o as Cr,p as Dr,q as Er,r as Fr,s as Gr,t as Hr,u as Ir,v as Jr,w as Kr,x as Lr,y as Mr,z as Nr}from"./chunks/chunk-UH5WNJXF.js";import"./chunks/chunk-ONUPGMER.js";export{ir as ASK_USER_BACK_SIGNAL,jr as ASK_USER_CUSTOM_INPUT_SIGNAL,Ex as AgentActorController,wx as AgentActorStoreConflictError,ux as AgentBudgetExhaustedError,kx as AgentCancellationUncertainError,Cx as AgentControlError,sx as AgentLimitReachedError,yx as AgentOwnerConflictError,zx as AgentOwnerUnknownError,vx as AgentRevisionConflictError,Ax as AgentSettlementPersistenceError,Bx as AgentShutdownPersistenceError,jx as AgentStartUncertainError,Dx as AgentTurnScheduler,Yo as BUN_BE_BUN_ENV,Oo as CAPABILITY_CACHE_FILENAME,Pp as COMPACTED_HISTORY_RECOVERY_GUIDANCE,Gp as COMPACTION_PROTECTION_RATIO,Op as COMPACTION_SUMMARY_PREFIX,g as CONTEXT_SAFETY_FLOOR_TOKENS,h as CONTEXT_SAFETY_RATIO,Go as CORE_INVARIANTS,K as ConsoleTracingProcessor,i as ContextCapacityError,Dp as DEFAULT_COMPACTION_TRIGGER_PERCENT,Lt as DEFAULT_CONTEXT_WINDOW,me as DEFAULT_IDLE_YIELD_MAX_ITERATIONS,Dt as DEFAULT_MICROCOMPACTION_CONFIG,Vp as DEFAULT_POST_COMPACT_CONFIG,yp as DEFAULT_SUMMARY_PROMPT,X as DEFAULT_SYSTEM_CAP,zp as DEFAULT_UPDATE_SUMMARY_PROMPT,y as DefaultSummaryCompaction,Zo as ELECTRON_NODE_ENV_SCRUB_IMPORT,Xo as ELECTRON_RUN_AS_NODE_ENV,ym as EpisodeReviewBranchChangedError,wm as EpisodeReviewFailure,lx as ExternalAgentRegistrationConflictError,Ht as FileExtensionStore,Df as FileLearningCenterService,L as FileTracingProcessor,bo as GuardrailBlockedError,co as GuardrailEscalateError,Vo as HARDENED_ENV_VARS,Wo as HARDENING_OPT_OUT_ENV,Fr as ImageResizeError,ro as InvariantSession,a as KODAX_API_MIN_INTERVAL,r as KODAX_DEFAULT_TIMEOUT,Wr as KODAX_FILE_MEDIA_TYPES,e as KODAX_HARD_TIMEOUT,Ur as KODAX_IMAGE_MEDIA_TYPES,p as KODAX_MAX_INCOMPLETE_RETRIES,t as KODAX_MAX_MAXTOKENS_RETRIES,f as KODAX_MAX_RETRIES,o as KODAX_MAX_TOKENS,m as KODAX_RETRY_BASE_DELAY,x as KODAX_STAGGER_DELAY,Vr as KODAX_VIDEO_MEDIA_TYPES,Er as KodaXMediaError,kp as LINEAGE_ENTRY_TYPES,Af as LearnedAreaStore,qf as LearningCapabilityError,np as LineageCompaction,lp as LineageExtension,Fp as MAX_COMPACTION_TRIGGER_PERCENT,Lr as MAX_DIMENSION,Ke as MAX_ENTRYPOINT_BYTES,Je as MAX_ENTRYPOINT_LINES,_e as MAX_SKILL_MD_BYTES,$e as MAX_SKILL_SUPPORT_FILE_BYTES,fo as MAX_TOOL_LOOP_ITERATIONS,we as MEMORY_POLICY_VERSION,Ep as MIN_COMPACTION_TRIGGER_PERCENT,$m as McpAuthRequiredError,gp as McpCapabilityProvider,_m as McpExpiredSessionError,hp as McpManager,dp as McpServerRuntime,op as McpTransportCleanupIncompleteError,vm as MemoryControlPlane,sr as MessageQueue,Qr as PASTE_TMP_DIR_ENV,Rr as PASTE_TMP_TTL_MS,Up as POST_COMPACT_MAX_TOKENS_PER_FILE,Tp as POST_COMPACT_TOKEN_BUDGET,b as PROMISE_PATTERN,Np as PROTECTED_TOOL_NAMES,_r as QueuedInputArtifactError,Bo as Runner,vo as RunnerIterationLimitError,dm as SkillExecutor,xm as SkillRegistry,z as SpanImpl,Mr as TARGET_RAW_SIZE_BYTES,I as Tracer,mm as VariableResolver,ox as WORKFLOW_CAPSULE_API_VERSION,_t as WORKFLOW_CAPSULE_FORMAT,$t as WORKFLOW_CAPSULE_VERSION,St as WORKFLOW_PATTERN_IDS,px as WorkflowAbortError,xx as WorkflowBudgetError,Ot as WorkflowEventRecorder,tx as WorkflowLimitError,Wt as WorkflowScriptExecutionError,ax as WorkflowTaskFailedError,Br as YIELD_TOOL_NAMES,F as _emitSpanEnd,E as _emitSpanStart,G as _emitTraceEnd,D as _getRegisteredProcessors,Ar as _resetActiveRootQueueRoutesForTests,V as _resetAdmissionMetrics,oo as _resetAdmittedAgentBindings,R as _resetInvariantRegistry,vr as _resetMessageQueueForTests,zo as _resetPresetDispatchers,ef as acquireKodaXFileLock,wr as actorQueueId,B as addTracingProcessor,Xf as admitAndRecordLearnedSkillInvocation,Of as admitLearnedSkillBinding,Bt as appendGoalEntry,kt as appendMemoryClientNotice,ht as appendMemoryOutcomeDigest,it as appendMemoryReviewReceipt,ft as appendSessionLineageLabel,pt as applyLineageTruncation,M as applyManifestPatch,_o as applyProcessHardening,mt as applySessionCompaction,xf as applySkillLearningProposal,af as approveStoredLearningProposal,gt as archiveOldIslands,lr as asSingleSelection,uf as assertLearnedCapabilityTransition,Vt as assertRestrictedWorkflowQuality,so as attachRunnerRecoveryTranscript,he as bootstrapTeamMode,xo as buildAssistantMessageFromLlmResult,Ap as buildCompactionCacheInstruction,Bp as buildCompactionPromptSnapshot,Yp as buildFileContentMessages,cp as buildInitializeCapabilities,be as buildOtherInstancesPromptBlock,Wp as buildPostCompactAttachments,Gt as buildRecoverySeed,ct as buildSessionTree,Ao as buildSystemPrompt,ao as buildToolResultMessage,mx as buildWorkflowCapsuleIntent,Nt as buildWorkflowOutcome,j as calculateContextSafetyMargin,l as calculateMaxContextInputTokens,Ye as canMarkCreatedByAgent,sf as canTransitionLearnedCapability,zm as captureEpisodeReviewBranchEpoch,Bm as claimEpisodeReview,je as cleanupIncompleteToolCalls,gr as cleanupRegisteredManagedChildren,To as clearCapabilityCache,Qe as clearPluginSkillPaths,go as collectGuardrails,Jp as collectUserQueryLedger,Em as commitEpisodeReviewAction,Dm as commitEpisodeReviewDecision,Nf as commitLearnedSkillRevision,Sp as compact,Om as completeEpisodeReview,Jm as completeFencedEpisodeReview,Rf as completeLearnedSkillOutcome,Yf as completeLearnedSkillSessionOutcomes,fe as composeIdleYieldUserMessage,N as composePatches,lf as computeSkillConsumerImpact,hr as containWindowsEffectProcess,dt as countActiveLineageMessages,oe as countLastAssistantToolCalls,d as countTokens,u as createAgent,Fx as createAgentActorController,nx as createAgentExecutorPlane,gm as createExecutor,It as createExtensionStore,Jr as createFileArtifactFromPath,v as createHandoff,Ir as createImageArtifactFromPath,w as createInMemorySession,eo as createInvariantSessionForAgent,If as createLearnedCapabilityScope,Uf as createLearnedSkillActionDriver,Mf as createLearnedSkillRecord,Ef as createLearningCenterService,qe as createLlmJudgedStopHook,Vm as createMcpCapabilityId,ip as createMcpManager,jp as createMcpTestServerFixture,rp as createMcpTransport,ix as createMemoryAgentExecutorPlaneStore,um as createMemoryControlPlane,qx as createReferenceAgentExecutorFactory,pm as createResolver,Zt as createRestrictedWorkflowModule,_p as createSessionLineage,xe as createStateWriter,A as createTrace,Kr as createVideoArtifactFromPath,ex as createWorkflowCapsule,fx as createWorkflowModuleFromCapsule,Rt as createWorkflowProcessTracker,gx as createWorkflowRunManager,cx as createWorkflowRuntime,Ze as decideSkillGovernance,Um as defaultMcpCacheDir,J as defaultTracer,Im as deferEpisodeReview,lo as detectHandoffSignal,re as detectIdleYield,Y as detectInstructionsInjection,Km as discardFencedEpisodeReview,pp as discoverAuthorizationServerMetadata,ae as discoverInstances,tp as discoverOAuthEndpoints,mp as discoverProtectedResourceMetadata,om as discoverSkills,em as discoverSkillsWithMonorepo,lm as dispatchSkillCreatorTool,Qm as drainPendingEpisodeReviews,ke as editDistance,qo as emitHandoffSpan,q as emitKodaXDiagnostic,Zr as enqueueWithArtifacts,c as estimateTokens,Bf as eventFromCapability,tt as evictOldIslandMessageContent,Do as evidenceTrail,$f as exactInvokedSkillSnapshotForSession,k as exceedsContextCapacity,to as executeRunnerToolCall,hm as executeSkill,im as expandSkillForLLM,up as extractArtifactLedger,Co as extractAssistantTextFromMessage,qp as extractFileOps,fp as extractInsufficientScope,ep as extractResourceMetadataUrl,qt as extractTitleFromMessages,Hm as failEpisodeReviewApply,Gm as failEpisodeReviewAttempt,Eo as finalOwner,le as findFuzzyToolMatch,xt as findPreviousUserEntryId,bt as forkSessionLineage,s as formatKodaXDiagnostic,jm as formatSkillActivationMessage,Cm as freezeEpisodeReviewInput,nt as generateSessionId,lt as generateSessionIdSync,Cp as generateSummary,jt as getActiveMemoryOutcomeReviewIds,de as getActiveTeamModeWriter,qr as getActiveUserInteraction,U as getAdmissionMetricsSnapshot,$ as getAdmittedAgentBindings,Jo as getAgentConfigHome,Ko as getAgentConfigPath,No as getAppDataDir,Ro as getCachedRejectedEfforts,Po as getCapabilityCacheFile,Re as getDefaultSkillPaths,hx as getDefaultWorkflowRunManager,P as getInvariant,Ff as getLearnedExtensionToolName,Zm as getMcpCachePaths,ur as getMessageQueue,Xr as getModelInputCapabilities,rm as getNestedSkillPaths,$p as getSessionLineagePath,Zp as getSessionMessageEntryId,ot as getSessionMessagesFromLineage,Se as getSkillPathsFlat,am as getSkillRegistry,Kt as gracefulCompactDegradation,Fo as handoffLegality,ze as hashCwd,ue as hashMemoryIdentityComponent,Gr as inferImageMediaType,Hr as inferVideoMediaType,bm as initializeSkillRegistry,Xp as injectPostCompactAttachments,Lm as inspectEpisodeReviewJob,Qf as invokeLearnedSkillCanary,ne as invokeLlmJudge,W as isAdmissionDebugEnabled,kr as isAskUserCustomInputAnswer,Ee as isAutoManagedMemoryFile,er as isChildProcessExited,pr as isCurrentProcessWindowsJobContained,Qp as isEmptyLikeSummary,Pt as isFinalWorkflowProcessStatus,Ct as isGoalEntry,$r as isIdleYieldEnabled,Tf as isLearnedCapabilityRecordV2,Gf as isLearnedExtensionCommandAllowed,Me as isMemoryManagementController,Lo as isPathInsideDirectory,mo as isRunnableTool,wo as isRunnerIterationLimitError,po as isRunnerLlmResult,km as isSkillCreatorDispatchAction,Sm as isUnifiedLearningReviewModelInput,br as killChildProcessTree,cr as killChildProcessTreeSync,xr as killPidTree,ar as killPidTreeSync,yf as learningEventIdFor,wf as learningEventKindForLifecycle,Ut as lintRestrictedWorkflowSource,_f as listLearnedSkillUsageReceipts,Nm as listPendingEpisodeReviewSummaries,Mm as listPendingEpisodeReviews,Pe as listPluginSkillPaths,Q as listRegisteredInvariants,Qo as loadCapabilityCache,Ve as loadFullSkill,We as loadSkillFileContent,Ue as loadSkillMetadata,bp as loadValidToken,se as matchesMemoryApplicability,Dr as maybeDrainMidTurn,ve as memoryApplicabilityFingerprint,qm as memoryMutationHandle,nm as memoryProposalRevision,vp as mergeArtifactLedger,sp as mergeFileOps,Kp as mergeUserQueryLedger,Et as microcompact,Cr as midTurnDrainPriority,Vf as migrateLegacyLearnedSkillsForProject,Rp as needsCompaction,Hp as normalizeCompactionConfig,Qt as normalizeHostMetadata,Wm as normalizeMcpCapabilityId,Nr as normalizePastedImage,Ft as normalizeRecoveryPrompt,Tm as normalizeUnifiedLearningReview,bx as normalizeWorkflowLimits,fm as parseArguments,Xm as parseMcpCapabilityId,He as parseMemoryFile,Ge as parseMemoryType,Fe as parseMemoryTypeFromFilename,Ie as parseScalarFields,Te as parseSkillMarkdown,Mp as parseUserQueryLedger,ap as performOAuthLogin,yt as persistCompactedSessionHistory,Sr as persistImageAsBlock,Am as persistPendingEpisodeReview,$o as prepareInternalNodeLaunch,or as prepareJavaScriptChildLaunch,Cf as projectLearningProposals,Tr as prunePasteTmpDir,Sf as quarantineLearnedSkillRevision,Pr as readAndNormalizeClipboardImage,Or as readClipboardImage,zt as readLatestGoalFromBranch,At as readLatestGoalState,ff as readLearningProposalStore,mr as readProcessStartIdentity,uo as readRunnerRecoveryTranscript,wt as readSessionHistoryEntry,jf as readSkillTrustLedger,gf as readSkillUsageLedger,Zf as reconcileLearnedSkillBindingOutcomes,nf as recordCompletedTurnLearning,Wf as recordLearnedSkillOffered,bf as recordProceduralLearning,So as recordRejectedEffort,hf as recordSkillUsage,yr as registerActiveRootQueueRoute,Ho as registerCoreInvariants,O as registerInvariant,dr as registerManagedChildProcess,xp as registerOAuthClient,Ne as registerPluginSkillPath,yo as registerPresetDispatcher,Pf as releaseLearnedSkillBinding,tr as rememberChildProcessTree,Kf as renderDeclarativeSkill,Lp as renderUserQueryLedger,no as replaceSystemMessage,Uo as resetCapabilityCacheMemoForTesting,cm as resetSkillRegistry,zr as resolveActiveRootQueueRoute,Ip as resolveCompactionPolicy,Mt as resolveContextWindow,T as resolveEffectiveInvariants,Mo as resolveExecutionPath,zf as resolveLearnedAreaPaths,pf as resolveLearningProposalStore,Ce as resolveMemoryEntrypoint,Be as resolveMemoryRoot,Hf as resolveProjectLearnedAreaRoot,S as resolveRequiredInvariants,De as resolveScopedMemoryRoot,rt as resolveSessionLineageTarget,tm as resolveSkillContent,of as resolveSkillSnapshotLocation,df as resolveSkillTrustLedger,cf as resolveSkillUsageLedger,at as rewindSessionLineage,Z as runAdmissionAudit,te as runFanOut,ho as runInputGuardrails,io as runOutputGuardrails,Yt as runRestrictedWorkflowScript,ko as runToolAfterGuardrails,jo as runToolBeforeGuardrails,pe as runWithIdleYield,dx as runWorkflow,ye as sanitizeProjectKey,sm as sanitizePromptSafeMemoryClaim,Rm as sanitizeUnifiedLearningReviewInput,Ym as searchMcpCatalog,st as searchSessionHistory,vt as searchSessionHistoryCooperatively,wp as serializeConversation,ce as setActiveTeamModeWriter,nr as setActiveUserInteraction,_ as setAdmittedAgentBindings,Io as setAgentConfigHome,n as setKodaXDiagnosticSink,et as setSessionLineageActiveEntry,C as setTracingProcessors,Jt as shouldCompact,H as shutdownTracing,vf as slugifyLearnedCapabilityName,Lf as stageLearnedSkillRevision,rr as stripHardenedEnvVars,Xe as triageProceduralLearning,Le as truncateEntrypointContent,Ae as tryGitRemote,Oe as unregisterPluginSkillPath,ge as updateActiveTeamMode,tf as updateLearningProposalStatus,kf as updateSkillTrustLedger,mf as upsertLearningProposal,ie as validateAndFixToolHistory,Jf as validateDeclarativeSkillSpec,Yr as validateInputArtifactsForModel,Xt as validateRestrictedWorkflowSource,ut as validateSessionHistorySearchQuery,rx as validateWorkflowCapsule,Tt as validateWorkflowScriptManifest,fr as waitForChildProcessExit,ee as waitForWakeEvent,Fm as withEpisodeReviewClaimAuthority,rf as withKodaXFileLock,Pm as withPendingEpisodeReviewSessionFence};