pentesting 0.56.3 → 0.56.4
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/main.js +11 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -711,7 +711,7 @@ var INPUT_PROMPT_PATTERNS = [
|
|
|
711
711
|
|
|
712
712
|
// src/shared/constants/agent.ts
|
|
713
713
|
var APP_NAME = "Pentest AI";
|
|
714
|
-
var APP_VERSION = "0.56.
|
|
714
|
+
var APP_VERSION = "0.56.4";
|
|
715
715
|
var APP_DESCRIPTION = "Autonomous Penetration Testing AI Agent";
|
|
716
716
|
var LLM_ROLES = {
|
|
717
717
|
SYSTEM: "system",
|
|
@@ -14803,20 +14803,28 @@ var createSessionCommands = (ctx) => ({
|
|
|
14803
14803
|
|
|
14804
14804
|
// src/platform/tui/hooks/commands/target-commands.ts
|
|
14805
14805
|
var createTargetCommands = (ctx) => ({
|
|
14806
|
-
[UI_COMMANDS.TARGET]: (args) => {
|
|
14806
|
+
[UI_COMMANDS.TARGET]: async (args) => {
|
|
14807
14807
|
if (!args[0]) {
|
|
14808
14808
|
ctx.addMessage("error", "Usage: /target <ip>");
|
|
14809
14809
|
return;
|
|
14810
14810
|
}
|
|
14811
|
+
if (ctx.agent.getState().getTargets().size > 0) {
|
|
14812
|
+
await ctx.agent.resetSession();
|
|
14813
|
+
ctx.addMessage("system", "Previous target data cleared. Starting fresh session for the new target.");
|
|
14814
|
+
}
|
|
14811
14815
|
ctx.agent.addTarget(args[0]);
|
|
14812
14816
|
ctx.agent.setScope([args[0]]);
|
|
14813
14817
|
ctx.addMessage("system", `Target \u2192 ${args[0]}`);
|
|
14814
14818
|
},
|
|
14815
|
-
[UI_COMMANDS.TARGET_SHORT]: (args) => {
|
|
14819
|
+
[UI_COMMANDS.TARGET_SHORT]: async (args) => {
|
|
14816
14820
|
if (!args[0]) {
|
|
14817
14821
|
ctx.addMessage("error", "Usage: /target <ip>");
|
|
14818
14822
|
return;
|
|
14819
14823
|
}
|
|
14824
|
+
if (ctx.agent.getState().getTargets().size > 0) {
|
|
14825
|
+
await ctx.agent.resetSession();
|
|
14826
|
+
ctx.addMessage("system", "Previous target data cleared. Starting fresh session for the new target.");
|
|
14827
|
+
}
|
|
14820
14828
|
ctx.agent.addTarget(args[0]);
|
|
14821
14829
|
ctx.agent.setScope([args[0]]);
|
|
14822
14830
|
ctx.addMessage("system", `Target \u2192 ${args[0]}`);
|