Commit Graph
3 Commits
Author SHA1 Message Date
ranxianglei fae6598300 feat(website): static markdown blog — zero-dep builder, generated pages, nav entry (#2269) 2026-10-06 22:17:47 +08:00
ework-agent 19bb01a007 feat: single-source config docs generated from YAML seeds (#2107)
website/config-reference/*.yaml (7 domain files, 225 entries) become the ONLY hand-maintained config reference. tools/gen-config-docs.mjs (pure Node, zero deps) regenerates, inside <!-- bili:gen --> / /* bili:gen */ marker blocks: the Parameter Reference index + env-knob map tables in CONFIGURATION.md/.zh-CN.md, and the i18n dict segments in website/main.js plus the table rows in website/docs/index.html (with inline EN no-JS fallback). Generated artifacts are committed; pages.yml untouched (site stays static, zero build step).

CI gains two guard jobs: docs-sync (regenerate + git diff --exit-code on the four artifact files) and docs-coverage (every BILI_*/ACP_* env var read in src/ and every FileConfig top-level key must have a seed entry; missing names listed, exit 1).

Acceptance verified locally: double-run byte-identical; wrong default -> readable diff; deleted env entry -> coverage red naming it; EN/ZH dict sets equal with all refs resolving; subpath mount serves all local assets 200.

Behavior changes (docs-only, no config surface added): env-map table rows now sorted by env name (was subsystem-grouped) and zh defaults normalized to the shared value strings; cr.models/cr.compat site cells switch data-i18n -> data-i18n-html because their values contain <span class='mech'> markup that previously rendered as raw text; Parameter Reference section gains its first content (previously an empty legend stub); human prose outside marker blocks is byte-untouched.
2026-10-04 23:38:51 +08:00
ranxianglei bf6690b1d6 feat(debug): request dump default-on in debug mode + prefix-overlap analyzer
- Dumps now default-on when --debug is passed (no need for ACP_DUMP_REQ=1).
  Set ACP_DUMP_REQ=0 to opt out.
- Dump dir moved from tmpdir (cleared on reboot) to persistent
  ~/.local/state/billion-context/dumps/ (alongside bili.log).
- ACP_DUMP_DIR still overrides the location.
- Existing dump improvements kept: full body (no 50K truncation),
  pretty-printed, session ID in filename.
- New tool: tools/analyze-dumps.mjs — computes prefix-overlap % between
  consecutive dumps. ~100% = stable prefix (no compression). Drop =
  compression or prefix change. Shows first divergent message index.
  Usage: node tools/analyze-dumps.mjs [dir] [session-id?]
2026-08-11 09:38:45 +08:00