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/index.js
CHANGED
|
@@ -29911,7 +29911,7 @@ ${e?.stack || ""}`);
|
|
|
29911
29911
|
let token = "";
|
|
29912
29912
|
try {
|
|
29913
29913
|
const config2 = JSON.parse(fs10.readFileSync(configPath, "utf-8"));
|
|
29914
|
-
token = config2.
|
|
29914
|
+
token = config2.machineSecret || "";
|
|
29915
29915
|
} catch {
|
|
29916
29916
|
}
|
|
29917
29917
|
const http3 = esmRequire("https");
|
|
@@ -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.25";
|
|
30752
30752
|
if (pkgVersion === "unknown") {
|
|
30753
30753
|
try {
|
|
30754
30754
|
const possiblePaths = [
|
|
@@ -30815,9 +30815,12 @@ ${err?.stack || ""}`);
|
|
|
30815
30815
|
}
|
|
30816
30816
|
writeDaemonPid(process.pid);
|
|
30817
30817
|
const config2 = loadConfig();
|
|
30818
|
-
const authToken = config2.machineSecret
|
|
30818
|
+
const authToken = config2.machineSecret;
|
|
30819
30819
|
if (!authToken) {
|
|
30820
|
-
console.log(import_chalk2.default.red("\n\u2717 No
|
|
30820
|
+
console.log(import_chalk2.default.red("\n\u2717 No machine secret found."));
|
|
30821
|
+
if (config2.connectionToken) {
|
|
30822
|
+
console.log(import_chalk2.default.yellow(" Legacy connectionToken detected \u2014 please re-run setup."));
|
|
30823
|
+
}
|
|
30821
30824
|
console.log(import_chalk2.default.gray(" Run `adhdev setup` first.\n"));
|
|
30822
30825
|
process.exit(1);
|
|
30823
30826
|
}
|