@optiqcode/cli 2.1.0 → 2.1.1
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/dist/commands/index.js +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
package/dist/commands/index.js
CHANGED
|
@@ -74,8 +74,8 @@ export async function index(options) {
|
|
|
74
74
|
spinner.text = 'Indexing with Optiq Engine...';
|
|
75
75
|
// Generate repository ID from path
|
|
76
76
|
const repoId = generateRepoId(targetPath);
|
|
77
|
-
// Batch upload files (
|
|
78
|
-
const BATCH_SIZE =
|
|
77
|
+
// Batch upload files (50 at a time to avoid gateway timeouts)
|
|
78
|
+
const BATCH_SIZE = 50;
|
|
79
79
|
let uploadedCount = 0;
|
|
80
80
|
let totalChunksCreated = 0;
|
|
81
81
|
for (let i = 0; i < fileContents.length; i += BATCH_SIZE) {
|
package/dist/index.js
CHANGED
|
@@ -289,8 +289,8 @@ async function indexOnce(targetPath, config) {
|
|
|
289
289
|
}
|
|
290
290
|
// Generate repository ID from path
|
|
291
291
|
const repoId = generateRepoId(targetPath);
|
|
292
|
-
// Upload in
|
|
293
|
-
const BATCH_SIZE =
|
|
292
|
+
// Upload in smaller batches to avoid gateway timeouts
|
|
293
|
+
const BATCH_SIZE = 50;
|
|
294
294
|
let totalChunks = 0;
|
|
295
295
|
spinner.text = 'Indexing...';
|
|
296
296
|
for (let i = 0; i < filesArray.length; i += BATCH_SIZE) {
|
|
@@ -357,8 +357,8 @@ async function watchDirectory(targetPath, config) {
|
|
|
357
357
|
}
|
|
358
358
|
spinner.text = `Reading... ${Math.min(i + PARALLEL_READS, files.length)}/${files.length}`;
|
|
359
359
|
}
|
|
360
|
-
// Upload in
|
|
361
|
-
const BATCH_SIZE =
|
|
360
|
+
// Upload in smaller batches to avoid gateway timeouts
|
|
361
|
+
const BATCH_SIZE = 50;
|
|
362
362
|
for (let i = 0; i < filesArray.length; i += BATCH_SIZE) {
|
|
363
363
|
const batch = filesArray.slice(i, i + BATCH_SIZE);
|
|
364
364
|
const batchNum = Math.floor(i / BATCH_SIZE) + 1;
|