@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/report-schemas.js
CHANGED
|
@@ -1,100 +1,658 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Every
|
|
2
|
+
* Every shape VAT publishes — on stdout, in a file, as an exported library
|
|
3
|
+
* type, as a committed JSON Schema — and what each one is.
|
|
3
4
|
*
|
|
4
|
-
* 🔑 **
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* 🔑 **One list, asserted both ways.** `test/published-shapes.test.ts` holds
|
|
6
|
+
* every claim here against the tree: each writer call in `commands/` names an
|
|
7
|
+
* entry and each entry has its writer call; each Commander leaf with an action
|
|
8
|
+
* is covered by exactly one entry; each `packages/<pkg>/schemas/*.json` is
|
|
9
|
+
* registered and each registered file exists; each `*Result` / `*Report` /
|
|
10
|
+
* `*Document` type a published barrel exports is registered and each
|
|
11
|
+
* registered one is exported. A registry asserted only one way is a hand-kept
|
|
12
|
+
* list, and hand-kept lists are how a shape shipped with nothing describing it.
|
|
11
13
|
*
|
|
12
|
-
* ##
|
|
14
|
+
* ## Kinds and channels
|
|
13
15
|
*
|
|
14
|
-
* - `report` — the document IS the
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* - `
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
16
|
+
* - `report` / `stdout` — the document IS the union envelope (`Report<T>`).
|
|
17
|
+
* The writer (`utils/document-writer.ts`) validates it against `schema`
|
|
18
|
+
* before a byte leaves, derives the run-integrity refusal from `examined`
|
|
19
|
+
* (the verb's declared denominator — what `examined` counts, and what to
|
|
20
|
+
* check when it is zero), and ends on the code the written document derives.
|
|
21
|
+
* `scripts/generate-json-schemas.ts` emits `schemas/<name>.json` from it.
|
|
22
|
+
* - `external` / `stdout` — a payload whose shape someone else owns (the
|
|
23
|
+
* Anthropic Admin API), passed through; `exitCodes` maps each outcome to the
|
|
24
|
+
* exit contract, since there is no envelope to derive one from.
|
|
25
|
+
* - `artifact` — a VAT-owned shape that is not a run report: a stdout
|
|
26
|
+
* artifact (a config to paste), a file a verb writes, or a type a package
|
|
27
|
+
* barrel exports. `schemaFile` names the committed JSON Schema describing it
|
|
28
|
+
* (rendered from `schema`), or is `null` when none is published; `writer`
|
|
29
|
+
* says who puts a file artifact's bytes on disk.
|
|
30
|
+
* - `input` / `schema-file` — a committed JSON Schema describing what an
|
|
31
|
+
* ADOPTER writes (config, manifests, frontmatter). Registered so the
|
|
32
|
+
* both-ways file check can tell "describes an input" from "unregistered".
|
|
33
|
+
* - `legacy` / `stdout` — exactly `claude context`, the one verb not on the
|
|
34
|
+
* envelope through wave A (wave C replaces it). Its type admits no other verb.
|
|
35
|
+
*
|
|
36
|
+
* ## Why the report schemas live in sibling `*-schema.ts` modules
|
|
37
|
+
*
|
|
38
|
+
* The writer imports this registry, and every report verb imports the
|
|
39
|
+
* writer. A schema declared in the verb's own module would make this file
|
|
40
|
+
* import the verb that imports it — an ESM cycle whose binding is read here
|
|
41
|
+
* before the verb has initialised it. So each verb's `<VERB>_REPORT_SCHEMA`
|
|
42
|
+
* lives beside it in a module that imports nothing from the writer.
|
|
43
|
+
*
|
|
44
|
+
* ## The one lint exception
|
|
45
|
+
*
|
|
46
|
+
* `local/no-stdout-outside-writer` makes the writer the only stdout under
|
|
47
|
+
* `commands/`. Its `allowFiles` is exactly `commands/agent/run.ts` — whose
|
|
48
|
+
* stdout is the agent's reply, not a document.
|
|
24
49
|
*/
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
50
|
+
import { FrictionReportSchema } from '@vibe-agent-toolkit/agent-skills';
|
|
51
|
+
import { ClaudeContextChainRowSchema, ClaudeContextLoadRowSchema, EdgeResolutionRowSchema, EdgeRowSchema, LensEntryPointRowSchema, PROJECTION_TABLES, } from '@vibe-agent-toolkit/resources';
|
|
52
|
+
import { ExitCode } from '@vibe-agent-toolkit/schema';
|
|
53
|
+
import { AGENT_BUILD_EXAMINED, AGENT_BUILD_REPORT_SCHEMA } from './commands/agent/build-schema.js';
|
|
54
|
+
import { AGENT_IMPORT_EXAMINED, AGENT_IMPORT_REPORT_SCHEMA } from './commands/agent/import-schema.js';
|
|
55
|
+
import { AGENT_INSTALL_EXAMINED, AGENT_INSTALL_REPORT_SCHEMA } from './commands/agent/install-schema.js';
|
|
56
|
+
import { AGENT_INSTALLED_EXAMINED, AGENT_INSTALLED_REPORT_SCHEMA } from './commands/agent/installed-schema.js';
|
|
57
|
+
import { AGENT_LIST_EXAMINED, AGENT_LIST_REPORT_SCHEMA } from './commands/agent/list-schema.js';
|
|
58
|
+
import { AGENT_UNINSTALL_EXAMINED, AGENT_UNINSTALL_REPORT_SCHEMA } from './commands/agent/uninstall-schema.js';
|
|
59
|
+
import { AGENT_VALIDATE_EXAMINED, AGENT_VALIDATE_REPORT_SCHEMA } from './commands/agent/validate-schema.js';
|
|
60
|
+
import { ARD_EMIT_REPORT_SCHEMA } from './commands/ard/emit-schema.js';
|
|
61
|
+
import { AUDIT_EXAMINED, AUDIT_REPORT_SCHEMA } from './commands/audit-schema.js';
|
|
62
|
+
import { AUDIT_SETTINGS_EXAMINED, AUDIT_SETTINGS_REPORT_SCHEMA } from './commands/audit-settings-schema.js';
|
|
63
|
+
import { CACHE_CLEAR_EXAMINED, CACHE_CLEAR_REPORT_SCHEMA } from './commands/cache/clear-schema.js';
|
|
64
|
+
import { MARKETPLACE_PUBLISH_EXAMINED, MARKETPLACE_PUBLISH_REPORT_SCHEMA } from './commands/claude/marketplace/publish-schema.js';
|
|
65
|
+
import { MARKETPLACE_VALIDATE_EXAMINED, MARKETPLACE_VALIDATE_REPORT_SCHEMA } from './commands/claude/marketplace/validate-schema.js';
|
|
66
|
+
import { ORG_NOT_IMPLEMENTED_EXAMINED, ORG_NOT_IMPLEMENTED_REPORT_SCHEMA } from './commands/claude/org/stubs-schema.js';
|
|
67
|
+
import { PLUGIN_BUILD_EXAMINED, PLUGIN_BUILD_REPORT_SCHEMA } from './commands/claude/plugin/build-schema.js';
|
|
68
|
+
import { PLUGIN_INSTALL_EXAMINED, PLUGIN_INSTALL_REPORT_SCHEMA } from './commands/claude/plugin/install-schema.js';
|
|
69
|
+
import { PLUGIN_LIST_EXAMINED, PLUGIN_LIST_REPORT_SCHEMA } from './commands/claude/plugin/list-schema.js';
|
|
70
|
+
import { PLUGIN_UNINSTALL_EXAMINED, PLUGIN_UNINSTALL_REPORT_SCHEMA } from './commands/claude/plugin/uninstall-schema.js';
|
|
71
|
+
import { CORPUS_SCAN_EXAMINED, CORPUS_SCAN_REPORT_SCHEMA } from './commands/corpus/scan-schema.js';
|
|
72
|
+
import { renderDoctorText } from './commands/doctor-render.js';
|
|
73
|
+
import { DOCTOR_EXAMINED, DOCTOR_REPORT_SCHEMA } from './commands/doctor-schema.js';
|
|
74
|
+
import { INVENTORY_EXAMINED, INVENTORY_REPORT_SCHEMA } from './commands/inventory-schema.js';
|
|
75
|
+
import { MCP_LIST_COLLECTIONS_EXAMINED, MCP_LIST_COLLECTIONS_REPORT_SCHEMA } from './commands/mcp/list-collections-schema.js';
|
|
76
|
+
import { OKF_VALIDATE_REPORT_SCHEMA } from './commands/okf/validate-schema.js';
|
|
77
|
+
import { ORCHESTRATOR_EXAMINED, ORCHESTRATOR_REPORT_SCHEMA } from './commands/orchestrator-schema.js';
|
|
78
|
+
import { RAG_CLEAR_REPORT_SCHEMA, RAG_DATABASE_EXAMINED, RAG_STATS_REPORT_SCHEMA } from './commands/rag/admin-schema.js';
|
|
79
|
+
import { RAG_INDEX_EXAMINED, RAG_INDEX_REPORT_SCHEMA } from './commands/rag/index-schema.js';
|
|
80
|
+
import { RAG_QUERY_EXAMINED, RAG_QUERY_REPORT_SCHEMA } from './commands/rag/query-schema.js';
|
|
81
|
+
import { CHECK_REPORT_SCHEMA, RESOURCES_CHECK_EXAMINED } from './commands/resources/check-schema.js';
|
|
82
|
+
import { RESOURCES_QUERY_EXAMINED, RESOURCES_QUERY_REPORT_SCHEMA } from './commands/resources/query-schema.js';
|
|
83
|
+
import { RESOURCES_SCAN_EXAMINED, RESOURCES_SCAN_REPORT_SCHEMA } from './commands/resources/scan-schema.js';
|
|
84
|
+
import { RESOURCES_VALIDATE_EXAMINED, RESOURCES_VALIDATE_REPORT_SCHEMA } from './commands/resources/validate-schema.js';
|
|
85
|
+
import { SKILL_REVIEW_REPORT_SCHEMA } from './commands/skill/review-schema.js';
|
|
86
|
+
import { SKILL_TEST_CONFIGURE_EXAMINED, SKILL_TEST_CONFIGURE_REPORT_SCHEMA } from './commands/skill/test/configure-schema.js';
|
|
87
|
+
import { SKILL_TEST_RUN_EXAMINED, SKILL_TEST_RUN_REPORT_SCHEMA } from './commands/skill/test/run-schema.js';
|
|
88
|
+
import { SKILLS_BUILD_EXAMINED, SKILLS_BUILD_REPORT_SCHEMA } from './commands/skills/build-schema.js';
|
|
89
|
+
import { SKILLS_INSTALL_EXAMINED, SKILLS_INSTALL_REPORT_SCHEMA } from './commands/skills/install-schema.js';
|
|
90
|
+
import { SKILLS_LIST_EXAMINED, SKILLS_LIST_REPORT_SCHEMA } from './commands/skills/list-schema.js';
|
|
91
|
+
import { SKILLS_PACKAGE_EXAMINED, SKILLS_PACKAGE_REPORT_SCHEMA } from './commands/skills/package-schema.js';
|
|
92
|
+
import { SKILLS_VALIDATE_EXAMINED, SKILLS_VALIDATE_REPORT_SCHEMA } from './commands/skills/validate-schema.js';
|
|
93
|
+
/** Who puts an artifact's bytes out, named once. */
|
|
94
|
+
const DOCUMENT_WRITER = 'document-writer';
|
|
95
|
+
/** The verb publishing the corpus scan's file artifacts, named once. */
|
|
96
|
+
const CORPUS_SCAN = 'corpus scan';
|
|
97
|
+
/** The Admin API adapter: only a write that fully landed is `OK`; a partial or failed one is `ERROR`. */
|
|
98
|
+
const ADMIN_API_EXIT_CODES = { ok: ExitCode.OK, partial: ExitCode.ERROR, failed: ExitCode.ERROR };
|
|
99
|
+
/** `ard emit --format text`: the one summary line it has always printed; its findings go to stderr. */
|
|
100
|
+
function renderArdEmitText(report) {
|
|
101
|
+
const data = report.data;
|
|
102
|
+
if (data?.outputPath === undefined || data.outputPath === null)
|
|
103
|
+
return '';
|
|
104
|
+
return `Wrote ${data.entryCount} ARD entr${data.entryCount === 1 ? 'y' : 'ies'} to ${data.outputPath}\n`;
|
|
105
|
+
}
|
|
106
|
+
const REPORTS = [
|
|
34
107
|
{
|
|
35
|
-
kind: '
|
|
36
|
-
|
|
37
|
-
|
|
108
|
+
kind: 'report',
|
|
109
|
+
channel: 'stdout',
|
|
110
|
+
verbs: ['okf validate'],
|
|
111
|
+
name: 'okf-validate',
|
|
112
|
+
schema: OKF_VALIDATE_REPORT_SCHEMA,
|
|
113
|
+
examined: {
|
|
114
|
+
unit: 'bundle documents',
|
|
115
|
+
whenZero: 'Declare a bundle under okf.bundles in vibe-agent-toolkit.config.yaml, or check that each bundle root holds its markdown documents.',
|
|
116
|
+
},
|
|
38
117
|
},
|
|
39
118
|
{
|
|
40
|
-
kind: '
|
|
41
|
-
|
|
42
|
-
|
|
119
|
+
kind: 'report',
|
|
120
|
+
channel: 'stdout',
|
|
121
|
+
verbs: ['skill review'],
|
|
122
|
+
name: 'skill-review',
|
|
123
|
+
schema: SKILL_REVIEW_REPORT_SCHEMA,
|
|
124
|
+
examined: {
|
|
125
|
+
unit: 'skills',
|
|
126
|
+
whenZero: 'Point the command at a SKILL.md file or a directory containing one.',
|
|
127
|
+
},
|
|
128
|
+
// The human report goes to stderr; without --yaml stdout carries nothing.
|
|
129
|
+
renderText: () => '',
|
|
43
130
|
},
|
|
44
131
|
{
|
|
45
|
-
kind: '
|
|
46
|
-
|
|
47
|
-
|
|
132
|
+
kind: 'report',
|
|
133
|
+
channel: 'stdout',
|
|
134
|
+
verbs: ['resources check'],
|
|
135
|
+
name: 'resources-check',
|
|
136
|
+
schema: CHECK_REPORT_SCHEMA,
|
|
137
|
+
examined: RESOURCES_CHECK_EXAMINED,
|
|
48
138
|
},
|
|
49
139
|
{
|
|
50
|
-
kind: '
|
|
51
|
-
|
|
52
|
-
|
|
140
|
+
kind: 'report',
|
|
141
|
+
channel: 'stdout',
|
|
142
|
+
verbs: ['ard emit'],
|
|
143
|
+
name: 'ard-emit',
|
|
144
|
+
schema: ARD_EMIT_REPORT_SCHEMA,
|
|
145
|
+
examined: {
|
|
146
|
+
unit: 'configured surfaces',
|
|
147
|
+
whenZero: 'The ard: block declares no surface this project has — declare skills, marketplaces or OKF bundles to advertise, or do not run vat ard emit for this project.',
|
|
148
|
+
},
|
|
149
|
+
renderText: renderArdEmitText,
|
|
53
150
|
},
|
|
54
151
|
{
|
|
55
|
-
kind: '
|
|
56
|
-
|
|
57
|
-
|
|
152
|
+
kind: 'report',
|
|
153
|
+
channel: 'stdout',
|
|
154
|
+
verbs: ['audit'],
|
|
155
|
+
name: 'audit',
|
|
156
|
+
schema: AUDIT_REPORT_SCHEMA,
|
|
157
|
+
examined: AUDIT_EXAMINED,
|
|
58
158
|
},
|
|
59
159
|
{
|
|
60
|
-
kind: '
|
|
61
|
-
|
|
62
|
-
|
|
160
|
+
kind: 'report',
|
|
161
|
+
channel: 'stdout',
|
|
162
|
+
verbs: ['inventory'],
|
|
163
|
+
name: 'inventory',
|
|
164
|
+
schema: INVENTORY_REPORT_SCHEMA,
|
|
165
|
+
examined: INVENTORY_EXAMINED,
|
|
63
166
|
},
|
|
64
167
|
{
|
|
65
|
-
kind: '
|
|
66
|
-
|
|
67
|
-
|
|
168
|
+
kind: 'report',
|
|
169
|
+
channel: 'stdout',
|
|
170
|
+
verbs: ['audit settings'],
|
|
171
|
+
name: 'audit-settings',
|
|
172
|
+
schema: AUDIT_SETTINGS_REPORT_SCHEMA,
|
|
173
|
+
examined: AUDIT_SETTINGS_EXAMINED,
|
|
68
174
|
},
|
|
69
175
|
{
|
|
70
|
-
kind: '
|
|
71
|
-
|
|
72
|
-
|
|
176
|
+
kind: 'report',
|
|
177
|
+
channel: 'stdout',
|
|
178
|
+
verbs: ['resources validate'],
|
|
179
|
+
name: 'resources-validate',
|
|
180
|
+
schema: RESOURCES_VALIDATE_REPORT_SCHEMA,
|
|
181
|
+
examined: RESOURCES_VALIDATE_EXAMINED,
|
|
73
182
|
},
|
|
74
183
|
{
|
|
75
|
-
kind: '
|
|
76
|
-
|
|
77
|
-
|
|
184
|
+
kind: 'report',
|
|
185
|
+
channel: 'stdout',
|
|
186
|
+
verbs: ['resources scan'],
|
|
187
|
+
name: 'resources-scan',
|
|
188
|
+
schema: RESOURCES_SCAN_REPORT_SCHEMA,
|
|
189
|
+
examined: RESOURCES_SCAN_EXAMINED,
|
|
78
190
|
},
|
|
79
191
|
{
|
|
80
|
-
kind: '
|
|
81
|
-
|
|
82
|
-
|
|
192
|
+
kind: 'report',
|
|
193
|
+
channel: 'stdout',
|
|
194
|
+
verbs: ['resources query'],
|
|
195
|
+
name: 'resources-query',
|
|
196
|
+
schema: RESOURCES_QUERY_REPORT_SCHEMA,
|
|
197
|
+
examined: RESOURCES_QUERY_EXAMINED,
|
|
83
198
|
},
|
|
84
199
|
{
|
|
85
|
-
kind: '
|
|
86
|
-
|
|
87
|
-
|
|
200
|
+
kind: 'report',
|
|
201
|
+
channel: 'stdout',
|
|
202
|
+
verbs: ['skills validate'],
|
|
203
|
+
name: 'skills-validate',
|
|
204
|
+
schema: SKILLS_VALIDATE_REPORT_SCHEMA,
|
|
205
|
+
examined: SKILLS_VALIDATE_EXAMINED,
|
|
88
206
|
},
|
|
89
207
|
{
|
|
90
|
-
kind: '
|
|
91
|
-
|
|
92
|
-
|
|
208
|
+
kind: 'report',
|
|
209
|
+
channel: 'stdout',
|
|
210
|
+
verbs: ['skills build'],
|
|
211
|
+
name: 'skills-build',
|
|
212
|
+
schema: SKILLS_BUILD_REPORT_SCHEMA,
|
|
213
|
+
examined: SKILLS_BUILD_EXAMINED,
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
kind: 'report',
|
|
217
|
+
channel: 'stdout',
|
|
218
|
+
verbs: ['skills package'],
|
|
219
|
+
name: 'skills-package',
|
|
220
|
+
schema: SKILLS_PACKAGE_REPORT_SCHEMA,
|
|
221
|
+
examined: SKILLS_PACKAGE_EXAMINED,
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
kind: 'report',
|
|
225
|
+
channel: 'stdout',
|
|
226
|
+
verbs: ['skills list'],
|
|
227
|
+
name: 'skills-list',
|
|
228
|
+
schema: SKILLS_LIST_REPORT_SCHEMA,
|
|
229
|
+
examined: SKILLS_LIST_EXAMINED,
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
kind: 'report',
|
|
233
|
+
channel: 'stdout',
|
|
234
|
+
verbs: ['skills install'],
|
|
235
|
+
name: 'skills-install',
|
|
236
|
+
schema: SKILLS_INSTALL_REPORT_SCHEMA,
|
|
237
|
+
examined: SKILLS_INSTALL_EXAMINED,
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
kind: 'report',
|
|
241
|
+
channel: 'stdout',
|
|
242
|
+
verbs: ['skill test run'],
|
|
243
|
+
name: 'skill-test-run',
|
|
244
|
+
schema: SKILL_TEST_RUN_REPORT_SCHEMA,
|
|
245
|
+
examined: SKILL_TEST_RUN_EXAMINED,
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
kind: 'report',
|
|
249
|
+
channel: 'stdout',
|
|
250
|
+
verbs: ['skill test configure'],
|
|
251
|
+
name: 'skill-test-configure',
|
|
252
|
+
schema: SKILL_TEST_CONFIGURE_REPORT_SCHEMA,
|
|
253
|
+
examined: SKILL_TEST_CONFIGURE_EXAMINED,
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
kind: 'report',
|
|
257
|
+
channel: 'stdout',
|
|
258
|
+
verbs: ['doctor'],
|
|
259
|
+
name: 'doctor',
|
|
260
|
+
schema: DOCTOR_REPORT_SCHEMA,
|
|
261
|
+
examined: DOCTOR_EXAMINED,
|
|
262
|
+
// The human check block, every check listed; under yaml/json it goes to stderr instead.
|
|
263
|
+
renderText: renderDoctorText,
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
kind: 'report',
|
|
267
|
+
channel: 'stdout',
|
|
268
|
+
verbs: ['cache clear'],
|
|
269
|
+
name: 'cache-clear',
|
|
270
|
+
schema: CACHE_CLEAR_REPORT_SCHEMA,
|
|
271
|
+
examined: CACHE_CLEAR_EXAMINED,
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
kind: 'report',
|
|
275
|
+
channel: 'stdout',
|
|
276
|
+
verbs: ['rag index'],
|
|
277
|
+
name: 'rag-index',
|
|
278
|
+
schema: RAG_INDEX_REPORT_SCHEMA,
|
|
279
|
+
examined: RAG_INDEX_EXAMINED,
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
kind: 'report',
|
|
283
|
+
channel: 'stdout',
|
|
284
|
+
verbs: ['rag query'],
|
|
285
|
+
name: 'rag-query',
|
|
286
|
+
schema: RAG_QUERY_REPORT_SCHEMA,
|
|
287
|
+
examined: RAG_QUERY_EXAMINED,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
kind: 'report',
|
|
291
|
+
channel: 'stdout',
|
|
292
|
+
verbs: ['rag stats'],
|
|
293
|
+
name: 'rag-stats',
|
|
294
|
+
schema: RAG_STATS_REPORT_SCHEMA,
|
|
295
|
+
examined: RAG_DATABASE_EXAMINED,
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
kind: 'report',
|
|
299
|
+
channel: 'stdout',
|
|
300
|
+
verbs: ['rag clear'],
|
|
301
|
+
name: 'rag-clear',
|
|
302
|
+
schema: RAG_CLEAR_REPORT_SCHEMA,
|
|
303
|
+
examined: RAG_DATABASE_EXAMINED,
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
kind: 'report',
|
|
307
|
+
channel: 'stdout',
|
|
308
|
+
verbs: ['mcp list-collections'],
|
|
309
|
+
name: 'mcp-list-collections',
|
|
310
|
+
schema: MCP_LIST_COLLECTIONS_REPORT_SCHEMA,
|
|
311
|
+
examined: MCP_LIST_COLLECTIONS_EXAMINED,
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
kind: 'report',
|
|
315
|
+
channel: 'stdout',
|
|
316
|
+
verbs: [CORPUS_SCAN],
|
|
317
|
+
name: 'corpus-scan',
|
|
318
|
+
schema: CORPUS_SCAN_REPORT_SCHEMA,
|
|
319
|
+
examined: CORPUS_SCAN_EXAMINED,
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
kind: 'report',
|
|
323
|
+
channel: 'stdout',
|
|
324
|
+
verbs: ['claude marketplace validate'],
|
|
325
|
+
name: 'claude-marketplace-validate',
|
|
326
|
+
schema: MARKETPLACE_VALIDATE_REPORT_SCHEMA,
|
|
327
|
+
examined: MARKETPLACE_VALIDATE_EXAMINED,
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
kind: 'report',
|
|
331
|
+
channel: 'stdout',
|
|
332
|
+
verbs: ['agent validate'],
|
|
333
|
+
name: 'agent-validate',
|
|
334
|
+
schema: AGENT_VALIDATE_REPORT_SCHEMA,
|
|
335
|
+
examined: AGENT_VALIDATE_EXAMINED,
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
kind: 'report',
|
|
339
|
+
channel: 'stdout',
|
|
340
|
+
verbs: ['agent build'],
|
|
341
|
+
name: 'agent-build',
|
|
342
|
+
schema: AGENT_BUILD_REPORT_SCHEMA,
|
|
343
|
+
examined: AGENT_BUILD_EXAMINED,
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
kind: 'report',
|
|
347
|
+
channel: 'stdout',
|
|
348
|
+
verbs: ['agent import'],
|
|
349
|
+
name: 'agent-import',
|
|
350
|
+
schema: AGENT_IMPORT_REPORT_SCHEMA,
|
|
351
|
+
examined: AGENT_IMPORT_EXAMINED,
|
|
93
352
|
},
|
|
353
|
+
{
|
|
354
|
+
kind: 'report',
|
|
355
|
+
channel: 'stdout',
|
|
356
|
+
verbs: ['agent installed'],
|
|
357
|
+
name: 'agent-installed',
|
|
358
|
+
schema: AGENT_INSTALLED_REPORT_SCHEMA,
|
|
359
|
+
examined: AGENT_INSTALLED_EXAMINED,
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
kind: 'report',
|
|
363
|
+
channel: 'stdout',
|
|
364
|
+
verbs: ['agent list'],
|
|
365
|
+
name: 'agent-list',
|
|
366
|
+
schema: AGENT_LIST_REPORT_SCHEMA,
|
|
367
|
+
examined: AGENT_LIST_EXAMINED,
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
kind: 'report',
|
|
371
|
+
channel: 'stdout',
|
|
372
|
+
verbs: ['agent install'],
|
|
373
|
+
name: 'agent-install',
|
|
374
|
+
schema: AGENT_INSTALL_REPORT_SCHEMA,
|
|
375
|
+
examined: AGENT_INSTALL_EXAMINED,
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
kind: 'report',
|
|
379
|
+
channel: 'stdout',
|
|
380
|
+
verbs: ['agent uninstall'],
|
|
381
|
+
name: 'agent-uninstall',
|
|
382
|
+
schema: AGENT_UNINSTALL_REPORT_SCHEMA,
|
|
383
|
+
examined: AGENT_UNINSTALL_EXAMINED,
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
kind: 'report',
|
|
387
|
+
channel: 'stdout',
|
|
388
|
+
verbs: ['claude plugin list'],
|
|
389
|
+
name: 'claude-plugin-list',
|
|
390
|
+
schema: PLUGIN_LIST_REPORT_SCHEMA,
|
|
391
|
+
examined: PLUGIN_LIST_EXAMINED,
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
kind: 'report',
|
|
395
|
+
channel: 'stdout',
|
|
396
|
+
verbs: ['claude plugin install'],
|
|
397
|
+
name: 'claude-plugin-install',
|
|
398
|
+
schema: PLUGIN_INSTALL_REPORT_SCHEMA,
|
|
399
|
+
examined: PLUGIN_INSTALL_EXAMINED,
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
kind: 'report',
|
|
403
|
+
channel: 'stdout',
|
|
404
|
+
verbs: ['claude plugin uninstall'],
|
|
405
|
+
name: 'claude-plugin-uninstall',
|
|
406
|
+
schema: PLUGIN_UNINSTALL_REPORT_SCHEMA,
|
|
407
|
+
examined: PLUGIN_UNINSTALL_EXAMINED,
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
kind: 'report',
|
|
411
|
+
channel: 'stdout',
|
|
412
|
+
verbs: ['claude plugin build'],
|
|
413
|
+
name: 'claude-plugin-build',
|
|
414
|
+
schema: PLUGIN_BUILD_REPORT_SCHEMA,
|
|
415
|
+
examined: PLUGIN_BUILD_EXAMINED,
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
kind: 'report',
|
|
419
|
+
channel: 'stdout',
|
|
420
|
+
verbs: ['claude marketplace publish'],
|
|
421
|
+
name: 'claude-marketplace-publish',
|
|
422
|
+
schema: MARKETPLACE_PUBLISH_REPORT_SCHEMA,
|
|
423
|
+
examined: MARKETPLACE_PUBLISH_EXAMINED,
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
kind: 'report',
|
|
427
|
+
channel: 'stdout',
|
|
428
|
+
// The not-implemented stubs: each only ever publishes the error branch (NOT_IMPLEMENTED).
|
|
429
|
+
verbs: [
|
|
430
|
+
'claude org api-keys update',
|
|
431
|
+
'claude org invites create',
|
|
432
|
+
'claude org invites delete',
|
|
433
|
+
'claude org users update',
|
|
434
|
+
'claude org users remove',
|
|
435
|
+
'claude org workspaces create',
|
|
436
|
+
'claude org workspaces archive',
|
|
437
|
+
'claude org workspaces members add',
|
|
438
|
+
'claude org workspaces members update',
|
|
439
|
+
'claude org workspaces members remove',
|
|
440
|
+
],
|
|
441
|
+
name: 'claude-org-not-implemented',
|
|
442
|
+
schema: ORG_NOT_IMPLEMENTED_REPORT_SCHEMA,
|
|
443
|
+
examined: ORG_NOT_IMPLEMENTED_EXAMINED,
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
kind: 'report',
|
|
447
|
+
channel: 'stdout',
|
|
448
|
+
// ONE shape for the three: each folds its phases' reports the same way.
|
|
449
|
+
verbs: ['build', 'validate', 'verify'],
|
|
450
|
+
name: 'orchestrator',
|
|
451
|
+
schema: ORCHESTRATOR_REPORT_SCHEMA,
|
|
452
|
+
examined: ORCHESTRATOR_EXAMINED,
|
|
453
|
+
},
|
|
454
|
+
];
|
|
455
|
+
const CLAUDE_ORG_EXTERNAL = {
|
|
456
|
+
kind: 'external',
|
|
457
|
+
channel: 'stdout',
|
|
458
|
+
verbs: [
|
|
459
|
+
'claude org info',
|
|
460
|
+
'claude org users list',
|
|
461
|
+
'claude org users get',
|
|
462
|
+
'claude org invites list',
|
|
463
|
+
'claude org workspaces list',
|
|
464
|
+
'claude org workspaces get',
|
|
465
|
+
'claude org workspaces members list',
|
|
466
|
+
'claude org api-keys list',
|
|
467
|
+
'claude org usage',
|
|
468
|
+
'claude org cost',
|
|
469
|
+
'claude org code-analytics',
|
|
470
|
+
'claude org skills list',
|
|
471
|
+
'claude org skills install',
|
|
472
|
+
'claude org skills delete',
|
|
473
|
+
'claude org skills versions list',
|
|
474
|
+
'claude org skills versions add',
|
|
475
|
+
'claude org skills versions delete',
|
|
476
|
+
],
|
|
477
|
+
reason: 'Anthropic Admin API objects passed through as the API returns them (`has_more`, `data[]`, snake_case). Renaming them would make VAT a second schema for a document Anthropic owns. A run that threw publishes `{ error: { code, message } }` instead (endWithExternalRefusal).',
|
|
478
|
+
exitCodes: ADMIN_API_EXIT_CODES,
|
|
479
|
+
};
|
|
480
|
+
const EXTERNALS = [CLAUDE_ORG_EXTERNAL];
|
|
481
|
+
const LEGACY = [
|
|
94
482
|
{
|
|
95
483
|
kind: 'legacy',
|
|
96
|
-
|
|
97
|
-
|
|
484
|
+
channel: 'stdout',
|
|
485
|
+
verbs: ['claude context'],
|
|
486
|
+
reason: 'The one legacy document through wave A, published through writeLegacyDocument; wave C replaces the verb.',
|
|
98
487
|
},
|
|
99
488
|
];
|
|
489
|
+
/** Relations VAT publishes to adopter SQL that no projection table materialises (the per-lens derived rows). */
|
|
490
|
+
const DERIVED_RELATION_SCHEMAS = [
|
|
491
|
+
['projection-edges', EdgeRowSchema],
|
|
492
|
+
['projection-edge-resolutions', EdgeResolutionRowSchema],
|
|
493
|
+
['projection-lens-entry-points', LensEntryPointRowSchema],
|
|
494
|
+
['projection-claude-context-chains', ClaudeContextChainRowSchema],
|
|
495
|
+
['projection-claude-context-loads', ClaudeContextLoadRowSchema],
|
|
496
|
+
];
|
|
497
|
+
/** Every relation `vat resources query` / `check` expose to an adopter's SQL, as a file artifact. */
|
|
498
|
+
const PROJECTION_RELATIONS = [
|
|
499
|
+
...Object.values(PROJECTION_TABLES).map((spec) => [`projection-${spec.name.replaceAll('_', '-')}`, spec.schema]),
|
|
500
|
+
...DERIVED_RELATION_SCHEMAS,
|
|
501
|
+
].map(([name, schema]) => ({
|
|
502
|
+
kind: 'artifact',
|
|
503
|
+
channel: 'file',
|
|
504
|
+
name,
|
|
505
|
+
publishers: ['resources query', 'resources check'],
|
|
506
|
+
schema,
|
|
507
|
+
schemaFile: `packages/resources/schemas/${name}.json`,
|
|
508
|
+
writer: 'projection-store',
|
|
509
|
+
reason: 'A relation VAT publishes to adopter SQL; its row shape is what a check or query statement reads.',
|
|
510
|
+
}));
|
|
511
|
+
const ARTIFACTS = [
|
|
512
|
+
{
|
|
513
|
+
kind: 'artifact',
|
|
514
|
+
channel: 'stdout',
|
|
515
|
+
name: 'claude-desktop-config',
|
|
516
|
+
publishers: ['mcp serve'],
|
|
517
|
+
schema: null,
|
|
518
|
+
schemaFile: null,
|
|
519
|
+
writer: DOCUMENT_WRITER,
|
|
520
|
+
reason: '`mcp serve --print-config`: the Claude Desktop config snippet an operator pastes; its shape is the MCP client config.',
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
kind: 'artifact',
|
|
524
|
+
channel: 'stdout',
|
|
525
|
+
name: 'skill-test-config',
|
|
526
|
+
publishers: ['skill test configure'],
|
|
527
|
+
schema: null,
|
|
528
|
+
schemaFile: null,
|
|
529
|
+
writer: DOCUMENT_WRITER,
|
|
530
|
+
reason: '`skill test configure --print`: the updated vibe-agent-toolkit.config.yaml text, verbatim, for redirecting over the file; its shape is the project config.',
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
kind: 'artifact',
|
|
534
|
+
channel: 'file',
|
|
535
|
+
name: 'friction-report',
|
|
536
|
+
publishers: ['skill test run'],
|
|
537
|
+
schema: FrictionReportSchema,
|
|
538
|
+
schemaFile: 'packages/agent-skills/schemas/friction-report.json',
|
|
539
|
+
writer: 'skill-test-harness',
|
|
540
|
+
reason: 'The graded friction report a skill test run writes into its results/ directory (`data.artifacts.frictionReport`), validated against its schema before the run reports.',
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
kind: 'artifact',
|
|
544
|
+
channel: 'file',
|
|
545
|
+
name: 'corpus-summary',
|
|
546
|
+
publishers: [CORPUS_SCAN],
|
|
547
|
+
schema: null,
|
|
548
|
+
schemaFile: null,
|
|
549
|
+
writer: DOCUMENT_WRITER,
|
|
550
|
+
reason: 'corpus scan `summary.yaml`: the per-plugin index of one scan run.',
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
kind: 'artifact',
|
|
554
|
+
channel: 'file',
|
|
555
|
+
name: 'corpus-audit',
|
|
556
|
+
publishers: [CORPUS_SCAN],
|
|
557
|
+
schema: AUDIT_REPORT_SCHEMA,
|
|
558
|
+
schemaFile: 'packages/cli/schemas/corpus-audit.json',
|
|
559
|
+
writer: DOCUMENT_WRITER,
|
|
560
|
+
reason: 'corpus scan `<name>-audit.yaml`: the `vat audit` report for one plugin, the same envelope and schema the verb publishes.',
|
|
561
|
+
},
|
|
562
|
+
...PROJECTION_RELATIONS,
|
|
563
|
+
];
|
|
564
|
+
/** A library result type an adopter's code receives. */
|
|
565
|
+
function exported(pkg, typeNames, reason) {
|
|
566
|
+
return typeNames.map((typeName) => ({ kind: 'artifact', channel: 'export', package: `@vibe-agent-toolkit/${pkg}`, typeName, reason }));
|
|
567
|
+
}
|
|
568
|
+
const AGENT_SKILLS = 'agent-skills';
|
|
569
|
+
const SCHEMA_PACKAGE = 'schema';
|
|
570
|
+
const LIBRARY_RESULT = 'A result type the package barrel exports; its shape is the library API contract.';
|
|
571
|
+
const EXPORTS = [
|
|
572
|
+
...exported('agent-config', ['ValidationResult'], LIBRARY_RESULT),
|
|
573
|
+
...exported('agent-runtime', ['AgentResult', 'StatefulAgentResult'], 'The agent result envelope every runtime adapter returns.'),
|
|
574
|
+
...exported(AGENT_SKILLS, [
|
|
575
|
+
'BuildResult', 'FrontmatterResult', 'GitCloneResult', 'ImportResult', 'LinkGraphResult',
|
|
576
|
+
'PackageSkillResult', 'PackagingValidationResult', 'ValidationResult',
|
|
577
|
+
'PreflightResult', 'RunHarnessResult', 'StageHarnessResult',
|
|
578
|
+
], LIBRARY_RESULT),
|
|
579
|
+
...exported(AGENT_SKILLS, ['FrictionReport', 'GradingReport', 'ToolEvalReport'], 'A skill-test report the harness writes and a caller reads back.'),
|
|
580
|
+
...exported('claude-marketplace', [
|
|
581
|
+
'CompatibilityResult', 'MultipartResult', 'PluginListResult', 'SettingsAuditResult',
|
|
582
|
+
'SettingsPathCandidatesResult', 'SettingsPathsResult', 'SettingsValidateResult', 'UninstallPluginResult',
|
|
583
|
+
], LIBRARY_RESULT),
|
|
584
|
+
...exported('discovery', ['ScanResult'], LIBRARY_RESULT),
|
|
585
|
+
...exported('gateway-mcp', ['MCPToolResult'], 'The MCP tool result the gateway returns to a client.'),
|
|
586
|
+
...exported('rag', ['ChunkingResult', 'DocumentResult', 'IndexResult', 'RAGResult'], LIBRARY_RESULT),
|
|
587
|
+
...exported('resource-compiler', ['CompileResult', 'ParseResult'], LIBRARY_RESULT),
|
|
588
|
+
...exported('resources', [
|
|
589
|
+
'BlobPopulationResult', 'ContentFetchResult', 'OkfBundleReport',
|
|
590
|
+
'ParseResult', 'PopulateResult', 'ProjectionDocument', 'ResolveLocalHrefResult', 'ValidationResult',
|
|
591
|
+
], LIBRARY_RESULT),
|
|
592
|
+
...exported('runtime-claude-agent-sdk', ['AgentConversionResult', 'BatchConversionResult'], LIBRARY_RESULT),
|
|
593
|
+
...exported('runtime-langchain', ['ConversationalResult'], LIBRARY_RESULT),
|
|
594
|
+
...exported('runtime-vercel-ai-sdk', ['ConversionResult'], LIBRARY_RESULT),
|
|
595
|
+
...exported('utils', ['ApplyResult'], 'What `applyTreePlan` returns: the warnings of a tree change that is done.'),
|
|
596
|
+
...exported(SCHEMA_PACKAGE, ['Report', 'OkReport', 'FindingsReport', 'ErrorReport'], 'The union report envelope every report verb publishes; its JSON Schemas are the `report` entries above.'),
|
|
597
|
+
...exported(SCHEMA_PACKAGE, ['ExitDeterminingDocument'], 'The envelope fields an exit code derives from.'),
|
|
598
|
+
...exported(SCHEMA_PACKAGE, ['AgentResult', 'StatefulAgentResult', 'FrameworkResult'], 'The agent result envelope every runtime adapter returns.'),
|
|
599
|
+
...exported(SCHEMA_PACKAGE, ['AllowFilterResult'], LIBRARY_RESULT),
|
|
600
|
+
...exported('vat-example-cat-agents', [
|
|
601
|
+
'ApprovalResult', 'ChoiceResult', 'CustomApprovalResult', 'HaikuValidationResult', 'NameValidationResult',
|
|
602
|
+
], 'An example agent\'s result type, published as part of the example package.'),
|
|
603
|
+
];
|
|
604
|
+
/** An adopter-written shape's committed JSON Schema. */
|
|
605
|
+
function inputs(pkg, names, reason) {
|
|
606
|
+
return names.map((name) => ({ kind: 'input', channel: 'schema-file', file: `packages/${pkg}/schemas/${name}.json`, reason }));
|
|
607
|
+
}
|
|
608
|
+
const INPUTS = [
|
|
609
|
+
...inputs('agent-skills', ['skill-frontmatter', 'vat-skill-frontmatter', 'marketplace-manifest'], 'The SKILL.md frontmatter or marketplace.json an author writes.'),
|
|
610
|
+
...inputs('resources', ['project-config'], 'vibe-agent-toolkit.config.yaml, the adopter\'s project config.'),
|
|
611
|
+
...inputs('resources', ['okf-concept-frontmatter'], 'The OKF concept-document frontmatter a bundle author writes.'),
|
|
612
|
+
...inputs('schema', ['agent-manifest', 'agent-metadata', 'agent-interface', 'llm-config', 'tool', 'resource-registry'], 'A part of the agent.yaml manifest an agent author writes.'),
|
|
613
|
+
...inputs('schema', ['vat-package-metadata'], 'The `vat` block an adopter writes in package.json.'),
|
|
614
|
+
...inputs('schema', ['validation-config'], 'The `validation` block (`severity` / `allow`) an adopter writes.'),
|
|
615
|
+
];
|
|
616
|
+
/** Every shape VAT publishes. See the module docstring for the kinds and the both-ways test. */
|
|
617
|
+
export const PUBLISHED_SHAPES = [
|
|
618
|
+
...REPORTS,
|
|
619
|
+
...EXTERNALS,
|
|
620
|
+
...ARTIFACTS,
|
|
621
|
+
...EXPORTS,
|
|
622
|
+
...INPUTS,
|
|
623
|
+
...LEGACY,
|
|
624
|
+
];
|
|
625
|
+
/**
|
|
626
|
+
* The registry entry a report verb publishes through.
|
|
627
|
+
*
|
|
628
|
+
* @throws When `verb` has no report entry — a defect in the caller, never a user mistake
|
|
629
|
+
*/
|
|
630
|
+
export function reportShapeFor(verb) {
|
|
631
|
+
const entry = REPORTS.find((shape) => shape.verbs.includes(verb));
|
|
632
|
+
if (entry === undefined)
|
|
633
|
+
throw new Error(`No report entry in PUBLISHED_SHAPES for verb '${verb}'`);
|
|
634
|
+
return entry;
|
|
635
|
+
}
|
|
636
|
+
/**
|
|
637
|
+
* The published artifact named `name` on `channel`.
|
|
638
|
+
*
|
|
639
|
+
* @throws When no such artifact is registered
|
|
640
|
+
*/
|
|
641
|
+
export function artifactShapeFor(name, channel) {
|
|
642
|
+
const entry = ARTIFACTS.find((shape) => shape.name === name && shape.channel === channel);
|
|
643
|
+
if (entry === undefined)
|
|
644
|
+
throw new Error(`No ${channel} artifact in PUBLISHED_SHAPES named '${name}'`);
|
|
645
|
+
return entry;
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* The exit code an external verb's outcome maps to — the adapter its entry declares.
|
|
649
|
+
*
|
|
650
|
+
* @throws When `verb` has no external entry
|
|
651
|
+
*/
|
|
652
|
+
export function exitCodeForExternal(verb, outcome) {
|
|
653
|
+
const entry = EXTERNALS.find((shape) => shape.verbs.includes(verb));
|
|
654
|
+
if (entry === undefined)
|
|
655
|
+
throw new Error(`No external entry in PUBLISHED_SHAPES for verb '${verb}'`);
|
|
656
|
+
return entry.exitCodes[outcome.kind];
|
|
657
|
+
}
|
|
100
658
|
//# sourceMappingURL=report-schemas.js.map
|