sidekick-agent-hub 0.21.5 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/sidekick-cli.mjs +1836 -1232
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ Sidekick CLI reads from `~/.config/sidekick/` — the same data files the [VS Co
|
|
|
8
8
|
|
|
9
9
|
## What's New
|
|
10
10
|
|
|
11
|
+
- **Codex reset credits** — when Codex quota is refreshed from the API, `sidekick quota` now lists available rate-limit reset credits (`Reset Credits: N available`) and their expirations.
|
|
11
12
|
- **`sidekick quota --provider zai`** — authoritative z.ai Coding Plan quota (5-Hour / Weekly) from z.ai's quota API, using OpenCode's stored z.ai token when available.
|
|
12
13
|
- **`sidekick extract`** — pull URLs, file paths, commands, and plans out of recent Claude Code and Codex chats, with `--json` and an interactive picker.
|
|
13
14
|
- **`sidekick quota history`** — a 13-week, per-workspace, GitHub-style heatmap of session-limit utilization.
|
|
@@ -157,7 +158,7 @@ sidekick quota
|
|
|
157
158
|
Provider-aware quota and rate-limit display. The command auto-detects the active provider:
|
|
158
159
|
|
|
159
160
|
- **Claude Code**: Shows Claude Max subscription quota — 5-hour and 7-day windows with color-coded progress bars, projections, and reset countdowns. Includes a peak-hours summary line.
|
|
160
|
-
- **Codex**: Shows rate limits from Codex `token_count.rate_limits` events — primary and secondary windows with progress bars, projected end-of-window utilization, and reset countdowns. The default path is local-only: current workspace rollout, recent account-level rollouts, then the active account's cached snapshot. Add `--refresh` to explicitly refresh from Codex's usage API before falling back to local data.
|
|
161
|
+
- **Codex**: Shows rate limits from Codex `token_count.rate_limits` events — primary and secondary windows with progress bars, projected end-of-window utilization, and reset countdowns. The default path is local-only: current workspace rollout, recent account-level rollouts, then the active account's cached snapshot. Add `--refresh` to explicitly refresh from Codex's usage API before falling back to local data. When refreshed from the API, the output also lists any available **reset credits** — a `Reset Credits: N available` line plus each credit's expiration.
|
|
161
162
|
- **OpenCode / z.ai**: OpenCode has no native rate-limit data, but when z.ai Coding Plan credentials are available, `sidekick quota --provider opencode` can auto-route to authoritative z.ai quota (5-Hour / Weekly, with projected end-of-window utilization). Use `--provider zai` to request it explicitly. z.ai quota is read from z.ai's quota API using OpenCode's stored token, with fallback support for `ANTHROPIC_BASE_URL` and `ANTHROPIC_AUTH_TOKEN`.
|
|
162
163
|
|
|
163
164
|
Every provider renders in the same aligned table — a `now` column (current utilization), a `projected` column (estimated end-of-window utilization, or `—` when it can't be computed), and a `resets` countdown:
|
|
@@ -216,12 +217,15 @@ On first CLI startup, Sidekick auto-registers the active system Claude Code and
|
|
|
216
217
|
| `--label <name>` | Label for the account (required for Codex and `--login`; optional for Claude `--add`) |
|
|
217
218
|
| `--switch` | Switch to the next saved account |
|
|
218
219
|
| `--switch-to <id>` | Switch to a specific account by email, label, or ID |
|
|
219
|
-
| `--remove <id>` | Remove a saved account by email, label, or ID
|
|
220
|
+
| `--remove <id>` | Remove a saved account by email, label, or ID (prompts for y/N confirmation first) |
|
|
221
|
+
| `-y`, `--yes` / `--force` | Skip the `--remove` confirmation prompt (required for `--json` or non-interactive runs) |
|
|
220
222
|
| `--launcher <name>` | Create an opt-in per-account terminal launcher for the active account |
|
|
221
223
|
| `--auto-switch <pct\|off>` | Persist the auto-switch quota threshold (1–100), or `off` to disable. Continuous auto-switching runs in a long-running host such as VS Code |
|
|
222
224
|
|
|
223
225
|
With no flags, lists all saved accounts and marks the active one. `--provider all` lists Claude and Codex accounts together. Use `--json` for machine-readable output (provider-keyed when `--provider all`).
|
|
224
226
|
|
|
227
|
+
`--remove` prints the resolved account and asks for an interactive y/N answer (default No). Pass `-y`/`--yes` (or `--force`) to skip the prompt; `--json` and non-TTY contexts require the flag and exit `1` without it — **unattended automation that removes accounts must add `--yes`**.
|
|
228
|
+
|
|
225
229
|
## Dashboard Panels
|
|
226
230
|
|
|
227
231
|
The dashboard is a two-pane terminal UI. The left side shows a navigable list, the right side shows details for the selected item.
|
|
@@ -297,6 +301,7 @@ Press `z` to cycle through layout modes:
|
|
|
297
301
|
| `z` | Cycle layout mode |
|
|
298
302
|
| `/` | Open filter overlay (supports substring, fuzzy, regex, and date modes — Tab cycles modes) |
|
|
299
303
|
| `x` | Open context menu for selected item |
|
|
304
|
+
| `M` | Toggle mouse capture (turn off to restore terminal text selection/copy) |
|
|
300
305
|
| `?` | Show help |
|
|
301
306
|
| `r` | Generate HTML report for the current session |
|
|
302
307
|
| `V` | Show version / changelog |
|
|
@@ -311,6 +316,8 @@ The dashboard supports mouse input in terminals with SGR 1006 extended mouse enc
|
|
|
311
316
|
- **Scroll wheel** in either pane to navigate
|
|
312
317
|
- **Click** anywhere to dismiss overlays
|
|
313
318
|
|
|
319
|
+
While mouse capture is on, the terminal's own click-drag text selection and copy are suppressed. Press `M` to toggle capture off (the status bar shows `MOUSE OFF`), or launch with `--no-mouse` to start with it disabled. The interactive toggle persists to `cli-config.json`; the flag applies to that run only.
|
|
320
|
+
|
|
314
321
|
## Multi-Provider Support
|
|
315
322
|
|
|
316
323
|
Auto-detects the most recently active session provider:
|