adhdev 0.6.24 → 0.6.25
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 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -30351,7 +30351,7 @@ ${e?.stack || ""}`);
|
|
|
30351
30351
|
let token = "";
|
|
30352
30352
|
try {
|
|
30353
30353
|
const config2 = JSON.parse(fs10.readFileSync(configPath, "utf-8"));
|
|
30354
|
-
token = config2.
|
|
30354
|
+
token = config2.machineSecret || "";
|
|
30355
30355
|
} catch {
|
|
30356
30356
|
}
|
|
30357
30357
|
const http3 = esmRequire("https");
|
|
@@ -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.
|
|
31191
|
+
pkgVersion = "0.6.25";
|
|
31192
31192
|
if (pkgVersion === "unknown") {
|
|
31193
31193
|
try {
|
|
31194
31194
|
const possiblePaths = [
|
|
@@ -31255,9 +31255,12 @@ ${err?.stack || ""}`);
|
|
|
31255
31255
|
}
|
|
31256
31256
|
writeDaemonPid(process.pid);
|
|
31257
31257
|
const config2 = loadConfig();
|
|
31258
|
-
const authToken = config2.machineSecret
|
|
31258
|
+
const authToken = config2.machineSecret;
|
|
31259
31259
|
if (!authToken) {
|
|
31260
|
-
console.log(import_chalk2.default.red("\n\u2717 No
|
|
31260
|
+
console.log(import_chalk2.default.red("\n\u2717 No machine secret found."));
|
|
31261
|
+
if (config2.connectionToken) {
|
|
31262
|
+
console.log(import_chalk2.default.yellow(" Legacy connectionToken detected \u2014 please re-run setup."));
|
|
31263
|
+
}
|
|
31261
31264
|
console.log(import_chalk2.default.gray(" Run `adhdev setup` first.\n"));
|
|
31262
31265
|
process.exit(1);
|
|
31263
31266
|
}
|