Skip to content

v0.5.1

Choose a tag to compare

@silversurfer562 silversurfer562 released this 12 Apr 13:37
· 24 commits to main since this release

Deep-review fixes: bug fix, refactoring, and test coverage improvements.

Fixed

  • [BLOCKING] lookup_simpler MCP handler created a fresh LocalFileStorage() to read depth back instead of using the engine's own storage instance — broke custom storage backends.
  • list_topics parameter renamed from type to type_filter to avoid shadowing the Python builtin.
  • precursor_warnings extension/filename maps extracted to module-level constants, reducing the method from 110 to ~10 lines.
  • Category-name map consolidated: handlers now import _PREFIX_MAP from templates.py instead of re-declaring it.
  • Repeated string-validation boilerplate across all 10 MCP handlers extracted into a shared _require_str() helper.
  • _auto_detect_renderer return typed as Callable[[PopulatedTemplate], str] instead of Any.

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%.

PyPI: https://pypi.org/project/attune-help/0.5.1/