feat(context): rich context composer#151
Conversation
Non-compact context/MCP/HTTP envelopes now include intent-ranked query_recipe cards and top hub files with export signatures so one bootstrap call replaces a common show → explore chain.
🦋 Changeset detectedLatest commit: ee57ddf 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 9 minutes and 4 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ 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 (15)
✨ 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 |
Add inline index_summary, debug-biased sample_markers, adaptive hub/signature caps via resolveContextBudget, and MCP/HTTP include_snippets previews. Retire the shipped plan; mark roadmap item complete.
Route hubs and hub_leaders through readFanInHubs (registered fan-in recipe with adaptive LIMIT); add intent/start_here and HTTP integration tests.
Preserve legacy hubs at the fan-in recipe default while budget-capping start_here.hub_leaders, add safe snippet reads, and expand tests/docs.
Treat whitespace-only intent as no-intent on MCP/HTTP, truncate snippet one-liners to signature_max_chars, dedupe tests, and expand coverage.
Add multi-hub fixture, large-repo marker cap test, MCP compact/intent smoke, marker_limit unit assertions, and skill doc alignment.
Summary
Ships the full rich
contextcomposer:start_hereon non-compactcontext/ MCP / HTTP — inline index summary, intent-rankedquery_recipecards, hub leaders with export signaturesresolveContextBudget(file_count)on hubs, hub_leaders, markers, and signature lengthsample_markerstoward FIXME/TODOinclude_snippets— one-line export previews on hub leadershubs+hub_leaderssharereadFanInHubs()(registeredfan-inrecipe, respects project shadows)Test plan
bun test src/application/context-engine.test.tsbun test src/application/mcp-server.test.tsbun test src/application/http-server.test.ts(context + include_snippets)bun run typecheckcodemap contexton indexed repocodemap context --for "refactor auth"