@loongphy/codex-auth-linux-x64 0.3.0-alpha.9 → 0.3.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.
package/README.md CHANGED
@@ -47,21 +47,6 @@ After that, you can use `codex-auth login`, or `codex-auth login --device-auth`
47
47
 
48
48
  Detailed command documentation lives in [docs/commands/README.md](./docs/commands/README.md).
49
49
 
50
- > [!NOTE]
51
- > This documentation is based on **v0.3.x**. Some commands described here may not be available in the current release.
52
- >
53
- > To try the latest features, please install the alpha version via:
54
- >
55
- > ```bash
56
- > npm install -g @loongphy/codex-auth@next
57
- > ```
58
- >
59
- > If you want to downgrade to **v0.2.x**, you may need to manually update the `~/.codex/accounts/registry.json`:
60
- >
61
- > ```json
62
- > "schema_version": 4
63
- > ```
64
-
65
50
  ### Account Management
66
51
 
67
52
  | Command | Description |
@@ -73,6 +58,8 @@ Detailed command documentation lives in [docs/commands/README.md](./docs/command
73
58
  | [`codex-auth remove [--live] [--api\|--skip-api]`](./docs/commands/remove.md) | Remove accounts interactively |
74
59
  | [`codex-auth remove <query> [<query>...]`](./docs/commands/remove.md) | Remove accounts by selector |
75
60
  | [`codex-auth remove --all`](./docs/commands/remove.md) | Remove all stored accounts |
61
+ | [`codex-auth alias set <query> <alias>`](./docs/commands/alias.md) | Set an alias for an account |
62
+ | [`codex-auth alias clear <query>`](./docs/commands/alias.md) | Clear the alias for an account |
76
63
 
77
64
  ### Import and Maintenance
78
65
 
@@ -156,6 +143,10 @@ Verify with:
156
143
  codex exec "say hello"
157
144
  ```
158
145
 
146
+ ## Build a GUI with JSON
147
+
148
+ If you are building a GUI on top of the current `codex-auth` client, use the supported `--json` command variants to receive machine-readable results. See the [JSON API documentation](./docs/json-api.md) for supported commands and the compatibility contract.
149
+
159
150
  ## Disclaimer
160
151
 
161
152
  This project is provided as-is and use is at your own risk.
@@ -163,8 +154,12 @@ This project is provided as-is and use is at your own risk.
163
154
  **Usage Data Refresh Source:**
164
155
  `codex-auth` supports two sources for refreshing account usage/usage limit information:
165
156
 
166
- 1. **API (default):** The tool makes direct HTTPS requests to OpenAI's endpoints using your account's access token. This enables both usage refresh and team name refresh. npm installs already satisfy the runtime requirement.
157
+ 1. **API (default):** The tool makes direct HTTPS requests to OpenAI's endpoints using your account's access token. This enables both usage refresh and team name refresh. `curl` must be available at runtime.
167
158
  2. **Local-only:** With per-command `--skip-api`, the tool scans local `~/.codex/sessions/*/rollout-*.jsonl` files for usage data and skips team name refresh API calls. This mode is safer, but it can be less accurate because recent Codex rollout files often contain `rate_limits: null`, so the latest local usage limit data may lag by several hours.
168
159
 
169
160
  **API Call Declaration:**
170
- By using the default API-backed refresh, this tool will send your ChatGPT access token to OpenAI's servers, including `https://chatgpt.com/backend-api/wham/usage` for usage limit and `https://chatgpt.com/backend-api/accounts/check/v4-2023-04-27` for team name. This behavior may be detected by OpenAI and could violate their terms of service, potentially leading to account suspension or other risks. The decision to use this feature and any resulting consequences are entirely yours.
161
+ By using the default API-backed refresh, this tool will send your ChatGPT access token to OpenAI's servers for usage limit and team name refresh. The exact endpoints are:
162
+ - `GET https://chatgpt.com/backend-api/wham/usage`
163
+ - `GET https://chatgpt.com/backend-api/accounts`
164
+
165
+ This behavior may be detected by OpenAI and could violate their terms of service, potentially leading to account suspension or other risks. The decision to use this feature and any resulting consequences are entirely yours.
package/bin/codex-auth CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loongphy/codex-auth-linux-x64",
3
- "version": "0.3.0-alpha.9",
3
+ "version": "0.3.1",
4
4
  "description": "@loongphy/codex-auth binary for linux x64",
5
5
  "license": "MIT",
6
6
  "repository": {