Harden computer use runtime and CLI (#4705)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo Hong
2026-06-07 17:49:01 -07:00
committed by GitHub
co-authored by Orca
parent 401fc1e43e
commit 76cb846d68
96 changed files with 10408 additions and 3410 deletions
+9
View File
@@ -0,0 +1,9 @@
export function quoteCliCommandArgument(value: string): string {
if (/^[a-zA-Z0-9._:/@-]+$/.test(value)) {
return value
}
if (process.platform === 'win32') {
return `"${value.replace(/"/g, '\\"')}"`
}
return `'${value.replaceAll("'", "'\\''")}'`
}