cicy-desktop 2.1.173 → 2.1.174

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.173",
3
+ "version": "2.1.174",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -137,7 +137,7 @@
137
137
  "zod": "3.25",
138
138
  "electron-updater": "6.6.2"
139
139
  },
140
- "//optionalDependencies": "Runtime Bundle v1 (主人指令): platform binaries delivered by `npm i -g cicy-desktop` itself npm installs only the current-platform subpackage (os/cpu pinned in each), so first start seeds the runtime store with ZERO network, ZERO npx. Windows packages are named *-windows-* (npm spam filter 403s new names containing win32). cicy-msys2 added once published.",
140
+ "//optionalDependencies": "docker-only(主人): host cicy-code/mihomo 二进制不再内置 —— cicy-code + mihomo 都只在 docker 容器里跑(npm 装/镜像预装),host 永远不起,所以去掉了 cicy-code-<plat> / cicy-mihomo-<plat> 子包。只留 electron。",
141
141
  "optionalDependencies": {
142
142
  "electron": "41.0.3",
143
143
  "cicy-code-darwin-x64": "2.3.21",
@@ -126,14 +126,8 @@ async function start({ logPath, port = DEFAULT_PORT, force = false, version = nu
126
126
  }
127
127
  if (!exe) { console.warn("[cicy-code-sidecar] no cicy-code binary available"); return null; }
128
128
 
129
- // cicy-desktop ALSO owns the mihomo binary (same npm/localbin model). Seed it
130
- // into ~/.local/bin/mihomo from the bundle (zero network) BEFORE the cicy-code
131
- // daemon boots, so cicy-code's own startup finds it already present and skips
132
- // its GitHub/COS download. Best-effort — never block cicy-code on it.
133
- try {
134
- const r = await localbin.ensure({ name: "mihomo" });
135
- if (r?.exe) console.log(`[cicy-code-sidecar] mihomo ready at ${r.exe} (v${r.version || "?"})`);
136
- } catch (e) { console.warn(`[cicy-code-sidecar] mihomo seed skipped: ${e.message}`); }
129
+ // 主人: 不再 seed host mihomo —— docker-only mihomo 只在容器里跑(host 不用)。
130
+ // 内置的 cicy-mihomo-<plat> 依赖已从 package.json 移除。
137
131
 
138
132
  let stdio = ["ignore", "ignore", "ignore"];
139
133
  if (logPath) {
@@ -44,7 +44,6 @@ const MANIFEST = path.join(LOCAL_BIN, ".cicy-localbin.json");
44
44
  // cicy-code, so the legacy single-component callers keep working unchanged.
45
45
  const COMPONENTS = {
46
46
  "cicy-code": { pkgPrefix: "cicy-code", base: "cicy-code" },
47
- "mihomo": { pkgPrefix: "cicy-mihomo", base: "mihomo" },
48
47
  };
49
48
  const DEFAULT = "cicy-code";
50
49
  function comp(name) {