@kodax-ai/kodax 0.7.77 → 0.7.78

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.
Files changed (98) hide show
  1. package/CHANGELOG.md +176 -4
  2. package/README.md +200 -64
  3. package/README_CN.md +153 -49
  4. package/config-templates/config.example.jsonc +114 -32
  5. package/dist/chunks/agent-ASP4MS3X.js +2 -0
  6. package/dist/chunks/argument-completer-JYQ7FX3W.js +2 -0
  7. package/dist/chunks/{chunk-XSA37BVM.js → chunk-2CFHBKRE.js} +1 -1
  8. package/dist/chunks/chunk-35PPHOQ2.js +292 -0
  9. package/dist/chunks/chunk-43QNNDHR.js +29 -0
  10. package/dist/chunks/chunk-5BNQXXGY.js +1 -0
  11. package/dist/chunks/chunk-5GO6FH7L.js +458 -0
  12. package/dist/chunks/{chunk-FSXI4MAV.js → chunk-5NDCSFOP.js} +14 -14
  13. package/dist/chunks/{chunk-3DD4QEBH.js → chunk-6FOJVETH.js} +10 -10
  14. package/dist/chunks/chunk-6XM4B6K2.js +48 -0
  15. package/dist/chunks/chunk-6YZUE6NC.js +240 -0
  16. package/dist/chunks/{chunk-HORNWBYR.js → chunk-7OEBJGHK.js} +1 -1
  17. package/dist/chunks/{chunk-OAMKECRG.js → chunk-KQLQYHWU.js} +205 -200
  18. package/dist/chunks/{chunk-IQT4RPCE.js → chunk-NXO6GWSY.js} +2 -2
  19. package/dist/chunks/chunk-T2XZTLYE.js +316 -0
  20. package/dist/chunks/chunk-TQDBTTIM.js +348 -0
  21. package/dist/chunks/{chunk-FNW2XUL5.js → chunk-UID7BLAB.js} +1 -1
  22. package/dist/chunks/chunk-VAT2QYXM.js +765 -0
  23. package/dist/chunks/chunk-YAZQTC2L.js +5 -0
  24. package/dist/chunks/chunk-YVRYHC4C.js +655 -0
  25. package/dist/chunks/{chunk-EH7AOMJ7.js → chunk-Z3KFRTSB.js} +1 -1
  26. package/dist/chunks/compaction-config-BQSSIWK5.js +2 -0
  27. package/dist/chunks/{construction-bootstrap-RPRL3L7R.js → construction-bootstrap-VQLQGWPY.js} +1 -1
  28. package/dist/chunks/{dist-FDSOIR35.js → dist-BFT5YIGU.js} +1 -1
  29. package/dist/chunks/dist-PCFE24YP.js +2 -0
  30. package/dist/chunks/host-UTFXCYYM.js +2 -0
  31. package/dist/chunks/run-manager-PJU3WIFJ.js +2 -0
  32. package/dist/chunks/utils-SID4HW2Q.js +2 -0
  33. package/dist/index.d.ts +18 -17
  34. package/dist/index.js +6 -6
  35. package/dist/kodax_cli.js +1751 -1352
  36. package/dist/kodax_resume.js +17 -17
  37. package/dist/runtime-worker.js +1680 -1299
  38. package/dist/sandbox-workspace-session.js +563 -0
  39. package/dist/sdk-a2a.d.ts +16 -16
  40. package/dist/sdk-a2a.js +8 -8
  41. package/dist/sdk-agent.d.ts +275 -60
  42. package/dist/sdk-agent.js +1 -1
  43. package/dist/sdk-coding.d.ts +33 -165
  44. package/dist/sdk-coding.js +1 -1
  45. package/dist/sdk-experimental-memory.d.ts +2 -2
  46. package/dist/sdk-experimental-memory.js +1 -1
  47. package/dist/sdk-llm.d.ts +2 -1
  48. package/dist/sdk-llm.js +1 -1
  49. package/dist/sdk-mcp.js +1 -1
  50. package/dist/sdk-media.js +1 -1
  51. package/dist/sdk-repl.d.ts +67 -25
  52. package/dist/sdk-repl.js +2 -2
  53. package/dist/sdk-runtime.d.ts +194 -147
  54. package/dist/sdk-runtime.js +1 -1
  55. package/dist/sdk-sandbox.d.ts +93 -0
  56. package/dist/sdk-sandbox.js +2 -0
  57. package/dist/sdk-session.d.ts +6 -7
  58. package/dist/sdk-session.js +1 -1
  59. package/dist/sdk-skills.d.ts +2 -2
  60. package/dist/sdk-skills.js +1 -1
  61. package/dist/semantic-worker.js +15 -15
  62. package/dist/types-chunks/{bash-prefix-extractor.d-pZdu6qt7.d.ts → bash-prefix-extractor.d-uAe2Oqda.d.ts} +126 -8
  63. package/dist/types-chunks/{capsule.d-CxCm1KZz.d.ts → capsule.d-BlSv9l3V.d.ts} +1 -1
  64. package/dist/types-chunks/{guardrail.d-CJx9RRd3.d.ts → guardrail.d-BRE_ErEj.d.ts} +1 -1
  65. package/dist/types-chunks/{guardrail.d-B0PwAZVR.d.ts → guardrail.d-CXDYRgZ3.d.ts} +200 -34
  66. package/dist/types-chunks/{history-retrieval.d-B__aEN62.d.ts → history-retrieval.d-DtCy7x64.d.ts} +1 -1
  67. package/dist/types-chunks/{integration-config.d-ojG4swOP.d.ts → integration-config.d-BNowXE8k.d.ts} +23 -8
  68. package/dist/types-chunks/{public-api.d--fF88JrC.d.ts → public-api.d-B3AohsxN.d.ts} +36 -7
  69. package/dist/types-chunks/{commands.d-BccESAMV.d.ts → repl.d-Ie_ZXb_U.d.ts} +89 -78
  70. package/dist/types-chunks/{side-query.d-5JvXhuOZ.d.ts → resolver.d-iAQ9ocLB.d.ts} +3 -66
  71. package/dist/types-chunks/{run-manager.d-B47hIqnI.d.ts → run-manager.d-D1twIhF9.d.ts} +1 -1
  72. package/dist/types-chunks/{sdk-session-CLWf8Adb.d.ts → sdk-session-DB9KksIx.d.ts} +2 -2
  73. package/dist/types-chunks/side-query.d-DTuLPcC5.d.ts +77 -0
  74. package/dist/types-chunks/{types-LanCEDj8.d.ts → types-D3g6XUQr.d.ts} +41 -2
  75. package/dist/types-chunks/{types.d-RdWRfUEs.d.ts → types.d-BA-Jwpfs.d.ts} +459 -7
  76. package/dist/types-chunks/{types.d-CODuyyqy.d.ts → types.d-BH0ZkTGf.d.ts} +1 -1
  77. package/dist/types-chunks/{types.d-DCQVBqVn.d.ts → types.d-BbtGlKZu.d.ts} +25 -3
  78. package/dist/types-chunks/{types.d-DCsKM8aT.d.ts → types.d-DVDTIfB_.d.ts} +2 -2
  79. package/dist/types-chunks/{utils.d-CDduqbFw.d.ts → utils.d-CVp6bFl9.d.ts} +22 -6
  80. package/docs/SDK_EMBEDDER_GUIDE.md +399 -55
  81. package/package.json +8 -1
  82. package/dist/chunks/agent-NGSWFE73.js +0 -2
  83. package/dist/chunks/argument-completer-WGGZPEEO.js +0 -2
  84. package/dist/chunks/chunk-27QLRH3D.js +0 -5
  85. package/dist/chunks/chunk-2MQPVY6P.js +0 -770
  86. package/dist/chunks/chunk-6WAPVAGQ.js +0 -74
  87. package/dist/chunks/chunk-AOENDSVN.js +0 -448
  88. package/dist/chunks/chunk-HV2GMZUZ.js +0 -343
  89. package/dist/chunks/chunk-JS2BHGJP.js +0 -158
  90. package/dist/chunks/chunk-ON2WG2LG.js +0 -622
  91. package/dist/chunks/chunk-RUGAAHTF.js +0 -321
  92. package/dist/chunks/chunk-TGCG7U2W.js +0 -37
  93. package/dist/chunks/compaction-config-BE7VYWH6.js +0 -2
  94. package/dist/chunks/dist-ZZBNVTKU.js +0 -2
  95. package/dist/chunks/host-QAKQVC4A.js +0 -2
  96. package/dist/chunks/run-manager-N4UFWA2D.js +0 -2
  97. package/dist/chunks/utils-AUHCI4D5.js +0 -2
  98. package/dist/types-chunks/center-types.d-BBT122uJ.d.ts +0 -91
@@ -1,23 +1,23 @@
1
1
  import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-DIpZJKUl.js';
2
2
  export { k as KodaXMessage } from './types-chunks/types.d-DIpZJKUl.js';
3
- import { a1 as KodaXOptions, aj as KodaXShellExecutionContract, W as KodaXManagedTaskStatusEvent, Q as KodaXEvents, ac as KodaXResult, be as RuntimeContextBudgetSnapshot, bl as RuntimeToolExposurePlan, a4 as KodaXPromptCacheDiagnosticEvent, N as KodaXContextOptions, K as KodaXActivityEventMeta, aJ as KodaXToolEventMeta, aQ as KodaXTurnStartedEvent, aN as KodaXTurnCompletedEvent, aP as KodaXTurnFailedEvent, L as KodaXContextCompactionFinishedEvent, M as KodaXContextIdentity } from './types-chunks/bash-prefix-extractor.d-pZdu6qt7.js';
4
- import { C as AgentDispatchContext, Q as AgentExecutorFactory, D as AgentDispatchPolicy, y as AgentCredentialBroker, m as AgentArtifactPolicy, bu as KodaXImageInputArtifact, bx as KodaXInputArtifactSource, c3 as KodaXVideoInputArtifact, ea as WorkflowProcessSnapshot, e4 as WorkflowProcessEvent, M as AgentExecutionKind, al as AgentRegistrationService, b1 as DispatchableAgentQuery, a$ as DispatchableAgentListing, ad as AgentPreflightInput, ae as AgentPreflightResult, aA as AgentTreeSnapshot, B as AgentDetail, an as AgentSpawnInput, aD as AgentTurnRef, z as AgentDataClassification, $ as AgentFollowupResult, ac as AgentOutput, J as AgentEvent } from './types-chunks/types.d-RdWRfUEs.js';
5
- import { i as SkillMetadata } from './types-chunks/types.d-DCQVBqVn.js';
3
+ import { F as AgentDispatchContext, cK as LearningQuery, cJ as LearningPage, cm as LearnedCapabilityRecord, cP as LearningSurfaceSnapshot, cF as LearningEvent, cO as LearningSubscribeOptions, T as AgentExecutorFactory, G as AgentDispatchPolicy, C as AgentCredentialBroker, p as AgentArtifactPolicy, bB as KodaXImageInputArtifact, bE as KodaXInputArtifactSource, cb as KodaXVideoInputArtifact, e_ as WorkflowProcessSnapshot, eU as WorkflowProcessEvent, P as AgentExecutionKind, ao as AgentRegistrationService, b7 as DispatchableAgentQuery, b5 as DispatchableAgentListing, ag as AgentPreflightInput, ah as AgentPreflightResult, aD as AgentTreeSnapshot, E as AgentDetail, aq as AgentSpawnInput, aG as AgentTurnRef, D as AgentDataClassification, a2 as AgentFollowupResult, af as AgentOutput, M as AgentEvent } from './types-chunks/types.d-BA-Jwpfs.js';
4
+ import { i as SkillMetadata } from './types-chunks/types.d-BbtGlKZu.js';
6
5
  import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
7
6
  import { t as McpServerStatus, u as McpServerToolList } from './types-chunks/manager.d-B67TmPO1.js';
8
- import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-B__aEN62.js';
9
- import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-B47hIqnI.js';
10
- import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-DCsKM8aT.js';
11
- import { r as AutoModeStats } from './types-chunks/guardrail.d-B0PwAZVR.js';
12
- import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-CDduqbFw.js';
13
- import { k as FullTranscriptSessionData, Z as SessionTranscriptEntry, c as CompactSessionResult } from './types-chunks/public-api.d--fF88JrC.js';
14
- import { n as LearningQuery, m as LearningPage, b as LearnedCapabilityRecord, p as LearningSurfaceSnapshot, j as LearningEvent, o as LearningSubscribeOptions } from './types-chunks/center-types.d-BBT122uJ.js';
7
+ import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-DtCy7x64.js';
8
+ import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-D1twIhF9.js';
9
+ import { a1 as KodaXOptions, ak as KodaXShellExecutionContract, aQ as KodaXToolSandboxObservationUpdate, aO as KodaXToolEventMeta, W as KodaXManagedTaskStatusEvent, Q as KodaXEvents, ad as KodaXResult, bk as RuntimeContextBudgetSnapshot, br as RuntimeToolExposurePlan, a5 as KodaXPromptCacheDiagnosticEvent, N as KodaXContextOptions, K as KodaXActivityEventMeta, aW as KodaXTurnStartedEvent, aT as KodaXTurnCompletedEvent, aV as KodaXTurnFailedEvent, L as KodaXContextCompactionFinishedEvent, M as KodaXContextIdentity } from './types-chunks/bash-prefix-extractor.d-uAe2Oqda.js';
10
+ import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-DVDTIfB_.js';
11
+ import { h as AutoModeDecisionDiagnostics, s as AutoModeStats } from './types-chunks/guardrail.d-CXDYRgZ3.js';
12
+ import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-CVp6bFl9.js';
13
+ import { k as FullTranscriptSessionData, Z as SessionTranscriptEntry, c as CompactSessionResult } from './types-chunks/public-api.d-B3AohsxN.js';
14
+ import './types-chunks/capability.d-K664nHOS.js';
15
15
  import 'vscode-languageserver-protocol';
16
16
  import './types-chunks/cost-tracker.d-BeaenODW.js';
17
- import './types-chunks/types-LanCEDj8.js';
18
- import './types-chunks/capability.d-K664nHOS.js';
17
+ import './types-chunks/types-D3g6XUQr.js';
19
18
  import './types-chunks/base.d-4e74xDdy.js';
20
- import './types-chunks/guardrail.d-CJx9RRd3.js';
19
+ import './types-chunks/guardrail.d-BRE_ErEj.js';
20
+ import './types-chunks/side-query.d-DTuLPcC5.js';
21
21
  import 'readline';
22
22
  import 'child_process';
23
23
 
@@ -163,18 +163,18 @@ interface RuntimeAgentBindingService {
163
163
 
164
164
  interface RuntimeLearningService {
165
165
  list(query?: LearningQuery): Promise<LearningPage>;
166
- get(nameOrSlug: string): Promise<LearnedCapabilityRecord>;
166
+ get(nameOrSlugOrId: string): Promise<LearnedCapabilityRecord>;
167
167
  getSnapshot(): Promise<LearningSurfaceSnapshot>;
168
168
  events(afterRevision?: number): Promise<readonly LearningEvent[]>;
169
169
  subscribe(options?: LearningSubscribeOptions): AsyncIterable<LearningEvent>;
170
- acknowledge(nameOrSlug: string): Promise<void>;
171
- snooze(nameOrSlug: string, until: string): Promise<void>;
172
- reject(nameOrSlug: string): Promise<void>;
173
- disable(nameOrSlug: string): Promise<void>;
174
- rollback(nameOrSlug: string): Promise<void>;
175
- promote(nameOrSlug: string, scope: 'user'): Promise<void>;
176
- review(nameOrSlug: string): Promise<void>;
177
- trust(nameOrSlug: string): Promise<void>;
170
+ acknowledge(nameOrSlugOrId: string): Promise<void>;
171
+ snooze(nameOrSlugOrId: string, until: string): Promise<void>;
172
+ reject(nameOrSlugOrId: string): Promise<void>;
173
+ disable(nameOrSlugOrId: string): Promise<void>;
174
+ rollback(nameOrSlugOrId: string): Promise<void>;
175
+ promote(nameOrSlugOrId: string, scope: 'user'): Promise<void>;
176
+ review(nameOrSlugOrId: string): Promise<void>;
177
+ trust(nameOrSlugOrId: string): Promise<void>;
178
178
  }
179
179
 
180
180
  declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
@@ -861,10 +861,10 @@ declare function listRuntimeDaemonSchemaMethods(): readonly RuntimeDaemonMethod[
861
861
  declare class RuntimeDaemonCapabilityUpgradeError extends Error {
862
862
  readonly preflight?: RuntimeDaemonPreflight | undefined;
863
863
  readonly code: "daemon_capability_upgrade_required";
864
- readonly capability: "runtimeAutoModeGuardrail";
865
864
  readonly recoverable: true;
866
865
  readonly restartRequired: true;
867
- constructor(message: string, preflight?: RuntimeDaemonPreflight | undefined, options?: ErrorOptions);
866
+ readonly capability: string;
867
+ constructor(message: string, preflight?: RuntimeDaemonPreflight | undefined, options?: ErrorOptions, capability?: string);
868
868
  }
869
869
  /** A recoverable Auto LLM configuration error that must never become approval work. */
870
870
  declare class RuntimeAutoModeConfigurationError extends Error {
@@ -873,8 +873,8 @@ declare class RuntimeAutoModeConfigurationError extends Error {
873
873
  constructor(message: string);
874
874
  }
875
875
 
876
- type KodaXRuntimeMode = 'embedded' | 'daemon';
877
- type KodaXRuntimeIsolation = 'inline' | 'worker' | 'process';
876
+ type KodaXRuntimeMode = "embedded" | "daemon";
877
+ type KodaXRuntimeIsolation = "inline" | "worker" | "process";
878
878
 
879
879
  interface RuntimeInlineOwnerHandle {
880
880
  readonly profile: string;
@@ -883,7 +883,7 @@ interface RuntimeInlineOwnerHandle {
883
883
  close(): void;
884
884
  }
885
885
  interface RuntimeOwnerPolicyState {
886
- readonly mode: 'daemon' | 'inline';
886
+ readonly mode: "daemon" | "inline";
887
887
  readonly revision: number;
888
888
  readonly updatedAt: string;
889
889
  }
@@ -891,12 +891,12 @@ interface RuntimeOwnerIdentity {
891
891
  readonly runtimeId: string;
892
892
  readonly pid: number;
893
893
  readonly createdAt: string;
894
- readonly kind?: 'daemon' | 'inline';
894
+ readonly kind?: "daemon" | "inline";
895
895
  }
896
896
  interface RuntimeOwnerState {
897
897
  readonly profile: string;
898
898
  readonly policy: RuntimeOwnerPolicyState;
899
- readonly ownerStatus: 'unowned' | 'owned' | 'unreadable';
899
+ readonly ownerStatus: "unowned" | "owned" | "unreadable";
900
900
  readonly owner: RuntimeOwnerIdentity | null;
901
901
  }
902
902
  /**
@@ -922,12 +922,12 @@ declare function enableKodaXDaemonOwner(input?: {
922
922
  readonly profile?: string;
923
923
  }): RuntimeOwnerPolicyState;
924
924
  declare function setKodaXRuntimeOwnerMode(input: {
925
- readonly mode: 'daemon' | 'inline';
925
+ readonly mode: "daemon" | "inline";
926
926
  readonly expectedRevision: number;
927
927
  readonly homeDir?: string;
928
928
  readonly profile?: string;
929
929
  }): {
930
- readonly mode: 'daemon' | 'inline';
930
+ readonly mode: "daemon" | "inline";
931
931
  readonly revision: number;
932
932
  readonly updatedAt: string;
933
933
  };
@@ -962,7 +962,7 @@ interface RuntimeClientCapabilities {
962
962
  readonly contextDiagnostics?: boolean;
963
963
  readonly operationDeduplication?: boolean;
964
964
  }
965
- type RuntimeGrantedScope = 'session:observe' | 'session:write' | 'run:control' | 'interaction:respond' | 'permission:respond' | 'permission:grant-admin' | 'integration:admin' | 'workflow:control' | 'learning:read' | 'learning:control' | 'artifact:write' | 'agent:control' | 'credential:register' | 'host-tool:register' | 'owner:admin' | 'daemon:admin';
965
+ type RuntimeGrantedScope = "session:observe" | "session:write" | "run:control" | "interaction:respond" | "permission:respond" | "permission:grant-admin" | "integration:admin" | "workflow:control" | "learning:read" | "learning:control" | "artifact:write" | "agent:control" | "credential:register" | "host-tool:register" | "owner:admin" | "daemon:admin";
966
966
  interface RuntimeExternalAgentsOptions {
967
967
  readonly factories: readonly AgentExecutorFactory[];
968
968
  readonly policy: AgentDispatchPolicy;
@@ -976,7 +976,7 @@ interface CreateKodaXRuntimeOptions {
976
976
  /** Runtime ownership form. Defaults to a caller-owned embedded Runtime. */
977
977
  readonly mode?: KodaXRuntimeMode;
978
978
  /** Embedded-only execution location. Daemon mode selects host isolation internally. */
979
- readonly isolation?: 'inline' | 'worker';
979
+ readonly isolation?: "inline" | "worker";
980
980
  /** Requires `isolation: 'worker'`; rejected instead of being silently ignored. */
981
981
  readonly worker?: RuntimeWorkerOptions;
982
982
  /** Base directory that owns `.kodax`, matching CLI `--home`; not the `.kodax` directory used by `KODAX_HOME`. */
@@ -992,6 +992,11 @@ interface CreateKodaXRuntimeOptions {
992
992
  readonly daemonHostRuntimeId?: string;
993
993
  readonly daemonStartupTimeoutMs?: number;
994
994
  readonly daemonConnectTimeoutMs?: number;
995
+ /**
996
+ * Auto-started daemon only: after the last logical client disconnects,
997
+ * stop once governed work is idle. Omit to keep the normal persistent daemon.
998
+ */
999
+ readonly daemonOrphanExitMs?: number;
995
1000
  readonly daemonTransport?: RuntimeDaemonClientTransport;
996
1001
  readonly daemonEndpoint?: string | RuntimeDaemonEndpoint;
997
1002
  /** Defaults to true for daemon mode unless a transport or endpoint is supplied. */
@@ -1017,11 +1022,17 @@ interface ConnectKodaXRuntimeOptions {
1017
1022
  readonly permissionTimeoutMs?: number;
1018
1023
  readonly daemonStartupTimeoutMs?: number;
1019
1024
  readonly daemonConnectTimeoutMs?: number;
1025
+ /** Auto-started daemon idle-exit policy; see CreateKodaXRuntimeOptions. */
1026
+ readonly daemonOrphanExitMs?: number;
1020
1027
  readonly daemonToken?: string;
1021
1028
  readonly clientInfo?: RuntimeClientInfo;
1022
1029
  readonly capabilities?: RuntimeClientCapabilities;
1023
1030
  readonly requirements?: RuntimeCapabilityRequirements;
1024
1031
  }
1032
+ /** SDK facts that embedders can inspect before auto-starting a daemon. */
1033
+ declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
1034
+ readonly daemonOrphanExit: 1;
1035
+ }>;
1025
1036
  interface RuntimeCapabilityRequirements {
1026
1037
  /** Reject inline and shared daemon hosts; only a Worker-hosted Runtime satisfies this. */
1027
1038
  readonly hardDispose?: boolean;
@@ -1035,6 +1046,7 @@ interface RuntimeCapabilityRequirements {
1035
1046
  readonly sessionObservation?: 1;
1036
1047
  readonly afterTurnInput?: 1;
1037
1048
  readonly learningCenter?: 1;
1049
+ readonly skillLearningLoop?: 1;
1038
1050
  readonly interruptInput?: 1;
1039
1051
  readonly askUserTransport?: 1;
1040
1052
  readonly permissionCas?: 1;
@@ -1057,11 +1069,15 @@ interface RuntimeCapabilityRequirements {
1057
1069
  readonly sharedSessionSettings?: 1;
1058
1070
  readonly durableRecoveryQueries?: 1;
1059
1071
  readonly daemonManagement?: 1;
1072
+ /** Require an auto-started daemon whose current host has orphan idle-exit enabled. */
1073
+ readonly daemonOrphanExit?: 1;
1074
+ /** Optional integration failures are isolated, observable, and hot-recoverable. */
1075
+ readonly integrationConfigResilience?: 1;
1060
1076
  readonly actorControlPlane?: 1;
1061
1077
  /** Runtime owns Auto LLM/rules classification before shared permission brokering. */
1062
- readonly runtimeAutoModeGuardrail?: 1 | 2 | 3;
1078
+ readonly runtimeAutoModeGuardrail?: 1 | 2 | 3 | 4;
1063
1079
  }
1064
- type RuntimeOperationState = 'accepted' | 'dispatched' | 'applied' | 'rejected' | 'interrupted' | 'unknown';
1080
+ type RuntimeOperationState = "accepted" | "dispatched" | "applied" | "rejected" | "interrupted" | "unknown";
1065
1081
  interface RuntimeOperationReceipt {
1066
1082
  readonly operationId: string;
1067
1083
  readonly journalEpoch: string;
@@ -1088,7 +1104,7 @@ interface RuntimeDiagnosticFilter {
1088
1104
  readonly sessionId?: string;
1089
1105
  readonly runId?: string;
1090
1106
  /** Defaults to root so child physical requests do not replace root diagnostics. */
1091
- readonly contextKind?: 'root' | 'child';
1107
+ readonly contextKind?: "root" | "child";
1092
1108
  readonly agentId?: string;
1093
1109
  }
1094
1110
  interface RuntimeDiagnosticsService {
@@ -1097,7 +1113,7 @@ interface RuntimeDiagnosticsService {
1097
1113
  latestProviderCacheDiagnostic(filter?: RuntimeDiagnosticFilter): Promise<KodaXPromptCacheDiagnosticEvent | null>;
1098
1114
  }
1099
1115
  interface RuntimeConnectionState {
1100
- readonly state: 'connected' | 'disconnected';
1116
+ readonly state: "connected" | "disconnected";
1101
1117
  readonly connectionId: string;
1102
1118
  readonly runtimeEpoch: string;
1103
1119
  readonly journalEpoch?: string;
@@ -1182,15 +1198,15 @@ interface RuntimeCommandInfo {
1182
1198
  readonly name: string;
1183
1199
  readonly aliases?: readonly string[];
1184
1200
  readonly description: string;
1185
- readonly source: CommandInfo['source'];
1201
+ readonly source: CommandInfo["source"];
1186
1202
  readonly usage?: string;
1187
1203
  readonly argumentHint?: string;
1188
- readonly location?: CommandInfo['location'];
1204
+ readonly location?: CommandInfo["location"];
1189
1205
  readonly path?: string;
1190
1206
  readonly userInvocable?: boolean;
1191
1207
  readonly disableModelInvocation?: boolean;
1192
1208
  readonly allowedTools?: string;
1193
- readonly context?: 'fork';
1209
+ readonly context?: "fork";
1194
1210
  readonly agent?: string;
1195
1211
  readonly model?: string;
1196
1212
  }
@@ -1213,7 +1229,7 @@ interface RuntimeSkillSummary {
1213
1229
  readonly userInvocable: boolean;
1214
1230
  readonly argumentHint?: string;
1215
1231
  readonly path: string;
1216
- readonly source: SkillMetadata['source'];
1232
+ readonly source: SkillMetadata["source"];
1217
1233
  readonly disableModelInvocation: boolean;
1218
1234
  }
1219
1235
  interface RuntimeSkillDescription extends RuntimeSkillSummary {
@@ -1272,7 +1288,7 @@ interface RuntimeMcpService {
1272
1288
  reloadServers(): Promise<RuntimeMcpReloadResult>;
1273
1289
  listTools(filter?: RuntimeMcpToolListFilter): Promise<readonly McpServerToolList[]>;
1274
1290
  }
1275
- type RuntimeArtifactKind = 'image' | 'file' | 'video';
1291
+ type RuntimeArtifactKind = "image" | "file" | "video";
1276
1292
  interface RuntimeCreateArtifactInput {
1277
1293
  readonly kind: RuntimeArtifactKind;
1278
1294
  readonly path: string;
@@ -1364,7 +1380,7 @@ interface RuntimeTranscriptEntryChunk {
1364
1380
  readonly revision: string;
1365
1381
  readonly entryIndex: number;
1366
1382
  readonly entryId?: string;
1367
- readonly encoding: 'base64-json';
1383
+ readonly encoding: "base64-json";
1368
1384
  readonly data: string;
1369
1385
  readonly hasMore: boolean;
1370
1386
  readonly nextCursor?: string;
@@ -1373,8 +1389,8 @@ interface RuntimeTranscriptSearchInput {
1373
1389
  readonly sessionId: string;
1374
1390
  readonly query: string;
1375
1391
  readonly limit?: number;
1376
- readonly role?: 'user' | 'assistant';
1377
- readonly scope?: 'compacted' | 'all';
1392
+ readonly role?: "user" | "assistant";
1393
+ readonly scope?: "compacted" | "all";
1378
1394
  }
1379
1395
  interface RuntimeTranscriptSearchHit extends KodaXSessionHistoryHit {
1380
1396
  /** Index accepted by transcriptEntryChunk for this exact transcript revision. */
@@ -1386,7 +1402,7 @@ interface RuntimeTranscriptSearchResult {
1386
1402
  }
1387
1403
  interface RuntimeSessionFilter {
1388
1404
  readonly projectRoot?: string;
1389
- readonly scope?: 'user' | 'managed-task-worker' | 'all';
1405
+ readonly scope?: "user" | "managed-task-worker" | "all";
1390
1406
  readonly includeArchived?: boolean;
1391
1407
  readonly limit?: number;
1392
1408
  readonly before?: string;
@@ -1403,14 +1419,14 @@ interface RuntimeForkSessionInput {
1403
1419
  interface RuntimeSessionSettings {
1404
1420
  readonly provider?: string;
1405
1421
  readonly model?: string;
1406
- readonly effort?: KodaXOptions['effort'];
1422
+ readonly effort?: KodaXOptions["effort"];
1407
1423
  readonly thinking?: boolean;
1408
1424
  readonly reasoningMode?: KodaXReasoningMode;
1409
1425
  readonly permissionMode?: string;
1410
1426
  readonly executionCwd?: string;
1411
1427
  readonly shellExecution?: KodaXShellExecutionContract;
1412
- readonly agentMode?: KodaXOptions['agentMode'];
1413
- readonly autoModeEngine?: 'llm' | 'rules';
1428
+ readonly agentMode?: KodaXOptions["agentMode"];
1429
+ readonly autoModeEngine?: "llm" | "rules";
1414
1430
  readonly autoModeClassifierModel?: string;
1415
1431
  readonly autoModeTimeoutMs?: number;
1416
1432
  readonly autoModeSpeculativeWindowMs?: number;
@@ -1422,14 +1438,14 @@ interface RuntimeSessionSettings {
1422
1438
  interface RuntimeSessionSettingsPatch {
1423
1439
  readonly provider?: string | null;
1424
1440
  readonly model?: string | null;
1425
- readonly effort?: KodaXOptions['effort'] | null;
1441
+ readonly effort?: KodaXOptions["effort"] | null;
1426
1442
  readonly thinking?: boolean | null;
1427
1443
  readonly reasoningMode?: KodaXReasoningMode | null;
1428
1444
  readonly permissionMode?: string | null;
1429
1445
  readonly executionCwd?: string | null;
1430
1446
  readonly shellExecution?: KodaXShellExecutionContract | null;
1431
- readonly agentMode?: KodaXOptions['agentMode'] | null;
1432
- readonly autoModeEngine?: 'llm' | 'rules' | null;
1447
+ readonly agentMode?: KodaXOptions["agentMode"] | null;
1448
+ readonly autoModeEngine?: "llm" | "rules" | null;
1433
1449
  readonly autoModeClassifierModel?: string | null;
1434
1450
  readonly autoModeTimeoutMs?: number | null;
1435
1451
  readonly autoModeSpeculativeWindowMs?: number | null;
@@ -1476,6 +1492,7 @@ interface RuntimeActiveToolProjection {
1476
1492
  readonly turnId?: string;
1477
1493
  readonly started: unknown;
1478
1494
  readonly progress?: unknown;
1495
+ readonly sandbox?: RuntimeToolSandboxEventPayload;
1479
1496
  }
1480
1497
  interface RuntimePendingUserInputProjection {
1481
1498
  readonly requestId: string;
@@ -1535,21 +1552,21 @@ interface RuntimeSessionService {
1535
1552
  unarchive(sessionId: string): Promise<void>;
1536
1553
  delete(sessionId: string): Promise<void>;
1537
1554
  }
1538
- type RuntimeRunPhase = 'queued' | 'running' | 'waiting_permission' | 'waiting_user_input' | 'completed' | 'failed' | 'cancelled' | 'interrupted';
1539
- type RuntimeRunMode = 'coding' | 'managed_task';
1555
+ type RuntimeRunPhase = "queued" | "running" | "waiting_permission" | "waiting_user_input" | "completed" | "failed" | "cancelled" | "interrupted";
1556
+ type RuntimeRunMode = "coding" | "managed_task";
1540
1557
  interface RuntimeTextInput {
1541
- readonly type: 'text';
1558
+ readonly type: "text";
1542
1559
  readonly text: string;
1543
1560
  }
1544
1561
  interface RuntimeImageInput {
1545
- readonly type: 'image';
1562
+ readonly type: "image";
1546
1563
  readonly path: string;
1547
- readonly mediaType?: KodaXImageInputArtifact['mediaType'];
1564
+ readonly mediaType?: KodaXImageInputArtifact["mediaType"];
1548
1565
  readonly source?: KodaXInputArtifactSource;
1549
1566
  readonly description?: string;
1550
1567
  }
1551
1568
  interface RuntimeFileInput {
1552
- readonly type: 'file';
1569
+ readonly type: "file";
1553
1570
  readonly path: string;
1554
1571
  readonly mediaType?: string;
1555
1572
  readonly mimeType?: string;
@@ -1558,20 +1575,20 @@ interface RuntimeFileInput {
1558
1575
  readonly description?: string;
1559
1576
  }
1560
1577
  interface RuntimeVideoInput {
1561
- readonly type: 'video';
1578
+ readonly type: "video";
1562
1579
  readonly path: string;
1563
- readonly mediaType: KodaXVideoInputArtifact['mediaType'];
1580
+ readonly mediaType: KodaXVideoInputArtifact["mediaType"];
1564
1581
  readonly name?: string;
1565
1582
  readonly source?: KodaXInputArtifactSource;
1566
1583
  readonly description?: string;
1567
1584
  }
1568
1585
  interface RuntimeArtifactRefInput {
1569
- readonly type: 'artifact_ref';
1586
+ readonly type: "artifact_ref";
1570
1587
  readonly artifactId: string;
1571
1588
  readonly description?: string;
1572
1589
  }
1573
1590
  type RuntimeInput = RuntimeTextInput | RuntimeImageInput | RuntimeFileInput | RuntimeVideoInput | RuntimeArtifactRefInput;
1574
- type RuntimePermissionBroker = 'runtime' | 'client';
1591
+ type RuntimePermissionBroker = "runtime" | "client";
1575
1592
  interface RuntimeStartRunInput {
1576
1593
  readonly sessionId: string;
1577
1594
  readonly prompt?: string;
@@ -1595,7 +1612,7 @@ interface RuntimeStartRunInput {
1595
1612
  interface RuntimeSubmitInput {
1596
1613
  readonly sessionId: string;
1597
1614
  readonly afterRunId: string;
1598
- readonly delivery: 'after_turn' | 'interrupt';
1615
+ readonly delivery: "after_turn" | "interrupt";
1599
1616
  readonly input: RuntimeInput | readonly RuntimeInput[];
1600
1617
  /** Continuations receive only bindings explicitly supplied for this input. */
1601
1618
  readonly credential?: {
@@ -1609,14 +1626,14 @@ interface RuntimeSubmitInput {
1609
1626
  }
1610
1627
  type RuntimeSubmitInputResult = {
1611
1628
  readonly accepted: true;
1612
- readonly delivery: 'after_turn';
1629
+ readonly delivery: "after_turn";
1613
1630
  readonly runId: string;
1614
1631
  readonly sessionId: string;
1615
1632
  readonly afterRunId: string;
1616
1633
  readonly sessionOrder: number;
1617
1634
  } | {
1618
1635
  readonly accepted: true;
1619
- readonly delivery: 'interrupt';
1636
+ readonly delivery: "interrupt";
1620
1637
  readonly inputId: string;
1621
1638
  /** The existing active Run that owns this input; no new Run is created. */
1622
1639
  readonly runId: string;
@@ -1625,32 +1642,32 @@ type RuntimeSubmitInputResult = {
1625
1642
  readonly sessionOrder: number;
1626
1643
  } | {
1627
1644
  readonly accepted: false;
1628
- readonly delivery: 'after_turn' | 'interrupt';
1645
+ readonly delivery: "after_turn" | "interrupt";
1629
1646
  readonly sessionId: string;
1630
1647
  readonly afterRunId: string;
1631
- readonly reason: 'stale_run' | 'unsupported_capability' | 'interrupt_window_closed';
1648
+ readonly reason: "stale_run" | "unsupported_capability" | "interrupt_window_closed";
1632
1649
  };
1633
1650
  interface RuntimeOperationOptions {
1634
1651
  readonly operationId?: string;
1635
1652
  readonly journalEpoch?: string;
1636
1653
  readonly expectedRevision?: number;
1637
1654
  }
1638
- type RuntimeKodaXOptions = Omit<KodaXOptions, 'provider' | 'session' | 'events'> & {
1655
+ type RuntimeKodaXOptions = Omit<KodaXOptions, "provider" | "session" | "events"> & {
1639
1656
  readonly provider?: string;
1640
- readonly session?: KodaXOptions['session'];
1657
+ readonly session?: KodaXOptions["session"];
1641
1658
  readonly events?: KodaXEvents;
1642
1659
  };
1643
- type RuntimeDaemonContextOptions = Pick<KodaXContextOptions, 'memoryIdentity' | 'gitRoot' | 'executionCwd' | 'shellExecution' | 'contextTokenSnapshot' | 'projectSnapshot' | 'longRunning' | 'providerPolicyHints' | 'repoRoutingSignals' | 'repoIntelligenceMode' | 'repoIntelligenceTrace' | 'contextDiagnostics' | 'disableAutoTaskReroute' | 'toolConstructionMode' | 'skillsPrompt' | 'rawUserInput' | 'skillInvocation' | 'repoIntelligenceContext' | 'inputArtifacts' | 'promptOverlay' | 'taskSurface' | 'liveTurn' | 'managedTaskWorkspaceDir' | 'managedProtocolEmission' | 'excludeTools' | 'systemPromptOverride' | 'taskMetadata' | 'taskVerification' | 'agentProfile' | 'currentAgentId' | 'parentAgentId'>;
1644
- type RuntimeDaemonKodaXOptions = Pick<RuntimeKodaXOptions, 'provider' | 'model' | 'modelOverride' | 'effort' | 'thinking' | 'reasoningMode' | 'agentMode' | 'maxIter' | 'workflowHostPolicy' | 'workflowRunsBaseDir' | 'modelTiers' | 'maxOutputTokens' | 'disablePromptCache' | 'lsp' | 'workflow' | 'selfManual' | 'compaction' | 'timeouts'> & {
1660
+ type RuntimeDaemonContextOptions = Pick<KodaXContextOptions, "gitRoot" | "executionCwd" | "shellExecution" | "contextTokenSnapshot" | "projectSnapshot" | "longRunning" | "providerPolicyHints" | "repoRoutingSignals" | "repoIntelligenceMode" | "repoIntelligenceTrace" | "contextDiagnostics" | "disableAutoTaskReroute" | "toolConstructionMode" | "skillsPrompt" | "rawUserInput" | "skillInvocation" | "repoIntelligenceContext" | "inputArtifacts" | "promptOverlay" | "taskSurface" | "liveTurn" | "managedTaskWorkspaceDir" | "managedProtocolEmission" | "excludeTools" | "systemPromptOverride" | "taskMetadata" | "taskVerification" | "agentProfile" | "currentAgentId" | "parentAgentId">;
1661
+ type RuntimeDaemonKodaXOptions = Pick<RuntimeKodaXOptions, "provider" | "model" | "modelOverride" | "effort" | "thinking" | "reasoningMode" | "agentMode" | "maxIter" | "workflowHostPolicy" | "workflowRunsBaseDir" | "modelTiers" | "maxOutputTokens" | "disablePromptCache" | "lsp" | "workflow" | "selfManual" | "compaction" | "timeouts"> & {
1645
1662
  readonly context?: RuntimeDaemonContextOptions;
1646
1663
  };
1647
- type RuntimeDaemonStartRunInput = Omit<RuntimeStartRunInput, 'options' | 'agentContext' | 'permissionBroker'> & {
1664
+ type RuntimeDaemonStartRunInput = Omit<RuntimeStartRunInput, "options" | "agentContext" | "permissionBroker"> & {
1648
1665
  readonly options?: RuntimeDaemonKodaXOptions;
1649
1666
  };
1650
- interface RuntimeDaemonRunService extends Omit<RuntimeRunService, 'start'> {
1667
+ interface RuntimeDaemonRunService extends Omit<RuntimeRunService, "start"> {
1651
1668
  start(input: RuntimeDaemonStartRunInput): Promise<RuntimeRunHandle>;
1652
1669
  }
1653
- type KodaXDaemonRuntime = Omit<KodaXRuntime, 'runs'> & {
1670
+ type KodaXDaemonRuntime = Omit<KodaXRuntime, "runs"> & {
1654
1671
  readonly runs: RuntimeDaemonRunService;
1655
1672
  readonly daemon: RuntimeDaemonManagementService;
1656
1673
  };
@@ -1687,36 +1704,36 @@ interface RuntimeRunRequirements {
1687
1704
  readonly credential?: {
1688
1705
  readonly leaseId: string;
1689
1706
  readonly provider: string;
1690
- readonly state: 'ready' | 'expired' | 'terminal';
1707
+ readonly state: "ready" | "expired" | "terminal";
1691
1708
  };
1692
1709
  readonly hostTools?: {
1693
1710
  readonly leaseId: string;
1694
- readonly state: 'ready' | 'waiting_host' | 'expired' | 'terminal';
1711
+ readonly state: "ready" | "waiting_host" | "expired" | "terminal";
1695
1712
  };
1696
1713
  }
1697
1714
  interface RuntimeContinuationStatus {
1698
1715
  readonly inputId: string;
1699
1716
  readonly afterRunId: string;
1700
- readonly delivery: 'after_turn';
1701
- readonly state: 'queued' | 'delivered' | 'terminal';
1717
+ readonly delivery: "after_turn";
1718
+ readonly state: "queued" | "delivered" | "terminal";
1702
1719
  readonly contentPreview: string;
1703
1720
  }
1704
1721
  interface RuntimeInterruptInputStatus {
1705
1722
  readonly inputId: string;
1706
1723
  readonly afterRunId: string;
1707
- readonly delivery: 'interrupt';
1708
- readonly state: 'queued' | 'delivered' | 'terminal';
1724
+ readonly delivery: "interrupt";
1725
+ readonly state: "queued" | "delivered" | "terminal";
1709
1726
  readonly contentPreview: string;
1710
1727
  readonly queuedAt: string;
1711
1728
  readonly deliveredAt?: string;
1712
- readonly origin?: RuntimeRunStatus['origin'];
1729
+ readonly origin?: RuntimeRunStatus["origin"];
1713
1730
  }
1714
- type RuntimeTerminalCode = 'completed' | 'run_failed' | 'blocked' | 'cancelled' | 'interrupted' | 'runtime_restarted' | 'daemon_crashed' | 'credential_unavailable' | 'host_not_dispatched' | 'host_outcome_unknown' | 'control_history_untrusted';
1731
+ type RuntimeTerminalCode = "completed" | "run_failed" | "blocked" | "cancelled" | "interrupted" | "runtime_restarted" | "daemon_crashed" | "credential_unavailable" | "host_not_dispatched" | "host_outcome_unknown" | "control_history_untrusted";
1715
1732
  interface RuntimeTerminalFact {
1716
1733
  readonly revision: number;
1717
- readonly kind: 'completed' | 'failed' | 'cancelled' | 'interrupted';
1734
+ readonly kind: "completed" | "failed" | "cancelled" | "interrupted";
1718
1735
  readonly code: RuntimeTerminalCode;
1719
- readonly effectOutcome: 'none' | 'known' | 'unknown';
1736
+ readonly effectOutcome: "none" | "known" | "unknown";
1720
1737
  readonly message?: string;
1721
1738
  }
1722
1739
  interface RuntimeRunResult {
@@ -1748,7 +1765,7 @@ interface RuntimeRunService {
1748
1765
  setProvider(runId: string, provider: string): Promise<void>;
1749
1766
  setReasoning(runId: string, reasoning: KodaXReasoningMode | undefined): Promise<void>;
1750
1767
  }
1751
- type RuntimeEventType = 'session.created' | 'session.loaded' | 'session.settings.updated' | 'session.notice.appended' | 'session.rewound' | 'session.active_entry.updated' | 'session.compacted' | 'run.queued' | 'run.started' | 'run.updated' | 'run.progress' | 'run.input.queued' | 'run.input.delivered' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'permission.grant.changed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.compaction.started' | 'context.compaction.stats' | 'context.compaction.finished' | 'context.compaction.messages' | 'context.compaction.ended' | 'context.compaction.skipped' | 'context.budget.snapshot' | 'tool.exposure.planned' | 'child_activity.finished' | 'provider.retry' | 'provider.recovery' | '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';
1768
+ 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";
1752
1769
  interface RuntimeTextDeltaEventPayload {
1753
1770
  readonly text: string;
1754
1771
  readonly meta?: KodaXActivityEventMeta;
@@ -1776,6 +1793,10 @@ type RuntimeToolProgressEventPayload = {
1776
1793
  readonly partialJson: string;
1777
1794
  readonly meta?: KodaXToolEventMeta;
1778
1795
  };
1796
+ interface RuntimeToolSandboxEventPayload {
1797
+ readonly update: KodaXToolSandboxObservationUpdate;
1798
+ readonly meta?: KodaXToolEventMeta;
1799
+ }
1779
1800
  interface RuntimeToolFinishedEventPayload {
1780
1801
  readonly result: {
1781
1802
  readonly id: string;
@@ -1785,21 +1806,21 @@ interface RuntimeToolFinishedEventPayload {
1785
1806
  readonly meta?: KodaXToolEventMeta;
1786
1807
  }
1787
1808
  type RuntimeRunProgressEventPayload = {
1788
- readonly kind: 'managed_task_status';
1809
+ readonly kind: "managed_task_status";
1789
1810
  readonly status: KodaXManagedTaskStatusEvent;
1790
1811
  } | {
1791
- readonly kind: 'stream_end' | 'complete';
1812
+ readonly kind: "stream_end" | "complete";
1792
1813
  readonly meta?: KodaXActivityEventMeta;
1793
1814
  } | {
1794
- readonly kind: 'iteration_start';
1815
+ readonly kind: "iteration_start";
1795
1816
  readonly iter: number;
1796
1817
  readonly maxIter: number;
1797
1818
  readonly meta?: KodaXActivityEventMeta;
1798
1819
  } | {
1799
- readonly kind: 'iteration_end';
1820
+ readonly kind: "iteration_end";
1800
1821
  readonly info: Readonly<Record<string, unknown>>;
1801
1822
  } | {
1802
- readonly kind: 'mid_turn_user_messages';
1823
+ readonly kind: "mid_turn_user_messages";
1803
1824
  readonly contents: readonly string[];
1804
1825
  readonly meta?: KodaXActivityEventMeta;
1805
1826
  };
@@ -1816,7 +1837,7 @@ interface RuntimeDeliveredInterruptInput {
1816
1837
  readonly input: RuntimeInput | readonly RuntimeInput[];
1817
1838
  readonly queuedAt: string;
1818
1839
  readonly deliveredAt: string;
1819
- readonly origin?: RuntimeRunStatus['origin'];
1840
+ readonly origin?: RuntimeRunStatus["origin"];
1820
1841
  }
1821
1842
  interface RuntimeRunInputDeliveredEventPayload {
1822
1843
  readonly inputs: readonly RuntimeDeliveredInterruptInput[];
@@ -1828,7 +1849,7 @@ interface RuntimeInteractionResolvedEventPayload {
1828
1849
  readonly kind?: RuntimeUserInputKind;
1829
1850
  }
1830
1851
  interface RuntimePermissionGrantChangedEventPayload {
1831
- readonly action: 'created' | 'revoked' | 'expired';
1852
+ readonly action: "created" | "revoked" | "expired";
1832
1853
  readonly grant: RuntimePermissionGrant;
1833
1854
  readonly revision: number;
1834
1855
  }
@@ -1871,44 +1892,45 @@ type RuntimeUserInputRequestedEventPayload = RuntimeUserInputRequest | {
1871
1892
  type RuntimeEventPayloadDefaults = {
1872
1893
  readonly [K in RuntimeEventType]: unknown;
1873
1894
  };
1874
- type RuntimeEventPayloadMap = Omit<RuntimeEventPayloadDefaults, 'session.created' | 'session.loaded' | 'run.queued' | 'run.started' | 'run.updated' | 'run.completed' | 'run.failed' | 'run.cancelled' | 'run.interrupted' | 'assistant.delta' | 'thinking.delta' | 'thinking.finished' | 'tool.started' | 'tool.progress' | 'tool.finished' | 'run.progress' | 'run.input.queued' | 'run.input.delivered' | 'todo.updated' | 'user_input.requested' | 'user_input.resolved' | 'permission.requested' | 'permission.resolved' | 'permission.grant.changed' | 'session.settings.updated' | 'turn.started' | 'turn.completed' | 'turn.failed' | 'workflow.started' | 'workflow.updated' | 'workflow.finished' | 'context.budget.snapshot' | 'provider.cache.diagnostics' | 'tool.exposure.planned' | 'context.compaction.messages' | 'context.compaction.finished' | 'runtime.warning'> & {
1875
- readonly 'session.created': RuntimeSession;
1876
- readonly 'session.loaded': RuntimeSessionLoadedEventPayload;
1877
- readonly 'run.queued': RuntimeRunStatus;
1878
- readonly 'run.started': RuntimeRunStatus;
1879
- readonly 'run.updated': RuntimeRunStatus;
1880
- readonly 'run.completed': RuntimeRunStatus;
1881
- readonly 'run.failed': RuntimeRunStatus;
1882
- readonly 'run.cancelled': RuntimeRunStatus;
1883
- readonly 'run.interrupted': RuntimeRunStatus;
1884
- readonly 'assistant.delta': RuntimeTextDeltaEventPayload;
1885
- readonly 'thinking.delta': RuntimeTextDeltaEventPayload;
1886
- readonly 'thinking.finished': RuntimeThinkingFinishedEventPayload;
1887
- readonly 'tool.started': RuntimeToolStartedEventPayload;
1888
- readonly 'tool.progress': RuntimeToolProgressEventPayload;
1889
- readonly 'tool.finished': RuntimeToolFinishedEventPayload;
1890
- readonly 'run.progress': RuntimeRunProgressEventPayload;
1891
- readonly 'run.input.queued': RuntimeRunInputQueuedEventPayload;
1892
- readonly 'run.input.delivered': RuntimeRunInputDeliveredEventPayload;
1893
- readonly 'todo.updated': RuntimeTodoUpdatedEventPayload;
1894
- readonly 'user_input.requested': RuntimeUserInputRequestedEventPayload;
1895
- readonly 'user_input.resolved': RuntimeInteractionResolvedEventPayload;
1896
- readonly 'permission.requested': RuntimePermissionRequest;
1897
- readonly 'permission.resolved': RuntimeInteractionResolvedEventPayload;
1898
- readonly 'permission.grant.changed': RuntimePermissionGrantChangedEventPayload;
1899
- readonly 'session.settings.updated': RuntimeSessionSettingsUpdatedEventPayload;
1900
- readonly 'turn.started': KodaXTurnStartedEvent;
1901
- readonly 'turn.completed': KodaXTurnCompletedEvent;
1902
- readonly 'turn.failed': KodaXTurnFailedEvent;
1903
- readonly 'workflow.started': WorkflowProcessEvent;
1904
- readonly 'workflow.updated': WorkflowProcessEvent;
1905
- readonly 'workflow.finished': WorkflowProcessEvent;
1906
- readonly 'context.budget.snapshot': RuntimeContextBudgetSnapshot;
1907
- readonly 'provider.cache.diagnostics': KodaXPromptCacheDiagnosticEvent;
1908
- readonly 'tool.exposure.planned': RuntimeToolExposurePlan;
1909
- readonly 'context.compaction.messages': RuntimeContextCompactionMessagesEventPayload;
1910
- readonly 'context.compaction.finished': RuntimeContextCompactionFinishedEventPayload;
1911
- readonly 'runtime.warning': RuntimeWarningEventPayload;
1895
+ 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.messages" | "context.compaction.finished" | "runtime.warning"> & {
1896
+ readonly "session.created": RuntimeSession;
1897
+ readonly "session.loaded": RuntimeSessionLoadedEventPayload;
1898
+ readonly "run.queued": RuntimeRunStatus;
1899
+ readonly "run.started": RuntimeRunStatus;
1900
+ readonly "run.updated": RuntimeRunStatus;
1901
+ readonly "run.completed": RuntimeRunStatus;
1902
+ readonly "run.failed": RuntimeRunStatus;
1903
+ readonly "run.cancelled": RuntimeRunStatus;
1904
+ readonly "run.interrupted": RuntimeRunStatus;
1905
+ readonly "assistant.delta": RuntimeTextDeltaEventPayload;
1906
+ readonly "thinking.delta": RuntimeTextDeltaEventPayload;
1907
+ readonly "thinking.finished": RuntimeThinkingFinishedEventPayload;
1908
+ readonly "tool.started": RuntimeToolStartedEventPayload;
1909
+ readonly "tool.progress": RuntimeToolProgressEventPayload;
1910
+ readonly "tool.sandbox": RuntimeToolSandboxEventPayload;
1911
+ readonly "tool.finished": RuntimeToolFinishedEventPayload;
1912
+ readonly "run.progress": RuntimeRunProgressEventPayload;
1913
+ readonly "run.input.queued": RuntimeRunInputQueuedEventPayload;
1914
+ readonly "run.input.delivered": RuntimeRunInputDeliveredEventPayload;
1915
+ readonly "todo.updated": RuntimeTodoUpdatedEventPayload;
1916
+ readonly "user_input.requested": RuntimeUserInputRequestedEventPayload;
1917
+ readonly "user_input.resolved": RuntimeInteractionResolvedEventPayload;
1918
+ readonly "permission.requested": RuntimePermissionRequest;
1919
+ readonly "permission.resolved": RuntimeInteractionResolvedEventPayload;
1920
+ readonly "permission.grant.changed": RuntimePermissionGrantChangedEventPayload;
1921
+ readonly "session.settings.updated": RuntimeSessionSettingsUpdatedEventPayload;
1922
+ readonly "turn.started": KodaXTurnStartedEvent;
1923
+ readonly "turn.completed": KodaXTurnCompletedEvent;
1924
+ readonly "turn.failed": KodaXTurnFailedEvent;
1925
+ readonly "workflow.started": WorkflowProcessEvent;
1926
+ readonly "workflow.updated": WorkflowProcessEvent;
1927
+ readonly "workflow.finished": WorkflowProcessEvent;
1928
+ readonly "context.budget.snapshot": RuntimeContextBudgetSnapshot;
1929
+ readonly "provider.cache.diagnostics": KodaXPromptCacheDiagnosticEvent;
1930
+ readonly "tool.exposure.planned": RuntimeToolExposurePlan;
1931
+ readonly "context.compaction.messages": RuntimeContextCompactionMessagesEventPayload;
1932
+ readonly "context.compaction.finished": RuntimeContextCompactionFinishedEventPayload;
1933
+ readonly "runtime.warning": RuntimeWarningEventPayload;
1912
1934
  };
1913
1935
  interface RuntimeEventEnvelope<TPayload = unknown> {
1914
1936
  readonly id: string;
@@ -1954,7 +1976,7 @@ interface RuntimeEventService {
1954
1976
  subscribe(filter: RuntimeEventFilter, listener: RuntimeEventListener): RuntimeSubscription;
1955
1977
  replay(filter?: RuntimeEventReplayFilter): Promise<readonly RuntimeEvent[]>;
1956
1978
  }
1957
- type RuntimePermissionRisk = 'low' | 'medium' | 'high';
1979
+ type RuntimePermissionRisk = "low" | "medium" | "high";
1958
1980
  interface RuntimePermissionScope {
1959
1981
  readonly toolName?: string;
1960
1982
  readonly sessionId?: string;
@@ -1964,7 +1986,7 @@ interface RuntimePermissionScope {
1964
1986
  interface RuntimePermissionGrantSuggestion {
1965
1987
  /** Opaque pending-request-local identifier; clients must return it unchanged. */
1966
1988
  readonly id: string;
1967
- readonly kind: 'session' | 'persistent';
1989
+ readonly kind: "session" | "persistent";
1968
1990
  readonly label: string;
1969
1991
  }
1970
1992
  interface RuntimePermissionRequest {
@@ -1979,6 +2001,8 @@ interface RuntimePermissionRequest {
1979
2001
  readonly inputPreview?: string;
1980
2002
  /** Effective directory used to resolve relative tool paths for this run. */
1981
2003
  readonly executionCwd?: string;
2004
+ /** Structured Auto[LLM] decision metadata; never includes prompt or response text. */
2005
+ readonly autoModeDiagnostics?: AutoModeDecisionDiagnostics;
1982
2006
  readonly grantSuggestions?: readonly RuntimePermissionGrantSuggestion[];
1983
2007
  readonly createdAt: string;
1984
2008
  readonly expiresAt?: string;
@@ -1993,6 +2017,8 @@ interface RuntimePermissionRequestInput {
1993
2017
  readonly risk?: RuntimePermissionRisk;
1994
2018
  readonly inputPreview?: string;
1995
2019
  readonly executionCwd?: string;
2020
+ /** Structured Auto[LLM] decision metadata; never includes prompt or response text. */
2021
+ readonly autoModeDiagnostics?: AutoModeDecisionDiagnostics;
1996
2022
  readonly expiresAt?: string;
1997
2023
  readonly timeoutMs?: number;
1998
2024
  /**
@@ -2002,12 +2028,12 @@ interface RuntimePermissionRequestInput {
2002
2028
  readonly toolInput?: Readonly<Record<string, unknown>>;
2003
2029
  }
2004
2030
  type RuntimePermissionDecision = {
2005
- readonly type: 'allow_once';
2031
+ readonly type: "allow_once";
2006
2032
  } | {
2007
- readonly type: 'allow_session';
2033
+ readonly type: "allow_session";
2008
2034
  readonly suggestionId: string;
2009
2035
  } | {
2010
- readonly type: 'allow_always';
2036
+ readonly type: "allow_always";
2011
2037
  readonly suggestionId: string;
2012
2038
  }
2013
2039
  /**
@@ -2015,11 +2041,12 @@ type RuntimePermissionDecision = {
2015
2041
  * its narrower concrete candidate and never persists the supplied scope.
2016
2042
  */
2017
2043
  | {
2018
- readonly type: 'allow_always';
2044
+ readonly type: "allow_always";
2019
2045
  readonly scope: RuntimePermissionScope;
2020
2046
  } | {
2021
- readonly type: 'reject';
2047
+ readonly type: "reject";
2022
2048
  readonly reason?: string;
2049
+ readonly cause?: "approval_timeout";
2023
2050
  };
2024
2051
  interface RuntimePermissionFilter {
2025
2052
  readonly sessionId?: string;
@@ -2033,7 +2060,7 @@ interface RuntimePermissionGrant {
2033
2060
  readonly id: string;
2034
2061
  readonly scope: RuntimePermissionScope;
2035
2062
  readonly createdAt: string;
2036
- readonly persistence?: 'session' | 'persistent';
2063
+ readonly persistence?: "session" | "persistent";
2037
2064
  readonly label?: string;
2038
2065
  readonly sourcePermissionId?: string;
2039
2066
  }
@@ -2044,7 +2071,7 @@ interface RuntimePermissionService {
2044
2071
  listGrants(): Promise<RuntimeVersionedValue<readonly RuntimePermissionGrant[]>>;
2045
2072
  revokeGrant(grantId: string, expectedRevision: number): Promise<boolean>;
2046
2073
  }
2047
- type RuntimeUserInputKind = 'askUser' | 'askUserMulti' | 'askUserInput';
2074
+ type RuntimeUserInputKind = "askUser" | "askUserMulti" | "askUserInput";
2048
2075
  interface RuntimeUserInputRequest {
2049
2076
  readonly id: string;
2050
2077
  readonly revision: number;
@@ -2063,7 +2090,7 @@ interface RuntimeUserInputFilter {
2063
2090
  interface RuntimeUserInputResolution {
2064
2091
  readonly requestId: string;
2065
2092
  readonly accepted: boolean;
2066
- readonly status: 'answered' | 'dismissed' | 'already_resolved';
2093
+ readonly status: "answered" | "dismissed" | "already_resolved";
2067
2094
  }
2068
2095
  interface RuntimeUserInputService {
2069
2096
  listPending(filter?: RuntimeUserInputFilter): Promise<readonly RuntimeUserInputRequest[]>;
@@ -2100,7 +2127,7 @@ interface RuntimeHostToolDescriptor {
2100
2127
  readonly name: string;
2101
2128
  readonly description: string;
2102
2129
  readonly inputSchema: Readonly<Record<string, unknown>>;
2103
- readonly sideEffect: 'none' | 'idempotent' | 'non_idempotent';
2130
+ readonly sideEffect: "none" | "idempotent" | "non_idempotent";
2104
2131
  }
2105
2132
  interface RuntimeHostToolInvocation {
2106
2133
  readonly invocationId: string;
@@ -2125,7 +2152,7 @@ interface RuntimeHostToolInvocationStatus {
2125
2152
  readonly toolName: string;
2126
2153
  readonly sessionId: string;
2127
2154
  readonly runId: string;
2128
- readonly state: 'prepared' | 'dispatched' | 'completed' | 'unknown' | 'not_dispatched';
2155
+ readonly state: "prepared" | "dispatched" | "completed" | "unknown" | "not_dispatched";
2129
2156
  readonly updatedAt: string;
2130
2157
  }
2131
2158
  interface RuntimeHostToolService {
@@ -2171,7 +2198,7 @@ interface RuntimeDaemonPreflight {
2171
2198
  readonly activeAgentTasks: readonly RuntimeActiveAgentTurn[];
2172
2199
  readonly pendingPermissions: readonly RuntimePermissionRequest[];
2173
2200
  readonly pendingUserInputs: readonly RuntimeUserInputRequest[];
2174
- readonly blockers: readonly ('connected_clients' | 'active_runs' | 'queued_runs' | 'active_workflows' | 'active_agent_turns' | 'active_agent_tasks' | 'pending_interactions')[];
2201
+ readonly blockers: readonly ("connected_clients" | "active_runs" | "queued_runs" | "active_workflows" | "active_agent_turns" | "active_agent_tasks" | "pending_interactions")[];
2175
2202
  readonly canStop: boolean;
2176
2203
  }
2177
2204
  interface RuntimeActiveAgentTurn {
@@ -2180,6 +2207,24 @@ interface RuntimeActiveAgentTurn {
2180
2207
  readonly turnId: string;
2181
2208
  readonly kind: AgentExecutionKind;
2182
2209
  }
2210
+ interface RuntimeIntegrationDiagnostic {
2211
+ readonly code: "invalid-config" | "activation-failed" | "watcher-degraded";
2212
+ readonly message: string;
2213
+ readonly time: string;
2214
+ }
2215
+ interface RuntimeIntegrationDomainStatus {
2216
+ readonly domain: "mcp" | "a2a" | "extensions";
2217
+ readonly path: string;
2218
+ readonly revision?: string;
2219
+ readonly source?: "user" | "legacy-user" | "default";
2220
+ readonly lastReloadAt?: string;
2221
+ readonly diagnostic?: RuntimeIntegrationDiagnostic;
2222
+ readonly watching: boolean;
2223
+ }
2224
+ interface RuntimeIntegrationHealth {
2225
+ readonly state: "healthy" | "degraded";
2226
+ readonly domains: readonly RuntimeIntegrationDomainStatus[];
2227
+ }
2183
2228
  interface RuntimeDaemonManagementState {
2184
2229
  readonly runtimeId: string;
2185
2230
  /** Monotonic for logical client, mutation, Runtime event, and preflight state changes. */
@@ -2187,6 +2232,8 @@ interface RuntimeDaemonManagementState {
2187
2232
  readonly ownerPolicy: RuntimeOwnerPolicyState;
2188
2233
  readonly owner: RuntimeOwnerIdentity;
2189
2234
  readonly preflight: RuntimeDaemonPreflight;
2235
+ /** Optional integrations never make the core daemon unavailable. */
2236
+ readonly integrations?: RuntimeIntegrationHealth;
2190
2237
  }
2191
2238
  interface RuntimeDaemonRollbackInput {
2192
2239
  readonly expectedRuntimeId: string;
@@ -2199,7 +2246,7 @@ interface RuntimeDaemonRollbackResult {
2199
2246
  readonly runtimeId: string;
2200
2247
  readonly revision: number;
2201
2248
  readonly ownerPolicy: RuntimeOwnerPolicyState & {
2202
- readonly mode: 'inline';
2249
+ readonly mode: "inline";
2203
2250
  };
2204
2251
  }
2205
2252
  interface RuntimeDaemonManagementService {
@@ -2211,10 +2258,10 @@ interface RuntimeStatusService {
2211
2258
  preflight(): Promise<RuntimeDaemonPreflight>;
2212
2259
  }
2213
2260
  declare function createKodaXRuntime(options: CreateKodaXRuntimeOptions & {
2214
- readonly mode: 'daemon';
2261
+ readonly mode: "daemon";
2215
2262
  }): Promise<KodaXDaemonRuntime>;
2216
2263
  declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promise<KodaXRuntime>;
2217
2264
  declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
2218
2265
 
2219
- export { KODAX_DAEMON_PROTOCOL, KODAX_DAEMON_PROTOCOL_VERSION, 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, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode };
2220
- export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContinuationStatus, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, RuntimeToolStartedEventPayload, RuntimeTranscript, RuntimeTranscriptEntryChunk, RuntimeTranscriptEntryChunkInput, RuntimeTranscriptPageInput, RuntimeTranscriptSearchHit, RuntimeTranscriptSearchInput, RuntimeTranscriptSearchResult, RuntimeTranscriptSlice, RuntimeTranscriptSliceEntry, RuntimeTypedEvent, RuntimeTypedEventListener, RuntimeUserInputFilter, RuntimeUserInputKind, RuntimeUserInputRequest, RuntimeUserInputRequestedEventPayload, RuntimeUserInputResolution, RuntimeUserInputService, RuntimeUserMarkdownAgentRef, RuntimeVersionedUpdateOptions, RuntimeVersionedValue, RuntimeVideoInput, RuntimeWarningEventPayload, RuntimeWorkerOptions, RuntimeWorkerResourceLimits, RuntimeWorkflowFilter, RuntimeWorkflowListener, RuntimeWorkflowService, RuntimeWorkflowSnapshot, RuntimeWorkflowSummary, RuntimeWorkspaceBinding };
2266
+ 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, connectKodaXRuntime, createKodaXRuntime, enableKodaXDaemonOwner, getKodaXRuntimeOwnerPolicy, getKodaXRuntimeOwnerState, listRuntimeDaemonSchemaMethods, parseRuntimeEvent, setKodaXRuntimeOwnerMode };
2267
+ export type { ConnectKodaXRuntimeOptions, CreateKodaXRuntimeOptions, KodaXDaemonRuntime, KodaXRuntime, KodaXRuntimeIsolation, KodaXRuntimeMode, RuntimeActiveAgentTurn, RuntimeActiveToolProjection, RuntimeAdminService, RuntimeAgentBindingService, RuntimeAgentOwnerSession, RuntimeAgentService, RuntimeAppendNoticeInput, RuntimeArtifact, RuntimeArtifactKind, RuntimeArtifactRefInput, RuntimeArtifactService, RuntimeBoundDefaultAgent, RuntimeBoundLocalAgent, RuntimeCapabilityRequirements, RuntimeCatalogService, RuntimeClientCapabilities, RuntimeClientInfo, RuntimeCommandInfo, RuntimeCommandResolveInput, RuntimeCompactSessionInput, RuntimeCompactSessionResult, RuntimeConfigPatch, RuntimeConfigReloadResult, RuntimeConfigService, RuntimeConnectionService, RuntimeConnectionState, RuntimeContextCompactionFinishedEventPayload, RuntimeContextCompactionMessagesEventPayload, RuntimeContinuationStatus, RuntimeCreateArtifactInput, RuntimeCreateSessionInput, RuntimeCredentialBroker, RuntimeCredentialLease, RuntimeCredentialRequest, RuntimeCredentialService, RuntimeDaemonClientTransport, RuntimeDaemonContextOptions, RuntimeDaemonEndpoint, RuntimeDaemonError, RuntimeDaemonErrorCode, RuntimeDaemonFrame, RuntimeDaemonJsonSchema, RuntimeDaemonKodaXOptions, RuntimeDaemonManagementService, RuntimeDaemonManagementState, RuntimeDaemonMethod, RuntimeDaemonMethodSchema, RuntimeDaemonNotification, RuntimeDaemonNotificationMethod, RuntimeDaemonPreflight, RuntimeDaemonProtocolSchema, RuntimeDaemonRequest, RuntimeDaemonRollbackInput, RuntimeDaemonRollbackResult, RuntimeDaemonRunService, RuntimeDaemonStartRunInput, RuntimeDaemonTransportLifecycleState, RuntimeDefaultAgentStartInput, RuntimeDeliveredInterruptInput, RuntimeDiagnosticFilter, RuntimeDiagnosticsService, RuntimeEffectiveSkillRef, RuntimeEvent, RuntimeEventEnvelope, RuntimeEventFilter, RuntimeEventListener, RuntimeEventParseResult, RuntimeEventPayloadMap, RuntimeEventReplayFilter, RuntimeEventService, RuntimeEventType, RuntimeExactCallPermissionMatcher, RuntimeExactCommandPermissionMatcher, RuntimeExactPathPermissionMatcher, RuntimeExecutionToolPolicy, RuntimeExtensionListResult, RuntimeExtensionReloadResult, RuntimeExternalAgentsOptions, RuntimeFileInput, RuntimeForkSessionInput, RuntimeGrantedScope, RuntimeHostToolDescriptor, RuntimeHostToolHandler, RuntimeHostToolInvocation, RuntimeHostToolInvocationStatus, RuntimeHostToolLease, RuntimeHostToolResult, RuntimeHostToolService, RuntimeIdentity, RuntimeImageInput, RuntimeInlineOwnerHandle, RuntimeInput, RuntimeIntegrationDiagnostic, RuntimeIntegrationDomainStatus, RuntimeIntegrationHealth, RuntimeInteractionResolvedEventPayload, RuntimeInterruptInputStatus, RuntimeKodaXOptions, RuntimeLearningService, RuntimeLocalAgentStartInput, RuntimeManagedTaskProjection, RuntimeMcpReloadResult, RuntimeMcpService, RuntimeMcpToolListFilter, RuntimeMcpValidateResult, RuntimeModelListFilter, RuntimeOperationOptions, RuntimeOperationReceipt, RuntimeOperationService, RuntimeOperationState, RuntimeOwnerIdentity, RuntimeOwnerPolicyState, RuntimeOwnerState, RuntimePendingUserInputProjection, RuntimePermissionBroker, RuntimePermissionDecision, RuntimePermissionFilter, RuntimePermissionGrant, RuntimePermissionGrantChangedEventPayload, RuntimePermissionGrantSuggestion, RuntimePermissionHostPlatform, RuntimePermissionMatcher, RuntimePermissionRequest, RuntimePermissionRequestInput, RuntimePermissionRespondOptions, RuntimePermissionRisk, RuntimePermissionScope, RuntimePermissionService, RuntimeResolvedLocalAgent, RuntimeRewindSessionInput, RuntimeRunFilter, RuntimeRunHandle, RuntimeRunInputDeliveredEventPayload, RuntimeRunInputQueuedEventPayload, RuntimeRunMode, RuntimeRunPhase, RuntimeRunProgressEventPayload, RuntimeRunRequirements, RuntimeRunResult, RuntimeRunService, RuntimeRunSessionLoadedEventPayload, RuntimeRunStatus, RuntimeSession, RuntimeSessionFilter, RuntimeSessionLiveProjection, RuntimeSessionLoadedEventPayload, RuntimeSessionObservation, RuntimeSessionObservationSnapshot, RuntimeSessionService, RuntimeSessionSettings, RuntimeSessionSettingsPatch, RuntimeSessionSettingsUpdatedEventPayload, RuntimeSessionSummary, RuntimeSetActiveEntryInput, RuntimeSkillDescribeInput, RuntimeSkillDescription, RuntimeSkillFileSummary, RuntimeSkillListFilter, RuntimeSkillSummary, RuntimeStartRunInput, RuntimeStatusService, RuntimeStatusSnapshot, RuntimeSubmitInput, RuntimeSubmitInputResult, RuntimeSubscription, RuntimeTerminalCode, RuntimeTerminalFact, RuntimeTextDeltaEventPayload, RuntimeTextInput, RuntimeThinkingFinishedEventPayload, RuntimeTodoUpdatedEventPayload, RuntimeToolFinishedEventPayload, RuntimeToolProgressEventPayload, 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 };