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 +7 -8
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30748,7 +30748,7 @@ var init_adhdev_daemon = __esm({
|
|
|
30748
30748
|
fs11 = __toESM(require("fs"));
|
|
30749
30749
|
path14 = __toESM(require("path"));
|
|
30750
30750
|
import_chalk2 = __toESM(require("chalk"));
|
|
30751
|
-
pkgVersion = "0.6.
|
|
30751
|
+
pkgVersion = "0.6.26";
|
|
30752
30752
|
if (pkgVersion === "unknown") {
|
|
30753
30753
|
try {
|
|
30754
30754
|
const possiblePaths = [
|
|
@@ -31268,13 +31268,12 @@ async function quickSetup() {
|
|
|
31268
31268
|
markSetupComplete(["daemon"], ["adhdev"]);
|
|
31269
31269
|
if (loginResult) {
|
|
31270
31270
|
const configUpdate = {
|
|
31271
|
-
|
|
31271
|
+
machineSecret: loginResult.machineSecret,
|
|
31272
31272
|
userEmail: loginResult.email,
|
|
31273
31273
|
userName: loginResult.name
|
|
31274
31274
|
};
|
|
31275
|
-
if (loginResult.machineId
|
|
31275
|
+
if (loginResult.machineId) {
|
|
31276
31276
|
configUpdate.machineId = loginResult.machineId;
|
|
31277
|
-
configUpdate.machineSecret = loginResult.machineSecret;
|
|
31278
31277
|
console.log(import_chalk3.default.green(` \u2713 Machine registered`));
|
|
31279
31278
|
}
|
|
31280
31279
|
updateConfig(configUpdate);
|
|
@@ -31365,12 +31364,11 @@ async function loginFlow() {
|
|
|
31365
31364
|
return null;
|
|
31366
31365
|
}
|
|
31367
31366
|
const data = await res.json();
|
|
31368
|
-
if (data.status === "completed" && data.
|
|
31367
|
+
if (data.status === "completed" && data.machineSecret) {
|
|
31369
31368
|
pollSpinner.succeed(`Authenticated as ${import_chalk3.default.bold(data.user?.email || "user")}`);
|
|
31370
31369
|
return {
|
|
31371
|
-
connectionToken: data.connectionToken,
|
|
31372
31370
|
machineId: data.machineId || void 0,
|
|
31373
|
-
machineSecret: data.machineSecret
|
|
31371
|
+
machineSecret: data.machineSecret,
|
|
31374
31372
|
email: data.user?.email,
|
|
31375
31373
|
name: data.user?.name
|
|
31376
31374
|
};
|