@pensar/apex 2.4.0-canary.62bc496e → 2.4.0-canary.7d58f42b
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-pe24p6mg.js → agent-2mgkzsjp.js} +7 -7
- package/build/agent-b9z65xtf.js +19 -0
- package/build/{agent-k19qj2ky.js → agent-wp6zfnk6.js} +9 -9
- package/build/{apps-c94a020a.js → apps-g2a56s8h.js} +16 -16
- package/build/{auth-43pq9jw0.js → auth-2j1mypvj.js} +16 -16
- package/build/authentication-f705a52c.js +19 -0
- package/build/blackboxAgent-aze7z75t.js +19 -0
- package/build/{blackboxPentest-34t6p4cs.js → blackboxPentest-4y38fze4.js} +14 -14
- package/build/{cli-a414cgyn.js → cli-1rrjt09r.js} +3 -3
- package/build/{cli-3tf70xvr.js → cli-3rzeb1qk.js} +2 -2
- package/build/{cli-j1mag4jx.js → cli-719fst3v.js} +16 -25
- package/build/{cli-9rd6d1st.js → cli-b9322y77.js} +1 -1
- package/build/{cli-cyzzgp5f.js → cli-ck1mwkrr.js} +2 -2
- package/build/{cli-mbpvp8zc.js → cli-ck7njgve.js} +1 -1
- package/build/{cli-zmk0bz2d.js → cli-fjr302a9.js} +8 -8
- package/build/{cli-ap7mssse.js → cli-ft53y6a0.js} +1 -1
- package/build/{cli-zy5jm91d.js → cli-hxpne4g1.js} +1 -1
- package/build/{cli-2gr5jk4g.js → cli-kv7v8nqp.js} +3 -3
- package/build/{cli-xcs6cppt.js → cli-kwen4v4s.js} +3 -3
- package/build/{cli-x9zvhs74.js → cli-mms9gcfg.js} +4 -4
- package/build/{cli-tfh08m49.js → cli-n4yc9rjz.js} +2 -2
- package/build/{cli-ebvegzt4.js → cli-p47nvwh9.js} +2 -2
- package/build/{cli-n6sqmhcj.js → cli-x0wdzz6m.js} +1 -1
- package/build/{cli-sf64akkw.js → cli-yry0gjp8.js} +2 -2
- package/build/{cli-q6zp60xs.js → cli-ztgapbp2.js} +1 -1
- package/build/cli.js +34 -34
- package/build/{config-eh6j15nb.js → config-39xyzp4b.js} +3 -3
- package/build/{doctor-z9n5z6an.js → doctor-m6s1nqfc.js} +6 -6
- package/build/{fastStrike-1j39425x.js → fastStrike-pg3ra6ws.js} +9 -9
- package/build/{fixes-emyt005y.js → fixes-xxn88eh3.js} +16 -16
- package/build/{index-z6gw5hk6.js → index-16fnbhte.js} +9 -9
- package/build/{index-8hs1936q.js → index-2mm19cgc.js} +8 -8
- package/build/{index-cz6q83cr.js → index-40ga770v.js} +6 -6
- package/build/{index-c0ktvngj.js → index-qn5dmtx1.js} +2 -2
- package/build/{index-vnbhgzwf.js → index-swygc6n1.js} +18 -18
- package/build/{index-b02kx66e.js → index-y45hn0x8.js} +3 -3
- package/build/{index-sg5td3k8.js → index-zax91ey2.js} +4 -4
- package/build/{issues-etaq6s1w.js → issues-0wvx58wa.js} +16 -16
- package/build/{logs-fpe3fczh.js → logs-p54xh8yx.js} +16 -16
- package/build/{offesecAgent-3wbz4btp.js → offesecAgent-806d5ysy.js} +8 -8
- package/build/pentest-wkgxd4vs.js +29 -0
- package/build/{pentests-dt91p15b.js → pentests-6v0zxfme.js} +16 -16
- package/build/{targetedPentest-bepn13h2.js → targetedPentest-s61tc3s7.js} +9 -9
- package/build/{targets-w3ns3zfd.js → targets-a59y1yab.js} +16 -16
- package/build/threatModel-s371q8fp.js +27 -0
- package/build/{uninstall-0dxkvrh0.js → uninstall-bkyv8wgs.js} +1 -1
- package/build/{upload-amsghb2q.js → upload-8dm7jrmw.js} +6 -6
- package/build/{utils-5hfq6ny3.js → utils-kzzah956.js} +5 -5
- package/package.json +2 -2
- package/build/agent-dctnsyfz.js +0 -19
- package/build/authentication-haf2tmdc.js +0 -19
- package/build/blackboxAgent-89403fyp.js +0 -19
- package/build/pentest-7h3yqqhq.js +0 -29
- package/build/threatModel-yv6j0fy3.js +0 -27
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-719fst3v.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-hxpne4g1.js";
|
|
7
7
|
import"./cli-c8131c4q.js";
|
|
8
8
|
import {
|
|
9
9
|
init_dist,
|
|
10
10
|
stepCountIs
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
} from "./cli-mms9gcfg.js";
|
|
12
|
+
import"./cli-x0wdzz6m.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
16
16
|
} from "./cli-swpbx60z.js";
|
|
17
17
|
import"./cli-j54qa6tm.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-b9322y77.js";
|
|
19
|
+
import"./cli-ztgapbp2.js";
|
|
20
|
+
import"./cli-n4yc9rjz.js";
|
|
21
21
|
import"./cli-bc05qbss.js";
|
|
22
22
|
|
|
23
23
|
// src/core/agents/specialized/findingJudge/agent.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-3rzeb1qk.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-ck7njgve.js";
|
|
6
|
+
import"./cli-719fst3v.js";
|
|
7
|
+
import"./cli-hxpne4g1.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-mms9gcfg.js";
|
|
10
|
+
import"./cli-x0wdzz6m.js";
|
|
11
|
+
import"./cli-swpbx60z.js";
|
|
12
|
+
import"./cli-j54qa6tm.js";
|
|
13
|
+
import"./cli-b9322y77.js";
|
|
14
|
+
import"./cli-ztgapbp2.js";
|
|
15
|
+
import"./cli-n4yc9rjz.js";
|
|
16
|
+
import"./cli-bc05qbss.js";
|
|
17
|
+
export {
|
|
18
|
+
CodeAgent
|
|
19
|
+
};
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
buildPentestPrompt,
|
|
6
6
|
buildPentestSystemPrompt,
|
|
7
7
|
resolvePentestAgentRole
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-p47nvwh9.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
import"./cli-ck7njgve.js";
|
|
11
|
+
import"./cli-719fst3v.js";
|
|
12
|
+
import"./cli-hxpne4g1.js";
|
|
13
13
|
import"./cli-c8131c4q.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
import"./cli-mms9gcfg.js";
|
|
15
|
+
import"./cli-x0wdzz6m.js";
|
|
16
16
|
import"./cli-swpbx60z.js";
|
|
17
17
|
import"./cli-j54qa6tm.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-b9322y77.js";
|
|
19
|
+
import"./cli-ztgapbp2.js";
|
|
20
|
+
import"./cli-n4yc9rjz.js";
|
|
21
21
|
import"./cli-bc05qbss.js";
|
|
22
22
|
export {
|
|
23
23
|
PentestResponseSchema,
|
|
@@ -1,14 +1,14 @@
|
|
|
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-
|
|
9
|
-
import"./cli-
|
|
2
|
+
import"./cli-kwen4v4s.js";
|
|
3
|
+
import"./cli-fjr302a9.js";
|
|
4
|
+
import"./cli-1rrjt09r.js";
|
|
5
|
+
import"./cli-yry0gjp8.js";
|
|
6
|
+
import"./cli-p47nvwh9.js";
|
|
7
|
+
import"./cli-kv7v8nqp.js";
|
|
8
|
+
import"./cli-3rzeb1qk.js";
|
|
9
|
+
import"./cli-ck1mwkrr.js";
|
|
10
10
|
import"./cli-9fsre5pt.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-ck7njgve.js";
|
|
12
12
|
import {
|
|
13
13
|
ENDPOINT_TRANSPORTS,
|
|
14
14
|
createApp,
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
searchEndpoints,
|
|
26
26
|
updateApp,
|
|
27
27
|
updateEndpoint
|
|
28
|
-
} from "./cli-
|
|
29
|
-
import"./cli-
|
|
28
|
+
} from "./cli-719fst3v.js";
|
|
29
|
+
import"./cli-hxpne4g1.js";
|
|
30
30
|
import"./cli-fw5r7pfj.js";
|
|
31
31
|
import"./cli-c8131c4q.js";
|
|
32
|
-
import"./cli-
|
|
33
|
-
import"./cli-
|
|
32
|
+
import"./cli-mms9gcfg.js";
|
|
33
|
+
import"./cli-x0wdzz6m.js";
|
|
34
34
|
import"./cli-swpbx60z.js";
|
|
35
35
|
import"./cli-j54qa6tm.js";
|
|
36
|
-
import"./cli-
|
|
37
|
-
import"./cli-
|
|
38
|
-
import"./cli-
|
|
36
|
+
import"./cli-b9322y77.js";
|
|
37
|
+
import"./cli-ztgapbp2.js";
|
|
38
|
+
import"./cli-n4yc9rjz.js";
|
|
39
39
|
import"./cli-bc05qbss.js";
|
|
40
40
|
|
|
41
41
|
// src/cli/apps.ts
|
|
@@ -1,19 +1,19 @@
|
|
|
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-
|
|
9
|
-
import"./cli-
|
|
2
|
+
import"./cli-kwen4v4s.js";
|
|
3
|
+
import"./cli-fjr302a9.js";
|
|
4
|
+
import"./cli-1rrjt09r.js";
|
|
5
|
+
import"./cli-yry0gjp8.js";
|
|
6
|
+
import"./cli-p47nvwh9.js";
|
|
7
|
+
import"./cli-kv7v8nqp.js";
|
|
8
|
+
import"./cli-3rzeb1qk.js";
|
|
9
|
+
import"./cli-ck1mwkrr.js";
|
|
10
10
|
import"./cli-9fsre5pt.js";
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
11
|
+
import"./cli-ck7njgve.js";
|
|
12
|
+
import"./cli-719fst3v.js";
|
|
13
|
+
import"./cli-hxpne4g1.js";
|
|
14
14
|
import"./cli-fw5r7pfj.js";
|
|
15
15
|
import"./cli-c8131c4q.js";
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-mms9gcfg.js";
|
|
17
17
|
import {
|
|
18
18
|
createWorkspaceSelection,
|
|
19
19
|
disconnect,
|
|
@@ -29,15 +29,15 @@ import {
|
|
|
29
29
|
pollWorkspaceSelection,
|
|
30
30
|
selectWorkspace,
|
|
31
31
|
startDeviceFlow
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-x0wdzz6m.js";
|
|
33
33
|
import"./cli-swpbx60z.js";
|
|
34
34
|
import"./cli-j54qa6tm.js";
|
|
35
35
|
import {
|
|
36
36
|
config,
|
|
37
37
|
init_config
|
|
38
|
-
} from "./cli-
|
|
39
|
-
import"./cli-
|
|
40
|
-
import"./cli-
|
|
38
|
+
} from "./cli-b9322y77.js";
|
|
39
|
+
import"./cli-ztgapbp2.js";
|
|
40
|
+
import"./cli-n4yc9rjz.js";
|
|
41
41
|
import {
|
|
42
42
|
__require
|
|
43
43
|
} from "./cli-bc05qbss.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-kv7v8nqp.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-ck7njgve.js";
|
|
6
|
+
import"./cli-719fst3v.js";
|
|
7
|
+
import"./cli-hxpne4g1.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-mms9gcfg.js";
|
|
10
|
+
import"./cli-x0wdzz6m.js";
|
|
11
|
+
import"./cli-swpbx60z.js";
|
|
12
|
+
import"./cli-j54qa6tm.js";
|
|
13
|
+
import"./cli-b9322y77.js";
|
|
14
|
+
import"./cli-ztgapbp2.js";
|
|
15
|
+
import"./cli-n4yc9rjz.js";
|
|
16
|
+
import"./cli-bc05qbss.js";
|
|
17
|
+
export {
|
|
18
|
+
runAuthenticationAgent
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-1rrjt09r.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-ck7njgve.js";
|
|
6
|
+
import"./cli-719fst3v.js";
|
|
7
|
+
import"./cli-hxpne4g1.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-mms9gcfg.js";
|
|
10
|
+
import"./cli-x0wdzz6m.js";
|
|
11
|
+
import"./cli-swpbx60z.js";
|
|
12
|
+
import"./cli-j54qa6tm.js";
|
|
13
|
+
import"./cli-b9322y77.js";
|
|
14
|
+
import"./cli-ztgapbp2.js";
|
|
15
|
+
import"./cli-n4yc9rjz.js";
|
|
16
|
+
import"./cli-bc05qbss.js";
|
|
17
|
+
export {
|
|
18
|
+
BlackboxAttackSurfaceAgent
|
|
19
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
3
|
+
} from "./cli-fjr302a9.js";
|
|
4
|
+
import"./cli-1rrjt09r.js";
|
|
5
|
+
import"./cli-yry0gjp8.js";
|
|
6
|
+
import"./cli-p47nvwh9.js";
|
|
7
|
+
import"./cli-3rzeb1qk.js";
|
|
8
|
+
import"./cli-ck1mwkrr.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
import"./cli-ck7njgve.js";
|
|
11
|
+
import"./cli-719fst3v.js";
|
|
12
|
+
import"./cli-hxpne4g1.js";
|
|
13
13
|
import"./cli-fw5r7pfj.js";
|
|
14
14
|
import"./cli-c8131c4q.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
import"./cli-mms9gcfg.js";
|
|
16
|
+
import"./cli-x0wdzz6m.js";
|
|
17
17
|
import"./cli-swpbx60z.js";
|
|
18
18
|
import"./cli-j54qa6tm.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
19
|
+
import"./cli-b9322y77.js";
|
|
20
|
+
import"./cli-ztgapbp2.js";
|
|
21
|
+
import"./cli-n4yc9rjz.js";
|
|
22
22
|
import"./cli-bc05qbss.js";
|
|
23
23
|
|
|
24
24
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-719fst3v.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-hxpne4g1.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
init_dist,
|
|
10
10
|
stepCountIs
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-mms9gcfg.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-719fst3v.js";
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
stepCountIs
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-mms9gcfg.js";
|
|
8
8
|
|
|
9
9
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
10
10
|
init_dist();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectOSAndEnhancePrompt
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-hxpne4g1.js";
|
|
4
4
|
import {
|
|
5
5
|
parseTargetUrl
|
|
6
6
|
} from "./cli-c8131c4q.js";
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
streamResponse,
|
|
33
33
|
withSubagentSessionBaggage,
|
|
34
34
|
write
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-mms9gcfg.js";
|
|
36
36
|
import {
|
|
37
37
|
ensureValidToken,
|
|
38
38
|
getPensarApiUrl,
|
|
39
39
|
init_auth,
|
|
40
40
|
init_constants,
|
|
41
41
|
signGatewayRequest
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-x0wdzz6m.js";
|
|
43
43
|
import {
|
|
44
44
|
_enum,
|
|
45
45
|
_null,
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
import {
|
|
71
71
|
config,
|
|
72
72
|
init_config
|
|
73
|
-
} from "./cli-
|
|
73
|
+
} from "./cli-b9322y77.js";
|
|
74
74
|
import {
|
|
75
75
|
__commonJS,
|
|
76
76
|
__require,
|
|
@@ -102763,12 +102763,7 @@ function camoufoxWindowOptions(window2) {
|
|
|
102763
102763
|
const [width, height] = window2;
|
|
102764
102764
|
return {
|
|
102765
102765
|
window: [width, height],
|
|
102766
|
-
screen: {
|
|
102767
|
-
minWidth: width,
|
|
102768
|
-
maxWidth: width,
|
|
102769
|
-
minHeight: height,
|
|
102770
|
-
maxHeight: height
|
|
102771
|
-
}
|
|
102766
|
+
screen: { minWidth: width, minHeight: height }
|
|
102772
102767
|
};
|
|
102773
102768
|
}
|
|
102774
102769
|
async function resolveCamoufoxLaunchOptions(headless, opts) {
|
|
@@ -105055,12 +105050,8 @@ const fs = require('fs');
|
|
|
105055
105050
|
...${JSON.stringify(CAMOUFOX_OPTIONS)},
|
|
105056
105051
|
headless: __headless,
|
|
105057
105052
|
window: __window,
|
|
105058
|
-
|
|
105059
|
-
|
|
105060
|
-
maxWidth: __window[0],
|
|
105061
|
-
minHeight: __window[1],
|
|
105062
|
-
maxHeight: __window[1],
|
|
105063
|
-
},
|
|
105053
|
+
// Floor only — exact-pinning a 720px height throws in browserforge.
|
|
105054
|
+
screen: { minWidth: __window[0], minHeight: __window[1] },
|
|
105064
105055
|
});
|
|
105065
105056
|
fs.writeFileSync('${SANDBOX_CAMOU_CACHE}', JSON.stringify(__camou));
|
|
105066
105057
|
}
|
|
@@ -106761,7 +106752,7 @@ IMPORTANT: Pass protectedEndpoints in authHints when you've discovered 401/403 e
|
|
|
106761
106752
|
if (credentials) {
|
|
106762
106753
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
106763
106754
|
}
|
|
106764
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
106755
|
+
const { runAuthenticationAgent } = await import("./authentication-f705a52c.js");
|
|
106765
106756
|
const localBus = new AgentEventBus;
|
|
106766
106757
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
106767
106758
|
const result = await runAuthenticationAgent({
|
|
@@ -107555,7 +107546,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
107555
107546
|
return threatModelLimiter(async () => {
|
|
107556
107547
|
if (ctx.abortSignal?.aborted)
|
|
107557
107548
|
return null;
|
|
107558
|
-
const { CodeAgent } = await import("./agent-
|
|
107549
|
+
const { CodeAgent } = await import("./agent-b9z65xtf.js");
|
|
107559
107550
|
const subagentId = newSessionId();
|
|
107560
107551
|
const subagentName = `Threat Model: ${input.routePath}`;
|
|
107561
107552
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
@@ -109480,7 +109471,7 @@ init_lazyLogger();
|
|
|
109480
109471
|
var log6 = scopedLogger(() => createLogger("FindingJudge"));
|
|
109481
109472
|
async function judgeFinding(input, ctx) {
|
|
109482
109473
|
try {
|
|
109483
|
-
const { FindingJudgeAgent } = await import("./agent-
|
|
109474
|
+
const { FindingJudgeAgent } = await import("./agent-2mgkzsjp.js");
|
|
109484
109475
|
const agent = new FindingJudgeAgent({
|
|
109485
109476
|
finding: input,
|
|
109486
109477
|
model: ctx.model,
|
|
@@ -116106,7 +116097,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
116106
116097
|
});
|
|
116107
116098
|
if (cwd) {
|
|
116108
116099
|
try {
|
|
116109
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
116100
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-16fnbhte.js");
|
|
116110
116101
|
const localBus = new AgentEventBus;
|
|
116111
116102
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
116112
116103
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -116161,7 +116152,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
116161
116152
|
}
|
|
116162
116153
|
}
|
|
116163
116154
|
try {
|
|
116164
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
116155
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-aze7z75t.js");
|
|
116165
116156
|
const localBus = new AgentEventBus;
|
|
116166
116157
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
116167
116158
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -116239,7 +116230,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
116239
116230
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
116240
116231
|
}),
|
|
116241
116232
|
execute: async ({ target, cwd }) => {
|
|
116242
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
116233
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-wkgxd4vs.js");
|
|
116243
116234
|
if (!ctx.model) {
|
|
116244
116235
|
return {
|
|
116245
116236
|
success: false,
|
|
@@ -117817,7 +117808,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
117817
117808
|
});
|
|
117818
117809
|
}
|
|
117819
117810
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
117820
|
-
const { CodeAgent } = await import("./agent-
|
|
117811
|
+
const { CodeAgent } = await import("./agent-b9z65xtf.js");
|
|
117821
117812
|
const childSessionId = newSessionId();
|
|
117822
117813
|
const subagentId = childSessionId;
|
|
117823
117814
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
@@ -118334,7 +118325,7 @@ Returns the worker's summary, objective results, and finding count — but NOT t
|
|
|
118334
118325
|
message: "spawn_pentest_agent requires a model in the tool context."
|
|
118335
118326
|
};
|
|
118336
118327
|
}
|
|
118337
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
118328
|
+
const { TargetedPentestAgent } = await import("./agent-wp6zfnk6.js");
|
|
118338
118329
|
const findingsRegistry = ctx.findingsRegistry ?? FindingsRegistry.fromDirectory(ctx.session.findingsPath, {
|
|
118339
118330
|
model: ctx.model,
|
|
118340
118331
|
authConfig: ctx.authConfig,
|
|
@@ -118468,7 +118459,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
118468
118459
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
118469
118460
|
}),
|
|
118470
118461
|
execute: async ({ targets }) => {
|
|
118471
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-
|
|
118462
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-wkgxd4vs.js");
|
|
118472
118463
|
if (!ctx.model) {
|
|
118473
118464
|
return {
|
|
118474
118465
|
success: false,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
EndpointTransportEnum,
|
|
3
3
|
GrpcEndpointMetadataSchema,
|
|
4
4
|
OffensiveSecurityAgent
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-719fst3v.js";
|
|
6
6
|
import {
|
|
7
7
|
hasToolCall,
|
|
8
8
|
init_dist
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-mms9gcfg.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_external,
|
|
12
12
|
init_zod,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-1rrjt09r.js";
|
|
4
4
|
import {
|
|
5
5
|
REPORT_FILENAME_JSON,
|
|
6
6
|
REPORT_FILENAME_MD,
|
|
7
7
|
buildPentestReport,
|
|
8
8
|
renderJson,
|
|
9
9
|
renderMarkdown
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-yry0gjp8.js";
|
|
11
11
|
import {
|
|
12
12
|
TargetedPentestAgent,
|
|
13
13
|
buildPentestSystemPrompt
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-p47nvwh9.js";
|
|
15
15
|
import {
|
|
16
16
|
CodeAgent
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-3rzeb1qk.js";
|
|
18
18
|
import {
|
|
19
19
|
AppsDiscoveryResultSchema,
|
|
20
20
|
DiscoverySummarySchema,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT,
|
|
23
23
|
WHITEBOX_DISCOVERY_SYSTEM_PROMPT,
|
|
24
24
|
WHITEBOX_ENDPOINT_DOCUMENTATION_SYSTEM_PROMPT
|
|
25
|
-
} from "./cli-
|
|
25
|
+
} from "./cli-ck1mwkrr.js";
|
|
26
26
|
import {
|
|
27
27
|
FindingsRegistry,
|
|
28
28
|
OffensiveSecurityAgent,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
pLimit,
|
|
32
32
|
runWithBoundedConcurrency,
|
|
33
33
|
toGrpcPentestContext
|
|
34
|
-
} from "./cli-
|
|
34
|
+
} from "./cli-719fst3v.js";
|
|
35
35
|
import {
|
|
36
36
|
createThreatModelPrompt
|
|
37
37
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
init_structured,
|
|
46
46
|
newSessionId,
|
|
47
47
|
scopedLogger
|
|
48
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-mms9gcfg.js";
|
|
49
49
|
import {
|
|
50
50
|
__require
|
|
51
51
|
} from "./cli-bc05qbss.js";
|
|
@@ -7802,7 +7802,7 @@ async function runPentestSwarm(input) {
|
|
|
7802
7802
|
}
|
|
7803
7803
|
async function runPentestWorkflow(input) {
|
|
7804
7804
|
if (input.fastStrike) {
|
|
7805
|
-
const { runFastStrike } = await import("./fastStrike-
|
|
7805
|
+
const { runFastStrike } = await import("./fastStrike-pg3ra6ws.js");
|
|
7806
7806
|
return runFastStrike(input);
|
|
7807
7807
|
}
|
|
7808
7808
|
const {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-719fst3v.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-hxpne4g1.js";
|
|
7
7
|
import {
|
|
8
8
|
createLogger,
|
|
9
9
|
hasToolCall,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
init_lazyLogger,
|
|
12
12
|
init_structured,
|
|
13
13
|
scopedLogger
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-mms9gcfg.js";
|
|
15
15
|
|
|
16
16
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
17
17
|
init_dist();
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
6
|
apiRequest,
|
|
7
7
|
buildBaseSystemPrompt
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-719fst3v.js";
|
|
9
9
|
import {
|
|
10
10
|
init_dist,
|
|
11
11
|
init_session,
|
|
12
12
|
sessions,
|
|
13
13
|
stepCountIs
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-mms9gcfg.js";
|
|
15
15
|
import {
|
|
16
16
|
init_constants
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-x0wdzz6m.js";
|
|
18
18
|
import {
|
|
19
19
|
exports_external,
|
|
20
20
|
init_zod
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_auth,
|
|
5
5
|
init_constants,
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-x0wdzz6m.js";
|
|
8
8
|
import {
|
|
9
9
|
AISDKError,
|
|
10
10
|
APICallError,
|
|
@@ -87,11 +87,11 @@ import {
|
|
|
87
87
|
import {
|
|
88
88
|
config,
|
|
89
89
|
init_config
|
|
90
|
-
} from "./cli-
|
|
90
|
+
} from "./cli-b9322y77.js";
|
|
91
91
|
import {
|
|
92
92
|
getCurrentVersion,
|
|
93
93
|
init_installation
|
|
94
|
-
} from "./cli-
|
|
94
|
+
} from "./cli-n4yc9rjz.js";
|
|
95
95
|
import {
|
|
96
96
|
__callDispose,
|
|
97
97
|
__commonJS,
|
|
@@ -47341,7 +47341,7 @@ async function create2(input) {
|
|
|
47341
47341
|
if (normalizedConfig?.headers !== undefined) {
|
|
47342
47342
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
47343
47343
|
} else {
|
|
47344
|
-
const { config: appConfig } = await import("./index-
|
|
47344
|
+
const { config: appConfig } = await import("./index-y45hn0x8.js");
|
|
47345
47345
|
const cfg = await appConfig.get();
|
|
47346
47346
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
47347
47347
|
}
|
|
@@ -92,7 +92,7 @@ var init_package = __esm(() => {
|
|
|
92
92
|
url: "https://github.com/pensarai/apex.git"
|
|
93
93
|
},
|
|
94
94
|
scripts: {
|
|
95
|
-
build: "bun build src/cli.ts --outdir build --target node --format esm --splitting --external @opentui/core --external @opentui/react --external @opentui/react/* --external react --external react/jsx-runtime --external react/jsx-dev-runtime --external react-reconciler --external weave --external electron --external chromium-bidi --external camoufox-js",
|
|
95
|
+
build: "rm -rf build && bun build src/cli.ts --outdir build --target node --format esm --splitting --external @opentui/core --external @opentui/react --external @opentui/react/* --external react --external react/jsx-runtime --external react/jsx-dev-runtime --external react-reconciler --external weave --external electron --external chromium-bidi --external camoufox-js",
|
|
96
96
|
"build:binaries": "bun run generate:ascii && mkdir -p dist && bun run build:binary:macos-arm64 && bun run build:binary:macos-x64 && bun run build:binary:linux-x64 && bun run build:binary:linux-arm64",
|
|
97
97
|
"build:binary": "bun run generate:ascii && bun build src/cli.ts --compile --external electron --external chromium-bidi --external camoufox-js --outfile pensar",
|
|
98
98
|
"build:binary:linux-arm64": "bun build src/cli.ts --compile --external electron --external chromium-bidi --external camoufox-js --target=bun-linux-arm64 --outfile dist/pensar-linux-arm64",
|
|
@@ -120,7 +120,7 @@ var init_package = __esm(() => {
|
|
|
120
120
|
tsc: "tsc --noEmit"
|
|
121
121
|
},
|
|
122
122
|
type: "module",
|
|
123
|
-
version: "2.4.0-canary.
|
|
123
|
+
version: "2.4.0-canary.7d58f42b"
|
|
124
124
|
};
|
|
125
125
|
});
|
|
126
126
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createReportErrorTool,
|
|
6
6
|
isMemoryEnabled,
|
|
7
7
|
readPlan
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-719fst3v.js";
|
|
9
9
|
import {
|
|
10
10
|
createLogger,
|
|
11
11
|
hasToolCall,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
init_lazyLogger,
|
|
14
14
|
init_structured,
|
|
15
15
|
scopedLogger
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-mms9gcfg.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|