@kodax-ai/kodax 0.7.89 → 0.7.91
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 +103 -0
- package/README.md +33 -0
- package/README_CN.md +15 -0
- package/dist/chunks/{agent-AKCXT573.js → agent-YLYM2UIQ.js} +1 -1
- package/dist/chunks/argument-completer-4WND7KNM.js +2 -0
- package/dist/chunks/{chunk-SOIIBADK.js → chunk-3SVR6PC4.js} +2 -2
- package/dist/chunks/{chunk-72H6JNPN.js → chunk-4R4QTBO6.js} +131 -131
- package/dist/chunks/chunk-4S5ZAR6N.js +383 -0
- package/dist/chunks/{chunk-W5RPVR3O.js → chunk-7RF2XYFK.js} +1 -1
- package/dist/chunks/{chunk-BOMSVUJS.js → chunk-7YQT4RAW.js} +2 -2
- package/dist/chunks/chunk-FBL7IVMK.js +123 -0
- package/dist/chunks/{chunk-4Y6OSDZE.js → chunk-G5XXC7ON.js} +1 -1
- package/dist/chunks/{chunk-IFD6TUQU.js → chunk-HXORFXTH.js} +1 -1
- package/dist/chunks/{chunk-CQHLFQSU.js → chunk-MGM5SUKU.js} +2 -2
- package/dist/chunks/chunk-P7AW3CQW.js +415 -0
- package/dist/chunks/{chunk-5247AKGN.js → chunk-QFV6YCIH.js} +2 -2
- package/dist/chunks/{chunk-5UBP47VJ.js → chunk-UNTT2ZKN.js} +88 -88
- package/dist/chunks/{chunk-O2ZV775M.js → chunk-X75UGXP3.js} +1 -1
- package/dist/chunks/chunk-XC2GKTSX.js +519 -0
- package/dist/chunks/chunk-XQWPHL6U.js +408 -0
- package/dist/chunks/chunk-YQSQEF6J.js +320 -0
- package/dist/chunks/{chunk-PROPMIT4.js → chunk-ZNH2MKN5.js} +1 -1
- package/dist/chunks/{client-ZXBSEDS4.js → client-SKLNEU3G.js} +1 -1
- package/dist/chunks/compaction-config-UEGW2ZBT.js +2 -0
- package/dist/chunks/{construction-bootstrap-WF6KQ7XV.js → construction-bootstrap-OUKXVNUQ.js} +1 -1
- package/dist/chunks/dist-7EWVACPM.js +2 -0
- package/dist/chunks/{dist-WILA35IA.js → dist-WNMK42WE.js} +1 -1
- package/dist/chunks/host-GDDQKQKH.js +2 -0
- package/dist/chunks/run-manager-J4WO55J2.js +2 -0
- package/dist/chunks/{utils-BEWYGEMB.js → utils-NZXGH43M.js} +1 -1
- package/dist/index.d.ts +17 -17
- package/dist/index.js +5 -5
- package/dist/kodax_bootstrap.js +1 -1
- package/dist/kodax_cli.js +1539 -1542
- package/dist/runtime-worker.js +1407 -1410
- package/dist/sandbox-workspace-session.js +213 -213
- package/dist/sdk-a2a.d.ts +12 -12
- package/dist/sdk-a2a.js +1 -1
- package/dist/sdk-agent.d.ts +15 -13
- package/dist/sdk-agent.js +1 -1
- package/dist/sdk-coding.d.ts +14 -14
- package/dist/sdk-coding.js +1 -1
- package/dist/sdk-experimental-memory.d.ts +3 -3
- 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 +9 -9
- package/dist/sdk-repl.js +2 -2
- package/dist/sdk-runtime.d.ts +108 -8
- package/dist/sdk-runtime.js +1 -1
- package/dist/sdk-sandbox.js +1 -1
- package/dist/sdk-session.d.ts +5 -5
- package/dist/sdk-session.js +1 -1
- package/dist/sdk-skills.js +1 -1
- package/dist/semantic-worker.js +59 -59
- package/dist/types-chunks/{bash-prefix-extractor.d-BLlhCRI-.d.ts → bash-prefix-extractor.d-BMi_TJIY.d.ts} +54 -7
- package/dist/types-chunks/{capsule.d-Cw4UlPTC.d.ts → capsule.d-nYbM4MNL.d.ts} +2 -2
- package/dist/types-chunks/{controller.d-1tydJm7c.d.ts → controller.d-Bm1i9RVj.d.ts} +14 -6
- package/dist/types-chunks/{controller.d-BvwWz6yP.d.ts → controller.d-CTvvOy_V.d.ts} +1 -1
- package/dist/types-chunks/{guardrail.d-DqWHIgt6.d.ts → guardrail.d-CKkoea7y.d.ts} +2 -2
- package/dist/types-chunks/{history-retrieval.d-ia-4iJpw.d.ts → history-retrieval.d-D0LNyBED.d.ts} +1 -1
- package/dist/types-chunks/{public-api.d-CMZa4JPa.d.ts → public-api.d-ItHKrP7K.d.ts} +4 -4
- package/dist/types-chunks/{repl.d-Byu2osV-.d.ts → repl.d-Beg6tiSz.d.ts} +11 -6
- package/dist/types-chunks/{resolver.d-bKttRr1V.d.ts → resolver.d-DparsV6Y.d.ts} +6 -4
- package/dist/types-chunks/{review-inbox.d-D3T-RxRs.d.ts → review-inbox.d-dAtGH3g2.d.ts} +1 -1
- package/dist/types-chunks/{run-manager.d-D0aKe12e.d.ts → run-manager.d-BeSEc2OL.d.ts} +1 -1
- package/dist/types-chunks/{sdk-session-BEM7yvJB.d.ts → sdk-session-C7aoqrIR.d.ts} +2 -2
- package/dist/types-chunks/{shell-command-sets.d-_SHjU3KP.d.ts → shell-command-sets.d-C2cc9Hwi.d.ts} +1 -1
- package/dist/types-chunks/{types.d-B_IFJlti.d.ts → types.d-Dc3kwcjC.d.ts} +1 -1
- package/dist/types-chunks/{types.d-BqK7eZ5u.d.ts → types.d-DrtP1ceI.d.ts} +2 -2
- package/dist/types-chunks/{types.d-DeokRBs7.d.ts → types.d-EjZTEEVu.d.ts} +2 -1
- package/dist/types-chunks/{utils.d-0h1NTEsX.d.ts → utils.d-Qa_Z1w2Q.d.ts} +5 -5
- package/package.json +4 -2
- package/dist/chunks/argument-completer-BJGY57H2.js +0 -2
- package/dist/chunks/chunk-A63MGLH6.js +0 -415
- package/dist/chunks/chunk-GL6GVYF4.js +0 -320
- package/dist/chunks/chunk-QQBFQCMF.js +0 -519
- package/dist/chunks/chunk-S74F7MFN.js +0 -412
- package/dist/chunks/chunk-UNEC2WXJ.js +0 -123
- package/dist/chunks/chunk-W2LRTZBJ.js +0 -382
- package/dist/chunks/compaction-config-HVHPJ6CS.js +0 -2
- package/dist/chunks/dist-BCT3UNMA.js +0 -2
- package/dist/chunks/host-V6ENYZAQ.js +0 -2
- package/dist/chunks/run-manager-ZOV7EKTZ.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-BLlhCRI-.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-ItHKrP7K.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. */
|
|
@@ -1128,9 +1196,11 @@ declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
|
|
|
1128
1196
|
readonly daemonOrphanExit: 1;
|
|
1129
1197
|
readonly daemonShutdownVerification: 1;
|
|
1130
1198
|
readonly managedRunDurability: 1;
|
|
1199
|
+
readonly runtimeExitSettlement: 1;
|
|
1131
1200
|
readonly sandboxRuntime: 3;
|
|
1132
1201
|
readonly sessionEventJournal: 1;
|
|
1133
1202
|
readonly runtimeEventCoalescing: 1;
|
|
1203
|
+
readonly liveOutputSegments: 1;
|
|
1134
1204
|
}>;
|
|
1135
1205
|
interface RuntimeCapabilityRequirements {
|
|
1136
1206
|
/** Reject inline and shared daemon hosts; only a Worker-hosted Runtime satisfies this. */
|
|
@@ -1183,6 +1253,8 @@ interface RuntimeCapabilityRequirements {
|
|
|
1183
1253
|
readonly daemonShutdownVerification?: 1;
|
|
1184
1254
|
/** Require source-level bounded coalescing before sequence allocation and persistence. */
|
|
1185
1255
|
readonly runtimeEventCoalescing?: 1;
|
|
1256
|
+
/** Require provider-request-owned live output with explicit replacement semantics. */
|
|
1257
|
+
readonly liveOutputSegments?: 1;
|
|
1186
1258
|
/** Optional integration failures are isolated, observable, and hot-recoverable. */
|
|
1187
1259
|
readonly integrationConfigResilience?: 1;
|
|
1188
1260
|
readonly actorControlPlane?: 1;
|
|
@@ -1715,6 +1787,7 @@ interface RuntimeManagedTaskProjection {
|
|
|
1715
1787
|
interface RuntimeSessionLiveProjection {
|
|
1716
1788
|
readonly assistantTextByRun: Readonly<Record<string, string>>;
|
|
1717
1789
|
readonly thinkingTextByRun: Readonly<Record<string, string>>;
|
|
1790
|
+
readonly outputSegmentsByRun: Readonly<Record<string, KodaXOutputSegmentProjection>>;
|
|
1718
1791
|
readonly activeTools: readonly RuntimeActiveToolProjection[];
|
|
1719
1792
|
readonly todo?: unknown;
|
|
1720
1793
|
readonly pendingUserInputs: readonly RuntimePendingUserInputProjection[];
|
|
@@ -2030,9 +2103,14 @@ interface RuntimeRunService {
|
|
|
2030
2103
|
setProvider(runId: string, provider: string): Promise<void>;
|
|
2031
2104
|
setReasoning(runId: string, reasoning: KodaXReasoningMode | undefined): Promise<void>;
|
|
2032
2105
|
}
|
|
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";
|
|
2106
|
+
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
2107
|
interface RuntimeTextDeltaEventPayload {
|
|
2035
2108
|
readonly text: string;
|
|
2109
|
+
/** Absent only in historical journals written before liveOutputSegments:1. */
|
|
2110
|
+
readonly providerRequestId?: string;
|
|
2111
|
+
readonly meta?: KodaXActivityEventMeta;
|
|
2112
|
+
}
|
|
2113
|
+
interface RuntimeOutputSegmentStartedEventPayload extends KodaXOutputSegmentStarted {
|
|
2036
2114
|
readonly meta?: KodaXActivityEventMeta;
|
|
2037
2115
|
}
|
|
2038
2116
|
interface RuntimeThinkingFinishedEventPayload {
|
|
@@ -2177,7 +2255,7 @@ type RuntimeUserInputRequestedEventPayload = RuntimeUserInputRequest | {
|
|
|
2177
2255
|
type RuntimeEventPayloadDefaults = {
|
|
2178
2256
|
readonly [K in RuntimeEventType]: unknown;
|
|
2179
2257
|
};
|
|
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"> & {
|
|
2258
|
+
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
2259
|
readonly "session.created": RuntimeSession;
|
|
2182
2260
|
readonly "session.loaded": RuntimeSessionLoadedEventPayload;
|
|
2183
2261
|
readonly "run.queued": RuntimeRunStatus;
|
|
@@ -2187,6 +2265,7 @@ type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, "session.created
|
|
|
2187
2265
|
readonly "run.failed": RuntimeRunStatus;
|
|
2188
2266
|
readonly "run.cancelled": RuntimeRunStatus;
|
|
2189
2267
|
readonly "run.interrupted": RuntimeRunStatus;
|
|
2268
|
+
readonly "output.segment.started": RuntimeOutputSegmentStartedEventPayload;
|
|
2190
2269
|
readonly "assistant.delta": RuntimeTextDeltaEventPayload;
|
|
2191
2270
|
readonly "thinking.delta": RuntimeTextDeltaEventPayload;
|
|
2192
2271
|
readonly "thinking.finished": RuntimeThinkingFinishedEventPayload;
|
|
@@ -2350,6 +2429,22 @@ type RuntimePermissionDecision = {
|
|
|
2350
2429
|
readonly reason?: string;
|
|
2351
2430
|
readonly cause?: "approval_timeout";
|
|
2352
2431
|
};
|
|
2432
|
+
interface RuntimePermissionPromptContext {
|
|
2433
|
+
/** Aborted when the Runtime resolves, expires, or rejects the request first. */
|
|
2434
|
+
readonly signal: AbortSignal;
|
|
2435
|
+
}
|
|
2436
|
+
type RuntimePermissionPrompt = (request: RuntimePermissionRequest, context: RuntimePermissionPromptContext) => Promise<RuntimePermissionDecision>;
|
|
2437
|
+
interface RuntimePermissionPromptResolution {
|
|
2438
|
+
readonly requestId: string;
|
|
2439
|
+
readonly status: "responded" | "already_resolved";
|
|
2440
|
+
readonly decision?: RuntimePermissionDecision;
|
|
2441
|
+
}
|
|
2442
|
+
/**
|
|
2443
|
+
* Run one host approval surface without making its Promise part of the Runtime
|
|
2444
|
+
* lifecycle. The Runtime remains authoritative: a timeout, abort, or competing
|
|
2445
|
+
* client resolution aborts the host prompt and wins over any late answer.
|
|
2446
|
+
*/
|
|
2447
|
+
declare function handleRuntimePermissionRequest(runtime: KodaXRuntime, request: RuntimePermissionRequest, prompt: RuntimePermissionPrompt): Promise<RuntimePermissionPromptResolution>;
|
|
2353
2448
|
interface RuntimePermissionFilter {
|
|
2354
2449
|
readonly sessionId?: string;
|
|
2355
2450
|
readonly runId?: string;
|
|
@@ -2569,6 +2664,11 @@ declare function createKodaXRuntime(options: CreateKodaXRuntimeOptions & {
|
|
|
2569
2664
|
}): Promise<KodaXDaemonRuntime>;
|
|
2570
2665
|
declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promise<KodaXRuntime>;
|
|
2571
2666
|
declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
|
|
2667
|
+
/**
|
|
2668
|
+
* Resume a durable exit ticket. Only this exact prepared-ticket path may attach
|
|
2669
|
+
* a management-only client that does not satisfy the normal execution contract.
|
|
2670
|
+
*/
|
|
2671
|
+
declare function settleKodaXRuntimeExit(input: RuntimeExitSettlementInput): Promise<RuntimeExitSettlement>;
|
|
2572
2672
|
|
|
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 };
|
|
2673
|
+
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 };
|
|
2674
|
+
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-4S5ZAR6N.js";import"./chunks/chunk-XC2GKTSX.js";import"./chunks/chunk-YQSQEF6J.js";import"./chunks/chunk-MGM5SUKU.js";import"./chunks/chunk-3SVR6PC4.js";import"./chunks/chunk-G5XXC7ON.js";import"./chunks/chunk-XQWPHL6U.js";import"./chunks/chunk-HXORFXTH.js";import"./chunks/chunk-P7AW3CQW.js";import"./chunks/chunk-X75UGXP3.js";import"./chunks/chunk-7YQT4RAW.js";import"./chunks/chunk-UNTT2ZKN.js";import"./chunks/chunk-7RF2XYFK.js";import"./chunks/chunk-ZNH2MKN5.js";import"./chunks/chunk-FBL7IVMK.js";import"./chunks/chunk-4R4QTBO6.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.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-XC2GKTSX.js";import"./chunks/chunk-XQWPHL6U.js";import"./chunks/chunk-HXORFXTH.js";import"./chunks/chunk-P7AW3CQW.js";import"./chunks/chunk-X75UGXP3.js";import"./chunks/chunk-7YQT4RAW.js";import"./chunks/chunk-UNTT2ZKN.js";import"./chunks/chunk-7RF2XYFK.js";import"./chunks/chunk-ZNH2MKN5.js";import"./chunks/chunk-FBL7IVMK.js";import"./chunks/chunk-4R4QTBO6.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-ItHKrP7K.js';
|
|
2
2
|
export { a as KodaXTaskResultMetadata, G as KodaXTaskResultSource } from './types-chunks/types.d-Cv09EdJR.js';
|
|
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-
|
|
4
|
-
export { H as HistorySeedSourceMessage, R as RestoreHistoryItemsFromSessionInput, a as RestoredHistorySeed, e as extractHistorySeedsFromMessage, b as extractHistorySeedsFromMessages, r as restoreHistoryItemsFromSession } from './types-chunks/sdk-session-
|
|
5
|
-
import './types-chunks/bash-prefix-extractor.d-
|
|
3
|
+
export { 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-C7aoqrIR.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-YQSQEF6J.js";import{O as s,P as e}from"./chunks/chunk-MGM5SUKU.js";import"./chunks/chunk-3SVR6PC4.js";import"./chunks/chunk-G5XXC7ON.js";import"./chunks/chunk-XQWPHL6U.js";import"./chunks/chunk-HXORFXTH.js";import"./chunks/chunk-P7AW3CQW.js";import"./chunks/chunk-X75UGXP3.js";import"./chunks/chunk-7YQT4RAW.js";import"./chunks/chunk-UNTT2ZKN.js";import"./chunks/chunk-7RF2XYFK.js";import"./chunks/chunk-ZNH2MKN5.js";import"./chunks/chunk-FBL7IVMK.js";import"./chunks/chunk-4R4QTBO6.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 u,Bd as c,Cd as d,Dd as x,Ed as P,Fd as R,Gd as h,Hd as p,Id as v,Jd as y,Kd as M,Ld as f,Md as m,Nd 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,yd as n,zd as g}from"./chunks/chunk-4R4QTBO6.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};
|