cicy-desktop 2.1.90 → 2.1.91
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
|
@@ -16,7 +16,7 @@ const { ipcMain } = require("electron");
|
|
|
16
16
|
const sidecar = require("../sidecar/cicy-code");
|
|
17
17
|
const docker = require("../sidecar/docker");
|
|
18
18
|
|
|
19
|
-
const PORT = Number(process.env.CICY_CODE_PORT ||
|
|
19
|
+
const PORT = Number(process.env.CICY_CODE_PORT || 8008);
|
|
20
20
|
let registered = false;
|
|
21
21
|
|
|
22
22
|
function register({ sidecarLogPath } = {}) {
|
|
@@ -11,7 +11,7 @@ const sidecar = require("../sidecar/cicy-code");
|
|
|
11
11
|
const { createWindow } = require("../utils/window-utils");
|
|
12
12
|
const registry = require("./registry");
|
|
13
13
|
|
|
14
|
-
const LOCAL_PORT = Number(process.env.CICY_CODE_PORT ||
|
|
14
|
+
const LOCAL_PORT = Number(process.env.CICY_CODE_PORT || 8008);
|
|
15
15
|
const LOCAL_HOST = "127.0.0.1";
|
|
16
16
|
|
|
17
17
|
// On a typical install cicy-code runs as the same user as cicy-desktop,
|
package/src/main.js
CHANGED
|
@@ -867,7 +867,7 @@ electronApp.whenReady().then(async () => {
|
|
|
867
867
|
// cloud team register + gateway-key injection when logged in. A fresh boot
|
|
868
868
|
// may npm-seed the runtime first, so probe for up to ~90s before giving up.
|
|
869
869
|
(async () => {
|
|
870
|
-
const sidecarPort = Number(process.env.CICY_CODE_PORT ||
|
|
870
|
+
const sidecarPort = Number(process.env.CICY_CODE_PORT || 8008);
|
|
871
871
|
const lt = require("./backends/local-teams");
|
|
872
872
|
for (let i = 0; i < 30; i++) {
|
|
873
873
|
try {
|
package/src/sidecar/cicy-code.js
CHANGED
|
@@ -20,9 +20,7 @@ const net = require("net");
|
|
|
20
20
|
const path = require("path");
|
|
21
21
|
const { spawn, execFileSync } = require("child_process");
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
// overrides on every platform.
|
|
25
|
-
const DEFAULT_PORT = Number(process.env.CICY_CODE_PORT || (process.platform === "win32" ? 8007 : 8008));
|
|
23
|
+
const DEFAULT_PORT = Number(process.env.CICY_CODE_PORT || 8008);
|
|
26
24
|
|
|
27
25
|
// Liveness = "is something LISTENING on :port", via a raw TCP connect — NOT an
|
|
28
26
|
// HTTP GET. /health can block (mid-boot, busy, hung) and time out even while the
|
package/src/sidecar/version.js
CHANGED
|
@@ -5,8 +5,7 @@
|
|
|
5
5
|
// installed() → 磁盘 binary 版本(localbin manifest,诊断用)
|
|
6
6
|
const http = require("http");
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
const DEFAULT_PORT = Number(process.env.CICY_CODE_PORT || (process.platform === "win32" ? 8007 : 8008));
|
|
8
|
+
const DEFAULT_PORT = 8008;
|
|
10
9
|
|
|
11
10
|
// The ONE running-version reader. GET /api/health → version. Returns the version
|
|
12
11
|
// string, or null on any failure / missing field. Used by the update flow's
|