@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,362 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat claude marketplace validate` publishes, apart from the
|
|
3
|
+
* command.
|
|
4
|
+
*
|
|
5
|
+
* A sibling module because the published-shape registry imports it and the
|
|
6
|
+
* command imports the writer that imports the registry: a schema declared in
|
|
7
|
+
* the command module itself would be an import cycle, read before it is
|
|
8
|
+
* initialised.
|
|
9
|
+
*
|
|
10
|
+
* 🔑 **One base, one meaning of `summary`.** `data.root` is the marketplace
|
|
11
|
+
* directory, stated once; every finding's `location`, every plugin `path`, and
|
|
12
|
+
* every `undeclared` / `refused` entry is relative to it. `summary` — on the
|
|
13
|
+
* envelope and on a plugin row — always counts FINDINGS by severity. Every
|
|
14
|
+
* finding is on the envelope, flat; a plugin row is a tally of the findings
|
|
15
|
+
* its own validator published, never a second list.
|
|
16
|
+
*/
|
|
17
|
+
import { type Report } from '@vibe-agent-toolkit/schema';
|
|
18
|
+
import { z } from 'zod';
|
|
19
|
+
import type { ExaminedDeclaration } from '../../../utils/run-integrity.js';
|
|
20
|
+
/** What `examined` counts for `vat claude marketplace validate`, and the remedy when it is zero. */
|
|
21
|
+
export declare const MARKETPLACE_VALIDATE_EXAMINED: ExaminedDeclaration;
|
|
22
|
+
declare const MarketplaceValidateDataSchema: z.ZodObject<{
|
|
23
|
+
/** The marketplace directory — the ONE base every `location` and path below is relative to. */
|
|
24
|
+
root: z.ZodString;
|
|
25
|
+
/** The manifest's facts; `null` when it is missing or does not validate. */
|
|
26
|
+
marketplace: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
name: z.ZodOptional<z.ZodString>;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
version: z.ZodOptional<z.ZodString>;
|
|
30
|
+
/** Every entry the manifest's `plugins` list declares, remote and local. */
|
|
31
|
+
pluginEntries: z.ZodOptional<z.ZodNumber>;
|
|
32
|
+
/** The entries whose `source` is a relative path — plugins this marketplace ships itself. */
|
|
33
|
+
localPluginSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
+
name: z.ZodString;
|
|
35
|
+
source: z.ZodString;
|
|
36
|
+
}, "strict", z.ZodTypeAny, {
|
|
37
|
+
source: string;
|
|
38
|
+
name: string;
|
|
39
|
+
}, {
|
|
40
|
+
source: string;
|
|
41
|
+
name: string;
|
|
42
|
+
}>, "many">>;
|
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
version?: string | undefined;
|
|
46
|
+
description?: string | undefined;
|
|
47
|
+
pluginEntries?: number | undefined;
|
|
48
|
+
localPluginSources?: {
|
|
49
|
+
source: string;
|
|
50
|
+
name: string;
|
|
51
|
+
}[] | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
name?: string | undefined;
|
|
54
|
+
version?: string | undefined;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
pluginEntries?: number | undefined;
|
|
57
|
+
localPluginSources?: {
|
|
58
|
+
source: string;
|
|
59
|
+
name: string;
|
|
60
|
+
}[] | undefined;
|
|
61
|
+
}>>;
|
|
62
|
+
/** One row per declared local plugin the run walked. */
|
|
63
|
+
plugins: z.ZodArray<z.ZodObject<{
|
|
64
|
+
/** The manifest entry's `name`. */
|
|
65
|
+
name: z.ZodString;
|
|
66
|
+
/** The manifest entry's `source`, as the manifest wrote it. */
|
|
67
|
+
source: z.ZodString;
|
|
68
|
+
/** The directory the source resolved to, relative to `data.root`. */
|
|
69
|
+
path: z.ZodString;
|
|
70
|
+
/**
|
|
71
|
+
* `false` when the plugin's `plugin.json` resolves outside the root and was
|
|
72
|
+
* never opened — its row then counts nothing, and the run carries the
|
|
73
|
+
* `RESOURCE_CHECK_BROKEN` finding naming it.
|
|
74
|
+
*/
|
|
75
|
+
manifestRead: z.ZodBoolean;
|
|
76
|
+
status: z.ZodEnum<["ok", "findings"]>;
|
|
77
|
+
/** The findings the plugin's own validator published, by severity. */
|
|
78
|
+
summary: z.ZodObject<{
|
|
79
|
+
errors: z.ZodNumber;
|
|
80
|
+
warnings: z.ZodNumber;
|
|
81
|
+
info: z.ZodNumber;
|
|
82
|
+
}, "strict", z.ZodTypeAny, {
|
|
83
|
+
info: number;
|
|
84
|
+
errors: number;
|
|
85
|
+
warnings: number;
|
|
86
|
+
}, {
|
|
87
|
+
info: number;
|
|
88
|
+
errors: number;
|
|
89
|
+
warnings: number;
|
|
90
|
+
}>;
|
|
91
|
+
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
source: string;
|
|
93
|
+
name: string;
|
|
94
|
+
path: string;
|
|
95
|
+
status: "ok" | "findings";
|
|
96
|
+
summary: {
|
|
97
|
+
info: number;
|
|
98
|
+
errors: number;
|
|
99
|
+
warnings: number;
|
|
100
|
+
};
|
|
101
|
+
manifestRead: boolean;
|
|
102
|
+
}, {
|
|
103
|
+
source: string;
|
|
104
|
+
name: string;
|
|
105
|
+
path: string;
|
|
106
|
+
status: "ok" | "findings";
|
|
107
|
+
summary: {
|
|
108
|
+
info: number;
|
|
109
|
+
errors: number;
|
|
110
|
+
warnings: number;
|
|
111
|
+
};
|
|
112
|
+
manifestRead: boolean;
|
|
113
|
+
}>, "many">;
|
|
114
|
+
/** Directories under `plugins/` no manifest entry names — listed, never graded. */
|
|
115
|
+
undeclared: z.ZodArray<z.ZodString, "many">;
|
|
116
|
+
/** Paths inside a walked plugin the run would not open: each resolves outside the root. */
|
|
117
|
+
refused: z.ZodArray<z.ZodString, "many">;
|
|
118
|
+
}, "strict", z.ZodTypeAny, {
|
|
119
|
+
refused: string[];
|
|
120
|
+
root: string;
|
|
121
|
+
marketplace: {
|
|
122
|
+
name?: string | undefined;
|
|
123
|
+
version?: string | undefined;
|
|
124
|
+
description?: string | undefined;
|
|
125
|
+
pluginEntries?: number | undefined;
|
|
126
|
+
localPluginSources?: {
|
|
127
|
+
source: string;
|
|
128
|
+
name: string;
|
|
129
|
+
}[] | undefined;
|
|
130
|
+
} | null;
|
|
131
|
+
plugins: {
|
|
132
|
+
source: string;
|
|
133
|
+
name: string;
|
|
134
|
+
path: string;
|
|
135
|
+
status: "ok" | "findings";
|
|
136
|
+
summary: {
|
|
137
|
+
info: number;
|
|
138
|
+
errors: number;
|
|
139
|
+
warnings: number;
|
|
140
|
+
};
|
|
141
|
+
manifestRead: boolean;
|
|
142
|
+
}[];
|
|
143
|
+
undeclared: string[];
|
|
144
|
+
}, {
|
|
145
|
+
refused: string[];
|
|
146
|
+
root: string;
|
|
147
|
+
marketplace: {
|
|
148
|
+
name?: string | undefined;
|
|
149
|
+
version?: string | undefined;
|
|
150
|
+
description?: string | undefined;
|
|
151
|
+
pluginEntries?: number | undefined;
|
|
152
|
+
localPluginSources?: {
|
|
153
|
+
source: string;
|
|
154
|
+
name: string;
|
|
155
|
+
}[] | undefined;
|
|
156
|
+
} | null;
|
|
157
|
+
plugins: {
|
|
158
|
+
source: string;
|
|
159
|
+
name: string;
|
|
160
|
+
path: string;
|
|
161
|
+
status: "ok" | "findings";
|
|
162
|
+
summary: {
|
|
163
|
+
info: number;
|
|
164
|
+
errors: number;
|
|
165
|
+
warnings: number;
|
|
166
|
+
};
|
|
167
|
+
manifestRead: boolean;
|
|
168
|
+
}[];
|
|
169
|
+
undeclared: string[];
|
|
170
|
+
}>;
|
|
171
|
+
export type MarketplaceValidateData = z.infer<typeof MarketplaceValidateDataSchema>;
|
|
172
|
+
/** The document this command publishes. */
|
|
173
|
+
export declare const MARKETPLACE_VALIDATE_REPORT_SCHEMA: import("@vibe-agent-toolkit/schema").ReportZodSchema<z.ZodObject<{
|
|
174
|
+
/** The marketplace directory — the ONE base every `location` and path below is relative to. */
|
|
175
|
+
root: z.ZodString;
|
|
176
|
+
/** The manifest's facts; `null` when it is missing or does not validate. */
|
|
177
|
+
marketplace: z.ZodNullable<z.ZodObject<{
|
|
178
|
+
name: z.ZodOptional<z.ZodString>;
|
|
179
|
+
description: z.ZodOptional<z.ZodString>;
|
|
180
|
+
version: z.ZodOptional<z.ZodString>;
|
|
181
|
+
/** Every entry the manifest's `plugins` list declares, remote and local. */
|
|
182
|
+
pluginEntries: z.ZodOptional<z.ZodNumber>;
|
|
183
|
+
/** The entries whose `source` is a relative path — plugins this marketplace ships itself. */
|
|
184
|
+
localPluginSources: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
185
|
+
name: z.ZodString;
|
|
186
|
+
source: z.ZodString;
|
|
187
|
+
}, "strict", z.ZodTypeAny, {
|
|
188
|
+
source: string;
|
|
189
|
+
name: string;
|
|
190
|
+
}, {
|
|
191
|
+
source: string;
|
|
192
|
+
name: string;
|
|
193
|
+
}>, "many">>;
|
|
194
|
+
}, "strict", z.ZodTypeAny, {
|
|
195
|
+
name?: string | undefined;
|
|
196
|
+
version?: string | undefined;
|
|
197
|
+
description?: string | undefined;
|
|
198
|
+
pluginEntries?: number | undefined;
|
|
199
|
+
localPluginSources?: {
|
|
200
|
+
source: string;
|
|
201
|
+
name: string;
|
|
202
|
+
}[] | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
name?: string | undefined;
|
|
205
|
+
version?: string | undefined;
|
|
206
|
+
description?: string | undefined;
|
|
207
|
+
pluginEntries?: number | undefined;
|
|
208
|
+
localPluginSources?: {
|
|
209
|
+
source: string;
|
|
210
|
+
name: string;
|
|
211
|
+
}[] | undefined;
|
|
212
|
+
}>>;
|
|
213
|
+
/** One row per declared local plugin the run walked. */
|
|
214
|
+
plugins: z.ZodArray<z.ZodObject<{
|
|
215
|
+
/** The manifest entry's `name`. */
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
/** The manifest entry's `source`, as the manifest wrote it. */
|
|
218
|
+
source: z.ZodString;
|
|
219
|
+
/** The directory the source resolved to, relative to `data.root`. */
|
|
220
|
+
path: z.ZodString;
|
|
221
|
+
/**
|
|
222
|
+
* `false` when the plugin's `plugin.json` resolves outside the root and was
|
|
223
|
+
* never opened — its row then counts nothing, and the run carries the
|
|
224
|
+
* `RESOURCE_CHECK_BROKEN` finding naming it.
|
|
225
|
+
*/
|
|
226
|
+
manifestRead: z.ZodBoolean;
|
|
227
|
+
status: z.ZodEnum<["ok", "findings"]>;
|
|
228
|
+
/** The findings the plugin's own validator published, by severity. */
|
|
229
|
+
summary: z.ZodObject<{
|
|
230
|
+
errors: z.ZodNumber;
|
|
231
|
+
warnings: z.ZodNumber;
|
|
232
|
+
info: z.ZodNumber;
|
|
233
|
+
}, "strict", z.ZodTypeAny, {
|
|
234
|
+
info: number;
|
|
235
|
+
errors: number;
|
|
236
|
+
warnings: number;
|
|
237
|
+
}, {
|
|
238
|
+
info: number;
|
|
239
|
+
errors: number;
|
|
240
|
+
warnings: number;
|
|
241
|
+
}>;
|
|
242
|
+
}, "strict", z.ZodTypeAny, {
|
|
243
|
+
source: string;
|
|
244
|
+
name: string;
|
|
245
|
+
path: string;
|
|
246
|
+
status: "ok" | "findings";
|
|
247
|
+
summary: {
|
|
248
|
+
info: number;
|
|
249
|
+
errors: number;
|
|
250
|
+
warnings: number;
|
|
251
|
+
};
|
|
252
|
+
manifestRead: boolean;
|
|
253
|
+
}, {
|
|
254
|
+
source: string;
|
|
255
|
+
name: string;
|
|
256
|
+
path: string;
|
|
257
|
+
status: "ok" | "findings";
|
|
258
|
+
summary: {
|
|
259
|
+
info: number;
|
|
260
|
+
errors: number;
|
|
261
|
+
warnings: number;
|
|
262
|
+
};
|
|
263
|
+
manifestRead: boolean;
|
|
264
|
+
}>, "many">;
|
|
265
|
+
/** Directories under `plugins/` no manifest entry names — listed, never graded. */
|
|
266
|
+
undeclared: z.ZodArray<z.ZodString, "many">;
|
|
267
|
+
/** Paths inside a walked plugin the run would not open: each resolves outside the root. */
|
|
268
|
+
refused: z.ZodArray<z.ZodString, "many">;
|
|
269
|
+
}, "strict", z.ZodTypeAny, {
|
|
270
|
+
refused: string[];
|
|
271
|
+
root: string;
|
|
272
|
+
marketplace: {
|
|
273
|
+
name?: string | undefined;
|
|
274
|
+
version?: string | undefined;
|
|
275
|
+
description?: string | undefined;
|
|
276
|
+
pluginEntries?: number | undefined;
|
|
277
|
+
localPluginSources?: {
|
|
278
|
+
source: string;
|
|
279
|
+
name: string;
|
|
280
|
+
}[] | undefined;
|
|
281
|
+
} | null;
|
|
282
|
+
plugins: {
|
|
283
|
+
source: string;
|
|
284
|
+
name: string;
|
|
285
|
+
path: string;
|
|
286
|
+
status: "ok" | "findings";
|
|
287
|
+
summary: {
|
|
288
|
+
info: number;
|
|
289
|
+
errors: number;
|
|
290
|
+
warnings: number;
|
|
291
|
+
};
|
|
292
|
+
manifestRead: boolean;
|
|
293
|
+
}[];
|
|
294
|
+
undeclared: string[];
|
|
295
|
+
}, {
|
|
296
|
+
refused: string[];
|
|
297
|
+
root: string;
|
|
298
|
+
marketplace: {
|
|
299
|
+
name?: string | undefined;
|
|
300
|
+
version?: string | undefined;
|
|
301
|
+
description?: string | undefined;
|
|
302
|
+
pluginEntries?: number | undefined;
|
|
303
|
+
localPluginSources?: {
|
|
304
|
+
source: string;
|
|
305
|
+
name: string;
|
|
306
|
+
}[] | undefined;
|
|
307
|
+
} | null;
|
|
308
|
+
plugins: {
|
|
309
|
+
source: string;
|
|
310
|
+
name: string;
|
|
311
|
+
path: string;
|
|
312
|
+
status: "ok" | "findings";
|
|
313
|
+
summary: {
|
|
314
|
+
info: number;
|
|
315
|
+
errors: number;
|
|
316
|
+
warnings: number;
|
|
317
|
+
};
|
|
318
|
+
manifestRead: boolean;
|
|
319
|
+
}[];
|
|
320
|
+
undeclared: string[];
|
|
321
|
+
}>, z.ZodObject<Omit<{
|
|
322
|
+
code: z.ZodString;
|
|
323
|
+
severity: z.ZodEnum<["error", "warning", "info", "ignore"]>;
|
|
324
|
+
message: z.ZodString;
|
|
325
|
+
location: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
326
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
327
|
+
field: z.ZodOptional<z.ZodString>;
|
|
328
|
+
link: z.ZodOptional<z.ZodString>;
|
|
329
|
+
fix: z.ZodOptional<z.ZodString>;
|
|
330
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
331
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
332
|
+
}, "severity"> & {
|
|
333
|
+
severity: z.ZodEnum<["error", "warning", "info"]>;
|
|
334
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
335
|
+
}, "strict", z.ZodTypeAny, {
|
|
336
|
+
code: string;
|
|
337
|
+
message: string;
|
|
338
|
+
severity: "error" | "warning" | "info";
|
|
339
|
+
fix?: string | undefined;
|
|
340
|
+
reference?: string | undefined;
|
|
341
|
+
location?: string | undefined;
|
|
342
|
+
line?: number | undefined;
|
|
343
|
+
field?: string | undefined;
|
|
344
|
+
link?: string | undefined;
|
|
345
|
+
suggestion?: string | undefined;
|
|
346
|
+
column?: number | undefined;
|
|
347
|
+
}, {
|
|
348
|
+
code: string;
|
|
349
|
+
message: string;
|
|
350
|
+
severity: "error" | "warning" | "info";
|
|
351
|
+
fix?: string | undefined;
|
|
352
|
+
reference?: string | undefined;
|
|
353
|
+
location?: string | undefined;
|
|
354
|
+
line?: number | undefined;
|
|
355
|
+
field?: string | undefined;
|
|
356
|
+
link?: string | undefined;
|
|
357
|
+
suggestion?: string | undefined;
|
|
358
|
+
column?: number | undefined;
|
|
359
|
+
}>>;
|
|
360
|
+
export type MarketplaceValidateReport = Report<MarketplaceValidateData>;
|
|
361
|
+
export {};
|
|
362
|
+
//# sourceMappingURL=validate-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-schema.d.ts","sourceRoot":"","sources":["../../../../src/commands/claude/marketplace/validate-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAqD,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC5G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,oGAAoG;AACpG,eAAO,MAAM,6BAA6B,EAAE,mBAI3C,CAAC;AAgCF,QAAA,MAAM,6BAA6B;IACjC,+FAA+F;;IAE/F,4EAA4E;;;;;QA5B5E,4EAA4E;;QAE5E,6FAA6F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4B7F,wDAAwD;;QAtBxD,mCAAmC;;QAEnC,+DAA+D;;QAE/D,qEAAqE;;QAErE;;;;WAIG;;;QAGH,sEAAsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWtE,mFAAmF;;IAEnF,2FAA2F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElF,CAAC;AAEZ,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,2CAA2C;AAC3C,eAAO,MAAM,kCAAkC;IAf7C,+FAA+F;;IAE/F,4EAA4E;;;;;QA5B5E,4EAA4E;;QAE5E,6FAA6F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4B7F,wDAAwD;;QAtBxD,mCAAmC;;QAEnC,+DAA+D;;QAE/D,qEAAqE;;QAErE;;;;WAIG;;;QAGH,sEAAsE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWtE,mFAAmF;;IAEnF,2FAA2F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOe,CAAC;AAE7G,MAAM,MAAM,yBAAyB,GAAG,MAAM,CAAC,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat claude marketplace validate` publishes, apart from the
|
|
3
|
+
* command.
|
|
4
|
+
*
|
|
5
|
+
* A sibling module because the published-shape registry imports it and the
|
|
6
|
+
* command imports the writer that imports the registry: a schema declared in
|
|
7
|
+
* the command module itself would be an import cycle, read before it is
|
|
8
|
+
* initialised.
|
|
9
|
+
*
|
|
10
|
+
* 🔑 **One base, one meaning of `summary`.** `data.root` is the marketplace
|
|
11
|
+
* directory, stated once; every finding's `location`, every plugin `path`, and
|
|
12
|
+
* every `undeclared` / `refused` entry is relative to it. `summary` — on the
|
|
13
|
+
* envelope and on a plugin row — always counts FINDINGS by severity. Every
|
|
14
|
+
* finding is on the envelope, flat; a plugin row is a tally of the findings
|
|
15
|
+
* its own validator published, never a second list.
|
|
16
|
+
*/
|
|
17
|
+
import { FindingSchema, reportSchema, SeverityCountsSchema } from '@vibe-agent-toolkit/schema';
|
|
18
|
+
import { z } from 'zod';
|
|
19
|
+
/** What `examined` counts for `vat claude marketplace validate`, and the remedy when it is zero. */
|
|
20
|
+
export const MARKETPLACE_VALIDATE_EXAMINED = {
|
|
21
|
+
unit: 'plugin entries',
|
|
22
|
+
whenZero: 'The marketplace manifest declares no plugin, or it could not be validated — point the command at'
|
|
23
|
+
+ ' a marketplace directory holding a valid .claude-plugin/marketplace.json with at least one entry in plugins[].',
|
|
24
|
+
};
|
|
25
|
+
/** The manifest's own facts, once it validated against the marketplace schema. */
|
|
26
|
+
const MarketplaceSchema = z.object({
|
|
27
|
+
name: z.string().optional(),
|
|
28
|
+
description: z.string().optional(),
|
|
29
|
+
version: z.string().optional(),
|
|
30
|
+
/** Every entry the manifest's `plugins` list declares, remote and local. */
|
|
31
|
+
pluginEntries: z.number().int().nonnegative().optional(),
|
|
32
|
+
/** The entries whose `source` is a relative path — plugins this marketplace ships itself. */
|
|
33
|
+
localPluginSources: z.array(z.object({ name: z.string(), source: z.string() }).strict()).optional(),
|
|
34
|
+
}).strict();
|
|
35
|
+
/** One declared local plugin the run walked, keyed by the manifest entry it satisfies. */
|
|
36
|
+
const PluginRowSchema = z.object({
|
|
37
|
+
/** The manifest entry's `name`. */
|
|
38
|
+
name: z.string(),
|
|
39
|
+
/** The manifest entry's `source`, as the manifest wrote it. */
|
|
40
|
+
source: z.string(),
|
|
41
|
+
/** The directory the source resolved to, relative to `data.root`. */
|
|
42
|
+
path: z.string(),
|
|
43
|
+
/**
|
|
44
|
+
* `false` when the plugin's `plugin.json` resolves outside the root and was
|
|
45
|
+
* never opened — its row then counts nothing, and the run carries the
|
|
46
|
+
* `RESOURCE_CHECK_BROKEN` finding naming it.
|
|
47
|
+
*/
|
|
48
|
+
manifestRead: z.boolean(),
|
|
49
|
+
status: z.enum(['ok', 'findings']),
|
|
50
|
+
/** The findings the plugin's own validator published, by severity. */
|
|
51
|
+
summary: SeverityCountsSchema,
|
|
52
|
+
}).strict();
|
|
53
|
+
const MarketplaceValidateDataSchema = z.object({
|
|
54
|
+
/** The marketplace directory — the ONE base every `location` and path below is relative to. */
|
|
55
|
+
root: z.string(),
|
|
56
|
+
/** The manifest's facts; `null` when it is missing or does not validate. */
|
|
57
|
+
marketplace: MarketplaceSchema.nullable(),
|
|
58
|
+
/** One row per declared local plugin the run walked. */
|
|
59
|
+
plugins: z.array(PluginRowSchema),
|
|
60
|
+
/** Directories under `plugins/` no manifest entry names — listed, never graded. */
|
|
61
|
+
undeclared: z.array(z.string()),
|
|
62
|
+
/** Paths inside a walked plugin the run would not open: each resolves outside the root. */
|
|
63
|
+
refused: z.array(z.string()),
|
|
64
|
+
}).strict();
|
|
65
|
+
/** The document this command publishes. */
|
|
66
|
+
export const MARKETPLACE_VALIDATE_REPORT_SCHEMA = reportSchema(MarketplaceValidateDataSchema, FindingSchema);
|
|
67
|
+
//# sourceMappingURL=validate-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-schema.js","sourceRoot":"","sources":["../../../../src/commands/claude/marketplace/validate-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,oBAAoB,EAAe,MAAM,4BAA4B,CAAC;AAC5G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oGAAoG;AACpG,MAAM,CAAC,MAAM,6BAA6B,GAAwB;IAChE,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,kGAAkG;UACxG,gHAAgH;CACrH,CAAC;AAEF,kFAAkF;AAClF,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,4EAA4E;IAC5E,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,EAAE;IACxD,6FAA6F;IAC7F,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACpG,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,0FAA0F;AAC1F,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/B,mCAAmC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,+DAA+D;IAC/D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,qEAAqE;IACrE,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB;;;;OAIG;IACH,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAClC,sEAAsE;IACtE,OAAO,EAAE,oBAAoB;CAC9B,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,+FAA+F;IAC/F,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,4EAA4E;IAC5E,WAAW,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IACzC,wDAAwD;IACxD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC;IACjC,mFAAmF;IACnF,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,2FAA2F;IAC3F,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC7B,CAAC,CAAC,MAAM,EAAE,CAAC;AAIZ,2CAA2C;AAC3C,MAAM,CAAC,MAAM,kCAAkC,GAAG,YAAY,CAAC,6BAA6B,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -7,16 +7,20 @@
|
|
|
7
7
|
* - LICENSE file must exist (error)
|
|
8
8
|
* - README.md should exist (warning)
|
|
9
9
|
* - CHANGELOG.md should exist (warning)
|
|
10
|
+
*
|
|
11
|
+
* Publishes the `Report<T>` envelope (`validate-schema.ts`): every finding flat
|
|
12
|
+
* with its `location` relative to `data.root`, one `data.plugins` row per
|
|
13
|
+
* declared local plugin walked.
|
|
10
14
|
*/
|
|
11
15
|
import { type ValidationResult } from '@vibe-agent-toolkit/agent-skills';
|
|
12
|
-
import {
|
|
16
|
+
import { type ValidationIssue } from '@vibe-agent-toolkit/schema';
|
|
13
17
|
import { Command } from 'commander';
|
|
14
|
-
import { type FindingCountSummary } from '../../../utils/issue-rendering.js';
|
|
15
18
|
import { createLogger } from '../../../utils/logger.js';
|
|
16
|
-
import {
|
|
19
|
+
import type { PhaseOutcome } from '../../phase-utils.js';
|
|
20
|
+
import type { MarketplaceValidateReport } from './validate-schema.js';
|
|
17
21
|
interface MarketplaceValidateOptions {
|
|
18
22
|
debug?: boolean;
|
|
19
|
-
/**
|
|
23
|
+
/** Print every finding in full on stderr. The published document is the same either way. */
|
|
20
24
|
verbose?: boolean;
|
|
21
25
|
}
|
|
22
26
|
/** One manifest entry with a relative-path `source`, as the manifest wrote it. */
|
|
@@ -27,6 +31,13 @@ export interface LocalPluginSource {
|
|
|
27
31
|
/** One declared local plugin the run validated, keyed by the entry it satisfies. */
|
|
28
32
|
export interface LocalPluginResult extends LocalPluginSource {
|
|
29
33
|
result: ValidationResult;
|
|
34
|
+
/**
|
|
35
|
+
* `false` when the plugin's manifest was refused (it resolves outside the
|
|
36
|
+
* marketplace root) and never opened. REQUIRED: the library `status` of an
|
|
37
|
+
* unread plugin is `ok` over an empty issue list, so without this bit the
|
|
38
|
+
* row would read as a clean plugin — see {@link validateContainedPlugin}.
|
|
39
|
+
*/
|
|
40
|
+
manifestRead: boolean;
|
|
30
41
|
}
|
|
31
42
|
/** Every finding the command reports, all anchored at one marketplace root. */
|
|
32
43
|
export interface MarketplaceFindings {
|
|
@@ -42,6 +53,12 @@ export interface MarketplaceFindings {
|
|
|
42
53
|
* Empty when the manifest failed: the run never reached a plugin.
|
|
43
54
|
*/
|
|
44
55
|
refused: string[];
|
|
56
|
+
/**
|
|
57
|
+
* Paths inside a validated plugin's `skills/` the OS would not let the walk
|
|
58
|
+
* list or read (a `skills/` dir, a skill dir, a `SKILL.md`), relative to the
|
|
59
|
+
* root. Each also has its `SCAN_PATH_UNREADABLE` warning in `issues`.
|
|
60
|
+
*/
|
|
61
|
+
unread: string[];
|
|
45
62
|
/**
|
|
46
63
|
* Manifest, required-file, plugin and skill issues, in report order, with
|
|
47
64
|
* every severity already resolved against the governing project's
|
|
@@ -67,8 +84,8 @@ export interface MarketplaceFindings {
|
|
|
67
84
|
*
|
|
68
85
|
* Severity resolution is likewise INSIDE this function rather than a step the
|
|
69
86
|
* command adds after it. Its absence is the whole defect this addressed, and a
|
|
70
|
-
* command-body step is one a caller can forget: with it here, the
|
|
71
|
-
*
|
|
87
|
+
* command-body step is one a caller can forget: with it here, the envelope's
|
|
88
|
+
* `findings` and the `data.plugins[]` tallies derive from a single resolved set, and the
|
|
72
89
|
* smallest testable entry point is the one that includes the filter. The run's
|
|
73
90
|
* `status` — and with it the exit code — is derived one step later, in
|
|
74
91
|
* {@link buildMarketplaceValidateReport}, from the issues the document actually
|
|
@@ -115,45 +132,15 @@ export interface MarketplaceValidateReportInput {
|
|
|
115
132
|
* refusal.
|
|
116
133
|
*/
|
|
117
134
|
refused: readonly string[];
|
|
118
|
-
issues: readonly ValidationIssue[];
|
|
119
|
-
/**
|
|
120
|
-
* The manifest's own summary, present iff the run bailed on the manifest. A
|
|
121
|
-
* bailed run reports WHY it stopped; a completed run reports what it found,
|
|
122
|
-
* and the builder writes that counts line itself.
|
|
123
|
-
*/
|
|
124
|
-
bailSummary?: string;
|
|
125
|
-
duration: string;
|
|
126
135
|
/**
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* the document is a total about the run and is identical in both modes.
|
|
131
|
-
* Optional, and absent means the summary — a caller with no opinion gets the
|
|
132
|
-
* readable form rather than the corpus-scale one.
|
|
136
|
+
* Root-relative paths in a validated plugin's `skills/` the OS would not let
|
|
137
|
+
* the walk read. Required for the same reason as `refused`: the builder turns
|
|
138
|
+
* a non-empty list into the run-integrity refusal.
|
|
133
139
|
*/
|
|
134
|
-
|
|
140
|
+
unread: readonly string[];
|
|
141
|
+
issues: readonly ValidationIssue[];
|
|
142
|
+
durationMs: number;
|
|
135
143
|
}
|
|
136
|
-
/** One inspected asset's DEFAULT row: where, how many, of what code. */
|
|
137
|
-
export type LocationIssueSummary = FindingCountSummary & {
|
|
138
|
-
/** The asset, relative to the report's `root`. Absent iff `unlocated`. */
|
|
139
|
-
location?: string;
|
|
140
|
-
/** Set instead of `location` when the findings named no file at all. */
|
|
141
|
-
unlocated?: true;
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* Collapse a flat finding list onto one counts-only row per `location`.
|
|
145
|
-
*
|
|
146
|
-
* `location` is this command's per-asset unit: `plugins/alpha/.claude-plugin/
|
|
147
|
-
* plugin.json`, `plugins/beta/skills/x/SKILL.md`. Rows come out in first-seen
|
|
148
|
-
* order, and a location with no findings has no row — there is nothing to
|
|
149
|
-
* filter here, because a location only exists in this listing by having emitted
|
|
150
|
-
* something.
|
|
151
|
-
*
|
|
152
|
-
* Every value is passed through un-rebased: `location` is already relative to
|
|
153
|
-
* the report's stated `root`, and `relative()` is not idempotent (see
|
|
154
|
-
* {@link MarketplaceValidateReportInput.root}).
|
|
155
|
-
*/
|
|
156
|
-
export declare function summarizeIssuesByLocation(issues: readonly ValidationIssue[]): LocationIssueSummary[];
|
|
157
144
|
/**
|
|
158
145
|
* Build the report `vat claude marketplace validate` publishes on stdout.
|
|
159
146
|
*
|
|
@@ -162,26 +149,26 @@ export declare function summarizeIssuesByLocation(issues: readonly ValidationIss
|
|
|
162
149
|
* builder serves both exits (manifest-missing bail and full run) so the
|
|
163
150
|
* document has a single shape either way.
|
|
164
151
|
*
|
|
152
|
+
* `status` and `summary` are derived by `buildReport` from the findings — the
|
|
153
|
+
* run-integrity refusal below included — so the status, the counts and the
|
|
154
|
+
* exit code cannot disagree. A plugin row's `summary` is the tally of the
|
|
155
|
+
* findings its own validator published; every finding itself is on the
|
|
156
|
+
* envelope, once.
|
|
157
|
+
*
|
|
165
158
|
* Being pure is also the limit of what it can guarantee: it re-bases `path`,
|
|
166
159
|
* and passes `issues` through verbatim. The single-coordinate-system property
|
|
167
160
|
* is therefore only as true as its inputs — see `root` above — and is enforced
|
|
168
161
|
* against a real marketplace in `payload-path-coordinates.test.ts`, not here.
|
|
169
162
|
*/
|
|
170
163
|
export declare function buildMarketplaceValidateReport(input: MarketplaceValidateReportInput): MarketplaceValidateReport;
|
|
171
|
-
/** The document `vat claude marketplace validate` publishes. */
|
|
172
|
-
export interface MarketplaceValidateReport extends Record<string, unknown> {
|
|
173
|
-
status: ReturnType<typeof calculateValidationStatus>;
|
|
174
|
-
pluginsValidated: number;
|
|
175
|
-
}
|
|
176
164
|
/**
|
|
177
|
-
* Validate a marketplace and hand back its
|
|
178
|
-
* nothing on stdout.
|
|
165
|
+
* Validate a marketplace and hand back its report, printing nothing on stdout.
|
|
179
166
|
*
|
|
180
167
|
* The phase entry point for `vat verify`, which runs this once per configured
|
|
181
|
-
* marketplace
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
168
|
+
* marketplace, and the command's own. The report is the one BEFORE the
|
|
169
|
+
* writer's run-integrity pass: inside an orchestrator, `runPhase` applies the same
|
|
170
|
+
* pass to this phase's report, by the declaration this verb gives its own writer. A refusal is the envelope's error
|
|
171
|
+
* branch, its message already on stderr.
|
|
185
172
|
*/
|
|
186
173
|
export declare function runMarketplaceValidatePhase(targetPath: string | undefined, options: MarketplaceValidateOptions): Promise<PhaseOutcome>;
|
|
187
174
|
export declare function createMarketplaceValidateCommand(): Command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../src/commands/claude/marketplace/validate.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../src/commands/claude/marketplace/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,EAIL,KAAK,gBAAgB,EACtB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAOL,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,EAAE,YAAY,EAAe,MAAM,0BAA0B,CAAC;AAIrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,EAA2B,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAK/F,UAAU,0BAA0B;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA0KD,kFAAkF;AAClF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oFAAoF;AACpF,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,MAAM,EAAE,gBAAgB,CAAC;IACzB;;;;;OAKG;IACH,YAAY,EAAE,OAAO,CAAC;CACvB;AAuTD,+EAA+E;AAC/E,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,EAAE,gBAAgB,CAAC;IACpC,6EAA6E;IAC7E,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,oFAAoF;IACpF,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB;;;;;OAKG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,eAAe,EAAE,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAsB,0BAA0B,CAC9C,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,GACtC,OAAO,CAAC,mBAAmB,CAAC,CAqC9B;AAED,mDAAmD;AACnD,MAAM,WAAW,8BAA8B;IAC7C;;;;;;;;;;;OAWG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC1C;;;;OAIG;IACH,aAAa,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC5C,oFAAoF;IACpF,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9B;;;;;;OAMG;IACH,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3B;;;;OAIG;IACH,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,SAAS,eAAe,EAAE,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AAiCD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,8BAA8B,GACpC,yBAAyB,CAoC3B;AAyHD;;;;;;;;GAQG;AACH,wBAAsB,2BAA2B,CAC/C,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,YAAY,CAAC,CA0BvB;AAoCD,wBAAgB,gCAAgC,IAAI,OAAO,CAqE1D"}
|