@agentxm/client-core 0.5.0 → 0.5.1

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 (613) hide show
  1. package/dist/src/unstable/agents/augment/service.d.ts.map +1 -1
  2. package/dist/src/unstable/agents/augment/service.js +12 -8
  3. package/dist/src/unstable/agents/augment/service.js.map +1 -1
  4. package/dist/src/unstable/agents/coding-agent.d.ts +1 -1
  5. package/dist/src/unstable/agents/coding-agent.d.ts.map +1 -1
  6. package/dist/src/unstable/agents/coding-agent.js +1 -1
  7. package/dist/src/unstable/agents/coding-agent.js.map +1 -1
  8. package/dist/src/unstable/agents/command-sync.d.ts +2 -2
  9. package/dist/src/unstable/agents/command-sync.d.ts.map +1 -1
  10. package/dist/src/unstable/agents/command-sync.js +44 -23
  11. package/dist/src/unstable/agents/command-sync.js.map +1 -1
  12. package/dist/src/unstable/agents/detection.js +3 -3
  13. package/dist/src/unstable/agents/detection.js.map +1 -1
  14. package/dist/src/unstable/agents/index.d.ts +1 -1
  15. package/dist/src/unstable/agents/index.d.ts.map +1 -1
  16. package/dist/src/unstable/agents/index.js +1 -1
  17. package/dist/src/unstable/agents/index.js.map +1 -1
  18. package/dist/src/unstable/agents/mcp-sync.d.ts.map +1 -1
  19. package/dist/src/unstable/agents/mcp-sync.js +14 -20
  20. package/dist/src/unstable/agents/mcp-sync.js.map +1 -1
  21. package/dist/src/unstable/agents/repository.js +2 -2
  22. package/dist/src/unstable/agents/repository.js.map +1 -1
  23. package/dist/src/unstable/agents/subagent-sync.js +14 -14
  24. package/dist/src/unstable/agents/subagent-sync.js.map +1 -1
  25. package/dist/src/unstable/app-error/app-error.d.ts +10 -9
  26. package/dist/src/unstable/app-error/app-error.d.ts.map +1 -1
  27. package/dist/src/unstable/app-error/app-error.js +37 -4
  28. package/dist/src/unstable/app-error/app-error.js.map +1 -1
  29. package/dist/src/unstable/app-error/builders.d.ts +21 -0
  30. package/dist/src/unstable/app-error/builders.d.ts.map +1 -0
  31. package/dist/src/unstable/app-error/builders.js +46 -0
  32. package/dist/src/unstable/app-error/builders.js.map +1 -0
  33. package/dist/src/unstable/app-error/index.d.ts +2 -1
  34. package/dist/src/unstable/app-error/index.d.ts.map +1 -1
  35. package/dist/src/unstable/app-error/index.js +2 -1
  36. package/dist/src/unstable/app-error/index.js.map +1 -1
  37. package/dist/src/unstable/app-error/render.d.ts.map +1 -1
  38. package/dist/src/unstable/app-error/render.js +6 -24
  39. package/dist/src/unstable/app-error/render.js.map +1 -1
  40. package/dist/src/unstable/auth/auth-client.d.ts +1 -1
  41. package/dist/src/unstable/auth/auth-client.d.ts.map +1 -1
  42. package/dist/src/unstable/auth/auth-client.js +76 -42
  43. package/dist/src/unstable/auth/auth-client.js.map +1 -1
  44. package/dist/src/unstable/auth/credential-store.d.ts +1 -1
  45. package/dist/src/unstable/auth/credential-store.d.ts.map +1 -1
  46. package/dist/src/unstable/auth/credential-store.js +22 -24
  47. package/dist/src/unstable/auth/credential-store.js.map +1 -1
  48. package/dist/src/unstable/auth/device-login.d.ts +1 -1
  49. package/dist/src/unstable/auth/device-login.d.ts.map +1 -1
  50. package/dist/src/unstable/auth/device-login.js +1 -1
  51. package/dist/src/unstable/auth/device-login.js.map +1 -1
  52. package/dist/src/unstable/auth/guard-interaction.d.ts +1 -1
  53. package/dist/src/unstable/auth/guard-interaction.d.ts.map +1 -1
  54. package/dist/src/unstable/auth/guard-interaction.js +1 -1
  55. package/dist/src/unstable/auth/guard-interaction.js.map +1 -1
  56. package/dist/src/unstable/auth/guard.d.ts.map +1 -1
  57. package/dist/src/unstable/auth/guard.js +5 -9
  58. package/dist/src/unstable/auth/guard.js.map +1 -1
  59. package/dist/src/unstable/auth/login-interaction.d.ts +1 -1
  60. package/dist/src/unstable/auth/login-interaction.d.ts.map +1 -1
  61. package/dist/src/unstable/auth/login-interaction.js +1 -1
  62. package/dist/src/unstable/auth/login-interaction.js.map +1 -1
  63. package/dist/src/unstable/auth/registry-url.d.ts +1 -1
  64. package/dist/src/unstable/auth/registry-url.js +1 -1
  65. package/dist/src/unstable/auth/registry-url.js.map +1 -1
  66. package/dist/src/unstable/auth/token-resolution.d.ts +1 -1
  67. package/dist/src/unstable/auth/token-resolution.d.ts.map +1 -1
  68. package/dist/src/unstable/auth/token-resolution.js +6 -10
  69. package/dist/src/unstable/auth/token-resolution.js.map +1 -1
  70. package/dist/src/unstable/cli/prompt/helpers.d.ts +1 -1
  71. package/dist/src/unstable/cli/prompt/helpers.js +3 -3
  72. package/dist/src/unstable/cli/prompt/helpers.js.map +1 -1
  73. package/dist/src/unstable/cli-flags/verbosity.d.ts +1 -1
  74. package/dist/src/unstable/cli-flags/verbosity.d.ts.map +1 -1
  75. package/dist/src/unstable/cli-flags/verbosity.js +1 -1
  76. package/dist/src/unstable/cli-flags/verbosity.js.map +1 -1
  77. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.d.ts.map +1 -1
  78. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js +128 -9
  79. package/dist/src/unstable/cli-renderer/cli-renderer-interactive.js.map +1 -1
  80. package/dist/src/unstable/cli-renderer/cli-renderer-machine.d.ts.map +1 -1
  81. package/dist/src/unstable/cli-renderer/cli-renderer-machine.js +45 -10
  82. package/dist/src/unstable/cli-renderer/cli-renderer-machine.js.map +1 -1
  83. package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts +2 -0
  84. package/dist/src/unstable/cli-renderer/cli-renderer-test.d.ts.map +1 -1
  85. package/dist/src/unstable/cli-renderer/cli-renderer-test.js +80 -21
  86. package/dist/src/unstable/cli-renderer/cli-renderer-test.js.map +1 -1
  87. package/dist/src/unstable/cli-renderer/cli-renderer.d.ts +32 -7
  88. package/dist/src/unstable/cli-renderer/cli-renderer.d.ts.map +1 -1
  89. package/dist/src/unstable/cli-renderer/cli-renderer.js +1 -1
  90. package/dist/src/unstable/cli-renderer/cli-renderer.js.map +1 -1
  91. package/dist/src/unstable/cli-renderer/entity-registry.d.ts +15 -0
  92. package/dist/src/unstable/cli-renderer/entity-registry.d.ts.map +1 -0
  93. package/dist/src/unstable/cli-renderer/entity-registry.js +17 -0
  94. package/dist/src/unstable/cli-renderer/entity-registry.js.map +1 -0
  95. package/dist/src/unstable/cli-renderer/index.d.ts +2 -1
  96. package/dist/src/unstable/cli-renderer/index.d.ts.map +1 -1
  97. package/dist/src/unstable/cli-renderer/index.js +1 -0
  98. package/dist/src/unstable/cli-renderer/index.js.map +1 -1
  99. package/dist/src/unstable/cli-runtime/breadcrumb.d.ts +9 -0
  100. package/dist/src/unstable/cli-runtime/breadcrumb.d.ts.map +1 -0
  101. package/dist/src/unstable/cli-runtime/breadcrumb.js +12 -0
  102. package/dist/src/unstable/cli-runtime/breadcrumb.js.map +1 -0
  103. package/dist/src/unstable/cli-runtime/command-argv.d.ts +1 -1
  104. package/dist/src/unstable/cli-runtime/command-argv.js +1 -1
  105. package/dist/src/unstable/cli-runtime/command-argv.js.map +1 -1
  106. package/dist/src/unstable/cli-runtime/graceful-shutdown.d.ts.map +1 -1
  107. package/dist/src/unstable/cli-runtime/graceful-shutdown.js +3 -1
  108. package/dist/src/unstable/cli-runtime/graceful-shutdown.js.map +1 -1
  109. package/dist/src/unstable/cli-runtime/handle-error.d.ts +2 -0
  110. package/dist/src/unstable/cli-runtime/handle-error.d.ts.map +1 -1
  111. package/dist/src/unstable/cli-runtime/handle-error.js +42 -3
  112. package/dist/src/unstable/cli-runtime/handle-error.js.map +1 -1
  113. package/dist/src/unstable/cli-runtime/index.d.ts +4 -4
  114. package/dist/src/unstable/cli-runtime/index.d.ts.map +1 -1
  115. package/dist/src/unstable/cli-runtime/index.js +3 -3
  116. package/dist/src/unstable/cli-runtime/index.js.map +1 -1
  117. package/dist/src/unstable/cli-runtime/json-envelope.d.ts +50 -11
  118. package/dist/src/unstable/cli-runtime/json-envelope.d.ts.map +1 -1
  119. package/dist/src/unstable/cli-runtime/json-envelope.js +57 -15
  120. package/dist/src/unstable/cli-runtime/json-envelope.js.map +1 -1
  121. package/dist/src/unstable/cli-runtime/output-mode.d.ts +9 -8
  122. package/dist/src/unstable/cli-runtime/output-mode.d.ts.map +1 -1
  123. package/dist/src/unstable/cli-runtime/output-mode.js +11 -7
  124. package/dist/src/unstable/cli-runtime/output-mode.js.map +1 -1
  125. package/dist/src/unstable/cli-runtime/runtime-envelope.d.ts.map +1 -1
  126. package/dist/src/unstable/cli-runtime/runtime-envelope.js +52 -5
  127. package/dist/src/unstable/cli-runtime/runtime-envelope.js.map +1 -1
  128. package/dist/src/unstable/cli-runtime/telemetry.d.ts +2 -1
  129. package/dist/src/unstable/cli-runtime/telemetry.d.ts.map +1 -1
  130. package/dist/src/unstable/cli-runtime/telemetry.js +4 -4
  131. package/dist/src/unstable/cli-runtime/telemetry.js.map +1 -1
  132. package/dist/src/unstable/commands/command-argument.d.ts +2 -2
  133. package/dist/src/unstable/commands/command-argument.js +2 -2
  134. package/dist/src/unstable/commands/command-content.d.ts +11 -24
  135. package/dist/src/unstable/commands/command-content.d.ts.map +1 -1
  136. package/dist/src/unstable/commands/command-content.js +34 -36
  137. package/dist/src/unstable/commands/command-content.js.map +1 -1
  138. package/dist/src/unstable/commands/index.d.ts +2 -1
  139. package/dist/src/unstable/commands/index.d.ts.map +1 -1
  140. package/dist/src/unstable/commands/index.js +1 -0
  141. package/dist/src/unstable/commands/index.js.map +1 -1
  142. package/dist/src/unstable/commands/manager.d.ts +3 -2
  143. package/dist/src/unstable/commands/manager.d.ts.map +1 -1
  144. package/dist/src/unstable/commands/manager.js +62 -40
  145. package/dist/src/unstable/commands/manager.js.map +1 -1
  146. package/dist/src/unstable/commands/manifest-schema.d.ts +0 -1
  147. package/dist/src/unstable/commands/manifest-schema.d.ts.map +1 -1
  148. package/dist/src/unstable/commands/manifest-schema.js +0 -1
  149. package/dist/src/unstable/commands/manifest-schema.js.map +1 -1
  150. package/dist/src/unstable/commands/operations/disable.js +2 -2
  151. package/dist/src/unstable/commands/operations/disable.js.map +1 -1
  152. package/dist/src/unstable/commands/operations/enable.d.ts +1 -1
  153. package/dist/src/unstable/commands/operations/enable.d.ts.map +1 -1
  154. package/dist/src/unstable/commands/operations/enable.js +21 -11
  155. package/dist/src/unstable/commands/operations/enable.js.map +1 -1
  156. package/dist/src/unstable/commands/operations/install.d.ts +4 -4
  157. package/dist/src/unstable/commands/operations/install.d.ts.map +1 -1
  158. package/dist/src/unstable/commands/operations/install.js +37 -36
  159. package/dist/src/unstable/commands/operations/install.js.map +1 -1
  160. package/dist/src/unstable/commands/operations/new-command.d.ts +8 -3
  161. package/dist/src/unstable/commands/operations/new-command.d.ts.map +1 -1
  162. package/dist/src/unstable/commands/operations/new-command.js +67 -18
  163. package/dist/src/unstable/commands/operations/new-command.js.map +1 -1
  164. package/dist/src/unstable/commands/operations/publish.d.ts.map +1 -1
  165. package/dist/src/unstable/commands/operations/publish.js +23 -15
  166. package/dist/src/unstable/commands/operations/publish.js.map +1 -1
  167. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts +10 -14
  168. package/dist/src/unstable/commands/operations/shared-command-helpers.d.ts.map +1 -1
  169. package/dist/src/unstable/commands/operations/shared-command-helpers.js +27 -37
  170. package/dist/src/unstable/commands/operations/shared-command-helpers.js.map +1 -1
  171. package/dist/src/unstable/commands/operations/uninstall.js +2 -2
  172. package/dist/src/unstable/commands/operations/uninstall.js.map +1 -1
  173. package/dist/src/unstable/commands/paths.d.ts +64 -0
  174. package/dist/src/unstable/commands/paths.d.ts.map +1 -0
  175. package/dist/src/unstable/commands/paths.js +41 -0
  176. package/dist/src/unstable/commands/paths.js.map +1 -0
  177. package/dist/src/unstable/commands/reconciliation-adapter.d.ts.map +1 -1
  178. package/dist/src/unstable/commands/reconciliation-adapter.js +4 -5
  179. package/dist/src/unstable/commands/reconciliation-adapter.js.map +1 -1
  180. package/dist/src/unstable/commands/renderers/index.d.ts +6 -5
  181. package/dist/src/unstable/commands/renderers/index.d.ts.map +1 -1
  182. package/dist/src/unstable/commands/renderers/index.js +3 -2
  183. package/dist/src/unstable/commands/renderers/index.js.map +1 -1
  184. package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts +2 -2
  185. package/dist/src/unstable/commands/renderers/render-markdown-only.d.ts.map +1 -1
  186. package/dist/src/unstable/commands/renderers/render-markdown-only.js +3 -28
  187. package/dist/src/unstable/commands/renderers/render-markdown-only.js.map +1 -1
  188. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.d.ts +2 -2
  189. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.d.ts.map +1 -1
  190. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js +5 -42
  191. package/dist/src/unstable/commands/renderers/render-markdown-with-frontmatter.js.map +1 -1
  192. package/dist/src/unstable/commands/renderers/render-plain-text.d.ts +2 -2
  193. package/dist/src/unstable/commands/renderers/render-plain-text.d.ts.map +1 -1
  194. package/dist/src/unstable/commands/renderers/render-plain-text.js +8 -31
  195. package/dist/src/unstable/commands/renderers/render-plain-text.js.map +1 -1
  196. package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts +2 -2
  197. package/dist/src/unstable/commands/renderers/render-prompt-md.d.ts.map +1 -1
  198. package/dist/src/unstable/commands/renderers/render-prompt-md.js +5 -33
  199. package/dist/src/unstable/commands/renderers/render-prompt-md.js.map +1 -1
  200. package/dist/src/unstable/commands/renderers/render-toml.d.ts +4 -5
  201. package/dist/src/unstable/commands/renderers/render-toml.d.ts.map +1 -1
  202. package/dist/src/unstable/commands/renderers/render-toml.js +36 -51
  203. package/dist/src/unstable/commands/renderers/render-toml.js.map +1 -1
  204. package/dist/src/unstable/commands/renderers/types.d.ts +45 -39
  205. package/dist/src/unstable/commands/renderers/types.d.ts.map +1 -1
  206. package/dist/src/unstable/commands/renderers/types.js +19 -1
  207. package/dist/src/unstable/commands/renderers/types.js.map +1 -1
  208. package/dist/src/unstable/extensions/agent-overrides.d.ts +45 -0
  209. package/dist/src/unstable/extensions/agent-overrides.d.ts.map +1 -0
  210. package/dist/src/unstable/extensions/agent-overrides.js +66 -0
  211. package/dist/src/unstable/extensions/agent-overrides.js.map +1 -0
  212. package/dist/src/unstable/extensions/common.js +2 -2
  213. package/dist/src/unstable/extensions/common.js.map +1 -1
  214. package/dist/src/unstable/extensions/fqn.d.ts +1 -1
  215. package/dist/src/unstable/extensions/fqn.d.ts.map +1 -1
  216. package/dist/src/unstable/extensions/fqn.js +8 -4
  217. package/dist/src/unstable/extensions/fqn.js.map +1 -1
  218. package/dist/src/unstable/extensions/frontmatter.d.ts.map +1 -1
  219. package/dist/src/unstable/extensions/frontmatter.js +8 -4
  220. package/dist/src/unstable/extensions/frontmatter.js.map +1 -1
  221. package/dist/src/unstable/extensions/index.d.ts +2 -0
  222. package/dist/src/unstable/extensions/index.d.ts.map +1 -1
  223. package/dist/src/unstable/extensions/index.js +2 -0
  224. package/dist/src/unstable/extensions/index.js.map +1 -1
  225. package/dist/src/unstable/extensions/materializable-from-disk.d.ts +24 -0
  226. package/dist/src/unstable/extensions/materializable-from-disk.d.ts.map +1 -0
  227. package/dist/src/unstable/extensions/materializable-from-disk.js +235 -0
  228. package/dist/src/unstable/extensions/materializable-from-disk.js.map +1 -0
  229. package/dist/src/unstable/extensions/reconciliation-utils.js +2 -2
  230. package/dist/src/unstable/extensions/reconciliation-utils.js.map +1 -1
  231. package/dist/src/unstable/extensions/ref-base.d.ts +1 -1
  232. package/dist/src/unstable/extensions/ref-base.d.ts.map +1 -1
  233. package/dist/src/unstable/extensions/utils.d.ts +1 -1
  234. package/dist/src/unstable/extensions/utils.d.ts.map +1 -1
  235. package/dist/src/unstable/extensions/utils.js +3 -3
  236. package/dist/src/unstable/extensions/utils.js.map +1 -1
  237. package/dist/src/unstable/git/operations.d.ts.map +1 -1
  238. package/dist/src/unstable/git/operations.js +2 -8
  239. package/dist/src/unstable/git/operations.js.map +1 -1
  240. package/dist/src/unstable/install-meta/install-meta.d.ts +1 -1
  241. package/dist/src/unstable/install-meta/install-meta.js +1 -1
  242. package/dist/src/unstable/install-meta/install-meta.js.map +1 -1
  243. package/dist/src/unstable/install-method/install-method.d.ts +1 -1
  244. package/dist/src/unstable/install-method/install-method.js +1 -1
  245. package/dist/src/unstable/install-method/install-method.js.map +1 -1
  246. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.d.ts +4 -0
  247. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.d.ts.map +1 -0
  248. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.js +78 -0
  249. package/dist/src/unstable/lint/catalog/workspace/configured-but-not-installed.js.map +1 -0
  250. package/dist/src/unstable/lint/catalog/workspace.d.ts.map +1 -1
  251. package/dist/src/unstable/lint/catalog/workspace.js +2 -0
  252. package/dist/src/unstable/lint/catalog/workspace.js.map +1 -1
  253. package/dist/src/unstable/lockfile/lockfile.js +10 -10
  254. package/dist/src/unstable/lockfile/lockfile.js.map +1 -1
  255. package/dist/src/unstable/lockfile/resolved-version.js +7 -7
  256. package/dist/src/unstable/lockfile/resolved-version.js.map +1 -1
  257. package/dist/src/unstable/mcp-servers/manager.d.ts +1 -1
  258. package/dist/src/unstable/mcp-servers/manager.d.ts.map +1 -1
  259. package/dist/src/unstable/mcp-servers/manager.js +18 -23
  260. package/dist/src/unstable/mcp-servers/manager.js.map +1 -1
  261. package/dist/src/unstable/mcp-servers/operations/install.d.ts.map +1 -1
  262. package/dist/src/unstable/mcp-servers/operations/install.js +23 -31
  263. package/dist/src/unstable/mcp-servers/operations/install.js.map +1 -1
  264. package/dist/src/unstable/mcp-servers/operations/publish.d.ts.map +1 -1
  265. package/dist/src/unstable/mcp-servers/operations/publish.js +14 -15
  266. package/dist/src/unstable/mcp-servers/operations/publish.js.map +1 -1
  267. package/dist/src/unstable/mcp-servers/operations/uninstall.d.ts.map +1 -1
  268. package/dist/src/unstable/mcp-servers/operations/uninstall.js +10 -17
  269. package/dist/src/unstable/mcp-servers/operations/uninstall.js.map +1 -1
  270. package/dist/src/unstable/mcp-servers/reconciliation-adapter.js +2 -2
  271. package/dist/src/unstable/mcp-servers/reconciliation-adapter.js.map +1 -1
  272. package/dist/src/unstable/packs/dependency-resolution.d.ts.map +1 -1
  273. package/dist/src/unstable/packs/dependency-resolution.js +6 -7
  274. package/dist/src/unstable/packs/dependency-resolution.js.map +1 -1
  275. package/dist/src/unstable/packs/expansion.js +3 -3
  276. package/dist/src/unstable/packs/expansion.js.map +1 -1
  277. package/dist/src/unstable/packs/manager.d.ts +1 -1
  278. package/dist/src/unstable/packs/manager.d.ts.map +1 -1
  279. package/dist/src/unstable/packs/manager.js +8 -10
  280. package/dist/src/unstable/packs/manager.js.map +1 -1
  281. package/dist/src/unstable/packs/operations/add-to-pack.d.ts.map +1 -1
  282. package/dist/src/unstable/packs/operations/add-to-pack.js +16 -12
  283. package/dist/src/unstable/packs/operations/add-to-pack.js.map +1 -1
  284. package/dist/src/unstable/packs/operations/install.d.ts.map +1 -1
  285. package/dist/src/unstable/packs/operations/install.js +19 -15
  286. package/dist/src/unstable/packs/operations/install.js.map +1 -1
  287. package/dist/src/unstable/packs/operations/new-pack.d.ts.map +1 -1
  288. package/dist/src/unstable/packs/operations/new-pack.js +14 -9
  289. package/dist/src/unstable/packs/operations/new-pack.js.map +1 -1
  290. package/dist/src/unstable/packs/operations/publish.d.ts.map +1 -1
  291. package/dist/src/unstable/packs/operations/publish.js +14 -15
  292. package/dist/src/unstable/packs/operations/publish.js.map +1 -1
  293. package/dist/src/unstable/packs/operations/remove-from-pack.d.ts.map +1 -1
  294. package/dist/src/unstable/packs/operations/remove-from-pack.js +16 -12
  295. package/dist/src/unstable/packs/operations/remove-from-pack.js.map +1 -1
  296. package/dist/src/unstable/packs/operations/uninstall.js +3 -3
  297. package/dist/src/unstable/packs/operations/uninstall.js.map +1 -1
  298. package/dist/src/unstable/packs/operations/unpack.d.ts.map +1 -1
  299. package/dist/src/unstable/packs/operations/unpack.js +10 -5
  300. package/dist/src/unstable/packs/operations/unpack.js.map +1 -1
  301. package/dist/src/unstable/plan/apply-plan.d.ts.map +1 -1
  302. package/dist/src/unstable/plan/apply-plan.js +5 -6
  303. package/dist/src/unstable/plan/apply-plan.js.map +1 -1
  304. package/dist/src/unstable/plan/resolve-plan.d.ts.map +1 -1
  305. package/dist/src/unstable/plan/resolve-plan.js +13 -9
  306. package/dist/src/unstable/plan/resolve-plan.js.map +1 -1
  307. package/dist/src/unstable/publish/manifest-policy.d.ts +9 -14
  308. package/dist/src/unstable/publish/manifest-policy.d.ts.map +1 -1
  309. package/dist/src/unstable/publish/manifest-policy.js +13 -0
  310. package/dist/src/unstable/publish/manifest-policy.js.map +1 -1
  311. package/dist/src/unstable/registry/__generated__/registry-client.d.ts +1271 -51
  312. package/dist/src/unstable/registry/__generated__/registry-client.d.ts.map +1 -1
  313. package/dist/src/unstable/registry/__generated__/registry-client.js +403 -47
  314. package/dist/src/unstable/registry/__generated__/registry-client.js.map +1 -1
  315. package/dist/src/unstable/registry/error-mapping.d.ts +7 -6
  316. package/dist/src/unstable/registry/error-mapping.d.ts.map +1 -1
  317. package/dist/src/unstable/registry/error-mapping.js +44 -31
  318. package/dist/src/unstable/registry/error-mapping.js.map +1 -1
  319. package/dist/src/unstable/registry/index.d.ts +1 -1
  320. package/dist/src/unstable/registry/index.d.ts.map +1 -1
  321. package/dist/src/unstable/registry/index.js +1 -1
  322. package/dist/src/unstable/registry/index.js.map +1 -1
  323. package/dist/src/unstable/registry/local-client.d.ts.map +1 -1
  324. package/dist/src/unstable/registry/local-client.js +44 -36
  325. package/dist/src/unstable/registry/local-client.js.map +1 -1
  326. package/dist/src/unstable/registry/remote-client.d.ts.map +1 -1
  327. package/dist/src/unstable/registry/remote-client.js +86 -103
  328. package/dist/src/unstable/registry/remote-client.js.map +1 -1
  329. package/dist/src/unstable/registry/utils.js +8 -8
  330. package/dist/src/unstable/registry/utils.js.map +1 -1
  331. package/dist/src/unstable/settings/ignored-patterns.d.ts.map +1 -1
  332. package/dist/src/unstable/settings/ignored-patterns.js +13 -7
  333. package/dist/src/unstable/settings/ignored-patterns.js.map +1 -1
  334. package/dist/src/unstable/settings/schema.d.ts +1 -1
  335. package/dist/src/unstable/settings/schema.js +1 -1
  336. package/dist/src/unstable/settings/settings.js +6 -6
  337. package/dist/src/unstable/settings/settings.js.map +1 -1
  338. package/dist/src/unstable/skills/index.d.ts +0 -2
  339. package/dist/src/unstable/skills/index.d.ts.map +1 -1
  340. package/dist/src/unstable/skills/index.js +0 -1
  341. package/dist/src/unstable/skills/index.js.map +1 -1
  342. package/dist/src/unstable/skills/manager.d.ts +1 -1
  343. package/dist/src/unstable/skills/manager.d.ts.map +1 -1
  344. package/dist/src/unstable/skills/manager.js +7 -14
  345. package/dist/src/unstable/skills/manager.js.map +1 -1
  346. package/dist/src/unstable/skills/manifest-schema.d.ts +0 -1
  347. package/dist/src/unstable/skills/manifest-schema.d.ts.map +1 -1
  348. package/dist/src/unstable/skills/manifest-schema.js +0 -1
  349. package/dist/src/unstable/skills/manifest-schema.js.map +1 -1
  350. package/dist/src/unstable/skills/materialization.d.ts.map +1 -1
  351. package/dist/src/unstable/skills/materialization.js +11 -12
  352. package/dist/src/unstable/skills/materialization.js.map +1 -1
  353. package/dist/src/unstable/skills/operations/copy.js +6 -6
  354. package/dist/src/unstable/skills/operations/copy.js.map +1 -1
  355. package/dist/src/unstable/skills/operations/disable.d.ts.map +1 -1
  356. package/dist/src/unstable/skills/operations/disable.js +7 -5
  357. package/dist/src/unstable/skills/operations/disable.js.map +1 -1
  358. package/dist/src/unstable/skills/operations/enable.d.ts.map +1 -1
  359. package/dist/src/unstable/skills/operations/enable.js +5 -3
  360. package/dist/src/unstable/skills/operations/enable.js.map +1 -1
  361. package/dist/src/unstable/skills/operations/install.d.ts.map +1 -1
  362. package/dist/src/unstable/skills/operations/install.js +19 -28
  363. package/dist/src/unstable/skills/operations/install.js.map +1 -1
  364. package/dist/src/unstable/skills/operations/new-skill.d.ts.map +1 -1
  365. package/dist/src/unstable/skills/operations/new-skill.js +14 -9
  366. package/dist/src/unstable/skills/operations/new-skill.js.map +1 -1
  367. package/dist/src/unstable/skills/operations/publish.d.ts.map +1 -1
  368. package/dist/src/unstable/skills/operations/publish.js +26 -24
  369. package/dist/src/unstable/skills/operations/publish.js.map +1 -1
  370. package/dist/src/unstable/skills/operations/uninstall.js +4 -4
  371. package/dist/src/unstable/skills/operations/uninstall.js.map +1 -1
  372. package/dist/src/unstable/source-resolution/index.d.ts +1 -0
  373. package/dist/src/unstable/source-resolution/index.d.ts.map +1 -1
  374. package/dist/src/unstable/source-resolution/index.js +1 -0
  375. package/dist/src/unstable/source-resolution/index.js.map +1 -1
  376. package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.d.ts.map +1 -1
  377. package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.js +4 -6
  378. package/dist/src/unstable/source-resolution/providers/azurerepos/repo-exists.js.map +1 -1
  379. package/dist/src/unstable/source-resolution/providers/azurerepos/scp.d.ts.map +1 -1
  380. package/dist/src/unstable/source-resolution/providers/azurerepos/scp.js +4 -6
  381. package/dist/src/unstable/source-resolution/providers/azurerepos/scp.js.map +1 -1
  382. package/dist/src/unstable/source-resolution/providers/azurerepos/url.d.ts.map +1 -1
  383. package/dist/src/unstable/source-resolution/providers/azurerepos/url.js +6 -9
  384. package/dist/src/unstable/source-resolution/providers/azurerepos/url.js.map +1 -1
  385. package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.d.ts.map +1 -1
  386. package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.js +3 -4
  387. package/dist/src/unstable/source-resolution/providers/bitbucket/resolve-repo.js.map +1 -1
  388. package/dist/src/unstable/source-resolution/providers/bitbucket/scp.d.ts.map +1 -1
  389. package/dist/src/unstable/source-resolution/providers/bitbucket/scp.js +4 -6
  390. package/dist/src/unstable/source-resolution/providers/bitbucket/scp.js.map +1 -1
  391. package/dist/src/unstable/source-resolution/providers/bitbucket/url.d.ts.map +1 -1
  392. package/dist/src/unstable/source-resolution/providers/bitbucket/url.js +6 -9
  393. package/dist/src/unstable/source-resolution/providers/bitbucket/url.js.map +1 -1
  394. package/dist/src/unstable/source-resolution/providers/git-hosting.d.ts.map +1 -1
  395. package/dist/src/unstable/source-resolution/providers/git-hosting.js +6 -8
  396. package/dist/src/unstable/source-resolution/providers/git-hosting.js.map +1 -1
  397. package/dist/src/unstable/source-resolution/providers/git.js +4 -4
  398. package/dist/src/unstable/source-resolution/providers/git.js.map +1 -1
  399. package/dist/src/unstable/source-resolution/providers/github/resolve-repo.d.ts.map +1 -1
  400. package/dist/src/unstable/source-resolution/providers/github/resolve-repo.js +3 -4
  401. package/dist/src/unstable/source-resolution/providers/github/resolve-repo.js.map +1 -1
  402. package/dist/src/unstable/source-resolution/providers/github/scp.d.ts.map +1 -1
  403. package/dist/src/unstable/source-resolution/providers/github/scp.js +4 -6
  404. package/dist/src/unstable/source-resolution/providers/github/scp.js.map +1 -1
  405. package/dist/src/unstable/source-resolution/providers/github/url.d.ts.map +1 -1
  406. package/dist/src/unstable/source-resolution/providers/github/url.js +6 -9
  407. package/dist/src/unstable/source-resolution/providers/github/url.js.map +1 -1
  408. package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.d.ts.map +1 -1
  409. package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.js +3 -4
  410. package/dist/src/unstable/source-resolution/providers/gitlab/resolve-repo.js.map +1 -1
  411. package/dist/src/unstable/source-resolution/providers/gitlab/scp.d.ts.map +1 -1
  412. package/dist/src/unstable/source-resolution/providers/gitlab/scp.js +4 -6
  413. package/dist/src/unstable/source-resolution/providers/gitlab/scp.js.map +1 -1
  414. package/dist/src/unstable/source-resolution/providers/gitlab/url.d.ts.map +1 -1
  415. package/dist/src/unstable/source-resolution/providers/gitlab/url.js +6 -9
  416. package/dist/src/unstable/source-resolution/providers/gitlab/url.js.map +1 -1
  417. package/dist/src/unstable/source-resolution/providers/local.d.ts.map +1 -1
  418. package/dist/src/unstable/source-resolution/providers/local.js +4 -5
  419. package/dist/src/unstable/source-resolution/providers/local.js.map +1 -1
  420. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.d.ts +1 -1
  421. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.d.ts.map +1 -1
  422. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.js +5 -7
  423. package/dist/src/unstable/source-resolution/providers/parse-provider-shorthand.js.map +1 -1
  424. package/dist/src/unstable/source-resolution/providers/registry/host-provider.d.ts.map +1 -1
  425. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js +6 -7
  426. package/dist/src/unstable/source-resolution/providers/registry/host-provider.js.map +1 -1
  427. package/dist/src/unstable/source-resolution/resolve-identifier.d.ts +61 -0
  428. package/dist/src/unstable/source-resolution/resolve-identifier.d.ts.map +1 -0
  429. package/dist/src/unstable/source-resolution/resolve-identifier.js +322 -0
  430. package/dist/src/unstable/source-resolution/resolve-identifier.js.map +1 -0
  431. package/dist/src/unstable/source-resolution/resolve-source-pattern.d.ts.map +1 -1
  432. package/dist/src/unstable/source-resolution/resolve-source-pattern.js +10 -6
  433. package/dist/src/unstable/source-resolution/resolve-source-pattern.js.map +1 -1
  434. package/dist/src/unstable/source-resolution/resolve-source.d.ts +2 -2
  435. package/dist/src/unstable/source-resolution/resolve-source.d.ts.map +1 -1
  436. package/dist/src/unstable/source-resolution/resolve-source.js +50 -73
  437. package/dist/src/unstable/source-resolution/resolve-source.js.map +1 -1
  438. package/dist/src/unstable/source-resolution/service.d.ts +1 -1
  439. package/dist/src/unstable/source-resolution/service.d.ts.map +1 -1
  440. package/dist/src/unstable/source-resolution/service.js +1 -1
  441. package/dist/src/unstable/source-resolution/service.js.map +1 -1
  442. package/dist/src/unstable/sources/lock-entry-to-ref.js +8 -8
  443. package/dist/src/unstable/sources/lock-entry-to-ref.js.map +1 -1
  444. package/dist/src/unstable/subagents/index.d.ts +3 -4
  445. package/dist/src/unstable/subagents/index.d.ts.map +1 -1
  446. package/dist/src/unstable/subagents/index.js +3 -5
  447. package/dist/src/unstable/subagents/index.js.map +1 -1
  448. package/dist/src/unstable/subagents/manager.d.ts +1 -1
  449. package/dist/src/unstable/subagents/manager.d.ts.map +1 -1
  450. package/dist/src/unstable/subagents/manager.js +51 -65
  451. package/dist/src/unstable/subagents/manager.js.map +1 -1
  452. package/dist/src/unstable/subagents/manifest-schema.d.ts +4 -7
  453. package/dist/src/unstable/subagents/manifest-schema.d.ts.map +1 -1
  454. package/dist/src/unstable/subagents/manifest-schema.js +5 -10
  455. package/dist/src/unstable/subagents/manifest-schema.js.map +1 -1
  456. package/dist/src/unstable/subagents/operations/disable.d.ts.map +1 -1
  457. package/dist/src/unstable/subagents/operations/disable.js +7 -5
  458. package/dist/src/unstable/subagents/operations/disable.js.map +1 -1
  459. package/dist/src/unstable/subagents/operations/enable.d.ts +1 -1
  460. package/dist/src/unstable/subagents/operations/enable.d.ts.map +1 -1
  461. package/dist/src/unstable/subagents/operations/enable.js +39 -16
  462. package/dist/src/unstable/subagents/operations/enable.js.map +1 -1
  463. package/dist/src/unstable/subagents/operations/publish.d.ts +1 -1
  464. package/dist/src/unstable/subagents/operations/publish.d.ts.map +1 -1
  465. package/dist/src/unstable/subagents/operations/publish.js +53 -52
  466. package/dist/src/unstable/subagents/operations/publish.js.map +1 -1
  467. package/dist/src/unstable/subagents/paths.d.ts +7 -1
  468. package/dist/src/unstable/subagents/paths.d.ts.map +1 -1
  469. package/dist/src/unstable/subagents/paths.js +7 -1
  470. package/dist/src/unstable/subagents/paths.js.map +1 -1
  471. package/dist/src/unstable/subagents/rendering/adapters/json.d.ts +2 -1
  472. package/dist/src/unstable/subagents/rendering/adapters/json.d.ts.map +1 -1
  473. package/dist/src/unstable/subagents/rendering/adapters/json.js +7 -39
  474. package/dist/src/unstable/subagents/rendering/adapters/json.js.map +1 -1
  475. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.d.ts +2 -1
  476. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.d.ts.map +1 -1
  477. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js +17 -101
  478. package/dist/src/unstable/subagents/rendering/adapters/markdown-yaml.js.map +1 -1
  479. package/dist/src/unstable/subagents/rendering/adapters/roo.d.ts +5 -1
  480. package/dist/src/unstable/subagents/rendering/adapters/roo.d.ts.map +1 -1
  481. package/dist/src/unstable/subagents/rendering/adapters/roo.js +18 -36
  482. package/dist/src/unstable/subagents/rendering/adapters/roo.js.map +1 -1
  483. package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts +3 -2
  484. package/dist/src/unstable/subagents/rendering/adapters/toml.d.ts.map +1 -1
  485. package/dist/src/unstable/subagents/rendering/adapters/toml.js +24 -54
  486. package/dist/src/unstable/subagents/rendering/adapters/toml.js.map +1 -1
  487. package/dist/src/unstable/subagents/rendering/index.d.ts +1 -4
  488. package/dist/src/unstable/subagents/rendering/index.d.ts.map +1 -1
  489. package/dist/src/unstable/subagents/rendering/index.js +1 -2
  490. package/dist/src/unstable/subagents/rendering/index.js.map +1 -1
  491. package/dist/src/unstable/subagents/rendering/overrides.d.ts +2 -0
  492. package/dist/src/unstable/subagents/rendering/overrides.d.ts.map +1 -0
  493. package/dist/src/unstable/subagents/rendering/overrides.js +2 -0
  494. package/dist/src/unstable/subagents/rendering/overrides.js.map +1 -0
  495. package/dist/src/unstable/subagents/rendering/types.d.ts +9 -16
  496. package/dist/src/unstable/subagents/rendering/types.d.ts.map +1 -1
  497. package/dist/src/unstable/subagents/rendering/types.js +3 -2
  498. package/dist/src/unstable/subagents/rendering/types.js.map +1 -1
  499. package/dist/src/unstable/subagents/subagent-content.d.ts +16 -56
  500. package/dist/src/unstable/subagents/subagent-content.d.ts.map +1 -1
  501. package/dist/src/unstable/subagents/subagent-content.js +69 -60
  502. package/dist/src/unstable/subagents/subagent-content.js.map +1 -1
  503. package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts +10 -10
  504. package/dist/src/unstable/telemetry/__generated__/telemetry-client.d.ts.map +1 -1
  505. package/dist/src/unstable/telemetry/__generated__/telemetry-client.js +8 -5
  506. package/dist/src/unstable/telemetry/__generated__/telemetry-client.js.map +1 -1
  507. package/dist/src/unstable/telemetry/client.d.ts +2 -2
  508. package/dist/src/unstable/telemetry/client.d.ts.map +1 -1
  509. package/dist/src/unstable/telemetry/client.js +5 -2
  510. package/dist/src/unstable/telemetry/client.js.map +1 -1
  511. package/dist/src/unstable/update-check/update-check.d.ts +1 -1
  512. package/dist/src/unstable/update-check/update-check.js +1 -1
  513. package/dist/src/unstable/update-check/update-check.js.map +1 -1
  514. package/dist/src/unstable/utils/build-zip-archive.d.ts.map +1 -1
  515. package/dist/src/unstable/utils/build-zip-archive.js +11 -6
  516. package/dist/src/unstable/utils/build-zip-archive.js.map +1 -1
  517. package/dist/src/unstable/utils/create-symlink.js +8 -8
  518. package/dist/src/unstable/utils/create-symlink.js.map +1 -1
  519. package/dist/src/unstable/version-resolution/version-resolution.d.ts.map +1 -1
  520. package/dist/src/unstable/version-resolution/version-resolution.js +38 -21
  521. package/dist/src/unstable/version-resolution/version-resolution.js.map +1 -1
  522. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.d.ts.map +1 -1
  523. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js +101 -67
  524. package/dist/src/unstable/workspace/configured-entry-resolution/resolve.js.map +1 -1
  525. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.d.ts +1 -1
  526. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.d.ts.map +1 -1
  527. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.js +3 -4
  528. package/dist/src/unstable/workspace/configured-entry-resolution/timeout.js.map +1 -1
  529. package/dist/src/unstable/workspace/configured-entry-resolution/types.d.ts.map +1 -1
  530. package/dist/src/unstable/workspace/configured-entry-resolution/types.js +5 -8
  531. package/dist/src/unstable/workspace/configured-entry-resolution/types.js.map +1 -1
  532. package/dist/src/unstable/workspace/index.d.ts +1 -0
  533. package/dist/src/unstable/workspace/index.d.ts.map +1 -1
  534. package/dist/src/unstable/workspace/index.js +1 -0
  535. package/dist/src/unstable/workspace/index.js.map +1 -1
  536. package/dist/src/unstable/workspace/initialization-interaction.d.ts +1 -1
  537. package/dist/src/unstable/workspace/initialization-interaction.d.ts.map +1 -1
  538. package/dist/src/unstable/workspace/initialization-interaction.js +1 -1
  539. package/dist/src/unstable/workspace/initialization-interaction.js.map +1 -1
  540. package/dist/src/unstable/workspace/initialization.d.ts +24 -24
  541. package/dist/src/unstable/workspace/initialization.d.ts.map +1 -1
  542. package/dist/src/unstable/workspace/initialization.js +13 -11
  543. package/dist/src/unstable/workspace/initialization.js.map +1 -1
  544. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.d.ts.map +1 -1
  545. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js +8 -9
  546. package/dist/src/unstable/workspace/read-model/__fixtures__/occurrences.js.map +1 -1
  547. package/dist/src/unstable/workspace/read-model/agent-root-resolver.d.ts +1 -1
  548. package/dist/src/unstable/workspace/read-model/agent-root-resolver.d.ts.map +1 -1
  549. package/dist/src/unstable/workspace/read-model/agent-root-resolver.js +1 -1
  550. package/dist/src/unstable/workspace/read-model/agent-root-resolver.js.map +1 -1
  551. package/dist/src/unstable/workspace/read-model/discovery/skills.js +4 -4
  552. package/dist/src/unstable/workspace/read-model/discovery/skills.js.map +1 -1
  553. package/dist/src/unstable/workspace/read-model/discovery/subagents.js +2 -2
  554. package/dist/src/unstable/workspace/read-model/discovery/subagents.js.map +1 -1
  555. package/dist/src/unstable/workspace/read-model/extensions/subagent.js +1 -1
  556. package/dist/src/unstable/workspace/read-model/extensions/subagent.js.map +1 -1
  557. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js +11 -7
  558. package/dist/src/unstable/workspace/read-model/scanners/agent-dir.js.map +1 -1
  559. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js +12 -8
  560. package/dist/src/unstable/workspace/read-model/scanners/canonical-extensions.js.map +1 -1
  561. package/dist/src/unstable/workspace/read-model/scanners/types.d.ts +2 -2
  562. package/dist/src/unstable/workspace/read-model/service.d.ts +1 -1
  563. package/dist/src/unstable/workspace/read-model/service.d.ts.map +1 -1
  564. package/dist/src/unstable/workspace/read-model/service.js +1 -1
  565. package/dist/src/unstable/workspace/read-model/service.js.map +1 -1
  566. package/dist/src/unstable/workspace/reconciliation.d.ts +1 -1
  567. package/dist/src/unstable/workspace/reconciliation.d.ts.map +1 -1
  568. package/dist/src/unstable/workspace/reconciliation.js +13 -15
  569. package/dist/src/unstable/workspace/reconciliation.js.map +1 -1
  570. package/dist/src/unstable/workspace/rendered-file-cleanup.d.ts +15 -0
  571. package/dist/src/unstable/workspace/rendered-file-cleanup.d.ts.map +1 -0
  572. package/dist/src/unstable/workspace/rendered-file-cleanup.js +58 -0
  573. package/dist/src/unstable/workspace/rendered-file-cleanup.js.map +1 -0
  574. package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts +1 -1
  575. package/dist/src/unstable/workspace/resolve-plan-interaction.d.ts.map +1 -1
  576. package/dist/src/unstable/workspace/resolve-plan-interaction.js +1 -1
  577. package/dist/src/unstable/workspace/resolve-plan-interaction.js.map +1 -1
  578. package/dist/src/unstable/workspace/service-interface.d.ts +1 -3
  579. package/dist/src/unstable/workspace/service-interface.d.ts.map +1 -1
  580. package/dist/src/unstable/workspace/service-interface.js +1 -1
  581. package/dist/src/unstable/workspace/service-interface.js.map +1 -1
  582. package/dist/src/unstable/workspace/service.d.ts +46 -47
  583. package/dist/src/unstable/workspace/service.d.ts.map +1 -1
  584. package/dist/src/unstable/workspace/service.js +24 -43
  585. package/dist/src/unstable/workspace/service.js.map +1 -1
  586. package/dist/src/unstable/workspace/skill-snapshot.js +1 -1
  587. package/dist/src/unstable/workspace/skill-snapshot.js.map +1 -1
  588. package/dist/src/unstable/workspace/test-stubs.d.ts.map +1 -1
  589. package/dist/src/unstable/workspace/test-stubs.js +0 -1
  590. package/dist/src/unstable/workspace/test-stubs.js.map +1 -1
  591. package/package.json +11 -11
  592. package/site-content/__generated__/schemas/command.schema.json +0 -6
  593. package/site-content/__generated__/schemas/skill.schema.json +1 -7
  594. package/dist/src/unstable/cli-runtime/command-document.d.ts +0 -12
  595. package/dist/src/unstable/cli-runtime/command-document.d.ts.map +0 -1
  596. package/dist/src/unstable/cli-runtime/command-document.js +0 -13
  597. package/dist/src/unstable/cli-runtime/command-document.js.map +0 -1
  598. package/dist/src/unstable/skills/operations/rename.d.ts +0 -34
  599. package/dist/src/unstable/skills/operations/rename.d.ts.map +0 -1
  600. package/dist/src/unstable/skills/operations/rename.js +0 -117
  601. package/dist/src/unstable/skills/operations/rename.js.map +0 -1
  602. package/dist/src/unstable/subagents/rendering/model-mapping.d.ts +0 -31
  603. package/dist/src/unstable/subagents/rendering/model-mapping.d.ts.map +0 -1
  604. package/dist/src/unstable/subagents/rendering/model-mapping.js +0 -127
  605. package/dist/src/unstable/subagents/rendering/model-mapping.js.map +0 -1
  606. package/dist/src/unstable/subagents/rendering/tool-access-mapping.d.ts +0 -31
  607. package/dist/src/unstable/subagents/rendering/tool-access-mapping.d.ts.map +0 -1
  608. package/dist/src/unstable/subagents/rendering/tool-access-mapping.js +0 -169
  609. package/dist/src/unstable/subagents/rendering/tool-access-mapping.js.map +0 -1
  610. package/dist/src/unstable/subagents/tool-access.d.ts +0 -11
  611. package/dist/src/unstable/subagents/tool-access.d.ts.map +0 -1
  612. package/dist/src/unstable/subagents/tool-access.js +0 -15
  613. package/dist/src/unstable/subagents/tool-access.js.map +0 -1
@@ -1,22 +1,61 @@
1
1
  import * as Schema from "effect/Schema";
2
- import type { AppError } from "../app-error/index.js";
3
- export declare const JsonSchemaVersion = 1;
4
- export declare const JsonSchemaVersionSchema: Schema.Literal<1>;
2
+ import { type AppError, type AppErrorCode } from "../app-error/index.js";
3
+ import { type Breadcrumb } from "./breadcrumb.js";
5
4
  export declare const JsonErrorEnvelopeSchema: Schema.Struct<{
6
- readonly _version: Schema.Literal<1>;
7
- readonly type: Schema.Literal<"error">;
8
- readonly code: Schema.String;
5
+ readonly ok: Schema.Literal<false>;
6
+ readonly code: Schema.Literals<readonly AppErrorCode[]>;
9
7
  readonly message: Schema.String;
10
- readonly details: Schema.optional<Schema.$Array<Schema.String>>;
11
- readonly howToFix: Schema.optional<Schema.String>;
8
+ readonly breadcrumbs: Schema.optional<Schema.$Array<Schema.Struct<{
9
+ readonly task: Schema.String;
10
+ readonly description: Schema.String;
11
+ readonly command: Schema.optional<Schema.$Array<Schema.String>>;
12
+ readonly cmd: Schema.optional<Schema.String>;
13
+ }>>>;
12
14
  readonly exitCode: Schema.Number;
13
15
  }>;
14
16
  export type JsonErrorEnvelope = typeof JsonErrorEnvelopeSchema.Type;
17
+ export declare const JsonSuccessEnvelopeSchema: Schema.StructWithRest<Schema.Struct<{
18
+ readonly ok: Schema.Literal<true>;
19
+ readonly summary: Schema.optional<Schema.String>;
20
+ readonly breadcrumbs: Schema.optional<Schema.$Array<Schema.Struct<{
21
+ readonly task: Schema.String;
22
+ readonly description: Schema.String;
23
+ readonly command: Schema.optional<Schema.$Array<Schema.String>>;
24
+ readonly cmd: Schema.optional<Schema.String>;
25
+ }>>>;
26
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>;
27
+ export type JsonSuccessEnvelope = typeof JsonSuccessEnvelopeSchema.Type;
28
+ export declare const JsonEnvelopeSchema: Schema.Union<readonly [Schema.StructWithRest<Schema.Struct<{
29
+ readonly ok: Schema.Literal<true>;
30
+ readonly summary: Schema.optional<Schema.String>;
31
+ readonly breadcrumbs: Schema.optional<Schema.$Array<Schema.Struct<{
32
+ readonly task: Schema.String;
33
+ readonly description: Schema.String;
34
+ readonly command: Schema.optional<Schema.$Array<Schema.String>>;
35
+ readonly cmd: Schema.optional<Schema.String>;
36
+ }>>>;
37
+ }>, readonly [Schema.$Record<Schema.String, Schema.Unknown>]>, Schema.Struct<{
38
+ readonly ok: Schema.Literal<false>;
39
+ readonly code: Schema.Literals<readonly AppErrorCode[]>;
40
+ readonly message: Schema.String;
41
+ readonly breadcrumbs: Schema.optional<Schema.$Array<Schema.Struct<{
42
+ readonly task: Schema.String;
43
+ readonly description: Schema.String;
44
+ readonly command: Schema.optional<Schema.$Array<Schema.String>>;
45
+ readonly cmd: Schema.optional<Schema.String>;
46
+ }>>>;
47
+ readonly exitCode: Schema.Number;
48
+ }>]>;
49
+ export type JsonEnvelope = typeof JsonEnvelopeSchema.Type;
50
+ export declare const makeJsonSuccessEnvelope: (args?: {
51
+ readonly payload?: unknown;
52
+ readonly summary?: string;
53
+ readonly breadcrumbs?: ReadonlyArray<Breadcrumb>;
54
+ }) => JsonSuccessEnvelope;
15
55
  export declare const makeJsonErrorEnvelope: (args: {
16
- readonly code: string;
56
+ readonly code: AppErrorCode;
17
57
  readonly message: string;
18
- readonly details?: ReadonlyArray<string>;
19
- readonly howToFix?: string;
58
+ readonly breadcrumbs?: ReadonlyArray<Breadcrumb>;
20
59
  readonly exitCode: number;
21
60
  }) => JsonErrorEnvelope;
22
61
  export declare const makeJsonErrorEnvelopeFromAppError: (error: AppError, exitCode: number) => JsonErrorEnvelope;
@@ -1 +1 @@
1
- {"version":3,"file":"json-envelope.d.ts","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/json-envelope.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEtD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,eAAO,MAAM,uBAAuB,mBAAoC,CAAC;AAEzE,eAAO,MAAM,uBAAuB;;;;;;;;EAYlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,uBAAuB,CAAC,IAAI,CAAC;AAEpE,eAAO,MAAM,qBAAqB,GAAI,MAAM;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,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CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IACjD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,KAAG,iBAQF,CAAC;AAEH,eAAO,MAAM,iCAAiC,GAC5C,OAAO,QAAQ,EACf,UAAU,MAAM,KACf,iBAMC,CAAC"}
@@ -1,34 +1,76 @@
1
- import * as Option from "effect/Option";
2
1
  import * as Schema from "effect/Schema";
3
- export const JsonSchemaVersion = 1;
4
- export const JsonSchemaVersionSchema = Schema.Literal(JsonSchemaVersion);
2
+ import { AppErrorCodes } from "../app-error/index.js";
3
+ import { BreadcrumbSchema } from "./breadcrumb.js";
4
+ const ReservedSuccessEnvelopeKeys = new Set(["ok", "summary", "breadcrumbs"]);
5
5
  export const JsonErrorEnvelopeSchema = Schema.Struct({
6
- _version: JsonSchemaVersionSchema,
7
- type: Schema.Literal("error"),
8
- code: Schema.String,
6
+ ok: Schema.Literal(false),
7
+ code: Schema.Literals(AppErrorCodes),
9
8
  message: Schema.String,
10
- details: Schema.optional(Schema.Array(Schema.String)),
11
- howToFix: Schema.optional(Schema.String),
9
+ breadcrumbs: Schema.optional(Schema.Array(BreadcrumbSchema)),
12
10
  exitCode: Schema.Number,
13
11
  }).annotate({
14
12
  identifier: "JsonErrorEnvelope",
15
13
  title: "JSON Error Envelope",
16
14
  description: "Structured JSON error envelope for machine-readable CLI error output.",
17
15
  });
16
+ export const JsonSuccessEnvelopeSchema = Schema.StructWithRest(Schema.Struct({
17
+ ok: Schema.Literal(true),
18
+ summary: Schema.optional(Schema.String),
19
+ breadcrumbs: Schema.optional(Schema.Array(BreadcrumbSchema)),
20
+ }), [Schema.Record(Schema.String, Schema.Unknown)]).annotate({
21
+ identifier: "JsonSuccessEnvelope",
22
+ title: "JSON Success Envelope",
23
+ description: "Structured JSON success envelope for machine-readable CLI output.",
24
+ });
25
+ export const JsonEnvelopeSchema = Schema.Union([
26
+ JsonSuccessEnvelopeSchema,
27
+ JsonErrorEnvelopeSchema,
28
+ ]).annotate({
29
+ identifier: "JsonEnvelope",
30
+ title: "JSON Envelope",
31
+ description: "Structured JSON success or error envelope for machine-readable CLI output.",
32
+ });
33
+ const ensurePayloadObject = (payload) => {
34
+ if (payload === undefined) {
35
+ return {};
36
+ }
37
+ if (typeof payload !== "object" || payload === null || Array.isArray(payload)) {
38
+ return { value: payload };
39
+ }
40
+ return Object.fromEntries(Object.entries(payload));
41
+ };
42
+ const ensureNoReservedPayloadKeys = (payload) => {
43
+ for (const key of Object.keys(payload)) {
44
+ if (ReservedSuccessEnvelopeKeys.has(key)) {
45
+ throw new Error(`JSON success payload cannot include reserved key: ${key}`);
46
+ }
47
+ }
48
+ };
49
+ export const makeJsonSuccessEnvelope = (args) => ({
50
+ ok: true,
51
+ ...(() => {
52
+ const payload = ensurePayloadObject(args?.payload);
53
+ ensureNoReservedPayloadKeys(payload);
54
+ return payload;
55
+ })(),
56
+ ...(args?.summary !== undefined ? { summary: args.summary } : {}),
57
+ ...(args?.breadcrumbs !== undefined && args.breadcrumbs.length > 0
58
+ ? { breadcrumbs: [...args.breadcrumbs] }
59
+ : {}),
60
+ });
18
61
  export const makeJsonErrorEnvelope = (args) => ({
19
- _version: JsonSchemaVersion,
20
- type: "error",
62
+ ok: false,
21
63
  code: args.code,
22
64
  message: args.message,
23
- ...(args.details !== undefined && args.details.length > 0 ? { details: [...args.details] } : {}),
24
- ...(args.howToFix !== undefined ? { howToFix: args.howToFix } : {}),
65
+ ...(args.breadcrumbs !== undefined && args.breadcrumbs.length > 0
66
+ ? { breadcrumbs: [...args.breadcrumbs] }
67
+ : {}),
25
68
  exitCode: args.exitCode,
26
69
  });
27
70
  export const makeJsonErrorEnvelopeFromAppError = (error, exitCode) => makeJsonErrorEnvelope({
28
71
  code: error.code,
29
- message: error.what,
30
- details: error.details,
31
- ...(Option.isSome(error.howToFix) ? { howToFix: error.howToFix.value } : {}),
72
+ message: error.message,
73
+ breadcrumbs: error.breadcrumbs ?? [],
32
74
  exitCode,
33
75
  });
34
76
  //# sourceMappingURL=json-envelope.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json-envelope.js","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/json-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAEnC,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,CAAC;IACnD,QAAQ,EAAE,uBAAuB;IACjC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC,MAAM;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM;IACtB,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IACrD,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM;CACxB,CAAC,CAAC,QAAQ,CAAC;IACV,UAAU,EAAE,mBAAmB;IAC/B,KAAK,EAAE,qBAAqB;IAC5B,WAAW,EAAE,uEAAuE;CACrF,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAMrC,EAAqB,EAAE,CAAC,CAAC;IACxB,QAAQ,EAAE,iBAAiB;IAC3B,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,IAAI,CAAC,IAAI;IACf,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,GAAG,CAAC,IAAI,CAAC,OAAO,KAAK,SAAS,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC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IACT,IAAI,EAAE,IAAI,CAAC,IAAI;IACf,OAAO,EAAE,IAAI,CAAC,OAAO;IACrB,GAAG,CAAC,IAAI,CAAC,WAAW,KAAK,SAAS,IAAI,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;QAC/D,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,WAAW,CAAC,EAAE;QACxC,CAAC,CAAC,EAAE,CAAC;IACP,QAAQ,EAAE,IAAI,CAAC,QAAQ;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAC/C,KAAe,EACf,QAAgB,EACG,EAAE,CACrB,qBAAqB,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC,IAAI;IAChB,OAAO,EAAE,KAAK,CAAC,OAAO;IACtB,WAAW,EAAE,KAAK,CAAC,WAAW,IAAI,EAAE;IACpC,QAAQ;CACT,CAAC,CAAC"}
@@ -1,8 +1,6 @@
1
1
  import * as Schema from "effect/Schema";
2
- import { JsonSchemaVersion } from "./json-envelope.js";
3
2
  export type OutputFormat = "text" | "json";
4
3
  export declare const ProgressEventSchema: Schema.Struct<{
5
- readonly _version: Schema.Literal<1>;
6
4
  readonly type: Schema.Literal<"progress">;
7
5
  readonly phase: Schema.String;
8
6
  readonly percent: Schema.Number;
@@ -10,23 +8,26 @@ export declare const ProgressEventSchema: Schema.Struct<{
10
8
  }>;
11
9
  export type ProgressEvent = typeof ProgressEventSchema.Type;
12
10
  export declare const LogEventSchema: Schema.Struct<{
13
- readonly _version: Schema.Literal<1>;
14
11
  readonly type: Schema.Literal<"log">;
15
12
  readonly level: Schema.Literals<readonly ["info", "warn", "error"]>;
16
13
  readonly message: Schema.String;
17
14
  }>;
18
15
  export type LogEvent = typeof LogEventSchema.Type;
19
16
  export declare const ErrorEventSchema: Schema.Struct<{
20
- readonly _version: Schema.Literal<1>;
21
17
  readonly type: Schema.Literal<"error">;
22
18
  readonly code: Schema.String;
23
19
  readonly message: Schema.String;
24
- readonly details: Schema.optional<Schema.$Array<Schema.String>>;
25
- readonly howToFix: Schema.optional<Schema.String>;
26
20
  readonly exitCode: Schema.optional<Schema.Number>;
27
21
  }>;
28
22
  export type ErrorEvent = typeof ErrorEventSchema.Type;
29
- export type StreamEvent = ProgressEvent | LogEvent | ErrorEvent;
23
+ export declare const BreadcrumbEventSchema: Schema.Struct<{
24
+ readonly type: Schema.Literal<"breadcrumb">;
25
+ readonly task: Schema.String;
26
+ readonly description: Schema.String;
27
+ readonly command: Schema.optional<Schema.$Array<Schema.String>>;
28
+ readonly cmd: Schema.optional<Schema.String>;
29
+ }>;
30
+ export type BreadcrumbEvent = typeof BreadcrumbEventSchema.Type;
31
+ export type StreamEvent = ProgressEvent | LogEvent | ErrorEvent | BreadcrumbEvent;
30
32
  export declare const emitEvent: (event: StreamEvent) => import("effect/Effect").Effect<void, never, never>;
31
- export { JsonSchemaVersion };
32
33
  //# sourceMappingURL=output-mode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"output-mode.d.ts","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/output-mode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAMhF,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAe3C,eAAO,MAAM,mBAAmB;;;;;;EAU9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAE5D,eAAO,MAAM,cAAc;;;;;EAazB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;;;;EAY3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,QAAQ,GAAG,UAAU,CAAC;AAMhE,eAAO,MAAM,SAAS,GAAI,OAAO,WAAW,uDAAyC,CAAC;AAEtF,OAAO,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"output-mode.d.ts","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/output-mode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAMxC,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAe3C,eAAO,MAAM,mBAAmB;;;;;EAS9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,mBAAmB,CAAC,IAAI,CAAC;AAE5D,eAAO,MAAM,cAAc;;;;EAYzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,cAAc,CAAC,IAAI,CAAC;AAElD,eAAO,MAAM,gBAAgB;;;;;EAS3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,gBAAgB,CAAC,IAAI,CAAC;AAEtD,eAAO,MAAM,qBAAqB;;;;;;EAUhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,OAAO,qBAAqB,CAAC,IAAI,CAAC;AAEhE,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,eAAe,CAAC;AAMlF,eAAO,MAAM,SAAS,GAAI,OAAO,WAAW,uDAAyC,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import * as Console from "effect/Console";
2
2
  import * as Schema from "effect/Schema";
3
- import { JsonSchemaVersion, JsonSchemaVersionSchema } from "./json-envelope.js";
4
3
  // ---------------------------------------------------------------------------
5
4
  // NDJSON event schemas — typed contract for machine-mode stderr events
6
5
  //
@@ -14,7 +13,6 @@ import { JsonSchemaVersion, JsonSchemaVersionSchema } from "./json-envelope.js";
14
13
  // result → final output (emitted last, wraps command-specific data)
15
14
  // ---------------------------------------------------------------------------
16
15
  export const ProgressEventSchema = Schema.Struct({
17
- _version: JsonSchemaVersionSchema,
18
16
  type: Schema.Literal("progress"),
19
17
  phase: Schema.String,
20
18
  percent: Schema.Number,
@@ -25,7 +23,6 @@ export const ProgressEventSchema = Schema.Struct({
25
23
  description: "NDJSON progress event for driving progress bars in machine mode.",
26
24
  });
27
25
  export const LogEventSchema = Schema.Struct({
28
- _version: JsonSchemaVersionSchema,
29
26
  type: Schema.Literal("log"),
30
27
  level: Schema.Literals(["info", "warn", "error"]).annotate({
31
28
  identifier: "LogLevel",
@@ -39,21 +36,28 @@ export const LogEventSchema = Schema.Struct({
39
36
  description: "NDJSON log event for informational messages at different severity levels.",
40
37
  });
41
38
  export const ErrorEventSchema = Schema.Struct({
42
- _version: JsonSchemaVersionSchema,
43
39
  type: Schema.Literal("error"),
44
40
  code: Schema.String,
45
41
  message: Schema.String,
46
- details: Schema.optional(Schema.Array(Schema.String)),
47
- howToFix: Schema.optional(Schema.String),
48
42
  exitCode: Schema.optional(Schema.Number),
49
43
  }).annotate({
50
44
  identifier: "ErrorEvent",
51
45
  title: "Error Event",
52
46
  description: "NDJSON error event with a stable error code for programmatic handling.",
53
47
  });
48
+ export const BreadcrumbEventSchema = Schema.Struct({
49
+ type: Schema.Literal("breadcrumb"),
50
+ task: Schema.String,
51
+ description: Schema.String,
52
+ command: Schema.optional(Schema.Array(Schema.String)),
53
+ cmd: Schema.optional(Schema.String),
54
+ }).annotate({
55
+ identifier: "BreadcrumbEvent",
56
+ title: "Breadcrumb Event",
57
+ description: "NDJSON breadcrumb event with a suggested follow-up task.",
58
+ });
54
59
  // ---------------------------------------------------------------------------
55
60
  // Event emitter — writes a single NDJSON line to stderr
56
61
  // ---------------------------------------------------------------------------
57
62
  export const emitEvent = (event) => Console.error(JSON.stringify(event));
58
- export { JsonSchemaVersion };
59
63
  //# sourceMappingURL=output-mode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"output-mode.js","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/output-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,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,EAAE,gBAAgB,EAAE,CAAC,CAAC,EAC9C,SAAS,qBAAqB,2fAY5B,CAAC"}
@@ -3,7 +3,7 @@ import * as Effect from "effect/Effect";
3
3
  import * as Layer from "effect/Layer";
4
4
  import * as Option from "effect/Option";
5
5
  import { jsonFlag, debugFlag, verboseFlag, quietFlag } from "../cli-flags/index.js";
6
- import { renderAppError } from "../app-error/index.js";
6
+ import { exitCodeFor, renderAppError } from "../app-error/index.js";
7
7
  import { effectCliExit, isEffectCliExit } from "./effect-cli-exit.js";
8
8
  import { resolveFormat } from "./resolve-format.js";
9
9
  import { makeCliTelemetryLayer } from "./telemetry-layer.js";
@@ -15,7 +15,47 @@ import { makeJsonErrorEnvelopeFromAppError } from "./json-envelope.js";
15
15
  const writeStderr = (message) => {
16
16
  process.stderr.write(message.endsWith("\n") ? message : `${message}\n`);
17
17
  };
18
- const defaultExitCodeForExpectedError = (error) => error._tag === "PromptCancelled" ? 0 : 1;
18
+ const formatBreadcrumbCommand = (command) => command.join(" ");
19
+ const formatBreadcrumbAction = (crumb) => {
20
+ if (crumb.command !== undefined) {
21
+ return ` · ${formatBreadcrumbCommand(crumb.command)}`;
22
+ }
23
+ if (crumb.cmd !== undefined) {
24
+ return ` · ${crumb.cmd}`;
25
+ }
26
+ return "";
27
+ };
28
+ const writeTextBreadcrumbs = (breadcrumbs) => {
29
+ if (breadcrumbs.length === 0) {
30
+ return;
31
+ }
32
+ writeStderr([
33
+ "Next:",
34
+ ...breadcrumbs.map((crumb) => {
35
+ return ` ${crumb.description}${formatBreadcrumbAction(crumb)}`;
36
+ }),
37
+ ].join("\n"));
38
+ };
39
+ const writeMachineBreadcrumbs = (breadcrumbs) => {
40
+ for (const crumb of breadcrumbs) {
41
+ writeStderr(JSON.stringify({
42
+ type: "breadcrumb",
43
+ task: crumb.task,
44
+ description: crumb.description,
45
+ ...(crumb.command !== undefined ? { command: [...crumb.command] } : {}),
46
+ ...(crumb.cmd !== undefined ? { cmd: crumb.cmd } : {}),
47
+ }));
48
+ }
49
+ };
50
+ const writeMachineError = (error, exitCode) => {
51
+ writeStderr(JSON.stringify({
52
+ type: "error",
53
+ code: error.code,
54
+ message: error.message,
55
+ exitCode,
56
+ }));
57
+ };
58
+ const defaultExitCodeForExpectedError = (error) => error._tag === "PromptCancelled" ? 0 : exitCodeFor(error.code);
19
59
  const writeExpectedCliError = (error, format) => Effect.gen(function* () {
20
60
  if (error._tag === "PromptCancelled") {
21
61
  return;
@@ -30,10 +70,14 @@ const writeExpectedCliError = (error, format) => Effect.gen(function* () {
30
70
  });
31
71
  if (format === "text") {
32
72
  writeStderr(renderAppError(error, { verbose, debug }));
73
+ writeTextBreadcrumbs(error.breadcrumbs ?? []);
33
74
  return;
34
75
  }
35
- process.stdout.write(JSON.stringify(makeJsonErrorEnvelopeFromAppError(error, defaultExitCodeForExpectedError(error)), null, 2) + "\n");
36
- writeStderr(`\u2717 ${error.what}`);
76
+ const exitCode = defaultExitCodeForExpectedError(error);
77
+ writeMachineBreadcrumbs(error.breadcrumbs ?? []);
78
+ writeMachineError(error, exitCode);
79
+ process.stdout.write(JSON.stringify(makeJsonErrorEnvelopeFromAppError(error, exitCode), null, 2) + "\n");
80
+ writeStderr(`\u2717 ${error.message}`);
37
81
  });
38
82
  // ---------------------------------------------------------------------------
39
83
  // Building blocks — composable pieces callers assemble directly
@@ -121,7 +165,10 @@ export const withCliErrorHandling = (program, options) => {
121
165
  command,
122
166
  result,
123
167
  durationMs,
124
- ...(error._tag === "AppError" && { errorCode: error.code }),
168
+ ...(error._tag === "AppError" && {
169
+ errorCode: error.code,
170
+ errorCategory: error.code,
171
+ }),
125
172
  semanticProperties,
126
173
  });
127
174
  })), Effect.andThen(Effect.die(effectCliExit(exitCode))));
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-envelope.js","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/runtime-envelope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,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C,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC,IAAI,CACzB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,cAAc,EAAE,6BAA6B,CAAC,CAAC,CAC9E,CAAC;AACJ,CAAC,CAAC;AAWF,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,OAA8C,EAC9C,OAA8B,EAC9B,EAAE,CACF,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,MAAM,GAAG,KAAK,CAAC,CAAC,gBAAgB,CAAC;IACvC,MAAM,eAAe,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;IACpD,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAE9E,OAAO,KAAK,CAAC,CAAC,oBAAoB,CAAC,QAAQ,EAAE;QAC3C,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,MAAM;QACN,eAAe,EAAE,OAAO,CAAC,eAAe;KACzC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -18,6 +18,7 @@ export interface CliCommandCompletedOptions {
18
18
  readonly result: "success" | "error" | "cancelled" | "defect";
19
19
  readonly durationMs: number;
20
20
  readonly errorCode?: string;
21
+ readonly errorCategory?: string;
21
22
  readonly semanticProperties?: TelemetryProperties;
22
23
  }
23
24
  export declare const trackCliCommandCompleted: (options: CliCommandCompletedOptions) => Effect.Effect<void, never, TelemetryClient>;
@@ -32,7 +33,7 @@ export declare const reportCliError: (error: AppError | PromptCancelled, command
32
33
  export interface CommandSemanticPropertiesService {
33
34
  readonly ref: Ref.Ref<TelemetryProperties>;
34
35
  }
35
- declare const CommandSemanticProperties_base: ServiceMap.ServiceClass<CommandSemanticProperties, "@agentxm/client-core/CommandSemanticProperties", CommandSemanticPropertiesService>;
36
+ declare const CommandSemanticProperties_base: ServiceMap.ServiceClass<CommandSemanticProperties, "@agentxm/client-core/unstable/cli-runtime/telemetry/CommandSemanticProperties", CommandSemanticPropertiesService>;
36
37
  export declare class CommandSemanticProperties extends CommandSemanticProperties_base {
37
38
  }
38
39
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAEtC,OAAO,KAAK,GAAG,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAalE,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAC3C;AAED,eAAO,MAAM,eAAe,GAAI,iCAI7B,0BAA0B,KAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,CAItE,CAAC;AAML,MAAM,WAAW,0BAA0B;IACzC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,QAAQ,CAAC;IAC9D,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC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AC;AAMlB,MAAM,WAAW,gCAAgC;IAC/C,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;CAC5C;;AAED,qBAAa,yBAA0B,SAAQ,8BAGqC;CAAG;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,4BAA4B,GACvC,YAAY,mBAAmB,KAC9B,MAAM,CAAC,MAAM,CAAC,IAAI,CAOjB,CAAC;AAQL,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAQ3E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,KAAK,CAAC,yBAAyB,CAGhF,CAAC;AAWF,eAAO,MAAM,eAAe,GAC1B,OAAO,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,EAC3B,SAAS,MAAM,KACd,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,CAYM,CAAC"}
@@ -17,6 +17,7 @@ export const trackCliCommandCompleted = (options) => Effect.gen(function* () {
17
17
  "cli.result": options.result,
18
18
  "cli.duration_ms": options.durationMs,
19
19
  ...(options.errorCode !== undefined && { "cli.error_code": options.errorCode }),
20
+ ...(options.errorCategory !== undefined && { "cli.error_category": options.errorCategory }),
20
21
  ...(options.semanticProperties ?? {}),
21
22
  });
22
23
  }).pipe(Effect.catchCause(() => Effect.void));
@@ -45,16 +46,15 @@ export const reportCliError = (error, command) => error._tag === "AppError"
45
46
  const telemetry = yield* TelemetryClient;
46
47
  yield* telemetry.reportError({
47
48
  name: error.code,
48
- message: error.what,
49
- details: error.details,
50
- ...(Option.isSome(error.howToFix) && { howToFix: error.howToFix.value }),
49
+ message: error.message,
50
+ category: error.code,
51
51
  level: "error",
52
52
  handled: true,
53
53
  command,
54
54
  });
55
55
  }).pipe(Effect.catchCause(() => Effect.void))
56
56
  : Effect.void;
57
- export class CommandSemanticProperties extends ServiceMap.Service()("@agentxm/client-core/CommandSemanticProperties") {
57
+ export class CommandSemanticProperties extends ServiceMap.Service()("@agentxm/client-core/unstable/cli-runtime/telemetry/CommandSemanticProperties") {
58
58
  }
59
59
  /**
60
60
  * Set semantic telemetry properties from within a command handler.
@@ -1 +1 @@
1
- {"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../../src/unstable/cli-runtime/telemetry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,GAAG,MAAM,YAAY,CAAC;AAClC,OAAO,KAAK,UAAU,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EACL,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACX,SAAS,EACT,SAAS,GACV,MAAM,uBAAuB,CAAC;AAY/B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,OAAO,EACP,KAAK,GAAG,iBAAiB,EACzB,UAAU,GACiB,EAA+C,EAAE,CAC5E,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,eAAe,CAAC;IACzC,KAAK,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,CAAC,UAAU,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;AACxF,CAAC,CAAC,CAAC;AAcL,MAAM,CAAC,MAAM,wBAAwB,GAAG,CACtC,OAAmC,EACU,EAAE,CAC/C,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,eAAe,CAAC;IACzC,KAAK,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,mB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,EAAU,EAAE;IAC5D,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrC,OAAO,QAAQ,YAAY,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AACzE,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,KAA2B,EAC3B,OAAe,EAC8B,EAAE,CAC/C,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC;IAC5B,CAAC,CAAC,MAAM,CAAC,IAAI;IACb,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QAClB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,eAAe,CAAC;QACzC,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC;YAC3B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC;YAC7B,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,KAAK;YACd,OAAO;SACR,CAAC,CAAC;IACL,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Command argument schema definition.
3
3
  *
4
- * Defines the shape of arguments that a command accepts,
5
- * used in COMMAND.md frontmatter.
4
+ * Defines the shape of arguments that a command accepts, used in the command
5
+ * content file's frontmatter (`${name}.md`).
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
8
8
  */
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Command argument schema definition.
3
3
  *
4
- * Defines the shape of arguments that a command accepts,
5
- * used in COMMAND.md frontmatter.
4
+ * Defines the shape of arguments that a command accepts, used in the command
5
+ * content file's frontmatter (`${name}.md`).
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
8
8
  */
@@ -1,9 +1,10 @@
1
1
  /**
2
- * Command content file module for COMMAND.md parsing and frontmatter schemas.
2
+ * Command content file module parsing and frontmatter schemas for the
3
+ * `${name}.md` content file.
3
4
  *
4
- * Defines the frontmatter schema for COMMAND.md files, a parser that
5
- * combines the shared frontmatter utility with command-specific validation,
6
- * and a transformation for syncing frontmatter fields to manifest fields.
5
+ * Defines the frontmatter schema, a parser that combines the shared
6
+ * frontmatter utility with command-specific validation, and a transformation
7
+ * for syncing frontmatter fields to manifest fields.
7
8
  *
8
9
  * @experimental This API is unstable and may change without notice.
9
10
  */
@@ -12,25 +13,11 @@ import * as Option from "effect/Option";
12
13
  import * as Schema from "effect/Schema";
13
14
  import { type AppError } from "../app-error/index.js";
14
15
  /**
15
- * Schema for COMMAND.md frontmatter fields.
16
+ * Schema for command content file frontmatter fields.
16
17
  *
17
18
  * @experimental This API is unstable and may change without notice.
18
19
  */
19
- export declare const CommandFrontmatterSchema: Schema.Struct<{
20
- readonly description: Schema.optional<Schema.String>;
21
- readonly model: Schema.optional<Schema.NullOr<Schema.String>>;
22
- readonly allowedTools: Schema.optional<Schema.NullOr<Schema.$Array<Schema.String>>>;
23
- readonly isolatedContext: Schema.optional<Schema.Boolean>;
24
- readonly arguments: Schema.optional<Schema.$Array<Schema.Struct<{
25
- readonly name: Schema.String;
26
- readonly description: Schema.optional<Schema.String>;
27
- readonly required: Schema.optional<Schema.Boolean>;
28
- readonly default: Schema.optional<Schema.String>;
29
- }>>>;
30
- readonly argumentHint: Schema.optional<Schema.String>;
31
- readonly autoInvocable: Schema.optional<Schema.Boolean>;
32
- readonly userInvocable: Schema.optional<Schema.Boolean>;
33
- }>;
20
+ export declare const CommandFrontmatterSchema: Schema.$Record<Schema.String, Schema.Unknown>;
34
21
  /**
35
22
  * Inferred type for CommandFrontmatter schema.
36
23
  *
@@ -38,7 +25,7 @@ export declare const CommandFrontmatterSchema: Schema.Struct<{
38
25
  */
39
26
  export type CommandFrontmatter = Schema.Schema.Type<typeof CommandFrontmatterSchema>;
40
27
  /**
41
- * Result of parsing a COMMAND.md file.
28
+ * Result of parsing a command content file.
42
29
  *
43
30
  * @experimental This API is unstable and may change without notice.
44
31
  */
@@ -49,7 +36,7 @@ export interface CommandContentResult {
49
36
  readonly body: string;
50
37
  }
51
38
  /**
52
- * Parse a COMMAND.md file's content into validated frontmatter and body.
39
+ * Parse a command content file into validated frontmatter and body.
53
40
  *
54
41
  * Delegates to the shared frontmatter parser, then validates the
55
42
  * frontmatter against `CommandFrontmatterSchema`.
@@ -60,8 +47,8 @@ export declare const parseCommandMd: (content: string) => Effect.Effect<CommandC
60
47
  /**
61
48
  * Schema for manifest fields projected from frontmatter.
62
49
  *
63
- * Used during publish to sync description and model from COMMAND.md
64
- * frontmatter into the command manifest.
50
+ * Used during publish to sync description and model from the command content
51
+ * file's frontmatter into the command manifest.
65
52
  *
66
53
  * @experimental This API is unstable and may change without notice.
67
54
  */