@pensar/apex 1.3.0-canary.c0b95df3 → 1.3.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-ptgv5ykv.js +19 -0
- package/build/{agent-97m7tkpf.js → agent-sr0hmy5v.js} +7 -7
- package/build/{auth-qqbaj612.js → auth-rwq0wng1.js} +4 -4
- package/build/{authentication-zhr4zdds.js → authentication-wspdpbn5.js} +7 -8
- package/build/{blackboxAgent-p9d9457p.js → blackboxAgent-24afj2hz.js} +8 -8
- package/build/{blackboxPentest-tvmjsvap.js → blackboxPentest-mkxcnrw7.js} +12 -12
- package/build/{cli-3h1t6f9h.js → cli-0g4t63b4.js} +366 -10549
- package/build/{cli-q9zgbdpc.js → cli-3xtrkqg4.js} +1 -1
- package/build/{cli-3zrry4dg.js → cli-4g7p74n6.js} +1 -3
- package/build/{cli-jzahge97.js → cli-5na5vp61.js} +6 -6
- package/build/{cli-9969518r.js → cli-5vw8207q.js} +1 -1
- package/build/{cli-3fn6d4pt.js → cli-6vry2ysr.js} +1 -1
- package/build/{cli-2ja75dsz.js → cli-94g57s2v.js} +1 -2
- package/build/{cli-z7ejvarb.js → cli-b07ha34g.js} +1 -1
- package/build/{cli-vekv219j.js → cli-cks9ex9s.js} +1 -1
- package/build/{cli-y9kk9q6n.js → cli-hktm19kk.js} +1 -1
- package/build/{cli-2sq2kqh1.js → cli-med79d1r.js} +2 -2
- package/build/{cli-dzzf9m5e.js → cli-vzz35y3s.js} +1 -1
- package/build/{cli-pyf1ftj8.js → cli-xny1z0ra.js} +2 -2
- package/build/{cli-thtbxsva.js → cli-zykrzz9x.js} +2 -3
- package/build/cli.js +26 -28
- package/build/{fixes-aa6jd5kg.js → fixes-ywmcncvj.js} +4 -4
- package/build/{index-rm972wnm.js → index-3e49mq1x.js} +4 -4
- package/build/{index-bmtt83ar.js → index-ex5zcvtn.js} +7 -50
- package/build/{index-y13qss6f.js → index-kc8dw7at.js} +2 -2
- package/build/{index-hpe2h5a7.js → index-w71sej88.js} +7 -7
- package/build/{index-hafgteqb.js → index-x4xz3xvg.js} +10 -10
- package/build/{issues-4j7jvbrq.js → issues-zz3spexp.js} +4 -4
- package/build/{logs-wraftaa2.js → logs-96v0e8ck.js} +4 -4
- package/build/{offesecAgent-h8pa499d.js → offesecAgent-hg82ja3x.js} +7 -7
- package/build/{pentest-1xxbxewz.js → pentest-2skesg08.js} +12 -12
- package/build/{pentests-tfkjrsh9.js → pentests-ed44ket2.js} +4 -4
- package/build/{projects-q06fynf8.js → projects-4h4v4gct.js} +4 -4
- package/build/{targetedPentest-d7cbc8c4.js → targetedPentest-hny9146a.js} +8 -8
- package/build/{threatModel-z7ej9gye.js → threatModel-620g5rm6.js} +8 -8
- package/build/{uninstall-vdwpn0d5.js → uninstall-zqbp7j49.js} +1 -1
- package/package.json +1 -3
- package/build/agent-t7x2rptx.js +0 -19
|
@@ -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.3.0
|
|
6
|
+
version: "1.3.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",
|
|
@@ -68,7 +68,6 @@ var package_default = {
|
|
|
68
68
|
"@eslint/js": "^10.0.1",
|
|
69
69
|
"@types/bun": "^1.3.0",
|
|
70
70
|
"@types/mailparser": "^3.4.6",
|
|
71
|
-
"@types/nodemailer": "^8.0.0",
|
|
72
71
|
"@types/react": "^19.2.6",
|
|
73
72
|
"@typescript-eslint/eslint-plugin": "^8.55.0",
|
|
74
73
|
"@typescript-eslint/parser": "^8.55.0",
|
|
@@ -107,7 +106,6 @@ var package_default = {
|
|
|
107
106
|
mailparser: "^3.9.3",
|
|
108
107
|
marked: "^16.4.0",
|
|
109
108
|
nanoid: "^5.1.6",
|
|
110
|
-
nodemailer: "^8.0.7",
|
|
111
109
|
"p-limit": "^7.2.0",
|
|
112
110
|
react: "^19.2.0",
|
|
113
111
|
sharp: "^0.34.4",
|
|
@@ -14,20 +14,20 @@ import {
|
|
|
14
14
|
updateManifestEntryStatus,
|
|
15
15
|
writeAgentManifest,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-3xtrkqg4.js";
|
|
18
18
|
import {
|
|
19
19
|
TargetedPentestAgent,
|
|
20
20
|
buildPentestSystemPrompt
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-94g57s2v.js";
|
|
22
22
|
import {
|
|
23
23
|
BlackboxAttackSurfaceAgent
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-zykrzz9x.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-med79d1r.js";
|
|
31
31
|
import {
|
|
32
32
|
EndpointSchema
|
|
33
33
|
} from "./cli-0fy9j5dw.js";
|
|
@@ -35,10 +35,10 @@ import {
|
|
|
35
35
|
FindingsRegistry,
|
|
36
36
|
OffensiveSecurityAgent,
|
|
37
37
|
PLAN_MODE_TOOL_NAMES
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-0g4t63b4.js";
|
|
39
39
|
import {
|
|
40
40
|
hasToolCall
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-xny1z0ra.js";
|
|
42
42
|
import {
|
|
43
43
|
exports_external1 as exports_external,
|
|
44
44
|
init_zod
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent,
|
|
3
3
|
readPlan
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-0g4t63b4.js";
|
|
5
5
|
import {
|
|
6
6
|
exports_external1 as exports_external,
|
|
7
7
|
init_zod
|
|
@@ -75,7 +75,6 @@ class TargetedPentestAgent extends OffensiveSecurityAgent {
|
|
|
75
75
|
"email_list_messages",
|
|
76
76
|
"email_search_messages",
|
|
77
77
|
"email_get_message",
|
|
78
|
-
"send_email",
|
|
79
78
|
"list_memories",
|
|
80
79
|
"get_memory",
|
|
81
80
|
"add_memory",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-0g4t63b4.js";
|
|
4
4
|
import {
|
|
5
5
|
stepCountIs
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-xny1z0ra.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.
|
|
@@ -75,12 +75,12 @@ import {
|
|
|
75
75
|
} from "./cli-0ghkg3w6.js";
|
|
76
76
|
import {
|
|
77
77
|
signGatewayRequest
|
|
78
|
-
} from "./cli-
|
|
78
|
+
} from "./cli-hktm19kk.js";
|
|
79
79
|
import {
|
|
80
80
|
config,
|
|
81
81
|
ensureValidToken,
|
|
82
82
|
getPensarGatewayUrl
|
|
83
|
-
} from "./cli-
|
|
83
|
+
} from "./cli-b07ha34g.js";
|
|
84
84
|
import {
|
|
85
85
|
__commonJS,
|
|
86
86
|
__esm,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-0g4t63b4.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-xny1z0ra.js";
|
|
11
11
|
|
|
12
12
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
13
13
|
import { join } from "path";
|
|
@@ -431,7 +431,6 @@ class BlackboxAttackSurfaceAgent extends OffensiveSecurityAgent {
|
|
|
431
431
|
"email_list_messages",
|
|
432
432
|
"email_search_messages",
|
|
433
433
|
"email_get_message",
|
|
434
|
-
"send_email",
|
|
435
434
|
"web_search",
|
|
436
435
|
"get_page"
|
|
437
436
|
],
|
package/build/cli.js
CHANGED
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
import"./cli-3y0dgy56.js";
|
|
7
7
|
import {
|
|
8
8
|
init_toolset
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-xny1z0ra.js";
|
|
10
10
|
import {
|
|
11
11
|
init_models
|
|
12
12
|
} from "./cli-03z6pswp.js";
|
|
13
13
|
import"./cli-0ghkg3w6.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
14
|
+
import"./cli-hktm19kk.js";
|
|
15
|
+
import"./cli-b07ha34g.js";
|
|
16
|
+
import"./cli-5vw8207q.js";
|
|
17
17
|
import {
|
|
18
18
|
package_default
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-4g7p74n6.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
21
|
import {
|
|
22
22
|
__require,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
// package.json
|
|
26
26
|
var package_default2 = {
|
|
27
27
|
name: "@pensar/apex",
|
|
28
|
-
version: "1.3.0
|
|
28
|
+
version: "1.3.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",
|
|
@@ -90,7 +90,6 @@ var package_default2 = {
|
|
|
90
90
|
"@eslint/js": "^10.0.1",
|
|
91
91
|
"@types/bun": "^1.3.0",
|
|
92
92
|
"@types/mailparser": "^3.4.6",
|
|
93
|
-
"@types/nodemailer": "^8.0.0",
|
|
94
93
|
"@types/react": "^19.2.6",
|
|
95
94
|
"@typescript-eslint/eslint-plugin": "^8.55.0",
|
|
96
95
|
"@typescript-eslint/parser": "^8.55.0",
|
|
@@ -129,7 +128,6 @@ var package_default2 = {
|
|
|
129
128
|
mailparser: "^3.9.3",
|
|
130
129
|
marked: "^16.4.0",
|
|
131
130
|
nanoid: "^5.1.6",
|
|
132
|
-
nodemailer: "^8.0.7",
|
|
133
131
|
"p-limit": "^7.2.0",
|
|
134
132
|
react: "^19.2.0",
|
|
135
133
|
sharp: "^0.34.4",
|
|
@@ -550,9 +548,9 @@ Global options:
|
|
|
550
548
|
async function runPentest() {
|
|
551
549
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
552
550
|
config2();
|
|
553
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
554
|
-
const { sessions } = await import("./index-
|
|
555
|
-
const { config: appConfig } = await import("./index-
|
|
551
|
+
const { runPentestAgent } = await import("./blackboxPentest-mkxcnrw7.js");
|
|
552
|
+
const { sessions } = await import("./index-ex5zcvtn.js");
|
|
553
|
+
const { config: appConfig } = await import("./index-kc8dw7at.js");
|
|
556
554
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
557
555
|
const target = getArgRequired("--target");
|
|
558
556
|
const cwd = getArg("--cwd");
|
|
@@ -618,9 +616,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
618
616
|
async function runTargetedPentest() {
|
|
619
617
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
620
618
|
config2();
|
|
621
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
622
|
-
const { sessions } = await import("./index-
|
|
623
|
-
const { config: appConfig } = await import("./index-
|
|
619
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-hny9146a.js");
|
|
620
|
+
const { sessions } = await import("./index-ex5zcvtn.js");
|
|
621
|
+
const { config: appConfig } = await import("./index-kc8dw7at.js");
|
|
624
622
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
625
623
|
const target = getArgRequired("--target");
|
|
626
624
|
const objectives = getAllArgs("--objective");
|
|
@@ -670,8 +668,8 @@ POCs: ${pocsPath}`);
|
|
|
670
668
|
async function runThreatModel() {
|
|
671
669
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
672
670
|
config2();
|
|
673
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
674
|
-
const { config: appConfig } = await import("./index-
|
|
671
|
+
const { runThreatModelWorkflow } = await import("./threatModel-620g5rm6.js");
|
|
672
|
+
const { config: appConfig } = await import("./index-kc8dw7at.js");
|
|
675
673
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
676
674
|
const path = await import("path");
|
|
677
675
|
const pensarConfig = await appConfig.get();
|
|
@@ -709,10 +707,10 @@ Threat model written to: ${resolvedPath}`);
|
|
|
709
707
|
async function runOperator() {
|
|
710
708
|
const { config: config2 } = await import("./main-3d7dfdvs.js").then((m)=>__toESM(m.default,1));
|
|
711
709
|
config2();
|
|
712
|
-
const { runOffensiveSecurityAgent } = await import("./offesecAgent-
|
|
713
|
-
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-
|
|
714
|
-
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-
|
|
715
|
-
const { config: appConfig } = await import("./index-
|
|
710
|
+
const { runOffensiveSecurityAgent } = await import("./offesecAgent-hg82ja3x.js");
|
|
711
|
+
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-ex5zcvtn.js");
|
|
712
|
+
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-w71sej88.js");
|
|
713
|
+
const { config: appConfig } = await import("./index-kc8dw7at.js");
|
|
716
714
|
const { getDefaultModelForConfig } = await import("./utils-8yqe12jr.js");
|
|
717
715
|
const { createInterface } = await import("readline");
|
|
718
716
|
const { readFileSync: readFileSync2, existsSync } = await import("fs");
|
|
@@ -823,25 +821,25 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
823
821
|
await runTargetedPentest();
|
|
824
822
|
} else if (command === "login" || command === "auth") {
|
|
825
823
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
826
|
-
await import("./auth-
|
|
824
|
+
await import("./auth-rwq0wng1.js");
|
|
827
825
|
} else if (command === "uninstall") {
|
|
828
826
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
829
|
-
await import("./uninstall-
|
|
827
|
+
await import("./uninstall-zqbp7j49.js");
|
|
830
828
|
} else if (command === "projects") {
|
|
831
829
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
832
|
-
await import("./projects-
|
|
830
|
+
await import("./projects-4h4v4gct.js");
|
|
833
831
|
} else if (command === "pentests") {
|
|
834
832
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
835
|
-
await import("./pentests-
|
|
833
|
+
await import("./pentests-ed44ket2.js");
|
|
836
834
|
} else if (command === "issues") {
|
|
837
835
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
838
|
-
await import("./issues-
|
|
836
|
+
await import("./issues-zz3spexp.js");
|
|
839
837
|
} else if (command === "fixes") {
|
|
840
838
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
841
|
-
await import("./fixes-
|
|
839
|
+
await import("./fixes-ywmcncvj.js");
|
|
842
840
|
} else if (command === "logs") {
|
|
843
841
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
844
|
-
await import("./logs-
|
|
842
|
+
await import("./logs-96v0e8ck.js");
|
|
845
843
|
} else if (command === "threat-model") {
|
|
846
844
|
await runThreatModel();
|
|
847
845
|
} else if (command === "doctor") {
|
|
@@ -853,7 +851,7 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
853
851
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
854
852
|
process.exit(1);
|
|
855
853
|
}
|
|
856
|
-
await import("./index-
|
|
854
|
+
await import("./index-x4xz3xvg.js");
|
|
857
855
|
} else {
|
|
858
856
|
console.error(`Error: Unknown command '${command}'`);
|
|
859
857
|
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-cks9ex9s.js";
|
|
6
|
+
import"./cli-b07ha34g.js";
|
|
7
|
+
import"./cli-5vw8207q.js";
|
|
8
|
+
import"./cli-4g7p74n6.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-hktm19kk.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-b07ha34g.js";
|
|
19
|
+
import"./cli-5vw8207q.js";
|
|
20
|
+
import"./cli-4g7p74n6.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-vzz35y3s.js";
|
|
17
17
|
import {
|
|
18
18
|
ToolsetStateSchema,
|
|
19
19
|
exports_toolset,
|
|
20
20
|
init_toolset,
|
|
21
21
|
toggleTool
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-xny1z0ra.js";
|
|
23
23
|
import"./cli-03z6pswp.js";
|
|
24
24
|
import {
|
|
25
25
|
init_zod,
|
|
26
26
|
zod_default
|
|
27
27
|
} from "./cli-0ghkg3w6.js";
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
28
|
+
import"./cli-hktm19kk.js";
|
|
29
|
+
import"./cli-b07ha34g.js";
|
|
30
|
+
import"./cli-5vw8207q.js";
|
|
31
31
|
import {
|
|
32
32
|
getCurrentVersion
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-4g7p74n6.js";
|
|
34
34
|
import"./cli-gpnb45ck.js";
|
|
35
35
|
import {
|
|
36
36
|
__require,
|
|
@@ -115,45 +115,6 @@ var EmailInboxConfigObject = zod_default.discriminatedUnion("provider", [
|
|
|
115
115
|
var EmailIntegrationConfigObject = zod_default.object({
|
|
116
116
|
inboxes: zod_default.array(EmailInboxConfigObject)
|
|
117
117
|
});
|
|
118
|
-
var SmtpConfigObject = zod_default.object({
|
|
119
|
-
host: zod_default.string(),
|
|
120
|
-
port: zod_default.number(),
|
|
121
|
-
username: zod_default.string(),
|
|
122
|
-
password: zod_default.string(),
|
|
123
|
-
tls: zod_default.boolean().default(true),
|
|
124
|
-
fromAddress: zod_default.string().optional()
|
|
125
|
-
});
|
|
126
|
-
function resolveSmtpConfig(explicit) {
|
|
127
|
-
if (explicit)
|
|
128
|
-
return explicit;
|
|
129
|
-
const fromAddress = process.env.OUTBOUND_EMAIL;
|
|
130
|
-
const resendKey = process.env.RESEND_API_KEY;
|
|
131
|
-
if (resendKey) {
|
|
132
|
-
return {
|
|
133
|
-
host: "smtp.resend.com",
|
|
134
|
-
port: 465,
|
|
135
|
-
username: "resend",
|
|
136
|
-
password: resendKey,
|
|
137
|
-
tls: true,
|
|
138
|
-
fromAddress
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
const host = process.env.SMTP_HOST;
|
|
142
|
-
const port = process.env.SMTP_PORT;
|
|
143
|
-
const username = process.env.SMTP_USERNAME;
|
|
144
|
-
const password = process.env.SMTP_PASSWORD;
|
|
145
|
-
if (host && port && username && password) {
|
|
146
|
-
return {
|
|
147
|
-
host,
|
|
148
|
-
port: parseInt(port, 10),
|
|
149
|
-
username,
|
|
150
|
-
password,
|
|
151
|
-
tls: process.env.SMTP_TLS !== "false",
|
|
152
|
-
fromAddress
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
return;
|
|
156
|
-
}
|
|
157
118
|
var SessionConfigObject = zod_default.object({
|
|
158
119
|
offensiveHeaders: OffensiveHeadersConfigObject.optional(),
|
|
159
120
|
sessionType: zod_default.enum(["web-app"]).optional(),
|
|
@@ -168,7 +129,6 @@ var SessionConfigObject = zod_default.object({
|
|
|
168
129
|
enumerateSubdomains: zod_default.boolean().optional(),
|
|
169
130
|
codebasePath: zod_default.string().optional(),
|
|
170
131
|
emailIntegration: EmailIntegrationConfigObject.optional(),
|
|
171
|
-
smtpConfig: SmtpConfigObject.optional(),
|
|
172
132
|
exfilMode: zod_default.boolean().optional(),
|
|
173
133
|
agentCwd: zod_default.string().optional(),
|
|
174
134
|
prompt: zod_default.string().optional(),
|
|
@@ -280,7 +240,6 @@ async function create(input) {
|
|
|
280
240
|
credentialManager.addFromAuthCredentials(cred);
|
|
281
241
|
}
|
|
282
242
|
}
|
|
283
|
-
const smtpConfig = resolveSmtpConfig(input.config?.smtpConfig);
|
|
284
243
|
const result = {
|
|
285
244
|
id,
|
|
286
245
|
version: getCurrentVersion(),
|
|
@@ -299,8 +258,7 @@ async function create(input) {
|
|
|
299
258
|
"User-Agent": "pensar-apex"
|
|
300
259
|
}
|
|
301
260
|
},
|
|
302
|
-
outcomeGuidance: input.config?.outcomeGuidance || (input.config?.exfilMode ? EXFIL_OUTCOME_GUIDANCE : DEFAULT_OUTCOME_GUIDANCE)
|
|
303
|
-
smtpConfig
|
|
261
|
+
outcomeGuidance: input.config?.outcomeGuidance || (input.config?.exfilMode ? EXFIL_OUTCOME_GUIDANCE : DEFAULT_OUTCOME_GUIDANCE)
|
|
304
262
|
},
|
|
305
263
|
_rateLimiter: rateLimiter,
|
|
306
264
|
credentialManager,
|
|
@@ -561,7 +519,6 @@ export {
|
|
|
561
519
|
toggleTool2 as toggleTool,
|
|
562
520
|
sessions,
|
|
563
521
|
sessionPath,
|
|
564
|
-
resolveSmtpConfig,
|
|
565
522
|
removeMessage,
|
|
566
523
|
remove2 as remove,
|
|
567
524
|
normalizeMessages,
|
|
@@ -7,17 +7,17 @@ import {
|
|
|
7
7
|
SKILL_TOOL_NAMES,
|
|
8
8
|
StepTraceWriter,
|
|
9
9
|
createAllTools
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-0g4t63b4.js";
|
|
11
11
|
import"./cli-tp1tqn3k.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-vzz35y3s.js";
|
|
13
13
|
import"./cli-3y0dgy56.js";
|
|
14
|
-
import"./cli-
|
|
14
|
+
import"./cli-xny1z0ra.js";
|
|
15
15
|
import"./cli-03z6pswp.js";
|
|
16
16
|
import"./cli-0ghkg3w6.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
17
|
+
import"./cli-hktm19kk.js";
|
|
18
|
+
import"./cli-b07ha34g.js";
|
|
19
|
+
import"./cli-5vw8207q.js";
|
|
20
|
+
import"./cli-4g7p74n6.js";
|
|
21
21
|
import"./cli-gpnb45ck.js";
|
|
22
22
|
import"./cli-8rxa073f.js";
|
|
23
23
|
export {
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
buildThreatModelPrompt,
|
|
8
8
|
createSkillsRegistry,
|
|
9
9
|
runOffensiveSecurityAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-6vry2ysr.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-3xtrkqg4.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-0g4t63b4.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-vzz35y3s.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-xny1z0ra.js";
|
|
61
61
|
import {
|
|
62
62
|
AVAILABLE_MODELS,
|
|
63
63
|
init_models
|
|
@@ -73,18 +73,18 @@ import {
|
|
|
73
73
|
selectWorkspace,
|
|
74
74
|
startDeviceFlow,
|
|
75
75
|
validateGateway
|
|
76
|
-
} from "./cli-
|
|
76
|
+
} from "./cli-hktm19kk.js";
|
|
77
77
|
import {
|
|
78
78
|
config,
|
|
79
79
|
getPensarApiUrl,
|
|
80
80
|
getPensarConsoleUrl
|
|
81
|
-
} from "./cli-
|
|
81
|
+
} from "./cli-b07ha34g.js";
|
|
82
82
|
import {
|
|
83
83
|
update
|
|
84
|
-
} from "./cli-
|
|
84
|
+
} from "./cli-5vw8207q.js";
|
|
85
85
|
import {
|
|
86
86
|
checkForUpdate
|
|
87
|
-
} from "./cli-
|
|
87
|
+
} from "./cli-4g7p74n6.js";
|
|
88
88
|
import"./cli-gpnb45ck.js";
|
|
89
89
|
import {
|
|
90
90
|
__commonJS,
|
|
@@ -69359,7 +69359,7 @@ function AppContent({
|
|
|
69359
69359
|
toast(`Update available: v${currentVersion} → v${latestVersion}. Run: pensar upgrade`, "warn", 8000);
|
|
69360
69360
|
});
|
|
69361
69361
|
const checkAuthToken = async () => {
|
|
69362
|
-
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-
|
|
69362
|
+
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-3e49mq1x.js");
|
|
69363
69363
|
if (isConnected2(config2.data) && config2.data.accessToken && isTokenExpired(config2.data.accessToken, 60) && !config2.data.refreshToken && !config2.data.pensarAPIKey) {
|
|
69364
69364
|
toast("Your Pensar Console session has expired. Run /login to refresh.", "warn", 8000);
|
|
69365
69365
|
}
|
|
@@ -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-cks9ex9s.js";
|
|
7
|
+
import"./cli-b07ha34g.js";
|
|
8
|
+
import"./cli-5vw8207q.js";
|
|
9
|
+
import"./cli-4g7p74n6.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-cks9ex9s.js";
|
|
6
|
+
import"./cli-b07ha34g.js";
|
|
7
|
+
import"./cli-5vw8207q.js";
|
|
8
|
+
import"./cli-4g7p74n6.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-0g4t63b4.js";
|
|
4
4
|
import"./cli-tp1tqn3k.js";
|
|
5
|
-
import"./cli-
|
|
5
|
+
import"./cli-vzz35y3s.js";
|
|
6
6
|
import"./cli-3y0dgy56.js";
|
|
7
|
-
import"./cli-
|
|
7
|
+
import"./cli-xny1z0ra.js";
|
|
8
8
|
import"./cli-03z6pswp.js";
|
|
9
9
|
import"./cli-0ghkg3w6.js";
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
10
|
+
import"./cli-hktm19kk.js";
|
|
11
|
+
import"./cli-b07ha34g.js";
|
|
12
|
+
import"./cli-5vw8207q.js";
|
|
13
|
+
import"./cli-4g7p74n6.js";
|
|
14
14
|
import"./cli-gpnb45ck.js";
|
|
15
15
|
import"./cli-8rxa073f.js";
|
|
16
16
|
|