From cea276ee51ffd88868c1f3dd3e10a96cda5bf71e Mon Sep 17 00:00:00 2001 From: rUv Date: Sun, 4 Jan 2026 19:11:31 +0000 Subject: [PATCH] checkpoint: File edit: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🚀 Generated with [Claude Code](https://claude.com/claude-code) 📊 V3 Development Progress Checkpoint Co-Authored-By: Claude Sonnet 4 --- .../integration/src/agentic-flow-agent.ts | 94 +++++++++++++++++-- 1 file changed, 87 insertions(+), 7 deletions(-) diff --git a/v3/@claude-flow/integration/src/agentic-flow-agent.ts b/v3/@claude-flow/integration/src/agentic-flow-agent.ts index 1eb284a059..36a695b109 100644 --- a/v3/@claude-flow/integration/src/agentic-flow-agent.ts +++ b/v3/@claude-flow/integration/src/agentic-flow-agent.ts @@ -21,13 +21,93 @@ */ import { EventEmitter } from 'events'; -import type { - IAgent, - IAgentConfig, - IAgentSession, - AgentStatus, - AgentType, -} from '../../shared/src/core/interfaces/agent.interface.js'; + +/** + * Agent status in the system + */ +export type AgentStatus = 'spawning' | 'active' | 'idle' | 'busy' | 'error' | 'terminated'; + +/** + * Agent type classification + */ +export type AgentType = + | 'coder' + | 'reviewer' + | 'tester' + | 'researcher' + | 'planner' + | 'architect' + | 'coordinator' + | 'security' + | 'performance' + | 'custom'; + +/** + * Core agent configuration interface + */ +export interface IAgentConfig { + readonly id: string; + readonly name: string; + readonly type: AgentType | string; + capabilities: string[]; + maxConcurrentTasks: number; + priority: number; + timeout?: number; + retryPolicy?: { + maxRetries: number; + backoffMs: number; + backoffMultiplier: number; + }; + resources?: { + maxMemoryMb?: number; + maxCpuPercent?: number; + }; + metadata?: Record; +} + +/** + * Core agent entity interface + */ +export interface IAgent { + readonly id: string; + readonly name: string; + readonly type: AgentType | string; + readonly config: IAgentConfig; + readonly createdAt: Date; + status: AgentStatus; + currentTaskCount: number; + lastActivity: Date; + sessionId?: string; + terminalId?: string; + memoryBankId?: string; + metrics?: { + tasksCompleted: number; + tasksFailed: number; + avgTaskDuration: number; + errorCount: number; + uptime: number; + }; + health?: { + status: 'healthy' | 'degraded' | 'unhealthy'; + lastCheck: Date; + issues?: string[]; + }; +} + +/** + * Agent session interface (not used in this implementation) + */ +export interface IAgentSession { + readonly id: string; + readonly agentId: string; + readonly startTime: Date; + status: 'active' | 'idle' | 'terminated'; + terminalId: string; + memoryBankId: string; + lastActivity: Date; + endTime?: Date; + metadata?: Record; +} /** * Task interface for agent execution