mirror of
https://github.com/proffesor-for-testing/agentic-qe.git
synced 2026-09-19 08:45:47 +08:00
fd2f37eaa0
Changes: - Fix README.md agent counts (48 QE agents = 41 main + 7 subagents) - Fix README.md skill counts (15 QE-specific skills) - Fix v3/README.md agent counts (47 → 48) - Fix init-wizard.ts hooks from 'npx @agentic-qe/v3' to 'npx agentic-qe' - Complete v2 → v2/ folder reorganization (54 items moved) - Update root package.json to point to v3 as main version Verified claims: - 48 QE agents (41 main + 7 TDD subagents) - 15 QE-specific skills - 12 DDD bounded contexts - ~5,600+ tests - HNSW, ReasoningBank, Queen Coordinator features exist Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
81 lines
2.0 KiB
JavaScript
Executable File
81 lines
2.0 KiB
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/**
|
|
* Fleet Initialization Example
|
|
* Demonstrates how to initialize and configure an AQE Fleet
|
|
*/
|
|
|
|
const { FleetManager } = require('../dist/core/FleetManager');
|
|
const { Logger } = require('../dist/utils/Logger');
|
|
|
|
async function initializeFleet() {
|
|
const logger = Logger.getInstance();
|
|
|
|
try {
|
|
console.log('🚀 Initializing Agentic QE Fleet...\n');
|
|
|
|
// Basic fleet configuration
|
|
const config = {
|
|
fleet: {
|
|
id: 'demo-fleet',
|
|
name: 'Demo Quality Engineering Fleet',
|
|
maxAgents: 5
|
|
},
|
|
agents: [
|
|
{
|
|
type: 'test-executor',
|
|
count: 2,
|
|
config: {
|
|
frameworks: ['jest', 'cypress'],
|
|
maxParallelTests: 2
|
|
}
|
|
},
|
|
{
|
|
type: 'quality-analyzer',
|
|
count: 1,
|
|
config: {
|
|
tools: ['eslint', 'sonarqube'],
|
|
thresholds: {
|
|
coverage: 80,
|
|
complexity: 10
|
|
}
|
|
}
|
|
}
|
|
],
|
|
database: {
|
|
type: 'sqlite',
|
|
path: './data/demo-fleet.db'
|
|
}
|
|
};
|
|
|
|
console.log('📋 Fleet Configuration:');
|
|
console.log(` - Fleet ID: ${config.fleet.id}`);
|
|
console.log(` - Max Agents: ${config.fleet.maxAgents}`);
|
|
console.log(` - Agent Types: ${config.agents.map(a => a.type).join(', ')}`);
|
|
console.log(` - Database: ${config.database.type}\n`);
|
|
|
|
// Create fleet manager
|
|
const fleetManager = new FleetManager(config);
|
|
|
|
console.log('🔧 Initializing fleet manager...');
|
|
await fleetManager.initialize();
|
|
|
|
console.log('✅ Fleet initialized successfully!');
|
|
console.log('📊 Fleet Status:', fleetManager.getStatus());
|
|
|
|
// Clean shutdown
|
|
await fleetManager.stop();
|
|
console.log('🛑 Demo completed successfully');
|
|
|
|
} catch (error) {
|
|
console.error('❌ Fleet initialization failed:', error.message);
|
|
process.exit(1);
|
|
}
|
|
}
|
|
|
|
// Run if called directly
|
|
if (require.main === module) {
|
|
initializeFleet();
|
|
}
|
|
|
|
module.exports = { initializeFleet }; |