@pensar/apex 1.2.0-canary.b0b4e91d → 1.2.0-canary.d5adacbe
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-cfsnws8f.js +18 -0
- package/build/{agent-ffmjy3yd.js → agent-mzes7wwh.js} +8 -8
- package/build/{auth-9m3wjp88.js → auth-ce0rt85r.js} +4 -4
- package/build/{authentication-w5cdhh5s.js → authentication-9yqyvqqp.js} +7 -7
- package/build/blackboxAgent-dgyt9rx5.js +18 -0
- package/build/{blackboxPentest-5b2hw65h.js → blackboxPentest-qegq3ccf.js} +13 -13
- package/build/{cli-gfaerf1q.js → cli-0v8mcgd8.js} +1 -1
- package/build/{cli-hvwjgeec.js → cli-1mkpsejg.js} +1 -1
- package/build/{cli-cb542jd4.js → cli-2hy3wepf.js} +1 -1
- package/build/{cli-t5mef3sn.js → cli-32w8n523.js} +1 -1
- package/build/{cli-d0g93ydj.js → cli-37nmga9y.js} +7 -7
- package/build/{cli-yez34d7b.js → cli-5vearsn5.js} +2 -2
- package/build/{cli-mwc33wq9.js → cli-7fe4p8a3.js} +1 -1
- package/build/{cli-gsdenv72.js → cli-84r16hge.js} +2 -2
- package/build/{cli-41v0sn85.js → cli-agpxc0wg.js} +2 -2
- package/build/{cli-5jphz6xn.js → cli-cz7w37tp.js} +1 -1
- package/build/{cli-rhf1k0zh.js → cli-e0aas0ry.js} +15 -15
- package/build/{cli-1g6gdyjj.js → cli-hv0c73gs.js} +2 -2
- package/build/{cli-bzwpyr1m.js → cli-pc2x5vtd.js} +1 -1
- package/build/{cli-s0fcnxgf.js → cli-s8fqynqk.js} +1 -1
- package/build/{cli-tswhm25n.js → cli-w86nqdv7.js} +2 -2
- package/build/cli.js +22 -22
- package/build/{fixes-k4h24ncd.js → fixes-tarktfmy.js} +4 -4
- package/build/{index-8pcqdm1p.js → index-40xqne2p.js} +6 -6
- package/build/{index-rns9c7rz.js → index-ddhwh6yg.js} +2 -2
- package/build/{index-44f5cdm9.js → index-hp4jdaf0.js} +26 -14
- package/build/{index-t1m31zpy.js → index-x1fbjw69.js} +4 -4
- package/build/{issues-vhbf31wn.js → issues-2mhk20ty.js} +4 -4
- package/build/{logs-tar3rjwk.js → logs-1twgy2c1.js} +4 -4
- package/build/pentest-11d7z4cp.js +28 -0
- package/build/{pentests-erzr1zq6.js → pentests-e461x06s.js} +4 -4
- package/build/{projects-ttbgx6gx.js → projects-aytxhmv4.js} +4 -4
- package/build/{targetedPentest-d0jhsfj0.js → targetedPentest-s0zb7qb3.js} +8 -8
- package/build/{threatModel-4gvwdnsy.js → threatModel-vypd42hx.js} +8 -8
- package/build/{uninstall-6b851zmk.js → uninstall-f8fhgg6t.js} +1 -1
- package/package.json +1 -1
- package/build/agent-71dagekk.js +0 -18
- package/build/blackboxAgent-7rndc5dg.js +0 -18
- package/build/pentest-4f3ws06a.js +0 -28
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-agpxc0wg.js";
|
|
4
|
+
import"./cli-e0aas0ry.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-2hy3wepf.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-w86nqdv7.js";
|
|
9
|
+
import"./cli-03z6pswp.js";
|
|
10
|
+
import"./cli-0v8mcgd8.js";
|
|
11
|
+
import"./cli-7fe4p8a3.js";
|
|
12
|
+
import"./cli-pc2x5vtd.js";
|
|
13
|
+
import"./cli-32w8n523.js";
|
|
14
|
+
import"./cli-gpnb45ck.js";
|
|
15
|
+
import"./cli-8rxa073f.js";
|
|
16
|
+
export {
|
|
17
|
+
CodeAgent
|
|
18
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WhiteboxAttackSurfaceResultSchema
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-s8fqynqk.js";
|
|
4
4
|
import {
|
|
5
5
|
OffensiveSecurityAgent
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-e0aas0ry.js";
|
|
7
7
|
import"./cli-tp1tqn3k.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-2hy3wepf.js";
|
|
9
9
|
import"./cli-3y0dgy56.js";
|
|
10
10
|
import {
|
|
11
11
|
hasToolCall,
|
|
12
12
|
tool
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-w86nqdv7.js";
|
|
14
14
|
import"./cli-03z6pswp.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
15
|
+
import"./cli-0v8mcgd8.js";
|
|
16
|
+
import"./cli-7fe4p8a3.js";
|
|
17
|
+
import"./cli-pc2x5vtd.js";
|
|
18
|
+
import"./cli-32w8n523.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
20
|
import"./cli-8rxa073f.js";
|
|
21
21
|
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
pollWorkOSToken,
|
|
9
9
|
selectWorkspace,
|
|
10
10
|
startDeviceFlow
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-0v8mcgd8.js";
|
|
12
12
|
import {
|
|
13
13
|
config,
|
|
14
14
|
getPensarApiUrl,
|
|
15
15
|
getPensarConsoleUrl
|
|
16
|
-
} from "./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
16
|
+
} from "./cli-7fe4p8a3.js";
|
|
17
|
+
import"./cli-pc2x5vtd.js";
|
|
18
|
+
import"./cli-32w8n523.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./cli-8rxa073f.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-e0aas0ry.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-tp1tqn3k.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-2hy3wepf.js";
|
|
8
8
|
import"./cli-3y0dgy56.js";
|
|
9
9
|
import {
|
|
10
10
|
hasToolCall
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-w86nqdv7.js";
|
|
12
12
|
import"./cli-03z6pswp.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
13
|
+
import"./cli-0v8mcgd8.js";
|
|
14
|
+
import"./cli-7fe4p8a3.js";
|
|
15
|
+
import"./cli-pc2x5vtd.js";
|
|
16
|
+
import"./cli-32w8n523.js";
|
|
17
17
|
import"./cli-gpnb45ck.js";
|
|
18
18
|
import"./cli-8rxa073f.js";
|
|
19
19
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent
|
|
3
|
+
} from "./cli-5vearsn5.js";
|
|
4
|
+
import"./cli-e0aas0ry.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-2hy3wepf.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-w86nqdv7.js";
|
|
9
|
+
import"./cli-03z6pswp.js";
|
|
10
|
+
import"./cli-0v8mcgd8.js";
|
|
11
|
+
import"./cli-7fe4p8a3.js";
|
|
12
|
+
import"./cli-pc2x5vtd.js";
|
|
13
|
+
import"./cli-32w8n523.js";
|
|
14
|
+
import"./cli-gpnb45ck.js";
|
|
15
|
+
import"./cli-8rxa073f.js";
|
|
16
|
+
export {
|
|
17
|
+
BlackboxAttackSurfaceAgent
|
|
18
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
3
|
+
} from "./cli-37nmga9y.js";
|
|
4
|
+
import"./cli-84r16hge.js";
|
|
5
|
+
import"./cli-hv0c73gs.js";
|
|
6
|
+
import"./cli-5vearsn5.js";
|
|
7
7
|
import"./cli-fw5r7pfj.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-agpxc0wg.js";
|
|
9
|
+
import"./cli-s8fqynqk.js";
|
|
10
|
+
import"./cli-e0aas0ry.js";
|
|
11
11
|
import"./cli-tp1tqn3k.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-2hy3wepf.js";
|
|
13
13
|
import"./cli-3y0dgy56.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-w86nqdv7.js";
|
|
15
15
|
import"./cli-03z6pswp.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
16
|
+
import"./cli-0v8mcgd8.js";
|
|
17
|
+
import"./cli-7fe4p8a3.js";
|
|
18
|
+
import"./cli-pc2x5vtd.js";
|
|
19
|
+
import"./cli-32w8n523.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
@@ -3,7 +3,7 @@ import { spawnSync } from "child_process";
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@pensar/apex",
|
|
6
|
-
version: "1.2.0-canary.
|
|
6
|
+
version: "1.2.0-canary.d5adacbe",
|
|
7
7
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
8
8
|
module: "src/tui/index.tsx",
|
|
9
9
|
main: "build/cli.js",
|
|
@@ -14,33 +14,33 @@ import {
|
|
|
14
14
|
updateManifestEntryStatus,
|
|
15
15
|
writeAgentManifest,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-84r16hge.js";
|
|
18
18
|
import {
|
|
19
19
|
TargetedPentestAgent,
|
|
20
20
|
buildPentestSystemPrompt
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-hv0c73gs.js";
|
|
22
22
|
import {
|
|
23
23
|
BlackboxAttackSurfaceAgent
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-5vearsn5.js";
|
|
25
25
|
import {
|
|
26
26
|
createThreatModelPrompt
|
|
27
27
|
} from "./cli-fw5r7pfj.js";
|
|
28
28
|
import {
|
|
29
29
|
CodeAgent
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-agpxc0wg.js";
|
|
31
31
|
import {
|
|
32
32
|
EndpointSchema
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-s8fqynqk.js";
|
|
34
34
|
import {
|
|
35
35
|
FindingsRegistry,
|
|
36
36
|
OffensiveSecurityAgent,
|
|
37
37
|
PLAN_MODE_TOOL_NAMES
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-e0aas0ry.js";
|
|
39
39
|
import {
|
|
40
40
|
exports_external,
|
|
41
41
|
hasToolCall,
|
|
42
42
|
init_zod
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-w86nqdv7.js";
|
|
44
44
|
|
|
45
45
|
// src/core/workflows/pentest.ts
|
|
46
46
|
import { existsSync as existsSync3, readdirSync as readdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "fs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-e0aas0ry.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-tp1tqn3k.js";
|
|
7
7
|
import {
|
|
8
8
|
hasToolCall,
|
|
9
9
|
stepCountIs
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-w86nqdv7.js";
|
|
11
11
|
|
|
12
12
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
13
13
|
import { join } from "path";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
CweEntrySchema,
|
|
3
3
|
ValidatedCweEntrySchema,
|
|
4
4
|
hasCanonicalName
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-e0aas0ry.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_external,
|
|
8
8
|
init_zod
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-w86nqdv7.js";
|
|
10
10
|
|
|
11
11
|
// src/core/report/schemas.ts
|
|
12
12
|
init_zod();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-e0aas0ry.js";
|
|
4
4
|
import {
|
|
5
5
|
stepCountIs
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-w86nqdv7.js";
|
|
7
7
|
|
|
8
8
|
// src/core/agents/specialized/codeAgent/prompts.ts
|
|
9
9
|
var CODE_AGENT_SYSTEM_PROMPT = `You are an expert coding agent with direct filesystem access. You will be given a specific objective — focus exclusively on completing it.
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
update,
|
|
17
17
|
write,
|
|
18
18
|
writeRaw
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-2hy3wepf.js";
|
|
20
20
|
import {
|
|
21
21
|
parseTargetUrl
|
|
22
22
|
} from "./cli-3y0dgy56.js";
|
|
@@ -52,18 +52,18 @@ import {
|
|
|
52
52
|
union,
|
|
53
53
|
unknown,
|
|
54
54
|
zod_default
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-w86nqdv7.js";
|
|
56
56
|
import {
|
|
57
57
|
signGatewayRequest
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-0v8mcgd8.js";
|
|
59
59
|
import {
|
|
60
60
|
config,
|
|
61
61
|
ensureValidToken,
|
|
62
62
|
getPensarApiUrl
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-7fe4p8a3.js";
|
|
64
64
|
import {
|
|
65
65
|
getCurrentVersion
|
|
66
|
-
} from "./cli-
|
|
66
|
+
} from "./cli-32w8n523.js";
|
|
67
67
|
import {
|
|
68
68
|
__commonJS,
|
|
69
69
|
__require,
|
|
@@ -99953,7 +99953,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
99953
99953
|
return threatModelLimiter(async () => {
|
|
99954
99954
|
if (ctx.abortSignal?.aborted)
|
|
99955
99955
|
return null;
|
|
99956
|
-
const { CodeAgent } = await import("./agent-
|
|
99956
|
+
const { CodeAgent } = await import("./agent-cfsnws8f.js");
|
|
99957
99957
|
const subagentId = `threat-model-${sanitize(input.appName)}-${sanitize(input.routePath)}`;
|
|
99958
99958
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
99959
99959
|
subagentId,
|
|
@@ -100642,7 +100642,7 @@ When to use delegate_to_auth_subagent vs authenticate_session:
|
|
|
100642
100642
|
if (credentials) {
|
|
100643
100643
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
100644
100644
|
}
|
|
100645
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
100645
|
+
const { runAuthenticationAgent } = await import("./authentication-9yqyvqqp.js");
|
|
100646
100646
|
const localBus = new AgentEventBus;
|
|
100647
100647
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
100648
100648
|
const result = await runAuthenticationAgent({
|
|
@@ -101555,7 +101555,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
101555
101555
|
});
|
|
101556
101556
|
if (cwd) {
|
|
101557
101557
|
try {
|
|
101558
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./agent-
|
|
101558
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./agent-mzes7wwh.js");
|
|
101559
101559
|
const localBus = new AgentEventBus;
|
|
101560
101560
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
101561
101561
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -101604,7 +101604,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
101604
101604
|
}
|
|
101605
101605
|
}
|
|
101606
101606
|
try {
|
|
101607
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
101607
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-dgyt9rx5.js");
|
|
101608
101608
|
const localBus = new AgentEventBus;
|
|
101609
101609
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
101610
101610
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -101680,7 +101680,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
101680
101680
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
101681
101681
|
}),
|
|
101682
101682
|
execute: async ({ targets }) => {
|
|
101683
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-
|
|
101683
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-11d7z4cp.js");
|
|
101684
101684
|
if (!ctx.model) {
|
|
101685
101685
|
return {
|
|
101686
101686
|
success: false,
|
|
@@ -101808,7 +101808,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
101808
101808
|
});
|
|
101809
101809
|
}
|
|
101810
101810
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
101811
|
-
const { CodeAgent } = await import("./agent-
|
|
101811
|
+
const { CodeAgent } = await import("./agent-cfsnws8f.js");
|
|
101812
101812
|
const subagentId = `coding-agent-${agentIndex}`;
|
|
101813
101813
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
101814
101814
|
subagentId,
|
|
@@ -101869,7 +101869,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
101869
101869
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
101870
101870
|
}),
|
|
101871
101871
|
execute: async ({ target, cwd }) => {
|
|
101872
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
101872
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-11d7z4cp.js");
|
|
101873
101873
|
if (!ctx.model) {
|
|
101874
101874
|
return {
|
|
101875
101875
|
success: false,
|
|
@@ -106076,10 +106076,10 @@ function createResponseTool(responseSchema, onResult) {
|
|
|
106076
106076
|
return tool({
|
|
106077
106077
|
description: `Submit your final structured response. Call this ONCE when you have completed your task and assembled all results. This ends your run — make sure all data is included.`,
|
|
106078
106078
|
inputSchema: exports_external.object({
|
|
106079
|
-
|
|
106079
|
+
result: responseSchema
|
|
106080
106080
|
}),
|
|
106081
|
-
execute: async ({
|
|
106082
|
-
onResult(
|
|
106081
|
+
execute: async ({ result }) => {
|
|
106082
|
+
onResult(result);
|
|
106083
106083
|
return { success: true, message: "Response submitted." };
|
|
106084
106084
|
}
|
|
106085
106085
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent,
|
|
3
3
|
readPlan
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-e0aas0ry.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_external,
|
|
7
7
|
init_zod
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-w86nqdv7.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/pentest/agent.ts
|
|
11
11
|
import { existsSync, readdirSync, readFileSync } from "fs";
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
} from "./cli-03z6pswp.js";
|
|
5
5
|
import {
|
|
6
6
|
signGatewayRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-0v8mcgd8.js";
|
|
8
8
|
import {
|
|
9
9
|
config,
|
|
10
10
|
ensureValidToken,
|
|
11
11
|
getPensarGatewayUrl
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-7fe4p8a3.js";
|
|
13
13
|
import {
|
|
14
14
|
require_auth_errors,
|
|
15
15
|
require_token_error,
|
package/build/cli.js
CHANGED
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
import"./cli-3y0dgy56.js";
|
|
7
7
|
import {
|
|
8
8
|
init_toolset
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-w86nqdv7.js";
|
|
10
10
|
import {
|
|
11
11
|
init_models
|
|
12
12
|
} from "./cli-03z6pswp.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
13
|
+
import"./cli-0v8mcgd8.js";
|
|
14
|
+
import"./cli-7fe4p8a3.js";
|
|
15
|
+
import"./cli-pc2x5vtd.js";
|
|
16
16
|
import {
|
|
17
17
|
package_default
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-32w8n523.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
20
|
import {
|
|
21
21
|
__require,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
// package.json
|
|
25
25
|
var package_default2 = {
|
|
26
26
|
name: "@pensar/apex",
|
|
27
|
-
version: "1.2.0-canary.
|
|
27
|
+
version: "1.2.0-canary.d5adacbe",
|
|
28
28
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
29
29
|
module: "src/tui/index.tsx",
|
|
30
30
|
main: "build/cli.js",
|
|
@@ -541,9 +541,9 @@ Global options:
|
|
|
541
541
|
async function runPentest() {
|
|
542
542
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
543
543
|
config2();
|
|
544
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
545
|
-
const { sessions } = await import("./index-
|
|
546
|
-
const { config: appConfig } = await import("./index-
|
|
544
|
+
const { runPentestAgent } = await import("./blackboxPentest-qegq3ccf.js");
|
|
545
|
+
const { sessions } = await import("./index-40xqne2p.js");
|
|
546
|
+
const { config: appConfig } = await import("./index-ddhwh6yg.js");
|
|
547
547
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
548
548
|
const target = getArgRequired("--target");
|
|
549
549
|
const cwd = getArg("--cwd");
|
|
@@ -609,9 +609,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
609
609
|
async function runTargetedPentest() {
|
|
610
610
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
611
611
|
config2();
|
|
612
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
613
|
-
const { sessions } = await import("./index-
|
|
614
|
-
const { config: appConfig } = await import("./index-
|
|
612
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-s0zb7qb3.js");
|
|
613
|
+
const { sessions } = await import("./index-40xqne2p.js");
|
|
614
|
+
const { config: appConfig } = await import("./index-ddhwh6yg.js");
|
|
615
615
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
616
616
|
const target = getArgRequired("--target");
|
|
617
617
|
const objectives = getAllArgs("--objective");
|
|
@@ -661,8 +661,8 @@ POCs: ${pocsPath}`);
|
|
|
661
661
|
async function runThreatModel() {
|
|
662
662
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
663
663
|
config2();
|
|
664
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
665
|
-
const { config: appConfig } = await import("./index-
|
|
664
|
+
const { runThreatModelWorkflow } = await import("./threatModel-vypd42hx.js");
|
|
665
|
+
const { config: appConfig } = await import("./index-ddhwh6yg.js");
|
|
666
666
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
667
667
|
const path = await import("path");
|
|
668
668
|
const pensarConfig = await appConfig.get();
|
|
@@ -718,25 +718,25 @@ if (command === "version" || command === "--version" || command === "-v") {
|
|
|
718
718
|
await runTargetedPentest();
|
|
719
719
|
} else if (command === "login" || command === "auth") {
|
|
720
720
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
721
|
-
await import("./auth-
|
|
721
|
+
await import("./auth-ce0rt85r.js");
|
|
722
722
|
} else if (command === "uninstall") {
|
|
723
723
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
724
|
-
await import("./uninstall-
|
|
724
|
+
await import("./uninstall-f8fhgg6t.js");
|
|
725
725
|
} else if (command === "projects") {
|
|
726
726
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
727
|
-
await import("./projects-
|
|
727
|
+
await import("./projects-aytxhmv4.js");
|
|
728
728
|
} else if (command === "pentests") {
|
|
729
729
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
730
|
-
await import("./pentests-
|
|
730
|
+
await import("./pentests-e461x06s.js");
|
|
731
731
|
} else if (command === "issues") {
|
|
732
732
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
733
|
-
await import("./issues-
|
|
733
|
+
await import("./issues-2mhk20ty.js");
|
|
734
734
|
} else if (command === "fixes") {
|
|
735
735
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
736
|
-
await import("./fixes-
|
|
736
|
+
await import("./fixes-tarktfmy.js");
|
|
737
737
|
} else if (command === "logs") {
|
|
738
738
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
739
|
-
await import("./logs-
|
|
739
|
+
await import("./logs-1twgy2c1.js");
|
|
740
740
|
} else if (command === "threat-model") {
|
|
741
741
|
await runThreatModel();
|
|
742
742
|
} else if (command === "doctor") {
|
|
@@ -748,7 +748,7 @@ if (command === "version" || command === "--version" || command === "-v") {
|
|
|
748
748
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
749
749
|
process.exit(1);
|
|
750
750
|
}
|
|
751
|
-
await import("./index-
|
|
751
|
+
await import("./index-hp4jdaf0.js");
|
|
752
752
|
} else {
|
|
753
753
|
console.error(`Error: Unknown command '${command}'`);
|
|
754
754
|
console.error();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getFix,
|
|
4
4
|
listFixes
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
5
|
+
} from "./cli-1mkpsejg.js";
|
|
6
|
+
import"./cli-7fe4p8a3.js";
|
|
7
|
+
import"./cli-pc2x5vtd.js";
|
|
8
|
+
import"./cli-32w8n523.js";
|
|
9
9
|
import"./cli-8rxa073f.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/fixes.ts
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
update,
|
|
14
14
|
write,
|
|
15
15
|
writeRaw
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-2hy3wepf.js";
|
|
17
17
|
import {
|
|
18
18
|
ToolsetStateSchema,
|
|
19
19
|
exports_toolset,
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
init_zod,
|
|
22
22
|
toggleTool,
|
|
23
23
|
zod_default
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-w86nqdv7.js";
|
|
25
25
|
import"./cli-03z6pswp.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
26
|
+
import"./cli-0v8mcgd8.js";
|
|
27
|
+
import"./cli-7fe4p8a3.js";
|
|
28
|
+
import"./cli-pc2x5vtd.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentVersion
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-32w8n523.js";
|
|
32
32
|
import"./cli-gpnb45ck.js";
|
|
33
33
|
import {
|
|
34
34
|
__require,
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
buildThreatModelPrompt,
|
|
8
8
|
createSkillsRegistry,
|
|
9
9
|
runOffensiveSecurityAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-cz7w37tp.js";
|
|
11
11
|
import {
|
|
12
12
|
REPORT_FILENAME_MD,
|
|
13
13
|
convertModelMessagesToUI,
|
|
14
14
|
loadSubagents,
|
|
15
15
|
readExecutionMetrics,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-84r16hge.js";
|
|
18
18
|
import {
|
|
19
19
|
createThreatModelPrompt
|
|
20
20
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
planFilePath,
|
|
39
39
|
readPlan,
|
|
40
40
|
sessions
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-e0aas0ry.js";
|
|
42
42
|
import {
|
|
43
43
|
detectOSAndEnhancePrompt
|
|
44
44
|
} from "./cli-tp1tqn3k.js";
|
|
45
45
|
import {
|
|
46
46
|
read,
|
|
47
47
|
write
|
|
48
|
-
} from "./cli-
|
|
48
|
+
} from "./cli-2hy3wepf.js";
|
|
49
49
|
import {
|
|
50
50
|
getAutoPopulatedHosts,
|
|
51
51
|
getAutoPopulatedPorts,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
init_toolset,
|
|
58
58
|
modelSupportsThinking,
|
|
59
59
|
stepCountIs
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-w86nqdv7.js";
|
|
61
61
|
import {
|
|
62
62
|
AVAILABLE_MODELS,
|
|
63
63
|
init_models
|
|
@@ -72,18 +72,18 @@ import {
|
|
|
72
72
|
selectWorkspace,
|
|
73
73
|
startDeviceFlow,
|
|
74
74
|
validateGateway
|
|
75
|
-
} from "./cli-
|
|
75
|
+
} from "./cli-0v8mcgd8.js";
|
|
76
76
|
import {
|
|
77
77
|
config,
|
|
78
78
|
getPensarApiUrl,
|
|
79
79
|
getPensarConsoleUrl
|
|
80
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-7fe4p8a3.js";
|
|
81
81
|
import {
|
|
82
82
|
update
|
|
83
|
-
} from "./cli-
|
|
83
|
+
} from "./cli-pc2x5vtd.js";
|
|
84
84
|
import {
|
|
85
85
|
checkForUpdate
|
|
86
|
-
} from "./cli-
|
|
86
|
+
} from "./cli-32w8n523.js";
|
|
87
87
|
import"./cli-gpnb45ck.js";
|
|
88
88
|
import {
|
|
89
89
|
__commonJS,
|
|
@@ -52088,7 +52088,6 @@ function useSessionsList() {
|
|
|
52088
52088
|
const [loading, setLoading] = useState12(true);
|
|
52089
52089
|
const [searchTerm, setSearchTerm] = useState12("");
|
|
52090
52090
|
const loadSessions = useCallback9(async () => {
|
|
52091
|
-
setLoading(true);
|
|
52092
52091
|
try {
|
|
52093
52092
|
const enriched = [];
|
|
52094
52093
|
for await (const session of sessions.list()) {
|
|
@@ -52114,6 +52113,7 @@ function useSessionsList() {
|
|
|
52114
52113
|
loadSessions();
|
|
52115
52114
|
}, [loadSessions]);
|
|
52116
52115
|
const deleteSession = useCallback9(async (id) => {
|
|
52116
|
+
setAllSessions((prev) => prev.filter((s) => s.id !== id));
|
|
52117
52117
|
await sessions.remove({ sessionId: id });
|
|
52118
52118
|
await loadSessions();
|
|
52119
52119
|
}, [loadSessions]);
|
|
@@ -52179,6 +52179,7 @@ function SessionsDisplay({ onClose }) {
|
|
|
52179
52179
|
const [reportContent, setReportContent] = useState13(null);
|
|
52180
52180
|
const [reportSessionPath, setReportSessionPath] = useState13(null);
|
|
52181
52181
|
const route = useRoute();
|
|
52182
|
+
const dimensions = useDimensions();
|
|
52182
52183
|
const scroll = useRef7(null);
|
|
52183
52184
|
const {
|
|
52184
52185
|
groupedSessions,
|
|
@@ -52187,6 +52188,14 @@ function SessionsDisplay({ onClose }) {
|
|
|
52187
52188
|
setSearchTerm,
|
|
52188
52189
|
deleteSession: hookDeleteSession
|
|
52189
52190
|
} = useSessionsList();
|
|
52191
|
+
const availableListHeight = dimensions.height - 4 - 8;
|
|
52192
|
+
const initialOverflowRef = useRef7(null);
|
|
52193
|
+
if (!loading && initialOverflowRef.current === null) {
|
|
52194
|
+
const groupCount = groupedSessions.length;
|
|
52195
|
+
const estimatedRows = visualOrderSessions.length + groupCount * 3 - (groupCount > 0 ? 2 : 0);
|
|
52196
|
+
initialOverflowRef.current = estimatedRows > availableListHeight;
|
|
52197
|
+
}
|
|
52198
|
+
const listHeight = initialOverflowRef.current ? availableListHeight : undefined;
|
|
52190
52199
|
const viewReport = useCallback10(async (sessionId) => {
|
|
52191
52200
|
const session = await sessions.get(sessionId);
|
|
52192
52201
|
const content = readSessionReport(session.rootPath);
|
|
@@ -52302,8 +52311,6 @@ function SessionsDisplay({ onClose }) {
|
|
|
52302
52311
|
refocusPrompt();
|
|
52303
52312
|
onClose();
|
|
52304
52313
|
};
|
|
52305
|
-
if (loading)
|
|
52306
|
-
return null;
|
|
52307
52314
|
if (showReportViewer && reportContent && reportSessionPath) {
|
|
52308
52315
|
return /* @__PURE__ */ jsxDEV19(ReportViewerDialog, {
|
|
52309
52316
|
content: reportContent,
|
|
@@ -52341,7 +52348,10 @@ function SessionsDisplay({ onClose }) {
|
|
|
52341
52348
|
focusedTextColor: colors2.text
|
|
52342
52349
|
}, undefined, false, undefined, this)
|
|
52343
52350
|
}, undefined, false, undefined, this),
|
|
52344
|
-
|
|
52351
|
+
loading ? /* @__PURE__ */ jsxDEV19("text", {
|
|
52352
|
+
fg: colors2.textMuted,
|
|
52353
|
+
children: "Loading sessions..."
|
|
52354
|
+
}, undefined, false, undefined, this) : visualOrderSessions.length === 0 ? /* @__PURE__ */ jsxDEV19("text", {
|
|
52345
52355
|
fg: colors2.textMuted,
|
|
52346
52356
|
children: "No sessions found"
|
|
52347
52357
|
}, undefined, false, undefined, this) : /* @__PURE__ */ jsxDEV19("box", {
|
|
@@ -52351,6 +52361,7 @@ function SessionsDisplay({ onClose }) {
|
|
|
52351
52361
|
flexShrink: 1,
|
|
52352
52362
|
overflow: "hidden",
|
|
52353
52363
|
marginTop: 1,
|
|
52364
|
+
height: listHeight,
|
|
52354
52365
|
children: /* @__PURE__ */ jsxDEV19("scrollbox", {
|
|
52355
52366
|
ref: scroll,
|
|
52356
52367
|
scrollbarOptions: { visible: true },
|
|
@@ -63648,6 +63659,7 @@ var SubagentHubCard = memo5(function SubagentHubCard2({
|
|
|
63648
63659
|
flexDirection: "row",
|
|
63649
63660
|
children: [
|
|
63650
63661
|
/* @__PURE__ */ jsxDEV56("text", {
|
|
63662
|
+
fg: focused ? colors2.primary : colors2.text,
|
|
63651
63663
|
content: prefix
|
|
63652
63664
|
}, undefined, false, undefined, this),
|
|
63653
63665
|
statusIcon,
|
|
@@ -68647,7 +68659,7 @@ function AppContent({
|
|
|
68647
68659
|
toast(`Update available: v${currentVersion} → v${latestVersion}. Run: pensar upgrade`, "warn", 8000);
|
|
68648
68660
|
});
|
|
68649
68661
|
const checkAuthToken = async () => {
|
|
68650
|
-
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-
|
|
68662
|
+
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-x1fbjw69.js");
|
|
68651
68663
|
if (isConnected2(config2.data) && config2.data.accessToken && isTokenExpired(config2.data.accessToken, 60) && !config2.data.refreshToken && !config2.data.pensarAPIKey) {
|
|
68652
68664
|
toast("Your Pensar Console session has expired. Run /login to refresh.", "warn", 8000);
|
|
68653
68665
|
}
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
signGatewayRequest,
|
|
10
10
|
startDeviceFlow,
|
|
11
11
|
validateGateway
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-0v8mcgd8.js";
|
|
13
13
|
import {
|
|
14
14
|
ensureValidToken,
|
|
15
15
|
fetchWorkOSClientId,
|
|
16
16
|
isTokenExpired,
|
|
17
17
|
refreshAccessToken
|
|
18
|
-
} from "./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
} from "./cli-7fe4p8a3.js";
|
|
19
|
+
import"./cli-pc2x5vtd.js";
|
|
20
|
+
import"./cli-32w8n523.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
export {
|
|
23
23
|
validateGateway,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
getIssue,
|
|
4
4
|
listIssues,
|
|
5
5
|
updateIssue
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
6
|
+
} from "./cli-1mkpsejg.js";
|
|
7
|
+
import"./cli-7fe4p8a3.js";
|
|
8
|
+
import"./cli-pc2x5vtd.js";
|
|
9
|
+
import"./cli-32w8n523.js";
|
|
10
10
|
import"./cli-8rxa073f.js";
|
|
11
11
|
|
|
12
12
|
// src/cli/issues.ts
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
listAgentLogs,
|
|
4
4
|
searchAgentLogs
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
5
|
+
} from "./cli-1mkpsejg.js";
|
|
6
|
+
import"./cli-7fe4p8a3.js";
|
|
7
|
+
import"./cli-pc2x5vtd.js";
|
|
8
|
+
import"./cli-32w8n523.js";
|
|
9
9
|
import"./cli-8rxa073f.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/logs.ts
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_CONCURRENCY,
|
|
3
|
+
runPentestSwarm,
|
|
4
|
+
runPentestWorkflow
|
|
5
|
+
} from "./cli-37nmga9y.js";
|
|
6
|
+
import"./cli-84r16hge.js";
|
|
7
|
+
import"./cli-hv0c73gs.js";
|
|
8
|
+
import"./cli-5vearsn5.js";
|
|
9
|
+
import"./cli-fw5r7pfj.js";
|
|
10
|
+
import"./cli-agpxc0wg.js";
|
|
11
|
+
import"./cli-s8fqynqk.js";
|
|
12
|
+
import"./cli-e0aas0ry.js";
|
|
13
|
+
import"./cli-tp1tqn3k.js";
|
|
14
|
+
import"./cli-2hy3wepf.js";
|
|
15
|
+
import"./cli-3y0dgy56.js";
|
|
16
|
+
import"./cli-w86nqdv7.js";
|
|
17
|
+
import"./cli-03z6pswp.js";
|
|
18
|
+
import"./cli-0v8mcgd8.js";
|
|
19
|
+
import"./cli-7fe4p8a3.js";
|
|
20
|
+
import"./cli-pc2x5vtd.js";
|
|
21
|
+
import"./cli-32w8n523.js";
|
|
22
|
+
import"./cli-gpnb45ck.js";
|
|
23
|
+
import"./cli-8rxa073f.js";
|
|
24
|
+
export {
|
|
25
|
+
runPentestWorkflow,
|
|
26
|
+
runPentestSwarm,
|
|
27
|
+
DEFAULT_CONCURRENCY
|
|
28
|
+
};
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
dispatchPentest,
|
|
4
4
|
getScan,
|
|
5
5
|
listScans
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
6
|
+
} from "./cli-1mkpsejg.js";
|
|
7
|
+
import"./cli-7fe4p8a3.js";
|
|
8
|
+
import"./cli-pc2x5vtd.js";
|
|
9
|
+
import"./cli-32w8n523.js";
|
|
10
10
|
import"./cli-8rxa073f.js";
|
|
11
11
|
|
|
12
12
|
// src/cli/pentests.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
import {
|
|
3
3
|
listProjects
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
4
|
+
} from "./cli-1mkpsejg.js";
|
|
5
|
+
import"./cli-7fe4p8a3.js";
|
|
6
|
+
import"./cli-pc2x5vtd.js";
|
|
7
|
+
import"./cli-32w8n523.js";
|
|
8
8
|
import"./cli-8rxa073f.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/projects.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-hv0c73gs.js";
|
|
4
|
+
import"./cli-e0aas0ry.js";
|
|
5
5
|
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-
|
|
6
|
+
import"./cli-2hy3wepf.js";
|
|
7
7
|
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-w86nqdv7.js";
|
|
9
9
|
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
10
|
+
import"./cli-0v8mcgd8.js";
|
|
11
|
+
import"./cli-7fe4p8a3.js";
|
|
12
|
+
import"./cli-pc2x5vtd.js";
|
|
13
|
+
import"./cli-32w8n523.js";
|
|
14
14
|
import"./cli-gpnb45ck.js";
|
|
15
15
|
import"./cli-8rxa073f.js";
|
|
16
16
|
|
|
@@ -2,25 +2,25 @@ import {
|
|
|
2
2
|
buildThreatModelPrompt,
|
|
3
3
|
createSkillsRegistry,
|
|
4
4
|
runOffensiveSecurityAgent
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-cz7w37tp.js";
|
|
6
6
|
import {
|
|
7
7
|
ALL_TOOL_NAMES,
|
|
8
8
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
9
9
|
SKILL_TOOL_NAMES,
|
|
10
10
|
buildBaseSystemPrompt,
|
|
11
11
|
sessions
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-e0aas0ry.js";
|
|
13
13
|
import"./cli-tp1tqn3k.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-2hy3wepf.js";
|
|
15
15
|
import"./cli-3y0dgy56.js";
|
|
16
16
|
import {
|
|
17
17
|
stepCountIs
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-w86nqdv7.js";
|
|
19
19
|
import"./cli-03z6pswp.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
20
|
+
import"./cli-0v8mcgd8.js";
|
|
21
|
+
import"./cli-7fe4p8a3.js";
|
|
22
|
+
import"./cli-pc2x5vtd.js";
|
|
23
|
+
import"./cli-32w8n523.js";
|
|
24
24
|
import"./cli-gpnb45ck.js";
|
|
25
25
|
import"./cli-8rxa073f.js";
|
|
26
26
|
|
package/package.json
CHANGED
package/build/agent-71dagekk.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeAgent
|
|
3
|
-
} from "./cli-41v0sn85.js";
|
|
4
|
-
import"./cli-rhf1k0zh.js";
|
|
5
|
-
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-cb542jd4.js";
|
|
7
|
-
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-tswhm25n.js";
|
|
9
|
-
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-gfaerf1q.js";
|
|
11
|
-
import"./cli-mwc33wq9.js";
|
|
12
|
-
import"./cli-bzwpyr1m.js";
|
|
13
|
-
import"./cli-t5mef3sn.js";
|
|
14
|
-
import"./cli-gpnb45ck.js";
|
|
15
|
-
import"./cli-8rxa073f.js";
|
|
16
|
-
export {
|
|
17
|
-
CodeAgent
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-yez34d7b.js";
|
|
4
|
-
import"./cli-rhf1k0zh.js";
|
|
5
|
-
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-cb542jd4.js";
|
|
7
|
-
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-tswhm25n.js";
|
|
9
|
-
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-gfaerf1q.js";
|
|
11
|
-
import"./cli-mwc33wq9.js";
|
|
12
|
-
import"./cli-bzwpyr1m.js";
|
|
13
|
-
import"./cli-t5mef3sn.js";
|
|
14
|
-
import"./cli-gpnb45ck.js";
|
|
15
|
-
import"./cli-8rxa073f.js";
|
|
16
|
-
export {
|
|
17
|
-
BlackboxAttackSurfaceAgent
|
|
18
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEFAULT_CONCURRENCY,
|
|
3
|
-
runPentestSwarm,
|
|
4
|
-
runPentestWorkflow
|
|
5
|
-
} from "./cli-d0g93ydj.js";
|
|
6
|
-
import"./cli-gsdenv72.js";
|
|
7
|
-
import"./cli-1g6gdyjj.js";
|
|
8
|
-
import"./cli-yez34d7b.js";
|
|
9
|
-
import"./cli-fw5r7pfj.js";
|
|
10
|
-
import"./cli-41v0sn85.js";
|
|
11
|
-
import"./cli-s0fcnxgf.js";
|
|
12
|
-
import"./cli-rhf1k0zh.js";
|
|
13
|
-
import"./cli-tp1tqn3k.js";
|
|
14
|
-
import"./cli-cb542jd4.js";
|
|
15
|
-
import"./cli-3y0dgy56.js";
|
|
16
|
-
import"./cli-tswhm25n.js";
|
|
17
|
-
import"./cli-03z6pswp.js";
|
|
18
|
-
import"./cli-gfaerf1q.js";
|
|
19
|
-
import"./cli-mwc33wq9.js";
|
|
20
|
-
import"./cli-bzwpyr1m.js";
|
|
21
|
-
import"./cli-t5mef3sn.js";
|
|
22
|
-
import"./cli-gpnb45ck.js";
|
|
23
|
-
import"./cli-8rxa073f.js";
|
|
24
|
-
export {
|
|
25
|
-
runPentestWorkflow,
|
|
26
|
-
runPentestSwarm,
|
|
27
|
-
DEFAULT_CONCURRENCY
|
|
28
|
-
};
|