@henryqw/pi-multi-codex 2.0.0 → 2.0.2
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 -11
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -21,19 +21,17 @@ pi install npm:@henryqw/pi-multi-codex
|
|
|
21
21
|
|
|
22
22
|
## Use
|
|
23
23
|
|
|
24
|
-
Run `/login` and authenticate `OpenAI Codex` for slot 1 first. Run `/codex-add`, then run `/login` and select the new `OpenAI Codex #<n>` provider. Restart Pi or update model scope, then run `/codex-status`.
|
|
25
|
-
|
|
26
|
-
`/codex-status` lists the new slot. It shows cached quota when available, or `unavailable` until the first successful snapshot.
|
|
27
|
-
|
|
28
|
-
The footer and `/codex-status` show the five-hour reset countdown for Free, Go, and Plus tiers. They show the seven-day reset countdown for Pro Lite and other tiers.
|
|
24
|
+
Run `/login` and authenticate `OpenAI Codex` for slot 1 first. Run `/codex-add`, then run `/login` and select the new `OpenAI Codex #<n>` provider. Restart Pi or update model scope, then run `/codex-status`. The status lists the new slot with cached quota when available, or `unavailable` until the first successful snapshot.
|
|
29
25
|
|
|
30
26
|
| Surface | Type | Purpose |
|
|
31
27
|
| --- | --- | --- |
|
|
32
|
-
| `/codex-add` | command |
|
|
33
|
-
| `/codex-status` | command |
|
|
34
|
-
| `/codex-switch` | command |
|
|
28
|
+
| `/codex-add` | command | For people: create the next numbered slot, then authenticate that slot. |
|
|
29
|
+
| `/codex-status` | command | For people: show shared quota snapshots and five-hour blocks; never waits on network. |
|
|
30
|
+
| `/codex-switch` | command | For people: select an authenticated, scope-allowed slot for the current Codex model. |
|
|
31
|
+
| Pi model selector (`OpenAI Codex`, `OpenAI Codex #<n>`) | ui | Choose an authenticated account slot. |
|
|
32
|
+
| Pi status `pi-multi-codex` | ui | Report the active slot's fresh quota, five-hour limit countdown, or stale/unavailable state; `@henryqw/pi-footer` displays it in the footer. |
|
|
35
33
|
|
|
36
|
-
A numbered slot is one Codex account position in Pi.
|
|
34
|
+
The footer and `/codex-status` show the five-hour reset countdown for Free, Go, and Plus tiers. They show the seven-day reset countdown for Pro Lite and other tiers. A numbered slot is one Codex account position in Pi.
|
|
37
35
|
|
|
38
36
|
## Flow
|
|
39
37
|
|
|
@@ -53,9 +51,9 @@ Package-owned: `~/.pi/agent/config/pi-multi-codex/config.json`
|
|
|
53
51
|
|
|
54
52
|
| Name | Description | Values | Default |
|
|
55
53
|
| --- | --- | --- | --- |
|
|
56
|
-
| `autoSwitchOn429` | Switches to another eligible slot after an HTTP 429. | Boolean. | `true` |
|
|
54
|
+
| `autoSwitchOn429` | Switches to another eligible slot after an HTTP 429. | Boolean. | `true` when the config file is missing |
|
|
57
55
|
|
|
58
|
-
Set `autoSwitchOn429` to `false` to disable automatic switching.
|
|
56
|
+
Edit this file yourself; the extension does not create or write it. A missing file uses the default `true`, and config changes take effect at the next session start. Set `autoSwitchOn429` to `false` to disable automatic switching. A present config must contain only this field as a boolean. Invalid config is preserved, warns, and disables automatic switching for the session. Fix the file and start a new session to recover.
|
|
59
57
|
|
|
60
58
|
## State and storage
|
|
61
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@henryqw/pi-multi-codex",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Use multiple ChatGPT Codex OAuth accounts in Pi.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"pack:check": "npm pack --dry-run"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@earendil-works/pi-ai": "
|
|
29
|
-
"@earendil-works/pi-coding-agent": "
|
|
28
|
+
"@earendil-works/pi-ai": ">=0.86.0 <0.88.0",
|
|
29
|
+
"@earendil-works/pi-coding-agent": ">=0.86.0 <0.88.0"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|
|
32
32
|
"type": "git",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"proper-lockfile": "^4.1.2"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@earendil-works/pi-ai": "0.
|
|
54
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
53
|
+
"@earendil-works/pi-ai": "0.87.0",
|
|
54
|
+
"@earendil-works/pi-coding-agent": "0.87.0",
|
|
55
55
|
"@types/proper-lockfile": "^4.1.4"
|
|
56
56
|
}
|
|
57
57
|
}
|