@optiqcode/cli 2.1.6 → 2.1.7
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 (3 at a time to avoid Cloudflare gateway timeouts)
|
|
78
|
+
const BATCH_SIZE = 3;
|
|
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
|
@@ -298,8 +298,8 @@ async function indexOnce(targetPath, config) {
|
|
|
298
298
|
}
|
|
299
299
|
// Generate repository ID from path
|
|
300
300
|
const repoId = generateRepoId(targetPath);
|
|
301
|
-
// Upload in small batches to avoid gateway timeouts
|
|
302
|
-
const BATCH_SIZE =
|
|
301
|
+
// Upload in small batches to avoid Cloudflare gateway timeouts
|
|
302
|
+
const BATCH_SIZE = 3;
|
|
303
303
|
let totalChunks = 0;
|
|
304
304
|
if (DEBUG) {
|
|
305
305
|
console.log(chalk.gray(`\n[DEBUG] Sending to: ${ENGINE_URL}/api/v1/index`));
|
|
@@ -401,8 +401,8 @@ async function watchDirectory(targetPath, config) {
|
|
|
401
401
|
}
|
|
402
402
|
spinner.text = `Reading... ${Math.min(i + PARALLEL_READS, files.length)}/${files.length}`;
|
|
403
403
|
}
|
|
404
|
-
// Upload in small batches to avoid gateway timeouts
|
|
405
|
-
const BATCH_SIZE =
|
|
404
|
+
// Upload in small batches to avoid Cloudflare gateway timeouts
|
|
405
|
+
const BATCH_SIZE = 3;
|
|
406
406
|
for (let i = 0; i < filesArray.length; i += BATCH_SIZE) {
|
|
407
407
|
const batch = filesArray.slice(i, i + BATCH_SIZE);
|
|
408
408
|
const batchNum = Math.floor(i / BATCH_SIZE) + 1;
|