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.
- package/dist/index.js +2 -10
- 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
|
-
|
|
5096
|
-
|
|
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) => {
|