codex-multi-auth 2.0.0 → 2.0.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 +7 -6
- package/config/README.md +1 -1
- package/config/codex-legacy.json +571 -646
- package/config/codex-modern.json +258 -274
- package/config/minimal-codex.json +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +85 -14
- package/dist/index.js.map +1 -1
- package/dist/lib/auto-update-checker.d.ts +23 -1
- package/dist/lib/auto-update-checker.d.ts.map +1 -1
- package/dist/lib/auto-update-checker.js +481 -8
- package/dist/lib/auto-update-checker.js.map +1 -1
- package/dist/lib/cli.d.ts +5 -0
- package/dist/lib/cli.d.ts.map +1 -1
- package/dist/lib/cli.js.map +1 -1
- package/dist/lib/codex-manager/commands/best.js +1 -1
- package/dist/lib/codex-manager/commands/best.js.map +1 -1
- package/dist/lib/codex-manager/commands/forecast.js +3 -3
- package/dist/lib/codex-manager/commands/forecast.js.map +1 -1
- package/dist/lib/codex-manager/commands/report.js +3 -3
- package/dist/lib/codex-manager/commands/report.js.map +1 -1
- package/dist/lib/codex-manager/commands/rotation.d.ts +4 -0
- package/dist/lib/codex-manager/commands/rotation.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/rotation.js +37 -11
- package/dist/lib/codex-manager/commands/rotation.js.map +1 -1
- package/dist/lib/codex-manager/commands/status.d.ts +6 -0
- package/dist/lib/codex-manager/commands/status.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/status.js +26 -3
- package/dist/lib/codex-manager/commands/status.js.map +1 -1
- package/dist/lib/codex-manager/forecast-report-commands.js +4 -4
- package/dist/lib/codex-manager/forecast-report-commands.js.map +1 -1
- package/dist/lib/codex-manager/help.js +2 -2
- package/dist/lib/codex-manager/help.js.map +1 -1
- package/dist/lib/codex-manager/rate-limit-markers.d.ts +2 -0
- package/dist/lib/codex-manager/rate-limit-markers.d.ts.map +1 -0
- package/dist/lib/codex-manager/rate-limit-markers.js +4 -0
- package/dist/lib/codex-manager/rate-limit-markers.js.map +1 -0
- package/dist/lib/codex-manager/repair-commands.js +3 -3
- package/dist/lib/codex-manager/repair-commands.js.map +1 -1
- package/dist/lib/codex-manager.d.ts.map +1 -1
- package/dist/lib/codex-manager.js +56 -86
- package/dist/lib/codex-manager.js.map +1 -1
- package/dist/lib/config.js +2 -2
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/prompts/codex.d.ts +1 -1
- package/dist/lib/prompts/codex.d.ts.map +1 -1
- package/dist/lib/prompts/codex.js +3 -3
- package/dist/lib/prompts/codex.js.map +1 -1
- package/dist/lib/quota-probe.js +1 -1
- package/dist/lib/quota-probe.js.map +1 -1
- package/dist/lib/quota-readiness.d.ts +16 -0
- package/dist/lib/quota-readiness.d.ts.map +1 -0
- package/dist/lib/quota-readiness.js +82 -0
- package/dist/lib/quota-readiness.js.map +1 -0
- package/dist/lib/request/fetch-helpers.d.ts.map +1 -1
- package/dist/lib/request/fetch-helpers.js +19 -8
- package/dist/lib/request/fetch-helpers.js.map +1 -1
- package/dist/lib/request/helpers/model-map.d.ts +2 -1
- package/dist/lib/request/helpers/model-map.d.ts.map +1 -1
- package/dist/lib/request/helpers/model-map.js +52 -60
- package/dist/lib/request/helpers/model-map.js.map +1 -1
- package/dist/lib/request/request-transformer.d.ts +2 -2
- package/dist/lib/request/request-transformer.js +4 -3
- package/dist/lib/request/request-transformer.js.map +1 -1
- package/dist/lib/runtime/login-menu-accounts.d.ts +5 -0
- package/dist/lib/runtime/login-menu-accounts.d.ts.map +1 -1
- package/dist/lib/runtime/login-menu-accounts.js +7 -2
- package/dist/lib/runtime/login-menu-accounts.js.map +1 -1
- package/dist/lib/runtime/quota-probe.js +1 -1
- package/dist/lib/runtime/quota-probe.js.map +1 -1
- package/dist/lib/runtime/runtime-current-account.d.ts +52 -0
- package/dist/lib/runtime/runtime-current-account.d.ts.map +1 -0
- package/dist/lib/runtime/runtime-current-account.js +252 -0
- package/dist/lib/runtime/runtime-current-account.js.map +1 -0
- package/dist/lib/runtime-rotation-proxy.js +1 -1
- package/dist/lib/runtime-rotation-proxy.js.map +1 -1
- package/dist/lib/ui/auth-menu.d.ts +6 -1
- package/dist/lib/ui/auth-menu.d.ts.map +1 -1
- package/dist/lib/ui/auth-menu.js +22 -2
- package/dist/lib/ui/auth-menu.js.map +1 -1
- package/package.json +1 -1
- package/scripts/bench-format/models.mjs +6 -8
- package/scripts/benchmark-edit-formats.mjs +1 -1
- package/scripts/codex.js +3538 -3375
- package/scripts/postinstall.js +120 -14
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Codex CLI-first multi-account OAuth manager for the official Codex CLI. The inst
|
|
|
23
23
|
- Experimental settings tab for staged sync, backup, and refresh-guard controls
|
|
24
24
|
- Forecast, report, fix, and doctor commands for operational safety
|
|
25
25
|
- Runtime counters, budget/cooldown state, and multi-auth probe visibility in `codex auth status` / `codex auth report`
|
|
26
|
-
-
|
|
26
|
+
- Default-on runtime Responses proxy for live account rotation inside forwarded Codex CLI/app sessions
|
|
27
27
|
- Reversible packaged Codex app bind and user-level launcher routing helpers
|
|
28
28
|
- Flagged account verification and restore flow
|
|
29
29
|
- Session affinity and live account sync controls
|
|
@@ -170,7 +170,7 @@ If browser launch is blocked, use the alternate login paths in [docs/getting-sta
|
|
|
170
170
|
| Command | What it answers |
|
|
171
171
|
| --- | --- |
|
|
172
172
|
| `codex auth report --live --json` | How do I get the full machine-readable health report? |
|
|
173
|
-
| `codex auth fix --live --model gpt-5-codex` | How do I run live repair probes with a chosen model? |
|
|
173
|
+
| `codex auth fix --live --model gpt-5.3-codex` | How do I run live repair probes with a chosen model? |
|
|
174
174
|
| `codex auth why-selected --json` | Which account does the selector pick now, and why? |
|
|
175
175
|
| `codex auth rotation status` | Is live runtime account rotation enabled for forwarded Codex sessions? |
|
|
176
176
|
|
|
@@ -239,10 +239,11 @@ Selected runtime/environment overrides:
|
|
|
239
239
|
| `CODEX_MULTI_AUTH_DIR` | Override settings/accounts root |
|
|
240
240
|
| `CODEX_MULTI_AUTH_CONFIG_PATH` | Alternate config file path |
|
|
241
241
|
| `CODEX_MODE=0/1` | Disable/enable Codex mode |
|
|
242
|
-
| `CODEX_MULTI_AUTH_RUNTIME_ROTATION_PROXY=0/1` | Opt in
|
|
242
|
+
| `CODEX_MULTI_AUTH_RUNTIME_ROTATION_PROXY=0/1` | Opt out/in of live Responses proxy rotation for forwarded Codex CLI/app sessions |
|
|
243
243
|
| `CODEX_MULTI_AUTH_APP_ROTATION_IDLE_MS=<ms>` | Override automatic Codex app helper idle shutdown |
|
|
244
244
|
| `CODEX_MULTI_AUTH_APP_BIND_INSTALL=0/1` | Opt out/in of packaged Codex app bind self-heal during install/update or rotation enable |
|
|
245
|
-
| `CODEX_MULTI_AUTH_APP_LAUNCHER_INSTALL=0/1` | Opt out/in of routing supported app shortcuts during rotation enable |
|
|
245
|
+
| `CODEX_MULTI_AUTH_APP_LAUNCHER_INSTALL=0/1` | Opt out/in of routing supported app shortcuts during install/update or rotation enable |
|
|
246
|
+
| `CODEX_MULTI_AUTH_AUTO_UPDATE=0/1` | Opt out/in of best-effort global package auto-update checks |
|
|
246
247
|
| `CODEX_TUI_V2=0/1` | Disable/enable TUI v2 |
|
|
247
248
|
| `CODEX_TUI_COLOR_PROFILE=truecolor|ansi256|ansi16` | TUI color profile |
|
|
248
249
|
| `CODEX_TUI_GLYPHS=ascii|unicode|auto` | TUI glyph style |
|
|
@@ -260,7 +261,7 @@ codex auth forecast --live
|
|
|
260
261
|
|
|
261
262
|
Responses background mode stays opt-in. Enable `backgroundResponses` in settings or `CODEX_AUTH_BACKGROUND_RESPONSES=1` only for callers that intentionally send `background: true`, because those requests switch from stateless `store=false` routing to stateful `store=true`. See [docs/upgrade.md](docs/upgrade.md) for rollout guidance.
|
|
262
263
|
|
|
263
|
-
Runtime rotation
|
|
264
|
+
Runtime rotation is enabled by default for request-bearing wrapper-launched Codex sessions. Global install/update self-heals supported packaged Codex app binds and user-level launcher routing when possible, while `codex auth rotation enable` remains the explicit repair command. `codex auth rotation disable` turns the setting off and removes the persistent app bind. Set `CODEX_MULTI_AUTH_RUNTIME_ROTATION_PROXY=0`, `CODEX_MULTI_AUTH_APP_BIND_INSTALL=0`, `CODEX_MULTI_AUTH_APP_LAUNCHER_INSTALL=0`, or `CODEX_MULTI_AUTH_AUTO_UPDATE=0` to opt out of the matching default behavior.
|
|
264
265
|
|
|
265
266
|
---
|
|
266
267
|
|
|
@@ -346,7 +347,7 @@ codex auth doctor --json
|
|
|
346
347
|
|
|
347
348
|
## Release Notes
|
|
348
349
|
|
|
349
|
-
- Current stable: [docs/releases/v2.0.
|
|
350
|
+
- Current stable: [docs/releases/v2.0.1.md](docs/releases/v2.0.1.md)
|
|
350
351
|
- Previous stable: [docs/releases/v1.3.2.md](docs/releases/v1.3.2.md)
|
|
351
352
|
- Earlier stable: [docs/releases/v1.3.1.md](docs/releases/v1.3.1.md)
|
|
352
353
|
- Full release archive: [docs/README.md#release-history](docs/README.md#release-history)
|
package/config/README.md
CHANGED
|
@@ -17,7 +17,7 @@ These files are optional model/provider templates for host/plugin configurations
|
|
|
17
17
|
|
|
18
18
|
## Defaults Included
|
|
19
19
|
|
|
20
|
-
-
|
|
20
|
+
- Current documented OpenAI/Codex model families (`gpt-5.5`, `gpt-5.4`, and `gpt-5.3-codex`)
|
|
21
21
|
- `store: false`
|
|
22
22
|
- `include: ["reasoning.encrypted_content"]`
|
|
23
23
|
- Sensible fallback behavior for unsupported model entitlements
|