Skip to content

fix: address CLI QA feedback#5

Merged
matmilbury merged 5 commits into
mainfrom
fix/cli-qa-feedback
Apr 27, 2026
Merged

fix: address CLI QA feedback#5
matmilbury merged 5 commits into
mainfrom
fix/cli-qa-feedback

Conversation

@matmilbury
Copy link
Copy Markdown
Contributor

Summary

  • Styled callback page — matches ai-auth design: black background, JetBrains Mono font, purple accent (#a299ff), subtle card borders
  • Fixed CLI not exiting after logincloseAllConnections() drains sockets, timeout.unref() prevents the 5-min timer from keeping the process alive
  • Added eterna status command — shows auth state, endpoint, and token expiry time
  • Improved error details — API client now parses JSON error bodies (error/message/detail fields) instead of raw status text
  • Added inline code executioneterna execute -e 'await eterna.getBalance()' runs code without a file

Test plan

  • Run eterna login and verify the callback page is styled (dark theme, monospace font)
  • Verify CLI exits cleanly after successful login
  • Run eterna status when logged in and when logged out
  • Run eterna execute -e 'return 1+1' to test inline eval
  • Trigger an API error and verify detailed error message is shown

Generated with Claude Code

matmilbury and others added 5 commits April 27, 2026 10:49
Replace bare HTML with styled page using black background, JetBrains Mono
font, purple accent (#a299ff), and subtle card borders consistent with the
ai-auth app aesthetic.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Shows authentication status, configured endpoint, and token expiry with
remaining time in minutes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Extract error/message/detail fields from JSON responses instead of
showing raw status text, giving users actionable error information.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Allows running code directly without a file:
  eterna execute -e 'await eterna.getBalance()'

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matmilbury matmilbury force-pushed the fix/cli-qa-feedback branch from 4d29954 to b06b2b3 Compare April 27, 2026 08:50
@matmilbury matmilbury merged commit e44a6e0 into main Apr 27, 2026
1 check passed
@matmilbury matmilbury deleted the fix/cli-qa-feedback branch April 27, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant