fix: 🎨 Fix typescript errors

This commit is contained in:
Shawn Smith 2025-11-11 18:57:25 -08:00
parent 888a5ba37d
commit 3463f79883

View file

@ -84,7 +84,7 @@ export async function startTUIChat(
(stdinToUse as any).setRawMode(true);
(stdinToUse as any).setRawMode(false);
logger.debug("Raw mode test passed - TTY is suitable for Ink");
} catch (error) {
} catch {
throw new Error(
"Terminal does not support raw mode required for interactive UI.\n" +
'Use -p flag for headless mode: cn -p "your prompt"',
@ -145,7 +145,7 @@ export async function startRemoteTUIChat(
(process.stdin as any).setRawMode(true);
(process.stdin as any).setRawMode(false);
logger.debug("Raw mode test passed for remote TUI");
} catch (error) {
} catch {
throw new Error(
"Terminal does not support raw mode required for interactive UI.",
);