@vibesdotdev/cli 0.0.2 → 1.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (907) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +261 -1
  3. package/dist/boot/action-lifetime.d.ts +16 -0
  4. package/dist/boot/action-lifetime.d.ts.map +1 -0
  5. package/dist/boot/action-lifetime.js +80 -0
  6. package/dist/boot/action-lifetime.js.map +1 -0
  7. package/dist/boot/bootstrap.d.ts +190 -0
  8. package/dist/boot/bootstrap.d.ts.map +1 -0
  9. package/dist/boot/bootstrap.js +737 -0
  10. package/dist/boot/bootstrap.js.map +1 -0
  11. package/dist/boot/cli-flags.d.ts +45 -0
  12. package/dist/boot/cli-flags.d.ts.map +1 -0
  13. package/dist/boot/cli-flags.js +113 -0
  14. package/dist/boot/cli-flags.js.map +1 -0
  15. package/dist/boot/config.d.ts +25 -0
  16. package/dist/boot/config.d.ts.map +1 -0
  17. package/dist/{config.js → boot/config.js} +1 -1
  18. package/dist/boot/config.js.map +1 -0
  19. package/dist/boot/external-url.d.ts +13 -0
  20. package/dist/boot/external-url.d.ts.map +1 -0
  21. package/dist/boot/external-url.js +66 -0
  22. package/dist/boot/external-url.js.map +1 -0
  23. package/dist/boot/host-argv.d.ts +7 -0
  24. package/dist/boot/host-argv.d.ts.map +1 -0
  25. package/dist/boot/host-argv.js +8 -0
  26. package/dist/boot/host-argv.js.map +1 -0
  27. package/dist/boot/host-bootstrap.d.ts +37 -0
  28. package/dist/boot/host-bootstrap.d.ts.map +1 -0
  29. package/dist/boot/host-bootstrap.js +60 -0
  30. package/dist/boot/host-bootstrap.js.map +1 -0
  31. package/dist/boot/providers.d.ts +35 -0
  32. package/dist/boot/providers.d.ts.map +1 -0
  33. package/dist/boot/providers.js +155 -0
  34. package/dist/boot/providers.js.map +1 -0
  35. package/dist/boot/schemas/external-url.d.ts +11 -0
  36. package/dist/boot/schemas/external-url.d.ts.map +1 -0
  37. package/dist/boot/schemas/external-url.js +3 -0
  38. package/dist/boot/schemas/external-url.js.map +1 -0
  39. package/dist/boot/schemas/host-bootstrap.d.ts +7 -0
  40. package/dist/boot/schemas/host-bootstrap.d.ts.map +1 -0
  41. package/dist/boot/schemas/host-bootstrap.js +3 -0
  42. package/dist/boot/schemas/host-bootstrap.js.map +1 -0
  43. package/dist/boot/schemas/providers.d.ts +23 -0
  44. package/dist/boot/schemas/providers.d.ts.map +1 -0
  45. package/dist/boot/schemas/providers.js +3 -0
  46. package/dist/boot/schemas/providers.js.map +1 -0
  47. package/dist/boot/schemas/types.d.ts +4 -0
  48. package/dist/boot/schemas/types.d.ts.map +1 -0
  49. package/dist/{api → boot}/schemas/types.js.map +1 -1
  50. package/dist/boot/tui-plugin-policy.d.ts +8 -0
  51. package/dist/boot/tui-plugin-policy.d.ts.map +1 -0
  52. package/dist/boot/tui-plugin-policy.js +26 -0
  53. package/dist/boot/tui-plugin-policy.js.map +1 -0
  54. package/dist/boot/version.d.ts +13 -0
  55. package/dist/boot/version.d.ts.map +1 -0
  56. package/dist/boot/version.js +14 -0
  57. package/dist/boot/version.js.map +1 -0
  58. package/dist/bun/index.d.ts +2 -0
  59. package/dist/bun/index.d.ts.map +1 -0
  60. package/dist/bun/index.js +2 -0
  61. package/dist/bun/index.js.map +1 -0
  62. package/dist/bun/interactive-host.d.ts +9 -0
  63. package/dist/bun/interactive-host.d.ts.map +1 -0
  64. package/dist/bun/interactive-host.js +18 -0
  65. package/dist/bun/interactive-host.js.map +1 -0
  66. package/dist/commands/cli.kinds.d.ts +1239 -0
  67. package/dist/commands/cli.kinds.d.ts.map +1 -0
  68. package/dist/commands/cli.kinds.js +138 -0
  69. package/dist/commands/cli.kinds.js.map +1 -0
  70. package/dist/commands/cli.plugin.d.ts +22 -0
  71. package/dist/commands/cli.plugin.d.ts.map +1 -0
  72. package/dist/commands/cli.plugin.js +138 -0
  73. package/dist/commands/cli.plugin.js.map +1 -0
  74. package/dist/commands/completion/bash.d.ts +1 -1
  75. package/dist/commands/completion/bash.d.ts.map +1 -1
  76. package/dist/commands/completion/bash.impl.consumer.d.ts +6 -0
  77. package/dist/commands/completion/bash.impl.consumer.d.ts.map +1 -0
  78. package/dist/commands/completion/bash.impl.consumer.js +6 -0
  79. package/dist/commands/completion/bash.impl.consumer.js.map +1 -0
  80. package/dist/commands/completion/bash.js +4 -2
  81. package/dist/commands/completion/bash.js.map +1 -1
  82. package/dist/commands/completion/completion.consumer.plugin.d.ts +3 -0
  83. package/dist/commands/completion/completion.consumer.plugin.d.ts.map +1 -0
  84. package/dist/commands/completion/completion.consumer.plugin.js +19 -0
  85. package/dist/commands/completion/completion.consumer.plugin.js.map +1 -0
  86. package/dist/commands/completion/completion.descriptor.d.ts +1 -2
  87. package/dist/commands/completion/completion.descriptor.d.ts.map +1 -1
  88. package/dist/commands/completion/completion.descriptor.js +11 -4
  89. package/dist/commands/completion/completion.descriptor.js.map +1 -1
  90. package/dist/commands/completion/completion.descriptors.d.ts +3 -0
  91. package/dist/commands/completion/completion.descriptors.d.ts.map +1 -0
  92. package/dist/commands/completion/completion.descriptors.js +56 -0
  93. package/dist/commands/completion/completion.descriptors.js.map +1 -0
  94. package/dist/commands/completion/completion.impl.d.ts +5 -4
  95. package/dist/commands/completion/completion.impl.d.ts.map +1 -1
  96. package/dist/commands/completion/completion.impl.js +104 -145
  97. package/dist/commands/completion/completion.impl.js.map +1 -1
  98. package/dist/commands/completion/completion.install.impl.consumer.d.ts +4 -0
  99. package/dist/commands/completion/completion.install.impl.consumer.d.ts.map +1 -0
  100. package/dist/commands/completion/completion.install.impl.consumer.js +102 -0
  101. package/dist/commands/completion/completion.install.impl.consumer.js.map +1 -0
  102. package/dist/commands/completion/completion.kinds.d.ts +43 -0
  103. package/dist/commands/completion/completion.kinds.d.ts.map +1 -0
  104. package/dist/commands/completion/completion.kinds.js +17 -0
  105. package/dist/commands/completion/completion.kinds.js.map +1 -0
  106. package/dist/commands/completion/fig.d.ts +1 -1
  107. package/dist/commands/completion/fig.d.ts.map +1 -1
  108. package/dist/commands/completion/fig.impl.consumer.d.ts +6 -0
  109. package/dist/commands/completion/fig.impl.consumer.d.ts.map +1 -0
  110. package/dist/commands/completion/fig.impl.consumer.js +6 -0
  111. package/dist/commands/completion/fig.impl.consumer.js.map +1 -0
  112. package/dist/commands/completion/fish.d.ts +1 -1
  113. package/dist/commands/completion/fish.d.ts.map +1 -1
  114. package/dist/commands/completion/fish.impl.consumer.d.ts +6 -0
  115. package/dist/commands/completion/fish.impl.consumer.d.ts.map +1 -0
  116. package/dist/commands/completion/fish.impl.consumer.js +6 -0
  117. package/dist/commands/completion/fish.impl.consumer.js.map +1 -0
  118. package/dist/commands/completion/tree.d.ts +5 -26
  119. package/dist/commands/completion/tree.d.ts.map +1 -1
  120. package/dist/commands/completion/tree.js +26 -25
  121. package/dist/commands/completion/tree.js.map +1 -1
  122. package/dist/commands/completion/zsh-widget.js +4 -4
  123. package/dist/commands/completion/zsh.d.ts +1 -1
  124. package/dist/commands/completion/zsh.d.ts.map +1 -1
  125. package/dist/commands/completion/zsh.impl.consumer.d.ts +6 -0
  126. package/dist/commands/completion/zsh.impl.consumer.d.ts.map +1 -0
  127. package/dist/commands/completion/zsh.impl.consumer.js +6 -0
  128. package/dist/commands/completion/zsh.impl.consumer.js.map +1 -0
  129. package/dist/commands/completion/zsh.js +1 -1
  130. package/dist/commands/completion/zsh.js.map +1 -1
  131. package/dist/commands/docs/cli.commands.docs.descriptor.d.ts +8 -0
  132. package/dist/commands/docs/cli.commands.docs.descriptor.d.ts.map +1 -0
  133. package/dist/commands/docs/cli.commands.docs.descriptor.js +55 -0
  134. package/dist/commands/docs/cli.commands.docs.descriptor.js.map +1 -0
  135. package/dist/commands/docs/cli.docs.descriptor.d.ts +4 -0
  136. package/dist/commands/docs/cli.docs.descriptor.d.ts.map +1 -0
  137. package/dist/commands/docs/cli.docs.descriptor.js +44 -0
  138. package/dist/commands/docs/cli.docs.descriptor.js.map +1 -0
  139. package/dist/commands/docs/cli.groups.docs.descriptor.d.ts +4 -0
  140. package/dist/commands/docs/cli.groups.docs.descriptor.d.ts.map +1 -0
  141. package/dist/commands/docs/cli.groups.docs.descriptor.js +40 -0
  142. package/dist/commands/docs/cli.groups.docs.descriptor.js.map +1 -0
  143. package/dist/commands/docs/cli.output.docs.descriptor.d.ts +4 -0
  144. package/dist/commands/docs/cli.output.docs.descriptor.d.ts.map +1 -0
  145. package/dist/commands/docs/cli.output.docs.descriptor.js +45 -0
  146. package/dist/commands/docs/cli.output.docs.descriptor.js.map +1 -0
  147. package/dist/commands/docs/content/cli-commands.json +1 -0
  148. package/dist/commands/docs/content/cli-groups.json +1 -0
  149. package/dist/commands/docs/content/cli-output.json +1 -0
  150. package/dist/commands/docs/doc-paths.d.ts +11 -0
  151. package/dist/commands/docs/doc-paths.d.ts.map +1 -0
  152. package/dist/commands/docs/doc-paths.js +32 -0
  153. package/dist/commands/docs/doc-paths.js.map +1 -0
  154. package/dist/commands/docs/generate.d.ts +48 -0
  155. package/dist/commands/docs/generate.d.ts.map +1 -0
  156. package/dist/commands/docs/generate.js +121 -0
  157. package/dist/commands/docs/generate.js.map +1 -0
  158. package/dist/commands/docs/render-command.d.ts +5 -0
  159. package/dist/commands/docs/render-command.d.ts.map +1 -0
  160. package/dist/commands/docs/render-command.js +117 -0
  161. package/dist/commands/docs/render-command.js.map +1 -0
  162. package/dist/commands/docs/render-group.d.ts +5 -0
  163. package/dist/commands/docs/render-group.d.ts.map +1 -0
  164. package/dist/commands/docs/render-group.js +62 -0
  165. package/dist/commands/docs/render-group.js.map +1 -0
  166. package/dist/commands/docs/schemas/generate.d.ts +14 -0
  167. package/dist/commands/docs/schemas/generate.d.ts.map +1 -0
  168. package/dist/commands/docs/schemas/generate.js +3 -0
  169. package/dist/commands/docs/schemas/generate.js.map +1 -0
  170. package/dist/commands/output.d.ts +27 -0
  171. package/dist/commands/output.d.ts.map +1 -0
  172. package/dist/commands/output.js +104 -0
  173. package/dist/commands/output.js.map +1 -0
  174. package/dist/commands/profile/_utils.d.ts +34 -9
  175. package/dist/commands/profile/_utils.d.ts.map +1 -1
  176. package/dist/commands/profile/_utils.js +65 -37
  177. package/dist/commands/profile/_utils.js.map +1 -1
  178. package/dist/commands/profile/profile-env.d.ts +42 -0
  179. package/dist/commands/profile/profile-env.d.ts.map +1 -0
  180. package/dist/commands/profile/profile-env.js +56 -0
  181. package/dist/commands/profile/profile-env.js.map +1 -0
  182. package/dist/commands/profile/profile-group.descriptor.d.ts +1 -1
  183. package/dist/commands/profile/profile-group.descriptor.d.ts.map +1 -1
  184. package/dist/commands/profile/profile.create.descriptor.d.ts +1 -1
  185. package/dist/commands/profile/profile.create.descriptor.d.ts.map +1 -1
  186. package/dist/commands/profile/profile.create.descriptor.js +12 -1
  187. package/dist/commands/profile/profile.create.descriptor.js.map +1 -1
  188. package/dist/commands/profile/profile.create.impl.d.ts +2 -6
  189. package/dist/commands/profile/profile.create.impl.d.ts.map +1 -1
  190. package/dist/commands/profile/profile.create.impl.js +32 -9
  191. package/dist/commands/profile/profile.create.impl.js.map +1 -1
  192. package/dist/commands/profile/profile.delete.descriptor.d.ts +1 -1
  193. package/dist/commands/profile/profile.delete.descriptor.d.ts.map +1 -1
  194. package/dist/commands/profile/profile.delete.impl.d.ts +2 -7
  195. package/dist/commands/profile/profile.delete.impl.d.ts.map +1 -1
  196. package/dist/commands/profile/profile.delete.impl.js +33 -16
  197. package/dist/commands/profile/profile.delete.impl.js.map +1 -1
  198. package/dist/commands/profile/profile.environment.descriptor.d.ts +4 -0
  199. package/dist/commands/profile/profile.environment.descriptor.d.ts.map +1 -0
  200. package/dist/commands/profile/profile.environment.descriptor.js +26 -0
  201. package/dist/commands/profile/profile.environment.descriptor.js.map +1 -0
  202. package/dist/commands/profile/profile.environment.impl.d.ts +14 -0
  203. package/dist/commands/profile/profile.environment.impl.d.ts.map +1 -0
  204. package/dist/commands/profile/profile.environment.impl.js +33 -0
  205. package/dist/commands/profile/profile.environment.impl.js.map +1 -0
  206. package/dist/commands/profile/profile.info.descriptor.d.ts +1 -1
  207. package/dist/commands/profile/profile.info.descriptor.d.ts.map +1 -1
  208. package/dist/commands/profile/profile.info.descriptor.js +5 -1
  209. package/dist/commands/profile/profile.info.descriptor.js.map +1 -1
  210. package/dist/commands/profile/profile.info.impl.d.ts +5 -2
  211. package/dist/commands/profile/profile.info.impl.d.ts.map +1 -1
  212. package/dist/commands/profile/profile.info.impl.js +31 -14
  213. package/dist/commands/profile/profile.info.impl.js.map +1 -1
  214. package/dist/commands/profile/profile.list.descriptor.d.ts +1 -1
  215. package/dist/commands/profile/profile.list.descriptor.d.ts.map +1 -1
  216. package/dist/commands/profile/profile.list.descriptor.js +5 -1
  217. package/dist/commands/profile/profile.list.descriptor.js.map +1 -1
  218. package/dist/commands/profile/profile.list.impl.d.ts +17 -2
  219. package/dist/commands/profile/profile.list.impl.d.ts.map +1 -1
  220. package/dist/commands/profile/profile.list.impl.js +52 -25
  221. package/dist/commands/profile/profile.list.impl.js.map +1 -1
  222. package/dist/commands/profile/profile.use.descriptor.d.ts +1 -1
  223. package/dist/commands/profile/profile.use.descriptor.d.ts.map +1 -1
  224. package/dist/commands/profile/profile.use.impl.d.ts +2 -6
  225. package/dist/commands/profile/profile.use.impl.d.ts.map +1 -1
  226. package/dist/commands/profile/profile.use.impl.js +40 -10
  227. package/dist/commands/profile/profile.use.impl.js.map +1 -1
  228. package/dist/commands/runtime/codegen.command.descriptor.d.ts +26 -12
  229. package/dist/commands/runtime/codegen.command.descriptor.d.ts.map +1 -1
  230. package/dist/commands/runtime/codegen.command.descriptor.js +24 -6
  231. package/dist/commands/runtime/codegen.command.descriptor.js.map +1 -1
  232. package/dist/commands/runtime/codegen.command.impl.d.ts +15 -2
  233. package/dist/commands/runtime/codegen.command.impl.d.ts.map +1 -1
  234. package/dist/commands/runtime/codegen.command.impl.js +17 -30
  235. package/dist/commands/runtime/codegen.command.impl.js.map +1 -1
  236. package/dist/commands/runtime/codegen.d.ts +10 -14
  237. package/dist/commands/runtime/codegen.d.ts.map +1 -1
  238. package/dist/commands/runtime/codegen.declarations.d.ts +6 -0
  239. package/dist/commands/runtime/codegen.declarations.d.ts.map +1 -0
  240. package/dist/commands/runtime/codegen.declarations.js +6 -0
  241. package/dist/commands/runtime/codegen.declarations.js.map +1 -0
  242. package/dist/commands/runtime/codegen.js +85 -58
  243. package/dist/commands/runtime/codegen.js.map +1 -1
  244. package/dist/commands/runtime/export/markdown-document.d.ts +25 -0
  245. package/dist/commands/runtime/export/markdown-document.d.ts.map +1 -0
  246. package/dist/commands/runtime/export/markdown-document.js +38 -0
  247. package/dist/commands/runtime/export/markdown-document.js.map +1 -0
  248. package/dist/commands/runtime/export/markdown.d.ts +17 -0
  249. package/dist/commands/runtime/export/markdown.d.ts.map +1 -0
  250. package/dist/commands/runtime/export/markdown.js +141 -0
  251. package/dist/commands/runtime/export/markdown.js.map +1 -0
  252. package/dist/commands/runtime/export/read.d.ts +27 -0
  253. package/dist/commands/runtime/export/read.d.ts.map +1 -0
  254. package/dist/commands/runtime/export/read.js +128 -0
  255. package/dist/commands/runtime/export/read.js.map +1 -0
  256. package/dist/commands/runtime/export/reading-notes.d.ts +11 -0
  257. package/dist/commands/runtime/export/reading-notes.d.ts.map +1 -0
  258. package/dist/commands/runtime/export/reading-notes.js +45 -0
  259. package/dist/commands/runtime/export/reading-notes.js.map +1 -0
  260. package/dist/commands/runtime/export/register.d.ts +34 -0
  261. package/dist/commands/runtime/export/register.d.ts.map +1 -0
  262. package/dist/commands/runtime/export/register.js +57 -0
  263. package/dist/commands/runtime/export/register.js.map +1 -0
  264. package/dist/commands/runtime/export/schemas.d.ts +104 -0
  265. package/dist/commands/runtime/export/schemas.d.ts.map +1 -0
  266. package/dist/commands/runtime/export/schemas.js +38 -0
  267. package/dist/commands/runtime/export/schemas.js.map +1 -0
  268. package/dist/commands/runtime/export/write.d.ts +16 -0
  269. package/dist/commands/runtime/export/write.d.ts.map +1 -0
  270. package/dist/commands/runtime/export/write.js +36 -0
  271. package/dist/commands/runtime/export/write.js.map +1 -0
  272. package/dist/commands/runtime/export.command.impl.d.ts +18 -0
  273. package/dist/commands/runtime/export.command.impl.d.ts.map +1 -0
  274. package/dist/commands/runtime/export.command.impl.js +39 -0
  275. package/dist/commands/runtime/export.command.impl.js.map +1 -0
  276. package/dist/commands/runtime/export.d.ts +28 -0
  277. package/dist/commands/runtime/export.d.ts.map +1 -0
  278. package/dist/commands/runtime/export.descriptor.d.ts +55 -0
  279. package/dist/commands/runtime/export.descriptor.d.ts.map +1 -0
  280. package/dist/commands/runtime/export.descriptor.js +58 -0
  281. package/dist/commands/runtime/export.descriptor.js.map +1 -0
  282. package/dist/commands/runtime/export.js +28 -0
  283. package/dist/commands/runtime/export.js.map +1 -0
  284. package/dist/commands/runtime/index.d.ts +2 -2
  285. package/dist/commands/runtime/index.d.ts.map +1 -1
  286. package/dist/commands/runtime/index.js +3 -3
  287. package/dist/commands/runtime/index.js.map +1 -1
  288. package/dist/commands/runtime/plugin.d.ts +1 -1
  289. package/dist/commands/runtime/plugin.d.ts.map +1 -1
  290. package/dist/commands/runtime/plugin.js +1 -1
  291. package/dist/commands/runtime/plugin.js.map +1 -1
  292. package/dist/commands/runtime/runtime-group.descriptor.d.ts +1 -1
  293. package/dist/commands/runtime/runtime-group.descriptor.d.ts.map +1 -1
  294. package/dist/commands/schemas/output.d.ts +26 -0
  295. package/dist/commands/schemas/output.d.ts.map +1 -0
  296. package/dist/commands/schemas/output.js +14 -0
  297. package/dist/commands/schemas/output.js.map +1 -0
  298. package/dist/commands/schemas/profile-environment.d.ts +6 -0
  299. package/dist/commands/schemas/profile-environment.d.ts.map +1 -0
  300. package/dist/commands/schemas/profile-environment.js +3 -0
  301. package/dist/commands/schemas/profile-environment.js.map +1 -0
  302. package/dist/commands/schemas/profile-list.d.ts +22 -0
  303. package/dist/commands/schemas/profile-list.d.ts.map +1 -0
  304. package/dist/commands/schemas/profile-list.js +3 -0
  305. package/dist/commands/schemas/profile-list.js.map +1 -0
  306. package/dist/commands/skills/_skills.d.ts +98 -0
  307. package/dist/commands/skills/_skills.d.ts.map +1 -0
  308. package/dist/commands/skills/_skills.js +183 -0
  309. package/dist/commands/skills/_skills.js.map +1 -0
  310. package/dist/commands/skills/skills-group.descriptor.d.ts +4 -0
  311. package/dist/commands/skills/skills-group.descriptor.d.ts.map +1 -0
  312. package/dist/commands/skills/skills-group.descriptor.js +12 -0
  313. package/dist/commands/skills/skills-group.descriptor.js.map +1 -0
  314. package/dist/commands/skills/skills.install.descriptor.d.ts +4 -0
  315. package/dist/commands/skills/skills.install.descriptor.d.ts.map +1 -0
  316. package/dist/commands/skills/skills.install.descriptor.js +37 -0
  317. package/dist/commands/skills/skills.install.descriptor.js.map +1 -0
  318. package/dist/commands/skills/skills.install.impl.d.ts +12 -0
  319. package/dist/commands/skills/skills.install.impl.d.ts.map +1 -0
  320. package/dist/commands/skills/skills.install.impl.js +65 -0
  321. package/dist/commands/skills/skills.install.impl.js.map +1 -0
  322. package/dist/commands/skills/skills.list.descriptor.d.ts +4 -0
  323. package/dist/commands/skills/skills.list.descriptor.d.ts.map +1 -0
  324. package/dist/commands/skills/skills.list.descriptor.js +23 -0
  325. package/dist/commands/skills/skills.list.descriptor.js.map +1 -0
  326. package/dist/commands/skills/skills.list.impl.d.ts +11 -0
  327. package/dist/commands/skills/skills.list.impl.d.ts.map +1 -0
  328. package/dist/commands/skills/skills.list.impl.js +69 -0
  329. package/dist/commands/skills/skills.list.impl.js.map +1 -0
  330. package/dist/core/runtime/shared/context.d.ts +16 -16
  331. package/dist/core/runtime/shared/context.d.ts.map +1 -1
  332. package/dist/core/runtime/shared/context.js +20 -35
  333. package/dist/core/runtime/shared/context.js.map +1 -1
  334. package/dist/core/runtime/shared/options.d.ts +5 -19
  335. package/dist/core/runtime/shared/options.d.ts.map +1 -1
  336. package/dist/core/runtime/shared/options.js +87 -42
  337. package/dist/core/runtime/shared/options.js.map +1 -1
  338. package/dist/design-inventory.d.ts +23 -0
  339. package/dist/design-inventory.d.ts.map +1 -0
  340. package/dist/design-inventory.js +66 -0
  341. package/dist/design-inventory.js.map +1 -0
  342. package/dist/index.d.ts +12 -21
  343. package/dist/index.d.ts.map +1 -1
  344. package/dist/index.js +15 -25
  345. package/dist/index.js.map +1 -1
  346. package/dist/invocation/client.d.ts +20 -0
  347. package/dist/invocation/client.d.ts.map +1 -0
  348. package/dist/invocation/client.js +25 -0
  349. package/dist/invocation/client.js.map +1 -0
  350. package/dist/invocation/state.d.ts +10 -0
  351. package/dist/invocation/state.d.ts.map +1 -0
  352. package/dist/invocation/state.js +32 -0
  353. package/dist/invocation/state.js.map +1 -0
  354. package/dist/patterns/builtins/config-namespace-commands.d.ts +10 -0
  355. package/dist/patterns/builtins/config-namespace-commands.d.ts.map +1 -0
  356. package/dist/patterns/builtins/config-namespace-commands.js +132 -0
  357. package/dist/patterns/builtins/config-namespace-commands.js.map +1 -0
  358. package/dist/patterns/builtins/config-namespace-output.d.ts +9 -0
  359. package/dist/patterns/builtins/config-namespace-output.d.ts.map +1 -0
  360. package/dist/patterns/builtins/config-namespace-output.js +31 -0
  361. package/dist/patterns/builtins/config-namespace-output.js.map +1 -0
  362. package/dist/patterns/builtins/config-namespace.d.ts +23 -0
  363. package/dist/patterns/builtins/config-namespace.d.ts.map +1 -0
  364. package/dist/patterns/builtins/config-namespace.js +70 -0
  365. package/dist/patterns/builtins/config-namespace.js.map +1 -0
  366. package/dist/patterns/builtins/crud-commands.d.ts +11 -0
  367. package/dist/patterns/builtins/crud-commands.d.ts.map +1 -0
  368. package/dist/patterns/builtins/crud-commands.js +105 -0
  369. package/dist/patterns/builtins/crud-commands.js.map +1 -0
  370. package/dist/patterns/builtins/crud-output.d.ts +7 -0
  371. package/dist/patterns/builtins/crud-output.d.ts.map +1 -0
  372. package/dist/patterns/builtins/crud-output.js +21 -0
  373. package/dist/patterns/builtins/crud-output.js.map +1 -0
  374. package/dist/patterns/builtins/crud.d.ts +16 -0
  375. package/dist/patterns/builtins/crud.d.ts.map +1 -0
  376. package/dist/patterns/builtins/crud.js +38 -0
  377. package/dist/patterns/builtins/crud.js.map +1 -0
  378. package/dist/patterns/{log-viewer.d.ts → builtins/log-viewer.d.ts} +5 -5
  379. package/dist/patterns/builtins/log-viewer.d.ts.map +1 -0
  380. package/dist/patterns/{log-viewer.js → builtins/log-viewer.js} +31 -9
  381. package/dist/patterns/builtins/log-viewer.js.map +1 -0
  382. package/dist/patterns/builtins/output.d.ts +5 -0
  383. package/dist/patterns/builtins/output.d.ts.map +1 -0
  384. package/dist/patterns/builtins/output.js +25 -0
  385. package/dist/patterns/builtins/output.js.map +1 -0
  386. package/dist/patterns/{process-manager.d.ts → builtins/process-manager.d.ts} +9 -4
  387. package/dist/patterns/builtins/process-manager.d.ts.map +1 -0
  388. package/dist/patterns/{process-manager.js → builtins/process-manager.js} +46 -29
  389. package/dist/patterns/builtins/process-manager.js.map +1 -0
  390. package/dist/patterns/builtins/tool-wrapper.d.ts +18 -0
  391. package/dist/patterns/builtins/tool-wrapper.d.ts.map +1 -0
  392. package/dist/patterns/builtins/tool-wrapper.js +124 -0
  393. package/dist/patterns/builtins/tool-wrapper.js.map +1 -0
  394. package/dist/patterns/cli-value.d.ts +3 -0
  395. package/dist/patterns/cli-value.d.ts.map +1 -0
  396. package/dist/patterns/cli-value.js +42 -0
  397. package/dist/patterns/cli-value.js.map +1 -0
  398. package/dist/patterns/index.d.ts +5 -9
  399. package/dist/patterns/index.d.ts.map +1 -1
  400. package/dist/patterns/index.js +5 -9
  401. package/dist/patterns/index.js.map +1 -1
  402. package/dist/patterns/pattern.kinds.d.ts +30 -0
  403. package/dist/patterns/pattern.kinds.d.ts.map +1 -0
  404. package/dist/patterns/pattern.kinds.js +8 -0
  405. package/dist/patterns/pattern.kinds.js.map +1 -0
  406. package/dist/patterns/resolver.d.ts +11 -32
  407. package/dist/patterns/resolver.d.ts.map +1 -1
  408. package/dist/patterns/resolver.js +14 -45
  409. package/dist/patterns/resolver.js.map +1 -1
  410. package/dist/patterns/schemas.d.ts +9 -492
  411. package/dist/patterns/schemas.d.ts.map +1 -1
  412. package/dist/patterns/schemas.js +5 -94
  413. package/dist/patterns/schemas.js.map +1 -1
  414. package/dist/schemas/bootstrap.d.ts +242 -0
  415. package/dist/schemas/bootstrap.d.ts.map +1 -0
  416. package/dist/schemas/bootstrap.js +7 -0
  417. package/dist/schemas/bootstrap.js.map +1 -0
  418. package/dist/schemas/command-implementation.d.ts +34 -0
  419. package/dist/schemas/command-implementation.d.ts.map +1 -0
  420. package/dist/schemas/command-implementation.js +31 -0
  421. package/dist/schemas/command-implementation.js.map +1 -0
  422. package/dist/schemas/command-recommendations.d.ts +9 -0
  423. package/dist/schemas/command-recommendations.d.ts.map +1 -0
  424. package/dist/schemas/command-recommendations.js +14 -0
  425. package/dist/schemas/command-recommendations.js.map +1 -0
  426. package/dist/schemas/completion.d.ts +118 -0
  427. package/dist/schemas/completion.d.ts.map +1 -0
  428. package/dist/schemas/completion.js +63 -0
  429. package/dist/schemas/completion.js.map +1 -0
  430. package/dist/schemas/descriptors.d.ts +1 -129
  431. package/dist/schemas/descriptors.d.ts.map +1 -1
  432. package/dist/schemas/descriptors.js +1 -95
  433. package/dist/schemas/descriptors.js.map +1 -1
  434. package/dist/schemas/design-inventory.d.ts +20 -0
  435. package/dist/schemas/design-inventory.d.ts.map +1 -0
  436. package/dist/schemas/design-inventory.js +10 -0
  437. package/dist/schemas/design-inventory.js.map +1 -0
  438. package/dist/schemas/discovery.d.ts +17 -0
  439. package/dist/schemas/discovery.d.ts.map +1 -0
  440. package/dist/schemas/discovery.js +15 -0
  441. package/dist/schemas/discovery.js.map +1 -0
  442. package/dist/schemas/exit.d.ts +33 -0
  443. package/dist/schemas/exit.d.ts.map +1 -0
  444. package/dist/schemas/exit.js +20 -0
  445. package/dist/schemas/exit.js.map +1 -0
  446. package/dist/schemas/interactive-host.d.ts +10 -0
  447. package/dist/schemas/interactive-host.d.ts.map +1 -0
  448. package/dist/schemas/interactive-host.js +11 -0
  449. package/dist/schemas/interactive-host.js.map +1 -0
  450. package/dist/schemas/output-format.d.ts +61 -0
  451. package/dist/schemas/output-format.d.ts.map +1 -0
  452. package/dist/schemas/output-format.js +26 -0
  453. package/dist/schemas/output-format.js.map +1 -0
  454. package/dist/schemas/pattern-implementation.d.ts +1572 -0
  455. package/dist/schemas/pattern-implementation.d.ts.map +1 -0
  456. package/dist/schemas/pattern-implementation.js +12 -0
  457. package/dist/schemas/pattern-implementation.js.map +1 -0
  458. package/dist/schemas/pattern-input.d.ts +152 -0
  459. package/dist/schemas/pattern-input.d.ts.map +1 -0
  460. package/dist/schemas/pattern-input.js +194 -0
  461. package/dist/schemas/pattern-input.js.map +1 -0
  462. package/dist/schemas/pm-context.d.ts +17 -0
  463. package/dist/schemas/pm-context.d.ts.map +1 -0
  464. package/dist/schemas/pm-context.js +13 -0
  465. package/dist/schemas/pm-context.js.map +1 -0
  466. package/dist/schemas/prompts.d.ts +61 -0
  467. package/dist/schemas/prompts.d.ts.map +1 -0
  468. package/dist/schemas/prompts.js +43 -0
  469. package/dist/schemas/prompts.js.map +1 -0
  470. package/dist/schemas/runtime-codegen.d.ts +191 -0
  471. package/dist/schemas/runtime-codegen.d.ts.map +1 -0
  472. package/dist/schemas/runtime-codegen.js +83 -0
  473. package/dist/schemas/runtime-codegen.js.map +1 -0
  474. package/dist/schemas/surface.d.ts +33 -20
  475. package/dist/schemas/surface.d.ts.map +1 -1
  476. package/dist/schemas/surface.js +2 -1
  477. package/dist/schemas/surface.js.map +1 -1
  478. package/dist/schemas/terminal-input.d.ts +15 -0
  479. package/dist/schemas/terminal-input.d.ts.map +1 -0
  480. package/dist/schemas/terminal-input.js +13 -0
  481. package/dist/schemas/terminal-input.js.map +1 -0
  482. package/dist/schemas/types.d.ts +1 -201
  483. package/dist/schemas/types.d.ts.map +1 -1
  484. package/dist/support/cli-inventory.generated.d.ts +4 -0
  485. package/dist/support/cli-inventory.generated.d.ts.map +1 -0
  486. package/dist/support/cli-inventory.generated.js +31 -0
  487. package/dist/support/cli-inventory.generated.js.map +1 -0
  488. package/dist/support/logging/cli-startup.logger.descriptor.d.ts.map +1 -0
  489. package/dist/support/logging/cli-startup.logger.descriptor.js.map +1 -0
  490. package/dist/support/logging/logging.d.ts +8 -0
  491. package/dist/support/logging/logging.d.ts.map +1 -0
  492. package/dist/support/logging/logging.js +13 -0
  493. package/dist/support/logging/logging.js.map +1 -0
  494. package/dist/support/terminal-input.d.ts +11 -0
  495. package/dist/support/terminal-input.d.ts.map +1 -0
  496. package/dist/support/terminal-input.js +39 -0
  497. package/dist/support/terminal-input.js.map +1 -0
  498. package/dist/support/ui/context.descriptor.d.ts +35 -0
  499. package/dist/support/ui/context.descriptor.d.ts.map +1 -0
  500. package/dist/{ui.context.descriptor.js → support/ui/context.descriptor.js} +2 -2
  501. package/dist/support/ui/context.descriptor.js.map +1 -0
  502. package/dist/support/ui/format.client.d.ts +42 -0
  503. package/dist/support/ui/format.client.d.ts.map +1 -0
  504. package/dist/support/ui/format.client.js +92 -0
  505. package/dist/support/ui/format.client.js.map +1 -0
  506. package/dist/support/ui/format.kinds.d.ts +30 -0
  507. package/dist/support/ui/format.kinds.d.ts.map +1 -0
  508. package/dist/support/ui/format.kinds.js +8 -0
  509. package/dist/support/ui/format.kinds.js.map +1 -0
  510. package/dist/support/ui/format.plugin.d.ts +7 -0
  511. package/dist/support/ui/format.plugin.d.ts.map +1 -0
  512. package/dist/support/ui/format.plugin.js +23 -0
  513. package/dist/support/ui/format.plugin.js.map +1 -0
  514. package/dist/support/ui/formats.d.ts +4 -0
  515. package/dist/support/ui/formats.d.ts.map +1 -0
  516. package/dist/support/ui/formats.js +34 -0
  517. package/dist/support/ui/formats.js.map +1 -0
  518. package/dist/support/ui/prompts.d.ts +9 -0
  519. package/dist/support/ui/prompts.d.ts.map +1 -0
  520. package/dist/support/ui/prompts.js +99 -0
  521. package/dist/support/ui/prompts.js.map +1 -0
  522. package/dist/support/ui/schemas/types.d.ts +2 -0
  523. package/dist/support/ui/schemas/types.d.ts.map +1 -0
  524. package/dist/support/ui/schemas/types.js.map +1 -0
  525. package/dist/support/ui/schemas/ui-toolkit.d.ts +45 -0
  526. package/dist/support/ui/schemas/ui-toolkit.d.ts.map +1 -0
  527. package/dist/support/ui/schemas/ui-toolkit.js +2 -0
  528. package/dist/support/ui/schemas/ui-toolkit.js.map +1 -0
  529. package/dist/support/ui/showcase.d.ts +18 -0
  530. package/dist/support/ui/showcase.d.ts.map +1 -0
  531. package/dist/support/ui/showcase.js +101 -0
  532. package/dist/support/ui/showcase.js.map +1 -0
  533. package/dist/support/ui/table.d.ts +28 -0
  534. package/dist/support/ui/table.d.ts.map +1 -0
  535. package/dist/support/ui/table.js +74 -0
  536. package/dist/support/ui/table.js.map +1 -0
  537. package/dist/support/ui/toolkit.d.ts +56 -0
  538. package/dist/support/ui/toolkit.d.ts.map +1 -0
  539. package/dist/support/ui/toolkit.js +130 -0
  540. package/dist/support/ui/toolkit.js.map +1 -0
  541. package/dist/support/vibesdev/index.d.ts +2 -0
  542. package/dist/support/vibesdev/index.d.ts.map +1 -0
  543. package/dist/support/vibesdev/index.js +3 -0
  544. package/dist/support/vibesdev/index.js.map +1 -0
  545. package/dist/surface/CLISurface.d.ts +77 -3
  546. package/dist/surface/CLISurface.d.ts.map +1 -1
  547. package/dist/surface/CLISurface.js +642 -98
  548. package/dist/surface/CLISurface.js.map +1 -1
  549. package/dist/surface/argument-name.d.ts +14 -0
  550. package/dist/surface/argument-name.d.ts.map +1 -0
  551. package/dist/surface/argument-name.js +23 -0
  552. package/dist/surface/argument-name.js.map +1 -0
  553. package/dist/surface/attach-tui-action.d.ts +35 -9
  554. package/dist/surface/attach-tui-action.d.ts.map +1 -1
  555. package/dist/surface/attach-tui-action.js +50 -43
  556. package/dist/surface/attach-tui-action.js.map +1 -1
  557. package/dist/surface/build-context.d.ts +2 -2
  558. package/dist/surface/build-context.d.ts.map +1 -1
  559. package/dist/surface/build-context.js +26 -44
  560. package/dist/surface/build-context.js.map +1 -1
  561. package/dist/surface/command-group-policy.d.ts +2 -3
  562. package/dist/surface/command-group-policy.d.ts.map +1 -1
  563. package/dist/surface/command-group-policy.js +1 -11
  564. package/dist/surface/command-group-policy.js.map +1 -1
  565. package/dist/surface/command-implementation.d.ts +9 -0
  566. package/dist/surface/command-implementation.d.ts.map +1 -0
  567. package/dist/surface/command-implementation.js +19 -0
  568. package/dist/surface/command-implementation.js.map +1 -0
  569. package/dist/surface/command-options.d.ts +29 -0
  570. package/dist/surface/command-options.d.ts.map +1 -0
  571. package/dist/surface/command-options.js +57 -0
  572. package/dist/surface/command-options.js.map +1 -0
  573. package/dist/surface/commander-action.d.ts +25 -0
  574. package/dist/surface/commander-action.d.ts.map +1 -0
  575. package/dist/surface/commander-action.js +38 -0
  576. package/dist/surface/commander-action.js.map +1 -0
  577. package/dist/surface/discovery-cache.d.ts +3 -15
  578. package/dist/surface/discovery-cache.d.ts.map +1 -1
  579. package/dist/surface/discovery-cache.js +6 -33
  580. package/dist/surface/discovery-cache.js.map +1 -1
  581. package/dist/surface/exit.d.ts +10 -0
  582. package/dist/surface/exit.d.ts.map +1 -0
  583. package/dist/surface/exit.js +33 -0
  584. package/dist/surface/exit.js.map +1 -0
  585. package/dist/surface/failure-of.d.ts +9 -0
  586. package/dist/surface/failure-of.d.ts.map +1 -0
  587. package/dist/surface/failure-of.js +17 -0
  588. package/dist/surface/failure-of.js.map +1 -0
  589. package/dist/surface/failure-output.d.ts +50 -0
  590. package/dist/surface/failure-output.d.ts.map +1 -0
  591. package/dist/surface/failure-output.js +84 -0
  592. package/dist/surface/failure-output.js.map +1 -0
  593. package/dist/surface/failure-report.d.ts +78 -0
  594. package/dist/surface/failure-report.d.ts.map +1 -0
  595. package/dist/surface/failure-report.js +229 -0
  596. package/dist/surface/failure-report.js.map +1 -0
  597. package/dist/surface/group-fallback.d.ts +32 -0
  598. package/dist/surface/group-fallback.d.ts.map +1 -0
  599. package/dist/surface/group-fallback.js +78 -0
  600. package/dist/surface/group-fallback.js.map +1 -0
  601. package/dist/surface/index.d.ts +10 -0
  602. package/dist/surface/index.d.ts.map +1 -0
  603. package/dist/surface/index.js +8 -0
  604. package/dist/surface/index.js.map +1 -0
  605. package/dist/surface/inherited-options.d.ts +28 -0
  606. package/dist/surface/inherited-options.d.ts.map +1 -0
  607. package/dist/surface/inherited-options.js +108 -0
  608. package/dist/surface/inherited-options.js.map +1 -0
  609. package/dist/surface/interactive-gate.d.ts +41 -0
  610. package/dist/surface/interactive-gate.d.ts.map +1 -0
  611. package/dist/surface/interactive-gate.js +112 -0
  612. package/dist/surface/interactive-gate.js.map +1 -0
  613. package/dist/surface/invocation-actions.d.ts +40 -0
  614. package/dist/surface/invocation-actions.d.ts.map +1 -0
  615. package/dist/surface/invocation-actions.js +78 -0
  616. package/dist/surface/invocation-actions.js.map +1 -0
  617. package/dist/surface/invocation-effects.d.ts +11 -0
  618. package/dist/surface/invocation-effects.d.ts.map +1 -0
  619. package/dist/surface/invocation-effects.js +52 -0
  620. package/dist/surface/invocation-effects.js.map +1 -0
  621. package/dist/surface/invocation-lifecycle.d.ts +49 -0
  622. package/dist/surface/invocation-lifecycle.d.ts.map +1 -0
  623. package/dist/surface/invocation-lifecycle.js +127 -0
  624. package/dist/surface/invocation-lifecycle.js.map +1 -0
  625. package/dist/surface/output-format-request.d.ts +23 -0
  626. package/dist/surface/output-format-request.d.ts.map +1 -0
  627. package/dist/surface/output-format-request.js +116 -0
  628. package/dist/surface/output-format-request.js.map +1 -0
  629. package/dist/surface/pm-context.d.ts +5 -0
  630. package/dist/surface/pm-context.d.ts.map +1 -0
  631. package/dist/surface/pm-context.js +69 -0
  632. package/dist/surface/pm-context.js.map +1 -0
  633. package/dist/surface/register-commands.d.ts +24 -4
  634. package/dist/surface/register-commands.d.ts.map +1 -1
  635. package/dist/surface/register-commands.js +156 -63
  636. package/dist/surface/register-commands.js.map +1 -1
  637. package/dist/surface/register-groups.d.ts +4 -4
  638. package/dist/surface/register-groups.d.ts.map +1 -1
  639. package/dist/surface/register-groups.js +71 -9
  640. package/dist/surface/register-groups.js.map +1 -1
  641. package/dist/surface/schemas/CLISurface.d.ts +31 -0
  642. package/dist/surface/schemas/CLISurface.d.ts.map +1 -0
  643. package/dist/surface/schemas/CLISurface.js +2 -0
  644. package/dist/surface/schemas/CLISurface.js.map +1 -0
  645. package/dist/surface/schemas/command-implementation.d.ts +20 -0
  646. package/dist/surface/schemas/command-implementation.d.ts.map +1 -0
  647. package/dist/surface/schemas/command-implementation.js +2 -0
  648. package/dist/surface/schemas/command-implementation.js.map +1 -0
  649. package/dist/surface/schemas/interactive-gate.d.ts +29 -0
  650. package/dist/surface/schemas/interactive-gate.d.ts.map +1 -0
  651. package/dist/surface/schemas/interactive-gate.js +2 -0
  652. package/dist/surface/schemas/interactive-gate.js.map +1 -0
  653. package/package.json +273 -136
  654. package/bin/vibes.ts +0 -26
  655. package/dist/api/client/factory.d.ts +0 -29
  656. package/dist/api/client/factory.d.ts.map +0 -1
  657. package/dist/api/client/factory.js +0 -189
  658. package/dist/api/client/factory.js.map +0 -1
  659. package/dist/api/schemas/common.d.ts +0 -58
  660. package/dist/api/schemas/common.d.ts.map +0 -1
  661. package/dist/api/schemas/common.js +0 -48
  662. package/dist/api/schemas/common.js.map +0 -1
  663. package/dist/api/schemas/types.d.ts +0 -30
  664. package/dist/api/schemas/types.d.ts.map +0 -1
  665. package/dist/api/services/api.d.ts +0 -14
  666. package/dist/api/services/api.d.ts.map +0 -1
  667. package/dist/api/services/api.js +0 -110
  668. package/dist/api/services/api.js.map +0 -1
  669. package/dist/api/types.d.ts +0 -6
  670. package/dist/api/types.d.ts.map +0 -1
  671. package/dist/api/types.js +0 -5
  672. package/dist/api/types.js.map +0 -1
  673. package/dist/bin.d.ts +0 -28
  674. package/dist/bin.d.ts.map +0 -1
  675. package/dist/bin.js +0 -73
  676. package/dist/bin.js.map +0 -1
  677. package/dist/bootstrap.d.ts +0 -14
  678. package/dist/bootstrap.d.ts.map +0 -1
  679. package/dist/bootstrap.js +0 -14
  680. package/dist/bootstrap.js.map +0 -1
  681. package/dist/cli.plugin.d.ts +0 -20
  682. package/dist/cli.plugin.d.ts.map +0 -1
  683. package/dist/cli.plugin.js +0 -170
  684. package/dist/cli.plugin.js.map +0 -1
  685. package/dist/commands/runtime/_logging.d.ts +0 -11
  686. package/dist/commands/runtime/_logging.d.ts.map +0 -1
  687. package/dist/commands/runtime/_logging.js +0 -40
  688. package/dist/commands/runtime/_logging.js.map +0 -1
  689. package/dist/config.d.ts +0 -17
  690. package/dist/config.d.ts.map +0 -1
  691. package/dist/config.js.map +0 -1
  692. package/dist/core/index.d.ts +0 -9
  693. package/dist/core/index.d.ts.map +0 -1
  694. package/dist/core/index.js +0 -5
  695. package/dist/core/index.js.map +0 -1
  696. package/dist/core/namespace/hook.d.ts +0 -12
  697. package/dist/core/namespace/hook.d.ts.map +0 -1
  698. package/dist/core/namespace/hook.js +0 -15
  699. package/dist/core/namespace/hook.js.map +0 -1
  700. package/dist/core/namespace/index.d.ts +0 -18
  701. package/dist/core/namespace/index.d.ts.map +0 -1
  702. package/dist/core/namespace/index.js +0 -214
  703. package/dist/core/namespace/index.js.map +0 -1
  704. package/dist/core/namespace/schemas/index.d.ts +0 -25
  705. package/dist/core/namespace/schemas/index.d.ts.map +0 -1
  706. package/dist/core/namespace/schemas/index.js +0 -2
  707. package/dist/core/namespace/schemas/index.js.map +0 -1
  708. package/dist/core/plugins/types.d.ts +0 -81
  709. package/dist/core/plugins/types.d.ts.map +0 -1
  710. package/dist/core/plugins/types.js +0 -6
  711. package/dist/core/plugins/types.js.map +0 -1
  712. package/dist/core/runtime/context.d.ts +0 -25
  713. package/dist/core/runtime/context.d.ts.map +0 -1
  714. package/dist/core/runtime/context.js +0 -30
  715. package/dist/core/runtime/context.js.map +0 -1
  716. package/dist/core/runtime/hooks.d.ts +0 -12
  717. package/dist/core/runtime/hooks.d.ts.map +0 -1
  718. package/dist/core/runtime/hooks.js +0 -2
  719. package/dist/core/runtime/hooks.js.map +0 -1
  720. package/dist/core/schemas/manifest.d.ts +0 -24
  721. package/dist/core/schemas/manifest.d.ts.map +0 -1
  722. package/dist/core/schemas/manifest.js +0 -6
  723. package/dist/core/schemas/manifest.js.map +0 -1
  724. package/dist/core/schemas/types.d.ts +0 -7
  725. package/dist/core/schemas/types.d.ts.map +0 -1
  726. package/dist/core/schemas/types.js.map +0 -1
  727. package/dist/core/ui/interface.d.ts +0 -12
  728. package/dist/core/ui/interface.d.ts.map +0 -1
  729. package/dist/core/ui/interface.js +0 -6
  730. package/dist/core/ui/interface.js.map +0 -1
  731. package/dist/docs/cli.commands.docs.descriptor.d.ts +0 -4
  732. package/dist/docs/cli.commands.docs.descriptor.d.ts.map +0 -1
  733. package/dist/docs/cli.commands.docs.descriptor.js +0 -207
  734. package/dist/docs/cli.commands.docs.descriptor.js.map +0 -1
  735. package/dist/docs/cli.groups.docs.descriptor.d.ts +0 -4
  736. package/dist/docs/cli.groups.docs.descriptor.d.ts.map +0 -1
  737. package/dist/docs/cli.groups.docs.descriptor.js +0 -330
  738. package/dist/docs/cli.groups.docs.descriptor.js.map +0 -1
  739. package/dist/docs/cli.output.docs.descriptor.d.ts +0 -4
  740. package/dist/docs/cli.output.docs.descriptor.d.ts.map +0 -1
  741. package/dist/docs/cli.output.docs.descriptor.js +0 -442
  742. package/dist/docs/cli.output.docs.descriptor.js.map +0 -1
  743. package/dist/docs/types.d.ts +0 -19
  744. package/dist/docs/types.d.ts.map +0 -1
  745. package/dist/docs/types.js +0 -2
  746. package/dist/docs/types.js.map +0 -1
  747. package/dist/errors.d.ts +0 -74
  748. package/dist/errors.d.ts.map +0 -1
  749. package/dist/errors.js +0 -113
  750. package/dist/errors.js.map +0 -1
  751. package/dist/logging/cli-startup.logger.descriptor.d.ts.map +0 -1
  752. package/dist/logging/cli-startup.logger.descriptor.js.map +0 -1
  753. package/dist/logging.d.ts +0 -4
  754. package/dist/logging.d.ts.map +0 -1
  755. package/dist/logging.js +0 -21
  756. package/dist/logging.js.map +0 -1
  757. package/dist/patterns/config-namespace.d.ts +0 -23
  758. package/dist/patterns/config-namespace.d.ts.map +0 -1
  759. package/dist/patterns/config-namespace.js +0 -218
  760. package/dist/patterns/config-namespace.js.map +0 -1
  761. package/dist/patterns/crud.d.ts +0 -23
  762. package/dist/patterns/crud.d.ts.map +0 -1
  763. package/dist/patterns/crud.js +0 -164
  764. package/dist/patterns/crud.js.map +0 -1
  765. package/dist/patterns/log-viewer.d.ts.map +0 -1
  766. package/dist/patterns/log-viewer.js.map +0 -1
  767. package/dist/patterns/pattern-types.d.ts +0 -21
  768. package/dist/patterns/pattern-types.d.ts.map +0 -1
  769. package/dist/patterns/pattern-types.js +0 -7
  770. package/dist/patterns/pattern-types.js.map +0 -1
  771. package/dist/patterns/process-manager.d.ts.map +0 -1
  772. package/dist/patterns/process-manager.js.map +0 -1
  773. package/dist/patterns/resolver.contracts.d.ts +0 -14
  774. package/dist/patterns/resolver.contracts.d.ts.map +0 -1
  775. package/dist/patterns/resolver.contracts.js +0 -9
  776. package/dist/patterns/resolver.contracts.js.map +0 -1
  777. package/dist/patterns/tool-wrapper.d.ts +0 -18
  778. package/dist/patterns/tool-wrapper.d.ts.map +0 -1
  779. package/dist/patterns/tool-wrapper.js +0 -130
  780. package/dist/patterns/tool-wrapper.js.map +0 -1
  781. package/dist/providers.d.ts +0 -105
  782. package/dist/providers.d.ts.map +0 -1
  783. package/dist/providers.js +0 -164
  784. package/dist/providers.js.map +0 -1
  785. package/dist/support/ui-toolkit.d.ts +0 -62
  786. package/dist/support/ui-toolkit.d.ts.map +0 -1
  787. package/dist/support/ui-toolkit.js +0 -172
  788. package/dist/support/ui-toolkit.js.map +0 -1
  789. package/dist/surface.d.ts +0 -9
  790. package/dist/surface.d.ts.map +0 -1
  791. package/dist/surface.js +0 -8
  792. package/dist/surface.js.map +0 -1
  793. package/dist/types.d.ts +0 -4
  794. package/dist/types.d.ts.map +0 -1
  795. package/dist/types.js +0 -2
  796. package/dist/types.js.map +0 -1
  797. package/dist/ui/schemas/types.d.ts +0 -2
  798. package/dist/ui/schemas/types.d.ts.map +0 -1
  799. package/dist/ui/schemas/types.js +0 -2
  800. package/dist/ui/schemas/types.js.map +0 -1
  801. package/dist/ui/toolkit/VibesUIToolkit.d.ts +0 -2
  802. package/dist/ui/toolkit/VibesUIToolkit.d.ts.map +0 -1
  803. package/dist/ui/toolkit/VibesUIToolkit.js +0 -2
  804. package/dist/ui/toolkit/VibesUIToolkit.js.map +0 -1
  805. package/dist/ui.context.descriptor.d.ts +0 -21
  806. package/dist/ui.context.descriptor.d.ts.map +0 -1
  807. package/dist/ui.context.descriptor.js.map +0 -1
  808. package/dist/utils/open.d.ts +0 -2
  809. package/dist/utils/open.d.ts.map +0 -1
  810. package/dist/utils/open.js +0 -30
  811. package/dist/utils/open.js.map +0 -1
  812. package/dist/version.d.ts +0 -2
  813. package/dist/version.d.ts.map +0 -1
  814. package/dist/version.js +0 -2
  815. package/dist/version.js.map +0 -1
  816. package/src/api/client/factory.ts +0 -265
  817. package/src/api/schemas/common.ts +0 -50
  818. package/src/api/schemas/types.ts +0 -32
  819. package/src/api/services/api.ts +0 -129
  820. package/src/api/types.ts +0 -12
  821. package/src/bin.ts +0 -84
  822. package/src/bootstrap.ts +0 -19
  823. package/src/cli.plugin.d.ts +0 -19
  824. package/src/cli.plugin.ts +0 -202
  825. package/src/commands/completion/bash.ts +0 -68
  826. package/src/commands/completion/completion.descriptor.ts +0 -48
  827. package/src/commands/completion/completion.impl.ts +0 -188
  828. package/src/commands/completion/fig.ts +0 -78
  829. package/src/commands/completion/fish.ts +0 -52
  830. package/src/commands/completion/tree.ts +0 -115
  831. package/src/commands/completion/zsh-widget.ts +0 -39
  832. package/src/commands/completion/zsh.ts +0 -165
  833. package/src/commands/profile/_utils.ts +0 -72
  834. package/src/commands/profile/profile-group.descriptor.ts +0 -14
  835. package/src/commands/profile/profile.create.descriptor.ts +0 -24
  836. package/src/commands/profile/profile.create.impl.ts +0 -44
  837. package/src/commands/profile/profile.delete.descriptor.ts +0 -31
  838. package/src/commands/profile/profile.delete.impl.ts +0 -71
  839. package/src/commands/profile/profile.info.descriptor.ts +0 -25
  840. package/src/commands/profile/profile.info.impl.ts +0 -51
  841. package/src/commands/profile/profile.list.descriptor.ts +0 -18
  842. package/src/commands/profile/profile.list.impl.ts +0 -46
  843. package/src/commands/profile/profile.use.descriptor.ts +0 -25
  844. package/src/commands/profile/profile.use.impl.ts +0 -39
  845. package/src/commands/runtime/_logging.ts +0 -47
  846. package/src/commands/runtime/codegen.command.descriptor.ts +0 -18
  847. package/src/commands/runtime/codegen.command.impl.ts +0 -44
  848. package/src/commands/runtime/codegen.ts +0 -84
  849. package/src/commands/runtime/index.ts +0 -14
  850. package/src/commands/runtime/plugin.ts +0 -7
  851. package/src/commands/runtime/runtime-group.descriptor.ts +0 -12
  852. package/src/config.ts +0 -22
  853. package/src/core/index.ts +0 -9
  854. package/src/core/namespace/hook.ts +0 -25
  855. package/src/core/namespace/index.ts +0 -298
  856. package/src/core/namespace/schemas/index.ts +0 -25
  857. package/src/core/plugins/types.ts +0 -87
  858. package/src/core/runtime/context.ts +0 -50
  859. package/src/core/runtime/hooks.ts +0 -12
  860. package/src/core/runtime/shared/context.ts +0 -65
  861. package/src/core/runtime/shared/options.ts +0 -60
  862. package/src/core/schemas/manifest.ts +0 -26
  863. package/src/core/schemas/types.ts +0 -6
  864. package/src/core/ui/interface.ts +0 -12
  865. package/src/docs/cli.commands.docs.descriptor.ts +0 -210
  866. package/src/docs/cli.groups.docs.descriptor.ts +0 -333
  867. package/src/docs/cli.output.docs.descriptor.ts +0 -445
  868. package/src/docs/types.ts +0 -18
  869. package/src/errors.ts +0 -123
  870. package/src/index.ts +0 -76
  871. package/src/logging/cli-startup.logger.descriptor.ts +0 -16
  872. package/src/logging.ts +0 -35
  873. package/src/patterns/config-namespace.ts +0 -251
  874. package/src/patterns/crud.ts +0 -217
  875. package/src/patterns/index.ts +0 -24
  876. package/src/patterns/log-viewer.ts +0 -118
  877. package/src/patterns/pattern-types.ts +0 -22
  878. package/src/patterns/process-manager.ts +0 -180
  879. package/src/patterns/resolver.contracts.ts +0 -15
  880. package/src/patterns/resolver.ts +0 -86
  881. package/src/patterns/schemas.ts +0 -146
  882. package/src/patterns/tool-wrapper.ts +0 -165
  883. package/src/providers.ts +0 -282
  884. package/src/schemas/descriptors.d.ts +0 -119
  885. package/src/schemas/descriptors.ts +0 -136
  886. package/src/schemas/surface.ts +0 -52
  887. package/src/schemas/types.d.ts +0 -195
  888. package/src/schemas/types.ts +0 -225
  889. package/src/support/ui-toolkit.ts +0 -224
  890. package/src/surface/CLISurface.ts +0 -193
  891. package/src/surface/attach-tui-action.ts +0 -76
  892. package/src/surface/build-context.ts +0 -49
  893. package/src/surface/command-group-policy.ts +0 -52
  894. package/src/surface/discovery-cache.ts +0 -143
  895. package/src/surface/register-commands.ts +0 -266
  896. package/src/surface/register-groups.ts +0 -84
  897. package/src/surface.ts +0 -9
  898. package/src/types.ts +0 -3
  899. package/src/ui/schemas/types.ts +0 -1
  900. package/src/ui/toolkit/VibesUIToolkit.ts +0 -1
  901. package/src/ui.context.descriptor.ts +0 -13
  902. package/src/utils/open.ts +0 -36
  903. package/src/version.ts +0 -10
  904. /package/dist/{api → boot}/schemas/types.js +0 -0
  905. /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.d.ts +0 -0
  906. /package/dist/{logging → support/logging}/cli-startup.logger.descriptor.js +0 -0
  907. /package/dist/{core → support/ui}/schemas/types.js +0 -0
@@ -0,0 +1,55 @@
1
+ export declare const runtimeExportCommandDescriptor: {
2
+ readonly id: "runtime-export";
3
+ readonly kind: "cli/command";
4
+ readonly name: "export";
5
+ readonly description: "Export what this runtime holds: plugins, kinds, descriptors, loaders, scope";
6
+ readonly group: "runtime";
7
+ readonly arguments: [{
8
+ readonly name: "path";
9
+ readonly description: "Destination path; relative paths resolve against the workspace root, otherwise the declared runtime cwd (same as --output)";
10
+ }];
11
+ readonly options: [{
12
+ readonly flags: "-o, --output <path>";
13
+ readonly description: "Write to this path (relative paths resolve against the workspace root, otherwise the declared runtime cwd)";
14
+ readonly type: "string";
15
+ }, {
16
+ readonly flags: "-f, --format <format>";
17
+ readonly description: "Output format: markdown | json (default: from the output extension, else markdown)";
18
+ readonly type: "string";
19
+ readonly choices: ["markdown", "json"];
20
+ }, {
21
+ readonly flags: "-k, --kind <kind>";
22
+ readonly description: "Restrict the descriptor detail to one kind";
23
+ readonly type: "string";
24
+ }, {
25
+ readonly flags: "--no-kinds";
26
+ readonly description: "Omit the kind section";
27
+ readonly type: "boolean";
28
+ }, {
29
+ readonly flags: "--no-plugins";
30
+ readonly description: "Omit the plugin section";
31
+ readonly type: "boolean";
32
+ }, {
33
+ readonly flags: "--no-descriptors";
34
+ readonly description: "Omit the descriptor table, keeping the counts";
35
+ readonly type: "boolean";
36
+ }, {
37
+ readonly flags: "-v, --verbose";
38
+ readonly description: "Enable verbose logging";
39
+ readonly type: "boolean";
40
+ }];
41
+ readonly examples: [{
42
+ readonly command: "vibes runtime export RUNTIME-REFERENCE.md";
43
+ readonly description: "Write the full reference for this workspace";
44
+ }, {
45
+ readonly command: "vibes runtime export -f json";
46
+ readonly description: "Print the same facts as JSON, for something that diffs them";
47
+ }, {
48
+ readonly command: "vibes runtime export --kind tools/tool";
49
+ readonly description: "Report one kind and every descriptor it holds";
50
+ }];
51
+ readonly surfaces: ["cli"];
52
+ readonly hardware: readonly ["consumer"];
53
+ readonly enabled: true;
54
+ };
55
+ //# sourceMappingURL=export.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/export.descriptor.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuDzC,CAAC"}
@@ -0,0 +1,58 @@
1
+ import { createRuntimeAsset } from '@vibesdotdev/kernel';
2
+ export const runtimeExportCommandDescriptor = createRuntimeAsset({
3
+ id: 'runtime-export',
4
+ kind: 'cli/command',
5
+ name: 'export',
6
+ description: 'Export what this runtime holds: plugins, kinds, descriptors, loaders, scope',
7
+ group: 'runtime',
8
+ arguments: [
9
+ {
10
+ name: 'path',
11
+ description: 'Destination path; relative paths resolve against the workspace root, otherwise the declared runtime cwd (same as --output)'
12
+ }
13
+ ],
14
+ options: [
15
+ {
16
+ flags: '-o, --output <path>',
17
+ description: 'Write to this path (relative paths resolve against the workspace root, otherwise the declared runtime cwd)',
18
+ type: 'string'
19
+ },
20
+ {
21
+ flags: '-f, --format <format>',
22
+ description: 'Output format: markdown | json (default: from the output extension, else markdown)',
23
+ type: 'string',
24
+ choices: ['markdown', 'json']
25
+ },
26
+ {
27
+ flags: '-k, --kind <kind>',
28
+ description: 'Restrict the descriptor detail to one kind',
29
+ type: 'string'
30
+ },
31
+ { flags: '--no-kinds', description: 'Omit the kind section', type: 'boolean' },
32
+ { flags: '--no-plugins', description: 'Omit the plugin section', type: 'boolean' },
33
+ { flags: '--no-descriptors', description: 'Omit the descriptor table, keeping the counts', type: 'boolean' },
34
+ {
35
+ flags: '-v, --verbose',
36
+ description: 'Enable verbose logging',
37
+ type: 'boolean'
38
+ }
39
+ ],
40
+ examples: [
41
+ {
42
+ command: 'vibes runtime export RUNTIME-REFERENCE.md',
43
+ description: 'Write the full reference for this workspace'
44
+ },
45
+ {
46
+ command: 'vibes runtime export -f json',
47
+ description: 'Print the same facts as JSON, for something that diffs them'
48
+ },
49
+ {
50
+ command: 'vibes runtime export --kind tools/tool',
51
+ description: 'Report one kind and every descriptor it holds'
52
+ }
53
+ ],
54
+ surfaces: ['cli'],
55
+ hardware: ['consumer'],
56
+ enabled: true
57
+ });
58
+ //# sourceMappingURL=export.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.descriptor.js","sourceRoot":"","sources":["../../../src/commands/runtime/export.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,CAAC,MAAM,8BAA8B,GAAG,kBAAkB,CAAC;IAChE,EAAE,EAAE,gBAAgB;IACpB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,QAAQ;IACd,WAAW,EAAE,6EAA6E;IAC1F,KAAK,EAAE,SAAS;IAChB,SAAS,EAAE;QACV;YACC,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,4HAA4H;SACzI;KACD;IACD,OAAO,EAAE;QACR;YACC,KAAK,EAAE,qBAAqB;YAC5B,WAAW,EAAE,4GAA4G;YACzH,IAAI,EAAE,QAAQ;SACd;QACD;YACC,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,oFAAoF;YACjG,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;SAC7B;QACD;YACC,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,4CAA4C;YACzD,IAAI,EAAE,QAAQ;SACd;QACD,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,uBAAuB,EAAE,IAAI,EAAE,SAAS,EAAE;QAC9E,EAAE,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,yBAAyB,EAAE,IAAI,EAAE,SAAS,EAAE;QAClF,EAAE,KAAK,EAAE,kBAAkB,EAAE,WAAW,EAAE,+CAA+C,EAAE,IAAI,EAAE,SAAS,EAAE;QAC5G;YACC,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,wBAAwB;YACrC,IAAI,EAAE,SAAS;SACf;KACD;IACD,QAAQ,EAAE;QACT;YACC,OAAO,EAAE,2CAA2C;YACpD,WAAW,EAAE,6CAA6C;SAC1D;QACD;YACC,OAAO,EAAE,8BAA8B;YACvC,WAAW,EAAE,6DAA6D;SAC1E;QACD;YACC,OAAO,EAAE,wCAAwC;YACjD,WAAW,EAAE,+CAA+C;SAC5D;KACD;IACD,QAAQ,EAAE,CAAC,KAAK,CAAC;IACjB,QAAQ,EAAE,CAAC,UAAU,CAAC;IACtB,OAAO,EAAE,IAAI;CACb,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * `vibes runtime export [PATH]` — what this runtime actually holds.
3
+ *
4
+ * A runtime is not knowable from its source. Which plugins composed, which kinds
5
+ * those plugins registered, how many descriptors each kind holds, which loaders
6
+ * are attached and where each one came from — all of that is a property of a boot,
7
+ * not of a package manifest. This command reports it from the live runtime the CLI
8
+ * handed it, so the answer describes the process in front of you.
9
+ *
10
+ * It exports to markdown for a document a person or an agent reads, and to JSON
11
+ * for something that diffs. Both carry the same facts; markdown groups them the
12
+ * way a reader needs, JSON preserves the exact shape.
13
+ *
14
+ * Nothing here recomputes or infers. A descriptor is listed because the runtime
15
+ * holds it, a loader because the runtime registered it, a plugin because the
16
+ * runtime composed it. A kind with no descriptors is still listed: an empty
17
+ * catalog is evidence, not an absence.
18
+ *
19
+ * The four parts are one concern each — `schemas.ts` is what the export is,
20
+ * `read.ts` asks the runtime, `markdown.ts` writes the document, `write.ts` puts
21
+ * it on disk — and this module is the one name they are all reachable through.
22
+ */
23
+ export { renderRuntimeExportMarkdown } from "./export/markdown.js";
24
+ export { exportDescriptors, exportRuntime } from "./export/read.js";
25
+ export { registerRuntimeExportCommand, runtimeExportOptions } from "./export/register.js";
26
+ export { ExportDestinationSchema, RuntimeExportOptionsSchema, ScopeValueSchema } from "./export/schemas.js";
27
+ export { resolveExportFormat, writeRuntimeExport } from "./export/write.js";
28
+ //# sourceMappingURL=export.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.js","sourceRoot":"","sources":["../../../src/commands/runtime/export.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,4BAA4B,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,EACN,uBAAuB,EACvB,0BAA0B,EAC1B,gBAAgB,EAQhB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import type { Command } from 'commander';
2
- import type { RuntimeContext } from '../../core/runtime/context.ts';
3
- export declare function registerRuntimeCommands(parent: Command, context: RuntimeContext): Promise<void>;
2
+ import type { CommandContext } from '../../schemas/surface.ts';
3
+ export declare function registerRuntimeCommands(parent: Command, context: CommandContext): Promise<void>;
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGpE,wBAAsB,uBAAuB,CAC5C,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC,CAMf"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,wBAAsB,uBAAuB,CAC5C,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC,CAMf"}
@@ -1,8 +1,8 @@
1
- import { registerRuntimeCodegenCommand } from "./codegen.js";
1
+ import { registerRuntimeExportCommand } from "./export.js";
2
2
  export async function registerRuntimeCommands(parent, context) {
3
3
  // Create the runtime command group
4
4
  const runtimeCmd = parent.command('runtime').description('Runtime management commands');
5
- // Register the codegen subcommand
6
- await registerRuntimeCodegenCommand(runtimeCmd, context);
5
+ // Register the export subcommand
6
+ await registerRuntimeExportCommand(runtimeCmd, context);
7
7
  }
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/runtime/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,cAAc,CAAC;AAE7D,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC5C,MAAe,EACf,OAAuB;IAEvB,mCAAmC;IACnC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;IAExF,kCAAkC;IAClC,MAAM,6BAA6B,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/runtime/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3D,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC5C,MAAe,EACf,OAAuB;IAEvB,mCAAmC;IACnC,MAAM,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAAC;IAExF,iCAAiC;IACjC,MAAM,4BAA4B,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const runtimeCliPlugin: import("@vibesdotdev/runtime").RuntimePlugin;
1
+ export declare const runtimeCliPlugin: import("@vibesdotdev/kernel").RuntimePlugin;
2
2
  //# sourceMappingURL=plugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/plugin.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,8CAI3B,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/plugin.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,6CAI3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { createRuntimePlugin } from '@vibesdotdev/runtime';
1
+ import { createRuntimePlugin } from '@vibesdotdev/kernel';
2
2
  export const runtimeCliPlugin = createRuntimePlugin({
3
3
  id: 'runtime-cli',
4
4
  name: 'Runtime CLI Plugin',
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/commands/runtime/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE3D,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;IACnD,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,kDAAkD;CAC/D,CAAC,CAAC"}
1
+ {"version":3,"file":"plugin.js","sourceRoot":"","sources":["../../../src/commands/runtime/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,CAAC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC;IACnD,EAAE,EAAE,aAAa;IACjB,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,kDAAkD;CAC/D,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { CLIGroupAssetDescriptor } from '../../schemas/descriptors';
1
+ import type { CLIGroupAssetDescriptor } from '../../schemas/descriptors.ts';
2
2
  declare const descriptor: CLIGroupAssetDescriptor;
3
3
  export default descriptor;
4
4
  //# sourceMappingURL=runtime-group.descriptor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-group.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/runtime-group.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,QAAA,MAAM,UAAU,EAAE,uBAOjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"runtime-group.descriptor.d.ts","sourceRoot":"","sources":["../../../src/commands/runtime/runtime-group.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,QAAA,MAAM,UAAU,EAAE,uBAOjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,26 @@
1
+ /** Command-output contracts: what command output reads from a runtime and the writers it resolves. */
2
+ import * as z from 'zod/v4';
3
+ import type { RuntimeRef } from '@vibesdotdev/kernel';
4
+ /** What a command's output reads from the runtime it is handed. */
5
+ export type CommandOutputRuntime = Pick<RuntimeRef, 'hasKind' | 'registerPlugin' | 'query'>;
6
+ /** A command's text writers, resolved once from the handed runtime so status text keeps its synchronous shape. */
7
+ export declare const CommandWritersSchema: z.ZodObject<{
8
+ out: z.ZodCustom<(text: string) => void, (text: string) => void>;
9
+ err: z.ZodCustom<(text: string) => void, (text: string) => void>;
10
+ log: z.ZodCustom<(line: string) => void, (line: string) => void>;
11
+ }, z.core.$strip>;
12
+ export type CommandWriters = z.infer<typeof CommandWritersSchema>;
13
+ /** JSON output options and the explicit-runtime call shape command output admits. */
14
+ export declare const OutputOptionsSchema: z.ZodObject<{
15
+ pretty: z.ZodOptional<z.ZodBoolean>;
16
+ }, z.core.$strip>;
17
+ export type OutputOptions = z.infer<typeof OutputOptionsSchema>;
18
+ export declare const OutputQuerySurfaceSchema: z.ZodObject<{
19
+ hasKind: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
20
+ query: z.ZodFunction<z.core.$ZodFunctionArgs, z.core.$ZodFunctionOut>;
21
+ }, z.core.$strip>;
22
+ export declare const OutputRuntimeSchema: z.ZodCustom<CommandOutputRuntime, CommandOutputRuntime>;
23
+ export declare const OutputRuntimeFormSchema: z.ZodTuple<[z.ZodCustom<CommandOutputRuntime, CommandOutputRuntime>, z.ZodUnknown, z.ZodOptional<z.ZodObject<{
24
+ pretty: z.ZodOptional<z.ZodBoolean>;
25
+ }, z.core.$strip>>], null>;
26
+ //# sourceMappingURL=output.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../../src/commands/schemas/output.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEtD,mEAAmE;AACnE,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,gBAAgB,GAAG,OAAO,CAAC,CAAC;AAE5F,kHAAkH;AAClH,eAAO,MAAM,oBAAoB;4BACX,MAAM,KAAK,IAAI,SAAf,MAAM,KAAK,IAAI;4BACf,MAAM,KAAK,IAAI,SAAf,MAAM,KAAK,IAAI;4BACf,MAAM,KAAK,IAAI,SAAf,MAAM,KAAK,IAAI;iBACnC,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,qFAAqF;AACrF,eAAO,MAAM,mBAAmB;;iBAA+C,CAAC;AAChF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAChE,eAAO,MAAM,wBAAwB;;;iBAA2D,CAAC;AACjG,eAAO,MAAM,mBAAmB,yDAC4D,CAAC;AAC7F,eAAO,MAAM,uBAAuB;;0BAA8E,CAAC"}
@@ -0,0 +1,14 @@
1
+ /** Command-output contracts: what command output reads from a runtime and the writers it resolves. */
2
+ import * as z from 'zod/v4';
3
+ /** A command's text writers, resolved once from the handed runtime so status text keeps its synchronous shape. */
4
+ export const CommandWritersSchema = z.object({
5
+ out: z.custom(value => z.function().safeParse(value).success),
6
+ err: z.custom(value => z.function().safeParse(value).success),
7
+ log: z.custom(value => z.function().safeParse(value).success)
8
+ });
9
+ /** JSON output options and the explicit-runtime call shape command output admits. */
10
+ export const OutputOptionsSchema = z.object({ pretty: z.boolean().optional() });
11
+ export const OutputQuerySurfaceSchema = z.object({ hasKind: z.function(), query: z.function() });
12
+ export const OutputRuntimeSchema = z.custom((value) => OutputQuerySurfaceSchema.extend({ registerPlugin: z.function() }).safeParse(value).success);
13
+ export const OutputRuntimeFormSchema = z.tuple([OutputRuntimeSchema, z.unknown(), OutputOptionsSchema.optional()]);
14
+ //# sourceMappingURL=output.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output.js","sourceRoot":"","sources":["../../../src/commands/schemas/output.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,kHAAkH;AAClH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,GAAG,EAAE,CAAC,CAAC,MAAM,CAAyB,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;IACrF,GAAG,EAAE,CAAC,CAAC,MAAM,CAAyB,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;IACrF,GAAG,EAAE,CAAC,CAAC,MAAM,CAAyB,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;CACrF,CAAC,CAAC;AAGH,qFAAqF;AACrF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AAEhF,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAuB,CAAC,KAAK,EAAiC,EAAE,CAC1G,wBAAwB,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;AAC7F,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,mBAAmB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ /** Profile environment command contracts. */
2
+ /** The environment bound to this host's profile, as JSON data. */
3
+ export interface ProfileEnvironmentSelection {
4
+ environment: string | null;
5
+ }
6
+ //# sourceMappingURL=profile-environment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-environment.d.ts","sourceRoot":"","sources":["../../../src/commands/schemas/profile-environment.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAE7C,kEAAkE;AAClE,MAAM,WAAW,2BAA2B;IAC3C,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B"}
@@ -0,0 +1,3 @@
1
+ /** Profile environment command contracts. */
2
+ export {};
3
+ //# sourceMappingURL=profile-environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-environment.js","sourceRoot":"","sources":["../../../src/commands/schemas/profile-environment.ts"],"names":[],"mappings":"AAAA,6CAA6C"}
@@ -0,0 +1,22 @@
1
+ /** Profile list command contracts. */
2
+ export interface ProfileListEntry {
3
+ name: string;
4
+ environment: string | null;
5
+ active: boolean;
6
+ }
7
+ export interface ProfileListing {
8
+ dir: string;
9
+ exists: boolean;
10
+ active: string | undefined;
11
+ profiles: ProfileListEntry[];
12
+ }
13
+ /** The listing as JSON data: what `--json` writes and a formatter renders. */
14
+ export interface ProfileListingData {
15
+ active: string | null;
16
+ dir: string;
17
+ profiles: ProfileListEntry[];
18
+ }
19
+ export interface ProfileListDependencies {
20
+ readEnvironment?: (name: string) => Promise<string | null>;
21
+ }
22
+ //# sourceMappingURL=profile-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-list.d.ts","sourceRoot":"","sources":["../../../src/commands/schemas/profile-list.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IAClC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,uBAAuB;IACvC,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC3D"}
@@ -0,0 +1,3 @@
1
+ /** Profile list command contracts. */
2
+ export {};
3
+ //# sourceMappingURL=profile-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile-list.js","sourceRoot":"","sources":["../../../src/commands/schemas/profile-list.ts"],"names":[],"mappings":"AAAA,sCAAsC"}
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Pure helpers for `vibes skills` — locate tracked skill mirrors under
3
+ * `docs/skills/`, parse their `source:` install target, and materialize them
4
+ * into a developer's local (gitignored) `.claude/` so the version-controlled
5
+ * source-of-truth can be re-installed on any machine.
6
+ *
7
+ * Mirror format (see docs/skills/README.md): each `docs/skills/<name>.md` is the
8
+ * original `.claude/` file verbatim with a single top-level `source:` line inserted
9
+ * as the first frontmatter entry. Install = strip that one line, write the rest to
10
+ * the recorded path — a byte-faithful round-trip with no YAML parsing of nested
11
+ * `arguments:` blocks.
12
+ *
13
+ * Every read and write goes through a {@link SkillsHost}: the handed runtime's
14
+ * filesystem kind and path mechanics (`openSkillsHost`), so the helpers stay
15
+ * unit-testable with any adapter and never touch the process.
16
+ */
17
+ import * as z from 'zod/v4';
18
+ import type { FileSystemAdapterInterface } from '@vibesdotdev/filesystem';
19
+ import { type RuntimePath } from '@vibesdotdev/paths';
20
+ import type { VibesRuntime } from '@vibesdotdev/kernel/api/runtime';
21
+ /** The filesystem and path mechanics the skills helpers run on. */
22
+ export interface SkillsHost {
23
+ readonly fs: FileSystemAdapterInterface;
24
+ readonly path: RuntimePath;
25
+ }
26
+ export declare function openSkillsHost(runtime: VibesRuntime): Promise<SkillsHost>;
27
+ /** The `--root <dir>` option: the text given, or absent. */
28
+ export declare const SkillsRootOptionSchema: z.ZodCatch<z.ZodOptional<z.ZodString>>;
29
+ /** What `parseMirror` answers. */
30
+ export interface ParsedMirror {
31
+ target: string | null;
32
+ description: string;
33
+ installContent: string;
34
+ }
35
+ export declare const RESET = "\u001B[0m";
36
+ export declare const BOLD = "\u001B[1m";
37
+ export declare const GREEN = "\u001B[32m";
38
+ export declare const YELLOW = "\u001B[33m";
39
+ export declare const GRAY = "\u001B[90m";
40
+ export declare const CYAN = "\u001B[36m";
41
+ export type SkillKind = 'command' | 'skill' | 'other';
42
+ export interface SkillMirror {
43
+ /** Mirror base name without `.md`, e.g. `tui-shot`. */
44
+ name: string;
45
+ /** Absolute path to the `docs/skills/<name>.md` mirror. */
46
+ file: string;
47
+ /** Repo-relative install target from the `source:` frontmatter line. */
48
+ target: string;
49
+ /** First `description:` line from the frontmatter, for listing. */
50
+ description: string;
51
+ /** Inferred from the target path. */
52
+ kind: SkillKind;
53
+ }
54
+ export type InstallAction = 'created' | 'updated' | 'unchanged' | 'skipped-exists' | 'skipped-escape' | 'no-source';
55
+ export interface InstallResult {
56
+ name: string;
57
+ target: string;
58
+ action: InstallAction;
59
+ }
60
+ /** Walk up from `start` to the repo root (the directory containing `docs/skills`). */
61
+ export declare function findSkillsRoot(host: SkillsHost, start: string): Promise<string | null>;
62
+ /**
63
+ * Resolve the operating root: an explicit `--root <dir>` option, else the
64
+ * ancestor walk from `cwd`. `null` when neither yields a `docs/skills` tree —
65
+ * the impls project that as INVALID_INPUT. Pure (node builtins only); the
66
+ * caller supplies cwd so this closure stays free of the process global.
67
+ */
68
+ export declare function resolveSkillsRoot(host: SkillsHost, rootOption: string | undefined, cwd: string): Promise<string | null>;
69
+ /**
70
+ * True when `target` is a repo-relative path that stays inside `repoRoot`.
71
+ * `source:` frontmatter is version-controlled text; an absolute target or a
72
+ * `../` walk must never escape the repo (`join(repoRoot, '/etc/x')` IS
73
+ * `/etc/x` on POSIX).
74
+ */
75
+ export declare function isContainedTarget(path: RuntimePath, repoRoot: string, target: string): boolean;
76
+ /**
77
+ * Parse a mirror's frontmatter: pull the `source:` target + `description:`, and
78
+ * reconstruct the install-ready content with the (single top-level) `source:`
79
+ * line removed. Returns `target: null` when no frontmatter / no source line.
80
+ */
81
+ export declare function parseMirror(content: string): ParsedMirror;
82
+ /** Enumerate the tracked skill mirrors under `<repoRoot>/docs/skills/` (excludes README). */
83
+ export declare function listSkillMirrors(host: SkillsHost, repoRoot: string): Promise<SkillMirror[]>;
84
+ /** True when the target already exists locally with byte-identical install content. */
85
+ export declare function isInstalledCurrent(host: SkillsHost, repoRoot: string, mirror: SkillMirror): Promise<boolean>;
86
+ /**
87
+ * Materialize one mirror into its local `.claude/` target.
88
+ * - missing target → `created`
89
+ * - identical target → `unchanged` (never rewrites)
90
+ * - differing target → `updated` with `force`, else `skipped-exists`
91
+ * - target escaping `repoRoot` → `skipped-escape` (never written)
92
+ * `dryRun` computes the action without touching disk.
93
+ */
94
+ export declare function installSkill(host: SkillsHost, repoRoot: string, mirror: SkillMirror, opts?: {
95
+ force?: boolean;
96
+ dryRun?: boolean;
97
+ }): Promise<InstallResult>;
98
+ //# sourceMappingURL=_skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_skills.d.ts","sourceRoot":"","sources":["../../../src/commands/skills/_skills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE,mEAAmE;AACnE,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,EAAE,EAAE,0BAA0B,CAAC;IACxC,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;CAC3B;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,CAAC,CAE/E;AAQD,4DAA4D;AAC5D,eAAO,MAAM,sBAAsB,wCAAyC,CAAC;AAE7E,kCAAkC;AAClC,MAAM,WAAW,YAAY;IAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;CACvB;AAGD,eAAO,MAAM,KAAK,cAAY,CAAC;AAC/B,eAAO,MAAM,IAAI,cAAY,CAAC;AAC9B,eAAO,MAAM,KAAK,eAAa,CAAC;AAChC,eAAO,MAAM,MAAM,eAAa,CAAC;AACjC,eAAO,MAAM,IAAI,eAAa,CAAC;AAC/B,eAAO,MAAM,IAAI,eAAa,CAAC;AAE/B,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAEtD,MAAM,WAAW,WAAW;IAC3B,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,IAAI,EAAE,SAAS,CAAC;CAChB;AAED,MAAM,MAAM,aAAa,GACtB,SAAS,GACT,SAAS,GACT,WAAW,GACX,gBAAgB,GAChB,gBAAgB,GAChB,WAAW,CAAC;AAEf,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,aAAa,CAAC;CACtB;AAED,sFAAsF;AACtF,wBAAsB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQ5F;AAED;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAI7H;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAI9F;AAQD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CA4BzD;AAED,6FAA6F;AAC7F,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAmBjG;AAED,uFAAuF;AACvF,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC,CAMlH;AAED;;;;;;;GAOG;AACH,wBAAsB,YAAY,CACjC,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,WAAW,EACnB,IAAI,GAAE;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GAC9C,OAAO,CAAC,aAAa,CAAC,CAyBxB"}
@@ -0,0 +1,183 @@
1
+ /**
2
+ * Pure helpers for `vibes skills` — locate tracked skill mirrors under
3
+ * `docs/skills/`, parse their `source:` install target, and materialize them
4
+ * into a developer's local (gitignored) `.claude/` so the version-controlled
5
+ * source-of-truth can be re-installed on any machine.
6
+ *
7
+ * Mirror format (see docs/skills/README.md): each `docs/skills/<name>.md` is the
8
+ * original `.claude/` file verbatim with a single top-level `source:` line inserted
9
+ * as the first frontmatter entry. Install = strip that one line, write the rest to
10
+ * the recorded path — a byte-faithful round-trip with no YAML parsing of nested
11
+ * `arguments:` blocks.
12
+ *
13
+ * Every read and write goes through a {@link SkillsHost}: the handed runtime's
14
+ * filesystem kind and path mechanics (`openSkillsHost`), so the helpers stay
15
+ * unit-testable with any adapter and never touch the process.
16
+ */
17
+ import * as z from 'zod/v4';
18
+ import { resolveFileSystemAdapter } from '@vibesdotdev/filesystem/client';
19
+ import { getRuntimePath } from '@vibesdotdev/paths';
20
+ export async function openSkillsHost(runtime) {
21
+ return { fs: await resolveFileSystemAdapter(runtime, { binding: false }), path: await getRuntimePath(runtime) };
22
+ }
23
+ /** A text file's contents as UTF-8. */
24
+ async function readText(host, file) {
25
+ const raw = await host.fs.readFile(file, 'utf-8');
26
+ return raw instanceof Uint8Array ? new TextDecoder().decode(raw) : raw;
27
+ }
28
+ /** The `--root <dir>` option: the text given, or absent. */
29
+ export const SkillsRootOptionSchema = z.string().optional().catch(undefined);
30
+ // ── tiny ANSI helpers (shared by the impls; pure string constants) ───────────
31
+ export const RESET = '\x1b[0m';
32
+ export const BOLD = '\x1b[1m';
33
+ export const GREEN = '\x1b[32m';
34
+ export const YELLOW = '\x1b[33m';
35
+ export const GRAY = '\x1b[90m';
36
+ export const CYAN = '\x1b[36m';
37
+ /** Walk up from `start` to the repo root (the directory containing `docs/skills`). */
38
+ export async function findSkillsRoot(host, start) {
39
+ let dir = start;
40
+ for (;;) {
41
+ if (await host.fs.exists(host.path.join(dir, 'docs', 'skills')))
42
+ return dir;
43
+ const parent = host.path.dirname(dir);
44
+ if (parent === dir)
45
+ return null;
46
+ dir = parent;
47
+ }
48
+ }
49
+ /**
50
+ * Resolve the operating root: an explicit `--root <dir>` option, else the
51
+ * ancestor walk from `cwd`. `null` when neither yields a `docs/skills` tree —
52
+ * the impls project that as INVALID_INPUT. Pure (node builtins only); the
53
+ * caller supplies cwd so this closure stays free of the process global.
54
+ */
55
+ export async function resolveSkillsRoot(host, rootOption, cwd) {
56
+ const root = rootOption ?? (await findSkillsRoot(host, cwd));
57
+ if (!root || !(await host.fs.exists(host.path.join(root, 'docs', 'skills'))))
58
+ return null;
59
+ return root;
60
+ }
61
+ /**
62
+ * True when `target` is a repo-relative path that stays inside `repoRoot`.
63
+ * `source:` frontmatter is version-controlled text; an absolute target or a
64
+ * `../` walk must never escape the repo (`join(repoRoot, '/etc/x')` IS
65
+ * `/etc/x` on POSIX).
66
+ */
67
+ export function isContainedTarget(path, repoRoot, target) {
68
+ if (path.isAbsolute(target))
69
+ return false;
70
+ const rel = path.relative(repoRoot, path.resolve(repoRoot, target));
71
+ return rel !== '' && !rel.startsWith('..') && !path.isAbsolute(rel);
72
+ }
73
+ function inferKind(target) {
74
+ if (target.startsWith('.claude/commands/'))
75
+ return 'command';
76
+ if (target.startsWith('.claude/skills/'))
77
+ return 'skill';
78
+ return 'other';
79
+ }
80
+ /**
81
+ * Parse a mirror's frontmatter: pull the `source:` target + `description:`, and
82
+ * reconstruct the install-ready content with the (single top-level) `source:`
83
+ * line removed. Returns `target: null` when no frontmatter / no source line.
84
+ */
85
+ export function parseMirror(content) {
86
+ const lines = content.split('\n');
87
+ if (lines[0] !== '---') {
88
+ return { target: null, description: '', installContent: content };
89
+ }
90
+ const close = lines.indexOf('---', 1);
91
+ if (close === -1) {
92
+ return { target: null, description: '', installContent: content };
93
+ }
94
+ let target = null;
95
+ let description = '';
96
+ const keptFrontmatter = [];
97
+ for (const line of lines.slice(1, close)) {
98
+ // Strip ONLY the top-level `source:` line (nested entries are indented).
99
+ const sourceMatch = line.match(/^source:\s*(.+?)\s*$/);
100
+ if (sourceMatch) {
101
+ target = sourceMatch[1];
102
+ continue;
103
+ }
104
+ const descMatch = line.match(/^description:\s*(.+?)\s*$/);
105
+ if (descMatch && !description)
106
+ description = descMatch[1];
107
+ keptFrontmatter.push(line);
108
+ }
109
+ const body = lines.slice(close + 1);
110
+ const installContent = ['---', ...keptFrontmatter, '---', ...body].join('\n');
111
+ return { target, description, installContent };
112
+ }
113
+ /** Enumerate the tracked skill mirrors under `<repoRoot>/docs/skills/` (excludes README). */
114
+ export async function listSkillMirrors(host, repoRoot) {
115
+ const dir = host.path.join(repoRoot, 'docs', 'skills');
116
+ if (!(await host.fs.exists(dir)))
117
+ return [];
118
+ const mirrors = [];
119
+ const names = (await host.fs.list(dir)).map((entry) => entry.name).sort();
120
+ for (const f of names) {
121
+ if (!f.endsWith('.md') || f.toLowerCase() === 'readme.md')
122
+ continue;
123
+ const file = host.path.join(dir, f);
124
+ const { target, description } = parseMirror(await readText(host, file));
125
+ if (!target)
126
+ continue; // not a materializable mirror (no source:)
127
+ mirrors.push({
128
+ name: f.slice(0, -'.md'.length),
129
+ file,
130
+ target,
131
+ description,
132
+ kind: inferKind(target),
133
+ });
134
+ }
135
+ return mirrors;
136
+ }
137
+ /** True when the target already exists locally with byte-identical install content. */
138
+ export async function isInstalledCurrent(host, repoRoot, mirror) {
139
+ if (!isContainedTarget(host.path, repoRoot, mirror.target))
140
+ return false;
141
+ const abs = host.path.join(repoRoot, mirror.target);
142
+ if (!(await host.fs.exists(abs)))
143
+ return false;
144
+ const { installContent } = parseMirror(await readText(host, mirror.file));
145
+ return (await readText(host, abs)) === installContent;
146
+ }
147
+ /**
148
+ * Materialize one mirror into its local `.claude/` target.
149
+ * - missing target → `created`
150
+ * - identical target → `unchanged` (never rewrites)
151
+ * - differing target → `updated` with `force`, else `skipped-exists`
152
+ * - target escaping `repoRoot` → `skipped-escape` (never written)
153
+ * `dryRun` computes the action without touching disk.
154
+ */
155
+ export async function installSkill(host, repoRoot, mirror, opts = {}) {
156
+ const { target, installContent } = parseMirror(await readText(host, mirror.file));
157
+ if (!target)
158
+ return { name: mirror.name, target: mirror.target, action: 'no-source' };
159
+ if (!isContainedTarget(host.path, repoRoot, target)) {
160
+ return { name: mirror.name, target, action: 'skipped-escape' };
161
+ }
162
+ const abs = host.path.join(repoRoot, target);
163
+ const exists = await host.fs.exists(abs);
164
+ let action;
165
+ if (!exists) {
166
+ action = 'created';
167
+ }
168
+ else if ((await readText(host, abs)) === installContent) {
169
+ action = 'unchanged';
170
+ }
171
+ else if (opts.force) {
172
+ action = 'updated';
173
+ }
174
+ else {
175
+ action = 'skipped-exists';
176
+ }
177
+ if (!opts.dryRun && (action === 'created' || action === 'updated')) {
178
+ await host.fs.mkdir(host.path.dirname(abs), { recursive: true });
179
+ await host.fs.writeFile(abs, installContent);
180
+ }
181
+ return { name: mirror.name, target, action };
182
+ }
183
+ //# sourceMappingURL=_skills.js.map