feat: implement IM channel management in agent editor

- Introduced a new IMChannelPanel component for managing WeCom and Feishu channels.
- Added CRUD operations for IM channels, including create, update, delete, and list functionalities.
- Enhanced the backend with new API endpoints for IM channel management.
- Updated documentation to reflect changes in IM integration and channel management.
- Improved localization support for new IM-related UI elements across multiple languages.
This commit is contained in:
wizardchen
2026-03-16 02:23:22 +08:00
parent e5a397faeb
commit 6159e8e3f7
18 changed files with 1571 additions and 518 deletions
-38
View File
@@ -535,41 +535,3 @@ extract:
tenant:
# Enable cross-tenant access (can be enabled for intranet environments)
enable_cross_tenant_access: false
# IM integration configuration (optional)
# Uncomment and configure to enable WeCom/Feishu bot integration
#
# mode:
# "webhook" — (default) platform pushes events to your callback URL, requires public domain
# "websocket" — long connection, no public domain needed, SDK maintains persistent connection
im:
wecom:
enabled: true
tenant_id: 10000 # WeKnora tenant ID to use
agent_id: "" # Default agent ID (optional)
knowledge_base_ids:
- "2f046c68-869c-460f-866a-b149ac9a5195" # Default knowledge bases (optional)
mode: "websocket" # "webhook" or "websocket"
output_mode: "stream" # "stream" (default, real-time) or "full" (wait for complete answer)
# --- websocket mode (智能机器人长连接) ---
bot_id: "${WECOM_BOT_ID}" # 智能机器人 Bot ID
bot_secret: "${WECOM_BOT_SECRET}" # 智能机器人 Secret
# --- webhook mode (自建应用回调) ---
# corp_id: "${WECOM_CORP_ID}" # 企业微信 Corp ID
# agent_secret: "${WECOM_AGENT_SECRET}" # 应用 Secret
# token: "${WECOM_TOKEN}" # 回调 Token
# encoding_aes_key: "${WECOM_AES_KEY}" # 回调 EncodingAESKey
# corp_agent_id: 1000001 # 应用 AgentID
feishu:
enabled: true
tenant_id: 10000 # WeKnora tenant ID to use
agent_id: "" # Default agent ID (optional)
knowledge_base_ids: # Default knowledge bases
- "2f046c68-869c-460f-866a-b149ac9a5195"
mode: "websocket" # "webhook" or "websocket"
output_mode: "stream" # "stream" (default, real-time) or "full" (wait for complete answer)
app_id: "${FEISHU_APP_ID}" # 飞书 App ID
app_secret: "${FEISHU_APP_SECRET}" # 飞书 App Secret
# --- 以下仅 webhook 模式需要,websocket 模式可留空 ---
# verification_token: "${FEISHU_TOKEN}" # 事件订阅 Verification Token (webhook only)
# encrypt_key: "${FEISHU_ENCRYPT_KEY}" # 事件订阅 Encrypt Key (webhook only)