@pensar/apex 1.6.0-canary.75793e2c → 1.6.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-6xwvnvbd.js → agent-nnj9t74r.js} +7 -7
- package/build/agent-xyps79pq.js +19 -0
- package/build/{auth-djs3h4zh.js → auth-hhzeb7wq.js} +4 -4
- package/build/{authentication-bj89fgf2.js → authentication-696jn3en.js} +7 -7
- package/build/{blackboxAgent-2z5mby4y.js → blackboxAgent-nxvgqsw3.js} +8 -8
- package/build/{blackboxPentest-7qef7tpb.js → blackboxPentest-x1eynyy6.js} +12 -12
- package/build/{cli-vjzgzbgb.js → cli-2aj6efy7.js} +1 -1
- package/build/{cli-8r61bnf2.js → cli-2gz62eh7.js} +2 -2
- package/build/{cli-953xbxsg.js → cli-3462esbc.js} +1 -1
- package/build/{cli-pr5cfct7.js → cli-4bvafx3k.js} +1 -1
- package/build/{cli-3kx02vjp.js → cli-6w784800.js} +2 -2
- package/build/{cli-ac60eqhd.js → cli-e06s4dbt.js} +14 -60
- package/build/{cli-z5a6069g.js → cli-fhm4gfky.js} +1 -1
- package/build/{cli-r1etggh4.js → cli-j54wb0q5.js} +2 -3
- package/build/{cli-vy2nfvj1.js → cli-m45bmsc5.js} +1 -1
- package/build/{cli-zgggnwry.js → cli-m69x66eh.js} +1 -1
- package/build/{cli-28azhrka.js → cli-nhqvhgdk.js} +6 -6
- package/build/{cli-zzaah44r.js → cli-ww2x78tc.js} +1 -1
- package/build/{cli-te5p85w7.js → cli-x1g2s9n9.js} +2 -2
- package/build/{cli-femvjhv5.js → cli-ys0ahwpb.js} +1 -1
- package/build/cli.js +27 -27
- package/build/{fixes-s5dzvhzg.js → fixes-d38fdj5s.js} +4 -4
- package/build/{index-y0y1p784.js → index-0je5jws9.js} +4 -4
- package/build/{index-1rta5jw0.js → index-g60tmaw4.js} +6 -6
- package/build/{index-9s8ke47b.js → index-hcxak3dc.js} +10 -10
- package/build/{index-dgg4m84h.js → index-rm3jf64j.js} +2 -2
- package/build/{index-9cac8cja.js → index-wr87h0sz.js} +7 -7
- package/build/{issues-yqt8m9s1.js → issues-mrcf758f.js} +4 -4
- package/build/{logs-j12ccp2q.js → logs-pece65p3.js} +4 -4
- package/build/{offesecAgent-d5kx4hma.js → offesecAgent-e8t65rte.js} +7 -7
- package/build/{pentest-e8a7tczb.js → pentest-gtn28jcf.js} +12 -12
- package/build/{pentests-jyyy32rc.js → pentests-3zp7z952.js} +4 -4
- package/build/{projects-jhcqdwpt.js → projects-w5yxp27m.js} +4 -4
- package/build/{targetedPentest-vawsfkmb.js → targetedPentest-ydr77zs4.js} +8 -8
- package/build/{threatModel-ax1h25bk.js → threatModel-vkn59yef.js} +8 -8
- package/build/{uninstall-x9490712.js → uninstall-b3kzz704.js} +1 -1
- package/package.json +1 -1
- package/build/agent-78akh567.js +0 -19
|
@@ -3,21 +3,21 @@ import {
|
|
|
3
3
|
} from "./cli-0fy9j5dw.js";
|
|
4
4
|
import {
|
|
5
5
|
OffensiveSecurityAgent
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-e06s4dbt.js";
|
|
7
7
|
import"./cli-tp1tqn3k.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-fhm4gfky.js";
|
|
9
9
|
import"./cli-3y0dgy56.js";
|
|
10
10
|
import {
|
|
11
11
|
hasToolCall
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-2gz62eh7.js";
|
|
13
13
|
import {
|
|
14
14
|
tool
|
|
15
15
|
} from "./cli-0ghkg3w6.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
16
|
+
import"./cli-3462esbc.js";
|
|
17
|
+
import"./cli-m45bmsc5.js";
|
|
18
18
|
import"./cli-gpnb45ck.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-j54wb0q5.js";
|
|
20
|
+
import"./cli-4bvafx3k.js";
|
|
21
21
|
import"./cli-03z6pswp.js";
|
|
22
22
|
import"./cli-8rxa073f.js";
|
|
23
23
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-6w784800.js";
|
|
4
|
+
import"./cli-e06s4dbt.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-fhm4gfky.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-2gz62eh7.js";
|
|
9
|
+
import"./cli-0ghkg3w6.js";
|
|
10
|
+
import"./cli-3462esbc.js";
|
|
11
|
+
import"./cli-m45bmsc5.js";
|
|
12
|
+
import"./cli-gpnb45ck.js";
|
|
13
|
+
import"./cli-j54wb0q5.js";
|
|
14
|
+
import"./cli-4bvafx3k.js";
|
|
15
|
+
import"./cli-03z6pswp.js";
|
|
16
|
+
import"./cli-8rxa073f.js";
|
|
17
|
+
export {
|
|
18
|
+
CodeAgent
|
|
19
|
+
};
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
pollWorkOSToken,
|
|
9
9
|
selectWorkspace,
|
|
10
10
|
startDeviceFlow
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-3462esbc.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-m45bmsc5.js";
|
|
17
|
+
import"./cli-j54wb0q5.js";
|
|
18
|
+
import"./cli-4bvafx3k.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./cli-8rxa073f.js";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-e06s4dbt.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-tp1tqn3k.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-fhm4gfky.js";
|
|
8
8
|
import"./cli-3y0dgy56.js";
|
|
9
9
|
import {
|
|
10
10
|
hasToolCall
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-2gz62eh7.js";
|
|
12
12
|
import"./cli-0ghkg3w6.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
import"./cli-3462esbc.js";
|
|
14
|
+
import"./cli-m45bmsc5.js";
|
|
15
15
|
import"./cli-gpnb45ck.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
16
|
+
import"./cli-j54wb0q5.js";
|
|
17
|
+
import"./cli-4bvafx3k.js";
|
|
18
18
|
import"./cli-03z6pswp.js";
|
|
19
19
|
import"./cli-8rxa073f.js";
|
|
20
20
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-x1g2s9n9.js";
|
|
4
|
+
import"./cli-e06s4dbt.js";
|
|
5
5
|
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-
|
|
6
|
+
import"./cli-fhm4gfky.js";
|
|
7
7
|
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-2gz62eh7.js";
|
|
9
9
|
import"./cli-0ghkg3w6.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
10
|
+
import"./cli-3462esbc.js";
|
|
11
|
+
import"./cli-m45bmsc5.js";
|
|
12
12
|
import"./cli-gpnb45ck.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
import"./cli-j54wb0q5.js";
|
|
14
|
+
import"./cli-4bvafx3k.js";
|
|
15
15
|
import"./cli-03z6pswp.js";
|
|
16
16
|
import"./cli-8rxa073f.js";
|
|
17
17
|
export {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runPentestWorkflow
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-nhqvhgdk.js";
|
|
4
|
+
import"./cli-ww2x78tc.js";
|
|
5
|
+
import"./cli-m69x66eh.js";
|
|
6
6
|
import"./cli-0fy9j5dw.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-x1g2s9n9.js";
|
|
8
8
|
import"./cli-fw5r7pfj.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
9
|
+
import"./cli-6w784800.js";
|
|
10
|
+
import"./cli-e06s4dbt.js";
|
|
11
11
|
import"./cli-tp1tqn3k.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-fhm4gfky.js";
|
|
13
13
|
import"./cli-3y0dgy56.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-2gz62eh7.js";
|
|
15
15
|
import"./cli-0ghkg3w6.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
16
|
+
import"./cli-3462esbc.js";
|
|
17
|
+
import"./cli-m45bmsc5.js";
|
|
18
18
|
import"./cli-gpnb45ck.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-j54wb0q5.js";
|
|
20
|
+
import"./cli-4bvafx3k.js";
|
|
21
21
|
import"./cli-03z6pswp.js";
|
|
22
22
|
import"./cli-8rxa073f.js";
|
|
23
23
|
|
|
@@ -71,12 +71,12 @@ import {
|
|
|
71
71
|
} from "./cli-0ghkg3w6.js";
|
|
72
72
|
import {
|
|
73
73
|
signGatewayRequest
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-3462esbc.js";
|
|
75
75
|
import {
|
|
76
76
|
config,
|
|
77
77
|
ensureValidToken,
|
|
78
78
|
getPensarGatewayUrl
|
|
79
|
-
} from "./cli-
|
|
79
|
+
} from "./cli-m45bmsc5.js";
|
|
80
80
|
import {
|
|
81
81
|
getModelInfo,
|
|
82
82
|
init_models
|
|
@@ -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.6.0
|
|
6
|
+
version: "1.6.0",
|
|
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",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-e06s4dbt.js";
|
|
4
4
|
import {
|
|
5
5
|
stepCountIs
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-2gz62eh7.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-fhm4gfky.js";
|
|
20
20
|
import {
|
|
21
21
|
parseTargetUrl
|
|
22
22
|
} from "./cli-3y0dgy56.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
require_tslib,
|
|
30
30
|
streamResponse,
|
|
31
31
|
toggleTool
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-2gz62eh7.js";
|
|
33
33
|
import {
|
|
34
34
|
_enum,
|
|
35
35
|
_null,
|
|
@@ -57,15 +57,15 @@ import {
|
|
|
57
57
|
} from "./cli-0ghkg3w6.js";
|
|
58
58
|
import {
|
|
59
59
|
signGatewayRequest
|
|
60
|
-
} from "./cli-
|
|
60
|
+
} from "./cli-3462esbc.js";
|
|
61
61
|
import {
|
|
62
62
|
config,
|
|
63
63
|
ensureValidToken,
|
|
64
64
|
getPensarApiUrl
|
|
65
|
-
} from "./cli-
|
|
65
|
+
} from "./cli-m45bmsc5.js";
|
|
66
66
|
import {
|
|
67
67
|
getCurrentVersion
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-4bvafx3k.js";
|
|
69
69
|
import {
|
|
70
70
|
__commonJS,
|
|
71
71
|
__require,
|
|
@@ -119360,7 +119360,7 @@ async function generateThreatModelForEndpoint(ctx, input) {
|
|
|
119360
119360
|
return threatModelLimiter(async () => {
|
|
119361
119361
|
if (ctx.abortSignal?.aborted)
|
|
119362
119362
|
return null;
|
|
119363
|
-
const { CodeAgent } = await import("./agent-
|
|
119363
|
+
const { CodeAgent } = await import("./agent-xyps79pq.js");
|
|
119364
119364
|
const subagentId = `threat-model-${sanitize(input.appName)}-${sanitize(input.routePath)}`;
|
|
119365
119365
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
119366
119366
|
subagentId,
|
|
@@ -120049,7 +120049,7 @@ When to use delegate_to_auth_subagent vs authenticate_session:
|
|
|
120049
120049
|
if (credentials) {
|
|
120050
120050
|
ctx.session.credentialManager.addFromAuthCredentials(credentials);
|
|
120051
120051
|
}
|
|
120052
|
-
const { runAuthenticationAgent } = await import("./authentication-
|
|
120052
|
+
const { runAuthenticationAgent } = await import("./authentication-696jn3en.js");
|
|
120053
120053
|
const localBus = new AgentEventBus;
|
|
120054
120054
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
120055
120055
|
const result = await runAuthenticationAgent({
|
|
@@ -120962,7 +120962,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
120962
120962
|
});
|
|
120963
120963
|
if (cwd) {
|
|
120964
120964
|
try {
|
|
120965
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./agent-
|
|
120965
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./agent-nnj9t74r.js");
|
|
120966
120966
|
const localBus = new AgentEventBus;
|
|
120967
120967
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
120968
120968
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
@@ -121011,7 +121011,7 @@ should be passed directly to spawn_pentest_swarm for deep testing.`,
|
|
|
121011
121011
|
}
|
|
121012
121012
|
}
|
|
121013
121013
|
try {
|
|
121014
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
121014
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-nxvgqsw3.js");
|
|
121015
121015
|
const localBus = new AgentEventBus;
|
|
121016
121016
|
AgentEventBus.attachChild(localBus, ctx.eventBus, subagentId);
|
|
121017
121017
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
@@ -121087,7 +121087,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
121087
121087
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
121088
121088
|
}),
|
|
121089
121089
|
execute: async ({ targets }) => {
|
|
121090
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-
|
|
121090
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-gtn28jcf.js");
|
|
121091
121091
|
if (!ctx.model) {
|
|
121092
121092
|
return {
|
|
121093
121093
|
success: false,
|
|
@@ -121215,7 +121215,7 @@ Returns an array of results with the text output from each agent.`,
|
|
|
121215
121215
|
});
|
|
121216
121216
|
}
|
|
121217
121217
|
async function runSingleCodingAgent(ctx, codebasePath, objective, agentIndex, name) {
|
|
121218
|
-
const { CodeAgent } = await import("./agent-
|
|
121218
|
+
const { CodeAgent } = await import("./agent-xyps79pq.js");
|
|
121219
121219
|
const subagentId = `coding-agent-${agentIndex}`;
|
|
121220
121220
|
ctx.eventBus?.emit("subagent-spawn", {
|
|
121221
121221
|
subagentId,
|
|
@@ -121276,7 +121276,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
121276
121276
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing")
|
|
121277
121277
|
}),
|
|
121278
121278
|
execute: async ({ target, cwd }) => {
|
|
121279
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
121279
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-gtn28jcf.js");
|
|
121280
121280
|
if (!ctx.model) {
|
|
121281
121281
|
return {
|
|
121282
121282
|
success: false,
|
|
@@ -124811,49 +124811,6 @@ var webSearchInputSchema = exports_external.object({
|
|
|
124811
124811
|
query: exports_external.string().describe("The search query to look up. Be specific and include relevant keywords for better results."),
|
|
124812
124812
|
toolCallDescription: exports_external.string().describe("A concise, human-readable description of what this tool call is doing (e.g., 'Searching for CVE-2024-1234 details')")
|
|
124813
124813
|
});
|
|
124814
|
-
var BRAVE_SEARCH_URL = "https://api.search.brave.com/res/v1/web/search";
|
|
124815
|
-
async function braveSearch(query, apiKey) {
|
|
124816
|
-
const url = new URL(BRAVE_SEARCH_URL);
|
|
124817
|
-
url.searchParams.set("q", query);
|
|
124818
|
-
url.searchParams.set("count", "10");
|
|
124819
|
-
const response = await fetch(url.toString(), {
|
|
124820
|
-
method: "GET",
|
|
124821
|
-
headers: {
|
|
124822
|
-
Accept: "application/json",
|
|
124823
|
-
"Accept-Encoding": "gzip",
|
|
124824
|
-
"X-Subscription-Token": apiKey
|
|
124825
|
-
}
|
|
124826
|
-
});
|
|
124827
|
-
if (!response.ok) {
|
|
124828
|
-
if (response.status === 401 || response.status === 403) {
|
|
124829
|
-
return {
|
|
124830
|
-
success: false,
|
|
124831
|
-
results: [],
|
|
124832
|
-
error: "Brave API authentication failed. Check that your brave_api_key is valid."
|
|
124833
|
-
};
|
|
124834
|
-
}
|
|
124835
|
-
if (response.status === 429) {
|
|
124836
|
-
return {
|
|
124837
|
-
success: false,
|
|
124838
|
-
results: [],
|
|
124839
|
-
error: "Brave API rate limit exceeded. Please wait a moment before searching again."
|
|
124840
|
-
};
|
|
124841
|
-
}
|
|
124842
|
-
const errorText = await response.text().catch(() => "Unknown error");
|
|
124843
|
-
return {
|
|
124844
|
-
success: false,
|
|
124845
|
-
results: [],
|
|
124846
|
-
error: `Brave search failed: ${response.status} ${response.statusText}. ${errorText}`
|
|
124847
|
-
};
|
|
124848
|
-
}
|
|
124849
|
-
const data = await response.json();
|
|
124850
|
-
const results = data.web?.results?.map((r) => ({
|
|
124851
|
-
title: r.title ?? "",
|
|
124852
|
-
url: r.url ?? "",
|
|
124853
|
-
snippet: r.description ?? ""
|
|
124854
|
-
})) ?? [];
|
|
124855
|
-
return { success: true, results };
|
|
124856
|
-
}
|
|
124857
124814
|
function webSearch(_ctx) {
|
|
124858
124815
|
return tool({
|
|
124859
124816
|
description: `Search the web for real-time information about any topic. Returns summarized information from search results.
|
|
@@ -124865,7 +124822,7 @@ USAGE GUIDANCE:
|
|
|
124865
124822
|
- Find documentation for tools, APIs, and security testing techniques
|
|
124866
124823
|
- Look up default credentials, common misconfigurations, and hardening guides
|
|
124867
124824
|
|
|
124868
|
-
IMPORTANT: This tool requires
|
|
124825
|
+
IMPORTANT: This tool requires a Pensar account. If you're not signed in, you'll receive an error message with instructions to sign in.
|
|
124869
124826
|
|
|
124870
124827
|
COMMON SEARCH PATTERNS:
|
|
124871
124828
|
- "CVE-2024-XXXX exploit" — Find details about specific CVEs
|
|
@@ -124877,9 +124834,6 @@ COMMON SEARCH PATTERNS:
|
|
|
124877
124834
|
execute: async ({ query }) => {
|
|
124878
124835
|
try {
|
|
124879
124836
|
const cfg = await config.get();
|
|
124880
|
-
if (cfg.braveAPIKey) {
|
|
124881
|
-
return braveSearch(query, cfg.braveAPIKey);
|
|
124882
|
-
}
|
|
124883
124837
|
const apiUrl = getPensarApiUrl();
|
|
124884
124838
|
const body = JSON.stringify({ query });
|
|
124885
124839
|
if (cfg.pensarAPIKey && !cfg.accessToken) {
|
|
@@ -124902,7 +124856,7 @@ COMMON SEARCH PATTERNS:
|
|
|
124902
124856
|
return {
|
|
124903
124857
|
success: false,
|
|
124904
124858
|
results: [],
|
|
124905
|
-
error: "Web search requires a Pensar account
|
|
124859
|
+
error: "Web search requires a Pensar account. Please sign in to your Pensar account to use this feature. You can sign in via the TUI settings or by running 'pensar login'."
|
|
124906
124860
|
};
|
|
124907
124861
|
}
|
|
124908
124862
|
if (!cfg.workspaceId) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCurrentVersion
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-4bvafx3k.js";
|
|
4
4
|
|
|
5
5
|
// src/core/config/config.ts
|
|
6
6
|
import os from "os";
|
|
@@ -38,8 +38,7 @@ function applyEnvFallbacks(parsedConfig) {
|
|
|
38
38
|
pensarAPIKey: parsedConfig.pensarAPIKey ?? process.env.PENSAR_API_KEY,
|
|
39
39
|
daytonaAPIKey: parsedConfig.daytonaAPIKey ?? process.env.DAYTONA_API_KEY,
|
|
40
40
|
daytonaOrgId: parsedConfig.daytonaOrgId ?? process.env.DAYTONA_ORG_ID,
|
|
41
|
-
runloopAPIKey: parsedConfig.runloopAPIKey ?? process.env.RUNLOOP_API_KEY
|
|
42
|
-
braveAPIKey: parsedConfig.braveAPIKey ?? process.env.BRAVE_API_KEY
|
|
41
|
+
runloopAPIKey: parsedConfig.runloopAPIKey ?? process.env.RUNLOOP_API_KEY
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
async function get() {
|
|
@@ -14,31 +14,31 @@ import {
|
|
|
14
14
|
updateManifestEntryStatus,
|
|
15
15
|
writeAgentManifest,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-ww2x78tc.js";
|
|
18
18
|
import {
|
|
19
19
|
TargetedPentestAgent,
|
|
20
20
|
buildPentestSystemPrompt
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-m69x66eh.js";
|
|
22
22
|
import {
|
|
23
23
|
EndpointSchema
|
|
24
24
|
} from "./cli-0fy9j5dw.js";
|
|
25
25
|
import {
|
|
26
26
|
BlackboxAttackSurfaceAgent
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-x1g2s9n9.js";
|
|
28
28
|
import {
|
|
29
29
|
createThreatModelPrompt
|
|
30
30
|
} from "./cli-fw5r7pfj.js";
|
|
31
31
|
import {
|
|
32
32
|
CodeAgent
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-6w784800.js";
|
|
34
34
|
import {
|
|
35
35
|
FindingsRegistry,
|
|
36
36
|
OffensiveSecurityAgent,
|
|
37
37
|
PLAN_MODE_TOOL_NAMES
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-e06s4dbt.js";
|
|
39
39
|
import {
|
|
40
40
|
hasToolCall
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-2gz62eh7.js";
|
|
42
42
|
import {
|
|
43
43
|
exports_external1 as exports_external,
|
|
44
44
|
init_zod
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-e06s4dbt.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-2gz62eh7.js";
|
|
11
11
|
|
|
12
12
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
13
13
|
import { join } from "path";
|
package/build/cli.js
CHANGED
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
import"./cli-3y0dgy56.js";
|
|
7
7
|
import {
|
|
8
8
|
init_toolset
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-2gz62eh7.js";
|
|
10
10
|
import"./cli-0ghkg3w6.js";
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
import"./cli-3462esbc.js";
|
|
12
|
+
import"./cli-m45bmsc5.js";
|
|
13
13
|
import"./cli-gpnb45ck.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-j54wb0q5.js";
|
|
15
15
|
import {
|
|
16
16
|
package_default
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-4bvafx3k.js";
|
|
18
18
|
import {
|
|
19
19
|
init_models
|
|
20
20
|
} from "./cli-03z6pswp.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
// package.json
|
|
26
26
|
var package_default2 = {
|
|
27
27
|
name: "@pensar/apex",
|
|
28
|
-
version: "1.6.0
|
|
28
|
+
version: "1.6.0",
|
|
29
29
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
30
30
|
module: "src/tui/index.tsx",
|
|
31
31
|
main: "build/cli.js",
|
|
@@ -500,7 +500,7 @@ async function resolveCliModel() {
|
|
|
500
500
|
const explicit = getArg("--model");
|
|
501
501
|
if (explicit)
|
|
502
502
|
return explicit;
|
|
503
|
-
const { config: appConfig } = await import("./index-
|
|
503
|
+
const { config: appConfig } = await import("./index-rm3jf64j.js");
|
|
504
504
|
const { getDefaultModelForConfig } = await import("./utils-jf52rmrb.js");
|
|
505
505
|
const pensarConfig = await appConfig.get();
|
|
506
506
|
const defaultModel = getDefaultModelForConfig(pensarConfig);
|
|
@@ -572,9 +572,9 @@ Global options:
|
|
|
572
572
|
async function runPentest() {
|
|
573
573
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
574
574
|
config2();
|
|
575
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
576
|
-
const { sessions } = await import("./index-
|
|
577
|
-
const { config: appConfig } = await import("./index-
|
|
575
|
+
const { runPentestAgent } = await import("./blackboxPentest-x1eynyy6.js");
|
|
576
|
+
const { sessions } = await import("./index-g60tmaw4.js");
|
|
577
|
+
const { config: appConfig } = await import("./index-rm3jf64j.js");
|
|
578
578
|
const target = getArgRequired("--target");
|
|
579
579
|
const cwd = getArg("--cwd");
|
|
580
580
|
const mode = getArg("--mode");
|
|
@@ -638,9 +638,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
638
638
|
async function runTargetedPentest() {
|
|
639
639
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
640
640
|
config2();
|
|
641
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
642
|
-
const { sessions } = await import("./index-
|
|
643
|
-
const { config: appConfig } = await import("./index-
|
|
641
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-ydr77zs4.js");
|
|
642
|
+
const { sessions } = await import("./index-g60tmaw4.js");
|
|
643
|
+
const { config: appConfig } = await import("./index-rm3jf64j.js");
|
|
644
644
|
const target = getArgRequired("--target");
|
|
645
645
|
const objectives = getAllArgs("--objective");
|
|
646
646
|
const pensarConfig = await appConfig.get();
|
|
@@ -688,8 +688,8 @@ POCs: ${pocsPath}`);
|
|
|
688
688
|
async function runThreatModel() {
|
|
689
689
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
690
690
|
config2();
|
|
691
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
692
|
-
const { config: appConfig } = await import("./index-
|
|
691
|
+
const { runThreatModelWorkflow } = await import("./threatModel-vkn59yef.js");
|
|
692
|
+
const { config: appConfig } = await import("./index-rm3jf64j.js");
|
|
693
693
|
const path = await import("path");
|
|
694
694
|
const pensarConfig = await appConfig.get();
|
|
695
695
|
const model = await resolveCliModel();
|
|
@@ -725,10 +725,10 @@ Threat model written to: ${resolvedPath}`);
|
|
|
725
725
|
async function runOperator() {
|
|
726
726
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
727
727
|
config2();
|
|
728
|
-
const { runOffensiveSecurityAgent } = await import("./offesecAgent-
|
|
729
|
-
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-
|
|
730
|
-
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-
|
|
731
|
-
const { config: appConfig } = await import("./index-
|
|
728
|
+
const { runOffensiveSecurityAgent } = await import("./offesecAgent-e8t65rte.js");
|
|
729
|
+
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-g60tmaw4.js");
|
|
730
|
+
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-wr87h0sz.js");
|
|
731
|
+
const { config: appConfig } = await import("./index-rm3jf64j.js");
|
|
732
732
|
const { createInterface } = await import("readline");
|
|
733
733
|
const { readFileSync: readFileSync2, existsSync } = await import("fs");
|
|
734
734
|
const path = await import("path");
|
|
@@ -837,25 +837,25 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
837
837
|
await runTargetedPentest();
|
|
838
838
|
} else if (command === "login" || command === "auth") {
|
|
839
839
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
840
|
-
await import("./auth-
|
|
840
|
+
await import("./auth-hhzeb7wq.js");
|
|
841
841
|
} else if (command === "uninstall") {
|
|
842
842
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
843
|
-
await import("./uninstall-
|
|
843
|
+
await import("./uninstall-b3kzz704.js");
|
|
844
844
|
} else if (command === "projects") {
|
|
845
845
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
846
|
-
await import("./projects-
|
|
846
|
+
await import("./projects-w5yxp27m.js");
|
|
847
847
|
} else if (command === "pentests") {
|
|
848
848
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
849
|
-
await import("./pentests-
|
|
849
|
+
await import("./pentests-3zp7z952.js");
|
|
850
850
|
} else if (command === "issues") {
|
|
851
851
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
852
|
-
await import("./issues-
|
|
852
|
+
await import("./issues-mrcf758f.js");
|
|
853
853
|
} else if (command === "fixes") {
|
|
854
854
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
855
|
-
await import("./fixes-
|
|
855
|
+
await import("./fixes-d38fdj5s.js");
|
|
856
856
|
} else if (command === "logs") {
|
|
857
857
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
858
|
-
await import("./logs-
|
|
858
|
+
await import("./logs-pece65p3.js");
|
|
859
859
|
} else if (command === "threat-model") {
|
|
860
860
|
await runThreatModel();
|
|
861
861
|
} else if (command === "doctor") {
|
|
@@ -867,7 +867,7 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
867
867
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
868
868
|
process.exit(1);
|
|
869
869
|
}
|
|
870
|
-
await import("./index-
|
|
870
|
+
await import("./index-hcxak3dc.js");
|
|
871
871
|
} else {
|
|
872
872
|
console.error(`Error: Unknown command '${command}'`);
|
|
873
873
|
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-ys0ahwpb.js";
|
|
6
|
+
import"./cli-m45bmsc5.js";
|
|
7
|
+
import"./cli-j54wb0q5.js";
|
|
8
|
+
import"./cli-4bvafx3k.js";
|
|
9
9
|
import"./cli-8rxa073f.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/fixes.ts
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
signGatewayRequest,
|
|
10
10
|
startDeviceFlow,
|
|
11
11
|
validateGateway
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-3462esbc.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-m45bmsc5.js";
|
|
19
|
+
import"./cli-j54wb0q5.js";
|
|
20
|
+
import"./cli-4bvafx3k.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
export {
|
|
23
23
|
validateGateway,
|
|
@@ -13,24 +13,24 @@ import {
|
|
|
13
13
|
update,
|
|
14
14
|
write,
|
|
15
15
|
writeRaw
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-fhm4gfky.js";
|
|
17
17
|
import {
|
|
18
18
|
ToolsetStateSchema,
|
|
19
19
|
exports_toolset,
|
|
20
20
|
init_toolset,
|
|
21
21
|
toggleTool
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-2gz62eh7.js";
|
|
23
23
|
import {
|
|
24
24
|
init_zod,
|
|
25
25
|
zod_default
|
|
26
26
|
} from "./cli-0ghkg3w6.js";
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
27
|
+
import"./cli-3462esbc.js";
|
|
28
|
+
import"./cli-m45bmsc5.js";
|
|
29
29
|
import"./cli-gpnb45ck.js";
|
|
30
|
-
import"./cli-
|
|
30
|
+
import"./cli-j54wb0q5.js";
|
|
31
31
|
import {
|
|
32
32
|
getCurrentVersion
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-4bvafx3k.js";
|
|
34
34
|
import"./cli-03z6pswp.js";
|
|
35
35
|
import {
|
|
36
36
|
__require,
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
buildThreatModelPrompt,
|
|
4
4
|
createSkillsRegistry,
|
|
5
5
|
runOffensiveSecurityAgent
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-2aj6efy7.js";
|
|
7
7
|
import {
|
|
8
8
|
REPORT_FILENAME_MD,
|
|
9
9
|
convertModelMessagesToUI,
|
|
10
10
|
loadSubagents,
|
|
11
11
|
readExecutionMetrics,
|
|
12
12
|
writeExecutionMetrics
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-ww2x78tc.js";
|
|
14
14
|
import {
|
|
15
15
|
createThreatModelPrompt
|
|
16
16
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
planFilePath,
|
|
39
39
|
readPlan,
|
|
40
40
|
sessions
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-e06s4dbt.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-fhm4gfky.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-2gz62eh7.js";
|
|
61
61
|
import"./cli-0ghkg3w6.js";
|
|
62
62
|
import {
|
|
63
63
|
disconnect,
|
|
@@ -69,19 +69,19 @@ import {
|
|
|
69
69
|
selectWorkspace,
|
|
70
70
|
startDeviceFlow,
|
|
71
71
|
validateGateway
|
|
72
|
-
} from "./cli-
|
|
72
|
+
} from "./cli-3462esbc.js";
|
|
73
73
|
import {
|
|
74
74
|
config,
|
|
75
75
|
getPensarApiUrl,
|
|
76
76
|
getPensarConsoleUrl
|
|
77
|
-
} from "./cli-
|
|
77
|
+
} from "./cli-m45bmsc5.js";
|
|
78
78
|
import"./cli-gpnb45ck.js";
|
|
79
79
|
import {
|
|
80
80
|
update
|
|
81
|
-
} from "./cli-
|
|
81
|
+
} from "./cli-j54wb0q5.js";
|
|
82
82
|
import {
|
|
83
83
|
checkForUpdate
|
|
84
|
-
} from "./cli-
|
|
84
|
+
} from "./cli-4bvafx3k.js";
|
|
85
85
|
import {
|
|
86
86
|
AVAILABLE_MODELS,
|
|
87
87
|
init_models
|
|
@@ -69360,7 +69360,7 @@ function AppContent({
|
|
|
69360
69360
|
toast(`Update available: v${currentVersion} → v${latestVersion}. Run: pensar upgrade`, "warn", 8000);
|
|
69361
69361
|
});
|
|
69362
69362
|
const checkAuthToken = async () => {
|
|
69363
|
-
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-
|
|
69363
|
+
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-0je5jws9.js");
|
|
69364
69364
|
if (isConnected2(config2.data) && config2.data.accessToken && isTokenExpired(config2.data.accessToken, 60) && !config2.data.refreshToken && !config2.data.pensarAPIKey) {
|
|
69365
69365
|
toast("Your Pensar Console session has expired. Run /login to refresh.", "warn", 8000);
|
|
69366
69366
|
}
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
SKILL_TOOL_NAMES,
|
|
8
8
|
StepTraceWriter,
|
|
9
9
|
createAllTools
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-e06s4dbt.js";
|
|
11
11
|
import"./cli-tp1tqn3k.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-fhm4gfky.js";
|
|
13
13
|
import"./cli-3y0dgy56.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-2gz62eh7.js";
|
|
15
15
|
import"./cli-0ghkg3w6.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
16
|
+
import"./cli-3462esbc.js";
|
|
17
|
+
import"./cli-m45bmsc5.js";
|
|
18
18
|
import"./cli-gpnb45ck.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-j54wb0q5.js";
|
|
20
|
+
import"./cli-4bvafx3k.js";
|
|
21
21
|
import"./cli-03z6pswp.js";
|
|
22
22
|
import"./cli-8rxa073f.js";
|
|
23
23
|
export {
|
|
@@ -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-ys0ahwpb.js";
|
|
7
|
+
import"./cli-m45bmsc5.js";
|
|
8
|
+
import"./cli-j54wb0q5.js";
|
|
9
|
+
import"./cli-4bvafx3k.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-ys0ahwpb.js";
|
|
6
|
+
import"./cli-m45bmsc5.js";
|
|
7
|
+
import"./cli-j54wb0q5.js";
|
|
8
|
+
import"./cli-4bvafx3k.js";
|
|
9
9
|
import"./cli-8rxa073f.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/logs.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-e06s4dbt.js";
|
|
4
4
|
import"./cli-tp1tqn3k.js";
|
|
5
|
-
import"./cli-
|
|
5
|
+
import"./cli-fhm4gfky.js";
|
|
6
6
|
import"./cli-3y0dgy56.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-2gz62eh7.js";
|
|
8
8
|
import"./cli-0ghkg3w6.js";
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
9
|
+
import"./cli-3462esbc.js";
|
|
10
|
+
import"./cli-m45bmsc5.js";
|
|
11
11
|
import"./cli-gpnb45ck.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
12
|
+
import"./cli-j54wb0q5.js";
|
|
13
|
+
import"./cli-4bvafx3k.js";
|
|
14
14
|
import"./cli-03z6pswp.js";
|
|
15
15
|
import"./cli-8rxa073f.js";
|
|
16
16
|
|
|
@@ -2,24 +2,24 @@ import {
|
|
|
2
2
|
DEFAULT_CONCURRENCY,
|
|
3
3
|
runPentestSwarm,
|
|
4
4
|
runPentestWorkflow
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
5
|
+
} from "./cli-nhqvhgdk.js";
|
|
6
|
+
import"./cli-ww2x78tc.js";
|
|
7
|
+
import"./cli-m69x66eh.js";
|
|
8
8
|
import"./cli-0fy9j5dw.js";
|
|
9
|
-
import"./cli-
|
|
9
|
+
import"./cli-x1g2s9n9.js";
|
|
10
10
|
import"./cli-fw5r7pfj.js";
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
import"./cli-6w784800.js";
|
|
12
|
+
import"./cli-e06s4dbt.js";
|
|
13
13
|
import"./cli-tp1tqn3k.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-fhm4gfky.js";
|
|
15
15
|
import"./cli-3y0dgy56.js";
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-2gz62eh7.js";
|
|
17
17
|
import"./cli-0ghkg3w6.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
18
|
+
import"./cli-3462esbc.js";
|
|
19
|
+
import"./cli-m45bmsc5.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
21
|
+
import"./cli-j54wb0q5.js";
|
|
22
|
+
import"./cli-4bvafx3k.js";
|
|
23
23
|
import"./cli-03z6pswp.js";
|
|
24
24
|
import"./cli-8rxa073f.js";
|
|
25
25
|
export {
|
|
@@ -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-ys0ahwpb.js";
|
|
7
|
+
import"./cli-m45bmsc5.js";
|
|
8
|
+
import"./cli-j54wb0q5.js";
|
|
9
|
+
import"./cli-4bvafx3k.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-ys0ahwpb.js";
|
|
5
|
+
import"./cli-m45bmsc5.js";
|
|
6
|
+
import"./cli-j54wb0q5.js";
|
|
7
|
+
import"./cli-4bvafx3k.js";
|
|
8
8
|
import"./cli-8rxa073f.js";
|
|
9
9
|
|
|
10
10
|
// src/cli/projects.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-m69x66eh.js";
|
|
4
|
+
import"./cli-e06s4dbt.js";
|
|
5
5
|
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-
|
|
6
|
+
import"./cli-fhm4gfky.js";
|
|
7
7
|
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-2gz62eh7.js";
|
|
9
9
|
import"./cli-0ghkg3w6.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
10
|
+
import"./cli-3462esbc.js";
|
|
11
|
+
import"./cli-m45bmsc5.js";
|
|
12
12
|
import"./cli-gpnb45ck.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
import"./cli-j54wb0q5.js";
|
|
14
|
+
import"./cli-4bvafx3k.js";
|
|
15
15
|
import"./cli-03z6pswp.js";
|
|
16
16
|
import"./cli-8rxa073f.js";
|
|
17
17
|
|
|
@@ -2,26 +2,26 @@ import {
|
|
|
2
2
|
buildThreatModelPrompt,
|
|
3
3
|
createSkillsRegistry,
|
|
4
4
|
runOffensiveSecurityAgent
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-2aj6efy7.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-e06s4dbt.js";
|
|
13
13
|
import"./cli-tp1tqn3k.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-fhm4gfky.js";
|
|
15
15
|
import"./cli-3y0dgy56.js";
|
|
16
16
|
import {
|
|
17
17
|
stepCountIs
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-2gz62eh7.js";
|
|
19
19
|
import"./cli-0ghkg3w6.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
import"./cli-3462esbc.js";
|
|
21
|
+
import"./cli-m45bmsc5.js";
|
|
22
22
|
import"./cli-gpnb45ck.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
23
|
+
import"./cli-j54wb0q5.js";
|
|
24
|
+
import"./cli-4bvafx3k.js";
|
|
25
25
|
import"./cli-03z6pswp.js";
|
|
26
26
|
import"./cli-8rxa073f.js";
|
|
27
27
|
|
package/package.json
CHANGED
package/build/agent-78akh567.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeAgent
|
|
3
|
-
} from "./cli-3kx02vjp.js";
|
|
4
|
-
import"./cli-ac60eqhd.js";
|
|
5
|
-
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-z5a6069g.js";
|
|
7
|
-
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-8r61bnf2.js";
|
|
9
|
-
import"./cli-0ghkg3w6.js";
|
|
10
|
-
import"./cli-953xbxsg.js";
|
|
11
|
-
import"./cli-vy2nfvj1.js";
|
|
12
|
-
import"./cli-gpnb45ck.js";
|
|
13
|
-
import"./cli-r1etggh4.js";
|
|
14
|
-
import"./cli-pr5cfct7.js";
|
|
15
|
-
import"./cli-03z6pswp.js";
|
|
16
|
-
import"./cli-8rxa073f.js";
|
|
17
|
-
export {
|
|
18
|
-
CodeAgent
|
|
19
|
-
};
|