@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.mjs CHANGED
@@ -18642,10 +18642,14 @@ var DaemonCommandRouter = class {
18642
18642
  currentInstalled = parsed?.dependencies?.[pkgName]?.version || null;
18643
18643
  } catch {
18644
18644
  }
18645
- if (currentInstalled === latest) {
18645
+ const runningVersion = typeof this.deps.statusVersion === "string" ? this.deps.statusVersion.trim().replace(/^v/, "") : null;
18646
+ if (currentInstalled === latest && runningVersion === latest) {
18646
18647
  LOG.info("Upgrade", `Already on latest version v${latest}; skipping install`);
18647
18648
  return { success: true, upgraded: false, alreadyLatest: true, version: latest };
18648
18649
  }
18650
+ if (currentInstalled === latest && runningVersion && runningVersion !== latest) {
18651
+ LOG.info("Upgrade", `Installed package is v${latest}, but running daemon is v${runningVersion}; scheduling restart`);
18652
+ }
18649
18653
  spawnDetachedDaemonUpgradeHelper({
18650
18654
  packageName: pkgName,
18651
18655
  targetVersion: latest,