pentesting 0.8.29 → 0.8.30
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 +8 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7134,9 +7134,14 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
7134
7134
|
});
|
|
7135
7135
|
agent.on(AGENT_EVENT.THOUGHT, (thought) => {
|
|
7136
7136
|
setCurrentStatus(thought.content.slice(0, 60));
|
|
7137
|
-
const label = THOUGHT_LABELS[thought.type] || "";
|
|
7138
|
-
|
|
7139
|
-
|
|
7137
|
+
const label = THOUGHT_LABELS[thought.type] || "[?]";
|
|
7138
|
+
if (thought.type === "reasoning") {
|
|
7139
|
+
addMessage(MESSAGE_TYPE.SYSTEM, `${label} ${thought.content}`);
|
|
7140
|
+
} else if (thought.type === "thinking") {
|
|
7141
|
+
} else {
|
|
7142
|
+
addMessage(MESSAGE_TYPE.SYSTEM, `${label} ${thought.content.slice(0, 200)}`);
|
|
7143
|
+
}
|
|
7144
|
+
wireLoggerRef.current?.contentPart(thought.content, thought.type === "thinking" || thought.type === "reasoning");
|
|
7140
7145
|
});
|
|
7141
7146
|
agent.on(AGENT_EVENT.TOOL_CALL, (data) => {
|
|
7142
7147
|
const args = Object.entries(data.input).slice(0, 2).map(([k, v]) => `${k}=${typeof v === "string" ? v.slice(0, 30) : "..."}`).join(" ");
|
|
@@ -7205,7 +7210,6 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
7205
7210
|
agent.on(AGENT_EVENT.RESPONSE, (text) => {
|
|
7206
7211
|
if (text && text.trim()) {
|
|
7207
7212
|
setCurrentStatus("Responding...");
|
|
7208
|
-
addMessage(MESSAGE_TYPE.ASSISTANT, text.trim());
|
|
7209
7213
|
}
|
|
7210
7214
|
});
|
|
7211
7215
|
agent.on(AGENT_EVENT.COMPROMISED, (host) => {
|