tlnt
Version:
TLNT - HMS-Powered Multi-Agent Platform with Government Agency Analysis, Deep Research, and Enterprise-Ready Deployment. Self-optimizing multi-domain AI agent with continuous learning and enterprise-grade performance monitoring.
112 lines • 3.2 kB
TypeScript
import { EventEmitter } from 'events';
import { MessageBus, MessageBusConfig } from './messageBus.js';
import { AgentHub } from './agentHub.js';
import type { Context } from '../types/index.js';
export interface LauncherConfig {
redisUrl?: string;
apiHost?: string;
apiPort?: number;
enableMessageBus?: boolean;
enableAgentHub?: boolean;
enableWatchMode?: boolean;
enableMetrics?: boolean;
enableDashboard?: boolean;
developmentMode?: boolean;
debugLogging?: boolean;
watchdogLogDir?: string;
watchdogCompress?: boolean;
watchdogRetentionHours?: number;
dashboardHost?: string;
dashboardPort?: number;
messageBusConfig?: MessageBusConfig;
}
export interface ComponentStatus {
name: string;
status: 'starting' | 'running' | 'stopping' | 'stopped' | 'error';
pid?: number;
startTime?: number;
error?: Error;
metadata?: Record<string, unknown>;
}
/**
* Unified System Launcher for HMS Dev components
* Manages all system components with configurable startup modes
*/
export declare class UnifiedLauncher extends EventEmitter {
private config;
private running;
private components;
private processes;
private messageBus?;
private agentHub?;
private monitoringTasks;
constructor(config?: LauncherConfig);
private setupSignalHandlers;
private handleShutdown;
private handleError;
/**
* Start all configured components
*/
start(): Promise<void>;
/**
* Stop all components gracefully
*/
shutdown(): Promise<void>;
private startMessageBus;
private stopMessageBus;
private startAgentHub;
private stopAgentHub;
private startWatchMode;
private stopWatchMode;
private startMetrics;
private stopMetrics;
private startDashboard;
private stopDashboard;
private startMonitoring;
private performHealthChecks;
private checkMessageBusHealth;
private checkAgentHubHealth;
private setComponentStatus;
private hasComponent;
/**
* Get current system status
*/
getSystemStatus(): {
running: boolean;
uptime: number;
components: ComponentStatus[];
config: Partial<LauncherConfig>;
};
/**
* Get message bus instance
*/
getMessageBus(): MessageBus | undefined;
/**
* Get agent hub instance
*/
getAgentHub(): AgentHub | undefined;
/**
* Execute a skill on the agent hub
*/
executeSkill(skillName: string, context: Context, args?: unknown): Promise<any>;
/**
* Send a message via the message bus
*/
sendMessage(channel: string, message: any): Promise<string | undefined>;
/**
* Check if the system is healthy
*/
healthCheck(): Promise<{
status: 'healthy' | 'unhealthy';
details: Record<string, unknown>;
}>;
}
/**
* Create a launcher from configuration
*/
export declare function createLauncher(config?: LauncherConfig): UnifiedLauncher;
/**
* Create launcher from command line arguments
*/
export declare function createLauncherFromArgs(args: Record<string, any>): UnifiedLauncher;
//# sourceMappingURL=unifiedLauncher.d.ts.map