@vibe-agent-toolkit/cli 0.2.0-rc.1 â 0.2.0-rc.11
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 +97 -28
- package/dist/bin/vat.js +97 -28
- package/dist/bin/vat.js.map +1 -1
- package/dist/bin.js +115 -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 +165 -0
- package/dist/commands/ard/emit.d.ts.map +1 -0
- package/dist/commands/ard/emit.js +338 -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 +84 -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 +2 -2
- package/dist/commands/audit/distributed-tree.d.ts.map +1 -1
- package/dist/commands/audit/distributed-tree.js +11 -7
- 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 +1150 -394
- 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 +34 -6
- package/dist/commands/cache/clear.d.ts.map +1 -1
- package/dist/commands/cache/clear.js +101 -15
- package/dist/commands/cache/clear.js.map +1 -1
- package/dist/commands/cache/index.d.ts +13 -63
- package/dist/commands/cache/index.d.ts.map +1 -1
- package/dist/commands/cache/index.js +47 -79
- package/dist/commands/cache/index.js.map +1 -1
- 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 +372 -0
- package/dist/commands/claude/context.d.ts.map +1 -0
- package/dist/commands/claude/context.js +1115 -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 +121 -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 +116 -0
- package/dist/commands/okf/index.js.map +1 -0
- package/dist/commands/okf/validate.d.ts +195 -0
- package/dist/commands/okf/validate.d.ts.map +1 -0
- package/dist/commands/okf/validate.js +199 -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 +167 -0
- package/dist/commands/resources/check-progress.d.ts.map +1 -0
- package/dist/commands/resources/check-progress.js +250 -0
- package/dist/commands/resources/check-progress.js.map +1 -0
- package/dist/commands/resources/check-supervisor.d.ts +479 -0
- package/dist/commands/resources/check-supervisor.d.ts.map +1 -0
- package/dist/commands/resources/check-supervisor.js +587 -0
- package/dist/commands/resources/check-supervisor.js.map +1 -0
- package/dist/commands/resources/check.d.ts +620 -0
- package/dist/commands/resources/check.d.ts.map +1 -0
- package/dist/commands/resources/check.js +1452 -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 +430 -4
- 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 +42 -2
- package/dist/commands/resources/validate.d.ts.map +1 -1
- package/dist/commands/resources/validate.js +208 -55
- 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 +100 -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 +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 +8 -6
- 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 +61 -11
- 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 +143 -20
- package/dist/utils/command-error.d.ts.map +1 -1
- package/dist/utils/command-error.js +179 -36
- 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 +72 -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 +134 -2
- package/dist/utils/resource-loader.d.ts.map +1 -1
- package/dist/utils/resource-loader.js +290 -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 +143 -39
- package/docs/doctor.md +7 -6
- package/docs/index.md +19 -11
- 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 +36 -27
- package/schemas/ard-emit.json +152 -0
- package/schemas/okf-validate.json +170 -0
- package/schemas/resources-check.json +257 -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,335 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selecting, opening and keying the **projection store** â the cross-process
|
|
3
|
+
* cache that makes a second population of an unchanged tree cheap.
|
|
4
|
+
*
|
|
5
|
+
* ## Why the CLI owns this and `resources` does not
|
|
6
|
+
*
|
|
7
|
+
* `@vibe-agent-toolkit/resources` states the {@link ProjectionStore} contract
|
|
8
|
+
* and never picks a backend, for the same reason it states the parse contract
|
|
9
|
+
* and never picks a parser: it is the toolkit's most widely installed package,
|
|
10
|
+
* and a storage engine is a *choice*. The choice is made here, at the edge that
|
|
11
|
+
* already owns every other optional backend â see `optional-backend.ts`, whose
|
|
12
|
+
* header names a projection store as one of the shapes it exists for.
|
|
13
|
+
*
|
|
14
|
+
* So `populate()` takes a {@link PopulationCache} it is handed, and this module
|
|
15
|
+
* is the only place in the toolkit that knows `@vibe-agent-toolkit/projection-
|
|
16
|
+
* sqlite` exists.
|
|
17
|
+
*
|
|
18
|
+
* ## The key, and why it is a whole-repository tree hash
|
|
19
|
+
*
|
|
20
|
+
* A stored extent is filed under `(rootId, treeHash)`. `populate()` derives the
|
|
21
|
+
* root id itself so a caller cannot file one root's contents under another's;
|
|
22
|
+
* this module supplies the other half.
|
|
23
|
+
*
|
|
24
|
+
* {@link gitTreeSnapshot} answers it with `git write-tree` against a throwaway
|
|
25
|
+
* index, which covers staged edits, unstaged edits and untracked files, and
|
|
26
|
+
* carries **no timestamp** â byte-identical content always produces the same
|
|
27
|
+
* hash. ðŠĪ Never `git stash create`: a stash is a *commit*, so two calls over
|
|
28
|
+
* identical content agree only within the same wall-clock second, and every
|
|
29
|
+
* read would miss.
|
|
30
|
+
*
|
|
31
|
+
* â ïļ That hash covers the whole **repository**, not the subtree the root names.
|
|
32
|
+
* An edit anywhere in the repository therefore cools the cache for every root
|
|
33
|
+
* inside it. This is conservative in the safe direction and cheap to be
|
|
34
|
+
* conservative about â `git write-tree` against a throwaway index is the same
|
|
35
|
+
* call `vibe-validate` makes on every commit.
|
|
36
|
+
*
|
|
37
|
+
* ## An opted-in cache that quietly does nothing is worse than no cache
|
|
38
|
+
*
|
|
39
|
+
* Every failure here is loud, and that is deliberate rather than harsh. A
|
|
40
|
+
* selector nobody honours produces a measurement arm that believes it is
|
|
41
|
+
* testing a cache and is testing an ordinary cold run â the "subject that
|
|
42
|
+
* exercises nothing looks like a clean result" failure that has already cost
|
|
43
|
+
* this project one whole A/B. So an uninstalled backend exits with the seam's
|
|
44
|
+
* standard legible error, and a tree that cannot be keyed says so on stderr
|
|
45
|
+
* rather than silently declining.
|
|
46
|
+
*/
|
|
47
|
+
import type * as ProjectionSqlite from '@vibe-agent-toolkit/projection-sqlite';
|
|
48
|
+
import type { PopulationCache } from '@vibe-agent-toolkit/resources';
|
|
49
|
+
/**
|
|
50
|
+
* The env var that selects â or now, DESELECTS â a projection store for this
|
|
51
|
+
* process.
|
|
52
|
+
*
|
|
53
|
+
* ð **The store is on by default, so this is the escape hatch rather than the
|
|
54
|
+
* selector.** Same shape and same reason as `VAT_RESOURCES_CRAWL`: any value the
|
|
55
|
+
* off-parser does not read as false leaves the store selected, including the
|
|
56
|
+
* historical `sqlite`, so every script and lab arm that names it explicitly
|
|
57
|
+
* keeps working and keeps MEANING the same thing. See
|
|
58
|
+
* {@link PROJECTION_STORE_OFF} for the one way out.
|
|
59
|
+
*
|
|
60
|
+
* An environment switch rather than a config field, for the same reason
|
|
61
|
+
* `VAT_INVENTORY_CRAWL` and `VAT_RESOURCES_CRAWL` are: it selects which
|
|
62
|
+
* INSTRUMENT runs, not what the project means, and it has to be reachable from
|
|
63
|
+
* the lab, which spawns the binary and controls its environment. A config field
|
|
64
|
+
* would put the A and B arms inside the subject's own tree, where a measurement
|
|
65
|
+
* edits the thing it measures.
|
|
66
|
+
*
|
|
67
|
+
* ð It is read from the environment, and **every phase now runs in the process
|
|
68
|
+
* that read it**, so `vat validate`'s phases cannot fail to see the selection
|
|
69
|
+
* their orchestrator did. Which lanes share a store within one verb and across
|
|
70
|
+
* invocations, with the measurements, and the â ïļ one packaging enumeration still
|
|
71
|
+
* on the walk: `docs/architecture/resource-scanning-and-caching.md` §3.7.
|
|
72
|
+
*/
|
|
73
|
+
export declare const PROJECTION_STORE_ENV = "VAT_PROJECTION_STORE";
|
|
74
|
+
/**
|
|
75
|
+
* {@link PROJECTION_STORE_ENV}'s value that names the SQLite backend. Redundant
|
|
76
|
+
* with the default now, and kept â see
|
|
77
|
+
* `docs/architecture/resource-scanning-and-caching.md` §3.7.
|
|
78
|
+
*/
|
|
79
|
+
export declare const PROJECTION_STORE_SQLITE = "sqlite";
|
|
80
|
+
/**
|
|
81
|
+
* The value that turns the store OFF while leaving VAT's other caches on.
|
|
82
|
+
*
|
|
83
|
+
* Read through the same {@link parseEnvBoolean} as every other VAT switch, so
|
|
84
|
+
* `0`, `false`, `no` and `n` work too. The empty string joins them: unlike
|
|
85
|
+
* {@link PROJECTION_STORE_DIR_ENV}, where empty falls back to a default
|
|
86
|
+
* directory that means something, there is nothing else for a cleared selector
|
|
87
|
+
* to mean.
|
|
88
|
+
*/
|
|
89
|
+
export declare const PROJECTION_STORE_OFF = "off";
|
|
90
|
+
/**
|
|
91
|
+
* Where the projection store's database lives, overriding the default.
|
|
92
|
+
*
|
|
93
|
+
* The default is `tmpdir/.vat-cache/<version>/projection-<shapeDigest>` â one
|
|
94
|
+
* database per VAT release, shared by every root on the machine. This names a
|
|
95
|
+
* different one **explicitly**, which is what an adopter with a per-job cache
|
|
96
|
+
* directory, a shared build agent running two jobs at once, or a test arm that
|
|
97
|
+
* must not touch the developer's live cache actually needs.
|
|
98
|
+
*
|
|
99
|
+
* ðŠĪ **What it replaces is redirecting `TMPDIR`, which works and is the wrong
|
|
100
|
+
* instrument.** `defaultStoreDirectory()` resolves through
|
|
101
|
+
* `vatCacheNamespaceRoot()` â `normalizedTmpdir()`, so pointing the OS temp
|
|
102
|
+
* directory elsewhere does move the store â along with every other temp
|
|
103
|
+
* consumer in the process, on a variable whose name is not the same on both
|
|
104
|
+
* platforms (`TMPDIR` on POSIX; `TEMP`, then `TMP`, on Windows, so setting one
|
|
105
|
+
* is silently inert on the other). It relocates the store as a side effect of
|
|
106
|
+
* relocating something larger. This variable says the one thing meant.
|
|
107
|
+
*
|
|
108
|
+
* â ïļ It does **not** consult `XDG_CACHE_HOME` or `HOME`. A caller that set
|
|
109
|
+
* those believed it had its own database and was writing into the shared one;
|
|
110
|
+
* the fix is to name the directory here, not to add more implicit roots.
|
|
111
|
+
*
|
|
112
|
+
* An environment variable rather than a config field, for the same reason
|
|
113
|
+
* {@link PROJECTION_STORE_ENV} is one: it says where an INSTRUMENT keeps its
|
|
114
|
+
* scratch space, not what the project means, and it has to be reachable from a
|
|
115
|
+
* harness that spawns the binary.
|
|
116
|
+
*/
|
|
117
|
+
export declare const PROJECTION_STORE_DIR_ENV = "VAT_PROJECTION_STORE_DIR";
|
|
118
|
+
/**
|
|
119
|
+
* The env var that turns VAT's disk caches off for a run.
|
|
120
|
+
*
|
|
121
|
+
* Not this module's invention â `ParseCache` has read it since the parse cache
|
|
122
|
+
* shipped, and `vat`'s root `--no-cache` exports it from a `preAction` hook so
|
|
123
|
+
* the decision reaches every spawned phase. Named here rather than spelled
|
|
124
|
+
* inline so the projection store is visibly the same tenant as the caches the
|
|
125
|
+
* flag was written for.
|
|
126
|
+
*/
|
|
127
|
+
export declare const CACHE_ENV = "VAT_CACHE";
|
|
128
|
+
/**
|
|
129
|
+
* Whether this process should read and write a projection store.
|
|
130
|
+
*
|
|
131
|
+
* **On unless turned off.** It used to be the opposite; the measurement that
|
|
132
|
+
* paid for the flip, and the blob-tier bound that had to land first, are in
|
|
133
|
+
* `docs/architecture/resource-scanning-and-caching.md` §3.7.
|
|
134
|
+
*
|
|
135
|
+
* Read from the environment at each call rather than memoized at module load:
|
|
136
|
+
* `vitest.setup.js` deletes every `VAT_*` variable before any test module
|
|
137
|
+
* loads, so a module-level binding would make the switch unobservable to every
|
|
138
|
+
* test that sets it.
|
|
139
|
+
*
|
|
140
|
+
* ## The two switches are AND-ed, and the second one is a veto
|
|
141
|
+
*
|
|
142
|
+
* {@link PROJECTION_STORE_ENV} turns off THIS cache; {@link CACHE_ENV} says
|
|
143
|
+
* whether this run caches at all. A store selected while `VAT_CACHE=0` was
|
|
144
|
+
* measured writing a 9.8 MB, 18,079-row store on this repository and hitting it
|
|
145
|
+
* on the next run â a user who asked for no cache silently got one, and
|
|
146
|
+
* `vat cache`'s own help text described three caches while a fourth was being
|
|
147
|
+
* written beside them.
|
|
148
|
+
*
|
|
149
|
+
* ðŠĪ Read through `parseEnvBoolean`, never for truthiness â `VAT_CACHE=1` is
|
|
150
|
+
* the value an operator writes to turn caching ON, and a truthiness test would
|
|
151
|
+
* read it as a reason to decline. It was previously a comparison against the
|
|
152
|
+
* literal `'0'`, which is the same shape `ParseCache` carried and the same
|
|
153
|
+
* defect: `VAT_CACHE=false` disabled nothing. The two now share one parser
|
|
154
|
+
* (`@vibe-agent-toolkit/utils`) so the variable cannot be read two ways again.
|
|
155
|
+
*
|
|
156
|
+
* Only an explicit `false` vetoes. `parseEnvBoolean` returns `undefined` for a
|
|
157
|
+
* value it cannot read, and an unreadable value is not something the operator
|
|
158
|
+
* said â the veto has to be a statement, not a shrug. That reading is why both
|
|
159
|
+
* variables can be read through ONE parser even though they now sit on
|
|
160
|
+
* opposite default sides: each asks only whether the operator SAID no.
|
|
161
|
+
*
|
|
162
|
+
* @returns `true` when a store is selected
|
|
163
|
+
*/
|
|
164
|
+
export declare function projectionStoreSelected(): boolean;
|
|
165
|
+
/**
|
|
166
|
+
* An open store, the key half it is used with, and the way to let it go.
|
|
167
|
+
*
|
|
168
|
+
* â ïļ **Deliberately NOT typed for SQL, and do not re-widen it.** This handle
|
|
169
|
+
* reaches the database at {@link PROJECTION_STORE_DIR_ENV}'s directory, which
|
|
170
|
+
* defaults to one file per VAT release shared by every root on the machine â
|
|
171
|
+
* holding other repositories' link text, heading text and frontmatter. A field
|
|
172
|
+
* typed `SqlQueryableStore` used to live here "for a caller that needs to ASK
|
|
173
|
+
* the store something", and that caller was removed precisely because arbitrary
|
|
174
|
+
* SQL over this store answers from trees the asker never named. `populate()`
|
|
175
|
+
* needs the engine-free {@link PopulationCache} and nothing more; a query lane
|
|
176
|
+
* builds its own store (see `projection-query.ts`).
|
|
177
|
+
*/
|
|
178
|
+
export interface OpenedPopulationCache {
|
|
179
|
+
/** Hand this to `populate()`. */
|
|
180
|
+
readonly cache: PopulationCache;
|
|
181
|
+
/**
|
|
182
|
+
* Close the underlying connection.
|
|
183
|
+
*
|
|
184
|
+
* Must be called. A `DatabaseSync` left open holds its file handle and, in
|
|
185
|
+
* WAL mode, its read transaction â see `projection-sqlite`'s note on why an
|
|
186
|
+
* unfinalized read statement pins a connection to a stale snapshot.
|
|
187
|
+
*/
|
|
188
|
+
close(): Promise<void>;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Open the projection store this process selected, keyed to one tree.
|
|
192
|
+
*
|
|
193
|
+
* Returns `undefined` when no store is selected, and when the tree cannot be
|
|
194
|
+
* keyed â the two "carry on without a cache" answers. It does **not** return
|
|
195
|
+
* `undefined` for an uninstalled backend: the store is on unless a user turned it
|
|
196
|
+
* off, and answering that by silently not having one is how a default-on cache
|
|
197
|
+
* becomes an unmeasured one.
|
|
198
|
+
*
|
|
199
|
+
* @param options - Where the corpus is
|
|
200
|
+
* @param options.root - The absolute corpus root. Used to find the repository;
|
|
201
|
+
* the resulting hash covers that whole repository, not this subtree
|
|
202
|
+
* @returns The cache and its closer, or `undefined` to populate uncached
|
|
203
|
+
*/
|
|
204
|
+
export declare function openPopulationCache(options: {
|
|
205
|
+
root: string;
|
|
206
|
+
}): Promise<OpenedPopulationCache | undefined>;
|
|
207
|
+
/**
|
|
208
|
+
* Open a store that lives only in this process's memory.
|
|
209
|
+
*
|
|
210
|
+
* ð **This is what keeps the query surface an ANSWER rather than a privilege.**
|
|
211
|
+
* A caller with no store selected â CI's first run, or a developer who never set
|
|
212
|
+
* the selector â still gets the same SQL over the same schema; the on-disk store
|
|
213
|
+
* only makes the second run cheap. Without it, "what does this tree contain"
|
|
214
|
+
* would be answerable only where a cache happened to exist, and two callers
|
|
215
|
+
* would hold differently-shaped views of one tree.
|
|
216
|
+
*
|
|
217
|
+
* It is a cache that cannot hit: nothing survives the close, so a caller must
|
|
218
|
+
* write the projection into it before asking anything.
|
|
219
|
+
*
|
|
220
|
+
* @returns An open, empty store; close it when done
|
|
221
|
+
*/
|
|
222
|
+
export declare function openEphemeralQueryStore(): Promise<ProjectionSqlite.SqlQueryableStore>;
|
|
223
|
+
/**
|
|
224
|
+
* Open a compile-only probe over the full queryable schema, derived relations
|
|
225
|
+
* included â for checking statements BEFORE any population or lens has run.
|
|
226
|
+
*
|
|
227
|
+
* â ïļ Not {@link openEphemeralQueryStore}: that store has no table for a derived
|
|
228
|
+
* relation until a lens fills it, which is how an unevaluated one is refused.
|
|
229
|
+
*
|
|
230
|
+
* @returns An open probe; close it when done
|
|
231
|
+
*/
|
|
232
|
+
export declare function openCompileProbe(): Promise<ProjectionSqlite.ProjectionCompileProbe>;
|
|
233
|
+
/**
|
|
234
|
+
* The legible failure for "your Node is too old", or `undefined` when this is
|
|
235
|
+
* some other failure â including "the package is absent".
|
|
236
|
+
*
|
|
237
|
+
* Exported, and returning the error rather than throwing it, so the DIAGNOSIS
|
|
238
|
+
* is unit-testable without a mocked dynamic import. A test cannot make a mocked
|
|
239
|
+
* `import()` reject with a plain `{ code }` â the test runner wraps whatever a
|
|
240
|
+
* module factory throws in its own error, so the code never survives to be
|
|
241
|
+
* read â and the branch's whole value is the message it produces.
|
|
242
|
+
*
|
|
243
|
+
* ðŠĪ The two are **different error codes**, and only one of them reaches
|
|
244
|
+
* {@link isModuleMissing}. `@vibe-agent-toolkit/projection-sqlite` imports
|
|
245
|
+
* `node:sqlite`, which loads unflagged from Node 22.13.0 (it was added in 22.5.0
|
|
246
|
+
* behind `--experimental-sqlite`); on 22.0â22.12 an ordinary import fails
|
|
247
|
+
* with `ERR_UNKNOWN_BUILTIN_MODULE`, not `ERR_MODULE_NOT_FOUND`. Without this
|
|
248
|
+
* branch the user gets a bare `No such built-in module: node:sqlite` â which
|
|
249
|
+
* names neither the version floor nor the fix.
|
|
250
|
+
*
|
|
251
|
+
* â ïļ It is reachable on an ordinary run and is not a corner: the query lane has
|
|
252
|
+
* always fallen back to {@link openEphemeralQueryStore} when no store is
|
|
253
|
+
* selected, which is the default, so `node:sqlite` is required on a default
|
|
254
|
+
* `vat resources query` whichever way the lane resolves its store.
|
|
255
|
+
*
|
|
256
|
+
* ðŠĪ This used to say "EVERY `vat resources query`/`check` run", and that was
|
|
257
|
+
* too strong for `check`. Measured against the built CLI on Node v24.13.1 by
|
|
258
|
+
* counting the `ExperimentalWarning` `node:sqlite` emits at load â the only
|
|
259
|
+
* externally visible tell that the module was reached at all:
|
|
260
|
+
*
|
|
261
|
+
* | Command | Warnings | Backend loaded? |
|
|
262
|
+
* |---|---|---|
|
|
263
|
+
* | `vat resources query "SELECT âĶ"` | 1 | yes |
|
|
264
|
+
* | `vat resources check`, no checks declared | 0 | **no** |
|
|
265
|
+
*
|
|
266
|
+
* `check` reaches a store only when the project declares checks for it to
|
|
267
|
+
* evaluate, so a repo with none never loads the backend and never needed the
|
|
268
|
+
* floor for that command. The floor argument is unaffected â `query` alone
|
|
269
|
+
* establishes it â but "every default run of those two commands" was a claim
|
|
270
|
+
* nothing had counted.
|
|
271
|
+
*
|
|
272
|
+
* â
**VAT's declared floor is now `>=22.13.0`, so this no longer fires on a
|
|
273
|
+
* SUPPORTED Node.** It used to: the manifests said `>=22.0.0` while these two
|
|
274
|
+
* commands could not run below 22.13.0, which meant thirteen Node patch
|
|
275
|
+
* releases were advertised as supported and hard-failed here. The floor was
|
|
276
|
+
* raised to stop advertising what VAT cannot do. The branch stays load-bearing
|
|
277
|
+
* for the Node that is merely *installed* rather than supported â `engines` is
|
|
278
|
+
* a warning in npm and nothing at all under most runners, so a user on 22.4
|
|
279
|
+
* still reaches this and still deserves to be told which number is wrong.
|
|
280
|
+
*
|
|
281
|
+
* The repair stays distinct from the missing-package one on purpose:
|
|
282
|
+
* "install this package" is the wrong instruction for "upgrade Node", and
|
|
283
|
+
* sending someone round that loop cannot terminate.
|
|
284
|
+
*
|
|
285
|
+
* @param error - Whatever the dynamic import threw
|
|
286
|
+
* @returns The error to raise when Node itself lacks the builtin; `undefined`
|
|
287
|
+
* when this failure is something else and the caller should keep diagnosing
|
|
288
|
+
*/
|
|
289
|
+
export declare function nodeSqliteFloorFailure(error: unknown): Error | undefined;
|
|
290
|
+
/**
|
|
291
|
+
* Run one command's work with a projection store open for its whole duration,
|
|
292
|
+
* and closed however it ends.
|
|
293
|
+
*
|
|
294
|
+
* A scope rather than a bare open/close pair, because the store must outlive the
|
|
295
|
+
* call that builds a population source and not merely the call that uses it: the
|
|
296
|
+
* inventory extractor MEMOIZES its population provider and may reach it well
|
|
297
|
+
* after the frame that supplied it has returned. A store closed at the end of
|
|
298
|
+
* that frame would be closed under its own consumer.
|
|
299
|
+
*
|
|
300
|
+
* It is also the `withGitSnapshotCache` bracket for the work inside it, so the
|
|
301
|
+
* key and the extent filed under it come from ONE git snapshot â see the note
|
|
302
|
+
* in the body.
|
|
303
|
+
*
|
|
304
|
+
* `undefined` on a run with no store selected, which is the shape every
|
|
305
|
+
* population lane wants: no store means re-derive, not fail.
|
|
306
|
+
*
|
|
307
|
+
* â ïļ A caller that wants to run SQL must NOT query this store. It is one
|
|
308
|
+
* database per VAT release, shared by every root on the machine, so arbitrary
|
|
309
|
+
* SQL over it answers from other repositories â see `projection-query.ts`.
|
|
310
|
+
* That is also why this is the ONLY scope over the opened store: there is no
|
|
311
|
+
* separate "opened handle" bracket for a caller wanting more than the cache,
|
|
312
|
+
* because there is nothing legitimate for such a caller to want.
|
|
313
|
+
*
|
|
314
|
+
* ## ð It NESTS, and the outermost scope wins
|
|
315
|
+
*
|
|
316
|
+
* A scope opened inside another over the same repository **joins** it: same
|
|
317
|
+
* cache by identity, no second database, no second `git write-tree`, and the
|
|
318
|
+
* inner scope does not close what it did not open. That lets an orchestrator
|
|
319
|
+
* hold one bracket over a whole run (`vat validate` does) while each lane
|
|
320
|
+
* underneath keeps its own and stays correct run alone. Reuse is gated on the
|
|
321
|
+
* TREE HASH, never on "a scope is open" â see {@link joinableCache}.
|
|
322
|
+
*
|
|
323
|
+
* â ïļ The whole nest shares ONE snapshot, so work that must see its own edits as
|
|
324
|
+
* they land must not run inside a single scope. That is why a hoist is a
|
|
325
|
+
* decision rather than a refactor.
|
|
326
|
+
*
|
|
327
|
+
* @param options - Where the corpus is
|
|
328
|
+
* @param options.root - The absolute corpus root
|
|
329
|
+
* @param work - Given the cache, or `undefined` when there is none to give
|
|
330
|
+
* @returns Whatever `work` returned
|
|
331
|
+
*/
|
|
332
|
+
export declare function withPopulationCache<T>(options: {
|
|
333
|
+
root: string;
|
|
334
|
+
}, work: (cache: PopulationCache | undefined) => Promise<T>): Promise<T>;
|
|
335
|
+
//# sourceMappingURL=projection-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projection-store.d.ts","sourceRoot":"","sources":["../../src/utils/projection-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAIH,OAAO,KAAK,KAAK,gBAAgB,MAAM,uCAAuC,CAAC;AAC/E,OAAO,KAAK,EAAE,eAAe,EAAmB,MAAM,+BAA+B,CAAC;AAOtF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,oBAAoB,yBAAyB,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,WAAW,CAAC;AAEhD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,cAAc,CAAC;AAmBrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,uBAAuB,IAAI,OAAO,CASjD;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,qBAAqB;IACpC,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAC;IAChC;;;;;;OAMG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE;IACjD,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,qBAAqB,GAAG,SAAS,CAAC,CA6B7C;AA2BD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,CAE3F;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,sBAAsB,CAAC,CAEzF;AA8BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAmBxE;AAgFD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAsB,mBAAmB,CAAC,CAAC,EACzC,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EACzB,IAAI,EAAE,CAAC,KAAK,EAAE,eAAe,GAAG,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,GACvD,OAAO,CAAC,CAAC,CAAC,CA4BZ"}
|