@probelabs/probe 0.6.0-rc277 → 0.6.0-rc279

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.
@@ -192,7 +192,8 @@ Instructions:
192
192
  promptType: 'code-researcher',
193
193
  allowedTools: ['extract'],
194
194
  maxIterations: 5,
195
- delegationManager: options.delegationManager // Per-instance delegation limits
195
+ delegationManager: options.delegationManager, // Per-instance delegation limits
196
+ parentAbortSignal: options.parentAbortSignal || null
196
197
  // timeout removed - inherit default from delegate (300s)
197
198
  });
198
199
 
@@ -328,7 +329,8 @@ Organize all findings into clear categories with items listed under each.${compl
328
329
  promptType: 'code-researcher',
329
330
  allowedTools: [],
330
331
  maxIterations: 5,
331
- delegationManager: options.delegationManager // Per-instance delegation limits
332
+ delegationManager: options.delegationManager, // Per-instance delegation limits
333
+ parentAbortSignal: options.parentAbortSignal || null
332
334
  // timeout removed - inherit default from delegate (300s)
333
335
  });
334
336
 
@@ -404,7 +406,8 @@ CRITICAL: Do NOT guess keywords. Actually run searches and see what returns resu
404
406
  promptType: 'code-researcher',
405
407
  // Full tool access for exploration and experimentation
406
408
  maxIterations: 15,
407
- delegationManager: options.delegationManager // Per-instance delegation limits
409
+ delegationManager: options.delegationManager, // Per-instance delegation limits
410
+ parentAbortSignal: options.parentAbortSignal || null
408
411
  // timeout removed - inherit default from delegate (300s)
409
412
  });
410
413
 
@@ -475,7 +478,8 @@ When done, use the attempt_completion tool with your answer as the result.`;
475
478
  promptType: 'code-researcher',
476
479
  allowedTools: [],
477
480
  maxIterations: 5,
478
- delegationManager: options.delegationManager // Per-instance delegation limits
481
+ delegationManager: options.delegationManager, // Per-instance delegation limits
482
+ parentAbortSignal: options.parentAbortSignal || null
479
483
  // timeout removed - inherit default from delegate (300s)
480
484
  });
481
485
 
@@ -277,7 +277,8 @@ export const searchTool = (options = {}) => {
277
277
  promptType: 'code-searcher',
278
278
  allowedTools: ['search', 'extract', 'listFiles', 'attempt_completion'],
279
279
  searchDelegate: false,
280
- schema: CODE_SEARCH_SCHEMA
280
+ schema: CODE_SEARCH_SCHEMA,
281
+ parentAbortSignal: options.parentAbortSignal || null
281
282
  });
282
283
 
283
284
  const delegateResult = options.tracer?.withSpan
@@ -581,7 +582,7 @@ export const delegateTool = (options = {}) => {
581
582
  name: 'delegate',
582
583
  description: delegateDescription,
583
584
  inputSchema: delegateSchema,
584
- execute: async ({ task, currentIteration, maxIterations, parentSessionId, path, provider, model, tracer, searchDelegate }) => {
585
+ execute: async ({ task, currentIteration, maxIterations, parentSessionId, path, provider, model, tracer, searchDelegate, parentAbortSignal }) => {
585
586
  // Validate required parameters - throw errors for consistency
586
587
  if (!task || typeof task !== 'string') {
587
588
  throw new Error('Task parameter is required and must be a non-empty string');
@@ -673,7 +674,8 @@ export const delegateTool = (options = {}) => {
673
674
  enableMcp,
674
675
  mcpConfig,
675
676
  mcpConfigPath,
676
- delegationManager // Per-instance delegation limits
677
+ delegationManager, // Per-instance delegation limits
678
+ parentAbortSignal
677
679
  });
678
680
 
679
681
  return result;
@@ -733,7 +735,8 @@ export const analyzeAllTool = (options = {}) => {
733
735
  provider: options.provider,
734
736
  model: options.model,
735
737
  tracer: options.tracer,
736
- delegationManager // Per-instance delegation limits
738
+ delegationManager, // Per-instance delegation limits
739
+ parentAbortSignal: options.parentAbortSignal || null
737
740
  });
738
741
 
739
742
  return result;