@probelabs/probe 0.6.0-rc214 → 0.6.0-rc215

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.
@@ -4140,8 +4140,8 @@ Instructions:
4140
4140
  enableBash: false,
4141
4141
  promptType: "code-researcher",
4142
4142
  allowedTools: ["extract"],
4143
- maxIterations: 5,
4144
- timeout: 120
4143
+ maxIterations: 5
4144
+ // timeout removed - inherit default from delegate (300s)
4145
4145
  });
4146
4146
  return { chunk, result };
4147
4147
  } catch (error) {
@@ -4238,8 +4238,8 @@ Organize all findings into clear categories with items listed under each.${compl
4238
4238
  enableBash: false,
4239
4239
  promptType: "code-researcher",
4240
4240
  allowedTools: [],
4241
- maxIterations: 5,
4242
- timeout: 120
4241
+ maxIterations: 5
4242
+ // timeout removed - inherit default from delegate (300s)
4243
4243
  });
4244
4244
  return result;
4245
4245
  } catch (error) {
@@ -4301,8 +4301,8 @@ CRITICAL: Do NOT guess keywords. Actually run searches and see what returns resu
4301
4301
  enableBash: false,
4302
4302
  promptType: "code-researcher",
4303
4303
  // Full tool access for exploration and experimentation
4304
- maxIterations: 15,
4305
- timeout: 180
4304
+ maxIterations: 15
4305
+ // timeout removed - inherit default from delegate (300s)
4306
4306
  });
4307
4307
  const plan = parsePlanningResult(stripResultTags(result));
4308
4308
  if (options.debug) {
@@ -4357,8 +4357,8 @@ IMPORTANT: When completing, use the FULL format: <attempt_completion><result>YOU
4357
4357
  enableBash: false,
4358
4358
  promptType: "code-researcher",
4359
4359
  allowedTools: [],
4360
- maxIterations: 5,
4361
- timeout: 180
4360
+ maxIterations: 5
4361
+ // timeout removed - inherit default from delegate (300s)
4362
4362
  });
4363
4363
  return stripResultTags(result);
4364
4364
  } catch (error) {
@@ -4452,10 +4452,11 @@ Try rephrasing your question or broadening the scope.`;
4452
4452
  chunk.total = maxChunks;
4453
4453
  }
4454
4454
  }
4455
+ const maxWorkers = SEQUENTIAL_PROCESSING ? 1 : 3;
4455
4456
  const chunkResultsProcessed = await processChunksParallel(
4456
4457
  chunks,
4457
4458
  plan.extractionPrompt,
4458
- MAX_PARALLEL_WORKERS,
4459
+ maxWorkers,
4459
4460
  delegateOptions
4460
4461
  );
4461
4462
  if (debug) {
@@ -4475,14 +4476,14 @@ Try rephrasing your question or broadening the scope.`;
4475
4476
  }
4476
4477
  return finalAnswer;
4477
4478
  }
4478
- var DEFAULT_CHUNK_SIZE_TOKENS, MAX_PARALLEL_WORKERS, MAX_CHUNKS, CHARS_PER_TOKEN;
4479
+ var DEFAULT_CHUNK_SIZE_TOKENS, SEQUENTIAL_PROCESSING, MAX_CHUNKS, CHARS_PER_TOKEN;
4479
4480
  var init_analyzeAll = __esm({
4480
4481
  "src/tools/analyzeAll.js"() {
4481
4482
  "use strict";
4482
4483
  init_search();
4483
4484
  init_delegate();
4484
- DEFAULT_CHUNK_SIZE_TOKENS = 8e3;
4485
- MAX_PARALLEL_WORKERS = 3;
4485
+ DEFAULT_CHUNK_SIZE_TOKENS = 2e4;
4486
+ SEQUENTIAL_PROCESSING = true;
4486
4487
  MAX_CHUNKS = 50;
4487
4488
  CHARS_PER_TOKEN = 4;
4488
4489
  }
@@ -13,9 +13,9 @@ import { search } from '../search.js';
13
13
  import { delegate } from '../delegate.js';
14
14
 
15
15
  // Default chunk size in tokens (should fit comfortably in LLM context)
16
- const DEFAULT_CHUNK_SIZE_TOKENS = 8000;
17
- // Maximum parallel workers for map phase
18
- const MAX_PARALLEL_WORKERS = 3;
16
+ const DEFAULT_CHUNK_SIZE_TOKENS = 20000;
17
+ // Process chunks sequentially to avoid delegation concurrency issues
18
+ const SEQUENTIAL_PROCESSING = true;
19
19
  // Maximum chunks to process (safety limit)
20
20
  const MAX_CHUNKS = 50;
21
21
  // Rough estimate: 1 token ≈ 4 characters
@@ -192,8 +192,8 @@ Instructions:
192
192
  enableBash: false,
193
193
  promptType: 'code-researcher',
194
194
  allowedTools: ['extract'],
195
- maxIterations: 5,
196
- timeout: 120
195
+ maxIterations: 5
196
+ // timeout removed - inherit default from delegate (300s)
197
197
  });
198
198
 
199
199
  return { chunk, result };
@@ -327,8 +327,8 @@ Organize all findings into clear categories with items listed under each.${compl
327
327
  enableBash: false,
328
328
  promptType: 'code-researcher',
329
329
  allowedTools: [],
330
- maxIterations: 5,
331
- timeout: 120
330
+ maxIterations: 5
331
+ // timeout removed - inherit default from delegate (300s)
332
332
  });
333
333
 
334
334
  return result;
@@ -402,8 +402,8 @@ CRITICAL: Do NOT guess keywords. Actually run searches and see what returns resu
402
402
  enableBash: false,
403
403
  promptType: 'code-researcher',
404
404
  // Full tool access for exploration and experimentation
405
- maxIterations: 15,
406
- timeout: 180
405
+ maxIterations: 15
406
+ // timeout removed - inherit default from delegate (300s)
407
407
  });
408
408
 
409
409
  const plan = parsePlanningResult(stripResultTags(result));
@@ -472,8 +472,8 @@ IMPORTANT: When completing, use the FULL format: <attempt_completion><result>YOU
472
472
  enableBash: false,
473
473
  promptType: 'code-researcher',
474
474
  allowedTools: [],
475
- maxIterations: 5,
476
- timeout: 180
475
+ maxIterations: 5
476
+ // timeout removed - inherit default from delegate (300s)
477
477
  });
478
478
 
479
479
  return stripResultTags(result);
@@ -609,10 +609,13 @@ export async function analyzeAll(options) {
609
609
  }
610
610
  }
611
611
 
612
+ // Use sequential processing (maxWorkers=1) when SEQUENTIAL_PROCESSING is true
613
+ // This avoids "Maximum concurrent delegations reached" errors
614
+ const maxWorkers = SEQUENTIAL_PROCESSING ? 1 : 3;
612
615
  const chunkResultsProcessed = await processChunksParallel(
613
616
  chunks,
614
617
  plan.extractionPrompt,
615
- MAX_PARALLEL_WORKERS,
618
+ maxWorkers,
616
619
  delegateOptions
617
620
  );
618
621
 
@@ -33466,8 +33466,8 @@ Instructions:
33466
33466
  enableBash: false,
33467
33467
  promptType: "code-researcher",
33468
33468
  allowedTools: ["extract"],
33469
- maxIterations: 5,
33470
- timeout: 120
33469
+ maxIterations: 5
33470
+ // timeout removed - inherit default from delegate (300s)
33471
33471
  });
33472
33472
  return { chunk, result };
33473
33473
  } catch (error2) {
@@ -33564,8 +33564,8 @@ Organize all findings into clear categories with items listed under each.${compl
33564
33564
  enableBash: false,
33565
33565
  promptType: "code-researcher",
33566
33566
  allowedTools: [],
33567
- maxIterations: 5,
33568
- timeout: 120
33567
+ maxIterations: 5
33568
+ // timeout removed - inherit default from delegate (300s)
33569
33569
  });
33570
33570
  return result;
33571
33571
  } catch (error2) {
@@ -33627,8 +33627,8 @@ CRITICAL: Do NOT guess keywords. Actually run searches and see what returns resu
33627
33627
  enableBash: false,
33628
33628
  promptType: "code-researcher",
33629
33629
  // Full tool access for exploration and experimentation
33630
- maxIterations: 15,
33631
- timeout: 180
33630
+ maxIterations: 15
33631
+ // timeout removed - inherit default from delegate (300s)
33632
33632
  });
33633
33633
  const plan = parsePlanningResult(stripResultTags(result));
33634
33634
  if (options.debug) {
@@ -33683,8 +33683,8 @@ IMPORTANT: When completing, use the FULL format: <attempt_completion><result>YOU
33683
33683
  enableBash: false,
33684
33684
  promptType: "code-researcher",
33685
33685
  allowedTools: [],
33686
- maxIterations: 5,
33687
- timeout: 180
33686
+ maxIterations: 5
33687
+ // timeout removed - inherit default from delegate (300s)
33688
33688
  });
33689
33689
  return stripResultTags(result);
33690
33690
  } catch (error2) {
@@ -33778,10 +33778,11 @@ Try rephrasing your question or broadening the scope.`;
33778
33778
  chunk.total = maxChunks;
33779
33779
  }
33780
33780
  }
33781
+ const maxWorkers = SEQUENTIAL_PROCESSING ? 1 : 3;
33781
33782
  const chunkResultsProcessed = await processChunksParallel(
33782
33783
  chunks,
33783
33784
  plan.extractionPrompt,
33784
- MAX_PARALLEL_WORKERS,
33785
+ maxWorkers,
33785
33786
  delegateOptions
33786
33787
  );
33787
33788
  if (debug) {
@@ -33801,14 +33802,14 @@ Try rephrasing your question or broadening the scope.`;
33801
33802
  }
33802
33803
  return finalAnswer;
33803
33804
  }
33804
- var DEFAULT_CHUNK_SIZE_TOKENS, MAX_PARALLEL_WORKERS, MAX_CHUNKS, CHARS_PER_TOKEN;
33805
+ var DEFAULT_CHUNK_SIZE_TOKENS, SEQUENTIAL_PROCESSING, MAX_CHUNKS, CHARS_PER_TOKEN;
33805
33806
  var init_analyzeAll = __esm({
33806
33807
  "src/tools/analyzeAll.js"() {
33807
33808
  "use strict";
33808
33809
  init_search();
33809
33810
  init_delegate();
33810
- DEFAULT_CHUNK_SIZE_TOKENS = 8e3;
33811
- MAX_PARALLEL_WORKERS = 3;
33811
+ DEFAULT_CHUNK_SIZE_TOKENS = 2e4;
33812
+ SEQUENTIAL_PROCESSING = true;
33812
33813
  MAX_CHUNKS = 50;
33813
33814
  CHARS_PER_TOKEN = 4;
33814
33815
  }
package/cjs/index.cjs CHANGED
@@ -99542,8 +99542,8 @@ Instructions:
99542
99542
  enableBash: false,
99543
99543
  promptType: "code-researcher",
99544
99544
  allowedTools: ["extract"],
99545
- maxIterations: 5,
99546
- timeout: 120
99545
+ maxIterations: 5
99546
+ // timeout removed - inherit default from delegate (300s)
99547
99547
  });
99548
99548
  return { chunk, result };
99549
99549
  } catch (error2) {
@@ -99640,8 +99640,8 @@ Organize all findings into clear categories with items listed under each.${compl
99640
99640
  enableBash: false,
99641
99641
  promptType: "code-researcher",
99642
99642
  allowedTools: [],
99643
- maxIterations: 5,
99644
- timeout: 120
99643
+ maxIterations: 5
99644
+ // timeout removed - inherit default from delegate (300s)
99645
99645
  });
99646
99646
  return result;
99647
99647
  } catch (error2) {
@@ -99703,8 +99703,8 @@ CRITICAL: Do NOT guess keywords. Actually run searches and see what returns resu
99703
99703
  enableBash: false,
99704
99704
  promptType: "code-researcher",
99705
99705
  // Full tool access for exploration and experimentation
99706
- maxIterations: 15,
99707
- timeout: 180
99706
+ maxIterations: 15
99707
+ // timeout removed - inherit default from delegate (300s)
99708
99708
  });
99709
99709
  const plan = parsePlanningResult(stripResultTags(result));
99710
99710
  if (options.debug) {
@@ -99759,8 +99759,8 @@ IMPORTANT: When completing, use the FULL format: <attempt_completion><result>YOU
99759
99759
  enableBash: false,
99760
99760
  promptType: "code-researcher",
99761
99761
  allowedTools: [],
99762
- maxIterations: 5,
99763
- timeout: 180
99762
+ maxIterations: 5
99763
+ // timeout removed - inherit default from delegate (300s)
99764
99764
  });
99765
99765
  return stripResultTags(result);
99766
99766
  } catch (error2) {
@@ -99854,10 +99854,11 @@ Try rephrasing your question or broadening the scope.`;
99854
99854
  chunk.total = maxChunks;
99855
99855
  }
99856
99856
  }
99857
+ const maxWorkers = SEQUENTIAL_PROCESSING ? 1 : 3;
99857
99858
  const chunkResultsProcessed = await processChunksParallel(
99858
99859
  chunks,
99859
99860
  plan.extractionPrompt,
99860
- MAX_PARALLEL_WORKERS,
99861
+ maxWorkers,
99861
99862
  delegateOptions
99862
99863
  );
99863
99864
  if (debug) {
@@ -99877,14 +99878,14 @@ Try rephrasing your question or broadening the scope.`;
99877
99878
  }
99878
99879
  return finalAnswer;
99879
99880
  }
99880
- var DEFAULT_CHUNK_SIZE_TOKENS, MAX_PARALLEL_WORKERS, MAX_CHUNKS, CHARS_PER_TOKEN2;
99881
+ var DEFAULT_CHUNK_SIZE_TOKENS, SEQUENTIAL_PROCESSING, MAX_CHUNKS, CHARS_PER_TOKEN2;
99881
99882
  var init_analyzeAll = __esm({
99882
99883
  "src/tools/analyzeAll.js"() {
99883
99884
  "use strict";
99884
99885
  init_search();
99885
99886
  init_delegate();
99886
- DEFAULT_CHUNK_SIZE_TOKENS = 8e3;
99887
- MAX_PARALLEL_WORKERS = 3;
99887
+ DEFAULT_CHUNK_SIZE_TOKENS = 2e4;
99888
+ SEQUENTIAL_PROCESSING = true;
99888
99889
  MAX_CHUNKS = 50;
99889
99890
  CHARS_PER_TOKEN2 = 4;
99890
99891
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@probelabs/probe",
3
- "version": "0.6.0-rc214",
3
+ "version": "0.6.0-rc215",
4
4
  "description": "Node.js wrapper for the probe code search tool",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -13,9 +13,9 @@ import { search } from '../search.js';
13
13
  import { delegate } from '../delegate.js';
14
14
 
15
15
  // Default chunk size in tokens (should fit comfortably in LLM context)
16
- const DEFAULT_CHUNK_SIZE_TOKENS = 8000;
17
- // Maximum parallel workers for map phase
18
- const MAX_PARALLEL_WORKERS = 3;
16
+ const DEFAULT_CHUNK_SIZE_TOKENS = 20000;
17
+ // Process chunks sequentially to avoid delegation concurrency issues
18
+ const SEQUENTIAL_PROCESSING = true;
19
19
  // Maximum chunks to process (safety limit)
20
20
  const MAX_CHUNKS = 50;
21
21
  // Rough estimate: 1 token ≈ 4 characters
@@ -192,8 +192,8 @@ Instructions:
192
192
  enableBash: false,
193
193
  promptType: 'code-researcher',
194
194
  allowedTools: ['extract'],
195
- maxIterations: 5,
196
- timeout: 120
195
+ maxIterations: 5
196
+ // timeout removed - inherit default from delegate (300s)
197
197
  });
198
198
 
199
199
  return { chunk, result };
@@ -327,8 +327,8 @@ Organize all findings into clear categories with items listed under each.${compl
327
327
  enableBash: false,
328
328
  promptType: 'code-researcher',
329
329
  allowedTools: [],
330
- maxIterations: 5,
331
- timeout: 120
330
+ maxIterations: 5
331
+ // timeout removed - inherit default from delegate (300s)
332
332
  });
333
333
 
334
334
  return result;
@@ -402,8 +402,8 @@ CRITICAL: Do NOT guess keywords. Actually run searches and see what returns resu
402
402
  enableBash: false,
403
403
  promptType: 'code-researcher',
404
404
  // Full tool access for exploration and experimentation
405
- maxIterations: 15,
406
- timeout: 180
405
+ maxIterations: 15
406
+ // timeout removed - inherit default from delegate (300s)
407
407
  });
408
408
 
409
409
  const plan = parsePlanningResult(stripResultTags(result));
@@ -472,8 +472,8 @@ IMPORTANT: When completing, use the FULL format: <attempt_completion><result>YOU
472
472
  enableBash: false,
473
473
  promptType: 'code-researcher',
474
474
  allowedTools: [],
475
- maxIterations: 5,
476
- timeout: 180
475
+ maxIterations: 5
476
+ // timeout removed - inherit default from delegate (300s)
477
477
  });
478
478
 
479
479
  return stripResultTags(result);
@@ -609,10 +609,13 @@ export async function analyzeAll(options) {
609
609
  }
610
610
  }
611
611
 
612
+ // Use sequential processing (maxWorkers=1) when SEQUENTIAL_PROCESSING is true
613
+ // This avoids "Maximum concurrent delegations reached" errors
614
+ const maxWorkers = SEQUENTIAL_PROCESSING ? 1 : 3;
612
615
  const chunkResultsProcessed = await processChunksParallel(
613
616
  chunks,
614
617
  plan.extractionPrompt,
615
- MAX_PARALLEL_WORKERS,
618
+ maxWorkers,
616
619
  delegateOptions
617
620
  );
618
621