@pensar/apex 2.0.0 → 2.0.1
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/README.md +20 -0
- package/build/agent-4g69jwmq.js +19 -0
- package/build/{agent-x1tnsg7n.js → agent-6nhperp2.js} +7 -10
- package/build/{agent-z8043nrm.js → agent-x7n47c84.js} +9 -12
- package/build/{apps-gdze0s68.js → apps-2ac4vt09.js} +15 -18
- package/build/{auth-24ca1qwx.js → auth-bmt98hz0.js} +16 -19
- package/build/authentication-c0aj9zaz.js +19 -0
- package/build/blackboxAgent-sgph70e4.js +19 -0
- package/build/{blackboxPentest-xwc031xm.js → blackboxPentest-xngbtdxb.js} +13 -16
- package/build/{cli-a20jcpmp.js → cli-0yptvbbm.js} +1 -1
- package/build/{cli-pkdjamer.js → cli-1f5zzrxj.js} +15 -5
- package/build/{cli-0v9x0eby.js → cli-88bhxzr1.js} +1 -1
- package/build/{cli-948dk60p.js → cli-8g5cwvbm.js} +1 -1
- package/build/{cli-mswm4k81.js → cli-cc13ydyx.js} +11 -1
- package/build/{cli-wdmqkshz.js → cli-ddtmgbqv.js} +2 -2
- package/build/{cli-h6nw89zf.js → cli-eptabm2j.js} +1 -1
- package/build/{cli-zpvmaxem.js → cli-f93g10xk.js} +2 -2
- package/build/{cli-zvq4gy61.js → cli-fa7nrded.js} +13 -6
- package/build/{cli-sw5swz40.js → cli-fxtbkw2f.js} +3 -3
- package/build/{cli-ntd42071.js → cli-hk03x6fq.js} +1 -1
- package/build/{cli-5fr9k6m4.js → cli-mfzkhttr.js} +58 -35
- package/build/{cli-31cara07.js → cli-pyzw545d.js} +8 -6
- package/build/{cli-cb5va0cs.js → cli-w2st266h.js} +10 -1
- package/build/{cli-h825qzmd.js → cli-z1dapp7v.js} +1492 -53
- package/build/{cli-k8mvghe1.js → cli-zpdmnz8c.js} +455 -921
- package/build/cli.js +105 -45
- package/build/{config-cmq1cxz3.js → config-j0gfjhrm.js} +3 -3
- package/build/{doctor-2bkpddws.js → doctor-zn8ms7gs.js} +8 -1
- package/build/{fixes-a4qscvkx.js → fixes-d8ytvyzn.js} +15 -18
- package/build/{index-hfhkjj2g.js → index-2t2cg8x0.js} +8 -11
- package/build/{index-54ep0ery.js → index-3cbcjqw1.js} +9 -12
- package/build/{index-48pjf9d2.js → index-528cyewc.js} +94 -126
- package/build/{index-2a1x5nnv.js → index-9d2es97h.js} +3 -3
- package/build/{index-aymt8k9w.js → index-a1sy2zak.js} +2 -2
- package/build/{index-s17r2akv.js → index-hjvqqkem.js} +4 -4
- package/build/{index-0fnbx38r.js → index-k6ttkac6.js} +20 -14
- package/build/{issues-5pnrspt7.js → issues-17kdjtdg.js} +15 -18
- package/build/{logs-1mfm901x.js → logs-r4rjar4m.js} +15 -18
- package/build/{offesecAgent-mrbyc93d.js → offesecAgent-azd8ahkm.js} +8 -11
- package/build/pentest-2vsjf0j8.js +28 -0
- package/build/{pentests-htmtq66d.js → pentests-npjb5q1h.js} +15 -18
- package/build/{targetedPentest-cpbd87rc.js → targetedPentest-m24wvscc.js} +9 -12
- package/build/threatModel-7akmfzzm.js +26 -0
- package/build/{uninstall-6y9dkgyt.js → uninstall-7pm6zcah.js} +1 -1
- package/build/{upload-7wtbr768.js → upload-wg0vxmk0.js} +8 -1
- package/build/{utils-trqnyj77.js → utils-gd1y4t26.js} +6 -8
- package/package.json +1 -1
- package/build/agent-84enr6xn.js +0 -22
- package/build/authentication-0k43jay4.js +0 -22
- package/build/blackboxAgent-76tnwwg7.js +0 -22
- package/build/cli-1yavz2pb.js +0 -17
- package/build/cli-3knnkdps.js +0 -666
- package/build/cli-s1nckt4k.js +0 -20
- package/build/pentest-wy4eeagc.js +0 -31
- package/build/threatModel-9n56z6a6.js +0 -29
package/build/cli.js
CHANGED
|
@@ -5,24 +5,25 @@ import {
|
|
|
5
5
|
createThreatModelPrompt
|
|
6
6
|
} from "./cli-fw5r7pfj.js";
|
|
7
7
|
import"./cli-c8131c4q.js";
|
|
8
|
-
import {
|
|
9
|
-
init_toolset
|
|
10
|
-
} from "./cli-s1nckt4k.js";
|
|
11
8
|
import {
|
|
12
9
|
buildAuthConfig,
|
|
13
|
-
init_ai,
|
|
10
|
+
init_ai1 as init_ai,
|
|
14
11
|
init_models,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
init_session,
|
|
13
|
+
init_structured,
|
|
14
|
+
init_toolset,
|
|
15
|
+
init_utils,
|
|
16
|
+
logger
|
|
17
|
+
} from "./cli-z1dapp7v.js";
|
|
18
|
+
import"./cli-8g5cwvbm.js";
|
|
18
19
|
import"./cli-e6rgwtpb.js";
|
|
19
|
-
import"./cli-h6nw89zf.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
|
-
import"./cli-
|
|
21
|
+
import"./cli-eptabm2j.js";
|
|
22
|
+
import"./cli-88bhxzr1.js";
|
|
22
23
|
import {
|
|
23
24
|
init_package,
|
|
24
25
|
package_default
|
|
25
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-0yptvbbm.js";
|
|
26
27
|
import {
|
|
27
28
|
__require,
|
|
28
29
|
__toESM
|
|
@@ -142,7 +143,7 @@ var package_default2 = {
|
|
|
142
143
|
tsc: "tsc --noEmit"
|
|
143
144
|
},
|
|
144
145
|
type: "module",
|
|
145
|
-
version: "2.0.
|
|
146
|
+
version: "2.0.1"
|
|
146
147
|
};
|
|
147
148
|
|
|
148
149
|
// src/core/ai/index.ts
|
|
@@ -150,6 +151,45 @@ init_ai();
|
|
|
150
151
|
init_models();
|
|
151
152
|
init_utils();
|
|
152
153
|
|
|
154
|
+
// src/core/cli/logLevelArgs.ts
|
|
155
|
+
var VALID_LOG_LEVELS = new Set([
|
|
156
|
+
"DEBUG",
|
|
157
|
+
"INFO",
|
|
158
|
+
"WARN",
|
|
159
|
+
"ERROR",
|
|
160
|
+
"SILENT"
|
|
161
|
+
]);
|
|
162
|
+
function resolveCliLogLevel(argv) {
|
|
163
|
+
let logLevelValue;
|
|
164
|
+
let shorthandLevel;
|
|
165
|
+
let sawLogLevel = false;
|
|
166
|
+
let invalid;
|
|
167
|
+
for (let i = argv.length - 1;i >= 0; i--) {
|
|
168
|
+
const a = argv[i];
|
|
169
|
+
if (a === "--verbose") {
|
|
170
|
+
shorthandLevel ??= "DEBUG";
|
|
171
|
+
argv.splice(i, 1);
|
|
172
|
+
} else if (a === "--quiet") {
|
|
173
|
+
shorthandLevel ??= "WARN";
|
|
174
|
+
argv.splice(i, 1);
|
|
175
|
+
} else if (a === "--log-level") {
|
|
176
|
+
const next = argv[i + 1];
|
|
177
|
+
const valueToken = next !== undefined && !next.startsWith("-") ? next : undefined;
|
|
178
|
+
if (!sawLogLevel) {
|
|
179
|
+
sawLogLevel = true;
|
|
180
|
+
const upper = valueToken?.toUpperCase();
|
|
181
|
+
if (upper && VALID_LOG_LEVELS.has(upper)) {
|
|
182
|
+
logLevelValue = upper;
|
|
183
|
+
} else {
|
|
184
|
+
invalid = valueToken ?? "(missing)";
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
argv.splice(i, valueToken !== undefined ? 2 : 1);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
return { level: logLevelValue ?? shorthandLevel, invalid };
|
|
191
|
+
}
|
|
192
|
+
|
|
153
193
|
// src/core/cli/pentestMode.ts
|
|
154
194
|
var SUPPORTED_PENTEST_MODES = ["exfil"];
|
|
155
195
|
function resolvePentestMode(mode) {
|
|
@@ -421,6 +461,13 @@ You can upgrade manually by running:
|
|
|
421
461
|
};
|
|
422
462
|
}
|
|
423
463
|
|
|
464
|
+
// src/core/logger/index.ts
|
|
465
|
+
init_session();
|
|
466
|
+
init_structured();
|
|
467
|
+
import os from "os";
|
|
468
|
+
import path from "path";
|
|
469
|
+
var ERROR_LOG_PATH = path.join(os.homedir(), ".pensar", "error.log");
|
|
470
|
+
|
|
424
471
|
// src/tui/utils/command-flags.ts
|
|
425
472
|
import { readFileSync } from "fs";
|
|
426
473
|
import { isAbsolute, resolve } from "path";
|
|
@@ -450,7 +497,6 @@ function resolveThreatModelPrompt(value) {
|
|
|
450
497
|
|
|
451
498
|
// src/cli.ts
|
|
452
499
|
var args = process.argv.slice(2);
|
|
453
|
-
var command = args[0];
|
|
454
500
|
var version = package_default2.version;
|
|
455
501
|
var OBFUSCATE_FLAGS = new Set(["--obfuscate", "--redact", "-O"]);
|
|
456
502
|
var obfuscateRequested = args.some((a) => OBFUSCATE_FLAGS.has(a));
|
|
@@ -461,6 +507,17 @@ if (obfuscateRequested) {
|
|
|
461
507
|
args.splice(i, 1);
|
|
462
508
|
}
|
|
463
509
|
}
|
|
510
|
+
{
|
|
511
|
+
const { level, invalid } = resolveCliLogLevel(args);
|
|
512
|
+
if (invalid !== undefined) {
|
|
513
|
+
console.error(`Ignoring invalid --log-level "${invalid}" (expected DEBUG|INFO|WARN|ERROR|SILENT)`);
|
|
514
|
+
}
|
|
515
|
+
if (level) {
|
|
516
|
+
logger.setLevel(level);
|
|
517
|
+
process.env.PENSAR_LOG_LEVEL = level;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
var command = args[0];
|
|
464
521
|
function getArg(flag, argv = args) {
|
|
465
522
|
const idx = argv.indexOf(flag);
|
|
466
523
|
return idx !== -1 ? argv[idx + 1] : undefined;
|
|
@@ -495,7 +552,7 @@ function attachCliAgentStreamListeners(bus) {
|
|
|
495
552
|
async function createInstrumentedBus(session) {
|
|
496
553
|
const bus = new AgentEventBus;
|
|
497
554
|
attachCliAgentStreamListeners(bus);
|
|
498
|
-
const { attachWandbToEventBus } = await import("./upload-
|
|
555
|
+
const { attachWandbToEventBus } = await import("./upload-wg0vxmk0.js");
|
|
499
556
|
const wandbCleanup = await attachWandbToEventBus(session, bus).catch((e) => {
|
|
500
557
|
console.warn("[wandb] Tracing disabled:", e.message);
|
|
501
558
|
return null;
|
|
@@ -512,7 +569,7 @@ async function resolveCliHeaders() {
|
|
|
512
569
|
const { parseHeaderLine: parseHeaderLine2, parseHeadersFromFile, formatParseError: formatParseError2 } = await import("./parse-15kqmy2v.js");
|
|
513
570
|
const merged = {};
|
|
514
571
|
if (!noGlobal) {
|
|
515
|
-
const { config: appConfig } = await import("./index-
|
|
572
|
+
const { config: appConfig } = await import("./index-a1sy2zak.js");
|
|
516
573
|
const cfg = await appConfig.get();
|
|
517
574
|
if (cfg.defaultHeaders) {
|
|
518
575
|
Object.assign(merged, cfg.defaultHeaders);
|
|
@@ -546,8 +603,8 @@ async function resolveCliModel() {
|
|
|
546
603
|
const explicit = getArg("--model");
|
|
547
604
|
if (explicit)
|
|
548
605
|
return explicit;
|
|
549
|
-
const { config: appConfig } = await import("./index-
|
|
550
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
606
|
+
const { config: appConfig } = await import("./index-a1sy2zak.js");
|
|
607
|
+
const { getDefaultModelForConfig } = await import("./utils-gd1y4t26.js");
|
|
551
608
|
const pensarConfig = await appConfig.get();
|
|
552
609
|
const defaultModel = getDefaultModelForConfig(pensarConfig);
|
|
553
610
|
if (!defaultModel) {
|
|
@@ -621,6 +678,9 @@ threat-model options:
|
|
|
621
678
|
Global options:
|
|
622
679
|
-h, --help Show this help message
|
|
623
680
|
-v, --version Show version number
|
|
681
|
+
--log-level <lvl> Diagnostic log level: debug|info|warn|error|silent
|
|
682
|
+
--verbose Shorthand for --log-level debug
|
|
683
|
+
--quiet Shorthand for --log-level warn
|
|
624
684
|
--obfuscate Run the TUI in obfuscation mode \u2014 redacts hostnames,
|
|
625
685
|
IPs, UUIDs, emails, paths, tokens, and apparent
|
|
626
686
|
company names so screenshots are safe to share.
|
|
@@ -629,9 +689,9 @@ Global options:
|
|
|
629
689
|
async function runPentest() {
|
|
630
690
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
631
691
|
config();
|
|
632
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
633
|
-
const { sessions } = await import("./index-
|
|
634
|
-
const { config: appConfig } = await import("./index-
|
|
692
|
+
const { runPentestAgent } = await import("./blackboxPentest-xngbtdxb.js");
|
|
693
|
+
const { sessions: sessions2 } = await import("./index-k6ttkac6.js");
|
|
694
|
+
const { config: appConfig } = await import("./index-a1sy2zak.js");
|
|
635
695
|
const target = getArgRequired("--target");
|
|
636
696
|
const cwd = getArg("--cwd");
|
|
637
697
|
const mode = getArg("--mode");
|
|
@@ -661,7 +721,7 @@ Thinking: enabled` : ""}${taskDriven ? `
|
|
|
661
721
|
Task-driven: enabled` : ""}${headers ? `
|
|
662
722
|
Headers: ${Object.keys(headers).length} configured` : ""}
|
|
663
723
|
`);
|
|
664
|
-
const session = await
|
|
724
|
+
const session = await sessions2.create({
|
|
665
725
|
name: cwd ? "Whitebox Pentest" : "Blackbox Pentest",
|
|
666
726
|
targets: [target],
|
|
667
727
|
config: {
|
|
@@ -701,9 +761,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
701
761
|
async function runTargetedPentest() {
|
|
702
762
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
703
763
|
config();
|
|
704
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
705
|
-
const { sessions } = await import("./index-
|
|
706
|
-
const { config: appConfig } = await import("./index-
|
|
764
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-m24wvscc.js");
|
|
765
|
+
const { sessions: sessions2 } = await import("./index-k6ttkac6.js");
|
|
766
|
+
const { config: appConfig } = await import("./index-a1sy2zak.js");
|
|
707
767
|
const target = getArgRequired("--target");
|
|
708
768
|
const objectives = getAllArgs("--objective");
|
|
709
769
|
const pensarConfig = await appConfig.get();
|
|
@@ -724,7 +784,7 @@ Objectives:
|
|
|
724
784
|
${objectivesList}
|
|
725
785
|
`);
|
|
726
786
|
const headers = await resolveCliHeaders();
|
|
727
|
-
const session = await
|
|
787
|
+
const session = await sessions2.create({
|
|
728
788
|
name: "Targeted Pentest",
|
|
729
789
|
targets: [target],
|
|
730
790
|
...headers !== undefined ? { config: { headers } } : {}
|
|
@@ -755,13 +815,13 @@ POCs: ${pocsPath}`);
|
|
|
755
815
|
async function runThreatModel() {
|
|
756
816
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
757
817
|
config();
|
|
758
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
759
|
-
const { config: appConfig } = await import("./index-
|
|
760
|
-
const
|
|
818
|
+
const { runThreatModelWorkflow } = await import("./threatModel-7akmfzzm.js");
|
|
819
|
+
const { config: appConfig } = await import("./index-a1sy2zak.js");
|
|
820
|
+
const path2 = await import("path");
|
|
761
821
|
const pensarConfig = await appConfig.get();
|
|
762
822
|
const model = await resolveCliModel();
|
|
763
823
|
const outputArg = getArg("--output") ?? getArg("-o") ?? "threat-model.md";
|
|
764
|
-
const resolvedPath =
|
|
824
|
+
const resolvedPath = path2.isAbsolute(outputArg) ? outputArg : path2.resolve(process.cwd(), outputArg);
|
|
765
825
|
const sep = "=".repeat(60);
|
|
766
826
|
console.log(`${sep}
|
|
767
827
|
THREAT MODEL GENERATION
|
|
@@ -792,13 +852,13 @@ Threat model written to: ${resolvedPath}`);
|
|
|
792
852
|
async function runOperator() {
|
|
793
853
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
794
854
|
config();
|
|
795
|
-
const { runOffensiveSecurityAgent } = await import("./offesecAgent-
|
|
796
|
-
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-
|
|
797
|
-
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-
|
|
798
|
-
const { config: appConfig } = await import("./index-
|
|
855
|
+
const { runOffensiveSecurityAgent } = await import("./offesecAgent-azd8ahkm.js");
|
|
856
|
+
const { sessions: sessions2, normalizeMessages, getResumeMessages } = await import("./index-k6ttkac6.js");
|
|
857
|
+
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-2t2cg8x0.js");
|
|
858
|
+
const { config: appConfig } = await import("./index-a1sy2zak.js");
|
|
799
859
|
const { createInterface } = await import("readline");
|
|
800
860
|
const { readFileSync: readFileSync2, existsSync } = await import("fs");
|
|
801
|
-
const
|
|
861
|
+
const path2 = await import("path");
|
|
802
862
|
const { stepCountIs } = await import("./index-vc29b21w.js");
|
|
803
863
|
const promptRaw = getArg("-p") ?? getArg("--prompt");
|
|
804
864
|
if (!promptRaw) {
|
|
@@ -820,7 +880,7 @@ Target: ${target}` : ""}
|
|
|
820
880
|
${sep}
|
|
821
881
|
`);
|
|
822
882
|
const headers = await resolveCliHeaders();
|
|
823
|
-
const session = await
|
|
883
|
+
const session = await sessions2.create({
|
|
824
884
|
name: "Operator Session",
|
|
825
885
|
targets: target ? [target] : [],
|
|
826
886
|
config: {
|
|
@@ -864,7 +924,7 @@ ${sep}
|
|
|
864
924
|
session,
|
|
865
925
|
messages
|
|
866
926
|
});
|
|
867
|
-
const messagesPath =
|
|
927
|
+
const messagesPath = path2.join(session.rootPath, "messages.json");
|
|
868
928
|
if (existsSync(messagesPath)) {
|
|
869
929
|
const raw = JSON.parse(readFileSync2(messagesPath, "utf-8"));
|
|
870
930
|
const allMessages = Array.isArray(raw) ? raw : [];
|
|
@@ -909,32 +969,32 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
909
969
|
await runTargetedPentest();
|
|
910
970
|
} else if (command === "login" || command === "auth") {
|
|
911
971
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
912
|
-
await import("./auth-
|
|
972
|
+
await import("./auth-bmt98hz0.js");
|
|
913
973
|
} else if (command === "uninstall") {
|
|
914
974
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
915
|
-
await import("./uninstall-
|
|
975
|
+
await import("./uninstall-7pm6zcah.js");
|
|
916
976
|
} else if (command === "apps") {
|
|
917
977
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
918
|
-
await import("./apps-
|
|
978
|
+
await import("./apps-2ac4vt09.js");
|
|
919
979
|
} else if (command === "pentests") {
|
|
920
980
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
921
|
-
await import("./pentests-
|
|
981
|
+
await import("./pentests-npjb5q1h.js");
|
|
922
982
|
} else if (command === "issues") {
|
|
923
983
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
924
|
-
await import("./issues-
|
|
984
|
+
await import("./issues-17kdjtdg.js");
|
|
925
985
|
} else if (command === "fixes") {
|
|
926
986
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
927
|
-
await import("./fixes-
|
|
987
|
+
await import("./fixes-d8ytvyzn.js");
|
|
928
988
|
} else if (command === "logs") {
|
|
929
989
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
930
|
-
await import("./logs-
|
|
990
|
+
await import("./logs-r4rjar4m.js");
|
|
931
991
|
} else if (command === "config") {
|
|
932
992
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
933
|
-
await import("./config-
|
|
993
|
+
await import("./config-j0gfjhrm.js");
|
|
934
994
|
} else if (command === "threat-model") {
|
|
935
995
|
await runThreatModel();
|
|
936
996
|
} else if (command === "doctor") {
|
|
937
|
-
const { runDoctor } = await import("./doctor-
|
|
997
|
+
const { runDoctor } = await import("./doctor-zn8ms7gs.js");
|
|
938
998
|
await runDoctor();
|
|
939
999
|
} else if (args.length === 0) {
|
|
940
1000
|
if (process.env.PENSAR_NO_TUI === "1") {
|
|
@@ -942,7 +1002,7 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
942
1002
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
943
1003
|
process.exit(1);
|
|
944
1004
|
}
|
|
945
|
-
await import("./index-
|
|
1005
|
+
await import("./index-528cyewc.js");
|
|
946
1006
|
} else {
|
|
947
1007
|
console.error(`Error: Unknown command '${command}'`);
|
|
948
1008
|
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-eptabm2j.js";
|
|
15
|
+
import"./cli-88bhxzr1.js";
|
|
16
|
+
import"./cli-0yptvbbm.js";
|
|
17
17
|
import"./cli-8rxa073f.js";
|
|
18
18
|
|
|
19
19
|
// src/cli/config.ts
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolExists
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-cc13ydyx.js";
|
|
4
|
+
import"./cli-z1dapp7v.js";
|
|
5
|
+
import"./cli-8g5cwvbm.js";
|
|
6
|
+
import"./cli-e6rgwtpb.js";
|
|
7
|
+
import"./cli-gpnb45ck.js";
|
|
8
|
+
import"./cli-eptabm2j.js";
|
|
9
|
+
import"./cli-88bhxzr1.js";
|
|
10
|
+
import"./cli-0yptvbbm.js";
|
|
4
11
|
import"./cli-8rxa073f.js";
|
|
5
12
|
|
|
6
13
|
// src/core/doctor.ts
|
|
@@ -2,29 +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-pyzw545d.js";
|
|
6
|
+
import"./cli-mfzkhttr.js";
|
|
7
|
+
import"./cli-fxtbkw2f.js";
|
|
8
|
+
import"./cli-w2st266h.js";
|
|
9
|
+
import"./cli-fa7nrded.js";
|
|
10
|
+
import"./cli-f93g10xk.js";
|
|
11
|
+
import"./cli-ddtmgbqv.js";
|
|
12
12
|
import"./cli-9fsre5pt.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-3knnkdps.js";
|
|
13
|
+
import"./cli-hk03x6fq.js";
|
|
14
|
+
import"./cli-zpdmnz8c.js";
|
|
15
|
+
import"./cli-cc13ydyx.js";
|
|
17
16
|
import"./cli-fw5r7pfj.js";
|
|
18
17
|
import"./cli-c8131c4q.js";
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-h825qzmd.js";
|
|
22
|
-
import"./cli-948dk60p.js";
|
|
18
|
+
import"./cli-z1dapp7v.js";
|
|
19
|
+
import"./cli-8g5cwvbm.js";
|
|
23
20
|
import"./cli-e6rgwtpb.js";
|
|
24
|
-
import"./cli-h6nw89zf.js";
|
|
25
21
|
import"./cli-gpnb45ck.js";
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
22
|
+
import"./cli-eptabm2j.js";
|
|
23
|
+
import"./cli-88bhxzr1.js";
|
|
24
|
+
import"./cli-0yptvbbm.js";
|
|
28
25
|
import"./cli-8rxa073f.js";
|
|
29
26
|
|
|
30
27
|
// src/cli/fixes.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApexFindingObject
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-hk03x6fq.js";
|
|
4
4
|
import {
|
|
5
5
|
ALL_TOOL_NAMES,
|
|
6
6
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
@@ -83,19 +83,16 @@ import {
|
|
|
83
83
|
validateDiscovery,
|
|
84
84
|
webSearch,
|
|
85
85
|
writePlan
|
|
86
|
-
} from "./cli-
|
|
87
|
-
import"./cli-
|
|
88
|
-
import"./cli-3knnkdps.js";
|
|
86
|
+
} from "./cli-zpdmnz8c.js";
|
|
87
|
+
import"./cli-cc13ydyx.js";
|
|
89
88
|
import"./cli-c8131c4q.js";
|
|
90
|
-
import"./cli-
|
|
91
|
-
import"./cli-
|
|
92
|
-
import"./cli-h825qzmd.js";
|
|
93
|
-
import"./cli-948dk60p.js";
|
|
89
|
+
import"./cli-z1dapp7v.js";
|
|
90
|
+
import"./cli-8g5cwvbm.js";
|
|
94
91
|
import"./cli-e6rgwtpb.js";
|
|
95
|
-
import"./cli-h6nw89zf.js";
|
|
96
92
|
import"./cli-gpnb45ck.js";
|
|
97
|
-
import"./cli-
|
|
98
|
-
import"./cli-
|
|
93
|
+
import"./cli-eptabm2j.js";
|
|
94
|
+
import"./cli-88bhxzr1.js";
|
|
95
|
+
import"./cli-0yptvbbm.js";
|
|
99
96
|
import"./cli-8rxa073f.js";
|
|
100
97
|
export {
|
|
101
98
|
writePlan,
|
|
@@ -7,22 +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-ddtmgbqv.js";
|
|
11
11
|
import"./cli-9fsre5pt.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-3knnkdps.js";
|
|
12
|
+
import"./cli-hk03x6fq.js";
|
|
13
|
+
import"./cli-zpdmnz8c.js";
|
|
14
|
+
import"./cli-cc13ydyx.js";
|
|
16
15
|
import"./cli-c8131c4q.js";
|
|
17
|
-
import"./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-h825qzmd.js";
|
|
20
|
-
import"./cli-948dk60p.js";
|
|
16
|
+
import"./cli-z1dapp7v.js";
|
|
17
|
+
import"./cli-8g5cwvbm.js";
|
|
21
18
|
import"./cli-e6rgwtpb.js";
|
|
22
|
-
import"./cli-h6nw89zf.js";
|
|
23
19
|
import"./cli-gpnb45ck.js";
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
20
|
+
import"./cli-eptabm2j.js";
|
|
21
|
+
import"./cli-88bhxzr1.js";
|
|
22
|
+
import"./cli-0yptvbbm.js";
|
|
26
23
|
import"./cli-8rxa073f.js";
|
|
27
24
|
export {
|
|
28
25
|
WhiteboxAttackSurfaceAgent,
|