refactor(config): extract provider validation boundary - #2380
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughProvider validation was extracted into ChangesProvider validation boundary
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This refactor preserves validation and runtime contracts, with focused tests and typechecking passing. No actionable merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
|
✅ Deterministic PR hygiene checks passed. |
c020858 to
0664a7b
Compare
리뷰 · 우선순위 49 / 80설명: 이 PR은 제공자 값이 맞는지 보는 일을 src/config.ts 에서 꺼내 src/config/provider-validation.ts 잎으로 옮긴다. 지금 CURRENT src/config.ts 라인 759 - 지금 HEAD 의 providerBaseUrlConfigError. PR 은 이 함수를 src/config/provider-validation.ts 로 옮기고 config.ts 가 다시 보낸다 메인테이너의 판단이 필요한 지점
너의 추천 이 댓글은 grok-bot이 작성했습니다 |
|
Rebased this focused extraction onto current Exact new head verification:
The import-only |
0664a7b to
7b07f11
Compare
|
Exact-head GitHub CI is now fully green on |
Summary
src/config/provider-validation.ts.src/config.tsexport as a compatibility facade while moving direct CLI and management-only consumers to the leaf module.structure/02_config-and-codex-home.md.Closes #2379
Verification
bun test tests/provider-config-validation.test.ts tests/management-provider-validation.test.ts tests/management-origin-tls.test.ts tests/server-auth.test.ts— 174 pass, 0 fail.bun run typecheck— passed.git diff --check origin/dev...HEAD— passed.tests/cursor-desktop-exec.test.tsand report Bun child-processEPIPE; the failing record-screen case reproduces with the same pinned Bun 1.4.0 command in a cleanorigin/devworktree. The changed provider-validation and management/auth test surfaces are green.bun run privacy:scanwas not run because security scanning was explicitly excluded from this task. No request, credential, logging, or persistence behavior is changed; theauth-cors.tsedit is import-only and still requires another maintainer's review under repository policy.Checklist
auth-cors.tschange before merge.Summary by CodeRabbit
Bug Fixes
Documentation
Tests