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/index.js
CHANGED
|
@@ -63655,7 +63655,7 @@ var init_adhdev_daemon = __esm({
|
|
|
63655
63655
|
init_version();
|
|
63656
63656
|
init_src();
|
|
63657
63657
|
init_runtime_defaults();
|
|
63658
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.
|
|
63658
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.9.76-rc.72" });
|
|
63659
63659
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
63660
63660
|
localHttpServer = null;
|
|
63661
63661
|
localWss = null;
|
|
@@ -64520,7 +64520,7 @@ ${err?.stack || ""}`);
|
|
|
64520
64520
|
const settings = state.settings && typeof state.settings === "object" ? state.settings : {};
|
|
64521
64521
|
const meshId = this.readMeshString(settings.meshNodeFor);
|
|
64522
64522
|
const coordinatorDaemonId = this.readMeshString(settings.meshCoordinatorDaemonId);
|
|
64523
|
-
if (!meshId || !coordinatorDaemonId
|
|
64523
|
+
if (!meshId || !coordinatorDaemonId) return;
|
|
64524
64524
|
const payload = {
|
|
64525
64525
|
event: this.readMeshString(event.event),
|
|
64526
64526
|
meshId,
|
|
@@ -64530,6 +64530,15 @@ ${err?.stack || ""}`);
|
|
|
64530
64530
|
providerType: this.readMeshString(event.providerType),
|
|
64531
64531
|
providerSessionId: this.readMeshString(event.providerSessionId)
|
|
64532
64532
|
};
|
|
64533
|
+
if (coordinatorDaemonId === localDaemonId) {
|
|
64534
|
+
try {
|
|
64535
|
+
await this.components.router.execute("mesh_forward_event", payload, "local");
|
|
64536
|
+
LOG.info("MeshEvents", `Local-forwarded ${payload.event} for mesh ${meshId}`);
|
|
64537
|
+
} catch (error48) {
|
|
64538
|
+
LOG.warn("MeshEvents", `Failed to local-forward ${payload.event} for mesh ${meshId}: ${error48?.message || error48}`);
|
|
64539
|
+
}
|
|
64540
|
+
return;
|
|
64541
|
+
}
|
|
64533
64542
|
try {
|
|
64534
64543
|
await this.meshManager.sendCommand(coordinatorDaemonId, "mesh_forward_event", payload);
|
|
64535
64544
|
LOG.info("MeshEvents", `Relayed ${payload.event} for mesh ${meshId} to coordinator daemon ${coordinatorDaemonId.slice(0, 12)}\u2026`);
|