fix(runtime): apply configuration changes without restart

This commit is contained in:
jxxghp
2026-09-11 00:12:05 +08:00
parent ad2da6eb8b
commit d32d17568a
46 changed files with 413 additions and 110 deletions

View File

@@ -11,7 +11,12 @@ from typing import Any, Literal, TypeAlias
_DEFAULT_IDENTITY = "<default>"
_DYNAMIC_IDENTITY = "<dynamic>"
_EVENT_MANAGER_METHODS = {"add_event_listener", "register"}
_PRODUCER_METHODS = {"async_send_event", "send_event", "send_event_strict"}
_PRODUCER_METHODS = {
"async_send_event",
"async_send_event_strict",
"send_event",
"send_event_strict",
}
_COMPREHENSION_SCOPES = (
ast.ListComp,
ast.SetComp,
@@ -63,6 +68,7 @@ class _BoundEventMethod:
"send_event",
"send_event_strict",
"async_send_event",
"async_send_event_strict",
]
receiver_kind: str