@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.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 ? "19364663ff03f2285de336864a84ede592970f39" : void 0) ?? "unknown";
|
|
416
|
+
const commitShort = readInjected(true ? "19364663" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
417
|
+
const version = readInjected(true ? "0.9.82-rc.504" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
418
|
+
const builtAt = readInjected(true ? "2026-07-12T11:06:20.137Z" : void 0);
|
|
419
419
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
420
420
|
return cached;
|
|
421
421
|
}
|
|
@@ -20888,8 +20888,11 @@ async function pullRemoteNodeQueues(components, mesh, localDaemonId, candidateDa
|
|
|
20888
20888
|
if (!nodeDaemonId) return;
|
|
20889
20889
|
if (daemonIdsEquivalent(nodeDaemonId, localDaemonId)) return;
|
|
20890
20890
|
if (daemonIdListIncludes(candidateDaemonIds, nodeDaemonId)) return;
|
|
20891
|
-
const
|
|
20892
|
-
if (
|
|
20891
|
+
const getPeerStatus = components.getMeshPeerConnectionStatus;
|
|
20892
|
+
if (getPeerStatus) {
|
|
20893
|
+
const peerSnapshot = getPeerStatus(nodeDaemonId);
|
|
20894
|
+
if (!peerSnapshot || String(peerSnapshot.state) !== "connected") return;
|
|
20895
|
+
}
|
|
20893
20896
|
for (const pendingEventArgs of pulls) {
|
|
20894
20897
|
let events;
|
|
20895
20898
|
try {
|
|
@@ -20966,8 +20969,11 @@ async function collectLiveNodesWithSessions(components, mesh, selfIds, localDaem
|
|
|
20966
20969
|
const nodeDaemonId = readNonEmptyString2(node.daemonId);
|
|
20967
20970
|
const isLocalNode = !nodeDaemonId || daemonIdListIncludes(selfIds, nodeDaemonId) || daemonIdsEquivalent(nodeDaemonId, localDaemonId);
|
|
20968
20971
|
if (!isLocalNode) {
|
|
20969
|
-
const
|
|
20970
|
-
if (
|
|
20972
|
+
const getPeerStatus = components.getMeshPeerConnectionStatus;
|
|
20973
|
+
if (getPeerStatus) {
|
|
20974
|
+
const peerSnapshot = getPeerStatus(nodeDaemonId);
|
|
20975
|
+
if (!peerSnapshot || String(peerSnapshot.state) !== "connected") return node;
|
|
20976
|
+
}
|
|
20971
20977
|
}
|
|
20972
20978
|
let statusResult;
|
|
20973
20979
|
try {
|