@adhdev/daemon-core 0.9.82-rc.512 → 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.js
CHANGED
|
@@ -417,10 +417,10 @@ function readInjected(value) {
|
|
|
417
417
|
}
|
|
418
418
|
function getDaemonBuildInfo() {
|
|
419
419
|
if (cached) return cached;
|
|
420
|
-
const commit = readInjected(true ? "
|
|
421
|
-
const commitShort = readInjected(true ? "
|
|
422
|
-
const version = readInjected(true ? "0.9.82-rc.
|
|
423
|
-
const builtAt = readInjected(true ? "2026-07-13T05:
|
|
420
|
+
const commit = readInjected(true ? "e32fbf96c63cca603a29156a0f70f41ff8e1b252" : void 0) ?? "unknown";
|
|
421
|
+
const commitShort = readInjected(true ? "e32fbf96" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
|
|
422
|
+
const version = readInjected(true ? "0.9.82-rc.513" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
|
|
423
|
+
const builtAt = readInjected(true ? "2026-07-13T05:58:35.132Z" : void 0);
|
|
424
424
|
cached = builtAt ? { commit, commitShort, version, builtAt } : { commit, commitShort, version };
|
|
425
425
|
return cached;
|
|
426
426
|
}
|
|
@@ -14613,9 +14613,9 @@ function recordInlineMeshDirectGitTruth(node, git, source) {
|
|
|
14613
14613
|
if (reporterArch) node.reportedArch = reporterArch;
|
|
14614
14614
|
const reporterMachineNickname = readStringValue(git.reporterMachineNickname) ?? null;
|
|
14615
14615
|
if (reporterMachineNickname) node.machineNickname = reporterMachineNickname;
|
|
14616
|
-
const reporterProviderVersions = readProviderVersionsRecord(git.reporterProviderVersions);
|
|
14616
|
+
const reporterProviderVersions = readProviderVersionsRecord(git.reporterProviderVersions) ?? (isLocalSource ? readLocalReporterProviderVersions() : null);
|
|
14617
14617
|
if (reporterProviderVersions) node.reportedProviderVersions = reporterProviderVersions;
|
|
14618
|
-
const reporterDaemonBuildVersion = readStringValue(git.reporterDaemonBuildVersion) ?? null;
|
|
14618
|
+
const reporterDaemonBuildVersion = readStringValue(git.reporterDaemonBuildVersion) ?? (isLocalSource ? readLocalReporterDaemonBuildVersion() : null) ?? null;
|
|
14619
14619
|
if (reporterDaemonBuildVersion) node.reportedDaemonBuildVersion = reporterDaemonBuildVersion;
|
|
14620
14620
|
return {
|
|
14621
14621
|
reporterPlatform,
|
|
@@ -14636,6 +14636,21 @@ function readProviderVersionsRecord(value) {
|
|
|
14636
14636
|
}
|
|
14637
14637
|
return Object.keys(out).length > 0 ? out : null;
|
|
14638
14638
|
}
|
|
14639
|
+
function readLocalReporterProviderVersions() {
|
|
14640
|
+
try {
|
|
14641
|
+
return readProviderVersionsRecord(getCachedProviderVersions());
|
|
14642
|
+
} catch {
|
|
14643
|
+
return null;
|
|
14644
|
+
}
|
|
14645
|
+
}
|
|
14646
|
+
function readLocalReporterDaemonBuildVersion() {
|
|
14647
|
+
try {
|
|
14648
|
+
const version = getDaemonBuildInfo().version;
|
|
14649
|
+
return typeof version === "string" && version.trim() && version !== "unknown" ? version.trim() : null;
|
|
14650
|
+
} catch {
|
|
14651
|
+
return null;
|
|
14652
|
+
}
|
|
14653
|
+
}
|
|
14639
14654
|
function stampNodeReporterPlatform(node, platform10, arch2) {
|
|
14640
14655
|
if (!node || typeof node !== "object" || Array.isArray(node)) return;
|
|
14641
14656
|
if (!platform10 && !arch2) return;
|
|
@@ -15617,6 +15632,7 @@ var init_mesh_node_identity = __esm({
|
|
|
15617
15632
|
"src/mesh/mesh-node-identity.ts"() {
|
|
15618
15633
|
"use strict";
|
|
15619
15634
|
init_cli_detector();
|
|
15635
|
+
init_build_info();
|
|
15620
15636
|
init_git_status();
|
|
15621
15637
|
init_dist();
|
|
15622
15638
|
init_logger();
|