Consolidate query and keyword_search response schemas#180
Conversation
|
Warning Review limit reached
More reviews will be available in 57 minutes and 49 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 To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. 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 (8)
📝 WalkthroughWalkthroughThe response schema layer now defines strict success schemas for query and keyword_search, derives permissive schemas from them, updates both tools and tests to use the strict variants, and refreshes README wording, snippets, and table formatting. ChangesResponse schema consolidation
README refresh
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #180 +/- ##
=======================================
Coverage ? 87.88%
=======================================
Files ? 41
Lines ? 1758
Branches ? 559
=======================================
Hits ? 1545
Misses ? 213
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@coderabbitai full review again |
|
✅ Action performedFull review finished. |
|
@coderabbitai resume |
✅ Action performedReviews resumed. |
|
@coderabbitai full review |
✅ Action performedFull review finished. |
Summary
Resolves issue #173 by eliminating duplicate loose/strict Zod response schemas for
queryandkeyword_search. Each pair now has a single canonical handler-boundary schema; the permissive export is derived programmatically via.partial(). Also resolves issue #174response-schemas.ts:querySuccessResponseSchemaandkeywordSearchSuccessResponseSchemaare the source of truth;queryResponseSchemaandkeywordSearchResponseSchemaare derived from themquery-tool.tsandkeyword-search-tool.tstype payloads as strict response types, matching the schemas passed tovalidatedJsonResponsetypes.ts: re-exportsQuerySuccessResponseandKeywordSearchSuccessResponseNo export names or runtime response shapes change. The other seven tool schemas were already single-source and are untouched.
Test plan
npm test— 302 tests passnpm run ci— typecheck, lint, format, build, coverage all green{ status: 'success', experimental: {...} }forguided_queryunion reuseRelated Issue
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Tests
Documentation