pentesting 0.8.28 → 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.
Files changed (2) hide show
  1. package/dist/index.js +9 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5089,7 +5089,7 @@ ${this.currentSpec.systemPrompt}`;
5089
5089
  tools: this.tools,
5090
5090
  messages,
5091
5091
  // Enable extended thinking for GLM/Claude models
5092
- thinking: { type: "enabled", budget_tokens: 4e3 }
5092
+ thinking: { type: "enabled", budget_tokens: 16e3 }
5093
5093
  });
5094
5094
  stream.on("contentBlock", (block) => {
5095
5095
  if (block.type === "thinking" && block.thinking) {
@@ -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
- addMessage(MESSAGE_TYPE.SYSTEM, `${label} ${thought.content}`);
7139
- wireLoggerRef.current?.contentPart(thought.content, thought.type === "thinking");
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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.8.28",
3
+ "version": "0.8.30",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",