@kodax-ai/kodax 0.7.80 → 0.7.82
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 +57 -0
- package/README.md +26 -3
- package/README_CN.md +21 -3
- package/dist/chunks/{agent-5PHGNFW3.js → agent-4UTCCMD5.js} +1 -1
- package/dist/chunks/argument-completer-N7ORRJBS.js +2 -0
- package/dist/chunks/{chunk-PMKAG4SZ.js → chunk-7ZN2MLVM.js} +1 -1
- package/dist/chunks/{chunk-GC4JBMBS.js → chunk-GIVYTXQW.js} +7 -7
- package/dist/chunks/{chunk-IHPH3444.js → chunk-JDZFNWMZ.js} +2 -2
- package/dist/chunks/{chunk-BWX4YZX3.js → chunk-KH2HED37.js} +2 -2
- package/dist/chunks/{chunk-RXXKDR6Y.js → chunk-NINELPXH.js} +1 -1
- package/dist/chunks/chunk-PGTU7JQX.js +30 -0
- package/dist/chunks/{chunk-T5U4OP2N.js → chunk-S6JTWDN6.js} +1 -1
- package/dist/chunks/{chunk-CDCCTM5I.js → chunk-VQBJMNFD.js} +2 -2
- package/dist/chunks/{chunk-CEB5FDND.js → chunk-WMYCNECP.js} +57 -57
- package/dist/chunks/{chunk-FQ7NVMSU.js → chunk-XTCDCU2Q.js} +136 -136
- package/dist/chunks/{chunk-RPF5RGWZ.js → chunk-ZOBNDWOA.js} +151 -151
- package/dist/chunks/chunk-ZZUIO5KL.js +348 -0
- package/dist/chunks/{compaction-config-6J6XCBJS.js → compaction-config-IDL5JQVI.js} +1 -1
- package/dist/chunks/{construction-bootstrap-KPCAE3VN.js → construction-bootstrap-STYUR6XA.js} +1 -1
- package/dist/chunks/{dist-RWEVZOFK.js → dist-RKBHBUHV.js} +1 -1
- package/dist/chunks/{host-OGS2R5J4.js → host-RF2IX3N6.js} +1 -1
- package/dist/chunks/{run-manager-2YMM3BOT.js → run-manager-WE2KPAKZ.js} +1 -1
- package/dist/chunks/{utils-2YHRUZYC.js → utils-Z2RSAENX.js} +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +1 -1
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1292 -1292
- package/dist/kodax_resume.js +4 -4
- package/dist/runtime-worker.js +1148 -1148
- package/dist/sandbox-workspace-session.js +4 -4
- package/dist/sdk-a2a.d.ts +8 -8
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +10 -10
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +13 -13
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.d.ts +11 -11
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +15 -8
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +4 -4
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +2 -2
- package/dist/types-chunks/{bash-prefix-extractor.d-DStqKIlu.d.ts → bash-prefix-extractor.d-CJM7OY-L.d.ts} +4 -2
- package/dist/types-chunks/{capsule.d-BuFJaYxA.d.ts → capsule.d-B7yoH4dM.d.ts} +4 -2
- package/dist/types-chunks/{controller.d-C2aHqzHj.d.ts → controller.d-CYNuR2n9.d.ts} +2 -2
- package/dist/types-chunks/{guardrail.d-DM-OK0m3.d.ts → guardrail.d-fM3mn4Op.d.ts} +2 -2
- package/dist/types-chunks/{history-retrieval.d-DImTKgO6.d.ts → history-retrieval.d-BDI-ZMvY.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-CewTvUKV.d.ts → public-api.d-i10kvYFs.d.ts} +2 -2
- package/dist/types-chunks/{repl.d-DvXQtgr7.d.ts → repl.d-Cs3eqGVT.d.ts} +5 -5
- package/dist/types-chunks/{run-manager.d-C6ahvZqK.d.ts → run-manager.d-CodHf6rw.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-C59RUrri.d.ts → sdk-session-CRXu5xNs.d.ts} +2 -2
- package/dist/types-chunks/{shell-command-sets.d-Dp4UvPLL.d.ts → shell-command-sets.d-DfeSUjjM.d.ts} +1 -1
- package/dist/types-chunks/{types.d-BzpPDBPV.d.ts → types.d-DIXZFauU.d.ts} +1 -1
- package/dist/types-chunks/{types.d-yuJzE82x.d.ts → types.d-DKs4tfSd.d.ts} +2 -2
- package/dist/types-chunks/{utils.d-BpACJmzt.d.ts → utils.d-CgITiLyc.d.ts} +4 -4
- package/docs/SDK_EMBEDDER_GUIDE.md +38 -10
- package/package.json +1 -1
- package/dist/chunks/argument-completer-FXRZFMTC.js +0 -2
- package/dist/chunks/chunk-UZSHBQER.js +0 -30
- package/dist/chunks/chunk-VECRQTSD.js +0 -348
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bI as KodaXGoalState, ae as AgentMessage, er 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, eT as WorkflowIsolation, bD as KodaXExtensionSessionState, bU as KodaXSessionArtifactLedgerEntry, eb 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, eQ as WorkflowEventCorrelation, a_ as CompactionUpdate, f5 as WorkflowProcessEvent, eP as WorkflowEvent, dC as MemoryReviewPlan, bR as KodaXMemoryOutcomeDigest, bl as Guardrail, b5 as DiscoveredInstance, bM as KodaXInputArtifact, dD as MemoryReviewRunner, eH as UnifiedLearningReviewRunner } from './controller.d-
|
|
1
|
+
import { bI as KodaXGoalState, ae as AgentMessage, er 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, eT as WorkflowIsolation, bD as KodaXExtensionSessionState, bU as KodaXSessionArtifactLedgerEntry, eb 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, eQ as WorkflowEventCorrelation, a_ as CompactionUpdate, f5 as WorkflowProcessEvent, eP as WorkflowEvent, dC as MemoryReviewPlan, bR as KodaXMemoryOutcomeDigest, bl as Guardrail, b5 as DiscoveredInstance, bM as KodaXInputArtifact, dD as MemoryReviewRunner, eH as UnifiedLearningReviewRunner } from './controller.d-CYNuR2n9.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-CgrXrFrq.js';
|
|
4
4
|
import { d as SkillDynamicContextExecutor, I as ISkillRegistry } from './types.d-BbtGlKZu.js';
|
|
@@ -866,7 +866,7 @@ declare class CodingActorSession {
|
|
|
866
866
|
registerTurnExecutor(key: string, executor: AgentTurnExecutor): () => void;
|
|
867
867
|
waitForAgentCapacity(signal?: AbortSignal): Promise<boolean>;
|
|
868
868
|
close(reason?: string): Promise<void>;
|
|
869
|
-
quiesce(reason?: string): Promise<void>;
|
|
869
|
+
quiesce(reason?: string, preservedTurnIds?: ReadonlySet<string>): Promise<void>;
|
|
870
870
|
disposeAfterStoreRemoval(reason?: string): void;
|
|
871
871
|
}
|
|
872
872
|
declare function createLocalCodingActorControl(parentCtx: KodaXToolExecutionContext, options: KodaXOptions): AgentActorClient;
|
|
@@ -1676,6 +1676,8 @@ interface KodaXActivityEventMeta extends KodaXWorkflowEventMeta, Partial<KodaXLi
|
|
|
1676
1676
|
readonly sessionId?: string;
|
|
1677
1677
|
/** Exact queue identities consumed by a mid-turn user-message boundary. */
|
|
1678
1678
|
readonly queuedMessageIds?: readonly string[];
|
|
1679
|
+
/** Exact durable lineage entry created for each consumed queue identity. */
|
|
1680
|
+
readonly queuedMessageEntryIds?: Readonly<Record<string, string>>;
|
|
1679
1681
|
/**
|
|
1680
1682
|
* FEATURE_247 (R8) — SDK-consumer agent profile that produced this event.
|
|
1681
1683
|
* Absent ⇒ default Coding Agent (or an event emitted before a profile is known).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as KodaXMessage } from './types.d-CgrXrFrq.js';
|
|
2
|
-
import { ae as AgentMessage, ea as SessionEntry, e8 as Session, ec 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, eW as WorkflowMeta, eX as WorkflowModelHint, eY as WorkflowModule } from './controller.d-
|
|
2
|
+
import { ae as AgentMessage, ea as SessionEntry, e8 as Session, ec 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, eW as WorkflowMeta, eX as WorkflowModelHint, eY as WorkflowModule } from './controller.d-CYNuR2n9.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @kodax-ai/agent Constants
|
|
@@ -491,6 +491,8 @@ declare function generateSessionId(): Promise<string>;
|
|
|
491
491
|
declare function extractTitleFromMessages(messages: KodaXMessage[]): string;
|
|
492
492
|
|
|
493
493
|
type NavigableSessionEntry = Exclude<KodaXSessionEntry, KodaXSessionLabelEntry | KodaXSessionGoalEntry | KodaXSessionClientNoticeEntry | KodaXSessionRewindMarkerEntry | KodaXSessionMemoryOutcomeDigestEntry | KodaXSessionMemoryReviewReceiptEntry>;
|
|
494
|
+
/** Return the sole physical lineage entry proven for this message reference. */
|
|
495
|
+
declare function getSessionMessageEntryId(message: KodaXMessage): string | undefined;
|
|
494
496
|
/**
|
|
495
497
|
* Reconcile a linear message list against an existing lineage tree.
|
|
496
498
|
*
|
|
@@ -761,5 +763,5 @@ declare function buildWorkflowCapsuleIntent(manifest: {
|
|
|
761
763
|
readonly originalRequest?: string;
|
|
762
764
|
}): WorkflowCapsuleIntent;
|
|
763
765
|
|
|
764
|
-
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,
|
|
766
|
+
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, getSessionMessageEntryId as af, getSessionMessagesFromLineage as ag, isPathInsideDirectory as ah, lintRestrictedWorkflowSource as ai, mergeArtifactLedger as aj, mergeFileOps as ak, registerActiveRootQueueRoute as al, resolveActiveRootQueueRoute as am, resolveExecutionPath as an, resolveSessionLineageTarget as ao, rewindSessionLineage as ap, setAgentConfigHome as aq, setSessionLineageActiveEntry as ar, validateAndFixToolHistory as as, validateWorkflowCapsule as at, validateWorkflowScriptManifest as au, 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 };
|
|
765
767
|
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 };
|
|
@@ -4858,8 +4858,8 @@ declare class AgentActorController {
|
|
|
4858
4858
|
* No mutation is allowed here because there is no longer a snapshot to save.
|
|
4859
4859
|
*/
|
|
4860
4860
|
disposeAfterStoreRemoval(reason?: string): void;
|
|
4861
|
-
/** Interrupts
|
|
4862
|
-
quiesce(reason?: string): Promise<void>;
|
|
4861
|
+
/** Interrupts eligible local execution while retaining the durable owner fence. */
|
|
4862
|
+
quiesce(reason?: string, preservedTurnIds?: ReadonlySet<string>): Promise<void>;
|
|
4863
4863
|
/** Stops in-flight work for process shutdown while preserving reusable Actor identities. */
|
|
4864
4864
|
shutdown(reason?: string): Promise<void>;
|
|
4865
4865
|
private performShutdown;
|
|
@@ -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-DxG0m09Z.js';
|
|
3
3
|
import { a as CostTracker } from './cost-tracker.d-BeaenODW.js';
|
|
4
|
-
import { e2 as RunnerToolCall, ez as ToolGuardrail } from './controller.d-
|
|
4
|
+
import { e2 as RunnerToolCall, ez as ToolGuardrail } from './controller.d-CYNuR2n9.js';
|
|
5
5
|
import { k as KodaXMessage } from './types.d-CgrXrFrq.js';
|
|
6
6
|
import { S as SideQueryDiagnostics } from './side-query.d-CP1LiRiH.js';
|
|
7
|
-
import { by as ToolSideEffect } from './bash-prefix-extractor.d-
|
|
7
|
+
import { by as ToolSideEffect } from './bash-prefix-extractor.d-CJM7OY-L.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
|
package/dist/types-chunks/{history-retrieval.d-DImTKgO6.d.ts → history-retrieval.d-BDI-ZMvY.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as KodaXMessage } from './types.d-CgrXrFrq.js';
|
|
2
|
-
import { c1 as KodaXSessionLineage } from './controller.d-
|
|
2
|
+
import { c1 as KodaXSessionLineage } from './controller.d-CYNuR2n9.js';
|
|
3
3
|
|
|
4
4
|
type KodaXSessionHistoryScope = 'compacted' | 'all';
|
|
5
5
|
type KodaXSessionHistorySource = 'user' | 'assistant' | 'system' | 'tool' | 'child_task';
|
|
@@ -1,6 +1,6 @@
|
|
|
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-CJM7OY-L.js';
|
|
2
2
|
import { G as KodaXReasoningMode, k as KodaXMessage, T as KodaXTaskResultMetadata } from './types.d-CgrXrFrq.js';
|
|
3
|
-
import { cY as LearningSurfaceSnapshot$1, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cO as LearningEvent, cX as LearningSubscribeOptions, bY as KodaXSessionData, c1 as KodaXSessionLineage, c6 as KodaXSessionNavigationOptions, c8 as KodaXSessionRuntimeInfo, ca as KodaXSessionStorage, bZ as KodaXSessionEntry, bU as KodaXSessionArtifactLedgerEntry, bC as KodaXExtensionSessionRecord, cc as KodaXSessionUiHistoryItem, c9 as KodaXSessionScope, k as AgentActorSnapshot, aX as CompactionReport, bO as KodaXJsonValue } from './controller.d-
|
|
3
|
+
import { cY as LearningSurfaceSnapshot$1, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cO as LearningEvent, cX as LearningSubscribeOptions, bY as KodaXSessionData, c1 as KodaXSessionLineage, c6 as KodaXSessionNavigationOptions, c8 as KodaXSessionRuntimeInfo, ca as KodaXSessionStorage, bZ as KodaXSessionEntry, bU as KodaXSessionArtifactLedgerEntry, bC as KodaXExtensionSessionRecord, cc as KodaXSessionUiHistoryItem, c9 as KodaXSessionScope, k as AgentActorSnapshot, aX as CompactionReport, bO as KodaXJsonValue } from './controller.d-CYNuR2n9.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -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 { a1 as KodaXOptions, ad as KodaXResult } from './bash-prefix-extractor.d-
|
|
4
|
-
import { ca as KodaXSessionStorage, bY as KodaXSessionData } from './controller.d-
|
|
5
|
-
import { s 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-CgITiLyc.js';
|
|
2
|
+
import { ae as SessionStorage$1, S as PermissionMode, L as LearningBinding } from './public-api.d-i10kvYFs.js';
|
|
3
|
+
import { a1 as KodaXOptions, ad as KodaXResult } from './bash-prefix-extractor.d-CJM7OY-L.js';
|
|
4
|
+
import { ca as KodaXSessionStorage, bY as KodaXSessionData } from './controller.d-CYNuR2n9.js';
|
|
5
|
+
import { s as AutoModeStats } from './guardrail.d-fM3mn4Op.js';
|
|
6
6
|
|
|
7
7
|
interface ReplRuntimePermissionGrantSuggestion {
|
|
8
8
|
readonly id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fh as WorkflowProcessTrackerOptions, eP as WorkflowEvent, fb as WorkflowProcessSnapshot, f5 as WorkflowProcessEvent } from './controller.d-
|
|
1
|
+
import { fh as WorkflowProcessTrackerOptions, eP as WorkflowEvent, fb as WorkflowProcessSnapshot, f5 as WorkflowProcessEvent } from './controller.d-CYNuR2n9.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-i10kvYFs.js';
|
|
2
2
|
import { k as KodaXMessage, c as KodaXContentBlock } from './types.d-CgrXrFrq.js';
|
|
3
|
-
import { cc as KodaXSessionUiHistoryItem, cg as KodaXSessionUiToolCall } from './controller.d-
|
|
3
|
+
import { cc as KodaXSessionUiHistoryItem, cg as KodaXSessionUiToolCall } from './controller.d-CYNuR2n9.js';
|
|
4
4
|
|
|
5
5
|
interface RestoreHistoryItemsFromSessionInput {
|
|
6
6
|
messages: readonly KodaXMessage[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { aa as KodaXWireReasoningEffort, a2 as KodaXToolDefinition, a4 as KodaXToolResultContentItem, k as KodaXMessage } from './types.d-CgrXrFrq.js';
|
|
2
2
|
import { K as KodaXBaseProvider } from './base.d-DxG0m09Z.js';
|
|
3
3
|
import { C as CapabilityKind, a as CapabilityProvider } from './capability.d-K664nHOS.js';
|
|
4
|
-
import { bO as KodaXJsonValue, bC as KodaXExtensionSessionRecord, bE as KodaXExtensionStore } from './controller.d-
|
|
5
|
-
import { aQ as KodaXToolExecutionContext, by as ToolSideEffect } from './bash-prefix-extractor.d-
|
|
4
|
+
import { bO as KodaXJsonValue, bC as KodaXExtensionSessionRecord, bE as KodaXExtensionStore } from './controller.d-CYNuR2n9.js';
|
|
5
|
+
import { aQ as KodaXToolExecutionContext, by as ToolSideEffect } from './bash-prefix-extractor.d-CJM7OY-L.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* KodaX Constructed-World types (FEATURE_087, v0.7.28).
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { k as KodaXMessage, G as KodaXReasoningMode, d as KodaXCustomProviderConfig, q as KodaXProviderCapabilityProfile } from './types.d-CgrXrFrq.js';
|
|
2
|
-
import { cc as KodaXSessionUiHistoryItem, c1 as KodaXSessionLineage, bU as KodaXSessionArtifactLedgerEntry, bD as KodaXExtensionSessionState, bC as KodaXExtensionSessionRecord, c8 as KodaXSessionRuntimeInfo, fc as WorkflowProcessSource } from './controller.d-
|
|
3
|
-
import { O as KodaXContextTokenSnapshot, at as KodaXSkillDynamicContextPolicy, t as KodaXAgentMode, a8 as KodaXRepoIntelligenceMode, a1 as KodaXOptions, au as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-
|
|
4
|
-
import { d as AgentsFile, s as AutoModeStats, S as KodaXMcpServersConfig } from './guardrail.d-
|
|
2
|
+
import { cc as KodaXSessionUiHistoryItem, c1 as KodaXSessionLineage, bU as KodaXSessionArtifactLedgerEntry, bD as KodaXExtensionSessionState, bC as KodaXExtensionSessionRecord, c8 as KodaXSessionRuntimeInfo, fc as WorkflowProcessSource } from './controller.d-CYNuR2n9.js';
|
|
3
|
+
import { O as KodaXContextTokenSnapshot, at as KodaXSkillDynamicContextPolicy, t as KodaXAgentMode, a8 as KodaXRepoIntelligenceMode, a1 as KodaXOptions, au as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-CJM7OY-L.js';
|
|
4
|
+
import { d as AgentsFile, s as AutoModeStats, S as KodaXMcpServersConfig } from './guardrail.d-fM3mn4Op.js';
|
|
5
5
|
import * as readline from 'readline';
|
|
6
|
-
import { S as PermissionMode, L as LearningBinding, G as LearningSurfaceSnapshot } from './public-api.d-
|
|
6
|
+
import { S as PermissionMode, L as LearningBinding, G as LearningSurfaceSnapshot } from './public-api.d-i10kvYFs.js';
|
|
7
7
|
import { SpawnSyncReturns } from 'child_process';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -4224,8 +4224,15 @@ result confirms the actual outcome, including `completed` when the executor
|
|
|
4224
4224
|
ignored Stop and completed normally. Terminal callback order is latched before
|
|
4225
4225
|
deferred result settlement: Stop cannot rewrite an earlier completion as
|
|
4226
4226
|
interrupted, and late finalizer/recovery progress cannot revive an unconfirmed
|
|
4227
|
-
stopped Run. If the Runtime owner then dies, recovery resolves the pending Stop
|
|
4228
|
-
as `confirmed/interrupted`.
|
|
4227
|
+
stopped Run. If the Runtime owner then dies, recovery resolves the pending Stop
|
|
4228
|
+
as `confirmed/interrupted`.
|
|
4229
|
+
|
|
4230
|
+
Since v0.7.82, an observed Stop cooperatively gates later Runtime-controlled
|
|
4231
|
+
provider retries and continuations, Runner guardrail/tool dispatch, and
|
|
4232
|
+
Run-admitted Actor work. It does not hard-kill turns admitted before Stop or
|
|
4233
|
+
rewrite a genuine completion or an independent failure. A trusted Stop/Abort
|
|
4234
|
+
cause is classified before credential redaction, so `runs.get()` and `await()`
|
|
4235
|
+
report the same factual terminal outcome.
|
|
4229
4236
|
|
|
4230
4237
|
For support bundles, use the pure read-only compositor:
|
|
4231
4238
|
|
|
@@ -4398,10 +4405,25 @@ For input that must join the current active Run, submit `delivery:'interrupt'`.
|
|
|
4398
4405
|
This does not create a Run. Each accepted input appears as `queued` in the
|
|
4399
4406
|
owning Run's `interruptInputs`. At the next safe boundary, all accumulated
|
|
4400
4407
|
interrupts are drained FIFO, remain separate user messages in one next LLM
|
|
4401
|
-
request, and produce one `run.input.delivered` event whose `inputs` array is the
|
|
4402
|
-
complete ordered batch. Exact operation retries return the same `inputId`.
|
|
4403
|
-
The accepted result's `runId` is the existing owning Run (equal to
|
|
4404
|
-
`afterRunId`), not a newly created continuation.
|
|
4408
|
+
request, and produce one `run.input.delivered` event whose `inputs` array is the
|
|
4409
|
+
complete ordered batch. Exact operation retries return the same `inputId`.
|
|
4410
|
+
The accepted result's `runId` is the existing owning Run (equal to
|
|
4411
|
+
`afterRunId`), not a newly created continuation.
|
|
4412
|
+
|
|
4413
|
+
Since v0.7.81, every newly delivered item also carries `entryId`: the exact
|
|
4414
|
+
physical Session-lineage user entry created by canonical persistence. The same
|
|
4415
|
+
value appears in `runtime.runs.get(runId).interruptInputs`; do not infer it
|
|
4416
|
+
from a transcript ordinal or fabricate one. Runtime-owned Sessions write the
|
|
4417
|
+
required snapshot before publishing the delivery event, so a failed or
|
|
4418
|
+
ambiguous canonical reference fails delivery closed. The field may be absent
|
|
4419
|
+
only when reading a legacy persisted record. Event replay, Session compaction,
|
|
4420
|
+
and Runtime restart preserve a newly recorded reference.
|
|
4421
|
+
|
|
4422
|
+
Since v0.7.82, submission resolves the admitted authoritative Run before it
|
|
4423
|
+
reads mutable canonical Session history. Active interrupt and after-turn
|
|
4424
|
+
requests therefore do not surface a transient `data_changed` response caused by
|
|
4425
|
+
predecessor persistence. `after_turn` still waits for predecessor settlement,
|
|
4426
|
+
and an exact `operationId` still produces one admission and one queue item.
|
|
4405
4427
|
|
|
4406
4428
|
Interrupt admission closes when the Runner publishes its final completion or
|
|
4407
4429
|
terminal error signal, or when the Run's supplied `abortSignal` aborts, even if
|
|
@@ -4581,10 +4603,16 @@ must reconcile the product side effect itself before offering a new user
|
|
|
4581
4603
|
action. `runtime.hostTools.getInvocation(invocationId)` returns the durable
|
|
4582
4604
|
metadata state `prepared`, `dispatched`, `completed`, `unknown`, or
|
|
4583
4605
|
`not_dispatched`; it never returns handler input, result, or credential data.
|
|
4584
|
-
The daemon writes the `dispatched` marker before attempting the reverse frame
|
|
4585
|
-
and never auto-replays an invocation.
|
|
4586
|
-
|
|
4587
|
-
|
|
4606
|
+
The daemon writes the `dispatched` marker before attempting the reverse frame
|
|
4607
|
+
and never auto-replays an invocation.
|
|
4608
|
+
|
|
4609
|
+
Since v0.7.82, a live Host Tool lease contributes a complete, lease-scoped
|
|
4610
|
+
capability snapshot to unfiltered `mcp_search`. An explicit `server` filter
|
|
4611
|
+
selects only that named MCP or Host Tool source; it never leaks tools from the
|
|
4612
|
+
other source. A provider without a snapshot is queried uncapped and reported as
|
|
4613
|
+
incomplete/unknown rather than silently presenting a truncated catalog.
|
|
4614
|
+
|
|
4615
|
+
### Coder admission, typed events, and transport-safe inputs
|
|
4588
4616
|
|
|
4589
4617
|
The daemon enforces Coder session admission on the server for list/create/load,
|
|
4590
4618
|
run, settings, delete, rewind, fork, compact, transcript, event, interaction,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodax-ai/kodax",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.82",
|
|
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,
|
|
@@ -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-IHPH3444.js";import"./chunk-CDCCTM5I.js";import"./chunk-PMKAG4SZ.js";import"./chunk-RPF5RGWZ.js";import"./chunk-VECRQTSD.js";import"./chunk-RXXKDR6Y.js";import"./chunk-HTVLCHWH.js";import"./chunk-BWX4YZX3.js";import"./chunk-GC4JBMBS.js";import"./chunk-KHEFUT6O.js";import"./chunk-TRNAWSXP.js";import"./chunk-CEB5FDND.js";import"./chunk-EVXIJPZ6.js";import"./chunk-E7C4DRD2.js";import"./chunk-6UENDY33.js";import"./chunk-ONUPGMER.js";export{a as ArgumentCompleter,b as createArgumentCompleter};
|