Opus finding
Auth path duplication risks drift between --force and the platform.ts API-URL guard
- src/commands/auth.ts:59-70
- src/api/platform.ts:34-45
The PLATFORM_API_NOT_CONFIGURED error is constructed in two places with identical text. If the hint copy or code value is ever updated in one location, the --force code path will drift. Just call requireApiUrl(cfg.apiUrl) before signInWithEthereum to deduplicate.
Recommendation
Replace the inline guard in AuthCommand.execute --force branch with a call to the existing requireApiUrl helper (export it from platform.ts) or have signInWithEthereum call it internally.