adhdev 0.6.25 → 0.6.26

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
@@ -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.26";
31192
31192
  if (pkgVersion === "unknown") {
31193
31193
  try {
31194
31194
  const possiblePaths = [
@@ -31683,13 +31683,12 @@ async function quickSetup() {
31683
31683
  markSetupComplete(["daemon"], ["adhdev"]);
31684
31684
  if (loginResult) {
31685
31685
  const configUpdate = {
31686
- connectionToken: loginResult.connectionToken,
31686
+ machineSecret: loginResult.machineSecret,
31687
31687
  userEmail: loginResult.email,
31688
31688
  userName: loginResult.name
31689
31689
  };
31690
- if (loginResult.machineId && loginResult.machineSecret) {
31690
+ if (loginResult.machineId) {
31691
31691
  configUpdate.machineId = loginResult.machineId;
31692
- configUpdate.machineSecret = loginResult.machineSecret;
31693
31692
  console.log(import_chalk3.default.green(` \u2713 Machine registered`));
31694
31693
  }
31695
31694
  updateConfig(configUpdate);
@@ -31780,12 +31779,11 @@ async function loginFlow() {
31780
31779
  return null;
31781
31780
  }
31782
31781
  const data = await res.json();
31783
- if (data.status === "completed" && data.connectionToken) {
31782
+ if (data.status === "completed" && data.machineSecret) {
31784
31783
  pollSpinner.succeed(`Authenticated as ${import_chalk3.default.bold(data.user?.email || "user")}`);
31785
31784
  return {
31786
- connectionToken: data.connectionToken,
31787
31785
  machineId: data.machineId || void 0,
31788
- machineSecret: data.machineSecret || void 0,
31786
+ machineSecret: data.machineSecret,
31789
31787
  email: data.user?.email,
31790
31788
  name: data.user?.name
31791
31789
  };
@@ -32393,7 +32391,8 @@ function registerSetupCommands(program2, providerLoader) {
32393
32391
  }
32394
32392
  const config2 = loadConfig2();
32395
32393
  config2.apiToken = null;
32396
- config2.connectionToken = null;
32394
+ config2.machineSecret = void 0;
32395
+ config2.machineId = void 0;
32397
32396
  config2.userEmail = null;
32398
32397
  config2.userName = null;
32399
32398
  saveConfig2(config2);