adhdev 0.6.61 → 0.6.63
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 +63 -11
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +19 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5191,10 +5191,11 @@ var init_provider_loader = __esm({
|
|
|
5191
5191
|
return this.getProviderDir(this.upstreamDir, category, type);
|
|
5192
5192
|
}
|
|
5193
5193
|
/**
|
|
5194
|
-
|
|
5195
|
-
|
|
5194
|
+
* Canonical builtin directory for a provider.
|
|
5195
|
+
*/
|
|
5196
5196
|
getBuiltinProviderDir(category, type) {
|
|
5197
|
-
|
|
5197
|
+
const builtinRoot = this.getPrimaryBuiltinDir();
|
|
5198
|
+
return builtinRoot ? this.getProviderDir(builtinRoot, category, type) : "";
|
|
5198
5199
|
}
|
|
5199
5200
|
/**
|
|
5200
5201
|
* Find the on-disk directory for a provider by type.
|
|
@@ -40758,7 +40759,7 @@ var init_adhdev_daemon = __esm({
|
|
|
40758
40759
|
fs12 = __toESM(require("fs"));
|
|
40759
40760
|
path14 = __toESM(require("path"));
|
|
40760
40761
|
import_chalk2 = __toESM(require("chalk"));
|
|
40761
|
-
pkgVersion = "0.6.
|
|
40762
|
+
pkgVersion = "0.6.63";
|
|
40762
40763
|
if (pkgVersion === "unknown") {
|
|
40763
40764
|
try {
|
|
40764
40765
|
const possiblePaths = [
|
|
@@ -41495,11 +41496,24 @@ async function installCliOnly() {
|
|
|
41495
41496
|
console.log();
|
|
41496
41497
|
if (currentVersion) {
|
|
41497
41498
|
console.log(import_chalk3.default.green(` \u2713 Currently installed: v${currentVersion}`));
|
|
41499
|
+
let latestVersion = null;
|
|
41500
|
+
try {
|
|
41501
|
+
latestVersion = execSyncLocal("npm show adhdev version", {
|
|
41502
|
+
encoding: "utf-8",
|
|
41503
|
+
timeout: 5e3,
|
|
41504
|
+
stdio: ["pipe", "pipe", "pipe"]
|
|
41505
|
+
}).trim();
|
|
41506
|
+
} catch {
|
|
41507
|
+
}
|
|
41508
|
+
if (latestVersion && currentVersion === latestVersion) {
|
|
41509
|
+
console.log(import_chalk3.default.gray(" (Already up to date)"));
|
|
41510
|
+
return;
|
|
41511
|
+
}
|
|
41498
41512
|
if (!isNpx) {
|
|
41499
41513
|
const { doUpdate } = await import_inquirer.default.prompt([{
|
|
41500
41514
|
type: "confirm",
|
|
41501
41515
|
name: "doUpdate",
|
|
41502
|
-
message:
|
|
41516
|
+
message: `Update to latest version${latestVersion ? ` (v${latestVersion})` : ""}?`,
|
|
41503
41517
|
default: true
|
|
41504
41518
|
}]);
|
|
41505
41519
|
if (!doUpdate) return;
|