@vibe-agent-toolkit/cli 0.2.0-rc.1 → 0.2.0-rc.3

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 (199) hide show
  1. package/dist/bin/vat +66 -15
  2. package/dist/bin/vat.js +66 -15
  3. package/dist/bin/vat.js.map +1 -1
  4. package/dist/bin.js +155 -36
  5. package/dist/bin.js.map +1 -1
  6. package/dist/command-loaders.d.ts +44 -0
  7. package/dist/command-loaders.d.ts.map +1 -0
  8. package/dist/command-loaders.js +58 -0
  9. package/dist/command-loaders.js.map +1 -0
  10. package/dist/commands/agent/index.js +1 -1
  11. package/dist/commands/agent/install.d.ts.map +1 -1
  12. package/dist/commands/agent/install.js +46 -5
  13. package/dist/commands/agent/install.js.map +1 -1
  14. package/dist/commands/audit/distributed-tree.d.ts +1 -1
  15. package/dist/commands/audit/distributed-tree.d.ts.map +1 -1
  16. package/dist/commands/audit/distributed-tree.js.map +1 -1
  17. package/dist/commands/audit/hierarchical-output.d.ts +1 -1
  18. package/dist/commands/audit/hierarchical-output.d.ts.map +1 -1
  19. package/dist/commands/audit/hierarchical-output.js +1 -1
  20. package/dist/commands/audit/hierarchical-output.js.map +1 -1
  21. package/dist/commands/audit.d.ts +22 -1
  22. package/dist/commands/audit.d.ts.map +1 -1
  23. package/dist/commands/audit.js +223 -24
  24. package/dist/commands/audit.js.map +1 -1
  25. package/dist/commands/build.d.ts +1 -1
  26. package/dist/commands/build.d.ts.map +1 -1
  27. package/dist/commands/build.js +2 -2
  28. package/dist/commands/build.js.map +1 -1
  29. package/dist/commands/cache/cache-control.d.ts +73 -0
  30. package/dist/commands/cache/cache-control.d.ts.map +1 -0
  31. package/dist/commands/cache/cache-control.js +77 -0
  32. package/dist/commands/cache/cache-control.js.map +1 -0
  33. package/dist/commands/cache/clear.d.ts +17 -3
  34. package/dist/commands/cache/clear.d.ts.map +1 -1
  35. package/dist/commands/cache/clear.js +68 -3
  36. package/dist/commands/cache/clear.js.map +1 -1
  37. package/dist/commands/cache/index.d.ts +13 -63
  38. package/dist/commands/cache/index.d.ts.map +1 -1
  39. package/dist/commands/cache/index.js +38 -79
  40. package/dist/commands/cache/index.js.map +1 -1
  41. package/dist/commands/claude/budget.d.ts +157 -0
  42. package/dist/commands/claude/budget.d.ts.map +1 -0
  43. package/dist/commands/claude/budget.js +412 -0
  44. package/dist/commands/claude/budget.js.map +1 -0
  45. package/dist/commands/claude/context.d.ts +211 -0
  46. package/dist/commands/claude/context.d.ts.map +1 -0
  47. package/dist/commands/claude/context.js +709 -0
  48. package/dist/commands/claude/context.js.map +1 -0
  49. package/dist/commands/claude/index.d.ts +13 -0
  50. package/dist/commands/claude/index.d.ts.map +1 -1
  51. package/dist/commands/claude/index.js +24 -2
  52. package/dist/commands/claude/index.js.map +1 -1
  53. package/dist/commands/claude/marketplace/git-publish.d.ts.map +1 -1
  54. package/dist/commands/claude/marketplace/git-publish.js +18 -20
  55. package/dist/commands/claude/marketplace/git-publish.js.map +1 -1
  56. package/dist/commands/claude/marketplace/validate.d.ts +1 -1
  57. package/dist/commands/claude/marketplace/validate.d.ts.map +1 -1
  58. package/dist/commands/claude/marketplace/validate.js +1 -1
  59. package/dist/commands/claude/marketplace/validate.js.map +1 -1
  60. package/dist/commands/claude/plugin/build.d.ts +16 -2
  61. package/dist/commands/claude/plugin/build.d.ts.map +1 -1
  62. package/dist/commands/claude/plugin/build.js +64 -11
  63. package/dist/commands/claude/plugin/build.js.map +1 -1
  64. package/dist/commands/claude/plugin/install.d.ts.map +1 -1
  65. package/dist/commands/claude/plugin/install.js +22 -2
  66. package/dist/commands/claude/plugin/install.js.map +1 -1
  67. package/dist/commands/claude/plugin/marketplace-json.d.ts +24 -9
  68. package/dist/commands/claude/plugin/marketplace-json.d.ts.map +1 -1
  69. package/dist/commands/claude/plugin/marketplace-json.js +10 -9
  70. package/dist/commands/claude/plugin/marketplace-json.js.map +1 -1
  71. package/dist/commands/consistency-check.d.ts.map +1 -1
  72. package/dist/commands/consistency-check.js +3 -3
  73. package/dist/commands/consistency-check.js.map +1 -1
  74. package/dist/commands/corpus/report.d.ts +1 -1
  75. package/dist/commands/corpus/report.d.ts.map +1 -1
  76. package/dist/commands/corpus/runner.js +1 -1
  77. package/dist/commands/corpus/runner.js.map +1 -1
  78. package/dist/commands/corpus/scan.d.ts.map +1 -1
  79. package/dist/commands/corpus/scan.js +17 -8
  80. package/dist/commands/corpus/scan.js.map +1 -1
  81. package/dist/commands/doctor.d.ts +36 -0
  82. package/dist/commands/doctor.d.ts.map +1 -1
  83. package/dist/commands/doctor.js +96 -0
  84. package/dist/commands/doctor.js.map +1 -1
  85. package/dist/commands/inventory.d.ts +13 -1
  86. package/dist/commands/inventory.d.ts.map +1 -1
  87. package/dist/commands/inventory.js +118 -13
  88. package/dist/commands/inventory.js.map +1 -1
  89. package/dist/commands/mcp/collections.d.ts +1 -1
  90. package/dist/commands/mcp/collections.d.ts.map +1 -1
  91. package/dist/commands/phase-utils.d.ts +1 -1
  92. package/dist/commands/phase-utils.d.ts.map +1 -1
  93. package/dist/commands/positional-args.js +1 -1
  94. package/dist/commands/positional-args.js.map +1 -1
  95. package/dist/commands/rag/index-command.d.ts +39 -0
  96. package/dist/commands/rag/index-command.d.ts.map +1 -1
  97. package/dist/commands/rag/index-command.js +28 -2
  98. package/dist/commands/rag/index-command.js.map +1 -1
  99. package/dist/commands/rag/index.d.ts.map +1 -1
  100. package/dist/commands/rag/index.js +21 -10
  101. package/dist/commands/rag/index.js.map +1 -1
  102. package/dist/commands/resources/index.d.ts.map +1 -1
  103. package/dist/commands/resources/index.js +10 -2
  104. package/dist/commands/resources/index.js.map +1 -1
  105. package/dist/commands/resources/scan.d.ts +24 -0
  106. package/dist/commands/resources/scan.d.ts.map +1 -1
  107. package/dist/commands/resources/scan.js +18 -5
  108. package/dist/commands/resources/scan.js.map +1 -1
  109. package/dist/commands/resources/validate.d.ts +1 -1
  110. package/dist/commands/resources/validate.d.ts.map +1 -1
  111. package/dist/commands/resources/validate.js +6 -3
  112. package/dist/commands/resources/validate.js.map +1 -1
  113. package/dist/commands/skill/review-checklist.d.ts.map +1 -1
  114. package/dist/commands/skill/review-checklist.js +1 -0
  115. package/dist/commands/skill/review-checklist.js.map +1 -1
  116. package/dist/commands/skill/review.js +2 -2
  117. package/dist/commands/skill/review.js.map +1 -1
  118. package/dist/commands/skill/test/configure.d.ts +19 -0
  119. package/dist/commands/skill/test/configure.d.ts.map +1 -1
  120. package/dist/commands/skill/test/configure.js +18 -3
  121. package/dist/commands/skill/test/configure.js.map +1 -1
  122. package/dist/commands/skill/test/run.d.ts +51 -4
  123. package/dist/commands/skill/test/run.d.ts.map +1 -1
  124. package/dist/commands/skill/test/run.js +112 -10
  125. package/dist/commands/skill/test/run.js.map +1 -1
  126. package/dist/commands/skills/build.d.ts +1 -1
  127. package/dist/commands/skills/build.d.ts.map +1 -1
  128. package/dist/commands/skills/build.js +72 -37
  129. package/dist/commands/skills/build.js.map +1 -1
  130. package/dist/commands/skills/package.d.ts +1 -1
  131. package/dist/commands/skills/package.d.ts.map +1 -1
  132. package/dist/commands/skills/package.js.map +1 -1
  133. package/dist/commands/skills/scope-guard.js +1 -1
  134. package/dist/commands/skills/scope-guard.js.map +1 -1
  135. package/dist/commands/skills/validate.d.ts +1 -1
  136. package/dist/commands/skills/validate.d.ts.map +1 -1
  137. package/dist/commands/skills/validate.js +37 -19
  138. package/dist/commands/skills/validate.js.map +1 -1
  139. package/dist/commands/validate.d.ts.map +1 -1
  140. package/dist/commands/validate.js +2 -1
  141. package/dist/commands/validate.js.map +1 -1
  142. package/dist/commands/verify.d.ts +2 -2
  143. package/dist/commands/verify.d.ts.map +1 -1
  144. package/dist/commands/verify.js +4 -4
  145. package/dist/commands/verify.js.map +1 -1
  146. package/dist/utils/command-error.d.ts +1 -1
  147. package/dist/utils/command-error.d.ts.map +1 -1
  148. package/dist/utils/command-error.js +1 -1
  149. package/dist/utils/command-error.js.map +1 -1
  150. package/dist/utils/config-loader.d.ts.map +1 -1
  151. package/dist/utils/config-loader.js +7 -1
  152. package/dist/utils/config-loader.js.map +1 -1
  153. package/dist/utils/context-budget-issues.d.ts +108 -0
  154. package/dist/utils/context-budget-issues.d.ts.map +1 -0
  155. package/dist/utils/context-budget-issues.js +280 -0
  156. package/dist/utils/context-budget-issues.js.map +1 -0
  157. package/dist/utils/corpus-target.d.ts +48 -0
  158. package/dist/utils/corpus-target.d.ts.map +1 -0
  159. package/dist/utils/corpus-target.js +61 -0
  160. package/dist/utils/corpus-target.js.map +1 -0
  161. package/dist/utils/issue-anchor.d.ts +2 -2
  162. package/dist/utils/issue-anchor.d.ts.map +1 -1
  163. package/dist/utils/issue-anchor.js +1 -1
  164. package/dist/utils/issue-rendering.d.ts +1 -1
  165. package/dist/utils/issue-rendering.d.ts.map +1 -1
  166. package/dist/utils/issue-rendering.js +1 -1
  167. package/dist/utils/issue-rendering.js.map +1 -1
  168. package/dist/utils/issue-severity.d.ts +1 -1
  169. package/dist/utils/issue-severity.d.ts.map +1 -1
  170. package/dist/utils/issue-severity.js +1 -1
  171. package/dist/utils/issue-severity.js.map +1 -1
  172. package/dist/utils/optional-backend.d.ts +77 -0
  173. package/dist/utils/optional-backend.d.ts.map +1 -0
  174. package/dist/utils/optional-backend.js +115 -0
  175. package/dist/utils/optional-backend.js.map +1 -0
  176. package/dist/utils/output.d.ts +17 -0
  177. package/dist/utils/output.d.ts.map +1 -1
  178. package/dist/utils/output.js +19 -0
  179. package/dist/utils/output.js.map +1 -1
  180. package/dist/utils/population-wiring.d.ts +59 -0
  181. package/dist/utils/population-wiring.d.ts.map +1 -0
  182. package/dist/utils/population-wiring.js +55 -0
  183. package/dist/utils/population-wiring.js.map +1 -0
  184. package/dist/utils/projection-store.d.ts +186 -0
  185. package/dist/utils/projection-store.d.ts.map +1 -0
  186. package/dist/utils/projection-store.js +255 -0
  187. package/dist/utils/projection-store.js.map +1 -0
  188. package/dist/utils/resource-loader.d.ts +127 -1
  189. package/dist/utils/resource-loader.d.ts.map +1 -1
  190. package/dist/utils/resource-loader.js +224 -7
  191. package/dist/utils/resource-loader.js.map +1 -1
  192. package/dist/utils/verdict-helpers.d.ts +1 -1
  193. package/dist/utils/verdict-helpers.d.ts.map +1 -1
  194. package/dist/utils/verdict-helpers.js +1 -1
  195. package/dist/utils/verdict-helpers.js.map +1 -1
  196. package/docs/agent.md +2 -2
  197. package/docs/mcp.md +2 -2
  198. package/docs/resources.md +8 -1
  199. package/package.json +15 -12
@@ -1 +1 @@
1
- {"version":3,"file":"verify.d.ts","sourceRoot":"","sources":["../../src/commands/verify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,EAIL,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAO1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAWpC,OAAO,EAGL,KAAK,wBAAwB,EAC9B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAWL,KAAK,cAAc,EAEpB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAGnE,MAAM,WAAW,oBAAoB;IACnC,mFAAmF;IACnF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAYD,wBAAgB,2BAA2B,IAAI,OAAO,CAqFrD;AAED,iFAAiF;AACjF,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAyID;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,SAAS,eAAe,EAAE,GACrC,oBAAoB,EA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;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,eAAe,GAAG,cAAc,CAavE"}
@@ -15,8 +15,8 @@
15
15
  */
16
16
  import { existsSync } from 'node:fs';
17
17
  import { basename } from 'node:path';
18
- import { calculateValidationStatus, countBySeverity, } from '@vibe-agent-toolkit/agent-schema';
19
18
  import { computeTreeCopiedSkillLocations, detectPackagedAgentInstructionFiles, explicitFilesConfigDests, } from '@vibe-agent-toolkit/agent-skills';
19
+ import { calculateValidationStatus, countBySeverity, } from '@vibe-agent-toolkit/schema';
20
20
  import { safePath } from '@vibe-agent-toolkit/utils';
21
21
  import { Command } from 'commander';
22
22
  import { handleCommandError } from '../utils/command-error.js';
@@ -106,7 +106,7 @@ Exit Codes:
106
106
  Arguments:
107
107
  None. Scope comes from vibe-agent-toolkit.config.yaml, never from the command
108
108
  line — a path argument is rejected (exit 2) rather than discarded. To inspect
109
- ONE skill or bundle by path, use 'vat audit <path>'.
109
+ ONE skill or bundle by path, use 'vat skill review <path>'.
110
110
 
111
111
  Requirements:
112
112
  projectRoot: required (errors if no vibe-agent-toolkit.config.yaml or .git/ ancestor)
@@ -290,7 +290,7 @@ export function checkFilesConfigDests(cwd, discovered) {
290
290
  * whose usage is only answerable across a whole run, and this phase would have to
291
291
  * drain a ledger it is not the run of — reporting ALLOW_UNUSED for every entry the
292
292
  * project declares for other lanes. Severity is answerable per unit of work; allow
293
- * is not. See `AllowUsageLedger` in `@vibe-agent-toolkit/agent-schema`.
293
+ * is not. See `AllowUsageLedger` in `@vibe-agent-toolkit/schema`.
294
294
  *
295
295
  * Locations anchor at `cwd`, the run's stated root, so a reader can open them.
296
296
  *
@@ -513,7 +513,7 @@ export function toPublishedIssue(issue) {
513
513
  * `ConsistencyIssue` speaks the same severity vocabulary as `ValidationIssue`
514
514
  * but carries a free-form `code`, so it is counted through this projection —
515
515
  * there must be exactly ONE issues→status/counts collapse in the codebase, and
516
- * it lives in `@vibe-agent-toolkit/agent-schema`.
516
+ * it lives in `@vibe-agent-toolkit/schema`.
517
517
  */
518
518
  function asValidationIssues(issues) {
519
519
  return issues.map((issue) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"verify.js","sourceRoot":"","sources":["../../src/commands/verify.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,OAAO,EACL,yBAAyB,EACzB,eAAe,GAGhB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,+BAA+B,EAC/B,mCAAmC,EACnC,wBAAwB,GAEzB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,OAAO,EACL,oBAAoB,GAGrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,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F,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;QAExC,4EAA4E;QAC5E,2EAA2E;QAC3E,qBAAqB;QACrB,eAAe,CAAC;YACd,MAAM,EAAE,oBAAoB,CAAC,YAAY,CAAC;YAC1C,MAAM,EAAE,YAAY;YACpB,QAAQ,EAAE,GAAG,QAAQ,IAAI;SAC1B,CAAC,CAAC;QAEH,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;IAChD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACzD,CAAC;AACH,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * written nothing to stdout — same name, same signature, same documented
7
7
  * contract, silently different behaviour. Every command family routes here.
8
8
  */
9
- import { type SeverityCounts, type ValidationIssue } from '@vibe-agent-toolkit/agent-schema';
9
+ import { type SeverityCounts, type ValidationIssue } from '@vibe-agent-toolkit/schema';
10
10
  import type { Logger } from './logger.js';
11
11
  /**
12
12
  * Format duration for human readability
@@ -1 +1 @@
1
- {"version":3,"file":"command-error.d.ts","sourceRoot":"","sources":["../../src/utils/command-error.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAE9G,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAQjD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMvD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GAClB,KAAK,CAYP;AAED,6EAA6E;AAC7E,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,cAAc,CAAC;IAC5B,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,eAAe,EAAE,GACjC,qBAAqB,CAEvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,eAAe,EAAE,GACjC,KAAK,CAGP"}
1
+ {"version":3,"file":"command-error.d.ts","sourceRoot":"","sources":["../../src/utils/command-error.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAExG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAQjD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAMvD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,GAClB,KAAK,CAYP;AAED,6EAA6E;AAC7E,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,WAAW,EAAE,cAAc,CAAC;IAC5B,iFAAiF;IACjF,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,eAAe,EAAE,GACjC,qBAAqB,CAEvB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,eAAe,EAAE,GACjC,KAAK,CAGP"}
@@ -7,7 +7,7 @@
7
7
  * contract, silently different behaviour. Every command family routes here.
8
8
  */
9
9
  import { inspect } from 'node:util';
10
- import { countBySeverity } from '@vibe-agent-toolkit/agent-schema';
10
+ import { countBySeverity } from '@vibe-agent-toolkit/schema';
11
11
  import { writeYamlOutput } from './output.js';
12
12
  /**
13
13
  * Format duration for human readability
@@ -1 +1 @@
1
- {"version":3,"file":"command-error.js","sourceRoot":"","sources":["../../src/utils/command-error.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,eAAe,EAA6C,MAAM,kCAAkC,CAAC;AAG9G,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,EAAU;IACvC,IAAI,EAAE,GAAG,IAAI,EAAE,CAAC;QACd,OAAO,GAAG,EAAE,IAAI,CAAC;IACnB,CAAC;IACD,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC;QACf,OAAO,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;IACtC,CAAC;IACD,OAAO,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC7C,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;QAC3B,yEAAyE;QACzE,OAAO,KAAK,CAAC,KAAK,IAAI,GAAG,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,OAAO,EAAE,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,IAAI,CAG7C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAgB/E"}
1
+ {"version":3,"file":"config-loader.d.ts","sourceRoot":"","sources":["../../src/utils/config-loader.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAMxF;;;;;;;;GAQG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;gBACjB,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAMhD;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAoCzE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEvD;AAqBD;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,IAAI,CAG7C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAgB/E"}
@@ -70,7 +70,13 @@ export function loadConfig(projectRoot) {
70
70
  }
71
71
  catch (error) {
72
72
  if (error instanceof Error) {
73
- throw new Error(`Failed to load config: ${error.message}`);
73
+ // `cause` is load-bearing, not decoration: callers decide whether to
74
+ // degrade or abort by asking `isFilesystemAccessError`, which reads the
75
+ // errno off the error. Re-wrapping without it produced a plain Error with
76
+ // no `code`, so an unreadable config read as "a bug in VAT" and aborted the
77
+ // whole run — the exact failure `vat audit`'s guard exists to prevent,
78
+ // reintroduced by a message-formatting layer.
79
+ throw new Error(`Failed to load config: ${error.message}`, { cause: error });
74
80
  }
75
81
  throw error;
76
82
  }
@@ -1 +1 @@
1
- {"version":3,"file":"config-loader.js","sourceRoot":"","sources":["../../src/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AiB,GAAsC,IAAI,GAAG,EAAE,CAAC;AAEvE;;;;GAIG;AACH,MAAM,cAAc,GAAiC,IAAI,GAAG,EAAE,CAAC;AAE/D;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB;IACpC,iBAAiB,CAAC,KAAK,EAAE,CAAC;IAC1B,cAAc,CAAC,KAAK,EAAE,CAAC;AACzB,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,gBAAgB,CAAC,WAAmB;IAClD,MAAM,WAAW,GAAG,cAAc,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IACpD,IAAI,WAAW,KAAK,SAAS;QAAE,MAAM,WAAW,CAAC;IACjD,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;IAClD,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,IAAI,SAAS,CAAC;IACrD,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,UAAU,CAAC,WAAW,CAAC,CAAC;QACvC,iBAAiB,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,IAAI,IAAI,CAAC,CAAC;QACnD,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,4EAA4E;QAC5E,8EAA8E;QAC9E,MAAM,SAAS,GAAG,GAAG,YAAY,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;QAC/F,cAAc,CAAC,GAAG,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;QAC3C,MAAM,SAAS,CAAC;IAClB,CAAC;AACH,CAAC"}
@@ -0,0 +1,108 @@
1
+ /**
2
+ * The always-loaded context budget sweep, rendered as validation findings.
3
+ *
4
+ * Pure: no I/O, no config, no severity resolution, no exit code. It takes the
5
+ * {@link BudgetSweep} `@vibe-agent-toolkit/resources` produced and answers
6
+ * "which of these does a reader need to be told about, and in what words". The
7
+ * command that calls it stays a thin orchestrator, and this file is where the
8
+ * decision worth testing lives.
9
+ *
10
+ * ## ONE issue per REPRESENTATIVE, never one per working location
11
+ *
12
+ * A sweep reports every working location, and locations sharing an instruction
13
+ * chain share one budget — that is the whole point of the collapse. Re-measured
14
+ * on VAT's own tree 2026-08-23, after the context population began declining the
15
+ * gitignored half: **366 of 589 directories** pay the single chain
16
+ * `['CLAUDE.md']`, so emitting per location would print 366 byte-identical
17
+ * findings, all blaming one file, the moment the root `CLAUDE.md` crossed the
18
+ * budget. (It read *"553 of 819"* against the wider population; the ratio barely
19
+ * moved, and the argument does not turn on it.) There are **9** distinct chains
20
+ * on this tree either way, so per-representative emission caps the output at 9
21
+ * findings at any threshold.
22
+ *
23
+ * That is not a formatting preference. A check that emits 366 findings for one
24
+ * cause is a check an adopter silences with
25
+ * `severity.ALWAYS_LOADED_CONTEXT_BUDGET: ignore` rather than fixes — and a
26
+ * silenced check reports nothing forever, which is strictly worse than the
27
+ * finding it was trying to deliver.
28
+ *
29
+ * ## What the message may and may not claim
30
+ *
31
+ * ⛔ Never "the total cost". A global `~/.claude/CLAUDE.md` and the enabled skill
32
+ * index are real always-loaded cost that this TREE-ONLY projection cannot see, so
33
+ * even a budget reporting zero exclusions is a floor — see the module doc of
34
+ * `packages/resources/src/projection/claude-context-budget.ts`, which states the
35
+ * bound precisely and which this wording must not contradict. The messages here
36
+ * therefore say "estimated at", and the narrower, checkable claim carried by
37
+ * {@link AlwaysLoadedBudget.lowerBound} — that rows VAT *did* see were left out
38
+ * of the sum — is appended as its own sentence with the three counts behind it.
39
+ *
40
+ * 🔑 `excludedRuleRows` is deliberately NOT one of those counts. What it counts is
41
+ * PATH-SCOPED rules — the ones carrying a `paths:` list — and those are excluded
42
+ * by DESIGN: they are `selected`, not `always`, so their absence from the sum is a
43
+ * decision rather than a gap in what we know, and only ignorance makes a sum a
44
+ * lower bound.
45
+ *
46
+ * ⛔ Not "rules files" as a class. An UNSCOPED rule in the root `.claude/rules/`
47
+ * is classed `always` and IS charged into the budget — nothing gates it on a path,
48
+ * so it loads at launch exactly as a CLAUDE.md does. The blanket reading was true
49
+ * while every rule was excluded and became a false statement about a check that
50
+ * gates the moment the root-rule admission started qualifying. It matters here
51
+ * because the largest contributor a message names may now be a rules file, which
52
+ * is why the registry `fix` points at the named contributors rather than at a file
53
+ * type.
54
+ */
55
+ import type { BudgetSweep } from '@vibe-agent-toolkit/resources';
56
+ import { type ValidationIssue } from '@vibe-agent-toolkit/schema';
57
+ /** A sweep narrowed to the paths a caller asked about, and what did not match. */
58
+ export interface ScopedSweep {
59
+ /**
60
+ * The narrowed sweep.
61
+ *
62
+ * ⚠️ It retains EVERY location of every selected chain, not only the ones
63
+ * inside the scope — see {@link scopeSweepToPaths} for why that is the whole
64
+ * point rather than an oversight.
65
+ */
66
+ readonly sweep: BudgetSweep;
67
+ /**
68
+ * Requested paths that named no working location in this sweep.
69
+ *
70
+ * ⛔ Reported rather than dropped. A scope that matched nothing produces zero
71
+ * findings, which is byte-identical to "everything you asked about is within
72
+ * budget" — the one confusion this field exists to prevent.
73
+ */
74
+ readonly unmatchedScope: readonly string[];
75
+ }
76
+ /**
77
+ * Narrow a sweep to the instruction chains the requested paths inherit.
78
+ *
79
+ * ## The retention rule, which is the whole design
80
+ *
81
+ * A scope selects CHAINS, never payers. Every location paying a selected chain
82
+ * is retained even when it sits outside the scope, because the finding's message
83
+ * says how many working locations pay it — and that number is a fact about the
84
+ * TREE. Retaining only the in-scope payers would make `vat claude budget
85
+ * docs/guides` report *"1 working location pays it"* for a chain 366 directories
86
+ * pay: a confidently wrong number, which costs more than no number.
87
+ *
88
+ * ## Matching is on SEGMENT boundaries
89
+ *
90
+ * `'packages/cli-x'.startsWith('packages/cli')` is true, so a bare prefix test
91
+ * hands a sibling directory its neighbour's scope. The same trap
92
+ * `representativeFor` in `claude-context-budget-sweep.ts` exists to avoid, one
93
+ * layer down.
94
+ *
95
+ * @param sweep - Every working location's budget, from `sweepAlwaysLoadedBudgets`
96
+ * @param scope - Root-relative directories to report for. `''` is the corpus
97
+ * root and selects the whole tree; an empty list selects nothing
98
+ * @returns The narrowed sweep and the requested paths that matched no location
99
+ */
100
+ export declare function scopeSweepToPaths(sweep: BudgetSweep, scope: readonly string[]): ScopedSweep;
101
+ /**
102
+ * One finding per over-budget instruction chain, ordered for a clean diff.
103
+ *
104
+ * @param sweep - Every working location's budget, from `sweepAlwaysLoadedBudgets`
105
+ * @returns The issues, ascending by representative directory (code point)
106
+ */
107
+ export declare function contextBudgetIssues(sweep: BudgetSweep): ValidationIssue[];
108
+ //# sourceMappingURL=context-budget-issues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-budget-issues.d.ts","sourceRoot":"","sources":["../../src/utils/context-budget-issues.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAsB,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAuB,KAAK,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAYvF,kFAAkF;AAClF,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B;;;;;;OAMG;IACH,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,WAAW,CAoB3F;AA4BD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe,EAAE,CAKzE"}
@@ -0,0 +1,280 @@
1
+ /**
2
+ * The always-loaded context budget sweep, rendered as validation findings.
3
+ *
4
+ * Pure: no I/O, no config, no severity resolution, no exit code. It takes the
5
+ * {@link BudgetSweep} `@vibe-agent-toolkit/resources` produced and answers
6
+ * "which of these does a reader need to be told about, and in what words". The
7
+ * command that calls it stays a thin orchestrator, and this file is where the
8
+ * decision worth testing lives.
9
+ *
10
+ * ## ONE issue per REPRESENTATIVE, never one per working location
11
+ *
12
+ * A sweep reports every working location, and locations sharing an instruction
13
+ * chain share one budget — that is the whole point of the collapse. Re-measured
14
+ * on VAT's own tree 2026-08-23, after the context population began declining the
15
+ * gitignored half: **366 of 589 directories** pay the single chain
16
+ * `['CLAUDE.md']`, so emitting per location would print 366 byte-identical
17
+ * findings, all blaming one file, the moment the root `CLAUDE.md` crossed the
18
+ * budget. (It read *"553 of 819"* against the wider population; the ratio barely
19
+ * moved, and the argument does not turn on it.) There are **9** distinct chains
20
+ * on this tree either way, so per-representative emission caps the output at 9
21
+ * findings at any threshold.
22
+ *
23
+ * That is not a formatting preference. A check that emits 366 findings for one
24
+ * cause is a check an adopter silences with
25
+ * `severity.ALWAYS_LOADED_CONTEXT_BUDGET: ignore` rather than fixes — and a
26
+ * silenced check reports nothing forever, which is strictly worse than the
27
+ * finding it was trying to deliver.
28
+ *
29
+ * ## What the message may and may not claim
30
+ *
31
+ * ⛔ Never "the total cost". A global `~/.claude/CLAUDE.md` and the enabled skill
32
+ * index are real always-loaded cost that this TREE-ONLY projection cannot see, so
33
+ * even a budget reporting zero exclusions is a floor — see the module doc of
34
+ * `packages/resources/src/projection/claude-context-budget.ts`, which states the
35
+ * bound precisely and which this wording must not contradict. The messages here
36
+ * therefore say "estimated at", and the narrower, checkable claim carried by
37
+ * {@link AlwaysLoadedBudget.lowerBound} — that rows VAT *did* see were left out
38
+ * of the sum — is appended as its own sentence with the three counts behind it.
39
+ *
40
+ * 🔑 `excludedRuleRows` is deliberately NOT one of those counts. What it counts is
41
+ * PATH-SCOPED rules — the ones carrying a `paths:` list — and those are excluded
42
+ * by DESIGN: they are `selected`, not `always`, so their absence from the sum is a
43
+ * decision rather than a gap in what we know, and only ignorance makes a sum a
44
+ * lower bound.
45
+ *
46
+ * ⛔ Not "rules files" as a class. An UNSCOPED rule in the root `.claude/rules/`
47
+ * is classed `always` and IS charged into the budget — nothing gates it on a path,
48
+ * so it loads at launch exactly as a CLAUDE.md does. The blanket reading was true
49
+ * while every rule was excluded and became a false statement about a check that
50
+ * gates the moment the root-rule admission started qualifying. It matters here
51
+ * because the largest contributor a message names may now be a rules file, which
52
+ * is why the registry `fix` points at the named contributors rather than at a file
53
+ * type.
54
+ */
55
+ import { createRegistryIssue } from '@vibe-agent-toolkit/schema';
56
+ import { toForwardSlash } from '@vibe-agent-toolkit/utils';
57
+ /**
58
+ * How many contributors a message names before it starts counting them.
59
+ *
60
+ * The chain can be five files deep and the message is read in a terminal, beside
61
+ * every other finding of the run. Three names the files worth opening; the tail
62
+ * is a count so nothing is silently dropped.
63
+ */
64
+ const MAX_NAMED_CONTRIBUTORS = 3;
65
+ /**
66
+ * Narrow a sweep to the instruction chains the requested paths inherit.
67
+ *
68
+ * ## The retention rule, which is the whole design
69
+ *
70
+ * A scope selects CHAINS, never payers. Every location paying a selected chain
71
+ * is retained even when it sits outside the scope, because the finding's message
72
+ * says how many working locations pay it — and that number is a fact about the
73
+ * TREE. Retaining only the in-scope payers would make `vat claude budget
74
+ * docs/guides` report *"1 working location pays it"* for a chain 366 directories
75
+ * pay: a confidently wrong number, which costs more than no number.
76
+ *
77
+ * ## Matching is on SEGMENT boundaries
78
+ *
79
+ * `'packages/cli-x'.startsWith('packages/cli')` is true, so a bare prefix test
80
+ * hands a sibling directory its neighbour's scope. The same trap
81
+ * `representativeFor` in `claude-context-budget-sweep.ts` exists to avoid, one
82
+ * layer down.
83
+ *
84
+ * @param sweep - Every working location's budget, from `sweepAlwaysLoadedBudgets`
85
+ * @param scope - Root-relative directories to report for. `''` is the corpus
86
+ * root and selects the whole tree; an empty list selects nothing
87
+ * @returns The narrowed sweep and the requested paths that matched no location
88
+ */
89
+ export function scopeSweepToPaths(sweep, scope) {
90
+ const selected = new Set();
91
+ const unmatched = [];
92
+ for (const target of scope) {
93
+ const matched = sweep.locations.filter((location) => coversDirectory(target, location.directory));
94
+ if (matched.length === 0) {
95
+ unmatched.push(target);
96
+ continue;
97
+ }
98
+ for (const location of matched)
99
+ selected.add(location.representative);
100
+ }
101
+ return {
102
+ // Counters are carried through untouched: they describe the SWEEP, and a
103
+ // scope narrows what is reported without changing what was measured.
104
+ sweep: {
105
+ ...sweep,
106
+ locations: sweep.locations.filter((location) => selected.has(location.representative)),
107
+ },
108
+ unmatchedScope: unmatched,
109
+ };
110
+ }
111
+ /**
112
+ * Does a requested directory cover another one — itself included?
113
+ *
114
+ * @param target - The requested root-relative directory; `''` is the corpus root
115
+ * @param directory - A working location
116
+ * @returns True when `target` is `directory` or one of its ancestors
117
+ */
118
+ function coversDirectory(target, directory) {
119
+ if (target === '')
120
+ return true;
121
+ // Both sides are already forward-slashed — the projection's `dir` column and
122
+ // `safePath.relative`'s output both are — but normalizing anyway is what keeps
123
+ // a Windows-separator string from silently matching nothing here.
124
+ const normalizedScope = toForwardSlash(target);
125
+ const normalizedLocation = toForwardSlash(directory);
126
+ return normalizedLocation === normalizedScope
127
+ || normalizedLocation.startsWith(`${normalizedScope}/`);
128
+ }
129
+ /**
130
+ * One finding per over-budget instruction chain, ordered for a clean diff.
131
+ *
132
+ * @param sweep - Every working location's budget, from `sweepAlwaysLoadedBudgets`
133
+ * @returns The issues, ascending by representative directory (code point)
134
+ */
135
+ export function contextBudgetIssues(sweep) {
136
+ return [...groupByRepresentative(sweep).values()]
137
+ .filter((group) => group.budget.overBudget)
138
+ .sort((left, right) => comparePaths(left.representative, right.representative))
139
+ .map(issueFor);
140
+ }
141
+ /**
142
+ * Collapse the sweep's locations onto the representatives that produced them.
143
+ *
144
+ * Every location in a group carries the SAME `budget` object — the sweep memoizes
145
+ * one answer per representative — so the first one seen is the group's budget and
146
+ * the rest only add to the count.
147
+ *
148
+ * @param sweep - The sweep
149
+ * @returns Representative directory → its budget and its location count
150
+ */
151
+ function groupByRepresentative(sweep) {
152
+ const groups = new Map();
153
+ for (const location of sweep.locations) {
154
+ const existing = groups.get(location.representative);
155
+ if (existing === undefined) {
156
+ groups.set(location.representative, {
157
+ representative: location.representative,
158
+ budget: location.budget,
159
+ locations: 1,
160
+ });
161
+ continue;
162
+ }
163
+ existing.locations += 1;
164
+ }
165
+ return groups;
166
+ }
167
+ /**
168
+ * One group's finding, with severity, `fix` and `reference` taken from the
169
+ * registry rather than restated here.
170
+ *
171
+ * ⛔ `location` is OMITTED entirely for the corpus root. `ValidationIssue.
172
+ * location` is a project-relative POSIX path, and `''` is not one — the schema's
173
+ * own refinements would be handed a value that means "nowhere", while the message
174
+ * carries the same fact in words a reader can act on.
175
+ *
176
+ * @param group - The over-budget representative
177
+ * @returns The issue
178
+ */
179
+ function issueFor(group) {
180
+ return createRegistryIssue('ALWAYS_LOADED_CONTEXT_BUDGET', messageFor(group), group.representative === '' ? {} : { location: group.representative });
181
+ }
182
+ /**
183
+ * The finding's prose: where, how much, against what, who pays it, and what is
184
+ * biggest — in that order, because that is the order a reader needs them to
185
+ * decide whether to open anything.
186
+ *
187
+ * @param group - The over-budget representative
188
+ * @returns The message
189
+ */
190
+ function messageFor(group) {
191
+ const { budget, locations } = group;
192
+ const paying = locations === 1
193
+ ? '1 working location pays it'
194
+ : `${count(locations)} working locations pay it`;
195
+ return `Always-loaded context at ${subjectOf(group.representative)} is estimated at`
196
+ + ` ${count(budget.tokens)} tokens, over the ${count(budget.threshold)}-token budget;`
197
+ + ` ${paying}. ${contributorsOf(budget)}${lowerBoundOf(budget)}`;
198
+ }
199
+ /**
200
+ * How the representative is named in prose.
201
+ *
202
+ * The corpus root is `''`, which renders as nothing at all and reads like a bug —
203
+ * and it is also the one case that carries no `location` field, so the prose is
204
+ * the ONLY place a reader learns which directory the finding is about.
205
+ *
206
+ * @param representative - The representative directory
207
+ * @returns Its display form
208
+ */
209
+ function subjectOf(representative) {
210
+ return representative === '' ? 'the repository root' : representative;
211
+ }
212
+ /**
213
+ * The largest contributors, capped, with the tail counted rather than dropped.
214
+ *
215
+ * The sweep already sorted contributors descending by tokens (ties broken on path
216
+ * by code point), so "largest" is a prefix and this function does no ordering of
217
+ * its own.
218
+ *
219
+ * @param budget - The over-budget answer
220
+ * @returns The sentence, ending in a period
221
+ */
222
+ function contributorsOf(budget) {
223
+ const { contributors } = budget;
224
+ if (contributors.length === 0)
225
+ return 'No contributor was charged.';
226
+ const named = contributors
227
+ .slice(0, MAX_NAMED_CONTRIBUTORS)
228
+ .map((contributor) => `${contributor.path} (${count(contributor.tokens)} tokens)`);
229
+ const remaining = contributors.length - named.length;
230
+ const tail = remaining > 0 ? `, +${count(remaining)} more` : '';
231
+ return `Largest contributors: ${named.join(', ')}${tail}.`;
232
+ }
233
+ /**
234
+ * The bound sentence, when — and only when — rows VAT saw were left unsummed.
235
+ *
236
+ * All three counts are named even at zero, so a reader learns which kind of
237
+ * ignorance is behind the bound rather than having to infer it from silence.
238
+ *
239
+ * @param budget - The over-budget answer
240
+ * @returns The sentence with a leading space, or the empty string
241
+ */
242
+ function lowerBoundOf(budget) {
243
+ if (!budget.lowerBound)
244
+ return '';
245
+ return ' That figure is a lower bound: '
246
+ + `${count(budget.unknownTokenRows)} rows of unknown size, `
247
+ + `${count(budget.excludedDeepImportRows)} import rows past one hop and `
248
+ + `${count(budget.unattributedImportRows)} unattributed import rows`
249
+ + ' were seen but left out of the sum.';
250
+ }
251
+ /**
252
+ * A count as a reader reads it.
253
+ *
254
+ * Pinned to `en-US` rather than left to the host locale: the same finding must
255
+ * render byte-identically on two developers' machines, for the same reason the
256
+ * ordering below is code-point and not `localeCompare`.
257
+ *
258
+ * @param value - The number
259
+ * @returns Its thousands-separated form
260
+ */
261
+ function count(value) {
262
+ return value.toLocaleString('en-US');
263
+ }
264
+ /**
265
+ * Order two root-relative directories by UTF-16 code point.
266
+ *
267
+ * ⛔ Not `localeCompare`: ICU collation is locale-dependent, so two developers
268
+ * diffing the same run's findings would see churn neither of them caused. Matches
269
+ * every other ordering in the projection lane.
270
+ *
271
+ * @param left - One representative
272
+ * @param right - The other
273
+ * @returns Negative, zero or positive, per the `Array#sort` contract
274
+ */
275
+ function comparePaths(left, right) {
276
+ if (left === right)
277
+ return 0;
278
+ return left < right ? -1 : 1;
279
+ }
280
+ //# sourceMappingURL=context-budget-issues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-budget-issues.js","sourceRoot":"","sources":["../../src/utils/context-budget-issues.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAGH,OAAO,EAAE,mBAAmB,EAAwB,MAAM,4BAA4B,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D;;;;;;GAMG;AACH,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAsBjC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,iBAAiB,CAAC,KAAkB,EAAE,KAAwB;IAC5E,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAU,CAAC;IACnC,MAAM,SAAS,GAAa,EAAE,CAAC;IAC/B,KAAK,MAAM,MAAM,IAAI,KAAK,EAAE,CAAC;QAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QAClG,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACzB,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACvB,SAAS;QACX,CAAC;QACD,KAAK,MAAM,QAAQ,IAAI,OAAO;YAAE,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IACxE,CAAC;IACD,OAAO;QACL,yEAAyE;QACzE,qEAAqE;QACrE,KAAK,EAAE;YACL,GAAG,KAAK;YACR,SA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C,CAAC;IAC7B,OAAO,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/B,CAAC"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Resolving a command-line path argument into a target INSIDE a corpus root.
3
+ *
4
+ * Shared by every command that populates one tree and then answers questions
5
+ * about positions in it — `vat claude context` and `vat claude budget` today.
6
+ * They ask different questions and default differently when no path is named,
7
+ * but "is this argument inside the tree I enumerated, and what is it called
8
+ * there" is one rule, and a second copy of it would be free to drift on the one
9
+ * clause that only fails where nobody looks (see {@link escapesCorpusRoot}).
10
+ */
11
+ /**
12
+ * Does a path already stated against the corpus root fall OUTSIDE it?
13
+ *
14
+ * Three spellings of "outside", not two, and the third is the one that could
15
+ * only fail where nobody would see it. `safePath.relative` says "not under this
16
+ * root" with a `..`-prefixed path in the ordinary case, but returns an ABSOLUTE
17
+ * path when no relative route exists at all — which on Windows is exactly what a
18
+ * different drive letter produces. Without the third test, `vat claude context
19
+ * D:\elsewhere\doc.md` run from a `C:` repo passes the guard and answers `kind:
20
+ * unknown`, indistinguishable from a typo inside the tree, which is the one
21
+ * outcome {@link targetPathWithin}'s `@throws` claims to prevent. Its sibling
22
+ * `escapesRoot` (`closure-extent.ts`) applies the same triple for the same
23
+ * reason.
24
+ *
25
+ * ⛔ Exported so it can be TESTED. On POSIX `safePath.relative` between two
26
+ * absolute paths never returns an absolute string, so the third clause is
27
+ * unreachable through {@link targetPathWithin} on every machine a developer
28
+ * runs — the branch has to be exercised directly or not at all, and "not at
29
+ * all" is how it went missing in the first place.
30
+ *
31
+ * @param normalizedRelative - A forward-slashed path already stated against the
32
+ * corpus root
33
+ * @returns True when the corpus root does not contain it
34
+ */
35
+ export declare function escapesCorpusRoot(normalizedRelative: string): boolean;
36
+ /**
37
+ * The root-relative path to query, refusing anything outside the corpus.
38
+ *
39
+ * @param root - The discovered project root
40
+ * @param pathArg - The path argument, or undefined for the current directory
41
+ * @param commandName - The command saying so, for the refusal's wording
42
+ * @returns The root-relative, forward-slashed target. `''` is the corpus root
43
+ * @throws When the argument resolves outside `root` — answering for it would
44
+ * mean querying a corpus this projection never enumerated, and a confident
45
+ * "nothing here" would be indistinguishable from a typo inside the tree
46
+ */
47
+ export declare function targetPathWithin(root: string, pathArg: string | undefined, commandName: string): string;
48
+ //# sourceMappingURL=corpus-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"corpus-target.d.ts","sourceRoot":"","sources":["../../src/utils/corpus-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,iBAAiB,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAIrE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,WAAW,EAAE,MAAM,GAClB,MAAM,CAUR"}