@camstack/agent 1.1.17 → 1.1.18

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.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  import { createRequire as __cr } from 'node:module'; const require = globalThis.require ?? __cr(import.meta.url);
3
3
  import {
4
4
  startAgent
5
- } from "./chunk-YI3D74BS.mjs";
5
+ } from "./chunk-XEHYJVPH.mjs";
6
6
 
7
7
  // src/cli.ts
8
8
  import { existsSync } from "fs";
package/dist/index.js CHANGED
@@ -1330,8 +1330,17 @@ async function startAgent(configPath) {
1330
1330
  udsEventBridgeDispose = (0, import_system3.createUdsEventBridge)({
1331
1331
  registry: agentUdsRegistry,
1332
1332
  parentBus: agentBrokerEventBus,
1333
- parentNodeId: broker.nodeID
1333
+ parentNodeId: broker.nodeID,
1334
+ // D2: relay to children via the pass-through subscription so the bridge's
1335
+ // wildcard does NOT count toward this node's local interest (otherwise the
1336
+ // gate could never filter anything).
1337
+ subscribePassthrough: (handler) => (0, import_system3.subscribePassthrough)(broker, handler)
1334
1338
  });
1339
+ const interestRegistry = agentUdsRegistry;
1340
+ (0, import_system3.setNodeEventInterest)(
1341
+ broker,
1342
+ () => interestRegistry.aggregateEventInterest()
1343
+ );
1335
1344
  const agentReadinessRegistry = (0, import_system3.getOrInitReadinessRegistry)(
1336
1345
  broker,
1337
1346
  agentBrokerEventBus,