agentic-qe
Version: 
Agentic Quality Engineering Fleet System - AI-driven quality management platform
71 lines • 1.72 kB
TypeScript
/**
 * Agent Restart Command
 *
 * Gracefully restarts an agent while preserving configuration and state.
 * Handles cleanup, state persistence, and re-initialization.
 *
 * @module cli/commands/agent/restart
 */
export interface RestartOptions {
    agentId: string;
    preserveState?: boolean;
    timeout?: number;
    force?: boolean;
}
export interface RestartResult {
    agentId: string;
    oldInstanceId: string;
    newInstanceId: string;
    status: 'restarting' | 'active' | 'failed';
    preservedConfig: any;
    restartTime: number;
    stateRestored: boolean;
}
/**
 * Agent Restart Command Implementation
 */
export declare class AgentRestartCommand {
    private static readonly AGENT_DIR;
    private static readonly STATE_DIR;
    private static readonly DEFAULT_TIMEOUT;
    /**
     * Execute agent restart
     *
     * @param options - Restart options
     * @returns Restart result
     */
    static execute(options: RestartOptions): Promise<RestartResult>;
    /**
     * Read agent configuration
     */
    private static readAgentConfig;
    /**
     * Save agent state before restart
     */
    private static saveAgentState;
    /**
     * Update agent status in config
     */
    private static updateAgentStatus;
    /**
     * Update agent configuration
     */
    private static updateAgentConfig;
    /**
     * Terminate agent with timeout
     */
    private static terminateAgent;
    /**
     * Wait for cleanup to complete
     */
    private static waitForCleanup;
    /**
     * Spawn new agent instance
     */
    private static spawnNewInstance;
    /**
     * Restore from backup
     */
    private static restoreFromBackup;
}
//# sourceMappingURL=restart.d.ts.map