mirror of
https://github.com/wassname/pi-goals.git
synced 2026-09-11 12:43:57 +08:00
Sign the supervisor gate note
Co-Authored-By: PI[gpt-5.6-sol] <288921227+claudypoo@users.noreply.github.com>
This commit is contained in:
co-authored by
PI[gpt-5.6-sol]
parent
96399ec3e4
commit
a44cd26c1d
+1
-1
@@ -676,7 +676,7 @@ function isPlanningReadOnlyCommand(command: string): boolean {
|
||||
});
|
||||
}
|
||||
|
||||
/** This blocks direct writes, not side effects hidden in allowed project scripts or custom tools. */
|
||||
/** This blocks direct writes, not side effects hidden in allowed project scripts or custom tools. -- PI[gpt-5.6-sol] */
|
||||
export function isSupervisorReadOnlyCommand(command: string): boolean {
|
||||
if (/[|><`$\n\r]/.test(command)) return false;
|
||||
const safeArgs = "(?:\\s+[A-Za-z0-9_./:=,'\"@+%-]+)*";
|
||||
|
||||
Reference in New Issue
Block a user