codex-multi-auth 2.1.13-beta.1 → 2.1.13-beta.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/LICENSE +21 -21
- package/README.md +415 -415
- package/assets/codex-multi-auth-icon.svg +39 -39
- package/assets/readme-hero.svg +31 -31
- package/config/README.md +29 -29
- package/config/codex-legacy.json +571 -571
- package/config/codex-modern.json +258 -258
- package/config/minimal-codex.json +15 -15
- package/config/schema/config.schema.json +20 -20
- package/dist/lib/config.d.ts +26 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +42 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/context-overflow.js +10 -10
- package/dist/lib/oauth-success.html +125 -125
- package/dist/lib/prompts/codex-host-bridge.js +138 -138
- package/dist/lib/prompts/codex.js +79 -79
- package/dist/lib/runtime-rotation-proxy.d.ts +2 -0
- package/dist/lib/runtime-rotation-proxy.d.ts.map +1 -1
- package/dist/lib/runtime-rotation-proxy.js +136 -8
- package/dist/lib/runtime-rotation-proxy.js.map +1 -1
- package/dist/lib/schemas.d.ts +2 -0
- package/dist/lib/schemas.d.ts.map +1 -1
- package/dist/lib/schemas.js +2 -0
- package/dist/lib/schemas.js.map +1 -1
- package/node_modules/@codex-ai/plugin/dist/index.d.ts +2 -2
- package/node_modules/@codex-ai/plugin/dist/index.js +2 -2
- package/node_modules/@codex-ai/plugin/dist/tool.d.ts +42 -42
- package/node_modules/@codex-ai/plugin/dist/tool.js +29 -29
- package/node_modules/@codex-ai/plugin/package.json +9 -9
- package/package.json +193 -193
- package/scripts/codex-app-launcher.js +653 -653
- package/scripts/codex-app-router.js +322 -322
- package/scripts/codex-bin-resolver.js +254 -254
- package/scripts/codex-multi-auth.js +59 -59
- package/scripts/codex-routing.js +56 -56
- package/scripts/codex.js +4275 -4275
- package/scripts/install-codex-auth-utils.js +206 -206
- package/scripts/postinstall.js +343 -343
- package/scripts/preuninstall.js +254 -254
- package/vendor/codex-ai-plugin/dist/index.d.ts +2 -2
- package/vendor/codex-ai-plugin/dist/index.js +2 -2
- package/vendor/codex-ai-plugin/dist/tool.d.ts +42 -42
- package/vendor/codex-ai-plugin/dist/tool.js +29 -29
- package/vendor/codex-ai-plugin/package.json +9 -9
- package/vendor/codex-ai-sdk/dist/index.d.ts +4 -4
- package/vendor/codex-ai-sdk/dist/index.js +2 -2
- package/vendor/codex-ai-sdk/package.json +8 -8
package/config/codex-modern.json
CHANGED
|
@@ -1,258 +1,258 @@
|
|
|
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.5": {
|
|
19
|
-
"name": "GPT 5.5 (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.5-pro": {
|
|
62
|
-
"name": "GPT 5.5 Pro (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
|
-
"medium": {
|
|
78
|
-
"reasoningEffort": "medium",
|
|
79
|
-
"reasoningSummary": "detailed",
|
|
80
|
-
"textVerbosity": "medium"
|
|
81
|
-
},
|
|
82
|
-
"high": {
|
|
83
|
-
"reasoningEffort": "high",
|
|
84
|
-
"reasoningSummary": "detailed",
|
|
85
|
-
"textVerbosity": "medium"
|
|
86
|
-
},
|
|
87
|
-
"xhigh": {
|
|
88
|
-
"reasoningEffort": "xhigh",
|
|
89
|
-
"reasoningSummary": "detailed",
|
|
90
|
-
"textVerbosity": "medium"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"gpt-5.4": {
|
|
95
|
-
"name": "GPT 5.4 (OAuth)",
|
|
96
|
-
"limit": {
|
|
97
|
-
"context": 272000,
|
|
98
|
-
"output": 128000
|
|
99
|
-
},
|
|
100
|
-
"modalities": {
|
|
101
|
-
"input": [
|
|
102
|
-
"text",
|
|
103
|
-
"image"
|
|
104
|
-
],
|
|
105
|
-
"output": [
|
|
106
|
-
"text"
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"variants": {
|
|
110
|
-
"none": {
|
|
111
|
-
"reasoningEffort": "none",
|
|
112
|
-
"reasoningSummary": "auto",
|
|
113
|
-
"textVerbosity": "medium"
|
|
114
|
-
},
|
|
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
|
-
"xhigh": {
|
|
131
|
-
"reasoningEffort": "xhigh",
|
|
132
|
-
"reasoningSummary": "detailed",
|
|
133
|
-
"textVerbosity": "medium"
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"gpt-5.4-pro": {
|
|
138
|
-
"name": "GPT 5.4 Pro (OAuth)",
|
|
139
|
-
"limit": {
|
|
140
|
-
"context": 272000,
|
|
141
|
-
"output": 128000
|
|
142
|
-
},
|
|
143
|
-
"modalities": {
|
|
144
|
-
"input": [
|
|
145
|
-
"text",
|
|
146
|
-
"image"
|
|
147
|
-
],
|
|
148
|
-
"output": [
|
|
149
|
-
"text"
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
"variants": {
|
|
153
|
-
"medium": {
|
|
154
|
-
"reasoningEffort": "medium",
|
|
155
|
-
"reasoningSummary": "detailed",
|
|
156
|
-
"textVerbosity": "medium"
|
|
157
|
-
},
|
|
158
|
-
"high": {
|
|
159
|
-
"reasoningEffort": "high",
|
|
160
|
-
"reasoningSummary": "detailed",
|
|
161
|
-
"textVerbosity": "medium"
|
|
162
|
-
},
|
|
163
|
-
"xhigh": {
|
|
164
|
-
"reasoningEffort": "xhigh",
|
|
165
|
-
"reasoningSummary": "detailed",
|
|
166
|
-
"textVerbosity": "medium"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"gpt-5.4-mini": {
|
|
171
|
-
"name": "GPT 5.4 Mini (OAuth)",
|
|
172
|
-
"limit": {
|
|
173
|
-
"context": 272000,
|
|
174
|
-
"output": 128000
|
|
175
|
-
},
|
|
176
|
-
"modalities": {
|
|
177
|
-
"input": [
|
|
178
|
-
"text",
|
|
179
|
-
"image"
|
|
180
|
-
],
|
|
181
|
-
"output": [
|
|
182
|
-
"text"
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
"options": {
|
|
186
|
-
"reasoningEffort": "medium",
|
|
187
|
-
"reasoningSummary": "auto",
|
|
188
|
-
"textVerbosity": "medium"
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
"gpt-5.4-nano": {
|
|
192
|
-
"name": "GPT 5.4 Nano (OAuth)",
|
|
193
|
-
"limit": {
|
|
194
|
-
"context": 272000,
|
|
195
|
-
"output": 128000
|
|
196
|
-
},
|
|
197
|
-
"modalities": {
|
|
198
|
-
"input": [
|
|
199
|
-
"text",
|
|
200
|
-
"image"
|
|
201
|
-
],
|
|
202
|
-
"output": [
|
|
203
|
-
"text"
|
|
204
|
-
]
|
|
205
|
-
},
|
|
206
|
-
"options": {
|
|
207
|
-
"reasoningEffort": "medium",
|
|
208
|
-
"reasoningSummary": "auto",
|
|
209
|
-
"textVerbosity": "medium"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
"gpt-5.3-codex": {
|
|
213
|
-
"name": "GPT 5.3 Codex (OAuth)",
|
|
214
|
-
"limit": {
|
|
215
|
-
"context": 272000,
|
|
216
|
-
"output": 128000
|
|
217
|
-
},
|
|
218
|
-
"modalities": {
|
|
219
|
-
"input": [
|
|
220
|
-
"text",
|
|
221
|
-
"image"
|
|
222
|
-
],
|
|
223
|
-
"output": [
|
|
224
|
-
"text"
|
|
225
|
-
]
|
|
226
|
-
},
|
|
227
|
-
"variants": {
|
|
228
|
-
"low": {
|
|
229
|
-
"reasoningEffort": "low",
|
|
230
|
-
"reasoningSummary": "auto",
|
|
231
|
-
"textVerbosity": "medium"
|
|
232
|
-
},
|
|
233
|
-
"medium": {
|
|
234
|
-
"reasoningEffort": "medium",
|
|
235
|
-
"reasoningSummary": "auto",
|
|
236
|
-
"textVerbosity": "medium"
|
|
237
|
-
},
|
|
238
|
-
"high": {
|
|
239
|
-
"reasoningEffort": "high",
|
|
240
|
-
"reasoningSummary": "detailed",
|
|
241
|
-
"textVerbosity": "medium"
|
|
242
|
-
},
|
|
243
|
-
"xhigh": {
|
|
244
|
-
"reasoningEffort": "xhigh",
|
|
245
|
-
"reasoningSummary": "detailed",
|
|
246
|
-
"textVerbosity": "medium"
|
|
247
|
-
}
|
|
248
|
-
},
|
|
249
|
-
"options": {
|
|
250
|
-
"reasoningEffort": "high",
|
|
251
|
-
"reasoningSummary": "detailed",
|
|
252
|
-
"textVerbosity": "medium"
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
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.5": {
|
|
19
|
+
"name": "GPT 5.5 (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.5-pro": {
|
|
62
|
+
"name": "GPT 5.5 Pro (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
|
+
"medium": {
|
|
78
|
+
"reasoningEffort": "medium",
|
|
79
|
+
"reasoningSummary": "detailed",
|
|
80
|
+
"textVerbosity": "medium"
|
|
81
|
+
},
|
|
82
|
+
"high": {
|
|
83
|
+
"reasoningEffort": "high",
|
|
84
|
+
"reasoningSummary": "detailed",
|
|
85
|
+
"textVerbosity": "medium"
|
|
86
|
+
},
|
|
87
|
+
"xhigh": {
|
|
88
|
+
"reasoningEffort": "xhigh",
|
|
89
|
+
"reasoningSummary": "detailed",
|
|
90
|
+
"textVerbosity": "medium"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"gpt-5.4": {
|
|
95
|
+
"name": "GPT 5.4 (OAuth)",
|
|
96
|
+
"limit": {
|
|
97
|
+
"context": 272000,
|
|
98
|
+
"output": 128000
|
|
99
|
+
},
|
|
100
|
+
"modalities": {
|
|
101
|
+
"input": [
|
|
102
|
+
"text",
|
|
103
|
+
"image"
|
|
104
|
+
],
|
|
105
|
+
"output": [
|
|
106
|
+
"text"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"variants": {
|
|
110
|
+
"none": {
|
|
111
|
+
"reasoningEffort": "none",
|
|
112
|
+
"reasoningSummary": "auto",
|
|
113
|
+
"textVerbosity": "medium"
|
|
114
|
+
},
|
|
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
|
+
"xhigh": {
|
|
131
|
+
"reasoningEffort": "xhigh",
|
|
132
|
+
"reasoningSummary": "detailed",
|
|
133
|
+
"textVerbosity": "medium"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"gpt-5.4-pro": {
|
|
138
|
+
"name": "GPT 5.4 Pro (OAuth)",
|
|
139
|
+
"limit": {
|
|
140
|
+
"context": 272000,
|
|
141
|
+
"output": 128000
|
|
142
|
+
},
|
|
143
|
+
"modalities": {
|
|
144
|
+
"input": [
|
|
145
|
+
"text",
|
|
146
|
+
"image"
|
|
147
|
+
],
|
|
148
|
+
"output": [
|
|
149
|
+
"text"
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"variants": {
|
|
153
|
+
"medium": {
|
|
154
|
+
"reasoningEffort": "medium",
|
|
155
|
+
"reasoningSummary": "detailed",
|
|
156
|
+
"textVerbosity": "medium"
|
|
157
|
+
},
|
|
158
|
+
"high": {
|
|
159
|
+
"reasoningEffort": "high",
|
|
160
|
+
"reasoningSummary": "detailed",
|
|
161
|
+
"textVerbosity": "medium"
|
|
162
|
+
},
|
|
163
|
+
"xhigh": {
|
|
164
|
+
"reasoningEffort": "xhigh",
|
|
165
|
+
"reasoningSummary": "detailed",
|
|
166
|
+
"textVerbosity": "medium"
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"gpt-5.4-mini": {
|
|
171
|
+
"name": "GPT 5.4 Mini (OAuth)",
|
|
172
|
+
"limit": {
|
|
173
|
+
"context": 272000,
|
|
174
|
+
"output": 128000
|
|
175
|
+
},
|
|
176
|
+
"modalities": {
|
|
177
|
+
"input": [
|
|
178
|
+
"text",
|
|
179
|
+
"image"
|
|
180
|
+
],
|
|
181
|
+
"output": [
|
|
182
|
+
"text"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"options": {
|
|
186
|
+
"reasoningEffort": "medium",
|
|
187
|
+
"reasoningSummary": "auto",
|
|
188
|
+
"textVerbosity": "medium"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
"gpt-5.4-nano": {
|
|
192
|
+
"name": "GPT 5.4 Nano (OAuth)",
|
|
193
|
+
"limit": {
|
|
194
|
+
"context": 272000,
|
|
195
|
+
"output": 128000
|
|
196
|
+
},
|
|
197
|
+
"modalities": {
|
|
198
|
+
"input": [
|
|
199
|
+
"text",
|
|
200
|
+
"image"
|
|
201
|
+
],
|
|
202
|
+
"output": [
|
|
203
|
+
"text"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"options": {
|
|
207
|
+
"reasoningEffort": "medium",
|
|
208
|
+
"reasoningSummary": "auto",
|
|
209
|
+
"textVerbosity": "medium"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"gpt-5.3-codex": {
|
|
213
|
+
"name": "GPT 5.3 Codex (OAuth)",
|
|
214
|
+
"limit": {
|
|
215
|
+
"context": 272000,
|
|
216
|
+
"output": 128000
|
|
217
|
+
},
|
|
218
|
+
"modalities": {
|
|
219
|
+
"input": [
|
|
220
|
+
"text",
|
|
221
|
+
"image"
|
|
222
|
+
],
|
|
223
|
+
"output": [
|
|
224
|
+
"text"
|
|
225
|
+
]
|
|
226
|
+
},
|
|
227
|
+
"variants": {
|
|
228
|
+
"low": {
|
|
229
|
+
"reasoningEffort": "low",
|
|
230
|
+
"reasoningSummary": "auto",
|
|
231
|
+
"textVerbosity": "medium"
|
|
232
|
+
},
|
|
233
|
+
"medium": {
|
|
234
|
+
"reasoningEffort": "medium",
|
|
235
|
+
"reasoningSummary": "auto",
|
|
236
|
+
"textVerbosity": "medium"
|
|
237
|
+
},
|
|
238
|
+
"high": {
|
|
239
|
+
"reasoningEffort": "high",
|
|
240
|
+
"reasoningSummary": "detailed",
|
|
241
|
+
"textVerbosity": "medium"
|
|
242
|
+
},
|
|
243
|
+
"xhigh": {
|
|
244
|
+
"reasoningEffort": "xhigh",
|
|
245
|
+
"reasoningSummary": "detailed",
|
|
246
|
+
"textVerbosity": "medium"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"options": {
|
|
250
|
+
"reasoningEffort": "high",
|
|
251
|
+
"reasoningSummary": "detailed",
|
|
252
|
+
"textVerbosity": "medium"
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
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.3-codex"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
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.3-codex"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
@@ -1,21 +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
|
|
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
21
|
}
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -254,6 +254,32 @@ export declare function getNetworkErrorCooldownMs(pluginConfig: PluginConfig): n
|
|
|
254
254
|
* @returns The cooldown in milliseconds to use after a server error (minimum 0, default 4000)
|
|
255
255
|
*/
|
|
256
256
|
export declare function getServerErrorCooldownMs(pluginConfig: PluginConfig): number;
|
|
257
|
+
/**
|
|
258
|
+
* Get the cooldown duration in milliseconds to apply when an OAuth token has been
|
|
259
|
+
* explicitly invalidated by the upstream (distinct from a generic 401).
|
|
260
|
+
*
|
|
261
|
+
* A longer default (5 minutes) prevents the cascade where rapid account rotation
|
|
262
|
+
* causes each successive account's token to be invalidated in turn by OpenAI's
|
|
263
|
+
* anti-abuse detection.
|
|
264
|
+
*
|
|
265
|
+
* @param pluginConfig - Plugin configuration used to resolve the setting
|
|
266
|
+
* @returns The cooldown in milliseconds (minimum 0, default 300000)
|
|
267
|
+
*/
|
|
268
|
+
export declare function getTokenInvalidationCooldownMs(pluginConfig: PluginConfig): number;
|
|
269
|
+
/**
|
|
270
|
+
* Get the minimum time in milliseconds that must elapse between global account
|
|
271
|
+
* switches across requests. When the last served account is still within this
|
|
272
|
+
* window and is available, it receives a large selection-score boost so the
|
|
273
|
+
* proxy stays on it rather than rotating to a fresher idle account.
|
|
274
|
+
*
|
|
275
|
+
* Setting this to 0 disables the throttle. Default is 60 seconds, which
|
|
276
|
+
* reduces the rate at which different OAuth tokens are presented from the same
|
|
277
|
+
* IP and helps avoid OpenAI's anti-abuse detection (see issue #495).
|
|
278
|
+
*
|
|
279
|
+
* @param pluginConfig - Plugin configuration used to resolve the setting
|
|
280
|
+
* @returns The minimum rotation interval in milliseconds (minimum 0, default 60000)
|
|
281
|
+
*/
|
|
282
|
+
export declare function getMinRotationIntervalMs(pluginConfig: PluginConfig): number;
|
|
257
283
|
/**
|
|
258
284
|
* Determines whether periodic storage backups are enabled.
|
|
259
285
|
*
|
package/dist/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../lib/config.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AA0C/C,MAAM,MAAM,sBAAsB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE3D,KAAK,wBAAwB,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;AAE3E,KAAK,yBAAyB,GAAG,OAAO,CACvC,wBAAwB,EACxB,SAAS,GAAG,MAAM,CAClB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,KAAK,GAAG,yBAAyB,GAAG,SAAS,CAAC;AAEhF,MAAM,WAAW,kBAAkB;IAClC,GAAG,EAAE,MAAM,YAAY,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE,mBAAmB,CAAC;IAC5B,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IACnC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,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