vektor-slipstream 1.4.4 → 2.0.0
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/README.md +67 -306
- package/package.json +14 -146
- package/CHANGELOG.md +0 -139
- package/LICENSE +0 -33
- package/TENETS.md +0 -189
- package/audn-log.js +0 -143
- package/axon.js +0 -389
- package/boot-patch.js +0 -33
- package/boot-screen.html +0 -210
- package/briefing.js +0 -150
- package/cerebellum.js +0 -439
- package/cloak-behaviour.js +0 -596
- package/cloak-captcha.js +0 -541
- package/cloak-core.js +0 -499
- package/cloak-identity.js +0 -484
- package/cloak-index.js +0 -261
- package/cloak-llms.js +0 -163
- package/cloak-pattern-store.js +0 -471
- package/cloak-recorder-auto.js +0 -297
- package/cloak-recorder-snippet.js +0 -119
- package/cloak-turbo-quant.js +0 -357
- package/cloak-warmup.js +0 -240
- package/cortex.js +0 -221
- package/detect-hardware.js +0 -181
- package/entity-resolver.js +0 -298
- package/errors.js +0 -66
- package/examples/example-claude-mcp.js +0 -220
- package/examples/example-langchain-researcher.js +0 -82
- package/examples/example-openai-assistant.js +0 -84
- package/examples/examples-README.md +0 -161
- package/export-import.js +0 -221
- package/forget.js +0 -148
- package/inspect.js +0 -199
- package/mistral/README-mistral.md +0 -123
- package/mistral/mistral-bridge.js +0 -218
- package/mistral/mistral-setup.js +0 -220
- package/mistral/vektor-tool-manifest.json +0 -41
- package/models/model_quantized.onnx +0 -0
- package/models/vocab.json +0 -1
- package/namespace.js +0 -186
- package/pin.js +0 -91
- package/slipstream-core-extended.js +0 -134
- package/slipstream-core.js +0 -1
- package/slipstream-db.js +0 -140
- package/slipstream-embedder.js +0 -338
- package/sovereign.js +0 -142
- package/token.js +0 -322
- package/types/index.d.ts +0 -269
- package/vektor-banner-loader.js +0 -109
- package/vektor-cli.js +0 -259
- package/vektor-licence-prompt.js +0 -128
- package/vektor-licence.js +0 -192
- package/vektor-setup.js +0 -270
- package/vektor-slipstream.dxt +0 -0
- package/vektor-tui.js +0 -373
- package/visualize.js +0 -235
package/README.md
CHANGED
|
@@ -1,306 +1,67 @@
|
|
|
1
|
-
# vektor-slipstream
|
|
2
|
-
|
|
3
|
-
Hardware-accelerated persistent memory for AI agents. Local-first. No cloud. One-time payment.
|
|
4
|
-
|
|
5
|
-
[.
|
|
159
|
-
|
|
160
|
-
---
|
|
161
|
-
|
|
162
|
-
## MCP Tools — All 28
|
|
163
|
-
|
|
164
|
-
### Memory Tools
|
|
165
|
-
|
|
166
|
-
| Tool | Function |
|
|
167
|
-
|---|---|
|
|
168
|
-
| `vektor_recall` | Semantic search across MAGMA graph |
|
|
169
|
-
| `vektor_store` | Store memory with importance score |
|
|
170
|
-
| `vektor_graph` | Traverse associative memory graph |
|
|
171
|
-
| `vektor_delta` | See what changed on a topic over time |
|
|
172
|
-
| `vektor_briefing` | Generate morning briefing from recent memories |
|
|
173
|
-
|
|
174
|
-
### CLOAK Core
|
|
175
|
-
|
|
176
|
-
| Tool | Function |
|
|
177
|
-
|---|---|
|
|
178
|
-
| `cloak_fetch` | Stealth headless browser fetch via Playwright |
|
|
179
|
-
| `cloak_fetch_smart` | Checks `llms.txt` first, falls back to stealth browser |
|
|
180
|
-
| `cloak_render` | Full CSS/DOM layout sensor |
|
|
181
|
-
| `cloak_diff` | Semantic diff of URL since last fetch |
|
|
182
|
-
| `cloak_diff_text` | Structural diff between two text blobs |
|
|
183
|
-
| `cloak_passport` | AES-256-GCM credential vault (get/set/delete/list) |
|
|
184
|
-
| `tokens_saved` | Token efficiency ROI calculator |
|
|
185
|
-
|
|
186
|
-
### Identity Tools
|
|
187
|
-
|
|
188
|
-
| Tool | Function |
|
|
189
|
-
|---|---|
|
|
190
|
-
| `cloak_identity_create` | Create persistent browser fingerprint identity |
|
|
191
|
-
| `cloak_identity_use` | Apply saved identity to a fetch call |
|
|
192
|
-
| `cloak_identity_list` | List all saved identities with trust summary |
|
|
193
|
-
|
|
194
|
-
### Behaviour Tools
|
|
195
|
-
|
|
196
|
-
| Tool | Function |
|
|
197
|
-
|---|---|
|
|
198
|
-
| `cloak_inject_behaviour` | Human mouse/scroll injection for reCAPTCHA/Cloudflare bypass |
|
|
199
|
-
| `cloak_behaviour_stats` | List available patterns and categories |
|
|
200
|
-
| `cloak_load_pattern` | Load custom recorded behaviour pattern |
|
|
201
|
-
| `cloak_pattern_stats` | Self-improving pattern store tier breakdown |
|
|
202
|
-
| `cloak_pattern_list` | List patterns with scores and tier |
|
|
203
|
-
| `cloak_pattern_prune` | Remove stale/low-scoring patterns |
|
|
204
|
-
| `cloak_pattern_seed` | Seed store with built-in patterns |
|
|
205
|
-
|
|
206
|
-
### CAPTCHA Tools
|
|
207
|
-
|
|
208
|
-
| Tool | Function |
|
|
209
|
-
|---|---|
|
|
210
|
-
| `cloak_detect_captcha` | Detect CAPTCHA type and sitekey |
|
|
211
|
-
| `cloak_solve_captcha` | Solve via vision AI (Claude/GPT-4o/2captcha) |
|
|
212
|
-
|
|
213
|
-
### Compression & Cortex Tools
|
|
214
|
-
|
|
215
|
-
| Tool | Function |
|
|
216
|
-
|---|---|
|
|
217
|
-
| `turbo_quant_compress` | PolarQuant vector compression (~75% smaller) |
|
|
218
|
-
| `turbo_quant_stats` | Compression ratio and savings stats |
|
|
219
|
-
| `cloak_cortex` | Scan project directory into MAGMA entity graph |
|
|
220
|
-
| `cloak_cortex_anatomy` | Get cached file anatomy without rescanning |
|
|
221
|
-
|
|
222
|
-
---
|
|
223
|
-
|
|
224
|
-
## Claude Code Setup
|
|
225
|
-
|
|
226
|
-
Add to `.claude/settings.json` in your project:
|
|
227
|
-
|
|
228
|
-
```json
|
|
229
|
-
{
|
|
230
|
-
"mcpServers": {
|
|
231
|
-
"vektor": {
|
|
232
|
-
"command": "node",
|
|
233
|
-
"args": ["/path/to/node_modules/vektor-slipstream/index.js"],
|
|
234
|
-
"env": {
|
|
235
|
-
"VEKTOR_LICENCE_KEY": "your-licence-key",
|
|
236
|
-
"CLOAK_PROJECT_PATH": "/path/to/your/project"
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
All 28 tools are available in Claude Code via this config.
|
|
244
|
-
|
|
245
|
-
---
|
|
246
|
-
|
|
247
|
-
## What's Included
|
|
248
|
-
|
|
249
|
-
### Memory Core (MAGMA)
|
|
250
|
-
|
|
251
|
-
- 4-layer associative graph — semantic, causal, temporal, entity
|
|
252
|
-
- AUDN curation loop — zero contradictions, zero duplicates
|
|
253
|
-
- REM dream cycle — up to 50:1 compression
|
|
254
|
-
- Sub-20ms recall — HNSW index, local SQLite
|
|
255
|
-
- Local ONNX embeddings — $0 embedding cost, no API key required
|
|
256
|
-
|
|
257
|
-
### Integrations
|
|
258
|
-
|
|
259
|
-
- **Claude Desktop** — DXT extension, 28 tools, auto-memory system prompt
|
|
260
|
-
- **Claude Code** — MCP server, all 28 tools
|
|
261
|
-
- **CLI** — `chat`, `remember`, `ask`, `agent` commands
|
|
262
|
-
- **LangChain** — v1 + v2 adapter included
|
|
263
|
-
- **OpenAI Agents SDK** — drop-in integration
|
|
264
|
-
- **Gemini · Groq · Ollama** — provider agnostic
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
## Performance
|
|
269
|
-
|
|
270
|
-
| Metric | Value |
|
|
271
|
-
|---|---|
|
|
272
|
-
| Recall latency | ~8ms avg (local SQLite) |
|
|
273
|
-
| Embedding cost | $0 — fully local ONNX |
|
|
274
|
-
| Embedding latency | ~10ms GPU / ~25ms CPU |
|
|
275
|
-
| First run | ~2 min (downloads ~25MB model once) |
|
|
276
|
-
| Subsequent boots | <100ms |
|
|
277
|
-
|
|
278
|
-
## Hardware Auto-Detection
|
|
279
|
-
|
|
280
|
-
Zero config. VEKTOR detects and uses the best available accelerator:
|
|
281
|
-
|
|
282
|
-
- **NVIDIA CUDA** — GPU acceleration
|
|
283
|
-
- **Apple Silicon** — CoreML
|
|
284
|
-
- **CPU** — optimised fallback, works everywhere
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
## Licence
|
|
289
|
-
|
|
290
|
-
Commercial licence. One-time payment of $159. Activates on up to 3 machines.
|
|
291
|
-
Manage at [polar.sh](https://polar.sh).
|
|
292
|
-
|
|
293
|
-
Purchase: [vektormemory.com/product#pricing](https://vektormemory.com/product#pricing)
|
|
294
|
-
Docs: [vektormemory.com/docs](https://vektormemory.com/docs)
|
|
295
|
-
Support: hello@vektormemory.com
|
|
296
|
-
|
|
297
|
-
---
|
|
298
|
-
|
|
299
|
-
## Research
|
|
300
|
-
|
|
301
|
-
Built on peer-reviewed research:
|
|
302
|
-
|
|
303
|
-
- [MAGMA (arxiv:2601.03236)](https://arxiv.org/abs/2601.03236) — Multi-Graph Agentic Memory Architecture
|
|
304
|
-
- [EverMemOS (arxiv:2601.02163)](https://arxiv.org/abs/2601.02163) — Self-Organizing Memory OS
|
|
305
|
-
- [HippoRAG (arxiv:2405.14831)](https://arxiv.org/abs/2405.14831) — Neurobiologically Inspired Long-Term Memory (NeurIPS 2024)
|
|
306
|
-
- [Mem0 (arxiv:2504.19413)](https://arxiv.org/abs/2504.19413) — Production-Ready Agent Memory
|
|
1
|
+
# vektor-slipstream
|
|
2
|
+
|
|
3
|
+
Hardware-accelerated persistent memory for AI agents. Local-first. No cloud. One-time payment.
|
|
4
|
+
|
|
5
|
+
[](https://vektormemory.com/product)
|
|
6
|
+
[](https://vektormemory.com)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## ⚠️ This package is a directory listing only
|
|
11
|
+
|
|
12
|
+
**The SDK is not distributed via npm.**
|
|
13
|
+
|
|
14
|
+
Purchase and download directly from:
|
|
15
|
+
|
|
16
|
+
### 👉 [vektormemory.com/product](https://vektormemory.com/product)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## What is VEKTOR Slipstream?
|
|
21
|
+
|
|
22
|
+
Persistent memory for AI agents — local, fast, private.
|
|
23
|
+
|
|
24
|
+
- **MAGMA graph** — 4-layer associative memory (semantic · causal · temporal · entity)
|
|
25
|
+
- **Sub-8ms recall** — HNSW index, local SQLite, no API calls
|
|
26
|
+
- **42 MCP tools** — plug directly into Claude Desktop or Claude Code
|
|
27
|
+
- **Zero cloud** — ONNX embeddings run 100% on your hardware
|
|
28
|
+
- **One-time payment** — $159, activates on up to 3 machines
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## Integrations
|
|
33
|
+
|
|
34
|
+
- Claude Desktop (DXT extension, auto-memory)
|
|
35
|
+
- Claude Code (MCP server)
|
|
36
|
+
- CLI — `chat`, `remember`, `ask`, `agent`
|
|
37
|
+
- LangChain, OpenAI Agents SDK, Gemini, Groq, Ollama
|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
41
|
+
## Performance
|
|
42
|
+
|
|
43
|
+
| Metric | Value |
|
|
44
|
+
|---|---|
|
|
45
|
+
| Recall latency | ~8ms avg (local SQLite) |
|
|
46
|
+
| Embedding cost | $0 — fully local ONNX |
|
|
47
|
+
| First run | ~2 min (downloads ~25MB model once) |
|
|
48
|
+
| Subsequent boots | <100ms |
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Get Started
|
|
53
|
+
|
|
54
|
+
1. Purchase at **[vektormemory.com/product](https://vektormemory.com/product)**
|
|
55
|
+
2. Download the SDK from your licence dashboard
|
|
56
|
+
3. Follow the setup guide at **[vektormemory.com/docs](https://vektormemory.com/docs)**
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Links
|
|
61
|
+
|
|
62
|
+
| | |
|
|
63
|
+
|---|---|
|
|
64
|
+
| **Purchase** | [vektormemory.com/product](https://vektormemory.com/product) |
|
|
65
|
+
| **Docs** | [vektormemory.com/docs](https://vektormemory.com/docs) |
|
|
66
|
+
| **Research** | [vektormemory.com/research](https://vektormemory.com/research) |
|
|
67
|
+
| **Support** | hello@vektormemory.com |
|
package/package.json
CHANGED
|
@@ -1,146 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vektor-slipstream",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Hardware-accelerated persistent memory for AI agents.
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"./cloak": "./cloak-index.js",
|
|
16
|
-
"./cloak-warmup": "./cloak-warmup.js",
|
|
17
|
-
"./db": "./slipstream-db.js",
|
|
18
|
-
"./embedder": "./slipstream-embedder.js",
|
|
19
|
-
"./cloak-behaviour": "./cloak-behaviour.js",
|
|
20
|
-
"./cloak-pattern-store": "./cloak-pattern-store.js",
|
|
21
|
-
"./cloak-recorder-auto": "./cloak-recorder-auto.js",
|
|
22
|
-
"./cloak-recorder-snippet": "./cloak-recorder-snippet.js",
|
|
23
|
-
"./cloak-turbo-quant": "./cloak-turbo-quant.js",
|
|
24
|
-
"./cloak/cortex": "./cortex.js",
|
|
25
|
-
"./cloak/axon": "./axon.js",
|
|
26
|
-
"./cloak/cerebellum": "./cerebellum.js",
|
|
27
|
-
"./cloak/token": "./token.js",
|
|
28
|
-
"./cloak/mcp": "./index.js",
|
|
29
|
-
"./boot": "./boot-patch.js",
|
|
30
|
-
"./errors": "./errors.js",
|
|
31
|
-
"./entity-resolver": "./entity-resolver.js"
|
|
32
|
-
},
|
|
33
|
-
"keywords": [
|
|
34
|
-
"ai",
|
|
35
|
-
"memory",
|
|
36
|
-
"agent",
|
|
37
|
-
"vector",
|
|
38
|
-
"sqlite",
|
|
39
|
-
"embeddings",
|
|
40
|
-
"langchain",
|
|
41
|
-
"openai",
|
|
42
|
-
"anthropic",
|
|
43
|
-
"claude",
|
|
44
|
-
"mcp",
|
|
45
|
-
"rag",
|
|
46
|
-
"persistent-memory",
|
|
47
|
-
"local-ai",
|
|
48
|
-
"onnx",
|
|
49
|
-
"mistral",
|
|
50
|
-
"cloak",
|
|
51
|
-
"ai-agent-memory",
|
|
52
|
-
"local-first",
|
|
53
|
-
"knowledge-graph",
|
|
54
|
-
"agentic-ai",
|
|
55
|
-
"llm-memory",
|
|
56
|
-
"vector-store",
|
|
57
|
-
"associative-memory",
|
|
58
|
-
"groq",
|
|
59
|
-
"ollama",
|
|
60
|
-
"gemini"
|
|
61
|
-
],
|
|
62
|
-
"author": "VEKTOR Memory <hello@vektormemory.com>",
|
|
63
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
64
|
-
"homepage": "https://vektormemory.com",
|
|
65
|
-
"repository": {
|
|
66
|
-
"type": "git",
|
|
67
|
-
"url": "git+https://github.com/Vektor-Memory/Vektor-memory.git"
|
|
68
|
-
},
|
|
69
|
-
"engines": {
|
|
70
|
-
"node": ">=18.0.0"
|
|
71
|
-
},
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"better-sqlite3": "^12.8.0",
|
|
74
|
-
"onnxruntime-node": "^1.17.3",
|
|
75
|
-
"vektor-slipstream": "^1.4.4"
|
|
76
|
-
},
|
|
77
|
-
"optionalDependencies": {
|
|
78
|
-
"@anthropic-ai/sdk": "^0.82.0",
|
|
79
|
-
"@xenova/transformers": "^2.17.2",
|
|
80
|
-
"blessed": "^0.1.81",
|
|
81
|
-
"blessed-contrib": "^4.11.0",
|
|
82
|
-
"playwright": "^1.44.0",
|
|
83
|
-
"sqlite-vec-darwin-arm64": "^0.1.6",
|
|
84
|
-
"sqlite-vec-linux-x64": "^0.1.6",
|
|
85
|
-
"sqlite-vec-windows-x64": "^0.1.6"
|
|
86
|
-
},
|
|
87
|
-
"files": [
|
|
88
|
-
"slipstream-core.js",
|
|
89
|
-
"slipstream-db.js",
|
|
90
|
-
"slipstream-embedder.js",
|
|
91
|
-
"detect-hardware.js",
|
|
92
|
-
"vektor-licence.js",
|
|
93
|
-
"vektor-licence-prompt.js",
|
|
94
|
-
"vektor-cli.js",
|
|
95
|
-
"vektor-setup.js",
|
|
96
|
-
"vektor-banner-loader.js",
|
|
97
|
-
"vektor-tui.js",
|
|
98
|
-
"boot-screen.html",
|
|
99
|
-
"cloak-core.js",
|
|
100
|
-
"cloak-index.js",
|
|
101
|
-
"cloak-identity.js",
|
|
102
|
-
"cloak-captcha.js",
|
|
103
|
-
"cloak-llms.js",
|
|
104
|
-
"cloak-turbo-quant.js",
|
|
105
|
-
"cloak-warmup.js",
|
|
106
|
-
"cloak-behaviour.js",
|
|
107
|
-
"cloak-recorder-snippet.js",
|
|
108
|
-
"cloak-pattern-store.js",
|
|
109
|
-
"cloak-recorder-auto.js",
|
|
110
|
-
"sovereign.js",
|
|
111
|
-
"visualize.js",
|
|
112
|
-
"TENETS.md",
|
|
113
|
-
"README.md",
|
|
114
|
-
"CHANGELOG.md",
|
|
115
|
-
"LICENSE",
|
|
116
|
-
"cortex.js",
|
|
117
|
-
"axon.js",
|
|
118
|
-
"cerebellum.js",
|
|
119
|
-
"token.js",
|
|
120
|
-
"index.js",
|
|
121
|
-
"errors.js",
|
|
122
|
-
"forget.js",
|
|
123
|
-
"pin.js",
|
|
124
|
-
"briefing.js",
|
|
125
|
-
"inspect.js",
|
|
126
|
-
"audn-log.js",
|
|
127
|
-
"namespace.js",
|
|
128
|
-
"export-import.js",
|
|
129
|
-
"migrate-137.js",
|
|
130
|
-
"entity-resolver.js",
|
|
131
|
-
"models/model_quantized.onnx",
|
|
132
|
-
"models/vocab.json",
|
|
133
|
-
"types/index.d.ts",
|
|
134
|
-
"examples/",
|
|
135
|
-
"mistral/",
|
|
136
|
-
"vektor-slipstream.dxt",
|
|
137
|
-
"boot-patch.js",
|
|
138
|
-
"slipstream-core-extended.js"
|
|
139
|
-
],
|
|
140
|
-
"publishConfig": {
|
|
141
|
-
"access": "public"
|
|
142
|
-
},
|
|
143
|
-
"devDependencies": {
|
|
144
|
-
"javascript-obfuscator": "^5.4.1"
|
|
145
|
-
}
|
|
146
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vektor-slipstream",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Hardware-accelerated persistent memory for AI agents. Purchase and download at vektormemory.com",
|
|
5
|
+
"keywords": ["memory", "ai", "agents", "mcp", "llm", "claude", "persistent-memory"],
|
|
6
|
+
"homepage": "https://vektormemory.com",
|
|
7
|
+
"bugs": { "url": "mailto:hello@vektormemory.com" },
|
|
8
|
+
"license": "SEE LICENSE IN https://vektormemory.com/product",
|
|
9
|
+
"author": "Vektor Memory <hello@vektormemory.com> (https://vektormemory.com)",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/Vektor-Memory/Vektor-memory"
|
|
13
|
+
}
|
|
14
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
# VEKTOR v1.3.7 — Changelog
|
|
2
|
-
|
|
3
|
-
Released: 2026-04-05
|
|
4
|
-
|
|
5
|
-
## New features
|
|
6
|
-
|
|
7
|
-
### memory.forget(id)
|
|
8
|
-
Hard-deletes a memory and cascades to all graph edges. Throws if memory is pinned — must unpin first.
|
|
9
|
-
```js
|
|
10
|
-
await memory.forget('mem_abc123');
|
|
11
|
-
// → { deleted: true, edgesRemoved: 4 }
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
### memory.forgetWhere(query, opts)
|
|
15
|
-
Semantic bulk-delete. Preview with `dryRun: true` before committing.
|
|
16
|
-
```js
|
|
17
|
-
await memory.forgetWhere('Project Atlas', { dryRun: true });
|
|
18
|
-
await memory.forgetWhere('Project Atlas', { minScore: 0.9, limit: 5 });
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### memory.pin(id) / memory.unpin(id) / memory.listPinned()
|
|
22
|
-
Mark memories as permanent — REM cycle will never compress or delete them.
|
|
23
|
-
```js
|
|
24
|
-
const { id } = await memory.remember('User is allergic to peanuts');
|
|
25
|
-
await memory.pin(id);
|
|
26
|
-
await memory.listPinned(); // → all pinned memories
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### memory.inspect()
|
|
30
|
-
Full diagnostic snapshot — no more raw SQLite queries to debug state.
|
|
31
|
-
```js
|
|
32
|
-
const state = memory.inspect();
|
|
33
|
-
state.counts // → { memories: 247, pinned: 3, edges: 7180 }
|
|
34
|
-
state.rem // → { totalDreams: 11, compressionRatio: '0.06' }
|
|
35
|
-
state.graph.topNodes // → 5 most-connected memories
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### memory.auditLog(opts) / memory.auditStats()
|
|
39
|
-
Full AUDN decision history. Nothing disappears silently.
|
|
40
|
-
```js
|
|
41
|
-
memory.auditLog({ action: 'DELETE', since: '7d' });
|
|
42
|
-
// → [{ action, memory_id, content, reason, similarity, ran_at }]
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### memory.briefing({ since }) — scoped date filtering
|
|
46
|
-
```js
|
|
47
|
-
await memory.briefing({ since: '7d' });
|
|
48
|
-
await memory.briefing({ since: '12h', minImportance: 0.7 });
|
|
49
|
-
await memory.briefing({ since: '2026-01-01', raw: true });
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
### memory.export() / memory.import()
|
|
53
|
-
Full graph serialisation with checksum integrity.
|
|
54
|
-
```js
|
|
55
|
-
const bundle = memory.export();
|
|
56
|
-
fs.writeFileSync('backup.vektor.json', JSON.stringify(bundle));
|
|
57
|
-
|
|
58
|
-
memory.import(bundle);
|
|
59
|
-
// → { imported: 244, skipped: 3, edgesAdded: 7100 }
|
|
60
|
-
|
|
61
|
-
memory.import(bundle, { dryRun: true }); // preview
|
|
62
|
-
memory.import(bundle, { mode: 'replace' }); // wipe and restore
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### Namespace support
|
|
66
|
-
Scope all reads/writes to prevent project bleed.
|
|
67
|
-
```js
|
|
68
|
-
const memory = await createMemory({ agentId: 'my-agent', namespace: 'project-atlas' });
|
|
69
|
-
memory.listNamespaces();
|
|
70
|
-
// → [{ namespace: 'project-atlas', memories: 18 }, ...]
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### TypeScript types
|
|
74
|
-
Full `.d.ts` declarations for all public API methods. No more flying blind in your IDE.
|
|
75
|
-
Add to `tsconfig.json`: `"types": ["vektor-slipstream"]`
|
|
76
|
-
|
|
77
|
-
### Structured error codes
|
|
78
|
-
Replace string catch blocks with reliable `VektorError.code` switching.
|
|
79
|
-
```js
|
|
80
|
-
import { VektorError, ERR } from 'vektor-slipstream/errors';
|
|
81
|
-
|
|
82
|
-
try {
|
|
83
|
-
await memory.remember(...)
|
|
84
|
-
} catch (e) {
|
|
85
|
-
if (e instanceof VektorError) {
|
|
86
|
-
switch (e.code) {
|
|
87
|
-
case ERR.LICENCE_INVALID: // handle
|
|
88
|
-
case ERR.EMBED_FAILED: // retry
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Schema changes
|
|
95
|
-
Run `npx vektor migrate` after updating, or migration runs automatically on startup.
|
|
96
|
-
|
|
97
|
-
New columns:
|
|
98
|
-
- `memories.pinned` INTEGER DEFAULT 0
|
|
99
|
-
- `memories.namespace` TEXT DEFAULT 'default'
|
|
100
|
-
- `memories.updated_at` INTEGER
|
|
101
|
-
|
|
102
|
-
New tables:
|
|
103
|
-
- `audn_log` — AUDN decision audit trail
|
|
104
|
-
- `rem_log` — REM cycle run history (if not already present)
|
|
105
|
-
- `vektor_meta` — schema version tracking
|
|
106
|
-
|
|
107
|
-
## Bug fixes
|
|
108
|
-
- REM cycle now skips pinned memories (previously could compress critical facts)
|
|
109
|
-
- AUDN deletions now logged before execution (previously silent)
|
|
110
|
-
- briefing() no longer returns stale summary when no memories exist in window
|
|
111
|
-
|
|
112
|
-
## Breaking changes
|
|
113
|
-
None. All new methods are additive. Existing code works unchanged.
|
|
114
|
-
Migration is backward-compatible — new columns have safe defaults.
|
|
115
|
-
|
|
116
|
-
## Gemini security review fixes (round 1 — applied)
|
|
117
|
-
- `briefing.js` — pinned memory query now has LIMIT 50 (context bomb prevention)
|
|
118
|
-
- `briefing.js` — `parseSince()` guards against `Date.now()` ms being passed as unix seconds
|
|
119
|
-
- `forget.js` — `forgetWhere()` selective error catching — infra errors re-thrown, only expected skips swallowed
|
|
120
|
-
- `namespace.js` — O(N) JS delete loop replaced with bulk SQL subquery (2 statements vs N*2)
|
|
121
|
-
- `inspect.js` — all `SUM()` aggregations wrapped in `IFNULL(..., 0)` — no more `null` in charts
|
|
122
|
-
- `migrate-137.js` — `PRAGMA table_info()` replaces brittle error-message string matching
|
|
123
|
-
|
|
124
|
-
## Gemini security review fixes (round 2 — applied)
|
|
125
|
-
- `export-import.js` — Fix 1: `IN (...memIds)` placeholders replaced with SQL subqueries — no more 32,766 param limit crash on large exports
|
|
126
|
-
- `export-import.js` — Fix 2: O(N) loop in `replace` mode replaced with bulk subquery deletes
|
|
127
|
-
- `export-import.js` — Fix 3: checksum now hashes full memories payload — content/importance tampering now detectable
|
|
128
|
-
- `export-import.js` — Fix 4: dangling edge guard — edges only inserted if both source and target exist in destination (`WHERE EXISTS`)
|
|
129
|
-
- `export-import.js` — `edgesSkipped` added to import return value with console.warn for partial imports
|
|
130
|
-
|
|
131
|
-
## Gemini security review fixes (round 3 — applied)
|
|
132
|
-
- `forget.js` — pinned edge orphan guard: blocks deleting a memory that shares
|
|
133
|
-
a graph edge with a pinned memory — prevents silent MAGMA traversal corruption
|
|
134
|
-
- `namespace.js` — SQLITE_BUSY retry loop: 3 attempts × 100ms using
|
|
135
|
-
`Atomics.wait` (correct sync sleep for better-sqlite3) before propagating error
|
|
136
|
-
- `export-import.js` — confirmed: empty bundle guard (line 103) already sits
|
|
137
|
-
before checksum computation (line 107) — correct order, no change needed
|
|
138
|
-
|
|
139
|
-
## Total fixes across 3 Gemini review rounds: 13
|