@adhdev/daemon-standalone 1.0.39-rc.1 → 1.0.39-rc.2

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
@@ -36528,10 +36528,10 @@ var require_dist3 = __commonJS({
36528
36528
  }
36529
36529
  function getDaemonBuildInfo() {
36530
36530
  if (cached2) return cached2;
36531
- const commit = readInjected(true ? "a1082159590bba25809d2f8a65c10055b8d3bc97" : void 0) ?? "unknown";
36532
- const commitShort = readInjected(true ? "a1082159" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36533
- const version2 = readInjected(true ? "1.0.39-rc.1" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36534
- const builtAt = readInjected(true ? "2026-08-07T02:52:22.815Z" : void 0);
36531
+ const commit = readInjected(true ? "38c912aafd78adf13d2647bd84b7dffc3c65eece" : void 0) ?? "unknown";
36532
+ const commitShort = readInjected(true ? "38c912aa" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36533
+ const version2 = readInjected(true ? "1.0.39-rc.2" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36534
+ const builtAt = readInjected(true ? "2026-08-07T06:34:33.803Z" : void 0);
36535
36535
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
36536
36536
  return cached2;
36537
36537
  }
@@ -77537,6 +77537,7 @@ ${lastSnapshot}`;
77537
77537
  resolveMuted: () => resolveMuted,
77538
77538
  resolveNodeSchedulingPriority: () => resolveNodeSchedulingPriority,
77539
77539
  resolveNotBefore: () => resolveNotBefore,
77540
+ resolveNpmPublishedVersion: () => resolveNpmPublishedVersion,
77540
77541
  resolveProviderChannel: () => resolveProviderChannel,
77541
77542
  resolveProviderMaxParallel: () => resolveProviderMaxParallel,
77542
77543
  resolveScopedMeshId: () => resolveScopedMeshId,
@@ -90707,6 +90708,27 @@ exec "${portableNode}" "${cliEntry}" "$@"
90707
90708
  }
90708
90709
  );
90709
90710
  }
90711
+ function resolveNpmPublishedVersion(packageName, tagOrVersion, surface, options = {}) {
90712
+ const args = ["view", `${packageName}@${tagOrVersion}`, "version"];
90713
+ const execOptions = {
90714
+ encoding: "utf-8",
90715
+ ..."timeout" in options ? options.timeout === void 0 ? {} : { timeout: options.timeout } : { timeout: 1e4 },
90716
+ ...options.stdio ? { stdio: options.stdio } : {}
90717
+ };
90718
+ if (options.execFileSync) {
90719
+ const runnerOptions = surface?.execOptions || getNpmExecOptions();
90720
+ return String(options.execFileSync(
90721
+ surface?.npmExecutable || "npm",
90722
+ [...surface?.npmArgsPrefix || [], ...args],
90723
+ {
90724
+ ...execOptions,
90725
+ ...runnerOptions,
90726
+ ...process.platform === "win32" ? { windowsHide: true } : {}
90727
+ }
90728
+ )).trim();
90729
+ }
90730
+ return String(execNpmCommandSync(args, execOptions, surface)).trim();
90731
+ }
90710
90732
  function isManagedSessionHostPid(pid) {
90711
90733
  const commandLine = getProcessCommandLine(pid);
90712
90734
  return !!commandLine && /session-host-daemon/i.test(commandLine);
@@ -91435,7 +91457,7 @@ ${body}
91435
91457
  LOG2.info("Upgrade", "Ignoring deprecated channel hint \u2014 upgrade target is the build track");
91436
91458
  }
91437
91459
  const npmTag = IDENTITY.npmTag;
91438
- const latest = String(execNpmCommandSync(["view", `${pkgName}@${npmTag}`, "version"], { encoding: "utf-8", timeout: 1e4 }, npmSurface)).trim();
91460
+ const latest = resolveNpmPublishedVersion(pkgName, npmTag, npmSurface);
91439
91461
  LOG2.info("Upgrade", `Latest ${pkgName}@${npmTag}: v${latest}`);
91440
91462
  let currentInstalled = null;
91441
91463
  try {