fix: Add missing loadTUI function for no-argument invocation (#1592)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>
Fixes #1589
This commit is contained in:
Ben Coombs
2026-01-21 17:46:31 +00:00
committed by GitHub
parent 129bc8fa7b
commit 4b515c60b2
10 changed files with 63 additions and 74 deletions

View File

@@ -5249,6 +5249,15 @@ Examples:
return programInstance;
}
/**
* Load the TUI module (coming soon)
* @returns {Promise<object|null>} null - TUI not yet available
*/
async function loadTUI() {
// TUI is coming soon - return null for now
return null;
}
/**
* Launch the interactive TUI REPL
*/
@@ -5257,10 +5266,8 @@ async function launchREPL() {
const tui = await loadTUI();
if (!tui) {
// Fallback to help if TUI not available
console.log(
chalk.yellow('TUI mode not available. Install @tm/tui to enable.')
);
// TUI coming soon - show help for now
console.log(chalk.yellow('TUI mode coming soon!'));
console.log(chalk.dim('Showing help instead...\n'));
if (isConnectedToHamster()) {
displayHamsterHelp();