- Consolidate git and torch WebSocket servers on port 4105 - Create separate handlers for git and torch in handlers/ directory - Combine TorchButton with connection status into single pill button - Remove StatusBar (now redundant with TorchButton) - Remove auto-assign torch on register/disconnect - Remove auto-connect to MCP on page load - Connection only happens when user explicitly requests torch
26 lines
837 B
TypeScript
26 lines
837 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 } from './services/terminal'
|
|
import { startSyncServer } from './services/sync-server'
|
|
import { WORKING_DIR } from './config'
|
|
|
|
console.log('')
|
|
console.log('='.repeat(50))
|
|
console.log('Terminal Server (Independent Process)')
|
|
console.log(` Terminal WebSocket: ws://localhost:4103`)
|
|
console.log(` Sync WebSocket (Git + Torch): ws://localhost:4105`)
|
|
console.log(` Working Dir: ${WORKING_DIR}`)
|
|
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()
|
|
startSyncServer()
|