fix: address Code Quality and Qodo comments on #161 - #162
Conversation
Wrap symlink stats inside the friendly error handler, allow IPv6 loopback CORS, relax PAT host validation for localhost/IPs/ports, and drop unused imports. Co-authored-by: Cursor <cursoragent@cursor.com>
PR Summary by QodoFix PAT host validation, IPv6 loopback CORS, and symlink error handling
AI Description
Diagram
High-Level Assessment
Files changed (9)
|
Code Review by Qodo
1. PAT host:port never matches
|
Summary
Addresses GitHub Code Quality and Qodo findings called out on the develop→main release PR (#161).
Changes
add-builders.ts,watch-project.ts,configure-routes.ts,mcp-meta-routes.tsstatSyncinsidecreateWorkspaceSymlinktry/catchhttp://[::1]loopback in CORS (Bun keeps brackets in hostname)normalizeProviderHostTest plan
bun test src/server/__tests__/cors-origin.test.ts src/cli/commands/__tests__/auth-command.test.ts