pentesting 0.7.46 → 0.7.47
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-TTDQ7RO5.js → auto-update-VYRAHKJ5.js} +2 -2
- package/dist/{chunk-RUZUSJTF.js → chunk-3THHNZEK.js} +1 -1
- package/dist/{chunk-OHONKFV6.js → chunk-TXNRJKYD.js} +19 -4
- package/dist/index.js +3 -3
- package/dist/{update-TUTV5WQF.js → update-PEHP22O4.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-3THHNZEK.js";
|
|
12
|
+
import "./chunk-TXNRJKYD.js";
|
|
13
13
|
import "./chunk-3RG5ZIWI.js";
|
|
14
14
|
export {
|
|
15
15
|
checkForUpdate,
|
|
@@ -188,12 +188,27 @@ var SENSITIVE_TOOLS = [
|
|
|
188
188
|
import { readFileSync } from "fs";
|
|
189
189
|
import { dirname, join } from "path";
|
|
190
190
|
import { fileURLToPath } from "url";
|
|
191
|
-
var pkgVersion = "0.7.
|
|
191
|
+
var pkgVersion = "0.7.46";
|
|
192
192
|
try {
|
|
193
193
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
const possiblePaths = [
|
|
195
|
+
join(__dirname, "..", "..", "package.json"),
|
|
196
|
+
// src/config -> root
|
|
197
|
+
join(__dirname, "..", "package.json"),
|
|
198
|
+
// dist/config -> root
|
|
199
|
+
join(__dirname, "package.json")
|
|
200
|
+
// same dir
|
|
201
|
+
];
|
|
202
|
+
for (const pkgPath of possiblePaths) {
|
|
203
|
+
try {
|
|
204
|
+
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
|
|
205
|
+
if (pkg.version) {
|
|
206
|
+
pkgVersion = pkg.version;
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
} catch {
|
|
210
|
+
}
|
|
211
|
+
}
|
|
197
212
|
} catch {
|
|
198
213
|
}
|
|
199
214
|
var APP_NAME = "pentesting";
|
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-TXNRJKYD.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./chunk-3RG5ZIWI.js";
|
|
@@ -6983,7 +6983,7 @@ var App = ({ autoApprove = false, target }) => {
|
|
|
6983
6983
|
setCheckpointCount(contextManagerRef.current?.getCheckpoints().length || 0);
|
|
6984
6984
|
}
|
|
6985
6985
|
});
|
|
6986
|
-
import("./auto-update-
|
|
6986
|
+
import("./auto-update-VYRAHKJ5.js").then(({ checkForUpdateAsync, formatUpdateNotification }) => {
|
|
6987
6987
|
checkForUpdateAsync().then((result) => {
|
|
6988
6988
|
if (result.hasUpdate) {
|
|
6989
6989
|
const notification = formatUpdateNotification(result);
|
|
@@ -7686,7 +7686,7 @@ ${list}`);
|
|
|
7686
7686
|
return;
|
|
7687
7687
|
case "update":
|
|
7688
7688
|
try {
|
|
7689
|
-
const { checkForUpdate, formatUpdateNotification, doUpdate } = await import("./update-
|
|
7689
|
+
const { checkForUpdate, formatUpdateNotification, doUpdate } = await import("./update-PEHP22O4.js");
|
|
7690
7690
|
const result = checkForUpdate(true);
|
|
7691
7691
|
if (result.hasUpdate) {
|
|
7692
7692
|
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-3THHNZEK.js";
|
|
12
|
+
import "./chunk-TXNRJKYD.js";
|
|
13
13
|
import "./chunk-3RG5ZIWI.js";
|
|
14
14
|
export {
|
|
15
15
|
checkForUpdate,
|