feat: tiered show/snippet lookup fast paths#184
Conversation
Route lone name:Token queries to equality lookup; add idx_symbols_name_covering; document fast vs slow tiers in CLI/MCP help.
Fix roadmap anchor, glossary/show recipe cross-refs, mcp-instructions tiers, and consumer-clean changeset wording.
Mirror show lookup-tier docs on snippet --help; extend served rule and MCP instructions fast-tier row for show/snippet parity.
Document optional kind/in on fast-tier show/snippet across MCP, rule, and skill; align snippet CLI help and changeset; assert COVERING INDEX use.
🦋 Changeset detectedLatest commit: b97193a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Warning Review limit reached
More reviews will be available in 53 minutes and 57 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (22)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Lone name:Token without wildcards is fast-tier equality; substring and multi-field queries use slow-tier LIKE (kind:class name:Auth).
lint-staged relatedTests runs co-located *.test.ts when a src/ source file is staged without its test; document in verify-after-each-step.
Add *.test.tsx glob for co-staged pairs; align rule table and Rule 4 with lint-staged.config.js (scripts/**/*.test.mjs, relatedTests scope).
Summary
show/snippetwhen the query is an exact symbol name (positionalname, optionalkind/in, or lonename:Tokenwithout wildcards) via new covering indexidx_symbols_name_covering.docs/plans/tiered-lookup-fast-paths.mdand lift tier guidance to architecture, roadmap, glossary, CLI/MCP help, agent-content, andfind-symbol-definitionsrecipe.Test plan
bun test src/application/show-search-mode.test.tsbun test src/application/show-engine.test.ts(EXPLAIN assertsUSING COVERING INDEX)bun test src/db.test.tsbun run typecheck/ lint / format:check on touched files