@henryqw/pi-multi-codex 0.3.8 → 0.3.10

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 +38 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,19 +1,43 @@
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.
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
+ ## With
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
+ | Package | Why |
14
+ | --- | --- |
15
+ | `@henryqw/pi-model-thinking` | Improves. Thinking level follows the model across slots. |
16
+ | `@henryqw/pi-task-models` | Improves. Numbered slots share one profile route. |
17
+ | `@henryqw/pi-subagent` | Improves. Isolated children keep Main's active Codex slot. |
18
+
19
+ ## Use
20
+
21
+ | Surface | Type | Purpose |
22
+ | --- | --- | --- |
23
+ | `/codex-add` | command | Create the next numbered slot, then authenticate that slot. |
24
+ | `/codex-status` | command | Show shared seven-day quota snapshots. Never waits on network. |
25
+ | `/codex-switch` | command | Pick an authenticated slot. |
26
+
27
+ Extension reads `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.
28
+
29
+ Quota snapshots live in `~/.pi/agent/config/pi-multi-codex/usage.json`. They are credential-free cache, not user-edited config.
30
+
31
+ ## Remove
32
+
33
+ ```bash
34
+ pi remove npm:@henryqw/pi-multi-codex
35
+ ```
36
+
37
+ ## Development
38
+
39
+ ```bash
40
+ npm test --workspace @henryqw/pi-multi-codex
41
+ npm run typecheck --workspace @henryqw/pi-multi-codex
42
+ npm run pack:check --workspace @henryqw/pi-multi-codex
43
+ ```
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.10",
4
4
  "description": "Use multiple ChatGPT Codex OAuth accounts in Pi.",
5
5
  "keywords": [
6
6
  "pi-package",