@camstack/server 1.1.21 → 1.1.22

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.
@@ -436,7 +436,20 @@ class MoleculerService {
436
436
  registry: this.localChildRegistry,
437
437
  parentBus: this.eventBus,
438
438
  parentNodeId: hubNodeId,
439
+ // D2: relay via pass-through so the bridge's wildcard is not counted as
440
+ // local interest (uniform with the agent; harmless here since the hub
441
+ // retains and always accepts inbound cross-node events anyway).
442
+ subscribePassthrough: (handler) => (0, system_1.subscribePassthrough)(this.broker, handler),
439
443
  });
444
+ // D2: expose the hub's aggregate child interest to its `$event-bus`
445
+ // inbound gate for uniformity with the agent. NOTE: the hub main process
446
+ // opts into `retainRecent` (it serves `getRecent` + the admin-ui live
447
+ // event stream), so `crossNodeAcceptsCategory` always accepts every
448
+ // inbound category here — the hub never filters agent-origin events. This
449
+ // wiring is therefore harmless-but-uniform; the real efficiency win is on
450
+ // agents (non-retaining nodes).
451
+ const hubChildRegistry = this.localChildRegistry;
452
+ (0, system_1.setNodeEventInterest)(this.broker, () => hubChildRegistry.aggregateEventInterest());
440
453
  }
441
454
  }
442
455
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",