vektor-slipstream 1.3.1 → 1.3.3
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/axon.js +1 -1
- package/boot-patch.js +33 -0
- package/cerebellum.js +3 -3
- package/package.json +5 -3
- package/token.js +1 -1
package/axon.js
CHANGED
|
@@ -212,7 +212,7 @@ async function onSessionStart({ projectPath, memory } = {}) {
|
|
|
212
212
|
try {
|
|
213
213
|
const results = await memory.recall(
|
|
214
214
|
`[CLOAK_AXON_MEMCELL] project:${_sessionLog.projectName}`,
|
|
215
|
-
|
|
215
|
+
1
|
|
216
216
|
);
|
|
217
217
|
if (results && results.length > 0) {
|
|
218
218
|
lastContext = results[0].content;
|
package/boot-patch.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const _orig = console.log.bind(console);
|
|
3
|
+
let _bootLine = 0;
|
|
4
|
+
let _inBoot = false;
|
|
5
|
+
|
|
6
|
+
const REPLACEMENTS = [
|
|
7
|
+
' \u250C\u2500 EP CPU\u00B7Hash',
|
|
8
|
+
' \u251C\u2500 MDL hash-projection (384-dim)',
|
|
9
|
+
' \u251C\u2500 EMB <1ms (post-warmup)',
|
|
10
|
+
' \u251C\u2500 DB WAL | mmap:1GB | cache:64MB',
|
|
11
|
+
' \u251C\u2500 WRM \u2713',
|
|
12
|
+
' \u2514\u2500 TMR {ms}ms total',
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
console.log = function(...args) {
|
|
16
|
+
if (args.length === 1 && typeof args[0] === 'string') {
|
|
17
|
+
const s = args[0];
|
|
18
|
+
if (s.includes('VEKTOR SLIPSTREAM')) { _inBoot = true; _bootLine = 0; }
|
|
19
|
+
if (_inBoot && (s.includes('\u2699') || s.includes('\uD83E') || s.includes('\u26A1') || s.includes('\uD83D\uDCBE') || s.includes('\uD83D\uDD25') || s.includes('\u23F1'))) {
|
|
20
|
+
const rep = REPLACEMENTS[_bootLine];
|
|
21
|
+
if (rep) {
|
|
22
|
+
const ms = (s.match(/(\d+)ms/) || [])[1];
|
|
23
|
+
_orig(rep.replace('{ms}', ms || ''));
|
|
24
|
+
_bootLine++;
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
if (s.includes('SQLite')) _inBoot = false;
|
|
29
|
+
}
|
|
30
|
+
return _orig(...args);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
module.exports = require('./slipstream-core');
|
package/cerebellum.js
CHANGED
|
@@ -116,7 +116,7 @@ async function checkWrite({ content, filePath, memory } = {}) {
|
|
|
116
116
|
// Query causal error graph for patterns similar to this write
|
|
117
117
|
const errorPatterns = await memory.recall(
|
|
118
118
|
`${ERROR_PREFIX} ${content.slice(0, 300)}`,
|
|
119
|
-
|
|
119
|
+
MAX_PATTERNS_TO_CHECK
|
|
120
120
|
);
|
|
121
121
|
|
|
122
122
|
if (!errorPatterns || errorPatterns.length === 0) {
|
|
@@ -147,7 +147,7 @@ async function checkWrite({ content, filePath, memory } = {}) {
|
|
|
147
147
|
// Also check Do-Not-Repeat rules (always enforced regardless of similarity)
|
|
148
148
|
const dnrRules = await memory.recall(
|
|
149
149
|
`${DNR_PREFIX}`,
|
|
150
|
-
|
|
150
|
+
5
|
|
151
151
|
);
|
|
152
152
|
|
|
153
153
|
if (dnrRules) {
|
|
@@ -254,7 +254,7 @@ async function autoResolve({ content, filePath, memory } = {}) {
|
|
|
254
254
|
// Pull all open errors on this file, then let REM cycle verify.
|
|
255
255
|
const candidates = await memory.recall(
|
|
256
256
|
`${ERROR_PREFIX} file:${filePath}`,
|
|
257
|
-
|
|
257
|
+
MAX_PATTERNS_TO_CHECK
|
|
258
258
|
);
|
|
259
259
|
|
|
260
260
|
if (!candidates || candidates.length === 0) return { resolved: [], written: 0 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vektor-slipstream",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Hardware-accelerated persistent memory for AI agents. Local-first, zero cloud dependency, $0 embedding cost.",
|
|
5
5
|
"main": "slipstream-core.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"./cloak/axon": "./axon.js",
|
|
22
22
|
"./cloak/cerebellum": "./cerebellum.js",
|
|
23
23
|
"./cloak/token": "./token.js",
|
|
24
|
-
"./cloak/mcp": "./index.js"
|
|
24
|
+
"./cloak/mcp": "./index.js",
|
|
25
|
+
"./boot": "./boot-patch.js"
|
|
25
26
|
},
|
|
26
27
|
"keywords": [
|
|
27
28
|
"ai",
|
|
@@ -103,7 +104,8 @@
|
|
|
103
104
|
"models/vocab.json",
|
|
104
105
|
"examples/",
|
|
105
106
|
"mistral/",
|
|
106
|
-
"vektor-slipstream.dxt"
|
|
107
|
+
"vektor-slipstream.dxt",
|
|
108
|
+
"boot-patch.js"
|
|
107
109
|
],
|
|
108
110
|
"publishConfig": {
|
|
109
111
|
"access": "public"
|
package/token.js
CHANGED