codex-multi-auth 0.1.7 → 0.1.8

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 (57) hide show
  1. package/LICENSE +21 -1
  2. package/README.md +13 -0
  3. package/assets/readme-hero.svg +31 -31
  4. package/dist/index.d.ts +1 -1
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +2 -2
  7. package/dist/index.js.map +1 -1
  8. package/dist/lib/codex-cli/sync.d.ts +9 -16
  9. package/dist/lib/codex-cli/sync.d.ts.map +1 -1
  10. package/dist/lib/codex-cli/sync.js +51 -284
  11. package/dist/lib/codex-cli/sync.js.map +1 -1
  12. package/dist/lib/codex-manager/settings-hub.d.ts +44 -2
  13. package/dist/lib/codex-manager/settings-hub.d.ts.map +1 -1
  14. package/dist/lib/codex-manager/settings-hub.js +746 -117
  15. package/dist/lib/codex-manager/settings-hub.js.map +1 -1
  16. package/dist/lib/codex-manager.d.ts.map +1 -1
  17. package/dist/lib/codex-manager.js +3 -8
  18. package/dist/lib/codex-manager.js.map +1 -1
  19. package/dist/lib/context-overflow.js +10 -10
  20. package/dist/lib/named-backup-export.d.ts +69 -0
  21. package/dist/lib/named-backup-export.d.ts.map +1 -0
  22. package/dist/lib/named-backup-export.js +207 -0
  23. package/dist/lib/named-backup-export.js.map +1 -0
  24. package/dist/lib/oc-chatgpt-import-adapter.d.ts +64 -0
  25. package/dist/lib/oc-chatgpt-import-adapter.d.ts.map +1 -0
  26. package/dist/lib/oc-chatgpt-import-adapter.js +506 -0
  27. package/dist/lib/oc-chatgpt-import-adapter.js.map +1 -0
  28. package/dist/lib/oc-chatgpt-orchestrator.d.ts +80 -0
  29. package/dist/lib/oc-chatgpt-orchestrator.d.ts.map +1 -0
  30. package/dist/lib/oc-chatgpt-orchestrator.js +130 -0
  31. package/dist/lib/oc-chatgpt-orchestrator.js.map +1 -0
  32. package/dist/lib/oc-chatgpt-target-detection.d.ts +59 -0
  33. package/dist/lib/oc-chatgpt-target-detection.d.ts.map +1 -0
  34. package/dist/lib/oc-chatgpt-target-detection.js +327 -0
  35. package/dist/lib/oc-chatgpt-target-detection.js.map +1 -0
  36. package/dist/lib/prompts/codex.js +2 -2
  37. package/dist/lib/runtime-paths.d.ts.map +1 -1
  38. package/dist/lib/runtime-paths.js +21 -1
  39. package/dist/lib/runtime-paths.js.map +1 -1
  40. package/dist/lib/storage.d.ts +42 -3
  41. package/dist/lib/storage.d.ts.map +1 -1
  42. package/dist/lib/storage.js +519 -51
  43. package/dist/lib/storage.js.map +1 -1
  44. package/dist/lib/ui/copy.d.ts +15 -1
  45. package/dist/lib/ui/copy.d.ts.map +1 -1
  46. package/dist/lib/ui/copy.js +15 -1
  47. package/dist/lib/ui/copy.js.map +1 -1
  48. package/package.json +132 -133
  49. package/scripts/bench-format/hashline-v2.mjs +642 -642
  50. package/scripts/bench-format/render.mjs +496 -496
  51. package/scripts/bench-format/stats.mjs +54 -54
  52. package/scripts/bench-format/tasks.mjs +151 -151
  53. package/scripts/benchmark-render-dashboard.mjs +49 -49
  54. package/scripts/install-codex-auth.js +9 -9
  55. package/scripts/test-all-models.sh +7 -7
  56. package/scripts/test-model-matrix.js +138 -46
  57. package/scripts/validate-model-map.sh +7 -7
package/LICENSE CHANGED
@@ -1 +1,21 @@
1
-
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ndycode
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -17,6 +17,7 @@ Codex CLI-first multi-account OAuth manager for the official `@openai/codex` CLI
17
17
  - Multi-account OAuth pool with health-aware selection and automatic failover
18
18
  - Project-scoped account storage under `~/.codex/multi-auth/projects/<project-key>/...`
19
19
  - Interactive dashboard for account actions and settings
20
+ - Experimental settings tab for staged sync, backup, and refresh-guard controls
20
21
  - Forecast, report, fix, and doctor commands for operational safety
21
22
  - Flagged account verification and restore flow
22
23
  - Session affinity and live account sync controls
@@ -199,6 +200,18 @@ codex auth forecast --live
199
200
 
200
201
  ---
201
202
 
203
+ ## Experimental Settings Highlights
204
+
205
+ The Settings menu now includes an `Experimental` section for staged features:
206
+
207
+ - preview-first sync into `oc-chatgpt-multi-auth`
208
+ - named local pool backup export with filename prompt
209
+ - refresh guard toggle and interval controls moved out of Backend Controls
210
+
211
+ These flows are intentionally non-destructive by default: sync previews before apply, destination-only accounts are preserved, and backup filename collisions fail safely.
212
+
213
+ ---
214
+
202
215
  ## Troubleshooting
203
216
 
204
217
  <details open>
@@ -1,31 +1,31 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="300" viewBox="0 0 1200 300" role="img" aria-label="Codex Multi-Auth OAuth">
2
- <defs>
3
- <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
4
- <stop offset="0%" stop-color="#0f172a" />
5
- <stop offset="100%" stop-color="#1f2937" />
6
- </linearGradient>
7
- <linearGradient id="accent" x1="0" y1="0" x2="1" y2="0">
8
- <stop offset="0%" stop-color="#38bdf8" />
9
- <stop offset="100%" stop-color="#22d3ee" />
10
- </linearGradient>
11
- </defs>
12
- <rect width="1200" height="300" rx="28" fill="url(#bg)" />
13
- <g opacity="0.12">
14
- <circle cx="1020" cy="70" r="120" fill="#38bdf8" />
15
- <circle cx="150" cy="260" r="140" fill="#22d3ee" />
16
- </g>
17
- <g fill="none" stroke="url(#accent)" stroke-width="8" stroke-linecap="round" stroke-linejoin="round">
18
- <path d="M160 95 L100 150 L160 205" />
19
- <path d="M280 95 L340 150 L280 205" />
20
- <path d="M205 80 L235 220" />
21
- </g>
22
- <text x="420" y="120" fill="#e2e8f0" font-size="42" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif" font-weight="600">
23
- Codex Multi-Auth OAuth
24
- </text>
25
- <text x="420" y="170" fill="#cbd5f5" font-size="24" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif">
26
- ChatGPT Plus/Pro auth for GPT-5.2 and Codex models
27
- </text>
28
- <text x="420" y="220" fill="#7dd3fc" font-size="18" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif">
29
- One-command install, modern variants, full tool support
30
- </text>
31
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1200" height="300" viewBox="0 0 1200 300" role="img" aria-label="Codex Multi-Auth OAuth">
2
+ <defs>
3
+ <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0%" stop-color="#0f172a" />
5
+ <stop offset="100%" stop-color="#1f2937" />
6
+ </linearGradient>
7
+ <linearGradient id="accent" x1="0" y1="0" x2="1" y2="0">
8
+ <stop offset="0%" stop-color="#38bdf8" />
9
+ <stop offset="100%" stop-color="#22d3ee" />
10
+ </linearGradient>
11
+ </defs>
12
+ <rect width="1200" height="300" rx="28" fill="url(#bg)" />
13
+ <g opacity="0.12">
14
+ <circle cx="1020" cy="70" r="120" fill="#38bdf8" />
15
+ <circle cx="150" cy="260" r="140" fill="#22d3ee" />
16
+ </g>
17
+ <g fill="none" stroke="url(#accent)" stroke-width="8" stroke-linecap="round" stroke-linejoin="round">
18
+ <path d="M160 95 L100 150 L160 205" />
19
+ <path d="M280 95 L340 150 L280 205" />
20
+ <path d="M205 80 L235 220" />
21
+ </g>
22
+ <text x="420" y="120" fill="#e2e8f0" font-size="42" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif" font-weight="600">
23
+ Codex Multi-Auth OAuth
24
+ </text>
25
+ <text x="420" y="170" fill="#cbd5f5" font-size="24" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif">
26
+ ChatGPT Plus/Pro auth for GPT-5.2 and Codex models
27
+ </text>
28
+ <text x="420" y="220" fill="#7dd3fc" font-size="18" font-family="'IBM Plex Sans','Segoe UI',Arial,sans-serif">
29
+ One-command install, modern variants, full tool support
30
+ </text>
31
+ </svg>
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@
18
18
  * For production applications, use the OpenAI Platform API: https://platform.openai.com/
19
19
  *
20
20
  * @license MIT with Usage Disclaimer (see LICENSE file)
21
- * @author numman-ali
21
+ * @author ndycode
22
22
  * @repository https://github.com/ndycode/codex-multi-auth
23
23
 
24
24
  */
@@ -1 +1 @@
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,MAg2H/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;AAGH,OAAO,KAAK,EAAE,MAAM,EAAe,MAAM,kBAAkB,CAAC;AAmL5D;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,iBAAiB,EAAE,MAk2H/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,KAAoB,CAAC;AAElD,eAAe,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@
18
18
  * For production applications, use the OpenAI Platform API: https://platform.openai.com/
19
19
  *
20
20
  * @license MIT with Usage Disclaimer (see LICENSE file)
21
- * @author numman-ali
21
+ * @author ndycode
22
22
  * @repository https://github.com/ndycode/codex-multi-auth
23
23
 
24
24
  */
@@ -2331,7 +2331,7 @@ export const OpenAIOAuthPlugin = async ({ client }) => {
2331
2331
  await clearAccounts();
2332
2332
  await clearFlaggedAccounts();
2333
2333
  invalidateAccountManagerCache();
2334
- console.log("\nDeleted all accounts. Starting fresh.\n");
2334
+ console.log("\nCleared saved accounts from active storage. Recovery snapshots remain available. Starting fresh.\n");
2335
2335
  }
2336
2336
  break;
2337
2337
  }