Adds the first local web viewer for compiled wikis, a GitHub Copilot provider, and a persisted lint summary that lets the viewer report wiki health without re-running lint on every page load.
Added
llmwiki view— starts a local read-only web viewer for the current project. The viewer includes a sidebar grouped by concepts and saved queries, a dashboard home, markdown rendering, wikilinks, title/body search, page metadata, health counts, and provenance/citation support rails.- Citation chips in the viewer — paragraph citations and claim-level source ranges render as visible chips. On loopback binds, chips can include local editor links for source-line context; LAN binds omit filesystem paths and editor links.
- Secure-by-default local server —
viewbinds to127.0.0.1by default, uses an OS-assigned port unless--portis provided, and requires--host <host>and--allow-lantogether before binding beyond loopback. The server applies pinned CSP / CORP / nosniff / referrer headers, Host / Origin / Sec-Fetch checks, and path confinement for all served files. - Viewer health payload —
/api/healthexposes cheap project counts, pending review count parity with MCPwiki_status, and the latest cached lint summary when available. - GitHub Copilot provider —
LLMWIKI_PROVIDER=copilotuses the GitHub Copilot API withGITHUB_TOKEN=$(gh auth token)from an OAuth token that has thecopilotscope. Copilot supports chat/tool calls but does not expose embeddings, so embedding-dependent semantic search should use another provider.
Changed
llmwiki lintnow writes.llmwiki/last-lint.jsonafter each completed lint run so the viewer can show a recent lint summary without running lint on every page load.- Shared wiki page collection — export and viewer collection now share the lower-level wiki collector while preserving each surface's own filtering and payload shape.
Test infrastructure
- Added subprocess, path-safety, sanitizer, accessibility, JS DOM, pack-asset, and server-security coverage for the viewer. Tests grew from 632 to 850 in this release.
Contributors
Thanks to @cadamsdev for contributing the GitHub Copilot provider in PR #55.