Repository navigation
refactor(models): extract saved-routing authority - #398
Alan-TheGentleman merged 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe change centralizes model-routing types, normalization, and configuration reads in a shared authority. ChangesModel routing authority
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change centralizes saved-routing reads and normalization while preserving existing caller behavior; no actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant gentle_ai
participant modelRoutingAuthority
participant FileSystem
participant TestSuite
gentle_ai->>modelRoutingAuthority: load saved model configuration
modelRoutingAuthority->>FileSystem: read global configuration
FileSystem-->>modelRoutingAuthority: file contents or status
modelRoutingAuthority->>FileSystem: read project configuration when global is missing
FileSystem-->>modelRoutingAuthority: file contents or status
modelRoutingAuthority-->>gentle_ai: normalized configuration result
TestSuite->>modelRoutingAuthority: validate sync and async readers
modelRoutingAuthority-->>TestSuite: missing, invalid, or valid results
🚥 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 |
Alan-TheGentleman
left a comment
There was a problem hiding this comment.
Reviewed: mechanical extraction into lib/model-routing-authority.ts, no behavior change, sync/async readers shared. Approving.
51fb142
into
Gentleman-Programming:main
Summary
Changes
lib/model-routing-authority.tsextensions/gentle-ai.tstests/model-routing-authority.test.tsScope
Strict TDD evidence
null;inherit; and omissions.Test plan
node --experimental-strip-types --test tests/model-routing-authority.test.ts— 1/1 passed.node --experimental-strip-types --test tests/gentle-ai.test.ts— 8/8 passed.pnpm test— 1201 passed, 11 skipped, 0 failed.git diff --checkpassed.Contributor checklist
type:refactor).Co-Authored-Byor AI attribution.Closes #389
Refs #382
Refs #381
Refs #396
Refs #395
Refs #391
Summary by CodeRabbit
New Features
Bug Fixes
Tests