Files
ai-agent/sidecar/claude_cli.py
Gabriel Vidal 30a9d98c36 feat(sidecar): headless claude login/logout + typed launch errors
POST /accounts/{id}/login drives `claude auth login --claudeai` without a
TTY (URL scraped, code#state piped to stdin, #state checked first);
/login/code, DELETE /login and /logout complete the flow. Launch failures
are read from the CLI's JSON result line and classified (auth, rate_limit,
cli_outdated, …) into {message, kind, hint, account}.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-21 12:04:52 +02:00

14 KiB