cicy-desktop 2.1.190 → 2.1.191
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 +6 -6
- package/src/sidecar/cicy-code.js +11 -11
- package/src/sidecar/wsl-docker.js +4 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cicy-desktop",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.191",
|
|
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.
|
|
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.
|
|
143
|
+
"cicy-code-darwin-x64": "2.3.24",
|
|
144
|
+
"cicy-code-darwin-arm64": "2.3.24",
|
|
145
|
+
"cicy-code-linux-x64": "2.3.24",
|
|
146
|
+
"cicy-code-linux-arm64": "2.3.24",
|
|
147
|
+
"cicy-code-windows-x64": "2.3.24",
|
|
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",
|
package/src/sidecar/cicy-code.js
CHANGED
|
@@ -480,23 +480,23 @@ async function update({ logPath, port = DEFAULT_PORT, emit } = {}) {
|
|
|
480
480
|
e({ phase: "download", status: "running", message: "检查最新版本…" });
|
|
481
481
|
const latest = await localbin.latestVersion();
|
|
482
482
|
if (!latest) throw new Error("无法获取最新版本号");
|
|
483
|
-
const cur = localbin.currentVersion(); // 磁盘 manifest:只用来决定要不要下载
|
|
484
|
-
const needDownload = !cur || localbin.cmpVer(latest, cur) > 0;
|
|
485
483
|
|
|
486
484
|
// 1) 杀干净
|
|
487
485
|
e({ phase: "swap", status: "running", message: "停止 cicy-code…" });
|
|
488
486
|
await stop({ port });
|
|
489
487
|
await new Promise(r => setTimeout(r, 400));
|
|
490
488
|
|
|
491
|
-
// 2)
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
489
|
+
// 2) 清 npx 缓存(主人 bug 修复): daemon 是 `npx cicy-code` 跑的、走 ~/.npm/_npx 缓存,
|
|
490
|
+
// 根本不看 localbin 下载的 ~/.local/bin。之前 update 往 localbin 下载 + start 复用 npx
|
|
491
|
+
// 缓存 → 永远还是旧版(2.3.24 发了但 homepage 一直 2.3.23)。改成:清掉 npx 对 cicy-code
|
|
492
|
+
// 的缓存,下面再用 `cicy-code@<latest>` 重启,npx 就会重新从 registry 拉新版。
|
|
493
|
+
// 一律清(不被 localbin manifest 门控): npx 缓存才是锁住旧版的真凶,manifest 在 npx 路径下不可信。
|
|
494
|
+
e({ phase: "download", status: "running", message: `准备更新到 ${latest}(清 npx 缓存,重启时重新拉取)…` });
|
|
495
|
+
try { clearNpxCache(); } catch (err) { console.warn(`[cicy-code-sidecar] update clearNpxCache: ${err.message}`); }
|
|
496
|
+
|
|
497
|
+
// 3) 起:钉死 cicy-code@<latest>,绕开 npx 对裸 `cicy-code` 的缓存,确保拉到新版
|
|
498
|
+
e({ phase: "swap", status: "running", message: `启动 cicy-code@${latest}…` });
|
|
499
|
+
const c = await start({ logPath, port, force: true, version: latest });
|
|
500
500
|
|
|
501
501
|
// 4) 探活:等 TCP 监听起来。注意:cicy-code 启动会先恢复团队的 agent 面板
|
|
502
502
|
// (w-1xx,可能十几个),:8008 在这些 REPL 拉起之后才 bind —— 繁忙团队这一步
|
|
@@ -586,11 +586,10 @@ async function bootstrap(opts = {}) {
|
|
|
586
586
|
return _bootstrapInFlight;
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
-
//
|
|
590
|
-
//
|
|
591
|
-
//
|
|
592
|
-
|
|
593
|
-
async function _bootstrap({ onProgress, port = 8009, container = "cicy-code-docker-8009", volume = "cicy-team-8009", env = {} } = {}) {
|
|
589
|
+
// 注意: 默认容器/卷名保持 cicy-team / cicy-code-docker(回退主人实测"现在不行了"的改动)。
|
|
590
|
+
// live 路径(docker:app-bootstrap)始终传显式 APP_*(cicy-team-8009)名,不靠这里的默认;
|
|
591
|
+
// 改默认会让既有 cicy-team 卷的装机对不上 → 退回原值。
|
|
592
|
+
async function _bootstrap({ onProgress, port = 8009, container = "cicy-code-docker", volume = "cicy-team", env = {} } = {}) {
|
|
594
593
|
const emit = (ev) => { try { onProgress && onProgress(ev); } catch {} };
|
|
595
594
|
|
|
596
595
|
// Structured, PERSISTED trace of the whole run (electron-log → main.log) so a
|