@pensar/apex 2.0.1 → 2.0.2-canary.1de5ff5b
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-0xj95pts.js} +10 -10
- package/build/{agent-6nhperp2.js → agent-e7a8ecyn.js} +12 -10
- package/build/agent-tcrb50te.js +19 -0
- package/build/{apps-2ac4vt09.js → apps-p91cynx1.js} +21 -16
- package/build/{auth-bmt98hz0.js → auth-snffaqnn.js} +16 -16
- package/build/authentication-8q9a1cpf.js +19 -0
- package/build/blackboxAgent-mwbcawfn.js +19 -0
- package/build/{blackboxPentest-xngbtdxb.js → blackboxPentest-2v0856w0.js} +14 -14
- package/build/{cli-hk03x6fq.js → cli-4x7k2s16.js} +4 -3
- package/build/{cli-w2st266h.js → cli-5c0rvt4t.js} +35 -6
- package/build/{cli-1f5zzrxj.js → cli-bcd6032f.js} +1 -1
- package/build/{cli-z1dapp7v.js → cli-bxtz3bdv.js} +78 -41
- package/build/{cli-fa7nrded.js → cli-cbhsy5x3.js} +5 -5
- package/build/{cli-zpdmnz8c.js → cli-d5vz4kyn.js} +6267 -1978
- package/build/{cli-e6rgwtpb.js → cli-f7d23ded.js} +6317 -3211
- package/build/{cli-88bhxzr1.js → cli-hkegr688.js} +4 -4
- package/build/{cli-mfzkhttr.js → cli-jzkfbrnx.js} +30 -22
- package/build/{cli-eptabm2j.js → cli-kn9tst6t.js} +1 -1
- package/build/{cli-ddtmgbqv.js → cli-mep0ck1r.js} +4 -4
- package/build/{cli-cc13ydyx.js → cli-p4aht9hv.js} +9 -9
- package/build/{cli-pyzw545d.js → cli-pevzp7nj.js} +78 -13
- package/build/{cli-8xknm7d9.js → cli-q24twygk.js} +1 -1
- package/build/{cli-fxtbkw2f.js → cli-r9v48v8g.js} +6 -6
- package/build/{cli-0yptvbbm.js → cli-w55v1bht.js} +11 -10
- package/build/{cli-f93g10xk.js → cli-wgqxjhky.js} +2 -2
- package/build/{cli-8g5cwvbm.js → cli-zgpj2mv1.js} +2 -2
- package/build/cli.js +67 -50
- package/build/{config-j0gfjhrm.js → config-rb760dgz.js} +4 -4
- package/build/{doctor-zn8ms7gs.js → doctor-2m2xy88h.js} +9 -9
- package/build/{fixes-d8ytvyzn.js → fixes-y8qx2ps5.js} +16 -16
- package/build/{index-2t2cg8x0.js → index-27fhky9b.js} +9 -9
- package/build/{index-528cyewc.js → index-5eb4pewb.js} +117 -71
- package/build/{index-hjvqqkem.js → index-cnd7y4g5.js} +4 -4
- package/build/{index-a1sy2zak.js → index-cwtb1k9c.js} +2 -2
- package/build/{index-9d2es97h.js → index-jhrbdyka.js} +3 -3
- package/build/{index-vc29b21w.js → index-mgng15va.js} +1 -1
- package/build/{index-3cbcjqw1.js → index-n04xcmzx.js} +10 -10
- package/build/{index-k6ttkac6.js → index-pkq9jjgj.js} +14 -13
- package/build/{issues-17kdjtdg.js → issues-hzqc762k.js} +16 -16
- package/build/{logs-r4rjar4m.js → logs-wmqhnyfa.js} +16 -16
- package/build/{offesecAgent-azd8ahkm.js → offesecAgent-6m7300st.js} +9 -9
- package/build/{parse-15kqmy2v.js → parse-7djk9jyf.js} +1 -1
- package/build/pentest-8b0ttsjk.js +28 -0
- package/build/{pentests-npjb5q1h.js → pentests-y3gqyam1.js} +16 -16
- package/build/{targetedPentest-m24wvscc.js → targetedPentest-yrs8xwvg.js} +10 -10
- package/build/targets-439kemyk.js +113 -0
- package/build/threatModel-zr6dmn2t.js +26 -0
- package/build/{uninstall-7pm6zcah.js → uninstall-p8d3kg6p.js} +9 -9
- package/build/{upload-wg0vxmk0.js → upload-5e7pkj1n.js} +7 -7
- package/build/{utils-gd1y4t26.js → utils-amj862q8.js} +6 -6
- package/package.json +10 -9
- 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
package/build/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import"./cli-
|
|
3
|
+
import"./cli-q24twygk.js";
|
|
4
4
|
import {
|
|
5
5
|
createThreatModelPrompt
|
|
6
6
|
} from "./cli-fw5r7pfj.js";
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
init_toolset,
|
|
15
15
|
init_utils,
|
|
16
16
|
logger
|
|
17
|
-
} from "./cli-
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
17
|
+
} from "./cli-bxtz3bdv.js";
|
|
18
|
+
import"./cli-zgpj2mv1.js";
|
|
19
|
+
import"./cli-f7d23ded.js";
|
|
20
20
|
import"./cli-gpnb45ck.js";
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
21
|
+
import"./cli-kn9tst6t.js";
|
|
22
|
+
import"./cli-hkegr688.js";
|
|
23
23
|
import {
|
|
24
24
|
init_package,
|
|
25
25
|
package_default
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-w55v1bht.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",
|
|
@@ -64,7 +65,7 @@ var package_default2 = {
|
|
|
64
65
|
sharp: "^0.34.4",
|
|
65
66
|
tldts: "^7.0.28",
|
|
66
67
|
yaml: "^2.8.2",
|
|
67
|
-
zod: "^
|
|
68
|
+
zod: "^4.1.12"
|
|
68
69
|
},
|
|
69
70
|
description: "AI-powered penetration testing CLI tool with terminal UI",
|
|
70
71
|
devDependencies: {
|
|
@@ -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.1de5ff5b"
|
|
147
148
|
};
|
|
148
149
|
|
|
149
150
|
// src/core/ai/index.ts
|
|
@@ -206,9 +207,12 @@ function resolvePentestMode(mode) {
|
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
// src/core/eventBus.ts
|
|
209
|
-
import { EventEmitter } from "events";
|
|
210
|
+
import { EventEmitter } from "node:events";
|
|
210
211
|
var CHILD_BUS_FORWARD_POLICY = {
|
|
211
212
|
"text-delta": "forward",
|
|
213
|
+
"reasoning-delta": "forward",
|
|
214
|
+
"reasoning-start": "forward",
|
|
215
|
+
"reasoning-end": "forward",
|
|
212
216
|
"tool-call-start": "forward",
|
|
213
217
|
"tool-call-delta": "forward",
|
|
214
218
|
"tool-call-complete": "forward",
|
|
@@ -285,6 +289,15 @@ class AgentEventBus {
|
|
|
285
289
|
case "text-delta":
|
|
286
290
|
this.emit("text-delta", { text: chunk.text, subagentId });
|
|
287
291
|
break;
|
|
292
|
+
case "reasoning-start":
|
|
293
|
+
this.emit("reasoning-start", { subagentId });
|
|
294
|
+
break;
|
|
295
|
+
case "reasoning-delta":
|
|
296
|
+
this.emit("reasoning-delta", { text: chunk.text, subagentId });
|
|
297
|
+
break;
|
|
298
|
+
case "reasoning-end":
|
|
299
|
+
this.emit("reasoning-end", { subagentId });
|
|
300
|
+
break;
|
|
288
301
|
case "tool-input-start":
|
|
289
302
|
this.emit("tool-call-start", {
|
|
290
303
|
toolCallId: chunk.id,
|
|
@@ -331,7 +344,7 @@ class AgentEventBus {
|
|
|
331
344
|
|
|
332
345
|
// src/core/installation/index.ts
|
|
333
346
|
init_package();
|
|
334
|
-
import { spawnSync } from "child_process";
|
|
347
|
+
import { spawnSync } from "node:child_process";
|
|
335
348
|
function getCurrentVersion() {
|
|
336
349
|
return package_default.version;
|
|
337
350
|
}
|
|
@@ -464,13 +477,13 @@ You can upgrade manually by running:
|
|
|
464
477
|
// src/core/logger/index.ts
|
|
465
478
|
init_session();
|
|
466
479
|
init_structured();
|
|
467
|
-
import os from "os";
|
|
468
|
-
import path from "path";
|
|
480
|
+
import os from "node:os";
|
|
481
|
+
import path from "node:path";
|
|
469
482
|
var ERROR_LOG_PATH = path.join(os.homedir(), ".pensar", "error.log");
|
|
470
483
|
|
|
471
484
|
// src/tui/utils/command-flags.ts
|
|
472
|
-
import { readFileSync } from "fs";
|
|
473
|
-
import { isAbsolute, resolve } from "path";
|
|
485
|
+
import { readFileSync } from "node:fs";
|
|
486
|
+
import { isAbsolute, resolve } from "node:path";
|
|
474
487
|
init_toolset();
|
|
475
488
|
function combinePromptParts(threatModel, prompt) {
|
|
476
489
|
const parts = [];
|
|
@@ -552,7 +565,7 @@ function attachCliAgentStreamListeners(bus) {
|
|
|
552
565
|
async function createInstrumentedBus(session) {
|
|
553
566
|
const bus = new AgentEventBus;
|
|
554
567
|
attachCliAgentStreamListeners(bus);
|
|
555
|
-
const { attachWandbToEventBus } = await import("./upload-
|
|
568
|
+
const { attachWandbToEventBus } = await import("./upload-5e7pkj1n.js");
|
|
556
569
|
const wandbCleanup = await attachWandbToEventBus(session, bus).catch((e) => {
|
|
557
570
|
console.warn("[wandb] Tracing disabled:", e.message);
|
|
558
571
|
return null;
|
|
@@ -566,10 +579,10 @@ async function resolveCliHeaders() {
|
|
|
566
579
|
if (headerArgs.length === 0 && !headersFromArg && !noGlobal) {
|
|
567
580
|
return;
|
|
568
581
|
}
|
|
569
|
-
const { parseHeaderLine: parseHeaderLine2, parseHeadersFromFile, formatParseError: formatParseError2 } = await import("./parse-
|
|
582
|
+
const { parseHeaderLine: parseHeaderLine2, parseHeadersFromFile, formatParseError: formatParseError2 } = await import("./parse-7djk9jyf.js");
|
|
570
583
|
const merged = {};
|
|
571
584
|
if (!noGlobal) {
|
|
572
|
-
const { config: appConfig } = await import("./index-
|
|
585
|
+
const { config: appConfig } = await import("./index-cwtb1k9c.js");
|
|
573
586
|
const cfg = await appConfig.get();
|
|
574
587
|
if (cfg.defaultHeaders) {
|
|
575
588
|
Object.assign(merged, cfg.defaultHeaders);
|
|
@@ -603,8 +616,8 @@ async function resolveCliModel() {
|
|
|
603
616
|
const explicit = getArg("--model");
|
|
604
617
|
if (explicit)
|
|
605
618
|
return explicit;
|
|
606
|
-
const { config: appConfig } = await import("./index-
|
|
607
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
619
|
+
const { config: appConfig } = await import("./index-cwtb1k9c.js");
|
|
620
|
+
const { getDefaultModelForConfig } = await import("./utils-amj862q8.js");
|
|
608
621
|
const pensarConfig = await appConfig.get();
|
|
609
622
|
const defaultModel = getDefaultModelForConfig(pensarConfig);
|
|
610
623
|
if (!defaultModel) {
|
|
@@ -632,6 +645,7 @@ Usage:
|
|
|
632
645
|
pensar uninstall Uninstall Pensar (keeps sessions, memories, skills)
|
|
633
646
|
pensar apps Manage the attack surface (apps & endpoints)
|
|
634
647
|
pensar pentests List and manage pentests
|
|
648
|
+
pensar targets List pentest targets and view their agent logs
|
|
635
649
|
pensar issues List and manage security issues
|
|
636
650
|
pensar fixes View security fixes
|
|
637
651
|
pensar logs View agent execution logs
|
|
@@ -689,9 +703,9 @@ Global options:
|
|
|
689
703
|
async function runPentest() {
|
|
690
704
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
691
705
|
config();
|
|
692
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
693
|
-
const { sessions: sessions2 } = await import("./index-
|
|
694
|
-
const { config: appConfig } = await import("./index-
|
|
706
|
+
const { runPentestAgent } = await import("./blackboxPentest-2v0856w0.js");
|
|
707
|
+
const { sessions: sessions2 } = await import("./index-pkq9jjgj.js");
|
|
708
|
+
const { config: appConfig } = await import("./index-cwtb1k9c.js");
|
|
695
709
|
const target = getArgRequired("--target");
|
|
696
710
|
const cwd = getArg("--cwd");
|
|
697
711
|
const mode = getArg("--mode");
|
|
@@ -761,9 +775,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
761
775
|
async function runTargetedPentest() {
|
|
762
776
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
763
777
|
config();
|
|
764
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
765
|
-
const { sessions: sessions2 } = await import("./index-
|
|
766
|
-
const { config: appConfig } = await import("./index-
|
|
778
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-yrs8xwvg.js");
|
|
779
|
+
const { sessions: sessions2 } = await import("./index-pkq9jjgj.js");
|
|
780
|
+
const { config: appConfig } = await import("./index-cwtb1k9c.js");
|
|
767
781
|
const target = getArgRequired("--target");
|
|
768
782
|
const objectives = getAllArgs("--objective");
|
|
769
783
|
const pensarConfig = await appConfig.get();
|
|
@@ -815,8 +829,8 @@ POCs: ${pocsPath}`);
|
|
|
815
829
|
async function runThreatModel() {
|
|
816
830
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
817
831
|
config();
|
|
818
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
819
|
-
const { config: appConfig } = await import("./index-
|
|
832
|
+
const { runThreatModelWorkflow } = await import("./threatModel-zr6dmn2t.js");
|
|
833
|
+
const { config: appConfig } = await import("./index-cwtb1k9c.js");
|
|
820
834
|
const path2 = await import("path");
|
|
821
835
|
const pensarConfig = await appConfig.get();
|
|
822
836
|
const model = await resolveCliModel();
|
|
@@ -852,14 +866,14 @@ Threat model written to: ${resolvedPath}`);
|
|
|
852
866
|
async function runOperator() {
|
|
853
867
|
const { config } = await import("./main-3zneyg7p.js").then((m)=>__toESM(m.default,1));
|
|
854
868
|
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-
|
|
869
|
+
const { runOffensiveSecurityAgent } = await import("./offesecAgent-6m7300st.js");
|
|
870
|
+
const { sessions: sessions2, normalizeMessages, getResumeMessages } = await import("./index-pkq9jjgj.js");
|
|
871
|
+
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-27fhky9b.js");
|
|
872
|
+
const { config: appConfig } = await import("./index-cwtb1k9c.js");
|
|
859
873
|
const { createInterface } = await import("readline");
|
|
860
874
|
const { readFileSync: readFileSync2, existsSync } = await import("fs");
|
|
861
875
|
const path2 = await import("path");
|
|
862
|
-
const { stepCountIs } = await import("./index-
|
|
876
|
+
const { stepCountIs } = await import("./index-mgng15va.js");
|
|
863
877
|
const promptRaw = getArg("-p") ?? getArg("--prompt");
|
|
864
878
|
if (!promptRaw) {
|
|
865
879
|
console.error("Error: -p <prompt> is required");
|
|
@@ -969,32 +983,35 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
969
983
|
await runTargetedPentest();
|
|
970
984
|
} else if (command === "login" || command === "auth") {
|
|
971
985
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
972
|
-
await import("./auth-
|
|
986
|
+
await import("./auth-snffaqnn.js");
|
|
973
987
|
} else if (command === "uninstall") {
|
|
974
988
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
975
|
-
await import("./uninstall-
|
|
989
|
+
await import("./uninstall-p8d3kg6p.js");
|
|
976
990
|
} else if (command === "apps") {
|
|
977
991
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
978
|
-
await import("./apps-
|
|
992
|
+
await import("./apps-p91cynx1.js");
|
|
979
993
|
} else if (command === "pentests") {
|
|
980
994
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
981
|
-
await import("./pentests-
|
|
995
|
+
await import("./pentests-y3gqyam1.js");
|
|
996
|
+
} else if (command === "targets") {
|
|
997
|
+
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
998
|
+
await import("./targets-439kemyk.js");
|
|
982
999
|
} else if (command === "issues") {
|
|
983
1000
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
984
|
-
await import("./issues-
|
|
1001
|
+
await import("./issues-hzqc762k.js");
|
|
985
1002
|
} else if (command === "fixes") {
|
|
986
1003
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
987
|
-
await import("./fixes-
|
|
1004
|
+
await import("./fixes-y8qx2ps5.js");
|
|
988
1005
|
} else if (command === "logs") {
|
|
989
1006
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
990
|
-
await import("./logs-
|
|
1007
|
+
await import("./logs-wmqhnyfa.js");
|
|
991
1008
|
} else if (command === "config") {
|
|
992
1009
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
993
|
-
await import("./config-
|
|
1010
|
+
await import("./config-rb760dgz.js");
|
|
994
1011
|
} else if (command === "threat-model") {
|
|
995
1012
|
await runThreatModel();
|
|
996
1013
|
} else if (command === "doctor") {
|
|
997
|
-
const { runDoctor } = await import("./doctor-
|
|
1014
|
+
const { runDoctor } = await import("./doctor-2m2xy88h.js");
|
|
998
1015
|
await runDoctor();
|
|
999
1016
|
} else if (args.length === 0) {
|
|
1000
1017
|
if (process.env.PENSAR_NO_TUI === "1") {
|
|
@@ -1002,7 +1019,7 @@ if (hasFlag("-p") || command === "--prompt") {
|
|
|
1002
1019
|
console.error("All other commands work with Node \u2014 run 'pensar --help'.");
|
|
1003
1020
|
process.exit(1);
|
|
1004
1021
|
}
|
|
1005
|
-
await import("./index-
|
|
1022
|
+
await import("./index-5eb4pewb.js");
|
|
1006
1023
|
} else {
|
|
1007
1024
|
console.error(`Error: Unknown command '${command}'`);
|
|
1008
1025
|
console.error();
|
|
@@ -7,13 +7,13 @@ import {
|
|
|
7
7
|
formatParseError,
|
|
8
8
|
parseHeaderLine,
|
|
9
9
|
parseHeadersFromFile
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-q24twygk.js";
|
|
11
11
|
import {
|
|
12
12
|
config,
|
|
13
13
|
init_config
|
|
14
|
-
} from "./cli-
|
|
15
|
-
import"./cli-
|
|
16
|
-
import"./cli-
|
|
14
|
+
} from "./cli-kn9tst6t.js";
|
|
15
|
+
import"./cli-hkegr688.js";
|
|
16
|
+
import"./cli-w55v1bht.js";
|
|
17
17
|
import"./cli-8rxa073f.js";
|
|
18
18
|
|
|
19
19
|
// src/cli/config.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolExists
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
3
|
+
} from "./cli-p4aht9hv.js";
|
|
4
|
+
import"./cli-bxtz3bdv.js";
|
|
5
|
+
import"./cli-zgpj2mv1.js";
|
|
6
|
+
import"./cli-f7d23ded.js";
|
|
7
7
|
import"./cli-gpnb45ck.js";
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
import"./cli-kn9tst6t.js";
|
|
9
|
+
import"./cli-hkegr688.js";
|
|
10
|
+
import"./cli-w55v1bht.js";
|
|
11
11
|
import"./cli-8rxa073f.js";
|
|
12
12
|
|
|
13
13
|
// src/core/doctor.ts
|
|
14
|
-
import { execSync, spawnSync } from "child_process";
|
|
15
|
-
import readline from "readline";
|
|
14
|
+
import { execSync, spawnSync } from "node:child_process";
|
|
15
|
+
import readline from "node:readline";
|
|
16
16
|
function detectPackageManager() {
|
|
17
17
|
const platform = process.platform;
|
|
18
18
|
if (platform === "darwin" && toolExists("brew")) {
|
|
@@ -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-pevzp7nj.js";
|
|
6
|
+
import"./cli-jzkfbrnx.js";
|
|
7
|
+
import"./cli-r9v48v8g.js";
|
|
8
|
+
import"./cli-5c0rvt4t.js";
|
|
9
|
+
import"./cli-cbhsy5x3.js";
|
|
10
|
+
import"./cli-wgqxjhky.js";
|
|
11
|
+
import"./cli-mep0ck1r.js";
|
|
12
12
|
import"./cli-9fsre5pt.js";
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
13
|
+
import"./cli-4x7k2s16.js";
|
|
14
|
+
import"./cli-d5vz4kyn.js";
|
|
15
|
+
import"./cli-p4aht9hv.js";
|
|
16
16
|
import"./cli-fw5r7pfj.js";
|
|
17
17
|
import"./cli-c8131c4q.js";
|
|
18
|
-
import"./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
18
|
+
import"./cli-bxtz3bdv.js";
|
|
19
|
+
import"./cli-zgpj2mv1.js";
|
|
20
|
+
import"./cli-f7d23ded.js";
|
|
21
21
|
import"./cli-gpnb45ck.js";
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
22
|
+
import"./cli-kn9tst6t.js";
|
|
23
|
+
import"./cli-hkegr688.js";
|
|
24
|
+
import"./cli-w55v1bht.js";
|
|
25
25
|
import"./cli-8rxa073f.js";
|
|
26
26
|
|
|
27
27
|
// src/cli/fixes.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApexFindingObject
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-4x7k2s16.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-d5vz4kyn.js";
|
|
87
|
+
import"./cli-p4aht9hv.js";
|
|
88
88
|
import"./cli-c8131c4q.js";
|
|
89
|
-
import"./cli-
|
|
90
|
-
import"./cli-
|
|
91
|
-
import"./cli-
|
|
89
|
+
import"./cli-bxtz3bdv.js";
|
|
90
|
+
import"./cli-zgpj2mv1.js";
|
|
91
|
+
import"./cli-f7d23ded.js";
|
|
92
92
|
import"./cli-gpnb45ck.js";
|
|
93
|
-
import"./cli-
|
|
94
|
-
import"./cli-
|
|
95
|
-
import"./cli-
|
|
93
|
+
import"./cli-kn9tst6t.js";
|
|
94
|
+
import"./cli-hkegr688.js";
|
|
95
|
+
import"./cli-w55v1bht.js";
|
|
96
96
|
import"./cli-8rxa073f.js";
|
|
97
97
|
export {
|
|
98
98
|
writePlan,
|