@adhdev/daemon-core 0.9.82-rc.502 → 0.9.82-rc.504
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/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/mesh/mesh-remote-event-pull.ts +36 -20
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 ? "19364663ff03f2285de336864a84ede592970f39" : void 0) ?? "unknown";
|
|
421
|
+
const commitShort = readInjected(true ? "19364663" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
422
|
+
const version = readInjected(true ? "0.9.82-rc.504" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
423
|
+
const builtAt = readInjected(true ? "2026-07-12T11:06:20.137Z" : void 0);
|
|
424
424
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
425
425
|
return cached;
|
|
426
426
|
}
|
|
@@ -20886,8 +20886,11 @@ async function pullRemoteNodeQueues(components, mesh, localDaemonId, candidateDa
|
|
|
20886
20886
|
if (!nodeDaemonId) return;
|
|
20887
20887
|
if (daemonIdsEquivalent(nodeDaemonId, localDaemonId)) return;
|
|
20888
20888
|
if (daemonIdListIncludes(candidateDaemonIds, nodeDaemonId)) return;
|
|
20889
|
-
const
|
|
20890
|
-
if (
|
|
20889
|
+
const getPeerStatus = components.getMeshPeerConnectionStatus;
|
|
20890
|
+
if (getPeerStatus) {
|
|
20891
|
+
const peerSnapshot = getPeerStatus(nodeDaemonId);
|
|
20892
|
+
if (!peerSnapshot || String(peerSnapshot.state) !== "connected") return;
|
|
20893
|
+
}
|
|
20891
20894
|
for (const pendingEventArgs of pulls) {
|
|
20892
20895
|
let events;
|
|
20893
20896
|
try {
|
|
@@ -20964,8 +20967,11 @@ async function collectLiveNodesWithSessions(components, mesh, selfIds, localDaem
|
|
|
20964
20967
|
const nodeDaemonId = readNonEmptyString2(node.daemonId);
|
|
20965
20968
|
const isLocalNode = !nodeDaemonId || daemonIdListIncludes(selfIds, nodeDaemonId) || daemonIdsEquivalent(nodeDaemonId, localDaemonId);
|
|
20966
20969
|
if (!isLocalNode) {
|
|
20967
|
-
const
|
|
20968
|
-
if (
|
|
20970
|
+
const getPeerStatus = components.getMeshPeerConnectionStatus;
|
|
20971
|
+
if (getPeerStatus) {
|
|
20972
|
+
const peerSnapshot = getPeerStatus(nodeDaemonId);
|
|
20973
|
+
if (!peerSnapshot || String(peerSnapshot.state) !== "connected") return node;
|
|
20974
|
+
}
|
|
20969
20975
|
}
|
|
20970
20976
|
let statusResult;
|
|
20971
20977
|
try {
|