adhdev 0.9.76-rc.71 → 0.9.76-rc.72
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/cli/index.js +11 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/cli/index.js
CHANGED
|
@@ -94819,7 +94819,7 @@ var init_adhdev_daemon = __esm({
|
|
|
94819
94819
|
init_version();
|
|
94820
94820
|
init_src();
|
|
94821
94821
|
init_runtime_defaults();
|
|
94822
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.
|
|
94822
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.72" });
|
|
94823
94823
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
94824
94824
|
localHttpServer = null;
|
|
94825
94825
|
localWss = null;
|
|
@@ -95684,7 +95684,7 @@ ${err?.stack || ""}`);
|
|
|
95684
95684
|
const settings = state.settings && typeof state.settings === "object" ? state.settings : {};
|
|
95685
95685
|
const meshId = this.readMeshString(settings.meshNodeFor);
|
|
95686
95686
|
const coordinatorDaemonId = this.readMeshString(settings.meshCoordinatorDaemonId);
|
|
95687
|
-
if (!meshId || !coordinatorDaemonId
|
|
95687
|
+
if (!meshId || !coordinatorDaemonId) return;
|
|
95688
95688
|
const payload = {
|
|
95689
95689
|
event: this.readMeshString(event.event),
|
|
95690
95690
|
meshId,
|
|
@@ -95694,6 +95694,15 @@ ${err?.stack || ""}`);
|
|
|
95694
95694
|
providerType: this.readMeshString(event.providerType),
|
|
95695
95695
|
providerSessionId: this.readMeshString(event.providerSessionId)
|
|
95696
95696
|
};
|
|
95697
|
+
if (coordinatorDaemonId === localDaemonId) {
|
|
95698
|
+
try {
|
|
95699
|
+
await this.components.router.execute("mesh_forward_event", payload, "local");
|
|
95700
|
+
LOG.info("MeshEvents", `Local-forwarded ${payload.event} for mesh ${meshId}`);
|
|
95701
|
+
} catch (error48) {
|
|
95702
|
+
LOG.warn("MeshEvents", `Failed to local-forward ${payload.event} for mesh ${meshId}: ${error48?.message || error48}`);
|
|
95703
|
+
}
|
|
95704
|
+
return;
|
|
95705
|
+
}
|
|
95697
95706
|
try {
|
|
95698
95707
|
await this.meshManager.sendCommand(coordinatorDaemonId, "mesh_forward_event", payload);
|
|
95699
95708
|
LOG.info("MeshEvents", `Relayed ${payload.event} for mesh ${meshId} to coordinator daemon ${coordinatorDaemonId.slice(0, 12)}\u2026`);
|