Files
hermes/ui-tui/src/main.tsx
Brooklyn Nicholson 5a5d90c85a chore: formatting etc
2026-04-03 20:14:57 -05:00

15 lines
314 B
TypeScript

import { render } from 'ink'
import React from 'react'
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 })