Feature/implement ai agent#135
Merged
Merged
Conversation
- Implemented ConversationHandler for managing agent conversations, including listing, retrieving, pausing, resuming, stopping, and sending messages. - Enhanced response presenter to handle agent-related errors. - Updated router to include new conversation routes under project scope. - Modified notification consumer to trigger agent conversations on task assignments. - Added migration scripts for creating agent types, agents, skills, MCP servers, conversations, and conversation events. - Removed agent_types table and associated constraints from agents. - Relaxed event_source check constraint to allow broader values from the OpenHands SDK.
- Enhance `stubAPIKeyAuth` to support agent key identification. - Add integration tests for agent API key functionalities, including task creation, comment management, and permission scenarios. - Update response handling for agent-related API calls. - Introduce new methods in `fakeProjectRepo` for managing agent members. - Ensure proper handling of agent IDs in API requests, including validation and error responses. - Modify HTTP response codes for specific error scenarios related to agent operations.
- Updated PacaAPITaskExtendedClient and PacaAPIViewsClient to include X-Agent-ID header if agentId is provided in the configuration. - Modified main configuration to accept PACA_AGENT_ID from environment variables. - Enhanced PacaConfig interface to include an optional agentId field. - Updated various services and repositories to handle agent ID for member resolution and activity tracking. - Adjusted document and task handlers to capture agent ID during activity recording. - Updated tests to ensure proper handling of agent ID in member lookups and activity records.
…mproved UI elements
- Updated project member role management to use member ID instead of user ID. - Added new methods in the member repository and service for updating and removing members by their membership record ID. - Modified API endpoints and request handlers to reflect changes in member identification. - Enhanced permission checks and logging for tool access based on agent permissions. - Updated integration tests to validate new member management functionality.
- Implemented agent session started activity logging in TaskActivityPane. - Updated ActivityPane to support ReactNode for activity descriptions. - Enhanced useProjectRealtime to invalidate queries on agent events. - Added new API functions for pausing, resuming, and stopping conversations. - Created a new route for conversation details with real-time updates. - Refactored notification consumer to log agent session activities. - Updated permissions to include agent events for task-scoped access. - Improved Vite and Docker configurations for better performance.
…anagement - Added new tools for listing, reading, writing, deleting, and moving documents in a filesystem-like structure. - Introduced Zod schemas for input validation of document operations. - Built a document tree structure to manage folders and documents efficiently. - Enhanced the AI agent to follow a documentation workflow, ensuring project docs are read before task execution. - Updated the agent service to trigger conversations when agents are mentioned in task comments. - Integrated agent permissions and roles management in the project service. - Refactored authorization checks to accommodate agent-specific permissions. - Improved test coverage for project and task services, ensuring robust functionality.
…ld context and command execution
…onfiguration updates
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 full AI agent support across the platform — a new first-class entity that can participate in project conversations, execute skills via MCP tools, and interact with the codebase autonomously (including committing as a git identity).
What's New
New AI Agent Service
services/ai-agent/) for agent orchestrationbuilder.py,executor.py,prompt.py,repo_tools.pyAgent API & Backend
000008: Agent table schema000009: Schema refinement (remove agent types)000010: Relax event source validation000011: Git committer identity fields (name + email per agent)MCP Server — Agent Mode
Frontend
/projects/:id/agentsand/projects/:id/agents/:agentId/projects/:id/conversations/:conversationIdagent-api.tsclient for agent CRUD operationsType of Change
Checklist