|
| 1 | +# WORKLOG - README 增加「该选哪个?」一节(EN+ZH) |
| 2 | + |
| 3 | +- Task ID: `2026-09-04_readme-which-do-i-need` |
| 4 | +- Home Repo: `opencode-acp` |
| 5 | +- Status: Done |
| 6 | +- Updated: 2026-09-05 |
| 7 | + |
| 8 | +## 1. Summary |
| 9 | + |
| 10 | +- **What was done** (1–3 sentences): 在 `README.md` 与 `README.zh-CN.md` 各新增一节「Which do I need? / 该选哪个?」,放在「## Why ACP / ## 为什么选择 ACP」之后(2026-09-05 按 owner 反馈从最初的「Installation 之前」改到此处)。内容为 owner 在 ranxianglei/billion-context#511 中定稿的四行选型表(pi / opencode / omp / 其余所有),每个项目带各自 GitHub 链接。 |
| 11 | +- **Why** (1–3 sentences): 三个包(billion-context / billion-context-pi / opencode-acp)经常被一起问「我该怎么选」。billion-context README 已有同节(PR #512),owner 要求跨仓库保持一致、方便用户互相跳转(issue #362)。 |
| 12 | +- **Behavior / compatibility changes**: No — 纯文档改动,不涉及代码、状态格式、配置或内部命名。 |
| 13 | +- **Risk level**: Low |
| 14 | + |
| 15 | +## 2. Change Log |
| 16 | + |
| 17 | +### Commits |
| 18 | + |
| 19 | +| Commit | Description | |
| 20 | +|--------|-------------| |
| 21 | +| `6fd6875` | docs: add "Which do I need?" section to READMEs (EN+ZH) | |
| 22 | +| _(this commit)_ | docs: move "Which do I need?" section to after "Why ACP" (owner feedback, #363) | |
| 23 | + |
| 24 | +### Key Files |
| 25 | + |
| 26 | +- `README.md` — 「## Why ACP」与「## Proven at scale」之间插入「## Which do I need?」节(按本仓库风格以 `---` 分隔)。 |
| 27 | +- `README.zh-CN.md` — 「为什么选择 ACP」与「实战验证」之间插入「## 该选哪个?」节,内容与 EN 对应。 |
| 28 | +- `devlog/2026-09-04_readme-which-do-i-need/REQ.md` — 需求记录。 |
| 29 | + |
| 30 | +## 3. Design & Implementation Notes |
| 31 | + |
| 32 | +- **表格内容来源**: 与 billion-context master `README.md` L115-124 / `README.zh-CN.md` L53-62 已合入的同节逐字一致(通过 GitHub API 核对);仅在本仓库中补了 `---` 分隔线以匹配本仓库章节排版。 |
| 33 | +- **位置**: 最初按 issue 放在「## Installation」之前;2026-09-05 owner 反馈「放在 为什么选择 ACP 后面吧」,改为放在「## Why ACP / ## 为什么选择 ACP」之后(先让读者选到正确的包,再看实战数据与安装)。表格内容不受影响,仍与 billion-context 逐字一致(billion-context 无 Why 章节,结构不同,故不强求绝对位置对齐)。 |
| 34 | +- **口径**: 只回答「什么时候选什么」,不展开三者原理/关系 —— owner 在 #511 floor 9 明确「写的太啰嗦…只需说什么时候选什么即可」,floor 13 确认精简版「这个可以了」。 |
| 35 | + |
| 36 | +## 4. Testing & Verification |
| 37 | + |
| 38 | +### Build & Test Commands |
| 39 | + |
| 40 | +```sh |
| 41 | +npm run typecheck # pass |
| 42 | +npm run build # pass (dist/index.js 425.45 KB) |
| 43 | +npm run test # 1077 pass / 0 fail |
| 44 | +``` |
| 45 | + |
| 46 | +### Test Coverage |
| 47 | + |
| 48 | +- New/modified test files: 无(纯 markdown,无源码改动) |
| 49 | +- Test count: 1077 total, 1077 pass, 0 fail(全量回归确认无副作用) |
| 50 | + |
| 51 | +### Results |
| 52 | + |
| 53 | +- **PASS/FAIL**: PASS |
| 54 | +- Markdown 结构核对: EN/ZH 两节均位于 Why ACP / 为什么选择 ACP 之后、Proven at scale / 实战验证 之前;表格四行完整;四个 GitHub 链接齐全;无重复 `---`。 |
| 55 | + |
| 56 | +## 5. Risk Assessment & Rollback |
| 57 | + |
| 58 | +- **Risk points**: 无。 |
| 59 | +- **Rollback method**: |
| 60 | + - Revert commit(s): 本 PR 的单个 docs commit |
| 61 | + - Rollback impact: 无 |
| 62 | +- **Compatibility notes** (data format, config schema): No |
| 63 | + |
| 64 | +## 6. Lessons Learned (optional) |
| 65 | + |
| 66 | +- 跨仓库同步文案时,直接通过 GitHub API(`Accept: application/vnd.github.raw+json`)拉取对方 master 的已合入版本做逐字比对,比凭 issue 正文更可靠(raw.githubusercontent.com 在本环境不可达,api.github.com 可达)。 |
| 67 | + |
| 68 | +## 7. Follow-ups (optional) |
| 69 | + |
| 70 | +- [ ] billion-context-pi 侧的同款 issue(ranxianglei/billion-context-pi#290)由该仓库的 agent 处理,不在本 PR 范围。 |
0 commit comments