cicy-desktop 2.1.206 → 2.1.208

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.206",
3
+ "version": "2.1.208",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -140,11 +140,11 @@
140
140
  "//optionalDependencies": "(2026-06 回调): mac/linux 改回 native cicy-code(:8008,colima 在 16G mac 上压垮内存)→ 重新内置 cicy-code-<plat> / cicy-mihomo-<plat>,localbin.fromBundle 零网络 seed(npm 仅作更新通道,带 npmmirror→npmjs 回退)。这些由 scripts/sync-runtime-deps.cjs 在 tag-push 时同步到最新版。npm 的 os/cpu 字段保证每个平台只装自己那份。Windows 仍走 docker(WSL :8009),它那份 cicy-code-windows 用不到但 bundle 着无害。",
141
141
  "optionalDependencies": {
142
142
  "electron": "41.0.3",
143
- "cicy-code-darwin-x64": "2.3.51",
144
- "cicy-code-darwin-arm64": "2.3.51",
145
- "cicy-code-linux-x64": "2.3.51",
146
- "cicy-code-linux-arm64": "2.3.51",
147
- "cicy-code-windows-x64": "2.3.51",
143
+ "cicy-code-darwin-x64": "2.3.53",
144
+ "cicy-code-darwin-arm64": "2.3.53",
145
+ "cicy-code-linux-x64": "2.3.53",
146
+ "cicy-code-linux-arm64": "2.3.53",
147
+ "cicy-code-windows-x64": "2.3.53",
148
148
  "cicy-mihomo-darwin-x64": "1.10.4",
149
149
  "cicy-mihomo-darwin-arm64": "1.10.4",
150
150
  "cicy-mihomo-linux-x64": "1.10.4",
@@ -164,6 +164,7 @@ contextBridge.exposeInMainWorld("cicy", {
164
164
  appStatus: () => logInvoke("docker:app-status"),
165
165
  appRedetect: () => logInvoke("docker:app-redetect"), // 「重试检测」: FORCE a fresh probe (appStatus only reads cache)
166
166
  appBootstrap: () => logInvoke("docker:app-bootstrap"),
167
+ appRepairWsl: () => logInvoke("docker:app-repair-wsl"), // WSL 卡死时一键修复(重启服务/标记重启后自愈)
167
168
  appRestart: () => logInvoke("docker:app-restart"), // supervisorctl 重启 cicy-code
168
169
  appDockerRestart: () => logInvoke("docker:app-docker-restart"), // docker restart 整个容器
169
170
  appRecreate: () => logInvoke("docker:app-recreate"), // 删容器+重建(换 key,需 confirm)
@@ -171,6 +172,8 @@ contextBridge.exposeInMainWorld("cicy", {
171
172
  appUpdate: () => logInvoke("docker:app-update"),
172
173
  appStop: () => logInvoke("docker:app-stop"),
173
174
  appUpgrade: () => logInvoke("docker:app-upgrade"),
175
+ getPorts: () => logInvoke("docker:get-ports"), // 读已发布的额外端口
176
+ setPorts: (ports) => logInvoke("docker:set-ports", { ports }), // 存端口 + recreate 带 -p
174
177
  // Open :8008 with the live container token (refuses if it can't read it).
175
178
  appOpen: () => logInvoke("docker:app-open"),
176
179
  openDir: (which) => logInvoke("docker:open-dir", which), // "projects"→C:\projects, 否则 WSL 卷