feat(init): supercharge JSON output with typed schema, warnings, timing, and error helpers
- Add _InitJson and _InitErrorJson TypedDicts matching documented schema - Add status/error/warnings/exit_code fields to all JSON responses - Add duration_ms (float, milliseconds) and created_at (ISO 8601 UTC) to success output - Add _emit_error() helper centralising error JSON emission and SystemExit - Thread warnings list through _copy_template() for symlink/muse-dir skip notices - Update module docstring to document both success and error JSON schemas - Fix existing TestCopyTemplate tests to pass warnings list argument - Add 50 new tests in test_init_supercharge.py covering schema shape, types, exit codes, warnings, duration, created_at, TypedDict annotations, docstring
sha256:1614412b25e147598b21f12d44c4530620388e4b000b38313051c3ca1ead2f3d
sha
sha256:c389caed134997c8f7454bf5a414c5afa51960b555653819c05e63c26ebf86c7
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:1614412b25e147598b21f12d44c4530620388e4b000b38313051c3ca1ead2f3d --body "your comment"
No comments yet. Be the first to start the discussion.