@sparkleideas/swarm 3.0.0-alpha.6-patch.17 → 3.0.0-alpha.6-patch.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/agent-pool.d.ts +0 -52
- package/dist/agent-pool.d.ts.map +0 -1
- package/dist/agent-pool.js +0 -365
- package/dist/agent-pool.js.map +0 -1
- package/dist/application/commands/create-task.command.d.ts +0 -64
- package/dist/application/commands/create-task.command.d.ts.map +0 -1
- package/dist/application/commands/create-task.command.js +0 -77
- package/dist/application/commands/create-task.command.js.map +0 -1
- package/dist/application/commands/spawn-agent.command.d.ts +0 -63
- package/dist/application/commands/spawn-agent.command.d.ts.map +0 -1
- package/dist/application/commands/spawn-agent.command.js +0 -74
- package/dist/application/commands/spawn-agent.command.js.map +0 -1
- package/dist/application/index.d.ts +0 -9
- package/dist/application/index.d.ts.map +0 -1
- package/dist/application/index.js +0 -11
- package/dist/application/index.js.map +0 -1
- package/dist/application/services/swarm-application-service.d.ts +0 -112
- package/dist/application/services/swarm-application-service.d.ts.map +0 -1
- package/dist/application/services/swarm-application-service.js +0 -153
- package/dist/application/services/swarm-application-service.js.map +0 -1
- package/dist/attention-coordinator.d.ts +0 -212
- package/dist/attention-coordinator.d.ts.map +0 -1
- package/dist/attention-coordinator.js +0 -667
- package/dist/attention-coordinator.js.map +0 -1
- package/dist/consensus/byzantine.d.ts +0 -63
- package/dist/consensus/byzantine.d.ts.map +0 -1
- package/dist/consensus/byzantine.js +0 -316
- package/dist/consensus/byzantine.js.map +0 -1
- package/dist/consensus/gossip.d.ts +0 -69
- package/dist/consensus/gossip.d.ts.map +0 -1
- package/dist/consensus/gossip.js +0 -378
- package/dist/consensus/gossip.js.map +0 -1
- package/dist/consensus/index.d.ts +0 -49
- package/dist/consensus/index.d.ts.map +0 -1
- package/dist/consensus/index.js +0 -203
- package/dist/consensus/index.js.map +0 -1
- package/dist/consensus/raft.d.ts +0 -62
- package/dist/consensus/raft.d.ts.map +0 -1
- package/dist/consensus/raft.js +0 -324
- package/dist/consensus/raft.js.map +0 -1
- package/dist/coordination/agent-registry.d.ts +0 -68
- package/dist/coordination/agent-registry.d.ts.map +0 -1
- package/dist/coordination/agent-registry.js +0 -412
- package/dist/coordination/agent-registry.js.map +0 -1
- package/dist/coordination/index.d.ts +0 -8
- package/dist/coordination/index.d.ts.map +0 -1
- package/dist/coordination/index.js +0 -8
- package/dist/coordination/index.js.map +0 -1
- package/dist/coordination/swarm-hub.d.ts +0 -150
- package/dist/coordination/swarm-hub.d.ts.map +0 -1
- package/dist/coordination/swarm-hub.js +0 -617
- package/dist/coordination/swarm-hub.js.map +0 -1
- package/dist/coordination/task-orchestrator.d.ts +0 -96
- package/dist/coordination/task-orchestrator.d.ts.map +0 -1
- package/dist/coordination/task-orchestrator.js +0 -412
- package/dist/coordination/task-orchestrator.js.map +0 -1
- package/dist/domain/entities/agent.d.ts +0 -151
- package/dist/domain/entities/agent.d.ts.map +0 -1
- package/dist/domain/entities/agent.js +0 -280
- package/dist/domain/entities/agent.js.map +0 -1
- package/dist/domain/entities/task.d.ts +0 -133
- package/dist/domain/entities/task.d.ts.map +0 -1
- package/dist/domain/entities/task.js +0 -261
- package/dist/domain/entities/task.js.map +0 -1
- package/dist/domain/index.d.ts +0 -11
- package/dist/domain/index.d.ts.map +0 -1
- package/dist/domain/index.js +0 -11
- package/dist/domain/index.js.map +0 -1
- package/dist/domain/repositories/agent-repository.interface.d.ts +0 -57
- package/dist/domain/repositories/agent-repository.interface.d.ts.map +0 -1
- package/dist/domain/repositories/agent-repository.interface.js +0 -9
- package/dist/domain/repositories/agent-repository.interface.js.map +0 -1
- package/dist/domain/repositories/task-repository.interface.d.ts +0 -61
- package/dist/domain/repositories/task-repository.interface.d.ts.map +0 -1
- package/dist/domain/repositories/task-repository.interface.js +0 -9
- package/dist/domain/repositories/task-repository.interface.js.map +0 -1
- package/dist/domain/services/coordination-service.d.ts +0 -84
- package/dist/domain/services/coordination-service.d.ts.map +0 -1
- package/dist/domain/services/coordination-service.js +0 -231
- package/dist/domain/services/coordination-service.js.map +0 -1
- package/dist/federation-hub.d.ts +0 -284
- package/dist/federation-hub.d.ts.map +0 -1
- package/dist/federation-hub.js +0 -692
- package/dist/federation-hub.js.map +0 -1
- package/dist/index.d.ts +0 -107
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -142
- package/dist/index.js.map +0 -1
- package/dist/message-bus.d.ts +0 -48
- package/dist/message-bus.d.ts.map +0 -1
- package/dist/message-bus.js +0 -499
- package/dist/message-bus.js.map +0 -1
- package/dist/queen-coordinator.d.ts +0 -577
- package/dist/queen-coordinator.d.ts.map +0 -1
- package/dist/queen-coordinator.js +0 -1308
- package/dist/queen-coordinator.js.map +0 -1
- package/dist/shared/events.d.ts +0 -63
- package/dist/shared/events.d.ts.map +0 -1
- package/dist/shared/events.js +0 -203
- package/dist/shared/events.js.map +0 -1
- package/dist/shared/types.d.ts +0 -212
- package/dist/shared/types.d.ts.map +0 -1
- package/dist/shared/types.js +0 -22
- package/dist/shared/types.js.map +0 -1
- package/dist/topology-manager.d.ts +0 -62
- package/dist/topology-manager.d.ts.map +0 -1
- package/dist/topology-manager.js +0 -538
- package/dist/topology-manager.js.map +0 -1
- package/dist/types.d.ts +0 -353
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -43
- package/dist/types.js.map +0 -1
- package/dist/unified-coordinator.d.ts +0 -260
- package/dist/unified-coordinator.d.ts.map +0 -1
- package/dist/unified-coordinator.js +0 -1460
- package/dist/unified-coordinator.js.map +0 -1
- package/dist/workers/index.d.ts +0 -29
- package/dist/workers/index.d.ts.map +0 -1
- package/dist/workers/index.js +0 -49
- package/dist/workers/index.js.map +0 -1
- package/dist/workers/worker-dispatch.d.ts +0 -239
- package/dist/workers/worker-dispatch.d.ts.map +0 -1
- package/dist/workers/worker-dispatch.js +0 -846
- package/dist/workers/worker-dispatch.js.map +0 -1
- package/tsconfig.build.tsbuildinfo +0 -1
|
@@ -1,577 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Queen Coordinator - Central Orchestrator for 15-Agent Swarm
|
|
3
|
-
*
|
|
4
|
-
* The Queen Coordinator is the strategic decision-maker for the V3 hive-mind system.
|
|
5
|
-
* It analyzes tasks, delegates to appropriate agents, monitors swarm health,
|
|
6
|
-
* coordinates consensus, and learns from outcomes using ReasoningBank patterns.
|
|
7
|
-
*
|
|
8
|
-
* Features:
|
|
9
|
-
* - Strategic task analysis with ReasoningBank pattern matching
|
|
10
|
-
* - Agent delegation with capability scoring and load balancing
|
|
11
|
-
* - Swarm health monitoring with bottleneck detection
|
|
12
|
-
* - Consensus coordination (majority, weighted, unanimous)
|
|
13
|
-
* - Learning from outcomes for continuous improvement
|
|
14
|
-
*
|
|
15
|
-
* Performance Targets:
|
|
16
|
-
* - Task analysis: <50ms
|
|
17
|
-
* - Agent scoring: <20ms
|
|
18
|
-
* - Consensus coordination: <100ms
|
|
19
|
-
* - Health check: <30ms
|
|
20
|
-
*
|
|
21
|
-
* @module @sparkleideas/swarm/queen-coordinator
|
|
22
|
-
*/
|
|
23
|
-
import { EventEmitter } from 'events';
|
|
24
|
-
import type { AgentState, TaskDefinition, TaskType, TaskPriority, CoordinatorMetrics, ConsensusResult } from './types.js';
|
|
25
|
-
import type { AgentDomain, DomainConfig, DomainStatus } from './unified-coordinator.js';
|
|
26
|
-
/**
|
|
27
|
-
* Task analysis result from the Queen
|
|
28
|
-
*/
|
|
29
|
-
export interface TaskAnalysis {
|
|
30
|
-
/** Unique analysis ID */
|
|
31
|
-
analysisId: string;
|
|
32
|
-
/** Original task ID */
|
|
33
|
-
taskId: string;
|
|
34
|
-
/** Task complexity score (0-1) */
|
|
35
|
-
complexity: number;
|
|
36
|
-
/** Estimated duration in milliseconds */
|
|
37
|
-
estimatedDurationMs: number;
|
|
38
|
-
/** Required capabilities for this task */
|
|
39
|
-
requiredCapabilities: string[];
|
|
40
|
-
/** Recommended domain for execution */
|
|
41
|
-
recommendedDomain: AgentDomain;
|
|
42
|
-
/** Sub-tasks if decomposition is needed */
|
|
43
|
-
subtasks: SubTask[];
|
|
44
|
-
/** Patterns found from ReasoningBank */
|
|
45
|
-
matchedPatterns: MatchedPattern[];
|
|
46
|
-
/** Resource requirements */
|
|
47
|
-
resourceRequirements: ResourceRequirements;
|
|
48
|
-
/** Confidence in this analysis (0-1) */
|
|
49
|
-
confidence: number;
|
|
50
|
-
/** Analysis timestamp */
|
|
51
|
-
timestamp: Date;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Sub-task from task decomposition
|
|
55
|
-
*/
|
|
56
|
-
export interface SubTask {
|
|
57
|
-
id: string;
|
|
58
|
-
name: string;
|
|
59
|
-
description: string;
|
|
60
|
-
type: TaskType;
|
|
61
|
-
priority: TaskPriority;
|
|
62
|
-
dependencies: string[];
|
|
63
|
-
estimatedDurationMs: number;
|
|
64
|
-
requiredCapabilities: string[];
|
|
65
|
-
recommendedDomain: AgentDomain;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Pattern matched from ReasoningBank
|
|
69
|
-
*/
|
|
70
|
-
export interface MatchedPattern {
|
|
71
|
-
patternId: string;
|
|
72
|
-
strategy: string;
|
|
73
|
-
successRate: number;
|
|
74
|
-
relevanceScore: number;
|
|
75
|
-
keyLearnings: string[];
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Resource requirements for a task
|
|
79
|
-
*/
|
|
80
|
-
export interface ResourceRequirements {
|
|
81
|
-
minAgents: number;
|
|
82
|
-
maxAgents: number;
|
|
83
|
-
memoryMb: number;
|
|
84
|
-
cpuIntensive: boolean;
|
|
85
|
-
ioIntensive: boolean;
|
|
86
|
-
networkRequired: boolean;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Delegation plan for task execution
|
|
90
|
-
*/
|
|
91
|
-
export interface DelegationPlan {
|
|
92
|
-
/** Plan ID */
|
|
93
|
-
planId: string;
|
|
94
|
-
/** Task ID being delegated */
|
|
95
|
-
taskId: string;
|
|
96
|
-
/** Analysis that informed this plan */
|
|
97
|
-
analysisId: string;
|
|
98
|
-
/** Primary agent assignment */
|
|
99
|
-
primaryAgent: AgentAssignment;
|
|
100
|
-
/** Backup agents for failover */
|
|
101
|
-
backupAgents: AgentAssignment[];
|
|
102
|
-
/** Parallel sub-task assignments */
|
|
103
|
-
parallelAssignments: ParallelAssignment[];
|
|
104
|
-
/** Execution strategy */
|
|
105
|
-
strategy: ExecutionStrategy;
|
|
106
|
-
/** Estimated completion time */
|
|
107
|
-
estimatedCompletionMs: number;
|
|
108
|
-
/** Plan creation timestamp */
|
|
109
|
-
timestamp: Date;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Agent assignment in a delegation plan
|
|
113
|
-
*/
|
|
114
|
-
export interface AgentAssignment {
|
|
115
|
-
agentId: string;
|
|
116
|
-
domain: AgentDomain;
|
|
117
|
-
taskId: string;
|
|
118
|
-
score: number;
|
|
119
|
-
assignedAt: Date;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Parallel task assignment
|
|
123
|
-
*/
|
|
124
|
-
export interface ParallelAssignment {
|
|
125
|
-
subtaskId: string;
|
|
126
|
-
agentId: string;
|
|
127
|
-
domain: AgentDomain;
|
|
128
|
-
dependencies: string[];
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Execution strategy for delegation
|
|
132
|
-
*/
|
|
133
|
-
export type ExecutionStrategy = 'sequential' | 'parallel' | 'pipeline' | 'fan-out-fan-in' | 'hybrid';
|
|
134
|
-
/**
|
|
135
|
-
* Agent score for task assignment
|
|
136
|
-
*/
|
|
137
|
-
export interface AgentScore {
|
|
138
|
-
agentId: string;
|
|
139
|
-
domain: AgentDomain;
|
|
140
|
-
totalScore: number;
|
|
141
|
-
capabilityScore: number;
|
|
142
|
-
loadScore: number;
|
|
143
|
-
performanceScore: number;
|
|
144
|
-
healthScore: number;
|
|
145
|
-
availabilityScore: number;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* Health report for the swarm
|
|
149
|
-
*/
|
|
150
|
-
export interface HealthReport {
|
|
151
|
-
/** Report ID */
|
|
152
|
-
reportId: string;
|
|
153
|
-
/** Report timestamp */
|
|
154
|
-
timestamp: Date;
|
|
155
|
-
/** Overall swarm health (0-1) */
|
|
156
|
-
overallHealth: number;
|
|
157
|
-
/** Status of each domain */
|
|
158
|
-
domainHealth: Map<AgentDomain, DomainHealthStatus>;
|
|
159
|
-
/** Individual agent health */
|
|
160
|
-
agentHealth: AgentHealthEntry[];
|
|
161
|
-
/** Detected bottlenecks */
|
|
162
|
-
bottlenecks: Bottleneck[];
|
|
163
|
-
/** Active alerts */
|
|
164
|
-
alerts: HealthAlert[];
|
|
165
|
-
/** Performance metrics */
|
|
166
|
-
metrics: HealthMetrics;
|
|
167
|
-
/** Recommendations for improvement */
|
|
168
|
-
recommendations: string[];
|
|
169
|
-
}
|
|
170
|
-
/**
|
|
171
|
-
* Domain health status
|
|
172
|
-
*/
|
|
173
|
-
export interface DomainHealthStatus {
|
|
174
|
-
domain: AgentDomain;
|
|
175
|
-
health: number;
|
|
176
|
-
activeAgents: number;
|
|
177
|
-
totalAgents: number;
|
|
178
|
-
queuedTasks: number;
|
|
179
|
-
avgResponseTimeMs: number;
|
|
180
|
-
errorRate: number;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Agent health entry
|
|
184
|
-
*/
|
|
185
|
-
export interface AgentHealthEntry {
|
|
186
|
-
agentId: string;
|
|
187
|
-
domain: AgentDomain;
|
|
188
|
-
health: number;
|
|
189
|
-
status: string;
|
|
190
|
-
lastHeartbeat: Date;
|
|
191
|
-
currentLoad: number;
|
|
192
|
-
recentErrors: number;
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Bottleneck detection result
|
|
196
|
-
*/
|
|
197
|
-
export interface Bottleneck {
|
|
198
|
-
type: 'agent' | 'domain' | 'task' | 'resource';
|
|
199
|
-
location: string;
|
|
200
|
-
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
201
|
-
description: string;
|
|
202
|
-
impact: string;
|
|
203
|
-
suggestedAction: string;
|
|
204
|
-
}
|
|
205
|
-
/**
|
|
206
|
-
* Health alert
|
|
207
|
-
*/
|
|
208
|
-
export interface HealthAlert {
|
|
209
|
-
alertId: string;
|
|
210
|
-
type: 'warning' | 'error' | 'critical';
|
|
211
|
-
source: string;
|
|
212
|
-
message: string;
|
|
213
|
-
timestamp: Date;
|
|
214
|
-
acknowledged: boolean;
|
|
215
|
-
}
|
|
216
|
-
/**
|
|
217
|
-
* Health metrics
|
|
218
|
-
*/
|
|
219
|
-
export interface HealthMetrics {
|
|
220
|
-
totalAgents: number;
|
|
221
|
-
activeAgents: number;
|
|
222
|
-
idleAgents: number;
|
|
223
|
-
errorAgents: number;
|
|
224
|
-
totalTasks: number;
|
|
225
|
-
completedTasks: number;
|
|
226
|
-
failedTasks: number;
|
|
227
|
-
avgTaskDurationMs: number;
|
|
228
|
-
taskThroughputPerMin: number;
|
|
229
|
-
consensusSuccessRate: number;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Decision requiring consensus
|
|
233
|
-
*/
|
|
234
|
-
export interface Decision {
|
|
235
|
-
decisionId: string;
|
|
236
|
-
type: DecisionType;
|
|
237
|
-
proposal: unknown;
|
|
238
|
-
requiredConsensus: ConsensusType;
|
|
239
|
-
timeout: number;
|
|
240
|
-
initiator: string;
|
|
241
|
-
metadata: Record<string, unknown>;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Decision types
|
|
245
|
-
*/
|
|
246
|
-
export type DecisionType = 'task-assignment' | 'resource-allocation' | 'topology-change' | 'agent-termination' | 'priority-override' | 'emergency-action';
|
|
247
|
-
/**
|
|
248
|
-
* Consensus types
|
|
249
|
-
*/
|
|
250
|
-
export type ConsensusType = 'majority' | 'supermajority' | 'unanimous' | 'weighted' | 'queen-override';
|
|
251
|
-
/**
|
|
252
|
-
* Task result for learning
|
|
253
|
-
*/
|
|
254
|
-
export interface TaskResult {
|
|
255
|
-
taskId: string;
|
|
256
|
-
success: boolean;
|
|
257
|
-
output?: unknown;
|
|
258
|
-
error?: string;
|
|
259
|
-
durationMs: number;
|
|
260
|
-
agentId: string;
|
|
261
|
-
domain: AgentDomain;
|
|
262
|
-
metrics: TaskMetrics;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* Task execution metrics
|
|
266
|
-
*/
|
|
267
|
-
export interface TaskMetrics {
|
|
268
|
-
startTime: Date;
|
|
269
|
-
endTime: Date;
|
|
270
|
-
retries: number;
|
|
271
|
-
resourceUsage: {
|
|
272
|
-
memoryMb: number;
|
|
273
|
-
cpuPercent: number;
|
|
274
|
-
};
|
|
275
|
-
stepsCompleted: number;
|
|
276
|
-
qualityScore: number;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* Queen Coordinator configuration
|
|
280
|
-
*/
|
|
281
|
-
export interface QueenCoordinatorConfig {
|
|
282
|
-
/** Enable ReasoningBank integration */
|
|
283
|
-
enableLearning: boolean;
|
|
284
|
-
/** Number of patterns to retrieve for analysis */
|
|
285
|
-
patternRetrievalK: number;
|
|
286
|
-
/** Minimum pattern relevance threshold */
|
|
287
|
-
patternThreshold: number;
|
|
288
|
-
/** Task complexity thresholds */
|
|
289
|
-
complexityThresholds: {
|
|
290
|
-
simple: number;
|
|
291
|
-
moderate: number;
|
|
292
|
-
complex: number;
|
|
293
|
-
};
|
|
294
|
-
/** Health check interval in ms */
|
|
295
|
-
healthCheckIntervalMs: number;
|
|
296
|
-
/** Bottleneck detection thresholds */
|
|
297
|
-
bottleneckThresholds: {
|
|
298
|
-
queueDepth: number;
|
|
299
|
-
errorRate: number;
|
|
300
|
-
responseTimeMs: number;
|
|
301
|
-
};
|
|
302
|
-
/** Consensus timeouts */
|
|
303
|
-
consensusTimeouts: {
|
|
304
|
-
majority: number;
|
|
305
|
-
supermajority: number;
|
|
306
|
-
unanimous: number;
|
|
307
|
-
};
|
|
308
|
-
/** Enable automatic failover */
|
|
309
|
-
enableFailover: boolean;
|
|
310
|
-
/** Maximum delegation attempts */
|
|
311
|
-
maxDelegationAttempts: number;
|
|
312
|
-
}
|
|
313
|
-
/**
|
|
314
|
-
* Interface for swarm coordinator interactions
|
|
315
|
-
*/
|
|
316
|
-
export interface ISwarmCoordinator {
|
|
317
|
-
getAgentsByDomain(domain: AgentDomain): AgentState[];
|
|
318
|
-
getAllAgents(): AgentState[];
|
|
319
|
-
getAvailableAgents(): AgentState[];
|
|
320
|
-
getMetrics(): CoordinatorMetrics;
|
|
321
|
-
getDomainConfigs(): Map<AgentDomain, DomainConfig>;
|
|
322
|
-
getStatus(): {
|
|
323
|
-
domains: DomainStatus[];
|
|
324
|
-
metrics: CoordinatorMetrics;
|
|
325
|
-
};
|
|
326
|
-
assignTaskToDomain(taskId: string, domain: AgentDomain): Promise<string | undefined>;
|
|
327
|
-
proposeConsensus(value: unknown): Promise<ConsensusResult>;
|
|
328
|
-
broadcastMessage(payload: unknown, priority?: 'urgent' | 'high' | 'normal' | 'low'): Promise<void>;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Interface for neural learning system interactions
|
|
332
|
-
*/
|
|
333
|
-
export interface INeuralLearningSystem {
|
|
334
|
-
initialize(): Promise<void>;
|
|
335
|
-
beginTask(context: string, domain?: string): string;
|
|
336
|
-
recordStep(trajectoryId: string, action: string, reward: number, stateEmbedding: Float32Array): void;
|
|
337
|
-
completeTask(trajectoryId: string, quality?: number): Promise<void>;
|
|
338
|
-
findPatterns(queryEmbedding: Float32Array, k?: number): Promise<PatternMatchResult[]>;
|
|
339
|
-
retrieveMemories(queryEmbedding: Float32Array, k?: number): Promise<MemoryRetrievalResult[]>;
|
|
340
|
-
triggerLearning(): Promise<void>;
|
|
341
|
-
}
|
|
342
|
-
/**
|
|
343
|
-
* Pattern match result from neural system
|
|
344
|
-
*/
|
|
345
|
-
export interface PatternMatchResult {
|
|
346
|
-
patternId: string;
|
|
347
|
-
strategy: string;
|
|
348
|
-
successRate: number;
|
|
349
|
-
relevanceScore: number;
|
|
350
|
-
keyLearnings?: string[];
|
|
351
|
-
}
|
|
352
|
-
/**
|
|
353
|
-
* Memory retrieval result from neural system
|
|
354
|
-
*/
|
|
355
|
-
export interface MemoryRetrievalResult {
|
|
356
|
-
memory: {
|
|
357
|
-
memoryId: string;
|
|
358
|
-
strategy: string;
|
|
359
|
-
quality: number;
|
|
360
|
-
keyLearnings: string[];
|
|
361
|
-
};
|
|
362
|
-
relevanceScore: number;
|
|
363
|
-
combinedScore: number;
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* Interface for memory service interactions
|
|
367
|
-
*/
|
|
368
|
-
export interface IMemoryService {
|
|
369
|
-
semanticSearch(query: string, k?: number): Promise<SearchResultEntry[]>;
|
|
370
|
-
store(entry: MemoryStoreEntry): Promise<void>;
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Search result entry from memory service
|
|
374
|
-
*/
|
|
375
|
-
export interface SearchResultEntry {
|
|
376
|
-
entry: {
|
|
377
|
-
id: string;
|
|
378
|
-
content: string;
|
|
379
|
-
metadata: Record<string, unknown>;
|
|
380
|
-
};
|
|
381
|
-
score: number;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Memory store entry
|
|
385
|
-
*/
|
|
386
|
-
export interface MemoryStoreEntry {
|
|
387
|
-
key: string;
|
|
388
|
-
content: string;
|
|
389
|
-
namespace: string;
|
|
390
|
-
tags: string[];
|
|
391
|
-
metadata: Record<string, unknown>;
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* Queen Coordinator - Central orchestrator for the 15-agent hive-mind swarm
|
|
395
|
-
*
|
|
396
|
-
* The Queen is responsible for:
|
|
397
|
-
* 1. Strategic task analysis and decomposition
|
|
398
|
-
* 2. Agent delegation with load balancing
|
|
399
|
-
* 3. Swarm health monitoring
|
|
400
|
-
* 4. Consensus coordination
|
|
401
|
-
* 5. Learning from outcomes
|
|
402
|
-
*/
|
|
403
|
-
export declare class QueenCoordinator extends EventEmitter {
|
|
404
|
-
private config;
|
|
405
|
-
private swarm;
|
|
406
|
-
private neural?;
|
|
407
|
-
private memory?;
|
|
408
|
-
private analysisCache;
|
|
409
|
-
private delegationPlans;
|
|
410
|
-
private activeDecisions;
|
|
411
|
-
private outcomeHistory;
|
|
412
|
-
private healthHistory;
|
|
413
|
-
private analysisCounter;
|
|
414
|
-
private planCounter;
|
|
415
|
-
private reportCounter;
|
|
416
|
-
private decisionCounter;
|
|
417
|
-
private healthCheckInterval?;
|
|
418
|
-
private lastHealthReport?;
|
|
419
|
-
private analysisLatencies;
|
|
420
|
-
private delegationLatencies;
|
|
421
|
-
private consensusLatencies;
|
|
422
|
-
constructor(swarm: ISwarmCoordinator, config?: Partial<QueenCoordinatorConfig>, neural?: INeuralLearningSystem, memory?: IMemoryService);
|
|
423
|
-
/**
|
|
424
|
-
* Initialize the Queen Coordinator
|
|
425
|
-
*/
|
|
426
|
-
initialize(): Promise<void>;
|
|
427
|
-
/**
|
|
428
|
-
* Shutdown the Queen Coordinator
|
|
429
|
-
*/
|
|
430
|
-
shutdown(): Promise<void>;
|
|
431
|
-
/**
|
|
432
|
-
* Analyze a task for optimal execution
|
|
433
|
-
*
|
|
434
|
-
* @param task - Task to analyze
|
|
435
|
-
* @returns Task analysis with recommendations
|
|
436
|
-
*/
|
|
437
|
-
analyzeTask(task: TaskDefinition): Promise<TaskAnalysis>;
|
|
438
|
-
/**
|
|
439
|
-
* Decompose a complex task into subtasks
|
|
440
|
-
*/
|
|
441
|
-
private decomposeTask;
|
|
442
|
-
private isSimpleTask;
|
|
443
|
-
private decomposeCodingTask;
|
|
444
|
-
private decomposeTestingTask;
|
|
445
|
-
private decomposeResearchTask;
|
|
446
|
-
private decomposeCoordinationTask;
|
|
447
|
-
private decomposeGenericTask;
|
|
448
|
-
/**
|
|
449
|
-
* Identify required capabilities for a task
|
|
450
|
-
*/
|
|
451
|
-
private identifyRequiredCapabilities;
|
|
452
|
-
/**
|
|
453
|
-
* Calculate task complexity score
|
|
454
|
-
*/
|
|
455
|
-
private calculateComplexity;
|
|
456
|
-
/**
|
|
457
|
-
* Estimate task duration
|
|
458
|
-
*/
|
|
459
|
-
private estimateDuration;
|
|
460
|
-
/**
|
|
461
|
-
* Determine optimal domain for task execution
|
|
462
|
-
*/
|
|
463
|
-
private determineOptimalDomain;
|
|
464
|
-
private inferDomainFromType;
|
|
465
|
-
/**
|
|
466
|
-
* Find matching patterns from ReasoningBank
|
|
467
|
-
*/
|
|
468
|
-
private findMatchingPatterns;
|
|
469
|
-
/**
|
|
470
|
-
* Create a simple embedding from text using hash-based approach.
|
|
471
|
-
* For higher quality embeddings, integrate agentic-flow's computeEmbedding.
|
|
472
|
-
*/
|
|
473
|
-
private createSimpleEmbedding;
|
|
474
|
-
/**
|
|
475
|
-
* Estimate resource requirements
|
|
476
|
-
*/
|
|
477
|
-
private estimateResources;
|
|
478
|
-
/**
|
|
479
|
-
* Calculate confidence in analysis
|
|
480
|
-
*/
|
|
481
|
-
private calculateAnalysisConfidence;
|
|
482
|
-
/**
|
|
483
|
-
* Delegate a task to agents based on analysis
|
|
484
|
-
*
|
|
485
|
-
* @param task - Task to delegate
|
|
486
|
-
* @param analysis - Previous task analysis
|
|
487
|
-
* @returns Delegation plan
|
|
488
|
-
*/
|
|
489
|
-
delegateToAgents(task: TaskDefinition, analysis: TaskAnalysis): Promise<DelegationPlan>;
|
|
490
|
-
/**
|
|
491
|
-
* Score agents for task assignment
|
|
492
|
-
*/
|
|
493
|
-
scoreAgents(task: TaskDefinition, patterns: MatchedPattern[]): AgentScore[];
|
|
494
|
-
private scoreAgent;
|
|
495
|
-
private calculateCapabilityScore;
|
|
496
|
-
private calculatePerformanceScore;
|
|
497
|
-
private getAgentDomain;
|
|
498
|
-
private selectPrimaryAgent;
|
|
499
|
-
private selectBackupAgents;
|
|
500
|
-
private createParallelAssignments;
|
|
501
|
-
private determineExecutionStrategy;
|
|
502
|
-
private executeDelegation;
|
|
503
|
-
/**
|
|
504
|
-
* Monitor swarm health and detect issues
|
|
505
|
-
*
|
|
506
|
-
* @returns Health report
|
|
507
|
-
*/
|
|
508
|
-
monitorSwarmHealth(): Promise<HealthReport>;
|
|
509
|
-
private computeDomainHealth;
|
|
510
|
-
private computeAgentHealth;
|
|
511
|
-
private detectBottlenecks;
|
|
512
|
-
private generateAlerts;
|
|
513
|
-
private calculateOverallHealth;
|
|
514
|
-
private generateRecommendations;
|
|
515
|
-
private startHealthMonitoring;
|
|
516
|
-
private stopHealthMonitoring;
|
|
517
|
-
/**
|
|
518
|
-
* Coordinate consensus for a decision
|
|
519
|
-
*
|
|
520
|
-
* @param decision - Decision requiring consensus
|
|
521
|
-
* @returns Consensus result
|
|
522
|
-
*/
|
|
523
|
-
coordinateConsensus(decision: Decision): Promise<ConsensusResult>;
|
|
524
|
-
private queenOverride;
|
|
525
|
-
private majorityConsensus;
|
|
526
|
-
private supermajorityConsensus;
|
|
527
|
-
private unanimousConsensus;
|
|
528
|
-
private weightedConsensus;
|
|
529
|
-
/**
|
|
530
|
-
* Record task outcome for learning
|
|
531
|
-
*
|
|
532
|
-
* @param task - Completed task
|
|
533
|
-
* @param result - Task result
|
|
534
|
-
*/
|
|
535
|
-
recordOutcome(task: TaskDefinition, result: TaskResult): Promise<void>;
|
|
536
|
-
private learnFromOutcome;
|
|
537
|
-
private storeOutcomeMemory;
|
|
538
|
-
private formatOutcomeContent;
|
|
539
|
-
/**
|
|
540
|
-
* Get the last health report
|
|
541
|
-
*/
|
|
542
|
-
getLastHealthReport(): HealthReport | undefined;
|
|
543
|
-
/**
|
|
544
|
-
* Get outcome history
|
|
545
|
-
*/
|
|
546
|
-
getOutcomeHistory(): TaskResult[];
|
|
547
|
-
/**
|
|
548
|
-
* Get analysis cache
|
|
549
|
-
*/
|
|
550
|
-
getAnalysisCache(): Map<string, TaskAnalysis>;
|
|
551
|
-
/**
|
|
552
|
-
* Get delegation plans
|
|
553
|
-
*/
|
|
554
|
-
getDelegationPlans(): Map<string, DelegationPlan>;
|
|
555
|
-
/**
|
|
556
|
-
* Get performance statistics
|
|
557
|
-
*/
|
|
558
|
-
getPerformanceStats(): {
|
|
559
|
-
avgAnalysisLatencyMs: number;
|
|
560
|
-
avgDelegationLatencyMs: number;
|
|
561
|
-
avgConsensusLatencyMs: number;
|
|
562
|
-
totalAnalyses: number;
|
|
563
|
-
totalDelegations: number;
|
|
564
|
-
totalDecisions: number;
|
|
565
|
-
};
|
|
566
|
-
/**
|
|
567
|
-
* Check if learning is enabled
|
|
568
|
-
*/
|
|
569
|
-
isLearningEnabled(): boolean;
|
|
570
|
-
private emitEvent;
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* Create a Queen Coordinator instance
|
|
574
|
-
*/
|
|
575
|
-
export declare function createQueenCoordinator(swarm: ISwarmCoordinator, config?: Partial<QueenCoordinatorConfig>, neural?: INeuralLearningSystem, memory?: IMemoryService): QueenCoordinator;
|
|
576
|
-
export default QueenCoordinator;
|
|
577
|
-
//# sourceMappingURL=queen-coordinator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queen-coordinator.d.ts","sourceRoot":"","sources":["../src/queen-coordinator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EACV,UAAU,EAGV,cAAc,EACd,QAAQ,EACR,YAAY,EAEZ,kBAAkB,EAClB,eAAe,EAGhB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAMxF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,yBAAyB;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,MA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