pentesting 0.8.15 → 0.8.17

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 +35 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7080,9 +7080,18 @@ var App = ({ autoApprove = false, target }) => {
7080
7080
  });
7081
7081
  agent.on(AGENT_EVENT.THOUGHT, (thought) => {
7082
7082
  setCurrentStatus(thought.content.slice(0, 60));
7083
- if (thought.type === "thinking" || thought.type === "reasoning") {
7084
- addMessage(MESSAGE_TYPE.SYSTEM, `[${thought.type}] ${thought.content.slice(0, 200)}`);
7085
- }
7083
+ const icons = {
7084
+ thinking: "\u{1F9E0}",
7085
+ reasoning: "\u{1F4AD}",
7086
+ planning: "\u{1F4CB}",
7087
+ observation: "\u{1F441}\uFE0F",
7088
+ hypothesis: "\u{1F4A1}",
7089
+ reflection: "\u{1F50D}",
7090
+ action: "\u26A1"
7091
+ };
7092
+ const icon = icons[thought.type] || "\u2022";
7093
+ const preview = thought.content.slice(0, 150);
7094
+ addMessage(MESSAGE_TYPE.SYSTEM, `${icon} ${preview}`);
7086
7095
  wireLoggerRef.current?.contentPart(thought.content, thought.type === "thinking");
7087
7096
  });
7088
7097
  agent.on(AGENT_EVENT.TOOL_CALL, (data) => {
@@ -7117,10 +7126,11 @@ var App = ({ autoApprove = false, target }) => {
7117
7126
  forceUpdate((n) => n + 1);
7118
7127
  });
7119
7128
  agent.on(AGENT_EVENT.LLM_START, () => {
7120
- setCurrentStatus("Thinking...");
7129
+ setCurrentStatus("\u{1F9E0} Thinking...");
7130
+ addMessage(MESSAGE_TYPE.SYSTEM, "\u{1F9E0} AI is analyzing...");
7121
7131
  });
7122
7132
  agent.on(AGENT_EVENT.LLM_END, () => {
7123
- setCurrentStatus("Analyzing...");
7133
+ setCurrentStatus("Processing response...");
7124
7134
  });
7125
7135
  agent.on(AGENT_EVENT.CONTEXT_COMPACTED, () => {
7126
7136
  addMessage(MESSAGE_TYPE.SYSTEM, "\u{1F4BE} Context compacted to save tokens");
@@ -7145,6 +7155,26 @@ var App = ({ autoApprove = false, target }) => {
7145
7155
  }
7146
7156
  addMessage(MESSAGE_TYPE.SYSTEM, " /y = approve, /n = deny, /ya = always approve");
7147
7157
  });
7158
+ agent.on(AGENT_EVENT.AGENT_SWITCH, (data) => {
7159
+ addMessage(MESSAGE_TYPE.SYSTEM, `\u{1F504} Agent: ${data.name}`);
7160
+ setCurrentStatus(`Agent: ${data.name}`);
7161
+ });
7162
+ agent.on(AGENT_EVENT.RESPONSE, (text) => {
7163
+ if (text && text.trim()) {
7164
+ setCurrentStatus("Responding...");
7165
+ }
7166
+ });
7167
+ agent.on(AGENT_EVENT.COMPROMISED, (host) => {
7168
+ addMessage(MESSAGE_TYPE.SYSTEM, `\u{1F3AF} PWNED: ${host}`);
7169
+ });
7170
+ agent.on(AGENT_EVENT.PAUSED, () => {
7171
+ addMessage(MESSAGE_TYPE.SYSTEM, "\u23F8\uFE0F Agent paused");
7172
+ setIsProcessing(false);
7173
+ });
7174
+ agent.on(AGENT_EVENT.RESUMED, () => {
7175
+ addMessage(MESSAGE_TYPE.SYSTEM, "\u25B6\uFE0F Agent resumed");
7176
+ setIsProcessing(true);
7177
+ });
7148
7178
  agent.on(AGENT_EVENT.COMPLETE, () => {
7149
7179
  const duration = stopTimer();
7150
7180
  addMessage(MESSAGE_TYPE.SYSTEM, `\u2713 Complete (${duration}s)`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.8.15",
3
+ "version": "0.8.17",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",