mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-04 02:21:47 +00:00
feat: split apart main.tsx
This commit is contained in:
parent
2818dd8611
commit
bbba9ed4f2
16 changed files with 1710 additions and 1653 deletions
15
ui-tui/src/entry.tsx
Normal file
15
ui-tui/src/entry.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
'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 })
|
||||
Loading…
Add table
Add a link
Reference in a new issue