mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-03 17:27:37 +08:00
19 lines
497 B
JavaScript
19 lines
497 B
JavaScript
#!/usr/bin/env node
|
|
// Order matters: paint banner + spawn python before loading @hermes/ink.
|
|
import { bootBanner } from './bootBanner.js'
|
|
import { GatewayClient } from './gatewayClient.js'
|
|
|
|
if (!process.stdin.isTTY) {
|
|
console.log('hermes-tui: no TTY')
|
|
process.exit(0)
|
|
}
|
|
|
|
process.stdout.write(bootBanner())
|
|
|
|
const gw = new GatewayClient()
|
|
gw.start()
|
|
|
|
const [{ render }, { App }] = await Promise.all([import('@hermes/ink'), import('./app.js')])
|
|
|
|
render(<App gw={gw} />, { exitOnCtrlC: false })
|