From 8a390025ef37401f5cab0284c58ca39c98444f54 Mon Sep 17 00:00:00 2001 From: imccyu <276526105+imccyu@users.noreply.github.com> Date: Wed, 15 Jul 2026 00:49:56 +0800 Subject: [PATCH] fix: scan one-shot event listeners --- scripts/gen-doc-graphs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen-doc-graphs.ts b/scripts/gen-doc-graphs.ts index 9629e367d7..a6660f7cd3 100644 --- a/scripts/gen-doc-graphs.ts +++ b/scripts/gen-doc-graphs.ts @@ -535,7 +535,7 @@ class EventRelationCollector { } } else if (receiverKind === 'context' || receiverKind === 'agent-dispatch') { const eventNames = this.eventNamesFromCall(node, receiverKind) - if (method === 'on') { + if (method === 'on' || method === 'once') { for (const event of eventNames) this.ensure(event).listeners.add(source.pkg) } else if (method === 'emit' || method === 'parallel' || method === 'serial' || method === 'waterfall') { for (const event of eventNames) this.addDispatcher(event, source.pkg, method)