codex-multi-auth 1.3.0 → 1.3.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.
Files changed (75) hide show
  1. package/README.md +3 -3
  2. package/config/codex-legacy.json +85 -10
  3. package/config/codex-modern.json +35 -2
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +8 -1
  6. package/dist/index.js.map +1 -1
  7. package/dist/lib/accounts.d.ts.map +1 -1
  8. package/dist/lib/accounts.js +60 -2
  9. package/dist/lib/accounts.js.map +1 -1
  10. package/dist/lib/auth/auth.d.ts +19 -0
  11. package/dist/lib/auth/auth.d.ts.map +1 -1
  12. package/dist/lib/auth/auth.js +90 -4
  13. package/dist/lib/auth/auth.js.map +1 -1
  14. package/dist/lib/auth/server.d.ts.map +1 -1
  15. package/dist/lib/auth/server.js +11 -5
  16. package/dist/lib/auth/server.js.map +1 -1
  17. package/dist/lib/capability-policy.d.ts.map +1 -1
  18. package/dist/lib/capability-policy.js +7 -2
  19. package/dist/lib/capability-policy.js.map +1 -1
  20. package/dist/lib/codex-manager.js +2 -2
  21. package/dist/lib/codex-manager.js.map +1 -1
  22. package/dist/lib/prompts/codex.d.ts +2 -2
  23. package/dist/lib/prompts/codex.js +2 -2
  24. package/dist/lib/recovery/storage.d.ts +13 -0
  25. package/dist/lib/recovery/storage.d.ts.map +1 -1
  26. package/dist/lib/recovery/storage.js +32 -1
  27. package/dist/lib/recovery/storage.js.map +1 -1
  28. package/dist/lib/request/fetch-helpers.d.ts.map +1 -1
  29. package/dist/lib/request/fetch-helpers.js +15 -2
  30. package/dist/lib/request/fetch-helpers.js.map +1 -1
  31. package/dist/lib/request/helpers/model-map.d.ts +3 -3
  32. package/dist/lib/request/helpers/model-map.d.ts.map +1 -1
  33. package/dist/lib/request/helpers/model-map.js +146 -70
  34. package/dist/lib/request/helpers/model-map.js.map +1 -1
  35. package/dist/lib/request/rate-limit-backoff.d.ts +14 -1
  36. package/dist/lib/request/rate-limit-backoff.d.ts.map +1 -1
  37. package/dist/lib/request/rate-limit-backoff.js +26 -5
  38. package/dist/lib/request/rate-limit-backoff.js.map +1 -1
  39. package/dist/lib/request/response-handler.d.ts.map +1 -1
  40. package/dist/lib/request/response-handler.js +16 -3
  41. package/dist/lib/request/response-handler.js.map +1 -1
  42. package/dist/lib/rotation.d.ts +2 -0
  43. package/dist/lib/rotation.d.ts.map +1 -1
  44. package/dist/lib/rotation.js +26 -0
  45. package/dist/lib/rotation.js.map +1 -1
  46. package/dist/lib/shutdown.d.ts.map +1 -1
  47. package/dist/lib/shutdown.js +19 -10
  48. package/dist/lib/shutdown.js.map +1 -1
  49. package/dist/lib/storage/import-export.d.ts.map +1 -1
  50. package/dist/lib/storage/import-export.js +15 -1
  51. package/dist/lib/storage/import-export.js.map +1 -1
  52. package/dist/lib/ui/select.d.ts.map +1 -1
  53. package/dist/lib/ui/select.js +5 -1
  54. package/dist/lib/ui/select.js.map +1 -1
  55. package/dist/lib/unified-settings.d.ts.map +1 -1
  56. package/dist/lib/unified-settings.js +69 -14
  57. package/dist/lib/unified-settings.js.map +1 -1
  58. package/package.json +1 -1
  59. package/scripts/codex.js +380 -80
  60. package/dist/lib/codex-manager/auth-commands.d.ts +0 -72
  61. package/dist/lib/codex-manager/auth-commands.d.ts.map +0 -1
  62. package/dist/lib/codex-manager/auth-commands.js +0 -643
  63. package/dist/lib/codex-manager/auth-commands.js.map +0 -1
  64. package/dist/lib/codex-manager/commands/doctor.d.ts +0 -85
  65. package/dist/lib/codex-manager/commands/doctor.d.ts.map +0 -1
  66. package/dist/lib/codex-manager/commands/doctor.js +0 -424
  67. package/dist/lib/codex-manager/commands/doctor.js.map +0 -1
  68. package/dist/lib/codex-manager/commands/fix.d.ts +0 -92
  69. package/dist/lib/codex-manager/commands/fix.d.ts.map +0 -1
  70. package/dist/lib/codex-manager/commands/fix.js +0 -347
  71. package/dist/lib/codex-manager/commands/fix.js.map +0 -1
  72. package/dist/lib/codex-manager/commands/verify-flagged.d.ts +0 -69
  73. package/dist/lib/codex-manager/commands/verify-flagged.d.ts.map +0 -1
  74. package/dist/lib/codex-manager/commands/verify-flagged.js +0 -251
  75. package/dist/lib/codex-manager/commands/verify-flagged.js.map +0 -1
package/README.md CHANGED
@@ -333,9 +333,9 @@ codex auth doctor --json
333
333
 
334
334
  ## Release Notes
335
335
 
336
- - Current stable: [docs/releases/v1.3.0.md](docs/releases/v1.3.0.md)
337
- - Previous stable: [docs/releases/v1.2.6.md](docs/releases/v1.2.6.md)
338
- - Earlier stable: [docs/releases/v1.2.5.md](docs/releases/v1.2.5.md)
336
+ - Current stable: [docs/releases/v1.3.2.md](docs/releases/v1.3.2.md)
337
+ - Previous stable: [docs/releases/v1.3.1.md](docs/releases/v1.3.1.md)
338
+ - Earlier stable: [docs/releases/v1.3.0.md](docs/releases/v1.3.0.md)
339
339
  - Full release archive: [docs/README.md#release-history](docs/README.md#release-history)
340
340
  - Archived prerelease: [docs/releases/v0.1.0-beta.0.md](docs/releases/v0.1.0-beta.0.md)
341
341
 
@@ -15,8 +15,8 @@
15
15
  "store": false
16
16
  },
17
17
  "models": {
18
- "gpt-5.2-none": {
19
- "name": "GPT 5.2 None (OAuth)",
18
+ "gpt-5.5-none": {
19
+ "name": "GPT 5.5 None (OAuth)",
20
20
  "limit": {
21
21
  "context": 272000,
22
22
  "output": 128000
@@ -40,8 +40,8 @@
40
40
  "store": false
41
41
  }
42
42
  },
43
- "gpt-5.2-low": {
44
- "name": "GPT 5.2 Low (OAuth)",
43
+ "gpt-5.5-low": {
44
+ "name": "GPT 5.5 Low (OAuth)",
45
45
  "limit": {
46
46
  "context": 272000,
47
47
  "output": 128000
@@ -65,8 +65,8 @@
65
65
  "store": false
66
66
  }
67
67
  },
68
- "gpt-5.2-medium": {
69
- "name": "GPT 5.2 Medium (OAuth)",
68
+ "gpt-5.5-medium": {
69
+ "name": "GPT 5.5 Medium (OAuth)",
70
70
  "limit": {
71
71
  "context": 272000,
72
72
  "output": 128000
@@ -90,8 +90,8 @@
90
90
  "store": false
91
91
  }
92
92
  },
93
- "gpt-5.2-high": {
94
- "name": "GPT 5.2 High (OAuth)",
93
+ "gpt-5.5-high": {
94
+ "name": "GPT 5.5 High (OAuth)",
95
95
  "limit": {
96
96
  "context": 272000,
97
97
  "output": 128000
@@ -115,8 +115,83 @@
115
115
  "store": false
116
116
  }
117
117
  },
118
- "gpt-5.2-xhigh": {
119
- "name": "GPT 5.2 Extra High (OAuth)",
118
+ "gpt-5.5-xhigh": {
119
+ "name": "GPT 5.5 Extra High (OAuth)",
120
+ "limit": {
121
+ "context": 272000,
122
+ "output": 128000
123
+ },
124
+ "modalities": {
125
+ "input": [
126
+ "text",
127
+ "image"
128
+ ],
129
+ "output": [
130
+ "text"
131
+ ]
132
+ },
133
+ "options": {
134
+ "reasoningEffort": "xhigh",
135
+ "reasoningSummary": "detailed",
136
+ "textVerbosity": "medium",
137
+ "include": [
138
+ "reasoning.encrypted_content"
139
+ ],
140
+ "store": false
141
+ }
142
+ },
143
+ "gpt-5.5-pro-medium": {
144
+ "name": "GPT 5.5 Pro Medium (OAuth)",
145
+ "limit": {
146
+ "context": 272000,
147
+ "output": 128000
148
+ },
149
+ "modalities": {
150
+ "input": [
151
+ "text",
152
+ "image"
153
+ ],
154
+ "output": [
155
+ "text"
156
+ ]
157
+ },
158
+ "options": {
159
+ "reasoningEffort": "medium",
160
+ "reasoningSummary": "detailed",
161
+ "textVerbosity": "medium",
162
+ "include": [
163
+ "reasoning.encrypted_content"
164
+ ],
165
+ "store": false
166
+ }
167
+ },
168
+ "gpt-5.5-pro-high": {
169
+ "name": "GPT 5.5 Pro High (OAuth)",
170
+ "limit": {
171
+ "context": 272000,
172
+ "output": 128000
173
+ },
174
+ "modalities": {
175
+ "input": [
176
+ "text",
177
+ "image"
178
+ ],
179
+ "output": [
180
+ "text"
181
+ ]
182
+ },
183
+ "options": {
184
+ "reasoningEffort": "high",
185
+ "reasoningSummary": "detailed",
186
+ "textVerbosity": "medium",
187
+ "include": [
188
+ "reasoning.encrypted_content"
189
+ ],
190
+ "store": false
191
+ }
192
+ },
193
+ "gpt-5.5-pro-xhigh": {
194
+ "name": "GPT 5.5 Pro Extra High (OAuth)",
120
195
  "limit": {
121
196
  "context": 272000,
122
197
  "output": 128000
@@ -15,8 +15,8 @@
15
15
  "store": false
16
16
  },
17
17
  "models": {
18
- "gpt-5.2": {
19
- "name": "GPT 5.2 (OAuth)",
18
+ "gpt-5.5": {
19
+ "name": "GPT 5.5 (OAuth)",
20
20
  "limit": {
21
21
  "context": 272000,
22
22
  "output": 128000
@@ -58,6 +58,39 @@
58
58
  }
59
59
  }
60
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
+ },
61
94
  "gpt-5.1-codex-max": {
62
95
  "name": "GPT 5.1 Codex Max (OAuth)",
63
96
  "limit": {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,kBAAkB,CAAC;AAwR5D;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,iBAAiB,EAAE,MA+hI/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,KAAoB,CAAC;AAElD,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,kBAAkB,CAAC;AAwR5D;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,iBAAiB,EAAE,MAyiI/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,KAAoB,CAAC;AAElD,eAAe,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -998,8 +998,15 @@ export const OpenAIOAuthPlugin = async ({ client }) => {
998
998
  const shouldForceSparkFallback = unsupportedModelInfo.isUnsupported &&
999
999
  (blockedModelNormalized === "gpt-5.3-codex-spark" ||
1000
1000
  blockedModelNormalized.includes("gpt-5.3-codex-spark"));
1001
+ const shouldForceGpt55Fallback = unsupportedModelInfo.isUnsupported &&
1002
+ (blockedModelNormalized === "gpt-5.5" ||
1003
+ blockedModelNormalized === "gpt-5.5-pro" ||
1004
+ blockedModelNormalized === "gpt-5.5-20260423" ||
1005
+ blockedModelNormalized ===
1006
+ "gpt-5.5-pro-20260423");
1001
1007
  const allowUnsupportedFallback = fallbackOnUnsupportedCodexModel ||
1002
- shouldForceSparkFallback;
1008
+ shouldForceSparkFallback ||
1009
+ shouldForceGpt55Fallback;
1003
1010
  // Entitlements can differ by account/workspace, so try remaining
1004
1011
  // accounts before degrading the model via fallback.
1005
1012
  // Spark entitlement is commonly unavailable on non-Pro/Business workspaces;