@adhdev/daemon-core 0.9.82-rc.511 → 0.9.82-rc.513
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 +22 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/mesh/mesh-node-identity.ts +44 -3
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-13T05:
|
|
415
|
+
const commit = readInjected(true ? "e32fbf96c63cca603a29156a0f70f41ff8e1b252" : void 0) ?? "unknown";
|
|
416
|
+
const commitShort = readInjected(true ? "e32fbf96" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
417
|
+
const version = readInjected(true ? "0.9.82-rc.513" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
418
|
+
const builtAt = readInjected(true ? "2026-07-13T05:58:35.132Z" : void 0);
|
|
419
419
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
420
420
|
return cached;
|
|
421
421
|
}
|
|
@@ -14616,9 +14616,9 @@ function recordInlineMeshDirectGitTruth(node, git, source) {
|
|
|
14616
14616
|
if (reporterArch) node.reportedArch = reporterArch;
|
|
14617
14617
|
const reporterMachineNickname = readStringValue(git.reporterMachineNickname) ?? null;
|
|
14618
14618
|
if (reporterMachineNickname) node.machineNickname = reporterMachineNickname;
|
|
14619
|
-
const reporterProviderVersions = readProviderVersionsRecord(git.reporterProviderVersions);
|
|
14619
|
+
const reporterProviderVersions = readProviderVersionsRecord(git.reporterProviderVersions) ?? (isLocalSource ? readLocalReporterProviderVersions() : null);
|
|
14620
14620
|
if (reporterProviderVersions) node.reportedProviderVersions = reporterProviderVersions;
|
|
14621
|
-
const reporterDaemonBuildVersion = readStringValue(git.reporterDaemonBuildVersion) ?? null;
|
|
14621
|
+
const reporterDaemonBuildVersion = readStringValue(git.reporterDaemonBuildVersion) ?? (isLocalSource ? readLocalReporterDaemonBuildVersion() : null) ?? null;
|
|
14622
14622
|
if (reporterDaemonBuildVersion) node.reportedDaemonBuildVersion = reporterDaemonBuildVersion;
|
|
14623
14623
|
return {
|
|
14624
14624
|
reporterPlatform,
|
|
@@ -14639,6 +14639,21 @@ function readProviderVersionsRecord(value) {
|
|
|
14639
14639
|
}
|
|
14640
14640
|
return Object.keys(out).length > 0 ? out : null;
|
|
14641
14641
|
}
|
|
14642
|
+
function readLocalReporterProviderVersions() {
|
|
14643
|
+
try {
|
|
14644
|
+
return readProviderVersionsRecord(getCachedProviderVersions());
|
|
14645
|
+
} catch {
|
|
14646
|
+
return null;
|
|
14647
|
+
}
|
|
14648
|
+
}
|
|
14649
|
+
function readLocalReporterDaemonBuildVersion() {
|
|
14650
|
+
try {
|
|
14651
|
+
const version = getDaemonBuildInfo().version;
|
|
14652
|
+
return typeof version === "string" && version.trim() && version !== "unknown" ? version.trim() : null;
|
|
14653
|
+
} catch {
|
|
14654
|
+
return null;
|
|
14655
|
+
}
|
|
14656
|
+
}
|
|
14642
14657
|
function stampNodeReporterPlatform(node, platform10, arch2) {
|
|
14643
14658
|
if (!node || typeof node !== "object" || Array.isArray(node)) return;
|
|
14644
14659
|
if (!platform10 && !arch2) return;
|
|
@@ -15620,6 +15635,7 @@ var init_mesh_node_identity = __esm({
|
|
|
15620
15635
|
"src/mesh/mesh-node-identity.ts"() {
|
|
15621
15636
|
"use strict";
|
|
15622
15637
|
init_cli_detector();
|
|
15638
|
+
init_build_info();
|
|
15623
15639
|
init_git_status();
|
|
15624
15640
|
init_dist();
|
|
15625
15641
|
init_logger();
|