diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6be222b..16c704d 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -3,8 +3,12 @@ import { Sidebar } from '@/components/layout/Sidebar' import { Dashboard } from '@/pages/Dashboard' import { CommandPalette } from '@/components/CommandPalette' import { accWS } from '@/lib/websocket' +import { useAppStore } from '@/store/useAppStore' export default function App() { + const { agents } = useAppStore() + const online = agents.filter(a => a.healthy).length + useEffect(() => { accWS.connect('ws://localhost:8100/ws') }, []) @@ -12,9 +16,20 @@ export default function App() { return (
Управление агентами, задачами и проектами
-Вот что происходит с вашими агентами