@openxiaobu/codexl 0.1.3 → 0.1.4
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 +1 -1
- package/dist/cli.js +2 -2
- package/dist/status.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
- Manage multiple accounts or workspaces as separate slots
|
|
11
11
|
- Fetch the latest usage from the official usage endpoint
|
|
12
12
|
- Expose a local provider endpoint for Codex
|
|
13
|
-
- Apply local
|
|
13
|
+
- Apply local block rules for temporary, 5-hour, and weekly limits
|
|
14
14
|
- Automatically switch `~/.codex/config.toml` to the `codexl` provider while the local proxy is running
|
|
15
15
|
|
|
16
16
|
## Installation
|
package/dist/cli.js
CHANGED
|
@@ -23,10 +23,10 @@ async function handleStatus() {
|
|
|
23
23
|
const statuses = (0, status_1.collectAccountStatuses)();
|
|
24
24
|
console.log((0, status_1.renderStatusTable)(statuses));
|
|
25
25
|
const available = statuses.filter((item) => item.isAvailable).length;
|
|
26
|
-
const
|
|
26
|
+
const fiveHourLimited = statuses.filter((item) => item.isFiveHourLimited && !item.isWeeklyLimited).length;
|
|
27
27
|
const weeklyLimited = statuses.filter((item) => item.isWeeklyLimited).length;
|
|
28
28
|
console.log("");
|
|
29
|
-
console.log(`available=${available}
|
|
29
|
+
console.log(`available=${available} 5h_limited=${fiveHourLimited} weekly_limited=${weeklyLimited}`);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* 将已有的 Codex HOME 目录中的登录态复制到 codexl 自己的隔离目录并纳入管理。
|
package/dist/status.js
CHANGED