From c5490e89ff7852dcbc1246153988d72b1e412641 Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 13 Jan 2026 03:22:30 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: v3 - Timestamp: 2026-01-13T03:22:30Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../cli/src/mcp-tools/embeddings-tools.ts | 62 +++++++++++++------ 1 file changed, 43 insertions(+), 19 deletions(-) diff --git a/v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts index e10029fff2..7fcbd6e6b5 100644 --- a/v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts +++ b/v3/@claude-flow/cli/src/mcp-tools/embeddings-tools.ts @@ -654,26 +654,50 @@ export const embeddingsTools: MCPTool[] = [ } default: // status - return { - success: true, - action: 'status', - neural: { - enabled: config.neural.enabled, - ruvector: config.neural.ruvector || { enabled: false }, - features: config.neural.features || {}, - metrics: { - driftThreshold: config.neural.driftThreshold, - decayRate: config.neural.decayRate, + // Get real neural system status + try { + const { getIntelligenceStats, benchmarkAdaptation, initializeIntelligence } = await import('../memory/intelligence.js'); + await initializeIntelligence(); + const stats = getIntelligenceStats(); + const benchmark = benchmarkAdaptation(50); + return { + success: true, + action: 'status', + neural: { + enabled: config.neural.enabled, + sonaEnabled: stats.sonaEnabled, + ruvector: config.neural.ruvector || { enabled: false }, + features: config.neural.features || {}, + realMetrics: { + patternsLearned: stats.patternsLearned, + trajectoriesRecorded: stats.trajectoriesRecorded, + reasoningBankSize: stats.reasoningBankSize, + adaptationTime: `${(benchmark.avgMs * 1000).toFixed(2)}μs`, + targetMet: benchmark.targetMet, + lastAdaptation: stats.lastAdaptation + ? new Date(stats.lastAdaptation).toISOString() + : null, + }, }, - }, - capabilities: [ - 'SONA (Self-Optimizing Neural Architecture)', - 'Flash Attention (2.49x-7.47x speedup)', - 'EWC++ (Elastic Weight Consolidation)', - 'Semantic Drift Detection', - 'Memory Physics (hippocampal dynamics)', - ], - }; + capabilities: [ + stats.sonaEnabled ? '✅ SONA Active' : '❌ SONA Inactive', + benchmark.targetMet ? '✅ <0.05ms Target Met' : '⚠️ Target Not Met', + `${stats.patternsLearned} patterns learned`, + `${stats.trajectoriesRecorded} trajectories recorded`, + ], + }; + } catch { + return { + success: true, + action: 'status', + neural: { + enabled: config.neural.enabled, + ruvector: config.neural.ruvector || { enabled: false }, + features: config.neural.features || {}, + }, + message: 'Intelligence module not available - showing config only', + }; + } } }, },