Skip to content

feat: usage and keys commands (0.6.0) - #14

Merged
facundofarias merged 1 commit into
mainfrom
feat/usage-and-keys-commands
Oct 24, 2026
Merged

facundofarias merged 1 commit into
mainfrom
feat/usage-and-keys-commands

Conversation

@facundofarias

Copy link
Copy Markdown
Member

Adds pixelvault usage and pixelvault keys list|create|revoke for the new GET /v1/usage and /v1/keys endpoints.

  • usage [--json]: plan, period, resets_at, storage/uploads used/limit/remaining (human sizes), bandwidth limit only.
  • keys create prints ONLY the raw key on stdout (KEY=$(pixelvault keys create)); the shown-once warning goes to stderr. --json prints the data object.
  • Error mapping: validation_error, key_limit_reached, rate_limit_exceeded (with Retry-After), cannot_revoke_current_key, not_found, 403 for publishable keys. Client now throws ApiRequestError (subclass of CliError, same message) carrying code/status/Retry-After.
  • Tests: 20 new vitest cases (mocked fetch), 56 total pass; typecheck and build pass. Read-only live smoke test of usage and keys list against prod OK.
  • README updated; version bumped to 0.6.0 (package.json, lockfile, client header). Not published or tagged.

Release note: the pixelvault-account skill PR depends on this being published.

🤖 Generated with Claude Code

https://claude.ai/code/session_019sMZVurbKqZ6zsbUYCsLJn

Wraps GET /v1/usage and /v1/keys. keys create prints only the raw key on
stdout; warning on stderr. Bump to 0.6.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019sMZVurbKqZ6zsbUYCsLJn
@facundofarias
facundofarias merged commit da6c518 into main Oct 24, 2026
2 checks passed
@facundofarias
facundofarias deleted the feat/usage-and-keys-commands branch October 24, 2026 15:29
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