diff --git a/coder-test/integration-test.ts b/coder-test/integration-test.ts index 0e0322153b..5320cf54a1 100644 --- a/coder-test/integration-test.ts +++ b/coder-test/integration-test.ts @@ -5,17 +5,17 @@ // Mock Claude Flow Client for testing class ClaudeFlowClient { - constructor(private config: any) {} + constructor(private _config: any) {} - async initSwarm(config: any): Promise { + async initSwarm(_config: any): Promise { return { swarmId: `swarm-${Date.now()}`, status: 'active' }; } - async spawnAgent(config: any): Promise { + async spawnAgent(_config: any): Promise { return { agentId: `agent-${Date.now()}-${Math.random()}`, status: 'idle' }; } - async orchestrateTask(task: any): Promise { + async orchestrateTask(_task: any): Promise { return { taskId: `task-${Date.now()}`, status: 'processing', progress: 0 }; } @@ -23,11 +23,11 @@ class ClaudeFlowClient { return { taskId, status: 'completed', progress: 100 }; } - async storeMemory(data: any): Promise { + async storeMemory(_data: any): Promise { // Simulate memory storage } - async retrieveMemory(query: any): Promise { + async retrieveMemory(_query: any): Promise { return { value: JSON.stringify({ apiSchema: { endpoints: ['/auth/login', '/auth/register', '/auth/reset'], models: ['User', 'Session', 'Token'] }, @@ -36,11 +36,11 @@ class ClaudeFlowClient { }; } - async getSwarmStatus(swarmId: string): Promise { - return { swarmId, status: 'active', agents: 3 }; + async getSwarmStatus(_swarmId: string): Promise { + return { swarmId: _swarmId, status: 'active', agents: 3 }; } - async getPerformanceMetrics(config: any): Promise { + async getPerformanceMetrics(_config: any): Promise { return { agents: { active: 3, idle: 1, busy: 2 }, tasks: { completed: 42, failed: 2, pending: 5 }, @@ -52,7 +52,7 @@ class ClaudeFlowClient { return { agentId, performance: { cpu: 45, memory: 128, tasks: 15 } }; } - async destroySwarm(swarmId: string): Promise { + async destroySwarm(_swarmId: string): Promise { // Simulate swarm destruction } } @@ -335,17 +335,17 @@ export class CoderIntegrationTest { // Mock Claude Flow Client for testing class ClaudeFlowClient { - constructor(private config: any) {} + constructor(private _config: any) {} - async initSwarm(config: any): Promise { + async initSwarm(_config: any): Promise { return { swarmId: `swarm-${Date.now()}`, status: 'active' }; } - async spawnAgent(config: any): Promise { + async spawnAgent(_config: any): Promise { return { agentId: `agent-${Date.now()}-${Math.random()}`, status: 'idle' }; } - async orchestrateTask(task: any): Promise { + async orchestrateTask(_task: any): Promise { return { taskId: `task-${Date.now()}`, status: 'processing', progress: 0 }; } @@ -353,11 +353,11 @@ class ClaudeFlowClient { return { taskId, status: 'completed', progress: 100 }; } - async storeMemory(data: any): Promise { + async storeMemory(_data: any): Promise { // Simulate memory storage } - async retrieveMemory(query: any): Promise { + async retrieveMemory(_query: any): Promise { return { value: JSON.stringify({ apiSchema: { endpoints: ['/auth/login', '/auth/register', '/auth/reset'], models: ['User', 'Session', 'Token'] }, @@ -366,11 +366,11 @@ class ClaudeFlowClient { }; } - async getSwarmStatus(swarmId: string): Promise { - return { swarmId, status: 'active', agents: 3 }; + async getSwarmStatus(_swarmId: string): Promise { + return { swarmId: _swarmId, status: 'active', agents: 3 }; } - async getPerformanceMetrics(config: any): Promise { + async getPerformanceMetrics(_config: any): Promise { return { agents: { active: 3, idle: 1, busy: 2 }, tasks: { completed: 42, failed: 2, pending: 5 }, @@ -382,7 +382,7 @@ class ClaudeFlowClient { return { agentId, performance: { cpu: 45, memory: 128, tasks: 15 } }; } - async destroySwarm(swarmId: string): Promise { + async destroySwarm(_swarmId: string): Promise { // Simulate swarm destruction } }