@xiaohhhh1/canvas-agent 0.4.9 → 0.4.10

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.
@@ -2,4 +2,4 @@ export declare const AGENT_REPLACED_EXIT_CODE = 75;
2
2
  export declare function shouldRestartAgent(code: number | null, stopping: boolean): boolean;
3
3
  export declare function shouldReplaceSupervisorLock(ownerPid: number, ageMs: number, ownerAlive: boolean): boolean;
4
4
  /** Keep the local HTTP worker alive, but step aside when a newer package replaces it. */
5
- export declare function startHttpSupervisor(): void;
5
+ export declare function startHttpSupervisor(): undefined;
@@ -91,7 +91,7 @@ export function startHttpSupervisor() {
91
91
  throw new Error("无法定位 Canvas Agent 启动文件");
92
92
  const lockDescriptor = acquireSupervisorLock();
93
93
  if (lockDescriptor === undefined)
94
- return;
94
+ return void process.exit(0);
95
95
  let child;
96
96
  let stopping = false;
97
97
  let restartTimer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiaohhhh1/canvas-agent",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",