@openxiaobu/codexl 0.1.10 → 0.1.11

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/dist/cli.js +6 -4
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -125,10 +125,12 @@ async function handleInteractiveToggle() {
125
125
  return;
126
126
  }
127
127
  if (key.name === "return" || key.name === "enter") {
128
- applyChanges();
129
- stdin.off("keypress", onKeypress);
130
- stdin.setRawMode?.(false);
131
- console.log("\n已保存账号启用状态变更。");
128
+ if (changed) {
129
+ applyChanges();
130
+ changed = false;
131
+ render();
132
+ console.log("\n已保存账号启用状态变更(按 q 退出)。");
133
+ }
132
134
  return;
133
135
  }
134
136
  if (key.name === "q" || (key.ctrl && key.name === "c")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openxiaobu/codexl",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "本地 Codex 多账号切换与状态管理工具",
5
5
  "type": "commonjs",
6
6
  "main": "dist/cli.js",