copilot-swe-agent[bot]
|
28b0e89cf7
|
[铸渊修复] dingtalk-bot: 重写 index-stream.js 修复 P0/P1/P2 问题
根因分析:
- P0: index-stream.js 导入了不存在的 handleMessage (应为 routeMessage),
且 EventEmitter 回调的 return 值被忽略导致无法 ACK 消息
- P1: LLM 调用无 try-catch 隔离,失败时阻断消息接收
- P2: .env.example 不存在,GITHUB_TOKEN 格式无文档说明
修复方案:
- 重写 index-stream.js: 自包含、独立 try-catch、socketCallBackResponse ACK
- 创建 .env.example: 文档化所有 10 个环境变量
- 修复 .gitignore: 添加 node_modules/
- 更新 ecosystem.config.js: 指向 index-stream.js, 进程名 dingtalk-stream
- 更新 package.json: 添加 @notionhq/client, 修正 main 和 start 脚本
- 更新 README.md: 反映当前 Stream 模式架构
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
|
2026-03-15 10:28:30 +00:00 |