pentesting 0.8.26 → 0.8.27

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5089,18 +5089,10 @@ ${this.currentSpec.systemPrompt}`;
5089
5089
  tools: this.tools,
5090
5090
  messages
5091
5091
  });
5092
- let pendingText = "";
5093
5092
  stream.on("text", (text) => {
5094
5093
  streamBuffer += text;
5095
- pendingText += text;
5096
- if (pendingText.length >= 50 || /[.!?。\n]$/.test(pendingText)) {
5097
- this.emit(AGENT_EVENT.THOUGHT, { type: "thinking", content: pendingText.trim() });
5098
- pendingText = "";
5099
- }
5100
- });
5101
- stream.on("end", () => {
5102
- if (pendingText.trim()) {
5103
- this.emit(AGENT_EVENT.THOUGHT, { type: "thinking", content: pendingText.trim() });
5094
+ if (text.trim()) {
5095
+ this.emit(AGENT_EVENT.THOUGHT, { type: "thinking", content: text });
5104
5096
  }
5105
5097
  });
5106
5098
  stream.on("contentBlock", (block) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.8.26",
3
+ "version": "0.8.27",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",