pentesting 0.8.18 → 0.8.20

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 +19 -13
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6624,6 +6624,18 @@ var ASCII_BANNER = `
6624
6624
  \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2557\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2551 \u2588\u2588\u2551 \u2588\u2588\u2551\u2588\u2588\u2551 \u255A\u2588\u2588\u2588\u2588\u2551\u255A\u2588\u2588\u2588\u2588\u2588\u2588\u2554\u255D
6625
6625
  \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D\u255A\u2550\u2550\u2550\u2550\u2550\u2550\u255D \u255A\u2550\u255D \u255A\u2550\u255D\u255A\u2550\u255D \u255A\u2550\u2550\u2550\u255D \u255A\u2550\u2550\u2550\u2550\u2550\u255D
6626
6626
  `;
6627
+ var THOUGHT_LABELS = {
6628
+ thinking: "[think]",
6629
+ reasoning: "[reason]",
6630
+ planning: "[plan]",
6631
+ observation: "[observe]",
6632
+ hypothesis: "[hypothesis]",
6633
+ reflection: "[reflect]",
6634
+ action: "[action]",
6635
+ result: "[result]",
6636
+ stuck: "[stuck]",
6637
+ breakthrough: "[!]"
6638
+ };
6627
6639
 
6628
6640
  // src/cli/components/rich-display.tsx
6629
6641
  import { Box, Text } from "ink";
@@ -7080,18 +7092,9 @@ var App = ({ autoApprove = false, target }) => {
7080
7092
  });
7081
7093
  agent.on(AGENT_EVENT.THOUGHT, (thought) => {
7082
7094
  setCurrentStatus(thought.content.slice(0, 60));
7083
- const icons = {
7084
- thinking: "[think]",
7085
- reasoning: "[reason]",
7086
- planning: "[plan]",
7087
- observation: "[observe]",
7088
- hypothesis: "[hypothesis]",
7089
- reflection: "[reflect]",
7090
- action: "[action]"
7091
- };
7092
- const icon = icons[thought.type] || "\u2022";
7093
- const preview = thought.content.slice(0, 150);
7094
- addMessage(MESSAGE_TYPE.SYSTEM, `${icon} ${preview}`);
7095
+ const label = THOUGHT_LABELS[thought.type] || "";
7096
+ const preview = thought.content.slice(0, 200);
7097
+ addMessage(MESSAGE_TYPE.SYSTEM, `${label} ${preview}`);
7095
7098
  wireLoggerRef.current?.contentPart(thought.content, thought.type === "thinking");
7096
7099
  });
7097
7100
  agent.on(AGENT_EVENT.TOOL_CALL, (data) => {
@@ -7127,7 +7130,6 @@ var App = ({ autoApprove = false, target }) => {
7127
7130
  });
7128
7131
  agent.on(AGENT_EVENT.LLM_START, () => {
7129
7132
  setCurrentStatus("Thinking...");
7130
- addMessage(MESSAGE_TYPE.SYSTEM, "> AI is analyzing...");
7131
7133
  });
7132
7134
  agent.on(AGENT_EVENT.LLM_END, () => {
7133
7135
  setCurrentStatus("Processing response...");
@@ -7162,6 +7164,10 @@ var App = ({ autoApprove = false, target }) => {
7162
7164
  agent.on(AGENT_EVENT.RESPONSE, (text) => {
7163
7165
  if (text && text.trim()) {
7164
7166
  setCurrentStatus("Responding...");
7167
+ const preview = text.trim().slice(0, 300);
7168
+ if (preview) {
7169
+ addMessage(MESSAGE_TYPE.ASSISTANT, preview.length < text.length ? preview + "..." : preview);
7170
+ }
7165
7171
  }
7166
7172
  });
7167
7173
  agent.on(AGENT_EVENT.COMPROMISED, (host) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.8.18",
3
+ "version": "0.8.20",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",