@vibe-agent-toolkit/cli 0.2.0-rc.11 → 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 +95 -43
- package/dist/bin/vat.d.ts +15 -4
- package/dist/bin/vat.d.ts.map +1 -1
- package/dist/bin/vat.js +95 -43
- 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 +21 -65
- package/dist/commands/ard/emit.d.ts.map +1 -1
- package/dist/commands/ard/emit.js +68 -74
- 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 +14 -11
- 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 +405 -411
- 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 +55 -2
- package/dist/commands/claude/context.d.ts.map +1 -1
- package/dist/commands/claude/context.js +74 -50
- 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 +6 -5
- 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 -149
- package/dist/commands/okf/validate.d.ts.map +1 -1
- package/dist/commands/okf/validate.js +64 -62
- 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 +64 -11
- package/dist/commands/resources/check-progress.d.ts.map +1 -1
- package/dist/commands/resources/check-progress.js +77 -4
- 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 +315 -71
- package/dist/commands/resources/check-supervisor.d.ts.map +1 -1
- package/dist/commands/resources/check-supervisor.js +493 -107
- package/dist/commands/resources/check-supervisor.js.map +1 -1
- package/dist/commands/resources/check.d.ts +56 -249
- package/dist/commands/resources/check.d.ts.map +1 -1
- package/dist/commands/resources/check.js +416 -276
- 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 +165 -91
- 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 +17 -12
- package/dist/commands/resources/query.d.ts.map +1 -1
- package/dist/commands/resources/query.js +60 -48
- 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 -78
- 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 -32
- 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 +6 -4
- 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 +17 -10
- 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 +76 -32
- package/dist/utils/resource-loader.d.ts.map +1 -1
- package/dist/utils/resource-loader.js +132 -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 +16 -19
- 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 +224 -106
- 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 +242 -108
- 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 -194
- package/dist/utils/command-error.d.ts.map +0 -1
- package/dist/utils/command-error.js +0 -237
- package/dist/utils/command-error.js.map +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vat doctor`'s human block — the one rendering, for two channels.
|
|
3
|
+
*
|
|
4
|
+
* Under `--format yaml|json` the block goes to stderr beside the document; under
|
|
5
|
+
* `--format text` it IS the stdout rendering (registered as the verb's
|
|
6
|
+
* `renderText`), so a text run prints it once. A module of its own because the
|
|
7
|
+
* published-shape registry imports the text renderer, and the registry must not
|
|
8
|
+
* import the command (the cycle `report-schemas.ts` describes).
|
|
9
|
+
*/
|
|
10
|
+
import type { Report } from '@vibe-agent-toolkit/schema';
|
|
11
|
+
import type { DoctorCheckResult, DoctorData, DoctorOutcome } from './doctor-schema.js';
|
|
12
|
+
/** How many checks landed in each outcome. Published beside the verdict, never folded into it. */
|
|
13
|
+
type DoctorOutcomeCounts = Record<DoctorOutcome, number>;
|
|
14
|
+
/** Tally checks by outcome. The four buckets always sum to `checks.length`. */
|
|
15
|
+
export declare function countByOutcome(checks: readonly DoctorCheckResult[]): DoctorOutcomeCounts;
|
|
16
|
+
/**
|
|
17
|
+
* Which checks the renderer prints.
|
|
18
|
+
*
|
|
19
|
+
* Verbose prints all of them. Concise hides only the checks with nothing to say:
|
|
20
|
+
* a clean `pass` with no suggestion, and a `skipped` check that does not apply
|
|
21
|
+
* here. `fail` and `undetermined` are ALWAYS printed — an undetermined check is
|
|
22
|
+
* the one a concise view must never swallow.
|
|
23
|
+
*
|
|
24
|
+
* Whatever this hides, {@link formatDoctorSummary} states the number of hidden
|
|
25
|
+
* checks, so the printed list and the printed counts cannot disagree.
|
|
26
|
+
*/
|
|
27
|
+
export declare function selectDisplayChecks(checks: readonly DoctorCheckResult[], verbose: boolean): DoctorCheckResult[];
|
|
28
|
+
/**
|
|
29
|
+
* The summary block: the distribution, how many checks were not rendered, and
|
|
30
|
+
* the verdict.
|
|
31
|
+
*
|
|
32
|
+
* `displayedCount` is required precisely so the block can never claim more
|
|
33
|
+
* checks than the reader was shown without saying so.
|
|
34
|
+
*/
|
|
35
|
+
export declare function formatDoctorSummary(counts: DoctorOutcomeCounts, displayedCount: number): string[];
|
|
36
|
+
/**
|
|
37
|
+
* The whole human block: the project context when run below the project root,
|
|
38
|
+
* the checks the view selects, then the summary.
|
|
39
|
+
*
|
|
40
|
+
* @param data - The document's data — `currentDir` says whether doctor ran below the project root
|
|
41
|
+
* @param verbose - Print every check rather than only those with something to say
|
|
42
|
+
* @returns The block, newline-terminated
|
|
43
|
+
*/
|
|
44
|
+
export declare function renderDoctorBlock(data: DoctorData, verbose: boolean): string;
|
|
45
|
+
/**
|
|
46
|
+
* `vat doctor --format text`: the human block, with every check — the text
|
|
47
|
+
* document is the whole report, which is why no check is filtered from it — or,
|
|
48
|
+
* for a run that produced no verdict, its refusal line.
|
|
49
|
+
*/
|
|
50
|
+
export declare function renderDoctorText(report: Report<unknown>): string;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=doctor-render.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor-render.d.ts","sourceRoot":"","sources":["../../src/commands/doctor-render.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEvF,kGAAkG;AAClG,KAAK,mBAAmB,GAAG,MAAM,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAEzD,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,GAAG,mBAAmB,CAMxF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,iBAAiB,EAAE,EACpC,OAAO,EAAE,OAAO,GACf,iBAAiB,EAAE,CAKrB;AASD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,mBAAmB,EAC3B,cAAc,EAAE,MAAM,GACrB,MAAM,EAAE,CA4BV;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,MAAM,CAuB5E;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAGhE"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `vat doctor`'s human block — the one rendering, for two channels.
|
|
3
|
+
*
|
|
4
|
+
* Under `--format yaml|json` the block goes to stderr beside the document; under
|
|
5
|
+
* `--format text` it IS the stdout rendering (registered as the verb's
|
|
6
|
+
* `renderText`), so a text run prints it once. A module of its own because the
|
|
7
|
+
* published-shape registry imports the text renderer, and the registry must not
|
|
8
|
+
* import the command (the cycle `report-schemas.ts` describes).
|
|
9
|
+
*/
|
|
10
|
+
/** Tally checks by outcome. The four buckets always sum to `checks.length`. */
|
|
11
|
+
export function countByOutcome(checks) {
|
|
12
|
+
const counts = { pass: 0, fail: 0, undetermined: 0, skipped: 0 };
|
|
13
|
+
for (const check of checks) {
|
|
14
|
+
counts[check.outcome] += 1;
|
|
15
|
+
}
|
|
16
|
+
return counts;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Which checks the renderer prints.
|
|
20
|
+
*
|
|
21
|
+
* Verbose prints all of them. Concise hides only the checks with nothing to say:
|
|
22
|
+
* a clean `pass` with no suggestion, and a `skipped` check that does not apply
|
|
23
|
+
* here. `fail` and `undetermined` are ALWAYS printed — an undetermined check is
|
|
24
|
+
* the one a concise view must never swallow.
|
|
25
|
+
*
|
|
26
|
+
* Whatever this hides, {@link formatDoctorSummary} states the number of hidden
|
|
27
|
+
* checks, so the printed list and the printed counts cannot disagree.
|
|
28
|
+
*/
|
|
29
|
+
export function selectDisplayChecks(checks, verbose) {
|
|
30
|
+
if (verbose)
|
|
31
|
+
return [...checks];
|
|
32
|
+
return checks.filter(c => c.suggestion !== undefined || (c.outcome !== 'pass' && c.outcome !== 'skipped'));
|
|
33
|
+
}
|
|
34
|
+
const OUTCOME_ICONS = {
|
|
35
|
+
pass: '✅',
|
|
36
|
+
fail: '❌',
|
|
37
|
+
undetermined: '❓',
|
|
38
|
+
skipped: '⏭️',
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The summary block: the distribution, how many checks were not rendered, and
|
|
42
|
+
* the verdict.
|
|
43
|
+
*
|
|
44
|
+
* `displayedCount` is required precisely so the block can never claim more
|
|
45
|
+
* checks than the reader was shown without saying so.
|
|
46
|
+
*/
|
|
47
|
+
export function formatDoctorSummary(counts, displayedCount) {
|
|
48
|
+
const total = counts.pass + counts.fail + counts.undetermined + counts.skipped;
|
|
49
|
+
const lines = [
|
|
50
|
+
`📊 Results: ${total} checks — ${counts.pass} passed, ${counts.fail} failed, ` +
|
|
51
|
+
`${counts.undetermined} undetermined, ${counts.skipped} skipped`,
|
|
52
|
+
];
|
|
53
|
+
const hidden = total - displayedCount;
|
|
54
|
+
if (hidden > 0) {
|
|
55
|
+
lines.push(` ${hidden} not shown (nothing to report) — re-run with --verbose to see every check.`);
|
|
56
|
+
}
|
|
57
|
+
lines.push('');
|
|
58
|
+
if (counts.fail > 0) {
|
|
59
|
+
lines.push(`⚠️ ${counts.fail} check(s) failed. See suggestions above to fix.`);
|
|
60
|
+
}
|
|
61
|
+
else if (counts.undetermined > 0) {
|
|
62
|
+
lines.push(`❓ Nothing failed, but ${counts.undetermined} check(s) could not be determined — ` +
|
|
63
|
+
'that is not the same as healthy.');
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
lines.push('✨ All checks passed! Your vat setup looks healthy.');
|
|
67
|
+
}
|
|
68
|
+
return lines;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* The whole human block: the project context when run below the project root,
|
|
72
|
+
* the checks the view selects, then the summary.
|
|
73
|
+
*
|
|
74
|
+
* @param data - The document's data — `currentDir` says whether doctor ran below the project root
|
|
75
|
+
* @param verbose - Print every check rather than only those with something to say
|
|
76
|
+
* @returns The block, newline-terminated
|
|
77
|
+
*/
|
|
78
|
+
export function renderDoctorBlock(data, verbose) {
|
|
79
|
+
const lines = ['🩺 vat doctor', ''];
|
|
80
|
+
const { currentDir, projectRoot, configPath } = data;
|
|
81
|
+
if (projectRoot !== null && projectRoot !== currentDir) {
|
|
82
|
+
lines.push('📍 Project Context', ` Current directory: ${currentDir}`, ` Project root: ${projectRoot}`);
|
|
83
|
+
if (configPath !== null)
|
|
84
|
+
lines.push(` Configuration: ${configPath}`);
|
|
85
|
+
lines.push('');
|
|
86
|
+
}
|
|
87
|
+
lines.push('Running diagnostic checks...', '');
|
|
88
|
+
const displayed = selectDisplayChecks(data.checks, verbose);
|
|
89
|
+
for (const check of displayed) {
|
|
90
|
+
lines.push(`${OUTCOME_ICONS[check.outcome]} ${check.name}`, ` ${check.message}`);
|
|
91
|
+
if (check.suggestion !== undefined)
|
|
92
|
+
lines.push(` 💡 ${check.suggestion}`);
|
|
93
|
+
lines.push('');
|
|
94
|
+
}
|
|
95
|
+
// The summary states the distribution AND how many checks it did not print,
|
|
96
|
+
// so the count can never contradict the list above it.
|
|
97
|
+
lines.push(...formatDoctorSummary(countByOutcome(data.checks), displayed.length));
|
|
98
|
+
return `${lines.join('\n')}\n`;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* `vat doctor --format text`: the human block, with every check — the text
|
|
102
|
+
* document is the whole report, which is why no check is filtered from it — or,
|
|
103
|
+
* for a run that produced no verdict, its refusal line.
|
|
104
|
+
*/
|
|
105
|
+
export function renderDoctorText(report) {
|
|
106
|
+
if (report.status === 'error')
|
|
107
|
+
return `error: ${report.error.message} [${report.error.code}]\n`;
|
|
108
|
+
return renderDoctorBlock(report.data, true);
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=doctor-render.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor-render.js","sourceRoot":"","sources":["../../src/commands/doctor-render.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AASH,+EAA+E;AAC/E,MAAM,UAAU,cAAc,CAAC,MAAoC;IACjE,MAAM,MAAM,GAAwB,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IACtF,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CACjC,MAAoC,EACpC,OAAgB;IAEhB,IAAI,OAAO;QAAE,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;IAChC,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,CAAC,CAAC,OAAO,KAAK,MAAM,IAAI,CAAC,CAAC,OAAO,KAAK,SAAS,CAAC,CACrF,CAAC;AACJ,CAAC;AAED,MAAM,aAAa,GAAkC;IACnD,IAAI,EAAE,GAAG;IACT,IAAI,EAAE,GAAG;IACT,YAAY,EAAE,GAAG;IACjB,OAAO,EAAE,IAAI;CACd,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CACjC,MAA2B,EAC3B,cAAsB;IAEtB,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC;IAC/E,MAAM,KAAK,GAAG;QACZ,eAAe,KAAK,aAAa,MAAM,CAAC,IAAI,YAAY,MAAM,CAAC,IAAI,WAAW;YAC5E,GAAG,MAAM,CAAC,YAAY,kBAAkB,MAAM,CAAC,OAAO,UAAU;KACnE,CAAC;IAEF,MAAM,MAAM,GAAG,KAAK,GAAG,cAAc,CAAC;IACtC,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;QACf,KAAK,CAAC,IAAI,CACR,MAAM,MAAM,4EAA4E,CACzF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEf,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC;QACpB,KAAK,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,IAAI,iDAAiD,CAAC,CAAC;IAClF,CAAC;SAAM,IAAI,MAAM,CAAC,YAAY,GAAG,CAAC,EAAE,CAAC;QACnC,KAAK,CAAC,IAAI,CACR,yBAAyB,MAAM,CAAC,YAAY,sCAAsC;YAChF,kCAAkC,CACrC,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAgB,EAAE,OAAgB;IAClE,MAAM,KAAK,GAAG,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IAEpC,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACrD,IAAI,WAAW,KAAK,IAAI,IAAI,WAAW,KAAK,UAAU,EAAE,CAAC;QACvD,KAAK,CAAC,IAAI,CAAC,oBAAoB,EAAE,yBAAyB,UAAU,EAAE,EAAE,yBAAyB,WAAW,EAAE,CAAC,CAAC;QAChH,IAAI,UAAU,KAAK,IAAI;YAAE,KAAK,CAAC,IAAI,CAAC,yBAAyB,UAAU,EAAE,CAAC,CAAC;QAC3E,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,CAAC,CAAC;IAE/C,MAAM,SAAS,GAAG,mBAAmB,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5D,KAAK,MAAM,KAAK,IAAI,SAAS,EAAE,CAAC;QAC9B,KAAK,CAAC,IAAI,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,KAAK,CAAC,IAAI,EAAE,EAAE,MAAM,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;QACnF,IAAI,KAAK,CAAC,UAAU,KAAK,SAAS;YAAE,KAAK,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;QAC5E,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjB,CAAC;IAED,4EAA4E;IAC5E,uDAAuD;IACvD,KAAK,CAAC,IAAI,CAAC,GAAG,mBAAmB,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IAClF,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;AACjC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,gBAAgB,CAAC,MAAuB;IACtD,IAAI,MAAM,CAAC,MAAM,KAAK,OAAO;QAAE,OAAO,UAAU,MAAM,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC;IAChG,OAAO,iBAAiB,CAAC,MAAM,CAAC,IAAkB,EAAE,IAAI,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat doctor` publishes, apart from the command.
|
|
3
|
+
*
|
|
4
|
+
* A sibling module because the published-shape registry imports it and the
|
|
5
|
+
* command imports the writer that imports the registry (the cycle
|
|
6
|
+
* `report-schemas.ts` describes).
|
|
7
|
+
*
|
|
8
|
+
* `examined` counts the checks run. Each check is a row of `data.checks`; a
|
|
9
|
+
* `fail` is also a `DOCTOR_CHECK_FAILED` finding (error, exit 1) and an
|
|
10
|
+
* `undetermined` one a `DOCTOR_CHECK_WARNED` finding (warning — nothing was
|
|
11
|
+
* verified, which is not health, but not a failure either). `pass` and
|
|
12
|
+
* `skipped` are rows only.
|
|
13
|
+
*/
|
|
14
|
+
import { z } from 'zod';
|
|
15
|
+
import type { ExaminedDeclaration } from '../utils/run-integrity.js';
|
|
16
|
+
/**
|
|
17
|
+
* What a check can conclude — the one list `DoctorOutcome` is derived from, so
|
|
18
|
+
* the published enum and the checks' vocabulary cannot drift apart.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DOCTOR_OUTCOMES: readonly ["pass", "fail", "undetermined", "skipped"];
|
|
21
|
+
/**
|
|
22
|
+
* What a single check concluded.
|
|
23
|
+
*
|
|
24
|
+
* Four values, because a check has four possible answers and a boolean has two.
|
|
25
|
+
* `passed: boolean` forced "I could not tell" and "it does not apply" to be
|
|
26
|
+
* spelled as `true` — the reassuring value — so a swallowed EACCES and a healthy
|
|
27
|
+
* build rendered identically, both as `✅`, and both counted toward
|
|
28
|
+
* "7/7 checks passed".
|
|
29
|
+
*
|
|
30
|
+
* - `pass` — the check ran and the thing is fine.
|
|
31
|
+
* - `fail` — the check ran and the thing is wrong: a `DOCTOR_CHECK_FAILED`
|
|
32
|
+
* finding, the only outcome that affects the exit code.
|
|
33
|
+
* - `undetermined` — the check could not reach an answer (network down, file
|
|
34
|
+
* unreadable). NOT a pass: nothing was verified. A
|
|
35
|
+
* `DOCTOR_CHECK_WARNED` finding.
|
|
36
|
+
* - `skipped` — the check does not apply here (e.g. a VAT-source-tree-only
|
|
37
|
+
* check outside the source tree). Determinate, but not a pass.
|
|
38
|
+
*/
|
|
39
|
+
export type DoctorOutcome = (typeof DOCTOR_OUTCOMES)[number];
|
|
40
|
+
/** What `examined` counts for `vat doctor`, and the remedy when it is zero. */
|
|
41
|
+
export declare const DOCTOR_EXAMINED: ExaminedDeclaration;
|
|
42
|
+
declare const DoctorCheckSchema: z.ZodObject<{
|
|
43
|
+
name: z.ZodString;
|
|
44
|
+
outcome: z.ZodEnum<["pass", "fail", "undetermined", "skipped"]>;
|
|
45
|
+
message: z.ZodString;
|
|
46
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
47
|
+
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
name: string;
|
|
49
|
+
message: string;
|
|
50
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
51
|
+
suggestion?: string | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
name: string;
|
|
54
|
+
message: string;
|
|
55
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
56
|
+
suggestion?: string | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
declare const DoctorDataSchema: z.ZodObject<{
|
|
59
|
+
/** The working directory doctor ran from — what the checks and the project context are relative to. */
|
|
60
|
+
currentDir: z.ZodString;
|
|
61
|
+
/** The project root found from the working directory, or `null` outside any project. */
|
|
62
|
+
projectRoot: z.ZodNullable<z.ZodString>;
|
|
63
|
+
/** The `vibe-agent-toolkit.config.yaml` found from the working directory, or `null`. */
|
|
64
|
+
configPath: z.ZodNullable<z.ZodString>;
|
|
65
|
+
/** Every check that ran, in run order — the concise stderr view's filter never applies here. */
|
|
66
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
outcome: z.ZodEnum<["pass", "fail", "undetermined", "skipped"]>;
|
|
69
|
+
message: z.ZodString;
|
|
70
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, "strict", z.ZodTypeAny, {
|
|
72
|
+
name: string;
|
|
73
|
+
message: string;
|
|
74
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
75
|
+
suggestion?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
name: string;
|
|
78
|
+
message: string;
|
|
79
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
80
|
+
suggestion?: string | undefined;
|
|
81
|
+
}>, "many">;
|
|
82
|
+
}, "strict", z.ZodTypeAny, {
|
|
83
|
+
configPath: string | null;
|
|
84
|
+
checks: {
|
|
85
|
+
name: string;
|
|
86
|
+
message: string;
|
|
87
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
88
|
+
suggestion?: string | undefined;
|
|
89
|
+
}[];
|
|
90
|
+
currentDir: string;
|
|
91
|
+
projectRoot: string | null;
|
|
92
|
+
}, {
|
|
93
|
+
configPath: string | null;
|
|
94
|
+
checks: {
|
|
95
|
+
name: string;
|
|
96
|
+
message: string;
|
|
97
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
98
|
+
suggestion?: string | undefined;
|
|
99
|
+
}[];
|
|
100
|
+
currentDir: string;
|
|
101
|
+
projectRoot: string | null;
|
|
102
|
+
}>;
|
|
103
|
+
/** Result of a single doctor check — one row of `data.checks`. */
|
|
104
|
+
export type DoctorCheckResult = z.infer<typeof DoctorCheckSchema>;
|
|
105
|
+
export type DoctorData = z.infer<typeof DoctorDataSchema>;
|
|
106
|
+
/** The document this command publishes. */
|
|
107
|
+
export declare const DOCTOR_REPORT_SCHEMA: import("@vibe-agent-toolkit/schema").ReportZodSchema<z.ZodObject<{
|
|
108
|
+
/** The working directory doctor ran from — what the checks and the project context are relative to. */
|
|
109
|
+
currentDir: z.ZodString;
|
|
110
|
+
/** The project root found from the working directory, or `null` outside any project. */
|
|
111
|
+
projectRoot: z.ZodNullable<z.ZodString>;
|
|
112
|
+
/** The `vibe-agent-toolkit.config.yaml` found from the working directory, or `null`. */
|
|
113
|
+
configPath: z.ZodNullable<z.ZodString>;
|
|
114
|
+
/** Every check that ran, in run order — the concise stderr view's filter never applies here. */
|
|
115
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
116
|
+
name: z.ZodString;
|
|
117
|
+
outcome: z.ZodEnum<["pass", "fail", "undetermined", "skipped"]>;
|
|
118
|
+
message: z.ZodString;
|
|
119
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, "strict", z.ZodTypeAny, {
|
|
121
|
+
name: string;
|
|
122
|
+
message: string;
|
|
123
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
124
|
+
suggestion?: string | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
name: string;
|
|
127
|
+
message: string;
|
|
128
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
129
|
+
suggestion?: string | undefined;
|
|
130
|
+
}>, "many">;
|
|
131
|
+
}, "strict", z.ZodTypeAny, {
|
|
132
|
+
configPath: string | null;
|
|
133
|
+
checks: {
|
|
134
|
+
name: string;
|
|
135
|
+
message: string;
|
|
136
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
137
|
+
suggestion?: string | undefined;
|
|
138
|
+
}[];
|
|
139
|
+
currentDir: string;
|
|
140
|
+
projectRoot: string | null;
|
|
141
|
+
}, {
|
|
142
|
+
configPath: string | null;
|
|
143
|
+
checks: {
|
|
144
|
+
name: string;
|
|
145
|
+
message: string;
|
|
146
|
+
outcome: "undetermined" | "skipped" | "pass" | "fail";
|
|
147
|
+
suggestion?: string | undefined;
|
|
148
|
+
}[];
|
|
149
|
+
currentDir: string;
|
|
150
|
+
projectRoot: string | null;
|
|
151
|
+
}>, z.ZodObject<Omit<{
|
|
152
|
+
code: z.ZodString;
|
|
153
|
+
severity: z.ZodEnum<["error", "warning", "info", "ignore"]>;
|
|
154
|
+
message: z.ZodString;
|
|
155
|
+
location: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
156
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
field: z.ZodOptional<z.ZodString>;
|
|
158
|
+
link: z.ZodOptional<z.ZodString>;
|
|
159
|
+
fix: z.ZodOptional<z.ZodString>;
|
|
160
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
161
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
162
|
+
}, "severity"> & {
|
|
163
|
+
severity: z.ZodEnum<["error", "warning", "info"]>;
|
|
164
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
165
|
+
}, "strict", z.ZodTypeAny, {
|
|
166
|
+
code: string;
|
|
167
|
+
message: string;
|
|
168
|
+
severity: "error" | "warning" | "info";
|
|
169
|
+
fix?: string | undefined;
|
|
170
|
+
reference?: string | undefined;
|
|
171
|
+
location?: string | undefined;
|
|
172
|
+
line?: number | undefined;
|
|
173
|
+
field?: string | undefined;
|
|
174
|
+
link?: string | undefined;
|
|
175
|
+
suggestion?: string | undefined;
|
|
176
|
+
column?: number | undefined;
|
|
177
|
+
}, {
|
|
178
|
+
code: string;
|
|
179
|
+
message: string;
|
|
180
|
+
severity: "error" | "warning" | "info";
|
|
181
|
+
fix?: string | undefined;
|
|
182
|
+
reference?: string | undefined;
|
|
183
|
+
location?: string | undefined;
|
|
184
|
+
line?: number | undefined;
|
|
185
|
+
field?: string | undefined;
|
|
186
|
+
link?: string | undefined;
|
|
187
|
+
suggestion?: string | undefined;
|
|
188
|
+
column?: number | undefined;
|
|
189
|
+
}>>;
|
|
190
|
+
export {};
|
|
191
|
+
//# sourceMappingURL=doctor-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor-schema.d.ts","sourceRoot":"","sources":["../../src/commands/doctor-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE;;;GAGG;AACH,eAAO,MAAM,eAAe,sDAAuD,CAAC;AAEpF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,+EAA+E;AAC/E,eAAO,MAAM,eAAe,EAAE,mBAG7B,CAAC;AAEF,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;EAKZ,CAAC;AAEZ,QAAA,MAAM,gBAAgB;IACpB,uGAAuG;;IAEvG,wFAAwF;;IAExF,wFAAwF;;IAExF,gGAAgG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEvF,CAAC;AAEZ,kEAAkE;AAClE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB;IAhB/B,uGAAuG;;IAEvG,wFAAwF;;IAExF,wFAAwF;;IAExF,gGAAgG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAUjB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat doctor` publishes, apart from the command.
|
|
3
|
+
*
|
|
4
|
+
* A sibling module because the published-shape registry imports it and the
|
|
5
|
+
* command imports the writer that imports the registry (the cycle
|
|
6
|
+
* `report-schemas.ts` describes).
|
|
7
|
+
*
|
|
8
|
+
* `examined` counts the checks run. Each check is a row of `data.checks`; a
|
|
9
|
+
* `fail` is also a `DOCTOR_CHECK_FAILED` finding (error, exit 1) and an
|
|
10
|
+
* `undetermined` one a `DOCTOR_CHECK_WARNED` finding (warning — nothing was
|
|
11
|
+
* verified, which is not health, but not a failure either). `pass` and
|
|
12
|
+
* `skipped` are rows only.
|
|
13
|
+
*/
|
|
14
|
+
import { FindingSchema, reportSchema } from '@vibe-agent-toolkit/schema';
|
|
15
|
+
import { z } from 'zod';
|
|
16
|
+
/**
|
|
17
|
+
* What a check can conclude — the one list `DoctorOutcome` is derived from, so
|
|
18
|
+
* the published enum and the checks' vocabulary cannot drift apart.
|
|
19
|
+
*/
|
|
20
|
+
export const DOCTOR_OUTCOMES = ['pass', 'fail', 'undetermined', 'skipped'];
|
|
21
|
+
/** What `examined` counts for `vat doctor`, and the remedy when it is zero. */
|
|
22
|
+
export const DOCTOR_EXAMINED = {
|
|
23
|
+
unit: 'checks',
|
|
24
|
+
whenZero: 'Doctor ran no check at all, which is a defect in VAT — report it with the output of vat doctor --debug.',
|
|
25
|
+
};
|
|
26
|
+
const DoctorCheckSchema = z.object({
|
|
27
|
+
name: z.string(),
|
|
28
|
+
outcome: z.enum(DOCTOR_OUTCOMES),
|
|
29
|
+
message: z.string(),
|
|
30
|
+
suggestion: z.string().optional(),
|
|
31
|
+
}).strict();
|
|
32
|
+
const DoctorDataSchema = z.object({
|
|
33
|
+
/** The working directory doctor ran from — what the checks and the project context are relative to. */
|
|
34
|
+
currentDir: z.string(),
|
|
35
|
+
/** The project root found from the working directory, or `null` outside any project. */
|
|
36
|
+
projectRoot: z.string().nullable(),
|
|
37
|
+
/** The `vibe-agent-toolkit.config.yaml` found from the working directory, or `null`. */
|
|
38
|
+
configPath: z.string().nullable(),
|
|
39
|
+
/** Every check that ran, in run order — the concise stderr view's filter never applies here. */
|
|
40
|
+
checks: z.array(DoctorCheckSchema),
|
|
41
|
+
}).strict();
|
|
42
|
+
/** The document this command publishes. */
|
|
43
|
+
export const DOCTOR_REPORT_SCHEMA = reportSchema(DoctorDataSchema, FindingSchema);
|
|
44
|
+
//# sourceMappingURL=doctor-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"doctor-schema.js","sourceRoot":"","sources":["../../src/commands/doctor-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,CAAU,CAAC;AAsBpF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,eAAe,GAAwB;IAClD,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,yGAAyG;CACpH,CAAC;AAEF,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC;IAChC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,uGAAuG;IACvG,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,wFAAwF;IACxF,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,wFAAwF;IACxF,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,gGAAgG;IAChG,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;CACnC,CAAC,CAAC,MAAM,EAAE,CAAC;AAOZ,2CAA2C;AAC3C,MAAM,CAAC,MAAM,oBAAoB,GAAG,YAAY,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -6,45 +6,9 @@
|
|
|
6
6
|
* - Configuration validation
|
|
7
7
|
* - Version checks
|
|
8
8
|
*/
|
|
9
|
-
import type
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
* Four values, because a check has four possible answers and a boolean has two.
|
|
14
|
-
* `passed: boolean` forced "I could not tell" and "it does not apply" to be
|
|
15
|
-
* spelled as `true` — the reassuring value — so a swallowed EACCES and a healthy
|
|
16
|
-
* build rendered identically, both as `✅`, and both counted toward
|
|
17
|
-
* "7/7 checks passed".
|
|
18
|
-
*
|
|
19
|
-
* - `pass` — the check ran and the thing is fine.
|
|
20
|
-
* - `fail` — the check ran and the thing is wrong. The only outcome that
|
|
21
|
-
* affects the exit code.
|
|
22
|
-
* - `undetermined` — the check could not reach an answer (network down, file
|
|
23
|
-
* unreadable). NOT a pass: nothing was verified.
|
|
24
|
-
* - `skipped` — the check does not apply here (e.g. a VAT-source-tree-only
|
|
25
|
-
* check outside the source tree). Determinate, but not a pass.
|
|
26
|
-
*/
|
|
27
|
-
export type DoctorOutcome = 'pass' | 'fail' | 'undetermined' | 'skipped';
|
|
28
|
-
/**
|
|
29
|
-
* Result of a single doctor check
|
|
30
|
-
*/
|
|
31
|
-
export interface DoctorCheckResult {
|
|
32
|
-
/** Name of the check */
|
|
33
|
-
name: string;
|
|
34
|
-
/** What the check concluded */
|
|
35
|
-
outcome: DoctorOutcome;
|
|
36
|
-
/** Message describing the result */
|
|
37
|
-
message: string;
|
|
38
|
-
/** Optional suggestion for fixing the issue */
|
|
39
|
-
suggestion?: string;
|
|
40
|
-
}
|
|
41
|
-
/** How many checks landed in each outcome. Published beside the verdict, never folded into it. */
|
|
42
|
-
export interface DoctorOutcomeCounts {
|
|
43
|
-
pass: number;
|
|
44
|
-
fail: number;
|
|
45
|
-
undetermined: number;
|
|
46
|
-
skipped: number;
|
|
47
|
-
}
|
|
9
|
+
import { type FindingsReport, type OkReport } from '@vibe-agent-toolkit/schema';
|
|
10
|
+
import { type Command } from 'commander';
|
|
11
|
+
import type { DoctorCheckResult, DoctorData } from './doctor-schema.js';
|
|
48
12
|
/**
|
|
49
13
|
* Project context information
|
|
50
14
|
*/
|
|
@@ -66,10 +30,6 @@ export interface ProjectContext {
|
|
|
66
30
|
export interface DoctorResult {
|
|
67
31
|
/** Every check that ran, unfiltered */
|
|
68
32
|
checks: DoctorCheckResult[];
|
|
69
|
-
/** Total number of checks run (always `checks.length`) */
|
|
70
|
-
totalChecks: number;
|
|
71
|
-
/** Distribution across outcomes; sums to `totalChecks` */
|
|
72
|
-
outcomeCounts: DoctorOutcomeCounts;
|
|
73
33
|
/** Project context information */
|
|
74
34
|
projectContext: ProjectContext;
|
|
75
35
|
}
|
|
@@ -178,28 +138,13 @@ export declare function checkCliBuildSync(projectRoot: string | null): DoctorChe
|
|
|
178
138
|
* @returns Doctor result
|
|
179
139
|
*/
|
|
180
140
|
export declare function runDoctor(options?: DoctorOptions): Promise<DoctorResult>;
|
|
181
|
-
/** Tally checks by outcome. The four buckets always sum to `checks.length`. */
|
|
182
|
-
export declare function countByOutcome(checks: readonly DoctorCheckResult[]): DoctorOutcomeCounts;
|
|
183
|
-
/**
|
|
184
|
-
* Which checks the renderer prints.
|
|
185
|
-
*
|
|
186
|
-
* Verbose prints all of them. Concise hides only the checks with nothing to say:
|
|
187
|
-
* a clean `pass` with no suggestion, and a `skipped` check that does not apply
|
|
188
|
-
* here. `fail` and `undetermined` are ALWAYS printed — an undetermined check is
|
|
189
|
-
* the one a concise view must never swallow.
|
|
190
|
-
*
|
|
191
|
-
* Whatever this hides, {@link formatDoctorSummary} states the number of hidden
|
|
192
|
-
* checks, so the printed list and the printed counts cannot disagree.
|
|
193
|
-
*/
|
|
194
|
-
export declare function selectDisplayChecks(checks: readonly DoctorCheckResult[], verbose: boolean): DoctorCheckResult[];
|
|
195
141
|
/**
|
|
196
|
-
* The
|
|
197
|
-
* the
|
|
142
|
+
* The document a doctor run publishes: every check a row, every failed or
|
|
143
|
+
* undetermined one a finding, `examined` the checks run.
|
|
198
144
|
*
|
|
199
|
-
*
|
|
200
|
-
* checks than the reader was shown without saying so.
|
|
145
|
+
* @param result - What {@link runDoctor} returned
|
|
201
146
|
*/
|
|
202
|
-
export declare function
|
|
147
|
+
export declare function doctorReport(result: DoctorResult): OkReport<DoctorData> | FindingsReport<DoctorData>;
|
|
203
148
|
/**
|
|
204
149
|
* Main command handler for Commander.js
|
|
205
150
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,OAAO,EAA2B,KAAK,cAAc,EAAa,KAAK,QAAQ,EAAwB,MAAM,4BAA4B,CAAC;AAkB1I,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAWjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,oDAAoD;IACpD,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,uCAAuC;IACvC,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,kCAAkC;IAClC,cAAc,EAAE,cAAc,CAAC;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,6CAA6C;IAC7C,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,cAAc,CAAC,EAAE,cAAc,CAAC;CACjC;AAuED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,IAAI,iBAAiB,CA8DpD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,iBAAiB,CA2BrD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,iBAAiB,CAmCtD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,iBAAiB,CA2BnD;AAyED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,iBAAiB,CAkEpD;AAgBD;;GAEG;AACH,wBAAsB,eAAe,CACnC,cAAc,GAAE,cAAsC,GACrD,OAAO,CAAC,iBAAiB,CAAC,CAkD5B;AA6DD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,iBAAiB,CAAC,CAiCtE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,iBAAiB,CAkD/E;AAED;;;;;GAKG;AACH,wBAAsB,SAAS,CAAC,OAAO,GAAE,aAAkB,GAAG,OAAO,CAAC,YAAY,CAAC,CA6BlF;AAoBD;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,YAAY,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,cAAc,CAAC,UAAU,CAAC,CASpG;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoEpD"}
|