Merges all 33 commits from lza6/ghbot-Nodeloc (v1.0.0 through v1.2.0) while keeping both sides' features in every conflicted file: - EventRouter dispatch extracted from runReview.ts (7.1), with the runtime environment block preserved on the review-start comment - Unified command ack messages (6.3) combined with the collapsed runtime environment block and bot signature on /recheck replies - Status banner and collapsible unposted findings in review bodies (6.1) - Centralized runtime directories behind GHBOT_RUNTIME_DIR (D-13); webhook knowledge cache now lives under tempRootDirectory() - Production hardening for merge races, timeouts, webhook ops; atomic temp-file rename for R2 cache restores kept from upstream - Webhook parity retained: triage events gated by WEBHOOK_TRIAGE_ENABLED, read-only command guidance, repository knowledge injection, runtime environment block on webhook chat replies - Sanitization/secret redaction centralization, error-aware retry, duplicate merge prevention, in-process webhook retries, /metrics - Infra: eslint/prettier gates with CI verify workflow, docs archives typecheck, eslint, prettier format:check, and 164 tests all pass.
计划与指南
本目录存放 ghbot 项目的计划、改进指南与相关文档,不包含任何代码改动。
文档清单
| 文件 | 内容 | 适用场景 |
|---|---|---|
| 下一步改进指南.md | 主指南:完整盘点、优先级决策树、P0~P6 改进项、里程碑落地计划、验证清单、禁止事项、附录 | 交给 AI 或人工按里程碑逐步落地代码改进 |
| (待补充)改进方案详解.md | 每个改进项的技术选型、权衡分析、关键代码示意 | 需要更深入方案论证时创建 |
| (待补充)bug修复记录.md | 已修复缺陷(对应正文「10. 已知缺陷」表) | 每次修复后回填状态 |
约定
- 本文档集与
ghbot/CLAUDE.md、README.md、README-zh.md保持同步; 正文描述与实际行为冲突时,以实际代码为准并回填缺陷表。 - 编码方禁止在本目录写入代码或临时文件;需要记录实现细节时创建
docs/下的独立文档。