mirror of
https://github.com/BradGroux/veritas-kanban.git
synced 2026-10-11 14:17:55 +00:00
- Create useRealtimeAgentStatus hook with WebSocket subscription - Subscribe to agent:status events as primary transport - Fall back to polling every 10s when WebSocket disconnects - Auto-reconnect on WebSocket disconnect (via useWebSocket) - Stale detection marks agent as idle after 5+ min without updates - Memoized return value to prevent unnecessary re-renders - Full TypeScript types for AgentStatusData, SubAgent, AgentStatusState - Maintain backwards compatibility with useGlobalAgentStatus (polling-only)
45 lines
1.1 KiB
JSON
45 lines
1.1 KiB
JSON
{
|
|
"name": "@veritas-kanban/server",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"scripts": {
|
|
"dev": "tsx watch src/index.ts",
|
|
"build": "tsc",
|
|
"start": "node dist/index.js",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint src --ext .ts",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@veritas-kanban/shared": "workspace:*",
|
|
"cors": "^2.8.5",
|
|
"exceljs": "^4.4.0",
|
|
"express": "^4.21.0",
|
|
"gray-matter": "^4.0.3",
|
|
"mammoth": "^1.11.0",
|
|
"mime-types": "^3.0.2",
|
|
"multer": "^2.0.2",
|
|
"nanoid": "^5.0.9",
|
|
"simple-git": "^3.27.0",
|
|
"unpdf": "^1.4.0",
|
|
"ws": "^8.18.0",
|
|
"zod": "^3.24.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cors": "^2.8.17",
|
|
"@types/exceljs": "^1.3.2",
|
|
"@types/express": "^5.0.0",
|
|
"@types/mime-types": "^3.0.1",
|
|
"@types/multer": "^2.0.0",
|
|
"@types/supertest": "^6.0.3",
|
|
"@types/ws": "^8.5.13",
|
|
"eslint": "^9.17.0",
|
|
"supertest": "^7.2.2",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0"
|
|
}
|
|
}
|