cicy-desktop 2.1.318 → 2.1.320

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.318",
3
+ "version": "2.1.320",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -144,10 +144,10 @@
144
144
  "//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 着无害。",
145
145
  "optionalDependencies": {
146
146
  "electron": "41.0.3",
147
- "cicy-code-darwin-x64": "2.3.581",
148
- "cicy-code-darwin-arm64": "2.3.581",
149
- "cicy-code-linux-x64": "2.3.581",
150
- "cicy-code-linux-arm64": "2.3.581",
147
+ "cicy-code-darwin-x64": "2.3.585",
148
+ "cicy-code-darwin-arm64": "2.3.585",
149
+ "cicy-code-linux-x64": "2.3.585",
150
+ "cicy-code-linux-arm64": "2.3.585",
151
151
  "cicy-code-windows-x64": "2.3.193",
152
152
  "cicy-mihomo-darwin-x64": "1.10.4",
153
153
  "cicy-mihomo-darwin-arm64": "1.10.4",
@@ -316,6 +316,21 @@ contextBridge.exposeInMainWorld("cicy", {
316
316
  cloud: {
317
317
  fetch: (url, opts) => logInvoke("cloud:fetch", { url, ...(opts || {}) }),
318
318
  },
319
+ // CiCy Hub — email sign-in, then every cicy-code instance of that account.
320
+ hub: {
321
+ status: () => logInvoke("hub:status"),
322
+ loginStart: (email) => logInvoke("hub:login-start", email),
323
+ loginCode: (code) => logInvoke("hub:login-code", code),
324
+ cancel: () => logInvoke("hub:cancel"),
325
+ instances: () => logInvoke("hub:instances"),
326
+ open: (id, title, port) => logInvoke("hub:open", { id, title, port }),
327
+ logout: () => logInvoke("hub:logout"),
328
+ onComplete: (cb) => {
329
+ const handler = (_e, payload) => cb(payload);
330
+ ipcRenderer.on("hub:complete", handler);
331
+ return () => ipcRenderer.removeListener("hub:complete", handler);
332
+ },
333
+ },
319
334
 
320
335
  // Homepage window state. onFullscreen fires (bool) whenever the user
321
336
  // enter/leaves macOS native fullscreen — renderer toggles a data-attr