@claude-flow/plugin-neural-coordination 3.0.0-alpha.1

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.
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Nervous System Bridge
3
+ *
4
+ * Bridge to ruvector-nervous-system-wasm for neural coordination layer.
5
+ * Provides signal propagation, state synchronization, and agent coordination.
6
+ */
7
+ import type { Agent } from '../types.js';
8
+ /**
9
+ * WASM module status
10
+ */
11
+ export type WasmModuleStatus = 'unloaded' | 'loading' | 'ready' | 'error';
12
+ /**
13
+ * Nervous system configuration
14
+ */
15
+ export interface NervousSystemConfig {
16
+ /** Number of neurons in the network */
17
+ neuronCount: number;
18
+ /** Signal propagation speed (0-1) */
19
+ propagationSpeed: number;
20
+ /** Signal decay rate (0-1) */
21
+ decayRate: number;
22
+ /** Synchronization threshold (0-1) */
23
+ syncThreshold: number;
24
+ /** Maximum coordination attempts */
25
+ maxCoordinationAttempts: number;
26
+ }
27
+ /**
28
+ * Signal in the nervous system
29
+ */
30
+ export interface NeuralSignal {
31
+ source: string;
32
+ target: string;
33
+ strength: number;
34
+ type: 'excitatory' | 'inhibitory';
35
+ payload?: Float32Array;
36
+ }
37
+ /**
38
+ * Coordination result
39
+ */
40
+ export interface CoordinationResult {
41
+ success: boolean;
42
+ assignments: Map<string, string>;
43
+ synchronizationLevel: number;
44
+ convergenceRounds: number;
45
+ }
46
+ /**
47
+ * WASM nervous system module interface
48
+ */
49
+ interface NervousSystemModule {
50
+ propagate(signals: Float32Array[], config: NervousSystemConfig): Float32Array[];
51
+ synchronize(states: Float32Array[], threshold: number): Float32Array;
52
+ coordinate(agents: number, capabilities: Uint8Array, tasks: Uint8Array): Uint32Array;
53
+ measureSynchrony(states: Float32Array[]): number;
54
+ }
55
+ /**
56
+ * Nervous System Bridge implementation
57
+ */
58
+ export declare class NervousSystemBridge {
59
+ readonly name = "ruvector-nervous-system-wasm";
60
+ readonly version = "0.1.0";
61
+ private _status;
62
+ private _module;
63
+ private config;
64
+ constructor(config?: Partial<NervousSystemConfig>);
65
+ get status(): WasmModuleStatus;
66
+ get initialized(): boolean;
67
+ init(): Promise<void>;
68
+ destroy(): Promise<void>;
69
+ isReady(): boolean;
70
+ getModule(): NervousSystemModule | null;
71
+ /**
72
+ * Propagate signals through the neural network
73
+ */
74
+ propagate(signals: Float32Array[]): Promise<Float32Array[]>;
75
+ /**
76
+ * Synchronize agent states to achieve collective coherence
77
+ */
78
+ synchronize(states: Float32Array[]): Promise<Float32Array>;
79
+ /**
80
+ * Coordinate agents for task assignment
81
+ */
82
+ coordinate(agents: Agent[]): Promise<CoordinationResult>;
83
+ /**
84
+ * Create mock module for development without WASM
85
+ */
86
+ private createMockModule;
87
+ }
88
+ /**
89
+ * Create a new nervous system bridge
90
+ */
91
+ export declare function createNervousSystemBridge(config?: Partial<NervousSystemConfig>): NervousSystemBridge;
92
+ export default NervousSystemBridge;
93
+ //# sourceMappingURL=nervous-system-bridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nervous-system-bridge.d.ts","sourceRoot":"","sources":["../../src/bridges/nervous-system-bridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,gBAAgB,EAAE,MAAM,CAAC;IACzB,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAaD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,C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AAC,OAAO,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAKjE;;OAEG;IACG,WAAW,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,YAAY,CAAC;IAKhE;;OAEG;IACG,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAqE9D;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAyEzB;AAsBD;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GAAG,mBAAmB,CAEpG;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,240 @@
1
+ /**
2
+ * Nervous System Bridge
3
+ *
4
+ * Bridge to ruvector-nervous-system-wasm for neural coordination layer.
5
+ * Provides signal propagation, state synchronization, and agent coordination.
6
+ */
7
+ /**
8
+ * Default configuration
9
+ */
10
+ const DEFAULT_CONFIG = {
11
+ neuronCount: 1000,
12
+ propagationSpeed: 0.8,
13
+ decayRate: 0.1,
14
+ syncThreshold: 0.7,
15
+ maxCoordinationAttempts: 10,
16
+ };
17
+ /**
18
+ * Nervous System Bridge implementation
19
+ */
20
+ export class NervousSystemBridge {
21
+ name = 'ruvector-nervous-system-wasm';
22
+ version = '0.1.0';
23
+ _status = 'unloaded';
24
+ _module = null;
25
+ config;
26
+ constructor(config) {
27
+ this.config = { ...DEFAULT_CONFIG, ...config };
28
+ }
29
+ get status() {
30
+ return this._status;
31
+ }
32
+ get initialized() {
33
+ return this._status === 'ready';
34
+ }
35
+ async init() {
36
+ if (this._status === 'ready')
37
+ return;
38
+ if (this._status === 'loading')
39
+ return;
40
+ this._status = 'loading';
41
+ try {
42
+ // Try to load the WASM module (optional dependency)
43
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
+ const wasmModule = await import('@ruvector/nervous-system-wasm').catch(() => null);
45
+ if (wasmModule) {
46
+ this._module = wasmModule;
47
+ }
48
+ else {
49
+ // Use mock module for development
50
+ this._module = this.createMockModule();
51
+ }
52
+ this._status = 'ready';
53
+ }
54
+ catch (error) {
55
+ this._status = 'error';
56
+ throw error;
57
+ }
58
+ }
59
+ async destroy() {
60
+ this._module = null;
61
+ this._status = 'unloaded';
62
+ }
63
+ isReady() {
64
+ return this._status === 'ready';
65
+ }
66
+ getModule() {
67
+ return this._module;
68
+ }
69
+ /**
70
+ * Propagate signals through the neural network
71
+ */
72
+ async propagate(signals) {
73
+ if (!this._module)
74
+ throw new Error('Nervous system module not initialized');
75
+ return this._module.propagate(signals, this.config);
76
+ }
77
+ /**
78
+ * Synchronize agent states to achieve collective coherence
79
+ */
80
+ async synchronize(states) {
81
+ if (!this._module)
82
+ throw new Error('Nervous system module not initialized');
83
+ return this._module.synchronize(states, this.config.syncThreshold);
84
+ }
85
+ /**
86
+ * Coordinate agents for task assignment
87
+ */
88
+ async coordinate(agents) {
89
+ if (!this._module)
90
+ throw new Error('Nervous system module not initialized');
91
+ const n = agents.length;
92
+ if (n === 0) {
93
+ return {
94
+ success: true,
95
+ assignments: new Map(),
96
+ synchronizationLevel: 1,
97
+ convergenceRounds: 0,
98
+ };
99
+ }
100
+ // Encode capabilities
101
+ const capabilitySet = new Set();
102
+ for (const agent of agents) {
103
+ for (const cap of agent.capabilities ?? []) {
104
+ capabilitySet.add(cap);
105
+ }
106
+ }
107
+ const capabilities = Array.from(capabilitySet);
108
+ const capabilityIndices = new Map(capabilities.map((c, i) => [c, i]));
109
+ // Create capability matrix
110
+ const capabilityMatrix = new Uint8Array(n * capabilities.length);
111
+ for (let i = 0; i < n; i++) {
112
+ for (const cap of agents[i]?.capabilities ?? []) {
113
+ const capIdx = capabilityIndices.get(cap);
114
+ if (capIdx !== undefined) {
115
+ capabilityMatrix[i * capabilities.length + capIdx] = 1;
116
+ }
117
+ }
118
+ }
119
+ // Simple task assignment (each capability is a potential task)
120
+ const tasks = new Uint8Array(capabilities.length);
121
+ tasks.fill(1);
122
+ // Run coordination
123
+ const result = this._module.coordinate(n, capabilityMatrix, tasks);
124
+ // Build assignment map
125
+ const assignments = new Map();
126
+ for (let i = 0; i < n; i++) {
127
+ const taskIdx = result[i];
128
+ if (taskIdx !== undefined && taskIdx < capabilities.length) {
129
+ const capability = capabilities[taskIdx];
130
+ if (capability) {
131
+ assignments.set(agents[i].id, capability);
132
+ }
133
+ }
134
+ }
135
+ // Measure synchronization
136
+ const states = agents
137
+ .filter(a => a.embedding)
138
+ .map(a => new Float32Array(a.embedding));
139
+ const synchronizationLevel = states.length > 0
140
+ ? this._module.measureSynchrony(states)
141
+ : 1;
142
+ return {
143
+ success: true,
144
+ assignments,
145
+ synchronizationLevel,
146
+ convergenceRounds: 1,
147
+ };
148
+ }
149
+ /**
150
+ * Create mock module for development without WASM
151
+ */
152
+ createMockModule() {
153
+ return {
154
+ propagate(signals, config) {
155
+ // Apply simple propagation with decay
156
+ return signals.map(signal => {
157
+ const output = new Float32Array(signal.length);
158
+ for (let i = 0; i < signal.length; i++) {
159
+ output[i] = (signal[i] ?? 0) * config.propagationSpeed * (1 - config.decayRate);
160
+ }
161
+ return output;
162
+ });
163
+ },
164
+ synchronize(states, threshold) {
165
+ if (states.length === 0) {
166
+ return new Float32Array(0);
167
+ }
168
+ const dim = states[0]?.length ?? 0;
169
+ const result = new Float32Array(dim);
170
+ // Compute weighted average of states
171
+ for (let d = 0; d < dim; d++) {
172
+ let sum = 0;
173
+ for (const state of states) {
174
+ sum += state[d] ?? 0;
175
+ }
176
+ result[d] = sum / states.length;
177
+ }
178
+ return result;
179
+ },
180
+ coordinate(agents, capabilities, tasks) {
181
+ const assignments = new Uint32Array(agents);
182
+ const numTasks = tasks.length;
183
+ const numCapabilities = numTasks;
184
+ // Simple round-robin assignment based on capabilities
185
+ for (let i = 0; i < agents; i++) {
186
+ // Find first capability this agent has
187
+ let assigned = 0;
188
+ for (let c = 0; c < numCapabilities; c++) {
189
+ if ((capabilities[i * numCapabilities + c] ?? 0) === 1) {
190
+ assigned = c;
191
+ break;
192
+ }
193
+ }
194
+ assignments[i] = assigned;
195
+ }
196
+ return assignments;
197
+ },
198
+ measureSynchrony(states) {
199
+ if (states.length < 2)
200
+ return 1;
201
+ // Calculate average pairwise cosine similarity
202
+ let totalSim = 0;
203
+ let count = 0;
204
+ for (let i = 0; i < states.length; i++) {
205
+ for (let j = i + 1; j < states.length; j++) {
206
+ const sim = cosineSimilarity(states[i], states[j]);
207
+ totalSim += sim;
208
+ count++;
209
+ }
210
+ }
211
+ return count > 0 ? totalSim / count : 1;
212
+ },
213
+ };
214
+ }
215
+ }
216
+ /**
217
+ * Cosine similarity helper
218
+ */
219
+ function cosineSimilarity(a, b) {
220
+ if (a.length !== b.length)
221
+ return 0;
222
+ let dot = 0;
223
+ let normA = 0;
224
+ let normB = 0;
225
+ for (let i = 0; i < a.length; i++) {
226
+ dot += (a[i] ?? 0) * (b[i] ?? 0);
227
+ normA += (a[i] ?? 0) * (a[i] ?? 0);
228
+ normB += (b[i] ?? 0) * (b[i] ?? 0);
229
+ }
230
+ const denom = Math.sqrt(normA) * Math.sqrt(normB);
231
+ return denom > 0 ? dot / denom : 0;
232
+ }
233
+ /**
234
+ * Create a new nervous system bridge
235
+ */
236
+ export function createNervousSystemBridge(config) {
237
+ return new NervousSystemBridge(config);
238
+ }
239
+ export default NervousSystemBridge;
240
+ //# sourceMappingURL=nervous-system-bridge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nervous-system-bridge.js","sourceRoot":"","sources":["../../src/bridges/nervous-system-bridge.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAyBH;;GAEG;AACH,MAAM,cAAc,GAAwB;IAC1C,WAAW,EAAE,IAAI;IACjB,gBAAgB,EAAE,GAAG;IACrB,SAAS,EAAE,GAAG;IACd,aAAa,EAAE,GAAG;IAClB,uBAAuB,EAAE,EAAE;CAC5B,CAAC;AAiCF;;GAEG;AACH,MAAM,OAAO,mBAAmB;IACrB,IAAI,GAAG,8BAA8B,CAA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I,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAClC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACjC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACnC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClD,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACrC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,yBAAyB,CAAC,MAAqC;IAC7E,OAAO,IAAI,mBAAmB,CAAC,MAAM,CAAC,CAAC;AACzC,CAAC;AAED,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Neural Coordination Plugin
3
+ *
4
+ * Multi-agent neural coordination for swarm intelligence using
5
+ * SONA, GNN, and attention mechanisms.
6
+ *
7
+ * Features:
8
+ * - Neural consensus protocols (neural voting, iterative refinement, auction, contract net)
9
+ * - GNN-based topology optimization (mesh, tree, ring, star, hybrid)
10
+ * - Collective memory with EWC consolidation
11
+ * - Emergent communication protocol learning
12
+ * - Swarm behavior orchestration (flocking, foraging, formation, etc.)
13
+ *
14
+ * @packageDocumentation
15
+ */
16
+ export * from './types.js';
17
+ export { neuralConsensusTool, topologyOptimizeTool, collectiveMemoryTool, emergentProtocolTool, swarmBehaviorTool, neuralCoordinationTools, toolHandlers, getTool, getToolNames, } from './mcp-tools.js';
18
+ export { NervousSystemBridge, createNervousSystemBridge, AttentionBridge, createAttentionBridge, } from './bridges/index.js';
19
+ export type { NervousSystemConfig, NeuralSignal, CoordinationResult, } from './bridges/nervous-system-bridge.js';
20
+ export type { AttentionConfig, AttentionOutput, } from './bridges/attention-bridge.js';
21
+ import type { MCPTool } from './types.js';
22
+ import { NervousSystemBridge } from './bridges/nervous-system-bridge.js';
23
+ import { AttentionBridge } from './bridges/attention-bridge.js';
24
+ /**
25
+ * Neural Coordination Plugin metadata
26
+ */
27
+ export declare const PLUGIN_METADATA: {
28
+ readonly name: "@claude-flow/plugin-neural-coordination";
29
+ readonly version: "3.0.0-alpha.1";
30
+ readonly description: "Neural coordination plugin for multi-agent swarm intelligence";
31
+ readonly author: "Claude Flow Team";
32
+ readonly keywords: readonly ["neural-coordination", "multi-agent", "swarm", "consensus", "topology", "sona", "gnn", "attention"];
33
+ };
34
+ /**
35
+ * Plugin state
36
+ */
37
+ export interface NeuralCoordinationPluginState {
38
+ initialized: boolean;
39
+ nervousSystemBridge: NervousSystemBridge | null;
40
+ attentionBridge: AttentionBridge | null;
41
+ }
42
+ /**
43
+ * Initialize the neural coordination plugin
44
+ */
45
+ export declare function initializePlugin(): Promise<void>;
46
+ /**
47
+ * Shutdown the neural coordination plugin
48
+ */
49
+ export declare function shutdownPlugin(): Promise<void>;
50
+ /**
51
+ * Get plugin state
52
+ */
53
+ export declare function getPluginState(): NeuralCoordinationPluginState;
54
+ /**
55
+ * Get all MCP tools provided by this plugin
56
+ */
57
+ export declare function getMCPTools(): MCPTool[];
58
+ /**
59
+ * Plugin interface for registration with Claude Flow
60
+ */
61
+ export declare const neuralCoordinationPlugin: {
62
+ metadata: {
63
+ readonly name: "@claude-flow/plugin-neural-coordination";
64
+ readonly version: "3.0.0-alpha.1";
65
+ readonly description: "Neural coordination plugin for multi-agent swarm intelligence";
66
+ readonly author: "Claude Flow Team";
67
+ readonly keywords: readonly ["neural-coordination", "multi-agent", "swarm", "consensus", "topology", "sona", "gnn", "attention"];
68
+ };
69
+ state: "uninitialized" | "initializing" | "ready" | "error";
70
+ initialize(): Promise<void>;
71
+ shutdown(): Promise<void>;
72
+ getMCPTools(): MCPTool[];
73
+ getAgentTypes(): string[];
74
+ };
75
+ export default neuralCoordinationPlugin;
76
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,cAAc,YAAY,CAAC;AAG3B,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,OAAO,EACP,YAAY,GACb,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAG5B,YAAY,EACV,mBAAmB,EACnB,YAAY,EACZ,kBAAkB,GACnB,MAAM,oCAAoC,CAAC;AAE5C,YAAY,EACV,eAAe,EACf,eAAe,GAChB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAA6B,MAAM,oCAAoC,CAAC;AACpG,OAAO,EAAE,eAAe,EAAyB,MAAM,+BAA+B,CAAC;AAEvF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;CAelB,CAAC;AAEX;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,OAAO,CAAC;IACrB,mBAAmB,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAChD,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;CACzC;AAQD;;GAEG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAatD;AAED;;GAEG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAapD;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,6BAA6B,CAE9D;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,EAAE,CAEvC;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;WAET,eAAe,GAAG,cAAc,GAAG,OAAO,GAAG,OAAO;kBAE1D,OAAO,CAAC,IAAI,CAAC;gBAWf,OAAO,CAAC,IAAI,CAAC;mBAKhB,OAAO,EAAE;qBAIP,MAAM,EAAE;CAS1B,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Neural Coordination Plugin
3
+ *
4
+ * Multi-agent neural coordination for swarm intelligence using
5
+ * SONA, GNN, and attention mechanisms.
6
+ *
7
+ * Features:
8
+ * - Neural consensus protocols (neural voting, iterative refinement, auction, contract net)
9
+ * - GNN-based topology optimization (mesh, tree, ring, star, hybrid)
10
+ * - Collective memory with EWC consolidation
11
+ * - Emergent communication protocol learning
12
+ * - Swarm behavior orchestration (flocking, foraging, formation, etc.)
13
+ *
14
+ * @packageDocumentation
15
+ */
16
+ // Export types
17
+ export * from './types.js';
18
+ // Export MCP tools
19
+ export { neuralConsensusTool, topologyOptimizeTool, collectiveMemoryTool, emergentProtocolTool, swarmBehaviorTool, neuralCoordinationTools, toolHandlers, getTool, getToolNames, } from './mcp-tools.js';
20
+ // Export bridges
21
+ export { NervousSystemBridge, createNervousSystemBridge, AttentionBridge, createAttentionBridge, } from './bridges/index.js';
22
+ import { neuralCoordinationTools } from './mcp-tools.js';
23
+ import { createNervousSystemBridge } from './bridges/nervous-system-bridge.js';
24
+ import { createAttentionBridge } from './bridges/attention-bridge.js';
25
+ /**
26
+ * Neural Coordination Plugin metadata
27
+ */
28
+ export const PLUGIN_METADATA = {
29
+ name: '@claude-flow/plugin-neural-coordination',
30
+ version: '3.0.0-alpha.1',
31
+ description: 'Neural coordination plugin for multi-agent swarm intelligence',
32
+ author: 'Claude Flow Team',
33
+ keywords: [
34
+ 'neural-coordination',
35
+ 'multi-agent',
36
+ 'swarm',
37
+ 'consensus',
38
+ 'topology',
39
+ 'sona',
40
+ 'gnn',
41
+ 'attention',
42
+ ],
43
+ };
44
+ let pluginState = {
45
+ initialized: false,
46
+ nervousSystemBridge: null,
47
+ attentionBridge: null,
48
+ };
49
+ /**
50
+ * Initialize the neural coordination plugin
51
+ */
52
+ export async function initializePlugin() {
53
+ if (pluginState.initialized)
54
+ return;
55
+ // Initialize bridges
56
+ pluginState.nervousSystemBridge = createNervousSystemBridge();
57
+ pluginState.attentionBridge = createAttentionBridge();
58
+ await Promise.all([
59
+ pluginState.nervousSystemBridge.init(),
60
+ pluginState.attentionBridge.init(),
61
+ ]);
62
+ pluginState.initialized = true;
63
+ }
64
+ /**
65
+ * Shutdown the neural coordination plugin
66
+ */
67
+ export async function shutdownPlugin() {
68
+ if (!pluginState.initialized)
69
+ return;
70
+ await Promise.all([
71
+ pluginState.nervousSystemBridge?.destroy(),
72
+ pluginState.attentionBridge?.destroy(),
73
+ ]);
74
+ pluginState = {
75
+ initialized: false,
76
+ nervousSystemBridge: null,
77
+ attentionBridge: null,
78
+ };
79
+ }
80
+ /**
81
+ * Get plugin state
82
+ */
83
+ export function getPluginState() {
84
+ return { ...pluginState };
85
+ }
86
+ /**
87
+ * Get all MCP tools provided by this plugin
88
+ */
89
+ export function getMCPTools() {
90
+ return neuralCoordinationTools;
91
+ }
92
+ /**
93
+ * Plugin interface for registration with Claude Flow
94
+ */
95
+ export const neuralCoordinationPlugin = {
96
+ metadata: PLUGIN_METADATA,
97
+ state: 'uninitialized',
98
+ async initialize() {
99
+ this.state = 'initializing';
100
+ try {
101
+ await initializePlugin();
102
+ this.state = 'ready';
103
+ }
104
+ catch (error) {
105
+ this.state = 'error';
106
+ throw error;
107
+ }
108
+ },
109
+ async shutdown() {
110
+ await shutdownPlugin();
111
+ this.state = 'uninitialized';
112
+ },
113
+ getMCPTools() {
114
+ return neuralCoordinationTools;
115
+ },
116
+ getAgentTypes() {
117
+ return [
118
+ 'neural-coordinator',
119
+ 'topology-optimizer',
120
+ 'collective-memory-manager',
121
+ 'protocol-learner',
122
+ 'swarm-orchestrator',
123
+ ];
124
+ },
125
+ };
126
+ export default neuralCoordinationPlugin;
127
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,eAAe;AACf,cAAc,YAAY,CAAC;AAE3B,mBAAmB;AACnB,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,EACZ,OAAO,EACP,YAAY,GACb,MAAM,gBAAgB,CAAC;AAExB,iBAAiB;AACjB,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,eAAe,EACf,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAe5B,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAuB,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpG,OAAO,EAAmB,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEvF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,yCAAyC;IAC/C,OAAO,EAAE,eAAe;IACxB,WAAW,EAAE,+DAA+D;IAC5E,MAAM,EAAE,kBAAkB;IAC1B,QAAQ,EAAE;QACR,qBAAqB;QACrB,aAAa;QACb,OAAO;QACP,WAAW;QACX,UAAU;QACV,MAAM;QACN,KAAK;QACL,WAAW;KACZ;CACO,CAAC;AAWX,IAAI,WAAW,GAAkC;IAC/C,WAAW,EAAE,KAAK;IAClB,mBAAmB,EAAE,IAA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AAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;YACrB,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;IAED,KAAK,CAAC,QAAQ;QACZ,MAAM,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC;IAC/B,CAAC;IAED,WAAW;QACT,OAAO,uBAAuB,CAAC;IACjC,CAAC;IAED,aAAa;QACX,OAAO;YACL,oBAAoB;YACpB,oBAAoB;YACpB,2BAA2B;YAC3B,kBAAkB;YAClB,oBAAoB;SACrB,CAAC;IACJ,CAAC;CACF,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Neural Coordination MCP Tools
3
+ *
4
+ * 5 MCP tools for multi-agent neural coordination:
5
+ * - coordination/neural-consensus: Neural negotiation consensus
6
+ * - coordination/topology-optimize: GNN-based topology optimization
7
+ * - coordination/collective-memory: Shared memory management
8
+ * - coordination/emergent-protocol: MARL communication protocols
9
+ * - coordination/swarm-behavior: Emergent swarm behaviors
10
+ */
11
+ import type { MCPTool, MCPToolResult, ToolContext } from './types.js';
12
+ export declare const neuralConsensusTool: MCPTool;
13
+ export declare const topologyOptimizeTool: MCPTool;
14
+ export declare const collectiveMemoryTool: MCPTool;
15
+ export declare const emergentProtocolTool: MCPTool;
16
+ export declare const swarmBehaviorTool: MCPTool;
17
+ export declare const neuralCoordinationTools: MCPTool[];
18
+ export declare const toolHandlers: Map<string, (input: Record<string, unknown>, context?: ToolContext) => Promise<MCPToolResult>>;
19
+ export declare function getTool(name: string): MCPTool | undefined;
20
+ export declare function getToolNames(): string[];
21
+ export default neuralCoordinationTools;
22
+ //# sourceMappingURL=mcp-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-tools.d.ts","sourceRoot":"","sources":["../src/mcp-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,WAAW,EAWZ,MAAM,YAAY,CAAC;AA4LpB,eAAO,MAAM,mBAAmB,EAAE,OAkCjC,CAAC;AAwOF,eAAO,MAAM,oBAAoB,EAAE,OAiClC,CAAC;AAsMF,eAAO,MAAM,oBAAoB,EAAE,OAqClC,CAAC;AAiGF,eAAO,MAAM,oBAAoB,EAAE,OAgClC,CAAC;AAsIF,eAAO,MAAM,iBAAiB,EAAE,OAiC/B,CAAC;AAMF,eAAO,MAAM,uBAAuB,EAAE,OAAO,EAM5C,CAAC;AAEF,eAAO,MAAM,YAAY,gGAMvB,CAAC;AAEH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAEzD;AAED,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC;AAED,eAAe,uBAAuB,CAAC"}