oc-chatgpt-multi-auth 5.4.7 → 5.4.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.
- package/README.md +6 -2
- package/config/README.md +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +818 -696
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/auth.d.ts.map +1 -1
- package/dist/lib/auth/auth.js +2 -1
- package/dist/lib/auth/auth.js.map +1 -1
- package/dist/lib/auth/device-code.d.ts +28 -0
- package/dist/lib/auth/device-code.d.ts.map +1 -0
- package/dist/lib/auth/device-code.js +215 -0
- package/dist/lib/auth/device-code.js.map +1 -0
- package/dist/lib/auth/login-runner.d.ts +55 -0
- package/dist/lib/auth/login-runner.d.ts.map +1 -0
- package/dist/lib/auth/login-runner.js +631 -0
- package/dist/lib/auth/login-runner.js.map +1 -0
- package/dist/lib/auth/server.d.ts.map +1 -1
- package/dist/lib/auth/server.js +6 -5
- package/dist/lib/auth/server.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/index.d.ts +2 -0
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -0
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/request/fetch-helpers.d.ts.map +1 -1
- package/dist/lib/request/fetch-helpers.js +3 -3
- package/dist/lib/request/fetch-helpers.js.map +1 -1
- package/dist/lib/runtime-contracts.d.ts +16 -0
- package/dist/lib/runtime-contracts.d.ts.map +1 -0
- package/dist/lib/runtime-contracts.js +24 -0
- package/dist/lib/runtime-contracts.js.map +1 -0
- package/dist/lib/storage.d.ts +13 -5
- package/dist/lib/storage.d.ts.map +1 -1
- package/dist/lib/storage.js +44 -32
- package/dist/lib/storage.js.map +1 -1
- package/package.json +5 -3
- package/scripts/install-opencode-codex-auth.js +249 -60
package/README.md
CHANGED
|
@@ -35,6 +35,10 @@ What the installer does:
|
|
|
35
35
|
- normalizes the plugin entry to `"oc-chatgpt-multi-auth"`
|
|
36
36
|
- clears the cached plugin copy so OpenCode reinstalls the latest package
|
|
37
37
|
|
|
38
|
+
By default, the installer now writes a full catalog config that includes both:
|
|
39
|
+
- modern base model entries such as `gpt-5.4` for `--variant` workflows
|
|
40
|
+
- explicit preset entries such as `gpt-5.4-high` so the shipped catalog is visible directly in model pickers
|
|
41
|
+
|
|
38
42
|
## Example Usage
|
|
39
43
|
|
|
40
44
|
```bash
|
|
@@ -96,10 +100,10 @@ See [Architecture](docs/development/ARCHITECTURE.md) for implementation details.
|
|
|
96
100
|
|
|
97
101
|
Use the quick-start path above for the fastest setup. For full setup, local development installs, legacy OpenCode support, and verification steps, see [Getting Started](docs/getting-started.md).
|
|
98
102
|
|
|
99
|
-
If you
|
|
103
|
+
If you prefer the compact variant-only config on OpenCode `v1.0.210+`, use:
|
|
100
104
|
|
|
101
105
|
```bash
|
|
102
|
-
npx -y oc-chatgpt-multi-auth@latest --
|
|
106
|
+
npx -y oc-chatgpt-multi-auth@latest --modern
|
|
103
107
|
```
|
|
104
108
|
|
|
105
109
|
## Configuration
|
package/config/README.md
CHANGED
|
@@ -9,6 +9,8 @@ This directory contains the official OpenCode config templates for the ChatGPT C
|
|
|
9
9
|
| [`opencode-modern.json`](./opencode-modern.json) | **v1.0.210+** | Variant-based config: 9 base models with 34 total presets |
|
|
10
10
|
| [`opencode-legacy.json`](./opencode-legacy.json) | **v1.0.209 and below** | Legacy explicit entries: 34 individual model definitions |
|
|
11
11
|
|
|
12
|
+
The installer currently uses a merged full-catalog mode by default so users get both the modern base entries and the explicit preset entries without having to hand-edit `opencode.json`.
|
|
13
|
+
|
|
12
14
|
## Quick pick
|
|
13
15
|
|
|
14
16
|
If your OpenCode version is v1.0.210 or newer:
|
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;AA8M/D;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,iBAAiB,EAAE,MA++L/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAoB,CAAC;AAElD,eAAe,iBAAiB,CAAC"}
|