@openxiaobu/codexl 0.1.12 → 0.1.13

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
@@ -53,9 +53,8 @@ By default, `status` will:
53
53
  - A status column with local block reasons and countdowns (for example: `5h_limited(2h27m)`)
54
54
  - Enter an interactive mode where you can toggle `enabled` for accounts:
55
55
  - Up/Down: move selection
56
- - Space: toggle `[x]` enabled / `[ ]` disabled
57
- - Enter: confirm and save
58
- - `q`: quit
56
+ - Space: toggle `[x]` enabled / `[ ]` disabled and save immediately
57
+ - Enter / `q`: exit the interactive mode
59
58
 
60
59
  If you only want a non-interactive snapshot of the current state:
61
60
 
package/dist/cli.js CHANGED
@@ -62,6 +62,7 @@ async function handleInteractiveToggle() {
62
62
  const stdin = process.stdin;
63
63
  node_readline_1.default.emitKeypressEvents(stdin);
64
64
  stdin.setRawMode?.(true);
65
+ stdin.resume();
65
66
  const config = (0, config_1.loadConfig)();
66
67
  if (config.accounts.length === 0) {
67
68
  console.log("当前没有已录入账号。");
@@ -75,7 +76,7 @@ async function handleInteractiveToggle() {
75
76
  let renderedLines = 0;
76
77
  const render = () => {
77
78
  const lines = [];
78
- lines.push("空格切换选中账号启用状态,回车确认,q 退出:");
79
+ lines.push("空格切换选中账号启用状态,Enter / q 退出:");
79
80
  for (let i = 0; i < accounts.length; i += 1) {
80
81
  const account = accounts[i];
81
82
  const prefix = i === cursor ? ">" : " ";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openxiaobu/codexl",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "本地 Codex 多账号切换与状态管理工具",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cli.js",