- Add torch WebSocket server on port 4106 - Remove HTTP polling, use WebSocket for instant sync - Torch state changes broadcast immediately to all clients - Auto-reconnect on disconnect - Add port 4106 to kill-ports script
16 lines
941 B
JSON
16 lines
941 B
JSON
{
|
|
"name": "agent-ui",
|
|
"version": "1.0.0",
|
|
"description": "Dynamic canvas for Claude Code interaction",
|
|
"scripts": {
|
|
"kill-ports": "node -e \"const {execSync} = require('child_process'); [4101,4102,4103,4105,4106].forEach(p => { try { const pid = execSync('netstat -ano | findstr :' + p + ' | findstr LISTENING', {encoding:'utf8'}).split(/\\s+/).pop().trim(); if(pid) execSync('taskkill /PID ' + pid + ' /F', {stdio:'ignore'}); } catch(e){} }); console.log('Ports cleared');\"",
|
|
"start": "bun run kill-ports && concurrently -n api,terminal,frontend -c blue,yellow,green \"cd server && bun --watch run index.ts\" \"cd server && bun run terminal.ts\" \"cd frontend && bun run dev --host\"",
|
|
"start:api": "cd server && bun --watch run index.ts",
|
|
"start:terminal": "cd server && bun run terminal.ts",
|
|
"start:frontend": "cd frontend && bun run dev --host"
|
|
},
|
|
"devDependencies": {
|
|
"concurrently": "^9.2.1"
|
|
}
|
|
}
|