codex-multi-auth 0.1.0 → 0.1.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 +222 -98
- package/assets/readme-hero.svg +2 -2
- package/config/README.md +30 -87
- package/config/{opencode-legacy.json → codex-legacy.json} +571 -571
- package/config/{opencode-modern.json → codex-modern.json} +241 -239
- package/config/{minimal-opencode.json → minimal-codex.json} +15 -13
- package/config/schema/config.schema.json +21 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -20
- package/dist/index.js.map +1 -1
- package/dist/lib/accounts.d.ts +1 -1
- package/dist/lib/accounts.d.ts.map +1 -1
- package/dist/lib/auth/auth.d.ts +1 -1
- package/dist/lib/auth/auth.js +1 -1
- package/dist/lib/cli.d.ts +1 -1
- package/dist/lib/cli.js +4 -4
- package/dist/lib/cli.js.map +1 -1
- package/dist/lib/codex-manager/settings-hub.d.ts +6 -0
- package/dist/lib/codex-manager/settings-hub.d.ts.map +1 -0
- package/dist/lib/codex-manager/settings-hub.js +1786 -0
- package/dist/lib/codex-manager/settings-hub.js.map +1 -0
- package/dist/lib/codex-manager.d.ts.map +1 -1
- package/dist/lib/codex-manager.js +5 -1637
- package/dist/lib/codex-manager.js.map +1 -1
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +20 -11
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/context-overflow.d.ts +1 -1
- package/dist/lib/context-overflow.js +1 -1
- package/dist/lib/oauth-success.html +1 -1
- package/dist/lib/prompts/codex-host-bridge.d.ts +19 -0
- package/dist/lib/prompts/codex-host-bridge.d.ts.map +1 -0
- package/dist/lib/prompts/{codex-opencode-bridge.js → codex-host-bridge.js} +143 -143
- package/dist/lib/prompts/codex-host-bridge.js.map +1 -0
- package/dist/lib/prompts/codex.d.ts +2 -2
- package/dist/lib/prompts/codex.d.ts.map +1 -1
- package/dist/lib/prompts/codex.js +3 -3
- package/dist/lib/prompts/host-codex-prompt.d.ts +25 -0
- package/dist/lib/prompts/host-codex-prompt.d.ts.map +1 -0
- package/dist/lib/prompts/{opencode-codex.js → host-codex-prompt.js} +136 -47
- package/dist/lib/prompts/host-codex-prompt.js.map +1 -0
- package/dist/lib/recovery/storage.d.ts +2 -2
- package/dist/lib/recovery/storage.js +2 -2
- package/dist/lib/recovery/types.d.ts +1 -1
- package/dist/lib/recovery/types.js +1 -1
- package/dist/lib/recovery.d.ts +1 -1
- package/dist/lib/recovery.d.ts.map +1 -1
- package/dist/lib/recovery.js +1 -4
- package/dist/lib/recovery.js.map +1 -1
- package/dist/lib/request/fetch-helpers.d.ts +3 -3
- package/dist/lib/request/fetch-helpers.d.ts.map +1 -1
- package/dist/lib/request/fetch-helpers.js +6 -2
- package/dist/lib/request/fetch-helpers.js.map +1 -1
- package/dist/lib/request/helpers/input-utils.d.ts +2 -2
- package/dist/lib/request/helpers/input-utils.d.ts.map +1 -1
- package/dist/lib/request/helpers/input-utils.js +14 -14
- package/dist/lib/request/helpers/input-utils.js.map +1 -1
- package/dist/lib/request/helpers/model-map.d.ts +2 -2
- package/dist/lib/request/helpers/model-map.js +2 -2
- package/dist/lib/request/request-transformer.d.ts +12 -12
- package/dist/lib/request/request-transformer.d.ts.map +1 -1
- package/dist/lib/request/request-transformer.js +23 -24
- package/dist/lib/request/request-transformer.js.map +1 -1
- package/dist/lib/runtime-paths.d.ts +4 -4
- package/dist/lib/runtime-paths.d.ts.map +1 -1
- package/dist/lib/runtime-paths.js +27 -9
- package/dist/lib/runtime-paths.js.map +1 -1
- package/dist/lib/storage/paths.d.ts +11 -0
- package/dist/lib/storage/paths.d.ts.map +1 -1
- package/dist/lib/storage/paths.js +146 -2
- package/dist/lib/storage/paths.js.map +1 -1
- package/dist/lib/storage.d.ts +1 -0
- package/dist/lib/storage.d.ts.map +1 -1
- package/dist/lib/storage.js +106 -32
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/tools/hashline-tools.d.ts +1 -1
- package/dist/lib/tools/hashline-tools.d.ts.map +1 -1
- package/dist/lib/tools/hashline-tools.js +1 -1
- package/dist/lib/tools/hashline-tools.js.map +1 -1
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/ui/copy.d.ts +6 -6
- package/dist/lib/ui/copy.js +6 -6
- package/dist/lib/ui/copy.js.map +1 -1
- package/node_modules/@codex-ai/plugin/dist/index.d.ts +2 -0
- package/node_modules/@codex-ai/plugin/dist/index.js +2 -0
- package/node_modules/@codex-ai/plugin/dist/tool.d.ts +42 -0
- package/node_modules/@codex-ai/plugin/dist/tool.js +29 -0
- package/node_modules/@codex-ai/plugin/package.json +9 -0
- package/package.json +30 -16
- package/scripts/bench-format/{opencode.mjs → codex-host.mjs} +206 -205
- package/scripts/bench-format/models.mjs +111 -105
- package/scripts/benchmark-edit-formats.mjs +1162 -1161
- package/scripts/codex.js +40 -2
- package/scripts/install-codex-auth-utils.js +49 -0
- package/scripts/{install-opencode-codex-auth.js → install-codex-auth.js} +220 -193
- package/scripts/repo-hygiene.js +320 -0
- package/scripts/test-model-matrix.js +475 -423
- package/vendor/codex-ai-plugin/dist/index.d.ts +2 -0
- package/vendor/codex-ai-plugin/dist/index.js +2 -0
- package/vendor/codex-ai-plugin/dist/tool.d.ts +42 -0
- package/vendor/codex-ai-plugin/dist/tool.js +29 -0
- package/vendor/codex-ai-plugin/package.json +9 -0
- package/vendor/codex-ai-sdk/dist/index.d.ts +4 -0
- package/vendor/codex-ai-sdk/dist/index.js +2 -0
- package/vendor/codex-ai-sdk/package.json +8 -0
- package/assets/opencode-logo-ornate-dark.svg +0 -18
- package/dist/lib/prompts/codex-opencode-bridge.d.ts +0 -19
- package/dist/lib/prompts/codex-opencode-bridge.d.ts.map +0 -1
- package/dist/lib/prompts/codex-opencode-bridge.js.map +0 -1
- package/dist/lib/prompts/opencode-codex.d.ts +0 -25
- package/dist/lib/prompts/opencode-codex.d.ts.map +0 -1
- package/dist/lib/prompts/opencode-codex.js.map +0 -1
|
@@ -1,239 +1,241 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "
|
|
3
|
-
"plugin": [
|
|
4
|
-
"codex-multi-auth"
|
|
5
|
-
],
|
|
6
|
-
"provider": {
|
|
7
|
-
"openai": {
|
|
8
|
-
"options": {
|
|
9
|
-
"reasoningEffort": "medium",
|
|
10
|
-
"reasoningSummary": "auto",
|
|
11
|
-
"textVerbosity": "medium",
|
|
12
|
-
"include": [
|
|
13
|
-
"reasoning.encrypted_content"
|
|
14
|
-
],
|
|
15
|
-
"store": false
|
|
16
|
-
},
|
|
17
|
-
"models": {
|
|
18
|
-
"gpt-5.2": {
|
|
19
|
-
"name": "GPT 5.2 (OAuth)",
|
|
20
|
-
"limit": {
|
|
21
|
-
"context": 272000,
|
|
22
|
-
"output": 128000
|
|
23
|
-
},
|
|
24
|
-
"modalities": {
|
|
25
|
-
"input": [
|
|
26
|
-
"text",
|
|
27
|
-
"image"
|
|
28
|
-
],
|
|
29
|
-
"output": [
|
|
30
|
-
"text"
|
|
31
|
-
]
|
|
32
|
-
},
|
|
33
|
-
"variants": {
|
|
34
|
-
"none": {
|
|
35
|
-
"reasoningEffort": "none",
|
|
36
|
-
"reasoningSummary": "auto",
|
|
37
|
-
"textVerbosity": "medium"
|
|
38
|
-
},
|
|
39
|
-
"low": {
|
|
40
|
-
"reasoningEffort": "low",
|
|
41
|
-
"reasoningSummary": "auto",
|
|
42
|
-
"textVerbosity": "medium"
|
|
43
|
-
},
|
|
44
|
-
"medium": {
|
|
45
|
-
"reasoningEffort": "medium",
|
|
46
|
-
"reasoningSummary": "auto",
|
|
47
|
-
"textVerbosity": "medium"
|
|
48
|
-
},
|
|
49
|
-
"high": {
|
|
50
|
-
"reasoningEffort": "high",
|
|
51
|
-
"reasoningSummary": "detailed",
|
|
52
|
-
"textVerbosity": "medium"
|
|
53
|
-
},
|
|
54
|
-
"xhigh": {
|
|
55
|
-
"reasoningEffort": "xhigh",
|
|
56
|
-
"reasoningSummary": "detailed",
|
|
57
|
-
"textVerbosity": "medium"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"gpt-5.1-codex-max": {
|
|
62
|
-
"name": "GPT 5.1 Codex Max (OAuth)",
|
|
63
|
-
"limit": {
|
|
64
|
-
"context": 272000,
|
|
65
|
-
"output": 128000
|
|
66
|
-
},
|
|
67
|
-
"modalities": {
|
|
68
|
-
"input": [
|
|
69
|
-
"text",
|
|
70
|
-
"image"
|
|
71
|
-
],
|
|
72
|
-
"output": [
|
|
73
|
-
"text"
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"variants": {
|
|
77
|
-
"low": {
|
|
78
|
-
"reasoningEffort": "low",
|
|
79
|
-
"reasoningSummary": "detailed",
|
|
80
|
-
"textVerbosity": "medium"
|
|
81
|
-
},
|
|
82
|
-
"medium": {
|
|
83
|
-
"reasoningEffort": "medium",
|
|
84
|
-
"reasoningSummary": "detailed",
|
|
85
|
-
"textVerbosity": "medium"
|
|
86
|
-
},
|
|
87
|
-
"high": {
|
|
88
|
-
"reasoningEffort": "high",
|
|
89
|
-
"reasoningSummary": "detailed",
|
|
90
|
-
"textVerbosity": "medium"
|
|
91
|
-
},
|
|
92
|
-
"xhigh": {
|
|
93
|
-
"reasoningEffort": "xhigh",
|
|
94
|
-
"reasoningSummary": "detailed",
|
|
95
|
-
"textVerbosity": "medium"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"gpt-5.1-codex": {
|
|
100
|
-
"name": "GPT 5.1 Codex (OAuth)",
|
|
101
|
-
"limit": {
|
|
102
|
-
"context": 272000,
|
|
103
|
-
"output": 128000
|
|
104
|
-
},
|
|
105
|
-
"modalities": {
|
|
106
|
-
"input": [
|
|
107
|
-
"text",
|
|
108
|
-
"image"
|
|
109
|
-
],
|
|
110
|
-
"output": [
|
|
111
|
-
"text"
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
"variants": {
|
|
115
|
-
"low": {
|
|
116
|
-
"reasoningEffort": "low",
|
|
117
|
-
"reasoningSummary": "auto",
|
|
118
|
-
"textVerbosity": "medium"
|
|
119
|
-
},
|
|
120
|
-
"medium": {
|
|
121
|
-
"reasoningEffort": "medium",
|
|
122
|
-
"reasoningSummary": "auto",
|
|
123
|
-
"textVerbosity": "medium"
|
|
124
|
-
},
|
|
125
|
-
"high": {
|
|
126
|
-
"reasoningEffort": "high",
|
|
127
|
-
"reasoningSummary": "detailed",
|
|
128
|
-
"textVerbosity": "medium"
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
},
|
|
132
|
-
"gpt-5.1-codex-mini": {
|
|
133
|
-
"name": "GPT 5.1 Codex Mini (OAuth)",
|
|
134
|
-
"limit": {
|
|
135
|
-
"context": 272000,
|
|
136
|
-
"output": 128000
|
|
137
|
-
},
|
|
138
|
-
"modalities": {
|
|
139
|
-
"input": [
|
|
140
|
-
"text",
|
|
141
|
-
"image"
|
|
142
|
-
],
|
|
143
|
-
"output": [
|
|
144
|
-
"text"
|
|
145
|
-
]
|
|
146
|
-
},
|
|
147
|
-
"variants": {
|
|
148
|
-
"medium": {
|
|
149
|
-
"reasoningEffort": "medium",
|
|
150
|
-
"reasoningSummary": "auto",
|
|
151
|
-
"textVerbosity": "medium"
|
|
152
|
-
},
|
|
153
|
-
"high": {
|
|
154
|
-
"reasoningEffort": "high",
|
|
155
|
-
"reasoningSummary": "detailed",
|
|
156
|
-
"textVerbosity": "medium"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"gpt-5.1": {
|
|
161
|
-
"name": "GPT 5.1 (OAuth)",
|
|
162
|
-
"limit": {
|
|
163
|
-
"context": 272000,
|
|
164
|
-
"output": 128000
|
|
165
|
-
},
|
|
166
|
-
"modalities": {
|
|
167
|
-
"input": [
|
|
168
|
-
"text",
|
|
169
|
-
"image"
|
|
170
|
-
],
|
|
171
|
-
"output": [
|
|
172
|
-
"text"
|
|
173
|
-
]
|
|
174
|
-
},
|
|
175
|
-
"variants": {
|
|
176
|
-
"none": {
|
|
177
|
-
"reasoningEffort": "none",
|
|
178
|
-
"reasoningSummary": "auto",
|
|
179
|
-
"textVerbosity": "medium"
|
|
180
|
-
},
|
|
181
|
-
"low": {
|
|
182
|
-
"reasoningEffort": "low",
|
|
183
|
-
"reasoningSummary": "auto",
|
|
184
|
-
"textVerbosity": "low"
|
|
185
|
-
},
|
|
186
|
-
"medium": {
|
|
187
|
-
"reasoningEffort": "medium",
|
|
188
|
-
"reasoningSummary": "auto",
|
|
189
|
-
"textVerbosity": "medium"
|
|
190
|
-
},
|
|
191
|
-
"high": {
|
|
192
|
-
"reasoningEffort": "high",
|
|
193
|
-
"reasoningSummary": "detailed",
|
|
194
|
-
"textVerbosity": "high"
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"gpt-5-codex": {
|
|
199
|
-
"name": "GPT 5 Codex (OAuth)",
|
|
200
|
-
"limit": {
|
|
201
|
-
"context": 272000,
|
|
202
|
-
"output": 128000
|
|
203
|
-
},
|
|
204
|
-
"modalities": {
|
|
205
|
-
"input": [
|
|
206
|
-
"text",
|
|
207
|
-
"image"
|
|
208
|
-
],
|
|
209
|
-
"output": [
|
|
210
|
-
"text"
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
"variants": {
|
|
214
|
-
"low": {
|
|
215
|
-
"reasoningEffort": "low",
|
|
216
|
-
"reasoningSummary": "auto",
|
|
217
|
-
"textVerbosity": "medium"
|
|
218
|
-
},
|
|
219
|
-
"medium": {
|
|
220
|
-
"reasoningEffort": "medium",
|
|
221
|
-
"reasoningSummary": "auto",
|
|
222
|
-
"textVerbosity": "medium"
|
|
223
|
-
},
|
|
224
|
-
"high": {
|
|
225
|
-
"reasoningEffort": "high",
|
|
226
|
-
"reasoningSummary": "detailed",
|
|
227
|
-
"textVerbosity": "medium"
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
"options": {
|
|
231
|
-
"reasoningEffort": "high",
|
|
232
|
-
"reasoningSummary": "detailed",
|
|
233
|
-
"textVerbosity": "medium"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schema/config.schema.json",
|
|
3
|
+
"plugin": [
|
|
4
|
+
"codex-multi-auth"
|
|
5
|
+
],
|
|
6
|
+
"provider": {
|
|
7
|
+
"openai": {
|
|
8
|
+
"options": {
|
|
9
|
+
"reasoningEffort": "medium",
|
|
10
|
+
"reasoningSummary": "auto",
|
|
11
|
+
"textVerbosity": "medium",
|
|
12
|
+
"include": [
|
|
13
|
+
"reasoning.encrypted_content"
|
|
14
|
+
],
|
|
15
|
+
"store": false
|
|
16
|
+
},
|
|
17
|
+
"models": {
|
|
18
|
+
"gpt-5.2": {
|
|
19
|
+
"name": "GPT 5.2 (OAuth)",
|
|
20
|
+
"limit": {
|
|
21
|
+
"context": 272000,
|
|
22
|
+
"output": 128000
|
|
23
|
+
},
|
|
24
|
+
"modalities": {
|
|
25
|
+
"input": [
|
|
26
|
+
"text",
|
|
27
|
+
"image"
|
|
28
|
+
],
|
|
29
|
+
"output": [
|
|
30
|
+
"text"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"variants": {
|
|
34
|
+
"none": {
|
|
35
|
+
"reasoningEffort": "none",
|
|
36
|
+
"reasoningSummary": "auto",
|
|
37
|
+
"textVerbosity": "medium"
|
|
38
|
+
},
|
|
39
|
+
"low": {
|
|
40
|
+
"reasoningEffort": "low",
|
|
41
|
+
"reasoningSummary": "auto",
|
|
42
|
+
"textVerbosity": "medium"
|
|
43
|
+
},
|
|
44
|
+
"medium": {
|
|
45
|
+
"reasoningEffort": "medium",
|
|
46
|
+
"reasoningSummary": "auto",
|
|
47
|
+
"textVerbosity": "medium"
|
|
48
|
+
},
|
|
49
|
+
"high": {
|
|
50
|
+
"reasoningEffort": "high",
|
|
51
|
+
"reasoningSummary": "detailed",
|
|
52
|
+
"textVerbosity": "medium"
|
|
53
|
+
},
|
|
54
|
+
"xhigh": {
|
|
55
|
+
"reasoningEffort": "xhigh",
|
|
56
|
+
"reasoningSummary": "detailed",
|
|
57
|
+
"textVerbosity": "medium"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"gpt-5.1-codex-max": {
|
|
62
|
+
"name": "GPT 5.1 Codex Max (OAuth)",
|
|
63
|
+
"limit": {
|
|
64
|
+
"context": 272000,
|
|
65
|
+
"output": 128000
|
|
66
|
+
},
|
|
67
|
+
"modalities": {
|
|
68
|
+
"input": [
|
|
69
|
+
"text",
|
|
70
|
+
"image"
|
|
71
|
+
],
|
|
72
|
+
"output": [
|
|
73
|
+
"text"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"variants": {
|
|
77
|
+
"low": {
|
|
78
|
+
"reasoningEffort": "low",
|
|
79
|
+
"reasoningSummary": "detailed",
|
|
80
|
+
"textVerbosity": "medium"
|
|
81
|
+
},
|
|
82
|
+
"medium": {
|
|
83
|
+
"reasoningEffort": "medium",
|
|
84
|
+
"reasoningSummary": "detailed",
|
|
85
|
+
"textVerbosity": "medium"
|
|
86
|
+
},
|
|
87
|
+
"high": {
|
|
88
|
+
"reasoningEffort": "high",
|
|
89
|
+
"reasoningSummary": "detailed",
|
|
90
|
+
"textVerbosity": "medium"
|
|
91
|
+
},
|
|
92
|
+
"xhigh": {
|
|
93
|
+
"reasoningEffort": "xhigh",
|
|
94
|
+
"reasoningSummary": "detailed",
|
|
95
|
+
"textVerbosity": "medium"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"gpt-5.1-codex": {
|
|
100
|
+
"name": "GPT 5.1 Codex (OAuth)",
|
|
101
|
+
"limit": {
|
|
102
|
+
"context": 272000,
|
|
103
|
+
"output": 128000
|
|
104
|
+
},
|
|
105
|
+
"modalities": {
|
|
106
|
+
"input": [
|
|
107
|
+
"text",
|
|
108
|
+
"image"
|
|
109
|
+
],
|
|
110
|
+
"output": [
|
|
111
|
+
"text"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"variants": {
|
|
115
|
+
"low": {
|
|
116
|
+
"reasoningEffort": "low",
|
|
117
|
+
"reasoningSummary": "auto",
|
|
118
|
+
"textVerbosity": "medium"
|
|
119
|
+
},
|
|
120
|
+
"medium": {
|
|
121
|
+
"reasoningEffort": "medium",
|
|
122
|
+
"reasoningSummary": "auto",
|
|
123
|
+
"textVerbosity": "medium"
|
|
124
|
+
},
|
|
125
|
+
"high": {
|
|
126
|
+
"reasoningEffort": "high",
|
|
127
|
+
"reasoningSummary": "detailed",
|
|
128
|
+
"textVerbosity": "medium"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"gpt-5.1-codex-mini": {
|
|
133
|
+
"name": "GPT 5.1 Codex Mini (OAuth)",
|
|
134
|
+
"limit": {
|
|
135
|
+
"context": 272000,
|
|
136
|
+
"output": 128000
|
|
137
|
+
},
|
|
138
|
+
"modalities": {
|
|
139
|
+
"input": [
|
|
140
|
+
"text",
|
|
141
|
+
"image"
|
|
142
|
+
],
|
|
143
|
+
"output": [
|
|
144
|
+
"text"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"variants": {
|
|
148
|
+
"medium": {
|
|
149
|
+
"reasoningEffort": "medium",
|
|
150
|
+
"reasoningSummary": "auto",
|
|
151
|
+
"textVerbosity": "medium"
|
|
152
|
+
},
|
|
153
|
+
"high": {
|
|
154
|
+
"reasoningEffort": "high",
|
|
155
|
+
"reasoningSummary": "detailed",
|
|
156
|
+
"textVerbosity": "medium"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"gpt-5.1": {
|
|
161
|
+
"name": "GPT 5.1 (OAuth)",
|
|
162
|
+
"limit": {
|
|
163
|
+
"context": 272000,
|
|
164
|
+
"output": 128000
|
|
165
|
+
},
|
|
166
|
+
"modalities": {
|
|
167
|
+
"input": [
|
|
168
|
+
"text",
|
|
169
|
+
"image"
|
|
170
|
+
],
|
|
171
|
+
"output": [
|
|
172
|
+
"text"
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
"variants": {
|
|
176
|
+
"none": {
|
|
177
|
+
"reasoningEffort": "none",
|
|
178
|
+
"reasoningSummary": "auto",
|
|
179
|
+
"textVerbosity": "medium"
|
|
180
|
+
},
|
|
181
|
+
"low": {
|
|
182
|
+
"reasoningEffort": "low",
|
|
183
|
+
"reasoningSummary": "auto",
|
|
184
|
+
"textVerbosity": "low"
|
|
185
|
+
},
|
|
186
|
+
"medium": {
|
|
187
|
+
"reasoningEffort": "medium",
|
|
188
|
+
"reasoningSummary": "auto",
|
|
189
|
+
"textVerbosity": "medium"
|
|
190
|
+
},
|
|
191
|
+
"high": {
|
|
192
|
+
"reasoningEffort": "high",
|
|
193
|
+
"reasoningSummary": "detailed",
|
|
194
|
+
"textVerbosity": "high"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"gpt-5-codex": {
|
|
199
|
+
"name": "GPT 5 Codex (OAuth)",
|
|
200
|
+
"limit": {
|
|
201
|
+
"context": 272000,
|
|
202
|
+
"output": 128000
|
|
203
|
+
},
|
|
204
|
+
"modalities": {
|
|
205
|
+
"input": [
|
|
206
|
+
"text",
|
|
207
|
+
"image"
|
|
208
|
+
],
|
|
209
|
+
"output": [
|
|
210
|
+
"text"
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"variants": {
|
|
214
|
+
"low": {
|
|
215
|
+
"reasoningEffort": "low",
|
|
216
|
+
"reasoningSummary": "auto",
|
|
217
|
+
"textVerbosity": "medium"
|
|
218
|
+
},
|
|
219
|
+
"medium": {
|
|
220
|
+
"reasoningEffort": "medium",
|
|
221
|
+
"reasoningSummary": "auto",
|
|
222
|
+
"textVerbosity": "medium"
|
|
223
|
+
},
|
|
224
|
+
"high": {
|
|
225
|
+
"reasoningEffort": "high",
|
|
226
|
+
"reasoningSummary": "detailed",
|
|
227
|
+
"textVerbosity": "medium"
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"options": {
|
|
231
|
+
"reasoningEffort": "high",
|
|
232
|
+
"reasoningSummary": "detailed",
|
|
233
|
+
"textVerbosity": "medium"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "
|
|
3
|
-
"plugin": ["codex-multi-auth"],
|
|
4
|
-
|
|
5
|
-
"provider": {
|
|
6
|
-
"openai": {
|
|
7
|
-
"options": {
|
|
8
|
-
"store": false
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
"model": "openai/gpt-5-codex"
|
|
13
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./schema/config.schema.json",
|
|
3
|
+
"plugin": ["codex-multi-auth"],
|
|
4
|
+
|
|
5
|
+
"provider": {
|
|
6
|
+
"openai": {
|
|
7
|
+
"options": {
|
|
8
|
+
"store": false
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"model": "openai/gpt-5-codex"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://codex-multi-auth.local/schema/config.schema.json",
|
|
4
|
+
"title": "codex-multi-auth config template",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"plugin": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": { "type": "string" }
|
|
10
|
+
},
|
|
11
|
+
"provider": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"additionalProperties": true
|
|
14
|
+
},
|
|
15
|
+
"model": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": ["plugin", "provider"],
|
|
20
|
+
"additionalProperties": true
|
|
21
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* OpenAI ChatGPT (Codex) OAuth Authentication Plugin for
|
|
2
|
+
* OpenAI ChatGPT (Codex) OAuth Authentication Plugin for Codex CLI host runtime
|
|
3
3
|
*
|
|
4
4
|
* COMPLIANCE NOTICE:
|
|
5
5
|
* This plugin uses OpenAI's official OAuth authentication flow (the same method
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
* @repository https://github.com/ndycode/codex-multi-auth
|
|
23
23
|
|
|
24
24
|
*/
|
|
25
|
-
import type { Plugin } from "@
|
|
25
|
+
import type { Plugin } from "@codex-ai/plugin";
|
|
26
26
|
/**
|
|
27
|
-
* OpenAI Codex OAuth authentication plugin for
|
|
27
|
+
* OpenAI Codex OAuth authentication plugin for Codex CLI host runtime
|
|
28
28
|
*
|
|
29
|
-
* This plugin enables
|
|
29
|
+
* This plugin enables the host runtime to use OpenAI's Codex backend via ChatGPT Plus/Pro
|
|
30
30
|
* OAuth authentication, allowing users to leverage their ChatGPT subscription
|
|
31
31
|
* instead of OpenAI Platform API credits.
|
|
32
32
|
*
|
|
@@ -40,6 +40,6 @@ import type { Plugin } from "@opencode-ai/plugin";
|
|
|
40
40
|
* ```
|
|
41
41
|
*/
|
|
42
42
|
export declare const OpenAIOAuthPlugin: Plugin;
|
|
43
|
-
export declare const OpenAIAuthPlugin:
|
|
43
|
+
export declare const OpenAIAuthPlugin: any;
|
|
44
44
|
export default OpenAIOAuthPlugin;
|
|
45
45
|
//# sourceMappingURL=index.d.ts.map
|
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,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,kBAAkB,CAAC;AAmL5D;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,iBAAiB,EAAE,MAwzH/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,KAAoB,CAAC;AAElD,eAAe,iBAAiB,CAAC"}
|