@pensar/apex 2.3.0-canary.5102978 → 2.3.0-canary.69bfb82f
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-43tdnbzm.js → agent-9ck6hcgm.js} +7 -7
- package/build/agent-fsm08k4s.js +19 -0
- package/build/{agent-kp087zrv.js → agent-xeze611p.js} +9 -9
- package/build/{apps-vcz9jbfy.js → apps-z4t1t8vq.js} +16 -16
- package/build/{auth-4t4fd22m.js → auth-9y0h9cc2.js} +16 -16
- package/build/authentication-ar6t1hah.js +19 -0
- package/build/blackboxAgent-z4ps082z.js +19 -0
- package/build/{blackboxPentest-55cng7t3.js → blackboxPentest-byjp9njm.js} +14 -14
- package/build/{cli-022qqs0v.js → cli-0nhhne05.js} +1 -1
- package/build/{cli-5skkqa07.js → cli-3v63bjde.js} +2 -2
- package/build/{cli-fqgastnm.js → cli-56zyg4kv.js} +13 -13
- package/build/{cli-20vj7vb5.js → cli-5kw8aevs.js} +2 -2
- package/build/{cli-cvarnmfs.js → cli-5r9kv574.js} +3 -3
- package/build/{cli-k3er0c60.js → cli-6d37md4z.js} +1 -1
- package/build/{cli-xprt7ev2.js → cli-84zf1xh9.js} +1 -1
- package/build/{cli-7sn6b2zw.js → cli-b5fgnn98.js} +8 -8
- package/build/{cli-wd2nc4pv.js → cli-j2xnatde.js} +12 -8
- package/build/{cli-gdyzgxkm.js → cli-mfsnae61.js} +1 -1
- package/build/{cli-4qhqjw2c.js → cli-nz9t18bj.js} +2 -2
- package/build/{cli-7tra3j0n.js → cli-phg6k6r3.js} +4 -4
- package/build/{cli-21jc2hzb.js → cli-t3w55a46.js} +1 -1
- package/build/{cli-v56t0jqg.js → cli-x3dp6b1d.js} +1 -1
- package/build/{cli-mqvsx788.js → cli-x8a6x5qp.js} +2 -2
- package/build/{cli-75zv3493.js → cli-xtr26a9f.js} +3 -3
- package/build/{cli-ev4e8g7a.js → cli-ycdcat4d.js} +1 -1
- package/build/cli.js +33 -33
- package/build/{config-kypy09wh.js → config-n46nr9dn.js} +3 -3
- package/build/{doctor-kg26ymam.js → doctor-pmxj4q08.js} +6 -6
- package/build/{fastStrike-2t3hy8gs.js → fastStrike-wnceneew.js} +15 -13
- package/build/{fixes-d3b10qbh.js → fixes-ebea8j04.js} +16 -16
- package/build/{index-tvnmy35p.js → index-7wwrt670.js} +21 -21
- package/build/{index-zagn856g.js → index-8nhy408y.js} +9 -9
- package/build/{index-js1nqqaa.js → index-grtryfy3.js} +4 -4
- package/build/{index-0e6ce585.js → index-mcav8n18.js} +3 -3
- package/build/{index-sr54gvh2.js → index-v12mbkx8.js} +2 -2
- package/build/{index-eekzgpqm.js → index-z32wkpxq.js} +8 -8
- package/build/{index-b01pd00k.js → index-zgpq7k03.js} +14 -10
- package/build/{issues-c50pp7bq.js → issues-y41kba23.js} +16 -16
- package/build/{logs-9stvk5yq.js → logs-b7h122e9.js} +16 -16
- package/build/{offesecAgent-81t5mjc7.js → offesecAgent-fr9fpzzk.js} +8 -8
- package/build/pentest-t3d2bpde.js +29 -0
- package/build/{pentests-8jzq9wr7.js → pentests-c6x7t7n4.js} +16 -16
- package/build/{targetedPentest-9wmdjjst.js → targetedPentest-jyq4azbd.js} +9 -9
- package/build/{targets-3qsfr4yr.js → targets-xdv5m9vq.js} +16 -16
- package/build/threatModel-3rmdn2z4.js +27 -0
- package/build/{uninstall-wkm626qv.js → uninstall-3gat07zn.js} +1 -1
- package/build/{upload-xyfs0efr.js → upload-9xb2xw55.js} +6 -6
- package/build/{utils-6t4yqref.js → utils-dwhbr085.js} +5 -5
- package/package.json +1 -1
- package/build/agent-ysdy35bg.js +0 -19
- package/build/authentication-dghzj4y6.js +0 -19
- package/build/blackboxAgent-dj3q90tf.js +0 -19
- package/build/pentest-00zkwz6t.js +0 -29
- package/build/threatModel-2ah5p448.js +0 -27
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-56zyg4kv.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-6d37md4z.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-j2xnatde.js";
|
|
12
|
+
import"./cli-t3w55a46.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
16
16
|
} from "./cli-3k1x5rn3.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-0nhhne05.js";
|
|
19
|
+
import"./cli-mfsnae61.js";
|
|
20
|
+
import"./cli-x3dp6b1d.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-3v63bjde.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-84zf1xh9.js";
|
|
6
|
+
import"./cli-56zyg4kv.js";
|
|
7
|
+
import"./cli-6d37md4z.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-j2xnatde.js";
|
|
10
|
+
import"./cli-t3w55a46.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-0nhhne05.js";
|
|
14
|
+
import"./cli-mfsnae61.js";
|
|
15
|
+
import"./cli-x3dp6b1d.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
CodeAgent
|
|
19
|
+
};
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
buildPentestActiveTools,
|
|
5
5
|
buildPentestPrompt,
|
|
6
6
|
buildPentestSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-nz9t18bj.js";
|
|
8
8
|
import"./cli-9fsre5pt.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
9
|
+
import"./cli-84zf1xh9.js";
|
|
10
|
+
import"./cli-56zyg4kv.js";
|
|
11
|
+
import"./cli-6d37md4z.js";
|
|
12
12
|
import"./cli-c8131c4q.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
import"./cli-j2xnatde.js";
|
|
14
|
+
import"./cli-t3w55a46.js";
|
|
15
15
|
import"./cli-3k1x5rn3.js";
|
|
16
16
|
import"./cli-gpnb45ck.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
17
|
+
import"./cli-0nhhne05.js";
|
|
18
|
+
import"./cli-mfsnae61.js";
|
|
19
|
+
import"./cli-x3dp6b1d.js";
|
|
20
20
|
import"./cli-8rxa073f.js";
|
|
21
21
|
export {
|
|
22
22
|
buildPentestSystemPrompt,
|
|
@@ -12,27 +12,27 @@ 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-
|
|
22
|
-
import"./cli-
|
|
15
|
+
} from "./cli-phg6k6r3.js";
|
|
16
|
+
import"./cli-b5fgnn98.js";
|
|
17
|
+
import"./cli-5r9kv574.js";
|
|
18
|
+
import"./cli-5kw8aevs.js";
|
|
19
|
+
import"./cli-nz9t18bj.js";
|
|
20
|
+
import"./cli-xtr26a9f.js";
|
|
21
|
+
import"./cli-3v63bjde.js";
|
|
22
|
+
import"./cli-x8a6x5qp.js";
|
|
23
23
|
import"./cli-9fsre5pt.js";
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
24
|
+
import"./cli-84zf1xh9.js";
|
|
25
|
+
import"./cli-56zyg4kv.js";
|
|
26
|
+
import"./cli-6d37md4z.js";
|
|
27
27
|
import"./cli-fw5r7pfj.js";
|
|
28
28
|
import"./cli-c8131c4q.js";
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
29
|
+
import"./cli-j2xnatde.js";
|
|
30
|
+
import"./cli-t3w55a46.js";
|
|
31
31
|
import"./cli-3k1x5rn3.js";
|
|
32
32
|
import"./cli-gpnb45ck.js";
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
33
|
+
import"./cli-0nhhne05.js";
|
|
34
|
+
import"./cli-mfsnae61.js";
|
|
35
|
+
import"./cli-x3dp6b1d.js";
|
|
36
36
|
import"./cli-8rxa073f.js";
|
|
37
37
|
|
|
38
38
|
// 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-phg6k6r3.js";
|
|
3
|
+
import"./cli-b5fgnn98.js";
|
|
4
|
+
import"./cli-5r9kv574.js";
|
|
5
|
+
import"./cli-5kw8aevs.js";
|
|
6
|
+
import"./cli-nz9t18bj.js";
|
|
7
|
+
import"./cli-xtr26a9f.js";
|
|
8
|
+
import"./cli-3v63bjde.js";
|
|
9
|
+
import"./cli-x8a6x5qp.js";
|
|
10
10
|
import"./cli-9fsre5pt.js";
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
11
|
+
import"./cli-84zf1xh9.js";
|
|
12
|
+
import"./cli-56zyg4kv.js";
|
|
13
|
+
import"./cli-6d37md4z.js";
|
|
14
14
|
import"./cli-fw5r7pfj.js";
|
|
15
15
|
import"./cli-c8131c4q.js";
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-j2xnatde.js";
|
|
17
17
|
import {
|
|
18
18
|
createWorkspaceSelection,
|
|
19
19
|
disconnect,
|
|
@@ -28,15 +28,15 @@ import {
|
|
|
28
28
|
pollWorkspaceSelection,
|
|
29
29
|
selectWorkspace,
|
|
30
30
|
startDeviceFlow
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-t3w55a46.js";
|
|
32
32
|
import"./cli-3k1x5rn3.js";
|
|
33
33
|
import"./cli-gpnb45ck.js";
|
|
34
34
|
import {
|
|
35
35
|
config,
|
|
36
36
|
init_config
|
|
37
|
-
} from "./cli-
|
|
38
|
-
import"./cli-
|
|
39
|
-
import"./cli-
|
|
37
|
+
} from "./cli-0nhhne05.js";
|
|
38
|
+
import"./cli-mfsnae61.js";
|
|
39
|
+
import"./cli-x3dp6b1d.js";
|
|
40
40
|
import {
|
|
41
41
|
__require
|
|
42
42
|
} from "./cli-8rxa073f.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-xtr26a9f.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-84zf1xh9.js";
|
|
6
|
+
import"./cli-56zyg4kv.js";
|
|
7
|
+
import"./cli-6d37md4z.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-j2xnatde.js";
|
|
10
|
+
import"./cli-t3w55a46.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-0nhhne05.js";
|
|
14
|
+
import"./cli-mfsnae61.js";
|
|
15
|
+
import"./cli-x3dp6b1d.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
runAuthenticationAgent
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-5r9kv574.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-84zf1xh9.js";
|
|
6
|
+
import"./cli-56zyg4kv.js";
|
|
7
|
+
import"./cli-6d37md4z.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-j2xnatde.js";
|
|
10
|
+
import"./cli-t3w55a46.js";
|
|
11
|
+
import"./cli-3k1x5rn3.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-0nhhne05.js";
|
|
14
|
+
import"./cli-mfsnae61.js";
|
|
15
|
+
import"./cli-x3dp6b1d.js";
|
|
16
|
+
import"./cli-8rxa073f.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-b5fgnn98.js";
|
|
4
|
+
import"./cli-5r9kv574.js";
|
|
5
|
+
import"./cli-5kw8aevs.js";
|
|
6
|
+
import"./cli-nz9t18bj.js";
|
|
7
|
+
import"./cli-3v63bjde.js";
|
|
8
|
+
import"./cli-x8a6x5qp.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
import"./cli-84zf1xh9.js";
|
|
11
|
+
import"./cli-56zyg4kv.js";
|
|
12
|
+
import"./cli-6d37md4z.js";
|
|
13
13
|
import"./cli-fw5r7pfj.js";
|
|
14
14
|
import"./cli-c8131c4q.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
15
|
+
import"./cli-j2xnatde.js";
|
|
16
|
+
import"./cli-t3w55a46.js";
|
|
17
17
|
import"./cli-3k1x5rn3.js";
|
|
18
18
|
import"./cli-gpnb45ck.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
19
|
+
import"./cli-0nhhne05.js";
|
|
20
|
+
import"./cli-mfsnae61.js";
|
|
21
|
+
import"./cli-x3dp6b1d.js";
|
|
22
22
|
import"./cli-8rxa073f.js";
|
|
23
23
|
|
|
24
24
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-56zyg4kv.js";
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
stepCountIs
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-j2xnatde.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-6d37md4z.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-j2xnatde.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-t3w55a46.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-0nhhne05.js";
|
|
74
74
|
import {
|
|
75
75
|
__commonJS,
|
|
76
76
|
__require,
|
|
@@ -106677,7 +106677,7 @@ IMPORTANT: Pass protectedEndpoints in authHints when you've discovered 401/403 e
|
|
|
106677
106677
|
if (credentials) {
|
|
106678
106678
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
106679
106679
|
}
|
|
106680
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
106680
|
+
const { runAuthenticationAgent } = await import("./authentication-ar6t1hah.js");
|
|
106681
106681
|
const localBus = new AgentEventBus;
|
|
106682
106682
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
106683
106683
|
const result = await runAuthenticationAgent({
|
|
@@ -107468,7 +107468,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
107468
107468
|
return threatModelLimiter(async () => {
|
|
107469
107469
|
if (ctx.abortSignal?.aborted)
|
|
107470
107470
|
return null;
|
|
107471
|
-
const { CodeAgent } = await import("./agent-
|
|
107471
|
+
const { CodeAgent } = await import("./agent-fsm08k4s.js");
|
|
107472
107472
|
const subagentId = newSessionId();
|
|
107473
107473
|
const subagentName = `Threat Model: ${input.routePath}`;
|
|
107474
107474
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
@@ -109391,7 +109391,7 @@ init_lazyLogger();
|
|
|
109391
109391
|
var log6 = scopedLogger(() => createLogger("FindingJudge"));
|
|
109392
109392
|
async function judgeFinding(input, ctx) {
|
|
109393
109393
|
try {
|
|
109394
|
-
const { FindingJudgeAgent } = await import("./agent-
|
|
109394
|
+
const { FindingJudgeAgent } = await import("./agent-9ck6hcgm.js");
|
|
109395
109395
|
const agent = new FindingJudgeAgent({
|
|
109396
109396
|
finding: input,
|
|
109397
109397
|
model: ctx.model,
|
|
@@ -116017,7 +116017,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
116017
116017
|
});
|
|
116018
116018
|
if (cwd) {
|
|
116019
116019
|
try {
|
|
116020
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
116020
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-8nhy408y.js");
|
|
116021
116021
|
const localBus = new AgentEventBus;
|
|
116022
116022
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
116023
116023
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -116072,7 +116072,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
116072
116072
|
}
|
|
116073
116073
|
}
|
|
116074
116074
|
try {
|
|
116075
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
116075
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-z4ps082z.js");
|
|
116076
116076
|
const localBus = new AgentEventBus;
|
|
116077
116077
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
116078
116078
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -116150,7 +116150,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
116150
116150
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
116151
116151
|
}),
|
|
116152
116152
|
execute: async ({ target, cwd }) => {
|
|
116153
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
116153
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-t3d2bpde.js");
|
|
116154
116154
|
if (!ctx.model) {
|
|
116155
116155
|
return {
|
|
116156
116156
|
success: false,
|
|
@@ -117728,7 +117728,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
117728
117728
|
});
|
|
117729
117729
|
}
|
|
117730
117730
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
117731
|
-
const { CodeAgent } = await import("./agent-
|
|
117731
|
+
const { CodeAgent } = await import("./agent-fsm08k4s.js");
|
|
117732
117732
|
const childSessionId = newSessionId();
|
|
117733
117733
|
const subagentId = childSessionId;
|
|
117734
117734
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
@@ -118245,7 +118245,7 @@ Returns the worker's summary, objective results, and finding count — but NOT t
|
|
|
118245
118245
|
message: "spawn_pentest_agent requires a model in the tool context."
|
|
118246
118246
|
};
|
|
118247
118247
|
}
|
|
118248
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
118248
|
+
const { TargetedPentestAgent } = await import("./agent-xeze611p.js");
|
|
118249
118249
|
const findingsRegistry = ctx.findingsRegistry ?? FindingsRegistry.fromDirectory(ctx.session.findingsPath, {
|
|
118250
118250
|
model: ctx.model,
|
|
118251
118251
|
authConfig: ctx.authConfig,
|
|
@@ -118379,7 +118379,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
118379
118379
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
118380
118380
|
}),
|
|
118381
118381
|
execute: async ({ targets }) => {
|
|
118382
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-
|
|
118382
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-t3d2bpde.js");
|
|
118383
118383
|
if (!ctx.model) {
|
|
118384
118384
|
return {
|
|
118385
118385
|
success: false,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EvidenceFileEntrySchema
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-84zf1xh9.js";
|
|
4
4
|
import {
|
|
5
5
|
CweEntrySchema,
|
|
6
6
|
ValidatedCweEntrySchema,
|
|
7
7
|
hasCanonicalName
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-56zyg4kv.js";
|
|
9
9
|
import {
|
|
10
10
|
exports_external,
|
|
11
11
|
init_zod
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-56zyg4kv.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-6d37md4z.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
init_dist,
|
|
10
10
|
stepCountIs
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-j2xnatde.js";
|
|
12
12
|
|
|
13
13
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
14
14
|
init_dist();
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-5r9kv574.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-5kw8aevs.js";
|
|
11
11
|
import {
|
|
12
12
|
TargetedPentestAgent,
|
|
13
13
|
buildPentestSystemPrompt
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-nz9t18bj.js";
|
|
15
15
|
import {
|
|
16
16
|
CodeAgent
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-3v63bjde.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-x8a6x5qp.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-56zyg4kv.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-j2xnatde.js";
|
|
49
49
|
import {
|
|
50
50
|
__require
|
|
51
51
|
} from "./cli-8rxa073f.js";
|
|
@@ -7786,7 +7786,7 @@ async function runPentestSwarm(input) {
|
|
|
7786
7786
|
}
|
|
7787
7787
|
async function runPentestWorkflow(input) {
|
|
7788
7788
|
if (input.fastStrike) {
|
|
7789
|
-
const { runFastStrike } = await import("./fastStrike-
|
|
7789
|
+
const { runFastStrike } = await import("./fastStrike-wnceneew.js");
|
|
7790
7790
|
return runFastStrike(input);
|
|
7791
7791
|
}
|
|
7792
7792
|
const {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
init_auth,
|
|
5
5
|
init_constants,
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-t3w55a46.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-0nhhne05.js";
|
|
91
91
|
import {
|
|
92
92
|
getCurrentVersion,
|
|
93
93
|
init_installation
|
|
94
|
-
} from "./cli-
|
|
94
|
+
} from "./cli-x3dp6b1d.js";
|
|
95
95
|
import {
|
|
96
96
|
__callDispose,
|
|
97
97
|
__commonJS,
|
|
@@ -47127,7 +47127,7 @@ async function create2(input) {
|
|
|
47127
47127
|
if (normalizedConfig?.headers !== undefined) {
|
|
47128
47128
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
47129
47129
|
} else {
|
|
47130
|
-
const { config: appConfig } = await import("./index-
|
|
47130
|
+
const { config: appConfig } = await import("./index-mcav8n18.js");
|
|
47131
47131
|
const cfg = await appConfig.get();
|
|
47132
47132
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
47133
47133
|
}
|
|
@@ -47238,17 +47238,21 @@ function hasOperatorState(session) {
|
|
|
47238
47238
|
const statePath = path2.join(session.rootPath, "messages.json");
|
|
47239
47239
|
return existsSync(statePath);
|
|
47240
47240
|
}
|
|
47241
|
-
function getResumeMessages(messages, limit =
|
|
47241
|
+
function getResumeMessages(messages, limit = RESUME_MESSAGE_WINDOW) {
|
|
47242
47242
|
if (messages.length <= limit)
|
|
47243
47243
|
return messages;
|
|
47244
|
-
|
|
47244
|
+
const roughCutIndex = messages.length - limit;
|
|
47245
|
+
let cutIndex = roughCutIndex;
|
|
47245
47246
|
while (cutIndex < messages.length) {
|
|
47246
47247
|
if (messages[cutIndex].role === "user")
|
|
47247
47248
|
break;
|
|
47248
47249
|
cutIndex++;
|
|
47249
47250
|
}
|
|
47250
47251
|
if (cutIndex >= messages.length) {
|
|
47251
|
-
cutIndex =
|
|
47252
|
+
cutIndex = roughCutIndex;
|
|
47253
|
+
while (cutIndex > 0 && messages[cutIndex].role !== "user") {
|
|
47254
|
+
cutIndex--;
|
|
47255
|
+
}
|
|
47252
47256
|
}
|
|
47253
47257
|
return messages.slice(cutIndex);
|
|
47254
47258
|
}
|
|
@@ -47348,7 +47352,7 @@ var DEFAULT_OUTCOME_GUIDANCE, EXFIL_OUTCOME_GUIDANCE, DEFAULT_HEADER_RECORD, Aut
|
|
|
47348
47352
|
} catch (e) {
|
|
47349
47353
|
console.error(e);
|
|
47350
47354
|
}
|
|
47351
|
-
}, RemoveMsgInput,
|
|
47355
|
+
}, RemoveMsgInput, RESUME_MESSAGE_WINDOW = 200, sessions;
|
|
47352
47356
|
var init_session = __esm(() => {
|
|
47353
47357
|
init_zod();
|
|
47354
47358
|
init_name();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createReportErrorTool,
|
|
6
6
|
isMemoryEnabled,
|
|
7
7
|
readPlan
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-56zyg4kv.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-j2xnatde.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
OffensiveSecurityAgent,
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
6
|
buildBaseSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-56zyg4kv.js";
|
|
8
8
|
import {
|
|
9
9
|
init_dist,
|
|
10
10
|
init_session,
|
|
11
11
|
sessions,
|
|
12
12
|
stepCountIs
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-j2xnatde.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureValidToken,
|
|
16
16
|
getPensarApiUrl,
|
|
17
17
|
init_auth,
|
|
18
18
|
init_constants
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-t3w55a46.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-0nhhne05.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require
|