@kodax-ai/kodax 0.7.69 → 0.7.71
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 +187 -1
- package/LICENSE +158 -191
- package/README.md +100 -17
- package/README_CN.md +77 -11
- package/config-templates/integrations/a2a.example.jsonc +62 -18
- package/dist/chunks/{agent-DQRXT6M7.js → agent-X2EWQADL.js} +1 -1
- package/dist/chunks/argument-completer-BLNXDO2F.js +2 -0
- package/dist/chunks/chunk-23X6REO4.js +46 -0
- package/dist/chunks/{chunk-Y4WOTWUC.js → chunk-44QXPEEE.js} +1 -1
- package/dist/chunks/chunk-4DY756KL.js +70 -0
- package/dist/chunks/{chunk-AWMTNUDS.js → chunk-52JSZ77P.js} +1 -1
- package/dist/chunks/{chunk-I4TPQEJN.js → chunk-64NQBOSN.js} +1 -1
- package/dist/chunks/{chunk-URC6ZI6P.js → chunk-A2TFSV5M.js} +1 -1
- package/dist/chunks/{chunk-ZG4DMYBS.js → chunk-A574DBTV.js} +2 -2
- package/dist/chunks/{chunk-VAZ25MDX.js → chunk-F7KGYHJ3.js} +2 -2
- package/dist/chunks/{chunk-M7TCFYTO.js → chunk-GVTM4Z6O.js} +66 -22
- package/dist/chunks/{chunk-PA76WUBL.js → chunk-PHH4TRGF.js} +2 -2
- package/dist/chunks/chunk-PVUXONQB.js +366 -0
- package/dist/chunks/{chunk-WW2O2DEP.js → chunk-SX2WFHIS.js} +1 -1
- package/dist/chunks/{chunk-4WIODYOH.js → chunk-T7LYK53M.js} +2 -2
- package/dist/chunks/{chunk-F7C7J6IM.js → chunk-VRSVNU2Y.js} +3 -3
- package/dist/chunks/chunk-Y5XKAN7C.js +755 -0
- package/dist/chunks/{chunk-NGJURAY5.js → chunk-Z535BARK.js} +4 -4
- package/dist/chunks/chunk-ZJIMT5I3.js +78 -0
- package/dist/chunks/compaction-config-5KKKXYFT.js +2 -0
- package/dist/chunks/{construction-bootstrap-GH6RW6ST.js → construction-bootstrap-OXDDDW6O.js} +1 -1
- package/dist/chunks/{dist-DRBKYVHF.js → dist-GOUP4YVE.js} +1 -1
- package/dist/chunks/{dist-RWL2RBO4.js → dist-IXJRJ27U.js} +1 -1
- package/dist/chunks/host-VRKDAN26.js +2 -0
- package/dist/chunks/run-manager-Z3W6MDO7.js +2 -0
- package/dist/chunks/{utils-QYE5Y73D.js → utils-CFOXDCB5.js} +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.js +6 -6
- package/dist/kodax_cli.js +1365 -1296
- package/dist/provider-capabilities.json +101 -57
- package/dist/runtime-worker.js +1224 -1156
- package/dist/sdk-a2a.d.ts +187 -22
- package/dist/sdk-a2a.js +8 -7
- package/dist/sdk-agent.d.ts +49 -20
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +33 -25
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +7 -7
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.d.ts +2 -2
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +17 -17
- package/dist/sdk-repl.js +1 -1
- package/dist/sdk-runtime.d.ts +96 -17
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +7 -7
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +10 -10
- package/dist/types-chunks/{base.d-CYjtB68X.d.ts → base.d-Cz_rwpOi.d.ts} +2 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-BkIA8Wto.d.ts → bash-prefix-extractor.d-YoiZl5yt.d.ts} +15 -5
- package/dist/types-chunks/{capability-learning.d-WtsyRv3O.d.ts → capability-learning.d-_lR0J4iR.d.ts} +1 -1
- package/dist/types-chunks/{capability.d-3C62G8Eq.d.ts → capability.d-K664nHOS.d.ts} +21 -6
- package/dist/types-chunks/{capsule.d-xJvfh4YR.d.ts → capsule.d-CK5Pfz1k.d.ts} +3 -3
- package/dist/types-chunks/{commands.d-DkPfcQWG.d.ts → commands.d-D6g2jq8V.d.ts} +4 -4
- package/dist/types-chunks/{guardrail.d-R7AiGfrI.d.ts → guardrail.d-DdeDWnVu.d.ts} +3 -3
- package/dist/types-chunks/{guardrail.d-6ZDbNbHO.d.ts → guardrail.d-DilYC1dh.d.ts} +1 -1
- package/dist/types-chunks/{manager.d-CoEuPRAo.d.ts → manager.d-B67TmPO1.d.ts} +27 -3
- package/dist/types-chunks/{public-api.d-7G4--RZE.d.ts → public-api.d-BvCp5VkW.d.ts} +3 -3
- package/dist/types-chunks/{resolver.d-CIVoGc97.d.ts → resolver.d-ssgNSlrh.d.ts} +2 -2
- package/dist/types-chunks/{run-manager.d-BaXtkryp.d.ts → run-manager.d-DxU3SSGR.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-BQccrODn.d.ts → sdk-session-wGpa7X_U.d.ts} +4 -4
- package/dist/types-chunks/{types.d-CJR7t6iW.d.ts → types.d-CEZZSY9s.d.ts} +2 -2
- package/dist/types-chunks/{types.d-BtC4yLYO.d.ts → types.d-CRCaLt_s.d.ts} +55 -7
- package/dist/types-chunks/{types.d-TTvpAGWf.d.ts → types.d-Cqaw71Ax.d.ts} +4 -2
- package/dist/types-chunks/{types.d-C9YHEAmA.d.ts → types.d-CzsLFqmf.d.ts} +5 -5
- package/dist/types-chunks/{utils.d-BbB5jzi1.d.ts → utils.d-Cb6vdvFM.d.ts} +5 -5
- package/docs/SDK_EMBEDDER_GUIDE.md +357 -55
- package/package.json +5 -2
- package/dist/chunks/argument-completer-RSK6CCGP.js +0 -2
- package/dist/chunks/chunk-NGHQIGVW.js +0 -46
- package/dist/chunks/chunk-PQ3XUSY2.js +0 -357
- package/dist/chunks/chunk-UJEMSPM5.js +0 -78
- package/dist/chunks/chunk-VYKFM3TB.js +0 -751
- package/dist/chunks/chunk-Z4PPLJF2.js +0 -60
- package/dist/chunks/compaction-config-ABLL6UH3.js +0 -2
- package/dist/chunks/host-7SAB4WEC.js +0 -2
- package/dist/chunks/run-manager-XMDKTONJ.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as KodaXProviderConfig, k as KodaXMessage, a1 as KodaXToolDefinition, H as KodaXReasoningRequest, y as KodaXProviderStreamOptions, N as KodaXStreamResult, a7 as KodaXVerifyCredentialResult, l as KodaXModelDescriptor, p as KodaXProviderCapabilityProfile, B as KodaXReasoningCapability, G as KodaXReasoningProfile, n as KodaXNormalizedReasoningRequest, a9 as KodaXWireReasoningEffort } from './types.d-
|
|
1
|
+
import { q as KodaXProviderConfig, k as KodaXMessage, a1 as KodaXToolDefinition, H as KodaXReasoningRequest, y as KodaXProviderStreamOptions, N as KodaXStreamResult, a7 as KodaXVerifyCredentialResult, l as KodaXModelDescriptor, p as KodaXProviderCapabilityProfile, B as KodaXReasoningCapability, G as KodaXReasoningProfile, n as KodaXNormalizedReasoningRequest, a9 as KodaXWireReasoningEffort } from './types.d-Cqaw71Ax.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Retry-After header parsing — FEATURE_130 (v0.7.36).
|
|
@@ -219,6 +219,7 @@ declare abstract class KodaXBaseProvider {
|
|
|
219
219
|
getModel(): string;
|
|
220
220
|
getAvailableModels(): string[];
|
|
221
221
|
getModelDescriptor(modelId?: string): KodaXModelDescriptor | undefined;
|
|
222
|
+
protected getWireModelId(modelId?: string): string;
|
|
222
223
|
getBaseUrl(): string | undefined;
|
|
223
224
|
getApiKeyEnv(): string;
|
|
224
225
|
getCapabilityProfile(): KodaXProviderCapabilityProfile;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a0 as KodaXTokenUsage, k as KodaXMessage, a1 as KodaXToolDefinition, a9 as KodaXWireReasoningEffort, U as KodaXTaskRoutingDecision, V as KodaXTaskType, W as KodaXTaskWorkIntent, Q as KodaXTaskComplexity, L as KodaXRiskLevel, h as KodaXHarnessProfile, f as KodaXExecutionMode, b as KodaXChildFanoutClass, F as KodaXReasoningMode, J as KodaXReviewScale } from './types.d-
|
|
1
|
+
import { aT as KodaXGoalState, M as AgentMessage, cX as StopHookFn, bb as KodaXSessionLineage, aZ as KodaXJsonValue, aN as KodaXExtensionSessionRecord, f as Agent, dj as WorkflowIsolation, aO as KodaXExtensionSessionState, b2 as KodaXSessionArtifactLedgerEntry, cI as SessionErrorMetadata, bj as KodaXSessionScope, bk as KodaXSessionStorage, bK as MemoryContextIdentity, bW as MemoryPack, aX as KodaXInputArtifact, D as AgentExecutorPlaneBinding, ac as ChildTaskRegistry, dg as WorkflowEventCorrelation, ai as CompactionUpdate, dt as WorkflowProcessEvent, df as WorkflowEvent, a9 as AskUserQuestionOptions, a5 as AskUserAnswer, a7 as AskUserMultiOptions, c8 as MemoryReviewPlan, a$ as KodaXMemoryOutcomeDigest, c9 as MemoryReviewRunner, aC as Guardrail, an as DiscoveredInstance, c$ as TaskAbortRegistry } from './types.d-CRCaLt_s.js';
|
|
2
|
+
import { a0 as KodaXTokenUsage, k as KodaXMessage, a1 as KodaXToolDefinition, a9 as KodaXWireReasoningEffort, U as KodaXTaskRoutingDecision, V as KodaXTaskType, W as KodaXTaskWorkIntent, Q as KodaXTaskComplexity, L as KodaXRiskLevel, h as KodaXHarnessProfile, f as KodaXExecutionMode, b as KodaXChildFanoutClass, F as KodaXReasoningMode, J as KodaXReviewScale } from './types.d-Cqaw71Ax.js';
|
|
3
3
|
import { I as ISkillRegistry, d as SkillDynamicContextExecutor } from './types.d-vJExiRje.js';
|
|
4
4
|
import { Diagnostic, Position, Location, Hover, DocumentSymbol, SymbolInformation, WorkspaceSymbol, CallHierarchyItem, CallHierarchyIncomingCall, CallHierarchyOutgoingCall } from 'vscode-languageserver-protocol';
|
|
5
5
|
import { K as KodaXLlmTimeoutConfig, a as CostTracker } from './cost-tracker.d-BeaenODW.js';
|
|
6
|
-
import { C as CapabilityKind, b as CapabilityResult } from './capability.d-
|
|
7
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
6
|
+
import { C as CapabilityKind, f as CapabilitySearchSnapshot, b as CapabilityResult } from './capability.d-K664nHOS.js';
|
|
7
|
+
import { K as KodaXBaseProvider } from './base.d-Cz_rwpOi.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* FEATURE_192 v0.7.44 Phase C — Goal-tools execution context.
|
|
@@ -910,7 +910,7 @@ declare function buildGoalRuntimeBinding(deps: GoalRuntimeBindingDeps): GoalRunt
|
|
|
910
910
|
* configure / install / troubleshoot KodaX?" questions. Pure data + a
|
|
911
911
|
* deterministic resolver — no RAG, no vector store, no network fetch.
|
|
912
912
|
*/
|
|
913
|
-
type KodaXManualTopicId = 'overview' | 'install' | 'quickstart' | 'providers' | 'custom-providers' | 'config' | 'permissions' | 'commands' | 'tools' | 'agents' | 'skills' | 'extensions' | 'mcp' | 'repo-intelligence' | 'sessions' | 'memory' | 'doctor' | 'sdk' | 'troubleshooting';
|
|
913
|
+
type KodaXManualTopicId = 'overview' | 'license' | 'install' | 'quickstart' | 'providers' | 'custom-providers' | 'config' | 'permissions' | 'commands' | 'tools' | 'agents' | 'skills' | 'extensions' | 'mcp' | 'a2a' | 'repo-intelligence' | 'sessions' | 'memory' | 'doctor' | 'sdk' | 'troubleshooting';
|
|
914
914
|
/** A pointer to the code/doc the topic is derived from (for traceability). */
|
|
915
915
|
interface KodaXManualSource {
|
|
916
916
|
readonly label: string;
|
|
@@ -1312,6 +1312,10 @@ interface CapabilityRuntimeContract {
|
|
|
1312
1312
|
limit?: number;
|
|
1313
1313
|
server?: string;
|
|
1314
1314
|
}): Promise<unknown[]>;
|
|
1315
|
+
searchCapabilitySnapshot?(providerId: string, query: string, options?: {
|
|
1316
|
+
kind?: CapabilityKind;
|
|
1317
|
+
server?: string;
|
|
1318
|
+
}): Promise<CapabilitySearchSnapshot>;
|
|
1315
1319
|
describeCapability(providerId: string, capabilityId: string): Promise<unknown>;
|
|
1316
1320
|
executeCapability(providerId: string, capabilityId: string, input: Record<string, unknown>): Promise<CapabilityResult>;
|
|
1317
1321
|
readCapability(providerId: string, capabilityId: string, options?: Record<string, unknown>): Promise<CapabilityResult>;
|
|
@@ -2593,6 +2597,8 @@ interface KodaXContextOptions {
|
|
|
2593
2597
|
* and shell execution. Defaults to `gitRoot`, then `process.cwd()`.
|
|
2594
2598
|
*/
|
|
2595
2599
|
executionCwd?: string;
|
|
2600
|
+
/** Fail-closed host policy applied to every concrete file a read tool opens. */
|
|
2601
|
+
assertReadablePath?: (candidate: string) => void;
|
|
2596
2602
|
/**
|
|
2597
2603
|
* Best-known token snapshot for the current conversation history.
|
|
2598
2604
|
* When present, the core will prefer it over local estimation and rebase it as
|
|
@@ -3218,6 +3224,10 @@ interface KodaXToolExecutionContext {
|
|
|
3218
3224
|
skillScriptRunner?: KodaXSkillScriptRunner;
|
|
3219
3225
|
/** Working directory used to resolve relative paths and execute shell commands. */
|
|
3220
3226
|
executionCwd?: string;
|
|
3227
|
+
/** Fail-closed host policy applied to every concrete file a read tool opens. */
|
|
3228
|
+
assertReadablePath?: (candidate: string) => void;
|
|
3229
|
+
/** Host tool visibility ceiling inherited by child agents. */
|
|
3230
|
+
toolVisibilityPolicy?: KodaXToolVisibilityPolicy;
|
|
3221
3231
|
/** Maximum physical input capacity of the active model request. */
|
|
3222
3232
|
maximumInputTokens?: number;
|
|
3223
3233
|
/** Remaining capacity for the complete tool-result batch in this request. */
|
|
@@ -10,6 +10,24 @@
|
|
|
10
10
|
* because it is coupled to the coding CLI surface.
|
|
11
11
|
*/
|
|
12
12
|
type CapabilityKind = 'tool' | 'resource' | 'prompt';
|
|
13
|
+
interface CapabilitySearchOptions {
|
|
14
|
+
kind?: CapabilityKind;
|
|
15
|
+
limit?: number;
|
|
16
|
+
server?: string;
|
|
17
|
+
}
|
|
18
|
+
type CapabilitySearchFreshness = 'live' | 'cached' | 'stale' | 'mixed' | 'unknown';
|
|
19
|
+
interface CapabilitySearchFailure {
|
|
20
|
+
source: string;
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
23
|
+
/** Complete internal search view. Model-facing tools page this snapshot. */
|
|
24
|
+
interface CapabilitySearchSnapshot {
|
|
25
|
+
items: unknown[];
|
|
26
|
+
revision?: string;
|
|
27
|
+
complete: boolean;
|
|
28
|
+
freshness: CapabilitySearchFreshness;
|
|
29
|
+
failures?: CapabilitySearchFailure[];
|
|
30
|
+
}
|
|
13
31
|
interface CapabilityResult {
|
|
14
32
|
kind: CapabilityKind;
|
|
15
33
|
content?: string;
|
|
@@ -21,11 +39,8 @@ interface CapabilityResult {
|
|
|
21
39
|
interface CapabilityProvider {
|
|
22
40
|
id: string;
|
|
23
41
|
kinds: CapabilityKind[];
|
|
24
|
-
search?: (query: string, options?:
|
|
25
|
-
|
|
26
|
-
limit?: number;
|
|
27
|
-
server?: string;
|
|
28
|
-
}) => Promise<unknown[]>;
|
|
42
|
+
search?: (query: string, options?: CapabilitySearchOptions) => Promise<unknown[]>;
|
|
43
|
+
searchSnapshot?: (query: string, options?: Omit<CapabilitySearchOptions, 'limit'>) => Promise<CapabilitySearchSnapshot>;
|
|
29
44
|
describe?: (id: string) => Promise<unknown>;
|
|
30
45
|
execute?: (id: string, input: Record<string, unknown>) => Promise<CapabilityResult>;
|
|
31
46
|
read?: (id: string, options?: Record<string, unknown>) => Promise<CapabilityResult>;
|
|
@@ -36,4 +51,4 @@ interface CapabilityProvider {
|
|
|
36
51
|
dispose?: () => Promise<void>;
|
|
37
52
|
}
|
|
38
53
|
|
|
39
|
-
export type { CapabilityKind as C, CapabilityProvider as a, CapabilityResult as b };
|
|
54
|
+
export type { CapabilityKind as C, CapabilityProvider as a, CapabilityResult as b, CapabilitySearchFailure as c, CapabilitySearchFreshness as d, CapabilitySearchOptions as e, CapabilitySearchSnapshot as f };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { k as KodaXMessage } from './types.d-
|
|
2
|
-
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter } from './types.d-
|
|
3
|
-
import {
|
|
1
|
+
import { k as KodaXMessage } from './types.d-Cqaw71Ax.js';
|
|
2
|
+
import { Q as QueueEventListener, c as QueuedMessage, E as EnqueueInput, D as DequeueFilter } from './types.d-CEZZSY9s.js';
|
|
3
|
+
import { M as AgentMessage, cH as SessionEntry, cF as Session, cJ as SessionExtension, bb as KodaXSessionLineage, aZ as KodaXJsonValue, af as CompactionDetails, aM as KodaXCompactMemorySeed, b7 as KodaXSessionEntry, bl as KodaXSessionTreeNode, ba as KodaXSessionLabelEntry, b9 as KodaXSessionGoalEntry, b4 as KodaXSessionClientNoticeEntry, bh as KodaXSessionRewindMarkerEntry, bc as KodaXSessionMemoryOutcomeDigestEntry, bd as KodaXSessionMemoryReviewReceiptEntry, bg as KodaXSessionNavigationOptions, b2 as KodaXSessionArtifactLedgerEntry, aA as FileOperations, dm as WorkflowMeta, dn as WorkflowModelHint, dp as WorkflowModule } from './types.d-CRCaLt_s.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @kodax-ai/agent Constants
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as SessionStorage$1, f as PermissionMode } from './public-api.d-
|
|
2
|
-
import { Y as KodaXOptions, a6 as KodaXResult } from './bash-prefix-extractor.d-
|
|
3
|
-
import { n as RuntimeSurfaceStatus, 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 } from './utils.d-
|
|
4
|
-
import {
|
|
1
|
+
import { h as SessionStorage$1, f as PermissionMode } from './public-api.d-BvCp5VkW.js';
|
|
2
|
+
import { Y as KodaXOptions, a6 as KodaXResult } from './bash-prefix-extractor.d-YoiZl5yt.js';
|
|
3
|
+
import { n as RuntimeSurfaceStatus, 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 } from './utils.d-Cb6vdvFM.js';
|
|
4
|
+
import { bk as KodaXSessionStorage, b6 as KodaXSessionData } from './types.d-CRCaLt_s.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* InkREPL - Ink-based REPL Adapter
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { b as McpServersConfig, M as McpConnectMode, a as McpServerConfig, c as McpTransportKind } from './config.d-CJy1WENT.js';
|
|
2
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
2
|
+
import { K as KodaXBaseProvider } from './base.d-Cz_rwpOi.js';
|
|
3
3
|
import { a as CostTracker } from './cost-tracker.d-BeaenODW.js';
|
|
4
|
-
import {
|
|
5
|
-
import { d as ToolGuardrail } from './guardrail.d-
|
|
4
|
+
import { cz as RunnerToolCall } from './types.d-CRCaLt_s.js';
|
|
5
|
+
import { d as ToolGuardrail } from './guardrail.d-DilYC1dh.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 {
|
|
1
|
+
import { aC as Guardrail, cz as RunnerToolCall, f as Agent, M as AgentMessage, cC as RunnerToolResult, cN as Span } from './types.d-CRCaLt_s.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Guardrail Runtime — FEATURE_085 (v0.7.26).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CapabilityProvider, C as CapabilityKind, b as CapabilityResult } from './capability.d-
|
|
1
|
+
import { a as CapabilityProvider, C as CapabilityKind, f as CapabilitySearchSnapshot, b as CapabilityResult } from './capability.d-K664nHOS.js';
|
|
2
2
|
import { a as McpServerConfig, b as McpServersConfig, M as McpConnectMode } from './config.d-CJy1WENT.js';
|
|
3
3
|
|
|
4
4
|
type McpCapabilityKind = 'tool' | 'resource' | 'prompt';
|
|
@@ -180,6 +180,12 @@ interface McpServerRuntimeDiagnostics {
|
|
|
180
180
|
resources: number;
|
|
181
181
|
prompts: number;
|
|
182
182
|
}
|
|
183
|
+
interface McpDiscoveryCatalog {
|
|
184
|
+
snapshot: McpServerCatalogSnapshot;
|
|
185
|
+
freshness: 'live' | 'stale';
|
|
186
|
+
complete: boolean;
|
|
187
|
+
error?: string;
|
|
188
|
+
}
|
|
183
189
|
declare class McpServerRuntime {
|
|
184
190
|
private readonly serverId;
|
|
185
191
|
private readonly config;
|
|
@@ -195,7 +201,10 @@ declare class McpServerRuntime {
|
|
|
195
201
|
private readonly completedElicitations;
|
|
196
202
|
private nextRequestId;
|
|
197
203
|
private initialized;
|
|
204
|
+
private liveCatalogValidated;
|
|
205
|
+
private catalogInvalidationVersion;
|
|
198
206
|
private connectPromise?;
|
|
207
|
+
private discoveryPromise?;
|
|
199
208
|
private catalog?;
|
|
200
209
|
private serverCapabilities?;
|
|
201
210
|
private cachedHttpTransport?;
|
|
@@ -208,6 +217,9 @@ declare class McpServerRuntime {
|
|
|
208
217
|
/** Load catalog from memory or disk only — never triggers a lazy connection. */
|
|
209
218
|
getCachedCatalog(): Promise<McpServerCatalogSnapshot | undefined>;
|
|
210
219
|
getCatalog(forceRefresh?: boolean): Promise<McpServerCatalogSnapshot>;
|
|
220
|
+
/** Validate cached capability truth on first model-facing discovery use. */
|
|
221
|
+
getDiscoveryCatalog(): Promise<McpDiscoveryCatalog>;
|
|
222
|
+
private resolveDiscoveryCatalog;
|
|
211
223
|
describeCapability(capabilityId: string): Promise<McpCapabilityDescriptor | undefined>;
|
|
212
224
|
callTool(name: string, args: Record<string, unknown>): Promise<{
|
|
213
225
|
content?: string;
|
|
@@ -272,6 +284,7 @@ declare class McpServerRuntime {
|
|
|
272
284
|
private dispatchServerRequest;
|
|
273
285
|
private failPending;
|
|
274
286
|
private applyCatalogSnapshot;
|
|
287
|
+
private emptyCatalog;
|
|
275
288
|
}
|
|
276
289
|
|
|
277
290
|
/**
|
|
@@ -338,15 +351,26 @@ declare class McpCapabilityProvider implements CapabilityProvider {
|
|
|
338
351
|
limit?: number;
|
|
339
352
|
server?: string;
|
|
340
353
|
}): Promise<unknown[]>;
|
|
354
|
+
searchSnapshot(query: string, options?: {
|
|
355
|
+
kind?: CapabilityKind;
|
|
356
|
+
server?: string;
|
|
357
|
+
}): Promise<CapabilitySearchSnapshot>;
|
|
341
358
|
describe(id: string): Promise<unknown>;
|
|
342
359
|
execute(id: string, input: Record<string, unknown>): Promise<CapabilityResult>;
|
|
343
360
|
read(id: string, options?: Record<string, unknown>): Promise<CapabilityResult>;
|
|
344
361
|
getPrompt(id: string, args?: Record<string, unknown>): Promise<unknown>;
|
|
345
362
|
getPromptContext(): Promise<string | undefined>;
|
|
363
|
+
private formatPromptContext;
|
|
364
|
+
private formatExactIdPrompt;
|
|
365
|
+
private formatCompleteNamePrompt;
|
|
346
366
|
getDiagnostics(): Record<string, unknown> | undefined;
|
|
347
367
|
refresh(): Promise<void>;
|
|
348
368
|
dispose(): Promise<void>;
|
|
349
369
|
private collectCatalogItems;
|
|
370
|
+
private collectDiscoveryCatalog;
|
|
371
|
+
private formatPromptServerLine;
|
|
372
|
+
private formatPromptNameLines;
|
|
373
|
+
private formatFleetSummary;
|
|
350
374
|
private listServerDiagnostics;
|
|
351
375
|
private requireRuntime;
|
|
352
376
|
}
|
|
@@ -530,5 +554,5 @@ declare class McpManager {
|
|
|
530
554
|
*/
|
|
531
555
|
declare function createMcpManager(servers: McpServersConfig | undefined, options?: McpProviderOptions): McpManager;
|
|
532
556
|
|
|
533
|
-
export {
|
|
534
|
-
export type { McpCapabilityDescriptor as M, McpCapabilityKind as a, McpCapabilityRisk as c, McpCatalogItem as d,
|
|
557
|
+
export { getMcpCachePaths as A, normalizeMcpCapabilityId as B, parseMcpCapabilityId as C, searchMcpCatalog as D, McpCapabilityProvider as b, McpManager as i, McpServerRuntime as r, buildInitializeCapabilities as w, createMcpCapabilityId as x, createMcpManager as y, defaultMcpCacheDir as z };
|
|
558
|
+
export type { McpCapabilityDescriptor as M, McpCapabilityKind as a, McpCapabilityRisk as c, McpCatalogItem as d, McpDiscoveryCatalog as e, McpElicitRequest as f, McpElicitResult as g, McpIcon as h, McpProviderOptions as j, McpReverseCapabilities as k, McpRoot as l, McpSamplingRequest as m, McpSamplingResult as n, McpServerCatalog as o, McpServerCatalogSnapshot as p, McpServerLogs as q, McpServerRuntimeDiagnostics as s, McpServerStatus as t, McpServerToolList as u, McpToolTaskSupport as v };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as BashPrefixExtractor } from './bash-prefix-extractor.d-
|
|
2
|
-
import {
|
|
3
|
-
import { k as KodaXMessage, S as KodaXTaskResultMetadata } from './types.d-
|
|
1
|
+
import { a as BashPrefixExtractor } from './bash-prefix-extractor.d-YoiZl5yt.js';
|
|
2
|
+
import { b6 as KodaXSessionData, bb as KodaXSessionLineage, bg as KodaXSessionNavigationOptions, bi as KodaXSessionRuntimeInfo, bk as KodaXSessionStorage, aZ as KodaXJsonValue } from './types.d-CRCaLt_s.js';
|
|
3
|
+
import { k as KodaXMessage, S as KodaXTaskResultMetadata } from './types.d-Cqaw71Ax.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Permission Types
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { F as KodaXReasoningMode, M as KodaXStableEffortIntent, a9 as KodaXWireReasoningEffort, G as KodaXReasoningProfile, Z as KodaXThinkingBudgetMap, _ as KodaXThinkingDepth, q as KodaXProviderConfig, B as KodaXReasoningCapability, H as KodaXReasoningRequest, n as KodaXNormalizedReasoningRequest, V as KodaXTaskType, a7 as KodaXVerifyCredentialResult, a1 as KodaXToolDefinition, k as KodaXMessage, y as KodaXProviderStreamOptions, N as KodaXStreamResult, l as KodaXModelDescriptor, p as KodaXProviderCapabilityProfile, a8 as KodaXVerifyStrategy, d as KodaXCustomProviderConfig, j as KodaXListModelsResult } from './types.d-
|
|
1
|
+
import { F as KodaXReasoningMode, M as KodaXStableEffortIntent, a9 as KodaXWireReasoningEffort, G as KodaXReasoningProfile, Z as KodaXThinkingBudgetMap, _ as KodaXThinkingDepth, q as KodaXProviderConfig, B as KodaXReasoningCapability, H as KodaXReasoningRequest, n as KodaXNormalizedReasoningRequest, V as KodaXTaskType, a7 as KodaXVerifyCredentialResult, a1 as KodaXToolDefinition, k as KodaXMessage, y as KodaXProviderStreamOptions, N as KodaXStreamResult, l as KodaXModelDescriptor, p as KodaXProviderCapabilityProfile, a8 as KodaXVerifyStrategy, d as KodaXCustomProviderConfig, j as KodaXListModelsResult } from './types.d-Cqaw71Ax.js';
|
|
2
2
|
import Anthropic from '@anthropic-ai/sdk';
|
|
3
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
3
|
+
import { K as KodaXBaseProvider } from './base.d-Cz_rwpOi.js';
|
|
4
4
|
import OpenAI from 'openai';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dF as WorkflowProcessTrackerOptions, df as WorkflowEvent, dz as WorkflowProcessSnapshot, dt as WorkflowProcessEvent } from './types.d-CRCaLt_s.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* FEATURE_246 Part A0 (ADR-046) — neutral workflow run lifecycle manager.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as PermissionMode } from './public-api.d-
|
|
2
|
-
import { F as KodaXReasoningMode, k as KodaXMessage, c as KodaXContentBlock } from './types.d-
|
|
3
|
-
import { r as KodaXAgentMode } from './bash-prefix-extractor.d-
|
|
4
|
-
import {
|
|
1
|
+
import { f as PermissionMode } from './public-api.d-BvCp5VkW.js';
|
|
2
|
+
import { F as KodaXReasoningMode, k as KodaXMessage, c as KodaXContentBlock } from './types.d-Cqaw71Ax.js';
|
|
3
|
+
import { r as KodaXAgentMode } from './bash-prefix-extractor.d-YoiZl5yt.js';
|
|
4
|
+
import { bm as KodaXSessionUiHistoryItem, bq as KodaXSessionUiToolCall } from './types.d-CRCaLt_s.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* TextBuffer - Text buffer management class - 文本缓冲区管理类
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as KodaXTaskResultMetadata } from './types.d-
|
|
1
|
+
import { aX as KodaXInputArtifact } from './types.d-CRCaLt_s.js';
|
|
2
|
+
import { S as KodaXTaskResultMetadata } from './types.d-Cqaw71Ax.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @kodax-ai/agent/messaging — Message queue types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as KodaXMessage, a1 as KodaXToolDefinition, F as KodaXReasoningMode, a9 as KodaXWireReasoningEffort, a3 as KodaXToolResultContentItem, Y as KodaXThinkingBlock, I as KodaXRedactedThinkingBlock } from './types.d-
|
|
1
|
+
import { k as KodaXMessage, a1 as KodaXToolDefinition, F as KodaXReasoningMode, a9 as KodaXWireReasoningEffort, a3 as KodaXToolResultContentItem, Y as KodaXThinkingBlock, I as KodaXRedactedThinkingBlock } from './types.d-Cqaw71Ax.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @kodax-ai/agent Types
|
|
@@ -3549,6 +3549,10 @@ type DispatchableAgentOrigin = 'native' | 'constructed' | 'external';
|
|
|
3549
3549
|
type AgentExecutorProtocol = 'native' | 'a2a' | 'mcp' | 'http';
|
|
3550
3550
|
type ExternalAgentProtocol = Exclude<AgentExecutorProtocol, 'native'>;
|
|
3551
3551
|
type CapabilitySupport = 'supported' | 'unsupported' | 'conditional';
|
|
3552
|
+
type AgentJsonValue = string | number | boolean | null | AgentJsonObject | readonly AgentJsonValue[];
|
|
3553
|
+
interface AgentJsonObject {
|
|
3554
|
+
readonly [key: string]: AgentJsonValue;
|
|
3555
|
+
}
|
|
3552
3556
|
interface AgentCapabilityDeclaration {
|
|
3553
3557
|
readonly streaming: CapabilitySupport;
|
|
3554
3558
|
readonly durableTasks: CapabilitySupport;
|
|
@@ -3619,13 +3623,21 @@ interface ExternalAgentRegistration {
|
|
|
3619
3623
|
readonly agentId: string;
|
|
3620
3624
|
readonly displayName: string;
|
|
3621
3625
|
readonly description?: string;
|
|
3626
|
+
readonly managementOwner?: string;
|
|
3622
3627
|
readonly enabled: boolean;
|
|
3623
3628
|
readonly executorId: string;
|
|
3624
3629
|
readonly protocol: ExternalAgentProtocol;
|
|
3630
|
+
/**
|
|
3631
|
+
* Stable content identity for this execution route. Producers must issue a
|
|
3632
|
+
* new value whenever immutable execution content changes. The same immutable
|
|
3633
|
+
* content may reuse its stable revision after removal or Runtime restart;
|
|
3634
|
+
* different content must never reuse a revision.
|
|
3635
|
+
*/
|
|
3625
3636
|
readonly configurationRevision: string;
|
|
3626
3637
|
readonly endpointIdentityHash: string;
|
|
3627
3638
|
readonly credentialRef?: string;
|
|
3628
|
-
|
|
3639
|
+
/** Public, JSON-safe executor configuration. Secrets must remain references. */
|
|
3640
|
+
readonly executorConfig?: AgentJsonObject;
|
|
3629
3641
|
readonly skills?: readonly string[];
|
|
3630
3642
|
readonly inputModalities?: readonly string[];
|
|
3631
3643
|
readonly outputModalities?: readonly string[];
|
|
@@ -3640,6 +3652,7 @@ interface ExternalAgentRegistrationSummary {
|
|
|
3640
3652
|
readonly agentId: string;
|
|
3641
3653
|
readonly displayName: string;
|
|
3642
3654
|
readonly description?: string;
|
|
3655
|
+
readonly managementOwner?: string;
|
|
3643
3656
|
readonly enabled: boolean;
|
|
3644
3657
|
readonly executorId: string;
|
|
3645
3658
|
readonly protocol: ExternalAgentProtocol;
|
|
@@ -3715,7 +3728,7 @@ interface AgentTaskRegistrationSnapshot {
|
|
|
3715
3728
|
interface AgentExecutorTaskReference {
|
|
3716
3729
|
readonly idempotencyKey: string;
|
|
3717
3730
|
readonly remoteTaskId?: string;
|
|
3718
|
-
readonly metadata?:
|
|
3731
|
+
readonly metadata?: AgentJsonObject;
|
|
3719
3732
|
}
|
|
3720
3733
|
interface AgentTaskSnapshot extends AgentTaskCorrelation {
|
|
3721
3734
|
readonly taskId: string;
|
|
@@ -3835,15 +3848,39 @@ interface LocalAgentTaskUpdate {
|
|
|
3835
3848
|
interface AgentExecutorPlaneStore {
|
|
3836
3849
|
loadRegistrations(): Promise<readonly ExternalAgentRegistration[]>;
|
|
3837
3850
|
saveRegistrations(registrations: readonly ExternalAgentRegistration[]): Promise<void>;
|
|
3851
|
+
/**
|
|
3852
|
+
* Optional compatibility extension for durable executor recovery across a
|
|
3853
|
+
* registration update/removal. Built-in stores implement both hooks. A
|
|
3854
|
+
* custom store that omits them can only recover through a still-current
|
|
3855
|
+
* registration with the same revision; otherwise recovery fails closed.
|
|
3856
|
+
* Implement both hooks or neither. The plane is the single writer and
|
|
3857
|
+
* serializes whole-map replacements. Credential fields in snapshots are
|
|
3858
|
+
* references only; `executorConfig` must likewise contain public data or secret
|
|
3859
|
+
* references, never secret material. A store must never resolve or persist a
|
|
3860
|
+
* referenced secret value.
|
|
3861
|
+
*/
|
|
3862
|
+
loadTaskRegistrationSnapshots?(): Promise<readonly ExternalAgentRegistration[]>;
|
|
3863
|
+
saveTaskRegistrationSnapshots?(registrations: readonly ExternalAgentRegistration[]): Promise<void>;
|
|
3838
3864
|
loadTasks(): Promise<readonly AgentTaskSnapshot[]>;
|
|
3839
3865
|
saveTask(task: AgentTaskSnapshot): Promise<void>;
|
|
3840
3866
|
loadEvents(taskId: string): Promise<readonly AgentTaskEvent[]>;
|
|
3841
3867
|
appendEvent(event: AgentTaskEvent): Promise<void>;
|
|
3842
3868
|
}
|
|
3869
|
+
interface AgentRegistrationMutationOptions {
|
|
3870
|
+
/** `null` means that no registration may exist; `undefined` disables CAS. */
|
|
3871
|
+
readonly expectedConfigurationRevision?: string | null;
|
|
3872
|
+
/** `null` means that no manager may own the registration; `undefined` disables owner CAS. */
|
|
3873
|
+
readonly expectedManagementOwner?: string | null;
|
|
3874
|
+
}
|
|
3875
|
+
interface AgentRegistrationEnabledMutationOptions extends AgentRegistrationMutationOptions {
|
|
3876
|
+
/** Atomically claims an unowned registration; a different existing owner is rejected. */
|
|
3877
|
+
readonly claimOwner?: string;
|
|
3878
|
+
}
|
|
3843
3879
|
interface AgentRegistrationService {
|
|
3844
3880
|
list(): Promise<readonly ExternalAgentRegistrationSummary[]>;
|
|
3845
|
-
upsert(input: ExternalAgentRegistration): Promise<ExternalAgentRegistrationSummary>;
|
|
3846
|
-
|
|
3881
|
+
upsert(input: ExternalAgentRegistration, options?: AgentRegistrationMutationOptions): Promise<ExternalAgentRegistrationSummary>;
|
|
3882
|
+
setEnabled(agentId: string, enabled: boolean, options?: AgentRegistrationEnabledMutationOptions): Promise<ExternalAgentRegistrationSummary | undefined>;
|
|
3883
|
+
remove(agentId: string, options?: AgentRegistrationMutationOptions): Promise<boolean>;
|
|
3847
3884
|
}
|
|
3848
3885
|
interface AgentTaskService {
|
|
3849
3886
|
start(input: AgentTaskStartInput): Promise<AgentTaskSnapshot>;
|
|
@@ -3869,16 +3906,27 @@ interface AgentExecutorPlane {
|
|
|
3869
3906
|
preflight(input: AgentPreflightInput, localAgents?: readonly DispatchableAgentDescriptor[]): Promise<AgentPreflightResult>;
|
|
3870
3907
|
close(): Promise<void>;
|
|
3871
3908
|
}
|
|
3909
|
+
interface AgentExecutorPlaneBackgroundErrorContext {
|
|
3910
|
+
readonly operation: 'event-pump-recovery' | 'task-admission-event' | 'executor-dispose';
|
|
3911
|
+
readonly taskId?: string;
|
|
3912
|
+
readonly agentId?: string;
|
|
3913
|
+
readonly configurationRevision?: string;
|
|
3914
|
+
}
|
|
3915
|
+
type AgentExecutorPlaneBackgroundErrorHandler = (error: Error, context: AgentExecutorPlaneBackgroundErrorContext) => void | Promise<void>;
|
|
3872
3916
|
interface CreateAgentExecutorPlaneOptions {
|
|
3873
3917
|
readonly factories: readonly AgentExecutorFactory[];
|
|
3874
3918
|
readonly policy: AgentDispatchPolicy;
|
|
3875
3919
|
readonly credentialBroker?: AgentCredentialBroker;
|
|
3876
3920
|
readonly artifactPolicy?: AgentArtifactPolicy;
|
|
3921
|
+
/** Receives failures from detached event handling and best-effort resource cleanup. */
|
|
3922
|
+
readonly onBackgroundError?: AgentExecutorPlaneBackgroundErrorHandler;
|
|
3877
3923
|
readonly store?: AgentExecutorPlaneStore;
|
|
3878
3924
|
readonly now?: () => Date;
|
|
3879
3925
|
readonly createTaskId?: () => string;
|
|
3880
3926
|
readonly createIdempotencyKey?: () => string;
|
|
3927
|
+
/** Overall bound for draining admitted work and disposing executors during close. */
|
|
3928
|
+
readonly closeTimeoutMs?: number;
|
|
3881
3929
|
}
|
|
3882
3930
|
|
|
3883
|
-
export { ASK_USER_BACK_SIGNAL as A, ASK_USER_CUSTOM_INPUT_SIGNAL as a, InvariantSession as
|
|
3884
|
-
export type {
|
|
3931
|
+
export { ASK_USER_BACK_SIGNAL as A, ASK_USER_CUSTOM_INPUT_SIGNAL as a, InvariantSession as aK, DEFAULT_SYSTEM_CAP as al, MAX_TOOL_LOOP_ITERATIONS as by, SpanImpl as cQ, Runner as cu, buildAssistantMessageFromLlmResult as d$, Tracer as d6, _resetAdmittedAgentBindings as dX, _resetPresetDispatchers as dY, asSingleSelection as dZ, attachRunnerRecoveryTranscript as d_, WorkflowEventRecorder as dh, buildSystemPrompt as e0, buildToolResultMessage as e1, createAgent as e2, createHandoff as e3, createInMemorySession as e4, createInvariantSessionForAgent as e5, createStateWriter as e6, createTrace as e7, createWorkflowProcessTracker as e8, defaultTracer as e9, detectInstructionsInjection as ea, discoverInstances as eb, executeRunnerToolCall as ec, extractAssistantTextFromMessage as ed, getActiveUserInteraction as ee, getAdmittedAgentBindings as ef, hashMemoryIdentityComponent as eg, isAskUserCustomInputAnswer as eh, isFinalWorkflowProcessStatus as ei, isRunnableTool as ej, isRunnerLlmResult as ek, matchesMemoryApplicability as el, memoryApplicabilityFingerprint as em, normalizeHostMetadata as en, readRunnerRecoveryTranscript as eo, registerChildTask as ep, registerPresetDispatcher as eq, requestTaskStop as er, runAdmissionAudit as es, setActiveUserInteraction as et, setAdmittedAgentBindings as eu };
|
|
3932
|
+
export type { AgentTaskService as $, AgentExecutorPlaneBackgroundErrorContext as B, AgentExecutorPlaneBackgroundErrorHandler as C, AgentExecutorPlaneBinding as D, AgentExecutorPlaneStore as E, AgentExecutorPreflightResult as F, AgentExecutorProtocol as G, AgentExecutorTaskReference as H, AgentExecutorTaskSnapshot as I, AgentJsonObject as J, AgentJsonValue as K, AgentManifest as L, AgentMessage as M, AgentMiddlewareDeclaration as N, AgentPreflightInput as O, AgentPreflightResult as P, AgentReasoningProfile as Q, AgentRegistrationEnabledMutationOptions as R, AgentRegistrationMutationOptions as S, AgentRegistrationService as T, AgentSpanData as U, AgentTaskCancellation as V, AgentTaskCorrelation as W, AgentTaskEvent as X, AgentTaskFilter as Y, AgentTaskProgress as Z, AgentTaskRegistrationSnapshot as _, KodaXMemoryOutcomeDigest as a$, AgentTaskSnapshot as a0, AgentTaskStartInput as a1, AgentTaskState as a2, AgentTaskUsage as a3, AgentTool as a4, AskUserAnswer as a5, AskUserCustomInputAnswer as a6, AskUserMultiOptions as a7, AskUserQuestionItem as a8, AskUserQuestionOptions as a9, FileOperations as aA, GenerationSpanData as aB, Guardrail as aC, GuardrailSpanData as aD, Handoff as aE, HandoffSpanData as aF, InMemorySessionOptions as aG, InstanceDiscoveryFs as aH, InvariantId as aI, InvariantResult as aJ, KodaXCompactMemoryProgress as aL, KodaXCompactMemorySeed as aM, KodaXExtensionSessionRecord as aN, KodaXExtensionSessionState as aO, KodaXExtensionStore as aP, KodaXExtensionStoreEntry as aQ, KodaXFileInputArtifact as aR, KodaXGoalEventType as aS, KodaXGoalState as aT, KodaXGoalStatus as aU, KodaXImageInputArtifact as aV, KodaXImageMediaType as aW, KodaXInputArtifact as aX, KodaXInputArtifactSource as aY, KodaXJsonValue as aZ, KodaXMemoryInfluenceRef as a_, AskUserSelectionAnswer as aa, CapabilitySupport as ab, ChildTaskRegistry as ac, CompactionAnchor as ad, CompactionConfig as ae, CompactionDetails as af, CompactionResult as ag, CompactionSpanData as ah, CompactionUpdate as ai, CreateAgentExecutorPlaneOptions as aj, CurrentTodoSummary as ak, Deliverable as am, DiscoveredInstance as an, DiscoveryOptions as ao, DispatchableAgentDescriptor as ap, DispatchableAgentListing as aq, DispatchableAgentOrigin as ar, DispatchableAgentQuery as as, EvidenceSpanData as at, ExternalAgentEffectDeclaration as au, ExternalAgentHealth as av, ExternalAgentProtocol as aw, ExternalAgentRegistration as ax, ExternalAgentRegistrationSummary as ay, FanoutSpanData as az, AdmissionAuditOptions as b, MemoryRefFilter as b$, KodaXMemoryOutcomeEvidence as b0, KodaXSessionArchiveMarkerEntry as b1, KodaXSessionArtifactLedgerEntry as b2, KodaXSessionBranchSummaryEntry as b3, KodaXSessionClientNoticeEntry as b4, KodaXSessionCompactionEntry as b5, KodaXSessionData as b6, KodaXSessionEntry as b7, KodaXSessionEntryBase as b8, KodaXSessionGoalEntry as b9, MemoryActionProposal as bA, MemoryApplicability as bB, MemoryApplyPreview as bC, MemoryApplyResult as bD, MemoryApproval as bE, MemoryAuthority as bF, MemoryAutoCuratorInput as bG, MemoryAutoCuratorResult as bH, MemoryBodySnapshot as bI, MemoryClaimKind as bJ, MemoryContextIdentity as bK, MemoryController as bL, MemoryCuratorInput as bM, MemoryDecisionTraceReceipt as bN, MemoryEpisodeReviewResult as bO, MemoryEvent as bP, MemoryGovernanceFinding as bQ, MemoryGovernanceFindingKind as bR, MemoryGovernanceReport as bS, MemoryItemRef as bT, MemoryLifecycle as bU, MemoryLifecycleOperationResult as bV, MemoryPack as bW, MemoryPackHint as bX, MemoryPackInput as bY, MemoryPackTraceMetadata as bZ, MemoryProposalAction as b_, KodaXSessionLabelEntry as ba, KodaXSessionLineage as bb, KodaXSessionMemoryOutcomeDigestEntry as bc, KodaXSessionMemoryReviewReceiptEntry as bd, KodaXSessionMessageEntry as be, KodaXSessionMeta as bf, KodaXSessionNavigationOptions as bg, KodaXSessionRewindMarkerEntry as bh, KodaXSessionRuntimeInfo as bi, KodaXSessionScope as bj, KodaXSessionStorage as bk, KodaXSessionTreeNode as bl, KodaXSessionUiHistoryItem as bm, KodaXSessionUiHistoryItemType as bn, KodaXSessionUiTextHistoryItem as bo, KodaXSessionUiTextHistoryItemType as bp, KodaXSessionUiToolCall as bq, KodaXSessionUiToolCallStatus as br, KodaXSessionUiToolGroupHistoryItem as bs, KodaXSessionWorkspaceKind as bt, KodaXVideoInputArtifact as bu, KodaXVideoMediaType as bv, LocalAgentTaskInput as bw, LocalAgentTaskUpdate as bx, ManifestPatch as bz, AdmissionCtx as c, TaskAbortRegistry as c$, MemoryRefKind as c0, MemoryRejectResult as c1, MemoryReviewCandidateRef as c2, MemoryReviewDraftAction as c3, MemoryReviewInput as c4, MemoryReviewModelInput as c5, MemoryReviewPersistenceDecision as c6, MemoryReviewPersistenceKind as c7, MemoryReviewPlan as c8, MemoryReviewRunner as c9, RunnerToolContext as cA, RunnerToolObserver as cB, RunnerToolResult as cC, RunnerToolResultBatch as cD, RunnerToolResultBatchTransform as cE, Session as cF, SessionDispatchResult as cG, SessionEntry as cH, SessionErrorMetadata as cI, SessionExtension as cJ, SessionForkOptions as cK, SessionMeta as cL, SessionStateSnapshot as cM, Span as cN, SpanData as cO, SpanError as cP, SpanImplOptions as cR, StartTraceOptions as cS, StateWriter as cT, StateWriterFs as cU, StateWriterOptions as cV, StopHookContext as cW, StopHookFn as cX, StopHookResult as cY, StopHookSpanData as cZ, SystemCap as c_, MemoryReviewTrigger as ca, MemoryScope as cb, MemorySourceAdapter as cc, MemoryVisibility as cd, MessageEntry as ce, ObserveCtx as cf, PersistedSessionState as cg, PresetDispatcher as ch, PresetTracingContext as ci, QualityInvariant as cj, ReadonlyMutationTracker as ck, ReadonlyRecorder as cl, ReasoningDepth as cm, RecentlyModifiedFile as cn, RequestTaskStopOptions as co, RequestTaskStopResult as cp, RunEvent as cq, RunOptions as cr, RunResult as cs, RunnableTool as ct, RunnerEvent as cv, RunnerLlmResult as cw, RunnerLlmReturn as cx, RunnerRecoveryTranscriptCarrier as cy, RunnerToolCall as cz, AdmissionVerdict as d, TerminalCtx as d0, ToolCallSpanData as d1, ToolCapability as d2, ToolPermission as d3, Trace as d4, TraceOptions as d5, TracerOptions as d7, UserInteraction as d8, WorkflowAgentBackend as d9, WorkflowProcessSource as dA, WorkflowProcessStatus as dB, WorkflowProcessSummaryStatus as dC, WorkflowProcessTokenUsage as dD, WorkflowProcessTracker as dE, WorkflowProcessTrackerOptions as dF, WorkflowRun as dG, WorkflowRunState as dH, WorkflowRunStatus as dI, WorkflowSpawnAgentInput as dJ, WorkflowSynthesis as dK, WorkflowSynthesizeInput as dL, WorkflowTaskHandle as dM, WorkflowTaskResult as dN, WorkflowTaskSnapshot as dO, WorkflowTaskStatus as dP, WorkflowTaskSummaryEventUpdate as dQ, WorkflowTaskSummaryKind as dR, WorkflowTaskSummaryUpdate as dS, WorkflowTaskUsage as dT, WorkflowTaskVerification as dU, WorkflowTaskVerificationResult as dV, WorkflowWaitOptions as dW, WorkflowApi as da, WorkflowApproval as db, WorkflowApprovalSummary as dc, WorkflowArtifactRef as dd, WorkflowBudget as de, WorkflowEvent as df, WorkflowEventCorrelation as dg, WorkflowEventType as di, WorkflowIsolation as dj, WorkflowLimits as dk, WorkflowLogEvent as dl, WorkflowMeta as dm, WorkflowModelHint as dn, WorkflowModule as dp, WorkflowParallelOptions as dq, WorkflowProcessArtifact as dr, WorkflowProcessCounts as ds, WorkflowProcessEvent as dt, WorkflowProcessItem as du, WorkflowProcessItemKind as dv, WorkflowProcessItemOrigin as dw, WorkflowProcessItemStatus as dx, WorkflowProcessProgress as dy, WorkflowProcessSnapshot as dz, AdmittedHandle as e, Agent as f, AgentArtifactPolicy as g, AgentArtifactPolicyDecision as h, AgentArtifactPolicyInput as i, AgentArtifactReference as j, AgentCapabilityDeclaration as k, AgentCapabilityRequirements as l, AgentContinuationInput as m, AgentCredentialBroker as n, AgentDispatchContext as o, AgentDispatchPolicy as p, AgentDispatchPolicyDecision as q, AgentDispatchPolicyInput as r, AgentDispatchabilitySnapshot as s, AgentDispatchabilityStatus as t, AgentEffectDeclaration as u, AgentExecutor as v, AgentExecutorEvent as w, AgentExecutorFactory as x, AgentExecutorFactoryContext as y, AgentExecutorPlane as z };
|
|
@@ -197,7 +197,7 @@ interface KodaXToolDefinition {
|
|
|
197
197
|
type KodaXReasoningCapability = 'native-effort' | 'native-budget' | 'native-toggle' | 'native-adaptive' | 'none' | 'prompt-only' | 'unknown';
|
|
198
198
|
type KodaXStableEffortIntent = 'auto' | 'none' | 'low' | 'medium' | 'high';
|
|
199
199
|
type KodaXWireReasoningEffort = string;
|
|
200
|
-
type KodaXReasoningPresetName = 'zai-glm-5.2' | 'zai-glm-toggle' | 'deepseek-v4-openai' | 'deepseek-v4-anthropic' | 'deepseek-toggle' | 'kimi-k2.7-code' | 'kimi-hybrid-toggle' | 'minimax-m3' | 'minimax-m2-always' | 'mimo-v2.5-toggle' | 'qwen-hybrid-thinking' | 'openai-chat-reasoning' | 'openai-responses-reasoning' | 'codex-cli-effort' | 'claude-adaptive-xhigh' | 'claude-adaptive-max' | 'anthropic-budget' | 'generic-thinking-toggle' | 'none';
|
|
200
|
+
type KodaXReasoningPresetName = 'zai-glm-5.2' | 'zai-glm-toggle' | 'deepseek-v4-openai' | 'deepseek-v4-anthropic' | 'deepseek-toggle' | 'kimi-k3' | 'kimi-k2.7-code' | 'kimi-hybrid-toggle' | 'minimax-m3' | 'minimax-m2-always' | 'mimo-v2.5-toggle' | 'qwen-hybrid-thinking' | 'openai-chat-reasoning' | 'openai-responses-reasoning' | 'codex-cli-effort' | 'claude-adaptive-xhigh' | 'claude-adaptive-max' | 'anthropic-budget' | 'generic-thinking-toggle' | 'none';
|
|
201
201
|
interface KodaXReasoningEffortRequest {
|
|
202
202
|
readonly value: KodaXWireReasoningEffort;
|
|
203
203
|
readonly isExplicit: boolean;
|
|
@@ -329,12 +329,14 @@ interface KodaXReasoningRequest {
|
|
|
329
329
|
interface KodaXNormalizedReasoningRequest {
|
|
330
330
|
enabled: boolean;
|
|
331
331
|
effort: KodaXWireReasoningEffort;
|
|
332
|
-
effortSource?: 'explicit' | 'legacy';
|
|
332
|
+
effortSource?: 'explicit' | 'legacy' | 'omitted';
|
|
333
333
|
taskType: KodaXTaskType;
|
|
334
334
|
executionMode: KodaXExecutionMode;
|
|
335
335
|
}
|
|
336
336
|
interface KodaXModelDescriptor {
|
|
337
337
|
id: string;
|
|
338
|
+
/** Optional local alias target sent as the upstream API model id. */
|
|
339
|
+
wireModel?: string;
|
|
338
340
|
displayName?: string;
|
|
339
341
|
contextWindow?: number;
|
|
340
342
|
maxOutputTokens?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a9 as KodaXWireReasoningEffort, a1 as KodaXToolDefinition, a3 as KodaXToolResultContentItem, k as KodaXMessage } from './types.d-
|
|
2
|
-
import { K as KodaXBaseProvider } from './base.d-
|
|
3
|
-
import { C as CapabilityKind, a as CapabilityProvider } from './capability.d-
|
|
4
|
-
import {
|
|
5
|
-
import { aB as KodaXToolExecutionContext, bi as ToolSideEffect } from './bash-prefix-extractor.d-
|
|
1
|
+
import { a9 as KodaXWireReasoningEffort, a1 as KodaXToolDefinition, a3 as KodaXToolResultContentItem, k as KodaXMessage } from './types.d-Cqaw71Ax.js';
|
|
2
|
+
import { K as KodaXBaseProvider } from './base.d-Cz_rwpOi.js';
|
|
3
|
+
import { C as CapabilityKind, a as CapabilityProvider } from './capability.d-K664nHOS.js';
|
|
4
|
+
import { aZ as KodaXJsonValue, aN as KodaXExtensionSessionRecord, aP as KodaXExtensionStore } from './types.d-CRCaLt_s.js';
|
|
5
|
+
import { aB as KodaXToolExecutionContext, bi as ToolSideEffect } from './bash-prefix-extractor.d-YoiZl5yt.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* KodaX Constructed-World types (FEATURE_087, v0.7.28).
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { k as KodaXMessage, F as KodaXReasoningMode, d as KodaXCustomProviderConfig, p as KodaXProviderCapabilityProfile } from './types.d-
|
|
2
|
-
import { I as KodaXContextTokenSnapshot, ae as KodaXSkillDynamicContextPolicy, r as KodaXAgentMode, a1 as KodaXRepoIntelligenceMode, Y as KodaXOptions, af as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-
|
|
3
|
-
import {
|
|
4
|
-
import { A as AgentsFile, f as AutoModeStats, l as KodaXMcpServersConfig } from './guardrail.d-
|
|
1
|
+
import { k as KodaXMessage, F as KodaXReasoningMode, d as KodaXCustomProviderConfig, p as KodaXProviderCapabilityProfile } from './types.d-Cqaw71Ax.js';
|
|
2
|
+
import { I as KodaXContextTokenSnapshot, ae as KodaXSkillDynamicContextPolicy, r as KodaXAgentMode, a1 as KodaXRepoIntelligenceMode, Y as KodaXOptions, af as KodaXSkillInvocationContext } from './bash-prefix-extractor.d-YoiZl5yt.js';
|
|
3
|
+
import { bm as KodaXSessionUiHistoryItem, bb as KodaXSessionLineage, b2 as KodaXSessionArtifactLedgerEntry, aO as KodaXExtensionSessionState, aN as KodaXExtensionSessionRecord, bi as KodaXSessionRuntimeInfo, dA as WorkflowProcessSource } from './types.d-CRCaLt_s.js';
|
|
4
|
+
import { A as AgentsFile, f as AutoModeStats, l as KodaXMcpServersConfig } from './guardrail.d-DdeDWnVu.js';
|
|
5
5
|
import * as readline from 'readline';
|
|
6
|
-
import { f as PermissionMode } from './public-api.d-
|
|
6
|
+
import { f as PermissionMode } from './public-api.d-BvCp5VkW.js';
|
|
7
7
|
import { SpawnSyncReturns } from 'child_process';
|
|
8
8
|
|
|
9
9
|
/**
|