codex-multi-auth 2.17.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.
Files changed (75) hide show
  1. package/.codex-plugin/plugin.json +9 -9
  2. package/LICENSE +21 -21
  3. package/README.md +487 -484
  4. package/assets/codex-multi-auth-icon.svg +39 -39
  5. package/assets/readme-hero.svg +31 -31
  6. package/config/README.md +31 -31
  7. package/config/codex-legacy.json +1221 -1221
  8. package/config/codex-modern.json +423 -423
  9. package/config/minimal-codex.json +15 -15
  10. package/dist/lib/accounts.d.ts +1 -7
  11. package/dist/lib/accounts.d.ts.map +1 -1
  12. package/dist/lib/accounts.js +3 -14
  13. package/dist/lib/codex-manager/commands/forecast.d.ts +1 -1
  14. package/dist/lib/codex-manager/commands/forecast.d.ts.map +1 -1
  15. package/dist/lib/codex-manager/commands/forecast.js +2 -2
  16. package/dist/lib/codex-manager/health-check.js +1 -1
  17. package/dist/lib/codex-manager/login-menu-data.d.ts.map +1 -1
  18. package/dist/lib/codex-manager/login-menu-data.js +7 -3
  19. package/dist/lib/codex-manager/quota-cache-helpers.d.ts +7 -1
  20. package/dist/lib/codex-manager/quota-cache-helpers.d.ts.map +1 -1
  21. package/dist/lib/codex-manager/quota-cache-helpers.js +34 -19
  22. package/dist/lib/codex-manager/repair-commands.js +1 -1
  23. package/dist/lib/context-budget-response.js +8 -8
  24. package/dist/lib/context-overflow.js +10 -10
  25. package/dist/lib/oauth-success.html +125 -125
  26. package/dist/lib/prompts/codex-host-bridge.js +138 -138
  27. package/dist/lib/prompts/codex.js +79 -79
  28. package/dist/lib/quota-cache.d.ts +7 -3
  29. package/dist/lib/quota-cache.d.ts.map +1 -1
  30. package/dist/lib/quota-cache.js +91 -59
  31. package/dist/lib/quota-readiness.d.ts +7 -2
  32. package/dist/lib/quota-readiness.d.ts.map +1 -1
  33. package/dist/lib/quota-readiness.js +25 -4
  34. package/dist/lib/runtime/app-bind.d.ts.map +1 -1
  35. package/dist/lib/runtime/app-bind.js +10 -2
  36. package/dist/lib/runtime/automatic-account-checks.d.ts +5 -1
  37. package/dist/lib/runtime/automatic-account-checks.d.ts.map +1 -1
  38. package/dist/lib/runtime/automatic-account-checks.js +29 -2
  39. package/dist/lib/runtime/automatic-subscription-checks.d.ts +1 -1
  40. package/dist/lib/runtime/automatic-subscription-checks.d.ts.map +1 -1
  41. package/dist/lib/runtime/automatic-subscription-checks.js +13 -16
  42. package/dist/lib/runtime-rotation-proxy.js +3 -3
  43. package/dist/lib/storage/pending-auth.d.ts +1 -0
  44. package/dist/lib/storage/pending-auth.d.ts.map +1 -1
  45. package/dist/lib/storage/pending-auth.js +4 -2
  46. package/dist/lib/storage/record-identity.d.ts +16 -0
  47. package/dist/lib/storage/record-identity.d.ts.map +1 -0
  48. package/dist/lib/storage/record-identity.js +16 -0
  49. package/node_modules/@codex-ai/plugin/dist/index.d.ts +2 -2
  50. package/node_modules/@codex-ai/plugin/dist/index.js +2 -2
  51. package/node_modules/@codex-ai/plugin/dist/tool.d.ts +42 -42
  52. package/node_modules/@codex-ai/plugin/dist/tool.js +29 -29
  53. package/node_modules/@codex-ai/plugin/package.json +9 -9
  54. package/node_modules/@codex-ai/sdk/dist/index.d.ts +4 -4
  55. package/node_modules/@codex-ai/sdk/dist/index.js +2 -2
  56. package/node_modules/@codex-ai/sdk/package.json +8 -8
  57. package/package.json +200 -200
  58. package/scripts/codex-app-launcher.js +653 -653
  59. package/scripts/codex-app-router.js +373 -373
  60. package/scripts/codex-bin-resolver.js +313 -313
  61. package/scripts/codex-multi-auth.js +59 -59
  62. package/scripts/codex-routing.js +62 -62
  63. package/scripts/codex.js +6642 -6642
  64. package/scripts/install-codex-auth-utils.js +213 -213
  65. package/scripts/mcodex.js +367 -367
  66. package/scripts/postinstall.js +114 -114
  67. package/scripts/preuninstall.js +265 -265
  68. package/vendor/codex-ai-plugin/dist/index.d.ts +2 -2
  69. package/vendor/codex-ai-plugin/dist/index.js +2 -2
  70. package/vendor/codex-ai-plugin/dist/tool.d.ts +42 -42
  71. package/vendor/codex-ai-plugin/dist/tool.js +29 -29
  72. package/vendor/codex-ai-plugin/package.json +9 -9
  73. package/vendor/codex-ai-sdk/dist/index.d.ts +4 -4
  74. package/vendor/codex-ai-sdk/dist/index.js +2 -2
  75. package/vendor/codex-ai-sdk/package.json +8 -8
package/package.json CHANGED
@@ -1,200 +1,200 @@
1
- {
2
- "name": "codex-multi-auth",
3
- "version": "2.17.0",
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
- }
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
+ }