@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
package/docs/audit.md CHANGED
@@ -30,7 +30,7 @@ vat audit [git-url-or-path] [options]
30
30
  - `--user` - Audit user-level Claude plugins installation (`~/.claude/plugins`)
31
31
  - `--no-recursive` - Scan the top level only (recursive scanning is the default; there is no `--recursive` flag)
32
32
  - `--compat` - Run compatibility analysis for each plugin; adds a `compatibility:` block to its entry (see [Compatibility and settings blocks](#compatibility-and-settings-blocks))
33
- - `--settings [file]` - Check each plugin against Claude settings (auto-discovered, or the given file); adds a `settings:` block. Requires `--compat`
33
+ - `--settings [file]` - Check each plugin against Claude settings (auto-discovered, or the given file); adds a `settings:` block. Requires `--compat`: without it, or with `--user`, the run is refused (`USAGE_INVALID`, exit 2). A named file that does not exist is `USAGE_INVALID`; one the OS refuses, or that does not parse or fails the settings schema, is `INPUT_UNREADABLE` — and so is an auto-discovered managed, project or user settings file in any of those states (only an absent one is skipped) — the settings check never runs silently unchecked
34
34
  - `--debug` - Enable debug logging (outputs to stderr)
35
35
 
36
36
  ### Gitignore-aware scanning
@@ -158,9 +158,11 @@ vat audit --user
158
158
  - All skills within plugins
159
159
 
160
160
  **Output format**:
161
- - Hierarchical structure: marketplace → plugin → skill
162
- - Cache status for each plugin
163
- - Issue counts at each level
161
+ - The same report envelope as every other audit (see [Output Format](#output-format)),
162
+ with `data.hierarchical` grouping the skills: marketplace → plugin → skill
163
+ - Cache status for each cached plugin skill
164
+ - Each skill's findings distributed by severity (`summary`); the findings
165
+ themselves are the envelope's, each naming its file in `location`
164
166
 
165
167
  ### Multi-dir Workflows
166
168
 
@@ -182,46 +184,65 @@ detection strategy doc, workstream B).
182
184
 
183
185
  **Example output**:
184
186
  ```yaml
185
- status: success
186
- summary:
187
- filesScanned: 42
188
- filesPassed: 40
189
- filesWithWarnings: 2
190
- filesWithErrors: 0
191
- marketplaces: 2
192
- standalonePlugins: 3
193
- standaloneSkills: 5
194
- hierarchical:
195
- marketplaces:
196
- - name: anthropic-agent-skills
197
- status: success
198
- plugins:
199
- - name: document-skills
200
- status: warning
201
- cacheStatus: fresh
202
- skills:
203
- - path: .../pdf.md
204
- status: warning
205
- issues:
206
- - code: SKILL_TOO_LONG
207
- message: Skill exceeds recommended length
187
+ status: findings
188
+ examined: 42
189
+ findings:
190
+ - code: SKILL_TOO_LONG
191
+ severity: warning
192
+ message: Skill exceeds recommended length
193
+ location: plugins/marketplaces/anthropic-agent-skills/document-skills/skills/pdf/SKILL.md
194
+ summary: { errors: 0, warnings: 1, info: 0 }
195
+ gate: { strict: false }
196
+ durationMs: 812
197
+ data:
198
+ root: /Users/me/.claude
199
+ provenance: null
200
+ counts: { filesPassed: 41, filesWithWarnings: 1, filesWithErrors: 0, pathsUnreadable: 0 }
201
+ files: [...]
202
+ hierarchical:
203
+ marketplaces:
204
+ - name: anthropic-agent-skills
205
+ plugins:
206
+ - name: document-skills
207
+ skills:
208
+ - name: pdf
209
+ path: plugins/marketplaces/anthropic-agent-skills/document-skills/skills/pdf/SKILL.md
210
+ status: findings
211
+ summary: { errors: 0, warnings: 1, info: 0 }
212
+ cachedPlugins: []
213
+ standalonePlugins: []
214
+ standaloneSkills: []
208
215
  ```
209
216
 
210
- ## `status` and the exit code
217
+ A standalone `SKILL.md` directly under `plugins/` (which Claude Code will not
218
+ load) carries `SKILL_MISCONFIGURED_LOCATION` at `error` — among the envelope's
219
+ findings, counted in its `summary`, and gating the exit code like any other
220
+ error.
211
221
 
212
- The YAML `status` describes the findings — the worst actionable severity across
213
- them — and the exit code follows it, exactly as in every other command of this
214
- CLI. `vat audit` used to be the one exception ("advisory": exit 0 over
215
- `status: error`), which a CI author reading the shared contract got wrong on
216
- exactly this verb.
222
+ ## `status` and the exit code
217
223
 
218
- A run that audited **zero files** is refused, not passed. An existing directory
219
- with nothing auditable in it — plugins that moved, a wrong subdirectory, an
220
- excluded tree, files no lane recognises — used to publish `status: success`
221
- beside `filesScanned: 0`, which is the same document a clean tree produces. It
222
- now publishes `status: error` with one non-overridable `RESOURCE_CHECK_BROKEN`
223
- finding under a top-level `issues:` key (the claim is about the run, so it is
224
- not a `files[]` row and does not count toward `filesScanned`), and exits `1`.
224
+ One rule, the same in every report verb of this CLI:
225
+
226
+ - `status` is literal. `ok`: the audit finished and found nothing. `findings`:
227
+ it finished and found at least one thing, at any severity. `error`: it **did
228
+ not finish** — the reason is `error.code` (a refusal such as `USAGE_INVALID`
229
+ or `INPUT_UNREADABLE`) and `error.message`.
230
+ - The exit code is derived from the published report: `2` when `status` is
231
+ `error`; `1` when `summary.errors > 0`; otherwise `0`. `gate.strict` is
232
+ always `false` — audit has no `--strict`, so warnings never move the exit
233
+ code.
234
+
235
+ `status: error` used to mean "an error-severity finding exists" in this command
236
+ alone. An error-severity finding is now `status: findings` with
237
+ `summary.errors > 0` and exit `1`; `status: error` is reserved for a run that
238
+ did not finish.
239
+
240
+ A run that audited **zero files** is not a pass. An existing directory with
241
+ nothing auditable in it — plugins that moved, a wrong subdirectory, an excluded
242
+ tree, files no lane recognises — used to publish the same document a clean tree
243
+ produces. It now carries one non-overridable `RESOURCE_CHECK_BROKEN` finding at
244
+ `error` (with no `location`: the claim is about the run, not a file), beside
245
+ `examined: 0`, and exits `1`.
225
246
 
226
247
  What still sets audit apart from `vat skills validate` is not the exit code but
227
248
  what it shows: audit ignores `validation.allow` (every finding is reported and
@@ -233,9 +254,9 @@ stops moving the exit code; set it to `ignore` and it disappears from the report
233
254
 
234
255
  The three-way contract every command shares:
235
256
 
236
- - **0** - The audit completed with nothing at error severity. Warnings and informational findings are in the report, not the exit code.
237
- - **1** - The audit completed and reports `status: error`: at least one error-severity finding, or zero files audited. A directory or file INSIDE the tree that the scan could not read — permission denied, a vanished mount — is `SCAN_PATH_UNREADABLE` (warning): the run is degraded, not failed, every readable sibling is still validated, and the refused path is reported under `summary.pathsUnreadable` rather than counted in `filesScanned` — so a root with nothing readable audited zero files and is refused like an empty tree. A governing `vibe-agent-toolkit.config.yaml` that cannot be loaded, or whose `skills.include` reaches a directory the crawl cannot list, is warned about once on stderr and filed as `SCAN_PATH_UNREADABLE` on the config file or the directory; the skills it governs are validated config-free rather than dropped. Degrading beats destroying, and the report says where it degraded.
238
- - **2** - The audit could not run at all, so there is no report to read: the path does not exist or is a file no audit lane recognises (the same ending `vat resources validate` and `vat skill review` give that argument), `--user` with no Claude config directory installed, a git URL that could not be cloned, an unknown flag, or an internal failure (a validator defect). An invalid config and a permission problem inside the tree are **not** exit 2 — they are findings, above.
257
+ - **0** - The audit finished and no finding is at error severity. Warnings and informational findings are in the report, not the exit code.
258
+ - **1** - The audit finished with at least one error-severity finding (`status: findings`, `summary.errors > 0`), including a run that audited zero files. A directory or file INSIDE the tree that the scan could not read — permission denied, a vanished mount — is `SCAN_PATH_UNREADABLE` (warning): the run is degraded, not failed, every readable sibling is still validated, and the refused path is counted in `data.counts.pathsUnreadable`, never in `examined` — so a root with nothing readable audited zero files and is refused like an empty tree. A governing `vibe-agent-toolkit.config.yaml` that cannot be loaded, or whose `skills.include` reaches a directory the crawl cannot list, is warned about once on stderr and filed as `SCAN_PATH_UNREADABLE` on the config file or the directory; the skills it governs are validated config-free rather than dropped. Degrading beats destroying, and the report says where it degraded.
259
+ - **2** - The audit did not finish: `status: error`, with the refusal in `error.code`. `USAGE_INVALID` — the path does not exist, is a file no audit lane recognises (the same ending `vat resources validate` and `vat skill review` give that argument), a git URL that does not parse, or `--user` with no Claude config directory installed. `INPUT_UNREADABLE` — a root directory the OS will not list, or a git URL that could not be cloned (or whose ref or subpath it does not hold). `INTERNAL_ERROR` — a defect in VAT, with its stack on stderr. An invalid config and a permission problem inside the tree are **not** exit 2 — they are findings, above.
239
260
 
240
261
  ## Validation Configuration
241
262
 
@@ -276,7 +297,7 @@ Errors prevent the resource from being used correctly:
276
297
  - **Schema validation failures**: Manifest/frontmatter doesn't match expected format
277
298
  - **Broken links**: Links to non-existent files (Skills only)
278
299
  - **Reserved words in names**: `anthropic` or `claude` in a skill name (`RESERVED_WORD_IN_NAME`, a warning — Claude Code rejects non-certified skills using them)
279
- - **XML tags in frontmatter**: XML-like tags in name/description (Skills only)
300
+ - **XML tags in frontmatter**: XML-like tags in the description (Skills only)
280
301
 
281
302
  ### Warnings (Should Fix)
282
303
 
@@ -321,8 +342,7 @@ Warnings indicate potential issues but don't prevent usage:
321
342
  | `SKILL_NAME_INVALID` | error | Name contains invalid characters | Use only letters, numbers, hyphens, underscores |
322
343
  | `SKILL_DESCRIPTION_TOO_LONG` | error | Description exceeds 1024 characters (the frontmatter schema limit; `SKILL_DESCRIPTION_OVER_CLAUDE_CODE_LIMIT` warns earlier at 250, where the Claude Code `/skills` listing truncates) | Shorten description |
323
344
  | `RESERVED_WORD_IN_NAME` | warning | Name contains `anthropic` or `claude`; Claude Code rejects non-certified skills using these words | Rename the skill to avoid these words |
324
- | `SKILL_NAME_XML_TAGS` | error | Name contains XML-like tags | Remove XML tags from name |
325
- | `SKILL_DESCRIPTION_XML_TAGS` | error | Description contains XML-like tags | Remove XML tags from description |
345
+ | `SKILL_DESCRIPTION_XML_TAGS` | error | Description contains markup — VAT's reading of the vendor's "cannot contain XML tags" | Remove the tag, or backtick a literal placeholder (backticks do not exempt real markup) |
326
346
  | `SKILL_DESCRIPTION_EMPTY` | error | Description is empty or whitespace | Provide meaningful description |
327
347
  | `SKILL_MISCONFIGURED_LOCATION` | error | Standalone skill in `~/.claude/plugins/` won't be recognized | Move to `~/.claude/skills/` for standalone skills, or add `.claude-plugin/plugin.json` for a proper plugin |
328
348
  | `LINK_INTEGRITY_BROKEN` | error | Link to non-existent file | Fix or remove broken link |
@@ -349,40 +369,49 @@ Warnings indicate potential issues but don't prevent usage:
349
369
 
350
370
  ### Standard Output (stdout)
351
371
 
352
- Structured YAML report for programmatic parsing:
372
+ The report envelope every report verb publishes, as YAML. Its JSON Schema is
373
+ `packages/cli/schemas/audit.json`:
353
374
 
354
375
  ```yaml
355
- root: /abs/path/to/scan/root # The ONE absolute path in the document
356
- status: success | warning | error
357
- summary:
358
- filesScanned: number # Files the audit READ — never a path it could not
359
- filesPassed: number # Files with no ACTIONABLE issues (info-only counts as passed)
360
- filesWithWarnings: number # Files whose worst actionable severity is warning
361
- filesWithErrors: number # Files carrying at least one error
362
- pathsUnreadable: number # `files[]` rows that are a refused path (SCAN_PATH_UNREADABLE),
363
- # outside every count above: files.length === filesScanned + pathsUnreadable
364
- issueCounts: # FINDINGS, not files — same field name and meaning
365
- errors: number # as the `issueCounts` on each entry below,
366
- warnings: number # plus the run-level `issues` when present
367
- info: number
368
- issues: # Only when the RUN itself is refused — a run over
369
- - code: RESOURCE_CHECK_BROKEN # zero files. Not a file, so not in `files[]`.
370
- severity: error
376
+ status: ok | findings | error # literal: findings iff the list is non-empty; error = did not finish
377
+ examined: number # FILES the audit read — never a path it could not
378
+ findings: # every file's findings, flattened
379
+ - code: SKILL_TOO_LONG
380
+ severity: error | warning | info
371
381
  message: ...
372
- duration: "123ms"
373
- files:
374
- - path: plugins/my-plugin # relative to `root`
375
- status: success | warning | error
376
- type: plugin | marketplace | registry | skill
377
- issues:
378
- - location: plugins/my-plugin/.claude-plugin/plugin.json # relative to `root`
382
+ location: plugins/my-plugin/skills/x/SKILL.md # the file to open, relative to `data.root`
383
+ line: 12 # when the producer knows it
384
+ summary: { errors, warnings, info } # FINDINGS by severity — the one meaning of `summary`
385
+ gate: { strict: false } # audit has no --strict: warnings never gate
386
+ durationMs: number
387
+ error: { code, message } # only when status is error (a refusal code)
388
+ data:
389
+ root: /abs/path/to/scan/root # the ONE absolute path in the document; null for a URL audit
390
+ provenance: null # a URL audit's source: { url, ref, commit, subpath? }
391
+ counts: # FILES by their worst actionable severity
392
+ filesPassed: number # no ACTIONABLE finding (info-only counts as passed)
393
+ filesWithWarnings: number
394
+ filesWithErrors: number
395
+ pathsUnreadable: number # `files[]` rows that are a refused path (SCAN_PATH_UNREADABLE),
396
+ # outside every count above: files.length === examined + pathsUnreadable
397
+ files:
398
+ - path: plugins/my-plugin # relative to `root`
399
+ type: agent-skill | vat-agent | claude-plugin | marketplace | registry | unknown
400
+ status: ok | findings # literal: findings iff this file carries any finding
401
+ summary: { errors, warnings, info } # this file's findings by severity
402
+ hierarchical: null # `--user` only: the marketplace → plugin → skill view
379
403
  ```
380
404
 
405
+ The one finding without a `location` is the run's own `RESOURCE_CHECK_BROKEN`
406
+ over zero files: it is about the run, not a file. Every other finding names its
407
+ file; one a validator reported without a location inherits its file row's
408
+ `path`.
409
+
381
410
  #### One stated root, and everything relative to it
382
411
 
383
- `root` is the invocation scan root and the only absolute path a report contains.
384
- Every `path` and every issue `location` beneath it is forward-slashed and
385
- relative to that root, so:
412
+ `data.root` is the invocation scan root and the only absolute path a report
413
+ contains. Every `path` and every finding `location` beneath it is
414
+ forward-slashed and relative to that root, so:
386
415
 
387
416
  - `join(root, path)` and `join(root, location)` name real files — a consumer
388
417
  never has to guess, or reimplement, the base a value was written against.
@@ -398,13 +427,15 @@ say in how a path is spelled.
398
427
 
399
428
  `--user` scans three sibling directories (`plugins/`, `skills/`,
400
429
  `marketplaces/`), so its `root` is their shared Claude config dir
401
- (`$CLAUDE_CONFIG_DIR`, else `~/.claude`). A URL audit omits `root`: the clone
402
- lives in a random tempdir that nothing downstream can resolve, so the provenance
403
- header states the base instead and paths are relative to the cloned repo.
430
+ (`$CLAUDE_CONFIG_DIR`, else `~/.claude`). A URL audit's `root` is `null`, and
431
+ only a URL audit's: the clone lives in a random tempdir that nothing downstream
432
+ can resolve, so `data.provenance` states the base instead and paths are relative
433
+ to the cloned repo. The schema enforces both halves — `root` is `null` exactly
434
+ when `provenance` is not.
404
435
 
405
436
  #### Compatibility and settings blocks
406
437
 
407
- Under `--compat`, every `claude-plugin` entry carries a `compatibility:` block;
438
+ Under `--compat`, every `claude-plugin` entry of `data.files` carries a `compatibility:` block;
408
439
  under `--compat --settings`, a `settings:` block beside it. **Both blocks are
409
440
  always present for every plugin the run was asked about** — a lane that could
410
441
  not run says so in its block rather than leaving it out, because a plugin the
@@ -462,6 +493,25 @@ analyzed; the verdicts are computed WITHOUT the unchecked files, so an empty
462
493
  `verdicts` beside a non-empty `unchecked` is a verdict over fewer files than
463
494
  the plugin ships.
464
495
 
496
+ **The blocks are also findings.** What a lane found, and what it could not look
497
+ at, is filed on the plugin's own result, so the report's `status`, the row's
498
+ `status` and `data.counts` say what the blocks say:
499
+
500
+ - each `settings.conflicts[]` entry is a `SETTINGS_POLICY_CONFLICT` warning on
501
+ the plugin, naming what is blocked and the settings file and level;
502
+ - `compatibility: { analyzed: false }` is a `COMPAT_NOT_CHECKED` warning on the
503
+ plugin, with the reason;
504
+ - each path under `compatibility.unchecked` or `settings.unchecked` is a
505
+ `COMPAT_NOT_CHECKED` warning at that path, once — and not at all when the
506
+ report already carries that path's refusal (a `SCAN_PATH_UNREADABLE` or
507
+ `SKILL_MISSING_FRONTMATTER` finding there), since one refused path is one
508
+ finding. An unrelated finding at the same path does not suppress it, and a
509
+ plugin neither lane could run for gets one finding, not two.
510
+
511
+ Both are warnings: the run's `status` becomes `findings` and its exit code
512
+ stays 0, as for `COMPAT_TARGET_INCOMPATIBLE`. Neither can be re-levelled or
513
+ waived by `validation.severity` / `validation.allow`.
514
+
465
515
  Both outcomes are also said on stderr without `--debug`: a
466
516
  `Compatibility analysis could not run for <plugin>: <reason>` line, and totals
467
517
  for conflicts found and paths the settings check could not compare.
@@ -579,9 +629,9 @@ jobs:
579
629
 
580
630
  ## Troubleshooting
581
631
 
582
- ### "User plugins directory not found"
632
+ ### "No user-level Claude directories found"
583
633
 
584
- **Problem**: `--user` flag but no `~/.claude/plugins/` directory
634
+ **Problem**: `--user` flag but no `plugins/`, `skills/` or `marketplaces/` under the Claude config dir — a `USAGE_INVALID` refusal, exit 2
585
635
 
586
636
  **Solution**: Install Claude Desktop and plugins first, or audit specific path instead
587
637
 
@@ -637,16 +687,22 @@ The `#ref[:subpath]` fragment form works on every URL form above.
637
687
 
638
688
  ### Output
639
689
 
640
- Output begins with a provenance header showing the URL, ref, and resolved commit SHA, then the normal audit output with paths relative to the cloned repo root. Each header line is emitted as a YAML comment so the rest of the output remains pipe-parseable (`vat audit <url> | yq` works without preprocessing):
690
+ The report names its source in `data.provenance` — the URL, the ref, the resolved commit SHA and any subpath — and `data.root` is `null`: every path is relative to the cloned repo (or the subpath). stderr carries the same provenance as a human line (`Audited: <url> @ <ref> (commit abc123de)`), and stdout is the report alone:
641
691
 
642
- ```
643
- # Audited: https://github.com/foo/bar.git @ main (commit abc123de)
644
- # Subpath: plugins/baz
645
- ---
646
- status: success
647
- files:
648
- - path: plugins/baz/SKILL.md
649
- ...
692
+ ```yaml
693
+ status: ok
694
+ examined: 1
695
+ findings: []
696
+ data:
697
+ root: null
698
+ provenance:
699
+ url: https://github.com/foo/bar.git
700
+ ref: main
701
+ commit: abc123de…
702
+ subpath: plugins/baz
703
+ files:
704
+ - path: SKILL.md
705
+ ...
650
706
  ```
651
707
 
652
708
  ### Authentication
@@ -665,6 +721,46 @@ Pass `--debug` to preserve the cloned tempdir for inspection (its location is pr
665
721
  - GitHub web URLs are parsed only for `github.com`. For GitLab/Bitbucket/Gitea, use the `.git` URL form directly.
666
722
  - Cache-skip-on-unchanged-SHA is not implemented in v1; every URL audit pays the clone cost.
667
723
 
724
+ ## `vat audit settings`
725
+
726
+ Shows what Claude is allowed to do from the current directory — the managed,
727
+ user and project settings layers merged, each value with the chain of values it
728
+ overrode — or validates one settings file (`--file`), or probes every settings
729
+ path (`--show-paths`). Every mode reads the user layer from the same place:
730
+ `settings.json` under `$CLAUDE_CONFIG_DIR`, else `~/.claude`. It publishes the
731
+ same report envelope as `vat audit`
732
+ (schema: `packages/cli/schemas/audit-settings.json`):
733
+
734
+ - `data.mode` says which mode ran: `effective` (default: `layers`,
735
+ `effectiveSettings`, `conflicts`), `file` (`file`, `detectedType`,
736
+ `typeConfidence`, `fields`) or `paths` (`paths`).
737
+ - `findings` carry the `SETTINGS_*` codes (see
738
+ [`docs/validation-codes.md`](../../../docs/validation-codes.md#claude-settings-codes)) —
739
+ non-overridable: no `validation.severity` or `validation.allow` key applies to them,
740
+ and both refuse one — and `SCAN_PATH_UNREADABLE` for a settings path the probe could
741
+ not check. Each finding's `location` is the settings file; `field` is the dotted key
742
+ path inside it when there is one, and is absent for a finding about the document as a
743
+ whole (JSON that does not parse, a violation at its root).
744
+ - `data.root` is the directory the command ran in — the one absolute path in the
745
+ document, as `vat audit`'s `data.root` is. Every other path (a finding's
746
+ `location`, `layers[].file`, a rule's `source` / `ruleSource` /
747
+ `shadowedBySource`, a probed `paths[].path`, `file`) is forward-slashed and
748
+ relative to it, so a user or managed settings file reads `../…` rather than
749
+ leaking `$HOME`. A file on another Windows drive has no relative spelling: it is
750
+ the one path published absolutely, and a finding about it names it at the start
751
+ of its `message` (a `location` must be relative) — said, never dropped.
752
+ - `examined` counts the settings documents read: the layers loaded, the one
753
+ `--file`, or the paths whose existence was determined. Zero — no settings
754
+ file readable from here — is not a clean answer: it carries
755
+ `RESOURCE_CHECK_BROKEN` and exits `1`.
756
+ - Exit codes follow the one rule: `1` for an error-severity finding (an invalid
757
+ settings file, a legacy managed-settings path) or nothing read; `2` when it did
758
+ not finish (`USAGE_INVALID` for a `--file` that does not exist or an unknown
759
+ `--type`, `INPUT_UNREADABLE` for a `--file` the OS will not let it read, or, in
760
+ the default mode, for a discovered settings layer the OS refuses, that does not
761
+ parse, or that fails its schema — a file nothing could be read from is a
762
+ refusal, never a finding about it, and never a layer silently left out).
763
+
668
764
  ## Cross-Platform Considerations
669
765
 
670
766
  ### Path Separators
@@ -701,7 +797,8 @@ governing context rather than a single top-level `projectRoot`:
701
797
  - **Config**: accept defaults. Per-skill `validation.severity` overrides come
702
798
  from whichever `vibe-agent-toolkit.config.yaml` each skill walks up to;
703
799
  `validation.allow` is not applied by audit (see the config section above).
704
- The exit code follows the report's `status`, like every other command.
800
+ The exit code is derived from the published report by the one rule every
801
+ report verb shares (see [`status` and the exit code](#status-and-the-exit-code)).
705
802
 
706
803
  The per-skill walk-up is cached via a module-level two-layer cache and pre-warmed
707
804
  during top-down descent for efficiency on large trees.
@@ -722,3 +819,129 @@ for VAT's audit stance.
722
819
  - [Agent Command](./agent.md) - Agent build and import commands
723
820
  - [Resources Command](./resources.md) - Markdown resource validation
724
821
  - [Doctor Command](./doctor.md) - Environment diagnostics
822
+
823
+ ## Example reports
824
+
825
+ Each block below is a real document from the built CLI, trimmed where noted; `packages/cli/test/integration/tagged-report-examples.integration.test.ts` validates every `vat-report=<verb>` block against that verb's registered schema.
826
+
827
+ ### `audit`
828
+
829
+ A built marketplace with one finding, cut to the first file entry: `status: findings`, exit `1` only on an error. Produced by `vat audit dist/.claude/plugins/marketplaces/mp1`.
830
+
831
+ ```yaml vat-report=audit
832
+ status: findings
833
+ examined: 4
834
+ findings:
835
+ - severity: info
836
+ code: PLUGIN_MISSING_LICENSE
837
+ message: plugin.json is missing the recommended `license` field.
838
+ location: plugins/sample/.claude-plugin/plugin.json
839
+ fix: Add a "license" SPDX identifier (e.g. "MIT") to plugin.json so redistribution terms are explicit.
840
+ reference: "#plugin_missing_license"
841
+ summary:
842
+ errors: 0
843
+ warnings: 0
844
+ info: 1
845
+ gate:
846
+ strict: false
847
+ durationMs: 16689
848
+ data:
849
+ root: /work/project/dist/.claude/plugins/marketplaces/mp1
850
+ provenance: null
851
+ counts:
852
+ filesPassed: 4
853
+ filesWithWarnings: 0
854
+ filesWithErrors: 0
855
+ pathsUnreadable: 0
856
+ files:
857
+ - path: .
858
+ type: marketplace
859
+ status: ok
860
+ summary:
861
+ errors: 0
862
+ warnings: 0
863
+ info: 0
864
+ - path: plugins/sample
865
+ type: claude-plugin
866
+ status: findings
867
+ summary:
868
+ errors: 0
869
+ warnings: 0
870
+ info: 1
871
+ hierarchical: null
872
+ ```
873
+
874
+ ### `inventory`
875
+
876
+ The inventory of a project directory. Produced by `vat inventory .`.
877
+
878
+ ```yaml vat-report=inventory
879
+ status: ok
880
+ examined: 1
881
+ findings: []
882
+ summary:
883
+ errors: 0
884
+ warnings: 0
885
+ info: 0
886
+ gate:
887
+ strict: false
888
+ durationMs: 75
889
+ data:
890
+ inventory:
891
+ kind: plugin
892
+ vendor: claude-code
893
+ path: /work/project
894
+ shape: claude-plugin
895
+ manifest: {}
896
+ declared:
897
+ skills: null
898
+ commands: null
899
+ agents: null
900
+ hooks: null
901
+ mcpServers: null
902
+ outputStyles: null
903
+ lspServers: null
904
+ discovered:
905
+ skills: []
906
+ commands: []
907
+ agents: []
908
+ references: []
909
+ unexpected:
910
+ skillManifests:
911
+ - /work/project/dist/skills/test-skill-1/SKILL.md
912
+ pluginManifests: []
913
+ parseErrors: []
914
+ ```
915
+
916
+ ### `audit settings`
917
+
918
+ The effective settings of a project with one allow and one deny rule. Produced by `vat audit settings`.
919
+
920
+ ```yaml vat-report=audit settings
921
+ status: ok
922
+ examined: 1
923
+ findings: []
924
+ summary:
925
+ errors: 0
926
+ warnings: 0
927
+ info: 0
928
+ gate:
929
+ strict: false
930
+ data:
931
+ mode: effective
932
+ root: /work/project
933
+ layers:
934
+ - level: project
935
+ file: .claude/settings.json
936
+ effectiveSettings:
937
+ permissions:
938
+ deny:
939
+ - rule: Read(./.env)
940
+ source: .claude/settings.json
941
+ level: project
942
+ allow:
943
+ - rule: Read(./docs/**)
944
+ source: .claude/settings.json
945
+ level: project
946
+ conflicts: []
947
+ ```
package/docs/doctor.md CHANGED
@@ -12,7 +12,7 @@ providing actionable suggestions for any problems found.
12
12
  **Purpose:** Check environment and project setup health
13
13
 
14
14
  **What it checks:**
15
- 1. Node.js version (>=22.13.0 required — the range comes from the CLI's own `engines.node`)
15
+ 1. Node.js version (>=22.16.0 required — the range comes from the CLI's own `engines.node`)
16
16
  2. Git installed and version
17
17
  3. Current directory is a git repository
18
18
  4. Configuration file exists (vibe-agent-toolkit.config.yaml)
@@ -21,25 +21,36 @@ providing actionable suggestions for any problems found.
21
21
  7. CLI build status (when running from VAT source tree)
22
22
 
23
23
  **Options:**
24
- - `--verbose` - Show all checks (including passing and skipped ones)
24
+ - `--verbose` - Show all checks (including passing and skipped ones) in the human block
25
+ - `--format <yaml|json|text>` - How the report is rendered on stdout (default `yaml`)
25
26
 
26
27
  **Check outcomes:**
27
28
 
28
- | Icon | Outcome | Meaning |
29
- |------|---------|---------|
30
- | ✅ | `pass` | The check ran and the thing is fine |
31
- | ❌ | `fail` | The check ran and the thing is wrong — the only outcome that affects the exit code |
32
- | ❓ | `undetermined` | The check could not reach an answer (registry unreachable, file unreadable). **Nothing was verified** — this is not a pass |
33
- | ⏭️ | `skipped` | The check does not apply here (e.g. a VAT-source-tree-only check outside the source tree) |
29
+ | Icon | Outcome | Finding | Meaning |
30
+ |------|---------|---------|---------|
31
+ | ✅ | `pass` | none | The check ran and the thing is fine |
32
+ | ❌ | `fail` | `DOCTOR_CHECK_FAILED` (error) | The check ran and the thing is wrong — the only outcome that affects the exit code |
33
+ | ❓ | `undetermined` | `DOCTOR_CHECK_WARNED` (warning) | The check could not reach an answer (registry unreachable, file unreadable). **Nothing was verified** — this is not a pass |
34
+ | ⏭️ | `skipped` | none | The check does not apply here (e.g. a VAT-source-tree-only check outside the source tree) |
34
35
 
35
36
  **Exit Codes:**
36
- - `0` - No check failed (an undetermined check is reported in the output, not fatal)
37
+ - `0` - No check failed (an undetermined check is a warning finding, not fatal)
37
38
  - `1` - One or more checks failed
38
- - `2` - Doctor itself could not run (an internal failure, an unknown flag); no verdict was produced
39
+ - `2` - Doctor itself could not run (an internal failure); the report's `error` says why and no verdict was produced
39
40
 
40
- **Output:** Human-friendly formatted text with emojis. The summary always prints the
41
- full outcome distribution and, when the concise view hides checks, how many it hid —
42
- so the counts can never contradict the list above them.
41
+ **Output:** The report envelope on stdout — `status`, `summary`, `examined` (the checks
42
+ run), one finding per failed or undetermined check, and `data`:
43
+
44
+ - `currentDir` — the working directory doctor ran from
45
+ - `projectRoot` / `configPath` — found from `currentDir`, or `null`
46
+ - `checks[]` — every check that ran, in order: `name`, `outcome`, `message`, and
47
+ `suggestion` when the check has one
48
+
49
+ The human block below goes to **stderr** under `--format yaml|json`. Under
50
+ `--format text` it is the stdout rendering instead, printed once and listing every
51
+ check. Its summary always prints the full outcome distribution and, when the
52
+ concise view hides checks, how many it hid — so the counts can never contradict
53
+ the list above them.
43
54
 
44
55
  ## Usage Examples
45
56
 
@@ -97,7 +108,7 @@ Running diagnostic checks...
97
108
  Current: 0.1.0 — up to date
98
109
 
99
110
  ✅ Node.js version
100
- v22.13.0 (meets requirement: >=22.13.0)
111
+ v22.16.0 (meets requirement: >=22.16.0)
101
112
 
102
113
  ✅ Git installed
103
114
  git version 2.43.0
@@ -153,7 +164,7 @@ When checks fail, doctor provides specific suggestions:
153
164
 
154
165
  ```
155
166
  ❌ Node.js version
156
- v22.4.0 does not satisfy the required range. Node.js >=22.13.0 required.
167
+ v22.4.0 does not satisfy the required range. Node.js >=22.16.0 required.
157
168
  💡 Install a Node.js version in that range: https://nodejs.org/ or use nvm
158
169
  ```
159
170
 
@@ -234,7 +245,8 @@ vat doctor --verbose
234
245
 
235
246
  ### CI/CD Integration
236
247
 
237
- Use exit codes for automated checks:
248
+ Use exit codes for automated checks, or read the report (`vat doctor --format json`
249
+ and `jq '.data.checks[] | select(.outcome != "pass")'`):
238
250
 
239
251
  ```bash
240
252
  if vat doctor; then
@@ -249,7 +261,7 @@ fi
249
261
 
250
262
  ### Node.js Version Check
251
263
 
252
- - **Requirement:** Node.js >=22.13.0, read at runtime from the CLI's `engines.node` so this check cannot drift behind the floor. Checked against `process.version` — the interpreter running VAT — not against a spawned `node` from `PATH`, which differs under any version manager.
264
+ - **Requirement:** Node.js >=22.16.0, read at runtime from the CLI's `engines.node` so this check cannot drift behind the floor. Checked against `process.version` — the interpreter running VAT — not against a spawned `node` from `PATH`, which differs under any version manager.
253
265
  - **Why:** VAT uses modern JavaScript features
254
266
  - **Fix:** Install Node.js from https://nodejs.org/ or use nvm
255
267
 
@@ -314,5 +326,39 @@ for terminology.
314
326
  - Run `vat doctor` before reporting issues to verify environment
315
327
  - Use `--verbose` flag when debugging to see all check details
316
328
  - Doctor checks can be run from any subdirectory in your project
317
- - Exit code 0 means no check *failed*; read the counts line to see whether any
318
- check was undetermined (useful for scripts)
329
+ - Exit code 0 means no check *failed*; read the report's `summary.warnings` (or the
330
+ counts line) to see whether any check was undetermined
331
+
332
+ ## Example reports
333
+
334
+ Each block below is a real document from the built CLI, trimmed where noted; `packages/cli/test/integration/tagged-report-examples.integration.test.ts` validates every `vat-report=<verb>` block against that verb's registered schema.
335
+
336
+ ### `doctor`
337
+
338
+ Cut to the three checks that do not name a tool version. Produced by `vat doctor`.
339
+
340
+ ```yaml vat-report=doctor
341
+ status: ok
342
+ examined: 8
343
+ findings: []
344
+ summary:
345
+ errors: 0
346
+ warnings: 0
347
+ info: 0
348
+ gate:
349
+ strict: false
350
+ data:
351
+ currentDir: /work/project
352
+ projectRoot: /work/project
353
+ configPath: /work/project/vibe-agent-toolkit.config.yaml
354
+ checks:
355
+ - name: Git repository
356
+ outcome: pass
357
+ message: Current directory is a git repository
358
+ - name: Configuration file
359
+ outcome: pass
360
+ message: "Found: /work/project/vibe-agent-toolkit.config.yaml"
361
+ - name: Configuration valid
362
+ outcome: pass
363
+ message: Configuration is valid (no collections defined)
364
+ ```