@sethdouglasford/claude-flow
Version:
Claude Code Flow - Advanced AI-powered development workflows with SPARC methodology
77 lines • 1.9 kB
TypeScript
/**
* Status command for Claude-Flow
* Connects to real orchestrator and system components
*/
import { Command } from "../cliffy-compat.js";
import type { StatusOptions } from "./types.js";
export { showStatus, getSystemStatus };
interface StatusCommandOptions extends StatusOptions {
watch?: boolean;
interval?: string;
component?: string;
json?: boolean;
}
export declare const statusCommand: Command;
declare function showStatus(options: StatusCommandOptions): Promise<void>;
interface Agent {
id: string;
name: string;
type: string;
status: string;
activeTasks: number;
}
interface Task {
id: string;
type: string;
status: string;
agent?: string;
duration?: number;
}
interface ErrorInfo {
message: string;
timestamp: Date;
}
interface SystemStatus {
overall: string;
uptime: number;
version: string;
startTime: number;
components: Record<string, ComponentHealthStatus>;
resources: Record<string, Resource> | Resource[];
errorCount: number;
healthChecks?: HealthCheckResult[];
agents?: Agent[];
recentTasks?: Task[];
errors?: ErrorInfo[];
warnings?: unknown[];
performance?: unknown;
}
interface ComponentHealthStatus {
name: string;
status: string;
health?: number;
uptime?: number;
errorCount?: number;
lastError?: string;
cpu?: number;
memory?: number;
responseTime?: number;
requestCount?: number;
details?: string;
metrics?: Record<string, unknown>;
errors?: ErrorInfo[];
}
interface Resource {
type: string;
usage: number;
total: number;
unit?: string;
}
interface HealthCheckResult {
check: string;
status: string;
message?: string;
duration?: number;
}
declare function getSystemStatus(options?: Partial<StatusCommandOptions>): Promise<SystemStatus>;
//# sourceMappingURL=status.d.ts.map