ruvnet-kb-first 6.4.0 → 6.5.1

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/SKILL.md CHANGED
@@ -1,11 +1,11 @@
1
- Updated: 2026-01-02 13:15:00 EST | Version 6.4.0
1
+ Updated: 2026-01-02 13:45:00 EST | Version 6.5.0
2
2
  Created: 2026-01-01 15:00:00 EST
3
3
 
4
- # RuvNet KB-First Application Builder v6.4
4
+ # RuvNet KB-First Application Builder v6.5
5
5
 
6
6
  ## Score-Driven Architecture: Scoring IS Enforcement + UX Excellence
7
7
 
8
- **Version:** 6.4.0
8
+ **Version:** 6.5.0
9
9
  **NPM Package:** `ruvnet-kb-first`
10
10
  **Philosophy:** Every operation requires baseline scoring. Every change shows delta. Negative delta BLOCKS progress. No shortcuts. Applications must be excellent, not just functional.
11
11
 
@@ -59,6 +59,89 @@ npx ruvnet-kb-first status
59
59
 
60
60
  ---
61
61
 
62
+ ## What's New in v6.5.0 - Embedded WASM KB
63
+
64
+ | Feature | Description |
65
+ |---------|-------------|
66
+ | **Embedded KB** | 16,575 entries bundled in npm package (~10MB) |
67
+ | **WASM Search** | 15-30ms queries via RvLite (vs 6.7s PostgreSQL brute-force) |
68
+ | **Offline Capable** | Works without database connection |
69
+ | **Cross-Platform** | Windows, Mac, Linux, CI/CD pipelines |
70
+ | **Auto-Update Detection** | Checks PostgreSQL hash, notifies of updates |
71
+ | **Binary Quantization** | 32x compression (384 floats → 48 bytes per vector) |
72
+
73
+ ### WASM KB Architecture
74
+
75
+ ```
76
+ ┌─────────────────────────────────────────────────────────────┐
77
+ │ NPM PACKAGE (~22MB) │
78
+ ├─────────────────────────────────────────────────────────────┤
79
+ │ kb-data/ │
80
+ │ ├── kb-metadata.json (1KB) Version, hash, categories │
81
+ │ ├── kb-entries.json (9MB) Titles, content, metadata │
82
+ │ ├── kb-embeddings.bin (0.8MB) Binary quantized vectors │
83
+ │ └── kb-loader.js (6KB) WASM loader + search API │
84
+ ├─────────────────────────────────────────────────────────────┤
85
+ │ @ruvector/edge-full (1.3MB) RvLite WASM runtime │
86
+ └─────────────────────────────────────────────────────────────┘
87
+ ```
88
+
89
+ ### Performance Comparison
90
+
91
+ | Metric | PostgreSQL | WASM Embedded |
92
+ |--------|------------|---------------|
93
+ | Query latency | 6,700ms | **15-30ms** |
94
+ | Infrastructure | Docker + 2GB RAM | **None** |
95
+ | Offline | No | **Yes** |
96
+ | CI/CD ready | Complex | **Just works** |
97
+ | Package size | 160KB | 22MB |
98
+ | Recall quality | 100% | ~90% |
99
+
100
+ ### Usage
101
+
102
+ ```javascript
103
+ // Import from npm package
104
+ import { search, loadKB, checkForUpdates } from 'ruvnet-kb-first/kb-data/kb-loader.js';
105
+
106
+ // Load KB (once per session)
107
+ await loadKB();
108
+
109
+ // Search (15-30ms)
110
+ const results = await search('how to create agents', 5);
111
+ console.log(results.results);
112
+
113
+ // Check for PostgreSQL updates
114
+ const status = await checkForUpdates();
115
+ if (status.needsUpdate) {
116
+ console.log('Update available:', status.message);
117
+ }
118
+ ```
119
+
120
+ ### Auto-Update Workflow
121
+
122
+ ```
123
+ 1. npx ruvnet-kb-first (loads embedded WASM KB)
124
+ 2. Checks PostgreSQL hash (if available)
125
+ 3. If hash differs → notifies user
126
+ 4. User runs: npm update ruvnet-kb-first
127
+ 5. Gets new KB version
128
+ ```
129
+
130
+ ### KB Export Command
131
+
132
+ ```bash
133
+ # Re-export KB when PostgreSQL is updated
134
+ node scripts/kb-export-wasm.js --schema ask_ruvnet --output kb-data/
135
+
136
+ # This generates:
137
+ # - kb-metadata.json (with new content hash)
138
+ # - kb-entries.json (titles, content, categories)
139
+ # - kb-embeddings.bin (binary quantized vectors)
140
+ # - kb-loader.js (WASM loader)
141
+ ```
142
+
143
+ ---
144
+
62
145
  ## What's New in v6.4.0 - KB Quality Pipeline
63
146
 
64
147
  | Feature | Description |
Binary file