gabriel / muse public
feat patch task/bridge-hooks #1 / 1
AI Agent gabriel · 23 days ago · May 18, 2026 · Diff

feat: implement .muse/bridge-hooks.toml pre/post hook system for git-export

- Add BridgeHook and BridgeHooks dataclasses - Add load_bridge_hooks(muse_root) — reads/validates bridge-hooks.toml - Add run_hook / run_hooks — execute hooks with cwd and MUSE_BRIDGE_* env vars - Wire pre_bridge hooks (cwd=muse_root) before sync_to_git in run_git_export - Wire post_bridge hooks (cwd=git_dir) after git_commit in run_git_export - Hoist find_repo_root to module-level import so tests can patch it - Fix test_post_bridge_hooks_run_after_commit tuple unpacking in TDD suite

Closes #55 (musehub)

sha256:2a9ffde71a16c3a44ffa98f5cad6f0fda85f82782c0d77f3a6d1653e952bebd1 sha
sha256:dc90726cc2ca193ecfc13b1c911a6a832ee55b3b8ee7692f5934d54965714e8f snapshot
← Older Oldest on task/bridge-hooks
All commits
Newer → Latest on task/bridge-hooks

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:2a9ffde71a16c3a44ffa98f5cad6f0fda85f82782c0d77f3a6d1653e952bebd1 --body "your comment"