@kodax-ai/kodax 0.7.87 → 0.7.88
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 +41 -0
- package/README.md +20 -12
- package/README_CN.md +5 -3
- package/dist/chunks/agent-ZVZPWX5T.js +2 -0
- package/dist/chunks/argument-completer-LF5FUYJI.js +2 -0
- package/dist/chunks/{chunk-U44C5STU.js → chunk-4Y6OSDZE.js} +1 -1
- package/dist/chunks/{chunk-XH7UM4GO.js → chunk-5247AKGN.js} +3 -3
- package/dist/chunks/{chunk-DB4O33RR.js → chunk-6MGD2A7Z.js} +220 -220
- package/dist/chunks/{chunk-ITP7J5HX.js → chunk-72H6JNPN.js} +142 -142
- package/dist/chunks/{chunk-BCYJIACJ.js → chunk-GSGNXLDU.js} +2 -2
- package/dist/chunks/{chunk-XKLVC7F6.js → chunk-L2SYMK46.js} +1 -1
- package/dist/chunks/{chunk-JS4RSF4B.js → chunk-O2ZV775M.js} +1 -1
- package/dist/chunks/{chunk-3PGNESV3.js → chunk-OG4ML65E.js} +11 -11
- package/dist/chunks/chunk-PROPMIT4.js +2 -0
- package/dist/chunks/{chunk-ZQNOEKOB.js → chunk-QCXFQFIO.js} +2 -2
- package/dist/chunks/{chunk-4OLXWSCQ.js → chunk-RGAMBFT4.js} +254 -254
- package/dist/chunks/chunk-TXZ2XYMA.js +320 -0
- package/dist/chunks/{chunk-SKELDH3G.js → chunk-UNEC2WXJ.js} +17 -17
- package/dist/chunks/{chunk-GRJ7NKWP.js → chunk-W5RPVR3O.js} +1 -1
- package/dist/chunks/{chunk-ASFCAPIG.js → chunk-WSDVHFBK.js} +2 -2
- package/dist/chunks/{chunk-YB7YVAPL.js → chunk-ZKJEAQHA.js} +4 -4
- package/dist/chunks/{chunk-7XTUXMAI.js → chunk-ZWRG2GHC.js} +3 -3
- package/dist/chunks/client-ZXBSEDS4.js +2 -0
- package/dist/chunks/compaction-config-HVHPJ6CS.js +2 -0
- package/dist/chunks/{construction-bootstrap-YTFOT4M2.js → construction-bootstrap-HUGXOAUK.js} +1 -1
- package/dist/chunks/dist-VH56OGLV.js +2 -0
- package/dist/chunks/{dist-X55TWIK4.js → dist-WILA35IA.js} +1 -1
- package/dist/chunks/host-33L5PX3J.js +2 -0
- package/dist/chunks/run-manager-OOMXDNDA.js +2 -0
- package/dist/chunks/utils-WCVYP3JY.js +2 -0
- package/dist/index.d.ts +14 -14
- package/dist/index.js +5 -5
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1562 -1559
- package/dist/kodax_resume.js +35 -826
- package/dist/provider-capabilities.json +1156 -1118
- package/dist/runtime-worker.js +1254 -1253
- package/dist/sandbox-workspace-session.js +264 -264
- package/dist/sdk-a2a.d.ts +9 -9
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +12 -12
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +16 -16
- 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.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +12 -12
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +11 -11
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +5 -5
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +59 -59
- package/dist/types-chunks/{bash-prefix-extractor.d-B36OQwNA.d.ts → bash-prefix-extractor.d-DcHi4vz5.d.ts} +2 -2
- package/dist/types-chunks/{capsule.d-DEncDNzD.d.ts → capsule.d-CjNNucoy.d.ts} +2 -2
- package/dist/types-chunks/{controller.d-C1YdP_pQ.d.ts → controller.d-BcUJlVOt.d.ts} +1 -1
- package/dist/types-chunks/{controller.d-Dif9pbC9.d.ts → controller.d-C-GjOuPV.d.ts} +8 -1
- package/dist/types-chunks/{guardrail.d-DhpnJv4Y.d.ts → guardrail.d-BuI5uypW.d.ts} +8 -2
- package/dist/types-chunks/{history-retrieval.d-YJQpQt7h.d.ts → history-retrieval.d-BjJTJtKF.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-D4q3WxKq.d.ts → public-api.d-hYcrNiNt.d.ts} +9 -4
- package/dist/types-chunks/{repl.d-D4ye29Kk.d.ts → repl.d-DSQdq_FY.d.ts} +5 -5
- package/dist/types-chunks/{review-inbox.d-C1_xZ-yg.d.ts → review-inbox.d-D2EtBlPt.d.ts} +1 -1
- package/dist/types-chunks/{run-manager.d-D30IvnwV.d.ts → run-manager.d-i7Q30bns.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-DIU6sHa2.d.ts → sdk-session-CAL2IZsM.d.ts} +2 -2
- package/dist/types-chunks/{shell-command-sets.d-rIHkZ_VR.d.ts → shell-command-sets.d-BLjNQYPi.d.ts} +1 -1
- package/dist/types-chunks/{types.d-sW-OqiFt.d.ts → types.d-BSFS8--Y.d.ts} +33 -2
- package/dist/types-chunks/{types.d-COhAF5Xo.d.ts → types.d-CqIcGQlc.d.ts} +1 -1
- package/dist/types-chunks/{types.d-Bz5Y-PD9.d.ts → types.d-DNIzbJD_.d.ts} +2 -2
- package/dist/types-chunks/{utils.d-B65ozSTV.d.ts → utils.d-CeM3tG-E.d.ts} +5 -5
- package/package.json +2 -2
- package/dist/chunks/agent-Z64QF7KG.js +0 -2
- package/dist/chunks/argument-completer-HIJBXRUT.js +0 -2
- package/dist/chunks/chunk-UWKM3HNY.js +0 -319
- package/dist/chunks/compaction-config-E4TFBCDJ.js +0 -2
- package/dist/chunks/dist-M3JV4PNA.js +0 -2
- package/dist/chunks/host-SJHHJBPB.js +0 -2
- package/dist/chunks/run-manager-T5QGWNON.js +0 -2
- package/dist/chunks/utils-2FHVIO6X.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Z as KodaXGoalState, af as KodaXSessionLineage, k as AgentActorStore, O as AgentTurnExecutor, p as AgentBudgetPort, b as AgentActorOwner, a as AgentActorClient, x as AgentExecutionResult, a0 as KodaXJsonValue, U as KodaXExtensionSessionRecord, V as KodaXExtensionSessionState, a6 as KodaXSessionArtifactLedgerEntry, be as SessionErrorMetadata, an as KodaXSessionScope, ao as KodaXSessionStorage, aI as MemoryContextIdentity, aU as MemoryPack, b8 as MemoryReviewPlan, a3 as KodaXMemoryOutcomeDigest, b9 as MemoryReviewRunner } from './types.d-BSFS8--Y.js';
|
|
2
2
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation, WorkspaceSymbol, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-protocol';
|
|
3
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-CK9A9rpP.js';
|
|
4
|
-
import { P as AgentMessage, ct as StopHookFn, o as AgentControllerHealth, G as AgentExecutorPlaneBinding, f as Agent, cV as WorkflowIsolation, aN as GuardrailPermissionIntent, ac as AskUserQuestionOptions, a8 as AskUserAnswer, aa as AskUserMultiOptions, cS as WorkflowEventCorrelation, am as CompactionUpdate, d7 as WorkflowProcessEvent, cR as WorkflowEvent, aJ as Guardrail, at as DiscoveredInstance, a$ as KodaXInputArtifact, cJ as UnifiedLearningReviewRunner } from './controller.d-
|
|
4
|
+
import { P as AgentMessage, ct as StopHookFn, o as AgentControllerHealth, G as AgentExecutorPlaneBinding, f as Agent, cV as WorkflowIsolation, aN as GuardrailPermissionIntent, ac as AskUserQuestionOptions, a8 as AskUserAnswer, aa as AskUserMultiOptions, cS as WorkflowEventCorrelation, am as CompactionUpdate, d7 as WorkflowProcessEvent, cR as WorkflowEvent, aJ as Guardrail, at as DiscoveredInstance, a$ as KodaXInputArtifact, cJ as UnifiedLearningReviewRunner } from './controller.d-C-GjOuPV.js';
|
|
5
5
|
import { d as SkillDynamicContextExecutor, I as ISkillRegistry } from './types.d-BSPlmJqf.js';
|
|
6
6
|
import { K as KodaXLlmTimeoutConfig, a as CostTracker } from './cost-tracker.d-BeaenODW.js';
|
|
7
7
|
import { p as MemoryRecallRunner } from './types-PHjfwebT.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as KodaXMessage } from './types.d-CK9A9rpP.js';
|
|
2
|
-
import { P as AgentMessage, cd as SessionEntry, cb as Session, ce as SessionExtension, ai as CompactionDetails, aH as FileOperations, cY as WorkflowMeta, cZ as WorkflowModelHint, c_ as WorkflowModule } from './controller.d-
|
|
3
|
-
import {
|
|
2
|
+
import { P as AgentMessage, cd as SessionEntry, cb as Session, ce as SessionExtension, ai as CompactionDetails, aH as FileOperations, cY as WorkflowMeta, cZ as WorkflowModelHint, c_ as WorkflowModule } from './controller.d-C-GjOuPV.js';
|
|
3
|
+
import { af as KodaXSessionLineage, a0 as KodaXJsonValue, T as KodaXCompactMemorySeed, ab as KodaXSessionEntry, ap as KodaXSessionTreeNode, ae as KodaXSessionLabelEntry, ad as KodaXSessionGoalEntry, a8 as KodaXSessionClientNoticeEntry, al as KodaXSessionRewindMarkerEntry, ag as KodaXSessionMemoryOutcomeDigestEntry, ah as KodaXSessionMemoryReviewReceiptEntry, ak as KodaXSessionNavigationOptions, a6 as KodaXSessionArtifactLedgerEntry } from './types.d-BSFS8--Y.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @kodax-ai/agent Constants
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aI as MemoryContextIdentity, aQ as MemoryItemRef, af as KodaXSessionLineage, a6 as KodaXSessionArtifactLedgerEntry, aM as MemoryEvent, b9 as MemoryReviewRunner, aT as MemoryManagementController, ay as MemoryActionProposal, aB as MemoryApplyResult, a$ as MemoryRejectResult, aZ as MemoryRefFilter, aG as MemoryBodySnapshot, b0 as MemoryRememberInput, b1 as MemoryRememberResult, aS as MemoryLifecycleOperationResult, aK as MemoryCuratorInput, aP as MemoryGovernanceReport, aE as MemoryAutoCuratorInput, aF as MemoryAutoCuratorResult, aW as MemoryPackInput, aU as MemoryPack, b4 as MemoryReviewInput, b8 as MemoryReviewPlan, a3 as KodaXMemoryOutcomeDigest, b5 as MemoryReviewModelInput, aL as MemoryEpisodeReviewResult } from './types.d-BSFS8--Y.js';
|
|
2
2
|
|
|
3
3
|
interface CreateMemoryControlPlaneOptions {
|
|
4
4
|
readonly cwd: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a2 as KodaXToolDefinition, k as KodaXMessage, G as KodaXReasoningMode, aa as KodaXWireReasoningEffort, a4 as KodaXToolResultContentItem, Z as KodaXThinkingBlock, J as KodaXRedactedThinkingBlock } from './types.d-CK9A9rpP.js';
|
|
2
|
-
import {
|
|
2
|
+
import { b5 as MemoryReviewModelInput, a3 as KodaXMemoryOutcomeDigest, b8 as MemoryReviewPlan, T as KodaXCompactMemorySeed, a6 as KodaXSessionArtifactLedgerEntry, q as AgentCapabilities, O as AgentTurnExecutor, w as AgentExecutionKind, p as AgentBudgetPort, k as AgentActorStore, b as AgentActorOwner, t as AgentEvent, E as AgentMailboxMessage, a as AgentActorClient, x as AgentExecutionResult, L as AgentSpawnInput, G as AgentMutationOptions, P as AgentTurnRef, r as AgentDataClassification, F as AgentMetadataValue, y as AgentFollowupResult, B as AgentInterruptScope, M as AgentTreeSnapshot, s as AgentDetail, H as AgentOutput } from './types.d-BSFS8--Y.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Layer A Primitive: Agent / Handoff / Guardrail / AgentReasoningProfile
|
|
@@ -3812,6 +3812,8 @@ declare class AgentActorController {
|
|
|
3812
3812
|
private readonly now;
|
|
3813
3813
|
private readonly admissionScope;
|
|
3814
3814
|
private mutationTail;
|
|
3815
|
+
private activeMutationSaveAttempt?;
|
|
3816
|
+
private readonly mutationSaveAttemptWaiters;
|
|
3815
3817
|
private activeProgress?;
|
|
3816
3818
|
private progressMutation?;
|
|
3817
3819
|
private progressDrainScheduled;
|
|
@@ -3908,6 +3910,11 @@ declare class AgentActorController {
|
|
|
3908
3910
|
private requireCommittedControl;
|
|
3909
3911
|
private installRoot;
|
|
3910
3912
|
private mutate;
|
|
3913
|
+
private setActiveMutationSaveAttempt;
|
|
3914
|
+
private clearActiveMutationSaveAttempt;
|
|
3915
|
+
private waitForActiveMutationSaveAttempt;
|
|
3916
|
+
private waitForPhaseAwareMutationHead;
|
|
3917
|
+
private waitForPhaseAwareSaveAttemptCanonical;
|
|
3911
3918
|
private snapshot;
|
|
3912
3919
|
private restore;
|
|
3913
3920
|
private republishUnacknowledgedRootCompletions;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { b as McpServersConfig, M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './config.d-CJy1WENT.js';
|
|
2
2
|
import { K as KodaXBaseProvider } from './base.d-vopO1rml.js';
|
|
3
3
|
import { a as CostTracker } from './cost-tracker.d-BeaenODW.js';
|
|
4
|
-
import { c5 as RunnerToolCall, cB as ToolGuardrail } from './controller.d-
|
|
4
|
+
import { c5 as RunnerToolCall, cB as ToolGuardrail } from './controller.d-C-GjOuPV.js';
|
|
5
5
|
import { k as KodaXMessage } from './types.d-CK9A9rpP.js';
|
|
6
6
|
import { S as SideQueryDiagnostics } from './side-query.d-iH0P9ASy.js';
|
|
7
|
-
import { bB as ToolSideEffect } from './bash-prefix-extractor.d-
|
|
7
|
+
import { bB as ToolSideEffect } from './bash-prefix-extractor.d-DcHi4vz5.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
|
|
@@ -618,6 +618,12 @@ interface AutoModeSharedState {
|
|
|
618
618
|
type AutoModeAskUserVerdict = 'allow' | 'block' | 'timeout';
|
|
619
619
|
interface AutoModeDecisionDiagnostics {
|
|
620
620
|
readonly source: 'classifier_confirm' | 'classifier_failure' | 'classifier_circuit_breaker' | 'configuration';
|
|
621
|
+
/**
|
|
622
|
+
* Bounded (≤512 chars) decision-rationale summary for display surfaces
|
|
623
|
+
* (permission prompts). Same text the guardrail already passes as the ask
|
|
624
|
+
* reason; never prompt content or raw response body.
|
|
625
|
+
*/
|
|
626
|
+
readonly reason?: string;
|
|
621
627
|
readonly classifierFailureKind?: ClassifierFailureKind;
|
|
622
628
|
readonly classifierAttempts?: readonly ClassifierAttemptDiagnostics[];
|
|
623
629
|
}
|
package/dist/types-chunks/{history-retrieval.d-YJQpQt7h.d.ts → history-retrieval.d-BjJTJtKF.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as KodaXMessage } from './types.d-CK9A9rpP.js';
|
|
2
|
-
import {
|
|
2
|
+
import { af as KodaXSessionLineage } from './types.d-BSFS8--Y.js';
|
|
3
3
|
|
|
4
4
|
type KodaXSessionHistoryScope = 'compacted' | 'all';
|
|
5
5
|
type KodaXSessionHistorySource = 'user' | 'assistant' | 'system' | 'tool' | 'child_task';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as BashPrefixExtractor, t as KodaXAgentMode } from './bash-prefix-extractor.d-
|
|
1
|
+
import { a as BashPrefixExtractor, t as KodaXAgentMode } from './bash-prefix-extractor.d-DcHi4vz5.js';
|
|
2
2
|
import { G as KodaXReasoningMode, k as KodaXMessage, T as KodaXTaskResultMetadata } from './types.d-CK9A9rpP.js';
|
|
3
|
-
import { bF as LearningSurfaceSnapshot$1, bA as LearningQuery, bz as LearningPage, bc as LearnedCapabilityRecord, bv as LearningEvent, bE as LearningSubscribeOptions, aj as CompactionReport } from './controller.d-
|
|
4
|
-
import {
|
|
3
|
+
import { bF as LearningSurfaceSnapshot$1, bA as LearningQuery, bz as LearningPage, bc as LearnedCapabilityRecord, bv as LearningEvent, bE as LearningSubscribeOptions, aj as CompactionReport } from './controller.d-C-GjOuPV.js';
|
|
4
|
+
import { aa as KodaXSessionData, af as KodaXSessionLineage, ak as KodaXSessionNavigationOptions, am as KodaXSessionRuntimeInfo, ao as KodaXSessionStorage, ab as KodaXSessionEntry, a6 as KodaXSessionArtifactLedgerEntry, U as KodaXExtensionSessionRecord, aq as KodaXSessionUiHistoryItem, an as KodaXSessionScope, g as AgentActorSnapshot, c as AgentActorSaveAttempt, a0 as KodaXJsonValue } from './types.d-BSFS8--Y.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -1058,6 +1058,7 @@ type SessionLocationTraversalBoundary = {
|
|
|
1058
1058
|
readonly topologyMutationBefore: boolean;
|
|
1059
1059
|
};
|
|
1060
1060
|
declare class FileSessionStorage implements KodaXSessionStorage {
|
|
1061
|
+
readonly actorSnapshotEligibilityTimeoutMs: number;
|
|
1061
1062
|
private readonly sessionsDir;
|
|
1062
1063
|
private readonly configHome;
|
|
1063
1064
|
private readonly sessionLocations;
|
|
@@ -1152,7 +1153,7 @@ declare class FileSessionStorage implements KodaXSessionStorage {
|
|
|
1152
1153
|
private readArchivedEntries;
|
|
1153
1154
|
private completeConversationLineage;
|
|
1154
1155
|
private appendIslandArchive;
|
|
1155
|
-
/**
|
|
1156
|
+
/** Create `<dir>/project.json` without ever writing through a conflicting identity. */
|
|
1156
1157
|
private ensureProjectJson;
|
|
1157
1158
|
private rebuildConversationCache;
|
|
1158
1159
|
private updateConversationCacheAfterAppend;
|
|
@@ -1176,6 +1177,8 @@ declare class FileSessionStorage implements KodaXSessionStorage {
|
|
|
1176
1177
|
*/
|
|
1177
1178
|
createGenerated(id: string, data: SessionData): Promise<void>;
|
|
1178
1179
|
mutateLineage(id: string, mutation: (lineage: KodaXSessionLineage) => KodaXSessionLineage): Promise<boolean>;
|
|
1180
|
+
/** Phase-aware Actor CAS save; canonical success is observable before cache maintenance. */
|
|
1181
|
+
beginActorSnapshotSave(id: string, snapshot: AgentActorSnapshot, expectedRevision: number): AgentActorSaveAttempt;
|
|
1179
1182
|
/** F270/F269 owner mutation: CAS-update only the Actor section of a session snapshot. */
|
|
1180
1183
|
saveActorSnapshot(id: string, snapshot: AgentActorSnapshot, expectedRevision: number): Promise<void>;
|
|
1181
1184
|
/** Read Session data without recovery writes or append-watermark mutation. */
|
|
@@ -1193,6 +1196,7 @@ declare class FileSessionStorage implements KodaXSessionStorage {
|
|
|
1193
1196
|
readFullSnapshot(id: string, options?: SessionReadOptions): Promise<SessionReadSnapshot | null>;
|
|
1194
1197
|
private readFullSnapshotAtPath;
|
|
1195
1198
|
load(id: string): Promise<SessionData | null>;
|
|
1199
|
+
has(id: string): Promise<boolean>;
|
|
1196
1200
|
isArchived(id: string): Promise<boolean>;
|
|
1197
1201
|
getLineage(id: string): Promise<KodaXSessionLineage | null>;
|
|
1198
1202
|
loadFullLineage(id: string): Promise<KodaXSessionLineage | null>;
|
|
@@ -1244,6 +1248,7 @@ declare class FileSessionStorage implements KodaXSessionStorage {
|
|
|
1244
1248
|
archiveOwned(id: string, ownerId: string): Promise<boolean>;
|
|
1245
1249
|
private sessionConversationCacheMainPaths;
|
|
1246
1250
|
private removeSessionConversationCaches;
|
|
1251
|
+
private removeResumeMembership;
|
|
1247
1252
|
private archiveWithActorOwner;
|
|
1248
1253
|
/** Restore an archived session back into its project directory. */
|
|
1249
1254
|
unarchive(id: string): Promise<boolean>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as ResolvedAutoModeSettings, b as CommandDefinition, e as CommandSource, c as CommandInfo, C as Command$1, I as InteractiveContext, a as CommandCallbacks, g as CurrentConfig, d as CommandInvocationRequest, f as CommandWorkflowInvocationRequest, p as RuntimeSurfaceStatus } from './utils.d-
|
|
2
|
-
import { ae as SessionStorage$1, S as PermissionMode, L as LearningBinding } from './public-api.d-
|
|
3
|
-
import { a4 as KodaXOptions, ag as KodaXResult } from './bash-prefix-extractor.d-
|
|
4
|
-
import {
|
|
5
|
-
import { t as AutoModeStats } from './guardrail.d-
|
|
1
|
+
import { n as ResolvedAutoModeSettings, b as CommandDefinition, e as CommandSource, c as CommandInfo, C as Command$1, I as InteractiveContext, a as CommandCallbacks, g as CurrentConfig, d as CommandInvocationRequest, f as CommandWorkflowInvocationRequest, p as RuntimeSurfaceStatus } from './utils.d-CeM3tG-E.js';
|
|
2
|
+
import { ae as SessionStorage$1, S as PermissionMode, L as LearningBinding } from './public-api.d-hYcrNiNt.js';
|
|
3
|
+
import { a4 as KodaXOptions, ag as KodaXResult } from './bash-prefix-extractor.d-DcHi4vz5.js';
|
|
4
|
+
import { ao as KodaXSessionStorage, aa as KodaXSessionData } from './types.d-BSFS8--Y.js';
|
|
5
|
+
import { t as AutoModeStats } from './guardrail.d-BuI5uypW.js';
|
|
6
6
|
|
|
7
7
|
interface ReplRuntimePermissionGrantSuggestion {
|
|
8
8
|
readonly id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dj as WorkflowProcessTrackerOptions, cR as WorkflowEvent, dd as WorkflowProcessSnapshot, d7 as WorkflowProcessEvent } from './controller.d-
|
|
1
|
+
import { dj as WorkflowProcessTrackerOptions, cR as WorkflowEvent, dd as WorkflowProcessSnapshot, d7 as WorkflowProcessEvent } from './controller.d-C-GjOuPV.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* FEATURE_246 Part A0 (ADR-046) — neutral workflow run lifecycle manager.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { h as CreatableHistoryItem, ar as ToolCall } from './public-api.d-
|
|
1
|
+
import { h as CreatableHistoryItem, ar as ToolCall } from './public-api.d-hYcrNiNt.js';
|
|
2
2
|
import { k as KodaXMessage, c as KodaXContentBlock } from './types.d-CK9A9rpP.js';
|
|
3
|
-
import {
|
|
3
|
+
import { aq as KodaXSessionUiHistoryItem, au as KodaXSessionUiToolCall } from './types.d-BSFS8--Y.js';
|
|
4
4
|
|
|
5
5
|
interface RestoreHistoryItemsFromSessionInput {
|
|
6
6
|
messages: readonly KodaXMessage[];
|
|
@@ -244,10 +244,41 @@ interface AgentActorSnapshotV2 extends AgentActorSnapshotContents {
|
|
|
244
244
|
readonly owner?: AgentActorOwner;
|
|
245
245
|
}
|
|
246
246
|
type AgentActorSnapshot = AgentActorSnapshotV1 | AgentActorSnapshotV2;
|
|
247
|
+
type AgentActorSavePhase = 'queued' | 'precommit' | 'commit_inflight' | 'committed' | 'not_committed';
|
|
248
|
+
type AgentActorSaveTiming = 'storageQueue' | 'fileLock' | 'readCas' | 'lineage' | 'topology' | 'tempWrite' | 'fsync' | 'rename' | 'postCommit' | 'total';
|
|
249
|
+
interface AgentActorSaveDiagnostics {
|
|
250
|
+
readonly attemptId: string;
|
|
251
|
+
readonly phase: AgentActorSavePhase;
|
|
252
|
+
readonly activeStage?: AgentActorSaveTiming;
|
|
253
|
+
readonly activeStageElapsedMs?: number;
|
|
254
|
+
readonly failedStage?: AgentActorSaveTiming;
|
|
255
|
+
readonly canonicalOutcome?: 'pending' | 'committed' | 'committed_by_readback' | 'not_committed' | 'ambiguous';
|
|
256
|
+
readonly completionOutcome?: 'pending' | 'succeeded' | 'failed';
|
|
257
|
+
readonly timingsMs: Readonly<Partial<Record<AgentActorSaveTiming, number>>>;
|
|
258
|
+
}
|
|
259
|
+
/** One storage-neutral Actor snapshot attempt with an explicit canonical boundary. */
|
|
260
|
+
interface AgentActorSaveAttempt {
|
|
261
|
+
/** Resolves after the process-local storage queue admits this attempt. */
|
|
262
|
+
readonly dequeued: Promise<void>;
|
|
263
|
+
/** Resolves after storage queueing and writer admission, before canonical preparation. */
|
|
264
|
+
readonly eligible: Promise<void>;
|
|
265
|
+
/** Resolves when the Actor snapshot is canonical; rejects before or during commit. */
|
|
266
|
+
readonly canonical: Promise<void>;
|
|
267
|
+
/** Full cache/watermark/topology maintenance completion for legacy callers and diagnostics. */
|
|
268
|
+
readonly completion: Promise<void>;
|
|
269
|
+
phase(): AgentActorSavePhase;
|
|
270
|
+
/** Prevents a queued/precommit attempt from ever entering canonical commit. */
|
|
271
|
+
cancelBeforeCommit(): boolean;
|
|
272
|
+
diagnostics(): AgentActorSaveDiagnostics;
|
|
273
|
+
}
|
|
247
274
|
interface AgentActorStore {
|
|
248
275
|
load(): Promise<AgentActorSnapshot | undefined>;
|
|
249
276
|
/** CAS save. Implementations must throw actor_snapshot_conflict on a revision mismatch. */
|
|
250
277
|
save(snapshot: AgentActorSnapshot, expectedRevision: number): Promise<void>;
|
|
278
|
+
/** Optional phase-aware save used by Actor settlement convergence v2. */
|
|
279
|
+
beginSave?(snapshot: AgentActorSnapshot, expectedRevision: number): AgentActorSaveAttempt;
|
|
280
|
+
/** Maximum expected writer-admission wait after a phase-aware save is dequeued. */
|
|
281
|
+
readonly eligibilityTimeoutMs?: number;
|
|
251
282
|
}
|
|
252
283
|
/** Runtime-bound actor control surface. The caller path is minted by Runtime. */
|
|
253
284
|
interface AgentActorClient {
|
|
@@ -1053,5 +1084,5 @@ type MemoryEvent = {
|
|
|
1053
1084
|
readonly actionCount: number;
|
|
1054
1085
|
};
|
|
1055
1086
|
|
|
1056
|
-
export { hashMemoryIdentityComponent as
|
|
1057
|
-
export type {
|
|
1087
|
+
export { hashMemoryIdentityComponent as bf, isMemoryManagementController as bg, matchesMemoryApplicability as bh, memoryApplicabilityFingerprint as bi };
|
|
1088
|
+
export type { KodaXHandledMemoryOperation as $, AgentActor as A, AgentInterruptScope as B, AgentLimitReached as C, AgentListEntry as D, AgentMailboxMessage as E, AgentMetadataValue as F, AgentMutationOptions as G, AgentOutput as H, AgentProgressItem as I, AgentProgressKind as J, AgentProgressUpdate as K, AgentSpawnInput as L, AgentTreeSnapshot as M, AgentTurn as N, AgentTurnExecutor as O, AgentTurnRef as P, AgentTurnState as Q, AgentTurnSummary as R, KodaXCompactMemoryProgress as S, KodaXCompactMemorySeed as T, KodaXExtensionSessionRecord as U, KodaXExtensionSessionState as V, KodaXExtensionStore as W, KodaXExtensionStoreEntry as X, KodaXGoalEventType as Y, KodaXGoalState as Z, KodaXGoalStatus as _, AgentActorClient as a, MemoryRejectResult as a$, KodaXJsonValue as a0, KodaXMemoryInfluenceRef as a1, KodaXMemoryIntent as a2, KodaXMemoryOutcomeDigest as a3, KodaXMemoryOutcomeEvidence as a4, KodaXSessionArchiveMarkerEntry as a5, KodaXSessionArtifactLedgerEntry as a6, KodaXSessionBranchSummaryEntry as a7, KodaXSessionClientNoticeEntry as a8, KodaXSessionCompactionEntry as a9, MemoryApplyPreview as aA, MemoryApplyResult as aB, MemoryApproval as aC, MemoryAuthority as aD, MemoryAutoCuratorInput as aE, MemoryAutoCuratorResult as aF, MemoryBodySnapshot as aG, MemoryClaimKind as aH, MemoryContextIdentity as aI, MemoryController as aJ, MemoryCuratorInput as aK, MemoryEpisodeReviewResult as aL, MemoryEvent as aM, MemoryGovernanceFinding as aN, MemoryGovernanceFindingKind as aO, MemoryGovernanceReport as aP, MemoryItemRef as aQ, MemoryLifecycle as aR, MemoryLifecycleOperationResult as aS, MemoryManagementController as aT, MemoryPack as aU, MemoryPackHint as aV, MemoryPackInput as aW, MemoryPackTraceMetadata as aX, MemoryProposalAction as aY, MemoryRefFilter as aZ, MemoryRefKind as a_, KodaXSessionData as aa, KodaXSessionEntry as ab, KodaXSessionEntryBase as ac, KodaXSessionGoalEntry as ad, KodaXSessionLabelEntry as ae, KodaXSessionLineage as af, KodaXSessionMemoryOutcomeDigestEntry as ag, KodaXSessionMemoryReviewReceiptEntry as ah, KodaXSessionMessageEntry as ai, KodaXSessionMeta as aj, KodaXSessionNavigationOptions as ak, KodaXSessionRewindMarkerEntry as al, KodaXSessionRuntimeInfo as am, KodaXSessionScope as an, KodaXSessionStorage as ao, KodaXSessionTreeNode as ap, KodaXSessionUiHistoryItem as aq, KodaXSessionUiHistoryItemType as ar, KodaXSessionUiTextHistoryItem as as, KodaXSessionUiTextHistoryItemType as at, KodaXSessionUiToolCall as au, KodaXSessionUiToolCallStatus as av, KodaXSessionUiToolGroupHistoryItem as aw, KodaXSessionWorkspaceKind as ax, MemoryActionProposal as ay, MemoryApplicability as az, AgentActorOwner as b, MemoryRememberInput as b0, MemoryRememberResult as b1, MemoryReviewCandidateRef as b2, MemoryReviewDraftAction as b3, MemoryReviewInput as b4, MemoryReviewModelInput as b5, MemoryReviewPersistenceDecision as b6, MemoryReviewPersistenceKind as b7, MemoryReviewPlan as b8, MemoryReviewRunner as b9, MemoryReviewTrigger as ba, MemoryScope as bb, MemorySourceAdapter as bc, MemoryVisibility as bd, SessionErrorMetadata as be, AgentActorSaveAttempt as c, AgentActorSaveDiagnostics as d, AgentActorSavePhase as e, AgentActorSaveTiming as f, AgentActorSnapshot as g, AgentActorSnapshotV1 as h, AgentActorSnapshotV2 as i, AgentActorState as j, AgentActorStore as k, AgentArtifactDescriptor as l, AgentBudgetAdmission as m, AgentBudgetAdmissionInput as n, AgentBudgetExhausted as o, AgentBudgetPort as p, AgentCapabilities as q, AgentDataClassification as r, AgentDetail as s, AgentEvent as t, AgentEventKind as u, AgentExecutionInput as v, AgentExecutionKind as w, AgentExecutionResult as x, AgentFollowupResult as y, AgentForkTurns as z };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { aa as KodaXWireReasoningEffort, a2 as KodaXToolDefinition, a4 as KodaXToolResultContentItem, k as KodaXMessage } from './types.d-CK9A9rpP.js';
|
|
2
2
|
import { K as KodaXBaseProvider } from './base.d-vopO1rml.js';
|
|
3
3
|
import { C as CapabilityKind, a as CapabilityProvider } from './capability.d-K664nHOS.js';
|
|
4
|
-
import {
|
|
5
|
-
import { aT as KodaXToolExecutionContext, bB as ToolSideEffect } from './bash-prefix-extractor.d-
|
|
4
|
+
import { a0 as KodaXJsonValue, U as KodaXExtensionSessionRecord, W as KodaXExtensionStore } from './types.d-BSFS8--Y.js';
|
|
5
|
+
import { aT as KodaXToolExecutionContext, bB as ToolSideEffect } from './bash-prefix-extractor.d-DcHi4vz5.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* KodaX Constructed-World types (FEATURE_087, v0.7.28).
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { k as KodaXMessage, G as KodaXReasoningMode, d as KodaXCustomProviderConfig, q as KodaXProviderCapabilityProfile } from './types.d-CK9A9rpP.js';
|
|
2
|
-
import { de as WorkflowProcessSource } from './controller.d-
|
|
3
|
-
import { Q as KodaXContextTokenSnapshot, aw as KodaXSkillDynamicContextPolicy, t as KodaXAgentMode, ab as KodaXRepoIntelligenceMode, a4 as KodaXOptions, ax as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-
|
|
4
|
-
import { e as AgentsFile, t as AutoModeStats, T as KodaXMcpServersConfig } from './guardrail.d-
|
|
2
|
+
import { de as WorkflowProcessSource } from './controller.d-C-GjOuPV.js';
|
|
3
|
+
import { Q as KodaXContextTokenSnapshot, aw as KodaXSkillDynamicContextPolicy, t as KodaXAgentMode, ab as KodaXRepoIntelligenceMode, a4 as KodaXOptions, ax as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-DcHi4vz5.js';
|
|
4
|
+
import { e as AgentsFile, t as AutoModeStats, T as KodaXMcpServersConfig } from './guardrail.d-BuI5uypW.js';
|
|
5
5
|
import * as readline from 'readline';
|
|
6
|
-
import {
|
|
7
|
-
import { S as PermissionMode, L as LearningBinding, G as LearningSurfaceSnapshot } from './public-api.d-
|
|
6
|
+
import { aq as KodaXSessionUiHistoryItem, af as KodaXSessionLineage, a6 as KodaXSessionArtifactLedgerEntry, V as KodaXExtensionSessionState, U as KodaXExtensionSessionRecord, am as KodaXSessionRuntimeInfo } from './types.d-BSFS8--Y.js';
|
|
7
|
+
import { S as PermissionMode, L as LearningBinding, G as LearningSurfaceSnapshot } from './public-api.d-hYcrNiNt.js';
|
|
8
8
|
import { SpawnSyncReturns } from 'child_process';
|
|
9
9
|
|
|
10
10
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodax-ai/kodax",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.88",
|
|
4
4
|
"description": "KodaX lightweight coding agent - TypeScript implementation with 16 built-in LLM provider aliases, published as a Node-free single-file CLI and SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"kodaxRuntimeContracts": {
|
|
11
|
-
"actorSettlementConvergence":
|
|
11
|
+
"actorSettlementConvergence": 2,
|
|
12
12
|
"daemonShutdownVerification": 1,
|
|
13
13
|
"integrationConfigResilience": 1,
|
|
14
14
|
"managedRunDurability": 1,
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Ka as g,Ma as h,Za as i,_a as j,a as c,sa as d,ta as e,ua as f,yc as k}from"./chunk-3PGNESV3.js";import"./chunk-JS4RSF4B.js";import"./chunk-DB4O33RR.js";import"./chunk-GRJ7NKWP.js";import"./chunk-SKELDH3G.js";import{Jb as a,Kb as b}from"./chunk-ITP7J5HX.js";import"./chunk-XH7UM4GO.js";import"./chunk-ONUPGMER.js";export{e as bucketProviderPayloadSize,g as buildAutoRepoIntelligenceContext,f as checkPromiseSignal,b as cleanupIncompleteToolCalls,h as describeTransientProviderRetry,c as emitResilienceDebug,d as estimateProviderPayloadBytes,k as runKodaX,j as saveRequiredSessionSnapshot,i as saveSessionSnapshot,a as validateAndFixToolHistory};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{Ea as a,Fa as b}from"./chunk-4OLXWSCQ.js";import"./chunk-ASFCAPIG.js";import"./chunk-U44C5STU.js";import"./chunk-BCYJIACJ.js";import"./chunk-3PGNESV3.js";import"./chunk-XKLVC7F6.js";import"./chunk-JS4RSF4B.js";import"./chunk-ZQNOEKOB.js";import"./chunk-DB4O33RR.js";import"./chunk-GRJ7NKWP.js";import"./chunk-SKELDH3G.js";import"./chunk-ITP7J5HX.js";import"./chunk-XH7UM4GO.js";import"./chunk-ONUPGMER.js";export{a as ArgumentCompleter,b as createArgumentCompleter};
|