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 +1 -1
- package/src/app-updater.js +3 -1
- package/src/backends/homepage-preload.js +3 -1
- package/src/backends/homepage-react/assets/{index-CAQk0XQI.js → index-1rHgzzS_.js} +12 -12
- package/src/backends/homepage-react/index.html +1 -1
- package/src/backends/sidecar-ipc.js +21 -0
- package/src/sidecar/docker.js +94 -20
- package/src/sidecar/wsl-docker.js +26 -14
- package/test/bootstrap-failure-reporting.test.js +27 -3
- package/workers/render/src/App.jsx +3 -3
package/package.json
CHANGED
package/src/app-updater.js
CHANGED
|
@@ -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
|
-
|
|
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"),
|
|
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)
|