@kodax-ai/kodax 0.7.76 → 0.7.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +758 -371
- package/LICENSE +158 -158
- package/README.md +1702 -1508
- package/README_CN.md +1019 -869
- package/config-templates/config.example.jsonc +86 -4
- package/config-templates/integrations/a2a.example.jsonc +98 -98
- package/config-templates/integrations/extensions.example.jsonc +7 -7
- package/config-templates/integrations/mcp.example.jsonc +16 -16
- package/dist/builtin/code-review/SKILL.md +22 -22
- package/dist/builtin/skill-creator/scripts/aggregate-benchmark.d.ts +46 -46
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +46 -46
- package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +62 -62
- package/dist/builtin/skill-creator/scripts/generate-review.d.ts +33 -33
- package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +73 -73
- package/dist/builtin/skill-creator/scripts/improve-description.d.ts +23 -23
- package/dist/builtin/skill-creator/scripts/init-skill.d.ts +14 -14
- package/dist/builtin/skill-creator/scripts/install-skill.d.ts +29 -29
- package/dist/builtin/skill-creator/scripts/package-skill.d.ts +38 -38
- package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +8 -8
- package/dist/builtin/skill-creator/scripts/run-eval.d.ts +66 -66
- package/dist/builtin/skill-creator/scripts/run-loop.d.ts +49 -49
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.d.ts +58 -58
- package/dist/chunks/agent-ASP4MS3X.js +2 -0
- package/dist/chunks/argument-completer-JYQ7FX3W.js +2 -0
- package/dist/chunks/chunk-2CFHBKRE.js +5 -0
- package/dist/chunks/chunk-35PPHOQ2.js +292 -0
- package/dist/chunks/chunk-43QNNDHR.js +29 -0
- package/dist/chunks/chunk-5BNQXXGY.js +1 -0
- package/dist/chunks/chunk-5GO6FH7L.js +458 -0
- package/dist/chunks/chunk-5NDCSFOP.js +78 -0
- package/dist/chunks/chunk-6FOJVETH.js +22 -0
- package/dist/chunks/chunk-6XM4B6K2.js +48 -0
- package/dist/chunks/chunk-6YZUE6NC.js +240 -0
- package/dist/chunks/{chunk-RDXRM3UI.js → chunk-7OEBJGHK.js} +1 -1
- package/dist/chunks/chunk-KQLQYHWU.js +386 -0
- package/dist/chunks/chunk-NXO6GWSY.js +46 -0
- package/dist/chunks/chunk-T2XZTLYE.js +316 -0
- package/dist/chunks/chunk-TQDBTTIM.js +348 -0
- package/dist/chunks/{chunk-SMT2JSM3.js → chunk-UID7BLAB.js} +9 -9
- package/dist/chunks/chunk-VAT2QYXM.js +765 -0
- package/dist/chunks/chunk-YAZQTC2L.js +5 -0
- package/dist/chunks/chunk-YVRYHC4C.js +655 -0
- package/dist/chunks/{chunk-PXKSE54E.js → chunk-Z3KFRTSB.js} +1 -1
- package/dist/chunks/compaction-config-BQSSIWK5.js +2 -0
- package/dist/chunks/{construction-bootstrap-5F5KF2BZ.js → construction-bootstrap-VQLQGWPY.js} +1 -1
- package/dist/chunks/dist-BFT5YIGU.js +2 -0
- package/dist/chunks/dist-PCFE24YP.js +2 -0
- package/dist/chunks/host-UTFXCYYM.js +2 -0
- package/dist/chunks/run-manager-PJU3WIFJ.js +2 -0
- package/dist/chunks/utils-SID4HW2Q.js +2 -0
- package/dist/index.d.ts +21 -19
- package/dist/index.js +6 -6
- package/dist/kodax_bootstrap.js +25 -25
- package/dist/kodax_cli.js +1787 -1341
- package/dist/kodax_resume.js +17 -17
- package/dist/provider-capabilities.json +392 -362
- package/dist/runtime-worker.js +1707 -1279
- package/dist/sandbox-workspace-session.js +563 -0
- package/dist/sdk-a2a.d.ts +18 -17
- package/dist/sdk-a2a.js +8 -8
- package/dist/sdk-agent.d.ts +320 -70
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +135 -168
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +14 -597
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +219 -6
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +70 -27
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +212 -149
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +93 -0
- package/dist/sdk-sandbox.js +2 -0
- package/dist/sdk-session.d.ts +8 -8
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +2 -2
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +15 -15
- package/dist/types-chunks/{base.d-ChvpaKjZ.d.ts → base.d-4e74xDdy.d.ts} +13 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-r1beOESM.d.ts → bash-prefix-extractor.d-uAe2Oqda.d.ts} +319 -9
- package/dist/types-chunks/{capability-learning.d-DPrYxRjF.d.ts → capability-learning.d-CVsdHw4j.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-zeqV4IQX.d.ts → capsule.d-BlSv9l3V.d.ts} +2 -2
- package/dist/types-chunks/{guardrail.d-CWYD1bdL.d.ts → guardrail.d-BRE_ErEj.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-qjuKJZ31.d.ts → guardrail.d-CXDYRgZ3.d.ts} +201 -35
- package/dist/types-chunks/{history-retrieval.d-BKTJIrVd.d.ts → history-retrieval.d-DtCy7x64.d.ts} +2 -2
- package/dist/types-chunks/{integration-config.d-ojG4swOP.d.ts → integration-config.d-BNowXE8k.d.ts} +23 -8
- package/dist/types-chunks/{public-api.d-CX4B11qY.d.ts → public-api.d-B3AohsxN.d.ts} +37 -8
- package/dist/types-chunks/{commands.d-DUxnK2TU.d.ts → repl.d-Ie_ZXb_U.d.ts} +89 -78
- package/dist/types-chunks/{side-query.d-DWTMsndP.d.ts → resolver.d-iAQ9ocLB.d.ts} +23 -74
- package/dist/types-chunks/{run-manager.d-B9fEIjZk.d.ts → run-manager.d-D1twIhF9.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-B0fhAOPa.d.ts → sdk-session-DB9KksIx.d.ts} +3 -3
- package/dist/types-chunks/side-query.d-DTuLPcC5.d.ts +77 -0
- package/dist/types-chunks/types-D3g6XUQr.d.ts +662 -0
- package/dist/types-chunks/{types.d-sRLugmjy.d.ts → types.d-BA-Jwpfs.d.ts} +506 -11
- package/dist/types-chunks/{types.d-DEctY20M.d.ts → types.d-BH0ZkTGf.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DCQVBqVn.d.ts → types.d-BbtGlKZu.d.ts} +25 -3
- package/dist/types-chunks/{types.d-CSmF0t0n.d.ts → types.d-DIpZJKUl.d.ts} +15 -0
- package/dist/types-chunks/{types.d-Bm_y6YuM.d.ts → types.d-DVDTIfB_.d.ts} +4 -4
- package/dist/types-chunks/{utils.d-D0wPxz8y.d.ts → utils.d-CVp6bFl9.d.ts} +23 -7
- package/docs/SDK_EMBEDDER_GUIDE.md +592 -119
- package/package.json +9 -1
- package/scripts/kodax-bin.cjs +28 -28
- package/scripts/production-env.cjs +25 -25
- package/dist/chunks/agent-7X5CFET2.js +0 -2
- package/dist/chunks/argument-completer-3NHIKB4N.js +0 -2
- package/dist/chunks/chunk-4PWPNCNK.js +0 -158
- package/dist/chunks/chunk-7FJNLJLF.js +0 -369
- package/dist/chunks/chunk-COQYLD4U.js +0 -5
- package/dist/chunks/chunk-D3T24FJW.js +0 -78
- package/dist/chunks/chunk-EI4JBQKL.js +0 -46
- package/dist/chunks/chunk-HGT6WQ24.js +0 -321
- package/dist/chunks/chunk-HS3XHF3R.js +0 -622
- package/dist/chunks/chunk-IDCGNQ4H.js +0 -5
- package/dist/chunks/chunk-KAY2XLCP.js +0 -74
- package/dist/chunks/chunk-OD6LVXU6.js +0 -329
- package/dist/chunks/chunk-OSF3H4RR.js +0 -22
- package/dist/chunks/chunk-TGMBHGZO.js +0 -427
- package/dist/chunks/chunk-VWSLC2WO.js +0 -770
- package/dist/chunks/chunk-Y3AMP22L.js +0 -37
- package/dist/chunks/compaction-config-7J2XE35D.js +0 -2
- package/dist/chunks/dist-2RA7LSH3.js +0 -2
- package/dist/chunks/dist-URKXBOC6.js +0 -2
- package/dist/chunks/host-RKZ2OGFT.js +0 -2
- package/dist/chunks/run-manager-7RM4HEH6.js +0 -2
- package/dist/chunks/utils-X3TEH6IO.js +0 -2
- package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +0 -91
package/dist/sdk-agent.d.ts
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ASK_USER_BACK_SIGNAL, a as ASK_USER_CUSTOM_INPUT_SIGNAL, b as AdmissionAuditOptions, c as AdmissionCtx, d as AdmissionVerdict, e as AdmittedHandle, g as AgentActor, i as AgentActorSnapshot, j as AgentActorState, l as AgentArtifactDescriptor, m as AgentArtifactPolicy, n as AgentArtifactPolicyDecision, o as AgentArtifactPolicyInput, p as AgentArtifactReference, q as AgentBudgetAdmission, r as AgentBudgetAdmissionInput, v as AgentCapabilityDeclaration, w as AgentCapabilityRequirements, x as AgentContinuationInput, y as AgentCredentialBroker, C as AgentDispatchContext, D as AgentDispatchPolicy, E as AgentDispatchPolicyDecision, F as AgentDispatchPolicyInput, G as AgentDispatchabilitySnapshot, H as AgentDispatchabilityStatus, I as AgentEffectDeclaration, K as AgentEventKind, L as AgentExecutionInput, O as AgentExecutor, P as AgentExecutorEvent, R as AgentExecutorFactoryContext, T as AgentExecutorPlaneBackgroundErrorContext, U as AgentExecutorPlaneBackgroundErrorHandler, V as AgentExecutorPlaneBinding, X as AgentExecutorPreflightResult, Y as AgentExecutorProtocol, Z as AgentExecutorTaskReference, _ as AgentExecutorTaskSnapshot, a0 as AgentForkTurns, a2 as AgentJsonObject, a3 as AgentJsonValue, a5 as AgentListEntry, aa as AgentMiddlewareDeclaration, ad as AgentPreflightInput, ae as AgentPreflightResult, af as AgentProgressItem, ag as AgentProgressKind, ah as AgentProgressUpdate, ai as AgentReasoningProfile, aj as AgentRegistrationEnabledMutationOptions, ak as AgentRegistrationMutationOptions, al as AgentRegistrationService, am as AgentSpanData, ao as AgentTaskCancellation, ap as AgentTaskCorrelation, aq as AgentTaskEvent, ar as AgentTaskFilter, as as AgentTaskProgress, at as AgentTaskRegistrationSnapshot, au as AgentTaskService, av as AgentTaskSnapshot, aw as AgentTaskStartInput, ax as AgentTaskState, ay as AgentTaskUsage, az as AgentTool, aB as AgentTurn, aE as AgentTurnState, aF as AgentTurnSummary, aG as AskUserAnswer, aH as AskUserCustomInputAnswer, aI as AskUserMultiOptions, aJ as AskUserQuestionItem, aK as AskUserQuestionOptions, aL as AskUserSelectionAnswer, aM as CapabilitySupport, aN as CompactionAnchor, aQ as CompactionReport, aS as CompactionSpanData, aV as CurrentTodoSummary, aW as DEFAULT_SYSTEM_CAP, aX as Deliverable, aZ as DiscoveryOptions, a_ as DispatchableAgentDescriptor, a$ as DispatchableAgentListing, b0 as DispatchableAgentOrigin, b1 as DispatchableAgentQuery, b2 as EvidenceSpanData, b3 as ExternalAgentEffectDeclaration, b4 as ExternalAgentHealth, b6 as ExternalAgentRegistration, b7 as ExternalAgentRegistrationSummary, b8 as FanoutSpanData, b9 as FileOperations, ba as GenerationSpanData, bb as Guardrail, bc as GuardrailSpanData, be as HandoffSpanData, bf as InMemorySessionOptions, bi as InvariantResult, bj as InvariantSession, bk as KodaXCompactMemoryProgress, bl as KodaXCompactMemorySeed, bm as KodaXExtensionSessionRecord, bn as KodaXExtensionSessionState, bt as KodaXGoalStatus, bz as KodaXMemoryInfluenceRef, bB as KodaXMemoryOutcomeEvidence, bC as KodaXSessionArchiveMarkerEntry, bE as KodaXSessionBranchSummaryEntry, bF as KodaXSessionClientNoticeEntry, bG as KodaXSessionCompactionEntry, bJ as KodaXSessionEntryBase, bL as KodaXSessionLabelEntry, bN as KodaXSessionMemoryOutcomeDigestEntry, bO as KodaXSessionMemoryReviewReceiptEntry, bP as KodaXSessionMessageEntry, bQ as KodaXSessionMeta, bR as KodaXSessionNavigationOptions, bS as KodaXSessionRewindMarkerEntry, bT as KodaXSessionRuntimeInfo, bU as KodaXSessionScope, bW as KodaXSessionTreeNode, bX as KodaXSessionUiHistoryItem, bY as KodaXSessionUiHistoryItemType, bZ as KodaXSessionUiTextHistoryItem, b_ as KodaXSessionUiTextHistoryItemType, b$ as KodaXSessionUiToolCall, c0 as KodaXSessionUiToolCallStatus, c1 as KodaXSessionUiToolGroupHistoryItem, c2 as KodaXSessionWorkspaceKind, c5 as LocalAgentTaskInput, c6 as LocalAgentTaskUpdate, c7 as MAX_TOOL_LOOP_ITERATIONS, cb as MemoryApplyPreview, cd as MemoryApproval, ce as MemoryAuthority, ci as MemoryClaimKind, cm as MemoryDecisionTraceReceipt, cp as MemoryGovernanceFinding, cq as MemoryGovernanceFindingKind, ct as MemoryLifecycle, cw as MemoryPackHint, cy as MemoryPackTraceMetadata, cz as MemoryProposalAction, cB as MemoryRefKind, cD as MemoryReviewCandidateRef, cE as MemoryReviewDraftAction, cG as MemoryReviewModelInput, cH as MemoryReviewPersistenceDecision, cI as MemoryReviewPersistenceKind, cL as MemoryReviewTrigger, cM as MemoryScope, cN as MemorySourceAdapter, cO as MemoryVisibility, cP as MessageEntry, cQ as ObserveCtx, cR as PersistedSessionState, cS as PresetDispatcher, cT as PresetTracingContext, cV as ReadonlyMutationTracker, cW as ReadonlyRecorder, cX as ReasoningDepth, cY as RecentlyModifiedFile, cZ as RunEvent, c_ as RunOptions, c$ as RunResult, d0 as RunnableTool, d1 as Runner, d2 as RunnerEvent, d3 as RunnerLlmResult, d4 as RunnerLlmReturn, d5 as RunnerRecoveryTranscriptCarrier, d7 as RunnerToolContext, d8 as RunnerToolObserver, da as RunnerToolResultBatch, db as RunnerToolResultBatchTransform, dc as Session, dd as SessionDispatchResult, de as SessionEntry, df as SessionErrorMetadata, dg as SessionExtension, dh as SessionForkOptions, dl as SpanData, dm as SpanError, dn as SpanImpl, dp as SpanImplOptions, dq as StartTraceOptions, dt as StateWriterOptions, dx as StopHookSpanData, dy as SystemCap, dz as TerminalCtx, dA as ToolCallSpanData, dB as ToolCapability, dC as ToolPermission, dE as TraceOptions, dF as Tracer, dG as TracerOptions, dH as UserInteraction, dK as WorkflowApproval, dL as WorkflowApprovalSummary, dM as WorkflowArtifactRef, dN as WorkflowBudget, dP as WorkflowEventCorrelation, dQ as WorkflowEventRecorder, dR as WorkflowEventType, dS as WorkflowIsolation, dV as WorkflowMeta, dW as WorkflowModelHint, dZ as WorkflowOutcomeError, d_ as WorkflowOutcomeResult, d$ as WorkflowOutcomeStatus, e0 as WorkflowOutcomeUsage, e1 as WorkflowParallelOptions, e2 as WorkflowProcessArtifact, e3 as WorkflowProcessCounts, e4 as WorkflowProcessEvent, e5 as WorkflowProcessItem, e6 as WorkflowProcessItemKind, e7 as WorkflowProcessItemOrigin, e8 as WorkflowProcessItemStatus, e9 as WorkflowProcessProgress, ea as WorkflowProcessSnapshot, eb as WorkflowProcessSource, ec as WorkflowProcessStatus, ed as WorkflowProcessSummaryStatus, ee as WorkflowProcessTokenUsage, ef as WorkflowProcessTracker, eg as WorkflowProcessTrackerOptions, eh as WorkflowRun, ej as WorkflowRunStatus, ek as WorkflowSpawnAgentInput, el as WorkflowSynthesis, em as WorkflowSynthesizeInput, en as WorkflowTaskHandle, ep as WorkflowTaskSnapshot, eq as WorkflowTaskStatus, er as WorkflowTaskSummaryEventUpdate, es as WorkflowTaskSummaryKind, et as WorkflowTaskSummaryUpdate, eu as WorkflowTaskUsage, ev as WorkflowTaskVerification, ew as WorkflowTaskVerificationResult, ex as WorkflowWaitOptions, ey as _resetAdmittedAgentBindings, ez as _resetPresetDispatchers, eA as asSingleSelection, eB as attachRunnerRecoveryTranscript, eC as buildAssistantMessageFromLlmResult, eD as buildSystemPrompt, eE as buildToolResultMessage, eF as createAgent, eG as createHandoff, eH as createInMemorySession, eI as createInvariantSessionForAgent, eJ as createStateWriter, eK as createTrace, eL as createWorkflowProcessTracker, eM as defaultTracer, eN as detectInstructionsInjection, eO as discoverInstances, eP as executeRunnerToolCall, eQ as extractAssistantTextFromMessage, eR as getActiveUserInteraction, eS as getAdmittedAgentBindings, eT as hashMemoryIdentityComponent, eU as isAskUserCustomInputAnswer, eV as isFinalWorkflowProcessStatus, eW as isRunnableTool, eX as isRunnerLlmResult, eY as matchesMemoryApplicability, eZ as memoryApplicabilityFingerprint, e_ as normalizeHostMetadata, e$ as readRunnerRecoveryTranscript, f0 as registerPresetDispatcher, f1 as runAdmissionAudit, f2 as setActiveUserInteraction, f3 as setAdmittedAgentBindings } from './types-chunks/types.d-sRLugmjy.js';
|
|
3
|
-
import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-
|
|
4
|
-
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetActiveRootQueueRoutesForTests, N as actorQueueId, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as evictOldIslandMessageContent, a4 as extractArtifactLedger, a5 as extractFileOps, a6 as extractTitleFromMessages, a7 as findPreviousUserEntryId, a8 as forkSessionLineage, a9 as generateSessionId, aa as getAgentConfigHome, ab as getAgentConfigPath, ac as getAppDataDir, ad as getSessionLineagePath, ae as getSessionMessagesFromLineage, af as isPathInsideDirectory, ag as lintRestrictedWorkflowSource, ah as mergeArtifactLedger, ai as mergeFileOps, aj as registerActiveRootQueueRoute, ak as resolveActiveRootQueueRoute, al as resolveExecutionPath, am as resolveSessionLineageTarget, an as rewindSessionLineage, ao as setAgentConfigHome, ap as setSessionLineageActiveEntry, aq as validateAndFixToolHistory, ar as validateWorkflowCapsule, as as validateWorkflowScriptManifest } from './types-chunks/capsule.d-
|
|
5
|
-
export { G as GuardrailBlockedError, a as GuardrailContext, b as GuardrailEscalateError, c as GuardrailVerdict, I as InputGuardrail, O as OutputGuardrail, T as ToolBeforeOutcome, d as ToolGuardrail, e as collectGuardrails, r as runInputGuardrails, f as runOutputGuardrails, g as runToolAfterGuardrails, h as runToolBeforeGuardrails } from './types-chunks/guardrail.d-
|
|
6
|
-
import { i as KodaXImageBlock, k as KodaXMessage, a1 as KodaXToolDefinition, a6 as KodaXToolUseBlock, H as KodaXReasoningRequest } from './types-chunks/types.d-
|
|
7
|
-
export { K as KodaXAssuranceIntent, c as KodaXContentBlock, f as KodaXExecutionMode, g as KodaXExecutionPattern, m as KodaXMutationSurface, q as KodaXProviderConfig, y as KodaXProviderStreamOptions, B as KodaXReasoningCapability, F as KodaXReasoningMode, I as KodaXRedactedThinkingBlock, L as KodaXRiskLevel, N as KodaXStreamResult, O as KodaXTaskActionability, P as KodaXTaskBudgetOverrides, Q as KodaXTaskComplexity, R as KodaXTaskFamily, S as KodaXTaskResultMetadata, T as KodaXTaskResultSource, U as KodaXTaskRoutingDecision, V as KodaXTaskType, W as KodaXTaskWorkIntent, X as KodaXTextBlock, Y as KodaXThinkingBlock, Z as KodaXThinkingBudgetMap, _ as KodaXThinkingDepth,
|
|
8
|
-
import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-
|
|
9
|
-
export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-
|
|
1
|
+
import { e5 as Span, eo as Trace, f as Agent, bk as Handoff, dT as RunnerToolCall, dW as RunnerToolResult, ab as AgentMessage, aa as AgentManifest, cT as ManifestPatch, bo as InvariantId, dF as QualityInvariant, bE as KodaXInputArtifactSource, bC as KodaXImageMediaType, cc as KodaXVideoMediaType, bx as KodaXFileInputArtifact, bB as KodaXImageInputArtifact, cb as KodaXVideoInputArtifact, bD as KodaXInputArtifact, b2 as DiscoveredInstance, e3 as SessionMeta, e4 as SessionStateSnapshot, ed as StateWriterFs, bn as InstanceDiscoveryFs, ec as StateWriter, ef as StopHookContext, eh as StopHookResult, eg as StopHookFn, d2 as MemoryContextIdentity, db as MemoryItemRef, bU as KodaXSessionLineage, bL as KodaXSessionArtifactLedgerEntry, d7 as MemoryEvent, du as MemoryReviewRunner, d3 as MemoryController, cU as MemoryActionProposal, cX as MemoryApplyResult, dl as MemoryRejectResult, dj as MemoryRefFilter, d0 as MemoryBodySnapshot, dd as MemoryLifecycleOperationResult, d4 as MemoryCuratorInput, da as MemoryGovernanceReport, c_ as MemoryAutoCuratorInput, c$ as MemoryAutoCuratorResult, dg as MemoryPackInput, de as MemoryPack, dp as MemoryReviewInput, dt as MemoryReviewPlan, bI as KodaXMemoryOutcomeDigest, dq as MemoryReviewModelInput, d6 as MemoryEpisodeReviewResult, cV as MemoryApplicability, cA as LearningActionDriver, cK as LearningQuery, cJ as LearningPage, cm as LearnedCapabilityRecord, cP as LearningSurfaceSnapshot, cF as LearningEvent, cO as LearningSubscribeOptions, cH as LearningExplicitUserAuthority, ce as LearnedAreaStore, cp as LearnedCapabilityScope, c1 as KodaXSessionStorage, aX as CompactionUpdate, bP as KodaXSessionData, bz as KodaXGoalState, by as KodaXGoalEventType, bQ as KodaXSessionEntry, bS as KodaXSessionGoalEntry, aS as CompactionConfig, aT as CompactionDetails, aV as CompactionResult, bv as KodaXExtensionStore, bw as KodaXExtensionStoreEntry, bF as KodaXJsonValue, f6 as WorkflowRunState, eM as WorkflowOutcome, ex as WorkflowApi, eL as WorkflowModule, ew as WorkflowAgentBackend, eH as WorkflowLimits, eC as WorkflowEvent, eI as WorkflowLogEvent, fc as WorkflowTaskResult, Z as AgentExecutorPlaneStore, aY as CreateAgentExecutorPlaneOptions, V as AgentExecutorPlane, bc as ExternalAgentProtocol, T as AgentExecutorFactory, x as AgentCapabilities, aF as AgentTurnExecutor, P as AgentExecutionKind, w as AgentBudgetPort, n as AgentActorStore, i as AgentActorOwner, M as AgentEvent, a9 as AgentMailboxMessage, h as AgentActorClient, Q as AgentExecutionResult, aq as AgentSpawnInput, ae as AgentMutationOptions, aG as AgentTurnRef, D as AgentDataClassification, ac as AgentMetadataValue, a2 as AgentFollowupResult, a4 as AgentInterruptScope, aD as AgentTreeSnapshot, E as AgentDetail, af as AgentOutput, v as AgentBudgetExhausted, a7 as AgentLimitReached } from './types-chunks/types.d-BA-Jwpfs.js';
|
|
2
|
+
export { A as ASK_USER_BACK_SIGNAL, a as ASK_USER_CUSTOM_INPUT_SIGNAL, b as AdmissionAuditOptions, c as AdmissionCtx, d as AdmissionVerdict, e as AdmittedHandle, g as AgentActor, j as AgentActorSnapshot, k as AgentActorSnapshotV1, l as AgentActorSnapshotV2, m as AgentActorState, o as AgentArtifactDescriptor, p as AgentArtifactPolicy, q as AgentArtifactPolicyDecision, r as AgentArtifactPolicyInput, s as AgentArtifactReference, t as AgentBudgetAdmission, u as AgentBudgetAdmissionInput, y as AgentCapabilityDeclaration, z as AgentCapabilityRequirements, B as AgentContinuationInput, C as AgentCredentialBroker, F as AgentDispatchContext, G as AgentDispatchPolicy, H as AgentDispatchPolicyDecision, I as AgentDispatchPolicyInput, J as AgentDispatchabilitySnapshot, K as AgentDispatchabilityStatus, L as AgentEffectDeclaration, N as AgentEventKind, O as AgentExecutionInput, R as AgentExecutor, S as AgentExecutorEvent, U as AgentExecutorFactoryContext, W as AgentExecutorPlaneBackgroundErrorContext, X as AgentExecutorPlaneBackgroundErrorHandler, Y as AgentExecutorPlaneBinding, _ as AgentExecutorPreflightResult, $ as AgentExecutorProtocol, a0 as AgentExecutorTaskReference, a1 as AgentExecutorTaskSnapshot, a3 as AgentForkTurns, a5 as AgentJsonObject, a6 as AgentJsonValue, a8 as AgentListEntry, ad as AgentMiddlewareDeclaration, ag as AgentPreflightInput, ah as AgentPreflightResult, ai as AgentProgressItem, aj as AgentProgressKind, ak as AgentProgressUpdate, al as AgentReasoningProfile, am as AgentRegistrationEnabledMutationOptions, an as AgentRegistrationMutationOptions, ao as AgentRegistrationService, ap as AgentSpanData, ar as AgentTaskCancellation, as as AgentTaskCorrelation, at as AgentTaskEvent, au as AgentTaskFilter, av as AgentTaskProgress, aw as AgentTaskRegistrationSnapshot, ax as AgentTaskService, ay as AgentTaskSnapshot, az as AgentTaskStartInput, aA as AgentTaskState, aB as AgentTaskUsage, aC as AgentTool, aE as AgentTurn, aH as AgentTurnState, aI as AgentTurnSummary, aJ as AskUserAnswer, aK as AskUserCustomInputAnswer, aL as AskUserMultiOptions, aM as AskUserQuestionItem, aN as AskUserQuestionOptions, aO as AskUserSelectionAnswer, aP as CapabilitySupport, aQ as CommitLearnedSkillRevisionInput, aR as CompactionAnchor, aU as CompactionReport, aW as CompactionSpanData, aZ as CreateLearnedSkillRecordInput, a_ as CurrentTodoSummary, a$ as DEFAULT_SYSTEM_CAP, b0 as DeclarativeSkillSpec, b1 as Deliverable, b3 as DiscoveryOptions, b4 as DispatchableAgentDescriptor, b5 as DispatchableAgentListing, b6 as DispatchableAgentOrigin, b7 as DispatchableAgentQuery, b8 as EvidenceSpanData, b9 as ExactInvokedSkillSnapshot, ba as ExternalAgentEffectDeclaration, bb as ExternalAgentHealth, bd as ExternalAgentRegistration, be as ExternalAgentRegistrationSummary, bf as FanoutSpanData, bg as FileOperations, bh as GenerationSpanData, bi as Guardrail, bj as GuardrailSpanData, bl as HandoffSpanData, bm as InMemorySessionOptions, bp as InvariantResult, bq as InvariantSession, br as KodaXCompactMemoryProgress, bs as KodaXCompactMemorySeed, bt as KodaXExtensionSessionRecord, bu as KodaXExtensionSessionState, bA as KodaXGoalStatus, bG as KodaXMemoryInfluenceRef, bH as KodaXMemoryIntent, bJ as KodaXMemoryOutcomeEvidence, bK as KodaXSessionArchiveMarkerEntry, bM as KodaXSessionBranchSummaryEntry, bN as KodaXSessionClientNoticeEntry, bO as KodaXSessionCompactionEntry, bR as KodaXSessionEntryBase, bT as KodaXSessionLabelEntry, bV as KodaXSessionMemoryOutcomeDigestEntry, bW as KodaXSessionMemoryReviewReceiptEntry, bX as KodaXSessionMessageEntry, bY as KodaXSessionMeta, bZ as KodaXSessionNavigationOptions, b_ as KodaXSessionRewindMarkerEntry, b$ as KodaXSessionRuntimeInfo, c0 as KodaXSessionScope, c2 as KodaXSessionTreeNode, c3 as KodaXSessionUiHistoryItem, c4 as KodaXSessionUiHistoryItemType, c5 as KodaXSessionUiTextHistoryItem, c6 as KodaXSessionUiTextHistoryItemType, c7 as KodaXSessionUiToolCall, c8 as KodaXSessionUiToolCallStatus, c9 as KodaXSessionUiToolGroupHistoryItem, ca as KodaXSessionWorkspaceKind, cd as LearnedAreaPaths, cf as LearnedCapabilityArtifact, cg as LearnedCapabilityCanary, ch as LearnedCapabilityCanaryBinding, ci as LearnedCapabilityCanaryInvocation, cj as LearnedCapabilityCarrier, ck as LearnedCapabilityLifecycle, cl as LearnedCapabilityProvenance, cn as LearnedCapabilityRecordV1, co as LearnedCapabilityRecordV2, cq as LearnedCapabilitySource, cr as LearnedSkillBindingAdmission, cs as LearnedSkillCanaryOutcome, ct as LearnedSkillDecisionDisposition, cu as LearnedSkillInvocationAdmission, cv as LearnedSkillInvokedReceipt, cw as LearnedSkillOfferedReceipt, cx as LearnedSkillOutcomeReceipt, cy as LearnedSkillUsageReceipt, cz as LearningAction, cB as LearningCapabilityError, cC as LearningCapabilityErrorCode, cD as LearningClientEventState, cE as LearningClientRecord, cG as LearningEventKind, cI as LearningNotificationState, cL as LearningReviewEvidencePacket, cM as LearningReviewQualification, cN as LearningReviewVerifierFact, cQ as LocalAgentTaskInput, cR as LocalAgentTaskUpdate, cS as MAX_TOOL_LOOP_ITERATIONS, cW as MemoryApplyPreview, cY as MemoryApproval, cZ as MemoryAuthority, d1 as MemoryClaimKind, d5 as MemoryDecisionTraceReceipt, d8 as MemoryGovernanceFinding, d9 as MemoryGovernanceFindingKind, dc as MemoryLifecycle, df as MemoryPackHint, dh as MemoryPackTraceMetadata, di as MemoryProposalAction, dk as MemoryRefKind, dm as MemoryReviewCandidateRef, dn as MemoryReviewDraftAction, dr as MemoryReviewPersistenceDecision, ds as MemoryReviewPersistenceKind, dv as MemoryReviewTrigger, dw as MemoryScope, dx as MemorySourceAdapter, dy as MemoryVisibility, dz as MessageEntry, dA as NormalizedLearnedSkillDecision, dB as ObserveCtx, dC as PersistedSessionState, dD as PresetDispatcher, dE as PresetTracingContext, dG as ReadonlyMutationTracker, dH as ReadonlyRecorder, dI as ReasoningDepth, dJ as RecentlyModifiedFile, dK as RunEvent, dL as RunOptions, dM as RunResult, dN as RunnableTool, dO as Runner, dP as RunnerEvent, dQ as RunnerLlmResult, dR as RunnerLlmReturn, dS as RunnerRecoveryTranscriptCarrier, dU as RunnerToolContext, dV as RunnerToolObserver, dX as RunnerToolResultBatch, dY as RunnerToolResultBatchTransform, dZ as Session, d_ as SessionDispatchResult, d$ as SessionEntry, e0 as SessionErrorMetadata, e1 as SessionExtension, e2 as SessionForkOptions, e6 as SpanData, e7 as SpanError, e8 as SpanImpl, e9 as SpanImplOptions, ea as StagedLearnedSkillArtifact, eb as StartTraceOptions, ee as StateWriterOptions, ei as StopHookSpanData, ej as SystemCap, ek as TerminalCtx, el as ToolCallSpanData, em as ToolCapability, en as ToolPermission, ep as TraceOptions, eq as Tracer, er as TracerOptions, es as UnifiedLearningReviewModelInput, et as UnifiedLearningReviewResult, eu as UnifiedLearningReviewRunner, ev as UserInteraction, ey as WorkflowApproval, ez as WorkflowApprovalSummary, eA as WorkflowArtifactRef, eB as WorkflowBudget, eD as WorkflowEventCorrelation, eE as WorkflowEventRecorder, eF as WorkflowEventType, eG as WorkflowIsolation, eJ as WorkflowMeta, eK as WorkflowModelHint, eN as WorkflowOutcomeError, eO as WorkflowOutcomeResult, eP as WorkflowOutcomeStatus, eQ as WorkflowOutcomeUsage, eR as WorkflowParallelOptions, eS as WorkflowProcessArtifact, eT as WorkflowProcessCounts, eU as WorkflowProcessEvent, eV as WorkflowProcessItem, eW as WorkflowProcessItemKind, eX as WorkflowProcessItemOrigin, eY as WorkflowProcessItemStatus, eZ as WorkflowProcessProgress, e_ as WorkflowProcessSnapshot, e$ as WorkflowProcessSource, f0 as WorkflowProcessStatus, f1 as WorkflowProcessSummaryStatus, f2 as WorkflowProcessTokenUsage, f3 as WorkflowProcessTracker, f4 as WorkflowProcessTrackerOptions, f5 as WorkflowRun, f7 as WorkflowRunStatus, f8 as WorkflowSpawnAgentInput, f9 as WorkflowSynthesis, fa as WorkflowSynthesizeInput, fb as WorkflowTaskHandle, fd as WorkflowTaskSnapshot, fe as WorkflowTaskStatus, ff as WorkflowTaskSummaryEventUpdate, fg as WorkflowTaskSummaryKind, fh as WorkflowTaskSummaryUpdate, fi as WorkflowTaskUsage, fj as WorkflowTaskVerification, fk as WorkflowTaskVerificationResult, fl as WorkflowWaitOptions, fm as _resetAdmittedAgentBindings, fn as _resetPresetDispatchers, fo as admitAndRecordLearnedSkillInvocation, fp as admitLearnedSkillBinding, fq as asSingleSelection, fr as assertLearnedCapabilityTransition, fs as attachRunnerRecoveryTranscript, ft as buildAssistantMessageFromLlmResult, fu as buildSystemPrompt, fv as buildToolResultMessage, fw as canTransitionLearnedCapability, fx as commitLearnedSkillRevision, fy as completeLearnedSkillOutcome, fz as completeLearnedSkillSessionOutcomes, fA as createAgent, fB as createHandoff, fC as createInMemorySession, fD as createInvariantSessionForAgent, fE as createLearnedCapabilityScope, fF as createLearnedSkillRecord, fG as createStateWriter, fH as createTrace, fI as createWorkflowProcessTracker, fJ as defaultTracer, fK as detectInstructionsInjection, fL as discoverInstances, fM as eventFromCapability, fN as exactInvokedSkillSnapshotForSession, fO as executeRunnerToolCall, fP as extractAssistantTextFromMessage, fQ as getActiveUserInteraction, fR as getAdmittedAgentBindings, fS as hashMemoryIdentityComponent, fT as invokeLearnedSkillCanary, fU as isAskUserCustomInputAnswer, fV as isFinalWorkflowProcessStatus, fW as isLearnedCapabilityRecordV2, fX as isRunnableTool, fY as isRunnerLlmResult, fZ as isUnifiedLearningReviewModelInput, f_ as learningEventIdFor, f$ as learningEventKindForLifecycle, g0 as listLearnedSkillUsageReceipts, g1 as matchesMemoryApplicability, g2 as memoryApplicabilityFingerprint, g3 as normalizeHostMetadata, g4 as normalizeUnifiedLearningReview, g5 as quarantineLearnedSkillRevision, g6 as readRunnerRecoveryTranscript, g7 as reconcileLearnedSkillBindingOutcomes, g8 as recordLearnedSkillOffered, g9 as registerPresetDispatcher, ga as releaseLearnedSkillBinding, gb as renderDeclarativeSkill, gc as resolveLearnedAreaPaths, gd as resolveProjectLearnedAreaRoot, ge as runAdmissionAudit, gf as sanitizeUnifiedLearningReviewInput, gg as setActiveUserInteraction, gh as setAdmittedAgentBindings, gi as slugifyLearnedCapabilityName, gj as stageLearnedSkillRevision, gk as validateDeclarativeSkillSpec } from './types-chunks/types.d-BA-Jwpfs.js';
|
|
3
|
+
import { M as WorkflowScriptManifest } from './types-chunks/capsule.d-BlSv9l3V.js';
|
|
4
|
+
export { C as CompactionContext, a as CompactionEntry, b as CompactionEntryPayload, c as CompactionPolicy, d as CreateWorkflowCapsuleInput, D as DefaultSummaryCompaction, e as DefaultSummaryCompactionOptions, K as KODAX_API_MIN_INTERVAL, f as KODAX_DEFAULT_TIMEOUT, g as KODAX_HARD_TIMEOUT, h as KODAX_MAX_INCOMPLETE_RETRIES, i as KODAX_MAX_MAXTOKENS_RETRIES, j as KODAX_MAX_RETRIES, k as KODAX_MAX_TOKENS, l as KODAX_RETRY_BASE_DELAY, m as KODAX_STAGGER_DELAY, L as LINEAGE_ENTRY_TYPES, n as LineageArtifactLedgerPayload, o as LineageCompaction, p as LineageCompactionDelegates, q as LineageEntryType, r as LineageExtension, s as LineageLabelPayload, t as LineageTreeNode, P as PROMISE_PATTERN, u as PolicyCompactionResult, W as WORKFLOW_CAPSULE_API_VERSION, v as WORKFLOW_CAPSULE_FORMAT, w as WORKFLOW_CAPSULE_VERSION, x as WORKFLOW_PATTERN_IDS, y as WorkflowCapsule, z as WorkflowCapsuleEnvironmentRequirement, A as WorkflowCapsuleInputs, B as WorkflowCapsuleIntent, E as WorkflowCapsuleProvenance, F as WorkflowCapsuleRequirements, G as WorkflowPatternId, H as WorkflowQualityLintFinding, I as WorkflowQualityLintOptions, J as WorkflowQualityLintSeverity, _ as _resetActiveRootQueueRoutesForTests, N as actorQueueId, O as appendSessionLineageLabel, Q as applyLineageTruncation, R as applySessionCompaction, S as archiveOldIslands, T as assertRestrictedWorkflowQuality, U as buildSessionTree, V as buildWorkflowCapsuleIntent, X as cleanupIncompleteToolCalls, Y as countActiveLineageMessages, Z as countTokens, $ as createSessionLineage, a0 as createWorkflowCapsule, a1 as createWorkflowModuleFromCapsule, a2 as estimateTokens, a3 as evictOldIslandMessageContent, a4 as extractArtifactLedger, a5 as extractFileOps, a6 as extractTitleFromMessages, a7 as findPreviousUserEntryId, a8 as forkSessionLineage, a9 as generateSessionId, aa as getAgentConfigHome, ab as getAgentConfigPath, ac as getAppDataDir, ad as getSessionLineagePath, ae as getSessionMessagesFromLineage, af as isPathInsideDirectory, ag as lintRestrictedWorkflowSource, ah as mergeArtifactLedger, ai as mergeFileOps, aj as registerActiveRootQueueRoute, ak as resolveActiveRootQueueRoute, al as resolveExecutionPath, am as resolveSessionLineageTarget, an as rewindSessionLineage, ao as setAgentConfigHome, ap as setSessionLineageActiveEntry, aq as validateAndFixToolHistory, ar as validateWorkflowCapsule, as as validateWorkflowScriptManifest } from './types-chunks/capsule.d-BlSv9l3V.js';
|
|
5
|
+
export { G as GuardrailBlockedError, a as GuardrailContext, b as GuardrailEscalateError, c as GuardrailVerdict, I as InputGuardrail, O as OutputGuardrail, T as ToolBeforeOutcome, d as ToolGuardrail, e as collectGuardrails, r as runInputGuardrails, f as runOutputGuardrails, g as runToolAfterGuardrails, h as runToolBeforeGuardrails } from './types-chunks/guardrail.d-BRE_ErEj.js';
|
|
6
|
+
import { i as KodaXImageBlock, k as KodaXMessage, a1 as KodaXToolDefinition, a6 as KodaXToolUseBlock, H as KodaXReasoningRequest, e as KodaXEphemeralSuffix, a0 as KodaXTokenUsage } from './types-chunks/types.d-DIpZJKUl.js';
|
|
7
|
+
export { K as KodaXAssuranceIntent, c as KodaXContentBlock, f as KodaXExecutionMode, g as KodaXExecutionPattern, m as KodaXMutationSurface, q as KodaXProviderConfig, y as KodaXProviderStreamOptions, B as KodaXReasoningCapability, F as KodaXReasoningMode, I as KodaXRedactedThinkingBlock, L as KodaXRiskLevel, N as KodaXStreamResult, O as KodaXTaskActionability, P as KodaXTaskBudgetOverrides, Q as KodaXTaskComplexity, R as KodaXTaskFamily, S as KodaXTaskResultMetadata, T as KodaXTaskResultSource, U as KodaXTaskRoutingDecision, V as KodaXTaskType, W as KodaXTaskWorkIntent, X as KodaXTextBlock, Y as KodaXThinkingBlock, Z as KodaXThinkingBudgetMap, _ as KodaXThinkingDepth, a2 as KodaXToolResultBlock } from './types-chunks/types.d-DIpZJKUl.js';
|
|
8
|
+
import { C as CapabilityCache, b as CapabilityCacheSource } from './types-chunks/capability-learning.d-CVsdHw4j.js';
|
|
9
|
+
export { a as CapabilityCacheEntry } from './types-chunks/capability-learning.d-CVsdHw4j.js';
|
|
10
10
|
export { C as CapabilityKind, a as CapabilityProvider, b as CapabilityResult, c as CapabilitySearchFailure, d as CapabilitySearchFreshness, e as CapabilitySearchOptions, f as CapabilitySearchSnapshot } from './types-chunks/capability.d-K664nHOS.js';
|
|
11
11
|
import { ChildProcess } from 'node:child_process';
|
|
12
|
-
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-
|
|
13
|
-
export { M as MessageMode } from './types-chunks/types.d-
|
|
14
|
-
import { K as KodaXBaseProvider } from './types-chunks/base.d-
|
|
15
|
-
import { R as ResolvedSkillSource } from './types-chunks/types.d-
|
|
16
|
-
export { I as ISkillRegistry, a as IVariableResolver, S as Skill, b as SkillArtifact, c as SkillContext, d as SkillDynamicContextExecutor, e as SkillFile, f as SkillFrontmatter, g as SkillHook, h as SkillHooks, i as SkillMetadata, j as SkillPathsConfig, k as SkillResult, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-
|
|
17
|
-
import { e as LearningActionDriver, n as LearningQuery, m as LearningPage, b as LearnedCapabilityRecord, p as LearningSurfaceSnapshot, j as LearningEvent, o as LearningSubscribeOptions, i as LearningClientRecord } from './types-chunks/center-types.d-BBT122uJ.js';
|
|
18
|
-
export { L as LearnedCapabilityCarrier, a as LearnedCapabilityLifecycle, c as LearnedCapabilitySource, d as LearningAction, f as LearningCapabilityError, g as LearningCapabilityErrorCode, h as LearningClientEventState, k as LearningEventKind, l as LearningNotificationState, q as assertLearnedCapabilityTransition, r as canTransitionLearnedCapability, s as learningEventIdFor, t as learningEventKindForLifecycle, u as slugifyLearnedCapabilityName } from './types-chunks/center-types.d-BBT122uJ.js';
|
|
12
|
+
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter, a as MessagePriority, b as QueuedInputArtifact } from './types-chunks/types.d-BH0ZkTGf.js';
|
|
13
|
+
export { M as MessageMode } from './types-chunks/types.d-BH0ZkTGf.js';
|
|
14
|
+
import { K as KodaXBaseProvider } from './types-chunks/base.d-4e74xDdy.js';
|
|
15
|
+
import { R as ResolvedSkillSource } from './types-chunks/types.d-BbtGlKZu.js';
|
|
16
|
+
export { I as ISkillRegistry, a as IVariableResolver, L as LearnedSkillDiscoveryConfig, S as Skill, b as SkillArtifact, c as SkillContext, d as SkillDynamicContextExecutor, e as SkillFile, f as SkillFrontmatter, g as SkillHook, h as SkillHooks, i as SkillMetadata, j as SkillPathsConfig, k as SkillResult, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-BbtGlKZu.js';
|
|
19
17
|
export { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './types-chunks/config.d-CJy1WENT.js';
|
|
20
18
|
export { M as McpCapabilityDescriptor, a as McpCapabilityKind, b as McpCapabilityProvider, c as McpCapabilityRisk, d as McpCatalogItem, e as McpDiscoveryCatalog, f as McpElicitRequest, g as McpElicitResult, h as McpIcon, i as McpManager, j as McpProviderOptions, k as McpReverseCapabilities, l as McpRoot, m as McpSamplingRequest, n as McpSamplingResult, o as McpServerCatalog, p as McpServerCatalogSnapshot, q as McpServerLogs, r as McpServerRuntime, s as McpServerRuntimeDiagnostics, t as McpServerStatus, u as McpServerToolList, v as McpToolTaskSupport, w as buildInitializeCapabilities, x as createMcpCapabilityId, y as createMcpManager, z as defaultMcpCacheDir, A as getMcpCachePaths, B as normalizeMcpCapabilityId, C as parseMcpCapabilityId, D as searchMcpCatalog } from './types-chunks/manager.d-B67TmPO1.js';
|
|
21
19
|
export { A as AuthorizationServerMetadata, D as DiscoveredOAuthEndpoints, M as McpAuthRequiredError, a as McpExpiredSessionError, b as McpTransport, c as McpTransportEvents, O as OAuthClientInfo, d as OAuthLoginConsent, P as PerformOAuthLoginOptions, e as ProtectedResourceMetadata, W as WwwAuthenticateChallenge, f as createMcpTransport, g as discoverAuthorizationServerMetadata, h as discoverOAuthEndpoints, i as discoverProtectedResourceMetadata, j as extractInsufficientScope, k as extractResourceMetadataUrl, l as loadValidToken, p as performOAuthLogin, r as registerOAuthClient } from './types-chunks/oauth-login.d-Bgb4rdLN.js';
|
|
22
20
|
export { createMcpTestServerFixture } from './sdk-mcp.js';
|
|
23
21
|
export { DiscoveryResult, ExecutionMode, ExecutionOptions, SkillExecutor, SkillExpansionResult, SkillRegistry, VariableResolver, clearPluginSkillPaths, createExecutor, createResolver, discoverSkills, discoverSkillsWithMonorepo, executeSkill, expandSkillForLLM, formatSkillActivationMessage, getNestedSkillPaths, getSkillRegistry, initializeSkillRegistry, listPluginSkillPaths, loadFullSkill, loadSkillFileContent, loadSkillMetadata, parseArguments, parseSkillMarkdown, registerPluginSkillPath, resetSkillRegistry, resolveSkillContent, unregisterPluginSkillPath } from './sdk-skills.js';
|
|
24
|
-
export { K as KodaXSessionHistoryHit, a as KodaXSessionHistoryReadOptions, b as KodaXSessionHistoryReadResult, c as KodaXSessionHistoryScope, d as KodaXSessionHistorySearchOptions, e as KodaXSessionHistorySearchResult, f as KodaXSessionHistorySource, r as readSessionHistoryEntry, s as searchSessionHistory } from './types-chunks/history-retrieval.d-
|
|
25
|
-
export { M as ManagedRunClassification, a as ManagedRunHooks, b as ManagedWorkflowRun, c as ManagedWorkflowSnapshot, d as ManagedWorkflowStatus, S as StartManagedRunInput, W as WorkflowProcessMetadata, e as WorkflowRunManager, f as createWorkflowRunManager, g as getDefaultWorkflowRunManager } from './types-chunks/run-manager.d-
|
|
22
|
+
export { K as KodaXSessionHistoryHit, a as KodaXSessionHistoryReadOptions, b as KodaXSessionHistoryReadResult, c as KodaXSessionHistoryScope, d as KodaXSessionHistorySearchOptions, e as KodaXSessionHistorySearchResult, f as KodaXSessionHistorySource, r as readSessionHistoryEntry, s as searchSessionHistory } from './types-chunks/history-retrieval.d-DtCy7x64.js';
|
|
23
|
+
export { M as ManagedRunClassification, a as ManagedRunHooks, b as ManagedWorkflowRun, c as ManagedWorkflowSnapshot, d as ManagedWorkflowStatus, S as StartManagedRunInput, W as WorkflowProcessMetadata, e as WorkflowRunManager, f as createWorkflowRunManager, g as getDefaultWorkflowRunManager } from './types-chunks/run-manager.d-D1twIhF9.js';
|
|
26
24
|
|
|
27
25
|
declare const CONTEXT_SAFETY_FLOOR_TOKENS = 2048;
|
|
28
26
|
declare const CONTEXT_SAFETY_RATIO = 0.03;
|
|
@@ -1229,6 +1227,13 @@ interface RunWithIdleYieldOptions<TRunResult extends RunWithIdleYieldRunResult>
|
|
|
1229
1227
|
* expose live turn IDs can stamp the generated prompt message here.
|
|
1230
1228
|
*/
|
|
1231
1229
|
readonly resolveResumeTurnId?: () => string | undefined;
|
|
1230
|
+
/**
|
|
1231
|
+
* Optional fresh runtime context inserted after the completed transcript
|
|
1232
|
+
* and immediately before wake messages. The callback runs for every idle
|
|
1233
|
+
* resume so callers can refresh Actor/team/capability facts without
|
|
1234
|
+
* replacing any previously sent prefix.
|
|
1235
|
+
*/
|
|
1236
|
+
readonly buildResumeContextMessages?: (runResult: TRunResult, wakeMessages: readonly AgentMessage[]) => readonly AgentMessage[] | Promise<readonly AgentMessage[]>;
|
|
1232
1237
|
/**
|
|
1233
1238
|
* Optional hook fired when the iteration cap is hit. Coding does not
|
|
1234
1239
|
* currently log here (matches v0.7.38 behavior — silent break) but
|
|
@@ -1670,6 +1675,8 @@ interface InvokeLlmJudgeOptions<TVerdict> {
|
|
|
1670
1675
|
readonly abortSignal?: AbortSignal;
|
|
1671
1676
|
/** Short structured-call output cap. Default 1024. */
|
|
1672
1677
|
readonly maxOutputTokens?: number;
|
|
1678
|
+
/** Optional logical cache domain owned by the caller. */
|
|
1679
|
+
readonly promptCacheKey?: string;
|
|
1673
1680
|
}
|
|
1674
1681
|
/**
|
|
1675
1682
|
* Run a one-shot LLM consult: a single forced tool call, fuzzy-matched,
|
|
@@ -1703,8 +1710,8 @@ interface CreateLlmJudgedStopHookOptions<TVerdict> {
|
|
|
1703
1710
|
*/
|
|
1704
1711
|
declare function createLlmJudgedStopHook<TVerdict>(options: CreateLlmJudgedStopHookOptions<TVerdict>): StopHookFn;
|
|
1705
1712
|
|
|
1706
|
-
/** Source-controlled
|
|
1707
|
-
declare const MEMORY_POLICY_VERSION = "
|
|
1713
|
+
/** Source-controlled F275 policy identity. Not a runtime configuration knob. */
|
|
1714
|
+
declare const MEMORY_POLICY_VERSION = "f275-v0.7.77.1";
|
|
1708
1715
|
|
|
1709
1716
|
/**
|
|
1710
1717
|
* FEATURE_124 (v0.7.43) — Memory System Alignment: path resolver.
|
|
@@ -1963,6 +1970,7 @@ declare class MemoryControlPlane implements MemoryController {
|
|
|
1963
1970
|
constructor(options: CreateMemoryControlPlaneOptions);
|
|
1964
1971
|
listInbox(): Promise<readonly MemoryActionProposal[]>;
|
|
1965
1972
|
showProposal(id: string): Promise<MemoryActionProposal | undefined>;
|
|
1973
|
+
listHostAppliedEpisodeProposalIds(proposalIds: readonly string[]): Promise<readonly string[]>;
|
|
1966
1974
|
approveProposal(id: string, expectedFingerprints: Readonly<Record<string, string>>): Promise<MemoryApplyResult>;
|
|
1967
1975
|
rejectProposal(id: string, reason?: string): Promise<MemoryRejectResult>;
|
|
1968
1976
|
listRefs(filter?: MemoryRefFilter): Promise<readonly MemoryItemRef[]>;
|
|
@@ -1975,11 +1983,14 @@ declare class MemoryControlPlane implements MemoryController {
|
|
|
1975
1983
|
maybeRunAutoCurator(input?: MemoryAutoCuratorInput): Promise<MemoryAutoCuratorResult>;
|
|
1976
1984
|
buildMemoryPack(input: MemoryPackInput): Promise<MemoryPack>;
|
|
1977
1985
|
reviewMemoryFeedback(input: MemoryReviewInput): Promise<MemoryReviewPlan>;
|
|
1986
|
+
prepareEpisodeReview(digest: KodaXMemoryOutcomeDigest): Promise<MemoryReviewModelInput>;
|
|
1987
|
+
private prepareReviewInput;
|
|
1978
1988
|
persistReviewPlan(plan: MemoryReviewPlan): Promise<readonly string[]>;
|
|
1979
1989
|
private persistReviewPlanWithDecisions;
|
|
1980
1990
|
private resolveReviewMemoryPlacement;
|
|
1981
1991
|
private projectPlacement;
|
|
1982
1992
|
reviewEpisode(digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal): Promise<MemoryEpisodeReviewResult>;
|
|
1993
|
+
applyReviewedEpisode(reviewedPlan: MemoryReviewPlan, digest: KodaXMemoryOutcomeDigest, signal?: AbortSignal, revalidateAuthority?: () => Promise<void>): Promise<MemoryEpisodeReviewResult>;
|
|
1983
1994
|
private consultReviewAction;
|
|
1984
1995
|
private applyHostEligibleProposal;
|
|
1985
1996
|
private projectLearningProposal;
|
|
@@ -2005,7 +2016,13 @@ declare class MemoryControlPlane implements MemoryController {
|
|
|
2005
2016
|
private buildGovernanceReport;
|
|
2006
2017
|
}
|
|
2007
2018
|
|
|
2008
|
-
|
|
2019
|
+
/**
|
|
2020
|
+
* Returns one bounded claim that is safe to expose as low-authority memory
|
|
2021
|
+
* evidence. Undefined means the source must remain reference-only.
|
|
2022
|
+
*/
|
|
2023
|
+
declare function sanitizePromptSafeMemoryClaim(value: string, maxChars?: number): string | undefined;
|
|
2024
|
+
|
|
2025
|
+
interface PendingEpisodeReviewV1 {
|
|
2009
2026
|
readonly version: 1;
|
|
2010
2027
|
readonly reviewKey: string;
|
|
2011
2028
|
readonly digest: KodaXMemoryOutcomeDigest;
|
|
@@ -2014,9 +2031,107 @@ interface PendingEpisodeReview {
|
|
|
2014
2031
|
readonly ownerProjectHash?: string;
|
|
2015
2032
|
readonly createdAt: string;
|
|
2016
2033
|
}
|
|
2034
|
+
interface PendingEpisodeReviewV2 {
|
|
2035
|
+
readonly version: 2;
|
|
2036
|
+
readonly jobId: string;
|
|
2037
|
+
readonly reviewKey: string;
|
|
2038
|
+
readonly digest: KodaXMemoryOutcomeDigest;
|
|
2039
|
+
readonly ownerSessionRef: string;
|
|
2040
|
+
readonly ownerAgentHash: string;
|
|
2041
|
+
readonly ownerProjectHash?: string;
|
|
2042
|
+
readonly branchId: string;
|
|
2043
|
+
readonly branchEpoch: number;
|
|
2044
|
+
readonly authorityCeiling: 'memory_and_project_skill';
|
|
2045
|
+
readonly createdAt: string;
|
|
2046
|
+
}
|
|
2047
|
+
type PendingEpisodeReview = PendingEpisodeReviewV1 | PendingEpisodeReviewV2;
|
|
2048
|
+
type EpisodeReviewJobStatus = 'pending' | 'processing' | 'decided' | 'completed' | 'attention';
|
|
2049
|
+
interface EpisodeReviewJobState {
|
|
2050
|
+
readonly schemaVersion: 1;
|
|
2051
|
+
readonly jobId: string;
|
|
2052
|
+
readonly status: EpisodeReviewJobStatus;
|
|
2053
|
+
readonly claimEpoch: number;
|
|
2054
|
+
readonly claimToken?: string;
|
|
2055
|
+
readonly leaseDeadline?: string;
|
|
2056
|
+
readonly providerAttempts: number;
|
|
2057
|
+
readonly applyAttempts: number;
|
|
2058
|
+
readonly applyAttemptsByCarrier: {
|
|
2059
|
+
readonly memory: number;
|
|
2060
|
+
readonly skill: number;
|
|
2061
|
+
};
|
|
2062
|
+
readonly completionAttempts: number;
|
|
2063
|
+
readonly nextAttemptAt?: string;
|
|
2064
|
+
readonly nextApplyAttemptAt?: string;
|
|
2065
|
+
readonly nextCompletionAttemptAt?: string;
|
|
2066
|
+
readonly lastError?: string;
|
|
2067
|
+
readonly updatedAt: string;
|
|
2068
|
+
}
|
|
2069
|
+
interface EpisodeReviewClaim {
|
|
2070
|
+
readonly jobId: string;
|
|
2071
|
+
readonly reviewKey: string;
|
|
2072
|
+
readonly ownerSessionRef: string;
|
|
2073
|
+
readonly branchId: string;
|
|
2074
|
+
readonly branchEpoch: number;
|
|
2075
|
+
readonly epoch: number;
|
|
2076
|
+
readonly token: string;
|
|
2077
|
+
readonly leaseDeadline: string;
|
|
2078
|
+
}
|
|
2079
|
+
interface EpisodeReviewInputSpec {
|
|
2080
|
+
readonly evidence: unknown;
|
|
2081
|
+
readonly promptRevision: string;
|
|
2082
|
+
readonly schemaRevision: string;
|
|
2083
|
+
readonly policyRevision: string;
|
|
2084
|
+
readonly providerRevision: string;
|
|
2085
|
+
}
|
|
2086
|
+
interface EpisodeReviewInputCheckpoint extends EpisodeReviewInputSpec {
|
|
2087
|
+
readonly version: 1;
|
|
2088
|
+
readonly jobId: string;
|
|
2089
|
+
readonly evidenceBytes: string;
|
|
2090
|
+
readonly evidenceHash: string;
|
|
2091
|
+
readonly createdAt: string;
|
|
2092
|
+
}
|
|
2093
|
+
interface EpisodeReviewDecisionInput {
|
|
2094
|
+
readonly inputHash: string;
|
|
2095
|
+
readonly memoryProposalIds: readonly string[];
|
|
2096
|
+
readonly requiredCarriers?: readonly ('memory' | 'skill')[];
|
|
2097
|
+
readonly memoryPlan?: unknown;
|
|
2098
|
+
readonly capabilityDecision?: unknown;
|
|
2099
|
+
}
|
|
2100
|
+
interface EpisodeReviewDecision extends EpisodeReviewDecisionInput {
|
|
2101
|
+
readonly version: 1;
|
|
2102
|
+
readonly jobId: string;
|
|
2103
|
+
readonly decisionId: string;
|
|
2104
|
+
readonly committedAt: string;
|
|
2105
|
+
}
|
|
2106
|
+
interface EpisodeReviewActionInput {
|
|
2107
|
+
readonly actionId: string;
|
|
2108
|
+
readonly decisionId: string;
|
|
2109
|
+
readonly carrier: 'memory' | 'skill';
|
|
2110
|
+
readonly resultRefs: readonly string[];
|
|
2111
|
+
}
|
|
2112
|
+
interface EpisodeReviewActionReceipt extends EpisodeReviewActionInput {
|
|
2113
|
+
readonly version: 1;
|
|
2114
|
+
readonly jobId: string;
|
|
2115
|
+
readonly committedAt: string;
|
|
2116
|
+
}
|
|
2117
|
+
type EpisodeReviewFailureKind = 'provider_timeout' | 'provider_error' | 'malformed_response' | 'shutdown' | 'budget_unavailable' | 'provider_unavailable';
|
|
2118
|
+
declare class EpisodeReviewFailure extends Error {
|
|
2119
|
+
readonly kind: EpisodeReviewFailureKind;
|
|
2120
|
+
constructor(kind: EpisodeReviewFailureKind, message: string);
|
|
2121
|
+
}
|
|
2122
|
+
interface EpisodeReviewJobSnapshot {
|
|
2123
|
+
readonly envelope: PendingEpisodeReviewV2;
|
|
2124
|
+
readonly state: EpisodeReviewJobState;
|
|
2125
|
+
readonly input?: EpisodeReviewInputCheckpoint;
|
|
2126
|
+
readonly decision?: EpisodeReviewDecision;
|
|
2127
|
+
readonly actions: readonly EpisodeReviewActionReceipt[];
|
|
2128
|
+
}
|
|
2017
2129
|
interface EpisodeReviewReceipt {
|
|
2018
2130
|
readonly version: 1;
|
|
2131
|
+
readonly jobId?: string;
|
|
2019
2132
|
readonly reviewKey: string;
|
|
2133
|
+
readonly ownerAgentHash?: string;
|
|
2134
|
+
readonly ownerProjectHash?: string;
|
|
2020
2135
|
readonly proposalIds: readonly string[];
|
|
2021
2136
|
readonly completedAt: string;
|
|
2022
2137
|
}
|
|
@@ -2025,6 +2140,11 @@ interface EpisodeReviewDrainOptions {
|
|
|
2025
2140
|
readonly maxEntries?: number;
|
|
2026
2141
|
readonly revalidate: (entry: PendingEpisodeReview) => Promise<EpisodeReviewDrainEligibility>;
|
|
2027
2142
|
readonly review: (entry: PendingEpisodeReview) => Promise<readonly string[]>;
|
|
2143
|
+
readonly prepareV2Input?: (entry: PendingEpisodeReviewV2) => Promise<EpisodeReviewInputSpec>;
|
|
2144
|
+
readonly decideV2?: (entry: PendingEpisodeReviewV2, input: EpisodeReviewInputCheckpoint, signal: AbortSignal) => Promise<EpisodeReviewDecisionInput>;
|
|
2145
|
+
readonly listV2Actions?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision) => readonly ('memory' | 'skill')[];
|
|
2146
|
+
readonly applyV2Action?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision, carrier: 'memory' | 'skill', claim: EpisodeReviewClaim, commitWithAuthority: (effect: (revalidateAuthority: () => Promise<void>) => Promise<readonly string[]>) => Promise<readonly string[]>) => Promise<readonly string[]>;
|
|
2147
|
+
readonly onV2Completed?: (entry: PendingEpisodeReviewV2, decision: EpisodeReviewDecision, proposalIds: readonly string[]) => Promise<void>;
|
|
2028
2148
|
}
|
|
2029
2149
|
interface EpisodeReviewDrainResult {
|
|
2030
2150
|
readonly reviewed: number;
|
|
@@ -2036,11 +2156,42 @@ interface EpisodeReviewDrainResult {
|
|
|
2036
2156
|
readonly error: string;
|
|
2037
2157
|
}[];
|
|
2038
2158
|
}
|
|
2039
|
-
declare
|
|
2159
|
+
declare class EpisodeReviewBranchChangedError extends Error {
|
|
2160
|
+
constructor();
|
|
2161
|
+
}
|
|
2162
|
+
declare function captureEpisodeReviewBranchEpoch(identity: MemoryContextIdentity): Promise<number>;
|
|
2163
|
+
declare function persistPendingEpisodeReview(identity: MemoryContextIdentity, digest: KodaXMemoryOutcomeDigest, options?: {
|
|
2164
|
+
readonly expectedBranchEpoch?: number;
|
|
2165
|
+
readonly persistOwner?: (entry: PendingEpisodeReviewV2) => Promise<void>;
|
|
2166
|
+
}): Promise<{
|
|
2040
2167
|
readonly path: string;
|
|
2041
|
-
readonly entry:
|
|
2168
|
+
readonly entry: PendingEpisodeReviewV2;
|
|
2042
2169
|
}>;
|
|
2170
|
+
declare function claimEpisodeReview(identity: MemoryContextIdentity, reviewKeyOrJobId: string, options?: {
|
|
2171
|
+
readonly now?: Date;
|
|
2172
|
+
readonly leaseMs?: number;
|
|
2173
|
+
}): Promise<EpisodeReviewClaim | undefined>;
|
|
2174
|
+
declare function freezeEpisodeReviewInput(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, spec: EpisodeReviewInputSpec, now?: Date): Promise<EpisodeReviewInputCheckpoint>;
|
|
2175
|
+
declare function commitEpisodeReviewDecision(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, input: EpisodeReviewDecisionInput, now?: Date): Promise<EpisodeReviewDecision>;
|
|
2176
|
+
declare function commitEpisodeReviewAction(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, input: EpisodeReviewActionInput, now?: Date): Promise<EpisodeReviewActionReceipt>;
|
|
2177
|
+
declare function withEpisodeReviewClaimAuthority<T>(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, operation: (revalidateAuthority: () => Promise<void>) => Promise<T>): Promise<T>;
|
|
2178
|
+
declare function failEpisodeReviewAttempt(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, failure: {
|
|
2179
|
+
readonly kind: EpisodeReviewFailureKind;
|
|
2180
|
+
readonly message: string;
|
|
2181
|
+
}, now?: Date): Promise<EpisodeReviewJobState>;
|
|
2182
|
+
declare function failEpisodeReviewApply(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, failure: {
|
|
2183
|
+
readonly carrier: 'memory' | 'skill';
|
|
2184
|
+
readonly message: string;
|
|
2185
|
+
}, now?: Date): Promise<EpisodeReviewJobState>;
|
|
2186
|
+
declare function deferEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, reason: string, now?: Date): Promise<EpisodeReviewJobState>;
|
|
2187
|
+
declare function completeFencedEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, proposalIds: readonly string[], now?: Date): Promise<{
|
|
2188
|
+
readonly acknowledged: boolean;
|
|
2189
|
+
readonly receiptPath: string;
|
|
2190
|
+
}>;
|
|
2191
|
+
declare function discardFencedEpisodeReview(identity: MemoryContextIdentity, claim: EpisodeReviewClaim, reason: string, now?: Date): Promise<void>;
|
|
2192
|
+
declare function inspectEpisodeReviewJob(identity: MemoryContextIdentity, reviewKeyOrJobId: string): Promise<EpisodeReviewJobSnapshot | undefined>;
|
|
2043
2193
|
declare function listPendingEpisodeReviews(filter: {
|
|
2194
|
+
readonly configHome?: string;
|
|
2044
2195
|
readonly tenantId: string;
|
|
2045
2196
|
readonly agentId?: string;
|
|
2046
2197
|
readonly projectId?: string;
|
|
@@ -2050,6 +2201,31 @@ declare function completeEpisodeReview(identity: MemoryContextIdentity, reviewKe
|
|
|
2050
2201
|
readonly receiptPath: string;
|
|
2051
2202
|
}>;
|
|
2052
2203
|
declare function rewindPendingEpisodeReviews(identity: MemoryContextIdentity, throughSequence: number): Promise<number>;
|
|
2204
|
+
declare function rewindPendingEpisodeReviewsForSession(input: {
|
|
2205
|
+
readonly configHome?: string;
|
|
2206
|
+
readonly sessionId: string;
|
|
2207
|
+
}, throughSequence: number): Promise<number>;
|
|
2208
|
+
/**
|
|
2209
|
+
* Fences every tenant-owned review job for a Session unless its exact durable
|
|
2210
|
+
* job identity is attached to the prospective active lineage branch. Legacy
|
|
2211
|
+
* lineage records may supply digest.id as a conservative fallback.
|
|
2212
|
+
*/
|
|
2213
|
+
declare function fencePendingEpisodeReviewsForSession(input: {
|
|
2214
|
+
readonly configHome?: string;
|
|
2215
|
+
readonly sessionId: string;
|
|
2216
|
+
}, activeReviewIds: readonly string[]): Promise<number>;
|
|
2217
|
+
/**
|
|
2218
|
+
* Establishes the lock order used by both review completion and Session branch
|
|
2219
|
+
* mutation: the Session root registry first, every sorted tenant branch fence
|
|
2220
|
+
* next, then the caller-owned Session transaction. The supplied fence operation
|
|
2221
|
+
* runs without reacquiring those locks, so a mutation can fence its prospective
|
|
2222
|
+
* lineage and persist that exact lineage atomically with respect to review
|
|
2223
|
+
* effects, new tenant registration and completion delivery.
|
|
2224
|
+
*/
|
|
2225
|
+
declare function withPendingEpisodeReviewSessionFence<T>(input: {
|
|
2226
|
+
readonly configHome?: string;
|
|
2227
|
+
readonly sessionId: string;
|
|
2228
|
+
}, operation: (fence: (activeReviewIds: readonly string[]) => Promise<number>) => Promise<T>): Promise<T>;
|
|
2053
2229
|
declare function drainPendingEpisodeReviews(identity: MemoryContextIdentity, options: EpisodeReviewDrainOptions): Promise<EpisodeReviewDrainResult>;
|
|
2054
2230
|
|
|
2055
2231
|
type SkillWriteOrigin = 'foreground_user' | 'assistant_tool' | 'background_learning';
|
|
@@ -2075,7 +2251,7 @@ interface MemoryHandoffMetadata {
|
|
|
2075
2251
|
readonly preconditions?: string;
|
|
2076
2252
|
readonly applicability?: MemoryApplicability;
|
|
2077
2253
|
readonly requestedLifecycle?: 'active' | 'provisional';
|
|
2078
|
-
readonly episodeOutcome?: 'succeeded' | 'failed';
|
|
2254
|
+
readonly episodeOutcome?: 'succeeded' | 'failed' | 'cancelled';
|
|
2079
2255
|
readonly verifiedEvidence?: boolean;
|
|
2080
2256
|
readonly evidenceProjectId?: string;
|
|
2081
2257
|
}
|
|
@@ -2291,8 +2467,9 @@ declare function readLearningProposalStore(filePath: string): Promise<LearningPr
|
|
|
2291
2467
|
declare function upsertLearningProposal(filePath: string, proposal: ReviewableLearningProposal, options?: {
|
|
2292
2468
|
readonly now?: () => string;
|
|
2293
2469
|
readonly applyPlan?: StoredLearningApplyPlan;
|
|
2470
|
+
readonly revalidateAuthority?: () => Promise<void>;
|
|
2294
2471
|
}): Promise<StoredLearningProposal>;
|
|
2295
|
-
declare function resolveLearningProposalStore(cwd: string): string;
|
|
2472
|
+
declare function resolveLearningProposalStore(cwd: string, configHome?: string): string;
|
|
2296
2473
|
declare function updateLearningProposalStatus(filePath: string, proposalId: string, status: LearningProposalReviewStatus, options?: {
|
|
2297
2474
|
readonly rejectedReason?: string;
|
|
2298
2475
|
readonly appliedAt?: string;
|
|
@@ -2305,6 +2482,7 @@ declare function updateLearningProposalStatus(filePath: string, proposalId: stri
|
|
|
2305
2482
|
readonly approvalExpectedFingerprints?: Readonly<Record<string, string>>;
|
|
2306
2483
|
readonly approvalResultingFingerprints?: Readonly<Record<string, string>>;
|
|
2307
2484
|
readonly now?: () => string;
|
|
2485
|
+
readonly revalidateAuthority?: () => Promise<void>;
|
|
2308
2486
|
}): Promise<StoredLearningProposal>;
|
|
2309
2487
|
|
|
2310
2488
|
declare function applySkillLearningProposal(input: SkillLearningApplyInput): Promise<SkillMutationApplyResult>;
|
|
@@ -2469,14 +2647,14 @@ interface LearningCenterService {
|
|
|
2469
2647
|
acknowledge(nameOrSlug: string): Promise<void>;
|
|
2470
2648
|
markSeen(nameOrSlug: string): Promise<void>;
|
|
2471
2649
|
snooze(nameOrSlug: string, until: string): Promise<void>;
|
|
2472
|
-
reject(nameOrSlug: string): Promise<void>;
|
|
2473
|
-
disable(nameOrSlug: string): Promise<void>;
|
|
2474
|
-
rollback(nameOrSlug: string): Promise<void>;
|
|
2650
|
+
reject(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2651
|
+
disable(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2652
|
+
rollback(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2475
2653
|
archive(nameOrSlug: string): Promise<void>;
|
|
2476
2654
|
restore(nameOrSlug: string): Promise<void>;
|
|
2477
|
-
promote(nameOrSlug: string, scope: 'user'): Promise<void>;
|
|
2478
|
-
review(nameOrSlug: string): Promise<void>;
|
|
2479
|
-
trust(nameOrSlug: string): Promise<void>;
|
|
2655
|
+
promote(nameOrSlug: string, scope: 'user', authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2656
|
+
review(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2657
|
+
trust(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2480
2658
|
record(record: LearnedCapabilityRecord): Promise<LearnedCapabilityRecord>;
|
|
2481
2659
|
}
|
|
2482
2660
|
declare class FileLearningCenterService implements LearningCenterService {
|
|
@@ -2496,18 +2674,17 @@ declare class FileLearningCenterService implements LearningCenterService {
|
|
|
2496
2674
|
acknowledge(nameOrSlug: string): Promise<void>;
|
|
2497
2675
|
markSeen(nameOrSlug: string): Promise<void>;
|
|
2498
2676
|
snooze(nameOrSlug: string, until: string): Promise<void>;
|
|
2499
|
-
reject(nameOrSlug: string): Promise<void>;
|
|
2500
|
-
disable(nameOrSlug: string): Promise<void>;
|
|
2501
|
-
rollback(nameOrSlug: string): Promise<void>;
|
|
2677
|
+
reject(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2678
|
+
disable(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2679
|
+
rollback(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2502
2680
|
archive(nameOrSlug: string): Promise<void>;
|
|
2503
2681
|
restore(nameOrSlug: string): Promise<void>;
|
|
2504
|
-
promote(nameOrSlug: string,
|
|
2505
|
-
review(nameOrSlug: string): Promise<void>;
|
|
2506
|
-
trust(nameOrSlug: string): Promise<void>;
|
|
2682
|
+
promote(nameOrSlug: string, scope: 'user', authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2683
|
+
review(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2684
|
+
trust(nameOrSlug: string, authority?: LearningExplicitUserAuthority): Promise<void>;
|
|
2507
2685
|
record(record: LearnedCapabilityRecord): Promise<LearnedCapabilityRecord>;
|
|
2508
2686
|
private recordUnlocked;
|
|
2509
2687
|
private transitionByName;
|
|
2510
|
-
private transition;
|
|
2511
2688
|
private executeDriverAction;
|
|
2512
2689
|
private driverFor;
|
|
2513
2690
|
private loadCapabilities;
|
|
@@ -2518,32 +2695,6 @@ declare class FileLearningCenterService implements LearningCenterService {
|
|
|
2518
2695
|
}
|
|
2519
2696
|
declare function createLearningCenterService(options: CreateLearningCenterServiceOptions): FileLearningCenterService;
|
|
2520
2697
|
|
|
2521
|
-
interface LearnedAreaPaths {
|
|
2522
|
-
readonly root: string;
|
|
2523
|
-
readonly skills: string;
|
|
2524
|
-
readonly extensions: string;
|
|
2525
|
-
readonly capabilities: string;
|
|
2526
|
-
readonly events: string;
|
|
2527
|
-
readonly clients: string;
|
|
2528
|
-
}
|
|
2529
|
-
declare function resolveLearnedAreaPaths(rootDir: string): LearnedAreaPaths;
|
|
2530
|
-
declare class LearnedAreaStore {
|
|
2531
|
-
readonly paths: LearnedAreaPaths;
|
|
2532
|
-
constructor(rootDir: string);
|
|
2533
|
-
initialize(): Promise<void>;
|
|
2534
|
-
readCapability(capabilityId: string): Promise<LearnedCapabilityRecord | undefined>;
|
|
2535
|
-
listCapabilities(): Promise<readonly LearnedCapabilityRecord[]>;
|
|
2536
|
-
writeCapability(record: LearnedCapabilityRecord): Promise<void>;
|
|
2537
|
-
writeEvent(event: LearningEvent): Promise<void>;
|
|
2538
|
-
listEvents(): Promise<readonly LearningEvent[]>;
|
|
2539
|
-
readClient(identity: string): Promise<LearningClientRecord>;
|
|
2540
|
-
writeClient(record: LearningClientRecord): Promise<void>;
|
|
2541
|
-
withOwnerMutation<T>(operation: () => Promise<T>): Promise<T>;
|
|
2542
|
-
withClientMutation<T>(identity: string, operation: () => Promise<T>): Promise<T>;
|
|
2543
|
-
ensureCurrentEvent(record: LearnedCapabilityRecord): Promise<LearningEvent>;
|
|
2544
|
-
}
|
|
2545
|
-
declare function eventFromCapability(record: LearnedCapabilityRecord, sequence: number): LearningEvent;
|
|
2546
|
-
|
|
2547
2698
|
interface LearningProposalProjection {
|
|
2548
2699
|
readonly records: readonly LearnedCapabilityRecord[];
|
|
2549
2700
|
readonly warnings: readonly string[];
|
|
@@ -2553,12 +2704,47 @@ declare function projectLearningProposals(filePath: string): Promise<LearningPro
|
|
|
2553
2704
|
declare function getLearnedExtensionToolName(slug: string, toolName: string): string;
|
|
2554
2705
|
declare function isLearnedExtensionCommandAllowed(_command: string): false;
|
|
2555
2706
|
|
|
2556
|
-
|
|
2707
|
+
interface CreateLearnedSkillActionDriverOptions {
|
|
2708
|
+
readonly learnedAreaRoot: string;
|
|
2709
|
+
readonly learnedAreaKind?: 'global' | 'project';
|
|
2710
|
+
readonly userSkillsRoot: string;
|
|
2711
|
+
readonly now?: () => string;
|
|
2712
|
+
}
|
|
2713
|
+
/**
|
|
2714
|
+
* Explicit-user actions for one project Learned Area.
|
|
2715
|
+
*
|
|
2716
|
+
* The Learning Center invokes this driver while holding the carrier owner
|
|
2717
|
+
* lock, then commits the returned next record with the usual revision CAS.
|
|
2718
|
+
*/
|
|
2719
|
+
declare function createLearnedSkillActionDriver(options: CreateLearnedSkillActionDriverOptions): LearningActionDriver;
|
|
2720
|
+
|
|
2721
|
+
interface LegacyLearnedSkillMigrationResult {
|
|
2722
|
+
readonly migratedActive: number;
|
|
2723
|
+
readonly recordedAttention: number;
|
|
2724
|
+
readonly alreadyComplete: boolean;
|
|
2725
|
+
}
|
|
2726
|
+
/**
|
|
2727
|
+
* One-time compatibility bridge from F266's loose global learned/skills tree.
|
|
2728
|
+
* V1 records have no trusted historical content fingerprint. All loose
|
|
2729
|
+
* artifacts therefore become non-loadable Ready/attention instead of being
|
|
2730
|
+
* trusted from their current mutable bytes.
|
|
2731
|
+
*/
|
|
2732
|
+
declare function migrateLegacyLearnedSkillsForProject(configHome: string, projectStore: LearnedAreaStore, scope: LearnedCapabilityScope): Promise<LegacyLearnedSkillMigrationResult>;
|
|
2733
|
+
|
|
2734
|
+
declare function withLearningFileLock<T>(lockPath: string, operation: () => Promise<T>, acquireTimeoutMs?: number): Promise<T>;
|
|
2735
|
+
|
|
2736
|
+
declare function appendMemoryOutcomeDigest(lineage: KodaXSessionLineage, digest: KodaXMemoryOutcomeDigest, jobId?: string): KodaXSessionLineage;
|
|
2557
2737
|
declare function appendMemoryReviewReceipt(lineage: KodaXSessionLineage, input: {
|
|
2738
|
+
readonly jobId?: string;
|
|
2558
2739
|
readonly reviewKey: string;
|
|
2559
2740
|
readonly proposalIds: readonly string[];
|
|
2560
2741
|
readonly completedAt: string;
|
|
2561
2742
|
}): KodaXSessionLineage;
|
|
2743
|
+
/**
|
|
2744
|
+
* Returns exact durable review identities for outcome digests attached to the
|
|
2745
|
+
* active branch. New records use jobId; legacy records fall back to digest.id.
|
|
2746
|
+
*/
|
|
2747
|
+
declare function getActiveMemoryOutcomeReviewIds(lineage: KodaXSessionLineage): readonly string[];
|
|
2562
2748
|
declare function appendMemoryClientNotice(lineage: KodaXSessionLineage, input: {
|
|
2563
2749
|
readonly episodeId: string;
|
|
2564
2750
|
readonly summaries: readonly string[];
|
|
@@ -2753,8 +2939,29 @@ interface KodaXCompactionPromptSnapshot {
|
|
|
2753
2939
|
interface CompactionCacheContext {
|
|
2754
2940
|
readonly tools: readonly KodaXToolDefinition[];
|
|
2755
2941
|
readonly reasoning?: boolean | KodaXReasoningRequest;
|
|
2942
|
+
/** Opaque Provider cache-routing key inherited from the logical context. */
|
|
2943
|
+
readonly promptCacheKey?: string;
|
|
2756
2944
|
/** Raw tail already present in the cached prefix but excluded from this summary. */
|
|
2757
2945
|
readonly protectedTailMessageCount?: number;
|
|
2946
|
+
/** Optional diagnostics observer; failures never affect the compaction request. */
|
|
2947
|
+
readonly observer?: CompactionProviderObserver;
|
|
2948
|
+
}
|
|
2949
|
+
interface CompactionProviderRequest {
|
|
2950
|
+
readonly messages: readonly KodaXMessage[];
|
|
2951
|
+
readonly tools: readonly KodaXToolDefinition[];
|
|
2952
|
+
readonly system: string;
|
|
2953
|
+
readonly reasoning?: boolean | KodaXReasoningRequest;
|
|
2954
|
+
readonly modelOverride?: string;
|
|
2955
|
+
readonly ephemeralSuffix?: KodaXEphemeralSuffix;
|
|
2956
|
+
readonly promptCacheKey?: string;
|
|
2957
|
+
}
|
|
2958
|
+
interface CompactionProviderObserver {
|
|
2959
|
+
readonly onRequest?: (request: CompactionProviderRequest) => void;
|
|
2960
|
+
readonly onResponse?: (request: CompactionProviderRequest, usage: KodaXTokenUsage | undefined) => void;
|
|
2961
|
+
}
|
|
2962
|
+
/** Routing-only metadata applied to every physical summary request. */
|
|
2963
|
+
interface CompactionProviderRouting {
|
|
2964
|
+
readonly promptCacheKey?: string;
|
|
2758
2965
|
}
|
|
2759
2966
|
declare function buildCompactionCacheInstruction(promptSnapshot: KodaXCompactionPromptSnapshot, protectedTailMessageCount?: number): string;
|
|
2760
2967
|
declare function buildCompactionPromptSnapshot(args: {
|
|
@@ -2777,7 +2984,7 @@ declare function buildCompactionPromptSnapshot(args: {
|
|
|
2777
2984
|
*/
|
|
2778
2985
|
updateSummaryPrompt?: string;
|
|
2779
2986
|
}): KodaXCompactionPromptSnapshot;
|
|
2780
|
-
declare function generateSummary(messages: KodaXMessage[], provider: KodaXBaseProvider, details: CompactionDetails, customInstructions?: string, systemPrompt?: string, previousSummary?: string, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string, cacheContext?: CompactionCacheContext): Promise<string>;
|
|
2987
|
+
declare function generateSummary(messages: KodaXMessage[], provider: KodaXBaseProvider, details: CompactionDetails, customInstructions?: string, systemPrompt?: string, previousSummary?: string, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string, cacheContext?: CompactionCacheContext, observer?: CompactionProviderObserver, routing?: CompactionProviderRouting): Promise<string>;
|
|
2781
2988
|
|
|
2782
2989
|
/**
|
|
2783
2990
|
* ../../index.js Compaction Core
|
|
@@ -2819,7 +3026,7 @@ declare const COMPACTED_HISTORY_RECOVERY_GUIDANCE = "\n\n## Exact history recove
|
|
|
2819
3026
|
*/
|
|
2820
3027
|
declare function isEmptyLikeSummary(summary: string): boolean;
|
|
2821
3028
|
declare function needsCompaction(messages: KodaXMessage[], config: CompactionConfig, contextWindow?: number, tokenCountOverride?: number, reservedResponseTokens?: number): boolean;
|
|
2822
|
-
declare function compact(messages: KodaXMessage[], config: CompactionConfig, provider: KodaXBaseProvider, contextWindow?: number, customInstructions?: string, systemPrompt?: string, tokenCountOverride?: number, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string, force?: boolean, reservedResponseTokens?: number, cacheContext?: CompactionCacheContext): Promise<CompactionResult>;
|
|
3029
|
+
declare function compact(messages: KodaXMessage[], config: CompactionConfig, provider: KodaXBaseProvider, contextWindow?: number, customInstructions?: string, systemPrompt?: string, tokenCountOverride?: number, summaryPrompt?: string, updateSummaryPrompt?: string, modelOverride?: string, force?: boolean, reservedResponseTokens?: number, cacheContext?: CompactionCacheContext, observer?: CompactionProviderObserver, routing?: CompactionProviderRouting): Promise<CompactionResult>;
|
|
2823
3030
|
|
|
2824
3031
|
/**
|
|
2825
3032
|
* KodaX Microcompaction - Explicit legacy context cleanup
|
|
@@ -3339,6 +3546,10 @@ interface AgentControllerOptions {
|
|
|
3339
3546
|
readonly executorFor?: (kind: AgentExecutionKind) => AgentTurnExecutor;
|
|
3340
3547
|
readonly budget?: AgentBudgetPort;
|
|
3341
3548
|
readonly store?: AgentActorStore;
|
|
3549
|
+
/** Unique Runtime/controller claim for one durable Session Actor tree. */
|
|
3550
|
+
readonly owner?: AgentActorOwner;
|
|
3551
|
+
/** Conservative liveness probe for a persisted foreign owner. Omitted means alive. */
|
|
3552
|
+
readonly isOwnerAlive?: (owner: AgentActorOwner) => boolean | Promise<boolean>;
|
|
3342
3553
|
readonly now?: () => string;
|
|
3343
3554
|
readonly warn?: (message: string) => void;
|
|
3344
3555
|
readonly onBackgroundError?: (error: unknown) => void;
|
|
@@ -3362,9 +3573,15 @@ declare class AgentActorController {
|
|
|
3362
3573
|
private readonly now;
|
|
3363
3574
|
private mutationTail;
|
|
3364
3575
|
private revision;
|
|
3576
|
+
private snapshotSchemaVersion;
|
|
3577
|
+
private durableOwner?;
|
|
3578
|
+
private initialized;
|
|
3579
|
+
private ownershipLost;
|
|
3580
|
+
private ownershipReleased;
|
|
3365
3581
|
private committedSnapshot;
|
|
3366
3582
|
constructor(options?: AgentControllerOptions);
|
|
3367
3583
|
initialize(): Promise<void>;
|
|
3584
|
+
ownsDurableFence(): boolean;
|
|
3368
3585
|
bind(callerPath: string): AgentActorClient;
|
|
3369
3586
|
/** Trusted host API: register a zero-slot Workflow protocol owner in this tree. */
|
|
3370
3587
|
createProtocolOwner(callerPath: string, ownerId: string): Promise<AgentActorClient>;
|
|
@@ -3374,12 +3591,19 @@ declare class AgentActorController {
|
|
|
3374
3591
|
}): Promise<void>;
|
|
3375
3592
|
/** Trusted host API: cancellation signal for a zero-slot Workflow protocol owner. */
|
|
3376
3593
|
protocolOwnerSignal(ownerPath: string): AbortSignal;
|
|
3377
|
-
spawn(callerPath: string, input: AgentSpawnInput): Promise<AgentTurnRef>;
|
|
3594
|
+
spawn(callerPath: string, input: AgentSpawnInput, options?: AgentMutationOptions): Promise<AgentTurnRef>;
|
|
3378
3595
|
send(callerPath: string, targetPath: string, content: string, classification?: AgentDataClassification, forwardedMessageId?: string): Promise<AgentMailboxMessage>;
|
|
3379
3596
|
acknowledgeCompletions(callerPath: string, turnIds: readonly string[]): Promise<number>;
|
|
3380
3597
|
followup(callerPath: string, targetPath: string, objective: string, metadata?: Readonly<Record<string, AgentMetadataValue>>, options?: AgentMutationOptions): Promise<AgentFollowupResult>;
|
|
3381
3598
|
interrupt(callerPath: string, targetPath: string, reason?: string, scope?: AgentInterruptScope): Promise<void>;
|
|
3382
3599
|
close(callerPath: string, targetPath: string, reason?: string): Promise<void>;
|
|
3600
|
+
/**
|
|
3601
|
+
* Final local teardown after the host has durably removed the backing store.
|
|
3602
|
+
* No mutation is allowed here because there is no longer a snapshot to save.
|
|
3603
|
+
*/
|
|
3604
|
+
disposeAfterStoreRemoval(reason?: string): void;
|
|
3605
|
+
/** Interrupts every local execution while retaining the durable owner fence. */
|
|
3606
|
+
quiesce(reason?: string): Promise<void>;
|
|
3383
3607
|
/** Stops in-flight work for process shutdown while preserving reusable Actor identities. */
|
|
3384
3608
|
shutdown(reason?: string): Promise<void>;
|
|
3385
3609
|
list(callerPath: string): AgentTreeSnapshot;
|
|
@@ -3422,10 +3646,16 @@ declare class AgentActorController {
|
|
|
3422
3646
|
private restore;
|
|
3423
3647
|
private republishUnacknowledgedRootCompletions;
|
|
3424
3648
|
private recoverUnmatchedTurns;
|
|
3649
|
+
private claimOwnership;
|
|
3650
|
+
private releaseOwnershipAfterInitializationFailure;
|
|
3651
|
+
private assertWritableOwner;
|
|
3652
|
+
private fenceAfterSnapshotConflict;
|
|
3653
|
+
private isInterruptionDurable;
|
|
3425
3654
|
private notify;
|
|
3426
3655
|
private publishCommittedEvent;
|
|
3427
3656
|
private publishCommittedMessage;
|
|
3428
3657
|
private reportBackgroundError;
|
|
3658
|
+
private assertExpectedTreeRevision;
|
|
3429
3659
|
}
|
|
3430
3660
|
declare function createAgentActorController(options?: AgentControllerOptions): Promise<AgentActorController>;
|
|
3431
3661
|
|
|
@@ -3449,6 +3679,26 @@ declare class AgentRevisionConflictError extends Error {
|
|
|
3449
3679
|
readonly code: "revision_conflict";
|
|
3450
3680
|
constructor(expectedRevision: number, currentRevision: number);
|
|
3451
3681
|
}
|
|
3682
|
+
declare class AgentActorStoreConflictError extends Error {
|
|
3683
|
+
readonly expectedRevision: number;
|
|
3684
|
+
readonly currentRevision: number;
|
|
3685
|
+
readonly code: "actor_snapshot_conflict";
|
|
3686
|
+
constructor(expectedRevision: number, currentRevision: number, scope?: string);
|
|
3687
|
+
}
|
|
3688
|
+
declare class AgentOwnerConflictError extends Error {
|
|
3689
|
+
readonly ownerRuntimeId: string | undefined;
|
|
3690
|
+
readonly currentRevision: number;
|
|
3691
|
+
readonly localExecutionsAborted: boolean;
|
|
3692
|
+
readonly code: "actor_owner_conflict";
|
|
3693
|
+
readonly retryable: false;
|
|
3694
|
+
constructor(ownerRuntimeId: string | undefined, currentRevision: number, localExecutionsAborted: boolean);
|
|
3695
|
+
}
|
|
3696
|
+
declare class AgentOwnerUnknownError extends Error {
|
|
3697
|
+
readonly currentRevision: number;
|
|
3698
|
+
readonly code: "actor_owner_unknown";
|
|
3699
|
+
readonly retryable: false;
|
|
3700
|
+
constructor(currentRevision: number);
|
|
3701
|
+
}
|
|
3452
3702
|
type AgentControlErrorCode = 'actor_closed' | 'actor_not_found' | 'invalid_actor_path' | 'invalid_capabilities' | 'invalid_fork_turns' | 'invalid_forward_reference' | 'invalid_message' | 'invalid_task_name' | 'message_cycle_detected' | 'name_collision' | 'no_active_turn' | 'permission_denied' | 'unsupported_operation';
|
|
3453
3703
|
declare class AgentControlError extends Error {
|
|
3454
3704
|
readonly code: AgentControlErrorCode;
|
|
@@ -3465,5 +3715,5 @@ declare class AgentTurnScheduler {
|
|
|
3465
3715
|
restore(turnIds: readonly string[]): void;
|
|
3466
3716
|
}
|
|
3467
3717
|
|
|
3468
|
-
export { Agent, AgentActorClient, AgentActorController, AgentActorStore, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentBudgetPort, AgentCancellationUncertainError, AgentCapabilities, AgentControlError, AgentDataClassification, AgentDetail, AgentEvent, AgentExecutionKind, AgentExecutionResult, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentFollowupResult, AgentInterruptScope, AgentLimitReached, AgentLimitReachedError, AgentMailboxMessage, AgentManifest, AgentMessage, AgentMetadataValue, AgentMutationOptions, AgentOutput, AgentRevisionConflictError, AgentSpawnInput, AgentStartUncertainError, AgentTreeSnapshot, AgentTurnExecutor, AgentTurnRef, AgentTurnScheduler, CAPABILITY_CACHE_FILENAME, COMPACTED_HISTORY_RECOVERY_GUIDANCE, COMPACTION_PROTECTION_RATIO, COMPACTION_SUMMARY_PREFIX, CONTEXT_SAFETY_FLOOR_TOKENS, CONTEXT_SAFETY_RATIO, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, CompactionConfig, CompactionDetails, CompactionResult, CompactionUpdate, ConsoleTracingProcessor, ContextCapacityError, CreateAgentExecutorPlaneOptions, DEFAULT_COMPACTION_TRIGGER_PERCENT, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, ELECTRON_NODE_ENV_SCRUB_IMPORT, ELECTRON_RUN_AS_NODE_ENV, EnqueueInput, ExternalAgentProtocol, ExternalAgentRegistrationConflictError, FileExtensionStore, FileLearningCenterService, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, ImageResizeError, InstanceDiscoveryFs, InvariantId, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXFileInputArtifact, KodaXGoalEventType, KodaXGoalState, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXMediaError, KodaXMemoryOutcomeDigest, KodaXMessage, KodaXReasoningRequest, KodaXSessionArtifactLedgerEntry, KodaXSessionData, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXSessionStorage, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, LearnedAreaStore, LearnedCapabilityRecord,
|
|
3469
|
-
export type { AdmissionMetricsSnapshot, AgentControlErrorCode, AgentControllerOptions, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompactionCacheContext, CompactionTriggerSource, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLearningCenterServiceOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, EpisodeReviewDrainEligibility, EpisodeReviewDrainOptions, EpisodeReviewDrainResult, EpisodeReviewReceipt, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, GracefulCompactionCapacity, HandoffSignal, IdleYieldSnapshot, InternalNodeLaunch, InvokeLlmJudgeOptions, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability,
|
|
3718
|
+
export { Agent, AgentActorClient, AgentActorController, AgentActorOwner, AgentActorStore, AgentActorStoreConflictError, AgentBudgetExhausted, AgentBudgetExhaustedError, AgentBudgetPort, AgentCancellationUncertainError, AgentCapabilities, AgentControlError, AgentDataClassification, AgentDetail, AgentEvent, AgentExecutionKind, AgentExecutionResult, AgentExecutorFactory, AgentExecutorPlane, AgentExecutorPlaneStore, AgentFollowupResult, AgentInterruptScope, AgentLimitReached, AgentLimitReachedError, AgentMailboxMessage, AgentManifest, AgentMessage, AgentMetadataValue, AgentMutationOptions, AgentOutput, AgentOwnerConflictError, AgentOwnerUnknownError, AgentRevisionConflictError, AgentSpawnInput, AgentStartUncertainError, AgentTreeSnapshot, AgentTurnExecutor, AgentTurnRef, AgentTurnScheduler, CAPABILITY_CACHE_FILENAME, COMPACTED_HISTORY_RECOVERY_GUIDANCE, COMPACTION_PROTECTION_RATIO, COMPACTION_SUMMARY_PREFIX, CONTEXT_SAFETY_FLOOR_TOKENS, CONTEXT_SAFETY_RATIO, CORE_INVARIANTS, CapabilityCache, CapabilityCacheSource, CompactionConfig, CompactionDetails, CompactionResult, CompactionUpdate, ConsoleTracingProcessor, ContextCapacityError, CreateAgentExecutorPlaneOptions, DEFAULT_COMPACTION_TRIGGER_PERCENT, DEFAULT_CONTEXT_WINDOW, DEFAULT_IDLE_YIELD_MAX_ITERATIONS, DEFAULT_MICROCOMPACTION_CONFIG, DEFAULT_POST_COMPACT_CONFIG, DEFAULT_SUMMARY_PROMPT, DEFAULT_UPDATE_SUMMARY_PROMPT, DequeueFilter, DiscoveredInstance, ELECTRON_NODE_ENV_SCRUB_IMPORT, ELECTRON_RUN_AS_NODE_ENV, EnqueueInput, EpisodeReviewBranchChangedError, EpisodeReviewFailure, ExternalAgentProtocol, ExternalAgentRegistrationConflictError, FileExtensionStore, FileLearningCenterService, FileTracingProcessor, HARDENED_ENV_VARS, HARDENING_OPT_OUT_ENV, Handoff, ImageResizeError, InstanceDiscoveryFs, InvariantId, KODAX_FILE_MEDIA_TYPES, KODAX_IMAGE_MEDIA_TYPES, KODAX_VIDEO_MEDIA_TYPES, KodaXExtensionStore, KodaXExtensionStoreEntry, KodaXFileInputArtifact, KodaXGoalEventType, KodaXGoalState, KodaXImageBlock, KodaXImageInputArtifact, KodaXImageMediaType, KodaXInputArtifact, KodaXInputArtifactSource, KodaXJsonValue, KodaXMediaError, KodaXMemoryOutcomeDigest, KodaXMessage, KodaXReasoningRequest, KodaXSessionArtifactLedgerEntry, KodaXSessionData, KodaXSessionEntry, KodaXSessionGoalEntry, KodaXSessionLineage, KodaXSessionStorage, KodaXTokenUsage, KodaXToolDefinition, KodaXToolUseBlock, KodaXVideoInputArtifact, KodaXVideoMediaType, LearnedAreaStore, LearnedCapabilityRecord, LearnedCapabilityScope, LearningActionDriver, LearningEvent, LearningExplicitUserAuthority, LearningPage, LearningQuery, LearningSubscribeOptions, LearningSurfaceSnapshot, MAX_COMPACTION_TRIGGER_PERCENT, MAX_DIMENSION, MAX_ENTRYPOINT_BYTES, MAX_ENTRYPOINT_LINES, MAX_SKILL_MD_BYTES, MAX_SKILL_SUPPORT_FILE_BYTES, MEMORY_POLICY_VERSION, MIN_COMPACTION_TRIGGER_PERCENT, ManifestPatch, MemoryActionProposal, MemoryApplicability, MemoryApplyResult, MemoryBodySnapshot, MemoryContextIdentity, MemoryControlPlane, MemoryController, MemoryCuratorInput, MemoryEpisodeReviewResult, MemoryEvent, MemoryGovernanceReport, MemoryItemRef, MemoryLifecycleOperationResult, MemoryPack, MemoryPackInput, MemoryRefFilter, MemoryRejectResult, MemoryReviewInput, MemoryReviewModelInput, MemoryReviewPlan, MemoryReviewRunner, MessagePriority, MessageQueue, PASTE_TMP_DIR_ENV, PASTE_TMP_TTL_MS, POST_COMPACT_MAX_TOKENS_PER_FILE, POST_COMPACT_TOKEN_BUDGET, PROTECTED_TOOL_NAMES, QualityInvariant, QueuedInputArtifact, QueuedInputArtifactError, QueuedMessage, ResolvedSkillSource, RunnerToolCall, RunnerToolResult, SessionMeta, SessionStateSnapshot, Span, StateWriter, StateWriterFs, StopHookContext, StopHookFn, StopHookResult, TARGET_RAW_SIZE_BYTES, Trace, WorkflowAbortError, WorkflowAgentBackend, WorkflowApi, WorkflowBudgetError, WorkflowEvent, WorkflowLimitError, WorkflowLimits, WorkflowLogEvent, WorkflowModule, WorkflowOutcome, WorkflowRunState, WorkflowScriptExecutionError, WorkflowScriptManifest, WorkflowTaskFailedError, WorkflowTaskResult, YIELD_TOOL_NAMES, _emitSpanEnd, _emitSpanStart, _emitTraceEnd, _getRegisteredProcessors, _resetAdmissionMetrics, _resetInvariantRegistry, _resetMessageQueueForTests, addTracingProcessor, appendGoalEntry, appendMemoryClientNotice, appendMemoryOutcomeDigest, appendMemoryReviewReceipt, applyManifestPatch, applyProcessHardening, applySkillLearningProposal, approveStoredLearningProposal, bootstrapTeamMode, buildCompactionCacheInstruction, buildCompactionPromptSnapshot, buildFileContentMessages, buildOtherInstancesPromptBlock, buildPostCompactAttachments, buildRecoverySeed, buildWorkflowOutcome, calculateContextSafetyMargin, calculateMaxContextInputTokens, canMarkCreatedByAgent, captureEpisodeReviewBranchEpoch, claimEpisodeReview, cleanupRegisteredManagedChildren, clearCapabilityCache, collectUserQueryLedger, commitEpisodeReviewAction, commitEpisodeReviewDecision, compact, completeEpisodeReview, completeFencedEpisodeReview, composeIdleYieldUserMessage, composePatches, computeSkillConsumerImpact, countLastAssistantToolCalls, createAgentActorController, createAgentExecutorPlane, createExtensionStore, createFileArtifactFromPath, createImageArtifactFromPath, createLearnedSkillActionDriver, createLearningCenterService, createLlmJudgedStopHook, createMemoryAgentExecutorPlaneStore, createMemoryControlPlane, createReferenceAgentExecutorFactory, createRestrictedWorkflowModule, createVideoArtifactFromPath, createWorkflowRuntime, decideSkillGovernance, deferEpisodeReview, detectHandoffSignal, detectIdleYield, discardFencedEpisodeReview, drainPendingEpisodeReviews, editDistance, emitHandoffSpan, emitKodaXDiagnostic, enqueueWithArtifacts, evidenceTrail, exceedsContextCapacity, failEpisodeReviewApply, failEpisodeReviewAttempt, fencePendingEpisodeReviewsForSession, finalOwner, findFuzzyToolMatch, formatKodaXDiagnostic, freezeEpisodeReviewInput, generateSummary, getActiveMemoryOutcomeReviewIds, getActiveTeamModeWriter, getAdmissionMetricsSnapshot, getCachedRejectedEfforts, getCapabilityCacheFile, getInvariant, getLearnedExtensionToolName, getMessageQueue, getModelInputCapabilities, gracefulCompactDegradation, handoffLegality, hashCwd, inferImageMediaType, inferVideoMediaType, injectPostCompactAttachments, inspectEpisodeReviewJob, invokeLlmJudge, isAdmissionDebugEnabled, isAutoManagedMemoryFile, isChildProcessExited, isEmptyLikeSummary, isGoalEntry, isIdleYieldEnabled, isLearnedExtensionCommandAllowed, killChildProcessTree, killChildProcessTreeSync, killPidTree, killPidTreeSync, listPendingEpisodeReviews, listRegisteredInvariants, loadCapabilityCache, maybeDrainMidTurn, mergeUserQueryLedger, microcompact, midTurnDrainPriority, migrateLegacyLearnedSkillsForProject, needsCompaction, normalizeCompactionConfig, normalizePastedImage, normalizeRecoveryPrompt, normalizeWorkflowLimits, parseMemoryFile, parseMemoryType, parseMemoryTypeFromFilename, parseScalarFields, parseUserQueryLedger, persistCompactedSessionHistory, persistImageAsBlock, persistPendingEpisodeReview, prepareInternalNodeLaunch, projectLearningProposals, prunePasteTmpDir, readAndNormalizeClipboardImage, readClipboardImage, readLatestGoalFromBranch, readLatestGoalState, readLearningProposalStore, readSkillTrustLedger, readSkillUsageLedger, recordCompletedTurnLearning, recordProceduralLearning, recordRejectedEffort, recordSkillUsage, registerCoreInvariants, registerInvariant, registerManagedChildProcess, renderUserQueryLedger, replaceSystemMessage, resetCapabilityCacheMemoForTesting, resolveCompactionPolicy, resolveContextWindow, resolveEffectiveInvariants, resolveLearningProposalStore, resolveMemoryEntrypoint, resolveMemoryRoot, resolveRequiredInvariants, resolveScopedMemoryRoot, resolveSkillSnapshotLocation, resolveSkillTrustLedger, resolveSkillUsageLedger, rewindPendingEpisodeReviews, rewindPendingEpisodeReviewsForSession, runFanOut, runRestrictedWorkflowScript, runWithIdleYield, runWorkflow, sanitizeProjectKey, sanitizePromptSafeMemoryClaim, serializeConversation, setActiveTeamModeWriter, setKodaXDiagnosticSink, setTracingProcessors, shouldCompact, shutdownTracing, stripHardenedEnvVars, triageProceduralLearning, truncateEntrypointContent, tryGitRemote, updateActiveTeamMode, updateLearningProposalStatus, updateSkillTrustLedger, upsertLearningProposal, validateInputArtifactsForModel, validateRestrictedWorkflowSource, waitForChildProcessExit, waitForWakeEvent, withEpisodeReviewClaimAuthority, withLearningFileLock as withKodaXFileLock, withPendingEpisodeReviewSessionFence };
|
|
3719
|
+
export type { AdmissionMetricsSnapshot, AgentControlErrorCode, AgentControllerOptions, ApproveStoredLearningProposalOptions, BuildWorkflowOutcomeInput, CompactionCacheContext, CompactionProviderObserver, CompactionProviderRequest, CompactionProviderRouting, CompactionTriggerSource, CompletedTurnLearningCandidate, CompletedTurnLearningInput, CompletedTurnLearningRecordResult, ConsoleTracingProcessorOptions, ContextCapacityInput, CreateFileArtifactFromPathOptions, CreateImageArtifactFromPathOptions, CreateLearnedSkillActionDriverOptions, CreateLearningCenterServiceOptions, CreateLlmJudgedStopHookOptions, CreateMemoryControlPlaneOptions, CreateVideoArtifactFromPathOptions, CreateWorkflowRuntimeOptions, DiscardedLearningReport, DurableMemoryScope, EnqueueWithArtifactsInput, EntrypointTruncation, EnvelopeAggregateCapacityContext, EnvelopeAggregateEnforcer, EpisodeReviewActionInput, EpisodeReviewActionReceipt, EpisodeReviewClaim, EpisodeReviewDecision, EpisodeReviewDecisionInput, EpisodeReviewDrainEligibility, EpisodeReviewDrainOptions, EpisodeReviewDrainResult, EpisodeReviewFailureKind, EpisodeReviewInputCheckpoint, EpisodeReviewInputSpec, EpisodeReviewJobSnapshot, EpisodeReviewJobState, EpisodeReviewJobStatus, EpisodeReviewReceipt, FanOutOutcome, FanOutProgressEvent, FileTracingProcessorOptions, GetModelInputCapabilitiesInput, GovernedSkillSource, GracefulCompactionCapacity, HandoffSignal, IdleYieldSnapshot, InternalNodeLaunch, InvokeLlmJudgeOptions, KodaXCompactionPromptSection, KodaXCompactionPromptSnapshot, KodaXCompactionPromptVariant, KodaXDiagnostic, KodaXDiagnosticLevel, KodaXDiagnosticSink, KodaXInputCapabilityStatus, KodaXMediaErrorCode, KodaXMediaErrorOptions, KodaXModalityInputCapability, LearningCandidate, LearningCenterService, LearningIntakeRecordResult, LearningProposalProjection, LearningProposalReviewStatus, LearningProposalStoreReadResult, LearningRisk, LearningUserLabel, LegacyLearnedSkillMigrationResult, LlmJudgeFailureReason, ManagedChildCleanupSummary, ManagedChildProcessMetadata, ManagedChildRegistrationOptions, MaybeDrainMidTurnInput, MemoryExecutionContext, MemoryFrontmatter, MemoryHandoffMetadata, MemoryLearningHandoff, MemoryType, MemoryWriteOrigin, MicrocompactionConfig, ModelInputCapabilities, NormalizeImageOptions, NormalizedImage, ParsedMemoryFile, PendingEpisodeReview, PendingEpisodeReviewV1, PendingEpisodeReviewV2, PersistCompactedSessionHistoryInput, PersistImageAsBlockOptions, PostCompactAttachments, PostCompactConfig, PrepareInternalNodeLaunchOptions, ProceduralLearningDestination, ProceduralLearningInput, ProceduralLearningResult, ProcessTreeKillOptions, ReasoningLearningHandoff, RecordProceduralLearningInput, RecoverySeed, RecoverySeedInput, ReferenceAgentExecutorFactoryOptions, RenderOptions, ResolvedCompactionPolicy, RestrictedWorkflowModuleInput, ReviewableLearningProposal, RunFanOutOptions, RunFanOutResult, RunRestrictedWorkflowScriptOptions, RunWithIdleYieldOptions, RunWithIdleYieldRunResult, ShouldCompactInput, SkillConsumerImpact, SkillConsumerImpactScanInput, SkillGovernanceAction, SkillGovernanceDecision, SkillGovernanceInput, SkillGovernanceMode, SkillLearningApplyInput, SkillLearningProposal, SkillMutationApplyResult, SkillMutationChange, SkillOwnership, SkillSnapshotLocation, SkillTrustLedgerReadResult, SkillTrustRecord, SkillTrustState, SkillTrustUpdateInput, SkillTrustUpdateResult, SkillUsageEvent, SkillUsageEventInput, SkillUsageLedgerReadResult, SkillUsageRecord, SkillUsageRecordResult, SkillWriteOrigin, StoredLearningApplyPlan, StoredLearningApprovalResult, StoredLearningProposal, StoredSkillLearningApplyPlan, TeamModeBootstrapOptions, TeamModeHandle, TraceOnlyLearningReport, TracingProcessor, UserQueryLedgerEntry, ValidateInputArtifactsOptions, ValidateRestrictedWorkflowSourceOptions, WaitForWakeEventOptions, WakeEvent, WorkflowLearningHandoff, WorkflowLearningSuggestedAction, WorkflowModuleResolver, WorkflowResultCache, WorkflowRunOutcome, WorkflowRuntimeHandle };
|