@pensar/apex 2.0.1 → 2.0.2-canary.9e4e15cf
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-x7n47c84.js → agent-1jp62njk.js} +9 -9
- package/build/{agent-6nhperp2.js → agent-1zfxfgfr.js} +9 -7
- package/build/agent-ssm6x6qs.js +19 -0
- package/build/{apps-2ac4vt09.js → apps-2qd57k2z.js} +20 -15
- package/build/{auth-bmt98hz0.js → auth-bwb51krx.js} +15 -15
- package/build/authentication-3p84dzrr.js +19 -0
- package/build/blackboxAgent-dn68r23n.js +19 -0
- package/build/{blackboxPentest-xngbtdxb.js → blackboxPentest-txe2h6h0.js} +13 -13
- package/build/{cli-0yptvbbm.js → cli-0t1j4jh4.js} +9 -8
- package/build/{cli-fxtbkw2f.js → cli-3n78e7hs.js} +3 -3
- package/build/{cli-hk03x6fq.js → cli-8pw332mm.js} +2 -1
- package/build/{cli-z1dapp7v.js → cli-dk63pna5.js} +48 -11
- package/build/{cli-mfzkhttr.js → cli-e450tvx3.js} +11 -9
- package/build/{cli-f93g10xk.js → cli-jd0bfde5.js} +2 -2
- package/build/{cli-w2st266h.js → cli-jh6k2m9z.js} +31 -2
- package/build/{cli-88bhxzr1.js → cli-kj5vjbnd.js} +1 -1
- package/build/{cli-eptabm2j.js → cli-kxpba6jy.js} +1 -1
- package/build/{cli-1f5zzrxj.js → cli-nc2yvszh.js} +1 -1
- package/build/{cli-8g5cwvbm.js → cli-p904s2yj.js} +1 -1
- package/build/{cli-fa7nrded.js → cli-ppq4kh08.js} +3 -3
- package/build/{cli-zpdmnz8c.js → cli-qdh225p7.js} +353 -227
- package/build/{cli-cc13ydyx.js → cli-w1nb1y6h.js} +1 -1
- package/build/{cli-pyzw545d.js → cli-xcr4rax4.js} +23 -5
- package/build/{cli-ddtmgbqv.js → cli-za4t23gh.js} +2 -2
- package/build/cli.js +44 -39
- package/build/{config-j0gfjhrm.js → config-6s6jsd2a.js} +3 -3
- package/build/{doctor-zn8ms7gs.js → doctor-yh7zdmgt.js} +6 -6
- package/build/{fixes-d8ytvyzn.js → fixes-0xebnr67.js} +15 -15
- package/build/{index-528cyewc.js → index-k3f1hxpe.js} +17 -17
- package/build/{index-3cbcjqw1.js → index-kjky8ack.js} +9 -9
- package/build/{index-hjvqqkem.js → index-qfveae0v.js} +4 -4
- package/build/{index-a1sy2zak.js → index-ss31xhpj.js} +2 -2
- package/build/{index-9d2es97h.js → index-t3rffyf8.js} +3 -3
- package/build/{index-2t2cg8x0.js → index-w81kvhhz.js} +8 -8
- package/build/{index-k6ttkac6.js → index-zgr0dv9e.js} +6 -6
- package/build/{issues-17kdjtdg.js → issues-zjybm91e.js} +15 -15
- package/build/{logs-r4rjar4m.js → logs-t0vtg96a.js} +15 -15
- package/build/{offesecAgent-azd8ahkm.js → offesecAgent-kfjetqzw.js} +8 -8
- package/build/pentest-043y2x03.js +28 -0
- package/build/{pentests-npjb5q1h.js → pentests-h2mk21aq.js} +15 -15
- package/build/{targetedPentest-m24wvscc.js → targetedPentest-m6k9nde8.js} +9 -9
- package/build/targets-pknexde1.js +113 -0
- package/build/threatModel-mb9340cz.js +26 -0
- package/build/{uninstall-7pm6zcah.js → uninstall-bnamn9pn.js} +1 -1
- package/build/{upload-wg0vxmk0.js → upload-xrbxx4hz.js} +6 -6
- package/build/{utils-gd1y4t26.js → utils-6e1wgez0.js} +5 -5
- package/package.json +9 -8
- package/build/agent-4g69jwmq.js +0 -19
- package/build/authentication-c0aj9zaz.js +0 -19
- package/build/blackboxAgent-sgph70e4.js +0 -19
- package/build/pentest-2vsjf0j8.js +0 -28
- package/build/threatModel-7akmfzzm.js +0 -26
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
OffensiveSecurityAgent,
|
|
5
5
|
SKILL_TOOL_NAMES,
|
|
6
6
|
buildBaseSystemPrompt
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-qdh225p7.js";
|
|
8
8
|
import {
|
|
9
9
|
init_dist,
|
|
10
10
|
init_session,
|
|
11
11
|
sessions,
|
|
12
12
|
stepCountIs
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-dk63pna5.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureValidToken,
|
|
16
16
|
getPensarApiUrl,
|
|
17
17
|
init_auth,
|
|
18
18
|
init_constants
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-p904s2yj.js";
|
|
20
20
|
import {
|
|
21
21
|
exports_external1 as exports_external,
|
|
22
22
|
init_zod
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
config,
|
|
26
26
|
init_config
|
|
27
|
-
} from "./cli-
|
|
27
|
+
} from "./cli-kxpba6jy.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__require
|
|
@@ -7067,6 +7067,9 @@ async function listScans() {
|
|
|
7067
7067
|
async function getScan(scanId) {
|
|
7068
7068
|
return apiRequest("GET", `/pentests/${scanId}`);
|
|
7069
7069
|
}
|
|
7070
|
+
async function listPentestTargets(pentestId) {
|
|
7071
|
+
return apiRequest("GET", `/pentests/${pentestId}/targets`);
|
|
7072
|
+
}
|
|
7070
7073
|
async function dispatchPentest(opts) {
|
|
7071
7074
|
return apiRequest("POST", "/pentests", opts);
|
|
7072
7075
|
}
|
|
@@ -7111,6 +7114,21 @@ async function listAgentLogs(issueId, opts) {
|
|
|
7111
7114
|
async function searchAgentLogs(issueId, query, opts) {
|
|
7112
7115
|
return apiRequest("POST", `/issues/${issueId}/logs/search`, { query, ...opts });
|
|
7113
7116
|
}
|
|
7117
|
+
async function listTargetLogs(targetId, opts) {
|
|
7118
|
+
const params = new URLSearchParams;
|
|
7119
|
+
if (opts?.level)
|
|
7120
|
+
params.set("level", opts.level);
|
|
7121
|
+
if (opts?.role)
|
|
7122
|
+
params.set("role", opts.role);
|
|
7123
|
+
if (opts?.limit)
|
|
7124
|
+
params.set("limit", String(opts.limit));
|
|
7125
|
+
const qs = params.toString();
|
|
7126
|
+
const path = `/targets/${targetId}/logs${qs ? `?${qs}` : ""}`;
|
|
7127
|
+
return apiRequest("GET", path);
|
|
7128
|
+
}
|
|
7129
|
+
async function searchTargetLogs(targetId, query, opts) {
|
|
7130
|
+
return apiRequest("POST", `/targets/${targetId}/logs/search`, { query, ...opts });
|
|
7131
|
+
}
|
|
7114
7132
|
|
|
7115
7133
|
// src/core/api/index.ts
|
|
7116
7134
|
init_constants();
|
|
@@ -8200,4 +8218,4 @@ Working directory: ${input.codebasePath}`;
|
|
|
8200
8218
|
});
|
|
8201
8219
|
return { session, outputPath: input.outputPath };
|
|
8202
8220
|
}
|
|
8203
|
-
export { listApps, getApp, createApp, updateApp, deleteApp, listEndpoints, getEndpoint, createEndpoint, updateEndpoint, deleteEndpoint, searchApps, searchEndpoints, listScans, getScan, dispatchPentest, listIssues, getIssue, updateIssue, listFixes, getFix, listAgentLogs, searchAgentLogs, runOffensiveSecurityAgent, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow };
|
|
8221
|
+
export { listApps, getApp, createApp, updateApp, deleteApp, listEndpoints, getEndpoint, createEndpoint, updateEndpoint, deleteEndpoint, searchApps, searchEndpoints, listScans, getScan, listPentestTargets, dispatchPentest, listIssues, getIssue, updateIssue, listFixes, getFix, listAgentLogs, searchAgentLogs, listTargetLogs, searchTargetLogs, runOffensiveSecurityAgent, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-qdh225p7.js";
|
|
4
4
|
import {
|
|
5
5
|
hasToolCall,
|
|
6
6
|
init_dist
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-dk63pna5.js";
|
|
8
8
|
import {
|
|
9
9
|
exports_external1 as exports_external,
|
|
10
10
|
init_zod,
|
package/build/cli.js
CHANGED
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
init_toolset,
|
|
15
15
|
init_utils,
|
|
16
16
|
logger
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import"./cli-
|
|
17
|
+
} from "./cli-dk63pna5.js";
|
|
18
|
+
import"./cli-p904s2yj.js";
|
|
19
19
|
import"./cli-e6rgwtpb.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
21
|
+
import"./cli-kxpba6jy.js";
|
|
22
|
+
import"./cli-kj5vjbnd.js";
|
|
23
23
|
import {
|
|
24
24
|
init_package,
|
|
25
25
|
package_default
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-0t1j4jh4.js";
|
|
27
27
|
import {
|
|
28
28
|
__require,
|
|
29
29
|
__toESM
|
|
@@ -49,9 +49,10 @@ var package_default2 = {
|
|
|
49
49
|
"@opentelemetry/api": "^1.9.0",
|
|
50
50
|
"@opentui/core": "^0.1.107",
|
|
51
51
|
"@opentui/react": "^0.1.107",
|
|
52
|
-
"@pensar/surface": "0.2.
|
|
52
|
+
"@pensar/surface": "0.2.2",
|
|
53
53
|
"@playwright/mcp": "^0.0.54",
|
|
54
54
|
ai: "^6.0.105",
|
|
55
|
+
"camoufox-js": "^0.11.1",
|
|
55
56
|
glob: "^13.0.0",
|
|
56
57
|
"highlight.js": "^11.11.1",
|
|
57
58
|
imapflow: "^1.2.10",
|
|
@@ -115,13 +116,13 @@ var package_default2 = {
|
|
|
115
116
|
url: "https://github.com/pensarai/apex.git"
|
|
116
117
|
},
|
|
117
118
|
scripts: {
|
|
118
|
-
build: "bun build src/cli.ts --outdir build --target node --format esm --splitting --external @opentui/core --external @opentui/react --external @opentui/react/* --external react --external react/jsx-runtime --external react/jsx-dev-runtime --external react-reconciler --external weave",
|
|
119
|
+
build: "bun build src/cli.ts --outdir build --target node --format esm --splitting --external @opentui/core --external @opentui/react --external @opentui/react/* --external react --external react/jsx-runtime --external react/jsx-dev-runtime --external react-reconciler --external weave --external electron --external chromium-bidi --external camoufox-js",
|
|
119
120
|
"build:binaries": "bun run generate:ascii && mkdir -p dist && bun run build:binary:macos-arm64 && bun run build:binary:macos-x64 && bun run build:binary:linux-x64 && bun run build:binary:linux-arm64",
|
|
120
|
-
"build:binary": "bun run generate:ascii && bun build src/cli.ts --compile --outfile pensar",
|
|
121
|
-
"build:binary:linux-arm64": "bun build src/cli.ts --compile --target=bun-linux-arm64 --outfile dist/pensar-linux-arm64",
|
|
122
|
-
"build:binary:linux-x64": "bun build src/cli.ts --compile --target=bun-linux-x64 --outfile dist/pensar-linux-x64",
|
|
123
|
-
"build:binary:macos-arm64": "bun build src/cli.ts --compile --target=bun-darwin-arm64 --outfile dist/pensar-darwin-arm64",
|
|
124
|
-
"build:binary:macos-x64": "bun build src/cli.ts --compile --target=bun-darwin-x64 --outfile dist/pensar-darwin-x64",
|
|
121
|
+
"build:binary": "bun run generate:ascii && bun build src/cli.ts --compile --external electron --external chromium-bidi --external camoufox-js --outfile pensar",
|
|
122
|
+
"build:binary:linux-arm64": "bun build src/cli.ts --compile --external electron --external chromium-bidi --external camoufox-js --target=bun-linux-arm64 --outfile dist/pensar-linux-arm64",
|
|
123
|
+
"build:binary:linux-x64": "bun build src/cli.ts --compile --external electron --external chromium-bidi --external camoufox-js --target=bun-linux-x64 --outfile dist/pensar-linux-x64",
|
|
124
|
+
"build:binary:macos-arm64": "bun build src/cli.ts --compile --external electron --external chromium-bidi --external camoufox-js --target=bun-darwin-arm64 --outfile dist/pensar-darwin-arm64",
|
|
125
|
+
"build:binary:macos-x64": "bun build src/cli.ts --compile --external electron --external chromium-bidi --external camoufox-js --target=bun-darwin-x64 --outfile dist/pensar-darwin-x64",
|
|
125
126
|
check: "biome check --write",
|
|
126
127
|
"check:ci": "biome check",
|
|
127
128
|
"daytona-benchmark": "bun run scripts/daytona-benchmark.ts",
|
|
@@ -143,7 +144,7 @@ var package_default2 = {
|
|
|
143
144
|
tsc: "tsc --noEmit"
|
|
144
145
|
},
|
|
145
146
|
type: "module",
|
|
146
|
-
version: "2.0.
|
|
147
|
+
version: "2.0.2-canary.9e4e15cf"
|
|
147
148
|
};
|
|
148
149
|
|
|
149
150
|
// src/core/ai/index.ts
|
|
@@ -552,7 +553,7 @@ function attachCliAgentStreamListeners(bus) {
|
|
|
552
553
|
async function createInstrumentedBus(session) {
|
|
553
554
|
const bus = new AgentEventBus;
|
|
554
555
|
attachCliAgentStreamListeners(bus);
|
|
555
|
-
const { attachWandbToEventBus } = await import("./upload-
|
|
556
|
+
const { attachWandbToEventBus } = await import("./upload-xrbxx4hz.js");
|
|
556
557
|
const wandbCleanup = await attachWandbToEventBus(session, bus).catch((e) => {
|
|
557
558
|
console.warn("[wandb] Tracing disabled:", e.message);
|
|
558
559
|
return null;
|
|
@@ -569,7 +570,7 @@ async function resolveCliHeaders() {
|
|
|
569
570
|
const { parseHeaderLine: parseHeaderLine2, parseHeadersFromFile, formatParseError: formatParseError2 } = await import("./parse-15kqmy2v.js");
|
|
570
571
|
const merged = {};
|
|
571
572
|
if (!noGlobal) {
|
|
572
|
-
const { config: appConfig } = await import("./index-
|
|
573
|
+
const { config: appConfig } = await import("./index-ss31xhpj.js");
|
|
573
574
|
const cfg = await appConfig.get();
|
|
574
575
|
if (cfg.defaultHeaders) {
|
|
575
576
|
Object.assign(merged, cfg.defaultHeaders);
|
|
@@ -603,8 +604,8 @@ async function resolveCliModel() {
|
|
|
603
604
|
const explicit = getArg("--model");
|
|
604
605
|
if (explicit)
|
|
605
606
|
return explicit;
|
|
606
|
-
const { config: appConfig } = await import("./index-
|
|
607
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
607
|
+
const { config: appConfig } = await import("./index-ss31xhpj.js");
|
|
608
|
+
const { getDefaultModelForConfig } = await import("./utils-6e1wgez0.js");
|
|
608
609
|
const pensarConfig = await appConfig.get();
|
|
609
610
|
const defaultModel = getDefaultModelForConfig(pensarConfig);
|
|
610
611
|
if (!defaultModel) {
|
|
@@ -632,6 +633,7 @@ Usage:
|
|
|
632
633
|
pensar uninstall Uninstall Pensar (keeps sessions, memories, skills)
|
|
633
634
|
pensar apps Manage the attack surface (apps & endpoints)
|
|
634
635
|
pensar pentests List and manage pentests
|
|
636
|
+
pensar targets List pentest targets and view their agent logs
|
|
635
637
|
pensar issues List and manage security issues
|
|
636
638
|
pensar fixes View security fixes
|
|
637
639
|
pensar logs View agent execution logs
|
|
@@ -689,9 +691,9 @@ Global options:
|
|
|
689
691
|
async function runPentest() {
|
|
690
692
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
691
693
|
config();
|
|
692
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
693
|
-
const { sessions: sessions2 } = await import("./index-
|
|
694
|
-
const { config: appConfig } = await import("./index-
|
|
694
|
+
const { runPentestAgent } = await import("./blackboxPentest-txe2h6h0.js");
|
|
695
|
+
const { sessions: sessions2 } = await import("./index-zgr0dv9e.js");
|
|
696
|
+
const { config: appConfig } = await import("./index-ss31xhpj.js");
|
|
695
697
|
const target = getArgRequired("--target");
|
|
696
698
|
const cwd = getArg("--cwd");
|
|
697
699
|
const mode = getArg("--mode");
|
|
@@ -761,9 +763,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
761
763
|
async function runTargetedPentest() {
|
|
762
764
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
763
765
|
config();
|
|
764
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
765
|
-
const { sessions: sessions2 } = await import("./index-
|
|
766
|
-
const { config: appConfig } = await import("./index-
|
|
766
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-m6k9nde8.js");
|
|
767
|
+
const { sessions: sessions2 } = await import("./index-zgr0dv9e.js");
|
|
768
|
+
const { config: appConfig } = await import("./index-ss31xhpj.js");
|
|
767
769
|
const target = getArgRequired("--target");
|
|
768
770
|
const objectives = getAllArgs("--objective");
|
|
769
771
|
const pensarConfig = await appConfig.get();
|
|
@@ -815,8 +817,8 @@ POCs: ${pocsPath}`);
|
|
|
815
817
|
async function runThreatModel() {
|
|
816
818
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
817
819
|
config();
|
|
818
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
819
|
-
const { config: appConfig } = await import("./index-
|
|
820
|
+
const { runThreatModelWorkflow } = await import("./threatModel-mb9340cz.js");
|
|
821
|
+
const { config: appConfig } = await import("./index-ss31xhpj.js");
|
|
820
822
|
const path2 = await import("path");
|
|
821
823
|
const pensarConfig = await appConfig.get();
|
|
822
824
|
const model = await resolveCliModel();
|
|
@@ -852,10 +854,10 @@ Threat model written to: ${resolvedPath}`);
|
|
|
852
854
|
async function runOperator() {
|
|
853
855
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
854
856
|
config();
|
|
855
|
-
const { runOffensiveSecurityAgent } = await import("./offesecAgent-
|
|
856
|
-
const { sessions: sessions2, normalizeMessages, getResumeMessages } = await import("./index-
|
|
857
|
-
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-
|
|
858
|
-
const { config: appConfig } = await import("./index-
|
|
857
|
+
const { runOffensiveSecurityAgent } = await import("./offesecAgent-kfjetqzw.js");
|
|
858
|
+
const { sessions: sessions2, normalizeMessages, getResumeMessages } = await import("./index-zgr0dv9e.js");
|
|
859
|
+
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-w81kvhhz.js");
|
|
860
|
+
const { config: appConfig } = await import("./index-ss31xhpj.js");
|
|
859
861
|
const { createInterface } = await import("readline");
|
|
860
862
|
const { readFileSync: readFileSync2, existsSync } = await import("fs");
|
|
861
863
|
const path2 = await import("path");
|
|
@@ -969,32 +971,35 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
969
971
|
await runTargetedPentest();
|
|
970
972
|
} else if (command === "login" || command === "auth") {
|
|
971
973
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
972
|
-
await import("./auth-
|
|
974
|
+
await import("./auth-bwb51krx.js");
|
|
973
975
|
} else if (command === "uninstall") {
|
|
974
976
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
975
|
-
await import("./uninstall-
|
|
977
|
+
await import("./uninstall-bnamn9pn.js");
|
|
976
978
|
} else if (command === "apps") {
|
|
977
979
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
978
|
-
await import("./apps-
|
|
980
|
+
await import("./apps-2qd57k2z.js");
|
|
979
981
|
} else if (command === "pentests") {
|
|
980
982
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
981
|
-
await import("./pentests-
|
|
983
|
+
await import("./pentests-h2mk21aq.js");
|
|
984
|
+
} else if (command === "targets") {
|
|
985
|
+
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
986
|
+
await import("./targets-pknexde1.js");
|
|
982
987
|
} else if (command === "issues") {
|
|
983
988
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
984
|
-
await import("./issues-
|
|
989
|
+
await import("./issues-zjybm91e.js");
|
|
985
990
|
} else if (command === "fixes") {
|
|
986
991
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
987
|
-
await import("./fixes-
|
|
992
|
+
await import("./fixes-0xebnr67.js");
|
|
988
993
|
} else if (command === "logs") {
|
|
989
994
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
990
|
-
await import("./logs-
|
|
995
|
+
await import("./logs-t0vtg96a.js");
|
|
991
996
|
} else if (command === "config") {
|
|
992
997
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
993
|
-
await import("./config-
|
|
998
|
+
await import("./config-6s6jsd2a.js");
|
|
994
999
|
} else if (command === "threat-model") {
|
|
995
1000
|
await runThreatModel();
|
|
996
1001
|
} else if (command === "doctor") {
|
|
997
|
-
const { runDoctor } = await import("./doctor-
|
|
1002
|
+
const { runDoctor } = await import("./doctor-yh7zdmgt.js");
|
|
998
1003
|
await runDoctor();
|
|
999
1004
|
} else if (args.length === 0) {
|
|
1000
1005
|
if (process.env.PENSAR_NO_TUI === "1") {
|
|
@@ -1002,7 +1007,7 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
1002
1007
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
1003
1008
|
process.exit(1);
|
|
1004
1009
|
}
|
|
1005
|
-
await import("./index-
|
|
1010
|
+
await import("./index-k3f1hxpe.js");
|
|
1006
1011
|
} else {
|
|
1007
1012
|
console.error(`Error: Unknown command '${command}'`);
|
|
1008
1013
|
console.error();
|
|
@@ -11,9 +11,9 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
config,
|
|
13
13
|
init_config
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
14
|
+
} from "./cli-kxpba6jy.js";
|
|
15
|
+
import"./cli-kj5vjbnd.js";
|
|
16
|
+
import"./cli-0t1j4jh4.js";
|
|
17
17
|
import"./cli-8rxa073f.js";
|
|
18
18
|
|
|
19
19
|
// src/cli/config.ts
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolExists
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
3
|
+
} from "./cli-w1nb1y6h.js";
|
|
4
|
+
import"./cli-dk63pna5.js";
|
|
5
|
+
import"./cli-p904s2yj.js";
|
|
6
6
|
import"./cli-e6rgwtpb.js";
|
|
7
7
|
import"./cli-gpnb45ck.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-kxpba6jy.js";
|
|
9
|
+
import"./cli-kj5vjbnd.js";
|
|
10
|
+
import"./cli-0t1j4jh4.js";
|
|
11
11
|
import"./cli-8rxa073f.js";
|
|
12
12
|
|
|
13
13
|
// src/core/doctor.ts
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getFix,
|
|
4
4
|
listFixes
|
|
5
|
-
} from "./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
5
|
+
} from "./cli-xcr4rax4.js";
|
|
6
|
+
import"./cli-e450tvx3.js";
|
|
7
|
+
import"./cli-3n78e7hs.js";
|
|
8
|
+
import"./cli-jh6k2m9z.js";
|
|
9
|
+
import"./cli-ppq4kh08.js";
|
|
10
|
+
import"./cli-jd0bfde5.js";
|
|
11
|
+
import"./cli-za4t23gh.js";
|
|
12
12
|
import"./cli-9fsre5pt.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
13
|
+
import"./cli-8pw332mm.js";
|
|
14
|
+
import"./cli-qdh225p7.js";
|
|
15
|
+
import"./cli-w1nb1y6h.js";
|
|
16
16
|
import"./cli-fw5r7pfj.js";
|
|
17
17
|
import"./cli-c8131c4q.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
18
|
+
import"./cli-dk63pna5.js";
|
|
19
|
+
import"./cli-p904s2yj.js";
|
|
20
20
|
import"./cli-e6rgwtpb.js";
|
|
21
21
|
import"./cli-gpnb45ck.js";
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
22
|
+
import"./cli-kxpba6jy.js";
|
|
23
|
+
import"./cli-kj5vjbnd.js";
|
|
24
|
+
import"./cli-0t1j4jh4.js";
|
|
25
25
|
import"./cli-8rxa073f.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/fixes.ts
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
buildThreatModelPrompt,
|
|
8
8
|
createSkillsRegistry,
|
|
9
9
|
runOffensiveSecurityAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-xcr4rax4.js";
|
|
11
11
|
import {
|
|
12
12
|
REPORT_FILENAME_MD,
|
|
13
13
|
convertModelMessagesToUI,
|
|
14
14
|
loadSubagents,
|
|
15
15
|
readExecutionMetrics,
|
|
16
16
|
writeExecutionMetrics
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
17
|
+
} from "./cli-e450tvx3.js";
|
|
18
|
+
import"./cli-3n78e7hs.js";
|
|
19
|
+
import"./cli-jh6k2m9z.js";
|
|
20
|
+
import"./cli-ppq4kh08.js";
|
|
21
|
+
import"./cli-jd0bfde5.js";
|
|
22
|
+
import"./cli-za4t23gh.js";
|
|
23
23
|
import"./cli-9fsre5pt.js";
|
|
24
|
-
import"./cli-
|
|
24
|
+
import"./cli-8pw332mm.js";
|
|
25
25
|
import {
|
|
26
26
|
ALL_TOOL_NAMES,
|
|
27
27
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
@@ -37,10 +37,10 @@ import {
|
|
|
37
37
|
hasPlan,
|
|
38
38
|
planFilePath,
|
|
39
39
|
readPlan
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-qdh225p7.js";
|
|
41
41
|
import {
|
|
42
42
|
detectOSAndEnhancePrompt
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-w1nb1y6h.js";
|
|
44
44
|
import {
|
|
45
45
|
formatParseError,
|
|
46
46
|
parseHeaderLine
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
import {
|
|
57
57
|
createWeaveTracer,
|
|
58
58
|
resolveConfig
|
|
59
|
-
} from "./cli-
|
|
59
|
+
} from "./cli-nc2yvszh.js";
|
|
60
60
|
import {
|
|
61
61
|
AVAILABLE_PROVIDERS,
|
|
62
62
|
init_types
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
stepCountIs,
|
|
83
83
|
write,
|
|
84
84
|
writeErrorLog
|
|
85
|
-
} from "./cli-
|
|
85
|
+
} from "./cli-dk63pna5.js";
|
|
86
86
|
import {
|
|
87
87
|
disconnect,
|
|
88
88
|
fetchWorkspaces,
|
|
@@ -96,21 +96,21 @@ import {
|
|
|
96
96
|
selectWorkspace,
|
|
97
97
|
startDeviceFlow,
|
|
98
98
|
validateGateway
|
|
99
|
-
} from "./cli-
|
|
99
|
+
} from "./cli-p904s2yj.js";
|
|
100
100
|
import"./cli-e6rgwtpb.js";
|
|
101
101
|
import"./cli-gpnb45ck.js";
|
|
102
102
|
import {
|
|
103
103
|
config,
|
|
104
104
|
init_config as init_config2
|
|
105
|
-
} from "./cli-
|
|
105
|
+
} from "./cli-kxpba6jy.js";
|
|
106
106
|
import {
|
|
107
107
|
init_config,
|
|
108
108
|
update
|
|
109
|
-
} from "./cli-
|
|
109
|
+
} from "./cli-kj5vjbnd.js";
|
|
110
110
|
import {
|
|
111
111
|
checkForUpdate,
|
|
112
112
|
init_installation
|
|
113
|
-
} from "./cli-
|
|
113
|
+
} from "./cli-0t1j4jh4.js";
|
|
114
114
|
import {
|
|
115
115
|
__commonJS,
|
|
116
116
|
__esm,
|
|
@@ -69676,7 +69676,7 @@ function AppContent({
|
|
|
69676
69676
|
toast(`Update available: v${currentVersion} → v${latestVersion}. Run: pensar upgrade`, "warn", 8000);
|
|
69677
69677
|
});
|
|
69678
69678
|
const checkAuthToken = async () => {
|
|
69679
|
-
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-
|
|
69679
|
+
const { isTokenExpired, isConnected: isConnected2 } = await import("./index-qfveae0v.js");
|
|
69680
69680
|
if (isConnected2(config2.data) && config2.data.accessToken && isTokenExpired(config2.data.accessToken, 60) && !config2.data.refreshToken && !config2.data.pensarAPIKey) {
|
|
69681
69681
|
toast("Your Pensar Console session has expired. Run /login to refresh.", "warn", 8000);
|
|
69682
69682
|
}
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT,
|
|
8
8
|
WHITEBOX_DISCOVERY_SYSTEM_PROMPT,
|
|
9
9
|
WhiteboxAttackSurfaceAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-za4t23gh.js";
|
|
11
11
|
import"./cli-9fsre5pt.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
12
|
+
import"./cli-8pw332mm.js";
|
|
13
|
+
import"./cli-qdh225p7.js";
|
|
14
|
+
import"./cli-w1nb1y6h.js";
|
|
15
15
|
import"./cli-c8131c4q.js";
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
16
|
+
import"./cli-dk63pna5.js";
|
|
17
|
+
import"./cli-p904s2yj.js";
|
|
18
18
|
import"./cli-e6rgwtpb.js";
|
|
19
19
|
import"./cli-gpnb45ck.js";
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
20
|
+
import"./cli-kxpba6jy.js";
|
|
21
|
+
import"./cli-kj5vjbnd.js";
|
|
22
|
+
import"./cli-0t1j4jh4.js";
|
|
23
23
|
import"./cli-8rxa073f.js";
|
|
24
24
|
export {
|
|
25
25
|
WhiteboxAttackSurfaceAgent,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
signGatewayRequest,
|
|
13
13
|
startDeviceFlow,
|
|
14
14
|
validateGateway
|
|
15
|
-
} from "./cli-
|
|
16
|
-
import"./cli-
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
15
|
+
} from "./cli-p904s2yj.js";
|
|
16
|
+
import"./cli-kxpba6jy.js";
|
|
17
|
+
import"./cli-kj5vjbnd.js";
|
|
18
|
+
import"./cli-0t1j4jh4.js";
|
|
19
19
|
import"./cli-8rxa073f.js";
|
|
20
20
|
init_auth();
|
|
21
21
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApexFindingObject
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-8pw332mm.js";
|
|
4
4
|
import {
|
|
5
5
|
ALL_TOOL_NAMES,
|
|
6
6
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
@@ -83,16 +83,16 @@ import {
|
|
|
83
83
|
validateDiscovery,
|
|
84
84
|
webSearch,
|
|
85
85
|
writePlan
|
|
86
|
-
} from "./cli-
|
|
87
|
-
import"./cli-
|
|
86
|
+
} from "./cli-qdh225p7.js";
|
|
87
|
+
import"./cli-w1nb1y6h.js";
|
|
88
88
|
import"./cli-c8131c4q.js";
|
|
89
|
-
import"./cli-
|
|
90
|
-
import"./cli-
|
|
89
|
+
import"./cli-dk63pna5.js";
|
|
90
|
+
import"./cli-p904s2yj.js";
|
|
91
91
|
import"./cli-e6rgwtpb.js";
|
|
92
92
|
import"./cli-gpnb45ck.js";
|
|
93
|
-
import"./cli-
|
|
94
|
-
import"./cli-
|
|
95
|
-
import"./cli-
|
|
93
|
+
import"./cli-kxpba6jy.js";
|
|
94
|
+
import"./cli-kj5vjbnd.js";
|
|
95
|
+
import"./cli-0t1j4jh4.js";
|
|
96
96
|
import"./cli-8rxa073f.js";
|
|
97
97
|
export {
|
|
98
98
|
writePlan,
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
update,
|
|
18
18
|
write,
|
|
19
19
|
writeRaw
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
} from "./cli-dk63pna5.js";
|
|
21
|
+
import"./cli-p904s2yj.js";
|
|
22
22
|
import {
|
|
23
23
|
init_zod,
|
|
24
24
|
zod_default
|
|
25
25
|
} from "./cli-e6rgwtpb.js";
|
|
26
26
|
import"./cli-gpnb45ck.js";
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
27
|
+
import"./cli-kxpba6jy.js";
|
|
28
|
+
import"./cli-kj5vjbnd.js";
|
|
29
29
|
import {
|
|
30
30
|
getCurrentVersion,
|
|
31
31
|
init_installation
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-0t1j4jh4.js";
|
|
33
33
|
import {
|
|
34
34
|
__require
|
|
35
35
|
} from "./cli-8rxa073f.js";
|
|
@@ -302,7 +302,7 @@ async function create(input) {
|
|
|
302
302
|
if (normalizedConfig?.headers !== undefined) {
|
|
303
303
|
snapshotHeaders = { ...normalizedConfig.headers };
|
|
304
304
|
} else {
|
|
305
|
-
const { config: appConfig } = await import("./index-
|
|
305
|
+
const { config: appConfig } = await import("./index-t3rffyf8.js");
|
|
306
306
|
const cfg = await appConfig.get();
|
|
307
307
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
308
308
|
}
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
getIssue,
|
|
4
4
|
listIssues,
|
|
5
5
|
updateIssue
|
|
6
|
-
} from "./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
6
|
+
} from "./cli-xcr4rax4.js";
|
|
7
|
+
import"./cli-e450tvx3.js";
|
|
8
|
+
import"./cli-3n78e7hs.js";
|
|
9
|
+
import"./cli-jh6k2m9z.js";
|
|
10
|
+
import"./cli-ppq4kh08.js";
|
|
11
|
+
import"./cli-jd0bfde5.js";
|
|
12
|
+
import"./cli-za4t23gh.js";
|
|
13
13
|
import"./cli-9fsre5pt.js";
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
14
|
+
import"./cli-8pw332mm.js";
|
|
15
|
+
import"./cli-qdh225p7.js";
|
|
16
|
+
import"./cli-w1nb1y6h.js";
|
|
17
17
|
import"./cli-fw5r7pfj.js";
|
|
18
18
|
import"./cli-c8131c4q.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
19
|
+
import"./cli-dk63pna5.js";
|
|
20
|
+
import"./cli-p904s2yj.js";
|
|
21
21
|
import"./cli-e6rgwtpb.js";
|
|
22
22
|
import"./cli-gpnb45ck.js";
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
23
|
+
import"./cli-kxpba6jy.js";
|
|
24
|
+
import"./cli-kj5vjbnd.js";
|
|
25
|
+
import"./cli-0t1j4jh4.js";
|
|
26
26
|
import"./cli-8rxa073f.js";
|
|
27
27
|
|
|
28
28
|
// src/cli/issues.ts
|