Files
ruflo/src/integration/types.ts
T
rUvandClaude fd295cda16 🚀 Release: Claude Flow v2.0.0-alpha.62
## 🔒 Security Fixes
- CRITICAL: Removed vulnerable pkg dependency (GHSA-22r3-9w55-cj54)
- Replaced with secure @vercel/ncc alternative
- Security score improved from 55/100 to 75/100
- All npm audit vulnerabilities resolved (0 vulnerabilities)

## 🚀 Infrastructure Improvements
- Re-enabled ALL CI/CD security gates with strict enforcement
- Fixed Jest configuration and test infrastructure
- Fixed 18 TypeScript test files with import issues
- Created comprehensive test utilities

## 🛠️ Code Quality
- Fixed 145 ESLint errors (16% reduction)
- Fixed 15 critical TypeScript errors
- Added development tooling configs

## 📚 Documentation
- Created security audit report
- Created fix summary documentation
- Created functionality review
- Updated GitHub issue #362

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-18 13:35:41 +00:00

139 lines
2.7 KiB
TypeScript

/**
* Integration Types for Claude Flow v2.0.0
*/
export interface IntegrationConfig {
// Core configuration
logLevel?: 'debug' | 'info' | 'warn' | 'error';
environment?: 'development' | 'production' | 'testing';
// Component-specific configuration
orchestrator?: {
maxConcurrency?: number;
timeout?: number;
};
agents?: {
maxAgents?: number;
defaultStrategy?: string;
};
swarm?: {
topology?: 'centralized' | 'distributed' | 'hierarchical' | 'mesh';
maxDepth?: number;
enablePersistence?: boolean;
};
memory?: {
backend?: 'memory' | 'file' | 'redis';
ttl?: number;
maxSize?: number;
};
monitoring?: {
enabled?: boolean;
metrics?: boolean;
realTime?: boolean;
};
mcp?: {
port?: number;
host?: string;
enableAuth?: boolean;
};
}
export interface ComponentStatus {
component: string;
status: 'healthy' | 'unhealthy' | 'warning';
message: string;
timestamp: number;
lastHealthCheck: number;
metrics?: Record<string, any>;
}
export interface SystemHealth {
overall: 'healthy' | 'unhealthy' | 'warning';
components: Record<string, ComponentStatus>;
metrics: {
totalComponents: number;
healthyComponents: number;
unhealthyComponents: number;
warningComponents: number;
uptime: number;
};
timestamp: number;
}
export interface IntegrationEvent {
type: string;
component: string;
data: any;
timestamp: number;
}
export interface HealthCheckResult {
component: string;
healthy: boolean;
message?: string;
metrics?: Record<string, any>;
timestamp: number;
}
export interface ComponentDependency {
component: string;
depends: string[];
optional?: boolean;
}
export interface InitializationPhase {
phase: number;
name: string;
description: string;
components: string[];
dependencies?: string[];
timeout?: number;
}
export interface SystemMetrics {
cpu: number;
memory: number;
network: number;
disk: number;
activeAgents: number;
activeTasks: number;
queuedTasks: number;
completedTasks: number;
errorCount: number;
uptime: number;
timestamp: number;
}
export interface ComponentInterface {
initialize(): Promise<void>;
shutdown(): Promise<void>;
getStatus(): ComponentStatus;
healthCheck(): Promise<HealthCheckResult>;
}
export interface WiringConfig {
source: string;
target: string;
relationship: 'uses' | 'depends' | 'observes' | 'controls';
bidirectional?: boolean;
}
export interface FallbackConfig {
component: string;
fallback: string;
condition: string;
timeout?: number;
}
export interface EdgeCaseHandler {
scenario: string;
handler: string;
priority: number;
timeout?: number;
}