/**
 * 自动增强能力模块 (Auto Enhancement Capability)
 *
 * 在启动时自动使用Tavily搜索来发现和增强当前代码库的能力
 *
 * 核心功能:
 * 1. 分析当前代码库结构和能力
 * 2. 使用WebSearch搜索相关新技术、漏洞、框架
 * 3. 自动生成增强代码和整合方案
 * 4. 提供智能建议和改进计划
 */
import type { CapabilityContribution, CapabilityContext } from '../runtime/agentHost.js';
import { BaseCapabilityModule, type BaseCapabilityOptions } from './baseCapability.js';
export interface CodebaseAnalysis {
    capabilities: string[];
    technologies: string[];
    frameworks: string[];
    securityLevel: 'basic' | 'advanced' | 'military' | 'maximum';
    militaryIntegration: boolean;
    missingCapabilities: string[];
    enhancementOpportunities: EnhancementOpportunity[];
}
export interface EnhancementOpportunity {
    id: string;
    name: string;
    description: string;
    category: 'capability' | 'security' | 'performance' | 'integration' | 'military';
    priority: 'low' | 'medium' | 'high' | 'critical';
    estimatedEffort: number;
    successProbability: number;
    searchQueries: string[];
    implementationPlan: string[];
    expectedImpact: string;
}
export interface SearchResult {
    query: string;
    results: any[];
    relevant: boolean;
    confidence: number;
    extractedInsights: string[];
    actionableItems: string[];
}
export interface EnhancementPlan {
    id: string;
    name: string;
    description: string;
    targetCapabilities: string[];
    searchResults: SearchResult[];
    opportunities: EnhancementOpportunity[];
    implementationSteps: ImplementationStep[];
    estimatedTime: string;
    priority: 'low' | 'medium' | 'high' | 'critical';
    riskAssessment: RiskAssessment;
}
export interface ImplementationStep {
    id: string;
    description: string;
    action: string;
    files: string[];
    codeSnippets: string[];
    dependencies: string[];
    estimatedTime: string;
}
export interface RiskAssessment {
    technical: 'low' | 'medium' | 'high';
    security: 'low' | 'medium' | 'high';
    integration: 'low' | 'medium' | 'high';
    overall: 'low' | 'medium' | 'high';
    mitigationStrategies: string[];
}
export interface AutoEnhancementCapabilityOptions extends BaseCapabilityOptions {
    autoRunOnStartup?: boolean;
    enableTavilySearch?: boolean;
    enhancementDomains?: string[];
    maxSearchQueries?: number;
    autoGenerateCode?: boolean;
    enableMilitaryEnhancement?: boolean;
}
export declare class AutoEnhancementCapabilityModule extends BaseCapabilityModule {
    readonly id = "capability.auto-enhancement";
    private enhancementInProgress;
    private readonly autoEnhancementOptions;
    constructor(options?: AutoEnhancementCapabilityOptions);
    create(context: CapabilityContext): Promise<CapabilityContribution>;
    private startAutoEnhancement;
    private analyzeCurrentCodebase;
    private generateSearchQueries;
    private performWebSearch;
    private identifyEnhancementOpportunities;
    private createEnhancementPlan;
    private generateImplementationSteps;
    private saveEnhancementPlan;
    private analyzeAndEnhanceCodebase;
    private generateEnhancementPlan;
    private executeEnhancement;
    private getEnhancementStatus;
}
//# sourceMappingURL=autoEnhancementCapability.d.ts.map