@loongphy/codex-auth 0.2.6-alpha.2 → 0.2.6-alpha.3

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 (2) hide show
  1. package/README.md +4 -11
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -113,7 +113,6 @@ Remove-Item "$env:LOCALAPPDATA\codex-auth\bin\codex-auth-auto.exe" -Force -Error
113
113
  | Command | Description |
114
114
  |---------|-------------|
115
115
  | `codex-auth config auto enable\|disable` | Enable or disable experimental background auto-switching |
116
- | `codex-auth config auto [--5h <%>] [--weekly <%>]` | Set experimental auto-switch thresholds |
117
116
  | `codex-auth config api enable\|disable` | Enable or disable both usage refresh and team name refresh API calls |
118
117
 
119
118
  ---
@@ -236,18 +235,12 @@ codex-auth config auto disable
236
235
 
237
236
  `config auto enable` prints the current usage mode after installing the watcher, so you can immediately see whether auto-switch is running with default API-backed usage or local-only fallback semantics.
238
237
 
239
- Adjust thresholds:
240
-
241
- ```shell
242
- codex-auth config auto --5h 12
243
- codex-auth config auto --5h 12 --weekly 8
244
- codex-auth config auto --weekly 8
245
- ```
246
-
247
238
  When auto-switching is enabled, a long-running background watcher refreshes the active account's usage and silently switches accounts when:
248
239
 
249
- - 5h remaining drops below the configured 5h threshold (default `10%`), or
250
- - weekly remaining drops below the configured weekly threshold (default `5%`)
240
+ - 5h remaining reaches `0`, or
241
+ - weekly remaining reaches `0`
242
+
243
+ When choosing the next account, `codex-auth` prefers a usable account whose remaining quota resets sooner, so a reset at `05:11` wins over `05:30`.
251
244
 
252
245
  The managed background worker is long-running on all supported platforms:
253
246
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loongphy/codex-auth",
3
- "version": "0.2.6-alpha.2",
3
+ "version": "0.2.6-alpha.3",
4
4
  "type": "module",
5
5
  "description": "CLI for switching Codex accounts",
6
6
  "license": "MIT",
@@ -21,12 +21,12 @@
21
21
  "README.md"
22
22
  ],
23
23
  "optionalDependencies": {
24
- "@loongphy/codex-auth-linux-x64": "0.2.6-alpha.2",
25
- "@loongphy/codex-auth-linux-arm64": "0.2.6-alpha.2",
26
- "@loongphy/codex-auth-darwin-x64": "0.2.6-alpha.2",
27
- "@loongphy/codex-auth-darwin-arm64": "0.2.6-alpha.2",
28
- "@loongphy/codex-auth-win32-x64": "0.2.6-alpha.2",
29
- "@loongphy/codex-auth-win32-arm64": "0.2.6-alpha.2"
24
+ "@loongphy/codex-auth-linux-x64": "0.2.6-alpha.3",
25
+ "@loongphy/codex-auth-linux-arm64": "0.2.6-alpha.3",
26
+ "@loongphy/codex-auth-darwin-x64": "0.2.6-alpha.3",
27
+ "@loongphy/codex-auth-darwin-arm64": "0.2.6-alpha.3",
28
+ "@loongphy/codex-auth-win32-x64": "0.2.6-alpha.3",
29
+ "@loongphy/codex-auth-win32-arm64": "0.2.6-alpha.3"
30
30
  },
31
31
  "scripts": {
32
32
  "check:versions": "node scripts/npm/check-versions.mjs",