@sjawhar/pi-legion-envoy 1.35.0 → 1.35.1
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/envoy.js +3 -1
- package/package.json +1 -1
package/dist/envoy.js
CHANGED
|
@@ -33466,7 +33466,9 @@ function envoyExtension(pi) {
|
|
|
33466
33466
|
};
|
|
33467
33467
|
const deliver = async (subject, raw, reply) => {
|
|
33468
33468
|
const rendered = renderInbound(raw, sessionID, subject);
|
|
33469
|
-
|
|
33469
|
+
const directSubject = agentSubject(sessionID);
|
|
33470
|
+
const envelopeTopic = rendered.envelope?.topic;
|
|
33471
|
+
if (reply !== "" && subject === directSubject && envelopeTopic !== undefined && envelopeTopic !== directSubject) {
|
|
33470
33472
|
try {
|
|
33471
33473
|
(await ensureConnection()).publish(reply);
|
|
33472
33474
|
} catch (error) {
|