gabriel / musehub public
BREAKING task/typing-audit #2 / 4
gabriel · 70 days ago · Apr 12, 2026 · Diff

tooling: add gen_type_contracts.py and regenerate type-contracts.md

Copy AST-based type contract generator from muse/tools/ into musehub/tools/. Run it to produce docs/reference/type-contracts.md from live source (314 types: 5 Enums, 47 TypedDicts, 215 Pydantic Models, 43 ORM Models, 4 Protocols).

The generator is self-contained — no external deps beyond stdlib ast. Run: python3 tools/gen_type_contracts.py --repo . --dirs musehub/ tests/ CI check: python3 tools/gen_type_contracts.py --check

sha256:7415b278906587d150233f06c69d5040dec0fc33140b72ccad39dc02ebc3f286 sha
sha256:18a183a0f7e4f3f9b2bf9ae61bea01fe8395d6a9c9a00f1897157abda5125a7a snapshot

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:7415b278906587d150233f06c69d5040dec0fc33140b72ccad39dc02ebc3f286 --body "your comment"