@claude-flow/cli 3.0.0-alpha.177 → 3.0.0-alpha.179

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 CHANGED
@@ -139,6 +139,7 @@ flowchart TB
139
139
  | **Hyperbolic** | Poincaré ball embeddings for hierarchical data | Better code relationships |
140
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
+ | **SemanticRouter** | Semantic task routing with cosine similarity | **34,798 routes/s**, 0.029ms |
142
143
  | **9 RL Algorithms** | Q-Learning, SARSA, A2C, PPO, DQN, Decision Transformer, etc. | Task-specific learning |
143
144
 
144
145
  ```bash
@@ -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;AAyjI1E,eAAO,MAAM,YAAY,EAAE,OAiG1B,CAAC;AAEF,eAAe,YAAY,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;AA4lI1E,eAAO,MAAM,YAAY,EAAE,OAiG1B,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -454,6 +454,28 @@ 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
+ const methodDisplay = result.routing.method.startsWith('semantic')
462
+ ? output.success(`${result.routing.method} (${result.routing.backend || 'semantic'})`)
463
+ : 'keyword';
464
+ output.printList([
465
+ `Method: ${methodDisplay}`,
466
+ result.routing.backend ? `Backend: ${result.routing.backend}` : null,
467
+ `Latency: ${result.routing.latencyMs.toFixed(3)}ms`,
468
+ result.matchedPattern ? `Matched Pattern: ${result.matchedPattern}` : null,
469
+ ].filter(Boolean));
470
+ // Show semantic matches if available
471
+ if (result.semanticMatches && result.semanticMatches.length > 0) {
472
+ output.writeln();
473
+ output.writeln(output.dim('Semantic Matches:'));
474
+ result.semanticMatches.forEach(m => {
475
+ output.writeln(` ${m.pattern}: ${(m.score * 100).toFixed(1)}%`);
476
+ });
477
+ }
478
+ }
457
479
  output.writeln();
458
480
  output.printBox([
459
481
  `Agent: ${output.highlight(result.primaryAgent.type)}`,