@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.
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  routeSpanToProject,
3
3
  startDaemon
4
- } from "./chunk-CAGAHYDB.js";
4
+ } from "./chunk-DLQNMU3R.js";
5
5
  import {
6
6
  ProjectNameCollisionError,
7
7
  addProject,
@@ -37,7 +37,7 @@ import {
37
37
  thresholdForEdgeType,
38
38
  touchLastSeen,
39
39
  writeAtomically
40
- } from "./chunk-TXKOAART.js";
40
+ } from "./chunk-LNIVRE4L.js";
41
41
  import {
42
42
  startOtelGrpcReceiver
43
43
  } from "./chunk-5SJHA5ZH.js";
package/dist/neatd.cjs CHANGED
@@ -18959,14 +18959,12 @@ async function readLockPid(lockPath) {
18959
18959
  async function classifyLockHolder(lockPath, probe = defaultLockHolderProbe) {
18960
18960
  const lockPid = await readLockPid(lockPath);
18961
18961
  const daemonPid = await probe.daemonPidFromFile();
18962
- if (daemonPid !== void 0 && daemonPid !== process.pid && probe.isPidAlive(daemonPid) && // The lock already names the daemon, or the daemon answers on its port.
18963
- // Either confirms a live daemon is in the picture (the second guards
18964
- // against a stale pidfile whose PID got reused).
18965
- (daemonPid === lockPid || await probe.daemonResponds())) {
18966
- return { kind: "daemon", pid: daemonPid };
18967
- }
18968
18962
  if (lockPid !== void 0 && lockPid !== process.pid && probe.isPidAlive(lockPid)) {
18969
- return { kind: "command", pid: lockPid };
18963
+ return { kind: lockPid === daemonPid ? "daemon" : "command", pid: lockPid };
18964
+ }
18965
+ if (daemonPid !== void 0 && daemonPid !== process.pid && probe.isPidAlive(daemonPid) && // Guards against a stale pidfile whose PID got reused.
18966
+ await probe.daemonResponds()) {
18967
+ return { kind: "daemon", pid: daemonPid };
18970
18968
  }
18971
18969
  return { kind: "stale" };
18972
18970
  }