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