fix(cli): prefer $CHAINLOOP_TOKEN over user credentials when both are set
Merged
MI
4mo ago+121+121+012345678901234567890123456789-6-6-0123456789
Summary
Flips the precedence between user credentials and $CHAINLOOP_TOKEN. When both are set, the CLI now defaults to the API token from the environment variable instead of the user login session.
An explicitly exported $CHAINLOOP_TOKEN is a stronger signal of intent than a (possibly stale) login session, and API tokens can now perform the same operations as user credentials, including attestations. The warning shown in this situation is reversed accordingly to indicate that user credentials are being ignored.
Closes #3215
AI disclosure
This change was produced with the assistance of Claude Code.
🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri