cursor adapter: auto-pass trust flag for non-interactive runs

This commit is contained in:
Dotta
2026-03-05 08:28:12 -06:00
parent eabfd9d9f6
commit 8f70e79240
4 changed files with 200 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
export function hasCursorTrustBypassArg(args: readonly string[]): boolean {
return args.some(
(arg) =>
arg === "--trust" ||
arg === "--yolo" ||
arg === "-f" ||
arg.startsWith("--trust="),
);
}