v0.4.2 — Fix module execution and exit propagation
Completes the Claude Code hook reliability fix introduced in v0.4.1.
Changes:
- Added
mneme/__main__.pysopython -m mnemeworks correctly sys.exit(main())propagates CLI exit codes through the module entrypoint
Why this matters:
The Claude Code hook (added in v0.3.2) now invokes Mneme via sys.executable -m mneme (fixed in v0.4.1). Without a proper __main__.py, python -m mneme check could exit 0 regardless of verdict — allowing violating edits through even in strict mode.
Impact:
- Hook enforcement now blocks writes correctly on FAIL
- Completes cross-platform reliability for Claude Code integration
Upgrade: pip install --upgrade mneme