refactor(jwtinfo): add sentinel and typed errors for Is/As - #48
Conversation
Expose stable jwtinfo failure conditions via sentinels and typed errors, and route CLI/MCP display through errdisp domain leaves. Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthrough
ChangesJWT error classification
Domain error display
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant jwtinfo
participant jwtinfoCommand
participant errdisp
jwtinfo-->>jwtinfoCommand: return typed or sentinel error
jwtinfoCommand->>errdisp: FormatCause(error)
errdisp->>errdisp: resolve jwtinfo domain leaf
errdisp-->>jwtinfoCommand: formatted error message
jwtinfoCommand-->>jwtinfoCommand: display formatted message
Merge Risk: ⚪ Minimal · up to No current merge-blocking risk was identified. 🚥 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 |
Expose stable jwtinfo failure conditions via sentinels and typed errors, and route CLI/MCP display through errdisp domain leaves.
Co-authored-by: Cursor cursoragent@cursor.com
Summary by CodeRabbit
New Features
jwtinfocommand.Bug Fixes
Tests
Documentation