5 Commits
Author SHA1 Message Date
Willie 4076b2433a chore(ai-context): upgrade router script to 0.2.1
Pick up the upstream fix to Markdown link parsing: link reference
definitions now require a bare destination, and quotes that contain
nested lists are measured against the list opened inside them. The
existing docs pass check unchanged.
2026-10-29 22:28:45 +08:00
Willie 4defc80322 docs(ai-context): split e2e runbooks out of the testing topic
The testing topic was 8 bytes under its 16 KB cap, so any edit would
fail the router check. Move the E2E runbook, quality checklist and
Windows verification sections verbatim into a new e2e-runbooks topic
instead of raising the cap.

Also upgrade scripts/ai-context.py to 0.2.0, which adds link checking,
skipDirs and glob-based unrouted exceptions; the existing docs pass.
2026-10-29 21:12:09 +08:00
Willie 9c048ac7ac fix(ui): show where pull conflict versions differ (#331)
* fix(ui): show where pull conflict versions differ

The pull conflict dialog showed both versions in short 208px panes with no
marking, so users had to scroll and compare long files by eye to find what
actually conflicted.

Panes now use 55vh, lines that only one side has are tinted, each side
scrolls to its first difference, and the header counts differing lines.

* chore(docs): move ai-context router config into wiki/

The router config describes wiki topics, so it belongs next to the pages it
maps; docs/ reads as public documentation. The script is synced with the
upstream router, which also normalizes backslash paths and forces UTF-8
output for Windows consoles.

The router runs on the host rather than the devcontainer, so the kernel now
says to use py or python on Windows when python3 is unavailable.

* fix(ui): give pull conflict panes room and tidy the dialog edges

Short conflicting files still rendered as cramped strips, so panes now keep
a 40vh minimum. A long body scrolled straight under the title, so the header
gets a separator like the footer. The conflict banner's text sat above its
button because notes align to the top for multi-line errors; it is centered
when the message is the fixed conflict text.

* fix(ui): bound the pull conflict line diff

diffLines keeps an n×m table, so two 16 KiB previews that differ on every
line could allocate hundreds of megabytes and freeze the dialog. Matching
leading and trailing lines are now skipped before diffing, and versions whose
differing middle would still need over a million cells are shown unmarked.
2026-10-02 18:40:40 +08:00
star-nebula b789042d8b chore(scripts): normalize walked paths in ai-context orphan check (#330)
The orphan check compared paths built by os.walk and os.path.relpath,
which carry backslashes on Windows, with the forward-slash paths from
docs/ai-context.json and the router index. On Windows the check always
failed with false orphans, so it could not flag real router drift. Paths
are now normalized to forward slashes before comparing. Linux behavior
is unchanged.

This only affects contributor tooling, so it is typed as chore and does
not start a release.

Refs #329
2026-10-02 17:24:08 +08:00
Willie 262e639701 docs: add task-routed agent wiki
Add a shared instruction kernel and byte-budgeted topic router so agents load only task-relevant repository guidance. Wire drift checks into local and CI workflows and point project skills at the routed topics.
2026-09-25 02:32:37 +08:00