adhdev 0.9.76-rc.4 → 0.9.76-rc.6

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/cli/index.js CHANGED
@@ -40056,7 +40056,7 @@ function resolveAdhdevMcpServerLaunch(options) {
40056
40056
  if (!entryPath) return null;
40057
40057
  return {
40058
40058
  command: options.nodeExecutable?.trim() || process.execPath,
40059
- args: [entryPath, "--repo-mesh", options.meshId]
40059
+ args: [entryPath, "--mode", "ipc", "--repo-mesh", options.meshId]
40060
40060
  };
40061
40061
  }
40062
40062
  function resolveAdhdevMcpEntryPath(explicitPath) {
@@ -41714,7 +41714,8 @@ var init_router = __esm({
41714
41714
  };
41715
41715
  if (args?.inlineMesh) {
41716
41716
  mcpServerEntry.env = {
41717
- ADHDEV_INLINE_MESH: JSON.stringify(mesh)
41717
+ ADHDEV_INLINE_MESH: JSON.stringify(mesh),
41718
+ ADHDEV_MCP_TRANSPORT: "ipc"
41718
41719
  };
41719
41720
  }
41720
41721
  const mcpConfig = {
@@ -90012,7 +90013,9 @@ var init_daemon_mesh_manager = __esm({
90012
90013
  "read_chat",
90013
90014
  "git_status",
90014
90015
  "git_diff_summary",
90015
- "launch_cli"
90016
+ "launch_cli",
90017
+ "git_checkpoint",
90018
+ "resolve_action"
90016
90019
  ]);
90017
90020
  setRules(rules) {
90018
90021
  const valid = [];
@@ -90303,7 +90306,7 @@ var init_adhdev_daemon = __esm({
90303
90306
  init_version();
90304
90307
  init_src();
90305
90308
  init_runtime_defaults();
90306
- pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.4" });
90309
+ pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.6" });
90307
90310
  AdhdevDaemon = class _AdhdevDaemon {
90308
90311
  localHttpServer = null;
90309
90312
  localWss = null;
@@ -91405,7 +91408,20 @@ ${err?.stack || ""}`);
91405
91408
  return;
91406
91409
  }
91407
91410
  try {
91408
- const result = await this.components.router.execute(command, normalizedArgs, "ipc");
91411
+ let result;
91412
+ if (command === "mesh_relay_command") {
91413
+ if (!this.meshManager) throw new Error("Mesh manager is not initialized");
91414
+ const targetDaemonId = typeof normalizedArgs.targetDaemonId === "string" ? normalizedArgs.targetDaemonId : "";
91415
+ const relayedCommand = typeof normalizedArgs.command === "string" ? normalizedArgs.command : "";
91416
+ const relayedArgs = normalizedArgs.args && typeof normalizedArgs.args === "object" ? normalizedArgs.args : {};
91417
+ if (!targetDaemonId || !relayedCommand) {
91418
+ throw new Error("mesh_relay_command requires targetDaemonId and command");
91419
+ }
91420
+ const relayResult = await this.meshManager.sendCommand(targetDaemonId, relayedCommand, relayedArgs);
91421
+ result = { success: true, result: relayResult };
91422
+ } else {
91423
+ result = await this.components.router.execute(command, normalizedArgs, "ipc");
91424
+ }
91409
91425
  ws.send(JSON.stringify({
91410
91426
  type: "ext:command_result",
91411
91427
  payload: {
@@ -91524,8 +91540,54 @@ ${err?.stack || ""}`);
91524
91540
  // src/wizard.ts
91525
91541
  var wizard_exports = {};
91526
91542
  __export(wizard_exports, {
91543
+ buildSetupReleaseContext: () => buildSetupReleaseContext,
91544
+ readLatestPublishedCliVersion: () => readLatestPublishedCliVersion,
91527
91545
  runWizard: () => runWizard
91528
91546
  });
91547
+ function normalizeSetupReleaseChannel(value) {
91548
+ if (typeof value !== "string") return null;
91549
+ const normalized = value.trim().toLowerCase();
91550
+ if (normalized === "stable" || normalized === "latest") return "stable";
91551
+ if (normalized === "preview" || normalized === "next") return "preview";
91552
+ return null;
91553
+ }
91554
+ function inferReleaseChannelFromServerUrl(serverUrl) {
91555
+ if (typeof serverUrl !== "string") return null;
91556
+ const normalized = serverUrl.trim().toLowerCase();
91557
+ if (!normalized) return null;
91558
+ if (normalized.includes("api-preview.adhf.dev") || normalized.includes("dev.adhf.dev")) return "preview";
91559
+ if (normalized.includes("api.adhf.dev") || normalized.includes("adhf.dev")) return "stable";
91560
+ return null;
91561
+ }
91562
+ function buildDashboardUrl(serverUrl, channel) {
91563
+ try {
91564
+ const url2 = new URL(serverUrl);
91565
+ if (url2.hostname === "api-preview.adhf.dev") return "https://dev.adhf.dev/dashboard";
91566
+ if (url2.hostname === "api.adhf.dev") return "https://adhf.dev/dashboard";
91567
+ if (url2.hostname === "127.0.0.1" || url2.hostname === "localhost") {
91568
+ url2.port = url2.port === "3100" ? "3000" : url2.port;
91569
+ url2.pathname = "/dashboard";
91570
+ url2.search = "";
91571
+ url2.hash = "";
91572
+ return url2.toString();
91573
+ }
91574
+ } catch {
91575
+ }
91576
+ return channel === "preview" ? "https://dev.adhf.dev/dashboard" : "https://adhf.dev/dashboard";
91577
+ }
91578
+ function buildSetupReleaseContext(options = {}) {
91579
+ const env3 = options.env || process.env;
91580
+ const envServerUrl = typeof env3.ADHDEV_SERVER_URL === "string" && env3.ADHDEV_SERVER_URL.trim() ? env3.ADHDEV_SERVER_URL.trim() : null;
91581
+ const config2 = options.config || {};
91582
+ const channel = normalizeSetupReleaseChannel(config2.updateChannel) || inferReleaseChannelFromServerUrl(envServerUrl) || inferReleaseChannelFromServerUrl(config2.serverUrl) || "stable";
91583
+ const serverUrl = envServerUrl || CHANNEL_SERVER_URL2[channel];
91584
+ return {
91585
+ channel,
91586
+ npmTag: CHANNEL_NPM_TAG2[channel],
91587
+ serverUrl,
91588
+ dashboardUrl: buildDashboardUrl(serverUrl, channel)
91589
+ };
91590
+ }
91529
91591
  async function openBrowser(url2) {
91530
91592
  const mod = await import("open");
91531
91593
  return mod.default(url2);
@@ -91534,10 +91596,10 @@ function hasCloudMachineAuth() {
91534
91596
  const config2 = loadConfig();
91535
91597
  return Boolean(config2.machineSecret && config2.machineSecret.trim());
91536
91598
  }
91537
- function readLatestPublishedCliVersion(execFileSyncLocal) {
91599
+ function readLatestPublishedCliVersion(execFileSyncLocal, npmTag = "latest") {
91538
91600
  const surface = resolveCurrentGlobalInstallSurface({ packageName: "adhdev" });
91539
91601
  try {
91540
- return execFileSyncLocal(surface.npmExecutable, [...surface.npmArgsPrefix || [], "view", "adhdev", "version"], {
91602
+ return execFileSyncLocal(surface.npmExecutable, [...surface.npmArgsPrefix || [], "view", `adhdev@${npmTag}`, "version"], {
91541
91603
  encoding: "utf-8",
91542
91604
  timeout: 5e3,
91543
91605
  stdio: ["pipe", "pipe", "pipe"],
@@ -91568,38 +91630,41 @@ function readInstalledGlobalCliVersion(execFileSyncLocal) {
91568
91630
  }
91569
91631
  async function runWizard(options = {}) {
91570
91632
  console.log(LOGO);
91633
+ const config2 = loadConfig();
91634
+ const releaseContext = buildSetupReleaseContext({ config: config2 });
91571
91635
  if (isSetupComplete() && hasCloudMachineAuth() && !options.force) {
91572
- const config2 = loadConfig();
91573
91636
  console.log(source_default.green("\u2713") + " ADHDev is already configured.");
91574
91637
  console.log(source_default.gray(` Account: ${config2.userEmail || "not logged in"}`));
91638
+ console.log(source_default.gray(` Server: ${releaseContext.serverUrl}`));
91575
91639
  console.log();
91576
- await checkForUpdate();
91577
- await startDaemonFlow();
91640
+ await checkForUpdate(releaseContext);
91641
+ await startDaemonFlow(releaseContext);
91578
91642
  return;
91579
91643
  }
91580
- await quickSetup();
91644
+ await quickSetup(releaseContext);
91581
91645
  }
91582
- async function checkForUpdate() {
91646
+ async function checkForUpdate(releaseContext) {
91583
91647
  try {
91584
91648
  const { execFileSync: execFileSync6 } = await import("child_process");
91585
91649
  const currentVersion = resolvePackageVersion();
91586
- const latestVersion = readLatestPublishedCliVersion(execFileSync6);
91650
+ const latestVersion = readLatestPublishedCliVersion(execFileSync6, releaseContext.npmTag);
91587
91651
  if (!latestVersion) return;
91588
91652
  if (!currentVersion || !latestVersion || currentVersion === latestVersion) return;
91589
- console.log(source_default.yellow(` Update available: ${currentVersion} \u2192 ${latestVersion}`));
91653
+ console.log(source_default.yellow(` Update available (${releaseContext.channel}/${releaseContext.npmTag}): ${currentVersion} \u2192 ${latestVersion}`));
91590
91654
  const { doUpdate } = await (await Promise.resolve().then(() => (init_lib(), lib_exports))).default.prompt([{
91591
91655
  type: "confirm",
91592
91656
  name: "doUpdate",
91593
- message: `Update adhdev CLI to v${latestVersion}?`,
91657
+ message: `Update adhdev CLI to v${latestVersion} from ${releaseContext.npmTag}?`,
91594
91658
  default: true
91595
91659
  }]);
91596
91660
  if (!doUpdate) {
91597
- console.log(source_default.gray(" Skipping update. Run: npm install -g adhdev@latest\n"));
91661
+ console.log(source_default.gray(` Skipping update. Run: npm install -g adhdev@${releaseContext.npmTag}
91662
+ `));
91598
91663
  return;
91599
91664
  }
91600
91665
  const spinner = (await Promise.resolve().then(() => (init_ora(), ora_exports))).default("Updating adhdev CLI...").start();
91601
91666
  try {
91602
- const installCommand = buildPinnedGlobalInstallCommand({ packageName: "adhdev", targetVersion: "latest" });
91667
+ const installCommand = buildPinnedGlobalInstallCommand({ packageName: "adhdev", targetVersion: releaseContext.npmTag });
91603
91668
  execFileSync6(installCommand.command, installCommand.args, {
91604
91669
  encoding: "utf-8",
91605
91670
  timeout: 6e4,
@@ -91610,14 +91675,17 @@ async function checkForUpdate() {
91610
91675
  console.log();
91611
91676
  } catch (e) {
91612
91677
  spinner.fail("Update failed");
91613
- console.log(source_default.gray(" Manual: npm install -g adhdev@latest\n"));
91678
+ console.log(source_default.gray(` Manual: npm install -g adhdev@${releaseContext.npmTag}
91679
+ `));
91614
91680
  }
91615
91681
  } catch {
91616
91682
  }
91617
91683
  }
91618
- async function quickSetup() {
91684
+ async function quickSetup(releaseContext) {
91619
91685
  console.log(source_default.bold("\n\u{1F680} Quick Setup\n"));
91620
- const loginResult = await loginFlow();
91686
+ console.log(source_default.gray(` Channel: ${releaseContext.channel} (${releaseContext.npmTag})`));
91687
+ console.log(source_default.gray(` Server: ${releaseContext.serverUrl}`));
91688
+ const loginResult = await loginFlow(releaseContext);
91621
91689
  const setupDate = (/* @__PURE__ */ new Date()).toISOString();
91622
91690
  if (!loginResult) {
91623
91691
  updateConfig({
@@ -91628,7 +91696,9 @@ async function quickSetup() {
91628
91696
  setupDate,
91629
91697
  userEmail: null,
91630
91698
  userName: null,
91631
- machineSecret: null
91699
+ machineSecret: null,
91700
+ updateChannel: releaseContext.channel,
91701
+ serverUrl: releaseContext.serverUrl
91632
91702
  });
91633
91703
  console.log(source_default.yellow("\u26A0 Setup is not complete without login. Run `adhdev setup` after signing in."));
91634
91704
  }
@@ -91639,14 +91709,16 @@ async function quickSetup() {
91639
91709
  userEmail: loginResult.email,
91640
91710
  userName: loginResult.name,
91641
91711
  setupDate,
91712
+ updateChannel: releaseContext.channel,
91713
+ serverUrl: releaseContext.serverUrl,
91642
91714
  ...loginResult.registeredMachineId ? { registeredMachineId: loginResult.registeredMachineId } : {}
91643
91715
  };
91644
91716
  updateConfig(configUpdate);
91645
91717
  console.log(source_default.green(` \u2713 Machine registered`));
91646
91718
  }
91647
- await installCliOnly();
91719
+ await installCliOnly(releaseContext);
91648
91720
  if (loginResult) {
91649
- await startDaemonFlow();
91721
+ await startDaemonFlow(releaseContext);
91650
91722
  } else {
91651
91723
  console.log(source_default.gray(" Start daemon after login: adhdev setup"));
91652
91724
  console.log();
@@ -91655,6 +91727,7 @@ async function quickSetup() {
91655
91727
  console.log(source_default.bold("\n\u{1F389} Setup Complete!\n"));
91656
91728
  console.log(` ${source_default.bold("User:")} ${loginResult?.email || "not logged in"}`);
91657
91729
  console.log(` ${source_default.bold("Status:")} ${loginResult ? source_default.green("Ready to connect") : source_default.yellow("Login required")}`);
91730
+ console.log(` ${source_default.bold("Server:")} ${releaseContext.serverUrl}`);
91658
91731
  console.log();
91659
91732
  console.log(source_default.gray(" Next steps:"));
91660
91733
  console.log(source_default.gray(` ${loginResult ? "adhdev daemon \u2014 Start the main daemon (IDE / remote features)" : "adhdev setup \u2014 Sign in to finish setup and enable the daemon"}`));
@@ -91665,11 +91738,12 @@ async function quickSetup() {
91665
91738
  console.log(source_default.gray(" adhdev launch claude \u2014 Start Claude Code agent"));
91666
91739
  console.log(source_default.gray(" adhdev status \u2014 Check setup status"));
91667
91740
  console.log();
91668
- console.log(source_default.cyan(" Dashboard: https://adhf.dev/dashboard"));
91741
+ console.log(source_default.cyan(` Dashboard: ${releaseContext.dashboardUrl}`));
91669
91742
  console.log();
91670
91743
  }
91671
- async function loginFlow() {
91744
+ async function loginFlow(releaseContext) {
91672
91745
  console.log(source_default.bold("\n\u{1F510} Login to ADHDev\n"));
91746
+ console.log(source_default.gray(` Auth server: ${releaseContext.serverUrl}`));
91673
91747
  const { wantLogin } = await lib_default.prompt([
91674
91748
  {
91675
91749
  type: "confirm",
@@ -91686,7 +91760,7 @@ async function loginFlow() {
91686
91760
  try {
91687
91761
  const config2 = loadConfig();
91688
91762
  const os31 = await import("os");
91689
- const res = await fetch(`${SERVER_URL}/auth/cli/init`, {
91763
+ const res = await fetch(`${releaseContext.serverUrl}/auth/cli/init`, {
91690
91764
  method: "POST",
91691
91765
  headers: { "Content-Type": "application/json" },
91692
91766
  body: JSON.stringify({
@@ -91728,7 +91802,7 @@ async function loginFlow() {
91728
91802
  while (Date.now() - startTime < timeout) {
91729
91803
  await new Promise((r) => setTimeout(r, 3e3));
91730
91804
  try {
91731
- const res = await fetch(`${SERVER_URL}/auth/cli/poll`, {
91805
+ const res = await fetch(`${releaseContext.serverUrl}/auth/cli/poll`, {
91732
91806
  method: "POST",
91733
91807
  headers: { "Content-Type": "application/json" },
91734
91808
  body: JSON.stringify({ deviceCode })
@@ -91758,9 +91832,9 @@ async function loginFlow() {
91758
91832
  console.log();
91759
91833
  console.log(source_default.yellow(" To fix this, do one of the following:"));
91760
91834
  console.log(source_default.gray(" 1. Remove an unused machine from the dashboard:"));
91761
- console.log(source_default.gray(" https://adhf.dev/account \u2192 Registered Machines \u2192 \u2715 Remove"));
91835
+ console.log(source_default.gray(` ${releaseContext.dashboardUrl.replace(/\/dashboard$/, "/account")} \u2192 Registered Machines \u2192 \u2715 Remove`));
91762
91836
  console.log(source_default.gray(" 2. Upgrade your plan:"));
91763
- console.log(source_default.gray(" https://adhf.dev/account?tab=billing"));
91837
+ console.log(source_default.gray(` ${releaseContext.dashboardUrl.replace(/\/dashboard$/, "/account?tab=billing")}`));
91764
91838
  console.log();
91765
91839
  console.log(source_default.gray(" Then run `adhdev setup` again."));
91766
91840
  console.log();
@@ -91772,11 +91846,12 @@ async function loginFlow() {
91772
91846
  pollSpinner.fail("Authentication timed out");
91773
91847
  return null;
91774
91848
  }
91775
- async function startDaemonFlow() {
91849
+ async function startDaemonFlow(releaseContext) {
91776
91850
  const { isDaemonRunning: isDaemonRunning2 } = await Promise.resolve().then(() => (init_adhdev_daemon(), adhdev_daemon_exports));
91777
91851
  if (isDaemonRunning2()) {
91778
91852
  console.log(source_default.green(" \u2713 Daemon is already running"));
91779
- console.log(source_default.gray(" Dashboard: https://adhf.dev/dashboard\n"));
91853
+ console.log(source_default.gray(` Dashboard: ${releaseContext.dashboardUrl}
91854
+ `));
91780
91855
  return;
91781
91856
  }
91782
91857
  const { startDaemon } = await lib_default.prompt([
@@ -91830,7 +91905,7 @@ async function startDaemonFlow() {
91830
91905
  } else {
91831
91906
  daemonSpinner.warn("Daemon starting in background (may take a few seconds)");
91832
91907
  }
91833
- console.log(source_default.gray(" Dashboard: https://adhf.dev/dashboard"));
91908
+ console.log(source_default.gray(` Dashboard: ${releaseContext.dashboardUrl}`));
91834
91909
  console.log(source_default.gray(` Logs: ${logPath}`));
91835
91910
  console.log();
91836
91911
  } catch (e) {
@@ -91838,7 +91913,7 @@ async function startDaemonFlow() {
91838
91913
  console.log(source_default.gray(" Manual: adhdev daemon\n"));
91839
91914
  }
91840
91915
  }
91841
- async function installCliOnly() {
91916
+ async function installCliOnly(releaseContext) {
91842
91917
  const { execFileSync: execFileSyncLocal } = await import("child_process");
91843
91918
  const currentVersion = readInstalledGlobalCliVersion(execFileSyncLocal);
91844
91919
  const isNpx = process.env.npm_execpath?.includes("npx") || process.argv[1]?.includes("npx") || process.argv[1]?.includes("_npx");
@@ -91851,7 +91926,7 @@ async function installCliOnly() {
91851
91926
  console.log();
91852
91927
  if (currentVersion) {
91853
91928
  console.log(source_default.green(` \u2713 Currently installed: v${currentVersion}`));
91854
- const latestVersion = readLatestPublishedCliVersion(execFileSyncLocal);
91929
+ const latestVersion = readLatestPublishedCliVersion(execFileSyncLocal, releaseContext.npmTag);
91855
91930
  if (latestVersion && currentVersion === latestVersion) {
91856
91931
  console.log(source_default.gray(" (Already up to date)"));
91857
91932
  return;
@@ -91860,12 +91935,12 @@ async function installCliOnly() {
91860
91935
  const { doUpdate } = await lib_default.prompt([{
91861
91936
  type: "confirm",
91862
91937
  name: "doUpdate",
91863
- message: `Update to latest version${latestVersion ? ` (v${latestVersion})` : ""}?`,
91938
+ message: `Update to ${releaseContext.npmTag} version${latestVersion ? ` (v${latestVersion})` : ""}?`,
91864
91939
  default: true
91865
91940
  }]);
91866
91941
  if (!doUpdate) return;
91867
91942
  } else {
91868
- console.log(source_default.gray(" Updating to latest..."));
91943
+ console.log(source_default.gray(` Updating to ${releaseContext.npmTag}...`));
91869
91944
  }
91870
91945
  } else {
91871
91946
  console.log(source_default.yellow(" \u2717 Not installed globally"));
@@ -91873,7 +91948,7 @@ async function installCliOnly() {
91873
91948
  const { doInstall } = await lib_default.prompt([{
91874
91949
  type: "confirm",
91875
91950
  name: "doInstall",
91876
- message: "Install adhdev CLI globally? (npm install -g adhdev)",
91951
+ message: `Install adhdev CLI globally? (npm install -g adhdev@${releaseContext.npmTag})`,
91877
91952
  default: true
91878
91953
  }]);
91879
91954
  if (!doInstall) {
@@ -91886,14 +91961,14 @@ async function installCliOnly() {
91886
91961
  }
91887
91962
  const installSpinner = ora2("Installing adhdev CLI...").start();
91888
91963
  try {
91889
- const installCommand = buildPinnedGlobalInstallCommand({ packageName: "adhdev", targetVersion: "latest" });
91964
+ const installCommand = buildPinnedGlobalInstallCommand({ packageName: "adhdev", targetVersion: releaseContext.npmTag });
91890
91965
  execFileSyncLocal(installCommand.command, installCommand.args, {
91891
91966
  encoding: "utf-8",
91892
91967
  timeout: 6e4,
91893
91968
  stdio: ["pipe", "pipe", "pipe"],
91894
91969
  ...installCommand.execOptions
91895
91970
  });
91896
- const newVersion = readInstalledGlobalCliVersion(execFileSyncLocal) || "latest";
91971
+ const newVersion = readInstalledGlobalCliVersion(execFileSyncLocal) || releaseContext.npmTag;
91897
91972
  installSpinner.succeed(`adhdev CLI ${currentVersion ? "updated" : "installed"} \u2713 (v${newVersion})`);
91898
91973
  console.log(source_default.gray(" Try: adhdev daemon"));
91899
91974
  console.log();
@@ -91904,11 +91979,11 @@ async function installCliOnly() {
91904
91979
  if (osModule.platform() === "win32") {
91905
91980
  console.log(source_default.gray(" On Windows, run PowerShell as Administrator"));
91906
91981
  }
91907
- console.log(source_default.gray(" Manual: npm install -g adhdev@latest"));
91982
+ console.log(source_default.gray(` Manual: npm install -g adhdev@${releaseContext.npmTag}`));
91908
91983
  console.log();
91909
91984
  }
91910
91985
  }
91911
- var SERVER_URL, LOGO, DIVIDER;
91986
+ var CHANNEL_NPM_TAG2, CHANNEL_SERVER_URL2, LOGO, DIVIDER;
91912
91987
  var init_wizard = __esm({
91913
91988
  "src/wizard.ts"() {
91914
91989
  "use strict";
@@ -91917,7 +91992,14 @@ var init_wizard = __esm({
91917
91992
  init_ora();
91918
91993
  init_src();
91919
91994
  init_version();
91920
- SERVER_URL = process.env.ADHDEV_SERVER_URL || "https://api.adhf.dev";
91995
+ CHANNEL_NPM_TAG2 = {
91996
+ stable: "latest",
91997
+ preview: "next"
91998
+ };
91999
+ CHANNEL_SERVER_URL2 = {
92000
+ stable: "https://api.adhf.dev",
92001
+ preview: "https://api-preview.adhf.dev"
92002
+ };
91921
92003
  LOGO = `
91922
92004
  ${source_default.cyan("\u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557")}
91923
92005
  ${source_default.cyan("\u2551")} ${source_default.bold.white("\u{1F9A6} ADHDev Setup Wizard")} ${source_default.cyan("\u2551")}
@@ -93941,8 +94023,8 @@ var DEFAULT_TRACE_FOLLOW_INTERVAL_MS = 1500;
93941
94023
  var DEFAULT_DAEMON_PORT_TEXT = String(DEFAULT_DAEMON_PORT);
93942
94024
  var DEV_SERVER_PORT2 = 19280;
93943
94025
  var DEV_SERVER_BASE_URL = `http://127.0.0.1:${DEV_SERVER_PORT2}`;
93944
- var CHANNEL_NPM_TAG2 = { stable: "latest", preview: "next" };
93945
- var CHANNEL_SERVER_URL2 = {
94026
+ var CHANNEL_NPM_TAG3 = { stable: "latest", preview: "next" };
94027
+ var CHANNEL_SERVER_URL3 = {
93946
94028
  stable: "https://api.adhf.dev",
93947
94029
  preview: "https://api-preview.adhf.dev"
93948
94030
  };
@@ -93962,11 +94044,11 @@ async function resolveConfiguredUpdateChannel() {
93962
94044
  }
93963
94045
  }
93964
94046
  function releaseChannelLabel(channel) {
93965
- return `${channel} (${CHANNEL_NPM_TAG2[channel]})`;
94047
+ return `${channel} (${CHANNEL_NPM_TAG3[channel]})`;
93966
94048
  }
93967
94049
  async function persistReleaseChannel(channel) {
93968
94050
  const { updateConfig: updateConfig2 } = await Promise.resolve().then(() => (init_src(), src_exports));
93969
- updateConfig2({ updateChannel: channel, serverUrl: CHANNEL_SERVER_URL2[channel] });
94051
+ updateConfig2({ updateChannel: channel, serverUrl: CHANNEL_SERVER_URL3[channel] });
93970
94052
  }
93971
94053
  function hideCommand(command) {
93972
94054
  command._hidden = true;
@@ -94291,7 +94373,7 @@ async function runDaemonUpgrade(options, pkgVersion3) {
94291
94373
  return;
94292
94374
  }
94293
94375
  const configuredChannel = requestedChannel || await resolveConfiguredUpdateChannel();
94294
- const npmTag = CHANNEL_NPM_TAG2[configuredChannel];
94376
+ const npmTag = CHANNEL_NPM_TAG3[configuredChannel];
94295
94377
  if (requestedChannel) {
94296
94378
  await persistReleaseChannel(configuredChannel);
94297
94379
  }
@@ -94962,7 +95044,7 @@ function registerDaemonCommands(program2, pkgVersion3) {
94962
95044
  const current = normalizeReleaseChannel2(config2.updateChannel) || "stable";
94963
95045
  console.log(source_default.bold("\n ADHDev Channel\n"));
94964
95046
  console.log(` ${source_default.bold("Channel:")} ${releaseChannelLabel(current)}`);
94965
- console.log(` ${source_default.bold("Server:")} ${config2.serverUrl || CHANNEL_SERVER_URL2[current]}`);
95047
+ console.log(` ${source_default.bold("Server:")} ${config2.serverUrl || CHANNEL_SERVER_URL3[current]}`);
94966
95048
  console.log();
94967
95049
  });
94968
95050
  channel.command("set <channel>").description("Set the ADHDev channel: stable/latest or preview/next").action(async (channelName) => {
@@ -94977,7 +95059,7 @@ function registerDaemonCommands(program2, pkgVersion3) {
94977
95059
  await persistReleaseChannel(selected);
94978
95060
  console.log(source_default.green(`
94979
95061
  \u2713 Channel set to ${releaseChannelLabel(selected)}`));
94980
- console.log(source_default.gray(` Server: ${CHANNEL_SERVER_URL2[selected]}`));
95062
+ console.log(source_default.gray(` Server: ${CHANNEL_SERVER_URL3[selected]}`));
94981
95063
  console.log(source_default.gray(` Update: adhdev update --channel ${selected}
94982
95064
  `));
94983
95065
  });