@kodax-ai/kodax 0.7.72 → 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 +226 -0
- package/README.md +72 -18
- package/README_CN.md +55 -14
- package/config-templates/config.example.jsonc +7 -0
- package/dist/chunks/agent-2ABIG5NW.js +2 -0
- package/dist/chunks/argument-completer-C45DEO34.js +2 -0
- package/dist/chunks/chunk-5GH3SVI3.js +74 -0
- package/dist/chunks/{chunk-SQODXBLX.js → chunk-64M5HOCA.js} +1 -1
- package/dist/chunks/{chunk-PKQOEDHJ.js → chunk-7W6KYJU2.js} +224 -230
- package/dist/chunks/chunk-C7TZAT3S.js +369 -0
- package/dist/chunks/chunk-F7AIEHSS.js +46 -0
- package/dist/chunks/{chunk-E27LHEIP.js → chunk-GAFFYJU3.js} +1 -1
- package/dist/chunks/chunk-KPGVY6PF.js +321 -0
- package/dist/chunks/{chunk-44QXPEEE.js → chunk-MBAPT2R5.js} +1 -1
- package/dist/chunks/{chunk-IR5KIK7E.js → chunk-MVCAFD6M.js} +1 -1
- package/dist/chunks/chunk-PP53SIIL.js +5 -0
- package/dist/chunks/chunk-QH56WEHK.js +2 -0
- package/dist/chunks/chunk-UJS7JAO6.js +770 -0
- package/dist/chunks/{chunk-MVARIMQV.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-WIBLZK4G.js → chunk-XMP66YWG.js} +11 -4
- package/dist/chunks/chunk-XXQLPTAN.js +78 -0
- package/dist/chunks/compaction-config-QYCDOW3Q.js +2 -0
- package/dist/chunks/{construction-bootstrap-ZJPXUPXQ.js → construction-bootstrap-BKNPJI7O.js} +1 -1
- package/dist/chunks/dist-6EK4H7TP.js +2 -0
- package/dist/chunks/{dist-GOUP4YVE.js → dist-EVEJAII2.js} +1 -1
- package/dist/chunks/host-KS4TJKWQ.js +2 -0
- package/dist/chunks/run-manager-L7MKGQNX.js +2 -0
- package/dist/chunks/{utils-OTT5CG5J.js → utils-GTJLL4GT.js} +1 -1
- package/dist/index.d.ts +17 -16
- package/dist/index.js +5 -5
- package/dist/kodax_cli.js +1357 -1294
- package/dist/provider-capabilities.json +184 -5
- package/dist/runtime-worker.js +1277 -1224
- package/dist/sdk-a2a.d.ts +11 -10
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +110 -62
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +114 -32
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +8 -49
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.d.ts +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +153 -24
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +238 -19
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-session.d.ts +6 -6
- 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/{base.d-Cz_rwpOi.d.ts → base.d-ChvpaKjZ.d.ts} +1 -1
- package/dist/types-chunks/{bash-prefix-extractor.d-CHJO5y94.d.ts → bash-prefix-extractor.d-r1beOESM.d.ts} +50 -14
- package/dist/types-chunks/{capability-learning.d-_lR0J4iR.d.ts → capability-learning.d-DPrYxRjF.d.ts} +1 -1
- package/dist/types-chunks/{capsule.d-DxtdE-GD.d.ts → capsule.d-zeqV4IQX.d.ts} +11 -3
- package/dist/types-chunks/{commands.d-DZxHzH5-.d.ts → commands.d-DUxnK2TU.d.ts} +67 -8
- package/dist/types-chunks/{guardrail.d-DlpMnd-Y.d.ts → guardrail.d-CWYD1bdL.d.ts} +2 -1
- package/dist/types-chunks/{guardrail.d-auV61_h5.d.ts → guardrail.d-qjuKJZ31.d.ts} +79 -18
- package/dist/types-chunks/history-retrieval.d-BKTJIrVd.d.ts +57 -0
- package/dist/types-chunks/{public-api.d--IDNJsu1.d.ts → public-api.d-CX4B11qY.d.ts} +19 -5
- package/dist/types-chunks/{run-manager.d-Bh50OdVl.d.ts → run-manager.d-B9fEIjZk.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-Cfw6NFu-.d.ts → sdk-session-B0fhAOPa.d.ts} +3 -3
- package/dist/types-chunks/{resolver.d-ssgNSlrh.d.ts → side-query.d-DWTMsndP.d.ts} +68 -5
- package/dist/types-chunks/{types.d-EqQmHztg.d.ts → types.d-Bm_y6YuM.d.ts} +16 -9
- package/dist/types-chunks/{types.d-Cqaw71Ax.d.ts → types.d-CSmF0t0n.d.ts} +6 -5
- package/dist/types-chunks/{types.d-CNZgY52F.d.ts → types.d-DEctY20M.d.ts} +10 -3
- package/dist/types-chunks/{types.d-DH1mvdcl.d.ts → types.d-sRLugmjy.d.ts} +64 -15
- package/dist/types-chunks/{utils.d-gmn3c5U4.d.ts → utils.d-D0wPxz8y.d.ts} +94 -10
- package/docs/SDK_EMBEDDER_GUIDE.md +1952 -1573
- package/package.json +9 -2
- package/dist/chunks/agent-YKGU4USA.js +0 -2
- package/dist/chunks/argument-completer-QZETLNAB.js +0 -2
- package/dist/chunks/chunk-23X6REO4.js +0 -46
- package/dist/chunks/chunk-2RI252RN.js +0 -2
- package/dist/chunks/chunk-CLFP6UGU.js +0 -71
- package/dist/chunks/chunk-EDZ5KJFT.js +0 -5
- package/dist/chunks/chunk-GIK4SGAT.js +0 -364
- package/dist/chunks/chunk-GVWPHE23.js +0 -310
- package/dist/chunks/chunk-JSDLBXME.js +0 -755
- package/dist/chunks/chunk-VDGCGOQH.js +0 -328
- package/dist/chunks/chunk-VVE3UM4F.js +0 -410
- package/dist/chunks/chunk-ZJIMT5I3.js +0 -78
- package/dist/chunks/compaction-config-TWCDFLX6.js +0 -2
- package/dist/chunks/dist-JT4ATXVM.js +0 -2
- package/dist/chunks/host-SVEDZUC5.js +0 -2
- package/dist/chunks/run-manager-RX42UNEM.js +0 -2
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,24 +1,52 @@
|
|
|
1
|
-
import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-
|
|
2
|
-
export { k as KodaXMessage } from './types-chunks/types.d-
|
|
3
|
-
import {
|
|
4
|
-
import { C as AgentDispatchContext, Q as AgentExecutorFactory, D as AgentDispatchPolicy, y as AgentCredentialBroker, m as AgentArtifactPolicy,
|
|
1
|
+
import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-CSmF0t0n.js';
|
|
2
|
+
export { k as KodaXMessage } from './types-chunks/types.d-CSmF0t0n.js';
|
|
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 {
|
|
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';
|
|
12
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';
|
|
13
15
|
import 'vscode-languageserver-protocol';
|
|
14
16
|
import './types-chunks/cost-tracker.d-BeaenODW.js';
|
|
15
17
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
16
|
-
import './types-chunks/base.d-
|
|
17
|
-
import './types-chunks/guardrail.d-
|
|
18
|
-
import './types-chunks/guardrail.d-DlpMnd-Y.js';
|
|
18
|
+
import './types-chunks/base.d-ChvpaKjZ.js';
|
|
19
|
+
import './types-chunks/guardrail.d-CWYD1bdL.js';
|
|
19
20
|
import 'readline';
|
|
20
21
|
import 'child_process';
|
|
21
22
|
|
|
23
|
+
type RuntimePermissionHostPlatform = 'win32' | 'posix';
|
|
24
|
+
interface RuntimePermissionMatcherBase {
|
|
25
|
+
readonly version: 1;
|
|
26
|
+
readonly toolName: string;
|
|
27
|
+
readonly fingerprint: string;
|
|
28
|
+
}
|
|
29
|
+
interface RuntimeExactCommandPermissionMatcher extends RuntimePermissionMatcherBase {
|
|
30
|
+
readonly kind: 'exact-command';
|
|
31
|
+
readonly shell: 'cmd' | 'posix';
|
|
32
|
+
/** SHA-256 of the normalized concrete command; raw command text is never persisted. */
|
|
33
|
+
readonly commandFingerprint: string;
|
|
34
|
+
readonly cwd: string;
|
|
35
|
+
readonly executable?: string;
|
|
36
|
+
readonly argvFingerprint?: string;
|
|
37
|
+
readonly background: boolean;
|
|
38
|
+
}
|
|
39
|
+
interface RuntimeExactPathPermissionMatcher extends RuntimePermissionMatcherBase {
|
|
40
|
+
readonly kind: 'exact-path';
|
|
41
|
+
readonly path: string;
|
|
42
|
+
}
|
|
43
|
+
interface RuntimeExactCallPermissionMatcher extends RuntimePermissionMatcherBase {
|
|
44
|
+
readonly kind: 'exact-call';
|
|
45
|
+
readonly cwd: string;
|
|
46
|
+
readonly inputFingerprint: string;
|
|
47
|
+
}
|
|
48
|
+
type RuntimePermissionMatcher = RuntimeExactCommandPermissionMatcher | RuntimeExactPathPermissionMatcher | RuntimeExactCallPermissionMatcher;
|
|
49
|
+
|
|
22
50
|
interface RuntimeUserMarkdownAgentRef {
|
|
23
51
|
readonly source: 'markdown:user';
|
|
24
52
|
readonly name: string;
|
|
@@ -148,7 +176,7 @@ interface RuntimeLearningService {
|
|
|
148
176
|
|
|
149
177
|
declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
|
|
150
178
|
declare const KODAX_DAEMON_PROTOCOL_VERSION = 1;
|
|
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';
|
|
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';
|
|
152
180
|
type RuntimeDaemonRetiredMethod = 'agentTasks.list' | 'agentTasks.start' | 'agentTasks.get' | 'agentTasks.events' | 'agentTasks.wait' | 'agentTasks.sendInput' | 'agentTasks.cancel' | 'agentTasks.reconcile';
|
|
153
181
|
type RuntimeDaemonWireMethod = RuntimeDaemonMethod | RuntimeDaemonRetiredMethod;
|
|
154
182
|
type RuntimeDaemonNotificationMethod = 'event' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
|
|
@@ -208,6 +236,13 @@ declare class RuntimeTransportBoundaryError extends Error {
|
|
|
208
236
|
readonly code: "invalid_transport_value";
|
|
209
237
|
constructor(path: string, message: string);
|
|
210
238
|
}
|
|
239
|
+
declare class RuntimePermissionScopeUpgradeRequiredError extends Error {
|
|
240
|
+
readonly code: "daemon_upgrade_required";
|
|
241
|
+
readonly capability: "runtimeAutoModeGuardrail";
|
|
242
|
+
readonly requiredVersion: 3;
|
|
243
|
+
readonly restartRequired: true;
|
|
244
|
+
constructor();
|
|
245
|
+
}
|
|
211
246
|
|
|
212
247
|
interface RuntimeWorkerResourceLimits {
|
|
213
248
|
readonly maxOldGenerationSizeMb?: number;
|
|
@@ -321,6 +356,18 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
321
356
|
params: RuntimeDaemonJsonSchema;
|
|
322
357
|
result: RuntimeDaemonJsonSchema;
|
|
323
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
|
+
};
|
|
324
371
|
'session.observe': {
|
|
325
372
|
params: RuntimeDaemonJsonSchema;
|
|
326
373
|
result: RuntimeDaemonJsonSchema;
|
|
@@ -369,6 +416,10 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
|
|
|
369
416
|
params: RuntimeDaemonJsonSchema;
|
|
370
417
|
result: RuntimeDaemonJsonSchema;
|
|
371
418
|
};
|
|
419
|
+
'session.autoMode.getStats': {
|
|
420
|
+
params: RuntimeDaemonJsonSchema;
|
|
421
|
+
result: RuntimeDaemonJsonSchema;
|
|
422
|
+
};
|
|
372
423
|
'session.settings.update': {
|
|
373
424
|
params: RuntimeDaemonJsonSchema;
|
|
374
425
|
result: RuntimeDaemonJsonSchema;
|
|
@@ -806,6 +857,12 @@ declare class RuntimeDaemonCapabilityUpgradeError extends Error {
|
|
|
806
857
|
readonly restartRequired: true;
|
|
807
858
|
constructor(message: string, preflight?: RuntimeDaemonPreflight | undefined, options?: ErrorOptions);
|
|
808
859
|
}
|
|
860
|
+
/** A recoverable Auto LLM configuration error that must never become approval work. */
|
|
861
|
+
declare class RuntimeAutoModeConfigurationError extends Error {
|
|
862
|
+
readonly code: "auto_mode_classifier_model_required";
|
|
863
|
+
readonly recoverable: true;
|
|
864
|
+
constructor(message: string);
|
|
865
|
+
}
|
|
809
866
|
|
|
810
867
|
type KodaXRuntimeMode = 'embedded' | 'daemon';
|
|
811
868
|
type KodaXRuntimeIsolation = 'inline' | 'worker' | 'process';
|
|
@@ -979,6 +1036,12 @@ interface RuntimeCapabilityRequirements {
|
|
|
979
1036
|
readonly coderFeatureMatrix?: 1;
|
|
980
1037
|
readonly sessionAdmission?: 1;
|
|
981
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;
|
|
982
1045
|
readonly connectionLifecycle?: 1;
|
|
983
1046
|
readonly typedRuntimeEvents?: 1;
|
|
984
1047
|
readonly daemonSafeRunInput?: 1;
|
|
@@ -987,7 +1050,7 @@ interface RuntimeCapabilityRequirements {
|
|
|
987
1050
|
readonly daemonManagement?: 1;
|
|
988
1051
|
readonly actorControlPlane?: 1;
|
|
989
1052
|
/** Runtime owns Auto LLM/rules classification before shared permission brokering. */
|
|
990
|
-
readonly runtimeAutoModeGuardrail?: 1;
|
|
1053
|
+
readonly runtimeAutoModeGuardrail?: 1 | 2 | 3;
|
|
991
1054
|
}
|
|
992
1055
|
type RuntimeOperationState = 'accepted' | 'dispatched' | 'applied' | 'rejected' | 'interrupted' | 'unknown';
|
|
993
1056
|
interface RuntimeOperationReceipt {
|
|
@@ -1260,6 +1323,54 @@ interface RuntimeSessionSummary extends RuntimeSession {
|
|
|
1260
1323
|
readonly archived?: boolean;
|
|
1261
1324
|
}
|
|
1262
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
|
+
}
|
|
1263
1374
|
interface RuntimeSessionFilter {
|
|
1264
1375
|
readonly projectRoot?: string;
|
|
1265
1376
|
readonly scope?: 'user' | 'managed-task-worker' | 'all';
|
|
@@ -1288,6 +1399,11 @@ interface RuntimeSessionSettings {
|
|
|
1288
1399
|
readonly autoModeEngine?: 'llm' | 'rules';
|
|
1289
1400
|
readonly autoModeClassifierModel?: string;
|
|
1290
1401
|
readonly autoModeTimeoutMs?: number;
|
|
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;
|
|
1291
1407
|
}
|
|
1292
1408
|
interface RuntimeSessionSettingsPatch {
|
|
1293
1409
|
readonly provider?: string | null;
|
|
@@ -1301,6 +1417,9 @@ interface RuntimeSessionSettingsPatch {
|
|
|
1301
1417
|
readonly autoModeEngine?: 'llm' | 'rules' | null;
|
|
1302
1418
|
readonly autoModeClassifierModel?: string | null;
|
|
1303
1419
|
readonly autoModeTimeoutMs?: number | null;
|
|
1420
|
+
readonly autoModeSpeculativeWindowMs?: number | null;
|
|
1421
|
+
readonly compactionTriggerPercent?: number | null;
|
|
1422
|
+
readonly compactionTriggerTokens?: number | null;
|
|
1304
1423
|
}
|
|
1305
1424
|
interface RuntimeAppendNoticeInput {
|
|
1306
1425
|
readonly sessionId: string;
|
|
@@ -1321,6 +1440,10 @@ interface RuntimeCompactSessionInput {
|
|
|
1321
1440
|
readonly model?: string;
|
|
1322
1441
|
readonly customInstructions?: string;
|
|
1323
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;
|
|
1324
1447
|
}
|
|
1325
1448
|
interface RuntimeCompactSessionResult extends CompactSessionResult {
|
|
1326
1449
|
readonly session?: RuntimeSession;
|
|
@@ -1364,7 +1487,7 @@ interface RuntimeSessionObservationSnapshot {
|
|
|
1364
1487
|
/** Content-derived token for the transcript captured at this observation boundary. */
|
|
1365
1488
|
readonly transcriptRevision: string;
|
|
1366
1489
|
readonly session: RuntimeSession;
|
|
1367
|
-
readonly transcript:
|
|
1490
|
+
readonly transcript: RuntimeTranscriptSlice | null;
|
|
1368
1491
|
readonly settings: RuntimeVersionedValue<RuntimeSessionSettings>;
|
|
1369
1492
|
readonly runs: readonly RuntimeRunStatus[];
|
|
1370
1493
|
readonly pendingPermissions: readonly RuntimePermissionRequest[];
|
|
@@ -1378,10 +1501,15 @@ interface RuntimeSessionService {
|
|
|
1378
1501
|
load(sessionId: string): Promise<RuntimeSession>;
|
|
1379
1502
|
list(filter?: RuntimeSessionFilter): Promise<readonly RuntimeSessionSummary[]>;
|
|
1380
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>;
|
|
1381
1507
|
observe(sessionId: string, listener: RuntimeEventListener): Promise<RuntimeSessionObservation>;
|
|
1382
1508
|
fork(input: RuntimeForkSessionInput): Promise<RuntimeSession | null>;
|
|
1383
1509
|
getSettings(sessionId: string): Promise<RuntimeSessionSettings>;
|
|
1384
1510
|
getSettingsVersioned(sessionId: string): Promise<RuntimeVersionedValue<RuntimeSessionSettings>>;
|
|
1511
|
+
/** Runtime-owned Auto classifier state used by diagnostics and status UI. */
|
|
1512
|
+
getAutoModeStats(sessionId: string): Promise<AutoModeStats | undefined>;
|
|
1385
1513
|
updateSettings(sessionId: string, patch: RuntimeSessionSettingsPatch): Promise<RuntimeSessionSettings>;
|
|
1386
1514
|
updateSettingsVersioned(sessionId: string, patch: RuntimeSessionSettingsPatch, options: RuntimeVersionedUpdateOptions): Promise<RuntimeVersionedValue<RuntimeSessionSettings>>;
|
|
1387
1515
|
appendNotice(input: RuntimeAppendNoticeInput): Promise<SessionTranscriptEntry | null>;
|
|
@@ -1471,12 +1599,21 @@ type RuntimeSubmitInputResult = {
|
|
|
1471
1599
|
readonly sessionId: string;
|
|
1472
1600
|
readonly afterRunId: string;
|
|
1473
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;
|
|
1474
1611
|
} | {
|
|
1475
1612
|
readonly accepted: false;
|
|
1476
1613
|
readonly delivery: 'after_turn' | 'interrupt';
|
|
1477
1614
|
readonly sessionId: string;
|
|
1478
1615
|
readonly afterRunId: string;
|
|
1479
|
-
readonly reason: 'stale_run' | 'unsupported_capability';
|
|
1616
|
+
readonly reason: 'stale_run' | 'unsupported_capability' | 'interrupt_window_closed';
|
|
1480
1617
|
};
|
|
1481
1618
|
interface RuntimeOperationOptions {
|
|
1482
1619
|
readonly operationId?: string;
|
|
@@ -1528,6 +1665,7 @@ interface RuntimeRunStatus {
|
|
|
1528
1665
|
readonly error?: string;
|
|
1529
1666
|
readonly terminal?: RuntimeTerminalFact;
|
|
1530
1667
|
readonly continuation?: RuntimeContinuationStatus;
|
|
1668
|
+
readonly interruptInputs?: readonly RuntimeInterruptInputStatus[];
|
|
1531
1669
|
readonly requirements?: RuntimeRunRequirements;
|
|
1532
1670
|
}
|
|
1533
1671
|
interface RuntimeRunRequirements {
|
|
@@ -1548,6 +1686,16 @@ interface RuntimeContinuationStatus {
|
|
|
1548
1686
|
readonly state: 'queued' | 'delivered' | 'terminal';
|
|
1549
1687
|
readonly contentPreview: string;
|
|
1550
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
|
+
}
|
|
1551
1699
|
type RuntimeTerminalCode = 'completed' | 'run_failed' | 'cancelled' | 'interrupted' | 'runtime_restarted' | 'daemon_crashed' | 'credential_unavailable' | 'host_not_dispatched' | 'host_outcome_unknown' | 'control_history_untrusted';
|
|
1552
1700
|
interface RuntimeTerminalFact {
|
|
1553
1701
|
readonly revision: number;
|
|
@@ -1584,7 +1732,7 @@ interface RuntimeRunService {
|
|
|
1584
1732
|
setProvider(runId: string, provider: string): Promise<void>;
|
|
1585
1733
|
setReasoning(runId: string, reasoning: KodaXReasoningMode | undefined): Promise<void>;
|
|
1586
1734
|
}
|
|
1587
|
-
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' | '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';
|
|
1588
1736
|
interface RuntimeTextDeltaEventPayload {
|
|
1589
1737
|
readonly text: string;
|
|
1590
1738
|
readonly meta?: KodaXActivityEventMeta;
|
|
@@ -1643,18 +1791,56 @@ interface RuntimeTodoUpdatedEventPayload {
|
|
|
1643
1791
|
readonly items: readonly unknown[];
|
|
1644
1792
|
readonly meta?: KodaXActivityEventMeta;
|
|
1645
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
|
+
}
|
|
1646
1808
|
interface RuntimeInteractionResolvedEventPayload {
|
|
1647
1809
|
readonly requestId: string;
|
|
1648
1810
|
readonly status?: string;
|
|
1649
1811
|
readonly decision?: RuntimePermissionDecision;
|
|
1650
1812
|
readonly kind?: RuntimeUserInputKind;
|
|
1651
1813
|
}
|
|
1814
|
+
interface RuntimePermissionGrantChangedEventPayload {
|
|
1815
|
+
readonly action: 'created' | 'revoked' | 'expired';
|
|
1816
|
+
readonly grant: RuntimePermissionGrant;
|
|
1817
|
+
readonly revision: number;
|
|
1818
|
+
}
|
|
1652
1819
|
interface RuntimeWarningEventPayload {
|
|
1653
1820
|
readonly message: string;
|
|
1654
1821
|
readonly source?: string;
|
|
1655
1822
|
readonly severity?: string;
|
|
1656
1823
|
readonly sourceEventId?: string;
|
|
1657
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
|
+
}
|
|
1658
1844
|
interface RuntimeSessionSettingsUpdatedEventPayload {
|
|
1659
1845
|
readonly sessionId: string;
|
|
1660
1846
|
readonly revision: number;
|
|
@@ -1669,7 +1855,7 @@ type RuntimeUserInputRequestedEventPayload = RuntimeUserInputRequest | {
|
|
|
1669
1855
|
type RuntimeEventPayloadDefaults = {
|
|
1670
1856
|
readonly [K in RuntimeEventType]: unknown;
|
|
1671
1857
|
};
|
|
1672
|
-
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' | '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'> & {
|
|
1673
1859
|
readonly 'session.created': RuntimeSession;
|
|
1674
1860
|
readonly 'session.loaded': RuntimeSessionLoadedEventPayload;
|
|
1675
1861
|
readonly 'run.queued': RuntimeRunStatus;
|
|
@@ -1686,11 +1872,14 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created
|
|
|
1686
1872
|
readonly 'tool.progress': RuntimeToolProgressEventPayload;
|
|
1687
1873
|
readonly 'tool.finished': RuntimeToolFinishedEventPayload;
|
|
1688
1874
|
readonly 'run.progress': RuntimeRunProgressEventPayload;
|
|
1875
|
+
readonly 'run.input.queued': RuntimeRunInputQueuedEventPayload;
|
|
1876
|
+
readonly 'run.input.delivered': RuntimeRunInputDeliveredEventPayload;
|
|
1689
1877
|
readonly 'todo.updated': RuntimeTodoUpdatedEventPayload;
|
|
1690
1878
|
readonly 'user_input.requested': RuntimeUserInputRequestedEventPayload;
|
|
1691
1879
|
readonly 'user_input.resolved': RuntimeInteractionResolvedEventPayload;
|
|
1692
1880
|
readonly 'permission.requested': RuntimePermissionRequest;
|
|
1693
1881
|
readonly 'permission.resolved': RuntimeInteractionResolvedEventPayload;
|
|
1882
|
+
readonly 'permission.grant.changed': RuntimePermissionGrantChangedEventPayload;
|
|
1694
1883
|
readonly 'session.settings.updated': RuntimeSessionSettingsUpdatedEventPayload;
|
|
1695
1884
|
readonly 'turn.started': KodaXTurnStartedEvent;
|
|
1696
1885
|
readonly 'turn.completed': KodaXTurnCompletedEvent;
|
|
@@ -1700,6 +1889,8 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created
|
|
|
1700
1889
|
readonly 'workflow.finished': WorkflowProcessEvent;
|
|
1701
1890
|
readonly 'context.budget.snapshot': RuntimeContextBudgetSnapshot;
|
|
1702
1891
|
readonly 'tool.exposure.planned': RuntimeToolExposurePlan;
|
|
1892
|
+
readonly 'context.compaction.messages': RuntimeContextCompactionMessagesEventPayload;
|
|
1893
|
+
readonly 'context.compaction.finished': RuntimeContextCompactionFinishedEventPayload;
|
|
1703
1894
|
readonly 'runtime.warning': RuntimeWarningEventPayload;
|
|
1704
1895
|
};
|
|
1705
1896
|
interface RuntimeEventEnvelope<TPayload = unknown> {
|
|
@@ -1750,6 +1941,14 @@ type RuntimePermissionRisk = 'low' | 'medium' | 'high';
|
|
|
1750
1941
|
interface RuntimePermissionScope {
|
|
1751
1942
|
readonly toolName?: string;
|
|
1752
1943
|
readonly sessionId?: string;
|
|
1944
|
+
/** Runtime-generated concrete matcher. Absent only on legacy 0.7.x grants. */
|
|
1945
|
+
readonly matcher?: RuntimePermissionMatcher;
|
|
1946
|
+
}
|
|
1947
|
+
interface RuntimePermissionGrantSuggestion {
|
|
1948
|
+
/** Opaque pending-request-local identifier; clients must return it unchanged. */
|
|
1949
|
+
readonly id: string;
|
|
1950
|
+
readonly kind: 'session' | 'persistent';
|
|
1951
|
+
readonly label: string;
|
|
1753
1952
|
}
|
|
1754
1953
|
interface RuntimePermissionRequest {
|
|
1755
1954
|
readonly id: string;
|
|
@@ -1763,6 +1962,7 @@ interface RuntimePermissionRequest {
|
|
|
1763
1962
|
readonly inputPreview?: string;
|
|
1764
1963
|
/** Effective directory used to resolve relative tool paths for this run. */
|
|
1765
1964
|
readonly executionCwd?: string;
|
|
1965
|
+
readonly grantSuggestions?: readonly RuntimePermissionGrantSuggestion[];
|
|
1766
1966
|
readonly createdAt: string;
|
|
1767
1967
|
readonly expiresAt?: string;
|
|
1768
1968
|
}
|
|
@@ -1778,10 +1978,26 @@ interface RuntimePermissionRequestInput {
|
|
|
1778
1978
|
readonly executionCwd?: string;
|
|
1779
1979
|
readonly expiresAt?: string;
|
|
1780
1980
|
readonly timeoutMs?: number;
|
|
1981
|
+
/**
|
|
1982
|
+
* Concrete JSON tool input used by the Runtime to derive an opaque grant
|
|
1983
|
+
* candidate. It is neither emitted on Runtime events nor persisted.
|
|
1984
|
+
*/
|
|
1985
|
+
readonly toolInput?: Readonly<Record<string, unknown>>;
|
|
1781
1986
|
}
|
|
1782
1987
|
type RuntimePermissionDecision = {
|
|
1783
1988
|
readonly type: 'allow_once';
|
|
1784
1989
|
} | {
|
|
1990
|
+
readonly type: 'allow_session';
|
|
1991
|
+
readonly suggestionId: string;
|
|
1992
|
+
} | {
|
|
1993
|
+
readonly type: 'allow_always';
|
|
1994
|
+
readonly suggestionId: string;
|
|
1995
|
+
}
|
|
1996
|
+
/**
|
|
1997
|
+
* @deprecated v2 compatibility input. The Runtime maps this selection to
|
|
1998
|
+
* its narrower concrete candidate and never persists the supplied scope.
|
|
1999
|
+
*/
|
|
2000
|
+
| {
|
|
1785
2001
|
readonly type: 'allow_always';
|
|
1786
2002
|
readonly scope: RuntimePermissionScope;
|
|
1787
2003
|
} | {
|
|
@@ -1800,6 +2016,9 @@ interface RuntimePermissionGrant {
|
|
|
1800
2016
|
readonly id: string;
|
|
1801
2017
|
readonly scope: RuntimePermissionScope;
|
|
1802
2018
|
readonly createdAt: string;
|
|
2019
|
+
readonly persistence?: 'session' | 'persistent';
|
|
2020
|
+
readonly label?: string;
|
|
2021
|
+
readonly sourcePermissionId?: string;
|
|
1803
2022
|
}
|
|
1804
2023
|
interface RuntimePermissionService {
|
|
1805
2024
|
request(input: RuntimePermissionRequestInput): Promise<RuntimePermissionDecision>;
|
|
@@ -1980,5 +2199,5 @@ declare function createKodaXRuntime(options: CreateKodaXRuntimeOptions & {
|
|
|
1980
2199
|
declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promise<KodaXRuntime>;
|
|
1981
2200
|
declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
|
|
1982
2201
|
|
|
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 };
|
|
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 };
|
|
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}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,11 +1,11 @@
|
|
|
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
|
|
2
|
-
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-
|
|
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-
|
|
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
|
+
export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-CSmF0t0n.js';
|
|
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';
|
|
9
9
|
import './types-chunks/capability.d-K664nHOS.js';
|
|
10
|
-
import './types-chunks/base.d-
|
|
10
|
+
import './types-chunks/base.d-ChvpaKjZ.js';
|
|
11
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{$
|
|
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};
|