adhdev 0.9.82-rc.28 → 0.9.82-rc.29
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 +17 -6
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -45946,12 +45946,12 @@ function collectLiveMeshSessionRecords(args) {
|
|
|
45946
45946
|
}
|
|
45947
45947
|
return matches;
|
|
45948
45948
|
}
|
|
45949
|
-
function applyCachedInlineMeshNodeStatus(status, node) {
|
|
45949
|
+
function applyCachedInlineMeshNodeStatus(status, node, options) {
|
|
45950
45950
|
const cachedStatus = readObjectRecord(node?.cachedStatus);
|
|
45951
45951
|
const liveGit = buildInlineMeshTransitGitStatus(node);
|
|
45952
|
-
const git = liveGit ?? buildCachedInlineMeshGitStatus(node);
|
|
45953
|
-
const error48 = liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
|
|
45954
|
-
const health = liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
|
|
45952
|
+
const git = options?.skipGit ? void 0 : liveGit ?? buildCachedInlineMeshGitStatus(node);
|
|
45953
|
+
const error48 = options?.skipError ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.error, node?.error);
|
|
45954
|
+
const health = options?.skipHealth ? void 0 : liveGit ? void 0 : readStringValue(cachedStatus.health, node?.health);
|
|
45955
45955
|
const machineStatus = readStringValue(cachedStatus.machineStatus, node?.machineStatus);
|
|
45956
45956
|
const lastSeenAt = toIsoTimestamp(cachedStatus.lastSeenAt ?? cachedStatus.last_seen_at ?? node?.lastSeenAt ?? node?.last_seen_at);
|
|
45957
45957
|
const updatedAt = toIsoTimestamp(cachedStatus.updatedAt ?? cachedStatus.updated_at ?? node?.updatedAt ?? node?.updated_at);
|
|
@@ -48384,7 +48384,18 @@ ${block}`);
|
|
|
48384
48384
|
}
|
|
48385
48385
|
}
|
|
48386
48386
|
if (!remoteProbeApplied) {
|
|
48387
|
-
|
|
48387
|
+
const connectionState = readStringValue(status.connection?.state);
|
|
48388
|
+
const inlineTransitGit = buildInlineMeshTransitGitStatus(node);
|
|
48389
|
+
const pendingPeerGitProbe = !inlineTransitGit && !isSelfNode && !!daemonId && (readStringValue(status.machineStatus) === "online" || readStringValue(status.health) === "online" || connectionState === "connecting" || connectionState === "connected" || connectionState === "unknown");
|
|
48390
|
+
if (pendingPeerGitProbe) {
|
|
48391
|
+
status.gitProbePending = true;
|
|
48392
|
+
status.health = "unknown";
|
|
48393
|
+
}
|
|
48394
|
+
if (applyCachedInlineMeshNodeStatus(
|
|
48395
|
+
status,
|
|
48396
|
+
node,
|
|
48397
|
+
pendingPeerGitProbe ? { skipGit: true, skipError: true, skipHealth: true } : void 0
|
|
48398
|
+
)) {
|
|
48388
48399
|
status.launchReady = !!daemonId && (readStringValue(status.machineStatus) === "online" || isSelfNode);
|
|
48389
48400
|
nodeStatuses.push(status);
|
|
48390
48401
|
continue;
|
|
@@ -67272,7 +67283,7 @@ var init_adhdev_daemon = __esm({
|
|
|
67272
67283
|
init_version();
|
|
67273
67284
|
init_src();
|
|
67274
67285
|
init_runtime_defaults();
|
|
67275
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.
|
|
67286
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.82-rc.29" });
|
|
67276
67287
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
67277
67288
|
localHttpServer = null;
|
|
67278
67289
|
localWss = null;
|