@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
|
@@ -38,19 +38,44 @@
|
|
|
38
38
|
* exactly and automatically by the schema the reader compiles with.
|
|
39
39
|
*/
|
|
40
40
|
import { appendFileSync } from 'node:fs';
|
|
41
|
+
import { POPULATION_ORIGINS } from '@vibe-agent-toolkit/resources';
|
|
42
|
+
import { ExitCode } from '@vibe-agent-toolkit/schema';
|
|
41
43
|
import { z } from 'zod';
|
|
44
|
+
import { LENS_POPULATIONS } from '../../utils/lens-population.js';
|
|
45
|
+
/**
|
|
46
|
+
* The child has booted — Node is up, the CLI is loaded, and no work has begun.
|
|
47
|
+
*
|
|
48
|
+
* 🚨 **The defect this closes: the population was charged the child's boot.**
|
|
49
|
+
* The watchdog's clock starts at the spawn, and the population line used to be
|
|
50
|
+
* the child's FIRST line — so Node's startup and the CLI's module graph were
|
|
51
|
+
* silently billed to the one unit the budget is already a total bound for. On a
|
|
52
|
+
* loaded runner the boot alone grows by seconds, and a run whose tree was fine
|
|
53
|
+
* was killed "during population" for its neighbours' load. This line closes the
|
|
54
|
+
* boot's window and opens the population's own, so the budget measures work.
|
|
55
|
+
*
|
|
56
|
+
* It carries no fields: the fact that it was written is the whole message. Its
|
|
57
|
+
* ABSENCE is what {@link unitInFlight} reads as `startup` — a run killed before
|
|
58
|
+
* it could say anything at all.
|
|
59
|
+
*/
|
|
60
|
+
const StartedEntrySchema = z.object({
|
|
61
|
+
kind: z.literal('started'),
|
|
62
|
+
}).strict();
|
|
42
63
|
/**
|
|
43
64
|
* The population finished — how it was obtained, what it cost, and how much of
|
|
44
65
|
* the tree it covered.
|
|
45
66
|
*
|
|
46
67
|
* Written the instant the projection is ready, because a kill BEFORE this line
|
|
47
|
-
* means there is no projection at all
|
|
48
|
-
*
|
|
49
|
-
*
|
|
68
|
+
* means there is no projection at all: the document the parent publishes then
|
|
69
|
+
* carries its population fields as `null`, not as a value nobody measured. The
|
|
70
|
+
* parent distinguishes those two endings by this line's presence and nothing
|
|
71
|
+
* else, so it must never be written early or optimistically.
|
|
50
72
|
*/
|
|
51
73
|
const PopulationEntrySchema = z.object({
|
|
52
74
|
kind: z.literal('population'),
|
|
53
|
-
population: z.
|
|
75
|
+
population: z.enum(POPULATION_ORIGINS),
|
|
76
|
+
// Carried across for the reason `lensMs` is: an interrupted run's document is
|
|
77
|
+
// rebuilt from these lines alone.
|
|
78
|
+
lensPopulation: z.enum(LENS_POPULATIONS),
|
|
54
79
|
populationMs: z.number(),
|
|
55
80
|
// Carried across the process boundary rather than recomputed, for the same
|
|
56
81
|
// reason every other field here is: a killed run's document is rebuilt from
|
|
@@ -122,6 +147,7 @@ const ChecksCompleteEntrySchema = z.object({
|
|
|
122
147
|
kind: z.literal('checks-complete'),
|
|
123
148
|
}).strict();
|
|
124
149
|
const ProgressEntrySchema = z.discriminatedUnion('kind', [
|
|
150
|
+
StartedEntrySchema,
|
|
125
151
|
PopulationEntrySchema,
|
|
126
152
|
StartEntrySchema,
|
|
127
153
|
CheckEntrySchema,
|
|
@@ -176,15 +202,23 @@ function readLine(line) {
|
|
|
176
202
|
*
|
|
177
203
|
* 🔑 The population sentinel is keyed on the population line's ABSENCE rather
|
|
178
204
|
* than on there being no `start` lines. Those are different states: a run killed
|
|
179
|
-
* during population has no projection
|
|
180
|
-
*
|
|
205
|
+
* during population has no projection, while a run killed between the population
|
|
206
|
+
* and the first statement has one.
|
|
207
|
+
*
|
|
208
|
+
* 🔑 The startup sentinel is keyed the same way, on the `started` line's
|
|
209
|
+
* absence — never on an empty log. Before that line the child was still loading
|
|
210
|
+
* Node and the CLI, nothing had touched the tree, and advice about sizing the
|
|
211
|
+
* budget against a population would be advice about a unit that never began.
|
|
181
212
|
*
|
|
182
213
|
* @param entries - What {@link parseProgressLog} recovered
|
|
183
214
|
* @returns The unit in flight
|
|
184
215
|
*/
|
|
185
216
|
export function unitInFlight(entries) {
|
|
186
|
-
if (!entries.some((entry) => entry.kind === 'population'))
|
|
187
|
-
return
|
|
217
|
+
if (!entries.some((entry) => entry.kind === 'population')) {
|
|
218
|
+
return entries.some((entry) => entry.kind === 'started')
|
|
219
|
+
? { kind: 'population' }
|
|
220
|
+
: { kind: 'startup' };
|
|
221
|
+
}
|
|
188
222
|
const completed = new Set(entries.filter((entry) => entry.kind === 'check').map((entry) => entry.name));
|
|
189
223
|
// 🪤 The `completed` set is what makes this unique, NOT the scan direction.
|
|
190
224
|
// The runner is serial — one statement at a time, its cost filed before the
|
|
@@ -211,12 +245,79 @@ export function unitInFlight(entries) {
|
|
|
211
245
|
* queued behind work the event loop never gets back to, so the line naming the
|
|
212
246
|
* rule that hangs would exist only in memory — where `SIGKILL` destroys it.
|
|
213
247
|
*
|
|
214
|
-
* @param
|
|
248
|
+
* @param child - Where the supervisor is watching
|
|
215
249
|
* @returns A writer that appends one entry and returns once it is on disk
|
|
216
250
|
*/
|
|
217
|
-
export function createProgressWriter(
|
|
251
|
+
export function createProgressWriter(child) {
|
|
218
252
|
return (entry) => {
|
|
219
|
-
appendFileSync(
|
|
253
|
+
appendFileSync(child.progressLog, `${JSON.stringify(entry)}\n`, 'utf-8');
|
|
220
254
|
};
|
|
221
255
|
}
|
|
256
|
+
/**
|
|
257
|
+
* End this supervised child the moment its supervisor is gone, however the supervisor ended.
|
|
258
|
+
*
|
|
259
|
+
* ## 🚨 Why: the bound lives in the supervisor
|
|
260
|
+
*
|
|
261
|
+
* A supervisor that dies where none of its own code runs — SIGKILL, an OOM killer — cannot take the
|
|
262
|
+
* child down, and the child would run on with nothing bounding it and nobody reading what it
|
|
263
|
+
* publishes. This is the POSIX path: on Windows an outside kill of the supervisor
|
|
264
|
+
* (`TerminateProcess`) ends this process too, before any of its code runs, because libuv spawns it
|
|
265
|
+
* in a kill-on-close job object whose only handle the supervisor holds. The pipe below is there on
|
|
266
|
+
* Windows as well, and harmless.
|
|
267
|
+
*
|
|
268
|
+
* ## 🔑 How: the supervisor holds this process's stdin open and never writes to it
|
|
269
|
+
*
|
|
270
|
+
* The supervisor spawns the child with stdin as a pipe whose write end only it holds, and it never
|
|
271
|
+
* writes or ends it. However the supervisor ends, the OS closes that end, and this process reads
|
|
272
|
+
* end-of-file — with no pid to compare and no liveness probe to misread (a pid
|
|
273
|
+
* reused, or a probe refused `EPERM` in a sandbox, both used to read wrongly). On EOF, a read error
|
|
274
|
+
* or a close, the child ends at once: exit 2 and ONE stderr line, no document — nobody is left to
|
|
275
|
+
* read one. It ends by `process.exit`, never by a signal handler: the child must never install one
|
|
276
|
+
* (see `check-supervisor.ts`). Nothing else in the child reads stdin.
|
|
277
|
+
*
|
|
278
|
+
* The stream is UNREFERENCED, so a child that finishes is never held open by it.
|
|
279
|
+
*
|
|
280
|
+
* ⚠️ **It fires when this process's event loop next turns, and only then.** The population is
|
|
281
|
+
* asynchronous I/O, so an orphan there ends at once. The checks run one after another
|
|
282
|
+
* synchronously, and a statement blocked inside SQLite reaches nothing until it returns — so an
|
|
283
|
+
* orphan in the middle of them runs on until the LAST check returns. It then ends before it
|
|
284
|
+
* publishes anything, because the child turns its loop first ({@link letSupervisorLossSurface}).
|
|
285
|
+
*
|
|
286
|
+
* @param supervisorPid - The supervisor's pid, named in the stderr line
|
|
287
|
+
* @param stdin - This process's stdin: the caller passes `process.stdin`; a test hands it a stream
|
|
288
|
+
* it owns
|
|
289
|
+
*/
|
|
290
|
+
export function endWhenSupervisorGone(supervisorPid, stdin) {
|
|
291
|
+
let ended = false;
|
|
292
|
+
const end = () => {
|
|
293
|
+
if (ended)
|
|
294
|
+
return;
|
|
295
|
+
ended = true;
|
|
296
|
+
process.stderr.write(`vat resources check: the process supervising this checks run (pid ${String(supervisorPid)})`
|
|
297
|
+
+ ' is gone, so nothing bounds the run or reads its report. Ending it unfinished.\n');
|
|
298
|
+
process.exit(ExitCode.ERROR);
|
|
299
|
+
};
|
|
300
|
+
stdin.once('end', end);
|
|
301
|
+
stdin.once('close', end);
|
|
302
|
+
stdin.once('error', end);
|
|
303
|
+
// Flowing, so end-of-file is read at all; the supervisor never writes, so nothing arrives.
|
|
304
|
+
stdin.resume();
|
|
305
|
+
stdin.unref?.();
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* Let a supervisor's loss END this child before it publishes: turn the event loop twice, so an
|
|
309
|
+
* end-of-file that has waited on stdin since the supervisor died — while the synchronous check loop
|
|
310
|
+
* held the thread — is read, and {@link endWhenSupervisorGone} exits before any document is written.
|
|
311
|
+
*
|
|
312
|
+
* Twice, because the first turn may begin after this iteration's poll phase: the second always
|
|
313
|
+
* crosses one. Without it, a child orphaned inside a check wrote its document to a pipe nobody
|
|
314
|
+
* reads and exited 0.
|
|
315
|
+
*
|
|
316
|
+
* @returns A promise that resolves after two turns — when the child is still supervised
|
|
317
|
+
*/
|
|
318
|
+
export async function letSupervisorLossSurface() {
|
|
319
|
+
const turn = () => new Promise((resolve) => setImmediate(resolve));
|
|
320
|
+
await turn();
|
|
321
|
+
await turn();
|
|
322
|
+
}
|
|
222
323
|
//# sourceMappingURL=check-progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-progress.js","sourceRoot":"","sources":["../../../src/commands/resources/check-progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB
|
|
1
|
+
{"version":3,"file":"check-progress.js","sourceRoot":"","sources":["../../../src/commands/resources/check-progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,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AC,MAAM,EAAE,CAAC;IACf,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC;AAClB,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB;IAC5C,MAAM,IAAI,GAAG,GAAkB,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC;IAClF,MAAM,IAAI,EAAE,CAAC;IACb,MAAM,IAAI,EAAE,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat resources check` publishes, apart from the command.
|
|
3
|
+
*
|
|
4
|
+
* A sibling module because the published-shape registry imports it and the
|
|
5
|
+
* command imports the writer that imports the registry: a schema declared in
|
|
6
|
+
* the command module itself would be an import cycle, read before it is
|
|
7
|
+
* initialised.
|
|
8
|
+
*/
|
|
9
|
+
import { type Report } from '@vibe-agent-toolkit/schema';
|
|
10
|
+
import { z } from 'zod';
|
|
11
|
+
import type { ExaminedDeclaration } from '../../utils/run-integrity.js';
|
|
12
|
+
/**
|
|
13
|
+
* A signed bound on what the derived rows settle, as `@vibe-agent-toolkit/resources`
|
|
14
|
+
* states it.
|
|
15
|
+
*
|
|
16
|
+
* ⛔ The direction vocabulary is IMPORTED, never respelled: `LIMIT_DIRECTIONS`
|
|
17
|
+
* is the one list, tied to `StatedLimit['direction']` by `satisfies`, so a
|
|
18
|
+
* fifth direction cannot leave this schema quietly rejecting it.
|
|
19
|
+
*/
|
|
20
|
+
export declare const StatedLimitSchema: z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
direction: z.ZodEnum<["over-report", "under-report", "scope", "assumption"]>;
|
|
23
|
+
statement: z.ZodString;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
id: string;
|
|
26
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
27
|
+
statement: string;
|
|
28
|
+
}, {
|
|
29
|
+
id: string;
|
|
30
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
31
|
+
statement: string;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* What the check run reports beyond its findings.
|
|
35
|
+
*
|
|
36
|
+
* The envelope's `examined` is `membersEnumerated` — what the rules ran
|
|
37
|
+
* AGAINST. `checksRun` is the other denominator, the number of RULES, and both
|
|
38
|
+
* are needed: zero findings is the pass condition and either number at zero
|
|
39
|
+
* makes that pass vacuous.
|
|
40
|
+
*/
|
|
41
|
+
declare const CheckDataSchema: z.ZodObject<{
|
|
42
|
+
root: z.ZodString;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the projection was derived this run or read from the store.
|
|
45
|
+
*
|
|
46
|
+
* 🔑 `null` — together with `populationSecs`, `lensSecs` and
|
|
47
|
+
* `lensesEvaluated` — exactly when the run was interrupted before its
|
|
48
|
+
* population completed. There was no projection, so there is no origin, cost
|
|
49
|
+
* or lens set to report, and a `RESOURCE_CHECK_BROKEN` finding says why.
|
|
50
|
+
*/
|
|
51
|
+
population: z.ZodNullable<z.ZodEnum<["store" | "derived", ...("store" | "derived")[]]>>;
|
|
52
|
+
/** What the population cost — charged to no check, see `CheckCost`. Null as `population` is. */
|
|
53
|
+
populationSecs: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
/** What evaluating the lenses cost, paid before the first statement ran. Null as `population` is. */
|
|
55
|
+
lensSecs: z.ZodNullable<z.ZodNumber>;
|
|
56
|
+
/**
|
|
57
|
+
* Which lenses that covers — the derived relations this run's checks could
|
|
58
|
+
* actually read. 🔑 An empty list says "no check asked for a derived relation"
|
|
59
|
+
* rather than "a lens stopped running"; without it `lensSecs: 0` is the same
|
|
60
|
+
* document either way, and a gate whose rules silently read empty relations is
|
|
61
|
+
* a gate that cannot fail. Null as `population` is — `[]` would claim "no
|
|
62
|
+
* check asked", about a run that never got far enough to ask.
|
|
63
|
+
*/
|
|
64
|
+
lensesEvaluated: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
65
|
+
/**
|
|
66
|
+
* Where the lenses' own populations came from: `none` when no evaluated lens
|
|
67
|
+
* populated anything (no statement named a claude-context relation), `store`
|
|
68
|
+
* when every one that did was served from the store, otherwise `derived`.
|
|
69
|
+
* Null as `population` is — no population happened at all.
|
|
70
|
+
*/
|
|
71
|
+
lensPopulation: z.ZodNullable<z.ZodEnum<["none", "store" | "derived", ...("store" | "derived")[]]>>;
|
|
72
|
+
/**
|
|
73
|
+
* The prose frame {@link CheckDataSchema.limits} is read under. Present
|
|
74
|
+
* exactly when a lens with stated bounds was evaluated.
|
|
75
|
+
*/
|
|
76
|
+
boundsStatement: z.ZodOptional<z.ZodString>;
|
|
77
|
+
/**
|
|
78
|
+
* What the derived rows this run could read do NOT settle — signed and
|
|
79
|
+
* directional, the same list `vat claude context` publishes beside its own
|
|
80
|
+
* answer. Absent when no bounded lens ran: an empty list would claim nothing
|
|
81
|
+
* bounds the answer, which is stronger than "the answer holds no such row".
|
|
82
|
+
*/
|
|
83
|
+
limits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
direction: z.ZodEnum<["over-report", "under-report", "scope", "assumption"]>;
|
|
86
|
+
statement: z.ZodString;
|
|
87
|
+
}, "strict", z.ZodTypeAny, {
|
|
88
|
+
id: string;
|
|
89
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
90
|
+
statement: string;
|
|
91
|
+
}, {
|
|
92
|
+
id: string;
|
|
93
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
94
|
+
statement: string;
|
|
95
|
+
}>, "many">>;
|
|
96
|
+
/** The number of rules that EXECUTED. Derived from `checks`, never carried beside it. */
|
|
97
|
+
checksRun: z.ZodNumber;
|
|
98
|
+
/** What each rule cost, directly under the denominator it is the breakdown of. */
|
|
99
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
/** Three significant figures, so a 0.4 ms rule serializes as 0.0004 rather than a zero that reads as "not measured". */
|
|
102
|
+
durationSecs: z.ZodNumber;
|
|
103
|
+
/** Rows the statement returned. ABSENT, never 0, when the statement did not complete. */
|
|
104
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
broken: z.ZodOptional<z.ZodLiteral<true>>;
|
|
106
|
+
/** Present and `true` only for a rule VAT supplied — see `CheckCost.builtin` in `check.ts`. */
|
|
107
|
+
builtin: z.ZodOptional<z.ZodLiteral<true>>;
|
|
108
|
+
}, "strict", z.ZodTypeAny, {
|
|
109
|
+
name: string;
|
|
110
|
+
durationSecs: number;
|
|
111
|
+
rows?: number | undefined;
|
|
112
|
+
broken?: true | undefined;
|
|
113
|
+
builtin?: true | undefined;
|
|
114
|
+
}, {
|
|
115
|
+
name: string;
|
|
116
|
+
durationSecs: number;
|
|
117
|
+
rows?: number | undefined;
|
|
118
|
+
broken?: true | undefined;
|
|
119
|
+
builtin?: true | undefined;
|
|
120
|
+
}>, "many">;
|
|
121
|
+
}, "strict", z.ZodTypeAny, {
|
|
122
|
+
root: string;
|
|
123
|
+
checks: {
|
|
124
|
+
name: string;
|
|
125
|
+
durationSecs: number;
|
|
126
|
+
rows?: number | undefined;
|
|
127
|
+
broken?: true | undefined;
|
|
128
|
+
builtin?: true | undefined;
|
|
129
|
+
}[];
|
|
130
|
+
population: "store" | "derived" | null;
|
|
131
|
+
populationSecs: number | null;
|
|
132
|
+
lensSecs: number | null;
|
|
133
|
+
lensesEvaluated: string[] | null;
|
|
134
|
+
lensPopulation: "store" | "none" | "derived" | null;
|
|
135
|
+
checksRun: number;
|
|
136
|
+
boundsStatement?: string | undefined;
|
|
137
|
+
limits?: {
|
|
138
|
+
id: string;
|
|
139
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
140
|
+
statement: string;
|
|
141
|
+
}[] | undefined;
|
|
142
|
+
}, {
|
|
143
|
+
root: string;
|
|
144
|
+
checks: {
|
|
145
|
+
name: string;
|
|
146
|
+
durationSecs: number;
|
|
147
|
+
rows?: number | undefined;
|
|
148
|
+
broken?: true | undefined;
|
|
149
|
+
builtin?: true | undefined;
|
|
150
|
+
}[];
|
|
151
|
+
population: "store" | "derived" | null;
|
|
152
|
+
populationSecs: number | null;
|
|
153
|
+
lensSecs: number | null;
|
|
154
|
+
lensesEvaluated: string[] | null;
|
|
155
|
+
lensPopulation: "store" | "none" | "derived" | null;
|
|
156
|
+
checksRun: number;
|
|
157
|
+
boundsStatement?: string | undefined;
|
|
158
|
+
limits?: {
|
|
159
|
+
id: string;
|
|
160
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
161
|
+
statement: string;
|
|
162
|
+
}[] | undefined;
|
|
163
|
+
}>;
|
|
164
|
+
export type CheckData = z.infer<typeof CheckDataSchema>;
|
|
165
|
+
/** The document this command publishes. */
|
|
166
|
+
export declare const CHECK_REPORT_SCHEMA: import("@vibe-agent-toolkit/schema").ReportZodSchema<z.ZodObject<{
|
|
167
|
+
root: z.ZodString;
|
|
168
|
+
/**
|
|
169
|
+
* Whether the projection was derived this run or read from the store.
|
|
170
|
+
*
|
|
171
|
+
* 🔑 `null` — together with `populationSecs`, `lensSecs` and
|
|
172
|
+
* `lensesEvaluated` — exactly when the run was interrupted before its
|
|
173
|
+
* population completed. There was no projection, so there is no origin, cost
|
|
174
|
+
* or lens set to report, and a `RESOURCE_CHECK_BROKEN` finding says why.
|
|
175
|
+
*/
|
|
176
|
+
population: z.ZodNullable<z.ZodEnum<["store" | "derived", ...("store" | "derived")[]]>>;
|
|
177
|
+
/** What the population cost — charged to no check, see `CheckCost`. Null as `population` is. */
|
|
178
|
+
populationSecs: z.ZodNullable<z.ZodNumber>;
|
|
179
|
+
/** What evaluating the lenses cost, paid before the first statement ran. Null as `population` is. */
|
|
180
|
+
lensSecs: z.ZodNullable<z.ZodNumber>;
|
|
181
|
+
/**
|
|
182
|
+
* Which lenses that covers — the derived relations this run's checks could
|
|
183
|
+
* actually read. 🔑 An empty list says "no check asked for a derived relation"
|
|
184
|
+
* rather than "a lens stopped running"; without it `lensSecs: 0` is the same
|
|
185
|
+
* document either way, and a gate whose rules silently read empty relations is
|
|
186
|
+
* a gate that cannot fail. Null as `population` is — `[]` would claim "no
|
|
187
|
+
* check asked", about a run that never got far enough to ask.
|
|
188
|
+
*/
|
|
189
|
+
lensesEvaluated: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
|
|
190
|
+
/**
|
|
191
|
+
* Where the lenses' own populations came from: `none` when no evaluated lens
|
|
192
|
+
* populated anything (no statement named a claude-context relation), `store`
|
|
193
|
+
* when every one that did was served from the store, otherwise `derived`.
|
|
194
|
+
* Null as `population` is — no population happened at all.
|
|
195
|
+
*/
|
|
196
|
+
lensPopulation: z.ZodNullable<z.ZodEnum<["none", "store" | "derived", ...("store" | "derived")[]]>>;
|
|
197
|
+
/**
|
|
198
|
+
* The prose frame {@link CheckDataSchema.limits} is read under. Present
|
|
199
|
+
* exactly when a lens with stated bounds was evaluated.
|
|
200
|
+
*/
|
|
201
|
+
boundsStatement: z.ZodOptional<z.ZodString>;
|
|
202
|
+
/**
|
|
203
|
+
* What the derived rows this run could read do NOT settle — signed and
|
|
204
|
+
* directional, the same list `vat claude context` publishes beside its own
|
|
205
|
+
* answer. Absent when no bounded lens ran: an empty list would claim nothing
|
|
206
|
+
* bounds the answer, which is stronger than "the answer holds no such row".
|
|
207
|
+
*/
|
|
208
|
+
limits: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
direction: z.ZodEnum<["over-report", "under-report", "scope", "assumption"]>;
|
|
211
|
+
statement: z.ZodString;
|
|
212
|
+
}, "strict", z.ZodTypeAny, {
|
|
213
|
+
id: string;
|
|
214
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
215
|
+
statement: string;
|
|
216
|
+
}, {
|
|
217
|
+
id: string;
|
|
218
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
219
|
+
statement: string;
|
|
220
|
+
}>, "many">>;
|
|
221
|
+
/** The number of rules that EXECUTED. Derived from `checks`, never carried beside it. */
|
|
222
|
+
checksRun: z.ZodNumber;
|
|
223
|
+
/** What each rule cost, directly under the denominator it is the breakdown of. */
|
|
224
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
225
|
+
name: z.ZodString;
|
|
226
|
+
/** Three significant figures, so a 0.4 ms rule serializes as 0.0004 rather than a zero that reads as "not measured". */
|
|
227
|
+
durationSecs: z.ZodNumber;
|
|
228
|
+
/** Rows the statement returned. ABSENT, never 0, when the statement did not complete. */
|
|
229
|
+
rows: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
broken: z.ZodOptional<z.ZodLiteral<true>>;
|
|
231
|
+
/** Present and `true` only for a rule VAT supplied — see `CheckCost.builtin` in `check.ts`. */
|
|
232
|
+
builtin: z.ZodOptional<z.ZodLiteral<true>>;
|
|
233
|
+
}, "strict", z.ZodTypeAny, {
|
|
234
|
+
name: string;
|
|
235
|
+
durationSecs: number;
|
|
236
|
+
rows?: number | undefined;
|
|
237
|
+
broken?: true | undefined;
|
|
238
|
+
builtin?: true | undefined;
|
|
239
|
+
}, {
|
|
240
|
+
name: string;
|
|
241
|
+
durationSecs: number;
|
|
242
|
+
rows?: number | undefined;
|
|
243
|
+
broken?: true | undefined;
|
|
244
|
+
builtin?: true | undefined;
|
|
245
|
+
}>, "many">;
|
|
246
|
+
}, "strict", z.ZodTypeAny, {
|
|
247
|
+
root: string;
|
|
248
|
+
checks: {
|
|
249
|
+
name: string;
|
|
250
|
+
durationSecs: number;
|
|
251
|
+
rows?: number | undefined;
|
|
252
|
+
broken?: true | undefined;
|
|
253
|
+
builtin?: true | undefined;
|
|
254
|
+
}[];
|
|
255
|
+
population: "store" | "derived" | null;
|
|
256
|
+
populationSecs: number | null;
|
|
257
|
+
lensSecs: number | null;
|
|
258
|
+
lensesEvaluated: string[] | null;
|
|
259
|
+
lensPopulation: "store" | "none" | "derived" | null;
|
|
260
|
+
checksRun: number;
|
|
261
|
+
boundsStatement?: string | undefined;
|
|
262
|
+
limits?: {
|
|
263
|
+
id: string;
|
|
264
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
265
|
+
statement: string;
|
|
266
|
+
}[] | undefined;
|
|
267
|
+
}, {
|
|
268
|
+
root: string;
|
|
269
|
+
checks: {
|
|
270
|
+
name: string;
|
|
271
|
+
durationSecs: number;
|
|
272
|
+
rows?: number | undefined;
|
|
273
|
+
broken?: true | undefined;
|
|
274
|
+
builtin?: true | undefined;
|
|
275
|
+
}[];
|
|
276
|
+
population: "store" | "derived" | null;
|
|
277
|
+
populationSecs: number | null;
|
|
278
|
+
lensSecs: number | null;
|
|
279
|
+
lensesEvaluated: string[] | null;
|
|
280
|
+
lensPopulation: "store" | "none" | "derived" | null;
|
|
281
|
+
checksRun: number;
|
|
282
|
+
boundsStatement?: string | undefined;
|
|
283
|
+
limits?: {
|
|
284
|
+
id: string;
|
|
285
|
+
direction: "scope" | "over-report" | "under-report" | "assumption";
|
|
286
|
+
statement: string;
|
|
287
|
+
}[] | undefined;
|
|
288
|
+
}>, z.ZodObject<Omit<{
|
|
289
|
+
code: z.ZodString;
|
|
290
|
+
severity: z.ZodEnum<["error", "warning", "info", "ignore"]>;
|
|
291
|
+
message: z.ZodString;
|
|
292
|
+
location: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
293
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
294
|
+
field: z.ZodOptional<z.ZodString>;
|
|
295
|
+
link: z.ZodOptional<z.ZodString>;
|
|
296
|
+
fix: z.ZodOptional<z.ZodString>;
|
|
297
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
298
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
299
|
+
}, "severity"> & {
|
|
300
|
+
severity: z.ZodEnum<["error", "warning", "info"]>;
|
|
301
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
}, "strict", z.ZodTypeAny, {
|
|
303
|
+
code: string;
|
|
304
|
+
message: string;
|
|
305
|
+
severity: "error" | "warning" | "info";
|
|
306
|
+
fix?: string | undefined;
|
|
307
|
+
reference?: string | undefined;
|
|
308
|
+
location?: string | undefined;
|
|
309
|
+
line?: number | undefined;
|
|
310
|
+
field?: string | undefined;
|
|
311
|
+
link?: string | undefined;
|
|
312
|
+
suggestion?: string | undefined;
|
|
313
|
+
column?: number | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
code: string;
|
|
316
|
+
message: string;
|
|
317
|
+
severity: "error" | "warning" | "info";
|
|
318
|
+
fix?: string | undefined;
|
|
319
|
+
reference?: string | undefined;
|
|
320
|
+
location?: string | undefined;
|
|
321
|
+
line?: number | undefined;
|
|
322
|
+
field?: string | undefined;
|
|
323
|
+
link?: string | undefined;
|
|
324
|
+
suggestion?: string | undefined;
|
|
325
|
+
column?: number | undefined;
|
|
326
|
+
}>>;
|
|
327
|
+
export type CheckReport = Report<CheckData>;
|
|
328
|
+
/**
|
|
329
|
+
* What `examined` counts for `vat resources check`, and the remedy when it is zero. One
|
|
330
|
+
* declaration for the verb's own writer (the published-shape registry) and for the `checks`
|
|
331
|
+
* phase `vat validate` runs, so a run that examined nothing is refused the same way in both.
|
|
332
|
+
*/
|
|
333
|
+
export declare const RESOURCES_CHECK_EXAMINED: ExaminedDeclaration;
|
|
334
|
+
export {};
|
|
335
|
+
//# sourceMappingURL=check-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-schema.d.ts","sourceRoot":"","sources":["../../../src/commands/resources/check-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAcxE;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAInB,CAAC;AAEZ;;;;;;;GAOG;AACH,QAAA,MAAM,eAAe;;IAEnB;;;;;;;OAOG;;IAEH,gGAAgG;;IAEhG,qGAAqG;;IAErG;;;;;;;OAOG;;IAEH;;;;;OAKG;;IAEH;;;OAGG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;IAEH,yFAAyF;;IAEzF,kFAAkF;;;QA5ElF,wHAAwH;;QAExH,yFAAyF;;;QAGzF,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyEtF,CAAC;AAEZ,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,2CAA2C;AAC3C,eAAO,MAAM,mBAAmB;;IAlD9B;;;;;;;OAOG;;IAEH,gGAAgG;;IAEhG,qGAAqG;;IAErG;;;;;;;OAOG;;IAEH;;;;;OAKG;;IAEH;;;OAGG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;IAEH,yFAAyF;;IAEzF,kFAAkF;;;QA5ElF,wHAAwH;;QAExH,yFAAyF;;;QAGzF,+FAA+F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8ElB,CAAC;AAEhF,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAE5C;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,EAAE,mBAGtC,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat resources check` publishes, apart from the command.
|
|
3
|
+
*
|
|
4
|
+
* A sibling module because the published-shape registry imports it and the
|
|
5
|
+
* command imports the writer that imports the registry: a schema declared in
|
|
6
|
+
* the command module itself would be an import cycle, read before it is
|
|
7
|
+
* initialised.
|
|
8
|
+
*/
|
|
9
|
+
import { LIMIT_DIRECTIONS, POPULATION_ORIGINS } from '@vibe-agent-toolkit/resources';
|
|
10
|
+
import { FindingSchema, reportSchema } from '@vibe-agent-toolkit/schema';
|
|
11
|
+
import { z } from 'zod';
|
|
12
|
+
import { LENS_POPULATIONS } from '../../utils/lens-population.js';
|
|
13
|
+
/** What one rule cost, as the document publishes it. */
|
|
14
|
+
const PublishedCheckCostSchema = z.object({
|
|
15
|
+
name: z.string(),
|
|
16
|
+
/** Three significant figures, so a 0.4 ms rule serializes as 0.0004 rather than a zero that reads as "not measured". */
|
|
17
|
+
durationSecs: z.number().nonnegative(),
|
|
18
|
+
/** Rows the statement returned. ABSENT, never 0, when the statement did not complete. */
|
|
19
|
+
rows: z.number().int().nonnegative().optional(),
|
|
20
|
+
broken: z.literal(true).optional(),
|
|
21
|
+
/** Present and `true` only for a rule VAT supplied — see `CheckCost.builtin` in `check.ts`. */
|
|
22
|
+
builtin: z.literal(true).optional(),
|
|
23
|
+
}).strict();
|
|
24
|
+
/**
|
|
25
|
+
* A signed bound on what the derived rows settle, as `@vibe-agent-toolkit/resources`
|
|
26
|
+
* states it.
|
|
27
|
+
*
|
|
28
|
+
* ⛔ The direction vocabulary is IMPORTED, never respelled: `LIMIT_DIRECTIONS`
|
|
29
|
+
* is the one list, tied to `StatedLimit['direction']` by `satisfies`, so a
|
|
30
|
+
* fifth direction cannot leave this schema quietly rejecting it.
|
|
31
|
+
*/
|
|
32
|
+
export const StatedLimitSchema = z.object({
|
|
33
|
+
id: z.string(),
|
|
34
|
+
direction: z.enum(LIMIT_DIRECTIONS),
|
|
35
|
+
statement: z.string(),
|
|
36
|
+
}).strict();
|
|
37
|
+
/**
|
|
38
|
+
* What the check run reports beyond its findings.
|
|
39
|
+
*
|
|
40
|
+
* The envelope's `examined` is `membersEnumerated` — what the rules ran
|
|
41
|
+
* AGAINST. `checksRun` is the other denominator, the number of RULES, and both
|
|
42
|
+
* are needed: zero findings is the pass condition and either number at zero
|
|
43
|
+
* makes that pass vacuous.
|
|
44
|
+
*/
|
|
45
|
+
const CheckDataSchema = z.object({
|
|
46
|
+
root: z.string(),
|
|
47
|
+
/**
|
|
48
|
+
* Whether the projection was derived this run or read from the store.
|
|
49
|
+
*
|
|
50
|
+
* 🔑 `null` — together with `populationSecs`, `lensSecs` and
|
|
51
|
+
* `lensesEvaluated` — exactly when the run was interrupted before its
|
|
52
|
+
* population completed. There was no projection, so there is no origin, cost
|
|
53
|
+
* or lens set to report, and a `RESOURCE_CHECK_BROKEN` finding says why.
|
|
54
|
+
*/
|
|
55
|
+
population: z.enum(POPULATION_ORIGINS).nullable(),
|
|
56
|
+
/** What the population cost — charged to no check, see `CheckCost`. Null as `population` is. */
|
|
57
|
+
populationSecs: z.number().nonnegative().nullable(),
|
|
58
|
+
/** What evaluating the lenses cost, paid before the first statement ran. Null as `population` is. */
|
|
59
|
+
lensSecs: z.number().nonnegative().nullable(),
|
|
60
|
+
/**
|
|
61
|
+
* Which lenses that covers — the derived relations this run's checks could
|
|
62
|
+
* actually read. 🔑 An empty list says "no check asked for a derived relation"
|
|
63
|
+
* rather than "a lens stopped running"; without it `lensSecs: 0` is the same
|
|
64
|
+
* document either way, and a gate whose rules silently read empty relations is
|
|
65
|
+
* a gate that cannot fail. Null as `population` is — `[]` would claim "no
|
|
66
|
+
* check asked", about a run that never got far enough to ask.
|
|
67
|
+
*/
|
|
68
|
+
lensesEvaluated: z.array(z.string()).nullable(),
|
|
69
|
+
/**
|
|
70
|
+
* Where the lenses' own populations came from: `none` when no evaluated lens
|
|
71
|
+
* populated anything (no statement named a claude-context relation), `store`
|
|
72
|
+
* when every one that did was served from the store, otherwise `derived`.
|
|
73
|
+
* Null as `population` is — no population happened at all.
|
|
74
|
+
*/
|
|
75
|
+
lensPopulation: z.enum(LENS_POPULATIONS).nullable(),
|
|
76
|
+
/**
|
|
77
|
+
* The prose frame {@link CheckDataSchema.limits} is read under. Present
|
|
78
|
+
* exactly when a lens with stated bounds was evaluated.
|
|
79
|
+
*/
|
|
80
|
+
boundsStatement: z.string().optional(),
|
|
81
|
+
/**
|
|
82
|
+
* What the derived rows this run could read do NOT settle — signed and
|
|
83
|
+
* directional, the same list `vat claude context` publishes beside its own
|
|
84
|
+
* answer. Absent when no bounded lens ran: an empty list would claim nothing
|
|
85
|
+
* bounds the answer, which is stronger than "the answer holds no such row".
|
|
86
|
+
*/
|
|
87
|
+
limits: z.array(StatedLimitSchema).optional(),
|
|
88
|
+
/** The number of rules that EXECUTED. Derived from `checks`, never carried beside it. */
|
|
89
|
+
checksRun: z.number().int().nonnegative(),
|
|
90
|
+
/** What each rule cost, directly under the denominator it is the breakdown of. */
|
|
91
|
+
checks: z.array(PublishedCheckCostSchema),
|
|
92
|
+
}).strict();
|
|
93
|
+
/** The document this command publishes. */
|
|
94
|
+
export const CHECK_REPORT_SCHEMA = reportSchema(CheckDataSchema, FindingSchema);
|
|
95
|
+
/**
|
|
96
|
+
* What `examined` counts for `vat resources check`, and the remedy when it is zero. One
|
|
97
|
+
* declaration for the verb's own writer (the published-shape registry) and for the `checks`
|
|
98
|
+
* phase `vat validate` runs, so a run that examined nothing is refused the same way in both.
|
|
99
|
+
*/
|
|
100
|
+
export const RESOURCES_CHECK_EXAMINED = {
|
|
101
|
+
unit: 'resources in the population',
|
|
102
|
+
whenZero: 'The projection holds no resource under the project root: check that the project root this run resolved is the one you meant, and that its files are not all gitignored.',
|
|
103
|
+
};
|
|
104
|
+
//# sourceMappingURL=check-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-schema.js","sourceRoot":"","sources":["../../../src/commands/resources/check-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAe,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CA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