mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-27 00:25:10 +00:00
chore: sync settings and dependencies
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
761c1f9f37
commit
d8a7772a07
3 changed files with 68 additions and 45 deletions
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -6906,6 +6906,7 @@ dependencies = [
|
|||
"approx",
|
||||
"bincode 1.3.3",
|
||||
"bitvec",
|
||||
"chrono",
|
||||
"criterion",
|
||||
"crossbeam",
|
||||
"dashmap 6.1.0",
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue