@vibe-agent-toolkit/cli 0.2.0-rc.6 → 0.2.0-rc.8

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 (422) hide show
  1. package/README.md +4 -5
  2. package/dist/bin/vat +34 -19
  3. package/dist/bin/vat.js +34 -19
  4. package/dist/bin/vat.js.map +1 -1
  5. package/dist/bin.js +44 -158
  6. package/dist/bin.js.map +1 -1
  7. package/dist/command-loaders.d.ts +2 -2
  8. package/dist/command-loaders.d.ts.map +1 -1
  9. package/dist/command-loaders.js +4 -2
  10. package/dist/command-loaders.js.map +1 -1
  11. package/dist/commands/agent/build.d.ts.map +1 -1
  12. package/dist/commands/agent/build.js +2 -1
  13. package/dist/commands/agent/build.js.map +1 -1
  14. package/dist/commands/agent/import.d.ts.map +1 -1
  15. package/dist/commands/agent/import.js +3 -2
  16. package/dist/commands/agent/import.js.map +1 -1
  17. package/dist/commands/agent/install-path.d.ts +36 -0
  18. package/dist/commands/agent/install-path.d.ts.map +1 -0
  19. package/dist/commands/agent/install-path.js +44 -0
  20. package/dist/commands/agent/install-path.js.map +1 -0
  21. package/dist/commands/agent/install.d.ts.map +1 -1
  22. package/dist/commands/agent/install.js +22 -10
  23. package/dist/commands/agent/install.js.map +1 -1
  24. package/dist/commands/agent/installed.d.ts.map +1 -1
  25. package/dist/commands/agent/installed.js +22 -12
  26. package/dist/commands/agent/installed.js.map +1 -1
  27. package/dist/commands/agent/list.d.ts.map +1 -1
  28. package/dist/commands/agent/list.js +2 -1
  29. package/dist/commands/agent/list.js.map +1 -1
  30. package/dist/commands/agent/run.d.ts.map +1 -1
  31. package/dist/commands/agent/run.js +2 -1
  32. package/dist/commands/agent/run.js.map +1 -1
  33. package/dist/commands/agent/uninstall.d.ts.map +1 -1
  34. package/dist/commands/agent/uninstall.js +13 -6
  35. package/dist/commands/agent/uninstall.js.map +1 -1
  36. package/dist/commands/agent/validate.d.ts.map +1 -1
  37. package/dist/commands/agent/validate.js +3 -2
  38. package/dist/commands/agent/validate.js.map +1 -1
  39. package/dist/commands/ard/emit.d.ts +153 -0
  40. package/dist/commands/ard/emit.d.ts.map +1 -0
  41. package/dist/commands/ard/emit.js +276 -0
  42. package/dist/commands/ard/emit.js.map +1 -0
  43. package/dist/commands/ard/index.d.ts +12 -0
  44. package/dist/commands/ard/index.d.ts.map +1 -0
  45. package/dist/commands/ard/index.js +80 -0
  46. package/dist/commands/ard/index.js.map +1 -0
  47. package/dist/commands/ard/surfaces.d.ts +56 -0
  48. package/dist/commands/ard/surfaces.d.ts.map +1 -0
  49. package/dist/commands/ard/surfaces.js +150 -0
  50. package/dist/commands/ard/surfaces.js.map +1 -0
  51. package/dist/commands/audit/distributed-tree.d.ts.map +1 -1
  52. package/dist/commands/audit/distributed-tree.js +9 -6
  53. package/dist/commands/audit/distributed-tree.js.map +1 -1
  54. package/dist/commands/audit/scan-population.d.ts +158 -0
  55. package/dist/commands/audit/scan-population.d.ts.map +1 -0
  56. package/dist/commands/audit/scan-population.js +292 -0
  57. package/dist/commands/audit/scan-population.js.map +1 -0
  58. package/dist/commands/audit-settings.d.ts.map +1 -1
  59. package/dist/commands/audit-settings.js +6 -5
  60. package/dist/commands/audit-settings.js.map +1 -1
  61. package/dist/commands/audit.d.ts +78 -9
  62. package/dist/commands/audit.d.ts.map +1 -1
  63. package/dist/commands/audit.js +853 -473
  64. package/dist/commands/audit.js.map +1 -1
  65. package/dist/commands/build.d.ts.map +1 -1
  66. package/dist/commands/build.js +24 -24
  67. package/dist/commands/build.js.map +1 -1
  68. package/dist/commands/cache/clear.d.ts.map +1 -1
  69. package/dist/commands/cache/clear.js +17 -10
  70. package/dist/commands/cache/clear.js.map +1 -1
  71. package/dist/commands/claude/budget.d.ts +136 -24
  72. package/dist/commands/claude/budget.d.ts.map +1 -1
  73. package/dist/commands/claude/budget.js +152 -57
  74. package/dist/commands/claude/budget.js.map +1 -1
  75. package/dist/commands/claude/context.d.ts.map +1 -1
  76. package/dist/commands/claude/context.js +4 -3
  77. package/dist/commands/claude/context.js.map +1 -1
  78. package/dist/commands/claude/marketplace/changelog-utils.d.ts +1 -1
  79. package/dist/commands/claude/marketplace/changelog-utils.d.ts.map +1 -1
  80. package/dist/commands/claude/marketplace/changelog-utils.js +1 -2
  81. package/dist/commands/claude/marketplace/changelog-utils.js.map +1 -1
  82. package/dist/commands/claude/marketplace/git-publish.d.ts.map +1 -1
  83. package/dist/commands/claude/marketplace/git-publish.js +3 -2
  84. package/dist/commands/claude/marketplace/git-publish.js.map +1 -1
  85. package/dist/commands/claude/marketplace/license-utils.d.ts.map +1 -1
  86. package/dist/commands/claude/marketplace/license-utils.js +0 -1
  87. package/dist/commands/claude/marketplace/license-utils.js.map +1 -1
  88. package/dist/commands/claude/marketplace/publish-tree.d.ts.map +1 -1
  89. package/dist/commands/claude/marketplace/publish-tree.js +0 -6
  90. package/dist/commands/claude/marketplace/publish-tree.js.map +1 -1
  91. package/dist/commands/claude/marketplace/publish.d.ts.map +1 -1
  92. package/dist/commands/claude/marketplace/publish.js +2 -1
  93. package/dist/commands/claude/marketplace/publish.js.map +1 -1
  94. package/dist/commands/claude/marketplace/validate.d.ts +55 -22
  95. package/dist/commands/claude/marketplace/validate.d.ts.map +1 -1
  96. package/dist/commands/claude/marketplace/validate.js +392 -77
  97. package/dist/commands/claude/marketplace/validate.js.map +1 -1
  98. package/dist/commands/claude/org/api-keys.d.ts +0 -3
  99. package/dist/commands/claude/org/api-keys.d.ts.map +1 -1
  100. package/dist/commands/claude/org/api-keys.js +2 -1
  101. package/dist/commands/claude/org/api-keys.js.map +1 -1
  102. package/dist/commands/claude/org/helpers.d.ts +17 -22
  103. package/dist/commands/claude/org/helpers.d.ts.map +1 -1
  104. package/dist/commands/claude/org/helpers.js +6 -22
  105. package/dist/commands/claude/org/helpers.js.map +1 -1
  106. package/dist/commands/claude/org/invites.d.ts +0 -3
  107. package/dist/commands/claude/org/invites.d.ts.map +1 -1
  108. package/dist/commands/claude/org/invites.js +3 -2
  109. package/dist/commands/claude/org/invites.js.map +1 -1
  110. package/dist/commands/claude/org/skills.d.ts +103 -4
  111. package/dist/commands/claude/org/skills.d.ts.map +1 -1
  112. package/dist/commands/claude/org/skills.js +331 -123
  113. package/dist/commands/claude/org/skills.js.map +1 -1
  114. package/dist/commands/claude/org/users.d.ts +0 -3
  115. package/dist/commands/claude/org/users.d.ts.map +1 -1
  116. package/dist/commands/claude/org/users.js +3 -2
  117. package/dist/commands/claude/org/users.js.map +1 -1
  118. package/dist/commands/claude/org/workspaces.d.ts +0 -3
  119. package/dist/commands/claude/org/workspaces.d.ts.map +1 -1
  120. package/dist/commands/claude/org/workspaces.js +6 -5
  121. package/dist/commands/claude/org/workspaces.js.map +1 -1
  122. package/dist/commands/claude/plugin/build.d.ts +8 -0
  123. package/dist/commands/claude/plugin/build.d.ts.map +1 -1
  124. package/dist/commands/claude/plugin/build.js +28 -33
  125. package/dist/commands/claude/plugin/build.js.map +1 -1
  126. package/dist/commands/claude/plugin/helpers.d.ts.map +1 -1
  127. package/dist/commands/claude/plugin/helpers.js +0 -6
  128. package/dist/commands/claude/plugin/helpers.js.map +1 -1
  129. package/dist/commands/claude/plugin/install.d.ts +12 -0
  130. package/dist/commands/claude/plugin/install.d.ts.map +1 -1
  131. package/dist/commands/claude/plugin/install.js +71 -60
  132. package/dist/commands/claude/plugin/install.js.map +1 -1
  133. package/dist/commands/claude/plugin/list.d.ts.map +1 -1
  134. package/dist/commands/claude/plugin/list.js +3 -2
  135. package/dist/commands/claude/plugin/list.js.map +1 -1
  136. package/dist/commands/claude/plugin/plugin-changelog.d.ts.map +1 -1
  137. package/dist/commands/claude/plugin/plugin-changelog.js +0 -2
  138. package/dist/commands/claude/plugin/plugin-changelog.js.map +1 -1
  139. package/dist/commands/claude/plugin/plugin-files.d.ts.map +1 -1
  140. package/dist/commands/claude/plugin/plugin-files.js +0 -3
  141. package/dist/commands/claude/plugin/plugin-files.js.map +1 -1
  142. package/dist/commands/claude/plugin/plugin-validators.d.ts.map +1 -1
  143. package/dist/commands/claude/plugin/plugin-validators.js +3 -6
  144. package/dist/commands/claude/plugin/plugin-validators.js.map +1 -1
  145. package/dist/commands/claude/plugin/tree-copy.d.ts +73 -0
  146. package/dist/commands/claude/plugin/tree-copy.d.ts.map +1 -1
  147. package/dist/commands/claude/plugin/tree-copy.js +221 -15
  148. package/dist/commands/claude/plugin/tree-copy.js.map +1 -1
  149. package/dist/commands/claude/plugin/uninstall.d.ts.map +1 -1
  150. package/dist/commands/claude/plugin/uninstall.js +4 -4
  151. package/dist/commands/claude/plugin/uninstall.js.map +1 -1
  152. package/dist/commands/consistency-check.d.ts +9 -13
  153. package/dist/commands/consistency-check.d.ts.map +1 -1
  154. package/dist/commands/consistency-check.js +91 -81
  155. package/dist/commands/consistency-check.js.map +1 -1
  156. package/dist/commands/corpus/index.d.ts.map +1 -1
  157. package/dist/commands/corpus/index.js +3 -0
  158. package/dist/commands/corpus/index.js.map +1 -1
  159. package/dist/commands/corpus/report.d.ts +0 -1
  160. package/dist/commands/corpus/report.d.ts.map +1 -1
  161. package/dist/commands/corpus/report.js +1 -3
  162. package/dist/commands/corpus/report.js.map +1 -1
  163. package/dist/commands/corpus/runner.d.ts +58 -1
  164. package/dist/commands/corpus/runner.d.ts.map +1 -1
  165. package/dist/commands/corpus/runner.js +92 -21
  166. package/dist/commands/corpus/runner.js.map +1 -1
  167. package/dist/commands/corpus/scan.d.ts.map +1 -1
  168. package/dist/commands/corpus/scan.js +2 -4
  169. package/dist/commands/corpus/scan.js.map +1 -1
  170. package/dist/commands/corpus/seed.d.ts +4 -4
  171. package/dist/commands/corpus/seed.d.ts.map +1 -1
  172. package/dist/commands/corpus/seed.js +1 -3
  173. package/dist/commands/corpus/seed.js.map +1 -1
  174. package/dist/commands/doctor.d.ts +14 -0
  175. package/dist/commands/doctor.d.ts.map +1 -1
  176. package/dist/commands/doctor.js +147 -51
  177. package/dist/commands/doctor.js.map +1 -1
  178. package/dist/commands/inventory.d.ts.map +1 -1
  179. package/dist/commands/inventory.js +6 -7
  180. package/dist/commands/inventory.js.map +1 -1
  181. package/dist/commands/mcp/list-collections.d.ts.map +1 -1
  182. package/dist/commands/mcp/list-collections.js +2 -1
  183. package/dist/commands/mcp/list-collections.js.map +1 -1
  184. package/dist/commands/mcp/serve.d.ts.map +1 -1
  185. package/dist/commands/mcp/serve.js +3 -2
  186. package/dist/commands/mcp/serve.js.map +1 -1
  187. package/dist/commands/okf/index.d.ts +11 -0
  188. package/dist/commands/okf/index.d.ts.map +1 -0
  189. package/dist/commands/okf/index.js +114 -0
  190. package/dist/commands/okf/index.js.map +1 -0
  191. package/dist/commands/okf/validate.d.ts +191 -0
  192. package/dist/commands/okf/validate.d.ts.map +1 -0
  193. package/dist/commands/okf/validate.js +190 -0
  194. package/dist/commands/okf/validate.js.map +1 -0
  195. package/dist/commands/phase-utils.d.ts +30 -13
  196. package/dist/commands/phase-utils.d.ts.map +1 -1
  197. package/dist/commands/phase-utils.js +56 -19
  198. package/dist/commands/phase-utils.js.map +1 -1
  199. package/dist/commands/positional-args.d.ts.map +1 -1
  200. package/dist/commands/positional-args.js +2 -1
  201. package/dist/commands/positional-args.js.map +1 -1
  202. package/dist/commands/rag/clear-command.d.ts.map +1 -1
  203. package/dist/commands/rag/clear-command.js +2 -1
  204. package/dist/commands/rag/clear-command.js.map +1 -1
  205. package/dist/commands/rag/index-command.d.ts +27 -2
  206. package/dist/commands/rag/index-command.d.ts.map +1 -1
  207. package/dist/commands/rag/index-command.js +48 -8
  208. package/dist/commands/rag/index-command.js.map +1 -1
  209. package/dist/commands/rag/index.d.ts.map +1 -1
  210. package/dist/commands/rag/index.js +2 -0
  211. package/dist/commands/rag/index.js.map +1 -1
  212. package/dist/commands/rag/query-command.d.ts.map +1 -1
  213. package/dist/commands/rag/query-command.js +2 -1
  214. package/dist/commands/rag/query-command.js.map +1 -1
  215. package/dist/commands/rag/stats-command.d.ts.map +1 -1
  216. package/dist/commands/rag/stats-command.js +2 -1
  217. package/dist/commands/rag/stats-command.js.map +1 -1
  218. package/dist/commands/resources/check-progress.d.ts +3 -0
  219. package/dist/commands/resources/check-progress.d.ts.map +1 -1
  220. package/dist/commands/resources/check-progress.js +11 -2
  221. package/dist/commands/resources/check-progress.js.map +1 -1
  222. package/dist/commands/resources/check-supervisor.d.ts.map +1 -1
  223. package/dist/commands/resources/check-supervisor.js +14 -7
  224. package/dist/commands/resources/check-supervisor.js.map +1 -1
  225. package/dist/commands/resources/check.d.ts +168 -8
  226. package/dist/commands/resources/check.d.ts.map +1 -1
  227. package/dist/commands/resources/check.js +222 -118
  228. package/dist/commands/resources/check.js.map +1 -1
  229. package/dist/commands/resources/index.d.ts.map +1 -1
  230. package/dist/commands/resources/index.js +64 -29
  231. package/dist/commands/resources/index.js.map +1 -1
  232. package/dist/commands/resources/query.d.ts +18 -1
  233. package/dist/commands/resources/query.d.ts.map +1 -1
  234. package/dist/commands/resources/query.js +33 -12
  235. package/dist/commands/resources/query.js.map +1 -1
  236. package/dist/commands/resources/scan.d.ts.map +1 -1
  237. package/dist/commands/resources/scan.js +4 -8
  238. package/dist/commands/resources/scan.js.map +1 -1
  239. package/dist/commands/resources/validate.d.ts +30 -1
  240. package/dist/commands/resources/validate.d.ts.map +1 -1
  241. package/dist/commands/resources/validate.js +116 -14
  242. package/dist/commands/resources/validate.js.map +1 -1
  243. package/dist/commands/skill/review-checklist.d.ts +3 -2
  244. package/dist/commands/skill/review-checklist.d.ts.map +1 -1
  245. package/dist/commands/skill/review-checklist.js +4 -2
  246. package/dist/commands/skill/review-checklist.js.map +1 -1
  247. package/dist/commands/skill/review.d.ts +247 -0
  248. package/dist/commands/skill/review.d.ts.map +1 -1
  249. package/dist/commands/skill/review.js +98 -61
  250. package/dist/commands/skill/review.js.map +1 -1
  251. package/dist/commands/skill/test/configure.d.ts.map +1 -1
  252. package/dist/commands/skill/test/configure.js +0 -1
  253. package/dist/commands/skill/test/configure.js.map +1 -1
  254. package/dist/commands/skill/test/run.d.ts +12 -6
  255. package/dist/commands/skill/test/run.d.ts.map +1 -1
  256. package/dist/commands/skill/test/run.js +137 -67
  257. package/dist/commands/skill/test/run.js.map +1 -1
  258. package/dist/commands/skills/build.d.ts +69 -2
  259. package/dist/commands/skills/build.d.ts.map +1 -1
  260. package/dist/commands/skills/build.js +128 -42
  261. package/dist/commands/skills/build.js.map +1 -1
  262. package/dist/commands/skills/install.d.ts +2 -1
  263. package/dist/commands/skills/install.d.ts.map +1 -1
  264. package/dist/commands/skills/install.js +20 -30
  265. package/dist/commands/skills/install.js.map +1 -1
  266. package/dist/commands/skills/list.d.ts +2 -1
  267. package/dist/commands/skills/list.d.ts.map +1 -1
  268. package/dist/commands/skills/list.js +44 -26
  269. package/dist/commands/skills/list.js.map +1 -1
  270. package/dist/commands/skills/package.d.ts +1 -1
  271. package/dist/commands/skills/package.d.ts.map +1 -1
  272. package/dist/commands/skills/package.js +6 -8
  273. package/dist/commands/skills/package.js.map +1 -1
  274. package/dist/commands/skills/scope-guard.d.ts.map +1 -1
  275. package/dist/commands/skills/scope-guard.js +2 -4
  276. package/dist/commands/skills/scope-guard.js.map +1 -1
  277. package/dist/commands/skills/shared.d.ts.map +1 -1
  278. package/dist/commands/skills/shared.js +2 -4
  279. package/dist/commands/skills/shared.js.map +1 -1
  280. package/dist/commands/skills/skill-discovery.d.ts +40 -1
  281. package/dist/commands/skills/skill-discovery.d.ts.map +1 -1
  282. package/dist/commands/skills/skill-discovery.js +32 -4
  283. package/dist/commands/skills/skill-discovery.js.map +1 -1
  284. package/dist/commands/skills/source-resolvers.d.ts +15 -0
  285. package/dist/commands/skills/source-resolvers.d.ts.map +1 -1
  286. package/dist/commands/skills/source-resolvers.js +25 -4
  287. package/dist/commands/skills/source-resolvers.js.map +1 -1
  288. package/dist/commands/skills/validate-command.d.ts.map +1 -1
  289. package/dist/commands/skills/validate-command.js +11 -3
  290. package/dist/commands/skills/validate-command.js.map +1 -1
  291. package/dist/commands/skills/validate.d.ts +66 -7
  292. package/dist/commands/skills/validate.d.ts.map +1 -1
  293. package/dist/commands/skills/validate.js +133 -29
  294. package/dist/commands/skills/validate.js.map +1 -1
  295. package/dist/commands/validate.d.ts +1 -1
  296. package/dist/commands/validate.js +8 -6
  297. package/dist/commands/validate.js.map +1 -1
  298. package/dist/commands/verify.d.ts +102 -5
  299. package/dist/commands/verify.d.ts.map +1 -1
  300. package/dist/commands/verify.js +246 -69
  301. package/dist/commands/verify.js.map +1 -1
  302. package/dist/index.d.ts +0 -1
  303. package/dist/index.d.ts.map +1 -1
  304. package/dist/index.js +5 -1
  305. package/dist/index.js.map +1 -1
  306. package/dist/report-schemas.d.ts +45 -0
  307. package/dist/report-schemas.d.ts.map +1 -0
  308. package/dist/report-schemas.js +102 -0
  309. package/dist/report-schemas.js.map +1 -0
  310. package/dist/skill-resolution/packaging-config.d.ts +49 -5
  311. package/dist/skill-resolution/packaging-config.d.ts.map +1 -1
  312. package/dist/skill-resolution/packaging-config.js +59 -19
  313. package/dist/skill-resolution/packaging-config.js.map +1 -1
  314. package/dist/skill-resolution/resolve-skill-reference.d.ts.map +1 -1
  315. package/dist/skill-resolution/resolve-skill-reference.js +8 -6
  316. package/dist/skill-resolution/resolve-skill-reference.js.map +1 -1
  317. package/dist/utils/agent-discovery.d.ts.map +1 -1
  318. package/dist/utils/agent-discovery.js +22 -11
  319. package/dist/utils/agent-discovery.js.map +1 -1
  320. package/dist/utils/agent-runner.d.ts.map +1 -1
  321. package/dist/utils/agent-runner.js +0 -1
  322. package/dist/utils/agent-runner.js.map +1 -1
  323. package/dist/utils/command-error.d.ts +87 -55
  324. package/dist/utils/command-error.d.ts.map +1 -1
  325. package/dist/utils/command-error.js +113 -64
  326. package/dist/utils/command-error.js.map +1 -1
  327. package/dist/utils/config-loader.d.ts +2 -1
  328. package/dist/utils/config-loader.d.ts.map +1 -1
  329. package/dist/utils/config-loader.js +3 -6
  330. package/dist/utils/config-loader.js.map +1 -1
  331. package/dist/utils/context-budget-issues.d.ts +1 -1
  332. package/dist/utils/context-budget-issues.js +1 -1
  333. package/dist/utils/corpus-target.d.ts +5 -27
  334. package/dist/utils/corpus-target.d.ts.map +1 -1
  335. package/dist/utils/corpus-target.js +7 -33
  336. package/dist/utils/corpus-target.js.map +1 -1
  337. package/dist/utils/edge-lens-evaluation.d.ts +83 -0
  338. package/dist/utils/edge-lens-evaluation.d.ts.map +1 -0
  339. package/dist/utils/edge-lens-evaluation.js +110 -0
  340. package/dist/utils/edge-lens-evaluation.js.map +1 -0
  341. package/dist/utils/help-loader.d.ts.map +1 -1
  342. package/dist/utils/help-loader.js +0 -1
  343. package/dist/utils/help-loader.js.map +1 -1
  344. package/dist/utils/issue-rendering.d.ts +2 -2
  345. package/dist/utils/issue-rendering.js +2 -2
  346. package/dist/utils/optional-backend.d.ts +5 -4
  347. package/dist/utils/optional-backend.d.ts.map +1 -1
  348. package/dist/utils/optional-backend.js +7 -5
  349. package/dist/utils/optional-backend.js.map +1 -1
  350. package/dist/utils/output.d.ts +9 -0
  351. package/dist/utils/output.d.ts.map +1 -1
  352. package/dist/utils/output.js +16 -0
  353. package/dist/utils/output.js.map +1 -1
  354. package/dist/utils/package-json.d.ts +24 -0
  355. package/dist/utils/package-json.d.ts.map +1 -0
  356. package/dist/utils/package-json.js +49 -0
  357. package/dist/utils/package-json.js.map +1 -0
  358. package/dist/utils/project-root-policy.d.ts +20 -0
  359. package/dist/utils/project-root-policy.d.ts.map +1 -1
  360. package/dist/utils/project-root-policy.js +30 -0
  361. package/dist/utils/project-root-policy.js.map +1 -1
  362. package/dist/utils/projection-query.d.ts +41 -4
  363. package/dist/utils/projection-query.d.ts.map +1 -1
  364. package/dist/utils/projection-query.js +44 -10
  365. package/dist/utils/projection-query.js.map +1 -1
  366. package/dist/utils/projection-store.d.ts +41 -15
  367. package/dist/utils/projection-store.d.ts.map +1 -1
  368. package/dist/utils/projection-store.js +65 -18
  369. package/dist/utils/projection-store.js.map +1 -1
  370. package/dist/utils/repeatable-option.d.ts +37 -0
  371. package/dist/utils/repeatable-option.d.ts.map +1 -0
  372. package/dist/utils/repeatable-option.js +39 -0
  373. package/dist/utils/repeatable-option.js.map +1 -0
  374. package/dist/utils/resource-loader.d.ts +4 -3
  375. package/dist/utils/resource-loader.d.ts.map +1 -1
  376. package/dist/utils/resource-loader.js +63 -32
  377. package/dist/utils/resource-loader.js.map +1 -1
  378. package/dist/utils/root-argv.d.ts +53 -0
  379. package/dist/utils/root-argv.d.ts.map +1 -0
  380. package/dist/utils/root-argv.js +215 -0
  381. package/dist/utils/root-argv.js.map +1 -0
  382. package/dist/utils/run-integrity.d.ts +95 -0
  383. package/dist/utils/run-integrity.d.ts.map +1 -0
  384. package/dist/utils/run-integrity.js +102 -0
  385. package/dist/utils/run-integrity.js.map +1 -0
  386. package/dist/utils/skill-packaging-config.d.ts +27 -0
  387. package/dist/utils/skill-packaging-config.d.ts.map +1 -1
  388. package/dist/utils/skill-packaging-config.js +30 -0
  389. package/dist/utils/skill-packaging-config.js.map +1 -1
  390. package/dist/utils/sqlite-experimental-warning.d.ts +69 -0
  391. package/dist/utils/sqlite-experimental-warning.d.ts.map +1 -0
  392. package/dist/utils/sqlite-experimental-warning.js +144 -0
  393. package/dist/utils/sqlite-experimental-warning.js.map +1 -0
  394. package/dist/utils/url-redact.d.ts.map +1 -1
  395. package/dist/utils/url-redact.js +4 -6
  396. package/dist/utils/url-redact.js.map +1 -1
  397. package/dist/utils/user-context-scanner.d.ts +8 -0
  398. package/dist/utils/user-context-scanner.d.ts.map +1 -1
  399. package/dist/utils/user-context-scanner.js +4 -2
  400. package/dist/utils/user-context-scanner.js.map +1 -1
  401. package/dist/utils/validate-help-files.d.ts.map +1 -1
  402. package/dist/utils/validate-help-files.js +12 -6
  403. package/dist/utils/validate-help-files.js.map +1 -1
  404. package/dist/utils/vat-bin-path.d.ts.map +1 -1
  405. package/dist/utils/vat-bin-path.js +0 -1
  406. package/dist/utils/vat-bin-path.js.map +1 -1
  407. package/dist/version.d.ts.map +1 -1
  408. package/dist/version.js +1 -3
  409. package/dist/version.js.map +1 -1
  410. package/docs/audit.md +141 -37
  411. package/docs/doctor.md +7 -6
  412. package/docs/index.md +19 -11
  413. package/docs/rag.md +3 -2
  414. package/docs/resources.md +5 -2
  415. package/docs/skill-test.md +10 -9
  416. package/docs/skills.md +53 -69
  417. package/package.json +24 -29
  418. package/schemas/ard-emit.json +149 -0
  419. package/schemas/claude-budget.json +197 -0
  420. package/schemas/okf-validate.json +170 -0
  421. package/schemas/resources-check.json +186 -0
  422. package/schemas/skill-review.json +230 -0
@@ -2,6 +2,7 @@
2
2
  * Resources command group
3
3
  */
4
4
  import { Command, Option } from 'commander';
5
+ import { collectRepeated } from '../../utils/repeatable-option.js';
5
6
  import { checkCommand } from './check.js';
6
7
  import { queryCommand } from './query.js';
7
8
  import { scanCommand } from './scan.js';
@@ -83,7 +84,10 @@ Examples:
83
84
  .command('query <sql> [path]')
84
85
  .description('Run one read-only SQL statement against the resource projection')
85
86
  .option('--debug', DEBUG_HELP)
86
- .option('--param <values...>', 'Values bound in order to the ? placeholders in the statement')
87
+ // Repeatable, NOT variadic: a variadic option consumes every token up to the
88
+ // next flag, which on this command means the [path] positional. See
89
+ // collectRepeated for the incident.
90
+ .option('--param <value>', 'A value bound to the next ? placeholder in the statement (repeatable, bound in the order given)', collectRepeated)
87
91
  .addOption(yamlOrJsonFormat())
88
92
  .action(queryCommand)
89
93
  .addHelpText('after', `
@@ -143,8 +147,19 @@ Output Fields:
143
147
  0/1, a date and a JSON column as text. Values are NOT decoded,
144
148
  because decoding needs a table spec and arbitrary SQL has none
145
149
 
150
+ Path Argument:
151
+ [path] says where to LOOK FOR the project -- root discovery walks up from
152
+ it -- and never narrows the corpus. The projection is always the whole
153
+ tracked tree, so \`vat resources query <sql> docs/\` answers about the same
154
+ tree as \`vat resources query <sql>\` (root in the document names it); a
155
+ WHERE clause on path is the only scope a statement has. This differs from
156
+ scan and validate, whose [path] restricts the crawl. A path that does not
157
+ exist, or is not a directory, is refused (exit 2).
158
+
146
159
  Exit Codes:
147
- 0 - The statement ran | 2 - The statement was refused, or the crawl failed
160
+ 0 - The statement ran
161
+ 2 - The statement was refused (not a query, a second statement, a placeholder
162
+ with no --param behind it), [path] names no directory, or the crawl failed
148
163
 
149
164
  Requirements:
150
165
  projectRoot: optional (falls back to cwd with a warning)
@@ -223,7 +238,11 @@ Checks run over the TRACKED TREE, not your configured resource set:
223
238
  directory. A correct "every ADR carries frontmatter" check produced a real
224
239
  false finding on a frozen historical file nobody intends to fix.
225
240
 
226
- Narrow the check itself -- a WHERE clause is the only scope it has:
241
+ Narrow the check itself -- a WHERE clause is the only scope it has. The
242
+ [path] argument does not narrow it either: it says where to LOOK FOR the
243
+ project (root discovery walks up from it), and a path that does not exist
244
+ or is not a directory is refused at exit 2 rather than resolved to
245
+ whatever project the current directory is in.
227
246
 
228
247
  sql: |
229
248
  SELECT path FROM resource_realizations
@@ -233,10 +252,16 @@ Checks run over the TRACKED TREE, not your configured resource set:
233
252
  A check with NOTHING TO RUN OVER fails the same way:
234
253
  Zero findings is the pass condition, so a run whose projection enumerated no
235
254
  members passed every check while asserting nothing. If checks ran and
236
- membersEnumerated is 0, that is reported as RESOURCE_CHECK_BROKEN at error
237
- and the run fails. Usual causes: a broad .gitignore pattern, a shallow or
255
+ \`examined\` is 0, that is reported as RESOURCE_CHECK_BROKEN at error and the
256
+ run fails. Usual causes: a broad .gitignore pattern, a shallow or
238
257
  sparse CI checkout, or a root that resolved somewhere other than intended.
239
- Declaring no checks at all is different -- that stays a warning and exit 0.
258
+
259
+ A run with NO CHECKS AT ALL fails too:
260
+ Declaring none is reported the same way and for a stronger reason: a gate
261
+ that checked nothing produces the same document as a gate that was deleted,
262
+ so \`data.checksRun: 0\` is RESOURCE_CHECK_BROKEN at error and exit 1. If this
263
+ project deliberately has no checks, take the command out of the pipeline
264
+ rather than leaving a step that can only pass.
240
265
 
241
266
  A run that HANGS is killed and reported, not waited on:
242
267
  A check's SQL is adopter-authored and unbounded -- an accidental cross join
@@ -294,37 +319,42 @@ A run that HANGS is killed and reported, not waited on:
294
319
  handler -- do not add one, a process blocked in synchronous SQLite survives
295
320
  SIGINT once a handler exists.
296
321
 
297
- Output Fields:
298
- status, root, population, populationSecs, checksRun, membersEnumerated,
299
- issueCounts, durationSecs, checks
300
- checksRun: How many checks ran. Read it: no findings from four checks and no
322
+ Output Fields (the shared report envelope; schema: packages/cli/schemas/resources-check.json):
323
+ status: ok | findings | error -- a literal statement about \`findings\`
324
+ examined: How many members the projection enumerated -- the corpus the
325
+ checks ran AGAINST, where data.checksRun is how many rules ran.
326
+ Four checks over 8,000 files and four over 0 are otherwise the
327
+ same document, and only one of them is a gate. It counts the
328
+ TRACKED TREE and not your configured resource set, so it is
329
+ legitimately far larger than scan's filesScanned -- see above
330
+ findings: One row per violation ({code, severity, message, location?})
331
+ summary: {errors, warnings, info} over findings; exit 1 iff errors > 0
332
+ durationMs: wall time of the whole run
333
+ data.checksRun:
334
+ How many checks ran. Read it: no findings from four checks and no
301
335
  findings from NO checks are otherwise the same document
302
- membersEnumerated:
303
- How many members the projection enumerated -- the corpus the
304
- checks ran AGAINST, where checksRun is how many rules ran. Four
305
- checks over 8,000 files and four over 0 are otherwise the same
306
- document, and only one of them is a gate. It counts the TRACKED
307
- TREE and not your configured resource set, so it is legitimately
308
- far larger than scan's filesScanned -- see the section above
309
- checks: What each check COST -- {name, durationSecs, rows} per check, or
336
+ data.checks:
337
+ What each check COST -- {name, durationSecs, rows} per check, or
310
338
  {name, durationSecs, broken} for one whose statement threw. rows
311
339
  is what the statement SELECTED, and it is a memory signal: rows
312
340
  are fully materialised. It is not a finding count -- a severity
313
341
  override of 'ignore' drops findings the statement still selected,
314
- so sum(rows) and issueCounts legitimately disagree
315
- populationSecs:
316
- What the shared population cost. It is NOT charged to any check:
317
- every check's durationSecs is its own statement and nothing else,
318
- so this is the term that reconciles them against durationSecs
319
- issues: One row per violation ({code, severity, message, path?})
342
+ so sum(rows) and summary legitimately disagree
343
+ data.populationSecs, data.lensSecs, data.population, data.root:
344
+ What the shared population cost, and where it came from. NOT
345
+ charged to any check: every check's durationSecs is its own
346
+ statement and nothing else, so populationSecs is the term that
347
+ reconciles them against durationMs
320
348
 
321
349
  Exit Codes:
322
350
  0 - No error-severity findings
323
- 1 - At least one (a violation, a broken check, an empty corpus, a run killed
324
- for making no progress within --budget, or a run whose child DIED)
325
- 2 - System error, an unknown --check name, an unusable --budget (an empty
326
- one, one that means zero without being written 0, or one passed with
327
- --cost-log), or a run interrupted before its population completed
351
+ 1 - At least one (a violation, a broken check, an empty corpus, no check
352
+ having run at all, a run killed for making no progress within --budget,
353
+ or a run whose child DIED)
354
+ 2 - System error, an unknown --check name, a [path] that names no directory,
355
+ an unusable --budget (an empty one, one that means zero without being
356
+ written 0, or one passed with --cost-log), or a run interrupted before
357
+ its population completed
328
358
 
329
359
  Examples:
330
360
  $ vat resources check
@@ -406,6 +436,11 @@ Output Fields (issues found):
406
436
  and a file that emitted nothing has no row — filesScanned above stays
407
437
  the true denominator.
408
438
 
439
+ filesScanned: 0 is never a pass. A run that scanned no file (a --collection
440
+ that matched nothing, a path with no markdown, an enumeration emptied by
441
+ exclude or a sparse checkout) is reported as RESOURCE_CHECK_BROKEN at error
442
+ and exits 1 — the document is not a verdict, and the code is not overridable.
443
+
409
444
  Verbosity:
410
445
  -v, --verbose
411
446
  Replaces each file's counts row with its per-issue detail (line, column,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/resources/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6KL,CACI,CAAC;IAEJ,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC"}
@@ -80,8 +80,25 @@ export declare function buildProjectionQueryOutputData(input: ProjectionQueryPay
80
80
  /**
81
81
  * Run one read-only SQL statement against this tree's resource projection.
82
82
  *
83
+ * ## 🔑 `[path]` LOCATES the project. It never narrows the corpus.
84
+ *
85
+ * `vat resources scan docs/` scopes its crawl to `docs/`; this verb cannot offer
86
+ * the same, and says so rather than pretending. The projection is the whole
87
+ * tracked tree by construction — one population per `(root, treeHash)`, and a
88
+ * subtree population would be filed in the shared store under the whole tree's
89
+ * key, which is the cross-tree class `utils/projection-query.ts` documents —
90
+ * and arbitrary SQL cannot be post-filtered by path (blobs carry none). So the
91
+ * argument is where root discovery STARTS, the answer is about the tree it
92
+ * finds, and `root` in the document names that tree. A `WHERE path LIKE …` is
93
+ * the only scope a statement has, exactly as `vat resources check` documents.
94
+ *
95
+ * 🚨 Which is why a locator that locates nothing has to be refused: `nope`
96
+ * walked up to the cwd's project and answered about the whole tree at exit 0,
97
+ * byte-identical to a correct run. `assertDirectoryArgument` is the same refusal
98
+ * `validate` gives, in the same words.
99
+ *
83
100
  * @param sql - The statement
84
- * @param pathArg - The corpus root, or omitted for the current directory
101
+ * @param pathArg - Where to look for the project, or omitted for the current directory
85
102
  * @param options - Parsed command-line options
86
103
  */
87
104
  export declare function queryCommand(sql: string, pathArg: string | undefined, options: QueryOptions): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/commands/resources/query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAOH,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,iCAAiC,CAAC;AAEzC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AC/D,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,2BAA2B,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoB1G;AAkCD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,YAAY,CAChC,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,YAAY,GACpB,OAAO,CAAC,IAAI,CAAC,CA4Bf"}
@@ -44,11 +44,12 @@
44
44
  * spec and arbitrary SQL has none. `SqlQueryableStore.query`'s docstring is the
45
45
  * authority on why.
46
46
  */
47
+ import { ExitCode } from '@vibe-agent-toolkit/schema';
47
48
  import { handleCommandError } from '../../utils/command-error.js';
48
49
  import { formatDurationSecs } from '../../utils/duration.js';
49
50
  import { createLogger } from '../../utils/logger.js';
50
- import { writeJsonOutput, writeYamlOutput } from '../../utils/output.js';
51
- import { projectRootOrLoudCwd } from '../../utils/project-root-policy.js';
51
+ import { writeStructuredOutput } from '../../utils/output.js';
52
+ import { assertDirectoryArgument, projectRootOrLoudCwd } from '../../utils/project-root-policy.js';
52
53
  import { withQueriedProjection, } from '../../utils/projection-query.js';
53
54
  /**
54
55
  * Build the query payload.
@@ -76,6 +77,11 @@ export function buildProjectionQueryOutputData(input) {
76
77
  // or derived, and what that was worth. Separated they read as two unrelated
77
78
  // numbers in a list.
78
79
  populationSecs: formatDurationSecs(input.populationMs),
80
+ // Beside the population it is NOT part of. The lens is evaluated on every
81
+ // run whether or not the statement mentions `edges`, and a store hit does
82
+ // not make it cheaper, so folding it into `populationSecs` would read as
83
+ // the store having got worse. See `ProjectionProvenance.lensMs`.
84
+ lensSecs: formatDurationSecs(input.lensMs),
79
85
  rowCount: input.rows.length,
80
86
  durationSecs: formatDurationSecs(input.durationMs),
81
87
  rows: input.rows,
@@ -100,8 +106,9 @@ export function buildProjectionQueryOutputData(input) {
100
106
  async function runProjectionQuery(options) {
101
107
  const { root, sql, parameters, logger } = options;
102
108
  // The statement is compiled against the empty schema first, so a typo'd
103
- // column costs milliseconds instead of a full population.
104
- return withQueriedProjection({ root, logger, preflight: [sql] }, (ask, provenance) => ({
109
+ // column — or a `?` with no `--param` behind it — costs milliseconds instead
110
+ // of a full population.
111
+ return withQueriedProjection({ root, logger, preflight: [{ sql, parameters }] }, (ask, provenance) => ({
105
112
  rows: ask(sql, ...parameters),
106
113
  ...provenance,
107
114
  }));
@@ -109,14 +116,33 @@ async function runProjectionQuery(options) {
109
116
  /**
110
117
  * Run one read-only SQL statement against this tree's resource projection.
111
118
  *
119
+ * ## 🔑 `[path]` LOCATES the project. It never narrows the corpus.
120
+ *
121
+ * `vat resources scan docs/` scopes its crawl to `docs/`; this verb cannot offer
122
+ * the same, and says so rather than pretending. The projection is the whole
123
+ * tracked tree by construction — one population per `(root, treeHash)`, and a
124
+ * subtree population would be filed in the shared store under the whole tree's
125
+ * key, which is the cross-tree class `utils/projection-query.ts` documents —
126
+ * and arbitrary SQL cannot be post-filtered by path (blobs carry none). So the
127
+ * argument is where root discovery STARTS, the answer is about the tree it
128
+ * finds, and `root` in the document names that tree. A `WHERE path LIKE …` is
129
+ * the only scope a statement has, exactly as `vat resources check` documents.
130
+ *
131
+ * 🚨 Which is why a locator that locates nothing has to be refused: `nope`
132
+ * walked up to the cwd's project and answered about the whole tree at exit 0,
133
+ * byte-identical to a correct run. `assertDirectoryArgument` is the same refusal
134
+ * `validate` gives, in the same words.
135
+ *
112
136
  * @param sql - The statement
113
- * @param pathArg - The corpus root, or omitted for the current directory
137
+ * @param pathArg - Where to look for the project, or omitted for the current directory
114
138
  * @param options - Parsed command-line options
115
139
  */
116
140
  export async function queryCommand(sql, pathArg, options) {
117
141
  const logger = createLogger({ debug: options.debug ?? false });
118
142
  const startTime = Date.now();
119
143
  try {
144
+ if (pathArg !== undefined)
145
+ assertDirectoryArgument(pathArg);
120
146
  // Resolved at the CLI boundary, like every other command — the loud-cwd
121
147
  // policy is where root discovery belongs.
122
148
  const projectRoot = projectRootOrLoudCwd(pathArg ?? process.cwd(), logger);
@@ -131,13 +157,8 @@ export async function queryCommand(sql, pathArg, options) {
131
157
  root: projectRoot,
132
158
  durationMs: Date.now() - startTime,
133
159
  });
134
- if (options.format === 'json') {
135
- writeJsonOutput(payload);
136
- }
137
- else {
138
- writeYamlOutput(payload);
139
- }
140
- process.exit(0);
160
+ writeStructuredOutput(payload, options.format);
161
+ process.exit(ExitCode.OK);
141
162
  }
142
163
  catch (error) {
143
164
  handleCommandError(error, logger, startTime, 'Query', options.format);
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/commands/resources/query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAe,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EACL,qBAAqB,GAEtB,MAAM,iCAAiC,CAAC;AAqBzC;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,8BAA8B,CAAC,KAAkC;IAC/E,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,2DAA2D;QAC3D,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,mCAAmC;QACnC,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,0EAA0E;QAC1E,4EAA4E;QAC5E,qBAAqB;QACrB,cAAc,EAAE,kBAAkB,CAAC,KAAK,CAAC,YAAY,CAAC;QACtD,QAAQ,EA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,EAAE,GAAG,SAAS,CAAA;CAAE,CAAC;AAE5E;;;;;;GAMG;AACH,UAAU,YAAY;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,SAAS,OAAO,EAAE,CAAC;IAC1B,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,SAAS,YAAY,EAAE,CAAC;IACnC,0EAA0E;IAC1E,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;;OAQG;IACH,IAAI,EAAE,iBAAiB,CAAC;IACxB;;;;;;;;OAQG;IACH,YAAY,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,SAAS,CAAC;IACnE,OAAO,EAAE,OAAO,CAAC;CAClB;AAaD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA0BpF;AAED,wBAAsB,WAAW,CAC/B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,IAAI,CAAC,CAqDf"}
@@ -1,10 +1,11 @@
1
1
  /**
2
2
  * Resources scan command - discover markdown resources
3
3
  */
4
+ import { ExitCode } from '@vibe-agent-toolkit/schema';
4
5
  import { handleCommandError } from '../../utils/command-error.js';
5
6
  import { formatDurationSecs } from '../../utils/duration.js';
6
7
  import { createLogger } from '../../utils/logger.js';
7
- import { writeJsonOutput, writeYamlOutput } from '../../utils/output.js';
8
+ import { writeStructuredOutput } from '../../utils/output.js';
8
9
  import { projectRootOrLoudCwd } from '../../utils/project-root-policy.js';
9
10
  import { relativizePathEntries } from '../../utils/relativize-paths.js';
10
11
  import { loadResourcesWithConfig } from '../../utils/resource-loader.js';
@@ -93,13 +94,8 @@ export async function scanCommand(pathArg, options) {
93
94
  collections: collectionsOutput,
94
95
  verbose: options.verbose ?? false,
95
96
  });
96
- if (options.format === 'json') {
97
- writeJsonOutput(payload);
98
- }
99
- else {
100
- writeYamlOutput(payload);
101
- }
102
- process.exit(0);
97
+ writeStructuredOutput(payload, options.format);
98
+ process.exit(ExitCode.OK);
103
99
  }
104
100
  catch (error) {
105
101
  handleCommandError(error, logger, startTime, 'Scan', options.format);
@@ -1 +1 @@
1
- {"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/commands/resources/scan.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAA0B,MAAM,gCAAgC,CAAC;AAwDjG,6DAA6D;AAC7D,SAAS,aAAa,CAAC,QAAwC;IAC7D,IAAI,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC5B,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC/B,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,KAAK,IAAI,aAAa,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAuB;IACzD,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,YA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33
33
  code: string;
34
- severity: string;
34
+ severity: IssueSeverity;
35
35
  message: string;
36
36
  }>;
37
37
  }
@@ -119,6 +119,13 @@ interface ValidationContext {
119
119
  validationMetadata: Pick<ValidationOutputData, 'validationMode' | 'frontmatterSchema'>;
120
120
  collectionStats: CollectionStats | undefined;
121
121
  duration: number;
122
+ /**
123
+ * The `--collection` filter, when one was passed. Carried so the
124
+ * run-integrity refusal can name the filter that matched nothing — the builder
125
+ * asks the denominator, not the config, but the MESSAGE should say what the
126
+ * operator most likely typed wrong.
127
+ */
128
+ collection?: string;
122
129
  }
123
130
  /** The only thing the output layer needs from the registry: collection lookup by ABSOLUTE path. */
124
131
  type RegistryLookup = {
@@ -194,6 +201,28 @@ export declare function computeDeferredArtifacts(config: ProjectConfig | undefin
194
201
  * process this replaces and so was free either way.
195
202
  */
196
203
  export declare function runResourcesValidatePhase(pathArg: string | undefined, options: ValidateOptions): Promise<PhaseOutcome>;
204
+ /**
205
+ * The exit code for a run, from the two verdicts that can each fail it.
206
+ *
207
+ * `hasErrors` is the library's, computed over the WHOLE project before any
208
+ * `--collection` filter, so an error the filter hid from the document still
209
+ * fails the run. The document's `status` is computed over what was REPORTED —
210
+ * which is where the run-integrity refusal lands (see
211
+ * {@link buildValidationDocument}), and it has no counterpart in `hasErrors`
212
+ * because the library never sees the filter. Either alone lets one of those two
213
+ * failures through; the run fails on both.
214
+ */
215
+ export declare function exitCodeForValidateRun(hasErrors: boolean, document: Pick<ValidationOutputData, 'status'>): 0 | 1;
197
216
  export declare function validateCommand(pathArg: string | undefined, options: ValidateOptions): Promise<void>;
217
+ /**
218
+ * THE document this command publishes, for either outcome.
219
+ *
220
+ * Built as a value and rendered separately, because the same document now has
221
+ * two destinations: stdout for a command-line run, and `phases[].report` when
222
+ * `vat validate` or `vat verify` runs this as one of its phases in their own
223
+ * process. Deriving it twice — once to print, once to hand back — is how the two
224
+ * lanes come to disagree about what this command reported.
225
+ */
226
+ export declare function buildValidationDocument(issueData: ErrorData[], context: ValidationContext, registry: RegistryLookup, verbose: boolean): ValidationOutputData;
198
227
  export {};
199
228
  //# sourceMappingURL=validate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/commands/resources/validate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAMH,OAAO,EACL,iBAAiB,EACjB,KAAK,eAAe,EAEpB,KAAK,aAAa,EAClB,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,yBAAyB,EAEzB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACzB,MAAM,4BAA4B,CAAC;AAOpC,OAAO,EAAqB,KAAK,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAM7F,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGrE;;GAEG;AACH,UAAU,wBAAwB;IAChC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAsBD;;;;;;;;;GASG;AACH,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,KAAK,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC,CAAC;CACJ;AAED;;;;;;;;GAQG;AACH,KAAK,gBAAgB,GAAG,mBAAmB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE/D,0FAA0F;AAC1F,KAAK,YAAY,GAAG,UAAU,GAAG,gBAAgB,CAAC;AAElD;;;;GAIG;AACH,KAAK,gBAAgB,GAAG,UA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