@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
|
@@ -338,10 +338,10 @@ const initAction = async (ctx) => {
|
|
|
338
338
|
// Next steps (only if not auto-starting)
|
|
339
339
|
output.writeln(output.bold('Next steps:'));
|
|
340
340
|
output.printList([
|
|
341
|
-
`Run ${output.highlight('
|
|
342
|
-
`Run ${output.highlight('
|
|
343
|
-
`Run ${output.highlight('
|
|
344
|
-
`Or use ${output.highlight('
|
|
341
|
+
`Run ${output.highlight('claude-flow daemon start')} to start background workers`,
|
|
342
|
+
`Run ${output.highlight('claude-flow memory init')} to initialize memory database`,
|
|
343
|
+
`Run ${output.highlight('claude-flow swarm init')} to initialize a swarm`,
|
|
344
|
+
`Or use ${output.highlight('claude-flow init --start-all')} to do all of the above`,
|
|
345
345
|
options.components.settings ? `Review ${output.highlight('.claude/settings.json')} for hook configurations` : '',
|
|
346
346
|
].filter(Boolean));
|
|
347
347
|
}
|
|
@@ -417,14 +417,14 @@ const wizardCommand = {
|
|
|
417
417
|
message: 'Select skill sets:',
|
|
418
418
|
options: [
|
|
419
419
|
{ value: 'core', label: 'Core', hint: 'Swarm, memory, SPARC skills', selected: true },
|
|
420
|
-
{ value: '
|
|
420
|
+
{ value: 'agentdb', label: 'AgentDB', hint: 'Vector database skills', selected: true },
|
|
421
421
|
{ value: 'github', label: 'GitHub', hint: 'GitHub integration skills', selected: true },
|
|
422
422
|
{ value: 'flowNexus', label: 'Flow Nexus', hint: 'Cloud platform skills', selected: false },
|
|
423
423
|
{ value: 'v3', label: 'V3', hint: 'V3 implementation skills', selected: true },
|
|
424
424
|
],
|
|
425
425
|
});
|
|
426
426
|
options.skills.core = skillSets.includes('core');
|
|
427
|
-
options.skills.agentdb = skillSets.includes('
|
|
427
|
+
options.skills.agentdb = skillSets.includes('agentdb');
|
|
428
428
|
options.skills.github = skillSets.includes('github');
|
|
429
429
|
options.skills.flowNexus = skillSets.includes('flowNexus');
|
|
430
430
|
options.skills.v3 = skillSets.includes('v3');
|
|
@@ -440,7 +440,7 @@ const wizardCommand = {
|
|
|
440
440
|
{ value: 'sessionStart', label: 'SessionStart', hint: 'Session initialization', selected: true },
|
|
441
441
|
{ value: 'stop', label: 'Stop', hint: 'Task completion evaluation', selected: true },
|
|
442
442
|
{ value: 'notification', label: 'Notification', hint: 'Swarm notifications', selected: true },
|
|
443
|
-
{ value: 'permissionRequest', label: 'PermissionRequest', hint: 'Auto-allow
|
|
443
|
+
{ value: 'permissionRequest', label: 'PermissionRequest', hint: 'Auto-allow claude-flow tools', selected: true },
|
|
444
444
|
],
|
|
445
445
|
});
|
|
446
446
|
options.hooks.preToolUse = hooks.includes('preToolUse');
|
|
@@ -477,14 +477,14 @@ const wizardCommand = {
|
|
|
477
477
|
message: 'Select memory backend:',
|
|
478
478
|
options: [
|
|
479
479
|
{ value: 'hybrid', label: 'Hybrid', hint: 'SQLite + AgentDB (recommended)' },
|
|
480
|
-
{ value: '
|
|
480
|
+
{ value: 'agentdb', label: 'AgentDB', hint: '150x faster vector search' },
|
|
481
481
|
{ value: 'sqlite', label: 'SQLite', hint: 'Standard SQL storage' },
|
|
482
482
|
{ value: 'memory', label: 'In-Memory', hint: 'Fast but non-persistent' },
|
|
483
483
|
],
|
|
484
484
|
});
|
|
485
485
|
options.runtime.memoryBackend = memoryBackend;
|
|
486
486
|
// HNSW indexing
|
|
487
|
-
if (memoryBackend === '
|
|
487
|
+
if (memoryBackend === 'agentdb' || memoryBackend === 'hybrid') {
|
|
488
488
|
const enableHNSW = await confirm({
|
|
489
489
|
message: 'Enable HNSW indexing for faster vector search?',
|
|
490
490
|
default: true,
|
|
@@ -498,7 +498,7 @@ const wizardCommand = {
|
|
|
498
498
|
});
|
|
499
499
|
options.runtime.enableNeural = enableNeural;
|
|
500
500
|
// ADR-049: Self-Learning Memory capabilities
|
|
501
|
-
if (memoryBackend === '
|
|
501
|
+
if (memoryBackend === 'agentdb' || memoryBackend === 'hybrid') {
|
|
502
502
|
const enableSelfLearning = await confirm({
|
|
503
503
|
message: 'Enable self-learning memory? (LearningBridge + Knowledge Graph + Agent Scopes)',
|
|
504
504
|
default: true,
|
|
@@ -622,7 +622,7 @@ const checkCommand = {
|
|
|
622
622
|
}
|
|
623
623
|
else {
|
|
624
624
|
output.printWarning('RuFlo is not initialized in this directory');
|
|
625
|
-
output.printInfo('Run "
|
|
625
|
+
output.printInfo('Run "ruflo init" to initialize');
|
|
626
626
|
}
|
|
627
627
|
return { success: true, data: result };
|
|
628
628
|
},
|
|
@@ -634,7 +634,7 @@ const skillsCommand = {
|
|
|
634
634
|
options: [
|
|
635
635
|
{ name: 'all', description: 'Install all skills', type: 'boolean', default: false },
|
|
636
636
|
{ name: 'core', description: 'Install core skills', type: 'boolean', default: true },
|
|
637
|
-
{ name: '
|
|
637
|
+
{ name: 'agentdb', description: 'Install AgentDB skills', type: 'boolean', default: false },
|
|
638
638
|
{ name: 'github', description: 'Install GitHub skills', type: 'boolean', default: false },
|
|
639
639
|
{ name: 'v3', description: 'Install V3 skills', type: 'boolean', default: false },
|
|
640
640
|
],
|
|
@@ -657,7 +657,7 @@ const skillsCommand = {
|
|
|
657
657
|
skills: {
|
|
658
658
|
all: ctx.flags.all,
|
|
659
659
|
core: ctx.flags.core,
|
|
660
|
-
|
|
660
|
+
agentdb: ctx.flags.agentdb,
|
|
661
661
|
github: ctx.flags.github,
|
|
662
662
|
flowNexus: false,
|
|
663
663
|
browser: false,
|
|
@@ -939,25 +939,25 @@ export const initCommand = {
|
|
|
939
939
|
},
|
|
940
940
|
],
|
|
941
941
|
examples: [
|
|
942
|
-
{ command: '
|
|
943
|
-
{ command: '
|
|
944
|
-
{ command: '
|
|
945
|
-
{ command: '
|
|
946
|
-
{ command: '
|
|
947
|
-
{ command: '
|
|
948
|
-
{ command: '
|
|
949
|
-
{ command: '
|
|
950
|
-
{ command: '
|
|
951
|
-
{ command: '
|
|
952
|
-
{ command: '
|
|
953
|
-
{ command: '
|
|
954
|
-
{ command: '
|
|
955
|
-
{ command: '
|
|
956
|
-
{ command: '
|
|
957
|
-
{ command: '
|
|
958
|
-
{ command: '
|
|
959
|
-
{ command: '
|
|
960
|
-
{ command: '
|
|
942
|
+
{ command: 'claude-flow init', description: 'Initialize with default configuration' },
|
|
943
|
+
{ command: 'claude-flow init --start-all', description: 'Initialize and start daemon, memory, swarm' },
|
|
944
|
+
{ command: 'claude-flow init --start-daemon', description: 'Initialize and start daemon only' },
|
|
945
|
+
{ command: 'claude-flow init --minimal', description: 'Initialize with minimal configuration' },
|
|
946
|
+
{ command: 'claude-flow init --full', description: 'Initialize with all components' },
|
|
947
|
+
{ command: 'claude-flow init --force', description: 'Reinitialize and overwrite existing config' },
|
|
948
|
+
{ command: 'claude-flow init --only-claude', description: 'Only create Claude Code integration' },
|
|
949
|
+
{ command: 'claude-flow init --skip-claude', description: 'Only create V3 runtime' },
|
|
950
|
+
{ command: 'claude-flow init wizard', description: 'Interactive setup wizard' },
|
|
951
|
+
{ command: 'claude-flow init --with-embeddings', description: 'Initialize with ONNX embeddings' },
|
|
952
|
+
{ command: 'claude-flow init --with-embeddings --embedding-model all-mpnet-base-v2', description: 'Use larger embedding model' },
|
|
953
|
+
{ command: 'claude-flow init skills --all', description: 'Install all available skills' },
|
|
954
|
+
{ command: 'claude-flow init hooks --minimal', description: 'Create minimal hooks configuration' },
|
|
955
|
+
{ command: 'claude-flow init upgrade', description: 'Update helpers while preserving data' },
|
|
956
|
+
{ command: 'claude-flow init upgrade --settings', description: 'Update helpers and merge new settings (Agent Teams)' },
|
|
957
|
+
{ command: 'claude-flow init upgrade --verbose', description: 'Show detailed upgrade info' },
|
|
958
|
+
{ command: 'claude-flow init --codex', description: 'Initialize for OpenAI Codex (AGENTS.md)' },
|
|
959
|
+
{ command: 'claude-flow init --codex --full', description: 'Codex init with all 137+ skills' },
|
|
960
|
+
{ command: 'claude-flow init --dual', description: 'Initialize for both Claude Code and Codex' },
|
|
961
961
|
],
|
|
962
962
|
action: initAction,
|
|
963
963
|
};
|
|
@@ -498,12 +498,12 @@ export const issuesCommand = {
|
|
|
498
498
|
boardCommand,
|
|
499
499
|
],
|
|
500
500
|
examples: [
|
|
501
|
-
{ command: '
|
|
502
|
-
{ command: '
|
|
503
|
-
{ command: '
|
|
504
|
-
{ command: '
|
|
505
|
-
{ command: '
|
|
506
|
-
{ command: '
|
|
501
|
+
{ command: 'claude-flow issues list', description: 'List all claims' },
|
|
502
|
+
{ command: 'claude-flow issues claim 123 --agent coder:coder-1', description: 'Claim as agent' },
|
|
503
|
+
{ command: 'claude-flow issues handoff 123 --to agent:tester:tester-1', description: 'Handoff to tester' },
|
|
504
|
+
{ command: 'claude-flow issues stealable', description: 'List stealable' },
|
|
505
|
+
{ command: 'claude-flow issues steal 123 --agent coder:coder-2', description: 'Steal issue' },
|
|
506
|
+
{ command: 'claude-flow issues board', description: 'Visual board' },
|
|
507
507
|
],
|
|
508
508
|
action: async () => {
|
|
509
509
|
output.writeln();
|
package/dist/src/commands/mcp.js
CHANGED
|
@@ -82,10 +82,10 @@ const startCommand = {
|
|
|
82
82
|
}
|
|
83
83
|
],
|
|
84
84
|
examples: [
|
|
85
|
-
{ command: '
|
|
86
|
-
{ command: '
|
|
87
|
-
{ command: '
|
|
88
|
-
{ command: '
|
|
85
|
+
{ command: 'claude-flow mcp start', description: 'Start with defaults (stdio)' },
|
|
86
|
+
{ command: 'claude-flow mcp start -p 8080 -t http', description: 'Start HTTP server' },
|
|
87
|
+
{ command: 'claude-flow mcp start -d', description: 'Start as daemon' },
|
|
88
|
+
{ command: 'claude-flow mcp start -f', description: 'Force restart (kill existing)' }
|
|
89
89
|
],
|
|
90
90
|
action: async (ctx) => {
|
|
91
91
|
const port = ctx.flags.port ?? 3000;
|
|
@@ -109,7 +109,7 @@ const startCommand = {
|
|
|
109
109
|
const health = await manager.checkHealth();
|
|
110
110
|
if (health.healthy) {
|
|
111
111
|
output.printWarning(`MCP Server already running (PID: ${existingStatus.pid})`);
|
|
112
|
-
output.writeln(output.dim('Use "
|
|
112
|
+
output.writeln(output.dim('Use "claude-flow mcp stop" to stop the server first, or use --force'));
|
|
113
113
|
return { success: false, exitCode: 1 };
|
|
114
114
|
}
|
|
115
115
|
}
|
|
@@ -278,7 +278,7 @@ const statusCommand = {
|
|
|
278
278
|
]
|
|
279
279
|
});
|
|
280
280
|
output.writeln();
|
|
281
|
-
output.writeln(output.dim('Run "
|
|
281
|
+
output.writeln(output.dim('Run "claude-flow mcp start" to start the server'));
|
|
282
282
|
return { success: true, data: status };
|
|
283
283
|
}
|
|
284
284
|
const displayData = [
|
|
@@ -486,7 +486,7 @@ const execCommand = {
|
|
|
486
486
|
}
|
|
487
487
|
],
|
|
488
488
|
examples: [
|
|
489
|
-
{ command: '
|
|
489
|
+
{ command: 'claude-flow mcp exec -t swarm_init -p \'{"topology":"mesh"}\'', description: 'Execute tool' }
|
|
490
490
|
],
|
|
491
491
|
action: async (ctx) => {
|
|
492
492
|
const tool = ctx.flags.tool || ctx.args[0];
|
|
@@ -684,17 +684,17 @@ export const mcpCommand = {
|
|
|
684
684
|
],
|
|
685
685
|
options: [],
|
|
686
686
|
examples: [
|
|
687
|
-
{ command: '
|
|
688
|
-
{ command: '
|
|
689
|
-
{ command: '
|
|
690
|
-
{ command: '
|
|
691
|
-
{ command: '
|
|
687
|
+
{ command: 'claude-flow mcp start', description: 'Start MCP server' },
|
|
688
|
+
{ command: 'claude-flow mcp start -t http -p 8080', description: 'Start HTTP server on port 8080' },
|
|
689
|
+
{ command: 'claude-flow mcp status', description: 'Show server status' },
|
|
690
|
+
{ command: 'claude-flow mcp tools', description: 'List tools' },
|
|
691
|
+
{ command: 'claude-flow mcp stop', description: 'Stop the server' }
|
|
692
692
|
],
|
|
693
693
|
action: async (ctx) => {
|
|
694
694
|
output.writeln();
|
|
695
695
|
output.writeln(output.bold('MCP Server Management'));
|
|
696
696
|
output.writeln();
|
|
697
|
-
output.writeln('Usage:
|
|
697
|
+
output.writeln('Usage: claude-flow mcp <subcommand> [options]');
|
|
698
698
|
output.writeln();
|
|
699
699
|
output.writeln('Subcommands:');
|
|
700
700
|
output.printList([
|
|
@@ -7,7 +7,7 @@ import { select, confirm, input } from '../prompt.js';
|
|
|
7
7
|
import { callMCPTool, MCPClientError } from '../mcp-client.js';
|
|
8
8
|
// Memory backends
|
|
9
9
|
const BACKENDS = [
|
|
10
|
-
{ value: '
|
|
10
|
+
{ value: 'agentdb', label: 'AgentDB', hint: 'Vector database with HNSW indexing (150x-12,500x faster)' },
|
|
11
11
|
{ value: 'sqlite', label: 'SQLite', hint: 'Lightweight local storage' },
|
|
12
12
|
{ value: 'hybrid', label: 'Hybrid', hint: 'SQLite + AgentDB (recommended)' },
|
|
13
13
|
{ value: 'memory', label: 'In-Memory', hint: 'Fast but non-persistent' }
|
|
@@ -62,9 +62,9 @@ const storeCommand = {
|
|
|
62
62
|
}
|
|
63
63
|
],
|
|
64
64
|
examples: [
|
|
65
|
-
{ command: '
|
|
66
|
-
{ command: '
|
|
67
|
-
{ command: '
|
|
65
|
+
{ command: 'claude-flow memory store -k "api/auth" -v "JWT implementation"', description: 'Store text' },
|
|
66
|
+
{ command: 'claude-flow memory store -k "pattern/singleton" --vector', description: 'Store vector' },
|
|
67
|
+
{ command: 'claude-flow memory store -k "pattern" -v "updated" --upsert', description: 'Update existing' }
|
|
68
68
|
],
|
|
69
69
|
action: async (ctx) => {
|
|
70
70
|
const key = ctx.flags.key;
|
|
@@ -255,9 +255,9 @@ const searchCommand = {
|
|
|
255
255
|
}
|
|
256
256
|
],
|
|
257
257
|
examples: [
|
|
258
|
-
{ command: '
|
|
259
|
-
{ command: '
|
|
260
|
-
{ command: '
|
|
258
|
+
{ command: 'claude-flow memory search -q "authentication patterns"', description: 'Semantic search' },
|
|
259
|
+
{ command: 'claude-flow memory search -q "JWT" -t keyword', description: 'Keyword search' },
|
|
260
|
+
{ command: 'claude-flow memory search -q "test" --build-hnsw', description: 'Build HNSW index and search' }
|
|
261
261
|
],
|
|
262
262
|
action: async (ctx) => {
|
|
263
263
|
const query = ctx.flags.query || ctx.args[0];
|
|
@@ -325,7 +325,7 @@ const searchCommand = {
|
|
|
325
325
|
output.writeln();
|
|
326
326
|
if (results.length === 0) {
|
|
327
327
|
output.printWarning('No results found');
|
|
328
|
-
output.writeln(output.dim('Try:
|
|
328
|
+
output.writeln(output.dim('Try: claude-flow memory store -k "key" --value "data"'));
|
|
329
329
|
return { success: true, data: [] };
|
|
330
330
|
}
|
|
331
331
|
output.printTable({
|
|
@@ -402,7 +402,7 @@ const listCommand = {
|
|
|
402
402
|
output.writeln();
|
|
403
403
|
if (entries.length === 0) {
|
|
404
404
|
output.printWarning('No entries found');
|
|
405
|
-
output.printInfo('Store data:
|
|
405
|
+
output.printInfo('Store data: claude-flow memory store -k "key" --value "data"');
|
|
406
406
|
return { success: true, data: [] };
|
|
407
407
|
}
|
|
408
408
|
output.printTable({
|
|
@@ -471,9 +471,9 @@ const deleteCommand = {
|
|
|
471
471
|
}
|
|
472
472
|
],
|
|
473
473
|
examples: [
|
|
474
|
-
{ command: '
|
|
475
|
-
{ command: '
|
|
476
|
-
{ command: '
|
|
474
|
+
{ command: 'claude-flow memory delete -k "mykey"', description: 'Delete entry with default namespace' },
|
|
475
|
+
{ command: 'claude-flow memory delete -k "lesson" -n "lessons"', description: 'Delete entry from specific namespace' },
|
|
476
|
+
{ command: 'claude-flow memory delete mykey -f', description: 'Delete without confirmation' }
|
|
477
477
|
],
|
|
478
478
|
action: async (ctx) => {
|
|
479
479
|
// Support both --key flag and positional argument
|
|
@@ -704,9 +704,9 @@ const cleanupCommand = {
|
|
|
704
704
|
}
|
|
705
705
|
],
|
|
706
706
|
examples: [
|
|
707
|
-
{ command: '
|
|
708
|
-
{ command: '
|
|
709
|
-
{ command: '
|
|
707
|
+
{ command: 'claude-flow memory cleanup --dry-run', description: 'Preview cleanup' },
|
|
708
|
+
{ command: 'claude-flow memory cleanup --older-than 30d', description: 'Delete entries older than 30 days' },
|
|
709
|
+
{ command: 'claude-flow memory cleanup --expired-only', description: 'Clean expired entries' }
|
|
710
710
|
],
|
|
711
711
|
action: async (ctx) => {
|
|
712
712
|
const dryRun = ctx.flags.dryRun;
|
|
@@ -817,9 +817,9 @@ const compressCommand = {
|
|
|
817
817
|
}
|
|
818
818
|
],
|
|
819
819
|
examples: [
|
|
820
|
-
{ command: '
|
|
821
|
-
{ command: '
|
|
822
|
-
{ command: '
|
|
820
|
+
{ command: 'claude-flow memory compress', description: 'Balanced compression' },
|
|
821
|
+
{ command: 'claude-flow memory compress --quantize --bits 4', description: '4-bit quantization (32x reduction)' },
|
|
822
|
+
{ command: 'claude-flow memory compress -l max -t vectors', description: 'Max compression on vectors' }
|
|
823
823
|
],
|
|
824
824
|
action: async (ctx) => {
|
|
825
825
|
const level = ctx.flags.level || 'balanced';
|
|
@@ -927,8 +927,8 @@ const exportCommand = {
|
|
|
927
927
|
}
|
|
928
928
|
],
|
|
929
929
|
examples: [
|
|
930
|
-
{ command: '
|
|
931
|
-
{ command: '
|
|
930
|
+
{ command: 'claude-flow memory export -o ./backup.json', description: 'Export all to JSON' },
|
|
931
|
+
{ command: 'claude-flow memory export -o ./data.csv -f csv', description: 'Export to CSV' }
|
|
932
932
|
],
|
|
933
933
|
action: async (ctx) => {
|
|
934
934
|
const outputPath = ctx.flags.output;
|
|
@@ -992,8 +992,8 @@ const importCommand = {
|
|
|
992
992
|
}
|
|
993
993
|
],
|
|
994
994
|
examples: [
|
|
995
|
-
{ command: '
|
|
996
|
-
{ command: '
|
|
995
|
+
{ command: 'claude-flow memory import -i ./backup.json', description: 'Import from file' },
|
|
996
|
+
{ command: 'claude-flow memory import -i ./data.json -n archive', description: 'Import to namespace' }
|
|
997
997
|
],
|
|
998
998
|
action: async (ctx) => {
|
|
999
999
|
const inputPath = ctx.flags.input || ctx.args[0];
|
|
@@ -1037,7 +1037,7 @@ const initMemoryCommand = {
|
|
|
1037
1037
|
{
|
|
1038
1038
|
name: 'backend',
|
|
1039
1039
|
short: 'b',
|
|
1040
|
-
description: 'Backend type: hybrid (default), sqlite, or
|
|
1040
|
+
description: 'Backend type: hybrid (default), sqlite, or agentdb',
|
|
1041
1041
|
type: 'string',
|
|
1042
1042
|
default: 'hybrid'
|
|
1043
1043
|
},
|
|
@@ -1074,10 +1074,10 @@ const initMemoryCommand = {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
],
|
|
1076
1076
|
examples: [
|
|
1077
|
-
{ command: '
|
|
1078
|
-
{ command: '
|
|
1079
|
-
{ command: '
|
|
1080
|
-
{ command: '
|
|
1077
|
+
{ command: 'claude-flow memory init', description: 'Initialize hybrid backend with all features' },
|
|
1078
|
+
{ command: 'claude-flow memory init -b agentdb', description: 'Initialize AgentDB backend' },
|
|
1079
|
+
{ command: 'claude-flow memory init -p ./data/memory.db --force', description: 'Reinitialize at custom path' },
|
|
1080
|
+
{ command: 'claude-flow memory init --verbose --verify', description: 'Initialize with full verification' }
|
|
1081
1081
|
],
|
|
1082
1082
|
action: async (ctx) => {
|
|
1083
1083
|
const backend = ctx.flags.backend || 'hybrid';
|
|
@@ -1223,10 +1223,10 @@ const initMemoryCommand = {
|
|
|
1223
1223
|
// Show next steps
|
|
1224
1224
|
output.writeln(output.bold('Next Steps:'));
|
|
1225
1225
|
output.printList([
|
|
1226
|
-
`Store data: ${output.highlight('
|
|
1227
|
-
`Search: ${output.highlight('
|
|
1228
|
-
`Train patterns: ${output.highlight('
|
|
1229
|
-
`View stats: ${output.highlight('
|
|
1226
|
+
`Store data: ${output.highlight('claude-flow memory store -k "key" --value "data"')}`,
|
|
1227
|
+
`Search: ${output.highlight('claude-flow memory search -q "query"')}`,
|
|
1228
|
+
`Train patterns: ${output.highlight('claude-flow neural train -p coordination')}`,
|
|
1229
|
+
`View stats: ${output.highlight('claude-flow memory stats')}`
|
|
1230
1230
|
]);
|
|
1231
1231
|
// Also sync to .claude directory
|
|
1232
1232
|
const fs = await import('fs');
|
|
@@ -1260,15 +1260,15 @@ export const memoryCommand = {
|
|
|
1260
1260
|
subcommands: [initMemoryCommand, storeCommand, retrieveCommand, searchCommand, listCommand, deleteCommand, statsCommand, configureCommand, cleanupCommand, compressCommand, exportCommand, importCommand],
|
|
1261
1261
|
options: [],
|
|
1262
1262
|
examples: [
|
|
1263
|
-
{ command: '
|
|
1264
|
-
{ command: '
|
|
1265
|
-
{ command: '
|
|
1263
|
+
{ command: 'claude-flow memory store -k "key" -v "value"', description: 'Store data' },
|
|
1264
|
+
{ command: 'claude-flow memory search -q "auth patterns"', description: 'Search memory' },
|
|
1265
|
+
{ command: 'claude-flow memory stats', description: 'Show statistics' }
|
|
1266
1266
|
],
|
|
1267
1267
|
action: async (ctx) => {
|
|
1268
1268
|
output.writeln();
|
|
1269
1269
|
output.writeln(output.bold('Memory Management Commands'));
|
|
1270
1270
|
output.writeln();
|
|
1271
|
-
output.writeln('Usage:
|
|
1271
|
+
output.writeln('Usage: claude-flow memory <subcommand> [options]');
|
|
1272
1272
|
output.writeln();
|
|
1273
1273
|
output.writeln('Subcommands:');
|
|
1274
1274
|
output.printList([
|
|
@@ -285,7 +285,7 @@ const breakingCommand = {
|
|
|
285
285
|
{
|
|
286
286
|
category: 'Configuration',
|
|
287
287
|
changes: [
|
|
288
|
-
{ change: 'Config file renamed', from: '
|
|
288
|
+
{ change: 'Config file renamed', from: 'claude-flow.json', to: 'claude-flow.config.json' },
|
|
289
289
|
{ change: 'Swarm config restructured', from: 'swarm.mode', to: 'swarm.topology' },
|
|
290
290
|
{ change: 'Provider config format', from: 'provider: "anthropic"', to: 'providers: [...]' }
|
|
291
291
|
]
|
|
@@ -344,7 +344,7 @@ const breakingCommand = {
|
|
|
344
344
|
});
|
|
345
345
|
output.writeln();
|
|
346
346
|
}
|
|
347
|
-
output.printInfo('Run "
|
|
347
|
+
output.printInfo('Run "claude-flow migrate run" to automatically handle these changes');
|
|
348
348
|
return { success: true, data: changes };
|
|
349
349
|
}
|
|
350
350
|
};
|
|
@@ -355,15 +355,15 @@ export const migrateCommand = {
|
|
|
355
355
|
subcommands: [statusCommand, runCommand, verifyCommand, rollbackCommand, breakingCommand],
|
|
356
356
|
options: [],
|
|
357
357
|
examples: [
|
|
358
|
-
{ command: '
|
|
359
|
-
{ command: '
|
|
360
|
-
{ command: '
|
|
358
|
+
{ command: 'claude-flow migrate status', description: 'Check migration status' },
|
|
359
|
+
{ command: 'claude-flow migrate run --dry-run', description: 'Preview migration' },
|
|
360
|
+
{ command: 'claude-flow migrate run -t all', description: 'Run full migration' }
|
|
361
361
|
],
|
|
362
362
|
action: async (ctx) => {
|
|
363
363
|
output.writeln();
|
|
364
364
|
output.writeln(output.bold('V2 to V3 Migration Tools'));
|
|
365
365
|
output.writeln();
|
|
366
|
-
output.writeln('Usage:
|
|
366
|
+
output.writeln('Usage: claude-flow migrate <subcommand> [options]');
|
|
367
367
|
output.writeln();
|
|
368
368
|
output.writeln('Subcommands:');
|
|
369
369
|
output.printList([
|
|
@@ -25,9 +25,9 @@ const trainCommand = {
|
|
|
25
25
|
{ name: 'curriculum', type: 'boolean', description: 'Enable curriculum learning', default: 'false' },
|
|
26
26
|
],
|
|
27
27
|
examples: [
|
|
28
|
-
{ command: '
|
|
29
|
-
{ command: '
|
|
30
|
-
{ command: '
|
|
28
|
+
{ command: 'claude-flow neural train -p coordination -e 100', description: 'Train coordination patterns' },
|
|
29
|
+
{ command: 'claude-flow neural train -d ./training-data.json --flash', description: 'Train from file with Flash Attention' },
|
|
30
|
+
{ command: 'claude-flow neural train -p security --wasm --contrastive', description: 'Security patterns with contrastive learning' },
|
|
31
31
|
],
|
|
32
32
|
action: async (ctx) => {
|
|
33
33
|
const patternType = ctx.flags.pattern || 'coordination';
|
|
@@ -332,8 +332,8 @@ const statusCommand = {
|
|
|
332
332
|
{ name: 'verbose', short: 'v', type: 'boolean', description: 'Show detailed metrics' },
|
|
333
333
|
],
|
|
334
334
|
examples: [
|
|
335
|
-
{ command: '
|
|
336
|
-
{ command: '
|
|
335
|
+
{ command: 'claude-flow neural status', description: 'Show all neural status' },
|
|
336
|
+
{ command: 'claude-flow neural status -m model-123', description: 'Check specific model' },
|
|
337
337
|
],
|
|
338
338
|
action: async (ctx) => {
|
|
339
339
|
const verbose = ctx.flags.verbose === true;
|
|
@@ -472,8 +472,8 @@ const patternsCommand = {
|
|
|
472
472
|
{ name: 'limit', short: 'l', type: 'number', description: 'Max patterns to return', default: '10' },
|
|
473
473
|
],
|
|
474
474
|
examples: [
|
|
475
|
-
{ command: '
|
|
476
|
-
{ command: '
|
|
475
|
+
{ command: 'claude-flow neural patterns --action list', description: 'List all patterns' },
|
|
476
|
+
{ command: 'claude-flow neural patterns -a analyze -q "error handling"', description: 'Analyze patterns' },
|
|
477
477
|
],
|
|
478
478
|
action: async (ctx) => {
|
|
479
479
|
const action = ctx.flags.action || 'list';
|
|
@@ -554,7 +554,7 @@ const patternsCommand = {
|
|
|
554
554
|
catch (error) {
|
|
555
555
|
// Fallback if intelligence not initialized
|
|
556
556
|
output.writeln(output.dim('Intelligence system not initialized.'));
|
|
557
|
-
output.writeln(output.dim('Run:
|
|
557
|
+
output.writeln(output.dim('Run: claude-flow neural train --pattern-type general'));
|
|
558
558
|
return { success: false };
|
|
559
559
|
}
|
|
560
560
|
},
|
|
@@ -569,8 +569,8 @@ const predictCommand = {
|
|
|
569
569
|
{ name: 'format', short: 'f', type: 'string', description: 'Output format: json, table', default: 'table' },
|
|
570
570
|
],
|
|
571
571
|
examples: [
|
|
572
|
-
{ command: '
|
|
573
|
-
{ command: '
|
|
572
|
+
{ command: 'claude-flow neural predict -i "implement authentication"', description: 'Predict routing for task' },
|
|
573
|
+
{ command: 'claude-flow neural predict -i "fix bug in login" -k 3', description: 'Get top 3 predictions' },
|
|
574
574
|
],
|
|
575
575
|
action: async (ctx) => {
|
|
576
576
|
const input = ctx.flags.input;
|
|
@@ -596,7 +596,7 @@ const predictCommand = {
|
|
|
596
596
|
spinner.succeed(`Prediction complete (search: ${searchTime.toFixed(1)}ms)`);
|
|
597
597
|
output.writeln();
|
|
598
598
|
if (matches.length === 0) {
|
|
599
|
-
output.writeln(output.warning('No similar patterns found. Try training first:
|
|
599
|
+
output.writeln(output.warning('No similar patterns found. Try training first: claude-flow neural train'));
|
|
600
600
|
return { success: true, data: { matches: [] } };
|
|
601
601
|
}
|
|
602
602
|
if (format === 'json') {
|
|
@@ -654,8 +654,8 @@ const optimizeCommand = {
|
|
|
654
654
|
{ name: 'verbose', short: 'v', type: 'boolean', description: 'Show detailed metrics' },
|
|
655
655
|
],
|
|
656
656
|
examples: [
|
|
657
|
-
{ command: '
|
|
658
|
-
{ command: '
|
|
657
|
+
{ command: 'claude-flow neural optimize --method quantize', description: 'Quantize patterns to Int8' },
|
|
658
|
+
{ command: 'claude-flow neural optimize --method analyze -v', description: 'Analyze memory usage' },
|
|
659
659
|
],
|
|
660
660
|
action: async (ctx) => {
|
|
661
661
|
const method = ctx.flags.method || 'quantize';
|
|
@@ -804,8 +804,8 @@ const exportCommand = {
|
|
|
804
804
|
{ name: 'name', short: 'n', type: 'string', description: 'Custom name for exported model' },
|
|
805
805
|
],
|
|
806
806
|
examples: [
|
|
807
|
-
{ command: '
|
|
808
|
-
{ command: '
|
|
807
|
+
{ command: 'claude-flow neural export -m security-patterns --ipfs', description: 'Export and pin to IPFS' },
|
|
808
|
+
{ command: 'claude-flow neural export -m code-review -o ./export.json', description: 'Export to file' },
|
|
809
809
|
],
|
|
810
810
|
action: async (ctx) => {
|
|
811
811
|
const modelId = ctx.flags.model || 'all';
|
|
@@ -972,7 +972,7 @@ const exportCommand = {
|
|
|
972
972
|
});
|
|
973
973
|
output.writeln();
|
|
974
974
|
output.writeln(output.success('Share this CID for others to import your trained patterns'));
|
|
975
|
-
output.writeln(output.dim(`Import command:
|
|
975
|
+
output.writeln(output.dim(`Import command: claude-flow neural import --cid ${result.IpfsHash}`));
|
|
976
976
|
}
|
|
977
977
|
if (!outputFile && !pinToIpfs) {
|
|
978
978
|
// Just display the export
|
|
@@ -998,9 +998,9 @@ const listCommand = {
|
|
|
998
998
|
{ name: 'cid', type: 'string', description: 'Custom registry CID (default: official registry)' },
|
|
999
999
|
],
|
|
1000
1000
|
examples: [
|
|
1001
|
-
{ command: '
|
|
1002
|
-
{ command: '
|
|
1003
|
-
{ command: '
|
|
1001
|
+
{ command: 'claude-flow neural list', description: 'List all available models' },
|
|
1002
|
+
{ command: 'claude-flow neural list --category security', description: 'List only security models' },
|
|
1003
|
+
{ command: 'claude-flow neural list -f json', description: 'Output as JSON' },
|
|
1004
1004
|
],
|
|
1005
1005
|
action: async (ctx) => {
|
|
1006
1006
|
const category = ctx.flags.category;
|
|
@@ -1087,12 +1087,12 @@ const listCommand = {
|
|
|
1087
1087
|
output.writeln(output.dim('Registry CID: ' + registryCid));
|
|
1088
1088
|
output.writeln();
|
|
1089
1089
|
output.writeln(output.bold('Import Commands:'));
|
|
1090
|
-
output.writeln(output.dim(' All models: ') +
|
|
1090
|
+
output.writeln(output.dim(' All models: ') + `claude-flow neural import --cid ${registryCid}`);
|
|
1091
1091
|
if (category) {
|
|
1092
|
-
output.writeln(output.dim(` ${category} only: `) +
|
|
1092
|
+
output.writeln(output.dim(` ${category} only: `) + `claude-flow neural import --cid ${registryCid} --category ${category}`);
|
|
1093
1093
|
}
|
|
1094
1094
|
else {
|
|
1095
|
-
output.writeln(output.dim(' By category: ') +
|
|
1095
|
+
output.writeln(output.dim(' By category: ') + `claude-flow neural import --cid ${registryCid} --category <category>`);
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
return { success: true };
|
|
@@ -1115,9 +1115,9 @@ const importCommand = {
|
|
|
1115
1115
|
{ name: 'category', type: 'string', description: 'Only import patterns from specific category' },
|
|
1116
1116
|
],
|
|
1117
1117
|
examples: [
|
|
1118
|
-
{ command: '
|
|
1119
|
-
{ command: '
|
|
1120
|
-
{ command: '
|
|
1118
|
+
{ command: 'claude-flow neural import --cid QmXxx...', description: 'Import from IPFS' },
|
|
1119
|
+
{ command: 'claude-flow neural import -f ./patterns.json --verify', description: 'Import from file' },
|
|
1120
|
+
{ command: 'claude-flow neural import --cid QmNr1yYMK... --category security', description: 'Import only security patterns' },
|
|
1121
1121
|
],
|
|
1122
1122
|
action: async (ctx) => {
|
|
1123
1123
|
const cid = ctx.flags.cid;
|
|
@@ -1273,7 +1273,7 @@ const importCommand = {
|
|
|
1273
1273
|
});
|
|
1274
1274
|
output.writeln();
|
|
1275
1275
|
output.writeln(output.success('Patterns imported and ready to use'));
|
|
1276
|
-
output.writeln(output.dim('Run "
|
|
1276
|
+
output.writeln(output.dim('Run "claude-flow neural patterns --action list" to see imported patterns'));
|
|
1277
1277
|
return { success: true };
|
|
1278
1278
|
}
|
|
1279
1279
|
catch (error) {
|
|
@@ -1292,8 +1292,8 @@ const benchmarkCommand = {
|
|
|
1292
1292
|
{ name: 'keys', short: 'k', type: 'number', description: 'Number of keys for attention', default: '100' },
|
|
1293
1293
|
],
|
|
1294
1294
|
examples: [
|
|
1295
|
-
{ command: '
|
|
1296
|
-
{ command: '
|
|
1295
|
+
{ command: 'claude-flow neural benchmark', description: 'Run default benchmark' },
|
|
1296
|
+
{ command: 'claude-flow neural benchmark -d 128 -i 5000', description: 'Custom benchmark' },
|
|
1297
1297
|
],
|
|
1298
1298
|
action: async (ctx) => {
|
|
1299
1299
|
const dim = Math.min(parseInt(ctx.flags.dim || '256', 10), 256);
|
|
@@ -1429,9 +1429,9 @@ export const neuralCommand = {
|
|
|
1429
1429
|
description: 'Neural pattern training, MoE, Flash Attention, pattern learning',
|
|
1430
1430
|
subcommands: [trainCommand, statusCommand, patternsCommand, predictCommand, optimizeCommand, benchmarkCommand, listCommand, exportCommand, importCommand],
|
|
1431
1431
|
examples: [
|
|
1432
|
-
{ command: '
|
|
1433
|
-
{ command: '
|
|
1434
|
-
{ command: '
|
|
1432
|
+
{ command: 'claude-flow neural status', description: 'Check neural system status' },
|
|
1433
|
+
{ command: 'claude-flow neural train -p coordination', description: 'Train coordination patterns' },
|
|
1434
|
+
{ command: 'claude-flow neural patterns --action list', description: 'List learned patterns' },
|
|
1435
1435
|
],
|
|
1436
1436
|
action: async () => {
|
|
1437
1437
|
output.writeln();
|