Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

290 B
Raw Blame
export const isTty = (stream) => 'isTTY' in stream && stream.isTTY === true;
const isRawModeStream = (stdin) => isTty(stdin) &&
    'setRawMode' in stdin &&
    typeof stdin.setRawMode === 'function';
export const getRawModeStream = (stdin) => (isRawModeStream(stdin) ? stdin : undefined);