@vibe-agent-toolkit/cli 0.2.0-rc.11 → 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 +95 -43
  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 +95 -43
  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 +21 -65
  87. package/dist/commands/ard/emit.d.ts.map +1 -1
  88. package/dist/commands/ard/emit.js +68 -74
  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 +14 -11
  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 +405 -411
  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 +55 -2
  148. package/dist/commands/claude/context.d.ts.map +1 -1
  149. package/dist/commands/claude/context.js +74 -50
  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 +6 -5
  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 -149
  355. package/dist/commands/okf/validate.d.ts.map +1 -1
  356. package/dist/commands/okf/validate.js +64 -62
  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 +64 -11
  404. package/dist/commands/resources/check-progress.d.ts.map +1 -1
  405. package/dist/commands/resources/check-progress.js +77 -4
  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 +315 -71
  412. package/dist/commands/resources/check-supervisor.d.ts.map +1 -1
  413. package/dist/commands/resources/check-supervisor.js +493 -107
  414. package/dist/commands/resources/check-supervisor.js.map +1 -1
  415. package/dist/commands/resources/check.d.ts +56 -249
  416. package/dist/commands/resources/check.d.ts.map +1 -1
  417. package/dist/commands/resources/check.js +416 -276
  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 +165 -91
  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 +17 -12
  427. package/dist/commands/resources/query.d.ts.map +1 -1
  428. package/dist/commands/resources/query.js +60 -48
  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 -78
  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 -32
  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 +6 -4
  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 +17 -10
  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 +76 -32
  665. package/dist/utils/resource-loader.d.ts.map +1 -1
  666. package/dist/utils/resource-loader.js +132 -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 +16 -19
  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 +224 -106
  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 +242 -108
  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 -194
  753. package/dist/utils/command-error.d.ts.map +0 -1
  754. package/dist/utils/command-error.js +0 -237
  755. package/dist/utils/command-error.js.map +0 -1
@@ -0,0 +1,91 @@
1
+ /**
2
+ * The document `vat build`, `vat validate` and `vat verify` publish, apart from
3
+ * the commands.
4
+ *
5
+ * A sibling module because the published-shape registry imports it and the
6
+ * commands import the writer that imports the registry: a schema declared in a
7
+ * command module itself would be an import cycle, read before it is initialised.
8
+ *
9
+ * 🔑 **One envelope over every phase.** `findings` is every phase's findings,
10
+ * flat and with their `location` unchanged; `examined` is the sum of the
11
+ * phases' own `examined`; `data.phases` carries each phase's status, count,
12
+ * summary and its own `data` — which that phase's registered schema describes,
13
+ * so this schema holds it as `unknown` rather than keeping a second copy of
14
+ * five shapes. `runPhase` holds each phase's report to that schema before the
15
+ * fold. A phase that did not finish carries its own `error`, and the
16
+ * orchestrator's envelope is then `error` / `RUN_INCOMPLETE` over the phases
17
+ * that did.
18
+ *
19
+ * `vat verify`'s `packaged-content` phase is no verb of its own, so its report
20
+ * schema — the published contract for its `data` — is declared here.
21
+ */
22
+ import { FindingSchema, RefusalCodeSchema, ReportStatusSchema, reportSchema, SeverityCountsSchema, } from '@vibe-agent-toolkit/schema';
23
+ import { z } from 'zod';
24
+ /**
25
+ * What `examined` counts for an orchestrator, and the remedy when it is zero.
26
+ *
27
+ * The sum of the phases' own denominators — files, skills, bundles, plugins —
28
+ * so the unit is "whatever each phase examined". This judges the run in which
29
+ * no phase ran, or none had anything to examine. A CONFIGURED phase that
30
+ * examined nothing is refused before the fold, by its own declaration
31
+ * (`phaseVerdict` in `phase-utils.ts`), so a healthy phase beside it hides nothing.
32
+ */
33
+ export const ORCHESTRATOR_EXAMINED = {
34
+ unit: 'items across every phase',
35
+ whenZero: 'No phase examined anything, so the run is not a verdict: vibe-agent-toolkit.config.yaml'
36
+ + ' declares no surface this command runs (`vat build` runs `skills:` and `claude.marketplaces:`;'
37
+ + ' `vat validate` runs `resources:` (and, with it, the project\'s checks) and `skills:`;'
38
+ + ' `vat verify` runs `resources:` (without the checks), `skills:` and `claude.marketplaces:`), or every'
39
+ + ' configured surface matched nothing — usually a typo in a glob or a config key. Each phase'
40
+ + ' entry under `data.phases` shows what it examined.',
41
+ };
42
+ /** One phase of the run, as the orchestrator folds it. */
43
+ const PhaseEntrySchema = z.object({
44
+ /** The phase's name, e.g. `skills`, `marketplace:<name>`, `packaged-content`. */
45
+ name: z.string(),
46
+ /** The phase's own envelope status. */
47
+ status: ReportStatusSchema,
48
+ /** What the phase examined, in its own unit. */
49
+ examined: z.number().int().nonnegative(),
50
+ /** The phase's findings, by severity — the findings themselves are on the envelope. */
51
+ summary: SeverityCountsSchema,
52
+ /** Why the phase did not finish, when it did not. */
53
+ error: z.object({ code: RefusalCodeSchema, message: z.string() }).strict().optional(),
54
+ /** The phase's own `data`, as its own registered schema describes it. */
55
+ data: z.unknown(),
56
+ }).strict();
57
+ const OrchestratorDataSchema = z.object({
58
+ /** Every phase that ran, finished or not, in execution order. */
59
+ phases: z.array(PhaseEntrySchema),
60
+ }).strict();
61
+ /** The document the three orchestrators publish. */
62
+ export const ORCHESTRATOR_REPORT_SCHEMA = reportSchema(OrchestratorDataSchema, FindingSchema);
63
+ /**
64
+ * `vat verify`'s `packaged-content` phase `data`: what the crawl should have
65
+ * found. What it DID crawl is the phase's own `examined` (the built bundles on
66
+ * disk), so it is not repeated here.
67
+ */
68
+ const PackagedContentDataSchema = z.object({
69
+ /** Bundles `vat build` produces for the skills this run discovered. */
70
+ bundlesExpected: z.number().int().nonnegative(),
71
+ /** Discovered skills that are in place (`publish: false`, not plugin-local): no bundle is expected. */
72
+ bundlesInPlace: z.number().int().nonnegative(),
73
+ /** Expected bundles absent from `dist/`, project-relative. Non-empty means the phase is not a verdict. */
74
+ bundlesMissing: z.array(z.string()),
75
+ }).strict();
76
+ /**
77
+ * What `examined` counts for `vat verify`'s `packaged-content` phase, and the remedy when it is
78
+ * zero. `vat verify` exists to check the BUILT tree: a phase that crawled none of it is not a
79
+ * verdict on it.
80
+ */
81
+ export const PACKAGED_CONTENT_EXAMINED = {
82
+ unit: 'built skill bundles',
83
+ whenZero: 'The packaged-content phase is not a verdict: nothing was crawled for files that must not'
84
+ + ' ship, and the document reads the same as a run over clean bundles. Either `vat build` has not'
85
+ + ' run (or wrote somewhere other than dist/), or `skills.include` in vibe-agent-toolkit.config.yaml'
86
+ + ' matched no SKILL.md — usually a typo in the glob. Run `vat build` first; `vat skills validate`'
87
+ + ' lists what the globs discover.',
88
+ };
89
+ /** The report `vat verify`'s `packaged-content` phase hands back. */
90
+ export const PACKAGED_CONTENT_REPORT_SCHEMA = reportSchema(PackagedContentDataSchema, FindingSchema);
91
+ //# sourceMappingURL=orchestrator-schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orchestrator-schema.js","sourceRoot":"","sources":["../../src/commands/orchestrator-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,CAAC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cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC9C,0GAA0G;IAC1G,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAC,MAAM,EAAE,CAAC;AAIZ;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAwB;IAC5D,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,0FAA0F;UAChG,gGAAgG;UAChG,mGAAmG;UACnG,iGAAiG;UACjG,iCAAiC;CACtC,CAAC;AAEF,qEAAqE;AACrE,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAY,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC"}
@@ -1,44 +1,86 @@
1
1
  /**
2
- * Shared utilities for top-level phase orchestration commands (vat build, vat verify, vat validate).
2
+ * Shared machinery for the phase orchestrators: `vat build`, `vat verify` and
3
+ * `vat validate`.
4
+ *
5
+ * 🔑 **Each phase hands back its report; the orchestrator publishes ONE.** A
6
+ * phase function returns `{ report }` — the `Report<T>` its own command would
7
+ * publish, BEFORE the writer's run-integrity pass — and the orchestrator folds
8
+ * every phase into {@link orchestratorReport}: findings flat on the envelope,
9
+ * `examined` the sum, each phase's status, count, summary and `data` under
10
+ * `data.phases`.
11
+ *
12
+ * 🔑 **A configured phase that examined nothing is a refusal of THAT phase**
13
+ * ({@link phaseVerdict}), by the declaration its verb's writer is given when the
14
+ * verb runs alone — so an orchestrated phase and its verb cannot disagree. Judged
15
+ * on the sum alone, a `skills.include` matching nothing beside a healthy
16
+ * `resources:` surface was `status: ok`, exit 0. What is NOT refused is a phase
17
+ * for which zero is an answer, and each one says why ({@link ZeroIsAnAnswer}): a
18
+ * phase that ran with no config block of its own (`vat build`'s `skills` phase in a
19
+ * project with no `skills:` block), a `skills` phase whose pool is empty in a project
20
+ * that ships plugin-local skills ({@link skillsPhaseExamined} — refusing that failed
21
+ * `claude plugin install --build`, which trusts `vat build`'s exit), or one that
22
+ * checks what another phase discovered. The writer still judges the sum, for the
23
+ * run in which no phase ran at all.
24
+ *
25
+ * Each phase's report is held to its OWN schema before the fold ({@link Phase}
26
+ * `schema`, parsed by {@link runPhase}): the orchestrator's schema carries a
27
+ * phase's `data` as `unknown`, so nothing downstream could catch a phase
28
+ * publishing data its verb does not describe.
29
+ *
30
+ * There is no second status vocabulary. A phase's status is its envelope's
31
+ * (`ok | findings | error`), the orchestrator's exit derives from its own
32
+ * published document, and a phase that did not finish makes the run `error` /
33
+ * `RUN_INCOMPLETE` with the finished phases still in `data.phases`.
3
34
  */
4
- import { type ExitCodeValue, type SeverityCounts } from '@vibe-agent-toolkit/schema';
35
+ import type { ProjectConfig } from '@vibe-agent-toolkit/resources';
36
+ import { type Gate, type RefusalCode, type Report, type ReportZodSchema } from '@vibe-agent-toolkit/schema';
5
37
  import { type Command } from 'commander';
38
+ import { type ZodTypeAny } from 'zod';
39
+ import type { DocumentFormat } from '../report-schemas.js';
6
40
  import { createLogger } from '../utils/logger.js';
41
+ import { type ExaminedDeclaration } from '../utils/run-integrity.js';
42
+ import type { OrchestratorData } from './orchestrator-schema.js';
7
43
  /**
8
- * What one phase produced: the document it publishes, and the exit code it
9
- * claims for itself.
10
- *
11
- * This pair is the whole of what an orchestrator needs from a phase: an exit
12
- * code, and the document the phase publishes. Naming it as a value is what lets
13
- * a phase run in the orchestrator's own process — stderr streams directly either
14
- * way, so nothing else has to cross.
15
- *
16
- * `document` is the object the phase PRINTS, not the internal summary it is
17
- * built from. The distinction is load-bearing: `vat skills build` renders its
18
- * summary in two pieces and publishes `skillsWithErrors` as a COUNT while the
19
- * summary object holds an ARRAY under that name.
20
- *
21
- * ⚠️ This field is `unknown`, so nothing typechecks it. Handing back the summary
22
- * object instead of the printed document changes the emitted contract silently.
44
+ * What one phase produced: the report its own command would publish, before
45
+ * the run-integrity pass — which {@link runPhase} applies, by the phase's own
46
+ * declaration ({@link Phase} `examined`), exactly as that command's writer does.
23
47
  */
24
48
  export interface PhaseOutcome {
25
- document: unknown;
26
- exitCode: ExitCodeValue;
27
- /**
28
- * The phase failed UNEXPECTEDLY, so `document` is the shared error envelope
29
- * (`{status, error, duration}`) rather than the command's own report.
30
- *
31
- * The orchestrated lane does not need this — it folds any document under
32
- * `phases[].report` the same way. The command-line lane does: each command
33
- * renders its own report with its own renderer (streamed YAML, `--format
34
- * json`, a hand-built header), and none of those renderers understand an
35
- * envelope. Handing one to them silently changes both the channel and the
36
- * shape of the failure document every `vat … | jq` consumer depends on.
37
- */
38
- failed?: boolean;
49
+ report: Report<unknown>;
39
50
  }
51
+ /** A phase for which examining nothing IS an answer, and the reason it is. */
52
+ export interface ZeroIsAnAnswer {
53
+ readonly zeroIsAnAnswer: string;
54
+ }
55
+ /**
56
+ * What a phase's `examined` counts and the remedy when it is zero — the declaration its verb's
57
+ * writer is given when that verb runs alone — or the reason zero is an answer for it.
58
+ */
59
+ export type PhaseExamined = ExaminedDeclaration | ZeroIsAnAnswer;
60
+ /** The schema a phase's report is held to: its own verb's registered report schema. */
61
+ export type PhaseReportSchema = ReportZodSchema<ZodTypeAny, ZodTypeAny>;
40
62
  /**
41
- * One orchestrated phase: a name, and the work to run for it.
63
+ * The report schema of a phase that publishes no `data` of its own — verify's
64
+ * `files-config-dests` and `consistency`, build's `shipped-links`: no verb of
65
+ * their own registers one, and their `data` is `null`.
66
+ */
67
+ export declare const DATALESS_PHASE_REPORT_SCHEMA: PhaseReportSchema;
68
+ /**
69
+ * One orchestrated phase: a name, the schema its report is held to, and the
70
+ * work to run for it.
71
+ *
72
+ * `schema` is REQUIRED: the orchestrator's own schema holds a phase's `data`
73
+ * as `unknown` (it would otherwise be a second copy of every phase verb's
74
+ * shape), so {@link runPhase} parsing each report against the phase's own
75
+ * schema is the only thing standing between a phase and publishing `data` its
76
+ * verb's schema does not describe. A delegated phase names its verb's
77
+ * registered `<VERB>_REPORT_SCHEMA`; an in-process one names its own.
78
+ *
79
+ * `examined` is REQUIRED, for the same reason every writer's is: a phase that
80
+ * examined nothing and says nothing about it folds into the run as a clean one.
81
+ * A delegated phase names its verb's registered `<VERB>_EXAMINED`; a phase for
82
+ * which zero is an answer says so, with its reason. A function of the report for
83
+ * the one phase whose own `data` decides which of the two a zero is.
42
84
  *
43
85
  * `run` is a bound closure rather than an argv array because the phase executes
44
86
  * in this process. An argv array would mean re-entering Commander to
@@ -48,8 +90,39 @@ export interface PhaseOutcome {
48
90
  */
49
91
  export interface Phase {
50
92
  name: string;
93
+ schema: PhaseReportSchema;
94
+ examined: PhaseExamined | ((report: Report<unknown>) => PhaseExamined);
51
95
  run: () => Promise<PhaseOutcome>;
52
96
  }
97
+ /**
98
+ * Whether the project ships at least one plugin-local skill — by the ONE answer to that question
99
+ * (`indexPluginLocalSkills`: what the claude phase packages), never a path prefix.
100
+ *
101
+ * @param config - The project's config, or `undefined` when none loaded
102
+ * @param configDir - The directory the config was loaded from
103
+ */
104
+ export declare function shipsPluginLocalSkills(config: ProjectConfig | undefined, configDir: string): boolean;
105
+ /**
106
+ * The declaration of a `skills` phase (`vat build`, `vat validate`, `vat verify`): zero pool
107
+ * skills is the verb's own refusal — unless the project ships a plugin-local skill.
108
+ *
109
+ * `skills.include` is required by the schema, and a plugin-local skill reads its packaging
110
+ * config from `skills.config` / `skills.defaults`, so a project whose skills are all plugin-local
111
+ * MUST carry a `skills:` block whose include legitimately matches nothing in the pool. Refusing
112
+ * that stopped `vat build` before the `claude` phase that builds those very skills. With no pool
113
+ * match AND no plugin-local skill, the run examined no skill at all, and it is the refusal.
114
+ *
115
+ * @param declared - What the phase's verb declares its `examined` counts
116
+ * @param pluginLocal - Asked only when the phase examined nothing: it lists the project's plugins
117
+ */
118
+ export declare function skillsPhaseExamined(declared: ExaminedDeclaration, pluginLocal: () => boolean): (report: Report<unknown>) => PhaseExamined;
119
+ /** One phase that ran: its name and its report. */
120
+ export interface PhaseResult {
121
+ name: string;
122
+ report: Report<unknown>;
123
+ }
124
+ /** No orchestrator offers `--strict`: warnings never fail a run. */
125
+ export declare const ORCHESTRATOR_GATE: Gate;
53
126
  /**
54
127
  * Declare `--only` on a command that has RETIRED it, solely so the command can
55
128
  * explain itself instead of emitting Commander's bare `error: unknown option
@@ -57,7 +130,7 @@ export interface Phase {
57
130
  *
58
131
  * This is **not** a backward-compatibility shim — the pre-1.0 policy forbids
59
132
  * those and this obeys it. The flag does not work: {@link rejectRetiredOnly}
60
- * fails the run before any phase is selected, so no caller can keep depending
133
+ * refuses the run before any phase is selected, so no caller can keep depending
61
134
  * on the old behaviour. What it buys is a diagnosis. An unknown-option error
62
135
  * names the flag and nothing else; the reader cannot tell a typo from a removal
63
136
  * and has no way to learn what replaced it, so the next move is a bug report or
@@ -69,104 +142,49 @@ export interface Phase {
69
142
  */
70
143
  export declare function addRetiredOnlyOption(command: Command): Command;
71
144
  /**
72
- * Fail the run when a caller passed the retired `--only`, naming what changed.
145
+ * Refuse the run when a caller passed the retired `--only`, naming what changed.
73
146
  *
74
- * Exit 1, matching both Commander's usage-error convention and the exit code an
75
- * unroutable `--only` already produced on these commands, so a CI gate that was
76
- * failing on a bad `--only` keeps failing rather than flipping to green.
147
+ * `USAGE_INVALID` (exit 2): the invocation is the mistake, and nothing was
148
+ * examined.
77
149
  *
78
150
  * @param only - The parsed `--only` value; `undefined` when it was not passed.
79
151
  * @param command - Command name for the message, e.g. `vat validate`.
80
152
  * @param seconds - The measured full-run duration that made the flag not worth
81
153
  * its coverage risk. Cited so the removal reads as a decision with evidence
82
154
  * rather than a preference.
155
+ * @throws CommandRefusalError `USAGE_INVALID` when `--only` was passed
83
156
  */
84
157
  export declare function rejectRetiredOnly(only: string | undefined, command: string, seconds: number): void;
85
- /**
86
- * Outcome of one orchestrated phase.
87
- *
88
- * `system-error` is a value of its own because **a phase that could not RUN is
89
- * not a phase that found problems.**
90
- *
91
- * ⚠️ Any two-valued mapping — `status === 0 ? 'passed' : 'failed'` and its
92
- * relatives — collapses it into `error` and makes the documented exit code 2
93
- * unreachable from every orchestrator, leaving a CI script unable to tell an
94
- * invalid config from a broken link.
95
- *
96
- * `warning` reaches a phase through its own reported `status`, NOT through its
97
- * exit code — `vat skills validate` exits 0 while reporting `status: warning`,
98
- * so an exit-code-only mapping answered `success` on the very tree where the
99
- * phase said otherwise. Phases that hold their own findings (e.g. verify's
100
- * consistency check) emit it directly.
101
- */
102
- export type PhaseStatus = 'success' | 'warning' | 'error' | 'system-error';
103
- /** The phase outcome for "we did not learn what this phase would have said". */
104
- export declare const SYSTEM_ERROR: PhaseStatus;
105
- export interface PhaseResult {
106
- name: string;
107
- status: PhaseStatus;
108
- /** The exit code the phase claimed for itself. */
109
- exitCode?: ExitCodeValue;
110
- /** Why the phase could not run at all (it threw past its own error handling). */
111
- error?: string;
112
- /**
113
- * Per-severity distribution for phases that hold their own findings and
114
- * publish no document of their own. Absent for phases that DO publish one:
115
- * those own their findings, and inventing counts here would be a second,
116
- * weaker answer — theirs are carried verbatim in {@link PhaseResult.report}.
117
- */
118
- issueCounts?: SeverityCounts;
119
- /**
120
- * The phase's own document, folded in under its name.
121
- *
122
- * Nested under the phase's own entry so the orchestrator's stdout stays ONE
123
- * parseable document.
124
- *
125
- * ⚠️ Phase documents written onto a shared stdout concatenate with no `---`
126
- * between them: two phases each carrying `status:` and `durationSecs:` become
127
- * a single map with duplicate keys, and `YAML.parse()` throws "Map keys must
128
- * be unique".
129
- */
130
- report?: unknown;
131
- }
132
158
  export interface PhaseContext {
133
159
  logger: ReturnType<typeof createLogger>;
134
- startTime: number;
135
160
  }
136
161
  /**
137
- * Create the shared phase command context: logger, startTime, and bin path.
138
- *
139
- * Total by design: it builds the context and decides nothing.
140
- *
141
- * ⚠️ This runs BEFORE the command's try block, so anything that throws here
142
- * reaches the user as a raw Node stack trace with zero bytes of stdout and an
143
- * exit 1 indistinguishable from "validation errors". Phase routing therefore
144
- * belongs to {@link decidePhaseSelection} and {@link applyPhaseSelection}, which
145
- * emit the command's normal structured document.
162
+ * Create the shared phase command context. Total by design: it builds the
163
+ * context and decides nothing, because it runs outside the orchestrator's
164
+ * refusal handling.
146
165
  */
147
166
  export declare function createPhaseContext(debugFlag: boolean | undefined): PhaseContext;
148
167
  /**
149
168
  * The decision an orchestrator reaches about what `--only` asked for.
150
169
  *
151
- * Three arms, because the three answers carry different exit codes and none of
152
- * them may be collapsed into another:
153
170
  * - `run` — go ahead with these phases.
154
171
  * - `fail` — the caller named a phase that is unrecognized, or recognized but
155
- * not configured. Exit 1: a CI gate asked for coverage that cannot
156
- * run and must not stay green.
157
- * - `noop` — a bare run in a project that configures nothing. Exit 0, but
158
- * WARNED, so a config typo is not indistinguishable from success.
172
+ * not configured, or the config could not be read: a refusal,
173
+ * carrying which one.
174
+ * - `noop` — a bare run in a project that configures nothing. It runs no
175
+ * phase; the writer refuses the zero-examined run, and the stderr
176
+ * warning names the likely config typo.
159
177
  */
160
178
  export type PhaseSelection = {
161
179
  kind: 'run';
162
180
  phases: Phase[];
163
181
  } | {
164
182
  kind: 'fail';
183
+ code: RefusalCode;
165
184
  message: string;
166
185
  } | {
167
186
  kind: 'noop';
168
187
  warning: string;
169
- note: string;
170
188
  };
171
189
  /** How one orchestrator names the things `--only` selects, for its messages. */
172
190
  export interface PhaseVocabulary {
@@ -176,10 +194,9 @@ export interface PhaseVocabulary {
176
194
  verb: string;
177
195
  /** Every name `--only` accepts, in help order. */
178
196
  validNames: readonly string[];
179
- /** Stderr warning + stdout note for a bare run with nothing configured. */
197
+ /** Stderr warning for a bare run with nothing configured. */
180
198
  noop?: {
181
199
  warning: string;
182
- note: string;
183
200
  };
184
201
  }
185
202
  /**
@@ -187,11 +204,9 @@ export interface PhaseVocabulary {
187
204
  * list its config produced.
188
205
  *
189
206
  * THE single decision site for all three orchestrators, so they cannot answer
190
- * the same question differently. An orchestrator that builds its phase list
191
- * without consulting the config exits 0 on `--only skills` in a project with no
192
- * `skills:` block while another exits 1 — opposite verdicts on one question.
193
- * `vat verify` has retired `--only` and always passes `only: undefined`;
194
- * `vat validate` and `vat build` route their own `--only` through here.
207
+ * the same question differently. `vat verify` and `vat validate` have retired
208
+ * `--only` and always pass `only: undefined`; `vat build` routes its own
209
+ * `--only` through here.
195
210
  *
196
211
  * ⚠️ **Nothing may short-circuit ahead of the config-error arm.** A check
197
212
  * evaluated before `unreadableConfig` answers a confident "not configured" for a
@@ -199,138 +214,91 @@ export interface PhaseVocabulary {
199
214
  * must never give, because it is indistinguishable from a correct one.
200
215
  *
201
216
  * @param unreadableConfig - The config-load error, when the config exists but
202
- * could not be parsed. A broken config is NOT "the phase is unconfigured":
203
- * we do not know what it declares, so we must not answer with a confident
204
- * "not configured". Only `vat verify` passes it, and only defensively — its
217
+ * could not be parsed. Only `vat verify` passes it, and only defensively — its
205
218
  * phase builder pushes every configured phase when the config is unreadable
206
219
  * (so the phase itself reports the real error), which makes the list non-empty
207
- * and this arm unreachable by construction today. It is kept because the arm
208
- * that would otherwise catch an empty list is the "not configured" lie.
220
+ * and this arm unreachable by construction today.
209
221
  */
210
222
  export declare function decidePhaseSelection(only: string | undefined, phases: Phase[], vocab: PhaseVocabulary, options?: {
211
223
  unreadableConfig?: string | undefined;
212
224
  }): PhaseSelection;
213
225
  /**
214
- * Act on a {@link PhaseSelection}: return the phases to run, or emit the
215
- * command's normal structured document and exit.
216
- *
217
- * Both terminal arms go through `writeYamlOutput` deliberately: the YAML
218
- * document on stdout is the one output a scripted caller parses, so a routing
219
- * failure has to publish one rather than throw past it.
220
- */
221
- export declare function applyPhaseSelection(selection: PhaseSelection, logger: ReturnType<typeof createLogger>, startTime: number): Phase[];
222
- /** The worse of two phase statuses, per {@link PHASE_STATUS_ORDER}. */
223
- export declare function worseOf(a: PhaseStatus, b: PhaseStatus): PhaseStatus;
224
- /**
225
- * Map what a phase produced to its outcome. The pure core of {@link runPhase}.
226
- *
227
- * | exit code | phase status | why |
228
- * |-----------------------|----------------|-----------------------------------------|
229
- * | `OK` (0) | `success` | ran, found nothing actionable |
230
- * | `FINDINGS` (1) | `error` | ran, found validation errors |
231
- * | `ERROR` (2) | `system-error` | the phase itself reported a system error |
232
- * | anything else | throws | a defect in the phase, filed by `runPhase` as `system-error` |
233
- *
234
- * The exit code is then reconciled with the phase's OWN reported `status`,
235
- * worst-wins. An exit code has three values and cannot express `warning`:
236
- * `vat skills validate` exits 0 while reporting `status: warning`, so its exit
237
- * code alone reads as `success` — including on the tree VAT's CI dogfoods on
238
- * VAT itself.
239
- *
240
- * The table has no row for a signal kill, a missing status code, or a document
241
- * that fails to parse, and that is the design rather than an omission. A phase
242
- * runs in this process: there is no serialization step in which to lose a
243
- * document, and no signal that could take a phase without taking the
244
- * orchestrator with it.
245
- */
246
- export declare function phaseResultFromOutcome(name: string, outcome: PhaseOutcome): PhaseResult;
247
- /**
248
- * End a command-line run from a phase outcome: publish the document, then exit.
226
+ * Act on a {@link PhaseSelection}: the phases to run, or the refusal.
249
227
  *
250
- * THE single place the two lanes diverge, so they cannot diverge anywhere else.
251
- * A phase hands back the same `{ document, exitCode }` either way; this decides
252
- * what a *command* does with it, while an orchestrator folds it into
253
- * `phases[].report` instead.
254
- *
255
- * Three cases, and the middle one is the one to get right:
256
- * - an unexpected failure publishes the shared envelope in the format the
257
- * operator asked for, matching `handleCommandError`;
258
- * - a command's own report goes through the command's own `render`;
259
- * - no document at all (an unconfigured run, a dry run) publishes nothing.
260
- *
261
- * 🔑 **`format` is REQUIRED, and that is the whole point of it being a
262
- * parameter.** This arm hardcoded `writeYamlOutput`, and it is `vat resources
263
- * validate`'s ONLY error exit — so `--format json` silently produced YAML on the
264
- * one path a scripted consumer most needs to parse. The sibling
265
- * `handleCommandError` has the same parameter as an OPTIONAL one carrying a
266
- * docstring that says a caller with a `--format` option must pass it, and two
267
- * commands added in the same change dropped it anyway: a docstring is not a
268
- * mechanism. Here the type system asks, so a new caller cannot forget. A command
269
- * that offers no `--format` passes `undefined` and says so at its call site.
270
- *
271
- * ⚠️ It governs the FAILURE envelope only. A command's own report still goes
272
- * through `render`, which is what a `--format text` lane needs.
273
- *
274
- * @param outcome - What the phase produced
275
- * @param render - How this command publishes its OWN report shape
276
- * @param format - What the operator asked for: `json`, or anything else (and
277
- * `undefined`) for YAML — the same two-branch switch `handleCommandError` and
278
- * every success path use
228
+ * @throws CommandRefusalError for a `fail` selection, carrying its code —
229
+ * the orchestrator's catch publishes it
279
230
  */
280
- export declare function finishCommand(outcome: PhaseOutcome, render: (document: unknown) => void, format: string | undefined): never;
231
+ export declare function applyPhaseSelection(selection: PhaseSelection, logger: ReturnType<typeof createLogger>): Phase[];
281
232
  /**
282
- * Run a single phase in THIS process and fold its outcome into a result.
233
+ * Run a single phase in THIS process.
283
234
  *
284
235
  * In THIS process, because everything an orchestrator reads back from a phase is
285
- * the {@link PhaseOutcome} pair. A process per phase buys neither half of it and
286
- * charges, on every phase, a full Node startup and the whole module graph again
287
- * (~730 ms of remark per isolate), a parse cache whose miss counters restart
288
- * from zero, and a worker pool built and torn down before the next phase begins.
289
- * Phases run sequentially, so none of that cost is ever overlapped with work.
290
- *
291
- * The `catch` is a BACKSTOP, not the error path. Every phase function reports
292
- * its own failures through `reportCommandError` and returns them as a document.
293
- *
294
- * ⚠️ This arm exists for a throw that escaped that handling. Sharing the
295
- * orchestrator's process is what makes it load-bearing: an escaped throw aborts
296
- * the orchestrator itself and silently skips every later phase.
236
+ * its report. A process per phase charges, on every phase, a full Node startup
237
+ * and the whole module graph again (~730 ms of remark per isolate), a parse
238
+ * cache whose miss counters restart from zero, and a worker pool built and torn
239
+ * down before the next phase begins.
240
+ *
241
+ * The report is held to the phase's own {@link Phase.schema} before it is
242
+ * folded — the check its verb's writer applies when that verb runs alone. A
243
+ * report the schema rejects is VAT's defect: the `ZodError` carries no code, so
244
+ * it becomes the phase's `INTERNAL_ERROR`, never a finished phase.
245
+ *
246
+ * Then it is judged as its verb's writer judges it ({@link phaseVerdict}): a
247
+ * configured phase that examined nothing is refused, and the refusal is said on
248
+ * stderr as well as in the document.
249
+ *
250
+ * The `catch` is a BACKSTOP, not the error path: every phase function returns
251
+ * its own refusal as a report. A throw that escaped that becomes the phase's
252
+ * refusal — classified by its code, `INTERNAL_ERROR` when it carries none —
253
+ * rather than aborting the orchestrator and silently skipping every later phase.
297
254
  */
298
255
  export declare function runPhase(phase: Phase): Promise<PhaseResult>;
299
256
  /**
300
- * Worst-wins aggregate across phases. `system-error` outranks `error`: "we could
301
- * not determine the answer" must never be filed under "we determined it is bad".
302
- */
303
- export declare function aggregatePhaseStatus(results: readonly PhaseResult[]): PhaseStatus;
304
- /**
305
- * One phase's per-severity distribution, wherever that phase keeps it.
306
- *
307
- * A phase that holds its own findings publishes {@link PhaseResult.issueCounts}.
308
- * A phase that publishes its own document deliberately does not — it owns its
309
- * findings, and its document rides verbatim in {@link PhaseResult.report}.
257
+ * A phase's report as its own verb's writer would publish it: with the ONE
258
+ * `RESOURCE_CHECK_BROKEN` refusal added when it examined nothing — unless zero is
259
+ * an answer for this phase. `withRunIntegrity` is the same function every writer
260
+ * calls, so there is one contract for "a run that examined nothing", and an
261
+ * orchestrated phase gets the very finding its verb gives alone.
310
262
  *
311
- * ⚠️ Both places must be read. Reading only `issueCounts` makes an
312
- * orchestrator's header report `{0, 0, 0}` over phases that just reported 12
313
- * warnings.
263
+ * Pure: no I/O, no stderr.
314
264
  *
315
- * Absent or malformed counts read as zero rather than throwing: a phase that
316
- * publishes no distribution contributes nothing to the total.
265
+ * @param phase - The phase's `examined` declaration
266
+ * @param report - What the phase returned
267
+ * @returns `report` itself when nothing is added, so a caller can tell by identity
317
268
  */
318
- export declare function phaseIssueCounts(result: PhaseResult): SeverityCounts;
269
+ export declare function phaseVerdict(phase: Pick<Phase, 'examined'>, report: Report<unknown>): Report<unknown>;
319
270
  /**
320
- * Sum every phase's distribution, so an orchestrator's header total reconciles
321
- * against the phases printed beneath it.
322
- *
323
- * The companion to {@link aggregatePhaseStatus}: status is worst-wins ACROSS
324
- * phases, so a header whose `status` can see the phases while its `issueCounts`
325
- * cannot publishes a contradiction in one document — `status: warning` beside
326
- * `warnings: 0`.
271
+ * Fold the phases into the orchestrator's ONE report.
272
+ *
273
+ * `findings` is every phase's findings with its `location` unchanged; `examined`
274
+ * is the sum of the phases' own; `data.phases` is one entry per phase. Any phase
275
+ * that did not finish makes the run `error` with `RUN_INCOMPLETE`, naming the
276
+ * phases that stopped, and the finished ones stay in `data.phases` — a failed
277
+ * phase never erases what the others found.
278
+ *
279
+ * Pure: each phase was judged as it ran ({@link runPhase}), and the writer judges
280
+ * the sum when it publishes — which refuses the run in which no phase ran.
281
+ *
282
+ * @param results - Every phase that ran, in execution order
283
+ * @param gate - The gate the run is judged by
284
+ * @param durationMs - Wall-clock milliseconds the run took; carried by a completed
285
+ * run only, as no refusal document carries `durationMs`
286
+ * @returns The report, before the writer's run-integrity pass
327
287
  */
328
- export declare function aggregatePhaseIssueCounts(results: readonly PhaseResult[]): SeverityCounts;
288
+ export declare function orchestratorReport(results: readonly PhaseResult[], gate: Gate, durationMs?: number): Report<OrchestratorData>;
329
289
  /**
330
- * The process exit code for a set of phase outcomes, per the exit-code contract
331
- * every orchestrator's help text documents: `OK` pass, `FINDINGS` validation
332
- * failure, `ERROR` system error. Warnings do not fail a run — they are
333
- * published in the status and counts instead.
290
+ * Run an orchestrator's body and fold it into its ONE report.
291
+ *
292
+ * `body` pushes each phase that ran onto `results`. A throw from it — the
293
+ * refused `--only`, a positional argument, no project root, discovery that
294
+ * could not see the tree — is classified by its code and becomes the
295
+ * envelope's error branch carrying every phase that already finished. The
296
+ * command publishes the result with `endWithReport`.
297
+ *
298
+ * @param body - The run; it records each phase's result as it finishes
299
+ * @returns The orchestrator's report, before the writer's run-integrity pass
334
300
  */
335
- export declare function exitCodeForPhases(results: readonly PhaseResult[]): ExitCodeValue;
301
+ export declare function orchestrate(body: (results: PhaseResult[]) => Promise<void>): Promise<Report<unknown>>;
302
+ /** No orchestrator offers `--format`: the document is YAML. */
303
+ export declare const ORCHESTRATOR_FORMAT: DocumentFormat;
336
304
  //# sourceM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