cmd: add auth status command - #44
Merged
Merged
Conversation
This was referenced Apr 3, 2026
Collaborator
Author
This was referenced Apr 3, 2026
somanshreddy
force-pushed
the
04-03-docs_add_skill_md
branch
from
April 3, 2026 10:47
0362748 to
60a8b10
Compare
somanshreddy
force-pushed
the
04-03-cmd_add_auth_status
branch
from
April 3, 2026 10:48
4c6c591 to
ab88544
Compare
somanshreddy
force-pushed
the
04-03-docs_add_skill_md
branch
from
April 3, 2026 21:15
b6f2b8a to
54f2002
Compare
somanshreddy
force-pushed
the
04-03-cmd_add_auth_status
branch
2 times, most recently
from
April 3, 2026 22:25
380bfbc to
f3bb215
Compare
somanshreddy
force-pushed
the
04-03-docs_add_skill_md
branch
from
April 3, 2026 22:25
54f2002 to
f04298c
Compare
somanshreddy
changed the base branch from
04-03-docs_add_skill_md
to
graphite-base/44
April 3, 2026 22:34
somanshreddy
force-pushed
the
04-03-cmd_add_auth_status
branch
from
April 3, 2026 22:42
f3bb215 to
224b45f
Compare
somanshreddy
marked this pull request as ready for review
April 3, 2026 23:30
somanshreddy
force-pushed
the
graphite-base/44
branch
from
April 3, 2026 23:37
f04298c to
7008292
Compare
somanshreddy
force-pushed
the
04-03-cmd_add_auth_status
branch
from
April 3, 2026 23:37
224b45f to
a2a10ff
Compare
graphite-app
Bot
changed the base branch from
graphite-base/44
to
04-03-docs_add_skill_md
April 3, 2026 23:37
somanshreddy
force-pushed
the
04-03-cmd_add_auth_status
branch
2 times, most recently
from
April 6, 2026 08:30
e536cdb to
c085697
Compare
somanshreddy
force-pushed
the
04-03-docs_add_skill_md
branch
from
April 6, 2026 08:30
7008292 to
6507936
Compare
somanshreddy
changed the base branch from
04-03-docs_add_skill_md
to
graphite-base/44
April 6, 2026 08:35
somanshreddy
changed the base branch from
graphite-base/44
to
04-06-cmd_increase_default_wait_timeout
April 6, 2026 08:35
somanshreddy
force-pushed
the
04-03-cmd_add_auth_status
branch
from
April 6, 2026 08:42
c085697 to
0348dcb
Compare
somanshreddy
force-pushed
the
04-06-cmd_increase_default_wait_timeout
branch
from
April 6, 2026 08:42
6507936 to
4078c6b
Compare
Collaborator
Author
Merge activity
|
somanshreddy
changed the base branch from
04-06-cmd_increase_default_wait_timeout
to
graphite-base/44
April 6, 2026 09:01
somanshreddy
force-pushed
the
04-03-cmd_add_auth_status
branch
from
April 6, 2026 09:03
0348dcb to
516c2fc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Adds
heygen auth status— verifies the stored API key is valid by callingGET /v3/user/meand outputting account info.skipAuth restructured: Moved
skipAuthannotation from theauthgroup toauth loginspecifically.auth statusintentionally resolves auth — if no key is configured, it fails with the standard auth error (exit 3) before the API call.auth logincontinues to skip auth as before.Reuses generated spec: Calls
ctx.client.Execute(gen.UserMeGet, ...)— same endpoint asheygen user me get. If the API path or response shape changes, both commands update together.Auth vs server errors: Distinguishable by exit code. Invalid key → exit 3 (
auth_error). Server down → exit 1 (server_error/network_error). Retry transport handles transient failures before surfacing.Stacked on PR #43 (SKILL.md).
Testing
3 tests: success (200 → exit 0, stdout has user email), invalid key (401 → exit 3, stderr has auth_error), no key (exit 3 with hint to set env var or run auth login).
Existing
TestAuthLogin_SkipsAuthcontinues passing — skipAuth annotation moved to login, not removed.All tests use
httptest.Server— no real API calls.