UNPKG

cortexweaver

Version:

CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate

78 lines 2.66 kB
import { Agent, AgentConfig } from '../../agent'; import { GovernorResult, GovernorAnalysisInput, CostData, BudgetEnforcement, QualityAnalysis, PheromoneInput, ImprovementProposals, PromptUpdateAudit } from './types'; /** * GovernorAgent (Meta-Strategist) monitors project costs, enforces budgets, * analyzes quality, provides strategic guidance through pheromones, and manages * the self-improvement loop through Reflector collaboration (V3.0). * * This is the main orchestration class that uses modular components for specific functionality. */ export declare class GovernorAgent extends Agent { /** * Get the prompt template for Meta-Strategist oversight and governance */ getPromptTemplate(): string; private configService; private projectConfig; private personaLoader; private promptImprovementWorkflow; private costMonitor; private budgetEnforcer; private qualityAnalyzer; private pheromoneManager; private promptWorkflowManager; private reflectorCoordinator; /** * Initialize the Governor agent with configuration */ initialize(config: AgentConfig): Promise<void>; /** * Initialize all modular components */ private initializeModules; /** * Monitor project costs via Cognitive Canvas queries (V3.0 Enhanced) */ monitorCosts(): Promise<CostData>; /** * Enforce budget limits from config.json */ enforceBudgets(costData: CostData): Promise<BudgetEnforcement>; /** * Analyze test results and quality reports */ analyzeTestResults(): Promise<QualityAnalysis>; /** * Create guide and warning pheromones */ createPheromones(pheromones: PheromoneInput[]): Promise<void>; /** * Propose improvements to code standards or configuration */ proposeImprovements(analysisData: GovernorAnalysisInput): Promise<ImprovementProposals>; /** * Generate governor prompt with persona integration (V3.0) */ private generateGovernorPrompt; /** * Enhanced execute task with Reflector spawning analysis and prompt management (V3.0) */ executeTask(): Promise<GovernorResult>; /** * Update module references when state changes */ private updateModuleReferences; /** * Get empty prompt approval result for fallback */ private getEmptyPromptApprovalResult; /** * Get empty reflector analysis for fallback */ private getEmptyReflectorAnalysis; /** * Get audit trail for prompt updates (V3.0) */ getPromptUpdateAudits(): PromptUpdateAudit[]; } //# sourceMappingURL=governor-agent.d.ts.map