@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
|
@@ -38,6 +38,13 @@ export declare function detectCLI(cliId: string, providerLoader?: ProviderLoader
|
|
|
38
38
|
* what the git_status envelope carries and the mesh_status skew check compares.
|
|
39
39
|
*/
|
|
40
40
|
export declare function buildProviderVersions(detected: CLIInfo[]): Record<string, string>;
|
|
41
|
+
/**
|
|
42
|
+
* Register this daemon's ProviderLoader as the fallback used by loader-less
|
|
43
|
+
* provider-version reads (getCachedProviderVersions() with no argument). Called
|
|
44
|
+
* once at boot. Without it the coordinator's self node never resolves a CLI list,
|
|
45
|
+
* so its provider-version chips stay empty even though remote nodes populate.
|
|
46
|
+
*/
|
|
47
|
+
export declare function setDefaultProviderLoader(providerLoader: ProviderLoader): void;
|
|
41
48
|
/**
|
|
42
49
|
* Return the current cached provider-versions map for this daemon, triggering a
|
|
43
50
|
* lazy background refresh when the snapshot is stale/cold. Never blocks: returns
|
package/dist/index.js
CHANGED
|
@@ -417,10 +417,10 @@ function readInjected(value) {
|
|
|
417
417
|
}
|
|
418
418
|
function getDaemonBuildInfo() {
|
|
419
419
|
if (cached) return cached;
|
|
420
|
-
const commit = readInjected(true ? "
|
|
421
|
-
const commitShort = readInjected(true ? "
|
|
422
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
423
|
-
const builtAt = readInjected(true ? "2026-07-
|
|
420
|
+
const commit = readInjected(true ? "380556d36ec79e6fb92d2323b43226d45f8239a6" : void 0) ?? "unknown";
|
|
421
|
+
const commitShort = readInjected(true ? "380556d3" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
422
|
+
const version = readInjected(true ? "0.9.82-rc.514" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
423
|
+
const builtAt = readInjected(true ? "2026-07-13T06:16:17.656Z" : void 0);
|
|
424
424
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
425
425
|
return cached;
|
|
426
426
|
}
|
|
@@ -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 import_child_process2, os6, path12, import_fs12, PROVIDER_VERSIONS_TTL_MS, cachedProviderVersions, cachedProviderVersionsAt, providerVersionsRefreshInFlight;
|
|
14207
|
+
var import_child_process2, os6, path12, import_fs12, 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";
|
|
@@ -58679,6 +58683,12 @@ var meshStatusHandlers = {
|
|
|
58679
58683
|
}
|
|
58680
58684
|
applyInlineMeshBranchConvergence(mesh, node, status);
|
|
58681
58685
|
finalizeMeshNodeStatus({ status, node, daemonId, isSelfNode, directTruthUnavailable: directTruthUnavailableNodeIds.has(nodeId) });
|
|
58686
|
+
if (node.reportedProviderVersions && typeof node.reportedProviderVersions === "object") {
|
|
58687
|
+
status.providerVersions = node.reportedProviderVersions;
|
|
58688
|
+
}
|
|
58689
|
+
if (typeof node.reportedDaemonBuildVersion === "string" && node.reportedDaemonBuildVersion) {
|
|
58690
|
+
status.daemonBuildVersion = node.reportedDaemonBuildVersion;
|
|
58691
|
+
}
|
|
58682
58692
|
return status;
|
|
58683
58693
|
};
|
|
58684
58694
|
const meshNodeEntries = [...(mesh.nodes || []).entries()];
|
|
@@ -70891,6 +70901,7 @@ async function initDaemonComponents(config) {
|
|
|
70891
70901
|
});
|
|
70892
70902
|
providerLoader.loadAll();
|
|
70893
70903
|
providerLoader.registerToDetector();
|
|
70904
|
+
setDefaultProviderLoader(providerLoader);
|
|
70894
70905
|
const versionArchive = new VersionArchive();
|
|
70895
70906
|
providerLoader.setVersionArchive(versionArchive);
|
|
70896
70907
|
setTimeout(() => {
|