@comfanion/workflow 4.36.12 → 4.36.13
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/bin/cli.js +40 -6
- package/package.json +1 -1
- package/src/build-info.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -323,13 +323,30 @@ program
|
|
|
323
323
|
|
|
324
324
|
// Install dependencies only if vectorizer is enabled
|
|
325
325
|
if (config.vectorizer_enabled) {
|
|
326
|
-
spinner.text = 'Installing vectorizer...';
|
|
326
|
+
spinner.text = 'Installing vectorizer dependencies...';
|
|
327
327
|
try {
|
|
328
|
-
|
|
328
|
+
// Show progress during npm install
|
|
329
|
+
const steps = [
|
|
330
|
+
'Installing vectorizer dependencies...',
|
|
331
|
+
'Downloading @xenova/transformers (~50MB)...',
|
|
332
|
+
'Installing vectordb...',
|
|
333
|
+
'Installing glob...',
|
|
334
|
+
'Finalizing vectorizer setup...'
|
|
335
|
+
];
|
|
336
|
+
let stepIndex = 0;
|
|
337
|
+
const progressInterval = setInterval(() => {
|
|
338
|
+
stepIndex = (stepIndex + 1) % steps.length;
|
|
339
|
+
spinner.text = steps[stepIndex];
|
|
340
|
+
}, 3000);
|
|
341
|
+
|
|
342
|
+
execSync('npm install', {
|
|
329
343
|
cwd: newVectorizerDir,
|
|
330
344
|
stdio: 'pipe',
|
|
331
|
-
timeout:
|
|
345
|
+
timeout: 180000
|
|
332
346
|
});
|
|
347
|
+
|
|
348
|
+
clearInterval(progressInterval);
|
|
349
|
+
spinner.text = 'Vectorizer installed!';
|
|
333
350
|
} catch (e) {
|
|
334
351
|
// Non-fatal, will show warning below
|
|
335
352
|
}
|
|
@@ -597,13 +614,30 @@ program
|
|
|
597
614
|
|
|
598
615
|
// Install dependencies only if vectorizer is enabled
|
|
599
616
|
if (vectorizerEnabled) {
|
|
600
|
-
spinner.text = 'Installing vectorizer...';
|
|
617
|
+
spinner.text = 'Installing vectorizer dependencies...';
|
|
601
618
|
try {
|
|
602
|
-
|
|
619
|
+
// Show progress during npm install
|
|
620
|
+
const steps = [
|
|
621
|
+
'Installing vectorizer dependencies...',
|
|
622
|
+
'Downloading @xenova/transformers (~50MB)...',
|
|
623
|
+
'Installing vectordb...',
|
|
624
|
+
'Installing glob...',
|
|
625
|
+
'Finalizing vectorizer setup...'
|
|
626
|
+
];
|
|
627
|
+
let stepIndex = 0;
|
|
628
|
+
const progressInterval = setInterval(() => {
|
|
629
|
+
stepIndex = (stepIndex + 1) % steps.length;
|
|
630
|
+
spinner.text = steps[stepIndex];
|
|
631
|
+
}, 3000);
|
|
632
|
+
|
|
633
|
+
execSync('npm install', {
|
|
603
634
|
cwd: newVectorizerDir,
|
|
604
635
|
stdio: 'pipe',
|
|
605
|
-
timeout:
|
|
636
|
+
timeout: 180000
|
|
606
637
|
});
|
|
638
|
+
|
|
639
|
+
clearInterval(progressInterval);
|
|
640
|
+
spinner.text = 'Vectorizer installed!';
|
|
607
641
|
} catch (e) {
|
|
608
642
|
// Non-fatal, will show warning below
|
|
609
643
|
}
|
package/package.json
CHANGED