mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 11:55:47 -06:00
269bc5c89e
Co-authored-by: 1052326311 <65798732+1052326311@users.noreply.github.com>
10 lines
437 B
TypeScript
10 lines
437 B
TypeScript
import { getMachineOutputCommandPath } from "./machine-output-argv.js";
|
|
|
|
const MACHINE_OUTPUT_COMMANDS = new Set(["blob", "coverage", "purge", "query", "sessions"]);
|
|
|
|
/** Proxy inspection commands reserve stdout for JSON or raw captured content. */
|
|
export function isProxyMachineOutput(argv: readonly string[]): boolean {
|
|
const [, command] = getMachineOutputCommandPath(argv, 2);
|
|
return MACHINE_OUTPUT_COMMANDS.has(command ?? "");
|
|
}
|