initial version of tui

This commit is contained in:
Ramnique Singh 2025-12-16 14:48:04 +05:30
parent 89a2fc583e
commit d0d0a3612e
14 changed files with 2079 additions and 70 deletions

View file

@ -1,7 +1,8 @@
#!/usr/bin/env node
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
import { app, modelConfig, updateState, importExample, listExamples, exportWorkflow } from '../dist/app.js';
import { app, modelConfig, importExample, listExamples, exportWorkflow } from '../dist/app.js';
import { runTui } from '../dist/tui/index.js';
yargs(hideBin(process.argv))
@ -36,6 +37,20 @@ yargs(hideBin(process.argv))
});
}
)
.command(
"ui",
"Launch the interactive Rowboat dashboard",
(y) => y
.option("server-url", {
type: "string",
description: "Rowboat server base URL",
}),
(argv) => {
runTui({
serverUrl: argv.serverUrl,
});
}
)
.command(
"import",
"Import an example workflow (--example) or custom workflow from file (--file)",