What's Changed
Added
- Safe commands expansion —
cd, GitHub CLI read-only subcommands (gh pr view/list/diff/checks/status,gh issue view/list,gh repo view/fork/list,gh release view/list/download,gh run view/list), and git read-only subcommands (blame,shortlog,stash list,tag -l/--list,describe) - Harmless redirect stripping —
2>/dev/nulland2>&1are stripped before pattern matching - Extracted
shouldBlockFilePath()— file-path blocking logic into a testable pure function - 4
shouldBlockFilePathtests — validatesdocs/plans/-only writes during brainstorm/plan
Fixed
git stash listandgit tag -lfalsely blocked — destructive pattern now uses negative lookaheads to allow read-only variants
Full Changelog: v0.8.1...v0.8.2