agentic-qe
Version:
Agentic Quality Engineering Fleet System - AI-driven quality management platform
87 lines • 2.1 kB
TypeScript
/**
* Agent Attach Command
*
* Attaches to an agent's console for real-time monitoring of logs,
* metrics, and status updates. Provides interactive debugging capabilities.
*
* @module cli/commands/agent/attach
*/
/// <reference types="node" />
import { EventEmitter } from 'events';
export interface AttachOptions {
agentId: string;
follow?: boolean;
showMetrics?: boolean;
showLogs?: boolean;
showEvents?: boolean;
refreshRate?: number;
filter?: string;
}
export interface AttachSession {
sessionId: string;
agentId: string;
attachedAt: Date;
events: EventEmitter;
status: 'attached' | 'detached';
stats: {
logsReceived: number;
eventsReceived: number;
metricsReceived: number;
};
}
/**
* Agent Attach Command Implementation
*/
export declare class AgentAttachCommand {
private static readonly LOGS_DIR;
private static readonly SESSIONS_DIR;
private static activeSessions;
/**
* Execute agent attach
*
* @param options - Attach options
* @returns Attach session
*/
static execute(options: AttachOptions): Promise<AttachSession>;
/**
* Create attach session
*/
private static createAttachSession;
/**
* Save session metadata
*/
private static saveSessionMetadata;
/**
* Display initial agent status
*/
private static displayInitialStatus;
/**
* Start monitoring agent activity
*/
private static startMonitoring;
/**
* Monitor agent logs
*/
private static monitorLogs;
/**
* Monitor agent metrics
*/
private static monitorMetrics;
/**
* Monitor agent events
*/
private static monitorEvents;
/**
* Get active session
*/
static getActiveSession(agentId: string): AttachSession | undefined;
/**
* Get all active sessions
*/
static getAllActiveSessions(): AttachSession[];
/**
* Check if attached to agent
*/
static isAttached(agentId: string): boolean;
}
//# sourceMappingURL=attach.d.ts.map