pentesting 0.7.10 → 0.7.12
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 +8 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6654,7 +6654,8 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
6654
6654
|
});
|
|
6655
6655
|
agent.on(AGENT_EVENT.TOOL_CALL, (data) => {
|
|
6656
6656
|
const args = Object.entries(data.input).slice(0, 2).map(([k, v]) => `${k}=${typeof v === "string" ? v.slice(0, 30) : "..."}`).join(" ");
|
|
6657
|
-
|
|
6657
|
+
const cmdPreview = data.name === "bash" && data.input.command ? String(data.input.command).slice(0, 50).replace(/\n/g, " ") : data.name;
|
|
6658
|
+
setCurrentStatus(`\u25B6 ${cmdPreview}`);
|
|
6658
6659
|
addMessage(MESSAGE_TYPE.TOOL, `\u25B6 ${data.name} ${args}`);
|
|
6659
6660
|
wireLoggerRef.current?.toolCall(data.id, data.name, data.input);
|
|
6660
6661
|
});
|
|
@@ -7404,9 +7405,13 @@ ${list}`);
|
|
|
7404
7405
|
state.target.primary || "No target",
|
|
7405
7406
|
state.target.discovered.length > 1 && ` (+${state.target.discovered.length - 1})`,
|
|
7406
7407
|
state.findings.length > 0 && ` \u2502 ${state.findings.length} findings`,
|
|
7407
|
-
state.credentials.length > 0 && ` \u2502 ${state.credentials.length} creds
|
|
7408
|
+
state.credentials.length > 0 && ` \u2502 ${state.credentials.length} creds`,
|
|
7409
|
+
tokenUsage.total > 0 && ` \u2502 ${(tokenUsage.total / 1e3).toFixed(0)}k`
|
|
7408
7410
|
] }),
|
|
7409
|
-
/* @__PURE__ */
|
|
7411
|
+
/* @__PURE__ */ jsxs2(Text2, { dimColor: true, children: [
|
|
7412
|
+
isProcessing && currentStatus && `${currentStatus.slice(0, 40)} \u2502 `,
|
|
7413
|
+
isProcessing && "ESC"
|
|
7414
|
+
] })
|
|
7410
7415
|
] })
|
|
7411
7416
|
] });
|
|
7412
7417
|
};
|