gabriel / muse public
feat patch task/apply-command #1 / 1
gabriel · 62 days ago · Apr 14, 2026 · Diff

feat: add muse apply command — apply .patch files to working tree

Implements _parse_patch, _apply_hunk, register, and run. - Parses unified diff (with mail-format header stripping) - Handles --check (validate without writing), --json output - Rejects path traversal and .muse/ internal paths - Supports format-patch → apply round-trip - 16 tests: unit, integration, security, stress — all green

sha256:c54a29a70951ebb33f9f8d65ec9e65101402d48ce03a713cdee4572ff997a579 sha
sha256:aa0205711ec0dae67052ccd9e3299289d301f8219cbb16242f3e1c347fbd8e7a snapshot
← Older Oldest on task/apply-command
All commits
Newer → Latest on task/apply-command

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