@henryqw/pi-multi-codex 0.3.8 → 0.3.9

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.
Files changed (2) hide show
  1. package/README.md +31 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,19 +1,36 @@
1
- # Pi Multi Codex
1
+ # `@henryqw/pi-multi-codex`
2
2
 
3
- Use multiple ChatGPT Codex OAuth slots in Pi.
3
+ Use multiple ChatGPT Codex OAuth accounts in Pi. Native `/login` still owns credentials.
4
4
 
5
- Native Pi auth remains owner of credentials. Run `/login` and select OpenAI
6
- Codex for slot 1. Run `/codex-add`, then `/login` and select reported numbered
7
- slot for each additional Codex OAuth credential.
5
+ ## Install
8
6
 
9
- Extension reads native `auth.json` and never writes or refreshes credentials.
7
+ ```bash
8
+ pi install npm:@henryqw/pi-multi-codex
9
+ ```
10
10
 
11
- `/codex-status` shows shared seven-day quota snapshots. Refresh runs in background;
12
- status never waits for network. Credential-free snapshots live in
13
- `config/pi-multi-codex/usage.json` under Pi agent directory.
11
+ ## Use
14
12
 
15
- Before first agent start, fresh snapshots route a managed Codex model to slot with
16
- most seven-day quota. Routing preserves model ID and never changes in-progress work.
17
- `/codex-switch` opens Pi selector for authenticated slots. Footer shows active slot
18
- and fresh seven-day quota. Scoped sessions can switch only to exact scoped aliases;
19
- restart or update model scope after adding slot.
13
+ | Surface | Purpose |
14
+ | --- | --- |
15
+ | `/login` | Authenticate slot 1 as OpenAI Codex. |
16
+ | `/codex-add` | Create the next numbered slot, then `/login` and pick that slot. |
17
+ | `/codex-status` | Show shared seven-day quota snapshots. Never waits on network. |
18
+ | `/codex-switch` | Pick an authenticated slot. |
19
+
20
+ Extension reads native `auth.json` and never writes or refreshes credentials. Before the first agent start, a fresh snapshot routes a managed Codex model to the slot with the most seven-day quota. Routing preserves model ID and never changes in-progress work. Footer shows the active slot and fresh seven-day quota. Scoped sessions can switch only to exact scoped aliases; restart or update model scope after adding a slot.
21
+
22
+ Quota snapshots live in `~/.pi/agent/config/pi-multi-codex/usage.json`. They are credential-free cache, not user-edited config.
23
+
24
+ ## Remove
25
+
26
+ ```bash
27
+ pi remove npm:@henryqw/pi-multi-codex
28
+ ```
29
+
30
+ ## Development
31
+
32
+ ```bash
33
+ npm test --workspace @henryqw/pi-multi-codex
34
+ npm run typecheck --workspace @henryqw/pi-multi-codex
35
+ npm run pack:check --workspace @henryqw/pi-multi-codex
36
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-multi-codex",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Use multiple ChatGPT Codex OAuth accounts in Pi.",
5
5
  "keywords": [
6
6
  "pi-package",