claude-flow 3.5.2 → 3.5.3

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 (59) hide show
  1. package/.claude/helpers/statusline.cjs +3 -3
  2. package/.claude/settings.json +1 -1
  3. package/README.md +156 -26
  4. package/package.json +1 -2
  5. package/v3/@claude-flow/cli/README.md +156 -26
  6. package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.d.ts +91 -0
  7. package/v3/@claude-flow/cli/dist/src/appliance/gguf-engine.js +425 -0
  8. package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.d.ts +102 -0
  9. package/v3/@claude-flow/cli/dist/src/appliance/ruvllm-bridge.js +292 -0
  10. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.d.ts +44 -0
  11. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-builder.js +329 -0
  12. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.d.ts +97 -0
  13. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-distribution.js +370 -0
  14. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.d.ts +111 -0
  15. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-format.js +393 -0
  16. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.d.ts +69 -0
  17. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-runner.js +237 -0
  18. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.d.ts +123 -0
  19. package/v3/@claude-flow/cli/dist/src/appliance/rvfa-signing.js +347 -0
  20. package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.d.ts +9 -0
  21. package/v3/@claude-flow/cli/dist/src/commands/appliance-advanced.js +215 -0
  22. package/v3/@claude-flow/cli/dist/src/commands/appliance.d.ts +8 -0
  23. package/v3/@claude-flow/cli/dist/src/commands/appliance.js +406 -0
  24. package/v3/@claude-flow/cli/dist/src/commands/benchmark.js +2 -2
  25. package/v3/@claude-flow/cli/dist/src/commands/claims.js +1 -1
  26. package/v3/@claude-flow/cli/dist/src/commands/config.js +1 -1
  27. package/v3/@claude-flow/cli/dist/src/commands/deployment.js +1 -1
  28. package/v3/@claude-flow/cli/dist/src/commands/doctor.js +1 -1
  29. package/v3/@claude-flow/cli/dist/src/commands/embeddings.js +1 -1
  30. package/v3/@claude-flow/cli/dist/src/commands/hooks.js +1 -1
  31. package/v3/@claude-flow/cli/dist/src/commands/index.d.ts +2 -0
  32. package/v3/@claude-flow/cli/dist/src/commands/index.js +6 -0
  33. package/v3/@claude-flow/cli/dist/src/commands/init.js +11 -11
  34. package/v3/@claude-flow/cli/dist/src/commands/memory.js +24 -0
  35. package/v3/@claude-flow/cli/dist/src/commands/neural.js +1 -1
  36. package/v3/@claude-flow/cli/dist/src/commands/performance.js +1 -1
  37. package/v3/@claude-flow/cli/dist/src/commands/plugins.js +1 -1
  38. package/v3/@claude-flow/cli/dist/src/commands/providers.js +1 -1
  39. package/v3/@claude-flow/cli/dist/src/commands/security.js +1 -1
  40. package/v3/@claude-flow/cli/dist/src/commands/start.js +11 -11
  41. package/v3/@claude-flow/cli/dist/src/commands/status.js +3 -3
  42. package/v3/@claude-flow/cli/dist/src/commands/transfer-store.js +1 -1
  43. package/v3/@claude-flow/cli/dist/src/index.js +2 -2
  44. package/v3/@claude-flow/cli/dist/src/init/claudemd-generator.js +1 -1
  45. package/v3/@claude-flow/cli/dist/src/init/executor.js +9 -8
  46. package/v3/@claude-flow/cli/dist/src/init/settings-generator.js +66 -16
  47. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.d.ts +1 -1
  48. package/v3/@claude-flow/cli/dist/src/init/statusline-generator.js +4 -4
  49. package/v3/@claude-flow/cli/dist/src/mcp-tools/coordination-tools.js +1 -1
  50. package/v3/@claude-flow/cli/dist/src/mcp-tools/daa-tools.js +5 -5
  51. package/v3/@claude-flow/cli/dist/src/mcp-tools/github-tools.js +2 -2
  52. package/v3/@claude-flow/cli/dist/src/mcp-tools/hooks-tools.js +1 -1
  53. package/v3/@claude-flow/cli/dist/src/mcp-tools/performance-tools.js +1 -1
  54. package/v3/@claude-flow/cli/dist/src/mcp-tools/system-tools.js +21 -6
  55. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.d.ts +6 -0
  56. package/v3/@claude-flow/cli/dist/src/memory/memory-initializer.js +54 -2
  57. package/v3/@claude-flow/cli/dist/src/runtime/headless.js +3 -3
  58. package/v3/@claude-flow/cli/dist/src/services/claim-service.js +1 -1
  59. package/v3/@claude-flow/cli/package.json +1 -1
@@ -914,6 +914,51 @@ export async function checkAndMigrateLegacy(options) {
914
914
  }
915
915
  return { needsMigration: false };
916
916
  }
917
+ /**
918
+ * ADR-053: Activate ControllerRegistry so AgentDB v3 controllers
919
+ * (ReasoningBank, SkillLibrary, ExplainableRecall, etc.) are instantiated.
920
+ *
921
+ * Uses the memory-bridge's getControllerRegistry() which lazily creates
922
+ * a singleton ControllerRegistry and initializes it with the given dbPath.
923
+ * After this call, all enabled controllers are ready for immediate use.
924
+ *
925
+ * Failures are isolated: if @claude-flow/memory or agentdb is not installed,
926
+ * this returns an empty result without throwing.
927
+ */
928
+ async function activateControllerRegistry(dbPath, verbose) {
929
+ const startTime = performance.now();
930
+ const activated = [];
931
+ const failed = [];
932
+ try {
933
+ const bridge = await getBridge();
934
+ if (!bridge) {
935
+ return { activated, failed, initTimeMs: performance.now() - startTime };
936
+ }
937
+ const registry = await bridge.getControllerRegistry(dbPath);
938
+ if (!registry) {
939
+ return { activated, failed, initTimeMs: performance.now() - startTime };
940
+ }
941
+ // Collect controller status from the registry
942
+ if (typeof registry.listControllers === 'function') {
943
+ const controllers = registry.listControllers();
944
+ for (const ctrl of controllers) {
945
+ if (ctrl.enabled) {
946
+ activated.push(ctrl.name);
947
+ }
948
+ else {
949
+ failed.push(ctrl.name);
950
+ }
951
+ }
952
+ }
953
+ if (verbose && activated.length > 0) {
954
+ console.log(`ControllerRegistry: ${activated.length} controllers activated`);
955
+ }
956
+ }
957
+ catch {
958
+ // ControllerRegistry activation is best-effort
959
+ }
960
+ return { activated, failed, initTimeMs: performance.now() - startTime };
961
+ }
917
962
  /**
918
963
  * Initialize the memory database properly using sql.js
919
964
  */
@@ -987,6 +1032,9 @@ export async function initializeMemoryDatabase(options) {
987
1032
  // Also create schema file for reference
988
1033
  const schemaPath = path.join(dbDir, 'schema.sql');
989
1034
  fs.writeFileSync(schemaPath, MEMORY_SCHEMA_V3 + '\n' + getInitialMetadata(backend));
1035
+ // ADR-053: Activate ControllerRegistry so controllers (ReasoningBank,
1036
+ // SkillLibrary, ExplainableRecall, etc.) are instantiated during init
1037
+ const controllerResult = await activateControllerRegistry(dbPath, verbose);
990
1038
  return {
991
1039
  success: true,
992
1040
  backend,
@@ -1024,7 +1072,8 @@ export async function initializeMemoryDatabase(options) {
1024
1072
  temporalDecay: true,
1025
1073
  hnswIndexing: true,
1026
1074
  migrationTracking: true
1027
- }
1075
+ },
1076
+ controllers: controllerResult,
1028
1077
  };
1029
1078
  }
1030
1079
  else {
@@ -1044,6 +1093,8 @@ export async function initializeMemoryDatabase(options) {
1044
1093
  sqliteHeader[26] = 0x20; // min embedded payload
1045
1094
  sqliteHeader[27] = 0x20; // leaf payload
1046
1095
  fs.writeFileSync(dbPath, sqliteHeader);
1096
+ // ADR-053: Activate ControllerRegistry even on fallback path
1097
+ const controllerResult = await activateControllerRegistry(dbPath, verbose);
1047
1098
  return {
1048
1099
  success: true,
1049
1100
  backend,
@@ -1067,7 +1118,8 @@ export async function initializeMemoryDatabase(options) {
1067
1118
  temporalDecay: true,
1068
1119
  hnswIndexing: true,
1069
1120
  migrationTracking: true
1070
- }
1121
+ },
1122
+ controllers: controllerResult,
1071
1123
  };
1072
1124
  }
1073
1125
  }
@@ -63,7 +63,7 @@ function parseArgs() {
63
63
  */
64
64
  function showHelp() {
65
65
  console.log(`
66
- Headless Runtime for Claude Flow V3
66
+ Headless Runtime for RuFlo V3
67
67
 
68
68
  Usage:
69
69
  headless --worker <type> Run a specific worker
@@ -150,7 +150,7 @@ async function runDaemon() {
150
150
  * Run benchmarks
151
151
  */
152
152
  async function runBenchmarks() {
153
- console.log('=== Claude Flow V3 Performance Benchmarks ===\n');
153
+ console.log('=== RuFlo V3 Performance Benchmarks ===\n');
154
154
  // Initialize intelligence
155
155
  await initializeIntelligence();
156
156
  // SONA Benchmark
@@ -216,7 +216,7 @@ async function runBenchmarks() {
216
216
  * Show system status
217
217
  */
218
218
  async function showStatus() {
219
- console.log('=== Claude Flow V3 System Status ===\n');
219
+ console.log('=== RuFlo V3 System Status ===\n');
220
220
  // Check daemon
221
221
  const daemon = getDaemon();
222
222
  console.log('Daemon:');
@@ -675,7 +675,7 @@ export class GitHubSync {
675
675
  const claimantStr = claimant.type === 'human'
676
676
  ? `@${claimant.name.replace(/[^a-zA-Z0-9_-]/g, '')}`
677
677
  : `Agent: ${(claimant.agentType || 'unknown').replace(/[^a-zA-Z0-9_-]/g, '')}`;
678
- const comment = `🤖 **Issue claimed** by ${claimantStr}\n\n_Coordinated by Claude Flow V3_`;
678
+ const comment = `🤖 **Issue claimed** by ${claimantStr}\n\n_Coordinated by RuFlo V3_`;
679
679
  try {
680
680
  execFileSync('gh', [
681
681
  'issue', 'comment', String(issueNumber),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claude-flow/cli",
3
- "version": "3.5.2",
3
+ "version": "3.5.3",
4
4
  "type": "module",
5
5
  "description": "Ruflo CLI - Enterprise AI agent orchestration with 60+ specialized agents, swarm coordination, MCP server, self-learning hooks, and vector memory for Claude Code",
6
6
  "main": "dist/src/index.js",