tea-rags 1.51.2 → 1.52.0
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 +303 -138
- package/benchmarks/bench-model-ab.mjs +407 -0
- package/build/bootstrap/factory.d.ts.map +1 -1
- package/build/bootstrap/factory.js +19 -15
- package/build/bootstrap/factory.js.map +1 -1
- package/build/bootstrap/project-ingest-factory.d.ts +7 -3
- package/build/bootstrap/project-ingest-factory.d.ts.map +1 -1
- package/build/bootstrap/project-ingest-factory.js +2 -2
- package/build/bootstrap/project-ingest-factory.js.map +1 -1
- package/build/cli/commands/update.d.ts +2 -0
- package/build/cli/commands/update.d.ts.map +1 -1
- package/build/cli/commands/update.js +9 -1
- package/build/cli/commands/update.js.map +1 -1
- package/build/cli/plugin-sync/index.d.ts +4 -1
- package/build/cli/plugin-sync/index.d.ts.map +1 -1
- package/build/cli/plugin-sync/index.js +9 -18
- package/build/cli/plugin-sync/index.js.map +1 -1
- package/build/cli/plugin-sync/types.d.ts +8 -1
- package/build/cli/plugin-sync/types.d.ts.map +1 -1
- package/build/cli/plugin-sync/types.js +24 -0
- package/build/cli/plugin-sync/types.js.map +1 -1
- package/build/cli/plugin-sync/zcode.d.ts +46 -0
- package/build/cli/plugin-sync/zcode.d.ts.map +1 -0
- package/build/cli/plugin-sync/zcode.js +163 -0
- package/build/cli/plugin-sync/zcode.js.map +1 -0
- package/build/core/adapters/vcs/git/adapter.d.ts +8 -1
- package/build/core/adapters/vcs/git/adapter.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/adapter.js.map +1 -1
- package/build/core/adapters/vcs/git/es-git/adapter.d.ts +4 -1
- package/build/core/adapters/vcs/git/es-git/adapter.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/es-git/adapter.js +2 -2
- package/build/core/adapters/vcs/git/es-git/adapter.js.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/adapter.d.ts +4 -1
- package/build/core/adapters/vcs/git/git-cli/adapter.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/adapter.js +2 -2
- package/build/core/adapters/vcs/git/git-cli/adapter.js.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/history.d.ts +4 -1
- package/build/core/adapters/vcs/git/git-cli/history.d.ts.map +1 -1
- package/build/core/adapters/vcs/git/git-cli/history.js +9 -2
- package/build/core/adapters/vcs/git/git-cli/history.js.map +1 -1
- package/build/core/api/internal/app-factory.d.ts +1 -1
- package/build/core/api/internal/app-factory.d.ts.map +1 -1
- package/build/core/api/internal/app-factory.js +3 -2
- package/build/core/api/internal/app-factory.js.map +1 -1
- package/build/core/api/internal/composition.d.ts +1 -1
- package/build/core/api/internal/composition.d.ts.map +1 -1
- package/build/core/api/internal/composition.js +7 -1
- package/build/core/api/internal/composition.js.map +1 -1
- package/build/core/api/internal/facades/explore-facade.d.ts +1 -1
- package/build/core/api/internal/facades/explore-facade.d.ts.map +1 -1
- package/build/core/api/internal/infra/working-tree-graph-read.d.ts +22 -0
- package/build/core/api/internal/infra/working-tree-graph-read.d.ts.map +1 -1
- package/build/core/api/internal/infra/working-tree-graph-read.js +75 -1
- package/build/core/api/internal/infra/working-tree-graph-read.js.map +1 -1
- package/build/core/api/internal/migration-parser.d.ts.map +1 -1
- package/build/core/api/internal/migration-parser.js +4 -1
- package/build/core/api/internal/migration-parser.js.map +1 -1
- package/build/core/api/internal/ops/explore-ops.d.ts +7 -2
- package/build/core/api/internal/ops/explore-ops.d.ts.map +1 -1
- package/build/core/api/internal/ops/explore-ops.js +98 -63
- package/build/core/api/internal/ops/explore-ops.js.map +1 -1
- package/build/core/api/internal/ops/indexing-ops.js +1 -0
- package/build/core/api/internal/ops/indexing-ops.js.map +1 -1
- package/build/core/api/public/dto/ingest.d.ts +8 -0
- package/build/core/api/public/dto/ingest.d.ts.map +1 -1
- package/build/core/api/tools/code/register-index-tools.d.ts.map +1 -1
- package/build/core/api/tools/code/register-index-tools.js +2 -0
- package/build/core/api/tools/code/register-index-tools.js.map +1 -1
- package/build/core/contracts/types/language.d.ts +8 -0
- package/build/core/contracts/types/language.d.ts.map +1 -1
- package/build/core/contracts/types/language.js.map +1 -1
- package/build/core/contracts/types/provider.d.ts +17 -0
- package/build/core/contracts/types/provider.d.ts.map +1 -1
- package/build/core/domains/explore/index.d.ts +2 -0
- package/build/core/domains/explore/index.d.ts.map +1 -1
- package/build/core/domains/explore/index.js +2 -0
- package/build/core/domains/explore/index.js.map +1 -1
- package/build/core/domains/explore/resolver-batch.d.ts +45 -0
- package/build/core/domains/explore/resolver-batch.d.ts.map +1 -0
- package/build/core/domains/explore/resolver-batch.js +175 -0
- package/build/core/domains/explore/resolver-batch.js.map +1 -0
- package/build/core/domains/explore/working-tree/tree-graph-marker.d.ts +0 -27
- package/build/core/domains/explore/working-tree/tree-graph-marker.d.ts.map +1 -1
- package/build/core/domains/explore/working-tree/tree-graph-marker.js +15 -1
- package/build/core/domains/explore/working-tree/tree-graph-marker.js.map +1 -1
- package/build/core/domains/ingest/errors/ingest-errors.d.ts.map +1 -1
- package/build/core/domains/ingest/errors/ingest-errors.js +4 -2
- package/build/core/domains/ingest/errors/ingest-errors.js.map +1 -1
- package/build/core/domains/ingest/operations/reindexing.d.ts +17 -0
- package/build/core/domains/ingest/operations/reindexing.d.ts.map +1 -1
- package/build/core/domains/ingest/operations/reindexing.js +45 -1
- package/build/core/domains/ingest/operations/reindexing.js.map +1 -1
- package/build/core/domains/ingest/pipeline/chunk-point-payload.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/chunk-point-payload.js +4 -1
- package/build/core/domains/ingest/pipeline/chunk-point-payload.js.map +1 -1
- package/build/core/domains/ingest/pipeline/chunker/infra/worker.js +3 -0
- package/build/core/domains/ingest/pipeline/chunker/infra/worker.js.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/backfiller.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/backfiller.js +16 -0
- package/build/core/domains/ingest/pipeline/enrichment/backfiller.js.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/completion-runner.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/completion-runner.js +4 -1
- package/build/core/domains/ingest/pipeline/enrichment/completion-runner.js.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/file-phase.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/enrichment/file-phase.js +11 -0
- package/build/core/domains/ingest/pipeline/enrichment/file-phase.js.map +1 -1
- package/build/core/domains/ingest/pipeline/file-ingestor.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/file-ingestor.js +10 -6
- package/build/core/domains/ingest/pipeline/file-ingestor.js.map +1 -1
- package/build/core/domains/ingest/pipeline/status-module.d.ts.map +1 -1
- package/build/core/domains/ingest/pipeline/status-module.js +3 -8
- package/build/core/domains/ingest/pipeline/status-module.js.map +1 -1
- package/build/core/domains/ingest/sync/index-holes.d.ts +40 -0
- package/build/core/domains/ingest/sync/index-holes.d.ts.map +1 -0
- package/build/core/domains/ingest/sync/index-holes.js +50 -0
- package/build/core/domains/ingest/sync/index-holes.js.map +1 -0
- package/build/core/domains/ingest/sync/index.d.ts +1 -0
- package/build/core/domains/ingest/sync/index.d.ts.map +1 -1
- package/build/core/domains/ingest/sync/index.js +1 -0
- package/build/core/domains/ingest/sync/index.js.map +1 -1
- package/build/core/domains/language/capability/readme.d.ts +1 -1
- package/build/core/domains/language/capability/readme.js +2 -2
- package/build/core/domains/language/errors.d.ts +13 -1
- package/build/core/domains/language/errors.d.ts.map +1 -1
- package/build/core/domains/language/errors.js +18 -0
- package/build/core/domains/language/errors.js.map +1 -1
- package/build/core/domains/language/factory.d.ts +41 -10
- package/build/core/domains/language/factory.d.ts.map +1 -1
- package/build/core/domains/language/factory.js +87 -85
- package/build/core/domains/language/factory.js.map +1 -1
- package/build/core/domains/language/index.d.ts +2 -5
- package/build/core/domains/language/index.d.ts.map +1 -1
- package/build/core/domains/language/index.js +9 -5
- package/build/core/domains/language/index.js.map +1 -1
- package/build/core/domains/language/provider-sources.d.ts +56 -0
- package/build/core/domains/language/provider-sources.d.ts.map +1 -0
- package/build/core/domains/language/provider-sources.js +156 -0
- package/build/core/domains/language/provider-sources.js.map +1 -0
- package/build/core/domains/language/ruby/capability.d.ts.map +1 -1
- package/build/core/domains/language/ruby/capability.js +6 -1
- package/build/core/domains/language/ruby/capability.js.map +1 -1
- package/build/core/domains/language/ruby/chunking/rspec-scope-chunker.d.ts.map +1 -1
- package/build/core/domains/language/ruby/chunking/rspec-scope-chunker.js +4 -1
- package/build/core/domains/language/ruby/chunking/rspec-scope-chunker.js.map +1 -1
- package/build/core/domains/language/rust/capability.js +1 -1
- package/build/core/domains/language/rust/capability.js.map +1 -1
- package/build/core/domains/language/typescript/capability.js +1 -1
- package/build/core/domains/language/typescript/capability.js.map +1 -1
- package/build/core/domains/trajectory/codegraph/factory.d.ts.map +1 -1
- package/build/core/domains/trajectory/codegraph/factory.js +3 -0
- package/build/core/domains/trajectory/codegraph/factory.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/blame-store.d.ts +5 -1
- package/build/core/domains/trajectory/git/infra/blame-store.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/blame-store.js +62 -8
- package/build/core/domains/trajectory/git/infra/blame-store.js.map +1 -1
- package/build/core/domains/trajectory/git/infra/file-lifetime-store.d.ts +38 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime-store.d.ts.map +1 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime-store.js +105 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime-store.js.map +1 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime.d.ts +24 -0
- package/build/core/domains/trajectory/git/infra/file-lifetime.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/infra/file-lifetime.js +55 -1
- package/build/core/domains/trajectory/git/infra/file-lifetime.js.map +1 -1
- package/build/core/domains/trajectory/git/provider.d.ts +15 -1
- package/build/core/domains/trajectory/git/provider.d.ts.map +1 -1
- package/build/core/domains/trajectory/git/provider.js +61 -8
- package/build/core/domains/trajectory/git/provider.js.map +1 -1
- package/build/core/types.d.ts +8 -0
- package/build/core/types.d.ts.map +1 -1
- package/build/mcp/resources/generated/agent-context.d.ts.map +1 -1
- package/build/mcp/resources/generated/agent-context.js +1 -1
- package/build/mcp/resources/generated/agent-context.js.map +1 -1
- package/build/typecheck-tests.tsbuildinfo +1 -0
- package/harness/cursor/README.md +4 -1
- package/harness/cursor/dinopowers/.cursor-plugin/plugin.json +3 -2
- package/harness/cursor/dinopowers/icon.png +0 -0
- package/harness/cursor/dinopowers/skills/dino-brainstorming/SKILL.md +14 -12
- package/harness/cursor/dinopowers/skills/dino-executing-plans/SKILL.md +7 -3
- package/harness/cursor/dinopowers/skills/dino-finishing-a-development-branch/SKILL.md +3 -3
- package/harness/cursor/dinopowers/skills/dino-receiving-code-review/SKILL.md +4 -4
- package/harness/cursor/dinopowers/skills/dino-requesting-code-review/SKILL.md +3 -3
- package/harness/cursor/dinopowers/skills/dino-systematic-debugging/SKILL.md +12 -12
- package/harness/cursor/dinopowers/skills/dino-test-driven-development/SKILL.md +6 -3
- package/harness/cursor/dinopowers/skills/dino-verification-before-completion/SKILL.md +3 -3
- package/harness/cursor/dinopowers/skills/dino-writing-plans/SKILL.md +7 -3
- package/harness/cursor/dinopowers/skills/dino-writing-skills/SKILL.md +4 -4
- package/harness/cursor/tea-rags/.cursor-plugin/plugin.json +3 -2
- package/harness/cursor/tea-rags/icon.png +0 -0
- package/harness/cursor/tea-rags/rules/tea-rags-core.mdc +12 -8
- package/harness/cursor/tea-rags/scripts/check-build-fresh.sh +1 -0
- package/harness/cursor/tea-rags/scripts/reread-ledger.mjs +6 -3
- package/harness/cursor/tea-rags/skills/analytics-rerank/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/architecture-diagnostics/SKILL.md +7 -7
- package/harness/cursor/tea-rags/skills/bug-hunt/SKILL.md +9 -9
- package/harness/cursor/tea-rags/skills/data-driven-generation/SKILL.md +6 -4
- package/harness/cursor/tea-rags/skills/explore/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/extract-project-patterns/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/filter-building/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/force-reindex/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/index/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/mr-review/SKILL.md +5 -3
- package/harness/cursor/tea-rags/skills/pattern-search/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/refactoring-planning/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/refactoring-scan/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/report-issue/SKILL.md +3 -3
- package/harness/cursor/tea-rags/skills/risk-assessment/SKILL.md +4 -4
- package/harness/cursor/tea-rags/skills/test-first/SKILL.md +4 -4
- package/harness/cursor/tea-rags/skills/tests-as-context/SKILL.md +3 -3
- package/harness/cursor/tea-rags-setup/.cursor-plugin/plugin.json +3 -2
- package/harness/cursor/tea-rags-setup/icon.png +0 -0
- package/harness/cursor/tea-rags-setup/scripts/detect.mjs +4 -0
- package/harness/cursor/tea-rags-setup/skills/install/SKILL.md +17 -9
- package/harness/cursor/tea-rags-setup/skills/tune/SKILL.md +3 -3
- package/harness/zcode/MANUAL-TEST.md +43 -0
- package/harness/zcode/README.md +141 -0
- package/harness/zcode/dinopowers/.zcode-plugin/plugin.json +10 -0
- package/harness/zcode/dinopowers/CHAINING.md +56 -0
- package/harness/zcode/dinopowers/FRESHNESS.md +33 -0
- package/harness/zcode/dinopowers/hooks/hooks.json +30 -0
- package/harness/zcode/dinopowers/icon.png +0 -0
- package/harness/zcode/dinopowers/scripts/main-session-routing.sh +41 -0
- package/harness/zcode/dinopowers/scripts/main-session-routing.txt +24 -0
- package/harness/zcode/dinopowers/scripts/wrapper-routing-agent.sh +19 -0
- package/harness/zcode/dinopowers/scripts/wrapper-routing.txt +25 -0
- package/harness/zcode/dinopowers/skills/dino-brainstorming/SKILL.md +286 -0
- package/harness/zcode/dinopowers/skills/dino-executing-plans/SKILL.md +375 -0
- package/harness/zcode/dinopowers/skills/dino-finishing-a-development-branch/SKILL.md +186 -0
- package/harness/zcode/dinopowers/skills/dino-receiving-code-review/SKILL.md +275 -0
- package/harness/zcode/dinopowers/skills/dino-receiving-code-review/references/call-route.md +53 -0
- package/harness/zcode/dinopowers/skills/dino-requesting-code-review/SKILL.md +260 -0
- package/harness/zcode/dinopowers/skills/dino-systematic-debugging/SKILL.md +358 -0
- package/harness/zcode/dinopowers/skills/dino-systematic-debugging/references/red-flags.md +47 -0
- package/harness/zcode/dinopowers/skills/dino-systematic-debugging/references/trace-chain.md +36 -0
- package/harness/zcode/dinopowers/skills/dino-test-driven-development/SKILL.md +263 -0
- package/harness/zcode/dinopowers/skills/dino-verification-before-completion/SKILL.md +268 -0
- package/harness/zcode/dinopowers/skills/dino-writing-plans/SKILL.md +332 -0
- package/harness/zcode/dinopowers/skills/dino-writing-skills/SKILL.md +134 -0
- package/harness/zcode/marketplace.json +32 -0
- package/harness/zcode/tea-rags/.mcp.json +9 -0
- package/harness/zcode/tea-rags/.zcode-plugin/plugin.json +11 -0
- package/harness/zcode/tea-rags/hooks/hooks.json +129 -0
- package/harness/zcode/tea-rags/icon.png +0 -0
- package/harness/zcode/tea-rags/repair/README.md +38 -0
- package/harness/zcode/tea-rags/repair/cycles.md +36 -0
- package/harness/zcode/tea-rags/repair/facadeContract.md +32 -0
- package/harness/zcode/tea-rags/repair/hubLike.md +72 -0
- package/harness/zcode/tea-rags/repair/layeringBackEdge.md +64 -0
- package/harness/zcode/tea-rags/repair/leakingAbstraction.md +58 -0
- package/harness/zcode/tea-rags/repair/mainSequence.md +48 -0
- package/harness/zcode/tea-rags/repair/silentCoupling.md +43 -0
- package/harness/zcode/tea-rags/repair/splitCandidates.md +37 -0
- package/harness/zcode/tea-rags/repair/stableDependencies.md +76 -0
- package/harness/zcode/tea-rags/rules/core.md +146 -0
- package/harness/zcode/tea-rags/rules/references/axis-splitting.md +50 -0
- package/harness/zcode/tea-rags/rules/references/report-follow-up.md +36 -0
- package/harness/zcode/tea-rags/rules/references/runtime-introspection.md +138 -0
- package/harness/zcode/tea-rags/rules/references/signal-interpretation.md +545 -0
- package/harness/zcode/tea-rags/scripts/check-build-fresh.sh +24 -0
- package/harness/zcode/tea-rags/scripts/cleanup-clone.sh +12 -0
- package/harness/zcode/tea-rags/scripts/cleanup-worktree-clone.sh +48 -0
- package/harness/zcode/tea-rags/scripts/inject-rules.sh +120 -0
- package/harness/zcode/tea-rags/scripts/reread-ledger.mjs +1610 -0
- package/harness/zcode/tea-rags/scripts/search-drift.sh +212 -0
- package/harness/zcode/tea-rags/scripts/session-digest.sh +33 -0
- package/harness/zcode/tea-rags/scripts/session-rules.sh +20 -0
- package/harness/zcode/tea-rags/scripts/standard-zone.ere +1 -0
- package/harness/zcode/tea-rags/scripts/subagent-block.txt +32 -0
- package/harness/zcode/tea-rags/scripts/subagent-context.sh +31 -0
- package/harness/zcode/tea-rags/scripts/turn-routing.sh +82 -0
- package/harness/zcode/tea-rags/scripts/turn-routing.txt +6 -0
- package/harness/zcode/tea-rags/skills/analytics-rerank/SKILL.md +276 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/SKILL.md +261 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/anti-patterns.md +55 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-1-report.md +106 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3b-leaking-abstraction.md +46 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3c-silent-coupling.md +55 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3c2-shotgun-surgery.md +93 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3d-main-sequence.md +29 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3d2-hub-like.md +26 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3d3-propagation-cost.md +26 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3e-layering.md +29 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3f-layer-map.md +24 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3g-dependency-norms.md +70 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3h-diff-time.md +37 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-3i-remedy-simulation.md +36 -0
- package/harness/zcode/tea-rags/skills/architecture-diagnostics/references/phase-4-exclusions.md +55 -0
- package/harness/zcode/tea-rags/skills/bug-hunt/SKILL.md +282 -0
- package/harness/zcode/tea-rags/skills/bug-hunt/references/call-path.md +97 -0
- package/harness/zcode/tea-rags/skills/bug-hunt/references/probes.md +69 -0
- package/harness/zcode/tea-rags/skills/bug-hunt/references/triage.md +56 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/SKILL.md +430 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/references/step-5-style.md +118 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/references/step-6-generate.md +66 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/references/step-7-verify.md +210 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/strategies/conservative.md +19 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/strategies/defensive.md +24 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/strategies/stabilization.md +21 -0
- package/harness/zcode/tea-rags/skills/data-driven-generation/strategies/standard.md +13 -0
- package/harness/zcode/tea-rags/skills/explore/SKILL.md +112 -0
- package/harness/zcode/tea-rags/skills/explore/references/architecture-pattern.md +63 -0
- package/harness/zcode/tea-rags/skills/explore/references/cycle-pattern.md +43 -0
- package/harness/zcode/tea-rags/skills/explore/references/entry-point-pattern.md +48 -0
- package/harness/zcode/tea-rags/skills/explore/references/exemplar-pattern.md +46 -0
- package/harness/zcode/tea-rags/skills/explore/references/explain-pattern.md +33 -0
- package/harness/zcode/tea-rags/skills/explore/references/explore-flow.md +89 -0
- package/harness/zcode/tea-rags/skills/explore/references/naming-pattern.md +15 -0
- package/harness/zcode/tea-rags/skills/explore/references/pre-gen-pattern.md +97 -0
- package/harness/zcode/tea-rags/skills/explore/references/trace-pattern.md +20 -0
- package/harness/zcode/tea-rags/skills/explore/references/usage-pattern.md +75 -0
- package/harness/zcode/tea-rags/skills/extract-project-patterns/SKILL.md +149 -0
- package/harness/zcode/tea-rags/skills/filter-building/SKILL.md +359 -0
- package/harness/zcode/tea-rags/skills/force-reindex/SKILL.md +76 -0
- package/harness/zcode/tea-rags/skills/index/SKILL.md +87 -0
- package/harness/zcode/tea-rags/skills/mr-review/SKILL.md +217 -0
- package/harness/zcode/tea-rags/skills/mr-review/references/delivery-contract.md +160 -0
- package/harness/zcode/tea-rags/skills/mr-review/references/dimension-playbook.md +237 -0
- package/harness/zcode/tea-rags/skills/pattern-search/SKILL.md +178 -0
- package/harness/zcode/tea-rags/skills/refactoring-planning/SKILL.md +193 -0
- package/harness/zcode/tea-rags/skills/refactoring-scan/SKILL.md +150 -0
- package/harness/zcode/tea-rags/skills/report-issue/SKILL.md +95 -0
- package/harness/zcode/tea-rags/skills/risk-assessment/SKILL.md +622 -0
- package/harness/zcode/tea-rags/skills/risk-assessment/references/anti-patterns.md +77 -0
- package/harness/zcode/tea-rags/skills/risk-assessment/references/classification-tiers.md +28 -0
- package/harness/zcode/tea-rags/skills/risk-assessment/references/enrich.md +213 -0
- package/harness/zcode/tea-rags/skills/test-first/SKILL.md +112 -0
- package/harness/zcode/tea-rags/skills/tests-as-context/SKILL.md +357 -0
- package/harness/zcode/tea-rags-setup/.zcode-plugin/plugin.json +9 -0
- package/harness/zcode/tea-rags-setup/icon.png +0 -0
- package/harness/zcode/tea-rags-setup/scripts/contextignore.mjs +107 -0
- package/harness/zcode/tea-rags-setup/scripts/detect.mjs +98 -0
- package/harness/zcode/tea-rags-setup/scripts/profile.mjs +110 -0
- package/harness/zcode/tea-rags-setup/skills/install/SKILL.md +216 -0
- package/harness/zcode/tea-rags-setup/skills/tune/SKILL.md +80 -0
- package/package.json +3 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../../../src/core/api/internal/composition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,gCAAgC,CAAC;AAQxC,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAChC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAkD,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAEnH,OAAO,EAKL,2BAA2B,EAE5B,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,uEAAuE,CAAC;AACrH,OAAO,EAGL,KAAK,aAAa,EACnB,MAAM,6CAA6C,CAAC;AAOrD,OAAO,EAOL,KAAK,iBAAiB,EACvB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAKL,kBAAkB,EACnB,MAAM,mCAAmC,CAAC;AAM3C,OAAO,KAAK,EACV,mCAAmC,EACnC,4BAA4B,EAC5B,iCAAiC,EACj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E,0BAA0B,CAAC;KACpD,CAAC;IACF;;;;;OAKG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,eAAe,EAAE,CAO5F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,oCAAoC,IAAI,uBAAuB,EAAE,CAOhF;AAED;;;;;;;;;GASG;AACH,wBAAgB,sCAAsC,IAAI,0BAA0B,CAEnF;AAED;;;;;;;;;;;;;GAaG;AACH;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,IAAI,uBAAuB,EAAE,CAEtE;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,IAAI,uBAAuB,CAqBjE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,EAAE,CAExD;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,IAAI,eAAe,EAAE,CAO7D;AAED,wBAAgB,6BAA6B,IAAI,0BAA0B,EAAE,CAE5E;AAED,
|
|
1
|
+
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../../../src/core/api/internal/composition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,iBAAiB,EAClB,MAAM,gCAAgC,CAAC;AAQxC,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC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AAO,EAAE,oBAAoB,GAAG,mBAAmB,CAE3F;AAED;;;;;;;;;;GAUG;AACH,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC;;;GAGG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD"}
|
|
@@ -173,7 +173,7 @@ export function fullRegistryFilterPresets() {
|
|
|
173
173
|
export function fullRegistryStatsAccumulators() {
|
|
174
174
|
return [...staticStatsAccumulators, ...gitStatsAccumulators];
|
|
175
175
|
}
|
|
176
|
-
export function createComposition(options = {}) {
|
|
176
|
+
export async function createComposition(options = {}) {
|
|
177
177
|
// Real LanguageFactoryDescriptor: it ENCAPSULATES construction. All languages are
|
|
178
178
|
// native `domains/language/<lang>` providers built by the factory itself; each
|
|
179
179
|
// native provider carries its own resolver, built with the configured
|
|
@@ -187,6 +187,12 @@ export function createComposition(options = {}) {
|
|
|
187
187
|
? { rustcCallSiteSource: processRustcCallSiteSource(options.codegraph.rustDriver) }
|
|
188
188
|
: {}),
|
|
189
189
|
});
|
|
190
|
+
// bd tea-rags-mcp-zkd96 — the factory reaches per-language verticals through
|
|
191
|
+
// a lazy module registry, and the codegraph trajectory's provider eagerly
|
|
192
|
+
// constructs providers for every supported language at registration. The
|
|
193
|
+
// composition root is the seam that makes every language loadable: preload
|
|
194
|
+
// the full set before any trajectory sees the factory.
|
|
195
|
+
await languageFactory.preload();
|
|
190
196
|
const registry = new TrajectoryRegistry();
|
|
191
197
|
registry.register(new StaticTrajectory());
|
|
192
198
|
registry.register(new GitTrajectory(options.git?.config, options.git?.workerDescriptor, options.git?.temporalSymbolCommits));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../../../../src/core/api/internal/composition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AAOtF,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAElC,MAAM,yCAAyC,CAAC;AACj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ED,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;AACpD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB;IACjC,OAAO,CAAC,GAAG,IAAI,gBAAgB,EAAE,CAAC,OAAO,EAAE,GAAG,UAAU,EAAE,GAAG,gBAAgB,CAAC,CAAC;AACjF,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,yBAAyB;IACvC,OAAO;QACL,GAAG,qBAAqB;QACxB,GAAG,kBAAkB;QACrB,GAAG,wBAAwB;QAC3B,GAAG,4BAA4B;KAChC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6BAA6B;IAC3C,OAAO,CAAC,GAAG,uBAAuB,EAAE,GAAG,oBAAoB,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,UAA8B,EAAE;
|
|
1
|
+
{"version":3,"file":"composition.js","sourceRoot":"","sources":["../../../../src/core/api/internal/composition.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mDAAmD,CAAC;AAOtF,OAAO,EACL,uBAAuB,EACvB,iCAAiC,GAElC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,mCAAmC,EAAE,MAAM,yCAAyC,CAAC;AAC9F,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EACL,8BAA8B,EAC9B,oBAAoB,GAgBrB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,QAAQ,EAAE,cAAc,EAAqB,MAAM,gCAAgC,CAAC;AACnH,OAAO,EAAE,0BAA0B,EAAE,MAAM,qCAAqC,CAAC;AACjF,OAAO,EACL,eAAe,EACf,0BAA0B,EAC1B,6BAA6B,EAC7B,yBAAyB,EACzB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,iCAAiC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C,OAAO,CAAC,CAAC;AACzC,CAAC;AAED;;;;;;;;;;GAUG;AACH,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC;;;GAGG;AACH,MAAM,UAAU,uBAAuB;IACrC,OAAO,6BAA6B,CAAC,0BAA0B,EAAE,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -44,7 +44,7 @@ export interface ExploreFacadeDeps {
|
|
|
44
44
|
* through to IndexMetricsQuery. Resolved per request because the slice is
|
|
45
45
|
* per project (bd tea-rags-mcp-uebug).
|
|
46
46
|
*/
|
|
47
|
-
enrichmentHealthFrameForPath?: (path: string) => readonly string[]
|
|
47
|
+
enrichmentHealthFrameForPath?: (path: string) => readonly string[] | Promise<readonly string[]>;
|
|
48
48
|
/** The `workingTree` marker source (bd tea-rags-mcp-xi2r9), threaded through to ExploreOps. */
|
|
49
49
|
workingTreeOverlay?: Pick<WorkingTreeOverlay, "view">;
|
|
50
50
|
/** The query clock of an index (bd tea-rags-mcp-zwu7m), threaded through to ExploreOps. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explore-facade.d.ts","sourceRoot":"","sources":["../../../../../src/core/api/internal/facades/explore-facade.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACpG,OAAO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,"file":"explore-facade.d.ts","sourceRoot":"","sources":["../../../../../src/core/api/internal/facades/explore-facade.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjF,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACpG,OAAO,EACL,uBAAuB,IAAI,6BAA6B,EAExD,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACxB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAGnF,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,kBAAkB,EAAE,cAAc,CAAC;IACn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;IAIjE,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;IAKlE,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,eAAe,CAAC;IAKtE,iGAAiG;IAC3F,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,YAAY,CAAC;IAIlH,yGAAyG;IACnG,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,GAAG,SAAS,CAAC;CAGpF;AA8BD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAe5E;AAED,OAAO,EAAE,6BAA6B,IAAI,uBAAuB,EAAE,CAAC"}
|
|
@@ -47,6 +47,28 @@ export type WorkingTreeGraphHandleSelection = {
|
|
|
47
47
|
* view's answer budget — when given.
|
|
48
48
|
*/
|
|
49
49
|
export declare function selectWorkingTreeGraphHandle(readTreeGraph: WorkingTreeGraphReader | undefined, opener: WorkingTreeGraphFileOpener, remainingWaitMs?: () => number): Promise<WorkingTreeGraphHandleSelection>;
|
|
50
|
+
/**
|
|
51
|
+
* Lease {@link readWorkingTreeGraph}'s tree-graph handles for one request's
|
|
52
|
+
* reader (bd tea-rags-mcp-4qdj0): every read of a registered reader re-uses
|
|
53
|
+
* ONE open READ_ONLY handle per dbPath, instead of paying the 12-23ms
|
|
54
|
+
* open→query→close cycle of a ~600MB tree file per decoration-resolver call.
|
|
55
|
+
* The reader registered must be the one closure the request's reads share
|
|
56
|
+
* (`recordingTreeGraphReader` memoizes it per view), and the request seam MUST
|
|
57
|
+
* {@link releaseWorkingTreeGraphLease} once its reads have settled — a leaked
|
|
58
|
+
* lease holds the file open forever and blocks a superseded graph's deletion
|
|
59
|
+
* (WTO-7/D5). Idempotent; a reader that was never registered keeps the
|
|
60
|
+
* per-call open→query→close, and so does a read arriving after release.
|
|
61
|
+
*/
|
|
62
|
+
export declare function leaseWorkingTreeGraphReads(readTreeGraph: WorkingTreeGraphReader | undefined): void;
|
|
63
|
+
/**
|
|
64
|
+
* Close the handle {@link leaseWorkingTreeGraphReads} leased for
|
|
65
|
+
* `readTreeGraph` and forget the registration. Call when the request's reads
|
|
66
|
+
* have settled (its `finally`): a read racing the release would find no lease
|
|
67
|
+
* and degrade to the per-call open→query→close, and an in-flight query on the
|
|
68
|
+
* leased handle would be closed under. Idempotent; a no-op for a reader that
|
|
69
|
+
* never leased.
|
|
70
|
+
*/
|
|
71
|
+
export declare function releaseWorkingTreeGraphLease(readTreeGraph: WorkingTreeGraphReader | undefined): Promise<void>;
|
|
50
72
|
/** `fn`'s answer from the tree graph, or `{ kind: "base" }` for the caller to read the base graph itself. */
|
|
51
73
|
export declare function readWorkingTreeGraph<T>(readTreeGraph: WorkingTreeGraphReader | undefined, opener: WorkingTreeGraphFileOpener, fn: (handle: CollectionGraphHandle) => Promise<T>, remainingWaitMs?: () => number): Promise<{
|
|
52
74
|
kind: "tree";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"working-tree-graph-read.d.ts","sourceRoot":"","sources":["../../../../../src/core/api/internal/infra/working-tree-graph-read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC3B,MAAM,0CAA0C,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,OAAoC,CAAC;AAE5E,yDAAyD;AACzD,MAAM,WAAW,0BAA0B;IACzC,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACvE;AAED;;;;GAIG;AACH,MAAM,MAAM,+BAA+B,GACvC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,qBAAqB,CAAC;IAAC,KAAK,EAAE,qBAAqB,CAAA;CAAE,GAC7E;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,qBAAqB,CAAA;CAAE,CAAC;AAEpD;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,aAAa,EAAE,sBAAsB,GAAG,SAAS,EACjD,MAAM,EAAE,0BAA0B,EAClC,eAAe,CAAC,EAAE,MAAM,MAAM,GAC7B,OAAO,CAAC,+BAA+B,CAAC,
|
|
1
|
+
{"version":3,"file":"working-tree-graph-read.d.ts","sourceRoot":"","sources":["../../../../../src/core/api/internal/infra/working-tree-graph-read.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAEL,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC3B,MAAM,0CAA0C,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,OAAoC,CAAC;AAE5E,yDAAyD;AACzD,MAAM,WAAW,0BAA0B;IACzC,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACvE;AAED;;;;GAIG;AACH,MAAM,MAAM,+BAA+B,GACvC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,qBAAqB,CAAC;IAAC,KAAK,EAAE,qBAAqB,CAAA;CAAE,GAC7E;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,qBAAqB,CAAA;CAAE,CAAC;AAEpD;;;;GAIG;AACH,wBAAsB,4BAA4B,CAChD,aAAa,EAAE,sBAAsB,GAAG,SAAS,EACjD,MAAM,EAAE,0BAA0B,EAClC,eAAe,CAAC,EAAE,MAAM,MAAM,GAC7B,OAAO,CAAC,+BAA+B,CAAC,CAK1C;AAwBD;;;;;;;;;;;GAWG;AACH,wBAAgB,0BAA0B,CAAC,aAAa,EAAE,sBAAsB,GAAG,SAAS,GAAG,IAAI,CAGlG;AAED;;;;;;;GAOG;AACH,wBAAsB,4BAA4B,CAAC,aAAa,EAAE,sBAAsB,GAAG,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAMnH;AAyBD,6GAA6G;AAC7G,wBAAsB,oBAAoB,CAAC,CAAC,EAC1C,aAAa,EAAE,sBAAsB,GAAG,SAAS,EACjD,MAAM,EAAE,0BAA0B,EAClC,EAAE,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,OAAO,CAAC,CAAC,CAAC,EACjD,eAAe,CAAC,EAAE,MAAM,MAAM,GAC7B,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,CAAC;IAAC,KAAK,EAAE,qBAAqB,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,qBAAqB,CAAA;CAAE,CAAC,CAgBrH"}
|
|
@@ -14,13 +14,87 @@ export const WORKING_TREE_GRAPH_WAIT_MS = WORKING_TREE_SEARCH_GRAPH_WAIT_MS;
|
|
|
14
14
|
export async function selectWorkingTreeGraphHandle(readTreeGraph, opener, remainingWaitMs) {
|
|
15
15
|
if (!readTreeGraph)
|
|
16
16
|
return { kind: "base" };
|
|
17
|
-
const state = await readTreeGraph
|
|
17
|
+
const state = await readTreeGraphState(readTreeGraph, remainingWaitMs);
|
|
18
18
|
if (state.kind !== "built")
|
|
19
19
|
return { kind: "base", state };
|
|
20
20
|
return { kind: "tree", handle: await opener.acquireFileReader(state.dbPath), state };
|
|
21
21
|
}
|
|
22
|
+
/** The state read both handle paths share: the wait clamped to the search budget, whatever the seam asked for. */
|
|
23
|
+
async function readTreeGraphState(readTreeGraph, remainingWaitMs) {
|
|
24
|
+
return readTreeGraph(Math.min(WORKING_TREE_GRAPH_WAIT_MS, remainingWaitMs?.() ?? WORKING_TREE_GRAPH_WAIT_MS));
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Registered readers → the promise of their current lease. The promise chain
|
|
28
|
+
* IS the serialization: concurrent reads chain off the stored promise, so an
|
|
29
|
+
* open, a superseded swap and a release never interleave. The entry is also
|
|
30
|
+
* the registration itself — a reader absent from the map is not leased.
|
|
31
|
+
*/
|
|
32
|
+
const treeGraphLeases = new WeakMap();
|
|
33
|
+
/**
|
|
34
|
+
* Lease {@link readWorkingTreeGraph}'s tree-graph handles for one request's
|
|
35
|
+
* reader (bd tea-rags-mcp-4qdj0): every read of a registered reader re-uses
|
|
36
|
+
* ONE open READ_ONLY handle per dbPath, instead of paying the 12-23ms
|
|
37
|
+
* open→query→close cycle of a ~600MB tree file per decoration-resolver call.
|
|
38
|
+
* The reader registered must be the one closure the request's reads share
|
|
39
|
+
* (`recordingTreeGraphReader` memoizes it per view), and the request seam MUST
|
|
40
|
+
* {@link releaseWorkingTreeGraphLease} once its reads have settled — a leaked
|
|
41
|
+
* lease holds the file open forever and blocks a superseded graph's deletion
|
|
42
|
+
* (WTO-7/D5). Idempotent; a reader that was never registered keeps the
|
|
43
|
+
* per-call open→query→close, and so does a read arriving after release.
|
|
44
|
+
*/
|
|
45
|
+
export function leaseWorkingTreeGraphReads(readTreeGraph) {
|
|
46
|
+
if (!readTreeGraph || treeGraphLeases.has(readTreeGraph))
|
|
47
|
+
return;
|
|
48
|
+
treeGraphLeases.set(readTreeGraph, Promise.resolve(undefined));
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Close the handle {@link leaseWorkingTreeGraphReads} leased for
|
|
52
|
+
* `readTreeGraph` and forget the registration. Call when the request's reads
|
|
53
|
+
* have settled (its `finally`): a read racing the release would find no lease
|
|
54
|
+
* and degrade to the per-call open→query→close, and an in-flight query on the
|
|
55
|
+
* leased handle would be closed under. Idempotent; a no-op for a reader that
|
|
56
|
+
* never leased.
|
|
57
|
+
*/
|
|
58
|
+
export async function releaseWorkingTreeGraphLease(readTreeGraph) {
|
|
59
|
+
if (!readTreeGraph)
|
|
60
|
+
return;
|
|
61
|
+
const held = treeGraphLeases.get(readTreeGraph);
|
|
62
|
+
treeGraphLeases.delete(readTreeGraph);
|
|
63
|
+
const lease = await held?.catch(() => undefined);
|
|
64
|
+
if (lease)
|
|
65
|
+
await lease.handle.graphDb.close().catch(() => undefined);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The registered reader's handle for `dbPath`: re-used across reads, swapped
|
|
69
|
+
* (old closed, new opened) when the tree graph was superseded mid-request —
|
|
70
|
+
* an in-flight query on the old file fails into the decoration layers'
|
|
71
|
+
* existing degradation — and opened once however many reads race, because
|
|
72
|
+
* every caller chains off the stored promise. A failed open rejects to its
|
|
73
|
+
* readers like today's per-call open does and is retried by the next read.
|
|
74
|
+
*/
|
|
75
|
+
async function leasedTreeGraphHandle(readTreeGraph, dbPath, opener) {
|
|
76
|
+
const previous = (treeGraphLeases.get(readTreeGraph) ?? Promise.resolve(undefined)).catch(() => undefined);
|
|
77
|
+
const lease = previous.then(async (held) => {
|
|
78
|
+
if (held?.dbPath === dbPath)
|
|
79
|
+
return held;
|
|
80
|
+
if (held)
|
|
81
|
+
await held.handle.graphDb.close().catch(() => undefined);
|
|
82
|
+
return { dbPath, handle: await opener.acquireFileReader(dbPath) };
|
|
83
|
+
});
|
|
84
|
+
treeGraphLeases.set(readTreeGraph, lease);
|
|
85
|
+
return (await lease).handle;
|
|
86
|
+
}
|
|
22
87
|
/** `fn`'s answer from the tree graph, or `{ kind: "base" }` for the caller to read the base graph itself. */
|
|
23
88
|
export async function readWorkingTreeGraph(readTreeGraph, opener, fn, remainingWaitMs) {
|
|
89
|
+
// A registered reader leases: one handle for the request's reads, closed at
|
|
90
|
+
// the seam's release (bd tea-rags-mcp-4qdj0) — never per read.
|
|
91
|
+
if (readTreeGraph && treeGraphLeases.has(readTreeGraph)) {
|
|
92
|
+
const state = await readTreeGraphState(readTreeGraph, remainingWaitMs);
|
|
93
|
+
if (state.kind !== "built")
|
|
94
|
+
return { kind: "base", state };
|
|
95
|
+
const handle = await leasedTreeGraphHandle(readTreeGraph, state.dbPath, opener);
|
|
96
|
+
return { kind: "tree", value: await fn(handle), state };
|
|
97
|
+
}
|
|
24
98
|
const selection = await selectWorkingTreeGraphHandle(readTreeGraph, opener, remainingWaitMs);
|
|
25
99
|
if (selection.kind === "base")
|
|
26
100
|
return selection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"working-tree-graph-read.js","sourceRoot":"","sources":["../../../../../src/core/api/internal/infra/working-tree-graph-read.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,iCAAiC,GAGlC,MAAM,0CAA0C,CAAC;AAElD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,iCAAiC,CAAC;AAgB5E;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,aAAiD,EACjD,MAAkC,EAClC,eAA8B;IAE9B,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC5C,MAAM,KAAK,GAAG,MAAM,aAAa,CAC/B,IAAI,CAAC,GAAG,CAAC,0BAA0B,EAAE,eAAe,EAAE,EAAE,IAAI,0BAA0B,CAAC,
|
|
1
|
+
{"version":3,"file":"working-tree-graph-read.js","sourceRoot":"","sources":["../../../../../src/core/api/internal/infra/working-tree-graph-read.ts"],"names":[],"mappings":"AAkBA,OAAO,EACL,iCAAiC,GAGlC,MAAM,0CAA0C,CAAC;AAElD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,iCAAiC,CAAC;AAgB5E;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAChD,aAAiD,EACjD,MAAkC,EAClC,eAA8B;IAE9B,IAAI,CAAC,aAAa;QAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC5C,MAAM,KAAK,GAAG,MAAM,kBAAk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a,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAChF,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IAC1D,CAAC;IACD,MAAM,SAAS,GAAG,MAAM,4BAA4B,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC;IAC7F,IAAI,SAAS,CAAC,IAAI,KAAK,MAAM;QAAE,OAAO,SAAS,CAAC;IAChD,IAAI,CAAC;QACH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,CAAC;IACrF,CAAC;YAAS,CAAC;QACT,MAAM,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;IAChE,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-parser.d.ts","sourceRoot":"","sources":["../../../../src/core/api/internal/migration-parser.ts"],"names":[],"mappings":"AAGA,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"migration-parser.d.ts","sourceRoot":"","sources":["../../../../src/core/api/internal/migration-parser.ts"],"names":[],"mappings":"AAGA,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,iGAY/F"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { TreeSitterChunker } from "../../domains/ingest/pipeline/chunker/tree-sitter.js";
|
|
2
2
|
import { chunkRailsMigration, DefaultSymbolIdComposer, LanguageFactory } from "../../domains/language/index.js";
|
|
3
3
|
export async function parseMigrationOperations(code, filePath, chunkSize) {
|
|
4
|
-
const
|
|
4
|
+
const languageFactory = new LanguageFactory();
|
|
5
|
+
// Ruby only — preload exactly what this parser chunks (bd tea-rags-mcp-zkd96).
|
|
6
|
+
await languageFactory.preload(["ruby"]);
|
|
7
|
+
const parser = new TreeSitterChunker({ chunkSize, chunkOverlap: 0, maxChunkSize: chunkSize }, new DefaultSymbolIdComposer(), languageFactory);
|
|
5
8
|
const { tree } = await parser.chunkWithTree(code, filePath, "ruby");
|
|
6
9
|
if (!tree)
|
|
7
10
|
throw new Error(`Cannot parse migration: ${filePath}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration-parser.js","sourceRoot":"","sources":["../../../../src/core/api/internal/migration-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEhH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,IAAY,EAAE,QAAgB,EAAE,SAAiB;IAC9F,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAClC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,EACvD,IAAI,uBAAuB,EAAE,EAC7B,
|
|
1
|
+
{"version":3,"file":"migration-parser.js","sourceRoot":"","sources":["../../../../src/core/api/internal/migration-parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sDAAsD,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEhH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAAC,IAAY,EAAE,QAAgB,EAAE,SAAiB;IAC9F,MAAM,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;IAC9C,+EAA+E;IAC/E,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;IACxC,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAClC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,EACvD,IAAI,uBAAuB,EAAE,EAC7B,eAAe,CAChB,CAAC;IACF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACpE,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,QAAQ,EAAE,CAAC,CAAC;IAClE,OAAO,mBAAmB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -67,7 +67,7 @@ export interface ExploreOpsDeps {
|
|
|
67
67
|
* `get_index_status` frames on, not the server's (bd tea-rags-mcp-uebug).
|
|
68
68
|
* Omitted → no frame, and a run-pointer marker reports no providers.
|
|
69
69
|
*/
|
|
70
|
-
enrichmentHealthFrameForPath?: (path: string) => readonly string[]
|
|
70
|
+
enrichmentHealthFrameForPath?: (path: string) => readonly string[] | Promise<readonly string[]>;
|
|
71
71
|
/**
|
|
72
72
|
* Measures the tree a request reads against its index (bd tea-rags-mcp-xi2r9).
|
|
73
73
|
* Present → every answer carries `workingTree`; absent (unit wiring) → none.
|
|
@@ -237,7 +237,12 @@ export declare class ExploreOps {
|
|
|
237
237
|
private buildFindSymbolStrategy;
|
|
238
238
|
/** The path-mode strategy for one file or directory — single `relativePath` and every batch path entry alike. */
|
|
239
239
|
private buildFileOutlineStrategy;
|
|
240
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* The symbol-mode strategy for one address — single `symbol` and every batch
|
|
242
|
+
* address alike. A batch hands its `resolvers` (prefetch + cache wrappers,
|
|
243
|
+
* bd tea-rags-mcp-4qdj0); single-symbol paths pass nothing and use the ops'
|
|
244
|
+
* own resolvers.
|
|
245
|
+
*/
|
|
241
246
|
private buildSymbolSearchStrategy;
|
|
242
247
|
/**
|
|
243
248
|
* Resolve collection + check model guard. Call BEFORE embed(query) so
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"explore-ops.d.ts","sourceRoot":"","sources":["../../../../../src/core/api/internal/ops/explore-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE,OAAO,KAAK,EAAkC,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AACjH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGtE,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,wBAAwB,EACzB,MAAM,uCAAuC,CAAC;AAE/C,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAG3E,OAAO,KAAK,EACV,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACb,MAAM,wCAAwC,CAAC;AAEhD,OAAO,
|
|
1
|
+
{"version":3,"file":"explore-ops.d.ts","sourceRoot":"","sources":["../../../../../src/core/api/internal/ops/explore-ops.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,sCAAsC,CAAC;AAE9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAExE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CAwBT;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,aAAa,EAAE,UAAU,EACzB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GACnD,kBAAkB,GAAG,SAAS,CAehC;AA4CD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,UAAU,GAAG,SAAS,EAC5B,aAAa,EAAE,UAAU,GAAG,SAAS,EACrC,KAAK,EAAE,qBAAqB,GAAG,SAAS,EACxC,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,kBAAkB,EAC5B,MAAM,CAAC,EAAE,MAAM,GACd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAyBrC"}
|
|
@@ -16,7 +16,7 @@ import { isEmbeddingProviderUnavailable } from "../../../adapters/embeddings/err
|
|
|
16
16
|
import { mergeQdrantFilters } from "../../../adapters/qdrant/filters/utils.js";
|
|
17
17
|
import { INDEXING_METADATA_ID } from "../../../contracts/constants.js";
|
|
18
18
|
import { TEST_CHUNK_TYPES } from "../../../contracts/types/chunker.js";
|
|
19
|
-
import { computeSearchConfidence, createExploreStrategy, EmptyFilterPresetError, FileOutlineStrategy, IndexMetricsQuery, MIGRATION_ID_PREFIX, MigrationCorpusQuery, outlineAddressOf, QUERY_VARIANT_SEPARATOR, RAILS_TABLE_ID_PREFIX, SimilarSearchStrategy, splitQueryVariants, SymbolBatchDrill, SymbolMissExplainer, SymbolSearchStrategy, UnknownFilterPresetError, withoutWorkingTreeFloors, } from "../../../domains/explore/index.js";
|
|
19
|
+
import { batchedResolvers, computeSearchConfidence, containerIdsOf, createExploreStrategy, EmptyFilterPresetError, FileOutlineStrategy, IndexMetricsQuery, MIGRATION_ID_PREFIX, MigrationCorpusQuery, outlineAddressOf, QUERY_VARIANT_SEPARATOR, RAILS_TABLE_ID_PREFIX, recordingTreeGraphReader, SimilarSearchStrategy, splitQueryVariants, SymbolBatchDrill, SymbolMissExplainer, SymbolSearchStrategy, UnknownFilterPresetError, withoutWorkingTreeFloors, } from "../../../domains/explore/index.js";
|
|
20
20
|
import { NotIndexedError } from "../../../domains/ingest/errors/index.js";
|
|
21
21
|
import { migrationCollectionName } from "../../../domains/ingest/index.js";
|
|
22
22
|
import { StatsRecomputeService } from "../../../domains/ingest/infra/index.js";
|
|
@@ -26,6 +26,7 @@ import { foldRailsTableMigrations } from "../../../domains/language/index.js";
|
|
|
26
26
|
import { compileFilterPreset } from "../../../domains/trajectory/index.js";
|
|
27
27
|
import { projectSearchResultPayloads, stripInternalFields, } from "../../public/dto/index.js";
|
|
28
28
|
import { resolveIndexedWorkingTree, resolveWorkingTree } from "../collection-resolver.js";
|
|
29
|
+
import { leaseWorkingTreeGraphReads, releaseWorkingTreeGraphLease } from "../infra/working-tree-graph-read.js";
|
|
29
30
|
import { explainEmptySearch } from "./empty-search-explanation.js";
|
|
30
31
|
/**
|
|
31
32
|
* Every query embed of a search, and the model guard's canary on it, waits
|
|
@@ -177,31 +178,42 @@ export class ExploreOps {
|
|
|
177
178
|
const ctx = withHistoryClock(buildFindSymbolContext(request, collectionName), historyAnchorSec);
|
|
178
179
|
if (request.symbols)
|
|
179
180
|
return this.findSymbolBatch(request, request.symbols, ctx, workingTreeView);
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
181
|
+
// bd tea-rags-mcp-4qdj0 — the single path's decoration reads (ancestors +
|
|
182
|
+
// visibility, the tree-definition ranges) share ONE leased tree-graph
|
|
183
|
+
// handle for the request, released when it settles; without the lease each
|
|
184
|
+
// read pays its own 12-23ms open→query→close on the tree graph file.
|
|
185
|
+
const readTreeGraph = recordingTreeGraphReader(await workingTreeView);
|
|
186
|
+
leaseWorkingTreeGraphReads(readTreeGraph);
|
|
187
|
+
try {
|
|
188
|
+
const strategy = this.buildFindSymbolStrategy(request);
|
|
189
|
+
const response = await this.executeExplore(strategy, ctx, {
|
|
190
|
+
fields: request.fields,
|
|
191
|
+
outline: strategy instanceof FileOutlineStrategy,
|
|
192
|
+
workingTreeView,
|
|
193
|
+
});
|
|
194
|
+
// Finalize: the per-request symbol strategy records a skipped OPTIONAL
|
|
195
|
+
// codegraph hop (codegraph unavailable from this process) — attach it so the
|
|
196
|
+
// caller learns why a collapsed symbol is missing (bd tea-rags-mcp-a43tr).
|
|
197
|
+
const codegraphWarning = strategy instanceof SymbolSearchStrategy ? strategy.codegraphWarning : undefined;
|
|
198
|
+
// A directory path is answered by its listing (N2), an unknown path by the
|
|
199
|
+
// nearest indexed paths (N6 `unknownPath`).
|
|
200
|
+
const directory = strategy instanceof FileOutlineStrategy ? strategy.directory : undefined;
|
|
201
|
+
const empty = strategy instanceof FileOutlineStrategy
|
|
202
|
+
? strategy.emptyAnswer
|
|
203
|
+
: response.results.length === 0 && request.symbol
|
|
204
|
+
? ((strategy instanceof SymbolSearchStrategy ? strategy.emptyAnswer : undefined) ??
|
|
205
|
+
(await this.explainSymbolMiss(request, request.symbol, ctx, workingTreeView)))
|
|
206
|
+
: undefined;
|
|
207
|
+
return {
|
|
208
|
+
...response,
|
|
209
|
+
...(codegraphWarning ? { codegraphWarning } : {}),
|
|
210
|
+
...(directory ? { directory } : {}),
|
|
211
|
+
...(empty ? { empty } : {}),
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
finally {
|
|
215
|
+
await releaseWorkingTreeGraphLease(readTreeGraph);
|
|
216
|
+
}
|
|
205
217
|
}
|
|
206
218
|
/** N6 `unknownSymbol`: why a single `symbol` answered nothing; a failed diagnosis leaves the answer unexplained. */
|
|
207
219
|
async explainSymbolMiss(request, symbol, ctx, pendingView) {
|
|
@@ -275,39 +287,57 @@ export class ExploreOps {
|
|
|
275
287
|
async findCodeSymbolBatch(request, symbols, ctx, pendingView) {
|
|
276
288
|
await this.ensureStats(ctx.collectionName);
|
|
277
289
|
const workingTreeView = await pendingView;
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
290
|
+
// bd tea-rags-mcp-4qdj0 — every address's outline render pays its own
|
|
291
|
+
// decoration-resolver roundtrips (one ancestors + one visibility call per
|
|
292
|
+
// address, serialized on the DuckDB daemon socket: ~120ms/address, a
|
|
293
|
+
// 17-address batch measured 1.9s). One batch, one wrapper: prefetch every
|
|
294
|
+
// id derivable from the addresses in a single resolver call each, and let
|
|
295
|
+
// repeats ride the cache. Single-symbol paths are untouched.
|
|
296
|
+
// Iteration 3: the reader is memoized per view and LEASED — every tree read
|
|
297
|
+
// of the batch (prefetch, each address's decorations) rides ONE open
|
|
298
|
+
// tree-graph handle, released when the batch settles.
|
|
299
|
+
const readTreeGraph = workingTreeView ? recordingTreeGraphReader(workingTreeView) : undefined;
|
|
300
|
+
leaseWorkingTreeGraphReads(readTreeGraph);
|
|
301
|
+
try {
|
|
302
|
+
const resolvers = batchedResolvers(this.containerAncestorResolver, this.visibilityResolver);
|
|
303
|
+
await resolvers.prefetch(ctx.collectionName, containerIdsOf(symbols), readTreeGraph);
|
|
304
|
+
const drill = new SymbolBatchDrill((symbol) => this.buildSymbolSearchStrategy(request, symbol, resolvers), (relativePath) => this.buildFileOutlineStrategy(relativePath, request.language));
|
|
305
|
+
const answer = await drill.execute(symbols, workingTreeView ? { ...ctx, workingTreeView } : ctx);
|
|
306
|
+
const fields = request.fields ?? (request.rerank ? undefined : BATCH_LEAN_FIELDS);
|
|
307
|
+
const projection = projectSearchResultPayloads(answer.rows.map(({ result }) => ({
|
|
308
|
+
id: result.id ?? "",
|
|
309
|
+
score: result.score,
|
|
310
|
+
payload: result.payload ? stripInternalFields(result.payload) : result.payload,
|
|
311
|
+
rankingOverlay: result.rankingOverlay,
|
|
312
|
+
...(result.treeState ? { treeState: result.treeState } : {}),
|
|
313
|
+
})), fields, undefined,
|
|
314
|
+
// Internal batch defaults must not warn about optional absent fields;
|
|
315
|
+
// mandatory source-locator warnings still pass through without `fields`.
|
|
316
|
+
request.fields !== undefined);
|
|
317
|
+
// metaOnly's lean default drops a symbol row's body, but a file-path row's
|
|
318
|
+
// `content` IS the outline metaOnly asks for — it stays, as in relativePath
|
|
319
|
+
// mode (bd tea-rags-mcp-y3trx).
|
|
320
|
+
const leanMetaOnly = request.metaOnly === true && !request.fields && !request.rerank;
|
|
321
|
+
const results = projection.results.map((row, i) => {
|
|
322
|
+
const { request: address, resolvedAs, fileOutline, sameChunkAs } = answer.rows[i];
|
|
323
|
+
const { content: _body, ...bodyless } = row.payload ?? {};
|
|
324
|
+
const payload = leanMetaOnly && !fileOutline ? bodyless : row.payload;
|
|
325
|
+
const marks = { ...(resolvedAs ? { resolvedAs } : {}), ...(sameChunkAs ? { sameChunkAs } : {}) };
|
|
326
|
+
return { ...row, payload: { request: address, ...marks, ...payload } };
|
|
327
|
+
});
|
|
328
|
+
const workingTree = workingTreeView ? finalizeWorkingTreeMarker(workingTreeView) : undefined;
|
|
329
|
+
return {
|
|
330
|
+
results,
|
|
331
|
+
missing: answer.missing,
|
|
332
|
+
...(projection.fieldsWarning ? { fieldsWarning: projection.fieldsWarning } : {}),
|
|
333
|
+
...(answer.codegraphWarning ? { codegraphWarning: answer.codegraphWarning } : {}),
|
|
334
|
+
...(answer.batchNotice ? { batchNotice: answer.batchNotice } : {}),
|
|
335
|
+
...(workingTree ? { workingTree } : {}),
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
finally {
|
|
339
|
+
await releaseWorkingTreeGraphLease(readTreeGraph);
|
|
340
|
+
}
|
|
311
341
|
}
|
|
312
342
|
/**
|
|
313
343
|
* `collection` is an already-resolved index a caller addressed explicitly
|
|
@@ -335,7 +365,7 @@ export class ExploreOps {
|
|
|
335
365
|
// caller's tree is from it. Measured beside the metrics read, never after.
|
|
336
366
|
const workingTreeView = options?.workingTreeMarker === false ? undefined : this.workingTreeOverlay?.view(workingTree, undefined);
|
|
337
367
|
await this.ensureStats(collectionName);
|
|
338
|
-
const metrics = await this.indexMetricsQuery.run(collectionName, path, this.enrichmentHealthFrameForPath?.(path) ?? []);
|
|
368
|
+
const metrics = await this.indexMetricsQuery.run(collectionName, path, await (this.enrichmentHealthFrameForPath?.(path) ?? []));
|
|
339
369
|
return workingTreeView ? { ...metrics, workingTree: (await workingTreeView).marker } : metrics;
|
|
340
370
|
}
|
|
341
371
|
/**
|
|
@@ -656,9 +686,14 @@ export class ExploreOps {
|
|
|
656
686
|
buildFileOutlineStrategy(relativePath, language) {
|
|
657
687
|
return new FileOutlineStrategy(this.qdrant, this.reranker, this.payloadSignals, this.essentialKeys, { relativePath, language }, this.visibilityResolver);
|
|
658
688
|
}
|
|
659
|
-
/**
|
|
660
|
-
|
|
661
|
-
|
|
689
|
+
/**
|
|
690
|
+
* The symbol-mode strategy for one address — single `symbol` and every batch
|
|
691
|
+
* address alike. A batch hands its `resolvers` (prefetch + cache wrappers,
|
|
692
|
+
* bd tea-rags-mcp-4qdj0); single-symbol paths pass nothing and use the ops'
|
|
693
|
+
* own resolvers.
|
|
694
|
+
*/
|
|
695
|
+
buildSymbolSearchStrategy(request, symbol, resolvers) {
|
|
696
|
+
return new SymbolSearchStrategy(this.qdrant, this.reranker, this.payloadSignals, this.essentialKeys, this.registry, { symbol, language: request.language, pathPattern: request.pathPattern }, this.chunkResolver, resolvers?.visibility ?? this.visibilityResolver, resolvers?.ancestors ?? this.containerAncestorResolver);
|
|
662
697
|
}
|
|
663
698
|
/**
|
|
664
699
|
* Resolve collection + check model guard. Call BEFORE embed(query) so
|