codex-multi-auth 2.1.12 → 2.1.13-beta.1

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 (62) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +412 -411
  3. package/assets/codex-multi-auth-icon.svg +39 -39
  4. package/assets/readme-hero.svg +31 -31
  5. package/config/README.md +29 -29
  6. package/config/codex-legacy.json +571 -571
  7. package/config/codex-modern.json +258 -258
  8. package/config/minimal-codex.json +15 -15
  9. package/config/schema/config.schema.json +20 -20
  10. package/dist/lib/accounts.d.ts +13 -0
  11. package/dist/lib/accounts.d.ts.map +1 -1
  12. package/dist/lib/accounts.js +58 -14
  13. package/dist/lib/accounts.js.map +1 -1
  14. package/dist/lib/codex-manager/commands/status.d.ts.map +1 -1
  15. package/dist/lib/codex-manager/commands/status.js +9 -1
  16. package/dist/lib/codex-manager/commands/status.js.map +1 -1
  17. package/dist/lib/codex-manager/commands/workspace.d.ts +19 -0
  18. package/dist/lib/codex-manager/commands/workspace.d.ts.map +1 -0
  19. package/dist/lib/codex-manager/commands/workspace.js +85 -0
  20. package/dist/lib/codex-manager/commands/workspace.js.map +1 -0
  21. package/dist/lib/codex-manager/help.d.ts +1 -0
  22. package/dist/lib/codex-manager/help.d.ts.map +1 -1
  23. package/dist/lib/codex-manager/help.js +27 -2
  24. package/dist/lib/codex-manager/help.js.map +1 -1
  25. package/dist/lib/codex-manager.d.ts.map +1 -1
  26. package/dist/lib/codex-manager.js +35 -1
  27. package/dist/lib/codex-manager.js.map +1 -1
  28. package/dist/lib/context-overflow.js +10 -10
  29. package/dist/lib/oauth-success.html +125 -125
  30. package/dist/lib/prompts/codex-host-bridge.js +138 -138
  31. package/dist/lib/prompts/codex.js +79 -79
  32. package/dist/lib/runtime-rotation-proxy.d.ts +15 -0
  33. package/dist/lib/runtime-rotation-proxy.d.ts.map +1 -1
  34. package/dist/lib/runtime-rotation-proxy.js +28 -7
  35. package/dist/lib/runtime-rotation-proxy.js.map +1 -1
  36. package/dist/lib/schemas.d.ts +54 -0
  37. package/dist/lib/schemas.d.ts.map +1 -1
  38. package/dist/lib/schemas.js +18 -0
  39. package/dist/lib/schemas.js.map +1 -1
  40. package/node_modules/@codex-ai/plugin/dist/index.d.ts +2 -2
  41. package/node_modules/@codex-ai/plugin/dist/index.js +2 -2
  42. package/node_modules/@codex-ai/plugin/dist/tool.d.ts +42 -42
  43. package/node_modules/@codex-ai/plugin/dist/tool.js +29 -29
  44. package/node_modules/@codex-ai/plugin/package.json +9 -9
  45. package/package.json +193 -193
  46. package/scripts/codex-app-launcher.js +653 -653
  47. package/scripts/codex-app-router.js +322 -322
  48. package/scripts/codex-bin-resolver.js +254 -254
  49. package/scripts/codex-multi-auth.js +59 -59
  50. package/scripts/codex-routing.js +56 -56
  51. package/scripts/codex.js +4275 -4275
  52. package/scripts/install-codex-auth-utils.js +206 -206
  53. package/scripts/postinstall.js +343 -343
  54. package/scripts/preuninstall.js +254 -254
  55. package/vendor/codex-ai-plugin/dist/index.d.ts +2 -2
  56. package/vendor/codex-ai-plugin/dist/index.js +2 -2
  57. package/vendor/codex-ai-plugin/dist/tool.d.ts +42 -42
  58. package/vendor/codex-ai-plugin/dist/tool.js +29 -29
  59. package/vendor/codex-ai-plugin/package.json +9 -9
  60. package/vendor/codex-ai-sdk/dist/index.d.ts +4 -4
  61. package/vendor/codex-ai-sdk/dist/index.js +2 -2
  62. package/vendor/codex-ai-sdk/package.json +8 -8
package/package.json CHANGED
@@ -1,193 +1,193 @@
1
- {
2
- "name": "codex-multi-auth",
3
- "version": "2.1.12",
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
- "typecheck": "tsc --noEmit",
83
- "typecheck:scripts": "tsc -p tsconfig.scripts.json",
84
- "lint": "npm run lint:ts && npm run lint:scripts",
85
- "lint:ts": "eslint . --ext .ts",
86
- "lint:scripts": "eslint scripts --ext .js,.mjs",
87
- "lint:fix": "npm run lint:ts:fix && npm run lint:scripts:fix",
88
- "lint:ts:fix": "eslint . --ext .ts --fix",
89
- "lint:scripts:fix": "eslint scripts --ext .js,.mjs --fix",
90
- "test": "vitest run --maxWorkers=1",
91
- "test:watch": "vitest",
92
- "test:ui": "vitest --ui",
93
- "test:model-matrix": "node scripts/test-model-matrix.js",
94
- "test:model-matrix:smoke": "node scripts/test-model-matrix.js --smoke",
95
- "test:model-matrix:report": "node scripts/test-model-matrix.js --smoke --report-json=.tmp/model-matrix-report.json",
96
- "clean:repo": "node scripts/repo-hygiene.js clean --mode aggressive",
97
- "clean:repo:check": "node scripts/repo-hygiene.js check",
98
- "pack:check": "npm run build && node scripts/check-pack-budget.mjs",
99
- "bench:edit-formats": "node scripts/benchmark-edit-formats.mjs --preset=codex-core",
100
- "bench:edit-formats:smoke": "node scripts/benchmark-edit-formats.mjs --smoke --preset=codex-core",
101
- "bench:edit-formats:render": "node scripts/benchmark-render-dashboard.mjs",
102
- "bench:runtime-path": "npm run build && node scripts/benchmark-runtime-path.mjs",
103
- "bench:runtime-path:quick": "node scripts/benchmark-runtime-path.mjs",
104
- "test:coverage": "vitest run --coverage --maxWorkers=1",
105
- "coverage": "npm run build && vitest run --coverage --maxWorkers=1",
106
- "audit:prod": "npm audit --omit=dev --audit-level=high",
107
- "audit:all": "npm audit --audit-level=high",
108
- "audit:dev:allowlist": "node scripts/audit-dev-allowlist.js",
109
- "audit:ci": "npm run audit:prod && npm run audit:dev:allowlist",
110
- "vendor:verify": "node scripts/verify-vendor-provenance.mjs",
111
- "vendor:update-manifest": "node scripts/update-vendor-provenance.mjs",
112
- "postinstall": "node scripts/postinstall.js",
113
- "prepublishOnly": "npm run build",
114
- "prepare": "husky"
115
- },
116
- "bin": {
117
- "codex-multi-auth-codex": "scripts/codex.js",
118
- "codex-multi-auth-app-launcher": "scripts/codex-app-launcher.js",
119
- "codex-multi-auth": "scripts/codex-multi-auth.js"
120
- },
121
- "files": [
122
- "dist/",
123
- "assets/",
124
- "config/",
125
- "scripts/codex.js",
126
- "scripts/codex-app-launcher.js",
127
- "scripts/codex-app-router.js",
128
- "scripts/codex-bin-resolver.js",
129
- "scripts/codex-multi-auth.js",
130
- "scripts/codex-routing.js",
131
- "scripts/install-codex-auth-utils.js",
132
- "scripts/postinstall.js",
133
- "scripts/preuninstall.js",
134
- "vendor/codex-ai-plugin/",
135
- "vendor/codex-ai-sdk/",
136
- "README.md",
137
- "LICENSE"
138
- ],
139
- "bundleDependencies": [
140
- "@codex-ai/plugin"
141
- ],
142
- "lint-staged": {
143
- "*.ts": [
144
- "eslint --max-warnings=0 --fix --no-warn-ignored"
145
- ],
146
- "scripts/**/*.{js,mjs}": [
147
- "eslint --max-warnings=0 --fix --no-warn-ignored"
148
- ]
149
- },
150
- "engines": {
151
- "node": ">=18.0.0"
152
- },
153
- "peerDependencies": {
154
- "typescript": "^5"
155
- },
156
- "devDependencies": {
157
- "@codex-ai/sdk": "file:vendor/codex-ai-sdk",
158
- "@fast-check/vitest": "^0.2.4",
159
- "@types/node": "^25.3.0",
160
- "@typescript-eslint/eslint-plugin": "^8.56.0",
161
- "@typescript-eslint/parser": "^8.56.0",
162
- "@vitest/coverage-v8": "^4.0.18",
163
- "@vitest/ui": "^4.0.18",
164
- "eslint": "^10.0.0",
165
- "fast-check": "^4.5.3",
166
- "husky": "^9.1.7",
167
- "lint-staged": "^16.2.7",
168
- "typescript": "^5.9.3",
169
- "typescript-language-server": "^5.1.3",
170
- "vitest": "^4.0.18"
171
- },
172
- "dependencies": {
173
- "@codex-ai/plugin": "file:vendor/codex-ai-plugin",
174
- "@openauthjs/openauth": "^0.4.3",
175
- "hono": "4.12.18",
176
- "undici": "6.25.0",
177
- "zod": "4.4.3"
178
- },
179
- "overrides": {
180
- "hono": "4.12.18",
181
- "flatted": "3.4.2",
182
- "minimatch": "10.2.4",
183
- "picomatch": "4.0.4",
184
- "rollup": "4.59.0",
185
- "vite": "^7.3.2",
186
- "micromatch": {
187
- "picomatch": "2.3.2"
188
- },
189
- "@typescript-eslint/typescript-estree": {
190
- "minimatch": "9.0.9"
191
- }
192
- }
193
- }
1
+ {
2
+ "name": "codex-multi-auth",
3
+ "version": "2.1.13-beta.1",
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
+ "typecheck": "tsc --noEmit",
83
+ "typecheck:scripts": "tsc -p tsconfig.scripts.json",
84
+ "lint": "npm run lint:ts && npm run lint:scripts",
85
+ "lint:ts": "eslint . --ext .ts",
86
+ "lint:scripts": "eslint scripts --ext .js,.mjs",
87
+ "lint:fix": "npm run lint:ts:fix && npm run lint:scripts:fix",
88
+ "lint:ts:fix": "eslint . --ext .ts --fix",
89
+ "lint:scripts:fix": "eslint scripts --ext .js,.mjs --fix",
90
+ "test": "vitest run --maxWorkers=1",
91
+ "test:watch": "vitest",
92
+ "test:ui": "vitest --ui",
93
+ "test:model-matrix": "node scripts/test-model-matrix.js",
94
+ "test:model-matrix:smoke": "node scripts/test-model-matrix.js --smoke",
95
+ "test:model-matrix:report": "node scripts/test-model-matrix.js --smoke --report-json=.tmp/model-matrix-report.json",
96
+ "clean:repo": "node scripts/repo-hygiene.js clean --mode aggressive",
97
+ "clean:repo:check": "node scripts/repo-hygiene.js check",
98
+ "pack:check": "npm run build && node scripts/check-pack-budget.mjs",
99
+ "bench:edit-formats": "node scripts/benchmark-edit-formats.mjs --preset=codex-core",
100
+ "bench:edit-formats:smoke": "node scripts/benchmark-edit-formats.mjs --smoke --preset=codex-core",
101
+ "bench:edit-formats:render": "node scripts/benchmark-render-dashboard.mjs",
102
+ "bench:runtime-path": "npm run build && node scripts/benchmark-runtime-path.mjs",
103
+ "bench:runtime-path:quick": "node scripts/benchmark-runtime-path.mjs",
104
+ "test:coverage": "vitest run --coverage --maxWorkers=1",
105
+ "coverage": "npm run build && vitest run --coverage --maxWorkers=1",
106
+ "audit:prod": "npm audit --omit=dev --audit-level=high",
107
+ "audit:all": "npm audit --audit-level=high",
108
+ "audit:dev:allowlist": "node scripts/audit-dev-allowlist.js",
109
+ "audit:ci": "npm run audit:prod && npm run audit:dev:allowlist",
110
+ "vendor:verify": "node scripts/verify-vendor-provenance.mjs",
111
+ "vendor:update-manifest": "node scripts/update-vendor-provenance.mjs",
112
+ "postinstall": "node scripts/postinstall.js",
113
+ "prepublishOnly": "npm run build",
114
+ "prepare": "husky"
115
+ },
116
+ "bin": {
117
+ "codex-multi-auth-codex": "scripts/codex.js",
118
+ "codex-multi-auth-app-launcher": "scripts/codex-app-launcher.js",
119
+ "codex-multi-auth": "scripts/codex-multi-auth.js"
120
+ },
121
+ "files": [
122
+ "dist/",
123
+ "assets/",
124
+ "config/",
125
+ "scripts/codex.js",
126
+ "scripts/codex-app-launcher.js",
127
+ "scripts/codex-app-router.js",
128
+ "scripts/codex-bin-resolver.js",
129
+ "scripts/codex-multi-auth.js",
130
+ "scripts/codex-routing.js",
131
+ "scripts/install-codex-auth-utils.js",
132
+ "scripts/postinstall.js",
133
+ "scripts/preuninstall.js",
134
+ "vendor/codex-ai-plugin/",
135
+ "vendor/codex-ai-sdk/",
136
+ "README.md",
137
+ "LICENSE"
138
+ ],
139
+ "bundleDependencies": [
140
+ "@codex-ai/plugin"
141
+ ],
142
+ "lint-staged": {
143
+ "*.ts": [
144
+ "eslint --max-warnings=0 --fix --no-warn-ignored"
145
+ ],
146
+ "scripts/**/*.{js,mjs}": [
147
+ "eslint --max-warnings=0 --fix --no-warn-ignored"
148
+ ]
149
+ },
150
+ "engines": {
151
+ "node": ">=18.0.0"
152
+ },
153
+ "peerDependencies": {
154
+ "typescript": "^5"
155
+ },
156
+ "devDependencies": {
157
+ "@codex-ai/sdk": "file:vendor/codex-ai-sdk",
158
+ "@fast-check/vitest": "^0.2.4",
159
+ "@types/node": "^25.3.0",
160
+ "@typescript-eslint/eslint-plugin": "^8.56.0",
161
+ "@typescript-eslint/parser": "^8.56.0",
162
+ "@vitest/coverage-v8": "^4.0.18",
163
+ "@vitest/ui": "^4.0.18",
164
+ "eslint": "^10.0.0",
165
+ "fast-check": "^4.5.3",
166
+ "husky": "^9.1.7",
167
+ "lint-staged": "^16.2.7",
168
+ "typescript": "^5.9.3",
169
+ "typescript-language-server": "^5.1.3",
170
+ "vitest": "^4.0.18"
171
+ },
172
+ "dependencies": {
173
+ "@codex-ai/plugin": "file:vendor/codex-ai-plugin",
174
+ "@openauthjs/openauth": "^0.4.3",
175
+ "hono": "4.12.18",
176
+ "undici": "6.25.0",
177
+ "zod": "4.4.3"
178
+ },
179
+ "overrides": {
180
+ "hono": "4.12.18",
181
+ "flatted": "3.4.2",
182
+ "minimatch": "10.2.4",
183
+ "picomatch": "4.0.4",
184
+ "rollup": "4.59.0",
185
+ "vite": "^7.3.2",
186
+ "micromatch": {
187
+ "picomatch": "2.3.2"
188
+ },
189
+ "@typescript-eslint/typescript-estree": {
190
+ "minimatch": "9.0.9"
191
+ }
192
+ }
193
+ }