@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
@@ -6,25 +6,26 @@
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
8
8
  */
9
- export type { RendererCommandArgument, RendererCommandFrontmatter, AgentOverrides, RenderInput, RenderOutput, } from "./types.js";
9
+ export type { AgentOverrides, RenderInput, RenderOutput, CommandRenderOutcome, CommandRendered, CommandSkipped, } from "./types.js";
10
+ export { rendered, skipped } from "./types.js";
10
11
  export { renderMarkdownWithFrontmatter } from "./render-markdown-with-frontmatter.js";
11
12
  export { renderMarkdownOnly } from "./render-markdown-only.js";
12
13
  export { renderPromptMd } from "./render-prompt-md.js";
13
14
  export { renderToml } from "./render-toml.js";
14
15
  export { renderPlainText } from "./render-plain-text.js";
15
- import type { RenderInput, RenderOutput } from "./types.js";
16
+ import type { CommandRenderOutcome, RenderInput } from "./types.js";
16
17
  /**
17
18
  * Renderer function signature shared by all format families.
18
19
  *
19
20
  * @experimental This API is unstable and may change without notice.
20
21
  */
21
- export type Renderer = (input: RenderInput) => RenderOutput;
22
+ export type Renderer = (input: RenderInput) => CommandRenderOutcome;
22
23
  /**
23
24
  * Select the appropriate renderer for an agent ID.
24
25
  *
25
- * Returns `renderMarkdownWithFrontmatter` as the default for unknown agents.
26
+ * Returns undefined when command rendering is not supported for an agent.
26
27
  *
27
28
  * @experimental This API is unstable and may change without notice.
28
29
  */
29
- export declare const selectRenderer: (agentId: string) => Renderer;
30
+ export declare const selectRenderer: (agentId: string) => Renderer | undefined;
30
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,cAAc,EACd,WAAW,EACX,YAAY,GACb,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAOzD,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE5D;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,YAAY,CAAC;AAmB5D;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,KAAG,QACM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EACV,cAAc,EACd,WAAW,EACX,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,cAAc,GACf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAOzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEpE;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,oBAAoB,CAAC;AAmBpE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,KAAG,QAAQ,GAAG,SAAiC,CAAC"}
@@ -6,6 +6,7 @@
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
8
8
  */
9
+ export { rendered, skipped } from "./types.js";
9
10
  export { renderMarkdownWithFrontmatter } from "./render-markdown-with-frontmatter.js";
10
11
  export { renderMarkdownOnly } from "./render-markdown-only.js";
11
12
  export { renderPromptMd } from "./render-prompt-md.js";
@@ -35,9 +36,9 @@ const rendererMap = {
35
36
  /**
36
37
  * Select the appropriate renderer for an agent ID.
37
38
  *
38
- * Returns `renderMarkdownWithFrontmatter` as the default for unknown agents.
39
+ * Returns undefined when command rendering is not supported for an agent.
39
40
  *
40
41
  * @experimental This API is unstable and may change without notice.
41
42
  */
42
- export const selectRenderer = (agentId) => rendererMap[agentId] ?? renderMarkdownWithFrontmatter;
43
+ export const selectRenderer = (agentId) => rendererMap[agentId];
43
44
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAUzD;;GAEG;AACH,MAAM,WAAW,GAAuC;IACtD,aAAa,EAAE,6BAA6B;IAC5C,KAAK,EAAE,6BAA6B;IACpC,QAAQ,EAAE,6BAA6B;IACvC,OAAO,EAAE,6BAA6B;IACtC,KAAK,EAAE,6BAA6B;IACpC,IAAI,EAAE,6BAA6B;IACnC,GAAG,EAAE,6BAA6B;IAClC,MAAM,EAAE,kBAAkB;IAC1B,gBAAgB,EAAE,cAAc;IAChC,YAAY,EAAE,UAAU;IACxB,UAAU,EAAE,eAAe;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAe,EAAY,EAAE,CAC1D,WAAW,CAAC,OAAO,CAAC,IAAI,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAUzD;;GAEG;AACH,MAAM,WAAW,GAAuC;IACtD,aAAa,EAAE,6BAA6B;IAC5C,KAAK,EAAE,6BAA6B;IACpC,QAAQ,EAAE,6BAA6B;IACvC,OAAO,EAAE,6BAA6B;IACtC,KAAK,EAAE,6BAA6B;IACpC,IAAI,EAAE,6BAA6B;IACnC,GAAG,EAAE,6BAA6B;IAClC,MAAM,EAAE,kBAAkB;IAC1B,gBAAgB,EAAE,cAAc;IAChC,YAAY,EAAE,UAAU;IACxB,UAAU,EAAE,eAAe;CAC5B,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAe,EAAwB,EAAE,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { RenderInput, RenderOutput } from "./types.js";
1
+ import { type CommandRenderOutcome, type RenderInput } from "./types.js";
2
2
  /**
3
3
  * Render a command as plain Markdown without YAML frontmatter.
4
4
  *
@@ -7,5 +7,5 @@ import type { RenderInput, RenderOutput } from "./types.js";
7
7
  *
8
8
  * @experimental This API is unstable and may change without notice.
9
9
  */
10
- export declare const renderMarkdownOnly: (input: RenderInput) => RenderOutput;
10
+ export declare const renderMarkdownOnly: (input: RenderInput) => CommandRenderOutcome;
11
11
  //# sourceMappingURL=render-markdown-only.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-markdown-only.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-markdown-only.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE5D;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,WAAW,KAAG,YAqCvD,CAAC"}
1
+ {"version":3,"file":"render-markdown-only.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-markdown-only.ts"],"names":[],"mappings":"AAUA,OAAO,EAAY,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAEnF;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,GAAI,OAAO,WAAW,KAAG,oBAWvD,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { substituteVariables } from "../variable-substitution.js";
2
+ import { rendered } from "./types.js";
2
3
  /**
3
4
  * Render a command as plain Markdown without YAML frontmatter.
4
5
  *
@@ -9,35 +10,9 @@ import { substituteVariables } from "../variable-substitution.js";
9
10
  */
10
11
  export const renderMarkdownOnly = (input) => {
11
12
  const warnings = [];
12
- const { frontmatter, agentId } = input;
13
- // Warn for unsupported frontmatter fields
14
- if (frontmatter.model !== undefined && frontmatter.model !== null) {
15
- warnings.push({
16
- agent: agentId,
17
- feature: "model",
18
- message: "Cursor does not support model specification in commands",
19
- });
20
- }
21
- if (frontmatter.allowedTools !== undefined && frontmatter.allowedTools !== null) {
22
- warnings.push({
23
- agent: agentId,
24
- feature: "allowedTools",
25
- message: "Cursor does not support allowed tools specification in commands",
26
- });
27
- }
28
- if (frontmatter.isolatedContext === true) {
29
- warnings.push({
30
- agent: agentId,
31
- feature: "isolatedContext",
32
- message: "Cursor does not support isolated context in commands",
33
- });
34
- }
13
+ const { agentId } = input;
35
14
  const { body: substitutedBody, warnings: subWarnings } = substituteVariables(input.body, agentId);
36
15
  warnings.push(...subWarnings);
37
- return {
38
- content: substitutedBody,
39
- warnings,
40
- fileExtension: ".md",
41
- };
16
+ return rendered([{ content: substitutedBody, relativePath: `${input.commandName}.md`, warnings }], warnings);
42
17
  };
43
18
  //# sourceMappingURL=render-markdown-only.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-markdown-only.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-markdown-only.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAkB,EAAgB,EAAE;IACrE,MAAM,QAAQ,GAAiC,EAAE,CAAC;IAClD,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEvC,0CAA0C;IAC1C,IAAI,WAAW,CAAC,KAAK,KAAK,SAAS,IAAI,WAAW,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QAClE,QAAQ,CAAC,IAAI,CAAC;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,OAAO;YAChB,OAAO,EAAE,yDAAyD;SACnE,CAAC,CAAC;IACL,CAAC;IAED,IAAI,WAAW,CAAC,YAAY,KAAK,SAAS,IAAI,WAAW,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;QAChF,QAAQ,CAAC,IAAI,CAAC;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,cAAc;YACvB,OAAO,EAAE,iEAAiE;SAC3E,CAAC,CAAC;IACL,CAAC;IAED,IAAI,WAAW,CAAC,eAAe,KAAK,IAAI,EAAE,CAAC;QACzC,QAAQ,CAAC,IAAI,CAAC;YACZ,KAAK,EAAE,OAAO;YACd,OAAO,EAAE,iBAAiB;YAC1B,OAAO,EAAE,sDAAsD;SAChE,CAAC,CAAC;IACL,CAAC;IAED,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,mBAAmB,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClG,QAAQ,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;IAE9B,OAAO;QACL,OAAO,EAAE,eAAe;QACxB,QAAQ;QACR,aAAa,EAAE,KAAK;KACrB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"render-markdown-only.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-markdown-only.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAA+C,MAAM,YAAY,CAAC;AAEnF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,KAAkB,EAAwB,EAAE;IAC7E,MAAM,QAAQ,GAAiC,EAAE,CAAC;IAClD,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE1B,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,mBAAmB,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClG,QAAQ,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;IAE9B,OAAO,QAAQ,CACb,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC,WAAW,KAAK,EAAE,QAAQ,EAAE,CAAC,EACjF,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -6,11 +6,11 @@
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
8
8
  */
9
- import type { RenderInput, RenderOutput } from "./types.js";
9
+ import { type CommandRenderOutcome, type RenderInput } from "./types.js";
10
10
  /**
11
11
  * Render a command as Markdown with YAML frontmatter.
12
12
  *
13
13
  * @experimental This API is unstable and may change without notice.
14
14
  */
15
- export declare const renderMarkdownWithFrontmatter: (input: RenderInput) => RenderOutput;
15
+ export declare const renderMarkdownWithFrontmatter: (input: RenderInput) => CommandRenderOutcome;
16
16
  //# sourceMappingURL=render-markdown-with-frontmatter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-markdown-with-frontmatter.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-markdown-with-frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA+C5D;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,OAAO,WAAW,KAAG,YA0BlE,CAAC"}
1
+ {"version":3,"file":"render-markdown-with-frontmatter.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-markdown-with-frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,EAAY,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAEnF;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,GAAI,OAAO,WAAW,KAAG,oBAyBlE,CAAC"}
@@ -8,41 +8,8 @@
8
8
  */
9
9
  import YAML from "yaml";
10
10
  import { substituteVariables } from "../variable-substitution.js";
11
- /**
12
- * Build the YAML frontmatter object from command frontmatter and agent overrides.
13
- */
14
- const buildFrontmatterObject = (input) => {
15
- const { frontmatter, agentOverrides } = input;
16
- const fm = {};
17
- if (frontmatter.description !== undefined) {
18
- fm["description"] = frontmatter.description;
19
- }
20
- if (frontmatter.argumentHint !== undefined) {
21
- fm["argument-hint"] = frontmatter.argumentHint;
22
- }
23
- if (frontmatter.allowedTools !== undefined && frontmatter.allowedTools !== null) {
24
- fm["allowed-tools"] = [...frontmatter.allowedTools];
25
- }
26
- if (frontmatter.model !== undefined && frontmatter.model !== null) {
27
- fm["model"] = frontmatter.model;
28
- }
29
- if (frontmatter.isolatedContext === true) {
30
- fm["isolated-context"] = true;
31
- }
32
- if (frontmatter.autoInvocable !== undefined) {
33
- fm["auto-invocable"] = frontmatter.autoInvocable;
34
- }
35
- if (frontmatter.userInvocable !== undefined) {
36
- fm["user-invocable"] = frontmatter.userInvocable;
37
- }
38
- // Apply agent overrides — merge on top of computed frontmatter
39
- if (agentOverrides !== undefined) {
40
- for (const [key, value] of Object.entries(agentOverrides)) {
41
- fm[key] = value;
42
- }
43
- }
44
- return Object.keys(fm).length > 0 ? fm : undefined;
45
- };
11
+ import { applyOverrides } from "../../extensions/agent-overrides.js";
12
+ import { rendered } from "./types.js";
46
13
  /**
47
14
  * Render a command as Markdown with YAML frontmatter.
48
15
  *
@@ -50,21 +17,17 @@ const buildFrontmatterObject = (input) => {
50
17
  */
51
18
  export const renderMarkdownWithFrontmatter = (input) => {
52
19
  const warnings = [];
53
- const fmObject = buildFrontmatterObject(input);
20
+ const fmObject = applyOverrides(input.frontmatter, input.agentOverrides);
54
21
  const { body: substitutedBody, warnings: subWarnings } = substituteVariables(input.body, input.agentId);
55
22
  warnings.push(...subWarnings);
56
23
  const parts = [];
57
- if (fmObject !== undefined) {
24
+ if (Object.keys(fmObject).length > 0) {
58
25
  const yamlStr = YAML.stringify(fmObject, { lineWidth: 0 }).trim();
59
26
  parts.push(`---\n${yamlStr}\n---`);
60
27
  }
61
28
  if (substitutedBody.length > 0) {
62
29
  parts.push(substitutedBody);
63
30
  }
64
- return {
65
- content: parts.join("\n"),
66
- warnings,
67
- fileExtension: ".md",
68
- };
31
+ return rendered([{ content: parts.join("\n"), relativePath: `${input.commandName}.md`, warnings }], warnings);
69
32
  };
70
33
  //# sourceMappingURL=render-markdown-with-frontmatter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-markdown-with-frontmatter.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-markdown-with-frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAGlE;;GAEG;AACH,MAAM,sBAAsB,GAAG,CAAC,KAAkB,EAAuC,EAAE;IACzF,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAC9C,MAAM,EAAE,GAA4B,EAAE,CAAC;IAEvC,IAAI,WAAW,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;QAC1C,EAAE,CAAC,aAAa,CAAC,GAAG,WAAW,CAAC,WAAW,CAAC;IAC9C,CAAC;IAED,IAAI,WAAW,CAAC,YAAY,KAAK,SAAS,EAAE,CAAC;QAC3C,EAAE,CAAC,eAAe,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC;IACjD,CAAC;IAED,IAAI,WAAW,CAAC,YAAY,KAAK,SAAS,IAAI,WAAW,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;QAChF,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;IACtD,CAAC;IAED,IAAI,WAAW,CAAC,KAAK,KAAK,SAAS,IAAI,WAAW,CAAC,KAAK,KAAK,IAAI,EAAE,CAAC;QAClE,EAAE,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,KAAK,CAAC;IAClC,CAAC;IAED,IAAI,WAAW,CAAC,eAAe,KAAK,IAAI,EAAE,CAAC;QACzC,EAAE,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;IAChC,CAAC;IAED,IAAI,WAAW,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;QAC5C,E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eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;QACzB,QAAQ;QACR,aAAa,EAAE,KAAK;KACrB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"render-markdown-with-frontmatter.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-markdown-with-frontmatter.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAA+C,MAAM,YAAY,CAAC;AAEnF;;;;GAIG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,KAAkB,EAAwB,EAAE;IACxF,MAAM,QAAQ,GAAiC,EAAE,CAAC;IAClD,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAEzE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,mBAAmB,CAC1E,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,OAAO,CACd,CAAC;IACF,QAAQ,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;IAE9B,MAAM,KAAK,GAAkB,EAAE,CAAC;IAEhC,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACrC,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAClE,KAAK,CAAC,IAAI,CAAC,QAAQ,OAAO,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,QAAQ,CACb,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC,WAAW,KAAK,EAAE,QAAQ,EAAE,CAAC,EAClF,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { RenderInput, RenderOutput } from "./types.js";
1
+ import { type CommandRenderOutcome, type RenderInput } from "./types.js";
2
2
  /**
3
3
  * Render a command as plain text for Kiro.
4
4
  *
@@ -7,5 +7,5 @@ import type { RenderInput, RenderOutput } from "./types.js";
7
7
  *
8
8
  * @experimental This API is unstable and may change without notice.
9
9
  */
10
- export declare const renderPlainText: (input: RenderInput) => RenderOutput;
10
+ export declare const renderPlainText: (input: RenderInput) => CommandRenderOutcome;
11
11
  //# sourceMappingURL=render-plain-text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-plain-text.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-plain-text.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE5D;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,WAAW,KAAG,YA8CpD,CAAC"}
1
+ {"version":3,"file":"render-plain-text.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-plain-text.ts"],"names":[],"mappings":"AAYA,OAAO,EAAY,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAEnF;;;;;;;GAOG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,WAAW,KAAG,oBAqBpD,CAAC"}
@@ -1,4 +1,6 @@
1
1
  import { substituteVariables } from "../variable-substitution.js";
2
+ import { applyOverrides } from "../../extensions/agent-overrides.js";
3
+ import { rendered } from "./types.js";
2
4
  /**
3
5
  * Render a command as plain text for Kiro.
4
6
  *
@@ -9,43 +11,18 @@ import { substituteVariables } from "../variable-substitution.js";
9
11
  */
10
12
  export const renderPlainText = (input) => {
11
13
  const warnings = [];
12
- const { frontmatter, agentId } = input;
13
- // Warn for all unsupported frontmatter fields
14
- if (frontmatter.model !== undefined && frontmatter.model !== null) {
14
+ const { agentId } = input;
15
+ const mergedFrontmatter = applyOverrides(input.frontmatter, input.agentOverrides);
16
+ if (Object.keys(mergedFrontmatter).length > 0) {
15
17
  warnings.push({
16
18
  agent: agentId,
17
- feature: "model",
18
- message: "Kiro does not support model specification in commands",
19
- });
20
- }
21
- if (frontmatter.allowedTools !== undefined && frontmatter.allowedTools !== null) {
22
- warnings.push({
23
- agent: agentId,
24
- feature: "allowedTools",
25
- message: "Kiro does not support allowed tools in commands",
26
- });
27
- }
28
- if (frontmatter.isolatedContext === true) {
29
- warnings.push({
30
- agent: agentId,
31
- feature: "isolatedContext",
32
- message: "Kiro does not support isolated context in commands",
33
- });
34
- }
35
- if (frontmatter.arguments !== undefined && frontmatter.arguments.length > 0) {
36
- warnings.push({
37
- agent: agentId,
38
- feature: "arguments",
39
- message: "Kiro does not support command arguments",
19
+ feature: "frontmatter",
20
+ message: "Kiro CLI prompt files are plain text; command frontmatter is not rendered",
40
21
  });
41
22
  }
42
23
  // Variable substitution for kiro renders as literal text + warnings
43
24
  const { body: substitutedBody, warnings: subWarnings } = substituteVariables(input.body, agentId);
44
25
  warnings.push(...subWarnings);
45
- return {
46
- content: substitutedBody,
47
- warnings,
48
- fileExtension: ".txt",
49
- };
26
+ return rendered([{ content: substitutedBody, relativePath: `${input.commandName}.txt`, warnings }], warnings);
50
27
  };
51
28
  //# sourceMappingURL=render-plain-text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-plain-text.js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,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC,WAAW,MAAM,EAAE,QAAQ,EAAE,CAAC,EAClF,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
8
8
  */
9
- import type { RenderInput, RenderOutput } from "./types.js";
9
+ import { type CommandRenderOutcome, type RenderInput } from "./types.js";
10
10
  /**
11
11
  * Render a command as `.prompt.md` for Copilot.
12
12
  *
@@ -15,5 +15,5 @@ import type { RenderInput, RenderOutput } from "./types.js";
15
15
  *
16
16
  * @experimental This API is unstable and may change without notice.
17
17
  */
18
- export declare const renderPromptMd: (input: RenderInput) => RenderOutput;
18
+ export declare const renderPromptMd: (input: RenderInput) => CommandRenderOutcome;
19
19
  //# sourceMappingURL=render-prompt-md.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-prompt-md.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-prompt-md.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE5D;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,WAAW,KAAG,YAwDnD,CAAC"}
1
+ {"version":3,"file":"render-prompt-md.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-prompt-md.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,OAAO,EAAY,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAEnF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,WAAW,KAAG,oBAuBnD,CAAC"}
@@ -8,6 +8,8 @@
8
8
  */
9
9
  import YAML from "yaml";
10
10
  import { substituteVariables } from "../variable-substitution.js";
11
+ import { applyOverrides } from "../../extensions/agent-overrides.js";
12
+ import { rendered } from "./types.js";
11
13
  /**
12
14
  * Render a command as `.prompt.md` for Copilot.
13
15
  *
@@ -18,34 +20,8 @@ import { substituteVariables } from "../variable-substitution.js";
18
20
  */
19
21
  export const renderPromptMd = (input) => {
20
22
  const warnings = [];
21
- const { frontmatter, agentId } = input;
22
- const fm = {};
23
- if (frontmatter.description !== undefined) {
24
- fm["description"] = frontmatter.description;
25
- }
26
- // Copilot uses "mode" for model-like behavior
27
- if (frontmatter.model !== undefined && frontmatter.model !== null) {
28
- fm["model"] = frontmatter.model;
29
- }
30
- if (frontmatter.argumentHint !== undefined) {
31
- fm["argument-hint"] = frontmatter.argumentHint;
32
- }
33
- if (frontmatter.allowedTools !== undefined && frontmatter.allowedTools !== null) {
34
- fm["tools"] = [...frontmatter.allowedTools];
35
- }
36
- if (frontmatter.isolatedContext === true) {
37
- warnings.push({
38
- agent: agentId,
39
- feature: "isolatedContext",
40
- message: "Copilot does not support isolated context in commands",
41
- });
42
- }
43
- // Apply agent overrides
44
- if (input.agentOverrides !== undefined) {
45
- for (const [key, value] of Object.entries(input.agentOverrides)) {
46
- fm[key] = value;
47
- }
48
- }
23
+ const { agentId } = input;
24
+ const fm = applyOverrides(input.frontmatter, input.agentOverrides);
49
25
  const { body: substitutedBody, warnings: subWarnings } = substituteVariables(input.body, agentId);
50
26
  warnings.push(...subWarnings);
51
27
  const parts = [];
@@ -56,10 +32,6 @@ export const renderPromptMd = (input) => {
56
32
  if (substitutedBody.length > 0) {
57
33
  parts.push(substitutedBody);
58
34
  }
59
- return {
60
- content: parts.join("\n"),
61
- warnings,
62
- fileExtension: ".prompt.md",
63
- };
35
+ return rendered([{ content: parts.join("\n"), relativePath: `${input.commandName}.prompt.md`, warnings }], warnings);
64
36
  };
65
37
  //# sourceMappingURL=render-prompt-md.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-prompt-md.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-prompt-md.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,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AAC,KAAkB,EAAwB,EAAE;IACzE,MAAM,QAAQ,GAAiC,EAAE,CAAC;IAClD,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAC1B,MAAM,EAAE,GAAG,cAAc,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAEnE,MAAM,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,WAAW,EAAE,GAAG,mBAAmB,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClG,QAAQ,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;IAE9B,MAAM,KAAK,GAAkB,EAAE,CAAC;IAEhC,IAAI,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QAC5D,KAAK,CAAC,IAAI,CAAC,QAAQ,OAAO,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC/B,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO,QAAQ,CACb,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC,WAAW,YAAY,EAAE,QAAQ,EAAE,CAAC,EACzF,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -2,18 +2,17 @@
2
2
  * TOML renderer for Gemini CLI.
3
3
  *
4
4
  * For: Gemini CLI.
5
- * Produces `.toml` with `description` and `prompt` fields.
5
+ * Produces `.toml` with opaque frontmatter fields and `prompt`.
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
8
8
  */
9
- import type { RenderInput, RenderOutput } from "./types.js";
9
+ import { type CommandRenderOutcome, type RenderInput } from "./types.js";
10
10
  /**
11
11
  * Render a command as TOML for Gemini CLI.
12
12
  *
13
- * Gemini CLI's TOML format supports only `prompt` and `description` fields.
14
- * Most portable frontmatter fields have no TOML equivalent and emit warnings.
13
+ * Gemini CLI maps nested command filenames to `:` namespaces.
15
14
  *
16
15
  * @experimental This API is unstable and may change without notice.
17
16
  */
18
- export declare const renderToml: (input: RenderInput) => RenderOutput;
17
+ export declare const renderToml: (input: RenderInput) => CommandRenderOutcome;
19
18
  //# sourceMappingURL=render-toml.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-toml.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-toml.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAe5D;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,WAAW,KAAG,YAqD/C,CAAC"}
1
+ {"version":3,"file":"render-toml.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-toml.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,EAAY,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAyCnF;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,WAAW,KAAG,oBAc/C,CAAC"}
@@ -2,74 +2,59 @@
2
2
  * TOML renderer for Gemini CLI.
3
3
  *
4
4
  * For: Gemini CLI.
5
- * Produces `.toml` with `description` and `prompt` fields.
5
+ * Produces `.toml` with opaque frontmatter fields and `prompt`.
6
6
  *
7
7
  * @experimental This API is unstable and may change without notice.
8
8
  */
9
9
  import { substituteVariables } from "../variable-substitution.js";
10
+ import { applyOverrides } from "../../extensions/agent-overrides.js";
11
+ import { rendered } from "./types.js";
10
12
  /**
11
- * Escape a string value for TOML.
12
- * Uses triple-quoted strings for multiline content, regular quotes otherwise.
13
+ * Serialize TOML values for Gemini command files.
13
14
  */
14
- const tomlStringValue = (value) => {
15
- if (value.includes("\n")) {
16
- // Use TOML multiline basic string
17
- return `"""\n${value.replace(/"""/g, '"\\"\\""')}"""`;
15
+ const tomlValue = (value) => {
16
+ if (typeof value === "boolean" || typeof value === "number")
17
+ return String(value);
18
+ if (Array.isArray(value)) {
19
+ return `[${value.map((entry) => tomlValue(entry)).join(", ")}]`;
18
20
  }
19
- // Escape backslashes and quotes for single-line
20
- return `"${value.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
21
+ const str = typeof value === "string" ? value : String(value);
22
+ if (str.includes("\n"))
23
+ return `"""\n${str.replace(/"""/g, '"\\"\\""')}"""`;
24
+ return `"${str.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
25
+ };
26
+ const isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
27
+ const tomlKey = (key) => /^[A-Za-z0-9_-]+$/.test(key) ? key : `"${key.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
28
+ const tomlLines = (object, path = []) => {
29
+ const scalarLines = [];
30
+ const tableLines = [];
31
+ for (const [key, value] of Object.entries(object)) {
32
+ if (isPlainObject(value)) {
33
+ const childPath = [...path, key];
34
+ tableLines.push("", `[${childPath.map((part) => tomlKey(part)).join(".")}]`);
35
+ tableLines.push(...tomlLines(value, childPath));
36
+ }
37
+ else {
38
+ scalarLines.push(`${tomlKey(key)} = ${tomlValue(value)}`);
39
+ }
40
+ }
41
+ return [...scalarLines, ...tableLines];
21
42
  };
22
43
  /**
23
44
  * Render a command as TOML for Gemini CLI.
24
45
  *
25
- * Gemini CLI's TOML format supports only `prompt` and `description` fields.
26
- * Most portable frontmatter fields have no TOML equivalent and emit warnings.
46
+ * Gemini CLI maps nested command filenames to `:` namespaces.
27
47
  *
28
48
  * @experimental This API is unstable and may change without notice.
29
49
  */
30
50
  export const renderToml = (input) => {
31
51
  const warnings = [];
32
- const { frontmatter, agentId } = input;
33
- // Warn for unsupported features
34
- if (frontmatter.model !== undefined && frontmatter.model !== null) {
35
- warnings.push({
36
- agent: agentId,
37
- feature: "model",
38
- message: "Gemini CLI TOML format does not support model specification",
39
- });
40
- }
41
- if (frontmatter.allowedTools !== undefined && frontmatter.allowedTools !== null) {
42
- warnings.push({
43
- agent: agentId,
44
- feature: "allowedTools",
45
- message: "Gemini CLI TOML format does not support allowed tools",
46
- });
47
- }
48
- if (frontmatter.isolatedContext === true) {
49
- warnings.push({
50
- agent: agentId,
51
- feature: "isolatedContext",
52
- message: "Gemini CLI TOML format does not support isolated context",
53
- });
54
- }
55
- if (frontmatter.arguments !== undefined && frontmatter.arguments.length > 0) {
56
- warnings.push({
57
- agent: agentId,
58
- feature: "arguments",
59
- message: "Gemini CLI has limited support for command arguments",
60
- });
61
- }
52
+ const { agentId } = input;
62
53
  const { body: substitutedBody, warnings: subWarnings } = substituteVariables(input.body, agentId);
63
54
  warnings.push(...subWarnings);
64
- const lines = [];
65
- if (frontmatter.description !== undefined) {
66
- lines.push(`description = ${tomlStringValue(frontmatter.description)}`);
67
- }
68
- lines.push(`prompt = ${tomlStringValue(substitutedBody)}`);
69
- return {
70
- content: lines.join("\n"),
71
- warnings,
72
- fileExtension: ".toml",
73
- };
55
+ const frontmatter = applyOverrides(input.frontmatter, input.agentOverrides);
56
+ const frontmatterWithoutPrompt = Object.fromEntries(Object.entries(frontmatter).filter(([key]) => key !== "prompt"));
57
+ const content = tomlLines({ ...frontmatterWithoutPrompt, prompt: substitutedBody }).join("\n");
58
+ return rendered([{ content, relativePath: `${input.commandName}.toml`, warnings }], warnings);
74
59
  };
75
60
  //# sourceMappingURL=render-toml.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-toml.js","sourceRoot":"","sources":["../../../../../src/unstable/commands/renderers/render-toml.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6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