@ai-agent-forge/agent-forge 0.88.2 → 0.88.4

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 (460) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/README.md +1 -1
  3. package/bundled-plugins/agent-loop-policy/agent-forge.json +1 -1
  4. package/bundled-plugins/agent-loop-policy/plugin.json +1 -1
  5. package/bundled-plugins/coding-tools/agent-forge.json +1 -1
  6. package/bundled-plugins/coding-tools/plugin.json +1 -1
  7. package/bundled-plugins/compaction-policy/agent-forge.json +1 -1
  8. package/bundled-plugins/compaction-policy/plugin.json +1 -1
  9. package/bundled-plugins/overflow-policy/agent-forge.json +1 -1
  10. package/bundled-plugins/overflow-policy/plugin.json +1 -1
  11. package/bundled-plugins/provider-failover/agent-forge.json +1 -1
  12. package/bundled-plugins/provider-failover/plugin.json +1 -1
  13. package/bundled-plugins/retry-policy/agent-forge.json +1 -1
  14. package/bundled-plugins/retry-policy/plugin.json +1 -1
  15. package/dist/artifacts/paged-read.d.ts +6 -1
  16. package/dist/artifacts/paged-read.d.ts.map +1 -1
  17. package/dist/artifacts/paged-read.js.map +1 -1
  18. package/dist/bundle/.build-manifest.json +244 -234
  19. package/dist/bundle/chunks/{anthropic-messages-PLAKXR73.js → anthropic-messages-3FJHRAJL.js} +2 -2
  20. package/dist/bundle/chunks/anthropic.js +1 -1
  21. package/dist/bundle/chunks/{azure-openai-responses-OUWQ2AZD.js → azure-openai-responses-GCL47IDS.js} +1 -1
  22. package/dist/bundle/chunks/bedrock-converse-stream.js +1 -1
  23. package/dist/bundle/chunks/{chunk-6F5JWGKE.js → chunk-32YDZI4J.js} +1 -1
  24. package/dist/bundle/chunks/{chunk-LSP24WNH.js → chunk-755VNWIF.js} +12 -12
  25. package/dist/bundle/chunks/{chunk-DRQDKNXA.js → chunk-BVVSHK6W.js} +1 -1
  26. package/dist/bundle/chunks/{chunk-HTC5K5SM.js → chunk-HEL6TAWE.js} +95 -90
  27. package/dist/bundle/chunks/{chunk-6R7UI4IY.js → chunk-QDLOMKF6.js} +1 -1
  28. package/dist/bundle/chunks/{chunk-44I47ACN.js → chunk-V3ACW7VD.js} +1 -1
  29. package/dist/bundle/chunks/{google-generative-ai-DLII6DAT.js → google-generative-ai-6BMXWA44.js} +1 -1
  30. package/dist/bundle/chunks/{google-vertex-G7BZL7GM.js → google-vertex-6H7NLRTK.js} +1 -1
  31. package/dist/bundle/chunks/image-resize-worker.js +1 -1
  32. package/dist/bundle/chunks/{mistral-conversations-JXUK24ID.js → mistral-conversations-IXUHSFSJ.js} +1 -1
  33. package/dist/bundle/chunks/{openai-codex-responses-5GSGFIPG.js → openai-codex-responses-YHUAEVCM.js} +1 -1
  34. package/dist/bundle/chunks/openai-codex.js +1 -1
  35. package/dist/bundle/chunks/{openai-completions-EI2I6DTG.js → openai-completions-ULQCFC72.js} +1 -1
  36. package/dist/bundle/chunks/openai-responses-NLLAJDPS.js +2 -0
  37. package/dist/bundle/chunks/{openrouter-images-G4GQRUSG.js → openrouter-images-GZZQZXMS.js} +1 -1
  38. package/dist/bundle/chunks/openrouter.js +1 -1
  39. package/dist/bundle/chunks/{pi-messages-PWU2VJMR.js → pi-messages-EJTI2EJ3.js} +1 -1
  40. package/dist/bundle/chunks/virtual-modules-TQWEGNNZ.js +5 -0
  41. package/dist/bundle/cli.js +1 -1
  42. package/dist/bundle/client.js +1 -1
  43. package/dist/bundle/index.js +1 -1
  44. package/dist/bundle/rpc-entry.js +1 -1
  45. package/dist/cli/args.d.ts +0 -1
  46. package/dist/cli/args.d.ts.map +1 -1
  47. package/dist/cli/args.js +1 -4
  48. package/dist/cli/args.js.map +1 -1
  49. package/dist/cli/config-selector.d.ts.map +1 -1
  50. package/dist/cli/config-selector.js +1 -1
  51. package/dist/cli/config-selector.js.map +1 -1
  52. package/dist/cli/experimental/cli.d.ts +3 -3
  53. package/dist/cli/experimental/cli.d.ts.map +1 -1
  54. package/dist/cli/experimental/cli.js +2 -2
  55. package/dist/cli/experimental/cli.js.map +1 -1
  56. package/dist/cli/experimental/commands/agent-forge.d.ts +15 -0
  57. package/dist/cli/experimental/commands/agent-forge.d.ts.map +1 -0
  58. package/dist/cli/experimental/commands/{pi.js → agent-forge.js} +4 -4
  59. package/dist/cli/experimental/commands/agent-forge.js.map +1 -0
  60. package/dist/cli/startup-ui.d.ts.map +1 -1
  61. package/dist/cli/startup-ui.js +1 -1
  62. package/dist/cli/startup-ui.js.map +1 -1
  63. package/dist/config.d.ts +4 -4
  64. package/dist/config.d.ts.map +1 -1
  65. package/dist/config.js +7 -7
  66. package/dist/config.js.map +1 -1
  67. package/dist/core/agent-forge-manifest.d.ts +7 -0
  68. package/dist/core/agent-forge-manifest.d.ts.map +1 -0
  69. package/dist/core/{pi-manifest.js → agent-forge-manifest.js} +4 -4
  70. package/dist/core/agent-forge-manifest.js.map +1 -0
  71. package/dist/core/agent-session-compaction.d.ts +1 -1
  72. package/dist/core/agent-session-compaction.d.ts.map +1 -1
  73. package/dist/core/agent-session-compaction.js +3 -3
  74. package/dist/core/agent-session-compaction.js.map +1 -1
  75. package/dist/core/agent-session-lifecycle.d.ts.map +1 -1
  76. package/dist/core/agent-session-lifecycle.js +12 -1
  77. package/dist/core/agent-session-lifecycle.js.map +1 -1
  78. package/dist/core/agent-session-projection.d.ts.map +1 -1
  79. package/dist/core/agent-session-projection.js +3 -3
  80. package/dist/core/agent-session-projection.js.map +1 -1
  81. package/dist/core/agent-session-services.d.ts +1 -1
  82. package/dist/core/agent-session-services.d.ts.map +1 -1
  83. package/dist/core/agent-session-services.js +1 -1
  84. package/dist/core/agent-session-services.js.map +1 -1
  85. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  86. package/dist/core/compaction/branch-summarization.js +1 -1
  87. package/dist/core/compaction/branch-summarization.js.map +1 -1
  88. package/dist/core/experimental.d.ts.map +1 -1
  89. package/dist/core/experimental.js +1 -3
  90. package/dist/core/experimental.js.map +1 -1
  91. package/dist/core/extensions/capability-plugin.d.ts.map +1 -1
  92. package/dist/core/extensions/capability-plugin.js +15 -8
  93. package/dist/core/extensions/capability-plugin.js.map +1 -1
  94. package/dist/core/extensions/capability-runtime-store.d.ts +20 -1
  95. package/dist/core/extensions/capability-runtime-store.d.ts.map +1 -1
  96. package/dist/core/extensions/capability-runtime-store.js +67 -0
  97. package/dist/core/extensions/capability-runtime-store.js.map +1 -1
  98. package/dist/core/extensions/capability-runtime-types.d.ts +14 -0
  99. package/dist/core/extensions/capability-runtime-types.d.ts.map +1 -1
  100. package/dist/core/extensions/capability-runtime-types.js +7 -1
  101. package/dist/core/extensions/capability-runtime-types.js.map +1 -1
  102. package/dist/core/extensions/capability-runtime.d.ts.map +1 -1
  103. package/dist/core/extensions/capability-runtime.js +144 -42
  104. package/dist/core/extensions/capability-runtime.js.map +1 -1
  105. package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
  106. package/dist/core/extensions/virtual-modules.js +12 -4
  107. package/dist/core/extensions/virtual-modules.js.map +1 -1
  108. package/dist/core/facade/coding-agent-facade.d.ts +1 -1
  109. package/dist/core/facade/coding-agent-facade.d.ts.map +1 -1
  110. package/dist/core/facade/coding-agent-facade.js +1 -1
  111. package/dist/core/facade/coding-agent-facade.js.map +1 -1
  112. package/dist/core/i18n/locales/zh-cn/core-contract-final.d.ts +1 -1
  113. package/dist/core/i18n/locales/zh-cn/core-contract-final.d.ts.map +1 -1
  114. package/dist/core/i18n/locales/zh-cn/core-contract-final.js +3 -3
  115. package/dist/core/i18n/locales/zh-cn/core-contract-final.js.map +1 -1
  116. package/dist/core/i18n/locales/zh-cn/core-contract-plugins.d.ts.map +1 -1
  117. package/dist/core/i18n/locales/zh-cn/core-contract-plugins.js +1 -1
  118. package/dist/core/i18n/locales/zh-cn/core-contract-plugins.js.map +1 -1
  119. package/dist/core/i18n/locales/zh-cn/core-errors.d.ts.map +1 -1
  120. package/dist/core/i18n/locales/zh-cn/core-errors.js +1 -1
  121. package/dist/core/i18n/locales/zh-cn/core-errors.js.map +1 -1
  122. package/dist/core/i18n/locales/zh-cn/tui-components-misc.d.ts.map +1 -1
  123. package/dist/core/i18n/locales/zh-cn/tui-components-misc.js +2 -0
  124. package/dist/core/i18n/locales/zh-cn/tui-components-misc.js.map +1 -1
  125. package/dist/core/model-resolver.d.ts +2 -0
  126. package/dist/core/model-resolver.d.ts.map +1 -1
  127. package/dist/core/model-resolver.js +4 -1
  128. package/dist/core/model-resolver.js.map +1 -1
  129. package/dist/core/package-resource-collection.d.ts.map +1 -1
  130. package/dist/core/package-resource-collection.js +5 -5
  131. package/dist/core/package-resource-collection.js.map +1 -1
  132. package/dist/core/provider-composer.d.ts.map +1 -1
  133. package/dist/core/provider-composer.js +3 -3
  134. package/dist/core/provider-composer.js.map +1 -1
  135. package/dist/core/resource-loader.d.ts.map +1 -1
  136. package/dist/core/resource-loader.js +1 -1
  137. package/dist/core/resource-loader.js.map +1 -1
  138. package/dist/core/sdk.d.ts +1 -1
  139. package/dist/core/sdk.d.ts.map +1 -1
  140. package/dist/core/sdk.js +6 -7
  141. package/dist/core/sdk.js.map +1 -1
  142. package/dist/core/session-manager.d.ts.map +1 -1
  143. package/dist/core/session-manager.js +4 -4
  144. package/dist/core/session-manager.js.map +1 -1
  145. package/dist/core/settings-manager.d.ts.map +1 -1
  146. package/dist/core/settings-manager.js +5 -10
  147. package/dist/core/settings-manager.js.map +1 -1
  148. package/dist/core/timings.d.ts.map +1 -1
  149. package/dist/core/timings.js +1 -3
  150. package/dist/core/timings.js.map +1 -1
  151. package/dist/core/tools/render-utils.d.ts +1 -1
  152. package/dist/core/tools/render-utils.d.ts.map +1 -1
  153. package/dist/core/tools/render-utils.js.map +1 -1
  154. package/dist/core/tools/tool-definition.d.ts +1 -1
  155. package/dist/core/tools/tool-definition.d.ts.map +1 -1
  156. package/dist/core/tools/tool-definition.js.map +1 -1
  157. package/dist/core/trace-retention.d.ts +16 -1
  158. package/dist/core/trace-retention.d.ts.map +1 -1
  159. package/dist/core/trace-retention.js +43 -20
  160. package/dist/core/trace-retention.js.map +1 -1
  161. package/dist/export-html/ansi-to-html.d.ts.map +1 -0
  162. package/dist/export-html/ansi-to-html.js.map +1 -0
  163. package/dist/{core/export-html → export-html}/index.d.ts +1 -1
  164. package/dist/export-html/index.d.ts.map +1 -0
  165. package/dist/{core/export-html → export-html}/index.js +5 -5
  166. package/dist/export-html/index.js.map +1 -0
  167. package/dist/{core/export-html → export-html}/tool-renderer.d.ts +2 -2
  168. package/dist/export-html/tool-renderer.d.ts.map +1 -0
  169. package/dist/export-html/tool-renderer.js.map +1 -0
  170. package/dist/{modes/interactive → host}/model-catalog-refresh.d.ts +1 -1
  171. package/dist/host/model-catalog-refresh.d.ts.map +1 -0
  172. package/dist/{modes/interactive → host}/model-catalog-refresh.js +1 -1
  173. package/dist/host/model-catalog-refresh.js.map +1 -0
  174. package/dist/index.d.ts +5 -5
  175. package/dist/index.d.ts.map +1 -1
  176. package/dist/index.js +12 -12
  177. package/dist/index.js.map +1 -1
  178. package/dist/main.d.ts.map +1 -1
  179. package/dist/main.js +25 -14
  180. package/dist/main.js.map +1 -1
  181. package/dist/modes/interactive/components/agents-view.d.ts.map +1 -1
  182. package/dist/modes/interactive/components/agents-view.js +1 -1
  183. package/dist/modes/interactive/components/agents-view.js.map +1 -1
  184. package/dist/modes/interactive/components/armin.d.ts.map +1 -1
  185. package/dist/modes/interactive/components/armin.js +1 -1
  186. package/dist/modes/interactive/components/armin.js.map +1 -1
  187. package/dist/modes/interactive/components/assistant-message.d.ts +3 -0
  188. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  189. package/dist/modes/interactive/components/assistant-message.js +83 -24
  190. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  191. package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -1
  192. package/dist/modes/interactive/components/bash-execution.js +1 -1
  193. package/dist/modes/interactive/components/bash-execution.js.map +1 -1
  194. package/dist/modes/interactive/components/bordered-loader.d.ts +1 -1
  195. package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -1
  196. package/dist/modes/interactive/components/bordered-loader.js.map +1 -1
  197. package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -1
  198. package/dist/modes/interactive/components/branch-summary-message.js +1 -1
  199. package/dist/modes/interactive/components/branch-summary-message.js.map +1 -1
  200. package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -1
  201. package/dist/modes/interactive/components/compaction-summary-message.js +1 -1
  202. package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -1
  203. package/dist/modes/interactive/components/config-selector.d.ts.map +1 -1
  204. package/dist/modes/interactive/components/config-selector.js +1 -1
  205. package/dist/modes/interactive/components/config-selector.js.map +1 -1
  206. package/dist/modes/interactive/components/custom-entry.d.ts.map +1 -1
  207. package/dist/modes/interactive/components/custom-entry.js +1 -1
  208. package/dist/modes/interactive/components/custom-entry.js.map +1 -1
  209. package/dist/modes/interactive/components/custom-message.d.ts.map +1 -1
  210. package/dist/modes/interactive/components/custom-message.js +1 -1
  211. package/dist/modes/interactive/components/custom-message.js.map +1 -1
  212. package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -1
  213. package/dist/modes/interactive/components/daxnuts.js +1 -1
  214. package/dist/modes/interactive/components/daxnuts.js.map +1 -1
  215. package/dist/modes/interactive/components/dialog-editor.d.ts.map +1 -1
  216. package/dist/modes/interactive/components/dialog-editor.js +1 -1
  217. package/dist/modes/interactive/components/dialog-editor.js.map +1 -1
  218. package/dist/modes/interactive/components/dialog-input.d.ts.map +1 -1
  219. package/dist/modes/interactive/components/dialog-input.js +1 -1
  220. package/dist/modes/interactive/components/dialog-input.js.map +1 -1
  221. package/dist/modes/interactive/components/dialog-selector.d.ts.map +1 -1
  222. package/dist/modes/interactive/components/dialog-selector.js +1 -1
  223. package/dist/modes/interactive/components/dialog-selector.js.map +1 -1
  224. package/dist/modes/interactive/components/diff.d.ts.map +1 -1
  225. package/dist/modes/interactive/components/diff.js +1 -1
  226. package/dist/modes/interactive/components/diff.js.map +1 -1
  227. package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -1
  228. package/dist/modes/interactive/components/dynamic-border.js +1 -1
  229. package/dist/modes/interactive/components/dynamic-border.js.map +1 -1
  230. package/dist/modes/interactive/components/first-time-setup.d.ts +1 -1
  231. package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -1
  232. package/dist/modes/interactive/components/first-time-setup.js +1 -1
  233. package/dist/modes/interactive/components/first-time-setup.js.map +1 -1
  234. package/dist/modes/interactive/components/footer.d.ts.map +1 -1
  235. package/dist/modes/interactive/components/footer.js +1 -1
  236. package/dist/modes/interactive/components/footer.js.map +1 -1
  237. package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -1
  238. package/dist/modes/interactive/components/keybinding-hints.js +1 -1
  239. package/dist/modes/interactive/components/keybinding-hints.js.map +1 -1
  240. package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -1
  241. package/dist/modes/interactive/components/login-dialog.js +1 -1
  242. package/dist/modes/interactive/components/login-dialog.js.map +1 -1
  243. package/dist/modes/interactive/components/mermaid.d.ts +1 -1
  244. package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
  245. package/dist/modes/interactive/components/mermaid.js.map +1 -1
  246. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  247. package/dist/modes/interactive/components/model-selector.js +2 -2
  248. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  249. package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -1
  250. package/dist/modes/interactive/components/oauth-selector.js +1 -1
  251. package/dist/modes/interactive/components/oauth-selector.js.map +1 -1
  252. package/dist/modes/interactive/components/plugin-manager-entry.d.ts.map +1 -1
  253. package/dist/modes/interactive/components/plugin-manager-entry.js +1 -1
  254. package/dist/modes/interactive/components/plugin-manager-entry.js.map +1 -1
  255. package/dist/modes/interactive/components/plugin-selection-entry.d.ts.map +1 -1
  256. package/dist/modes/interactive/components/plugin-selection-entry.js +1 -1
  257. package/dist/modes/interactive/components/plugin-selection-entry.js.map +1 -1
  258. package/dist/modes/interactive/components/queue-manager-selector.d.ts.map +1 -1
  259. package/dist/modes/interactive/components/queue-manager-selector.js +1 -1
  260. package/dist/modes/interactive/components/queue-manager-selector.js.map +1 -1
  261. package/dist/modes/interactive/components/render-types.d.ts +1 -1
  262. package/dist/modes/interactive/components/render-types.d.ts.map +1 -1
  263. package/dist/modes/interactive/components/render-types.js.map +1 -1
  264. package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
  265. package/dist/modes/interactive/components/scoped-models-selector.js +1 -1
  266. package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
  267. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  268. package/dist/modes/interactive/components/session-selector.js +2 -2
  269. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  270. package/dist/modes/interactive/components/settings-selector.d.ts +1 -1
  271. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  272. package/dist/modes/interactive/components/settings-selector.js +1 -1
  273. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  274. package/dist/modes/interactive/components/settings-submenu.d.ts.map +1 -1
  275. package/dist/modes/interactive/components/settings-submenu.js +1 -1
  276. package/dist/modes/interactive/components/settings-submenu.js.map +1 -1
  277. package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -1
  278. package/dist/modes/interactive/components/show-images-selector.js +1 -1
  279. package/dist/modes/interactive/components/show-images-selector.js.map +1 -1
  280. package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -1
  281. package/dist/modes/interactive/components/skill-invocation-message.js +1 -1
  282. package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -1
  283. package/dist/modes/interactive/components/status-indicator.d.ts.map +1 -1
  284. package/dist/modes/interactive/components/status-indicator.js +1 -1
  285. package/dist/modes/interactive/components/status-indicator.js.map +1 -1
  286. package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -1
  287. package/dist/modes/interactive/components/theme-selector.js +1 -1
  288. package/dist/modes/interactive/components/theme-selector.js.map +1 -1
  289. package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
  290. package/dist/modes/interactive/components/thinking-selector.js +1 -1
  291. package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
  292. package/dist/modes/interactive/components/tool-execution.d.ts +2 -0
  293. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  294. package/dist/modes/interactive/components/tool-execution.js +96 -4
  295. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  296. package/dist/modes/interactive/components/tool-run-group.d.ts.map +1 -1
  297. package/dist/modes/interactive/components/tool-run-group.js +1 -1
  298. package/dist/modes/interactive/components/tool-run-group.js.map +1 -1
  299. package/dist/modes/interactive/components/tree-list.d.ts.map +1 -1
  300. package/dist/modes/interactive/components/tree-list.js +1 -1
  301. package/dist/modes/interactive/components/tree-list.js.map +1 -1
  302. package/dist/modes/interactive/components/tree-render.d.ts.map +1 -1
  303. package/dist/modes/interactive/components/tree-render.js +1 -1
  304. package/dist/modes/interactive/components/tree-render.js.map +1 -1
  305. package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -1
  306. package/dist/modes/interactive/components/tree-selector.js +1 -1
  307. package/dist/modes/interactive/components/tree-selector.js.map +1 -1
  308. package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -1
  309. package/dist/modes/interactive/components/user-message-selector.js +1 -1
  310. package/dist/modes/interactive/components/user-message-selector.js.map +1 -1
  311. package/dist/modes/interactive/components/user-message.d.ts.map +1 -1
  312. package/dist/modes/interactive/components/user-message.js +1 -1
  313. package/dist/modes/interactive/components/user-message.js.map +1 -1
  314. package/dist/modes/interactive/components/workflow-view.d.ts.map +1 -1
  315. package/dist/modes/interactive/components/workflow-view.js +1 -1
  316. package/dist/modes/interactive/components/workflow-view.js.map +1 -1
  317. package/dist/modes/interactive/interactive-auth.d.ts +1 -1
  318. package/dist/modes/interactive/interactive-auth.d.ts.map +1 -1
  319. package/dist/modes/interactive/interactive-auth.js +1 -1
  320. package/dist/modes/interactive/interactive-auth.js.map +1 -1
  321. package/dist/modes/interactive/interactive-commands.d.ts +123 -6
  322. package/dist/modes/interactive/interactive-commands.d.ts.map +1 -1
  323. package/dist/modes/interactive/interactive-commands.js +691 -4
  324. package/dist/modes/interactive/interactive-commands.js.map +1 -1
  325. package/dist/modes/interactive/interactive-events.d.ts +174 -0
  326. package/dist/modes/interactive/interactive-events.d.ts.map +1 -0
  327. package/dist/modes/interactive/interactive-events.js +704 -0
  328. package/dist/modes/interactive/interactive-events.js.map +1 -0
  329. package/dist/modes/interactive/interactive-format.d.ts.map +1 -1
  330. package/dist/modes/interactive/interactive-format.js +1 -1
  331. package/dist/modes/interactive/interactive-format.js.map +1 -1
  332. package/dist/modes/interactive/interactive-lifecycle.d.ts +94 -0
  333. package/dist/modes/interactive/interactive-lifecycle.d.ts.map +1 -0
  334. package/dist/modes/interactive/interactive-lifecycle.js +177 -0
  335. package/dist/modes/interactive/interactive-lifecycle.js.map +1 -0
  336. package/dist/modes/interactive/interactive-mode.d.ts +240 -133
  337. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  338. package/dist/modes/interactive/interactive-mode.js +251 -2159
  339. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  340. package/dist/modes/interactive/interactive-queues.d.ts +96 -0
  341. package/dist/modes/interactive/interactive-queues.d.ts.map +1 -0
  342. package/dist/modes/interactive/interactive-queues.js +183 -0
  343. package/dist/modes/interactive/interactive-queues.js.map +1 -0
  344. package/dist/modes/interactive/interactive-selectors.d.ts +95 -5
  345. package/dist/modes/interactive/interactive-selectors.d.ts.map +1 -1
  346. package/dist/modes/interactive/interactive-selectors.js +517 -6
  347. package/dist/modes/interactive/interactive-selectors.js.map +1 -1
  348. package/dist/modes/interactive/startup-services.d.ts +31 -0
  349. package/dist/modes/interactive/startup-services.d.ts.map +1 -0
  350. package/dist/modes/interactive/startup-services.js +123 -0
  351. package/dist/modes/interactive/startup-services.js.map +1 -0
  352. package/dist/modes/memory-preheat.d.ts +11 -0
  353. package/dist/modes/memory-preheat.d.ts.map +1 -0
  354. package/dist/modes/memory-preheat.js +20 -0
  355. package/dist/modes/memory-preheat.js.map +1 -0
  356. package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
  357. package/dist/modes/rpc/rpc-mode.js +3 -1
  358. package/dist/modes/rpc/rpc-mode.js.map +1 -1
  359. package/dist/plugins/ecosystem/node-package-install-host.d.ts +9 -1
  360. package/dist/plugins/ecosystem/node-package-install-host.d.ts.map +1 -1
  361. package/dist/plugins/ecosystem/node-package-install-host.js +79 -0
  362. package/dist/plugins/ecosystem/node-package-install-host.js.map +1 -1
  363. package/dist/remote/server-assembly.d.ts.map +1 -1
  364. package/dist/remote/server-assembly.js +7 -2
  365. package/dist/remote/server-assembly.js.map +1 -1
  366. package/dist/suites/builtin-suites.d.ts.map +1 -0
  367. package/dist/suites/builtin-suites.js.map +1 -0
  368. package/dist/suites/resolved-agent-profile.d.ts.map +1 -0
  369. package/dist/suites/resolved-agent-profile.js.map +1 -0
  370. package/dist/suites/suite-lifecycle.d.ts.map +1 -0
  371. package/dist/suites/suite-lifecycle.js.map +1 -0
  372. package/dist/suites/suite-loader.d.ts.map +1 -0
  373. package/dist/suites/suite-loader.js.map +1 -0
  374. package/dist/{modes/interactive/theme → theme}/dark.json +1 -1
  375. package/dist/{modes/interactive/theme → theme}/light.json +1 -1
  376. package/dist/{modes/interactive/theme → theme}/theme-controller.d.ts +1 -1
  377. package/dist/theme/theme-controller.d.ts.map +1 -0
  378. package/dist/{modes/interactive/theme → theme}/theme-controller.js +1 -1
  379. package/dist/theme/theme-controller.js.map +1 -0
  380. package/dist/{modes/interactive/theme → theme}/theme.d.ts +1 -1
  381. package/dist/theme/theme.d.ts.map +1 -0
  382. package/dist/{modes/interactive/theme → theme}/theme.js +5 -5
  383. package/dist/theme/theme.js.map +1 -0
  384. package/docs/compaction.md +7 -7
  385. package/docs/environment-variables.md +10 -4
  386. package/docs/keybindings.md +3 -3
  387. package/docs/models.md +17 -17
  388. package/docs/packages.md +1 -1
  389. package/docs/prompt-templates.md +1 -1
  390. package/docs/rpc.md +2 -2
  391. package/docs/sdk.md +5 -5
  392. package/docs/session-format.md +3 -3
  393. package/docs/settings.md +15 -1
  394. package/docs/shell-aliases.md +1 -1
  395. package/docs/skills.md +1 -1
  396. package/docs/terminal-setup.md +17 -17
  397. package/docs/themes.md +5 -5
  398. package/docs/tmux.md +4 -4
  399. package/docs/tui.md +1 -1
  400. package/docs/usage.md +292 -292
  401. package/docs/windows.md +1 -1
  402. package/examples/extensions/bash-spawn-hook/index.ts +1 -1
  403. package/examples/extensions/dynamic-resources/dynamic.json +1 -1
  404. package/examples/extensions/mcp-stdio/index.d.ts +64 -0
  405. package/examples/extensions/mcp-stdio/index.d.ts.map +1 -0
  406. package/examples/extensions/mcp-stdio/index.js +292 -0
  407. package/examples/extensions/mcp-stdio/index.js.map +1 -0
  408. package/examples/extensions/with-deps/package-lock.json +2 -2
  409. package/examples/extensions/with-deps/package.json +1 -6
  410. package/examples/extensions/with-deps/plugin.json +1 -1
  411. package/package.json +2 -2
  412. package/dist/bundle/chunks/openai-responses-AUJQ3NWT.js +0 -2
  413. package/dist/bundle/chunks/virtual-modules-MRXD3RWG.js +0 -5
  414. package/dist/cli/experimental/commands/pi.d.ts +0 -15
  415. package/dist/cli/experimental/commands/pi.d.ts.map +0 -1
  416. package/dist/cli/experimental/commands/pi.js.map +0 -1
  417. package/dist/core/export-html/ansi-to-html.d.ts.map +0 -1
  418. package/dist/core/export-html/ansi-to-html.js.map +0 -1
  419. package/dist/core/export-html/index.d.ts.map +0 -1
  420. package/dist/core/export-html/index.js.map +0 -1
  421. package/dist/core/export-html/tool-renderer.d.ts.map +0 -1
  422. package/dist/core/export-html/tool-renderer.js.map +0 -1
  423. package/dist/core/pi-manifest.d.ts +0 -7
  424. package/dist/core/pi-manifest.d.ts.map +0 -1
  425. package/dist/core/pi-manifest.js.map +0 -1
  426. package/dist/modes/interactive/model-catalog-refresh.d.ts.map +0 -1
  427. package/dist/modes/interactive/model-catalog-refresh.js.map +0 -1
  428. package/dist/modes/interactive/theme/theme-controller.d.ts.map +0 -1
  429. package/dist/modes/interactive/theme/theme-controller.js.map +0 -1
  430. package/dist/modes/interactive/theme/theme.d.ts.map +0 -1
  431. package/dist/modes/interactive/theme/theme.js.map +0 -1
  432. package/dist/profiles/builtin-suites.d.ts.map +0 -1
  433. package/dist/profiles/builtin-suites.js.map +0 -1
  434. package/dist/profiles/resolved-agent-profile.d.ts.map +0 -1
  435. package/dist/profiles/resolved-agent-profile.js.map +0 -1
  436. package/dist/profiles/suite-lifecycle.d.ts.map +0 -1
  437. package/dist/profiles/suite-lifecycle.js.map +0 -1
  438. package/dist/profiles/suite-loader.d.ts.map +0 -1
  439. package/dist/profiles/suite-loader.js.map +0 -1
  440. package/dist/utils/deprecation.d.ts +0 -4
  441. package/dist/utils/deprecation.d.ts.map +0 -1
  442. package/dist/utils/deprecation.js +0 -13
  443. package/dist/utils/deprecation.js.map +0 -1
  444. /package/dist/{core/export-html → export-html}/ansi-to-html.d.ts +0 -0
  445. /package/dist/{core/export-html → export-html}/ansi-to-html.js +0 -0
  446. /package/dist/{core/export-html → export-html}/template.css +0 -0
  447. /package/dist/{core/export-html → export-html}/template.html +0 -0
  448. /package/dist/{core/export-html → export-html}/template.js +0 -0
  449. /package/dist/{core/export-html → export-html}/tool-renderer.js +0 -0
  450. /package/dist/{core/export-html → export-html}/vendor/highlight.min.js +0 -0
  451. /package/dist/{core/export-html → export-html}/vendor/marked.min.js +0 -0
  452. /package/dist/{profiles → suites}/builtin-suites.d.ts +0 -0
  453. /package/dist/{profiles → suites}/builtin-suites.js +0 -0
  454. /package/dist/{profiles → suites}/resolved-agent-profile.d.ts +0 -0
  455. /package/dist/{profiles → suites}/resolved-agent-profile.js +0 -0
  456. /package/dist/{profiles → suites}/suite-lifecycle.d.ts +0 -0
  457. /package/dist/{profiles → suites}/suite-lifecycle.js +0 -0
  458. /package/dist/{profiles → suites}/suite-loader.d.ts +0 -0
  459. /package/dist/{profiles → suites}/suite-loader.js +0 -0
  460. /package/dist/{modes/interactive/theme → theme}/theme-schema.json +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tool-renderer.js","sourceRoot":"","sources":["../../src/export-html/tool-renderer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AA0BpD;;;;;GAKG;AACH,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAE3C,SAAS,mBAAmB,CAAC,IAAY,EAAW;IACnD,OAAO,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,CAAC;AAAA,CAC/D;AAED,SAAS,uBAAuB,CAAC,KAAe,EAAY;IAC3D,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,GAAG,GAAG,KAAK,CAAC,MAAM,CAAC;IACvB,OAAO,KAAK,GAAG,GAAG,IAAI,mBAAmB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAAE,KAAK,EAAE,CAAC;IACjE,OAAO,GAAG,GAAG,KAAK,IAAI,mBAAmB,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;QAAE,GAAG,EAAE,CAAC;IACjE,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAAA,CAC/B;AAED,MAAM,UAAU,sBAAsB,CAAC,IAA0B,EAAoB;IACpF,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC;IAE5D,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC5D,MAAM,wBAAwB,GAAG,IAAI,GAAG,EAAqB,CAAC;IAC9D,MAAM,cAAc,GAAG,IAAI,GAAG,EAAmC,CAAC;IAClE,MAAM,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AS,EAAE,KAAK,EAAE,EACpC,KAAK,EACL,mBAAmB,CAAC,UAAU,EAAE,wBAAwB,CAAC,GAAG,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,CAC/F,CAAC;gBACF,wBAAwB,CAAC,GAAG,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;gBAC5D,MAAM,QAAQ,GAAG,eAAe,CAAC,uBAAuB,CAAC,iBAAiB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;gBAE3F,OAAO;oBACN,GAAG,CAAC,SAAS,IAAI,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;oBAC7D,QAAQ;iBACR,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACR,yFAAyF;gBACzF,OAAO,SAAS,CAAC;YAClB,CAAC;QAAA,CACD;KACD,CAAC;AAAA,CACF","sourcesContent":["/**\n * Tool HTML renderer for custom tools in HTML export.\n *\n * Renders custom tool calls and results to HTML by invoking their TUI renderers\n * and converting the ANSI output to HTML.\n */\n\nimport type { ImageContent, TextContent } from \"@agent-forge/ai\";\nimport type { Component } from \"@agent-forge/tui\";\nimport type { ToolDefinition, ToolRenderContext } from \"../core/tools/tool-definition.ts\";\nimport type { Theme } from \"../theme/theme.ts\";\nimport { ansiLinesToHtml } from \"./ansi-to-html.ts\";\n\nexport interface ToolHtmlRendererDeps {\n\t/** Function to look up tool definition by name */\n\tgetToolDefinition: (name: string) => ToolDefinition | undefined;\n\t/** Theme for styling */\n\ttheme: Theme;\n\t/** Working directory for render context */\n\tcwd: string;\n\t/** Terminal width for rendering (default: 100) */\n\twidth?: number;\n}\n\nexport interface ToolHtmlRenderer {\n\t/** Render a tool call to HTML. Returns undefined if tool has no custom renderer. */\n\trenderCall(toolCallId: string, toolName: string, args: unknown): string | undefined;\n\t/** Render a tool result to collapsed/expanded HTML. Returns undefined if tool has no custom renderer. */\n\trenderResult(\n\t\ttoolCallId: string,\n\t\ttoolName: string,\n\t\tresult: Array<{ type: string; text?: string; data?: string; mimeType?: string }>,\n\t\tdetails: unknown,\n\t\tisError: boolean,\n\t): { collapsed?: string; expanded?: string } | undefined;\n}\n\n/**\n * Create a tool HTML renderer.\n *\n * The renderer looks up tool definitions and invokes their renderCall/renderResult\n * methods, converting the resulting TUI Component output (ANSI) to HTML.\n */\nconst ANSI_ESCAPE_REGEX = /\\x1b\\[[\\d;]*m/g;\n\nfunction isBlankRenderedLine(line: string): boolean {\n\treturn line.replace(ANSI_ESCAPE_REGEX, \"\").trim().length === 0;\n}\n\nfunction trimRenderedResultLines(lines: string[]): string[] {\n\tlet start = 0;\n\tlet end = lines.length;\n\twhile (start < end && isBlankRenderedLine(lines[start])) start++;\n\twhile (end > start && isBlankRenderedLine(lines[end - 1])) end--;\n\treturn lines.slice(start, end);\n}\n\nexport function createToolHtmlRenderer(deps: ToolHtmlRendererDeps): ToolHtmlRenderer {\n\tconst { getToolDefinition, theme, cwd, width = 100 } = deps;\n\n\tconst renderedCallComponents = new Map<string, Component>();\n\tconst renderedResultComponents = new Map<string, Component>();\n\tconst renderedStates = new Map<string, Record<string, unknown>>();\n\tconst renderedArgs = new Map<string, unknown>();\n\n\tconst getState = (toolCallId: string): Record<string, unknown> => {\n\t\tlet state = renderedStates.get(toolCallId);\n\t\tif (!state) {\n\t\t\tstate = {};\n\t\t\trenderedStates.set(toolCallId, state);\n\t\t}\n\t\treturn state;\n\t};\n\n\tconst createRenderContext = (\n\t\ttoolCallId: string,\n\t\tlastComponent: Component | undefined,\n\t\texpanded: boolean,\n\t\tisPartial: boolean,\n\t\tisError: boolean,\n\t): ToolRenderContext => {\n\t\treturn {\n\t\t\targs: renderedArgs.get(toolCallId),\n\t\t\ttoolCallId,\n\t\t\tinvalidate: () => {},\n\t\t\tlastComponent,\n\t\t\tstate: getState(toolCallId),\n\t\t\tcwd,\n\t\t\texecutionStarted: true,\n\t\t\targsComplete: true,\n\t\t\tisPartial,\n\t\t\texpanded,\n\t\t\tshowImages: false,\n\t\t\tisError,\n\t\t};\n\t};\n\n\treturn {\n\t\trenderCall(toolCallId: string, toolName: string, args: unknown): string | undefined {\n\t\t\ttry {\n\t\t\t\trenderedArgs.set(toolCallId, args);\n\t\t\t\tconst toolDef = getToolDefinition(toolName);\n\t\t\t\tif (!toolDef?.renderCall) {\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\n\t\t\t\tconst component = toolDef.renderCall(\n\t\t\t\t\targs,\n\t\t\t\t\ttheme,\n\t\t\t\t\tcreateRenderContext(toolCallId, renderedCallComponents.get(toolCallId), false, true, false),\n\t\t\t\t);\n\t\t\t\trenderedCallComponents.set(toolCallId, component);\n\t\t\t\tconst lines = component.render(width);\n\t\t\t\treturn ansiLinesToHtml(lines);\n\t\t\t} catch {\n\t\t\t\t// On error, return undefined so HTML export can fall back to structured result rendering\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t},\n\n\t\trenderResult(\n\t\t\ttoolCallId: string,\n\t\t\ttoolName: string,\n\t\t\tresult: Array<{ type: string; text?: string; data?: string; mimeType?: string }>,\n\t\t\tdetails: unknown,\n\t\t\tisError: boolean,\n\t\t): { collapsed?: string; expanded?: string } | undefined {\n\t\t\ttry {\n\t\t\t\tconst toolDef = getToolDefinition(toolName);\n\t\t\t\tif (!toolDef?.renderResult) {\n\t\t\t\t\treturn undefined;\n\t\t\t\t}\n\n\t\t\t\t// Build AgentToolResult from content array\n\t\t\t\t// Cast content since session storage uses generic object types\n\t\t\t\tconst agentToolResult = {\n\t\t\t\t\tcontent: result as (TextContent | ImageContent)[],\n\t\t\t\t\tdetails,\n\t\t\t\t\tisError,\n\t\t\t\t};\n\n\t\t\t\t// Render collapsed\n\t\t\t\tconst collapsedComponent = toolDef.renderResult(\n\t\t\t\t\tagentToolResult,\n\t\t\t\t\t{ expanded: false, isPartial: false },\n\t\t\t\t\ttheme,\n\t\t\t\t\tcreateRenderContext(toolCallId, renderedResultComponents.get(toolCallId), false, false, isError),\n\t\t\t\t);\n\t\t\t\trenderedResultComponents.set(toolCallId, collapsedComponent);\n\t\t\t\tconst collapsed = ansiLinesToHtml(trimRenderedResultLines(collapsedComponent.render(width)));\n\n\t\t\t\t// Render expanded\n\t\t\t\tconst expandedComponent = toolDef.renderResult(\n\t\t\t\t\tagentToolResult,\n\t\t\t\t\t{ expanded: true, isPartial: false },\n\t\t\t\t\ttheme,\n\t\t\t\t\tcreateRenderContext(toolCallId, renderedResultComponents.get(toolCallId), true, false, isError),\n\t\t\t\t);\n\t\t\t\trenderedResultComponents.set(toolCallId, expandedComponent);\n\t\t\t\tconst expanded = ansiLinesToHtml(trimRenderedResultLines(expandedComponent.render(width)));\n\n\t\t\t\treturn {\n\t\t\t\t\t...(collapsed && collapsed !== expanded ? { collapsed } : {}),\n\t\t\t\t\texpanded,\n\t\t\t\t};\n\t\t\t} catch {\n\t\t\t\t// On error, return undefined so HTML export can fall back to structured result rendering\n\t\t\t\treturn undefined;\n\t\t\t}\n\t\t},\n\t};\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import type { ModelsRefreshResult } from "@agent-forge/ai";
2
- import type { ModelRuntime } from "../../core/model-runtime.ts";
2
+ import type { ModelRuntime } from "../core/model-runtime.ts";
3
3
  /**
4
4
  * Narrow catalog-refresh projection of ModelRuntime (D-047): the only surface
5
5
  * the shared interactive catalog-refresh coordinator consumes. Exported for
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-catalog-refresh.d.ts","sourceRoot":"","sources":["../../src/host/model-catalog-refresh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAyChE,+GAA+G;AAC/G,wBAAgB,oBAAoB,CACnC,YAAY,EAAE,mBAAmB,EACjC,MAAM,EAAE,WAAW,GACjB,OAAO,CAAC,mBAAmB,CAAC,CAE9B","sourcesContent":["import type { ModelsRefreshResult } from \"@agent-forge/ai\";\nimport type { ModelRuntime } from \"../core/model-runtime.ts\";\nimport { raceWithAbortSignal } from \"../utils/abort.ts\";\n\n/**\n * Narrow catalog-refresh projection of ModelRuntime (D-047): the only surface\n * the shared interactive catalog-refresh coordinator consumes. Exported for\n * the stable facade's `getModelCatalog()` projection member.\n */\nexport type ModelCatalogRuntime = Pick<ModelRuntime, \"refresh\">;\n\ninterface ActiveModelCatalogRefresh {\n\tcontroller: AbortController;\n\tpromise: Promise<ModelsRefreshResult>;\n\twaiters: number;\n}\n\nclass ModelCatalogRefreshCoordinator {\n\tprivate readonly activeByRuntime = new WeakMap<ModelCatalogRuntime, ActiveModelCatalogRefresh>();\n\n\trefresh(modelRuntime: ModelCatalogRuntime, signal: AbortSignal): Promise<ModelsRefreshResult> {\n\t\tsignal.throwIfAborted();\n\t\tlet active = this.activeByRuntime.get(modelRuntime);\n\t\tif (!active) {\n\t\t\tconst controller = new AbortController();\n\t\t\tlet created!: ActiveModelCatalogRefresh;\n\t\t\tconst operation = modelRuntime.refresh({ signal: controller.signal });\n\t\t\tconst promise = raceWithAbortSignal(operation, controller.signal).finally(() => {\n\t\t\t\t// v8 ignore next -- an entry is only replaced after its own settlement deleted it\n\t\t\t\tif (this.activeByRuntime.get(modelRuntime) === created) {\n\t\t\t\t\tthis.activeByRuntime.delete(modelRuntime);\n\t\t\t\t}\n\t\t\t});\n\t\t\tcreated = { controller, promise, waiters: 0 };\n\t\t\tactive = created;\n\t\t\tthis.activeByRuntime.set(modelRuntime, active);\n\t\t}\n\n\t\tactive.waiters++;\n\t\treturn raceWithAbortSignal(active.promise, signal).finally(() => {\n\t\t\tactive.waiters--;\n\t\t\tif (active.waiters === 0 && this.activeByRuntime.get(modelRuntime) === active) {\n\t\t\t\tactive.controller.abort();\n\t\t\t}\n\t\t});\n\t}\n}\n\nconst modelCatalogRefreshCoordinator = new ModelCatalogRefreshCoordinator();\n\n/** Share concurrent interactive all-catalog refreshes while keeping each caller's cancellation independent. */\nexport function refreshModelCatalogs(\n\tmodelRuntime: ModelCatalogRuntime,\n\tsignal: AbortSignal,\n): Promise<ModelsRefreshResult> {\n\treturn modelCatalogRefreshCoordinator.refresh(modelRuntime, signal);\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { raceWithAbortSignal } from "../../utils/abort.js";
1
+ import { raceWithAbortSignal } from "../utils/abort.js";
2
2
  class ModelCatalogRefreshCoordinator {
3
3
  activeByRuntime = new WeakMap();
4
4
  refresh(modelRuntime, signal) {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-catalog-refresh.js","sourceRoot":"","sources":["../../src/host/model-catalog-refresh.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAexD,MAAM,8BAA8B;IAClB,eAAe,GAAG,IAAI,OAAO,EAAkD,CAAC;IAEjG,OAAO,CAAC,YAAiC,EAAE,MAAmB,EAAgC;QAC7F,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,IAAI,MAAM,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACpD,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAC;YACzC,IAAI,OAAmC,CAAC;YACxC,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;YACtE,MAAM,OAAO,GAAG,mBAAmB,CAAC,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;gBAC/E,kFAAkF;gBAClF,IAAI,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,OAAO,EAAE,CAAC;oBACxD,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;gBAC3C,CAAC;YAAA,CACD,CAAC,CAAC;YACH,OAAO,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;YAC9C,MAAM,GAAG,OAAO,CAAC;YACjB,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;QAChD,CAAC;QAED,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,OAAO,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;YAChE,MAAM,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,MAAM,CAAC,OAAO,KAAK,CAAC,IAAI,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,MAAM,EAAE,CAAC;gBAC/E,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YAC3B,CAAC;QAAA,CACD,CAAC,CAAC;IAAA,CACH;CACD;AAED,MAAM,8BAA8B,GAAG,IAAI,8BAA8B,EAAE,CAAC;AAE5E,+GAA+G;AAC/G,MAAM,UAAU,oBAAoB,CACnC,YAAiC,EACjC,MAAmB,EACY;IAC/B,OAAO,8BAA8B,CAAC,OAAO,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AAAA,CACpE","sourcesContent":["import type { ModelsRefreshResult } from \"@agent-forge/ai\";\nimport type { ModelRuntime } from \"../core/model-runtime.ts\";\nimport { raceWithAbortSignal } from \"../utils/abort.ts\";\n\n/**\n * Narrow catalog-refresh projection of ModelRuntime (D-047): the only surface\n * the shared interactive catalog-refresh coordinator consumes. Exported for\n * the stable facade's `getModelCatalog()` projection member.\n */\nexport type ModelCatalogRuntime = Pick<ModelRuntime, \"refresh\">;\n\ninterface ActiveModelCatalogRefresh {\n\tcontroller: AbortController;\n\tpromise: Promise<ModelsRefreshResult>;\n\twaiters: number;\n}\n\nclass ModelCatalogRefreshCoordinator {\n\tprivate readonly activeByRuntime = new WeakMap<ModelCatalogRuntime, ActiveModelCatalogRefresh>();\n\n\trefresh(modelRuntime: ModelCatalogRuntime, signal: AbortSignal): Promise<ModelsRefreshResult> {\n\t\tsignal.throwIfAborted();\n\t\tlet active = this.activeByRuntime.get(modelRuntime);\n\t\tif (!active) {\n\t\t\tconst controller = new AbortController();\n\t\t\tlet created!: ActiveModelCatalogRefresh;\n\t\t\tconst operation = modelRuntime.refresh({ signal: controller.signal });\n\t\t\tconst promise = raceWithAbortSignal(operation, controller.signal).finally(() => {\n\t\t\t\t// v8 ignore next -- an entry is only replaced after its own settlement deleted it\n\t\t\t\tif (this.activeByRuntime.get(modelRuntime) === created) {\n\t\t\t\t\tthis.activeByRuntime.delete(modelRuntime);\n\t\t\t\t}\n\t\t\t});\n\t\t\tcreated = { controller, promise, waiters: 0 };\n\t\t\tactive = created;\n\t\t\tthis.activeByRuntime.set(modelRuntime, active);\n\t\t}\n\n\t\tactive.waiters++;\n\t\treturn raceWithAbortSignal(active.promise, signal).finally(() => {\n\t\t\tactive.waiters--;\n\t\t\tif (active.waiters === 0 && this.activeByRuntime.get(modelRuntime) === active) {\n\t\t\t\tactive.controller.abort();\n\t\t\t}\n\t\t});\n\t}\n}\n\nconst modelCatalogRefreshCoordinator = new ModelCatalogRefreshCoordinator();\n\n/** Share concurrent interactive all-catalog refreshes while keeping each caller's cancellation independent. */\nexport function refreshModelCatalogs(\n\tmodelRuntime: ModelCatalogRuntime,\n\tsignal: AbortSignal,\n): Promise<ModelsRefreshResult> {\n\treturn modelCatalogRefreshCoordinator.refresh(modelRuntime, signal);\n}\n"]}
package/dist/index.d.ts CHANGED
@@ -58,7 +58,6 @@ export { type MainOptions, main } from "./main.ts";
58
58
  export { createMigrationTool, type MigrationEvidenceStepV1, type MigrationOutcomeV1, type MigrationStepV1, type MigrationToolV1, } from "./migration/migration-tool.ts";
59
59
  export { InteractiveMode, type InteractiveModeOptions, type JsonAgentSessionEvent, type ModelInfo, type PrintModeOptions, RpcClient, type RpcClientOptions, type RpcCommand, type RpcEventListener, type RpcExtensionUIRequest, type RpcExtensionUIResponse, type RpcModeOptions, type RpcResponse, type RpcSessionState, runPrintMode, runRpcMode, } from "./modes/index.ts";
60
60
  export { ArminComponent, AssistantMessageComponent, BashExecutionComponent, BorderedLoader, BranchSummaryMessageComponent, CompactionSummaryMessageComponent, CustomEditor, CustomMessageComponent, DialogEditorComponent, DialogInputComponent, DialogSelectorComponent, DynamicBorder, FooterComponent, keyHint, keyText, LoginDialogComponent, ModelSelectorComponent, OAuthSelectorComponent, PluginManagerEntryComponent, type PluginManagerEntryOpenContextV1, type PluginManagerEntryOpenResultV1, type PluginManagerEntryOptionsV1, type RenderDiffOptions, rawKeyHint, renderDiff, SessionSelectorComponent, type SettingsCallbacks, type SettingsConfig, SettingsSelectorComponent, ShowImagesSelectorComponent, SkillInvocationMessageComponent, ThemeSelectorComponent, ThinkingSelectorComponent, ToolExecutionComponent, type ToolExecutionOptions, TreeSelectorComponent, truncateToVisualLines, UserMessageComponent, UserMessageSelectorComponent, type VisualTruncateResult, } from "./modes/interactive/components/index.ts";
61
- export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, type ThemeColor, } from "./modes/interactive/theme/theme.ts";
62
61
  export * as PluginEcosystemV1 from "./plugins/ecosystem/index.ts";
63
62
  export type { HostFactsV1 } from "./plugins/ecosystem/types.ts";
64
63
  export { createIntegrityAdapter, type IntegrityAdapterV1, type ManifestExpectationV1, type ManifestVerdictV1, type SealedManifestV1, } from "./plugins/integrity-adapter.ts";
@@ -70,16 +69,17 @@ export { type BuiltinPluginManifestOverridesV1, type BuiltinPluginProfileIdV1, t
70
69
  export { assembleProfile, type PluginReplacementRecordV1, type ProfileAssemblyResultV1, type ProfileAssemblyV1, type ProfileReplacementResultV1, replaceProfilePlugin, type VerifiedToolPluginV1, } from "./profile/profile-assembly.ts";
71
70
  export { createProfileMigrationPolicy, type ProfileMigrationPlanV1, type ProfileMigrationPolicyV1, type ProfileMigrationResultV1, } from "./profile/profile-migration.ts";
72
71
  export { createProfileRegistry, type ProfileRegistryV1, type ProfileResolutionV1, type ProfileVersionRangeV1, type RegistryProfileEntryV1, type RegistrySourceV1, } from "./profile/profile-registry.ts";
73
- export { isBuiltinSuiteId } from "./profiles/builtin-suites.ts";
74
- export { buildResolvedAgentProfileV1, type PluginProfileResolutionSummaryV1, type ResolvedAgentProfileV1, type ResolvedProfileDiagnosticV1, } from "./profiles/resolved-agent-profile.ts";
75
- export { clearDanglingSuiteSettings, createSuite, deleteSuite, findSuiteSessionRefs, resetSuite, SUITE_DELETE_CONFIRM_TOKEN, type SuiteCreateOptions, type SuiteCreateResult, type SuiteDeleteOptions, type SuiteDeleteResult, SuiteLifecycleError, type SuiteLifecycleOperation, type SuiteResetPlan, type SuiteSessionRef, type SuiteSettingsCleanup, } from "./profiles/suite-lifecycle.ts";
76
- export { DEFAULT_SUITE_ID, listSuiteIds, SuiteResolutionError, } from "./profiles/suite-loader.ts";
77
72
  export { assembleCodingAgentServer, type CodingAgentServerAssemblyOptions, type CodingAgentServerModels, CodingAgentServerService, type CodingAgentServerSessionSource, type CodingAgentSessionDescriptor, CodingAgentSessionRuntime, projectSessionTranscript, } from "./remote/server-assembly.ts";
78
73
  export { type CodingAgentRemoteServerHandle, type StartCodingAgentRemoteServerOptions, startCodingAgentRemoteServer, } from "./remote/server-entry.ts";
79
74
  export { createFileSessionSource, type FileSessionSourceOptions, } from "./remote/session-source.ts";
80
75
  export { createSessionShare, type SessionShareManagerV1, type ShareArtifactInputV1, type ShareContractV1, type ShareResolveRequestV1, type ShareResolveResultV1, type ShareScopeV1, type ShareTransportV1, } from "./share/session-share.ts";
81
76
  export { createShareViewer, type ShareViewerV1, type ShareViewV1 } from "./share/share-viewer.ts";
77
+ export { isBuiltinSuiteId } from "./suites/builtin-suites.ts";
78
+ export { buildResolvedAgentProfileV1, type PluginProfileResolutionSummaryV1, type ResolvedAgentProfileV1, type ResolvedProfileDiagnosticV1, } from "./suites/resolved-agent-profile.ts";
79
+ export { clearDanglingSuiteSettings, createSuite, deleteSuite, findSuiteSessionRefs, resetSuite, SUITE_DELETE_CONFIRM_TOKEN, type SuiteCreateOptions, type SuiteCreateResult, type SuiteDeleteOptions, type SuiteDeleteResult, SuiteLifecycleError, type SuiteLifecycleOperation, type SuiteResetPlan, type SuiteSessionRef, type SuiteSettingsCleanup, } from "./suites/suite-lifecycle.ts";
80
+ export { DEFAULT_SUITE_ID, listSuiteIds, SuiteResolutionError, } from "./suites/suite-loader.ts";
82
81
  export { createMockAiServer, MockAiError, type MockAiFaultV1, type MockAiFixtureV1, type MockAiPartV1, type MockAiRequestV1, type MockAiResponseV1, type MockAiServerV1, type MockAiStepV1, } from "./testing/mock-ai-server.ts";
82
+ export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, type ThemeColor, } from "./theme/theme.ts";
83
83
  export { copyToClipboard } from "./utils/clipboard.ts";
84
84
  export { parseFrontmatter, stripFrontmatter } from "./utils/frontmatter.ts";
85
85
  export { convertToPng } from "./utils/image-convert.ts";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAC;AAO7D,OAAO,EACN,uBAAuB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,GACrC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,mBAAmB,GACnB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACN,KAAK,4BAA4B,EACjC,KAAK,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B,EAClB,WAAW,EACX,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,YAAY,GACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,oCAAoC,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["// Core session management\n\nexport type { AgentToolResult, AgentToolUpdateCallback, ToolExecutionMode } from \"@agent-forge/agent-core\";\n// First-party plugin ecosystem (opt-in namespaces; domain plugins do not\n// alter the default coding tool surface).\nexport * as PluginContractsV1 from \"@agent-forge/plugin-sdk\";\n// Memory capability storage contract (扩展位盘点 A1/A2): injectable\n// store/ledger factories and vector components behind\n// `CreateAgentSessionOptions.memoryCapability.storage`. Authoritative home is\n// @agent-forge/plugin-sdk since the S4-4 split (the memory capability itself\n// moved to the @agent-forge/plugin-memory package); re-exported here so the\n// memory-backend example and existing host imports keep resolving.\nexport {\n\tMEMORY_RECALL_TOOL_NAME,\n\ttype MemoryCapabilityOverrideV1,\n\ttype MemoryStorageComponentsV1,\n\ttype MemoryVectorComponentsOverrideV1,\n} from \"@agent-forge/plugin-sdk\";\n// Artifact store (2.6a): session export artifacts with bounded reads and EOL\nexport {\n\ttype ArtifactStatV1,\n\ttype ArtifactStoreV1,\n\tcreateArtifactStore,\n} from \"./artifacts/artifact-store.ts\";\n// Paged artifact reading (3.5c): ref-based expansion with explicit failures\nexport {\n\ttype ArtifactPageDirectoryEntryV1,\n\ttype ArtifactPagePlanV1,\n\ttype ArtifactPageReadV1,\n\tplanArtifactPages,\n\treadArtifactPage,\n} from \"./artifacts/paged-read.ts\";\nexport { type Args, parseArgs } from \"./cli/args.ts\";\nexport * as PluginManagerUiV1 from \"./cli/plugin-manager-controller.ts\";\n// Host-owned plugin management surfaces. They expose bounded DTOs only; the\n// registry, installer, package paths and credentials remain behind the host.\nexport * as PluginUiV1 from \"./cli/plugin-selection-controller.ts\";\nexport {\n\tCONFIG_DIR_NAME,\n\tgetAgentDir,\n\tgetDocsPath,\n\tgetExamplesPath,\n\tgetPackageDir,\n\tgetReadmePath,\n\tgetSessionsDir,\n\tVERSION,\n} from \"./config.ts\";\nexport {\n\tAGENT_CAPABILITY_CONTRACT_ID,\n\tAGENT_CAPABILITY_CONTRACT_VERSION,\n\tAGENT_ERROR_CODES_V1,\n\ttype AgentCapabilityContractInputV1,\n\ttype AgentCapabilityContractV1,\n\ttype AgentCapabilityContractVersion,\n\ttype AgentDefinitionSnapshotV1,\n\ttype AgentErrorCodeV1,\n\ttype AgentInstanceSnapshotV1,\n\ttype AgentProfileV1,\n\ttype ArtifactRefV1,\n\tassertCapabilitySupportedV1,\n\tbuildAgentCapabilityContract,\n\tbuildAgentCapabilityContractV1,\n\tbuildAgentDefinitionSnapshotV1,\n\tbuildAgentInstanceSnapshotV1,\n\tbuildAgentProfileV1,\n\tbuildArtifactRefV1,\n\tbuildCanonicalContractFixtureVectorsV1,\n\tbuildCanonicalContractVectorsV1,\n\tbuildCommandRequestV1,\n\tbuildContractCompatibilityRequirementsV1,\n\tbuildErrorEnvelopeV1,\n\tbuildEventEnvelope,\n\tbuildEventEnvelopeV1,\n\tbuildHostContextV1,\n\tbuildOperationSnapshotV1,\n\tbuildOperationTerminalV1,\n\tbuildSessionRevisionV1,\n\tbuildSessionSnapshotV1,\n\ttype CanonicalContractFixtureVectorV1,\n\ttype CanonicalContractVectorsV1,\n\ttype CapabilityRefV1,\n\ttype CapabilityResolutionV1,\n\ttype CommandAdmissionV1,\n\ttype CommandOperationRegistryV1,\n\ttype CommandRequestInputV1,\n\ttype CommandRequestV1,\n\ttype ContractCompatibilityIssueCodeV1,\n\ttype ContractCompatibilityIssueV1,\n\ttype ContractCompatibilityRequirementsV1,\n\ttype ContractCompatibilityResultV1,\n\tcheckContractCompatibilityV1,\n\tcreateCommandOperationRegistryV1,\n\ttype ErrorEnvelopeV1,\n\ttype EventCategoryV1,\n\ttype EventDeliveryGuaranteeV1,\n\ttype EventEnvelopeInputV1,\n\ttype EventEnvelopeV1,\n\ttype HostContextV1,\n\ttype HostMode as CanonicalHostModeV1,\n\ttype HostTransport,\n\tisRegisteredAgentErrorCodeV1,\n\ttype JsonValue,\n\tmapProtocolErrorCodeToAgentErrorV1,\n\ttype OperationSnapshotV1,\n\ttype OperationStatusV1,\n\ttype OperationTerminalV1,\n\tresolveCapabilityV1,\n\ttype SessionRevisionV1,\n\ttype SessionSnapshotV1,\n\ttoErrorEnvelopeV1,\n\tvalidateAgentCapabilityContract,\n\tvalidateAgentCapabilityContractV1,\n\tvalidateAgentProfileV1,\n\tvalidateArtifactRefV1,\n\tvalidateCommandAdmissionV1,\n\tvalidateCommandRequestV1,\n\tvalidateContractCompatibilityRequirementsV1,\n\tvalidateContractCompatibilityResultV1,\n\tvalidateErrorEnvelopeV1,\n\tvalidateEventEnvelope,\n\tvalidateEventEnvelopeV1,\n\tvalidateHostContextV1,\n\tvalidateOperationSnapshotV1,\n\tvalidateOperationTerminalV1,\n\tvalidateSessionRevisionV1,\n\tvalidateSessionSnapshotV1,\n} from \"./core/agent-capability-contract.ts\";\nexport {\n\tAgentSession,\n\ttype AgentSessionConfig,\n\ttype AgentSessionEvent,\n\ttype AgentSessionEventListener,\n\ttype ModelCycleResult,\n\ttype ParsedSkillBlock,\n\ttype PromptOptions,\n\tparseSkillBlock,\n\ttype SessionStats,\n} from \"./core/agent-session.ts\";\nexport { readStoredCredential } from \"./core/auth-storage.ts\";\n// Compaction\nexport {\n\ttype BranchPreparation,\n\ttype BranchSummaryResult,\n\ttype CollectEntriesResult,\n\ttype CompactionResult,\n\ttype CutPointResult,\n\tcalculateContextTokens,\n\tcollectEntriesForBranchSummary,\n\tcompact,\n\tDEFAULT_COMPACTION_SETTINGS,\n\testimateTokens,\n\ttype FileOperations,\n\tfindCutPoint,\n\tfindTurnStartIndex,\n\ttype GenerateBranchSummaryOptions,\n\tgenerateBranchSummary,\n\tgenerateSummary,\n\tgenerateSummaryWithUsage,\n\tgetLastAssistantUsage,\n\tprepareBranchEntries,\n\tserializeConversation,\n\tshouldCompact,\n} from \"./core/compaction/index.ts\";\nexport {\n\tcreateEmbeddedSdkBinding,\n\tcreateEmbeddedSdkBindingV1,\n\ttype EmbeddedAgentDefinitionV1,\n\ttype EmbeddedAgentInstanceV1,\n\ttype EmbeddedAgentResultV1,\n\ttype EmbeddedControllerLeaseV1,\n\ttype EmbeddedOperationHandleV1,\n\ttype EmbeddedSdkBindingV1,\n\ttype EmbeddedSdkEventListenerV1,\n\ttype EmbeddedSdkOptionsV1,\n\ttype EmbeddedSdkSubscriptionV1,\n\ttype EmbeddedSessionBindingV1,\n} from \"./core/embedded-sdk.ts\";\nexport { createEventBus, type EventBus, type EventBusController } from \"./core/event-bus.ts\";\nexport type { ExecOptions, ExecResult } from \"./core/exec.ts\";\n// Config paths\nexport {\n\ttype AgentCompositionAPI,\n\ttype AgentCompositionDefinitionBinding,\n\ttype AgentCompositionHostBinding,\n\ttype AgentCompositionLifecycleBinding,\n\ttype AgentCompositionLifecycleDispatcher,\n\ttype AgentCompositionLifecycleEvent,\n\ttype AgentCompositionLifecycleEventName,\n\ttype AgentCompositionLifecycleTerminalStatus,\n\tAgentCompositionRuntime,\n\ttype AgentCompositionRuntimeOptions,\n\ttype AgentCompositionScopedHostBinding,\n\ttype AgentContextCommitRequestV1,\n\ttype AgentContextCommitResultV1,\n\ttype AgentContextFacadeV1,\n\ttype AgentContextSnapshotV1,\n\ttype AgentControllerLease,\n\ttype AgentControllerRole,\n\ttype AgentDefinition,\n\ttype AgentDefinitionDeclaration,\n\ttype AgentExecutionContext,\n\ttype AgentHostPrimitivesFactory,\n\ttype AgentHostPrimitivesFactoryContext,\n\ttype AgentHostPrimitivesV1,\n\ttype AgentInstance,\n\ttype AgentInstanceResult,\n\ttype AgentInstanceSnapshot,\n\ttype AgentInstanceStatus,\n\ttype AgentOperationFacadeV1,\n\ttype AgentSessionFacadeV1,\n\ttype AgentTaskAdapter,\n\ttype AgentTaskAPI,\n\ttype AgentTaskCreateRequest,\n\ttype AgentTaskHandle,\n\ttype AgentTaskHost,\n\ttype AgentTaskResultV1,\n\ttype AgentTaskStatus,\n\ttype AgentTaskWaitResult,\n\tBOOTSTRAP_LIFECYCLE_PLUGIN_ID,\n\tCAPABILITY_CALL_EVENT_ID,\n\tCAPABILITY_CALL_EVENT_VERSION,\n\ttype CapabilityAPI,\n\ttype CapabilityCallEventDataV1,\n\ttype CapabilityCallEventNameV1,\n\ttype CapabilityCallStatusV1,\n\ttype CapabilityCommandContext,\n\ttype CapabilityCommandDefinition,\n\ttype CapabilityCommandLink,\n\ttype CapabilityCommandResult,\n\ttype CapabilityDirectoryAPI,\n\ttype CapabilityHandle,\n\ttype CapabilityPluginFactory,\n\ttype CapabilityPluginFactoryResult,\n\ttype CapabilityPluginHandle,\n\ttype CapabilityPluginInstance,\n\ttype CapabilityPluginSyncFactory,\n\ttype CapabilityPluginSyncInstance,\n\ttype CapabilityProviderHandler,\n\ttype CapabilityRuntime,\n\ttype CompactionCommitAppliedV1,\n\ttype CompactionCommitRequestV1,\n\ttype CompactionCommitResultV1,\n\ttype CompactionCommitRevisionConflictV1,\n\ttype CompactionPolicy,\n\ttype CompactionPolicyDecision,\n\ttype CompactionPolicyRequest,\n\ttype CompactionSummaryRequest,\n\ttype CompactionSummaryResult,\n\ttype ContextStrategy,\n\ttype ContributionAPI,\n\ttype ContributionChangeEvent,\n\ttype ContributionEntry,\n\ttype ContributionHandle,\n\ttype ContributionLifecycle,\n\ttype ContributionPoint,\n\ttype ContributionPointDefinition,\n\ttype CredentialAPI,\n\ttype CredentialResolution,\n\ttype CredentialResolveRequest,\n\tcreateAgentCompositionRuntime,\n\tcreateCapabilityRuntime,\n\tcreateDisposableRegistration,\n\tcreateEventEnvelope,\n\tDEFAULT_COMPACTION_POLICY_NAME,\n\tDEFAULT_RETRY_POLICY_NAME,\n\ttype DiagnosticsAPI,\n\ttype DiagnosticsSpan,\n\ttype DiagnosticsSpanEnd,\n\ttype DiagnosticsSpanSnapshot,\n\ttype DisposableRegistration,\n\tdiscoverCapabilityPluginManifests,\n\ttype EventEnvelope,\n\tEXPERIMENTAL_PUBLIC_API_VERSION,\n\ttype ExecutionFactsV1,\n\ttype ExecutionPhaseV1,\n\ttype HostCapabilities,\n\ttype HostMode,\n\tinstallBootstrapLifecycle,\n\ttype LifecycleAfterCommitHandler,\n\ttype LifecycleAPI,\n\ttype LifecycleDeliveryFailure,\n\ttype LifecycleDeliveryMode,\n\ttype LifecycleDeliveryOptions,\n\ttype LifecycleDeliveryReport,\n\ttype LifecycleDeliverySnapshot,\n\ttype LifecycleDispatchRequest,\n\ttype LifecycleDispatchResult,\n\ttype LifecycleEvent,\n\ttype LifecycleEventDefinition,\n\ttype LifecycleEventReference,\n\tLifecycleExecuteError,\n\ttype LifecycleExecuteHandler,\n\ttype LifecycleObserveHandler,\n\ttype LifecyclePhase,\n\ttype LifecycleRegistrationKind,\n\tLifecycleTransformError,\n\ttype LifecycleTransformHandler,\n\ttype LoggerAPI,\n\ttype LoggerLevel,\n\ttype LoggerRecord,\n\tloadCapabilityPlugin,\n\tloadCapabilityPluginFromManifest,\n\tloadCapabilityPluginSync,\n\tMODEL_RESPONSE_EVENT_ID,\n\tMODEL_RESPONSE_EVENT_VERSION,\n\tMODEL_STREAM_EVENT_ID,\n\tMODEL_STREAM_EVENT_VERSION,\n\ttype ModelResponseEventDataV1,\n\ttype ModelStreamEventDataV1,\n\ttype ModelStreamEventNameV1,\n\tOPERATION_CANCEL_EVENT_ID,\n\tOPERATION_CANCEL_EVENT_VERSION,\n\tOPERATION_END_EVENT_ID,\n\tOPERATION_END_EVENT_VERSION,\n\tOPERATION_START_EVENT_ID,\n\tOPERATION_START_EVENT_VERSION,\n\tOPERATION_STEP_EVENT_ID,\n\tOPERATION_STEP_EVENT_VERSION,\n\ttype OperationCancelEventDataV1,\n\ttype OperationEndEventDataV1,\n\ttype OperationExecutionContext,\n\ttype OperationHandle,\n\ttype OperationProgress,\n\ttype OperationStartEventDataV1,\n\ttype OperationStatus,\n\ttype OperationStepEventDataV1,\n\ttype OutputArtifactAPI,\n\ttype OutputArtifactChunk,\n\ttype OutputArtifactErrorCode,\n\ttype OutputArtifactPutInput,\n\ttype OutputArtifactRef,\n\tPLUGIN_DISPOSE_EVENT_ID,\n\tPLUGIN_DISPOSE_EVENT_VERSION,\n\tPLUGIN_READY_EVENT_ID,\n\tPLUGIN_READY_EVENT_VERSION,\n\ttype PluginAgentRole,\n\ttype PluginCapabilityDeclaration,\n\ttype PluginCapabilityRequirement,\n\ttype PluginConfig,\n\ttype PluginConfigValue,\n\ttype PluginDisposeEventDataV1,\n\ttype PluginManifest,\n\ttype PluginReadyEventDataV1,\n\ttype PolicyInvocationContextV1,\n\ttype ProviderHeaderTransform,\n\ttype ProviderHeaderTransformRequest,\n\tparseCapabilityPluginManifest,\n\ttype RetryPolicy,\n\ttype RetryPolicyDecision,\n\ttype RetryPolicyRequest,\n\ttype RetryScheduleV1,\n\ttype RuntimeInspectorAPI,\n\ttype RuntimeInspectorErrorSnapshot,\n\ttype RuntimeInspectorLifecycleDeliveryFailureSnapshot,\n\ttype RuntimeInspectorLifecycleDeliveryReportSnapshot,\n\ttype RuntimeInspectorSnapshot,\n\tresolvePluginCapabilityOrder,\n\tSESSION_COMPACTION_COMMIT_EVENT_ID,\n\tSESSION_COMPACTION_COMMIT_EVENT_VERSION,\n\tSESSION_CONTEXT_REPLACED_EVENT_ID,\n\tSESSION_CONTEXT_REPLACED_EVENT_VERSION,\n\tSESSION_RELOAD_EVENT_ID,\n\tSESSION_RELOAD_EVENT_VERSION,\n\ttype SessionAPI,\n\ttype SessionCompactionCommitEventDataV1,\n\ttype SessionContextReplacedEventDataV1,\n\ttype SessionEntryView,\n\ttype SessionExportArtifact,\n\ttype SessionExportRequest,\n\ttype SessionReloadEventDataV1,\n\ttype SkillDefinition,\n\ttype StateAPI,\n\ttype StateChange,\n\ttype StateEntry,\n\ttype StateSetOptions,\n\tSUMMARY_MODEL_INVOCATION_ERROR_CODES,\n\ttype SummaryModelFactsV1,\n\ttype SummaryModelInvocationRequestV1,\n\ttype SummaryModelInvocationResultV1,\n\ttype SummaryModelInvocationV1,\n\tTOOL_CALL_EVENT_ID,\n\tTOOL_CALL_EVENT_VERSION,\n\tTOOL_COMMIT_EVENT_ID,\n\tTOOL_COMMIT_EVENT_VERSION,\n\tTOOL_EXECUTE_EVENT_ID,\n\tTOOL_EXECUTE_EVENT_VERSION,\n\tTOOL_RESULT_EVENT_ID,\n\tTOOL_RESULT_EVENT_VERSION,\n\tTOOL_RESULT_RAW_EVENT_ID,\n\tTOOL_RESULT_RAW_EVENT_VERSION,\n\tTOOL_RESULT_TRANSFORM_EVENT_ID,\n\tTOOL_RESULT_TRANSFORM_EVENT_VERSION,\n\ttype ToolCallEventDataV1,\n\ttype ToolCommitEventDataV1,\n\ttype ToolExecuteEventDataV1,\n\ttype ToolResultEventDataV1,\n\ttype ToolResultRawEventDataV1,\n\ttype ToolResultTransformEventDataV1,\n\tvalidateCapabilityCallEventDataV1,\n\tvalidateExecutionFactsV1,\n\tvalidateModelResponseEventDataV1,\n\tvalidateModelStreamEventDataV1,\n\tvalidateOperationCancelEventDataV1,\n\tvalidateOperationEndEventDataV1,\n\tvalidateOperationStartEventDataV1,\n\tvalidateOperationStepEventDataV1,\n\tvalidatePluginDisposeEventDataV1,\n\tvalidatePluginReadyEventDataV1,\n\tvalidateRetryScheduleV1,\n\tvalidateSessionCompactionCommitEventDataV1,\n\tvalidateSessionContextReplacedEventDataV1,\n\tvalidateSessionReloadEventDataV1,\n\tvalidateToolCallEventDataV1,\n\tvalidateToolCommitEventDataV1,\n\tvalidateToolExecuteEventDataV1,\n\tvalidateToolResultEventDataV1,\n\tvalidateToolResultRawEventDataV1,\n\tvalidateToolResultTransformEventDataV1,\n} from \"./core/extensions/index.ts\";\nexport type { ContextUsage } from \"./core/extensions/public-api.ts\";\nexport { detachedSessionSnapshot } from \"./core/extensions/public-api.ts\";\n// Stable session facade v1 type (B-S2b③-S2): named so the createStableAgentSession\n// result is nameable from the package root. The package-root `exports` subpath set\n// is unchanged (B-S2a gate holds; the facade is not promoted into an exports subpath).\nexport type { CodingAgentFacadeV1 } from \"./core/facade/coding-agent-facade.ts\";\n// Stable runtime facade v1 type (D-063): named so the createStableAgentSessionRuntime\n// result is nameable from the package root. The package-root `exports` subpath set\n// is unchanged (B-S2a gate holds; the facade is not promoted into an exports subpath).\nexport type { CodingAgentRuntimeFacadeV1 } from \"./core/facade/coding-agent-runtime-facade.ts\";\n// Footer data provider (git branch + extension statuses - data not otherwise available to extensions)\nexport type { ReadonlyFooterDataProvider } from \"./core/footer-data-provider.ts\";\nexport type { InputSource } from \"./core/input-source.ts\";\nexport { convertToLlm } from \"./core/messages.ts\";\nexport {\n\tModelRegistry,\n\ttype ProviderConfigInput,\n} from \"./core/model-registry.ts\";\nexport {\n\ttype ModelScopeDiagnostic,\n\ttype ResolveCliModelResult,\n\ttype ResolveModelScopeResult,\n\tresolveCliModel,\n\tresolveModelScopeWithDiagnostics,\n\ttype ScopedModel,\n} from \"./core/model-resolver.ts\";\nexport {\n\ttype CreateModelRuntimeOptions,\n\tCredentialSynchronizationError,\n\ttype CredentialSynchronizationOperation,\n\tModelRuntime,\n\ttype ModelRuntimeAuthOverrides,\n} from \"./core/model-runtime.ts\";\nexport type {\n\tPackageManager,\n\tPathMetadata,\n\tProgressCallback,\n\tProgressEvent,\n\tResolvedPaths,\n\tResolvedResource,\n} from \"./core/package-manager.ts\";\nexport { DefaultPackageManager } from \"./core/package-manager.ts\";\nexport type { ResourceCollision, ResourceDiagnostic, ResourceLoader } from \"./core/resource-loader.ts\";\nexport { DefaultResourceLoader, loadProjectContextFiles } from \"./core/resource-loader.ts\";\n// SDK for programmatic usage\nexport {\n\tAgentSessionRuntime,\n\ttype AgentSessionRuntimeDiagnostic,\n\ttype AgentSessionServices,\n\ttype CreateAgentSessionFromServicesOptions,\n\ttype CreateAgentSessionOptions,\n\ttype CreateAgentSessionResult,\n\ttype CreateAgentSessionRuntimeFactory,\n\ttype CreateAgentSessionRuntimeResult,\n\ttype CreateAgentSessionServicesOptions,\n\ttype CreateStableAgentSessionResult,\n\ttype CreateStableAgentSessionRuntimeResult,\n\t// Factory\n\tcreateAgentSession,\n\tcreateAgentSessionFromServices,\n\tcreateAgentSessionRuntime,\n\tcreateAgentSessionServices,\n\t// Stable session entry (B-S2b③-S2): same assembly as createAgentSession,\n\t// returned as the stable facade pair. The package-root `exports` subpath set\n\t// is unchanged (B-S2a gate holds; this is a named export, not a subpath).\n\tcreateStableAgentSession,\n\t// Stable runtime entry (D-063): same assembly as createAgentSessionRuntime,\n\t// returned as the stable runtime facade (no bare runtime/session). Same\n\t// package-root `exports` note as the session entry above.\n\tcreateStableAgentSessionRuntime,\n\ttype PromptTemplate,\n} from \"./core/sdk.ts\";\nexport {\n\ttype BranchSummaryEntry,\n\tbuildContextEntries,\n\tbuildSessionContext,\n\ttype CompactionEntry,\n\tCURRENT_SESSION_VERSION,\n\ttype CustomEntry,\n\ttype CustomMessageEntry,\n\ttype FileEntry,\n\tgetLatestCompactionEntry,\n\ttype ModelChangeEntry,\n\tmigrateSessionEntries,\n\ttype NewSessionOptions,\n\tparseSessionEntries,\n\ttype SessionContext,\n\ttype SessionEntry,\n\ttype SessionEntryBase,\n\ttype SessionHeader,\n\ttype SessionInfo,\n\ttype SessionInfoEntry,\n\tSessionManager,\n\ttype SessionMessageEntry,\n\ttype SessionTreeNode,\n\tsessionEntryToContextMessages,\n\ttype ThinkingLevelChangeEntry,\n} from \"./core/session-manager.ts\";\nexport {\n\tFileSessionStorageProvider,\n\tSessionHeaderScanLimitError,\n\ttype SessionStorageProvider,\n\ttype SessionWriteGuardV1,\n} from \"./core/session-storage.ts\";\nexport {\n\ttype CompactionSettings,\n\ttype FullscreenExitOutput,\n\ttype ImageSettings,\n\ttype PackageSource,\n\ttype RetrySettings,\n\tSettingsManager,\n\ttype SettingsManagerCreateOptions,\n\ttype TuiMode,\n} from \"./core/settings-manager.ts\";\n// Skills\nexport {\n\tformatSkillsForPrompt,\n\ttype LoadSkillsFromDirOptions,\n\ttype LoadSkillsResult,\n\tloadSkills,\n\tloadSkillsFromDir,\n\ttype Skill,\n\ttype SkillFrontmatter,\n} from \"./core/skills.ts\";\nexport type { SlashCommandInfo, SlashCommandSource } from \"./core/slash-commands.ts\";\nexport type { SourceInfo } from \"./core/source-info.ts\";\nexport { createSyntheticSourceInfo } from \"./core/source-info.ts\";\nexport type { BuildSystemPromptOptions } from \"./core/system-prompt.ts\";\nexport { type EditDiffResult, generateDiffString, generateUnifiedPatch } from \"./core/tools/edit-diff.ts\";\n// Tools (D-082 批 1: the default coding tool definitions moved to the\n// plugins/coding-tools package; the host keeps the shared tool-support face)\nexport {\n\ttype BashOperations,\n\ttype BashSpawnContext,\n\ttype BashSpawnHook,\n\tcreateLocalBashOperations,\n\tcreateLocalShellOperations,\n\tDEFAULT_MAX_BYTES,\n\tDEFAULT_MAX_LINES,\n\tformatSize,\n\ttype TruncationOptions,\n\ttype TruncationResult,\n\ttruncateHead,\n\ttruncateLine,\n\ttruncateTail,\n\twithFileMutationQueue,\n} from \"./core/tools/index.ts\";\nexport type {\n\tToolDefinition,\n\tToolExecuteContext,\n\tToolInfo,\n\tToolRenderContext,\n\tToolRenderResultOptions,\n} from \"./core/tools/tool-definition.ts\";\n// Tool definition surface (capability tools contract)\nexport { defineTool } from \"./core/tools/tool-definition.ts\";\n// Durable service (7.4b): in-memory persistence with optional file backend\nexport {\n\tcreateDurableService,\n\tcreateFileDurableStoreBackend,\n\ttype DurableArtifactRecordV1,\n\ttype DurableOperationRecordV1,\n\ttype DurableReplayDiagnosticsV1,\n\ttype DurableServiceErrorCodeV1,\n\tDurableServiceErrorV1,\n\ttype DurableServiceOptionsV1,\n\ttype DurableServiceV1,\n\ttype DurableSessionRecordV1,\n\ttype DurableSnapshotV1,\n\ttype DurableStoreBackend,\n\ttype DurableStoreLoadResultV1,\n\ttype DurableStoreOperationV1,\n\ttype DurableWriterClaimV1,\n\ttype DurableWriterRecoveryV1,\n\tdurableLogPath,\n} from \"./durable/durable-service.ts\";\n// Agent retry scheduler (2A.4b): cancellable, duplicate-suppressing retries\nexport {\n\ttype AgentRetryAttemptV1,\n\ttype AgentRetryOutcomeV1,\n\ttype AgentRetryPolicyV1,\n\ttype AgentRetrySchedulerV1,\n\tcreateAgentRetryScheduler,\n} from \"./host/agent-retry-scheduler.ts\";\n// Auto compaction executor (2A.3a): threshold-triggered with cancel/re-entrancy\nexport {\n\ttype AutoCompactionExecutorV1,\n\ttype AutoCompactionOutcomeV1,\n\ttype AutoCompactionPolicyV1,\n\tcreateAutoCompactionExecutor,\n} from \"./host/auto-compaction.ts\";\n// Branch migration and reload transaction (2A.5a/2A.5b)\nexport {\n\ttype BranchMigrationOutcomeV1,\n\ttype BranchStateEntryV1,\n\ttype BranchStateMigrationV1,\n\tcreateBranchStateMigration,\n\tcreateReloadTransaction,\n\ttype ReloadTransactionV1,\n} from \"./host/branch-reload.ts\";\n// Channel adapter (3.5b): print/JSON stdout-stderr semantics\nexport {\n\ttype ChannelAdapterV1,\n\ttype ChannelFormatV1,\n\tcreateStdioChannelAdapter,\n} from \"./host/channel-adapter.ts\";\n// Host checkpoint/commit (2A.1): revision-guarded idempotent two-phase writes\nexport {\n\tcreateHostCheckpointCoordinator,\n\ttype HostCheckpointCoordinatorV1,\n\ttype HostCommitOutcomeV1,\n\ttype HostStagedWriteV1,\n\ttype HostStageResultV1,\n} from \"./host/checkpoint-commit.ts\";\n// Manual compaction executor (2A.2): plugin-driven timing over checkpoint primitives\nexport {\n\tcreateManualCompactionExecutor,\n\ttype ManualCompactionExecutorV1,\n\ttype ManualCompactionOutcomeV1,\n\ttype ManualCompactionStateV1,\n} from \"./host/manual-compaction.ts\";\n// Host output projection (2.6b): traced channel records with structured errors\nexport {\n\tcreateHostOutputProjector,\n\ttype HostEventV1,\n\ttype HostOutputChannelV1,\n\ttype HostOutputProjectorV1,\n\ttype HostOutputRecordV1,\n\ttype HostOutputSeverityV1,\n} from \"./host/output-projection.ts\";\n// Output reducer (3.5a): deterministic fold/unfold over projected records\nexport {\n\tcreateOutputReducer,\n\ttype FoldedOutputGroupV1,\n\ttype FoldedOutputV1,\n\ttype OutputReducerV1,\n} from \"./host/output-reducer.ts\";\n// Host Output Serializer (3.5 supplement): per-surface allowlist projection\nexport {\n\tcreateHostOutputSerializer,\n\ttype HostOutputProjectionV1,\n\ttype HostOutputSerializerContextV1,\n\ttype HostOutputSerializerV1,\n\ttype HostOutputSurfaceV1,\n\ttype OutputArtifactRefV1,\n} from \"./host/output-serializer.ts\";\n// Provider overflow recovery (2A.3b): classification and shrink-and-commit entry\nexport {\n\tcreateOverflowRecovery,\n\ttype OverflowRecoveryOutcomeV1,\n\ttype OverflowRecoveryV1,\n\ttype ProviderErrorClassificationV1,\n\ttype ProviderErrorClassV1,\n} from \"./host/overflow-recovery.ts\";\n// Summary retry (2A.4a): traced attempts, exponential backoff, terminal states\nexport {\n\tcreateSummaryRetryExecutor,\n\ttype SummaryAttemptRecordV1,\n\ttype SummaryRetryExecutorV1,\n\ttype SummaryRetryOutcomeV1,\n\ttype SummaryRetryPolicyV1,\n} from \"./host/summary-retry.ts\";\n// Main entry point\nexport { type MainOptions, main } from \"./main.ts\";\n// Migration tool (7.4a): chained version migration with rollback evidence\nexport {\n\tcreateMigrationTool,\n\ttype MigrationEvidenceStepV1,\n\ttype MigrationOutcomeV1,\n\ttype MigrationStepV1,\n\ttype MigrationToolV1,\n} from \"./migration/migration-tool.ts\";\n// Run modes for programmatic SDK usage\nexport {\n\tInteractiveMode,\n\ttype InteractiveModeOptions,\n\ttype JsonAgentSessionEvent,\n\ttype ModelInfo,\n\ttype PrintModeOptions,\n\tRpcClient,\n\ttype RpcClientOptions,\n\ttype RpcCommand,\n\ttype RpcEventListener,\n\ttype RpcExtensionUIRequest,\n\ttype RpcExtensionUIResponse,\n\ttype RpcModeOptions,\n\ttype RpcResponse,\n\ttype RpcSessionState,\n\trunPrintMode,\n\trunRpcMode,\n} from \"./modes/index.ts\";\n// UI components for extensions\nexport {\n\tArminComponent,\n\tAssistantMessageComponent,\n\tBashExecutionComponent,\n\tBorderedLoader,\n\tBranchSummaryMessageComponent,\n\tCompactionSummaryMessageComponent,\n\tCustomEditor,\n\tCustomMessageComponent,\n\tDialogEditorComponent,\n\tDialogInputComponent,\n\tDialogSelectorComponent,\n\tDynamicBorder,\n\tFooterComponent,\n\tkeyHint,\n\tkeyText,\n\tLoginDialogComponent,\n\tModelSelectorComponent,\n\tOAuthSelectorComponent,\n\tPluginManagerEntryComponent,\n\ttype PluginManagerEntryOpenContextV1,\n\ttype PluginManagerEntryOpenResultV1,\n\ttype PluginManagerEntryOptionsV1,\n\ttype RenderDiffOptions,\n\trawKeyHint,\n\trenderDiff,\n\tSessionSelectorComponent,\n\ttype SettingsCallbacks,\n\ttype SettingsConfig,\n\tSettingsSelectorComponent,\n\tShowImagesSelectorComponent,\n\tSkillInvocationMessageComponent,\n\tThemeSelectorComponent,\n\tThinkingSelectorComponent,\n\tToolExecutionComponent,\n\ttype ToolExecutionOptions,\n\tTreeSelectorComponent,\n\ttruncateToVisualLines,\n\tUserMessageComponent,\n\tUserMessageSelectorComponent,\n\ttype VisualTruncateResult,\n} from \"./modes/interactive/components/index.ts\";\n// Theme utilities for custom tools and extensions\nexport {\n\tgetLanguageFromPath,\n\tgetMarkdownTheme,\n\tgetSelectListTheme,\n\tgetSettingsListTheme,\n\thighlightCode,\n\tinitTheme,\n\tTheme,\n\ttype ThemeColor,\n} from \"./modes/interactive/theme/theme.ts\";\nexport * as PluginEcosystemV1 from \"./plugins/ecosystem/index.ts\";\n// Host facts for the ecosystem pluginHost options (B-S2b: the convergence\n// slice names the previously unnameable type for cross-package consumers).\nexport type { HostFactsV1 } from \"./plugins/ecosystem/types.ts\";\n// Integrity adapter (7.3): seal/verify manifests for external policy flows\nexport {\n\tcreateIntegrityAdapter,\n\ttype IntegrityAdapterV1,\n\ttype ManifestExpectationV1,\n\ttype ManifestVerdictV1,\n\ttype SealedManifestV1,\n} from \"./plugins/integrity-adapter.ts\";\n// Plugin host (7.1): owned lifecycle, reverse dispose, error aggregation\nexport {\n\tcreatePluginHost,\n\ttype HostedPluginV1,\n\ttype PluginHostErrorV1,\n\ttype PluginHostResourceV1,\n\ttype PluginHostStateV1,\n\ttype PluginHostV1,\n} from \"./plugins/plugin-host.ts\";\n// Plugin supervisor (7.2): heartbeat, bounded restart, backpressure\nexport {\n\tcreatePluginSupervisor,\n\ttype PluginHealthV1,\n\ttype PluginSupervisorV1,\n\ttype SupervisorEntryV1,\n\ttype SupervisorEventV1,\n\ttype SupervisorPolicyV1,\n} from \"./plugins/plugin-supervisor.ts\";\n// Profile identity (2.0a): profileId/version, manifest digest, host compatibility\nexport {\n\tbuildProfileIdentityV1,\n\ttype ProfileIdentityV1,\n\tprofileIdentitiesCompatible,\n\ttype ResolvedPluginManifestV1,\n\tstableJsonDigest,\n} from \"./profile/identity.ts\";\n// Profile lock (2.0b): pre-creation lock, reopen/reload drift detection\nexport {\n\tcreateProfileLock,\n\ttype ProfileLockReplaceResultV1,\n\ttype ProfileLockV1,\n\ttype ProfileLockVerificationV1,\n\treplaceProfileLock,\n\tverifyProfileLock,\n} from \"./profile/lock.ts\";\nexport {\n\ttype BuiltinPluginManifestOverridesV1,\n\ttype BuiltinPluginProfileIdV1,\n\ttype BuiltinPluginProfileResolutionV1,\n\ttype BuiltinPluginProfileV1,\n\tlistBuiltinPluginManifestsV1,\n\tlistBuiltinPluginProfilesV1,\n\tresolveBuiltinPluginProfileV1,\n} from \"./profile/plugin-profiles.ts\";\n// Profile assembly (2.5b): verified-plugin assembly, version lock, replacement\nexport {\n\tassembleProfile,\n\ttype PluginReplacementRecordV1,\n\ttype ProfileAssemblyResultV1,\n\ttype ProfileAssemblyV1,\n\ttype ProfileReplacementResultV1,\n\treplaceProfilePlugin,\n\ttype VerifiedToolPluginV1,\n} from \"./profile/profile-assembly.ts\";\n// Profile migration policy (2.7b): explicit reopen migration over the 2.0b lock\nexport {\n\tcreateProfileMigrationPolicy,\n\ttype ProfileMigrationPlanV1,\n\ttype ProfileMigrationPolicyV1,\n\ttype ProfileMigrationResultV1,\n} from \"./profile/profile-migration.ts\";\n// Profile registry (2.7a): multi-source discovery, upgrades, deprecation\nexport {\n\tcreateProfileRegistry,\n\ttype ProfileRegistryV1,\n\ttype ProfileResolutionV1,\n\ttype ProfileVersionRangeV1,\n\ttype RegistryProfileEntryV1,\n\ttype RegistrySourceV1,\n} from \"./profile/profile-registry.ts\";\nexport { isBuiltinSuiteId } from \"./profiles/builtin-suites.ts\";\n// Resolved agent profile (D-047 S4a): immutable per-session aggregate view\n// over the resolved suite profile — a projection of existing authoritative\n// sources, not a new generation mechanism; AgentSession stays suite-unaware.\nexport {\n\tbuildResolvedAgentProfileV1,\n\ttype PluginProfileResolutionSummaryV1,\n\ttype ResolvedAgentProfileV1,\n\ttype ResolvedProfileDiagnosticV1,\n} from \"./profiles/resolved-agent-profile.ts\";\n// Suite (方案) lifecycle public API (方案系统设计.md §9): the same deterministic\n// operations the CLI one-shots use, exported so first-party and third-party\n// plugins can manage suite workspaces without hidden channels.\nexport {\n\tclearDanglingSuiteSettings,\n\tcreateSuite,\n\tdeleteSuite,\n\tfindSuiteSessionRefs,\n\tresetSuite,\n\tSUITE_DELETE_CONFIRM_TOKEN,\n\ttype SuiteCreateOptions,\n\ttype SuiteCreateResult,\n\ttype SuiteDeleteOptions,\n\ttype SuiteDeleteResult,\n\tSuiteLifecycleError,\n\ttype SuiteLifecycleOperation,\n\ttype SuiteResetPlan,\n\ttype SuiteSessionRef,\n\ttype SuiteSettingsCleanup,\n} from \"./profiles/suite-lifecycle.ts\";\nexport {\n\tDEFAULT_SUITE_ID,\n\tlistSuiteIds,\n\tSuiteResolutionError,\n} from \"./profiles/suite-loader.ts\";\n// Remote server assembly (1B.7h): coding-agent sessions behind the public server boundary\nexport {\n\tassembleCodingAgentServer,\n\ttype CodingAgentServerAssemblyOptions,\n\ttype CodingAgentServerModels,\n\tCodingAgentServerService,\n\ttype CodingAgentServerSessionSource,\n\ttype CodingAgentSessionDescriptor,\n\tCodingAgentSessionRuntime,\n\tprojectSessionTranscript,\n} from \"./remote/server-assembly.ts\";\n// Remote restart recovery (E3): production session source and programmatic server entry\nexport {\n\ttype CodingAgentRemoteServerHandle,\n\ttype StartCodingAgentRemoteServerOptions,\n\tstartCodingAgentRemoteServer,\n} from \"./remote/server-entry.ts\";\nexport {\n\tcreateFileSessionSource,\n\ttype FileSessionSourceOptions,\n} from \"./remote/session-source.ts\";\n// Session share contract (2.6c): revocable read-only shares with explicit transports\nexport {\n\tcreateSessionShare,\n\ttype SessionShareManagerV1,\n\ttype ShareArtifactInputV1,\n\ttype ShareContractV1,\n\ttype ShareResolveRequestV1,\n\ttype ShareResolveResultV1,\n\ttype ShareScopeV1,\n\ttype ShareTransportV1,\n} from \"./share/session-share.ts\";\n// Share viewer (2.6d): escaped HTML + JSON views with explicit failure states\nexport { createShareViewer, type ShareViewerV1, type ShareViewV1 } from \"./share/share-viewer.ts\";\n// Mock AI server (3.1): fail-closed scenario fixtures with fault injection\nexport {\n\tcreateMockAiServer,\n\tMockAiError,\n\ttype MockAiFaultV1,\n\ttype MockAiFixtureV1,\n\ttype MockAiPartV1,\n\ttype MockAiRequestV1,\n\ttype MockAiResponseV1,\n\ttype MockAiServerV1,\n\ttype MockAiStepV1,\n} from \"./testing/mock-ai-server.ts\";\n// Clipboard utilities\nexport { copyToClipboard } from \"./utils/clipboard.ts\";\nexport { parseFrontmatter, stripFrontmatter } from \"./utils/frontmatter.ts\";\nexport { convertToPng } from \"./utils/image-convert.ts\";\nexport { formatDimensionNote, type ResizedImage, resizeImage } from \"./utils/image-resize.ts\";\nexport { detectSupportedImageMimeTypeFromFile } from \"./utils/mime.ts\";\n// Shell utilities\nexport { getPowerShellConfig, getShellConfig, killProcessTree, sanitizeBinaryOutput } from \"./utils/shell.ts\";\n"]}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,eAAe,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAC;AAO7D,OAAO,EACN,uBAAuB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,GACrC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,mBAAmB,GACnB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACN,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,KAAK,IAAI,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,oCAAoC,CAAC;AAGxE,OAAO,KAAK,UAAU,MAAM,sCAAsC,CAAC;AACnE,OAAO,EACN,eAAe,EACf,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,EACb,aAAa,EACb,cAAc,EACd,OAAO,GACP,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,4BAA4B,EAC5B,iCAAiC,EACjC,oBAAoB,EACpB,KAAK,8B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AAE,oCAAoC,EAAE,MAAM,iBAAiB,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["// Core session management\n\nexport type { AgentToolResult, AgentToolUpdateCallback, ToolExecutionMode } from \"@agent-forge/agent-core\";\n// First-party plugin ecosystem (opt-in namespaces; domain plugins do not\n// alter the default coding tool surface).\nexport * as PluginContractsV1 from \"@agent-forge/plugin-sdk\";\n// Memory capability storage contract (扩展位盘点 A1/A2): injectable\n// store/ledger factories and vector components behind\n// `CreateAgentSessionOptions.memoryCapability.storage`. Authoritative home is\n// @agent-forge/plugin-sdk since the S4-4 split (the memory capability itself\n// moved to the @agent-forge/plugin-memory package); re-exported here so the\n// memory-backend example and existing host imports keep resolving.\nexport {\n\tMEMORY_RECALL_TOOL_NAME,\n\ttype MemoryCapabilityOverrideV1,\n\ttype MemoryStorageComponentsV1,\n\ttype MemoryVectorComponentsOverrideV1,\n} from \"@agent-forge/plugin-sdk\";\n// Artifact store (2.6a): session export artifacts with bounded reads and EOL\nexport {\n\ttype ArtifactStatV1,\n\ttype ArtifactStoreV1,\n\tcreateArtifactStore,\n} from \"./artifacts/artifact-store.ts\";\n// Paged artifact reading (3.5c): ref-based expansion with explicit failures\nexport {\n\ttype ArtifactPageDirectoryEntryV1,\n\ttype ArtifactPagePlanV1,\n\ttype ArtifactPageReadV1,\n\tplanArtifactPages,\n\treadArtifactPage,\n} from \"./artifacts/paged-read.ts\";\nexport { type Args, parseArgs } from \"./cli/args.ts\";\nexport * as PluginManagerUiV1 from \"./cli/plugin-manager-controller.ts\";\n// Host-owned plugin management surfaces. They expose bounded DTOs only; the\n// registry, installer, package paths and credentials remain behind the host.\nexport * as PluginUiV1 from \"./cli/plugin-selection-controller.ts\";\nexport {\n\tCONFIG_DIR_NAME,\n\tgetAgentDir,\n\tgetDocsPath,\n\tgetExamplesPath,\n\tgetPackageDir,\n\tgetReadmePath,\n\tgetSessionsDir,\n\tVERSION,\n} from \"./config.ts\";\nexport {\n\tAGENT_CAPABILITY_CONTRACT_ID,\n\tAGENT_CAPABILITY_CONTRACT_VERSION,\n\tAGENT_ERROR_CODES_V1,\n\ttype AgentCapabilityContractInputV1,\n\ttype AgentCapabilityContractV1,\n\ttype AgentCapabilityContractVersion,\n\ttype AgentDefinitionSnapshotV1,\n\ttype AgentErrorCodeV1,\n\ttype AgentInstanceSnapshotV1,\n\ttype AgentProfileV1,\n\ttype ArtifactRefV1,\n\tassertCapabilitySupportedV1,\n\tbuildAgentCapabilityContract,\n\tbuildAgentCapabilityContractV1,\n\tbuildAgentDefinitionSnapshotV1,\n\tbuildAgentInstanceSnapshotV1,\n\tbuildAgentProfileV1,\n\tbuildArtifactRefV1,\n\tbuildCanonicalContractFixtureVectorsV1,\n\tbuildCanonicalContractVectorsV1,\n\tbuildCommandRequestV1,\n\tbuildContractCompatibilityRequirementsV1,\n\tbuildErrorEnvelopeV1,\n\tbuildEventEnvelope,\n\tbuildEventEnvelopeV1,\n\tbuildHostContextV1,\n\tbuildOperationSnapshotV1,\n\tbuildOperationTerminalV1,\n\tbuildSessionRevisionV1,\n\tbuildSessionSnapshotV1,\n\ttype CanonicalContractFixtureVectorV1,\n\ttype CanonicalContractVectorsV1,\n\ttype CapabilityRefV1,\n\ttype CapabilityResolutionV1,\n\ttype CommandAdmissionV1,\n\ttype CommandOperationRegistryV1,\n\ttype CommandRequestInputV1,\n\ttype CommandRequestV1,\n\ttype ContractCompatibilityIssueCodeV1,\n\ttype ContractCompatibilityIssueV1,\n\ttype ContractCompatibilityRequirementsV1,\n\ttype ContractCompatibilityResultV1,\n\tcheckContractCompatibilityV1,\n\tcreateCommandOperationRegistryV1,\n\ttype ErrorEnvelopeV1,\n\ttype EventCategoryV1,\n\ttype EventDeliveryGuaranteeV1,\n\ttype EventEnvelopeInputV1,\n\ttype EventEnvelopeV1,\n\ttype HostContextV1,\n\ttype HostMode as CanonicalHostModeV1,\n\ttype HostTransport,\n\tisRegisteredAgentErrorCodeV1,\n\ttype JsonValue,\n\tmapProtocolErrorCodeToAgentErrorV1,\n\ttype OperationSnapshotV1,\n\ttype OperationStatusV1,\n\ttype OperationTerminalV1,\n\tresolveCapabilityV1,\n\ttype SessionRevisionV1,\n\ttype SessionSnapshotV1,\n\ttoErrorEnvelopeV1,\n\tvalidateAgentCapabilityContract,\n\tvalidateAgentCapabilityContractV1,\n\tvalidateAgentProfileV1,\n\tvalidateArtifactRefV1,\n\tvalidateCommandAdmissionV1,\n\tvalidateCommandRequestV1,\n\tvalidateContractCompatibilityRequirementsV1,\n\tvalidateContractCompatibilityResultV1,\n\tvalidateErrorEnvelopeV1,\n\tvalidateEventEnvelope,\n\tvalidateEventEnvelopeV1,\n\tvalidateHostContextV1,\n\tvalidateOperationSnapshotV1,\n\tvalidateOperationTerminalV1,\n\tvalidateSessionRevisionV1,\n\tvalidateSessionSnapshotV1,\n} from \"./core/agent-capability-contract.ts\";\nexport {\n\tAgentSession,\n\ttype AgentSessionConfig,\n\ttype AgentSessionEvent,\n\ttype AgentSessionEventListener,\n\ttype ModelCycleResult,\n\ttype ParsedSkillBlock,\n\ttype PromptOptions,\n\tparseSkillBlock,\n\ttype SessionStats,\n} from \"./core/agent-session.ts\";\nexport { readStoredCredential } from \"./core/auth-storage.ts\";\n// Compaction\nexport {\n\ttype BranchPreparation,\n\ttype BranchSummaryResult,\n\ttype CollectEntriesResult,\n\ttype CompactionResult,\n\ttype CutPointResult,\n\tcalculateContextTokens,\n\tcollectEntriesForBranchSummary,\n\tcompact,\n\tDEFAULT_COMPACTION_SETTINGS,\n\testimateTokens,\n\ttype FileOperations,\n\tfindCutPoint,\n\tfindTurnStartIndex,\n\ttype GenerateBranchSummaryOptions,\n\tgenerateBranchSummary,\n\tgenerateSummary,\n\tgenerateSummaryWithUsage,\n\tgetLastAssistantUsage,\n\tprepareBranchEntries,\n\tserializeConversation,\n\tshouldCompact,\n} from \"./core/compaction/index.ts\";\nexport {\n\tcreateEmbeddedSdkBinding,\n\tcreateEmbeddedSdkBindingV1,\n\ttype EmbeddedAgentDefinitionV1,\n\ttype EmbeddedAgentInstanceV1,\n\ttype EmbeddedAgentResultV1,\n\ttype EmbeddedControllerLeaseV1,\n\ttype EmbeddedOperationHandleV1,\n\ttype EmbeddedSdkBindingV1,\n\ttype EmbeddedSdkEventListenerV1,\n\ttype EmbeddedSdkOptionsV1,\n\ttype EmbeddedSdkSubscriptionV1,\n\ttype EmbeddedSessionBindingV1,\n} from \"./core/embedded-sdk.ts\";\nexport { createEventBus, type EventBus, type EventBusController } from \"./core/event-bus.ts\";\nexport type { ExecOptions, ExecResult } from \"./core/exec.ts\";\n// Config paths\nexport {\n\ttype AgentCompositionAPI,\n\ttype AgentCompositionDefinitionBinding,\n\ttype AgentCompositionHostBinding,\n\ttype AgentCompositionLifecycleBinding,\n\ttype AgentCompositionLifecycleDispatcher,\n\ttype AgentCompositionLifecycleEvent,\n\ttype AgentCompositionLifecycleEventName,\n\ttype AgentCompositionLifecycleTerminalStatus,\n\tAgentCompositionRuntime,\n\ttype AgentCompositionRuntimeOptions,\n\ttype AgentCompositionScopedHostBinding,\n\ttype AgentContextCommitRequestV1,\n\ttype AgentContextCommitResultV1,\n\ttype AgentContextFacadeV1,\n\ttype AgentContextSnapshotV1,\n\ttype AgentControllerLease,\n\ttype AgentControllerRole,\n\ttype AgentDefinition,\n\ttype AgentDefinitionDeclaration,\n\ttype AgentExecutionContext,\n\ttype AgentHostPrimitivesFactory,\n\ttype AgentHostPrimitivesFactoryContext,\n\ttype AgentHostPrimitivesV1,\n\ttype AgentInstance,\n\ttype AgentInstanceResult,\n\ttype AgentInstanceSnapshot,\n\ttype AgentInstanceStatus,\n\ttype AgentOperationFacadeV1,\n\ttype AgentSessionFacadeV1,\n\ttype AgentTaskAdapter,\n\ttype AgentTaskAPI,\n\ttype AgentTaskCreateRequest,\n\ttype AgentTaskHandle,\n\ttype AgentTaskHost,\n\ttype AgentTaskResultV1,\n\ttype AgentTaskStatus,\n\ttype AgentTaskWaitResult,\n\tBOOTSTRAP_LIFECYCLE_PLUGIN_ID,\n\tCAPABILITY_CALL_EVENT_ID,\n\tCAPABILITY_CALL_EVENT_VERSION,\n\ttype CapabilityAPI,\n\ttype CapabilityCallEventDataV1,\n\ttype CapabilityCallEventNameV1,\n\ttype CapabilityCallStatusV1,\n\ttype CapabilityCommandContext,\n\ttype CapabilityCommandDefinition,\n\ttype CapabilityCommandLink,\n\ttype CapabilityCommandResult,\n\ttype CapabilityDirectoryAPI,\n\ttype CapabilityHandle,\n\ttype CapabilityPluginFactory,\n\ttype CapabilityPluginFactoryResult,\n\ttype CapabilityPluginHandle,\n\ttype CapabilityPluginInstance,\n\ttype CapabilityPluginSyncFactory,\n\ttype CapabilityPluginSyncInstance,\n\ttype CapabilityProviderHandler,\n\ttype CapabilityRuntime,\n\ttype CompactionCommitAppliedV1,\n\ttype CompactionCommitRequestV1,\n\ttype CompactionCommitResultV1,\n\ttype CompactionCommitRevisionConflictV1,\n\ttype CompactionPolicy,\n\ttype CompactionPolicyDecision,\n\ttype CompactionPolicyRequest,\n\ttype CompactionSummaryRequest,\n\ttype CompactionSummaryResult,\n\ttype ContextStrategy,\n\ttype ContributionAPI,\n\ttype ContributionChangeEvent,\n\ttype ContributionEntry,\n\ttype ContributionHandle,\n\ttype ContributionLifecycle,\n\ttype ContributionPoint,\n\ttype ContributionPointDefinition,\n\ttype CredentialAPI,\n\ttype CredentialResolution,\n\ttype CredentialResolveRequest,\n\tcreateAgentCompositionRuntime,\n\tcreateCapabilityRuntime,\n\tcreateDisposableRegistration,\n\tcreateEventEnvelope,\n\tDEFAULT_COMPACTION_POLICY_NAME,\n\tDEFAULT_RETRY_POLICY_NAME,\n\ttype DiagnosticsAPI,\n\ttype DiagnosticsSpan,\n\ttype DiagnosticsSpanEnd,\n\ttype DiagnosticsSpanSnapshot,\n\ttype DisposableRegistration,\n\tdiscoverCapabilityPluginManifests,\n\ttype EventEnvelope,\n\tEXPERIMENTAL_PUBLIC_API_VERSION,\n\ttype ExecutionFactsV1,\n\ttype ExecutionPhaseV1,\n\ttype HostCapabilities,\n\ttype HostMode,\n\tinstallBootstrapLifecycle,\n\ttype LifecycleAfterCommitHandler,\n\ttype LifecycleAPI,\n\ttype LifecycleDeliveryFailure,\n\ttype LifecycleDeliveryMode,\n\ttype LifecycleDeliveryOptions,\n\ttype LifecycleDeliveryReport,\n\ttype LifecycleDeliverySnapshot,\n\ttype LifecycleDispatchRequest,\n\ttype LifecycleDispatchResult,\n\ttype LifecycleEvent,\n\ttype LifecycleEventDefinition,\n\ttype LifecycleEventReference,\n\tLifecycleExecuteError,\n\ttype LifecycleExecuteHandler,\n\ttype LifecycleObserveHandler,\n\ttype LifecyclePhase,\n\ttype LifecycleRegistrationKind,\n\tLifecycleTransformError,\n\ttype LifecycleTransformHandler,\n\ttype LoggerAPI,\n\ttype LoggerLevel,\n\ttype LoggerRecord,\n\tloadCapabilityPlugin,\n\tloadCapabilityPluginFromManifest,\n\tloadCapabilityPluginSync,\n\tMODEL_RESPONSE_EVENT_ID,\n\tMODEL_RESPONSE_EVENT_VERSION,\n\tMODEL_STREAM_EVENT_ID,\n\tMODEL_STREAM_EVENT_VERSION,\n\ttype ModelResponseEventDataV1,\n\ttype ModelStreamEventDataV1,\n\ttype ModelStreamEventNameV1,\n\tOPERATION_CANCEL_EVENT_ID,\n\tOPERATION_CANCEL_EVENT_VERSION,\n\tOPERATION_END_EVENT_ID,\n\tOPERATION_END_EVENT_VERSION,\n\tOPERATION_START_EVENT_ID,\n\tOPERATION_START_EVENT_VERSION,\n\tOPERATION_STEP_EVENT_ID,\n\tOPERATION_STEP_EVENT_VERSION,\n\ttype OperationCancelEventDataV1,\n\ttype OperationEndEventDataV1,\n\ttype OperationExecutionContext,\n\ttype OperationHandle,\n\ttype OperationProgress,\n\ttype OperationStartEventDataV1,\n\ttype OperationStatus,\n\ttype OperationStepEventDataV1,\n\ttype OutputArtifactAPI,\n\ttype OutputArtifactChunk,\n\ttype OutputArtifactErrorCode,\n\ttype OutputArtifactPutInput,\n\ttype OutputArtifactRef,\n\tPLUGIN_DISPOSE_EVENT_ID,\n\tPLUGIN_DISPOSE_EVENT_VERSION,\n\tPLUGIN_READY_EVENT_ID,\n\tPLUGIN_READY_EVENT_VERSION,\n\ttype PluginAgentRole,\n\ttype PluginCapabilityDeclaration,\n\ttype PluginCapabilityRequirement,\n\ttype PluginConfig,\n\ttype PluginConfigValue,\n\ttype PluginDisposeEventDataV1,\n\ttype PluginManifest,\n\ttype PluginReadyEventDataV1,\n\ttype PolicyInvocationContextV1,\n\ttype ProviderHeaderTransform,\n\ttype ProviderHeaderTransformRequest,\n\tparseCapabilityPluginManifest,\n\ttype RetryPolicy,\n\ttype RetryPolicyDecision,\n\ttype RetryPolicyRequest,\n\ttype RetryScheduleV1,\n\ttype RuntimeInspectorAPI,\n\ttype RuntimeInspectorErrorSnapshot,\n\ttype RuntimeInspectorLifecycleDeliveryFailureSnapshot,\n\ttype RuntimeInspectorLifecycleDeliveryReportSnapshot,\n\ttype RuntimeInspectorSnapshot,\n\tresolvePluginCapabilityOrder,\n\tSESSION_COMPACTION_COMMIT_EVENT_ID,\n\tSESSION_COMPACTION_COMMIT_EVENT_VERSION,\n\tSESSION_CONTEXT_REPLACED_EVENT_ID,\n\tSESSION_CONTEXT_REPLACED_EVENT_VERSION,\n\tSESSION_RELOAD_EVENT_ID,\n\tSESSION_RELOAD_EVENT_VERSION,\n\ttype SessionAPI,\n\ttype SessionCompactionCommitEventDataV1,\n\ttype SessionContextReplacedEventDataV1,\n\ttype SessionEntryView,\n\ttype SessionExportArtifact,\n\ttype SessionExportRequest,\n\ttype SessionReloadEventDataV1,\n\ttype SkillDefinition,\n\ttype StateAPI,\n\ttype StateChange,\n\ttype StateEntry,\n\ttype StateSetOptions,\n\tSUMMARY_MODEL_INVOCATION_ERROR_CODES,\n\ttype SummaryModelFactsV1,\n\ttype SummaryModelInvocationRequestV1,\n\ttype SummaryModelInvocationResultV1,\n\ttype SummaryModelInvocationV1,\n\tTOOL_CALL_EVENT_ID,\n\tTOOL_CALL_EVENT_VERSION,\n\tTOOL_COMMIT_EVENT_ID,\n\tTOOL_COMMIT_EVENT_VERSION,\n\tTOOL_EXECUTE_EVENT_ID,\n\tTOOL_EXECUTE_EVENT_VERSION,\n\tTOOL_RESULT_EVENT_ID,\n\tTOOL_RESULT_EVENT_VERSION,\n\tTOOL_RESULT_RAW_EVENT_ID,\n\tTOOL_RESULT_RAW_EVENT_VERSION,\n\tTOOL_RESULT_TRANSFORM_EVENT_ID,\n\tTOOL_RESULT_TRANSFORM_EVENT_VERSION,\n\ttype ToolCallEventDataV1,\n\ttype ToolCommitEventDataV1,\n\ttype ToolExecuteEventDataV1,\n\ttype ToolResultEventDataV1,\n\ttype ToolResultRawEventDataV1,\n\ttype ToolResultTransformEventDataV1,\n\tvalidateCapabilityCallEventDataV1,\n\tvalidateExecutionFactsV1,\n\tvalidateModelResponseEventDataV1,\n\tvalidateModelStreamEventDataV1,\n\tvalidateOperationCancelEventDataV1,\n\tvalidateOperationEndEventDataV1,\n\tvalidateOperationStartEventDataV1,\n\tvalidateOperationStepEventDataV1,\n\tvalidatePluginDisposeEventDataV1,\n\tvalidatePluginReadyEventDataV1,\n\tvalidateRetryScheduleV1,\n\tvalidateSessionCompactionCommitEventDataV1,\n\tvalidateSessionContextReplacedEventDataV1,\n\tvalidateSessionReloadEventDataV1,\n\tvalidateToolCallEventDataV1,\n\tvalidateToolCommitEventDataV1,\n\tvalidateToolExecuteEventDataV1,\n\tvalidateToolResultEventDataV1,\n\tvalidateToolResultRawEventDataV1,\n\tvalidateToolResultTransformEventDataV1,\n} from \"./core/extensions/index.ts\";\nexport type { ContextUsage } from \"./core/extensions/public-api.ts\";\nexport { detachedSessionSnapshot } from \"./core/extensions/public-api.ts\";\n// Stable session facade v1 type (B-S2b③-S2): named so the createStableAgentSession\n// result is nameable from the package root. The package-root `exports` subpath set\n// is unchanged (B-S2a gate holds; the facade is not promoted into an exports subpath).\nexport type { CodingAgentFacadeV1 } from \"./core/facade/coding-agent-facade.ts\";\n// Stable runtime facade v1 type (D-063): named so the createStableAgentSessionRuntime\n// result is nameable from the package root. The package-root `exports` subpath set\n// is unchanged (B-S2a gate holds; the facade is not promoted into an exports subpath).\nexport type { CodingAgentRuntimeFacadeV1 } from \"./core/facade/coding-agent-runtime-facade.ts\";\n// Footer data provider (git branch + extension statuses - data not otherwise available to extensions)\nexport type { ReadonlyFooterDataProvider } from \"./core/footer-data-provider.ts\";\nexport type { InputSource } from \"./core/input-source.ts\";\nexport { convertToLlm } from \"./core/messages.ts\";\nexport {\n\tModelRegistry,\n\ttype ProviderConfigInput,\n} from \"./core/model-registry.ts\";\nexport {\n\ttype ModelScopeDiagnostic,\n\ttype ResolveCliModelResult,\n\ttype ResolveModelScopeResult,\n\tresolveCliModel,\n\tresolveModelScopeWithDiagnostics,\n\ttype ScopedModel,\n} from \"./core/model-resolver.ts\";\nexport {\n\ttype CreateModelRuntimeOptions,\n\tCredentialSynchronizationError,\n\ttype CredentialSynchronizationOperation,\n\tModelRuntime,\n\ttype ModelRuntimeAuthOverrides,\n} from \"./core/model-runtime.ts\";\nexport type {\n\tPackageManager,\n\tPathMetadata,\n\tProgressCallback,\n\tProgressEvent,\n\tResolvedPaths,\n\tResolvedResource,\n} from \"./core/package-manager.ts\";\nexport { DefaultPackageManager } from \"./core/package-manager.ts\";\nexport type { ResourceCollision, ResourceDiagnostic, ResourceLoader } from \"./core/resource-loader.ts\";\nexport { DefaultResourceLoader, loadProjectContextFiles } from \"./core/resource-loader.ts\";\n// SDK for programmatic usage\nexport {\n\tAgentSessionRuntime,\n\ttype AgentSessionRuntimeDiagnostic,\n\ttype AgentSessionServices,\n\ttype CreateAgentSessionFromServicesOptions,\n\ttype CreateAgentSessionOptions,\n\ttype CreateAgentSessionResult,\n\ttype CreateAgentSessionRuntimeFactory,\n\ttype CreateAgentSessionRuntimeResult,\n\ttype CreateAgentSessionServicesOptions,\n\ttype CreateStableAgentSessionResult,\n\ttype CreateStableAgentSessionRuntimeResult,\n\t// Factory\n\tcreateAgentSession,\n\tcreateAgentSessionFromServices,\n\tcreateAgentSessionRuntime,\n\tcreateAgentSessionServices,\n\t// Stable session entry (B-S2b③-S2): same assembly as createAgentSession,\n\t// returned as the stable facade pair. The package-root `exports` subpath set\n\t// is unchanged (B-S2a gate holds; this is a named export, not a subpath).\n\tcreateStableAgentSession,\n\t// Stable runtime entry (D-063): same assembly as createAgentSessionRuntime,\n\t// returned as the stable runtime facade (no bare runtime/session). Same\n\t// package-root `exports` note as the session entry above.\n\tcreateStableAgentSessionRuntime,\n\ttype PromptTemplate,\n} from \"./core/sdk.ts\";\nexport {\n\ttype BranchSummaryEntry,\n\tbuildContextEntries,\n\tbuildSessionContext,\n\ttype CompactionEntry,\n\tCURRENT_SESSION_VERSION,\n\ttype CustomEntry,\n\ttype CustomMessageEntry,\n\ttype FileEntry,\n\tgetLatestCompactionEntry,\n\ttype ModelChangeEntry,\n\tmigrateSessionEntries,\n\ttype NewSessionOptions,\n\tparseSessionEntries,\n\ttype SessionContext,\n\ttype SessionEntry,\n\ttype SessionEntryBase,\n\ttype SessionHeader,\n\ttype SessionInfo,\n\ttype SessionInfoEntry,\n\tSessionManager,\n\ttype SessionMessageEntry,\n\ttype SessionTreeNode,\n\tsessionEntryToContextMessages,\n\ttype ThinkingLevelChangeEntry,\n} from \"./core/session-manager.ts\";\nexport {\n\tFileSessionStorageProvider,\n\tSessionHeaderScanLimitError,\n\ttype SessionStorageProvider,\n\ttype SessionWriteGuardV1,\n} from \"./core/session-storage.ts\";\nexport {\n\ttype CompactionSettings,\n\ttype FullscreenExitOutput,\n\ttype ImageSettings,\n\ttype PackageSource,\n\ttype RetrySettings,\n\tSettingsManager,\n\ttype SettingsManagerCreateOptions,\n\ttype TuiMode,\n} from \"./core/settings-manager.ts\";\n// Skills\nexport {\n\tformatSkillsForPrompt,\n\ttype LoadSkillsFromDirOptions,\n\ttype LoadSkillsResult,\n\tloadSkills,\n\tloadSkillsFromDir,\n\ttype Skill,\n\ttype SkillFrontmatter,\n} from \"./core/skills.ts\";\nexport type { SlashCommandInfo, SlashCommandSource } from \"./core/slash-commands.ts\";\nexport type { SourceInfo } from \"./core/source-info.ts\";\nexport { createSyntheticSourceInfo } from \"./core/source-info.ts\";\nexport type { BuildSystemPromptOptions } from \"./core/system-prompt.ts\";\nexport { type EditDiffResult, generateDiffString, generateUnifiedPatch } from \"./core/tools/edit-diff.ts\";\n// Tools (D-082 批 1: the default coding tool definitions moved to the\n// plugins/coding-tools package; the host keeps the shared tool-support face)\nexport {\n\ttype BashOperations,\n\ttype BashSpawnContext,\n\ttype BashSpawnHook,\n\tcreateLocalBashOperations,\n\tcreateLocalShellOperations,\n\tDEFAULT_MAX_BYTES,\n\tDEFAULT_MAX_LINES,\n\tformatSize,\n\ttype TruncationOptions,\n\ttype TruncationResult,\n\ttruncateHead,\n\ttruncateLine,\n\ttruncateTail,\n\twithFileMutationQueue,\n} from \"./core/tools/index.ts\";\nexport type {\n\tToolDefinition,\n\tToolExecuteContext,\n\tToolInfo,\n\tToolRenderContext,\n\tToolRenderResultOptions,\n} from \"./core/tools/tool-definition.ts\";\n// Tool definition surface (capability tools contract)\nexport { defineTool } from \"./core/tools/tool-definition.ts\";\n// Durable service (7.4b): in-memory persistence with optional file backend\nexport {\n\tcreateDurableService,\n\tcreateFileDurableStoreBackend,\n\ttype DurableArtifactRecordV1,\n\ttype DurableOperationRecordV1,\n\ttype DurableReplayDiagnosticsV1,\n\ttype DurableServiceErrorCodeV1,\n\tDurableServiceErrorV1,\n\ttype DurableServiceOptionsV1,\n\ttype DurableServiceV1,\n\ttype DurableSessionRecordV1,\n\ttype DurableSnapshotV1,\n\ttype DurableStoreBackend,\n\ttype DurableStoreLoadResultV1,\n\ttype DurableStoreOperationV1,\n\ttype DurableWriterClaimV1,\n\ttype DurableWriterRecoveryV1,\n\tdurableLogPath,\n} from \"./durable/durable-service.ts\";\n// Agent retry scheduler (2A.4b): cancellable, duplicate-suppressing retries\nexport {\n\ttype AgentRetryAttemptV1,\n\ttype AgentRetryOutcomeV1,\n\ttype AgentRetryPolicyV1,\n\ttype AgentRetrySchedulerV1,\n\tcreateAgentRetryScheduler,\n} from \"./host/agent-retry-scheduler.ts\";\n// Auto compaction executor (2A.3a): threshold-triggered with cancel/re-entrancy\nexport {\n\ttype AutoCompactionExecutorV1,\n\ttype AutoCompactionOutcomeV1,\n\ttype AutoCompactionPolicyV1,\n\tcreateAutoCompactionExecutor,\n} from \"./host/auto-compaction.ts\";\n// Branch migration and reload transaction (2A.5a/2A.5b)\nexport {\n\ttype BranchMigrationOutcomeV1,\n\ttype BranchStateEntryV1,\n\ttype BranchStateMigrationV1,\n\tcreateBranchStateMigration,\n\tcreateReloadTransaction,\n\ttype ReloadTransactionV1,\n} from \"./host/branch-reload.ts\";\n// Channel adapter (3.5b): print/JSON stdout-stderr semantics\nexport {\n\ttype ChannelAdapterV1,\n\ttype ChannelFormatV1,\n\tcreateStdioChannelAdapter,\n} from \"./host/channel-adapter.ts\";\n// Host checkpoint/commit (2A.1): revision-guarded idempotent two-phase writes\nexport {\n\tcreateHostCheckpointCoordinator,\n\ttype HostCheckpointCoordinatorV1,\n\ttype HostCommitOutcomeV1,\n\ttype HostStagedWriteV1,\n\ttype HostStageResultV1,\n} from \"./host/checkpoint-commit.ts\";\n// Manual compaction executor (2A.2): plugin-driven timing over checkpoint primitives\nexport {\n\tcreateManualCompactionExecutor,\n\ttype ManualCompactionExecutorV1,\n\ttype ManualCompactionOutcomeV1,\n\ttype ManualCompactionStateV1,\n} from \"./host/manual-compaction.ts\";\n// Host output projection (2.6b): traced channel records with structured errors\nexport {\n\tcreateHostOutputProjector,\n\ttype HostEventV1,\n\ttype HostOutputChannelV1,\n\ttype HostOutputProjectorV1,\n\ttype HostOutputRecordV1,\n\ttype HostOutputSeverityV1,\n} from \"./host/output-projection.ts\";\n// Output reducer (3.5a): deterministic fold/unfold over projected records\nexport {\n\tcreateOutputReducer,\n\ttype FoldedOutputGroupV1,\n\ttype FoldedOutputV1,\n\ttype OutputReducerV1,\n} from \"./host/output-reducer.ts\";\n// Host Output Serializer (3.5 supplement): per-surface allowlist projection\nexport {\n\tcreateHostOutputSerializer,\n\ttype HostOutputProjectionV1,\n\ttype HostOutputSerializerContextV1,\n\ttype HostOutputSerializerV1,\n\ttype HostOutputSurfaceV1,\n\ttype OutputArtifactRefV1,\n} from \"./host/output-serializer.ts\";\n// Provider overflow recovery (2A.3b): classification and shrink-and-commit entry\nexport {\n\tcreateOverflowRecovery,\n\ttype OverflowRecoveryOutcomeV1,\n\ttype OverflowRecoveryV1,\n\ttype ProviderErrorClassificationV1,\n\ttype ProviderErrorClassV1,\n} from \"./host/overflow-recovery.ts\";\n// Summary retry (2A.4a): traced attempts, exponential backoff, terminal states\nexport {\n\tcreateSummaryRetryExecutor,\n\ttype SummaryAttemptRecordV1,\n\ttype SummaryRetryExecutorV1,\n\ttype SummaryRetryOutcomeV1,\n\ttype SummaryRetryPolicyV1,\n} from \"./host/summary-retry.ts\";\n// Main entry point\nexport { type MainOptions, main } from \"./main.ts\";\n// Migration tool (7.4a): chained version migration with rollback evidence\nexport {\n\tcreateMigrationTool,\n\ttype MigrationEvidenceStepV1,\n\ttype MigrationOutcomeV1,\n\ttype MigrationStepV1,\n\ttype MigrationToolV1,\n} from \"./migration/migration-tool.ts\";\n// Run modes for programmatic SDK usage\nexport {\n\tInteractiveMode,\n\ttype InteractiveModeOptions,\n\ttype JsonAgentSessionEvent,\n\ttype ModelInfo,\n\ttype PrintModeOptions,\n\tRpcClient,\n\ttype RpcClientOptions,\n\ttype RpcCommand,\n\ttype RpcEventListener,\n\ttype RpcExtensionUIRequest,\n\ttype RpcExtensionUIResponse,\n\ttype RpcModeOptions,\n\ttype RpcResponse,\n\ttype RpcSessionState,\n\trunPrintMode,\n\trunRpcMode,\n} from \"./modes/index.ts\";\n// UI components for extensions\nexport {\n\tArminComponent,\n\tAssistantMessageComponent,\n\tBashExecutionComponent,\n\tBorderedLoader,\n\tBranchSummaryMessageComponent,\n\tCompactionSummaryMessageComponent,\n\tCustomEditor,\n\tCustomMessageComponent,\n\tDialogEditorComponent,\n\tDialogInputComponent,\n\tDialogSelectorComponent,\n\tDynamicBorder,\n\tFooterComponent,\n\tkeyHint,\n\tkeyText,\n\tLoginDialogComponent,\n\tModelSelectorComponent,\n\tOAuthSelectorComponent,\n\tPluginManagerEntryComponent,\n\ttype PluginManagerEntryOpenContextV1,\n\ttype PluginManagerEntryOpenResultV1,\n\ttype PluginManagerEntryOptionsV1,\n\ttype RenderDiffOptions,\n\trawKeyHint,\n\trenderDiff,\n\tSessionSelectorComponent,\n\ttype SettingsCallbacks,\n\ttype SettingsConfig,\n\tSettingsSelectorComponent,\n\tShowImagesSelectorComponent,\n\tSkillInvocationMessageComponent,\n\tThemeSelectorComponent,\n\tThinkingSelectorComponent,\n\tToolExecutionComponent,\n\ttype ToolExecutionOptions,\n\tTreeSelectorComponent,\n\ttruncateToVisualLines,\n\tUserMessageComponent,\n\tUserMessageSelectorComponent,\n\ttype VisualTruncateResult,\n} from \"./modes/interactive/components/index.ts\";\nexport * as PluginEcosystemV1 from \"./plugins/ecosystem/index.ts\";\n// Host facts for the ecosystem pluginHost options (B-S2b: the convergence\n// slice names the previously unnameable type for cross-package consumers).\nexport type { HostFactsV1 } from \"./plugins/ecosystem/types.ts\";\n// Integrity adapter (7.3): seal/verify manifests for external policy flows\nexport {\n\tcreateIntegrityAdapter,\n\ttype IntegrityAdapterV1,\n\ttype ManifestExpectationV1,\n\ttype ManifestVerdictV1,\n\ttype SealedManifestV1,\n} from \"./plugins/integrity-adapter.ts\";\n// Plugin host (7.1): owned lifecycle, reverse dispose, error aggregation\nexport {\n\tcreatePluginHost,\n\ttype HostedPluginV1,\n\ttype PluginHostErrorV1,\n\ttype PluginHostResourceV1,\n\ttype PluginHostStateV1,\n\ttype PluginHostV1,\n} from \"./plugins/plugin-host.ts\";\n// Plugin supervisor (7.2): heartbeat, bounded restart, backpressure\nexport {\n\tcreatePluginSupervisor,\n\ttype PluginHealthV1,\n\ttype PluginSupervisorV1,\n\ttype SupervisorEntryV1,\n\ttype SupervisorEventV1,\n\ttype SupervisorPolicyV1,\n} from \"./plugins/plugin-supervisor.ts\";\n// Profile identity (2.0a): profileId/version, manifest digest, host compatibility\nexport {\n\tbuildProfileIdentityV1,\n\ttype ProfileIdentityV1,\n\tprofileIdentitiesCompatible,\n\ttype ResolvedPluginManifestV1,\n\tstableJsonDigest,\n} from \"./profile/identity.ts\";\n// Profile lock (2.0b): pre-creation lock, reopen/reload drift detection\nexport {\n\tcreateProfileLock,\n\ttype ProfileLockReplaceResultV1,\n\ttype ProfileLockV1,\n\ttype ProfileLockVerificationV1,\n\treplaceProfileLock,\n\tverifyProfileLock,\n} from \"./profile/lock.ts\";\nexport {\n\ttype BuiltinPluginManifestOverridesV1,\n\ttype BuiltinPluginProfileIdV1,\n\ttype BuiltinPluginProfileResolutionV1,\n\ttype BuiltinPluginProfileV1,\n\tlistBuiltinPluginManifestsV1,\n\tlistBuiltinPluginProfilesV1,\n\tresolveBuiltinPluginProfileV1,\n} from \"./profile/plugin-profiles.ts\";\n// Profile assembly (2.5b): verified-plugin assembly, version lock, replacement\nexport {\n\tassembleProfile,\n\ttype PluginReplacementRecordV1,\n\ttype ProfileAssemblyResultV1,\n\ttype ProfileAssemblyV1,\n\ttype ProfileReplacementResultV1,\n\treplaceProfilePlugin,\n\ttype VerifiedToolPluginV1,\n} from \"./profile/profile-assembly.ts\";\n// Profile migration policy (2.7b): explicit reopen migration over the 2.0b lock\nexport {\n\tcreateProfileMigrationPolicy,\n\ttype ProfileMigrationPlanV1,\n\ttype ProfileMigrationPolicyV1,\n\ttype ProfileMigrationResultV1,\n} from \"./profile/profile-migration.ts\";\n// Profile registry (2.7a): multi-source discovery, upgrades, deprecation\nexport {\n\tcreateProfileRegistry,\n\ttype ProfileRegistryV1,\n\ttype ProfileResolutionV1,\n\ttype ProfileVersionRangeV1,\n\ttype RegistryProfileEntryV1,\n\ttype RegistrySourceV1,\n} from \"./profile/profile-registry.ts\";\n// Remote server assembly (1B.7h): coding-agent sessions behind the public server boundary\nexport {\n\tassembleCodingAgentServer,\n\ttype CodingAgentServerAssemblyOptions,\n\ttype CodingAgentServerModels,\n\tCodingAgentServerService,\n\ttype CodingAgentServerSessionSource,\n\ttype CodingAgentSessionDescriptor,\n\tCodingAgentSessionRuntime,\n\tprojectSessionTranscript,\n} from \"./remote/server-assembly.ts\";\n// Remote restart recovery (E3): production session source and programmatic server entry\nexport {\n\ttype CodingAgentRemoteServerHandle,\n\ttype StartCodingAgentRemoteServerOptions,\n\tstartCodingAgentRemoteServer,\n} from \"./remote/server-entry.ts\";\nexport {\n\tcreateFileSessionSource,\n\ttype FileSessionSourceOptions,\n} from \"./remote/session-source.ts\";\n// Session share contract (2.6c): revocable read-only shares with explicit transports\nexport {\n\tcreateSessionShare,\n\ttype SessionShareManagerV1,\n\ttype ShareArtifactInputV1,\n\ttype ShareContractV1,\n\ttype ShareResolveRequestV1,\n\ttype ShareResolveResultV1,\n\ttype ShareScopeV1,\n\ttype ShareTransportV1,\n} from \"./share/session-share.ts\";\n// Share viewer (2.6d): escaped HTML + JSON views with explicit failure states\nexport { createShareViewer, type ShareViewerV1, type ShareViewV1 } from \"./share/share-viewer.ts\";\nexport { isBuiltinSuiteId } from \"./suites/builtin-suites.ts\";\n// Resolved agent profile (D-047 S4a): immutable per-session aggregate view\n// over the resolved suite profile — a projection of existing authoritative\n// sources, not a new generation mechanism; AgentSession stays suite-unaware.\nexport {\n\tbuildResolvedAgentProfileV1,\n\ttype PluginProfileResolutionSummaryV1,\n\ttype ResolvedAgentProfileV1,\n\ttype ResolvedProfileDiagnosticV1,\n} from \"./suites/resolved-agent-profile.ts\";\n// Suite (方案) lifecycle public API (方案系统设计.md §9): the same deterministic\n// operations the CLI one-shots use, exported so first-party and third-party\n// plugins can manage suite workspaces without hidden channels.\nexport {\n\tclearDanglingSuiteSettings,\n\tcreateSuite,\n\tdeleteSuite,\n\tfindSuiteSessionRefs,\n\tresetSuite,\n\tSUITE_DELETE_CONFIRM_TOKEN,\n\ttype SuiteCreateOptions,\n\ttype SuiteCreateResult,\n\ttype SuiteDeleteOptions,\n\ttype SuiteDeleteResult,\n\tSuiteLifecycleError,\n\ttype SuiteLifecycleOperation,\n\ttype SuiteResetPlan,\n\ttype SuiteSessionRef,\n\ttype SuiteSettingsCleanup,\n} from \"./suites/suite-lifecycle.ts\";\nexport {\n\tDEFAULT_SUITE_ID,\n\tlistSuiteIds,\n\tSuiteResolutionError,\n} from \"./suites/suite-loader.ts\";\n// Mock AI server (3.1): fail-closed scenario fixtures with fault injection\nexport {\n\tcreateMockAiServer,\n\tMockAiError,\n\ttype MockAiFaultV1,\n\ttype MockAiFixtureV1,\n\ttype MockAiPartV1,\n\ttype MockAiRequestV1,\n\ttype MockAiResponseV1,\n\ttype MockAiServerV1,\n\ttype MockAiStepV1,\n} from \"./testing/mock-ai-server.ts\";\n// Theme utilities for custom tools and extensions\nexport {\n\tgetLanguageFromPath,\n\tgetMarkdownTheme,\n\tgetSelectListTheme,\n\tgetSettingsListTheme,\n\thighlightCode,\n\tinitTheme,\n\tTheme,\n\ttype ThemeColor,\n} from \"./theme/theme.ts\";\n// Clipboard utilities\nexport { copyToClipboard } from \"./utils/clipboard.ts\";\nexport { parseFrontmatter, stripFrontmatter } from \"./utils/frontmatter.ts\";\nexport { convertToPng } from \"./utils/image-convert.ts\";\nexport { formatDimensionNote, type ResizedImage, resizeImage } from \"./utils/image-resize.ts\";\nexport { detectSupportedImageMimeTypeFromFile } from \"./utils/mime.ts\";\n// Shell utilities\nexport { getPowerShellConfig, getShellConfig, killProcessTree, sanitizeBinaryOutput } from \"./utils/shell.ts\";\n"]}
package/dist/index.js CHANGED
@@ -91,8 +91,6 @@ export { createMigrationTool, } from "./migration/migration-tool.js";
91
91
  export { InteractiveMode, RpcClient, runPrintMode, runRpcMode, } from "./modes/index.js";
92
92
  // UI components for extensions
93
93
  export { ArminComponent, AssistantMessageComponent, BashExecutionComponent, BorderedLoader, BranchSummaryMessageComponent, CompactionSummaryMessageComponent, CustomEditor, CustomMessageComponent, DialogEditorComponent, DialogInputComponent, DialogSelectorComponent, DynamicBorder, FooterComponent, keyHint, keyText, LoginDialogComponent, ModelSelectorComponent, OAuthSelectorComponent, PluginManagerEntryComponent, rawKeyHint, renderDiff, SessionSelectorComponent, SettingsSelectorComponent, ShowImagesSelectorComponent, SkillInvocationMessageComponent, ThemeSelectorComponent, ThinkingSelectorComponent, ToolExecutionComponent, TreeSelectorComponent, truncateToVisualLines, UserMessageComponent, UserMessageSelectorComponent, } from "./modes/interactive/components/index.js";
94
- // Theme utilities for custom tools and extensions
95
- export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, } from "./modes/interactive/theme/theme.js";
96
94
  export * as PluginEcosystemV1 from "./plugins/ecosystem/index.js";
97
95
  // Integrity adapter (7.3): seal/verify manifests for external policy flows
98
96
  export { createIntegrityAdapter, } from "./plugins/integrity-adapter.js";
@@ -111,16 +109,6 @@ export { assembleProfile, replaceProfilePlugin, } from "./profile/profile-assemb
111
109
  export { createProfileMigrationPolicy, } from "./profile/profile-migration.js";
112
110
  // Profile registry (2.7a): multi-source discovery, upgrades, deprecation
113
111
  export { createProfileRegistry, } from "./profile/profile-registry.js";
114
- export { isBuiltinSuiteId } from "./profiles/builtin-suites.js";
115
- // Resolved agent profile (D-047 S4a): immutable per-session aggregate view
116
- // over the resolved suite profile — a projection of existing authoritative
117
- // sources, not a new generation mechanism; AgentSession stays suite-unaware.
118
- export { buildResolvedAgentProfileV1, } from "./profiles/resolved-agent-profile.js";
119
- // Suite (方案) lifecycle public API (方案系统设计.md §9): the same deterministic
120
- // operations the CLI one-shots use, exported so first-party and third-party
121
- // plugins can manage suite workspaces without hidden channels.
122
- export { clearDanglingSuiteSettings, createSuite, deleteSuite, findSuiteSessionRefs, resetSuite, SUITE_DELETE_CONFIRM_TOKEN, SuiteLifecycleError, } from "./profiles/suite-lifecycle.js";
123
- export { DEFAULT_SUITE_ID, listSuiteIds, SuiteResolutionError, } from "./profiles/suite-loader.js";
124
112
  // Remote server assembly (1B.7h): coding-agent sessions behind the public server boundary
125
113
  export { assembleCodingAgentServer, CodingAgentServerService, CodingAgentSessionRuntime, projectSessionTranscript, } from "./remote/server-assembly.js";
126
114
  // Remote restart recovery (E3): production session source and programmatic server entry
@@ -130,8 +118,20 @@ export { createFileSessionSource, } from "./remote/session-source.js";
130
118
  export { createSessionShare, } from "./share/session-share.js";
131
119
  // Share viewer (2.6d): escaped HTML + JSON views with explicit failure states
132
120
  export { createShareViewer } from "./share/share-viewer.js";
121
+ export { isBuiltinSuiteId } from "./suites/builtin-suites.js";
122
+ // Resolved agent profile (D-047 S4a): immutable per-session aggregate view
123
+ // over the resolved suite profile — a projection of existing authoritative
124
+ // sources, not a new generation mechanism; AgentSession stays suite-unaware.
125
+ export { buildResolvedAgentProfileV1, } from "./suites/resolved-agent-profile.js";
126
+ // Suite (方案) lifecycle public API (方案系统设计.md §9): the same deterministic
127
+ // operations the CLI one-shots use, exported so first-party and third-party
128
+ // plugins can manage suite workspaces without hidden channels.
129
+ export { clearDanglingSuiteSettings, createSuite, deleteSuite, findSuiteSessionRefs, resetSuite, SUITE_DELETE_CONFIRM_TOKEN, SuiteLifecycleError, } from "./suites/suite-lifecycle.js";
130
+ export { DEFAULT_SUITE_ID, listSuiteIds, SuiteResolutionError, } from "./suites/suite-loader.js";
133
131
  // Mock AI server (3.1): fail-closed scenario fixtures with fault injection
134
132
  export { createMockAiServer, MockAiError, } from "./testing/mock-ai-server.js";
133
+ // Theme utilities for custom tools and extensions
134
+ export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, } from "./theme/theme.js";
135
135
  // Clipboard utilities
136
136
  export { copyToClipboard } from "./utils/clipboard.js";
137
137
  export { parseFrontmatter, stripFrontmatter } from "./utils/frontmatter.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAG1B,yEAAyE;AACzE,0CAA0C;AAC1C,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAC;AAC7D,yEAA+D;AAC/D,sDAAsD;AACtD,8EAA8E;AAC9E,6EAA6E;AAC7E,4EAA4E;AAC5E,mEAAmE;AACnE,OAAO,EACN,uBAAuB,GAIvB,MAAM,yBAAyB,CAAC;AACjC,6EAA6E;AAC7E,OAAO,EAGN,mBAAmB,GACnB,MAAM,+BAA+B,CAAC;AACvC,4EAA4E;AAC5E,OAAO,EAIN,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAa,SAAS,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,iBAAiB,MAAM,oCAAoC,CAAC;AACxE,4EAA4E;AAC5E,6EAA6E;AAC7E,OAAO,KAAK,UAAU,MAAM,sCAAsC,CAAC;AACnE,OAAO,EACN,eAAe,EACf,WAAW,EACX,WAAW,EACX,eAAe,EACf,aAAa,EACb,aAAa,EACb,cAAc,EACd,OAAO,GACP,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,4BAA4B,EAC5B,iCAAiC,EACjC,oBAAoB,EASpB,2BAA2B,EAC3B,4BAA4B,EAC5B,8BAA8B,EAC9B,8BAA8B,EAC9B,4BAA4B,EAC5B,mBAAmB,EACnB,kBAAkB,EAClB,sCAAsC,EACtC,+BAA+B,EAC/B,qBAAqB,EACrB,wCAAwC,EACxC,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EAatB,4BAA4B,EAC5B,gCAAgC,EAShC,4BAA4B,EAE5B,kCAAkC,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KnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,GACpB,MAAM,4BAA4B,CAAC;AACpC,0FAA0F;AAC1F,OAAO,EACN,yBAAyB,EAGzB,wBAAwB,EAGxB,yBAAyB,EACzB,wBAAwB,GACxB,MAAM,6BAA6B,CAAC;AACrC,wFAAwF;AACxF,OAAO,EAGN,4BAA4B,GAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,uBAAuB,GAEvB,MAAM,4BAA4B,CAAC;AACpC,qFAAqF;AACrF,OAAO,EACN,kBAAkB,GAQlB,MAAM,0BAA0B,CAAC;AAClC,8EAA8E;AAC9E,OAAO,EAAE,iBAAiB,EAAwC,MAAM,yBAAyB,CAAC;AAClG,2EAA2E;AAC3E,OAAO,EACN,kBAAkB,EAClB,WAAW,GAQX,MAAM,6BAA6B,CAAC;AACrC,sBAAsB;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAqB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,oCAAoC,EAAE,MAAM,iBAAiB,CAAC;AACvE,kBAAkB;AAClB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["// Core session management\n\nexport type { AgentToolResult, AgentToolUpdateCallback, ToolExecutionMode } from \"@agent-forge/agent-core\";\n// First-party plugin ecosystem (opt-in namespaces; domain plugins do not\n// alter the default coding tool surface).\nexport * as PluginContractsV1 from \"@agent-forge/plugin-sdk\";\n// Memory capability storage contract (扩展位盘点 A1/A2): injectable\n// store/ledger factories and vector components behind\n// `CreateAgentSessionOptions.memoryCapability.storage`. Authoritative home is\n// @agent-forge/plugin-sdk since the S4-4 split (the memory capability itself\n// moved to the @agent-forge/plugin-memory package); re-exported here so the\n// memory-backend example and existing host imports keep resolving.\nexport {\n\tMEMORY_RECALL_TOOL_NAME,\n\ttype MemoryCapabilityOverrideV1,\n\ttype MemoryStorageComponentsV1,\n\ttype MemoryVectorComponentsOverrideV1,\n} from \"@agent-forge/plugin-sdk\";\n// Artifact store (2.6a): session export artifacts with bounded reads and EOL\nexport {\n\ttype ArtifactStatV1,\n\ttype ArtifactStoreV1,\n\tcreateArtifactStore,\n} from \"./artifacts/artifact-store.ts\";\n// Paged artifact reading (3.5c): ref-based expansion with explicit failures\nexport {\n\ttype ArtifactPageDirectoryEntryV1,\n\ttype ArtifactPagePlanV1,\n\ttype ArtifactPageReadV1,\n\tplanArtifactPages,\n\treadArtifactPage,\n} from \"./artifacts/paged-read.ts\";\nexport { type Args, parseArgs } from \"./cli/args.ts\";\nexport * as PluginManagerUiV1 from \"./cli/plugin-manager-controller.ts\";\n// Host-owned plugin management surfaces. They expose bounded DTOs only; the\n// registry, installer, package paths and credentials remain behind the host.\nexport * as PluginUiV1 from \"./cli/plugin-selection-controller.ts\";\nexport {\n\tCONFIG_DIR_NAME,\n\tgetAgentDir,\n\tgetDocsPath,\n\tgetExamplesPath,\n\tgetPackageDir,\n\tgetReadmePath,\n\tgetSessionsDir,\n\tVERSION,\n} from \"./config.ts\";\nexport {\n\tAGENT_CAPABILITY_CONTRACT_ID,\n\tAGENT_CAPABILITY_CONTRACT_VERSION,\n\tAGENT_ERROR_CODES_V1,\n\ttype AgentCapabilityContractInputV1,\n\ttype AgentCapabilityContractV1,\n\ttype AgentCapabilityContractVersion,\n\ttype AgentDefinitionSnapshotV1,\n\ttype AgentErrorCodeV1,\n\ttype AgentInstanceSnapshotV1,\n\ttype AgentProfileV1,\n\ttype ArtifactRefV1,\n\tassertCapabilitySupportedV1,\n\tbuildAgentCapabilityContract,\n\tbuildAgentCapabilityContractV1,\n\tbuildAgentDefinitionSnapshotV1,\n\tbuildAgentInstanceSnapshotV1,\n\tbuildAgentProfileV1,\n\tbuildArtifactRefV1,\n\tbuildCanonicalContractFixtureVectorsV1,\n\tbuildCanonicalContractVectorsV1,\n\tbuildCommandRequestV1,\n\tbuildContractCompatibilityRequirementsV1,\n\tbuildErrorEnvelopeV1,\n\tbuildEventEnvelope,\n\tbuildEventEnvelopeV1,\n\tbuildHostContextV1,\n\tbuildOperationSnapshotV1,\n\tbuildOperationTerminalV1,\n\tbuildSessionRevisionV1,\n\tbuildSessionSnapshotV1,\n\ttype CanonicalContractFixtureVectorV1,\n\ttype CanonicalContractVectorsV1,\n\ttype CapabilityRefV1,\n\ttype CapabilityResolutionV1,\n\ttype CommandAdmissionV1,\n\ttype CommandOperationRegistryV1,\n\ttype CommandRequestInputV1,\n\ttype CommandRequestV1,\n\ttype ContractCompatibilityIssueCodeV1,\n\ttype ContractCompatibilityIssueV1,\n\ttype ContractCompatibilityRequirementsV1,\n\ttype ContractCompatibilityResultV1,\n\tcheckContractCompatibilityV1,\n\tcreateCommandOperationRegistryV1,\n\ttype ErrorEnvelopeV1,\n\ttype EventCategoryV1,\n\ttype EventDeliveryGuaranteeV1,\n\ttype EventEnvelopeInputV1,\n\ttype EventEnvelopeV1,\n\ttype HostContextV1,\n\ttype HostMode as CanonicalHostModeV1,\n\ttype HostTransport,\n\tisRegisteredAgentErrorCodeV1,\n\ttype JsonValue,\n\tmapProtocolErrorCodeToAgentErrorV1,\n\ttype OperationSnapshotV1,\n\ttype OperationStatusV1,\n\ttype OperationTerminalV1,\n\tresolveCapabilityV1,\n\ttype SessionRevisionV1,\n\ttype SessionSnapshotV1,\n\ttoErrorEnvelopeV1,\n\tvalidateAgentCapabilityContract,\n\tvalidateAgentCapabilityContractV1,\n\tvalidateAgentProfileV1,\n\tvalidateArtifactRefV1,\n\tvalidateCommandAdmissionV1,\n\tvalidateCommandRequestV1,\n\tvalidateContractCompatibilityRequirementsV1,\n\tvalidateContractCompatibilityResultV1,\n\tvalidateErrorEnvelopeV1,\n\tvalidateEventEnvelope,\n\tvalidateEventEnvelopeV1,\n\tvalidateHostContextV1,\n\tvalidateOperationSnapshotV1,\n\tvalidateOperationTerminalV1,\n\tvalidateSessionRevisionV1,\n\tvalidateSessionSnapshotV1,\n} from \"./core/agent-capability-contract.ts\";\nexport {\n\tAgentSession,\n\ttype AgentSessionConfig,\n\ttype AgentSessionEvent,\n\ttype AgentSessionEventListener,\n\ttype ModelCycleResult,\n\ttype ParsedSkillBlock,\n\ttype PromptOptions,\n\tparseSkillBlock,\n\ttype SessionStats,\n} from \"./core/agent-session.ts\";\nexport { readStoredCredential } from \"./core/auth-storage.ts\";\n// Compaction\nexport {\n\ttype BranchPreparation,\n\ttype BranchSummaryResult,\n\ttype CollectEntriesResult,\n\ttype CompactionResult,\n\ttype CutPointResult,\n\tcalculateContextTokens,\n\tcollectEntriesForBranchSummary,\n\tcompact,\n\tDEFAULT_COMPACTION_SETTINGS,\n\testimateTokens,\n\ttype FileOperations,\n\tfindCutPoint,\n\tfindTurnStartIndex,\n\ttype GenerateBranchSummaryOptions,\n\tgenerateBranchSummary,\n\tgenerateSummary,\n\tgenerateSummaryWithUsage,\n\tgetLastAssistantUsage,\n\tprepareBranchEntries,\n\tserializeConversation,\n\tshouldCompact,\n} from \"./core/compaction/index.ts\";\nexport {\n\tcreateEmbeddedSdkBinding,\n\tcreateEmbeddedSdkBindingV1,\n\ttype EmbeddedAgentDefinitionV1,\n\ttype EmbeddedAgentInstanceV1,\n\ttype EmbeddedAgentResultV1,\n\ttype EmbeddedControllerLeaseV1,\n\ttype EmbeddedOperationHandleV1,\n\ttype EmbeddedSdkBindingV1,\n\ttype EmbeddedSdkEventListenerV1,\n\ttype EmbeddedSdkOptionsV1,\n\ttype EmbeddedSdkSubscriptionV1,\n\ttype EmbeddedSessionBindingV1,\n} from \"./core/embedded-sdk.ts\";\nexport { createEventBus, type EventBus, type EventBusController } from \"./core/event-bus.ts\";\nexport type { ExecOptions, ExecResult } from \"./core/exec.ts\";\n// Config paths\nexport {\n\ttype AgentCompositionAPI,\n\ttype AgentCompositionDefinitionBinding,\n\ttype AgentCompositionHostBinding,\n\ttype AgentCompositionLifecycleBinding,\n\ttype AgentCompositionLifecycleDispatcher,\n\ttype AgentCompositionLifecycleEvent,\n\ttype AgentCompositionLifecycleEventName,\n\ttype AgentCompositionLifecycleTerminalStatus,\n\tAgentCompositionRuntime,\n\ttype AgentCompositionRuntimeOptions,\n\ttype AgentCompositionScopedHostBinding,\n\ttype AgentContextCommitRequestV1,\n\ttype AgentContextCommitResultV1,\n\ttype AgentContextFacadeV1,\n\ttype AgentContextSnapshotV1,\n\ttype AgentControllerLease,\n\ttype AgentControllerRole,\n\ttype AgentDefinition,\n\ttype AgentDefinitionDeclaration,\n\ttype AgentExecutionContext,\n\ttype AgentHostPrimitivesFactory,\n\ttype AgentHostPrimitivesFactoryContext,\n\ttype AgentHostPrimitivesV1,\n\ttype AgentInstance,\n\ttype AgentInstanceResult,\n\ttype AgentInstanceSnapshot,\n\ttype AgentInstanceStatus,\n\ttype AgentOperationFacadeV1,\n\ttype AgentSessionFacadeV1,\n\ttype AgentTaskAdapter,\n\ttype AgentTaskAPI,\n\ttype AgentTaskCreateRequest,\n\ttype AgentTaskHandle,\n\ttype AgentTaskHost,\n\ttype AgentTaskResultV1,\n\ttype AgentTaskStatus,\n\ttype AgentTaskWaitResult,\n\tBOOTSTRAP_LIFECYCLE_PLUGIN_ID,\n\tCAPABILITY_CALL_EVENT_ID,\n\tCAPABILITY_CALL_EVENT_VERSION,\n\ttype CapabilityAPI,\n\ttype CapabilityCallEventDataV1,\n\ttype CapabilityCallEventNameV1,\n\ttype CapabilityCallStatusV1,\n\ttype CapabilityCommandContext,\n\ttype CapabilityCommandDefinition,\n\ttype CapabilityCommandLink,\n\ttype CapabilityCommandResult,\n\ttype CapabilityDirectoryAPI,\n\ttype CapabilityHandle,\n\ttype CapabilityPluginFactory,\n\ttype CapabilityPluginFactoryResult,\n\ttype CapabilityPluginHandle,\n\ttype CapabilityPluginInstance,\n\ttype CapabilityPluginSyncFactory,\n\ttype CapabilityPluginSyncInstance,\n\ttype CapabilityProviderHandler,\n\ttype CapabilityRuntime,\n\ttype CompactionCommitAppliedV1,\n\ttype CompactionCommitRequestV1,\n\ttype CompactionCommitResultV1,\n\ttype CompactionCommitRevisionConflictV1,\n\ttype CompactionPolicy,\n\ttype CompactionPolicyDecision,\n\ttype CompactionPolicyRequest,\n\ttype CompactionSummaryRequest,\n\ttype CompactionSummaryResult,\n\ttype ContextStrategy,\n\ttype ContributionAPI,\n\ttype ContributionChangeEvent,\n\ttype ContributionEntry,\n\ttype ContributionHandle,\n\ttype ContributionLifecycle,\n\ttype ContributionPoint,\n\ttype ContributionPointDefinition,\n\ttype CredentialAPI,\n\ttype CredentialResolution,\n\ttype CredentialResolveRequest,\n\tcreateAgentCompositionRuntime,\n\tcreateCapabilityRuntime,\n\tcreateDisposableRegistration,\n\tcreateEventEnvelope,\n\tDEFAULT_COMPACTION_POLICY_NAME,\n\tDEFAULT_RETRY_POLICY_NAME,\n\ttype DiagnosticsAPI,\n\ttype DiagnosticsSpan,\n\ttype DiagnosticsSpanEnd,\n\ttype DiagnosticsSpanSnapshot,\n\ttype DisposableRegistration,\n\tdiscoverCapabilityPluginManifests,\n\ttype EventEnvelope,\n\tEXPERIMENTAL_PUBLIC_API_VERSION,\n\ttype ExecutionFactsV1,\n\ttype ExecutionPhaseV1,\n\ttype HostCapabilities,\n\ttype HostMode,\n\tinstallBootstrapLifecycle,\n\ttype LifecycleAfterCommitHandler,\n\ttype LifecycleAPI,\n\ttype LifecycleDeliveryFailure,\n\ttype LifecycleDeliveryMode,\n\ttype LifecycleDeliveryOptions,\n\ttype LifecycleDeliveryReport,\n\ttype LifecycleDeliverySnapshot,\n\ttype LifecycleDispatchRequest,\n\ttype LifecycleDispatchResult,\n\ttype LifecycleEvent,\n\ttype LifecycleEventDefinition,\n\ttype LifecycleEventReference,\n\tLifecycleExecuteError,\n\ttype LifecycleExecuteHandler,\n\ttype LifecycleObserveHandler,\n\ttype LifecyclePhase,\n\ttype LifecycleRegistrationKind,\n\tLifecycleTransformError,\n\ttype LifecycleTransformHandler,\n\ttype LoggerAPI,\n\ttype LoggerLevel,\n\ttype LoggerRecord,\n\tloadCapabilityPlugin,\n\tloadCapabilityPluginFromManifest,\n\tloadCapabilityPluginSync,\n\tMODEL_RESPONSE_EVENT_ID,\n\tMODEL_RESPONSE_EVENT_VERSION,\n\tMODEL_STREAM_EVENT_ID,\n\tMODEL_STREAM_EVENT_VERSION,\n\ttype ModelResponseEventDataV1,\n\ttype ModelStreamEventDataV1,\n\ttype ModelStreamEventNameV1,\n\tOPERATION_CANCEL_EVENT_ID,\n\tOPERATION_CANCEL_EVENT_VERSION,\n\tOPERATION_END_EVENT_ID,\n\tOPERATION_END_EVENT_VERSION,\n\tOPERATION_START_EVENT_ID,\n\tOPERATION_START_EVENT_VERSION,\n\tOPERATION_STEP_EVENT_ID,\n\tOPERATION_STEP_EVENT_VERSION,\n\ttype OperationCancelEventDataV1,\n\ttype OperationEndEventDataV1,\n\ttype OperationExecutionContext,\n\ttype OperationHandle,\n\ttype OperationProgress,\n\ttype OperationStartEventDataV1,\n\ttype OperationStatus,\n\ttype OperationStepEventDataV1,\n\ttype OutputArtifactAPI,\n\ttype OutputArtifactChunk,\n\ttype OutputArtifactErrorCode,\n\ttype OutputArtifactPutInput,\n\ttype OutputArtifactRef,\n\tPLUGIN_DISPOSE_EVENT_ID,\n\tPLUGIN_DISPOSE_EVENT_VERSION,\n\tPLUGIN_READY_EVENT_ID,\n\tPLUGIN_READY_EVENT_VERSION,\n\ttype PluginAgentRole,\n\ttype PluginCapabilityDeclaration,\n\ttype PluginCapabilityRequirement,\n\ttype PluginConfig,\n\ttype PluginConfigValue,\n\ttype PluginDisposeEventDataV1,\n\ttype PluginManifest,\n\ttype PluginReadyEventDataV1,\n\ttype PolicyInvocationContextV1,\n\ttype ProviderHeaderTransform,\n\ttype ProviderHeaderTransformRequest,\n\tparseCapabilityPluginManifest,\n\ttype RetryPolicy,\n\ttype RetryPolicyDecision,\n\ttype RetryPolicyRequest,\n\ttype RetryScheduleV1,\n\ttype RuntimeInspectorAPI,\n\ttype RuntimeInspectorErrorSnapshot,\n\ttype RuntimeInspectorLifecycleDeliveryFailureSnapshot,\n\ttype RuntimeInspectorLifecycleDeliveryReportSnapshot,\n\ttype RuntimeInspectorSnapshot,\n\tresolvePluginCapabilityOrder,\n\tSESSION_COMPACTION_COMMIT_EVENT_ID,\n\tSESSION_COMPACTION_COMMIT_EVENT_VERSION,\n\tSESSION_CONTEXT_REPLACED_EVENT_ID,\n\tSESSION_CONTEXT_REPLACED_EVENT_VERSION,\n\tSESSION_RELOAD_EVENT_ID,\n\tSESSION_RELOAD_EVENT_VERSION,\n\ttype SessionAPI,\n\ttype SessionCompactionCommitEventDataV1,\n\ttype SessionContextReplacedEventDataV1,\n\ttype SessionEntryView,\n\ttype SessionExportArtifact,\n\ttype SessionExportRequest,\n\ttype SessionReloadEventDataV1,\n\ttype SkillDefinition,\n\ttype StateAPI,\n\ttype StateChange,\n\ttype StateEntry,\n\ttype StateSetOptions,\n\tSUMMARY_MODEL_INVOCATION_ERROR_CODES,\n\ttype SummaryModelFactsV1,\n\ttype SummaryModelInvocationRequestV1,\n\ttype SummaryModelInvocationResultV1,\n\ttype SummaryModelInvocationV1,\n\tTOOL_CALL_EVENT_ID,\n\tTOOL_CALL_EVENT_VERSION,\n\tTOOL_COMMIT_EVENT_ID,\n\tTOOL_COMMIT_EVENT_VERSION,\n\tTOOL_EXECUTE_EVENT_ID,\n\tTOOL_EXECUTE_EVENT_VERSION,\n\tTOOL_RESULT_EVENT_ID,\n\tTOOL_RESULT_EVENT_VERSION,\n\tTOOL_RESULT_RAW_EVENT_ID,\n\tTOOL_RESULT_RAW_EVENT_VERSION,\n\tTOOL_RESULT_TRANSFORM_EVENT_ID,\n\tTOOL_RESULT_TRANSFORM_EVENT_VERSION,\n\ttype ToolCallEventDataV1,\n\ttype ToolCommitEventDataV1,\n\ttype ToolExecuteEventDataV1,\n\ttype ToolResultEventDataV1,\n\ttype ToolResultRawEventDataV1,\n\ttype ToolResultTransformEventDataV1,\n\tvalidateCapabilityCallEventDataV1,\n\tvalidateExecutionFactsV1,\n\tvalidateModelResponseEventDataV1,\n\tvalidateModelStreamEventDataV1,\n\tvalidateOperationCancelEventDataV1,\n\tvalidateOperationEndEventDataV1,\n\tvalidateOperationStartEventDataV1,\n\tvalidateOperationStepEventDataV1,\n\tvalidatePluginDisposeEventDataV1,\n\tvalidatePluginReadyEventDataV1,\n\tvalidateRetryScheduleV1,\n\tvalidateSessionCompactionCommitEventDataV1,\n\tvalidateSessionContextReplacedEventDataV1,\n\tvalidateSessionReloadEventDataV1,\n\tvalidateToolCallEventDataV1,\n\tvalidateToolCommitEventDataV1,\n\tvalidateToolExecuteEventDataV1,\n\tvalidateToolResultEventDataV1,\n\tvalidateToolResultRawEventDataV1,\n\tvalidateToolResultTransformEventDataV1,\n} from \"./core/extensions/index.ts\";\nexport type { ContextUsage } from \"./core/extensions/public-api.ts\";\nexport { detachedSessionSnapshot } from \"./core/extensions/public-api.ts\";\n// Stable session facade v1 type (B-S2b③-S2): named so the createStableAgentSession\n// result is nameable from the package root. The package-root `exports` subpath set\n// is unchanged (B-S2a gate holds; the facade is not promoted into an exports subpath).\nexport type { CodingAgentFacadeV1 } from \"./core/facade/coding-agent-facade.ts\";\n// Stable runtime facade v1 type (D-063): named so the createStableAgentSessionRuntime\n// result is nameable from the package root. The package-root `exports` subpath set\n// is unchanged (B-S2a gate holds; the facade is not promoted into an exports subpath).\nexport type { CodingAgentRuntimeFacadeV1 } from \"./core/facade/coding-agent-runtime-facade.ts\";\n// Footer data provider (git branch + extension statuses - data not otherwise available to extensions)\nexport type { ReadonlyFooterDataProvider } from \"./core/footer-data-provider.ts\";\nexport type { InputSource } from \"./core/input-source.ts\";\nexport { convertToLlm } from \"./core/messages.ts\";\nexport {\n\tModelRegistry,\n\ttype ProviderConfigInput,\n} from \"./core/model-registry.ts\";\nexport {\n\ttype ModelScopeDiagnostic,\n\ttype ResolveCliModelResult,\n\ttype ResolveModelScopeResult,\n\tresolveCliModel,\n\tresolveModelScopeWithDiagnostics,\n\ttype ScopedModel,\n} from \"./core/model-resolver.ts\";\nexport {\n\ttype CreateModelRuntimeOptions,\n\tCredentialSynchronizationError,\n\ttype CredentialSynchronizationOperation,\n\tModelRuntime,\n\ttype ModelRuntimeAuthOverrides,\n} from \"./core/model-runtime.ts\";\nexport type {\n\tPackageManager,\n\tPathMetadata,\n\tProgressCallback,\n\tProgressEvent,\n\tResolvedPaths,\n\tResolvedResource,\n} from \"./core/package-manager.ts\";\nexport { DefaultPackageManager } from \"./core/package-manager.ts\";\nexport type { ResourceCollision, ResourceDiagnostic, ResourceLoader } from \"./core/resource-loader.ts\";\nexport { DefaultResourceLoader, loadProjectContextFiles } from \"./core/resource-loader.ts\";\n// SDK for programmatic usage\nexport {\n\tAgentSessionRuntime,\n\ttype AgentSessionRuntimeDiagnostic,\n\ttype AgentSessionServices,\n\ttype CreateAgentSessionFromServicesOptions,\n\ttype CreateAgentSessionOptions,\n\ttype CreateAgentSessionResult,\n\ttype CreateAgentSessionRuntimeFactory,\n\ttype CreateAgentSessionRuntimeResult,\n\ttype CreateAgentSessionServicesOptions,\n\ttype CreateStableAgentSessionResult,\n\ttype CreateStableAgentSessionRuntimeResult,\n\t// Factory\n\tcreateAgentSession,\n\tcreateAgentSessionFromServices,\n\tcreateAgentSessionRuntime,\n\tcreateAgentSessionServices,\n\t// Stable session entry (B-S2b③-S2): same assembly as createAgentSession,\n\t// returned as the stable facade pair. The package-root `exports` subpath set\n\t// is unchanged (B-S2a gate holds; this is a named export, not a subpath).\n\tcreateStableAgentSession,\n\t// Stable runtime entry (D-063): same assembly as createAgentSessionRuntime,\n\t// returned as the stable runtime facade (no bare runtime/session). Same\n\t// package-root `exports` note as the session entry above.\n\tcreateStableAgentSessionRuntime,\n\ttype PromptTemplate,\n} from \"./core/sdk.ts\";\nexport {\n\ttype BranchSummaryEntry,\n\tbuildContextEntries,\n\tbuildSessionContext,\n\ttype CompactionEntry,\n\tCURRENT_SESSION_VERSION,\n\ttype CustomEntry,\n\ttype CustomMessageEntry,\n\ttype FileEntry,\n\tgetLatestCompactionEntry,\n\ttype ModelChangeEntry,\n\tmigrateSessionEntries,\n\ttype NewSessionOptions,\n\tparseSessionEntries,\n\ttype SessionContext,\n\ttype SessionEntry,\n\ttype SessionEntryBase,\n\ttype SessionHeader,\n\ttype SessionInfo,\n\ttype SessionInfoEntry,\n\tSessionManager,\n\ttype SessionMessageEntry,\n\ttype SessionTreeNode,\n\tsessionEntryToContextMessages,\n\ttype ThinkingLevelChangeEntry,\n} from \"./core/session-manager.ts\";\nexport {\n\tFileSessionStorageProvider,\n\tSessionHeaderScanLimitError,\n\ttype SessionStorageProvider,\n\ttype SessionWriteGuardV1,\n} from \"./core/session-storage.ts\";\nexport {\n\ttype CompactionSettings,\n\ttype FullscreenExitOutput,\n\ttype ImageSettings,\n\ttype PackageSource,\n\ttype RetrySettings,\n\tSettingsManager,\n\ttype SettingsManagerCreateOptions,\n\ttype TuiMode,\n} from \"./core/settings-manager.ts\";\n// Skills\nexport {\n\tformatSkillsForPrompt,\n\ttype LoadSkillsFromDirOptions,\n\ttype LoadSkillsResult,\n\tloadSkills,\n\tloadSkillsFromDir,\n\ttype Skill,\n\ttype SkillFrontmatter,\n} from \"./core/skills.ts\";\nexport type { SlashCommandInfo, SlashCommandSource } from \"./core/slash-commands.ts\";\nexport type { SourceInfo } from \"./core/source-info.ts\";\nexport { createSyntheticSourceInfo } from \"./core/source-info.ts\";\nexport type { BuildSystemPromptOptions } from \"./core/system-prompt.ts\";\nexport { type EditDiffResult, generateDiffString, generateUnifiedPatch } from \"./core/tools/edit-diff.ts\";\n// Tools (D-082 批 1: the default coding tool definitions moved to the\n// plugins/coding-tools package; the host keeps the shared tool-support face)\nexport {\n\ttype BashOperations,\n\ttype BashSpawnContext,\n\ttype BashSpawnHook,\n\tcreateLocalBashOperations,\n\tcreateLocalShellOperations,\n\tDEFAULT_MAX_BYTES,\n\tDEFAULT_MAX_LINES,\n\tformatSize,\n\ttype TruncationOptions,\n\ttype TruncationResult,\n\ttruncateHead,\n\ttruncateLine,\n\ttruncateTail,\n\twithFileMutationQueue,\n} from \"./core/tools/index.ts\";\nexport type {\n\tToolDefinition,\n\tToolExecuteContext,\n\tToolInfo,\n\tToolRenderContext,\n\tToolRenderResultOptions,\n} from \"./core/tools/tool-definition.ts\";\n// Tool definition surface (capability tools contract)\nexport { defineTool } from \"./core/tools/tool-definition.ts\";\n// Durable service (7.4b): in-memory persistence with optional file backend\nexport {\n\tcreateDurableService,\n\tcreateFileDurableStoreBackend,\n\ttype DurableArtifactRecordV1,\n\ttype DurableOperationRecordV1,\n\ttype DurableReplayDiagnosticsV1,\n\ttype DurableServiceErrorCodeV1,\n\tDurableServiceErrorV1,\n\ttype DurableServiceOptionsV1,\n\ttype DurableServiceV1,\n\ttype DurableSessionRecordV1,\n\ttype DurableSnapshotV1,\n\ttype DurableStoreBackend,\n\ttype DurableStoreLoadResultV1,\n\ttype DurableStoreOperationV1,\n\ttype DurableWriterClaimV1,\n\ttype DurableWriterRecoveryV1,\n\tdurableLogPath,\n} from \"./durable/durable-service.ts\";\n// Agent retry scheduler (2A.4b): cancellable, duplicate-suppressing retries\nexport {\n\ttype AgentRetryAttemptV1,\n\ttype AgentRetryOutcomeV1,\n\ttype AgentRetryPolicyV1,\n\ttype AgentRetrySchedulerV1,\n\tcreateAgentRetryScheduler,\n} from \"./host/agent-retry-scheduler.ts\";\n// Auto compaction executor (2A.3a): threshold-triggered with cancel/re-entrancy\nexport {\n\ttype AutoCompactionExecutorV1,\n\ttype AutoCompactionOutcomeV1,\n\ttype AutoCompactionPolicyV1,\n\tcreateAutoCompactionExecutor,\n} from \"./host/auto-compaction.ts\";\n// Branch migration and reload transaction (2A.5a/2A.5b)\nexport {\n\ttype BranchMigrationOutcomeV1,\n\ttype BranchStateEntryV1,\n\ttype BranchStateMigrationV1,\n\tcreateBranchStateMigration,\n\tcreateReloadTransaction,\n\ttype ReloadTransactionV1,\n} from \"./host/branch-reload.ts\";\n// Channel adapter (3.5b): print/JSON stdout-stderr semantics\nexport {\n\ttype ChannelAdapterV1,\n\ttype ChannelFormatV1,\n\tcreateStdioChannelAdapter,\n} from \"./host/channel-adapter.ts\";\n// Host checkpoint/commit (2A.1): revision-guarded idempotent two-phase writes\nexport {\n\tcreateHostCheckpointCoordinator,\n\ttype HostCheckpointCoordinatorV1,\n\ttype HostCommitOutcomeV1,\n\ttype HostStagedWriteV1,\n\ttype HostStageResultV1,\n} from \"./host/checkpoint-commit.ts\";\n// Manual compaction executor (2A.2): plugin-driven timing over checkpoint primitives\nexport {\n\tcreateManualCompactionExecutor,\n\ttype ManualCompactionExecutorV1,\n\ttype ManualCompactionOutcomeV1,\n\ttype ManualCompactionStateV1,\n} from \"./host/manual-compaction.ts\";\n// Host output projection (2.6b): traced channel records with structured errors\nexport {\n\tcreateHostOutputProjector,\n\ttype HostEventV1,\n\ttype HostOutputChannelV1,\n\ttype HostOutputProjectorV1,\n\ttype HostOutputRecordV1,\n\ttype HostOutputSeverityV1,\n} from \"./host/output-projection.ts\";\n// Output reducer (3.5a): deterministic fold/unfold over projected records\nexport {\n\tcreateOutputReducer,\n\ttype FoldedOutputGroupV1,\n\ttype FoldedOutputV1,\n\ttype OutputReducerV1,\n} from \"./host/output-reducer.ts\";\n// Host Output Serializer (3.5 supplement): per-surface allowlist projection\nexport {\n\tcreateHostOutputSerializer,\n\ttype HostOutputProjectionV1,\n\ttype HostOutputSerializerContextV1,\n\ttype HostOutputSerializerV1,\n\ttype HostOutputSurfaceV1,\n\ttype OutputArtifactRefV1,\n} from \"./host/output-serializer.ts\";\n// Provider overflow recovery (2A.3b): classification and shrink-and-commit entry\nexport {\n\tcreateOverflowRecovery,\n\ttype OverflowRecoveryOutcomeV1,\n\ttype OverflowRecoveryV1,\n\ttype ProviderErrorClassificationV1,\n\ttype ProviderErrorClassV1,\n} from \"./host/overflow-recovery.ts\";\n// Summary retry (2A.4a): traced attempts, exponential backoff, terminal states\nexport {\n\tcreateSummaryRetryExecutor,\n\ttype SummaryAttemptRecordV1,\n\ttype SummaryRetryExecutorV1,\n\ttype SummaryRetryOutcomeV1,\n\ttype SummaryRetryPolicyV1,\n} from \"./host/summary-retry.ts\";\n// Main entry point\nexport { type MainOptions, main } from \"./main.ts\";\n// Migration tool (7.4a): chained version migration with rollback evidence\nexport {\n\tcreateMigrationTool,\n\ttype MigrationEvidenceStepV1,\n\ttype MigrationOutcomeV1,\n\ttype MigrationStepV1,\n\ttype MigrationToolV1,\n} from \"./migration/migration-tool.ts\";\n// Run modes for programmatic SDK usage\nexport {\n\tInteractiveMode,\n\ttype InteractiveModeOptions,\n\ttype JsonAgentSessionEvent,\n\ttype ModelInfo,\n\ttype PrintModeOptions,\n\tRpcClient,\n\ttype RpcClientOptions,\n\ttype RpcCommand,\n\ttype RpcEventListener,\n\ttype RpcExtensionUIRequest,\n\ttype RpcExtensionUIResponse,\n\ttype RpcModeOptions,\n\ttype RpcResponse,\n\ttype RpcSessionState,\n\trunPrintMode,\n\trunRpcMode,\n} from \"./modes/index.ts\";\n// UI components for extensions\nexport {\n\tArminComponent,\n\tAssistantMessageComponent,\n\tBashExecutionComponent,\n\tBorderedLoader,\n\tBranchSummaryMessageComponent,\n\tCompactionSummaryMessageComponent,\n\tCustomEditor,\n\tCustomMessageComponent,\n\tDialogEditorComponent,\n\tDialogInputComponent,\n\tDialogSelectorComponent,\n\tDynamicBorder,\n\tFooterComponent,\n\tkeyHint,\n\tkeyText,\n\tLoginDialogComponent,\n\tModelSelectorComponent,\n\tOAuthSelectorComponent,\n\tPluginManagerEntryComponent,\n\ttype PluginManagerEntryOpenContextV1,\n\ttype PluginManagerEntryOpenResultV1,\n\ttype PluginManagerEntryOptionsV1,\n\ttype RenderDiffOptions,\n\trawKeyHint,\n\trenderDiff,\n\tSessionSelectorComponent,\n\ttype SettingsCallbacks,\n\ttype SettingsConfig,\n\tSettingsSelectorComponent,\n\tShowImagesSelectorComponent,\n\tSkillInvocationMessageComponent,\n\tThemeSelectorComponent,\n\tThinkingSelectorComponent,\n\tToolExecutionComponent,\n\ttype ToolExecutionOptions,\n\tTreeSelectorComponent,\n\ttruncateToVisualLines,\n\tUserMessageComponent,\n\tUserMessageSelectorComponent,\n\ttype VisualTruncateResult,\n} from \"./modes/interactive/components/index.ts\";\n// Theme utilities for custom tools and extensions\nexport {\n\tgetLanguageFromPath,\n\tgetMarkdownTheme,\n\tgetSelectListTheme,\n\tgetSettingsListTheme,\n\thighlightCode,\n\tinitTheme,\n\tTheme,\n\ttype ThemeColor,\n} from \"./modes/interactive/theme/theme.ts\";\nexport * as PluginEcosystemV1 from \"./plugins/ecosystem/index.ts\";\n// Host facts for the ecosystem pluginHost options (B-S2b: the convergence\n// slice names the previously unnameable type for cross-package consumers).\nexport type { HostFactsV1 } from \"./plugins/ecosystem/types.ts\";\n// Integrity adapter (7.3): seal/verify manifests for external policy flows\nexport {\n\tcreateIntegrityAdapter,\n\ttype IntegrityAdapterV1,\n\ttype ManifestExpectationV1,\n\ttype ManifestVerdictV1,\n\ttype SealedManifestV1,\n} from \"./plugins/integrity-adapter.ts\";\n// Plugin host (7.1): owned lifecycle, reverse dispose, error aggregation\nexport {\n\tcreatePluginHost,\n\ttype HostedPluginV1,\n\ttype PluginHostErrorV1,\n\ttype PluginHostResourceV1,\n\ttype PluginHostStateV1,\n\ttype PluginHostV1,\n} from \"./plugins/plugin-host.ts\";\n// Plugin supervisor (7.2): heartbeat, bounded restart, backpressure\nexport {\n\tcreatePluginSupervisor,\n\ttype PluginHealthV1,\n\ttype PluginSupervisorV1,\n\ttype SupervisorEntryV1,\n\ttype SupervisorEventV1,\n\ttype SupervisorPolicyV1,\n} from \"./plugins/plugin-supervisor.ts\";\n// Profile identity (2.0a): profileId/version, manifest digest, host compatibility\nexport {\n\tbuildProfileIdentityV1,\n\ttype ProfileIdentityV1,\n\tprofileIdentitiesCompatible,\n\ttype ResolvedPluginManifestV1,\n\tstableJsonDigest,\n} from \"./profile/identity.ts\";\n// Profile lock (2.0b): pre-creation lock, reopen/reload drift detection\nexport {\n\tcreateProfileLock,\n\ttype ProfileLockReplaceResultV1,\n\ttype ProfileLockV1,\n\ttype ProfileLockVerificationV1,\n\treplaceProfileLock,\n\tverifyProfileLock,\n} from \"./profile/lock.ts\";\nexport {\n\ttype BuiltinPluginManifestOverridesV1,\n\ttype BuiltinPluginProfileIdV1,\n\ttype BuiltinPluginProfileResolutionV1,\n\ttype BuiltinPluginProfileV1,\n\tlistBuiltinPluginManifestsV1,\n\tlistBuiltinPluginProfilesV1,\n\tresolveBuiltinPluginProfileV1,\n} from \"./profile/plugin-profiles.ts\";\n// Profile assembly (2.5b): verified-plugin assembly, version lock, replacement\nexport {\n\tassembleProfile,\n\ttype PluginReplacementRecordV1,\n\ttype ProfileAssemblyResultV1,\n\ttype ProfileAssemblyV1,\n\ttype ProfileReplacementResultV1,\n\treplaceProfilePlugin,\n\ttype VerifiedToolPluginV1,\n} from \"./profile/profile-assembly.ts\";\n// Profile migration policy (2.7b): explicit reopen migration over the 2.0b lock\nexport {\n\tcreateProfileMigrationPolicy,\n\ttype ProfileMigrationPlanV1,\n\ttype ProfileMigrationPolicyV1,\n\ttype ProfileMigrationResultV1,\n} from \"./profile/profile-migration.ts\";\n// Profile registry (2.7a): multi-source discovery, upgrades, deprecation\nexport {\n\tcreateProfileRegistry,\n\ttype ProfileRegistryV1,\n\ttype ProfileResolutionV1,\n\ttype ProfileVersionRangeV1,\n\ttype RegistryProfileEntryV1,\n\ttype RegistrySourceV1,\n} from \"./profile/profile-registry.ts\";\nexport { isBuiltinSuiteId } from \"./profiles/builtin-suites.ts\";\n// Resolved agent profile (D-047 S4a): immutable per-session aggregate view\n// over the resolved suite profile — a projection of existing authoritative\n// sources, not a new generation mechanism; AgentSession stays suite-unaware.\nexport {\n\tbuildResolvedAgentProfileV1,\n\ttype PluginProfileResolutionSummaryV1,\n\ttype ResolvedAgentProfileV1,\n\ttype ResolvedProfileDiagnosticV1,\n} from \"./profiles/resolved-agent-profile.ts\";\n// Suite (方案) lifecycle public API (方案系统设计.md §9): the same deterministic\n// operations the CLI one-shots use, exported so first-party and third-party\n// plugins can manage suite workspaces without hidden channels.\nexport {\n\tclearDanglingSuiteSettings,\n\tcreateSuite,\n\tdeleteSuite,\n\tfindSuiteSessionRefs,\n\tresetSuite,\n\tSUITE_DELETE_CONFIRM_TOKEN,\n\ttype SuiteCreateOptions,\n\ttype SuiteCreateResult,\n\ttype SuiteDeleteOptions,\n\ttype SuiteDeleteResult,\n\tSuiteLifecycleError,\n\ttype SuiteLifecycleOperation,\n\ttype SuiteResetPlan,\n\ttype SuiteSessionRef,\n\ttype SuiteSettingsCleanup,\n} from \"./profiles/suite-lifecycle.ts\";\nexport {\n\tDEFAULT_SUITE_ID,\n\tlistSuiteIds,\n\tSuiteResolutionError,\n} from \"./profiles/suite-loader.ts\";\n// Remote server assembly (1B.7h): coding-agent sessions behind the public server boundary\nexport {\n\tassembleCodingAgentServer,\n\ttype CodingAgentServerAssemblyOptions,\n\ttype CodingAgentServerModels,\n\tCodingAgentServerService,\n\ttype CodingAgentServerSessionSource,\n\ttype CodingAgentSessionDescriptor,\n\tCodingAgentSessionRuntime,\n\tprojectSessionTranscript,\n} from \"./remote/server-assembly.ts\";\n// Remote restart recovery (E3): production session source and programmatic server entry\nexport {\n\ttype CodingAgentRemoteServerHandle,\n\ttype StartCodingAgentRemoteServerOptions,\n\tstartCodingAgentRemoteServer,\n} from \"./remote/server-entry.ts\";\nexport {\n\tcreateFileSessionSource,\n\ttype FileSessionSourceOptions,\n} from \"./remote/session-source.ts\";\n// Session share contract (2.6c): revocable read-only shares with explicit transports\nexport {\n\tcreateSessionShare,\n\ttype SessionShareManagerV1,\n\ttype ShareArtifactInputV1,\n\ttype ShareContractV1,\n\ttype ShareResolveRequestV1,\n\ttype ShareResolveResultV1,\n\ttype ShareScopeV1,\n\ttype ShareTransportV1,\n} from \"./share/session-share.ts\";\n// Share viewer (2.6d): escaped HTML + JSON views with explicit failure states\nexport { createShareViewer, type ShareViewerV1, type ShareViewV1 } from \"./share/share-viewer.ts\";\n// Mock AI server (3.1): fail-closed scenario fixtures with fault injection\nexport {\n\tcreateMockAiServer,\n\tMockAiError,\n\ttype MockAiFaultV1,\n\ttype MockAiFixtureV1,\n\ttype MockAiPartV1,\n\ttype MockAiRequestV1,\n\ttype MockAiResponseV1,\n\ttype MockAiServerV1,\n\ttype MockAiStepV1,\n} from \"./testing/mock-ai-server.ts\";\n// Clipboard utilities\nexport { copyToClipboard } from \"./utils/clipboard.ts\";\nexport { parseFrontmatter, stripFrontmatter } from \"./utils/frontmatter.ts\";\nexport { convertToPng } from \"./utils/image-convert.ts\";\nexport { formatDimensionNote, type ResizedImage, resizeImage } from \"./utils/image-resize.ts\";\nexport { detectSupportedImageMimeTypeFromFile } from \"./utils/mime.ts\";\n// Shell utilities\nexport { getPowerShellConfig, getShellConfig, killProcessTree, sanitizeBinaryOutput } from \"./utils/shell.ts\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAG1B,yEAAyE;AACzE,0CAA0C;AAC1C,OAAO,KAAK,iBAAiB,MAAM,yBAAyB,CAAC;AAC7D,yEAA+D;AAC/D,sDAAsD;AACtD,8EAA8E;AAC9E,6EAA6E;AAC7E,4EAA4E;AAC5E,mEAAmE;AACnE,OAAO,EACN,uBAAuB,GAIvB,MAAM,yBAAyB,CAAC;AACjC,6EAA6E;AAC7E,OAAO,EAGN,mBAAmB,GACnB,MAAM,+BAA+B,CAAC;AACvC,4EAA4E;AAC5E,OAAO,EAIN,iBAAiB,EACjB,gBAAgB,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAa,SAAS,EAAE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ACtB,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAqB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,EAAE,oCAAoC,EAAE,MAAM,iBAAiB,CAAC;AACvE,kBAAkB;AAClB,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["// Core session management\n\nexport type { AgentToolResult, AgentToolUpdateCallback, ToolExecutionMode } from \"@agent-forge/agent-core\";\n// First-party plugin ecosystem (opt-in namespaces; domain plugins do not\n// alter the default coding tool surface).\nexport * as PluginContractsV1 from \"@agent-forge/plugin-sdk\";\n// Memory capability storage contract (扩展位盘点 A1/A2): injectable\n// store/ledger factories and vector components behind\n// `CreateAgentSessionOptions.memoryCapability.storage`. Authoritative home is\n// @agent-forge/plugin-sdk since the S4-4 split (the memory capability itself\n// moved to the @agent-forge/plugin-memory package); re-exported here so the\n// memory-backend example and existing host imports keep resolving.\nexport {\n\tMEMORY_RECALL_TOOL_NAME,\n\ttype MemoryCapabilityOverrideV1,\n\ttype MemoryStorageComponentsV1,\n\ttype MemoryVectorComponentsOverrideV1,\n} from \"@agent-forge/plugin-sdk\";\n// Artifact store (2.6a): session export artifacts with bounded reads and EOL\nexport {\n\ttype ArtifactStatV1,\n\ttype ArtifactStoreV1,\n\tcreateArtifactStore,\n} from \"./artifacts/artifact-store.ts\";\n// Paged artifact reading (3.5c): ref-based expansion with explicit failures\nexport {\n\ttype ArtifactPageDirectoryEntryV1,\n\ttype ArtifactPagePlanV1,\n\ttype ArtifactPageReadV1,\n\tplanArtifactPages,\n\treadArtifactPage,\n} from \"./artifacts/paged-read.ts\";\nexport { type Args, parseArgs } from \"./cli/args.ts\";\nexport * as PluginManagerUiV1 from \"./cli/plugin-manager-controller.ts\";\n// Host-owned plugin management surfaces. They expose bounded DTOs only; the\n// registry, installer, package paths and credentials remain behind the host.\nexport * as PluginUiV1 from \"./cli/plugin-selection-controller.ts\";\nexport {\n\tCONFIG_DIR_NAME,\n\tgetAgentDir,\n\tgetDocsPath,\n\tgetExamplesPath,\n\tgetPackageDir,\n\tgetReadmePath,\n\tgetSessionsDir,\n\tVERSION,\n} from \"./config.ts\";\nexport {\n\tAGENT_CAPABILITY_CONTRACT_ID,\n\tAGENT_CAPABILITY_CONTRACT_VERSION,\n\tAGENT_ERROR_CODES_V1,\n\ttype AgentCapabilityContractInputV1,\n\ttype AgentCapabilityContractV1,\n\ttype AgentCapabilityContractVersion,\n\ttype AgentDefinitionSnapshotV1,\n\ttype AgentErrorCodeV1,\n\ttype AgentInstanceSnapshotV1,\n\ttype AgentProfileV1,\n\ttype ArtifactRefV1,\n\tassertCapabilitySupportedV1,\n\tbuildAgentCapabilityContract,\n\tbuildAgentCapabilityContractV1,\n\tbuildAgentDefinitionSnapshotV1,\n\tbuildAgentInstanceSnapshotV1,\n\tbuildAgentProfileV1,\n\tbuildArtifactRefV1,\n\tbuildCanonicalContractFixtureVectorsV1,\n\tbuildCanonicalContractVectorsV1,\n\tbuildCommandRequestV1,\n\tbuildContractCompatibilityRequirementsV1,\n\tbuildErrorEnvelopeV1,\n\tbuildEventEnvelope,\n\tbuildEventEnvelopeV1,\n\tbuildHostContextV1,\n\tbuildOperationSnapshotV1,\n\tbuildOperationTerminalV1,\n\tbuildSessionRevisionV1,\n\tbuildSessionSnapshotV1,\n\ttype CanonicalContractFixtureVectorV1,\n\ttype CanonicalContractVectorsV1,\n\ttype CapabilityRefV1,\n\ttype CapabilityResolutionV1,\n\ttype CommandAdmissionV1,\n\ttype CommandOperationRegistryV1,\n\ttype CommandRequestInputV1,\n\ttype CommandRequestV1,\n\ttype ContractCompatibilityIssueCodeV1,\n\ttype ContractCompatibilityIssueV1,\n\ttype ContractCompatibilityRequirementsV1,\n\ttype ContractCompatibilityResultV1,\n\tcheckContractCompatibilityV1,\n\tcreateCommandOperationRegistryV1,\n\ttype ErrorEnvelopeV1,\n\ttype EventCategoryV1,\n\ttype EventDeliveryGuaranteeV1,\n\ttype EventEnvelopeInputV1,\n\ttype EventEnvelopeV1,\n\ttype HostContextV1,\n\ttype HostMode as CanonicalHostModeV1,\n\ttype HostTransport,\n\tisRegisteredAgentErrorCodeV1,\n\ttype JsonValue,\n\tmapProtocolErrorCodeToAgentErrorV1,\n\ttype OperationSnapshotV1,\n\ttype OperationStatusV1,\n\ttype OperationTerminalV1,\n\tresolveCapabilityV1,\n\ttype SessionRevisionV1,\n\ttype SessionSnapshotV1,\n\ttoErrorEnvelopeV1,\n\tvalidateAgentCapabilityContract,\n\tvalidateAgentCapabilityContractV1,\n\tvalidateAgentProfileV1,\n\tvalidateArtifactRefV1,\n\tvalidateCommandAdmissionV1,\n\tvalidateCommandRequestV1,\n\tvalidateContractCompatibilityRequirementsV1,\n\tvalidateContractCompatibilityResultV1,\n\tvalidateErrorEnvelopeV1,\n\tvalidateEventEnvelope,\n\tvalidateEventEnvelopeV1,\n\tvalidateHostContextV1,\n\tvalidateOperationSnapshotV1,\n\tvalidateOperationTerminalV1,\n\tvalidateSessionRevisionV1,\n\tvalidateSessionSnapshotV1,\n} from \"./core/agent-capability-contract.ts\";\nexport {\n\tAgentSession,\n\ttype AgentSessionConfig,\n\ttype AgentSessionEvent,\n\ttype AgentSessionEventListener,\n\ttype ModelCycleResult,\n\ttype ParsedSkillBlock,\n\ttype PromptOptions,\n\tparseSkillBlock,\n\ttype SessionStats,\n} from \"./core/agent-session.ts\";\nexport { readStoredCredential } from \"./core/auth-storage.ts\";\n// Compaction\nexport {\n\ttype BranchPreparation,\n\ttype BranchSummaryResult,\n\ttype CollectEntriesResult,\n\ttype CompactionResult,\n\ttype CutPointResult,\n\tcalculateContextTokens,\n\tcollectEntriesForBranchSummary,\n\tcompact,\n\tDEFAULT_COMPACTION_SETTINGS,\n\testimateTokens,\n\ttype FileOperations,\n\tfindCutPoint,\n\tfindTurnStartIndex,\n\ttype GenerateBranchSummaryOptions,\n\tgenerateBranchSummary,\n\tgenerateSummary,\n\tgenerateSummaryWithUsage,\n\tgetLastAssistantUsage,\n\tprepareBranchEntries,\n\tserializeConversation,\n\tshouldCompact,\n} from \"./core/compaction/index.ts\";\nexport {\n\tcreateEmbeddedSdkBinding,\n\tcreateEmbeddedSdkBindingV1,\n\ttype EmbeddedAgentDefinitionV1,\n\ttype EmbeddedAgentInstanceV1,\n\ttype EmbeddedAgentResultV1,\n\ttype EmbeddedControllerLeaseV1,\n\ttype EmbeddedOperationHandleV1,\n\ttype EmbeddedSdkBindingV1,\n\ttype EmbeddedSdkEventListenerV1,\n\ttype EmbeddedSdkOptionsV1,\n\ttype EmbeddedSdkSubscriptionV1,\n\ttype EmbeddedSessionBindingV1,\n} from \"./core/embedded-sdk.ts\";\nexport { createEventBus, type EventBus, type EventBusController } from \"./core/event-bus.ts\";\nexport type { ExecOptions, ExecResult } from \"./core/exec.ts\";\n// Config paths\nexport {\n\ttype AgentCompositionAPI,\n\ttype AgentCompositionDefinitionBinding,\n\ttype AgentCompositionHostBinding,\n\ttype AgentCompositionLifecycleBinding,\n\ttype AgentCompositionLifecycleDispatcher,\n\ttype AgentCompositionLifecycleEvent,\n\ttype AgentCompositionLifecycleEventName,\n\ttype AgentCompositionLifecycleTerminalStatus,\n\tAgentCompositionRuntime,\n\ttype AgentCompositionRuntimeOptions,\n\ttype AgentCompositionScopedHostBinding,\n\ttype AgentContextCommitRequestV1,\n\ttype AgentContextCommitResultV1,\n\ttype AgentContextFacadeV1,\n\ttype AgentContextSnapshotV1,\n\ttype AgentControllerLease,\n\ttype AgentControllerRole,\n\ttype AgentDefinition,\n\ttype AgentDefinitionDeclaration,\n\ttype AgentExecutionContext,\n\ttype AgentHostPrimitivesFactory,\n\ttype AgentHostPrimitivesFactoryContext,\n\ttype AgentHostPrimitivesV1,\n\ttype AgentInstance,\n\ttype AgentInstanceResult,\n\ttype AgentInstanceSnapshot,\n\ttype AgentInstanceStatus,\n\ttype AgentOperationFacadeV1,\n\ttype AgentSessionFacadeV1,\n\ttype AgentTaskAdapter,\n\ttype AgentTaskAPI,\n\ttype AgentTaskCreateRequest,\n\ttype AgentTaskHandle,\n\ttype AgentTaskHost,\n\ttype AgentTaskResultV1,\n\ttype AgentTaskStatus,\n\ttype AgentTaskWaitResult,\n\tBOOTSTRAP_LIFECYCLE_PLUGIN_ID,\n\tCAPABILITY_CALL_EVENT_ID,\n\tCAPABILITY_CALL_EVENT_VERSION,\n\ttype CapabilityAPI,\n\ttype CapabilityCallEventDataV1,\n\ttype CapabilityCallEventNameV1,\n\ttype CapabilityCallStatusV1,\n\ttype CapabilityCommandContext,\n\ttype CapabilityCommandDefinition,\n\ttype CapabilityCommandLink,\n\ttype CapabilityCommandResult,\n\ttype CapabilityDirectoryAPI,\n\ttype CapabilityHandle,\n\ttype CapabilityPluginFactory,\n\ttype CapabilityPluginFactoryResult,\n\ttype CapabilityPluginHandle,\n\ttype CapabilityPluginInstance,\n\ttype CapabilityPluginSyncFactory,\n\ttype CapabilityPluginSyncInstance,\n\ttype CapabilityProviderHandler,\n\ttype CapabilityRuntime,\n\ttype CompactionCommitAppliedV1,\n\ttype CompactionCommitRequestV1,\n\ttype CompactionCommitResultV1,\n\ttype CompactionCommitRevisionConflictV1,\n\ttype CompactionPolicy,\n\ttype CompactionPolicyDecision,\n\ttype CompactionPolicyRequest,\n\ttype CompactionSummaryRequest,\n\ttype CompactionSummaryResult,\n\ttype ContextStrategy,\n\ttype ContributionAPI,\n\ttype ContributionChangeEvent,\n\ttype ContributionEntry,\n\ttype ContributionHandle,\n\ttype ContributionLifecycle,\n\ttype ContributionPoint,\n\ttype ContributionPointDefinition,\n\ttype CredentialAPI,\n\ttype CredentialResolution,\n\ttype CredentialResolveRequest,\n\tcreateAgentCompositionRuntime,\n\tcreateCapabilityRuntime,\n\tcreateDisposableRegistration,\n\tcreateEventEnvelope,\n\tDEFAULT_COMPACTION_POLICY_NAME,\n\tDEFAULT_RETRY_POLICY_NAME,\n\ttype DiagnosticsAPI,\n\ttype DiagnosticsSpan,\n\ttype DiagnosticsSpanEnd,\n\ttype DiagnosticsSpanSnapshot,\n\ttype DisposableRegistration,\n\tdiscoverCapabilityPluginManifests,\n\ttype EventEnvelope,\n\tEXPERIMENTAL_PUBLIC_API_VERSION,\n\ttype ExecutionFactsV1,\n\ttype ExecutionPhaseV1,\n\ttype HostCapabilities,\n\ttype HostMode,\n\tinstallBootstrapLifecycle,\n\ttype LifecycleAfterCommitHandler,\n\ttype LifecycleAPI,\n\ttype LifecycleDeliveryFailure,\n\ttype LifecycleDeliveryMode,\n\ttype LifecycleDeliveryOptions,\n\ttype LifecycleDeliveryReport,\n\ttype LifecycleDeliverySnapshot,\n\ttype LifecycleDispatchRequest,\n\ttype LifecycleDispatchResult,\n\ttype LifecycleEvent,\n\ttype LifecycleEventDefinition,\n\ttype LifecycleEventReference,\n\tLifecycleExecuteError,\n\ttype LifecycleExecuteHandler,\n\ttype LifecycleObserveHandler,\n\ttype LifecyclePhase,\n\ttype LifecycleRegistrationKind,\n\tLifecycleTransformError,\n\ttype LifecycleTransformHandler,\n\ttype LoggerAPI,\n\ttype LoggerLevel,\n\ttype LoggerRecord,\n\tloadCapabilityPlugin,\n\tloadCapabilityPluginFromManifest,\n\tloadCapabilityPluginSync,\n\tMODEL_RESPONSE_EVENT_ID,\n\tMODEL_RESPONSE_EVENT_VERSION,\n\tMODEL_STREAM_EVENT_ID,\n\tMODEL_STREAM_EVENT_VERSION,\n\ttype ModelResponseEventDataV1,\n\ttype ModelStreamEventDataV1,\n\ttype ModelStreamEventNameV1,\n\tOPERATION_CANCEL_EVENT_ID,\n\tOPERATION_CANCEL_EVENT_VERSION,\n\tOPERATION_END_EVENT_ID,\n\tOPERATION_END_EVENT_VERSION,\n\tOPERATION_START_EVENT_ID,\n\tOPERATION_START_EVENT_VERSION,\n\tOPERATION_STEP_EVENT_ID,\n\tOPERATION_STEP_EVENT_VERSION,\n\ttype OperationCancelEventDataV1,\n\ttype OperationEndEventDataV1,\n\ttype OperationExecutionContext,\n\ttype OperationHandle,\n\ttype OperationProgress,\n\ttype OperationStartEventDataV1,\n\ttype OperationStatus,\n\ttype OperationStepEventDataV1,\n\ttype OutputArtifactAPI,\n\ttype OutputArtifactChunk,\n\ttype OutputArtifactErrorCode,\n\ttype OutputArtifactPutInput,\n\ttype OutputArtifactRef,\n\tPLUGIN_DISPOSE_EVENT_ID,\n\tPLUGIN_DISPOSE_EVENT_VERSION,\n\tPLUGIN_READY_EVENT_ID,\n\tPLUGIN_READY_EVENT_VERSION,\n\ttype PluginAgentRole,\n\ttype PluginCapabilityDeclaration,\n\ttype PluginCapabilityRequirement,\n\ttype PluginConfig,\n\ttype PluginConfigValue,\n\ttype PluginDisposeEventDataV1,\n\ttype PluginManifest,\n\ttype PluginReadyEventDataV1,\n\ttype PolicyInvocationContextV1,\n\ttype ProviderHeaderTransform,\n\ttype ProviderHeaderTransformRequest,\n\tparseCapabilityPluginManifest,\n\ttype RetryPolicy,\n\ttype RetryPolicyDecision,\n\ttype RetryPolicyRequest,\n\ttype RetryScheduleV1,\n\ttype RuntimeInspectorAPI,\n\ttype RuntimeInspectorErrorSnapshot,\n\ttype RuntimeInspectorLifecycleDeliveryFailureSnapshot,\n\ttype RuntimeInspectorLifecycleDeliveryReportSnapshot,\n\ttype RuntimeInspectorSnapshot,\n\tresolvePluginCapabilityOrder,\n\tSESSION_COMPACTION_COMMIT_EVENT_ID,\n\tSESSION_COMPACTION_COMMIT_EVENT_VERSION,\n\tSESSION_CONTEXT_REPLACED_EVENT_ID,\n\tSESSION_CONTEXT_REPLACED_EVENT_VERSION,\n\tSESSION_RELOAD_EVENT_ID,\n\tSESSION_RELOAD_EVENT_VERSION,\n\ttype SessionAPI,\n\ttype SessionCompactionCommitEventDataV1,\n\ttype SessionContextReplacedEventDataV1,\n\ttype SessionEntryView,\n\ttype SessionExportArtifact,\n\ttype SessionExportRequest,\n\ttype SessionReloadEventDataV1,\n\ttype SkillDefinition,\n\ttype StateAPI,\n\ttype StateChange,\n\ttype StateEntry,\n\ttype StateSetOptions,\n\tSUMMARY_MODEL_INVOCATION_ERROR_CODES,\n\ttype SummaryModelFactsV1,\n\ttype SummaryModelInvocationRequestV1,\n\ttype SummaryModelInvocationResultV1,\n\ttype SummaryModelInvocationV1,\n\tTOOL_CALL_EVENT_ID,\n\tTOOL_CALL_EVENT_VERSION,\n\tTOOL_COMMIT_EVENT_ID,\n\tTOOL_COMMIT_EVENT_VERSION,\n\tTOOL_EXECUTE_EVENT_ID,\n\tTOOL_EXECUTE_EVENT_VERSION,\n\tTOOL_RESULT_EVENT_ID,\n\tTOOL_RESULT_EVENT_VERSION,\n\tTOOL_RESULT_RAW_EVENT_ID,\n\tTOOL_RESULT_RAW_EVENT_VERSION,\n\tTOOL_RESULT_TRANSFORM_EVENT_ID,\n\tTOOL_RESULT_TRANSFORM_EVENT_VERSION,\n\ttype ToolCallEventDataV1,\n\ttype ToolCommitEventDataV1,\n\ttype ToolExecuteEventDataV1,\n\ttype ToolResultEventDataV1,\n\ttype ToolResultRawEventDataV1,\n\ttype ToolResultTransformEventDataV1,\n\tvalidateCapabilityCallEventDataV1,\n\tvalidateExecutionFactsV1,\n\tvalidateModelResponseEventDataV1,\n\tvalidateModelStreamEventDataV1,\n\tvalidateOperationCancelEventDataV1,\n\tvalidateOperationEndEventDataV1,\n\tvalidateOperationStartEventDataV1,\n\tvalidateOperationStepEventDataV1,\n\tvalidatePluginDisposeEventDataV1,\n\tvalidatePluginReadyEventDataV1,\n\tvalidateRetryScheduleV1,\n\tvalidateSessionCompactionCommitEventDataV1,\n\tvalidateSessionContextReplacedEventDataV1,\n\tvalidateSessionReloadEventDataV1,\n\tvalidateToolCallEventDataV1,\n\tvalidateToolCommitEventDataV1,\n\tvalidateToolExecuteEventDataV1,\n\tvalidateToolResultEventDataV1,\n\tvalidateToolResultRawEventDataV1,\n\tvalidateToolResultTransformEventDataV1,\n} from \"./core/extensions/index.ts\";\nexport type { ContextUsage } from \"./core/extensions/public-api.ts\";\nexport { detachedSessionSnapshot } from \"./core/extensions/public-api.ts\";\n// Stable session facade v1 type (B-S2b③-S2): named so the createStableAgentSession\n// result is nameable from the package root. The package-root `exports` subpath set\n// is unchanged (B-S2a gate holds; the facade is not promoted into an exports subpath).\nexport type { CodingAgentFacadeV1 } from \"./core/facade/coding-agent-facade.ts\";\n// Stable runtime facade v1 type (D-063): named so the createStableAgentSessionRuntime\n// result is nameable from the package root. The package-root `exports` subpath set\n// is unchanged (B-S2a gate holds; the facade is not promoted into an exports subpath).\nexport type { CodingAgentRuntimeFacadeV1 } from \"./core/facade/coding-agent-runtime-facade.ts\";\n// Footer data provider (git branch + extension statuses - data not otherwise available to extensions)\nexport type { ReadonlyFooterDataProvider } from \"./core/footer-data-provider.ts\";\nexport type { InputSource } from \"./core/input-source.ts\";\nexport { convertToLlm } from \"./core/messages.ts\";\nexport {\n\tModelRegistry,\n\ttype ProviderConfigInput,\n} from \"./core/model-registry.ts\";\nexport {\n\ttype ModelScopeDiagnostic,\n\ttype ResolveCliModelResult,\n\ttype ResolveModelScopeResult,\n\tresolveCliModel,\n\tresolveModelScopeWithDiagnostics,\n\ttype ScopedModel,\n} from \"./core/model-resolver.ts\";\nexport {\n\ttype CreateModelRuntimeOptions,\n\tCredentialSynchronizationError,\n\ttype CredentialSynchronizationOperation,\n\tModelRuntime,\n\ttype ModelRuntimeAuthOverrides,\n} from \"./core/model-runtime.ts\";\nexport type {\n\tPackageManager,\n\tPathMetadata,\n\tProgressCallback,\n\tProgressEvent,\n\tResolvedPaths,\n\tResolvedResource,\n} from \"./core/package-manager.ts\";\nexport { DefaultPackageManager } from \"./core/package-manager.ts\";\nexport type { ResourceCollision, ResourceDiagnostic, ResourceLoader } from \"./core/resource-loader.ts\";\nexport { DefaultResourceLoader, loadProjectContextFiles } from \"./core/resource-loader.ts\";\n// SDK for programmatic usage\nexport {\n\tAgentSessionRuntime,\n\ttype AgentSessionRuntimeDiagnostic,\n\ttype AgentSessionServices,\n\ttype CreateAgentSessionFromServicesOptions,\n\ttype CreateAgentSessionOptions,\n\ttype CreateAgentSessionResult,\n\ttype CreateAgentSessionRuntimeFactory,\n\ttype CreateAgentSessionRuntimeResult,\n\ttype CreateAgentSessionServicesOptions,\n\ttype CreateStableAgentSessionResult,\n\ttype CreateStableAgentSessionRuntimeResult,\n\t// Factory\n\tcreateAgentSession,\n\tcreateAgentSessionFromServices,\n\tcreateAgentSessionRuntime,\n\tcreateAgentSessionServices,\n\t// Stable session entry (B-S2b③-S2): same assembly as createAgentSession,\n\t// returned as the stable facade pair. The package-root `exports` subpath set\n\t// is unchanged (B-S2a gate holds; this is a named export, not a subpath).\n\tcreateStableAgentSession,\n\t// Stable runtime entry (D-063): same assembly as createAgentSessionRuntime,\n\t// returned as the stable runtime facade (no bare runtime/session). Same\n\t// package-root `exports` note as the session entry above.\n\tcreateStableAgentSessionRuntime,\n\ttype PromptTemplate,\n} from \"./core/sdk.ts\";\nexport {\n\ttype BranchSummaryEntry,\n\tbuildContextEntries,\n\tbuildSessionContext,\n\ttype CompactionEntry,\n\tCURRENT_SESSION_VERSION,\n\ttype CustomEntry,\n\ttype CustomMessageEntry,\n\ttype FileEntry,\n\tgetLatestCompactionEntry,\n\ttype ModelChangeEntry,\n\tmigrateSessionEntries,\n\ttype NewSessionOptions,\n\tparseSessionEntries,\n\ttype SessionContext,\n\ttype SessionEntry,\n\ttype SessionEntryBase,\n\ttype SessionHeader,\n\ttype SessionInfo,\n\ttype SessionInfoEntry,\n\tSessionManager,\n\ttype SessionMessageEntry,\n\ttype SessionTreeNode,\n\tsessionEntryToContextMessages,\n\ttype ThinkingLevelChangeEntry,\n} from \"./core/session-manager.ts\";\nexport {\n\tFileSessionStorageProvider,\n\tSessionHeaderScanLimitError,\n\ttype SessionStorageProvider,\n\ttype SessionWriteGuardV1,\n} from \"./core/session-storage.ts\";\nexport {\n\ttype CompactionSettings,\n\ttype FullscreenExitOutput,\n\ttype ImageSettings,\n\ttype PackageSource,\n\ttype RetrySettings,\n\tSettingsManager,\n\ttype SettingsManagerCreateOptions,\n\ttype TuiMode,\n} from \"./core/settings-manager.ts\";\n// Skills\nexport {\n\tformatSkillsForPrompt,\n\ttype LoadSkillsFromDirOptions,\n\ttype LoadSkillsResult,\n\tloadSkills,\n\tloadSkillsFromDir,\n\ttype Skill,\n\ttype SkillFrontmatter,\n} from \"./core/skills.ts\";\nexport type { SlashCommandInfo, SlashCommandSource } from \"./core/slash-commands.ts\";\nexport type { SourceInfo } from \"./core/source-info.ts\";\nexport { createSyntheticSourceInfo } from \"./core/source-info.ts\";\nexport type { BuildSystemPromptOptions } from \"./core/system-prompt.ts\";\nexport { type EditDiffResult, generateDiffString, generateUnifiedPatch } from \"./core/tools/edit-diff.ts\";\n// Tools (D-082 批 1: the default coding tool definitions moved to the\n// plugins/coding-tools package; the host keeps the shared tool-support face)\nexport {\n\ttype BashOperations,\n\ttype BashSpawnContext,\n\ttype BashSpawnHook,\n\tcreateLocalBashOperations,\n\tcreateLocalShellOperations,\n\tDEFAULT_MAX_BYTES,\n\tDEFAULT_MAX_LINES,\n\tformatSize,\n\ttype TruncationOptions,\n\ttype TruncationResult,\n\ttruncateHead,\n\ttruncateLine,\n\ttruncateTail,\n\twithFileMutationQueue,\n} from \"./core/tools/index.ts\";\nexport type {\n\tToolDefinition,\n\tToolExecuteContext,\n\tToolInfo,\n\tToolRenderContext,\n\tToolRenderResultOptions,\n} from \"./core/tools/tool-definition.ts\";\n// Tool definition surface (capability tools contract)\nexport { defineTool } from \"./core/tools/tool-definition.ts\";\n// Durable service (7.4b): in-memory persistence with optional file backend\nexport {\n\tcreateDurableService,\n\tcreateFileDurableStoreBackend,\n\ttype DurableArtifactRecordV1,\n\ttype DurableOperationRecordV1,\n\ttype DurableReplayDiagnosticsV1,\n\ttype DurableServiceErrorCodeV1,\n\tDurableServiceErrorV1,\n\ttype DurableServiceOptionsV1,\n\ttype DurableServiceV1,\n\ttype DurableSessionRecordV1,\n\ttype DurableSnapshotV1,\n\ttype DurableStoreBackend,\n\ttype DurableStoreLoadResultV1,\n\ttype DurableStoreOperationV1,\n\ttype DurableWriterClaimV1,\n\ttype DurableWriterRecoveryV1,\n\tdurableLogPath,\n} from \"./durable/durable-service.ts\";\n// Agent retry scheduler (2A.4b): cancellable, duplicate-suppressing retries\nexport {\n\ttype AgentRetryAttemptV1,\n\ttype AgentRetryOutcomeV1,\n\ttype AgentRetryPolicyV1,\n\ttype AgentRetrySchedulerV1,\n\tcreateAgentRetryScheduler,\n} from \"./host/agent-retry-scheduler.ts\";\n// Auto compaction executor (2A.3a): threshold-triggered with cancel/re-entrancy\nexport {\n\ttype AutoCompactionExecutorV1,\n\ttype AutoCompactionOutcomeV1,\n\ttype AutoCompactionPolicyV1,\n\tcreateAutoCompactionExecutor,\n} from \"./host/auto-compaction.ts\";\n// Branch migration and reload transaction (2A.5a/2A.5b)\nexport {\n\ttype BranchMigrationOutcomeV1,\n\ttype BranchStateEntryV1,\n\ttype BranchStateMigrationV1,\n\tcreateBranchStateMigration,\n\tcreateReloadTransaction,\n\ttype ReloadTransactionV1,\n} from \"./host/branch-reload.ts\";\n// Channel adapter (3.5b): print/JSON stdout-stderr semantics\nexport {\n\ttype ChannelAdapterV1,\n\ttype ChannelFormatV1,\n\tcreateStdioChannelAdapter,\n} from \"./host/channel-adapter.ts\";\n// Host checkpoint/commit (2A.1): revision-guarded idempotent two-phase writes\nexport {\n\tcreateHostCheckpointCoordinator,\n\ttype HostCheckpointCoordinatorV1,\n\ttype HostCommitOutcomeV1,\n\ttype HostStagedWriteV1,\n\ttype HostStageResultV1,\n} from \"./host/checkpoint-commit.ts\";\n// Manual compaction executor (2A.2): plugin-driven timing over checkpoint primitives\nexport {\n\tcreateManualCompactionExecutor,\n\ttype ManualCompactionExecutorV1,\n\ttype ManualCompactionOutcomeV1,\n\ttype ManualCompactionStateV1,\n} from \"./host/manual-compaction.ts\";\n// Host output projection (2.6b): traced channel records with structured errors\nexport {\n\tcreateHostOutputProjector,\n\ttype HostEventV1,\n\ttype HostOutputChannelV1,\n\ttype HostOutputProjectorV1,\n\ttype HostOutputRecordV1,\n\ttype HostOutputSeverityV1,\n} from \"./host/output-projection.ts\";\n// Output reducer (3.5a): deterministic fold/unfold over projected records\nexport {\n\tcreateOutputReducer,\n\ttype FoldedOutputGroupV1,\n\ttype FoldedOutputV1,\n\ttype OutputReducerV1,\n} from \"./host/output-reducer.ts\";\n// Host Output Serializer (3.5 supplement): per-surface allowlist projection\nexport {\n\tcreateHostOutputSerializer,\n\ttype HostOutputProjectionV1,\n\ttype HostOutputSerializerContextV1,\n\ttype HostOutputSerializerV1,\n\ttype HostOutputSurfaceV1,\n\ttype OutputArtifactRefV1,\n} from \"./host/output-serializer.ts\";\n// Provider overflow recovery (2A.3b): classification and shrink-and-commit entry\nexport {\n\tcreateOverflowRecovery,\n\ttype OverflowRecoveryOutcomeV1,\n\ttype OverflowRecoveryV1,\n\ttype ProviderErrorClassificationV1,\n\ttype ProviderErrorClassV1,\n} from \"./host/overflow-recovery.ts\";\n// Summary retry (2A.4a): traced attempts, exponential backoff, terminal states\nexport {\n\tcreateSummaryRetryExecutor,\n\ttype SummaryAttemptRecordV1,\n\ttype SummaryRetryExecutorV1,\n\ttype SummaryRetryOutcomeV1,\n\ttype SummaryRetryPolicyV1,\n} from \"./host/summary-retry.ts\";\n// Main entry point\nexport { type MainOptions, main } from \"./main.ts\";\n// Migration tool (7.4a): chained version migration with rollback evidence\nexport {\n\tcreateMigrationTool,\n\ttype MigrationEvidenceStepV1,\n\ttype MigrationOutcomeV1,\n\ttype MigrationStepV1,\n\ttype MigrationToolV1,\n} from \"./migration/migration-tool.ts\";\n// Run modes for programmatic SDK usage\nexport {\n\tInteractiveMode,\n\ttype InteractiveModeOptions,\n\ttype JsonAgentSessionEvent,\n\ttype ModelInfo,\n\ttype PrintModeOptions,\n\tRpcClient,\n\ttype RpcClientOptions,\n\ttype RpcCommand,\n\ttype RpcEventListener,\n\ttype RpcExtensionUIRequest,\n\ttype RpcExtensionUIResponse,\n\ttype RpcModeOptions,\n\ttype RpcResponse,\n\ttype RpcSessionState,\n\trunPrintMode,\n\trunRpcMode,\n} from \"./modes/index.ts\";\n// UI components for extensions\nexport {\n\tArminComponent,\n\tAssistantMessageComponent,\n\tBashExecutionComponent,\n\tBorderedLoader,\n\tBranchSummaryMessageComponent,\n\tCompactionSummaryMessageComponent,\n\tCustomEditor,\n\tCustomMessageComponent,\n\tDialogEditorComponent,\n\tDialogInputComponent,\n\tDialogSelectorComponent,\n\tDynamicBorder,\n\tFooterComponent,\n\tkeyHint,\n\tkeyText,\n\tLoginDialogComponent,\n\tModelSelectorComponent,\n\tOAuthSelectorComponent,\n\tPluginManagerEntryComponent,\n\ttype PluginManagerEntryOpenContextV1,\n\ttype PluginManagerEntryOpenResultV1,\n\ttype PluginManagerEntryOptionsV1,\n\ttype RenderDiffOptions,\n\trawKeyHint,\n\trenderDiff,\n\tSessionSelectorComponent,\n\ttype SettingsCallbacks,\n\ttype SettingsConfig,\n\tSettingsSelectorComponent,\n\tShowImagesSelectorComponent,\n\tSkillInvocationMessageComponent,\n\tThemeSelectorComponent,\n\tThinkingSelectorComponent,\n\tToolExecutionComponent,\n\ttype ToolExecutionOptions,\n\tTreeSelectorComponent,\n\ttruncateToVisualLines,\n\tUserMessageComponent,\n\tUserMessageSelectorComponent,\n\ttype VisualTruncateResult,\n} from \"./modes/interactive/components/index.ts\";\nexport * as PluginEcosystemV1 from \"./plugins/ecosystem/index.ts\";\n// Host facts for the ecosystem pluginHost options (B-S2b: the convergence\n// slice names the previously unnameable type for cross-package consumers).\nexport type { HostFactsV1 } from \"./plugins/ecosystem/types.ts\";\n// Integrity adapter (7.3): seal/verify manifests for external policy flows\nexport {\n\tcreateIntegrityAdapter,\n\ttype IntegrityAdapterV1,\n\ttype ManifestExpectationV1,\n\ttype ManifestVerdictV1,\n\ttype SealedManifestV1,\n} from \"./plugins/integrity-adapter.ts\";\n// Plugin host (7.1): owned lifecycle, reverse dispose, error aggregation\nexport {\n\tcreatePluginHost,\n\ttype HostedPluginV1,\n\ttype PluginHostErrorV1,\n\ttype PluginHostResourceV1,\n\ttype PluginHostStateV1,\n\ttype PluginHostV1,\n} from \"./plugins/plugin-host.ts\";\n// Plugin supervisor (7.2): heartbeat, bounded restart, backpressure\nexport {\n\tcreatePluginSupervisor,\n\ttype PluginHealthV1,\n\ttype PluginSupervisorV1,\n\ttype SupervisorEntryV1,\n\ttype SupervisorEventV1,\n\ttype SupervisorPolicyV1,\n} from \"./plugins/plugin-supervisor.ts\";\n// Profile identity (2.0a): profileId/version, manifest digest, host compatibility\nexport {\n\tbuildProfileIdentityV1,\n\ttype ProfileIdentityV1,\n\tprofileIdentitiesCompatible,\n\ttype ResolvedPluginManifestV1,\n\tstableJsonDigest,\n} from \"./profile/identity.ts\";\n// Profile lock (2.0b): pre-creation lock, reopen/reload drift detection\nexport {\n\tcreateProfileLock,\n\ttype ProfileLockReplaceResultV1,\n\ttype ProfileLockV1,\n\ttype ProfileLockVerificationV1,\n\treplaceProfileLock,\n\tverifyProfileLock,\n} from \"./profile/lock.ts\";\nexport {\n\ttype BuiltinPluginManifestOverridesV1,\n\ttype BuiltinPluginProfileIdV1,\n\ttype BuiltinPluginProfileResolutionV1,\n\ttype BuiltinPluginProfileV1,\n\tlistBuiltinPluginManifestsV1,\n\tlistBuiltinPluginProfilesV1,\n\tresolveBuiltinPluginProfileV1,\n} from \"./profile/plugin-profiles.ts\";\n// Profile assembly (2.5b): verified-plugin assembly, version lock, replacement\nexport {\n\tassembleProfile,\n\ttype PluginReplacementRecordV1,\n\ttype ProfileAssemblyResultV1,\n\ttype ProfileAssemblyV1,\n\ttype ProfileReplacementResultV1,\n\treplaceProfilePlugin,\n\ttype VerifiedToolPluginV1,\n} from \"./profile/profile-assembly.ts\";\n// Profile migration policy (2.7b): explicit reopen migration over the 2.0b lock\nexport {\n\tcreateProfileMigrationPolicy,\n\ttype ProfileMigrationPlanV1,\n\ttype ProfileMigrationPolicyV1,\n\ttype ProfileMigrationResultV1,\n} from \"./profile/profile-migration.ts\";\n// Profile registry (2.7a): multi-source discovery, upgrades, deprecation\nexport {\n\tcreateProfileRegistry,\n\ttype ProfileRegistryV1,\n\ttype ProfileResolutionV1,\n\ttype ProfileVersionRangeV1,\n\ttype RegistryProfileEntryV1,\n\ttype RegistrySourceV1,\n} from \"./profile/profile-registry.ts\";\n// Remote server assembly (1B.7h): coding-agent sessions behind the public server boundary\nexport {\n\tassembleCodingAgentServer,\n\ttype CodingAgentServerAssemblyOptions,\n\ttype CodingAgentServerModels,\n\tCodingAgentServerService,\n\ttype CodingAgentServerSessionSource,\n\ttype CodingAgentSessionDescriptor,\n\tCodingAgentSessionRuntime,\n\tprojectSessionTranscript,\n} from \"./remote/server-assembly.ts\";\n// Remote restart recovery (E3): production session source and programmatic server entry\nexport {\n\ttype CodingAgentRemoteServerHandle,\n\ttype StartCodingAgentRemoteServerOptions,\n\tstartCodingAgentRemoteServer,\n} from \"./remote/server-entry.ts\";\nexport {\n\tcreateFileSessionSource,\n\ttype FileSessionSourceOptions,\n} from \"./remote/session-source.ts\";\n// Session share contract (2.6c): revocable read-only shares with explicit transports\nexport {\n\tcreateSessionShare,\n\ttype SessionShareManagerV1,\n\ttype ShareArtifactInputV1,\n\ttype ShareContractV1,\n\ttype ShareResolveRequestV1,\n\ttype ShareResolveResultV1,\n\ttype ShareScopeV1,\n\ttype ShareTransportV1,\n} from \"./share/session-share.ts\";\n// Share viewer (2.6d): escaped HTML + JSON views with explicit failure states\nexport { createShareViewer, type ShareViewerV1, type ShareViewV1 } from \"./share/share-viewer.ts\";\nexport { isBuiltinSuiteId } from \"./suites/builtin-suites.ts\";\n// Resolved agent profile (D-047 S4a): immutable per-session aggregate view\n// over the resolved suite profile — a projection of existing authoritative\n// sources, not a new generation mechanism; AgentSession stays suite-unaware.\nexport {\n\tbuildResolvedAgentProfileV1,\n\ttype PluginProfileResolutionSummaryV1,\n\ttype ResolvedAgentProfileV1,\n\ttype ResolvedProfileDiagnosticV1,\n} from \"./suites/resolved-agent-profile.ts\";\n// Suite (方案) lifecycle public API (方案系统设计.md §9): the same deterministic\n// operations the CLI one-shots use, exported so first-party and third-party\n// plugins can manage suite workspaces without hidden channels.\nexport {\n\tclearDanglingSuiteSettings,\n\tcreateSuite,\n\tdeleteSuite,\n\tfindSuiteSessionRefs,\n\tresetSuite,\n\tSUITE_DELETE_CONFIRM_TOKEN,\n\ttype SuiteCreateOptions,\n\ttype SuiteCreateResult,\n\ttype SuiteDeleteOptions,\n\ttype SuiteDeleteResult,\n\tSuiteLifecycleError,\n\ttype SuiteLifecycleOperation,\n\ttype SuiteResetPlan,\n\ttype SuiteSessionRef,\n\ttype SuiteSettingsCleanup,\n} from \"./suites/suite-lifecycle.ts\";\nexport {\n\tDEFAULT_SUITE_ID,\n\tlistSuiteIds,\n\tSuiteResolutionError,\n} from \"./suites/suite-loader.ts\";\n// Mock AI server (3.1): fail-closed scenario fixtures with fault injection\nexport {\n\tcreateMockAiServer,\n\tMockAiError,\n\ttype MockAiFaultV1,\n\ttype MockAiFixtureV1,\n\ttype MockAiPartV1,\n\ttype MockAiRequestV1,\n\ttype MockAiResponseV1,\n\ttype MockAiServerV1,\n\ttype MockAiStepV1,\n} from \"./testing/mock-ai-server.ts\";\n// Theme utilities for custom tools and extensions\nexport {\n\tgetLanguageFromPath,\n\tgetMarkdownTheme,\n\tgetSelectListTheme,\n\tgetSettingsListTheme,\n\thighlightCode,\n\tinitTheme,\n\tTheme,\n\ttype ThemeColor,\n} from \"./theme/theme.ts\";\n// Clipboard utilities\nexport { copyToClipboard } from \"./utils/clipboard.ts\";\nexport { parseFrontmatter, stripFrontmatter } from \"./utils/frontmatter.ts\";\nexport { convertToPng } from \"./utils/image-convert.ts\";\nexport { formatDimensionNote, type ResizedImage, resizeImage } from \"./utils/image-resize.ts\";\nexport { detectSupportedImageMimeTypeFromFile } from \"./utils/mime.ts\";\n// Shell utilities\nexport { getPowerShellConfig, getShellConfig, killProcessTree, sanitizeBinaryOutput } from \"./utils/shell.ts\";\n"]}