@kodax-ai/kodax 0.7.90 → 0.7.92
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 +106 -0
- package/README.md +43 -0
- package/README_CN.md +28 -0
- package/dist/chunks/{agent-W35WYLTH.js → agent-YHHFIH7N.js} +1 -1
- package/dist/chunks/argument-completer-6ZTRBNZM.js +2 -0
- package/dist/chunks/{chunk-DBFWNUGB.js → chunk-5CIKWSCA.js} +2 -2
- package/dist/chunks/{chunk-R3BXINQ2.js → chunk-7XSZVOG7.js} +135 -135
- package/dist/chunks/chunk-A6GNPNGB.js +383 -0
- package/dist/chunks/{chunk-NCK7ASJL.js → chunk-AGZNXFHZ.js} +206 -205
- package/dist/chunks/chunk-BV3SVH36.js +519 -0
- package/dist/chunks/chunk-FBL7IVMK.js +123 -0
- package/dist/chunks/{chunk-6FLHNFYV.js → chunk-GH3KBC2H.js} +1 -1
- package/dist/chunks/{chunk-4KJQ7QGO.js → chunk-GRWUC6H7.js} +1 -1
- package/dist/chunks/chunk-OSQIYUGD.js +408 -0
- package/dist/chunks/{chunk-KG3QIIDU.js → chunk-PKPBII4F.js} +2 -2
- package/dist/chunks/{chunk-5247AKGN.js → chunk-QFV6YCIH.js} +2 -2
- package/dist/chunks/chunk-QKLS4BYA.js +320 -0
- package/dist/chunks/{chunk-7KPBUO2F.js → chunk-QPBN3J4E.js} +2 -2
- package/dist/chunks/chunk-RJIYXB62.js +415 -0
- package/dist/chunks/{chunk-JNBAIFJR.js → chunk-THZVJ6R7.js} +1 -1
- package/dist/chunks/{chunk-O2ZV775M.js → chunk-X75UGXP3.js} +1 -1
- package/dist/chunks/{chunk-ZVICRZVA.js → chunk-YVG6OKN7.js} +1 -1
- package/dist/chunks/{client-RWXK22GN.js → client-OVYKC3ND.js} +1 -1
- package/dist/chunks/compaction-config-2TVSYSB4.js +2 -0
- package/dist/chunks/{construction-bootstrap-KB6GB6IY.js → construction-bootstrap-QVLJPFTL.js} +1 -1
- package/dist/chunks/{dist-WILA35IA.js → dist-WNMK42WE.js} +1 -1
- package/dist/chunks/dist-XC5M7UYX.js +2 -0
- package/dist/chunks/host-B3TK2U43.js +2 -0
- package/dist/chunks/run-manager-5AV3MR4W.js +2 -0
- package/dist/chunks/{utils-SDMYKIZG.js → utils-HPVZCR2J.js} +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.js +5 -5
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1550 -1552
- package/dist/runtime-worker.js +1421 -1423
- package/dist/sandbox-workspace-session.js +269 -268
- package/dist/sdk-a2a.d.ts +11 -11
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +15 -8
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +12 -12
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.js +1 -1
- package/dist/sdk-llm.d.ts +1 -1
- package/dist/sdk-llm.js +1 -1
- package/dist/sdk-mcp.js +1 -1
- package/dist/sdk-media.js +1 -1
- package/dist/sdk-repl.d.ts +8 -8
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +112 -11
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.d.ts +1 -1
- package/dist/sdk-sandbox.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 +77 -76
- package/dist/types-chunks/{bash-prefix-extractor.d-DBxWweqC.d.ts → bash-prefix-extractor.d-BMi_TJIY.d.ts} +53 -6
- package/dist/types-chunks/{capsule.d-Bc1-UYaj.d.ts → capsule.d-nYbM4MNL.d.ts} +1 -1
- package/dist/types-chunks/{controller.d-CnQqfSI5.d.ts → controller.d-Bm1i9RVj.d.ts} +13 -5
- package/dist/types-chunks/{guardrail.d-DqP4s46f.d.ts → guardrail.d-CKkoea7y.d.ts} +2 -2
- package/dist/types-chunks/{public-api.d-CrBB7m8F.d.ts → public-api.d-BsZWOq3P.d.ts} +4 -2
- package/dist/types-chunks/{repl.d-qijzfmA1.d.ts → repl.d-DxD0Olm0.d.ts} +10 -5
- package/dist/types-chunks/{resolver.d-bKttRr1V.d.ts → resolver.d-DparsV6Y.d.ts} +6 -4
- package/dist/types-chunks/{run-manager.d-PEct-5KE.d.ts → run-manager.d-BeSEc2OL.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-BIeiLU8G.d.ts → sdk-session-BTzblJTQ.d.ts} +1 -1
- package/dist/types-chunks/{shell-command-sets.d-RvEIrqHQ.d.ts → shell-command-sets.d-C2cc9Hwi.d.ts} +1 -1
- package/dist/types-chunks/{types.d-B9Fhknxd.d.ts → types.d-Dc3kwcjC.d.ts} +1 -1
- package/dist/types-chunks/{types.d-Do_AsIIs.d.ts → types.d-DrtP1ceI.d.ts} +1 -1
- package/dist/types-chunks/{utils.d-BvayexqQ.d.ts → utils.d-50Q24Few.d.ts} +4 -4
- package/package.json +5 -2
- package/dist/chunks/argument-completer-SRCHPEMA.js +0 -2
- package/dist/chunks/chunk-KINDGE7G.js +0 -382
- package/dist/chunks/chunk-T256QEDN.js +0 -412
- package/dist/chunks/chunk-TDSTNXNR.js +0 -519
- package/dist/chunks/chunk-UNEC2WXJ.js +0 -123
- package/dist/chunks/chunk-ZACJCRHT.js +0 -415
- package/dist/chunks/chunk-ZDOLJSTE.js +0 -320
- package/dist/chunks/compaction-config-MD2PQSAM.js +0 -2
- package/dist/chunks/dist-2NRXEHLI.js +0 -2
- package/dist/chunks/host-JAXBBRCV.js +0 -2
- package/dist/chunks/run-manager-EI264JTO.js +0 -2
package/dist/sdk-runtime.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { KodaXReasoningMode, KodaXCustomProviderConfig } from './index.js';
|
|
2
2
|
export { b as KodaXMessage } from './types-chunks/types.d-Cv09EdJR.js';
|
|
3
|
+
import { Q as KodaXEvents, al as KodaXResult, bu as RuntimeContextBudgetSnapshot, bB as RuntimeToolExposurePlan, ad as KodaXPromptCacheDiagnosticEvent } from './types-chunks/bash-prefix-extractor.d-BMi_TJIY.js';
|
|
4
|
+
import { KodaXOptions, KodaXShellExecutionContract, KodaXOutputSegmentProjection, KodaXToolSandboxObservationUpdate, KodaXToolEventMeta, KodaXManagedTaskStatusEvent, KodaXContextOptions, KodaXOutputSegmentStarted, KodaXActivityEventMeta, KodaXTurnStartedEvent, KodaXTurnCompletedEvent, KodaXTurnFailedEvent, KodaXLiveEventMeta, KodaXCompactionEndResult, RuntimeCompactionSkippedEvent, KodaXContextCompactionFinishedEvent, KodaXContextIdentity } from './index.js';
|
|
3
5
|
import { AgentExecutionKind, AgentTreeSnapshot, AgentDetail, AgentSpawnInput, AgentTurnRef, AgentDataClassification, AgentFollowupResult, AgentOutput, AgentEvent } from './sdk-agent.js';
|
|
4
6
|
import { KodaXImageInputArtifact, KodaXInputArtifactSource, KodaXVideoInputArtifact } from './index.js';
|
|
5
7
|
import { AgentDispatchContext, LearningQuery, LearningPage, LearnedCapabilityRecord, LearningSurfaceSnapshot, LearningEvent, LearningSubscribeOptions, AgentExecutorFactory, AgentDispatchPolicy, AgentCredentialBroker, AgentArtifactPolicy, WorkflowProcessSnapshot, WorkflowProcessEvent, AgentRegistrationService, DispatchableAgentQuery, DispatchableAgentListing, AgentPreflightInput, AgentPreflightResult } from './sdk-agent.js';
|
|
@@ -8,18 +10,16 @@ import { McpServerConfig } from './index.js';
|
|
|
8
10
|
import { McpServerStatus, McpServerToolList } from './index.js';
|
|
9
11
|
import { KodaXSessionHistoryHit } from './sdk-agent.js';
|
|
10
12
|
import { ManagedWorkflowSnapshot } from './sdk-agent.js';
|
|
11
|
-
import { Q as KodaXEvents, ae as KodaXResult, bm as RuntimeContextBudgetSnapshot, bt as RuntimeToolExposurePlan, a6 as KodaXPromptCacheDiagnosticEvent } from './types-chunks/bash-prefix-extractor.d-DBxWweqC.js';
|
|
12
|
-
import { KodaXOptions, KodaXShellExecutionContract, KodaXToolSandboxObservationUpdate, KodaXToolEventMeta, KodaXManagedTaskStatusEvent, KodaXContextOptions, KodaXActivityEventMeta, KodaXTurnStartedEvent, KodaXTurnCompletedEvent, KodaXTurnFailedEvent, KodaXLiveEventMeta, KodaXCompactionEndResult, RuntimeCompactionSkippedEvent, KodaXContextCompactionFinishedEvent, KodaXContextIdentity } from './index.js';
|
|
13
13
|
import { LoadedExtensionDiagnostic, ExtensionRuntimeDiagnostics } from './index.js';
|
|
14
14
|
import { AutoModeDecisionDiagnostics, AutoModeStats } from './index.js';
|
|
15
15
|
import { saveConfig } from './index.js';
|
|
16
16
|
import { CommandInfo } from './sdk-repl.js';
|
|
17
|
-
import { e as SessionTranscriptEntry } from './types-chunks/public-api.d-
|
|
17
|
+
import { e as SessionTranscriptEntry } from './types-chunks/public-api.d-BsZWOq3P.js';
|
|
18
18
|
import { FullTranscriptSessionData, SessionConversationHistoryData, SessionConversationHistoryStatus, SessionConversationHistoryIssue, SessionConversationHistoryEntry, CompactSessionResult } from './sdk-repl.js';
|
|
19
|
-
import './types-chunks/capability.d-K664nHOS.js';
|
|
20
19
|
import 'vscode-languageserver-protocol';
|
|
21
20
|
import './types-chunks/cost-tracker.d-MTAt6N7b.js';
|
|
22
21
|
import './types-chunks/types-D8OiIEwA.js';
|
|
22
|
+
import './types-chunks/capability.d-K664nHOS.js';
|
|
23
23
|
import './types-chunks/base.d-JjF6aKsh.js';
|
|
24
24
|
import './types-chunks/side-query.d-DNes6rHA.js';
|
|
25
25
|
import 'readline';
|
|
@@ -265,6 +265,18 @@ interface RuntimeDaemonShutdownOutcome {
|
|
|
265
265
|
readonly completedAt: string;
|
|
266
266
|
readonly error?: string;
|
|
267
267
|
}
|
|
268
|
+
interface RuntimeDaemonLockOwner {
|
|
269
|
+
readonly runtimeId: string;
|
|
270
|
+
readonly pid: number;
|
|
271
|
+
readonly createdAt: string;
|
|
272
|
+
readonly kind?: 'daemon' | 'inline';
|
|
273
|
+
/** OS-issued identity used to distinguish a live owner from PID reuse. */
|
|
274
|
+
readonly processStartIdentity?: string;
|
|
275
|
+
/** Present when the daemon was assigned to a Windows Job before user code could start. */
|
|
276
|
+
readonly processContainment?: 'windows-job';
|
|
277
|
+
/** Process outside the Job whose exit proves that the Job became empty. */
|
|
278
|
+
readonly supervisorPid?: number;
|
|
279
|
+
}
|
|
268
280
|
|
|
269
281
|
interface RuntimeDaemonShutdownVerificationOwner {
|
|
270
282
|
readonly runtimeId: string;
|
|
@@ -297,6 +309,56 @@ type RuntimeDaemonShutdownVerification = {
|
|
|
297
309
|
*/
|
|
298
310
|
declare function waitForRuntimeDaemonShutdown(input: RuntimeDaemonShutdownVerificationInput): Promise<RuntimeDaemonShutdownVerification>;
|
|
299
311
|
|
|
312
|
+
type RuntimeExitSettlementBlockReason = 'active_work' | 'cleanup_failed' | 'cleanup_unverified' | 'containment_active' | 'containment_unavailable' | 'owner_changed' | 'owner_identity_mismatch' | 'owner_unverified' | 'stop_not_accepted';
|
|
313
|
+
type RuntimeExitSettlement = {
|
|
314
|
+
readonly status: 'clean' | 'recovered';
|
|
315
|
+
readonly repairs: readonly ('windows_process_tree' | 'windows_sandbox_acl')[];
|
|
316
|
+
} | {
|
|
317
|
+
readonly status: 'blocked';
|
|
318
|
+
readonly reason: RuntimeExitSettlementBlockReason;
|
|
319
|
+
readonly nextAction: 'keep-open' | 'relaunch-space' | 'restart-system' | 'manual-recovery';
|
|
320
|
+
readonly message: string;
|
|
321
|
+
};
|
|
322
|
+
interface RuntimeExitSettlementOwnerPolicy {
|
|
323
|
+
readonly mode: 'daemon' | 'inline';
|
|
324
|
+
readonly revision: number;
|
|
325
|
+
readonly updatedAt: string;
|
|
326
|
+
}
|
|
327
|
+
interface RuntimeExitSettlementRuntime {
|
|
328
|
+
readonly identity: {
|
|
329
|
+
readonly runtimeId: string;
|
|
330
|
+
readonly mode: string;
|
|
331
|
+
};
|
|
332
|
+
readonly daemon: {
|
|
333
|
+
inspect(): Promise<{
|
|
334
|
+
readonly runtimeId: string;
|
|
335
|
+
readonly revision: number;
|
|
336
|
+
readonly ownerPolicy: RuntimeExitSettlementOwnerPolicy;
|
|
337
|
+
readonly owner: RuntimeDaemonLockOwner;
|
|
338
|
+
readonly preflight: {
|
|
339
|
+
readonly blockers: readonly string[];
|
|
340
|
+
readonly canStop: boolean;
|
|
341
|
+
};
|
|
342
|
+
}>;
|
|
343
|
+
stopForInline(input: {
|
|
344
|
+
readonly expectedRuntimeId: string;
|
|
345
|
+
readonly expectedRevision: number;
|
|
346
|
+
readonly expectedOwnerPolicyRevision: number;
|
|
347
|
+
readonly operation?: {
|
|
348
|
+
readonly operationId: string;
|
|
349
|
+
};
|
|
350
|
+
}): Promise<{
|
|
351
|
+
readonly accepted: true;
|
|
352
|
+
}>;
|
|
353
|
+
};
|
|
354
|
+
close(): Promise<void>;
|
|
355
|
+
}
|
|
356
|
+
interface RuntimeExitSettlementInput {
|
|
357
|
+
readonly configHome: string;
|
|
358
|
+
readonly profile?: string;
|
|
359
|
+
readonly runtime?: RuntimeExitSettlementRuntime;
|
|
360
|
+
}
|
|
361
|
+
|
|
300
362
|
interface RuntimeWorkerResourceLimits {
|
|
301
363
|
readonly maxOldGenerationSizeMb?: number;
|
|
302
364
|
readonly maxYoungGenerationSizeMb?: number;
|
|
@@ -1078,7 +1140,10 @@ interface CreateKodaXRuntimeOptions {
|
|
|
1078
1140
|
readonly sessionsDir?: string;
|
|
1079
1141
|
readonly defaultProvider?: string;
|
|
1080
1142
|
readonly defaultModel?: string;
|
|
1143
|
+
/** Fail-closed permission deadline in milliseconds; 0 disables it. Defaults to five minutes. */
|
|
1081
1144
|
readonly permissionTimeoutMs?: number;
|
|
1145
|
+
/** AskUser deadline in milliseconds. A validated default wins on expiry. Defaults to five minutes. */
|
|
1146
|
+
readonly userInputTimeoutMs?: number;
|
|
1082
1147
|
/** Internal daemon-host switch; keeps ordinary embedded runs non-interactive by default. */
|
|
1083
1148
|
readonly sharedDaemonHost?: boolean;
|
|
1084
1149
|
/** @internal Owner-fence identity assigned before a shared daemon Runtime is constructed. */
|
|
@@ -1112,7 +1177,10 @@ interface ConnectKodaXRuntimeOptions {
|
|
|
1112
1177
|
readonly sessionsDir?: string;
|
|
1113
1178
|
readonly defaultProvider?: string;
|
|
1114
1179
|
readonly defaultModel?: string;
|
|
1180
|
+
/** Applied when this connection starts a new daemon owner; 0 disables it. Defaults to five minutes. */
|
|
1115
1181
|
readonly permissionTimeoutMs?: number;
|
|
1182
|
+
/** AskUser deadline for a newly started daemon. Defaults to five minutes. */
|
|
1183
|
+
readonly userInputTimeoutMs?: number;
|
|
1116
1184
|
readonly daemonStartupTimeoutMs?: number;
|
|
1117
1185
|
readonly daemonConnectTimeoutMs?: number;
|
|
1118
1186
|
/** Auto-started daemon idle-exit policy; see CreateKodaXRuntimeOptions. */
|
|
@@ -1125,12 +1193,15 @@ interface ConnectKodaXRuntimeOptions {
|
|
|
1125
1193
|
/** SDK facts that embedders can inspect before auto-starting a daemon. */
|
|
1126
1194
|
declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
1127
1195
|
readonly actorSettlementConvergence: 2;
|
|
1196
|
+
readonly crashOutcomeModel: 2;
|
|
1128
1197
|
readonly daemonOrphanExit: 1;
|
|
1129
1198
|
readonly daemonShutdownVerification: 1;
|
|
1130
1199
|
readonly managedRunDurability: 1;
|
|
1131
|
-
readonly
|
|
1200
|
+
readonly runtimeExitSettlement: 1;
|
|
1201
|
+
readonly sandboxRuntime: 4;
|
|
1132
1202
|
readonly sessionEventJournal: 1;
|
|
1133
1203
|
readonly runtimeEventCoalescing: 1;
|
|
1204
|
+
readonly liveOutputSegments: 1;
|
|
1134
1205
|
}>;
|
|
1135
1206
|
interface RuntimeCapabilityRequirements {
|
|
1136
1207
|
/** Reject inline and shared daemon hosts; only a Worker-hosted Runtime satisfies this. */
|
|
@@ -1153,7 +1224,7 @@ interface RuntimeCapabilityRequirements {
|
|
|
1153
1224
|
/** v1: run-bound host tool leases. v2 additionally materializes bound host tools into the agent tool table and cached capability catalog. */
|
|
1154
1225
|
readonly runBoundHostTools?: 1 | 2;
|
|
1155
1226
|
readonly coderOwnerFencing?: 1;
|
|
1156
|
-
readonly crashOutcomeModel?: 1;
|
|
1227
|
+
readonly crashOutcomeModel?: 1 | 2;
|
|
1157
1228
|
readonly coderFeatureMatrix?: 1;
|
|
1158
1229
|
readonly sessionAdmission?: 1;
|
|
1159
1230
|
readonly completeObservationSnapshot?: 1;
|
|
@@ -1183,11 +1254,13 @@ interface RuntimeCapabilityRequirements {
|
|
|
1183
1254
|
readonly daemonShutdownVerification?: 1;
|
|
1184
1255
|
/** Require source-level bounded coalescing before sequence allocation and persistence. */
|
|
1185
1256
|
readonly runtimeEventCoalescing?: 1;
|
|
1257
|
+
/** Require provider-request-owned live output with explicit replacement semantics. */
|
|
1258
|
+
readonly liveOutputSegments?: 1;
|
|
1186
1259
|
/** Optional integration failures are isolated, observable, and hot-recoverable. */
|
|
1187
1260
|
readonly integrationConfigResilience?: 1;
|
|
1188
1261
|
readonly actorControlPlane?: 1;
|
|
1189
1262
|
/** Require the sandbox-first execution chain and permission fallback revision. */
|
|
1190
|
-
readonly sandboxRuntime?: 1 | 2 | 3;
|
|
1263
|
+
readonly sandboxRuntime?: 1 | 2 | 3 | 4;
|
|
1191
1264
|
/** Runtime owns Auto LLM/rules classification before shared permission brokering. */
|
|
1192
1265
|
readonly runtimeAutoModeGuardrail?: 1 | 2 | 3 | 4;
|
|
1193
1266
|
}
|
|
@@ -1715,6 +1788,7 @@ interface RuntimeManagedTaskProjection {
|
|
|
1715
1788
|
interface RuntimeSessionLiveProjection {
|
|
1716
1789
|
readonly assistantTextByRun: Readonly<Record<string, string>>;
|
|
1717
1790
|
readonly thinkingTextByRun: Readonly<Record<string, string>>;
|
|
1791
|
+
readonly outputSegmentsByRun: Readonly<Record<string, KodaXOutputSegmentProjection>>;
|
|
1718
1792
|
readonly activeTools: readonly RuntimeActiveToolProjection[];
|
|
1719
1793
|
readonly todo?: unknown;
|
|
1720
1794
|
readonly pendingUserInputs: readonly RuntimePendingUserInputProjection[];
|
|
@@ -2030,9 +2104,14 @@ interface RuntimeRunService {
|
|
|
2030
2104
|
setProvider(runId: string, provider: string): Promise<void>;
|
|
2031
2105
|
setReasoning(runId: string, reasoning: KodaXReasoningMode | undefined): Promise<void>;
|
|
2032
2106
|
}
|
|
2033
|
-
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.sandbox" | "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" | "provider.cache.diagnostics" | "repo_intelligence.trace" | "todo.updated" | "todo.warning" | "sidecar.message" | "run.completed" | "run.failed" | "run.cancelled" | "run.interrupted" | "artifact.created" | "config.effective" | "runtime.warning";
|
|
2107
|
+
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" | "output.segment.started" | "assistant.delta" | "thinking.delta" | "thinking.finished" | "tool.started" | "tool.progress" | "tool.sandbox" | "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" | "provider.cache.diagnostics" | "repo_intelligence.trace" | "todo.updated" | "todo.warning" | "sidecar.message" | "run.completed" | "run.failed" | "run.cancelled" | "run.interrupted" | "artifact.created" | "config.effective" | "runtime.warning";
|
|
2034
2108
|
interface RuntimeTextDeltaEventPayload {
|
|
2035
2109
|
readonly text: string;
|
|
2110
|
+
/** Absent only in historical journals written before liveOutputSegments:1. */
|
|
2111
|
+
readonly providerRequestId?: string;
|
|
2112
|
+
readonly meta?: KodaXActivityEventMeta;
|
|
2113
|
+
}
|
|
2114
|
+
interface RuntimeOutputSegmentStartedEventPayload extends KodaXOutputSegmentStarted {
|
|
2036
2115
|
readonly meta?: KodaXActivityEventMeta;
|
|
2037
2116
|
}
|
|
2038
2117
|
interface RuntimeThinkingFinishedEventPayload {
|
|
@@ -2177,7 +2256,7 @@ type RuntimeUserInputRequestedEventPayload = RuntimeUserInputRequest | {
|
|
|
2177
2256
|
type RuntimeEventPayloadDefaults = {
|
|
2178
2257
|
readonly [K in RuntimeEventType]: unknown;
|
|
2179
2258
|
};
|
|
2180
|
-
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.sandbox" | "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" | "provider.cache.diagnostics" | "tool.exposure.planned" | "context.compaction.started" | "context.compaction.stats" | "context.compaction.ended" | "context.compaction.skipped" | "context.compaction.messages" | "context.compaction.finished" | "runtime.warning"> & {
|
|
2259
|
+
type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created" | "session.loaded" | "run.queued" | "run.started" | "run.updated" | "run.completed" | "run.failed" | "run.cancelled" | "run.interrupted" | "output.segment.started" | "assistant.delta" | "thinking.delta" | "thinking.finished" | "tool.started" | "tool.progress" | "tool.sandbox" | "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" | "provider.cache.diagnostics" | "tool.exposure.planned" | "context.compaction.started" | "context.compaction.stats" | "context.compaction.ended" | "context.compaction.skipped" | "context.compaction.messages" | "context.compaction.finished" | "runtime.warning"> & {
|
|
2181
2260
|
readonly "session.created": RuntimeSession;
|
|
2182
2261
|
readonly "session.loaded": RuntimeSessionLoadedEventPayload;
|
|
2183
2262
|
readonly "run.queued": RuntimeRunStatus;
|
|
@@ -2187,6 +2266,7 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created
|
|
|
2187
2266
|
readonly "run.failed": RuntimeRunStatus;
|
|
2188
2267
|
readonly "run.cancelled": RuntimeRunStatus;
|
|
2189
2268
|
readonly "run.interrupted": RuntimeRunStatus;
|
|
2269
|
+
readonly "output.segment.started": RuntimeOutputSegmentStartedEventPayload;
|
|
2190
2270
|
readonly "assistant.delta": RuntimeTextDeltaEventPayload;
|
|
2191
2271
|
readonly "thinking.delta": RuntimeTextDeltaEventPayload;
|
|
2192
2272
|
readonly "thinking.finished": RuntimeThinkingFinishedEventPayload;
|
|
@@ -2350,6 +2430,22 @@ type RuntimePermissionDecision = {
|
|
|
2350
2430
|
readonly reason?: string;
|
|
2351
2431
|
readonly cause?: "approval_timeout";
|
|
2352
2432
|
};
|
|
2433
|
+
interface RuntimePermissionPromptContext {
|
|
2434
|
+
/** Aborted when the Runtime resolves, expires, or rejects the request first. */
|
|
2435
|
+
readonly signal: AbortSignal;
|
|
2436
|
+
}
|
|
2437
|
+
type RuntimePermissionPrompt = (request: RuntimePermissionRequest, context: RuntimePermissionPromptContext) => Promise<RuntimePermissionDecision>;
|
|
2438
|
+
interface RuntimePermissionPromptResolution {
|
|
2439
|
+
readonly requestId: string;
|
|
2440
|
+
readonly status: "responded" | "already_resolved";
|
|
2441
|
+
readonly decision?: RuntimePermissionDecision;
|
|
2442
|
+
}
|
|
2443
|
+
/**
|
|
2444
|
+
* Run one host approval surface without making its Promise part of the Runtime
|
|
2445
|
+
* lifecycle. The Runtime remains authoritative: a timeout, abort, or competing
|
|
2446
|
+
* client resolution aborts the host prompt and wins over any late answer.
|
|
2447
|
+
*/
|
|
2448
|
+
declare function handleRuntimePermissionRequest(runtime: KodaXRuntime, request: RuntimePermissionRequest, prompt: RuntimePermissionPrompt): Promise<RuntimePermissionPromptResolution>;
|
|
2353
2449
|
interface RuntimePermissionFilter {
|
|
2354
2450
|
readonly sessionId?: string;
|
|
2355
2451
|
readonly runId?: string;
|
|
@@ -2569,6 +2665,11 @@ declare function createKodaXRuntime(options: CreateKodaXRuntimeOptions & {
|
|
|
2569
2665
|
}): Promise<KodaXDaemonRuntime>;
|
|
2570
2666
|
declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promise<KodaXRuntime>;
|
|
2571
2667
|
declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
|
|
2668
|
+
/**
|
|
2669
|
+
* Resume a durable exit ticket. Only this exact prepared-ticket path may attach
|
|
2670
|
+
* a management-only client that does not satisfy the normal execution contract.
|
|
2671
|
+
*/
|
|
2672
|
+
declare function settleKodaXRuntimeExit(input: RuntimeExitSettlementInput): Promise<RuntimeExitSettlement>;
|
|
2572
2673
|
|
|
2573
|
-
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KODAX_RUNTIME_SDK_CAPABILITIES, KodaXEvents, KodaXPromptCacheDiagnosticEvent, 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, captureRuntimeSessionDiagnostics, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode, waitForRuntimeDaemonShutdown };
|
|
2574
|
-
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, RuntimeContextCompactionEndedEventPayload, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContextCompactionSkippedEventPayload, RuntimeContextCompactionStartedEventPayload, RuntimeContextCompactionStatsEventPayload, RuntimeContinuationStatus, RuntimeConversationHistory, RuntimeConversationHistoryBoundary, RuntimeConversationHistoryEntryChunk, RuntimeConversationHistoryEntryChunkInput, RuntimeConversationHistoryPageInput, RuntimeConversationHistorySlice, RuntimeConversationHistorySliceEntry, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRequestControl, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, 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, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeObservationInvalidation, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeReadOptions, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStage, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionCursor, RuntimeSessionDiagnosticError, RuntimeSessionDiagnosticErrorCode, RuntimeSessionDiagnosticRun, RuntimeSessionDiagnostics, RuntimeSessionDiagnosticsInput, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionStatus, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolSandboxEventPayload, 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 };
|
|
2674
|
+
export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, KODAX_RUNTIME_SDK_CAPABILITIES, KodaXEvents, KodaXPromptCacheDiagnosticEvent, 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, captureRuntimeSessionDiagnostics, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, handleRuntimePermissionRequest, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode, settleKodaXRuntimeExit, waitForRuntimeDaemonShutdown };
|
|
2675
|
+
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, RuntimeContextCompactionEndedEventPayload, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContextCompactionSkippedEventPayload, RuntimeContextCompactionStartedEventPayload, RuntimeContextCompactionStatsEventPayload, RuntimeContinuationStatus, RuntimeConversationHistory, RuntimeConversationHistoryBoundary, RuntimeConversationHistoryEntryChunk, RuntimeConversationHistoryEntryChunkInput, RuntimeConversationHistoryPageInput, RuntimeConversationHistorySlice, RuntimeConversationHistorySliceEntry, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRequestControl, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonShutdownVerification, RuntimeDaemonShutdownVerificationInput, RuntimeDaemonShutdownVerificationOwner, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExitSettlement, RuntimeExitSettlementBlockReason, RuntimeExitSettlementInput, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeObservationInvalidation, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOutputSegmentStartedEventPayload, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionPrompt, RuntimePermissionPromptContext, RuntimePermissionPromptResolution, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeReadOptions, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunLifecycleError, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStage, RuntimeRunStatus, RuntimeRunStopReceipt, RuntimeRunStopStatus, RuntimeSession, RuntimeSessionCursor, RuntimeSessionDiagnosticError, RuntimeSessionDiagnosticErrorCode, RuntimeSessionDiagnosticRun, RuntimeSessionDiagnostics, RuntimeSessionDiagnosticsInput, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionStatus, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolSandboxEventPayload, 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,u,v,w}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,u,v,w,x,y}from"./chunks/chunk-A6GNPNGB.js";import"./chunks/chunk-BV3SVH36.js";import"./chunks/chunk-QKLS4BYA.js";import"./chunks/chunk-PKPBII4F.js";import"./chunks/chunk-5CIKWSCA.js";import"./chunks/chunk-GRWUC6H7.js";import"./chunks/chunk-OSQIYUGD.js";import"./chunks/chunk-THZVJ6R7.js";import"./chunks/chunk-RJIYXB62.js";import"./chunks/chunk-X75UGXP3.js";import"./chunks/chunk-QPBN3J4E.js";import"./chunks/chunk-AGZNXFHZ.js";import"./chunks/chunk-GH3KBC2H.js";import"./chunks/chunk-YVG6OKN7.js";import"./chunks/chunk-FBL7IVMK.js";import"./chunks/chunk-7XSZVOG7.js";import"./chunks/chunk-QFV6YCIH.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,t as KODAX_RUNTIME_SDK_CAPABILITIES,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,n as RuntimeAutoModeConfigurationError,m as RuntimeDaemonCapabilityUpgradeError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,o as acquireKodaXInlineOwner,v as captureRuntimeSessionDiagnostics,x as connectKodaXRuntime,w as createKodaXRuntime,r as enableKodaXDaemonOwner,p as getKodaXRuntimeOwnerPolicy,q as getKodaXRuntimeOwnerState,u as handleRuntimePermissionRequest,k as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,s as setKodaXRuntimeOwnerMode,y as settleKodaXRuntimeExit,l as waitForRuntimeDaemonShutdown};
|
package/dist/sdk-sandbox.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ interface SandboxSetupOutcome {
|
|
|
59
59
|
readonly error?: string;
|
|
60
60
|
}
|
|
61
61
|
interface KodaXSandboxCapability {
|
|
62
|
-
readonly version:
|
|
62
|
+
readonly version: 4;
|
|
63
63
|
readonly asrtVersion: string;
|
|
64
64
|
readonly platform: NodeJS.Platform;
|
|
65
65
|
readonly backend: 'windows-restricted-user' | 'macos-seatbelt' | 'linux-bubblewrap' | 'unsupported';
|
package/dist/sdk-sandbox.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-5BNQXXGY.js";import{a,b,c,d,e,f,g}from"./chunks/chunk-
|
|
2
|
+
import"./chunks/chunk-5BNQXXGY.js";import{a,b,f as c,g as d,h as e,i as f,j as g}from"./chunks/chunk-BV3SVH36.js";import"./chunks/chunk-OSQIYUGD.js";import"./chunks/chunk-THZVJ6R7.js";import"./chunks/chunk-RJIYXB62.js";import"./chunks/chunk-X75UGXP3.js";import"./chunks/chunk-QPBN3J4E.js";import"./chunks/chunk-AGZNXFHZ.js";import"./chunks/chunk-GH3KBC2H.js";import"./chunks/chunk-YVG6OKN7.js";import"./chunks/chunk-FBL7IVMK.js";import"./chunks/chunk-7XSZVOG7.js";import"./chunks/chunk-QFV6YCIH.js";import"./chunks/chunk-ONUPGMER.js";export{a as KODAX_ASRT_VERSION,f as activateKodaXSandbox,c as doctorKodaXSandbox,b as getKodaXSandboxCapability,e as getKodaXSandboxSetupGuidance,g as runKodaXSandboxed,d as setupKodaXSandbox};
|
package/dist/sdk-session.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { x as AppendClientNoticeOptions, y as CompactSessionOptions, C as CompactSessionResult, j as CreatableHistoryItem, N as DeleteSessionResult, O as ForkSessionOptions, d as FullTranscriptSessionData, a5 as ListSessionsOptions, P as PreparedSessionAppendBaseline, a as PreparedSessionTailDelta, aa as RewindSessionOptions, ab as RunningSessionInfo, ac as SessionBundleExportDiagnostic, ad as SessionBundleExportFile, ae as SessionBundleExportOptions, af as SessionBundleExportResult, ag as SessionBundleExportStatus, f as SessionConversationHistoryData, i as SessionConversationHistoryEntry, h as SessionConversationHistoryIssue, ah as SessionConversationHistoryIssueCode, g as SessionConversationHistoryStatus, ai as SessionConversationMutationBoundary, ak as SessionManager, am as SessionReadError, an as SessionReadErrorCode, ao as SessionReadOptions, ap as SessionSummary, e as SessionTranscriptEntry, aq as SessionTranscriptEntryType, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aH as createSessionManager, aI as deleteSession, aK as exportSessionBundle, aM as forkSession, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aU as readConversationHistory, aV as readFullTranscript, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-
|
|
1
|
+
export { x as AppendClientNoticeOptions, y as CompactSessionOptions, C as CompactSessionResult, j as CreatableHistoryItem, N as DeleteSessionResult, O as ForkSessionOptions, d as FullTranscriptSessionData, a5 as ListSessionsOptions, P as PreparedSessionAppendBaseline, a as PreparedSessionTailDelta, aa as RewindSessionOptions, ab as RunningSessionInfo, ac as SessionBundleExportDiagnostic, ad as SessionBundleExportFile, ae as SessionBundleExportOptions, af as SessionBundleExportResult, ag as SessionBundleExportStatus, f as SessionConversationHistoryData, i as SessionConversationHistoryEntry, h as SessionConversationHistoryIssue, ah as SessionConversationHistoryIssueCode, g as SessionConversationHistoryStatus, ai as SessionConversationMutationBoundary, ak as SessionManager, am as SessionReadError, an as SessionReadErrorCode, ao as SessionReadOptions, ap as SessionSummary, e as SessionTranscriptEntry, aq as SessionTranscriptEntryType, ay as WatchSessionsCallback, az as appendClientNotice, aA as archiveSession, aB as compactSession, aH as createSessionManager, aI as deleteSession, aK as exportSessionBundle, aM as forkSession, aO as listRunningSessions, aP as listSessions, aQ as loadFullTranscript, aR as loadSession, aU as readConversationHistory, aV as readFullTranscript, aX as rewindSession, aY as setActiveEntry, aZ as unarchiveSession, a_ as watchSessions } from './types-chunks/public-api.d-BsZWOq3P.js';
|
|
2
2
|
export { a as KodaXTaskResultMetadata, G as KodaXTaskResultSource } from './types-chunks/types.d-Cv09EdJR.js';
|
|
3
3
|
export { S as KodaXSessionUiHistoryItem, T as KodaXSessionUiHistoryItemType, U as KodaXSessionUiTextHistoryItem, V as KodaXSessionUiTextHistoryItemType, W as KodaXSessionUiToolCall, X as KodaXSessionUiToolCallStatus, Y as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-EjZTEEVu.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-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
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-BTzblJTQ.js';
|
|
5
|
+
import './types-chunks/bash-prefix-extractor.d-BMi_TJIY.js';
|
|
6
6
|
import 'vscode-languageserver-protocol';
|
|
7
|
-
import './types-chunks/controller.d-
|
|
7
|
+
import './types-chunks/controller.d-Bm1i9RVj.js';
|
|
8
8
|
import './types-chunks/types.d-BEMcUOng.js';
|
|
9
9
|
import './types-chunks/cost-tracker.d-MTAt6N7b.js';
|
|
10
10
|
import './types-chunks/types-D8OiIEwA.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 l,
|
|
2
|
+
import{$b as l,Tb as n,Ub as t,Vb as r,Wb as a,Xb as S,Yb as d,ac as p,bb as o,bc as u,cc as y,dc as c,ec as m,fc as H,gc as C,hc as T,ic as x,jc as R,mb as i}from"./chunks/chunk-QKLS4BYA.js";import{O as s,P as e}from"./chunks/chunk-PKPBII4F.js";import"./chunks/chunk-5CIKWSCA.js";import"./chunks/chunk-GRWUC6H7.js";import"./chunks/chunk-OSQIYUGD.js";import"./chunks/chunk-THZVJ6R7.js";import"./chunks/chunk-RJIYXB62.js";import"./chunks/chunk-X75UGXP3.js";import"./chunks/chunk-QPBN3J4E.js";import"./chunks/chunk-AGZNXFHZ.js";import"./chunks/chunk-GH3KBC2H.js";import"./chunks/chunk-YVG6OKN7.js";import"./chunks/chunk-FBL7IVMK.js";import"./chunks/chunk-7XSZVOG7.js";import"./chunks/chunk-QFV6YCIH.js";import"./chunks/chunk-ONUPGMER.js";export{i as SessionReadError,p as appendClientNotice,C as archiveSession,n as compactSession,R as createSessionManager,H as deleteSession,l as exportSessionBundle,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,u as forkSession,m as listRunningSessions,t as listSessions,a as loadFullTranscript,r as loadSession,d as readConversationHistory,S as readFullTranscript,o as restoreHistoryItemsFromSession,y as rewindSession,c as setActiveEntry,T as unarchiveSession,x 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{Ad as
|
|
2
|
+
import{Ad as g,Bd as u,Cd as c,Dd as d,Ed as x,Fd as P,Gd as R,Hd as h,Id as p,Jd as v,Kd as y,Ld as M,Md as f,Nd as m,Od as E,gc as l,hc as e,ic as i,jc as t,kc as o,lc as a,pc as k,qc as r,rc as S,sc as s,zd as n}from"./chunks/chunk-7XSZVOG7.js";import"./chunks/chunk-QFV6YCIH.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};
|