codex-multi-auth 2.16.0 → 2.17.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/.codex-plugin/plugin.json +9 -9
- package/LICENSE +21 -21
- package/README.md +487 -463
- package/assets/codex-multi-auth-icon.svg +39 -39
- package/assets/readme-hero.svg +31 -31
- package/config/README.md +31 -31
- package/config/codex-legacy.json +1221 -1221
- package/config/codex-modern.json +423 -423
- package/config/minimal-codex.json +15 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -3
- package/dist/lib/account-policy.d.ts +4 -0
- package/dist/lib/account-policy.d.ts.map +1 -1
- package/dist/lib/account-policy.js +8 -0
- package/dist/lib/accounts/rate-limits.d.ts.map +1 -1
- package/dist/lib/accounts/rate-limits.js +2 -0
- package/dist/lib/accounts.d.ts +15 -3
- package/dist/lib/accounts.d.ts.map +1 -1
- package/dist/lib/accounts.js +231 -30
- package/dist/lib/api-route-store.d.ts +24 -0
- package/dist/lib/api-route-store.d.ts.map +1 -0
- package/dist/lib/api-route-store.js +145 -0
- package/dist/lib/auth/account-access.d.ts +115 -0
- package/dist/lib/auth/account-access.d.ts.map +1 -0
- package/dist/lib/auth/account-access.js +214 -0
- package/dist/lib/auth/token-utils.d.ts +54 -1
- package/dist/lib/auth/token-utils.d.ts.map +1 -1
- package/dist/lib/auth/token-utils.js +92 -7
- package/dist/lib/cli.d.ts +1 -1
- package/dist/lib/cli.d.ts.map +1 -1
- package/dist/lib/cli.js +4 -0
- package/dist/lib/codex-cli/state.d.ts +7 -0
- package/dist/lib/codex-cli/state.d.ts.map +1 -1
- package/dist/lib/codex-cli/state.js +18 -0
- package/dist/lib/codex-cli/writer.d.ts.map +1 -1
- package/dist/lib/codex-cli/writer.js +60 -8
- package/dist/lib/codex-manager/account-manager-commands.d.ts.map +1 -1
- package/dist/lib/codex-manager/account-manager-commands.js +1 -0
- package/dist/lib/codex-manager/account-pool-write.d.ts +3 -1
- package/dist/lib/codex-manager/account-pool-write.d.ts.map +1 -1
- package/dist/lib/codex-manager/account-pool-write.js +4 -0
- package/dist/lib/codex-manager/api-login-menu.d.ts +14 -0
- package/dist/lib/codex-manager/api-login-menu.d.ts.map +1 -0
- package/dist/lib/codex-manager/api-login-menu.js +224 -0
- package/dist/lib/codex-manager/commands/account.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/account.js +27 -0
- package/dist/lib/codex-manager/commands/best.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/best.js +6 -2
- package/dist/lib/codex-manager/commands/check.d.ts +7 -1
- package/dist/lib/codex-manager/commands/check.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/check.js +24 -3
- package/dist/lib/codex-manager/commands/forecast.d.ts +1 -1
- package/dist/lib/codex-manager/commands/forecast.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/forecast.js +7 -3
- package/dist/lib/codex-manager/commands/report.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/report.js +5 -1
- package/dist/lib/codex-manager/commands/resets.d.ts +2 -0
- package/dist/lib/codex-manager/commands/resets.d.ts.map +1 -0
- package/dist/lib/codex-manager/commands/resets.js +67 -0
- package/dist/lib/codex-manager/commands/rotation.d.ts +2 -2
- package/dist/lib/codex-manager/commands/rotation.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/rotation.js +63 -12
- package/dist/lib/codex-manager/commands/status.d.ts +12 -1
- package/dist/lib/codex-manager/commands/status.d.ts.map +1 -1
- package/dist/lib/codex-manager/commands/status.js +166 -22
- package/dist/lib/codex-manager/commands/uninstall.js +1 -1
- package/dist/lib/codex-manager/formatters/quota-formatters.d.ts.map +1 -1
- package/dist/lib/codex-manager/formatters/quota-formatters.js +3 -2
- package/dist/lib/codex-manager/health-check.d.ts +3 -0
- package/dist/lib/codex-manager/health-check.d.ts.map +1 -1
- package/dist/lib/codex-manager/health-check.js +57 -7
- package/dist/lib/codex-manager/help.d.ts.map +1 -1
- package/dist/lib/codex-manager/help.js +4 -2
- package/dist/lib/codex-manager/login-flow.d.ts.map +1 -1
- package/dist/lib/codex-manager/login-flow.js +69 -7
- package/dist/lib/codex-manager/login-menu-data.d.ts.map +1 -1
- package/dist/lib/codex-manager/login-menu-data.js +21 -8
- package/dist/lib/codex-manager/login-oauth.d.ts +3 -0
- package/dist/lib/codex-manager/login-oauth.d.ts.map +1 -1
- package/dist/lib/codex-manager/login-oauth.js +6 -1
- package/dist/lib/codex-manager/login-workspace-choice.d.ts +11 -0
- package/dist/lib/codex-manager/login-workspace-choice.d.ts.map +1 -0
- package/dist/lib/codex-manager/login-workspace-choice.js +37 -0
- package/dist/lib/codex-manager/persist-selected-account.d.ts.map +1 -1
- package/dist/lib/codex-manager/persist-selected-account.js +2 -1
- package/dist/lib/codex-manager/quota-cache-helpers.d.ts +7 -1
- package/dist/lib/codex-manager/quota-cache-helpers.d.ts.map +1 -1
- package/dist/lib/codex-manager/quota-cache-helpers.js +34 -19
- package/dist/lib/codex-manager/repair-commands.d.ts +13 -0
- package/dist/lib/codex-manager/repair-commands.d.ts.map +1 -1
- package/dist/lib/codex-manager/repair-commands.js +144 -9
- package/dist/lib/codex-manager.d.ts.map +1 -1
- package/dist/lib/codex-manager.js +25 -6
- package/dist/lib/concurrency.d.ts +3 -0
- package/dist/lib/concurrency.d.ts.map +1 -0
- package/dist/lib/concurrency.js +31 -0
- package/dist/lib/context-budget-response.js +8 -8
- package/dist/lib/context-overflow.js +10 -10
- package/dist/lib/model-route-policy.d.ts +52 -0
- package/dist/lib/model-route-policy.d.ts.map +1 -0
- package/dist/lib/model-route-policy.js +159 -0
- package/dist/lib/oauth-success.html +125 -125
- package/dist/lib/policy/runtime-policy.d.ts +1 -0
- package/dist/lib/policy/runtime-policy.d.ts.map +1 -1
- package/dist/lib/policy/runtime-policy.js +3 -0
- package/dist/lib/preemptive-quota-scheduler.d.ts +2 -0
- package/dist/lib/preemptive-quota-scheduler.d.ts.map +1 -1
- package/dist/lib/preemptive-quota-scheduler.js +4 -0
- package/dist/lib/prompts/codex-host-bridge.js +138 -138
- package/dist/lib/prompts/codex.js +79 -79
- package/dist/lib/quota-cache.d.ts +7 -3
- package/dist/lib/quota-cache.d.ts.map +1 -1
- package/dist/lib/quota-cache.js +91 -59
- package/dist/lib/quota-probe.d.ts +5 -0
- package/dist/lib/quota-probe.d.ts.map +1 -1
- package/dist/lib/quota-probe.js +26 -2
- package/dist/lib/quota-readiness.d.ts +7 -2
- package/dist/lib/quota-readiness.d.ts.map +1 -1
- package/dist/lib/quota-readiness.js +25 -4
- package/dist/lib/request/client-cancellation.d.ts +5 -0
- package/dist/lib/request/client-cancellation.d.ts.map +1 -0
- package/dist/lib/request/client-cancellation.js +7 -0
- package/dist/lib/request/response-outcome.d.ts +25 -0
- package/dist/lib/request/response-outcome.d.ts.map +1 -0
- package/dist/lib/request/response-outcome.js +49 -0
- package/dist/lib/request/stream-failover-runtime.d.ts +2 -1
- package/dist/lib/request/stream-failover-runtime.d.ts.map +1 -1
- package/dist/lib/request/stream-failover-runtime.js +29 -10
- package/dist/lib/runtime/account-check.d.ts.map +1 -1
- package/dist/lib/runtime/account-check.js +2 -8
- package/dist/lib/runtime/account-model-catalog.d.ts +64 -0
- package/dist/lib/runtime/account-model-catalog.d.ts.map +1 -0
- package/dist/lib/runtime/account-model-catalog.js +154 -0
- package/dist/lib/runtime/account-pool.d.ts +3 -1
- package/dist/lib/runtime/account-pool.d.ts.map +1 -1
- package/dist/lib/runtime/account-pool.js +4 -0
- package/dist/lib/runtime/account-reset-credits.d.ts +42 -0
- package/dist/lib/runtime/account-reset-credits.d.ts.map +1 -0
- package/dist/lib/runtime/account-reset-credits.js +82 -0
- package/dist/lib/runtime/api-model-capabilities.d.ts +30 -0
- package/dist/lib/runtime/api-model-capabilities.d.ts.map +1 -0
- package/dist/lib/runtime/api-model-capabilities.js +434 -0
- package/dist/lib/runtime/api-model-runtime.d.ts +42 -0
- package/dist/lib/runtime/api-model-runtime.d.ts.map +1 -0
- package/dist/lib/runtime/api-model-runtime.js +358 -0
- package/dist/lib/runtime/app-bind.d.ts +19 -1
- package/dist/lib/runtime/app-bind.d.ts.map +1 -1
- package/dist/lib/runtime/app-bind.js +89 -11
- package/dist/lib/runtime/automatic-account-checks.d.ts +35 -0
- package/dist/lib/runtime/automatic-account-checks.d.ts.map +1 -0
- package/dist/lib/runtime/automatic-account-checks.js +140 -0
- package/dist/lib/runtime/automatic-subscription-checks.d.ts +7 -0
- package/dist/lib/runtime/automatic-subscription-checks.d.ts.map +1 -0
- package/dist/lib/runtime/automatic-subscription-checks.js +54 -0
- package/dist/lib/runtime/catalog-capabilities.d.ts +8 -0
- package/dist/lib/runtime/catalog-capabilities.d.ts.map +1 -0
- package/dist/lib/runtime/catalog-capabilities.js +61 -0
- package/dist/lib/runtime/inference-activity.d.ts +15 -0
- package/dist/lib/runtime/inference-activity.d.ts.map +1 -0
- package/dist/lib/runtime/inference-activity.js +95 -0
- package/dist/lib/runtime/model-discovery-status.d.ts +100 -0
- package/dist/lib/runtime/model-discovery-status.d.ts.map +1 -0
- package/dist/lib/runtime/model-discovery-status.js +387 -0
- package/dist/lib/runtime/native-account-storage.d.ts +11 -0
- package/dist/lib/runtime/native-account-storage.d.ts.map +1 -0
- package/dist/lib/runtime/native-account-storage.js +50 -0
- package/dist/lib/runtime/native-account-sync.d.ts +19 -0
- package/dist/lib/runtime/native-account-sync.d.ts.map +1 -0
- package/dist/lib/runtime/native-account-sync.js +62 -0
- package/dist/lib/runtime/native-binding-lock.d.ts +3 -0
- package/dist/lib/runtime/native-binding-lock.d.ts.map +1 -0
- package/dist/lib/runtime/native-binding-lock.js +5 -0
- package/dist/lib/runtime/native-client-auth.d.ts +3 -0
- package/dist/lib/runtime/native-client-auth.d.ts.map +1 -0
- package/dist/lib/runtime/native-client-auth.js +42 -0
- package/dist/lib/runtime/native-provider-config.d.ts +4 -0
- package/dist/lib/runtime/native-provider-config.d.ts.map +1 -0
- package/dist/lib/runtime/native-provider-config.js +52 -0
- package/dist/lib/runtime/native-rate-limits.d.ts +18 -0
- package/dist/lib/runtime/native-rate-limits.d.ts.map +1 -0
- package/dist/lib/runtime/native-rate-limits.js +135 -0
- package/dist/lib/runtime/reset-credit-routing.d.ts +41 -0
- package/dist/lib/runtime/reset-credit-routing.d.ts.map +1 -0
- package/dist/lib/runtime/reset-credit-routing.js +66 -0
- package/dist/lib/runtime/reset-credits.d.ts +101 -0
- package/dist/lib/runtime/reset-credits.d.ts.map +1 -0
- package/dist/lib/runtime/reset-credits.js +162 -0
- package/dist/lib/runtime/response-output-history.d.ts +17 -0
- package/dist/lib/runtime/response-output-history.d.ts.map +1 -0
- package/dist/lib/runtime/response-output-history.js +85 -0
- package/dist/lib/runtime/responses-websocket.d.ts +31 -0
- package/dist/lib/runtime/responses-websocket.d.ts.map +1 -0
- package/dist/lib/runtime/responses-websocket.js +636 -0
- package/dist/lib/runtime/resume-picker.d.ts +41 -0
- package/dist/lib/runtime/resume-picker.d.ts.map +1 -0
- package/dist/lib/runtime/resume-picker.js +169 -0
- package/dist/lib/runtime/rotation-account-selection.d.ts +6 -0
- package/dist/lib/runtime/rotation-account-selection.d.ts.map +1 -1
- package/dist/lib/runtime/rotation-account-selection.js +63 -0
- package/dist/lib/runtime/rotation-proxy-state.d.ts +33 -0
- package/dist/lib/runtime/rotation-proxy-state.d.ts.map +1 -1
- package/dist/lib/runtime/rotation-server-types.d.ts +18 -0
- package/dist/lib/runtime/rotation-server-types.d.ts.map +1 -1
- package/dist/lib/runtime/runtime-capability-failures.d.ts +14 -0
- package/dist/lib/runtime/runtime-capability-failures.d.ts.map +1 -0
- package/dist/lib/runtime/runtime-capability-failures.js +76 -0
- package/dist/lib/runtime/runtime-observability.d.ts +7 -0
- package/dist/lib/runtime/runtime-observability.d.ts.map +1 -1
- package/dist/lib/runtime/runtime-observability.js +42 -2
- package/dist/lib/runtime/subscription-first-use.d.ts +10 -0
- package/dist/lib/runtime/subscription-first-use.d.ts.map +1 -0
- package/dist/lib/runtime/subscription-first-use.js +64 -0
- package/dist/lib/runtime/subscription-quota-event.d.ts +6 -0
- package/dist/lib/runtime/subscription-quota-event.d.ts.map +1 -0
- package/dist/lib/runtime/subscription-quota-event.js +31 -0
- package/dist/lib/runtime/subscription-quota-order.d.ts +17 -0
- package/dist/lib/runtime/subscription-quota-order.d.ts.map +1 -0
- package/dist/lib/runtime/subscription-quota-order.js +31 -0
- package/dist/lib/runtime/workspace-model-scopes.d.ts +15 -0
- package/dist/lib/runtime/workspace-model-scopes.d.ts.map +1 -0
- package/dist/lib/runtime/workspace-model-scopes.js +34 -0
- package/dist/lib/runtime-constants.d.ts +3 -0
- package/dist/lib/runtime-constants.d.ts.map +1 -1
- package/dist/lib/runtime-constants.js +5 -0
- package/dist/lib/runtime-paths.d.ts.map +1 -1
- package/dist/lib/runtime-paths.js +4 -1
- package/dist/lib/runtime-rotation-proxy.d.ts.map +1 -1
- package/dist/lib/runtime-rotation-proxy.js +852 -42
- package/dist/lib/schemas.d.ts +20 -0
- package/dist/lib/schemas.d.ts.map +1 -1
- package/dist/lib/schemas.js +3 -0
- package/dist/lib/storage/credential-sidecars.d.ts +13 -0
- package/dist/lib/storage/credential-sidecars.d.ts.map +1 -0
- package/dist/lib/storage/credential-sidecars.js +52 -0
- package/dist/lib/storage/file-lock.d.ts +9 -0
- package/dist/lib/storage/file-lock.d.ts.map +1 -0
- package/dist/lib/storage/file-lock.js +186 -0
- package/dist/lib/storage/flagged-storage.d.ts.map +1 -1
- package/dist/lib/storage/flagged-storage.js +12 -0
- package/dist/lib/storage/path-state.d.ts +2 -0
- package/dist/lib/storage/path-state.d.ts.map +1 -1
- package/dist/lib/storage/path-state.js +9 -0
- package/dist/lib/storage/paths.js +4 -4
- package/dist/lib/storage/pending-auth.d.ts +18 -0
- package/dist/lib/storage/pending-auth.d.ts.map +1 -0
- package/dist/lib/storage/pending-auth.js +155 -0
- package/dist/lib/storage/public-types.d.ts +13 -0
- package/dist/lib/storage/public-types.d.ts.map +1 -1
- package/dist/lib/storage/record-identity.d.ts +16 -0
- package/dist/lib/storage/record-identity.d.ts.map +1 -0
- package/dist/lib/storage/record-identity.js +16 -0
- package/dist/lib/storage/snapshot-merge.d.ts +16 -0
- package/dist/lib/storage/snapshot-merge.d.ts.map +1 -0
- package/dist/lib/storage/snapshot-merge.js +206 -0
- package/dist/lib/storage/transactions.d.ts.map +1 -1
- package/dist/lib/storage/transactions.js +5 -4
- package/dist/lib/storage.d.ts +6 -0
- package/dist/lib/storage.d.ts.map +1 -1
- package/dist/lib/storage.js +77 -7
- package/dist/lib/ui/auth-menu-builder.d.ts +2 -0
- package/dist/lib/ui/auth-menu-builder.d.ts.map +1 -1
- package/dist/lib/ui/auth-menu-builder.js +1 -0
- package/dist/lib/ui/auth-menu.d.ts.map +1 -1
- package/dist/lib/ui/auth-menu.js +1 -0
- package/dist/lib/ui/check-progress.d.ts +8 -0
- package/dist/lib/ui/check-progress.d.ts.map +1 -0
- package/dist/lib/ui/check-progress.js +30 -0
- package/dist/lib/ui/format.d.ts +3 -1
- package/dist/lib/ui/format.d.ts.map +1 -1
- package/dist/lib/ui/format.js +8 -0
- package/dist/lib/ui/ui-copy.d.ts +2 -2
- package/dist/lib/ui/ui-copy.js +2 -2
- package/dist/lib/usage/pricing.js +2 -2
- package/dist/lib/usage/usage-extraction.d.ts +3 -1
- package/dist/lib/usage/usage-extraction.d.ts.map +1 -1
- package/dist/lib/usage/usage-extraction.js +46 -9
- 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/node_modules/@codex-ai/sdk/dist/index.d.ts +4 -4
- package/node_modules/@codex-ai/sdk/dist/index.js +2 -2
- package/node_modules/@codex-ai/sdk/package.json +8 -8
- package/package.json +200 -197
- package/scripts/codex-app-launcher.js +653 -653
- package/scripts/codex-app-router.js +373 -366
- package/scripts/codex-bin-resolver.js +313 -281
- package/scripts/codex-multi-auth.js +59 -59
- package/scripts/codex-routing.js +62 -61
- package/scripts/codex.js +6642 -6564
- package/scripts/install-codex-auth-utils.js +213 -213
- package/scripts/mcodex.js +367 -367
- package/scripts/postinstall.js +114 -114
- package/scripts/preuninstall.js +265 -265
- 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/package.json
CHANGED
|
@@ -1,197 +1,200 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "codex-multi-auth",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "Codex CLI multi-account OAuth manager with account switching, health checks, runtime rotation, diagnostics, and recovery tools for @openai/codex",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.js",
|
|
11
|
-
"default": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./auth": {
|
|
14
|
-
"types": "./dist/lib/auth/index.d.ts",
|
|
15
|
-
"import": "./dist/lib/auth/index.js",
|
|
16
|
-
"default": "./dist/lib/auth/index.js"
|
|
17
|
-
},
|
|
18
|
-
"./storage": {
|
|
19
|
-
"types": "./dist/lib/storage.d.ts",
|
|
20
|
-
"import": "./dist/lib/storage.js",
|
|
21
|
-
"default": "./dist/lib/storage.js"
|
|
22
|
-
},
|
|
23
|
-
"./config": {
|
|
24
|
-
"types": "./dist/lib/config.d.ts",
|
|
25
|
-
"import": "./dist/lib/config.js",
|
|
26
|
-
"default": "./dist/lib/config.js"
|
|
27
|
-
},
|
|
28
|
-
"./request": {
|
|
29
|
-
"types": "./dist/lib/request/index.d.ts",
|
|
30
|
-
"import": "./dist/lib/request/index.js",
|
|
31
|
-
"default": "./dist/lib/request/index.js"
|
|
32
|
-
},
|
|
33
|
-
"./cli": {
|
|
34
|
-
"types": "./dist/lib/codex-cli/index.d.ts",
|
|
35
|
-
"import": "./dist/lib/codex-cli/index.js",
|
|
36
|
-
"default": "./dist/lib/codex-cli/index.js"
|
|
37
|
-
},
|
|
38
|
-
"./package.json": "./package.json"
|
|
39
|
-
},
|
|
40
|
-
"type": "module",
|
|
41
|
-
"license": "MIT",
|
|
42
|
-
"author": "ndycode",
|
|
43
|
-
"repository": {
|
|
44
|
-
"type": "git",
|
|
45
|
-
"url": "git+https://github.com/ndycode/codex-multi-auth.git"
|
|
46
|
-
},
|
|
47
|
-
"keywords": [
|
|
48
|
-
"openai",
|
|
49
|
-
"codex",
|
|
50
|
-
"codex-cli",
|
|
51
|
-
"codex-auth",
|
|
52
|
-
"codex-multi-account",
|
|
53
|
-
"chatgpt",
|
|
54
|
-
"oauth",
|
|
55
|
-
"oauth2",
|
|
56
|
-
"pkce",
|
|
57
|
-
"multi-account",
|
|
58
|
-
"account-switching",
|
|
59
|
-
"oauth-manager",
|
|
60
|
-
"runtime-rotation",
|
|
61
|
-
"responses-api",
|
|
62
|
-
"local-proxy",
|
|
63
|
-
"quota-management",
|
|
64
|
-
"diagnostics",
|
|
65
|
-
"fault-tolerance",
|
|
66
|
-
"terminal-ui",
|
|
67
|
-
"cli-tool",
|
|
68
|
-
"typescript",
|
|
69
|
-
"nodejs",
|
|
70
|
-
"developer-tools",
|
|
71
|
-
"authentication",
|
|
72
|
-
"account-health",
|
|
73
|
-
"recovery-tools",
|
|
74
|
-
"project-scoped-storage"
|
|
75
|
-
],
|
|
76
|
-
"homepage": "https://github.com/ndycode/codex-multi-auth#readme",
|
|
77
|
-
"bugs": {
|
|
78
|
-
"url": "https://github.com/ndycode/codex-multi-auth/issues"
|
|
79
|
-
},
|
|
80
|
-
"scripts": {
|
|
81
|
-
"build": "tsc && node scripts/copy-oauth-success.js",
|
|
82
|
-
"generate:schema": "npm run build && node scripts/generate-config-schema.mjs",
|
|
83
|
-
"typecheck": "tsc --noEmit",
|
|
84
|
-
"typecheck:scripts": "npm run build && tsc -p tsconfig.scripts.json",
|
|
85
|
-
"lint": "npm run lint:ts && npm run lint:scripts",
|
|
86
|
-
"lint:ts": "eslint . --ext .ts",
|
|
87
|
-
"lint:scripts": "eslint scripts --ext .js,.mjs",
|
|
88
|
-
"lint:fix": "npm run lint:ts:fix && npm run lint:scripts:fix",
|
|
89
|
-
"lint:ts:fix": "eslint . --ext .ts --fix",
|
|
90
|
-
"lint:scripts:fix": "eslint scripts --ext .js,.mjs --fix",
|
|
91
|
-
"test": "vitest run --maxWorkers=1",
|
|
92
|
-
"test:watch": "vitest",
|
|
93
|
-
"test:ui": "vitest --ui",
|
|
94
|
-
"test:model-matrix": "node scripts/test-model-matrix.js",
|
|
95
|
-
"test:model-matrix:smoke": "node scripts/test-model-matrix.js --smoke",
|
|
96
|
-
"test:model-matrix:report": "node scripts/test-model-matrix.js --smoke --report-json=.tmp/model-matrix-report.json",
|
|
97
|
-
"clean:repo": "node scripts/repo-hygiene.js clean --mode aggressive",
|
|
98
|
-
"clean:repo:check": "node scripts/repo-hygiene.js check",
|
|
99
|
-
"pack:check": "npm run build && node scripts/check-pack-budget.mjs",
|
|
100
|
-
"bench:edit-formats": "node scripts/benchmark-edit-formats.mjs --preset=codex-core",
|
|
101
|
-
"bench:edit-formats:smoke": "node scripts/benchmark-edit-formats.mjs --smoke --preset=codex-core",
|
|
102
|
-
"bench:edit-formats:render": "node scripts/benchmark-render-dashboard.mjs",
|
|
103
|
-
"bench:runtime-path": "npm run build && node scripts/benchmark-runtime-path.mjs",
|
|
104
|
-
"bench:runtime-path:quick": "node scripts/benchmark-runtime-path.mjs",
|
|
105
|
-
"test:coverage": "vitest run --coverage --maxWorkers=1",
|
|
106
|
-
"coverage": "npm run build && vitest run --coverage --maxWorkers=1",
|
|
107
|
-
"audit:prod": "npm audit --omit=dev --audit-level=high",
|
|
108
|
-
"audit:all": "npm audit --audit-level=high",
|
|
109
|
-
"audit:dev:allowlist": "node scripts/audit-dev-allowlist.js",
|
|
110
|
-
"audit:ci": "npm run audit:prod && npm run audit:dev:allowlist",
|
|
111
|
-
"vendor:verify": "node scripts/verify-vendor-provenance.mjs",
|
|
112
|
-
"vendor:update-manifest": "node scripts/update-vendor-provenance.mjs",
|
|
113
|
-
"postinstall": "node scripts/postinstall.js",
|
|
114
|
-
"prepublishOnly": "npm run build",
|
|
115
|
-
"prepare": "husky"
|
|
116
|
-
},
|
|
117
|
-
"bin": {
|
|
118
|
-
"mcodex": "scripts/mcodex.js",
|
|
119
|
-
"codex-multi-auth-codex": "scripts/codex.js",
|
|
120
|
-
"codex-multi-auth-app-launcher": "scripts/codex-app-launcher.js",
|
|
121
|
-
"codex-multi-auth": "scripts/codex-multi-auth.js"
|
|
122
|
-
},
|
|
123
|
-
"files": [
|
|
124
|
-
".codex-plugin/plugin.json",
|
|
125
|
-
"dist/",
|
|
126
|
-
"assets/",
|
|
127
|
-
"config/",
|
|
128
|
-
"scripts/codex.js",
|
|
129
|
-
"scripts/codex-app-launcher.js",
|
|
130
|
-
"scripts/codex-app-router.js",
|
|
131
|
-
"scripts/codex-bin-resolver.js",
|
|
132
|
-
"scripts/codex-multi-auth.js",
|
|
133
|
-
"scripts/codex-routing.js",
|
|
134
|
-
"scripts/mcodex.js",
|
|
135
|
-
"scripts/install-codex-auth-utils.js",
|
|
136
|
-
"scripts/postinstall.js",
|
|
137
|
-
"scripts/preuninstall.js",
|
|
138
|
-
"vendor/codex-ai-plugin/",
|
|
139
|
-
"vendor/codex-ai-sdk/",
|
|
140
|
-
"README.md",
|
|
141
|
-
"LICENSE"
|
|
142
|
-
],
|
|
143
|
-
"bundleDependencies": [
|
|
144
|
-
"@codex-ai/plugin",
|
|
145
|
-
"@codex-ai/sdk"
|
|
146
|
-
],
|
|
147
|
-
"lint-staged": {
|
|
148
|
-
"*.ts": [
|
|
149
|
-
"eslint --max-warnings=0 --fix --no-warn-ignored"
|
|
150
|
-
],
|
|
151
|
-
"scripts/**/*.{js,mjs}": [
|
|
152
|
-
"eslint --max-warnings=0 --fix --no-warn-ignored"
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
"engines": {
|
|
156
|
-
"node": ">=18.17.0"
|
|
157
|
-
},
|
|
158
|
-
"devDependencies": {
|
|
159
|
-
"@types/node": "^20.19.42",
|
|
160
|
-
"@
|
|
161
|
-
"@typescript-eslint/
|
|
162
|
-
"@
|
|
163
|
-
"@vitest/
|
|
164
|
-
"
|
|
165
|
-
"eslint
|
|
166
|
-
"eslint-
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"typescript
|
|
172
|
-
"
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
"@codex-ai/
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "codex-multi-auth",
|
|
3
|
+
"version": "2.17.2",
|
|
4
|
+
"description": "Codex CLI multi-account OAuth manager with account switching, health checks, runtime rotation, diagnostics, and recovery tools for @openai/codex",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./auth": {
|
|
14
|
+
"types": "./dist/lib/auth/index.d.ts",
|
|
15
|
+
"import": "./dist/lib/auth/index.js",
|
|
16
|
+
"default": "./dist/lib/auth/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./storage": {
|
|
19
|
+
"types": "./dist/lib/storage.d.ts",
|
|
20
|
+
"import": "./dist/lib/storage.js",
|
|
21
|
+
"default": "./dist/lib/storage.js"
|
|
22
|
+
},
|
|
23
|
+
"./config": {
|
|
24
|
+
"types": "./dist/lib/config.d.ts",
|
|
25
|
+
"import": "./dist/lib/config.js",
|
|
26
|
+
"default": "./dist/lib/config.js"
|
|
27
|
+
},
|
|
28
|
+
"./request": {
|
|
29
|
+
"types": "./dist/lib/request/index.d.ts",
|
|
30
|
+
"import": "./dist/lib/request/index.js",
|
|
31
|
+
"default": "./dist/lib/request/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./cli": {
|
|
34
|
+
"types": "./dist/lib/codex-cli/index.d.ts",
|
|
35
|
+
"import": "./dist/lib/codex-cli/index.js",
|
|
36
|
+
"default": "./dist/lib/codex-cli/index.js"
|
|
37
|
+
},
|
|
38
|
+
"./package.json": "./package.json"
|
|
39
|
+
},
|
|
40
|
+
"type": "module",
|
|
41
|
+
"license": "MIT",
|
|
42
|
+
"author": "ndycode",
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/ndycode/codex-multi-auth.git"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"openai",
|
|
49
|
+
"codex",
|
|
50
|
+
"codex-cli",
|
|
51
|
+
"codex-auth",
|
|
52
|
+
"codex-multi-account",
|
|
53
|
+
"chatgpt",
|
|
54
|
+
"oauth",
|
|
55
|
+
"oauth2",
|
|
56
|
+
"pkce",
|
|
57
|
+
"multi-account",
|
|
58
|
+
"account-switching",
|
|
59
|
+
"oauth-manager",
|
|
60
|
+
"runtime-rotation",
|
|
61
|
+
"responses-api",
|
|
62
|
+
"local-proxy",
|
|
63
|
+
"quota-management",
|
|
64
|
+
"diagnostics",
|
|
65
|
+
"fault-tolerance",
|
|
66
|
+
"terminal-ui",
|
|
67
|
+
"cli-tool",
|
|
68
|
+
"typescript",
|
|
69
|
+
"nodejs",
|
|
70
|
+
"developer-tools",
|
|
71
|
+
"authentication",
|
|
72
|
+
"account-health",
|
|
73
|
+
"recovery-tools",
|
|
74
|
+
"project-scoped-storage"
|
|
75
|
+
],
|
|
76
|
+
"homepage": "https://github.com/ndycode/codex-multi-auth#readme",
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/ndycode/codex-multi-auth/issues"
|
|
79
|
+
},
|
|
80
|
+
"scripts": {
|
|
81
|
+
"build": "tsc && node scripts/copy-oauth-success.js",
|
|
82
|
+
"generate:schema": "npm run build && node scripts/generate-config-schema.mjs",
|
|
83
|
+
"typecheck": "tsc --noEmit",
|
|
84
|
+
"typecheck:scripts": "npm run build && tsc -p tsconfig.scripts.json",
|
|
85
|
+
"lint": "npm run lint:ts && npm run lint:scripts",
|
|
86
|
+
"lint:ts": "eslint . --ext .ts",
|
|
87
|
+
"lint:scripts": "eslint scripts --ext .js,.mjs",
|
|
88
|
+
"lint:fix": "npm run lint:ts:fix && npm run lint:scripts:fix",
|
|
89
|
+
"lint:ts:fix": "eslint . --ext .ts --fix",
|
|
90
|
+
"lint:scripts:fix": "eslint scripts --ext .js,.mjs --fix",
|
|
91
|
+
"test": "vitest run --maxWorkers=1",
|
|
92
|
+
"test:watch": "vitest",
|
|
93
|
+
"test:ui": "vitest --ui",
|
|
94
|
+
"test:model-matrix": "node scripts/test-model-matrix.js",
|
|
95
|
+
"test:model-matrix:smoke": "node scripts/test-model-matrix.js --smoke",
|
|
96
|
+
"test:model-matrix:report": "node scripts/test-model-matrix.js --smoke --report-json=.tmp/model-matrix-report.json",
|
|
97
|
+
"clean:repo": "node scripts/repo-hygiene.js clean --mode aggressive",
|
|
98
|
+
"clean:repo:check": "node scripts/repo-hygiene.js check",
|
|
99
|
+
"pack:check": "npm run build && node scripts/check-pack-budget.mjs",
|
|
100
|
+
"bench:edit-formats": "node scripts/benchmark-edit-formats.mjs --preset=codex-core",
|
|
101
|
+
"bench:edit-formats:smoke": "node scripts/benchmark-edit-formats.mjs --smoke --preset=codex-core",
|
|
102
|
+
"bench:edit-formats:render": "node scripts/benchmark-render-dashboard.mjs",
|
|
103
|
+
"bench:runtime-path": "npm run build && node scripts/benchmark-runtime-path.mjs",
|
|
104
|
+
"bench:runtime-path:quick": "node scripts/benchmark-runtime-path.mjs",
|
|
105
|
+
"test:coverage": "vitest run --coverage --maxWorkers=1",
|
|
106
|
+
"coverage": "npm run build && vitest run --coverage --maxWorkers=1",
|
|
107
|
+
"audit:prod": "npm audit --omit=dev --audit-level=high",
|
|
108
|
+
"audit:all": "npm audit --audit-level=high",
|
|
109
|
+
"audit:dev:allowlist": "node scripts/audit-dev-allowlist.js",
|
|
110
|
+
"audit:ci": "npm run audit:prod && npm run audit:dev:allowlist",
|
|
111
|
+
"vendor:verify": "node scripts/verify-vendor-provenance.mjs",
|
|
112
|
+
"vendor:update-manifest": "node scripts/update-vendor-provenance.mjs",
|
|
113
|
+
"postinstall": "node scripts/postinstall.js",
|
|
114
|
+
"prepublishOnly": "npm run build",
|
|
115
|
+
"prepare": "husky"
|
|
116
|
+
},
|
|
117
|
+
"bin": {
|
|
118
|
+
"mcodex": "scripts/mcodex.js",
|
|
119
|
+
"codex-multi-auth-codex": "scripts/codex.js",
|
|
120
|
+
"codex-multi-auth-app-launcher": "scripts/codex-app-launcher.js",
|
|
121
|
+
"codex-multi-auth": "scripts/codex-multi-auth.js"
|
|
122
|
+
},
|
|
123
|
+
"files": [
|
|
124
|
+
".codex-plugin/plugin.json",
|
|
125
|
+
"dist/",
|
|
126
|
+
"assets/",
|
|
127
|
+
"config/",
|
|
128
|
+
"scripts/codex.js",
|
|
129
|
+
"scripts/codex-app-launcher.js",
|
|
130
|
+
"scripts/codex-app-router.js",
|
|
131
|
+
"scripts/codex-bin-resolver.js",
|
|
132
|
+
"scripts/codex-multi-auth.js",
|
|
133
|
+
"scripts/codex-routing.js",
|
|
134
|
+
"scripts/mcodex.js",
|
|
135
|
+
"scripts/install-codex-auth-utils.js",
|
|
136
|
+
"scripts/postinstall.js",
|
|
137
|
+
"scripts/preuninstall.js",
|
|
138
|
+
"vendor/codex-ai-plugin/",
|
|
139
|
+
"vendor/codex-ai-sdk/",
|
|
140
|
+
"README.md",
|
|
141
|
+
"LICENSE"
|
|
142
|
+
],
|
|
143
|
+
"bundleDependencies": [
|
|
144
|
+
"@codex-ai/plugin",
|
|
145
|
+
"@codex-ai/sdk"
|
|
146
|
+
],
|
|
147
|
+
"lint-staged": {
|
|
148
|
+
"*.ts": [
|
|
149
|
+
"eslint --max-warnings=0 --fix --no-warn-ignored"
|
|
150
|
+
],
|
|
151
|
+
"scripts/**/*.{js,mjs}": [
|
|
152
|
+
"eslint --max-warnings=0 --fix --no-warn-ignored"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"engines": {
|
|
156
|
+
"node": ">=18.17.0"
|
|
157
|
+
},
|
|
158
|
+
"devDependencies": {
|
|
159
|
+
"@types/node": "^20.19.42",
|
|
160
|
+
"@types/ws": "8.18.1",
|
|
161
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
162
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
163
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
164
|
+
"@vitest/ui": "^4.1.8",
|
|
165
|
+
"eslint": "^10.0.0",
|
|
166
|
+
"eslint-import-resolver-typescript": "^4.4.5",
|
|
167
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
168
|
+
"fast-check": "^4.5.3",
|
|
169
|
+
"husky": "^9.1.7",
|
|
170
|
+
"lint-staged": "^16.2.7",
|
|
171
|
+
"typescript": "^5.9.3",
|
|
172
|
+
"typescript-language-server": "^5.1.3",
|
|
173
|
+
"vitest": "^4.1.8"
|
|
174
|
+
},
|
|
175
|
+
"dependencies": {
|
|
176
|
+
"@codex-ai/plugin": "file:vendor/codex-ai-plugin",
|
|
177
|
+
"@codex-ai/sdk": "file:vendor/codex-ai-sdk",
|
|
178
|
+
"hono": "4.13.9",
|
|
179
|
+
"undici": "6.28.0",
|
|
180
|
+
"ws": "8.21.3",
|
|
181
|
+
"zod": "4.4.3"
|
|
182
|
+
},
|
|
183
|
+
"overrides": {
|
|
184
|
+
"hono": "4.13.9",
|
|
185
|
+
"flatted": "3.4.2",
|
|
186
|
+
"minimatch": "10.2.4",
|
|
187
|
+
"picomatch": "4.0.4",
|
|
188
|
+
"rollup": "4.59.0",
|
|
189
|
+
"vite": "^7.3.2",
|
|
190
|
+
"micromatch": {
|
|
191
|
+
"picomatch": "2.3.2"
|
|
192
|
+
},
|
|
193
|
+
"@typescript-eslint/typescript-estree": {
|
|
194
|
+
"minimatch": "9.0.9"
|
|
195
|
+
},
|
|
196
|
+
"brace-expansion": "5.0.9",
|
|
197
|
+
"postcss": "8.5.25",
|
|
198
|
+
"nanoid": "3.3.18"
|
|
199
|
+
}
|
|
200
|
+
}
|