pentesting 0.7.23 → 0.7.24
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-IOG624EA.js → auto-update-TTDQ7RO5.js} +2 -2
- package/dist/{chunk-WFPZI5LK.js → chunk-OHONKFV6.js} +12 -1
- package/dist/{chunk-VMJ42J34.js → chunk-RUZUSJTF.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/{update-XRH47RQS.js → update-TUTV5WQF.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-RUZUSJTF.js";
|
|
12
|
+
import "./chunk-OHONKFV6.js";
|
|
13
13
|
import "./chunk-3RG5ZIWI.js";
|
|
14
14
|
export {
|
|
15
15
|
checkForUpdate,
|
|
@@ -185,8 +185,19 @@ var SENSITIVE_TOOLS = [
|
|
|
185
185
|
];
|
|
186
186
|
|
|
187
187
|
// src/config/constants.ts
|
|
188
|
+
import { readFileSync } from "fs";
|
|
189
|
+
import { dirname, join } from "path";
|
|
190
|
+
import { fileURLToPath } from "url";
|
|
191
|
+
var pkgVersion = "0.7.23";
|
|
192
|
+
try {
|
|
193
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
194
|
+
const pkgPath = join(__dirname, "..", "..", "package.json");
|
|
195
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
196
|
+
pkgVersion = pkg.version || pkgVersion;
|
|
197
|
+
} catch {
|
|
198
|
+
}
|
|
188
199
|
var APP_NAME = "pentesting";
|
|
189
|
-
var APP_VERSION =
|
|
200
|
+
var APP_VERSION = pkgVersion;
|
|
190
201
|
var APP_DESCRIPTION = "Autonomous Penetration Testing AI Agent";
|
|
191
202
|
var LLM_API_KEY = process.env.PENTEST_API_KEY || process.env.ANTHROPIC_API_KEY || "";
|
|
192
203
|
var LLM_BASE_URL = process.env.PENTEST_BASE_URL || void 0;
|
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-OHONKFV6.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./chunk-3RG5ZIWI.js";
|
|
@@ -6570,7 +6570,7 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
6570
6570
|
setCheckpointCount(contextManagerRef.current?.getCheckpoints().length || 0);
|
|
6571
6571
|
}
|
|
6572
6572
|
});
|
|
6573
|
-
import("./auto-update-
|
|
6573
|
+
import("./auto-update-TTDQ7RO5.js").then(({ checkForUpdateAsync, formatUpdateNotification }) => {
|
|
6574
6574
|
checkForUpdateAsync().then((result) => {
|
|
6575
6575
|
if (result.hasUpdate) {
|
|
6576
6576
|
const notification = formatUpdateNotification(result);
|
|
@@ -7262,7 +7262,7 @@ ${list}`);
|
|
|
7262
7262
|
return;
|
|
7263
7263
|
case "update":
|
|
7264
7264
|
try {
|
|
7265
|
-
const { checkForUpdate, formatUpdateNotification, doUpdate } = await import("./update-
|
|
7265
|
+
const { checkForUpdate, formatUpdateNotification, doUpdate } = await import("./update-TUTV5WQF.js");
|
|
7266
7266
|
const result = checkForUpdate(true);
|
|
7267
7267
|
if (result.hasUpdate) {
|
|
7268
7268
|
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-RUZUSJTF.js";
|
|
12
|
+
import "./chunk-OHONKFV6.js";
|
|
13
13
|
import "./chunk-3RG5ZIWI.js";
|
|
14
14
|
export {
|
|
15
15
|
checkForUpdate,
|