@vibe-agent-toolkit/cli 0.1.41-rc.7 → 0.1.41

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 (185) hide show
  1. package/dist/bin/vat +24 -1
  2. package/dist/bin/vat.js +24 -1
  3. package/dist/bin/vat.js.map +1 -1
  4. package/dist/bin.js +23 -2
  5. package/dist/bin.js.map +1 -1
  6. package/dist/commands/agent/list.d.ts +11 -0
  7. package/dist/commands/agent/list.d.ts.map +1 -1
  8. package/dist/commands/agent/list.js +30 -11
  9. package/dist/commands/agent/list.js.map +1 -1
  10. package/dist/commands/audit/distributed-tree.d.ts +172 -0
  11. package/dist/commands/audit/distributed-tree.d.ts.map +1 -0
  12. package/dist/commands/audit/distributed-tree.js +319 -0
  13. package/dist/commands/audit/distributed-tree.js.map +1 -0
  14. package/dist/commands/audit.d.ts +69 -1
  15. package/dist/commands/audit.d.ts.map +1 -1
  16. package/dist/commands/audit.js +525 -174
  17. package/dist/commands/audit.js.map +1 -1
  18. package/dist/commands/build.d.ts +14 -0
  19. package/dist/commands/build.d.ts.map +1 -1
  20. package/dist/commands/build.js +103 -26
  21. package/dist/commands/build.js.map +1 -1
  22. package/dist/commands/claude/marketplace/git-publish.d.ts.map +1 -1
  23. package/dist/commands/claude/marketplace/git-publish.js +21 -3
  24. package/dist/commands/claude/marketplace/git-publish.js.map +1 -1
  25. package/dist/commands/claude/marketplace/validate.d.ts +125 -0
  26. package/dist/commands/claude/marketplace/validate.d.ts.map +1 -1
  27. package/dist/commands/claude/marketplace/validate.js +251 -44
  28. package/dist/commands/claude/marketplace/validate.js.map +1 -1
  29. package/dist/commands/claude/org/stubs.d.ts +9 -1
  30. package/dist/commands/claude/org/stubs.d.ts.map +1 -1
  31. package/dist/commands/claude/org/stubs.js +11 -3
  32. package/dist/commands/claude/org/stubs.js.map +1 -1
  33. package/dist/commands/claude/plugin/build.d.ts +34 -4
  34. package/dist/commands/claude/plugin/build.d.ts.map +1 -1
  35. package/dist/commands/claude/plugin/build.js +187 -16
  36. package/dist/commands/claude/plugin/build.js.map +1 -1
  37. package/dist/commands/claude/plugin/plugin-files.d.ts.map +1 -1
  38. package/dist/commands/claude/plugin/plugin-files.js +6 -2
  39. package/dist/commands/claude/plugin/plugin-files.js.map +1 -1
  40. package/dist/commands/claude/plugin/plugin-json-merge.d.ts.map +1 -1
  41. package/dist/commands/claude/plugin/plugin-json-merge.js +15 -0
  42. package/dist/commands/claude/plugin/plugin-json-merge.js.map +1 -1
  43. package/dist/commands/claude/plugin/tree-copy.d.ts +40 -0
  44. package/dist/commands/claude/plugin/tree-copy.d.ts.map +1 -1
  45. package/dist/commands/claude/plugin/tree-copy.js +100 -4
  46. package/dist/commands/claude/plugin/tree-copy.js.map +1 -1
  47. package/dist/commands/corpus/report.d.ts +22 -4
  48. package/dist/commands/corpus/report.d.ts.map +1 -1
  49. package/dist/commands/corpus/report.js +1 -0
  50. package/dist/commands/corpus/report.js.map +1 -1
  51. package/dist/commands/corpus/runner.d.ts +16 -1
  52. package/dist/commands/corpus/runner.d.ts.map +1 -1
  53. package/dist/commands/corpus/runner.js +40 -22
  54. package/dist/commands/corpus/runner.js.map +1 -1
  55. package/dist/commands/doctor.js +1 -1
  56. package/dist/commands/doctor.js.map +1 -1
  57. package/dist/commands/inventory.d.ts +2 -0
  58. package/dist/commands/inventory.d.ts.map +1 -1
  59. package/dist/commands/inventory.js +45 -4
  60. package/dist/commands/inventory.js.map +1 -1
  61. package/dist/commands/phase-utils.d.ts +183 -14
  62. package/dist/commands/phase-utils.d.ts.map +1 -1
  63. package/dist/commands/phase-utils.js +294 -29
  64. package/dist/commands/phase-utils.js.map +1 -1
  65. package/dist/commands/positional-args.d.ts +36 -0
  66. package/dist/commands/positional-args.d.ts.map +1 -0
  67. package/dist/commands/positional-args.js +52 -0
  68. package/dist/commands/positional-args.js.map +1 -0
  69. package/dist/commands/rag/query-command.d.ts +40 -0
  70. package/dist/commands/rag/query-command.d.ts.map +1 -1
  71. package/dist/commands/rag/query-command.js +47 -20
  72. package/dist/commands/rag/query-command.js.map +1 -1
  73. package/dist/commands/resources/index.d.ts.map +1 -1
  74. package/dist/commands/resources/index.js +27 -9
  75. package/dist/commands/resources/index.js.map +1 -1
  76. package/dist/commands/resources/scan.d.ts +37 -0
  77. package/dist/commands/resources/scan.d.ts.map +1 -1
  78. package/dist/commands/resources/scan.js +47 -32
  79. package/dist/commands/resources/scan.js.map +1 -1
  80. package/dist/commands/resources/validate.d.ts +136 -1
  81. package/dist/commands/resources/validate.d.ts.map +1 -1
  82. package/dist/commands/resources/validate.js +105 -66
  83. package/dist/commands/resources/validate.js.map +1 -1
  84. package/dist/commands/skill/review-checklist.d.ts.map +1 -1
  85. package/dist/commands/skill/review-checklist.js +5 -0
  86. package/dist/commands/skill/review-checklist.js.map +1 -1
  87. package/dist/commands/skill/review.d.ts.map +1 -1
  88. package/dist/commands/skill/review.js +7 -3
  89. package/dist/commands/skill/review.js.map +1 -1
  90. package/dist/commands/skill/test/run.d.ts +1 -1
  91. package/dist/commands/skill/test/run.d.ts.map +1 -1
  92. package/dist/commands/skill/test/run.js +8 -6
  93. package/dist/commands/skill/test/run.js.map +1 -1
  94. package/dist/commands/skills/build.d.ts +349 -11
  95. package/dist/commands/skills/build.d.ts.map +1 -1
  96. package/dist/commands/skills/build.js +901 -97
  97. package/dist/commands/skills/build.js.map +1 -1
  98. package/dist/commands/skills/command-helpers.d.ts +6 -10
  99. package/dist/commands/skills/command-helpers.d.ts.map +1 -1
  100. package/dist/commands/skills/command-helpers.js +6 -22
  101. package/dist/commands/skills/command-helpers.js.map +1 -1
  102. package/dist/commands/skills/list.d.ts +18 -0
  103. package/dist/commands/skills/list.d.ts.map +1 -1
  104. package/dist/commands/skills/list.js +41 -15
  105. package/dist/commands/skills/list.js.map +1 -1
  106. package/dist/commands/skills/package.d.ts +15 -0
  107. package/dist/commands/skills/package.d.ts.map +1 -1
  108. package/dist/commands/skills/package.js +30 -20
  109. package/dist/commands/skills/package.js.map +1 -1
  110. package/dist/commands/skills/scope-guard.d.ts +64 -0
  111. package/dist/commands/skills/scope-guard.d.ts.map +1 -0
  112. package/dist/commands/skills/scope-guard.js +86 -0
  113. package/dist/commands/skills/scope-guard.js.map +1 -0
  114. package/dist/commands/skills/validate-command.d.ts.map +1 -1
  115. package/dist/commands/skills/validate-command.js +41 -7
  116. package/dist/commands/skills/validate-command.js.map +1 -1
  117. package/dist/commands/skills/validate.d.ts +44 -3
  118. package/dist/commands/skills/validate.d.ts.map +1 -1
  119. package/dist/commands/skills/validate.js +217 -53
  120. package/dist/commands/skills/validate.js.map +1 -1
  121. package/dist/commands/validate.d.ts +18 -0
  122. package/dist/commands/validate.d.ts.map +1 -1
  123. package/dist/commands/validate.js +89 -68
  124. package/dist/commands/validate.js.map +1 -1
  125. package/dist/commands/verify.d.ts +113 -6
  126. package/dist/commands/verify.d.ts.map +1 -1
  127. package/dist/commands/verify.js +440 -123
  128. package/dist/commands/verify.js.map +1 -1
  129. package/dist/index.d.ts +1 -1
  130. package/dist/index.d.ts.map +1 -1
  131. package/dist/index.js +7 -1
  132. package/dist/index.js.map +1 -1
  133. package/dist/skill-resolution/index.d.ts +1 -1
  134. package/dist/skill-resolution/index.d.ts.map +1 -1
  135. package/dist/skill-resolution/index.js +1 -1
  136. package/dist/skill-resolution/index.js.map +1 -1
  137. package/dist/skill-resolution/packaging-config.d.ts +15 -2
  138. package/dist/skill-resolution/packaging-config.d.ts.map +1 -1
  139. package/dist/skill-resolution/packaging-config.js +39 -2
  140. package/dist/skill-resolution/packaging-config.js.map +1 -1
  141. package/dist/utils/command-error.d.ts +34 -1
  142. package/dist/utils/command-error.d.ts.map +1 -1
  143. package/dist/utils/command-error.js +32 -1
  144. package/dist/utils/command-error.js.map +1 -1
  145. package/dist/utils/help-loader.d.ts +6 -2
  146. package/dist/utils/help-loader.d.ts.map +1 -1
  147. package/dist/utils/help-loader.js +9 -16
  148. package/dist/utils/help-loader.js.map +1 -1
  149. package/dist/utils/issue-rendering.d.ts +130 -0
  150. package/dist/utils/issue-rendering.d.ts.map +1 -1
  151. package/dist/utils/issue-rendering.js +147 -0
  152. package/dist/utils/issue-rendering.js.map +1 -1
  153. package/dist/utils/issue-severity.d.ts +51 -0
  154. package/dist/utils/issue-severity.d.ts.map +1 -0
  155. package/dist/utils/issue-severity.js +63 -0
  156. package/dist/utils/issue-severity.js.map +1 -0
  157. package/dist/utils/output.d.ts +54 -5
  158. package/dist/utils/output.d.ts.map +1 -1
  159. package/dist/utils/output.js +111 -17
  160. package/dist/utils/output.js.map +1 -1
  161. package/dist/utils/relativize-paths.d.ts +45 -0
  162. package/dist/utils/relativize-paths.d.ts.map +1 -0
  163. package/dist/utils/relativize-paths.js +67 -0
  164. package/dist/utils/relativize-paths.js.map +1 -0
  165. package/dist/utils/resource-loader.d.ts +21 -2
  166. package/dist/utils/resource-loader.d.ts.map +1 -1
  167. package/dist/utils/resource-loader.js +85 -11
  168. package/dist/utils/resource-loader.js.map +1 -1
  169. package/dist/utils/skill-packaging-config.d.ts +22 -1
  170. package/dist/utils/skill-packaging-config.d.ts.map +1 -1
  171. package/dist/utils/skill-packaging-config.js +26 -0
  172. package/dist/utils/skill-packaging-config.js.map +1 -1
  173. package/dist/utils/verdict-helpers.d.ts +4 -3
  174. package/dist/utils/verdict-helpers.d.ts.map +1 -1
  175. package/dist/utils/verdict-helpers.js +6 -13
  176. package/dist/utils/verdict-helpers.js.map +1 -1
  177. package/dist/version.d.ts +22 -2
  178. package/dist/version.d.ts.map +1 -1
  179. package/dist/version.js +31 -2
  180. package/dist/version.js.map +1 -1
  181. package/docs/index.md +12 -0
  182. package/docs/rag.md +9 -4
  183. package/docs/resources.md +30 -14
  184. package/docs/skills.md +25 -7
  185. package/package.json +12 -12
package/docs/resources.md CHANGED
@@ -18,14 +18,19 @@ including link integrity checking and anchor validation.
18
18
  4. Exits 0 always (informational only)
19
19
 
20
20
  **Path Argument:**
21
- - `[path]` specifies the **base directory** to start crawling from
22
- - Recursively finds all `*.md` files under that directory (default pattern: `**/*.md`)
23
- - When path is specified, **config patterns are ignored** (to avoid pattern conflicts)
24
- - To use config patterns, run without path argument: `vat resources scan`
21
+ - `[path]` restricts the scan to that subtree of the project
22
+ - Recursively finds all `*.md` / `*.html` files under that directory
23
+ - The path **replaces** the config's `resources.include` patterns
24
+ - The config's `resources.exclude` patterns **still apply** — a path run never
25
+ scans build output, vendored trees, or test fixtures the project excluded
26
+ - To scan the project's full configured set, run without a path argument:
27
+ `vat resources scan`
25
28
 
26
29
  **Options:**
27
30
  - `[path]` - Base directory to crawl (defaults to current directory)
28
31
  - `--debug` - Enable debug logging
32
+ - `--verbose` - Add a `files:` list with per-file link/anchor counts and checksums
33
+ - `--collection <id>` - Only report files in the named collection (config mode — no path argument)
29
34
 
30
35
  **Exit Codes:**
31
36
  - `0` - Always (scan is informational)
@@ -33,23 +38,28 @@ including link integrity checking and anchor validation.
33
38
 
34
39
  **Output:** YAML on stdout, logs on stderr
35
40
 
41
+ `root` is stated once and is the only absolute path in the document; every
42
+ `path` beneath it is relative to it.
43
+
36
44
  **Example:**
37
45
  ```bash
38
46
  # Recursively scan all *.md files under docs/
39
- vat resources scan docs/
47
+ vat resources scan docs/ --verbose
40
48
  # Equivalent to: find all files matching docs/**/*.md pattern
41
49
 
42
50
  # Output:
43
51
  # ---
44
52
  # status: success
53
+ # root: /home/you/my-project
45
54
  # filesScanned: 12
46
55
  # linksFound: 47
47
56
  # anchorsFound: 23
57
+ # durationSecs: 0.234
48
58
  # files:
49
59
  # - path: docs/README.md
50
60
  # links: 5
51
61
  # anchors: 3
52
- # duration: 234ms
62
+ # checksum: 47dd7b50af765df240fe2514f029fc697c907fc37a3267e22060f2f9f611975c
53
63
  # ---
54
64
  ```
55
65
 
@@ -78,14 +88,21 @@ for the loud-cwd fallback policy and the projectRoot discovery ladder.
78
88
  4. Exits 0 if valid, 1 if errors found
79
89
 
80
90
  **Path Argument:**
81
- - `[path]` specifies the **base directory** to start crawling from
82
- - Recursively finds all `*.md` files under that directory (default pattern: `**/*.md`)
83
- - When path is specified, **config patterns are ignored** (to avoid pattern conflicts)
84
- - To use config patterns, run without path argument: `vat resources validate`
91
+ - `[path]` restricts the scan to that subtree of the project
92
+ - Recursively finds all `*.md` / `*.html` files under that directory
93
+ - The path **replaces** the config's `resources.include` patterns
94
+ - The config's `resources.exclude` patterns **still apply** — a path run never
95
+ scans build output, vendored trees, or test fixtures the project excluded
96
+ - To scan the project's full configured set, run without a path argument:
97
+ `vat resources validate`
85
98
 
86
99
  **Options:**
87
100
  - `[path]` - Base directory to crawl (defaults to current directory)
88
101
  - `--debug` - Enable debug logging
102
+ - `-v, --verbose` - Show all scanned resources, including those without issues. By
103
+ default `issues` carries one counts-only row per file with findings
104
+ (`{file, errors?, warnings?, info?, codes}`); `--verbose` replaces each row with
105
+ its per-issue detail. Every other output field is identical in both modes.
89
106
  - `--no-check-frontmatter-links` - Skip frontmatter URI-reference link validation across all collections (default: enabled)
90
107
 
91
108
  **Exit Codes:**
@@ -108,8 +125,7 @@ vat resources validate docs/
108
125
  # status: success
109
126
  # filesScanned: 12
110
127
  # linksChecked: 47
111
- # anchorsChecked: 23
112
- # duration: 456ms
128
+ # durationSecs: 0.456
113
129
  # ---
114
130
  ```
115
131
 
@@ -123,7 +139,7 @@ vat resources validate docs/
123
139
 
124
140
  # stdout:
125
141
  # ---
126
- # status: failed
142
+ # status: error
127
143
  # errorsFound: 2
128
144
  # filesWithErrors: 2
129
145
  # issueCounts: { errors: 2, warnings: 0, info: 0 }
@@ -136,7 +152,7 @@ vat resources validate docs/
136
152
  # code: LINK_BROKEN_FILE
137
153
  # severity: error
138
154
  # message: Link target not found: ./missing.md
139
- # duration: 456ms
155
+ # durationSecs: 0.456
140
156
  # ---
141
157
  ```
142
158
 
package/docs/skills.md CHANGED
@@ -192,18 +192,32 @@ discovery rule that this command participates in.
192
192
  **Output Format:**
193
193
  ```yaml
194
194
  status: success
195
- package: @my-org/my-package
196
195
  skillsBuilt: 2
197
- skills:
196
+ outputCommitted: true # false ⇒ dist/skills was NOT replaced
197
+ skills: # bundles that exist on disk; empty when outputCommitted is false
198
198
  - name: skill1
199
199
  outputPath: /path/to/dist/skills/skill1
200
200
  filesPackaged: 5
201
+ issueCounts: { errors: 0, warnings: 1, info: 0 }
202
+ issues: # every finding, at every verbosity
203
+ - code: LINK_DROPPED_BY_DEPTH
204
+ severity: warning
205
+ message: ...
206
+ location: dist/skills/skill1/docs/deep.md
207
+ fix: ...
201
208
  - name: skill2
202
209
  outputPath: /path/to/dist/skills/skill2
203
210
  filesPackaged: 3
211
+ issueCounts: { errors: 0, warnings: 0, info: 0 }
212
+ issues: []
213
+ skillsStaged: [] # the same rows, WITHOUT outputPath, when the promotion was aborted
204
214
  duration: 1234ms
205
215
  ```
206
216
 
217
+ `--verbose` changes the stderr report only — the YAML above is identical at either
218
+ verbosity. See `vat skills build --help` for the full field list and the identity
219
+ `issueCounts` reconciles against.
220
+
207
221
  **Examples:**
208
222
  ```bash
209
223
  # Build all skills from package.json
@@ -362,11 +376,14 @@ to override (single-skill sources only).
362
376
  | `windsurf` | `~/.codeium/windsurf/skills/` | `.windsurf/skills/` |
363
377
  | `agents` | `~/.agents/skills/` | `.agents/skills/` |
364
378
 
365
- These paths were last reviewed against vendor conventions on 2026-04-08 and are
366
- not verified at build or test time — the tests assert the table's shape, never
367
- that a path is where a platform actually looks. If a vendor moves its convention,
368
- installs land somewhere unread and every VAT check still passes. Re-check the
369
- vendor's documentation before relying on a non-`claude` target.
379
+ These paths were last reviewed against each platform's own published docs on
380
+ 2026-07-30 (all fourteen unchanged) and are not verified at build or test time.
381
+ The tests derive their expectations from the table and assert invariants of it —
382
+ every target present, both scopes relative and forward-slash only, and that the
383
+ resolver composes base + relative path. No test can check that a path is where a
384
+ platform actually looks. If a vendor moves its convention, installs land
385
+ somewhere unread and every VAT check still passes. Re-check the vendor's
386
+ documentation before relying on a non-`claude` target.
370
387
 
371
388
  **Visibility:** VAT's own inspection commands are Claude-scoped — `vat skills
372
389
  list --user` and `vat audit --user` read `~/.claude` only. A skill installed to
@@ -495,6 +512,7 @@ only when the `SKILL.md` declares none.
495
512
  **Output Format:**
496
513
  ```yaml
497
514
  status: success
515
+ root: /abs/path/to/project
498
516
  context: project | user
499
517
  skillsFound: 3
500
518
  skills:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-agent-toolkit/cli",
3
- "version": "0.1.41-rc.7",
3
+ "version": "0.1.41",
4
4
  "description": "Command-line interface for vibe-agent-toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -41,16 +41,16 @@
41
41
  "//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.",
42
42
  "dependencies": {
43
43
  "@anthropic-ai/sdk": "^0.71.2",
44
- "@vibe-agent-toolkit/agent-config": "0.1.41-rc.7",
45
- "@vibe-agent-toolkit/agent-schema": "0.1.41-rc.7",
46
- "@vibe-agent-toolkit/agent-skills": "0.1.41-rc.7",
47
- "@vibe-agent-toolkit/claude-marketplace": "0.1.41-rc.7",
48
- "@vibe-agent-toolkit/discovery": "0.1.41-rc.7",
49
- "@vibe-agent-toolkit/gateway-mcp": "0.1.41-rc.7",
50
- "@vibe-agent-toolkit/rag": "0.1.41-rc.7",
51
- "@vibe-agent-toolkit/rag-lancedb": "0.1.41-rc.7",
52
- "@vibe-agent-toolkit/resources": "0.1.41-rc.7",
53
- "@vibe-agent-toolkit/utils": "0.1.41-rc.7",
44
+ "@vibe-agent-toolkit/agent-config": "0.1.41",
45
+ "@vibe-agent-toolkit/agent-schema": "0.1.41",
46
+ "@vibe-agent-toolkit/agent-skills": "0.1.41",
47
+ "@vibe-agent-toolkit/claude-marketplace": "0.1.41",
48
+ "@vibe-agent-toolkit/discovery": "0.1.41",
49
+ "@vibe-agent-toolkit/gateway-mcp": "0.1.41",
50
+ "@vibe-agent-toolkit/rag": "0.1.41",
51
+ "@vibe-agent-toolkit/rag-lancedb": "0.1.41",
52
+ "@vibe-agent-toolkit/resources": "0.1.41",
53
+ "@vibe-agent-toolkit/utils": "0.1.41",
54
54
  "adm-zip": "^0.6.0",
55
55
  "commander": "^12.1.0",
56
56
  "picomatch": "^4.0.3",
@@ -65,7 +65,7 @@
65
65
  "@types/picomatch": "^4.0.2",
66
66
  "@types/semver": "^7.7.1",
67
67
  "@types/tar": "^6.1.13",
68
- "@vibe-agent-toolkit/dev-tools": "0.1.41-rc.7",
68
+ "@vibe-agent-toolkit/dev-tools": "0.1.41",
69
69
  "rimraf": "^6.0.1",
70
70
  "typescript": "^5.7.3",
71
71
  "vitest": "^3.2.4"