@rigour-labs/core 2.21.1 → 2.21.2
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.
|
@@ -89,7 +89,8 @@ export class PatternIndexer {
|
|
|
89
89
|
}
|
|
90
90
|
// Generate embeddings in parallel batches if enabled
|
|
91
91
|
if (this.config.useEmbeddings && patterns.length > 0) {
|
|
92
|
-
|
|
92
|
+
// Use stderr to avoid contaminating JSON output on stdout
|
|
93
|
+
process.stderr.write(`Generating embeddings for ${patterns.length} patterns...\n`);
|
|
93
94
|
for (let i = 0; i < patterns.length; i += BATCH_SIZE) {
|
|
94
95
|
const batch = patterns.slice(i, i + BATCH_SIZE);
|
|
95
96
|
await Promise.all(batch.map(async (pattern) => {
|
package/package.json
CHANGED
|
@@ -109,7 +109,8 @@ export class PatternIndexer {
|
|
|
109
109
|
|
|
110
110
|
// Generate embeddings in parallel batches if enabled
|
|
111
111
|
if (this.config.useEmbeddings && patterns.length > 0) {
|
|
112
|
-
|
|
112
|
+
// Use stderr to avoid contaminating JSON output on stdout
|
|
113
|
+
process.stderr.write(`Generating embeddings for ${patterns.length} patterns...\n`);
|
|
113
114
|
for (let i = 0; i < patterns.length; i += BATCH_SIZE) {
|
|
114
115
|
const batch = patterns.slice(i, i + BATCH_SIZE);
|
|
115
116
|
await Promise.all(batch.map(async (pattern) => {
|