mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-17 04:31:55 +00:00
16 lines
318 B
JavaScript
16 lines
318 B
JavaScript
#!/usr/bin/env node
|
|
import { render } from '@hermes/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
|
|
})
|