@adhdev/daemon-core 0.9.82-rc.513 → 0.9.82-rc.514
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/detection/cli-detector.d.ts +7 -0
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/boot/daemon-lifecycle.ts +7 -1
- package/src/commands/high-family/mesh-status.ts +12 -0
- package/src/detection/cli-detector.ts +21 -1
package/dist/index.mjs
CHANGED
|
@@ -412,10 +412,10 @@ function readInjected(value) {
|
|
|
412
412
|
}
|
|
413
413
|
function getDaemonBuildInfo() {
|
|
414
414
|
if (cached) return cached;
|
|
415
|
-
const commit = readInjected(true ? "
|
|
416
|
-
const commitShort = readInjected(true ? "
|
|
417
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
418
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
415
|
+
const commit = readInjected(true ? "380556d36ec79e6fb92d2323b43226d45f8239a6" : void 0) ?? "unknown";
|
|
416
|
+
const commitShort = readInjected(true ? "380556d3" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
417
|
+
const version = readInjected(true ? "0.9.82-rc.514" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
418
|
+
const builtAt = readInjected(true ? "2026-07-13T06:16:17.656Z" : void 0);
|
|
419
419
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
420
420
|
return cached;
|
|
421
421
|
}
|
|
@@ -14179,11 +14179,15 @@ function buildProviderVersions(detected) {
|
|
|
14179
14179
|
}
|
|
14180
14180
|
return out;
|
|
14181
14181
|
}
|
|
14182
|
+
function setDefaultProviderLoader(providerLoader) {
|
|
14183
|
+
defaultProviderLoader = providerLoader;
|
|
14184
|
+
}
|
|
14182
14185
|
function refreshProviderVersionsSnapshot(providerLoader) {
|
|
14183
14186
|
if (providerVersionsRefreshInFlight) return providerVersionsRefreshInFlight;
|
|
14187
|
+
const loader = providerLoader ?? defaultProviderLoader;
|
|
14184
14188
|
providerVersionsRefreshInFlight = (async () => {
|
|
14185
14189
|
try {
|
|
14186
|
-
const detected = await detectCLIs(
|
|
14190
|
+
const detected = await detectCLIs(loader, { includeVersion: true });
|
|
14187
14191
|
cachedProviderVersions = buildProviderVersions(detected);
|
|
14188
14192
|
cachedProviderVersionsAt = Date.now();
|
|
14189
14193
|
} catch {
|
|
@@ -14200,7 +14204,7 @@ function getCachedProviderVersions(providerLoader) {
|
|
|
14200
14204
|
}
|
|
14201
14205
|
return { ...cachedProviderVersions };
|
|
14202
14206
|
}
|
|
14203
|
-
var PROVIDER_VERSIONS_TTL_MS, cachedProviderVersions, cachedProviderVersionsAt, providerVersionsRefreshInFlight;
|
|
14207
|
+
var PROVIDER_VERSIONS_TTL_MS, cachedProviderVersions, cachedProviderVersionsAt, providerVersionsRefreshInFlight, defaultProviderLoader;
|
|
14204
14208
|
var init_cli_detector = __esm({
|
|
14205
14209
|
"src/detection/cli-detector.ts"() {
|
|
14206
14210
|
"use strict";
|
|
@@ -58259,6 +58263,12 @@ var meshStatusHandlers = {
|
|
|
58259
58263
|
}
|
|
58260
58264
|
applyInlineMeshBranchConvergence(mesh, node, status);
|
|
58261
58265
|
finalizeMeshNodeStatus({ status, node, daemonId, isSelfNode, directTruthUnavailable: directTruthUnavailableNodeIds.has(nodeId) });
|
|
58266
|
+
if (node.reportedProviderVersions && typeof node.reportedProviderVersions === "object") {
|
|
58267
|
+
status.providerVersions = node.reportedProviderVersions;
|
|
58268
|
+
}
|
|
58269
|
+
if (typeof node.reportedDaemonBuildVersion === "string" && node.reportedDaemonBuildVersion) {
|
|
58270
|
+
status.daemonBuildVersion = node.reportedDaemonBuildVersion;
|
|
58271
|
+
}
|
|
58262
58272
|
return status;
|
|
58263
58273
|
};
|
|
58264
58274
|
const meshNodeEntries = [...(mesh.nodes || []).entries()];
|
|
@@ -70481,6 +70491,7 @@ async function initDaemonComponents(config) {
|
|
|
70481
70491
|
});
|
|
70482
70492
|
providerLoader.loadAll();
|
|
70483
70493
|
providerLoader.registerToDetector();
|
|
70494
|
+
setDefaultProviderLoader(providerLoader);
|
|
70484
70495
|
const versionArchive = new VersionArchive();
|
|
70485
70496
|
providerLoader.setVersionArchive(versionArchive);
|
|
70486
70497
|
setTimeout(() => {
|