claude_profile 1.0.0

Claude Code account credential management and token status
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# src/

| File | Responsibility |
|------|----------------|
| `lib.rs` | Crate root: module declarations, re-exports, and `register_commands()`. |
| `paths.rs` | ClaudePaths — all `~/.claude/` canonical paths from HOME. |
| `token.rs` | TokenStatus — read expiresAt, classify Valid/ExpiringSoon/Expired. |
| `account.rs` | Account CRUD: save, list, switch, delete, auto_rotate; _active marker. |
| `main.rs` | CLI binary entry point, 5-phase unilang pipeline. |
| `adapter.rs` | Argv-to-unilang token conversion, alias expansion, validation. |
| `output.rs` | Output format extraction, JSON string escaping, and duration display. |
| `commands.rs` | CLI command handler functions for 9 named commands and the dot fallback. |
| `usage.rs` | `.usage` command — parse stats-cache.json, format 7-day token report. |
| `persist.rs` | PersistPaths — persistent user storage path from $PRO/$HOME. |