新增完整的 channels 限界上下文模块,包含契约层、领域核心层、应用服务、管道编排、插件体系、基础设施组合根等全层级代码,新增飞书与微信 iLink 渠道插件基础结构,补充各类 DTO、端口协议与领域服务实现。
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
"""组合根顶层目录。
|
||
|
||
本包是渠道网关的组合根(composition root),承载启动编排、关停编排、
|
||
DI 容器、工厂与请求级用例装配,对齐 external_systems 项目惯例。
|
||
|
||
对外导出宿主启动/关停编排器、依赖注入容器、工厂函数与渠道用例聚合,
|
||
供应用启动(lifespan)与路由层装配请求级用例使用。
|
||
"""
|
||
|
||
from __future__ import annotations
|
||
|
||
from yuxi.channels.infrastructure.channel_use_cases import (
|
||
ChannelUseCases,
|
||
create_channel_use_cases,
|
||
)
|
||
from yuxi.channels.infrastructure.dependency_injection import (
|
||
DependencyInjectionContainer,
|
||
)
|
||
from yuxi.channels.infrastructure.factory import (
|
||
create_host_bootstrap,
|
||
create_host_shutdown,
|
||
load_channel_plugins,
|
||
)
|
||
from yuxi.channels.infrastructure.host_bootstrap import HostBootstrap
|
||
from yuxi.channels.infrastructure.host_shutdown import HostShutdown
|
||
|
||
__all__ = [
|
||
"ChannelUseCases",
|
||
"DependencyInjectionContainer",
|
||
"HostBootstrap",
|
||
"HostShutdown",
|
||
"create_channel_use_cases",
|
||
"create_host_bootstrap",
|
||
"create_host_shutdown",
|
||
"load_channel_plugins",
|
||
]
|