@kodax-ai/kodax 0.7.80 → 0.7.81
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 +31 -0
- package/README.md +14 -3
- package/README_CN.md +12 -3
- package/dist/chunks/{agent-5PHGNFW3.js → agent-UMBMZLCW.js} +1 -1
- package/dist/chunks/argument-completer-MHRFNBWB.js +2 -0
- package/dist/chunks/{chunk-PMKAG4SZ.js → chunk-5XCQGFGP.js} +1 -1
- package/dist/chunks/{chunk-CDCCTM5I.js → chunk-BNFUIZKY.js} +2 -2
- package/dist/chunks/{chunk-GC4JBMBS.js → chunk-D66EWPAX.js} +4 -4
- package/dist/chunks/{chunk-RXXKDR6Y.js → chunk-FGQZUN7C.js} +1 -1
- package/dist/chunks/{chunk-UZSHBQER.js → chunk-FUK6OUCW.js} +16 -16
- package/dist/chunks/{chunk-IHPH3444.js → chunk-ITY7HLSS.js} +2 -2
- package/dist/chunks/{chunk-T5U4OP2N.js → chunk-LLWRPP6U.js} +1 -1
- package/dist/chunks/{chunk-CEB5FDND.js → chunk-QMPJJCBE.js} +57 -57
- package/dist/chunks/{chunk-BWX4YZX3.js → chunk-RX3X3PER.js} +2 -2
- package/dist/chunks/{chunk-FQ7NVMSU.js → chunk-THBWLOA3.js} +136 -136
- package/dist/chunks/chunk-VTFG3B7U.js +348 -0
- package/dist/chunks/{chunk-RPF5RGWZ.js → chunk-WLGQ6XI2.js} +151 -151
- package/dist/chunks/{compaction-config-6J6XCBJS.js → compaction-config-SSPH4V36.js} +1 -1
- package/dist/chunks/{construction-bootstrap-KPCAE3VN.js → construction-bootstrap-P5ZKDLTM.js} +1 -1
- package/dist/chunks/{dist-RWEVZOFK.js → dist-7J763N5L.js} +1 -1
- package/dist/chunks/{host-OGS2R5J4.js → host-22ITM5E3.js} +1 -1
- package/dist/chunks/{run-manager-2YMM3BOT.js → run-manager-ABNHISGD.js} +1 -1
- package/dist/chunks/{utils-2YHRUZYC.js → utils-ATKWKEDP.js} +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +1 -1
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1155 -1155
- package/dist/kodax_resume.js +4 -4
- package/dist/runtime-worker.js +1067 -1067
- package/dist/sandbox-workspace-session.js +4 -4
- package/dist/sdk-a2a.d.ts +5 -5
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +4 -4
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +9 -9
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.d.ts +9 -9
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +12 -5
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +3 -3
- 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-D_bvmnHs.d.ts} +2 -0
- package/dist/types-chunks/{capsule.d-BuFJaYxA.d.ts → capsule.d-BFpbFq-C.d.ts} +3 -1
- package/dist/types-chunks/{guardrail.d-DM-OK0m3.d.ts → guardrail.d-CrSR1T_a.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-CewTvUKV.d.ts → public-api.d-C-lVOhdt.d.ts} +1 -1
- package/dist/types-chunks/{repl.d-DvXQtgr7.d.ts → repl.d-DGi0nhpl.d.ts} +4 -4
- package/dist/types-chunks/{sdk-session-C59RUrri.d.ts → sdk-session-D5Ffq4h-.d.ts} +1 -1
- package/dist/types-chunks/{shell-command-sets.d-Dp4UvPLL.d.ts → shell-command-sets.d-jmXn8K7r.d.ts} +1 -1
- package/dist/types-chunks/{types.d-yuJzE82x.d.ts → types.d-BqYq_ljy.d.ts} +1 -1
- package/dist/types-chunks/{utils.d-BpACJmzt.d.ts → utils.d-Z-YpaiUS.d.ts} +3 -3
- package/docs/SDK_EMBEDDER_GUIDE.md +13 -4
- package/package.json +1 -1
- package/dist/chunks/argument-completer-FXRZFMTC.js +0 -2
- package/dist/chunks/chunk-VECRQTSD.js +0 -348
|
@@ -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).
|
|
@@ -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 };
|
|
@@ -4,7 +4,7 @@ import { a as CostTracker } from './cost-tracker.d-BeaenODW.js';
|
|
|
4
4
|
import { e2 as RunnerToolCall, ez as ToolGuardrail } from './controller.d-C2aHqzHj.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-D_bvmnHs.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
|
|
@@ -1,4 +1,4 @@
|
|
|
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-D_bvmnHs.js';
|
|
2
2
|
import { G as KodaXReasoningMode, k as KodaXMessage, T as KodaXTaskResultMetadata } from './types.d-CgrXrFrq.js';
|
|
3
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-C2aHqzHj.js';
|
|
4
4
|
|
|
@@ -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-
|
|
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-Z-YpaiUS.js';
|
|
2
|
+
import { ae as SessionStorage$1, S as PermissionMode, L as LearningBinding } from './public-api.d-C-lVOhdt.js';
|
|
3
|
+
import { a1 as KodaXOptions, ad as KodaXResult } from './bash-prefix-extractor.d-D_bvmnHs.js';
|
|
4
4
|
import { ca as KodaXSessionStorage, bY as KodaXSessionData } from './controller.d-C2aHqzHj.js';
|
|
5
|
-
import { s as AutoModeStats } from './guardrail.d-
|
|
5
|
+
import { s as AutoModeStats } from './guardrail.d-CrSR1T_a.js';
|
|
6
6
|
|
|
7
7
|
interface ReplRuntimePermissionGrantSuggestion {
|
|
8
8
|
readonly id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as CreatableHistoryItem, ar as ToolCall } from './public-api.d-
|
|
1
|
+
import { h as CreatableHistoryItem, ar as ToolCall } from './public-api.d-C-lVOhdt.js';
|
|
2
2
|
import { k as KodaXMessage, c as KodaXContentBlock } from './types.d-CgrXrFrq.js';
|
|
3
3
|
import { cc as KodaXSessionUiHistoryItem, cg as KodaXSessionUiToolCall } from './controller.d-C2aHqzHj.js';
|
|
4
4
|
|
|
@@ -2,7 +2,7 @@ import { aa as KodaXWireReasoningEffort, a2 as KodaXToolDefinition, a4 as KodaXT
|
|
|
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
4
|
import { bO as KodaXJsonValue, bC as KodaXExtensionSessionRecord, bE as KodaXExtensionStore } from './controller.d-C2aHqzHj.js';
|
|
5
|
-
import { aQ as KodaXToolExecutionContext, by as ToolSideEffect } from './bash-prefix-extractor.d-
|
|
5
|
+
import { aQ as KodaXToolExecutionContext, by as ToolSideEffect } from './bash-prefix-extractor.d-D_bvmnHs.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
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-C2aHqzHj.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-
|
|
4
|
-
import { d as AgentsFile, s as AutoModeStats, S as KodaXMcpServersConfig } from './guardrail.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-D_bvmnHs.js';
|
|
4
|
+
import { d as AgentsFile, s as AutoModeStats, S as KodaXMcpServersConfig } from './guardrail.d-CrSR1T_a.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-C-lVOhdt.js';
|
|
7
7
|
import { SpawnSyncReturns } from 'child_process';
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -4398,10 +4398,19 @@ For input that must join the current active Run, submit `delivery:'interrupt'`.
|
|
|
4398
4398
|
This does not create a Run. Each accepted input appears as `queued` in the
|
|
4399
4399
|
owning Run's `interruptInputs`. At the next safe boundary, all accumulated
|
|
4400
4400
|
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.
|
|
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.
|
|
4405
|
+
|
|
4406
|
+
Since v0.7.81, every newly delivered item also carries `entryId`: the exact
|
|
4407
|
+
physical Session-lineage user entry created by canonical persistence. The same
|
|
4408
|
+
value appears in `runtime.runs.get(runId).interruptInputs`; do not infer it
|
|
4409
|
+
from a transcript ordinal or fabricate one. Runtime-owned Sessions write the
|
|
4410
|
+
required snapshot before publishing the delivery event, so a failed or
|
|
4411
|
+
ambiguous canonical reference fails delivery closed. The field may be absent
|
|
4412
|
+
only when reading a legacy persisted record. Event replay, Session compaction,
|
|
4413
|
+
and Runtime restart preserve a newly recorded reference.
|
|
4405
4414
|
|
|
4406
4415
|
Interrupt admission closes when the Runner publishes its final completion or
|
|
4407
4416
|
terminal error signal, or when the Run's supplied `abortSignal` aborts, even if
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodax-ai/kodax",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.81",
|
|
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};
|