import { Run } from '../../models/types.js'; import { Skill } from '../../utils/skillsLoader.js'; /** * Interface for HTTP API server */ export interface IHttpApiServer { /** * Start the HTTP server on the specified port */ start(port: number): Promise; /** * Stop the HTTP server */ stop(): Promise; /** * Get the port the server is listening on */ getPort(): number | null; /** * Get the Express app instance for mounting additional routes */ getApp(): any; } /** * Interface for MCP server */ export interface IMcpServer { /** * Start the MCP server */ start(): Promise; /** * Stop the MCP server */ stop(): Promise; /** * Check if the server is running */ isRunning(): boolean; } /** * Interface for task management operations */ export interface ITaskService { /** * Create a new task */ createTask(params: CreateTaskParams): Promise; /** * Start a task by runId */ startTask(runId: string, agentType?: string): Promise; /** * Get a task by runId */ getTask(runId: string): Promise; /** * Get all tasks */ getAllTasks(): Promise; } /** * Interface for skill management operations */ export interface ISkillService { /** * Add or update a skill */ addOrUpdateSkill(params: AddOrUpdateSkillParams): Promise; /** * Get a skill by ID */ getSkill(skillId: string): Promise; /** * Get all skills */ getAllSkills(): Promise; } /** * Parameters for creating a task */ export interface CreateTaskParams { name?: string; prompt: string; baseBranch?: string; agentProfileId?: string; skillId?: string; } /** * Parameters for adding or updating a skill */ export interface AddOrUpdateSkillParams { id: string; name: string; content: string; source?: 'global' | 'local'; } //# sourceMappingURL=interfaces.d.ts.map