mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-14 08:02:58 +00:00
* feat: run the cli ai evals on codex and deepseek Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ci: pick cli eval models from the harness and install codex Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: stop counting wmill in a file name as a cli eval mutation Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: harden the codex and deepseek cli eval runtimes Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep codex tool order and keep other keys from deepseek Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
11 lines
434 B
TypeScript
11 lines
434 B
TypeScript
export function isLikelyMutatingBashCommand(command: string): boolean {
|
|
return (
|
|
/\b(?:mkdir|touch|rm|mv|cp|install|tee)\b/.test(command) ||
|
|
/\b(?:cat|echo|printf)\b.*(?:>|>>|\|\s*tee\b)/.test(command) ||
|
|
/\bsed\s+-i\b/.test(command) ||
|
|
/\bperl\s+-pi\b/.test(command) ||
|
|
// In command position only: `cat AGENTS.wmill.md` is a read.
|
|
/(?:^|[;&|(]|\b(?:then|do|xargs)\s)\s*wmill(?:\s|$)/m.test(command)
|
|
);
|
|
}
|