cicy-desktop 2.1.218 → 2.1.220
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 +10 -6
- package/resources/cloudflared/README.md +24 -0
- package/src/backends/homepage-preload.js +2 -0
- package/src/backends/homepage-react/assets/index-awoYYtCx.js +377 -0
- package/src/backends/homepage-react/index.html +1 -1
- package/src/backends/sidecar-ipc.js +27 -0
- package/src/i18n/locales/en.json +23 -2
- package/src/i18n/locales/fr.json +23 -2
- package/src/i18n/locales/ja.json +23 -2
- package/src/i18n/locales/zh-CN.json +23 -2
- package/src/main.js +27 -3
- package/src/sidecar/cicy-code.js +26 -1
- package/src/sidecar/wsl-docker.js +4 -0
- package/src/tabbrowser/tab-shell.html +3 -1
- package/src/tools/chrome-tools.js +18 -1
- package/workers/render/src/App.jsx +71 -1
- package/src/backends/homepage-react/assets/index-39Kxys_5.js +0 -377
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cicy-desktop",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.220",
|
|
4
4
|
"description": "CiCy - AI-powered operating system browser",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"package.json"
|
|
48
48
|
],
|
|
49
49
|
"extraResources": [
|
|
50
|
+
{
|
|
51
|
+
"from": "resources/cloudflared",
|
|
52
|
+
"to": "cloudflared"
|
|
53
|
+
},
|
|
50
54
|
{
|
|
51
55
|
"from": "build/icon.png",
|
|
52
56
|
"to": "build/icon.png"
|
|
@@ -140,11 +144,11 @@
|
|
|
140
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 着无害。",
|
|
141
145
|
"optionalDependencies": {
|
|
142
146
|
"electron": "41.0.3",
|
|
143
|
-
"cicy-code-darwin-x64": "2.3.
|
|
144
|
-
"cicy-code-darwin-arm64": "2.3.
|
|
145
|
-
"cicy-code-linux-x64": "2.3.
|
|
146
|
-
"cicy-code-linux-arm64": "2.3.
|
|
147
|
-
"cicy-code-windows-x64": "2.3.
|
|
147
|
+
"cicy-code-darwin-x64": "2.3.178",
|
|
148
|
+
"cicy-code-darwin-arm64": "2.3.178",
|
|
149
|
+
"cicy-code-linux-x64": "2.3.178",
|
|
150
|
+
"cicy-code-linux-arm64": "2.3.178",
|
|
151
|
+
"cicy-code-windows-x64": "2.3.178",
|
|
148
152
|
"cicy-mihomo-darwin-x64": "1.10.4",
|
|
149
153
|
"cicy-mihomo-darwin-arm64": "1.10.4",
|
|
150
154
|
"cicy-mihomo-linux-x64": "1.10.4",
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# cloudflared bundle (macOS)
|
|
2
|
+
|
|
3
|
+
`main.js` → `seedCloudflaredToLocalBin()` copies the arch-matching binary here to
|
|
4
|
+
`~/.local/bin/cloudflared` on app startup (mac/linux), so cicy-code's cft tunnel
|
|
5
|
+
(`--cft-token`) finds it via `LookPath` and never has to download from GitHub.
|
|
6
|
+
|
|
7
|
+
**Windows needs nothing here** — the docker image already ships cloudflared.
|
|
8
|
+
|
|
9
|
+
## Required files (per-arch, NOT in git — build assets)
|
|
10
|
+
|
|
11
|
+
- `cloudflared-darwin-arm64` (Apple Silicon)
|
|
12
|
+
- `cloudflared-darwin-x64` (Intel)
|
|
13
|
+
|
|
14
|
+
Get them from the official release (extract the `cloudflared` binary from the
|
|
15
|
+
`.tgz`), `chmod +x`, and drop them here before packaging:
|
|
16
|
+
|
|
17
|
+
```
|
|
18
|
+
curl -fsSL -o cf.tgz https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-darwin-arm64.tgz
|
|
19
|
+
tar -xzf cf.tgz && mv cloudflared cloudflared-darwin-arm64 && chmod +x cloudflared-darwin-arm64
|
|
20
|
+
# repeat for amd64 → cloudflared-darwin-x64
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`electron-builder` ships this dir to `Resources/cloudflared/` via `build.extraResources`.
|
|
24
|
+
The binaries are `.gitignore`d (large); place them at build time.
|
|
@@ -130,6 +130,8 @@ contextBridge.exposeInMainWorld("cicy", {
|
|
|
130
130
|
update: () => logInvoke("sidecar:update"),
|
|
131
131
|
getPublic: () => logInvoke("sidecar:get-public"), // 局域网访问开关状态
|
|
132
132
|
setPublic: (on) => logInvoke("sidecar:set-public", on), // 设开关 + 自动重启 cicy-code
|
|
133
|
+
getCft: () => logInvoke("sidecar:get-cft"), // Cloudflare Tunnel 配置 {enabled,token,host}
|
|
134
|
+
setCft: (cfg) => logInvoke("sidecar:set-cft", cfg), // 设配置 + 自动重启 cicy-code
|
|
133
135
|
// live {op, phase, status, message, progress?} events during update —
|
|
134
136
|
// returns an unsubscribe fn.
|
|
135
137
|
onOpProgress: (cb) => {
|