cicy-desktop 2.1.195 → 2.1.197

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.195",
3
+ "version": "2.1.197",
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.25",
144
- "cicy-code-darwin-arm64": "2.3.25",
145
- "cicy-code-linux-x64": "2.3.25",
146
- "cicy-code-linux-arm64": "2.3.25",
147
- "cicy-code-windows-x64": "2.3.25",
143
+ "cicy-code-darwin-x64": "2.3.28",
144
+ "cicy-code-darwin-arm64": "2.3.28",
145
+ "cicy-code-linux-x64": "2.3.28",
146
+ "cicy-code-linux-arm64": "2.3.28",
147
+ "cicy-code-windows-x64": "2.3.28",
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",
@@ -128,6 +128,8 @@ contextBridge.exposeInMainWorld("cicy", {
128
128
  stop: () => logInvoke("sidecar:stop"),
129
129
  restart: () => logInvoke("sidecar:restart"),
130
130
  update: () => logInvoke("sidecar:update"),
131
+ getPublic: () => logInvoke("sidecar:get-public"), // 局域网访问开关状态
132
+ setPublic: (on) => logInvoke("sidecar:set-public", on), // 设开关 + 自动重启 cicy-code
131
133
  // live {op, phase, status, message, progress?} events during update —
132
134
  // returns an unsubscribe fn.
133
135
  onOpProgress: (cb) => {