@vibe-agent-toolkit/cli 0.2.0-rc.10 โ 0.2.0-rc.12
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 +3 -3
- package/dist/bin/supervise-cli.d.ts +45 -0
- package/dist/bin/supervise-cli.d.ts.map +1 -0
- package/dist/bin/supervise-cli.js +83 -0
- package/dist/bin/supervise-cli.js.map +1 -0
- package/dist/bin/vat +94 -40
- package/dist/bin/vat.d.ts +15 -4
- package/dist/bin/vat.d.ts.map +1 -1
- package/dist/bin/vat.js +94 -40
- package/dist/bin/vat.js.map +1 -1
- package/dist/bin.js +21 -29
- package/dist/bin.js.map +1 -1
- package/dist/command-tree.d.ts +45 -0
- package/dist/command-tree.d.ts.map +1 -0
- package/dist/command-tree.js +60 -0
- package/dist/command-tree.js.map +1 -0
- package/dist/commands/agent/build-schema.d.ts +100 -0
- package/dist/commands/agent/build-schema.d.ts.map +1 -0
- package/dist/commands/agent/build-schema.js +32 -0
- package/dist/commands/agent/build-schema.js.map +1 -0
- package/dist/commands/agent/build.d.ts +1 -0
- package/dist/commands/agent/build.d.ts.map +1 -1
- package/dist/commands/agent/build.js +63 -33
- package/dist/commands/agent/build.js.map +1 -1
- package/dist/commands/agent/import-schema.d.ts +75 -0
- package/dist/commands/agent/import-schema.d.ts.map +1 -0
- package/dist/commands/agent/import-schema.js +25 -0
- package/dist/commands/agent/import-schema.js.map +1 -0
- package/dist/commands/agent/import.d.ts.map +1 -1
- package/dist/commands/agent/import.js +33 -27
- package/dist/commands/agent/import.js.map +1 -1
- package/dist/commands/agent/index.d.ts.map +1 -1
- package/dist/commands/agent/index.js +132 -37
- package/dist/commands/agent/index.js.map +1 -1
- package/dist/commands/agent/install-path.d.ts.map +1 -1
- package/dist/commands/agent/install-path.js +2 -1
- package/dist/commands/agent/install-path.js.map +1 -1
- package/dist/commands/agent/install-schema.d.ts +89 -0
- package/dist/commands/agent/install-schema.d.ts.map +1 -0
- package/dist/commands/agent/install-schema.js +29 -0
- package/dist/commands/agent/install-schema.js.map +1 -0
- package/dist/commands/agent/install.d.ts +7 -1
- package/dist/commands/agent/install.d.ts.map +1 -1
- package/dist/commands/agent/install.js +78 -108
- package/dist/commands/agent/install.js.map +1 -1
- package/dist/commands/agent/installed-schema.d.ts +140 -0
- package/dist/commands/agent/installed-schema.d.ts.map +1 -0
- package/dist/commands/agent/installed-schema.js +36 -0
- package/dist/commands/agent/installed-schema.js.map +1 -0
- package/dist/commands/agent/installed.d.ts +1 -1
- package/dist/commands/agent/installed.d.ts.map +1 -1
- package/dist/commands/agent/installed.js +104 -75
- package/dist/commands/agent/installed.js.map +1 -1
- package/dist/commands/agent/list-schema.d.ts +128 -0
- package/dist/commands/agent/list-schema.d.ts.map +1 -0
- package/dist/commands/agent/list-schema.js +34 -0
- package/dist/commands/agent/list-schema.js.map +1 -0
- package/dist/commands/agent/list.d.ts +4 -3
- package/dist/commands/agent/list.d.ts.map +1 -1
- package/dist/commands/agent/list.js +50 -37
- package/dist/commands/agent/list.js.map +1 -1
- package/dist/commands/agent/run.d.ts +3 -0
- package/dist/commands/agent/run.d.ts.map +1 -1
- package/dist/commands/agent/run.js +8 -3
- package/dist/commands/agent/run.js.map +1 -1
- package/dist/commands/agent/uninstall-schema.d.ts +89 -0
- package/dist/commands/agent/uninstall-schema.d.ts.map +1 -0
- package/dist/commands/agent/uninstall-schema.js +29 -0
- package/dist/commands/agent/uninstall-schema.js.map +1 -0
- package/dist/commands/agent/uninstall.d.ts +5 -1
- package/dist/commands/agent/uninstall.d.ts.map +1 -1
- package/dist/commands/agent/uninstall.js +50 -38
- package/dist/commands/agent/uninstall.js.map +1 -1
- package/dist/commands/agent/validate-schema.d.ts +129 -0
- package/dist/commands/agent/validate-schema.d.ts.map +1 -0
- package/dist/commands/agent/validate-schema.js +35 -0
- package/dist/commands/agent/validate-schema.js.map +1 -0
- package/dist/commands/agent/validate.d.ts +6 -0
- package/dist/commands/agent/validate.d.ts.map +1 -1
- package/dist/commands/agent/validate.js +64 -36
- package/dist/commands/agent/validate.js.map +1 -1
- package/dist/commands/ard/emit-schema.d.ts +108 -0
- package/dist/commands/ard/emit-schema.d.ts.map +1 -0
- package/dist/commands/ard/emit-schema.js +37 -0
- package/dist/commands/ard/emit-schema.js.map +1 -0
- package/dist/commands/ard/emit.d.ts +31 -63
- package/dist/commands/ard/emit.d.ts.map +1 -1
- package/dist/commands/ard/emit.js +124 -68
- package/dist/commands/ard/emit.js.map +1 -1
- package/dist/commands/ard/index.d.ts.map +1 -1
- package/dist/commands/ard/index.js +17 -10
- package/dist/commands/ard/index.js.map +1 -1
- package/dist/commands/audit/compat-lane-findings.d.ts +65 -0
- package/dist/commands/audit/compat-lane-findings.d.ts.map +1 -0
- package/dist/commands/audit/compat-lane-findings.js +72 -0
- package/dist/commands/audit/compat-lane-findings.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 +23 -12
- package/dist/commands/audit/distributed-tree.js.map +1 -1
- package/dist/commands/audit/git-url-clone.d.ts +15 -7
- package/dist/commands/audit/git-url-clone.d.ts.map +1 -1
- package/dist/commands/audit/git-url-clone.js +85 -42
- package/dist/commands/audit/git-url-clone.js.map +1 -1
- package/dist/commands/audit/hierarchical-output.d.ts +28 -4
- package/dist/commands/audit/hierarchical-output.d.ts.map +1 -1
- package/dist/commands/audit/hierarchical-output.js +44 -27
- package/dist/commands/audit/hierarchical-output.js.map +1 -1
- package/dist/commands/audit/scan-population.d.ts.map +1 -1
- package/dist/commands/audit/scan-population.js +2 -1
- package/dist/commands/audit/scan-population.js.map +1 -1
- package/dist/commands/audit-schema.d.ts +1247 -0
- package/dist/commands/audit-schema.d.ts.map +1 -0
- package/dist/commands/audit-schema.js +139 -0
- package/dist/commands/audit-schema.js.map +1 -0
- package/dist/commands/audit-settings-schema.d.ts +417 -0
- package/dist/commands/audit-settings-schema.d.ts.map +1 -0
- package/dist/commands/audit-settings-schema.js +77 -0
- package/dist/commands/audit-settings-schema.js.map +1 -0
- package/dist/commands/audit-settings.d.ts +28 -9
- package/dist/commands/audit-settings.d.ts.map +1 -1
- package/dist/commands/audit-settings.js +215 -151
- package/dist/commands/audit-settings.js.map +1 -1
- package/dist/commands/audit.d.ts +72 -33
- package/dist/commands/audit.d.ts.map +1 -1
- package/dist/commands/audit.js +415 -397
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/build.d.ts +61 -4
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +176 -190
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/cache/clear-schema.d.ts +111 -0
- package/dist/commands/cache/clear-schema.d.ts.map +1 -0
- package/dist/commands/cache/clear-schema.js +37 -0
- package/dist/commands/cache/clear-schema.js.map +1 -0
- package/dist/commands/cache/clear.d.ts +28 -26
- package/dist/commands/cache/clear.d.ts.map +1 -1
- package/dist/commands/cache/clear.js +108 -103
- package/dist/commands/cache/clear.js.map +1 -1
- package/dist/commands/cache/index.d.ts.map +1 -1
- package/dist/commands/cache/index.js +13 -7
- package/dist/commands/cache/index.js.map +1 -1
- package/dist/commands/claude/claude-config.d.ts +23 -6
- package/dist/commands/claude/claude-config.d.ts.map +1 -1
- package/dist/commands/claude/claude-config.js +29 -15
- package/dist/commands/claude/claude-config.js.map +1 -1
- package/dist/commands/claude/context.d.ts +87 -2
- package/dist/commands/claude/context.d.ts.map +1 -1
- package/dist/commands/claude/context.js +116 -57
- package/dist/commands/claude/context.js.map +1 -1
- package/dist/commands/claude/marketplace/changelog-utils.js +2 -2
- package/dist/commands/claude/marketplace/changelog-utils.js.map +1 -1
- package/dist/commands/claude/marketplace/git-publish.d.ts +14 -1
- package/dist/commands/claude/marketplace/git-publish.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/git-publish.js +135 -68
- package/dist/commands/claude/marketplace/git-publish.js.map +1 -1
- package/dist/commands/claude/marketplace/license-utils.d.ts +3 -5
- package/dist/commands/claude/marketplace/license-utils.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/license-utils.js +16 -7
- package/dist/commands/claude/marketplace/license-utils.js.map +1 -1
- package/dist/commands/claude/marketplace/publish-schema.d.ts +137 -0
- package/dist/commands/claude/marketplace/publish-schema.d.ts.map +1 -0
- package/dist/commands/claude/marketplace/publish-schema.js +32 -0
- package/dist/commands/claude/marketplace/publish-schema.js.map +1 -0
- package/dist/commands/claude/marketplace/publish-tree.d.ts +6 -0
- package/dist/commands/claude/marketplace/publish-tree.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/publish-tree.js +75 -17
- package/dist/commands/claude/marketplace/publish-tree.js.map +1 -1
- package/dist/commands/claude/marketplace/publish.d.ts +27 -0
- package/dist/commands/claude/marketplace/publish.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/publish.js +84 -50
- package/dist/commands/claude/marketplace/publish.js.map +1 -1
- package/dist/commands/claude/marketplace/validate-schema.d.ts +362 -0
- package/dist/commands/claude/marketplace/validate-schema.d.ts.map +1 -0
- package/dist/commands/claude/marketplace/validate-schema.js +67 -0
- package/dist/commands/claude/marketplace/validate-schema.js.map +1 -0
- package/dist/commands/claude/marketplace/validate.d.ts +40 -53
- package/dist/commands/claude/marketplace/validate.d.ts.map +1 -1
- package/dist/commands/claude/marketplace/validate.js +358 -214
- package/dist/commands/claude/marketplace/validate.js.map +1 -1
- package/dist/commands/claude/org/api-keys.d.ts +3 -0
- package/dist/commands/claude/org/api-keys.d.ts.map +1 -1
- package/dist/commands/claude/org/api-keys.js +4 -5
- package/dist/commands/claude/org/api-keys.js.map +1 -1
- package/dist/commands/claude/org/code-analytics.js +1 -1
- package/dist/commands/claude/org/code-analytics.js.map +1 -1
- package/dist/commands/claude/org/cost.d.ts.map +1 -1
- package/dist/commands/claude/org/cost.js +11 -33
- package/dist/commands/claude/org/cost.js.map +1 -1
- package/dist/commands/claude/org/helpers.d.ts +40 -27
- package/dist/commands/claude/org/helpers.d.ts.map +1 -1
- package/dist/commands/claude/org/helpers.js +61 -66
- 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 +10 -4
- package/dist/commands/claude/org/index.js.map +1 -1
- package/dist/commands/claude/org/info.d.ts.map +1 -1
- package/dist/commands/claude/org/info.js +2 -3
- package/dist/commands/claude/org/info.js.map +1 -1
- package/dist/commands/claude/org/invites.d.ts +3 -0
- package/dist/commands/claude/org/invites.d.ts.map +1 -1
- package/dist/commands/claude/org/invites.js +5 -7
- package/dist/commands/claude/org/invites.js.map +1 -1
- package/dist/commands/claude/org/skills.d.ts +76 -21
- package/dist/commands/claude/org/skills.d.ts.map +1 -1
- package/dist/commands/claude/org/skills.js +273 -246
- package/dist/commands/claude/org/skills.js.map +1 -1
- package/dist/commands/claude/org/stubs-schema.d.ts +56 -0
- package/dist/commands/claude/org/stubs-schema.d.ts.map +1 -0
- package/dist/commands/claude/org/stubs-schema.js +23 -0
- package/dist/commands/claude/org/stubs-schema.js.map +1 -0
- package/dist/commands/claude/org/stubs.d.ts +8 -3
- package/dist/commands/claude/org/stubs.d.ts.map +1 -1
- package/dist/commands/claude/org/stubs.js +9 -9
- package/dist/commands/claude/org/stubs.js.map +1 -1
- package/dist/commands/claude/org/usage.d.ts.map +1 -1
- package/dist/commands/claude/org/usage.js +1 -2
- package/dist/commands/claude/org/usage.js.map +1 -1
- package/dist/commands/claude/org/users.d.ts +3 -0
- package/dist/commands/claude/org/users.d.ts.map +1 -1
- package/dist/commands/claude/org/users.js +6 -8
- package/dist/commands/claude/org/users.js.map +1 -1
- package/dist/commands/claude/org/workspaces.d.ts +3 -0
- package/dist/commands/claude/org/workspaces.d.ts.map +1 -1
- package/dist/commands/claude/org/workspaces.js +10 -15
- package/dist/commands/claude/org/workspaces.js.map +1 -1
- package/dist/commands/claude/plugin/build-schema.d.ts +642 -0
- package/dist/commands/claude/plugin/build-schema.d.ts.map +1 -0
- package/dist/commands/claude/plugin/build-schema.js +51 -0
- package/dist/commands/claude/plugin/build-schema.js.map +1 -0
- package/dist/commands/claude/plugin/build.d.ts +220 -45
- package/dist/commands/claude/plugin/build.d.ts.map +1 -1
- package/dist/commands/claude/plugin/build.js +466 -249
- package/dist/commands/claude/plugin/build.js.map +1 -1
- package/dist/commands/claude/plugin/helpers.d.ts +186 -24
- package/dist/commands/claude/plugin/helpers.d.ts.map +1 -1
- package/dist/commands/claude/plugin/helpers.js +110 -68
- package/dist/commands/claude/plugin/helpers.js.map +1 -1
- package/dist/commands/claude/plugin/install-schema.d.ts +144 -0
- package/dist/commands/claude/plugin/install-schema.d.ts.map +1 -0
- package/dist/commands/claude/plugin/install-schema.js +36 -0
- package/dist/commands/claude/plugin/install-schema.js.map +1 -0
- package/dist/commands/claude/plugin/install.d.ts +191 -11
- package/dist/commands/claude/plugin/install.d.ts.map +1 -1
- package/dist/commands/claude/plugin/install.js +688 -628
- package/dist/commands/claude/plugin/install.js.map +1 -1
- package/dist/commands/claude/plugin/kept-findings.d.ts +19 -0
- package/dist/commands/claude/plugin/kept-findings.d.ts.map +1 -0
- package/dist/commands/claude/plugin/kept-findings.js +24 -0
- package/dist/commands/claude/plugin/kept-findings.js.map +1 -0
- package/dist/commands/claude/plugin/list-schema.d.ts +223 -0
- package/dist/commands/claude/plugin/list-schema.d.ts.map +1 -0
- package/dist/commands/claude/plugin/list-schema.js +34 -0
- package/dist/commands/claude/plugin/list-schema.js.map +1 -0
- package/dist/commands/claude/plugin/list.d.ts +18 -0
- package/dist/commands/claude/plugin/list.d.ts.map +1 -1
- package/dist/commands/claude/plugin/list.js +53 -45
- package/dist/commands/claude/plugin/list.js.map +1 -1
- package/dist/commands/claude/plugin/npm-pack.d.ts +15 -0
- package/dist/commands/claude/plugin/npm-pack.d.ts.map +1 -0
- package/dist/commands/claude/plugin/npm-pack.js +39 -0
- package/dist/commands/claude/plugin/npm-pack.js.map +1 -0
- package/dist/commands/claude/plugin/plugin-changelog.d.ts +5 -1
- package/dist/commands/claude/plugin/plugin-changelog.d.ts.map +1 -1
- package/dist/commands/claude/plugin/plugin-changelog.js +9 -5
- package/dist/commands/claude/plugin/plugin-changelog.js.map +1 -1
- package/dist/commands/claude/plugin/plugin-files.d.ts +21 -2
- package/dist/commands/claude/plugin/plugin-files.d.ts.map +1 -1
- package/dist/commands/claude/plugin/plugin-files.js +65 -32
- package/dist/commands/claude/plugin/plugin-files.js.map +1 -1
- package/dist/commands/claude/plugin/plugin-validators.d.ts +13 -0
- package/dist/commands/claude/plugin/plugin-validators.d.ts.map +1 -1
- package/dist/commands/claude/plugin/plugin-validators.js +64 -16
- package/dist/commands/claude/plugin/plugin-validators.js.map +1 -1
- package/dist/commands/claude/plugin/tree-copy.d.ts.map +1 -1
- package/dist/commands/claude/plugin/tree-copy.js +63 -37
- package/dist/commands/claude/plugin/tree-copy.js.map +1 -1
- package/dist/commands/claude/plugin/uninstall-schema.d.ts +112 -0
- package/dist/commands/claude/plugin/uninstall-schema.d.ts.map +1 -0
- package/dist/commands/claude/plugin/uninstall-schema.js +28 -0
- package/dist/commands/claude/plugin/uninstall-schema.js.map +1 -0
- package/dist/commands/claude/plugin/uninstall.d.ts +57 -0
- package/dist/commands/claude/plugin/uninstall.d.ts.map +1 -1
- package/dist/commands/claude/plugin/uninstall.js +176 -64
- package/dist/commands/claude/plugin/uninstall.js.map +1 -1
- package/dist/commands/consistency-check.d.ts.map +1 -1
- package/dist/commands/consistency-check.js +8 -6
- 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 +26 -10
- package/dist/commands/corpus/index.js.map +1 -1
- package/dist/commands/corpus/report.d.ts +34 -16
- package/dist/commands/corpus/report.d.ts.map +1 -1
- package/dist/commands/corpus/report.js +36 -18
- package/dist/commands/corpus/report.js.map +1 -1
- package/dist/commands/corpus/runner.d.ts +25 -20
- package/dist/commands/corpus/runner.d.ts.map +1 -1
- package/dist/commands/corpus/runner.js +123 -67
- package/dist/commands/corpus/runner.js.map +1 -1
- package/dist/commands/corpus/scan-schema.d.ts +127 -0
- package/dist/commands/corpus/scan-schema.d.ts.map +1 -0
- package/dist/commands/corpus/scan-schema.js +31 -0
- package/dist/commands/corpus/scan-schema.js.map +1 -0
- package/dist/commands/corpus/scan.d.ts +31 -0
- package/dist/commands/corpus/scan.d.ts.map +1 -1
- package/dist/commands/corpus/scan.js +124 -50
- package/dist/commands/corpus/scan.js.map +1 -1
- package/dist/commands/corpus/seed.d.ts +11 -8
- package/dist/commands/corpus/seed.d.ts.map +1 -1
- package/dist/commands/corpus/seed.js +29 -11
- package/dist/commands/corpus/seed.js.map +1 -1
- package/dist/commands/doctor-render.d.ts +52 -0
- package/dist/commands/doctor-render.d.ts.map +1 -0
- package/dist/commands/doctor-render.js +110 -0
- package/dist/commands/doctor-render.js.map +1 -0
- package/dist/commands/doctor-schema.d.ts +191 -0
- package/dist/commands/doctor-schema.d.ts.map +1 -0
- package/dist/commands/doctor-schema.js +44 -0
- package/dist/commands/doctor-schema.js.map +1 -0
- package/dist/commands/doctor.d.ts +7 -62
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +126 -165
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/inventory-schema.d.ts +7297 -0
- package/dist/commands/inventory-schema.d.ts.map +1 -0
- package/dist/commands/inventory-schema.js +28 -0
- package/dist/commands/inventory-schema.js.map +1 -0
- package/dist/commands/inventory.d.ts +1 -1
- package/dist/commands/inventory.d.ts.map +1 -1
- package/dist/commands/inventory.js +89 -41
- package/dist/commands/inventory.js.map +1 -1
- package/dist/commands/mcp/index.d.ts.map +1 -1
- package/dist/commands/mcp/index.js +15 -0
- package/dist/commands/mcp/index.js.map +1 -1
- package/dist/commands/mcp/list-collections-schema.d.ts +101 -0
- package/dist/commands/mcp/list-collections-schema.d.ts.map +1 -0
- package/dist/commands/mcp/list-collections-schema.js +22 -0
- package/dist/commands/mcp/list-collections-schema.js.map +1 -0
- package/dist/commands/mcp/list-collections.d.ts +1 -1
- package/dist/commands/mcp/list-collections.d.ts.map +1 -1
- package/dist/commands/mcp/list-collections.js +19 -17
- package/dist/commands/mcp/list-collections.js.map +1 -1
- package/dist/commands/mcp/serve.d.ts +5 -0
- package/dist/commands/mcp/serve.d.ts.map +1 -1
- package/dist/commands/mcp/serve.js +29 -15
- package/dist/commands/mcp/serve.js.map +1 -1
- package/dist/commands/okf/index.d.ts.map +1 -1
- package/dist/commands/okf/index.js +13 -10
- package/dist/commands/okf/index.js.map +1 -1
- package/dist/commands/okf/validate-schema.d.ts +171 -0
- package/dist/commands/okf/validate-schema.d.ts.map +1 -0
- package/dist/commands/okf/validate-schema.js +44 -0
- package/dist/commands/okf/validate-schema.js.map +1 -0
- package/dist/commands/okf/validate.d.ts +16 -145
- package/dist/commands/okf/validate.d.ts.map +1 -1
- package/dist/commands/okf/validate.js +63 -52
- package/dist/commands/okf/validate.js.map +1 -1
- package/dist/commands/orchestrator-schema.d.ts +419 -0
- package/dist/commands/orchestrator-schema.d.ts.map +1 -0
- package/dist/commands/orchestrator-schema.js +91 -0
- package/dist/commands/orchestrator-schema.js.map +1 -0
- package/dist/commands/phase-utils.d.ts +188 -220
- package/dist/commands/phase-utils.d.ts.map +1 -1
- package/dist/commands/phase-utils.js +210 -258
- package/dist/commands/phase-utils.js.map +1 -1
- package/dist/commands/positional-args.d.ts +13 -11
- package/dist/commands/positional-args.d.ts.map +1 -1
- package/dist/commands/positional-args.js +16 -15
- package/dist/commands/positional-args.js.map +1 -1
- package/dist/commands/rag/admin-schema.d.ts +152 -0
- package/dist/commands/rag/admin-schema.d.ts.map +1 -0
- package/dist/commands/rag/admin-schema.js +31 -0
- package/dist/commands/rag/admin-schema.js.map +1 -0
- package/dist/commands/rag/clear-command.d.ts.map +1 -1
- package/dist/commands/rag/clear-command.js +30 -15
- package/dist/commands/rag/clear-command.js.map +1 -1
- package/dist/commands/rag/command-helpers.d.ts +31 -7
- package/dist/commands/rag/command-helpers.d.ts.map +1 -1
- package/dist/commands/rag/command-helpers.js +41 -21
- package/dist/commands/rag/command-helpers.js.map +1 -1
- package/dist/commands/rag/index-command.d.ts +37 -48
- package/dist/commands/rag/index-command.d.ts.map +1 -1
- package/dist/commands/rag/index-command.js +80 -65
- package/dist/commands/rag/index-command.js.map +1 -1
- package/dist/commands/rag/index-schema.d.ts +107 -0
- package/dist/commands/rag/index-schema.d.ts.map +1 -0
- package/dist/commands/rag/index-schema.js +34 -0
- package/dist/commands/rag/index-schema.js.map +1 -0
- package/dist/commands/rag/index.d.ts.map +1 -1
- package/dist/commands/rag/index.js +88 -41
- package/dist/commands/rag/index.js.map +1 -1
- package/dist/commands/rag/query-command.d.ts +18 -4
- package/dist/commands/rag/query-command.d.ts.map +1 -1
- package/dist/commands/rag/query-command.js +42 -27
- package/dist/commands/rag/query-command.js.map +1 -1
- package/dist/commands/rag/query-schema.d.ts +363 -0
- package/dist/commands/rag/query-schema.d.ts.map +1 -0
- package/dist/commands/rag/query-schema.js +59 -0
- package/dist/commands/rag/query-schema.js.map +1 -0
- package/dist/commands/rag/stats-command.d.ts.map +1 -1
- package/dist/commands/rag/stats-command.js +19 -18
- package/dist/commands/rag/stats-command.js.map +1 -1
- package/dist/commands/resources/check-progress.d.ts +79 -13
- package/dist/commands/resources/check-progress.d.ts.map +1 -1
- package/dist/commands/resources/check-progress.js +112 -11
- package/dist/commands/resources/check-progress.js.map +1 -1
- package/dist/commands/resources/check-schema.d.ts +335 -0
- package/dist/commands/resources/check-schema.d.ts.map +1 -0
- package/dist/commands/resources/check-schema.js +104 -0
- package/dist/commands/resources/check-schema.js.map +1 -0
- package/dist/commands/resources/check-supervisor.d.ts +329 -71
- package/dist/commands/resources/check-supervisor.d.ts.map +1 -1
- package/dist/commands/resources/check-supervisor.js +507 -107
- package/dist/commands/resources/check-supervisor.js.map +1 -1
- package/dist/commands/resources/check.d.ts +88 -254
- package/dist/commands/resources/check.d.ts.map +1 -1
- package/dist/commands/resources/check.js +537 -310
- package/dist/commands/resources/check.js.map +1 -1
- package/dist/commands/resources/index.d.ts.map +1 -1
- package/dist/commands/resources/index.js +189 -103
- package/dist/commands/resources/index.js.map +1 -1
- package/dist/commands/resources/query-schema.d.ts +188 -0
- package/dist/commands/resources/query-schema.d.ts.map +1 -0
- package/dist/commands/resources/query-schema.js +48 -0
- package/dist/commands/resources/query-schema.js.map +1 -0
- package/dist/commands/resources/query.d.ts +18 -13
- package/dist/commands/resources/query.d.ts.map +1 -1
- package/dist/commands/resources/query.js +61 -49
- package/dist/commands/resources/query.js.map +1 -1
- package/dist/commands/resources/scan-schema.d.ts +195 -0
- package/dist/commands/resources/scan-schema.d.ts.map +1 -0
- package/dist/commands/resources/scan-schema.js +53 -0
- package/dist/commands/resources/scan-schema.js.map +1 -0
- package/dist/commands/resources/scan.d.ts +26 -3
- package/dist/commands/resources/scan.d.ts.map +1 -1
- package/dist/commands/resources/scan.js +51 -53
- package/dist/commands/resources/scan.js.map +1 -1
- package/dist/commands/resources/validate-schema.d.ts +326 -0
- package/dist/commands/resources/validate-schema.d.ts.map +1 -0
- package/dist/commands/resources/validate-schema.js +60 -0
- package/dist/commands/resources/validate-schema.js.map +1 -0
- package/dist/commands/resources/validate.d.ts +45 -169
- package/dist/commands/resources/validate.d.ts.map +1 -1
- package/dist/commands/resources/validate.js +221 -485
- package/dist/commands/resources/validate.js.map +1 -1
- package/dist/commands/skill/review-checklist.d.ts.map +1 -1
- package/dist/commands/skill/review-checklist.js +0 -1
- package/dist/commands/skill/review-checklist.js.map +1 -1
- package/dist/commands/skill/review-schema.d.ts +278 -0
- package/dist/commands/skill/review-schema.d.ts.map +1 -0
- package/dist/commands/skill/review-schema.js +46 -0
- package/dist/commands/skill/review-schema.js.map +1 -0
- package/dist/commands/skill/review.d.ts +8 -234
- package/dist/commands/skill/review.d.ts.map +1 -1
- package/dist/commands/skill/review.js +54 -77
- package/dist/commands/skill/review.js.map +1 -1
- package/dist/commands/skill/test/auth-flags.d.ts +3 -0
- package/dist/commands/skill/test/auth-flags.d.ts.map +1 -1
- package/dist/commands/skill/test/auth-flags.js +6 -2
- package/dist/commands/skill/test/auth-flags.js.map +1 -1
- package/dist/commands/skill/test/configure-schema.d.ts +67 -0
- package/dist/commands/skill/test/configure-schema.d.ts.map +1 -0
- package/dist/commands/skill/test/configure-schema.js +27 -0
- package/dist/commands/skill/test/configure-schema.js.map +1 -0
- package/dist/commands/skill/test/configure.d.ts +12 -5
- package/dist/commands/skill/test/configure.d.ts.map +1 -1
- package/dist/commands/skill/test/configure.js +101 -31
- package/dist/commands/skill/test/configure.js.map +1 -1
- package/dist/commands/skill/test/run-schema.d.ts +107 -0
- package/dist/commands/skill/test/run-schema.d.ts.map +1 -0
- package/dist/commands/skill/test/run-schema.js +36 -0
- package/dist/commands/skill/test/run-schema.js.map +1 -0
- package/dist/commands/skill/test/run.d.ts +3 -2
- package/dist/commands/skill/test/run.d.ts.map +1 -1
- package/dist/commands/skill/test/run.js +316 -155
- package/dist/commands/skill/test/run.js.map +1 -1
- package/dist/commands/skills/build-schema.d.ts +199 -0
- package/dist/commands/skills/build-schema.d.ts.map +1 -0
- package/dist/commands/skills/build-schema.js +55 -0
- package/dist/commands/skills/build-schema.js.map +1 -0
- package/dist/commands/skills/build.d.ts +95 -298
- package/dist/commands/skills/build.d.ts.map +1 -1
- package/dist/commands/skills/build.js +415 -818
- package/dist/commands/skills/build.js.map +1 -1
- package/dist/commands/skills/command-helpers.d.ts +5 -11
- package/dist/commands/skills/command-helpers.d.ts.map +1 -1
- package/dist/commands/skills/command-helpers.js +7 -17
- package/dist/commands/skills/command-helpers.js.map +1 -1
- package/dist/commands/skills/index.js +12 -6
- package/dist/commands/skills/index.js.map +1 -1
- package/dist/commands/skills/install-schema.d.ts +153 -0
- package/dist/commands/skills/install-schema.d.ts.map +1 -0
- package/dist/commands/skills/install-schema.js +44 -0
- package/dist/commands/skills/install-schema.js.map +1 -0
- package/dist/commands/skills/install.d.ts +76 -8
- package/dist/commands/skills/install.d.ts.map +1 -1
- package/dist/commands/skills/install.js +230 -194
- package/dist/commands/skills/install.js.map +1 -1
- package/dist/commands/skills/list-schema.d.ts +145 -0
- package/dist/commands/skills/list-schema.d.ts.map +1 -0
- package/dist/commands/skills/list-schema.js +37 -0
- package/dist/commands/skills/list-schema.js.map +1 -0
- package/dist/commands/skills/list.d.ts +39 -8
- package/dist/commands/skills/list.d.ts.map +1 -1
- package/dist/commands/skills/list.js +110 -122
- package/dist/commands/skills/list.js.map +1 -1
- package/dist/commands/skills/package-schema.d.ts +98 -0
- package/dist/commands/skills/package-schema.d.ts.map +1 -0
- package/dist/commands/skills/package-schema.js +32 -0
- package/dist/commands/skills/package-schema.js.map +1 -0
- package/dist/commands/skills/package.d.ts +85 -14
- package/dist/commands/skills/package.d.ts.map +1 -1
- package/dist/commands/skills/package.js +288 -207
- package/dist/commands/skills/package.js.map +1 -1
- package/dist/commands/skills/scope-guard.d.ts +27 -20
- package/dist/commands/skills/scope-guard.d.ts.map +1 -1
- package/dist/commands/skills/scope-guard.js +43 -28
- package/dist/commands/skills/scope-guard.js.map +1 -1
- package/dist/commands/skills/skill-discovery.d.ts +1 -1
- package/dist/commands/skills/skill-discovery.d.ts.map +1 -1
- package/dist/commands/skills/skill-discovery.js +40 -19
- package/dist/commands/skills/skill-discovery.js.map +1 -1
- package/dist/commands/skills/source-resolvers.d.ts +58 -8
- package/dist/commands/skills/source-resolvers.d.ts.map +1 -1
- package/dist/commands/skills/source-resolvers.js +113 -38
- 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 +31 -51
- package/dist/commands/skills/validate-command.js.map +1 -1
- package/dist/commands/skills/validate-schema.d.ts +199 -0
- package/dist/commands/skills/validate-schema.d.ts.map +1 -0
- package/dist/commands/skills/validate-schema.js +44 -0
- package/dist/commands/skills/validate-schema.js.map +1 -0
- package/dist/commands/skills/validate.d.ts +100 -136
- package/dist/commands/skills/validate.d.ts.map +1 -1
- package/dist/commands/skills/validate.js +257 -343
- package/dist/commands/skills/validate.js.map +1 -1
- package/dist/commands/validate.d.ts +17 -5
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +139 -94
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/verify.d.ts +121 -110
- package/dist/commands/verify.d.ts.map +1 -1
- package/dist/commands/verify.js +230 -294
- package/dist/commands/verify.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/report-schemas.d.ts +12398 -35
- package/dist/report-schemas.d.ts.map +1 -1
- package/dist/report-schemas.js +624 -66
- package/dist/report-schemas.js.map +1 -1
- package/dist/skill-resolution/packaging-config.js +2 -2
- 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 +20 -13
- package/dist/skill-resolution/resolve-skill-reference.js.map +1 -1
- package/dist/utils/agent-discovery.d.ts +34 -1
- package/dist/utils/agent-discovery.d.ts.map +1 -1
- package/dist/utils/agent-discovery.js +80 -38
- package/dist/utils/agent-discovery.js.map +1 -1
- package/dist/utils/claude-context-lens.d.ts +13 -6
- package/dist/utils/claude-context-lens.d.ts.map +1 -1
- package/dist/utils/claude-context-lens.js +11 -12
- package/dist/utils/claude-context-lens.js.map +1 -1
- package/dist/utils/command-error-codes.d.ts +12 -0
- package/dist/utils/command-error-codes.d.ts.map +1 -0
- package/dist/utils/command-error-codes.js +12 -0
- package/dist/utils/command-error-codes.js.map +1 -0
- package/dist/utils/command-refusal.d.ts +58 -0
- package/dist/utils/command-refusal.d.ts.map +1 -0
- package/dist/utils/command-refusal.js +170 -0
- package/dist/utils/command-refusal.js.map +1 -0
- package/dist/utils/commander-ending.d.ts +40 -0
- package/dist/utils/commander-ending.d.ts.map +1 -0
- package/dist/utils/commander-ending.js +42 -0
- package/dist/utils/commander-ending.js.map +1 -0
- package/dist/utils/config-loader.d.ts +13 -8
- package/dist/utils/config-loader.d.ts.map +1 -1
- package/dist/utils/config-loader.js +84 -45
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/corpus-target.d.ts +1 -1
- package/dist/utils/corpus-target.d.ts.map +1 -1
- package/dist/utils/corpus-target.js +44 -5
- package/dist/utils/corpus-target.js.map +1 -1
- package/dist/utils/debug-diagnostics.d.ts +18 -0
- package/dist/utils/debug-diagnostics.d.ts.map +1 -0
- package/dist/utils/debug-diagnostics.js +23 -0
- package/dist/utils/debug-diagnostics.js.map +1 -0
- package/dist/utils/document-writer.d.ts +191 -0
- package/dist/utils/document-writer.d.ts.map +1 -0
- package/dist/utils/document-writer.js +319 -0
- package/dist/utils/document-writer.js.map +1 -0
- package/dist/utils/help-loader.d.ts +2 -2
- package/dist/utils/help-loader.js +2 -2
- package/dist/utils/install-plan.d.ts +99 -0
- package/dist/utils/install-plan.d.ts.map +1 -0
- package/dist/utils/install-plan.js +146 -0
- package/dist/utils/install-plan.js.map +1 -0
- package/dist/utils/issue-anchor.d.ts +1 -1
- package/dist/utils/issue-anchor.d.ts.map +1 -1
- package/dist/utils/issue-anchor.js.map +1 -1
- package/dist/utils/issue-rendering.d.ts +8 -3
- package/dist/utils/issue-rendering.d.ts.map +1 -1
- package/dist/utils/issue-rendering.js +4 -0
- package/dist/utils/issue-rendering.js.map +1 -1
- package/dist/utils/lens-population.d.ts +20 -0
- package/dist/utils/lens-population.d.ts.map +1 -0
- package/dist/utils/lens-population.js +15 -0
- package/dist/utils/lens-population.js.map +1 -0
- package/dist/utils/marketplace-io.d.ts +63 -0
- package/dist/utils/marketplace-io.d.ts.map +1 -0
- package/dist/utils/marketplace-io.js +63 -0
- package/dist/utils/marketplace-io.js.map +1 -0
- package/dist/utils/operator-notices.d.ts +97 -0
- package/dist/utils/operator-notices.d.ts.map +1 -0
- package/dist/utils/operator-notices.js +115 -0
- package/dist/utils/operator-notices.js.map +1 -0
- package/dist/utils/optional-backend.d.ts +18 -15
- package/dist/utils/optional-backend.d.ts.map +1 -1
- package/dist/utils/optional-backend.js +22 -33
- package/dist/utils/optional-backend.js.map +1 -1
- package/dist/utils/output.d.ts +5 -43
- package/dist/utils/output.d.ts.map +1 -1
- package/dist/utils/output.js +8 -63
- package/dist/utils/output.js.map +1 -1
- package/dist/utils/package-json.d.ts +3 -4
- package/dist/utils/package-json.d.ts.map +1 -1
- package/dist/utils/package-json.js +8 -8
- package/dist/utils/package-json.js.map +1 -1
- package/dist/utils/population-wiring.d.ts +31 -38
- package/dist/utils/population-wiring.d.ts.map +1 -1
- package/dist/utils/population-wiring.js +38 -32
- package/dist/utils/population-wiring.js.map +1 -1
- package/dist/utils/project-root-policy.d.ts +74 -1
- package/dist/utils/project-root-policy.d.ts.map +1 -1
- package/dist/utils/project-root-policy.js +146 -8
- package/dist/utils/project-root-policy.js.map +1 -1
- package/dist/utils/projection-lenses.d.ts +25 -7
- package/dist/utils/projection-lenses.d.ts.map +1 -1
- package/dist/utils/projection-lenses.js +20 -6
- package/dist/utils/projection-lenses.js.map +1 -1
- package/dist/utils/projection-query.d.ts +18 -11
- package/dist/utils/projection-query.d.ts.map +1 -1
- package/dist/utils/projection-query.js +47 -28
- package/dist/utils/projection-query.js.map +1 -1
- package/dist/utils/projection-store.d.ts +2 -2
- package/dist/utils/projection-store.d.ts.map +1 -1
- package/dist/utils/projection-store.js +74 -45
- package/dist/utils/projection-store.js.map +1 -1
- package/dist/utils/rag-database.d.ts +61 -0
- package/dist/utils/rag-database.d.ts.map +1 -0
- package/dist/utils/rag-database.js +178 -0
- package/dist/utils/rag-database.js.map +1 -0
- package/dist/utils/relation-limits.d.ts +7 -2
- package/dist/utils/relation-limits.d.ts.map +1 -1
- package/dist/utils/relation-limits.js +6 -1
- package/dist/utils/relation-limits.js.map +1 -1
- package/dist/utils/relativize-paths.d.ts +23 -0
- package/dist/utils/relativize-paths.d.ts.map +1 -1
- package/dist/utils/relativize-paths.js +32 -1
- package/dist/utils/relativize-paths.js.map +1 -1
- package/dist/utils/resource-loader.d.ts +78 -32
- package/dist/utils/resource-loader.d.ts.map +1 -1
- package/dist/utils/resource-loader.js +134 -66
- package/dist/utils/resource-loader.js.map +1 -1
- package/dist/utils/run-integrity.d.ts +64 -31
- package/dist/utils/run-integrity.d.ts.map +1 -1
- package/dist/utils/run-integrity.js +76 -35
- package/dist/utils/run-integrity.js.map +1 -1
- package/dist/utils/scope-locations.d.ts +7 -5
- package/dist/utils/scope-locations.d.ts.map +1 -1
- package/dist/utils/scope-locations.js +37 -12
- package/dist/utils/scope-locations.js.map +1 -1
- package/dist/utils/staging-dir.d.ts +7 -0
- package/dist/utils/staging-dir.d.ts.map +1 -0
- package/dist/utils/staging-dir.js +12 -0
- package/dist/utils/staging-dir.js.map +1 -0
- package/dist/utils/url-redact.d.ts +9 -0
- package/dist/utils/url-redact.d.ts.map +1 -1
- package/dist/utils/url-redact.js +13 -0
- package/dist/utils/url-redact.js.map +1 -1
- package/dist/utils/user-context-scanner.d.ts +3 -2
- package/dist/utils/user-context-scanner.d.ts.map +1 -1
- package/dist/utils/user-context-scanner.js +24 -4
- 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 +8 -14
- package/dist/utils/validate-help-files.js.map +1 -1
- package/dist/utils/vat-bin-path.d.ts.map +1 -1
- package/dist/utils/vat-bin-path.js +3 -3
- package/dist/utils/vat-bin-path.js.map +1 -1
- package/dist/utils/verdict-helpers.d.ts.map +1 -1
- package/dist/utils/verdict-helpers.js +5 -5
- package/dist/utils/verdict-helpers.js.map +1 -1
- package/docs/agent.md +347 -2
- package/docs/audit.md +312 -89
- package/docs/doctor.md +65 -19
- package/docs/index.md +571 -20
- package/docs/mcp.md +64 -12
- package/docs/rag.md +176 -48
- package/docs/resources.md +257 -71
- package/docs/skill-test.md +148 -19
- package/docs/skills.md +459 -174
- package/package.json +17 -20
- package/schemas/agent-build.json +268 -0
- package/schemas/agent-import.json +252 -0
- package/schemas/agent-install.json +260 -0
- package/schemas/agent-installed.json +287 -0
- package/schemas/agent-list.json +279 -0
- package/schemas/agent-uninstall.json +260 -0
- package/schemas/agent-validate.json +279 -0
- package/schemas/ard-emit.json +228 -107
- package/schemas/audit-settings.json +472 -0
- package/schemas/audit.json +635 -0
- package/schemas/cache-clear.json +273 -0
- package/schemas/claude-marketplace-publish.json +286 -0
- package/schemas/claude-marketplace-validate.json +352 -0
- package/schemas/claude-org-not-implemented.json +239 -0
- package/schemas/claude-plugin-build.json +446 -0
- package/schemas/claude-plugin-install.json +291 -0
- package/schemas/claude-plugin-list.json +326 -0
- package/schemas/claude-plugin-uninstall.json +272 -0
- package/schemas/corpus-audit.json +635 -0
- package/schemas/corpus-scan.json +293 -0
- package/schemas/doctor.json +299 -0
- package/schemas/inventory.json +982 -0
- package/schemas/mcp-list-collections.json +268 -0
- package/schemas/okf-validate.json +224 -106
- package/schemas/orchestrator.json +299 -0
- package/schemas/rag-clear.json +253 -0
- package/schemas/rag-index.json +273 -0
- package/schemas/rag-query.json +365 -0
- package/schemas/rag-stats.json +269 -0
- package/schemas/resources-check.json +280 -118
- package/schemas/resources-query.json +333 -0
- package/schemas/resources-scan.json +321 -0
- package/schemas/resources-validate.json +332 -0
- package/schemas/skill-review.json +224 -106
- package/schemas/skill-test-configure.json +256 -0
- package/schemas/skill-test-run.json +296 -0
- package/schemas/skills-build.json +325 -0
- package/schemas/skills-install.json +287 -0
- package/schemas/skills-list.json +283 -0
- package/schemas/skills-package.json +270 -0
- package/schemas/skills-validate.json +285 -0
- package/dist/commands/skills/shared.d.ts +0 -29
- package/dist/commands/skills/shared.d.ts.map +0 -1
- package/dist/commands/skills/shared.js +0 -33
- package/dist/commands/skills/shared.js.map +0 -1
- package/dist/utils/command-error.d.ts +0 -189
- package/dist/utils/command-error.d.ts.map +0 -1
- package/dist/utils/command-error.js +0 -230
- package/dist/utils/command-error.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/cache/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAA0B,MAAM,YAAY,CAAC;AAGvE,MAAM,UAAU,kBAAkB;IAChC,MAAM,KAAK,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEnC,KAAK;SACF,WAAW,CAAC,iEAAiE,CAAC;SAC9E,WAAW,CAAC,KAAK,CAAC;SAClB,WAAW,CACV,OAAO,EACP;;;;;;;;;;;;;;;;;;;;;;;;CAwBL,CACI,CAAC;IAEJ,KAAK;SACF,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,gEAAgE,CAAC;SAC7E,MAAM,CAAC,KAAK;QACX,MAAM,iBAAiB,CAAC,IAAI,CAAC,eAAe,EAAuB,CAAC,CAAC;IACvE,CAAC,CAAC;SACD,WAAW,CACV,OAAO,EACP
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/cache/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAA0B,MAAM,YAAY,CAAC;AAGvE,MAAM,UAAU,kBAAkB;IAChC,MAAM,KAAK,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAEnC,KAAK;SACF,WAAW,CAAC,iEAAiE,CAAC;SAC9E,WAAW,CAAC,KAAK,CAAC;SAClB,WAAW,CACV,OAAO,EACP;;;;;;;;;;;;;;;;;;;;;;;;CAwBL,CACI,CAAC;IAEJ,KAAK;SACF,OAAO,CAAC,OAAO,CAAC;SAChB,WAAW,CAAC,gEAAgE,CAAC;SAC7E,MAAM,CAAC,KAAK;QACX,MAAM,iBAAiB,CAAC,IAAI,CAAC,eAAe,EAAuB,CAAC,CAAC;IACvE,CAAC,CAAC;SACD,WAAW,CACV,OAAO,EACP;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CL,CACI,CAAC;IAEJ,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared config loading utilities for `vat claude` subcommands.
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import type { ClaudeConfig, ProjectConfig } from '@vibe-agent-toolkit/resources';
|
|
5
5
|
export interface LoadedClaudeConfig {
|
|
6
6
|
configPath: string;
|
|
7
7
|
configDir: string;
|
|
8
8
|
claudeConfig: ClaudeConfig;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* Find, parse, and return the
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* Find, parse, and return the project config for a `vat claude` verb.
|
|
12
|
+
* Refuses `CONFIG_INVALID` when no config file is found; a config that cannot
|
|
13
|
+
* be read or does not parse throws the loader's coded error.
|
|
14
|
+
*
|
|
15
|
+
* Parsed by the CLI's `loadConfig` โ the reader `claude plugin build` hands
|
|
16
|
+
* on to the marketplace build โ so a verb that loads here and builds there
|
|
17
|
+
* reads the file once and warns about an unknown key once. It used to parse
|
|
18
|
+
* through `parseConfigFile` as well, and printed the same warning twice.
|
|
19
|
+
* `claudeConfig` is undefined when the `claude:` section is absent.
|
|
14
20
|
*/
|
|
15
|
-
export declare function loadClaudeProjectConfig():
|
|
21
|
+
export declare function loadClaudeProjectConfig(): {
|
|
16
22
|
configPath: string;
|
|
17
23
|
configDir: string;
|
|
24
|
+
projectConfig: ProjectConfig | undefined;
|
|
18
25
|
claudeConfig: ClaudeConfig | undefined;
|
|
19
|
-
}
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Refuse a `--marketplace <name>` the config does not declare โ the
|
|
29
|
+
* invocation's mistake, like an undeclared `--collection`. A declared
|
|
30
|
+
* marketplace the verb then has nothing to do with is not this refusal.
|
|
31
|
+
*
|
|
32
|
+
* @param requested - The `--marketplace` value, when one was passed
|
|
33
|
+
* @param declared - The names under `claude.marketplaces`
|
|
34
|
+
* @throws {CommandRefusalError} `USAGE_INVALID` naming the declared marketplaces
|
|
35
|
+
*/
|
|
36
|
+
export declare function assertMarketplaceDeclared(requested: string | undefined, declared: readonly string[]): void;
|
|
20
37
|
//# sourceMappingURL=claude-config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-config.d.ts","sourceRoot":"","sources":["../../../src/commands/claude/claude-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,
|
|
1
|
+
{"version":3,"file":"claude-config.d.ts","sourceRoot":"","sources":["../../../src/commands/claude/claude-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAMjF,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,IAAI;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,aAAa,GAAG,SAAS,CAAC;IACzC,YAAY,EAAE,YAAY,GAAG,SAAS,CAAC;CACxC,CAUA;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAM1G"}
|
|
@@ -2,27 +2,41 @@
|
|
|
2
2
|
* Shared config loading utilities for `vat claude` subcommands.
|
|
3
3
|
*/
|
|
4
4
|
import { dirname } from 'node:path';
|
|
5
|
-
import { parseConfigFile } from '@vibe-agent-toolkit/resources';
|
|
6
5
|
import { findConfigFile } from '@vibe-agent-toolkit/utils';
|
|
6
|
+
import { CommandRefusalError } from '../../utils/command-refusal.js';
|
|
7
|
+
import { loadConfig } from '../../utils/config-loader.js';
|
|
7
8
|
/**
|
|
8
|
-
* Find, parse, and return the
|
|
9
|
-
*
|
|
10
|
-
*
|
|
9
|
+
* Find, parse, and return the project config for a `vat claude` verb.
|
|
10
|
+
* Refuses `CONFIG_INVALID` when no config file is found; a config that cannot
|
|
11
|
+
* be read or does not parse throws the loader's coded error.
|
|
12
|
+
*
|
|
13
|
+
* Parsed by the CLI's `loadConfig` โ the reader `claude plugin build` hands
|
|
14
|
+
* on to the marketplace build โ so a verb that loads here and builds there
|
|
15
|
+
* reads the file once and warns about an unknown key once. It used to parse
|
|
16
|
+
* through `parseConfigFile` as well, and printed the same warning twice.
|
|
17
|
+
* `claudeConfig` is undefined when the `claude:` section is absent.
|
|
11
18
|
*/
|
|
12
|
-
export
|
|
13
|
-
// findConfigFile from utils is synchronous; await of a non-promise is a no-op.
|
|
19
|
+
export function loadClaudeProjectConfig() {
|
|
14
20
|
const configPath = findConfigFile(process.cwd());
|
|
15
21
|
if (!configPath) {
|
|
16
|
-
throw new
|
|
22
|
+
throw new CommandRefusalError('CONFIG_INVALID', 'No vibe-agent-toolkit.config.yaml found. Run from a project directory.');
|
|
17
23
|
}
|
|
18
|
-
// No `onUnknownKeys` argument: `parseConfigFile` already DEFAULTS to writing
|
|
19
|
-
// the warning to stderr, which is exactly what this lane needs โ unknown keys
|
|
20
|
-
// are a warning rather than a refusal, and stderr keeps the YAML document on
|
|
21
|
-
// stdout machine-readable. Passing a callback byte-identical to the default
|
|
22
|
-
// said "this command has an opinion here" while changing nothing, so a later
|
|
23
|
-
// reader would have to diff it against the default to learn it was dead.
|
|
24
|
-
const config = await parseConfigFile(configPath);
|
|
25
24
|
const configDir = dirname(configPath);
|
|
26
|
-
|
|
25
|
+
const projectConfig = loadConfig(configDir, 'source');
|
|
26
|
+
return { configPath, configDir, projectConfig, claudeConfig: projectConfig?.claude };
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Refuse a `--marketplace <name>` the config does not declare โ the
|
|
30
|
+
* invocation's mistake, like an undeclared `--collection`. A declared
|
|
31
|
+
* marketplace the verb then has nothing to do with is not this refusal.
|
|
32
|
+
*
|
|
33
|
+
* @param requested - The `--marketplace` value, when one was passed
|
|
34
|
+
* @param declared - The names under `claude.marketplaces`
|
|
35
|
+
* @throws {CommandRefusalError} `USAGE_INVALID` naming the declared marketplaces
|
|
36
|
+
*/
|
|
37
|
+
export function assertMarketplaceDeclared(requested, declared) {
|
|
38
|
+
if (requested === undefined || declared.includes(requested))
|
|
39
|
+
return;
|
|
40
|
+
throw new CommandRefusalError('USAGE_INVALID', `Marketplace "${requested}" is not declared in claude.marketplaces (declared: ${declared.length === 0 ? 'none' : declared.join(', ')}).`);
|
|
27
41
|
}
|
|
28
42
|
//# sourceMappingURL=claude-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude-config.js","sourceRoot":"","sources":["../../../src/commands/claude/claude-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"claude-config.js","sourceRoot":"","sources":["../../../src/commands/claude/claude-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAQ1D;;;;;;;;;;GAUG;AACH,MAAM,UAAU,uBAAuB;IAMrC,MAAM,UAAU,GAAG,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;IACjD,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,MAAM,IAAI,mBAAmB,CAAC,gBAAgB,EAAE,wEAAwE,CAAC,CAAC;IAC5H,CAAC;IAED,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACtC,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAEtD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC;AACvF,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,yBAAyB,CAAC,SAA6B,EAAE,QAA2B;IAClG,IAAI,SAAS,KAAK,SAAS,IAAI,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC;QAAE,OAAO;IACpE,MAAM,IAAI,mBAAmB,CAC3B,eAAe,EACf,gBAAgB,SAAS,uDAAuD,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CACzI,CAAC;AACJ,CAAC"}
|
|
@@ -5,8 +5,19 @@
|
|
|
5
5
|
* The first ANALYSIS verb under `vat claude`, which until now held only
|
|
6
6
|
* management verbs (plugins, marketplaces, org administration). It answers a
|
|
7
7
|
* question, changes nothing, and never gates: there is no threshold anywhere in
|
|
8
|
-
* this file, and the only non-zero exit is
|
|
9
|
-
*
|
|
8
|
+
* this file, and the only non-zero exit is a refusal's 2. A number that fails a
|
|
9
|
+
* build teaches people to stop reading it.
|
|
10
|
+
*
|
|
11
|
+
* ## The one legacy document โ interim, until wave C replaces the verb
|
|
12
|
+
*
|
|
13
|
+
* Its answer is not the `Report<T>` envelope; it is the registry's one
|
|
14
|
+
* remaining `legacy` entry, published through the writer's
|
|
15
|
+
* `writeLegacyDocument` (the only serializer a legacy verb may use) and ended on
|
|
16
|
+
* `ExitCode.OK`. A refusal IS the envelope's error branch โ `refusalReport`,
|
|
17
|
+
* with the code {@link refusalCodeOf} reads off the throw (a path outside the
|
|
18
|
+
* corpus is `USAGE_INVALID`, a missing projection backend `BACKEND_UNAVAILABLE`,
|
|
19
|
+
* VAT's own defect `INTERNAL_ERROR`) โ written the same way and ended on the
|
|
20
|
+
* code it derives. Wave C replaces the verb, and this path with it.
|
|
10
21
|
*
|
|
11
22
|
* ## Everything below is orchestration and formatting โ deliberately
|
|
12
23
|
*
|
|
@@ -237,6 +248,18 @@ export declare function createContextCommand(): Command;
|
|
|
237
248
|
* @param options - The command's flags
|
|
238
249
|
*/
|
|
239
250
|
export declare function claudeContextCommand(pathArgs: readonly string[], options: ClaudeContextOptions): Promise<void>;
|
|
251
|
+
/**
|
|
252
|
+
* The paths a run answers for, checked before anything is populated.
|
|
253
|
+
*
|
|
254
|
+
* `--all` answers the whole tree and emits no per-path document, so a path or
|
|
255
|
+
* `--discoverable` beside it would be silently dropped: refused instead.
|
|
256
|
+
*
|
|
257
|
+
* @param root - The corpus root
|
|
258
|
+
* @param pathArgs - The path arguments, possibly empty
|
|
259
|
+
* @param options - The command's flags
|
|
260
|
+
* @returns The root-relative targets; empty under `--all`
|
|
261
|
+
*/
|
|
262
|
+
declare function requestedTargets(root: string, pathArgs: readonly string[], options: ClaudeContextOptions): string[];
|
|
240
263
|
/**
|
|
241
264
|
* The answer document for one query.
|
|
242
265
|
*
|
|
@@ -293,6 +316,21 @@ export declare function contextEnvelope(root: string, answers: readonly (Context
|
|
|
293
316
|
* @returns The envelope, ready to serialize
|
|
294
317
|
*/
|
|
295
318
|
export declare function costMapEnvelope(root: string, costMap: ContextCostMap): ContextCostMapEnvelope;
|
|
319
|
+
/**
|
|
320
|
+
* Render every answer for a person, with the limits stated exactly once.
|
|
321
|
+
*
|
|
322
|
+
* โ The limits are printed ONCE, after the last answer, rather than per answer.
|
|
323
|
+
* They are properties of the MEASUREMENT METHOD, not of any one path, so
|
|
324
|
+
* repeating them per path would read as though each answer carried its own
|
|
325
|
+
* caveats โ and across a many-path run would bury the answers under identical
|
|
326
|
+
* paragraphs. A run with no answered path prints no limits at all, for the same
|
|
327
|
+
* reason {@link unknownDocumentFor} omits them: nothing was measured, so there is
|
|
328
|
+
* no measurement to bound.
|
|
329
|
+
*
|
|
330
|
+
* @param documents - The answers, in requested order
|
|
331
|
+
* @returns The text rendering, newline-terminated
|
|
332
|
+
*/
|
|
333
|
+
export declare function renderEnvelopeText(documents: readonly (ContextAnswerDocument | ContextUnknownDocument)[]): string;
|
|
296
334
|
/**
|
|
297
335
|
* Render the `--all` cost map for a person: where in this tree it is expensive
|
|
298
336
|
* to work.
|
|
@@ -316,6 +354,35 @@ export declare function costMapEnvelope(root: string, costMap: ContextCostMap):
|
|
|
316
354
|
* @returns The text rendering, newline-terminated
|
|
317
355
|
*/
|
|
318
356
|
export declare function renderCostMapText(map: ContextCostMap): string;
|
|
357
|
+
/**
|
|
358
|
+
* The non-answer, spelled so it cannot be mistaken for an empty answer.
|
|
359
|
+
*
|
|
360
|
+
* โ **A non-answer publishes no measurement, in every format.** No `totals`, no
|
|
361
|
+
* `rows`: nothing was measured here, so anything readable as a figure would
|
|
362
|
+
* assert that a measurement happened, which is the exact confusion `kind:
|
|
363
|
+
* 'unknown'` exists to prevent. The limits are one level up on the ENVELOPE and
|
|
364
|
+
* bound the run's method, not this path โ a sweep whose every path was
|
|
365
|
+
* unrealized still measured nothing, and the `explanation` carries the only
|
|
366
|
+
* caveat that applies to a non-answer, which is that there is no answer.
|
|
367
|
+
*
|
|
368
|
+
* @param input - The path that was asked about
|
|
369
|
+
* @param root - The corpus root that was enumerated
|
|
370
|
+
* @returns The unknown document
|
|
371
|
+
*/
|
|
372
|
+
declare function unknownDocumentFor(input: string, root: string): ContextUnknownDocument;
|
|
373
|
+
/**
|
|
374
|
+
* Render the non-answer for a person.
|
|
375
|
+
*
|
|
376
|
+
* @param document - The unknown document
|
|
377
|
+
* @returns The text rendering, newline-terminated
|
|
378
|
+
*/
|
|
379
|
+
declare function renderUnknownText(document: ContextUnknownDocument): string;
|
|
380
|
+
/** Test seam: the non-answer's document and its text rendering. */
|
|
381
|
+
export declare const __internal: {
|
|
382
|
+
renderUnknownText: typeof renderUnknownText;
|
|
383
|
+
requestedTargets: typeof requestedTargets;
|
|
384
|
+
unknownDocumentFor: typeof unknownDocumentFor;
|
|
385
|
+
};
|
|
319
386
|
/**
|
|
320
387
|
* What one row costs, or why it costs nothing.
|
|
321
388
|
*
|
|
@@ -337,4 +404,22 @@ export declare function renderCostMapText(map: ContextCostMap): string;
|
|
|
337
404
|
* @returns The cost phrase
|
|
338
405
|
*/
|
|
339
406
|
export declare function chargeText(row: AccountedRow): string;
|
|
407
|
+
/**
|
|
408
|
+
* One condition โ the compact `severity code at location: message` line, an
|
|
409
|
+
* indented `subject:` naming the refused or escaping TARGET when one differs
|
|
410
|
+
* from `location` (never for `CLOSURE_REFERENCE_UNRESOLVED`, which has none),
|
|
411
|
+
* an indented `why:` explaining which harness loader rule makes it so, and,
|
|
412
|
+
* when {@link GradedCondition.affects} names one, a `reached from:` line
|
|
413
|
+
* tracing the import chain that reaches it.
|
|
414
|
+
*
|
|
415
|
+
* Exported for `context-condition-line.test.ts`, the same reason
|
|
416
|
+
* {@link chargeText} is: the only code that renders these lines, so it is what
|
|
417
|
+
* a unit test pins rather than a system assertion over a real tree's own
|
|
418
|
+
* conditions (which may carry none of the shapes this needs to distinguish).
|
|
419
|
+
*
|
|
420
|
+
* @param condition - The graded condition
|
|
421
|
+
* @returns The lines, newline-joined โ one {@link listSection} entry
|
|
422
|
+
*/
|
|
423
|
+
export declare function conditionLine(condition: GradedCondition): string;
|
|
424
|
+
export {};
|
|
340
425
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/commands/claude/context.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/commands/claude/context.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,8 +5,19 @@
|
|
|
5
5
|
* The first ANALYSIS verb under `vat claude`, which until now held only
|
|
6
6
|
* management verbs (plugins, marketplaces, org administration). It answers a
|
|
7
7
|
* question, changes nothing, and never gates: there is no threshold anywhere in
|
|
8
|
-
* this file, and the only non-zero exit is
|
|
9
|
-
*
|
|
8
|
+
* this file, and the only non-zero exit is a refusal's 2. A number that fails a
|
|
9
|
+
* build teaches people to stop reading it.
|
|
10
|
+
*
|
|
11
|
+
* ## The one legacy document โ interim, until wave C replaces the verb
|
|
12
|
+
*
|
|
13
|
+
* Its answer is not the `Report<T>` envelope; it is the registry's one
|
|
14
|
+
* remaining `legacy` entry, published through the writer's
|
|
15
|
+
* `writeLegacyDocument` (the only serializer a legacy verb may use) and ended on
|
|
16
|
+
* `ExitCode.OK`. A refusal IS the envelope's error branch โ `refusalReport`,
|
|
17
|
+
* with the code {@link refusalCodeOf} reads off the throw (a path outside the
|
|
18
|
+
* corpus is `USAGE_INVALID`, a missing projection backend `BACKEND_UNAVAILABLE`,
|
|
19
|
+
* VAT's own defect `INTERNAL_ERROR`) โ written the same way and ended on the
|
|
20
|
+
* code it derives. Wave C replaces the verb, and this path with it.
|
|
10
21
|
*
|
|
11
22
|
* ## Everything below is orchestration and formatting โ deliberately
|
|
12
23
|
*
|
|
@@ -59,21 +70,22 @@
|
|
|
59
70
|
* one, and the same reasoning is why an unrealized path answers `unknown` rather
|
|
60
71
|
* than an empty table.
|
|
61
72
|
*/
|
|
62
|
-
import { account, buildClaudeContextPopulation, buildContextCostMap, CLAUDE_CONTEXT_BOUNDS_STATEMENT, CLAUDE_CONTEXT_LIMITS, CLAUDE_CONTEXT_MODELLED_BEHAVIOURS,
|
|
63
|
-
import { ExitCode } from '@vibe-agent-toolkit/schema';
|
|
73
|
+
import { account, buildClaudeContextPopulation, buildContextCostMap, CLAUDE_CONTEXT_BOUNDS_STATEMENT, CLAUDE_CONTEXT_LIMITS, CLAUDE_CONTEXT_MODELLED_BEHAVIOURS, discoverableFrom, whatLoadsAt, } from '@vibe-agent-toolkit/resources';
|
|
74
|
+
import { ExitCode, exitCodeForReport } from '@vibe-agent-toolkit/schema';
|
|
64
75
|
import { findProjectRoot } from '@vibe-agent-toolkit/utils';
|
|
65
76
|
import { Command, Option } from 'commander';
|
|
66
|
-
import {
|
|
77
|
+
import { CommandRefusalError, refusalCodeOf } from '../../utils/command-refusal.js';
|
|
67
78
|
import { targetPathWithin } from '../../utils/corpus-target.js';
|
|
79
|
+
import { NOTHING_FINISHED, refusalReport, writeLegacyDocument } from '../../utils/document-writer.js';
|
|
68
80
|
import { createLogger } from '../../utils/logger.js';
|
|
69
|
-
import {
|
|
70
|
-
import { populationWiring } from '../../utils/population-wiring.js';
|
|
81
|
+
import { populateAndReport } from '../../utils/population-wiring.js';
|
|
71
82
|
import { withPopulationCache } from '../../utils/projection-store.js';
|
|
72
|
-
import { gitTrackerForProjectRoot } from '../audit/distributed-tree.js';
|
|
73
83
|
/** Soft wrap width for the printed limit statements. */
|
|
74
84
|
const WRAP_COLUMNS = 96;
|
|
75
85
|
/** How this command names itself in a refusal. */
|
|
76
86
|
const COMMAND_NAME = 'vat claude context';
|
|
87
|
+
/** `vat claude context` never gates: there is no `--strict`, and no threshold to apply one to. */
|
|
88
|
+
const CLAUDE_CONTEXT_GATE = { strict: false };
|
|
77
89
|
/**
|
|
78
90
|
* How many rows each RANKED section of the `--all` cost map prints.
|
|
79
91
|
*
|
|
@@ -155,8 +167,8 @@ Description:
|
|
|
155
167
|
the TOTAL of that launch floor and what fires on demand there (a path-scoped
|
|
156
168
|
rule fires for some directories and not others, so the on-demand half is
|
|
157
169
|
never borrowed from a region-mate). Directories are ranked by that total. It
|
|
158
|
-
emits no per-path documents; name paths for those. --
|
|
159
|
-
named paths only.
|
|
170
|
+
emits no per-path documents; name paths for those. --all with a path or
|
|
171
|
+
with --discoverable (which applies to named paths only) is refused.
|
|
160
172
|
|
|
161
173
|
Output:
|
|
162
174
|
- kind: context-answers for named paths, context-cost-map for --all โ
|
|
@@ -182,10 +194,22 @@ Output:
|
|
|
182
194
|
A path the projection never realized answers kind: unknown โ never zero.
|
|
183
195
|
Diagnostics and blob-stage refusals go to stderr; stdout is the document.
|
|
184
196
|
|
|
197
|
+
A refusal publishes the report envelope's error branch (status: error,
|
|
198
|
+
error: { code, message }, gate) in the requested format (text renders it
|
|
199
|
+
as YAML), with the message on stderr.
|
|
200
|
+
|
|
185
201
|
Exit Codes:
|
|
186
202
|
0 - An answer was produced (there is no threshold and no gate)
|
|
187
|
-
|
|
188
|
-
|
|
203
|
+
2 - Invalid usage rejected before the verb runs (an unknown option, or an
|
|
204
|
+
unsupported --format value: Commander's message on stderr, no document),
|
|
205
|
+
or refused: error.code USAGE_INVALID (a path outside the corpus root,
|
|
206
|
+
or --all with a path or --discoverable),
|
|
207
|
+
BACKEND_UNAVAILABLE (the projection store's optional backend is not
|
|
208
|
+
installed), INPUT_UNREADABLE (a tree the OS will not read, including
|
|
209
|
+
one file in a git repository the OS will not let git read โ the
|
|
210
|
+
message names it), or
|
|
211
|
+
INTERNAL_ERROR (a VAT bug, e.g. a memory file reached with no derived
|
|
212
|
+
harness facts โ its stack goes to stderr)
|
|
189
213
|
|
|
190
214
|
Example:
|
|
191
215
|
$ vat claude context src/index.ts docs/ README.md # one scan, three answers
|
|
@@ -206,17 +230,16 @@ Example:
|
|
|
206
230
|
*/
|
|
207
231
|
export async function claudeContextCommand(pathArgs, options) {
|
|
208
232
|
const logger = createLogger(options.debug === true ? { debug: true } : {});
|
|
209
|
-
const startTime = Date.now();
|
|
210
233
|
const sweep = options.all === true;
|
|
234
|
+
const format = options.format ?? 'text';
|
|
211
235
|
try {
|
|
212
236
|
const root = findProjectRoot(process.cwd()) ?? process.cwd();
|
|
213
237
|
// ๐ Every argument is resolved BEFORE the population, not inside the map.
|
|
214
238
|
// A path outside the corpus is a usage error, and finding it afterwards
|
|
215
239
|
// would charge the caller a full population โ minutes on a cold cache โ to
|
|
216
|
-
// be told they mistyped.
|
|
217
|
-
const requested =
|
|
240
|
+
// be told they mistyped.
|
|
241
|
+
const requested = requestedTargets(root, pathArgs, options);
|
|
218
242
|
const projection = await populateContext(root, logger);
|
|
219
|
-
const format = options.format ?? 'text';
|
|
220
243
|
if (sweep) {
|
|
221
244
|
// Every number in the map is decided in `@vibe-agent-toolkit/resources`.
|
|
222
245
|
// This branch calls one function and formats what it returns.
|
|
@@ -230,16 +253,40 @@ export async function claudeContextCommand(pathArgs, options) {
|
|
|
230
253
|
const answers = requested.map((target) => documentFor(target, projection, root, options.discoverable === true));
|
|
231
254
|
emit(contextEnvelope(root, answers), renderEnvelopeText(answers), format);
|
|
232
255
|
}
|
|
233
|
-
// โ Always 0. There is no threshold in this command and there
|
|
234
|
-
// to be one โ a number that fails a build is a number people
|
|
235
|
-
// reading. The explicit exit
|
|
236
|
-
//
|
|
256
|
+
// โ Always 0 for an answer. There is no threshold in this command and there
|
|
257
|
+
// is not going to be one โ a number that fails a build is a number people
|
|
258
|
+
// learn to stop reading. The explicit exit guarantees the process ends rather
|
|
259
|
+
// than waiting on whatever the population left behind.
|
|
237
260
|
process.exit(ExitCode.OK);
|
|
238
261
|
}
|
|
239
262
|
catch (error) {
|
|
240
|
-
|
|
263
|
+
// Coded at the cause, read here โ never relabelled by where it was thrown.
|
|
264
|
+
const report = refusalReport(refusalCodeOf(error), error, CLAUDE_CONTEXT_GATE, NOTHING_FINISHED);
|
|
265
|
+
writeLegacyDocument('claude context', report, format, undefined);
|
|
266
|
+
process.exit(exitCodeForReport(report));
|
|
241
267
|
}
|
|
242
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* The paths a run answers for, checked before anything is populated.
|
|
271
|
+
*
|
|
272
|
+
* `--all` answers the whole tree and emits no per-path document, so a path or
|
|
273
|
+
* `--discoverable` beside it would be silently dropped: refused instead.
|
|
274
|
+
*
|
|
275
|
+
* @param root - The corpus root
|
|
276
|
+
* @param pathArgs - The path arguments, possibly empty
|
|
277
|
+
* @param options - The command's flags
|
|
278
|
+
* @returns The root-relative targets; empty under `--all`
|
|
279
|
+
*/
|
|
280
|
+
function requestedTargets(root, pathArgs, options) {
|
|
281
|
+
if (options.all !== true)
|
|
282
|
+
return targetsWithin(root, pathArgs);
|
|
283
|
+
const ignored = [...pathArgs, ...(options.discoverable === true ? ['--discoverable'] : [])];
|
|
284
|
+
if (ignored.length > 0) {
|
|
285
|
+
throw new CommandRefusalError('USAGE_INVALID', `--all reports the whole tree and answers no named path, so it cannot take ${ignored.join(', ')}.`
|
|
286
|
+
+ ' Drop --all to answer for named paths (with --discoverable if wanted), or drop the rest for the cost map.');
|
|
287
|
+
}
|
|
288
|
+
return [];
|
|
289
|
+
}
|
|
243
290
|
/**
|
|
244
291
|
* The answer document for one query.
|
|
245
292
|
*
|
|
@@ -261,12 +308,9 @@ export async function claudeContextCommand(pathArgs, options) {
|
|
|
261
308
|
* @returns The answer document
|
|
262
309
|
*/
|
|
263
310
|
export function answerDocument(answer, projection, discoverable) {
|
|
264
|
-
// The cliff
|
|
265
|
-
//
|
|
266
|
-
const
|
|
267
|
-
.filter((tag) => tag.tag === CLAUDE_MD_TAG)
|
|
268
|
-
.map((tag) => tag.resourceId));
|
|
269
|
-
const accounted = account(answer, claudeMdIds);
|
|
311
|
+
// The cliff applies to every memory file the harness reads, so the
|
|
312
|
+
// accounting needs no tag vocabulary from here.
|
|
313
|
+
const accounted = account(answer);
|
|
270
314
|
// ๐ `conditions`, `overBudgetRules` and `unattributedImports` live on the
|
|
271
315
|
// ORIGINAL answer โ `AccountedContext` is `{rows, totals}` and nothing else.
|
|
272
316
|
// Reading them off the accounting result silently drops every warning.
|
|
@@ -386,7 +430,7 @@ function documentFor(target, projection, root, discoverable) {
|
|
|
386
430
|
* @param documents - The answers, in requested order
|
|
387
431
|
* @returns The text rendering, newline-terminated
|
|
388
432
|
*/
|
|
389
|
-
function renderEnvelopeText(documents) {
|
|
433
|
+
export function renderEnvelopeText(documents) {
|
|
390
434
|
const bodies = documents.map((document) => document.kind === 'unknown' ? renderUnknownText(document) : renderAnswerText(document));
|
|
391
435
|
const measured = documents.some((document) => document.kind === 'answer');
|
|
392
436
|
if (!measured)
|
|
@@ -688,34 +732,26 @@ function groupDigits(value) {
|
|
|
688
732
|
* Populate the Claude-context lane for one tree.
|
|
689
733
|
*
|
|
690
734
|
* @param root - The absolute corpus root
|
|
691
|
-
* @param logger - Where
|
|
692
|
-
* command's stdout is the document a caller parses
|
|
693
|
-
* middle of it breaks every consumer
|
|
735
|
+
* @param logger - Where the population's refused content is reported. **stderr**,
|
|
736
|
+
* never stdout: this command's stdout is the document a caller parses
|
|
694
737
|
* @returns The populated projection
|
|
695
738
|
*/
|
|
696
|
-
|
|
739
|
+
function populateContext(root, logger) {
|
|
697
740
|
return withPopulationCache({ root }, async (cache) => {
|
|
698
|
-
const
|
|
699
|
-
return
|
|
741
|
+
const { projection } = await populateAndReport({ root, cache, logger, population: 'claude-context' }, (wiring) => buildClaudeContextPopulation({ root, ...wiring }), (result) => result.projection);
|
|
742
|
+
return projection;
|
|
700
743
|
});
|
|
701
744
|
}
|
|
702
745
|
/**
|
|
703
|
-
*
|
|
746
|
+
* Publish the answer through the writer's one legacy serializer: the text
|
|
747
|
+
* rendering under `--format text`, the document itself otherwise.
|
|
704
748
|
*
|
|
705
749
|
* @param document - The yaml/json payload
|
|
706
750
|
* @param text - The text rendering of the same answer
|
|
707
751
|
* @param format - The selected format
|
|
708
752
|
*/
|
|
709
753
|
function emit(document, text, format) {
|
|
710
|
-
|
|
711
|
-
writeJsonOutput(document);
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
if (format === 'yaml') {
|
|
715
|
-
writeYamlOutput(document);
|
|
716
|
-
return;
|
|
717
|
-
}
|
|
718
|
-
writeStdoutSync(text);
|
|
754
|
+
writeLegacyDocument('claude context', document, format, text);
|
|
719
755
|
}
|
|
720
756
|
/**
|
|
721
757
|
* The non-answer, spelled so it cannot be mistaken for an empty answer.
|
|
@@ -756,6 +792,8 @@ function renderUnknownText(document) {
|
|
|
756
792
|
'',
|
|
757
793
|
].join('\n');
|
|
758
794
|
}
|
|
795
|
+
/** Test seam: the non-answer's document and its text rendering. */
|
|
796
|
+
export const __internal = { renderUnknownText, requestedTargets, unknownDocumentFor };
|
|
759
797
|
/**
|
|
760
798
|
* Render the answer for a person.
|
|
761
799
|
*
|
|
@@ -769,7 +807,7 @@ function renderAnswerText(document) {
|
|
|
769
807
|
...rowSection('Loaded at launch (always)', document.rows, 'always'),
|
|
770
808
|
...rowSection('Loaded on demand', document.rows, 'on-demand'),
|
|
771
809
|
...listSection('Conditions', document.conditions.map(conditionLine)),
|
|
772
|
-
...listSection('Rules
|
|
810
|
+
...listSection('Rules with a paths: pattern the vendor expansion budget refused (their other patterns still apply)', document.overBudgetRules),
|
|
773
811
|
...listSection('Imported files no importer could be attributed to', document.unattributedImports),
|
|
774
812
|
...discoverySection(document.discoverable),
|
|
775
813
|
];
|
|
@@ -856,6 +894,11 @@ function estimateLines(totals) {
|
|
|
856
894
|
'Token estimate',
|
|
857
895
|
` always-loaded ${groupDigits(totals.alwaysTokens)} tokens`,
|
|
858
896
|
` on-demand ${groupDigits(totals.onDemandTokens)} tokens`,
|
|
897
|
+
// Already folded into the two lines above โ every row's own header, and the
|
|
898
|
+
// once-per-launch preamble on top of them โ printed separately so a reader
|
|
899
|
+
// sees how much of the total is RENDERING rather than content.
|
|
900
|
+
` of which: headers ${groupDigits(totals.headerTokens)} tokens`
|
|
901
|
+
+ ` ยท preamble ${groupDigits(totals.preambleTokens)} tokens (both already counted above)`,
|
|
859
902
|
// โ UNCONDITIONAL here, unlike a region's โ see {@link quietCounterLines}.
|
|
860
903
|
// A single-path answer has no tree-level roll-up to fall back on, so these
|
|
861
904
|
// three lines are its only statement that the rows were counted at all.
|
|
@@ -968,28 +1011,44 @@ function describeImport(admission) {
|
|
|
968
1011
|
+ ` (closure rooted at ${admission.rootPath})`;
|
|
969
1012
|
}
|
|
970
1013
|
/**
|
|
971
|
-
* One condition
|
|
1014
|
+
* One condition โ the compact `severity code at location: message` line, an
|
|
1015
|
+
* indented `subject:` naming the refused or escaping TARGET when one differs
|
|
1016
|
+
* from `location` (never for `CLOSURE_REFERENCE_UNRESOLVED`, which has none),
|
|
1017
|
+
* an indented `why:` explaining which harness loader rule makes it so, and,
|
|
1018
|
+
* when {@link GradedCondition.affects} names one, a `reached from:` line
|
|
1019
|
+
* tracing the import chain that reaches it.
|
|
1020
|
+
*
|
|
1021
|
+
* Exported for `context-condition-line.test.ts`, the same reason
|
|
1022
|
+
* {@link chargeText} is: the only code that renders these lines, so it is what
|
|
1023
|
+
* a unit test pins rather than a system assertion over a real tree's own
|
|
1024
|
+
* conditions (which may carry none of the shapes this needs to distinguish).
|
|
972
1025
|
*
|
|
973
1026
|
* @param condition - The graded condition
|
|
974
|
-
* @returns The
|
|
1027
|
+
* @returns The lines, newline-joined โ one {@link listSection} entry
|
|
975
1028
|
*/
|
|
976
|
-
function conditionLine(condition) {
|
|
977
|
-
const reference = condition.
|
|
978
|
-
|
|
979
|
-
|
|
1029
|
+
export function conditionLine(condition) {
|
|
1030
|
+
const reference = condition.ref === null ? '' : ` [${condition.ref}]`;
|
|
1031
|
+
const lines = [
|
|
1032
|
+
` ${condition.severity.padEnd(7)} ${condition.code}`
|
|
1033
|
+
+ ` at ${conditionLocation(condition)}${reference}: ${condition.message}`,
|
|
1034
|
+
];
|
|
1035
|
+
if (condition.subject !== null) {
|
|
1036
|
+
lines.push(` subject: ${condition.subject}`);
|
|
1037
|
+
}
|
|
1038
|
+
lines.push(` why: ${condition.why}`);
|
|
1039
|
+
if (condition.affects !== null) {
|
|
1040
|
+
lines.push(` reached from: ${condition.affects.chain.join(' โ ')} (hop ${condition.affects.hop})`);
|
|
1041
|
+
}
|
|
1042
|
+
return lines.join('\n');
|
|
980
1043
|
}
|
|
981
1044
|
/**
|
|
982
|
-
* Where a condition points
|
|
1045
|
+
* Where a condition points.
|
|
983
1046
|
*
|
|
984
1047
|
* @param condition - The graded condition
|
|
985
1048
|
* @returns A path, or a `path:line`
|
|
986
1049
|
*/
|
|
987
1050
|
function conditionLocation(condition) {
|
|
988
|
-
|
|
989
|
-
return condition.path;
|
|
990
|
-
if (condition.sourceLine === null)
|
|
991
|
-
return condition.sourcePath;
|
|
992
|
-
return `${condition.sourcePath}:${condition.sourceLine}`;
|
|
1051
|
+
return condition.line === null ? condition.path : `${condition.path}:${condition.line}`;
|
|
993
1052
|
}
|
|
994
1053
|
/**
|
|
995
1054
|
* A heading plus its lines, or nothing at all when there are none.
|