codecrucible-synth
Version:
Production-Ready AI Development Platform with Multi-Voice Synthesis, Smithery MCP Integration, Enterprise Security, and Zero-Timeout Reliability
116 lines • 3.17 kB
TypeScript
/**
* System Bootstrap - Dependency Injection Orchestration
* Breaks circular dependencies through controlled initialization
*
* Living Spiral Council Applied:
* - Architect: Proper dependency order and lifecycle management
* - Maintainer: Clear initialization phases and error handling
* - Security Guardian: Secure service initialization and validation
* - Performance Engineer: Optimized startup sequence and lazy loading
* - Explorer: Extensible bootstrap process for new services
*/
import { DependencyContainer } from './dependency-container.js';
import { IModelClient } from '../interfaces/client-interfaces.js';
/**
* Bootstrap configuration
*/
export interface BootstrapConfig {
skipValidation?: boolean;
enablePerformanceMonitoring?: boolean;
logLevel?: 'debug' | 'info' | 'warn' | 'error';
initializationTimeout?: number;
environment?: 'development' | 'test' | 'production';
}
/**
* Bootstrap result
*/
export interface BootstrapResult {
container: DependencyContainer;
client: IModelClient;
initializationTime: number;
servicesInitialized: string[];
warnings: string[];
errors: string[];
}
/**
* System Bootstrap Implementation
* Orchestrates dependency injection to break circular dependencies
*/
export declare class SystemBootstrap {
private container;
private config;
private initializationStartTime;
private warnings;
private errors;
private isBootstrapped;
constructor(config?: BootstrapConfig);
/**
* Bootstrap the entire system
*/
bootstrap(): Promise<BootstrapResult>;
/**
* Phase 1: Core infrastructure services (no dependencies)
*/
private initializeCoreInfrastructure;
/**
* Phase 2: Configuration services
*/
private initializeConfiguration;
/**
* Phase 3: Performance monitoring
*/
private initializeMonitoring;
/**
* Phase 4: Security services
*/
private initializeSecurity;
/**
* Phase 5: Cache services
*/
private initializeCache;
/**
* Phase 6: Provider services
*/
private initializeProviders;
/**
* Phase 7: Routing services
*/
private initializeRouting;
/**
* Phase 8: Streaming services
*/
private initializeStreaming;
/**
* Phase 9: Main client (depends on all above services)
*/
private initializeClient;
/**
* Phase 10: Application layer services
*/
private initializeSynthesisCoordinator;
/**
* Phase 11: System validation
*/
private validateSystemHealth;
/**
* Get the dependency container
*/
getContainer(): DependencyContainer;
/**
* Register startup optimization tasks
*/
private registerStartupTasks;
/**
* Shutdown the system
*/
shutdown(): Promise<void>;
}
/**
* Create and bootstrap the system
*/
export declare function createSystem(config?: BootstrapConfig): Promise<BootstrapResult>;
/**
* Create system for testing with minimal dependencies
*/
export declare function createTestSystem(): Promise<BootstrapResult>;
//# sourceMappingURL=system-bootstrap.d.ts.map