cicy-desktop 2.1.138 → 2.1.139

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.138",
3
+ "version": "2.1.139",
4
4
  "description": "CiCy - AI-powered operating system browser",
5
5
  "main": "src/main.js",
6
6
  "bin": {
@@ -370,7 +370,12 @@ async function runContainer({ port = 8009, container = "cicy-code-docker", volum
370
370
  .filter(([, v]) => v != null && v !== "")
371
371
  .map(([k, v]) => `-e ${k}='${String(v).replace(/'/g, "'\\''")}'`)
372
372
  .join(" ");
373
- const cmd = `docker run -d --name ${container} --restart unless-stopped -p 127.0.0.1:${port}:8008 -e CICY_PUBLIC=1 -v ${volume}:/home/cicy ${shareMountArg()} ${envArgs} ${IMAGE}`;
373
+ // --dns: WSL2's auto resolv.conf points the distro at the host NAT gateway
374
+ // (172.x.x.1), which docker's default DNS forwarding does NOT reach from inside a
375
+ // bridge container → every lookup is EAI_AGAIN and cicy-code's startup `npm i`
376
+ // crash-loops the container (:8009 never comes up). Pin public resolvers: Aliyun
377
+ // 223.5.5.5 (CN-fast) first, Google 8.8.8.8 as the overseas fallback.
378
+ const cmd = `docker run -d --name ${container} --restart unless-stopped --dns 223.5.5.5 --dns 8.8.8.8 -p 127.0.0.1:${port}:8008 -e CICY_PUBLIC=1 -v ${volume}:/home/cicy ${shareMountArg()} ${envArgs} ${IMAGE}`;
374
379
  await wslRun(cmd, { timeout: 60000 });
375
380
  ensureDesktopShortcut(volume, port).catch(() => {});
376
381
  return { started: true };