refactor: Unify sync server and combine torch with connection UI

- 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
This commit is contained in:
2026-02-14 17:13:32 -06:00
parent c98f3e2b99
commit 0f73bd60bf
13 changed files with 519 additions and 434 deletions

View File

@@ -6,16 +6,14 @@
*/
import { startTerminalServer } from './services/terminal'
import { startGitServer } from './services/git-watcher'
import { startTorchServer } from './services/torch-server'
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(` Git WebSocket: ws://localhost:4105`)
console.log(` Torch WebSocket: ws://localhost:4106`)
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')
@@ -24,5 +22,4 @@ console.log('='.repeat(50))
console.log('')
startTerminalServer()
startGitServer()
startTorchServer()
startSyncServer()