@pensar/apex 2.1.1-canary.e3b479cd → 2.1.1
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-tndbh02k.js → agent-5j0r1zwb.js} +7 -7
- package/build/{agent-qzpx5daj.js → agent-9atrn180.js} +9 -9
- package/build/agent-fj5t54re.js +19 -0
- package/build/{apps-q2m13rvm.js → apps-r8v4zx74.js} +15 -15
- package/build/{auth-sgd3dnc6.js → auth-1cyt34s1.js} +15 -15
- package/build/authentication-jcxmdghv.js +19 -0
- package/build/blackboxAgent-gtaq6gvf.js +19 -0
- package/build/{blackboxPentest-29kven8f.js → blackboxPentest-6xg3nwsy.js} +13 -13
- package/build/{cli-ghcv2wqj.js → cli-2b2hq0bx.js} +1 -1
- package/build/{cli-5z84kvy3.js → cli-5qn1288m.js} +3 -3
- package/build/{cli-j4dt6djf.js → cli-7f5xyyv7.js} +7 -7
- package/build/{cli-89nqb74d.js → cli-7v584njb.js} +1 -1
- package/build/{cli-95jb6m17.js → cli-90f2rr31.js} +4 -4
- package/build/{cli-rsn8j80j.js → cli-92szr4n9.js} +2 -2
- package/build/{cli-tbvpw48a.js → cli-9ns3f6e4.js} +15 -18
- package/build/{cli-f7memps6.js → cli-bt876w2p.js} +3 -3
- package/build/{cli-04cxvex9.js → cli-ebt2qz4a.js} +2 -2
- package/build/{cli-1cn5x4kw.js → cli-gqzh2kf7.js} +1 -1
- package/build/{cli-v5kvc3bh.js → cli-ha57ygh1.js} +1 -1
- package/build/{cli-dd5x8aha.js → cli-pwgdqc8n.js} +1 -1
- package/build/{cli-vywcbe0q.js → cli-rb0r7wyk.js} +1 -1
- package/build/{cli-tz5a3ta3.js → cli-tpf5degm.js} +2 -2
- package/build/{cli-69v0480p.js → cli-y9p64z6j.js} +1 -1
- package/build/{cli-e6tcb9ma.js → cli-yeh71tk6.js} +4 -4
- package/build/cli.js +33 -33
- package/build/{config-kmhegdn3.js → config-m9nwkqda.js} +3 -3
- package/build/{doctor-fmsdfh15.js → doctor-e7nx089w.js} +6 -6
- package/build/{fixes-4dqmy9kn.js → fixes-bwbs6y0h.js} +15 -15
- package/build/{index-xpajjbck.js → index-2ngqkd4f.js} +17 -17
- package/build/{index-j3cw3rhf.js → index-9mfg4n8j.js} +8 -8
- package/build/{index-cdrnfdnb.js → index-9v8095vv.js} +9 -9
- package/build/{index-1v9dda7p.js → index-b7257b3y.js} +6 -6
- package/build/{index-6th9nbsp.js → index-n3ykm2w9.js} +3 -3
- package/build/{index-d4v9a8p1.js → index-pvnf0pyw.js} +4 -4
- package/build/{index-fjs2qj25.js → index-vjf3wr3h.js} +2 -2
- package/build/{issues-3m7tj0jm.js → issues-3b09y726.js} +15 -15
- package/build/{logs-21wpbmg7.js → logs-z861s66g.js} +15 -15
- package/build/{offesecAgent-k75c9qrq.js → offesecAgent-sv2x2ew0.js} +8 -8
- package/build/pentest-rf73r63h.js +28 -0
- package/build/{pentests-55htcfqn.js → pentests-1s4sbasz.js} +15 -15
- package/build/{targetedPentest-x60thh49.js → targetedPentest-yjpk7d05.js} +9 -9
- package/build/{targets-ff30grka.js → targets-0zg21ndc.js} +15 -15
- package/build/threatModel-e70carjd.js +26 -0
- package/build/{uninstall-8rby29gm.js → uninstall-b9ttpxjc.js} +1 -1
- package/build/{upload-1fqpawtr.js → upload-sdx7xg6j.js} +6 -6
- package/build/{utils-cdwrqbp6.js → utils-g8awkbz8.js} +5 -5
- package/package.json +1 -1
- package/build/agent-62n0my9x.js +0 -19
- package/build/authentication-0arbjc4q.js +0 -19
- package/build/blackboxAgent-dcw54ntp.js +0 -19
- package/build/pentest-60m8zdv4.js +0 -28
- package/build/threatModel-h6mh3wvt.js +0 -26
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-9ns3f6e4.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-gqzh2kf7.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-90f2rr31.js";
|
|
12
|
+
import"./cli-rb0r7wyk.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
16
16
|
} from "./cli-f7d23ded.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-ha57ygh1.js";
|
|
19
|
+
import"./cli-7v584njb.js";
|
|
20
|
+
import"./cli-y9p64z6j.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
23
23
|
// src/core/agents/specialized/findingJudge/agent.ts
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
buildPentestActiveTools,
|
|
4
4
|
buildPentestPrompt,
|
|
5
5
|
buildPentestSystemPrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-tpf5degm.js";
|
|
7
7
|
import"./cli-9fsre5pt.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-2b2hq0bx.js";
|
|
9
|
+
import"./cli-9ns3f6e4.js";
|
|
10
|
+
import"./cli-gqzh2kf7.js";
|
|
11
11
|
import"./cli-c8131c4q.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
12
|
+
import"./cli-90f2rr31.js";
|
|
13
|
+
import"./cli-rb0r7wyk.js";
|
|
14
14
|
import"./cli-f7d23ded.js";
|
|
15
15
|
import"./cli-gpnb45ck.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
16
|
+
import"./cli-ha57ygh1.js";
|
|
17
|
+
import"./cli-7v584njb.js";
|
|
18
|
+
import"./cli-y9p64z6j.js";
|
|
19
19
|
import"./cli-8rxa073f.js";
|
|
20
20
|
export {
|
|
21
21
|
buildPentestSystemPrompt,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-ebt2qz4a.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-2b2hq0bx.js";
|
|
6
|
+
import"./cli-9ns3f6e4.js";
|
|
7
|
+
import"./cli-gqzh2kf7.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-90f2rr31.js";
|
|
10
|
+
import"./cli-rb0r7wyk.js";
|
|
11
|
+
import"./cli-f7d23ded.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-ha57ygh1.js";
|
|
14
|
+
import"./cli-7v584njb.js";
|
|
15
|
+
import"./cli-y9p64z6j.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
CodeAgent
|
|
19
|
+
};
|
|
@@ -12,26 +12,26 @@ 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-yeh71tk6.js";
|
|
16
|
+
import"./cli-7f5xyyv7.js";
|
|
17
|
+
import"./cli-bt876w2p.js";
|
|
18
|
+
import"./cli-tpf5degm.js";
|
|
19
|
+
import"./cli-5qn1288m.js";
|
|
20
|
+
import"./cli-ebt2qz4a.js";
|
|
21
|
+
import"./cli-92szr4n9.js";
|
|
22
22
|
import"./cli-9fsre5pt.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
23
|
+
import"./cli-2b2hq0bx.js";
|
|
24
|
+
import"./cli-9ns3f6e4.js";
|
|
25
|
+
import"./cli-gqzh2kf7.js";
|
|
26
26
|
import"./cli-fw5r7pfj.js";
|
|
27
27
|
import"./cli-c8131c4q.js";
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
28
|
+
import"./cli-90f2rr31.js";
|
|
29
|
+
import"./cli-rb0r7wyk.js";
|
|
30
30
|
import"./cli-f7d23ded.js";
|
|
31
31
|
import"./cli-gpnb45ck.js";
|
|
32
|
-
import"./cli-
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
32
|
+
import"./cli-ha57ygh1.js";
|
|
33
|
+
import"./cli-7v584njb.js";
|
|
34
|
+
import"./cli-y9p64z6j.js";
|
|
35
35
|
import"./cli-8rxa073f.js";
|
|
36
36
|
|
|
37
37
|
// src/cli/apps.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
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-yeh71tk6.js";
|
|
3
|
+
import"./cli-7f5xyyv7.js";
|
|
4
|
+
import"./cli-bt876w2p.js";
|
|
5
|
+
import"./cli-tpf5degm.js";
|
|
6
|
+
import"./cli-5qn1288m.js";
|
|
7
|
+
import"./cli-ebt2qz4a.js";
|
|
8
|
+
import"./cli-92szr4n9.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
import"./cli-2b2hq0bx.js";
|
|
11
|
+
import"./cli-9ns3f6e4.js";
|
|
12
|
+
import"./cli-gqzh2kf7.js";
|
|
13
13
|
import"./cli-fw5r7pfj.js";
|
|
14
14
|
import"./cli-c8131c4q.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-90f2rr31.js";
|
|
16
16
|
import {
|
|
17
17
|
disconnect,
|
|
18
18
|
fetchWorkspaces,
|
|
@@ -25,15 +25,15 @@ import {
|
|
|
25
25
|
pollWorkOSToken,
|
|
26
26
|
selectWorkspace,
|
|
27
27
|
startDeviceFlow
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-rb0r7wyk.js";
|
|
29
29
|
import"./cli-f7d23ded.js";
|
|
30
30
|
import"./cli-gpnb45ck.js";
|
|
31
31
|
import {
|
|
32
32
|
config,
|
|
33
33
|
init_config
|
|
34
|
-
} from "./cli-
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
34
|
+
} from "./cli-ha57ygh1.js";
|
|
35
|
+
import"./cli-7v584njb.js";
|
|
36
|
+
import"./cli-y9p64z6j.js";
|
|
37
37
|
import {
|
|
38
38
|
__require
|
|
39
39
|
} from "./cli-8rxa073f.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-5qn1288m.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-2b2hq0bx.js";
|
|
6
|
+
import"./cli-9ns3f6e4.js";
|
|
7
|
+
import"./cli-gqzh2kf7.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-90f2rr31.js";
|
|
10
|
+
import"./cli-rb0r7wyk.js";
|
|
11
|
+
import"./cli-f7d23ded.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-ha57ygh1.js";
|
|
14
|
+
import"./cli-7v584njb.js";
|
|
15
|
+
import"./cli-y9p64z6j.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
runAuthenticationAgent
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-bt876w2p.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-2b2hq0bx.js";
|
|
6
|
+
import"./cli-9ns3f6e4.js";
|
|
7
|
+
import"./cli-gqzh2kf7.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-90f2rr31.js";
|
|
10
|
+
import"./cli-rb0r7wyk.js";
|
|
11
|
+
import"./cli-f7d23ded.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-ha57ygh1.js";
|
|
14
|
+
import"./cli-7v584njb.js";
|
|
15
|
+
import"./cli-y9p64z6j.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
BlackboxAttackSurfaceAgent
|
|
19
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
3
|
+
} from "./cli-7f5xyyv7.js";
|
|
4
|
+
import"./cli-bt876w2p.js";
|
|
5
|
+
import"./cli-tpf5degm.js";
|
|
6
|
+
import"./cli-ebt2qz4a.js";
|
|
7
|
+
import"./cli-92szr4n9.js";
|
|
8
8
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
9
|
+
import"./cli-2b2hq0bx.js";
|
|
10
|
+
import"./cli-9ns3f6e4.js";
|
|
11
|
+
import"./cli-gqzh2kf7.js";
|
|
12
12
|
import"./cli-fw5r7pfj.js";
|
|
13
13
|
import"./cli-c8131c4q.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
import"./cli-90f2rr31.js";
|
|
15
|
+
import"./cli-rb0r7wyk.js";
|
|
16
16
|
import"./cli-f7d23ded.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-ha57ygh1.js";
|
|
19
|
+
import"./cli-7v584njb.js";
|
|
20
|
+
import"./cli-y9p64z6j.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
23
23
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-9ns3f6e4.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-gqzh2kf7.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-90f2rr31.js";
|
|
15
15
|
|
|
16
16
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
17
17
|
init_dist();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-bt876w2p.js";
|
|
4
4
|
import {
|
|
5
5
|
TargetedPentestAgent,
|
|
6
6
|
buildPentestSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-tpf5degm.js";
|
|
8
8
|
import {
|
|
9
9
|
CodeAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-ebt2qz4a.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-92szr4n9.js";
|
|
19
19
|
import {
|
|
20
20
|
EvidenceFileEntrySchema
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-2b2hq0bx.js";
|
|
22
22
|
import {
|
|
23
23
|
CweEntrySchema,
|
|
24
24
|
FindingsRegistry,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
ValidatedCweEntrySchema,
|
|
28
28
|
hasCanonicalName,
|
|
29
29
|
runWithBoundedConcurrency
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-9ns3f6e4.js";
|
|
31
31
|
import {
|
|
32
32
|
createThreatModelPrompt
|
|
33
33
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
init_lazyLogger,
|
|
39
39
|
init_structured,
|
|
40
40
|
scopedLogger
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-90f2rr31.js";
|
|
42
42
|
import {
|
|
43
43
|
exports_external,
|
|
44
44
|
init_zod
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_auth,
|
|
5
5
|
init_constants,
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-rb0r7wyk.js";
|
|
8
8
|
import {
|
|
9
9
|
AISDKError,
|
|
10
10
|
APICallError,
|
|
@@ -62,11 +62,11 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
config,
|
|
64
64
|
init_config
|
|
65
|
-
} from "./cli-
|
|
65
|
+
} from "./cli-ha57ygh1.js";
|
|
66
66
|
import {
|
|
67
67
|
getCurrentVersion,
|
|
68
68
|
init_installation
|
|
69
|
-
} from "./cli-
|
|
69
|
+
} from "./cli-y9p64z6j.js";
|
|
70
70
|
import {
|
|
71
71
|
__callDispose,
|
|
72
72
|
__commonJS,
|
|
@@ -43833,7 +43833,7 @@ async function create2(input) {
|
|
|
43833
43833
|
if (normalizedConfig?.headers !== undefined) {
|
|
43834
43834
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
43835
43835
|
} else {
|
|
43836
|
-
const { config: appConfig } = await import("./index-
|
|
43836
|
+
const { config: appConfig } = await import("./index-n3ykm2w9.js");
|
|
43837
43837
|
const cfg = await appConfig.get();
|
|
43838
43838
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
43839
43839
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectOSAndEnhancePrompt
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-gqzh2kf7.js";
|
|
4
4
|
import {
|
|
5
5
|
parseTargetUrl
|
|
6
6
|
} from "./cli-c8131c4q.js";
|
|
@@ -26,14 +26,14 @@ import {
|
|
|
26
26
|
scopedLogger,
|
|
27
27
|
streamResponse,
|
|
28
28
|
write
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-90f2rr31.js";
|
|
30
30
|
import {
|
|
31
31
|
ensureValidToken,
|
|
32
32
|
getPensarApiUrl,
|
|
33
33
|
init_auth,
|
|
34
34
|
init_constants,
|
|
35
35
|
signGatewayRequest
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-rb0r7wyk.js";
|
|
37
37
|
import {
|
|
38
38
|
exports_external,
|
|
39
39
|
init_zod,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
config,
|
|
45
45
|
init_config
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-ha57ygh1.js";
|
|
47
47
|
import {
|
|
48
48
|
__commonJS,
|
|
49
49
|
__export,
|
|
@@ -113275,7 +113275,7 @@ class PlaywrightMcpSession {
|
|
|
113275
113275
|
cachedCamouOptions = null;
|
|
113276
113276
|
constructor(options = {}) {
|
|
113277
113277
|
const { headless, userAgent, viewportSize, extraHttpHeaders } = options;
|
|
113278
|
-
this.headless = headless ??
|
|
113278
|
+
this.headless = headless ?? defaultHeadless;
|
|
113279
113279
|
this.userAgent = userAgent === null ? undefined : userAgent ?? defaultUserAgent;
|
|
113280
113280
|
this.viewportSize = viewportSize === null ? undefined : viewportSize ?? defaultViewportSize ?? HARDCODED_VIEWPORT_FALLBACK;
|
|
113281
113281
|
const headerSource = extraHttpHeaders === null ? undefined : extraHttpHeaders;
|
|
@@ -113368,10 +113368,7 @@ class PlaywrightMcpSession {
|
|
|
113368
113368
|
command: "node",
|
|
113369
113369
|
args,
|
|
113370
113370
|
stderr: "pipe",
|
|
113371
|
-
env:
|
|
113372
|
-
...Object.fromEntries(Object.entries(camou.env).map(([k, v]) => [k, String(v)])),
|
|
113373
|
-
...process.env.DISPLAY ? { DISPLAY: process.env.DISPLAY } : {}
|
|
113374
|
-
}
|
|
113371
|
+
env: Object.fromEntries(Object.entries(camou.env).map(([k, v]) => [k, String(v)]))
|
|
113375
113372
|
});
|
|
113376
113373
|
const client = new Client({
|
|
113377
113374
|
name: "apex-browser-agent",
|
|
@@ -115565,7 +115562,7 @@ When to use delegate_to_auth_subagent vs authenticate_session:
|
|
|
115565
115562
|
if (credentials) {
|
|
115566
115563
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
115567
115564
|
}
|
|
115568
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
115565
|
+
const { runAuthenticationAgent } = await import("./authentication-jcxmdghv.js");
|
|
115569
115566
|
const localBus = new AgentEventBus;
|
|
115570
115567
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
115571
115568
|
const result = await runAuthenticationAgent({
|
|
@@ -116245,7 +116242,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
116245
116242
|
return threatModelLimiter(async () => {
|
|
116246
116243
|
if (ctx.abortSignal?.aborted)
|
|
116247
116244
|
return null;
|
|
116248
|
-
const { CodeAgent } = await import("./agent-
|
|
116245
|
+
const { CodeAgent } = await import("./agent-fj5t54re.js");
|
|
116249
116246
|
const subagentId = `threat-model-${sanitize(input.appName)}-${sanitize(input.routePath)}`;
|
|
116250
116247
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
116251
116248
|
subagentId,
|
|
@@ -118121,7 +118118,7 @@ init_lazyLogger();
|
|
|
118121
118118
|
var log6 = scopedLogger(() => createLogger("FindingJudge"));
|
|
118122
118119
|
async function judgeFinding(input, ctx) {
|
|
118123
118120
|
try {
|
|
118124
|
-
const { FindingJudgeAgent } = await import("./agent-
|
|
118121
|
+
const { FindingJudgeAgent } = await import("./agent-5j0r1zwb.js");
|
|
118125
118122
|
const agent = new FindingJudgeAgent({
|
|
118126
118123
|
finding: input,
|
|
118127
118124
|
model: ctx.model,
|
|
@@ -124348,7 +124345,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
124348
124345
|
});
|
|
124349
124346
|
if (cwd) {
|
|
124350
124347
|
try {
|
|
124351
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
124348
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-9v8095vv.js");
|
|
124352
124349
|
const localBus = new AgentEventBus;
|
|
124353
124350
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
124354
124351
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -124398,7 +124395,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
124398
124395
|
}
|
|
124399
124396
|
}
|
|
124400
124397
|
try {
|
|
124401
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
124398
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-gtaq6gvf.js");
|
|
124402
124399
|
const localBus = new AgentEventBus;
|
|
124403
124400
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
124404
124401
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -124476,7 +124473,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
124476
124473
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
124477
124474
|
}),
|
|
124478
124475
|
execute: async ({ target, cwd }) => {
|
|
124479
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
124476
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-rf73r63h.js");
|
|
124480
124477
|
if (!ctx.model) {
|
|
124481
124478
|
return {
|
|
124482
124479
|
success: false,
|
|
@@ -126052,7 +126049,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
126052
126049
|
});
|
|
126053
126050
|
}
|
|
126054
126051
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
126055
|
-
const { CodeAgent } = await import("./agent-
|
|
126052
|
+
const { CodeAgent } = await import("./agent-fj5t54re.js");
|
|
126056
126053
|
const subagentId = `coding-agent-${agentIndex}`;
|
|
126057
126054
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
126058
126055
|
subagentId,
|
|
@@ -126558,7 +126555,7 @@ Returns the worker's summary, objective results, and finding count — but NOT t
|
|
|
126558
126555
|
message: "spawn_pentest_agent requires a model in the tool context."
|
|
126559
126556
|
};
|
|
126560
126557
|
}
|
|
126561
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
126558
|
+
const { TargetedPentestAgent } = await import("./agent-9atrn180.js");
|
|
126562
126559
|
const findingsRegistry = ctx.findingsRegistry ?? FindingsRegistry.fromDirectory(ctx.session.findingsPath, {
|
|
126563
126560
|
model: ctx.model,
|
|
126564
126561
|
authConfig: ctx.authConfig,
|
|
@@ -126712,7 +126709,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
126712
126709
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
126713
126710
|
}),
|
|
126714
126711
|
execute: async ({ targets }) => {
|
|
126715
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-
|
|
126712
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-rf73r63h.js");
|
|
126716
126713
|
if (!ctx.model) {
|
|
126717
126714
|
return {
|
|
126718
126715
|
success: false,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-9ns3f6e4.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-gqzh2kf7.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
init_dist,
|
|
10
10
|
stepCountIs
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-90f2rr31.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-9ns3f6e4.js";
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
stepCountIs
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-90f2rr31.js";
|
|
8
8
|
|
|
9
9
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
10
10
|
init_dist();
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
OffensiveSecurityAgent,
|
|
3
3
|
isMemoryEnabled,
|
|
4
4
|
readPlan
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-9ns3f6e4.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger,
|
|
8
8
|
init_lazyLogger,
|
|
9
9
|
init_structured,
|
|
10
10
|
scopedLogger
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-90f2rr31.js";
|
|
12
12
|
import {
|
|
13
13
|
exports_external,
|
|
14
14
|
init_zod
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
OffensiveSecurityAgent,
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
6
|
buildBaseSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-9ns3f6e4.js";
|
|
8
8
|
import {
|
|
9
9
|
init_dist,
|
|
10
10
|
init_session,
|
|
11
11
|
sessions,
|
|
12
12
|
stepCountIs
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-90f2rr31.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureValidToken,
|
|
16
16
|
getPensarApiUrl,
|
|
17
17
|
init_auth,
|
|
18
18
|
init_constants
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-rb0r7wyk.js";
|
|
20
20
|
import {
|
|
21
21
|
exports_external,
|
|
22
22
|
init_zod
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
config,
|
|
26
26
|
init_config
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-ha57ygh1.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require
|