chatccc 0.2.164 → 0.2.166
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 +1 -1
- package/src/orchestrator.ts +2 -2
package/package.json
CHANGED
package/src/orchestrator.ts
CHANGED
|
@@ -177,7 +177,7 @@ function updLog(msg: string): void {
|
|
|
177
177
|
try { appendFileSync(UPDATEG_LOG, `${ts} [UPG-SYNC] ${msg}\n`, "utf-8"); } catch {}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
/** 同步更新 npm
|
|
180
|
+
/** 同步更新 npm 全局包并 spawn 新进程重启。不依赖 systemd 或任何服务管理器。 */
|
|
181
181
|
function syncUpdateAndRestart(): void {
|
|
182
182
|
updLog(`sync update start, pid=${process.pid}`);
|
|
183
183
|
appendStartupTrace("updateg: sync update start", { pid: process.pid });
|
|
@@ -236,7 +236,7 @@ function syncUpdateAndRestart(): void {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
updLog("sync update done, parent exiting in 2s");
|
|
239
|
-
appendStartupTrace("updateg: sync update done, exiting
|
|
239
|
+
appendStartupTrace("updateg: sync update done, exiting", { pid: process.pid });
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
// ---------------------------------------------------------------------------
|