@kodax-ai/kodax 0.7.97-alpha.9 → 0.7.97-beta.2

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 (234) hide show
  1. package/CHANGELOG.md +393 -0
  2. package/README.md +170 -29
  3. package/README_CN.md +116 -17
  4. package/config-templates/config.example.jsonc +2 -3
  5. package/dist/artifacts/skills/artifact-review/SKILL.md +44 -7
  6. package/dist/builtin/code-review/SKILL.md +5 -17
  7. package/dist/builtin/git-workflow/SKILL.md +9 -8
  8. package/dist/builtin/skill-creator/SKILL.md +38 -108
  9. package/dist/builtin/skill-creator/references/evaluation.md +50 -0
  10. package/dist/builtin/skill-creator/scripts/analyze-benchmark.d.ts +2 -0
  11. package/dist/builtin/skill-creator/scripts/analyze-benchmark.js +6 -3
  12. package/dist/builtin/skill-creator/scripts/compare-runs.d.ts +2 -0
  13. package/dist/builtin/skill-creator/scripts/compare-runs.js +6 -3
  14. package/dist/builtin/skill-creator/scripts/grade-evals.d.ts +2 -0
  15. package/dist/builtin/skill-creator/scripts/grade-evals.js +6 -3
  16. package/dist/builtin/skill-creator/scripts/run-eval.js +3 -3
  17. package/dist/builtin/skill-creator/scripts/run-loop.js +2 -1
  18. package/dist/builtin/skill-creator/scripts/run-trigger-eval.d.ts +2 -0
  19. package/dist/builtin/skill-creator/scripts/run-trigger-eval.js +3 -1
  20. package/dist/builtin/skill-creator/scripts/utils.d.ts +1 -1
  21. package/dist/builtin/skill-creator/scripts/utils.js +8 -0
  22. package/dist/builtin/tdd/SKILL.md +24 -40
  23. package/dist/builtin/visual-review/SKILL.md +7 -3
  24. package/dist/chunks/agent-DS7M57WD.js +2 -0
  25. package/dist/chunks/agent-adapter-TLWGGK3V.js +2 -0
  26. package/dist/chunks/argument-completer-OGCXKTRQ.js +2 -0
  27. package/dist/chunks/bedrock-native-Z5VNWF5U.js +4 -0
  28. package/dist/chunks/cell-LV7MNPNQ.js +2 -0
  29. package/dist/chunks/chunk-2HH5AS7E.js +1157 -0
  30. package/dist/chunks/chunk-3CP7AUWY.js +2 -0
  31. package/dist/chunks/chunk-45ZP2YHG.js +2 -0
  32. package/dist/chunks/chunk-4Y6U7AH4.js +9 -0
  33. package/dist/chunks/chunk-52EN2777.js +2 -0
  34. package/dist/chunks/{chunk-HXCY52Z2.js → chunk-53CJDQS2.js} +1 -1
  35. package/dist/chunks/{chunk-JNB2FL6P.js → chunk-5MUVRFMU.js} +1 -1
  36. package/dist/chunks/chunk-65652LR4.js +2 -0
  37. package/dist/chunks/chunk-6TITQQAI.js +351 -0
  38. package/dist/chunks/chunk-AGUM5SWX.js +2 -0
  39. package/dist/chunks/chunk-BBZWF2EA.js +2 -0
  40. package/dist/chunks/chunk-C6JGLEYD.js +2 -0
  41. package/dist/chunks/chunk-D36OIMV7.js +142 -0
  42. package/dist/chunks/chunk-D425EZGC.js +2 -0
  43. package/dist/chunks/chunk-D5OW7UD5.js +2 -0
  44. package/dist/chunks/chunk-DCE7XQUG.js +2 -0
  45. package/dist/chunks/chunk-DV5YPYLW.js +10 -0
  46. package/dist/chunks/chunk-EISRVOBJ.js +4 -0
  47. package/dist/chunks/chunk-EPK6EWRI.js +12 -0
  48. package/dist/chunks/chunk-F6GJXQNA.js +29 -0
  49. package/dist/chunks/chunk-GJXOTOZB.js +465 -0
  50. package/dist/chunks/chunk-GZUWQZJD.js +2 -0
  51. package/dist/chunks/chunk-I325ER7D.js +2 -0
  52. package/dist/chunks/chunk-ISLK6R2P.js +2 -0
  53. package/dist/chunks/chunk-J2L2NK6E.js +366 -0
  54. package/dist/chunks/chunk-JAF2YLZO.js +14 -0
  55. package/dist/chunks/chunk-KDLOPBFZ.js +2 -0
  56. package/dist/chunks/chunk-KDSO7V4O.js +5 -0
  57. package/dist/chunks/chunk-KE2NBMAP.js +20 -0
  58. package/dist/chunks/chunk-MCDZNQWD.js +634 -0
  59. package/dist/chunks/chunk-NSR4RW2F.js +3 -0
  60. package/dist/chunks/chunk-OGTRDK4Q.js +359 -0
  61. package/dist/chunks/chunk-P55RJIOG.js +18 -0
  62. package/dist/chunks/chunk-P7OJRV5Z.js +2 -0
  63. package/dist/chunks/chunk-QP47JIWP.js +3 -0
  64. package/dist/chunks/chunk-QSZCR5GC.js +190 -0
  65. package/dist/chunks/chunk-R2HTPDI7.js +2 -0
  66. package/dist/chunks/chunk-R42S4BLA.js +2 -0
  67. package/dist/chunks/chunk-RYBUYHDL.js +5 -0
  68. package/dist/chunks/chunk-SDPZFH6M.js +4 -0
  69. package/dist/chunks/chunk-SK3RRGHJ.js +142 -0
  70. package/dist/chunks/chunk-TQ475LOI.js +2 -0
  71. package/dist/chunks/chunk-UF3GZ5PO.js +2 -0
  72. package/dist/chunks/chunk-UL6YIT4M.js +2 -0
  73. package/dist/chunks/chunk-V2XJSFFE.js +19 -0
  74. package/dist/chunks/chunk-V4WSBIXB.js +2 -0
  75. package/dist/chunks/chunk-V5RCDBKU.js +2 -0
  76. package/dist/chunks/{chunk-FX4R5PB3.js → chunk-W2CWO4PQ.js} +1 -1
  77. package/dist/chunks/chunk-W33QJA3M.js +2 -0
  78. package/dist/chunks/chunk-WMMESRP3.js +9 -0
  79. package/dist/chunks/chunk-WWPVEK6B.js +127 -0
  80. package/dist/chunks/chunk-X5M7TLJV.js +2 -0
  81. package/dist/chunks/chunk-XDMNJW6J.js +42 -0
  82. package/dist/chunks/{chunk-L22BDZGE.js → chunk-XZSFUGPN.js} +1 -1
  83. package/dist/chunks/client-LTIFNED5.js +2 -0
  84. package/dist/chunks/compaction-config-ECMOFP5H.js +2 -0
  85. package/dist/chunks/{construction-bootstrap-XBHM6NON.js → construction-bootstrap-OAZKGI5Y.js} +1 -1
  86. package/dist/chunks/devtools-MVOFT6N7.js +2 -0
  87. package/dist/chunks/devtools-TXYDDL2A.js +2 -0
  88. package/dist/chunks/dist-5J53DGAO.js +2 -0
  89. package/dist/chunks/errors-ER7ZRPWC.js +2 -0
  90. package/dist/chunks/google-native-WLL27OV7.js +2 -0
  91. package/dist/chunks/host-65E5NM5P.js +2 -0
  92. package/dist/chunks/mistral-native-JXPIDDYZ.js +5 -0
  93. package/dist/chunks/model-DZF6URW3.js +2 -0
  94. package/dist/chunks/permission-YVVMLQ5I.js +2 -0
  95. package/dist/chunks/pi-messages-5LLOZH57.js +16 -0
  96. package/dist/chunks/readline-helpers-UZXWBRXQ.js +2 -0
  97. package/dist/chunks/responses-websocket-Y4N5GXD3.js +2 -0
  98. package/dist/chunks/run-manager-ZFACIZM2.js +2 -0
  99. package/dist/chunks/running-session-Q5Y6A2QV.js +2 -0
  100. package/dist/chunks/skills-TJP6BLZJ.js +2 -0
  101. package/dist/chunks/tool-dispatch-MLM3QTSU.js +2 -0
  102. package/dist/chunks/utils-2QNMYRGA.js +2 -0
  103. package/dist/generated-config-templates.json +6 -0
  104. package/dist/index.d.ts +34 -32
  105. package/dist/index.js +6 -6
  106. package/dist/kodax_bootstrap.js +4 -2
  107. package/dist/kodax_cli.js +1755 -2979
  108. package/dist/kodax_doctor.js +3 -0
  109. package/dist/kodax_resume.js +30 -30
  110. package/dist/manual-topics.json +2211 -0
  111. package/dist/native/darwin-arm64/kodax-text-transaction.node +0 -0
  112. package/dist/native/darwin-arm64/manifest.json +1 -1
  113. package/dist/native/win32-x64/kodax-windows-sandbox.exe +0 -0
  114. package/dist/native/win32-x64/kodax-windows-text-transaction.node +0 -0
  115. package/dist/native/win32-x64/manifest.json +2 -2
  116. package/dist/one-shot-task.js +2 -0
  117. package/dist/provider-auth-cli.js +16 -0
  118. package/dist/provider-capabilities.json +560 -40
  119. package/dist/runtime-daemon-schema.json +1 -0
  120. package/dist/sandbox-network-broker.js +260 -795
  121. package/dist/script-cell.js +1 -0
  122. package/dist/script-worker.cjs +2189 -0
  123. package/dist/sdk-a2a.d.ts +23 -22
  124. package/dist/sdk-a2a.js +6 -8
  125. package/dist/sdk-agent.d.ts +125 -98
  126. package/dist/sdk-agent.js +1 -1
  127. package/dist/sdk-client.d.ts +16 -10
  128. package/dist/sdk-client.js +1 -1
  129. package/dist/sdk-coding.d.ts +109 -80
  130. package/dist/sdk-coding.js +1 -1
  131. package/dist/sdk-experimental-memory.d.ts +3 -3
  132. package/dist/sdk-experimental-memory.js +1 -1
  133. package/dist/sdk-llm.d.ts +265 -14
  134. package/dist/sdk-llm.js +1 -1
  135. package/dist/sdk-mcp.d.ts +3 -3
  136. package/dist/sdk-mcp.js +1 -1
  137. package/dist/sdk-media.d.ts +41 -166
  138. package/dist/sdk-media.js +1 -1
  139. package/dist/sdk-repl.d.ts +81 -51
  140. package/dist/sdk-repl.js +2 -2
  141. package/dist/sdk-runtime.d.ts +216 -2989
  142. package/dist/sdk-runtime.js +1 -1
  143. package/dist/sdk-sandbox.js +1 -1
  144. package/dist/sdk-session.d.ts +15 -14
  145. package/dist/sdk-session.js +1 -1
  146. package/dist/sdk-skills.d.ts +2 -2
  147. package/dist/sdk-skills.js +1 -1
  148. package/dist/semantic-worker.js +121 -75
  149. package/dist/static-text.json +371 -0
  150. package/dist/storage-repair-cli.js +3 -0
  151. package/dist/types-chunks/auth-file.d-ovsHEqD4.d.ts +178 -0
  152. package/dist/types-chunks/{bash-prefix-extractor.d-DFH463j2.d.ts → bash-prefix-extractor.d-CJliu5-D.d.ts} +326 -168
  153. package/dist/types-chunks/{capability-learning.d-B4pxKwP4.d.ts → capability-learning.d-BXDEOON2.d.ts} +4 -4
  154. package/dist/types-chunks/{capability.d-DOF3r0fJ.d.ts → capability.d-DapzKxy3.d.ts} +1 -1
  155. package/dist/types-chunks/{capsule.d-CwpmHGFB.d.ts → capsule.d-EMwSALqK.d.ts} +5 -5
  156. package/dist/types-chunks/{client-contract-CRm9ZpL2.d.ts → client-contract-B7q69yMA.d.ts} +265 -67
  157. package/dist/types-chunks/{controller.d-B4GyqWri.d.ts → controller.d-C0SAuNKu.d.ts} +1 -1
  158. package/dist/types-chunks/{controller.d-P3H97ddz.d.ts → controller.d-D-hPLKaA.d.ts} +71 -11
  159. package/dist/types-chunks/{cost-tracker.d-BeaenODW.d.ts → cost-tracker.d-D1CTx-IO.d.ts} +37 -7
  160. package/dist/types-chunks/{base.d-ZBOdjDUT.d.ts → errors.d-D73qdYbS.d.ts} +91 -74
  161. package/dist/types-chunks/{history-retrieval.d-BzKWDjzG.d.ts → history-retrieval.d-BwEUR9cb.d.ts} +2 -2
  162. package/dist/types-chunks/{manager.d-C8OlTe2J.d.ts → manager.d-BMH8Q6TV.d.ts} +1 -1
  163. package/dist/types-chunks/{manifest.d-COreAnXG.d.ts → manifest.d-YE3-AIeO.d.ts} +1 -1
  164. package/dist/types-chunks/{provider-credential-context.d-BH2OaB1b.d.ts → provider-credential-context.d-Dw-sWcnu.d.ts} +11 -2
  165. package/dist/types-chunks/{provider-request-observation.d-C_bEqr4m.d.ts → provider-request-observation.d-CNe9vse3.d.ts} +4 -2
  166. package/dist/types-chunks/{public-api.d-BLmqDi73.d.ts → public-api.d-BhDU643p.d.ts} +13 -10
  167. package/dist/types-chunks/queue-BxQhqhFM.d.ts +166 -0
  168. package/dist/types-chunks/{resolver.d-DLY01RHx.d.ts → resolver.d-DrkpD8wY.d.ts} +142 -103
  169. package/dist/types-chunks/{review-inbox.d-BTLDdpG2.d.ts → review-inbox.d-Bgt46S7L.d.ts} +16 -3
  170. package/dist/types-chunks/{review-packet.d-Crra1Q7t.d.ts → review-packet.d-ChOfJaNI.d.ts} +7 -7
  171. package/dist/types-chunks/{run-manager.d-DmS1edk4.d.ts → run-manager.d-ChzguipG.d.ts} +48 -12
  172. package/dist/types-chunks/{runtime-client-info-BBBxdU8V.d.ts → runtime-client-info-P_mRDG7j.d.ts} +93 -7
  173. package/dist/types-chunks/runtime-event-BW5Pla7a.d.ts +48 -0
  174. package/dist/types-chunks/sdk-runtime-cDe7qmN3.d.ts +2244 -0
  175. package/dist/types-chunks/{sdk-session-DipY_CCd.d.ts → sdk-session-D3pcSbnA.d.ts} +13 -4
  176. package/dist/types-chunks/{sdk-skills-DokfOoJF.d.ts → sdk-skills-C-UA1A6I.d.ts} +3 -1
  177. package/dist/types-chunks/{side-query.d-DTrhVd_r.d.ts → side-query.d-UFKdWSw7.d.ts} +4 -4
  178. package/dist/types-chunks/{types.d-Jxj49rqO.d.ts → skill-invocation-error.d-gsNNDnnt.d.ts} +24 -14
  179. package/dist/types-chunks/task-results.d-XMdWq0eA.d.ts +15 -0
  180. package/dist/types-chunks/{trusted-repl-entry-B1cb7lAn.d.ts → trusted-repl-entry-Bbkd2HlO.d.ts} +10 -10
  181. package/dist/types-chunks/{types.d-BjOq57-z.d.ts → types.d-Bi8iUd6x.d.ts} +248 -4
  182. package/dist/types-chunks/{types.d-NyCB6ztO.d.ts → types.d-BlXTogOo.d.ts} +24 -13
  183. package/dist/types-chunks/types.d-BvEGNdN-.d.ts +131 -0
  184. package/dist/types-chunks/{types.d-Cb8RdrjU.d.ts → types.d-D8qQjMeo.d.ts} +5 -1
  185. package/dist/types-chunks/{utils.d-Bt6USYa5.d.ts → utils.d-CxHyBvO6.d.ts} +11 -7
  186. package/dist/windows-native-scripts.json +5 -0
  187. package/docs/ARTIFACT_SDK.md +8 -0
  188. package/docs/CLIENT_CONTRACT.md +195 -9
  189. package/docs/SDK_MIGRATION.md +887 -2
  190. package/docs/SPACE_SDK_SEAMS.md +255 -2
  191. package/package.json +33 -6
  192. package/public_docs/README.md +27 -2
  193. package/public_docs/configuration/config-files.md +6 -0
  194. package/public_docs/configuration/custom-providers.md +62 -0
  195. package/public_docs/configuration/providers.md +238 -3
  196. package/public_docs/configuration/sandbox.md +30 -0
  197. package/public_docs/getting-started/quickstart.md +10 -1
  198. package/public_docs/sdk/embedder-guide.md +476 -206
  199. package/dist/chunks/agent-C7MMIRIH.js +0 -2
  200. package/dist/chunks/argument-completer-WIQAV5GP.js +0 -2
  201. package/dist/chunks/chunk-2AM3FRQ7.js +0 -137
  202. package/dist/chunks/chunk-2TBKGO2Q.js +0 -497
  203. package/dist/chunks/chunk-35P7QL2Q.js +0 -2
  204. package/dist/chunks/chunk-5DQTOU2E.js +0 -69
  205. package/dist/chunks/chunk-7NH5BGE4.js +0 -350
  206. package/dist/chunks/chunk-AWYO4MH3.js +0 -635
  207. package/dist/chunks/chunk-CIPS75XZ.js +0 -260
  208. package/dist/chunks/chunk-CRQWSDHV.js +0 -429
  209. package/dist/chunks/chunk-HD5BDOPC.js +0 -2
  210. package/dist/chunks/chunk-JXZMES45.js +0 -12
  211. package/dist/chunks/chunk-KJSZTP5N.js +0 -2
  212. package/dist/chunks/chunk-KYHMB6XR.js +0 -431
  213. package/dist/chunks/chunk-ONUPGMER.js +0 -2
  214. package/dist/chunks/chunk-P42PHZWC.js +0 -351
  215. package/dist/chunks/chunk-SHG3EIH5.js +0 -19
  216. package/dist/chunks/chunk-UH6VOCVP.js +0 -2
  217. package/dist/chunks/chunk-V26LAWJY.js +0 -2
  218. package/dist/chunks/chunk-WOHHMGEF.js +0 -394
  219. package/dist/chunks/chunk-WONYJBAA.js +0 -2
  220. package/dist/chunks/chunk-XJWNIFC2.js +0 -298
  221. package/dist/chunks/chunk-XMWTEVFZ.js +0 -1481
  222. package/dist/chunks/chunk-YJTIPSNW.js +0 -22
  223. package/dist/chunks/chunk-YVBBU6K5.js +0 -5
  224. package/dist/chunks/client-XFASU74S.js +0 -2
  225. package/dist/chunks/compaction-config-JZNGDKWW.js +0 -2
  226. package/dist/chunks/devtools-CD6KSIHE.js +0 -2
  227. package/dist/chunks/devtools-XR5F2C6T.js +0 -2
  228. package/dist/chunks/dist-M4HLQAX7.js +0 -2
  229. package/dist/chunks/dist-ZLR4OTDD.js +0 -2
  230. package/dist/chunks/host-EHVJWNGS.js +0 -2
  231. package/dist/chunks/readline-helpers-KIDMSK76.js +0 -2
  232. package/dist/chunks/run-manager-HNGIYMG7.js +0 -2
  233. package/dist/chunks/tool-dispatch-ON33NJR5.js +0 -2
  234. package/dist/chunks/utils-RHR6YHB2.js +0 -2
@@ -1,8 +1,9 @@
1
- import { aj as ClientSessionSettings } from './client-contract-CRm9ZpL2.js';
2
- import { a as BashPrefixExtractor, x as KodaXAgentMode } from './bash-prefix-extractor.d-DFH463j2.js';
3
- import { G as KodaXReasoningMode, k as KodaXMessage, U as KodaXTaskResultMetadata } from './types.d-BjOq57-z.js';
4
- import { aP as LearningSurfaceSnapshot$1, aN as LearningQuery, aM as LearningPage, ax as LearnedCapabilityRecord, aI as LearningEvent, aO as LearningSubscribeOptions, a4 as CompactionReport, a2 as CompactionConfig } from './types.d-NyCB6ztO.js';
5
- import { as as KodaXSessionData, ax as KodaXSessionLineage, aC as KodaXSessionNavigationOptions, aE as KodaXSessionRuntimeInfo, aG as KodaXSessionStorage, aa as KodaXExtensionSessionRecord, at as KodaXSessionEntry, ao as KodaXSessionArtifactLedgerEntry, aI as KodaXSessionUiHistoryItem, aF as KodaXSessionScope, g as AgentActorSnapshot, c as AgentActorSaveAttempt, ai as KodaXJsonValue } from './review-inbox.d-BTLDdpG2.js';
1
+ import { U as KodaXReasoningMode, v as KodaXMessage } from './types.d-Bi8iUd6x.js';
2
+ import { aQ as LearningSurfaceSnapshot$1, aO as LearningQuery, aN as LearningPage, ay as LearnedCapabilityRecord, aJ as LearningEvent, aP as LearningSubscribeOptions, a5 as CompactionReport, a3 as CompactionConfig } from './types.d-BlXTogOo.js';
3
+ import { K as KodaXTaskResultReport } from './task-results.d-XMdWq0eA.js';
4
+ import { ar as ClientSessionSettings } from './client-contract-B7q69yMA.js';
5
+ import { a as BashPrefixExtractor, x as KodaXAgentMode, bp as KodaXWorkMode } from './bash-prefix-extractor.d-CJliu5-D.js';
6
+ import { as as KodaXSessionData, ax as KodaXSessionLineage, aC as KodaXSessionNavigationOptions, aF as KodaXSessionRuntimeInfo, aH as KodaXSessionStorage, aa as KodaXExtensionSessionRecord, at as KodaXSessionEntry, ao as KodaXSessionArtifactLedgerEntry, aJ as KodaXSessionUiHistoryItem, aG as KodaXSessionScope, aD as KodaXSessionPromotionRecord, g as AgentActorSnapshot, c as AgentActorSaveAttempt, ai as KodaXJsonValue } from './review-inbox.d-Bgt46S7L.js';
6
7
 
7
8
  /**
8
9
  * TextBuffer - Text buffer management class - 文本缓冲区管理类
@@ -511,6 +512,7 @@ interface StatusBarProps {
511
512
  sessionId: string;
512
513
  permissionMode: PermissionMode;
513
514
  agentMode: KodaXAgentMode;
515
+ workMode?: KodaXWorkMode;
514
516
  provider: string;
515
517
  model: string;
516
518
  tokenUsage?: {
@@ -667,6 +669,8 @@ type HistoryItemType = "user" | "assistant" | "system" | "tool_group" | "thinkin
667
669
  * History item base class - 历史项基类
668
670
  */
669
671
  interface HistoryItemBase {
672
+ /** Canonical task facts used by the Product projection; normal CLI ownership is unchanged. */
673
+ taskResult?: Omit<KodaXTaskResultReport, 'summary'>;
670
674
  outputId?: string;
671
675
  outputState?: 'draft' | 'committed';
672
676
  textRevision?: number;
@@ -1033,10 +1037,6 @@ declare class ConversationPageCacheCapacityError extends Error {
1033
1037
  constructor();
1034
1038
  }
1035
1039
 
1036
- /**
1037
- * KodaX session storage - filesystem implementation.
1038
- */
1039
-
1040
1040
  /**
1041
1041
  * Opaque process-local boundary for a prepared, append-only Session write.
1042
1042
  * Obtain a fresh value from {@link FileSessionStorage.prepareSessionAppend};
@@ -1244,8 +1244,11 @@ declare class FileSessionStorage implements KodaXSessionStorage {
1244
1244
  createGenerated(id: string, data: SessionData): Promise<void>;
1245
1245
  /** Update display metadata under the same writer lock as canonical Session saves. */
1246
1246
  mutateUiHistory(id: string, mutation: (history: readonly KodaXSessionUiHistoryItem[], session: Readonly<SessionData>) => KodaXSessionUiHistoryItem[]): Promise<boolean>;
1247
+ appendSessionRecords(id: string, records: readonly KodaXExtensionSessionRecord[]): Promise<boolean>;
1247
1248
  mutateLineage(id: string, mutation: (lineage: KodaXSessionLineage) => KodaXSessionLineage): Promise<boolean>;
1248
1249
  mutateRuntimeInfo(id: string, mutation: (runtimeInfo: KodaXSessionRuntimeInfo | undefined) => KodaXSessionRuntimeInfo | undefined): Promise<boolean>;
1250
+ /** One Host-owned metadata transaction; never replace history from a caller snapshot. */
1251
+ promoteOwned(id: string, ownerId: string | undefined, input: KodaXSessionPromotionRecord): Promise<boolean>;
1249
1252
  /** Phase-aware Actor CAS save; canonical success is observable before cache maintenance. */
1250
1253
  beginActorSnapshotSave(id: string, snapshot: AgentActorSnapshot, expectedRevision: number): AgentActorSaveAttempt;
1251
1254
  /** F270/F269 owner mutation: CAS-update only the Actor section of a session snapshot. */
@@ -1485,7 +1488,7 @@ interface SessionTranscriptEntry {
1485
1488
  readonly active: boolean;
1486
1489
  readonly summary?: string;
1487
1490
  readonly payload?: unknown;
1488
- readonly taskResults?: readonly KodaXTaskResultMetadata[];
1491
+ readonly taskResults?: readonly KodaXTaskResultReport[];
1489
1492
  }
1490
1493
  interface FullTranscriptSessionData extends Omit<SessionData, 'messages'> {
1491
1494
  /** Legacy flattened projection. Rewind markers are excluded. */
@@ -0,0 +1,166 @@
1
+ import { s as KodaXImageBlock } from './types.d-Bi8iUd6x.js';
2
+
3
+ type KodaXMediaErrorCode = 'CLIPBOARD_EMPTY' | 'CLIPBOARD_IMAGE_UNAVAILABLE' | 'UNSUPPORTED_PLATFORM' | 'IMAGE_DECODE_FAILED' | 'IMAGE_TOO_LARGE' | 'UNSUPPORTED_MEDIA_TYPE' | 'MODEL_INPUT_UNSUPPORTED' | 'FILE_ACCESS_DENIED';
4
+ interface KodaXMediaErrorOptions {
5
+ readonly detail?: string;
6
+ readonly cause?: unknown;
7
+ }
8
+ declare class KodaXMediaError extends Error {
9
+ readonly code: KodaXMediaErrorCode;
10
+ readonly detail?: string;
11
+ readonly cause?: unknown;
12
+ constructor(code: KodaXMediaErrorCode, message: string, options?: KodaXMediaErrorOptions);
13
+ }
14
+ declare class ImageResizeError extends KodaXMediaError {
15
+ constructor(message: string, options?: KodaXMediaErrorOptions & {
16
+ readonly code?: KodaXMediaErrorCode;
17
+ });
18
+ }
19
+
20
+ type KodaXImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';
21
+ type KodaXVideoMediaType = 'video/mp4' | 'video/mpeg' | 'video/quicktime' | 'video/x-msvideo' | 'video/x-flv' | 'video/webm' | 'video/x-ms-wmv' | 'video/3gpp';
22
+ type KodaXInputArtifactSource = 'user-inline' | 'clipboard' | 'drag-drop' | 'file-picker';
23
+ interface KodaXImageInputArtifact {
24
+ readonly kind: 'image';
25
+ readonly path: string;
26
+ readonly mediaType?: KodaXImageMediaType;
27
+ readonly source?: KodaXInputArtifactSource;
28
+ readonly description?: string;
29
+ }
30
+ interface KodaXFileInputArtifact {
31
+ readonly kind: 'file';
32
+ readonly path: string;
33
+ readonly mediaType?: string;
34
+ readonly mimeType?: string;
35
+ readonly name?: string;
36
+ readonly source?: KodaXInputArtifactSource;
37
+ readonly description?: string;
38
+ }
39
+ interface KodaXVideoInputArtifact {
40
+ readonly kind: 'video';
41
+ readonly path: string;
42
+ readonly mediaType: KodaXVideoMediaType;
43
+ readonly name?: string;
44
+ readonly source?: KodaXInputArtifactSource;
45
+ readonly description?: string;
46
+ }
47
+ type KodaXInputArtifact = KodaXImageInputArtifact | KodaXFileInputArtifact | KodaXVideoInputArtifact;
48
+
49
+ interface CreateImageArtifactFromPathOptions {
50
+ readonly mediaType?: KodaXImageMediaType;
51
+ readonly source?: KodaXInputArtifactSource;
52
+ readonly description?: string;
53
+ }
54
+ interface CreateFileArtifactFromPathOptions {
55
+ readonly mediaType?: string;
56
+ readonly mimeType?: string;
57
+ readonly name?: string;
58
+ readonly source?: KodaXInputArtifactSource;
59
+ readonly description?: string;
60
+ }
61
+ interface CreateVideoArtifactFromPathOptions {
62
+ readonly mediaType?: KodaXVideoMediaType;
63
+ readonly name?: string;
64
+ readonly source?: KodaXInputArtifactSource;
65
+ readonly description?: string;
66
+ }
67
+ declare function inferImageMediaType(filePath: string): KodaXImageMediaType | undefined;
68
+ declare function inferVideoMediaType(filePath: string): KodaXVideoMediaType | undefined;
69
+ declare function createImageArtifactFromPath(filePath: string, options?: CreateImageArtifactFromPathOptions): KodaXImageInputArtifact;
70
+ declare function createFileArtifactFromPath(filePath: string, options?: CreateFileArtifactFromPathOptions): KodaXFileInputArtifact;
71
+ declare function createVideoArtifactFromPath(filePath: string, options?: CreateVideoArtifactFromPathOptions): KodaXVideoInputArtifact;
72
+
73
+ declare const MAX_DIMENSION = 2000;
74
+ declare const TARGET_RAW_SIZE_BYTES: number;
75
+ interface NormalizedImage {
76
+ readonly buffer: Buffer;
77
+ readonly mediaType: 'image/png' | 'image/jpeg';
78
+ readonly width: number;
79
+ readonly height: number;
80
+ }
81
+ interface NormalizeImageOptions {
82
+ readonly maxDimension?: number;
83
+ readonly targetBytes?: number;
84
+ readonly preferMediaType?: 'image/png' | 'image/jpeg';
85
+ }
86
+ declare function normalizePastedImage(input: Buffer, options?: NormalizeImageOptions): Promise<NormalizedImage>;
87
+
88
+ declare function readClipboardImage(): Promise<Buffer | null>;
89
+ declare function readAndNormalizeClipboardImage(options?: NormalizeImageOptions): Promise<NormalizedImage | null>;
90
+
91
+ declare const PASTE_TMP_DIR_ENV = "KODAX_PASTE_TMP_DIR";
92
+ declare const PASTE_TMP_TTL_MS: number;
93
+ interface PersistImageAsBlockOptions {
94
+ readonly directory?: string;
95
+ readonly fileNamePrefix?: string;
96
+ }
97
+ declare function persistImageAsBlock(image: {
98
+ readonly buffer: Buffer;
99
+ readonly mediaType: KodaXImageMediaType;
100
+ }, options?: PersistImageAsBlockOptions): Promise<KodaXImageBlock>;
101
+ declare function prunePasteTmpDir(now?: number): Promise<number>;
102
+
103
+ type KodaXInputCapabilityStatus = 'supported' | 'provider-native-unwired' | 'unsupported';
104
+ interface KodaXModalityInputCapability<TMediaType extends string> {
105
+ readonly nativeSupported: boolean;
106
+ readonly sdkSupported: boolean;
107
+ readonly status: KodaXInputCapabilityStatus;
108
+ readonly mediaTypes: readonly TMediaType[];
109
+ readonly nativeMediaTypes?: readonly TMediaType[];
110
+ readonly maxBytes?: number;
111
+ readonly maxCount?: number;
112
+ readonly reason?: string;
113
+ }
114
+ interface ModelInputCapabilities {
115
+ readonly text: true;
116
+ readonly image: KodaXModalityInputCapability<KodaXImageMediaType>;
117
+ readonly video: KodaXModalityInputCapability<KodaXVideoMediaType>;
118
+ readonly file: KodaXModalityInputCapability<string>;
119
+ }
120
+ interface GetModelInputCapabilitiesInput {
121
+ readonly provider: string;
122
+ readonly model?: string;
123
+ }
124
+ declare const KODAX_IMAGE_MEDIA_TYPES: readonly KodaXImageMediaType[];
125
+ declare const KODAX_VIDEO_MEDIA_TYPES: readonly KodaXVideoMediaType[];
126
+ declare const KODAX_FILE_MEDIA_TYPES: readonly string[];
127
+ declare function getModelInputCapabilities(input: GetModelInputCapabilitiesInput): ModelInputCapabilities;
128
+
129
+ interface ValidateInputArtifactsOptions {
130
+ readonly provider: string;
131
+ readonly model?: string;
132
+ }
133
+ declare function validateInputArtifactsForModel(artifacts: readonly KodaXInputArtifact[], options: ValidateInputArtifactsOptions): void;
134
+
135
+ /**
136
+ * @kodax-ai/agent/messaging — Message queue types
137
+ *
138
+ * FEATURE_115 (v0.7.36): agentId-scoped 2-tier priority queue infrastructure.
139
+ *
140
+ * Per ADR-021: messaging is a generic agent-platform primitive (not coding-
141
+ * specific). Downstream consumers:
142
+ * - @kodax-ai/coding runner-driven mid-turn drain
143
+ * - @kodax-ai/repl InkREPL ESC soft-pause + text injection (FEATURE_111 absorbed)
144
+ * - subagent task-notification routing (FEATURE_155 idle-yield wakeup)
145
+ *
146
+ * Phase 0.6 study (`c:/tmp/claude-code-actual-usage.md`): Claude Code's
147
+ * `'now'` priority has zero production usage; KodaX simplifies to 2 tiers.
148
+ */
149
+
150
+ type MessagePriority = 'user' | 'background';
151
+
152
+ interface EnqueueWithArtifactsInput extends ValidateInputArtifactsOptions {
153
+ readonly content: string;
154
+ /** Accepted client input identity stamped onto the drained user message. */
155
+ readonly inputId?: string;
156
+ readonly inputArtifacts?: readonly KodaXInputArtifact[];
157
+ readonly priority?: MessagePriority;
158
+ /** Explicit low-level queue route. Mutually exclusive with sessionId. */
159
+ readonly agentId?: string;
160
+ /** Route to this Actor session's root queue. */
161
+ readonly sessionId?: string;
162
+ }
163
+ declare function enqueueWithArtifacts(input: EnqueueWithArtifactsInput): string;
164
+
165
+ export { inferVideoMediaType as A, normalizePastedImage as B, persistImageAsBlock as D, prunePasteTmpDir as F, readAndNormalizeClipboardImage as H, ImageResizeError as I, readClipboardImage as J, KODAX_FILE_MEDIA_TYPES as K, validateInputArtifactsForModel as L, MAX_DIMENSION as M, PASTE_TMP_DIR_ENV as P, TARGET_RAW_SIZE_BYTES as T, KODAX_IMAGE_MEDIA_TYPES as c, KODAX_VIDEO_MEDIA_TYPES as d, KodaXMediaError as k, PASTE_TMP_TTL_MS as s, createFileArtifactFromPath as u, createImageArtifactFromPath as v, createVideoArtifactFromPath as w, enqueueWithArtifacts as x, getModelInputCapabilities as y, inferImageMediaType as z };
166
+ export type { CreateFileArtifactFromPathOptions as C, EnqueueWithArtifactsInput as E, GetModelInputCapabilitiesInput as G, NormalizeImageOptions as N, ValidateInputArtifactsOptions as V, CreateImageArtifactFromPathOptions as a, CreateVideoArtifactFromPathOptions as b, KodaXFileInputArtifact as e, KodaXImageInputArtifact as f, KodaXImageMediaType as g, KodaXInputArtifact as h, KodaXInputArtifactSource as i, KodaXInputCapabilityStatus as j, KodaXMediaErrorCode as l, KodaXMediaErrorOptions as m, KodaXModalityInputCapability as n, KodaXVideoInputArtifact as o, KodaXVideoMediaType as p, ModelInputCapabilities as q, NormalizedImage as r, PersistImageAsBlockOptions as t };
@@ -1,7 +1,113 @@
1
- import { G as KodaXReasoningMode, O as KodaXStableEffortIntent, ab as KodaXWireReasoningEffort, H as KodaXReasoningProfile, $ as KodaXThinkingBudgetMap, a0 as KodaXThinkingDepth, r as KodaXProviderConfig, C as KodaXReasoningCapability, I as KodaXReasoningRequest, n as KodaXNormalizedReasoningRequest, X as KodaXTaskType, a9 as KodaXVerifyCredentialResult, a3 as KodaXToolDefinition, k as KodaXMessage, z as KodaXProviderStreamOptions, P as KodaXStreamResult, l as KodaXModelDescriptor, q as KodaXProviderCapabilityProfile, o as KodaXOpenAICompatMaxOutputTokensField, aa as KodaXVerifyStrategy, d as KodaXCustomProviderConfig, j as KodaXListModelsResult } from './types.d-BjOq57-z.js';
2
- import Anthropic from '@anthropic-ai/sdk';
3
- import { K as KodaXBaseProvider } from './base.d-ZBOdjDUT.js';
4
1
  import OpenAI from 'openai';
2
+ import { K as KodaXBaseProvider } from './errors.d-D73qdYbS.js';
3
+ import { W as KodaXReasoningRequest, y as KodaXNormalizedReasoningRequest, C as KodaXProviderConfig, ap as KodaXVerifyCredentialResult, v as KodaXMessage, aj as KodaXToolDefinition, N as KodaXProviderStreamOptions, a2 as KodaXStreamResult, U as KodaXReasoningMode, a1 as KodaXStableEffortIntent, ar as KodaXWireReasoningEffort, V as KodaXReasoningProfile, ae as KodaXThinkingBudgetMap, af as KodaXThinkingDepth, Q as KodaXReasoningCapability, aa as KodaXTaskType, m as KodaXGenerationSource, ad as KodaXThinkingBlock, Y as KodaXRedactedThinkingBlock, d as KodaXCacheCapabilities, ai as KodaXToolCapabilities, w as KodaXModelDescriptor, B as KodaXProviderCapabilityProfile, z as KodaXOpenAICompatMaxOutputTokensField, aq as KodaXVerifyStrategy, i as KodaXCustomProviderConfig, u as KodaXListModelsResult } from './types.d-Bi8iUd6x.js';
4
+ import Anthropic from '@anthropic-ai/sdk';
5
+
6
+ /**
7
+ * KodaX OpenAI Compatible Provider
8
+ *
9
+ * 支持 OpenAI API 格式的 Provider 基类
10
+ */
11
+
12
+ declare abstract class KodaXOpenAICompatProvider extends KodaXBaseProvider {
13
+ protected getRequestCredentialFingerprint(): string | undefined;
14
+ private readonly requestRejections;
15
+ usesScopedReasoningLearning(): boolean;
16
+ protected getReasoningApi(): string;
17
+ protected readonly requestObservationBoundary: "physical_attempt";
18
+ protected normalizeReasoning(reasoning?: boolean | KodaXReasoningRequest): KodaXNormalizedReasoningRequest;
19
+ private reasoningAttempts;
20
+ private skipRejectedReasoning;
21
+ private hasReasoningParameter;
22
+ private sentReasoningEffort;
23
+ private recordReasoningRejection;
24
+ abstract readonly name: string;
25
+ readonly supportsThinking = true;
26
+ protected abstract readonly config: KodaXProviderConfig;
27
+ private _client?;
28
+ private _clientPromise?;
29
+ supportsEphemeralSuffix(): boolean;
30
+ /**
31
+ * The SDK client is built lazily on first use. Constructing it requires the
32
+ * API key (`getApiKey()` throws when the env var is unset), so deferring it
33
+ * lets callers construct a provider and read static metadata (context
34
+ * window, model descriptors) without a key. This also keeps key-less unit
35
+ * tests (which mock the actual LLM calls) from failing at construction time.
36
+ */
37
+ private clientCredentialFingerprint?;
38
+ protected getClient(): Promise<OpenAI>;
39
+ protected set client(client: OpenAI);
40
+ getBaseUrl(): string;
41
+ protected buildClient(): OpenAI | Promise<OpenAI>;
42
+ private getEffectiveMaxOutputTokensField;
43
+ protected onStaleConnection(): void;
44
+ /**
45
+ * FEATURE_216 v0.7.45 — Lightweight credential verification.
46
+ * Dispatches by `this.config.verifyStrategy`:
47
+ * - `models-list` (default for OpenAI protocol): 0-token
48
+ * `models.list()` — empirically reliable for openai-compat
49
+ * providers where `/v1/models` gates on auth (kimi / qwen /
50
+ * deepseek confirmed). Verified by opencode `setup-recording-env.ts`
51
+ * for OPENAI_API_KEY proper.
52
+ * - `minimal-message`: ~6-token `chat.completions.create({max_tokens:1})`
53
+ * fallback for OpenAI-compat providers whose `/v1/models` is
54
+ * publicly accessible (zhipu — false-positive risk).
55
+ * - `count-tokens`: NOT supported on OpenAI protocol. Custom provider
56
+ * validator rejects this combo at config time; built-in providers
57
+ * never declare it. Orchestrator returns `unsupported` if it slips
58
+ * through, surfacing the misconfiguration.
59
+ */
60
+ verifyCredential(opts?: {
61
+ timeoutMs?: number;
62
+ signal?: AbortSignal;
63
+ }): Promise<KodaXVerifyCredentialResult>;
64
+ /**
65
+ * FEATURE_116 (v0.7.37) — Strip any `cache-boundary` markers from
66
+ * KodaXMessage content arrays before they reach OpenAI wire
67
+ * serialization. OpenAI / DeepSeek auto-cache prefix tokens
68
+ * server-side, so the client has no marker to lower; Kimi/Zhipu/通义
69
+ * self-cache via separate `cache_id` endpoints that are deferred to
70
+ * v0.7.45+ (FEATURE_102). Stripping is the correct universal action
71
+ * for this base class.
72
+ *
73
+ * Idempotent: a message whose content is a string or contains no
74
+ * boundaries returns the same reference. Safe to call multiple times.
75
+ */
76
+ protected stripCacheBoundariesFromMessages(messages: KodaXMessage[]): KodaXMessage[];
77
+ /**
78
+ * Collapse every `role: 'system'` message (the `system` parameter plus any
79
+ * system messages embedded in `messages`) into a single top-of-wire system
80
+ * content and return the remaining non-system messages. Some OpenAI-compat
81
+ * gateways — notably third-party Qwen proxies — reject any system message
82
+ * that is not at position 0, so this normalization guarantees the wire has
83
+ * exactly one system entry regardless of what the upstream caller passed.
84
+ *
85
+ * Post-compact attachments, compaction summaries and handoff-time
86
+ * `replaceSystemMessage` can all leave secondary `role: 'system'` entries
87
+ * mid-transcript; merging here is the provider-layer bottleneck that keeps
88
+ * callers from having to coordinate.
89
+ */
90
+ protected normalizeSystemForWire(system: string, messages: KodaXMessage[]): {
91
+ system: string;
92
+ rest: KodaXMessage[];
93
+ };
94
+ private appendExtraBody;
95
+ private resetReasoningCapabilityParams;
96
+ private applyReasoningCapability;
97
+ private applyReasoningProfile;
98
+ private resolveReasoningProfileBudget;
99
+ stream(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, options?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
100
+ complete(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, options?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
101
+ private streamInternal;
102
+ supportsNonStreamingFallback(): boolean;
103
+ private completeInternal;
104
+ private serializeAssistantMessage;
105
+ private serializeToolResult;
106
+ private serializeUserMessage;
107
+ private serializeSystemMessage;
108
+ private convertMessages;
109
+ private repairToolCallHistory;
110
+ }
5
111
 
6
112
  declare const KODAX_REASONING_MODE_SEQUENCE: KodaXReasoningMode[];
7
113
  declare const KODAX_STABLE_EFFORT_INTENTS: KodaXStableEffortIntent[];
@@ -44,6 +150,8 @@ interface KodaXModelSwitchEffortResolution {
44
150
  }
45
151
  declare function normalizeReasoningEffortValue(value: string): KodaXWireReasoningEffort;
46
152
  declare function mapLegacyReasoningModeToEffortIntent(mode: KodaXReasoningMode): KodaXStableEffortIntent;
153
+ /** Normalize old inputs once; native and provider-specific efforts pass through. */
154
+ declare function mapLegacyReasoningModeToEffortIntent(mode: KodaXWireReasoningEffort): KodaXWireReasoningEffort;
47
155
  declare function effortToLegacyReasoningMode(effort: string | undefined): KodaXReasoningMode | undefined;
48
156
  declare function parseReasoningEffortEnv(raw: string | undefined): KodaXReasoningEffortEnvOverride;
49
157
  declare function resolveReasoningEffort(input: KodaXResolveReasoningEffortInput): KodaXResolvedReasoningEffort;
@@ -117,6 +225,14 @@ declare function resolveWireEffort(input: ResolveWireEffortInput): ResolvedWireE
117
225
  */
118
226
 
119
227
  declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
228
+ usesScopedReasoningLearning(): boolean;
229
+ protected getReasoningApi(): string;
230
+ private controlEffort;
231
+ private skipRejectedControl;
232
+ private learnRejectedControl;
233
+ getGenerationSource(model?: string): KodaXGenerationSource;
234
+ /** Unknown legacy provenance keeps its existing signature policy; known foreign opaque content never replays. */
235
+ canReplayReasoning(block: KodaXThinkingBlock | KodaXRedactedThinkingBlock, model?: string): boolean;
120
236
  protected readonly requestObservationBoundary: "physical_attempt";
121
237
  abstract readonly name: string;
122
238
  readonly supportsThinking = true;
@@ -130,11 +246,17 @@ declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
130
246
  * window, model descriptors) without a key. This also keeps key-less unit
131
247
  * tests (which mock the actual LLM calls) from failing at construction time.
132
248
  */
249
+ private clientCredentialFingerprint?;
133
250
  protected getClient(): Promise<Anthropic>;
134
251
  protected set client(client: Anthropic);
252
+ getBaseUrl(): string;
135
253
  protected buildClient(): Anthropic | Promise<Anthropic>;
136
254
  protected onStaleConnection(): void;
137
255
  private buildMessageCreateOptions;
256
+ private isNativeHistoryModel;
257
+ private nativeHistoryInput;
258
+ private applyNativeControls;
259
+ private validateNativePayload;
138
260
  private applyReasoningProfile;
139
261
  private resolveReasoningProfileBudget;
140
262
  /**
@@ -183,7 +305,7 @@ declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
183
305
  *
184
306
  * Returns a new array; never mutates input.
185
307
  */
186
- protected applyCacheControlToTools(tools: KodaXToolDefinition[]): Anthropic.Messages.Tool[];
308
+ protected applyCacheControlToTools(tools: KodaXToolDefinition[], model?: string): Anthropic.Messages.Tool[];
187
309
  /**
188
310
  * FEATURE_116 follow-up — Place an incremental cache breakpoint on the
189
311
  * conversation history (Anthropic breakpoint 3). The system prompt and
@@ -206,9 +328,11 @@ declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
206
328
  */
207
329
  protected applyCacheControlToMessages(messages: Anthropic.Messages.MessageParam[]): Anthropic.Messages.MessageParam[];
208
330
  supportsEphemeralSuffix(): boolean;
209
- stream(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, streamOptions?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
331
+ stream(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, options?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
332
+ complete(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, options?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
333
+ private streamInternal;
210
334
  supportsNonStreamingFallback(): boolean;
211
- complete(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, streamOptions?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
335
+ private completeInternal;
212
336
  private serializeSystemMessageContent;
213
337
  private buildSystemPrompt;
214
338
  private convertMessages;
@@ -236,102 +360,6 @@ declare abstract class KodaXAnthropicCompatProvider extends KodaXBaseProvider {
236
360
  private repairToolCallHistory;
237
361
  }
238
362
 
239
- /**
240
- * KodaX OpenAI Compatible Provider
241
- *
242
- * 支持 OpenAI API 格式的 Provider 基类
243
- */
244
-
245
- declare abstract class KodaXOpenAICompatProvider extends KodaXBaseProvider {
246
- protected readonly requestObservationBoundary: "physical_attempt";
247
- private reasoningRejections;
248
- protected normalizeReasoning(reasoning?: boolean | KodaXReasoningRequest): KodaXNormalizedReasoningRequest;
249
- private reasoningAttempts;
250
- private skipRejectedReasoning;
251
- private hasReasoningParameter;
252
- private sentReasoningEffort;
253
- private recordReasoningRejection;
254
- abstract readonly name: string;
255
- readonly supportsThinking = true;
256
- protected abstract readonly config: KodaXProviderConfig;
257
- private _client?;
258
- private _clientPromise?;
259
- supportsEphemeralSuffix(): boolean;
260
- /**
261
- * The SDK client is built lazily on first use. Constructing it requires the
262
- * API key (`getApiKey()` throws when the env var is unset), so deferring it
263
- * lets callers construct a provider and read static metadata (context
264
- * window, model descriptors) without a key. This also keeps key-less unit
265
- * tests (which mock the actual LLM calls) from failing at construction time.
266
- */
267
- protected getClient(): Promise<OpenAI>;
268
- protected set client(client: OpenAI);
269
- protected buildClient(): OpenAI | Promise<OpenAI>;
270
- private getEffectiveMaxOutputTokensField;
271
- protected onStaleConnection(): void;
272
- /**
273
- * FEATURE_216 v0.7.45 — Lightweight credential verification.
274
- * Dispatches by `this.config.verifyStrategy`:
275
- * - `models-list` (default for OpenAI protocol): 0-token
276
- * `models.list()` — empirically reliable for openai-compat
277
- * providers where `/v1/models` gates on auth (kimi / qwen /
278
- * deepseek confirmed). Verified by opencode `setup-recording-env.ts`
279
- * for OPENAI_API_KEY proper.
280
- * - `minimal-message`: ~6-token `chat.completions.create({max_tokens:1})`
281
- * fallback for OpenAI-compat providers whose `/v1/models` is
282
- * publicly accessible (zhipu — false-positive risk).
283
- * - `count-tokens`: NOT supported on OpenAI protocol. Custom provider
284
- * validator rejects this combo at config time; built-in providers
285
- * never declare it. Orchestrator returns `unsupported` if it slips
286
- * through, surfacing the misconfiguration.
287
- */
288
- verifyCredential(opts?: {
289
- timeoutMs?: number;
290
- signal?: AbortSignal;
291
- }): Promise<KodaXVerifyCredentialResult>;
292
- /**
293
- * FEATURE_116 (v0.7.37) — Strip any `cache-boundary` markers from
294
- * KodaXMessage content arrays before they reach OpenAI wire
295
- * serialization. OpenAI / DeepSeek auto-cache prefix tokens
296
- * server-side, so the client has no marker to lower; Kimi/Zhipu/通义
297
- * self-cache via separate `cache_id` endpoints that are deferred to
298
- * v0.7.45+ (FEATURE_102). Stripping is the correct universal action
299
- * for this base class.
300
- *
301
- * Idempotent: a message whose content is a string or contains no
302
- * boundaries returns the same reference. Safe to call multiple times.
303
- */
304
- protected stripCacheBoundariesFromMessages(messages: KodaXMessage[]): KodaXMessage[];
305
- /**
306
- * Collapse every `role: 'system'` message (the `system` parameter plus any
307
- * system messages embedded in `messages`) into a single top-of-wire system
308
- * content and return the remaining non-system messages. Some OpenAI-compat
309
- * gateways — notably third-party Qwen proxies — reject any system message
310
- * that is not at position 0, so this normalization guarantees the wire has
311
- * exactly one system entry regardless of what the upstream caller passed.
312
- *
313
- * Post-compact attachments, compaction summaries and handoff-time
314
- * `replaceSystemMessage` can all leave secondary `role: 'system'` entries
315
- * mid-transcript; merging here is the provider-layer bottleneck that keeps
316
- * callers from having to coordinate.
317
- */
318
- private normalizeSystemForWire;
319
- private appendExtraBody;
320
- private resetReasoningCapabilityParams;
321
- private applyReasoningCapability;
322
- private applyReasoningProfile;
323
- private resolveReasoningProfileBudget;
324
- stream(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, streamOptions?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
325
- supportsNonStreamingFallback(): boolean;
326
- complete(messages: KodaXMessage[], tools: KodaXToolDefinition[], system: string, reasoning?: boolean | KodaXReasoningRequest, streamOptions?: KodaXProviderStreamOptions, signal?: AbortSignal): Promise<KodaXStreamResult>;
327
- private serializeAssistantMessage;
328
- private serializeToolResult;
329
- private serializeUserMessage;
330
- private serializeSystemMessage;
331
- private convertMessages;
332
- private repairToolCallHistory;
333
- }
334
-
335
363
  /**
336
364
  * KodaX Provider Registry
337
365
  *
@@ -355,6 +383,8 @@ type ProviderName = 'anthropic' | 'openai' | 'deepseek' | 'kimi' | 'kimi-code' |
355
383
  * `buildProviderConfig`.
356
384
  */
357
385
  type ProviderSnapshot = {
386
+ readonly cacheCapabilities?: KodaXCacheCapabilities;
387
+ readonly toolCapabilities?: KodaXToolCapabilities;
358
388
  readonly model: string;
359
389
  /**
360
390
  * Alternative model descriptors beyond the default `model`. Carries
@@ -374,6 +404,8 @@ type ProviderSnapshot = {
374
404
  readonly contextWindow?: number;
375
405
  /** Per-turn output token cap KodaX requests. Provider-level default. */
376
406
  readonly maxOutputTokens?: number;
407
+ /** Documented service output ceiling; independent of the default request budget. */
408
+ readonly outputTokenLimit?: number;
377
409
  /** OpenAI Chat Completions field used for the output-token cap. */
378
410
  readonly maxOutputTokensField?: KodaXOpenAICompatMaxOutputTokensField;
379
411
  /** Upper bound on `thinking_budget` for native-budget reasoning providers. */
@@ -394,7 +426,7 @@ declare function getProvider(name?: string): KodaXBaseProvider;
394
426
  declare function isProviderConfigured(name: string): boolean;
395
427
  declare function getProviderModel(name: string): string | null;
396
428
  declare function getProviderConfiguredReasoningCapability(name: string, modelOverride?: string): KodaXReasoningCapability | 'unknown';
397
- declare function getProviderConfiguredCapabilityProfile(name: string): KodaXProviderCapabilityProfile | null;
429
+ declare function getProviderConfiguredCapabilityProfile(name: string, model?: string): KodaXProviderCapabilityProfile | null;
398
430
  declare function getProviderList(): Array<{
399
431
  name: string;
400
432
  model: string;
@@ -426,6 +458,11 @@ declare function isProviderName(name: string): name is ProviderName;
426
458
  * values in a popout UI can trust them.
427
459
  */
428
460
  interface KodaXModelCapabilities {
461
+ /** Effective model modality, without opening a credential or Provider client. */
462
+ multimodalSupport?: KodaXProviderCapabilityProfile['multimodalSupport'];
463
+ cacheCapabilities?: KodaXCacheCapabilities;
464
+ /** Explicit tool constraints; omission does not advertise support. */
465
+ toolCapabilities?: KodaXToolCapabilities;
429
466
  /** Provider name (`anthropic`, `kimi`, `ark-coding`, or any custom name). */
430
467
  provider: string;
431
468
  /** Model id (the value `runKodaX(... { model } ...)` accepts). */
@@ -450,6 +487,8 @@ interface KodaXModelCapabilities {
450
487
  * meta path, not by raising this number per-turn.
451
488
  */
452
489
  maxOutputTokens?: number;
490
+ /** Documented service output ceiling; independent of the default request budget. */
491
+ outputTokenLimit?: number;
453
492
  /** Upper bound on `thinking_budget` (native-budget providers only). */
454
493
  thinkingBudgetCap?: number;
455
494
  /** True when the model is the provider's default (the `model` field on the snapshot). */
@@ -1,4 +1,4 @@
1
- import { k as KodaXMessage } from './types.d-BjOq57-z.js';
1
+ import { v as KodaXMessage } from './types.d-Bi8iUd6x.js';
2
2
 
3
3
  type AgentActorState = 'running' | 'idle' | 'closed';
4
4
  type AgentTurnState = 'accepted' | 'running' | 'completed' | 'failed' | 'interrupted';
@@ -55,6 +55,8 @@ interface AgentIterationProgress {
55
55
  readonly max: number;
56
56
  }
57
57
  interface AgentTurn {
58
+ /** Executor-owned continuation; user-supplied metadata cannot create it. */
59
+ readonly checkpoint?: AgentMetadataValue;
58
60
  readonly iteration?: AgentIterationProgress;
59
61
  readonly terminationReason?: 'iteration_limit';
60
62
  readonly turnId: string;
@@ -197,6 +199,7 @@ interface AgentBudgetPort {
197
199
  snapshot?(): unknown;
198
200
  }
199
201
  interface AgentExecutionInput {
202
+ reportCheckpoint?(checkpoint: AgentMetadataValue | undefined): Promise<void>;
200
203
  readonly actor: AgentActor;
201
204
  readonly turn: AgentTurn;
202
205
  readonly priorTurns: readonly AgentTurn[];
@@ -630,7 +633,15 @@ interface KodaXSessionUiToolGroupHistoryItem {
630
633
  }
631
634
  type KodaXSessionUiHistoryItem = KodaXSessionUiTextHistoryItem | KodaXSessionUiToolGroupHistoryItem;
632
635
  type KodaXSessionWorkspaceKind = 'detected' | 'managed';
636
+ /** Durable receipt for the one-way promotion of a consumer's temporary Session. */
637
+ interface KodaXSessionPromotionRecord {
638
+ readonly sessionId: string;
639
+ readonly requestId: string;
640
+ readonly expectedRevision: string;
641
+ readonly tag: string;
642
+ }
633
643
  interface KodaXSessionRuntimeInfo {
644
+ readonly sessionPromotion?: KodaXSessionPromotionRecord;
634
645
  /** Host-owned task lifetime; delete this Session after its task settles. */
635
646
  temporary?: boolean;
636
647
  canonicalRepoRoot?: string;
@@ -759,6 +770,8 @@ interface KodaXExtensionStore {
759
770
  interface KodaXSessionStorage {
760
771
  save(id: string, data: KodaXSessionData): Promise<void>;
761
772
  load(id: string): Promise<KodaXSessionData | null>;
773
+ /** Append durable protocol receipts without replacing the host's transcript or metadata. False means missing Session. */
774
+ appendSessionRecords?(id: string, records: readonly KodaXExtensionSessionRecord[]): Promise<boolean>;
762
775
  /** Atomically updates Runtime-owned Session metadata without replacing transcript state. */
763
776
  mutateRuntimeInfo?(id: string, mutation: (runtimeInfo: KodaXSessionRuntimeInfo | undefined) => KodaXSessionRuntimeInfo | undefined): Promise<boolean>;
764
777
  /**
@@ -1361,5 +1374,5 @@ declare function withPendingEpisodeReviewSessionFence<T>(input: {
1361
1374
  }, operation: (fence: (activeReviewIds: readonly string[]) => Promise<number>) => Promise<T>): Promise<T>;
1362
1375
  declare function drainPendingEpisodeReviews(identity: MemoryContextIdentity, options: EpisodeReviewDrainOptions): Promise<EpisodeReviewDrainResult>;
1363
1376
 
1364
- export { EpisodeReviewBranchChangedError as V, EpisodeReviewFailure as a0, captureEpisodeReviewBranchEpoch as bC, claimEpisodeReview as bD, commitEpisodeReviewAction as bE, commitEpisodeReviewDecision as bF, completeEpisodeReview as bG, completeFencedEpisodeReview as bH, deferEpisodeReview as bI, discardFencedEpisodeReview as bJ, drainPendingEpisodeReviews as bK, failEpisodeReviewApply as bL, failEpisodeReviewAttempt as bM, freezeEpisodeReviewInput as bN, hashMemoryIdentityComponent as bO, inspectEpisodeReviewJob as bP, isMemoryManagementController as bQ, listPendingEpisodeReviewSummaries as bR, listPendingEpisodeReviews as bS, matchesMemoryApplicability as bT, memoryApplicabilityFingerprint as bU, persistPendingEpisodeReview as bV, withEpisodeReviewClaimAuthority as bW, withPendingEpisodeReviewSessionFence as bX };
1365
- export type { EpisodeReviewDrainResult as $, AgentActor as A, AgentInterruptScope as B, AgentIterationProgress as C, AgentLimitReached as D, AgentListEntry as E, AgentMailboxMessage as F, AgentMetadataValue as G, AgentMutationOptions as H, AgentOutput as I, AgentProgressItem as J, AgentProgressKind as K, AgentProgressUpdate as L, AgentSpawnInput as M, AgentTreeSnapshot as N, AgentTurn as O, AgentTurnExecutor as P, AgentTurnRef as Q, AgentTurnState as R, AgentTurnSummary as S, EpisodeReviewActionInput as T, EpisodeReviewActionReceipt as U, EpisodeReviewClaim as W, EpisodeReviewDecision as X, EpisodeReviewDecisionInput as Y, EpisodeReviewDrainEligibility as Z, EpisodeReviewDrainOptions as _, AgentActorClient as a, MemoryController as a$, EpisodeReviewFailureKind as a1, EpisodeReviewInputCheckpoint as a2, EpisodeReviewInputSpec as a3, EpisodeReviewJobSnapshot as a4, EpisodeReviewJobState as a5, EpisodeReviewJobStatus as a6, EpisodeReviewReceipt as a7, KodaXCompactMemoryProgress as a8, KodaXCompactMemorySeed as a9, KodaXSessionMessageEntry as aA, KodaXSessionMeta as aB, KodaXSessionNavigationOptions as aC, KodaXSessionRewindMarkerEntry as aD, KodaXSessionRuntimeInfo as aE, KodaXSessionScope as aF, KodaXSessionStorage as aG, KodaXSessionTreeNode as aH, KodaXSessionUiHistoryItem as aI, KodaXSessionUiHistoryItemType as aJ, KodaXSessionUiTextHistoryItem as aK, KodaXSessionUiTextHistoryItemType as aL, KodaXSessionUiToolCall as aM, KodaXSessionUiToolCallStatus as aN, KodaXSessionUiToolGroupHistoryItem as aO, KodaXSessionWorkspaceKind as aP, MemoryActionProposal as aQ, MemoryApplicability as aR, MemoryApplyPreview as aS, MemoryApplyResult as aT, MemoryApproval as aU, MemoryAuthority as aV, MemoryAutoCuratorInput as aW, MemoryAutoCuratorResult as aX, MemoryBodySnapshot as aY, MemoryClaimKind as aZ, MemoryContextIdentity as a_, KodaXExtensionSessionRecord as aa, KodaXExtensionSessionState as ab, KodaXExtensionStore as ac, KodaXExtensionStoreEntry as ad, KodaXGoalEventType as ae, KodaXGoalState as af, KodaXGoalStatus as ag, KodaXHandledMemoryOperation as ah, KodaXJsonValue as ai, KodaXMemoryInfluenceRef as aj, KodaXMemoryIntent as ak, KodaXMemoryOutcomeDigest as al, KodaXMemoryOutcomeEvidence as am, KodaXSessionArchiveMarkerEntry as an, KodaXSessionArtifactLedgerEntry as ao, KodaXSessionBranchSummaryEntry as ap, KodaXSessionClientNoticeEntry as aq, KodaXSessionCompactionEntry as ar, KodaXSessionData as as, KodaXSessionEntry as at, KodaXSessionEntryBase as au, KodaXSessionGoalEntry as av, KodaXSessionLabelEntry as aw, KodaXSessionLineage as ax, KodaXSessionMemoryOutcomeDigestEntry as ay, KodaXSessionMemoryReviewReceiptEntry as az, AgentActorOwner as b, MemoryCuratorInput as b0, MemoryEpisodeReviewResult as b1, MemoryEvent as b2, MemoryGovernanceFinding as b3, MemoryGovernanceFindingKind as b4, MemoryGovernanceReport as b5, MemoryItemRef as b6, MemoryLifecycle as b7, MemoryLifecycleOperationResult as b8, MemoryManagementController as b9, PendingEpisodeReviewV2 as bA, SessionErrorMetadata as bB, MemoryPack as ba, MemoryPackHint as bb, MemoryPackInput as bc, MemoryPackTraceMetadata as bd, MemoryProposalAction as be, MemoryRefFilter as bf, MemoryRefKind as bg, MemoryRejectResult as bh, MemoryRememberInput as bi, MemoryRememberResult as bj, MemoryReviewCandidateRef as bk, MemoryReviewDraftAction as bl, MemoryReviewInput as bm, MemoryReviewModelInput as bn, MemoryReviewPersistenceDecision as bo, MemoryReviewPersistenceKind as bp, MemoryReviewPlan as bq, MemoryReviewRunner as br, MemoryReviewTrigger as bs, MemoryScope as bt, MemorySourceAdapter as bu, MemoryVisibility as bv, PendingEpisodeReview as bw, PendingEpisodeReviewFilter as bx, PendingEpisodeReviewSummary as by, PendingEpisodeReviewV1 as bz, AgentActorSaveAttempt as c, AgentActorSaveDiagnostics as d, AgentActorSavePhase as e, AgentActorSaveTiming as f, AgentActorSnapshot as g, AgentActorSnapshotV1 as h, AgentActorSnapshotV2 as i, AgentActorState as j, AgentActorStore as k, AgentArtifactDescriptor as l, AgentBudgetAdmission as m, AgentBudgetAdmissionInput as n, AgentBudgetExhausted as o, AgentBudgetPort as p, AgentCapabilities as q, AgentDataClassification as r, AgentDetail as s, AgentEvent as t, AgentEventKind as u, AgentExecutionInput as v, AgentExecutionKind as w, AgentExecutionResult as x, AgentFollowupResult as y, AgentForkTurns as z };
1377
+ export { EpisodeReviewBranchChangedError as V, EpisodeReviewFailure as a0, captureEpisodeReviewBranchEpoch as bD, claimEpisodeReview as bE, commitEpisodeReviewAction as bF, commitEpisodeReviewDecision as bG, completeEpisodeReview as bH, completeFencedEpisodeReview as bI, deferEpisodeReview as bJ, discardFencedEpisodeReview as bK, drainPendingEpisodeReviews as bL, failEpisodeReviewApply as bM, failEpisodeReviewAttempt as bN, freezeEpisodeReviewInput as bO, hashMemoryIdentityComponent as bP, inspectEpisodeReviewJob as bQ, isMemoryManagementController as bR, listPendingEpisodeReviewSummaries as bS, listPendingEpisodeReviews as bT, matchesMemoryApplicability as bU, memoryApplicabilityFingerprint as bV, persistPendingEpisodeReview as bW, withEpisodeReviewClaimAuthority as bX, withPendingEpisodeReviewSessionFence as bY };
1378
+ export type { EpisodeReviewDrainResult as $, AgentActor as A, AgentInterruptScope as B, AgentIterationProgress as C, AgentLimitReached as D, AgentListEntry as E, AgentMailboxMessage as F, AgentMetadataValue as G, AgentMutationOptions as H, AgentOutput as I, AgentProgressItem as J, AgentProgressKind as K, AgentProgressUpdate as L, AgentSpawnInput as M, AgentTreeSnapshot as N, AgentTurn as O, AgentTurnExecutor as P, AgentTurnRef as Q, AgentTurnState as R, AgentTurnSummary as S, EpisodeReviewActionInput as T, EpisodeReviewActionReceipt as U, EpisodeReviewClaim as W, EpisodeReviewDecision as X, EpisodeReviewDecisionInput as Y, EpisodeReviewDrainEligibility as Z, EpisodeReviewDrainOptions as _, AgentActorClient as a, MemoryContextIdentity as a$, EpisodeReviewFailureKind as a1, EpisodeReviewInputCheckpoint as a2, EpisodeReviewInputSpec as a3, EpisodeReviewJobSnapshot as a4, EpisodeReviewJobState as a5, EpisodeReviewJobStatus as a6, EpisodeReviewReceipt as a7, KodaXCompactMemoryProgress as a8, KodaXCompactMemorySeed as a9, KodaXSessionMessageEntry as aA, KodaXSessionMeta as aB, KodaXSessionNavigationOptions as aC, KodaXSessionPromotionRecord as aD, KodaXSessionRewindMarkerEntry as aE, KodaXSessionRuntimeInfo as aF, KodaXSessionScope as aG, KodaXSessionStorage as aH, KodaXSessionTreeNode as aI, KodaXSessionUiHistoryItem as aJ, KodaXSessionUiHistoryItemType as aK, KodaXSessionUiTextHistoryItem as aL, KodaXSessionUiTextHistoryItemType as aM, KodaXSessionUiToolCall as aN, KodaXSessionUiToolCallStatus as aO, KodaXSessionUiToolGroupHistoryItem as aP, KodaXSessionWorkspaceKind as aQ, MemoryActionProposal as aR, MemoryApplicability as aS, MemoryApplyPreview as aT, MemoryApplyResult as aU, MemoryApproval as aV, MemoryAuthority as aW, MemoryAutoCuratorInput as aX, MemoryAutoCuratorResult as aY, MemoryBodySnapshot as aZ, MemoryClaimKind as a_, KodaXExtensionSessionRecord as aa, KodaXExtensionSessionState as ab, KodaXExtensionStore as ac, KodaXExtensionStoreEntry as ad, KodaXGoalEventType as ae, KodaXGoalState as af, KodaXGoalStatus as ag, KodaXHandledMemoryOperation as ah, KodaXJsonValue as ai, KodaXMemoryInfluenceRef as aj, KodaXMemoryIntent as ak, KodaXMemoryOutcomeDigest as al, KodaXMemoryOutcomeEvidence as am, KodaXSessionArchiveMarkerEntry as an, KodaXSessionArtifactLedgerEntry as ao, KodaXSessionBranchSummaryEntry as ap, KodaXSessionClientNoticeEntry as aq, KodaXSessionCompactionEntry as ar, KodaXSessionData as as, KodaXSessionEntry as at, KodaXSessionEntryBase as au, KodaXSessionGoalEntry as av, KodaXSessionLabelEntry as aw, KodaXSessionLineage as ax, KodaXSessionMemoryOutcomeDigestEntry as ay, KodaXSessionMemoryReviewReceiptEntry as az, AgentActorOwner as b, MemoryController as b0, MemoryCuratorInput as b1, MemoryEpisodeReviewResult as b2, MemoryEvent as b3, MemoryGovernanceFinding as b4, MemoryGovernanceFindingKind as b5, MemoryGovernanceReport as b6, MemoryItemRef as b7, MemoryLifecycle as b8, MemoryLifecycleOperationResult as b9, PendingEpisodeReviewV1 as bA, PendingEpisodeReviewV2 as bB, SessionErrorMetadata as bC, MemoryManagementController as ba, MemoryPack as bb, MemoryPackHint as bc, MemoryPackInput as bd, MemoryPackTraceMetadata as be, MemoryProposalAction as bf, MemoryRefFilter as bg, MemoryRefKind as bh, MemoryRejectResult as bi, MemoryRememberInput as bj, MemoryRememberResult as bk, MemoryReviewCandidateRef as bl, MemoryReviewDraftAction as bm, MemoryReviewInput as bn, MemoryReviewModelInput as bo, MemoryReviewPersistenceDecision as bp, MemoryReviewPersistenceKind as bq, MemoryReviewPlan as br, MemoryReviewRunner as bs, MemoryReviewTrigger as bt, MemoryScope as bu, MemorySourceAdapter as bv, MemoryVisibility as bw, PendingEpisodeReview as bx, PendingEpisodeReviewFilter as by, PendingEpisodeReviewSummary as bz, AgentActorSaveAttempt as c, AgentActorSaveDiagnostics as d, AgentActorSavePhase as e, AgentActorSaveTiming as f, AgentActorSnapshot as g, AgentActorSnapshotV1 as h, AgentActorSnapshotV2 as i, AgentActorState as j, AgentActorStore as k, AgentArtifactDescriptor as l, AgentBudgetAdmission as m, AgentBudgetAdmissionInput as n, AgentBudgetExhausted as o, AgentBudgetPort as p, AgentCapabilities as q, AgentDataClassification as r, AgentDetail as s, AgentEvent as t, AgentEventKind as u, AgentExecutionInput as v, AgentExecutionKind as w, AgentExecutionResult as x, AgentFollowupResult as y, AgentForkTurns as z };