vektor-slipstream 1.1.10 → 1.1.12
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.
Potentially problematic release.
This version of vektor-slipstream might be problematic. Click here for more details.
- package/package.json +1 -1
- package/slipstream-embedder.js +16 -0
- package/vektor-banner-loader.js +8 -13
package/package.json
CHANGED
package/slipstream-embedder.js
CHANGED
|
@@ -244,6 +244,21 @@ class SlipstreamEmbedder {
|
|
|
244
244
|
|
|
245
245
|
await this.tokenizer.load();
|
|
246
246
|
|
|
247
|
+
|
|
248
|
+
// Progress bar while ONNX loads
|
|
249
|
+
const isMCP = process.argv.includes("--mcp");
|
|
250
|
+
if (!isMCP) {
|
|
251
|
+
let pct = 0, done = false;
|
|
252
|
+
const render = () => {
|
|
253
|
+
if (done) return;
|
|
254
|
+
const filled = Math.floor(pct / 5);
|
|
255
|
+
process.stderr.write("\r \u2514\u2500 Loading model [" + "\u2588".repeat(filled) + "\u2591".repeat(20 - filled) + "] " + pct + "% ");
|
|
256
|
+
if (pct < 85) pct = Math.min(85, pct + 7);
|
|
257
|
+
};
|
|
258
|
+
render();
|
|
259
|
+
var _pt = setInterval(render, 400);
|
|
260
|
+
var _done = () => { done = true; clearInterval(_pt); process.stderr.write("\r \u2514\u2500 Model ready [\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588] 100% \u2713\n"); };
|
|
261
|
+
} else { var _done = () => {}; }
|
|
247
262
|
const epChain = this._buildEPChain(this.ep);
|
|
248
263
|
|
|
249
264
|
for (const providers of epChain) {
|
|
@@ -255,6 +270,7 @@ class SlipstreamEmbedder {
|
|
|
255
270
|
enableMemPattern : true,
|
|
256
271
|
});
|
|
257
272
|
this.ep = providers[0];
|
|
273
|
+
_done();
|
|
258
274
|
break;
|
|
259
275
|
} catch (_) { continue; }
|
|
260
276
|
}
|
package/vektor-banner-loader.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
// vektor-banner-loader.js — prints ASCII banner immediately on require
|
|
3
|
-
// Injected before slipstream-core loads — zero latency
|
|
4
|
-
|
|
5
2
|
const os = require('os');
|
|
6
3
|
const start = Date.now();
|
|
7
|
-
|
|
8
4
|
console.log('');
|
|
9
|
-
console.log('
|
|
10
|
-
console.log('
|
|
11
|
-
console.log('
|
|
12
|
-
console.log('
|
|
13
|
-
console.log('
|
|
14
|
-
console.log('
|
|
5
|
+
console.log(' ██╗ ██╗███████╗██╗ ██╗████████╗ ██████╗ ██████╗ ');
|
|
6
|
+
console.log(' ██║ ██║██╔════╝██║ ██╔╝╚══██╔══╝██╔═══██╗██╔══██╗');
|
|
7
|
+
console.log(' ██║ ██║█████╗ █████╔╝ ██║ ██║ ██║██████╔╝ ');
|
|
8
|
+
console.log(' ╚██╗ ██╔╝██╔══╝ ██╔═██╗ ██║ ██║ ██║██╔══██╗ ');
|
|
9
|
+
console.log(' ╚████╔╝ ███████╗██║ ██╗ ██║ ╚██████╔╝██║ ██║ ');
|
|
10
|
+
console.log(' ╚═══╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ');
|
|
15
11
|
console.log('');
|
|
16
|
-
console.log(' SLIPSTREAM v' + require('./package.json').version + '
|
|
17
|
-
|
|
12
|
+
console.log(' SLIPSTREAM v' + require('./package.json').version + ' · Sovereign Agent Memory');
|
|
13
|
+
process.stderr.write(' └─ Loading model [░░░░░░░░░░░░░░░░░░░░] 0% ');
|
|
18
14
|
console.log('');
|
|
19
|
-
|
|
20
15
|
module.exports = { loadedAt: start };
|