v0.1.48 — LSP Enrichment
v0.1.48 — LSP enrichment, okf lsp CLI, new okf/enrich/ package
Added
- LSP enrichment (
okf enrich --lsp) — compiler-accurate caller/callee resolution via local language servers. Deterministic, zero token cost. 4 servers mapped: pyright (Python), gopls (Go), rust-analyzer (Rust), typescript-language-server (TS/JS). Newokf/enrich/package with pluggable Enricher contract. okf lspCLI subcommand —okf lsp status|resolve|mapfor inspecting and testing available language servers._llm_prompts.py— prompt templates extracted fromgenerator.pyintookf/enrich/_llm_prompts.pyalongside LSP in the enrich package. Shared security/complexity field spec deduplicated.- 301 unit tests — 19 new tests covering LSP enrichment, line range parsing, concept conversion, URI helpers, CLI flags, and EnrichResult.
- Roadmap updates — SAST enrichment and MkDocs replacement added to
docs/future.md.
Changed
okf enrichCLI flags — replaced--mode base|deep|security|fullwith--lsp,--llm,--full,--mode. Bareokf enrichnow errors with usage. LSP and LLM enrichment are independent flags that compose.- Enrichment docs — updated
docs/user-guide/enrichment.mdwith LSP section (how it works, server requirements, status table, LSP→LLM ordering). Updateddocs/user-guide/cli-reference.mdwithokf enrich+okf lspsections. - Landing page — added "LSP-Powered Call Graphs" feature card and "4 language servers" badge.
.gitignore— addeddist/and*.egg-infoentries.
Fixed
_parse_source_line_rangeregex now handles en-dash (U+2013) and em-dash separators.
See CHANGELOG.md for full details.