github kenryu42/cc-safety-net v2.6.12

3 hours ago

A maintenance release that fixes how malformed commands are refused, keeps the Factory Droid uninstall from leaving the hook active, and closes a Windows workdir gap in the Hermes Agent integration.

Changed

  • Improved shell-command analysis performance for deeply nested and very long commands by no longer copying and freezing the parse tree on every analysis. (#261)

Fixed

  • Fixed ccsn explain printing a raw internal error for a command the shell parser cannot parse, such as echo ${. It now prints the unparseable-command reason on stderr and exits 1, or {"error": ...} with --json. (#262)
  • Fixed hook denials and audit entries for an unparseable command reporting the generic "failed unexpectedly" internal failure. They now report the rule analysis.strict-unparseable, and ccsn logs <id> shows the error code unparseable-command. Such commands are still denied at every safety level. (#262)
  • Fixed uninstall --droid deleting ~/.factory/hooks.json while the legacy ~/.factory/hooks/hooks.json still contained the managed handler, which reported a successful uninstall while Factory Droid kept running the hook. The stripped hooks.json is now kept whenever either fallback file exists. (#259)
  • Fixed the Hermes Agent integration allowing a terminal call whose workdir used the Windows namespace form (\\?\C:\...). It is now denied as an unusable requested directory, matching every other integration. (#261)

Don't miss a new cc-safety-net release

NewReleases is sending notifications on new releases.