feat(notification): add DingTalk robot channel

This commit is contained in:
jxxghp
2026-08-22 12:02:24 +08:00
parent 30ebf98fbb
commit c765604b36
9 changed files with 434 additions and 10 deletions
@@ -489,7 +489,7 @@ from app.runtime.extensions.host_module_adapter import (
registry = build_host_module_registry()
specs = registry.list_specs()
assert len(specs) == 38
assert len(specs) == 39
adapter = HostModuleAdapter()
lifecycle_events = []
@@ -536,7 +536,7 @@ from app.schemas.types import EventType
registry = build_host_module_registry()
specs = registry.list_specs()
assert len(specs) == 38
assert len(specs) == 39
spec_by_id = {spec.id: spec for spec in specs}
events = {spec.id: [] for spec in specs}
@@ -703,7 +703,7 @@ from app.runtime.extensions.host_module_adapter import (
registry = build_host_module_registry()
specs = registry.list_specs()
assert len(specs) == 38
assert len(specs) == 39
configured_specs = tuple(
spec for spec in specs
if spec.activation is ActivationPolicy.WHEN_CONFIGURED
@@ -799,12 +799,12 @@ from app.application.module import configure_module_runtime
configure_module_runtime(lambda: ModuleManager())
manager = ModuleManager()
assert len(manager.list_specs()) == 38
assert len(manager.list_specs()) == 39
assert manager.get_specs() == manager.list_specs()
from app.api.endpoints.system import modulelist
response = modulelist(None)
assert len(response.data["modules"]) == 38
assert len(response.data["modules"]) == 39
heavy_prefixes = (
"lark_oapi",
@@ -912,7 +912,7 @@ from app.runtime.extensions.module_manager import ModuleManager
manager = ModuleManager()
modules = manager.get_modules()
assert len(modules) == len(manager.list_specs()) == 38
assert len(modules) == len(manager.list_specs()) == 39
for spec in manager.list_specs():
implementation = modules[spec.id]
assert implementation.get_name() == spec.metadata["name"]