@neat.is/core 0.10.2 → 0.10.3-dev.20260930

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.
@@ -33,7 +33,7 @@ import {
33
33
  startStalenessLoop,
34
34
  touchLastSeen,
35
35
  writeAtomically
36
- } from "./chunk-TXKOAART.js";
36
+ } from "./chunk-LNIVRE4L.js";
37
37
  import {
38
38
  assertBindAuthority,
39
39
  buildOtelReceiver,
@@ -1946,4 +1946,4 @@ export {
1946
1946
  resolveHost,
1947
1947
  startDaemon
1948
1948
  };
1949
- //# sourceMappingURL=chunk-CAGAHYDB.js.map
1949
+ //# sourceMappingURL=chunk-DLQNMU3R.js.map
@@ -17001,14 +17001,12 @@ async function readLockPid(lockPath) {
17001
17001
  async function classifyLockHolder(lockPath, probe = defaultLockHolderProbe) {
17002
17002
  const lockPid = await readLockPid(lockPath);
17003
17003
  const daemonPid = await probe.daemonPidFromFile();
17004
- if (daemonPid !== void 0 && daemonPid !== process.pid && probe.isPidAlive(daemonPid) && // The lock already names the daemon, or the daemon answers on its port.
17005
- // Either confirms a live daemon is in the picture (the second guards
17006
- // against a stale pidfile whose PID got reused).
17007
- (daemonPid === lockPid || await probe.daemonResponds())) {
17008
- return { kind: "daemon", pid: daemonPid };
17009
- }
17010
17004
  if (lockPid !== void 0 && lockPid !== process.pid && probe.isPidAlive(lockPid)) {
17011
- return { kind: "command", pid: lockPid };
17005
+ return { kind: lockPid === daemonPid ? "daemon" : "command", pid: lockPid };
17006
+ }
17007
+ if (daemonPid !== void 0 && daemonPid !== process.pid && probe.isPidAlive(daemonPid) && // Guards against a stale pidfile whose PID got reused.
17008
+ await probe.daemonResponds()) {
17009
+ return { kind: "daemon", pid: daemonPid };
17012
17010
  }
17013
17011
  return { kind: "stale" };
17014
17012
  }
@@ -23532,4 +23530,4 @@ export {
23532
23530
  deprovisionConnector,
23533
23531
  buildApi
23534
23532
  };
23535
- //# sourceMappingURL=chunk-TXKOAART.js.map
23533
+ //# sourceMappingURL=chunk-LNIVRE4L.js.map