@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
package/dist/commands/build.js
CHANGED
|
@@ -5,23 +5,26 @@
|
|
|
5
5
|
* 1. vat skills build (portable dist/skills/ output)
|
|
6
6
|
* 2. vat claude plugin build (Claude plugin tree, skipped if no claude config)
|
|
7
7
|
*/
|
|
8
|
-
import { existsSync } from 'node:fs';
|
|
9
8
|
import { readdir } from 'node:fs/promises';
|
|
10
9
|
import { checkBrokenPackagedLinks } from '@vibe-agent-toolkit/agent-skills';
|
|
11
|
-
import {
|
|
12
|
-
import { direntKindFollowing, safePath } from '@vibe-agent-toolkit/utils';
|
|
10
|
+
import { buildReport, ExitCode, exitCodeForReport, toFindings, } from '@vibe-agent-toolkit/schema';
|
|
11
|
+
import { direntKindFollowing, everyInOrder, everywhere, findConfigFile, mapConcurrentFailingInOrder, mapInOrder, pathPresent, safePath } from '@vibe-agent-toolkit/utils';
|
|
13
12
|
import { Command } from 'commander';
|
|
14
|
-
import {
|
|
13
|
+
import { marksOperandRefusalByHand } from '../command-tree.js';
|
|
15
14
|
import { loadConfig } from '../utils/config-loader.js';
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
15
|
+
import { endWithReport } from '../utils/document-writer.js';
|
|
16
|
+
import { formatIssueLines } from '../utils/issue-rendering.js';
|
|
18
17
|
import { requireProjectRoot } from '../utils/project-root-policy.js';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
18
|
+
import { verdictBanner } from '../utils/run-integrity.js';
|
|
19
|
+
import { PLUGIN_BUILD_EXAMINED, PLUGIN_BUILD_REPORT_SCHEMA } from './claude/plugin/build-schema.js';
|
|
20
|
+
import { pluginBuildOutput, runClaudePluginBuildPhase } from './claude/plugin/build.js';
|
|
21
|
+
import { applyPhaseSelection, createPhaseContext, DATALESS_PHASE_REPORT_SCHEMA, decidePhaseSelection, orchestrate, ORCHESTRATOR_FORMAT, ORCHESTRATOR_GATE, runPhase, shipsPluginLocalSkills, skillsPhaseExamined, } from './phase-utils.js';
|
|
21
22
|
import { rejectPositionalArguments } from './positional-args.js';
|
|
22
|
-
import {
|
|
23
|
+
import { SKILLS_BUILD_EXAMINED, SKILLS_BUILD_REPORT_SCHEMA } from './skills/build-schema.js';
|
|
24
|
+
import { distSkillsDir, runSkillsBuildPhase } from './skills/build.js';
|
|
23
25
|
export function createBuildTopLevelCommand() {
|
|
24
|
-
|
|
26
|
+
// Refuses operands in its action, with a better message than commander's.
|
|
27
|
+
const command = marksOperandRefusalByHand(new Command('build'));
|
|
25
28
|
command
|
|
26
29
|
.description('Build all project artifacts in dependency order (skills → claude plugin tree)')
|
|
27
30
|
.option('--only <phase>', 'Build only a specific phase: skills, claude')
|
|
@@ -41,39 +44,37 @@ Description:
|
|
|
41
44
|
skills → builds dist/skills/ from vibe-agent-toolkit.config.yaml (platform-agnostic)
|
|
42
45
|
claude → builds dist/.claude/plugins/ from dist/skills/ + config (skipped if no claude config)
|
|
43
46
|
|
|
44
|
-
'--only claude' in a project with no claude.marketplaces config
|
|
45
|
-
exit
|
|
47
|
+
'--only claude' in a project with no claude.marketplaces config is refused
|
|
48
|
+
(USAGE_INVALID, exit 2): the phase is recognized, it is simply not configured.
|
|
46
49
|
|
|
47
50
|
publish: false (skills.defaults or skills.config.<name>) marks an IN-PLACE
|
|
48
51
|
skill: validated at source, never bundled into dist/skills/, never expected
|
|
49
52
|
by 'vat verify'. Plugin-local skills (git-tracked, outermost skill dirs
|
|
50
53
|
under a plugin's skills/) ship with their plugin regardless.
|
|
51
54
|
|
|
52
|
-
A phase
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
A phase whose report would exit non-zero — an error finding, or a phase that
|
|
56
|
+
did not finish — stops the run: later phases do not execute. So a skills
|
|
57
|
+
phase with an error (e.g. FILENAME_COLLISION) leaves dist/skills/ written but
|
|
58
|
+
NO dist/.claude/ at all. Use '--only claude' to rebuild just the marketplace
|
|
59
|
+
from an existing dist/skills/. Warnings never stop a run. After the claude
|
|
60
|
+
phase, 'shipped-links' checks every skill in the built plugin tree for a
|
|
61
|
+
broken relative link.
|
|
58
62
|
|
|
59
63
|
Output:
|
|
60
|
-
ONE YAML
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
The total reconciles against the phases printed beneath it; a header that
|
|
66
|
-
counted only the link check reported {0,0,0} over children that had just
|
|
67
|
-
reported 12 warnings. Each phase's own report is captured and nested under
|
|
68
|
-
'report' rather than streamed through.
|
|
64
|
+
ONE report envelope (YAML) → stdout: status (ok | findings | error),
|
|
65
|
+
examined (the sum over every phase), summary {errors, warnings, info},
|
|
66
|
+
findings (every phase's, flat), and data.phases — one entry per phase that
|
|
67
|
+
ran, with its own status, examined, summary, error (when it did not finish)
|
|
68
|
+
and the phase's own data. Schema: packages/cli/schemas/orchestrator.json.
|
|
69
69
|
Build progress → stderr (streamed live)
|
|
70
70
|
|
|
71
71
|
Exit Codes:
|
|
72
|
-
0 -
|
|
73
|
-
1 -
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
0 - Every phase finished and no finding is an error (warnings never fail)
|
|
73
|
+
1 - An error finding, or a configured phase examined nothing — an include
|
|
74
|
+
that matches no file, say (RESOURCE_CHECK_BROKEN, naming the phase's unit)
|
|
75
|
+
2 - The run could not do its job: a phase did not finish (RUN_INCOMPLETE,
|
|
76
|
+
the finished phases still in data.phases), '--only' naming an unknown or
|
|
77
|
+
unconfigured phase, a path argument (USAGE_INVALID), no project root
|
|
77
78
|
|
|
78
79
|
Requirements:
|
|
79
80
|
projectRoot: required (errors if no vibe-agent-toolkit.config.yaml or .git/ ancestor)
|
|
@@ -89,8 +90,8 @@ Example:
|
|
|
89
90
|
return command;
|
|
90
91
|
}
|
|
91
92
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
93
|
+
* Which build surfaces the current project's config declares: a `skills:` block,
|
|
94
|
+
* and a `claude.marketplaces` entry. Neither when no config file is found.
|
|
94
95
|
*
|
|
95
96
|
* A config that EXISTS and cannot be loaded throws (`ConfigLoadError`), and
|
|
96
97
|
* that is left to `buildCommand`'s own catch, which publishes it as the
|
|
@@ -98,9 +99,13 @@ Example:
|
|
|
98
99
|
* unreadable config announced a build with no claude phase, and `--only claude`
|
|
99
100
|
* on it was refused as "not configured", which was not the problem.
|
|
100
101
|
*/
|
|
101
|
-
function
|
|
102
|
-
const config = loadConfig(cwd);
|
|
103
|
-
return
|
|
102
|
+
export function configuredBuildSurfaces(cwd) {
|
|
103
|
+
const config = loadConfig(cwd, 'destination');
|
|
104
|
+
return {
|
|
105
|
+
skills: config?.skills !== undefined,
|
|
106
|
+
claudeMarketplaces: Boolean(config?.claude?.marketplaces && Object.keys(config.claude.marketplaces).length > 0),
|
|
107
|
+
pluginLocalSkills: () => shipsPluginLocalSkills(config, cwd),
|
|
108
|
+
};
|
|
104
109
|
}
|
|
105
110
|
// Skill directories shipped inside a built plugin tree — every
|
|
106
111
|
// dist/.claude/plugins/marketplaces/{marketplace}/plugins/{plugin}/skills/{skill}
|
|
@@ -108,66 +113,92 @@ function hasClaudeMarketplacesConfig(cwd) {
|
|
|
108
113
|
// pool import or verbatim tree-copy.
|
|
109
114
|
async function collectShippedSkillDirs(marketplacesDir) {
|
|
110
115
|
const skillDirs = [];
|
|
111
|
-
|
|
116
|
+
// The tree the run itself built: every probe beneath it reads its links first (`within` is the
|
|
117
|
+
// marketplaces root), and a probe the OS refuses is a destination fault, never "nothing shipped".
|
|
118
|
+
if (!shippedPresent(marketplacesDir, marketplacesDir)) {
|
|
112
119
|
return skillDirs;
|
|
113
120
|
}
|
|
121
|
+
// Read-only. Only the leaf level fans out (bounded); nesting the bound would
|
|
122
|
+
// multiply it, so the outer levels walk in listing order.
|
|
114
123
|
const marketplaceEntries = await readdir(marketplacesDir, { withFileTypes: true });
|
|
115
|
-
|
|
116
|
-
if ((await direntKindFollowing(marketplacesDir, marketplaceEntry)) !== 'directory')
|
|
117
|
-
|
|
124
|
+
const perMarketplace = await mapInOrder(marketplaceEntries, async (marketplaceEntry) => {
|
|
125
|
+
if ((await direntKindFollowing(marketplacesDir, marketplaceEntry, marketplacesDir)) !== 'directory')
|
|
126
|
+
return [];
|
|
118
127
|
const pluginsDir = safePath.join(marketplacesDir, marketplaceEntry.name, 'plugins');
|
|
119
|
-
if (!
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
128
|
+
if (!shippedPresent(pluginsDir, marketplacesDir))
|
|
129
|
+
return [];
|
|
130
|
+
return collectPluginSkillDirs(pluginsDir, marketplacesDir);
|
|
131
|
+
});
|
|
132
|
+
skillDirs.push(...perMarketplace.flat());
|
|
123
133
|
return skillDirs;
|
|
124
134
|
}
|
|
125
|
-
|
|
126
|
-
|
|
135
|
+
/** Whether `path` (in the shipped tree under `within`) resolves to something: see {@link collectShippedSkillDirs}. */
|
|
136
|
+
function shippedPresent(path, within) {
|
|
137
|
+
return pathPresent(path, { follow: within }, everywhere('destination'), 'confirmed');
|
|
138
|
+
}
|
|
139
|
+
async function collectPluginSkillDirs(pluginsDir, within) {
|
|
127
140
|
const pluginEntries = await readdir(pluginsDir, { withFileTypes: true });
|
|
128
|
-
|
|
129
|
-
if ((await direntKindFollowing(pluginsDir, pluginEntry)) !== 'directory')
|
|
130
|
-
|
|
141
|
+
const perPlugin = await mapInOrder(pluginEntries, async (pluginEntry) => {
|
|
142
|
+
if ((await direntKindFollowing(pluginsDir, pluginEntry, within)) !== 'directory')
|
|
143
|
+
return [];
|
|
131
144
|
const skillsDir = safePath.join(pluginsDir, pluginEntry.name, 'skills');
|
|
132
|
-
if (!
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
return
|
|
145
|
+
if (!shippedPresent(skillsDir, within))
|
|
146
|
+
return [];
|
|
147
|
+
return collectSkillsInDir(skillsDir, within);
|
|
148
|
+
});
|
|
149
|
+
return perPlugin.flat();
|
|
137
150
|
}
|
|
138
|
-
async function collectSkillsInDir(skillsDir) {
|
|
139
|
-
const skillDirs = [];
|
|
151
|
+
async function collectSkillsInDir(skillsDir, within) {
|
|
140
152
|
const skillEntries = await readdir(skillsDir, { withFileTypes: true });
|
|
141
|
-
|
|
153
|
+
const perSkill = await mapConcurrentFailingInOrder(skillEntries, async (skillEntry) => {
|
|
142
154
|
// Followed: a symlinked skill directory (a dev install) ships like any other.
|
|
143
|
-
if ((await direntKindFollowing(skillsDir, skillEntry)) !== 'directory')
|
|
144
|
-
|
|
155
|
+
if ((await direntKindFollowing(skillsDir, skillEntry, within)) !== 'directory')
|
|
156
|
+
return [];
|
|
145
157
|
const skillDir = safePath.join(skillsDir, skillEntry.name);
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
return skillDirs;
|
|
158
|
+
return shippedPresent(safePath.join(skillDir, 'SKILL.md'), within) ? [skillDir] : [];
|
|
159
|
+
});
|
|
160
|
+
return perSkill.flat();
|
|
151
161
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
/** The phase `vat build` runs after `claude`: the shipped plugin tree's links. */
|
|
163
|
+
const SHIPPED_LINKS = 'shipped-links';
|
|
164
|
+
/**
|
|
165
|
+
* Run the depth-free packaged-link check (checkBrokenPackagedLinks) against
|
|
166
|
+
* every shipped skill dir inside the built plugin tree(s) at
|
|
167
|
+
* <cwd>/dist/.claude/plugins/marketplaces/, as a report over the skill dirs it
|
|
168
|
+
* inspected. Each finding's `location` is relative to its skill dir.
|
|
169
|
+
*
|
|
170
|
+
* Scoped per skill dir — the skill directory IS the validation boundary. VAT's
|
|
171
|
+
* stance is that a skill is a self-contained, portable unit (it may be mounted
|
|
172
|
+
* standalone — claude.ai upload, API container — where sibling skills do not
|
|
173
|
+
* exist), so a link that escapes the skill's own directory (e.g.
|
|
174
|
+
* `../other-skill/references/foo.md`) is a broken shipped link even when that
|
|
175
|
+
* sibling happens to co-ship in the same plugin. The only correct way for a
|
|
176
|
+
* skill to use another skill's file is to bundle its own copy in and link it as
|
|
177
|
+
* `./foo.md`. This matches how the pool packager already scopes the same check
|
|
178
|
+
* on dist/skills/<name>/.
|
|
179
|
+
*/
|
|
180
|
+
export async function checkShippedPluginSkillLinks(cwd) {
|
|
164
181
|
const marketplacesDir = safePath.join(cwd, 'dist', '.claude', 'plugins', 'marketplaces');
|
|
165
182
|
const skillDirs = await collectShippedSkillDirs(marketplacesDir);
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
return issues;
|
|
183
|
+
// One skill at a time: each check already reads its files with bounded
|
|
184
|
+
// concurrency, and an outer fan-out would multiply that bound.
|
|
185
|
+
const perSkill = await mapInOrder(skillDirs, (skillDir) => checkBrokenPackagedLinks(skillDir));
|
|
186
|
+
const issues = perSkill.flat();
|
|
187
|
+
return buildReport({ examined: skillDirs.length, findings: toFindings(issues), data: null, gate: ORCHESTRATOR_GATE });
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* The `shipped-links` phase over `cwd`'s built plugin tree — run through
|
|
191
|
+
* `runPhase` like every other, so a throw from the crawl is THIS phase's
|
|
192
|
+
* refusal with the finished phases still published, and its report is held to
|
|
193
|
+
* its schema.
|
|
194
|
+
*/
|
|
195
|
+
export function shippedLinksPhase(cwd) {
|
|
196
|
+
return {
|
|
197
|
+
name: SHIPPED_LINKS,
|
|
198
|
+
schema: DATALESS_PHASE_REPORT_SCHEMA,
|
|
199
|
+
examined: { zeroIsAnAnswer: 'it checks the skills the built plugins ship, and a build whose plugins ship none has no link to check' },
|
|
200
|
+
run: async () => ({ report: await checkShippedPluginSkillLinks(cwd) }),
|
|
201
|
+
};
|
|
171
202
|
}
|
|
172
203
|
/** Phases `vat build` knows how to run, in dependency order. */
|
|
173
204
|
const VALID_PHASES = ['skills', 'claude'];
|
|
@@ -187,132 +218,87 @@ const BUILD_VOCABULARY = {
|
|
|
187
218
|
* The phase is recognized; it is simply not configured, which is a different
|
|
188
219
|
* fact and now says so.
|
|
189
220
|
*/
|
|
190
|
-
export function selectBuildPhases(only,
|
|
221
|
+
export function selectBuildPhases(only, configured, verbose = false) {
|
|
222
|
+
const hasClaudeMarketplaces = configured.claudeMarketplaces;
|
|
191
223
|
const phases = [];
|
|
192
224
|
// A flag not forwarded here is a flag the composite command silently cannot
|
|
193
225
|
// express: `vat build` would always get the collapsed report with no way to
|
|
194
226
|
// ask for the full one.
|
|
195
|
-
|
|
196
|
-
|
|
227
|
+
const buildsSkills = !only || only === 'skills';
|
|
228
|
+
const buildsClaude = (!only || only === 'claude') && hasClaudeMarketplaces;
|
|
229
|
+
if (buildsSkills) {
|
|
230
|
+
// What the run writes after this phase: the marketplaces the claude phase replaces — under the
|
|
231
|
+
// directory holding the config the claude phase loads (it finds it the same way), not the cwd.
|
|
232
|
+
const configPath = findConfigFile(process.cwd());
|
|
233
|
+
const runOutputs = buildsClaude ? [pluginBuildOutput(configPath === null ? process.cwd() : safePath.resolve(configPath, '..'))] : [];
|
|
234
|
+
phases.push({
|
|
235
|
+
name: 'skills',
|
|
236
|
+
schema: SKILLS_BUILD_REPORT_SCHEMA,
|
|
237
|
+
// The phase runs whether or not the project has a pool. Without a `skills:` block there is no
|
|
238
|
+
// pool to build; with one, building none is the refusal `vat skills build` gives alone — unless
|
|
239
|
+
// the project ships plugin-local skills, whose config the block carries (`skillsPhaseExamined`).
|
|
240
|
+
examined: configured.skills
|
|
241
|
+
? skillsPhaseExamined(SKILLS_BUILD_EXAMINED, configured.pluginLocalSkills)
|
|
242
|
+
: { zeroIsAnAnswer: 'the config declares no skills: block, so there is no skill pool to build' },
|
|
243
|
+
run: () => runSkillsBuildPhase(undefined, { verbose }, runOutputs),
|
|
244
|
+
});
|
|
197
245
|
}
|
|
198
|
-
if (
|
|
199
|
-
|
|
246
|
+
if (buildsClaude) {
|
|
247
|
+
// What this run wrote before the claude phase reads it: the skills phase's `dist/skills`, so a
|
|
248
|
+
// fault there is the run's own output (`destination`), not an input another build wrote.
|
|
249
|
+
const runOutputs = buildsSkills ? [distSkillsDir(process.cwd())] : [];
|
|
250
|
+
phases.push({ name: 'claude', schema: PLUGIN_BUILD_REPORT_SCHEMA, examined: PLUGIN_BUILD_EXAMINED, run: () => runClaudePluginBuildPhase({ verbose }, runOutputs) });
|
|
200
251
|
}
|
|
201
252
|
return decidePhaseSelection(only, phases, BUILD_VOCABULARY);
|
|
202
253
|
}
|
|
254
|
+
/** Whether a phase's report stops the build: it would end the run on a non-zero exit. */
|
|
255
|
+
function stopsTheBuild(result) {
|
|
256
|
+
return exitCodeForReport(result.report) !== ExitCode.OK;
|
|
257
|
+
}
|
|
258
|
+
/** The closing line, over the SUM of the phases' `examined` — never the phase count. */
|
|
259
|
+
function buildCompleteLine(results) {
|
|
260
|
+
const examined = results.reduce((sum, result) => sum + result.report.examined, 0);
|
|
261
|
+
return verdictBanner(examined, '\n✅ Build complete');
|
|
262
|
+
}
|
|
263
|
+
/** Test seam: which phase report stops the build, and the closing line. */
|
|
264
|
+
export const __internal = { stopsTheBuild, buildCompleteLine };
|
|
203
265
|
async function buildTopLevelCommand(options, command) {
|
|
204
|
-
// First, and before requireProjectRoot: `vat build dist/skills/demo` used to be
|
|
205
|
-
// accepted, have its path discarded, and build the WHOLE project — the same
|
|
206
|
-
// silent-rescope defect fixed on `vat verify` / `vat validate`, and worse here
|
|
207
|
-
// because this one writes.
|
|
208
|
-
rejectPositionalArguments(command.args, 'vat build', 'builds every artifact vibe-agent-toolkit.config.yaml declares, in dependency order');
|
|
209
266
|
const cwd = process.cwd();
|
|
210
|
-
const { logger
|
|
211
|
-
|
|
212
|
-
//
|
|
213
|
-
//
|
|
214
|
-
|
|
267
|
+
const { logger } = createPhaseContext(options.debug);
|
|
268
|
+
const report = await orchestrate(async (results) => {
|
|
269
|
+
// First, and before requireProjectRoot: `vat build dist/skills/demo` used to be
|
|
270
|
+
// accepted, have its path discarded, and build the WHOLE project.
|
|
271
|
+
rejectPositionalArguments(command.args, 'vat build', 'builds every artifact vibe-agent-toolkit.config.yaml declares, in dependency order');
|
|
215
272
|
// Spec §7: `vat build` requires a projectRoot.
|
|
216
273
|
requireProjectRoot(cwd, 'vat build');
|
|
217
|
-
const phases = applyPhaseSelection(selectBuildPhases(options.only,
|
|
274
|
+
const phases = applyPhaseSelection(selectBuildPhases(options.only, configuredBuildSurfaces(cwd), options.verbose === true), logger);
|
|
218
275
|
logger.info(`🔨 vat build (phases: ${phases.map((p) => p.name).join(' → ')})`);
|
|
219
|
-
|
|
220
|
-
//
|
|
221
|
-
//
|
|
222
|
-
|
|
223
|
-
// nothing beside it.
|
|
224
|
-
let shippedLinkIssues = [];
|
|
225
|
-
for (const phase of phases) {
|
|
276
|
+
// In order, deliberately, and here it is a DEPENDENCY rather than a
|
|
277
|
+
// presentation choice: `claude` packages what `skills` just wrote into dist/,
|
|
278
|
+
// so overlapping the two would read a half-built tree.
|
|
279
|
+
const completed = await everyInOrder(phases, async (phase) => {
|
|
226
280
|
logger.info(`\n▶ Phase: ${phase.name}`);
|
|
227
|
-
// Awaited in the loop, deliberately, and here it is a DEPENDENCY rather
|
|
228
|
-
// than a presentation choice: `claude` packages what `skills` just wrote
|
|
229
|
-
// into dist/, so overlapping the two would read a half-built tree.
|
|
230
281
|
const result = await runPhase(phase);
|
|
231
|
-
|
|
232
|
-
// Only a
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
// report instead of its exit code — so treating "not success" as fatal
|
|
236
|
-
// silently turned every warning into a halt. It halted *and* claimed
|
|
237
|
-
// "Phase 'skills' failed with exit code 0" while exiting 0, so a caller
|
|
238
|
-
// checking the exit code saw a pass with the later phases never run.
|
|
239
|
-
if (result.status === 'error' || result.status === SYSTEM_ERROR) {
|
|
240
|
-
const duration = Date.now() - startTime;
|
|
241
|
-
// `error` vs `system-error` is the difference between "the build failed"
|
|
242
|
-
// and "the build never ran" — exit 1 vs the documented exit 2.
|
|
243
|
-
writeYamlOutput({
|
|
244
|
-
status: result.status,
|
|
245
|
-
error: result.error ?? `Phase '${phase.name}' failed with exit code ${result.exitCode ?? 'unknown'}`,
|
|
246
|
-
phase: phase.name,
|
|
247
|
-
phases: phaseResults,
|
|
248
|
-
// The failing phase's OWN counts are the point of this document — a
|
|
249
|
-
// header of `{0, 0, 0}` on the abort path told a reader the build had
|
|
250
|
-
// nothing to act on, on the one path where it certainly did.
|
|
251
|
-
issueCounts: sumSeverityCounts([
|
|
252
|
-
aggregatePhaseIssueCounts(phaseResults),
|
|
253
|
-
countBySeverity(shippedLinkIssues),
|
|
254
|
-
]),
|
|
255
|
-
duration: `${duration}ms`,
|
|
256
|
-
});
|
|
257
|
-
process.exit(exitCodeForPhases(phaseResults));
|
|
258
|
-
}
|
|
282
|
+
results.push(result);
|
|
283
|
+
// Only a report that would fail the run stops it: a warning never does.
|
|
284
|
+
if (stopsTheBuild(result))
|
|
285
|
+
return false;
|
|
259
286
|
if (phase.name === 'claude') {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
const
|
|
264
|
-
|
|
265
|
-
status: 'error',
|
|
266
|
-
error: `Shipped plugin skill tree has ${issueCounts.errors} broken link(s)`,
|
|
267
|
-
phase: phase.name,
|
|
268
|
-
issueCounts,
|
|
269
|
-
issues: shippedLinkIssues,
|
|
270
|
-
duration: `${duration}ms`,
|
|
271
|
-
});
|
|
272
|
-
process.exit(ExitCode.FINDINGS);
|
|
287
|
+
const shipped = await runPhase(shippedLinksPhase(cwd));
|
|
288
|
+
results.push(shipped);
|
|
289
|
+
for (const finding of shipped.report.findings) {
|
|
290
|
+
for (const line of formatIssueLines(finding, ' '))
|
|
291
|
+
logger.error(line);
|
|
273
292
|
}
|
|
293
|
+
if (stopsTheBuild(shipped))
|
|
294
|
+
return false;
|
|
274
295
|
}
|
|
275
|
-
|
|
276
|
-
const duration = Date.now() - startTime;
|
|
277
|
-
// Both sources, for the same reason `status` below reads both: a header that
|
|
278
|
-
// counts only the shipped-link pass reported `{0, 0, 0}` over phases that had
|
|
279
|
-
// just published 12 warnings, so a CI job reading the machine total saw a
|
|
280
|
-
// clean build while `status` beside it said `warning`.
|
|
281
|
-
const issueCounts = sumSeverityCounts([
|
|
282
|
-
aggregatePhaseIssueCounts(phaseResults),
|
|
283
|
-
countBySeverity(shippedLinkIssues),
|
|
284
|
-
]);
|
|
285
|
-
// The shipped-link tally alone drives the human line below — it names what is
|
|
286
|
-
// wrong with THIS tree, and the phases already printed their own.
|
|
287
|
-
const shippedCounts = countBySeverity(shippedLinkIssues);
|
|
288
|
-
if (shippedLinkIssues.length === 0) {
|
|
289
|
-
logger.info(`\n✅ Build complete`);
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
logger.info(`\n✅ Build complete — ${shippedCounts.warnings} warning(s), ${shippedCounts.info} info in the shipped plugin tree`);
|
|
293
|
-
for (const issue of shippedLinkIssues) {
|
|
294
|
-
logger.error(` ${issue.severity.toUpperCase()} [${issue.code}] ${issue.message}`);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
// Warnings and info findings do not fail a build, but they are published:
|
|
298
|
-
// `success` must mean "nothing you must act on", never "there was nothing
|
|
299
|
-
// to see".
|
|
300
|
-
// Worst-wins across BOTH sources. Reading only the shipped-link issues made
|
|
301
|
-
// a run whose child phase reported `warning` publish `success`, which is the
|
|
302
|
-
// same blindness `vat verify` had: a status that cannot see what the child
|
|
303
|
-
// already said.
|
|
304
|
-
writeYamlOutput({
|
|
305
|
-
status: worseOf(aggregatePhaseStatus(phaseResults), calculateValidationStatus(shippedLinkIssues)),
|
|
306
|
-
phasesCompleted: phases.map((p) => p.name),
|
|
307
|
-
phases: phaseResults,
|
|
308
|
-
issueCounts,
|
|
309
|
-
...(shippedLinkIssues.length === 0 ? {} : { issues: shippedLinkIssues }),
|
|
310
|
-
duration: `${duration}ms`,
|
|
296
|
+
return true;
|
|
311
297
|
});
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
298
|
+
if (!completed)
|
|
299
|
+
return;
|
|
300
|
+
logger.info(buildCompleteLine(results));
|
|
301
|
+
});
|
|
302
|
+
endWithReport('build', report, ORCHESTRATOR_FORMAT);
|
|
317
303
|
}
|
|
318
304
|
//# sourceMappingURL=build.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EACL,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,UAAU,GAGX,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,2BAA2B,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1K,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAE,qBAAqB,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MA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