@kodax-ai/kodax 0.7.78 → 0.7.79

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 (124) hide show
  1. package/CHANGELOG.md +3475 -3197
  2. package/README.md +346 -275
  3. package/README_CN.md +274 -214
  4. package/config-templates/config.example.jsonc +11 -1
  5. package/config-templates/integrations/a2a.example.jsonc +23 -7
  6. package/dist/builtin/skill-creator/scripts/aggregate-benchmark.js +2 -1
  7. package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +1 -0
  8. package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +4 -3
  9. package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +1 -0
  10. package/dist/builtin/skill-creator/scripts/compare-runs.js +4 -3
  11. package/dist/builtin/skill-creator/scripts/generate-review.js +2 -1
  12. package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +1 -0
  13. package/dist/builtin/skill-creator/scripts/grade-evals.js +4 -3
  14. package/dist/builtin/skill-creator/scripts/improve-description.js +2 -1
  15. package/dist/builtin/skill-creator/scripts/init-skill.d.ts +1 -0
  16. package/dist/builtin/skill-creator/scripts/init-skill.js +4 -3
  17. package/dist/builtin/skill-creator/scripts/install-skill.d.ts +1 -0
  18. package/dist/builtin/skill-creator/scripts/install-skill.js +4 -3
  19. package/dist/builtin/skill-creator/scripts/package-skill.d.ts +1 -0
  20. package/dist/builtin/skill-creator/scripts/package-skill.js +4 -3
  21. package/dist/builtin/skill-creator/scripts/quick-validate.d.ts +1 -0
  22. package/dist/builtin/skill-creator/scripts/quick-validate.js +4 -3
  23. package/dist/builtin/skill-creator/scripts/run-eval.d.ts +1 -0
  24. package/dist/builtin/skill-creator/scripts/run-eval.js +4 -3
  25. package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
  26. package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +2 -1
  27. package/dist/builtin/skill-creator/scripts/utils.d.ts +3 -0
  28. package/dist/builtin/skill-creator/scripts/utils.js +5 -1
  29. package/dist/chunks/{agent-ASP4MS3X.js → agent-V4AC5JZD.js} +1 -1
  30. package/dist/chunks/argument-completer-ZPC2MLES.js +2 -0
  31. package/dist/chunks/{chunk-Z3KFRTSB.js → chunk-67THZRM6.js} +1 -1
  32. package/dist/chunks/chunk-6GVQDQTQ.js +292 -0
  33. package/dist/chunks/{chunk-TQDBTTIM.js → chunk-B6UY3VHV.js} +40 -40
  34. package/dist/chunks/{chunk-7OEBJGHK.js → chunk-BBOVVDQJ.js} +1 -1
  35. package/dist/chunks/chunk-CR2IF7VF.js +30 -0
  36. package/dist/chunks/{chunk-UID7BLAB.js → chunk-CXHEZY5G.js} +1 -1
  37. package/dist/chunks/chunk-EDZ4QILG.js +266 -0
  38. package/dist/chunks/chunk-GEECPO2H.js +218 -0
  39. package/dist/chunks/chunk-H5LLM7DB.js +89 -0
  40. package/dist/chunks/chunk-KLWP7POA.js +467 -0
  41. package/dist/chunks/{chunk-2CFHBKRE.js → chunk-M4N2JZTZ.js} +2 -2
  42. package/dist/chunks/{chunk-YAZQTC2L.js → chunk-OWQT3FTE.js} +1 -1
  43. package/dist/chunks/chunk-Q4M7DJOD.js +319 -0
  44. package/dist/chunks/{chunk-6FOJVETH.js → chunk-QCZLCLFL.js} +7 -7
  45. package/dist/chunks/chunk-RQPMGRTR.js +810 -0
  46. package/dist/chunks/chunk-SG6P4SZS.js +123 -0
  47. package/dist/chunks/chunk-TSTVAU5E.js +386 -0
  48. package/dist/chunks/chunk-ZCZZUE5E.js +662 -0
  49. package/dist/chunks/compaction-config-AEUGVROL.js +2 -0
  50. package/dist/chunks/{construction-bootstrap-VQLQGWPY.js → construction-bootstrap-K3ZGEN5N.js} +1 -1
  51. package/dist/chunks/dist-GFJFRPAV.js +2 -0
  52. package/dist/chunks/{dist-BFT5YIGU.js → dist-JMO47GJV.js} +1 -1
  53. package/dist/chunks/host-23K2Q6RZ.js +2 -0
  54. package/dist/chunks/run-manager-PGIR6ITA.js +2 -0
  55. package/dist/chunks/{utils-SID4HW2Q.js → utils-6LEKJPQN.js} +1 -1
  56. package/dist/index.d.ts +20 -20
  57. package/dist/index.js +2 -2
  58. package/dist/kodax_bootstrap.js +2 -1
  59. package/dist/kodax_cli.js +1816 -1458
  60. package/dist/kodax_resume.js +570 -34
  61. package/dist/provider-capabilities.json +85 -50
  62. package/dist/runtime-worker.js +1713 -1361
  63. package/dist/sandbox-workspace-session.js +285 -19
  64. package/dist/sdk-a2a.d.ts +19 -13
  65. package/dist/sdk-a2a.js +8 -8
  66. package/dist/sdk-agent.d.ts +73 -141
  67. package/dist/sdk-agent.js +1 -1
  68. package/dist/sdk-coding.d.ts +29 -60
  69. package/dist/sdk-coding.js +1 -1
  70. package/dist/sdk-experimental-memory.d.ts +3 -3
  71. package/dist/sdk-experimental-memory.js +1 -1
  72. package/dist/sdk-llm.d.ts +7 -7
  73. package/dist/sdk-llm.js +1 -1
  74. package/dist/sdk-mcp.d.ts +1 -1
  75. package/dist/sdk-mcp.js +1 -1
  76. package/dist/sdk-media.d.ts +1 -1
  77. package/dist/sdk-media.js +1 -1
  78. package/dist/sdk-repl.d.ts +25 -26
  79. package/dist/sdk-repl.js +2 -2
  80. package/dist/sdk-runtime.d.ts +227 -31
  81. package/dist/sdk-runtime.js +1 -1
  82. package/dist/sdk-sandbox.js +1 -1
  83. package/dist/sdk-session.d.ts +8 -8
  84. package/dist/sdk-session.js +1 -1
  85. package/dist/sdk-skills.js +1 -1
  86. package/dist/semantic-worker.js +283 -18
  87. package/dist/types-chunks/{base.d-4e74xDdy.d.ts → base.d-DxG0m09Z.d.ts} +1 -1
  88. package/dist/types-chunks/{bash-prefix-extractor.d-uAe2Oqda.d.ts → bash-prefix-extractor.d-CNSidpmv.d.ts} +28 -7
  89. package/dist/types-chunks/{capability-learning.d-CVsdHw4j.d.ts → capability-learning.d-iPSiAmc_.d.ts} +1 -1
  90. package/dist/types-chunks/{capsule.d-BlSv9l3V.d.ts → capsule.d-B3q98pLQ.d.ts} +9 -7
  91. package/dist/types-chunks/{types.d-BA-Jwpfs.d.ts → controller.d-RGV7Pjv9.d.ts} +328 -3
  92. package/dist/types-chunks/{guardrail.d-CXDYRgZ3.d.ts → guardrail.d-1NLSFTyN.d.ts} +126 -52
  93. package/dist/types-chunks/{history-retrieval.d-DtCy7x64.d.ts → history-retrieval.d-BAegI14A.d.ts} +16 -3
  94. package/dist/types-chunks/{oauth-login.d-Bgb4rdLN.d.ts → oauth-login.d-6i-vidxv.d.ts} +6 -2
  95. package/dist/types-chunks/{public-api.d-B3AohsxN.d.ts → public-api.d-BpJhHoa7.d.ts} +334 -25
  96. package/dist/types-chunks/{repl.d-Ie_ZXb_U.d.ts → repl.d-CZ12Ow3X.d.ts} +5 -5
  97. package/dist/types-chunks/{resolver.d-iAQ9ocLB.d.ts → resolver.d-C9IW4fmU.d.ts} +5 -2
  98. package/dist/types-chunks/{run-manager.d-D1twIhF9.d.ts → run-manager.d-CX3AUocA.d.ts} +1 -1
  99. package/dist/types-chunks/{sdk-session-DB9KksIx.d.ts → sdk-session-B3cfJKqF.d.ts} +3 -3
  100. package/dist/types-chunks/{side-query.d-DTuLPcC5.d.ts → side-query.d-CP1LiRiH.d.ts} +8 -2
  101. package/dist/types-chunks/{types-D3g6XUQr.d.ts → types-Bf3Y3mW-.d.ts} +1 -1
  102. package/dist/types-chunks/{types.d-BH0ZkTGf.d.ts → types.d-BZ9oXvTV.d.ts} +2 -2
  103. package/dist/types-chunks/{types.d-DVDTIfB_.d.ts → types.d-C0_rn--1.d.ts} +4 -4
  104. package/dist/types-chunks/{types.d-DIpZJKUl.d.ts → types.d-CgrXrFrq.d.ts} +16 -2
  105. package/dist/types-chunks/{utils.d-CVp6bFl9.d.ts → utils.d-CGpHavsU.d.ts} +14 -6
  106. package/docs/SDK_EMBEDDER_GUIDE.md +1144 -598
  107. package/package.json +4 -1
  108. package/dist/chunks/argument-completer-JYQ7FX3W.js +0 -2
  109. package/dist/chunks/chunk-35PPHOQ2.js +0 -292
  110. package/dist/chunks/chunk-43QNNDHR.js +0 -29
  111. package/dist/chunks/chunk-5GO6FH7L.js +0 -458
  112. package/dist/chunks/chunk-5NDCSFOP.js +0 -78
  113. package/dist/chunks/chunk-6XM4B6K2.js +0 -48
  114. package/dist/chunks/chunk-6YZUE6NC.js +0 -240
  115. package/dist/chunks/chunk-KQLQYHWU.js +0 -386
  116. package/dist/chunks/chunk-NXO6GWSY.js +0 -46
  117. package/dist/chunks/chunk-T2XZTLYE.js +0 -316
  118. package/dist/chunks/chunk-VAT2QYXM.js +0 -765
  119. package/dist/chunks/chunk-YVRYHC4C.js +0 -655
  120. package/dist/chunks/compaction-config-BQSSIWK5.js +0 -2
  121. package/dist/chunks/dist-PCFE24YP.js +0 -2
  122. package/dist/chunks/host-UTFXCYYM.js +0 -2
  123. package/dist/chunks/run-manager-PJU3WIFJ.js +0 -2
  124. package/dist/types-chunks/guardrail.d-BRE_ErEj.d.ts +0 -156
@@ -1,23 +1,22 @@
1
- import { F as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-DIpZJKUl.js';
2
- export { k as KodaXMessage } from './types-chunks/types.d-DIpZJKUl.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';
1
+ import { G as KodaXReasoningMode, d as KodaXCustomProviderConfig } from './types-chunks/types.d-CgrXrFrq.js';
2
+ export { k as KodaXMessage } from './types-chunks/types.d-CgrXrFrq.js';
3
+ import { I as AgentDispatchContext, cT as LearningQuery, cS as LearningPage, cv as LearnedCapabilityRecord, cY as LearningSurfaceSnapshot, cO as LearningEvent, cX as LearningSubscribeOptions, W as AgentExecutorFactory, J as AgentDispatchPolicy, F as AgentCredentialBroker, q as AgentArtifactPolicy, bK as KodaXImageInputArtifact, bN as KodaXInputArtifactSource, ck as KodaXVideoInputArtifact, fa as WorkflowProcessSnapshot, f4 as WorkflowProcessEvent, S as AgentExecutionKind, ar as AgentRegistrationService, ba as DispatchableAgentQuery, b8 as DispatchableAgentListing, aj as AgentPreflightInput, ak as AgentPreflightResult, aG as AgentTreeSnapshot, H as AgentDetail, at as AgentSpawnInput, aJ as AgentTurnRef, G as AgentDataClassification, a5 as AgentFollowupResult, ai as AgentOutput, P as AgentEvent } from './types-chunks/controller.d-RGV7Pjv9.js';
4
4
  import { i as SkillMetadata } from './types-chunks/types.d-BbtGlKZu.js';
5
5
  import { a as McpServerConfig } from './types-chunks/config.d-CJy1WENT.js';
6
6
  import { t as McpServerStatus, u as McpServerToolList } from './types-chunks/manager.d-B67TmPO1.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';
7
+ import { K as KodaXSessionHistoryHit } from './types-chunks/history-retrieval.d-BAegI14A.js';
8
+ import { c as ManagedWorkflowSnapshot } from './types-chunks/run-manager.d-CX3AUocA.js';
9
+ import { a1 as KodaXOptions, al as KodaXShellExecutionContract, aR as KodaXToolSandboxObservationUpdate, aP as KodaXToolEventMeta, W as KodaXManagedTaskStatusEvent, Q as KodaXEvents, ad as KodaXResult, bl as RuntimeContextBudgetSnapshot, bs as RuntimeToolExposurePlan, a5 as KodaXPromptCacheDiagnosticEvent, N as KodaXContextOptions, K as KodaXActivityEventMeta, aX as KodaXTurnStartedEvent, aU as KodaXTurnCompletedEvent, aW as KodaXTurnFailedEvent, L as KodaXContextCompactionFinishedEvent, M as KodaXContextIdentity } from './types-chunks/bash-prefix-extractor.d-CNSidpmv.js';
10
+ import { L as LoadedExtensionDiagnostic, u as ExtensionRuntimeDiagnostics } from './types-chunks/types.d-C0_rn--1.js';
11
+ import { h as AutoModeDecisionDiagnostics, s as AutoModeStats } from './types-chunks/guardrail.d-1NLSFTyN.js';
12
+ import { M as saveConfig, c as CommandInfo } from './types-chunks/utils.d-CGpHavsU.js';
13
+ import { m as FullTranscriptSessionData, ah as SessionTranscriptEntry, a3 as SessionConversationHistoryData, a7 as SessionConversationHistoryStatus, a5 as SessionConversationHistoryIssue, a4 as SessionConversationHistoryEntry, c as CompactSessionResult } from './types-chunks/public-api.d-BpJhHoa7.js';
14
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-D3g6XUQr.js';
18
- import './types-chunks/base.d-4e74xDdy.js';
19
- import './types-chunks/guardrail.d-BRE_ErEj.js';
20
- import './types-chunks/side-query.d-DTuLPcC5.js';
17
+ import './types-chunks/types-Bf3Y3mW-.js';
18
+ import './types-chunks/base.d-DxG0m09Z.js';
19
+ import './types-chunks/side-query.d-CP1LiRiH.js';
21
20
  import 'readline';
22
21
  import 'child_process';
23
22
 
@@ -179,16 +178,16 @@ interface RuntimeLearningService {
179
178
 
180
179
  declare const KODAX_DAEMON_PROTOCOL = "kodax-runtime-daemon";
181
180
  declare const KODAX_DAEMON_PROTOCOL_VERSION = 1;
182
- type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'daemon.rollbackToInline' | 'operation.get' | 'session.create' | 'session.load' | 'session.list' | 'session.transcript' | 'session.transcript.page' | 'session.transcript.entryChunk' | 'session.transcript.search' | 'session.observe' | 'session.fork' | 'session.notice.append' | 'session.rewind' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.delete' | 'session.settings.get' | 'session.settings.getVersioned' | 'session.autoMode.getStats' | 'session.settings.update' | 'session.settings.updateVersioned' | 'run.start' | 'run.input.submit' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'event.subscribe' | 'event.unsubscribe' | 'event.replay' | 'permission.list' | 'permission.listPending' | 'permission.request' | 'permission.respond' | 'permission.grants.list' | 'permission.grants.revoke' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | 'config.read' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait' | 'context.budget.get' | 'tool.exposure.preview' | 'provider.cache.diagnostics.get';
181
+ type RuntimeDaemonMethod = 'initialize' | 'runtime.initialize' | 'ping' | 'runtime.identity' | 'runtime.status' | 'runtime.shutdown' | 'runtime.capabilities' | 'daemon.status' | 'daemon.stop' | 'daemon.logs' | 'daemon.preflight' | 'daemon.management.get' | 'daemon.rollbackToInline' | 'operation.get' | 'session.create' | 'session.load' | 'session.list' | 'session.status' | 'session.transcript' | 'session.transcript.page' | 'session.transcript.entryChunk' | 'session.transcript.search' | 'session.conversation' | 'session.conversation.page' | 'session.conversation.entryChunk' | 'session.observe' | 'session.diagnostics' | 'session.fork' | 'session.notice.append' | 'session.rewind' | 'session.active_entry.set' | 'session.activeEntry.set' | 'session.compact' | 'session.archive' | 'session.unarchive' | 'session.delete' | 'session.settings.get' | 'session.settings.getVersioned' | 'session.autoMode.getStats' | 'session.settings.update' | 'session.settings.updateVersioned' | 'run.start' | 'run.input.submit' | 'run.get' | 'run.list' | 'run.await' | 'run.abort' | 'run.model.set' | 'run.provider.set' | 'run.reasoning.set' | 'run.setModel' | 'run.setProvider' | 'run.setReasoning' | 'request.cancel' | 'request.ack' | 'event.subscribe' | 'event.unsubscribe' | 'event.replay' | 'permission.list' | 'permission.listPending' | 'permission.request' | 'permission.respond' | 'permission.grants.list' | 'permission.grants.revoke' | 'user_input.listPending' | 'user_input.respond' | 'user_input.dismiss' | 'credential.register' | 'credential.get' | 'credential.revoke' | 'credential.supply' | 'host_tool.register' | 'host_tool.get' | 'host_tool.invocation.get' | 'host_tool.revoke' | 'host_tool.complete' | 'workflow.list' | 'workflow.get' | 'workflow.subscribe' | 'workflow.unsubscribe' | 'workflow.pause' | 'workflow.resume' | 'workflow.stop' | 'learning.list' | 'learning.get' | 'learning.snapshot' | 'learning.events' | 'learning.acknowledge' | 'learning.snooze' | 'learning.reject' | 'learning.disable' | 'learning.rollback' | 'learning.promote' | 'learning.review' | 'learning.trust' | 'config.read' | 'config.patch' | 'config.reload' | 'model.list' | 'provider.list' | 'provider.custom.list' | 'provider.custom.upsert' | 'provider.custom.remove' | 'mcp.server.list' | 'mcp.server.get' | 'mcp.server.validate' | 'mcp.server.upsert' | 'mcp.server.delete' | 'mcp.server.remove' | 'mcp.server.reload' | 'mcp.tool.list' | 'extension.list' | 'extension.reload' | 'command.list' | 'command.resolve' | 'skill.list' | 'skill.describe' | 'skill.read' | 'artifact.create' | 'artifact.get' | 'artifact.delete' | 'agentRegistrations.list' | 'agentRegistrations.upsert' | 'agentRegistrations.setEnabled' | 'agentRegistrations.remove' | 'agents.listDispatchable' | 'agents.describe' | 'agents.preflight' | 'agents.tree' | 'agents.detail' | 'agents.spawn' | 'agents.send' | 'agents.followup' | 'agents.interrupt' | 'agents.output' | 'agents.events' | 'agents.wait' | 'context.budget.get' | 'tool.exposure.preview' | 'provider.cache.diagnostics.get';
183
182
  type RuntimeDaemonRetiredMethod = 'agentTasks.list' | 'agentTasks.start' | 'agentTasks.get' | 'agentTasks.events' | 'agentTasks.wait' | 'agentTasks.sendInput' | 'agentTasks.cancel' | 'agentTasks.reconcile';
184
183
  type RuntimeDaemonWireMethod = RuntimeDaemonMethod | RuntimeDaemonRetiredMethod;
185
- type RuntimeDaemonNotificationMethod = 'event' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
184
+ type RuntimeDaemonNotificationMethod = 'event' | 'observation.invalidated' | 'credential.request' | 'host_tool.invoke' | 'runtime.warning';
186
185
  interface RuntimeDaemonError {
187
186
  readonly code: RuntimeDaemonErrorCode;
188
187
  readonly message: string;
189
188
  readonly data?: unknown;
190
189
  }
191
- type RuntimeDaemonErrorCode = 'invalid_frame' | 'invalid_request' | 'invalid_params' | 'not_initialized' | 'method_not_found' | 'unauthorized' | 'permission_denied' | 'conflict' | 'not_found' | 'session_not_admitted' | 'cancelled' | 'overloaded' | 'client_upgrade_required' | 'operation_required' | 'operation_epoch_mismatch' | 'operation_id_reuse' | 'operation_interrupted' | 'operation_unknown' | 'control_history_untrusted' | 'credential_unavailable' | 'host_tool_unavailable' | 'host_tool_unknown' | 'internal_error';
190
+ type RuntimeDaemonErrorCode = 'invalid_frame' | 'invalid_request' | 'invalid_params' | 'not_initialized' | 'method_not_found' | 'unauthorized' | 'permission_denied' | 'conflict' | 'not_found' | 'session_not_admitted' | 'cancelled' | 'overloaded' | 'client_upgrade_required' | 'operation_required' | 'operation_epoch_mismatch' | 'operation_id_reuse' | 'operation_interrupted' | 'operation_unknown' | 'control_history_untrusted' | 'resync_required' | 'read_timeout' | 'read_cancelled' | 'data_changed' | 'observation_invalidated' | 'runtime_changed' | 'data_corrupt' | 'version_incompatible' | 'credential_unavailable' | 'host_tool_unavailable' | 'host_tool_unknown' | 'internal_error';
192
191
  interface RuntimeDaemonFrameBase {
193
192
  readonly protocol: typeof KODAX_DAEMON_PROTOCOL;
194
193
  readonly version: typeof KODAX_DAEMON_PROTOCOL_VERSION;
@@ -223,11 +222,15 @@ type RuntimeDaemonFrame = RuntimeDaemonRequest<RuntimeDaemonWireMethod> | Runtim
223
222
  declare const RUNTIME_DAEMON_METHODS: readonly RuntimeDaemonMethod[];
224
223
 
225
224
  interface RuntimeDaemonClientTransport {
226
- request(method: RuntimeDaemonMethod, params?: unknown, operation?: RuntimeDaemonOperationEnvelope): Promise<unknown>;
225
+ request(method: RuntimeDaemonMethod, params?: unknown, operation?: RuntimeDaemonOperationEnvelope, control?: RuntimeDaemonRequestControl): Promise<unknown>;
227
226
  subscribe(listener: (notification: RuntimeDaemonNotification) => void): RuntimeSubscription;
228
227
  subscribeLifecycle?(listener: (state: RuntimeDaemonTransportLifecycleState) => void): RuntimeSubscription;
229
228
  close?(): Promise<void> | void;
230
229
  }
230
+ interface RuntimeDaemonRequestControl {
231
+ readonly signal?: AbortSignal;
232
+ readonly onLateResult?: (value: unknown) => void;
233
+ }
231
234
  interface RuntimeDaemonTransportLifecycleState {
232
235
  readonly state: 'connected' | 'disconnected';
233
236
  readonly connectionId: string;
@@ -255,6 +258,11 @@ interface RuntimeWorkerResourceLimits {
255
258
  interface RuntimeWorkerOptions {
256
259
  readonly resourceLimits?: RuntimeWorkerResourceLimits;
257
260
  readonly shutdownTimeoutMs?: number;
261
+ /**
262
+ * Load `<homeDir>/.kodax/integrations/a2a.json` inside the Worker owner.
263
+ * Defaults to false so SDK hosts explicitly opt into ambient user integration.
264
+ */
265
+ readonly configuredA2A?: boolean;
258
266
  }
259
267
 
260
268
  interface RuntimeDaemonEndpoint {
@@ -355,6 +363,10 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
355
363
  params: RuntimeDaemonJsonSchema;
356
364
  result: RuntimeDaemonJsonSchema;
357
365
  };
366
+ 'session.status': {
367
+ params: RuntimeDaemonJsonSchema;
368
+ result: RuntimeDaemonJsonSchema;
369
+ };
358
370
  'session.transcript': {
359
371
  params: RuntimeDaemonJsonSchema;
360
372
  result: RuntimeDaemonJsonSchema;
@@ -375,6 +387,22 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
375
387
  params: RuntimeDaemonJsonSchema;
376
388
  result: RuntimeDaemonJsonSchema;
377
389
  };
390
+ 'session.conversation': {
391
+ params: RuntimeDaemonJsonSchema;
392
+ result: RuntimeDaemonJsonSchema;
393
+ };
394
+ 'session.conversation.page': {
395
+ params: RuntimeDaemonJsonSchema;
396
+ result: RuntimeDaemonJsonSchema;
397
+ };
398
+ 'session.conversation.entryChunk': {
399
+ params: RuntimeDaemonJsonSchema;
400
+ result: RuntimeDaemonJsonSchema;
401
+ };
402
+ 'session.diagnostics': {
403
+ params: RuntimeDaemonJsonSchema;
404
+ result: RuntimeDaemonJsonSchema;
405
+ };
378
406
  'session.fork': {
379
407
  params: RuntimeDaemonJsonSchema;
380
408
  result: RuntimeDaemonJsonSchema;
@@ -479,6 +507,14 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
479
507
  params: RuntimeDaemonJsonSchema;
480
508
  result: RuntimeDaemonJsonSchema;
481
509
  };
510
+ 'request.cancel': {
511
+ params: RuntimeDaemonJsonSchema;
512
+ result: RuntimeDaemonJsonSchema;
513
+ };
514
+ 'request.ack': {
515
+ params: RuntimeDaemonJsonSchema;
516
+ result: RuntimeDaemonJsonSchema;
517
+ };
482
518
  'event.subscribe': {
483
519
  params: RuntimeDaemonJsonSchema;
484
520
  result: RuntimeDaemonJsonSchema;
@@ -842,6 +878,7 @@ declare const RUNTIME_DAEMON_METHOD_SCHEMAS: {
842
878
  };
843
879
  declare const RUNTIME_DAEMON_NOTIFICATION_SCHEMAS: {
844
880
  event: RuntimeDaemonJsonSchema;
881
+ 'observation.invalidated': RuntimeDaemonJsonSchema;
845
882
  'credential.request': RuntimeDaemonJsonSchema;
846
883
  'host_tool.invoke': RuntimeDaemonJsonSchema;
847
884
  'runtime.warning': RuntimeDaemonJsonSchema;
@@ -1032,6 +1069,7 @@ interface ConnectKodaXRuntimeOptions {
1032
1069
  /** SDK facts that embedders can inspect before auto-starting a daemon. */
1033
1070
  declare const KODAX_RUNTIME_SDK_CAPABILITIES: Readonly<{
1034
1071
  readonly daemonOrphanExit: 1;
1072
+ readonly runtimeEventCoalescing: 1;
1035
1073
  }>;
1036
1074
  interface RuntimeCapabilityRequirements {
1037
1075
  /** Reject inline and shared daemon hosts; only a Worker-hosted Runtime satisfies this. */
@@ -1063,6 +1101,8 @@ interface RuntimeCapabilityRequirements {
1063
1101
  readonly transcriptPaging?: 1;
1064
1102
  /** Require deterministic exact-history search over merged persisted lineage. */
1065
1103
  readonly transcriptSearch?: 1;
1104
+ /** Require SDK-resolved ordinary history with explicit legacy ambiguity. */
1105
+ readonly conversationHistory?: 1;
1066
1106
  readonly connectionLifecycle?: 1;
1067
1107
  readonly typedRuntimeEvents?: 1;
1068
1108
  readonly daemonSafeRunInput?: 1;
@@ -1071,6 +1111,8 @@ interface RuntimeCapabilityRequirements {
1071
1111
  readonly daemonManagement?: 1;
1072
1112
  /** Require an auto-started daemon whose current host has orphan idle-exit enabled. */
1073
1113
  readonly daemonOrphanExit?: 1;
1114
+ /** Require source-level bounded coalescing before sequence allocation and persistence. */
1115
+ readonly runtimeEventCoalescing?: 1;
1074
1116
  /** Optional integration failures are isolated, observable, and hot-recoverable. */
1075
1117
  readonly integrationConfigResilience?: 1;
1076
1118
  readonly actorControlPlane?: 1;
@@ -1175,7 +1217,7 @@ interface RuntimeAgentService {
1175
1217
  interrupt(sessionId: string, actorPath: string, reason?: string): Promise<void>;
1176
1218
  output(sessionId: string, actorPath: string, turnId?: string): Promise<AgentOutput>;
1177
1219
  events(sessionId: string, afterSequence?: number): Promise<readonly AgentEvent[]>;
1178
- wait(sessionId: string, afterSequence?: number, timeoutMs?: number): Promise<AgentEvent | undefined>;
1220
+ wait(sessionId: string, afterSequence?: number, timeoutMs?: number, options?: Readonly<Pick<RuntimeReadOptions, "signal">>): Promise<AgentEvent | undefined>;
1179
1221
  }
1180
1222
  type RuntimeConfigPatch = Partial<Pick<ReplRuntimeConfigPatch, RuntimeConfigPatchKey>>;
1181
1223
  interface RuntimeConfigReloadResult {
@@ -1341,7 +1383,7 @@ interface RuntimeRunSessionLoadedEventPayload {
1341
1383
  readonly turnId?: string;
1342
1384
  readonly iteration?: number;
1343
1385
  }
1344
- /** `session.loaded` is emitted both for an explicit SDK load and a run provider session bind. */
1386
+ /** Durable compatibility event emitted when a run binds its provider session. */
1345
1387
  type RuntimeSessionLoadedEventPayload = RuntimeSession | RuntimeRunSessionLoadedEventPayload;
1346
1388
  interface RuntimeSessionSummary extends RuntimeSession {
1347
1389
  /** Opaque continuation token accepted by RuntimeSessionFilter.cursor. */
@@ -1352,6 +1394,31 @@ interface RuntimeSessionSummary extends RuntimeSession {
1352
1394
  readonly archived?: boolean;
1353
1395
  }
1354
1396
  type RuntimeTranscript = FullTranscriptSessionData;
1397
+ interface RuntimeConversationHistory extends SessionConversationHistoryData {
1398
+ /** Content-derived identity shared by direct and paged conversation reads. */
1399
+ readonly revision: string;
1400
+ }
1401
+ interface RuntimeConversationHistorySliceEntry {
1402
+ readonly index: number;
1403
+ readonly boundaryId?: string;
1404
+ readonly byteLength: number;
1405
+ readonly oversized: boolean;
1406
+ readonly entry?: SessionConversationHistoryEntry;
1407
+ }
1408
+ interface RuntimeConversationHistorySlice {
1409
+ readonly revision: string;
1410
+ readonly sourceRevision: string;
1411
+ readonly status: SessionConversationHistoryStatus;
1412
+ readonly issues: readonly SessionConversationHistoryIssue[];
1413
+ readonly entries: readonly RuntimeConversationHistorySliceEntry[];
1414
+ readonly hasMore: boolean;
1415
+ readonly nextCursor?: string;
1416
+ }
1417
+ interface RuntimeConversationHistoryPageInput {
1418
+ readonly sessionId: string;
1419
+ readonly cursor?: string;
1420
+ readonly limit?: number;
1421
+ }
1355
1422
  interface RuntimeTranscriptSliceEntry {
1356
1423
  readonly index: number;
1357
1424
  readonly entryId?: string;
@@ -1370,6 +1437,53 @@ interface RuntimeTranscriptPageInput {
1370
1437
  readonly cursor?: string;
1371
1438
  readonly limit?: number;
1372
1439
  }
1440
+ interface RuntimeReadOptions {
1441
+ readonly timeoutMs?: number;
1442
+ readonly signal?: AbortSignal;
1443
+ }
1444
+ interface RuntimeSessionDiagnosticsInput extends RuntimeReadOptions {
1445
+ readonly sessionId: string;
1446
+ /** Select one Run control record; otherwise the authoritative Session Run is used. */
1447
+ readonly runId?: string;
1448
+ }
1449
+ type RuntimeSessionDiagnosticErrorCode = "run_control_unknown" | "run_status_unknown" | "owner_liveness_unconfirmed" | "owner_recovery_required" | "stop_outcome_unconfirmed" | "actor_settlement_retrying" | "actor_settlement_not_persisted" | "run_failed" | "terminal_time_unknown";
1450
+ interface RuntimeSessionDiagnosticError {
1451
+ readonly code: RuntimeSessionDiagnosticErrorCode;
1452
+ readonly message: string;
1453
+ }
1454
+ interface RuntimeSessionDiagnosticRun {
1455
+ readonly controlRecord: "present" | "unknown";
1456
+ readonly runId?: string;
1457
+ readonly turnId?: string;
1458
+ readonly state: "queued" | "active" | "terminal" | "unknown";
1459
+ readonly phase?: RuntimeRunPhase;
1460
+ readonly stage: RuntimeRunStage | "unknown";
1461
+ readonly stageChangedAt?: string;
1462
+ readonly terminalAt?: string;
1463
+ readonly terminalTimeKnown: boolean;
1464
+ readonly terminal?: RuntimeTerminalFact;
1465
+ readonly activeSubtaskCount: number | null;
1466
+ readonly activeSubtaskCountSource: "run_status" | "unknown";
1467
+ readonly stop?: RuntimeRunStopStatus;
1468
+ readonly interruptInputs?: readonly RuntimeInterruptInputStatus[];
1469
+ readonly errors: readonly RuntimeSessionDiagnosticError[];
1470
+ }
1471
+ interface RuntimeSessionDiagnostics {
1472
+ readonly schemaVersion: 1;
1473
+ readonly captureStartedAt: string;
1474
+ readonly capturedAt: string;
1475
+ readonly sdkVersion: string;
1476
+ readonly runtimeVersion: string;
1477
+ readonly daemonVersion: string | null;
1478
+ readonly runtimeId: string;
1479
+ readonly runtimeMode: KodaXRuntimeMode;
1480
+ readonly sessionId: string;
1481
+ readonly observation: {
1482
+ readonly cursor: number;
1483
+ readonly transcriptRevision: string;
1484
+ };
1485
+ readonly run: RuntimeSessionDiagnosticRun;
1486
+ }
1373
1487
  interface RuntimeTranscriptEntryChunkInput {
1374
1488
  readonly sessionId: string;
1375
1489
  readonly revision: string;
@@ -1385,6 +1499,21 @@ interface RuntimeTranscriptEntryChunk {
1385
1499
  readonly hasMore: boolean;
1386
1500
  readonly nextCursor?: string;
1387
1501
  }
1502
+ interface RuntimeConversationHistoryEntryChunk {
1503
+ readonly revision: string;
1504
+ readonly entryIndex: number;
1505
+ readonly boundaryId?: string;
1506
+ readonly encoding: "base64-json";
1507
+ readonly data: string;
1508
+ readonly hasMore: boolean;
1509
+ readonly nextCursor?: string;
1510
+ }
1511
+ interface RuntimeConversationHistoryEntryChunkInput {
1512
+ readonly sessionId: string;
1513
+ readonly revision: string;
1514
+ readonly entryIndex: number;
1515
+ readonly cursor?: string;
1516
+ }
1388
1517
  interface RuntimeTranscriptSearchInput {
1389
1518
  readonly sessionId: string;
1390
1519
  readonly query: string;
@@ -1415,6 +1544,11 @@ interface RuntimeForkSessionInput {
1415
1544
  readonly selector?: string;
1416
1545
  readonly newSessionId?: string;
1417
1546
  readonly title?: string;
1547
+ readonly historyBoundary?: RuntimeConversationHistoryBoundary;
1548
+ }
1549
+ interface RuntimeConversationHistoryBoundary {
1550
+ readonly entryId: string;
1551
+ readonly sourceRevision: string;
1418
1552
  }
1419
1553
  interface RuntimeSessionSettings {
1420
1554
  readonly provider?: string;
@@ -1460,6 +1594,7 @@ interface RuntimeAppendNoticeInput {
1460
1594
  interface RuntimeRewindSessionInput {
1461
1595
  readonly sessionId: string;
1462
1596
  readonly selector?: string;
1597
+ readonly historyBoundary?: RuntimeConversationHistoryBoundary;
1463
1598
  }
1464
1599
  interface RuntimeSetActiveEntryInput {
1465
1600
  readonly sessionId: string;
@@ -1527,16 +1662,32 @@ interface RuntimeSessionObservationSnapshot {
1527
1662
  }
1528
1663
  interface RuntimeSessionObservation extends RuntimeSubscription {
1529
1664
  readonly snapshot: RuntimeSessionObservationSnapshot;
1665
+ readonly invalidated: Promise<RuntimeObservationInvalidation>;
1666
+ }
1667
+ interface RuntimeObservationInvalidation {
1668
+ readonly code: "observation_invalidated";
1669
+ readonly reason: "event_overflow" | "event_order" | "delivery_failed" | "runtime_changed" | "transport_disconnected";
1670
+ readonly runtimeId: string;
1671
+ readonly message: string;
1530
1672
  }
1531
1673
  interface RuntimeSessionService {
1532
1674
  create(input?: RuntimeCreateSessionInput): Promise<RuntimeSession>;
1533
- load(sessionId: string): Promise<RuntimeSession>;
1675
+ load(sessionId: string, options?: RuntimeReadOptions): Promise<RuntimeSession>;
1534
1676
  list(filter?: RuntimeSessionFilter): Promise<readonly RuntimeSessionSummary[]>;
1535
- transcript(sessionId: string): Promise<RuntimeTranscript | null>;
1536
- transcriptPage(input: RuntimeTranscriptPageInput): Promise<RuntimeTranscriptSlice | null>;
1537
- transcriptEntryChunk(input: RuntimeTranscriptEntryChunkInput): Promise<RuntimeTranscriptEntryChunk | null>;
1538
- transcriptSearch(input: RuntimeTranscriptSearchInput): Promise<RuntimeTranscriptSearchResult | null>;
1539
- observe(sessionId: string, listener: RuntimeEventListener): Promise<RuntimeSessionObservation>;
1677
+ status(sessionId: string): Promise<RuntimeSessionStatus>;
1678
+ transcript(sessionId: string, options?: RuntimeReadOptions): Promise<RuntimeTranscript | null>;
1679
+ transcriptPage(input: RuntimeTranscriptPageInput, options?: RuntimeReadOptions): Promise<RuntimeTranscriptSlice | null>;
1680
+ transcriptEntryChunk(input: RuntimeTranscriptEntryChunkInput, options?: RuntimeReadOptions): Promise<RuntimeTranscriptEntryChunk | null>;
1681
+ transcriptSearch(input: RuntimeTranscriptSearchInput, options?: RuntimeReadOptions): Promise<RuntimeTranscriptSearchResult | null>;
1682
+ conversation(sessionId: string, options?: RuntimeReadOptions): Promise<RuntimeConversationHistory | null>;
1683
+ conversationPage(input: RuntimeConversationHistoryPageInput, options?: RuntimeReadOptions): Promise<RuntimeConversationHistorySlice | null>;
1684
+ conversationEntryChunk(input: RuntimeConversationHistoryEntryChunkInput, options?: RuntimeReadOptions): Promise<RuntimeConversationHistoryEntryChunk | null>;
1685
+ observe(sessionId: string, listener: RuntimeEventListener, options?: RuntimeReadOptions): Promise<RuntimeSessionObservation>;
1686
+ /**
1687
+ * Captures a bounded, read-only diagnostic boundary without recovering,
1688
+ * taking over, or otherwise mutating Session or Run state.
1689
+ */
1690
+ diagnostics(input: RuntimeSessionDiagnosticsInput): Promise<RuntimeSessionDiagnostics>;
1540
1691
  fork(input: RuntimeForkSessionInput): Promise<RuntimeSession | null>;
1541
1692
  getSettings(sessionId: string): Promise<RuntimeSessionSettings>;
1542
1693
  getSettingsVersioned(sessionId: string): Promise<RuntimeVersionedValue<RuntimeSessionSettings>>;
@@ -1552,7 +1703,15 @@ interface RuntimeSessionService {
1552
1703
  unarchive(sessionId: string): Promise<void>;
1553
1704
  delete(sessionId: string): Promise<void>;
1554
1705
  }
1555
- type RuntimeRunPhase = "queued" | "running" | "waiting_permission" | "waiting_user_input" | "completed" | "failed" | "cancelled" | "interrupted";
1706
+ type RuntimeRunPhase = "queued" | "running" | "waiting_agent" | "recovering" | "waiting_permission" | "waiting_user_input" | "unknown" | "completed" | "failed" | "cancelled" | "interrupted";
1707
+ type RuntimeRunStage = "queued" | "executing" | "waiting_agent" | "recovering" | "finalizing" | "terminal" | "unknown" | "starting" | "routing" | "preflight" | "round" | "worker" | "upgrade" | "verifying";
1708
+ interface RuntimeSessionStatus {
1709
+ readonly sessionId: string;
1710
+ readonly runtimeId: string;
1711
+ readonly phase: "idle" | RuntimeRunPhase;
1712
+ readonly observedAt: string;
1713
+ readonly runId?: string;
1714
+ }
1556
1715
  type RuntimeRunMode = "coding" | "managed_task";
1557
1716
  interface RuntimeTextInput {
1558
1717
  readonly type: "text";
@@ -1658,7 +1817,7 @@ type RuntimeKodaXOptions = Omit<KodaXOptions, "provider" | "session" | "events">
1658
1817
  readonly events?: KodaXEvents;
1659
1818
  };
1660
1819
  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"> & {
1820
+ type RuntimeDaemonKodaXOptions = Pick<RuntimeKodaXOptions, "provider" | "model" | "modelOverride" | "effort" | "thinking" | "reasoningMode" | "agentMode" | "maxIter" | "workflowHostPolicy" | "workflowRunsBaseDir" | "modelTiers" | "maxOutputTokens" | "disablePromptCache" | "lsp" | "workflow" | "selfManual" | "compaction" | "timeouts" | "sandbox"> & {
1662
1821
  readonly context?: RuntimeDaemonContextOptions;
1663
1822
  };
1664
1823
  type RuntimeDaemonStartRunInput = Omit<RuntimeStartRunInput, "options" | "agentContext" | "permissionBroker"> & {
@@ -1676,6 +1835,11 @@ interface RuntimeRunStatus {
1676
1835
  readonly sessionId: string;
1677
1836
  readonly turnId?: string;
1678
1837
  readonly phase: RuntimeRunPhase;
1838
+ /** Fine-grained executor stage within the coarse lifecycle phase. */
1839
+ readonly stage?: RuntimeRunStage;
1840
+ readonly stageChangedAt?: string;
1841
+ /** Present only when the managed executor reported an authoritative count. */
1842
+ readonly activeSubtaskCount?: number;
1679
1843
  readonly startedAt: string;
1680
1844
  /** Durable acceptance timestamp; equals startedAt for protocol v1. */
1681
1845
  readonly acceptedAt?: string;
@@ -1695,11 +1859,19 @@ interface RuntimeRunStatus {
1695
1859
  readonly model?: string;
1696
1860
  readonly reasoning?: KodaXReasoningMode;
1697
1861
  readonly error?: string;
1862
+ readonly lifecycleError?: RuntimeRunLifecycleError;
1698
1863
  readonly terminal?: RuntimeTerminalFact;
1699
1864
  readonly continuation?: RuntimeContinuationStatus;
1700
1865
  readonly interruptInputs?: readonly RuntimeInterruptInputStatus[];
1866
+ /** Durable Stop request/result; distinct from chat interruptInputs. */
1867
+ readonly stop?: RuntimeRunStopStatus;
1701
1868
  readonly requirements?: RuntimeRunRequirements;
1702
1869
  }
1870
+ interface RuntimeRunLifecycleError {
1871
+ readonly code: "actor_settlement_retrying" | "actor_settlement_not_persisted";
1872
+ readonly message: string;
1873
+ readonly retryable: boolean;
1874
+ }
1703
1875
  interface RuntimeRunRequirements {
1704
1876
  readonly credential?: {
1705
1877
  readonly leaseId: string;
@@ -1728,6 +1900,24 @@ interface RuntimeInterruptInputStatus {
1728
1900
  readonly deliveredAt?: string;
1729
1901
  readonly origin?: RuntimeRunStatus["origin"];
1730
1902
  }
1903
+ interface RuntimeRunStopStatus {
1904
+ readonly requestedAt: string;
1905
+ readonly state: "unknown" | "confirmed";
1906
+ readonly outcome: "unknown" | "cancelled" | "interrupted" | "completed" | "failed";
1907
+ readonly reason: string;
1908
+ readonly resolvedAt?: string;
1909
+ }
1910
+ interface RuntimeRunStopReceipt {
1911
+ readonly runId: string;
1912
+ readonly sessionId: string;
1913
+ /** True only when this invocation durably created the Stop request. */
1914
+ readonly accepted: boolean;
1915
+ readonly state: RuntimeRunStopStatus["state"];
1916
+ readonly outcome: RuntimeRunStopStatus["outcome"];
1917
+ readonly phase: RuntimeRunPhase;
1918
+ /** Durable Run control-record revision observed by this receipt. */
1919
+ readonly revision: number;
1920
+ }
1731
1921
  type RuntimeTerminalCode = "completed" | "run_failed" | "blocked" | "cancelled" | "interrupted" | "runtime_restarted" | "daemon_crashed" | "credential_unavailable" | "host_not_dispatched" | "host_outcome_unknown" | "control_history_untrusted";
1732
1922
  interface RuntimeTerminalFact {
1733
1923
  readonly revision: number;
@@ -1743,6 +1933,7 @@ interface RuntimeRunResult {
1743
1933
  readonly result?: KodaXResult;
1744
1934
  readonly error?: Error;
1745
1935
  readonly terminal?: RuntimeTerminalFact;
1936
+ readonly stop?: RuntimeRunStopStatus;
1746
1937
  }
1747
1938
  interface RuntimeRunHandle {
1748
1939
  readonly runId: string;
@@ -1760,7 +1951,7 @@ interface RuntimeRunService {
1760
1951
  await(runId: string): Promise<RuntimeRunResult>;
1761
1952
  get(runId: string): Promise<RuntimeRunStatus>;
1762
1953
  list(filter?: RuntimeRunFilter): Promise<readonly RuntimeRunStatus[]>;
1763
- abort(runId: string): Promise<void>;
1954
+ abort(runId: string): Promise<RuntimeRunStopReceipt>;
1764
1955
  setModel(runId: string, model: string | undefined): Promise<void>;
1765
1956
  setProvider(runId: string, provider: string): Promise<void>;
1766
1957
  setReasoning(runId: string, reasoning: KodaXReasoningMode | undefined): Promise<void>;
@@ -2257,11 +2448,16 @@ interface RuntimeStatusService {
2257
2448
  snapshot(): Promise<RuntimeStatusSnapshot>;
2258
2449
  preflight(): Promise<RuntimeDaemonPreflight>;
2259
2450
  }
2451
+ /**
2452
+ * Capture one read-only, boundary-labelled diagnostic record without taking
2453
+ * ownership of, resuming, or otherwise mutating the Session.
2454
+ */
2455
+ declare function captureRuntimeSessionDiagnostics(runtime: KodaXRuntime, input: RuntimeSessionDiagnosticsInput): Promise<RuntimeSessionDiagnostics>;
2260
2456
  declare function createKodaXRuntime(options: CreateKodaXRuntimeOptions & {
2261
2457
  readonly mode: "daemon";
2262
2458
  }): Promise<KodaXDaemonRuntime>;
2263
2459
  declare function createKodaXRuntime(options?: CreateKodaXRuntimeOptions): Promise<KodaXRuntime>;
2264
2460
  declare function connectKodaXRuntime(options?: ConnectKodaXRuntimeOptions): Promise<KodaXDaemonRuntime>;
2265
2461
 
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 };
2462
+ 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 };
2463
+ 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, 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, 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, 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 };
@@ -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}from"./chunks/chunk-43QNNDHR.js";import"./chunks/chunk-35PPHOQ2.js";import"./chunks/chunk-T2XZTLYE.js";import"./chunks/chunk-YVRYHC4C.js";import"./chunks/chunk-6YZUE6NC.js";import"./chunks/chunk-7OEBJGHK.js";import"./chunks/chunk-5GO6FH7L.js";import"./chunks/chunk-TQDBTTIM.js";import"./chunks/chunk-UID7BLAB.js";import"./chunks/chunk-Z3KFRTSB.js";import"./chunks/chunk-6FOJVETH.js";import"./chunks/chunk-KQLQYHWU.js";import"./chunks/chunk-YAZQTC2L.js";import"./chunks/chunk-5NDCSFOP.js";import"./chunks/chunk-VAT2QYXM.js";import"./chunks/chunk-6XM4B6K2.js";import"./chunks/chunk-2CFHBKRE.js";import"./chunks/chunk-NXO6GWSY.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,s 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,m as RuntimeAutoModeConfigurationError,l as RuntimeDaemonCapabilityUpgradeError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,n as acquireKodaXInlineOwner,u as connectKodaXRuntime,t as createKodaXRuntime,q as enableKodaXDaemonOwner,o as getKodaXRuntimeOwnerPolicy,p as getKodaXRuntimeOwnerState,k as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,r as setKodaXRuntimeOwnerMode};
2
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v}from"./chunks/chunk-CR2IF7VF.js";import"./chunks/chunk-6GVQDQTQ.js";import"./chunks/chunk-Q4M7DJOD.js";import"./chunks/chunk-ZCZZUE5E.js";import"./chunks/chunk-EDZ4QILG.js";import"./chunks/chunk-BBOVVDQJ.js";import"./chunks/chunk-KLWP7POA.js";import"./chunks/chunk-B6UY3VHV.js";import"./chunks/chunk-CXHEZY5G.js";import"./chunks/chunk-67THZRM6.js";import"./chunks/chunk-QCZLCLFL.js";import"./chunks/chunk-TSTVAU5E.js";import"./chunks/chunk-OWQT3FTE.js";import"./chunks/chunk-SG6P4SZS.js";import"./chunks/chunk-RQPMGRTR.js";import"./chunks/chunk-GEECPO2H.js";import"./chunks/chunk-M4N2JZTZ.js";import"./chunks/chunk-H5LLM7DB.js";import"./chunks/chunk-ONUPGMER.js";export{b as KODAX_DAEMON_PROTOCOL,c as KODAX_DAEMON_PROTOCOL_VERSION,s 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,m as RuntimeAutoModeConfigurationError,l as RuntimeDaemonCapabilityUpgradeError,f as RuntimePermissionScopeUpgradeRequiredError,e as RuntimeTransportBoundaryError,n as acquireKodaXInlineOwner,t as captureRuntimeSessionDiagnostics,v as connectKodaXRuntime,u as createKodaXRuntime,q as enableKodaXDaemonOwner,o as getKodaXRuntimeOwnerPolicy,p as getKodaXRuntimeOwnerState,k as listRuntimeDaemonSchemaMethods,a as parseRuntimeEvent,r as setKodaXRuntimeOwnerMode};
@@ -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-35PPHOQ2.js";import"./chunks/chunk-VAT2QYXM.js";import"./chunks/chunk-6XM4B6K2.js";import"./chunks/chunk-2CFHBKRE.js";import"./chunks/chunk-NXO6GWSY.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};
2
+ import"./chunks/chunk-5BNQXXGY.js";import{a,b,c,d,e,f,g}from"./chunks/chunk-6GVQDQTQ.js";import"./chunks/chunk-RQPMGRTR.js";import"./chunks/chunk-GEECPO2H.js";import"./chunks/chunk-M4N2JZTZ.js";import"./chunks/chunk-H5LLM7DB.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};
@@ -1,11 +1,11 @@
1
- export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, g as CreatableHistoryItem, i as DeleteSessionResult, k as FullTranscriptSessionData, J as ListSessionsOptions, U as RunningSessionInfo, W as SessionManager, Y as SessionSummary, Z as SessionTranscriptEntry, _ as SessionTranscriptEntryType, af as WatchSessionsCallback, ag as appendClientNotice, ah as archiveSession, ai as compactSession, al as createSessionManager, am as deleteSession, an as forkSession, ap as listRunningSessions, aq as listSessions, ar as loadFullTranscript, as as loadSession, av as rewindSession, aw as setActiveEntry, ax as unarchiveSession, ay as watchSessions } from './types-chunks/public-api.d-B3AohsxN.js';
2
- export { S as KodaXTaskResultMetadata, T as KodaXTaskResultSource } from './types-chunks/types.d-DIpZJKUl.js';
3
- export { c3 as KodaXSessionUiHistoryItem, c4 as KodaXSessionUiHistoryItemType, c5 as KodaXSessionUiTextHistoryItem, c6 as KodaXSessionUiTextHistoryItemType, c7 as KodaXSessionUiToolCall, c8 as KodaXSessionUiToolCallStatus, c9 as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/types.d-BA-Jwpfs.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-DB9KksIx.js';
5
- import './types-chunks/bash-prefix-extractor.d-uAe2Oqda.js';
6
- import './types-chunks/types.d-BbtGlKZu.js';
1
+ export { b as AppendClientNoticeOptions, C as CompactSessionOptions, c as CompactSessionResult, h as CreatableHistoryItem, j as DeleteSessionResult, l as ForkSessionOptions, m as FullTranscriptSessionData, N as ListSessionsOptions, U as PreparedSessionAppendBaseline, V as PreparedSessionTailDelta, Y as RewindSessionOptions, Z as RunningSessionInfo, _ as SessionBundleExportDiagnostic, $ as SessionBundleExportFile, a0 as SessionBundleExportOptions, a1 as SessionBundleExportResult, a2 as SessionBundleExportStatus, a3 as SessionConversationHistoryData, a4 as SessionConversationHistoryEntry, a5 as SessionConversationHistoryIssue, a6 as SessionConversationHistoryIssueCode, a7 as SessionConversationHistoryStatus, a8 as SessionConversationMutationBoundary, aa as SessionManager, ac as SessionReadError, ad as SessionReadErrorCode, ae as SessionReadOptions, ag as SessionSummary, ah as SessionTranscriptEntry, ai as SessionTranscriptEntryType, az as WatchSessionsCallback, aA as appendClientNotice, aB as archiveSession, aC as compactSession, aI as createSessionManager, aJ as deleteSession, aL as exportSessionBundle, aN as forkSession, aP as listRunningSessions, aQ as listSessions, aR as loadFullTranscript, aS as loadSession, aV as readConversationHistory, aW as readFullTranscript, aY as rewindSession, aZ as setActiveEntry, a_ as unarchiveSession, a$ as watchSessions } from './types-chunks/public-api.d-BpJhHoa7.js';
2
+ export { T as KodaXTaskResultMetadata, U as KodaXTaskResultSource } from './types-chunks/types.d-CgrXrFrq.js';
3
+ export { cc as KodaXSessionUiHistoryItem, cd as KodaXSessionUiHistoryItemType, ce as KodaXSessionUiTextHistoryItem, cf as KodaXSessionUiTextHistoryItemType, cg as KodaXSessionUiToolCall, ch as KodaXSessionUiToolCallStatus, ci as KodaXSessionUiToolGroupHistoryItem } from './types-chunks/controller.d-RGV7Pjv9.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-B3cfJKqF.js';
5
+ import './types-chunks/bash-prefix-extractor.d-CNSidpmv.js';
7
6
  import 'vscode-languageserver-protocol';
7
+ import './types-chunks/types.d-BbtGlKZu.js';
8
8
  import './types-chunks/cost-tracker.d-BeaenODW.js';
9
- import './types-chunks/types-D3g6XUQr.js';
9
+ import './types-chunks/types-Bf3Y3mW-.js';
10
10
  import './types-chunks/capability.d-K664nHOS.js';
11
- import './types-chunks/base.d-4e74xDdy.js';
11
+ import './types-chunks/base.d-DxG0m09Z.js';
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import{Nb as t,Ob as i,Pb as n,Qb as a,Rb as r,Sb as S,Tb as l,Ub as p,Vb as d,Wb as c,Xb as y,Yb as m,Zb as u,_b as T,bb as o}from"./chunks/chunk-T2XZTLYE.js";import{ba as s,ca as e}from"./chunks/chunk-YVRYHC4C.js";import"./chunks/chunk-6YZUE6NC.js";import"./chunks/chunk-7OEBJGHK.js";import"./chunks/chunk-5GO6FH7L.js";import"./chunks/chunk-TQDBTTIM.js";import"./chunks/chunk-UID7BLAB.js";import"./chunks/chunk-Z3KFRTSB.js";import"./chunks/chunk-6FOJVETH.js";import"./chunks/chunk-KQLQYHWU.js";import"./chunks/chunk-YAZQTC2L.js";import"./chunks/chunk-5NDCSFOP.js";import"./chunks/chunk-VAT2QYXM.js";import"./chunks/chunk-6XM4B6K2.js";import"./chunks/chunk-2CFHBKRE.js";import"./chunks/chunk-NXO6GWSY.js";import"./chunks/chunk-ONUPGMER.js";export{r as appendClientNotice,y as archiveSession,t as compactSession,T as createSessionManager,c as deleteSession,s as extractHistorySeedsFromMessage,e as extractHistorySeedsFromMessages,S as forkSession,d as listRunningSessions,i as listSessions,a as loadFullTranscript,n as loadSession,o as restoreHistoryItemsFromSession,l as rewindSession,p as setActiveEntry,m as unarchiveSession,u as watchSessions};
2
+ import{$b as l,Qb as i,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}from"./chunks/chunk-Q4M7DJOD.js";import{ia as s,ja as e}from"./chunks/chunk-ZCZZUE5E.js";import"./chunks/chunk-EDZ4QILG.js";import"./chunks/chunk-BBOVVDQJ.js";import"./chunks/chunk-KLWP7POA.js";import"./chunks/chunk-B6UY3VHV.js";import"./chunks/chunk-CXHEZY5G.js";import"./chunks/chunk-67THZRM6.js";import"./chunks/chunk-QCZLCLFL.js";import"./chunks/chunk-TSTVAU5E.js";import"./chunks/chunk-OWQT3FTE.js";import"./chunks/chunk-SG6P4SZS.js";import"./chunks/chunk-RQPMGRTR.js";import"./chunks/chunk-GEECPO2H.js";import"./chunks/chunk-M4N2JZTZ.js";import"./chunks/chunk-H5LLM7DB.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};
@@ -1,2 +1,2 @@
1
1
  // @kodax-ai/kodax — bundled distribution. See docs/ADR.md ADR-022 + ADR-024.
2
- import"./chunks/chunk-VAT2QYXM.js";import{$a as h,D as l,E as e,F as i,G as t,H as o,I as a,M as k,N as r,O as S,P as s,Ta as n,Ua as g,Va as u,Wa as c,Xa as d,Ya as x,Za as P,_a as R,ab as p,bb as v,cb as y,db as M,eb as f,fb as m,gb as E}from"./chunks/chunk-6XM4B6K2.js";import"./chunks/chunk-2CFHBKRE.js";import"./chunks/chunk-NXO6GWSY.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};
2
+ import"./chunks/chunk-RQPMGRTR.js";import{$a as h,D as l,E as e,F as i,G as t,H as o,I as a,M as k,N as r,O as S,P as s,Ta as n,Ua as g,Va as u,Wa as c,Xa as d,Ya as x,Za as P,_a as R,ab as p,bb as v,cb as y,db as M,eb as f,fb as m,gb as E}from"./chunks/chunk-GEECPO2H.js";import"./chunks/chunk-M4N2JZTZ.js";import"./chunks/chunk-H5LLM7DB.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};