@pensar/apex 2.5.0-canary.dc18c30d → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/agent-13rrhp8d.js +20 -0
- package/build/{agent-3g5qbz7d.js → agent-m30a62kh.js} +7 -7
- package/build/{agent-738z02m7.js → agent-zbj2331s.js} +9 -9
- package/build/{apps-s69dj8c7.js → apps-x4ef2gpc.js} +16 -16
- package/build/{auth-xs07jrb0.js → auth-7ay8qgxm.js} +16 -16
- package/build/authentication-f4j3w5vs.js +20 -0
- package/build/blackboxAgent-v2vx9ws4.js +20 -0
- package/build/{blackboxPentest-st70s9kr.js → blackboxPentest-w5nwzpvk.js} +14 -14
- package/build/{cli-92bftab6.js → cli-3py0a0wg.js} +2 -2
- package/build/{cli-26a655er.js → cli-5wemv37a.js} +1 -1
- package/build/{cli-1mrghzfy.js → cli-73k43t1r.js} +2 -2
- package/build/{cli-a8mnvnzp.js → cli-7s062hr6.js} +1 -1
- package/build/{cli-hyd91r96.js → cli-7vg06q5r.js} +2 -2
- package/build/{cli-wv1gx12x.js → cli-9qbxkhye.js} +1 -1
- package/build/{cli-y66jze9w.js → cli-bw2ddttk.js} +3 -3
- package/build/{cli-a59s1a83.js → cli-g3czc3jz.js} +1 -1
- package/build/{cli-pw0vvjkj.js → cli-kff2bbq7.js} +1 -1
- package/build/{cli-w5jw69y5.js → cli-p4r7q012.js} +26 -5
- package/build/{cli-jd64mnsk.js → cli-sx3jkv7p.js} +19 -14
- package/build/{cli-fw6bvnen.js → cli-vkbzcnw1.js} +2 -2
- package/build/{cli-32tzsffh.js → cli-ww7hbazg.js} +1 -1
- package/build/{cli-9vt9tbzx.js → cli-x92fkt2f.js} +3 -3
- package/build/{cli-tz7zjrgy.js → cli-y3dpm18e.js} +3 -3
- package/build/{cli-2h9b59hz.js → cli-z5c0ypg1.js} +1 -1
- package/build/{cli-20rmgbha.js → cli-zav1yx5k.js} +8 -8
- package/build/cli.js +135 -47
- package/build/{config-g78qzfd3.js → config-4kzh88xz.js} +3 -3
- package/build/{doctor-1fdtbrxy.js → doctor-rz7sx6ev.js} +6 -6
- package/build/{fastStrike-ba8rbefz.js → fastStrike-a54atjc8.js} +9 -9
- package/build/{fixes-fnspmg1q.js → fixes-fv66yn1z.js} +16 -16
- package/build/{index-bp5d5r8a.js → index-18vyy6mj.js} +2 -2
- package/build/{index-2b5d0bpd.js → index-e23zc8g4.js} +9 -9
- package/build/{index-sddxe3hz.js → index-fpwr10qm.js} +123 -56
- package/build/{index-vg7j610z.js → index-hnwhswqj.js} +8 -8
- package/build/{index-v9hcyzb3.js → index-kyd1jm89.js} +6 -6
- package/build/{index-3b4hvxc0.js → index-wkmnr4nm.js} +4 -4
- package/build/{index-x49qc5g5.js → index-ywmfnd30.js} +3 -3
- package/build/{issues-rbjm5qkp.js → issues-019678t0.js} +16 -16
- package/build/{logs-7v9t93a3.js → logs-wzr5176k.js} +16 -16
- package/build/{offesecAgent-hbhcrx3d.js → offesecAgent-c97pqzcn.js} +8 -8
- package/build/pentest-4p5jt7gj.js +30 -0
- package/build/{pentests-6emm8686.js → pentests-v98eg8n3.js} +16 -16
- package/build/{targetedPentest-z511k4et.js → targetedPentest-tdwtgmxm.js} +9 -9
- package/build/{targets-kz6dhxdy.js → targets-763n91t7.js} +16 -16
- package/build/threatModel-81d4rcbk.js +29 -0
- package/build/{uninstall-gtfcwax0.js → uninstall-d33159cz.js} +1 -1
- package/build/{upload-qyq7hjdj.js → upload-9qj1kpt9.js} +6 -6
- package/build/{utils-xa082yn9.js → utils-t7gc2903.js} +5 -5
- package/package.json +1 -1
- package/build/agent-yyf75hsw.js +0 -20
- package/build/authentication-pcvj2jnk.js +0 -20
- package/build/blackboxAgent-edk6v708.js +0 -20
- package/build/pentest-2f1ab2ce.js +0 -30
- package/build/threatModel-br10jtzd.js +0 -29
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-73k43t1r.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9qbxkhye.js";
|
|
6
|
+
import"./cli-sx3jkv7p.js";
|
|
7
|
+
import"./cli-5wemv37a.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-p4r7q012.js";
|
|
10
|
+
import"./cli-kff2bbq7.js";
|
|
11
|
+
import"./cli-avmhkjtv.js";
|
|
12
|
+
import"./cli-j54qa6tm.js";
|
|
13
|
+
import"./cli-7s062hr6.js";
|
|
14
|
+
import"./cli-ww7hbazg.js";
|
|
15
|
+
import"./cli-g3czc3jz.js";
|
|
16
|
+
import"./cli-knd276ed.js";
|
|
17
|
+
import"./cli-bc05qbss.js";
|
|
18
|
+
export {
|
|
19
|
+
CodeAgent
|
|
20
|
+
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-sx3jkv7p.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-5wemv37a.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-p4r7q012.js";
|
|
12
|
+
import"./cli-kff2bbq7.js";
|
|
13
13
|
import {
|
|
14
14
|
exports_external,
|
|
15
15
|
init_zod
|
|
16
16
|
} from "./cli-avmhkjtv.js";
|
|
17
17
|
import"./cli-j54qa6tm.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-7s062hr6.js";
|
|
19
|
+
import"./cli-ww7hbazg.js";
|
|
20
|
+
import"./cli-g3czc3jz.js";
|
|
21
21
|
import"./cli-knd276ed.js";
|
|
22
22
|
import"./cli-bc05qbss.js";
|
|
23
23
|
|
|
@@ -5,19 +5,19 @@ import {
|
|
|
5
5
|
buildPentestPrompt,
|
|
6
6
|
buildPentestSystemPrompt,
|
|
7
7
|
resolvePentestAgentRole
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-3py0a0wg.js";
|
|
9
9
|
import"./cli-9fsre5pt.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
10
|
+
import"./cli-9qbxkhye.js";
|
|
11
|
+
import"./cli-sx3jkv7p.js";
|
|
12
|
+
import"./cli-5wemv37a.js";
|
|
13
13
|
import"./cli-c8131c4q.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
14
|
+
import"./cli-p4r7q012.js";
|
|
15
|
+
import"./cli-kff2bbq7.js";
|
|
16
16
|
import"./cli-avmhkjtv.js";
|
|
17
17
|
import"./cli-j54qa6tm.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-7s062hr6.js";
|
|
19
|
+
import"./cli-ww7hbazg.js";
|
|
20
|
+
import"./cli-g3czc3jz.js";
|
|
21
21
|
import"./cli-knd276ed.js";
|
|
22
22
|
import"./cli-bc05qbss.js";
|
|
23
23
|
export {
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import {
|
|
3
3
|
markCommandFailed
|
|
4
4
|
} from "./cli-7q3ae3ft.js";
|
|
5
|
-
import"./cli-
|
|
5
|
+
import"./cli-bw2ddttk.js";
|
|
6
6
|
import"./cli-9pbk8m32.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
7
|
+
import"./cli-zav1yx5k.js";
|
|
8
|
+
import"./cli-7vg06q5r.js";
|
|
9
|
+
import"./cli-y3dpm18e.js";
|
|
10
|
+
import"./cli-3py0a0wg.js";
|
|
11
|
+
import"./cli-vkbzcnw1.js";
|
|
12
|
+
import"./cli-x92fkt2f.js";
|
|
13
|
+
import"./cli-73k43t1r.js";
|
|
14
14
|
import"./cli-9fsre5pt.js";
|
|
15
|
-
import"./cli-
|
|
15
|
+
import"./cli-9qbxkhye.js";
|
|
16
16
|
import {
|
|
17
17
|
ENDPOINT_TRANSPORTS,
|
|
18
18
|
createApp,
|
|
@@ -29,17 +29,17 @@ import {
|
|
|
29
29
|
searchEndpoints,
|
|
30
30
|
updateApp,
|
|
31
31
|
updateEndpoint
|
|
32
|
-
} from "./cli-
|
|
33
|
-
import"./cli-
|
|
32
|
+
} from "./cli-sx3jkv7p.js";
|
|
33
|
+
import"./cli-5wemv37a.js";
|
|
34
34
|
import"./cli-fw5r7pfj.js";
|
|
35
35
|
import"./cli-c8131c4q.js";
|
|
36
|
-
import"./cli-
|
|
37
|
-
import"./cli-
|
|
36
|
+
import"./cli-p4r7q012.js";
|
|
37
|
+
import"./cli-kff2bbq7.js";
|
|
38
38
|
import"./cli-avmhkjtv.js";
|
|
39
39
|
import"./cli-j54qa6tm.js";
|
|
40
|
-
import"./cli-
|
|
41
|
-
import"./cli-
|
|
42
|
-
import"./cli-
|
|
40
|
+
import"./cli-7s062hr6.js";
|
|
41
|
+
import"./cli-ww7hbazg.js";
|
|
42
|
+
import"./cli-g3czc3jz.js";
|
|
43
43
|
import"./cli-knd276ed.js";
|
|
44
44
|
import"./cli-bc05qbss.js";
|
|
45
45
|
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
import {
|
|
3
3
|
markCommandFailed
|
|
4
4
|
} from "./cli-7q3ae3ft.js";
|
|
5
|
-
import"./cli-
|
|
5
|
+
import"./cli-bw2ddttk.js";
|
|
6
6
|
import"./cli-9pbk8m32.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
7
|
+
import"./cli-zav1yx5k.js";
|
|
8
|
+
import"./cli-7vg06q5r.js";
|
|
9
|
+
import"./cli-y3dpm18e.js";
|
|
10
|
+
import"./cli-3py0a0wg.js";
|
|
11
|
+
import"./cli-vkbzcnw1.js";
|
|
12
|
+
import"./cli-x92fkt2f.js";
|
|
13
|
+
import"./cli-73k43t1r.js";
|
|
14
14
|
import"./cli-9fsre5pt.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
15
|
+
import"./cli-9qbxkhye.js";
|
|
16
|
+
import"./cli-sx3jkv7p.js";
|
|
17
|
+
import"./cli-5wemv37a.js";
|
|
18
18
|
import"./cli-fw5r7pfj.js";
|
|
19
19
|
import"./cli-c8131c4q.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-p4r7q012.js";
|
|
21
21
|
import {
|
|
22
22
|
createWorkspaceSelection,
|
|
23
23
|
disconnect,
|
|
@@ -33,15 +33,15 @@ import {
|
|
|
33
33
|
pollWorkspaceSelection,
|
|
34
34
|
selectWorkspace,
|
|
35
35
|
startDeviceFlow
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-kff2bbq7.js";
|
|
37
37
|
import"./cli-avmhkjtv.js";
|
|
38
38
|
import"./cli-j54qa6tm.js";
|
|
39
39
|
import {
|
|
40
40
|
config,
|
|
41
41
|
init_config
|
|
42
|
-
} from "./cli-
|
|
43
|
-
import"./cli-
|
|
44
|
-
import"./cli-
|
|
42
|
+
} from "./cli-7s062hr6.js";
|
|
43
|
+
import"./cli-ww7hbazg.js";
|
|
44
|
+
import"./cli-g3czc3jz.js";
|
|
45
45
|
import"./cli-knd276ed.js";
|
|
46
46
|
import {
|
|
47
47
|
__require
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent
|
|
3
|
+
} from "./cli-x92fkt2f.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9qbxkhye.js";
|
|
6
|
+
import"./cli-sx3jkv7p.js";
|
|
7
|
+
import"./cli-5wemv37a.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-p4r7q012.js";
|
|
10
|
+
import"./cli-kff2bbq7.js";
|
|
11
|
+
import"./cli-avmhkjtv.js";
|
|
12
|
+
import"./cli-j54qa6tm.js";
|
|
13
|
+
import"./cli-7s062hr6.js";
|
|
14
|
+
import"./cli-ww7hbazg.js";
|
|
15
|
+
import"./cli-g3czc3jz.js";
|
|
16
|
+
import"./cli-knd276ed.js";
|
|
17
|
+
import"./cli-bc05qbss.js";
|
|
18
|
+
export {
|
|
19
|
+
runAuthenticationAgent
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-y3dpm18e.js";
|
|
4
|
+
import"./cli-9fsre5pt.js";
|
|
5
|
+
import"./cli-9qbxkhye.js";
|
|
6
|
+
import"./cli-sx3jkv7p.js";
|
|
7
|
+
import"./cli-5wemv37a.js";
|
|
8
|
+
import"./cli-c8131c4q.js";
|
|
9
|
+
import"./cli-p4r7q012.js";
|
|
10
|
+
import"./cli-kff2bbq7.js";
|
|
11
|
+
import"./cli-avmhkjtv.js";
|
|
12
|
+
import"./cli-j54qa6tm.js";
|
|
13
|
+
import"./cli-7s062hr6.js";
|
|
14
|
+
import"./cli-ww7hbazg.js";
|
|
15
|
+
import"./cli-g3czc3jz.js";
|
|
16
|
+
import"./cli-knd276ed.js";
|
|
17
|
+
import"./cli-bc05qbss.js";
|
|
18
|
+
export {
|
|
19
|
+
BlackboxAttackSurfaceAgent
|
|
20
|
+
};
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
readExecutionMetrics,
|
|
7
7
|
runPentestWorkflow,
|
|
8
8
|
writeExecutionMetrics
|
|
9
|
-
} from "./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
9
|
+
} from "./cli-zav1yx5k.js";
|
|
10
|
+
import"./cli-7vg06q5r.js";
|
|
11
|
+
import"./cli-y3dpm18e.js";
|
|
12
|
+
import"./cli-3py0a0wg.js";
|
|
13
|
+
import"./cli-vkbzcnw1.js";
|
|
14
|
+
import"./cli-73k43t1r.js";
|
|
15
15
|
import"./cli-9fsre5pt.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
16
|
+
import"./cli-9qbxkhye.js";
|
|
17
|
+
import"./cli-sx3jkv7p.js";
|
|
18
|
+
import"./cli-5wemv37a.js";
|
|
19
19
|
import"./cli-fw5r7pfj.js";
|
|
20
20
|
import"./cli-c8131c4q.js";
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
21
|
+
import"./cli-p4r7q012.js";
|
|
22
|
+
import"./cli-kff2bbq7.js";
|
|
23
23
|
import"./cli-avmhkjtv.js";
|
|
24
24
|
import"./cli-j54qa6tm.js";
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
25
|
+
import"./cli-7s062hr6.js";
|
|
26
|
+
import"./cli-ww7hbazg.js";
|
|
27
|
+
import"./cli-g3czc3jz.js";
|
|
28
28
|
import"./cli-knd276ed.js";
|
|
29
29
|
import"./cli-bc05qbss.js";
|
|
30
30
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createReportErrorTool,
|
|
6
6
|
isMemoryEnabled,
|
|
7
7
|
readPlan
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-sx3jkv7p.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-p4r7q012.js";
|
|
17
17
|
import {
|
|
18
18
|
exports_external,
|
|
19
19
|
init_zod
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-sx3jkv7p.js";
|
|
4
4
|
import {
|
|
5
5
|
init_dist,
|
|
6
6
|
stepCountIs
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-p4r7q012.js";
|
|
8
8
|
|
|
9
9
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
10
10
|
init_dist();
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
EndpointTransportEnum,
|
|
3
3
|
GrpcEndpointMetadataSchema,
|
|
4
4
|
OffensiveSecurityAgent
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-sx3jkv7p.js";
|
|
6
6
|
import {
|
|
7
7
|
hasToolCall,
|
|
8
8
|
init_dist
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-p4r7q012.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_external,
|
|
12
12
|
init_zod,
|
|
@@ -5,16 +5,16 @@ import {
|
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
6
|
apiRequest,
|
|
7
7
|
buildBaseSystemPrompt
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-sx3jkv7p.js";
|
|
9
9
|
import {
|
|
10
10
|
init_dist,
|
|
11
11
|
init_session,
|
|
12
12
|
sessions,
|
|
13
13
|
stepCountIs
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-p4r7q012.js";
|
|
15
15
|
import {
|
|
16
16
|
init_constants
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-kff2bbq7.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-kff2bbq7.js";
|
|
8
8
|
import {
|
|
9
9
|
AISDKError,
|
|
10
10
|
APICallError,
|
|
@@ -86,11 +86,11 @@ import {
|
|
|
86
86
|
import {
|
|
87
87
|
config,
|
|
88
88
|
init_config
|
|
89
|
-
} from "./cli-
|
|
89
|
+
} from "./cli-7s062hr6.js";
|
|
90
90
|
import {
|
|
91
91
|
getCurrentVersion,
|
|
92
92
|
init_installation
|
|
93
|
-
} from "./cli-
|
|
93
|
+
} from "./cli-g3czc3jz.js";
|
|
94
94
|
import {
|
|
95
95
|
require_src
|
|
96
96
|
} from "./cli-knd276ed.js";
|
|
@@ -45382,6 +45382,26 @@ Error message: ${getErrorMessage4(cause)}`,
|
|
|
45382
45382
|
});
|
|
45383
45383
|
});
|
|
45384
45384
|
|
|
45385
|
+
// src/core/observability/active-root-spans.ts
|
|
45386
|
+
function registerActiveRootSpan(span) {
|
|
45387
|
+
activeRootSpans.add(span);
|
|
45388
|
+
}
|
|
45389
|
+
function unregisterActiveRootSpan(span) {
|
|
45390
|
+
activeRootSpans.delete(span);
|
|
45391
|
+
}
|
|
45392
|
+
function endAllActiveRootSpans() {
|
|
45393
|
+
for (const span of activeRootSpans) {
|
|
45394
|
+
try {
|
|
45395
|
+
span.end();
|
|
45396
|
+
} catch {}
|
|
45397
|
+
}
|
|
45398
|
+
activeRootSpans.clear();
|
|
45399
|
+
}
|
|
45400
|
+
var activeRootSpans;
|
|
45401
|
+
var init_active_root_spans = __esm(() => {
|
|
45402
|
+
activeRootSpans = new Set;
|
|
45403
|
+
});
|
|
45404
|
+
|
|
45385
45405
|
// src/core/observability/telemetry.ts
|
|
45386
45406
|
function createAiTelemetrySettings(input) {
|
|
45387
45407
|
const recordPayloads = shouldRecordAiPayloads();
|
|
@@ -45427,6 +45447,7 @@ function getActiveTraceCorrelation() {
|
|
|
45427
45447
|
var import_api3, SESSION_BAGGAGE_KEY = "pensar.session.id";
|
|
45428
45448
|
var init_observability = __esm(() => {
|
|
45429
45449
|
init_id();
|
|
45450
|
+
init_active_root_spans();
|
|
45430
45451
|
init_telemetry();
|
|
45431
45452
|
import_api3 = __toESM(require_src(), 1);
|
|
45432
45453
|
});
|
|
@@ -47421,7 +47442,7 @@ async function create2(input) {
|
|
|
47421
47442
|
if (normalizedConfig?.headers !== undefined) {
|
|
47422
47443
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
47423
47444
|
} else {
|
|
47424
|
-
const { config: appConfig } = await import("./index-
|
|
47445
|
+
const { config: appConfig } = await import("./index-ywmfnd30.js");
|
|
47425
47446
|
const cfg = await appConfig.get();
|
|
47426
47447
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
47427
47448
|
}
|
|
@@ -49518,4 +49539,4 @@ var init_utils = __esm(() => {
|
|
|
49518
49539
|
STREAMING_FETCH_TIMEOUT_MS = 35 * 60 * 1000;
|
|
49519
49540
|
});
|
|
49520
49541
|
|
|
49521
|
-
export { stepCountIs, hasToolCall, init_dist4 as init_dist, schema, descending, newSessionId, newMessageId, newPartId, newRunId, init_id, getApexTracer, withSubagentSessionBaggage, getActiveTraceCorrelation, init_observability, addRecentModelId, getRecentModels, init_model_history, AVAILABLE_MODELS, init_models, require_tslib, scopedLogger, init_lazyLogger, buildAuthConfig, init_utils, init_ai2 as init_ai, generateRandomName, generateSessionName, init_name, CredentialManager, init_credentials, RateLimiter, init_rateLimiter, NotFoundError, write2 as write, createDir, writeRaw, read2 as read, update, list, init_storage, ToolsetStateSchema, init_toolset, create2 as create, list2 as list1, getResumeMessages, normalizeMessages, sessions, init_session, writeErrorLog, routeLogsToErrorFile, init_logger, createLogger, logger, init_structured, DEFAULT_OPENAI_REASONING_EFFORT, getContextWindow, modelSupportsThinking, modelSupportsOpenAIReasoning, getOpenAIReasoningEfforts, streamResponse, generateObjectResponse, init_ai as init_ai1 };
|
|
49542
|
+
export { stepCountIs, hasToolCall, init_dist4 as init_dist, schema, descending, newSessionId, newMessageId, newPartId, newRunId, init_id, registerActiveRootSpan, unregisterActiveRootSpan, endAllActiveRootSpans, init_active_root_spans, getApexTracer, withSubagentSessionBaggage, getActiveTraceCorrelation, init_observability, addRecentModelId, getRecentModels, init_model_history, AVAILABLE_MODELS, init_models, require_tslib, scopedLogger, init_lazyLogger, buildAuthConfig, init_utils, init_ai2 as init_ai, generateRandomName, generateSessionName, init_name, CredentialManager, init_credentials, RateLimiter, init_rateLimiter, NotFoundError, write2 as write, createDir, writeRaw, read2 as read, update, list, init_storage, ToolsetStateSchema, init_toolset, create2 as create, list2 as list1, getResumeMessages, normalizeMessages, sessions, init_session, writeErrorLog, routeLogsToErrorFile, init_logger, createLogger, logger, init_structured, DEFAULT_OPENAI_REASONING_EFFORT, getContextWindow, modelSupportsThinking, modelSupportsOpenAIReasoning, getOpenAIReasoningEfforts, streamResponse, generateObjectResponse, init_ai as init_ai1 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
detectOSAndEnhancePrompt
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-5wemv37a.js";
|
|
4
4
|
import {
|
|
5
5
|
parseTargetUrl
|
|
6
6
|
} from "./cli-c8131c4q.js";
|
|
@@ -28,20 +28,22 @@ import {
|
|
|
28
28
|
newRunId,
|
|
29
29
|
newSessionId,
|
|
30
30
|
read,
|
|
31
|
+
registerActiveRootSpan,
|
|
31
32
|
require_tslib,
|
|
32
33
|
scopedLogger,
|
|
33
34
|
stepCountIs,
|
|
34
35
|
streamResponse,
|
|
36
|
+
unregisterActiveRootSpan,
|
|
35
37
|
withSubagentSessionBaggage,
|
|
36
38
|
write
|
|
37
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-p4r7q012.js";
|
|
38
40
|
import {
|
|
39
41
|
ensureValidToken,
|
|
40
42
|
getPensarApiUrl,
|
|
41
43
|
init_auth,
|
|
42
44
|
init_constants,
|
|
43
45
|
signGatewayRequest
|
|
44
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-kff2bbq7.js";
|
|
45
47
|
import {
|
|
46
48
|
_enum,
|
|
47
49
|
_null,
|
|
@@ -71,11 +73,11 @@ import {
|
|
|
71
73
|
import {
|
|
72
74
|
config,
|
|
73
75
|
init_config
|
|
74
|
-
} from "./cli-
|
|
76
|
+
} from "./cli-7s062hr6.js";
|
|
75
77
|
import {
|
|
76
78
|
getCurrentVersion,
|
|
77
79
|
init_installation
|
|
78
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-g3czc3jz.js";
|
|
79
81
|
import {
|
|
80
82
|
require_src
|
|
81
83
|
} from "./cli-knd276ed.js";
|
|
@@ -106773,7 +106775,7 @@ IMPORTANT: Pass protectedEndpoints in authHints when you've discovered 401/403 e
|
|
|
106773
106775
|
if (credentials) {
|
|
106774
106776
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
106775
106777
|
}
|
|
106776
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
106778
|
+
const { runAuthenticationAgent } = await import("./authentication-f4j3w5vs.js");
|
|
106777
106779
|
const localBus = new AgentEventBus;
|
|
106778
106780
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
106779
106781
|
const result = await runAuthenticationAgent({
|
|
@@ -107567,7 +107569,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
107567
107569
|
return threatModelLimiter(async () => {
|
|
107568
107570
|
if (ctx.abortSignal?.aborted)
|
|
107569
107571
|
return null;
|
|
107570
|
-
const { CodeAgent } = await import("./agent-
|
|
107572
|
+
const { CodeAgent } = await import("./agent-13rrhp8d.js");
|
|
107571
107573
|
const subagentId = newSessionId();
|
|
107572
107574
|
const subagentName = `Threat Model: ${input.routePath}`;
|
|
107573
107575
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
@@ -109573,7 +109575,7 @@ init_lazyLogger();
|
|
|
109573
109575
|
var log6 = scopedLogger(() => createLogger("FindingJudge"));
|
|
109574
109576
|
async function judgeFinding(input, ctx) {
|
|
109575
109577
|
try {
|
|
109576
|
-
const { FindingJudgeAgent } = await import("./agent-
|
|
109578
|
+
const { FindingJudgeAgent } = await import("./agent-m30a62kh.js");
|
|
109577
109579
|
const agent = new FindingJudgeAgent({
|
|
109578
109580
|
finding: input,
|
|
109579
109581
|
model: ctx.model,
|
|
@@ -116215,7 +116217,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
116215
116217
|
});
|
|
116216
116218
|
if (cwd) {
|
|
116217
116219
|
try {
|
|
116218
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
116220
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-e23zc8g4.js");
|
|
116219
116221
|
const localBus = new AgentEventBus;
|
|
116220
116222
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
116221
116223
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -116270,7 +116272,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
116270
116272
|
}
|
|
116271
116273
|
}
|
|
116272
116274
|
try {
|
|
116273
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
116275
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-v2vx9ws4.js");
|
|
116274
116276
|
const localBus = new AgentEventBus;
|
|
116275
116277
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
116276
116278
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -116348,7 +116350,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
116348
116350
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
116349
116351
|
}),
|
|
116350
116352
|
execute: async ({ target, cwd }) => {
|
|
116351
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
116353
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-4p5jt7gj.js");
|
|
116352
116354
|
if (!ctx.model) {
|
|
116353
116355
|
return {
|
|
116354
116356
|
success: false,
|
|
@@ -118054,7 +118056,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
118054
118056
|
});
|
|
118055
118057
|
}
|
|
118056
118058
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
118057
|
-
const { CodeAgent } = await import("./agent-
|
|
118059
|
+
const { CodeAgent } = await import("./agent-13rrhp8d.js");
|
|
118058
118060
|
const childSessionId = newSessionId();
|
|
118059
118061
|
const subagentId = childSessionId;
|
|
118060
118062
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
@@ -118589,7 +118591,7 @@ Returns the worker's summary, objective results, and finding count — but NOT t
|
|
|
118589
118591
|
}
|
|
118590
118592
|
throw error;
|
|
118591
118593
|
}
|
|
118592
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
118594
|
+
const { TargetedPentestAgent } = await import("./agent-zbj2331s.js");
|
|
118593
118595
|
const findingsRegistry = ctx.findingsRegistry ?? FindingsRegistry.fromDirectory(ctx.session.findingsPath, {
|
|
118594
118596
|
model: ctx.model,
|
|
118595
118597
|
authConfig: ctx.authConfig,
|
|
@@ -118726,7 +118728,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
118726
118728
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
118727
118729
|
}),
|
|
118728
118730
|
execute: async ({ targets }) => {
|
|
118729
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-
|
|
118731
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY: DEFAULT_CONCURRENCY2 } = await import("./pentest-4p5jt7gj.js");
|
|
118730
118732
|
if (!ctx.model) {
|
|
118731
118733
|
return {
|
|
118732
118734
|
success: false,
|
|
@@ -126215,6 +126217,8 @@ class OffensiveSecurityAgent {
|
|
|
126215
126217
|
}
|
|
126216
126218
|
};
|
|
126217
126219
|
const runInSpan = () => getApexTracer().startActiveSpan(`invoke_agent ${spanLabel}`, { attributes: runSpanAttributes }, async (span) => {
|
|
126220
|
+
if (!isSubagent)
|
|
126221
|
+
registerActiveRootSpan(span);
|
|
126218
126222
|
try {
|
|
126219
126223
|
return await runConsume();
|
|
126220
126224
|
} catch (err) {
|
|
@@ -126223,6 +126227,7 @@ class OffensiveSecurityAgent {
|
|
|
126223
126227
|
span.setAttribute("error.type", err instanceof Error ? err.name : "Error");
|
|
126224
126228
|
throw err;
|
|
126225
126229
|
} finally {
|
|
126230
|
+
unregisterActiveRootSpan(span);
|
|
126226
126231
|
span.end();
|
|
126227
126232
|
}
|
|
126228
126233
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EvidenceFileEntrySchema
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-9qbxkhye.js";
|
|
4
4
|
import {
|
|
5
5
|
AttackPathSchema,
|
|
6
6
|
CweEntrySchema,
|
|
7
7
|
ValidatedCweEntrySchema,
|
|
8
8
|
hasCanonicalName
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-sx3jkv7p.js";
|
|
10
10
|
import {
|
|
11
11
|
exports_external,
|
|
12
12
|
init_zod
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-sx3jkv7p.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-5wemv37a.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-p4r7q012.js";
|
|
15
15
|
|
|
16
16
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
17
17
|
init_dist();
|