Repository navigation
docs: slim READMEs into focused landing pages - #1527
Conversation
📦 Built Package ArtifactBranch: Option A — Install this exact build (recommended)npm install -g billion-context@0.0.1493-pr.1527.8eac168This exact version is immutable and reproducible. The rolling Option B — Download artifact
tar xzf billion-context-pr1527.tgz
npm install -g packageInstall instructions are refreshed on each push. |
Moved out of the READMEs: dsh, Kimi Code, Hermes, ZCode, Gemini family (Gemini CLI / iFlow CLI / Qwen Code), CONNECT blind-tunnel clients (#897), unrecognized endpoints (#1290), and the full OpenCode section (launcher / native / pure proxy, /acp status & rules, legacy opencode-acp sessions #920). Content is verbatim from the old README sections; the zh doc also gains the /acp-cache paragraph that was missing from the old zh README.
…nto CONFIGURATION and SESSION-IDENTITY - CONFIGURATION.md/.zh-CN.md: top-level proxy entry now carries the full resolution order (per-URL > BILI_UPSTREAM_PROXY > Web UI manual > top-level > env > Windows system > direct), loop prevention, both egress paths, updater egress (#609), Windows Clash/Mihomo discovery, SOCKS5 policy, and a jsonc example; new 'MITM vs /bili/ key schemes' section with the lookup-key table; BILI_UPSTREAM_PROXY row corrected to match src/upstream-proxy.ts (per-URL wins first); stale README pointers now target this file or CLIENTS.md. - SESSION-IDENTITY.md/.zh-CN.md: new derived-(child)-sessions section (#1333/#1362): lineage-at-birth parentConversationId -> derivedFrom, read-only parent-chain fallback, lane table.
README.md 1300 -> 621 lines, README.zh-CN.md 590 -> 349. Per-client deep dives moved to CLIENTS.md/.zh-CN.md; upstream-proxy/GFW and compat.roles content moved to CONFIGURATION.md/.zh-CN.md; derived-sessions detail moved to SESSION-IDENTITY.md/.zh-CN.md; Running-the-proxy subsections condensed without losing facts (#409/#1073 admission, self-restart safety gates, log rotation); session GC / Windows AV / derived sections reduced to short summaries with links. zh auto-update section now documents the self-restart options that were previously EN-only (parity fill). All cross-references verified to resolve.
Pre-existing: the BILI_PREFLIGHT_HOLD_MS rows cited a README section that never existed (no such heading in any README revision). The env var row stands on its own with the #568 citation.
…tion (review of #1527)
5808383 to
7844026
Compare
[bot] 🏷 Review progress — branch verified, rebased, local gates green; awaiting CI on the new head. ① Issue/direction: matches #1522 exactly (slim READMEs into landing pages; config material → CONFIGURATION.md, per-client deep dives → new CLIENTS.md, derived-session detail → SESSION-IDENTITY.md). Direction approved in that thread; scope respected — diff touches exactly 8 markdown files (+823/−968), zero code/version/lockfile changes. ② Regression review (existing behavior of the touched docs): verified the old README's full fact inventory survives the split — programmatic preservation audit plus cluster-by-cluster checks against the new corpus: proxy rules (resolution order, empty-string = explicit direct, both egress paths, updater egress #609, SOCKS5 split, key-scheme table), Windows AV section (Defender steps + ③ Code review findings (both fixed directly on the branch):
Rebase: branch was 126 commits behind master and master had touched 4 of the 8 files (attribution term, MESSAGE-IDENTITY pointers, streamErrorShape/resumeInheritance rows). Rebased onto current master — clean 3-way merge, all master-side additions verified present in the slimmed structure. Post-rebase gates: typecheck ✓, full suite 3001 pass / 0 fail ✓, build ✓, anchor-level link check ✓. Pushed as 7844026 (5 linear commits). CI on the new head is running — final verdict (mergeable or not) in a follow-up comment once it's green. 本轮审查:核对内容迁移无事实丢失(找回一条被压缩掉的 #1073 行为细节)、修正 PR 描述中一处史实错误、把落后 master 126 个提交的分支 rebase 到最新并全量复跑门禁,等 CI 绿后给出可合并结论。 |
[bot] 🏷 ✅ Review complete — mergeable. CI is fully green on the rebased head Final position after the full pass:
Nothing left to fix on my side. Merge whenever you're ready — I can't merge PRs myself (system rule): #1527 审查结论:文档重组无事实丢失、无运行时行为变更,两处文档纠错均与代码核对一致;已把分支 rebase 到最新 master(落后的 126 个提交中 master 侧的文档新增全部并入)、补回一条被压缩掉的 #1073 行为细节、修正 PR 描述一处史实错误;本地与 CI 全部门禁通过,可以合并。 |
这一大坨,换成几个工具介绍, |
[bot] 🏷 Done — that wall is now a compact per-tool intro in both READMEs (commit New shape under How it works (new
What was dropped vs kept: every issue citation and every config-key name survives; only the deep mechanics moved out of sight (plugin-lane manifest broadcast, proxy-mode-only retrieval disarming, v2 interval restore, sharp/kernel split, delete/clear syntax) — those remain fully documented in CONFIGURATION.md/.zh-CN.md, which is exactly the split this PR exists to make. Net diff: −14/+16 lines across the two files, link check green. 已把那段「大坨」换成逐工具一行式介绍(核心四工具各一行 + 四个可选扩展各一句带引用 + 保护开关一句点名全部 key),细节语义留在 CONFIGURATION 文档里,中英文 README 同步,CI 全绿。 |
修复了 README.zh-CN.md 中的文本格式和内容,确保信息的准确性和一致性。
- Follow the manual cleanup pattern applied to README.zh-CN.md: compress client-table cells, launcher comments, native-vs-standalone paragraph, notes lists and session-mechanism core paragraphs in BOTH languages; mirror the owner's quickstart labels (most native / config-free / most universal) into English. - Move the Option-1 spawn/reuse/attach-gate/discovery/runtime-info mechanics out of README.md into TECHNICAL-NOTES(.zh-CN).md as a new 'Proxy reuse and the attach gate' section; README keeps a one-line pointer. - Repoint the CONFIGURATION(.zh-CN) attach-gate citation at the new TECHNICAL-NOTES section (it pointed at a README section now removed). - Docs only; zero runtime/code changes.
Closes #1522
What changed
Pure documentation reorganization — zero code or behavior changes (8 markdown files, −968/+823 lines). The READMEs carried large amounts of config-file material and per-client deep dives; this splits them into their natural homes:
/acpstatus & rules, legacy #920)CLIENTS.md+CLIENTS.zh-CN.mdmitm://vshttps://lookup-key tableCONFIGURATION.md/.zh-CN.md(top-levelproxyentry + new MITM vs/bili/key schemes section)compat.roleswire-compat sectionCONFIGURATION.md(compat) — README section removed, pointer leftSESSION-IDENTITY.md/.zh-CN.md(new section)Result:
README.md1300 → 621 lines,README.zh-CN.md590 → 349. Both remain landing pages: intro → how it works (incl. Two compression modes, still cited by AGENTS.md and src/server.ts) → which do I need? → install → quickstart (one line per client) → running the proxy → configuration pointer → session model.Behavior-change disclosure
None at runtime. Two doc corrections found while moving content (each isolated in its own commit):
BILI_PREFLIGHT_HOLD_MSrow in CONFIGURATION.md cited a README section "Preflight hold" that no longer exists in the README — the section was added by Preflight compression holds the request with zero response bytes; client undici headersTimeout (default 300s) kills it -> repeated[preflight] summarization aborted: client disconnected5-minute death loop, payload never forwarded #568 and later removed from the README (e152a66), leaving the CONFIGURATION.md citation dangling. Reference dropped; the row now stands on its own with the Preflight compression holds the request with zero response bytes; client undici headersTimeout (default 300s) kills it -> repeated[preflight] summarization aborted: client disconnected5-minute death loop, payload never forwarded #568 citation.BILI_UPSTREAM_PROXYrow corrected to match the code: it claimed the env var has priority above per-URL proxies;src/upstream-proxy.ts:253-307checks the per-URL route first, then the global chain. Docs now state the actual order (per-URL >BILI_UPSTREAM_PROXY> Web UI manual > top-level > env > Windows system > direct).Also a zh/en parity fill: the zh auto-update section now documents the opt-in self-restart options (
--auto-restart-on-update/ACP_AUTO_RESTART_ON_UPDATE/autoRestartOnUpdate) that were previously EN-only.Verification
streamErrorShape/BILI_STREAM_ERROR_SHAPE/BILI_RESUME_INHERITANCErows) carried into the slimmed structure; one fact dropped by condensation restored ([Bug]__bili/health探测以绝对形式 URL 到达实例被判为隧道请求 → 自家 admin 护栏 403(2372 次),同窗口出现实例增殖与端口抖动(#394 告警实锤) #1073: an absolute-form request addressed to the instance's own management endpoint is served locally instead of tunneled). Post-rebase gates all green: typecheck, full test suite (3001 pass / 0 fail), build, and the anchor-level link check.