@vibe-agent-toolkit/cli 0.2.0-rc.10 → 0.2.0-rc.12

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 (755) hide show
  1. package/README.md +3 -3
  2. package/dist/bin/supervise-cli.d.ts +45 -0
  3. package/dist/bin/supervise-cli.d.ts.map +1 -0
  4. package/dist/bin/supervise-cli.js +83 -0
  5. package/dist/bin/supervise-cli.js.map +1 -0
  6. package/dist/bin/vat +94 -40
  7. package/dist/bin/vat.d.ts +15 -4
  8. package/dist/bin/vat.d.ts.map +1 -1
  9. package/dist/bin/vat.js +94 -40
  10. package/dist/bin/vat.js.map +1 -1
  11. package/dist/bin.js +21 -29
  12. package/dist/bin.js.map +1 -1
  13. package/dist/command-tree.d.ts +45 -0
  14. package/dist/command-tree.d.ts.map +1 -0
  15. package/dist/command-tree.js +60 -0
  16. package/dist/command-tree.js.map +1 -0
  17. package/dist/commands/agent/build-schema.d.ts +100 -0
  18. package/dist/commands/agent/build-schema.d.ts.map +1 -0
  19. package/dist/commands/agent/build-schema.js +32 -0
  20. package/dist/commands/agent/build-schema.js.map +1 -0
  21. package/dist/commands/agent/build.d.ts +1 -0
  22. package/dist/commands/agent/build.d.ts.map +1 -1
  23. package/dist/commands/agent/build.js +63 -33
  24. package/dist/commands/agent/build.js.map +1 -1
  25. package/dist/commands/agent/import-schema.d.ts +75 -0
  26. package/dist/commands/agent/import-schema.d.ts.map +1 -0
  27. package/dist/commands/agent/import-schema.js +25 -0
  28. package/dist/commands/agent/import-schema.js.map +1 -0
  29. package/dist/commands/agent/import.d.ts.map +1 -1
  30. package/dist/commands/agent/import.js +33 -27
  31. package/dist/commands/agent/import.js.map +1 -1
  32. package/dist/commands/agent/index.d.ts.map +1 -1
  33. package/dist/commands/agent/index.js +132 -37
  34. package/dist/commands/agent/index.js.map +1 -1
  35. package/dist/commands/agent/install-path.d.ts.map +1 -1
  36. package/dist/commands/agent/install-path.js +2 -1
  37. package/dist/commands/agent/install-path.js.map +1 -1
  38. package/dist/commands/agent/install-schema.d.ts +89 -0
  39. package/dist/commands/agent/install-schema.d.ts.map +1 -0
  40. package/dist/commands/agent/install-schema.js +29 -0
  41. package/dist/commands/agent/install-schema.js.map +1 -0
  42. package/dist/commands/agent/install.d.ts +7 -1
  43. package/dist/commands/agent/install.d.ts.map +1 -1
  44. package/dist/commands/agent/install.js +78 -108
  45. package/dist/commands/agent/install.js.map +1 -1
  46. package/dist/commands/agent/installed-schema.d.ts +140 -0
  47. package/dist/commands/agent/installed-schema.d.ts.map +1 -0
  48. package/dist/commands/agent/installed-schema.js +36 -0
  49. package/dist/commands/agent/installed-schema.js.map +1 -0
  50. package/dist/commands/agent/installed.d.ts +1 -1
  51. package/dist/commands/agent/installed.d.ts.map +1 -1
  52. package/dist/commands/agent/installed.js +104 -75
  53. package/dist/commands/agent/installed.js.map +1 -1
  54. package/dist/commands/agent/list-schema.d.ts +128 -0
  55. package/dist/commands/agent/list-schema.d.ts.map +1 -0
  56. package/dist/commands/agent/list-schema.js +34 -0
  57. package/dist/commands/agent/list-schema.js.map +1 -0
  58. package/dist/commands/agent/list.d.ts +4 -3
  59. package/dist/commands/agent/list.d.ts.map +1 -1
  60. package/dist/commands/agent/list.js +50 -37
  61. package/dist/commands/agent/list.js.map +1 -1
  62. package/dist/commands/agent/run.d.ts +3 -0
  63. package/dist/commands/agent/run.d.ts.map +1 -1
  64. package/dist/commands/agent/run.js +8 -3
  65. package/dist/commands/agent/run.js.map +1 -1
  66. package/dist/commands/agent/uninstall-schema.d.ts +89 -0
  67. package/dist/commands/agent/uninstall-schema.d.ts.map +1 -0
  68. package/dist/commands/agent/uninstall-schema.js +29 -0
  69. package/dist/commands/agent/uninstall-schema.js.map +1 -0
  70. package/dist/commands/agent/uninstall.d.ts +5 -1
  71. package/dist/commands/agent/uninstall.d.ts.map +1 -1
  72. package/dist/commands/agent/uninstall.js +50 -38
  73. package/dist/commands/agent/uninstall.js.map +1 -1
  74. package/dist/commands/agent/validate-schema.d.ts +129 -0
  75. package/dist/commands/agent/validate-schema.d.ts.map +1 -0
  76. package/dist/commands/agent/validate-schema.js +35 -0
  77. package/dist/commands/agent/validate-schema.js.map +1 -0
  78. package/dist/commands/agent/validate.d.ts +6 -0
  79. package/dist/commands/agent/validate.d.ts.map +1 -1
  80. package/dist/commands/agent/validate.js +64 -36
  81. package/dist/commands/agent/validate.js.map +1 -1
  82. package/dist/commands/ard/emit-schema.d.ts +108 -0
  83. package/dist/commands/ard/emit-schema.d.ts.map +1 -0
  84. package/dist/commands/ard/emit-schema.js +37 -0
  85. package/dist/commands/ard/emit-schema.js.map +1 -0
  86. package/dist/commands/ard/emit.d.ts +31 -63
  87. package/dist/commands/ard/emit.d.ts.map +1 -1
  88. package/dist/commands/ard/emit.js +124 -68
  89. package/dist/commands/ard/emit.js.map +1 -1
  90. package/dist/commands/ard/index.d.ts.map +1 -1
  91. package/dist/commands/ard/index.js +17 -10
  92. package/dist/commands/ard/index.js.map +1 -1
  93. package/dist/commands/audit/compat-lane-findings.d.ts +65 -0
  94. package/dist/commands/audit/compat-lane-findings.d.ts.map +1 -0
  95. package/dist/commands/audit/compat-lane-findings.js +72 -0
  96. package/dist/commands/audit/compat-lane-findings.js.map +1 -0
  97. package/dist/commands/audit/distributed-tree.d.ts +2 -2
  98. package/dist/commands/audit/distributed-tree.d.ts.map +1 -1
  99. package/dist/commands/audit/distributed-tree.js +23 -12
  100. package/dist/commands/audit/distributed-tree.js.map +1 -1
  101. package/dist/commands/audit/git-url-clone.d.ts +15 -7
  102. package/dist/commands/audit/git-url-clone.d.ts.map +1 -1
  103. package/dist/commands/audit/git-url-clone.js +85 -42
  104. package/dist/commands/audit/git-url-clone.js.map +1 -1
  105. package/dist/commands/audit/hierarchical-output.d.ts +28 -4
  106. package/dist/commands/audit/hierarchical-output.d.ts.map +1 -1
  107. package/dist/commands/audit/hierarchical-output.js +44 -27
  108. package/dist/commands/audit/hierarchical-output.js.map +1 -1
  109. package/dist/commands/audit/scan-population.d.ts.map +1 -1
  110. package/dist/commands/audit/scan-population.js +2 -1
  111. package/dist/commands/audit/scan-population.js.map +1 -1
  112. package/dist/commands/audit-schema.d.ts +1247 -0
  113. package/dist/commands/audit-schema.d.ts.map +1 -0
  114. package/dist/commands/audit-schema.js +139 -0
  115. package/dist/commands/audit-schema.js.map +1 -0
  116. package/dist/commands/audit-settings-schema.d.ts +417 -0
  117. package/dist/commands/audit-settings-schema.d.ts.map +1 -0
  118. package/dist/commands/audit-settings-schema.js +77 -0
  119. package/dist/commands/audit-settings-schema.js.map +1 -0
  120. package/dist/commands/audit-settings.d.ts +28 -9
  121. package/dist/commands/audit-settings.d.ts.map +1 -1
  122. package/dist/commands/audit-settings.js +215 -151
  123. package/dist/commands/audit-settings.js.map +1 -1
  124. package/dist/commands/audit.d.ts +72 -33
  125. package/dist/commands/audit.d.ts.map +1 -1
  126. package/dist/commands/audit.js +415 -397
  127. package/dist/commands/audit.js.map +1 -1
  128. package/dist/commands/build.d.ts +61 -4
  129. package/dist/commands/build.d.ts.map +1 -1
  130. package/dist/commands/build.js +176 -190
  131. package/dist/commands/build.js.map +1 -1
  132. package/dist/commands/cache/clear-schema.d.ts +111 -0
  133. package/dist/commands/cache/clear-schema.d.ts.map +1 -0
  134. package/dist/commands/cache/clear-schema.js +37 -0
  135. package/dist/commands/cache/clear-schema.js.map +1 -0
  136. package/dist/commands/cache/clear.d.ts +28 -26
  137. package/dist/commands/cache/clear.d.ts.map +1 -1
  138. package/dist/commands/cache/clear.js +108 -103
  139. package/dist/commands/cache/clear.js.map +1 -1
  140. package/dist/commands/cache/index.d.ts.map +1 -1
  141. package/dist/commands/cache/index.js +13 -7
  142. package/dist/commands/cache/index.js.map +1 -1
  143. package/dist/commands/claude/claude-config.d.ts +23 -6
  144. package/dist/commands/claude/claude-config.d.ts.map +1 -1
  145. package/dist/commands/claude/claude-config.js +29 -15
  146. package/dist/commands/claude/claude-config.js.map +1 -1
  147. package/dist/commands/claude/context.d.ts +87 -2
  148. package/dist/commands/claude/context.d.ts.map +1 -1
  149. package/dist/commands/claude/context.js +116 -57
  150. package/dist/commands/claude/context.js.map +1 -1
  151. package/dist/commands/claude/marketplace/changelog-utils.js +2 -2
  152. package/dist/commands/claude/marketplace/changelog-utils.js.map +1 -1
  153. package/dist/commands/claude/marketplace/git-publish.d.ts +14 -1
  154. package/dist/commands/claude/marketplace/git-publish.d.ts.map +1 -1
  155. package/dist/commands/claude/marketplace/git-publish.js +135 -68
  156. package/dist/commands/claude/marketplace/git-publish.js.map +1 -1
  157. package/dist/commands/claude/marketplace/license-utils.d.ts +3 -5
  158. package/dist/commands/claude/marketplace/license-utils.d.ts.map +1 -1
  159. package/dist/commands/claude/marketplace/license-utils.js +16 -7
  160. package/dist/commands/claude/marketplace/license-utils.js.map +1 -1
  161. package/dist/commands/claude/marketplace/publish-schema.d.ts +137 -0
  162. package/dist/commands/claude/marketplace/publish-schema.d.ts.map +1 -0
  163. package/dist/commands/claude/marketplace/publish-schema.js +32 -0
  164. package/dist/commands/claude/marketplace/publish-schema.js.map +1 -0
  165. package/dist/commands/claude/marketplace/publish-tree.d.ts +6 -0
  166. package/dist/commands/claude/marketplace/publish-tree.d.ts.map +1 -1
  167. package/dist/commands/claude/marketplace/publish-tree.js +75 -17
  168. package/dist/commands/claude/marketplace/publish-tree.js.map +1 -1
  169. package/dist/commands/claude/marketplace/publish.d.ts +27 -0
  170. package/dist/commands/claude/marketplace/publish.d.ts.map +1 -1
  171. package/dist/commands/claude/marketplace/publish.js +84 -50
  172. package/dist/commands/claude/marketplace/publish.js.map +1 -1
  173. package/dist/commands/claude/marketplace/validate-schema.d.ts +362 -0
  174. package/dist/commands/claude/marketplace/validate-schema.d.ts.map +1 -0
  175. package/dist/commands/claude/marketplace/validate-schema.js +67 -0
  176. package/dist/commands/claude/marketplace/validate-schema.js.map +1 -0
  177. package/dist/commands/claude/marketplace/validate.d.ts +40 -53
  178. package/dist/commands/claude/marketplace/validate.d.ts.map +1 -1
  179. package/dist/commands/claude/marketplace/validate.js +358 -214
  180. package/dist/commands/claude/marketplace/validate.js.map +1 -1
  181. package/dist/commands/claude/org/api-keys.d.ts +3 -0
  182. package/dist/commands/claude/org/api-keys.d.ts.map +1 -1
  183. package/dist/commands/claude/org/api-keys.js +4 -5
  184. package/dist/commands/claude/org/api-keys.js.map +1 -1
  185. package/dist/commands/claude/org/code-analytics.js +1 -1
  186. package/dist/commands/claude/org/code-analytics.js.map +1 -1
  187. package/dist/commands/claude/org/cost.d.ts.map +1 -1
  188. package/dist/commands/claude/org/cost.js +11 -33
  189. package/dist/commands/claude/org/cost.js.map +1 -1
  190. package/dist/commands/claude/org/helpers.d.ts +40 -27
  191. package/dist/commands/claude/org/helpers.d.ts.map +1 -1
  192. package/dist/commands/claude/org/helpers.js +61 -66
  193. package/dist/commands/claude/org/helpers.js.map +1 -1
  194. package/dist/commands/claude/org/index.d.ts.map +1 -1
  195. package/dist/commands/claude/org/index.js +10 -4
  196. package/dist/commands/claude/org/index.js.map +1 -1
  197. package/dist/commands/claude/org/info.d.ts.map +1 -1
  198. package/dist/commands/claude/org/info.js +2 -3
  199. package/dist/commands/claude/org/info.js.map +1 -1
  200. package/dist/commands/claude/org/invites.d.ts +3 -0
  201. package/dist/commands/claude/org/invites.d.ts.map +1 -1
  202. package/dist/commands/claude/org/invites.js +5 -7
  203. package/dist/commands/claude/org/invites.js.map +1 -1
  204. package/dist/commands/claude/org/skills.d.ts +76 -21
  205. package/dist/commands/claude/org/skills.d.ts.map +1 -1
  206. package/dist/commands/claude/org/skills.js +273 -246
  207. package/dist/commands/claude/org/skills.js.map +1 -1
  208. package/dist/commands/claude/org/stubs-schema.d.ts +56 -0
  209. package/dist/commands/claude/org/stubs-schema.d.ts.map +1 -0
  210. package/dist/commands/claude/org/stubs-schema.js +23 -0
  211. package/dist/commands/claude/org/stubs-schema.js.map +1 -0
  212. package/dist/commands/claude/org/stubs.d.ts +8 -3
  213. package/dist/commands/claude/org/stubs.d.ts.map +1 -1
  214. package/dist/commands/claude/org/stubs.js +9 -9
  215. package/dist/commands/claude/org/stubs.js.map +1 -1
  216. package/dist/commands/claude/org/usage.d.ts.map +1 -1
  217. package/dist/commands/claude/org/usage.js +1 -2
  218. package/dist/commands/claude/org/usage.js.map +1 -1
  219. package/dist/commands/claude/org/users.d.ts +3 -0
  220. package/dist/commands/claude/org/users.d.ts.map +1 -1
  221. package/dist/commands/claude/org/users.js +6 -8
  222. package/dist/commands/claude/org/users.js.map +1 -1
  223. package/dist/commands/claude/org/workspaces.d.ts +3 -0
  224. package/dist/commands/claude/org/workspaces.d.ts.map +1 -1
  225. package/dist/commands/claude/org/workspaces.js +10 -15
  226. package/dist/commands/claude/org/workspaces.js.map +1 -1
  227. package/dist/commands/claude/plugin/build-schema.d.ts +642 -0
  228. package/dist/commands/claude/plugin/build-schema.d.ts.map +1 -0
  229. package/dist/commands/claude/plugin/build-schema.js +51 -0
  230. package/dist/commands/claude/plugin/build-schema.js.map +1 -0
  231. package/dist/commands/claude/plugin/build.d.ts +220 -45
  232. package/dist/commands/claude/plugin/build.d.ts.map +1 -1
  233. package/dist/commands/claude/plugin/build.js +466 -249
  234. package/dist/commands/claude/plugin/build.js.map +1 -1
  235. package/dist/commands/claude/plugin/helpers.d.ts +186 -24
  236. package/dist/commands/claude/plugin/helpers.d.ts.map +1 -1
  237. package/dist/commands/claude/plugin/helpers.js +110 -68
  238. package/dist/commands/claude/plugin/helpers.js.map +1 -1
  239. package/dist/commands/claude/plugin/install-schema.d.ts +144 -0
  240. package/dist/commands/claude/plugin/install-schema.d.ts.map +1 -0
  241. package/dist/commands/claude/plugin/install-schema.js +36 -0
  242. package/dist/commands/claude/plugin/install-schema.js.map +1 -0
  243. package/dist/commands/claude/plugin/install.d.ts +191 -11
  244. package/dist/commands/claude/plugin/install.d.ts.map +1 -1
  245. package/dist/commands/claude/plugin/install.js +688 -628
  246. package/dist/commands/claude/plugin/install.js.map +1 -1
  247. package/dist/commands/claude/plugin/kept-findings.d.ts +19 -0
  248. package/dist/commands/claude/plugin/kept-findings.d.ts.map +1 -0
  249. package/dist/commands/claude/plugin/kept-findings.js +24 -0
  250. package/dist/commands/claude/plugin/kept-findings.js.map +1 -0
  251. package/dist/commands/claude/plugin/list-schema.d.ts +223 -0
  252. package/dist/commands/claude/plugin/list-schema.d.ts.map +1 -0
  253. package/dist/commands/claude/plugin/list-schema.js +34 -0
  254. package/dist/commands/claude/plugin/list-schema.js.map +1 -0
  255. package/dist/commands/claude/plugin/list.d.ts +18 -0
  256. package/dist/commands/claude/plugin/list.d.ts.map +1 -1
  257. package/dist/commands/claude/plugin/list.js +53 -45
  258. package/dist/commands/claude/plugin/list.js.map +1 -1
  259. package/dist/commands/claude/plugin/npm-pack.d.ts +15 -0
  260. package/dist/commands/claude/plugin/npm-pack.d.ts.map +1 -0
  261. package/dist/commands/claude/plugin/npm-pack.js +39 -0
  262. package/dist/commands/claude/plugin/npm-pack.js.map +1 -0
  263. package/dist/commands/claude/plugin/plugin-changelog.d.ts +5 -1
  264. package/dist/commands/claude/plugin/plugin-changelog.d.ts.map +1 -1
  265. package/dist/commands/claude/plugin/plugin-changelog.js +9 -5
  266. package/dist/commands/claude/plugin/plugin-changelog.js.map +1 -1
  267. package/dist/commands/claude/plugin/plugin-files.d.ts +21 -2
  268. package/dist/commands/claude/plugin/plugin-files.d.ts.map +1 -1
  269. package/dist/commands/claude/plugin/plugin-files.js +65 -32
  270. package/dist/commands/claude/plugin/plugin-files.js.map +1 -1
  271. package/dist/commands/claude/plugin/plugin-validators.d.ts +13 -0
  272. package/dist/commands/claude/plugin/plugin-validators.d.ts.map +1 -1
  273. package/dist/commands/claude/plugin/plugin-validators.js +64 -16
  274. package/dist/commands/claude/plugin/plugin-validators.js.map +1 -1
  275. package/dist/commands/claude/plugin/tree-copy.d.ts.map +1 -1
  276. package/dist/commands/claude/plugin/tree-copy.js +63 -37
  277. package/dist/commands/claude/plugin/tree-copy.js.map +1 -1
  278. package/dist/commands/claude/plugin/uninstall-schema.d.ts +112 -0
  279. package/dist/commands/claude/plugin/uninstall-schema.d.ts.map +1 -0
  280. package/dist/commands/claude/plugin/uninstall-schema.js +28 -0
  281. package/dist/commands/claude/plugin/uninstall-schema.js.map +1 -0
  282. package/dist/commands/claude/plugin/uninstall.d.ts +57 -0
  283. package/dist/commands/claude/plugin/uninstall.d.ts.map +1 -1
  284. package/dist/commands/claude/plugin/uninstall.js +176 -64
  285. package/dist/commands/claude/plugin/uninstall.js.map +1 -1
  286. package/dist/commands/consistency-check.d.ts.map +1 -1
  287. package/dist/commands/consistency-check.js +8 -6
  288. package/dist/commands/consistency-check.js.map +1 -1
  289. package/dist/commands/corpus/index.d.ts.map +1 -1
  290. package/dist/commands/corpus/index.js +26 -10
  291. package/dist/commands/corpus/index.js.map +1 -1
  292. package/dist/commands/corpus/report.d.ts +34 -16
  293. package/dist/commands/corpus/report.d.ts.map +1 -1
  294. package/dist/commands/corpus/report.js +36 -18
  295. package/dist/commands/corpus/report.js.map +1 -1
  296. package/dist/commands/corpus/runner.d.ts +25 -20
  297. package/dist/commands/corpus/runner.d.ts.map +1 -1
  298. package/dist/commands/corpus/runner.js +123 -67
  299. package/dist/commands/corpus/runner.js.map +1 -1
  300. package/dist/commands/corpus/scan-schema.d.ts +127 -0
  301. package/dist/commands/corpus/scan-schema.d.ts.map +1 -0
  302. package/dist/commands/corpus/scan-schema.js +31 -0
  303. package/dist/commands/corpus/scan-schema.js.map +1 -0
  304. package/dist/commands/corpus/scan.d.ts +31 -0
  305. package/dist/commands/corpus/scan.d.ts.map +1 -1
  306. package/dist/commands/corpus/scan.js +124 -50
  307. package/dist/commands/corpus/scan.js.map +1 -1
  308. package/dist/commands/corpus/seed.d.ts +11 -8
  309. package/dist/commands/corpus/seed.d.ts.map +1 -1
  310. package/dist/commands/corpus/seed.js +29 -11
  311. package/dist/commands/corpus/seed.js.map +1 -1
  312. package/dist/commands/doctor-render.d.ts +52 -0
  313. package/dist/commands/doctor-render.d.ts.map +1 -0
  314. package/dist/commands/doctor-render.js +110 -0
  315. package/dist/commands/doctor-render.js.map +1 -0
  316. package/dist/commands/doctor-schema.d.ts +191 -0
  317. package/dist/commands/doctor-schema.d.ts.map +1 -0
  318. package/dist/commands/doctor-schema.js +44 -0
  319. package/dist/commands/doctor-schema.js.map +1 -0
  320. package/dist/commands/doctor.d.ts +7 -62
  321. package/dist/commands/doctor.d.ts.map +1 -1
  322. package/dist/commands/doctor.js +126 -165
  323. package/dist/commands/doctor.js.map +1 -1
  324. package/dist/commands/inventory-schema.d.ts +7297 -0
  325. package/dist/commands/inventory-schema.d.ts.map +1 -0
  326. package/dist/commands/inventory-schema.js +28 -0
  327. package/dist/commands/inventory-schema.js.map +1 -0
  328. package/dist/commands/inventory.d.ts +1 -1
  329. package/dist/commands/inventory.d.ts.map +1 -1
  330. package/dist/commands/inventory.js +89 -41
  331. package/dist/commands/inventory.js.map +1 -1
  332. package/dist/commands/mcp/index.d.ts.map +1 -1
  333. package/dist/commands/mcp/index.js +15 -0
  334. package/dist/commands/mcp/index.js.map +1 -1
  335. package/dist/commands/mcp/list-collections-schema.d.ts +101 -0
  336. package/dist/commands/mcp/list-collections-schema.d.ts.map +1 -0
  337. package/dist/commands/mcp/list-collections-schema.js +22 -0
  338. package/dist/commands/mcp/list-collections-schema.js.map +1 -0
  339. package/dist/commands/mcp/list-collections.d.ts +1 -1
  340. package/dist/commands/mcp/list-collections.d.ts.map +1 -1
  341. package/dist/commands/mcp/list-collections.js +19 -17
  342. package/dist/commands/mcp/list-collections.js.map +1 -1
  343. package/dist/commands/mcp/serve.d.ts +5 -0
  344. package/dist/commands/mcp/serve.d.ts.map +1 -1
  345. package/dist/commands/mcp/serve.js +29 -15
  346. package/dist/commands/mcp/serve.js.map +1 -1
  347. package/dist/commands/okf/index.d.ts.map +1 -1
  348. package/dist/commands/okf/index.js +13 -10
  349. package/dist/commands/okf/index.js.map +1 -1
  350. package/dist/commands/okf/validate-schema.d.ts +171 -0
  351. package/dist/commands/okf/validate-schema.d.ts.map +1 -0
  352. package/dist/commands/okf/validate-schema.js +44 -0
  353. package/dist/commands/okf/validate-schema.js.map +1 -0
  354. package/dist/commands/okf/validate.d.ts +16 -145
  355. package/dist/commands/okf/validate.d.ts.map +1 -1
  356. package/dist/commands/okf/validate.js +63 -52
  357. package/dist/commands/okf/validate.js.map +1 -1
  358. package/dist/commands/orchestrator-schema.d.ts +419 -0
  359. package/dist/commands/orchestrator-schema.d.ts.map +1 -0
  360. package/dist/commands/orchestrator-schema.js +91 -0
  361. package/dist/commands/orchestrator-schema.js.map +1 -0
  362. package/dist/commands/phase-utils.d.ts +188 -220
  363. package/dist/commands/phase-utils.d.ts.map +1 -1
  364. package/dist/commands/phase-utils.js +210 -258
  365. package/dist/commands/phase-utils.js.map +1 -1
  366. package/dist/commands/positional-args.d.ts +13 -11
  367. package/dist/commands/positional-args.d.ts.map +1 -1
  368. package/dist/commands/positional-args.js +16 -15
  369. package/dist/commands/positional-args.js.map +1 -1
  370. package/dist/commands/rag/admin-schema.d.ts +152 -0
  371. package/dist/commands/rag/admin-schema.d.ts.map +1 -0
  372. package/dist/commands/rag/admin-schema.js +31 -0
  373. package/dist/commands/rag/admin-schema.js.map +1 -0
  374. package/dist/commands/rag/clear-command.d.ts.map +1 -1
  375. package/dist/commands/rag/clear-command.js +30 -15
  376. package/dist/commands/rag/clear-command.js.map +1 -1
  377. package/dist/commands/rag/command-helpers.d.ts +31 -7
  378. package/dist/commands/rag/command-helpers.d.ts.map +1 -1
  379. package/dist/commands/rag/command-helpers.js +41 -21
  380. package/dist/commands/rag/command-helpers.js.map +1 -1
  381. package/dist/commands/rag/index-command.d.ts +37 -48
  382. package/dist/commands/rag/index-command.d.ts.map +1 -1
  383. package/dist/commands/rag/index-command.js +80 -65
  384. package/dist/commands/rag/index-command.js.map +1 -1
  385. package/dist/commands/rag/index-schema.d.ts +107 -0
  386. package/dist/commands/rag/index-schema.d.ts.map +1 -0
  387. package/dist/commands/rag/index-schema.js +34 -0
  388. package/dist/commands/rag/index-schema.js.map +1 -0
  389. package/dist/commands/rag/index.d.ts.map +1 -1
  390. package/dist/commands/rag/index.js +88 -41
  391. package/dist/commands/rag/index.js.map +1 -1
  392. package/dist/commands/rag/query-command.d.ts +18 -4
  393. package/dist/commands/rag/query-command.d.ts.map +1 -1
  394. package/dist/commands/rag/query-command.js +42 -27
  395. package/dist/commands/rag/query-command.js.map +1 -1
  396. package/dist/commands/rag/query-schema.d.ts +363 -0
  397. package/dist/commands/rag/query-schema.d.ts.map +1 -0
  398. package/dist/commands/rag/query-schema.js +59 -0
  399. package/dist/commands/rag/query-schema.js.map +1 -0
  400. package/dist/commands/rag/stats-command.d.ts.map +1 -1
  401. package/dist/commands/rag/stats-command.js +19 -18
  402. package/dist/commands/rag/stats-command.js.map +1 -1
  403. package/dist/commands/resources/check-progress.d.ts +79 -13
  404. package/dist/commands/resources/check-progress.d.ts.map +1 -1
  405. package/dist/commands/resources/check-progress.js +112 -11
  406. package/dist/commands/resources/check-progress.js.map +1 -1
  407. package/dist/commands/resources/check-schema.d.ts +335 -0
  408. package/dist/commands/resources/check-schema.d.ts.map +1 -0
  409. package/dist/commands/resources/check-schema.js +104 -0
  410. package/dist/commands/resources/check-schema.js.map +1 -0
  411. package/dist/commands/resources/check-supervisor.d.ts +329 -71
  412. package/dist/commands/resources/check-supervisor.d.ts.map +1 -1
  413. package/dist/commands/resources/check-supervisor.js +507 -107
  414. package/dist/commands/resources/check-supervisor.js.map +1 -1
  415. package/dist/commands/resources/check.d.ts +88 -254
  416. package/dist/commands/resources/check.d.ts.map +1 -1
  417. package/dist/commands/resources/check.js +537 -310
  418. package/dist/commands/resources/check.js.map +1 -1
  419. package/dist/commands/resources/index.d.ts.map +1 -1
  420. package/dist/commands/resources/index.js +189 -103
  421. package/dist/commands/resources/index.js.map +1 -1
  422. package/dist/commands/resources/query-schema.d.ts +188 -0
  423. package/dist/commands/resources/query-schema.d.ts.map +1 -0
  424. package/dist/commands/resources/query-schema.js +48 -0
  425. package/dist/commands/resources/query-schema.js.map +1 -0
  426. package/dist/commands/resources/query.d.ts +18 -13
  427. package/dist/commands/resources/query.d.ts.map +1 -1
  428. package/dist/commands/resources/query.js +61 -49
  429. package/dist/commands/resources/query.js.map +1 -1
  430. package/dist/commands/resources/scan-schema.d.ts +195 -0
  431. package/dist/commands/resources/scan-schema.d.ts.map +1 -0
  432. package/dist/commands/resources/scan-schema.js +53 -0
  433. package/dist/commands/resources/scan-schema.js.map +1 -0
  434. package/dist/commands/resources/scan.d.ts +26 -3
  435. package/dist/commands/resources/scan.d.ts.map +1 -1
  436. package/dist/commands/resources/scan.js +51 -53
  437. package/dist/commands/resources/scan.js.map +1 -1
  438. package/dist/commands/resources/validate-schema.d.ts +326 -0
  439. package/dist/commands/resources/validate-schema.d.ts.map +1 -0
  440. package/dist/commands/resources/validate-schema.js +60 -0
  441. package/dist/commands/resources/validate-schema.js.map +1 -0
  442. package/dist/commands/resources/validate.d.ts +45 -169
  443. package/dist/commands/resources/validate.d.ts.map +1 -1
  444. package/dist/commands/resources/validate.js +221 -485
  445. package/dist/commands/resources/validate.js.map +1 -1
  446. package/dist/commands/skill/review-checklist.d.ts.map +1 -1
  447. package/dist/commands/skill/review-checklist.js +0 -1
  448. package/dist/commands/skill/review-checklist.js.map +1 -1
  449. package/dist/commands/skill/review-schema.d.ts +278 -0
  450. package/dist/commands/skill/review-schema.d.ts.map +1 -0
  451. package/dist/commands/skill/review-schema.js +46 -0
  452. package/dist/commands/skill/review-schema.js.map +1 -0
  453. package/dist/commands/skill/review.d.ts +8 -234
  454. package/dist/commands/skill/review.d.ts.map +1 -1
  455. package/dist/commands/skill/review.js +54 -77
  456. package/dist/commands/skill/review.js.map +1 -1
  457. package/dist/commands/skill/test/auth-flags.d.ts +3 -0
  458. package/dist/commands/skill/test/auth-flags.d.ts.map +1 -1
  459. package/dist/commands/skill/test/auth-flags.js +6 -2
  460. package/dist/commands/skill/test/auth-flags.js.map +1 -1
  461. package/dist/commands/skill/test/configure-schema.d.ts +67 -0
  462. package/dist/commands/skill/test/configure-schema.d.ts.map +1 -0
  463. package/dist/commands/skill/test/configure-schema.js +27 -0
  464. package/dist/commands/skill/test/configure-schema.js.map +1 -0
  465. package/dist/commands/skill/test/configure.d.ts +12 -5
  466. package/dist/commands/skill/test/configure.d.ts.map +1 -1
  467. package/dist/commands/skill/test/configure.js +101 -31
  468. package/dist/commands/skill/test/configure.js.map +1 -1
  469. package/dist/commands/skill/test/run-schema.d.ts +107 -0
  470. package/dist/commands/skill/test/run-schema.d.ts.map +1 -0
  471. package/dist/commands/skill/test/run-schema.js +36 -0
  472. package/dist/commands/skill/test/run-schema.js.map +1 -0
  473. package/dist/commands/skill/test/run.d.ts +3 -2
  474. package/dist/commands/skill/test/run.d.ts.map +1 -1
  475. package/dist/commands/skill/test/run.js +316 -155
  476. package/dist/commands/skill/test/run.js.map +1 -1
  477. package/dist/commands/skills/build-schema.d.ts +199 -0
  478. package/dist/commands/skills/build-schema.d.ts.map +1 -0
  479. package/dist/commands/skills/build-schema.js +55 -0
  480. package/dist/commands/skills/build-schema.js.map +1 -0
  481. package/dist/commands/skills/build.d.ts +95 -298
  482. package/dist/commands/skills/build.d.ts.map +1 -1
  483. package/dist/commands/skills/build.js +415 -818
  484. package/dist/commands/skills/build.js.map +1 -1
  485. package/dist/commands/skills/command-helpers.d.ts +5 -11
  486. package/dist/commands/skills/command-helpers.d.ts.map +1 -1
  487. package/dist/commands/skills/command-helpers.js +7 -17
  488. package/dist/commands/skills/command-helpers.js.map +1 -1
  489. package/dist/commands/skills/index.js +12 -6
  490. package/dist/commands/skills/index.js.map +1 -1
  491. package/dist/commands/skills/install-schema.d.ts +153 -0
  492. package/dist/commands/skills/install-schema.d.ts.map +1 -0
  493. package/dist/commands/skills/install-schema.js +44 -0
  494. package/dist/commands/skills/install-schema.js.map +1 -0
  495. package/dist/commands/skills/install.d.ts +76 -8
  496. package/dist/commands/skills/install.d.ts.map +1 -1
  497. package/dist/commands/skills/install.js +230 -194
  498. package/dist/commands/skills/install.js.map +1 -1
  499. package/dist/commands/skills/list-schema.d.ts +145 -0
  500. package/dist/commands/skills/list-schema.d.ts.map +1 -0
  501. package/dist/commands/skills/list-schema.js +37 -0
  502. package/dist/commands/skills/list-schema.js.map +1 -0
  503. package/dist/commands/skills/list.d.ts +39 -8
  504. package/dist/commands/skills/list.d.ts.map +1 -1
  505. package/dist/commands/skills/list.js +110 -122
  506. package/dist/commands/skills/list.js.map +1 -1
  507. package/dist/commands/skills/package-schema.d.ts +98 -0
  508. package/dist/commands/skills/package-schema.d.ts.map +1 -0
  509. package/dist/commands/skills/package-schema.js +32 -0
  510. package/dist/commands/skills/package-schema.js.map +1 -0
  511. package/dist/commands/skills/package.d.ts +85 -14
  512. package/dist/commands/skills/package.d.ts.map +1 -1
  513. package/dist/commands/skills/package.js +288 -207
  514. package/dist/commands/skills/package.js.map +1 -1
  515. package/dist/commands/skills/scope-guard.d.ts +27 -20
  516. package/dist/commands/skills/scope-guard.d.ts.map +1 -1
  517. package/dist/commands/skills/scope-guard.js +43 -28
  518. package/dist/commands/skills/scope-guard.js.map +1 -1
  519. package/dist/commands/skills/skill-discovery.d.ts +1 -1
  520. package/dist/commands/skills/skill-discovery.d.ts.map +1 -1
  521. package/dist/commands/skills/skill-discovery.js +40 -19
  522. package/dist/commands/skills/skill-discovery.js.map +1 -1
  523. package/dist/commands/skills/source-resolvers.d.ts +58 -8
  524. package/dist/commands/skills/source-resolvers.d.ts.map +1 -1
  525. package/dist/commands/skills/source-resolvers.js +113 -38
  526. package/dist/commands/skills/source-resolvers.js.map +1 -1
  527. package/dist/commands/skills/validate-command.d.ts.map +1 -1
  528. package/dist/commands/skills/validate-command.js +31 -51
  529. package/dist/commands/skills/validate-command.js.map +1 -1
  530. package/dist/commands/skills/validate-schema.d.ts +199 -0
  531. package/dist/commands/skills/validate-schema.d.ts.map +1 -0
  532. package/dist/commands/skills/validate-schema.js +44 -0
  533. package/dist/commands/skills/validate-schema.js.map +1 -0
  534. package/dist/commands/skills/validate.d.ts +100 -136
  535. package/dist/commands/skills/validate.d.ts.map +1 -1
  536. package/dist/commands/skills/validate.js +257 -343
  537. package/dist/commands/skills/validate.js.map +1 -1
  538. package/dist/commands/validate.d.ts +17 -5
  539. package/dist/commands/validate.d.ts.map +1 -1
  540. package/dist/commands/validate.js +139 -94
  541. package/dist/commands/validate.js.map +1 -1
  542. package/dist/commands/verify.d.ts +121 -110
  543. package/dist/commands/verify.d.ts.map +1 -1
  544. package/dist/commands/verify.js +230 -294
  545. package/dist/commands/verify.js.map +1 -1
  546. package/dist/index.d.ts +1 -1
  547. package/dist/index.d.ts.map +1 -1
  548. package/dist/index.js +1 -1
  549. package/dist/index.js.map +1 -1
  550. package/dist/report-schemas.d.ts +12398 -35
  551. package/dist/report-schemas.d.ts.map +1 -1
  552. package/dist/report-schemas.js +624 -66
  553. package/dist/report-schemas.js.map +1 -1
  554. package/dist/skill-resolution/packaging-config.js +2 -2
  555. package/dist/skill-resolution/packaging-config.js.map +1 -1
  556. package/dist/skill-resolution/resolve-skill-reference.d.ts.map +1 -1
  557. package/dist/skill-resolution/resolve-skill-reference.js +20 -13
  558. package/dist/skill-resolution/resolve-skill-reference.js.map +1 -1
  559. package/dist/utils/agent-discovery.d.ts +34 -1
  560. package/dist/utils/agent-discovery.d.ts.map +1 -1
  561. package/dist/utils/agent-discovery.js +80 -38
  562. package/dist/utils/agent-discovery.js.map +1 -1
  563. package/dist/utils/claude-context-lens.d.ts +13 -6
  564. package/dist/utils/claude-context-lens.d.ts.map +1 -1
  565. package/dist/utils/claude-context-lens.js +11 -12
  566. package/dist/utils/claude-context-lens.js.map +1 -1
  567. package/dist/utils/command-error-codes.d.ts +12 -0
  568. package/dist/utils/command-error-codes.d.ts.map +1 -0
  569. package/dist/utils/command-error-codes.js +12 -0
  570. package/dist/utils/command-error-codes.js.map +1 -0
  571. package/dist/utils/command-refusal.d.ts +58 -0
  572. package/dist/utils/command-refusal.d.ts.map +1 -0
  573. package/dist/utils/command-refusal.js +170 -0
  574. package/dist/utils/command-refusal.js.map +1 -0
  575. package/dist/utils/commander-ending.d.ts +40 -0
  576. package/dist/utils/commander-ending.d.ts.map +1 -0
  577. package/dist/utils/commander-ending.js +42 -0
  578. package/dist/utils/commander-ending.js.map +1 -0
  579. package/dist/utils/config-loader.d.ts +13 -8
  580. package/dist/utils/config-loader.d.ts.map +1 -1
  581. package/dist/utils/config-loader.js +84 -45
  582. package/dist/utils/config-loader.js.map +1 -1
  583. package/dist/utils/corpus-target.d.ts +1 -1
  584. package/dist/utils/corpus-target.d.ts.map +1 -1
  585. package/dist/utils/corpus-target.js +44 -5
  586. package/dist/utils/corpus-target.js.map +1 -1
  587. package/dist/utils/debug-diagnostics.d.ts +18 -0
  588. package/dist/utils/debug-diagnostics.d.ts.map +1 -0
  589. package/dist/utils/debug-diagnostics.js +23 -0
  590. package/dist/utils/debug-diagnostics.js.map +1 -0
  591. package/dist/utils/document-writer.d.ts +191 -0
  592. package/dist/utils/document-writer.d.ts.map +1 -0
  593. package/dist/utils/document-writer.js +319 -0
  594. package/dist/utils/document-writer.js.map +1 -0
  595. package/dist/utils/help-loader.d.ts +2 -2
  596. package/dist/utils/help-loader.js +2 -2
  597. package/dist/utils/install-plan.d.ts +99 -0
  598. package/dist/utils/install-plan.d.ts.map +1 -0
  599. package/dist/utils/install-plan.js +146 -0
  600. package/dist/utils/install-plan.js.map +1 -0
  601. package/dist/utils/issue-anchor.d.ts +1 -1
  602. package/dist/utils/issue-anchor.d.ts.map +1 -1
  603. package/dist/utils/issue-anchor.js.map +1 -1
  604. package/dist/utils/issue-rendering.d.ts +8 -3
  605. package/dist/utils/issue-rendering.d.ts.map +1 -1
  606. package/dist/utils/issue-rendering.js +4 -0
  607. package/dist/utils/issue-rendering.js.map +1 -1
  608. package/dist/utils/lens-population.d.ts +20 -0
  609. package/dist/utils/lens-population.d.ts.map +1 -0
  610. package/dist/utils/lens-population.js +15 -0
  611. package/dist/utils/lens-population.js.map +1 -0
  612. package/dist/utils/marketplace-io.d.ts +63 -0
  613. package/dist/utils/marketplace-io.d.ts.map +1 -0
  614. package/dist/utils/marketplace-io.js +63 -0
  615. package/dist/utils/marketplace-io.js.map +1 -0
  616. package/dist/utils/operator-notices.d.ts +97 -0
  617. package/dist/utils/operator-notices.d.ts.map +1 -0
  618. package/dist/utils/operator-notices.js +115 -0
  619. package/dist/utils/operator-notices.js.map +1 -0
  620. package/dist/utils/optional-backend.d.ts +18 -15
  621. package/dist/utils/optional-backend.d.ts.map +1 -1
  622. package/dist/utils/optional-backend.js +22 -33
  623. package/dist/utils/optional-backend.js.map +1 -1
  624. package/dist/utils/output.d.ts +5 -43
  625. package/dist/utils/output.d.ts.map +1 -1
  626. package/dist/utils/output.js +8 -63
  627. package/dist/utils/output.js.map +1 -1
  628. package/dist/utils/package-json.d.ts +3 -4
  629. package/dist/utils/package-json.d.ts.map +1 -1
  630. package/dist/utils/package-json.js +8 -8
  631. package/dist/utils/package-json.js.map +1 -1
  632. package/dist/utils/population-wiring.d.ts +31 -38
  633. package/dist/utils/population-wiring.d.ts.map +1 -1
  634. package/dist/utils/population-wiring.js +38 -32
  635. package/dist/utils/population-wiring.js.map +1 -1
  636. package/dist/utils/project-root-policy.d.ts +74 -1
  637. package/dist/utils/project-root-policy.d.ts.map +1 -1
  638. package/dist/utils/project-root-policy.js +146 -8
  639. package/dist/utils/project-root-policy.js.map +1 -1
  640. package/dist/utils/projection-lenses.d.ts +25 -7
  641. package/dist/utils/projection-lenses.d.ts.map +1 -1
  642. package/dist/utils/projection-lenses.js +20 -6
  643. package/dist/utils/projection-lenses.js.map +1 -1
  644. package/dist/utils/projection-query.d.ts +18 -11
  645. package/dist/utils/projection-query.d.ts.map +1 -1
  646. package/dist/utils/projection-query.js +47 -28
  647. package/dist/utils/projection-query.js.map +1 -1
  648. package/dist/utils/projection-store.d.ts +2 -2
  649. package/dist/utils/projection-store.d.ts.map +1 -1
  650. package/dist/utils/projection-store.js +74 -45
  651. package/dist/utils/projection-store.js.map +1 -1
  652. package/dist/utils/rag-database.d.ts +61 -0
  653. package/dist/utils/rag-database.d.ts.map +1 -0
  654. package/dist/utils/rag-database.js +178 -0
  655. package/dist/utils/rag-database.js.map +1 -0
  656. package/dist/utils/relation-limits.d.ts +7 -2
  657. package/dist/utils/relation-limits.d.ts.map +1 -1
  658. package/dist/utils/relation-limits.js +6 -1
  659. package/dist/utils/relation-limits.js.map +1 -1
  660. package/dist/utils/relativize-paths.d.ts +23 -0
  661. package/dist/utils/relativize-paths.d.ts.map +1 -1
  662. package/dist/utils/relativize-paths.js +32 -1
  663. package/dist/utils/relativize-paths.js.map +1 -1
  664. package/dist/utils/resource-loader.d.ts +78 -32
  665. package/dist/utils/resource-loader.d.ts.map +1 -1
  666. package/dist/utils/resource-loader.js +134 -66
  667. package/dist/utils/resource-loader.js.map +1 -1
  668. package/dist/utils/run-integrity.d.ts +64 -31
  669. package/dist/utils/run-integrity.d.ts.map +1 -1
  670. package/dist/utils/run-integrity.js +76 -35
  671. package/dist/utils/run-integrity.js.map +1 -1
  672. package/dist/utils/scope-locations.d.ts +7 -5
  673. package/dist/utils/scope-locations.d.ts.map +1 -1
  674. package/dist/utils/scope-locations.js +37 -12
  675. package/dist/utils/scope-locations.js.map +1 -1
  676. package/dist/utils/staging-dir.d.ts +7 -0
  677. package/dist/utils/staging-dir.d.ts.map +1 -0
  678. package/dist/utils/staging-dir.js +12 -0
  679. package/dist/utils/staging-dir.js.map +1 -0
  680. package/dist/utils/url-redact.d.ts +9 -0
  681. package/dist/utils/url-redact.d.ts.map +1 -1
  682. package/dist/utils/url-redact.js +13 -0
  683. package/dist/utils/url-redact.js.map +1 -1
  684. package/dist/utils/user-context-scanner.d.ts +3 -2
  685. package/dist/utils/user-context-scanner.d.ts.map +1 -1
  686. package/dist/utils/user-context-scanner.js +24 -4
  687. package/dist/utils/user-context-scanner.js.map +1 -1
  688. package/dist/utils/validate-help-files.d.ts.map +1 -1
  689. package/dist/utils/validate-help-files.js +8 -14
  690. package/dist/utils/validate-help-files.js.map +1 -1
  691. package/dist/utils/vat-bin-path.d.ts.map +1 -1
  692. package/dist/utils/vat-bin-path.js +3 -3
  693. package/dist/utils/vat-bin-path.js.map +1 -1
  694. package/dist/utils/verdict-helpers.d.ts.map +1 -1
  695. package/dist/utils/verdict-helpers.js +5 -5
  696. package/dist/utils/verdict-helpers.js.map +1 -1
  697. package/docs/agent.md +347 -2
  698. package/docs/audit.md +312 -89
  699. package/docs/doctor.md +65 -19
  700. package/docs/index.md +571 -20
  701. package/docs/mcp.md +64 -12
  702. package/docs/rag.md +176 -48
  703. package/docs/resources.md +257 -71
  704. package/docs/skill-test.md +148 -19
  705. package/docs/skills.md +459 -174
  706. package/package.json +17 -20
  707. package/schemas/agent-build.json +268 -0
  708. package/schemas/agent-import.json +252 -0
  709. package/schemas/agent-install.json +260 -0
  710. package/schemas/agent-installed.json +287 -0
  711. package/schemas/agent-list.json +279 -0
  712. package/schemas/agent-uninstall.json +260 -0
  713. package/schemas/agent-validate.json +279 -0
  714. package/schemas/ard-emit.json +228 -107
  715. package/schemas/audit-settings.json +472 -0
  716. package/schemas/audit.json +635 -0
  717. package/schemas/cache-clear.json +273 -0
  718. package/schemas/claude-marketplace-publish.json +286 -0
  719. package/schemas/claude-marketplace-validate.json +352 -0
  720. package/schemas/claude-org-not-implemented.json +239 -0
  721. package/schemas/claude-plugin-build.json +446 -0
  722. package/schemas/claude-plugin-install.json +291 -0
  723. package/schemas/claude-plugin-list.json +326 -0
  724. package/schemas/claude-plugin-uninstall.json +272 -0
  725. package/schemas/corpus-audit.json +635 -0
  726. package/schemas/corpus-scan.json +293 -0
  727. package/schemas/doctor.json +299 -0
  728. package/schemas/inventory.json +982 -0
  729. package/schemas/mcp-list-collections.json +268 -0
  730. package/schemas/okf-validate.json +224 -106
  731. package/schemas/orchestrator.json +299 -0
  732. package/schemas/rag-clear.json +253 -0
  733. package/schemas/rag-index.json +273 -0
  734. package/schemas/rag-query.json +365 -0
  735. package/schemas/rag-stats.json +269 -0
  736. package/schemas/resources-check.json +280 -118
  737. package/schemas/resources-query.json +333 -0
  738. package/schemas/resources-scan.json +321 -0
  739. package/schemas/resources-validate.json +332 -0
  740. package/schemas/skill-review.json +224 -106
  741. package/schemas/skill-test-configure.json +256 -0
  742. package/schemas/skill-test-run.json +296 -0
  743. package/schemas/skills-build.json +325 -0
  744. package/schemas/skills-install.json +287 -0
  745. package/schemas/skills-list.json +283 -0
  746. package/schemas/skills-package.json +270 -0
  747. package/schemas/skills-validate.json +285 -0
  748. package/dist/commands/skills/shared.d.ts +0 -29
  749. package/dist/commands/skills/shared.d.ts.map +0 -1
  750. package/dist/commands/skills/shared.js +0 -33
  751. package/dist/commands/skills/shared.js.map +0 -1
  752. package/dist/utils/command-error.d.ts +0 -189
  753. package/dist/utils/command-error.d.ts.map +0 -1
  754. package/dist/utils/command-error.js +0 -230
  755. package/dist/utils/command-error.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-schema.js","sourceRoot":"","sources":["../../../src/commands/agent/build-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAe,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oFAAoF;AACpF,MAAM,CAAC,MAAM,oBAAoB,GAAwB;IACvD,IAAI,EAAE,cAAc;IACpB,QAAQ,EAAE,mJAAmJ;CAC9J,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,mCAAmC;IACnC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,mEAAmE;IACnE,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC1B,qCAAqC;IACrC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,6CAA6C;IAC7C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CAAC,MAAM,EAAE,CAAC;AAIZ,2CAA2C;AAC3C,MAAM,CAAC,MAAM,yBAAyB,GAAG,YAAY,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAC"}
@@ -4,6 +4,7 @@
4
4
  export interface BuildCommandOptions {
5
5
  target?: string;
6
6
  output?: string;
7
+ force?: boolean;
7
8
  debug?: boolean;
8
9
  }
9
10
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/build.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,YAAY,CAChC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CA8Cf"}
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/build.ts"],"names":[],"mappings":"AAAA;;GAEG;AAeH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAWD;;GAEG;AACH,wBAAsB,YAAY,CAChC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CA+Cf"}
@@ -1,56 +1,86 @@
1
1
  /**
2
2
  * Agent build command - Package agents for deployment targets
3
3
  */
4
- import { buildAgentSkill } from '@vibe-agent-toolkit/agent-skills';
5
- import { ExitCode } from '@vibe-agent-toolkit/schema';
4
+ import { buildAgentSkill, isSkillPackagingInputError } from '@vibe-agent-toolkit/agent-skills';
5
+ import { buildReport, toFindings } from '@vibe-agent-toolkit/schema';
6
+ import { issueLocation, relativeEscapesRoot, safePath } from '@vibe-agent-toolkit/utils';
6
7
  import { resolveAgentPath } from '../../utils/agent-discovery.js';
7
- import { handleCommandError } from '../../utils/command-error.js';
8
+ import { CommandRefusalError, refusalCodeOf } from '../../utils/command-refusal.js';
9
+ import { endWithRefusal, endWithReport, leftoverIssue, NOTHING_FINISHED } from '../../utils/document-writer.js';
8
10
  import { createLogger } from '../../utils/logger.js';
9
- import { writeYamlOutput } from '../../utils/output.js';
10
11
  import { requireProjectRoot } from '../../utils/project-root-policy.js';
12
+ import { packagingFailedIssue } from '../skills/build.js';
13
+ /** `vat agent build` has no `--strict` and publishes no finding: the gate is fixed. */
14
+ const GATE = { strict: false };
15
+ /** The one deployment target VAT builds. */
16
+ const SKILL_TARGET = 'skill';
17
+ /** One agent per run. */
18
+ const AGENTS_BUILT = 1;
11
19
  /**
12
20
  * Build an agent for a specific deployment target
13
21
  */
14
22
  export async function buildCommand(pathOrName, options) {
15
23
  const logger = createLogger(options.debug ? { debug: true } : {});
16
24
  const startTime = Date.now();
25
+ let report;
26
+ // Kept outside the try: a packager refusal is located at the agent, under the project root.
27
+ let projectRoot;
28
+ let agentPath;
17
29
  try {
18
30
  // Spec §7: `vat agent build` requires a projectRoot.
19
- requireProjectRoot(process.cwd(), 'vat agent build');
20
- const target = options.target ?? 'skill';
21
- logger.debug(`Building agent for target: ${target}`);
22
- // Resolve agent path
23
- const agentPath = await resolveAgentPath(pathOrName, logger);
24
- logger.debug(`Agent path resolved: ${agentPath}`);
25
- // Build based on target
26
- let result;
27
- if (target === 'skill') {
28
- logger.info('Building Agent Skill...');
29
- // Only pass outputPath if explicitly provided by user
30
- const buildOptions = options.output
31
- ? { agentPath, target, outputPath: options.output }
32
- : { agentPath, target };
33
- result = await buildAgentSkill(buildOptions);
34
- }
35
- else {
36
- throw new Error(`Unsupported build target: ${target}`);
31
+ projectRoot = requireProjectRoot(process.cwd(), 'vat agent build');
32
+ // A target VAT does not build is the invocation's mistake, refused before the agent is resolved or read.
33
+ const target = options.target ?? SKILL_TARGET;
34
+ if (target !== SKILL_TARGET) {
35
+ throw new CommandRefusalError('USAGE_INVALID', `Unsupported build target: ${target} (supported: ${SKILL_TARGET})`);
37
36
  }
38
- const duration = Date.now() - startTime;
39
- // Output success result
40
- writeYamlOutput({
41
- status: 'success',
42
- agent: result.agent.name,
37
+ agentPath = await resolveAgentPath(pathOrName, logger);
38
+ logger.debug(`Agent path resolved: ${agentPath}`);
39
+ logger.info('Building Agent Skill...');
40
+ // Only pass outputPath if explicitly provided by user
41
+ const result = await buildAgentSkill({
42
+ agentPath,
43
43
  target,
44
- output: result.outputPath,
45
- files: result.files,
46
- duration: `${duration}ms`,
44
+ ...(options.output ? { outputPath: options.output } : {}),
45
+ ...(options.force === true && { replaceExistingOutput: true }),
47
46
  });
48
- logger.info(`Build completed in ${duration}ms`);
47
+ const durationMs = Date.now() - startTime;
48
+ logger.info(`Build completed in ${durationMs}ms`);
49
49
  logger.info(`Output: ${result.outputPath}`);
50
- process.exit(ExitCode.OK);
50
+ report = buildReport({
51
+ examined: AGENTS_BUILT,
52
+ // A previous build the swap parked and the OS would not let VAT remove: the build is done, the leftover named.
53
+ findings: toFindings(result.residue.map(({ message, path }) => leftoverIssue(message, path))),
54
+ data: { agent: result.agent.name, target, output: result.outputPath, files: result.files },
55
+ gate: GATE,
56
+ durationMs,
57
+ });
51
58
  }
52
59
  catch (error) {
53
- handleCommandError(error, logger, startTime, 'AgentBuild');
60
+ const refusal = buildRefusalOf(error, agentPath, projectRoot);
61
+ endWithRefusal('agent build', refusal.code, error, 'yaml', GATE, refusal.finished);
54
62
  }
63
+ endWithReport('agent build', report, 'yaml');
64
+ }
65
+ /**
66
+ * The refusal a build that threw ends on. A coded cause keeps its own code. The
67
+ * packager refusing the generated bundle's content — content the adopter's
68
+ * prompt and output directory decide — is the `SKILL_PACKAGING_FAILED` finding
69
+ * at the agent on a run that stopped (`RUN_INCOMPLETE`), as `vat skill test run`
70
+ * publishes it; anything uncoded is a defect, `INTERNAL_ERROR`.
71
+ */
72
+ function buildRefusalOf(error, agentPath, projectRoot) {
73
+ const code = refusalCodeOf(error);
74
+ if (code !== 'INTERNAL_ERROR' || !isSkillPackagingInputError(error))
75
+ return { code, finished: NOTHING_FINISHED };
76
+ const issue = packagingFailedIssue(error instanceof Error ? error.message : String(error), agentLocation(agentPath, projectRoot), 'rebuild', error);
77
+ return { code: 'RUN_INCOMPLETE', finished: { examined: 0, findings: toFindings([issue]), data: null } };
78
+ }
79
+ /** The agent's path relative to the project root, or `undefined` when it is outside it (or unknown). */
80
+ function agentLocation(agentPath, projectRoot) {
81
+ if (agentPath === undefined || projectRoot === undefined)
82
+ return undefined;
83
+ const location = issueLocation(safePath.resolve(agentPath), projectRoot);
84
+ return relativeEscapesRoot(location) ? undefined : location;
55
85
  }
56
86
  //# sourceMappingURL=build.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../src/commands/agent/build.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAQxE;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,UAAkB,EAClB,OAA4B;IAE5B,MAAM,MAAM,GAAG,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,K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AAoB,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;IACpJ,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,CAAC;AAC1G,CAAC;AAED,wGAAwG;AACxG,SAAS,aAAa,CAAC,SAA6B,EAAE,WAA+B;IACnF,IAAI,SAAS,KAAK,SAAS,IAAI,WAAW,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC3E,MAAM,QAAQ,GAAG,aAAa,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC;IACzE,OAAO,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * The document `vat agent import` publishes, apart from the command.
3
+ *
4
+ * A sibling module because the published-shape registry imports it and the
5
+ * command imports the writer that imports the registry (the cycle
6
+ * `report-schemas.ts` describes).
7
+ *
8
+ * One skill per run: `examined` is 1 when it was imported. An import that could
9
+ * not finish is the envelope's error branch — the refusal `importSkillToAgent`
10
+ * names at its cause — never a finding, so an import publishes `ok` or `error`.
11
+ */
12
+ import { type Report } from '@vibe-agent-toolkit/schema';
13
+ import { z } from 'zod';
14
+ import type { ExaminedDeclaration } from '../../utils/run-integrity.js';
15
+ /** What `examined` counts for `vat agent import`, and the remedy when it is zero. */
16
+ export declare const AGENT_IMPORT_EXAMINED: ExaminedDeclaration;
17
+ declare const AgentImportDataSchema: z.ZodObject<{
18
+ /** The agent.yaml the import wrote. */
19
+ agentPath: z.ZodString;
20
+ }, "strict", z.ZodTypeAny, {
21
+ agentPath: string;
22
+ }, {
23
+ agentPath: string;
24
+ }>;
25
+ export type AgentImportData = z.infer<typeof AgentImportDataSchema>;
26
+ /** The document this command publishes. */
27
+ export declare const AGENT_IMPORT_REPORT_SCHEMA: import("@vibe-agent-toolkit/schema").ReportZodSchema<z.ZodObject<{
28
+ /** The agent.yaml the import wrote. */
29
+ agentPath: z.ZodString;
30
+ }, "strict", z.ZodTypeAny, {
31
+ agentPath: string;
32
+ }, {
33
+ agentPath: string;
34
+ }>, z.ZodObject<Omit<{
35
+ code: z.ZodString;
36
+ severity: z.ZodEnum<["error", "warning", "info", "ignore"]>;
37
+ message: z.ZodString;
38
+ location: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
39
+ line: z.ZodOptional<z.ZodNumber>;
40
+ field: z.ZodOptional<z.ZodString>;
41
+ link: z.ZodOptional<z.ZodString>;
42
+ fix: z.ZodOptional<z.ZodString>;
43
+ reference: z.ZodOptional<z.ZodString>;
44
+ suggestion: z.ZodOptional<z.ZodString>;
45
+ }, "severity"> & {
46
+ severity: z.ZodEnum<["error", "warning", "info"]>;
47
+ column: z.ZodOptional<z.ZodNumber>;
48
+ }, "strict", z.ZodTypeAny, {
49
+ code: string;
50
+ message: string;
51
+ severity: "error" | "warning" | "info";
52
+ fix?: string | undefined;
53
+ reference?: string | undefined;
54
+ location?: string | undefined;
55
+ line?: number | undefined;
56
+ field?: string | undefined;
57
+ link?: string | undefined;
58
+ suggestion?: string | undefined;
59
+ column?: number | undefined;
60
+ }, {
61
+ code: string;
62
+ message: string;
63
+ severity: "error" | "warning" | "info";
64
+ fix?: string | undefined;
65
+ reference?: string | undefined;
66
+ location?: string | undefined;
67
+ line?: number | undefined;
68
+ field?: string | undefined;
69
+ link?: string | undefined;
70
+ suggestion?: string | undefined;
71
+ column?: number | undefined;
72
+ }>>;
73
+ export type AgentImportReport = Report<AgentImportData>;
74
+ export {};
75
+ //# sourceMappingURL=import-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-schema.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/import-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,qFAAqF;AACrF,eAAO,MAAM,qBAAqB,EAAE,mBAGnC,CAAC;AAEF,QAAA,MAAM,qBAAqB;IACzB,uCAAuC;;;;;;EAE9B,CAAC;AAEZ,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,2CAA2C;AAC3C,eAAO,MAAM,0BAA0B;IAPrC,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOmD,CAAC;AAE7F,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * The document `vat agent import` publishes, apart from the command.
3
+ *
4
+ * A sibling module because the published-shape registry imports it and the
5
+ * command imports the writer that imports the registry (the cycle
6
+ * `report-schemas.ts` describes).
7
+ *
8
+ * One skill per run: `examined` is 1 when it was imported. An import that could
9
+ * not finish is the envelope's error branch — the refusal `importSkillToAgent`
10
+ * names at its cause — never a finding, so an import publishes `ok` or `error`.
11
+ */
12
+ import { FindingSchema, reportSchema } from '@vibe-agent-toolkit/schema';
13
+ import { z } from 'zod';
14
+ /** What `examined` counts for `vat agent import`, and the remedy when it is zero. */
15
+ export const AGENT_IMPORT_EXAMINED = {
16
+ unit: 'skills imported',
17
+ whenZero: 'No skill was imported — point the command at a SKILL.md file.',
18
+ };
19
+ const AgentImportDataSchema = z.object({
20
+ /** The agent.yaml the import wrote. */
21
+ agentPath: z.string(),
22
+ }).strict();
23
+ /** The document this command publishes. */
24
+ export const AGENT_IMPORT_REPORT_SCHEMA = reportSchema(AgentImportDataSchema, FindingSchema);
25
+ //# sourceMappingURL=import-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-schema.js","sourceRoot":"","sources":["../../../src/commands/agent/import-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAe,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,qFAAqF;AACrF,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,+DAA+D;CAC1E,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,uCAAuC;IACvC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC,MAAM,EAAE,CAAC;AAIZ,2CAA2C;AAC3C,MAAM,CAAC,MAAM,0BAA0B,GAAG,YAAY,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/import.ts"],"names":[],"mappings":"AAAA;;GAEG;AAWH,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CA+Cf"}
1
+ {"version":3,"file":"import.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/import.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAiBD,wBAAsB,aAAa,CACjC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,IAAI,CAAC,CAoCf"}
@@ -2,19 +2,31 @@
2
2
  * Agent import command - convert SKILL.md to agent.yaml
3
3
  */
4
4
  import { importSkillToAgent } from '@vibe-agent-toolkit/agent-skills';
5
- import { ExitCode } from '@vibe-agent-toolkit/schema';
6
- import { safePath } from '@vibe-agent-toolkit/utils';
7
- import { handleCommandError } from '../../utils/command-error.js';
5
+ import { buildReport } from '@vibe-agent-toolkit/schema';
6
+ import { isVatError, safePath, TREE_DEST_OCCUPIED_CODE } from '@vibe-agent-toolkit/utils';
7
+ import { CommandRefusalError, refusalCodeOf } from '../../utils/command-refusal.js';
8
+ import { endWithRefusal, endWithReport, NOTHING_FINISHED } from '../../utils/document-writer.js';
8
9
  import { createLogger } from '../../utils/logger.js';
9
- import { writeYamlOutput } from '../../utils/output.js';
10
+ /** `vat agent import` has no `--strict` and publishes no finding: the gate is fixed. */
11
+ const GATE = { strict: false };
12
+ /** One skill per run. */
13
+ const SKILLS_IMPORTED = 1;
14
+ /**
15
+ * An occupied output: the invocation's to fix. `--force` is advised only where it would serve — a
16
+ * file there, and the flag not given; under `--force` the one thing still refused is a directory.
17
+ */
18
+ function occupiedOutputRefusal(error, forced) {
19
+ if (!isVatError(error, TREE_DEST_OCCUPIED_CODE))
20
+ return error;
21
+ return new CommandRefusalError('USAGE_INVALID', forced ? error.message : `${error.message}. Use --force to overwrite.`, { cause: error });
22
+ }
10
23
  export async function importCommand(skillPath, options) {
11
24
  const logger = createLogger(options.debug ? { debug: true } : {});
12
25
  const startTime = Date.now();
26
+ let report;
13
27
  try {
14
- // Resolve path
15
28
  const resolvedSkillPath = safePath.resolve(skillPath);
16
29
  logger.debug(`Importing Agent Skill: ${resolvedSkillPath}`);
17
- // Import SKILL.md to agent.yaml
18
30
  const importOptions = {
19
31
  skillPath: resolvedSkillPath,
20
32
  force: options.force ?? false,
@@ -22,30 +34,24 @@ export async function importCommand(skillPath, options) {
22
34
  if (options.output) {
23
35
  importOptions.outputPath = safePath.resolve(options.output);
24
36
  }
25
- const result = await importSkillToAgent(importOptions);
26
- if (!result.success) {
27
- // Import failed
28
- const output = {
29
- status: 'error',
30
- error: result.error,
31
- duration: `${Date.now() - startTime}ms`,
32
- };
33
- writeYamlOutput(output);
34
- logger.error(`Import failed: ${result.error}`);
35
- process.exit(ExitCode.ERROR);
36
- }
37
- // Import successful
38
- const output = {
39
- status: 'success',
40
- agentPath: result.agentPath,
41
- duration: `${Date.now() - startTime}ms`,
42
- };
43
- writeYamlOutput(output);
37
+ const result = await importSkillToAgent(importOptions).catch((error) => {
38
+ throw occupiedOutputRefusal(error, importOptions.force === true);
39
+ });
40
+ // The library names the refusal where it was raised; nothing was written.
41
+ if (!result.success)
42
+ throw new CommandRefusalError(result.refusal, result.error);
44
43
  logger.info(`Successfully imported Agent Skill to: ${result.agentPath}`);
45
- process.exit(ExitCode.OK);
44
+ report = buildReport({
45
+ examined: SKILLS_IMPORTED,
46
+ findings: [],
47
+ data: { agentPath: result.agentPath },
48
+ gate: GATE,
49
+ durationMs: Date.now() - startTime,
50
+ });
46
51
  }
47
52
  catch (error) {
48
- handleCommandError(error, logger, startTime, 'AgentImport');
53
+ endWithRefusal('agent import', refusalCodeOf(error), error, 'yaml', GATE, NOTHING_FINISHED);
49
54
  }
55
+ endWithReport('agent import', report, 'yaml');
50
56
  }
51
57
  //# sourceMappingURL=import.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"import.js","sourceRoot":"","sources":["../../../src/commands/agent/import.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM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C,CAAC;QAEH,0EAA0E;QAC1E,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,MAAM,IAAI,mBAAmB,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;QAEjF,MAAM,CAAC,IAAI,CAAC,yCAAyC,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;QACzE,MAAM,GAAG,WAAW,CAAC;YACnB,QAAQ,EAAE,eAAe;YACzB,QAAQ,EAAE,EAAE;YACZ,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE;YACrC,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;SACnC,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,cAAc,CAAC,cAAc,EAAE,aAAa,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,CAAC,CAAC;IAC9F,CAAC;IACD,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAChD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC,wBAAgB,kBAAkB,IAAI,OAAO,CAsS5C;AAED,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/agent/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAoBpC,wBAAgB,kBAAkB,IAAI,OAAO,CAqY5C;AAED,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC"}
@@ -52,6 +52,17 @@ Description:
52
52
  - agents/
53
53
  - . (current directory)
54
54
 
55
+ Output (YAML on stdout; the human list on stderr):
56
+ status: ok | findings; examined: 3 (the search paths scanned)
57
+ findings[]: SCAN_PATH_UNREADABLE (warning) per search path, agent
58
+ directory or manifest the OS would not read — the list is then a
59
+ floor, not the answer
60
+ data: { root, agents: [{ name, version, path }] } — path relative to root
61
+
62
+ Exit Codes (derived from the document):
63
+ 0 - ok, or findings (an unreadable path is a warning)
64
+ 2 - error: only a defect in VAT (INTERNAL_ERROR)
65
+
55
66
  Requirements:
56
67
  projectRoot: optional (tolerates absence)
57
68
  config: not used
@@ -67,6 +78,7 @@ Example:
67
78
  .description('Build agent for deployment target')
68
79
  .option('--target <type>', 'Build target (skill, langchain, etc.)', 'skill')
69
80
  .option('--output <path>', 'Output directory (default: dist/vat-bundles/<target>/<agent>)')
81
+ .option('--force', 'Replace a previous build at <output>/<agent> (swapped in whole once built); without it, one that holds anything is refused')
70
82
  .option('--debug', DEBUG_OPTION_DESC)
71
83
  .action(buildCommand)
72
84
  .addHelpText('after', `
@@ -76,15 +88,43 @@ Description:
76
88
 
77
89
  Argument: agent name OR path to agent directory/manifest file
78
90
 
91
+ VAT never deletes or overwrites what it did not produce. With --output, an
92
+ <output>/<agent-name>/ that already holds anything is refused (USAGE_INVALID)
93
+ and left exactly as it was, unless --force says it is a previous build to
94
+ replace. An empty directory is replaced as-is; an output holding the agent's
95
+ own source is refused even with --force. The default location is VAT's and
96
+ is replaced. Every source is read before anything is written, and the build
97
+ is written whole beside its output and swapped in: a failure partway leaves
98
+ a previous build exactly as it was.
99
+
79
100
  Targets:
80
101
  - skill: Agent Skills (for Claude Desktop/Code)
81
102
  - More targets coming soon (langchain, etc.)
82
103
 
83
- Output:
84
- Default location: dist/vat-bundles/<target>/<agent-name>/
85
-
86
- Exit Codes:
87
- 0 - Success | 1 - Build error | 2 - System error
104
+ Output (YAML on stdout):
105
+ status: ok | error; examined: 1 (the agent built)
106
+ data: { agent, target, output, files }
107
+ findings[]: SKILL_PACKAGING_FAILED on the error branch; on success, a
108
+ TREE_CLEANUP_INCOMPLETE warning naming a previous build the swap replaced
109
+ that the OS would not let VAT remove
110
+ Default build location: dist/vat-bundles/<target>/<agent-name>/
111
+
112
+ Exit Codes (derived from the document):
113
+ 0 - ok: the agent was built
114
+ 2 - error: nothing was built — USAGE_INVALID (a --target other than
115
+ skill, no projectRoot, the path or name names no manifest, no
116
+ package.json encloses the agent and --output was not given, an
117
+ --output whose agent directory holds something and no --force, or an
118
+ output holding the agent's own source),
119
+ CONFIG_INVALID (the manifest does not validate, declares no system
120
+ prompt, or its $ref names no file), INPUT_UNREADABLE (an agent
121
+ search path looked up by name, the manifest, its system prompt,
122
+ scripts/, LICENSE.txt or package.json cannot be read, or the system
123
+ prompt, LICENSE.txt or a file under scripts/ is a named pipe, socket or
124
+ device), RUN_INCOMPLETE (the packager refused the bundle's content — a
125
+ SKILL_PACKAGING_FAILED finding at the agent — or the OS would not let
126
+ the build write its output: a full disk, a read-only or unwritable
127
+ --output, a file in its way; no finding)
88
128
 
89
129
  Requirements:
90
130
  projectRoot: required (errors if no vibe-agent-toolkit.config.yaml or .git/ ancestor)
@@ -96,6 +136,7 @@ Examples:
96
136
  $ vat agent build agent-generator # Build as Agent Skill
97
137
  $ vat agent build agent-generator --target skill # Explicit target
98
138
  $ vat agent build ./my-agent --output ./my-skill # Custom output path
139
+ $ vat agent build ./my-agent --output ./my-skill --force # Replace the previous build there
99
140
  `);
100
141
  agent
101
142
  .command('run <pathOrName> <userInput>')
@@ -111,7 +152,7 @@ Description:
111
152
  User input: The input text/query for the agent
112
153
 
113
154
  Exit Codes:
114
- 0 - Success | 1 - Execution error | 2 - System error
155
+ 0 - Success | 2 - Any failure (the agent did not load, or the run failed)
115
156
 
116
157
  Examples:
117
158
  $ vat agent run agent-generator "Create a code review agent"
@@ -137,19 +178,28 @@ Requirements:
137
178
  Description:
138
179
  Validates agent manifest schema (using @vibe-agent-toolkit/schema),
139
180
  LLM configuration, tool definitions, and resource availability. Outputs
140
- YAML validation report to stdout, errors to stderr.
181
+ the report envelope (YAML) to stdout, findings to stderr.
141
182
 
142
183
  Argument: agent name OR path to agent directory/manifest file
143
184
 
144
185
  Validation Checks:
145
- - Manifest schema (apiVersion, kind, metadata, spec)
146
- - LLM provider and model configuration
147
- - Tool configurations (RAG databases)
148
- - Resource files (prompts, docs, templates)
149
- - Prompt references ($ref paths)
150
-
151
- Exit Codes:
152
- 0 - Valid | 1 - Validation errors | 2 - System error
186
+ - Manifest schema (apiVersion, kind, metadata, spec) — AGENT_MANIFEST_INVALID
187
+ - Tool configurations (RAG databases) — AGENT_REFERENCE_MISSING,
188
+ AGENT_RAG_NO_SOURCES
189
+ - Resource files and prompt $ref paths — AGENT_REFERENCE_MISSING,
190
+ AGENT_REFERENCE_UNREADABLE
191
+
192
+ Output (YAML on stdout):
193
+ status: ok | findings | error; examined: 1 (the manifest read)
194
+ findings[]: each located at the manifest, relative to data.root
195
+ data: { root, manifest: { name, version, path } }
196
+
197
+ Exit Codes (derived from the document):
198
+ 0 - ok, or findings with no error-severity finding
199
+ 1 - findings with an error-severity finding
200
+ 2 - error: no manifest to judge — USAGE_INVALID (the path or name names
201
+ no manifest), INPUT_UNREADABLE (the manifest is unreadable or not
202
+ YAML, or an agent search path looked up by name cannot be read)
153
203
 
154
204
  Requirements:
155
205
  projectRoot: required (errors if no vibe-agent-toolkit.config.yaml or .git/ ancestor)
@@ -184,8 +234,18 @@ Conversion:
184
234
  - Preserves version from metadata.version or defaults to 0.1.0
185
235
  - Validates frontmatter before conversion
186
236
 
187
- Exit Codes:
188
- 0 - Success | 1 - Validation/conversion error | 2 - System error
237
+ Output (YAML on stdout):
238
+ status: ok | error; examined: 1 (the skill imported)
239
+ data: { agentPath }
240
+
241
+ Exit Codes (derived from the document):
242
+ 0 - ok: agent.yaml was written
243
+ 2 - error: nothing was written — USAGE_INVALID (no SKILL.md at the path,
244
+ or something is already at the output and --force was not given),
245
+ INPUT_UNREADABLE (the SKILL.md cannot be read, or no Agent Skills schema
246
+ accepts its frontmatter), RUN_INCOMPLETE (the OS would not let VAT
247
+ examine or write the output). A --output whose directory does not exist
248
+ yet is made.
189
249
 
190
250
  Examples:
191
251
  $ vat agent import ./my-skill/SKILL.md # Import to same directory
@@ -204,15 +264,34 @@ Examples:
204
264
  .addHelpText('after', `
205
265
  Description:
206
266
  Installs a built agent skill to Agent Skills directory. By default,
207
- copies to user scope (~/.claude/skills/). Use --dev for symlink mode
267
+ copies to user scope. Use --dev for symlink mode
208
268
  (rapid development iteration).
209
269
 
210
270
  Scopes:
211
- - user: ~/.claude/skills/ (default, personal skills)
212
- - project: ./.claude/skills/ (project-local skills)
213
-
214
- Exit Codes:
215
- 0 - Success | 1 - Installation error | 2 - System error
271
+ - user: $CLAUDE_CONFIG_DIR/skills/, else ~/.claude/skills/ (default, personal skills)
272
+ - project: .claude/skills/ under the working directory (--cwd sets it)
273
+
274
+ Output (YAML on stdout):
275
+ status: ok | error; examined: 1 (the agent named)
276
+ data: { agent, installPath, symlink } — symlink is true under --dev
277
+ findings: a TREE_CLEANUP_INCOMPLETE warning naming a replaced install
278
+ VAT could not remove (the new one is in place)
279
+
280
+ Exit Codes (derived from the document):
281
+ 0 - ok: the agent was installed
282
+ 2 - error: nothing was installed — USAGE_INVALID (an unknown --scope or
283
+ --runtime, a name that is not one path segment or names no agent,
284
+ anything but an empty directory is at the install path and --force
285
+ was not given, or no package.json encloses the agent),
286
+ NOT_IMPLEMENTED (--dev on Windows), CONFIG_INVALID (the manifest does
287
+ not validate), INPUT_UNREADABLE (the bundle was never built, holds a
288
+ named pipe, socket or device or a symlink that leads out of it or
289
+ nowhere, or a search path, the manifest or any file in the bundle
290
+ cannot be read), RUN_INCOMPLETE (the install path cannot be examined,
291
+ or a write under the scope directory failed).
292
+ The copy or link is staged beside the install and swapped in whole,
293
+ so a refused run, --force --dev included, leaves a previous install
294
+ as it was
216
295
 
217
296
  Examples:
218
297
  $ vat agent install agent-generator # Install to user scope
@@ -235,11 +314,23 @@ Description:
235
314
  Handles both copied installations and symlinks.
236
315
 
237
316
  Scopes:
238
- - user: ~/.claude/skills/ (default)
239
- - project: ./.claude/skills/
240
-
241
- Exit Codes:
242
- 0 - Success | 1 - Not installed | 2 - System error
317
+ - user: $CLAUDE_CONFIG_DIR/skills/, else ~/.claude/skills/ (default)
318
+ - project: .claude/skills/ under the working directory (--cwd sets it)
319
+
320
+ Output (YAML on stdout):
321
+ status: ok | error; examined: 1 (the agent named)
322
+ data: { agent, installPath, wasSymlink } — wasSymlink for a --dev install
323
+ (only the link is removed, never its target)
324
+
325
+ Exit Codes (derived from the document):
326
+ 0 - ok: the install was removed
327
+ 2 - error: USAGE_INVALID (an unknown --scope or --runtime, a name that is
328
+ not one path segment, or the agent is not installed in that scope:
329
+ nothing was removed), RUN_INCOMPLETE (the install path cannot be
330
+ examined or moved off its path: nothing was removed). The install is
331
+ first moved off its path whole, then deleted: a deletion the OS stops
332
+ after that is still RUN_INCOMPLETE, but the uninstall is done — data is
333
+ present, and a TREE_CLEANUP_INCOMPLETE warning names where the rest is
243
334
 
244
335
  Examples:
245
336
  $ vat agent uninstall agent-generator # Remove from user scope
@@ -259,15 +350,19 @@ Description:
259
350
 
260
351
  Scopes:
261
352
  - all: Scan all scopes (default)
262
- - user: Only ~/.claude/skills/
263
- - project: Only ./.claude/skills/
264
-
265
- Output:
266
- YAML summary → stdout (for programmatic parsing)
267
- Human-readable list → stderr
268
-
269
- Exit Codes:
270
- 0 - Success | 2 - System error
353
+ - user: Only $CLAUDE_CONFIG_DIR/skills/, else ~/.claude/skills/
354
+ - project: Only .claude/skills/ under the working directory (--cwd sets it)
355
+
356
+ Output (YAML on stdout; the human list on stderr):
357
+ status: ok | findings | error; examined: the scopes scanned
358
+ findings[]: SCAN_PATH_UNREADABLE (warning) per scope directory the OS
359
+ would not list — the list is then a floor, not the answer; its field
360
+ is the scope, its location the scope directory's last two segments
361
+ data: { scanned, skills: [{ name, scope, type: symlink | directory, path }] }
362
+
363
+ Exit Codes (derived from the document):
364
+ 0 - ok, or findings (an unreadable scope is a warning)
365
+ 2 - error: USAGE_INVALID (a --scope or --runtime it does not know)
271
366
 
272
367
  Examples:
273
368
  $ vat agent installed # List all installed skills