adhdev 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
@@ -39917,7 +39917,7 @@ function summarizeSessionHostPruneResult(result) {
39917
39917
  keptCount: Array.isArray(value.keptSessionIds) ? value.keptSessionIds.length : void 0
39918
39918
  };
39919
39919
  }
39920
- var fs10, CHANNEL_NPM_TAG, CHAT_COMMANDS, READ_DEBUG_ENABLED2, DaemonCommandRouter;
39920
+ var fs10, CHANNEL_NPM_TAG, CHANNEL_SERVER_URL, CHAT_COMMANDS, READ_DEBUG_ENABLED2, DaemonCommandRouter;
39921
39921
  var init_router = __esm({
39922
39922
  "../../oss/packages/daemon-core/src/commands/router.ts"() {
39923
39923
  "use strict";
@@ -39945,6 +39945,10 @@ var init_router = __esm({
39945
39945
  init_upgrade_helper();
39946
39946
  fs10 = __toESM(require("fs"));
39947
39947
  CHANNEL_NPM_TAG = { stable: "latest", preview: "next" };
39948
+ CHANNEL_SERVER_URL = {
39949
+ stable: "https://api.adhf.dev",
39950
+ preview: "https://api-preview.adhf.dev"
39951
+ };
39948
39952
  CHAT_COMMANDS = [
39949
39953
  "send_chat",
39950
39954
  "new_chat",
@@ -40550,6 +40554,7 @@ var init_router = __esm({
40550
40554
  const npmTag = CHANNEL_NPM_TAG[channel];
40551
40555
  const latest = String(execNpmCommandSync(["view", `${pkgName}@${npmTag}`, "version"], { encoding: "utf-8", timeout: 1e4 }, npmSurface)).trim();
40552
40556
  LOG.info("Upgrade", `Latest ${pkgName}@${npmTag}: v${latest}`);
40557
+ updateConfig({ updateChannel: channel, serverUrl: CHANNEL_SERVER_URL[channel] });
40553
40558
  let currentInstalled = null;
40554
40559
  try {
40555
40560
  const currentJson = String(execNpmCommandSync(["ls", "-g", pkgName, "--depth=0", "--json"], {
@@ -49455,17 +49460,19 @@ var init_server_connection = __esm({
49455
49460
  return;
49456
49461
  } else if (message.type === "version_mismatch") {
49457
49462
  const p = message.payload;
49463
+ const updateCommand = typeof p.updateCommand === "string" && p.updateCommand.trim() ? p.updateCommand.trim() : "adhdev daemon:upgrade";
49458
49464
  LOG.info("Server", `
49459
49465
  \u{1F504} Update available: v${p.current} \u2192 v${p.latest}`);
49460
- LOG.info("Server", ` Run: adhdev daemon:upgrade
49466
+ LOG.info("Server", ` Run: ${updateCommand}
49461
49467
  `);
49462
49468
  } else if (message.type === "force_update_required") {
49463
49469
  this.compatBlocked = true;
49464
49470
  const p = message.payload;
49471
+ const updateCommand = typeof p.updateCommand === "string" && p.updateCommand.trim() ? p.updateCommand.trim() : "adhdev daemon:upgrade";
49465
49472
  LOG.error("Server", `
49466
49473
  \u26D4 Daemon v${this.options.daemonVersion} is no longer compatible.`);
49467
49474
  LOG.error("Server", ` Minimum required: v${p.minVersion}`);
49468
- LOG.error("Server", ` Run: adhdev daemon:upgrade
49475
+ LOG.error("Server", ` Run: ${updateCommand}
49469
49476
  `);
49470
49477
  }
49471
49478
  const handlers = this.messageHandlers.get(message.type);
@@ -59154,7 +59161,7 @@ var init_adhdev_daemon = __esm({
59154
59161
  init_version();
59155
59162
  init_src();
59156
59163
  init_runtime_defaults();
59157
- pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.1" });
59164
+ pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.3" });
59158
59165
  AdhdevDaemon = class _AdhdevDaemon {
59159
59166
  localHttpServer = null;
59160
59167
  localWss = null;