UNPKG

agentic-qe

Version:

Agentic Quality Engineering Fleet System - AI-driven quality management platform

142 lines 5 kB
"use strict"; /** * Agentic QE Fleet - AI-Driven Quality Engineering Platform * * @packageDocumentation * * The Agentic QE Fleet is a comprehensive quality engineering platform that provides * autonomous testing, quality analysis, and deployment readiness assessment through * a swarm of specialized AI agents. * * ## Features * * - **AI-Driven Test Generation**: Generate comprehensive test suites using Claude Sonnet 4.5 * - **Parallel Test Execution**: Execute tests across multiple frameworks concurrently * - **Real-Time Coverage Analysis**: Detect coverage gaps with O(log n) sublinear algorithms * - **Intelligent Quality Gates**: AI-driven quality assessment and enforcement * - **Performance Testing**: Load testing and performance profiling with k6, JMeter, Gatling * - **Security Scanning**: Multi-layer security analysis (SAST, DAST, dependencies, containers) * - **Deployment Readiness**: Multi-factor deployment risk assessment * - **Production Intelligence**: Learn from production incidents and user behavior * - **Regression Risk Analysis**: Smart test selection based on code change impact * - **Flaky Test Detection**: Statistical analysis and auto-stabilization * * ## Installation * * ```bash * npm install agentic-qe * ``` * * ## Quick Start * * ```typescript * import { FleetManager, Task, TaskPriority } from 'agentic-qe'; * * // Initialize the fleet * const fleet = new FleetManager({ * agents: [ * { type: 'test-generator', count: 2 }, * { type: 'test-executor', count: 4 }, * { type: 'coverage-analyzer', count: 1 } * ] * }); * * await fleet.initialize(); * await fleet.start(); * * // Submit a task * const task = new Task( * 'test-generation', * 'Generate unit tests', * { filePath: './src/services/UserService.ts' }, * {}, * TaskPriority.HIGH * ); * * await fleet.submitTask(task); * ``` * * ## Architecture * * The fleet uses a distributed agent architecture with: * - **Event-Driven Coordination**: Real-time agent communication via EventBus * - **Shared Memory**: Cross-agent knowledge sharing through MemoryManager * - **Sublinear Optimization**: O(log n) algorithms for scale * - **Fault Tolerance**: Automatic retry and recovery mechanisms * * @author AQE Development Team * @license MIT * @version 1.0.0 */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); const FleetManager_1 = require("./core/FleetManager"); const Logger_1 = require("./utils/Logger"); const Config_1 = require("./utils/Config"); // ============================================================================ // Core Exports // ============================================================================ /** * Core fleet management and coordination components * @module Core */ __exportStar(require("./core/FleetManager"), exports); __exportStar(require("./core/Agent"), exports); __exportStar(require("./core/Task"), exports); __exportStar(require("./core/EventBus"), exports); __exportStar(require("./core/MemoryManager"), exports); /** * All agent implementations and agent factory * @module Agents */ __exportStar(require("./agents"), exports); /** * Utility classes and helper functions * @module Utilities */ __exportStar(require("./utils"), exports); const logger = Logger_1.Logger.getInstance(); /** * Initialize and start the AQE Fleet */ async function startFleet() { try { logger.info('🚀 Starting Agentic QE Fleet...'); // Load configuration const config = await Config_1.Config.load(); // Initialize fleet manager const fleetManager = new FleetManager_1.FleetManager(config); // Start the fleet await fleetManager.initialize(); await fleetManager.start(); logger.info('✅ Agentic QE Fleet started successfully'); // Handle graceful shutdown process.on('SIGINT', async () => { logger.info('🛑 Shutting down Agentic QE Fleet...'); await fleetManager.stop(); process.exit(0); }); } catch (error) { logger.error('❌ Failed to start Agentic QE Fleet:', error); process.exit(1); } } // Start the fleet if this file is run directly if (require.main === module) { startFleet(); } //# sourceMappingURL=index.js.map