pentesting 0.49.1 → 0.49.2

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/main.js +17 -15
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -331,7 +331,7 @@ var ORPHAN_PROCESS_NAMES = [
331
331
 
332
332
  // src/shared/constants/agent.ts
333
333
  var APP_NAME = "Pentest AI";
334
- var APP_VERSION = "0.49.1";
334
+ var APP_VERSION = "0.49.2";
335
335
  var APP_DESCRIPTION = "Autonomous Penetration Testing AI Agent";
336
336
  var LLM_ROLES = {
337
337
  SYSTEM: "system",
@@ -13247,7 +13247,7 @@ import { useState as useState3, useEffect as useEffect3, memo as memo2 } from "r
13247
13247
  import { Text as Text3 } from "ink";
13248
13248
  import { jsx as jsx3 } from "react/jsx-runtime";
13249
13249
  var FRAMES = ["\u2669", "\u266A", "\u266B", "\u266C", "\u266B", "\u266A"];
13250
- var INTERVAL = 120;
13250
+ var INTERVAL = 500;
13251
13251
  var MusicSpinner = memo2(({ color }) => {
13252
13252
  const [index, setIndex] = useState3(0);
13253
13253
  useEffect3(() => {
@@ -13276,8 +13276,8 @@ var StatusDisplay = memo3(({
13276
13276
  const isThinkingStatus = currentStatus.startsWith("Reasoning");
13277
13277
  const statusLines = currentStatus ? currentStatus.split("\n").filter(Boolean) : [];
13278
13278
  const statusMain = statusLines[0] || "Processing...";
13279
- return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", marginTop: 0, children: [
13280
- retryState.status === "retrying" && /* @__PURE__ */ jsxs3(Box3, { marginBottom: 1, children: [
13279
+ if (retryState.status === "retrying") {
13280
+ return /* @__PURE__ */ jsxs3(Box3, { children: [
13281
13281
  /* @__PURE__ */ jsx4(Text4, { color: THEME.yellow, children: /* @__PURE__ */ jsx4(MusicSpinner, { color: THEME.yellow }) }),
13282
13282
  /* @__PURE__ */ jsxs3(Text4, { color: THEME.yellow, bold: true, children: [
13283
13283
  " \u27F3 Retry #",
@@ -13291,8 +13291,10 @@ var StatusDisplay = memo3(({
13291
13291
  "s \xB7 ",
13292
13292
  truncateError(retryState.error)
13293
13293
  ] })
13294
- ] }),
13295
- isProcessing && retryState.status !== "retrying" && /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", marginBottom: 1, children: [
13294
+ ] });
13295
+ }
13296
+ if (isProcessing) {
13297
+ return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", children: [
13296
13298
  /* @__PURE__ */ jsxs3(Box3, { children: [
13297
13299
  /* @__PURE__ */ jsx4(Text4, { color: isThinkingStatus ? THEME.cyan : THEME.primary, children: /* @__PURE__ */ jsx4(MusicSpinner, { color: isThinkingStatus ? THEME.cyan : THEME.primary }) }),
13298
13300
  /* @__PURE__ */ jsxs3(Text4, { color: isThinkingStatus ? THEME.cyan : THEME.primary, bold: true, children: [
@@ -13312,8 +13314,9 @@ var StatusDisplay = memo3(({
13312
13314
  "\u2502 ",
13313
13315
  statusLines.slice(1).join(" ")
13314
13316
  ] }) })
13315
- ] })
13316
- ] });
13317
+ ] });
13318
+ }
13319
+ return /* @__PURE__ */ jsx4(Box3, { height: 1, children: /* @__PURE__ */ jsx4(Text4, { children: " " }) });
13317
13320
  });
13318
13321
 
13319
13322
  // src/platform/tui/components/ChatInput.tsx
@@ -13362,17 +13365,16 @@ var ChatInput = memo4(({
13362
13365
  }
13363
13366
  }, []));
13364
13367
  return /* @__PURE__ */ jsxs4(Box4, { flexDirection: "column", children: [
13365
- /* @__PURE__ */ jsx5(
13368
+ showPreview && /* @__PURE__ */ jsx5(
13366
13369
  Box4,
13367
13370
  {
13368
13371
  flexDirection: "column",
13369
- borderStyle: showPreview ? "single" : void 0,
13370
- borderColor: showPreview ? THEME.border.default : void 0,
13371
- paddingX: showPreview ? 1 : 0,
13372
+ borderStyle: "single",
13373
+ borderColor: THEME.border.default,
13374
+ paddingX: 1,
13372
13375
  marginBottom: 0,
13373
- height: showPreview ? void 0 : 0,
13374
13376
  overflowX: "hidden",
13375
- children: showPreview && suggestions.map((cmd, i) => {
13377
+ children: suggestions.map((cmd, i) => {
13376
13378
  const isFirst = i === 0;
13377
13379
  const nameColor = isFirst ? THEME.white : THEME.gray;
13378
13380
  const aliasText = cmd.alias ? ` /${cmd.alias}` : "";
@@ -13745,7 +13747,7 @@ ${procData.stdout || "(no output)"}
13745
13747
  };
13746
13748
  }, [handleCtrlC]);
13747
13749
  return /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", paddingX: 1, width: terminalWidth, children: [
13748
- /* @__PURE__ */ jsx7(Box6, { flexDirection: "column", marginBottom: 1, flexGrow: 1, children: /* @__PURE__ */ jsx7(MessageList, { messages }) }),
13750
+ /* @__PURE__ */ jsx7(Box6, { flexDirection: "column", children: /* @__PURE__ */ jsx7(MessageList, { messages }) }),
13749
13751
  /* @__PURE__ */ jsxs6(Box6, { flexDirection: "column", children: [
13750
13752
  /* @__PURE__ */ jsx7(
13751
13753
  StatusDisplay,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pentesting",
3
- "version": "0.49.1",
3
+ "version": "0.49.2",
4
4
  "description": "Autonomous Penetration Testing AI Agent",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",