Releases: kenryu42/claude-code-safety-net
Releases · kenryu42/claude-code-safety-net
v0.8.2
Fixed
- Allow
rm -rffor explicit temp-directory targets such as/tmp/...,/var/tmp/...,
and$TMPDIR/...even when the current working directory is$HOME - Move home-directory
rmclassification into the sharedrules-rmanalyzer so blocking
decisions andexplainoutput follow the same target-aware path
Related Issues
- Issue #41: False positives block legitimate cleanup operations and string literals in gh commands
Related PRs
- PR #42: fix(rules-rm): allow temp targets when cwd is home directory
v0.8.1
New Features
- Detect
copilot-safety-netplugin installs indoctorviacopilot plugin list
Fixed
- Populate
configPathconsistently when Copilot CLI is detected through the plugin flow - Report
copilot-pluginas the config path for plugin-based Copilot CLI detection
Related PRs
- PR #40: feat: add copilot cli plugin detection to doctor command
v0.8.0
New Features
- Add
doctorsupport for GitHub Copilot CLI, including detection of Safety Net hooks in repository hook files, user hook files, and inline Copilot settings with version-aware diagnostics. - Block
git switch --force,git switch --discard-changes, andgit checkout --force/-f.
Changed
- Show the detected Copilot CLI version in
doctoroutput and probe Copilot version commands more quickly and reliably. - Expand Copilot CLI setup documentation to cover hook-file and inline config variants, config precedence,
disableAllHooks, andCOPILOT_HOME.
Fixed
- Close a
TMPDIRpath traversal bypass so non-temp overrides cannot escape/tmp,/var/tmp, or the system temp directory. - Harden shell parsing so destructive commands are still detected inside redirects, nested command substitutions, arithmetic expansions, grouped subshells, process substitutions, and attached backticks.
- Fix
git checkoutargument parsing for ambiguous ref/pathspec cases and documented option variants without misclassifying value-taking flags such asgit switch -cfeature.
v0.7.1
Core
- c439be8 fix: strip trailing separators in path normalization for cross-platform comparison
- 33012b1 fix: resolve cwd to absolute path in explain config
- 300ee42 fix: handle Windows path separators in rm command analysis
- a4db304 fix: windows path separator
Claude Code
No changes in this release
OpenCode
No changes in this release
v0.7.0
Core
- 25c18a2 feat: add explain command and structured CLI help
- 976e382 fix: add fallback for missing timestamp in session ID
- e187b3f fix: rename outputDeny to outputCopilotDeny
- db01a91 feat: add GitHub Copilot CLI hooks integration
Claude Code
No changes in this release
OpenCode
No changes in this release
Thank you to 1 community contributor:
- @crmitchelmore:
- feat: add GitHub Copilot CLI hooks integration
- fix: rename outputDeny to outputCopilotDeny
- fix: add fallback for missing timestamp in session ID
v0.6.2
Core
- 58cc257 feat: add doctor command diagnostics
Claude Code
- 44cb35c fix(windows): explicitly invoke cc-safety-net.js with node
OpenCode
No changes in this release
Thanks to @jacoballen4534 for identifying and suggesting the fix for Windows support in #21.
v0.6.0
Core
Claude Code
- e121857 feat: add /set-statusline slash command
- 8b0bb67 fix: use local binary in hook instead of npx for faster execution
OpenCode
No changes in this release
Thanks to @lgandecki for identifying the npx performance overhead.