@narumitw/pi-usage 0.63.0 → 0.64.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 +5 -3
- package/dist/chunks/{chunk-ENCC7IBP.ts → chunk-ACPQJ2CM.ts} +379 -104
- package/dist/chunks/chunk-ACPQJ2CM.ts.map +7 -0
- package/dist/chunks/{openai-companion-auth-6VLPFVHF.ts → openai-companion-auth-FGFC6DBT.ts} +2 -2
- package/dist/chunks/{openai-companion-usage-4NOBHGP7.ts → openai-companion-usage-TGHK2OQR.ts} +2 -2
- package/dist/index.ts +48 -11
- package/dist/index.ts.map +2 -2
- package/docs/providers.md +22 -2
- package/package.json +2 -1
- package/src/format.ts +40 -13
- package/src/index.ts +6 -0
- package/src/providers/command-code.ts +228 -0
- package/src/query.ts +107 -1
- package/src/types.ts +29 -0
- package/src/usage.ts +9 -1
- package/dist/chunks/chunk-ENCC7IBP.ts.map +0 -7
- /package/dist/chunks/{openai-companion-auth-6VLPFVHF.ts.map → openai-companion-auth-FGFC6DBT.ts.map} +0 -0
- /package/dist/chunks/{openai-companion-usage-4NOBHGP7.ts.map → openai-companion-usage-TGHK2OQR.ts.map} +0 -0
package/README.md
CHANGED
|
@@ -99,7 +99,8 @@ Remove the companion login if you do not want this automatic companion query pat
|
|
|
99
99
|
The extension sends only the independently validated companion bearer and account ID to ChatGPT, never the native token.
|
|
100
100
|
It requires exactly one app registration matching the native grant's client ID, but that match is **not independent proof of shared identity**.
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
The statusline shows only shared **plan limits**, with percentages and reset times/window labels.
|
|
103
|
+
Detailed reports also show **app limits** with reset times/window labels only.
|
|
103
104
|
App used/remaining percentages are hidden, but their backend data remains validated.
|
|
104
105
|
**App allowance** is a separately labeled cap on shared plan usage, not remaining quota or a reserved pool.
|
|
105
106
|
Codex percentage/countdown preferences do not change this native report.
|
|
@@ -166,6 +167,7 @@ Currencies and billing targets remain separate.
|
|
|
166
167
|
| Vercel AI Gateway | Team credit balance and lifetime spend |
|
|
167
168
|
| Baseten | Organization-wide trailing 30-day Model APIs spend after credits |
|
|
168
169
|
| OpenCode Go | Rolling, weekly, and monthly plan windows |
|
|
170
|
+
| Command Code | Billing-period plan credits and rolling 5-hour/weekly spending caps |
|
|
169
171
|
| xAI | OAuth subscription allowance and credits; explicit menu queries only |
|
|
170
172
|
| Z.AI | Coding Plan quota windows, MCP allowance, plan name, and renewal date |
|
|
171
173
|
|
|
@@ -197,7 +199,7 @@ MiniMax publishes Token Plan window percentages or the regional pay-as-you-go av
|
|
|
197
199
|
Baseten publishes the exact trailing 30-day Model APIs net subtotal after credits.
|
|
198
200
|
xAI is always menu-only and never starts a scheduled status refresh.
|
|
199
201
|
Z.AI statusline usage refreshes every five minutes while the selected model remains on Z.AI.
|
|
200
|
-
Verified native OpenAI OAuth with valid companion auth refreshes both read-only endpoints automatically, for example `chatgpt plan 70% ↻ 2h30m
|
|
202
|
+
Verified native OpenAI OAuth with valid companion auth refreshes both read-only endpoints automatically, for example `chatgpt plan 70% ↻ 2h30m`.
|
|
201
203
|
Without companion auth it publishes `chatgpt usage: web only`; refreshes revalidate auth without calling a usage endpoint.
|
|
202
204
|
OpenAI API-key auth clears this status.
|
|
203
205
|
|
|
@@ -285,7 +287,7 @@ The generated runtime is built from `src/index.ts` and does not import back into
|
|
|
285
287
|
|
|
286
288
|
## 🔎 Keywords
|
|
287
289
|
|
|
288
|
-
Pi extension, Pi coding agent, usage, quota, DeepSeek API balance, DeepSeek balance, Fireworks API spend, Fireworks rated spend, Vercel AI Gateway credits, Vercel AI Gateway usage, Baseten Model APIs spend, Baseten usage, OpenAI Codex usage, ChatGPT subscription limits, Kimi For Coding, Kimi Coding Plan usage, Moonshot AI balance, Moonshot API balance, MiniMax Token Plan, MiniMax API balance, GitHub Copilot AI credits, GitHub Copilot premium requests, OpenRouter credits, xAI OAuth usage, Grok subscription allowance, API-key spend limits, TypeScript Pi package, npm Pi extension.
|
|
290
|
+
Pi extension, Pi coding agent, usage, quota, DeepSeek API balance, DeepSeek balance, Fireworks API spend, Fireworks rated spend, Vercel AI Gateway credits, Vercel AI Gateway usage, Baseten Model APIs spend, Baseten usage, OpenAI Codex usage, ChatGPT subscription limits, Kimi For Coding, Kimi Coding Plan usage, Moonshot AI balance, Moonshot API balance, MiniMax Token Plan, MiniMax API balance, GitHub Copilot AI credits, GitHub Copilot premium requests, OpenRouter credits, Command Code plan credits, xAI OAuth usage, Grok subscription allowance, API-key spend limits, TypeScript Pi package, npm Pi extension.
|
|
289
291
|
|
|
290
292
|
## 📄 License
|
|
291
293
|
|