@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
@@ -161,21 +161,22 @@ The suite is never copied into anything the executor can reach. Each eval's decl
161
161
 
162
162
  ## Exit codes
163
163
 
164
- The harness deliberately separates "the evals failed" from "the harness broke", so
165
- CI can tolerate one and gate on the other.
164
+ The same three-way contract as every other `vat` command, so a CI consumer can
165
+ tolerate eval failures while failing closed on a harness that could not run.
166
166
 
167
- - `0` - Run completed, all expectations passed
168
- - `1` - Harness broke (internal error, stall, timeout, grader nonce failure)
169
- - `2` - Preflight failure (bad config, unresolvable required companion, auth guard, `build` hook failed)
170
- - `3` - Bootstrap failure
171
- - `4` - **Eval failure** — the run completed but expectations did not all pass
167
+ - `0` - Run completed, all expectations passed (or `--allow-eval-failure` suppressed a failing verdict)
168
+ - `1` - **Eval failure** — the run completed and produced a valid `grading.json`; expectations did not all pass
169
+ - `2` - The harness could not run. A `Reason: <reason>` line on stderr says why:
170
+ - `internal` — the harness broke (executor/grader crash, stall, timeout, grader nonce failure)
171
+ - `preflight` — the environment or inputs need fixing (bad config, unresolvable required companion, auth guard, missing security ack, `build` hook failed)
172
+ - `bootstrap` — `evals.json` was absent, so VAT wrote a starter template next to the skill source; fill it in and re-run
172
173
 
173
174
  ```bash
174
175
  vat skill test run my-skill --i-understand-this-runs-skill-code
175
176
  case $? in
176
177
  0) ;;
177
- 4) echo "evals failed (tolerated)" ;;
178
- *) exit 1 ;; # harness broke — fail the build
178
+ 1) echo "evals failed (tolerated)" ;;
179
+ *) exit 1 ;; # harness could not run — fail the build; read Reason: on stderr
179
180
  esac
180
181
  ```
181
182
 
package/docs/skills.md CHANGED
@@ -39,7 +39,7 @@ skills:
39
39
  - `paths` is optional on `allow` entries and defaults to `["**/*"]` (the whole skill).
40
40
  - Expired `allow` entries still apply; a separate `ALLOW_EXPIRED` warning surfaces the stale date for re-review. Opt into strict expiry with `severity.ALLOW_EXPIRED: error`.
41
41
  - Unused `allow` entries surface as `ALLOW_UNUSED` (analogous to ESLint's unused-disable).
42
- - `vat audit` is advisory: it applies `severity` for display grouping only, ignores `allow`, and always exits 0.
42
+ - `vat audit` applies `severity` (a code set to `error` gates, `warning` does not, `ignore` hides it) and ignores `allow`; its exit code follows the report's `status`.
43
43
 
44
44
  See `docs/validation-codes.md` for the full code reference with per-code descriptions and defaults.
45
45
 
@@ -159,8 +159,8 @@ discovery rule that this command participates in.
159
159
 
160
160
  **Exit Codes:**
161
161
  - `0` - Build successful (or dry-run preview)
162
- - `1` - Invalid source or build error
163
- - `2` - System error (missing package.json, invalid config)
162
+ - `1` - A skill failed its validation gate, or a shipped link check found an error
163
+ - `2` - The build could not run (missing package.json, invalid config, an unknown flag, an internal failure)
164
164
 
165
165
  **Output Format:**
166
166
  ```yaml
@@ -242,8 +242,8 @@ for terminology.
242
242
 
243
243
  **Exit Codes:**
244
244
  - `0` - Packaging successful (or dry-run preview)
245
- - `1` - Invalid skill path or packaging error
246
- - `2` - System error
245
+ - `1` - The skill failed its validation gate, or its ZIP exceeds the upload size limit
246
+ - `2` - Packaging could not run (skill path not found, an unknown flag, an internal failure)
247
247
 
248
248
  **What Gets Packaged:**
249
249
  - Root SKILL.md file
@@ -364,8 +364,7 @@ any other target lands correctly but is invisible to them.
364
364
 
365
365
  **Exit Codes:**
366
366
  - `0` - Install successful (or dry-run complete)
367
- - `1` - Install error (validation failed, conflict without `--force`, source not found, bad target/scope)
368
- - `2` - System error (unexpected exception)
367
+ - `2` - Install could not proceed: the source was not found or failed validation, the skill is already present and `--force` was not passed, a bad target/scope, an unexpected exception. None of these is a finding about a skill, so none is exit `1`; the message says which.
369
368
 
370
369
  **YAML Output Format:**
371
370
  ```yaml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-agent-toolkit/cli",
3
- "version": "0.2.0-rc.7",
3
+ "version": "0.2.0-rc.9",
4
4
  "description": "Command-line interface for vibe-agent-toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -18,18 +18,20 @@
18
18
  "files": [
19
19
  "dist",
20
20
  "docs",
21
+ "schemas",
21
22
  "README.md",
22
23
  "!dist/pipeline-oracles",
23
24
  "!dist/qa-snapshot"
24
25
  ],
25
26
  "scripts": {
26
- "build": "tsx src/utils/validate-help-files.ts && tsx ../dev-tools/src/tsc-clean-build.ts && tsx ../dev-tools/src/prepare-bin.ts",
27
+ "build": "tsx src/utils/validate-help-files.ts && tsx ../dev-tools/src/tsc-clean-build.ts && bun run generate:schemas && tsx ../dev-tools/src/prepare-bin.ts",
28
+ "generate:schemas": "tsx scripts/generate-json-schemas.ts",
27
29
  "test:unit": "vitest run",
28
30
  "test:watch": "vitest",
29
31
  "test:integration": "vitest run --config vitest.integration.config.ts",
30
32
  "test:system": "vitest run --config vitest.system.config.ts",
31
33
  "typecheck": "tsc --noEmit",
32
- "clean": "rimraf dist *.tsbuildinfo"
34
+ "clean": "rimraf --glob dist \"*.tsbuildinfo\" .tsc-staging"
33
35
  },
34
36
  "keywords": [
35
37
  "cli",
@@ -46,35 +48,28 @@
46
48
  "//dependencies-note": "DO NOT add example agent packages or adopter packages here. Adopter packages (like vat-development-agents) depend on the CLI binary at build time — declaring them as deps creates a circular build dependency. They are built in a second turbo pass via package#task overrides in turbo.json.",
47
49
  "dependencies": {
48
50
  "@anthropic-ai/sdk": "^0.71.2",
49
- "@vibe-agent-toolkit/agent-config": "0.2.0-rc.7",
50
- "@vibe-agent-toolkit/agent-skills": "0.2.0-rc.7",
51
- "@vibe-agent-toolkit/claude-marketplace": "0.2.0-rc.7",
52
- "@vibe-agent-toolkit/discovery": "0.2.0-rc.7",
53
- "@vibe-agent-toolkit/gateway-mcp": "0.2.0-rc.7",
54
- "@vibe-agent-toolkit/projection-sqlite": "0.2.0-rc.7",
55
- "@vibe-agent-toolkit/resources": "0.2.0-rc.7",
56
- "@vibe-agent-toolkit/schema": "0.2.0-rc.7",
57
- "@vibe-agent-toolkit/utils": "0.2.0-rc.7",
58
- "adm-zip": "^0.6.0",
51
+ "@vibe-agent-toolkit/agent-config": "0.2.0-rc.9",
52
+ "@vibe-agent-toolkit/agent-skills": "0.2.0-rc.9",
53
+ "@vibe-agent-toolkit/claude-marketplace": "0.2.0-rc.9",
54
+ "@vibe-agent-toolkit/discovery": "0.2.0-rc.9",
55
+ "@vibe-agent-toolkit/gateway-mcp": "0.2.0-rc.9",
56
+ "@vibe-agent-toolkit/projection-sqlite": "0.2.0-rc.9",
57
+ "@vibe-agent-toolkit/resources": "0.2.0-rc.9",
58
+ "@vibe-agent-toolkit/schema": "0.2.0-rc.9",
59
+ "@vibe-agent-toolkit/utils": "0.2.0-rc.9",
60
+ "adm-zip": "^0.6.1",
59
61
  "commander": "^12.1.0",
60
62
  "picomatch": "^4.0.3",
61
- "semver": "^7.7.3",
63
+ "semver": "^7.8.5",
62
64
  "tar": "^7.5.7",
63
- "yaml": "^2.6.1",
64
- "zod": "^3.24.1"
65
+ "yaml": "^2.9.0",
66
+ "zod": "^3.25.0"
65
67
  },
66
68
  "devDependencies": {
67
- "@types/adm-zip": "^0.5.7",
68
- "@types/node": "^22.10.5",
69
- "@types/picomatch": "^4.0.2",
70
- "@types/semver": "^7.7.1",
71
69
  "@types/tar": "^6.1.13",
72
- "@vibe-agent-toolkit/dev-tools": "0.2.0-rc.7",
73
- "@vibe-agent-toolkit/rag": "0.2.0-rc.7",
74
- "@vibe-agent-toolkit/rag-lancedb": "0.2.0-rc.7",
75
- "rimraf": "^6.0.1",
76
- "typescript": "^5.7.3",
77
- "vitest": "^4.1.11"
70
+ "@vibe-agent-toolkit/dev-tools": "0.2.0-rc.9",
71
+ "@vibe-agent-toolkit/rag": "0.2.0-rc.9",
72
+ "@vibe-agent-toolkit/rag-lancedb": "0.2.0-rc.9"
78
73
  },
79
74
  "publishConfig": {
80
75
  "access": "public"
@@ -85,8 +80,8 @@
85
80
  },
86
81
  "//peerDependencies-note": "The RAG backends are OPTIONAL PEERS, never optionalDependencies. `optionalDependencies` are INSTALLED BY DEFAULT by npm and pnpm alike - 'optional' there means the install may fail without failing the build, not that it is skipped - so declaring them that way shipped ~287 MB unpacked (onnxruntime-web 137.5 MB, a LanceDB platform binary 97.8 MB, gpt-tokenizer 42.2 MB, apache-arrow 5.3 MB, protobufjs 3.0 MB; measured on darwin-arm64 against this release's pins, and the platform binary is larger on win32-x64) to every adopter, contradicting the seam in src/utils/optional-backend.ts that exists precisely to keep them out. Optional peers are NOT auto-installed, so the manifest now says what that module already says: these ship separately, and an absent one is a legible error naming the package to install. projection-sqlite is deliberately NOT in this group: it has zero third-party dependencies (only node:sqlite, which is built into Node) and a 152 KB dist, so the platform-binary argument that justifies the seam is simply false for it. It is also what `vat resources query` builds its ephemeral in-memory store from, and a query surface that works only where a backend was separately installed is the capability gate the projection design forbids.",
87
82
  "peerDependencies": {
88
- "@vibe-agent-toolkit/rag": "0.2.0-rc.7",
89
- "@vibe-agent-toolkit/rag-lancedb": "0.2.0-rc.7"
83
+ "@vibe-agent-toolkit/rag": "0.2.0-rc.9",
84
+ "@vibe-agent-toolkit/rag-lancedb": "0.2.0-rc.9"
90
85
  },
91
86
  "peerDependenciesMeta": {
92
87
  "@vibe-agent-toolkit/rag": {
@@ -0,0 +1,149 @@
1
+ {
2
+ "$ref": "#/definitions/ard-emit",
3
+ "definitions": {
4
+ "ard-emit": {
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
+ "outputPath": {
109
+ "type": "string"
110
+ },
111
+ "entryCount": {
112
+ "type": "integer",
113
+ "minimum": 0
114
+ },
115
+ "skippedCount": {
116
+ "type": "integer",
117
+ "minimum": 0
118
+ },
119
+ "shadowedCount": {
120
+ "type": "integer",
121
+ "minimum": 0
122
+ }
123
+ },
124
+ "required": [
125
+ "outputPath",
126
+ "entryCount",
127
+ "skippedCount",
128
+ "shadowedCount"
129
+ ],
130
+ "additionalProperties": false
131
+ },
132
+ {
133
+ "type": "null"
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ "required": [
139
+ "status",
140
+ "examined",
141
+ "findings",
142
+ "summary",
143
+ "data"
144
+ ],
145
+ "additionalProperties": false
146
+ }
147
+ },
148
+ "$schema": "http://json-schema.org/draft-07/schema#"
149
+ }
@@ -0,0 +1,170 @@
1
+ {
2
+ "$ref": "#/definitions/okf-validate",
3
+ "definitions": {
4
+ "okf-validate": {
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
+ "bundles": {
109
+ "type": "array",
110
+ "items": {
111
+ "type": "object",
112
+ "properties": {
113
+ "bundle": {
114
+ "type": "string"
115
+ },
116
+ "root": {
117
+ "type": "string"
118
+ },
119
+ "conceptDocuments": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ "reservedDocuments": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "string"
129
+ }
130
+ },
131
+ "declaredOkfVersion": {
132
+ "type": "string"
133
+ }
134
+ },
135
+ "required": [
136
+ "bundle",
137
+ "root",
138
+ "conceptDocuments",
139
+ "reservedDocuments"
140
+ ],
141
+ "additionalProperties": false
142
+ }
143
+ },
144
+ "notice": {
145
+ "type": "string"
146
+ }
147
+ },
148
+ "required": [
149
+ "bundles"
150
+ ],
151
+ "additionalProperties": false
152
+ },
153
+ {
154
+ "type": "null"
155
+ }
156
+ ]
157
+ }
158
+ },
159
+ "required": [
160
+ "status",
161
+ "examined",
162
+ "findings",
163
+ "summary",
164
+ "data"
165
+ ],
166
+ "additionalProperties": false
167
+ }
168
+ },
169
+ "$schema": "http://json-schema.org/draft-07/schema#"
170
+ }