cicy-desktop 2.1.234 → 2.1.235
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.
|
|
3
|
+
"version": "2.1.235",
|
|
4
4
|
"description": "CiCy - AI-powered operating system browser",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -144,11 +144,11 @@
|
|
|
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.
|
|
148
|
-
"cicy-code-darwin-arm64": "2.3.
|
|
149
|
-
"cicy-code-linux-x64": "2.3.
|
|
150
|
-
"cicy-code-linux-arm64": "2.3.
|
|
151
|
-
"cicy-code-windows-x64": "2.3.
|
|
147
|
+
"cicy-code-darwin-x64": "2.3.190",
|
|
148
|
+
"cicy-code-darwin-arm64": "2.3.190",
|
|
149
|
+
"cicy-code-linux-x64": "2.3.190",
|
|
150
|
+
"cicy-code-linux-arm64": "2.3.190",
|
|
151
|
+
"cicy-code-windows-x64": "2.3.190",
|
|
152
152
|
"cicy-mihomo-darwin-x64": "1.10.4",
|
|
153
153
|
"cicy-mihomo-darwin-arm64": "1.10.4",
|
|
154
154
|
"cicy-mihomo-linux-x64": "1.10.4",
|
|
@@ -238,13 +238,17 @@ class TabManager {
|
|
|
238
238
|
wc.on("page-title-updated", (_e, title) => { if (!tab.fixedTitle) { tab.title = title; this.pushState(); } });
|
|
239
239
|
wc.on("page-favicon-updated", (_e, favs) => { tab.favicon = (favs && favs[0]) || ""; this.pushState(); });
|
|
240
240
|
wc.on("did-start-loading", () => { tab.loading = true; this.pushState(); });
|
|
241
|
-
wc.on("did-stop-loading", () => { tab.loading = false; this.pushState(); });
|
|
241
|
+
wc.on("did-stop-loading", () => { tab.loading = false; try { const cu = wc.getURL(); if (cu && !cu.startsWith("about:blank")) tab.url = cu; } catch (e) {} this.pushState(); });
|
|
242
242
|
// Re-sync fullscreen state after each (re)load: the SPA resets data-fullscreen
|
|
243
243
|
// to "0" on mount, so a homepage reload while the window is fullscreen would
|
|
244
244
|
// otherwise re-show the 34px traffic-light gutter (blank top strip).
|
|
245
245
|
wc.on("did-finish-load", () => { try { wc.send("window:fullscreen", !!this.win.isFullScreen()); } catch (e) {} });
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
// **绝不把 about:blank 记进 tab.url**。这些 tab 从不真的停在 about:blank —— 但新建时会先
|
|
247
|
+
// 短暂经过 about:blank,导航事件的 u 偶尔就是 about:blank(或 about:blank#hash,SPA 在空白页
|
|
248
|
+
// 上先改了 hash)。若写进去,地址栏/tab 就显示 about:blank#teams,且任何「按 tab.url 重新导航」
|
|
249
|
+
// 的 reload(reloadTabByUrl)会真把页面导到 about:blank#teams。忽略它,保留上一个真实 URL。
|
|
250
|
+
wc.on("did-navigate", (_e, u) => { if (u && !u.startsWith("about:blank")) tab.url = u; tab.favicon = ""; this.pushState(); });
|
|
251
|
+
wc.on("did-navigate-in-page", (_e, u) => { if (u && !u.startsWith("about:blank")) tab.url = u; this.pushState(); });
|
|
248
252
|
// popups / window.open → open as a tab. 安全(防"点链接 = 静默 RCE"):在 profile 0
|
|
249
253
|
// (系统/特权 profile,tab 带 electronRPC 桥)里被点开的链接 —— 典型是 agent gotty
|
|
250
254
|
// 打印的网址 —— 一律改到 profile 1 打开。profile 1 是硬沙箱(contextIsolation on /
|