How teamuq-linebot/project-everyagent works
TeamUQ is an Electron desktop app for local project/task management, CLI sessions, work-time monitoring and punch records, with agent-team tools. The main workflow runs from the renderer through preload IPC to main-process session and task services; sessions can launch PTYs, while the monitor scans CLI activity and records punches in SQLite. Other major branches include conversation browsing, project management, settings and agent teams. The excerpts and source index support the principal wiring shown; several feature-to-handler details are unsampled, so those links are omitted.
Main entry points: App.tsx App Shell · backend.ts Backend Facade · sessionService.ts Session Service · MonitorController.ts Monitor Controller
Components 23
Desktop UI
- App Shell
src/renderer/App.tsx - Task Board
src/renderer/views/Kanban/KanbanBoard.tsx - Project Management
src/renderer/views/Management/ProjectManagementView.tsx - Session Views
src/renderer/views/Session/SessionTabHost.tsx - Conversation Views
src/renderer/views/conversation/ConversationRouter.tsx - Settings
src/renderer/views/Settings/SettingsPage.tsx
IPC Boundary
- Preload Bridges
src/preload/index.ts - IPC Router
src/main/ipc/router.ts - IPC Handlers
src/main/ipc/handlers
Session Runtime
- Backend Facade
src/main/backend.ts - Session Service
src/main/backend/services/sessionService.ts - PTY Manager
src/main/pty/ptyManager.ts - Conversation Service
src/main/backend/services/sessionConversationService.ts
Tasks and Worktime
- Task Service
src/main/services/taskService.ts - SQLite Repository
src/main/repo/sqliteTaskRepository.ts - Session Bindings
src/main/config/taskSessions.ts - Monitor Controller
src/main/monitor/MonitorController.ts - Worktime Discovery
src/main/worktime/worktimeSource.ts - Punch Execution
src/main/monitor/punchExecutor.ts - Punch Service
src/main/services/punchService.ts
Agent Teams
- Agent Teams UI
src/renderer/views/AgentTeams/AgentTeamsView.tsx - Team Registration
src/main/services/teamRegistrationService.ts
Other components
- User
Connections 26
- User → App Shell: uses
src/renderer/App.tsx - App Shell → Task Board: renders
src/renderer/App.tsx - App Shell → Project Management: renders
src/renderer/App.tsx - App Shell → Session Views: renders
src/renderer/App.tsx - App Shell → Settings: renders
src/renderer/App.tsx - App Shell → Agent Teams UI: renders
src/renderer/App.tsx - Conversation Views → App Shell: routes in
src/renderer/App.tsx - Task Board → Preload Bridges: requests tasks
- Preload Bridges → IPC Router: bridges IPC
- IPC Router → IPC Handlers: dispatches
src/main/ipc/router.ts - IPC Router → Backend Facade: routes calls
src/main/ipc/router.ts - Backend Facade → Task Service: uses
src/main/backend.ts - Backend Facade → SQLite Repository: uses
src/main/backend.ts - Backend Facade → Worktime Discovery: uses
src/main/backend.ts - Backend Facade → Session Service: delegates
src/main/backend.ts - Session Service → Monitor Controller: creates
src/main/backend/services/sessionService.ts - Session Service → PTY Manager: manages
src/main/backend/services/sessionService.ts - Session Service → Session Bindings: reads bindings
src/main/backend/services/sessionService.ts - Session Views → Conversation Service: requests conversations
- Conversation Service → Worktime Discovery: discovers transcripts
src/main/backend/services/sessionConversationService.ts - Monitor Controller → Worktime Discovery: reads workflows
src/main/monitor/MonitorController.ts - Monitor Controller → Punch Execution: executes punches
src/main/monitor/MonitorController.ts - Monitor Controller → Punch Service: uses
src/main/monitor/MonitorController.ts - Punch Execution → Punch Service: records via
src/main/monitor/punchExecutor.ts - Task Service → SQLite Repository: uses repository
- Agent Teams UI → Team Registration: manages teams