codex-multi-auth 0.1.5 → 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.
- package/LICENSE +21 -1
- package/README.md +19 -6
- package/assets/readme-hero.svg +31 -31
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/codex-cli/state.js +4 -4
- package/dist/lib/codex-cli/state.js.map +1 -1
- package/dist/lib/codex-cli/sync.d.ts +9 -16
- package/dist/lib/codex-cli/sync.d.ts.map +1 -1
- package/dist/lib/codex-cli/sync.js +51 -284
- package/dist/lib/codex-cli/sync.js.map +1 -1
- package/dist/lib/codex-cli/writer.d.ts.map +1 -1
- package/dist/lib/codex-cli/writer.js +62 -5
- package/dist/lib/codex-cli/writer.js.map +1 -1
- package/dist/lib/codex-manager/settings-hub.d.ts +44 -2
- package/dist/lib/codex-manager/settings-hub.d.ts.map +1 -1
- package/dist/lib/codex-manager/settings-hub.js +746 -117
- package/dist/lib/codex-manager/settings-hub.js.map +1 -1
- package/dist/lib/codex-manager.d.ts.map +1 -1
- package/dist/lib/codex-manager.js +3 -8
- package/dist/lib/codex-manager.js.map +1 -1
- package/dist/lib/context-overflow.js +10 -10
- package/dist/lib/named-backup-export.d.ts +69 -0
- package/dist/lib/named-backup-export.d.ts.map +1 -0
- package/dist/lib/named-backup-export.js +207 -0
- package/dist/lib/named-backup-export.js.map +1 -0
- package/dist/lib/oauth-success.html +66 -210
- package/dist/lib/oc-chatgpt-import-adapter.d.ts +64 -0
- package/dist/lib/oc-chatgpt-import-adapter.d.ts.map +1 -0
- package/dist/lib/oc-chatgpt-import-adapter.js +506 -0
- package/dist/lib/oc-chatgpt-import-adapter.js.map +1 -0
- package/dist/lib/oc-chatgpt-orchestrator.d.ts +80 -0
- package/dist/lib/oc-chatgpt-orchestrator.d.ts.map +1 -0
- package/dist/lib/oc-chatgpt-orchestrator.js +130 -0
- package/dist/lib/oc-chatgpt-orchestrator.js.map +1 -0
- package/dist/lib/oc-chatgpt-target-detection.d.ts +59 -0
- package/dist/lib/oc-chatgpt-target-detection.d.ts.map +1 -0
- package/dist/lib/oc-chatgpt-target-detection.js +327 -0
- package/dist/lib/oc-chatgpt-target-detection.js.map +1 -0
- package/dist/lib/prompts/codex.js +2 -2
- package/dist/lib/runtime-paths.d.ts.map +1 -1
- package/dist/lib/runtime-paths.js +44 -2
- package/dist/lib/runtime-paths.js.map +1 -1
- package/dist/lib/storage.d.ts +42 -3
- package/dist/lib/storage.d.ts.map +1 -1
- package/dist/lib/storage.js +634 -49
- package/dist/lib/storage.js.map +1 -1
- package/dist/lib/ui/auth-menu.d.ts.map +1 -1
- package/dist/lib/ui/auth-menu.js +13 -1
- package/dist/lib/ui/auth-menu.js.map +1 -1
- package/dist/lib/ui/copy.d.ts +15 -1
- package/dist/lib/ui/copy.d.ts.map +1 -1
- package/dist/lib/ui/copy.js +15 -1
- package/dist/lib/ui/copy.js.map +1 -1
- package/node_modules/@codex-ai/plugin/dist/index.d.ts +1 -1
- package/node_modules/@codex-ai/plugin/dist/tool.d.ts +41 -41
- package/node_modules/@codex-ai/plugin/dist/tool.js +28 -28
- package/package.json +132 -133
- package/scripts/bench-format/hashline-v2.mjs +642 -642
- package/scripts/bench-format/render.mjs +496 -496
- package/scripts/bench-format/stats.mjs +54 -54
- package/scripts/bench-format/tasks.mjs +151 -151
- package/scripts/benchmark-render-dashboard.mjs +49 -49
- package/scripts/codex-multi-auth.js +12 -0
- package/scripts/codex.js +315 -2
- package/scripts/install-codex-auth.js +9 -9
- package/scripts/test-all-models.sh +7 -7
- package/scripts/test-model-matrix.js +247 -148
- package/scripts/validate-model-map.sh +7 -7
- package/vendor/codex-ai-plugin/dist/index.d.ts +1 -1
- package/vendor/codex-ai-plugin/dist/tool.d.ts +41 -41
- package/vendor/codex-ai-plugin/dist/tool.js +28 -28
- package/vendor/codex-ai-sdk/dist/index.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,133 +1,132 @@
|
|
|
1
|
-
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "codex-multi-auth",
|
|
3
|
+
"version": "0.1.8",
|
|
4
|
+
"description": "Multi-account OAuth manager and codex auth wrapper for the official @openai/codex CLI, with switching, health checks, and recovery tools",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"author": "ndycode",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/ndycode/codex-multi-auth.git"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"openai",
|
|
16
|
+
"codex",
|
|
17
|
+
"codex-cli",
|
|
18
|
+
"chatgpt",
|
|
19
|
+
"oauth2",
|
|
20
|
+
"pkce",
|
|
21
|
+
"multi-account",
|
|
22
|
+
"account-switching",
|
|
23
|
+
"oauth-manager",
|
|
24
|
+
"fault-tolerance",
|
|
25
|
+
"terminal-ui",
|
|
26
|
+
"cli-tool",
|
|
27
|
+
"typescript",
|
|
28
|
+
"nodejs",
|
|
29
|
+
"developer-tools",
|
|
30
|
+
"authentication",
|
|
31
|
+
"account-health",
|
|
32
|
+
"recovery-tools",
|
|
33
|
+
"project-scoped-storage"
|
|
34
|
+
],
|
|
35
|
+
"homepage": "https://github.com/ndycode/codex-multi-auth#readme",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/ndycode/codex-multi-auth/issues"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc && node scripts/copy-oauth-success.js",
|
|
41
|
+
"typecheck": "tsc --noEmit",
|
|
42
|
+
"lint": "npm run lint:ts && npm run lint:scripts",
|
|
43
|
+
"lint:ts": "eslint . --ext .ts",
|
|
44
|
+
"lint:scripts": "eslint scripts --ext .js",
|
|
45
|
+
"lint:fix": "npm run lint:ts:fix && npm run lint:scripts:fix",
|
|
46
|
+
"lint:ts:fix": "eslint . --ext .ts --fix",
|
|
47
|
+
"lint:scripts:fix": "eslint scripts --ext .js --fix",
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"test:watch": "vitest",
|
|
50
|
+
"test:ui": "vitest --ui",
|
|
51
|
+
"test:model-matrix": "node scripts/test-model-matrix.js",
|
|
52
|
+
"test:model-matrix:smoke": "node scripts/test-model-matrix.js --smoke",
|
|
53
|
+
"test:model-matrix:report": "node scripts/test-model-matrix.js --smoke --report-json=.tmp/model-matrix-report.json",
|
|
54
|
+
"clean:repo": "node scripts/repo-hygiene.js clean --mode aggressive",
|
|
55
|
+
"clean:repo:check": "node scripts/repo-hygiene.js check",
|
|
56
|
+
"bench:edit-formats": "node scripts/benchmark-edit-formats.mjs --preset=codex-core",
|
|
57
|
+
"bench:edit-formats:smoke": "node scripts/benchmark-edit-formats.mjs --smoke --preset=codex-core",
|
|
58
|
+
"bench:edit-formats:render": "node scripts/benchmark-render-dashboard.mjs",
|
|
59
|
+
"bench:runtime-path": "npm run build && node scripts/benchmark-runtime-path.mjs",
|
|
60
|
+
"bench:runtime-path:quick": "node scripts/benchmark-runtime-path.mjs",
|
|
61
|
+
"test:coverage": "vitest run --coverage",
|
|
62
|
+
"coverage": "npm run build && vitest run --coverage",
|
|
63
|
+
"audit:prod": "npm audit --omit=dev --audit-level=high",
|
|
64
|
+
"audit:all": "npm audit --audit-level=high",
|
|
65
|
+
"audit:dev:allowlist": "node scripts/audit-dev-allowlist.js",
|
|
66
|
+
"audit:ci": "npm run audit:prod && npm run audit:dev:allowlist",
|
|
67
|
+
"prepublishOnly": "npm run build",
|
|
68
|
+
"prepare": "husky"
|
|
69
|
+
},
|
|
70
|
+
"bin": {
|
|
71
|
+
"codex": "scripts/codex.js",
|
|
72
|
+
"codex-multi-auth": "scripts/codex-multi-auth.js"
|
|
73
|
+
},
|
|
74
|
+
"files": [
|
|
75
|
+
"dist/",
|
|
76
|
+
"assets/",
|
|
77
|
+
"config/",
|
|
78
|
+
"scripts/",
|
|
79
|
+
"vendor/codex-ai-plugin/",
|
|
80
|
+
"vendor/codex-ai-sdk/",
|
|
81
|
+
"README.md",
|
|
82
|
+
"LICENSE"
|
|
83
|
+
],
|
|
84
|
+
"bundleDependencies": [
|
|
85
|
+
"@codex-ai/plugin"
|
|
86
|
+
],
|
|
87
|
+
"lint-staged": {
|
|
88
|
+
"*.ts": [
|
|
89
|
+
"eslint --max-warnings=0 --fix --no-warn-ignored"
|
|
90
|
+
],
|
|
91
|
+
"scripts/**/*.js": [
|
|
92
|
+
"eslint --max-warnings=0 --fix --no-warn-ignored"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"engines": {
|
|
96
|
+
"node": ">=18.0.0"
|
|
97
|
+
},
|
|
98
|
+
"peerDependencies": {
|
|
99
|
+
"typescript": "^5"
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@fast-check/vitest": "^0.2.4",
|
|
103
|
+
"@codex-ai/sdk": "file:vendor/codex-ai-sdk",
|
|
104
|
+
"@types/node": "^25.3.0",
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
106
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
107
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
108
|
+
"@vitest/ui": "^4.0.18",
|
|
109
|
+
"eslint": "^10.0.0",
|
|
110
|
+
"fast-check": "^4.5.3",
|
|
111
|
+
"husky": "^9.1.7",
|
|
112
|
+
"lint-staged": "^16.2.7",
|
|
113
|
+
"typescript": "^5.9.3",
|
|
114
|
+
"typescript-language-server": "^5.1.3",
|
|
115
|
+
"vitest": "^4.0.18"
|
|
116
|
+
},
|
|
117
|
+
"dependencies": {
|
|
118
|
+
"@openauthjs/openauth": "^0.4.3",
|
|
119
|
+
"@codex-ai/plugin": "file:vendor/codex-ai-plugin",
|
|
120
|
+
"hono": "4.12.6",
|
|
121
|
+
"zod": "^4.3.6"
|
|
122
|
+
},
|
|
123
|
+
"overrides": {
|
|
124
|
+
"hono": "4.12.6",
|
|
125
|
+
"minimatch": "10.2.4",
|
|
126
|
+
"rollup": "4.59.0",
|
|
127
|
+
"vite": "^7.3.1",
|
|
128
|
+
"@typescript-eslint/typescript-estree": {
|
|
129
|
+
"minimatch": "9.0.9"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|