@kodax-ai/kodax 0.7.73 → 0.7.74
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 +134 -0
- package/README.md +26 -6
- package/README_CN.md +23 -5
- package/config-templates/config.example.jsonc +7 -0
- package/dist/chunks/{agent-T6PGT6AU.js → agent-2ABIG5NW.js} +1 -1
- package/dist/chunks/argument-completer-C45DEO34.js +2 -0
- package/dist/chunks/chunk-5GH3SVI3.js +74 -0
- package/dist/chunks/{chunk-6JTWXGVU.js → chunk-7W6KYJU2.js} +225 -225
- package/dist/chunks/chunk-C7TZAT3S.js +369 -0
- package/dist/chunks/chunk-KPGVY6PF.js +321 -0
- package/dist/chunks/{chunk-6RI2RBTF.js → chunk-MVCAFD6M.js} +1 -1
- package/dist/chunks/{chunk-BUPJGG3C.js → chunk-PP53SIIL.js} +1 -1
- package/dist/chunks/chunk-QH56WEHK.js +2 -0
- package/dist/chunks/chunk-UJS7JAO6.js +770 -0
- package/dist/chunks/{chunk-M7FXNPWV.js → chunk-VK5QTHS6.js} +6 -6
- package/dist/chunks/chunk-VPURXE2F.js +427 -0
- package/dist/chunks/chunk-XM724XAA.js +329 -0
- package/dist/chunks/{chunk-MLEAQTCD.js → chunk-XMP66YWG.js} +11 -4
- package/dist/chunks/{compaction-config-IHJBP4GO.js → compaction-config-QYCDOW3Q.js} +1 -1
- package/dist/chunks/{construction-bootstrap-EGRUHKLP.js → construction-bootstrap-BKNPJI7O.js} +1 -1
- package/dist/chunks/dist-6EK4H7TP.js +2 -0
- package/dist/chunks/host-KS4TJKWQ.js +2 -0
- package/dist/chunks/{run-manager-AY7RQOWM.js → run-manager-L7MKGQNX.js} +1 -1
- package/dist/chunks/{utils-2GAE4XIM.js → utils-GTJLL4GT.js} +1 -1
- package/dist/index.d.ts +12 -11
- package/dist/index.js +5 -5
- package/dist/kodax_cli.js +1295 -1253
- package/dist/runtime-worker.js +1208 -1166
- package/dist/sdk-a2a.d.ts +9 -8
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +107 -59
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +32 -16
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +27 -20
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +151 -14
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +4 -4
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +16 -14
- package/dist/types-chunks/{bash-prefix-extractor.d-bApf5nGw.d.ts → bash-prefix-extractor.d-r1beOESM.d.ts} +48 -12
- package/dist/types-chunks/{capsule.d-CGWltwno.d.ts → capsule.d-zeqV4IQX.d.ts} +10 -2
- package/dist/types-chunks/{commands.d-CEHGwRok.d.ts → commands.d-DUxnK2TU.d.ts} +10 -7
- package/dist/types-chunks/{guardrail.d-CC4vAQl7.d.ts → guardrail.d-CWYD1bdL.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-CXIPlWP3.d.ts → guardrail.d-qjuKJZ31.d.ts} +72 -11
- package/dist/types-chunks/history-retrieval.d-BKTJIrVd.d.ts +57 -0
- package/dist/types-chunks/{public-api.d-FBmX0kxo.d.ts → public-api.d-CX4B11qY.d.ts} +17 -4
- package/dist/types-chunks/{run-manager.d-DUNnJcpE.d.ts → run-manager.d-B9fEIjZk.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-XqacVOs8.d.ts → sdk-session-B0fhAOPa.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DKr6TCXL.d.ts → types.d-Bm_y6YuM.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DgciGHoG.d.ts → types.d-DEctY20M.d.ts} +9 -2
- package/dist/types-chunks/{types.d-BnPhGmar.d.ts → types.d-sRLugmjy.d.ts} +61 -14
- package/dist/types-chunks/{utils.d-BPYX7-KN.d.ts → utils.d-D0wPxz8y.d.ts} +5 -5
- package/docs/SDK_EMBEDDER_GUIDE.md +1956 -1684
- package/package.json +8 -1
- package/dist/chunks/argument-completer-QGMWA2C3.js +0 -2
- package/dist/chunks/chunk-AGDDM5AW.js +0 -329
- package/dist/chunks/chunk-EAD4SF3Z.js +0 -413
- package/dist/chunks/chunk-HVCNAZ52.js +0 -365
- package/dist/chunks/chunk-OG6DRNKV.js +0 -755
- package/dist/chunks/chunk-PFH53O4M.js +0 -2
- package/dist/chunks/chunk-V4F6IYNK.js +0 -73
- package/dist/chunks/chunk-WQ6PWGK5.js +0 -320
- package/dist/chunks/dist-5N3I2RTW.js +0 -2
- package/dist/chunks/host-MECITNE3.js +0 -2
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-CSmF0t0n.js';
|
|
2
2
|
export { k as KodaXMessage } from './types-chunks/types.d-CSmF0t0n.js';
|
|
3
|
-
import {
|
|
4
|
-
import { C as AgentDispatchContext, Q as AgentExecutorFactory, D as AgentDispatchPolicy, y as AgentCredentialBroker, m as AgentArtifactPolicy,
|
|
3
|
+
import { a1 as KodaXOptions, W as KodaXManagedTaskStatusEvent, Q as KodaXEvents, ab as KodaXResult, ba as RuntimeContextBudgetSnapshot, bh as RuntimeToolExposurePlan, N as KodaXContextOptions, K as KodaXActivityEventMeta, aF as KodaXToolEventMeta, aM as KodaXTurnStartedEvent, aJ as KodaXTurnCompletedEvent, aL as KodaXTurnFailedEvent, L as KodaXContextCompactionFinishedEvent, M as KodaXContextIdentity } from './types-chunks/bash-prefix-extractor.d-r1beOESM.js';
|
|
4
|
+
import { C as AgentDispatchContext, Q as AgentExecutorFactory, D as AgentDispatchPolicy, y as AgentCredentialBroker, m as AgentArtifactPolicy, bu as KodaXImageInputArtifact, bx as KodaXInputArtifactSource, c3 as KodaXVideoInputArtifact, ea as WorkflowProcessSnapshot, e4 as WorkflowProcessEvent, M as AgentExecutionKind, al as AgentRegistrationService, b1 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-sRLugmjy.js';
|
|
5
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 {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-BKTJIrVd.js';
|
|
9
|
+
import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-B9fEIjZk.js';
|
|
10
|
+
import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-Bm_y6YuM.js';
|
|
11
|
+
import { r as AutoModeStats } from './types-chunks/guardrail.d-qjuKJZ31.js';
|
|
12
|
+
import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-D0wPxz8y.js';
|
|
13
|
+
import { k as FullTranscriptSessionData, Z as SessionTranscriptEntry, c as CompactSessionResult } from './types-chunks/public-api.d-CX4B11qY.js';
|
|
13
14
|
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';
|
|
14
15
|
import 'vscode-languageserver-protocol';
|
|
15
16
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
16
17
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
17
18
|
import './types-chunks/base.d-ChvpaKjZ.js';
|
|
18
|
-
import './types-chunks/guardrail.d-
|
|
19
|
+
import './types-chunks/guardrail.d-CWYD1bdL.js';
|
|
19
20
|
import 'readline';
|
|
20
21
|
import 'child_process';
|
|
21
22
|
|
|
@@ -175,7 +176,7 @@ interface RuntimeLearningService {
|
|
|
175
176
|
|
|
176
177
|
declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
|
|
177
178
|
declare const KODAX_DAEMON_PROTOCOL_VERSION = 1;
|
|
178
|
-
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.autoMode.getStats' | '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';
|
|
179
|
+
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.transcript.page' | 'session.transcript.entryChunk' | 'session.transcript.search' | '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.autoMode.getStats' | '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';
|
|
179
180
|
type RuntimeDaemonRetiredMethod = 'agentTasks.list' | 'agentTasks.start' | 'agentTasks.get' | 'agentTasks.events' | 'agentTasks.wait' | 'agentTasks.sendInput' | 'agentTasks.cancel' | 'agentTasks.reconcile';
|
|
180
181
|
type RuntimeDaemonWireMethod = RuntimeDaemonMethod | RuntimeDaemonRetiredMethod;
|
|
181
182
|
type RuntimeDaemonNotificationMethod = 'event' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
|
|
@@ -355,6 +356,18 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
355
356
|
params: RuntimeDaemonJsonSchema;
|
|
356
357
|
result: RuntimeDaemonJsonSchema;
|
|
357
358
|
};
|
|
359
|
+
'session.transcript.page': {
|
|
360
|
+
params: RuntimeDaemonJsonSchema;
|
|
361
|
+
result: RuntimeDaemonJsonSchema;
|
|
362
|
+
};
|
|
363
|
+
'session.transcript.entryChunk': {
|
|
364
|
+
params: RuntimeDaemonJsonSchema;
|
|
365
|
+
result: RuntimeDaemonJsonSchema;
|
|
366
|
+
};
|
|
367
|
+
'session.transcript.search': {
|
|
368
|
+
params: RuntimeDaemonJsonSchema;
|
|
369
|
+
result: RuntimeDaemonJsonSchema;
|
|
370
|
+
};
|
|
358
371
|
'session.observe': {
|
|
359
372
|
params: RuntimeDaemonJsonSchema;
|
|
360
373
|
result: RuntimeDaemonJsonSchema;
|
|
@@ -1023,6 +1036,12 @@ interface RuntimeCapabilityRequirements {
|
|
|
1023
1036
|
readonly coderFeatureMatrix?: 1;
|
|
1024
1037
|
readonly sessionAdmission?: 1;
|
|
1025
1038
|
readonly completeObservationSnapshot?: 1;
|
|
1039
|
+
/** Require always-on thresholds, stable context identity, and canonical compact events. */
|
|
1040
|
+
readonly contextCompaction?: 1 | 2 | 3;
|
|
1041
|
+
/** Require bounded transcript slices plus page/chunk recovery. */
|
|
1042
|
+
readonly transcriptPaging?: 1;
|
|
1043
|
+
/** Require deterministic exact-history search over merged persisted lineage. */
|
|
1044
|
+
readonly transcriptSearch?: 1;
|
|
1026
1045
|
readonly connectionLifecycle?: 1;
|
|
1027
1046
|
readonly typedRuntimeEvents?: 1;
|
|
1028
1047
|
readonly daemonSafeRunInput?: 1;
|
|
@@ -1304,6 +1323,54 @@ interface RuntimeSessionSummary extends RuntimeSession {
|
|
|
1304
1323
|
readonly archived?: boolean;
|
|
1305
1324
|
}
|
|
1306
1325
|
type RuntimeTranscript = FullTranscriptSessionData;
|
|
1326
|
+
interface RuntimeTranscriptSliceEntry {
|
|
1327
|
+
readonly index: number;
|
|
1328
|
+
readonly entryId?: string;
|
|
1329
|
+
readonly byteLength: number;
|
|
1330
|
+
readonly oversized: boolean;
|
|
1331
|
+
readonly entry?: SessionTranscriptEntry;
|
|
1332
|
+
}
|
|
1333
|
+
interface RuntimeTranscriptSlice {
|
|
1334
|
+
readonly revision: string;
|
|
1335
|
+
readonly entries: readonly RuntimeTranscriptSliceEntry[];
|
|
1336
|
+
readonly hasMore: boolean;
|
|
1337
|
+
readonly nextCursor?: string;
|
|
1338
|
+
}
|
|
1339
|
+
interface RuntimeTranscriptPageInput {
|
|
1340
|
+
readonly sessionId: string;
|
|
1341
|
+
readonly cursor?: string;
|
|
1342
|
+
readonly limit?: number;
|
|
1343
|
+
}
|
|
1344
|
+
interface RuntimeTranscriptEntryChunkInput {
|
|
1345
|
+
readonly sessionId: string;
|
|
1346
|
+
readonly revision: string;
|
|
1347
|
+
readonly entryIndex: number;
|
|
1348
|
+
readonly cursor?: string;
|
|
1349
|
+
}
|
|
1350
|
+
interface RuntimeTranscriptEntryChunk {
|
|
1351
|
+
readonly revision: string;
|
|
1352
|
+
readonly entryIndex: number;
|
|
1353
|
+
readonly entryId?: string;
|
|
1354
|
+
readonly encoding: 'base64-json';
|
|
1355
|
+
readonly data: string;
|
|
1356
|
+
readonly hasMore: boolean;
|
|
1357
|
+
readonly nextCursor?: string;
|
|
1358
|
+
}
|
|
1359
|
+
interface RuntimeTranscriptSearchInput {
|
|
1360
|
+
readonly sessionId: string;
|
|
1361
|
+
readonly query: string;
|
|
1362
|
+
readonly limit?: number;
|
|
1363
|
+
readonly role?: 'user' | 'assistant';
|
|
1364
|
+
readonly scope?: 'compacted' | 'all';
|
|
1365
|
+
}
|
|
1366
|
+
interface RuntimeTranscriptSearchHit extends KodaXSessionHistoryHit {
|
|
1367
|
+
/** Index accepted by transcriptEntryChunk for this exact transcript revision. */
|
|
1368
|
+
readonly entryIndex: number;
|
|
1369
|
+
}
|
|
1370
|
+
interface RuntimeTranscriptSearchResult {
|
|
1371
|
+
readonly revision: string;
|
|
1372
|
+
readonly hits: readonly RuntimeTranscriptSearchHit[];
|
|
1373
|
+
}
|
|
1307
1374
|
interface RuntimeSessionFilter {
|
|
1308
1375
|
readonly projectRoot?: string;
|
|
1309
1376
|
readonly scope?: 'user' | 'managed-task-worker' | 'all';
|
|
@@ -1333,6 +1400,10 @@ interface RuntimeSessionSettings {
|
|
|
1333
1400
|
readonly autoModeClassifierModel?: string;
|
|
1334
1401
|
readonly autoModeTimeoutMs?: number;
|
|
1335
1402
|
readonly autoModeSpeculativeWindowMs?: number;
|
|
1403
|
+
/** Auto-compaction percentage threshold, normalized to the inclusive 15-90 range. */
|
|
1404
|
+
readonly compactionTriggerPercent?: number;
|
|
1405
|
+
/** Optional absolute auto-compaction threshold. Missing or zero is inactive. */
|
|
1406
|
+
readonly compactionTriggerTokens?: number;
|
|
1336
1407
|
}
|
|
1337
1408
|
interface RuntimeSessionSettingsPatch {
|
|
1338
1409
|
readonly provider?: string | null;
|
|
@@ -1347,6 +1418,8 @@ interface RuntimeSessionSettingsPatch {
|
|
|
1347
1418
|
readonly autoModeClassifierModel?: string | null;
|
|
1348
1419
|
readonly autoModeTimeoutMs?: number | null;
|
|
1349
1420
|
readonly autoModeSpeculativeWindowMs?: number | null;
|
|
1421
|
+
readonly compactionTriggerPercent?: number | null;
|
|
1422
|
+
readonly compactionTriggerTokens?: number | null;
|
|
1350
1423
|
}
|
|
1351
1424
|
interface RuntimeAppendNoticeInput {
|
|
1352
1425
|
readonly sessionId: string;
|
|
@@ -1367,6 +1440,10 @@ interface RuntimeCompactSessionInput {
|
|
|
1367
1440
|
readonly model?: string;
|
|
1368
1441
|
readonly customInstructions?: string;
|
|
1369
1442
|
readonly contextWindow?: number;
|
|
1443
|
+
/** Override the Session percentage threshold used to size the protected tail. */
|
|
1444
|
+
readonly triggerPercent?: number;
|
|
1445
|
+
/** Override the Session absolute threshold used to size the protected tail. */
|
|
1446
|
+
readonly triggerTokens?: number;
|
|
1370
1447
|
}
|
|
1371
1448
|
interface RuntimeCompactSessionResult extends CompactSessionResult {
|
|
1372
1449
|
readonly session?: RuntimeSession;
|
|
@@ -1410,7 +1487,7 @@ interface RuntimeSessionObservationSnapshot {
|
|
|
1410
1487
|
/** Content-derived token for the transcript captured at this observation boundary. */
|
|
1411
1488
|
readonly transcriptRevision: string;
|
|
1412
1489
|
readonly session: RuntimeSession;
|
|
1413
|
-
readonly transcript:
|
|
1490
|
+
readonly transcript: RuntimeTranscriptSlice | null;
|
|
1414
1491
|
readonly settings: RuntimeVersionedValue<RuntimeSessionSettings>;
|
|
1415
1492
|
readonly runs: readonly RuntimeRunStatus[];
|
|
1416
1493
|
readonly pendingPermissions: readonly RuntimePermissionRequest[];
|
|
@@ -1424,6 +1501,9 @@ interface RuntimeSessionService {
|
|
|
1424
1501
|
load(sessionId: string): Promise<RuntimeSession>;
|
|
1425
1502
|
list(filter?: RuntimeSessionFilter): Promise<readonly RuntimeSessionSummary[]>;
|
|
1426
1503
|
transcript(sessionId: string): Promise<RuntimeTranscript | null>;
|
|
1504
|
+
transcriptPage(input: RuntimeTranscriptPageInput): Promise<RuntimeTranscriptSlice | null>;
|
|
1505
|
+
transcriptEntryChunk(input: RuntimeTranscriptEntryChunkInput): Promise<RuntimeTranscriptEntryChunk | null>;
|
|
1506
|
+
transcriptSearch(input: RuntimeTranscriptSearchInput): Promise<RuntimeTranscriptSearchResult | null>;
|
|
1427
1507
|
observe(sessionId: string, listener: RuntimeEventListener): Promise<RuntimeSessionObservation>;
|
|
1428
1508
|
fork(input: RuntimeForkSessionInput): Promise<RuntimeSession | null>;
|
|
1429
1509
|
getSettings(sessionId: string): Promise<RuntimeSessionSettings>;
|
|
@@ -1519,12 +1599,21 @@ type RuntimeSubmitInputResult = {
|
|
|
1519
1599
|
readonly sessionId: string;
|
|
1520
1600
|
readonly afterRunId: string;
|
|
1521
1601
|
readonly sessionOrder: number;
|
|
1602
|
+
} | {
|
|
1603
|
+
readonly accepted: true;
|
|
1604
|
+
readonly delivery: 'interrupt';
|
|
1605
|
+
readonly inputId: string;
|
|
1606
|
+
/** The existing active Run that owns this input; no new Run is created. */
|
|
1607
|
+
readonly runId: string;
|
|
1608
|
+
readonly sessionId: string;
|
|
1609
|
+
readonly afterRunId: string;
|
|
1610
|
+
readonly sessionOrder: number;
|
|
1522
1611
|
} | {
|
|
1523
1612
|
readonly accepted: false;
|
|
1524
1613
|
readonly delivery: 'after_turn' | 'interrupt';
|
|
1525
1614
|
readonly sessionId: string;
|
|
1526
1615
|
readonly afterRunId: string;
|
|
1527
|
-
readonly reason: 'stale_run' | 'unsupported_capability';
|
|
1616
|
+
readonly reason: 'stale_run' | 'unsupported_capability' | 'interrupt_window_closed';
|
|
1528
1617
|
};
|
|
1529
1618
|
interface RuntimeOperationOptions {
|
|
1530
1619
|
readonly operationId?: string;
|
|
@@ -1576,6 +1665,7 @@ interface RuntimeRunStatus {
|
|
|
1576
1665
|
readonly error?: string;
|
|
1577
1666
|
readonly terminal?: RuntimeTerminalFact;
|
|
1578
1667
|
readonly continuation?: RuntimeContinuationStatus;
|
|
1668
|
+
readonly interruptInputs?: readonly RuntimeInterruptInputStatus[];
|
|
1579
1669
|
readonly requirements?: RuntimeRunRequirements;
|
|
1580
1670
|
}
|
|
1581
1671
|
interface RuntimeRunRequirements {
|
|
@@ -1596,6 +1686,16 @@ interface RuntimeContinuationStatus {
|
|
|
1596
1686
|
readonly state: 'queued' | 'delivered' | 'terminal';
|
|
1597
1687
|
readonly contentPreview: string;
|
|
1598
1688
|
}
|
|
1689
|
+
interface RuntimeInterruptInputStatus {
|
|
1690
|
+
readonly inputId: string;
|
|
1691
|
+
readonly afterRunId: string;
|
|
1692
|
+
readonly delivery: 'interrupt';
|
|
1693
|
+
readonly state: 'queued' | 'delivered' | 'terminal';
|
|
1694
|
+
readonly contentPreview: string;
|
|
1695
|
+
readonly queuedAt: string;
|
|
1696
|
+
readonly deliveredAt?: string;
|
|
1697
|
+
readonly origin?: RuntimeRunStatus['origin'];
|
|
1698
|
+
}
|
|
1599
1699
|
type RuntimeTerminalCode = 'completed' | 'run_failed' | 'cancelled' | 'interrupted' | 'runtime_restarted' | 'daemon_crashed' | 'credential_unavailable' | 'host_not_dispatched' | 'host_outcome_unknown' | 'control_history_untrusted';
|
|
1600
1700
|
interface RuntimeTerminalFact {
|
|
1601
1701
|
readonly revision: number;
|
|
@@ -1632,7 +1732,7 @@ interface RuntimeRunService {
|
|
|
1632
1732
|
setProvider(runId: string, provider: string): Promise<void>;
|
|
1633
1733
|
setReasoning(runId: string, reasoning: KodaXReasoningMode | undefined): Promise<void>;
|
|
1634
1734
|
}
|
|
1635
|
-
type RuntimeEventType = 'session.created' | 'session.loaded' | 'session.settings.updated' | 'session.notice.appended' | 'session.rewound' | 'session.active_entry.updated' | 'session.compacted' | 'run.queued' | 'run.started' | 'run.updated' | 'run.progress' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'permission.grant.changed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.compaction.started' | 'context.compaction.stats' | 'context.compaction.finished' | 'context.compaction.messages' | 'context.compaction.ended' | 'context.compaction.skipped' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'child_activity.finished' | 'provider.retry' | 'provider.recovery' | 'repo_intelligence.trace' | 'todo.updated' | 'todo.warning' | 'sidecar.message' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'artifact.created' | 'config.effective' | 'runtime.warning';
|
|
1735
|
+
type RuntimeEventType = 'session.created' | 'session.loaded' | 'session.settings.updated' | 'session.notice.appended' | 'session.rewound' | 'session.active_entry.updated' | 'session.compacted' | 'run.queued' | 'run.started' | 'run.updated' | 'run.progress' | 'run.input.queued' | 'run.input.delivered' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'permission.grant.changed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.compaction.started' | 'context.compaction.stats' | 'context.compaction.finished' | 'context.compaction.messages' | 'context.compaction.ended' | 'context.compaction.skipped' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'child_activity.finished' | 'provider.retry' | 'provider.recovery' | 'repo_intelligence.trace' | 'todo.updated' | 'todo.warning' | 'sidecar.message' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'artifact.created' | 'config.effective' | 'runtime.warning';
|
|
1636
1736
|
interface RuntimeTextDeltaEventPayload {
|
|
1637
1737
|
readonly text: string;
|
|
1638
1738
|
readonly meta?: KodaXActivityEventMeta;
|
|
@@ -1691,6 +1791,20 @@ interface RuntimeTodoUpdatedEventPayload {
|
|
|
1691
1791
|
readonly items: readonly unknown[];
|
|
1692
1792
|
readonly meta?: KodaXActivityEventMeta;
|
|
1693
1793
|
}
|
|
1794
|
+
interface RuntimeRunInputQueuedEventPayload {
|
|
1795
|
+
readonly input: RuntimeInterruptInputStatus;
|
|
1796
|
+
}
|
|
1797
|
+
interface RuntimeDeliveredInterruptInput {
|
|
1798
|
+
readonly inputId: string;
|
|
1799
|
+
readonly afterRunId: string;
|
|
1800
|
+
readonly input: RuntimeInput | readonly RuntimeInput[];
|
|
1801
|
+
readonly queuedAt: string;
|
|
1802
|
+
readonly deliveredAt: string;
|
|
1803
|
+
readonly origin?: RuntimeRunStatus['origin'];
|
|
1804
|
+
}
|
|
1805
|
+
interface RuntimeRunInputDeliveredEventPayload {
|
|
1806
|
+
readonly inputs: readonly RuntimeDeliveredInterruptInput[];
|
|
1807
|
+
}
|
|
1694
1808
|
interface RuntimeInteractionResolvedEventPayload {
|
|
1695
1809
|
readonly requestId: string;
|
|
1696
1810
|
readonly status?: string;
|
|
@@ -1708,6 +1822,25 @@ interface RuntimeWarningEventPayload {
|
|
|
1708
1822
|
readonly severity?: string;
|
|
1709
1823
|
readonly sourceEventId?: string;
|
|
1710
1824
|
}
|
|
1825
|
+
type RuntimeContextCompactionFinishedEventPayload = KodaXContextCompactionFinishedEvent & KodaXContextIdentity & {
|
|
1826
|
+
readonly beforeRevision: number;
|
|
1827
|
+
readonly afterRevision: number;
|
|
1828
|
+
readonly reason?: string;
|
|
1829
|
+
};
|
|
1830
|
+
interface RuntimeContextCompactionMessagesEventPayload {
|
|
1831
|
+
readonly messageCount: number;
|
|
1832
|
+
readonly update?: {
|
|
1833
|
+
readonly hasAnchor: boolean;
|
|
1834
|
+
readonly tokensBefore?: number;
|
|
1835
|
+
readonly tokensAfter?: number;
|
|
1836
|
+
readonly entriesRemoved?: number;
|
|
1837
|
+
readonly reason?: string;
|
|
1838
|
+
readonly artifactLedgerEntryCount: number;
|
|
1839
|
+
readonly postCompactAttachmentCount: number;
|
|
1840
|
+
readonly exactSnapshotAvailable: boolean;
|
|
1841
|
+
};
|
|
1842
|
+
readonly meta?: KodaXActivityEventMeta;
|
|
1843
|
+
}
|
|
1711
1844
|
interface RuntimeSessionSettingsUpdatedEventPayload {
|
|
1712
1845
|
readonly sessionId: string;
|
|
1713
1846
|
readonly revision: number;
|
|
@@ -1722,7 +1855,7 @@ type RuntimeUserInputRequestedEventPayload = RuntimeUserInputRequest | {
|
|
|
1722
1855
|
type RuntimeEventPayloadDefaults = {
|
|
1723
1856
|
readonly [K in RuntimeEventType]: unknown;
|
|
1724
1857
|
};
|
|
1725
|
-
type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created' | 'session.loaded' | 'run.queued' | 'run.started' | 'run.updated' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'run.progress' | 'todo.updated' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'permission.grant.changed' | 'session.settings.updated' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'runtime.warning'> & {
|
|
1858
|
+
type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created' | 'session.loaded' | 'run.queued' | 'run.started' | 'run.updated' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'run.progress' | 'run.input.queued' | 'run.input.delivered' | 'todo.updated' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'permission.grant.changed' | 'session.settings.updated' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'context.compaction.messages' | 'context.compaction.finished' | 'runtime.warning'> & {
|
|
1726
1859
|
readonly 'session.created': RuntimeSession;
|
|
1727
1860
|
readonly 'session.loaded': RuntimeSessionLoadedEventPayload;
|
|
1728
1861
|
readonly 'run.queued': RuntimeRunStatus;
|
|
@@ -1739,6 +1872,8 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created
|
|
|
1739
1872
|
readonly 'tool.progress': RuntimeToolProgressEventPayload;
|
|
1740
1873
|
readonly 'tool.finished': RuntimeToolFinishedEventPayload;
|
|
1741
1874
|
readonly 'run.progress': RuntimeRunProgressEventPayload;
|
|
1875
|
+
readonly 'run.input.queued': RuntimeRunInputQueuedEventPayload;
|
|
1876
|
+
readonly 'run.input.delivered': RuntimeRunInputDeliveredEventPayload;
|
|
1742
1877
|
readonly 'todo.updated': RuntimeTodoUpdatedEventPayload;
|
|
1743
1878
|
readonly 'user_input.requested': RuntimeUserInputRequestedEventPayload;
|
|
1744
1879
|
readonly 'user_input.resolved': RuntimeInteractionResolvedEventPayload;
|
|
@@ -1754,6 +1889,8 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created
|
|
|
1754
1889
|
readonly 'workflow.finished': WorkflowProcessEvent;
|
|
1755
1890
|
readonly 'context.budget.snapshot': RuntimeContextBudgetSnapshot;
|
|
1756
1891
|
readonly 'tool.exposure.planned': RuntimeToolExposurePlan;
|
|
1892
|
+
readonly 'context.compaction.messages': RuntimeContextCompactionMessagesEventPayload;
|
|
1893
|
+
readonly 'context.compaction.finished': RuntimeContextCompactionFinishedEventPayload;
|
|
1757
1894
|
readonly 'runtime.warning': RuntimeWarningEventPayload;
|
|
1758
1895
|
};
|
|
1759
1896
|
interface RuntimeEventEnvelope<TPayload = unknown> {
|
|
@@ -2063,4 +2200,4 @@ declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promis
|
|
|
2063
2200
|
declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
|
|
2064
2201
|
|
|
2065
2202
|
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, RuntimeAutoModeConfigurationError, RuntimeContextBudgetSnapshot, RuntimeDaemonCapabilityUpgradeError, RuntimePermissionScopeUpgradeRequiredError, RuntimeToolExposurePlan, RuntimeTransportBoundaryError, SessionTranscriptEntry, acquireKodaXInlineOwner, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode };
|
|
2066
|
-
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, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, 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, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, 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 };
|
|
2203
|
+
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, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, 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, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, 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, RuntimeTranscriptEntryChunk, RuntimeTranscriptEntryChunkInput, RuntimeTranscriptPageInput, RuntimeTranscriptSearchHit, RuntimeTranscriptSearchInput, RuntimeTranscriptSearchResult, RuntimeTranscriptSlice, RuntimeTranscriptSliceEntry, 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,r,s,t}from"./chunks/chunk-
|
|
2
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"./chunks/chunk-5GH3SVI3.js";import"./chunks/chunk-KPGVY6PF.js";import"./chunks/chunk-7W6KYJU2.js";import"./chunks/chunk-XMP66YWG.js";import"./chunks/chunk-QH56WEHK.js";import"./chunks/chunk-VPURXE2F.js";import"./chunks/chunk-MVCAFD6M.js";import"./chunks/chunk-VK5QTHS6.js";import"./chunks/chunk-XM724XAA.js";import"./chunks/chunk-64M5HOCA.js";import"./chunks/chunk-MBAPT2R5.js";import"./chunks/chunk-C7TZAT3S.js";import"./chunks/chunk-XXQLPTAN.js";import"./chunks/chunk-UJS7JAO6.js";import"./chunks/chunk-GAFFYJU3.js";import"./chunks/chunk-PP53SIIL.js";import"./chunks/chunk-F7AIEHSS.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,d as RUNTIME_DAEMON_METHODS,g as RUNTIME_DAEMON_METHOD_SCHEMAS,h as RUNTIME_DAEMON_NOTIFICATION_SCHEMAS,i as RUNTIME_DAEMON_PROTOCOL_SCHEMA,j as RUNTIME_DAEMON_PROTOCOL_SCHEMA_JSON,m as RuntimeAutoModeConfigurationError,l as RuntimeDaemonCapabilityUpgradeError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,n as acquireKodaXInlineOwner,t as connectKodaXRuntime,s as createKodaXRuntime,q as enableKodaXDaemonOwner,o as getKodaXRuntimeOwnerPolicy,p as getKodaXRuntimeOwnerState,k as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,r as setKodaXRuntimeOwnerMode};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
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-CX4B11qY.js';
|
|
2
2
|
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-CSmF0t0n.js';
|
|
3
|
-
export {
|
|
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-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
3
|
+
export { bX as KodaXSessionUiHistoryItem, bY as KodaXSessionUiHistoryItemType, bZ as KodaXSessionUiTextHistoryItem, b_ as KodaXSessionUiTextHistoryItemType, b$ as KodaXSessionUiToolCall, c0 as KodaXSessionUiToolCallStatus, c1 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-sRLugmjy.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-B0fhAOPa.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-r1beOESM.js';
|
|
6
6
|
import './types-chunks/types.d-DCQVBqVn.js';
|
|
7
7
|
import 'vscode-languageserver-protocol';
|
|
8
8
|
import './types-chunks/cost-tracker.d-BeaenODW.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{$b as
|
|
2
|
+
import{$b as p,Ub as t,Vb as i,Wb as n,Xb as a,Yb as r,Zb as S,_b as l,ac as d,bb as o,bc as c,cc as y,dc as m,ec as u,fc as T}from"./chunks/chunk-KPGVY6PF.js";import{S as s,T as e}from"./chunks/chunk-7W6KYJU2.js";import"./chunks/chunk-XMP66YWG.js";import"./chunks/chunk-QH56WEHK.js";import"./chunks/chunk-VPURXE2F.js";import"./chunks/chunk-MVCAFD6M.js";import"./chunks/chunk-VK5QTHS6.js";import"./chunks/chunk-XM724XAA.js";import"./chunks/chunk-64M5HOCA.js";import"./chunks/chunk-MBAPT2R5.js";import"./chunks/chunk-C7TZAT3S.js";import"./chunks/chunk-XXQLPTAN.js";import"./chunks/chunk-UJS7JAO6.js";import"./chunks/chunk-GAFFYJU3.js";import"./chunks/chunk-PP53SIIL.js";import"./chunks/chunk-F7AIEHSS.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.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-UJS7JAO6.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-GAFFYJU3.js";import"./chunks/chunk-PP53SIIL.js";import"./chunks/chunk-F7AIEHSS.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};
|