@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
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat rag query` publishes, apart from the command (see
|
|
3
|
+
* `index-schema.ts` for why a sibling, and why no runtime import of the RAG
|
|
4
|
+
* packages).
|
|
5
|
+
*
|
|
6
|
+
* `examined` counts the chunks in the index searched, so a query that matches
|
|
7
|
+
* nothing over a populated index is `ok` with `chunks: []`. An index with no
|
|
8
|
+
* data — no chunk table, or a table of zero chunks — refuses before searching
|
|
9
|
+
* (`INPUT_UNREADABLE`, exit 2), so the zero-examined remedy below is the
|
|
10
|
+
* writer's backstop, not an outcome a run reaches.
|
|
11
|
+
*/
|
|
12
|
+
import { type Report } from '@vibe-agent-toolkit/schema';
|
|
13
|
+
import { z } from 'zod';
|
|
14
|
+
import type { ExaminedDeclaration } from '../../utils/run-integrity.js';
|
|
15
|
+
/** What `examined` counts for `vat rag query`, and the remedy when it is zero. */
|
|
16
|
+
export declare const RAG_QUERY_EXAMINED: ExaminedDeclaration;
|
|
17
|
+
declare const RagQueryDataSchema: z.ZodObject<{
|
|
18
|
+
/** The directory every `filePath` is relative to: the only absolute path. */
|
|
19
|
+
root: z.ZodString;
|
|
20
|
+
query: z.ZodString;
|
|
21
|
+
/** Mirrors `RAGResult.stats` from `@vibe-agent-toolkit/rag`. */
|
|
22
|
+
stats: z.ZodObject<{
|
|
23
|
+
totalMatches: z.ZodNumber;
|
|
24
|
+
searchDurationMs: z.ZodNumber;
|
|
25
|
+
embedding: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
model: z.ZodString;
|
|
27
|
+
tokensUsed: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, "strict", z.ZodTypeAny, {
|
|
29
|
+
model: string;
|
|
30
|
+
tokensUsed?: number | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
model: string;
|
|
33
|
+
tokensUsed?: number | undefined;
|
|
34
|
+
}>>;
|
|
35
|
+
}, "strict", z.ZodTypeAny, {
|
|
36
|
+
totalMatches: number;
|
|
37
|
+
searchDurationMs: number;
|
|
38
|
+
embedding?: {
|
|
39
|
+
model: string;
|
|
40
|
+
tokensUsed?: number | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
totalMatches: number;
|
|
44
|
+
searchDurationMs: number;
|
|
45
|
+
embedding?: {
|
|
46
|
+
model: string;
|
|
47
|
+
tokensUsed?: number | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
}>;
|
|
50
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
51
|
+
chunkId: z.ZodString;
|
|
52
|
+
resourceId: z.ZodString;
|
|
53
|
+
/** The chunk's source file, relative to `root`. */
|
|
54
|
+
filePath: z.ZodString;
|
|
55
|
+
headingPath: z.ZodOptional<z.ZodString>;
|
|
56
|
+
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
title: z.ZodOptional<z.ZodString>;
|
|
60
|
+
type: z.ZodOptional<z.ZodString>;
|
|
61
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
62
|
+
contentHash: z.ZodString;
|
|
63
|
+
tokenCount: z.ZodNumber;
|
|
64
|
+
embeddingModel: z.ZodString;
|
|
65
|
+
/** ISO 8601. */
|
|
66
|
+
embeddedAt: z.ZodString;
|
|
67
|
+
previousChunkId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
nextChunkId: z.ZodOptional<z.ZodString>;
|
|
69
|
+
/** The full chunk text, never truncated; last so a long result stays scannable. */
|
|
70
|
+
content: z.ZodString;
|
|
71
|
+
}, "strict", z.ZodTypeAny, {
|
|
72
|
+
content: string;
|
|
73
|
+
embeddingModel: string;
|
|
74
|
+
chunkId: string;
|
|
75
|
+
resourceId: string;
|
|
76
|
+
filePath: string;
|
|
77
|
+
contentHash: string;
|
|
78
|
+
tokenCount: number;
|
|
79
|
+
embeddedAt: string;
|
|
80
|
+
type?: string | undefined;
|
|
81
|
+
headingPath?: string | undefined;
|
|
82
|
+
headingLevel?: number | undefined;
|
|
83
|
+
startLine?: number | undefined;
|
|
84
|
+
endLine?: number | undefined;
|
|
85
|
+
title?: string | undefined;
|
|
86
|
+
tags?: string[] | undefined;
|
|
87
|
+
previousChunkId?: string | undefined;
|
|
88
|
+
nextChunkId?: string | undefined;
|
|
89
|
+
}, {
|
|
90
|
+
content: string;
|
|
91
|
+
embeddingModel: string;
|
|
92
|
+
chunkId: string;
|
|
93
|
+
resourceId: string;
|
|
94
|
+
filePath: string;
|
|
95
|
+
contentHash: string;
|
|
96
|
+
tokenCount: number;
|
|
97
|
+
embeddedAt: string;
|
|
98
|
+
type?: string | undefined;
|
|
99
|
+
headingPath?: string | undefined;
|
|
100
|
+
headingLevel?: number | undefined;
|
|
101
|
+
startLine?: number | undefined;
|
|
102
|
+
endLine?: number | undefined;
|
|
103
|
+
title?: string | undefined;
|
|
104
|
+
tags?: string[] | undefined;
|
|
105
|
+
previousChunkId?: string | undefined;
|
|
106
|
+
nextChunkId?: string | undefined;
|
|
107
|
+
}>, "many">;
|
|
108
|
+
}, "strict", z.ZodTypeAny, {
|
|
109
|
+
root: string;
|
|
110
|
+
query: string;
|
|
111
|
+
stats: {
|
|
112
|
+
totalMatches: number;
|
|
113
|
+
searchDurationMs: number;
|
|
114
|
+
embedding?: {
|
|
115
|
+
model: string;
|
|
116
|
+
tokensUsed?: number | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
};
|
|
119
|
+
chunks: {
|
|
120
|
+
content: string;
|
|
121
|
+
embeddingModel: string;
|
|
122
|
+
chunkId: string;
|
|
123
|
+
resourceId: string;
|
|
124
|
+
filePath: string;
|
|
125
|
+
contentHash: string;
|
|
126
|
+
tokenCount: number;
|
|
127
|
+
embeddedAt: string;
|
|
128
|
+
type?: string | undefined;
|
|
129
|
+
headingPath?: string | undefined;
|
|
130
|
+
headingLevel?: number | undefined;
|
|
131
|
+
startLine?: number | undefined;
|
|
132
|
+
endLine?: number | undefined;
|
|
133
|
+
title?: string | undefined;
|
|
134
|
+
tags?: string[] | undefined;
|
|
135
|
+
previousChunkId?: string | undefined;
|
|
136
|
+
nextChunkId?: string | undefined;
|
|
137
|
+
}[];
|
|
138
|
+
}, {
|
|
139
|
+
root: string;
|
|
140
|
+
query: string;
|
|
141
|
+
stats: {
|
|
142
|
+
totalMatches: number;
|
|
143
|
+
searchDurationMs: number;
|
|
144
|
+
embedding?: {
|
|
145
|
+
model: string;
|
|
146
|
+
tokensUsed?: number | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
};
|
|
149
|
+
chunks: {
|
|
150
|
+
content: string;
|
|
151
|
+
embeddingModel: string;
|
|
152
|
+
chunkId: string;
|
|
153
|
+
resourceId: string;
|
|
154
|
+
filePath: string;
|
|
155
|
+
contentHash: string;
|
|
156
|
+
tokenCount: number;
|
|
157
|
+
embeddedAt: string;
|
|
158
|
+
type?: string | undefined;
|
|
159
|
+
headingPath?: string | undefined;
|
|
160
|
+
headingLevel?: number | undefined;
|
|
161
|
+
startLine?: number | undefined;
|
|
162
|
+
endLine?: number | undefined;
|
|
163
|
+
title?: string | undefined;
|
|
164
|
+
tags?: string[] | undefined;
|
|
165
|
+
previousChunkId?: string | undefined;
|
|
166
|
+
nextChunkId?: string | undefined;
|
|
167
|
+
}[];
|
|
168
|
+
}>;
|
|
169
|
+
export type RagQueryData = z.infer<typeof RagQueryDataSchema>;
|
|
170
|
+
/** The document this command publishes. */
|
|
171
|
+
export declare const RAG_QUERY_REPORT_SCHEMA: import("@vibe-agent-toolkit/schema").ReportZodSchema<z.ZodObject<{
|
|
172
|
+
/** The directory every `filePath` is relative to: the only absolute path. */
|
|
173
|
+
root: z.ZodString;
|
|
174
|
+
query: z.ZodString;
|
|
175
|
+
/** Mirrors `RAGResult.stats` from `@vibe-agent-toolkit/rag`. */
|
|
176
|
+
stats: z.ZodObject<{
|
|
177
|
+
totalMatches: z.ZodNumber;
|
|
178
|
+
searchDurationMs: z.ZodNumber;
|
|
179
|
+
embedding: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
model: z.ZodString;
|
|
181
|
+
tokensUsed: z.ZodOptional<z.ZodNumber>;
|
|
182
|
+
}, "strict", z.ZodTypeAny, {
|
|
183
|
+
model: string;
|
|
184
|
+
tokensUsed?: number | undefined;
|
|
185
|
+
}, {
|
|
186
|
+
model: string;
|
|
187
|
+
tokensUsed?: number | undefined;
|
|
188
|
+
}>>;
|
|
189
|
+
}, "strict", z.ZodTypeAny, {
|
|
190
|
+
totalMatches: number;
|
|
191
|
+
searchDurationMs: number;
|
|
192
|
+
embedding?: {
|
|
193
|
+
model: string;
|
|
194
|
+
tokensUsed?: number | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
}, {
|
|
197
|
+
totalMatches: number;
|
|
198
|
+
searchDurationMs: number;
|
|
199
|
+
embedding?: {
|
|
200
|
+
model: string;
|
|
201
|
+
tokensUsed?: number | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
}>;
|
|
204
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
205
|
+
chunkId: z.ZodString;
|
|
206
|
+
resourceId: z.ZodString;
|
|
207
|
+
/** The chunk's source file, relative to `root`. */
|
|
208
|
+
filePath: z.ZodString;
|
|
209
|
+
headingPath: z.ZodOptional<z.ZodString>;
|
|
210
|
+
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
211
|
+
startLine: z.ZodOptional<z.ZodNumber>;
|
|
212
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
213
|
+
title: z.ZodOptional<z.ZodString>;
|
|
214
|
+
type: z.ZodOptional<z.ZodString>;
|
|
215
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
216
|
+
contentHash: z.ZodString;
|
|
217
|
+
tokenCount: z.ZodNumber;
|
|
218
|
+
embeddingModel: z.ZodString;
|
|
219
|
+
/** ISO 8601. */
|
|
220
|
+
embeddedAt: z.ZodString;
|
|
221
|
+
previousChunkId: z.ZodOptional<z.ZodString>;
|
|
222
|
+
nextChunkId: z.ZodOptional<z.ZodString>;
|
|
223
|
+
/** The full chunk text, never truncated; last so a long result stays scannable. */
|
|
224
|
+
content: z.ZodString;
|
|
225
|
+
}, "strict", z.ZodTypeAny, {
|
|
226
|
+
content: string;
|
|
227
|
+
embeddingModel: string;
|
|
228
|
+
chunkId: string;
|
|
229
|
+
resourceId: string;
|
|
230
|
+
filePath: string;
|
|
231
|
+
contentHash: string;
|
|
232
|
+
tokenCount: number;
|
|
233
|
+
embeddedAt: string;
|
|
234
|
+
type?: string | undefined;
|
|
235
|
+
headingPath?: string | undefined;
|
|
236
|
+
headingLevel?: number | undefined;
|
|
237
|
+
startLine?: number | undefined;
|
|
238
|
+
endLine?: number | undefined;
|
|
239
|
+
title?: string | undefined;
|
|
240
|
+
tags?: string[] | undefined;
|
|
241
|
+
previousChunkId?: string | undefined;
|
|
242
|
+
nextChunkId?: string | undefined;
|
|
243
|
+
}, {
|
|
244
|
+
content: string;
|
|
245
|
+
embeddingModel: string;
|
|
246
|
+
chunkId: string;
|
|
247
|
+
resourceId: string;
|
|
248
|
+
filePath: string;
|
|
249
|
+
contentHash: string;
|
|
250
|
+
tokenCount: number;
|
|
251
|
+
embeddedAt: string;
|
|
252
|
+
type?: string | undefined;
|
|
253
|
+
headingPath?: string | undefined;
|
|
254
|
+
headingLevel?: number | undefined;
|
|
255
|
+
startLine?: number | undefined;
|
|
256
|
+
endLine?: number | undefined;
|
|
257
|
+
title?: string | undefined;
|
|
258
|
+
tags?: string[] | undefined;
|
|
259
|
+
previousChunkId?: string | undefined;
|
|
260
|
+
nextChunkId?: string | undefined;
|
|
261
|
+
}>, "many">;
|
|
262
|
+
}, "strict", z.ZodTypeAny, {
|
|
263
|
+
root: string;
|
|
264
|
+
query: string;
|
|
265
|
+
stats: {
|
|
266
|
+
totalMatches: number;
|
|
267
|
+
searchDurationMs: number;
|
|
268
|
+
embedding?: {
|
|
269
|
+
model: string;
|
|
270
|
+
tokensUsed?: number | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
};
|
|
273
|
+
chunks: {
|
|
274
|
+
content: string;
|
|
275
|
+
embeddingModel: string;
|
|
276
|
+
chunkId: string;
|
|
277
|
+
resourceId: string;
|
|
278
|
+
filePath: string;
|
|
279
|
+
contentHash: string;
|
|
280
|
+
tokenCount: number;
|
|
281
|
+
embeddedAt: string;
|
|
282
|
+
type?: string | undefined;
|
|
283
|
+
headingPath?: string | undefined;
|
|
284
|
+
headingLevel?: number | undefined;
|
|
285
|
+
startLine?: number | undefined;
|
|
286
|
+
endLine?: number | undefined;
|
|
287
|
+
title?: string | undefined;
|
|
288
|
+
tags?: string[] | undefined;
|
|
289
|
+
previousChunkId?: string | undefined;
|
|
290
|
+
nextChunkId?: string | undefined;
|
|
291
|
+
}[];
|
|
292
|
+
}, {
|
|
293
|
+
root: string;
|
|
294
|
+
query: string;
|
|
295
|
+
stats: {
|
|
296
|
+
totalMatches: number;
|
|
297
|
+
searchDurationMs: number;
|
|
298
|
+
embedding?: {
|
|
299
|
+
model: string;
|
|
300
|
+
tokensUsed?: number | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
};
|
|
303
|
+
chunks: {
|
|
304
|
+
content: string;
|
|
305
|
+
embeddingModel: string;
|
|
306
|
+
chunkId: string;
|
|
307
|
+
resourceId: string;
|
|
308
|
+
filePath: string;
|
|
309
|
+
contentHash: string;
|
|
310
|
+
tokenCount: number;
|
|
311
|
+
embeddedAt: string;
|
|
312
|
+
type?: string | undefined;
|
|
313
|
+
headingPath?: string | undefined;
|
|
314
|
+
headingLevel?: number | undefined;
|
|
315
|
+
startLine?: number | undefined;
|
|
316
|
+
endLine?: number | undefined;
|
|
317
|
+
title?: string | undefined;
|
|
318
|
+
tags?: string[] | undefined;
|
|
319
|
+
previousChunkId?: string | undefined;
|
|
320
|
+
nextChunkId?: string | undefined;
|
|
321
|
+
}[];
|
|
322
|
+
}>, z.ZodObject<Omit<{
|
|
323
|
+
code: z.ZodString;
|
|
324
|
+
severity: z.ZodEnum<["error", "warning", "info", "ignore"]>;
|
|
325
|
+
message: z.ZodString;
|
|
326
|
+
location: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
327
|
+
line: z.ZodOptional<z.ZodNumber>;
|
|
328
|
+
field: z.ZodOptional<z.ZodString>;
|
|
329
|
+
link: z.ZodOptional<z.ZodString>;
|
|
330
|
+
fix: z.ZodOptional<z.ZodString>;
|
|
331
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
332
|
+
suggestion: z.ZodOptional<z.ZodString>;
|
|
333
|
+
}, "severity"> & {
|
|
334
|
+
severity: z.ZodEnum<["error", "warning", "info"]>;
|
|
335
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
336
|
+
}, "strict", z.ZodTypeAny, {
|
|
337
|
+
code: string;
|
|
338
|
+
message: string;
|
|
339
|
+
severity: "error" | "warning" | "info";
|
|
340
|
+
fix?: string | undefined;
|
|
341
|
+
reference?: string | undefined;
|
|
342
|
+
location?: string | undefined;
|
|
343
|
+
line?: number | undefined;
|
|
344
|
+
field?: string | undefined;
|
|
345
|
+
link?: string | undefined;
|
|
346
|
+
suggestion?: string | undefined;
|
|
347
|
+
column?: number | undefined;
|
|
348
|
+
}, {
|
|
349
|
+
code: string;
|
|
350
|
+
message: string;
|
|
351
|
+
severity: "error" | "warning" | "info";
|
|
352
|
+
fix?: string | undefined;
|
|
353
|
+
reference?: string | undefined;
|
|
354
|
+
location?: string | undefined;
|
|
355
|
+
line?: number | undefined;
|
|
356
|
+
field?: string | undefined;
|
|
357
|
+
link?: string | undefined;
|
|
358
|
+
suggestion?: string | undefined;
|
|
359
|
+
column?: number | undefined;
|
|
360
|
+
}>>;
|
|
361
|
+
export type RagQueryReport = Report<RagQueryData>;
|
|
362
|
+
export {};
|
|
363
|
+
//# sourceMappingURL=query-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-schema.d.ts","sourceRoot":"","sources":["../../../src/commands/rag/query-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAA+B,KAAK,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,kFAAkF;AAClF,eAAO,MAAM,kBAAkB,EAAE,mBAGhC,CAAC;AA0BF,QAAA,MAAM,kBAAkB;IACtB,6EAA6E;;;IAG7E,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAxBhE,mDAAmD;;;;;;;;;;;;QAYnD,gBAAgB;;;;QAIhB,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB1E,CAAC;AAEZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,2CAA2C;AAC3C,eAAO,MAAM,uBAAuB;IAlBlC,6EAA6E;;;IAG7E,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAxBhE,mDAAmD;;;;;;;;;;;;QAYnD,gBAAgB;;;;QAIhB,mFAAmF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuBC,CAAC;AAEvF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The document `vat rag query` publishes, apart from the command (see
|
|
3
|
+
* `index-schema.ts` for why a sibling, and why no runtime import of the RAG
|
|
4
|
+
* packages).
|
|
5
|
+
*
|
|
6
|
+
* `examined` counts the chunks in the index searched, so a query that matches
|
|
7
|
+
* nothing over a populated index is `ok` with `chunks: []`. An index with no
|
|
8
|
+
* data — no chunk table, or a table of zero chunks — refuses before searching
|
|
9
|
+
* (`INPUT_UNREADABLE`, exit 2), so the zero-examined remedy below is the
|
|
10
|
+
* writer's backstop, not an outcome a run reaches.
|
|
11
|
+
*/
|
|
12
|
+
import { FindingSchema, reportSchema } from '@vibe-agent-toolkit/schema';
|
|
13
|
+
import { z } from 'zod';
|
|
14
|
+
/** What `examined` counts for `vat rag query`, and the remedy when it is zero. */
|
|
15
|
+
export const RAG_QUERY_EXAMINED = {
|
|
16
|
+
unit: 'chunks in the index',
|
|
17
|
+
whenZero: 'The index holds no chunk to search: run vat rag index first, and check its findings for documents that failed.',
|
|
18
|
+
};
|
|
19
|
+
/** One matched chunk. Optional fields are omitted when the chunk has none. */
|
|
20
|
+
const RagQueryChunkSchema = z.object({
|
|
21
|
+
chunkId: z.string(),
|
|
22
|
+
resourceId: z.string(),
|
|
23
|
+
/** The chunk's source file, relative to `root`. */
|
|
24
|
+
filePath: z.string(),
|
|
25
|
+
headingPath: z.string().optional(),
|
|
26
|
+
headingLevel: z.number().int().optional(),
|
|
27
|
+
startLine: z.number().int().optional(),
|
|
28
|
+
endLine: z.number().int().optional(),
|
|
29
|
+
title: z.string().optional(),
|
|
30
|
+
type: z.string().optional(),
|
|
31
|
+
tags: z.array(z.string()).optional(),
|
|
32
|
+
contentHash: z.string(),
|
|
33
|
+
tokenCount: z.number().int().nonnegative(),
|
|
34
|
+
embeddingModel: z.string(),
|
|
35
|
+
/** ISO 8601. */
|
|
36
|
+
embeddedAt: z.string(),
|
|
37
|
+
previousChunkId: z.string().optional(),
|
|
38
|
+
nextChunkId: z.string().optional(),
|
|
39
|
+
/** The full chunk text, never truncated; last so a long result stays scannable. */
|
|
40
|
+
content: z.string(),
|
|
41
|
+
}).strict();
|
|
42
|
+
const RagQueryDataSchema = z.object({
|
|
43
|
+
/** The directory every `filePath` is relative to: the only absolute path. */
|
|
44
|
+
root: z.string(),
|
|
45
|
+
query: z.string(),
|
|
46
|
+
/** Mirrors `RAGResult.stats` from `@vibe-agent-toolkit/rag`. */
|
|
47
|
+
stats: z.object({
|
|
48
|
+
totalMatches: z.number().int().nonnegative(),
|
|
49
|
+
searchDurationMs: z.number().nonnegative(),
|
|
50
|
+
embedding: z.object({
|
|
51
|
+
model: z.string(),
|
|
52
|
+
tokensUsed: z.number().optional(),
|
|
53
|
+
}).strict().optional(),
|
|
54
|
+
}).strict(),
|
|
55
|
+
chunks: z.array(RagQueryChunkSchema),
|
|
56
|
+
}).strict();
|
|
57
|
+
/** The document this command publishes. */
|
|
58
|
+
export const RAG_QUERY_REPORT_SCHEMA = reportSchema(RagQueryDataSchema, FindingSchema);
|
|
59
|
+
//# sourceMappingURL=query-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-schema.js","sourceRoot":"","sources":["../../../src/commands/rag/query-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,YAAY,EAAe,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,kFAAkF;AAClF,MAAM,CAAC,MAAM,kBAAkB,GAAwB;IACrD,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,gHAAgH;CAC3H,CAAC;AAEF,8EAA8E;AAC9E,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,mDAAmD;IACnD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC1C,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,gBAAgB;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,mFAAmF;IACnF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC,MAAM,EAAE,CAAC;AAEZ,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,6EAA6E;IAC7E,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,gEAAgE;IAChE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QAC5C,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;QAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,CAAC;YAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;YACjB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SAClC,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACvB,CAAC,CAAC,MAAM,EAAE;IACX,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC;CACrC,CAAC,CAAC,MAAM,EAAE,CAAC;AAIZ,2CAA2C;AAC3C,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats-command.d.ts","sourceRoot":"","sources":["../../../src/commands/rag/stats-command.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"stats-command.d.ts","sourceRoot":"","sources":["../../../src/commands/rag/stats-command.ts"],"names":[],"mappings":"AAAA;;GAEG;AASH,UAAU,YAAY;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAKD,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBvE"}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* RAG stats command - show database statistics
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { executeRagOperation,
|
|
4
|
+
import { buildReport } from '@vibe-agent-toolkit/schema';
|
|
5
|
+
import { endWithReport } from '../../utils/document-writer.js';
|
|
6
|
+
import { executeRagOperation, RAG_GATE } from './command-helpers.js';
|
|
7
|
+
/** One database is opened and reported on. */
|
|
8
|
+
const DATABASES_OPENED = 1;
|
|
7
9
|
export async function statsCommand(options) {
|
|
8
10
|
const startTime = Date.now();
|
|
9
|
-
const stats = await executeRagOperation(options,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
duration: formatDuration(duration),
|
|
11
|
+
const stats = await executeRagOperation('rag stats', options, (ragProvider) => ragProvider.getStats());
|
|
12
|
+
const report = buildReport({
|
|
13
|
+
examined: DATABASES_OPENED,
|
|
14
|
+
findings: [],
|
|
15
|
+
data: {
|
|
16
|
+
totalChunks: stats.totalChunks,
|
|
17
|
+
totalResources: stats.totalResources,
|
|
18
|
+
dbSizeBytes: stats.dbSizeBytes,
|
|
19
|
+
embeddingModel: stats.embeddingModel,
|
|
20
|
+
lastIndexed: stats.lastIndexed.toISOString(),
|
|
21
|
+
},
|
|
22
|
+
gate: RAG_GATE,
|
|
23
|
+
durationMs: Date.now() - startTime,
|
|
23
24
|
});
|
|
24
|
-
|
|
25
|
+
endWithReport('rag stats', report, 'yaml');
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=stats-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats-command.js","sourceRoot":"","sources":["../../../src/commands/rag/stats-command.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"stats-command.js","sourceRoot":"","sources":["../../../src/commands/rag/stats-command.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOrE,8CAA8C;AAC9C,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,OAAqB;IACtD,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,MAAM,KAAK,GAAG,MAAM,mBAAmB,CAAC,WAAW,EAAE,OAAO,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IAEvG,MAAM,MAAM,GAAmB,WAAW,CAAC;QACzC,QAAQ,EAAE,gBAAgB;QAC1B,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE;YACJ,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,WAAW,EAAE,KAAK,CAAC,WAAW;YAC9B,cAAc,EAAE,KAAK,CAAC,cAAc;YACpC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC,WAAW,EAAE;SAC7C;QACD,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;KACnC,CAAC,CAAC;IACH,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -38,36 +38,46 @@
|
|
|
38
38
|
* exactly and automatically by the schema the reader compiles with.
|
|
39
39
|
*/
|
|
40
40
|
import { z } from 'zod';
|
|
41
|
+
import type { SupervisedChild } from './check-supervisor.js';
|
|
41
42
|
declare const ProgressEntrySchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
43
|
+
kind: z.ZodLiteral<"started">;
|
|
44
|
+
}, "strict", z.ZodTypeAny, {
|
|
45
|
+
kind: "started";
|
|
46
|
+
}, {
|
|
47
|
+
kind: "started";
|
|
48
|
+
}>, z.ZodObject<{
|
|
42
49
|
kind: z.ZodLiteral<"population">;
|
|
43
|
-
population: z.
|
|
50
|
+
population: z.ZodEnum<["store" | "derived", ...("store" | "derived")[]]>;
|
|
51
|
+
lensPopulation: z.ZodEnum<["none", "store" | "derived", ...("store" | "derived")[]]>;
|
|
44
52
|
populationMs: z.ZodNumber;
|
|
45
53
|
lensMs: z.ZodNumber;
|
|
46
54
|
lensesEvaluated: z.ZodArray<z.ZodString, "many">;
|
|
47
55
|
membersEnumerated: z.ZodNumber;
|
|
48
56
|
}, "strict", z.ZodTypeAny, {
|
|
49
57
|
kind: "population";
|
|
50
|
-
population: "
|
|
58
|
+
population: "store" | "derived";
|
|
59
|
+
lensesEvaluated: string[];
|
|
60
|
+
lensPopulation: "store" | "none" | "derived";
|
|
51
61
|
populationMs: number;
|
|
52
62
|
lensMs: number;
|
|
53
|
-
lensesEvaluated: string[];
|
|
54
63
|
membersEnumerated: number;
|
|
55
64
|
}, {
|
|
56
65
|
kind: "population";
|
|
57
|
-
population: "
|
|
66
|
+
population: "store" | "derived";
|
|
67
|
+
lensesEvaluated: string[];
|
|
68
|
+
lensPopulation: "store" | "none" | "derived";
|
|
58
69
|
populationMs: number;
|
|
59
70
|
lensMs: number;
|
|
60
|
-
lensesEvaluated: string[];
|
|
61
71
|
membersEnumerated: number;
|
|
62
72
|
}>, z.ZodObject<{
|
|
63
73
|
kind: z.ZodLiteral<"start">;
|
|
64
74
|
name: z.ZodString;
|
|
65
75
|
}, "strict", z.ZodTypeAny, {
|
|
66
|
-
name: string;
|
|
67
76
|
kind: "start";
|
|
68
|
-
}, {
|
|
69
77
|
name: string;
|
|
78
|
+
}, {
|
|
70
79
|
kind: "start";
|
|
80
|
+
name: string;
|
|
71
81
|
}>, z.ZodObject<{
|
|
72
82
|
kind: z.ZodLiteral<"check">;
|
|
73
83
|
name: z.ZodString;
|
|
@@ -76,15 +86,15 @@ declare const ProgressEntrySchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<
|
|
|
76
86
|
broken: z.ZodOptional<z.ZodLiteral<true>>;
|
|
77
87
|
builtin: z.ZodOptional<z.ZodLiteral<true>>;
|
|
78
88
|
}, "strict", z.ZodTypeAny, {
|
|
79
|
-
name: string;
|
|
80
89
|
kind: "check";
|
|
90
|
+
name: string;
|
|
81
91
|
durationMs: number;
|
|
82
92
|
rows?: number | undefined;
|
|
83
93
|
broken?: true | undefined;
|
|
84
94
|
builtin?: true | undefined;
|
|
85
95
|
}, {
|
|
86
|
-
name: string;
|
|
87
96
|
kind: "check";
|
|
97
|
+
name: string;
|
|
88
98
|
durationMs: number;
|
|
89
99
|
rows?: number | undefined;
|
|
90
100
|
broken?: true | undefined;
|
|
@@ -110,6 +120,8 @@ export type ProgressEntry = z.infer<typeof ProgressEntrySchema>;
|
|
|
110
120
|
* forty rules.
|
|
111
121
|
*/
|
|
112
122
|
export type UnitInFlight = {
|
|
123
|
+
readonly kind: 'startup';
|
|
124
|
+
} | {
|
|
113
125
|
readonly kind: 'population';
|
|
114
126
|
} | {
|
|
115
127
|
readonly kind: 'check';
|
|
@@ -131,8 +143,13 @@ export declare function parseProgressLog(text: string): ProgressEntry[];
|
|
|
131
143
|
*
|
|
132
144
|
* 🔑 The population sentinel is keyed on the population line's ABSENCE rather
|
|
133
145
|
* than on there being no `start` lines. Those are different states: a run killed
|
|
134
|
-
* during population has no projection
|
|
135
|
-
*
|
|
146
|
+
* during population has no projection, while a run killed between the population
|
|
147
|
+
* and the first statement has one.
|
|
148
|
+
*
|
|
149
|
+
* 🔑 The startup sentinel is keyed the same way, on the `started` line's
|
|
150
|
+
* absence — never on an empty log. Before that line the child was still loading
|
|
151
|
+
* Node and the CLI, nothing had touched the tree, and advice about sizing the
|
|
152
|
+
* budget against a population would be advice about a unit that never began.
|
|
136
153
|
*
|
|
137
154
|
* @param entries - What {@link parseProgressLog} recovered
|
|
138
155
|
* @returns The unit in flight
|
|
@@ -146,9 +163,58 @@ export declare function unitInFlight(entries: readonly ProgressEntry[]): UnitInF
|
|
|
146
163
|
* queued behind work the event loop never gets back to, so the line naming the
|
|
147
164
|
* rule that hangs would exist only in memory — where `SIGKILL` destroys it.
|
|
148
165
|
*
|
|
149
|
-
* @param
|
|
166
|
+
* @param child - Where the supervisor is watching
|
|
150
167
|
* @returns A writer that appends one entry and returns once it is on disk
|
|
151
168
|
*/
|
|
152
|
-
export declare function createProgressWriter(
|
|
169
|
+
export declare function createProgressWriter(child: Pick<SupervisedChild, 'progressLog'>): (entry: ProgressEntry) => void;
|
|
170
|
+
/**
|
|
171
|
+
* End this supervised child the moment its supervisor is gone, however the supervisor ended.
|
|
172
|
+
*
|
|
173
|
+
* ## 🚨 Why: the bound lives in the supervisor
|
|
174
|
+
*
|
|
175
|
+
* A supervisor that dies where none of its own code runs — SIGKILL, an OOM killer — cannot take the
|
|
176
|
+
* child down, and the child would run on with nothing bounding it and nobody reading what it
|
|
177
|
+
* publishes. This is the POSIX path: on Windows an outside kill of the supervisor
|
|
178
|
+
* (`TerminateProcess`) ends this process too, before any of its code runs, because libuv spawns it
|
|
179
|
+
* in a kill-on-close job object whose only handle the supervisor holds. The pipe below is there on
|
|
180
|
+
* Windows as well, and harmless.
|
|
181
|
+
*
|
|
182
|
+
* ## 🔑 How: the supervisor holds this process's stdin open and never writes to it
|
|
183
|
+
*
|
|
184
|
+
* The supervisor spawns the child with stdin as a pipe whose write end only it holds, and it never
|
|
185
|
+
* writes or ends it. However the supervisor ends, the OS closes that end, and this process reads
|
|
186
|
+
* end-of-file — with no pid to compare and no liveness probe to misread (a pid
|
|
187
|
+
* reused, or a probe refused `EPERM` in a sandbox, both used to read wrongly). On EOF, a read error
|
|
188
|
+
* or a close, the child ends at once: exit 2 and ONE stderr line, no document — nobody is left to
|
|
189
|
+
* read one. It ends by `process.exit`, never by a signal handler: the child must never install one
|
|
190
|
+
* (see `check-supervisor.ts`). Nothing else in the child reads stdin.
|
|
191
|
+
*
|
|
192
|
+
* The stream is UNREFERENCED, so a child that finishes is never held open by it.
|
|
193
|
+
*
|
|
194
|
+
* ⚠️ **It fires when this process's event loop next turns, and only then.** The population is
|
|
195
|
+
* asynchronous I/O, so an orphan there ends at once. The checks run one after another
|
|
196
|
+
* synchronously, and a statement blocked inside SQLite reaches nothing until it returns — so an
|
|
197
|
+
* orphan in the middle of them runs on until the LAST check returns. It then ends before it
|
|
198
|
+
* publishes anything, because the child turns its loop first ({@link letSupervisorLossSurface}).
|
|
199
|
+
*
|
|
200
|
+
* @param supervisorPid - The supervisor's pid, named in the stderr line
|
|
201
|
+
* @param stdin - This process's stdin: the caller passes `process.stdin`; a test hands it a stream
|
|
202
|
+
* it owns
|
|
203
|
+
*/
|
|
204
|
+
export declare function endWhenSupervisorGone(supervisorPid: number, stdin: NodeJS.ReadableStream & {
|
|
205
|
+
unref?: () => void;
|
|
206
|
+
}): void;
|
|
207
|
+
/**
|
|
208
|
+
* Let a supervisor's loss END this child before it publishes: turn the event loop twice, so an
|
|
209
|
+
* end-of-file that has waited on stdin since the supervisor died — while the synchronous check loop
|
|
210
|
+
* held the thread — is read, and {@link endWhenSupervisorGone} exits before any document is written.
|
|
211
|
+
*
|
|
212
|
+
* Twice, because the first turn may begin after this iteration's poll phase: the second always
|
|
213
|
+
* crosses one. Without it, a child orphaned inside a check wrote its document to a pipe nobody
|
|
214
|
+
* reads and exited 0.
|
|
215
|
+
*
|
|
216
|
+
* @returns A promise that resolves after two turns — when the child is still supervised
|
|
217
|
+
*/
|
|
218
|
+
export declare function letSupervisorLossSurface(): Promise<void>;
|
|
153
219
|
export {};
|
|
154
220
|
//# sourceMappingURL=check-progress.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-progress.d.ts","sourceRoot":"","sources":["../../../src/commands/resources/check-progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;
|
|
1
|
+
{"version":3,"file":"check-progress.d.ts","sourceRoot":"","sources":["../../../src/commands/resources/check-progress.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAMH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AA+G7D,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMvB,CAAC;AAEH,oCAAoC;AACpC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GACpB;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAAE,GAC/B;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjD;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GAC9B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE9B;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAQ9D;AA4BD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,aAAa,EAAE,GAAG,YAAY,CA2B5E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,IAAI,CAAC,eAAe,EAAE,aAAa,CAAC,GAC1C,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAIhC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,qBAAqB,CACnC,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,CAAC,cAAc,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE,GACpD,IAAI,CAiBN;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,IAAI,CAAC,CAI9D"}
|