Commit graph

573 commits

Author SHA1 Message Date
rUv
8f69eddf97 Merge branch 'main' into feature/mcp-server
Resolved conflicts in examples/edge/README.md by keeping Web Workers
documentation additions from feature branch.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:24:48 +00:00
rUv
dcd1132675 feat(edge): add Web Workers configuration to generator
- Add Concurrency section with 4 worker modes:
  - Main Thread (no workers, simple)
  - Worker Pool (auto-scaling, recommended)
  - Dedicated (one worker per task type)
  - Shared Worker (cross-tab coordination)
- Add comprehensive worker templates with code examples
- Update stats to show worker count
- Include WorkerPool class with batch operations
- Add SharedWorker cross-tab example

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:15:53 +00:00
rUv
c40e28049c docs(edge): add Web Workers section with understandable language
- Add comprehensive Web Workers section explaining UI responsiveness
- Include WorkerPool usage examples with practical code
- Add feature table explaining auto-scaling, load balancing, timeouts
- Add "when to use workers" guidance table
- Update Table of Contents with Consensus Modes and Web Workers
- Add WorkerPool to API Reference section

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:13:55 +00:00
rUv
89bbae1485 docs(edge): update source README with npm package and consensus modes
- Add npm package section at top with install commands
- Link to pkg/README.md for JavaScript documentation
- Clarify Raft vs Gossip+CRDT consensus modes
- Add Web Worker pool to distributed systems features
- Update WASM badge to show 364KB size

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:11:09 +00:00
github-actions[bot]
5a0f2e2e35 chore: Update NAPI-RS binaries for all platforms
Built from commit 03fcbd45e5

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2025-12-31 22:11:01 +00:00
rUv
421279b61e feat(edge): add Web Worker pool for parallel operations
- Include worker.js and worker-pool.js in package
- Add exports for @ruvector/edge/worker and @ruvector/edge/worker-pool
- Document WorkerPool API with examples
- Features: round-robin distribution, batch splitting, load balancing
- Keeps UI responsive during heavy WASM operations
- Bump to v0.1.9

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 22:10:04 +00:00
rUv
03fcbd45e5
Update README.md 2025-12-31 17:07:19 -05:00
github-actions[bot]
ed13fd2939 chore: Update NAPI-RS binaries for all platforms
Built from commit 2e49f288e3

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2025-12-31 21:31:36 +00:00
rUv
2e49f288e3
Merge pull request #93 from ruvnet/feature/mcp-server
feat: RuVector Intelligence v2.1 - Multi-Algorithm Learning, TensorCompress, Edge Swarm
2025-12-31 16:28:06 -05:00
rUv
81d10f4224 docs(edge): clarify Raft vs Gossip+CRDT consensus modes
Raft assumes stable membership and trusted nodes - not suitable for
wild browser swarms. Updated docs to:

- Position Raft for "trusted cohorts" (teams, enterprise, private relays)
- Add Gossip + CRDT for "open swarms" (public, high-churn, adversarial)
- Explain when to use each mode with code examples
- Update capability tables to reflect both consensus strategies

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 21:09:49 +00:00
rUv
6369a145da docs(edge): highlight self-learning capabilities in intro
- Update heading to "Free Self-Learning AI Swarms at the Edge"
- Emphasize self-optimizing agents that get smarter over time
- Mention LoRA fine-tuning, EWC++ continual learning, ReasoningBank
- Bump to v0.1.7

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 21:06:28 +00:00
rUv
94bc0f817d docs(edge): clarify full platform capabilities and edge-full integration
- Add comprehensive platform diagram showing edge vs edge-full
- List all capabilities of edge-full modules
- Add optional/peer dependency on @ruvector/edge-full
- Show usage patterns for both packages together
- Bump to v0.1.6

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 21:03:45 +00:00
rUv
53c9f57e13 feat(edge-full): add unified WASM package with all modules
- Create @ruvector/edge-full package bundling 6 WASM modules:
  - edge: crypto, vectors, consensus (364KB)
  - graph: Neo4j-style graph DB with Cypher (288KB)
  - rvlite: SQL/SPARQL/Cypher vector DB (260KB)
  - sona: self-learning neural router (238KB)
  - dag: workflow orchestration (132KB)
  - onnx: HuggingFace embeddings (7.1MB)

- Update generator.html with module selection UI
- Add module-specific code templates
- Update @ruvector/edge README with edge-full reference
- Bump @ruvector/edge to v0.1.5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:59:29 +00:00
rUv
a4243ce042 feat(edge): add interactive swarm generator with MCP tools
Generator Features:
- 6 topologies: Mesh, Star, Hierarchical, Ring, Gossip, Sharded
- 4 transports: GUN.js, WebRTC, libp2p, Nostr
- 6 use cases: AI Assistants, Data Pipeline, Gaming, IoT, Marketplace, Research
- 8 features: Identity, Encryption, HNSW, Semantic, Raft, Post-Quantum, Spiking, Compression
- 7 exotic patterns: MCP Tools, Byzantine, Quantum, Neural Consensus, Swarm Intel, Self-Healing, Emergent

Browser-Based MCP Tools:
- discover_agents: Find agents by capability
- send_secure_message: Encrypted P2P messaging
- store_memory: Vector memory storage
- search_memory: Semantic search
- sign_message: Cryptographic signing
- MCPCollaborativeNetwork: Multi-server coordination

Live demo runs directly in browser using WASM.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:41:27 +00:00
rUv
6639947e47 docs(edge): add free infrastructure guide with tables
- Improved intro with cost comparison table and architecture diagram
- Added comprehensive free infrastructure section:
  - Free GUN relays (unlimited)
  - Free STUN servers (Google, Cloudflare, Mozilla)
  - Free TURN providers table
  - Free signaling services table
  - Free Nostr relays
  - Free self-hosting options (Fly.io, Railway, Cloudflare Workers)
- Complete example using 100% free stack
- Cost summary showing $0/month at any scale (1 to 1M+ users)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:30:46 +00:00
rUv
0365595328 docs(edge): add comprehensive tutorial-style README
- 5-step tutorial: Identity, Crypto, Vector Search, Routing, Consensus
- P2P transport options: WebRTC, GUN.js, IPFS/libp2p, Nostr
- Full code examples for each transport integration
- Architecture diagrams showing edge-first design
- Transport comparison table with recommendations
- Complete API reference for all 9 WASM exports

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:22:06 +00:00
rUv
d981a56e36 feat(edge): add WASM bindings and publish @ruvector/edge v0.1.1
WASM Implementation:
- Add wasm.rs with bindings for all core P2P types
- Configure Cargo.toml with wasm/native feature flags
- Gate native-only modules (tokio, transport) behind feature flags
- Convert intelligence.rs and memory.rs to sync (parking_lot::RwLock)
- Fix distributed_learning.rs example for sync API

Exports:
- WasmIdentity, WasmCrypto, WasmHnswIndex
- WasmSemanticMatcher, WasmRaftNode, WasmHybridKeyPair
- WasmSpikingNetwork, WasmQuantizer, WasmAdaptiveCompressor

Build:
- WASM: wasm-pack build --no-default-features --features wasm
- Native: cargo build --features native
- Tests: 60 passing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:16:15 +00:00
rUv
b9bf51bb01 docs(edge): improve README with free edge swarm introduction
- Emphasize zero-cost edge-first architecture
- Add economics comparison (cloud vs edge)
- Document all WASM APIs with examples
- Add use cases and architecture diagram
- Compare with cloud alternatives (OpenAI, LangChain, AutoGPT)
- Include agentic-flow integration example

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:15:24 +00:00
rUv
09b66e5191 feat(edge): add WASM npm package @ruvector/edge
- Built WASM bindings with wasm-pack for browser/Node.js usage
- Exports: WasmIdentity, WasmCrypto, WasmHnswIndex, WasmSemanticMatcher,
  WasmRaftNode, WasmHybridKeyPair, WasmSpikingNetwork, WasmQuantizer,
  WasmAdaptiveCompressor
- 364KB optimized WASM binary with full TypeScript types
- Published to npm as @ruvector/edge@0.1.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 20:11:26 +00:00
rUv
7eafcab492 docs(edge): comprehensive README overhaul
- Added badges (Rust, License, Tests, Security, WASM)
- New "Why RuVector Edge?" section explaining problem/solution
- Key Benefits table with quantified impacts
- Unique Capabilities table with 8 advanced features
- Features organized by category (Security, Intelligence, Performance, Distributed)
- Updated architecture diagram with Advanced Intelligence layer
- 7 comprehensive usage examples:
  - HNSW Vector Search
  - Post-Quantum Signatures
  - Spiking Neural Networks
  - Raft Consensus
  - Semantic Task Matching
  - Adaptive Compression
- Performance benchmarks table
- Zero-Trust Identity Chain documentation
- Comparison table vs libp2p, Matrix, NATS
- API Reference with Core Types table
- Complete exports listing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:48:00 +00:00
rUv
50da131469 feat(edge/p2p): complete RuVector advanced integrations
Added:
- Semantic embeddings interface with hash-based LSH encoding
- SemanticTaskMatcher for intelligent agent-task matching
- Raft consensus protocol for distributed task coordination
  - Leader election with term-based voting
  - Log replication with consistency checks
  - Heartbeat and append entries protocol

Now exports 20+ advanced types from p2p module:
- Quantization: ScalarQuantized, BinaryQuantized, CompressedData
- HDC: Hypervector, HdcMemory, HDC_DIMENSION
- Compression: AdaptiveCompressor, NetworkCondition
- Pattern routing: PatternRouter
- Vector index: HnswIndex
- Post-quantum: HybridKeyPair, HybridPublicKey, HybridSignature
- Spiking networks: LIFNeuron, SpikingNetwork
- Embeddings: SemanticEmbedder, SemanticTaskMatcher
- Consensus: RaftNode, RaftState, LogEntry, RaftVoteRequest/Response, RaftAppendEntries/Response

60 tests passing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:37:57 +00:00
rUv
f1f39902cd feat(edge/p2p): add advanced RuVector integrations
- HNSW vector indexing for O(log n) nearest neighbor search
- Hybrid post-quantum signatures (Ed25519 + Dilithium-style)
- Spiking neural networks (LIF neurons with STDP learning)
- Binary/Scalar quantization (4-32x compression)
- Hyperdimensional Computing for pattern matching
- Adaptive compression based on network conditions
- HDC-based semantic task routing

54 tests passing

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:35:37 +00:00
rUv
99c5c97a73 docs(edge): Update README with P2P Swarm security documentation
- Add P2P Swarm Layer to architecture diagram
- Document Ed25519/X25519 crypto and AES-256-GCM encryption
- Add security features table and code examples
- Document task execution with signed receipts
- Add GUN integration section
- Include P2P Security Model and Identity Trust Chain
- Add Key Derivation formula
- Update performance metrics with crypto ops/sec
- Add feature flags documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:06:56 +00:00
rUv
3a14478436 feat(edge): Production-grade P2P Swarm with Ed25519/X25519 crypto
Implements a production-grade P2P swarm coordination layer with:

Security Features:
- Ed25519 identity keys + X25519 ephemeral keys for ECDH
- AES-256-GCM authenticated encryption
- Canonical JSON serialization (sorted keys) for signatures
- Registry-based identity binding (never trust envelope keys)
- Message replay protection (nonces, counters, timestamps)
- Signed task receipts with full execution binding

Core Modules:
- identity.rs: Ed25519/X25519 key management, member registry
- crypto.rs: AES-256-GCM, canonical JSON, hashing
- envelope.rs: SignedEnvelope, TaskEnvelope, TaskReceipt types
- relay.rs: GUN relay health monitoring and failover
- artifact.rs: Local CID-based storage with LRU eviction
- swarm.rs: P2PSwarmV2 coordinator with heartbeats and task claiming

Additional:
- gun.rs: GUN decentralized database integration for swarm sync
- Examples: local_swarm.rs, distributed_learning.rs

All tests pass. Demo runs successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 18:03:34 +00:00
rUv
8f416aa6ae chore: update intelligence data and version bump to v0.1.71 2025-12-31 17:40:37 +00:00
rUv
940fd021e5 feat(edge): add ruv-swarm-transport integration example
New example: examples/edge/
- Distributed AI swarm communication using ruv-swarm-transport
- WebSocket, SharedMemory, and WASM transport support
- Intelligence sync for distributed Q-learning patterns
- Shared vector memory for collaborative RAG
- LZ4 + quantization tensor compression (up to 12x)
- Protocol with Join, Sync, Task, Election messages
- Agent roles: Coordinator, Worker, Scout, Specialist

Binaries:
- edge-demo: Demo of distributed learning
- edge-agent: CLI agent that joins swarm
- edge-coordinator: Swarm coordinator

Dependencies:
- ruv-swarm-transport v1.0.5
- tokio, serde, lz4_flex, clap
2025-12-31 17:20:51 +00:00
rUv
39018db65a feat: add batch learning and real-time subscriptions
New CLI Commands:
- batch-learn: Process multiple learning experiences at once
- subscribe: Stream real-time learning updates (polling)
- watch: Auto-learn from file changes in real-time

New MCP Tools (49 total):
- hooks_batch_learn: Batch process experiences array
- hooks_subscribe_snapshot: Get state deltas for subscriptions
- hooks_watch_status: Get current watch/learning status

Features:
- Batch learning processes multiple experiences efficiently
- Subscribe streams events: learn, route, memory, compress
- Watch monitors file changes and auto-learns patterns
- Co-edit detection in watch mode (files edited within 1 min)

Published as v0.1.71
2025-12-31 16:02:29 +00:00
rUv
dd137ae3f8 fix: defensive checks for Q-learning patterns and data loading
- Add null checks in getQ() method for patterns object
- Add null checks in updateQ() and learn() methods
- Improve load() to merge file data with defaults
- Ensures all required fields exist even with partial data
- Fixes 'Cannot read properties of undefined' errors

Published as v0.1.70
2025-12-31 15:40:29 +00:00
rUv
e38d3a9c9e feat: Full v2.1 upgrade with multi-algorithm learning and TensorCompress (v0.1.69)
## Multi-Algorithm Learning Engine
- 9 algorithms: q-learning, sarsa, double-q, actor-critic, ppo, decision-transformer, monte-carlo, td-lambda, dqn
- Task-specific configuration:
  - agent-routing: double-q (reduces bias)
  - error-avoidance: sarsa (conservative)
  - confidence-scoring: actor-critic (continuous)
  - trajectory-learning: decision-transformer (sequence)
  - context-ranking: ppo (stable)
  - memory-recall: td-lambda (traces)

## TensorCompress (10x Memory Savings)
- 5 compression levels based on access frequency:
  - none (hot >0.8): 0% savings
  - half (warm >0.4): 50% savings
  - pq8 (cool >0.1): 87.5% savings
  - pq4 (cold >0.01): 93.75% savings
  - binary (archive ≤0.01): 96.9% savings
- Auto-compression on session-end

## Pretrain Phases (11 total)
- Phase 10: Multi-algorithm learning bootstrap
- Phase 11: TensorCompress initialization

## Environment Variables (v2.1)
- RUVECTOR_MULTI_ALGORITHM=true
- RUVECTOR_DEFAULT_ALGORITHM=double-q
- RUVECTOR_TENSOR_COMPRESS=true
- RUVECTOR_AUTO_COMPRESS=true

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 15:24:30 +00:00
rUv
5154c468a3 fix: robust sessionEnd with full data structure validation (v0.1.68)
- Check this.data exists before accessing properties
- Initialize trajectories array if missing
- Add try/catch around engine and save operations
- Null-check trajectory objects in filter

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 15:17:35 +00:00
rUv
eff6c4a7b7 fix: handle undefined stats in sessionEnd (v0.1.67)
- Add defensive check for this.data.stats
- Initialize with defaults if missing
- Fixes "Cannot read properties of undefined (reading 'last_session')"

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 15:15:45 +00:00
rUv
bbbb4f253e feat: add TensorCompress and multi-algorithm LearningEngine (v0.1.66)
TensorCompress:
- Adaptive tensor compression with 5 levels (none, half, pq8, pq4, binary)
- Access-frequency based auto-compression
- Up to 10x memory savings for pattern storage
- CLI: compress, compress-stats, compress-store, compress-get
- MCP: hooks_compress, hooks_compress_stats, hooks_compress_store, hooks_compress_get

LearningEngine (9 algorithms):
- Q-Learning: Simple off-policy (default)
- SARSA: On-policy, conservative (error-avoidance)
- Double Q-Learning: Reduces overestimation (precise routing)
- Actor-Critic: Policy gradient + value (confidence scoring)
- PPO: Stable policy updates (preference learning)
- Decision Transformer: Sequence modeling (trajectory patterns)
- Monte Carlo: Full episode learning (unbiased estimates)
- TD(λ): Eligibility traces (credit assignment)
- DQN: Experience replay (high-dim states)

CLI Commands:
- learning-config: Configure algorithms per task
- learning-stats: View algorithm performance
- learning-update: Record experiences
- learn: Combined action + recommendation

MCP Tools:
- hooks_learning_config, hooks_learning_stats
- hooks_learning_update, hooks_learn
- hooks_algorithms_list

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 15:13:13 +00:00
rUv
76480df271 docs: update README with v2.0 features
- Add Claude Code Intelligence v2.0 section with MCP tools
- Add ONNX WASM embeddings documentation
- Add Windows installation with --ignore-scripts
- Add new CLI commands (AST, Diff, Coverage, Graph, Security, RAG)
- Update hooks configuration with new env variables
- Add performance comparison table (40,000x cache speedup)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 06:13:35 +00:00
rUv
4b52df2712 feat: add comprehensive intelligence layer with ONNX, AST, Graph, and Coverage modules
Core Modules Added:
- ast-parser.ts: Full AST parsing with symbol extraction, complexity analysis
- onnx-embedder.ts: ONNX WASM embeddings with SIMD acceleration
- diff-embeddings.ts: Semantic diff analysis with risk scoring
- coverage-router.ts: Test coverage-aware agent routing
- graph-algorithms.ts: MinCut, Spectral clustering, Louvain communities
- graph-wrapper.ts: Code dependency graph builder
- cluster-wrapper.ts: RuVector cluster management
- router-wrapper.ts: Semantic routing wrapper
- parallel-intelligence.ts: Parallel processing orchestration
- parallel-workers.ts: Worker pool with work stealing

CLI Hooks (13 new commands):
- ast-analyze, ast-complexity
- diff-analyze, diff-classify, diff-similar
- coverage-route, coverage-suggest
- graph-mincut, graph-cluster
- security-scan, rag-context, git-churn, route-enhanced

MCP Server (16 new tools):
- hooks_ast_*, hooks_diff_*, hooks_coverage_*
- hooks_graph_*, hooks_security_*, hooks_rag_*
- hooks_attention_info, hooks_gnn_info

Enhanced Features:
- 10 attention mechanisms (Flash, Hyperbolic, MoE, GraphRoPe, etc.)
- 9-phase pretrain with neural capabilities
- ONNX WASM runtime (7.4MB) with all-MiniLM-L6-v2 support
- hooks init generates v2.0 templates with full documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 06:05:38 +00:00
rUv
f915196918 chore: bump version to 0.1.65
New features in this release:
- 13 new CLI hooks commands (AST, Diff, Coverage, Graph, Security, RAG)
- 16 new MCP tools for Claude Code integration
- Enhanced hooks init with v2.0 templates
- 9-phase pretrain with attention/GNN capabilities
- Comprehensive CLAUDE.md documentation generation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 06:04:06 +00:00
rUv
f646a562db docs(onnx-wasm): comprehensive README update for v0.1.2
- Added SIMD badge and documentation
- Added ParallelEmbedder API reference and usage examples
- Updated performance benchmarks with parallel vs sequential comparison
- Added browser compatibility table
- Added changelog section
- Added batch processing use case example
- Updated build instructions with SIMD flags

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 05:10:36 +00:00
rUv
61971bc70d feat(onnx-wasm): add parallel worker threads for 3.8x batch speedup
- ParallelEmbedder class using Node.js worker_threads
- Distributes batches across multiple CPU cores
- Benchmark results: 3.6-3.8x speedup on batch processing
- Per-text latency drops from ~390ms to ~103ms with 4 workers
- Published v0.1.2 to npm and crates.io

Usage:
  import { ParallelEmbedder } from 'ruvector-onnx-embeddings-wasm/parallel';
  const embedder = new ParallelEmbedder({ numWorkers: 4 });
  await embedder.init();
  const embeddings = await embedder.embedBatch(texts);

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 05:02:28 +00:00
rUv
5a5874d403 feat(onnx-wasm): add SIMD support for improved performance
- Enable WASM SIMD128 instructions for vectorized operations
- Update simd_available() to properly detect SIMD at compile time
- SIMD build is 180KB smaller than non-SIMD (more compact instructions)
- Published v0.1.1 to both npm and crates.io

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 04:41:53 +00:00
rUv
1bbd353934 docs(onnx-wasm): add comprehensive README with badges and API reference
- Added npm and crates.io version badges
- WebAssembly and MIT license badges
- Quick start examples for Browser, Node.js, and Cloudflare Workers
- Complete API reference for WasmEmbedder, WasmEmbedderConfig
- Model comparison table with 6 HuggingFace models
- Performance benchmarks and use case examples

Published to npm as ruvector-onnx-embeddings-wasm@0.1.0

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 04:19:26 +00:00
rUv
9d33b4b45d feat(onnx-embeddings-wasm): add model loader with HuggingFace support
Adds loader.js with:
- Pre-configured model URLs for 6 popular models
- ModelLoader class with caching and progress reporting
- createEmbedder() helper for quick setup
- embed() and similarity() one-liner helpers

Supported models:
- all-MiniLM-L6-v2 (default)
- all-MiniLM-L12-v2
- bge-small-en-v1.5
- bge-base-en-v1.5
- e5-small-v2
- gte-small

Usage:
```javascript
import { createEmbedder } from './loader.js';
const embedder = await createEmbedder('all-MiniLM-L6-v2');
const embedding = embedder.embedOne("Hello world");
```

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 04:12:48 +00:00
rUv
ad94b8f411 fix(hooks): add --silent flag to remember command
Fixes PreToolUse:Read hook error by supporting --silent flag
for Read/Glob/Task hooks that should not produce output.

Published ruvector@0.1.54

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 04:08:04 +00:00
rUv
8bdf50501a test(onnx-embeddings-wasm): add WASM validation test
Validates core WASM bindings work:
- Version check
- Cosine similarity utility
- L2 normalization utility
- Config creation and chaining

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 04:07:57 +00:00
rUv
ea276475a4 feat(onnx-embeddings-wasm): add WASM-compatible embedding crate
New optional companion package using Tract for inference:
- Runs in browsers, Cloudflare Workers, Deno, edge environments
- Same API as native crate
- JavaScript bindings via wasm-bindgen
- Supports all pooling strategies (Mean, Cls, Max, etc.)

Uses Tract instead of ONNX Runtime for WASM compatibility.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 04:00:24 +00:00
rUv
2a4783f2e5 chore(onnx-embeddings): fix crates.io category slug
Changed invalid category "machine-learning" to "algorithms".

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 03:37:06 +00:00
rUv
966fed50e2 fix(onnx-embeddings): fix HuggingFace model download fallback logic
The download logic would immediately fail if model.onnx wasn't at the
repo root, never trying the onnx/ subfolder where most sentence-transformer
models store their ONNX files.

Now tries both locations:
1. Root: {repo}/model.onnx
2. Subfolder: {repo}/onnx/model.onnx

Also applies fallback logic to auxiliary files (tokenizer.json, config.json).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 03:34:24 +00:00
github-actions[bot]
a35eb202c9 chore: Update NAPI-RS binaries for all platforms
Built from commit 23fc7839cd

  Platforms updated:
  - linux-x64-gnu
  - linux-arm64-gnu
  - darwin-x64
  - darwin-arm64
  - win32-x64-msvc

  🤖 Generated by GitHub Actions
2025-12-31 01:52:50 +00:00
rUv
23fc7839cd
Merge pull request #92 from ruvnet/feature/mcp-server
feat(hooks): Full IntelligenceEngine with MCP tools, trajectory tracking, and attention
2025-12-30 20:49:04 -05:00
rUv
e6ab31a38e feat(hooks): add full IntelligenceEngine with trajectory, co-edit, and attention
- Add IntelligenceEngine class integrating VectorDB, SONA, and Attention
- Add 11 new MCP tools (22 total): trajectory tracking, co-edit patterns,
  error suggestions, swarm recommendations, force learning
- Add 8 new CLI commands: trajectory-begin/step/end, coedit-record/suggest,
  error-record/suggest, force-learn
- Integrate Flash/MultiHead attention for embeddings with fallbacks
- Add Read/Glob/Task hooks to settings.json for pattern learning
- Fix @ruvector/attention-linux-x64-gnu (publish v0.1.3)
- Published ruvector@0.1.53

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-31 00:28:19 +00:00
rUv
738571ff61 feat(mcp): add MCP server for Claude Code integration
Add Model Context Protocol (MCP) server with stdio transport for
seamless Claude Code integration. Provides 10 self-learning
intelligence tools via JSON-RPC protocol.

New commands:
- `npx ruvector mcp start` - Start MCP server
- `npx ruvector mcp info` - Show setup instructions

MCP Tools:
- hooks_stats - Get intelligence statistics
- hooks_route - Route task to best agent
- hooks_remember - Store context in vector memory
- hooks_recall - Search vector memory semantically
- hooks_init - Initialize hooks in project
- hooks_pretrain - Pretrain from repository
- hooks_build_agents - Generate agent configs
- hooks_verify - Verify hooks configuration
- hooks_doctor - Diagnose setup issues
- hooks_export - Export intelligence data

MCP Resources:
- ruvector://intelligence/stats
- ruvector://intelligence/patterns
- ruvector://intelligence/memories

Setup: claude mcp add ruvector npx ruvector mcp start

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 22:22:49 +00:00
rUv
a761924bde docs: add Claude Code hooks section to README and create HOOKS.md
- Added hooks feature summary near top of README.md
- Created comprehensive HOOKS.md documentation
- Links to detailed docs for pretrain, build-agents, verify, etc.
2025-12-30 21:51:37 +00:00