oc-chatgpt-multi-auth 4.14.1 → 5.0.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 +9 -0
- package/config/README.md +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +718 -113
- package/dist/index.js.map +1 -1
- package/dist/lib/accounts.d.ts +3 -0
- package/dist/lib/accounts.d.ts.map +1 -1
- package/dist/lib/accounts.js +53 -8
- package/dist/lib/accounts.js.map +1 -1
- package/dist/lib/cli.d.ts +20 -2
- package/dist/lib/cli.d.ts.map +1 -1
- package/dist/lib/cli.js +83 -16
- package/dist/lib/cli.js.map +1 -1
- package/dist/lib/config.d.ts +4 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +34 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +1 -0
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/request/fetch-helpers.d.ts +4 -0
- package/dist/lib/request/fetch-helpers.d.ts.map +1 -1
- package/dist/lib/request/fetch-helpers.js +46 -0
- package/dist/lib/request/fetch-helpers.js.map +1 -1
- package/dist/lib/schemas.d.ts +18 -0
- package/dist/lib/schemas.d.ts.map +1 -1
- package/dist/lib/schemas.js +6 -0
- package/dist/lib/schemas.js.map +1 -1
- package/dist/lib/storage/migrations.d.ts +2 -0
- package/dist/lib/storage/migrations.d.ts.map +1 -1
- package/dist/lib/storage/migrations.js +1 -0
- package/dist/lib/storage/migrations.js.map +1 -1
- package/dist/lib/storage.d.ts +13 -0
- package/dist/lib/storage.d.ts.map +1 -1
- package/dist/lib/storage.js +152 -0
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/ui/ansi.d.ts +22 -0
- package/dist/lib/ui/ansi.d.ts.map +1 -0
- package/dist/lib/ui/ansi.js +38 -0
- package/dist/lib/ui/ansi.js.map +1 -0
- package/dist/lib/ui/auth-menu.d.ts +39 -0
- package/dist/lib/ui/auth-menu.d.ts.map +1 -0
- package/dist/lib/ui/auth-menu.js +168 -0
- package/dist/lib/ui/auth-menu.js.map +1 -0
- package/dist/lib/ui/confirm.d.ts +2 -0
- package/dist/lib/ui/confirm.d.ts.map +1 -0
- package/dist/lib/ui/confirm.js +21 -0
- package/dist/lib/ui/confirm.js.map +1 -0
- package/dist/lib/ui/format.d.ts +9 -0
- package/dist/lib/ui/format.d.ts.map +1 -0
- package/dist/lib/ui/format.js +49 -0
- package/dist/lib/ui/format.js.map +1 -0
- package/dist/lib/ui/runtime.d.ts +11 -0
- package/dist/lib/ui/runtime.d.ts.map +1 -0
- package/dist/lib/ui/runtime.js +31 -0
- package/dist/lib/ui/runtime.js.map +1 -0
- package/dist/lib/ui/select.d.ts +20 -0
- package/dist/lib/ui/select.d.ts.map +1 -0
- package/dist/lib/ui/select.js +343 -0
- package/dist/lib/ui/select.js.map +1 -0
- package/dist/lib/ui/theme.d.ts +34 -0
- package/dist/lib/ui/theme.d.ts.map +1 -0
- package/dist/lib/ui/theme.js +84 -0
- package/dist/lib/ui/theme.js.map +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -656,6 +656,9 @@ Create `~/.opencode/openai-codex-auth-config.json` for optional settings:
|
|
|
656
656
|
| Option | Default | What It Does |
|
|
657
657
|
|--------|---------|--------------|
|
|
658
658
|
| `codexMode` | `true` | Uses Codex-OpenCode bridge prompt (synced with latest Codex CLI) |
|
|
659
|
+
| `codexTuiV2` | `true` | Enables Codex-style terminal UI output (set `false` for legacy output) |
|
|
660
|
+
| `codexTuiColorProfile` | `truecolor` | Terminal color profile for Codex UI (`truecolor`, `ansi256`, `ansi16`) |
|
|
661
|
+
| `codexTuiGlyphMode` | `ascii` | Glyph mode for Codex UI (`ascii`, `unicode`, `auto`) |
|
|
659
662
|
| `fastSession` | `false` | Forces low-latency settings per request (`reasoningEffort=none/low`, `reasoningSummary=off`, `textVerbosity=low`) |
|
|
660
663
|
| `fastSessionStrategy` | `hybrid` | `hybrid` speeds simple turns but keeps full-depth on complex prompts; `always` forces fast tuning on every turn |
|
|
661
664
|
| `fastSessionMaxInputItems` | `30` | Max input items kept when fast tuning is applied |
|
|
@@ -674,6 +677,7 @@ Create `~/.opencode/openai-codex-auth-config.json` for optional settings:
|
|
|
674
677
|
| `retryAllAccountsRateLimited` | `true` | Wait and retry when all accounts are rate-limited |
|
|
675
678
|
| `retryAllAccountsMaxWaitMs` | `0` | Max wait time (0 = unlimited) |
|
|
676
679
|
| `retryAllAccountsMaxRetries` | `Infinity` | Max retry attempts |
|
|
680
|
+
| `fallbackToGpt52OnUnsupportedGpt53` | `true` | Automatically retry once with `gpt-5.2-codex` when `gpt-5.3-codex` is rejected for ChatGPT Codex OAuth entitlement |
|
|
677
681
|
| `fetchTimeoutMs` | `60000` | Request timeout to Codex backend (ms) |
|
|
678
682
|
| `streamStallTimeoutMs` | `45000` | Abort non-stream parsing if SSE stalls (ms) |
|
|
679
683
|
|
|
@@ -684,9 +688,14 @@ DEBUG_CODEX_PLUGIN=1 opencode # Enable debug logging
|
|
|
684
688
|
ENABLE_PLUGIN_REQUEST_LOGGING=1 opencode # Log all API requests
|
|
685
689
|
CODEX_PLUGIN_LOG_LEVEL=debug opencode # Set log level (debug|info|warn|error)
|
|
686
690
|
CODEX_MODE=0 opencode # Temporarily disable bridge prompt
|
|
691
|
+
CODEX_TUI_V2=0 opencode # Disable Codex-style UI (legacy output)
|
|
692
|
+
CODEX_TUI_COLOR_PROFILE=ansi16 opencode # Force UI color profile
|
|
693
|
+
CODEX_TUI_GLYPHS=unicode opencode # Override glyph mode (ascii|unicode|auto)
|
|
694
|
+
CODEX_AUTH_PREWARM=0 opencode # Disable startup prewarm (prompt/instruction cache warmup)
|
|
687
695
|
CODEX_AUTH_FAST_SESSION=1 opencode # Enable faster response defaults
|
|
688
696
|
CODEX_AUTH_FAST_SESSION_STRATEGY=always opencode # Force fast mode for all prompts
|
|
689
697
|
CODEX_AUTH_FAST_SESSION_MAX_INPUT_ITEMS=24 opencode # Tune fast-mode history window
|
|
698
|
+
CODEX_AUTH_FALLBACK_GPT53_TO_GPT52=0 opencode # Disable gpt-5.3 -> gpt-5.2 fallback (strict mode)
|
|
690
699
|
CODEX_AUTH_FETCH_TIMEOUT_MS=120000 opencode # Override request timeout
|
|
691
700
|
CODEX_AUTH_STREAM_STALL_TIMEOUT_MS=60000 opencode # Override SSE stall timeout
|
|
692
701
|
```
|
package/config/README.md
CHANGED
|
@@ -31,8 +31,8 @@ OpenCode v1.0.210+ introduced a **variants system** that allows defining reasoni
|
|
|
31
31
|
|
|
32
32
|
| Config File | Model Families | Reasoning Variants | Total Models |
|
|
33
33
|
|------------|----------------|-------------------|--------------|
|
|
34
|
-
| `opencode-modern.json` | 6 | Built-in variants (low/medium/high/xhigh) | 6 base models with
|
|
35
|
-
| `opencode-legacy.json` | 6 | Separate model entries |
|
|
34
|
+
| `opencode-modern.json` | 6 | Built-in variants (low/medium/high/xhigh) | 6 base models with 22 total variants |
|
|
35
|
+
| `opencode-legacy.json` | 6 | Separate model entries | 22 individual model definitions |
|
|
36
36
|
|
|
37
37
|
Both configs provide:
|
|
38
38
|
- ✅ All supported GPT 5.3/5.2/5.1 variants: gpt-5.2, gpt-5.3-codex, gpt-5.1, gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.1-codex-mini
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,qBAAqB,CAAC;AAiI/D;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,iBAAiB,EAAE,MAm/E/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAoB,CAAC;AAElD,eAAe,iBAAiB,CAAC"}
|