@claude-flow/cli 3.0.0-alpha.176 → 3.0.0-alpha.178
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/README.md +77 -2
- package/dist/src/commands/hooks.d.ts.map +1 -1
- package/dist/src/commands/hooks.js +18 -0
- package/dist/src/commands/hooks.js.map +1 -1
- package/dist/src/commands/neural.d.ts.map +1 -1
- package/dist/src/commands/neural.js +248 -63
- package/dist/src/commands/neural.js.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.d.ts.map +1 -1
- package/dist/src/mcp-tools/hooks-tools.js +169 -11
- package/dist/src/mcp-tools/hooks-tools.js.map +1 -1
- package/dist/src/memory/intelligence.d.ts +13 -1
- package/dist/src/memory/intelligence.d.ts.map +1 -1
- package/dist/src/memory/intelligence.js +59 -4
- package/dist/src/memory/intelligence.js.map +1 -1
- package/dist/src/ruvector/index.d.ts +1 -0
- package/dist/src/ruvector/index.d.ts.map +1 -1
- package/dist/src/ruvector/index.js +1 -0
- package/dist/src/ruvector/index.js.map +1 -1
- package/dist/src/ruvector/semantic-router.d.ts +77 -0
- package/dist/src/ruvector/semantic-router.d.ts.map +1 -0
- package/dist/src/ruvector/semantic-router.js +178 -0
- package/dist/src/ruvector/semantic-router.js.map +1 -0
- package/dist/src/services/ruvector-training.d.ts +45 -2
- package/dist/src/services/ruvector-training.d.ts.map +1 -1
- package/dist/src/services/ruvector-training.js +143 -2
- package/dist/src/services/ruvector-training.js.map +1 -1
- package/dist/src/tests/ruvector-integration-benchmark.d.ts +6 -0
- package/dist/src/tests/ruvector-integration-benchmark.d.ts.map +1 -0
- package/dist/src/tests/ruvector-integration-benchmark.js +385 -0
- package/dist/src/tests/ruvector-integration-benchmark.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -137,7 +137,7 @@ flowchart TB
|
|
|
137
137
|
| **HNSW** | Hierarchical Navigable Small World vector search | 150x-12,500x faster |
|
|
138
138
|
| **ReasoningBank** | Pattern storage with trajectory learning | RETRIEVE→JUDGE→DISTILL |
|
|
139
139
|
| **Hyperbolic** | Poincaré ball embeddings for hierarchical data | Better code relationships |
|
|
140
|
-
| **LoRA/MicroLoRA** | Low-Rank Adaptation for efficient fine-tuning |
|
|
140
|
+
| **LoRA/MicroLoRA** | Low-Rank Adaptation for efficient fine-tuning | **<3μs** adaptation, 383k ops/sec |
|
|
141
141
|
| **Int8 Quantization** | Memory-efficient weight storage | 3.92x memory reduction |
|
|
142
142
|
| **9 RL Algorithms** | Q-Learning, SARSA, A2C, PPO, DQN, Decision Transformer, etc. | Task-specific learning |
|
|
143
143
|
|
|
@@ -2706,16 +2706,27 @@ npx claude-flow@v3alpha transfer-store publish --input ./my-patterns.json --cate
|
|
|
2706
2706
|
|
|
2707
2707
|
### Plugin Store
|
|
2708
2708
|
|
|
2709
|
-
Discover and install community plugins from the **live IPFS registry** with 19 official plugins.
|
|
2709
|
+
Discover and install community plugins from the **live IPFS registry** with 19 official plugins and **live ratings** via Cloud Function.
|
|
2710
2710
|
|
|
2711
2711
|
| Command | Description |
|
|
2712
2712
|
|---------|-------------|
|
|
2713
|
+
| `plugins list` | List available plugins with live ratings |
|
|
2714
|
+
| `plugins rate` | Rate a plugin (1-5 stars) |
|
|
2713
2715
|
| `transfer plugin-search` | Search plugins by type or category |
|
|
2714
2716
|
| `transfer plugin-info` | Get plugin details and dependencies |
|
|
2715
2717
|
| `transfer plugin-featured` | Browse featured plugins |
|
|
2716
2718
|
| `transfer plugin-official` | List official/verified plugins |
|
|
2717
2719
|
|
|
2718
2720
|
```bash
|
|
2721
|
+
# List plugins with live ratings from Cloud Function
|
|
2722
|
+
npx claude-flow@v3alpha plugins list
|
|
2723
|
+
|
|
2724
|
+
# Filter by type
|
|
2725
|
+
npx claude-flow@v3alpha plugins list --type integration
|
|
2726
|
+
|
|
2727
|
+
# Rate a plugin
|
|
2728
|
+
npx claude-flow@v3alpha plugins rate --name @claude-flow/embeddings --rating 5
|
|
2729
|
+
|
|
2719
2730
|
# Search for MCP tool plugins
|
|
2720
2731
|
npx claude-flow@v3alpha transfer plugin-search --type "mcp-tool" --verified
|
|
2721
2732
|
|
|
@@ -2858,6 +2869,70 @@ npx claude-flow@v3alpha hooks route --task "review authentication code" --use-pa
|
|
|
2858
2869
|
npx claude-flow@v3alpha transfer-store download --id "security-essentials" --apply
|
|
2859
2870
|
```
|
|
2860
2871
|
|
|
2872
|
+
### RuVector WASM Neural Training
|
|
2873
|
+
|
|
2874
|
+
Real WASM-accelerated neural training using `@ruvector/learning-wasm` and `@ruvector/attention` packages for state-of-the-art performance.
|
|
2875
|
+
|
|
2876
|
+
| Component | Performance | Description |
|
|
2877
|
+
|-----------|-------------|-------------|
|
|
2878
|
+
| **MicroLoRA** | **<3μs adaptation** | Rank-2 LoRA with 105x faster than 100μs target |
|
|
2879
|
+
| **ScopedLoRA** | 17 operators | Per-task-type learning (coordination, security, testing) |
|
|
2880
|
+
| **FlashAttention** | 9,127 ops/sec | Memory-efficient attention mechanism |
|
|
2881
|
+
| **TrajectoryBuffer** | 10k capacity | Success/failure learning from patterns |
|
|
2882
|
+
| **InfoNCE Loss** | Contrastive | Temperature-scaled contrastive learning |
|
|
2883
|
+
| **AdamW Optimizer** | β1=0.9, β2=0.999 | Weight decay training optimization |
|
|
2884
|
+
|
|
2885
|
+
```bash
|
|
2886
|
+
# List available pre-trained models from IPFS registry
|
|
2887
|
+
npx claude-flow@v3alpha neural list
|
|
2888
|
+
|
|
2889
|
+
# List models by category
|
|
2890
|
+
npx claude-flow@v3alpha neural list --category security
|
|
2891
|
+
|
|
2892
|
+
# Train with WASM acceleration
|
|
2893
|
+
npx claude-flow@v3alpha neural train -p coordination -e 100 --wasm --flash --contrastive
|
|
2894
|
+
|
|
2895
|
+
# Train security patterns
|
|
2896
|
+
npx claude-flow@v3alpha neural train -p security --wasm --contrastive
|
|
2897
|
+
|
|
2898
|
+
# Benchmark WASM performance
|
|
2899
|
+
npx claude-flow@v3alpha neural benchmark -d 256 -i 1000
|
|
2900
|
+
|
|
2901
|
+
# Import pre-trained models
|
|
2902
|
+
npx claude-flow@v3alpha neural import --cid QmNr1yYMKi7YBaL8JSztQyuB5ZUaTdRMLxJC1pBpGbjsTc
|
|
2903
|
+
|
|
2904
|
+
# Export trained patterns to IPFS
|
|
2905
|
+
npx claude-flow@v3alpha neural export --ipfs --sign
|
|
2906
|
+
```
|
|
2907
|
+
|
|
2908
|
+
#### Benchmark Results
|
|
2909
|
+
|
|
2910
|
+
```
|
|
2911
|
+
+---------------------+---------------+-------------+
|
|
2912
|
+
| Mechanism | Avg Time (ms) | Ops/sec |
|
|
2913
|
+
+---------------------+---------------+-------------+
|
|
2914
|
+
| DotProduct | 0.1063 | 9,410 |
|
|
2915
|
+
| FlashAttention | 0.1096 | 9,127 |
|
|
2916
|
+
| MultiHead (4 heads) | 0.1661 | 6,020 |
|
|
2917
|
+
| MicroLoRA | 0.0026 | 383,901 |
|
|
2918
|
+
+---------------------+---------------+-------------+
|
|
2919
|
+
MicroLoRA Target (<100μs): ✓ PASS (2.60μs actual)
|
|
2920
|
+
```
|
|
2921
|
+
|
|
2922
|
+
#### Training Options
|
|
2923
|
+
|
|
2924
|
+
| Flag | Description | Default |
|
|
2925
|
+
|------|-------------|---------|
|
|
2926
|
+
| `--wasm` | Enable RuVector WASM acceleration | `true` |
|
|
2927
|
+
| `--flash` | Use Flash Attention | `true` |
|
|
2928
|
+
| `--moe` | Enable Mixture of Experts routing | `false` |
|
|
2929
|
+
| `--hyperbolic` | Hyperbolic attention for hierarchical patterns | `false` |
|
|
2930
|
+
| `--contrastive` | InfoNCE contrastive learning | `true` |
|
|
2931
|
+
| `--curriculum` | Progressive difficulty curriculum | `false` |
|
|
2932
|
+
| `-e, --epochs` | Number of training epochs | `50` |
|
|
2933
|
+
| `-d, --dim` | Embedding dimension (max 256) | `256` |
|
|
2934
|
+
| `-l, --learning-rate` | Learning rate | `0.01` |
|
|
2935
|
+
|
|
2861
2936
|
</details>
|
|
2862
2937
|
|
|
2863
2938
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/commands/hooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAiC,MAAM,aAAa,CAAC;AAulI1E,eAAO,MAAM,YAAY,EAAE,OAiG1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -454,6 +454,24 @@ const routeCommand = {
|
|
|
454
454
|
output.printJson(result);
|
|
455
455
|
return { success: true, data: result };
|
|
456
456
|
}
|
|
457
|
+
// Show routing method info
|
|
458
|
+
if (result.routing) {
|
|
459
|
+
output.writeln();
|
|
460
|
+
output.writeln(output.bold('Routing Method'));
|
|
461
|
+
output.printList([
|
|
462
|
+
`Method: ${result.routing.method === 'semantic' ? output.success('semantic (47k routes/s)') : 'keyword'}`,
|
|
463
|
+
`Latency: ${result.routing.latencyMs.toFixed(3)}ms`,
|
|
464
|
+
result.matchedPattern ? `Matched Pattern: ${result.matchedPattern}` : null,
|
|
465
|
+
].filter(Boolean));
|
|
466
|
+
// Show semantic matches if available
|
|
467
|
+
if (result.semanticMatches && result.semanticMatches.length > 0) {
|
|
468
|
+
output.writeln();
|
|
469
|
+
output.writeln(output.dim('Semantic Matches:'));
|
|
470
|
+
result.semanticMatches.forEach(m => {
|
|
471
|
+
output.writeln(` ${m.pattern}: ${(m.score * 100).toFixed(1)}%`);
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
}
|
|
457
475
|
output.writeln();
|
|
458
476
|
output.printBox([
|
|
459
477
|
`Agent: ${output.highlight(result.primaryAgent.type)}`,
|