@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
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* a false alarm.
|
|
17
17
|
*/
|
|
18
18
|
import type { PackageSkillResult } from '@vibe-agent-toolkit/agent-skills';
|
|
19
|
-
import { type SeverityCounts, type ValidationIssue } from '@vibe-agent-toolkit/schema';
|
|
19
|
+
import { type Finding, type SeverityCounts, type ValidationIssue } from '@vibe-agent-toolkit/schema';
|
|
20
20
|
/** Render an issue's own severity as itself. */
|
|
21
21
|
export declare function severityLabel(severity: ValidationIssue['severity']): string;
|
|
22
22
|
/**
|
|
@@ -38,10 +38,14 @@ export declare function formatIssueSetHeading(issues: readonly ValidationIssue[]
|
|
|
38
38
|
/**
|
|
39
39
|
* Render one issue as its own lines, each prefixed with `indent`.
|
|
40
40
|
*
|
|
41
|
+
* Takes a library `ValidationIssue` or a published `Finding` — the renderer
|
|
42
|
+
* reads only the fields the two share, so a lane holding a report's findings
|
|
43
|
+
* renders them as they are rather than casting them back to issues.
|
|
44
|
+
*
|
|
41
45
|
* Returns an array rather than writing, so a caller can pick its own stream and
|
|
42
46
|
* a unit test can assert over every line without capturing output.
|
|
43
47
|
*/
|
|
44
|
-
export declare function formatIssueLines(issue: ValidationIssue, indent?: string): string[];
|
|
48
|
+
export declare function formatIssueLines(issue: ValidationIssue | Finding, indent?: string): string[];
|
|
45
49
|
/**
|
|
46
50
|
* Render the run-level findings section — findings that belong to the whole
|
|
47
51
|
* invocation rather than to any one skill (ALLOW_UNUSED is the only producer).
|
|
@@ -84,7 +88,7 @@ export declare function collectPostBuildIssues(result: PackageSkillResult): Vali
|
|
|
84
88
|
* "this asset is not the one" it means. `exactOptionalPropertyTypes` is on, so
|
|
85
89
|
* these are built by spread — assigning `undefined` would emit the key.
|
|
86
90
|
*/
|
|
87
|
-
|
|
91
|
+
interface FindingCountSummary {
|
|
88
92
|
errors?: number;
|
|
89
93
|
warnings?: number;
|
|
90
94
|
info?: number;
|
|
@@ -188,4 +192,5 @@ export declare function formatCollapsedFindingsHint(collapsed: number, report: s
|
|
|
188
192
|
export declare function formatPackagedFileCount(result: PackageSkillResult): string;
|
|
189
193
|
/** Sum severity counts across lanes (per-skill → per-plugin → per-run). */
|
|
190
194
|
export declare function sumSeverityCounts(counts: readonly SeverityCounts[]): SeverityCounts;
|
|
195
|
+
export {};
|
|
191
196
|
//# sourceMappingURL=issue-rendering.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-rendering.d.ts","sourceRoot":"","sources":["../../src/utils/issue-rendering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAiBpC,gDAAgD;AAChD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,GAAG,MAAM,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAYtE;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,eAAe,EAAE,EAClC,IAAI,CAAC,EAAE,MAAM,GACZ,MAAM,CAKR;AAED
|
|
1
|
+
{"version":3,"file":"issue-rendering.d.ts","sourceRoot":"","sources":["../../src/utils/issue-rendering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,4BAA4B,CAAC;AAiBpC,gDAAgD;AAChD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,GAAG,MAAM,CAE3E;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,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AED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,kBAAkB,GAAG,MAAM,CAG1E;AAED,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,cAAc,EAAE,GAAG,cAAc,CASnF"}
|
|
@@ -69,6 +69,10 @@ export function formatIssueSetHeading(issues, noun) {
|
|
|
69
69
|
/**
|
|
70
70
|
* Render one issue as its own lines, each prefixed with `indent`.
|
|
71
71
|
*
|
|
72
|
+
* Takes a library `ValidationIssue` or a published `Finding` — the renderer
|
|
73
|
+
* reads only the fields the two share, so a lane holding a report's findings
|
|
74
|
+
* renders them as they are rather than casting them back to issues.
|
|
75
|
+
*
|
|
72
76
|
* Returns an array rather than writing, so a caller can pick its own stream and
|
|
73
77
|
* a unit test can assert over every line without capturing output.
|
|
74
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-rendering.js","sourceRoot":"","sources":["../../src/utils/issue-rendering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,eAAe,
|
|
1
|
+
{"version":3,"file":"issue-rendering.js","sourceRoot":"","sources":["../../src/utils/issue-rendering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,eAAe,GAIhB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,eAAe,GAAgD;IACnE,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,SAAS;CAClB,CAAC;AAEF,gDAAgD;AAChD,MAAM,UAAU,aAAa,CAAC,QAAqC;IACjE,OAAO,eAAe,CAAC,QAAQ,CAAC,CAAC;AACnC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAAsB;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,CAAC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,2BAA2B,CACzC,SAAiB,EACjB,MAAc;IAEd,IAAI,SAAS,IAAI,CAAC;QAAE,OAAO,SAAS,CAAC;IACrC,OAAO,CACL,KAAK,SAAS,8DAA8D;UAC1E,gBAAgB,MAAM,sDAAsD,CAC/E,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAA0B;IAChE,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;IACnD,OAAO,GAAG,KAAK,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AAClD,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,iBAAiB,CAAC,MAAiC;IACjE,OAAO,MAAM,CAAC,MAAM,CAClB,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;QACX,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM;QAC7B,QAAQ,EAAE,GAAG,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ;QACnC,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,IAAI;KACxB,CAAC,EACF,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a run's LENS populations came from — the one vocabulary `vat resources
|
|
3
|
+
* query`, `check`, and `check`'s progress log all publish.
|
|
4
|
+
*
|
|
5
|
+
* Its own module, and a leaf, so a schema file can name it without importing
|
|
6
|
+
* the lens evaluators that compute it.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Every lens provenance a run can publish: `'none'` when no evaluated lens
|
|
10
|
+
* populated anything, otherwise one of the population origins — derived from
|
|
11
|
+
* `POPULATION_ORIGINS`, so a new origin reaches every schema at once.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LENS_POPULATIONS: readonly ["none", "store" | "derived", ...("store" | "derived")[]];
|
|
14
|
+
/**
|
|
15
|
+
* Where the lenses' populations came from, as a run publishes it: `'none'` when
|
|
16
|
+
* no evaluated lens populated anything, `'store'` when every one that did was
|
|
17
|
+
* served from the store, otherwise `'derived'`.
|
|
18
|
+
*/
|
|
19
|
+
export type LensPopulation = (typeof LENS_POPULATIONS)[number];
|
|
20
|
+
//# sourceMappingURL=lens-population.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lens-population.d.ts","sourceRoot":"","sources":["../../src/utils/lens-population.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,oEAA2C,CAAC;AAEzE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a run's LENS populations came from — the one vocabulary `vat resources
|
|
3
|
+
* query`, `check`, and `check`'s progress log all publish.
|
|
4
|
+
*
|
|
5
|
+
* Its own module, and a leaf, so a schema file can name it without importing
|
|
6
|
+
* the lens evaluators that compute it.
|
|
7
|
+
*/
|
|
8
|
+
import { POPULATION_ORIGINS } from '@vibe-agent-toolkit/resources';
|
|
9
|
+
/**
|
|
10
|
+
* Every lens provenance a run can publish: `'none'` when no evaluated lens
|
|
11
|
+
* populated anything, otherwise one of the population origins — derived from
|
|
12
|
+
* `POPULATION_ORIGINS`, so a new origin reaches every schema at once.
|
|
13
|
+
*/
|
|
14
|
+
export const LENS_POPULATIONS = ['none', ...POPULATION_ORIGINS];
|
|
15
|
+
//# sourceMappingURL=lens-population.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lens-population.js","sourceRoot":"","sources":["../../src/utils/lens-population.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAEnE;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,GAAG,kBAAkB,CAAU,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The marketplace build's filesystem work, classified by the tree it touches.
|
|
3
|
+
*
|
|
4
|
+
* A copy reads one tree and writes another, and its errno cannot say which: `EACCES`
|
|
5
|
+
* is raised for an unreadable LICENSE and for a read-only `dist/` alike. So every read
|
|
6
|
+
* is classified on the side of the tree it reads (the build's INPUT is `source`; a tree
|
|
7
|
+
* the run itself wrote earlier is `destination`), and only a write is left to the
|
|
8
|
+
* marketplace tree's own boundary (a `destination` fault). The refusal table decides
|
|
9
|
+
* the code; neither is a defect in VAT. The tree written into is the marketplace's
|
|
10
|
+
* staged tree (see `buildMarketplace`): nothing here touches the built marketplace.
|
|
11
|
+
*/
|
|
12
|
+
import { type FsSide } from '@vibe-agent-toolkit/utils';
|
|
13
|
+
/**
|
|
14
|
+
* One write into the marketplace tree this build owns (`dist/.claude/plugins/…`, staged): a
|
|
15
|
+
* raw fault the OS raises is a `destination` fault, naming what it was doing. An already
|
|
16
|
+
* classified fault (a refused read), a coded refusal, and a non-filesystem throw pass
|
|
17
|
+
* through untouched.
|
|
18
|
+
*
|
|
19
|
+
* @param what - Completes "Could not …", naming the path
|
|
20
|
+
*/
|
|
21
|
+
export declare function writingMarketplace<T>(what: string, write: () => Promise<T>): Promise<T>;
|
|
22
|
+
/**
|
|
23
|
+
* Copy one file of the build's INPUT into the marketplace tree: the read is the
|
|
24
|
+
* source's (opened without blocking — a named pipe is refused, never waited on),
|
|
25
|
+
* the write the destination's.
|
|
26
|
+
*
|
|
27
|
+
* The tree already holds what earlier phases copied into it, links kept as links, so the
|
|
28
|
+
* copy is made the one way a file is made there (`copyRegularFile`): every directory on the
|
|
29
|
+
* way must be a real one, and the file is created exclusively. A regular file already at the
|
|
30
|
+
* name is replaced (a later `files[]` entry over an earlier one, a CHANGELOG over the
|
|
31
|
+
* tree-copied one); a link or a directory there — or a link where a directory goes — refuses
|
|
32
|
+
* the copy, as the input's layout, naming it.
|
|
33
|
+
*
|
|
34
|
+
* @param source - Absolute path the build reads
|
|
35
|
+
* @param target - Where it goes: `relative` (forward slashes) under `root`, a directory of the marketplace tree the build made
|
|
36
|
+
* @param sourceLabel - What a read refusal says the build was reading
|
|
37
|
+
* @param targetLabel - What a write refusal says the build was writing
|
|
38
|
+
*/
|
|
39
|
+
export declare function copyFileIntoMarketplace(source: string, target: {
|
|
40
|
+
readonly root: string;
|
|
41
|
+
readonly relative: string;
|
|
42
|
+
}, sourceLabel: string, targetLabel: string): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Copy a directory tree into the marketplace tree: every file is proven
|
|
45
|
+
* readable first (`proveTreeReadable`), then the copy is written by the same walk,
|
|
46
|
+
* links kept as links. Both read the tree on its `side`.
|
|
47
|
+
*
|
|
48
|
+
* @param source - The directory the build reads, and the side of the run it is on
|
|
49
|
+
* @param target - Where it goes: `relative` (forward slashes) under `root`, a directory of the
|
|
50
|
+
* marketplace tree the build made. The tree holds what earlier copies kept, links included, so
|
|
51
|
+
* every directory between the two must be a real one: a link or a file there refuses the copy as
|
|
52
|
+
* the input's layout, naming it — the copy is never made where a link points
|
|
53
|
+
* @param sourceLabel - What the build reads, for a write refusal's message
|
|
54
|
+
* @param targetLabel - What a write refusal says the build was writing
|
|
55
|
+
*/
|
|
56
|
+
export declare function copyTreeIntoMarketplace(source: {
|
|
57
|
+
readonly path: string;
|
|
58
|
+
readonly side: FsSide;
|
|
59
|
+
}, target: {
|
|
60
|
+
readonly root: string;
|
|
61
|
+
readonly relative: string;
|
|
62
|
+
}, sourceLabel: string, targetLabel: string): Promise<void>;
|
|
63
|
+
//# sourceMappingURL=marketplace-io.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-io.d.ts","sourceRoot":"","sources":["../../src/utils/marketplace-io.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA6B,KAAK,MAAM,EAAkC,MAAM,2BAA2B,CAAC;AAEnH;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAEvF;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC5D,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAGf;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EACxD,MAAM,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC5D,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The marketplace build's filesystem work, classified by the tree it touches.
|
|
3
|
+
*
|
|
4
|
+
* A copy reads one tree and writes another, and its errno cannot say which: `EACCES`
|
|
5
|
+
* is raised for an unreadable LICENSE and for a read-only `dist/` alike. So every read
|
|
6
|
+
* is classified on the side of the tree it reads (the build's INPUT is `source`; a tree
|
|
7
|
+
* the run itself wrote earlier is `destination`), and only a write is left to the
|
|
8
|
+
* marketplace tree's own boundary (a `destination` fault). The refusal table decides
|
|
9
|
+
* the code; neither is a defect in VAT. The tree written into is the marketplace's
|
|
10
|
+
* staged tree (see `buildMarketplace`): nothing here touches the built marketplace.
|
|
11
|
+
*/
|
|
12
|
+
import { copyRegularFile, copyTree, proveTreeReadable, withFsFault } from '@vibe-agent-toolkit/utils';
|
|
13
|
+
/**
|
|
14
|
+
* One write into the marketplace tree this build owns (`dist/.claude/plugins/…`, staged): a
|
|
15
|
+
* raw fault the OS raises is a `destination` fault, naming what it was doing. An already
|
|
16
|
+
* classified fault (a refused read), a coded refusal, and a non-filesystem throw pass
|
|
17
|
+
* through untouched.
|
|
18
|
+
*
|
|
19
|
+
* @param what - Completes "Could not …", naming the path
|
|
20
|
+
*/
|
|
21
|
+
export function writingMarketplace(what, write) {
|
|
22
|
+
return withFsFault({ side: 'destination', action: what }, write);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Copy one file of the build's INPUT into the marketplace tree: the read is the
|
|
26
|
+
* source's (opened without blocking — a named pipe is refused, never waited on),
|
|
27
|
+
* the write the destination's.
|
|
28
|
+
*
|
|
29
|
+
* The tree already holds what earlier phases copied into it, links kept as links, so the
|
|
30
|
+
* copy is made the one way a file is made there (`copyRegularFile`): every directory on the
|
|
31
|
+
* way must be a real one, and the file is created exclusively. A regular file already at the
|
|
32
|
+
* name is replaced (a later `files[]` entry over an earlier one, a CHANGELOG over the
|
|
33
|
+
* tree-copied one); a link or a directory there — or a link where a directory goes — refuses
|
|
34
|
+
* the copy, as the input's layout, naming it.
|
|
35
|
+
*
|
|
36
|
+
* @param source - Absolute path the build reads
|
|
37
|
+
* @param target - Where it goes: `relative` (forward slashes) under `root`, a directory of the marketplace tree the build made
|
|
38
|
+
* @param sourceLabel - What a read refusal says the build was reading
|
|
39
|
+
* @param targetLabel - What a write refusal says the build was writing
|
|
40
|
+
*/
|
|
41
|
+
export async function copyFileIntoMarketplace(source, target, sourceLabel, targetLabel) {
|
|
42
|
+
await writingMarketplace(`write ${targetLabel}`, () => copyRegularFile(source, target.root, target.relative, { side: 'source', reading: sourceLabel, existing: 'replace', writing: targetLabel }));
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Copy a directory tree into the marketplace tree: every file is proven
|
|
46
|
+
* readable first (`proveTreeReadable`), then the copy is written by the same walk,
|
|
47
|
+
* links kept as links. Both read the tree on its `side`.
|
|
48
|
+
*
|
|
49
|
+
* @param source - The directory the build reads, and the side of the run it is on
|
|
50
|
+
* @param target - Where it goes: `relative` (forward slashes) under `root`, a directory of the
|
|
51
|
+
* marketplace tree the build made. The tree holds what earlier copies kept, links included, so
|
|
52
|
+
* every directory between the two must be a real one: a link or a file there refuses the copy as
|
|
53
|
+
* the input's layout, naming it — the copy is never made where a link points
|
|
54
|
+
* @param sourceLabel - What the build reads, for a write refusal's message
|
|
55
|
+
* @param targetLabel - What a write refusal says the build was writing
|
|
56
|
+
*/
|
|
57
|
+
export async function copyTreeIntoMarketplace(source, target, sourceLabel, targetLabel) {
|
|
58
|
+
// Every file of it, links kept as links: a refusal names the entry the OS refused.
|
|
59
|
+
const walk = { links: 'preserve', side: source.side };
|
|
60
|
+
await proveTreeReadable(source.path, walk);
|
|
61
|
+
await writingMarketplace(`copy ${sourceLabel} into ${targetLabel}`, () => copyTree(source.path, target.root, target.relative, { ...walk, onto: 'fresh' }));
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=marketplace-io.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace-io.js","sourceRoot":"","sources":["../../src/utils/marketplace-io.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAe,iBAAiB,EAAE,WAAW,EAAE,MAAM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warning, a projection-store
|
|
3
|
+
* notice — and the ONE predicate that says whether this process is a supervised checks child.
|
|
4
|
+
*
|
|
5
|
+
* ## 🔑 Each notice prints once per run, from the process that owes it
|
|
6
|
+
*
|
|
7
|
+
* `vat resources check` runs its checks in a supervised CHILD (`--supervised-by`), and `vat validate`
|
|
8
|
+
* runs that same child as its `checks` phase. The child reads the same config and keys the same
|
|
9
|
+
* store as the process that spawned it, and its stderr is inherited — so a notice both printed was
|
|
10
|
+
* printed twice for one run.
|
|
11
|
+
*
|
|
12
|
+
* Who owes what:
|
|
13
|
+
*
|
|
14
|
+
* - **A config warning** — the invoking process. It loads the config itself in both invocations
|
|
15
|
+
* (`vat validate` to choose its phases, a standalone `vat resources check` to say whether the
|
|
16
|
+
* project declares checks of its own), so a supervised child never prints one.
|
|
17
|
+
* - **The store notice** — whichever process keys the store first. `vat validate` opens its store
|
|
18
|
+
* scope before any phase runs, so a child started as its phase stays quiet; a standalone
|
|
19
|
+
* `vat resources check` opens no store at all — keying one is a git snapshot, unbounded work a
|
|
20
|
+
* supervisor must not do before its watchdog exists — so the child it started prints it.
|
|
21
|
+
*
|
|
22
|
+
* The audience is decided ONCE, at the command's entry, from its explicit argv
|
|
23
|
+
* ({@link isSupervisedChild}), and entered as a scope ({@link withNoticeAudience}) the command's
|
|
24
|
+
* whole run sits inside. Nothing sets it as a side effect, and it ends with the scope — so a unit
|
|
25
|
+
* test, or a second command in one process, starts from "print everything".
|
|
26
|
+
*
|
|
27
|
+
* ## 🔑 "Once" belongs to the same scope
|
|
28
|
+
*
|
|
29
|
+
* A notice that would repeat — one config governing many skills, one unkeyable root asked about by
|
|
30
|
+
* every nested population scope — carries a `once` key, and the ledger that remembers it lives in
|
|
31
|
+
* the SAME scope as the audience: {@link withNoticeAudience} starts a fresh one, and so does the
|
|
32
|
+
* outermost population scope ({@link withNoticeLedger}) — starting from what was printed before it,
|
|
33
|
+
* so a config loaded both before and inside it warns once — so a second command in one process
|
|
34
|
+
* says it again. There is one ledger mechanism, not one per notice kind. Outside every scope (a config
|
|
35
|
+
* loaded before any population, a unit test) the ledger is the process's own, reset with the config
|
|
36
|
+
* cache ({@link resetUnscopedNoticeLedger}).
|
|
37
|
+
*
|
|
38
|
+
* ⚠️ Only NOTICES go through here: news that does not change what the run decides. A refusal's
|
|
39
|
+
* message, and anything that explains the document the child publishes, is the child's to print.
|
|
40
|
+
*/
|
|
41
|
+
/** What a notice is about — which decides which process owes it. */
|
|
42
|
+
export type NoticeKind = 'config' | 'store';
|
|
43
|
+
/** Which notices this process prints. Outside any scope, every one. */
|
|
44
|
+
export type NoticeAudience = Readonly<Record<NoticeKind, boolean>>;
|
|
45
|
+
/** Every notice — the audience of any process that is not a supervised child. */
|
|
46
|
+
export declare const EVERY_NOTICE: NoticeAudience;
|
|
47
|
+
/**
|
|
48
|
+
* Is this process the child a supervisor spawned to run the checks?
|
|
49
|
+
*
|
|
50
|
+
* 🔑 The ONE predicate, read from the explicit argv: `--supervised-by` is what a supervisor hands
|
|
51
|
+
* its child and nothing else passes (the child refuses it unless its parent is the supervisor the
|
|
52
|
+
* value names). Every decision that turns on "am I the child" asks this — which process runs the
|
|
53
|
+
* checks, which prints the "no checks of its own" warning, which notices it owes.
|
|
54
|
+
*
|
|
55
|
+
* @param argv - The command's parsed options
|
|
56
|
+
* @param argv.supervisedBy - The hidden `--supervised-by` value, or undefined
|
|
57
|
+
* @returns True in the supervised child
|
|
58
|
+
*/
|
|
59
|
+
export declare function isSupervisedChild<T extends {
|
|
60
|
+
readonly supervisedBy: string | undefined;
|
|
61
|
+
}>(argv: T): argv is T & {
|
|
62
|
+
readonly supervisedBy: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Run `work` with `audience` deciding which notices this process prints, and a fresh `once` ledger.
|
|
66
|
+
*
|
|
67
|
+
* @param audience - Which notices to print
|
|
68
|
+
* @param work - The command's run
|
|
69
|
+
* @returns Whatever `work` returned
|
|
70
|
+
*/
|
|
71
|
+
export declare function withNoticeAudience<T>(audience: NoticeAudience, work: () => T): T;
|
|
72
|
+
/**
|
|
73
|
+
* Run `work` inside a notice scope: the enclosing one when there is one, else a fresh scope that
|
|
74
|
+
* prints every notice — so `once` means once per command run, never once per process.
|
|
75
|
+
*
|
|
76
|
+
* 🚨 The fresh scope STARTS from what was already printed outside every scope, and copies it: a
|
|
77
|
+
* command loads its config before it opens its population scope (`vat validate`, to choose its
|
|
78
|
+
* phases) and again inside it, so a scope starting empty printed that config warning twice for one
|
|
79
|
+
* run. A copy, not the set itself, so what the scope prints stays its own and the next run says it
|
|
80
|
+
* again.
|
|
81
|
+
*
|
|
82
|
+
* @param work - The run
|
|
83
|
+
* @returns Whatever `work` returned
|
|
84
|
+
*/
|
|
85
|
+
export declare function withNoticeLedger<T>(work: () => T): T;
|
|
86
|
+
/** Forget the `once` notices printed outside every scope — with the config cache they describe. */
|
|
87
|
+
export declare function resetUnscopedNoticeLedger(): void;
|
|
88
|
+
/**
|
|
89
|
+
* Write one notice to the operator's stderr — unless the enclosing scope says another process owes
|
|
90
|
+
* it, or it carries a `once` key this scope has already printed.
|
|
91
|
+
*
|
|
92
|
+
* @param kind - What the notice is about
|
|
93
|
+
* @param message - The notice, without a trailing newline
|
|
94
|
+
* @param once - When set, print this notice at most once per scope for this key
|
|
95
|
+
*/
|
|
96
|
+
export declare function noticeToOperator(kind: NoticeKind, message: string, once?: string): void;
|
|
97
|
+
//# sourceMappingURL=operator-notices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-notices.d.ts","sourceRoot":"","sources":["../../src/utils/operator-notices.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAIH,oEAAoE;AACpE,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE5C,uEAAuE;AACvE,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;AAEnE,iFAAiF;AACjF,eAAO,MAAM,YAAY,EAAE,cAA8C,CAAC;AAa1E;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EACvF,IAAI,EAAE,CAAC,GACN,IAAI,IAAI,CAAC,GAAG;IAAE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAAE,CAE/C;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAEhF;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAIpD;AAED,mGAAmG;AACnG,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAUvF"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The ONE route for a notice addressed to the operator — a config-loader warning, a projection-store
|
|
3
|
+
* notice — and the ONE predicate that says whether this process is a supervised checks child.
|
|
4
|
+
*
|
|
5
|
+
* ## 🔑 Each notice prints once per run, from the process that owes it
|
|
6
|
+
*
|
|
7
|
+
* `vat resources check` runs its checks in a supervised CHILD (`--supervised-by`), and `vat validate`
|
|
8
|
+
* runs that same child as its `checks` phase. The child reads the same config and keys the same
|
|
9
|
+
* store as the process that spawned it, and its stderr is inherited — so a notice both printed was
|
|
10
|
+
* printed twice for one run.
|
|
11
|
+
*
|
|
12
|
+
* Who owes what:
|
|
13
|
+
*
|
|
14
|
+
* - **A config warning** — the invoking process. It loads the config itself in both invocations
|
|
15
|
+
* (`vat validate` to choose its phases, a standalone `vat resources check` to say whether the
|
|
16
|
+
* project declares checks of its own), so a supervised child never prints one.
|
|
17
|
+
* - **The store notice** — whichever process keys the store first. `vat validate` opens its store
|
|
18
|
+
* scope before any phase runs, so a child started as its phase stays quiet; a standalone
|
|
19
|
+
* `vat resources check` opens no store at all — keying one is a git snapshot, unbounded work a
|
|
20
|
+
* supervisor must not do before its watchdog exists — so the child it started prints it.
|
|
21
|
+
*
|
|
22
|
+
* The audience is decided ONCE, at the command's entry, from its explicit argv
|
|
23
|
+
* ({@link isSupervisedChild}), and entered as a scope ({@link withNoticeAudience}) the command's
|
|
24
|
+
* whole run sits inside. Nothing sets it as a side effect, and it ends with the scope — so a unit
|
|
25
|
+
* test, or a second command in one process, starts from "print everything".
|
|
26
|
+
*
|
|
27
|
+
* ## 🔑 "Once" belongs to the same scope
|
|
28
|
+
*
|
|
29
|
+
* A notice that would repeat — one config governing many skills, one unkeyable root asked about by
|
|
30
|
+
* every nested population scope — carries a `once` key, and the ledger that remembers it lives in
|
|
31
|
+
* the SAME scope as the audience: {@link withNoticeAudience} starts a fresh one, and so does the
|
|
32
|
+
* outermost population scope ({@link withNoticeLedger}) — starting from what was printed before it,
|
|
33
|
+
* so a config loaded both before and inside it warns once — so a second command in one process
|
|
34
|
+
* says it again. There is one ledger mechanism, not one per notice kind. Outside every scope (a config
|
|
35
|
+
* loaded before any population, a unit test) the ledger is the process's own, reset with the config
|
|
36
|
+
* cache ({@link resetUnscopedNoticeLedger}).
|
|
37
|
+
*
|
|
38
|
+
* ⚠️ Only NOTICES go through here: news that does not change what the run decides. A refusal's
|
|
39
|
+
* message, and anything that explains the document the child publishes, is the child's to print.
|
|
40
|
+
*/
|
|
41
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
42
|
+
/** Every notice — the audience of any process that is not a supervised child. */
|
|
43
|
+
export const EVERY_NOTICE = { config: true, store: true };
|
|
44
|
+
const noticeScope = new AsyncLocalStorage();
|
|
45
|
+
/** The `once` ledger outside every scope. */
|
|
46
|
+
const unscopedPrinted = new Set();
|
|
47
|
+
/**
|
|
48
|
+
* Is this process the child a supervisor spawned to run the checks?
|
|
49
|
+
*
|
|
50
|
+
* 🔑 The ONE predicate, read from the explicit argv: `--supervised-by` is what a supervisor hands
|
|
51
|
+
* its child and nothing else passes (the child refuses it unless its parent is the supervisor the
|
|
52
|
+
* value names). Every decision that turns on "am I the child" asks this — which process runs the
|
|
53
|
+
* checks, which prints the "no checks of its own" warning, which notices it owes.
|
|
54
|
+
*
|
|
55
|
+
* @param argv - The command's parsed options
|
|
56
|
+
* @param argv.supervisedBy - The hidden `--supervised-by` value, or undefined
|
|
57
|
+
* @returns True in the supervised child
|
|
58
|
+
*/
|
|
59
|
+
export function isSupervisedChild(argv) {
|
|
60
|
+
return argv.supervisedBy !== undefined;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Run `work` with `audience` deciding which notices this process prints, and a fresh `once` ledger.
|
|
64
|
+
*
|
|
65
|
+
* @param audience - Which notices to print
|
|
66
|
+
* @param work - The command's run
|
|
67
|
+
* @returns Whatever `work` returned
|
|
68
|
+
*/
|
|
69
|
+
export function withNoticeAudience(audience, work) {
|
|
70
|
+
return noticeScope.run({ audience, printed: new Set() }, work);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Run `work` inside a notice scope: the enclosing one when there is one, else a fresh scope that
|
|
74
|
+
* prints every notice — so `once` means once per command run, never once per process.
|
|
75
|
+
*
|
|
76
|
+
* 🚨 The fresh scope STARTS from what was already printed outside every scope, and copies it: a
|
|
77
|
+
* command loads its config before it opens its population scope (`vat validate`, to choose its
|
|
78
|
+
* phases) and again inside it, so a scope starting empty printed that config warning twice for one
|
|
79
|
+
* run. A copy, not the set itself, so what the scope prints stays its own and the next run says it
|
|
80
|
+
* again.
|
|
81
|
+
*
|
|
82
|
+
* @param work - The run
|
|
83
|
+
* @returns Whatever `work` returned
|
|
84
|
+
*/
|
|
85
|
+
export function withNoticeLedger(work) {
|
|
86
|
+
return noticeScope.getStore() === undefined
|
|
87
|
+
? noticeScope.run({ audience: EVERY_NOTICE, printed: new Set(unscopedPrinted) }, work)
|
|
88
|
+
: work();
|
|
89
|
+
}
|
|
90
|
+
/** Forget the `once` notices printed outside every scope — with the config cache they describe. */
|
|
91
|
+
export function resetUnscopedNoticeLedger() {
|
|
92
|
+
unscopedPrinted.clear();
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Write one notice to the operator's stderr — unless the enclosing scope says another process owes
|
|
96
|
+
* it, or it carries a `once` key this scope has already printed.
|
|
97
|
+
*
|
|
98
|
+
* @param kind - What the notice is about
|
|
99
|
+
* @param message - The notice, without a trailing newline
|
|
100
|
+
* @param once - When set, print this notice at most once per scope for this key
|
|
101
|
+
*/
|
|
102
|
+
export function noticeToOperator(kind, message, once) {
|
|
103
|
+
const scope = noticeScope.getStore();
|
|
104
|
+
if (!(scope?.audience ?? EVERY_NOTICE)[kind])
|
|
105
|
+
return;
|
|
106
|
+
if (once !== undefined) {
|
|
107
|
+
const printed = scope?.printed ?? unscopedPrinted;
|
|
108
|
+
const key = `${kind}:${once}`;
|
|
109
|
+
if (printed.has(key))
|
|
110
|
+
return;
|
|
111
|
+
printed.add(key);
|
|
112
|
+
}
|
|
113
|
+
process.stderr.write(`${message}\n`);
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=operator-notices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-notices.js","sourceRoot":"","sources":["../../src/utils/operator-notices.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAQrD,iFAAiF;AACjF,MAAM,CAAC,MAAM,YAAY,GAAmB,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAQ1E,MAAM,WAA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AC,GAAG,CAAC;YAAE,OAAO;QAC7B,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnB,CAAC;IACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,OAAO,IAAI,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
* error naming the package to install, and nothing more — the point is that
|
|
22
22
|
* the failure is readable, not that it is survivable.
|
|
23
23
|
*/
|
|
24
|
+
import type { ReportVerb } from '../report-schemas.js';
|
|
25
|
+
import { CommandRefusalError } from './command-refusal.js';
|
|
24
26
|
/**
|
|
25
27
|
* Whether a thrown value is Node's "module not installed" error.
|
|
26
28
|
*
|
|
@@ -32,23 +34,19 @@
|
|
|
32
34
|
*/
|
|
33
35
|
export declare function isModuleMissing(error: unknown): boolean;
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
+
* The refusal for an uninstalled backend: `BACKEND_UNAVAILABLE`, exit **2** — a
|
|
38
|
+
* fact about the installation, not about the user's corpus, and a caller
|
|
39
|
+
* scripting `vat` must be able to tell those apart from the exit code alone.
|
|
37
40
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* Exported for the backends that are not selected by a Commander action —
|
|
44
|
-
* {@link lazyAction} is the shape most take, but a store chosen by an
|
|
45
|
-
* environment variable is loaded from inside a command rather than in place of
|
|
46
|
-
* one, and it must fail the same way.
|
|
41
|
+
* Returned, not thrown and not written, so the verb that needed the backend
|
|
42
|
+
* publishes it in its own shape: {@link lazyAction} ends through the writer, and
|
|
43
|
+
* a store chosen from inside a command (the projection store) throws it into
|
|
44
|
+
* that command's catch.
|
|
47
45
|
*
|
|
48
46
|
* @param backend - What to name and how to install it
|
|
49
|
-
* @returns
|
|
47
|
+
* @returns The coded refusal; its message names the package and the install command
|
|
50
48
|
*/
|
|
51
|
-
export declare function
|
|
49
|
+
export declare function missingBackendError(backend: OptionalBackend): CommandRefusalError;
|
|
52
50
|
/** One optional backend, as a user is told to install it. */
|
|
53
51
|
export interface OptionalBackend {
|
|
54
52
|
/** Human name used in the error message, e.g. `RAG`. */
|
|
@@ -65,14 +63,19 @@ export interface OptionalBackend {
|
|
|
65
63
|
* stay eagerly available, which is exactly why the split is at the action
|
|
66
64
|
* rather than at the command.
|
|
67
65
|
*
|
|
66
|
+
* An absent backend ends the run through the writer as `verb`'s
|
|
67
|
+
* `BACKEND_UNAVAILABLE` refusal — every leaf behind this seam is a report verb
|
|
68
|
+
* with no `--format` and no `--strict`, so the document is YAML and the gate fixed.
|
|
69
|
+
*
|
|
70
|
+
* @param verb - The report verb the action is, for the refusal document
|
|
68
71
|
* @param backend - What to name in the error when the import fails to resolve
|
|
69
72
|
* @param load - Imports the module and returns the handler out of it
|
|
70
73
|
* @returns A Commander action that loads, then delegates
|
|
71
74
|
*
|
|
72
75
|
* @example
|
|
73
76
|
* ```typescript
|
|
74
|
-
* .action(lazyAction(RAG_BACKEND, async () => (await import('./index-command.js')).indexCommand))
|
|
77
|
+
* .action(lazyAction('rag index', RAG_BACKEND, async () => (await import('./index-command.js')).indexCommand))
|
|
75
78
|
* ```
|
|
76
79
|
*/
|
|
77
|
-
export declare function lazyAction<Args extends readonly unknown[]>(backend: OptionalBackend, load: () => Promise<(...args: Args) => unknown>): (...args: Args) => Promise<void>;
|
|
80
|
+
export declare function lazyAction<Args extends readonly unknown[]>(verb: ReportVerb, backend: OptionalBackend, load: () => Promise<(...args: Args) => unknown>): (...args: Args) => Promise<void>;
|
|
78
81
|
//# sourceMappingURL=optional-backend.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optional-backend.d.ts","sourceRoot":"","sources":["../../src/utils/optional-backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;
|
|
1
|
+
{"version":3,"file":"optional-backend.d.ts","sourceRoot":"","sources":["../../src/utils/optional-backend.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAOH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAa3D;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAOvD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,eAAe,GAAG,mBAAmB,CAOjF;AAED,6DAA6D;AAC7D,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,0EAA0E;IAC1E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,UAAU,CAAC,IAAI,SAAS,SAAS,OAAO,EAAE,EACxD,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,eAAe,EACxB,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,GAC9C,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAalC"}
|