@adhdev/daemon-standalone 0.9.82-rc.304 → 0.9.82-rc.305
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 +28 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30004,10 +30004,10 @@ var require_dist3 = __commonJS({
|
|
|
30004
30004
|
}
|
|
30005
30005
|
function getDaemonBuildInfo() {
|
|
30006
30006
|
if (cached2) return cached2;
|
|
30007
|
-
const commit = readInjected(true ? "
|
|
30008
|
-
const commitShort = readInjected(true ? "
|
|
30009
|
-
const version2 = readInjected(true ? "0.9.82-rc.
|
|
30010
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
30007
|
+
const commit = readInjected(true ? "6103da081f92baaf891d3410e3d7ebc36d9e300d" : void 0) ?? "unknown";
|
|
30008
|
+
const commitShort = readInjected(true ? "6103da08" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
30009
|
+
const version2 = readInjected(true ? "0.9.82-rc.305" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
30010
|
+
const builtAt = readInjected(true ? "2026-06-17T06:08:38.971Z" : void 0);
|
|
30011
30011
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
30012
30012
|
return cached2;
|
|
30013
30013
|
}
|
|
@@ -71889,6 +71889,7 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
71889
71889
|
localConfirmedCount: 0,
|
|
71890
71890
|
peerAttemptedCount: 0,
|
|
71891
71891
|
peerConfirmedCount: 0,
|
|
71892
|
+
standingEvidenceCount: 0,
|
|
71892
71893
|
unavailableNodeIds: []
|
|
71893
71894
|
};
|
|
71894
71895
|
}
|
|
@@ -71900,6 +71901,7 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
71900
71901
|
let localConfirmedCount = 0;
|
|
71901
71902
|
let peerAttemptedCount = 0;
|
|
71902
71903
|
let peerConfirmedCount = 0;
|
|
71904
|
+
let standingEvidenceCount = 0;
|
|
71903
71905
|
const unavailableNodeIds = [];
|
|
71904
71906
|
for (const [nodeIndex, node] of nodes.entries()) {
|
|
71905
71907
|
const nodeId = normalizeMeshNodeId(node) || `node_${nodeIndex}`;
|
|
@@ -71925,6 +71927,14 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
71925
71927
|
} catch {
|
|
71926
71928
|
}
|
|
71927
71929
|
}
|
|
71930
|
+
const standingGit = buildInlineMeshTransitGitStatus(node);
|
|
71931
|
+
if (standingGit) {
|
|
71932
|
+
standingEvidenceCount += 1;
|
|
71933
|
+
continue;
|
|
71934
|
+
}
|
|
71935
|
+
if (!args.probeRemotePeers) {
|
|
71936
|
+
continue;
|
|
71937
|
+
}
|
|
71928
71938
|
if (!daemonId || !args.dispatchMeshCommand) {
|
|
71929
71939
|
if (!isSelfNode) unavailableNodeIds.push(nodeId);
|
|
71930
71940
|
continue;
|
|
@@ -71947,10 +71957,11 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
71947
71957
|
unavailableNodeIds.push(nodeId);
|
|
71948
71958
|
}
|
|
71949
71959
|
return {
|
|
71950
|
-
directEvidenceCount: localConfirmedCount + peerConfirmedCount,
|
|
71960
|
+
directEvidenceCount: localConfirmedCount + peerConfirmedCount + standingEvidenceCount,
|
|
71951
71961
|
localConfirmedCount,
|
|
71952
71962
|
peerAttemptedCount,
|
|
71953
71963
|
peerConfirmedCount,
|
|
71964
|
+
standingEvidenceCount,
|
|
71954
71965
|
unavailableNodeIds
|
|
71955
71966
|
};
|
|
71956
71967
|
}
|
|
@@ -76154,12 +76165,14 @@ ${hintLines.join("\n")}` : "",
|
|
|
76154
76165
|
const meshRecord = await this.getMeshForCommand(meshId, args?.inlineMesh, { preferInline: true });
|
|
76155
76166
|
if (!meshRecord?.mesh) return { success: false, error: "Mesh not found" };
|
|
76156
76167
|
const requireDirectPeerTruth = args?.requireDirectPeerTruth === true;
|
|
76168
|
+
const probeRemotePeers = args?.refresh === true || args?.forceRefresh === true;
|
|
76157
76169
|
const directTruth = await hydrateInlineMeshDirectTruth({
|
|
76158
76170
|
mesh: meshRecord.mesh,
|
|
76159
76171
|
meshSource: meshRecord.source,
|
|
76160
76172
|
dispatchMeshCommand: this.deps.dispatchMeshCommand,
|
|
76161
76173
|
statusInstanceId: this.deps.statusInstanceId,
|
|
76162
|
-
localMachineId: loadConfig2().machineId || ""
|
|
76174
|
+
localMachineId: loadConfig2().machineId || "",
|
|
76175
|
+
probeRemotePeers
|
|
76163
76176
|
});
|
|
76164
76177
|
const directTruthSatisfied = meshRecord.source !== "inline_bootstrap" || directTruth.directEvidenceCount > 0;
|
|
76165
76178
|
const sourceOfTruth = {
|
|
@@ -77740,20 +77753,25 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
77740
77753
|
meshSource: meshRecord.source,
|
|
77741
77754
|
dispatchMeshCommand: this.deps.dispatchMeshCommand,
|
|
77742
77755
|
statusInstanceId: this.deps.statusInstanceId,
|
|
77743
|
-
localMachineId
|
|
77756
|
+
localMachineId,
|
|
77757
|
+
// Standing-state model: only an explicit refresh fans
|
|
77758
|
+
// out a blocking peer git probe. Default loads return
|
|
77759
|
+
// held truth so one slow peer can't block the graph.
|
|
77760
|
+
probeRemotePeers: refreshRequested
|
|
77744
77761
|
}) : {
|
|
77745
77762
|
directEvidenceCount: 0,
|
|
77746
77763
|
localConfirmedCount: 0,
|
|
77747
77764
|
peerAttemptedCount: 0,
|
|
77748
77765
|
peerConfirmedCount: 0,
|
|
77766
|
+
standingEvidenceCount: 0,
|
|
77749
77767
|
unavailableNodeIds: []
|
|
77750
77768
|
};
|
|
77751
77769
|
const passivePeerTruthNotAttempted = requireDirectPeerTruth && !refreshRequested && directTruth.directEvidenceCount > 0 && directTruth.peerAttemptedCount === 0;
|
|
77752
77770
|
const effectiveDirectTruth = passivePeerTruthNotAttempted ? { ...directTruth, unavailableNodeIds: [] } : directTruth;
|
|
77753
77771
|
const unavailableDirectTruthNodeIds = new Set(effectiveDirectTruth.unavailableNodeIds);
|
|
77754
77772
|
const unavailableNodesAreOnlyRemovedWorktrees = unavailableDirectTruthNodeIds.size > 0 && Array.isArray(mesh.nodes) && mesh.nodes.filter((node) => unavailableDirectTruthNodeIds.has(normalizeMeshNodeId(node) ?? "")).every((node) => node?.isLocalWorktree === true);
|
|
77755
|
-
const directTruthSatisfied = !requireDirectPeerTruth || effectiveDirectTruth.directEvidenceCount > 0 && (effectiveDirectTruth.unavailableNodeIds.length === 0 || unavailableNodesAreOnlyRemovedWorktrees);
|
|
77756
|
-
if (requireDirectPeerTruth && !directTruthSatisfied) {
|
|
77773
|
+
const directTruthSatisfied = !requireDirectPeerTruth || !refreshRequested || effectiveDirectTruth.directEvidenceCount > 0 && (effectiveDirectTruth.unavailableNodeIds.length === 0 || unavailableNodesAreOnlyRemovedWorktrees);
|
|
77774
|
+
if (requireDirectPeerTruth && refreshRequested && !directTruthSatisfied) {
|
|
77757
77775
|
const failureResult = {
|
|
77758
77776
|
success: false,
|
|
77759
77777
|
code: "mesh_direct_peer_truth_unavailable",
|
|
@@ -77899,7 +77917,7 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
77899
77917
|
status.connection = buildLivePeerGitConnection(connection, refreshedAt);
|
|
77900
77918
|
}
|
|
77901
77919
|
remoteProbeApplied = true;
|
|
77902
|
-
} else if (!isSelfNode && daemonId && this.deps.dispatchMeshCommand && !directTruthUnavailableNodeIds.has(nodeId)) {
|
|
77920
|
+
} else if (refreshRequested && !isSelfNode && daemonId && this.deps.dispatchMeshCommand && !directTruthUnavailableNodeIds.has(nodeId)) {
|
|
77903
77921
|
try {
|
|
77904
77922
|
const remoteGit = await probeRemoteMeshGitStatus({
|
|
77905
77923
|
dispatchMeshCommand: this.deps.dispatchMeshCommand,
|