@sparkleideas/cli 3.1.0-alpha.21 → 3.1.0-alpha.22
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/dist/src/appliance/rvfa-builder.js +4 -4
- package/dist/src/appliance/rvfa-format.d.ts +1 -1
- package/dist/src/appliance/rvfa-format.js +1 -1
- package/dist/src/appliance/rvfa-runner.js +8 -8
- package/dist/src/commands/agent.js +15 -15
- package/dist/src/commands/analyze.js +52 -52
- package/dist/src/commands/appliance-advanced.js +1 -1
- package/dist/src/commands/appliance.js +16 -16
- package/dist/src/commands/benchmark.js +14 -14
- package/dist/src/commands/categories.js +1 -1
- package/dist/src/commands/claims.js +16 -16
- package/dist/src/commands/completions.js +37 -37
- package/dist/src/commands/config.js +9 -9
- package/dist/src/commands/daemon.js +21 -21
- package/dist/src/commands/deployment.js +15 -15
- package/dist/src/commands/doctor.js +26 -26
- package/dist/src/commands/embeddings.js +48 -48
- package/dist/src/commands/guidance.js +22 -22
- package/dist/src/commands/hive-mind.js +21 -21
- package/dist/src/commands/hooks.js +105 -105
- package/dist/src/commands/init.js +32 -32
- package/dist/src/commands/issues.js +6 -6
- package/dist/src/commands/mcp.js +13 -13
- package/dist/src/commands/memory.js +35 -35
- package/dist/src/commands/migrate.js +6 -6
- package/dist/src/commands/neural.js +31 -31
- package/dist/src/commands/performance.js +13 -13
- package/dist/src/commands/plugins.js +26 -26
- package/dist/src/commands/process.js +32 -32
- package/dist/src/commands/progress.js +5 -5
- package/dist/src/commands/providers.js +13 -13
- package/dist/src/commands/route.js +26 -26
- package/dist/src/commands/ruvector/backup.js +9 -9
- package/dist/src/commands/ruvector/benchmark.js +4 -4
- package/dist/src/commands/ruvector/import.d.ts +3 -3
- package/dist/src/commands/ruvector/import.js +11 -11
- package/dist/src/commands/ruvector/index.js +9 -9
- package/dist/src/commands/ruvector/init.js +7 -7
- package/dist/src/commands/ruvector/migrate.js +5 -5
- package/dist/src/commands/ruvector/optimize.js +7 -7
- package/dist/src/commands/ruvector/setup.d.ts +3 -3
- package/dist/src/commands/ruvector/setup.js +9 -9
- package/dist/src/commands/ruvector/status.js +4 -4
- package/dist/src/commands/security.js +19 -19
- package/dist/src/commands/session.js +13 -13
- package/dist/src/commands/start.js +13 -13
- package/dist/src/commands/status.js +9 -9
- package/dist/src/commands/swarm.js +7 -7
- package/dist/src/commands/task.js +9 -9
- package/dist/src/commands/transfer-store.js +16 -16
- package/dist/src/commands/update.js +2 -2
- package/dist/src/commands/workflow.js +13 -13
- package/dist/src/config-adapter.js +3 -3
- package/dist/src/index.js +1 -1
- package/dist/src/init/claudemd-generator.js +1 -1
- package/dist/src/init/executor.js +6 -6
- package/dist/src/init/helpers-generator.js +4 -4
- package/dist/src/init/mcp-generator.js +6 -6
- package/dist/src/init/settings-generator.js +4 -4
- package/dist/src/init/statusline-generator.js +12 -12
- package/dist/src/init/types.d.ts +4 -4
- package/dist/src/init/types.js +3 -3
- package/dist/src/mcp-server.js +2 -2
- package/dist/src/mcp-tools/auto-install.js +5 -5
- package/dist/src/mcp-tools/hooks-tools.js +1 -1
- package/dist/src/mcp-tools/neural-tools.js +6 -6
- package/dist/src/mcp-tools/security-tools.js +2 -2
- package/dist/src/memory/memory-bridge.d.ts +4 -4
- package/dist/src/memory/memory-bridge.js +15 -15
- package/dist/src/memory/memory-initializer.js +10 -10
- package/dist/src/plugins/manager.js +8 -8
- package/dist/src/plugins/tests/demo-plugin-store.js +6 -6
- package/dist/src/ruvector/enhanced-model-router.js +3 -3
- package/dist/src/services/agentic-flow-bridge.d.ts +11 -11
- package/dist/src/services/agentic-flow-bridge.js +11 -11
- package/dist/src/services/container-worker-pool.js +2 -2
- package/dist/src/services/worker-queue.js +1 -1
- package/dist/src/suggest.js +1 -1
- package/dist/src/transfer/models/seraphine.js +1 -1
- package/dist/src/transfer/serialization/cfp.js +1 -1
- package/dist/src/transfer/store/discovery.js +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/update/validator.js +1 -1
- package/package.json +1 -1
|
@@ -16,8 +16,8 @@ const benchmarkCommand = {
|
|
|
16
16
|
{ name: 'output', short: 'o', type: 'string', description: 'Output format: text, json, csv', default: 'text' },
|
|
17
17
|
],
|
|
18
18
|
examples: [
|
|
19
|
-
{ command: '
|
|
20
|
-
{ command: '
|
|
19
|
+
{ command: 'claude-flow performance benchmark -s neural', description: 'Benchmark neural operations' },
|
|
20
|
+
{ command: 'claude-flow performance benchmark -i 1000', description: 'Run with 1000 iterations' },
|
|
21
21
|
],
|
|
22
22
|
action: async (ctx) => {
|
|
23
23
|
const suite = ctx.flags.suite || 'all';
|
|
@@ -217,8 +217,8 @@ const profileCommand = {
|
|
|
217
217
|
{ name: 'output', short: 'o', type: 'string', description: 'Output file for profile data' },
|
|
218
218
|
],
|
|
219
219
|
examples: [
|
|
220
|
-
{ command: '
|
|
221
|
-
{ command: '
|
|
220
|
+
{ command: 'claude-flow performance profile -t cpu', description: 'Profile CPU usage' },
|
|
221
|
+
{ command: 'claude-flow performance profile -d 60', description: 'Profile for 60 seconds' },
|
|
222
222
|
],
|
|
223
223
|
action: async (ctx) => {
|
|
224
224
|
const type = ctx.flags.type || 'all';
|
|
@@ -286,8 +286,8 @@ const metricsCommand = {
|
|
|
286
286
|
{ name: 'component', short: 'c', type: 'string', description: 'Component to filter' },
|
|
287
287
|
],
|
|
288
288
|
examples: [
|
|
289
|
-
{ command: '
|
|
290
|
-
{ command: '
|
|
289
|
+
{ command: 'claude-flow performance metrics -t 7d', description: 'Show 7-day metrics' },
|
|
290
|
+
{ command: 'claude-flow performance metrics -f prometheus', description: 'Export as Prometheus format' },
|
|
291
291
|
],
|
|
292
292
|
action: async (ctx) => {
|
|
293
293
|
const timeframe = ctx.flags.timeframe || '24h';
|
|
@@ -469,8 +469,8 @@ const optimizeCommand = {
|
|
|
469
469
|
{ name: 'dry-run', short: 'd', type: 'boolean', description: 'Show changes without applying' },
|
|
470
470
|
],
|
|
471
471
|
examples: [
|
|
472
|
-
{ command: '
|
|
473
|
-
{ command: '
|
|
472
|
+
{ command: 'claude-flow performance optimize -t memory', description: 'Optimize memory usage' },
|
|
473
|
+
{ command: 'claude-flow performance optimize --apply', description: 'Apply all optimizations' },
|
|
474
474
|
],
|
|
475
475
|
action: async (ctx) => {
|
|
476
476
|
const target = ctx.flags.target || 'all';
|
|
@@ -511,8 +511,8 @@ const bottleneckCommand = {
|
|
|
511
511
|
{ name: 'depth', short: 'd', type: 'string', description: 'Analysis depth: quick, full', default: 'quick' },
|
|
512
512
|
],
|
|
513
513
|
examples: [
|
|
514
|
-
{ command: '
|
|
515
|
-
{ command: '
|
|
514
|
+
{ command: 'claude-flow performance bottleneck', description: 'Find bottlenecks' },
|
|
515
|
+
{ command: 'claude-flow performance bottleneck -d full', description: 'Full analysis' },
|
|
516
516
|
],
|
|
517
517
|
action: async (ctx) => {
|
|
518
518
|
output.writeln();
|
|
@@ -546,9 +546,9 @@ export const performanceCommand = {
|
|
|
546
546
|
aliases: ['perf'],
|
|
547
547
|
subcommands: [benchmarkCommand, profileCommand, metricsCommand, optimizeCommand, bottleneckCommand],
|
|
548
548
|
examples: [
|
|
549
|
-
{ command: '
|
|
550
|
-
{ command: '
|
|
551
|
-
{ command: '
|
|
549
|
+
{ command: 'claude-flow performance benchmark', description: 'Run benchmarks' },
|
|
550
|
+
{ command: 'claude-flow performance profile', description: 'Profile application' },
|
|
551
|
+
{ command: 'claude-flow perf metrics', description: 'View metrics (alias)' },
|
|
552
552
|
],
|
|
553
553
|
action: async () => {
|
|
554
554
|
output.writeln();
|
|
@@ -23,10 +23,10 @@ const listCommand = {
|
|
|
23
23
|
{ name: 'registry', short: 'r', type: 'string', description: 'Registry to use (default: claude-flow-official)' },
|
|
24
24
|
],
|
|
25
25
|
examples: [
|
|
26
|
-
{ command: '
|
|
27
|
-
{ command: '
|
|
28
|
-
{ command: '
|
|
29
|
-
{ command: '
|
|
26
|
+
{ command: 'claude-flow plugins list', description: 'List all plugins from registry' },
|
|
27
|
+
{ command: 'claude-flow plugins list --installed', description: 'List installed only' },
|
|
28
|
+
{ command: 'claude-flow plugins list --official', description: 'List official plugins' },
|
|
29
|
+
{ command: 'claude-flow plugins list --category security', description: 'List security plugins' },
|
|
30
30
|
],
|
|
31
31
|
action: async (ctx) => {
|
|
32
32
|
const installedOnly = ctx.flags.installed;
|
|
@@ -47,8 +47,8 @@ const listCommand = {
|
|
|
47
47
|
if (installed.length === 0) {
|
|
48
48
|
output.writeln(output.dim('No plugins installed.'));
|
|
49
49
|
output.writeln();
|
|
50
|
-
output.writeln(output.dim('Run "
|
|
51
|
-
output.writeln(output.dim('Run "
|
|
50
|
+
output.writeln(output.dim('Run "claude-flow plugins list" to see available plugins'));
|
|
51
|
+
output.writeln(output.dim('Run "claude-flow plugins install -n <plugin>" to install'));
|
|
52
52
|
return { success: true };
|
|
53
53
|
}
|
|
54
54
|
output.printTable({
|
|
@@ -183,8 +183,8 @@ const installCommand = {
|
|
|
183
183
|
{ name: 'registry', short: 'r', type: 'string', description: 'Registry to use' },
|
|
184
184
|
],
|
|
185
185
|
examples: [
|
|
186
|
-
{ command: '
|
|
187
|
-
{ command: '
|
|
186
|
+
{ command: 'claude-flow plugins install -n community-analytics', description: 'Install plugin from IPFS' },
|
|
187
|
+
{ command: 'claude-flow plugins install -n ./my-plugin --dev', description: 'Install local plugin' },
|
|
188
188
|
],
|
|
189
189
|
action: async (ctx) => {
|
|
190
190
|
const name = ctx.flags.name;
|
|
@@ -213,7 +213,7 @@ const installCommand = {
|
|
|
213
213
|
if (existingPlugin) {
|
|
214
214
|
spinner.fail(`Plugin ${name} is already installed (v${existingPlugin.version})`);
|
|
215
215
|
output.writeln();
|
|
216
|
-
output.writeln(output.dim('Use "
|
|
216
|
+
output.writeln(output.dim('Use "claude-flow plugins upgrade -n ' + name + '" to update'));
|
|
217
217
|
return { success: false, exitCode: 1 };
|
|
218
218
|
}
|
|
219
219
|
let result;
|
|
@@ -277,7 +277,7 @@ const uninstallCommand = {
|
|
|
277
277
|
{ name: 'force', short: 'f', type: 'boolean', description: 'Force uninstall without confirmation' },
|
|
278
278
|
],
|
|
279
279
|
examples: [
|
|
280
|
-
{ command: '
|
|
280
|
+
{ command: 'claude-flow plugins uninstall -n community-analytics', description: 'Uninstall plugin' },
|
|
281
281
|
],
|
|
282
282
|
action: async (ctx) => {
|
|
283
283
|
const name = ctx.flags.name;
|
|
@@ -325,8 +325,8 @@ const toggleCommand = {
|
|
|
325
325
|
{ name: 'disable', short: 'd', type: 'boolean', description: 'Disable the plugin' },
|
|
326
326
|
],
|
|
327
327
|
examples: [
|
|
328
|
-
{ command: '
|
|
329
|
-
{ command: '
|
|
328
|
+
{ command: 'claude-flow plugins toggle -n analytics --enable', description: 'Enable plugin' },
|
|
329
|
+
{ command: 'claude-flow plugins toggle -n analytics --disable', description: 'Disable plugin' },
|
|
330
330
|
],
|
|
331
331
|
action: async (ctx) => {
|
|
332
332
|
const name = ctx.flags.name;
|
|
@@ -388,7 +388,7 @@ const infoCommand = {
|
|
|
388
388
|
{ name: 'registry', short: 'r', type: 'string', description: 'Registry to use' },
|
|
389
389
|
],
|
|
390
390
|
examples: [
|
|
391
|
-
{ command: '
|
|
391
|
+
{ command: 'claude-flow plugins info -n @sparkleideas/neural', description: 'Show plugin info' },
|
|
392
392
|
],
|
|
393
393
|
action: async (ctx) => {
|
|
394
394
|
const name = ctx.flags.name;
|
|
@@ -536,8 +536,8 @@ const createCommand = {
|
|
|
536
536
|
{ name: 'path', short: 'p', type: 'string', description: 'Output path', default: '.' },
|
|
537
537
|
],
|
|
538
538
|
examples: [
|
|
539
|
-
{ command: '
|
|
540
|
-
{ command: '
|
|
539
|
+
{ command: 'claude-flow plugins create -n my-plugin', description: 'Create basic plugin' },
|
|
540
|
+
{ command: 'claude-flow plugins create -n my-plugin -t hooks', description: 'Create hooks plugin' },
|
|
541
541
|
],
|
|
542
542
|
action: async (ctx) => {
|
|
543
543
|
const name = ctx.flags.name;
|
|
@@ -587,8 +587,8 @@ const upgradeCommand = {
|
|
|
587
587
|
{ name: 'version', short: 'v', type: 'string', description: 'Target version (default: latest)' },
|
|
588
588
|
],
|
|
589
589
|
examples: [
|
|
590
|
-
{ command: '
|
|
591
|
-
{ command: '
|
|
590
|
+
{ command: 'claude-flow plugins upgrade -n @sparkleideas/neural', description: 'Upgrade to latest' },
|
|
591
|
+
{ command: 'claude-flow plugins upgrade -n @sparkleideas/neural -v 3.1.0', description: 'Upgrade to specific version' },
|
|
592
592
|
],
|
|
593
593
|
action: async (ctx) => {
|
|
594
594
|
const name = ctx.flags.name;
|
|
@@ -640,8 +640,8 @@ const searchCommand = {
|
|
|
640
640
|
{ name: 'registry', short: 'r', type: 'string', description: 'Registry to use' },
|
|
641
641
|
],
|
|
642
642
|
examples: [
|
|
643
|
-
{ command: '
|
|
644
|
-
{ command: '
|
|
643
|
+
{ command: 'claude-flow plugins search -q neural', description: 'Search for neural plugins' },
|
|
644
|
+
{ command: 'claude-flow plugins search -q security --verified', description: 'Search verified security plugins' },
|
|
645
645
|
],
|
|
646
646
|
action: async (ctx) => {
|
|
647
647
|
const query = ctx.flags.query;
|
|
@@ -729,8 +729,8 @@ const rateCommand = {
|
|
|
729
729
|
{ name: 'rating', short: 'r', type: 'number', description: 'Rating (1-5)', required: true },
|
|
730
730
|
],
|
|
731
731
|
examples: [
|
|
732
|
-
{ command: '
|
|
733
|
-
{ command: '
|
|
732
|
+
{ command: 'claude-flow plugins rate -n @sparkleideas/embeddings -r 5', description: 'Rate 5 stars' },
|
|
733
|
+
{ command: 'claude-flow plugins rate -n my-plugin -r 4', description: 'Rate 4 stars' },
|
|
734
734
|
],
|
|
735
735
|
action: async (ctx) => {
|
|
736
736
|
const { rateItem } = await import('../services/registry-api.js');
|
|
@@ -770,10 +770,10 @@ export const pluginsCommand = {
|
|
|
770
770
|
description: 'Plugin management with IPFS-based decentralized registry',
|
|
771
771
|
subcommands: [listCommand, searchCommand, installCommand, uninstallCommand, upgradeCommand, toggleCommand, infoCommand, createCommand, rateCommand],
|
|
772
772
|
examples: [
|
|
773
|
-
{ command: '
|
|
774
|
-
{ command: '
|
|
775
|
-
{ command: '
|
|
776
|
-
{ command: '
|
|
773
|
+
{ command: 'claude-flow plugins list', description: 'List plugins from IPFS registry' },
|
|
774
|
+
{ command: 'claude-flow plugins search -q neural', description: 'Search for plugins' },
|
|
775
|
+
{ command: 'claude-flow plugins install -n community-analytics', description: 'Install from IPFS' },
|
|
776
|
+
{ command: 'claude-flow plugins create -n my-plugin', description: 'Create new plugin' },
|
|
777
777
|
],
|
|
778
778
|
action: async () => {
|
|
779
779
|
output.writeln();
|
|
@@ -811,7 +811,7 @@ export const pluginsCommand = {
|
|
|
811
811
|
'@sparkleideas/plugin-gastown-bridge - Gas Town orchestrator integration (WASM-accelerated)',
|
|
812
812
|
]);
|
|
813
813
|
output.writeln();
|
|
814
|
-
output.writeln(output.dim('Run "
|
|
814
|
+
output.writeln(output.dim('Run "claude-flow plugins list --official" to see all official plugins'));
|
|
815
815
|
output.writeln(output.dim('Created with ❤️ by ruv.io'));
|
|
816
816
|
return { success: true };
|
|
817
817
|
},
|
|
@@ -78,10 +78,10 @@ const daemonCommand = {
|
|
|
78
78
|
},
|
|
79
79
|
],
|
|
80
80
|
examples: [
|
|
81
|
-
{ command: '
|
|
82
|
-
{ command: '
|
|
83
|
-
{ command: '
|
|
84
|
-
{ command: '
|
|
81
|
+
{ command: 'claude-flow process daemon --action start', description: 'Start the daemon' },
|
|
82
|
+
{ command: 'claude-flow process daemon --action stop', description: 'Stop the daemon' },
|
|
83
|
+
{ command: 'claude-flow process daemon --action restart --port 3850', description: 'Restart on different port' },
|
|
84
|
+
{ command: 'claude-flow process daemon --action status', description: 'Check daemon status' },
|
|
85
85
|
],
|
|
86
86
|
action: async (ctx) => {
|
|
87
87
|
const action = ctx.flags?.action || 'status';
|
|
@@ -107,7 +107,7 @@ const daemonCommand = {
|
|
|
107
107
|
console.log(` ⏱️ Started: ${existingDaemon.startedAt}`);
|
|
108
108
|
break;
|
|
109
109
|
}
|
|
110
|
-
console.log('\n🚀 Starting
|
|
110
|
+
console.log('\n🚀 Starting claude-flow daemon...\n');
|
|
111
111
|
const newPid = process.pid; // Use actual process PID
|
|
112
112
|
daemonState.status = 'running';
|
|
113
113
|
daemonState.pid = newPid;
|
|
@@ -133,7 +133,7 @@ const daemonCommand = {
|
|
|
133
133
|
console.log('\n⚠️ No daemon running\n');
|
|
134
134
|
break;
|
|
135
135
|
}
|
|
136
|
-
console.log('\n🛑 Stopping
|
|
136
|
+
console.log('\n🛑 Stopping claude-flow daemon...\n');
|
|
137
137
|
console.log(` 📍 Stopping PID ${existingDaemon.pid}...`);
|
|
138
138
|
// Remove PID file
|
|
139
139
|
removePidFile(pidFile);
|
|
@@ -144,7 +144,7 @@ const daemonCommand = {
|
|
|
144
144
|
console.log(' 🧹 Resources cleaned up');
|
|
145
145
|
break;
|
|
146
146
|
case 'restart':
|
|
147
|
-
console.log('\n🔄 Restarting
|
|
147
|
+
console.log('\n🔄 Restarting claude-flow daemon...\n');
|
|
148
148
|
if (existingDaemon) {
|
|
149
149
|
console.log(` 🛑 Stopping PID ${existingDaemon.pid}...`);
|
|
150
150
|
removePidFile(pidFile);
|
|
@@ -162,7 +162,7 @@ const daemonCommand = {
|
|
|
162
162
|
case 'status':
|
|
163
163
|
console.log('\n📊 Daemon Status\n');
|
|
164
164
|
console.log(' ┌─────────────────────────────────────────┐');
|
|
165
|
-
console.log(' │
|
|
165
|
+
console.log(' │ claude-flow daemon │');
|
|
166
166
|
console.log(' ├─────────────────────────────────────────┤');
|
|
167
167
|
if (existingDaemon) {
|
|
168
168
|
const uptime = Math.floor((Date.now() - new Date(existingDaemon.startedAt).getTime()) / 1000);
|
|
@@ -180,7 +180,7 @@ const daemonCommand = {
|
|
|
180
180
|
}
|
|
181
181
|
console.log(' └─────────────────────────────────────────┘');
|
|
182
182
|
if (!existingDaemon) {
|
|
183
|
-
console.log('\n To start:
|
|
183
|
+
console.log('\n To start: claude-flow process daemon --action start');
|
|
184
184
|
}
|
|
185
185
|
break;
|
|
186
186
|
}
|
|
@@ -227,10 +227,10 @@ const monitorCommand = {
|
|
|
227
227
|
},
|
|
228
228
|
],
|
|
229
229
|
examples: [
|
|
230
|
-
{ command: '
|
|
231
|
-
{ command: '
|
|
232
|
-
{ command: '
|
|
233
|
-
{ command: '
|
|
230
|
+
{ command: 'claude-flow process monitor', description: 'Show process dashboard' },
|
|
231
|
+
{ command: 'claude-flow process monitor --watch --interval 5', description: 'Watch mode' },
|
|
232
|
+
{ command: 'claude-flow process monitor --components agents,memory,tasks', description: 'Monitor specific components' },
|
|
233
|
+
{ command: 'claude-flow process monitor --format json', description: 'JSON output' },
|
|
234
234
|
],
|
|
235
235
|
action: async (ctx) => {
|
|
236
236
|
const interval = ctx.flags?.interval || 2;
|
|
@@ -369,10 +369,10 @@ const workersCommand = {
|
|
|
369
369
|
},
|
|
370
370
|
],
|
|
371
371
|
examples: [
|
|
372
|
-
{ command: '
|
|
373
|
-
{ command: '
|
|
374
|
-
{ command: '
|
|
375
|
-
{ command: '
|
|
372
|
+
{ command: 'claude-flow process workers --action list', description: 'List all workers' },
|
|
373
|
+
{ command: 'claude-flow process workers --action spawn --type task --count 3', description: 'Spawn task workers' },
|
|
374
|
+
{ command: 'claude-flow process workers --action kill --id worker-123', description: 'Kill specific worker' },
|
|
375
|
+
{ command: 'claude-flow process workers --action scale --type memory --count 5', description: 'Scale memory workers' },
|
|
376
376
|
],
|
|
377
377
|
action: async (ctx) => {
|
|
378
378
|
const action = ctx.flags?.action || 'list';
|
|
@@ -470,9 +470,9 @@ const signalsCommand = {
|
|
|
470
470
|
},
|
|
471
471
|
],
|
|
472
472
|
examples: [
|
|
473
|
-
{ command: '
|
|
474
|
-
{ command: '
|
|
475
|
-
{ command: '
|
|
473
|
+
{ command: 'claude-flow process signals --target daemon --signal graceful-shutdown', description: 'Graceful shutdown' },
|
|
474
|
+
{ command: 'claude-flow process signals --target workers --signal pause', description: 'Pause workers' },
|
|
475
|
+
{ command: 'claude-flow process signals --target all --signal reload-config', description: 'Reload all configs' },
|
|
476
476
|
],
|
|
477
477
|
action: async (ctx) => {
|
|
478
478
|
const target = ctx.flags?.target;
|
|
@@ -543,10 +543,10 @@ const logsCommand = {
|
|
|
543
543
|
},
|
|
544
544
|
],
|
|
545
545
|
examples: [
|
|
546
|
-
{ command: '
|
|
547
|
-
{ command: '
|
|
548
|
-
{ command: '
|
|
549
|
-
{ command: '
|
|
546
|
+
{ command: 'claude-flow process logs', description: 'Show recent logs' },
|
|
547
|
+
{ command: 'claude-flow process logs --source daemon --tail 100', description: 'Daemon logs' },
|
|
548
|
+
{ command: 'claude-flow process logs --follow --level error', description: 'Follow error logs' },
|
|
549
|
+
{ command: 'claude-flow process logs --since 1h --grep "error"', description: 'Search logs' },
|
|
550
550
|
],
|
|
551
551
|
action: async (ctx) => {
|
|
552
552
|
const source = ctx.flags?.source || 'all';
|
|
@@ -615,10 +615,10 @@ export const processCommand = {
|
|
|
615
615
|
},
|
|
616
616
|
],
|
|
617
617
|
examples: [
|
|
618
|
-
{ command: '
|
|
619
|
-
{ command: '
|
|
620
|
-
{ command: '
|
|
621
|
-
{ command: '
|
|
618
|
+
{ command: 'claude-flow process daemon --action start', description: 'Start daemon' },
|
|
619
|
+
{ command: 'claude-flow process monitor --watch', description: 'Watch processes' },
|
|
620
|
+
{ command: 'claude-flow process workers --action list', description: 'List workers' },
|
|
621
|
+
{ command: 'claude-flow process logs --follow', description: 'Follow logs' },
|
|
622
622
|
],
|
|
623
623
|
action: async (_ctx) => {
|
|
624
624
|
// Show help if no subcommand
|
|
@@ -631,10 +631,10 @@ export const processCommand = {
|
|
|
631
631
|
console.log(' signals - Send signals to processes');
|
|
632
632
|
console.log(' logs - View and manage process logs');
|
|
633
633
|
console.log('\nExamples:');
|
|
634
|
-
console.log('
|
|
635
|
-
console.log('
|
|
636
|
-
console.log('
|
|
637
|
-
console.log('
|
|
634
|
+
console.log(' claude-flow process daemon --action start');
|
|
635
|
+
console.log(' claude-flow process monitor --watch');
|
|
636
|
+
console.log(' claude-flow process workers --action spawn --type task --count 3');
|
|
637
|
+
console.log(' claude-flow process logs --follow --level error');
|
|
638
638
|
return { success: true, data: { help: true } };
|
|
639
639
|
},
|
|
640
640
|
};
|
|
@@ -222,23 +222,23 @@ export const progressCommand = {
|
|
|
222
222
|
],
|
|
223
223
|
examples: [
|
|
224
224
|
{
|
|
225
|
-
command: '
|
|
225
|
+
command: 'claude-flow progress',
|
|
226
226
|
description: 'Check current progress',
|
|
227
227
|
},
|
|
228
228
|
{
|
|
229
|
-
command: '
|
|
229
|
+
command: 'claude-flow progress --detailed',
|
|
230
230
|
description: 'Show detailed breakdown',
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
|
-
command: '
|
|
233
|
+
command: 'claude-flow progress sync',
|
|
234
234
|
description: 'Sync and persist progress',
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
|
-
command: '
|
|
237
|
+
command: 'claude-flow progress watch',
|
|
238
238
|
description: 'Watch for changes',
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
|
-
command: '
|
|
241
|
+
command: 'claude-flow progress --json',
|
|
242
242
|
description: 'Output as JSON',
|
|
243
243
|
},
|
|
244
244
|
],
|
|
@@ -14,8 +14,8 @@ const listCommand = {
|
|
|
14
14
|
{ name: 'active', short: 'a', type: 'boolean', description: 'Show only active providers' },
|
|
15
15
|
],
|
|
16
16
|
examples: [
|
|
17
|
-
{ command: '
|
|
18
|
-
{ command: '
|
|
17
|
+
{ command: 'claude-flow providers list', description: 'List all providers' },
|
|
18
|
+
{ command: 'claude-flow providers list -t embedding', description: 'List embedding providers' },
|
|
19
19
|
],
|
|
20
20
|
action: async (ctx) => {
|
|
21
21
|
const type = ctx.flags.type || 'all';
|
|
@@ -52,8 +52,8 @@ const configureCommand = {
|
|
|
52
52
|
{ name: 'endpoint', short: 'e', type: 'string', description: 'Custom endpoint URL' },
|
|
53
53
|
],
|
|
54
54
|
examples: [
|
|
55
|
-
{ command: '
|
|
56
|
-
{ command: '
|
|
55
|
+
{ command: 'claude-flow providers configure -p openai -k sk-...', description: 'Set OpenAI key' },
|
|
56
|
+
{ command: 'claude-flow providers configure -p anthropic -m claude-3.5-sonnet', description: 'Set default model' },
|
|
57
57
|
],
|
|
58
58
|
action: async (ctx) => {
|
|
59
59
|
const provider = ctx.flags.provider;
|
|
@@ -89,8 +89,8 @@ const testCommand = {
|
|
|
89
89
|
{ name: 'all', short: 'a', type: 'boolean', description: 'Test all configured providers' },
|
|
90
90
|
],
|
|
91
91
|
examples: [
|
|
92
|
-
{ command: '
|
|
93
|
-
{ command: '
|
|
92
|
+
{ command: 'claude-flow providers test -p openai', description: 'Test OpenAI connection' },
|
|
93
|
+
{ command: 'claude-flow providers test --all', description: 'Test all providers' },
|
|
94
94
|
],
|
|
95
95
|
action: async (ctx) => {
|
|
96
96
|
const provider = ctx.flags.provider;
|
|
@@ -121,8 +121,8 @@ const modelsCommand = {
|
|
|
121
121
|
{ name: 'capability', short: 'c', type: 'string', description: 'Filter by capability: chat, completion, embedding' },
|
|
122
122
|
],
|
|
123
123
|
examples: [
|
|
124
|
-
{ command: '
|
|
125
|
-
{ command: '
|
|
124
|
+
{ command: 'claude-flow providers models', description: 'List all models' },
|
|
125
|
+
{ command: 'claude-flow providers models -p anthropic', description: 'List Anthropic models' },
|
|
126
126
|
],
|
|
127
127
|
action: async (ctx) => {
|
|
128
128
|
output.writeln();
|
|
@@ -158,8 +158,8 @@ const usageCommand = {
|
|
|
158
158
|
{ name: 'timeframe', short: 't', type: 'string', description: 'Timeframe: 24h, 7d, 30d', default: '7d' },
|
|
159
159
|
],
|
|
160
160
|
examples: [
|
|
161
|
-
{ command: '
|
|
162
|
-
{ command: '
|
|
161
|
+
{ command: 'claude-flow providers usage', description: 'View all usage' },
|
|
162
|
+
{ command: 'claude-flow providers usage -t 30d', description: 'View 30-day usage' },
|
|
163
163
|
],
|
|
164
164
|
action: async (ctx) => {
|
|
165
165
|
const timeframe = ctx.flags.timeframe || '7d';
|
|
@@ -198,9 +198,9 @@ export const providersCommand = {
|
|
|
198
198
|
description: 'Manage AI providers, models, and configurations',
|
|
199
199
|
subcommands: [listCommand, configureCommand, testCommand, modelsCommand, usageCommand],
|
|
200
200
|
examples: [
|
|
201
|
-
{ command: '
|
|
202
|
-
{ command: '
|
|
203
|
-
{ command: '
|
|
201
|
+
{ command: 'claude-flow providers list', description: 'List all providers' },
|
|
202
|
+
{ command: 'claude-flow providers configure -p openai', description: 'Configure OpenAI' },
|
|
203
|
+
{ command: 'claude-flow providers test --all', description: 'Test all providers' },
|
|
204
204
|
],
|
|
205
205
|
action: async () => {
|
|
206
206
|
output.writeln();
|
|
@@ -85,9 +85,9 @@ const routeTaskCommand = {
|
|
|
85
85
|
},
|
|
86
86
|
],
|
|
87
87
|
examples: [
|
|
88
|
-
{ command: '
|
|
89
|
-
{ command: '
|
|
90
|
-
{ command: '
|
|
88
|
+
{ command: 'claude-flow route task "implement authentication"', description: 'Route task to best agent' },
|
|
89
|
+
{ command: 'claude-flow route task "write unit tests" --q-learning', description: 'Use Q-Learning routing' },
|
|
90
|
+
{ command: 'claude-flow route task "review code" --agent reviewer', description: 'Force specific agent' },
|
|
91
91
|
],
|
|
92
92
|
action: async (ctx) => {
|
|
93
93
|
const taskDescription = ctx.args[0];
|
|
@@ -96,7 +96,7 @@ const routeTaskCommand = {
|
|
|
96
96
|
const jsonOutput = ctx.flags.json;
|
|
97
97
|
if (!taskDescription) {
|
|
98
98
|
output.printError('Task description is required');
|
|
99
|
-
output.writeln(output.dim('Usage:
|
|
99
|
+
output.writeln(output.dim('Usage: claude-flow route task "task description"'));
|
|
100
100
|
return { success: false, exitCode: 1 };
|
|
101
101
|
}
|
|
102
102
|
const spinner = output.createSpinner({ text: 'Analyzing task...', spinner: 'dots' });
|
|
@@ -219,8 +219,8 @@ const listAgentsCommand = {
|
|
|
219
219
|
},
|
|
220
220
|
],
|
|
221
221
|
examples: [
|
|
222
|
-
{ command: '
|
|
223
|
-
{ command: '
|
|
222
|
+
{ command: 'claude-flow route list-agents', description: 'List all agents' },
|
|
223
|
+
{ command: 'claude-flow route agents --json', description: 'List agents as JSON' },
|
|
224
224
|
],
|
|
225
225
|
action: async (ctx) => {
|
|
226
226
|
const jsonOutput = ctx.flags.json;
|
|
@@ -274,7 +274,7 @@ const statsCommand = {
|
|
|
274
274
|
},
|
|
275
275
|
],
|
|
276
276
|
examples: [
|
|
277
|
-
{ command: '
|
|
277
|
+
{ command: 'claude-flow route stats', description: 'Show routing statistics' },
|
|
278
278
|
],
|
|
279
279
|
action: async (ctx) => {
|
|
280
280
|
const jsonOutput = ctx.flags.json;
|
|
@@ -360,8 +360,8 @@ const feedbackCommand = {
|
|
|
360
360
|
},
|
|
361
361
|
],
|
|
362
362
|
examples: [
|
|
363
|
-
{ command: '
|
|
364
|
-
{ command: '
|
|
363
|
+
{ command: 'claude-flow route feedback -t "implement auth" -a coder -r 0.9', description: 'Positive feedback' },
|
|
364
|
+
{ command: 'claude-flow route feedback -t "write tests" -a tester -r -0.5', description: 'Negative feedback' },
|
|
365
365
|
],
|
|
366
366
|
action: async (ctx) => {
|
|
367
367
|
const taskDescription = ctx.flags.task;
|
|
@@ -417,8 +417,8 @@ const resetCommand = {
|
|
|
417
417
|
},
|
|
418
418
|
],
|
|
419
419
|
examples: [
|
|
420
|
-
{ command: '
|
|
421
|
-
{ command: '
|
|
420
|
+
{ command: 'claude-flow route reset', description: 'Reset router state' },
|
|
421
|
+
{ command: 'claude-flow route reset --force', description: 'Force reset' },
|
|
422
422
|
],
|
|
423
423
|
action: async (ctx) => {
|
|
424
424
|
const force = ctx.flags.force;
|
|
@@ -454,8 +454,8 @@ const exportCommand = {
|
|
|
454
454
|
},
|
|
455
455
|
],
|
|
456
456
|
examples: [
|
|
457
|
-
{ command: '
|
|
458
|
-
{ command: '
|
|
457
|
+
{ command: 'claude-flow route export', description: 'Export Q-table to stdout' },
|
|
458
|
+
{ command: 'claude-flow route export -f qtable.json', description: 'Export to file' },
|
|
459
459
|
],
|
|
460
460
|
action: async (ctx) => {
|
|
461
461
|
const filePath = ctx.flags.file;
|
|
@@ -491,7 +491,7 @@ const importCommand = {
|
|
|
491
491
|
},
|
|
492
492
|
],
|
|
493
493
|
examples: [
|
|
494
|
-
{ command: '
|
|
494
|
+
{ command: 'claude-flow route import -f qtable.json', description: 'Import Q-table from file' },
|
|
495
495
|
],
|
|
496
496
|
action: async (ctx) => {
|
|
497
497
|
const filePath = ctx.flags.file;
|
|
@@ -559,10 +559,10 @@ const coverageRouteCommand = {
|
|
|
559
559
|
},
|
|
560
560
|
],
|
|
561
561
|
examples: [
|
|
562
|
-
{ command: '
|
|
563
|
-
{ command: '
|
|
564
|
-
{ command: '
|
|
565
|
-
{ command: '
|
|
562
|
+
{ command: 'claude-flow route coverage', description: 'Analyze coverage and suggest routing' },
|
|
563
|
+
{ command: 'claude-flow route coverage --suggest', description: 'Get improvement suggestions' },
|
|
564
|
+
{ command: 'claude-flow route coverage --gaps', description: 'List coverage gaps by agent' },
|
|
565
|
+
{ command: 'claude-flow route coverage -p src/auth -t 90', description: 'Analyze specific path with threshold' },
|
|
566
566
|
],
|
|
567
567
|
action: async (ctx) => {
|
|
568
568
|
const path = ctx.flags.path || '';
|
|
@@ -756,11 +756,11 @@ export const routeCommand = {
|
|
|
756
756
|
},
|
|
757
757
|
],
|
|
758
758
|
examples: [
|
|
759
|
-
{ command: '
|
|
760
|
-
{ command: '
|
|
761
|
-
{ command: '
|
|
762
|
-
{ command: '
|
|
763
|
-
{ command: '
|
|
759
|
+
{ command: 'claude-flow route "implement feature"', description: 'Route task to best agent' },
|
|
760
|
+
{ command: 'claude-flow route "write tests" --q-learning', description: 'Use Q-Learning routing' },
|
|
761
|
+
{ command: 'claude-flow route --agent coder "fix bug"', description: 'Force specific agent' },
|
|
762
|
+
{ command: 'claude-flow route list-agents', description: 'List available agents' },
|
|
763
|
+
{ command: 'claude-flow route stats', description: 'Show routing statistics' },
|
|
764
764
|
],
|
|
765
765
|
action: async (ctx) => {
|
|
766
766
|
// If task description provided directly, route it
|
|
@@ -775,8 +775,8 @@ export const routeCommand = {
|
|
|
775
775
|
output.writeln(output.bold('Q-Learning Agent Router'));
|
|
776
776
|
output.writeln(output.dim('Intelligent task-to-agent routing using reinforcement learning'));
|
|
777
777
|
output.writeln();
|
|
778
|
-
output.writeln('Usage:
|
|
779
|
-
output.writeln('
|
|
778
|
+
output.writeln('Usage: claude-flow route <task> [options]');
|
|
779
|
+
output.writeln(' claude-flow route <subcommand>');
|
|
780
780
|
output.writeln();
|
|
781
781
|
output.writeln(output.bold('Subcommands:'));
|
|
782
782
|
output.printList([
|
|
@@ -805,7 +805,7 @@ export const routeCommand = {
|
|
|
805
805
|
`Backend: ${ruvectorAvailable ? 'ruvector-native' : 'JavaScript fallback'}`,
|
|
806
806
|
]);
|
|
807
807
|
output.writeln();
|
|
808
|
-
output.writeln(output.dim('Run "
|
|
808
|
+
output.writeln(output.dim('Run "claude-flow route <subcommand> --help" for more info'));
|
|
809
809
|
return { success: true };
|
|
810
810
|
},
|
|
811
811
|
};
|
|
@@ -116,9 +116,9 @@ const backupSubcommand = {
|
|
|
116
116
|
},
|
|
117
117
|
],
|
|
118
118
|
examples: [
|
|
119
|
-
{ command: '
|
|
120
|
-
{ command: '
|
|
121
|
-
{ command: '
|
|
119
|
+
{ command: 'claude-flow ruvector backup create -o backup.sql', description: 'Create SQL backup' },
|
|
120
|
+
{ command: 'claude-flow ruvector backup create -o backup.json --format json', description: 'Create JSON backup' },
|
|
121
|
+
{ command: 'claude-flow ruvector backup create -o backup.sql.gz --compress', description: 'Compressed backup' },
|
|
122
122
|
],
|
|
123
123
|
action: async (ctx) => {
|
|
124
124
|
const config = getConnectionConfig(ctx);
|
|
@@ -428,9 +428,9 @@ const restoreSubcommand = {
|
|
|
428
428
|
},
|
|
429
429
|
],
|
|
430
430
|
examples: [
|
|
431
|
-
{ command: '
|
|
432
|
-
{ command: '
|
|
433
|
-
{ command: '
|
|
431
|
+
{ command: 'claude-flow ruvector backup restore -i backup.sql', description: 'Restore from SQL backup' },
|
|
432
|
+
{ command: 'claude-flow ruvector backup restore -i backup.json --clean', description: 'Clean restore' },
|
|
433
|
+
{ command: 'claude-flow ruvector backup restore -i backup.sql --dry-run', description: 'Preview restore' },
|
|
434
434
|
],
|
|
435
435
|
action: async (ctx) => {
|
|
436
436
|
const config = getConnectionConfig(ctx);
|
|
@@ -712,8 +712,8 @@ export const backupCommand = {
|
|
|
712
712
|
},
|
|
713
713
|
],
|
|
714
714
|
examples: [
|
|
715
|
-
{ command: '
|
|
716
|
-
{ command: '
|
|
715
|
+
{ command: 'claude-flow ruvector backup create -o backup.sql', description: 'Create backup' },
|
|
716
|
+
{ command: 'claude-flow ruvector backup restore -i backup.sql', description: 'Restore backup' },
|
|
717
717
|
],
|
|
718
718
|
action: async (ctx) => {
|
|
719
719
|
output.writeln();
|
|
@@ -738,7 +738,7 @@ export const backupCommand = {
|
|
|
738
738
|
' - Incremental restore',
|
|
739
739
|
].join('\n'), 'Backup Commands');
|
|
740
740
|
output.writeln();
|
|
741
|
-
output.printInfo('Run
|
|
741
|
+
output.printInfo('Run `claude-flow ruvector backup <command> --help` for details');
|
|
742
742
|
return { success: true };
|
|
743
743
|
},
|
|
744
744
|
};
|