vektor-slipstream 1.3.2 → 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/boot-patch.js +33 -0
- package/package.json +5 -3
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/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"
|