@vibe-agent-toolkit/cli 0.2.0-rc.6 → 0.2.0-rc.8
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 +4 -5
- 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 +44 -158
- package/dist/bin.js.map +1 -1
- package/dist/command-loaders.d.ts +2 -2
- package/dist/command-loaders.d.ts.map +1 -1
- package/dist/command-loaders.js +4 -2
- package/dist/command-loaders.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 +153 -0
- package/dist/commands/ard/emit.d.ts.map +1 -0
- package/dist/commands/ard/emit.js +276 -0
- package/dist/commands/ard/emit.js.map +1 -0
- package/dist/commands/ard/index.d.ts +12 -0
- package/dist/commands/ard/index.d.ts.map +1 -0
- package/dist/commands/ard/index.js +80 -0
- package/dist/commands/ard/index.js.map +1 -0
- package/dist/commands/ard/surfaces.d.ts +56 -0
- package/dist/commands/ard/surfaces.d.ts.map +1 -0
- package/dist/commands/ard/surfaces.js +150 -0
- package/dist/commands/ard/surfaces.js.map +1 -0
- 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/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 +78 -9
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +853 -473
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +24 -24
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/cache/clear.d.ts.map +1 -1
- package/dist/commands/cache/clear.js +17 -10
- package/dist/commands/cache/clear.js.map +1 -1
- package/dist/commands/claude/budget.d.ts +136 -24
- package/dist/commands/claude/budget.d.ts.map +1 -1
- package/dist/commands/claude/budget.js +152 -57
- package/dist/commands/claude/budget.js.map +1 -1
- package/dist/commands/claude/context.d.ts.map +1 -1
- package/dist/commands/claude/context.js +4 -3
- package/dist/commands/claude/context.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 +3 -2
- 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 +55 -22
- package/dist/commands/claude/marketplace/validate.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/validate.js +392 -77
- 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 +103 -4
- package/dist/commands/claude/org/skills.d.ts.map +1 -1
- package/dist/commands/claude/org/skills.js +331 -123
- 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 +8 -0
- package/dist/commands/claude/plugin/build.d.ts.map +1 -1
- package/dist/commands/claude/plugin/build.js +28 -33
- 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 +0 -3
- 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 +73 -0
- package/dist/commands/claude/plugin/tree-copy.d.ts.map +1 -1
- package/dist/commands/claude/plugin/tree-copy.js +221 -15
- 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 +9 -13
- package/dist/commands/consistency-check.d.ts.map +1 -1
- package/dist/commands/consistency-check.js +91 -81
- package/dist/commands/consistency-check.js.map +1 -1
- package/dist/commands/corpus/index.d.ts.map +1 -1
- package/dist/commands/corpus/index.js +3 -0
- package/dist/commands/corpus/index.js.map +1 -1
- package/dist/commands/corpus/report.d.ts +0 -1
- package/dist/commands/corpus/report.d.ts.map +1 -1
- package/dist/commands/corpus/report.js +1 -3
- package/dist/commands/corpus/report.js.map +1 -1
- package/dist/commands/corpus/runner.d.ts +58 -1
- package/dist/commands/corpus/runner.d.ts.map +1 -1
- package/dist/commands/corpus/runner.js +92 -21
- 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 -4
- 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 +14 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +147 -51
- 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 +11 -0
- package/dist/commands/okf/index.d.ts.map +1 -0
- package/dist/commands/okf/index.js +114 -0
- package/dist/commands/okf/index.js.map +1 -0
- package/dist/commands/okf/validate.d.ts +191 -0
- package/dist/commands/okf/validate.d.ts.map +1 -0
- package/dist/commands/okf/validate.js +190 -0
- package/dist/commands/okf/validate.js.map +1 -0
- package/dist/commands/phase-utils.d.ts +30 -13
- package/dist/commands/phase-utils.d.ts.map +1 -1
- package/dist/commands/phase-utils.js +56 -19
- 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 +27 -2
- package/dist/commands/rag/index-command.d.ts.map +1 -1
- package/dist/commands/rag/index-command.js +48 -8
- package/dist/commands/rag/index-command.js.map +1 -1
- package/dist/commands/rag/index.d.ts.map +1 -1
- package/dist/commands/rag/index.js +2 -0
- package/dist/commands/rag/index.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 +3 -0
- package/dist/commands/resources/check-progress.d.ts.map +1 -1
- package/dist/commands/resources/check-progress.js +11 -2
- 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 +168 -8
- package/dist/commands/resources/check.d.ts.map +1 -1
- package/dist/commands/resources/check.js +222 -118
- 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 +64 -29
- package/dist/commands/resources/index.js.map +1 -1
- package/dist/commands/resources/query.d.ts +18 -1
- package/dist/commands/resources/query.d.ts.map +1 -1
- package/dist/commands/resources/query.js +33 -12
- 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 +30 -1
- package/dist/commands/resources/validate.d.ts.map +1 -1
- package/dist/commands/resources/validate.js +116 -14
- 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 +98 -61
- 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 +137 -67
- package/dist/commands/skill/test/run.js.map +1 -1
- package/dist/commands/skills/build.d.ts +69 -2
- package/dist/commands/skills/build.d.ts.map +1 -1
- package/dist/commands/skills/build.js +128 -42
- 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 +2 -1
- package/dist/commands/skills/list.d.ts.map +1 -1
- package/dist/commands/skills/list.js +44 -26
- 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 +40 -1
- package/dist/commands/skills/skill-discovery.d.ts.map +1 -1
- package/dist/commands/skills/skill-discovery.js +32 -4
- 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/skills/validate-command.d.ts.map +1 -1
- package/dist/commands/skills/validate-command.js +11 -3
- package/dist/commands/skills/validate-command.js.map +1 -1
- package/dist/commands/skills/validate.d.ts +66 -7
- package/dist/commands/skills/validate.d.ts.map +1 -1
- package/dist/commands/skills/validate.js +133 -29
- package/dist/commands/skills/validate.js.map +1 -1
- package/dist/commands/validate.d.ts +1 -1
- package/dist/commands/validate.js +8 -6
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/verify.d.ts +102 -5
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +246 -69
- 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 +102 -0
- package/dist/report-schemas.js.map +1 -0
- package/dist/skill-resolution/packaging-config.d.ts +49 -5
- package/dist/skill-resolution/packaging-config.d.ts.map +1 -1
- package/dist/skill-resolution/packaging-config.js +59 -19
- package/dist/skill-resolution/packaging-config.js.map +1 -1
- package/dist/skill-resolution/resolve-skill-reference.d.ts.map +1 -1
- package/dist/skill-resolution/resolve-skill-reference.js +8 -6
- 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/command-error.d.ts +87 -55
- package/dist/utils/command-error.d.ts.map +1 -1
- package/dist/utils/command-error.js +113 -64
- 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/context-budget-issues.d.ts +1 -1
- package/dist/utils/context-budget-issues.js +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/edge-lens-evaluation.d.ts +83 -0
- package/dist/utils/edge-lens-evaluation.d.ts.map +1 -0
- package/dist/utils/edge-lens-evaluation.js +110 -0
- package/dist/utils/edge-lens-evaluation.js.map +1 -0
- 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 +5 -4
- package/dist/utils/optional-backend.d.ts.map +1 -1
- package/dist/utils/optional-backend.js +7 -5
- 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 +20 -0
- package/dist/utils/project-root-policy.d.ts.map +1 -1
- package/dist/utils/project-root-policy.js +30 -0
- package/dist/utils/project-root-policy.js.map +1 -1
- package/dist/utils/projection-query.d.ts +41 -4
- package/dist/utils/projection-query.d.ts.map +1 -1
- package/dist/utils/projection-query.js +44 -10
- package/dist/utils/projection-query.js.map +1 -1
- package/dist/utils/projection-store.d.ts +41 -15
- package/dist/utils/projection-store.d.ts.map +1 -1
- package/dist/utils/projection-store.js +65 -18
- package/dist/utils/projection-store.js.map +1 -1
- package/dist/utils/repeatable-option.d.ts +37 -0
- package/dist/utils/repeatable-option.d.ts.map +1 -0
- package/dist/utils/repeatable-option.js +39 -0
- package/dist/utils/repeatable-option.js.map +1 -0
- package/dist/utils/resource-loader.d.ts +4 -3
- package/dist/utils/resource-loader.d.ts.map +1 -1
- package/dist/utils/resource-loader.js +63 -32
- package/dist/utils/resource-loader.js.map +1 -1
- package/dist/utils/root-argv.d.ts +53 -0
- package/dist/utils/root-argv.d.ts.map +1 -0
- package/dist/utils/root-argv.js +215 -0
- package/dist/utils/root-argv.js.map +1 -0
- package/dist/utils/run-integrity.d.ts +95 -0
- package/dist/utils/run-integrity.d.ts.map +1 -0
- package/dist/utils/run-integrity.js +102 -0
- package/dist/utils/run-integrity.js.map +1 -0
- package/dist/utils/skill-packaging-config.d.ts +27 -0
- package/dist/utils/skill-packaging-config.d.ts.map +1 -1
- package/dist/utils/skill-packaging-config.js +30 -0
- package/dist/utils/skill-packaging-config.js.map +1 -1
- package/dist/utils/sqlite-experimental-warning.d.ts +69 -0
- package/dist/utils/sqlite-experimental-warning.d.ts.map +1 -0
- package/dist/utils/sqlite-experimental-warning.js +144 -0
- package/dist/utils/sqlite-experimental-warning.js.map +1 -0
- 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 +8 -0
- package/dist/utils/user-context-scanner.d.ts.map +1 -1
- package/dist/utils/user-context-scanner.js +4 -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 +12 -6
- 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 +141 -37
- package/docs/doctor.md +7 -6
- package/docs/index.md +19 -11
- package/docs/rag.md +3 -2
- package/docs/resources.md +5 -2
- package/docs/skill-test.md +10 -9
- package/docs/skills.md +53 -69
- package/package.json +24 -29
- package/schemas/ard-emit.json +149 -0
- package/schemas/claude-budget.json +197 -0
- package/schemas/okf-validate.json +170 -0
- package/schemas/resources-check.json +186 -0
- package/schemas/skill-review.json +230 -0
|
@@ -15,10 +15,11 @@ import { existsSync, writeFileSync } from 'node:fs';
|
|
|
15
15
|
import { dirname } from 'node:path';
|
|
16
16
|
import { scan } from '@vibe-agent-toolkit/discovery';
|
|
17
17
|
import { calculateValidationStatus, countBySeverity } from '@vibe-agent-toolkit/schema';
|
|
18
|
-
import { safePath } from '@vibe-agent-toolkit/utils';
|
|
18
|
+
import { safePath, toForwardSlash, transientRefusalClause } from '@vibe-agent-toolkit/utils';
|
|
19
19
|
import { isGitUrl, parseGitUrl } from '@vibe-agent-toolkit/utils/git';
|
|
20
20
|
import * as yaml from 'yaml';
|
|
21
21
|
import { createLogger } from '../../utils/logger.js';
|
|
22
|
+
import { nothingCheckedFinding } from '../../utils/run-integrity.js';
|
|
22
23
|
import { resolveVatBinPath } from '../../utils/vat-bin-path.js';
|
|
23
24
|
import { withClonedRepo } from '../audit/git-url-clone.js';
|
|
24
25
|
import { deriveScanRoot, getValidationResults } from '../audit.js';
|
|
@@ -32,6 +33,55 @@ const SKIPPED_REVIEW = { status: 'skipped', duration_ms: 0 };
|
|
|
32
33
|
function summarizeRun(allIssues, filesScanned) {
|
|
33
34
|
return { ...countBySeverity(allIssues), files_scanned: filesScanned };
|
|
34
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Derive one plugin's audit row and its document from the per-file results.
|
|
38
|
+
*
|
|
39
|
+
* 🚨 **An audit over zero files is an ERROR, not "an empty tree audits
|
|
40
|
+
* cleanly".** `summarizeRun` over zero results gives `files_scanned: 0` and
|
|
41
|
+
* zero findings, and zero findings is `success` — so a source that resolved to
|
|
42
|
+
* a tree with nothing to audit (a wrong subdirectory, a clone whose default
|
|
43
|
+
* branch holds no skill, an excluded tree) wrote the same `summary.yaml` row as
|
|
44
|
+
* a clean plugin. The review lane on the identical fixture already answered
|
|
45
|
+
* `error` ("No SKILL.md files found"); this is the same question one lane
|
|
46
|
+
* over, and it now gets the same answer, through the shared mechanism in
|
|
47
|
+
* `run-integrity.ts`: one non-overridable `RESOURCE_CHECK_BROKEN` at `error`,
|
|
48
|
+
* counted in the row's `errors` and `findings_emitted`, carried in the document
|
|
49
|
+
* under `issues` beside the (empty) per-file results.
|
|
50
|
+
*
|
|
51
|
+
* `unloadable` is deliberately NOT the status here. Unloadable means the audit
|
|
52
|
+
* could not run — a missing path, a failed clone. This audit ran, and found no
|
|
53
|
+
* file to run over; the difference is the difference between "no verdict
|
|
54
|
+
* possible" and "this verdict is vacuous", and `computeTotals` counts them
|
|
55
|
+
* apart.
|
|
56
|
+
*
|
|
57
|
+
* Pure, and exported for that reason: the runner's loop clones, writes and
|
|
58
|
+
* catches, and the refusal has to be pinned without any of that.
|
|
59
|
+
*
|
|
60
|
+
* @param results - One validation result per audited file
|
|
61
|
+
* @param durationMs - The row's measured duration
|
|
62
|
+
* @param outputPath - Where the document is written, relative to the run dir
|
|
63
|
+
* @returns The row's audit outcome and the document to write for it
|
|
64
|
+
*/
|
|
65
|
+
export function buildAuditOutcome(results, durationMs, outputPath) {
|
|
66
|
+
const fileIssues = results.flatMap((r) => r.issues);
|
|
67
|
+
const runIssues = nothingCheckedFinding(results.length, fileIssues, () => 'The audit ran over 0 files, so this row is not a verdict: a plugin with nothing'
|
|
68
|
+
+ ' to audit produces the same counts as a clean one. The source resolved to a tree'
|
|
69
|
+
+ ' holding no auditable file — usually a wrong subdirectory, a clone whose default'
|
|
70
|
+
+ ' branch carries no skill or plugin, or an excluded tree.'
|
|
71
|
+
+ ' `vat audit <source>` over the same path shows what the scan enumerates.');
|
|
72
|
+
const allIssues = [...runIssues, ...fileIssues];
|
|
73
|
+
const summary = summarizeRun(allIssues, results.length);
|
|
74
|
+
return {
|
|
75
|
+
audit: {
|
|
76
|
+
status: calculateValidationStatus(allIssues),
|
|
77
|
+
duration_ms: durationMs,
|
|
78
|
+
summary,
|
|
79
|
+
findings_emitted: summary.errors + summary.warnings + summary.info,
|
|
80
|
+
output_path: outputPath,
|
|
81
|
+
},
|
|
82
|
+
document: { results, ...(runIssues.length === 0 ? {} : { issues: runIssues }) },
|
|
83
|
+
};
|
|
84
|
+
}
|
|
35
85
|
/**
|
|
36
86
|
* Run audit + optional review against one plugin entry.
|
|
37
87
|
*/
|
|
@@ -42,7 +92,6 @@ export async function auditOnePlugin(entry, opts) {
|
|
|
42
92
|
return runLocalEntry(entry, opts);
|
|
43
93
|
}
|
|
44
94
|
async function runLocalEntry(entry, opts) {
|
|
45
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- caller-supplied seed entry
|
|
46
95
|
if (!existsSync(entry.source)) {
|
|
47
96
|
return unloadableRow(entry, `Source path not found: ${entry.source}`, 0);
|
|
48
97
|
}
|
|
@@ -64,19 +113,11 @@ async function auditAndRecord(entry, scanPath, opts) {
|
|
|
64
113
|
try {
|
|
65
114
|
// The corpus run root is the scanned plugin itself — one root per row.
|
|
66
115
|
const results = await getValidationResults(scanPath, true, {}, logger, deriveScanRoot(scanPath));
|
|
67
|
-
const
|
|
68
|
-
const
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
writeFileSync(auditYamlPath, yaml.stringify({ results }, { lineWidth: 0, aliasDuplicateObjects: false }), 'utf-8');
|
|
73
|
-
audit = {
|
|
74
|
-
status,
|
|
75
|
-
duration_ms: Date.now() - start,
|
|
76
|
-
summary,
|
|
77
|
-
findings_emitted: summary.errors + summary.warnings + summary.info,
|
|
78
|
-
output_path: `${entry.name}-audit.yaml`,
|
|
79
|
-
};
|
|
116
|
+
const outputPath = `${entry.name}-audit.yaml`;
|
|
117
|
+
const outcome = buildAuditOutcome(results, Date.now() - start, outputPath);
|
|
118
|
+
const auditYamlPath = safePath.join(opts.runDir, outputPath);
|
|
119
|
+
writeFileSync(auditYamlPath, yaml.stringify(outcome.document, { lineWidth: 0, aliasDuplicateObjects: false }), 'utf-8');
|
|
120
|
+
audit = outcome.audit;
|
|
80
121
|
}
|
|
81
122
|
catch (err) {
|
|
82
123
|
audit = {
|
|
@@ -103,8 +144,8 @@ async function auditAndRecord(entry, scanPath, opts) {
|
|
|
103
144
|
* error section rather than thrown — one bad skill must not abort siblings.
|
|
104
145
|
*/
|
|
105
146
|
function reviewOneSkill(bin, skillDir, relativePath) {
|
|
106
|
-
//
|
|
107
|
-
const result = spawnSync(
|
|
147
|
+
// The node running this process, never a PATH lookup.
|
|
148
|
+
const result = spawnSync(process.execPath, [bin, 'skill', 'review', skillDir], {
|
|
108
149
|
encoding: 'utf-8',
|
|
109
150
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
110
151
|
});
|
|
@@ -139,6 +180,33 @@ function summarizeReview(sections) {
|
|
|
139
180
|
const reviewed = sections.filter((s) => s.ok).length;
|
|
140
181
|
return { reviewed, failed: sections.length - reviewed, skills_scanned: sections.length };
|
|
141
182
|
}
|
|
183
|
+
/**
|
|
184
|
+
* One failed section per directory the review scan could not list.
|
|
185
|
+
*
|
|
186
|
+
* The review lane's population is what `scan` enumerates; a directory it could
|
|
187
|
+
* not enter is a set of skills that were never reviewed, and a review.md that
|
|
188
|
+
* omits them reads as one that covered the plugin. Filing the gap on the
|
|
189
|
+
* existing per-skill channel — `ok: false`, keyed by the directory — is what
|
|
190
|
+
* makes `buildReviewOutcome` grade the run `error` and the aggregate name the
|
|
191
|
+
* subtree, without inventing a second channel the report would have to learn.
|
|
192
|
+
*
|
|
193
|
+
* @param unreadable - What `ScanSummary.unreadable` carried
|
|
194
|
+
* @param scanPath - The plugin root every section is keyed relative to
|
|
195
|
+
* @returns Sections in the order the refusals were met
|
|
196
|
+
*/
|
|
197
|
+
export function unlistedDirectorySections(unreadable, scanPath) {
|
|
198
|
+
return unreadable.map((refusal) => {
|
|
199
|
+
const relativePath = toForwardSlash(safePath.relative(scanPath, refusal.directory)) || '.';
|
|
200
|
+
const cause = refusal.transient
|
|
201
|
+
? `${transientRefusalClause(refusal.code)} — re-run before investigating anything`
|
|
202
|
+
: `listing was refused with ${refusal.code}`;
|
|
203
|
+
return {
|
|
204
|
+
relativePath,
|
|
205
|
+
ok: false,
|
|
206
|
+
body: `Directory could not be listed (${cause}); every skill beneath it was not reviewed.`,
|
|
207
|
+
};
|
|
208
|
+
});
|
|
209
|
+
}
|
|
142
210
|
/**
|
|
143
211
|
* Derive one plugin's `ReviewOutcome` from its per-skill sections.
|
|
144
212
|
*
|
|
@@ -182,7 +250,12 @@ async function runSkillReview(entry, scanPath, runDir) {
|
|
|
182
250
|
const reviewPath = safePath.join(runDir, `${entry.name}-review.md`);
|
|
183
251
|
const summary = await scan({ path: scanPath, recursive: true });
|
|
184
252
|
const skills = summary.results.filter((r) => r.format === 'agent-skill' && !r.isGitIgnored);
|
|
185
|
-
|
|
253
|
+
// Directories the scan could not list hold skills this review never saw. They
|
|
254
|
+
// enter the aggregate as failed sections — see `unlistedDirectorySections` —
|
|
255
|
+
// so the outcome is `error` and the review names the gap, while every skill
|
|
256
|
+
// that WAS found is still reviewed below.
|
|
257
|
+
const unlisted = unlistedDirectorySections(summary.unreadable, scanPath);
|
|
258
|
+
if (skills.length === 0 && unlisted.length === 0) {
|
|
186
259
|
return {
|
|
187
260
|
status: 'error',
|
|
188
261
|
duration_ms: Date.now() - start,
|
|
@@ -190,13 +263,12 @@ async function runSkillReview(entry, scanPath, runDir) {
|
|
|
190
263
|
error: `No SKILL.md files found under ${scanPath}`,
|
|
191
264
|
};
|
|
192
265
|
}
|
|
193
|
-
const sections = [];
|
|
266
|
+
const sections = [...unlisted];
|
|
194
267
|
for (const skill of skills) {
|
|
195
268
|
const skillDir = dirname(skill.path);
|
|
196
269
|
sections.push(reviewOneSkill(bin, skillDir, skill.relativePath));
|
|
197
270
|
}
|
|
198
271
|
const aggregated = renderAggregatedReview(entry, sections, summarizeReview(sections));
|
|
199
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- composed under run dir
|
|
200
272
|
writeFileSync(reviewPath, aggregated, 'utf-8');
|
|
201
273
|
return buildReviewOutcome(sections, `${entry.name}-review.md`, Date.now() - start);
|
|
202
274
|
}
|
|
@@ -219,7 +291,6 @@ function applyValidationOverlay(entry, scanPath) {
|
|
|
219
291
|
},
|
|
220
292
|
},
|
|
221
293
|
};
|
|
222
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- composed under audit target
|
|
223
294
|
writeFileSync(overlayPath, yaml.stringify(overlay, { lineWidth: 0, aliasDuplicateObjects: false }), 'utf-8');
|
|
224
295
|
return true;
|
|
225
296
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../src/commands/corpus/runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../../../src/commands/corpus/runner.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C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,CAAC,CAAC;IAC9E,MAAM,OAAO,GAAG;QACd,MAAM,EAAE;YACN,QAAQ,EAAE;gBACR,UAAU,EAAE,KAAK,CAAC,UAAU;aAC7B;SACF;KACF,CAAC;IACF,aAAa,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,qBAAqB,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7G,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,aAAa,CAAC,KAAkB,EAAE,KAAa,EAAE,UAAkB;IAC1E,OAAO;QACL,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,kBAAkB,EAAE,KAAK;QACzB,KAAK,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE;QAC/D,MAAM,EAAE,cAAc;KACvB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../../src/commands/corpus/scan.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiBH,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../../src/commands/corpus/scan.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAiBH,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAiCD,wBAAsB,iBAAiB,CACrC,WAAW,EAAE,MAAM,GAAG,SAAS,EAC/B,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,IAAI,CAAC,CA8Df"}
|
|
@@ -23,7 +23,6 @@ function readVatVersion() {
|
|
|
23
23
|
// packages/cli/dist/commands/corpus/scan.js → packages/cli/package.json
|
|
24
24
|
// packages/cli/src/commands/corpus/scan.ts → packages/cli/package.json
|
|
25
25
|
const pkgPath = safePath.resolve(__dirname, '../../../package.json');
|
|
26
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- internal package.json path
|
|
27
26
|
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
28
27
|
return pkg.version ?? 'unknown';
|
|
29
28
|
}
|
|
@@ -57,7 +56,7 @@ export async function corpusScanCommand(seedFileArg, options) {
|
|
|
57
56
|
}
|
|
58
57
|
const seedPath = seedFileArg ?? DEFAULT_SEED_PATH;
|
|
59
58
|
const seed = loadSeedFile(seedPath);
|
|
60
|
-
// eslint-disable-next-line local/no-fs-mkdirSync
|
|
59
|
+
// eslint-disable-next-line local/no-fs-mkdirSync -- caller-supplied output dir; recursive create is correct here
|
|
61
60
|
mkdirSync(options.out, { recursive: true });
|
|
62
61
|
// We need the run directory to write per-plugin files into during the
|
|
63
62
|
// loop. Build the report skeleton, derive the run dir name, create it,
|
|
@@ -67,7 +66,7 @@ export async function corpusScanCommand(seedFileArg, options) {
|
|
|
67
66
|
const vatCommit = readVatCommit();
|
|
68
67
|
const runDirName = `${generatedAt.slice(0, 10)}-${vatCommit}`;
|
|
69
68
|
const runDir = safePath.join(options.out, runDirName);
|
|
70
|
-
// eslint-disable-next-line local/no-fs-mkdirSync
|
|
69
|
+
// eslint-disable-next-line local/no-fs-mkdirSync -- composed under user-supplied --out
|
|
71
70
|
mkdirSync(runDir, { recursive: true });
|
|
72
71
|
const rows = [];
|
|
73
72
|
for (const entry of seed.plugins) {
|
|
@@ -81,7 +80,6 @@ export async function corpusScanCommand(seedFileArg, options) {
|
|
|
81
80
|
logger.info(`[${entry.name}] audit=${row.audit.status} review=${row.review.status}`);
|
|
82
81
|
}
|
|
83
82
|
const report = {
|
|
84
|
-
schema_version: 1,
|
|
85
83
|
generated_at: generatedAt,
|
|
86
84
|
vat_version: vatVersion,
|
|
87
85
|
vat_commit: vatCommit,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/commands/corpus/scan.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,OAAO,EAAE,cAAc,EAAkC,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAQzC,MAAM,iBAAiB,GAAG,kBAAkB,CAAC;AAE7C,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE1D,SAAS,cAAc;IACrB,wEAAwE;IACxE,uEAAuE;IACvE,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,uBAAuB,CAAC,CAAC;IACrE,
|
|
1
|
+
{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../src/commands/corpus/scan.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,SA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AAM,EAAE,SAAS,EAAE,YAAY,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
declare const ValidationAllowEntrySchema: z.ZodObject<{
|
|
9
9
|
code: z.ZodString;
|
|
10
10
|
reason: z.ZodString;
|
|
11
|
-
}, "
|
|
11
|
+
}, "strict", z.ZodTypeAny, {
|
|
12
12
|
code: string;
|
|
13
13
|
reason: string;
|
|
14
14
|
}, {
|
|
@@ -20,7 +20,7 @@ declare const ValidationBlockSchema: z.ZodObject<{
|
|
|
20
20
|
allow: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
21
21
|
code: z.ZodString;
|
|
22
22
|
reason: z.ZodString;
|
|
23
|
-
}, "
|
|
23
|
+
}, "strict", z.ZodTypeAny, {
|
|
24
24
|
code: string;
|
|
25
25
|
reason: string;
|
|
26
26
|
}, {
|
|
@@ -51,7 +51,7 @@ declare const PluginEntrySchema: z.ZodObject<{
|
|
|
51
51
|
allow: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
52
52
|
code: z.ZodString;
|
|
53
53
|
reason: z.ZodString;
|
|
54
|
-
}, "
|
|
54
|
+
}, "strict", z.ZodTypeAny, {
|
|
55
55
|
code: string;
|
|
56
56
|
reason: string;
|
|
57
57
|
}, {
|
|
@@ -110,7 +110,7 @@ declare const SeedSchema: z.ZodObject<{
|
|
|
110
110
|
allow: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
111
|
code: z.ZodString;
|
|
112
112
|
reason: z.ZodString;
|
|
113
|
-
}, "
|
|
113
|
+
}, "strict", z.ZodTypeAny, {
|
|
114
114
|
code: string;
|
|
115
115
|
reason: string;
|
|
116
116
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed.d.ts","sourceRoot":"","sources":["../../../src/commands/corpus/seed.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,0BAA0B;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"seed.d.ts","sourceRoot":"","sources":["../../../src/commands/corpus/seed.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,0BAA0B;;;;;;;;;EAGrB,CAAC;AAEZ,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EAKhB,CAAC;AAIZ,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYZ,CAAC;AAEZ,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIL,CAAC;AAEZ,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAuB/C"}
|
|
@@ -10,7 +10,7 @@ import { z } from 'zod';
|
|
|
10
10
|
const ValidationAllowEntrySchema = z.object({
|
|
11
11
|
code: z.string().min(1),
|
|
12
12
|
reason: z.string().min(1),
|
|
13
|
-
});
|
|
13
|
+
}).strict();
|
|
14
14
|
const ValidationBlockSchema = z
|
|
15
15
|
.object({
|
|
16
16
|
severity: z.record(z.string(), z.enum(['error', 'warning', 'info', 'ignore'])).optional(),
|
|
@@ -43,11 +43,9 @@ const SeedSchema = z
|
|
|
43
43
|
* `source` keys, or duplicate `name` labels.
|
|
44
44
|
*/
|
|
45
45
|
export function loadSeedFile(path) {
|
|
46
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- caller-supplied seed file path
|
|
47
46
|
if (!existsSync(path)) {
|
|
48
47
|
throw new Error(`Seed file not found: ${path}`);
|
|
49
48
|
}
|
|
50
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- caller-supplied seed file path
|
|
51
49
|
const raw = readFileSync(path, 'utf-8');
|
|
52
50
|
const parsed = yaml.parse(raw);
|
|
53
51
|
const seed = SeedSchema.parse(parsed);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed.js","sourceRoot":"","sources":["../../../src/commands/corpus/seed.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC1B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"seed.js","sourceRoot":"","sources":["../../../src/commands/corpus/seed.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IA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* 🔑 Reads `process.version` — the interpreter actually executing this process — and NOT
|
|
96
|
+
* a spawned `node --version`. Those are different questions whenever VAT is launched
|
|
97
|
+
* through a shim (Volta, asdf, corepack, an IDE terminal, `npx --node-version`) or by an
|
|
98
|
+
* absolute interpreter path, which is common. Asking `PATH` produced all three wrong
|
|
99
|
+
* answers at once: it FAILED a healthy environment whose `PATH` node was old, it PASSED
|
|
100
|
+
* an environment that cannot run `vat resources query|check` when only `PATH`'s node was
|
|
101
|
+
* new, and where `node` was not on `PATH` at all it reported Node as "Not detected" —
|
|
102
|
+
* from inside a Node process.
|
|
103
|
+
*
|
|
104
|
+
* The check that matters is whether the interpreter running VAT can run VAT, so it must
|
|
105
|
+
* be asked of that interpreter. `nodeSqliteFloorFailure` in `utils/projection-store.ts`
|
|
106
|
+
* already reported `process.version`; this makes the two agree instead of answering one
|
|
107
|
+
* question from two sources.
|
|
94
108
|
*/
|
|
95
109
|
export declare function checkNodeVersion(): DoctorCheckResult;
|
|
96
110
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAgBH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,GAAG,SAAS,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,wBAAwB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,OAAO,EAAE,aAAa,CAAC;IACvB,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,C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