Summary
Add docs/language-adapters-guide.md — a step-by-step guide for adding new language support (grammars, miners, framework detection) to the discovery pipeline.
Depends on: #124, #125, #126
Content
The guide has been drafted and committed to the repo. It covers:
- Registering a new
SupportedLanguage enum member
- Adding the tree-sitter grammar package and loader
- Extending
FrameworkDetector for the new language
- Creating miners (test functions, API routes) with
MinerContext and typed metadata
- Registering miners in
build_default_pipeline()
- Test fixture strategy
- Full checklist for new adapters
MinerContext reference table
- Configuration via
pyproject.toml
- Future enhancements (entry points, shared conftest, caching, traceability decoupling)
Uses Go as the running example throughout.
File
docs/language-adapters-guide.md (already drafted in repo)
Acceptance criteria
Summary
Add
docs/language-adapters-guide.md— a step-by-step guide for adding new language support (grammars, miners, framework detection) to the discovery pipeline.Depends on: #124, #125, #126
Content
The guide has been drafted and committed to the repo. It covers:
SupportedLanguageenum memberFrameworkDetectorfor the new languageMinerContextand typed metadatabuild_default_pipeline()MinerContextreference tablepyproject.tomlUses Go as the running example throughout.
File
docs/language-adapters-guide.md(already drafted in repo)Acceptance criteria
MinerContextreference matches the implementedcontext.pyTestFunctionMeta,ApiRouteMetafrom Discovery: DiscoveredItem data models and pipeline contracts #124docs/index.mdunder a new "Extending SpecLeft" sectiondocs/spec-format.md,docs/agent-contract.md)