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.
- package/package.json +1 -1
- package/src/bus.ts +1 -0
package/package.json
CHANGED
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
|
}
|