Skip to content

protect-files.mjs

  • Event: PreToolUse Edit/Write
  • Type: wall: blocks the action and says why (exits with code 2)

BLOCKS editing: files generated by Senzu, secrets (.env, *.pem, credentials), dependencies/build artifacts, versioned migrations, sealed conventions.md/json (cannot be turned off), masters of the chosen logo (logos/final/) and the project’s protectedPaths.

See the code of protect-files.mjs on GitHub