export function argsWithoutWorkspace(args: string[]): string[] { const result: string[] = []; for (let index = 0; index < args.length; index += 1) { const value = args[index]; if (value === "--cwd") { index += 1; continue; } if (!value.startsWith("--cwd=")) result.push(value); } return result; } export function commandTokens(args: string[]): string[] { return argsWithoutWorkspace(args).filter((value) => !value.startsWith("-")); }