@kodax-ai/kodax 0.7.77 → 0.7.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3651 -3201
- package/README.md +317 -110
- package/README_CN.md +255 -91
- package/config-templates/config.example.jsonc +124 -32
- package/config-templates/integrations/a2a.example.jsonc +23 -7
- package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +2 -1
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +4 -3
- package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/compare-runs.js +4 -3
- package/dist/builtin/skill-creator/scripts/generate-review.js +2 -1
- package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/grade-evals.js +4 -3
- package/dist/builtin/skill-creator/scripts/improve-description.js +2 -1
- package/dist/builtin/skill-creator/scripts/init-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/init-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/install-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/install-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/package-skill.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/package-skill.js +4 -3
- package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/quick-validate.js +4 -3
- package/dist/builtin/skill-creator/scripts/run-eval.d.ts +1 -0
- package/dist/builtin/skill-creator/scripts/run-eval.js +4 -3
- package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
- package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +2 -1
- package/dist/builtin/skill-creator/scripts/utils.d.ts +3 -0
- package/dist/builtin/skill-creator/scripts/utils.js +5 -1
- package/dist/chunks/agent-V4AC5JZD.js +2 -0
- package/dist/chunks/argument-completer-ZPC2MLES.js +2 -0
- package/dist/chunks/chunk-5BNQXXGY.js +1 -0
- package/dist/chunks/{chunk-EH7AOMJ7.js → chunk-67THZRM6.js} +1 -1
- package/dist/chunks/chunk-6GVQDQTQ.js +292 -0
- package/dist/chunks/chunk-B6UY3VHV.js +348 -0
- package/dist/chunks/{chunk-HORNWBYR.js → chunk-BBOVVDQJ.js} +1 -1
- package/dist/chunks/chunk-CR2IF7VF.js +30 -0
- package/dist/chunks/{chunk-FNW2XUL5.js → chunk-CXHEZY5G.js} +1 -1
- package/dist/chunks/chunk-EDZ4QILG.js +266 -0
- package/dist/chunks/chunk-GEECPO2H.js +218 -0
- package/dist/chunks/chunk-H5LLM7DB.js +89 -0
- package/dist/chunks/chunk-KLWP7POA.js +467 -0
- package/dist/chunks/{chunk-XSA37BVM.js → chunk-M4N2JZTZ.js} +2 -2
- package/dist/chunks/chunk-OWQT3FTE.js +5 -0
- package/dist/chunks/chunk-Q4M7DJOD.js +319 -0
- package/dist/chunks/{chunk-3DD4QEBH.js → chunk-QCZLCLFL.js} +10 -10
- package/dist/chunks/chunk-RQPMGRTR.js +810 -0
- package/dist/chunks/chunk-SG6P4SZS.js +123 -0
- package/dist/chunks/chunk-TSTVAU5E.js +386 -0
- package/dist/chunks/chunk-ZCZZUE5E.js +662 -0
- package/dist/chunks/compaction-config-AEUGVROL.js +2 -0
- package/dist/chunks/{construction-bootstrap-RPRL3L7R.js → construction-bootstrap-K3ZGEN5N.js} +1 -1
- package/dist/chunks/dist-GFJFRPAV.js +2 -0
- package/dist/chunks/{dist-FDSOIR35.js → dist-JMO47GJV.js} +1 -1
- package/dist/chunks/host-23K2Q6RZ.js +2 -0
- package/dist/chunks/run-manager-PGIR6ITA.js +2 -0
- package/dist/chunks/utils-6LEKJPQN.js +2 -0
- package/dist/index.d.ts +22 -21
- package/dist/index.js +6 -6
- package/dist/kodax_bootstrap.js +2 -1
- package/dist/kodax_cli.js +2225 -1468
- package/dist/kodax_resume.js +570 -34
- package/dist/provider-capabilities.json +85 -50
- package/dist/runtime-worker.js +2076 -1343
- package/dist/sandbox-workspace-session.js +829 -0
- package/dist/sdk-a2a.d.ts +24 -18
- package/dist/sdk-a2a.js +8 -8
- package/dist/sdk-agent.d.ts +315 -168
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +42 -205
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +3 -3
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +7 -6
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +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 +77 -36
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +406 -163
- 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 -9
- 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 +283 -18
- package/dist/types-chunks/{base.d-4e74xDdy.d.ts → base.d-DxG0m09Z.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-pZdu6qt7.d.ts → bash-prefix-extractor.d-CNSidpmv.d.ts} +149 -10
- package/dist/types-chunks/{capability-learning.d-CVsdHw4j.d.ts → capability-learning.d-iPSiAmc_.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-CxCm1KZz.d.ts → capsule.d-B3q98pLQ.d.ts} +9 -7
- package/dist/types-chunks/{types.d-RdWRfUEs.d.ts → controller.d-RGV7Pjv9.d.ts} +785 -8
- package/dist/types-chunks/{guardrail.d-B0PwAZVR.d.ts → guardrail.d-1NLSFTyN.d.ts} +310 -70
- package/dist/types-chunks/{history-retrieval.d-B__aEN62.d.ts → history-retrieval.d-BAegI14A.d.ts} +16 -3
- package/dist/types-chunks/{integration-config.d-ojG4swOP.d.ts → integration-config.d-BNowXE8k.d.ts} +23 -8
- package/dist/types-chunks/{oauth-login.d-Bgb4rdLN.d.ts → oauth-login.d-6i-vidxv.d.ts} +6 -2
- package/dist/types-chunks/{public-api.d--fF88JrC.d.ts → public-api.d-BpJhHoa7.d.ts} +366 -28
- package/dist/types-chunks/{commands.d-BccESAMV.d.ts → repl.d-CZ12Ow3X.d.ts} +89 -78
- package/dist/types-chunks/{side-query.d-5JvXhuOZ.d.ts → resolver.d-C9IW4fmU.d.ts} +7 -67
- package/dist/types-chunks/{run-manager.d-B47hIqnI.d.ts → run-manager.d-CX3AUocA.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-CLWf8Adb.d.ts → sdk-session-B3cfJKqF.d.ts} +3 -3
- package/dist/types-chunks/side-query.d-CP1LiRiH.d.ts +83 -0
- package/dist/types-chunks/{types-LanCEDj8.d.ts → types-Bf3Y3mW-.d.ts} +42 -3
- package/dist/types-chunks/{types.d-CODuyyqy.d.ts → types.d-BZ9oXvTV.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-DCsKM8aT.d.ts → types.d-C0_rn--1.d.ts} +4 -4
- package/dist/types-chunks/{types.d-DIpZJKUl.d.ts → types.d-CgrXrFrq.d.ts} +16 -2
- package/dist/types-chunks/{utils.d-CDduqbFw.d.ts → utils.d-CGpHavsU.d.ts} +32 -8
- package/docs/SDK_EMBEDDER_GUIDE.md +1117 -227
- package/package.json +11 -1
- package/dist/chunks/agent-NGSWFE73.js +0 -2
- package/dist/chunks/argument-completer-WGGZPEEO.js +0 -2
- package/dist/chunks/chunk-27QLRH3D.js +0 -5
- package/dist/chunks/chunk-2MQPVY6P.js +0 -770
- package/dist/chunks/chunk-6WAPVAGQ.js +0 -74
- package/dist/chunks/chunk-AOENDSVN.js +0 -448
- package/dist/chunks/chunk-FSXI4MAV.js +0 -78
- package/dist/chunks/chunk-HV2GMZUZ.js +0 -343
- package/dist/chunks/chunk-IQT4RPCE.js +0 -46
- package/dist/chunks/chunk-JS2BHGJP.js +0 -158
- package/dist/chunks/chunk-OAMKECRG.js +0 -381
- package/dist/chunks/chunk-ON2WG2LG.js +0 -622
- package/dist/chunks/chunk-RUGAAHTF.js +0 -321
- package/dist/chunks/chunk-TGCG7U2W.js +0 -37
- package/dist/chunks/compaction-config-BE7VYWH6.js +0 -2
- package/dist/chunks/dist-ZZBNVTKU.js +0 -2
- package/dist/chunks/host-QAKQVC4A.js +0 -2
- package/dist/chunks/run-manager-N4UFWA2D.js +0 -2
- package/dist/chunks/utils-AUHCI4D5.js +0 -2
- package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +0 -91
- package/dist/types-chunks/guardrail.d-CJx9RRd3.d.ts +0 -156
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as KodaXProviderConfig, k as KodaXMessage, a2 as KodaXToolDefinition, I as KodaXReasoningRequest, z as KodaXProviderStreamOptions, O as KodaXStreamResult, a8 as KodaXVerifyCredentialResult, l as KodaXModelDescriptor, q as KodaXProviderCapabilityProfile, C as KodaXReasoningCapability, H as KodaXReasoningProfile, n as KodaXNormalizedReasoningRequest, aa as KodaXWireReasoningEffort } from './types.d-CgrXrFrq.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Retry-After header parsing — FEATURE_130 (v0.7.36).
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a0 as KodaXTokenUsage, k as KodaXMessage, a1 as KodaXToolDefinition, a9 as KodaXWireReasoningEffort, U as KodaXTaskRoutingDecision, V as KodaXTaskType, W as KodaXTaskWorkIntent, Q as KodaXTaskComplexity, L as KodaXRiskLevel, h as KodaXHarnessProfile, f as KodaXExecutionMode, b as KodaXChildFanoutClass, F as KodaXReasoningMode, J as KodaXReviewScale } from './types.d-DIpZJKUl.js';
|
|
3
|
-
import { d as SkillDynamicContextExecutor, I as ISkillRegistry } from './types.d-DCQVBqVn.js';
|
|
1
|
+
import { bI as KodaXGoalState, ae as AgentMessage, eq as StopHookFn, c1 as KodaXSessionLineage, o as AgentActorStore, aI as AgentTurnExecutor, x as AgentBudgetPort, j as AgentActorOwner, D as AgentControllerHealth, h as AgentActorClient, T as AgentExecutionResult, $ as AgentExecutorPlaneBinding, bO as KodaXJsonValue, bC as KodaXExtensionSessionRecord, f as Agent, eS as WorkflowIsolation, bD as KodaXExtensionSessionState, bU as KodaXSessionArtifactLedgerEntry, ea as SessionErrorMetadata, c9 as KodaXSessionScope, ca as KodaXSessionStorage, bp as GuardrailPermissionIntent, db as MemoryContextIdentity, dn as MemoryPack, aQ as AskUserQuestionOptions, aM as AskUserAnswer, aO as AskUserMultiOptions, eP as WorkflowEventCorrelation, a_ as CompactionUpdate, f4 as WorkflowProcessEvent, eO as WorkflowEvent, dC as MemoryReviewPlan, bR as KodaXMemoryOutcomeDigest, bl as Guardrail, b5 as DiscoveredInstance, bM as KodaXInputArtifact, dD as MemoryReviewRunner, eG as UnifiedLearningReviewRunner } from './controller.d-RGV7Pjv9.js';
|
|
4
2
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation, WorkspaceSymbol, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-protocol';
|
|
3
|
+
import { a1 as KodaXTokenUsage, k as KodaXMessage, a2 as KodaXToolDefinition, aa as KodaXWireReasoningEffort, V as KodaXTaskRoutingDecision, W as KodaXTaskType, X as KodaXTaskWorkIntent, R as KodaXTaskComplexity, M as KodaXRiskLevel, h as KodaXHarnessProfile, f as KodaXExecutionMode, b as KodaXChildFanoutClass, G as KodaXReasoningMode, L as KodaXReviewScale } from './types.d-CgrXrFrq.js';
|
|
4
|
+
import { d as SkillDynamicContextExecutor, I as ISkillRegistry } from './types.d-BbtGlKZu.js';
|
|
5
5
|
import { K as KodaXLlmTimeoutConfig, a as CostTracker } from './cost-tracker.d-BeaenODW.js';
|
|
6
|
-
import { t as MemoryRecallRunner } from './types-
|
|
6
|
+
import { t as MemoryRecallRunner } from './types-Bf3Y3mW-.js';
|
|
7
7
|
import { C as CapabilityKind, f as CapabilitySearchSnapshot, b as CapabilityResult } from './capability.d-K664nHOS.js';
|
|
8
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
8
|
+
import { K as KodaXBaseProvider } from './base.d-DxG0m09Z.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* FEATURE_192 v0.7.44 Phase C — Goal-tools execution context.
|
|
@@ -393,6 +393,7 @@ declare function workflowStartOutcomeConsumesTurn(input: {
|
|
|
393
393
|
interface LspServerLaunch {
|
|
394
394
|
readonly command: string;
|
|
395
395
|
readonly args: readonly string[];
|
|
396
|
+
readonly kind?: 'javascript';
|
|
396
397
|
readonly initializationOptions?: Record<string, unknown>;
|
|
397
398
|
}
|
|
398
399
|
interface DiscoverContext {
|
|
@@ -837,6 +838,9 @@ interface CodingActorSessionOptions {
|
|
|
837
838
|
readonly store?: AgentActorStore;
|
|
838
839
|
readonly executor?: AgentTurnExecutor;
|
|
839
840
|
readonly budget?: AgentBudgetPort;
|
|
841
|
+
readonly owner?: AgentActorOwner;
|
|
842
|
+
readonly isOwnerAlive?: (owner: AgentActorOwner) => boolean | Promise<boolean>;
|
|
843
|
+
readonly onHealthChanged?: (health: AgentControllerHealth) => void;
|
|
840
844
|
}
|
|
841
845
|
/** One Runtime-owned Actor tree for one KodaX session. */
|
|
842
846
|
declare class CodingActorSession {
|
|
@@ -849,6 +853,9 @@ declare class CodingActorSession {
|
|
|
849
853
|
initialize(): Promise<void>;
|
|
850
854
|
attach(parentCtx: KodaXToolExecutionContext, options: KodaXOptions, callerPath?: string): AgentActorClient;
|
|
851
855
|
rootControl(): AgentActorClient;
|
|
856
|
+
health(): AgentControllerHealth;
|
|
857
|
+
ownerId(): string | undefined;
|
|
858
|
+
ownsDurableFence(): boolean;
|
|
852
859
|
createWorkflowOwner(parentPath: string, runId: string): Promise<AgentActorClient>;
|
|
853
860
|
workflowOwnerSignal(ownerPath: string): AbortSignal;
|
|
854
861
|
settleWorkflowOwner(ownerPath: string, state: 'completed' | 'failed' | 'interrupted', result: AgentExecutionResult & {
|
|
@@ -859,6 +866,8 @@ declare class CodingActorSession {
|
|
|
859
866
|
registerTurnExecutor(key: string, executor: AgentTurnExecutor): () => void;
|
|
860
867
|
waitForAgentCapacity(signal?: AbortSignal): Promise<boolean>;
|
|
861
868
|
close(reason?: string): Promise<void>;
|
|
869
|
+
quiesce(reason?: string): Promise<void>;
|
|
870
|
+
disposeAfterStoreRemoval(reason?: string): void;
|
|
862
871
|
}
|
|
863
872
|
declare function createLocalCodingActorControl(parentCtx: KodaXToolExecutionContext, options: KodaXOptions): AgentActorClient;
|
|
864
873
|
/** Runtime adapter for detached external Actor turns. The executor plane stays internal. */
|
|
@@ -871,7 +880,7 @@ declare function createExternalActorTurnExecutor(binding: AgentExecutorPlaneBind
|
|
|
871
880
|
* configure / install / troubleshoot KodaX?" questions. Pure data + a
|
|
872
881
|
* deterministic resolver — no RAG, no vector store, no network fetch.
|
|
873
882
|
*/
|
|
874
|
-
type KodaXManualTopicId = 'overview' | 'license' | 'install' | 'quickstart' | 'providers' | 'custom-providers' | 'config' | 'permissions' | 'commands' | 'tools' | 'agents' | 'skills' | 'extensions' | 'mcp' | 'a2a' | 'repo-intelligence' | 'sessions' | 'compaction' | 'memory' | 'doctor' | 'sdk' | 'troubleshooting';
|
|
883
|
+
type KodaXManualTopicId = 'overview' | 'license' | 'install' | 'quickstart' | 'providers' | 'custom-providers' | 'config' | 'permissions' | 'sandbox' | 'commands' | 'tools' | 'agents' | 'skills' | 'extensions' | 'mcp' | 'a2a' | 'repo-intelligence' | 'sessions' | 'compaction' | 'memory' | 'doctor' | 'sdk' | 'troubleshooting';
|
|
875
884
|
/** A pointer to the code/doc the topic is derived from (for traceability). */
|
|
876
885
|
interface KodaXManualSource {
|
|
877
886
|
readonly label: string;
|
|
@@ -1687,6 +1696,25 @@ interface KodaXWorkflowAgentDigestEvent {
|
|
|
1687
1696
|
interface KodaXToolEventMeta extends KodaXActivityEventMeta {
|
|
1688
1697
|
readonly toolId?: string;
|
|
1689
1698
|
}
|
|
1699
|
+
type KodaXShellSandboxBackend = 'windows-restricted-user' | 'macos-seatbelt' | 'linux-bubblewrap' | 'unsupported';
|
|
1700
|
+
type KodaXShellSandboxObservation = {
|
|
1701
|
+
readonly version: 1;
|
|
1702
|
+
readonly state: 'applied';
|
|
1703
|
+
readonly backend: KodaXShellSandboxBackend;
|
|
1704
|
+
readonly policyId: 'kodax-workspace-shell-v1';
|
|
1705
|
+
} | {
|
|
1706
|
+
readonly version: 1;
|
|
1707
|
+
readonly state: 'fallback';
|
|
1708
|
+
readonly reason: 'not_ready' | 'prepare_failed' | 'backend_failed';
|
|
1709
|
+
readonly execution: 'normal_permission_policy';
|
|
1710
|
+
} | {
|
|
1711
|
+
readonly version: 1;
|
|
1712
|
+
readonly state: 'not_selected';
|
|
1713
|
+
};
|
|
1714
|
+
interface KodaXToolSandboxObservationUpdate {
|
|
1715
|
+
readonly id: string;
|
|
1716
|
+
readonly observation: KodaXShellSandboxObservation;
|
|
1717
|
+
}
|
|
1690
1718
|
interface KodaXContextCompactionFinishedEvent extends Partial<KodaXLiveEventMeta> {
|
|
1691
1719
|
readonly source: 'manual' | 'automatic_threshold' | 'physical_capacity';
|
|
1692
1720
|
readonly tokensBefore: number;
|
|
@@ -1806,6 +1834,11 @@ interface KodaXEvents {
|
|
|
1806
1834
|
id: string;
|
|
1807
1835
|
message: string;
|
|
1808
1836
|
}, meta?: KodaXToolEventMeta) => void;
|
|
1837
|
+
/**
|
|
1838
|
+
* Execution metadata for professional hosts. REPL history intentionally does
|
|
1839
|
+
* not render this internal containment state.
|
|
1840
|
+
*/
|
|
1841
|
+
onToolSandboxObservation?: (update: KodaXToolSandboxObservationUpdate, meta?: KodaXToolEventMeta) => void;
|
|
1809
1842
|
onToolInputDelta?: (toolName: string, partialJson: string, meta?: KodaXToolEventMeta) => void;
|
|
1810
1843
|
onStreamEnd?: (meta?: KodaXActivityEventMeta) => void;
|
|
1811
1844
|
/** Fired once when a child-agent run fully leaves the child executor. */
|
|
@@ -2035,12 +2068,17 @@ interface KodaXEvents {
|
|
|
2035
2068
|
/** Semantic memory review plan produced from explicit user feedback. */
|
|
2036
2069
|
onMemoryReview?: (plan: MemoryReviewPlan) => void;
|
|
2037
2070
|
onMemoryNotice?: (notice: {
|
|
2071
|
+
readonly sessionId?: string;
|
|
2038
2072
|
readonly episodeId: string;
|
|
2039
2073
|
readonly summaries: readonly string[];
|
|
2040
2074
|
readonly proposalIds: readonly string[];
|
|
2041
2075
|
}) => void;
|
|
2042
|
-
onMemoryOutcomeDigest?: (digest: KodaXMemoryOutcomeDigest
|
|
2076
|
+
onMemoryOutcomeDigest?: (digest: KodaXMemoryOutcomeDigest, metadata?: {
|
|
2077
|
+
readonly jobId?: string;
|
|
2078
|
+
}) => void;
|
|
2043
2079
|
onMemoryReviewReceipt?: (receipt: {
|
|
2080
|
+
readonly sessionId?: string;
|
|
2081
|
+
readonly jobId?: string;
|
|
2044
2082
|
readonly reviewKey: string;
|
|
2045
2083
|
readonly proposalIds: readonly string[];
|
|
2046
2084
|
readonly completedAt: string;
|
|
@@ -2093,7 +2131,10 @@ interface KodaXSessionOptions {
|
|
|
2093
2131
|
* NOT also snapshot the session: `saveSessionSnapshot` early-returns so
|
|
2094
2132
|
* the runner's flat full-rewrite `storage.save` can never race / clobber
|
|
2095
2133
|
* the host's richer incremental writes (which regressed `activeEntryId`
|
|
2096
|
-
* to the first round on resume).
|
|
2134
|
+
* to the first round on resume). Context-silent protocol facts may use the
|
|
2135
|
+
* host's optional atomic `storage.mutateLineage`; this never writes a stale
|
|
2136
|
+
* full session snapshot. A host using F263 durable Memory review facts must
|
|
2137
|
+
* provide that capability; those writes fail closed when it is absent.
|
|
2097
2138
|
*
|
|
2098
2139
|
* `storage` is still consulted for LOAD (resume / `resolveInitialMessages`
|
|
2099
2140
|
* tier 2). When absent (print CLI, ACP, SDK headless), the runner remains
|
|
@@ -2729,7 +2770,41 @@ interface KodaXShellExecutionContract {
|
|
|
2729
2770
|
};
|
|
2730
2771
|
readonly probeTimeoutMs?: number;
|
|
2731
2772
|
}
|
|
2773
|
+
interface KodaXShellSandboxPrepareInput {
|
|
2774
|
+
readonly toolCallId?: string;
|
|
2775
|
+
readonly toolInput: Readonly<Record<string, unknown>>;
|
|
2776
|
+
readonly command: string;
|
|
2777
|
+
readonly executable?: string;
|
|
2778
|
+
readonly args?: readonly string[];
|
|
2779
|
+
readonly cwd: string;
|
|
2780
|
+
readonly env: NodeJS.ProcessEnv;
|
|
2781
|
+
readonly windowsVerbatimArguments?: boolean;
|
|
2782
|
+
/** Caller cancellation while waiting for sandbox admission/preparation. */
|
|
2783
|
+
readonly signal?: AbortSignal;
|
|
2784
|
+
/** Absolute wall-clock deadline shared with the command timeout. */
|
|
2785
|
+
readonly deadlineAt?: number;
|
|
2786
|
+
readonly reportObservation?: (observation: KodaXShellSandboxObservation) => void;
|
|
2787
|
+
}
|
|
2788
|
+
interface KodaXPreparedShellSandboxInvocation {
|
|
2789
|
+
readonly executable: string;
|
|
2790
|
+
readonly args: readonly string[];
|
|
2791
|
+
readonly env: NodeJS.ProcessEnv;
|
|
2792
|
+
readonly windowsVerbatimArguments?: boolean;
|
|
2793
|
+
cleanup(): Promise<KodaXShellSandboxObservation | undefined>;
|
|
2794
|
+
}
|
|
2795
|
+
/** Runtime-owned OS sandbox broker for selected concrete shell calls. */
|
|
2796
|
+
interface KodaXShellSandbox {
|
|
2797
|
+
prepare(input: KodaXShellSandboxPrepareInput): Promise<KodaXPreparedShellSandboxInvocation | undefined>;
|
|
2798
|
+
}
|
|
2732
2799
|
interface KodaXContextOptions {
|
|
2800
|
+
/**
|
|
2801
|
+
* Runtime-authenticated authority for permission review. Child runtimes must
|
|
2802
|
+
* preserve the root request and add delegation metadata instead of treating
|
|
2803
|
+
* their generated briefing as a new user authorization.
|
|
2804
|
+
*/
|
|
2805
|
+
permissionIntent?: GuardrailPermissionIntent;
|
|
2806
|
+
/** Runtime-owner config home used by Memory, review inbox, and Learned Area routing. */
|
|
2807
|
+
configHome?: string;
|
|
2733
2808
|
/** Runtime-internal shared work ledger inherited by every descendant Agent run. */
|
|
2734
2809
|
managedWorkBudget?: KodaXManagedWorkBudget;
|
|
2735
2810
|
/** FEATURE_260 runtime-owned identity used for scoped memory reads. */
|
|
@@ -2787,6 +2862,8 @@ interface KodaXContextOptions {
|
|
|
2787
2862
|
executionCwd?: string;
|
|
2788
2863
|
/** Optional host-owned shell/environment resolution policy for command tools. */
|
|
2789
2864
|
shellExecution?: KodaXShellExecutionContract;
|
|
2865
|
+
/** Runtime-owned OS sandbox broker; never accepted from serialized model input. */
|
|
2866
|
+
shellSandbox?: KodaXShellSandbox;
|
|
2790
2867
|
/** Fail-closed host policy applied to every concrete file a read tool opens. */
|
|
2791
2868
|
assertReadablePath?: (candidate: string) => void;
|
|
2792
2869
|
/**
|
|
@@ -2827,6 +2904,30 @@ interface KodaXContextOptions {
|
|
|
2827
2904
|
skillsPrompt?: string;
|
|
2828
2905
|
/** Optional run-scoped registry used to pin and restrict Skill invocation. */
|
|
2829
2906
|
skillRegistry?: ISkillRegistry;
|
|
2907
|
+
/** Runtime-owned complete formal-name inventory used to prevent learned Skill shadowing. */
|
|
2908
|
+
protectedFormalSkillNames?: readonly string[];
|
|
2909
|
+
/**
|
|
2910
|
+
* Opaque root-run binding used to correlate learned Skill usage with the
|
|
2911
|
+
* exact Memory episode produced by that run.
|
|
2912
|
+
*
|
|
2913
|
+
* @internal
|
|
2914
|
+
*/
|
|
2915
|
+
learnedSkillBindingId?: string;
|
|
2916
|
+
/** Runtime-owner admission for exact learned Skill revisions. */
|
|
2917
|
+
admitLearnedSkillInvocation?: (input: {
|
|
2918
|
+
readonly sessionId: string;
|
|
2919
|
+
readonly capabilityId: string;
|
|
2920
|
+
readonly revision: number;
|
|
2921
|
+
readonly fingerprint: string;
|
|
2922
|
+
}) => Promise<{
|
|
2923
|
+
readonly invocationId: string;
|
|
2924
|
+
}>;
|
|
2925
|
+
/** Runtime-owner outcome correlation for learned Skill canaries. */
|
|
2926
|
+
completeLearnedSkillOutcomes?: (input: {
|
|
2927
|
+
readonly sessionId: string;
|
|
2928
|
+
readonly outcome: 'verified_success' | 'credible_negative' | 'inconclusive';
|
|
2929
|
+
readonly evidenceRefs: readonly string[];
|
|
2930
|
+
}) => Promise<void>;
|
|
2830
2931
|
/** Remote-runtime broker for explicitly admitted, OS-sandboxed Skill scripts. */
|
|
2831
2932
|
skillScriptRunner?: KodaXSkillScriptRunner;
|
|
2832
2933
|
rawUserInput?: string;
|
|
@@ -3020,6 +3121,8 @@ interface KodaXOptions {
|
|
|
3020
3121
|
context?: KodaXContextOptions;
|
|
3021
3122
|
events?: KodaXEvents;
|
|
3022
3123
|
memoryReviewer?: MemoryReviewRunner;
|
|
3124
|
+
/** One-call F263 reviewer. When present it replaces the memory-only reviewer for episode jobs. */
|
|
3125
|
+
learningReviewer?: UnifiedLearningReviewRunner;
|
|
3023
3126
|
/** Optional host-owned semantic selector for sparse governed memory interventions. */
|
|
3024
3127
|
memoryRecallRunner?: MemoryRecallRunner;
|
|
3025
3128
|
extensionRuntime?: ExtensionRuntimeContract;
|
|
@@ -3073,6 +3176,8 @@ interface KodaXOptions {
|
|
|
3073
3176
|
workflow?: {
|
|
3074
3177
|
readonly maxConcurrency?: number;
|
|
3075
3178
|
};
|
|
3179
|
+
/** Host environment names exposed only to final command targets. Defaults to none. */
|
|
3180
|
+
sandbox?: KodaXSandboxOptions;
|
|
3076
3181
|
/** FEATURE_221: SDK-consumer self-manual injection (product name + topics). */
|
|
3077
3182
|
selfManual?: KodaXSelfManualConfig;
|
|
3078
3183
|
/**
|
|
@@ -3115,6 +3220,10 @@ interface KodaXOptions {
|
|
|
3115
3220
|
*/
|
|
3116
3221
|
timeouts?: KodaXTimeoutConfig;
|
|
3117
3222
|
}
|
|
3223
|
+
interface KodaXSandboxOptions {
|
|
3224
|
+
/** Exact host environment-variable names; values are never carried in this option. */
|
|
3225
|
+
readonly envPass?: readonly string[];
|
|
3226
|
+
}
|
|
3118
3227
|
/**
|
|
3119
3228
|
* Low-level mutators handed to a `KodaXSessionControl` by the substrate.
|
|
3120
3229
|
* Each setter writes directly into the live `RuntimeSessionState`. Called
|
|
@@ -3380,6 +3489,8 @@ interface KodaXToolExecutionContext {
|
|
|
3380
3489
|
};
|
|
3381
3490
|
/** Shared root-run work ledger; descendant runtimes retain this exact object. */
|
|
3382
3491
|
managedWorkBudget?: KodaXManagedWorkBudget;
|
|
3492
|
+
/** Trusted permission authority inherited independently of child transcripts. */
|
|
3493
|
+
permissionIntent?: GuardrailPermissionIntent;
|
|
3383
3494
|
/** Trusted host operations that are intentionally absent from model-facing clients. */
|
|
3384
3495
|
actorHost?: KodaXActorHost;
|
|
3385
3496
|
/** FEATURE_260: current exactly-scoped read-only MemorySession query binding. */
|
|
@@ -3387,6 +3498,24 @@ interface KodaXToolExecutionContext {
|
|
|
3387
3498
|
readonly content: string;
|
|
3388
3499
|
readonly evidenceRefs: readonly string[];
|
|
3389
3500
|
} | undefined>;
|
|
3501
|
+
/**
|
|
3502
|
+
* Root-session-only submission channel for explicit user Memory intent.
|
|
3503
|
+
* The host validates an exact current-user quote and captures one intent for
|
|
3504
|
+
* end-of-episode governed submission; this callback never creates a durable
|
|
3505
|
+
* review job or writes Memory directly.
|
|
3506
|
+
*/
|
|
3507
|
+
memoryIntent?: (input: {
|
|
3508
|
+
readonly operation: 'remember' | 'correct';
|
|
3509
|
+
readonly statement: string;
|
|
3510
|
+
readonly userQuote: string;
|
|
3511
|
+
}) => Promise<{
|
|
3512
|
+
readonly status: 'captured';
|
|
3513
|
+
readonly operation: 'remember' | 'correct';
|
|
3514
|
+
readonly evidenceRef: string;
|
|
3515
|
+
} | {
|
|
3516
|
+
readonly status: 'rejected';
|
|
3517
|
+
readonly reason: string;
|
|
3518
|
+
}>;
|
|
3390
3519
|
/** Exact persisted history loader for the current root or isolated worker Session. */
|
|
3391
3520
|
loadSessionHistory?: () => Promise<KodaXSessionLineage | null>;
|
|
3392
3521
|
/** Git root directory - Git 鏍圭洰褰?*/
|
|
@@ -3427,12 +3556,20 @@ interface KodaXToolExecutionContext {
|
|
|
3427
3556
|
skillDynamicContext?: KodaXSkillDynamicContextPolicy;
|
|
3428
3557
|
/** Runtime-bound Skill registry; avoids process-global cross-session drift. */
|
|
3429
3558
|
skillRegistry?: ISkillRegistry;
|
|
3559
|
+
/** Runtime-owner admission for exact learned Skill revisions. */
|
|
3560
|
+
admitLearnedSkillInvocation?: KodaXContextOptions['admitLearnedSkillInvocation'];
|
|
3430
3561
|
/** Present only when the host admitted exact Skill scripts for this run. */
|
|
3431
3562
|
skillScriptRunner?: KodaXSkillScriptRunner;
|
|
3432
3563
|
/** Working directory used to resolve relative paths and execute shell commands. */
|
|
3433
3564
|
executionCwd?: string;
|
|
3434
3565
|
/** Validated shell execution policy inherited by native child runtimes. */
|
|
3435
3566
|
shellExecution?: KodaXShellExecutionContract;
|
|
3567
|
+
/** Run-scoped command-target environment policy supplied by the SDK host. */
|
|
3568
|
+
sandbox?: KodaXSandboxOptions;
|
|
3569
|
+
/** Runtime-owned OS sandbox broker for selected concrete shell calls. */
|
|
3570
|
+
shellSandbox?: KodaXShellSandbox;
|
|
3571
|
+
/** Structured containment metadata; never model-visible or persisted as conversation text. */
|
|
3572
|
+
reportToolSandboxObservation?: (observation: KodaXShellSandboxObservation) => void;
|
|
3436
3573
|
/**
|
|
3437
3574
|
* Exact credential variable names owned by registered Providers.
|
|
3438
3575
|
* Used only to remove non-standard `apiKeyEnv` names from child processes.
|
|
@@ -3522,6 +3659,8 @@ interface KodaXToolExecutionContext {
|
|
|
3522
3659
|
readonly contextDiagnostics?: boolean;
|
|
3523
3660
|
readonly disablePromptCache?: boolean;
|
|
3524
3661
|
readonly shellExecution?: KodaXShellExecutionContract;
|
|
3662
|
+
readonly sandbox?: KodaXSandboxOptions;
|
|
3663
|
+
readonly permissionIntent?: GuardrailPermissionIntent;
|
|
3525
3664
|
};
|
|
3526
3665
|
/** Parent SDK/REPL callback surface used to preserve nested Agent telemetry. */
|
|
3527
3666
|
parentEvents?: KodaXEvents;
|
|
@@ -3881,5 +4020,5 @@ interface CreateBashPrefixExtractorOptions {
|
|
|
3881
4020
|
*/
|
|
3882
4021
|
declare function createBashPrefixExtractor(opts: CreateBashPrefixExtractorOptions): BashPrefixExtractor;
|
|
3883
4022
|
|
|
3884
|
-
export { ALWAYS_RESIDENT_TOOL_NAMES as A, BASH_POLICY_SPEC as B, LSP_SERVERS as
|
|
3885
|
-
export type { KodaXManualTopicInput as $, CapabilityRuntimeContract as C, DiagnosticsRequest as D, ExtensionRuntimeContract as E, FailureStage as F, GoalBlockedResult as G, KodaXChildContextBundle as H, KodaXChildExecutionResult as I, KodaXCompactionOverride as J, KodaXActivityEventMeta as K, KodaXContextCompactionFinishedEvent as L, KodaXContextIdentity as M, KodaXContextOptions as N, KodaXContextTokenSnapshot as O, KodaXEffectiveTaskConfig as P, KodaXEvents as Q, KodaXLiveEventMeta as R, KodaXManagedBudgetSnapshot as S, KodaXManagedProtocolPayload as T, KodaXManagedTask as U, KodaXManagedTaskRuntimeState as V, KodaXManagedTaskStatusEvent as W, KodaXManualIndexTopic as X, KodaXManualSource as Y, KodaXManualTopic as Z, KodaXManualTopicId as _, BashPrefixExtractor as a,
|
|
4023
|
+
export { ALWAYS_RESIDENT_TOOL_NAMES as A, BASH_POLICY_SPEC as B, recordCompactionSavings as b$, LSP_SERVERS as b1, LspService as b3, buildGoalRuntimeBinding as bJ, consumeCompactionCooldown as bK, createBashPrefixExtractor as bL, createCompactionAntiThrashState as bM, createExternalActorTurnExecutor as bN, createLocalCodingActorControl as bO, createRuntimeContextBudgetSnapshot as bP, decideWorkflowInvocation as bQ, drainPendingSwaps as bR, estimateToolSchemaTokens as bS, extractCommandPrefix as bT, getDefaultLspService as bU, hasExplicitNaturalLanguageWorkflowIntent as bV, hasPendingSwap as bW, makeDisabledGoalToolsContext as bX, normalizeKodaXAgentMode as bY, planToolExposure as bZ, providerResilienceConfigFromTimeouts as b_, resolveConstructedAgent as c0, shouldSkipLlmCompaction as c1, shutdownDefaultLspService as c2, withGoalBeforeNextTurn as c3, withGoalStopHook as c4, workflowStartOutcomeConsumesTurn as c5, CodingActorSession as d };
|
|
4024
|
+
export type { KodaXManualTopicInput as $, CapabilityRuntimeContract as C, DiagnosticsRequest as D, ExtensionRuntimeContract as E, FailureStage as F, GoalBlockedResult as G, KodaXChildContextBundle as H, KodaXChildExecutionResult as I, KodaXCompactionOverride as J, KodaXActivityEventMeta as K, KodaXContextCompactionFinishedEvent as L, KodaXContextIdentity as M, KodaXContextOptions as N, KodaXContextTokenSnapshot as O, KodaXEffectiveTaskConfig as P, KodaXEvents as Q, KodaXLiveEventMeta as R, KodaXManagedBudgetSnapshot as S, KodaXManagedProtocolPayload as T, KodaXManagedTask as U, KodaXManagedTaskRuntimeState as V, KodaXManagedTaskStatusEvent as W, KodaXManualIndexTopic as X, KodaXManualSource as Y, KodaXManualTopic as Z, KodaXManualTopicId as _, BashPrefixExtractor as a, KodaXWorkflowEventMeta as a$, KodaXMemoryStrategy as a0, KodaXOptions as a1, KodaXOrchestrationVerdict as a2, KodaXParentReductionContract as a3, KodaXPreparedShellSandboxInvocation as a4, KodaXPromptCacheDiagnosticEvent as a5, KodaXProviderPolicyHints as a6, KodaXRepoIntelligenceCapability as a7, KodaXRepoIntelligenceMode as a8, KodaXRepoIntelligenceResolvedMode as a9, KodaXSkillScriptRunner as aA, KodaXTaskCapabilityHint as aB, KodaXTaskContract as aC, KodaXTaskEvidenceArtifact as aD, KodaXTaskEvidenceBundle as aE, KodaXTaskEvidenceEntry as aF, KodaXTaskRole as aG, KodaXTaskRoleAssignment as aH, KodaXTaskStatus as aI, KodaXTaskSurface as aJ, KodaXTaskToolPolicy as aK, KodaXTaskVerificationContract as aL, KodaXTaskVerificationCriterion as aM, KodaXTaskWorkItem as aN, KodaXTimeoutConfig as aO, KodaXToolEventMeta as aP, KodaXToolExecutionContext as aQ, KodaXToolSandboxObservationUpdate as aR, KodaXToolVisibilityMeta as aS, KodaXToolVisibilityPolicy as aT, KodaXTurnCompletedEvent as aU, KodaXTurnDeliveryKind as aV, KodaXTurnFailedEvent as aW, KodaXTurnStartedEvent as aX, KodaXVerificationScorecard as aY, KodaXVerificationScorecardCriterion as aZ, KodaXWorkflowAgentDigestEvent as a_, KodaXRepoIntelligenceTrace as aa, KodaXRepoIntelligenceTraceEvent as ab, KodaXRepoRoutingSignals as ac, KodaXResult as ad, KodaXRoleRoundSummary as ae, KodaXRuntimeVerificationContract as af, KodaXSandboxOptions as ag, KodaXSelfManualConfig as ah, KodaXSessionControl as ai, KodaXSessionMutators as aj, KodaXSessionOptions as ak, KodaXShellExecutionContract as al, KodaXShellKind as am, KodaXShellProfileMode as an, KodaXShellSandbox as ao, KodaXShellSandboxBackend as ap, KodaXShellSandboxObservation as aq, KodaXShellSandboxPrepareInput as ar, KodaXSidecarMessageEvent as as, KodaXSkillDynamicContextPolicy as at, KodaXSkillInvocationContext as au, KodaXSkillMap as av, KodaXSkillProjectionConfidence as aw, KodaXSkillScriptInputFile as ax, KodaXSkillScriptOutputFile as ay, KodaXSkillScriptRunInput as az, BashPrefixResult as b, KodaXWorkflowTimeoutConfig as b0, LspServerInfo as b2, LspServiceConfig as b4, ProviderExecutionState as b5, ProviderRecoveryEvent as b6, ProviderResilienceConfig as b7, ProviderResiliencePolicy as b8, RecoveryAction as b9, WorkflowInvocationAction as bA, WorkflowInvocationPolicyDecision as bB, WorkflowInvocationPolicyInput as bC, WorkflowInvocationSource as bD, WorkflowStartOutcome as bE, WorkflowToolHost as bF, WorkflowToolHostInlineInput as bG, WorkflowToolHostResult as bH, WorkflowToolHostStartResult as bI, RecoveryDecision as ba, RecoveryLadderStep as bb, RecoveryResult as bc, ResilienceClassification as bd, ResilienceErrorClass as be, ResolveKodaXManualInput as bf, ResolveKodaXManualOptions as bg, ResolveKodaXManualResult as bh, RuntimeCompactionSkippedEvent as bi, RuntimeContextBudgetBreakdown as bj, RuntimeContextBudgetRecommendation as bk, RuntimeContextBudgetSnapshot as bl, RuntimeContextBudgetSnapshotInput as bm, RuntimeContextOptimizationProfile as bn, RuntimeContextPressure as bo, RuntimeDefaultsSnapshot as bp, RuntimeToolExposureDecision as bq, RuntimeToolExposureMode as br, RuntimeToolExposurePlan as bs, RuntimeToolExposurePlanInput as bt, RuntimeToolExposureReason as bu, TodoItem as bv, TodoList as bw, TodoStatus as bx, ToolSideEffect as by, WorkflowHostPolicy as bz, BoundExtensionRuntimeController as c, CodingActorSessionOptions as e, CompactionAntiThrashConfig as f, CompactionAntiThrashState as g, CompactionSavingsDecision as h, CompactionSavingsSample as i, CompactionSkipReason as j, CreateBashPrefixExtractorOptions as k, ExtractCommandPrefixOptions as l, GoalCompleteResult as m, GoalCreateInput as n, GoalLifecycleContext as o, GoalRuntimeBinding as p, GoalRuntimeBindingDeps as q, GoalToolsContext as r, KodaXActorHost as s, KodaXAgentMode as t, KodaXAgentProfile as u, KodaXAgentScope as v, KodaXBudgetDisclosureZone as w, KodaXBudgetExtensionRequest as x, KodaXCanonicalAgentMode as y, KodaXChildAgentResult as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as KodaXMessage } from './types.d-
|
|
2
|
-
import {
|
|
1
|
+
import { k as KodaXMessage } from './types.d-CgrXrFrq.js';
|
|
2
|
+
import { ae as AgentMessage, e9 as SessionEntry, e7 as Session, eb as SessionExtension, c1 as KodaXSessionLineage, bO as KodaXJsonValue, aW as CompactionDetails, bB as KodaXCompactMemorySeed, bZ as KodaXSessionEntry, cb as KodaXSessionTreeNode, c0 as KodaXSessionLabelEntry, b$ as KodaXSessionGoalEntry, bW as KodaXSessionClientNoticeEntry, c7 as KodaXSessionRewindMarkerEntry, c2 as KodaXSessionMemoryOutcomeDigestEntry, c3 as KodaXSessionMemoryReviewReceiptEntry, c6 as KodaXSessionNavigationOptions, bU as KodaXSessionArtifactLedgerEntry, bj as FileOperations, eV as WorkflowMeta, eW as WorkflowModelHint, eX as WorkflowModule } from './controller.d-RGV7Pjv9.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @kodax-ai/agent Constants
|
|
@@ -481,7 +481,7 @@ declare class LineageCompaction implements CompactionPolicy {
|
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
483
|
* 生成会话 ID
|
|
484
|
-
* 格式: YYYYMMDD_HHMMSS_<suffix> (suffix = ms
|
|
484
|
+
* 格式: YYYYMMDD_HHMMSS_<suffix> (suffix = ms base36 + 48-bit random hex)
|
|
485
485
|
*
|
|
486
486
|
* FEATURE_219 (v0.7.46): the date-prefix is preserved (sortable +
|
|
487
487
|
* human-readable), but a per-call suffix makes the id GLOBALLY unique.
|
|
@@ -490,6 +490,8 @@ declare class LineageCompaction implements CompactionPolicy {
|
|
|
490
490
|
* directory layout the same id could otherwise exist in two project folders
|
|
491
491
|
* and make `loadSession(id)` ambiguous. See ADR-038 §7.
|
|
492
492
|
*/
|
|
493
|
+
declare function generateSessionIdSync(): string;
|
|
494
|
+
/** Preserve the established async public API for existing consumers. */
|
|
493
495
|
declare function generateSessionId(): Promise<string>;
|
|
494
496
|
/**
|
|
495
497
|
* 从消息中提取标题
|
|
@@ -510,7 +512,7 @@ declare function createSessionLineage(messages: KodaXMessage[], previous?: KodaX
|
|
|
510
512
|
*
|
|
511
513
|
* Traversal stops safely if malformed data introduces a parent cycle.
|
|
512
514
|
*/
|
|
513
|
-
declare function getSessionLineagePath(lineage: KodaXSessionLineage, targetId?: string | null): NavigableSessionEntry[];
|
|
515
|
+
declare function getSessionLineagePath(lineage: KodaXSessionLineage, targetId?: string | null, checkpoint?: () => void): NavigableSessionEntry[];
|
|
514
516
|
/**
|
|
515
517
|
* Build the effective LLM-visible message context for the active lineage path.
|
|
516
518
|
*
|
|
@@ -528,7 +530,7 @@ declare function getSessionMessagesFromLineage(lineage: KodaXSessionLineage, tar
|
|
|
528
530
|
/**
|
|
529
531
|
* Resolve an entry selector using either a direct entry id or the latest label.
|
|
530
532
|
*/
|
|
531
|
-
declare function resolveSessionLineageTarget(lineage: KodaXSessionLineage, selector: string): NavigableSessionEntry | undefined;
|
|
533
|
+
declare function resolveSessionLineageTarget(lineage: KodaXSessionLineage, selector: string, checkpoint?: () => void): NavigableSessionEntry | undefined;
|
|
532
534
|
/**
|
|
533
535
|
* Move the active leaf to a selected target, optionally appending a
|
|
534
536
|
* branch-summary node that captures the abandoned path.
|
|
@@ -593,7 +595,7 @@ declare function applyLineageTruncation(lineage: KodaXSessionLineage | undefined
|
|
|
593
595
|
declare function evictOldIslandMessageContent(lineage: KodaXSessionLineage): KodaXSessionLineage;
|
|
594
596
|
declare function findPreviousUserEntryId(lineage: KodaXSessionLineage): string | null;
|
|
595
597
|
declare function rewindSessionLineage(lineage: KodaXSessionLineage, targetEntryId: string): KodaXSessionLineage | null;
|
|
596
|
-
declare function forkSessionLineage(lineage: KodaXSessionLineage, selector?: string): KodaXSessionLineage | null;
|
|
598
|
+
declare function forkSessionLineage(lineage: KodaXSessionLineage, selector?: string, checkpoint?: () => void): KodaXSessionLineage | null;
|
|
597
599
|
/**
|
|
598
600
|
* Convert a lineage into a nested tree structure for UI presentation.
|
|
599
601
|
*/
|
|
@@ -768,5 +770,5 @@ declare function buildWorkflowCapsuleIntent(manifest: {
|
|
|
768
770
|
readonly originalRequest?: string;
|
|
769
771
|
}): WorkflowCapsuleIntent;
|
|
770
772
|
|
|
771
|
-
export { createSessionLineage as $, DefaultSummaryCompaction as D, KODAX_API_MIN_INTERVAL as K, LINEAGE_ENTRY_TYPES as L, actorQueueId as N, appendSessionLineageLabel as O, PROMISE_PATTERN as P, applyLineageTruncation as Q, applySessionCompaction as R, archiveOldIslands as S, assertRestrictedWorkflowQuality as T, buildSessionTree as U, buildWorkflowCapsuleIntent as V, WORKFLOW_CAPSULE_API_VERSION as W, cleanupIncompleteToolCalls as X, countActiveLineageMessages as Y, countTokens as Z, _resetActiveRootQueueRoutesForTests as _, createWorkflowCapsule as a0, createWorkflowModuleFromCapsule as a1, estimateTokens as a2, evictOldIslandMessageContent as a3, extractArtifactLedger as a4, extractFileOps as a5, extractTitleFromMessages as a6, findPreviousUserEntryId as a7, forkSessionLineage as a8, generateSessionId as a9,
|
|
773
|
+
export { createSessionLineage as $, DefaultSummaryCompaction as D, KODAX_API_MIN_INTERVAL as K, LINEAGE_ENTRY_TYPES as L, actorQueueId as N, appendSessionLineageLabel as O, PROMISE_PATTERN as P, applyLineageTruncation as Q, applySessionCompaction as R, archiveOldIslands as S, assertRestrictedWorkflowQuality as T, buildSessionTree as U, buildWorkflowCapsuleIntent as V, WORKFLOW_CAPSULE_API_VERSION as W, cleanupIncompleteToolCalls as X, countActiveLineageMessages as Y, countTokens as Z, _resetActiveRootQueueRoutesForTests as _, createWorkflowCapsule as a0, createWorkflowModuleFromCapsule as a1, estimateTokens as a2, evictOldIslandMessageContent as a3, extractArtifactLedger as a4, extractFileOps as a5, extractTitleFromMessages as a6, findPreviousUserEntryId as a7, forkSessionLineage as a8, generateSessionId as a9, generateSessionIdSync as aa, getAgentConfigHome as ab, getAgentConfigPath as ac, getAppDataDir as ad, getSessionLineagePath as ae, getSessionMessagesFromLineage as af, isPathInsideDirectory as ag, lintRestrictedWorkflowSource as ah, mergeArtifactLedger as ai, mergeFileOps as aj, registerActiveRootQueueRoute as ak, resolveActiveRootQueueRoute as al, resolveExecutionPath as am, resolveSessionLineageTarget as an, rewindSessionLineage as ao, setAgentConfigHome as ap, setSessionLineageActiveEntry as aq, validateAndFixToolHistory as ar, validateWorkflowCapsule as as, validateWorkflowScriptManifest as at, KODAX_DEFAULT_TIMEOUT as f, KODAX_HARD_TIMEOUT as g, KODAX_MAX_INCOMPLETE_RETRIES as h, KODAX_MAX_MAXTOKENS_RETRIES as i, KODAX_MAX_RETRIES as j, KODAX_MAX_TOKENS as k, KODAX_RETRY_BASE_DELAY as l, KODAX_STAGGER_DELAY as m, LineageCompaction as o, LineageExtension as r, WORKFLOW_CAPSULE_FORMAT as v, WORKFLOW_CAPSULE_VERSION as w, WORKFLOW_PATTERN_IDS as x };
|
|
772
774
|
export type { WorkflowCapsuleInputs as A, WorkflowCapsuleIntent as B, CompactionContext as C, WorkflowCapsuleProvenance as E, WorkflowCapsuleRequirements as F, WorkflowPatternId as G, WorkflowQualityLintFinding as H, WorkflowQualityLintOptions as I, WorkflowQualityLintSeverity as J, WorkflowScriptManifest as M, CompactionEntry as a, CompactionEntryPayload as b, CompactionPolicy as c, CreateWorkflowCapsuleInput as d, DefaultSummaryCompactionOptions as e, LineageArtifactLedgerPayload as n, LineageCompactionDelegates as p, LineageEntryType as q, LineageLabelPayload as s, LineageTreeNode as t, PolicyCompactionResult as u, WorkflowCapsule as y, WorkflowCapsuleEnvironmentRequirement as z };
|