@adhdev/daemon-standalone 0.9.82-rc.326 → 0.9.82-rc.327
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 +36 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30033,10 +30033,10 @@ var require_dist3 = __commonJS({
|
|
|
30033
30033
|
}
|
|
30034
30034
|
function getDaemonBuildInfo() {
|
|
30035
30035
|
if (cached2) return cached2;
|
|
30036
|
-
const commit = readInjected(true ? "
|
|
30037
|
-
const commitShort = readInjected(true ? "
|
|
30038
|
-
const version2 = readInjected(true ? "0.9.82-rc.
|
|
30039
|
-
const builtAt = readInjected(true ? "2026-06-
|
|
30036
|
+
const commit = readInjected(true ? "993e3922de8abe554822450e2b4c26c2c9f5f64a" : void 0) ?? "unknown";
|
|
30037
|
+
const commitShort = readInjected(true ? "993e3922" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
30038
|
+
const version2 = readInjected(true ? "0.9.82-rc.327" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
30039
|
+
const builtAt = readInjected(true ? "2026-06-19T12:31:51.466Z" : void 0);
|
|
30040
30040
|
cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
|
|
30041
30041
|
return cached2;
|
|
30042
30042
|
}
|
|
@@ -31669,6 +31669,8 @@ ${error48.message || ""}`;
|
|
|
31669
31669
|
const node = mesh.nodes.find((n) => n.id === nodeId);
|
|
31670
31670
|
if (!node) return void 0;
|
|
31671
31671
|
if (opts.userOverrides) node.userOverrides = { ...node.userOverrides, ...opts.userOverrides };
|
|
31672
|
+
if (opts.reportedPlatform && opts.reportedPlatform.trim()) node.reportedPlatform = opts.reportedPlatform.trim();
|
|
31673
|
+
if (opts.reportedArch && opts.reportedArch.trim()) node.reportedArch = opts.reportedArch.trim();
|
|
31672
31674
|
if (opts.policy) node.policy = { ...node.policy, ...opts.policy };
|
|
31673
31675
|
if (opts.worktreeBootstrap) node.worktreeBootstrap = opts.worktreeBootstrap;
|
|
31674
31676
|
if (Object.prototype.hasOwnProperty.call(opts, "systemPrompt")) {
|
|
@@ -32854,11 +32856,15 @@ Valid status values: \`completed\` | \`failed\` | \`blocked\` | \`partial\`.`;
|
|
|
32854
32856
|
const value = overrides[key];
|
|
32855
32857
|
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
32856
32858
|
}
|
|
32859
|
+
function readNodeReporter(node, key) {
|
|
32860
|
+
const value = key === "platform" ? node?.reportedPlatform : node?.reportedArch;
|
|
32861
|
+
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
32862
|
+
}
|
|
32857
32863
|
function buildMeshNodeCapabilityTags(node, providerType) {
|
|
32858
32864
|
const provider = typeof providerType === "string" && providerType.trim() ? providerType.trim() : firstProviderPriority(node?.policy);
|
|
32859
32865
|
const worktreeBranch = typeof node?.worktreeBranch === "string" && node.worktreeBranch.trim() ? node.worktreeBranch.trim() : null;
|
|
32860
|
-
const os30 = readNodeOverride(node, "platform") ?? process.platform;
|
|
32861
|
-
const arch2 = readNodeOverride(node, "arch") ?? process.arch;
|
|
32866
|
+
const os30 = readNodeOverride(node, "platform") ?? readNodeReporter(node, "platform") ?? process.platform;
|
|
32867
|
+
const arch2 = readNodeOverride(node, "arch") ?? readNodeReporter(node, "arch") ?? process.arch;
|
|
32862
32868
|
return normalizeMeshCapabilityTags([
|
|
32863
32869
|
...Array.isArray(node?.capabilities) ? node.capabilities : [],
|
|
32864
32870
|
`os=${os30}`,
|
|
@@ -72755,7 +72761,9 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
72755
72761
|
};
|
|
72756
72762
|
}
|
|
72757
72763
|
function recordInlineMeshDirectGitTruth(node, git, source) {
|
|
72758
|
-
if (!node || typeof node !== "object" || Array.isArray(node))
|
|
72764
|
+
if (!node || typeof node !== "object" || Array.isArray(node)) {
|
|
72765
|
+
return { reporterPlatform: null, reporterArch: null };
|
|
72766
|
+
}
|
|
72759
72767
|
const checkedAt = readNumberValue(git.lastCheckedAt) ?? Date.now();
|
|
72760
72768
|
const updatedAt = new Date(checkedAt).toISOString();
|
|
72761
72769
|
const nextGit = {
|
|
@@ -72777,6 +72785,9 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
72777
72785
|
const reporterPlatform = readStringValue(git.reporterPlatform) ?? (isLocalSource ? process.platform : null);
|
|
72778
72786
|
const reporterArch = readStringValue(git.reporterArch) ?? (isLocalSource ? process.arch : null);
|
|
72779
72787
|
stampNodeReporterPlatform(node, reporterPlatform, reporterArch);
|
|
72788
|
+
if (reporterPlatform) node.reportedPlatform = reporterPlatform;
|
|
72789
|
+
if (reporterArch) node.reportedArch = reporterArch;
|
|
72790
|
+
return { reporterPlatform, reporterArch };
|
|
72780
72791
|
}
|
|
72781
72792
|
function stampNodeReporterPlatform(node, platform10, arch2) {
|
|
72782
72793
|
if (!node || typeof node !== "object" || Array.isArray(node)) return;
|
|
@@ -72793,6 +72804,16 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
72793
72804
|
}
|
|
72794
72805
|
if (changed) node.userOverrides = overrides;
|
|
72795
72806
|
}
|
|
72807
|
+
function persistNodeReporterPlatform(meshSource, mesh, nodeId, reporter) {
|
|
72808
|
+
if (meshSource !== "local_config") return;
|
|
72809
|
+
const meshId = readStringValue(mesh?.id);
|
|
72810
|
+
if (!meshId || !nodeId) return;
|
|
72811
|
+
const reportedPlatform = reporter.reporterPlatform ?? void 0;
|
|
72812
|
+
const reportedArch = reporter.reporterArch ?? void 0;
|
|
72813
|
+
if (!reportedPlatform && !reportedArch) return;
|
|
72814
|
+
void Promise.resolve().then(() => (init_mesh_config(), mesh_config_exports)).then(({ updateNode: updateNode2 }) => updateNode2(meshId, nodeId, { reportedPlatform, reportedArch })).catch(() => {
|
|
72815
|
+
});
|
|
72816
|
+
}
|
|
72796
72817
|
function buildCachedInlineMeshGitStatus(node) {
|
|
72797
72818
|
const liveGit = buildInlineMeshTransitGitStatus(node);
|
|
72798
72819
|
if (liveGit) return liveGit;
|
|
@@ -73374,7 +73395,8 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
73374
73395
|
try {
|
|
73375
73396
|
const localGit = await getGitRepoStatus(workspace, { timeoutMs: 1e4, refreshUpstream: true });
|
|
73376
73397
|
if (localGit?.isGitRepo) {
|
|
73377
|
-
recordInlineMeshDirectGitTruth(node, localGit, "selected_coordinator_local_git");
|
|
73398
|
+
const reporter = recordInlineMeshDirectGitTruth(node, localGit, "selected_coordinator_local_git");
|
|
73399
|
+
persistNodeReporterPlatform(args.meshSource, args.mesh, nodeId, reporter);
|
|
73378
73400
|
localConfirmedCount += 1;
|
|
73379
73401
|
continue;
|
|
73380
73402
|
}
|
|
@@ -73404,7 +73426,8 @@ ${formatManifestValidationIssues2(validation2.issues)}`);
|
|
|
73404
73426
|
});
|
|
73405
73427
|
const remoteGit = args.probeCache ? await args.probeCache.probe(daemonId, workspace, runProbe) : await runProbe();
|
|
73406
73428
|
if (remoteGit) {
|
|
73407
|
-
recordInlineMeshDirectGitTruth(node, remoteGit, "selected_coordinator_mesh_p2p_git");
|
|
73429
|
+
const reporter = recordInlineMeshDirectGitTruth(node, remoteGit, "selected_coordinator_mesh_p2p_git");
|
|
73430
|
+
persistNodeReporterPlatform(args.meshSource, args.mesh, nodeId, reporter);
|
|
73408
73431
|
peerConfirmedCount += 1;
|
|
73409
73432
|
continue;
|
|
73410
73433
|
}
|
|
@@ -79621,7 +79644,8 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
79621
79644
|
if (!connectionReported || connectionState === "unknown") {
|
|
79622
79645
|
status.connection = buildLivePeerGitConnection(connection, refreshedAt);
|
|
79623
79646
|
}
|
|
79624
|
-
recordInlineMeshDirectGitTruth(node, remoteGit, "selected_coordinator_mesh_p2p_git");
|
|
79647
|
+
const reporter = recordInlineMeshDirectGitTruth(node, remoteGit, "selected_coordinator_mesh_p2p_git");
|
|
79648
|
+
persistNodeReporterPlatform(meshRecord.source, mesh, nodeId, reporter);
|
|
79625
79649
|
remoteProbeApplied = true;
|
|
79626
79650
|
}
|
|
79627
79651
|
}
|
|
@@ -79653,7 +79677,8 @@ ${ptyResult.output.slice(-2e3)}`);
|
|
|
79653
79677
|
try {
|
|
79654
79678
|
const gitStatus = await getGitRepoStatus(workspace, { timeoutMs: 1e4, refreshUpstream: true });
|
|
79655
79679
|
status.git = gitStatus;
|
|
79656
|
-
recordInlineMeshDirectGitTruth(node, gitStatus, "selected_coordinator_local_git");
|
|
79680
|
+
const reporter = recordInlineMeshDirectGitTruth(node, gitStatus, "selected_coordinator_local_git");
|
|
79681
|
+
persistNodeReporterPlatform(meshRecord.source, mesh, nodeId, reporter);
|
|
79657
79682
|
if (gitStatus.isGitRepo) {
|
|
79658
79683
|
status.health = deriveMeshNodeHealthFromGit(gitStatus);
|
|
79659
79684
|
} else {
|