@adhdev/daemon-standalone 0.9.76-rc.1 → 0.9.76-rc.3

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
@@ -48492,6 +48492,10 @@ Run 'adhdev doctor' for detailed diagnostics.`
48492
48492
  }
48493
48493
  var fs10 = __toESM2(require("fs"));
48494
48494
  var CHANNEL_NPM_TAG = { stable: "latest", preview: "next" };
48495
+ var CHANNEL_SERVER_URL = {
48496
+ stable: "https://api.adhf.dev",
48497
+ preview: "https://api-preview.adhf.dev"
48498
+ };
48495
48499
  function normalizeReleaseChannel(value) {
48496
48500
  if (typeof value !== "string") return null;
48497
48501
  const normalized = value.trim().toLowerCase();
@@ -49188,6 +49192,7 @@ Run 'adhdev doctor' for detailed diagnostics.`
49188
49192
  const npmTag = CHANNEL_NPM_TAG[channel];
49189
49193
  const latest = String(execNpmCommandSync(["view", `${pkgName}@${npmTag}`, "version"], { encoding: "utf-8", timeout: 1e4 }, npmSurface)).trim();
49190
49194
  LOG2.info("Upgrade", `Latest ${pkgName}@${npmTag}: v${latest}`);
49195
+ updateConfig({ updateChannel: channel, serverUrl: CHANNEL_SERVER_URL[channel] });
49191
49196
  let currentInstalled = null;
49192
49197
  try {
49193
49198
  const currentJson = String(execNpmCommandSync(["ls", "-g", pkgName, "--depth=0", "--json"], {