pentesting 0.8.16 → 0.8.18
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 +40 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7016,7 +7016,7 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
7016
7016
|
setIsProcessing(false);
|
|
7017
7017
|
setCurrentStatus("");
|
|
7018
7018
|
setWasInterrupted(true);
|
|
7019
|
-
addMessage(MESSAGE_TYPE.SYSTEM, "
|
|
7019
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "|| Interrupted by ESC - Ready for input");
|
|
7020
7020
|
const buffered = listener.consumePreInputBuffer();
|
|
7021
7021
|
if (buffered) {
|
|
7022
7022
|
setInput(buffered);
|
|
@@ -7081,13 +7081,13 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
7081
7081
|
agent.on(AGENT_EVENT.THOUGHT, (thought) => {
|
|
7082
7082
|
setCurrentStatus(thought.content.slice(0, 60));
|
|
7083
7083
|
const icons = {
|
|
7084
|
-
thinking: "
|
|
7085
|
-
reasoning: "
|
|
7086
|
-
planning: "
|
|
7087
|
-
observation: "
|
|
7088
|
-
hypothesis: "
|
|
7089
|
-
reflection: "
|
|
7090
|
-
action: "
|
|
7084
|
+
thinking: "[think]",
|
|
7085
|
+
reasoning: "[reason]",
|
|
7086
|
+
planning: "[plan]",
|
|
7087
|
+
observation: "[observe]",
|
|
7088
|
+
hypothesis: "[hypothesis]",
|
|
7089
|
+
reflection: "[reflect]",
|
|
7090
|
+
action: "[action]"
|
|
7091
7091
|
};
|
|
7092
7092
|
const icon = icons[thought.type] || "\u2022";
|
|
7093
7093
|
const preview = thought.content.slice(0, 150);
|
|
@@ -7126,14 +7126,14 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
7126
7126
|
forceUpdate((n) => n + 1);
|
|
7127
7127
|
});
|
|
7128
7128
|
agent.on(AGENT_EVENT.LLM_START, () => {
|
|
7129
|
-
setCurrentStatus("
|
|
7130
|
-
addMessage(MESSAGE_TYPE.SYSTEM, "
|
|
7129
|
+
setCurrentStatus("Thinking...");
|
|
7130
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "> AI is analyzing...");
|
|
7131
7131
|
});
|
|
7132
7132
|
agent.on(AGENT_EVENT.LLM_END, () => {
|
|
7133
7133
|
setCurrentStatus("Processing response...");
|
|
7134
7134
|
});
|
|
7135
7135
|
agent.on(AGENT_EVENT.CONTEXT_COMPACTED, () => {
|
|
7136
|
-
addMessage(MESSAGE_TYPE.SYSTEM, "
|
|
7136
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "[compact] Context compacted to save tokens");
|
|
7137
7137
|
wireLoggerRef.current?.statusUpdate({ event: "context_compacted" });
|
|
7138
7138
|
});
|
|
7139
7139
|
agent.on(AGENT_EVENT.TOKEN_USAGE, (usage) => {
|
|
@@ -7155,6 +7155,26 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
7155
7155
|
}
|
|
7156
7156
|
addMessage(MESSAGE_TYPE.SYSTEM, " /y = approve, /n = deny, /ya = always approve");
|
|
7157
7157
|
});
|
|
7158
|
+
agent.on(AGENT_EVENT.AGENT_SWITCH, (data) => {
|
|
7159
|
+
addMessage(MESSAGE_TYPE.SYSTEM, `> 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, `[!] PWNED: ${host}`);
|
|
7169
|
+
});
|
|
7170
|
+
agent.on(AGENT_EVENT.PAUSED, () => {
|
|
7171
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "|| Paused");
|
|
7172
|
+
setIsProcessing(false);
|
|
7173
|
+
});
|
|
7174
|
+
agent.on(AGENT_EVENT.RESUMED, () => {
|
|
7175
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "|> Resumed");
|
|
7176
|
+
setIsProcessing(true);
|
|
7177
|
+
});
|
|
7158
7178
|
agent.on(AGENT_EVENT.COMPLETE, () => {
|
|
7159
7179
|
const duration = stopTimer();
|
|
7160
7180
|
addMessage(MESSAGE_TYPE.SYSTEM, `\u2713 Complete (${duration}s)`);
|
|
@@ -7355,7 +7375,7 @@ ${list}`);
|
|
|
7355
7375
|
for (let i = 0; i < allTargets.length; i++) {
|
|
7356
7376
|
const currentTarget = allTargets[i];
|
|
7357
7377
|
if (agent.shouldStop()) {
|
|
7358
|
-
addMessage(MESSAGE_TYPE.SYSTEM,
|
|
7378
|
+
addMessage(MESSAGE_TYPE.SYSTEM, `|| Stopped at target ${i + 1}/${allTargets.length}`);
|
|
7359
7379
|
break;
|
|
7360
7380
|
}
|
|
7361
7381
|
agent.setTarget(currentTarget);
|
|
@@ -7520,7 +7540,7 @@ ${list}`);
|
|
|
7520
7540
|
if (success) {
|
|
7521
7541
|
setCheckpointCount((prev) => Math.max(0, prev - 1));
|
|
7522
7542
|
wireLoggerRef.current?.statusUpdate({ action: "undo" });
|
|
7523
|
-
addMessage(MESSAGE_TYPE.SYSTEM, "
|
|
7543
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "<< Undone to previous checkpoint");
|
|
7524
7544
|
} else {
|
|
7525
7545
|
addMessage(MESSAGE_TYPE.ERROR, "No checkpoint to undo");
|
|
7526
7546
|
}
|
|
@@ -7545,7 +7565,7 @@ ${list}`);
|
|
|
7545
7565
|
const summary = "Previous conversation summarized for context efficiency.";
|
|
7546
7566
|
await contextManagerRef.current.compact(summary, 3);
|
|
7547
7567
|
wireLoggerRef.current?.statusUpdate({ action: "compact" });
|
|
7548
|
-
addMessage(MESSAGE_TYPE.SYSTEM, "
|
|
7568
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "[compact] Context compacted (keeping last 3 messages)");
|
|
7549
7569
|
} else {
|
|
7550
7570
|
addMessage(MESSAGE_TYPE.ERROR, "Context manager not initialized");
|
|
7551
7571
|
}
|
|
@@ -7576,7 +7596,7 @@ ${list}`);
|
|
|
7576
7596
|
const text = readClipboardText();
|
|
7577
7597
|
if (text) {
|
|
7578
7598
|
const preview = text.length > 100 ? text.slice(0, 100) + "..." : text;
|
|
7579
|
-
addMessage(MESSAGE_TYPE.SYSTEM,
|
|
7599
|
+
addMessage(MESSAGE_TYPE.SYSTEM, `[clipboard] ${preview}`);
|
|
7580
7600
|
setInput(text);
|
|
7581
7601
|
} else {
|
|
7582
7602
|
addMessage(MESSAGE_TYPE.ERROR, "Clipboard is empty");
|
|
@@ -7596,7 +7616,7 @@ ${list}`);
|
|
|
7596
7616
|
const success = await contextManagerRef.current.revertTo(cpId);
|
|
7597
7617
|
if (success) {
|
|
7598
7618
|
wireLoggerRef.current?.statusUpdate({ action: "revert", checkpointId: cpId });
|
|
7599
|
-
addMessage(MESSAGE_TYPE.SYSTEM,
|
|
7619
|
+
addMessage(MESSAGE_TYPE.SYSTEM, `<< Reverted to checkpoint #${cpId}`);
|
|
7600
7620
|
} else {
|
|
7601
7621
|
addMessage(MESSAGE_TYPE.ERROR, `Checkpoint #${cpId} not found`);
|
|
7602
7622
|
}
|
|
@@ -7637,9 +7657,9 @@ ${list}`);
|
|
|
7637
7657
|
if (skills.length === 0) {
|
|
7638
7658
|
addMessage(MESSAGE_TYPE.SYSTEM, "No skills found. Add SKILL.md files to ~/.pentest/skills/");
|
|
7639
7659
|
} else {
|
|
7640
|
-
addMessage(MESSAGE_TYPE.SYSTEM,
|
|
7660
|
+
addMessage(MESSAGE_TYPE.SYSTEM, `[skills] ${skills.length} Skills:`);
|
|
7641
7661
|
skills.forEach((s) => {
|
|
7642
|
-
addMessage(MESSAGE_TYPE.SYSTEM, ` ${s.type === "flow" ? "
|
|
7662
|
+
addMessage(MESSAGE_TYPE.SYSTEM, ` ${s.type === "flow" ? "[flow]" : "[skill]"} ${s.name}: ${s.description}`);
|
|
7643
7663
|
});
|
|
7644
7664
|
}
|
|
7645
7665
|
} catch (e) {
|
|
@@ -7673,7 +7693,7 @@ ${list}`);
|
|
|
7673
7693
|
const notification = formatUpdateNotification(result);
|
|
7674
7694
|
if (notification) addMessage(MESSAGE_TYPE.SYSTEM, notification);
|
|
7675
7695
|
if (args[0] === "now") {
|
|
7676
|
-
addMessage(MESSAGE_TYPE.SYSTEM, "
|
|
7696
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "> Updating...");
|
|
7677
7697
|
const updateResult = doUpdate();
|
|
7678
7698
|
addMessage(updateResult.success ? MESSAGE_TYPE.SYSTEM : MESSAGE_TYPE.ERROR, updateResult.message);
|
|
7679
7699
|
} else {
|
|
@@ -7687,7 +7707,7 @@ ${list}`);
|
|
|
7687
7707
|
}
|
|
7688
7708
|
return;
|
|
7689
7709
|
case "think":
|
|
7690
|
-
addMessage(MESSAGE_TYPE.SYSTEM, "
|
|
7710
|
+
addMessage(MESSAGE_TYPE.SYSTEM, "[think] Extended reasoning enabled");
|
|
7691
7711
|
return;
|
|
7692
7712
|
default:
|
|
7693
7713
|
const slashRegistry = getSlashCommandRegistry();
|