@vellumai/cli 0.12.2-dev.202609171820.9ecfa87 → 0.12.2-dev.202609172017.3da279e
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/lib/local.ts +2 -10
package/package.json
CHANGED
package/src/lib/local.ts
CHANGED
|
@@ -1181,14 +1181,6 @@ export async function startCes(
|
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
|
|
1184
|
-
/**
|
|
1185
|
-
* Check if the daemon is responsive by hitting its HTTP `/healthz` endpoint.
|
|
1186
|
-
* This replaces the socket-based `isSocketResponsive()` check.
|
|
1187
|
-
*/
|
|
1188
|
-
async function isDaemonResponsive(daemonPort: number): Promise<boolean> {
|
|
1189
|
-
return httpHealthCheck(daemonPort);
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
1184
|
/**
|
|
1193
1185
|
* Find the PID of the process listening on the given TCP port.
|
|
1194
1186
|
* Uses `lsof` on macOS/Linux. Returns undefined if no listener is found
|
|
@@ -1284,7 +1276,7 @@ async function checkOrphanedDaemon(
|
|
|
1284
1276
|
pidFile: string,
|
|
1285
1277
|
daemonPort: number,
|
|
1286
1278
|
): Promise<boolean> {
|
|
1287
|
-
if (!(await
|
|
1279
|
+
if (!(await httpHealthCheck(daemonPort))) return false;
|
|
1288
1280
|
|
|
1289
1281
|
const recoveredPid = recoverPidFile(pidFile, daemonPort);
|
|
1290
1282
|
if (recoveredPid) {
|
|
@@ -1682,7 +1674,7 @@ export async function startLocalDaemon(
|
|
|
1682
1674
|
const daemonSpawnEnv = envWithCompiledRuntimeNodePath(daemonEnv);
|
|
1683
1675
|
|
|
1684
1676
|
// Write a sentinel PID file before spawning so concurrent hatch() calls
|
|
1685
|
-
// see the file and fall through to the
|
|
1677
|
+
// see the file and fall through to the httpHealthCheck() port check
|
|
1686
1678
|
// instead of racing to spawn a duplicate daemon.
|
|
1687
1679
|
writeFileSync(pidFile, "starting", "utf-8");
|
|
1688
1680
|
|