- Switch tsconfig to nodenext module resolution for Node 22 (used by installer script) - Add shebang to entry.tsx, preserved into index.js - Add HERMES_ROOT env var fallback for repo root resolution
16 lines
346 B
JavaScript
16 lines
346 B
JavaScript
#!/usr/bin/env node
|
|
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, maxFps: 60 })
|