@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.
Files changed (84) hide show
  1. package/dist/src/appliance/rvfa-builder.js +4 -4
  2. package/dist/src/appliance/rvfa-format.d.ts +1 -1
  3. package/dist/src/appliance/rvfa-format.js +1 -1
  4. package/dist/src/appliance/rvfa-runner.js +8 -8
  5. package/dist/src/commands/agent.js +15 -15
  6. package/dist/src/commands/analyze.js +52 -52
  7. package/dist/src/commands/appliance-advanced.js +1 -1
  8. package/dist/src/commands/appliance.js +16 -16
  9. package/dist/src/commands/benchmark.js +14 -14
  10. package/dist/src/commands/categories.js +1 -1
  11. package/dist/src/commands/claims.js +16 -16
  12. package/dist/src/commands/completions.js +37 -37
  13. package/dist/src/commands/config.js +9 -9
  14. package/dist/src/commands/daemon.js +21 -21
  15. package/dist/src/commands/deployment.js +15 -15
  16. package/dist/src/commands/doctor.js +26 -26
  17. package/dist/src/commands/embeddings.js +48 -48
  18. package/dist/src/commands/guidance.js +22 -22
  19. package/dist/src/commands/hive-mind.js +21 -21
  20. package/dist/src/commands/hooks.js +105 -105
  21. package/dist/src/commands/init.js +32 -32
  22. package/dist/src/commands/issues.js +6 -6
  23. package/dist/src/commands/mcp.js +13 -13
  24. package/dist/src/commands/memory.js +35 -35
  25. package/dist/src/commands/migrate.js +6 -6
  26. package/dist/src/commands/neural.js +31 -31
  27. package/dist/src/commands/performance.js +13 -13
  28. package/dist/src/commands/plugins.js +26 -26
  29. package/dist/src/commands/process.js +32 -32
  30. package/dist/src/commands/progress.js +5 -5
  31. package/dist/src/commands/providers.js +13 -13
  32. package/dist/src/commands/route.js +26 -26
  33. package/dist/src/commands/ruvector/backup.js +9 -9
  34. package/dist/src/commands/ruvector/benchmark.js +4 -4
  35. package/dist/src/commands/ruvector/import.d.ts +3 -3
  36. package/dist/src/commands/ruvector/import.js +11 -11
  37. package/dist/src/commands/ruvector/index.js +9 -9
  38. package/dist/src/commands/ruvector/init.js +7 -7
  39. package/dist/src/commands/ruvector/migrate.js +5 -5
  40. package/dist/src/commands/ruvector/optimize.js +7 -7
  41. package/dist/src/commands/ruvector/setup.d.ts +3 -3
  42. package/dist/src/commands/ruvector/setup.js +9 -9
  43. package/dist/src/commands/ruvector/status.js +4 -4
  44. package/dist/src/commands/security.js +19 -19
  45. package/dist/src/commands/session.js +13 -13
  46. package/dist/src/commands/start.js +13 -13
  47. package/dist/src/commands/status.js +9 -9
  48. package/dist/src/commands/swarm.js +7 -7
  49. package/dist/src/commands/task.js +9 -9
  50. package/dist/src/commands/transfer-store.js +16 -16
  51. package/dist/src/commands/update.js +2 -2
  52. package/dist/src/commands/workflow.js +13 -13
  53. package/dist/src/config-adapter.js +3 -3
  54. package/dist/src/index.js +1 -1
  55. package/dist/src/init/claudemd-generator.js +1 -1
  56. package/dist/src/init/executor.js +6 -6
  57. package/dist/src/init/helpers-generator.js +4 -4
  58. package/dist/src/init/mcp-generator.js +6 -6
  59. package/dist/src/init/settings-generator.js +4 -4
  60. package/dist/src/init/statusline-generator.js +12 -12
  61. package/dist/src/init/types.d.ts +4 -4
  62. package/dist/src/init/types.js +3 -3
  63. package/dist/src/mcp-server.js +2 -2
  64. package/dist/src/mcp-tools/auto-install.js +5 -5
  65. package/dist/src/mcp-tools/hooks-tools.js +1 -1
  66. package/dist/src/mcp-tools/neural-tools.js +6 -6
  67. package/dist/src/mcp-tools/security-tools.js +2 -2
  68. package/dist/src/memory/memory-bridge.d.ts +4 -4
  69. package/dist/src/memory/memory-bridge.js +15 -15
  70. package/dist/src/memory/memory-initializer.js +10 -10
  71. package/dist/src/plugins/manager.js +8 -8
  72. package/dist/src/plugins/tests/demo-plugin-store.js +6 -6
  73. package/dist/src/ruvector/enhanced-model-router.js +3 -3
  74. package/dist/src/services/agentic-flow-bridge.d.ts +11 -11
  75. package/dist/src/services/agentic-flow-bridge.js +11 -11
  76. package/dist/src/services/container-worker-pool.js +2 -2
  77. package/dist/src/services/worker-queue.js +1 -1
  78. package/dist/src/suggest.js +1 -1
  79. package/dist/src/transfer/models/seraphine.js +1 -1
  80. package/dist/src/transfer/serialization/cfp.js +1 -1
  81. package/dist/src/transfer/store/discovery.js +1 -1
  82. package/dist/src/types.d.ts +1 -1
  83. package/dist/src/update/validator.js +1 -1
  84. package/package.json +1 -1
@@ -61,7 +61,7 @@ async function checkNpmVersion() {
61
61
  async function checkConfigFile() {
62
62
  const configPaths = [
63
63
  '.claude-flow/config.json',
64
- '@sparkleideas/claude-flow.config.json',
64
+ 'claude-flow.config.json',
65
65
  '.claude-flow.json'
66
66
  ];
67
67
  for (const configPath of configPaths) {
@@ -76,7 +76,7 @@ async function checkConfigFile() {
76
76
  }
77
77
  }
78
78
  }
79
- return { name: 'Config File', status: 'warn', message: 'No config file (using defaults)', fix: '@sparkleideas/claude-flow config init' };
79
+ return { name: 'Config File', status: 'warn', message: 'No config file (using defaults)', fix: 'claude-flow config init' };
80
80
  }
81
81
  // Check daemon status
82
82
  async function checkDaemonStatus() {
@@ -89,13 +89,13 @@ async function checkDaemonStatus() {
89
89
  return { name: 'Daemon Status', status: 'pass', message: `Running (PID: ${pid})` };
90
90
  }
91
91
  catch {
92
- return { name: 'Daemon Status', status: 'warn', message: 'Stale PID file', fix: 'rm .claude-flow/daemon.pid && @sparkleideas/claude-flow daemon start' };
92
+ return { name: 'Daemon Status', status: 'warn', message: 'Stale PID file', fix: 'rm .claude-flow/daemon.pid && claude-flow daemon start' };
93
93
  }
94
94
  }
95
- return { name: 'Daemon Status', status: 'warn', message: 'Not running', fix: '@sparkleideas/claude-flow daemon start' };
95
+ return { name: 'Daemon Status', status: 'warn', message: 'Not running', fix: 'claude-flow daemon start' };
96
96
  }
97
97
  catch {
98
- return { name: 'Daemon Status', status: 'warn', message: 'Unable to check', fix: '@sparkleideas/claude-flow daemon status' };
98
+ return { name: 'Daemon Status', status: 'warn', message: 'Unable to check', fix: 'claude-flow daemon status' };
99
99
  }
100
100
  }
101
101
  // Check memory database
@@ -117,7 +117,7 @@ async function checkMemoryDatabase() {
117
117
  }
118
118
  }
119
119
  }
120
- return { name: 'Memory Database', status: 'warn', message: 'Not initialized', fix: '@sparkleideas/claude-flow memory configure --backend hybrid' };
120
+ return { name: 'Memory Database', status: 'warn', message: 'Not initialized', fix: 'claude-flow memory configure --backend hybrid' };
121
121
  }
122
122
  // Check API keys
123
123
  async function checkApiKeys() {
@@ -171,12 +171,12 @@ async function checkMcpServers() {
171
171
  const content = JSON.parse(readFileSync(configPath, 'utf8'));
172
172
  const servers = content.mcpServers || content.servers || {};
173
173
  const count = Object.keys(servers).length;
174
- const hasClaudeFlow = '@sparkleideas/claude-flow' in servers || 'claude-flow_alpha' in servers;
174
+ const hasClaudeFlow = 'claude-flow' in servers || 'claude-flow_alpha' in servers;
175
175
  if (hasClaudeFlow) {
176
- return { name: 'MCP Servers', status: 'pass', message: `${count} servers (@sparkleideas/claude-flow configured)` };
176
+ return { name: 'MCP Servers', status: 'pass', message: `${count} servers (claude-flow configured)` };
177
177
  }
178
178
  else {
179
- return { name: 'MCP Servers', status: 'warn', message: `${count} servers (@sparkleideas/claude-flow not found)`, fix: 'claude mcp add @sparkleideas/claude-flow npx @sparkleideas/cli@v3alpha mcp start' };
179
+ return { name: 'MCP Servers', status: 'warn', message: `${count} servers (claude-flow not found)`, fix: 'claude mcp add claude-flow npx @sparkleideas/cli@v3alpha mcp start' };
180
180
  }
181
181
  }
182
182
  catch {
@@ -184,7 +184,7 @@ async function checkMcpServers() {
184
184
  }
185
185
  }
186
186
  }
187
- return { name: 'MCP Servers', status: 'warn', message: 'No MCP config found', fix: 'claude mcp add @sparkleideas/claude-flow npx @sparkleideas/cli@v3alpha mcp start' };
187
+ return { name: 'MCP Servers', status: 'warn', message: 'No MCP config found', fix: 'claude mcp add claude-flow npx @sparkleideas/cli@v3alpha mcp start' };
188
188
  }
189
189
  // Check disk space (async with proper env inheritance)
190
190
  async function checkDiskSpace() {
@@ -237,7 +237,7 @@ async function checkVersionFreshness() {
237
237
  const thisFile = fileURLToPath(import.meta.url);
238
238
  let dir = dirname(thisFile);
239
239
  // Walk up from the current file's directory until we find the
240
- // package.json that belongs to @sparkleideas/cli (or @sparkleideas/claude-flow/cli).
240
+ // package.json that belongs to @sparkleideas/cli (or claude-flow/cli).
241
241
  // Walk until dirname(dir) === dir (filesystem root on any platform).
242
242
  for (;;) {
243
243
  const candidate = join(dir, 'package.json');
@@ -246,7 +246,7 @@ async function checkVersionFreshness() {
246
246
  const pkg = JSON.parse(readFileSync(candidate, 'utf8'));
247
247
  if (pkg.version &&
248
248
  typeof pkg.name === 'string' &&
249
- (pkg.name === '@sparkleideas/cli' || pkg.name === '@sparkleideas/claude-flow' || pkg.name === '@sparkleideas/ruflo')) {
249
+ (pkg.name === '@sparkleideas/cli' || pkg.name === 'claude-flow' || pkg.name === 'ruflo')) {
250
250
  currentVersion = pkg.version;
251
251
  break;
252
252
  }
@@ -365,13 +365,13 @@ async function installClaudeCode() {
365
365
  return false;
366
366
  }
367
367
  }
368
- // Check @sparkleideas/agentic-flow v3 integration (filesystem-based to avoid slow WASM/DB init)
368
+ // Check agentic-flow v3 integration (filesystem-based to avoid slow WASM/DB init)
369
369
  async function checkAgenticFlow() {
370
370
  try {
371
- // Walk common node_modules paths to find @sparkleideas/agentic-flow/package.json
371
+ // Walk common node_modules paths to find agentic-flow/package.json
372
372
  const candidates = [
373
- join(process.cwd(), 'node_modules', '@sparkleideas/agentic-flow', 'package.json'),
374
- join(process.cwd(), '..', 'node_modules', '@sparkleideas/agentic-flow', 'package.json'),
373
+ join(process.cwd(), 'node_modules', 'agentic-flow', 'package.json'),
374
+ join(process.cwd(), '..', 'node_modules', 'agentic-flow', 'package.json'),
375
375
  ];
376
376
  let pkgJsonPath = null;
377
377
  for (const p of candidates) {
@@ -382,10 +382,10 @@ async function checkAgenticFlow() {
382
382
  }
383
383
  if (!pkgJsonPath) {
384
384
  return {
385
- name: '@sparkleideas/agentic-flow',
385
+ name: 'agentic-flow',
386
386
  status: 'warn',
387
387
  message: 'Not installed (optional — embeddings/routing will use fallbacks)',
388
- fix: 'npm install @sparkleideas/agentic-flow@latest'
388
+ fix: 'npm install agentic-flow@latest'
389
389
  };
390
390
  }
391
391
  const pkg = JSON.parse(readFileSync(pkgJsonPath, 'utf-8'));
@@ -397,13 +397,13 @@ async function checkAgenticFlow() {
397
397
  exports['./transport/quic'] ? 'QUIC' : null,
398
398
  ].filter(Boolean);
399
399
  return {
400
- name: '@sparkleideas/agentic-flow',
400
+ name: 'agentic-flow',
401
401
  status: 'pass',
402
402
  message: `v${version} (${features.join(', ')})`
403
403
  };
404
404
  }
405
405
  catch {
406
- return { name: '@sparkleideas/agentic-flow', status: 'warn', message: 'Check failed' };
406
+ return { name: 'agentic-flow', status: 'warn', message: 'Check failed' };
407
407
  }
408
408
  }
409
409
  // Format health check result
@@ -447,11 +447,11 @@ export const doctorCommand = {
447
447
  }
448
448
  ],
449
449
  examples: [
450
- { command: '@sparkleideas/claude-flow doctor', description: 'Run full health check' },
451
- { command: '@sparkleideas/claude-flow doctor --fix', description: 'Show fixes for issues' },
452
- { command: '@sparkleideas/claude-flow doctor --install', description: 'Auto-install missing dependencies' },
453
- { command: '@sparkleideas/claude-flow doctor -c version', description: 'Check for stale npx cache' },
454
- { command: '@sparkleideas/claude-flow doctor -c claude', description: 'Check Claude Code CLI only' }
450
+ { command: 'claude-flow doctor', description: 'Run full health check' },
451
+ { command: 'claude-flow doctor --fix', description: 'Show fixes for issues' },
452
+ { command: 'claude-flow doctor --install', description: 'Auto-install missing dependencies' },
453
+ { command: 'claude-flow doctor -c version', description: 'Check for stale npx cache' },
454
+ { command: 'claude-flow doctor -c claude', description: 'Check Claude Code CLI only' }
455
455
  ],
456
456
  action: async (ctx) => {
457
457
  const showFix = ctx.flags.fix;
@@ -493,7 +493,7 @@ export const doctorCommand = {
493
493
  'mcp': checkMcpServers,
494
494
  'disk': checkDiskSpace,
495
495
  'typescript': checkBuildTools,
496
- '@sparkleideas/agentic-flow': checkAgenticFlow
496
+ 'agentic-flow': checkAgenticFlow
497
497
  };
498
498
  let checksToRun = allChecks;
499
499
  if (component && componentMap[component]) {
@@ -28,13 +28,13 @@ const generateCommand = {
28
28
  description: 'Generate embeddings for text',
29
29
  options: [
30
30
  { name: 'text', short: 't', type: 'string', description: 'Text to embed', required: true },
31
- { name: 'provider', short: 'p', type: 'string', description: 'Provider: openai, transformers, @sparkleideas/agentic-flow, local', default: 'local' },
31
+ { name: 'provider', short: 'p', type: 'string', description: 'Provider: openai, transformers, agentic-flow, local', default: 'local' },
32
32
  { name: 'model', short: 'm', type: 'string', description: 'Model to use' },
33
33
  { name: 'output', short: 'o', type: 'string', description: 'Output format: json, array, preview', default: 'preview' },
34
34
  ],
35
35
  examples: [
36
- { command: '@sparkleideas/claude-flow embeddings generate -t "Hello world"', description: 'Generate embedding' },
37
- { command: '@sparkleideas/claude-flow embeddings generate -t "Test" -o json', description: 'Output as JSON' },
36
+ { command: 'claude-flow embeddings generate -t "Hello world"', description: 'Generate embedding' },
37
+ { command: 'claude-flow embeddings generate -t "Test" -o json', description: 'Output as JSON' },
38
38
  ],
39
39
  action: async (ctx) => {
40
40
  const text = ctx.flags.text;
@@ -105,8 +105,8 @@ const searchCommand = {
105
105
  { name: 'db-path', type: 'string', description: 'Database path', default: '.swarm/memory.db' },
106
106
  ],
107
107
  examples: [
108
- { command: '@sparkleideas/claude-flow embeddings search -q "error handling"', description: 'Search for similar' },
109
- { command: '@sparkleideas/claude-flow embeddings search -q "test" -l 5', description: 'Limit results' },
108
+ { command: 'claude-flow embeddings search -q "error handling"', description: 'Search for similar' },
109
+ { command: 'claude-flow embeddings search -q "test" -l 5', description: 'Limit results' },
110
110
  ],
111
111
  action: async (ctx) => {
112
112
  const query = ctx.flags.query;
@@ -131,7 +131,7 @@ const searchCommand = {
131
131
  if (!fs.existsSync(fullDbPath)) {
132
132
  spinner.fail('Database not found');
133
133
  output.printWarning(`No database at ${fullDbPath}`);
134
- output.printInfo('Run: @sparkleideas/claude-flow memory init');
134
+ output.printInfo('Run: claude-flow memory init');
135
135
  return { success: false, exitCode: 1 };
136
136
  }
137
137
  // Load sql.js
@@ -213,7 +213,7 @@ const searchCommand = {
213
213
  if (topResults.length === 0) {
214
214
  output.writeln();
215
215
  output.printWarning('No matches found');
216
- output.printInfo(`Try: @sparkleideas/claude-flow memory store -k "key" --value "your data"`);
216
+ output.printInfo(`Try: claude-flow memory store -k "key" --value "your data"`);
217
217
  return { success: true, data: [] };
218
218
  }
219
219
  output.writeln();
@@ -271,7 +271,7 @@ const compareCommand = {
271
271
  { name: 'metric', short: 'm', type: 'string', description: 'Metric: cosine, euclidean, dot', default: 'cosine' },
272
272
  ],
273
273
  examples: [
274
- { command: '@sparkleideas/claude-flow embeddings compare --text1 "Hello" --text2 "Hi there"', description: 'Compare texts' },
274
+ { command: 'claude-flow embeddings compare --text1 "Hello" --text2 "Hi there"', description: 'Compare texts' },
275
275
  ],
276
276
  action: async (ctx) => {
277
277
  const text1 = ctx.flags.text1;
@@ -356,8 +356,8 @@ const collectionsCommand = {
356
356
  { name: 'db-path', type: 'string', description: 'Database path', default: '.swarm/memory.db' },
357
357
  ],
358
358
  examples: [
359
- { command: '@sparkleideas/claude-flow embeddings collections', description: 'List collections' },
360
- { command: '@sparkleideas/claude-flow embeddings collections -a stats', description: 'Show detailed stats' },
359
+ { command: 'claude-flow embeddings collections', description: 'List collections' },
360
+ { command: 'claude-flow embeddings collections -a stats', description: 'Show detailed stats' },
361
361
  ],
362
362
  action: async (ctx) => {
363
363
  const action = ctx.flags.action || 'list';
@@ -372,7 +372,7 @@ const collectionsCommand = {
372
372
  // Check if database exists
373
373
  if (!fs.existsSync(fullDbPath)) {
374
374
  output.printWarning('No database found');
375
- output.printInfo('Run: @sparkleideas/claude-flow memory init');
375
+ output.printInfo('Run: claude-flow memory init');
376
376
  output.writeln();
377
377
  output.writeln(output.dim('No collections yet - initialize memory first'));
378
378
  return { success: true, data: [] };
@@ -416,7 +416,7 @@ const collectionsCommand = {
416
416
  output.printWarning('No collections found');
417
417
  output.writeln();
418
418
  output.writeln(output.dim('Store some data first:'));
419
- output.writeln(output.highlight(' @sparkleideas/claude-flow memory store -k "key" --value "data"'));
419
+ output.writeln(output.highlight(' claude-flow memory store -k "key" --value "data"'));
420
420
  return { success: true, data: [] };
421
421
  }
422
422
  output.printTable({
@@ -460,9 +460,9 @@ const indexCommand = {
460
460
  { name: 'm', type: 'number', description: 'HNSW M parameter', default: '16' },
461
461
  ],
462
462
  examples: [
463
- { command: '@sparkleideas/claude-flow embeddings index', description: 'Show index status' },
464
- { command: '@sparkleideas/claude-flow embeddings index -a build -c documents', description: 'Build index' },
465
- { command: '@sparkleideas/claude-flow embeddings index -a optimize -c patterns', description: 'Optimize index' },
463
+ { command: 'claude-flow embeddings index', description: 'Show index status' },
464
+ { command: 'claude-flow embeddings index -a build -c documents', description: 'Build index' },
465
+ { command: 'claude-flow embeddings index -a optimize -c patterns', description: 'Optimize index' },
466
466
  ],
467
467
  action: async (ctx) => {
468
468
  const action = ctx.flags.action || 'status';
@@ -521,7 +521,7 @@ const indexCommand = {
521
521
  else {
522
522
  output.writeln();
523
523
  output.printInfo('Index is empty. Store some entries to populate it.');
524
- output.printInfo('Run: @sparkleideas/claude-flow memory store -k "key" --value "text"');
524
+ output.printInfo('Run: claude-flow memory store -k "key" --value "text"');
525
525
  }
526
526
  return { success: true, data: status };
527
527
  }
@@ -581,11 +581,11 @@ const initCommand = {
581
581
  { name: 'force', short: 'f', type: 'boolean', description: 'Overwrite existing configuration', default: 'false' },
582
582
  ],
583
583
  examples: [
584
- { command: '@sparkleideas/claude-flow embeddings init', description: 'Initialize with defaults' },
585
- { command: '@sparkleideas/claude-flow embeddings init --model all-mpnet-base-v2', description: 'Use higher quality model' },
586
- { command: '@sparkleideas/claude-flow embeddings init --no-hyperbolic', description: 'Euclidean only' },
587
- { command: '@sparkleideas/claude-flow embeddings init --curvature=-0.5', description: 'Custom curvature (use = for negative)' },
588
- { command: '@sparkleideas/claude-flow embeddings init --force', description: 'Overwrite existing config' },
584
+ { command: 'claude-flow embeddings init', description: 'Initialize with defaults' },
585
+ { command: 'claude-flow embeddings init --model all-mpnet-base-v2', description: 'Use higher quality model' },
586
+ { command: 'claude-flow embeddings init --no-hyperbolic', description: 'Euclidean only' },
587
+ { command: 'claude-flow embeddings init --curvature=-0.5', description: 'Custom curvature (use = for negative)' },
588
+ { command: 'claude-flow embeddings init --force', description: 'Overwrite existing config' },
589
589
  ],
590
590
  action: async (ctx) => {
591
591
  const model = ctx.flags.model || 'all-MiniLM-L6-v2';
@@ -710,7 +710,7 @@ const providersCommand = {
710
710
  description: 'List available embedding providers',
711
711
  options: [],
712
712
  examples: [
713
- { command: '@sparkleideas/claude-flow embeddings providers', description: 'List providers' },
713
+ { command: 'claude-flow embeddings providers', description: 'List providers' },
714
714
  ],
715
715
  action: async () => {
716
716
  output.writeln();
@@ -749,8 +749,8 @@ const chunkCommand = {
749
749
  { name: 'file', short: 'f', type: 'string', description: 'File to chunk (instead of text)' },
750
750
  ],
751
751
  examples: [
752
- { command: '@sparkleideas/claude-flow embeddings chunk -t "Long text..." -s 256', description: 'Chunk with 256 char limit' },
753
- { command: '@sparkleideas/claude-flow embeddings chunk -f doc.txt --strategy paragraph', description: 'Chunk file by paragraph' },
752
+ { command: 'claude-flow embeddings chunk -t "Long text..." -s 256', description: 'Chunk with 256 char limit' },
753
+ { command: 'claude-flow embeddings chunk -f doc.txt --strategy paragraph', description: 'Chunk file by paragraph' },
754
754
  ],
755
755
  action: async (ctx) => {
756
756
  const embeddings = await getEmbeddings();
@@ -804,8 +804,8 @@ const normalizeCommand = {
804
804
  { name: 'check', short: 'c', type: 'boolean', description: 'Check if already normalized' },
805
805
  ],
806
806
  examples: [
807
- { command: '@sparkleideas/claude-flow embeddings normalize -i "[0.5, 0.3, 0.8]" -t l2', description: 'L2 normalize' },
808
- { command: '@sparkleideas/claude-flow embeddings normalize --check -i "[...]"', description: 'Check if normalized' },
807
+ { command: 'claude-flow embeddings normalize -i "[0.5, 0.3, 0.8]" -t l2', description: 'L2 normalize' },
808
+ { command: 'claude-flow embeddings normalize --check -i "[...]"', description: 'Check if normalized' },
809
809
  ],
810
810
  action: async (ctx) => {
811
811
  const type = ctx.flags.type || 'l2';
@@ -842,8 +842,8 @@ const hyperbolicCommand = {
842
842
  { name: 'input', short: 'i', type: 'string', description: 'Input embedding(s) JSON' },
843
843
  ],
844
844
  examples: [
845
- { command: '@sparkleideas/claude-flow embeddings hyperbolic -a convert -i "[0.5, 0.3]"', description: 'Convert to Poincaré' },
846
- { command: '@sparkleideas/claude-flow embeddings hyperbolic -a distance', description: 'Compute hyperbolic distance' },
845
+ { command: 'claude-flow embeddings hyperbolic -a convert -i "[0.5, 0.3]"', description: 'Convert to Poincaré' },
846
+ { command: 'claude-flow embeddings hyperbolic -a distance', description: 'Compute hyperbolic distance' },
847
847
  ],
848
848
  action: async (ctx) => {
849
849
  const action = ctx.flags.action || 'convert';
@@ -950,11 +950,11 @@ const neuralCommand = {
950
950
  { name: 'consolidation-interval', type: 'string', description: 'Memory consolidation interval (ms)', default: '60000' },
951
951
  ],
952
952
  examples: [
953
- { command: '@sparkleideas/claude-flow embeddings neural --init', description: 'Initialize RuVector substrate' },
954
- { command: '@sparkleideas/claude-flow embeddings neural -f drift', description: 'Semantic drift detection' },
955
- { command: '@sparkleideas/claude-flow embeddings neural -f memory', description: 'Memory physics (hippocampal)' },
956
- { command: '@sparkleideas/claude-flow embeddings neural -f coherence', description: 'Safety & alignment monitoring' },
957
- { command: '@sparkleideas/claude-flow embeddings neural --drift-threshold=0.2', description: 'Custom drift threshold' },
953
+ { command: 'claude-flow embeddings neural --init', description: 'Initialize RuVector substrate' },
954
+ { command: 'claude-flow embeddings neural -f drift', description: 'Semantic drift detection' },
955
+ { command: 'claude-flow embeddings neural -f memory', description: 'Memory physics (hippocampal)' },
956
+ { command: 'claude-flow embeddings neural -f coherence', description: 'Safety & alignment monitoring' },
957
+ { command: 'claude-flow embeddings neural --drift-threshold=0.2', description: 'Custom drift threshold' },
958
958
  ],
959
959
  action: async (ctx) => {
960
960
  const feature = ctx.flags.feature || 'all';
@@ -1097,8 +1097,8 @@ const modelsCommand = {
1097
1097
  { name: 'list', short: 'l', type: 'boolean', description: 'List available models', default: 'true' },
1098
1098
  ],
1099
1099
  examples: [
1100
- { command: '@sparkleideas/claude-flow embeddings models', description: 'List models' },
1101
- { command: '@sparkleideas/claude-flow embeddings models -d all-MiniLM-L6-v2', description: 'Download model' },
1100
+ { command: 'claude-flow embeddings models', description: 'List models' },
1101
+ { command: 'claude-flow embeddings models -d all-MiniLM-L6-v2', description: 'Download model' },
1102
1102
  ],
1103
1103
  action: async (ctx) => {
1104
1104
  const download = ctx.flags.download;
@@ -1167,8 +1167,8 @@ const cacheCommand = {
1167
1167
  { name: 'db-path', type: 'string', description: 'SQLite database path', default: '.cache/embeddings.db' },
1168
1168
  ],
1169
1169
  examples: [
1170
- { command: '@sparkleideas/claude-flow embeddings cache', description: 'Show cache stats' },
1171
- { command: '@sparkleideas/claude-flow embeddings cache -a clear', description: 'Clear cache' },
1170
+ { command: 'claude-flow embeddings cache', description: 'Show cache stats' },
1171
+ { command: 'claude-flow embeddings cache -a clear', description: 'Clear cache' },
1172
1172
  ],
1173
1173
  action: async (ctx) => {
1174
1174
  const action = ctx.flags.action || 'stats';
@@ -1297,8 +1297,8 @@ const warmupCommand = {
1297
1297
  { name: 'test', short: 't', type: 'boolean', description: 'Run test embedding after warmup', default: 'true' },
1298
1298
  ],
1299
1299
  examples: [
1300
- { command: '@sparkleideas/claude-flow embeddings warmup', description: 'Preload model with test' },
1301
- { command: '@sparkleideas/claude-flow embeddings warmup -b', description: 'Background warmup' },
1300
+ { command: 'claude-flow embeddings warmup', description: 'Preload model with test' },
1301
+ { command: 'claude-flow embeddings warmup -b', description: 'Background warmup' },
1302
1302
  ],
1303
1303
  action: async (ctx) => {
1304
1304
  const runTest = ctx.flags.test !== false;
@@ -1371,8 +1371,8 @@ const benchmarkCommand = {
1371
1371
  { name: 'full', short: 'f', type: 'boolean', description: 'Run full benchmark suite', default: 'false' },
1372
1372
  ],
1373
1373
  examples: [
1374
- { command: '@sparkleideas/claude-flow embeddings benchmark', description: 'Quick benchmark' },
1375
- { command: '@sparkleideas/claude-flow embeddings benchmark -n 50 -f', description: 'Full benchmark' },
1374
+ { command: 'claude-flow embeddings benchmark', description: 'Quick benchmark' },
1375
+ { command: 'claude-flow embeddings benchmark -n 50 -f', description: 'Full benchmark' },
1376
1376
  ],
1377
1377
  action: async (ctx) => {
1378
1378
  const iterations = parseInt(ctx.flags.iterations || '10', 10);
@@ -1526,13 +1526,13 @@ export const embeddingsCommand = {
1526
1526
  benchmarkCommand,
1527
1527
  ],
1528
1528
  examples: [
1529
- { command: '@sparkleideas/claude-flow embeddings init', description: 'Initialize ONNX embedding system' },
1530
- { command: '@sparkleideas/claude-flow embeddings init --model all-mpnet-base-v2', description: 'Init with larger model' },
1531
- { command: '@sparkleideas/claude-flow embeddings generate -t "Hello"', description: 'Generate embedding' },
1532
- { command: '@sparkleideas/claude-flow embeddings search -q "error handling"', description: 'Semantic search' },
1533
- { command: '@sparkleideas/claude-flow embeddings chunk -t "Long doc..."', description: 'Chunk document' },
1534
- { command: '@sparkleideas/claude-flow embeddings hyperbolic -a convert', description: 'Hyperbolic space' },
1535
- { command: '@sparkleideas/claude-flow embed neural -f drift', description: 'Neural substrate' },
1529
+ { command: 'claude-flow embeddings init', description: 'Initialize ONNX embedding system' },
1530
+ { command: 'claude-flow embeddings init --model all-mpnet-base-v2', description: 'Init with larger model' },
1531
+ { command: 'claude-flow embeddings generate -t "Hello"', description: 'Generate embedding' },
1532
+ { command: 'claude-flow embeddings search -q "error handling"', description: 'Semantic search' },
1533
+ { command: 'claude-flow embeddings chunk -t "Long doc..."', description: 'Chunk document' },
1534
+ { command: 'claude-flow embeddings hyperbolic -a convert', description: 'Hyperbolic space' },
1535
+ { command: 'claude-flow embed neural -f drift', description: 'Neural substrate' },
1536
1536
  ],
1537
1537
  action: async () => {
1538
1538
  output.writeln();
@@ -14,9 +14,9 @@ const compileCommand = {
14
14
  { name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
15
15
  ],
16
16
  examples: [
17
- { command: '@sparkleideas/claude-flow guidance compile', description: 'Compile default CLAUDE.md' },
18
- { command: '@sparkleideas/claude-flow guidance compile -r ./CLAUDE.md -l ./CLAUDE.local.md', description: 'Compile with local overlay' },
19
- { command: '@sparkleideas/claude-flow guidance compile --json', description: 'Output compiled bundle as JSON' },
17
+ { command: 'claude-flow guidance compile', description: 'Compile default CLAUDE.md' },
18
+ { command: 'claude-flow guidance compile -r ./CLAUDE.md -l ./CLAUDE.local.md', description: 'Compile with local overlay' },
19
+ { command: 'claude-flow guidance compile --json', description: 'Output compiled bundle as JSON' },
20
20
  ],
21
21
  action: async (ctx) => {
22
22
  const rootPath = ctx.flags.root || './CLAUDE.md';
@@ -88,8 +88,8 @@ const retrieveCommand = {
88
88
  { name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
89
89
  ],
90
90
  examples: [
91
- { command: '@sparkleideas/claude-flow guidance retrieve -t "Fix SQL injection in user search"', description: 'Retrieve guidance for a security task' },
92
- { command: '@sparkleideas/claude-flow guidance retrieve -t "Add unit tests" -n 3', description: 'Retrieve top 3 shards for testing' },
91
+ { command: 'claude-flow guidance retrieve -t "Fix SQL injection in user search"', description: 'Retrieve guidance for a security task' },
92
+ { command: 'claude-flow guidance retrieve -t "Add unit tests" -n 3', description: 'Retrieve top 3 shards for testing' },
93
93
  ],
94
94
  action: async (ctx) => {
95
95
  const task = ctx.flags.task;
@@ -173,8 +173,8 @@ const gatesCommand = {
173
173
  { name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
174
174
  ],
175
175
  examples: [
176
- { command: '@sparkleideas/claude-flow guidance gates -c "rm -rf /tmp"', description: 'Check if a command is destructive' },
177
- { command: '@sparkleideas/claude-flow guidance gates --content "api_key=sk-abc123..."', description: 'Check content for secrets' },
176
+ { command: 'claude-flow guidance gates -c "rm -rf /tmp"', description: 'Check if a command is destructive' },
177
+ { command: 'claude-flow guidance gates --content "api_key=sk-abc123..."', description: 'Check content for secrets' },
178
178
  ],
179
179
  action: async (ctx) => {
180
180
  const command = ctx.flags.command;
@@ -314,10 +314,10 @@ const optimizeCommand = {
314
314
  { name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
315
315
  ],
316
316
  examples: [
317
- { command: '@sparkleideas/claude-flow guidance optimize', description: 'Analyze current CLAUDE.md and show suggestions' },
318
- { command: '@sparkleideas/claude-flow guidance optimize --apply', description: 'Apply optimizations to CLAUDE.md' },
319
- { command: '@sparkleideas/claude-flow guidance optimize -s compact --apply', description: 'Optimize for compact context window' },
320
- { command: '@sparkleideas/claude-flow guidance optimize --target-score 95', description: 'Optimize until score reaches 95' },
317
+ { command: 'claude-flow guidance optimize', description: 'Analyze current CLAUDE.md and show suggestions' },
318
+ { command: 'claude-flow guidance optimize --apply', description: 'Apply optimizations to CLAUDE.md' },
319
+ { command: 'claude-flow guidance optimize -s compact --apply', description: 'Optimize for compact context window' },
320
+ { command: 'claude-flow guidance optimize --target-score 95', description: 'Optimize until score reaches 95' },
321
321
  ],
322
322
  action: async (ctx) => {
323
323
  const rootPath = ctx.flags.root || './CLAUDE.md';
@@ -417,10 +417,10 @@ const abTestCommand = {
417
417
  { name: 'json', type: 'boolean', description: 'Output as JSON', default: 'false' },
418
418
  ],
419
419
  examples: [
420
- { command: '@sparkleideas/claude-flow guidance ab-test', description: 'Run default A/B test (no guidance vs ./CLAUDE.md)' },
421
- { command: '@sparkleideas/claude-flow guidance ab-test -a old.md -b new.md', description: 'Compare two CLAUDE.md versions' },
422
- { command: '@sparkleideas/claude-flow guidance ab-test --tasks custom-tasks.json', description: 'Run with custom test tasks' },
423
- { command: '@sparkleideas/claude-flow guidance ab-test --json', description: 'Output full report as JSON' },
420
+ { command: 'claude-flow guidance ab-test', description: 'Run default A/B test (no guidance vs ./CLAUDE.md)' },
421
+ { command: 'claude-flow guidance ab-test -a old.md -b new.md', description: 'Compare two CLAUDE.md versions' },
422
+ { command: 'claude-flow guidance ab-test --tasks custom-tasks.json', description: 'Run with custom test tasks' },
423
+ { command: 'claude-flow guidance ab-test --json', description: 'Output full report as JSON' },
424
424
  ],
425
425
  action: async (ctx) => {
426
426
  const configAPath = ctx.flags['config-a'];
@@ -532,12 +532,12 @@ export const guidanceCommand = {
532
532
  ],
533
533
  options: [],
534
534
  examples: [
535
- { command: '@sparkleideas/claude-flow guidance compile', description: 'Compile CLAUDE.md into policy bundle' },
536
- { command: '@sparkleideas/claude-flow guidance retrieve -t "Fix auth bug"', description: 'Retrieve relevant guidance' },
537
- { command: '@sparkleideas/claude-flow guidance gates -c "rm -rf /"', description: 'Check enforcement gates' },
538
- { command: '@sparkleideas/claude-flow guidance status', description: 'Show control plane status' },
539
- { command: '@sparkleideas/claude-flow guidance optimize', description: 'Analyze and optimize CLAUDE.md' },
540
- { command: '@sparkleideas/claude-flow guidance ab-test', description: 'Run A/B behavioral comparison' },
535
+ { command: 'claude-flow guidance compile', description: 'Compile CLAUDE.md into policy bundle' },
536
+ { command: 'claude-flow guidance retrieve -t "Fix auth bug"', description: 'Retrieve relevant guidance' },
537
+ { command: 'claude-flow guidance gates -c "rm -rf /"', description: 'Check enforcement gates' },
538
+ { command: 'claude-flow guidance status', description: 'Show control plane status' },
539
+ { command: 'claude-flow guidance optimize', description: 'Analyze and optimize CLAUDE.md' },
540
+ { command: 'claude-flow guidance ab-test', description: 'Run A/B behavioral comparison' },
541
541
  ],
542
542
  action: async (ctx) => {
543
543
  output.writeln();
@@ -552,7 +552,7 @@ export const guidanceCommand = {
552
552
  output.writeln(` ${output.bold('optimize')} Analyze and optimize CLAUDE.md`);
553
553
  output.writeln(` ${output.bold('ab-test')} Run A/B behavioral comparison`);
554
554
  output.writeln();
555
- output.writeln(output.dim('Use @sparkleideas/claude-flow guidance <subcommand> --help for details'));
555
+ output.writeln(output.dim('Use claude-flow guidance <subcommand> --help for details'));
556
556
  return { success: true };
557
557
  },
558
558
  };
@@ -341,14 +341,14 @@ const initCommand = {
341
341
  },
342
342
  {
343
343
  name: 'memory-backend',
344
- description: 'Memory backend (@sparkleideas/agentdb, sqlite, hybrid)',
344
+ description: 'Memory backend (agentdb, sqlite, hybrid)',
345
345
  type: 'string',
346
346
  default: 'hybrid'
347
347
  }
348
348
  ],
349
349
  examples: [
350
- { command: '@sparkleideas/claude-flow hive-mind init -t hierarchical-mesh', description: 'Init hierarchical mesh' },
351
- { command: '@sparkleideas/claude-flow hive-mind init -c byzantine -m 20', description: 'Init with Byzantine consensus' }
350
+ { command: 'claude-flow hive-mind init -t hierarchical-mesh', description: 'Init hierarchical mesh' },
351
+ { command: 'claude-flow hive-mind init -c byzantine -m 20', description: 'Init with Byzantine consensus' }
352
352
  ],
353
353
  action: async (ctx) => {
354
354
  let topology = ctx.flags.topology;
@@ -397,8 +397,8 @@ const initCommand = {
397
397
  ].join('\n'), 'Hive Mind Configuration');
398
398
  output.writeln();
399
399
  output.printInfo('Queen agent is ready to coordinate worker agents');
400
- output.writeln(output.dim(' Use "@sparkleideas/claude-flow hive-mind spawn" to add workers'));
401
- output.writeln(output.dim(' Use "@sparkleideas/claude-flow hive-mind spawn --claude" to launch Claude Code'));
400
+ output.writeln(output.dim(' Use "claude-flow hive-mind spawn" to add workers'));
401
+ output.writeln(output.dim(' Use "claude-flow hive-mind spawn --claude" to launch Claude Code'));
402
402
  return { success: true, data: result };
403
403
  }
404
404
  catch (error) {
@@ -486,11 +486,11 @@ const spawnCommand = {
486
486
  }
487
487
  ],
488
488
  examples: [
489
- { command: '@sparkleideas/claude-flow hive-mind spawn -n 5', description: 'Spawn 5 workers' },
490
- { command: '@sparkleideas/claude-flow hive-mind spawn -n 3 -r specialist', description: 'Spawn 3 specialists' },
491
- { command: '@sparkleideas/claude-flow hive-mind spawn -t coder -p my-coder', description: 'Spawn coder with custom prefix' },
492
- { command: '@sparkleideas/claude-flow hive-mind spawn --claude -o "Build a REST API"', description: 'Launch Claude Code with objective' },
493
- { command: '@sparkleideas/claude-flow hive-mind spawn -n 5 --claude -o "Research AI patterns"', description: 'Spawn workers and launch Claude Code' }
489
+ { command: 'claude-flow hive-mind spawn -n 5', description: 'Spawn 5 workers' },
490
+ { command: 'claude-flow hive-mind spawn -n 3 -r specialist', description: 'Spawn 3 specialists' },
491
+ { command: 'claude-flow hive-mind spawn -t coder -p my-coder', description: 'Spawn coder with custom prefix' },
492
+ { command: 'claude-flow hive-mind spawn --claude -o "Build a REST API"', description: 'Launch Claude Code with objective' },
493
+ { command: 'claude-flow hive-mind spawn -n 5 --claude -o "Research AI patterns"', description: 'Spawn workers and launch Claude Code' }
494
494
  ],
495
495
  action: async (ctx) => {
496
496
  // Parse count with fallback to default
@@ -659,7 +659,7 @@ const statusCommand = {
659
659
  output.writeln();
660
660
  output.writeln(output.bold('Worker Agents'));
661
661
  if (workerData.length === 0) {
662
- output.printInfo('No workers in hive. Use "@sparkleideas/claude-flow hive-mind spawn" to add workers.');
662
+ output.printInfo('No workers in hive. Use "claude-flow hive-mind spawn" to add workers.');
663
663
  }
664
664
  else {
665
665
  output.printTable({
@@ -749,8 +749,8 @@ const taskCommand = {
749
749
  }
750
750
  ],
751
751
  examples: [
752
- { command: '@sparkleideas/claude-flow hive-mind task -d "Implement auth module"', description: 'Submit task' },
753
- { command: '@sparkleideas/claude-flow hive-mind task -d "Security review" -p critical -c', description: 'Critical task with consensus' }
752
+ { command: 'claude-flow hive-mind task -d "Implement auth module"', description: 'Submit task' },
753
+ { command: 'claude-flow hive-mind task -d "Security review" -p critical -c', description: 'Critical task with consensus' }
754
754
  ],
755
755
  action: async (ctx) => {
756
756
  let description = ctx.flags.description || ctx.args.join(' ');
@@ -790,7 +790,7 @@ const taskCommand = {
790
790
  ].join('\n'), 'Task Submitted');
791
791
  output.writeln();
792
792
  output.printSuccess('Task submitted to hive');
793
- output.writeln(output.dim(` Track with: @sparkleideas/claude-flow hive-mind task-status ${result.taskId}`));
793
+ output.writeln(output.dim(` Track with: claude-flow hive-mind task-status ${result.taskId}`));
794
794
  return { success: true, data: result };
795
795
  }
796
796
  catch (error) {
@@ -1121,16 +1121,16 @@ export const hiveMindCommand = {
1121
1121
  subcommands: [initCommand, spawnCommand, statusCommand, taskCommand, joinCommand, leaveCommand, consensusCommand, broadcastCommand, memorySubCommand, optimizeMemoryCommand, shutdownCommand],
1122
1122
  options: [],
1123
1123
  examples: [
1124
- { command: '@sparkleideas/claude-flow hive-mind init -t hierarchical-mesh', description: 'Initialize hive' },
1125
- { command: '@sparkleideas/claude-flow hive-mind spawn -n 5', description: 'Spawn workers' },
1126
- { command: '@sparkleideas/claude-flow hive-mind spawn --claude -o "Build a feature"', description: 'Launch Claude Code with hive mind' },
1127
- { command: '@sparkleideas/claude-flow hive-mind task -d "Build feature"', description: 'Submit task' }
1124
+ { command: 'claude-flow hive-mind init -t hierarchical-mesh', description: 'Initialize hive' },
1125
+ { command: 'claude-flow hive-mind spawn -n 5', description: 'Spawn workers' },
1126
+ { command: 'claude-flow hive-mind spawn --claude -o "Build a feature"', description: 'Launch Claude Code with hive mind' },
1127
+ { command: 'claude-flow hive-mind task -d "Build feature"', description: 'Submit task' }
1128
1128
  ],
1129
1129
  action: async () => {
1130
1130
  output.writeln();
1131
1131
  output.writeln(output.bold('Hive Mind - Consensus-Based Multi-Agent Coordination'));
1132
1132
  output.writeln();
1133
- output.writeln('Usage: @sparkleideas/claude-flow hive-mind <subcommand> [options]');
1133
+ output.writeln('Usage: claude-flow hive-mind <subcommand> [options]');
1134
1134
  output.writeln();
1135
1135
  output.writeln('Subcommands:');
1136
1136
  output.printList([
@@ -1158,8 +1158,8 @@ export const hiveMindCommand = {
1158
1158
  ]);
1159
1159
  output.writeln();
1160
1160
  output.writeln('Quick Start with Claude Code:');
1161
- output.writeln(output.dim(' @sparkleideas/claude-flow hive-mind init'));
1162
- output.writeln(output.dim(' @sparkleideas/claude-flow hive-mind spawn -n 5 --claude -o "Your objective here"'));
1161
+ output.writeln(output.dim(' claude-flow hive-mind init'));
1162
+ output.writeln(output.dim(' claude-flow hive-mind spawn -n 5 --claude -o "Your objective here"'));
1163
1163
  return { success: true };
1164
1164
  }
1165
1165
  };