@vibe-agent-toolkit/cli 0.2.0-rc.7 → 0.2.0-rc.9

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 (395) hide show
  1. package/README.md +0 -1
  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 +5 -2
  6. package/dist/bin.js.map +1 -1
  7. package/dist/commands/agent/build.d.ts.map +1 -1
  8. package/dist/commands/agent/build.js +2 -1
  9. package/dist/commands/agent/build.js.map +1 -1
  10. package/dist/commands/agent/import.d.ts.map +1 -1
  11. package/dist/commands/agent/import.js +3 -2
  12. package/dist/commands/agent/import.js.map +1 -1
  13. package/dist/commands/agent/install-path.d.ts +36 -0
  14. package/dist/commands/agent/install-path.d.ts.map +1 -0
  15. package/dist/commands/agent/install-path.js +44 -0
  16. package/dist/commands/agent/install-path.js.map +1 -0
  17. package/dist/commands/agent/install.d.ts.map +1 -1
  18. package/dist/commands/agent/install.js +22 -10
  19. package/dist/commands/agent/install.js.map +1 -1
  20. package/dist/commands/agent/installed.d.ts.map +1 -1
  21. package/dist/commands/agent/installed.js +22 -12
  22. package/dist/commands/agent/installed.js.map +1 -1
  23. package/dist/commands/agent/list.d.ts.map +1 -1
  24. package/dist/commands/agent/list.js +2 -1
  25. package/dist/commands/agent/list.js.map +1 -1
  26. package/dist/commands/agent/run.d.ts.map +1 -1
  27. package/dist/commands/agent/run.js +2 -1
  28. package/dist/commands/agent/run.js.map +1 -1
  29. package/dist/commands/agent/uninstall.d.ts.map +1 -1
  30. package/dist/commands/agent/uninstall.js +13 -6
  31. package/dist/commands/agent/uninstall.js.map +1 -1
  32. package/dist/commands/agent/validate.d.ts.map +1 -1
  33. package/dist/commands/agent/validate.js +3 -2
  34. package/dist/commands/agent/validate.js.map +1 -1
  35. package/dist/commands/ard/emit.d.ts +72 -23
  36. package/dist/commands/ard/emit.d.ts.map +1 -1
  37. package/dist/commands/ard/emit.js +109 -56
  38. package/dist/commands/ard/emit.js.map +1 -1
  39. package/dist/commands/ard/index.d.ts +1 -1
  40. package/dist/commands/ard/index.d.ts.map +1 -1
  41. package/dist/commands/ard/index.js +4 -3
  42. package/dist/commands/ard/index.js.map +1 -1
  43. package/dist/commands/audit/distributed-tree.d.ts.map +1 -1
  44. package/dist/commands/audit/distributed-tree.js +9 -6
  45. package/dist/commands/audit/distributed-tree.js.map +1 -1
  46. package/dist/commands/audit/provenance.d.ts.map +1 -1
  47. package/dist/commands/audit/provenance.js +4 -3
  48. package/dist/commands/audit/provenance.js.map +1 -1
  49. package/dist/commands/audit/scan-population.d.ts +158 -0
  50. package/dist/commands/audit/scan-population.d.ts.map +1 -0
  51. package/dist/commands/audit/scan-population.js +292 -0
  52. package/dist/commands/audit/scan-population.js.map +1 -0
  53. package/dist/commands/audit-settings.d.ts.map +1 -1
  54. package/dist/commands/audit-settings.js +6 -5
  55. package/dist/commands/audit-settings.js.map +1 -1
  56. package/dist/commands/audit.d.ts +16 -14
  57. package/dist/commands/audit.d.ts.map +1 -1
  58. package/dist/commands/audit.js +304 -389
  59. package/dist/commands/audit.js.map +1 -1
  60. package/dist/commands/build.d.ts.map +1 -1
  61. package/dist/commands/build.js +25 -24
  62. package/dist/commands/build.js.map +1 -1
  63. package/dist/commands/cache/clear.d.ts +17 -3
  64. package/dist/commands/cache/clear.d.ts.map +1 -1
  65. package/dist/commands/cache/clear.js +34 -13
  66. package/dist/commands/cache/clear.js.map +1 -1
  67. package/dist/commands/cache/index.d.ts.map +1 -1
  68. package/dist/commands/cache/index.js +19 -10
  69. package/dist/commands/cache/index.js.map +1 -1
  70. package/dist/commands/claude/context.d.ts +2 -2
  71. package/dist/commands/claude/context.d.ts.map +1 -1
  72. package/dist/commands/claude/context.js +7 -6
  73. package/dist/commands/claude/context.js.map +1 -1
  74. package/dist/commands/claude/index.d.ts +12 -11
  75. package/dist/commands/claude/index.d.ts.map +1 -1
  76. package/dist/commands/claude/index.js +14 -16
  77. package/dist/commands/claude/index.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 +22 -12
  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.map +1 -1
  95. package/dist/commands/claude/marketplace/validate.js +26 -16
  96. package/dist/commands/claude/marketplace/validate.js.map +1 -1
  97. package/dist/commands/claude/org/api-keys.d.ts +0 -3
  98. package/dist/commands/claude/org/api-keys.d.ts.map +1 -1
  99. package/dist/commands/claude/org/api-keys.js +2 -1
  100. package/dist/commands/claude/org/api-keys.js.map +1 -1
  101. package/dist/commands/claude/org/helpers.d.ts +17 -22
  102. package/dist/commands/claude/org/helpers.d.ts.map +1 -1
  103. package/dist/commands/claude/org/helpers.js +6 -22
  104. package/dist/commands/claude/org/helpers.js.map +1 -1
  105. package/dist/commands/claude/org/invites.d.ts +0 -3
  106. package/dist/commands/claude/org/invites.d.ts.map +1 -1
  107. package/dist/commands/claude/org/invites.js +3 -2
  108. package/dist/commands/claude/org/invites.js.map +1 -1
  109. package/dist/commands/claude/org/skills.d.ts +19 -1
  110. package/dist/commands/claude/org/skills.d.ts.map +1 -1
  111. package/dist/commands/claude/org/skills.js +147 -111
  112. package/dist/commands/claude/org/skills.js.map +1 -1
  113. package/dist/commands/claude/org/users.d.ts +0 -3
  114. package/dist/commands/claude/org/users.d.ts.map +1 -1
  115. package/dist/commands/claude/org/users.js +3 -2
  116. package/dist/commands/claude/org/users.js.map +1 -1
  117. package/dist/commands/claude/org/workspaces.d.ts +0 -3
  118. package/dist/commands/claude/org/workspaces.d.ts.map +1 -1
  119. package/dist/commands/claude/org/workspaces.js +6 -5
  120. package/dist/commands/claude/org/workspaces.js.map +1 -1
  121. package/dist/commands/claude/plugin/build.d.ts.map +1 -1
  122. package/dist/commands/claude/plugin/build.js +23 -52
  123. package/dist/commands/claude/plugin/build.js.map +1 -1
  124. package/dist/commands/claude/plugin/helpers.d.ts.map +1 -1
  125. package/dist/commands/claude/plugin/helpers.js +0 -6
  126. package/dist/commands/claude/plugin/helpers.js.map +1 -1
  127. package/dist/commands/claude/plugin/install.d.ts +12 -0
  128. package/dist/commands/claude/plugin/install.d.ts.map +1 -1
  129. package/dist/commands/claude/plugin/install.js +71 -60
  130. package/dist/commands/claude/plugin/install.js.map +1 -1
  131. package/dist/commands/claude/plugin/list.d.ts.map +1 -1
  132. package/dist/commands/claude/plugin/list.js +3 -2
  133. package/dist/commands/claude/plugin/list.js.map +1 -1
  134. package/dist/commands/claude/plugin/plugin-changelog.d.ts.map +1 -1
  135. package/dist/commands/claude/plugin/plugin-changelog.js +0 -2
  136. package/dist/commands/claude/plugin/plugin-changelog.js.map +1 -1
  137. package/dist/commands/claude/plugin/plugin-files.d.ts.map +1 -1
  138. package/dist/commands/claude/plugin/plugin-files.js +3 -6
  139. package/dist/commands/claude/plugin/plugin-files.js.map +1 -1
  140. package/dist/commands/claude/plugin/plugin-validators.d.ts.map +1 -1
  141. package/dist/commands/claude/plugin/plugin-validators.js +3 -6
  142. package/dist/commands/claude/plugin/plugin-validators.js.map +1 -1
  143. package/dist/commands/claude/plugin/tree-copy.d.ts +2 -1
  144. package/dist/commands/claude/plugin/tree-copy.d.ts.map +1 -1
  145. package/dist/commands/claude/plugin/tree-copy.js +15 -14
  146. package/dist/commands/claude/plugin/tree-copy.js.map +1 -1
  147. package/dist/commands/claude/plugin/uninstall.d.ts.map +1 -1
  148. package/dist/commands/claude/plugin/uninstall.js +4 -4
  149. package/dist/commands/claude/plugin/uninstall.js.map +1 -1
  150. package/dist/commands/consistency-check.d.ts +17 -15
  151. package/dist/commands/consistency-check.d.ts.map +1 -1
  152. package/dist/commands/consistency-check.js +149 -104
  153. package/dist/commands/consistency-check.js.map +1 -1
  154. package/dist/commands/corpus/report.d.ts.map +1 -1
  155. package/dist/commands/corpus/report.js +1 -2
  156. package/dist/commands/corpus/report.js.map +1 -1
  157. package/dist/commands/corpus/runner.d.ts.map +1 -1
  158. package/dist/commands/corpus/runner.js +2 -6
  159. package/dist/commands/corpus/runner.js.map +1 -1
  160. package/dist/commands/corpus/scan.d.ts.map +1 -1
  161. package/dist/commands/corpus/scan.js +2 -3
  162. package/dist/commands/corpus/scan.js.map +1 -1
  163. package/dist/commands/corpus/seed.d.ts +4 -4
  164. package/dist/commands/corpus/seed.d.ts.map +1 -1
  165. package/dist/commands/corpus/seed.js +1 -3
  166. package/dist/commands/corpus/seed.js.map +1 -1
  167. package/dist/commands/doctor.d.ts.map +1 -1
  168. package/dist/commands/doctor.js +55 -37
  169. package/dist/commands/doctor.js.map +1 -1
  170. package/dist/commands/inventory.d.ts.map +1 -1
  171. package/dist/commands/inventory.js +6 -7
  172. package/dist/commands/inventory.js.map +1 -1
  173. package/dist/commands/mcp/list-collections.d.ts.map +1 -1
  174. package/dist/commands/mcp/list-collections.js +2 -1
  175. package/dist/commands/mcp/list-collections.js.map +1 -1
  176. package/dist/commands/mcp/serve.d.ts.map +1 -1
  177. package/dist/commands/mcp/serve.js +3 -2
  178. package/dist/commands/mcp/serve.js.map +1 -1
  179. package/dist/commands/okf/index.d.ts.map +1 -1
  180. package/dist/commands/okf/index.js +14 -2
  181. package/dist/commands/okf/index.js.map +1 -1
  182. package/dist/commands/okf/validate.d.ts +157 -48
  183. package/dist/commands/okf/validate.d.ts.map +1 -1
  184. package/dist/commands/okf/validate.js +109 -76
  185. package/dist/commands/okf/validate.js.map +1 -1
  186. package/dist/commands/phase-utils.d.ts +11 -10
  187. package/dist/commands/phase-utils.d.ts.map +1 -1
  188. package/dist/commands/phase-utils.js +30 -14
  189. package/dist/commands/phase-utils.js.map +1 -1
  190. package/dist/commands/positional-args.d.ts.map +1 -1
  191. package/dist/commands/positional-args.js +2 -1
  192. package/dist/commands/positional-args.js.map +1 -1
  193. package/dist/commands/rag/clear-command.d.ts.map +1 -1
  194. package/dist/commands/rag/clear-command.js +2 -1
  195. package/dist/commands/rag/clear-command.js.map +1 -1
  196. package/dist/commands/rag/index-command.d.ts.map +1 -1
  197. package/dist/commands/rag/index-command.js +4 -1
  198. package/dist/commands/rag/index-command.js.map +1 -1
  199. package/dist/commands/rag/query-command.d.ts.map +1 -1
  200. package/dist/commands/rag/query-command.js +2 -1
  201. package/dist/commands/rag/query-command.js.map +1 -1
  202. package/dist/commands/rag/stats-command.d.ts.map +1 -1
  203. package/dist/commands/rag/stats-command.js +2 -1
  204. package/dist/commands/rag/stats-command.js.map +1 -1
  205. package/dist/commands/resources/check-progress.d.ts +6 -0
  206. package/dist/commands/resources/check-progress.d.ts.map +1 -1
  207. package/dist/commands/resources/check-progress.js +15 -4
  208. package/dist/commands/resources/check-progress.js.map +1 -1
  209. package/dist/commands/resources/check-supervisor.d.ts.map +1 -1
  210. package/dist/commands/resources/check-supervisor.js +14 -7
  211. package/dist/commands/resources/check-supervisor.js.map +1 -1
  212. package/dist/commands/resources/check.d.ts +315 -205
  213. package/dist/commands/resources/check.d.ts.map +1 -1
  214. package/dist/commands/resources/check.js +368 -327
  215. package/dist/commands/resources/check.js.map +1 -1
  216. package/dist/commands/resources/index.d.ts.map +1 -1
  217. package/dist/commands/resources/index.js +159 -39
  218. package/dist/commands/resources/index.js.map +1 -1
  219. package/dist/commands/resources/query.d.ts +2 -2
  220. package/dist/commands/resources/query.d.ts.map +1 -1
  221. package/dist/commands/resources/query.js +24 -18
  222. package/dist/commands/resources/query.js.map +1 -1
  223. package/dist/commands/resources/scan.d.ts.map +1 -1
  224. package/dist/commands/resources/scan.js +4 -8
  225. package/dist/commands/resources/scan.js.map +1 -1
  226. package/dist/commands/resources/validate.d.ts +1 -1
  227. package/dist/commands/resources/validate.d.ts.map +1 -1
  228. package/dist/commands/resources/validate.js +0 -1
  229. package/dist/commands/resources/validate.js.map +1 -1
  230. package/dist/commands/skill/review-checklist.d.ts +3 -2
  231. package/dist/commands/skill/review-checklist.d.ts.map +1 -1
  232. package/dist/commands/skill/review-checklist.js +4 -2
  233. package/dist/commands/skill/review-checklist.js.map +1 -1
  234. package/dist/commands/skill/review.d.ts +247 -0
  235. package/dist/commands/skill/review.d.ts.map +1 -1
  236. package/dist/commands/skill/review.js +90 -60
  237. package/dist/commands/skill/review.js.map +1 -1
  238. package/dist/commands/skill/test/configure.d.ts.map +1 -1
  239. package/dist/commands/skill/test/configure.js +0 -1
  240. package/dist/commands/skill/test/configure.js.map +1 -1
  241. package/dist/commands/skill/test/run.d.ts +12 -6
  242. package/dist/commands/skill/test/run.d.ts.map +1 -1
  243. package/dist/commands/skill/test/run.js +120 -65
  244. package/dist/commands/skill/test/run.js.map +1 -1
  245. package/dist/commands/skills/build.d.ts +83 -3
  246. package/dist/commands/skills/build.d.ts.map +1 -1
  247. package/dist/commands/skills/build.js +162 -40
  248. package/dist/commands/skills/build.js.map +1 -1
  249. package/dist/commands/skills/install.d.ts +2 -1
  250. package/dist/commands/skills/install.d.ts.map +1 -1
  251. package/dist/commands/skills/install.js +20 -30
  252. package/dist/commands/skills/install.js.map +1 -1
  253. package/dist/commands/skills/list.d.ts.map +1 -1
  254. package/dist/commands/skills/list.js +14 -18
  255. package/dist/commands/skills/list.js.map +1 -1
  256. package/dist/commands/skills/package.d.ts +1 -1
  257. package/dist/commands/skills/package.d.ts.map +1 -1
  258. package/dist/commands/skills/package.js +6 -8
  259. package/dist/commands/skills/package.js.map +1 -1
  260. package/dist/commands/skills/scope-guard.d.ts.map +1 -1
  261. package/dist/commands/skills/scope-guard.js +2 -4
  262. package/dist/commands/skills/scope-guard.js.map +1 -1
  263. package/dist/commands/skills/shared.d.ts.map +1 -1
  264. package/dist/commands/skills/shared.js +2 -4
  265. package/dist/commands/skills/shared.js.map +1 -1
  266. package/dist/commands/skills/skill-discovery.d.ts +15 -13
  267. package/dist/commands/skills/skill-discovery.d.ts.map +1 -1
  268. package/dist/commands/skills/skill-discovery.js +23 -5
  269. package/dist/commands/skills/skill-discovery.js.map +1 -1
  270. package/dist/commands/skills/source-resolvers.d.ts +15 -0
  271. package/dist/commands/skills/source-resolvers.d.ts.map +1 -1
  272. package/dist/commands/skills/source-resolvers.js +25 -4
  273. package/dist/commands/skills/source-resolvers.js.map +1 -1
  274. package/dist/commands/validate.d.ts +1 -1
  275. package/dist/commands/validate.d.ts.map +1 -1
  276. package/dist/commands/validate.js +39 -14
  277. package/dist/commands/validate.js.map +1 -1
  278. package/dist/commands/verify.d.ts +17 -5
  279. package/dist/commands/verify.d.ts.map +1 -1
  280. package/dist/commands/verify.js +161 -104
  281. package/dist/commands/verify.js.map +1 -1
  282. package/dist/index.d.ts +0 -1
  283. package/dist/index.d.ts.map +1 -1
  284. package/dist/index.js +5 -1
  285. package/dist/index.js.map +1 -1
  286. package/dist/report-schemas.d.ts +45 -0
  287. package/dist/report-schemas.d.ts.map +1 -0
  288. package/dist/report-schemas.js +100 -0
  289. package/dist/report-schemas.js.map +1 -0
  290. package/dist/skill-resolution/classify.js +2 -2
  291. package/dist/skill-resolution/classify.js.map +1 -1
  292. package/dist/skill-resolution/resolve-skill-reference.d.ts.map +1 -1
  293. package/dist/skill-resolution/resolve-skill-reference.js +50 -55
  294. package/dist/skill-resolution/resolve-skill-reference.js.map +1 -1
  295. package/dist/utils/agent-discovery.d.ts.map +1 -1
  296. package/dist/utils/agent-discovery.js +22 -11
  297. package/dist/utils/agent-discovery.js.map +1 -1
  298. package/dist/utils/agent-runner.d.ts.map +1 -1
  299. package/dist/utils/agent-runner.js +0 -1
  300. package/dist/utils/agent-runner.js.map +1 -1
  301. package/dist/utils/claude-context-lens.d.ts +34 -0
  302. package/dist/utils/claude-context-lens.d.ts.map +1 -0
  303. package/dist/utils/claude-context-lens.js +39 -0
  304. package/dist/utils/claude-context-lens.js.map +1 -0
  305. package/dist/utils/command-error.d.ts +63 -62
  306. package/dist/utils/command-error.d.ts.map +1 -1
  307. package/dist/utils/command-error.js +80 -76
  308. package/dist/utils/command-error.js.map +1 -1
  309. package/dist/utils/config-loader.d.ts +2 -1
  310. package/dist/utils/config-loader.d.ts.map +1 -1
  311. package/dist/utils/config-loader.js +3 -6
  312. package/dist/utils/config-loader.js.map +1 -1
  313. package/dist/utils/corpus-target.d.ts +5 -27
  314. package/dist/utils/corpus-target.d.ts.map +1 -1
  315. package/dist/utils/corpus-target.js +7 -33
  316. package/dist/utils/corpus-target.js.map +1 -1
  317. package/dist/utils/help-loader.d.ts.map +1 -1
  318. package/dist/utils/help-loader.js +0 -1
  319. package/dist/utils/help-loader.js.map +1 -1
  320. package/dist/utils/issue-rendering.d.ts +2 -2
  321. package/dist/utils/issue-rendering.js +2 -2
  322. package/dist/utils/optional-backend.d.ts.map +1 -1
  323. package/dist/utils/optional-backend.js +2 -1
  324. package/dist/utils/optional-backend.js.map +1 -1
  325. package/dist/utils/output.d.ts +9 -0
  326. package/dist/utils/output.d.ts.map +1 -1
  327. package/dist/utils/output.js +16 -0
  328. package/dist/utils/output.js.map +1 -1
  329. package/dist/utils/package-json.d.ts +24 -0
  330. package/dist/utils/package-json.d.ts.map +1 -0
  331. package/dist/utils/package-json.js +49 -0
  332. package/dist/utils/package-json.js.map +1 -0
  333. package/dist/utils/project-root-policy.d.ts.map +1 -1
  334. package/dist/utils/project-root-policy.js +0 -2
  335. package/dist/utils/project-root-policy.js.map +1 -1
  336. package/dist/utils/projection-lenses.d.ts +98 -0
  337. package/dist/utils/projection-lenses.d.ts.map +1 -0
  338. package/dist/utils/projection-lenses.js +203 -0
  339. package/dist/utils/projection-lenses.js.map +1 -0
  340. package/dist/utils/projection-query.d.ts +38 -14
  341. package/dist/utils/projection-query.d.ts.map +1 -1
  342. package/dist/utils/projection-query.js +78 -17
  343. package/dist/utils/projection-query.js.map +1 -1
  344. package/dist/utils/projection-store.d.ts +61 -42
  345. package/dist/utils/projection-store.d.ts.map +1 -1
  346. package/dist/utils/projection-store.js +155 -59
  347. package/dist/utils/projection-store.js.map +1 -1
  348. package/dist/utils/relation-limits.d.ts +50 -0
  349. package/dist/utils/relation-limits.d.ts.map +1 -0
  350. package/dist/utils/relation-limits.js +50 -0
  351. package/dist/utils/relation-limits.js.map +1 -0
  352. package/dist/utils/resource-loader.js +2 -2
  353. package/dist/utils/resource-loader.js.map +1 -1
  354. package/dist/utils/skill-discovery.d.ts.map +1 -1
  355. package/dist/utils/skill-discovery.js +2 -1
  356. package/dist/utils/skill-discovery.js.map +1 -1
  357. package/dist/utils/skill-packaging-config.d.ts +63 -1
  358. package/dist/utils/skill-packaging-config.d.ts.map +1 -1
  359. package/dist/utils/skill-packaging-config.js +56 -1
  360. package/dist/utils/skill-packaging-config.js.map +1 -1
  361. package/dist/utils/url-redact.d.ts.map +1 -1
  362. package/dist/utils/url-redact.js +4 -6
  363. package/dist/utils/url-redact.js.map +1 -1
  364. package/dist/utils/user-context-scanner.d.ts.map +1 -1
  365. package/dist/utils/user-context-scanner.js +0 -2
  366. package/dist/utils/user-context-scanner.js.map +1 -1
  367. package/dist/utils/validate-help-files.d.ts.map +1 -1
  368. package/dist/utils/validate-help-files.js +3 -4
  369. package/dist/utils/validate-help-files.js.map +1 -1
  370. package/dist/utils/vat-bin-path.d.ts.map +1 -1
  371. package/dist/utils/vat-bin-path.js +0 -1
  372. package/dist/utils/vat-bin-path.js.map +1 -1
  373. package/dist/version.d.ts.map +1 -1
  374. package/dist/version.js +1 -3
  375. package/dist/version.js.map +1 -1
  376. package/docs/audit.md +44 -53
  377. package/docs/doctor.md +1 -0
  378. package/docs/index.md +18 -10
  379. package/docs/rag.md +0 -1
  380. package/docs/resources.md +0 -1
  381. package/docs/skill-test.md +10 -9
  382. package/docs/skills.md +6 -7
  383. package/package.json +23 -28
  384. package/schemas/ard-emit.json +149 -0
  385. package/schemas/okf-validate.json +170 -0
  386. package/schemas/resources-check.json +229 -0
  387. package/schemas/skill-review.json +230 -0
  388. package/dist/commands/claude/budget.d.ts +0 -170
  389. package/dist/commands/claude/budget.d.ts.map +0 -1
  390. package/dist/commands/claude/budget.js +0 -464
  391. package/dist/commands/claude/budget.js.map +0 -1
  392. package/dist/utils/context-budget-issues.d.ts +0 -108
  393. package/dist/utils/context-budget-issues.d.ts.map +0 -1
  394. package/dist/utils/context-budget-issues.js +0 -280
  395. package/dist/utils/context-budget-issues.js.map +0 -1
@@ -0,0 +1,229 @@
1
+ {
2
+ "$ref": "#/definitions/resources-check",
3
+ "definitions": {
4
+ "resources-check": {
5
+ "type": "object",
6
+ "properties": {
7
+ "status": {
8
+ "type": "string",
9
+ "enum": [
10
+ "ok",
11
+ "findings",
12
+ "error"
13
+ ]
14
+ },
15
+ "examined": {
16
+ "type": "integer",
17
+ "minimum": 0
18
+ },
19
+ "findings": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "code": {
25
+ "type": "string"
26
+ },
27
+ "message": {
28
+ "type": "string"
29
+ },
30
+ "location": {
31
+ "type": "string"
32
+ },
33
+ "line": {
34
+ "type": "integer",
35
+ "exclusiveMinimum": 0
36
+ },
37
+ "field": {
38
+ "type": "string"
39
+ },
40
+ "link": {
41
+ "type": "string"
42
+ },
43
+ "fix": {
44
+ "type": "string"
45
+ },
46
+ "reference": {
47
+ "type": "string"
48
+ },
49
+ "suggestion": {
50
+ "type": "string"
51
+ },
52
+ "severity": {
53
+ "type": "string",
54
+ "enum": [
55
+ "error",
56
+ "warning",
57
+ "info"
58
+ ]
59
+ },
60
+ "column": {
61
+ "type": "integer",
62
+ "exclusiveMinimum": 0
63
+ }
64
+ },
65
+ "required": [
66
+ "code",
67
+ "message",
68
+ "severity"
69
+ ],
70
+ "additionalProperties": false
71
+ }
72
+ },
73
+ "summary": {
74
+ "type": "object",
75
+ "properties": {
76
+ "errors": {
77
+ "type": "integer",
78
+ "minimum": 0
79
+ },
80
+ "warnings": {
81
+ "type": "integer",
82
+ "minimum": 0
83
+ },
84
+ "info": {
85
+ "type": "integer",
86
+ "minimum": 0
87
+ }
88
+ },
89
+ "required": [
90
+ "errors",
91
+ "warnings",
92
+ "info"
93
+ ],
94
+ "additionalProperties": false
95
+ },
96
+ "durationMs": {
97
+ "type": "number",
98
+ "minimum": 0
99
+ },
100
+ "error": {
101
+ "type": "string"
102
+ },
103
+ "data": {
104
+ "anyOf": [
105
+ {
106
+ "type": "object",
107
+ "properties": {
108
+ "root": {
109
+ "type": "string"
110
+ },
111
+ "population": {
112
+ "type": "string",
113
+ "enum": [
114
+ "derived",
115
+ "store"
116
+ ]
117
+ },
118
+ "populationSecs": {
119
+ "type": "number",
120
+ "minimum": 0
121
+ },
122
+ "lensSecs": {
123
+ "type": "number",
124
+ "minimum": 0
125
+ },
126
+ "lensesEvaluated": {
127
+ "type": "array",
128
+ "items": {
129
+ "type": "string"
130
+ }
131
+ },
132
+ "boundsStatement": {
133
+ "type": "string"
134
+ },
135
+ "limits": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "object",
139
+ "properties": {
140
+ "id": {
141
+ "type": "string"
142
+ },
143
+ "direction": {
144
+ "type": "string",
145
+ "enum": [
146
+ "over-report",
147
+ "under-report",
148
+ "scope",
149
+ "assumption"
150
+ ]
151
+ },
152
+ "statement": {
153
+ "type": "string"
154
+ }
155
+ },
156
+ "required": [
157
+ "id",
158
+ "direction",
159
+ "statement"
160
+ ],
161
+ "additionalProperties": false
162
+ }
163
+ },
164
+ "checksRun": {
165
+ "type": "integer",
166
+ "minimum": 0
167
+ },
168
+ "checks": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "object",
172
+ "properties": {
173
+ "name": {
174
+ "type": "string"
175
+ },
176
+ "durationSecs": {
177
+ "type": "number",
178
+ "minimum": 0
179
+ },
180
+ "rows": {
181
+ "type": "integer",
182
+ "minimum": 0
183
+ },
184
+ "broken": {
185
+ "type": "boolean",
186
+ "const": true
187
+ },
188
+ "builtin": {
189
+ "type": "boolean",
190
+ "const": true
191
+ }
192
+ },
193
+ "required": [
194
+ "name",
195
+ "durationSecs"
196
+ ],
197
+ "additionalProperties": false
198
+ }
199
+ }
200
+ },
201
+ "required": [
202
+ "root",
203
+ "population",
204
+ "populationSecs",
205
+ "lensSecs",
206
+ "lensesEvaluated",
207
+ "checksRun",
208
+ "checks"
209
+ ],
210
+ "additionalProperties": false
211
+ },
212
+ {
213
+ "type": "null"
214
+ }
215
+ ]
216
+ }
217
+ },
218
+ "required": [
219
+ "status",
220
+ "examined",
221
+ "findings",
222
+ "summary",
223
+ "data"
224
+ ],
225
+ "additionalProperties": false
226
+ }
227
+ },
228
+ "$schema": "http://json-schema.org/draft-07/schema#"
229
+ }
@@ -0,0 +1,230 @@
1
+ {
2
+ "$ref": "#/definitions/skill-review",
3
+ "definitions": {
4
+ "skill-review": {
5
+ "type": "object",
6
+ "properties": {
7
+ "status": {
8
+ "type": "string",
9
+ "enum": [
10
+ "ok",
11
+ "findings",
12
+ "error"
13
+ ]
14
+ },
15
+ "examined": {
16
+ "type": "integer",
17
+ "minimum": 0
18
+ },
19
+ "findings": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "code": {
25
+ "type": "string"
26
+ },
27
+ "message": {
28
+ "type": "string"
29
+ },
30
+ "location": {
31
+ "type": "string"
32
+ },
33
+ "line": {
34
+ "type": "integer",
35
+ "exclusiveMinimum": 0
36
+ },
37
+ "field": {
38
+ "type": "string"
39
+ },
40
+ "link": {
41
+ "type": "string"
42
+ },
43
+ "fix": {
44
+ "type": "string"
45
+ },
46
+ "reference": {
47
+ "type": "string"
48
+ },
49
+ "suggestion": {
50
+ "type": "string"
51
+ },
52
+ "severity": {
53
+ "type": "string",
54
+ "enum": [
55
+ "error",
56
+ "warning",
57
+ "info"
58
+ ]
59
+ },
60
+ "column": {
61
+ "type": "integer",
62
+ "exclusiveMinimum": 0
63
+ }
64
+ },
65
+ "required": [
66
+ "code",
67
+ "message",
68
+ "severity"
69
+ ],
70
+ "additionalProperties": false
71
+ }
72
+ },
73
+ "summary": {
74
+ "type": "object",
75
+ "properties": {
76
+ "errors": {
77
+ "type": "integer",
78
+ "minimum": 0
79
+ },
80
+ "warnings": {
81
+ "type": "integer",
82
+ "minimum": 0
83
+ },
84
+ "info": {
85
+ "type": "integer",
86
+ "minimum": 0
87
+ }
88
+ },
89
+ "required": [
90
+ "errors",
91
+ "warnings",
92
+ "info"
93
+ ],
94
+ "additionalProperties": false
95
+ },
96
+ "durationMs": {
97
+ "type": "number",
98
+ "minimum": 0
99
+ },
100
+ "error": {
101
+ "type": "string"
102
+ },
103
+ "data": {
104
+ "anyOf": [
105
+ {
106
+ "type": "object",
107
+ "properties": {
108
+ "skill": {
109
+ "type": "string"
110
+ },
111
+ "source": {
112
+ "type": "string"
113
+ },
114
+ "metadata": {
115
+ "type": "object",
116
+ "properties": {
117
+ "skillLines": {
118
+ "type": "integer",
119
+ "minimum": 0
120
+ },
121
+ "totalLines": {
122
+ "type": "integer",
123
+ "minimum": 0
124
+ },
125
+ "fileCount": {
126
+ "type": "integer",
127
+ "minimum": 0
128
+ },
129
+ "directFileCount": {
130
+ "type": "integer",
131
+ "minimum": 0
132
+ },
133
+ "maxLinkDepth": {
134
+ "type": "integer",
135
+ "minimum": 0
136
+ },
137
+ "excludedReferenceCount": {
138
+ "type": "integer",
139
+ "minimum": 0
140
+ },
141
+ "excludedReferences": {
142
+ "type": "array",
143
+ "items": {
144
+ "type": "object",
145
+ "properties": {
146
+ "path": {
147
+ "type": "string"
148
+ },
149
+ "reason": {
150
+ "type": "string"
151
+ },
152
+ "matchedPattern": {
153
+ "type": "string"
154
+ }
155
+ },
156
+ "required": [
157
+ "path",
158
+ "reason"
159
+ ],
160
+ "additionalProperties": false
161
+ }
162
+ }
163
+ },
164
+ "required": [
165
+ "skillLines",
166
+ "totalLines",
167
+ "fileCount",
168
+ "directFileCount",
169
+ "maxLinkDepth",
170
+ "excludedReferenceCount",
171
+ "excludedReferences"
172
+ ],
173
+ "additionalProperties": false
174
+ },
175
+ "sections": {
176
+ "type": "array",
177
+ "items": {
178
+ "type": "object",
179
+ "properties": {
180
+ "section": {
181
+ "type": "string"
182
+ },
183
+ "codes": {
184
+ "type": "array",
185
+ "items": {
186
+ "type": "string"
187
+ }
188
+ },
189
+ "manual": {
190
+ "type": "array",
191
+ "items": {
192
+ "type": "string"
193
+ }
194
+ }
195
+ },
196
+ "required": [
197
+ "section",
198
+ "codes",
199
+ "manual"
200
+ ],
201
+ "additionalProperties": false
202
+ }
203
+ }
204
+ },
205
+ "required": [
206
+ "skill",
207
+ "source",
208
+ "metadata",
209
+ "sections"
210
+ ],
211
+ "additionalProperties": false
212
+ },
213
+ {
214
+ "type": "null"
215
+ }
216
+ ]
217
+ }
218
+ },
219
+ "required": [
220
+ "status",
221
+ "examined",
222
+ "findings",
223
+ "summary",
224
+ "data"
225
+ ],
226
+ "additionalProperties": false
227
+ }
228
+ },
229
+ "$schema": "http://json-schema.org/draft-07/schema#"
230
+ }
@@ -1,170 +0,0 @@
1
- /**
2
- * `vat claude budget [paths...]` — is the always-loaded context at a working
3
- * location over its budget?
4
- *
5
- * ## Why this is a command and not a check inside `vat resources validate`
6
- *
7
- * It used to be one: default-on, with a `--no-context-budget` opt-out. That is
8
- * gone, in both directions — `vat resources validate` has no knowledge of the
9
- * budget at all any more, not a flag, not a default. The ruling behind the move
10
- * is short: *a validation run must not emit findings nobody asked for.* An
11
- * `info` finding attached to a lane people run for link and anchor errors is a
12
- * finding they scroll past, and a check people scroll past is a check they
13
- * eventually silence.
14
- *
15
- * ## The sibling split: `context` QUERIES, `budget` CHECKS
16
- *
17
- * `vat claude context` answers a question and
18
- * never gates — totals, admissions, the declared limits, no verdict, always
19
- * exit 0. This command is the other half of that pair: it applies a THRESHOLD,
20
- * produces findings with severities an adopter can configure, and lets an
21
- * adopter who promotes the code to `error` fail their build with it. Two verbs
22
- * because they are two acts, and folding a verdict into the query would make
23
- * the query's number a number people learn to stop reading.
24
- *
25
- * ## Everything below is orchestration — deliberately
26
- *
27
- * Which directories exist, what each pays, and whether that is over budget are
28
- * all decided in `@vibe-agent-toolkit/resources` (`buildClaudeContextPopulation`
29
- * and `sweepAlwaysLoadedBudgets`); the wording and grouping of the findings in
30
- * `utils/context-budget-issues.ts`; severity resolution in the two shared
31
- * filters every other lane runs. This module populates one tree, calls them in
32
- * order, and renders. It decides nothing about context loading of its own,
33
- * which is the CLI-stays-dumb rule applied to the lane where the temptation is
34
- * strongest.
35
- *
36
- * ⛔ The threshold is never re-spelled here. It is a MEASURED quantity that
37
- * lives beside the detector (`DEFAULT_ALWAYS_LOADED_CONTEXT_TOKENS`), and a
38
- * literal in this package would be a second source of truth that nothing
39
- * compares.
40
- *
41
- * ## The stated bounds ride ONCE on the REPORT, in every format
42
- *
43
- * The sibling query publishes 23 stated limits; this command applies a threshold
44
- * to the same measurement, so it publishes {@link ALWAYS_LOADED_BUDGET_LIMITS}
45
- * and {@link CLAUDE_CONTEXT_BOUNDS_STATEMENT} beside its verdict — the half that
46
- * GATES is the half whose bounds a reader most needs. Both are imported, never
47
- * restated: the sentence is domain content owned beside the list it frames.
48
- *
49
- * ⛔ They belong to the REPORT, never to a finding. A per-finding copy is the
50
- * defect this lane already shipped once on the query side, and it is invisible to
51
- * any assertion that checks presence rather than counting occurrences.
52
- */
53
- import { type BudgetSweep, type StatedLimit } from '@vibe-agent-toolkit/resources';
54
- import { type SeverityCounts, type ValidationIssue } from '@vibe-agent-toolkit/schema';
55
- import { Command } from 'commander';
56
- /** How the report is rendered. `text` is for a person; the other two are for a program. */
57
- export type BudgetOutputFormat = 'text' | 'yaml' | 'json';
58
- /** Flags `vat claude budget` accepts. */
59
- export interface ClaudeBudgetOptions {
60
- format?: BudgetOutputFormat;
61
- debug?: boolean;
62
- }
63
- /**
64
- * The report one run emits.
65
- *
66
- * The three sweep counters ride beside the findings and describe the WHOLE
67
- * tree, not the scope: a scope narrows what is reported, never what was
68
- * measured. Publishing them is what keeps an empty `findings` legible — "9
69
- * chains checked, none over budget" and "nothing was checked" are different
70
- * answers and must not render identically.
71
- */
72
- export interface BudgetReport {
73
- readonly root: string;
74
- /** The budget every chain was measured against, in tokens. */
75
- readonly threshold: number;
76
- /** The root-relative directories asked about. `''` is the whole tree. */
77
- readonly scope: readonly string[];
78
- /** Requested paths that named no working location — see `scopeSweepToPaths`. */
79
- readonly unmatchedScope: readonly string[];
80
- readonly status: 'success' | 'warning' | 'error';
81
- readonly issueCounts: SeverityCounts;
82
- /** Working locations the sweep evaluated, across the whole tree. */
83
- readonly workingLocations: number;
84
- /** Distinct instruction chains among them — the queries the sweep really issued. */
85
- readonly distinctChains: number;
86
- /** Locations whose representative the projection never realized. Counted, never zeroed. */
87
- readonly skippedUnknownLocations: number;
88
- /**
89
- * One finding per over-budget chain — plus, ahead of them, the run-integrity
90
- * refusal when part of what was asked about was never measured. See
91
- * {@link buildReport}: the second kind is DERIVED here rather than passed in,
92
- * so no report can carry an unmatched path and a clean status.
93
- */
94
- readonly findings: readonly ValidationIssue[];
95
- /**
96
- * What this verdict does not settle, in either direction. Stated ONCE.
97
- *
98
- * ⛔ On the report beside `threshold`, never on a finding. These bound the
99
- * MEASUREMENT METHOD, not any one chain — a finding carrying its own copy
100
- * reads as though that chain had caveats of its own, and repeated across a
101
- * sweep it is pure byte-identical duplication.
102
- */
103
- readonly boundsStatement: string;
104
- /** The signed over/under-report bounds on the method. Stated ONCE. */
105
- readonly limits: readonly StatedLimit[];
106
- }
107
- /**
108
- * Create the `vat claude budget [paths...]` command.
109
- *
110
- * @returns The configured Commander command
111
- */
112
- export declare function createBudgetCommand(): Command;
113
- /**
114
- * Action handler for `vat claude budget [paths...]`.
115
- *
116
- * @param pathArgs - Directories to check; empty means the whole tree
117
- * @param options - The command's flags
118
- */
119
- export declare function claudeBudgetCommand(pathArgs: readonly string[], options: ClaudeBudgetOptions): Promise<void>;
120
- /** Everything {@link buildReport} needs, bundled past the lint gate's parameter ceiling. */
121
- export interface ReportInput {
122
- readonly root: string;
123
- readonly threshold: number;
124
- readonly scope: readonly string[];
125
- readonly sweep: BudgetSweep;
126
- readonly scoped: {
127
- readonly unmatchedScope: readonly string[];
128
- };
129
- /** The BUDGET findings only. The run-integrity refusal is derived, not passed. */
130
- readonly findings: readonly ValidationIssue[];
131
- }
132
- /**
133
- * Assemble the report from the run's parts.
134
- *
135
- * ⛔ The counters come from the UNSCOPED sweep. They answer "what was measured",
136
- * and a scope changes only what is reported — sourcing them from the narrowed
137
- * view would let `vat claude budget docs` claim the tree has one chain.
138
- *
139
- * ⛔ This is the ONE place the stated bounds enter the machine-readable output,
140
- * and keeping it a single assignment is what makes "stated once" structural
141
- * rather than a habit: there is no per-finding site left where a copy could be
142
- * reintroduced. They are attached unconditionally — a run that flagged nothing
143
- * used the same method, and a reader acting on "within budget" needs them most.
144
- *
145
- * ⛔ Exported so it can be TESTED. What has to be pinned is a COUNT — that the
146
- * block appears exactly once across a MULTI-finding report — and a presence
147
- * check passes identically with a copy per finding.
148
- *
149
- * ⛔ The run-integrity refusal is DERIVED here from `scoped.unmatchedScope`
150
- * rather than assembled by the caller, which is what makes "a run that checked
151
- * nothing never reports success" unrepresentable instead of merely observed:
152
- * there is no pipeline step left in which a later edit could drop it. See
153
- * {@link nothingCheckedFindings}.
154
- *
155
- * @param input - The run's parts
156
- * @returns The report, ready to serialize
157
- */
158
- export declare function buildReport(input: ReportInput): BudgetReport;
159
- /**
160
- * Render the report for a person.
161
- *
162
- * ⛔ Exported so the "stated once" property can be pinned in TEXT as well as in
163
- * json. The two renderings are separate code paths and this lane has already
164
- * shipped a defect where they disagreed while each looked right alone.
165
- *
166
- * @param report - The report
167
- * @returns The text rendering, newline-terminated
168
- */
169
- export declare function renderReportText(report: BudgetReport): string;
170
- //# sourceMappingURL=budget.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"budget.d.ts","sourceRoot":"","sources":["../../../src/commands/claude/budget.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,OAAO,EAML,KAAK,WAAW,EAChB,KAAK,WAAW,EACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAuB5C,2FAA2F;AAC3F,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAE1D,yCAAyC;AACzC,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,8DAA8D;IAC9D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,yEAAyE;IACzE,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,gFAAgF;IAChF,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,cAAc,CAAC;IACrC,oEAAoE;IACpE,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,oFAAoF;IACpF,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,2FAA2F;IAC3F,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAC;IAC9C;;;;;;;OAOG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,SAAS,WAAW,EAAE,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAuE7C;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,IAAI,CAAC,CAqCf;AAED,4FAA4F;AAC5F,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAA;KAAE,CAAC;IAChE,kFAAkF;IAClF,QAAQ,CAAC,QAAQ,EAAE,SAAS,eAAe,EAAE,CAAC;CAC/C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,YAAY,CAmB5D;AAsID;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAY7D"}