@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/README.md +1 -0
- package/dist/extensions/index.cjs +43 -5
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.js +43 -5
- package/dist/extensions/index.js.map +1 -1
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|