pentesting 0.7.20 → 0.7.21
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/{auto-update-2TA2XEPG.js → auto-update-IOG624EA.js} +2 -2
- package/dist/{chunk-RS2X7YKI.js → chunk-VMJ42J34.js} +1 -1
- package/dist/{chunk-3KWVDLNY.js → chunk-WFPZI5LK.js} +2 -0
- package/dist/index.js +12 -3
- package/dist/{update-S2YI6GZU.js → update-XRH47RQS.js} +2 -2
- package/package.json +1 -1
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
readVersionCache,
|
|
9
9
|
semverTuple,
|
|
10
10
|
writeVersionCache
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-VMJ42J34.js";
|
|
12
|
+
import "./chunk-WFPZI5LK.js";
|
|
13
13
|
import "./chunk-3RG5ZIWI.js";
|
|
14
14
|
export {
|
|
15
15
|
checkForUpdate,
|
|
@@ -51,6 +51,8 @@ var AGENT_EVENT = {
|
|
|
51
51
|
COMMAND_EXECUTE: "command_execute",
|
|
52
52
|
APPROVAL_NEEDED: "approval_needed",
|
|
53
53
|
TOKEN_USAGE: "token_usage",
|
|
54
|
+
LLM_START: "llm_start",
|
|
55
|
+
LLM_END: "llm_end",
|
|
54
56
|
// State changes
|
|
55
57
|
TARGET_SET: "target_set",
|
|
56
58
|
PHASE_CHANGE: "phase_change",
|
package/dist/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
PHASE_STATUS,
|
|
16
16
|
THOUGHT_TYPE,
|
|
17
17
|
TOOL_NAME
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WFPZI5LK.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./chunk-3RG5ZIWI.js";
|
|
@@ -4816,6 +4816,7 @@ Goal: Deep penetration to obtain root/system privileges, extract internal data,
|
|
|
4816
4816
|
if (this.currentAgent) {
|
|
4817
4817
|
systemPrompt = buildAgentSystemPrompt(systemPrompt, this.currentAgent);
|
|
4818
4818
|
}
|
|
4819
|
+
this.emit(AGENT_EVENT.LLM_START, { model: LLM_MODEL });
|
|
4819
4820
|
const response = await withRetry(
|
|
4820
4821
|
() => this.client.messages.create({
|
|
4821
4822
|
model: LLM_MODEL,
|
|
@@ -4834,6 +4835,7 @@ Goal: Deep penetration to obtain root/system privileges, extract internal data,
|
|
|
4834
4835
|
}
|
|
4835
4836
|
}
|
|
4836
4837
|
);
|
|
4838
|
+
this.emit(AGENT_EVENT.LLM_END, { model: LLM_MODEL });
|
|
4837
4839
|
if (response.usage) {
|
|
4838
4840
|
this.tokenUsage.input += response.usage.input_tokens;
|
|
4839
4841
|
this.tokenUsage.output += response.usage.output_tokens;
|
|
@@ -6568,7 +6570,7 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
6568
6570
|
setCheckpointCount(contextManagerRef.current?.getCheckpoints().length || 0);
|
|
6569
6571
|
}
|
|
6570
6572
|
});
|
|
6571
|
-
import("./auto-update-
|
|
6573
|
+
import("./auto-update-IOG624EA.js").then(({ checkForUpdateAsync, formatUpdateNotification }) => {
|
|
6572
6574
|
checkForUpdateAsync().then((result) => {
|
|
6573
6575
|
if (result.hasUpdate) {
|
|
6574
6576
|
const notification = formatUpdateNotification(result);
|
|
@@ -6700,6 +6702,7 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
6700
6702
|
const icon = data.result.success ? "\u2713" : "\u2717";
|
|
6701
6703
|
const preview = data.result.output?.slice(0, 100).replace(/\n/g, " ") || "";
|
|
6702
6704
|
addMessage(MESSAGE_TYPE.RESULT, `${icon} ${preview}`);
|
|
6705
|
+
setCurrentStatus("Processing results...");
|
|
6703
6706
|
wireLoggerRef.current?.toolResult(data.id, data.result, !data.result.success);
|
|
6704
6707
|
});
|
|
6705
6708
|
agent.on(AGENT_EVENT.ITERATION, (data) => {
|
|
@@ -6719,6 +6722,12 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
6719
6722
|
agent.on(AGENT_EVENT.CREDENTIAL, () => {
|
|
6720
6723
|
forceUpdate((n) => n + 1);
|
|
6721
6724
|
});
|
|
6725
|
+
agent.on(AGENT_EVENT.LLM_START, () => {
|
|
6726
|
+
setCurrentStatus("Thinking...");
|
|
6727
|
+
});
|
|
6728
|
+
agent.on(AGENT_EVENT.LLM_END, () => {
|
|
6729
|
+
setCurrentStatus("Analyzing...");
|
|
6730
|
+
});
|
|
6722
6731
|
agent.on(AGENT_EVENT.CONTEXT_COMPACTED, () => {
|
|
6723
6732
|
addMessage(MESSAGE_TYPE.SYSTEM, "\u{1F4BE} Context compacted to save tokens");
|
|
6724
6733
|
wireLoggerRef.current?.statusUpdate({ event: "context_compacted" });
|
|
@@ -7223,7 +7232,7 @@ ${list}`);
|
|
|
7223
7232
|
return;
|
|
7224
7233
|
case "update":
|
|
7225
7234
|
try {
|
|
7226
|
-
const { checkForUpdate, formatUpdateNotification, doUpdate } = await import("./update-
|
|
7235
|
+
const { checkForUpdate, formatUpdateNotification, doUpdate } = await import("./update-XRH47RQS.js");
|
|
7227
7236
|
const result = checkForUpdate(true);
|
|
7228
7237
|
if (result.hasUpdate) {
|
|
7229
7238
|
const notification = formatUpdateNotification(result);
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
readVersionCache,
|
|
9
9
|
semverTuple,
|
|
10
10
|
writeVersionCache
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-VMJ42J34.js";
|
|
12
|
+
import "./chunk-WFPZI5LK.js";
|
|
13
13
|
import "./chunk-3RG5ZIWI.js";
|
|
14
14
|
export {
|
|
15
15
|
checkForUpdate,
|