@adhdev/daemon-core 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.mjs CHANGED
@@ -20602,6 +20602,10 @@ async function maybeRunDaemonUpgradeHelperFromEnv() {
20602
20602
  // src/commands/router.ts
20603
20603
  import * as fs10 from "fs";
20604
20604
  var CHANNEL_NPM_TAG = { stable: "latest", preview: "next" };
20605
+ var CHANNEL_SERVER_URL = {
20606
+ stable: "https://api.adhf.dev",
20607
+ preview: "https://api-preview.adhf.dev"
20608
+ };
20605
20609
  function normalizeReleaseChannel(value) {
20606
20610
  if (typeof value !== "string") return null;
20607
20611
  const normalized = value.trim().toLowerCase();
@@ -21298,6 +21302,7 @@ var DaemonCommandRouter = class {
21298
21302
  const npmTag = CHANNEL_NPM_TAG[channel];
21299
21303
  const latest = String(execNpmCommandSync(["view", `${pkgName}@${npmTag}`, "version"], { encoding: "utf-8", timeout: 1e4 }, npmSurface)).trim();
21300
21304
  LOG.info("Upgrade", `Latest ${pkgName}@${npmTag}: v${latest}`);
21305
+ updateConfig({ updateChannel: channel, serverUrl: CHANNEL_SERVER_URL[channel] });
21301
21306
  let currentInstalled = null;
21302
21307
  try {
21303
21308
  const currentJson = String(execNpmCommandSync(["ls", "-g", pkgName, "--depth=0", "--json"], {