@grwnd/pi-governance 1.8.0 → 1.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3664,7 +3664,16 @@ var DANGEROUS_PATTERNS = [
3664
3664
  // Compiler/build (can execute arbitrary code)
3665
3665
  /\bmake\s/,
3666
3666
  /\bgcc\b/,
3667
- /\bg\+\+/
3667
+ /\bg\+\+/,
3668
+ // Governance config tampering — shell-based writes to governance files
3669
+ /(cat|echo|printf)\s.*>\s*.*governance(-rules)?\.yaml/,
3670
+ /\btee\s+.*governance(-rules)?\.yaml/,
3671
+ /sed\s+-i.*governance(-rules)?\.yaml/,
3672
+ /(cp|mv|rm)\s.*governance(-rules)?\.yaml/,
3673
+ /(cat|echo|printf)\s.*>\s*.*\.pi\/governance/,
3674
+ /\btee\s+.*\.pi\/governance/,
3675
+ /sed\s+-i.*\.pi\/governance/,
3676
+ /(cp|mv|rm)\s.*\.pi\/governance/
3668
3677
  ];
3669
3678
 
3670
3679
  // src/lib/bash/classifier.ts