v0.5.1
Deep-review fixes: bug fix, refactoring, and test coverage improvements.
Fixed
- [BLOCKING]
lookup_simplerMCP handler created a freshLocalFileStorage()to read depth back instead of using the engine's own storage instance — broke custom storage backends. list_topicsparameter renamed fromtypetotype_filterto avoid shadowing the Python builtin.precursor_warningsextension/filename maps extracted to module-level constants, reducing the method from 110 to ~10 lines.- Category-name map consolidated: handlers now import
_PREFIX_MAPfromtemplates.pyinstead of re-declaring it. - Repeated string-validation boilerplate across all 10 MCP handlers extracted into a shared
_require_str()helper. _auto_detect_rendererreturn typed asCallable[[PopulatedTemplate], str]instead ofAny.
Tests
- 20 new tests: renderer branches (error/warning/tip, marketplace, CLI plain),
engine.get()coverage, and MCP handler error-path coverage. - Overall coverage: 78% → 84%.