@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
@@ -8,10 +8,12 @@
8
8
  */
9
9
  import { type DeclaredEvalSuite, type PackageSkillResult, type PackagingValidationResult, type PluginLocalSkillIndex, type SkillPackagingConfig } from '@vibe-agent-toolkit/agent-skills';
10
10
  import type { SkillsConfig } from '@vibe-agent-toolkit/resources';
11
- import { type SeverityCounts, type ValidationIssue } from '@vibe-agent-toolkit/schema';
11
+ import { type Finding, type ValidationIssue } from '@vibe-agent-toolkit/schema';
12
12
  import { Command } from 'commander';
13
+ import { type FinishedWork } from '../../utils/document-writer.js';
13
14
  import { type createLogger } from '../../utils/logger.js';
14
- import { type PhaseOutcome } from '../phase-utils.js';
15
+ import type { PhaseOutcome } from '../phase-utils.js';
16
+ import type { SkillsBuildData } from './build-schema.js';
15
17
  import { type DiscoveredSkill } from './command-helpers.js';
16
18
  export interface SkillsBuildCommandOptions {
17
19
  skill?: string;
@@ -79,280 +81,55 @@ interface SetAsideSkillNames {
79
81
  inPlace: readonly string[];
80
82
  pluginOnly: readonly string[];
81
83
  }
82
- /**
83
- * The archived summary of a build, as YAML fields.
84
- *
85
- * `status` used to be the literal `success` — printed even for a build that then
86
- * exited 1 on post-build errors, so the machine-readable half of the output
87
- * contradicted the exit code, in the reassuring direction. It is now derived
88
- * from the same issues the human stream renders, and the per-severity counts
89
- * ride beside it because a status cannot express a three-valued distribution:
90
- * `success` here means "nothing you must act on", not "there was nothing to see".
91
- *
92
- * The header total reconciles against the document, by construction:
93
- *
94
- * issueCounts === Σ (skills[] ∪ skillsStaged[])[].issueCounts
95
- * + Σ failedSkills[].issueCounts
96
- * + Σ validationFailedSkills[].issueCounts
97
- * + runIssueCounts
98
- *
99
- * `skills` and `skillsStaged` are the same population under two names, and
100
- * exactly one of them is ever non-empty (see the comment on `skills` below), so
101
- * summing both is summing each packaged bundle once.
102
- *
103
- * Every addend therefore has a ROW a reader can point at. Counting the failures
104
- * only in the header — which is how this first shipped — reproduced, one command
105
- * over, the exact defect `vat skills validate` was fixed for: a header reporting
106
- * more than its rows summed to (there, 1814 warnings against 1800), leaving a
107
- * consumer to hand-count a list to find out what the difference was. `--help`
108
- * states this identity; changing it means changing that text too.
109
- *
110
- * Each packaged row carries its `issues` as well as its counts. It did not, for
111
- * a while: the findings were collected here and then dropped at the publish
112
- * step, so the document offered a count with no `code`, no location and no fix
113
- * string at ANY verbosity — an adopter run published 67 warnings and zero
114
- * findings. That is acute for the four detectors this lane added: their output
115
- * existed only on stderr, where no CI consumer reads it. Full findings on the
116
- * rows is the shape `vat audit` and `vat skills validate --verbose` already
117
- * publish, and it is verbosity-INDEPENDENT here for the reason stated in
118
- * `issuesToRenderAtVerbosity`: filtering a machine-readable document by a human
119
- * report's verbosity silently breaks the consumers that parse it.
120
- *
121
- * Takes the whole {@link SkillBuildRun} rather than a positional list of its
122
- * parts: the run has four populations now, and a positional call site can
123
- * transpose two same-shaped lists in silence.
124
- */
125
- export declare function buildYamlSummary(run: SkillBuildRun, duration: number): {
126
- status: 'success' | 'warning' | 'error';
127
- issueCounts: SeverityCounts;
128
- runIssueCounts: SeverityCounts;
129
- skillsBuilt: number;
130
- skillsFailed: number;
131
- skillsFailedValidation: number;
132
- skillsWithErrors: string[];
133
- outputCommitted: boolean;
134
- /** Present only when the promotion/discard step itself failed. */
135
- promotionError?: string;
136
- skills: Array<{
137
- name: string;
138
- outputPath: string;
139
- filesPackaged: number;
140
- issueCounts: SeverityCounts;
141
- issues: ValidationIssue[];
142
- }>;
143
- skillsStaged: Array<{
144
- name: string;
145
- filesPackaged: number;
146
- issueCounts: SeverityCounts;
147
- issues: ValidationIssue[];
148
- }>;
149
- failedSkills: Array<{
150
- name: string;
151
- error: string;
152
- issueCounts: SeverityCounts;
153
- }>;
154
- validationFailedSkills: Array<{
155
- name: string;
156
- issueCounts: SeverityCounts;
157
- }>;
158
- runIssues: ValidationIssue[];
159
- duration: string;
160
- };
161
- /**
162
- * THE document this command publishes — the shape a consumer actually reads.
163
- *
164
- * NOT the same object as {@link buildYamlSummary}, and the difference is the
165
- * whole reason this function exists. The summary carries `skillsWithErrors` as
166
- * an ARRAY of names; the published document carries `skillsWithErrors` as a
167
- * COUNT (in the header, beside the other tallies) and the names separately under
168
- * `skillsWithErrorNames`. That projection used to live inside the renderer, so
169
- * the only way to obtain the real document was to serialize it and parse it back
170
- * — which is exactly what the parent process did, and exactly what stopped being
171
- * true when phases stopped being child processes. Returning the summary instead
172
- * would have flipped `skillsWithErrors` from a number to an array in `vat
173
- * build`'s output, silently and with nothing to typecheck it against.
174
- *
175
- * `skillsInPlace` and `skillsPluginOnly` ride in the header beside `skillsBuilt`,
176
- * with the names under `skillsInPlaceNames` / `skillsPluginOnlyNames`: a build that
177
- * ships fewer skills than it discovered is the drop this command exists to prevent,
178
- * so every skill a `publish: false` removed from `skillsBuilt` must be visible where
179
- * a consumer reads the count — including a plugin-local one, which is not in place
180
- * (it ships with its plugin) but is still not bundled here.
181
- */
182
- export declare function buildBuildDocument(run: SkillBuildRun, setAside: SetAsideSkillNames, duration: number): Record<string, unknown>;
183
- /**
184
- * Render {@link buildBuildDocument}'s document to stdout.
185
- *
186
- * Streamed in two pieces — a raw scalar header, then the body — rather than as
187
- * one `yaml.stringify`, so the header lands before a body that can run to
188
- * megabytes on a large project. The key ORDER here is the document's order; the
189
- * split is presentation only and adds nothing the document does not carry.
190
- */
191
- export declare function outputBuildYaml(document: Record<string, unknown>): void;
192
- /**
193
- * Re-anchor everything ONE skill's result says about where things are.
194
- *
195
- * Both post-build channels are rewritten, not just the one the summary reads:
196
- * `collectPostBuildIssues` merges them and either can carry a staged location
197
- * (the built-output validation runs against the staged `SKILL.md` itself), so a
198
- * mapper applied to one of them leaves the report half-anchored.
199
- *
200
- * The `postBuildIssues` half is a live invariant with NO live producer today, and
201
- * the distinction matters to anyone changing it. Every issue on that channel is
202
- * anchored either on the bundle (`checkUnreferencedFiles`,
203
- * `checkBrokenPackagedLinks`, `detectPackagedAgentInstructionFiles`,
204
- * `checkPackagedTestInput` — all `relative(outputPath, …)`) or on the SOURCE
205
- * project root (`droppedGlobMatchesToIssues`, `walkerExclusionsToIssues`,
206
- * `deferredAssetsToIssues`, `FILENAME_COLLISION` — all `relative(projectRoot, …)`,
207
- * where `projectRoot` is discovered from the skill's own source path). Neither
208
- * spelling contains the staging prefix, so deleting this branch changes no
209
- * fixture in the repo — which is exactly why it is unit-tested directly rather
210
- * than through a build. Do not delete it on the strength of a green suite: the
211
- * moment any producer anchors on `outputPath` ABSOLUTELY, this is the only thing
212
- * standing between a report and a path its reader cannot open.
213
- *
214
- * Exported for that unit test.
215
- */
216
- export declare function reanchorStagedResult(result: PackageSkillResult, mapPath: (value: string) => string): PackageSkillResult;
217
- /**
218
- * A build in progress: it writes under {@link root} and earns `dist/skills` only
219
- * by finishing clean.
220
- *
221
- * The old flow deleted `dist/skills` up front and wrote the new bundles straight
222
- * into it, so ANY failure left the tree destroyed rather than stale — and
223
- * `dist/` is gitignored, so the previous good output was unrecoverable. Measured
224
- * on a 90-skill adopter: 27 skill directories and 106 files present before,
225
- * directory absent after. Downstream consumers (`vat claude plugin install
226
- * --dev` symlinks out of `dist/skills`; plugin builds re-read it) then saw an
227
- * ABSENT tree, and a later `vat build --only claude` reported
228
- * `status: success / Skills available: 0` against a tree the previous command
229
- * had deleted.
230
- */
231
- export interface BuildStaging {
232
- /** Where each bundle is written during the run, in place of `dist/skills`. */
233
- root: string;
234
- /** True when a previous build's output was set aside and can be restored. */
235
- hadPreviousOutput: boolean;
236
- /**
237
- * Where the previous output is held while the run is in flight.
238
- *
239
- * Published so a failure on the promotion path can NAME it. It is a
240
- * `mkdtemp`-suffixed sibling, so a reader who is not told the path cannot
241
- * reconstruct it — which is the difference between "recover with one `mv`" and
242
- * "your previous output is gone".
243
- */
244
- parkedPath: string;
245
- /**
246
- * How the human stream names what THIS run promotes.
247
- *
248
- * `dist/skills` for a full build, `dist/skills/<name>` in `--skill` mode. The
249
- * scope is not cosmetic: a failed `--skill bad` used to report "Nothing was
250
- * written — dist/skills does not exist" while `dist/skills` sat on disk holding
251
- * every sibling bundle. Only this skill's bundle was ever in question.
252
- */
253
- promoteLabel: string;
254
- /** True once this run's bundles have actually landed on the promotion target. */
255
- promoted: () => boolean;
256
- /** Promote the staged tree, discarding the previous output. */
257
- commit: () => Promise<void>;
258
- /** Discard the staged tree, restoring the previous output byte for byte. */
259
- abort: () => Promise<void>;
260
- /**
261
- * Best-effort repair after {@link BuildStaging.commit} or
262
- * {@link BuildStaging.abort} threw, and a description of what is left on disk.
263
- *
264
- * Never overwrites whatever occupies the promotion target: a promotion can fail
265
- * BECAUSE a concurrent build already promoted its own tree there, and restoring
266
- * over it would replace fresh output with a stale copy. When the target is
267
- * occupied the parked tree is left where it is and named in the report instead.
268
- */
269
- recover: () => Promise<StagingRecovery>;
270
- }
271
- /** What a best-effort {@link BuildStaging.recover} left behind. */
272
- export interface StagingRecovery {
273
- /** True when the previous output was moved back onto the promotion target. */
274
- restoredPrevious: boolean;
275
- /**
276
- * Paths still on disk that this run could not clean up, in report order,
277
- * each with WHY it stayed. The repair is best-effort by construction — it
278
- * runs because the filesystem already refused something — so a second
279
- * refusal must not replace the first diagnosis; but it must not vanish
280
- * either, and a bare path list is where it used to vanish.
281
- */
282
- residue: StagingResidue[];
283
- }
284
- /** One path a recovery could not remove or restore, and the reason. */
285
- export interface StagingResidue {
286
- path: string;
287
- reason: string;
84
+ /** What ONE run did, before it is a report — see {@link skillsBuildWork}. */
85
+ interface SkillsBuildWorkInput {
86
+ /** The directory whose config the build read: the ONE base every published path is relative to. */
87
+ cwd: string;
88
+ /** The skills this run bundles (or, on a dry run, would), in discovery order. */
89
+ skills: readonly DiscoveredSkill[];
90
+ setAside: SetAsideSkillNames;
91
+ dryRun: boolean;
92
+ /** The build, or `undefined` when none ran (a dry run, a refused `--skill`): nothing was validated. */
93
+ run: SkillBuildRun | undefined;
94
+ /** Findings about the set-aside skills — the `--skill` contradiction. */
95
+ setAsideIssues: readonly ValidationIssue[];
288
96
  }
289
97
  /**
290
- * Move the previous output aside and open a staging root for this run.
291
- *
292
- * Three properties the placement is load-bearing for:
293
- *
294
- * 1. **Same filesystem.** The staging root is a SIBLING of `dist/skills` under
295
- * `dist/`, so promotion is a `rename` — atomic and free — never a
296
- * cross-device copy of a tree that can be tens of thousands of files.
297
- * 2. **Invisible to the run.** `createProjectRegistry` crawls the project for
298
- * `**\/*.md` and excludes `**\/dist/**`, so nothing staged here can enter the
299
- * registry the packager resolves links against. The leading dot is a second
300
- * belt: a `files:` glob like `dist/**` does not descend into dot-directories.
301
- * 3. **The final path is ABSENT while the build runs.** The previous tree is
302
- * renamed away before the first bundle is written, which is exactly what the
303
- * delete-up-front flow guaranteed — so no lane can read a half-replaced
304
- * `dist/skills`, and a stale bundle cannot leak into the new output.
305
- *
306
- * `mkdtemp` rather than a fixed name: two builds in one `dist/` must not share a
307
- * staging root, and a leftover root from a killed run must not be adopted.
308
- *
309
- * KNOWN WINDOW, deliberately not closed here: a run killed between the park and
310
- * the commit/abort (Ctrl-C on a multi-minute build, a CI timeout, a crash) leaves
311
- * `dist/skills` absent and the previous output parked at
312
- * `dist/.vat-skills-<rand>.previous`. That is no worse than the delete-up-front
313
- * flow this replaces — there, the same interrupt lost the tree outright — and the
314
- * output is recoverable with a single `mv`. Auto-recovering it on the next run is
315
- * NOT safe as long as `mkdtemp` allows concurrent builds in one `dist/`: a sweep
316
- * cannot tell a dead run's parked tree from a live run's, and adopting the wrong
317
- * one would restore stale bundles over fresh output. Closing this needs a lock on
318
- * `dist/`, not a heuristic.
319
- *
320
- * That window covers KILLS only. A promotion that throws — EACCES, ENOSPC, or the
321
- * ENOTEMPTY a concurrent build produces with no injection at all — is deterministic,
322
- * needs no signal, and IS handled: see {@link BuildStaging.recover} and
323
- * {@link settleStaging}.
324
- *
325
- * Exported for tests, which drive the primitives directly. Injecting a promotion
326
- * failure through a whole `runSkillBuild` would mean racing the filesystem;
327
- * holding the staging handle lets a test create the exact on-disk state
328
- * (a target reoccupied between the park and the promotion) that produces one.
98
+ * A skill whose content the packager refused (`isSkillPackagingInputError`) — see
99
+ * {@link notBuildableIssue} for why it is not overridable. Shared by every lane
100
+ * whose packager refusals are the same finding; `next` is that lane's own next
101
+ * step, because "rebuild" is wrong advice from a verb that does not build. The ONE
102
+ * place a finding built from a classified fault gets the refusal table's remedy,
103
+ * which the fault's own message leaves to the table.
104
+ *
105
+ * @param message - The packager refusal's message, as the lane words it
106
+ * @param location - The skill's source, relative to the lane's root
107
+ * @param next - What the lane's user runs after fixing it
108
+ * @param thrown - What the packager threw
329
109
  */
330
- export declare function beginStagedBuild(cwd: string, onlySkill: string | undefined): Promise<BuildStaging>;
110
+ export declare function packagingFailedIssue(message: string, location: string | undefined, next: string, thrown: unknown): ValidationIssue;
331
111
  /**
332
- * Promote or discard the staged tree, and never leave the operator without an
333
- * answer when that fails.
334
- *
335
- * `commit()` / `abort()` used to be called bare. Any throw on that path — the
336
- * promotion `rename`, the restore `rename`, either cleanup — propagated to
337
- * `buildCommand`'s catch, which exits 2 WITHOUT emitting the YAML document. The
338
- * measured result: `dist/skills` absent, the user's previous output orphaned at
339
- * `dist/.vat-skills-<rand>.previous` under a name the `mkdtemp` suffix makes
340
- * unguessable, and not one byte of the report whose `outputCommitted` field
341
- * `--help` tells an operator to read when they see a non-zero exit.
342
- *
343
- * So: repair what can be repaired, then return a message rather than throwing —
344
- * the caller publishes the document first and exits 2 after.
345
- *
346
- * `outputCommitted` comes from {@link BuildStaging.promoted}, not from
347
- * `!runFailed`: a `commit()` that renamed the tree into place and then failed to
348
- * delete the parked copy DID replace `dist/skills`, and saying otherwise would
349
- * put the report back into contradiction with the disk — the one thing this whole
350
- * summary exists to prevent.
112
+ * THE document's content for one run — `examined`, the flat findings and
113
+ * `data` — as a completed report or a refusal's finished work.
114
+ *
115
+ * `examined` is every skill the run discovered after `--skill`, the set-aside
116
+ * ones included: a build that bundles fewer skills than it found says so by
117
+ * name (`skillsInPlace`, `skillsPluginOnly`), never by a smaller denominator.
118
+ *
119
+ * Every finding is on the envelope — pre-build, packaging, post-build and the
120
+ * run's own (`ALLOW_UNUSED`) — at every verbosity: `--verbose` changes stderr
121
+ * only. A row carries its status, never a second list. The four failure
122
+ * populations the old document split into four lists are one list here, told
123
+ * apart by code: a pre-build rejection (`skillsFailedValidation`), a packaging
124
+ * throw (`skillsFailed`, `SKILL_PACKAGING_FAILED`), and a bundle that failed its
125
+ * post-build gate (counted in `skillsBuilt`, its findings on the envelope).
351
126
  */
352
- export declare function settleStaging(staging: BuildStaging, runFailed: boolean, logger: ReturnType<typeof createLogger>): Promise<{
353
- outputCommitted: boolean;
354
- promotionError?: string;
355
- }>;
127
+ export declare function skillsBuildWork(input: SkillsBuildWorkInput): FinishedWork & {
128
+ data: SkillsBuildData;
129
+ findings: Finding[];
130
+ };
131
+ /** The tree a successful build promotes its staged bundles into: what `vat skills build` in `cwd` writes. */
132
+ export declare function distSkillsDir(cwd: string): string;
356
133
  /** One discovered skill paired with the packaging config merged for it. */
357
134
  export interface BuildSkillSpec {
358
135
  skill: DiscoveredSkill;
@@ -381,8 +158,8 @@ export declare function logInPlaceSkills(inPlace: readonly BuildSkillSpec[], log
381
158
  * naming the key that makes it one. (The one-skill filter leaves only that skill.)
382
159
  */
383
160
  export declare function inPlaceSkillRefusal(skill: string | undefined, inPlace: readonly BuildSkillSpec[]): Error | undefined;
384
- /** The human success line, naming each set-aside population only when it is non-empty. */
385
- export declare function formatBuiltSuccessLine(built: number, setAside: {
161
+ /** The human success line over the report's `examined`, naming each non-empty set-aside population. */
162
+ export declare function formatBuiltSuccessLine(examined: number, built: number, setAside: {
386
163
  inPlace: number;
387
164
  pluginOnly: number;
388
165
  }): string;
@@ -397,21 +174,21 @@ export declare function formatBuiltSuccessLine(built: number, setAside: {
397
174
  export interface SkillBuildFailure {
398
175
  name: string;
399
176
  message: string;
177
+ /** What the packager threw: the finding reads the refusal table's remedy off it. */
178
+ error: unknown;
400
179
  }
401
180
  /**
402
181
  * A skill the PRE-build source validation rejected — packaging was never
403
182
  * attempted for it.
404
183
  *
405
184
  * The third of four populations, and deliberately not merged into either
406
- * neighbour: {@link SkillBuildFailure} means packaging ran and threw, and
185
+ * neighbour: {@link SkillBuildFailure} means packaging ran and refused the skill's content, and
407
186
  * `skillsWithErrors` means a bundle exists and is invalid. This one means the
408
- * source never qualified. It carries real per-severity counts (a rejected
409
- * source has a whole emitted finding set) rather than the one-error stand-in a
410
- * throw is forced to publish.
187
+ * source never qualified, and carries the whole emitted finding set that said so.
411
188
  */
412
189
  export interface SkillValidationFailure {
413
190
  name: string;
414
- issueCounts: SeverityCounts;
191
+ issues: ValidationIssue[];
415
192
  }
416
193
  /** Everything one `vat build` invocation produced, ready to report on. */
417
194
  export interface SkillBuildRun {
@@ -423,12 +200,13 @@ export interface SkillBuildRun {
423
200
  runIssues: ValidationIssue[];
424
201
  /** Names of skills that BUILT and whose own post-build validation errored. */
425
202
  skillsWithErrors: string[];
426
- /** Skills that never built because packaging threw. */
203
+ /** Skills that never built because the packager refused their content. */
427
204
  failures: SkillBuildFailure[];
428
205
  /** Skills that never built because their SOURCE failed validation. */
429
206
  validationFailures: SkillValidationFailure[];
430
207
  /**
431
- * Whether `dist/skills` was replaced by this run.
208
+ * Whether `dist/skills` was replaced by this run: exactly when the tree-change plan
209
+ * that swaps it in resolved.
432
210
  *
433
211
  * `false` means the staged tree was thrown away and whatever was on disk
434
212
  * before is still there, untouched — the fact an operator staring at exit 1
@@ -436,15 +214,21 @@ export interface SkillBuildRun {
436
214
  */
437
215
  outputCommitted: boolean;
438
216
  /**
439
- * The promotion/discard step itself failed — a SYSTEM error, not a validation
440
- * one, and the only failure mode where the state of `dist/skills` is in doubt.
441
- *
442
- * Carried on the run rather than thrown so the document is still published: an
443
- * exception here used to escape all the way to `handleCommandError`, which
444
- * exits 2 having emitted nothing at all. Its text names what is on disk and how
445
- * to recover it — see {@link describePromotionFailure}.
217
+ * What the run made and could not remove (`TREE_CLEANUP_INCOMPLETE` warnings): a
218
+ * previous output parked by the swap, or a discarded staged tree.
219
+ */
220
+ residue: ValidationIssue[];
221
+ /**
222
+ * The promotion itself failed — a SYSTEM error after a clean build, the park or
223
+ * the swap the OS refused. Carried on the run rather than thrown so the document
224
+ * still publishes everything the run found: `error` is the refusal (its code, and
225
+ * what it could not clean up), `description` names what is on disk and how to
226
+ * recover it ({@link describePromotionFailure}).
446
227
  */
447
- promotionError?: string;
228
+ promotionFailure?: {
229
+ readonly error: unknown;
230
+ readonly description: string;
231
+ };
448
232
  }
449
233
  /** The inputs of ONE `vat skills build` invocation. */
450
234
  export interface SkillBuildRunInput {
@@ -460,9 +244,17 @@ export interface SkillBuildRunInput {
460
244
  */
461
245
  onlySkill: string | undefined;
462
246
  verbose: boolean;
247
+ /**
248
+ * What the RUN writes besides `dist/skills` — under `vat build`, the marketplaces its claude
249
+ * phase replaces — so a crawl fault on them is the run's destination, never its input. `[]`
250
+ * for `vat skills build` on its own.
251
+ */
252
+ runOutputs: readonly string[];
463
253
  }
464
254
  /**
465
- * Validate, package, and drain — the whole span of ONE `vat build` invocation.
255
+ * Validate, package, and drain — the whole span of ONE `vat build` invocation —
256
+ * as the `write` fill of ONE tree-change plan replacing `dist/skills` (or one
257
+ * bundle: {@link buildTarget}), so the output lands only if the build earned it.
466
258
  *
467
259
  * The allow-usage ledger created here spans EVERY skill and BOTH validation
468
260
  * lanes (the source-tree pre-build check and the two lanes inside
@@ -478,18 +270,23 @@ export interface SkillBuildRunInput {
478
270
  *
479
271
  * Extracted from the command body so the span is testable without driving
480
272
  * `process.exit` — the drain seam is the thing worth asserting. Nothing in here
481
- * exits: every failure of every kind is COLLECTED and returned, so one run
482
- * surfaces all the work rather than the first item of it.
273
+ * exits: every failure that is the adopter's to fix is COLLECTED and returned, so
274
+ * one run surfaces all the work rather than the first item of it. A packager
275
+ * defect is the exception — it leaves the run as itself, and the plan discards
276
+ * what was staged ({@link throwPackagerDefect}). So does a filesystem refusal the
277
+ * build meets: a raw errno on the staged tree is the destination's.
483
278
  */
484
279
  export declare function runSkillBuild(input: SkillBuildRunInput): Promise<SkillBuildRun>;
485
280
  /**
486
- * Build every configured skill and hand back the document and exit code,
487
- * printing the document nowhere.
488
- *
489
- * The phase entry point for `vat build`, whose `skills` phase is this command.
490
- * The three early returns publish no document — an unconfigured run and a dry
491
- * run both print their own thing and stop, exactly as the child process did.
281
+ * Run `vat skills build` and hand back its report — the refusal branch when it
282
+ * could not run — printing it nowhere.
283
+ *
284
+ * ONE function for both lanes: the command publishes it with `endWithReport`,
285
+ * and `vat build`'s `skills` phase folds it. The report is the one BEFORE the
286
+ * writer's run-integrity pass: zero skills fails `vat skills build`, and in
287
+ * `vat build` is judged per phase (`selectBuildPhases`) — an answer for a project
288
+ * with no `skills:` block or one that ships plugin-local skills, the same refusal otherwise.
492
289
  */
493
- export declare function runSkillsBuildPhase(pathArg: string | undefined, options: SkillsBuildCommandOptions): Promise<PhaseOutcome>;
290
+ export declare function runSkillsBuildPhase(pathArg: string | undefined, options: SkillsBuildCommandOptions, runOutputs: readonly string[]): Promise<PhaseOutcome>;
494
291
  export {};
495
292
  //# sourceMappingURL=build.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/commands/skills/build.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,EAQL,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAE1B,KAAK,oBAAoB,EAC1B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAA4B,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC5F,OAAO,EAML,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAgBpC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAK1D,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAErE,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAI9B,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAgBD,wBAAgB,kBAAkB,IAAI,OAAO,CAuK5C;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,yBAAyB,CACvC,gBAAgB,EAAE,yBAAyB,EAC3C,OAAO,EAAE,OAAO,GACf,MAAM,EAAE,CASV;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,EAAE,OAAO,GACf,MAAM,EAAE,CAUV;AAqJD;;;GAGG;AACH,UAAU,kBAAkB;IAC1B,OAAO,EAAE,SAAS,MAAM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