@probelabs/probe 0.6.0-rc246 → 0.6.0-rc247

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.
@@ -29346,6 +29346,7 @@ ${RAW_OUTPUT_END}`;
29346
29346
  output += `
29347
29347
 
29348
29348
  [The above raw output (${rawContent.length} chars) will be passed directly to the final response. Do NOT repeat, summarize, or modify it.]`;
29349
+ outputBuffer.items = [];
29349
29350
  }
29350
29351
  return output;
29351
29352
  }
@@ -525,6 +525,9 @@ function formatSuccess(result, description, attempt, outputBuffer) {
525
525
  const rawContent = outputBuffer.items.join('\n');
526
526
  output += `\n\n${RAW_OUTPUT_START}\n${rawContent}\n${RAW_OUTPUT_END}`;
527
527
  output += `\n\n[The above raw output (${rawContent.length} chars) will be passed directly to the final response. Do NOT repeat, summarize, or modify it.]`;
528
+ // Clear the buffer after reading to prevent re-wrapping on subsequent execute_plan calls
529
+ // Without this, extractRawOutputBlocks pushes content back to buffer, causing exponential duplication
530
+ outputBuffer.items = [];
528
531
  }
529
532
 
530
533
  return output;
@@ -58798,6 +58798,7 @@ ${RAW_OUTPUT_END}`;
58798
58798
  output += `
58799
58799
 
58800
58800
  [The above raw output (${rawContent.length} chars) will be passed directly to the final response. Do NOT repeat, summarize, or modify it.]`;
58801
+ outputBuffer.items = [];
58801
58802
  }
58802
58803
  return output;
58803
58804
  }
package/cjs/index.cjs CHANGED
@@ -106571,6 +106571,7 @@ ${RAW_OUTPUT_END}`;
106571
106571
  output += `
106572
106572
 
106573
106573
  [The above raw output (${rawContent.length} chars) will be passed directly to the final response. Do NOT repeat, summarize, or modify it.]`;
106574
+ outputBuffer.items = [];
106574
106575
  }
106575
106576
  return output;
106576
106577
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@probelabs/probe",
3
- "version": "0.6.0-rc246",
3
+ "version": "0.6.0-rc247",
4
4
  "description": "Node.js wrapper for the probe code search tool",
5
5
  "main": "src/index.js",
6
6
  "module": "src/index.js",
@@ -525,6 +525,9 @@ function formatSuccess(result, description, attempt, outputBuffer) {
525
525
  const rawContent = outputBuffer.items.join('\n');
526
526
  output += `\n\n${RAW_OUTPUT_START}\n${rawContent}\n${RAW_OUTPUT_END}`;
527
527
  output += `\n\n[The above raw output (${rawContent.length} chars) will be passed directly to the final response. Do NOT repeat, summarize, or modify it.]`;
528
+ // Clear the buffer after reading to prevent re-wrapping on subsequent execute_plan calls
529
+ // Without this, extractRawOutputBlocks pushes content back to buffer, causing exponential duplication
530
+ outputBuffer.items = [];
528
531
  }
529
532
 
530
533
  return output;