@kodax-ai/kodax 0.7.51 → 0.7.53
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 +1838 -1800
- package/README.md +6 -0
- package/README_CN.md +4 -0
- package/dist/chunks/{agent-EFA7BSE7.js → agent-DZ37KWZI.js} +1 -1
- package/dist/chunks/argument-completer-OFPM36IZ.js +2 -0
- package/dist/chunks/{chunk-JJTUBNQX.js → chunk-5YQDGVDB.js} +1 -1
- package/dist/chunks/chunk-67HVIUEO.js +307 -0
- package/dist/chunks/chunk-CLIRXPAJ.js +425 -0
- package/dist/chunks/{chunk-CCZMQE3Q.js → chunk-D4MGMUDL.js} +1 -1
- package/dist/chunks/chunk-LE6STNVN.js +31 -0
- package/dist/chunks/{chunk-WQTVG2T5.js → chunk-OQL4ISVD.js} +170 -170
- package/dist/chunks/{chunk-ODVA5VTE.js → chunk-RFE5EC7W.js} +215 -215
- package/dist/chunks/{chunk-HMATTIU6.js → chunk-XFCAXDSD.js} +2 -2
- package/dist/chunks/{compaction-config-UBPCNGC2.js → compaction-config-OF2T45MC.js} +1 -1
- package/dist/chunks/{construction-bootstrap-WY5MDXRX.js → construction-bootstrap-JIE7LYNN.js} +1 -1
- package/dist/chunks/dist-BOHLKKR5.js +2 -0
- package/dist/chunks/{dist-B73FQEAA.js → dist-Z6U7TWKJ.js} +1 -1
- package/dist/chunks/{utils-HVOJRR5C.js → utils-AB4DNRZC.js} +1 -1
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1 -1
- package/dist/kodax_cli.js +991 -932
- package/dist/sdk-agent.d.ts +8 -8
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +12 -12
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-llm.d.ts +3 -3
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-repl.d.ts +47 -12
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-session.d.ts +5 -5
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/types-chunks/{base.d-GZ6jvICS.d.ts → base.d-BBNUF9nz.d.ts} +1 -0
- package/dist/types-chunks/{bash-prefix-extractor.d-DTOiDMlG.d.ts → bash-prefix-extractor.d-BpNoRkSD.d.ts} +57 -4
- package/dist/types-chunks/{capsule.d-CXGdLGAn.d.ts → capsule.d-CNonpwAZ.d.ts} +3 -3
- package/dist/types-chunks/{guardrail.d-D47yu9AO.d.ts → guardrail.d-B18oO1gt.d.ts} +3 -3
- package/dist/types-chunks/{process.d-B8kEBnQD.d.ts → process.d-Bj82oJhD.d.ts} +1 -1
- package/dist/types-chunks/{resolver.d-D75XFRH2.d.ts → resolver.d-CCX9NXWP.d.ts} +2 -1
- package/dist/types-chunks/{sdk-session-BKQJN9oH.d.ts → sdk-session-BkaGuIC6.d.ts} +4 -4
- package/dist/types-chunks/{storage.d-BN1xIn8R.d.ts → storage.d-BUIiD4gq.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DQ_hdN70.d.ts → types.d-D4jL-gAA.d.ts} +1 -1
- package/dist/types-chunks/{utils.d-ZfRDo-kX.d.ts → utils.d-B3fwJEMd.d.ts} +26 -20
- package/package.json +2 -2
- package/dist/chunks/argument-completer-MAJVHSE7.js +0 -2
- package/dist/chunks/chunk-E3HENKTX.js +0 -420
- package/dist/chunks/chunk-FAIGYAEX.js +0 -301
- package/dist/chunks/chunk-PEWH3AAL.js +0 -31
- package/dist/chunks/dist-BTWS2ENP.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { U as KodaXGoalState, f as AgentMessage, b0 as StopHookFn, a4 as KodaXSessionLineage, a9 as KodaXSessionScope, aa as KodaXSessionStorage, W as KodaXJsonValue, C as ChildTaskRegistry, bl as WorkflowEventCorrelation, s as CompactionUpdate, bx as WorkflowProcessEvent, m as AskUserQuestionOptions, k as AskUserMultiOptions, y as Guardrail, bo as WorkflowIsolation, Y as KodaXSessionArtifactLedgerEntry, aN as SessionErrorMetadata, v as DiscoveredInstance, b4 as TaskAbortRegistry } from './process.d-
|
|
2
|
-
import { _ as KodaXTokenUsage, o as KodaXMessage, G as KodaXReasoningMode, l as KodaXHarnessProfile, V as KodaXTaskWorkIntent, M as KodaXReviewScale, R as KodaXTaskComplexity, a as KodaXAmaFanoutClass, T as KodaXTaskRoutingDecision, U as KodaXTaskType, N as KodaXRiskLevel, j as KodaXExecutionMode, c as KodaXAmaProfile, d as KodaXAmaTactic, b as KodaXAmaFanoutPolicy, f as KodaXBaseProvider } from './base.d-
|
|
1
|
+
import { U as KodaXGoalState, f as AgentMessage, b0 as StopHookFn, a4 as KodaXSessionLineage, a9 as KodaXSessionScope, aa as KodaXSessionStorage, Q as KodaXExtensionSessionState, P as KodaXExtensionSessionRecord, W as KodaXJsonValue, C as ChildTaskRegistry, bl as WorkflowEventCorrelation, s as CompactionUpdate, bx as WorkflowProcessEvent, m as AskUserQuestionOptions, k as AskUserMultiOptions, y as Guardrail, bo as WorkflowIsolation, Y as KodaXSessionArtifactLedgerEntry, aN as SessionErrorMetadata, v as DiscoveredInstance, b4 as TaskAbortRegistry } from './process.d-Bj82oJhD.js';
|
|
2
|
+
import { _ as KodaXTokenUsage, o as KodaXMessage, G as KodaXReasoningMode, l as KodaXHarnessProfile, V as KodaXTaskWorkIntent, M as KodaXReviewScale, R as KodaXTaskComplexity, a as KodaXAmaFanoutClass, T as KodaXTaskRoutingDecision, U as KodaXTaskType, N as KodaXRiskLevel, j as KodaXExecutionMode, c as KodaXAmaProfile, d as KodaXAmaTactic, b as KodaXAmaFanoutPolicy, f as KodaXBaseProvider } from './base.d-BBNUF9nz.js';
|
|
3
3
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation } from 'vscode-languageserver-protocol';
|
|
4
4
|
import { C as CapabilityKind, b as CapabilityResult } from './capability.d-3C62G8Eq.js';
|
|
5
5
|
import { a as CostTracker } from './cost-tracker.d-wRtyEW9d.js';
|
|
@@ -1233,6 +1233,26 @@ interface KodaXActivityEventMeta extends KodaXWorkflowEventMeta {
|
|
|
1233
1233
|
interface KodaXToolEventMeta extends KodaXActivityEventMeta {
|
|
1234
1234
|
readonly toolId?: string;
|
|
1235
1235
|
}
|
|
1236
|
+
interface KodaXSidecarMessageEvent {
|
|
1237
|
+
readonly source: 'sidecar-verifier';
|
|
1238
|
+
readonly verdict: 'revise' | 'blocked';
|
|
1239
|
+
readonly recipient: 'main-agent' | 'user';
|
|
1240
|
+
readonly delivery: 'synthetic-user-message' | 'budget-exhausted' | 'terminal-block';
|
|
1241
|
+
/** Exact actionable text from the sidecar. `budget-exhausted` means it was not injected. */
|
|
1242
|
+
readonly content: string;
|
|
1243
|
+
readonly suggestedFix?: string;
|
|
1244
|
+
readonly trace?: string;
|
|
1245
|
+
}
|
|
1246
|
+
interface KodaXTodoDriftWarningEvent {
|
|
1247
|
+
readonly kind: 'work_started_without_claimed_todo';
|
|
1248
|
+
readonly toolName: string;
|
|
1249
|
+
readonly toolCallId?: string;
|
|
1250
|
+
readonly count: number;
|
|
1251
|
+
readonly pendingCount: number;
|
|
1252
|
+
readonly openCount: number;
|
|
1253
|
+
readonly firstPendingTodoId?: string;
|
|
1254
|
+
readonly firstPendingTodoSubject?: string;
|
|
1255
|
+
}
|
|
1236
1256
|
interface KodaXEvents {
|
|
1237
1257
|
/** FEATURE_229: correlates child-agent SDK callbacks back to a workflow run/item. */
|
|
1238
1258
|
workflowCorrelation?: WorkflowEventCorrelation;
|
|
@@ -1347,6 +1367,16 @@ interface KodaXEvents {
|
|
|
1347
1367
|
maxAttempts: number;
|
|
1348
1368
|
}, meta?: KodaXActivityEventMeta) => void;
|
|
1349
1369
|
onRepoIntelligenceTrace?: (event: KodaXRepoIntelligenceTraceEvent) => void;
|
|
1370
|
+
/**
|
|
1371
|
+
* Fired when the Sidecar Verifier produces an actionable message.
|
|
1372
|
+
*
|
|
1373
|
+
* `revise` is usually injected back into the main agent as a synthetic user
|
|
1374
|
+
* message; if the reanimate budget is already exhausted, the same verdict is
|
|
1375
|
+
* surfaced with `delivery: "budget-exhausted"` and no injection occurs.
|
|
1376
|
+
* `blocked` is surfaced terminally to the user. Accept remains silent here
|
|
1377
|
+
* because there is no sidecar-to-agent reply to show.
|
|
1378
|
+
*/
|
|
1379
|
+
onSidecarMessage?: (event: KodaXSidecarMessageEvent) => void;
|
|
1350
1380
|
/**
|
|
1351
1381
|
* FEATURE_097 (v0.7.34): emitted whenever the Scout-seeded todo list
|
|
1352
1382
|
* changes — initial seed at `emit_scout_verdict`, per-item updates from
|
|
@@ -1357,6 +1387,13 @@ interface KodaXEvents {
|
|
|
1357
1387
|
* (FEATURE_086 onRepoIntelligenceTrace single-rail precedent).
|
|
1358
1388
|
*/
|
|
1359
1389
|
onTodoUpdate?: (items: TodoList) => void;
|
|
1390
|
+
/**
|
|
1391
|
+
* Warn-only telemetry: a successful real work tool completed while the
|
|
1392
|
+
* visible todo list had pending items but no item marked in_progress.
|
|
1393
|
+
* The runner does not mutate the todo list for this signal; it only
|
|
1394
|
+
* nudges the next model turn to call todo_update explicitly.
|
|
1395
|
+
*/
|
|
1396
|
+
onTodoDriftWarning?: (event: KodaXTodoDriftWarningEvent) => void;
|
|
1360
1397
|
/** Structured provider recovery event (Feature 045) */
|
|
1361
1398
|
onProviderRecovery?: (event: ProviderRecoveryEvent, meta?: KodaXActivityEventMeta) => void;
|
|
1362
1399
|
onComplete?: () => void;
|
|
@@ -1455,6 +1492,10 @@ interface KodaXSessionOptions {
|
|
|
1455
1492
|
tag?: string;
|
|
1456
1493
|
storage?: KodaXSessionStorage;
|
|
1457
1494
|
initialMessages?: KodaXMessage[];
|
|
1495
|
+
/** Host-provided extension state paired with initialMessages, avoiding a full storage load. */
|
|
1496
|
+
initialExtensionState?: KodaXExtensionSessionState;
|
|
1497
|
+
/** Host-provided extension records paired with initialMessages, avoiding a full storage load. */
|
|
1498
|
+
initialExtensionRecords?: KodaXExtensionSessionRecord[];
|
|
1458
1499
|
/**
|
|
1459
1500
|
* Persistence ownership signal (FEATURE_173 dual-writer fix).
|
|
1460
1501
|
*
|
|
@@ -2227,6 +2268,12 @@ interface KodaXManagedTaskRuntimeState {
|
|
|
2227
2268
|
reviewFilesOrAreas?: string[];
|
|
2228
2269
|
toolOutputTruncated?: boolean;
|
|
2229
2270
|
toolOutputTruncationNotes?: string[];
|
|
2271
|
+
/**
|
|
2272
|
+
* Warn-only todo hygiene telemetry: successful real work started while
|
|
2273
|
+
* pending todos existed and no item was marked in_progress. The runner
|
|
2274
|
+
* never mutates todo state from this signal.
|
|
2275
|
+
*/
|
|
2276
|
+
todoDriftWarnings?: KodaXTodoDriftWarningEvent[];
|
|
2230
2277
|
managedTimeline?: KodaXManagedLiveEvent[];
|
|
2231
2278
|
evidenceAcquisitionMode?: 'overview' | 'diff-bundle' | 'diff-slice' | 'file-read';
|
|
2232
2279
|
consecutiveEvidenceOnlyIterations?: number;
|
|
@@ -2290,6 +2337,10 @@ type KodaXScoutSuspiciousSignal = 'mutation-expected-but-none' | 'budget-exhaust
|
|
|
2290
2337
|
interface KodaXManagedProtocolPayload {
|
|
2291
2338
|
verdict?: KodaXManagedVerdictPayload;
|
|
2292
2339
|
}
|
|
2340
|
+
interface KodaXRuntimeSessionSnapshot {
|
|
2341
|
+
extensionState?: KodaXExtensionSessionState;
|
|
2342
|
+
extensionRecords?: KodaXExtensionSessionRecord[];
|
|
2343
|
+
}
|
|
2293
2344
|
interface KodaXResult {
|
|
2294
2345
|
success: boolean;
|
|
2295
2346
|
lastText: string;
|
|
@@ -2310,6 +2361,8 @@ interface KodaXResult {
|
|
|
2310
2361
|
contextTokenSnapshot?: KodaXContextTokenSnapshot;
|
|
2311
2362
|
/** Latest provider usage when the caller has it directly. */
|
|
2312
2363
|
usage?: KodaXTokenUsage;
|
|
2364
|
+
/** Serializable runtime-owned session state for host-owned persistence. */
|
|
2365
|
+
runtimeSessionSnapshot?: KodaXRuntimeSessionSnapshot;
|
|
2313
2366
|
/**
|
|
2314
2367
|
* FEATURE_076: artifact ledger pre-extracted before round-boundary reshape.
|
|
2315
2368
|
* Populated when the reshape replaces `messages` with a clean {user, assistant}
|
|
@@ -2781,5 +2834,5 @@ interface CreateBashPrefixExtractorOptions {
|
|
|
2781
2834
|
*/
|
|
2782
2835
|
declare function createBashPrefixExtractor(opts: CreateBashPrefixExtractorOptions): BashPrefixExtractor;
|
|
2783
2836
|
|
|
2784
|
-
export { BASH_POLICY_SPEC as B, buildGoalRuntimeBinding as
|
|
2785
|
-
export type { KodaXRuntimeVerificationContract as $, KodaXManagedBudgetSnapshot as A, ChildSnapshotEvent as C, DiagnosticsRequest as D, ExtensionRuntimeContract as E, FailureStage as F, GoalBlockedResult as G, KodaXManagedProtocolPayload as H, KodaXManagedTask as I, KodaXManagedTaskRuntimeState as J, KodaXActivityEventMeta as K, KodaXManagedTaskStatusEvent as L, KodaXManualTopicId as M, KodaXManualTopicInput as N, KodaXMemoryStrategy as O, KodaXOptions as P, KodaXOrchestrationVerdict as Q, KodaXParentReductionContract as R, KodaXProviderPolicyHints as S, KodaXRepoIntelligenceCapability as T, KodaXRepoIntelligenceMode as U, KodaXRepoIntelligenceResolvedMode as V, KodaXRepoIntelligenceTrace as W, KodaXRepoIntelligenceTraceEvent as X, KodaXRepoRoutingSignals as Y, KodaXResult as Z, KodaXRoleRoundSummary as _, BashPrefixExtractor as a, KodaXSelfManualConfig as a0, KodaXSessionControl as a1, KodaXSessionMutators as a2, KodaXSessionOptions as a3,
|
|
2837
|
+
export { BASH_POLICY_SPEC as B, buildGoalRuntimeBinding as aR, createBashPrefixExtractor as aS, decideWorkflowInvocation as aT, extractCommandPrefix as aU, getDefaultLspService as aV, makeDisabledGoalToolsContext as aW, shutdownDefaultLspService as aX, withGoalBeforeNextTurn as aY, withGoalStopHook as aZ, workflowStartOutcomeConsumesTurn as a_, LSP_SERVERS as aq, LspService as as };
|
|
2838
|
+
export type { KodaXRuntimeVerificationContract as $, KodaXManagedBudgetSnapshot as A, ChildSnapshotEvent as C, DiagnosticsRequest as D, ExtensionRuntimeContract as E, FailureStage as F, GoalBlockedResult as G, KodaXManagedProtocolPayload as H, KodaXManagedTask as I, KodaXManagedTaskRuntimeState as J, KodaXActivityEventMeta as K, KodaXManagedTaskStatusEvent as L, KodaXManualTopicId as M, KodaXManualTopicInput as N, KodaXMemoryStrategy as O, KodaXOptions as P, KodaXOrchestrationVerdict as Q, KodaXParentReductionContract as R, KodaXProviderPolicyHints as S, KodaXRepoIntelligenceCapability as T, KodaXRepoIntelligenceMode as U, KodaXRepoIntelligenceResolvedMode as V, KodaXRepoIntelligenceTrace as W, KodaXRepoIntelligenceTraceEvent as X, KodaXRepoRoutingSignals as Y, KodaXResult as Z, KodaXRoleRoundSummary as _, BashPrefixExtractor as a, KodaXSelfManualConfig as a0, KodaXSessionControl as a1, KodaXSessionMutators as a2, KodaXSessionOptions as a3, KodaXSidecarMessageEvent as a4, KodaXSkillInvocationContext as a5, KodaXSkillMap as a6, KodaXSkillProjectionConfidence as a7, KodaXTaskCapabilityHint as a8, KodaXTaskContract as a9, RecoveryLadderStep as aA, RecoveryResult as aB, ResilienceClassification as aC, ResilienceErrorClass as aD, ResolveKodaXManualInput as aE, ResolveKodaXManualOptions as aF, ResolveKodaXManualResult as aG, TodoItem as aH, TodoList as aI, TodoStatus as aJ, WorkflowHostPolicy as aK, WorkflowInvocationAction as aL, WorkflowInvocationPolicyDecision as aM, WorkflowInvocationPolicyInput as aN, WorkflowInvocationSource as aO, WorkflowInvocationTrigger as aP, WorkflowStartOutcome as aQ, KodaXTaskEvidenceArtifact as aa, KodaXTaskEvidenceBundle as ab, KodaXTaskEvidenceEntry as ac, KodaXTaskRole as ad, KodaXTaskRoleAssignment as ae, KodaXTaskStatus as af, KodaXTaskSurface as ag, KodaXTaskToolPolicy as ah, KodaXTaskVerificationContract as ai, KodaXTaskVerificationCriterion as aj, KodaXTaskWorkItem as ak, KodaXToolEventMeta as al, KodaXToolExecutionContext as am, KodaXVerificationScorecard as an, KodaXVerificationScorecardCriterion as ao, KodaXWorkflowEventMeta as ap, LspServerInfo as ar, LspServiceConfig as at, ProviderExecutionState as au, ProviderRecoveryEvent as av, ProviderResilienceConfig as aw, ProviderResiliencePolicy as ax, RecoveryAction as ay, RecoveryDecision as az, BashPrefixResult as b, CreateBashPrefixExtractorOptions as c, ExtractCommandPrefixOptions as d, GoalCompleteResult as e, GoalCreateInput as f, GoalLifecycleContext as g, GoalRuntimeBinding as h, GoalRuntimeBindingDeps as i, GoalToolsContext as j, KodaXAgentMode as k, KodaXBudgetDisclosureZone as l, KodaXBudgetExtensionRequest as m, KodaXChildAgentResult as n, KodaXChildContextBundle as o, KodaXChildExecutionResult as p, KodaXCompactionOverride as q, KodaXContextOptions as r, KodaXContextTokenSnapshot as s, KodaXEvents as t, KodaXFanoutBranchLifecycle as u, KodaXFanoutBranchRecord as v, KodaXFanoutBranchTransition as w, KodaXFanoutSchedulerInput as x, KodaXFanoutSchedulerPlan as y, KodaXInputArtifact as z };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as KodaXMessage } from './base.d-
|
|
2
|
-
import { Q as QueueEventListener, e as QueuedMessage, E as EnqueueInput, D as DequeueFilter } from './types.d-
|
|
3
|
-
import { f as AgentMessage, aM as SessionEntry, aK as Session, aO as SessionExtension, a4 as KodaXSessionLineage, W as KodaXJsonValue, p as CompactionDetails, O as KodaXCompactMemorySeed, a0 as KodaXSessionEntry, ab as KodaXSessionTreeNode, a3 as KodaXSessionLabelEntry, a2 as KodaXSessionGoalEntry, a7 as KodaXSessionNavigationOptions, Y as KodaXSessionArtifactLedgerEntry, x as FileOperations, br as WorkflowMeta, bs as WorkflowModelHint, bt as WorkflowModule } from './process.d-
|
|
1
|
+
import { o as KodaXMessage } from './base.d-BBNUF9nz.js';
|
|
2
|
+
import { Q as QueueEventListener, e as QueuedMessage, E as EnqueueInput, D as DequeueFilter } from './types.d-D4jL-gAA.js';
|
|
3
|
+
import { f as AgentMessage, aM as SessionEntry, aK as Session, aO as SessionExtension, a4 as KodaXSessionLineage, W as KodaXJsonValue, p as CompactionDetails, O as KodaXCompactMemorySeed, a0 as KodaXSessionEntry, ab as KodaXSessionTreeNode, a3 as KodaXSessionLabelEntry, a2 as KodaXSessionGoalEntry, a7 as KodaXSessionNavigationOptions, Y as KodaXSessionArtifactLedgerEntry, x as FileOperations, br as WorkflowMeta, bs as WorkflowModelHint, bt as WorkflowModule } from './process.d-Bj82oJhD.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @kodax-ai/agent Constants
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './config.d-CJy1WENT.js';
|
|
2
|
-
import { f as KodaXBaseProvider } from './base.d-
|
|
2
|
+
import { f as KodaXBaseProvider } from './base.d-BBNUF9nz.js';
|
|
3
3
|
import { a as CostTracker } from './cost-tracker.d-wRtyEW9d.js';
|
|
4
|
-
import { aG as RunnerToolCall } from './process.d-
|
|
5
|
-
import { f as ToolGuardrail } from './types.d-
|
|
4
|
+
import { aG as RunnerToolCall } from './process.d-Bj82oJhD.js';
|
|
5
|
+
import { f as ToolGuardrail } from './types.d-D4jL-gAA.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as KodaXMessage, $ as KodaXToolDefinition, G as KodaXReasoningMode, a1 as KodaXToolResultContentItem, X as KodaXThinkingBlock, J as KodaXRedactedThinkingBlock } from './base.d-
|
|
1
|
+
import { o as KodaXMessage, $ as KodaXToolDefinition, G as KodaXReasoningMode, a1 as KodaXToolResultContentItem, X as KodaXThinkingBlock, J as KodaXRedactedThinkingBlock } from './base.d-BBNUF9nz.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @kodax-ai/agent Types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as KodaXReasoningMode, Y as KodaXThinkingBudgetMap, Z as KodaXThinkingDepth, u as KodaXProviderConfig, F as KodaXReasoningCapability, I as KodaXReasoningRequest, U as KodaXTaskType, H as KodaXReasoningOverride, f as KodaXBaseProvider, a5 as KodaXVerifyCredentialResult, $ as KodaXToolDefinition, o as KodaXMessage, C as KodaXProviderStreamOptions, O as KodaXStreamResult, p as KodaXModelDescriptor, t as KodaXProviderCapabilityProfile, a6 as KodaXVerifyStrategy, i as KodaXCustomProviderConfig, n as KodaXListModelsResult } from './base.d-
|
|
1
|
+
import { G as KodaXReasoningMode, Y as KodaXThinkingBudgetMap, Z as KodaXThinkingDepth, u as KodaXProviderConfig, F as KodaXReasoningCapability, I as KodaXReasoningRequest, U as KodaXTaskType, H as KodaXReasoningOverride, f as KodaXBaseProvider, a5 as KodaXVerifyCredentialResult, $ as KodaXToolDefinition, o as KodaXMessage, C as KodaXProviderStreamOptions, O as KodaXStreamResult, p as KodaXModelDescriptor, t as KodaXProviderCapabilityProfile, a6 as KodaXVerifyStrategy, i as KodaXCustomProviderConfig, n as KodaXListModelsResult } from './base.d-BBNUF9nz.js';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
3
|
import OpenAI from 'openai';
|
|
4
4
|
|
|
@@ -201,6 +201,7 @@ declare abstract class KodaXOpenAICompatProvider extends KodaXBaseProvider {
|
|
|
201
201
|
private serializeUserMessage;
|
|
202
202
|
private serializeSystemMessage;
|
|
203
203
|
private convertMessages;
|
|
204
|
+
private repairToolCallHistory;
|
|
204
205
|
}
|
|
205
206
|
|
|
206
207
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as PermissionMode, S as SessionData, F as FileSessionStorage } from './storage.d-
|
|
2
|
-
import { G as KodaXReasoningMode, o as KodaXMessage, h as KodaXContentBlock } from './base.d-
|
|
3
|
-
import { k as KodaXAgentMode } from './bash-prefix-extractor.d-
|
|
4
|
-
import { ac as KodaXSessionUiHistoryItem, ag as KodaXSessionUiToolCall } from './process.d-
|
|
1
|
+
import { b as PermissionMode, S as SessionData, F as FileSessionStorage } from './storage.d-BUIiD4gq.js';
|
|
2
|
+
import { G as KodaXReasoningMode, o as KodaXMessage, h as KodaXContentBlock } from './base.d-BBNUF9nz.js';
|
|
3
|
+
import { k as KodaXAgentMode } from './bash-prefix-extractor.d-BpNoRkSD.js';
|
|
4
|
+
import { ac as KodaXSessionUiHistoryItem, ag as KodaXSessionUiToolCall } from './process.d-Bj82oJhD.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as BashPrefixExtractor } from './bash-prefix-extractor.d-
|
|
2
|
-
import { $ as KodaXSessionData, a4 as KodaXSessionLineage, a7 as KodaXSessionNavigationOptions, a8 as KodaXSessionRuntimeInfo, aa as KodaXSessionStorage } from './process.d-
|
|
1
|
+
import { a as BashPrefixExtractor } from './bash-prefix-extractor.d-BpNoRkSD.js';
|
|
2
|
+
import { $ as KodaXSessionData, a4 as KodaXSessionLineage, a7 as KodaXSessionNavigationOptions, a8 as KodaXSessionRuntimeInfo, aa as KodaXSessionStorage } from './process.d-Bj82oJhD.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Permission Types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { y as Guardrail, aG as RunnerToolCall, d as Agent, f as AgentMessage, aJ as RunnerToolResult, aS as Span } from './process.d-
|
|
1
|
+
import { y as Guardrail, aG as RunnerToolCall, d as Agent, f as AgentMessage, aJ as RunnerToolResult, aS as Span } from './process.d-Bj82oJhD.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Guardrail Runtime — FEATURE_085 (v0.7.26).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { P as KodaXOptions, s as KodaXContextTokenSnapshot, k as KodaXAgentMode, U as KodaXRepoIntelligenceMode,
|
|
2
|
-
import { c as SessionStorage$1, b as PermissionMode } from './storage.d-
|
|
3
|
-
import {
|
|
4
|
-
import { o as KodaXMessage, G as KodaXReasoningMode, t as KodaXProviderCapabilityProfile, H as KodaXReasoningOverride, i as KodaXCustomProviderConfig } from './base.d-
|
|
5
|
-
import { A as AgentsFile, f as AutoModeStats, l as KodaXMcpServersConfig } from './guardrail.d-
|
|
1
|
+
import { P as KodaXOptions, s as KodaXContextTokenSnapshot, k as KodaXAgentMode, U as KodaXRepoIntelligenceMode, a5 as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-BpNoRkSD.js';
|
|
2
|
+
import { c as SessionStorage$1, b as PermissionMode } from './storage.d-BUIiD4gq.js';
|
|
3
|
+
import { ac as KodaXSessionUiHistoryItem, a4 as KodaXSessionLineage, Y as KodaXSessionArtifactLedgerEntry, Q as KodaXExtensionSessionState, P as KodaXExtensionSessionRecord, a8 as KodaXSessionRuntimeInfo, aa as KodaXSessionStorage, $ as KodaXSessionData, bD as WorkflowProcessSource } from './process.d-Bj82oJhD.js';
|
|
4
|
+
import { o as KodaXMessage, G as KodaXReasoningMode, t as KodaXProviderCapabilityProfile, H as KodaXReasoningOverride, i as KodaXCustomProviderConfig } from './base.d-BBNUF9nz.js';
|
|
5
|
+
import { A as AgentsFile, f as AutoModeStats, l as KodaXMcpServersConfig } from './guardrail.d-B18oO1gt.js';
|
|
6
6
|
import * as readline from 'readline';
|
|
7
7
|
import { SpawnSyncReturns } from 'child_process';
|
|
8
8
|
|
|
@@ -27,21 +27,6 @@ interface InkREPLOptions extends KodaXOptions {
|
|
|
27
27
|
*/
|
|
28
28
|
declare function runInkInteractiveMode(options: InkREPLOptions): Promise<void>;
|
|
29
29
|
|
|
30
|
-
interface SessionStorage extends KodaXSessionStorage {
|
|
31
|
-
list(gitRoot?: string): Promise<Array<{
|
|
32
|
-
id: string;
|
|
33
|
-
title: string;
|
|
34
|
-
msgCount: number;
|
|
35
|
-
tag?: string;
|
|
36
|
-
runtimeInfo?: KodaXSessionData['runtimeInfo'];
|
|
37
|
-
}>>;
|
|
38
|
-
}
|
|
39
|
-
interface RepLOptions extends KodaXOptions {
|
|
40
|
-
storage?: SessionStorage;
|
|
41
|
-
}
|
|
42
|
-
declare function runInteractiveMode(options: RepLOptions): Promise<void>;
|
|
43
|
-
declare function processSpecialSyntax(input: string): Promise<string>;
|
|
44
|
-
|
|
45
30
|
/**
|
|
46
31
|
* KodaX Interactive Context Management - 交互式上下文管理
|
|
47
32
|
*/
|
|
@@ -53,6 +38,10 @@ interface InteractiveContext {
|
|
|
53
38
|
contextTokenSnapshot?: KodaXContextTokenSnapshot;
|
|
54
39
|
lineage?: KodaXSessionLineage;
|
|
55
40
|
artifactLedger?: KodaXSessionArtifactLedgerEntry[];
|
|
41
|
+
extensionState?: KodaXExtensionSessionState;
|
|
42
|
+
extensionRecords?: KodaXExtensionSessionRecord[];
|
|
43
|
+
extensionStateDirty?: boolean;
|
|
44
|
+
extensionRecordsDirty?: boolean;
|
|
56
45
|
sessionId: string;
|
|
57
46
|
title: string;
|
|
58
47
|
gitRoot?: string;
|
|
@@ -68,9 +57,26 @@ declare function createInteractiveContext(options: {
|
|
|
68
57
|
existingUiHistory?: KodaXSessionUiHistoryItem[];
|
|
69
58
|
existingLineage?: KodaXSessionLineage;
|
|
70
59
|
existingArtifactLedger?: KodaXSessionArtifactLedgerEntry[];
|
|
60
|
+
existingExtensionState?: KodaXExtensionSessionState;
|
|
61
|
+
existingExtensionRecords?: KodaXExtensionSessionRecord[];
|
|
71
62
|
}): Promise<InteractiveContext>;
|
|
72
63
|
declare function touchContext(context: InteractiveContext): void;
|
|
73
64
|
|
|
65
|
+
interface SessionStorage extends KodaXSessionStorage {
|
|
66
|
+
list(gitRoot?: string): Promise<Array<{
|
|
67
|
+
id: string;
|
|
68
|
+
title: string;
|
|
69
|
+
msgCount: number;
|
|
70
|
+
tag?: string;
|
|
71
|
+
runtimeInfo?: KodaXSessionData['runtimeInfo'];
|
|
72
|
+
}>>;
|
|
73
|
+
}
|
|
74
|
+
interface RepLOptions extends KodaXOptions {
|
|
75
|
+
storage?: SessionStorage;
|
|
76
|
+
}
|
|
77
|
+
declare function runInteractiveMode(options: RepLOptions): Promise<void>;
|
|
78
|
+
declare function processSpecialSyntax(input: string): Promise<string>;
|
|
79
|
+
|
|
74
80
|
/**
|
|
75
81
|
* UI Context Interface - UI 交互上下文接口
|
|
76
82
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kodax-ai/kodax",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.53",
|
|
4
4
|
"description": "极致轻量化 Coding Agent - TypeScript 实现,支持 12 个 LLM 提供商,可发布为免 Node 单文件二进制",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"vitest": "^3.2.4"
|
|
142
142
|
},
|
|
143
143
|
"engines": {
|
|
144
|
-
"node": ">=
|
|
144
|
+
"node": ">=20.0.0"
|
|
145
145
|
},
|
|
146
146
|
"repository": {
|
|
147
147
|
"type": "git",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{sa as a,ta as b}from"./chunk-ODVA5VTE.js";import"./chunk-CCZMQE3Q.js";import"./chunk-JJTUBNQX.js";import"./chunk-E3HENKTX.js";import"./chunk-WQTVG2T5.js";import"./chunk-PEWH3AAL.js";import"./chunk-HMATTIU6.js";import"./chunk-V4WSBIXB.js";export{a as ArgumentCompleter,b as createArgumentCompleter};
|