@adhdev/daemon-core 0.9.13 → 0.9.14

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
@@ -18790,10 +18790,14 @@ var DaemonCommandRouter = class {
18790
18790
  currentInstalled = parsed?.dependencies?.[pkgName]?.version || null;
18791
18791
  } catch {
18792
18792
  }
18793
- if (currentInstalled === latest) {
18793
+ const runningVersion = typeof this.deps.statusVersion === "string" ? this.deps.statusVersion.trim().replace(/^v/, "") : null;
18794
+ if (currentInstalled === latest && runningVersion === latest) {
18794
18795
  LOG.info("Upgrade", `Already on latest version v${latest}; skipping install`);
18795
18796
  return { success: true, upgraded: false, alreadyLatest: true, version: latest };
18796
18797
  }
18798
+ if (currentInstalled === latest && runningVersion && runningVersion !== latest) {
18799
+ LOG.info("Upgrade", `Installed package is v${latest}, but running daemon is v${runningVersion}; scheduling restart`);
18800
+ }
18797
18801
  spawnDetachedDaemonUpgradeHelper({
18798
18802
  packageName: pkgName,
18799
18803
  targetVersion: latest,