intertools
Version:
🚀 Professional development assistant with Backend Engineer Mode. Auto-starts with full functionality, no prompts, iterative problem solving. Features: AI chat orchestrator, terminal monitoring, file analysis, error correction, performance optimization. C
129 lines • 3.07 kB
TypeScript
export interface ChatMessage {
id: string;
role: 'user' | 'assistant' | 'system';
content: string;
timestamp: Date;
context?: ChatContext;
metadata?: Record<string, any>;
}
export interface ChatContext {
terminalLogs?: any[];
localhostData?: any;
productionData?: any;
codeContext?: string;
currentFile?: string;
selectedText?: string;
ide?: 'cursor' | 'vscode' | 'webstorm';
}
export interface ChatAgent {
id: string;
name: string;
role: string;
capabilities: string[];
active: boolean;
}
export interface ChatInsight {
type: 'error_analysis' | 'performance' | 'security' | 'best_practice' | 'suggestion';
severity: 'low' | 'medium' | 'high' | 'critical';
title: string;
description: string;
recommendation: string;
codeExample?: string;
references?: string[];
}
export interface ChatAnalysis {
summary: string;
insights: ChatInsight[];
codeRecommendations: string[];
nextSteps: string[];
confidence: number;
}
export declare class ChatOrchestrator {
private agents;
private chatHistory;
private context;
private isActive;
constructor();
/**
* Initialize AI agents
*/
private initializeAgents;
/**
* Start the chat orchestrator
*/
start(): Promise<ChatOrchestrator>;
/**
* Stop the chat orchestrator
*/
stop(): void;
/**
* Update context for better responses
*/
updateContext(context: Partial<ChatContext>): void;
/**
* Ask a question to the AI orchestrator
*/
ask(question: string, context?: Partial<ChatContext>): Promise<string>;
/**
* Analyze data using multiple agents
*/
analyze(type: string, data: any): Promise<ChatAnalysis>;
/**
* Get active agents
*/
getActiveAgents(): ChatAgent[];
/**
* Enable/disable an agent
*/
setAgentActive(agentId: string, active: boolean): void;
/**
* Get chat history
*/
getChatHistory(): ChatMessage[];
/**
* Clear chat history
*/
clearHistory(): void;
/**
* Process a question using appropriate agents
*/
private processQuestion;
/**
* Analyze errors using console analyzer and debugging assistant
*/
private analyzeErrors;
/**
* Analyze performance using performance expert
*/
private analyzePerformance;
/**
* Analyze security using security advisor
*/
private analyzeSecurity;
/**
* Review code using code reviewer
*/
private reviewCode;
/**
* Provide general assistance
*/
private provideGeneralAssistance;
/**
* Perform comprehensive analysis
*/
private performAnalysis;
/**
* Generate unique message ID
*/
private generateMessageId;
/**
* Get orchestrator status
*/
getStatus(): {
active: boolean;
agents: number;
messages: number;
context: ChatContext;
};
}
//# sourceMappingURL=chat-orchestrator.d.ts.map