hermes-agent/ui-tui/src/main.tsx
2026-04-02 20:39:52 -05:00

15 lines
302 B
TypeScript

'use strict'
import { render } from 'ink'
import { App } from './app.js'
import { GatewayClient } from './gatewayClient.js'
if (!process.stdin.isTTY) {
console.log('hermes-tui: no TTY')
process.exit(0)
}
const gw = new GatewayClient()
gw.start()
render(<App gw={gw} />, { exitOnCtrlC: false })