From 0f73bd60bfbaea59ef3d9ab1955bf064317a8fda Mon Sep 17 00:00:00 2001 From: josedario87 Date: Sat, 14 Feb 2026 17:13:32 -0600 Subject: [PATCH] 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 --- frontend/src/App.vue | 24 ++- frontend/src/components/TorchButton.vue | 173 ++++++++++++++----- frontend/src/config/endpoints.ts | 4 +- frontend/src/services/torch.ts | 24 +-- frontend/src/services/webmcp.ts | 28 ++++ package.json | 2 +- server/config.ts | 1 - server/services/git-watcher.ts | 158 ------------------ server/services/handlers/git-handler.ts | 86 ++++++++++ server/services/handlers/torch-handler.ts | 143 ++++++++++++++++ server/services/sync-server.ts | 109 ++++++++++++ server/services/torch-server.ts | 192 ---------------------- server/terminal.ts | 9 +- 13 files changed, 519 insertions(+), 434 deletions(-) delete mode 100644 server/services/git-watcher.ts create mode 100644 server/services/handlers/git-handler.ts create mode 100644 server/services/handlers/torch-handler.ts create mode 100644 server/services/sync-server.ts delete mode 100644 server/services/torch-server.ts diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 4fd154f..c892249 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,7 +1,6 @@