@kodax-ai/kodax 0.7.71 → 0.7.72
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 +602 -487
- package/README.md +46 -27
- package/README_CN.md +30 -13
- package/dist/chunks/agent-YKGU4USA.js +2 -0
- package/dist/chunks/argument-completer-QZETLNAB.js +2 -0
- package/dist/chunks/{chunk-SX2WFHIS.js → chunk-2RI252RN.js} +1 -1
- package/dist/chunks/chunk-CLFP6UGU.js +71 -0
- package/dist/chunks/chunk-E27LHEIP.js +37 -0
- package/dist/chunks/chunk-EDZ5KJFT.js +5 -0
- package/dist/chunks/chunk-GIK4SGAT.js +364 -0
- package/dist/chunks/chunk-GVWPHE23.js +310 -0
- package/dist/chunks/{chunk-A2TFSV5M.js → chunk-IR5KIK7E.js} +1 -1
- package/dist/chunks/chunk-JSDLBXME.js +755 -0
- package/dist/chunks/chunk-MVARIMQV.js +22 -0
- package/dist/chunks/chunk-PKQOEDHJ.js +628 -0
- package/dist/chunks/{chunk-64NQBOSN.js → chunk-SQODXBLX.js} +1 -1
- package/dist/chunks/chunk-VDGCGOQH.js +328 -0
- package/dist/chunks/chunk-VVE3UM4F.js +410 -0
- package/dist/chunks/chunk-WIBLZK4G.js +151 -0
- package/dist/chunks/{compaction-config-5KKKXYFT.js → compaction-config-TWCDFLX6.js} +1 -1
- package/dist/chunks/{construction-bootstrap-OXDDDW6O.js → construction-bootstrap-ZJPXUPXQ.js} +1 -1
- package/dist/chunks/dist-JT4ATXVM.js +2 -0
- package/dist/chunks/host-SVEDZUC5.js +2 -0
- package/dist/chunks/{run-manager-Z3W6MDO7.js → run-manager-RX42UNEM.js} +1 -1
- package/dist/chunks/{utils-CFOXDCB5.js → utils-OTT5CG5J.js} +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +4 -4
- package/dist/kodax_bootstrap.js +28 -0
- package/dist/kodax_cli.js +1325 -1333
- package/dist/kodax_resume.js +44 -0
- package/dist/provider-capabilities.json +50 -48
- package/dist/runtime-worker.js +1322 -1330
- package/dist/sdk-a2a.d.ts +10 -9
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +382 -206
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +80 -128
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +3 -0
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +71 -23
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +143 -31
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +6 -5
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.d.ts +5 -5
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +14 -14
- package/dist/types-chunks/{bash-prefix-extractor.d-YoiZl5yt.d.ts → bash-prefix-extractor.d-CHJO5y94.d.ts} +107 -248
- package/dist/types-chunks/{capsule.d-CK5Pfz1k.d.ts → capsule.d-DxtdE-GD.d.ts} +24 -95
- package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +91 -0
- package/dist/types-chunks/{commands.d-D6g2jq8V.d.ts → commands.d-DZxHzH5-.d.ts} +6 -4
- package/dist/types-chunks/{guardrail.d-DilYC1dh.d.ts → guardrail.d-DlpMnd-Y.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-DdeDWnVu.d.ts → guardrail.d-auV61_h5.d.ts} +83 -10
- package/dist/types-chunks/public-api.d--IDNJsu1.d.ts +1342 -0
- package/dist/types-chunks/{run-manager.d-DxU3SSGR.d.ts → run-manager.d-Bh50OdVl.d.ts} +1 -1
- package/dist/types-chunks/sdk-session-Cfw6NFu-.d.ts +82 -0
- package/dist/types-chunks/{types.d-CEZZSY9s.d.ts → types.d-CNZgY52F.d.ts} +2 -2
- package/dist/types-chunks/{types.d-vJExiRje.d.ts → types.d-DCQVBqVn.d.ts} +10 -5
- package/dist/types-chunks/{types.d-CRCaLt_s.d.ts → types.d-DH1mvdcl.d.ts} +284 -164
- package/dist/types-chunks/{types.d-CzsLFqmf.d.ts → types.d-EqQmHztg.d.ts} +9 -10
- package/dist/types-chunks/{utils.d-Cb6vdvFM.d.ts → utils.d-gmn3c5U4.d.ts} +9 -12
- package/docs/SDK_EMBEDDER_GUIDE.md +171 -26
- package/package.json +4 -4
- package/scripts/kodax-bin.cjs +4 -2
- package/scripts/production-env.cjs +9 -0
- package/dist/chunks/agent-X2EWQADL.js +0 -2
- package/dist/chunks/argument-completer-BLNXDO2F.js +0 -2
- package/dist/chunks/chunk-4DY756KL.js +0 -70
- package/dist/chunks/chunk-52JSZ77P.js +0 -37
- package/dist/chunks/chunk-A574DBTV.js +0 -422
- package/dist/chunks/chunk-F7KGYHJ3.js +0 -624
- package/dist/chunks/chunk-GVTM4Z6O.js +0 -151
- package/dist/chunks/chunk-PHH4TRGF.js +0 -22
- package/dist/chunks/chunk-PVUXONQB.js +0 -366
- package/dist/chunks/chunk-T7LYK53M.js +0 -329
- package/dist/chunks/chunk-VRSVNU2Y.js +0 -7
- package/dist/chunks/chunk-Y5XKAN7C.js +0 -755
- package/dist/chunks/chunk-Z535BARK.js +0 -306
- package/dist/chunks/dist-IXJRJ27U.js +0 -2
- package/dist/chunks/host-VRKDAN26.js +0 -2
- package/dist/types-chunks/public-api.d-BvCp5VkW.d.ts +0 -601
- package/dist/types-chunks/sdk-session-wGpa7X_U.d.ts +0 -796
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-Cqaw71Ax.js';
|
|
2
2
|
export { k as KodaXMessage } from './types-chunks/types.d-Cqaw71Ax.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { i as SkillMetadata } from './types-chunks/types.d-
|
|
3
|
+
import { $ as KodaXOptions, U as KodaXManagedTaskStatusEvent, O as KodaXEvents, a9 as KodaXResult, b8 as RuntimeContextBudgetSnapshot, bf as RuntimeToolExposurePlan, L as KodaXContextOptions, K as KodaXActivityEventMeta, aD as KodaXToolEventMeta, aK as KodaXTurnStartedEvent, aH as KodaXTurnCompletedEvent, aJ as KodaXTurnFailedEvent } from './types-chunks/bash-prefix-extractor.d-CHJO5y94.js';
|
|
4
|
+
import { C as AgentDispatchContext, Q as AgentExecutorFactory, D as AgentDispatchPolicy, y as AgentCredentialBroker, m as AgentArtifactPolicy, bt as KodaXImageInputArtifact, bw as KodaXInputArtifactSource, c2 as KodaXVideoInputArtifact, e9 as WorkflowProcessSnapshot, e3 as WorkflowProcessEvent, M as AgentExecutionKind, al as AgentRegistrationService, b0 as DispatchableAgentQuery, a_ as DispatchableAgentListing, ad as AgentPreflightInput, ae as AgentPreflightResult, aA as AgentTreeSnapshot, B as AgentDetail, an as AgentSpawnInput, aD as AgentTurnRef, z as AgentDataClassification, $ as AgentFollowupResult, ac as AgentOutput, J as AgentEvent } from './types-chunks/types.d-DH1mvdcl.js';
|
|
5
|
+
import { i as SkillMetadata } from './types-chunks/types.d-DCQVBqVn.js';
|
|
6
6
|
import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
|
|
7
7
|
import { t as McpServerStatus, u as McpServerToolList } from './types-chunks/manager.d-B67TmPO1.js';
|
|
8
|
-
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-
|
|
9
|
-
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-
|
|
10
|
-
import { F as saveConfig, c as CommandInfo } from './types-chunks/utils.d-
|
|
11
|
-
import {
|
|
8
|
+
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-Bh50OdVl.js';
|
|
9
|
+
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-EqQmHztg.js';
|
|
10
|
+
import { F as saveConfig, c as CommandInfo } from './types-chunks/utils.d-gmn3c5U4.js';
|
|
11
|
+
import { k as FullTranscriptSessionData, Z as SessionTranscriptEntry, c as CompactSessionResult } from './types-chunks/public-api.d--IDNJsu1.js';
|
|
12
|
+
import { n as LearningQuery, m as LearningPage, b as LearnedCapabilityRecord, p as LearningSurfaceSnapshot, j as LearningEvent, o as LearningSubscribeOptions } from './types-chunks/center-types.d-BBT122uJ.js';
|
|
12
13
|
import 'vscode-languageserver-protocol';
|
|
13
14
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
14
15
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
15
16
|
import './types-chunks/base.d-Cz_rwpOi.js';
|
|
16
|
-
import './types-chunks/guardrail.d-
|
|
17
|
-
import './types-chunks/guardrail.d-
|
|
17
|
+
import './types-chunks/guardrail.d-auV61_h5.js';
|
|
18
|
+
import './types-chunks/guardrail.d-DlpMnd-Y.js';
|
|
18
19
|
import 'readline';
|
|
19
20
|
import 'child_process';
|
|
20
21
|
|
|
@@ -24,7 +25,7 @@ interface RuntimeUserMarkdownAgentRef {
|
|
|
24
25
|
}
|
|
25
26
|
interface RuntimeEffectiveSkillRef {
|
|
26
27
|
readonly name: string;
|
|
27
|
-
readonly source: 'workspace' | 'user' | 'plugin' | 'builtin';
|
|
28
|
+
readonly source: 'workspace' | 'user' | 'plugin' | 'builtin' | 'learned';
|
|
28
29
|
readonly revision: string;
|
|
29
30
|
}
|
|
30
31
|
type RuntimeWorkspaceBinding = {
|
|
@@ -129,9 +130,27 @@ interface RuntimeAgentBindingService {
|
|
|
129
130
|
closeOwnerSession(ownerSessionId: string): Promise<void>;
|
|
130
131
|
}
|
|
131
132
|
|
|
133
|
+
interface RuntimeLearningService {
|
|
134
|
+
list(query?: LearningQuery): Promise<LearningPage>;
|
|
135
|
+
get(nameOrSlug: string): Promise<LearnedCapabilityRecord>;
|
|
136
|
+
getSnapshot(): Promise<LearningSurfaceSnapshot>;
|
|
137
|
+
events(afterRevision?: number): Promise<readonly LearningEvent[]>;
|
|
138
|
+
subscribe(options?: LearningSubscribeOptions): AsyncIterable<LearningEvent>;
|
|
139
|
+
acknowledge(nameOrSlug: string): Promise<void>;
|
|
140
|
+
snooze(nameOrSlug: string, until: string): Promise<void>;
|
|
141
|
+
reject(nameOrSlug: string): Promise<void>;
|
|
142
|
+
disable(nameOrSlug: string): Promise<void>;
|
|
143
|
+
rollback(nameOrSlug: string): Promise<void>;
|
|
144
|
+
promote(nameOrSlug: string, scope: 'user'): Promise<void>;
|
|
145
|
+
review(nameOrSlug: string): Promise<void>;
|
|
146
|
+
trust(nameOrSlug: string): Promise<void>;
|
|
147
|
+
}
|
|
148
|
+
|
|
132
149
|
declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
|
|
133
150
|
declare const KODAX_DAEMON_PROTOCOL_VERSION = 1;
|
|
134
|
-
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'daemon.rollbackToInline' | 'operation.get' | 'session.create' | 'session.load' | 'session.list' | 'session.transcript' | 'session.observe' | 'session.fork' | 'session.notice.append' | 'session.rewind' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.delete' | 'session.settings.get' | 'session.settings.getVersioned' | 'session.settings.update' | 'session.settings.updateVersioned' | 'run.start' | 'run.input.submit' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'event.subscribe' | 'event.unsubscribe' | 'event.replay' | 'permission.list' | 'permission.listPending' | 'permission.request' | 'permission.respond' | 'permission.grants.list' | 'permission.grants.revoke' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'config.read' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | '
|
|
151
|
+
type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'daemon.rollbackToInline' | 'operation.get' | 'session.create' | 'session.load' | 'session.list' | 'session.transcript' | 'session.observe' | 'session.fork' | 'session.notice.append' | 'session.rewind' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.delete' | 'session.settings.get' | 'session.settings.getVersioned' | 'session.settings.update' | 'session.settings.updateVersioned' | 'run.start' | 'run.input.submit' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'event.subscribe' | 'event.unsubscribe' | 'event.replay' | 'permission.list' | 'permission.listPending' | 'permission.request' | 'permission.respond' | 'permission.grants.list' | 'permission.grants.revoke' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | 'config.read' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait' | 'context.budget.get' | 'tool.exposure.preview';
|
|
152
|
+
type RuntimeDaemonRetiredMethod = 'agentTasks.list' | 'agentTasks.start' | 'agentTasks.get' | 'agentTasks.events' | 'agentTasks.wait' | 'agentTasks.sendInput' | 'agentTasks.cancel' | 'agentTasks.reconcile';
|
|
153
|
+
type RuntimeDaemonWireMethod = RuntimeDaemonMethod | RuntimeDaemonRetiredMethod;
|
|
135
154
|
type RuntimeDaemonNotificationMethod = 'event' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
|
|
136
155
|
interface RuntimeDaemonError {
|
|
137
156
|
readonly code: RuntimeDaemonErrorCode;
|
|
@@ -143,10 +162,10 @@ interface RuntimeDaemonFrameBase {
|
|
|
143
162
|
readonly protocol: typeof KODAX_DAEMON_PROTOCOL;
|
|
144
163
|
readonly version: typeof KODAX_DAEMON_PROTOCOL_VERSION;
|
|
145
164
|
}
|
|
146
|
-
interface RuntimeDaemonRequest extends RuntimeDaemonFrameBase {
|
|
165
|
+
interface RuntimeDaemonRequest<Method extends RuntimeDaemonWireMethod = RuntimeDaemonMethod> extends RuntimeDaemonFrameBase {
|
|
147
166
|
readonly kind: 'request';
|
|
148
167
|
readonly id: string;
|
|
149
|
-
readonly method:
|
|
168
|
+
readonly method: Method;
|
|
150
169
|
readonly params?: unknown;
|
|
151
170
|
readonly operation?: RuntimeDaemonOperationEnvelope;
|
|
152
171
|
}
|
|
@@ -169,7 +188,7 @@ interface RuntimeDaemonNotification extends RuntimeDaemonFrameBase {
|
|
|
169
188
|
readonly method: RuntimeDaemonNotificationMethod;
|
|
170
189
|
readonly params?: unknown;
|
|
171
190
|
}
|
|
172
|
-
type RuntimeDaemonFrame = RuntimeDaemonRequest | RuntimeDaemonSuccessResponse | RuntimeDaemonErrorResponse | RuntimeDaemonNotification;
|
|
191
|
+
type RuntimeDaemonFrame = RuntimeDaemonRequest<RuntimeDaemonWireMethod> | RuntimeDaemonSuccessResponse | RuntimeDaemonErrorResponse | RuntimeDaemonNotification;
|
|
173
192
|
declare const RUNTIME_DAEMON_METHODS: readonly RuntimeDaemonMethod[];
|
|
174
193
|
|
|
175
194
|
interface RuntimeDaemonClientTransport {
|
|
@@ -217,6 +236,7 @@ interface RuntimeDaemonJsonSchema {
|
|
|
217
236
|
readonly additionalProperties?: boolean | RuntimeDaemonJsonSchema;
|
|
218
237
|
readonly items?: RuntimeDaemonJsonSchema;
|
|
219
238
|
readonly oneOf?: readonly RuntimeDaemonJsonSchema[];
|
|
239
|
+
readonly maxLength?: number;
|
|
220
240
|
}
|
|
221
241
|
interface RuntimeDaemonMethodSchema {
|
|
222
242
|
readonly params: RuntimeDaemonJsonSchema;
|
|
@@ -525,6 +545,54 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
525
545
|
params: RuntimeDaemonJsonSchema;
|
|
526
546
|
result: RuntimeDaemonJsonSchema;
|
|
527
547
|
};
|
|
548
|
+
'learning.list': {
|
|
549
|
+
params: RuntimeDaemonJsonSchema;
|
|
550
|
+
result: RuntimeDaemonJsonSchema;
|
|
551
|
+
};
|
|
552
|
+
'learning.get': {
|
|
553
|
+
params: RuntimeDaemonJsonSchema;
|
|
554
|
+
result: RuntimeDaemonJsonSchema;
|
|
555
|
+
};
|
|
556
|
+
'learning.snapshot': {
|
|
557
|
+
params: RuntimeDaemonJsonSchema;
|
|
558
|
+
result: RuntimeDaemonJsonSchema;
|
|
559
|
+
};
|
|
560
|
+
'learning.events': {
|
|
561
|
+
params: RuntimeDaemonJsonSchema;
|
|
562
|
+
result: RuntimeDaemonJsonSchema;
|
|
563
|
+
};
|
|
564
|
+
'learning.acknowledge': {
|
|
565
|
+
params: RuntimeDaemonJsonSchema;
|
|
566
|
+
result: RuntimeDaemonJsonSchema;
|
|
567
|
+
};
|
|
568
|
+
'learning.snooze': {
|
|
569
|
+
params: RuntimeDaemonJsonSchema;
|
|
570
|
+
result: RuntimeDaemonJsonSchema;
|
|
571
|
+
};
|
|
572
|
+
'learning.reject': {
|
|
573
|
+
params: RuntimeDaemonJsonSchema;
|
|
574
|
+
result: RuntimeDaemonJsonSchema;
|
|
575
|
+
};
|
|
576
|
+
'learning.disable': {
|
|
577
|
+
params: RuntimeDaemonJsonSchema;
|
|
578
|
+
result: RuntimeDaemonJsonSchema;
|
|
579
|
+
};
|
|
580
|
+
'learning.rollback': {
|
|
581
|
+
params: RuntimeDaemonJsonSchema;
|
|
582
|
+
result: RuntimeDaemonJsonSchema;
|
|
583
|
+
};
|
|
584
|
+
'learning.promote': {
|
|
585
|
+
params: RuntimeDaemonJsonSchema;
|
|
586
|
+
result: RuntimeDaemonJsonSchema;
|
|
587
|
+
};
|
|
588
|
+
'learning.review': {
|
|
589
|
+
params: RuntimeDaemonJsonSchema;
|
|
590
|
+
result: RuntimeDaemonJsonSchema;
|
|
591
|
+
};
|
|
592
|
+
'learning.trust': {
|
|
593
|
+
params: RuntimeDaemonJsonSchema;
|
|
594
|
+
result: RuntimeDaemonJsonSchema;
|
|
595
|
+
};
|
|
528
596
|
'config.read': {
|
|
529
597
|
params: RuntimeDaemonJsonSchema;
|
|
530
598
|
result: RuntimeDaemonJsonSchema;
|
|
@@ -663,35 +731,39 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
663
731
|
params: RuntimeDaemonJsonSchema;
|
|
664
732
|
result: RuntimeDaemonJsonSchema;
|
|
665
733
|
};
|
|
666
|
-
'
|
|
734
|
+
'agents.tree': {
|
|
735
|
+
params: RuntimeDaemonJsonSchema;
|
|
736
|
+
result: RuntimeDaemonJsonSchema;
|
|
737
|
+
};
|
|
738
|
+
'agents.detail': {
|
|
667
739
|
params: RuntimeDaemonJsonSchema;
|
|
668
740
|
result: RuntimeDaemonJsonSchema;
|
|
669
741
|
};
|
|
670
|
-
'
|
|
742
|
+
'agents.spawn': {
|
|
671
743
|
params: RuntimeDaemonJsonSchema;
|
|
672
744
|
result: RuntimeDaemonJsonSchema;
|
|
673
745
|
};
|
|
674
|
-
'
|
|
746
|
+
'agents.send': {
|
|
675
747
|
params: RuntimeDaemonJsonSchema;
|
|
676
748
|
result: RuntimeDaemonJsonSchema;
|
|
677
749
|
};
|
|
678
|
-
'
|
|
750
|
+
'agents.followup': {
|
|
679
751
|
params: RuntimeDaemonJsonSchema;
|
|
680
752
|
result: RuntimeDaemonJsonSchema;
|
|
681
753
|
};
|
|
682
|
-
'
|
|
754
|
+
'agents.interrupt': {
|
|
683
755
|
params: RuntimeDaemonJsonSchema;
|
|
684
756
|
result: RuntimeDaemonJsonSchema;
|
|
685
757
|
};
|
|
686
|
-
'
|
|
758
|
+
'agents.output': {
|
|
687
759
|
params: RuntimeDaemonJsonSchema;
|
|
688
760
|
result: RuntimeDaemonJsonSchema;
|
|
689
761
|
};
|
|
690
|
-
'
|
|
762
|
+
'agents.events': {
|
|
691
763
|
params: RuntimeDaemonJsonSchema;
|
|
692
764
|
result: RuntimeDaemonJsonSchema;
|
|
693
765
|
};
|
|
694
|
-
'
|
|
766
|
+
'agents.wait': {
|
|
695
767
|
params: RuntimeDaemonJsonSchema;
|
|
696
768
|
result: RuntimeDaemonJsonSchema;
|
|
697
769
|
};
|
|
@@ -726,6 +798,15 @@ declare function listRuntimeDaemonSchemaMethods(): readonly RuntimeDaemonMethod[
|
|
|
726
798
|
* process manager without introducing a daemon or a fifth workspace package.
|
|
727
799
|
*/
|
|
728
800
|
|
|
801
|
+
declare class RuntimeDaemonCapabilityUpgradeError extends Error {
|
|
802
|
+
readonly preflight?: RuntimeDaemonPreflight | undefined;
|
|
803
|
+
readonly code: "daemon_capability_upgrade_required";
|
|
804
|
+
readonly capability: "runtimeAutoModeGuardrail";
|
|
805
|
+
readonly recoverable: true;
|
|
806
|
+
readonly restartRequired: true;
|
|
807
|
+
constructor(message: string, preflight?: RuntimeDaemonPreflight | undefined, options?: ErrorOptions);
|
|
808
|
+
}
|
|
809
|
+
|
|
729
810
|
type KodaXRuntimeMode = 'embedded' | 'daemon';
|
|
730
811
|
type KodaXRuntimeIsolation = 'inline' | 'worker' | 'process';
|
|
731
812
|
|
|
@@ -786,7 +867,7 @@ declare function setKodaXRuntimeOwnerMode(input: {
|
|
|
786
867
|
};
|
|
787
868
|
type ReplRuntimeConfigPatch = Parameters<typeof saveConfig>[0];
|
|
788
869
|
declare const RUNTIME_CONFIG_PATCH_KEYS: readonly ["provider", "model", "effort", "planModeEffort", "thinking", "reasoningMode", "agentMode", "permissionMode", "locale", "providerModels", "extensions", "repoIntelligenceMode", "repoIntelligenceTrace", "verifierLog", "stallLog", "fallbackProviders", "fastProvider", "fastModel", "deepProvider", "deepModel", "maxOutputTokens", "disablePromptCache", "lsp", "lspAutoDownload", "acpLogLevel", "sessionRetentionDays", "repoIntelligence", "workflow"];
|
|
789
|
-
type RuntimeConfigPatchKey = typeof RUNTIME_CONFIG_PATCH_KEYS[number];
|
|
870
|
+
type RuntimeConfigPatchKey = (typeof RUNTIME_CONFIG_PATCH_KEYS)[number];
|
|
790
871
|
interface RuntimeIdentity {
|
|
791
872
|
readonly runtimeId: string;
|
|
792
873
|
readonly mode: KodaXRuntimeMode;
|
|
@@ -815,7 +896,7 @@ interface RuntimeClientCapabilities {
|
|
|
815
896
|
readonly contextDiagnostics?: boolean;
|
|
816
897
|
readonly operationDeduplication?: boolean;
|
|
817
898
|
}
|
|
818
|
-
type RuntimeGrantedScope = 'session:observe' | 'session:write' | 'run:control' | 'interaction:respond' | 'permission:respond' | 'permission:grant-admin' | 'integration:admin' | 'workflow:control' | 'artifact:write' | 'agent:control' | 'credential:register' | 'host-tool:register' | 'owner:admin' | 'daemon:admin';
|
|
899
|
+
type RuntimeGrantedScope = 'session:observe' | 'session:write' | 'run:control' | 'interaction:respond' | 'permission:respond' | 'permission:grant-admin' | 'integration:admin' | 'workflow:control' | 'learning:read' | 'learning:control' | 'artifact:write' | 'agent:control' | 'credential:register' | 'host-tool:register' | 'owner:admin' | 'daemon:admin';
|
|
819
900
|
interface RuntimeExternalAgentsOptions {
|
|
820
901
|
readonly factories: readonly AgentExecutorFactory[];
|
|
821
902
|
readonly policy: AgentDispatchPolicy;
|
|
@@ -887,6 +968,7 @@ interface RuntimeCapabilityRequirements {
|
|
|
887
968
|
readonly operationDeduplication?: 1;
|
|
888
969
|
readonly sessionObservation?: 1;
|
|
889
970
|
readonly afterTurnInput?: 1;
|
|
971
|
+
readonly learningCenter?: 1;
|
|
890
972
|
readonly interruptInput?: 1;
|
|
891
973
|
readonly askUserTransport?: 1;
|
|
892
974
|
readonly permissionCas?: 1;
|
|
@@ -903,6 +985,9 @@ interface RuntimeCapabilityRequirements {
|
|
|
903
985
|
readonly sharedSessionSettings?: 1;
|
|
904
986
|
readonly durableRecoveryQueries?: 1;
|
|
905
987
|
readonly daemonManagement?: 1;
|
|
988
|
+
readonly actorControlPlane?: 1;
|
|
989
|
+
/** Runtime owns Auto LLM/rules classification before shared permission brokering. */
|
|
990
|
+
readonly runtimeAutoModeGuardrail?: 1;
|
|
906
991
|
}
|
|
907
992
|
type RuntimeOperationState = 'accepted' | 'dispatched' | 'applied' | 'rejected' | 'interrupted' | 'unknown';
|
|
908
993
|
interface RuntimeOperationReceipt {
|
|
@@ -961,6 +1046,7 @@ interface KodaXRuntime {
|
|
|
961
1046
|
readonly hostTools: RuntimeHostToolService;
|
|
962
1047
|
readonly operations: RuntimeOperationService;
|
|
963
1048
|
readonly workflows: RuntimeWorkflowService;
|
|
1049
|
+
readonly learning: RuntimeLearningService;
|
|
964
1050
|
readonly config: RuntimeConfigService;
|
|
965
1051
|
readonly catalog: RuntimeCatalogService;
|
|
966
1052
|
readonly mcp: RuntimeMcpService;
|
|
@@ -971,7 +1057,6 @@ interface KodaXRuntime {
|
|
|
971
1057
|
readonly connection?: RuntimeConnectionService;
|
|
972
1058
|
readonly admin: RuntimeAdminService;
|
|
973
1059
|
readonly agents: RuntimeAgentService;
|
|
974
|
-
readonly agentTasks: RuntimeAgentTaskService;
|
|
975
1060
|
/**
|
|
976
1061
|
* Release this facade. Inline closes its private Runtime, Worker mode shuts
|
|
977
1062
|
* down and terminates its Worker, and daemon mode only detaches this client.
|
|
@@ -988,8 +1073,18 @@ interface RuntimeAgentService {
|
|
|
988
1073
|
listDispatchable(query: DispatchableAgentQuery): Promise<readonly DispatchableAgentListing[]>;
|
|
989
1074
|
describe(agentId: string, query: DispatchableAgentQuery): Promise<DispatchableAgentListing | undefined>;
|
|
990
1075
|
preflight(input: AgentPreflightInput): Promise<AgentPreflightResult>;
|
|
1076
|
+
tree(sessionId: string): Promise<AgentTreeSnapshot>;
|
|
1077
|
+
detail(sessionId: string, actorPath: string): Promise<AgentDetail>;
|
|
1078
|
+
spawn(sessionId: string, input: AgentSpawnInput): Promise<AgentTurnRef>;
|
|
1079
|
+
send(sessionId: string, actorPath: string, content: string, classification?: AgentDataClassification): Promise<void>;
|
|
1080
|
+
followup(sessionId: string, actorPath: string, objective: string, options?: {
|
|
1081
|
+
readonly expectedRevision?: number;
|
|
1082
|
+
}): Promise<AgentFollowupResult>;
|
|
1083
|
+
interrupt(sessionId: string, actorPath: string, reason?: string): Promise<void>;
|
|
1084
|
+
output(sessionId: string, actorPath: string, turnId?: string): Promise<AgentOutput>;
|
|
1085
|
+
events(sessionId: string, afterSequence?: number): Promise<readonly AgentEvent[]>;
|
|
1086
|
+
wait(sessionId: string, afterSequence?: number, timeoutMs?: number): Promise<AgentEvent | undefined>;
|
|
991
1087
|
}
|
|
992
|
-
type RuntimeAgentTaskService = Pick<AgentTaskService, 'start' | 'list' | 'get' | 'events' | 'wait' | 'sendInput' | 'cancel' | 'reconcile'>;
|
|
993
1088
|
type RuntimeConfigPatch = Partial<Pick<ReplRuntimeConfigPatch, RuntimeConfigPatchKey>>;
|
|
994
1089
|
interface RuntimeConfigReloadResult {
|
|
995
1090
|
readonly ok: true;
|
|
@@ -1191,6 +1286,8 @@ interface RuntimeSessionSettings {
|
|
|
1191
1286
|
readonly executionCwd?: string;
|
|
1192
1287
|
readonly agentMode?: KodaXOptions['agentMode'];
|
|
1193
1288
|
readonly autoModeEngine?: 'llm' | 'rules';
|
|
1289
|
+
readonly autoModeClassifierModel?: string;
|
|
1290
|
+
readonly autoModeTimeoutMs?: number;
|
|
1194
1291
|
}
|
|
1195
1292
|
interface RuntimeSessionSettingsPatch {
|
|
1196
1293
|
readonly provider?: string | null;
|
|
@@ -1202,6 +1299,8 @@ interface RuntimeSessionSettingsPatch {
|
|
|
1202
1299
|
readonly executionCwd?: string | null;
|
|
1203
1300
|
readonly agentMode?: KodaXOptions['agentMode'] | null;
|
|
1204
1301
|
readonly autoModeEngine?: 'llm' | 'rules' | null;
|
|
1302
|
+
readonly autoModeClassifierModel?: string | null;
|
|
1303
|
+
readonly autoModeTimeoutMs?: number | null;
|
|
1205
1304
|
}
|
|
1206
1305
|
interface RuntimeAppendNoticeInput {
|
|
1207
1306
|
readonly sessionId: string;
|
|
@@ -1390,7 +1489,7 @@ type RuntimeKodaXOptions = Omit<KodaXOptions, 'provider' | 'session' | 'events'>
|
|
|
1390
1489
|
readonly events?: KodaXEvents;
|
|
1391
1490
|
};
|
|
1392
1491
|
type RuntimeDaemonContextOptions = Pick<KodaXContextOptions, 'memoryIdentity' | 'gitRoot' | 'executionCwd' | 'contextTokenSnapshot' | 'projectSnapshot' | 'longRunning' | 'providerPolicyHints' | 'repoRoutingSignals' | 'repoIntelligenceMode' | 'repoIntelligenceTrace' | 'contextDiagnostics' | 'disableAutoTaskReroute' | 'toolConstructionMode' | 'skillsPrompt' | 'rawUserInput' | 'skillInvocation' | 'repoIntelligenceContext' | 'inputArtifacts' | 'promptOverlay' | 'taskSurface' | 'liveTurn' | 'managedTaskWorkspaceDir' | 'managedProtocolEmission' | 'excludeTools' | 'systemPromptOverride' | 'taskMetadata' | 'taskVerification' | 'agentProfile' | 'currentAgentId' | 'parentAgentId'>;
|
|
1393
|
-
type RuntimeDaemonKodaXOptions = Pick<RuntimeKodaXOptions, 'provider' | 'model' | 'modelOverride' | 'effort' | 'thinking' | 'reasoningMode' | 'agentMode' | 'maxIter' | 'workflowRunsBaseDir' | 'modelTiers' | 'maxOutputTokens' | 'disablePromptCache' | 'lsp' | 'workflow' | 'selfManual' | 'compaction' | 'timeouts'> & {
|
|
1492
|
+
type RuntimeDaemonKodaXOptions = Pick<RuntimeKodaXOptions, 'provider' | 'model' | 'modelOverride' | 'effort' | 'thinking' | 'reasoningMode' | 'agentMode' | 'maxIter' | 'workflowHostPolicy' | 'workflowRunsBaseDir' | 'modelTiers' | 'maxOutputTokens' | 'disablePromptCache' | 'lsp' | 'workflow' | 'selfManual' | 'compaction' | 'timeouts'> & {
|
|
1394
1493
|
readonly context?: RuntimeDaemonContextOptions;
|
|
1395
1494
|
};
|
|
1396
1495
|
type RuntimeDaemonStartRunInput = Omit<RuntimeStartRunInput, 'options' | 'agentContext' | 'permissionBroker'> & {
|
|
@@ -1639,6 +1738,8 @@ interface RuntimeEventReplayFilter extends RuntimeEventFilter {
|
|
|
1639
1738
|
type RuntimeEventListener = (event: RuntimeEvent) => void;
|
|
1640
1739
|
type RuntimeTypedEventListener = (event: RuntimeTypedEvent) => void;
|
|
1641
1740
|
interface RuntimeSubscription {
|
|
1741
|
+
/** Resolves when a remote subscription handshake is complete; absent for synchronous local subscriptions. */
|
|
1742
|
+
readonly ready?: Promise<void>;
|
|
1642
1743
|
close(): void;
|
|
1643
1744
|
}
|
|
1644
1745
|
interface RuntimeEventService {
|
|
@@ -1660,6 +1761,8 @@ interface RuntimePermissionRequest {
|
|
|
1660
1761
|
readonly reason?: string;
|
|
1661
1762
|
readonly risk?: RuntimePermissionRisk;
|
|
1662
1763
|
readonly inputPreview?: string;
|
|
1764
|
+
/** Effective directory used to resolve relative tool paths for this run. */
|
|
1765
|
+
readonly executionCwd?: string;
|
|
1663
1766
|
readonly createdAt: string;
|
|
1664
1767
|
readonly expiresAt?: string;
|
|
1665
1768
|
}
|
|
@@ -1672,6 +1775,7 @@ interface RuntimePermissionRequestInput {
|
|
|
1672
1775
|
readonly reason?: string;
|
|
1673
1776
|
readonly risk?: RuntimePermissionRisk;
|
|
1674
1777
|
readonly inputPreview?: string;
|
|
1778
|
+
readonly executionCwd?: string;
|
|
1675
1779
|
readonly expiresAt?: string;
|
|
1676
1780
|
readonly timeoutMs?: number;
|
|
1677
1781
|
}
|
|
@@ -1826,12 +1930,20 @@ interface RuntimeDaemonPreflight {
|
|
|
1826
1930
|
readonly activeRuns: readonly RuntimeRunStatus[];
|
|
1827
1931
|
readonly queuedRuns: readonly RuntimeRunStatus[];
|
|
1828
1932
|
readonly activeWorkflows: readonly RuntimeWorkflowSummary[];
|
|
1829
|
-
readonly
|
|
1933
|
+
readonly activeAgentTurns: readonly RuntimeActiveAgentTurn[];
|
|
1934
|
+
/** @deprecated Use activeAgentTurns. Alias retained through the 0.7.x line. */
|
|
1935
|
+
readonly activeAgentTasks: readonly RuntimeActiveAgentTurn[];
|
|
1830
1936
|
readonly pendingPermissions: readonly RuntimePermissionRequest[];
|
|
1831
1937
|
readonly pendingUserInputs: readonly RuntimeUserInputRequest[];
|
|
1832
|
-
readonly blockers: readonly ('connected_clients' | 'active_runs' | 'queued_runs' | 'active_workflows' | 'active_agent_tasks' | 'pending_interactions')[];
|
|
1938
|
+
readonly blockers: readonly ('connected_clients' | 'active_runs' | 'queued_runs' | 'active_workflows' | 'active_agent_turns' | 'active_agent_tasks' | 'pending_interactions')[];
|
|
1833
1939
|
readonly canStop: boolean;
|
|
1834
1940
|
}
|
|
1941
|
+
interface RuntimeActiveAgentTurn {
|
|
1942
|
+
readonly sessionId: string;
|
|
1943
|
+
readonly actorPath: string;
|
|
1944
|
+
readonly turnId: string;
|
|
1945
|
+
readonly kind: AgentExecutionKind;
|
|
1946
|
+
}
|
|
1835
1947
|
interface RuntimeDaemonManagementState {
|
|
1836
1948
|
readonly runtimeId: string;
|
|
1837
1949
|
/** Monotonic for logical client, mutation, Runtime event, and preflight state changes. */
|
|
@@ -1868,5 +1980,5 @@ declare function createKodaXRuntime(options: CreateKodaXRuntimeOptions & {
|
|
|
1868
1980
|
declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promise<KodaXRuntime>;
|
|
1869
1981
|
declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
|
|
1870
1982
|
|
|
1871
|
-
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KodaXEvents, KodaXResult, RUNTIME_DAEMON_METHODS, RUNTIME_DAEMON_METHOD_SCHEMAS, RUNTIME_DAEMON_NOTIFICATION_SCHEMAS, RUNTIME_DAEMON_PROTOCOL_SCHEMA, RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON, RuntimeContextBudgetSnapshot, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode };
|
|
1872
|
-
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService,
|
|
1983
|
+
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KodaXEvents, KodaXResult, RUNTIME_DAEMON_METHODS, RUNTIME_DAEMON_METHOD_SCHEMAS, RUNTIME_DAEMON_NOTIFICATION_SCHEMAS, RUNTIME_DAEMON_PROTOCOL_SCHEMA, RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON, RuntimeContextBudgetSnapshot, RuntimeDaemonCapabilityUpgradeError, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode };
|
|
1984
|
+
export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContinuationStatus, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExecutionToolPolicy, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeInteractionResolvedEventPayload, RuntimeKodaXOptions, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
|
package/dist/sdk-runtime.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q}from"./chunks/chunk-
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"./chunks/chunk-CLFP6UGU.js";import"./chunks/chunk-GVWPHE23.js";import"./chunks/chunk-PKQOEDHJ.js";import"./chunks/chunk-WIBLZK4G.js";import"./chunks/chunk-2RI252RN.js";import"./chunks/chunk-VVE3UM4F.js";import"./chunks/chunk-IR5KIK7E.js";import"./chunks/chunk-MVARIMQV.js";import"./chunks/chunk-VDGCGOQH.js";import"./chunks/chunk-SQODXBLX.js";import"./chunks/chunk-44QXPEEE.js";import"./chunks/chunk-GIK4SGAT.js";import"./chunks/chunk-ZJIMT5I3.js";import"./chunks/chunk-JSDLBXME.js";import"./chunks/chunk-E27LHEIP.js";import"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,d as RUNTIME_DAEMON_METHODS,f as RUNTIME_DAEMON_METHOD_SCHEMAS,g as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,h as RUNTIME_DAEMON_PROTOCOL_SCHEMA,i as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,k as RuntimeDaemonCapabilityUpgradeError,e as RuntimeTransportBoundaryError,l as acquireKodaXInlineOwner,r as connectKodaXRuntime,q as createKodaXRuntime,o as enableKodaXDaemonOwner,m as getKodaXRuntimeOwnerPolicy,n as getKodaXRuntimeOwnerState,j as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,p as setKodaXRuntimeOwnerMode};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export { c as CreatableHistoryItem,
|
|
1
|
+
export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, g as CreatableHistoryItem, i as DeleteSessionResult, k as FullTranscriptSessionData, J as ListSessionsOptions, U as RunningSessionInfo, W as SessionManager, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, al as createSessionManager, am as deleteSession, an as forkSession, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d--IDNJsu1.js';
|
|
2
2
|
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-Cqaw71Ax.js';
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
6
|
-
import './types-chunks/types.d-
|
|
3
|
+
export { bW as KodaXSessionUiHistoryItem, bX as KodaXSessionUiHistoryItemType, bY as KodaXSessionUiTextHistoryItem, bZ as KodaXSessionUiTextHistoryItemType, b_ as KodaXSessionUiToolCall, b$ as KodaXSessionUiToolCallStatus, c0 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-DH1mvdcl.js';
|
|
4
|
+
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, r as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-Cfw6NFu-.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-CHJO5y94.js';
|
|
6
|
+
import './types-chunks/types.d-DCQVBqVn.js';
|
|
7
7
|
import 'vscode-languageserver-protocol';
|
|
8
8
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
9
9
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
10
10
|
import './types-chunks/base.d-Cz_rwpOi.js';
|
|
11
|
+
import './types-chunks/center-types.d-BBT122uJ.js';
|
package/dist/sdk-session.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import{$a as o,Kb as t,Lb as i,Mb as n,Nb as a,Ob as r,Pb as S,Qb as l,Rb as p,Sb as d,Tb as c,Ub as y,Vb as m,Wb as u,Xb as T}from"./chunks/chunk-
|
|
2
|
+
import{$a as o,Kb as t,Lb as i,Mb as n,Nb as a,Ob as r,Pb as S,Qb as l,Rb as p,Sb as d,Tb as c,Ub as y,Vb as m,Wb as u,Xb as T}from"./chunks/chunk-GVWPHE23.js";import{M as s,N as e}from"./chunks/chunk-PKQOEDHJ.js";import"./chunks/chunk-WIBLZK4G.js";import"./chunks/chunk-2RI252RN.js";import"./chunks/chunk-VVE3UM4F.js";import"./chunks/chunk-IR5KIK7E.js";import"./chunks/chunk-MVARIMQV.js";import"./chunks/chunk-VDGCGOQH.js";import"./chunks/chunk-SQODXBLX.js";import"./chunks/chunk-44QXPEEE.js";import"./chunks/chunk-GIK4SGAT.js";import"./chunks/chunk-ZJIMT5I3.js";import"./chunks/chunk-JSDLBXME.js";import"./chunks/chunk-E27LHEIP.js";import"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.js";import"./chunks/chunk-ONUPGMER.js";export{r as appendClientNotice,y as archiveSession,t as compactSession,T as createSessionManager,c as deleteSession,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,S as forkSession,d as listRunningSessions,i as listSessions,a as loadFullTranscript,n as loadSession,o as restoreHistoryItemsFromSession,l as rewindSession,p as setActiveEntry,m as unarchiveSession,u as watchSessions};
|
package/dist/sdk-skills.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { b as SkillArtifact, d as SkillDynamicContextExecutor, g as SkillHook, h as SkillHooks, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-
|
|
1
|
+
import { R as ResolvedSkillSource, S as Skill, e as SkillFile, i as SkillMetadata, f as SkillFrontmatter, j as SkillPathsConfig, a as IVariableResolver, c as SkillContext, I as ISkillRegistry, k as SkillResult } from './types-chunks/types.d-DCQVBqVn.js';
|
|
2
|
+
export { b as SkillArtifact, d as SkillDynamicContextExecutor, g as SkillHook, h as SkillHooks, l as SkillSource, m as getDefaultSkillPaths, n as getSkillPathsFlat } from './types-chunks/types.d-DCQVBqVn.js';
|
|
3
3
|
|
|
4
4
|
declare function registerPluginSkillPath(skillPath: string): () => void;
|
|
5
5
|
declare function unregisterPluginSkillPath(skillPath: string): boolean;
|
|
@@ -23,11 +23,11 @@ declare function parseSkillMarkdown(content: string): {
|
|
|
23
23
|
/**
|
|
24
24
|
* Load skill metadata from SKILL.md file
|
|
25
25
|
*/
|
|
26
|
-
declare function loadSkillMetadata(skillDir: string, source:
|
|
26
|
+
declare function loadSkillMetadata(skillDir: string, source: ResolvedSkillSource): Promise<SkillMetadata | null>;
|
|
27
27
|
/**
|
|
28
28
|
* Load full skill content
|
|
29
29
|
*/
|
|
30
|
-
declare function loadFullSkill(skillDir: string, source:
|
|
30
|
+
declare function loadFullSkill(skillDir: string, source: ResolvedSkillSource): Promise<Skill | null>;
|
|
31
31
|
/**
|
|
32
32
|
* Load a specific support file's content
|
|
33
33
|
*/
|
|
@@ -329,5 +329,5 @@ declare function expandSkillForLLM(skill: Skill, args: string, context: SkillCon
|
|
|
329
329
|
*/
|
|
330
330
|
declare function formatSkillActivationMessage(skillName: string, args: string): string;
|
|
331
331
|
|
|
332
|
-
export { ISkillRegistry, IVariableResolver, Skill, SkillContext, SkillExecutor, SkillFile, SkillFrontmatter, SkillMetadata, SkillPathsConfig, SkillRegistry, SkillResult,
|
|
332
|
+
export { ISkillRegistry, IVariableResolver, ResolvedSkillSource, Skill, SkillContext, SkillExecutor, SkillFile, SkillFrontmatter, SkillMetadata, SkillPathsConfig, SkillRegistry, SkillResult, VariableResolver, clearPluginSkillPaths, createExecutor, createResolver, discoverSkills, discoverSkillsWithMonorepo, executeSkill, expandSkillForLLM, formatSkillActivationMessage, getNestedSkillPaths, getSkillRegistry, initializeSkillRegistry, listPluginSkillPaths, loadFullSkill, loadSkillFileContent, loadSkillMetadata, parseArguments, parseSkillMarkdown, registerPluginSkillPath, resetSkillRegistry, resolveSkillContent, unregisterPluginSkillPath };
|
|
333
333
|
export type { DiscoveryResult, ExecutionMode, ExecutionOptions, SkillExpansionResult };
|
package/dist/sdk-skills.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
|
|
2
|
-
import"./chunks/chunk-
|
|
2
|
+
import"./chunks/chunk-JSDLBXME.js";import{$ as f,B as l,C as e,D as i,E as t,F as o,G as a,K as k,L as r,M as S,N as s,O as n,P as g,Q as u,R as c,S as d,T as x,U as P,V as R,W as h,X as p,Y as v,Z as y,_ as M,aa as m,ba as E}from"./chunks/chunk-E27LHEIP.js";import"./chunks/chunk-EDZ5KJFT.js";import"./chunks/chunk-23X6REO4.js";import"./chunks/chunk-ONUPGMER.js";export{y as SkillExecutor,R as SkillRegistry,d as VariableResolver,t as clearPluginSkillPaths,M as createExecutor,x as createResolver,n as discoverSkills,u as discoverSkillsWithMonorepo,f as executeSkill,m as expandSkillForLLM,E as formatSkillActivationMessage,o as getDefaultSkillPaths,g as getNestedSkillPaths,a as getSkillPathsFlat,h as getSkillRegistry,p as initializeSkillRegistry,i as listPluginSkillPaths,S as loadFullSkill,s as loadSkillFileContent,r as loadSkillMetadata,c as parseArguments,k as parseSkillMarkdown,l as registerPluginSkillPath,v as resetSkillRegistry,P as resolveSkillContent,e as unregisterPluginSkillPath};
|