Files
agent-ui/server/terminal.ts
josedario87 8daf07819b feat: Add realtime git status updates via WebSocket
- Add file watcher on .git directory in terminal server
- Broadcast git-change events to connected clients
- Frontend auto-refreshes when changes detected
- Visual indicator shows realtime connection status
2026-02-14 11:20:55 -06:00

25 lines
759 B
TypeScript

#!/usr/bin/env bun
/**
* Terminal Server - Independent process
* This runs separately from the main server to maintain stable Claude Code sessions
* even when the main server restarts due to code changes.
*/
import { startTerminalServer, startGitWatcher } from './services/terminal'
import { WORKING_DIR } from './config'
console.log('')
console.log('='.repeat(50))
console.log('Terminal Server (Independent Process)')
console.log(` WebSocket: ws://localhost:4103`)
console.log(` Working Dir: ${WORKING_DIR}`)
console.log(` Git Watcher: enabled`)
console.log('')
console.log('This process is stable and won\'t restart')
console.log('when the main server reloads.')
console.log('='.repeat(50))
console.log('')
startTerminalServer()
startGitWatcher()