ForcePilot/backend/package/yuxi/channels/plugins/__init__.py
Kris b88c0ae29e feat(channels): 批量新增多渠道网关限界上下文基础代码与契约
新增完整的 channels 限界上下文模块,包含契约层、领域核心层、应用服务、管道编排、插件体系、基础设施组合根等全层级代码,新增飞书与微信 iLink 渠道插件基础结构,补充各类 DTO、端口协议与领域服务实现。
2026-07-02 03:22:12 +08:00

21 lines
850 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"""渠道插件包。
本包存放各渠道插件实现。每个渠道插件遵循标准布局:
plugins/
└── <channel_name>/ # 如 feishu/、dingtalk/、wecom/
├── __init__.py
├── manifest.json # 插件清单(元数据、能力声明)
├── entry.py # CHANNEL_ENTRY 入口函数
├── adapters/ # 适配器实现
│ ├── __init__.py
│ ├── outbound_adapter.py
│ ├── streaming_adapter.py
│ └── ...
└── dtos/ # 渠道特有 DTO可选
└── __init__.py
插件通过 ``CHANNEL_ENTRY`` 契约注册,由宿主在 loaded 阶段调用,
返回 ``PluginManifest``。详见 ``yuxi.channels.contract.plugin.entry``。
"""