Add task manager UI and APIs for project/agent/task orchestration#952
Closed
nullne wants to merge 5 commits intoslopus:mainfrom
Closed
Add task manager UI and APIs for project/agent/task orchestration#952nullne wants to merge 5 commits intoslopus:mainfrom
nullne wants to merge 5 commits intoslopus:mainfrom
Conversation
Introduces the core data layer for the agent-native IM system: - Prisma schema: Agent, Project, ProjectAgent (M:N), Task models with TaskStatus enum - Server routes: full CRUD for agents, projects (with agent linking), and tasks - happy-web: new Expo web package with IM-style layout (sidebar + task detail), zustand store, API client, settings page for agent/project management https://claude.ai/code/session_01He3k7YMAse61ksPTHbaPZp
feat: add Agent/Project/Task data models, CRUD APIs, and happy-web IM UI
…nt, task chat - Add Makefile with `make up` (docker-compose for server + web), `make cli` (daemon on host), `make seed` (programmatic auth), `make machine-info` - Add Dockerfile.web for happy-web Expo dev server in container - Add docker-compose.yml orchestrating server (PGlite) + web services - Add dev-only /v1/auth/dev-token endpoint (gated by DEV_AUTH_ENABLED) - Add 401 auto-retry interceptor in web API client - Add DB migrations for Agent/Project/Task tables, machine display info, project githubUrl - Add machine PATCH endpoint for displayName + hostInfo (hostname, IP, platform, agents, daemonPort, workspaceRoot) - Add POST /v1/tasks/:id/run to spawn agent sessions via daemon control server, with auto-generated workspace paths (ROOT/project-slug/task-slug) - Add GET/POST /v1/tasks/:id/chat with server-side NaCl encryption proxy for reading/writing session messages in dev mode - Add YOLO mode (--dangerously-skip-permissions) toggle on task creation - Redesign web UI: agents + machines in sidebar, inline project CRUD with github URL, multi-step agent creation (machine -> type -> model), simplified task creation (single prompt + plan/execute mode), real-time chat UI with agent status tracking and auto-task-completion Made-with: Cursor
Made-with: Cursor
- Remove packages/happy-web entirely (14 files) - Remove dev token auth endpoint (POST /v1/auth/dev-token) - Add project/task/agent management UI to happy-app (web only) - New API layer: apiProjects, apiAgents, apiTasks, apiMachinesRest - New Zustand store: useTaskManager with auth-bound actions - Web-only task manager screen with sidebar + detail layout - Add i18n support for task manager (all 10 languages) - Remove Dockerfile.web and docker-compose web service https://claude.ai/code/session_01N4xG3rktLwK5tFWuNwA5AV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces a comprehensive task management system for the Happy platform, enabling users to create and manage projects, configure agents, and orchestrate tasks through a web-based UI. It includes backend APIs for CRUD operations on projects, agents, and tasks, along with a complete web interface for task management.
Key Changes
Backend APIs (happy-server)
projectRoutes.ts): CRUD endpoints for managing projects with agent associationsagentRoutes.ts): CRUD endpoints for managing global agent configurationstaskRoutes.ts): CRUD endpoints for task creation, status updates, and chat message handlingdevEncryption.ts): Encryption/decryption helpers for development environmentsFrontend UI (happy-app)
tasks/index.web.tsx): Main web-only task management interfaceTaskManagerSidebar.tsx): Sidebar component displaying machines, agents, projects, and tasks with CRUD operationsTaskDetailView.tsx): Real-time chat interface for task execution with message polling and agent status trackingNewTaskModalWeb.tsx): Modal for creating new tasks with agent selection and execution modesuseTaskManager.ts): State management hook for projects, agents, tasks, and machines with async actionsAPI Clients (happy-app)
apiProjects.ts): Client functions for project CRUD operationsapiAgents.ts): Client functions for agent CRUD operationsapiTasks.ts): Client functions for task management and chat messagingapiMachinesRest.ts): Client functions for fetching machine informationUtilities & Scripts
report-machine-info.mjs): Script to detect and report host machine capabilities (agents, IP, platform)seed-cli-auth.mjs): Script for programmatic CLI authentication in developmentInternationalization
UI Integration
Notable Implementation Details
https://claude.ai/code/session_01N4xG3rktLwK5tFWuNwA5AV