adhdev 0.6.11 → 0.6.12
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 +21 -28
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +21 -28
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -16732,14 +16732,14 @@ var require_dist = __commonJS({
|
|
|
16732
16732
|
ProviderCliAdapter: () => ProviderCliAdapter,
|
|
16733
16733
|
ProviderInstanceManager: () => ProviderInstanceManager,
|
|
16734
16734
|
ProviderLoader: () => ProviderLoader2,
|
|
16735
|
-
VersionArchive: () =>
|
|
16735
|
+
VersionArchive: () => VersionArchive,
|
|
16736
16736
|
addCliHistory: () => addCliHistory,
|
|
16737
16737
|
buildAllManagedEntries: () => buildAllManagedEntries,
|
|
16738
16738
|
buildManagedAcps: () => buildManagedAcps,
|
|
16739
16739
|
buildManagedClis: () => buildManagedClis,
|
|
16740
16740
|
buildManagedIdes: () => buildManagedIdes,
|
|
16741
16741
|
connectCdpManager: () => connectCdpManager,
|
|
16742
|
-
detectAllVersions: () =>
|
|
16742
|
+
detectAllVersions: () => detectAllVersions,
|
|
16743
16743
|
detectCLIs: () => detectCLIs,
|
|
16744
16744
|
detectIDEs: () => detectIDEs,
|
|
16745
16745
|
findCdpManager: () => findCdpManager,
|
|
@@ -25866,7 +25866,7 @@ ${installInfo}`
|
|
|
25866
25866
|
var import_os3 = require("os");
|
|
25867
25867
|
var ARCHIVE_PATH = path11.join(os13.homedir(), ".adhdev", "version-history.json");
|
|
25868
25868
|
var MAX_ENTRIES_PER_PROVIDER = 20;
|
|
25869
|
-
var
|
|
25869
|
+
var VersionArchive = class {
|
|
25870
25870
|
history = {};
|
|
25871
25871
|
constructor() {
|
|
25872
25872
|
this.load();
|
|
@@ -25967,7 +25967,7 @@ ${installInfo}`
|
|
|
25967
25967
|
const raw = runCommand(`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${plistPath}"`);
|
|
25968
25968
|
return raw || null;
|
|
25969
25969
|
}
|
|
25970
|
-
async function
|
|
25970
|
+
async function detectAllVersions(loader, archive) {
|
|
25971
25971
|
const results = [];
|
|
25972
25972
|
const currentOs = (0, import_os3.platform)();
|
|
25973
25973
|
for (const provider of loader.getAll()) {
|
|
@@ -27372,8 +27372,8 @@ async (params) => {
|
|
|
27372
27372
|
// ─── Version Detection ───
|
|
27373
27373
|
async handleDetectVersions(req, res) {
|
|
27374
27374
|
try {
|
|
27375
|
-
const archive = new
|
|
27376
|
-
const results = await
|
|
27375
|
+
const archive = new VersionArchive();
|
|
27376
|
+
const results = await detectAllVersions(this.providerLoader, archive);
|
|
27377
27377
|
const installed = results.filter((r) => r.installed);
|
|
27378
27378
|
const notInstalled = results.filter((r) => !r.installed);
|
|
27379
27379
|
this.json(res, 200, {
|
|
@@ -29143,20 +29143,21 @@ data: ${JSON.stringify(msg.data)}
|
|
|
29143
29143
|
}
|
|
29144
29144
|
providerLoader.loadAll();
|
|
29145
29145
|
providerLoader.registerToDetector();
|
|
29146
|
-
|
|
29147
|
-
const versionArchive = new VersionArchive2();
|
|
29146
|
+
const versionArchive = new VersionArchive();
|
|
29148
29147
|
providerLoader.setVersionArchive(versionArchive);
|
|
29149
|
-
|
|
29150
|
-
|
|
29151
|
-
|
|
29152
|
-
|
|
29153
|
-
|
|
29154
|
-
|
|
29155
|
-
|
|
29156
|
-
|
|
29157
|
-
|
|
29158
|
-
|
|
29159
|
-
|
|
29148
|
+
detectAllVersions(providerLoader, versionArchive).then((versionResults) => {
|
|
29149
|
+
const installedProviders = versionResults.filter((v) => v.installed);
|
|
29150
|
+
const withVersion = installedProviders.filter((v) => v.version);
|
|
29151
|
+
LOG5.info("Init", `Provider versions: ${installedProviders.length} installed, ${withVersion.length} versioned`);
|
|
29152
|
+
for (const v of withVersion) {
|
|
29153
|
+
LOG5.info("Init", ` ${v.type} (${v.category}): v${v.version}${v.warning ? " \u26A0 " + v.warning : ""}`);
|
|
29154
|
+
}
|
|
29155
|
+
const noVersion = installedProviders.filter((v) => !v.version);
|
|
29156
|
+
if (noVersion.length > 0) {
|
|
29157
|
+
LOG5.warn("Init", ` ${noVersion.length} installed but version unknown: ${noVersion.map((v) => v.type).join(", ")}`);
|
|
29158
|
+
}
|
|
29159
|
+
}).catch(() => {
|
|
29160
|
+
});
|
|
29160
29161
|
const instanceManager = new ProviderInstanceManager();
|
|
29161
29162
|
const cdpManagers = /* @__PURE__ */ new Map();
|
|
29162
29163
|
const instanceIdMap = /* @__PURE__ */ new Map();
|
|
@@ -30539,7 +30540,7 @@ var init_adhdev_daemon = __esm({
|
|
|
30539
30540
|
fs2 = __toESM(require("fs"));
|
|
30540
30541
|
path2 = __toESM(require("path"));
|
|
30541
30542
|
import_chalk = __toESM(require("chalk"));
|
|
30542
|
-
pkgVersion = "0.6.
|
|
30543
|
+
pkgVersion = "0.6.12";
|
|
30543
30544
|
if (pkgVersion === "unknown") {
|
|
30544
30545
|
try {
|
|
30545
30546
|
const possiblePaths = [
|
|
@@ -30639,14 +30640,6 @@ var init_adhdev_daemon = __esm({
|
|
|
30639
30640
|
}
|
|
30640
30641
|
}
|
|
30641
30642
|
});
|
|
30642
|
-
const versionArchive = new import_daemon_core4.VersionArchive();
|
|
30643
|
-
(0, import_daemon_core4.detectAllVersions)(this.components.providerLoader, versionArchive).then((results) => {
|
|
30644
|
-
this.components.providerLoader.setVersionArchive(versionArchive);
|
|
30645
|
-
for (const info of results) {
|
|
30646
|
-
if (info.warning) import_daemon_core4.LOG.warn("Provider", `\u26A0 [${info.name}] ${info.warning}`);
|
|
30647
|
-
}
|
|
30648
|
-
}).catch(() => {
|
|
30649
|
-
});
|
|
30650
30643
|
this.components.providerLoader.fetchLatest().then(({ updated }) => {
|
|
30651
30644
|
if (updated) {
|
|
30652
30645
|
this.components.providerLoader.reload();
|