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
127 lines • 3.2 kB
TypeScript
import { Agent } from '../agent';
export interface CoderNotification {
type: 'coder_completion';
taskId: string;
timestamp: string;
metadata: {
filesModified: string[];
testsGenerated: string[];
};
}
export interface LinterResult {
success: boolean;
lintingPassed: boolean;
errors: string[];
warnings: string[];
}
export interface TestResult {
success: boolean;
unitTestsPassed: boolean;
integrationTestsPassed: boolean;
errors: string[];
testStats?: {
total: number;
passed: number;
failed: number;
};
}
export interface CoverageResult {
success: boolean;
coverageThresholdsMet: boolean;
coverageData: {
statements: number;
branches: number;
functions: number;
lines: number;
};
errors: string[];
}
export interface QualityReport {
overallStatus: 'PASS' | 'FAIL';
summary: string;
timestamp: string;
linting: {
status: 'PASS' | 'FAIL';
errors: string[];
warnings: string[];
};
testing: {
status: 'PASS' | 'FAIL';
errors: string[];
unitTests: boolean;
integrationTests: boolean;
};
coverage: {
status: 'PASS' | 'FAIL';
errors: string[];
data: {
statements: number;
branches: number;
functions: number;
lines: number;
};
};
}
export interface QualityGatekeeperResult {
notificationReceived: boolean;
qualityChecksPassed: boolean;
overallStatus: 'PASS' | 'FAIL';
report: QualityReport;
executionTime: number;
}
/**
* QualityGatekeeperAgent validates code quality after Coder completion
* Runs linting, testing, and coverage validation
*/
export declare class QualityGatekeeperAgent extends Agent {
private notification;
private startTime;
/**
* Get the prompt template for quality gatekeeper tasks
*/
getPromptTemplate(): string;
/**
* Execute quality gatekeeper task
*/
executeTask(): Promise<QualityGatekeeperResult>;
/**
* Receive notification from Coder completion
*/
receiveNotification(notification: CoderNotification): Promise<{
success: boolean;
notificationReceived: boolean;
}>;
/**
* Run project linters (ESLint, Prettier)
*/
runLinter(): Promise<LinterResult>;
/**
* Run unit and integration tests
*/
runTests(): Promise<TestResult>;
/**
* Validate code coverage thresholds
*/
validateCoverage(): Promise<CoverageResult>;
/**
* Generate detailed quality report
*/
generateReport(results: {
linting: LinterResult;
testing: TestResult;
coverage: CoverageResult;
}): Promise<QualityReport>;
/**
* Wait for coder notification (with timeout)
*/
private waitForCoderNotification;
/**
* Get coverage thresholds from context or defaults
*/
private getCoverageThresholds;
/**
* Determine overall status from individual check results
*/
private determineOverallStatus;
}
//# sourceMappingURL=quality-gatekeeper.d.ts.map