@sparkleideas/ruv-swarm 1.0.18-patch.1 ā 1.0.18-patch.10
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/bin/ruv-swarm-clean.js +62 -62
- package/bin/ruv-swarm-memory.js +2 -2
- package/bin/ruv-swarm-secure-heartbeat.js +46 -46
- package/bin/ruv-swarm-secure.js +43 -43
- package/package.json +1 -1
- package/src/benchmark.js +4 -4
- package/src/claude-flow-enhanced.js +2 -2
- package/src/claude-integration/advanced-commands.js +7 -7
- package/src/claude-integration/core.js +4 -4
- package/src/claude-integration/docs.js +59 -59
- package/src/claude-integration/env-template.js +4 -4
- package/src/claude-integration/index.js +3 -3
- package/src/claude-integration/remote.js +1 -1
- package/src/cli-diagnostics.js +13 -13
- package/src/diagnostics.js +1 -1
- package/src/errors.js +1 -1
- package/src/github-coordinator/gh-cli-coordinator.js +1 -1
- package/src/hooks/cli.js +2 -2
- package/src/hooks/index.js +13 -13
- package/src/index-enhanced.d.ts +2 -2
- package/src/index-enhanced.js +3 -3
- package/src/logger.js +2 -2
- package/src/logging-config.js +1 -1
- package/src/mcp-tools-benchmarks.js +1 -1
- package/src/neural.js +3 -3
- package/src/performance-benchmarks.js +1 -1
- package/src/performance.js +11 -11
- package/src/persistence-pooled.js +1 -1
- package/src/persistence.js +2 -2
- package/src/security.js +1 -1
- package/src/sqlite-pool.js +1 -1
- package/src/wasm-loader.js +1 -1
package/src/index-enhanced.js
CHANGED
|
@@ -94,7 +94,7 @@ class RuvSwarm {
|
|
|
94
94
|
return instance;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
console.log('š§ Initializing
|
|
97
|
+
console.log('š§ Initializing ruv-swarm with WASM capabilities...');
|
|
98
98
|
|
|
99
99
|
try {
|
|
100
100
|
// Initialize WASM modules
|
|
@@ -150,7 +150,7 @@ class RuvSwarm {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
console.log('ā
|
|
153
|
+
console.log('ā
ruv-swarm initialized successfully');
|
|
154
154
|
console.log('š Features:', instance.features);
|
|
155
155
|
|
|
156
156
|
// Mark as initialized
|
|
@@ -158,7 +158,7 @@ class RuvSwarm {
|
|
|
158
158
|
|
|
159
159
|
return instance;
|
|
160
160
|
} catch (error) {
|
|
161
|
-
console.error('ā Failed to initialize
|
|
161
|
+
console.error('ā Failed to initialize ruv-swarm:', error);
|
|
162
162
|
throw error;
|
|
163
163
|
}
|
|
164
164
|
}
|
package/src/logger.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Logger module for
|
|
2
|
+
* Logger module for ruv-swarm with comprehensive logging capabilities
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { randomUUID } from 'crypto';
|
|
6
6
|
|
|
7
7
|
export class Logger {
|
|
8
8
|
constructor(options = {}) {
|
|
9
|
-
this.name = options.name || '
|
|
9
|
+
this.name = options.name || 'ruv-swarm';
|
|
10
10
|
this.level = options.level || 'INFO';
|
|
11
11
|
this.enableStderr = options.enableStderr !== false;
|
|
12
12
|
this.enableFile = options.enableFile || false;
|
package/src/logging-config.js
CHANGED
package/src/neural.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Neural Network CLI for
|
|
2
|
+
* Neural Network CLI for ruv-swarm
|
|
3
3
|
* Provides neural training, status, and pattern analysis using WASM
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -171,7 +171,7 @@ class NeuralCLI {
|
|
|
171
171
|
duration: iterations * 100,
|
|
172
172
|
};
|
|
173
173
|
|
|
174
|
-
const outputDir = path.join(process.cwd(), '
|
|
174
|
+
const outputDir = path.join(process.cwd(), '.ruv-swarm', 'neural');
|
|
175
175
|
await fs.mkdir(outputDir, { recursive: true });
|
|
176
176
|
const outputFile = path.join(outputDir, `training-${modelType}-${Date.now()}.json`);
|
|
177
177
|
await fs.writeFile(outputFile, JSON.stringify(results, null, 2));
|
|
@@ -432,7 +432,7 @@ class NeuralCLI {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
async loadPersistenceInfo() {
|
|
435
|
-
const neuralDir = path.join(process.cwd(), '
|
|
435
|
+
const neuralDir = path.join(process.cwd(), '.ruv-swarm', 'neural');
|
|
436
436
|
const modelDetails = {};
|
|
437
437
|
let totalSessions = 0;
|
|
438
438
|
let savedModels = 0;
|
|
@@ -25,7 +25,7 @@ class PerformanceBenchmarks {
|
|
|
25
25
|
console.log('š Initializing Performance Benchmarking Suite...');
|
|
26
26
|
|
|
27
27
|
try {
|
|
28
|
-
// Initialize
|
|
28
|
+
// Initialize ruv-swarm with optimizations
|
|
29
29
|
this.ruvSwarm = await RuvSwarm.initialize({
|
|
30
30
|
useSIMD: true,
|
|
31
31
|
enableNeuralNetworks: true,
|
package/src/performance.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Performance Analysis CLI for
|
|
2
|
+
* Performance Analysis CLI for ruv-swarm
|
|
3
3
|
* Provides performance analysis, optimization, and suggestions
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -366,7 +366,7 @@ class PerformanceCLI {
|
|
|
366
366
|
priority: 'HIGH',
|
|
367
367
|
issue: 'High memory utilization',
|
|
368
368
|
suggestion: 'Reduce agent count or enable memory optimization',
|
|
369
|
-
command: '
|
|
369
|
+
command: 'ruv-swarm performance optimize --target memory',
|
|
370
370
|
});
|
|
371
371
|
} else if (memUtilization < 30) {
|
|
372
372
|
suggestions.push({
|
|
@@ -374,7 +374,7 @@ class PerformanceCLI {
|
|
|
374
374
|
priority: 'MEDIUM',
|
|
375
375
|
issue: 'Low memory utilization',
|
|
376
376
|
suggestion: 'Increase parallelism for better resource usage',
|
|
377
|
-
command: '
|
|
377
|
+
command: 'ruv-swarm performance optimize --target speed',
|
|
378
378
|
});
|
|
379
379
|
}
|
|
380
380
|
|
|
@@ -384,7 +384,7 @@ class PerformanceCLI {
|
|
|
384
384
|
priority: 'MEDIUM',
|
|
385
385
|
issue: 'Cognitive patterns could be improved',
|
|
386
386
|
suggestion: 'Train neural networks with recent patterns',
|
|
387
|
-
command: '
|
|
387
|
+
command: 'ruv-swarm neural train --model attention --iterations 50',
|
|
388
388
|
});
|
|
389
389
|
|
|
390
390
|
suggestions.push({
|
|
@@ -392,7 +392,7 @@ class PerformanceCLI {
|
|
|
392
392
|
priority: 'LOW',
|
|
393
393
|
issue: 'Performance baseline not established',
|
|
394
394
|
suggestion: 'Run comprehensive benchmarks for baseline',
|
|
395
|
-
command: '
|
|
395
|
+
command: 'ruv-swarm benchmark run --test comprehensive --iterations 20',
|
|
396
396
|
});
|
|
397
397
|
|
|
398
398
|
suggestions.push({
|
|
@@ -400,7 +400,7 @@ class PerformanceCLI {
|
|
|
400
400
|
priority: 'MEDIUM',
|
|
401
401
|
issue: 'Agent coordination could be optimized',
|
|
402
402
|
suggestion: 'Analyze and optimize swarm topology',
|
|
403
|
-
command: '
|
|
403
|
+
command: 'ruv-swarm performance analyze --detailed',
|
|
404
404
|
});
|
|
405
405
|
|
|
406
406
|
// Display suggestions
|
|
@@ -429,17 +429,17 @@ class PerformanceCLI {
|
|
|
429
429
|
|
|
430
430
|
if (totalShown === 0) {
|
|
431
431
|
console.log('ā
No optimization suggestions at this time');
|
|
432
|
-
console.log('š” Your
|
|
432
|
+
console.log('š” Your ruv-swarm instance appears to be well optimized!');
|
|
433
433
|
} else {
|
|
434
434
|
console.log(`š ${totalShown} optimization opportunities identified`);
|
|
435
435
|
console.log('š” Start with HIGH priority items for maximum impact');
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
console.log('\nš§ Quick optimization commands:');
|
|
439
|
-
console.log('
|
|
440
|
-
console.log('
|
|
441
|
-
console.log('
|
|
442
|
-
console.log('
|
|
439
|
+
console.log(' ruv-swarm performance optimize --target speed # Optimize for speed');
|
|
440
|
+
console.log(' ruv-swarm performance optimize --target memory # Optimize for memory');
|
|
441
|
+
console.log(' ruv-swarm performance optimize --target tokens # Optimize for efficiency');
|
|
442
|
+
console.log(' ruv-swarm benchmark run --iterations 10 # Run performance tests');
|
|
443
443
|
|
|
444
444
|
} catch (error) {
|
|
445
445
|
console.error('ā Failed to generate suggestions:', error.message);
|
|
@@ -17,7 +17,7 @@ import path from 'path';
|
|
|
17
17
|
import fs from 'fs';
|
|
18
18
|
|
|
19
19
|
class SwarmPersistencePooled {
|
|
20
|
-
constructor(dbPath = path.join(new URL('.', import.meta.url).pathname, '..', 'data', '
|
|
20
|
+
constructor(dbPath = path.join(new URL('.', import.meta.url).pathname, '..', 'data', 'ruv-swarm.db'), options = {}) {
|
|
21
21
|
this.dbPath = dbPath;
|
|
22
22
|
this.options = {
|
|
23
23
|
// Pool configuration
|
package/src/persistence.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SQLite Persistence Layer for
|
|
2
|
+
* SQLite Persistence Layer for ruv-swarm MCP
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import Database from 'better-sqlite3';
|
|
@@ -7,7 +7,7 @@ import path from 'path';
|
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
|
|
9
9
|
class SwarmPersistence {
|
|
10
|
-
constructor(dbPath = path.join(new URL('.', import.meta.url).pathname, '..', 'data', '
|
|
10
|
+
constructor(dbPath = path.join(new URL('.', import.meta.url).pathname, '..', 'data', 'ruv-swarm.db')) {
|
|
11
11
|
// Ensure data directory exists
|
|
12
12
|
const dataDir = path.dirname(dbPath);
|
|
13
13
|
if (!fs.existsSync(dataDir)) {
|
package/src/security.js
CHANGED
package/src/sqlite-pool.js
CHANGED
package/src/wasm-loader.js
CHANGED
|
@@ -256,7 +256,7 @@ class WasmModuleLoader {
|
|
|
256
256
|
() => {
|
|
257
257
|
const cwd = process.cwd();
|
|
258
258
|
const potentialPaths = [
|
|
259
|
-
path.join(cwd, 'node_modules', '
|
|
259
|
+
path.join(cwd, 'node_modules', 'ruv-swarm', 'wasm'),
|
|
260
260
|
path.join(cwd, '..', 'wasm'),
|
|
261
261
|
path.join(cwd, 'wasm'),
|
|
262
262
|
];
|