@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,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat build`, `vat validate` and `vat verify` publish, apart from
|
|
3
|
+
* the commands.
|
|
4
|
+
*
|
|
5
|
+
* A sibling module because the published-shape registry imports it and the
|
|
6
|
+
* commands import the writer that imports the registry: a schema declared in a
|
|
7
|
+
* command module itself would be an import cycle, read before it is initialised.
|
|
8
|
+
*
|
|
9
|
+
* 🔑 **One envelope over every phase.** `findings` is every phase's findings,
|
|
10
|
+
* flat and with their `location` unchanged; `examined` is the sum of the
|
|
11
|
+
* phases' own `examined`; `data.phases` carries each phase's status, count,
|
|
12
|
+
* summary and its own `data` — which that phase's registered schema describes,
|
|
13
|
+
* so this schema holds it as `unknown` rather than keeping a second copy of
|
|
14
|
+
* five shapes. `runPhase` holds each phase's report to that schema before the
|
|
15
|
+
* fold. A phase that did not finish carries its own `error`, and the
|
|
16
|
+
* orchestrator's envelope is then `error` / `RUN_INCOMPLETE` over the phases
|
|
17
|
+
* that did.
|
|
18
|
+
*
|
|
19
|
+
* `vat verify`'s `packaged-content` phase is no verb of its own, so its report
|
|
20
|
+
* schema — the published contract for its `data` — is declared here.
|
|
21
|
+
*/
|
|
22
|
+
import { FindingSchema, RefusalCodeSchema, ReportStatusSchema, reportSchema, SeverityCountsSchema, } from '@vibe-agent-toolkit/schema';
|
|
23
|
+
import { z } from 'zod';
|
|
24
|
+
/**
|
|
25
|
+
* What `examined` counts for an orchestrator, and the remedy when it is zero.
|
|
26
|
+
*
|
|
27
|
+
* The sum of the phases' own denominators — files, skills, bundles, plugins —
|
|
28
|
+
* so the unit is "whatever each phase examined". This judges the run in which
|
|
29
|
+
* no phase ran, or none had anything to examine. A CONFIGURED phase that
|
|
30
|
+
* examined nothing is refused before the fold, by its own declaration
|
|
31
|
+
* (`phaseVerdict` in `phase-utils.ts`), so a healthy phase beside it hides nothing.
|
|
32
|
+
*/
|
|
33
|
+
export const ORCHESTRATOR_EXAMINED = {
|
|
34
|
+
unit: 'items across every phase',
|
|
35
|
+
whenZero: 'No phase examined anything, so the run is not a verdict: vibe-agent-toolkit.config.yaml'
|
|
36
|
+
+ ' declares no surface this command runs (`vat build` runs `skills:` and `claude.marketplaces:`;'
|
|
37
|
+
+ ' `vat validate` runs `resources:` (and, with it, the project\'s checks) and `skills:`;'
|
|
38
|
+
+ ' `vat verify` runs `resources:` (without the checks), `skills:` and `claude.marketplaces:`), or every'
|
|
39
|
+
+ ' configured surface matched nothing — usually a typo in a glob or a config key. Each phase'
|
|
40
|
+
+ ' entry under `data.phases` shows what it examined.',
|
|
41
|
+
};
|
|
42
|
+
/** One phase of the run, as the orchestrator folds it. */
|
|
43
|
+
const PhaseEntrySchema = z.object({
|
|
44
|
+
/** The phase's name, e.g. `skills`, `marketplace:<name>`, `packaged-content`. */
|
|
45
|
+
name: z.string(),
|
|
46
|
+
/** The phase's own envelope status. */
|
|
47
|
+
status: ReportStatusSchema,
|
|
48
|
+
/** What the phase examined, in its own unit. */
|
|
49
|
+
examined: z.number().int().nonnegative(),
|
|
50
|
+
/** The phase's findings, by severity — the findings themselves are on the envelope. */
|
|
51
|
+
summary: SeverityCountsSchema,
|
|
52
|
+
/** Why the phase did not finish, when it did not. */
|
|
53
|
+
error: z.object({ code: RefusalCodeSchema, message: z.string() }).strict().optional(),
|
|
54
|
+
/** The phase's own `data`, as its own registered schema describes it. */
|
|
55
|
+
data: z.unknown(),
|
|
56
|
+
}).strict();
|
|
57
|
+
const OrchestratorDataSchema = z.object({
|
|
58
|
+
/** Every phase that ran, finished or not, in execution order. */
|
|
59
|
+
phases: z.array(PhaseEntrySchema),
|
|
60
|
+
}).strict();
|
|
61
|
+
/** The document the three orchestrators publish. */
|
|
62
|
+
export const ORCHESTRATOR_REPORT_SCHEMA = reportSchema(OrchestratorDataSchema, FindingSchema);
|
|
63
|
+
/**
|
|
64
|
+
* `vat verify`'s `packaged-content` phase `data`: what the crawl should have
|
|
65
|
+
* found. What it DID crawl is the phase's own `examined` (the built bundles on
|
|
66
|
+
* disk), so it is not repeated here.
|
|
67
|
+
*/
|
|
68
|
+
const PackagedContentDataSchema = z.object({
|
|
69
|
+
/** Bundles `vat build` produces for the skills this run discovered. */
|
|
70
|
+
bundlesExpected: z.number().int().nonnegative(),
|
|
71
|
+
/** Discovered skills that are in place (`publish: false`, not plugin-local): no bundle is expected. */
|
|
72
|
+
bundlesInPlace: z.number().int().nonnegative(),
|
|
73
|
+
/** Expected bundles absent from `dist/`, project-relative. Non-empty means the phase is not a verdict. */
|
|
74
|
+
bundlesMissing: z.array(z.string()),
|
|
75
|
+
}).strict();
|
|
76
|
+
/**
|
|
77
|
+
* What `examined` counts for `vat verify`'s `packaged-content` phase, and the remedy when it is
|
|
78
|
+
* zero. `vat verify` exists to check the BUILT tree: a phase that crawled none of it is not a
|
|
79
|
+
* verdict on it.
|
|
80
|
+
*/
|
|
81
|
+
export const PACKAGED_CONTENT_EXAMINED = {
|
|
82
|
+
unit: 'built skill bundles',
|
|
83
|
+
whenZero: 'The packaged-content phase is not a verdict: nothing was crawled for files that must not'
|
|
84
|
+
+ ' ship, and the document reads the same as a run over clean bundles. Either `vat build` has not'
|
|
85
|
+
+ ' run (or wrote somewhere other than dist/), or `skills.include` in vibe-agent-toolkit.config.yaml'
|
|
86
|
+
+ ' matched no SKILL.md — usually a typo in the glob. Run `vat build` first; `vat skills validate`'
|
|
87
|
+
+ ' lists what the globs discover.',
|
|
88
|
+
};
|
|
89
|
+
/** The report `vat verify`'s `packaged-content` phase hands back. */
|
|
90
|
+
export const PACKAGED_CONTENT_REPORT_SCHEMA = reportSchema(PackagedContentDataSchema, FindingSchema);
|
|
91
|
+
//# sourceMappingURL=orchestrator-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestrator-schema.js","sourceRoot":"","sources":["../../src/commands/orchestrator-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EACL,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,EACZ,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAwB;IACxD,IAAI,EAAE,0BAA0B;IAChC,QAAQ,EAAE,yFAAyF;UAC/F,gGAAgG;UAChG,wFAAwF;UACxF,uGAAuG;UACvG,4FAA4F;UAC5F,oDAAoD;CACzD,CAAC;AAEF,0DAA0D;AAC1D,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,iFAAiF;IACjF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,uCAAuC;IACvC,MAAM,EAAE,kBAAkB;IAC1B,gDAAgD;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACxC,uFAAuF;IACvF,OAAO,EAAE,oBAAoB;IAC7B,qDAAqD;IACrD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrF,yEAAyE;IACzE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE;CAClB,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,iEAAiE;IACjE,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;CAClC,CAAC,CAAC,MAAM,EAAE,CAAC;AAMZ,oDAAoD;AACpD,MAAM,CAAC,MAAM,0BAA0B,GAAG,YAAY,CAAC,sBAAsB,EAAE,aAAa,CAAC,CAAC;AAE9F;;;;GAIG;AACH,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,uEAAuE;IACvE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC/C,uGAAuG;IACvG,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC9C,0GAA0G;IAC1G,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACpC,CAAC,CAAC,MAAM,EAAE,CAAC;AAIZ;;;;GAIG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAwB;IAC5D,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,0FAA0F;UAChG,gGAAgG;UAChG,mGAAmG;UACnG,iGAAiG;UACjG,iCAAiC;CACtC,CAAC;AAEF,qEAAqE;AACrE,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAY,CAAC,yBAAyB,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1,44 +1,86 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared
|
|
2
|
+
* Shared machinery for the phase orchestrators: `vat build`, `vat verify` and
|
|
3
|
+
* `vat validate`.
|
|
4
|
+
*
|
|
5
|
+
* 🔑 **Each phase hands back its report; the orchestrator publishes ONE.** A
|
|
6
|
+
* phase function returns `{ report }` — the `Report<T>` its own command would
|
|
7
|
+
* publish, BEFORE the writer's run-integrity pass — and the orchestrator folds
|
|
8
|
+
* every phase into {@link orchestratorReport}: findings flat on the envelope,
|
|
9
|
+
* `examined` the sum, each phase's status, count, summary and `data` under
|
|
10
|
+
* `data.phases`.
|
|
11
|
+
*
|
|
12
|
+
* 🔑 **A configured phase that examined nothing is a refusal of THAT phase**
|
|
13
|
+
* ({@link phaseVerdict}), by the declaration its verb's writer is given when the
|
|
14
|
+
* verb runs alone — so an orchestrated phase and its verb cannot disagree. Judged
|
|
15
|
+
* on the sum alone, a `skills.include` matching nothing beside a healthy
|
|
16
|
+
* `resources:` surface was `status: ok`, exit 0. What is NOT refused is a phase
|
|
17
|
+
* for which zero is an answer, and each one says why ({@link ZeroIsAnAnswer}): a
|
|
18
|
+
* phase that ran with no config block of its own (`vat build`'s `skills` phase in a
|
|
19
|
+
* project with no `skills:` block), a `skills` phase whose pool is empty in a project
|
|
20
|
+
* that ships plugin-local skills ({@link skillsPhaseExamined} — refusing that failed
|
|
21
|
+
* `claude plugin install --build`, which trusts `vat build`'s exit), or one that
|
|
22
|
+
* checks what another phase discovered. The writer still judges the sum, for the
|
|
23
|
+
* run in which no phase ran at all.
|
|
24
|
+
*
|
|
25
|
+
* Each phase's report is held to its OWN schema before the fold ({@link Phase}
|
|
26
|
+
* `schema`, parsed by {@link runPhase}): the orchestrator's schema carries a
|
|
27
|
+
* phase's `data` as `unknown`, so nothing downstream could catch a phase
|
|
28
|
+
* publishing data its verb does not describe.
|
|
29
|
+
*
|
|
30
|
+
* There is no second status vocabulary. A phase's status is its envelope's
|
|
31
|
+
* (`ok | findings | error`), the orchestrator's exit derives from its own
|
|
32
|
+
* published document, and a phase that did not finish makes the run `error` /
|
|
33
|
+
* `RUN_INCOMPLETE` with the finished phases still in `data.phases`.
|
|
3
34
|
*/
|
|
4
|
-
import
|
|
35
|
+
import type { ProjectConfig } from '@vibe-agent-toolkit/resources';
|
|
36
|
+
import { type Gate, type RefusalCode, type Report, type ReportZodSchema } from '@vibe-agent-toolkit/schema';
|
|
5
37
|
import { type Command } from 'commander';
|
|
38
|
+
import { type ZodTypeAny } from 'zod';
|
|
39
|
+
import type { DocumentFormat } from '../report-schemas.js';
|
|
6
40
|
import { createLogger } from '../utils/logger.js';
|
|
41
|
+
import { type ExaminedDeclaration } from '../utils/run-integrity.js';
|
|
42
|
+
import type { OrchestratorData } from './orchestrator-schema.js';
|
|
7
43
|
/**
|
|
8
|
-
* What one phase produced: the
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* This pair is the whole of what an orchestrator needs from a phase: an exit
|
|
12
|
-
* code, and the document the phase publishes. Naming it as a value is what lets
|
|
13
|
-
* a phase run in the orchestrator's own process — stderr streams directly either
|
|
14
|
-
* way, so nothing else has to cross.
|
|
15
|
-
*
|
|
16
|
-
* `document` is the object the phase PRINTS, not the internal summary it is
|
|
17
|
-
* built from. The distinction is load-bearing: `vat skills build` renders its
|
|
18
|
-
* summary in two pieces and publishes `skillsWithErrors` as a COUNT while the
|
|
19
|
-
* summary object holds an ARRAY under that name.
|
|
20
|
-
*
|
|
21
|
-
* ⚠️ This field is `unknown`, so nothing typechecks it. Handing back the summary
|
|
22
|
-
* object instead of the printed document changes the emitted contract silently.
|
|
44
|
+
* What one phase produced: the report its own command would publish, before
|
|
45
|
+
* the run-integrity pass — which {@link runPhase} applies, by the phase's own
|
|
46
|
+
* declaration ({@link Phase} `examined`), exactly as that command's writer does.
|
|
23
47
|
*/
|
|
24
48
|
export interface PhaseOutcome {
|
|
25
|
-
|
|
26
|
-
exitCode: ExitCodeValue;
|
|
27
|
-
/**
|
|
28
|
-
* The phase failed UNEXPECTEDLY, so `document` is the shared error envelope
|
|
29
|
-
* (`{status, error, duration}`) rather than the command's own report.
|
|
30
|
-
*
|
|
31
|
-
* The orchestrated lane does not need this — it folds any document under
|
|
32
|
-
* `phases[].report` the same way. The command-line lane does: each command
|
|
33
|
-
* renders its own report with its own renderer (streamed YAML, `--format
|
|
34
|
-
* json`, a hand-built header), and none of those renderers understand an
|
|
35
|
-
* envelope. Handing one to them silently changes both the channel and the
|
|
36
|
-
* shape of the failure document every `vat … | jq` consumer depends on.
|
|
37
|
-
*/
|
|
38
|
-
failed?: boolean;
|
|
49
|
+
report: Report<unknown>;
|
|
39
50
|
}
|
|
51
|
+
/** A phase for which examining nothing IS an answer, and the reason it is. */
|
|
52
|
+
export interface ZeroIsAnAnswer {
|
|
53
|
+
readonly zeroIsAnAnswer: string;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* What a phase's `examined` counts and the remedy when it is zero — the declaration its verb's
|
|
57
|
+
* writer is given when that verb runs alone — or the reason zero is an answer for it.
|
|
58
|
+
*/
|
|
59
|
+
export type PhaseExamined = ExaminedDeclaration | ZeroIsAnAnswer;
|
|
60
|
+
/** The schema a phase's report is held to: its own verb's registered report schema. */
|
|
61
|
+
export type PhaseReportSchema = ReportZodSchema<ZodTypeAny, ZodTypeAny>;
|
|
40
62
|
/**
|
|
41
|
-
*
|
|
63
|
+
* The report schema of a phase that publishes no `data` of its own — verify's
|
|
64
|
+
* `files-config-dests` and `consistency`, build's `shipped-links`: no verb of
|
|
65
|
+
* their own registers one, and their `data` is `null`.
|
|
66
|
+
*/
|
|
67
|
+
export declare const DATALESS_PHASE_REPORT_SCHEMA: PhaseReportSchema;
|
|
68
|
+
/**
|
|
69
|
+
* One orchestrated phase: a name, the schema its report is held to, and the
|
|
70
|
+
* work to run for it.
|
|
71
|
+
*
|
|
72
|
+
* `schema` is REQUIRED: the orchestrator's own schema holds a phase's `data`
|
|
73
|
+
* as `unknown` (it would otherwise be a second copy of every phase verb's
|
|
74
|
+
* shape), so {@link runPhase} parsing each report against the phase's own
|
|
75
|
+
* schema is the only thing standing between a phase and publishing `data` its
|
|
76
|
+
* verb's schema does not describe. A delegated phase names its verb's
|
|
77
|
+
* registered `<VERB>_REPORT_SCHEMA`; an in-process one names its own.
|
|
78
|
+
*
|
|
79
|
+
* `examined` is REQUIRED, for the same reason every writer's is: a phase that
|
|
80
|
+
* examined nothing and says nothing about it folds into the run as a clean one.
|
|
81
|
+
* A delegated phase names its verb's registered `<VERB>_EXAMINED`; a phase for
|
|
82
|
+
* which zero is an answer says so, with its reason. A function of the report for
|
|
83
|
+
* the one phase whose own `data` decides which of the two a zero is.
|
|
42
84
|
*
|
|
43
85
|
* `run` is a bound closure rather than an argv array because the phase executes
|
|
44
86
|
* in this process. An argv array would mean re-entering Commander to
|
|
@@ -48,8 +90,39 @@ export interface PhaseOutcome {
|
|
|
48
90
|
*/
|
|
49
91
|
export interface Phase {
|
|
50
92
|
name: string;
|
|
93
|
+
schema: PhaseReportSchema;
|
|
94
|
+
examined: PhaseExamined | ((report: Report<unknown>) => PhaseExamined);
|
|
51
95
|
run: () => Promise<PhaseOutcome>;
|
|
52
96
|
}
|
|
97
|
+
/**
|
|
98
|
+
* Whether the project ships at least one plugin-local skill — by the ONE answer to that question
|
|
99
|
+
* (`indexPluginLocalSkills`: what the claude phase packages), never a path prefix.
|
|
100
|
+
*
|
|
101
|
+
* @param config - The project's config, or `undefined` when none loaded
|
|
102
|
+
* @param configDir - The directory the config was loaded from
|
|
103
|
+
*/
|
|
104
|
+
export declare function shipsPluginLocalSkills(config: ProjectConfig | undefined, configDir: string): boolean;
|
|
105
|
+
/**
|
|
106
|
+
* The declaration of a `skills` phase (`vat build`, `vat validate`, `vat verify`): zero pool
|
|
107
|
+
* skills is the verb's own refusal — unless the project ships a plugin-local skill.
|
|
108
|
+
*
|
|
109
|
+
* `skills.include` is required by the schema, and a plugin-local skill reads its packaging
|
|
110
|
+
* config from `skills.config` / `skills.defaults`, so a project whose skills are all plugin-local
|
|
111
|
+
* MUST carry a `skills:` block whose include legitimately matches nothing in the pool. Refusing
|
|
112
|
+
* that stopped `vat build` before the `claude` phase that builds those very skills. With no pool
|
|
113
|
+
* match AND no plugin-local skill, the run examined no skill at all, and it is the refusal.
|
|
114
|
+
*
|
|
115
|
+
* @param declared - What the phase's verb declares its `examined` counts
|
|
116
|
+
* @param pluginLocal - Asked only when the phase examined nothing: it lists the project's plugins
|
|
117
|
+
*/
|
|
118
|
+
export declare function skillsPhaseExamined(declared: ExaminedDeclaration, pluginLocal: () => boolean): (report: Report<unknown>) => PhaseExamined;
|
|
119
|
+
/** One phase that ran: its name and its report. */
|
|
120
|
+
export interface PhaseResult {
|
|
121
|
+
name: string;
|
|
122
|
+
report: Report<unknown>;
|
|
123
|
+
}
|
|
124
|
+
/** No orchestrator offers `--strict`: warnings never fail a run. */
|
|
125
|
+
export declare const ORCHESTRATOR_GATE: Gate;
|
|
53
126
|
/**
|
|
54
127
|
* Declare `--only` on a command that has RETIRED it, solely so the command can
|
|
55
128
|
* explain itself instead of emitting Commander's bare `error: unknown option
|
|
@@ -57,7 +130,7 @@ export interface Phase {
|
|
|
57
130
|
*
|
|
58
131
|
* This is **not** a backward-compatibility shim — the pre-1.0 policy forbids
|
|
59
132
|
* those and this obeys it. The flag does not work: {@link rejectRetiredOnly}
|
|
60
|
-
*
|
|
133
|
+
* refuses the run before any phase is selected, so no caller can keep depending
|
|
61
134
|
* on the old behaviour. What it buys is a diagnosis. An unknown-option error
|
|
62
135
|
* names the flag and nothing else; the reader cannot tell a typo from a removal
|
|
63
136
|
* and has no way to learn what replaced it, so the next move is a bug report or
|
|
@@ -69,104 +142,49 @@ export interface Phase {
|
|
|
69
142
|
*/
|
|
70
143
|
export declare function addRetiredOnlyOption(command: Command): Command;
|
|
71
144
|
/**
|
|
72
|
-
*
|
|
145
|
+
* Refuse the run when a caller passed the retired `--only`, naming what changed.
|
|
73
146
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* failing on a bad `--only` keeps failing rather than flipping to green.
|
|
147
|
+
* `USAGE_INVALID` (exit 2): the invocation is the mistake, and nothing was
|
|
148
|
+
* examined.
|
|
77
149
|
*
|
|
78
150
|
* @param only - The parsed `--only` value; `undefined` when it was not passed.
|
|
79
151
|
* @param command - Command name for the message, e.g. `vat validate`.
|
|
80
152
|
* @param seconds - The measured full-run duration that made the flag not worth
|
|
81
153
|
* its coverage risk. Cited so the removal reads as a decision with evidence
|
|
82
154
|
* rather than a preference.
|
|
155
|
+
* @throws CommandRefusalError `USAGE_INVALID` when `--only` was passed
|
|
83
156
|
*/
|
|
84
157
|
export declare function rejectRetiredOnly(only: string | undefined, command: string, seconds: number): void;
|
|
85
|
-
/**
|
|
86
|
-
* Outcome of one orchestrated phase.
|
|
87
|
-
*
|
|
88
|
-
* `system-error` is a value of its own because **a phase that could not RUN is
|
|
89
|
-
* not a phase that found problems.**
|
|
90
|
-
*
|
|
91
|
-
* ⚠️ Any two-valued mapping — `status === 0 ? 'passed' : 'failed'` and its
|
|
92
|
-
* relatives — collapses it into `error` and makes the documented exit code 2
|
|
93
|
-
* unreachable from every orchestrator, leaving a CI script unable to tell an
|
|
94
|
-
* invalid config from a broken link.
|
|
95
|
-
*
|
|
96
|
-
* `warning` reaches a phase through its own reported `status`, NOT through its
|
|
97
|
-
* exit code — `vat skills validate` exits 0 while reporting `status: warning`,
|
|
98
|
-
* so an exit-code-only mapping answered `success` on the very tree where the
|
|
99
|
-
* phase said otherwise. Phases that hold their own findings (e.g. verify's
|
|
100
|
-
* consistency check) emit it directly.
|
|
101
|
-
*/
|
|
102
|
-
export type PhaseStatus = 'success' | 'warning' | 'error' | 'system-error';
|
|
103
|
-
/** The phase outcome for "we did not learn what this phase would have said". */
|
|
104
|
-
export declare const SYSTEM_ERROR: PhaseStatus;
|
|
105
|
-
export interface PhaseResult {
|
|
106
|
-
name: string;
|
|
107
|
-
status: PhaseStatus;
|
|
108
|
-
/** The exit code the phase claimed for itself. */
|
|
109
|
-
exitCode?: ExitCodeValue;
|
|
110
|
-
/** Why the phase could not run at all (it threw past its own error handling). */
|
|
111
|
-
error?: string;
|
|
112
|
-
/**
|
|
113
|
-
* Per-severity distribution for phases that hold their own findings and
|
|
114
|
-
* publish no document of their own. Absent for phases that DO publish one:
|
|
115
|
-
* those own their findings, and inventing counts here would be a second,
|
|
116
|
-
* weaker answer — theirs are carried verbatim in {@link PhaseResult.report}.
|
|
117
|
-
*/
|
|
118
|
-
issueCounts?: SeverityCounts;
|
|
119
|
-
/**
|
|
120
|
-
* The phase's own document, folded in under its name.
|
|
121
|
-
*
|
|
122
|
-
* Nested under the phase's own entry so the orchestrator's stdout stays ONE
|
|
123
|
-
* parseable document.
|
|
124
|
-
*
|
|
125
|
-
* ⚠️ Phase documents written onto a shared stdout concatenate with no `---`
|
|
126
|
-
* between them: two phases each carrying `status:` and `durationSecs:` become
|
|
127
|
-
* a single map with duplicate keys, and `YAML.parse()` throws "Map keys must
|
|
128
|
-
* be unique".
|
|
129
|
-
*/
|
|
130
|
-
report?: unknown;
|
|
131
|
-
}
|
|
132
158
|
export interface PhaseContext {
|
|
133
159
|
logger: ReturnType<typeof createLogger>;
|
|
134
|
-
startTime: number;
|
|
135
160
|
}
|
|
136
161
|
/**
|
|
137
|
-
* Create the shared phase command context
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* ⚠️ This runs BEFORE the command's try block, so anything that throws here
|
|
142
|
-
* reaches the user as a raw Node stack trace with zero bytes of stdout and an
|
|
143
|
-
* exit 1 indistinguishable from "validation errors". Phase routing therefore
|
|
144
|
-
* belongs to {@link decidePhaseSelection} and {@link applyPhaseSelection}, which
|
|
145
|
-
* emit the command's normal structured document.
|
|
162
|
+
* Create the shared phase command context. Total by design: it builds the
|
|
163
|
+
* context and decides nothing, because it runs outside the orchestrator's
|
|
164
|
+
* refusal handling.
|
|
146
165
|
*/
|
|
147
166
|
export declare function createPhaseContext(debugFlag: boolean | undefined): PhaseContext;
|
|
148
167
|
/**
|
|
149
168
|
* The decision an orchestrator reaches about what `--only` asked for.
|
|
150
169
|
*
|
|
151
|
-
* Three arms, because the three answers carry different exit codes and none of
|
|
152
|
-
* them may be collapsed into another:
|
|
153
170
|
* - `run` — go ahead with these phases.
|
|
154
171
|
* - `fail` — the caller named a phase that is unrecognized, or recognized but
|
|
155
|
-
* not configured
|
|
156
|
-
*
|
|
157
|
-
* - `noop` — a bare run in a project that configures nothing.
|
|
158
|
-
*
|
|
172
|
+
* not configured, or the config could not be read: a refusal,
|
|
173
|
+
* carrying which one.
|
|
174
|
+
* - `noop` — a bare run in a project that configures nothing. It runs no
|
|
175
|
+
* phase; the writer refuses the zero-examined run, and the stderr
|
|
176
|
+
* warning names the likely config typo.
|
|
159
177
|
*/
|
|
160
178
|
export type PhaseSelection = {
|
|
161
179
|
kind: 'run';
|
|
162
180
|
phases: Phase[];
|
|
163
181
|
} | {
|
|
164
182
|
kind: 'fail';
|
|
183
|
+
code: RefusalCode;
|
|
165
184
|
message: string;
|
|
166
185
|
} | {
|
|
167
186
|
kind: 'noop';
|
|
168
187
|
warning: string;
|
|
169
|
-
note: string;
|
|
170
188
|
};
|
|
171
189
|
/** How one orchestrator names the things `--only` selects, for its messages. */
|
|
172
190
|
export interface PhaseVocabulary {
|
|
@@ -176,10 +194,9 @@ export interface PhaseVocabulary {
|
|
|
176
194
|
verb: string;
|
|
177
195
|
/** Every name `--only` accepts, in help order. */
|
|
178
196
|
validNames: readonly string[];
|
|
179
|
-
/** Stderr warning
|
|
197
|
+
/** Stderr warning for a bare run with nothing configured. */
|
|
180
198
|
noop?: {
|
|
181
199
|
warning: string;
|
|
182
|
-
note: string;
|
|
183
200
|
};
|
|
184
201
|
}
|
|
185
202
|
/**
|
|
@@ -187,11 +204,9 @@ export interface PhaseVocabulary {
|
|
|
187
204
|
* list its config produced.
|
|
188
205
|
*
|
|
189
206
|
* THE single decision site for all three orchestrators, so they cannot answer
|
|
190
|
-
* the same question differently.
|
|
191
|
-
*
|
|
192
|
-
* `
|
|
193
|
-
* `vat verify` has retired `--only` and always passes `only: undefined`;
|
|
194
|
-
* `vat validate` and `vat build` route their own `--only` through here.
|
|
207
|
+
* the same question differently. `vat verify` and `vat validate` have retired
|
|
208
|
+
* `--only` and always pass `only: undefined`; `vat build` routes its own
|
|
209
|
+
* `--only` through here.
|
|
195
210
|
*
|
|
196
211
|
* ⚠️ **Nothing may short-circuit ahead of the config-error arm.** A check
|
|
197
212
|
* evaluated before `unreadableConfig` answers a confident "not configured" for a
|
|
@@ -199,138 +214,91 @@ export interface PhaseVocabulary {
|
|
|
199
214
|
* must never give, because it is indistinguishable from a correct one.
|
|
200
215
|
*
|
|
201
216
|
* @param unreadableConfig - The config-load error, when the config exists but
|
|
202
|
-
* could not be parsed.
|
|
203
|
-
* we do not know what it declares, so we must not answer with a confident
|
|
204
|
-
* "not configured". Only `vat verify` passes it, and only defensively — its
|
|
217
|
+
* could not be parsed. Only `vat verify` passes it, and only defensively — its
|
|
205
218
|
* phase builder pushes every configured phase when the config is unreadable
|
|
206
219
|
* (so the phase itself reports the real error), which makes the list non-empty
|
|
207
|
-
* and this arm unreachable by construction today.
|
|
208
|
-
* that would otherwise catch an empty list is the "not configured" lie.
|
|
220
|
+
* and this arm unreachable by construction today.
|
|
209
221
|
*/
|
|
210
222
|
export declare function decidePhaseSelection(only: string | undefined, phases: Phase[], vocab: PhaseVocabulary, options?: {
|
|
211
223
|
unreadableConfig?: string | undefined;
|
|
212
224
|
}): PhaseSelection;
|
|
213
225
|
/**
|
|
214
|
-
* Act on a {@link PhaseSelection}:
|
|
215
|
-
* command's normal structured document and exit.
|
|
216
|
-
*
|
|
217
|
-
* Both terminal arms go through `writeYamlOutput` deliberately: the YAML
|
|
218
|
-
* document on stdout is the one output a scripted caller parses, so a routing
|
|
219
|
-
* failure has to publish one rather than throw past it.
|
|
220
|
-
*/
|
|
221
|
-
export declare function applyPhaseSelection(selection: PhaseSelection, logger: ReturnType<typeof createLogger>, startTime: number): Phase[];
|
|
222
|
-
/** The worse of two phase statuses, per {@link PHASE_STATUS_ORDER}. */
|
|
223
|
-
export declare function worseOf(a: PhaseStatus, b: PhaseStatus): PhaseStatus;
|
|
224
|
-
/**
|
|
225
|
-
* Map what a phase produced to its outcome. The pure core of {@link runPhase}.
|
|
226
|
-
*
|
|
227
|
-
* | exit code | phase status | why |
|
|
228
|
-
* |-----------------------|----------------|-----------------------------------------|
|
|
229
|
-
* | `OK` (0) | `success` | ran, found nothing actionable |
|
|
230
|
-
* | `FINDINGS` (1) | `error` | ran, found validation errors |
|
|
231
|
-
* | `ERROR` (2) | `system-error` | the phase itself reported a system error |
|
|
232
|
-
* | anything else | throws | a defect in the phase, filed by `runPhase` as `system-error` |
|
|
233
|
-
*
|
|
234
|
-
* The exit code is then reconciled with the phase's OWN reported `status`,
|
|
235
|
-
* worst-wins. An exit code has three values and cannot express `warning`:
|
|
236
|
-
* `vat skills validate` exits 0 while reporting `status: warning`, so its exit
|
|
237
|
-
* code alone reads as `success` — including on the tree VAT's CI dogfoods on
|
|
238
|
-
* VAT itself.
|
|
239
|
-
*
|
|
240
|
-
* The table has no row for a signal kill, a missing status code, or a document
|
|
241
|
-
* that fails to parse, and that is the design rather than an omission. A phase
|
|
242
|
-
* runs in this process: there is no serialization step in which to lose a
|
|
243
|
-
* document, and no signal that could take a phase without taking the
|
|
244
|
-
* orchestrator with it.
|
|
245
|
-
*/
|
|
246
|
-
export declare function phaseResultFromOutcome(name: string, outcome: PhaseOutcome): PhaseResult;
|
|
247
|
-
/**
|
|
248
|
-
* End a command-line run from a phase outcome: publish the document, then exit.
|
|
226
|
+
* Act on a {@link PhaseSelection}: the phases to run, or the refusal.
|
|
249
227
|
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
* what a *command* does with it, while an orchestrator folds it into
|
|
253
|
-
* `phases[].report` instead.
|
|
254
|
-
*
|
|
255
|
-
* Three cases, and the middle one is the one to get right:
|
|
256
|
-
* - an unexpected failure publishes the shared envelope in the format the
|
|
257
|
-
* operator asked for, matching `handleCommandError`;
|
|
258
|
-
* - a command's own report goes through the command's own `render`;
|
|
259
|
-
* - no document at all (an unconfigured run, a dry run) publishes nothing.
|
|
260
|
-
*
|
|
261
|
-
* 🔑 **`format` is REQUIRED, and that is the whole point of it being a
|
|
262
|
-
* parameter.** This arm hardcoded `writeYamlOutput`, and it is `vat resources
|
|
263
|
-
* validate`'s ONLY error exit — so `--format json` silently produced YAML on the
|
|
264
|
-
* one path a scripted consumer most needs to parse. The sibling
|
|
265
|
-
* `handleCommandError` has the same parameter as an OPTIONAL one carrying a
|
|
266
|
-
* docstring that says a caller with a `--format` option must pass it, and two
|
|
267
|
-
* commands added in the same change dropped it anyway: a docstring is not a
|
|
268
|
-
* mechanism. Here the type system asks, so a new caller cannot forget. A command
|
|
269
|
-
* that offers no `--format` passes `undefined` and says so at its call site.
|
|
270
|
-
*
|
|
271
|
-
* ⚠️ It governs the FAILURE envelope only. A command's own report still goes
|
|
272
|
-
* through `render`, which is what a `--format text` lane needs.
|
|
273
|
-
*
|
|
274
|
-
* @param outcome - What the phase produced
|
|
275
|
-
* @param render - How this command publishes its OWN report shape
|
|
276
|
-
* @param format - What the operator asked for: `json`, or anything else (and
|
|
277
|
-
* `undefined`) for YAML — the same two-branch switch `handleCommandError` and
|
|
278
|
-
* every success path use
|
|
228
|
+
* @throws CommandRefusalError for a `fail` selection, carrying its code —
|
|
229
|
+
* the orchestrator's catch publishes it
|
|
279
230
|
*/
|
|
280
|
-
export declare function
|
|
231
|
+
export declare function applyPhaseSelection(selection: PhaseSelection, logger: ReturnType<typeof createLogger>): Phase[];
|
|
281
232
|
/**
|
|
282
|
-
* Run a single phase in THIS process
|
|
233
|
+
* Run a single phase in THIS process.
|
|
283
234
|
*
|
|
284
235
|
* In THIS process, because everything an orchestrator reads back from a phase is
|
|
285
|
-
*
|
|
286
|
-
*
|
|
287
|
-
*
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*
|
|
291
|
-
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
296
|
-
*
|
|
236
|
+
* its report. A process per phase charges, on every phase, a full Node startup
|
|
237
|
+
* and the whole module graph again (~730 ms of remark per isolate), a parse
|
|
238
|
+
* cache whose miss counters restart from zero, and a worker pool built and torn
|
|
239
|
+
* down before the next phase begins.
|
|
240
|
+
*
|
|
241
|
+
* The report is held to the phase's own {@link Phase.schema} before it is
|
|
242
|
+
* folded — the check its verb's writer applies when that verb runs alone. A
|
|
243
|
+
* report the schema rejects is VAT's defect: the `ZodError` carries no code, so
|
|
244
|
+
* it becomes the phase's `INTERNAL_ERROR`, never a finished phase.
|
|
245
|
+
*
|
|
246
|
+
* Then it is judged as its verb's writer judges it ({@link phaseVerdict}): a
|
|
247
|
+
* configured phase that examined nothing is refused, and the refusal is said on
|
|
248
|
+
* stderr as well as in the document.
|
|
249
|
+
*
|
|
250
|
+
* The `catch` is a BACKSTOP, not the error path: every phase function returns
|
|
251
|
+
* its own refusal as a report. A throw that escaped that becomes the phase's
|
|
252
|
+
* refusal — classified by its code, `INTERNAL_ERROR` when it carries none —
|
|
253
|
+
* rather than aborting the orchestrator and silently skipping every later phase.
|
|
297
254
|
*/
|
|
298
255
|
export declare function runPhase(phase: Phase): Promise<PhaseResult>;
|
|
299
256
|
/**
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
* One phase's per-severity distribution, wherever that phase keeps it.
|
|
306
|
-
*
|
|
307
|
-
* A phase that holds its own findings publishes {@link PhaseResult.issueCounts}.
|
|
308
|
-
* A phase that publishes its own document deliberately does not — it owns its
|
|
309
|
-
* findings, and its document rides verbatim in {@link PhaseResult.report}.
|
|
257
|
+
* A phase's report as its own verb's writer would publish it: with the ONE
|
|
258
|
+
* `RESOURCE_CHECK_BROKEN` refusal added when it examined nothing — unless zero is
|
|
259
|
+
* an answer for this phase. `withRunIntegrity` is the same function every writer
|
|
260
|
+
* calls, so there is one contract for "a run that examined nothing", and an
|
|
261
|
+
* orchestrated phase gets the very finding its verb gives alone.
|
|
310
262
|
*
|
|
311
|
-
*
|
|
312
|
-
* orchestrator's header report `{0, 0, 0}` over phases that just reported 12
|
|
313
|
-
* warnings.
|
|
263
|
+
* Pure: no I/O, no stderr.
|
|
314
264
|
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
265
|
+
* @param phase - The phase's `examined` declaration
|
|
266
|
+
* @param report - What the phase returned
|
|
267
|
+
* @returns `report` itself when nothing is added, so a caller can tell by identity
|
|
317
268
|
*/
|
|
318
|
-
export declare function
|
|
269
|
+
export declare function phaseVerdict(phase: Pick<Phase, 'examined'>, report: Report<unknown>): Report<unknown>;
|
|
319
270
|
/**
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
271
|
+
* Fold the phases into the orchestrator's ONE report.
|
|
272
|
+
*
|
|
273
|
+
* `findings` is every phase's findings with its `location` unchanged; `examined`
|
|
274
|
+
* is the sum of the phases' own; `data.phases` is one entry per phase. Any phase
|
|
275
|
+
* that did not finish makes the run `error` with `RUN_INCOMPLETE`, naming the
|
|
276
|
+
* phases that stopped, and the finished ones stay in `data.phases` — a failed
|
|
277
|
+
* phase never erases what the others found.
|
|
278
|
+
*
|
|
279
|
+
* Pure: each phase was judged as it ran ({@link runPhase}), and the writer judges
|
|
280
|
+
* the sum when it publishes — which refuses the run in which no phase ran.
|
|
281
|
+
*
|
|
282
|
+
* @param results - Every phase that ran, in execution order
|
|
283
|
+
* @param gate - The gate the run is judged by
|
|
284
|
+
* @param durationMs - Wall-clock milliseconds the run took; carried by a completed
|
|
285
|
+
* run only, as no refusal document carries `durationMs`
|
|
286
|
+
* @returns The report, before the writer's run-integrity pass
|
|
327
287
|
*/
|
|
328
|
-
export declare function
|
|
288
|
+
export declare function orchestratorReport(results: readonly PhaseResult[], gate: Gate, durationMs?: number): Report<OrchestratorData>;
|
|
329
289
|
/**
|
|
330
|
-
*
|
|
331
|
-
*
|
|
332
|
-
*
|
|
333
|
-
*
|
|
290
|
+
* Run an orchestrator's body and fold it into its ONE report.
|
|
291
|
+
*
|
|
292
|
+
* `body` pushes each phase that ran onto `results`. A throw from it — the
|
|
293
|
+
* refused `--only`, a positional argument, no project root, discovery that
|
|
294
|
+
* could not see the tree — is classified by its code and becomes the
|
|
295
|
+
* envelope's error branch carrying every phase that already finished. The
|
|
296
|
+
* command publishes the result with `endWithReport`.
|
|
297
|
+
*
|
|
298
|
+
* @param body - The run; it records each phase's result as it finishes
|
|
299
|
+
* @returns The orchestrator's report, before the writer's run-integrity pass
|
|
334
300
|
*/
|
|
335
|
-
export declare function
|
|
301
|
+
export declare function orchestrate(body: (results: PhaseResult[]) => Promise<void>): Promise<Report<unknown>>;
|
|
302
|
+
/** No orchestrator offers `--format`: the document is YAML. */
|
|
303
|
+
export declare const ORCHESTRATOR_FORMAT: DocumentFormat;
|
|
336
304
|
//# sourceMappingURL=phase-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phase-utils.d.ts","sourceRoot":"","sources":["../../src/commands/phase-utils.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"phase-utils.d.ts","sourceRoot":"","sources":["../../src/commands/phase-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAML,KAAK,IAAI,EACT,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,OAAO,EAAU,MAAM,WAAW,CAAC;AACjD,OAAO,EAAK,KAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAEzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAG3D,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,mBAAmB,EAAsC,MAAM,2BAA2B,CAAC;AAEzG,OAAO,KAAK,EAAE,gBAAgB,EAA0B,MAAM,0BAA0B,CAAC;AAEzF;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CACzB;AAED,8EAA8E;AAC9E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,mBAAmB,GAAG,cAAc,CAAC;AAEjE,uFAAuF;AACvF,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,iBAAyD,CAAC;AAErG;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,aAAa,GAAG,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,aAAa,CAAC,CAAC;IACvE,GAAG,EAAE,MAAM,OAAO,CAAC,YAAY,CAAC,CAAC;CAClC;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,SAAS,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAEpG;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,mBAAmB,EAAE,WAAW,EAAE,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,aAAa,CAIzI;AAED,mDAAmD;AACnD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CACzB;AAED,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,EAAE,IAAuC,CAAC;AAExE;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAI9D;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAclG;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;CACzC;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,GAAG,YAAY,CAE/E;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,KAAK,EAAE,CAAA;CAAE,GAChC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACpD;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC,gFAAgF;AAChF,MAAM,WAAW,eAAe;IAC9B,6EAA6E;IAC7E,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B,6DAA6D;IAC7D,IAAI,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,MAAM,EAAE,KAAK,EAAE,EACf,KAAK,EAAE,eAAe,EACtB,OAAO,GAAE;IAAE,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAO,GACtD,cAAc,CA8BhB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,cAAc,EACzB,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,GACtC,KAAK,EAAE,CAKT;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,CAWjE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,OAAO,CAAC,CAGrG;AAuBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,SAAS,WAAW,EAAE,EAC/B,IAAI,EAAE,IAAI,EACV,UAAU,CAAC,EAAE,MAAM,GAClB,MAAM,CAAC,gBAAgB,CAAC,CAa1B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAY3G;AAED,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,EAAE,cAAuB,CAAC"}
|