@pensar/apex 2.1.3-canary.06f4c3eb → 2.1.3-canary.5d85cfd8
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-sn33s7wa.js → agent-c1f9g7z5.js} +9 -9
- package/build/{agent-ts46he50.js → agent-f1vdsgav.js} +7 -7
- package/build/agent-q39cx1dc.js +19 -0
- package/build/{apps-6egm0mw2.js → apps-1jyvn2rb.js} +15 -15
- package/build/{auth-qd4f8hgn.js → auth-k16afcmp.js} +15 -15
- package/build/authentication-scwkrw70.js +19 -0
- package/build/blackboxAgent-d5epsg48.js +19 -0
- package/build/{blackboxPentest-fe56bfc1.js → blackboxPentest-byrj8vpc.js} +13 -13
- package/build/{cli-mt0f9tte.js → cli-21ypdr28.js} +2 -2
- package/build/{cli-sganpfnr.js → cli-2xxvqdh0.js} +1 -1
- package/build/{cli-r2z98y59.js → cli-8xdm8ce2.js} +1 -1
- package/build/{cli-8p3trjtv.js → cli-8z6221m3.js} +4 -4
- package/build/{cli-5vvb8cby.js → cli-a6ga7egy.js} +1 -1
- package/build/{cli-gta3gsva.js → cli-adp3b26w.js} +20 -13
- package/build/{cli-jn2sxf89.js → cli-aenmh1mw.js} +4 -4
- package/build/{cli-80sehbtt.js → cli-fjay3f43.js} +1 -1
- package/build/{cli-99a9aq3w.js → cli-jg3gsjb5.js} +4132 -4200
- package/build/{cli-adgyv55h.js → cli-p2nh3a9n.js} +2 -2
- package/build/{cli-pgsqvjqw.js → cli-pnexmyky.js} +1 -1
- package/build/{cli-tt8k9pka.js → cli-qqt6gnk8.js} +1 -1
- package/build/{cli-epra15kv.js → cli-s553q3az.js} +16 -18
- package/build/{cli-952bzt8m.js → cli-sgn1z0m0.js} +27 -7
- package/build/{cli-h28cfavt.js → cli-t0xxwv91.js} +1 -1
- package/build/{cli-ja43jscc.js → cli-zjjmy6m2.js} +26 -20
- package/build/cli.js +33 -33
- package/build/{config-vw2z82v6.js → config-mbnd343w.js} +3 -3
- package/build/{doctor-7r8hgya4.js → doctor-7n3m3r9y.js} +6 -6
- package/build/{fixes-r8f01knx.js → fixes-c6n7f03m.js} +15 -15
- package/build/{index-syzey1rc.js → index-44md58sy.js} +6 -6
- package/build/{index-a2tc7bxh.js → index-497am0ng.js} +17 -17
- package/build/{index-mby0pdzs.js → index-d094867k.js} +2 -2
- package/build/{index-8571kb3t.js → index-k8bhb929.js} +9 -9
- package/build/{index-0xxbqssd.js → index-ppxk3r3p.js} +16 -10
- package/build/{index-rf5j27d4.js → index-qfj5xpqm.js} +4 -4
- package/build/{index-9njkp18t.js → index-v4sa8kce.js} +3 -3
- package/build/{issues-9743wnvm.js → issues-8cxd630t.js} +15 -15
- package/build/{logs-p3z7vg6z.js → logs-sb03ne91.js} +15 -15
- package/build/{offesecAgent-1rq9r9bd.js → offesecAgent-ykywes52.js} +8 -8
- package/build/pentest-26bvyaj1.js +28 -0
- package/build/{pentests-4hd2gzns.js → pentests-6kbb21k4.js} +15 -15
- package/build/{targetedPentest-kdxkpwmh.js → targetedPentest-wgqq1avz.js} +9 -9
- package/build/{targets-6ge81tt0.js → targets-2pq4nt8z.js} +15 -15
- package/build/threatModel-e3kk2wg2.js +26 -0
- package/build/{uninstall-gvb6d633.js → uninstall-3s1bcgb9.js} +1 -1
- package/build/{upload-7t35h330.js → upload-cytqs509.js} +6 -6
- package/build/{utils-tss3j3eb.js → utils-zgqsqwpa.js} +5 -5
- package/package.json +1 -1
- package/build/agent-y9a30306.js +0 -19
- package/build/authentication-jrgrm5xj.js +0 -19
- package/build/blackboxAgent-dtv2q4q1.js +0 -19
- package/build/pentest-48z4y1kj.js +0 -28
- package/build/threatModel-ydyxbxvk.js +0 -26
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
buildPentestActiveTools,
|
|
4
4
|
buildPentestPrompt,
|
|
5
5
|
buildPentestSystemPrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-sgn1z0m0.js";
|
|
7
7
|
import"./cli-9fsre5pt.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-8xdm8ce2.js";
|
|
9
|
+
import"./cli-jg3gsjb5.js";
|
|
10
|
+
import"./cli-2xxvqdh0.js";
|
|
11
11
|
import"./cli-c8131c4q.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
12
|
+
import"./cli-zjjmy6m2.js";
|
|
13
|
+
import"./cli-fjay3f43.js";
|
|
14
14
|
import"./cli-29yqhrjq.js";
|
|
15
15
|
import"./cli-gpnb45ck.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
16
|
+
import"./cli-pnexmyky.js";
|
|
17
|
+
import"./cli-t0xxwv91.js";
|
|
18
|
+
import"./cli-a6ga7egy.js";
|
|
19
19
|
import"./cli-8rxa073f.js";
|
|
20
20
|
export {
|
|
21
21
|
buildPentestSystemPrompt,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-jg3gsjb5.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-2xxvqdh0.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-zjjmy6m2.js";
|
|
12
|
+
import"./cli-fjay3f43.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
16
16
|
} from "./cli-29yqhrjq.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-pnexmyky.js";
|
|
19
|
+
import"./cli-t0xxwv91.js";
|
|
20
|
+
import"./cli-a6ga7egy.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
23
23
|
// src/core/agents/specialized/findingJudge/agent.ts
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-21ypdr28.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-8xdm8ce2.js";
|
|
6
|
+
import"./cli-jg3gsjb5.js";
|
|
7
|
+
import"./cli-2xxvqdh0.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-zjjmy6m2.js";
|
|
10
|
+
import"./cli-fjay3f43.js";
|
|
11
|
+
import"./cli-29yqhrjq.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-pnexmyky.js";
|
|
14
|
+
import"./cli-t0xxwv91.js";
|
|
15
|
+
import"./cli-a6ga7egy.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-aenmh1mw.js";
|
|
16
|
+
import"./cli-adp3b26w.js";
|
|
17
|
+
import"./cli-8z6221m3.js";
|
|
18
|
+
import"./cli-sgn1z0m0.js";
|
|
19
|
+
import"./cli-s553q3az.js";
|
|
20
|
+
import"./cli-21ypdr28.js";
|
|
21
|
+
import"./cli-p2nh3a9n.js";
|
|
22
22
|
import"./cli-9fsre5pt.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
23
|
+
import"./cli-8xdm8ce2.js";
|
|
24
|
+
import"./cli-jg3gsjb5.js";
|
|
25
|
+
import"./cli-2xxvqdh0.js";
|
|
26
26
|
import"./cli-fw5r7pfj.js";
|
|
27
27
|
import"./cli-c8131c4q.js";
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
28
|
+
import"./cli-zjjmy6m2.js";
|
|
29
|
+
import"./cli-fjay3f43.js";
|
|
30
30
|
import"./cli-29yqhrjq.js";
|
|
31
31
|
import"./cli-gpnb45ck.js";
|
|
32
|
-
import"./cli-
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
32
|
+
import"./cli-pnexmyky.js";
|
|
33
|
+
import"./cli-t0xxwv91.js";
|
|
34
|
+
import"./cli-a6ga7egy.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-aenmh1mw.js";
|
|
3
|
+
import"./cli-adp3b26w.js";
|
|
4
|
+
import"./cli-8z6221m3.js";
|
|
5
|
+
import"./cli-sgn1z0m0.js";
|
|
6
|
+
import"./cli-s553q3az.js";
|
|
7
|
+
import"./cli-21ypdr28.js";
|
|
8
|
+
import"./cli-p2nh3a9n.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
import"./cli-8xdm8ce2.js";
|
|
11
|
+
import"./cli-jg3gsjb5.js";
|
|
12
|
+
import"./cli-2xxvqdh0.js";
|
|
13
13
|
import"./cli-fw5r7pfj.js";
|
|
14
14
|
import"./cli-c8131c4q.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-zjjmy6m2.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-fjay3f43.js";
|
|
29
29
|
import"./cli-29yqhrjq.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-pnexmyky.js";
|
|
35
|
+
import"./cli-t0xxwv91.js";
|
|
36
|
+
import"./cli-a6ga7egy.js";
|
|
37
37
|
import {
|
|
38
38
|
__require
|
|
39
39
|
} from "./cli-8rxa073f.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-s553q3az.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-8xdm8ce2.js";
|
|
6
|
+
import"./cli-jg3gsjb5.js";
|
|
7
|
+
import"./cli-2xxvqdh0.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-zjjmy6m2.js";
|
|
10
|
+
import"./cli-fjay3f43.js";
|
|
11
|
+
import"./cli-29yqhrjq.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-pnexmyky.js";
|
|
14
|
+
import"./cli-t0xxwv91.js";
|
|
15
|
+
import"./cli-a6ga7egy.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
runAuthenticationAgent
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-8z6221m3.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-8xdm8ce2.js";
|
|
6
|
+
import"./cli-jg3gsjb5.js";
|
|
7
|
+
import"./cli-2xxvqdh0.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-zjjmy6m2.js";
|
|
10
|
+
import"./cli-fjay3f43.js";
|
|
11
|
+
import"./cli-29yqhrjq.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-pnexmyky.js";
|
|
14
|
+
import"./cli-t0xxwv91.js";
|
|
15
|
+
import"./cli-a6ga7egy.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-adp3b26w.js";
|
|
4
|
+
import"./cli-8z6221m3.js";
|
|
5
|
+
import"./cli-sgn1z0m0.js";
|
|
6
|
+
import"./cli-21ypdr28.js";
|
|
7
|
+
import"./cli-p2nh3a9n.js";
|
|
8
8
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
9
|
+
import"./cli-8xdm8ce2.js";
|
|
10
|
+
import"./cli-jg3gsjb5.js";
|
|
11
|
+
import"./cli-2xxvqdh0.js";
|
|
12
12
|
import"./cli-fw5r7pfj.js";
|
|
13
13
|
import"./cli-c8131c4q.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
import"./cli-zjjmy6m2.js";
|
|
15
|
+
import"./cli-fjay3f43.js";
|
|
16
16
|
import"./cli-29yqhrjq.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-pnexmyky.js";
|
|
19
|
+
import"./cli-t0xxwv91.js";
|
|
20
|
+
import"./cli-a6ga7egy.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
23
23
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-jg3gsjb5.js";
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
stepCountIs
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-zjjmy6m2.js";
|
|
8
8
|
|
|
9
9
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
10
10
|
init_dist();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-jg3gsjb5.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-2xxvqdh0.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
init_dist,
|
|
10
10
|
stepCountIs
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-zjjmy6m2.js";
|
|
12
12
|
|
|
13
13
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
14
14
|
init_dist();
|
|
@@ -479,7 +479,7 @@ ${authenticationInstructions}
|
|
|
479
479
|
authBlock = `⚠️ AUTHENTICATION CREDENTIALS PROVIDED — YOU MUST LOG IN FIRST.
|
|
480
480
|
|
|
481
481
|
Your FIRST tool call must be: browser_navigate to ${loginTarget}
|
|
482
|
-
Then use browser tools to authenticate. Pass the credentialId to
|
|
482
|
+
Then use browser tools to authenticate. Pass the credentialId to delegate_to_auth_subagent — secrets are resolved automatically.
|
|
483
483
|
For browser_fill on password/secret fields, use credentialId + credentialField instead of raw values.
|
|
484
484
|
|
|
485
485
|
Do NOT run curl, nmap, dig, or any other command before completing login.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-8z6221m3.js";
|
|
4
4
|
import {
|
|
5
5
|
TargetedPentestAgent,
|
|
6
6
|
buildPentestSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-sgn1z0m0.js";
|
|
8
8
|
import {
|
|
9
9
|
CodeAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-21ypdr28.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-p2nh3a9n.js";
|
|
19
19
|
import {
|
|
20
20
|
EvidenceFileEntrySchema
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-8xdm8ce2.js";
|
|
22
22
|
import {
|
|
23
23
|
CweEntrySchema,
|
|
24
24
|
FindingsRegistry,
|
|
@@ -26,8 +26,9 @@ import {
|
|
|
26
26
|
PLAN_MODE_TOOL_NAMES,
|
|
27
27
|
ValidatedCweEntrySchema,
|
|
28
28
|
hasCanonicalName,
|
|
29
|
+
pLimit,
|
|
29
30
|
runWithBoundedConcurrency
|
|
30
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-jg3gsjb5.js";
|
|
31
32
|
import {
|
|
32
33
|
createThreatModelPrompt
|
|
33
34
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -38,7 +39,7 @@ import {
|
|
|
38
39
|
init_lazyLogger,
|
|
39
40
|
init_structured,
|
|
40
41
|
scopedLogger
|
|
41
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-zjjmy6m2.js";
|
|
42
43
|
import {
|
|
43
44
|
exports_external,
|
|
44
45
|
init_zod
|
|
@@ -834,7 +835,8 @@ async function runEndpointDocumentationAgent(opts) {
|
|
|
834
835
|
openAIReasoningEffort,
|
|
835
836
|
enableThinking,
|
|
836
837
|
projectThreatModel,
|
|
837
|
-
parentSubagentId
|
|
838
|
+
parentSubagentId,
|
|
839
|
+
agentLimiter
|
|
838
840
|
} = opts;
|
|
839
841
|
const subagentId = `endpoint-doc-${slug(app.name)}-${slug(endpoint.path)}`;
|
|
840
842
|
const displayMethod = getDocumentMethod(endpoint);
|
|
@@ -876,7 +878,7 @@ async function runEndpointDocumentationAgent(opts) {
|
|
|
876
878
|
projectThreatModel
|
|
877
879
|
});
|
|
878
880
|
try {
|
|
879
|
-
await agent.consume();
|
|
881
|
+
await (agentLimiter ? agentLimiter(() => agent.consume()) : agent.consume());
|
|
880
882
|
eventBus?.emit("subagent-complete", {
|
|
881
883
|
subagentId,
|
|
882
884
|
status: "completed",
|
|
@@ -6195,6 +6197,7 @@ init_structured();
|
|
|
6195
6197
|
init_lazyLogger();
|
|
6196
6198
|
var log4 = scopedLogger(() => createLogger("whitebox-workflow"));
|
|
6197
6199
|
var DEFAULT_CONCURRENCY = 5;
|
|
6200
|
+
var MAX_CONCURRENT_AGENTS = 12;
|
|
6198
6201
|
var TASK_TYPE_LABELS = {
|
|
6199
6202
|
pages: "Pages",
|
|
6200
6203
|
apiEndpoints: "API Endpoints",
|
|
@@ -6228,8 +6231,11 @@ async function runWhiteboxAttackSurfaceWorkflow(input) {
|
|
|
6228
6231
|
domains,
|
|
6229
6232
|
projectThreatModel,
|
|
6230
6233
|
environments,
|
|
6231
|
-
surfaceIntegrationEnabled = true
|
|
6234
|
+
surfaceIntegrationEnabled = true,
|
|
6235
|
+
maxConcurrentAgents = MAX_CONCURRENT_AGENTS
|
|
6232
6236
|
} = input;
|
|
6237
|
+
const agentSlots = pLimit(Math.max(1, maxConcurrentAgents));
|
|
6238
|
+
const agentLimiter = (fn) => agentSlots(fn);
|
|
6233
6239
|
const appsAgent = new CodeAgent({
|
|
6234
6240
|
codebasePath,
|
|
6235
6241
|
objective: buildAppsDiscoveryObjective(codebasePath, domains, environments),
|
|
@@ -6256,7 +6262,7 @@ async function runWhiteboxAttackSurfaceWorkflow(input) {
|
|
|
6256
6262
|
name: "Whitebox Apps Discovery",
|
|
6257
6263
|
input: { codebasePath }
|
|
6258
6264
|
});
|
|
6259
|
-
const appsResult = await appsAgent.consume();
|
|
6265
|
+
const appsResult = await agentLimiter(() => appsAgent.consume());
|
|
6260
6266
|
log4.info(`Phase 1 complete: ${appsResult?.apps.length ?? 0} apps discovered` + (appsResult ? ` (repoType=${appsResult.repoType}, packageManager=${appsResult.packageManager})` : " (no result returned)"));
|
|
6261
6267
|
if (appsResult?.apps.length) {
|
|
6262
6268
|
for (const app of appsResult.apps) {
|
|
@@ -6340,7 +6346,7 @@ async function runWhiteboxAttackSurfaceWorkflow(input) {
|
|
|
6340
6346
|
projectThreatModel
|
|
6341
6347
|
});
|
|
6342
6348
|
try {
|
|
6343
|
-
await agent.consume();
|
|
6349
|
+
await agentLimiter(() => agent.consume());
|
|
6344
6350
|
log4.debug(`Phase 2: agent "${subagentId}" completed`);
|
|
6345
6351
|
eventBus?.emit("subagent-complete", {
|
|
6346
6352
|
subagentId,
|
|
@@ -6391,7 +6397,8 @@ async function runWhiteboxAttackSurfaceWorkflow(input) {
|
|
|
6391
6397
|
openAIReasoningEffort,
|
|
6392
6398
|
enableThinking,
|
|
6393
6399
|
projectThreatModel,
|
|
6394
|
-
parentSubagentId: appNodeId
|
|
6400
|
+
parentSubagentId: appNodeId,
|
|
6401
|
+
agentLimiter
|
|
6395
6402
|
});
|
|
6396
6403
|
} else {
|
|
6397
6404
|
log4.debug(`${app.name}: fallback (${surfaceResult.reason})`);
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
OffensiveSecurityAgent,
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
6
|
buildBaseSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-jg3gsjb5.js";
|
|
8
8
|
import {
|
|
9
9
|
init_dist,
|
|
10
10
|
init_session,
|
|
11
11
|
sessions,
|
|
12
12
|
stepCountIs
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-zjjmy6m2.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureValidToken,
|
|
16
16
|
getPensarApiUrl,
|
|
17
17
|
init_auth,
|
|
18
18
|
init_constants
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-fjay3f43.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-pnexmyky.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require
|