@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
|
@@ -5,39 +5,13 @@
|
|
|
5
5
|
* about positions in it — `vat claude context` and `vat claude budget` today.
|
|
6
6
|
* They ask different questions and default differently when no path is named,
|
|
7
7
|
* but "is this argument inside the tree I enumerated, and what is it called
|
|
8
|
-
* there" is one rule
|
|
9
|
-
*
|
|
8
|
+
* there" is one rule. The predicate itself is `relativeEscapesRoot` from
|
|
9
|
+
* `@vibe-agent-toolkit/utils` — the one lexical classifier every lane shares,
|
|
10
|
+
* so the clause that only fails on Windows (a cross-drive `relative()` comes
|
|
11
|
+
* back ABSOLUTE, not `..`-prefixed) is tested once, there, with the string
|
|
12
|
+
* Windows really produces.
|
|
10
13
|
*/
|
|
11
|
-
import {
|
|
12
|
-
/**
|
|
13
|
-
* Does a path already stated against the corpus root fall OUTSIDE it?
|
|
14
|
-
*
|
|
15
|
-
* Three spellings of "outside", not two, and the third is the one that could
|
|
16
|
-
* only fail where nobody would see it. `safePath.relative` says "not under this
|
|
17
|
-
* root" with a `..`-prefixed path in the ordinary case, but returns an ABSOLUTE
|
|
18
|
-
* path when no relative route exists at all — which on Windows is exactly what a
|
|
19
|
-
* different drive letter produces. Without the third test, `vat claude context
|
|
20
|
-
* D:\elsewhere\doc.md` run from a `C:` repo passes the guard and answers `kind:
|
|
21
|
-
* unknown`, indistinguishable from a typo inside the tree, which is the one
|
|
22
|
-
* outcome {@link targetPathWithin}'s `@throws` claims to prevent. Its sibling
|
|
23
|
-
* `escapesRoot` (`closure-extent.ts`) applies the same triple for the same
|
|
24
|
-
* reason.
|
|
25
|
-
*
|
|
26
|
-
* ⛔ Exported so it can be TESTED. On POSIX `safePath.relative` between two
|
|
27
|
-
* absolute paths never returns an absolute string, so the third clause is
|
|
28
|
-
* unreachable through {@link targetPathWithin} on every machine a developer
|
|
29
|
-
* runs — the branch has to be exercised directly or not at all, and "not at
|
|
30
|
-
* all" is how it went missing in the first place.
|
|
31
|
-
*
|
|
32
|
-
* @param normalizedRelative - A forward-slashed path already stated against the
|
|
33
|
-
* corpus root
|
|
34
|
-
* @returns True when the corpus root does not contain it
|
|
35
|
-
*/
|
|
36
|
-
export function escapesCorpusRoot(normalizedRelative) {
|
|
37
|
-
return normalizedRelative === '..'
|
|
38
|
-
|| normalizedRelative.startsWith('../')
|
|
39
|
-
|| isAbsoluteAnyPlatform(normalizedRelative);
|
|
40
|
-
}
|
|
14
|
+
import { relativeEscapesRoot, safePath } from '@vibe-agent-toolkit/utils';
|
|
41
15
|
/**
|
|
42
16
|
* The root-relative path to query, refusing anything outside the corpus.
|
|
43
17
|
*
|
|
@@ -51,7 +25,7 @@ export function escapesCorpusRoot(normalizedRelative) {
|
|
|
51
25
|
*/
|
|
52
26
|
export function targetPathWithin(root, pathArg, commandName) {
|
|
53
27
|
const relative = safePath.relative(root, safePath.resolve(process.cwd(), pathArg ?? '.'));
|
|
54
|
-
if (
|
|
28
|
+
if (relativeEscapesRoot(relative)) {
|
|
55
29
|
throw new Error(`${pathArg ?? process.cwd()} resolves outside the corpus root ${root}.`
|
|
56
30
|
+ ` ${commandName} answers only for paths inside the root it discovered —`
|
|
57
31
|
+ ' run it from within the project you mean to ask about.');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corpus-target.js","sourceRoot":"","sources":["../../src/utils/corpus-target.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"corpus-target.js","sourceRoot":"","sources":["../../src/utils/corpus-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1E;;;;;;;;;;GAUG;AACH,MAAM,UAAU,gBAAgB,CAC9B,IAAY,EACZ,OAA2B,EAC3B,WAAmB;IAEnB,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC;IAC1F,IAAI,mBAAmB,CAAC,QAAQ,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CACb,GAAG,OAAO,IAAI,OAAO,CAAC,GAAG,EAAE,qCAAqC,IAAI,GAAG;cACrE,IAAI,WAAW,yDAAyD;cACxE,wDAAwD,CAC3D,CAAC;IACJ,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluating the authored-link lens over a populated projection, so SQL can ask
|
|
3
|
+
* about edges.
|
|
4
|
+
*
|
|
5
|
+
* ## Why the CLI does this rather than the population
|
|
6
|
+
*
|
|
7
|
+
* `edges` and `edge_resolutions` are derived per lens, and the set of lenses is
|
|
8
|
+
* not known at population time — zones.md §2: *"A lens may be declared in config
|
|
9
|
+
* **or invented on demand** to answer a question nobody anticipated."* So a
|
|
10
|
+
* population cannot produce them without first inventing the lens, which is a
|
|
11
|
+
* question, not a fact. Inventing one here costs a definition and a pass over
|
|
12
|
+
* rows already in memory; it commits the data model to nothing, and the rows go
|
|
13
|
+
* into the per-run in-memory database that `projection-query.ts` guarantees
|
|
14
|
+
* holds this tree and nothing else.
|
|
15
|
+
*
|
|
16
|
+
* ## One lens per extent, and the extent is the thing worth naming
|
|
17
|
+
*
|
|
18
|
+
* A corpus has more than one extent — this repository has two, `filesystem`
|
|
19
|
+
* (the tracked tree) and `agentic-convention` (the CLAUDE.md closure) — and an
|
|
20
|
+
* edge relation over one is a different relation from an edge relation over the
|
|
21
|
+
* other. Evaluating every extent and keying the rows on the lens's own
|
|
22
|
+
* `contextId` means a caller SELECTs the population they meant, rather than
|
|
23
|
+
* silently getting whichever one happened to be evaluated. `lens_contexts` says
|
|
24
|
+
* which lenses exist and which extent each reads over, so the join is
|
|
25
|
+
* discoverable from SQL alone.
|
|
26
|
+
*
|
|
27
|
+
* ⚠️ **Only `species: 'extent'` rows are read over.** A lens over a lens is not
|
|
28
|
+
* a thing this evaluation models, and `resolution_contexts` holds no lens rows
|
|
29
|
+
* anyway — nothing in the population mints one. The filter is there so that
|
|
30
|
+
* stops being true loudly rather than silently if something ever does.
|
|
31
|
+
*/
|
|
32
|
+
import { type Projection, type ResolutionContextRow } from '@vibe-agent-toolkit/resources';
|
|
33
|
+
/**
|
|
34
|
+
* The rows one sweep of the corpus produced, ready for `writeDerived`.
|
|
35
|
+
*
|
|
36
|
+
* 🪤 **The three field names must be `DERIVED_TABLES`' own keys, and nothing
|
|
37
|
+
* used to check that.** `writeDerived` looks each relation up by
|
|
38
|
+
* `bundle[spec.key]`, and every member of `DerivedRows` is optional — so
|
|
39
|
+
* renaming a derived relation left this interface spelling the OLD name, which
|
|
40
|
+
* type-checked cleanly as a tolerated excess property while the renamed
|
|
41
|
+
* relation was silently never written. Verified: the rename compiled with zero
|
|
42
|
+
* errors under `--strict`.
|
|
43
|
+
*
|
|
44
|
+
* The `satisfies` below is what makes the correspondence real rather than a
|
|
45
|
+
* coincidence of spelling — a renamed relation now fails to compile here.
|
|
46
|
+
*/
|
|
47
|
+
export interface EvaluatedLenses {
|
|
48
|
+
readonly lensContexts: readonly ResolutionContextRow[];
|
|
49
|
+
readonly edges: readonly Record<string, unknown>[];
|
|
50
|
+
readonly edgeResolutions: readonly Record<string, unknown>[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Every key of {@link EvaluatedLenses} names a real derived relation.
|
|
54
|
+
*
|
|
55
|
+
* A compile-time assertion with no runtime cost beyond one frozen object: it
|
|
56
|
+
* pins the field names of `EvaluatedLenses` to `DerivedTableName`, which is
|
|
57
|
+
* the correspondence `writeDerived` depends on and cannot express itself.
|
|
58
|
+
*/
|
|
59
|
+
export declare const EVALUATED_LENS_RELATIONS: {
|
|
60
|
+
readonly lensContexts: true;
|
|
61
|
+
readonly edges: true;
|
|
62
|
+
readonly edgeResolutions: true;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Evaluate the authored-link lens over every extent in a projection.
|
|
66
|
+
*
|
|
67
|
+
* @param projection - A populated projection
|
|
68
|
+
* @returns The lens rows and the two relations, in step with each other
|
|
69
|
+
*/
|
|
70
|
+
export declare function evaluateAuthoredLenses(projection: Projection): EvaluatedLenses;
|
|
71
|
+
/**
|
|
72
|
+
* The lens id for one extent's authored-link view.
|
|
73
|
+
*
|
|
74
|
+
* Derived from the extent's own id rather than minted fresh, so the same tree
|
|
75
|
+
* produces the same lens id on every run and a reader can predict it. It is
|
|
76
|
+
* NOT a digest: nothing here needs collision resistance, and a readable id is
|
|
77
|
+
* what makes `WHERE contextId = …` writable by hand.
|
|
78
|
+
*
|
|
79
|
+
* @param extentContextId - The extent this lens reads over
|
|
80
|
+
* @returns The lens's `contextId`
|
|
81
|
+
*/
|
|
82
|
+
export declare function authoredLensId(extentContextId: string): string;
|
|
83
|
+
//# sourceMappingURL=edge-lens-evaluation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-lens-evaluation.d.ts","sourceRoot":"","sources":["../../src/utils/edge-lens-evaluation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAKL,KAAK,UAAU,EACf,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAavC;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,YAAY,EAAE,SAAS,oBAAoB,EAAE,CAAC;IACvD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IACnD,QAAQ,CAAC,eAAe,EAAE,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CAC9D;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;CAEqE,CAAC;AAE3G;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,UAAU,GAAG,eAAe,CAsC9E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAE9D"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Evaluating the authored-link lens over a populated projection, so SQL can ask
|
|
3
|
+
* about edges.
|
|
4
|
+
*
|
|
5
|
+
* ## Why the CLI does this rather than the population
|
|
6
|
+
*
|
|
7
|
+
* `edges` and `edge_resolutions` are derived per lens, and the set of lenses is
|
|
8
|
+
* not known at population time — zones.md §2: *"A lens may be declared in config
|
|
9
|
+
* **or invented on demand** to answer a question nobody anticipated."* So a
|
|
10
|
+
* population cannot produce them without first inventing the lens, which is a
|
|
11
|
+
* question, not a fact. Inventing one here costs a definition and a pass over
|
|
12
|
+
* rows already in memory; it commits the data model to nothing, and the rows go
|
|
13
|
+
* into the per-run in-memory database that `projection-query.ts` guarantees
|
|
14
|
+
* holds this tree and nothing else.
|
|
15
|
+
*
|
|
16
|
+
* ## One lens per extent, and the extent is the thing worth naming
|
|
17
|
+
*
|
|
18
|
+
* A corpus has more than one extent — this repository has two, `filesystem`
|
|
19
|
+
* (the tracked tree) and `agentic-convention` (the CLAUDE.md closure) — and an
|
|
20
|
+
* edge relation over one is a different relation from an edge relation over the
|
|
21
|
+
* other. Evaluating every extent and keying the rows on the lens's own
|
|
22
|
+
* `contextId` means a caller SELECTs the population they meant, rather than
|
|
23
|
+
* silently getting whichever one happened to be evaluated. `lens_contexts` says
|
|
24
|
+
* which lenses exist and which extent each reads over, so the join is
|
|
25
|
+
* discoverable from SQL alone.
|
|
26
|
+
*
|
|
27
|
+
* ⚠️ **Only `species: 'extent'` rows are read over.** A lens over a lens is not
|
|
28
|
+
* a thing this evaluation models, and `resolution_contexts` holds no lens rows
|
|
29
|
+
* anyway — nothing in the population mints one. The filter is there so that
|
|
30
|
+
* stops being true loudly rather than silently if something ever does.
|
|
31
|
+
*/
|
|
32
|
+
import { AUTHORED_EDGE_FORMS, buildReferenceIndex, resolveEdges, } from '@vibe-agent-toolkit/resources';
|
|
33
|
+
/**
|
|
34
|
+
* The lens kind these evaluations declare.
|
|
35
|
+
*
|
|
36
|
+
* `ZoneKindSchema` is an open vocabulary, so this names the POLICY rather than
|
|
37
|
+
* the mechanism: what makes two of these lenses the same is that both admit the
|
|
38
|
+
* authored forms and nothing else. A lens that promoted bare tokens would be a
|
|
39
|
+
* different kind, not a variant of this one, because the two answer differently
|
|
40
|
+
* by an order of magnitude and a reader comparing them must be able to tell.
|
|
41
|
+
*/
|
|
42
|
+
const AUTHORED_LENS_KIND = 'authored-link';
|
|
43
|
+
/**
|
|
44
|
+
* Every key of {@link EvaluatedLenses} names a real derived relation.
|
|
45
|
+
*
|
|
46
|
+
* A compile-time assertion with no runtime cost beyond one frozen object: it
|
|
47
|
+
* pins the field names of `EvaluatedLenses` to `DerivedTableName`, which is
|
|
48
|
+
* the correspondence `writeDerived` depends on and cannot express itself.
|
|
49
|
+
*/
|
|
50
|
+
export const EVALUATED_LENS_RELATIONS = {
|
|
51
|
+
lensContexts: true, edges: true, edgeResolutions: true,
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Evaluate the authored-link lens over every extent in a projection.
|
|
55
|
+
*
|
|
56
|
+
* @param projection - A populated projection
|
|
57
|
+
* @returns The lens rows and the two relations, in step with each other
|
|
58
|
+
*/
|
|
59
|
+
export function evaluateAuthoredLenses(projection) {
|
|
60
|
+
const lensContexts = [];
|
|
61
|
+
const edges = [];
|
|
62
|
+
const edgeResolutions = [];
|
|
63
|
+
// Built ONCE for every lens. It is a pure function of `blob_references` and
|
|
64
|
+
// reads nothing from a lens, so rebuilding it per extent is duplicated work a
|
|
65
|
+
// one-member extent would pay in full — 43 ms at one extent against 713 ms at
|
|
66
|
+
// ten, measured on this repository.
|
|
67
|
+
const referencesByBlob = buildReferenceIndex(projection);
|
|
68
|
+
for (const context of projection.resolutionContexts) {
|
|
69
|
+
if (context.species !== 'extent')
|
|
70
|
+
continue;
|
|
71
|
+
const contextId = authoredLensId(context.contextId);
|
|
72
|
+
lensContexts.push({
|
|
73
|
+
contextId,
|
|
74
|
+
species: 'lens',
|
|
75
|
+
kind: AUTHORED_LENS_KIND,
|
|
76
|
+
rootId: context.rootId,
|
|
77
|
+
extentContextId: context.contextId,
|
|
78
|
+
// Null because this lens's kind is not `tree`; the schema refuses a role
|
|
79
|
+
// on any other kind, which is that check doing its job rather than a
|
|
80
|
+
// field being forgotten.
|
|
81
|
+
role: null,
|
|
82
|
+
});
|
|
83
|
+
const relation = resolveEdges(projection, {
|
|
84
|
+
contextId,
|
|
85
|
+
extentContextId: context.contextId,
|
|
86
|
+
forms: AUTHORED_EDGE_FORMS,
|
|
87
|
+
// Ordinary markdown. `claude-import` is the other dialect and belongs to
|
|
88
|
+
// the `@`-import forms, which the authored-only policy does not admit.
|
|
89
|
+
dialect: 'href',
|
|
90
|
+
}, { referencesByBlob });
|
|
91
|
+
edges.push(...relation.edges);
|
|
92
|
+
edgeResolutions.push(...relation.edgeResolutions);
|
|
93
|
+
}
|
|
94
|
+
return { lensContexts, edges, edgeResolutions };
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* The lens id for one extent's authored-link view.
|
|
98
|
+
*
|
|
99
|
+
* Derived from the extent's own id rather than minted fresh, so the same tree
|
|
100
|
+
* produces the same lens id on every run and a reader can predict it. It is
|
|
101
|
+
* NOT a digest: nothing here needs collision resistance, and a readable id is
|
|
102
|
+
* what makes `WHERE contextId = …` writable by hand.
|
|
103
|
+
*
|
|
104
|
+
* @param extentContextId - The extent this lens reads over
|
|
105
|
+
* @returns The lens's `contextId`
|
|
106
|
+
*/
|
|
107
|
+
export function authoredLensId(extentContextId) {
|
|
108
|
+
return `lens-${AUTHORED_LENS_KIND}-${extentContextId}`;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=edge-lens-evaluation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge-lens-evaluation.js","sourceRoot":"","sources":["../../src/utils/edge-lens-evaluation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,GAIb,MAAM,+BAA+B,CAAC;AAEvC;;;;;;;;GAQG;AACH,MAAM,kBAAkB,GAAG,eAAe,CAAC;AAsB3C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI;CACkD,CAAC;AAE3G;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CAAC,UAAsB;IAC3D,MAAM,YAAY,GAA2B,EAAE,CAAC;IAChD,MAAM,KAAK,GAA8B,EAAE,CAAC;IAC5C,MAAM,eAAe,GAA8B,EAAE,CAAC;IAEtD,4EAA4E;IAC5E,8EAA8E;IAC9E,8EAA8E;IAC9E,oCAAoC;IACpC,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAEzD,KAAK,MAAM,OAAO,IAAI,UAAU,CAAC,kBAAkB,EAAE,CAAC;QACpD,IAAI,OAAO,CAAC,OAAO,KAAK,QAAQ;YAAE,SAAS;QAC3C,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACpD,YAAY,CAAC,IAAI,CAAC;YAChB,SAAS;YACT,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,kBAAkB;YACxB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,eAAe,EAAE,OAAO,CAAC,SAAS;YAClC,yEAAyE;YACzE,qEAAqE;YACrE,yBAAyB;YACzB,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG,YAAY,CAAC,UAAU,EAAE;YACxC,SAAS;YACT,eAAe,EAAE,OAAO,CAAC,SAAS;YAClC,KAAK,EAAE,mBAAmB;YAC1B,yEAAyE;YACzE,uEAAuE;YACvE,OAAO,EAAE,MAAM;SAChB,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC;QACzB,KAAK,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC9B,eAAe,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;IACpD,CAAC;IAED,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,eAAe,EAAE,CAAC;AAClD,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,cAAc,CAAC,eAAuB;IACpD,OAAO,QAAQ,kBAAkB,IAAI,eAAe,EAAE,CAAC;AACzD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-loader.d.ts","sourceRoot":"","sources":["../../src/utils/help-loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"help-loader.d.ts","sourceRoot":"","sources":["../../src/utils/help-loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAwBxD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEnD"}
|
|
@@ -21,7 +21,6 @@ export function loadVerboseHelp(section) {
|
|
|
21
21
|
const filename = section ? `${section}.md` : 'index.md';
|
|
22
22
|
const helpPath = safePath.join(packageRoot, 'docs', filename);
|
|
23
23
|
try {
|
|
24
|
-
// eslint-disable-next-line security/detect-non-literal-fs-filename -- path is constructed from known safe components
|
|
25
24
|
const content = readFileSync(helpPath, 'utf-8');
|
|
26
25
|
return content;
|
|
27
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"help-loader.js","sourceRoot":"","sources":["../../src/utils/help-loader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,OAAgB;IAC9C,mCAAmC;IACnC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1D,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAEtD,wCAAwC;IACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;IACxD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EhC,YAAY;;;CAGb,CAAC;IACA,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe;IAC3C,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -177,8 +177,8 @@ export declare function formatCollapsedFindingsHint(collapsed: number, report: s
|
|
|
177
177
|
* is not: `files.dependencies` carries only what the link-graph walk discovered, so
|
|
178
178
|
* every file `files:` copied in — each glob match, plus any explicit entry the walk
|
|
179
179
|
* had not already bundled — is absent from the total. A bundle holding SKILL.md, one
|
|
180
|
-
* linked doc and one declared artifact prints `2 files`. That undercount is
|
|
181
|
-
*
|
|
180
|
+
* linked doc and one declared artifact prints `2 files`. That undercount is a
|
|
181
|
+
* report-shape defect and is deliberately NOT patched here; this wording is only the part that can
|
|
182
182
|
* be made true today, so nobody reads the number as an inventory of the output.
|
|
183
183
|
*
|
|
184
184
|
* The `+ 1` is the bundle's root `SKILL.md`, which `files.dependencies` does not
|
|
@@ -259,8 +259,8 @@ export function formatCollapsedFindingsHint(collapsed, report) {
|
|
|
259
259
|
* is not: `files.dependencies` carries only what the link-graph walk discovered, so
|
|
260
260
|
* every file `files:` copied in — each glob match, plus any explicit entry the walk
|
|
261
261
|
* had not already bundled — is absent from the total. A bundle holding SKILL.md, one
|
|
262
|
-
* linked doc and one declared artifact prints `2 files`. That undercount is
|
|
263
|
-
*
|
|
262
|
+
* linked doc and one declared artifact prints `2 files`. That undercount is a
|
|
263
|
+
* report-shape defect and is deliberately NOT patched here; this wording is only the part that can
|
|
264
264
|
* be made true today, so nobody reads the number as an inventory of the output.
|
|
265
265
|
*
|
|
266
266
|
* The `+ 1` is the bundle's root `SKILL.md`, which `files.dependencies` does not
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
* ## Why this exists rather than four `await import()` calls
|
|
6
6
|
*
|
|
7
7
|
* `@vibe-agent-toolkit/rag-lancedb` pulls a platform-native LanceDB binary
|
|
8
|
-
* (
|
|
9
|
-
* `onnxruntime-web` (
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* (97.8 MB unpacked on `darwin-arm64`, and larger still on `win32-x64`, where
|
|
9
|
+
* it measured 119.6 MiB) plus `onnxruntime-web` (137.5 MB) and `gpt-tokenizer`
|
|
10
|
+
* (42.2 MB). Summed over the RAG lane's third-party closure against this
|
|
11
|
+
* release's pins, on `darwin-arm64`: **~287 MB unpacked**, and a static import
|
|
12
|
+
* chain from `bin.ts` meant
|
|
12
13
|
* `import('@lancedb/lancedb')` — **1,350 ms cold** — ran before `vat --version`
|
|
13
14
|
* could print a string. It is a named seam rather than a one-off fix because
|
|
14
15
|
* "optional backend" is a shape VAT keeps growing — a projection store is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optional-backend.d.ts","sourceRoot":"","sources":["../../src/utils/optional-backend.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"optional-backend.d.ts","sourceRoot":"","sources":["../../src/utils/optional-backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAoBH;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAOvD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe,GAAG,KAAK,CAcpE;AAED,6DAA6D;AAC7D,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,0EAA0E;IAC1E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,CAAC,IAAI,SAAS,SAAS,OAAO,EAAE,EACxD,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,GAC9C,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAalC"}
|
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
* ## Why this exists rather than four `await import()` calls
|
|
6
6
|
*
|
|
7
7
|
* `@vibe-agent-toolkit/rag-lancedb` pulls a platform-native LanceDB binary
|
|
8
|
-
* (
|
|
9
|
-
* `onnxruntime-web` (
|
|
10
|
-
*
|
|
11
|
-
*
|
|
8
|
+
* (97.8 MB unpacked on `darwin-arm64`, and larger still on `win32-x64`, where
|
|
9
|
+
* it measured 119.6 MiB) plus `onnxruntime-web` (137.5 MB) and `gpt-tokenizer`
|
|
10
|
+
* (42.2 MB). Summed over the RAG lane's third-party closure against this
|
|
11
|
+
* release's pins, on `darwin-arm64`: **~287 MB unpacked**, and a static import
|
|
12
|
+
* chain from `bin.ts` meant
|
|
12
13
|
* `import('@lancedb/lancedb')` — **1,350 ms cold** — ran before `vat --version`
|
|
13
14
|
* could print a string. It is a named seam rather than a one-off fix because
|
|
14
15
|
* "optional backend" is a shape VAT keeps growing — a projection store is
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
// of the rag lane's shared helpers live: that module statically imports
|
|
25
26
|
// `@vibe-agent-toolkit/rag-lancedb`, so reaching for its `handleCommandError`
|
|
26
27
|
// here would load the very backend this file exists to defer.
|
|
28
|
+
import { ExitCode } from '@vibe-agent-toolkit/schema';
|
|
27
29
|
import { writeYamlOutput } from './output.js';
|
|
28
30
|
/**
|
|
29
31
|
* Node's code for "the module is genuinely not installed".
|
|
@@ -77,7 +79,7 @@ export function reportMissingBackend(backend) {
|
|
|
77
79
|
error: `${backend.feature} backend not installed: ${backend.packageName}`,
|
|
78
80
|
fix: install,
|
|
79
81
|
});
|
|
80
|
-
process.exit(
|
|
82
|
+
process.exit(ExitCode.ERROR);
|
|
81
83
|
}
|
|
82
84
|
/**
|
|
83
85
|
* Bind a Commander action that loads its implementation on first invocation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optional-backend.js","sourceRoot":"","sources":["../../src/utils/optional-backend.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"optional-backend.js","sourceRoot":"","sources":["../../src/utils/optional-backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,8EAA8E;AAC9E,wEAAwE;AACxE,8EAA8E;AAC9E,8DAA8D;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;GAOG;AACH,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;AAEhD;;;;;;;;GAQG;AACH,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;WACtB,KAAK,KAAK,IAAI;WACd,MAAM,IAAI,KAAK;WACd,KAA4B,CAAC,IAAI,KAAK,gBAAgB,CAC3D,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAwB;IAC3D,MAAM,OAAO,GAAG,eAAe,OAAO,CAAC,WAAW,EAAE,CAAC;IACrD,OAAO,CAAC,MAAM,CAAC,KAAK,CAClB,GAAG,OAAO,CAAC,OAAO,6DAA6D;UAC7E,uBAAuB,OAAO,IAAI;UAClC,gFAAgF;UAChF,wDAAwD,CAC3D,CAAC;IACF,eAAe,CAAC;QACd,MAAM,EAAE,OAAO;QACf,KAAK,EAAE,GAAG,OAAO,CAAC,OAAO,2BAA2B,OAAO,CAAC,WAAW,EAAE;QACzE,GAAG,EAAE,OAAO;KACb,CAAC,CAAC;IACH,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAUD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,UAAU,UAAU,CACxB,OAAwB,EACxB,IAA+C;IAE/C,OAAO,KAAK,EAAE,GAAG,IAAU,EAAiB,EAAE;QAC5C,IAAI,OAA0C,CAAC;QAC/C,IAAI,CAAC;YACH,OAAO,GAAG,MAAM,IAAI,EAAE,CAAC;QACzB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC5B,MAAM,KAAK,CAAC;YACd,CAAC;YACD,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAChC,CAAC;QACD,MAAM,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;IACzB,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/utils/output.d.ts
CHANGED
|
@@ -93,6 +93,15 @@ export declare function writeYamlOutput(data: unknown): void;
|
|
|
93
93
|
* @param data - Data to serialize as JSON
|
|
94
94
|
*/
|
|
95
95
|
export declare function writeJsonOutput(data: unknown): void;
|
|
96
|
+
/**
|
|
97
|
+
* Write one structured document in the format a `--format` option selected:
|
|
98
|
+
* `json` → {@link writeJsonOutput}; anything else (including an absent option)
|
|
99
|
+
* → {@link writeYamlOutput}, the CLI's default document format.
|
|
100
|
+
*
|
|
101
|
+
* @param data - The document
|
|
102
|
+
* @param format - The selected format (`json`, or anything else for YAML)
|
|
103
|
+
*/
|
|
104
|
+
export declare function writeStructuredOutput(data: unknown, format: string | undefined): void;
|
|
96
105
|
/**
|
|
97
106
|
* Write a test-format finding to stderr.
|
|
98
107
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.d.ts","sourceRoot":"","sources":["../../src/utils/output.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAKrD;AAED;;;;;GAKG;AACH,MAAM,MA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,CAAC,EAAE,CAAC,kBAAkB,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3D;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,mBAAwB,GAChC,IAAI,CA+BN;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAWnD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAEnD;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAMrF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACd,IAAI,CAEN"}
|
package/dist/utils/output.js
CHANGED
|
@@ -157,6 +157,22 @@ export function writeYamlOutput(data) {
|
|
|
157
157
|
export function writeJsonOutput(data) {
|
|
158
158
|
process.stdout.write(`${JSON.stringify(data, null, 2)}\n`);
|
|
159
159
|
}
|
|
160
|
+
/**
|
|
161
|
+
* Write one structured document in the format a `--format` option selected:
|
|
162
|
+
* `json` → {@link writeJsonOutput}; anything else (including an absent option)
|
|
163
|
+
* → {@link writeYamlOutput}, the CLI's default document format.
|
|
164
|
+
*
|
|
165
|
+
* @param data - The document
|
|
166
|
+
* @param format - The selected format (`json`, or anything else for YAML)
|
|
167
|
+
*/
|
|
168
|
+
export function writeStructuredOutput(data, format) {
|
|
169
|
+
if (format === 'json') {
|
|
170
|
+
writeJsonOutput(data);
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
writeYamlOutput(data);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
160
176
|
/**
|
|
161
177
|
* Write a test-format finding to stderr.
|
|
162
178
|
*
|
package/dist/utils/output.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output.js","sourceRoot":"","sources":["../../src/utils/output.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,YAAY,CACV,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAChE,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAC7B,CAAC;AACJ,CAAC;AAUD;;;;;;;;;GASG;AACH,MAAM,8BAA8B,GAAG,MAAM,CAAC;AAE9C,uEAAuE;AACvE,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAE/B;;;;;GAKG;AACH,SAAS,SAAS,CAAC,EAAU;IAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;AACnE,CAAC;AAED;;;;GAIG;AACH,SAAS,yBAAyB,CAAC,kBAA0B;IAC3D,IAAI,kBAAkB,GAAG,mBAAmB;QAAE,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC;AASD;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,YAAY,CAC1B,KAAiB,EACjB,MAAc,EACd,UAA+B,EAAE;IAEjC,MAAM,UAAU,GAAG,OAAO,CAAC,qBAAqB,IAAI,8BAA8B,CAAC;IACnF,MAAM,IAAI,GAAG,OAAO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,CAAC;YACD,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,eAAe,CAAC,IAAa;IAC3C,4EAA4E;IAC5E,wEAAwE;IACxE,4EAA4E;IAC5E,8EAA8E;IAC9E,2DAA2D;IAC3D,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE;QAChD,MAAM,EAAE,CAAC;QACT,SAAS,EAAE,GAAG;QACd,qBAAqB,EAAE,KAAK;KAC7B,CAAC,EAAE,CAAC,CAAC;AACR,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,eAAe,CAAC,IAAa;IAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC;AAC7D,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAa,EAAE,MAA0B;IAC7E,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,eAAe,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;SAAM,CAAC;QACN,eAAe,CAAC,IAAI,CAAC,CAAC;IACxB,CAAC;AACH,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAY,EACZ,IAAY,EACZ,MAAc,EACd,QAAgB,EAChB,OAAe;IAEf,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,IAAI,IAAI,MAAM,KAAK,QAAQ,KAAK,OAAO,IAAI,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One reading of a project's `package.json` for the lanes that want an
|
|
3
|
+
* OPTIONAL field out of it — a `version` to stamp, a `vat.skills` list, a
|
|
4
|
+
* `files` allowlist.
|
|
5
|
+
*
|
|
6
|
+
* Every one of those lanes used to spell the read as `existsSync` →
|
|
7
|
+
* `readFileSync` → `JSON.parse` inside one `try { … } catch { return <absent> }`,
|
|
8
|
+
* which made "there is no package.json" indistinguishable from "there is one
|
|
9
|
+
* and it is not JSON" and from "there is one and the OS refused it". The first
|
|
10
|
+
* is the sentinel's meaning; the other two were reported as it — a build
|
|
11
|
+
* stamped no version, a consistency check verified nothing, and neither said
|
|
12
|
+
* why. npm itself refuses a manifest it cannot parse, so a tree with one is
|
|
13
|
+
* already broken; the reader's job is to say so, not to proceed around it.
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* The parsed manifest, or `undefined` when there is none at `pkgPath`.
|
|
17
|
+
*
|
|
18
|
+
* @throws {Error} naming the file when it exists but is not a JSON object;
|
|
19
|
+
* the parse error is the `cause`.
|
|
20
|
+
* @throws whatever the filesystem threw for anything that is not an absence
|
|
21
|
+
* (a refusal stays a refusal).
|
|
22
|
+
*/
|
|
23
|
+
export declare function readPackageJsonOrAbsent(pkgPath: string): Record<string, unknown> | undefined;
|
|
24
|
+
//# sourceMappingURL=package-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/utils/package-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAoB5F"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One reading of a project's `package.json` for the lanes that want an
|
|
3
|
+
* OPTIONAL field out of it — a `version` to stamp, a `vat.skills` list, a
|
|
4
|
+
* `files` allowlist.
|
|
5
|
+
*
|
|
6
|
+
* Every one of those lanes used to spell the read as `existsSync` →
|
|
7
|
+
* `readFileSync` → `JSON.parse` inside one `try { … } catch { return <absent> }`,
|
|
8
|
+
* which made "there is no package.json" indistinguishable from "there is one
|
|
9
|
+
* and it is not JSON" and from "there is one and the OS refused it". The first
|
|
10
|
+
* is the sentinel's meaning; the other two were reported as it — a build
|
|
11
|
+
* stamped no version, a consistency check verified nothing, and neither said
|
|
12
|
+
* why. npm itself refuses a manifest it cannot parse, so a tree with one is
|
|
13
|
+
* already broken; the reader's job is to say so, not to proceed around it.
|
|
14
|
+
*/
|
|
15
|
+
import { readFileSync } from 'node:fs';
|
|
16
|
+
import { isPathAbsentError } from '@vibe-agent-toolkit/utils';
|
|
17
|
+
/**
|
|
18
|
+
* The parsed manifest, or `undefined` when there is none at `pkgPath`.
|
|
19
|
+
*
|
|
20
|
+
* @throws {Error} naming the file when it exists but is not a JSON object;
|
|
21
|
+
* the parse error is the `cause`.
|
|
22
|
+
* @throws whatever the filesystem threw for anything that is not an absence
|
|
23
|
+
* (a refusal stays a refusal).
|
|
24
|
+
*/
|
|
25
|
+
export function readPackageJsonOrAbsent(pkgPath) {
|
|
26
|
+
let raw;
|
|
27
|
+
try {
|
|
28
|
+
raw = readFileSync(pkgPath, 'utf-8');
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
if (isPathAbsentError(error))
|
|
32
|
+
return undefined;
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
let parsed;
|
|
36
|
+
try {
|
|
37
|
+
parsed = JSON.parse(raw);
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
if (!(error instanceof SyntaxError))
|
|
41
|
+
throw error;
|
|
42
|
+
throw new Error(`${pkgPath} is not valid JSON: ${error.message}`, { cause: error });
|
|
43
|
+
}
|
|
44
|
+
if (typeof parsed !== 'object' || parsed === null || Array.isArray(parsed)) {
|
|
45
|
+
throw new Error(`${pkgPath} is not a JSON object, so it is not a package manifest`);
|
|
46
|
+
}
|
|
47
|
+
return parsed;
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=package-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-json.js","sourceRoot":"","sources":["../../src/utils/package-json.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;;;GAOG;AACH,MAAM,UAAU,uBAAuB,CAAC,OAAe;IACrD,IAAI,GAAW,CAAC;IAChB,IAAI,CAAC;QACH,GAAG,GAAG,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,iBAAiB,CAAC,KAAK,CAAC;YAAE,OAAO,SAAS,CAAC;QAC/C,MAAM,KAAK,CAAC;IACd,CAAC;IAED,IAAI,MAAe,CAAC;IACpB,IAAI,CAAC;QACH,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,CAAC,CAAC,KAAK,YAAY,WAAW,CAAC;YAAE,MAAM,KAAK,CAAC;QACjD,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,uBAAuB,KAAK,CAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;IACtF,CAAC;IACD,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3E,MAAM,IAAI,KAAK,CAAC,GAAG,OAAO,wDAAwD,CAAC,CAAC;IACtF,CAAC;IACD,OAAO,MAAiC,CAAC;AAC3C,CAAC"}
|
|
@@ -30,4 +30,24 @@ export declare function projectRootOrLoudCwd(startDir: string, logger: Logger):
|
|
|
30
30
|
* `tolerate null` policy — return `string | null`; caller handles either case.
|
|
31
31
|
*/
|
|
32
32
|
export declare function projectRootOrNull(startDir: string): string | null;
|
|
33
|
+
/**
|
|
34
|
+
* Fail loudly on a `[path]` argument that names no directory.
|
|
35
|
+
*
|
|
36
|
+
* Every `resources` verb takes an optional `[path]`, and two things can be
|
|
37
|
+
* meant by it: a SCOPE (`scan`, `validate` — crawl this subtree) or a LOCATOR
|
|
38
|
+
* (`query`, `check` — find the project from here; the projection is always the
|
|
39
|
+
* whole tree). Both start by resolving the argument, and both must refuse one
|
|
40
|
+
* that resolves to nothing — the scoping verbs would otherwise degrade into a
|
|
41
|
+
* glob matching nothing (`filesScanned: 0`, green), and the locating verbs
|
|
42
|
+
* walked UP from the missing path to whatever project the cwd is in and
|
|
43
|
+
* answered about THAT tree at exit 0, byte-identical to a correct run.
|
|
44
|
+
*
|
|
45
|
+
* One function so the two families refuse with one message; a reader who saw
|
|
46
|
+
* `validate` say "Path does not exist" should get the same words from `query`.
|
|
47
|
+
*
|
|
48
|
+
* @param pathArg - The argument as typed, relative to cwd or absolute
|
|
49
|
+
* @returns The resolved absolute path
|
|
50
|
+
* @throws When it does not exist or is not a directory
|
|
51
|
+
*/
|
|
52
|
+
export declare function assertDirectoryArgument(pathArg: string): string;
|
|
33
53
|
//# sourceMappingURL=project-root-policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-root-policy.d.ts","sourceRoot":"","sources":["../../src/utils/project-root-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;
|
|
1
|
+
{"version":3,"file":"project-root-policy.d.ts","sourceRoot":"","sources":["../../src/utils/project-root-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAShF;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAQ7E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEjE;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAS/D"}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
* `.action(...)` callbacks). Inner library functions should take the resolved
|
|
13
13
|
* root as a parameter — never call `findProjectRoot` themselves.
|
|
14
14
|
*/
|
|
15
|
+
import { existsSync, statSync } from 'node:fs';
|
|
15
16
|
import { findProjectRoot, safePath } from '@vibe-agent-toolkit/utils';
|
|
16
17
|
/**
|
|
17
18
|
* `required` policy — refuse to run if no projectRoot can be discovered.
|
|
@@ -46,4 +47,33 @@ export function projectRootOrLoudCwd(startDir, logger) {
|
|
|
46
47
|
export function projectRootOrNull(startDir) {
|
|
47
48
|
return findProjectRoot(startDir);
|
|
48
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Fail loudly on a `[path]` argument that names no directory.
|
|
52
|
+
*
|
|
53
|
+
* Every `resources` verb takes an optional `[path]`, and two things can be
|
|
54
|
+
* meant by it: a SCOPE (`scan`, `validate` — crawl this subtree) or a LOCATOR
|
|
55
|
+
* (`query`, `check` — find the project from here; the projection is always the
|
|
56
|
+
* whole tree). Both start by resolving the argument, and both must refuse one
|
|
57
|
+
* that resolves to nothing — the scoping verbs would otherwise degrade into a
|
|
58
|
+
* glob matching nothing (`filesScanned: 0`, green), and the locating verbs
|
|
59
|
+
* walked UP from the missing path to whatever project the cwd is in and
|
|
60
|
+
* answered about THAT tree at exit 0, byte-identical to a correct run.
|
|
61
|
+
*
|
|
62
|
+
* One function so the two families refuse with one message; a reader who saw
|
|
63
|
+
* `validate` say "Path does not exist" should get the same words from `query`.
|
|
64
|
+
*
|
|
65
|
+
* @param pathArg - The argument as typed, relative to cwd or absolute
|
|
66
|
+
* @returns The resolved absolute path
|
|
67
|
+
* @throws When it does not exist or is not a directory
|
|
68
|
+
*/
|
|
69
|
+
export function assertDirectoryArgument(pathArg) {
|
|
70
|
+
const resolved = safePath.resolve(pathArg);
|
|
71
|
+
if (!existsSync(resolved)) {
|
|
72
|
+
throw new Error(`Path does not exist: ${resolved}`);
|
|
73
|
+
}
|
|
74
|
+
if (!statSync(resolved).isDirectory()) {
|
|
75
|
+
throw new Error(`Path is not a directory: ${resolved}`);
|
|
76
|
+
}
|
|
77
|
+
return resolved;
|
|
78
|
+
}
|
|
49
79
|
//# sourceMappingURL=project-root-policy.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-root-policy.js","sourceRoot":"","sources":["../../src/utils/project-root-policy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAItE;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAgB,EAAE,WAAmB;IACtE,MAAM,IAAI,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IACvC,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CACb,GAAG,WAAW,gEAAgE;YAC5E,kDAAkD,CACrD,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,QAAgB,EAAE,MAAc;IACnE,MAAM,IAAI,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IACvC,IAAI,IAAI,KAAK,IAAI;QAAE,OAAO,IAAI,CAAC;IAC/B,MAAM,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvC,MAAM,CAAC,IAAI,CACT,oEAAoE,GAAG,iBAAiB,CACz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