Add doc-weaver: TypeScript documentation compiler

TypeDoc + JSDoc (RDFC) compiler mirroring doc-forge. Emits a
doc-forge-shaped MCP JSON bundle and a TypeDoc human site, with an MCP
server (official SDK, stdio), a build/serve CLI, and React-aware kind
classification. Includes the RDFC wiki (docs/wiki) and MkDocs config.
This commit is contained in:
2026-10-18 12:17:18 +05:30
parent bb3767ac15
commit f7a997b4ce
23 changed files with 3404 additions and 0 deletions

24
CHANGELOG.md Normal file
View File

@@ -0,0 +1,24 @@
# Changelog
All notable changes to `doc-weaver` are documented here.
## 0.1.0
### Added
- TypeDoc-based loader (`runTypeDocJson`) producing serialized reflection JSON.
- `TypeDocJsonToMCP` renderer emitting a doc-forge-compatible MCP bundle:
`index.json`, `nav.json`, and per-module JSON under `modules/` with dotted
module paths and `docs://` resource URIs.
- `generateHumanDocs` renderer producing the TypeDoc HTML site (the MkDocs
parallel).
- `MCPServer` built on the official `@modelcontextprotocol/sdk`, exposing
`docs://index`, `docs://nav`, and `docs://modules/{module}` plus a `ping`
tool.
- `doc-weaver build` and `doc-weaver serve` CLI commands.
- React-aware kind classification (`component`, `hook`) and Google-style
docstring rendering.
- RDFC convention guide under `docs/wiki/02_rdfc.md`, plus a hand-written
wiki (`docs/wiki/`) built with MkDocs into `site/wiki/`.
- Self-documentation: `docs/mcp/` bundle and `site/lib/` TypeDoc site for
`doc-weaver` itself.