@duckmind/dm-windows-x64 0.61.1 → 0.61.2
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/dm.exe
CHANGED
|
Binary file
|
|
@@ -240,6 +240,8 @@ export async function deliverSubagentResultIntercomEvent(events, payload, timeou
|
|
|
240
240
|
export async function deliverSubagentIntercomMessageEvent(events, to, message, timeoutMs = 500, extra = {}) {
|
|
241
241
|
if (typeof events.on !== "function" || typeof events.emit !== "function")
|
|
242
242
|
return false;
|
|
243
|
+
if (events.listenerCount?.(SUBAGENT_RESULT_INTERCOM_EVENT) === 0)
|
|
244
|
+
return true;
|
|
243
245
|
const requestId = typeof extra.requestId === "string" ? extra.requestId : randomUUID();
|
|
244
246
|
return new Promise((resolve) => {
|
|
245
247
|
let settled = false;
|