@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.
@@ -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 (150 at a time for parallel processing)
78
- const BATCH_SIZE = 150;
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 larger batches (150 files per batch)
293
- const BATCH_SIZE = 150;
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 larger batches using Rust engine
361
- const BATCH_SIZE = 150;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optiqcode/cli",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "CLI tool for Optiq - automatic code indexing and context engine",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",