@adhdev/daemon-standalone 0.9.82-rc.303 → 0.9.82-rc.304
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 +16 -7
- 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 ? "1d8f7eabac25d169c6344185357519db0c0ffd13" : void 0) ?? "unknown";
|
|
30008
|
+
const commitShort = readInjected(true ? "1d8f7eab" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
30009
|
+
const version2 = readInjected(true ? "0.9.82-rc.304" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
30010
|
+
const builtAt = readInjected(true ? "2026-06-17T05:27:28.772Z" : void 0);
|
|
30011
30011
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
30012
30012
|
return cached2;
|
|
30013
30013
|
}
|
|
@@ -71863,6 +71863,15 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
71863
71863
|
const connectionState = readStringValue(readObjectRecord(status.connection).state);
|
|
71864
71864
|
status.launchReady = !!daemonId && (readStringValue(status.machineStatus) === "online" || connectionState === "connected" || isSelfNode);
|
|
71865
71865
|
}
|
|
71866
|
+
function readMeshTimeoutEnvMs(name, defaultMs) {
|
|
71867
|
+
const raw = process.env[name]?.trim();
|
|
71868
|
+
if (!raw) return defaultMs;
|
|
71869
|
+
const parsed = Number.parseInt(raw, 10);
|
|
71870
|
+
if (Number.isFinite(parsed) && parsed >= 1e3 && parsed <= 12e4) return parsed;
|
|
71871
|
+
return defaultMs;
|
|
71872
|
+
}
|
|
71873
|
+
var MESH_DIRECT_PROBE_TIMEOUT_MS = readMeshTimeoutEnvMs("MESH_DIRECT_PROBE_TIMEOUT_MS", 25e3);
|
|
71874
|
+
var MESH_DIRECT_PROBE_RETRY_TIMEOUT_MS = readMeshTimeoutEnvMs("MESH_DIRECT_PROBE_RETRY_TIMEOUT_MS", 25e3);
|
|
71866
71875
|
async function probeRemoteMeshGitStatus(args) {
|
|
71867
71876
|
if (!args.dispatchMeshCommand) return null;
|
|
71868
71877
|
const remoteResult = await Promise.race([
|
|
@@ -71926,7 +71935,7 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
71926
71935
|
dispatchMeshCommand: args.dispatchMeshCommand,
|
|
71927
71936
|
daemonId,
|
|
71928
71937
|
workspace,
|
|
71929
|
-
timeoutMs:
|
|
71938
|
+
timeoutMs: MESH_DIRECT_PROBE_TIMEOUT_MS
|
|
71930
71939
|
});
|
|
71931
71940
|
if (remoteGit) {
|
|
71932
71941
|
recordInlineMeshDirectGitTruth(node, remoteGit, "selected_coordinator_mesh_p2p_git");
|
|
@@ -77896,7 +77905,7 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
77896
77905
|
dispatchMeshCommand: this.deps.dispatchMeshCommand,
|
|
77897
77906
|
daemonId,
|
|
77898
77907
|
workspace,
|
|
77899
|
-
timeoutMs:
|
|
77908
|
+
timeoutMs: MESH_DIRECT_PROBE_TIMEOUT_MS
|
|
77900
77909
|
});
|
|
77901
77910
|
if (remoteGit) {
|
|
77902
77911
|
status.git = remoteGit;
|
|
@@ -77920,7 +77929,7 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
77920
77929
|
dispatchMeshCommand: this.deps.dispatchMeshCommand,
|
|
77921
77930
|
daemonId,
|
|
77922
77931
|
workspace,
|
|
77923
|
-
timeoutMs:
|
|
77932
|
+
timeoutMs: MESH_DIRECT_PROBE_RETRY_TIMEOUT_MS
|
|
77924
77933
|
});
|
|
77925
77934
|
if (remoteGit) {
|
|
77926
77935
|
status.git = remoteGit;
|