@pensar/apex 2.0.0-canary.f1bf2e42 → 2.0.0
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/build/agent-84enr6xn.js +22 -0
- package/build/{agent-2pvv9y5r.js → agent-x1tnsg7n.js} +8 -8
- package/build/{agent-zedpeyzb.js → agent-z8043nrm.js} +10 -10
- package/build/{apps-mmbjancy.js → apps-gdze0s68.js} +16 -16
- package/build/{auth-bassdhkk.js → auth-24ca1qwx.js} +16 -16
- package/build/authentication-0k43jay4.js +22 -0
- package/build/blackboxAgent-76tnwwg7.js +22 -0
- package/build/{blackboxPentest-fcgpy4qr.js → blackboxPentest-xwc031xm.js} +14 -14
- package/build/{cli-jb1910t7.js → cli-0v9x0eby.js} +1 -1
- package/build/{cli-77m6s31n.js → cli-1yavz2pb.js} +1 -1
- package/build/{cli-3dbw1vpw.js → cli-31cara07.js} +4 -4
- package/build/{cli-sc3hfw6t.js → cli-3knnkdps.js} +2 -2
- package/build/{cli-r0prya8x.js → cli-5fr9k6m4.js} +7 -7
- package/build/{cli-rfpbf2cv.js → cli-948dk60p.js} +1 -1
- package/build/{cli-vbt1b4rg.js → cli-a20jcpmp.js} +1 -1
- package/build/{cli-cvrzx0hy.js → cli-cb5va0cs.js} +1 -1
- package/build/{cli-sk9yfg4h.js → cli-h6nw89zf.js} +1 -1
- package/build/{cli-7wb1eg3z.js → cli-h825qzmd.js} +2 -2
- package/build/{cli-acwkmp06.js → cli-k8mvghe1.js} +16 -16
- package/build/{cli-v00krxha.js → cli-ntd42071.js} +1 -1
- package/build/{cli-rx19gygf.js → cli-sw5swz40.js} +2 -2
- package/build/{cli-aw8fdgg0.js → cli-wdmqkshz.js} +2 -2
- package/build/{cli-s7w22ez6.js → cli-zpvmaxem.js} +2 -2
- package/build/{cli-kytdf2ja.js → cli-zvq4gy61.js} +2 -2
- package/build/cli.js +30 -30
- package/build/{config-yk9zzwwv.js → config-cmq1cxz3.js} +3 -3
- package/build/{fixes-9cz07ws6.js → fixes-a4qscvkx.js} +16 -16
- package/build/{index-x5s3fzj6.js → index-0fnbx38r.js} +8 -8
- package/build/{index-2c8ecwak.js → index-2a1x5nnv.js} +3 -3
- package/build/{index-negmajvt.js → index-48pjf9d2.js} +17 -17
- package/build/{index-77dzgxe3.js → index-54ep0ery.js} +10 -10
- package/build/{index-jzwpc9y9.js → index-aymt8k9w.js} +2 -2
- package/build/{index-7pb1byhk.js → index-hfhkjj2g.js} +9 -9
- package/build/{index-8nbv3xn4.js → index-s17r2akv.js} +4 -4
- package/build/{issues-kfxrt3nj.js → issues-5pnrspt7.js} +16 -16
- package/build/{logs-b8yrdyg0.js → logs-1mfm901x.js} +16 -16
- package/build/{offesecAgent-bzx8v3pq.js → offesecAgent-mrbyc93d.js} +9 -9
- package/build/pentest-wy4eeagc.js +31 -0
- package/build/{pentests-gfrqt73q.js → pentests-htmtq66d.js} +16 -16
- package/build/{targetedPentest-kxg88xxc.js → targetedPentest-cpbd87rc.js} +10 -10
- package/build/threatModel-9n56z6a6.js +29 -0
- package/build/{uninstall-kja66adh.js → uninstall-6y9dkgyt.js} +1 -1
- package/build/{utils-n9e2zham.js → utils-trqnyj77.js} +6 -6
- package/package.json +1 -1
- package/build/agent-31rt0fbk.js +0 -22
- package/build/authentication-qgnggaxp.js +0 -22
- package/build/blackboxAgent-t8gj0hx8.js +0 -22
- package/build/pentest-78yxa7ch.js +0 -31
- package/build/threatModel-2stkpdqh.js +0 -29
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-zpvmaxem.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-ntd42071.js";
|
|
6
|
+
import"./cli-k8mvghe1.js";
|
|
7
|
+
import"./cli-mswm4k81.js";
|
|
8
|
+
import"./cli-3knnkdps.js";
|
|
9
|
+
import"./cli-c8131c4q.js";
|
|
10
|
+
import"./cli-s1nckt4k.js";
|
|
11
|
+
import"./cli-1yavz2pb.js";
|
|
12
|
+
import"./cli-h825qzmd.js";
|
|
13
|
+
import"./cli-948dk60p.js";
|
|
14
|
+
import"./cli-e6rgwtpb.js";
|
|
15
|
+
import"./cli-h6nw89zf.js";
|
|
16
|
+
import"./cli-gpnb45ck.js";
|
|
17
|
+
import"./cli-0v9x0eby.js";
|
|
18
|
+
import"./cli-a20jcpmp.js";
|
|
19
|
+
import"./cli-8rxa073f.js";
|
|
20
|
+
export {
|
|
21
|
+
CodeAgent
|
|
22
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-k8mvghe1.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-mswm4k81.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-3knnkdps.js";
|
|
8
8
|
import"./cli-c8131c4q.js";
|
|
9
9
|
import"./cli-s1nckt4k.js";
|
|
10
|
-
import"./cli-
|
|
10
|
+
import"./cli-1yavz2pb.js";
|
|
11
11
|
import {
|
|
12
12
|
init_dist,
|
|
13
13
|
stepCountIs
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
} from "./cli-h825qzmd.js";
|
|
15
|
+
import"./cli-948dk60p.js";
|
|
16
16
|
import {
|
|
17
17
|
exports_external1 as exports_external,
|
|
18
18
|
init_zod
|
|
19
19
|
} from "./cli-e6rgwtpb.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-h6nw89zf.js";
|
|
21
21
|
import"./cli-gpnb45ck.js";
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
22
|
+
import"./cli-0v9x0eby.js";
|
|
23
|
+
import"./cli-a20jcpmp.js";
|
|
24
24
|
import"./cli-8rxa073f.js";
|
|
25
25
|
|
|
26
26
|
// src/core/agents/specialized/findingJudge/agent.ts
|
|
@@ -3,22 +3,22 @@ import {
|
|
|
3
3
|
buildPentestActiveTools,
|
|
4
4
|
buildPentestPrompt,
|
|
5
5
|
buildPentestSystemPrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-cb5va0cs.js";
|
|
7
7
|
import"./cli-9fsre5pt.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
8
|
+
import"./cli-ntd42071.js";
|
|
9
|
+
import"./cli-k8mvghe1.js";
|
|
10
10
|
import"./cli-mswm4k81.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-3knnkdps.js";
|
|
12
12
|
import"./cli-c8131c4q.js";
|
|
13
13
|
import"./cli-s1nckt4k.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
14
|
+
import"./cli-1yavz2pb.js";
|
|
15
|
+
import"./cli-h825qzmd.js";
|
|
16
|
+
import"./cli-948dk60p.js";
|
|
17
17
|
import"./cli-e6rgwtpb.js";
|
|
18
|
-
import"./cli-
|
|
18
|
+
import"./cli-h6nw89zf.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
import"./cli-0v9x0eby.js";
|
|
21
|
+
import"./cli-a20jcpmp.js";
|
|
22
22
|
import"./cli-8rxa073f.js";
|
|
23
23
|
export {
|
|
24
24
|
buildPentestSystemPrompt,
|
|
@@ -12,29 +12,29 @@ import {
|
|
|
12
12
|
searchEndpoints,
|
|
13
13
|
updateApp,
|
|
14
14
|
updateEndpoint
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
15
|
+
} from "./cli-31cara07.js";
|
|
16
|
+
import"./cli-5fr9k6m4.js";
|
|
17
|
+
import"./cli-sw5swz40.js";
|
|
18
|
+
import"./cli-cb5va0cs.js";
|
|
19
|
+
import"./cli-zvq4gy61.js";
|
|
20
|
+
import"./cli-zpvmaxem.js";
|
|
21
|
+
import"./cli-wdmqkshz.js";
|
|
22
22
|
import"./cli-9fsre5pt.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
23
|
+
import"./cli-ntd42071.js";
|
|
24
|
+
import"./cli-k8mvghe1.js";
|
|
25
25
|
import"./cli-mswm4k81.js";
|
|
26
|
-
import"./cli-
|
|
26
|
+
import"./cli-3knnkdps.js";
|
|
27
27
|
import"./cli-fw5r7pfj.js";
|
|
28
28
|
import"./cli-c8131c4q.js";
|
|
29
29
|
import"./cli-s1nckt4k.js";
|
|
30
|
-
import"./cli-
|
|
31
|
-
import"./cli-
|
|
32
|
-
import"./cli-
|
|
30
|
+
import"./cli-1yavz2pb.js";
|
|
31
|
+
import"./cli-h825qzmd.js";
|
|
32
|
+
import"./cli-948dk60p.js";
|
|
33
33
|
import"./cli-e6rgwtpb.js";
|
|
34
|
-
import"./cli-
|
|
34
|
+
import"./cli-h6nw89zf.js";
|
|
35
35
|
import"./cli-gpnb45ck.js";
|
|
36
|
-
import"./cli-
|
|
37
|
-
import"./cli-
|
|
36
|
+
import"./cli-0v9x0eby.js";
|
|
37
|
+
import"./cli-a20jcpmp.js";
|
|
38
38
|
import"./cli-8rxa073f.js";
|
|
39
39
|
|
|
40
40
|
// src/cli/apps.ts
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
2
|
+
import"./cli-31cara07.js";
|
|
3
|
+
import"./cli-5fr9k6m4.js";
|
|
4
|
+
import"./cli-sw5swz40.js";
|
|
5
|
+
import"./cli-cb5va0cs.js";
|
|
6
|
+
import"./cli-zvq4gy61.js";
|
|
7
|
+
import"./cli-zpvmaxem.js";
|
|
8
|
+
import"./cli-wdmqkshz.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
10
|
+
import"./cli-ntd42071.js";
|
|
11
|
+
import"./cli-k8mvghe1.js";
|
|
12
12
|
import"./cli-mswm4k81.js";
|
|
13
|
-
import"./cli-
|
|
13
|
+
import"./cli-3knnkdps.js";
|
|
14
14
|
import"./cli-fw5r7pfj.js";
|
|
15
15
|
import"./cli-c8131c4q.js";
|
|
16
16
|
import"./cli-s1nckt4k.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
17
|
+
import"./cli-1yavz2pb.js";
|
|
18
|
+
import"./cli-h825qzmd.js";
|
|
19
19
|
import {
|
|
20
20
|
disconnect,
|
|
21
21
|
fetchWorkspaces,
|
|
@@ -28,15 +28,15 @@ import {
|
|
|
28
28
|
pollWorkOSToken,
|
|
29
29
|
selectWorkspace,
|
|
30
30
|
startDeviceFlow
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-948dk60p.js";
|
|
32
32
|
import"./cli-e6rgwtpb.js";
|
|
33
33
|
import {
|
|
34
34
|
config,
|
|
35
35
|
init_config
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-h6nw89zf.js";
|
|
37
37
|
import"./cli-gpnb45ck.js";
|
|
38
|
-
import"./cli-
|
|
39
|
-
import"./cli-
|
|
38
|
+
import"./cli-0v9x0eby.js";
|
|
39
|
+
import"./cli-a20jcpmp.js";
|
|
40
40
|
import {
|
|
41
41
|
__require
|
|
42
42
|
} from "./cli-8rxa073f.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-zvq4gy61.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-ntd42071.js";
|
|
6
|
+
import"./cli-k8mvghe1.js";
|
|
7
|
+
import"./cli-mswm4k81.js";
|
|
8
|
+
import"./cli-3knnkdps.js";
|
|
9
|
+
import"./cli-c8131c4q.js";
|
|
10
|
+
import"./cli-s1nckt4k.js";
|
|
11
|
+
import"./cli-1yavz2pb.js";
|
|
12
|
+
import"./cli-h825qzmd.js";
|
|
13
|
+
import"./cli-948dk60p.js";
|
|
14
|
+
import"./cli-e6rgwtpb.js";
|
|
15
|
+
import"./cli-h6nw89zf.js";
|
|
16
|
+
import"./cli-gpnb45ck.js";
|
|
17
|
+
import"./cli-0v9x0eby.js";
|
|
18
|
+
import"./cli-a20jcpmp.js";
|
|
19
|
+
import"./cli-8rxa073f.js";
|
|
20
|
+
export {
|
|
21
|
+
runAuthenticationAgent
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-sw5swz40.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-ntd42071.js";
|
|
6
|
+
import"./cli-k8mvghe1.js";
|
|
7
|
+
import"./cli-mswm4k81.js";
|
|
8
|
+
import"./cli-3knnkdps.js";
|
|
9
|
+
import"./cli-c8131c4q.js";
|
|
10
|
+
import"./cli-s1nckt4k.js";
|
|
11
|
+
import"./cli-1yavz2pb.js";
|
|
12
|
+
import"./cli-h825qzmd.js";
|
|
13
|
+
import"./cli-948dk60p.js";
|
|
14
|
+
import"./cli-e6rgwtpb.js";
|
|
15
|
+
import"./cli-h6nw89zf.js";
|
|
16
|
+
import"./cli-gpnb45ck.js";
|
|
17
|
+
import"./cli-0v9x0eby.js";
|
|
18
|
+
import"./cli-a20jcpmp.js";
|
|
19
|
+
import"./cli-8rxa073f.js";
|
|
20
|
+
export {
|
|
21
|
+
BlackboxAttackSurfaceAgent
|
|
22
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
3
|
+
} from "./cli-5fr9k6m4.js";
|
|
4
|
+
import"./cli-sw5swz40.js";
|
|
5
|
+
import"./cli-cb5va0cs.js";
|
|
6
|
+
import"./cli-zpvmaxem.js";
|
|
7
|
+
import"./cli-wdmqkshz.js";
|
|
8
8
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
9
|
+
import"./cli-ntd42071.js";
|
|
10
|
+
import"./cli-k8mvghe1.js";
|
|
11
11
|
import"./cli-mswm4k81.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-3knnkdps.js";
|
|
13
13
|
import"./cli-fw5r7pfj.js";
|
|
14
14
|
import"./cli-c8131c4q.js";
|
|
15
15
|
import"./cli-s1nckt4k.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
16
|
+
import"./cli-1yavz2pb.js";
|
|
17
|
+
import"./cli-h825qzmd.js";
|
|
18
|
+
import"./cli-948dk60p.js";
|
|
19
19
|
import"./cli-e6rgwtpb.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-h6nw89zf.js";
|
|
21
21
|
import"./cli-gpnb45ck.js";
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
22
|
+
import"./cli-0v9x0eby.js";
|
|
23
|
+
import"./cli-a20jcpmp.js";
|
|
24
24
|
import"./cli-8rxa073f.js";
|
|
25
25
|
|
|
26
26
|
// src/core/api/blackboxPentest.ts
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
6
|
buildBaseSystemPrompt,
|
|
7
7
|
sessions
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-k8mvghe1.js";
|
|
9
9
|
import {
|
|
10
10
|
init_dist,
|
|
11
11
|
stepCountIs
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-h825qzmd.js";
|
|
13
13
|
import {
|
|
14
14
|
ensureValidToken,
|
|
15
15
|
getPensarApiUrl,
|
|
16
16
|
init_auth,
|
|
17
17
|
init_constants
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-948dk60p.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_external1 as exports_external,
|
|
21
21
|
init_zod
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
config,
|
|
25
25
|
init_config
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-h6nw89zf.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__require
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-sw5swz40.js";
|
|
4
4
|
import {
|
|
5
5
|
TargetedPentestAgent,
|
|
6
6
|
buildPentestSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-cb5va0cs.js";
|
|
8
8
|
import {
|
|
9
9
|
CodeAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-zpvmaxem.js";
|
|
11
11
|
import {
|
|
12
12
|
AppsDiscoveryResultSchema,
|
|
13
13
|
DiscoverySummarySchema,
|
|
@@ -15,10 +15,10 @@ import {
|
|
|
15
15
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT,
|
|
16
16
|
WHITEBOX_DISCOVERY_SYSTEM_PROMPT,
|
|
17
17
|
WHITEBOX_ENDPOINT_DOCUMENTATION_SYSTEM_PROMPT
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-wdmqkshz.js";
|
|
19
19
|
import {
|
|
20
20
|
EvidenceFileEntrySchema
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-ntd42071.js";
|
|
22
22
|
import {
|
|
23
23
|
CweEntrySchema,
|
|
24
24
|
FindingsRegistry,
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
ValidatedCweEntrySchema,
|
|
28
28
|
hasCanonicalName,
|
|
29
29
|
runWithBoundedConcurrency
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-k8mvghe1.js";
|
|
31
31
|
import {
|
|
32
32
|
createThreatModelPrompt
|
|
33
33
|
} from "./cli-fw5r7pfj.js";
|
|
34
34
|
import {
|
|
35
35
|
hasToolCall,
|
|
36
36
|
init_dist
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-h825qzmd.js";
|
|
38
38
|
import {
|
|
39
39
|
exports_external1 as exports_external,
|
|
40
40
|
init_zod
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_auth,
|
|
5
5
|
init_constants,
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-948dk60p.js";
|
|
8
8
|
import {
|
|
9
9
|
AISDKError,
|
|
10
10
|
APICallError,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
import {
|
|
61
61
|
config,
|
|
62
62
|
init_config
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-h6nw89zf.js";
|
|
64
64
|
import {
|
|
65
65
|
__commonJS,
|
|
66
66
|
__esm,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
update,
|
|
16
16
|
write,
|
|
17
17
|
writeRaw
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-3knnkdps.js";
|
|
19
19
|
import {
|
|
20
20
|
parseTargetUrl
|
|
21
21
|
} from "./cli-c8131c4q.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./cli-s1nckt4k.js";
|
|
26
26
|
import {
|
|
27
27
|
init_ai
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-1yavz2pb.js";
|
|
29
29
|
import {
|
|
30
30
|
generateObjectResponse,
|
|
31
31
|
getApexTracer,
|
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
init_observability,
|
|
35
35
|
require_tslib,
|
|
36
36
|
streamResponse
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-h825qzmd.js";
|
|
38
38
|
import {
|
|
39
39
|
ensureValidToken,
|
|
40
40
|
getPensarApiUrl,
|
|
41
41
|
init_auth,
|
|
42
42
|
init_constants,
|
|
43
43
|
signGatewayRequest
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-948dk60p.js";
|
|
45
45
|
import {
|
|
46
46
|
_enum,
|
|
47
47
|
_null,
|
|
@@ -73,11 +73,11 @@ import {
|
|
|
73
73
|
import {
|
|
74
74
|
config,
|
|
75
75
|
init_config
|
|
76
|
-
} from "./cli-
|
|
76
|
+
} from "./cli-h6nw89zf.js";
|
|
77
77
|
import {
|
|
78
78
|
getCurrentVersion,
|
|
79
79
|
init_installation
|
|
80
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-a20jcpmp.js";
|
|
81
81
|
import {
|
|
82
82
|
__commonJS,
|
|
83
83
|
__require,
|
|
@@ -111704,7 +111704,7 @@ When to use delegate_to_auth_subagent vs authenticate_session:
|
|
|
111704
111704
|
if (credentials) {
|
|
111705
111705
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
111706
111706
|
}
|
|
111707
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
111707
|
+
const { runAuthenticationAgent } = await import("./authentication-0k43jay4.js");
|
|
111708
111708
|
const localBus = new AgentEventBus;
|
|
111709
111709
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
111710
111710
|
const result = await runAuthenticationAgent({
|
|
@@ -112381,7 +112381,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
112381
112381
|
return threatModelLimiter(async () => {
|
|
112382
112382
|
if (ctx.abortSignal?.aborted)
|
|
112383
112383
|
return null;
|
|
112384
|
-
const { CodeAgent } = await import("./agent-
|
|
112384
|
+
const { CodeAgent } = await import("./agent-84enr6xn.js");
|
|
112385
112385
|
const subagentId = `threat-model-${sanitize(input.appName)}-${sanitize(input.routePath)}`;
|
|
112386
112386
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
112387
112387
|
subagentId,
|
|
@@ -114224,7 +114224,7 @@ function extractContextSummary(messages) {
|
|
|
114224
114224
|
// src/core/agents/specialized/findingJudge/index.ts
|
|
114225
114225
|
async function judgeFinding(input, ctx) {
|
|
114226
114226
|
try {
|
|
114227
|
-
const { FindingJudgeAgent } = await import("./agent-
|
|
114227
|
+
const { FindingJudgeAgent } = await import("./agent-x1tnsg7n.js");
|
|
114228
114228
|
const agent = new FindingJudgeAgent({
|
|
114229
114229
|
finding: input,
|
|
114230
114230
|
model: ctx.model,
|
|
@@ -120102,7 +120102,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
120102
120102
|
});
|
|
120103
120103
|
if (cwd) {
|
|
120104
120104
|
try {
|
|
120105
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
120105
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-54ep0ery.js");
|
|
120106
120106
|
const localBus = new AgentEventBus;
|
|
120107
120107
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
120108
120108
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -120153,7 +120153,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
120153
120153
|
}
|
|
120154
120154
|
}
|
|
120155
120155
|
try {
|
|
120156
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
120156
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-76tnwwg7.js");
|
|
120157
120157
|
const localBus = new AgentEventBus;
|
|
120158
120158
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
120159
120159
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -120232,7 +120232,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
120232
120232
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
120233
120233
|
}),
|
|
120234
120234
|
execute: async ({ target, cwd }) => {
|
|
120235
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
120235
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-wy4eeagc.js");
|
|
120236
120236
|
if (!ctx.model) {
|
|
120237
120237
|
return {
|
|
120238
120238
|
success: false,
|
|
@@ -121808,7 +121808,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
121808
121808
|
});
|
|
121809
121809
|
}
|
|
121810
121810
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
121811
|
-
const { CodeAgent } = await import("./agent-
|
|
121811
|
+
const { CodeAgent } = await import("./agent-84enr6xn.js");
|
|
121812
121812
|
const subagentId = `coding-agent-${agentIndex}`;
|
|
121813
121813
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
121814
121814
|
subagentId,
|
|
@@ -122288,7 +122288,7 @@ Returns the worker's summary, objective results, and finding count — but NOT t
|
|
|
122288
122288
|
message: "spawn_pentest_agent requires a model in the tool context."
|
|
122289
122289
|
};
|
|
122290
122290
|
}
|
|
122291
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
122291
|
+
const { TargetedPentestAgent } = await import("./agent-z8043nrm.js");
|
|
122292
122292
|
const findingsRegistry = ctx.findingsRegistry ?? FindingsRegistry.fromDirectory(ctx.session.findingsPath, {
|
|
122293
122293
|
model: ctx.model,
|
|
122294
122294
|
authConfig: ctx.authConfig,
|
|
@@ -122439,7 +122439,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
122439
122439
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
122440
122440
|
}),
|
|
122441
122441
|
execute: async ({ targets }) => {
|
|
122442
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-
|
|
122442
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-wy4eeagc.js");
|
|
122443
122443
|
if (!ctx.model) {
|
|
122444
122444
|
return {
|
|
122445
122445
|
success: false,
|
|
@@ -124865,7 +124865,7 @@ async function create(input) {
|
|
|
124865
124865
|
if (normalizedConfig?.headers !== undefined) {
|
|
124866
124866
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
124867
124867
|
} else {
|
|
124868
|
-
const { config: appConfig } = await import("./index-
|
|
124868
|
+
const { config: appConfig } = await import("./index-2a1x5nnv.js");
|
|
124869
124869
|
const cfg = await appConfig.get();
|
|
124870
124870
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
124871
124871
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-k8mvghe1.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-mswm4k81.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
hasToolCall,
|
|
9
9
|
init_dist,
|
|
10
10
|
stepCountIs
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-h825qzmd.js";
|
|
12
12
|
|
|
13
13
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
14
14
|
init_dist();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-k8mvghe1.js";
|
|
4
4
|
import {
|
|
5
5
|
hasToolCall,
|
|
6
6
|
init_dist
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-h825qzmd.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_external1 as exports_external,
|
|
10
10
|
init_zod,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-k8mvghe1.js";
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
stepCountIs
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-h825qzmd.js";
|
|
8
8
|
|
|
9
9
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
10
10
|
init_dist();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-k8mvghe1.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-mswm4k81.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
init_dist
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-h825qzmd.js";
|
|
11
11
|
|
|
12
12
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
13
13
|
init_dist();
|