Files
openclaw/extensions/memory-lancedb/cli-output-mode.ts
2026-07-27 05:44:16 -04:00

8 lines
371 B
TypeScript

import { getRootOptionAwareCommandPath } from "openclaw/plugin-sdk/cli-argv";
/** LanceDB inspection commands emit JSON as their only presentation. */
export function isMemoryMachineOutput(params: { argv: readonly string[] }): boolean {
const [, command] = getRootOptionAwareCommandPath(params.argv, 2);
return ["list", "query", "search"].includes(command ?? "");
}