@pensar/apex 1.2.0-canary.7828845e → 1.2.0-canary.8d62d0fc
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-vxx3e35q.js → agent-p78n2q4c.js} +8 -8
- package/build/agent-v47gpbt5.js +18 -0
- package/build/{auth-6saek7cq.js → auth-c4w40z5h.js} +4 -4
- package/build/{authentication-z191g3vm.js → authentication-d818yjr0.js} +7 -7
- package/build/blackboxAgent-y7v67yqt.js +18 -0
- package/build/{blackboxPentest-0xxreawa.js → blackboxPentest-jx5sxv5r.js} +13 -13
- package/build/{cli-c88f7kh3.js → cli-58f82frd.js} +2 -2
- package/build/{cli-1fttdmwt.js → cli-5fs6enh3.js} +1 -1
- package/build/{cli-63h7v3xf.js → cli-5rg5fpez.js} +1 -1
- package/build/{cli-a2ftp53z.js → cli-81qcgx72.js} +1 -1
- package/build/{cli-rynygvhr.js → cli-ab6sneh9.js} +1 -1
- package/build/{cli-9vmxfhhm.js → cli-asgtg0mg.js} +2 -2
- package/build/{cli-2xxnh5xt.js → cli-f1v4n4dc.js} +7 -7
- package/build/{cli-17vrn7xa.js → cli-haa2pmk9.js} +2 -2
- package/build/{cli-e4raxrgv.js → cli-j1k72n91.js} +2 -2
- package/build/{cli-cqd79dk7.js → cli-kx2ve9cy.js} +1 -1
- package/build/{cli-rh8nv7sm.js → cli-n66xm30c.js} +1 -1
- package/build/{cli-a4z70e61.js → cli-p9txsc5t.js} +2 -2
- package/build/{cli-cr9r17ze.js → cli-rhj7r6m1.js} +1 -1
- package/build/{cli-708cptrx.js → cli-spjss51n.js} +1 -1
- package/build/{cli-7e77qqhb.js → cli-yqje071v.js} +12 -12
- package/build/cli.js +22 -22
- package/build/{fixes-vt10p738.js → fixes-f4smgtd0.js} +4 -4
- package/build/{index-smxfrrn8.js → index-6c54ewme.js} +4 -4
- package/build/{index-03v95yxb.js → index-6en60a5p.js} +6 -6
- package/build/{index-myw5cat0.js → index-bgm2av2h.js} +2 -2
- package/build/{index-ckfe2pxq.js → index-xd6xdh32.js} +88 -21
- package/build/{issues-mtcv7n5y.js → issues-ddtxmrhh.js} +4 -4
- package/build/{logs-zs38mds1.js → logs-k9y0vprw.js} +4 -4
- package/build/pentest-qcsnqvwk.js +28 -0
- package/build/{pentests-dpd84dex.js → pentests-xc3yb3fg.js} +4 -4
- package/build/{projects-hhz2p8fj.js → projects-q9zvvcfr.js} +4 -4
- package/build/{targetedPentest-2fz6zc42.js → targetedPentest-n257652r.js} +8 -8
- package/build/{threatModel-x5qe118y.js → threatModel-tk3evhpk.js} +8 -8
- package/build/{uninstall-hceyngnx.js → uninstall-nj7rt9hw.js} +1 -1
- package/package.json +1 -1
- package/build/agent-wacp5crs.js +0 -18
- package/build/blackboxAgent-5xb2zjwm.js +0 -18
- package/build/pentest-pkr8xnmg.js +0 -28
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WhiteboxAttackSurfaceResultSchema
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-n66xm30c.js";
|
|
4
4
|
import {
|
|
5
5
|
OffensiveSecurityAgent
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-yqje071v.js";
|
|
7
7
|
import"./cli-tp1tqn3k.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-ab6sneh9.js";
|
|
9
9
|
import"./cli-3y0dgy56.js";
|
|
10
10
|
import {
|
|
11
11
|
hasToolCall,
|
|
12
12
|
tool
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-p9txsc5t.js";
|
|
14
14
|
import"./cli-03z6pswp.js";
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
15
|
+
import"./cli-5rg5fpez.js";
|
|
16
|
+
import"./cli-rhj7r6m1.js";
|
|
17
|
+
import"./cli-81qcgx72.js";
|
|
18
|
+
import"./cli-5fs6enh3.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
20
|
import"./cli-8rxa073f.js";
|
|
21
21
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent
|
|
3
|
+
} from "./cli-haa2pmk9.js";
|
|
4
|
+
import"./cli-yqje071v.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-ab6sneh9.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-p9txsc5t.js";
|
|
9
|
+
import"./cli-03z6pswp.js";
|
|
10
|
+
import"./cli-5rg5fpez.js";
|
|
11
|
+
import"./cli-rhj7r6m1.js";
|
|
12
|
+
import"./cli-81qcgx72.js";
|
|
13
|
+
import"./cli-5fs6enh3.js";
|
|
14
|
+
import"./cli-gpnb45ck.js";
|
|
15
|
+
import"./cli-8rxa073f.js";
|
|
16
|
+
export {
|
|
17
|
+
CodeAgent
|
|
18
|
+
};
|
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
pollWorkOSToken,
|
|
9
9
|
selectWorkspace,
|
|
10
10
|
startDeviceFlow
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-5rg5fpez.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-rhj7r6m1.js";
|
|
17
|
+
import"./cli-81qcgx72.js";
|
|
18
|
+
import"./cli-5fs6enh3.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-yqje071v.js";
|
|
4
4
|
import {
|
|
5
5
|
detectOSAndEnhancePrompt
|
|
6
6
|
} from "./cli-tp1tqn3k.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-ab6sneh9.js";
|
|
8
8
|
import"./cli-3y0dgy56.js";
|
|
9
9
|
import {
|
|
10
10
|
hasToolCall
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-p9txsc5t.js";
|
|
12
12
|
import"./cli-03z6pswp.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
13
|
+
import"./cli-5rg5fpez.js";
|
|
14
|
+
import"./cli-rhj7r6m1.js";
|
|
15
|
+
import"./cli-81qcgx72.js";
|
|
16
|
+
import"./cli-5fs6enh3.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-58f82frd.js";
|
|
4
|
+
import"./cli-yqje071v.js";
|
|
5
|
+
import"./cli-tp1tqn3k.js";
|
|
6
|
+
import"./cli-ab6sneh9.js";
|
|
7
|
+
import"./cli-3y0dgy56.js";
|
|
8
|
+
import"./cli-p9txsc5t.js";
|
|
9
|
+
import"./cli-03z6pswp.js";
|
|
10
|
+
import"./cli-5rg5fpez.js";
|
|
11
|
+
import"./cli-rhj7r6m1.js";
|
|
12
|
+
import"./cli-81qcgx72.js";
|
|
13
|
+
import"./cli-5fs6enh3.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-f1v4n4dc.js";
|
|
4
|
+
import"./cli-asgtg0mg.js";
|
|
5
|
+
import"./cli-j1k72n91.js";
|
|
6
|
+
import"./cli-58f82frd.js";
|
|
7
7
|
import"./cli-fw5r7pfj.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-haa2pmk9.js";
|
|
9
|
+
import"./cli-n66xm30c.js";
|
|
10
|
+
import"./cli-yqje071v.js";
|
|
11
11
|
import"./cli-tp1tqn3k.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-ab6sneh9.js";
|
|
13
13
|
import"./cli-3y0dgy56.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-p9txsc5t.js";
|
|
15
15
|
import"./cli-03z6pswp.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
16
|
+
import"./cli-5rg5fpez.js";
|
|
17
|
+
import"./cli-rhj7r6m1.js";
|
|
18
|
+
import"./cli-81qcgx72.js";
|
|
19
|
+
import"./cli-5fs6enh3.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-yqje071v.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-p9txsc5t.js";
|
|
11
11
|
|
|
12
12
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
13
13
|
import { join } from "path";
|
|
@@ -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.8d62d0fc",
|
|
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",
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
CweEntrySchema,
|
|
3
3
|
ValidatedCweEntrySchema,
|
|
4
4
|
hasCanonicalName
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-yqje071v.js";
|
|
6
6
|
import {
|
|
7
7
|
exports_external,
|
|
8
8
|
init_zod
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-p9txsc5t.js";
|
|
10
10
|
|
|
11
11
|
// src/core/report/schemas.ts
|
|
12
12
|
init_zod();
|
|
@@ -14,33 +14,33 @@ import {
|
|
|
14
14
|
updateManifestEntryStatus,
|
|
15
15
|
writeAgentManifest,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-asgtg0mg.js";
|
|
18
18
|
import {
|
|
19
19
|
TargetedPentestAgent,
|
|
20
20
|
buildPentestSystemPrompt
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-j1k72n91.js";
|
|
22
22
|
import {
|
|
23
23
|
BlackboxAttackSurfaceAgent
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-58f82frd.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-haa2pmk9.js";
|
|
31
31
|
import {
|
|
32
32
|
EndpointSchema
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-n66xm30c.js";
|
|
34
34
|
import {
|
|
35
35
|
FindingsRegistry,
|
|
36
36
|
OffensiveSecurityAgent,
|
|
37
37
|
PLAN_MODE_TOOL_NAMES
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-yqje071v.js";
|
|
39
39
|
import {
|
|
40
40
|
exports_external,
|
|
41
41
|
hasToolCall,
|
|
42
42
|
init_zod
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-p9txsc5t.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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-yqje071v.js";
|
|
4
4
|
import {
|
|
5
5
|
stepCountIs
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-p9txsc5t.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.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent,
|
|
3
3
|
readPlan
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-yqje071v.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_external,
|
|
7
7
|
init_zod
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-p9txsc5t.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-5rg5fpez.js";
|
|
8
8
|
import {
|
|
9
9
|
config,
|
|
10
10
|
ensureValidToken,
|
|
11
11
|
getPensarGatewayUrl
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-rhj7r6m1.js";
|
|
13
13
|
import {
|
|
14
14
|
require_auth_errors,
|
|
15
15
|
require_token_error,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
update,
|
|
17
17
|
write,
|
|
18
18
|
writeRaw
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-ab6sneh9.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-p9txsc5t.js";
|
|
56
56
|
import {
|
|
57
57
|
signGatewayRequest
|
|
58
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-5rg5fpez.js";
|
|
59
59
|
import {
|
|
60
60
|
config,
|
|
61
61
|
ensureValidToken,
|
|
62
62
|
getPensarApiUrl
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-rhj7r6m1.js";
|
|
64
64
|
import {
|
|
65
65
|
getCurrentVersion
|
|
66
|
-
} from "./cli-
|
|
66
|
+
} from "./cli-5fs6enh3.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-v47gpbt5.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-d818yjr0.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-p78n2q4c.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-y7v67yqt.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-qcsnqvwk.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-v47gpbt5.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-qcsnqvwk.js");
|
|
101873
101873
|
if (!ctx.model) {
|
|
101874
101874
|
return {
|
|
101875
101875
|
success: false,
|
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-p9txsc5t.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-5rg5fpez.js";
|
|
14
|
+
import"./cli-rhj7r6m1.js";
|
|
15
|
+
import"./cli-81qcgx72.js";
|
|
16
16
|
import {
|
|
17
17
|
package_default
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-5fs6enh3.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.8d62d0fc",
|
|
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-jx5sxv5r.js");
|
|
545
|
+
const { sessions } = await import("./index-6en60a5p.js");
|
|
546
|
+
const { config: appConfig } = await import("./index-bgm2av2h.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-n257652r.js");
|
|
613
|
+
const { sessions } = await import("./index-6en60a5p.js");
|
|
614
|
+
const { config: appConfig } = await import("./index-bgm2av2h.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-tk3evhpk.js");
|
|
665
|
+
const { config: appConfig } = await import("./index-bgm2av2h.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-c4w40z5h.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-nj7rt9hw.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-q9zvvcfr.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-xc3yb3fg.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-ddtxmrhh.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-f4smgtd0.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-k9y0vprw.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-xd6xdh32.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-spjss51n.js";
|
|
6
|
+
import"./cli-rhj7r6m1.js";
|
|
7
|
+
import"./cli-81qcgx72.js";
|
|
8
|
+
import"./cli-5fs6enh3.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-5rg5fpez.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-rhj7r6m1.js";
|
|
19
|
+
import"./cli-81qcgx72.js";
|
|
20
|
+
import"./cli-5fs6enh3.js";
|
|
21
21
|
import"./cli-8rxa073f.js";
|
|
22
22
|
export {
|
|
23
23
|
validateGateway,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
update,
|
|
14
14
|
write,
|
|
15
15
|
writeRaw
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-ab6sneh9.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-p9txsc5t.js";
|
|
25
25
|
import"./cli-03z6pswp.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
26
|
+
import"./cli-5rg5fpez.js";
|
|
27
|
+
import"./cli-rhj7r6m1.js";
|
|
28
|
+
import"./cli-81qcgx72.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentVersion
|
|
31
|
-
} from "./cli-
|
|
31
|
+
} from "./cli-5fs6enh3.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-kx2ve9cy.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-asgtg0mg.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-yqje071v.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-ab6sneh9.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-p9txsc5t.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-5rg5fpez.js";
|
|
76
76
|
import {
|
|
77
77
|
config,
|
|
78
78
|
getPensarApiUrl,
|
|
79
79
|
getPensarConsoleUrl
|
|
80
|
-
} from "./cli-
|
|
80
|
+
} from "./cli-rhj7r6m1.js";
|
|
81
81
|
import {
|
|
82
82
|
update
|
|
83
|
-
} from "./cli-
|
|
83
|
+
} from "./cli-81qcgx72.js";
|
|
84
84
|
import {
|
|
85
85
|
checkForUpdate
|
|
86
|
-
} from "./cli-
|
|
86
|
+
} from "./cli-5fs6enh3.js";
|
|
87
87
|
import"./cli-gpnb45ck.js";
|
|
88
88
|
import {
|
|
89
89
|
__commonJS,
|
|
@@ -50277,36 +50277,51 @@ function SpinningDots({
|
|
|
50277
50277
|
function ShiningText({
|
|
50278
50278
|
text,
|
|
50279
50279
|
fg,
|
|
50280
|
-
speed =
|
|
50280
|
+
speed = 1,
|
|
50281
50281
|
shimmerWidth = 9,
|
|
50282
|
-
baseAlpha
|
|
50282
|
+
baseAlpha,
|
|
50283
|
+
pauseMs = 600
|
|
50283
50284
|
}) {
|
|
50284
|
-
const { colors: colors2 } = useTheme();
|
|
50285
|
+
const { colors: colors2, mode } = useTheme();
|
|
50285
50286
|
const base = fg ?? colors2.text;
|
|
50287
|
+
const resolvedBaseAlpha = baseAlpha ?? (mode === "light" ? 0.55 : 0.35);
|
|
50286
50288
|
useTick();
|
|
50287
50289
|
const { redact } = useObfuscation();
|
|
50288
50290
|
const displayText = redact(text);
|
|
50289
50291
|
const len = displayText.length;
|
|
50290
50292
|
const totalFrames = len + shimmerWidth;
|
|
50291
|
-
const
|
|
50292
|
-
const
|
|
50293
|
+
const sweepMs = 1250 / speed;
|
|
50294
|
+
const cycleMs = sweepMs + pauseMs;
|
|
50295
|
+
const elapsed = Date.now() % cycleMs;
|
|
50296
|
+
const inPause = elapsed >= sweepMs;
|
|
50297
|
+
const cyclePos = inPause ? 1 : elapsed / sweepMs;
|
|
50293
50298
|
const eased = cyclePos * cyclePos * (3 - 2 * cyclePos);
|
|
50294
50299
|
const head = Math.floor(eased * totalFrames);
|
|
50295
50300
|
const chars = useMemo5(() => {
|
|
50296
50301
|
const out = [];
|
|
50297
50302
|
for (let i = 0;i < len; i++) {
|
|
50303
|
+
if (inPause) {
|
|
50304
|
+
out.push({
|
|
50305
|
+
ch: displayText[i],
|
|
50306
|
+
color: withAlpha(base, resolvedBaseAlpha)
|
|
50307
|
+
});
|
|
50308
|
+
continue;
|
|
50309
|
+
}
|
|
50298
50310
|
const dist = head - i;
|
|
50299
50311
|
if (dist >= 0 && dist < shimmerWidth) {
|
|
50300
50312
|
const norm = dist / (shimmerWidth - 1);
|
|
50301
50313
|
const bell = 1 - (2 * norm - 1) * (2 * norm - 1);
|
|
50302
|
-
const alpha =
|
|
50314
|
+
const alpha = resolvedBaseAlpha + (1 - resolvedBaseAlpha) * bell;
|
|
50303
50315
|
out.push({ ch: displayText[i], color: withAlpha(base, alpha) });
|
|
50304
50316
|
} else {
|
|
50305
|
-
out.push({
|
|
50317
|
+
out.push({
|
|
50318
|
+
ch: displayText[i],
|
|
50319
|
+
color: withAlpha(base, resolvedBaseAlpha)
|
|
50320
|
+
});
|
|
50306
50321
|
}
|
|
50307
50322
|
}
|
|
50308
50323
|
return out;
|
|
50309
|
-
}, [head, displayText, base, shimmerWidth,
|
|
50324
|
+
}, [head, displayText, base, shimmerWidth, resolvedBaseAlpha, len, inPause]);
|
|
50310
50325
|
return /* @__PURE__ */ jsxDEV5("box", {
|
|
50311
50326
|
flexDirection: "row",
|
|
50312
50327
|
children: chars.map((c, i) => /* @__PURE__ */ jsxDEV5("text", {
|
|
@@ -51830,6 +51845,7 @@ function DialogLayout({
|
|
|
51830
51845
|
title,
|
|
51831
51846
|
escLabel = "close",
|
|
51832
51847
|
footerActions,
|
|
51848
|
+
flushRight = false,
|
|
51833
51849
|
children
|
|
51834
51850
|
}) {
|
|
51835
51851
|
const { colors: colors2 } = useTheme();
|
|
@@ -51837,7 +51853,7 @@ function DialogLayout({
|
|
|
51837
51853
|
flexDirection: "column",
|
|
51838
51854
|
width: "100%",
|
|
51839
51855
|
paddingLeft: 2,
|
|
51840
|
-
paddingRight: 2,
|
|
51856
|
+
paddingRight: flushRight ? 0 : 2,
|
|
51841
51857
|
paddingTop: 1,
|
|
51842
51858
|
paddingBottom: 1,
|
|
51843
51859
|
children: [
|
|
@@ -51846,6 +51862,7 @@ function DialogLayout({
|
|
|
51846
51862
|
justifyContent: "space-between",
|
|
51847
51863
|
width: "100%",
|
|
51848
51864
|
flexShrink: 0,
|
|
51865
|
+
paddingRight: flushRight ? 2 : 0,
|
|
51849
51866
|
children: [
|
|
51850
51867
|
typeof title === "string" ? /* @__PURE__ */ jsxDEV16("text", {
|
|
51851
51868
|
fg: colors2.primary,
|
|
@@ -51875,6 +51892,7 @@ function DialogLayout({
|
|
|
51875
51892
|
footerActions && footerActions.length > 0 && /* @__PURE__ */ jsxDEV16("box", {
|
|
51876
51893
|
marginTop: 1,
|
|
51877
51894
|
flexShrink: 0,
|
|
51895
|
+
paddingRight: flushRight ? 2 : 0,
|
|
51878
51896
|
children: /* @__PURE__ */ jsxDEV16(DialogControls, {
|
|
51879
51897
|
controls: footerActions
|
|
51880
51898
|
}, undefined, false, undefined, this)
|
|
@@ -51976,6 +51994,7 @@ function ReportViewerDialog({
|
|
|
51976
51994
|
onClose,
|
|
51977
51995
|
children: /* @__PURE__ */ jsxDEV18(DialogLayout, {
|
|
51978
51996
|
title,
|
|
51997
|
+
flushRight: true,
|
|
51979
51998
|
footerActions,
|
|
51980
51999
|
children: /* @__PURE__ */ jsxDEV18("scrollbox", {
|
|
51981
52000
|
ref: scrollRef,
|
|
@@ -52330,6 +52349,7 @@ function SessionsDisplay({ onClose }) {
|
|
|
52330
52349
|
onClose: handleClose,
|
|
52331
52350
|
children: /* @__PURE__ */ jsxDEV19(DialogLayout, {
|
|
52332
52351
|
title: "Sessions",
|
|
52352
|
+
flushRight: true,
|
|
52333
52353
|
footerActions,
|
|
52334
52354
|
children: [
|
|
52335
52355
|
/* @__PURE__ */ jsxDEV19("box", {
|
|
@@ -52364,7 +52384,6 @@ function SessionsDisplay({ onClose }) {
|
|
|
52364
52384
|
height: listHeight,
|
|
52365
52385
|
children: /* @__PURE__ */ jsxDEV19("scrollbox", {
|
|
52366
52386
|
ref: scroll,
|
|
52367
|
-
scrollbarOptions: { visible: true },
|
|
52368
52387
|
style: {
|
|
52369
52388
|
rootOptions: {
|
|
52370
52389
|
width: "100%",
|
|
@@ -52378,6 +52397,13 @@ function SessionsDisplay({ onClose }) {
|
|
|
52378
52397
|
contentOptions: {
|
|
52379
52398
|
gap: 2,
|
|
52380
52399
|
flexDirection: "column"
|
|
52400
|
+
},
|
|
52401
|
+
scrollbarOptions: {
|
|
52402
|
+
visible: true,
|
|
52403
|
+
trackOptions: {
|
|
52404
|
+
foregroundColor: colors2.primary,
|
|
52405
|
+
backgroundColor: colors2.backgroundElement
|
|
52406
|
+
}
|
|
52381
52407
|
}
|
|
52382
52408
|
},
|
|
52383
52409
|
children: groupedSessions.map((group) => /* @__PURE__ */ jsxDEV19("box", {
|
|
@@ -55696,6 +55722,7 @@ function WebWizard({
|
|
|
55696
55722
|
onClose,
|
|
55697
55723
|
children: /* @__PURE__ */ jsxDEV30(DialogLayout, {
|
|
55698
55724
|
title: `Configure Web App Pentest - ${modeLabel}`,
|
|
55725
|
+
flushRight: true,
|
|
55699
55726
|
footerActions: [
|
|
55700
55727
|
{ key: "Enter", label: "start pentest", variant: "primary" },
|
|
55701
55728
|
{ key: "↑/↓", label: "navigate" },
|
|
@@ -55709,6 +55736,12 @@ function WebWizard({
|
|
|
55709
55736
|
flexDirection: "column",
|
|
55710
55737
|
gap: 1,
|
|
55711
55738
|
paddingBottom: 1
|
|
55739
|
+
},
|
|
55740
|
+
scrollbarOptions: {
|
|
55741
|
+
trackOptions: {
|
|
55742
|
+
foregroundColor: colors2.primary,
|
|
55743
|
+
backgroundColor: colors2.backgroundElement
|
|
55744
|
+
}
|
|
55712
55745
|
}
|
|
55713
55746
|
},
|
|
55714
55747
|
stickyScroll: false,
|
|
@@ -56289,6 +56322,7 @@ function ProviderSelection({
|
|
|
56289
56322
|
onClose,
|
|
56290
56323
|
children: /* @__PURE__ */ jsxDEV31(DialogLayout, {
|
|
56291
56324
|
title: "Select provider",
|
|
56325
|
+
flushRight: true,
|
|
56292
56326
|
footerActions: [{ key: "Enter", label: "select", variant: "primary" }],
|
|
56293
56327
|
children: /* @__PURE__ */ jsxDEV31("scrollbox", {
|
|
56294
56328
|
style: {
|
|
@@ -56300,6 +56334,12 @@ function ProviderSelection({
|
|
|
56300
56334
|
contentOptions: {
|
|
56301
56335
|
flexDirection: "column",
|
|
56302
56336
|
gap: 1
|
|
56337
|
+
},
|
|
56338
|
+
scrollbarOptions: {
|
|
56339
|
+
trackOptions: {
|
|
56340
|
+
foregroundColor: colors2.primary,
|
|
56341
|
+
backgroundColor: colors2.backgroundElement
|
|
56342
|
+
}
|
|
56303
56343
|
}
|
|
56304
56344
|
},
|
|
56305
56345
|
stickyScroll: false,
|
|
@@ -57686,12 +57726,20 @@ function HelpDialog({ onClose }) {
|
|
|
57686
57726
|
onClose,
|
|
57687
57727
|
children: /* @__PURE__ */ jsxDEV39(DialogLayout, {
|
|
57688
57728
|
title: "Commands",
|
|
57729
|
+
flushRight: true,
|
|
57689
57730
|
footerActions: [{ key: "Enter", label: "details", variant: "primary" }],
|
|
57690
57731
|
children: /* @__PURE__ */ jsxDEV39("scrollbox", {
|
|
57691
57732
|
ref: scrollboxRef,
|
|
57692
57733
|
style: {
|
|
57693
57734
|
rootOptions: { flexGrow: 1, width: "100%" },
|
|
57694
|
-
contentOptions: { flexDirection: "column" }
|
|
57735
|
+
contentOptions: { flexDirection: "column" },
|
|
57736
|
+
scrollbarOptions: {
|
|
57737
|
+
visible: true,
|
|
57738
|
+
trackOptions: {
|
|
57739
|
+
foregroundColor: colors2.primary,
|
|
57740
|
+
backgroundColor: colors2.backgroundElement
|
|
57741
|
+
}
|
|
57742
|
+
}
|
|
57695
57743
|
},
|
|
57696
57744
|
stickyScroll: false,
|
|
57697
57745
|
focused: true,
|
|
@@ -62146,6 +62194,13 @@ function MessageList({
|
|
|
62146
62194
|
paddingRight: 2,
|
|
62147
62195
|
paddingBottom: 2,
|
|
62148
62196
|
flexDirection: "column"
|
|
62197
|
+
},
|
|
62198
|
+
scrollbarOptions: {
|
|
62199
|
+
visible: true,
|
|
62200
|
+
trackOptions: {
|
|
62201
|
+
foregroundColor: colors2.primary,
|
|
62202
|
+
backgroundColor: colors2.backgroundElement
|
|
62203
|
+
}
|
|
62149
62204
|
}
|
|
62150
62205
|
},
|
|
62151
62206
|
stickyScroll: true,
|
|
@@ -63659,6 +63714,7 @@ var SubagentHubCard = memo5(function SubagentHubCard2({
|
|
|
63659
63714
|
flexDirection: "row",
|
|
63660
63715
|
children: [
|
|
63661
63716
|
/* @__PURE__ */ jsxDEV56("text", {
|
|
63717
|
+
fg: focused ? colors2.primary : colors2.text,
|
|
63662
63718
|
content: prefix
|
|
63663
63719
|
}, undefined, false, undefined, this),
|
|
63664
63720
|
statusIcon,
|
|
@@ -63749,6 +63805,13 @@ var SubagentHub = memo5(function SubagentHub2({
|
|
|
63749
63805
|
gap: 1,
|
|
63750
63806
|
paddingTop: 1,
|
|
63751
63807
|
paddingBottom: 1
|
|
63808
|
+
},
|
|
63809
|
+
scrollbarOptions: {
|
|
63810
|
+
visible: true,
|
|
63811
|
+
trackOptions: {
|
|
63812
|
+
foregroundColor: colors2.primary,
|
|
63813
|
+
backgroundColor: colors2.backgroundElement
|
|
63814
|
+
}
|
|
63752
63815
|
}
|
|
63753
63816
|
},
|
|
63754
63817
|
stickyScroll: false,
|
|
@@ -63867,6 +63930,7 @@ function SubagentDialog({ store }) {
|
|
|
63867
63930
|
return /* @__PURE__ */ jsxDEV58(DialogLayout, {
|
|
63868
63931
|
title,
|
|
63869
63932
|
escLabel: "back",
|
|
63933
|
+
flushRight: true,
|
|
63870
63934
|
footerActions: [
|
|
63871
63935
|
{ key: "←→", label: "prev/next" },
|
|
63872
63936
|
{ key: "↑↓", label: "scroll" }
|
|
@@ -63886,6 +63950,7 @@ function SubagentDialog({ store }) {
|
|
|
63886
63950
|
}
|
|
63887
63951
|
return /* @__PURE__ */ jsxDEV58(DialogLayout, {
|
|
63888
63952
|
title: `Agents (${sessions2.size})`,
|
|
63953
|
+
flushRight: true,
|
|
63889
63954
|
footerActions: [
|
|
63890
63955
|
{ key: "Enter", label: "view", variant: "primary" },
|
|
63891
63956
|
{ key: "↑↓", label: "navigate" }
|
|
@@ -65829,6 +65894,7 @@ function SkillsDialog({
|
|
|
65829
65894
|
children: /* @__PURE__ */ jsxDEV61(DialogLayout, {
|
|
65830
65895
|
title: detailTitle,
|
|
65831
65896
|
escLabel: "back",
|
|
65897
|
+
flushRight: true,
|
|
65832
65898
|
footerActions: [
|
|
65833
65899
|
{ key: "E", label: "open in editor", variant: "primary" }
|
|
65834
65900
|
],
|
|
@@ -65916,6 +65982,7 @@ function SkillsDialog({
|
|
|
65916
65982
|
onClose,
|
|
65917
65983
|
children: /* @__PURE__ */ jsxDEV61(DialogLayout, {
|
|
65918
65984
|
title: "Skills",
|
|
65985
|
+
flushRight: true,
|
|
65919
65986
|
footerActions: [{ key: "Enter", label: "details", variant: "primary" }],
|
|
65920
65987
|
children: /* @__PURE__ */ jsxDEV61("scrollbox", {
|
|
65921
65988
|
ref: scrollboxRef,
|
|
@@ -68658,7 +68725,7 @@ function AppContent({
|
|
|
68658
68725
|
toast(`Update available: v${currentVersion} → v${latestVersion}. Run: pensar upgrade`, "warn", 8000);
|
|
68659
68726
|
});
|
|
68660
68727
|
const checkAuthToken = async () => {
|
|
68661
|
-
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-
|
|
68728
|
+
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-6c54ewme.js");
|
|
68662
68729
|
if (isConnected2(config2.data) && config2.data.accessToken && isTokenExpired(config2.data.accessToken, 60) && !config2.data.refreshToken && !config2.data.pensarAPIKey) {
|
|
68663
68730
|
toast("Your Pensar Console session has expired. Run /login to refresh.", "warn", 8000);
|
|
68664
68731
|
}
|
|
@@ -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-spjss51n.js";
|
|
7
|
+
import"./cli-rhj7r6m1.js";
|
|
8
|
+
import"./cli-81qcgx72.js";
|
|
9
|
+
import"./cli-5fs6enh3.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-spjss51n.js";
|
|
6
|
+
import"./cli-rhj7r6m1.js";
|
|
7
|
+
import"./cli-81qcgx72.js";
|
|
8
|
+
import"./cli-5fs6enh3.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-f1v4n4dc.js";
|
|
6
|
+
import"./cli-asgtg0mg.js";
|
|
7
|
+
import"./cli-j1k72n91.js";
|
|
8
|
+
import"./cli-58f82frd.js";
|
|
9
|
+
import"./cli-fw5r7pfj.js";
|
|
10
|
+
import"./cli-haa2pmk9.js";
|
|
11
|
+
import"./cli-n66xm30c.js";
|
|
12
|
+
import"./cli-yqje071v.js";
|
|
13
|
+
import"./cli-tp1tqn3k.js";
|
|
14
|
+
import"./cli-ab6sneh9.js";
|
|
15
|
+
import"./cli-3y0dgy56.js";
|
|
16
|
+
import"./cli-p9txsc5t.js";
|
|
17
|
+
import"./cli-03z6pswp.js";
|
|
18
|
+
import"./cli-5rg5fpez.js";
|
|
19
|
+
import"./cli-rhj7r6m1.js";
|
|
20
|
+
import"./cli-81qcgx72.js";
|
|
21
|
+
import"./cli-5fs6enh3.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-spjss51n.js";
|
|
7
|
+
import"./cli-rhj7r6m1.js";
|
|
8
|
+
import"./cli-81qcgx72.js";
|
|
9
|
+
import"./cli-5fs6enh3.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-spjss51n.js";
|
|
5
|
+
import"./cli-rhj7r6m1.js";
|
|
6
|
+
import"./cli-81qcgx72.js";
|
|
7
|
+
import"./cli-5fs6enh3.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-j1k72n91.js";
|
|
4
|
+
import"./cli-yqje071v.js";
|
|
5
5
|
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-
|
|
6
|
+
import"./cli-ab6sneh9.js";
|
|
7
7
|
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-
|
|
8
|
+
import"./cli-p9txsc5t.js";
|
|
9
9
|
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
10
|
+
import"./cli-5rg5fpez.js";
|
|
11
|
+
import"./cli-rhj7r6m1.js";
|
|
12
|
+
import"./cli-81qcgx72.js";
|
|
13
|
+
import"./cli-5fs6enh3.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-kx2ve9cy.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-yqje071v.js";
|
|
13
13
|
import"./cli-tp1tqn3k.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-ab6sneh9.js";
|
|
15
15
|
import"./cli-3y0dgy56.js";
|
|
16
16
|
import {
|
|
17
17
|
stepCountIs
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-p9txsc5t.js";
|
|
19
19
|
import"./cli-03z6pswp.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
20
|
+
import"./cli-5rg5fpez.js";
|
|
21
|
+
import"./cli-rhj7r6m1.js";
|
|
22
|
+
import"./cli-81qcgx72.js";
|
|
23
|
+
import"./cli-5fs6enh3.js";
|
|
24
24
|
import"./cli-gpnb45ck.js";
|
|
25
25
|
import"./cli-8rxa073f.js";
|
|
26
26
|
|
package/package.json
CHANGED
package/build/agent-wacp5crs.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CodeAgent
|
|
3
|
-
} from "./cli-17vrn7xa.js";
|
|
4
|
-
import"./cli-7e77qqhb.js";
|
|
5
|
-
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-rynygvhr.js";
|
|
7
|
-
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-a4z70e61.js";
|
|
9
|
-
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-63h7v3xf.js";
|
|
11
|
-
import"./cli-cr9r17ze.js";
|
|
12
|
-
import"./cli-a2ftp53z.js";
|
|
13
|
-
import"./cli-1fttdmwt.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-c88f7kh3.js";
|
|
4
|
-
import"./cli-7e77qqhb.js";
|
|
5
|
-
import"./cli-tp1tqn3k.js";
|
|
6
|
-
import"./cli-rynygvhr.js";
|
|
7
|
-
import"./cli-3y0dgy56.js";
|
|
8
|
-
import"./cli-a4z70e61.js";
|
|
9
|
-
import"./cli-03z6pswp.js";
|
|
10
|
-
import"./cli-63h7v3xf.js";
|
|
11
|
-
import"./cli-cr9r17ze.js";
|
|
12
|
-
import"./cli-a2ftp53z.js";
|
|
13
|
-
import"./cli-1fttdmwt.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-2xxnh5xt.js";
|
|
6
|
-
import"./cli-9vmxfhhm.js";
|
|
7
|
-
import"./cli-e4raxrgv.js";
|
|
8
|
-
import"./cli-c88f7kh3.js";
|
|
9
|
-
import"./cli-fw5r7pfj.js";
|
|
10
|
-
import"./cli-17vrn7xa.js";
|
|
11
|
-
import"./cli-rh8nv7sm.js";
|
|
12
|
-
import"./cli-7e77qqhb.js";
|
|
13
|
-
import"./cli-tp1tqn3k.js";
|
|
14
|
-
import"./cli-rynygvhr.js";
|
|
15
|
-
import"./cli-3y0dgy56.js";
|
|
16
|
-
import"./cli-a4z70e61.js";
|
|
17
|
-
import"./cli-03z6pswp.js";
|
|
18
|
-
import"./cli-63h7v3xf.js";
|
|
19
|
-
import"./cli-cr9r17ze.js";
|
|
20
|
-
import"./cli-a2ftp53z.js";
|
|
21
|
-
import"./cli-1fttdmwt.js";
|
|
22
|
-
import"./cli-gpnb45ck.js";
|
|
23
|
-
import"./cli-8rxa073f.js";
|
|
24
|
-
export {
|
|
25
|
-
runPentestWorkflow,
|
|
26
|
-
runPentestSwarm,
|
|
27
|
-
DEFAULT_CONCURRENCY
|
|
28
|
-
};
|