cicy-desktop 2.1.291 → 2.1.293

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cicy-desktop",
3
- "version": "2.1.291",
3
+ "version": "2.1.293",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -144,7 +144,9 @@ let _downloading = false;
144
144
  // 打开后 check() 发现新版直接下载 + 拉起安装器,不再弹「发现新版本」询问。
145
145
  const GLOBAL_JSON = path.join(os.homedir(), "cicy-ai", "global.json");
146
146
  function getAutoUpdate() {
147
- try { return readGlobalConfig(GLOBAL_JSON)?.desktopAutoUpdate === true; } catch { return false; }
147
+ // 默认开启(未设置视为开):机群里的旧版本要能自己收敛到最新版,不能靠人一台台推;
148
+ // 更新弹窗里取消勾选即关闭(写 false)。
149
+ try { return readGlobalConfig(GLOBAL_JSON)?.desktopAutoUpdate !== false; } catch { return true; }
148
150
  }
149
151
  function setAutoUpdate(on) {
150
152
  const v = on === true;
@@ -170,7 +170,9 @@ contextBridge.exposeInMainWorld("cicy", {
170
170
  appStatus: () => logInvoke("docker:app-status"),
171
171
  appRedetect: () => logInvoke("docker:app-redetect"), // 「重试检测」: FORCE a fresh probe (appStatus only reads cache)
172
172
  appBootstrap: () => logInvoke("docker:app-bootstrap"),
173
- appRepairWsl: () => logInvoke("docker:app-repair-wsl"), // WSL 卡死时一键修复(重启服务/标记重启后自愈)
173
+ appRepairWsl: () => logInvoke("docker:app-repair-wsl"),
174
+ rebootNow: () => logInvoke("docker:reboot-now"), // WSL 功能启用后:立即重启(5s)
175
+ rebootCancel: () => logInvoke("docker:reboot-cancel"), // 取消 90s 自动重启 // WSL 卡死时一键修复(重启服务/标记重启后自愈)
174
176
  appRestart: () => logInvoke("docker:app-restart"), // supervisorctl 重启 cicy-code
175
177
  appDockerRestart: () => logInvoke("docker:app-docker-restart"), // docker restart 整个容器
176
178
  appRecreate: () => logInvoke("docker:app-recreate"), // 删容器+重建(换 key,需 confirm)