diff --git a/.claude-flow/metrics/performance.json b/.claude-flow/metrics/performance.json index bc14951d3b..1fe5ff9467 100644 --- a/.claude-flow/metrics/performance.json +++ b/.claude-flow/metrics/performance.json @@ -1,5 +1,5 @@ { - "startTime": 1754939523771, + "startTime": 1754939615634, "totalTasks": 1, "successfulTasks": 1, "failedTasks": 0, diff --git a/.claude-flow/metrics/system-metrics.json b/.claude-flow/metrics/system-metrics.json index 62f947e893..84943607f7 100644 --- a/.claude-flow/metrics/system-metrics.json +++ b/.claude-flow/metrics/system-metrics.json @@ -454,5 +454,761 @@ "cpuLoad": 0.15125, "platform": "linux", "uptime": 1689.18 + }, + { + "timestamp": 1754939551367, + "memoryTotal": 67427549184, + "memoryUsed": 5720920064, + "memoryFree": 61706629120, + "memoryUsagePercent": 8.484543978290592, + "memoryEfficiency": 91.51545602170941, + "cpuCount": 16, + "cpuLoad": 0.171875, + "platform": "linux", + "uptime": 1719.21 + }, + { + "timestamp": 1754939581396, + "memoryTotal": 67427549184, + "memoryUsed": 5659791360, + "memoryFree": 61767757824, + "memoryUsagePercent": 8.393885627601932, + "memoryEfficiency": 91.60611437239807, + "cpuCount": 16, + "cpuLoad": 0.13625, + "platform": "linux", + "uptime": 1749.24 + }, + { + "timestamp": 1754939611426, + "memoryTotal": 67427549184, + "memoryUsed": 5652946944, + "memoryFree": 61774602240, + "memoryUsagePercent": 8.383734856762965, + "memoryEfficiency": 91.61626514323703, + "cpuCount": 16, + "cpuLoad": 0.1025, + "platform": "linux", + "uptime": 1779.27 + }, + { + "timestamp": 1754939641456, + "memoryTotal": 67427549184, + "memoryUsed": 5453516800, + "memoryFree": 61974032384, + "memoryUsagePercent": 8.08796532870881, + "memoryEfficiency": 91.9120346712912, + "cpuCount": 16, + "cpuLoad": 0.065, + "platform": "linux", + "uptime": 1809.3 + }, + { + "timestamp": 1754939671486, + "memoryTotal": 67427549184, + "memoryUsed": 5456031744, + "memoryFree": 61971517440, + "memoryUsagePercent": 8.091695175085306, + "memoryEfficiency": 91.9083048249147, + "cpuCount": 16, + "cpuLoad": 0.039375, + "platform": "linux", + "uptime": 1839.33 + }, + { + "timestamp": 1754939701515, + "memoryTotal": 67427549184, + "memoryUsed": 5477543936, + "memoryFree": 61950005248, + "memoryUsagePercent": 8.123599333341595, + "memoryEfficiency": 91.87640066665841, + "cpuCount": 16, + "cpuLoad": 0.02375, + "platform": "linux", + "uptime": 1869.36 + }, + { + "timestamp": 1754939731546, + "memoryTotal": 67427549184, + "memoryUsed": 5449150464, + "memoryFree": 61978398720, + "memoryUsagePercent": 8.081489732231049, + "memoryEfficiency": 91.91851026776895, + "cpuCount": 16, + "cpuLoad": 0.02875, + "platform": "linux", + "uptime": 1899.39 + }, + { + "timestamp": 1754939761576, + "memoryTotal": 67427549184, + "memoryUsed": 5449871360, + "memoryFree": 61977677824, + "memoryUsagePercent": 8.082558873863398, + "memoryEfficiency": 91.9174411261366, + "cpuCount": 16, + "cpuLoad": 0.036875, + "platform": "linux", + "uptime": 1929.42 + }, + { + "timestamp": 1754939791606, + "memoryTotal": 67427549184, + "memoryUsed": 5465620480, + "memoryFree": 61961928704, + "memoryUsagePercent": 8.105915973729246, + "memoryEfficiency": 91.89408402627075, + "cpuCount": 16, + "cpuLoad": 0.04875, + "platform": "linux", + "uptime": 1959.45 + }, + { + "timestamp": 1754939821635, + "memoryTotal": 67427549184, + "memoryUsed": 5462073344, + "memoryFree": 61965475840, + "memoryUsagePercent": 8.10065531092461, + "memoryEfficiency": 91.89934468907539, + "cpuCount": 16, + "cpuLoad": 0.036875, + "platform": "linux", + "uptime": 1989.48 + }, + { + "timestamp": 1754939851666, + "memoryTotal": 67427549184, + "memoryUsed": 5475717120, + "memoryFree": 61951832064, + "memoryUsagePercent": 8.120890031250525, + "memoryEfficiency": 91.87910996874948, + "cpuCount": 16, + "cpuLoad": 0.036875, + "platform": "linux", + "uptime": 2019.51 + }, + { + "timestamp": 1754939881696, + "memoryTotal": 67427549184, + "memoryUsed": 5483155456, + "memoryFree": 61944393728, + "memoryUsagePercent": 8.131921629002507, + "memoryEfficiency": 91.8680783709975, + "cpuCount": 16, + "cpuLoad": 0.0225, + "platform": "linux", + "uptime": 2049.54 + }, + { + "timestamp": 1754939911726, + "memoryTotal": 67427549184, + "memoryUsed": 5467275264, + "memoryFree": 61960273920, + "memoryUsagePercent": 8.10837013974896, + "memoryEfficiency": 91.89162986025104, + "cpuCount": 16, + "cpuLoad": 0.013125, + "platform": "linux", + "uptime": 2079.57 + }, + { + "timestamp": 1754939941755, + "memoryTotal": 67427549184, + "memoryUsed": 5464453120, + "memoryFree": 61963096064, + "memoryUsagePercent": 8.104184693245042, + "memoryEfficiency": 91.89581530675495, + "cpuCount": 16, + "cpuLoad": 0.0125, + "platform": "linux", + "uptime": 2109.6 + }, + { + "timestamp": 1754939971786, + "memoryTotal": 67427549184, + "memoryUsed": 5480218624, + "memoryFree": 61947330560, + "memoryUsagePercent": 8.12756609178435, + "memoryEfficiency": 91.87243390821565, + "cpuCount": 16, + "cpuLoad": 0.0125, + "platform": "linux", + "uptime": 2139.63 + }, + { + "timestamp": 1754940001816, + "memoryTotal": 67427549184, + "memoryUsed": 5490524160, + "memoryFree": 61937025024, + "memoryUsagePercent": 8.142849957392276, + "memoryEfficiency": 91.85715004260773, + "cpuCount": 16, + "cpuLoad": 0.01125, + "platform": "linux", + "uptime": 2169.66 + }, + { + "timestamp": 1754940031847, + "memoryTotal": 67427549184, + "memoryUsed": 5471019008, + "memoryFree": 61956530176, + "memoryUsagePercent": 8.113922386635146, + "memoryEfficiency": 91.88607761336485, + "cpuCount": 16, + "cpuLoad": 0.006875, + "platform": "linux", + "uptime": 2199.69 + }, + { + "timestamp": 1754940061877, + "memoryTotal": 67427549184, + "memoryUsed": 5486489600, + "memoryFree": 61941059584, + "memoryUsagePercent": 8.13686640905213, + "memoryEfficiency": 91.86313359094787, + "cpuCount": 16, + "cpuLoad": 0.004375, + "platform": "linux", + "uptime": 2229.72 + }, + { + "timestamp": 1754940091907, + "memoryTotal": 67427549184, + "memoryUsed": 5468217344, + "memoryFree": 61959331840, + "memoryUsagePercent": 8.109767313473055, + "memoryEfficiency": 91.89023268652694, + "cpuCount": 16, + "cpuLoad": 0.011875, + "platform": "linux", + "uptime": 2259.75 + }, + { + "timestamp": 1754940121936, + "memoryTotal": 67427549184, + "memoryUsed": 5474004992, + "memoryFree": 61953544192, + "memoryUsagePercent": 8.11835081987369, + "memoryEfficiency": 91.88164918012632, + "cpuCount": 16, + "cpuLoad": 0.006875, + "platform": "linux", + "uptime": 2289.78 + }, + { + "timestamp": 1754940151967, + "memoryTotal": 67427549184, + "memoryUsed": 5491593216, + "memoryFree": 61935955968, + "memoryUsagePercent": 8.144435445835706, + "memoryEfficiency": 91.85556455416429, + "cpuCount": 16, + "cpuLoad": 0.026875, + "platform": "linux", + "uptime": 2319.81 + }, + { + "timestamp": 1754940181997, + "memoryTotal": 67427549184, + "memoryUsed": 5475098624, + "memoryFree": 61952450560, + "memoryUsagePercent": 8.119972756327314, + "memoryEfficiency": 91.88002724367269, + "cpuCount": 16, + "cpuLoad": 0.025, + "platform": "linux", + "uptime": 2349.84 + }, + { + "timestamp": 1754940212028, + "memoryTotal": 67427549184, + "memoryUsed": 5479395328, + "memoryFree": 61948153856, + "memoryUsagePercent": 8.12634508344286, + "memoryEfficiency": 91.87365491655714, + "cpuCount": 16, + "cpuLoad": 0.023125, + "platform": "linux", + "uptime": 2379.87 + }, + { + "timestamp": 1754940242058, + "memoryTotal": 67427549184, + "memoryUsed": 5483745280, + "memoryFree": 61943803904, + "memoryUsagePercent": 8.132796381247157, + "memoryEfficiency": 91.86720361875284, + "cpuCount": 16, + "cpuLoad": 0.01875, + "platform": "linux", + "uptime": 2409.9 + }, + { + "timestamp": 1754940272088, + "memoryTotal": 67427549184, + "memoryUsed": 5515014144, + "memoryFree": 61912535040, + "memoryUsagePercent": 8.179170399550378, + "memoryEfficiency": 91.82082960044963, + "cpuCount": 16, + "cpuLoad": 0.015625, + "platform": "linux", + "uptime": 2439.93 + }, + { + "timestamp": 1754940302117, + "memoryTotal": 67427549184, + "memoryUsed": 5493702656, + "memoryFree": 61933846528, + "memoryUsagePercent": 8.147563900044005, + "memoryEfficiency": 91.852436099956, + "cpuCount": 16, + "cpuLoad": 0.009375, + "platform": "linux", + "uptime": 2469.96 + }, + { + "timestamp": 1754940332148, + "memoryTotal": 67427549184, + "memoryUsed": 5462683648, + "memoryFree": 61964865536, + "memoryUsagePercent": 8.10156043651109, + "memoryEfficiency": 91.8984395634889, + "cpuCount": 16, + "cpuLoad": 0.010625, + "platform": "linux", + "uptime": 2499.99 + }, + { + "timestamp": 1754940362178, + "memoryTotal": 67427549184, + "memoryUsed": 5464391680, + "memoryFree": 61963157504, + "memoryUsagePercent": 8.104093573219558, + "memoryEfficiency": 91.89590642678044, + "cpuCount": 16, + "cpuLoad": 0.04125, + "platform": "linux", + "uptime": 2530.02 + }, + { + "timestamp": 1754940392208, + "memoryTotal": 67427549184, + "memoryUsed": 5502496768, + "memoryFree": 61925052416, + "memoryUsagePercent": 8.160606213025012, + "memoryEfficiency": 91.839393786975, + "cpuCount": 16, + "cpuLoad": 0.025, + "platform": "linux", + "uptime": 2560.05 + }, + { + "timestamp": 1754940422238, + "memoryTotal": 67427549184, + "memoryUsed": 5514711040, + "memoryFree": 61912838144, + "memoryUsagePercent": 8.17872087409132, + "memoryEfficiency": 91.82127912590867, + "cpuCount": 16, + "cpuLoad": 0.021875, + "platform": "linux", + "uptime": 2590.08 + }, + { + "timestamp": 1754940452268, + "memoryTotal": 67427549184, + "memoryUsed": 5476052992, + "memoryFree": 61951496192, + "memoryUsagePercent": 8.121388154056506, + "memoryEfficiency": 91.8786118459435, + "cpuCount": 16, + "cpuLoad": 0.020625, + "platform": "linux", + "uptime": 2620.11 + }, + { + "timestamp": 1754940482298, + "memoryTotal": 67427549184, + "memoryUsed": 5474582528, + "memoryFree": 61952966656, + "memoryUsagePercent": 8.119207348113244, + "memoryEfficiency": 91.88079265188675, + "cpuCount": 16, + "cpuLoad": 0.0125, + "platform": "linux", + "uptime": 2650.14 + }, + { + "timestamp": 1754940512328, + "memoryTotal": 67427549184, + "memoryUsed": 5500407808, + "memoryFree": 61927141376, + "memoryUsagePercent": 8.15750813215854, + "memoryEfficiency": 91.84249186784146, + "cpuCount": 16, + "cpuLoad": 0.01125, + "platform": "linux", + "uptime": 2680.17 + }, + { + "timestamp": 1754940542358, + "memoryTotal": 67427549184, + "memoryUsed": 5474181120, + "memoryFree": 61953368064, + "memoryUsagePercent": 8.118612030613413, + "memoryEfficiency": 91.8813879693866, + "cpuCount": 16, + "cpuLoad": 0.006875, + "platform": "linux", + "uptime": 2710.2 + }, + { + "timestamp": 1754940572388, + "memoryTotal": 67427549184, + "memoryUsed": 5464346624, + "memoryFree": 61963202560, + "memoryUsagePercent": 8.104026751867535, + "memoryEfficiency": 91.89597324813246, + "cpuCount": 16, + "cpuLoad": 0.004375, + "platform": "linux", + "uptime": 2740.23 + }, + { + "timestamp": 1754940602419, + "memoryTotal": 67427549184, + "memoryUsed": 5476757504, + "memoryFree": 61950791680, + "memoryUsagePercent": 8.122432997015395, + "memoryEfficiency": 91.8775670029846, + "cpuCount": 16, + "cpuLoad": 0.0025, + "platform": "linux", + "uptime": 2770.26 + }, + { + "timestamp": 1754940632450, + "memoryTotal": 67427549184, + "memoryUsed": 5431926784, + "memoryFree": 61995622400, + "memoryUsagePercent": 8.055945751753574, + "memoryEfficiency": 91.94405424824643, + "cpuCount": 16, + "cpuLoad": 0.00625, + "platform": "linux", + "uptime": 2800.3 + }, + { + "timestamp": 1754940662481, + "memoryTotal": 67427549184, + "memoryUsed": 5450612736, + "memoryFree": 61976936448, + "memoryUsagePercent": 8.083658388837577, + "memoryEfficiency": 91.91634161116242, + "cpuCount": 16, + "cpuLoad": 0.00375, + "platform": "linux", + "uptime": 2830.33 + }, + { + "timestamp": 1754940692512, + "memoryTotal": 67427549184, + "memoryUsed": 5465513984, + "memoryFree": 61962035200, + "memoryUsagePercent": 8.10575803235174, + "memoryEfficiency": 91.89424196764826, + "cpuCount": 16, + "cpuLoad": 0.0025, + "platform": "linux", + "uptime": 2860.36 + }, + { + "timestamp": 1754940722542, + "memoryTotal": 67427549184, + "memoryUsed": 5456650240, + "memoryFree": 61970898944, + "memoryUsagePercent": 8.092612450008517, + "memoryEfficiency": 91.90738754999148, + "cpuCount": 16, + "cpuLoad": 0.009375, + "platform": "linux", + "uptime": 2890.39 + }, + { + "timestamp": 1754940752566, + "memoryTotal": 67427549184, + "memoryUsed": 5474717696, + "memoryFree": 61952831488, + "memoryUsagePercent": 8.11940781216931, + "memoryEfficiency": 91.88059218783069, + "cpuCount": 16, + "cpuLoad": 0.015, + "platform": "linux", + "uptime": 2920.41 + }, + { + "timestamp": 1754940782596, + "memoryTotal": 67427549184, + "memoryUsed": 5449969664, + "memoryFree": 61977579520, + "memoryUsagePercent": 8.082704665904174, + "memoryEfficiency": 91.91729533409583, + "cpuCount": 16, + "cpuLoad": 0.00875, + "platform": "linux", + "uptime": 2950.44 + }, + { + "timestamp": 1754940812626, + "memoryTotal": 67427549184, + "memoryUsed": 5446242304, + "memoryFree": 61981306880, + "memoryUsagePercent": 8.07717671769145, + "memoryEfficiency": 91.92282328230854, + "cpuCount": 16, + "cpuLoad": 0.005625, + "platform": "linux", + "uptime": 2980.47 + }, + { + "timestamp": 1754940842657, + "memoryTotal": 67427549184, + "memoryUsed": 5460099072, + "memoryFree": 61967450112, + "memoryUsagePercent": 8.097727320772377, + "memoryEfficiency": 91.90227267922762, + "cpuCount": 16, + "cpuLoad": 0.013125, + "platform": "linux", + "uptime": 3010.5 + }, + { + "timestamp": 1754940872688, + "memoryTotal": 67427549184, + "memoryUsed": 5437878272, + "memoryFree": 61989670912, + "memoryUsagePercent": 8.064772244888834, + "memoryEfficiency": 91.93522775511117, + "cpuCount": 16, + "cpuLoad": 0.011875, + "platform": "linux", + "uptime": 3040.53 + }, + { + "timestamp": 1754940902695, + "memoryTotal": 67427549184, + "memoryUsed": 5459812352, + "memoryFree": 61967736832, + "memoryUsagePercent": 8.097302093986784, + "memoryEfficiency": 91.90269790601322, + "cpuCount": 16, + "cpuLoad": 0.006875, + "platform": "linux", + "uptime": 3070.54 + }, + { + "timestamp": 1754940932724, + "memoryTotal": 67427549184, + "memoryUsed": 5446483968, + "memoryFree": 61981065216, + "memoryUsagePercent": 8.077535123125024, + "memoryEfficiency": 91.92246487687498, + "cpuCount": 16, + "cpuLoad": 0.004375, + "platform": "linux", + "uptime": 3100.57 + }, + { + "timestamp": 1754940962755, + "memoryTotal": 67427549184, + "memoryUsed": 5443784704, + "memoryFree": 61983764480, + "memoryUsagePercent": 8.073531916672074, + "memoryEfficiency": 91.92646808332793, + "cpuCount": 16, + "cpuLoad": 0.0025, + "platform": "linux", + "uptime": 3130.6 + }, + { + "timestamp": 1754940992786, + "memoryTotal": 67427549184, + "memoryUsed": 5448683520, + "memoryFree": 61978865664, + "memoryUsagePercent": 8.080797220037367, + "memoryEfficiency": 91.91920277996263, + "cpuCount": 16, + "cpuLoad": 0.00125, + "platform": "linux", + "uptime": 3160.63 + }, + { + "timestamp": 1754941022816, + "memoryTotal": 67427549184, + "memoryUsed": 5467258880, + "memoryFree": 61960290304, + "memoryUsagePercent": 8.108345841075499, + "memoryEfficiency": 91.8916541589245, + "cpuCount": 16, + "cpuLoad": 0.000625, + "platform": "linux", + "uptime": 3190.66 + }, + { + "timestamp": 1754941052846, + "memoryTotal": 67427549184, + "memoryUsed": 5481881600, + "memoryFree": 61945667584, + "memoryUsagePercent": 8.130032407140797, + "memoryEfficiency": 91.8699675928592, + "cpuCount": 16, + "cpuLoad": 0.015, + "platform": "linux", + "uptime": 3220.69 + }, + { + "timestamp": 1754941082877, + "memoryTotal": 67427549184, + "memoryUsed": 5482467328, + "memoryFree": 61945081856, + "memoryUsagePercent": 8.130901084717083, + "memoryEfficiency": 91.86909891528292, + "cpuCount": 16, + "cpuLoad": 0.0175, + "platform": "linux", + "uptime": 3250.72 + }, + { + "timestamp": 1754941112908, + "memoryTotal": 67427549184, + "memoryUsed": 5474226176, + "memoryFree": 61953323008, + "memoryUsagePercent": 8.118678851965434, + "memoryEfficiency": 91.88132114803457, + "cpuCount": 16, + "cpuLoad": 0.015, + "platform": "linux", + "uptime": 3280.75 + }, + { + "timestamp": 1754941142939, + "memoryTotal": 67427549184, + "memoryUsed": 5510774784, + "memoryFree": 61916774400, + "memoryUsagePercent": 8.17288311779195, + "memoryEfficiency": 91.82711688220805, + "cpuCount": 16, + "cpuLoad": 0.013125, + "platform": "linux", + "uptime": 3310.78 + }, + { + "timestamp": 1754941172969, + "memoryTotal": 67427549184, + "memoryUsed": 5487484928, + "memoryFree": 61940064256, + "memoryUsagePercent": 8.138342553464978, + "memoryEfficiency": 91.86165744653502, + "cpuCount": 16, + "cpuLoad": 0.011875, + "platform": "linux", + "uptime": 3340.81 + }, + { + "timestamp": 1754941202999, + "memoryTotal": 67427549184, + "memoryUsed": 5459656704, + "memoryFree": 61967892480, + "memoryUsagePercent": 8.097071256588888, + "memoryEfficiency": 91.90292874341111, + "cpuCount": 16, + "cpuLoad": 0.023125, + "platform": "linux", + "uptime": 3370.84 + }, + { + "timestamp": 1754941233029, + "memoryTotal": 67427549184, + "memoryUsed": 5471588352, + "memoryFree": 61955960832, + "memoryUsagePercent": 8.114766765537968, + "memoryEfficiency": 91.88523323446204, + "cpuCount": 16, + "cpuLoad": 0.026875, + "platform": "linux", + "uptime": 3400.87 + }, + { + "timestamp": 1754941263059, + "memoryTotal": 67427549184, + "memoryUsed": 5503422464, + "memoryFree": 61924126720, + "memoryUsagePercent": 8.161979088075645, + "memoryEfficiency": 91.83802091192436, + "cpuCount": 16, + "cpuLoad": 0.02125, + "platform": "linux", + "uptime": 3430.9 + }, + { + "timestamp": 1754941293088, + "memoryTotal": 67427549184, + "memoryUsed": 5492764672, + "memoryFree": 61934784512, + "memoryUsagePercent": 8.146172800988277, + "memoryEfficiency": 91.85382719901172, + "cpuCount": 16, + "cpuLoad": 0.016875, + "platform": "linux", + "uptime": 3460.93 + }, + { + "timestamp": 1754941323118, + "memoryTotal": 67427549184, + "memoryUsed": 5462343680, + "memoryFree": 61965205504, + "memoryUsagePercent": 8.101056239036742, + "memoryEfficiency": 91.89894376096326, + "cpuCount": 16, + "cpuLoad": 0.024375, + "platform": "linux", + "uptime": 3490.96 + }, + { + "timestamp": 1754941353148, + "memoryTotal": 67427549184, + "memoryUsed": 5529944064, + "memoryFree": 61897605120, + "memoryUsagePercent": 8.201312565743098, + "memoryEfficiency": 91.7986874342569, + "cpuCount": 16, + "cpuLoad": 0.023125, + "platform": "linux", + "uptime": 3520.99 + }, + { + "timestamp": 1754941383178, + "memoryTotal": 67427549184, + "memoryUsed": 5515739136, + "memoryFree": 61911810048, + "memoryUsagePercent": 8.180245615851094, + "memoryEfficiency": 91.81975438414891, + "cpuCount": 16, + "cpuLoad": 0.016875, + "platform": "linux", + "uptime": 3551.02 + }, + { + "timestamp": 1754941413182, + "memoryTotal": 67427549184, + "memoryUsed": 5537660928, + "memoryFree": 61889888256, + "memoryUsagePercent": 8.212757240943946, + "memoryEfficiency": 91.78724275905606, + "cpuCount": 16, + "cpuLoad": 0.01, + "platform": "linux", + "uptime": 3581.03 } ] \ No newline at end of file diff --git a/.claude-flow/metrics/task-metrics.json b/.claude-flow/metrics/task-metrics.json index 2bde2e3248..c1e0b0ee26 100644 --- a/.claude-flow/metrics/task-metrics.json +++ b/.claude-flow/metrics/task-metrics.json @@ -1,10 +1,10 @@ [ { - "id": "cmd-hooks-1754939523883", + "id": "cmd-hooks-1754939615733", "type": "hooks", "success": true, - "duration": 7.573169000000007, - "timestamp": 1754939523891, + "duration": 7.660071000000016, + "timestamp": 1754939615741, "metadata": {} } ] \ No newline at end of file diff --git a/test-ruv-fann-gnn.js b/test-ruv-fann-gnn.js deleted file mode 100644 index ab464b5ef6..0000000000 --- a/test-ruv-fann-gnn.js +++ /dev/null @@ -1,150 +0,0 @@ -#!/usr/bin/env node - -import fs from 'fs'; -import path from 'path'; - -// Test both ruv-FANN and ruv-swarm for real GNN capabilities -async function testRuvFANNCapabilities() { - console.log('๐Ÿ”ฌ Comprehensive Analysis: ruv-FANN + ruv-swarm for Real GNN\n'); - console.log('โ•'.repeat(60)); - - // 1. Check WASM binaries - console.log('\n๐Ÿ“ฆ WASM Binary Analysis:'); - console.log('-'.repeat(40)); - - const wasmFiles = [ - 'ruv-fann.wasm', - 'ruv_swarm_wasm_bg.wasm', - 'ruv_swarm_simd.wasm', - 'neuro-divergent.wasm' - ]; - - for (const file of wasmFiles) { - const wasmPath = `/workspaces/claude-code-flow/node_modules/ruv-swarm/wasm/${file}`; - try { - const stats = fs.statSync(wasmPath); - const wasmBuffer = fs.readFileSync(wasmPath); - const isValid = WebAssembly.validate(wasmBuffer); - - console.log(`\n${file}:`); - console.log(` Size: ${(stats.size / 1024).toFixed(2)} KB`); - console.log(` Valid WASM: ${isValid ? 'โœ…' : 'โŒ'}`); - - // Check for neural network markers in binary - const binaryString = wasmBuffer.toString('latin1'); - const hasNeuralMarkers = binaryString.includes('neural') || binaryString.includes('network'); - const hasMatrixOps = binaryString.includes('matrix') || binaryString.includes('vector'); - const hasActivation = binaryString.includes('activation') || binaryString.includes('sigmoid'); - - console.log(` Neural markers: ${hasNeuralMarkers ? 'โœ…' : 'โŒ'}`); - console.log(` Matrix operations: ${hasMatrixOps ? 'โœ…' : 'โŒ'}`); - console.log(` Activation functions: ${hasActivation ? 'โœ…' : 'โŒ'}`); - - } catch (err) { - console.log(`${file}: โŒ Not found or error`); - } - } - - // 2. Test ruv-swarm GNN implementation - console.log('\n\n๐Ÿง  ruv-swarm GNN Capabilities:'); - console.log('-'.repeat(40)); - - try { - const { GNNModel } = await import('./node_modules/ruv-swarm/src/neural-models/gnn.js'); - console.log('โœ… GNN Model available'); - - // Check implementation details - const testGNN = new GNNModel({ - nodeDimensions: 64, - hiddenDimensions: 128, - numLayers: 2 - }); - - console.log('\nGNN Implementation Details:'); - console.log(` Message passing: ${testGNN.config.messagePassingSteps} steps`); - console.log(` Aggregation: ${testGNN.config.aggregation}`); - console.log(` Layers: ${testGNN.config.numLayers}`); - console.log(` Uses Float32Array: โœ…`); - - // Check weight initialization - const hasWeights = testGNN.messageWeights && testGNN.messageWeights.length > 0; - console.log(` Weight initialization: ${hasWeights ? 'โœ…' : 'โŒ'}`); - - } catch (err) { - console.log('โŒ GNN Model not available:', err.message); - } - - // 3. Analyze neural model types available - console.log('\n\n๐Ÿ“Š Available Neural Models:'); - console.log('-'.repeat(40)); - - const modelsPath = '/workspaces/claude-code-flow/node_modules/ruv-swarm/src/neural-models'; - try { - const modelFiles = fs.readdirSync(modelsPath); - const models = modelFiles.filter(f => f.endsWith('.js') && f !== 'index.js' && f !== 'base.js'); - - for (const model of models) { - const modelName = model.replace('.js', '').toUpperCase(); - console.log(` โ€ข ${modelName}`); - - // Check if it's a real implementation - const modelPath = path.join(modelsPath, model); - const content = fs.readFileSync(modelPath, 'utf8'); - const hasForward = content.includes('forward'); - const hasBackward = content.includes('backward'); - const usesFloat32 = content.includes('Float32Array'); - - if (hasForward || hasBackward || usesFloat32) { - console.log(` - Forward pass: ${hasForward ? 'โœ…' : 'โŒ'}`); - console.log(` - Backward pass: ${hasBackward ? 'โœ…' : 'โŒ'}`); - console.log(` - Float32Array: ${usesFloat32 ? 'โœ…' : 'โŒ'}`); - } - } - } catch (err) { - console.log('โŒ Could not analyze models:', err.message); - } - - // 4. Final verdict - console.log('\n\n๐ŸŽฏ FINAL VERDICT:'); - console.log('โ•'.repeat(60)); - - console.log('\n๐Ÿ“‹ What ruv-FANN + ruv-swarm Actually Provides:\n'); - - console.log('โœ… REAL Components:'); - console.log(' โ€ข Valid WebAssembly binaries (116-170 KB)'); - console.log(' โ€ข Neural network functions in WASM'); - console.log(' โ€ข Float32Array tensor operations'); - console.log(' โ€ข Multiple neural architectures (CNN, LSTM, GRU, Transformer, VAE)'); - console.log(' โ€ข Graph Neural Network implementation in JavaScript'); - console.log(' โ€ข Message passing and graph pooling'); - - console.log('\nโš ๏ธ Limitations:'); - console.log(' โ€ข GNN is JavaScript-based, not pure WASM'); - console.log(' โ€ข No dedicated graph convolution in WASM core'); - console.log(' โ€ข ruv-FANN is Rust rewrite, not original FANN C library'); - console.log(' โ€ข Hybrid approach (WASM core + JS wrapper)'); - - console.log('\n๐Ÿ” For Graph Neural Networks Specifically:'); - console.log(' โ€ข ruv-swarm HAS a GNN implementation (src/neural-models/gnn.js)'); - console.log(' โ€ข Uses proper message passing algorithms'); - console.log(' โ€ข Implements graph pooling and aggregation'); - console.log(' โ€ข BUT: GNN logic is in JavaScript, not compiled WASM'); - - console.log('\n๐Ÿ’ก Bottom Line:'); - console.log(' ruv-FANN + ruv-swarm provides SEMI-REAL GNN capabilities.'); - console.log(' The neural network core is real (WASM), but GNN-specific'); - console.log(' operations are implemented in JavaScript on top of the'); - console.log(' WASM foundation. This is suitable for production use but'); - console.log(' not as performant as pure compiled GNN implementations.'); - - console.log('\n๐Ÿš€ Recommendation:'); - console.log(' YES, you can use ruv-FANN + ruv-swarm for real GNN tasks.'); - console.log(' It provides better performance than pure JS simulations'); - console.log(' through WASM acceleration for core neural operations,'); - console.log(' while GNN-specific logic runs in optimized JavaScript.'); - - console.log('\nโ•'.repeat(60)); -} - -// Run the comprehensive test -testRuvFANNCapabilities().catch(console.error); \ No newline at end of file diff --git a/test-ruv-swarm-gnn.js b/test-ruv-swarm-gnn.js deleted file mode 100644 index 149584273f..0000000000 --- a/test-ruv-swarm-gnn.js +++ /dev/null @@ -1,154 +0,0 @@ -#!/usr/bin/env node - -import { GNNModel } from './node_modules/ruv-swarm/src/neural-models/gnn.js'; - -// Test ruv-swarm's GNN implementation -async function testRuvSwarmGNN() { - console.log('๐Ÿงช Testing ruv-swarm GNN capabilities...\n'); - - // Create a GNN model - const gnnModel = new GNNModel({ - nodeDimensions: 128, - edgeDimensions: 64, - hiddenDimensions: 256, - outputDimensions: 128, - numLayers: 3, - aggregation: 'mean', - activation: 'relu', - dropoutRate: 0.2, - messagePassingSteps: 3 - }); - - console.log('โœ… GNN Model created successfully'); - console.log(' - Architecture: 3-layer Graph Neural Network'); - console.log(' - Node dimensions: 128'); - console.log(' - Hidden dimensions: 256'); - console.log(' - Message passing steps: 3\n'); - - // Create sample graph data - const numNodes = 10; - const numEdges = 15; - - // Create node features (Float32Array for WASM compatibility) - const nodeFeatures = new Float32Array(numNodes * 128); - for (let i = 0; i < nodeFeatures.length; i++) { - nodeFeatures[i] = Math.random(); - } - nodeFeatures.shape = [numNodes, 128]; - - // Create edge features - const edgeFeatures = new Float32Array(numEdges * 64); - for (let i = 0; i < edgeFeatures.length; i++) { - edgeFeatures[i] = Math.random(); - } - edgeFeatures.shape = [numEdges, 64]; - - // Create adjacency matrix (sparse representation) - const adjacency = []; - for (let i = 0; i < numEdges; i++) { - adjacency.push({ - source: Math.floor(Math.random() * numNodes), - target: Math.floor(Math.random() * numNodes), - edgeIndex: i - }); - } - - const graphData = { - nodes: nodeFeatures, - edges: edgeFeatures, - adjacency: adjacency - }; - - console.log('๐Ÿ“Š Graph data created:'); - console.log(` - Nodes: ${numNodes}`); - console.log(` - Edges: ${numEdges}`); - console.log(` - Using Float32Array (WASM-compatible)\n`); - - // Test forward pass - console.log('๐Ÿ”„ Running forward pass...'); - const startTime = Date.now(); - - try { - const output = await gnnModel.forward(graphData, false); - const endTime = Date.now(); - - console.log('โœ… Forward pass completed successfully'); - console.log(` - Execution time: ${endTime - startTime}ms`); - console.log(` - Output shape: [${output.shape ? output.shape.join(', ') : 'unknown'}]`); - console.log(` - Output type: ${output.constructor.name}\n`); - - // Test graph pooling - console.log('๐Ÿ”„ Testing graph pooling...'); - const pooled = gnnModel.graphPooling(output, 'mean'); - console.log('โœ… Graph pooling successful'); - console.log(` - Pooled output dimensions: ${pooled.length}\n`); - - // Check if using real neural operations - console.log('๐Ÿ” Verifying neural operations:'); - console.log(` - Using Float32Array: โœ… (WASM-compatible)`); - console.log(` - Weight initialization: โœ… (He initialization)`); - console.log(` - Message passing: โœ… (${gnnModel.config.messagePassingSteps} steps)`); - console.log(` - Aggregation method: โœ… (${gnnModel.config.aggregation})`); - console.log(` - Activation function: โœ… (${gnnModel.config.activation})\n`); - - } catch (error) { - console.error('โŒ Error during forward pass:', error.message); - } - - // Test training capabilities - console.log('๐ŸŽฏ Testing training capabilities...'); - - try { - // Create target outputs for training - const targets = new Float32Array(numNodes * 128); - for (let i = 0; i < targets.length; i++) { - targets[i] = Math.random(); - } - targets.shape = [numNodes, 128]; - - const trainingData = { - nodes: nodeFeatures, - edges: edgeFeatures, - adjacency: adjacency, - targets: targets - }; - - // Attempt backward pass - const loss = await gnnModel.backward(trainingData, 0.001); - console.log('โœ… Backward pass successful'); - console.log(` - Loss calculated: ${loss !== undefined ? 'โœ…' : 'โŒ'}`); - console.log(` - Gradients computed: โœ…`); - console.log(` - Weights updated: โœ…\n`); - - } catch (error) { - console.log('โš ๏ธ Training not fully implemented:', error.message); - console.log(' - This is expected for inference-only models\n'); - } - - // Summary - console.log('๐Ÿ“‹ Summary:'); - console.log('โ”'.repeat(50)); - console.log('ruv-swarm GNN Implementation Analysis:'); - console.log(''); - console.log('โœ… REAL Components:'); - console.log(' โ€ข Float32Array for tensor operations (WASM-ready)'); - console.log(' โ€ข Proper weight initialization (He, Xavier)'); - console.log(' โ€ข Message passing implementation'); - console.log(' โ€ข Graph pooling operations'); - console.log(' โ€ข Node and edge feature processing'); - console.log(''); - console.log('โš ๏ธ HYBRID Implementation:'); - console.log(' โ€ข Uses JavaScript with Float32Array (not full WASM)'); - console.log(' โ€ข Matrix operations in JS, not native WASM calls'); - console.log(' โ€ข No GPU acceleration'); - console.log(' โ€ข Training is partially implemented'); - console.log(''); - console.log('๐ŸŽฏ Verdict: SEMI-REAL GNN'); - console.log(' The implementation uses proper data structures'); - console.log(' and algorithms but executes in JavaScript rather'); - console.log(' than pure WASM for neural operations.'); - console.log('โ”'.repeat(50)); -} - -// Run the test -testRuvSwarmGNN().catch(console.error); \ No newline at end of file