/** * Cortex AI - Balanced Core * Linus philosophy: "Don't over-engineer, but don't under-engineer either" */ /** * Simple Role Definition */ export interface Role { id: string; name: string; description: string; systemPrompt: string; } /** * Experience Record */ export interface Experience { input: string; output: string; category: string; tags?: string[]; timestamp: string; } /** * Workflow Context */ export interface WorkflowContext { workspaceId: string; issueTitle: string; description: string; currentStep: number; totalSteps: number; previousRole?: string; currentRoleOutput?: string; } /** * Workflow State */ export interface WorkflowState { id: string; issueId: string; title: string; description: string; status: "pending" | "in_progress" | "completed" | "failed" | "blocked"; currentRole?: string; roles: string[]; handoffData: { context: WorkflowContext; }; issueTitle: string; createdAt: string; updatedAt: string; } /** * Workflow Execution Result */ export interface WorkflowExecution { roleId: string; status: "success" | "error"; output?: string; error?: string; } /** * Cortex AI Core - Essential functionality without over-engineering */ export declare class CortexAI { private projectRoot; private experiencesDir; constructor(projectRoot: string); /** * Load available roles from templates */ loadRoles(): Promise; /** * Find best role for a task */ findBestRole(query: string): Promise; /** * Enhance context with past experiences */ enhanceContext(query: string, maxItems?: number): Promise; /** * Record a new experience */ recordExperience(input: string, output: string, category?: string): Promise; private extractTitle; private extractDescription; private extractSystemPrompt; private hasKeywordMatch; private getDefaultRoles; /** * Create a new Multi-Role workflow */ createWorkflow(issueId: string, title: string, description: string): Promise; /** * Execute the next role in a workflow */ executeNextRole(workflowId: string): Promise; /** * Read handoff content from previous role */ private readHandoffContent; /** * Generate handoff.md file for next role */ private generateHandoffFile; /** * Get workflow state */ getWorkflowState(workflowId: string): Promise; /** * Save workflow state */ private saveWorkflowState; /** * Find role by ID */ getRole(roleId: string): Promise; } export { CortexMCPServer, createCortexMCPServer } from "./mcp/server.js"; //# sourceMappingURL=index.d.ts.map