adhdev 0.6.25 → 0.6.29

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
@@ -30457,13 +30457,13 @@ ${e?.stack || ""}`);
30457
30457
  const transport = url2.includes("transport=tcp") ? "tcp" : "udp";
30458
30458
  const isTls = url2.startsWith("turns:");
30459
30459
  const parts = cleanUrl.replace(/^turns?:/, "").split(":");
30460
- const hostname4 = parts[0];
30460
+ const hostname5 = parts[0];
30461
30461
  const port = parseInt(parts[1]) || (isTls ? 5349 : 3478);
30462
30462
  let relayType = "TurnUdp";
30463
30463
  if (isTls) relayType = "TurnTls";
30464
30464
  else if (transport === "tcp") relayType = "TurnTcp";
30465
30465
  converted.push({
30466
- hostname: hostname4,
30466
+ hostname: hostname5,
30467
30467
  port,
30468
30468
  username: server.username,
30469
30469
  password: server.credential,
@@ -31188,7 +31188,7 @@ var init_adhdev_daemon = __esm({
31188
31188
  fs11 = __toESM(require("fs"));
31189
31189
  path14 = __toESM(require("path"));
31190
31190
  import_chalk2 = __toESM(require("chalk"));
31191
- pkgVersion = "0.6.25";
31191
+ pkgVersion = "0.6.29";
31192
31192
  if (pkgVersion === "unknown") {
31193
31193
  try {
31194
31194
  const possiblePaths = [
@@ -31316,6 +31316,8 @@ ${err?.stack || ""}`);
31316
31316
  type: "adhdev-daemon",
31317
31317
  version: pkgVersion,
31318
31318
  platform: os16.platform(),
31319
+ hostname: os16.hostname(),
31320
+ machineId: config2.machineId,
31319
31321
  instanceId
31320
31322
  }
31321
31323
  });
@@ -31683,13 +31685,12 @@ async function quickSetup() {
31683
31685
  markSetupComplete(["daemon"], ["adhdev"]);
31684
31686
  if (loginResult) {
31685
31687
  const configUpdate = {
31686
- connectionToken: loginResult.connectionToken,
31688
+ machineSecret: loginResult.machineSecret,
31687
31689
  userEmail: loginResult.email,
31688
31690
  userName: loginResult.name
31689
31691
  };
31690
- if (loginResult.machineId && loginResult.machineSecret) {
31692
+ if (loginResult.machineId) {
31691
31693
  configUpdate.machineId = loginResult.machineId;
31692
- configUpdate.machineSecret = loginResult.machineSecret;
31693
31694
  console.log(import_chalk3.default.green(` \u2713 Machine registered`));
31694
31695
  }
31695
31696
  updateConfig(configUpdate);
@@ -31780,12 +31781,11 @@ async function loginFlow() {
31780
31781
  return null;
31781
31782
  }
31782
31783
  const data = await res.json();
31783
- if (data.status === "completed" && data.connectionToken) {
31784
+ if (data.status === "completed" && data.machineSecret) {
31784
31785
  pollSpinner.succeed(`Authenticated as ${import_chalk3.default.bold(data.user?.email || "user")}`);
31785
31786
  return {
31786
- connectionToken: data.connectionToken,
31787
31787
  machineId: data.machineId || void 0,
31788
- machineSecret: data.machineSecret || void 0,
31788
+ machineSecret: data.machineSecret,
31789
31789
  email: data.user?.email,
31790
31790
  name: data.user?.name
31791
31791
  };
@@ -32393,7 +32393,8 @@ function registerSetupCommands(program2, providerLoader) {
32393
32393
  }
32394
32394
  const config2 = loadConfig2();
32395
32395
  config2.apiToken = null;
32396
- config2.connectionToken = null;
32396
+ config2.machineSecret = void 0;
32397
+ config2.machineId = void 0;
32397
32398
  config2.userEmail = null;
32398
32399
  config2.userName = null;
32399
32400
  saveConfig2(config2);