@cad0p/pi-usage 0.11.3-20261102.0 → 0.11.3-20261102.1
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 +2 -2
- package/package.json +1 -1
- package/src/auth/pi-auth.js +3 -0
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ shuvquota, and it never writes to a credential file.
|
|
|
65
65
|
| --- | --- | --- | --- |
|
|
66
66
|
| Claude | Claude Code CLI store, else `anthropic.access` | `GET api.anthropic.com/api/oauth/usage` | ✅ 5h + weekly + plan |
|
|
67
67
|
| Codex | `openai-codex.access` + `accountId` | `GET chatgpt.com/backend-api/wham/usage` | ✅ 5h + weekly + plan |
|
|
68
|
-
| Antigravity | `antigravity.access` + `projectId` | `POST cloudcode-pa.googleapis.com/v1internal:retrieveUserQuotaSummary` | ✅ Gemini + Claude/GPT buckets, **with in-memory refresh** |
|
|
68
|
+
| Antigravity | `google-antigravity.access` (or legacy `antigravity`) + `projectId` | `POST cloudcode-pa.googleapis.com/v1internal:retrieveUserQuotaSummary` | ✅ Gemini + Claude/GPT buckets, **with in-memory refresh** |
|
|
69
69
|
| OpenCode Go | `opencode-go.key`, numbered siblings included | `GET opencode.ai/zen/go/v1/usage` | ✅ 5h + weekly + monthly per account; the session cookie and SSR dashboard are a base-account fallback |
|
|
70
70
|
| GitHub Actions (opt-in) | Authenticated `gh` CLI | `gh api /organizations/<org>/settings/billing/usage/summary?product=Actions` | ✅ org-wide monthly Linux minutes, plan-derived allowance |
|
|
71
71
|
|
|
@@ -499,7 +499,7 @@ extensions/quota-panel.ts Pi TUI line and /usage
|
|
|
499
499
|
## Tests
|
|
500
500
|
|
|
501
501
|
```bash
|
|
502
|
-
node --test tests/*.test.mjs #
|
|
502
|
+
node --test tests/*.test.mjs # 267 tests, fake tokens only, no network
|
|
503
503
|
```
|
|
504
504
|
|
|
505
505
|
Modules covered: `auth.json` parsing and de-duplication, the Claude Code store
|
package/package.json
CHANGED
package/src/auth/pi-auth.js
CHANGED
|
@@ -24,6 +24,9 @@ export const FAMILY_BY_PROVIDER = {
|
|
|
24
24
|
"openai-codex": "codex",
|
|
25
25
|
anthropic: "claude",
|
|
26
26
|
antigravity: "antigravity",
|
|
27
|
+
// Pi's built-in /login stores Antigravity under this key; `antigravity` is
|
|
28
|
+
// kept for stores written by older Pi releases and third-party plugins.
|
|
29
|
+
"google-antigravity": "antigravity",
|
|
27
30
|
"opencode-go": "opencode-go",
|
|
28
31
|
};
|
|
29
32
|
|