Commit Graph

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] bccdae0ba0
fix: address code review feedback on cos-watcher
- Use crypto.randomBytes for receipt key + ID uniqueness
- Log PERSONA_REPO_MAP parse errors instead of silently catching
- Cache cosWatcher.getStatus() call in health endpoint
- Extract INITIAL_SCAN_DELAY_MS constant with explanatory comment

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/991cbbcf-9e83-43c1-9225-e235e0a61f06

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-10 12:46:52 +00:00
copilot-swe-agent[bot] b487b6bc57
feat: COS桶轮询守护进程 · SCF事件替代方案 (cos-watcher.js)
新增 MCP Server 内置 COS 轮询守护模块,替代不可用的 SCF 事件触发:
- cos-watcher.js: 核心轮询引擎(node-cron · 每5分钟)
- cos-watcher-ops.js: 3个MCP工具(status/trigger/reset)
- server.js: 注册工具 + REST端点 + 健康检查集成 + 启停管理
- 架构文档更新标注SCF不可用 + 轮询替代方案
- 训练Agent workflow添加SCF限制说明

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/991cbbcf-9e83-43c1-9225-e235e0a61f06

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-10 12:43:16 +00:00