@vibe-agent-toolkit/cli 0.1.42 → 0.2.0-rc.10
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 +95 -28
- package/dist/bin/vat.js +95 -28
- package/dist/bin/vat.js.map +1 -1
- package/dist/bin.js +137 -76
- package/dist/bin.js.map +1 -1
- package/dist/command-loaders.d.ts +44 -0
- package/dist/command-loaders.d.ts.map +1 -0
- package/dist/command-loaders.js +60 -0
- package/dist/command-loaders.js.map +1 -0
- 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/index.js +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 +66 -13
- 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 +60 -2
- package/dist/commands/audit/distributed-tree.d.ts.map +1 -1
- package/dist/commands/audit/distributed-tree.js +73 -1
- package/dist/commands/audit/distributed-tree.js.map +1 -1
- package/dist/commands/audit/git-url-clone.d.ts +1 -1
- package/dist/commands/audit/git-url-clone.d.ts.map +1 -1
- package/dist/commands/audit/git-url-clone.js.map +1 -1
- package/dist/commands/audit/hierarchical-output.d.ts +1 -1
- package/dist/commands/audit/hierarchical-output.d.ts.map +1 -1
- package/dist/commands/audit/hierarchical-output.js +1 -1
- package/dist/commands/audit/hierarchical-output.js.map +1 -1
- package/dist/commands/audit/provenance.d.ts.map +1 -1
- package/dist/commands/audit/provenance.js +4 -3
- package/dist/commands/audit/provenance.js.map +1 -1
- package/dist/commands/audit/scan-population.d.ts +158 -0
- package/dist/commands/audit/scan-population.d.ts.map +1 -0
- package/dist/commands/audit/scan-population.js +292 -0
- package/dist/commands/audit/scan-population.js.map +1 -0
- package/dist/commands/audit-settings.d.ts.map +1 -1
- package/dist/commands/audit-settings.js +6 -5
- package/dist/commands/audit-settings.js.map +1 -1
- package/dist/commands/audit.d.ts +98 -8
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +1133 -395
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/build.d.ts +1 -1
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +40 -36
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/cache/cache-control.d.ts +82 -0
- package/dist/commands/cache/cache-control.d.ts.map +1 -0
- package/dist/commands/cache/cache-control.js +86 -0
- package/dist/commands/cache/cache-control.js.map +1 -0
- package/dist/commands/cache/clear.d.ts +105 -0
- package/dist/commands/cache/clear.d.ts.map +1 -0
- package/dist/commands/cache/clear.js +248 -0
- package/dist/commands/cache/clear.js.map +1 -0
- package/dist/commands/cache/index.d.ts +18 -0
- package/dist/commands/cache/index.d.ts.map +1 -0
- package/dist/commands/cache/index.js +94 -0
- package/dist/commands/cache/index.js.map +1 -0
- package/dist/commands/claude/claude-config.d.ts.map +1 -1
- package/dist/commands/claude/claude-config.js +6 -0
- package/dist/commands/claude/claude-config.js.map +1 -1
- package/dist/commands/claude/context.d.ts +340 -0
- package/dist/commands/claude/context.d.ts.map +1 -0
- package/dist/commands/claude/context.js +1080 -0
- package/dist/commands/claude/context.js.map +1 -0
- package/dist/commands/claude/index.d.ts +14 -0
- package/dist/commands/claude/index.d.ts.map +1 -1
- package/dist/commands/claude/index.js +22 -2
- package/dist/commands/claude/index.js.map +1 -1
- package/dist/commands/claude/marketplace/changelog-utils.d.ts +1 -1
- package/dist/commands/claude/marketplace/changelog-utils.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/changelog-utils.js +1 -2
- package/dist/commands/claude/marketplace/changelog-utils.js.map +1 -1
- package/dist/commands/claude/marketplace/git-publish.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/git-publish.js +40 -31
- 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 +73 -22
- package/dist/commands/claude/marketplace/validate.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/validate.js +407 -72
- 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 +54 -1
- package/dist/commands/claude/org/helpers.d.ts.map +1 -1
- package/dist/commands/claude/org/helpers.js +42 -7
- package/dist/commands/claude/org/helpers.js.map +1 -1
- package/dist/commands/claude/org/index.d.ts.map +1 -1
- package/dist/commands/claude/org/index.js +24 -16
- package/dist/commands/claude/org/index.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 +527 -0
- package/dist/commands/claude/org/skills.d.ts.map +1 -1
- package/dist/commands/claude/org/skills.js +1414 -108
- 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 +6 -3
- 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 +11 -7
- package/dist/commands/claude/org/workspaces.js.map +1 -1
- package/dist/commands/claude/plugin/build.d.ts +41 -3
- package/dist/commands/claude/plugin/build.d.ts.map +1 -1
- package/dist/commands/claude/plugin/build.js +147 -80
- 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 +2 -7
- 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 +93 -62
- 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/marketplace-json.d.ts +24 -9
- package/dist/commands/claude/plugin/marketplace-json.d.ts.map +1 -1
- package/dist/commands/claude/plugin/marketplace-json.js +10 -9
- package/dist/commands/claude/plugin/marketplace-json.js.map +1 -1
- package/dist/commands/claude/plugin/plugin-changelog.d.ts.map +1 -1
- package/dist/commands/claude/plugin/plugin-changelog.js +0 -2
- package/dist/commands/claude/plugin/plugin-changelog.js.map +1 -1
- package/dist/commands/claude/plugin/plugin-files.d.ts.map +1 -1
- package/dist/commands/claude/plugin/plugin-files.js +3 -6
- package/dist/commands/claude/plugin/plugin-files.js.map +1 -1
- package/dist/commands/claude/plugin/plugin-validators.d.ts.map +1 -1
- package/dist/commands/claude/plugin/plugin-validators.js +3 -6
- package/dist/commands/claude/plugin/plugin-validators.js.map +1 -1
- package/dist/commands/claude/plugin/tree-copy.d.ts +73 -0
- package/dist/commands/claude/plugin/tree-copy.d.ts.map +1 -1
- package/dist/commands/claude/plugin/tree-copy.js +221 -14
- package/dist/commands/claude/plugin/tree-copy.js.map +1 -1
- package/dist/commands/claude/plugin/uninstall.d.ts.map +1 -1
- package/dist/commands/claude/plugin/uninstall.js +4 -4
- package/dist/commands/claude/plugin/uninstall.js.map +1 -1
- package/dist/commands/consistency-check.d.ts +17 -15
- package/dist/commands/consistency-check.d.ts.map +1 -1
- package/dist/commands/consistency-check.js +152 -106
- 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 +1 -2
- 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 +95 -41
- 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 +20 -12
- 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 +50 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +245 -52
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/inventory.d.ts +13 -1
- package/dist/commands/inventory.d.ts.map +1 -1
- package/dist/commands/inventory.js +128 -17
- package/dist/commands/inventory.js.map +1 -1
- package/dist/commands/mcp/collections.d.ts +1 -1
- package/dist/commands/mcp/collections.d.ts.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 +182 -114
- package/dist/commands/phase-utils.d.ts.map +1 -1
- package/dist/commands/phase-utils.js +154 -163
- 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 +3 -2
- 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 +64 -0
- package/dist/commands/rag/index-command.d.ts.map +1 -1
- package/dist/commands/rag/index-command.js +72 -6
- 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 +23 -10
- 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/builtin-help.d.ts +27 -0
- package/dist/commands/resources/builtin-help.d.ts.map +1 -0
- package/dist/commands/resources/builtin-help.js +46 -0
- package/dist/commands/resources/builtin-help.js.map +1 -0
- package/dist/commands/resources/check-progress.d.ts +154 -0
- package/dist/commands/resources/check-progress.d.ts.map +1 -0
- package/dist/commands/resources/check-progress.js +222 -0
- package/dist/commands/resources/check-progress.js.map +1 -0
- package/dist/commands/resources/check-supervisor.d.ts +465 -0
- package/dist/commands/resources/check-supervisor.d.ts.map +1 -0
- package/dist/commands/resources/check-supervisor.js +573 -0
- package/dist/commands/resources/check-supervisor.js.map +1 -0
- package/dist/commands/resources/check.d.ts +593 -0
- package/dist/commands/resources/check.d.ts.map +1 -0
- package/dist/commands/resources/check.js +1365 -0
- package/dist/commands/resources/check.js.map +1 -0
- package/dist/commands/resources/index.d.ts.map +1 -1
- package/dist/commands/resources/index.js +425 -6
- package/dist/commands/resources/index.js.map +1 -1
- package/dist/commands/resources/query.d.ts +106 -0
- package/dist/commands/resources/query.d.ts.map +1 -0
- package/dist/commands/resources/query.js +177 -0
- package/dist/commands/resources/query.js.map +1 -0
- package/dist/commands/resources/scan.d.ts +24 -0
- package/dist/commands/resources/scan.d.ts.map +1 -1
- package/dist/commands/resources/scan.js +17 -8
- package/dist/commands/resources/scan.js.map +1 -1
- package/dist/commands/resources/validate.d.ts +57 -4
- package/dist/commands/resources/validate.d.ts.map +1 -1
- package/dist/commands/resources/validate.js +224 -56
- 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 +40 -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 +99 -62
- package/dist/commands/skill/review.js.map +1 -1
- package/dist/commands/skill/test/configure.d.ts +56 -0
- package/dist/commands/skill/test/configure.d.ts.map +1 -1
- package/dist/commands/skill/test/configure.js +75 -16
- package/dist/commands/skill/test/configure.js.map +1 -1
- package/dist/commands/skill/test/run.d.ts +63 -10
- package/dist/commands/skill/test/run.d.ts.map +1 -1
- package/dist/commands/skill/test/run.js +258 -77
- package/dist/commands/skill/test/run.js.map +1 -1
- package/dist/commands/skills/build.d.ts +94 -4
- package/dist/commands/skills/build.d.ts.map +1 -1
- package/dist/commands/skills/build.js +325 -97
- 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 -31
- 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 +24 -3
- package/dist/commands/skills/package.d.ts.map +1 -1
- package/dist/commands/skills/package.js +42 -17
- 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 +3 -5
- 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 +47 -6
- package/dist/commands/skills/skill-discovery.d.ts.map +1 -1
- package/dist/commands/skills/skill-discovery.js +66 -16
- 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 +140 -4
- package/dist/commands/skills/validate.d.ts.map +1 -1
- package/dist/commands/skills/validate.js +224 -67
- package/dist/commands/skills/validate.js.map +1 -1
- package/dist/commands/validate.d.ts +1 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +63 -27
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/verify.d.ts +119 -15
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +357 -142
- package/dist/commands/verify.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/report-schemas.d.ts +45 -0
- package/dist/report-schemas.d.ts.map +1 -0
- package/dist/report-schemas.js +100 -0
- package/dist/report-schemas.js.map +1 -0
- package/dist/skill-resolution/classify.js +2 -2
- package/dist/skill-resolution/classify.js.map +1 -1
- package/dist/skill-resolution/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 +55 -57
- 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 +7 -4
- package/dist/utils/agent-runner.js.map +1 -1
- package/dist/utils/claude-context-lens.d.ts +34 -0
- package/dist/utils/claude-context-lens.d.ts.map +1 -0
- package/dist/utils/claude-context-lens.js +39 -0
- package/dist/utils/claude-context-lens.js.map +1 -0
- package/dist/utils/command-error.d.ts +144 -7
- package/dist/utils/command-error.d.ts.map +1 -1
- package/dist/utils/command-error.js +179 -16
- 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 +40 -14
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/corpus-target.d.ts +26 -0
- package/dist/utils/corpus-target.d.ts.map +1 -0
- package/dist/utils/corpus-target.js +35 -0
- package/dist/utils/corpus-target.js.map +1 -0
- 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-anchor.d.ts +2 -2
- package/dist/utils/issue-anchor.d.ts.map +1 -1
- package/dist/utils/issue-anchor.js +1 -1
- package/dist/utils/issue-rendering.d.ts +3 -3
- package/dist/utils/issue-rendering.d.ts.map +1 -1
- package/dist/utils/issue-rendering.js +3 -3
- package/dist/utils/issue-rendering.js.map +1 -1
- package/dist/utils/issue-severity.d.ts +12 -5
- package/dist/utils/issue-severity.d.ts.map +1 -1
- package/dist/utils/issue-severity.js +1 -1
- package/dist/utils/issue-severity.js.map +1 -1
- package/dist/utils/optional-backend.d.ts +78 -0
- package/dist/utils/optional-backend.d.ts.map +1 -0
- package/dist/utils/optional-backend.js +117 -0
- package/dist/utils/optional-backend.js.map +1 -0
- package/dist/utils/output.d.ts +26 -0
- package/dist/utils/output.d.ts.map +1 -1
- package/dist/utils/output.js +35 -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/population-wiring.d.ts +100 -0
- package/dist/utils/population-wiring.d.ts.map +1 -0
- package/dist/utils/population-wiring.js +98 -0
- package/dist/utils/population-wiring.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-lenses.d.ts +98 -0
- package/dist/utils/projection-lenses.d.ts.map +1 -0
- package/dist/utils/projection-lenses.js +203 -0
- package/dist/utils/projection-lenses.js.map +1 -0
- package/dist/utils/projection-query.d.ts +324 -0
- package/dist/utils/projection-query.d.ts.map +1 -0
- package/dist/utils/projection-query.js +357 -0
- package/dist/utils/projection-query.js.map +1 -0
- package/dist/utils/projection-store.d.ts +335 -0
- package/dist/utils/projection-store.d.ts.map +1 -0
- package/dist/utils/projection-store.js +522 -0
- package/dist/utils/projection-store.js.map +1 -0
- package/dist/utils/relation-limits.d.ts +50 -0
- package/dist/utils/relation-limits.d.ts.map +1 -0
- package/dist/utils/relation-limits.js +50 -0
- package/dist/utils/relation-limits.js.map +1 -0
- package/dist/utils/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 +132 -2
- package/dist/utils/resource-loader.d.ts.map +1 -1
- package/dist/utils/resource-loader.js +288 -27
- 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-discovery.d.ts.map +1 -1
- package/dist/utils/skill-discovery.js +2 -1
- package/dist/utils/skill-discovery.js.map +1 -1
- package/dist/utils/skill-packaging-config.d.ts +63 -1
- package/dist/utils/skill-packaging-config.d.ts.map +1 -1
- package/dist/utils/skill-packaging-config.js +56 -1
- package/dist/utils/skill-packaging-config.js.map +1 -1
- package/dist/utils/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 +36 -0
- package/dist/utils/vat-bin-path.d.ts.map +1 -0
- package/dist/utils/vat-bin-path.js +48 -0
- package/dist/utils/vat-bin-path.js.map +1 -0
- package/dist/utils/verdict-helpers.d.ts +1 -1
- package/dist/utils/verdict-helpers.d.ts.map +1 -1
- package/dist/utils/verdict-helpers.js +1 -1
- package/dist/utils/verdict-helpers.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/agent.md +2 -2
- package/docs/audit.md +141 -37
- package/docs/doctor.md +7 -6
- package/docs/index.md +40 -12
- package/docs/mcp.md +2 -2
- package/docs/rag.md +3 -2
- package/docs/resources.md +13 -3
- package/docs/skill-test.md +10 -9
- package/docs/skills.md +53 -69
- package/package.json +38 -27
- package/schemas/ard-emit.json +149 -0
- package/schemas/okf-validate.json +170 -0
- package/schemas/resources-check.json +229 -0
- package/schemas/skill-review.json +230 -0
- package/dist/commands/resources/command-helpers.d.ts +0 -5
- package/dist/commands/resources/command-helpers.d.ts.map +0 -1
- package/dist/commands/resources/command-helpers.js +0 -6
- package/dist/commands/resources/command-helpers.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
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,mBA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,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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E,OAAO,CAAC,CAAC;IAEtD,wCAAwC;IACxC,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC;IACxD,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE9D,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAChD,OAAO,OAAO,CAAC;IACjB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,sCAAsC;QACtC,MAAM,YAAY,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5E,OAAO;;0BAEe,QAAQ;;EAEhC,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"}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Rendering for the four `ValidationIssue` anchors.
|
|
3
3
|
*
|
|
4
4
|
* `location` / `line` / `field` are independent fields on the issue (see the
|
|
5
|
-
* anchor contract on `ValidationIssue` in `@vibe-agent-toolkit/
|
|
5
|
+
* anchor contract on `ValidationIssue` in `@vibe-agent-toolkit/schema`).
|
|
6
6
|
* Splitting them apart in the producers only pays off if the renderers put
|
|
7
7
|
* them back together — a `line` that no output surface prints is a `line` that,
|
|
8
8
|
* from the user's side, was deleted. This is the one place that join happens,
|
|
9
9
|
* so every command spells an anchor the same way.
|
|
10
10
|
*/
|
|
11
|
-
import type { ValidationIssue } from '@vibe-agent-toolkit/
|
|
11
|
+
import type { ValidationIssue } from '@vibe-agent-toolkit/schema';
|
|
12
12
|
/**
|
|
13
13
|
* Render an issue's anchor as a single human/tool-readable string.
|
|
14
14
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-anchor.d.ts","sourceRoot":"","sources":["../../src/utils/issue-anchor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"issue-anchor.d.ts","sourceRoot":"","sources":["../../src/utils/issue-anchor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAElE;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CAe5E"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Rendering for the four `ValidationIssue` anchors.
|
|
3
3
|
*
|
|
4
4
|
* `location` / `line` / `field` are independent fields on the issue (see the
|
|
5
|
-
* anchor contract on `ValidationIssue` in `@vibe-agent-toolkit/
|
|
5
|
+
* anchor contract on `ValidationIssue` in `@vibe-agent-toolkit/schema`).
|
|
6
6
|
* Splitting them apart in the producers only pays off if the renderers put
|
|
7
7
|
* them back together — a `line` that no output surface prints is a `line` that,
|
|
8
8
|
* from the user's side, was deleted. This is the one place that join happens,
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
* passed"). That is why none of it was ever reported — it produces silence, not
|
|
16
16
|
* a false alarm.
|
|
17
17
|
*/
|
|
18
|
-
import { type SeverityCounts, type ValidationIssue } from '@vibe-agent-toolkit/agent-schema';
|
|
19
18
|
import type { PackageSkillResult } from '@vibe-agent-toolkit/agent-skills';
|
|
19
|
+
import { type SeverityCounts, type ValidationIssue } from '@vibe-agent-toolkit/schema';
|
|
20
20
|
/** Render an issue's own severity as itself. */
|
|
21
21
|
export declare function severityLabel(severity: ValidationIssue['severity']): string;
|
|
22
22
|
/**
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-rendering.d.ts","sourceRoot":"","sources":["../../src/utils/issue-rendering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"issue-rendering.d.ts","sourceRoot":"","sources":["../../src/utils/issue-rendering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAiBpC,gDAAgD;AAChD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,GAAG,MAAM,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAYtE;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,IAAI,CAAC,EAAE,MAAM,GACZ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S,cAAc,EAAE,GAAG,cAAc,CASnF"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* passed"). That is why none of it was ever reported — it produces silence, not
|
|
16
16
|
* a false alarm.
|
|
17
17
|
*/
|
|
18
|
-
import { countBySeverity, } from '@vibe-agent-toolkit/
|
|
18
|
+
import { countBySeverity, } from '@vibe-agent-toolkit/schema';
|
|
19
19
|
import { formatIssueAnchor } from './issue-anchor.js';
|
|
20
20
|
/**
|
|
21
21
|
* Uppercase label for a resolved severity.
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-rendering.js","sourceRoot":"","sources":["../../src/utils/issue-rendering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"issue-rendering.js","sourceRoot":"","sources":["../../src/utils/issue-rendering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,eAAe,GAGhB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,eAAe,GAAgD;IACnE,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB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|
19
19
|
* `resolveAssetReference` and `resolveSkillReference` in CLAUDE.md.
|
|
20
20
|
*/
|
|
21
|
-
import { type ValidationIssue } from '@vibe-agent-toolkit/
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
import { type SeverityConfig, type ValidationIssue } from '@vibe-agent-toolkit/schema';
|
|
22
|
+
/**
|
|
23
|
+
* A `validation.severity` map as it appears in config, or nothing.
|
|
24
|
+
*
|
|
25
|
+
* ⚠️ **Do not re-hand-roll this as `Record<string, string>`.** It was that, and
|
|
26
|
+
* the key space is now the registry enum PLUS `CUSTOM:<name>` — a `Partial`
|
|
27
|
+
* mapped type whose values are `SeverityLevel | undefined`. A
|
|
28
|
+
* `Record<string, string>` is not assignable to it and broke every consumer the
|
|
29
|
+
* moment the custom key space landed. `SeverityConfig` is the schema's own
|
|
30
|
+
* `Pick<ValidationConfig, 'severity'>`, so the two cannot drift again.
|
|
31
|
+
*/
|
|
32
|
+
export type SeverityOverrides = SeverityConfig;
|
|
26
33
|
/**
|
|
27
34
|
* Re-severity findings against a `validation.severity` map, dropping the codes
|
|
28
35
|
* resolved to `ignore`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-severity.d.ts","sourceRoot":"","sources":["../../src/utils/issue-severity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"issue-severity.d.ts","sourceRoot":"","sources":["../../src/utils/issue-severity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;;;;GASG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC;AAE/C;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,UAAU,EAAE,iBAAiB,GAAG,SAAS,GACxC,eAAe,EAAE,CAenB"}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* findings imports this; nobody writes a fourth copy. Same rule as
|
|
19
19
|
* `resolveAssetReference` and `resolveSkillReference` in CLAUDE.md.
|
|
20
20
|
*/
|
|
21
|
-
import { resolveSeverity } from '@vibe-agent-toolkit/
|
|
21
|
+
import { resolveSeverity, } from '@vibe-agent-toolkit/schema';
|
|
22
22
|
/**
|
|
23
23
|
* Re-severity findings against a `validation.severity` map, dropping the codes
|
|
24
24
|
* resolved to `ignore`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-severity.js","sourceRoot":"","sources":["../../src/utils/issue-severity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"issue-severity.js","sourceRoot":"","sources":["../../src/utils/issue-severity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAEL,eAAe,GAGhB,MAAM,4BAA4B,CAAC;AAcpC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAkC,EAClC,UAAyC;IAEzC,MAAM,SAAS,GAAG,UAAU,EAAE,QAAQ,CAAC;IACvC,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;IAEhD,MAAM,QAAQ,GAAsB,EAAE,CAAC;IACvC,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,EAAE,CAAC;YAC/B,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACrB,SAAS;QACX,CAAC;QACD,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,CAAC,IAAiB,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,CAAC;QACnF,IAAI,QAAQ,KAAK,QAAQ;YAAE,SAAS;QACpC,QAAQ,CAAC,IAAI,CAAC,QAAQ,KAAK,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lazy loading for **optional heavy backends** — the seam that keeps a
|
|
3
|
+
* multi-hundred-megabyte dependency out of every other command's cost.
|
|
4
|
+
*
|
|
5
|
+
* ## Why this exists rather than four `await import()` calls
|
|
6
|
+
*
|
|
7
|
+
* `@vibe-agent-toolkit/rag-lancedb` pulls a platform-native LanceDB binary
|
|
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
|
|
13
|
+
* `import('@lancedb/lancedb')` — **1,350 ms cold** — ran before `vat --version`
|
|
14
|
+
* could print a string. It is a named seam rather than a one-off fix because
|
|
15
|
+
* "optional backend" is a shape VAT keeps growing — a projection store is
|
|
16
|
+
* loaded through it too — not because any one dependency is special.
|
|
17
|
+
*
|
|
18
|
+
* ## What it does NOT do
|
|
19
|
+
*
|
|
20
|
+
* It does not fall back, retry, or degrade. An absent backend is a legible
|
|
21
|
+
* error naming the package to install, and nothing more — the point is that
|
|
22
|
+
* the failure is readable, not that it is survivable.
|
|
23
|
+
*/
|
|
24
|
+
/**
|
|
25
|
+
* Whether a thrown value is Node's "module not installed" error.
|
|
26
|
+
*
|
|
27
|
+
* Exported because every optional backend asks it, and a second copy would be
|
|
28
|
+
* free to drift onto the message.
|
|
29
|
+
*
|
|
30
|
+
* @param error - The thrown value
|
|
31
|
+
* @returns True when the module could not be resolved at all
|
|
32
|
+
*/
|
|
33
|
+
export declare function isModuleMissing(error: unknown): boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Report an uninstalled backend and exit, in the shape every other command
|
|
36
|
+
* failure takes.
|
|
37
|
+
*
|
|
38
|
+
* Exit code **2** — a system error, not a validation failure. An absent
|
|
39
|
+
* optional package is a fact about the installation rather than about the
|
|
40
|
+
* user's corpus, and a caller scripting `vat` must be able to tell those apart
|
|
41
|
+
* from the exit code alone.
|
|
42
|
+
*
|
|
43
|
+
* Exported for the backends that are not selected by a Commander action —
|
|
44
|
+
* {@link lazyAction} is the shape most take, but a store chosen by an
|
|
45
|
+
* environment variable is loaded from inside a command rather than in place of
|
|
46
|
+
* one, and it must fail the same way.
|
|
47
|
+
*
|
|
48
|
+
* @param backend - What to name and how to install it
|
|
49
|
+
* @returns Never; the process exits
|
|
50
|
+
*/
|
|
51
|
+
export declare function reportMissingBackend(backend: OptionalBackend): never;
|
|
52
|
+
/** One optional backend, as a user is told to install it. */
|
|
53
|
+
export interface OptionalBackend {
|
|
54
|
+
/** Human name used in the error message, e.g. `RAG`. */
|
|
55
|
+
readonly feature: string;
|
|
56
|
+
/** The npm package to install, e.g. `@vibe-agent-toolkit/rag-lancedb`. */
|
|
57
|
+
readonly packageName: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Bind a Commander action that loads its implementation on first invocation.
|
|
61
|
+
*
|
|
62
|
+
* The returned function has the same shape Commander expects, so a command
|
|
63
|
+
* declaration keeps every option, description and help block it had — only the
|
|
64
|
+
* *implementation* moves behind the `await`. Help text is static data and must
|
|
65
|
+
* stay eagerly available, which is exactly why the split is at the action
|
|
66
|
+
* rather than at the command.
|
|
67
|
+
*
|
|
68
|
+
* @param backend - What to name in the error when the import fails to resolve
|
|
69
|
+
* @param load - Imports the module and returns the handler out of it
|
|
70
|
+
* @returns A Commander action that loads, then delegates
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* .action(lazyAction(RAG_BACKEND, async () => (await import('./index-command.js')).indexCommand))
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare function lazyAction<Args extends readonly unknown[]>(backend: OptionalBackend, load: () => Promise<(...args: Args) => unknown>): (...args: Args) => Promise<void>;
|
|
78
|
+
//# sourceMappingURL=optional-backend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lazy loading for **optional heavy backends** — the seam that keeps a
|
|
3
|
+
* multi-hundred-megabyte dependency out of every other command's cost.
|
|
4
|
+
*
|
|
5
|
+
* ## Why this exists rather than four `await import()` calls
|
|
6
|
+
*
|
|
7
|
+
* `@vibe-agent-toolkit/rag-lancedb` pulls a platform-native LanceDB binary
|
|
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
|
|
13
|
+
* `import('@lancedb/lancedb')` — **1,350 ms cold** — ran before `vat --version`
|
|
14
|
+
* could print a string. It is a named seam rather than a one-off fix because
|
|
15
|
+
* "optional backend" is a shape VAT keeps growing — a projection store is
|
|
16
|
+
* loaded through it too — not because any one dependency is special.
|
|
17
|
+
*
|
|
18
|
+
* ## What it does NOT do
|
|
19
|
+
*
|
|
20
|
+
* It does not fall back, retry, or degrade. An absent backend is a legible
|
|
21
|
+
* error naming the package to install, and nothing more — the point is that
|
|
22
|
+
* the failure is readable, not that it is survivable.
|
|
23
|
+
*/
|
|
24
|
+
// Deliberately NOT `commands/rag/command-helpers.js`, which is where the rest
|
|
25
|
+
// of the rag lane's shared helpers live: that module statically imports
|
|
26
|
+
// `@vibe-agent-toolkit/rag-lancedb`, so reaching for its `handleCommandError`
|
|
27
|
+
// here would load the very backend this file exists to defer.
|
|
28
|
+
import { ExitCode } from '@vibe-agent-toolkit/schema';
|
|
29
|
+
import { writeYamlOutput } from './output.js';
|
|
30
|
+
/**
|
|
31
|
+
* Node's code for "the module is genuinely not installed".
|
|
32
|
+
*
|
|
33
|
+
* Matched on `code`, never on the message: the message embeds the specifier and
|
|
34
|
+
* the importing file and is not a stable contract, while the code is. A miss
|
|
35
|
+
* here would be reported as a missing backend when the real cause was a syntax
|
|
36
|
+
* error *inside* the backend, which is the worst possible diagnosis.
|
|
37
|
+
*/
|
|
38
|
+
const MODULE_NOT_FOUND = 'ERR_MODULE_NOT_FOUND';
|
|
39
|
+
/**
|
|
40
|
+
* Whether a thrown value is Node's "module not installed" error.
|
|
41
|
+
*
|
|
42
|
+
* Exported because every optional backend asks it, and a second copy would be
|
|
43
|
+
* free to drift onto the message.
|
|
44
|
+
*
|
|
45
|
+
* @param error - The thrown value
|
|
46
|
+
* @returns True when the module could not be resolved at all
|
|
47
|
+
*/
|
|
48
|
+
export function isModuleMissing(error) {
|
|
49
|
+
return (typeof error === 'object'
|
|
50
|
+
&& error !== null
|
|
51
|
+
&& 'code' in error
|
|
52
|
+
&& error.code === MODULE_NOT_FOUND);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Report an uninstalled backend and exit, in the shape every other command
|
|
56
|
+
* failure takes.
|
|
57
|
+
*
|
|
58
|
+
* Exit code **2** — a system error, not a validation failure. An absent
|
|
59
|
+
* optional package is a fact about the installation rather than about the
|
|
60
|
+
* user's corpus, and a caller scripting `vat` must be able to tell those apart
|
|
61
|
+
* from the exit code alone.
|
|
62
|
+
*
|
|
63
|
+
* Exported for the backends that are not selected by a Commander action —
|
|
64
|
+
* {@link lazyAction} is the shape most take, but a store chosen by an
|
|
65
|
+
* environment variable is loaded from inside a command rather than in place of
|
|
66
|
+
* one, and it must fail the same way.
|
|
67
|
+
*
|
|
68
|
+
* @param backend - What to name and how to install it
|
|
69
|
+
* @returns Never; the process exits
|
|
70
|
+
*/
|
|
71
|
+
export function reportMissingBackend(backend) {
|
|
72
|
+
const install = `npm install ${backend.packageName}`;
|
|
73
|
+
process.stderr.write(`${backend.feature} is an optional feature and its backend is not installed.\n`
|
|
74
|
+
+ `\nInstall it with: ${install}\n`
|
|
75
|
+
+ '\nIt ships separately because it carries a platform-native binary that every\n'
|
|
76
|
+
+ 'other vat command would otherwise download and load.\n');
|
|
77
|
+
writeYamlOutput({
|
|
78
|
+
status: 'error',
|
|
79
|
+
error: `${backend.feature} backend not installed: ${backend.packageName}`,
|
|
80
|
+
fix: install,
|
|
81
|
+
});
|
|
82
|
+
process.exit(ExitCode.ERROR);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Bind a Commander action that loads its implementation on first invocation.
|
|
86
|
+
*
|
|
87
|
+
* The returned function has the same shape Commander expects, so a command
|
|
88
|
+
* declaration keeps every option, description and help block it had — only the
|
|
89
|
+
* *implementation* moves behind the `await`. Help text is static data and must
|
|
90
|
+
* stay eagerly available, which is exactly why the split is at the action
|
|
91
|
+
* rather than at the command.
|
|
92
|
+
*
|
|
93
|
+
* @param backend - What to name in the error when the import fails to resolve
|
|
94
|
+
* @param load - Imports the module and returns the handler out of it
|
|
95
|
+
* @returns A Commander action that loads, then delegates
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```typescript
|
|
99
|
+
* .action(lazyAction(RAG_BACKEND, async () => (await import('./index-command.js')).indexCommand))
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export function lazyAction(backend, load) {
|
|
103
|
+
return async (...args) => {
|
|
104
|
+
let handler;
|
|
105
|
+
try {
|
|
106
|
+
handler = await load();
|
|
107
|
+
}
|
|
108
|
+
catch (error) {
|
|
109
|
+
if (!isModuleMissing(error)) {
|
|
110
|
+
throw error;
|
|
111
|
+
}
|
|
112
|
+
reportMissingBackend(backend);
|
|
113
|
+
}
|
|
114
|
+
await handler(...args);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
//# sourceMappingURL=optional-backend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,aAA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B,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/utils/output.d.ts
CHANGED
|
@@ -76,6 +76,32 @@ export declare function writeAllSync(write: SyncWriter, buffer: Buffer, options?
|
|
|
76
76
|
* @param data - Data to serialize as YAML
|
|
77
77
|
*/
|
|
78
78
|
export declare function writeYamlOutput(data: unknown): void;
|
|
79
|
+
/**
|
|
80
|
+
* Write a single JSON document to stdout.
|
|
81
|
+
*
|
|
82
|
+
* The sibling of {@link writeYamlOutput}, for the same payloads, and it exists
|
|
83
|
+
* because a consumer that has to parse YAML needs a YAML parser: JSON is the
|
|
84
|
+
* format every language reads without one. `vat resources validate` already
|
|
85
|
+
* offers `--format json` for exactly this reason; a scan document that could
|
|
86
|
+
* only be had as YAML made the population it reports the harder of the two to
|
|
87
|
+
* consume programmatically, which is backwards.
|
|
88
|
+
*
|
|
89
|
+
* Written the same way as its YAML sibling, and the comment there applies
|
|
90
|
+
* verbatim: the ordinary stream write keeps this summary behind any
|
|
91
|
+
* human-readable progress already buffered on the same channel.
|
|
92
|
+
*
|
|
93
|
+
* @param data - Data to serialize as JSON
|
|
94
|
+
*/
|
|
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;
|
|
79
105
|
/**
|
|
80
106
|
* Write a test-format finding to stderr.
|
|
81
107
|
*
|