agent-relay-server 0.10.14 → 0.10.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/bus.ts +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay-server",
3
- "version": "0.10.14",
3
+ "version": "0.10.15",
4
4
  "description": "Lightweight HTTP message relay for inter-agent communication across machines",
5
5
  "module": "src/index.ts",
6
6
  "type": "module",
package/src/bus.ts CHANGED
@@ -360,6 +360,7 @@ function messageMatchesAgent(msg: Message, agentId: string): boolean {
360
360
  const agent = getAgent(agentId);
361
361
  if (!agent) return false;
362
362
  if (msg.claimable && msg.claimedBy && msg.claimedBy !== agentId) return false;
363
+ if (msg.resolvedToAgent === agentId) return true;
363
364
  if (msg.to === agentId || msg.from === agentId) return true;
364
365
  return targetMatchesAgent(msg.to, agentId, agent);
365
366
  }