agentic-flow 2.0.1-alpha.12 → 2.0.1-alpha.14

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 (27) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/cli/commands/hooks.d.ts.map +1 -1
  4. package/dist/cli/commands/hooks.js +6 -1
  5. package/dist/cli/commands/hooks.js.map +1 -1
  6. package/dist/intelligence/EmbeddingService.d.ts +95 -0
  7. package/dist/intelligence/EmbeddingService.d.ts.map +1 -0
  8. package/dist/intelligence/EmbeddingService.js +297 -0
  9. package/dist/intelligence/EmbeddingService.js.map +1 -0
  10. package/dist/intelligence/IntelligenceStore.d.ts +168 -0
  11. package/dist/intelligence/IntelligenceStore.d.ts.map +1 -0
  12. package/dist/intelligence/IntelligenceStore.js +364 -0
  13. package/dist/intelligence/IntelligenceStore.js.map +1 -0
  14. package/dist/intelligence/embedding-benchmark.d.ts +7 -0
  15. package/dist/intelligence/embedding-benchmark.d.ts.map +1 -0
  16. package/dist/intelligence/embedding-benchmark.js +151 -0
  17. package/dist/intelligence/embedding-benchmark.js.map +1 -0
  18. package/dist/mcp/fastmcp/tools/hooks/intelligence-bridge.d.ts +13 -0
  19. package/dist/mcp/fastmcp/tools/hooks/intelligence-bridge.d.ts.map +1 -1
  20. package/dist/mcp/fastmcp/tools/hooks/intelligence-bridge.js +48 -21
  21. package/dist/mcp/fastmcp/tools/hooks/intelligence-bridge.js.map +1 -1
  22. package/dist/mcp/fastmcp/tools/hooks/intelligence-tools.d.ts.map +1 -1
  23. package/dist/mcp/fastmcp/tools/hooks/intelligence-tools.js +8 -0
  24. package/dist/mcp/fastmcp/tools/hooks/intelligence-tools.js.map +1 -1
  25. package/package.json +3 -1
  26. package/wasm/reasoningbank/reasoningbank_wasm_bg.js +2 -2
  27. package/wasm/reasoningbank/reasoningbank_wasm_bg.wasm +0 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,54 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [2.0.1-alpha.14] - 2025-12-31
6
+
7
+ ### Added
8
+ - **ONNX Embeddings with SIMD**: Real semantic embeddings via ruvector-onnx-embeddings-wasm
9
+ - SIMD128 enabled for 6x faster embedding generation
10
+ - 100% semantic accuracy (correctly identifies related/unrelated texts)
11
+ - all-MiniLM-L6-v2 model (384 dimensions)
12
+ - Configure with `AGENTIC_FLOW_EMBEDDINGS=onnx`
13
+
14
+ - **EmbeddingService**: Unified embedding interface
15
+ - Simple backend: ~0.04ms (hash-based, fast but not semantic)
16
+ - ONNX backend: ~400ms with SIMD (true semantic similarity)
17
+ - LRU cache for repeated embeddings
18
+ - Auto-fallback to simple if ONNX fails
19
+
20
+ - **Embedding Benchmark**: Compare simple vs ONNX embeddings
21
+ - Run with: `node --experimental-wasm-modules dist/intelligence/embedding-benchmark.js`
22
+ - Shows latency, accuracy, and semantic similarity comparisons
23
+
24
+ ### Changed
25
+ - Updated intelligence-bridge.ts to use EmbeddingService
26
+ - Added onnxruntime-node and ruvector-onnx-embeddings-wasm dependencies
27
+
28
+ ### Performance (SIMD enabled)
29
+ - Cold start: ~1.5s (includes model download)
30
+ - Warm embedding: ~400ms per text
31
+ - Batch embedding: ~400ms per text (sequential)
32
+
33
+ ## [2.0.1-alpha.13] - 2025-12-31
34
+
35
+ ### Added
36
+ - **SQLite Persistence**: Learning data now persists across npx calls and CLI invocations
37
+ - New `IntelligenceStore` class with cross-platform SQLite (better-sqlite3)
38
+ - Stores trajectories, routings, patterns, and operations
39
+ - Works on Linux, macOS, and Windows
40
+ - Database stored in `.agentic-flow/intelligence.db`
41
+
42
+ ### Changed
43
+ - **Intelligence Stats**: Now shows persisted data from SQLite
44
+ - Trajectories count persists across CLI invocations
45
+ - Routings count persists across CLI invocations
46
+ - New "Persistence (SQLite)" section in stats output
47
+
48
+ ### Verified
49
+ - Trajectories persist: created in one call, visible in next
50
+ - Routings persist: recorded for each routing decision
51
+ - Cross-platform SQLite with WAL mode for better concurrency
52
+
5
53
  ## [2.0.1-alpha.12] - 2025-12-31
6
54
 
7
55
  ### Fixed