@juspay/neurolink 12.9.4 → 12.9.5
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/CHANGELOG.md +2 -2
- package/dist/auth/codexOAuth.d.ts +1 -1
- package/dist/auth/codexOAuth.js +3 -1
- package/dist/browser/neurolink.min.js +335 -335
- package/dist/proxy/codexAccountUsage.js +22 -4
- package/dist/types/codex.d.ts +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
## [12.9.
|
|
1
|
+
## [12.9.5](https://github.com/juspay/neurolink/compare/v12.9.4...v12.9.5) (2026-09-02)
|
|
2
2
|
|
|
3
3
|
### Bug Fixes
|
|
4
4
|
|
|
5
|
-
- **(proxy):**
|
|
5
|
+
- **(proxy):** use Codex WHAM usage endpoint ([d745d23](https://github.com/juspay/neurolink/commit/d745d235c774b281a85e38a045371d613c1f1f13))
|
|
6
6
|
|
|
7
7
|
## [11.2.3](https://github.com/juspay/neurolink/compare/v11.2.2...v11.2.3) (2026-08-19)
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ export declare const CODEX_REDIRECT_URI = "http://localhost:1455/auth/callback";
|
|
|
18
18
|
export declare const CODEX_DEFAULT_SCOPES: readonly ["openid", "profile", "email", "offline_access"];
|
|
19
19
|
export declare const CODEX_BACKEND_BASE_URL = "https://chatgpt.com/backend-api/codex";
|
|
20
20
|
export declare const CODEX_RESPONSES_URL = "https://chatgpt.com/backend-api/codex/responses";
|
|
21
|
-
export declare const CODEX_USAGE_URL = "https://chatgpt.com/backend-api/
|
|
21
|
+
export declare const CODEX_USAGE_URL = "https://chatgpt.com/backend-api/wham/usage";
|
|
22
22
|
export declare const CODEX_MODELS_URL = "https://chatgpt.com/backend-api/codex/models";
|
|
23
23
|
export declare const CODEX_VERSION = "0.144.4";
|
|
24
24
|
export declare const CODEX_USER_AGENT = "codex_cli_rs/0.144.4 (external; neurolink-proxy)";
|
package/dist/auth/codexOAuth.js
CHANGED
|
@@ -28,7 +28,9 @@ export const CODEX_DEFAULT_SCOPES = [
|
|
|
28
28
|
// Upstream backend (ChatGPT subscription path).
|
|
29
29
|
export const CODEX_BACKEND_BASE_URL = "https://chatgpt.com/backend-api/codex";
|
|
30
30
|
export const CODEX_RESPONSES_URL = `${CODEX_BACKEND_BASE_URL}/responses`;
|
|
31
|
-
|
|
31
|
+
// Codex completions use the /codex namespace, but account quota is exposed by
|
|
32
|
+
// the ChatGPT backend's WHAM account service.
|
|
33
|
+
export const CODEX_USAGE_URL = "https://chatgpt.com/backend-api/wham/usage";
|
|
32
34
|
export const CODEX_MODELS_URL = `${CODEX_BACKEND_BASE_URL}/models`;
|
|
33
35
|
// Client fingerprint. The real Codex CLI sends these; the proxy defaults them
|
|
34
36
|
// only when a non-Codex client omits them.
|