From d8a7772a07b1878344dd67b890b529cc80214284 Mon Sep 17 00:00:00 2001 From: rUv Date: Tue, 30 Dec 2025 18:26:41 +0000 Subject: [PATCH] chore: sync settings and dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .claude/settings.json | 41 +++++++++++++++------ Cargo.lock | 1 + npm/packages/rudag/README.md | 71 +++++++++++++++++++----------------- 3 files changed, 68 insertions(+), 45 deletions(-) diff --git a/.claude/settings.json b/.claude/settings.json index a668b39c..e5704d71 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -38,8 +38,7 @@ "Bash(.claude/hooks:*)", "Bash(.claude/intelligence:*)", "Bash(ruvector:*)", - "Bash(ruvector-cli:*)", - "Bash(npx ruvector:*)" + "Bash(ruvector-cli:*)" ], "deny": [ "Bash(rm -rf /)" @@ -50,13 +49,19 @@ { "matcher": "Edit|Write|MultiEdit", "hooks": [ - { "type": "command", "command": "npx ruvector hooks pre-edit \"$TOOL_INPUT_file_path\"" } + { + "type": "command", + "command": "ruvector hooks pre-edit \"$TOOL_INPUT_file_path\"" + } ] }, { "matcher": "Bash", "hooks": [ - { "type": "command", "command": "npx ruvector hooks pre-command \"$TOOL_INPUT_command\"" } + { + "type": "command", + "command": "ruvector hooks pre-command \"$TOOL_INPUT_command\"" + } ] } ], @@ -64,27 +69,39 @@ { "matcher": "Edit|Write|MultiEdit", "hooks": [ - { "type": "command", "command": "npx ruvector hooks post-edit \"$TOOL_INPUT_file_path\"" } + { + "type": "command", + "command": "ruvector hooks post-edit \"$TOOL_INPUT_file_path\"" + } ] }, { "matcher": "Bash", "hooks": [ - { "type": "command", "command": "npx ruvector hooks post-command \"$TOOL_INPUT_command\"" } + { + "type": "command", + "command": "ruvector hooks post-command \"$TOOL_INPUT_command\"" + } ] } ], "SessionStart": [ { "hooks": [ - { "type": "command", "command": "npx ruvector hooks session-start" } + { + "type": "command", + "command": "ruvector hooks session-start" + } ] } ], "Stop": [ { "hooks": [ - { "type": "command", "command": "npx ruvector hooks session-end" } + { + "type": "command", + "command": "ruvector hooks session-end" + } ] } ], @@ -95,7 +112,7 @@ { "type": "command", "timeout": 3000, - "command": "npx ruvector hooks pre-compact --auto" + "command": "/usr/local/bin/ruvector-cli hooks pre-compact --auto" } ] }, @@ -105,7 +122,7 @@ { "type": "command", "timeout": 3000, - "command": "npx ruvector hooks pre-compact" + "command": "/usr/local/bin/ruvector-cli hooks pre-compact" } ] } @@ -116,7 +133,7 @@ { "type": "command", "timeout": 2000, - "command": "npx ruvector hooks suggest-context" + "command": "/usr/local/bin/ruvector-cli hooks suggest-context" } ] } @@ -128,7 +145,7 @@ { "type": "command", "timeout": 1000, - "command": "npx ruvector hooks track-notification" + "command": "/usr/local/bin/ruvector-cli hooks track-notification" } ] } diff --git a/Cargo.lock b/Cargo.lock index f899fe4e..f33a47e6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6906,6 +6906,7 @@ dependencies = [ "approx", "bincode 1.3.3", "bitvec", + "chrono", "criterion", "crossbeam", "dashmap 6.1.0", diff --git a/npm/packages/rudag/README.md b/npm/packages/rudag/README.md index 0d1b75df..16b5a109 100644 --- a/npm/packages/rudag/README.md +++ b/npm/packages/rudag/README.md @@ -14,6 +14,14 @@ rudag answers these questions instantly. It's a **Directed Acyclic Graph (DAG)** library that helps you manage dependencies, find bottlenecks, and optimize execution — all with self-learning intelligence that gets smarter over time. + +## Installation + +```bash +npm install @ruvector/rudag +``` + + ```typescript // 3 lines to find your bottleneck const dag = new RuDag({ name: 'my-pipeline' }); @@ -73,6 +81,36 @@ You have tasks with dependencies. **Task C** needs **A** and **B** to finish fir | Hard to find bottlenecks | **Attention scores** highlight important nodes | | Complex setup | `npm install` and go | + +## Comparison with Alternatives + +| Feature | rudag | graphlib | dagre | d3-dag | +|---------|-------|----------|-------|--------| +| **Performance** | ⚡ WASM (10-100x faster) | JS | JS | JS | +| **Critical Path** | ✅ Built-in | ❌ Manual | ❌ Manual | ❌ Manual | +| **Attention/Scoring** | ✅ ML-inspired | ❌ | ❌ | ❌ | +| **Cycle Detection** | ✅ Automatic | ✅ | ✅ | ✅ | +| **Topological Sort** | ✅ | ✅ | ✅ | ✅ | +| **Persistence** | ✅ IndexedDB + Files | ❌ | ❌ | ❌ | +| **Browser + Node.js** | ✅ Both | ✅ Both | ✅ Both | ⚠️ Browser | +| **TypeScript** | ✅ Native | ⚠️ @types | ⚠️ @types | ✅ Native | +| **Bundle Size** | ~50KB (WASM) | ~15KB | ~30KB | ~20KB | +| **Self-Learning** | ✅ | ❌ | ❌ | ❌ | +| **Serialization** | ✅ JSON + Binary | ✅ JSON | ✅ JSON | ❌ | +| **CLI Tool** | ✅ | ❌ | ❌ | ❌ | + +### When to Use What + +| Use Case | Recommendation | +|----------|----------------| +| **Query optimization / Task scheduling** | **rudag** - Critical path + attention scoring | +| **Graph visualization / Layout** | **dagre** - Designed for layout algorithms | +| **Simple dependency tracking** | **graphlib** - Lightweight, no WASM overhead | +| **D3 integration** | **d3-dag** - Native D3 compatibility | +| **Large graphs (10k+ nodes)** | **rudag** - WASM performance advantage | +| **Offline-first apps** | **rudag** - Built-in persistence | + + ## Key Capabilities ### 🧠 Self-Learning Optimization @@ -105,11 +143,6 @@ Your DAGs automatically save to **IndexedDB** in browsers or **files** in Node.j ### 🔌 Serialization & Interop Export to **JSON** (human-readable) or **binary** (compact, fast). Share DAGs between services, store in databases, or send over the network. -## Installation - -```bash -npm install @ruvector/rudag -``` ## Quick Start @@ -661,34 +694,6 @@ async function executeWithRxJS(dag: RuDag) { Requires WebAssembly support. -## Comparison with Alternatives - -| Feature | rudag | graphlib | dagre | d3-dag | -|---------|-------|----------|-------|--------| -| **Performance** | ⚡ WASM (10-100x faster) | JS | JS | JS | -| **Critical Path** | ✅ Built-in | ❌ Manual | ❌ Manual | ❌ Manual | -| **Attention/Scoring** | ✅ ML-inspired | ❌ | ❌ | ❌ | -| **Cycle Detection** | ✅ Automatic | ✅ | ✅ | ✅ | -| **Topological Sort** | ✅ | ✅ | ✅ | ✅ | -| **Persistence** | ✅ IndexedDB + Files | ❌ | ❌ | ❌ | -| **Browser + Node.js** | ✅ Both | ✅ Both | ✅ Both | ⚠️ Browser | -| **TypeScript** | ✅ Native | ⚠️ @types | ⚠️ @types | ✅ Native | -| **Bundle Size** | ~50KB (WASM) | ~15KB | ~30KB | ~20KB | -| **Self-Learning** | ✅ | ❌ | ❌ | ❌ | -| **Serialization** | ✅ JSON + Binary | ✅ JSON | ✅ JSON | ❌ | -| **CLI Tool** | ✅ | ❌ | ❌ | ❌ | - -### When to Use What - -| Use Case | Recommendation | -|----------|----------------| -| **Query optimization / Task scheduling** | **rudag** - Critical path + attention scoring | -| **Graph visualization / Layout** | **dagre** - Designed for layout algorithms | -| **Simple dependency tracking** | **graphlib** - Lightweight, no WASM overhead | -| **D3 integration** | **d3-dag** - Native D3 compatibility | -| **Large graphs (10k+ nodes)** | **rudag** - WASM performance advantage | -| **Offline-first apps** | **rudag** - Built-in persistence | - ## API Reference ### RuDag