@pensar/apex 2.7.0-canary.6d9d1e0d → 2.7.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-4f87bydg.js +13 -0
- package/build/{agent-xtn1masf.js → agent-6h49fhz1.js} +5 -5
- package/build/{agent-gk4vmr2h.js → agent-a5vq5fsm.js} +6 -6
- package/build/{agent-runs-12pmj6vc.js → agent-runs-9nncftzk.js} +16 -16
- package/build/agent-sa0ty54v.js +13 -0
- package/build/{apps-yjyvn8vk.js → apps-rh90z2nb.js} +13 -13
- package/build/{auth-xzp4f1bh.js → auth-hshx11mc.js} +13 -13
- package/build/{blackboxAgent-ettjqj45.js → blackboxAgent-t6zq0ekj.js} +6 -6
- package/build/{blackboxPentest-kf0pbhp5.js → blackboxPentest-eskvsmez.js} +11 -11
- package/build/{cli-8hxrn15h.js → cli-29179gt8.js} +8 -8
- package/build/{cli-xpspbhqs.js → cli-2etfgtj3.js} +1 -1
- package/build/{cli-zmeb85er.js → cli-6r1ntbmf.js} +3 -3
- package/build/{cli-h5wkaqwe.js → cli-9eyk8rhx.js} +1 -1
- package/build/{cli-pchzt5f7.js → cli-c4x5b3q4.js} +2 -2
- package/build/{cli-arxx5hbs.js → cli-c9nnxr52.js} +1 -1
- package/build/{cli-gr4az5sf.js → cli-dawkcveq.js} +1 -1
- package/build/{cli-t3m0e9t2.js → cli-dqrqgfrp.js} +2 -2
- package/build/{cli-4mar7kvr.js → cli-e0v6hd3d.js} +6 -6
- package/build/{cli-5gaxk6hd.js → cli-ewav0q78.js} +2 -2
- package/build/{cli-m5ryqeav.js → cli-fk5e62a6.js} +2 -2
- package/build/{cli-hprqe9j2.js → cli-gzgyjs36.js} +1 -1
- package/build/{cli-0cwdrrq7.js → cli-mrk3hg6f.js} +1 -1
- package/build/{cli-nj73990n.js → cli-prw2dfje.js} +5 -5
- package/build/{cli-tfaqp0ty.js → cli-pwhx13h3.js} +12 -12
- package/build/{cli-ge8q6nxr.js → cli-q0wmet0t.js} +1 -1
- package/build/{cli-metec8r8.js → cli-tf2kp8s4.js} +3 -3
- package/build/{cli-0ry9v2cb.js → cli-vdbnh2ha.js} +1 -1
- package/build/cli.js +37 -37
- package/build/{config-n03g5jad.js → config-srw06gyv.js} +1 -1
- package/build/{fastStrike-9mys4r1b.js → fastStrike-gaphkhrs.js} +5 -5
- package/build/{fixes-tcd29w2t.js → fixes-j99tce5t.js} +13 -13
- package/build/{index-42dnvkns.js → index-3rsrzfje.js} +5 -5
- package/build/{index-6ptkm3fe.js → index-652yqmn2.js} +2 -2
- package/build/{index-msb8ht2s.js → index-6fxag2h2.js} +6 -6
- package/build/{index-mmmx59w3.js → index-a9yy0fe3.js} +4 -4
- package/build/{index-k1pvqjaq.js → index-c1tgca1w.js} +1 -1
- package/build/{index-93br69mn.js → index-fsv57ssp.js} +13 -13
- package/build/{index-qtpprc5a.js → index-y9h10rfq.js} +4 -4
- package/build/{index-hh9bqe4y.js → index-yj0ye642.js} +19 -19
- package/build/{index-3n19dh6s.js → index-ynsam8mg.js} +1 -1
- package/build/{issues-d0e1tzda.js → issues-267ytycy.js} +13 -13
- package/build/{knowledge-vgvrzey3.js → knowledge-44acmwfw.js} +13 -13
- package/build/lib/{chunk-fytt5jz7.js → chunk-2015fqpw.js} +1 -1
- package/build/lib/{chunk-pd487tpr.js → chunk-3jr0sp3v.js} +1 -1
- package/build/lib/{chunk-9etzp9n2.js → chunk-45ne0t6e.js} +1 -1
- package/build/lib/{chunk-mepzy07f.js → chunk-5ma2ns65.js} +1 -1
- package/build/lib/{chunk-c6gj39ew.js → chunk-8zfn4feq.js} +1 -1
- package/build/lib/{chunk-rchnq1ez.js → chunk-93b8vp9x.js} +3 -3
- package/build/lib/{chunk-74ddy2e7.js → chunk-9kmc9yp6.js} +3 -3
- package/build/lib/{chunk-29bvrw6m.js → chunk-bb2sekn4.js} +11 -11
- package/build/lib/{chunk-mqcwxrnh.js → chunk-c3e9aen5.js} +1 -1
- package/build/lib/{chunk-n3kr09mb.js → chunk-db0bmkrv.js} +11 -11
- package/build/lib/{chunk-j1ftnbgr.js → chunk-dm8yvkdy.js} +1 -1
- package/build/lib/{chunk-acfewabw.js → chunk-dvn6bg2m.js} +2 -2
- package/build/lib/{chunk-45nvxhrc.js → chunk-fwe0fdb5.js} +9 -9
- package/build/lib/{chunk-gv1p302b.js → chunk-gfzspfyd.js} +3 -3
- package/build/lib/{chunk-bdbd8d8q.js → chunk-hw0vcs3m.js} +1 -1
- package/build/lib/{chunk-y9m8yw7k.js → chunk-m8w0npxg.js} +1 -1
- package/build/lib/{chunk-3ac8kcj9.js → chunk-mbm9w4ac.js} +5 -5
- package/build/lib/{chunk-851r7zp8.js → chunk-mjey3y7s.js} +1 -1
- package/build/lib/{chunk-xw8d7pv7.js → chunk-mw108bmx.js} +1 -1
- package/build/lib/{chunk-0ec46jyd.js → chunk-njn4tjsr.js} +1 -1
- package/build/lib/{chunk-3g3ksmsv.js → chunk-p8jd9s8k.js} +8 -8
- package/build/lib/{chunk-wa0q3smh.js → chunk-t6yh604c.js} +3 -3
- package/build/lib/{chunk-8m15nv6s.js → chunk-yqengqce.js} +1 -1
- package/build/lib/{chunk-66t5k77r.js → chunk-ysmhn1p6.js} +1 -1
- package/build/lib/core/agents/offSecAgent/index.js +7 -7
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +5 -5
- package/build/lib/core/agents/offSecAgent/tools/index.js +4 -4
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +9 -9
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +9 -9
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +10 -10
- package/build/lib/core/agents/specialized/codeAgent/agent.js +9 -9
- package/build/lib/core/agents/specialized/findingJudge/agent.js +8 -8
- package/build/lib/core/agents/specialized/findingJudge/index.js +3 -3
- package/build/lib/core/agents/specialized/patching/index.js +10 -10
- package/build/lib/core/agents/specialized/pentest/agent.js +9 -9
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +9 -9
- package/build/lib/core/ai/ai.js +2 -2
- package/build/lib/core/ai/index.js +2 -2
- package/build/lib/core/ai/utils.js +2 -2
- package/build/lib/core/api/index.js +19 -19
- package/build/lib/core/api/targetedPentest.js +10 -10
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/findings/registry.js +3 -3
- package/build/lib/core/session/index.js +2 -2
- package/build/lib/core/session/persistence.js +3 -3
- package/build/lib/core/workflows/pentest.js +15 -15
- package/build/lib/core/workflows/seams.js +4 -4
- package/build/lib/core/workflows/whiteboxAttackSurface.js +11 -11
- package/build/lib/index.js +22 -22
- package/build/{logs-mvrvrkfa.js → logs-wx69vy65.js} +13 -13
- package/build/{native-rollout-evidence-h2za8fyf.js → native-rollout-evidence-2akrepvz.js} +3 -3
- package/build/{offesecAgent-r4hz607z.js → offesecAgent-zewvmk98.js} +4 -4
- package/build/pentest-n2mjksg2.js +22 -0
- package/build/{pentests-yvt9wvxd.js → pentests-xvj8g8h4.js} +13 -13
- package/build/recordedRunClient-a0ye97sw.js +11 -0
- package/build/{targetedPentest-6aeg3nxd.js → targetedPentest-p3cdq712.js} +6 -6
- package/build/{targets-a38xnsgm.js → targets-1wajqhm7.js} +13 -13
- package/build/threatModel-g9pbtnt1.js +21 -0
- package/build/{uninstall-kt485ay4.js → uninstall-jpm5ppfb.js} +1 -1
- package/build/{upload-ahw3are7.js → upload-csny5mns.js} +4 -4
- package/build/{utils-yqdepzr3.js → utils-tzbr4bxg.js} +3 -3
- package/package.json +1 -1
- package/build/agent-davhjnxc.js +0 -13
- package/build/agent-mqqd38dq.js +0 -13
- package/build/pentest-52s2dn28.js +0 -22
- package/build/recordedRunClient-6z78az3b.js +0 -11
- package/build/threatModel-1gsb7ytk.js +0 -21
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-vdbnh2ha.js";
|
|
5
5
|
import {
|
|
6
6
|
getPensarApiUrl2,
|
|
7
7
|
init_constants,
|
|
8
8
|
ensureValidToken2,
|
|
9
9
|
signGatewayRequest2,
|
|
10
10
|
init_auth
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-mrk3hg6f.js";
|
|
12
12
|
import {
|
|
13
13
|
parseTargetUrl
|
|
14
14
|
} from "./cli-0wsh8j2t.js";
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
normalizeStepUsage,
|
|
43
43
|
streamResponse,
|
|
44
44
|
generateObjectResponse
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-prw2dfje.js";
|
|
46
46
|
import {
|
|
47
47
|
init_v4,
|
|
48
48
|
tool
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
import {
|
|
83
83
|
getCurrentVersion,
|
|
84
84
|
init_installation
|
|
85
|
-
} from "./cli-
|
|
85
|
+
} from "./cli-gzgyjs36.js";
|
|
86
86
|
import {
|
|
87
87
|
require_src6
|
|
88
88
|
} from "./cli-bb02pjt0.js";
|
|
@@ -112618,7 +112618,7 @@ function resolveItemHooks(hooks, seams, item, index) {
|
|
|
112618
112618
|
|
|
112619
112619
|
// src/core/agents/offSecAgent/subagentSpawner.ts
|
|
112620
112620
|
async function runSpawnedPentestWorker(spec, input) {
|
|
112621
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
112621
|
+
const { TargetedPentestAgent } = await import("./agent-a5vq5fsm.js");
|
|
112622
112622
|
const hooks = resolveItemHooks(input.hooks, input.seams, spec, 0);
|
|
112623
112623
|
const agent = new TargetedPentestAgent({
|
|
112624
112624
|
target: spec.target,
|
|
@@ -112695,7 +112695,7 @@ var runPentestChild = async (spec, ctx) => {
|
|
|
112695
112695
|
};
|
|
112696
112696
|
};
|
|
112697
112697
|
var runCodeChild = async (spec, ctx) => {
|
|
112698
|
-
const { CodeAgent } = await import("./agent-
|
|
112698
|
+
const { CodeAgent } = await import("./agent-sa0ty54v.js");
|
|
112699
112699
|
const agent = new CodeAgent({
|
|
112700
112700
|
codebasePath: spec.codebasePath,
|
|
112701
112701
|
objective: spec.objective,
|
|
@@ -112727,7 +112727,7 @@ var runCodeChild = async (spec, ctx) => {
|
|
|
112727
112727
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
112728
112728
|
};
|
|
112729
112729
|
var runWhiteboxChild = async (spec, ctx) => {
|
|
112730
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
112730
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-6fxag2h2.js");
|
|
112731
112731
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
112732
112732
|
codebasePath: spec.codebasePath,
|
|
112733
112733
|
attackSurfaceRegistry: spec.attackSurfaceRegistry,
|
|
@@ -112747,7 +112747,7 @@ var runWhiteboxChild = async (spec, ctx) => {
|
|
|
112747
112747
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
112748
112748
|
};
|
|
112749
112749
|
var runBlackboxChild = async (spec, ctx) => {
|
|
112750
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
112750
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-t6zq0ekj.js");
|
|
112751
112751
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
112752
112752
|
target: spec.target,
|
|
112753
112753
|
attackSurfaceRegistry: spec.attackSurfaceRegistry,
|
|
@@ -112766,7 +112766,7 @@ var runBlackboxChild = async (spec, ctx) => {
|
|
|
112766
112766
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
112767
112767
|
};
|
|
112768
112768
|
var runAuthChild = async (spec, ctx) => {
|
|
112769
|
-
const { runAuthenticationAgent } = await import("./agent-
|
|
112769
|
+
const { runAuthenticationAgent } = await import("./agent-4f87bydg.js");
|
|
112770
112770
|
return {
|
|
112771
112771
|
run: () => runAuthenticationAgent({
|
|
112772
112772
|
target: spec.target,
|
|
@@ -112788,7 +112788,7 @@ var runAuthChild = async (spec, ctx) => {
|
|
|
112788
112788
|
};
|
|
112789
112789
|
};
|
|
112790
112790
|
var runJudgeChild = async (spec, ctx) => {
|
|
112791
|
-
const { judgeFinding } = await import("./index-
|
|
112791
|
+
const { judgeFinding } = await import("./index-y9h10rfq.js");
|
|
112792
112792
|
return {
|
|
112793
112793
|
run: () => judgeFinding(spec.judgeInput, {
|
|
112794
112794
|
model: ctx.model,
|
|
@@ -125920,7 +125920,7 @@ Omit \`cwd\` for blackbox mode (live target probing only).`,
|
|
|
125920
125920
|
toolCallDescription: string().describe("A concise, human-readable description of what this tool call is doing")
|
|
125921
125921
|
}),
|
|
125922
125922
|
execute: async ({ target, cwd }) => {
|
|
125923
|
-
const { runPentestWorkflow: workflow } = await import("./pentest-
|
|
125923
|
+
const { runPentestWorkflow: workflow } = await import("./pentest-n2mjksg2.js");
|
|
125924
125924
|
if (!ctx.model) {
|
|
125925
125925
|
return {
|
|
125926
125926
|
success: false,
|
|
@@ -126505,7 +126505,7 @@ Pass every target you want tested — the swarm handles concurrency automaticall
|
|
|
126505
126505
|
toolCallDescription: string().describe("A concise, human-readable description of what this tool call is doing")
|
|
126506
126506
|
}),
|
|
126507
126507
|
execute: async ({ targets }) => {
|
|
126508
|
-
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-
|
|
126508
|
+
const { runPentestSwarm, DEFAULT_CONCURRENCY } = await import("./pentest-n2mjksg2.js");
|
|
126509
126509
|
if (!ctx.model) {
|
|
126510
126510
|
return {
|
|
126511
126511
|
success: false,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
REPORT_ERROR_TOOL_NAME,
|
|
8
8
|
createReportErrorTool,
|
|
9
9
|
PentestReportedError
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-pwhx13h3.js";
|
|
11
11
|
import {
|
|
12
12
|
GOOGLE_SIGNIN_PROMPT_GUIDANCE,
|
|
13
13
|
browserEngineForGoogleSignIn
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
AgentRuntime,
|
|
20
20
|
defineAgent
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-dawkcveq.js";
|
|
22
22
|
import {
|
|
23
23
|
hasToolCall,
|
|
24
24
|
init_dist,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
init_lazyLogger,
|
|
27
27
|
createLogger,
|
|
28
28
|
init_structured
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-prw2dfje.js";
|
|
30
30
|
import {
|
|
31
31
|
init_zod
|
|
32
32
|
} from "./cli-3qznjsnr.js";
|
package/build/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
import"./cli-vdbnh2ha.js";
|
|
4
|
+
import"./cli-mrk3hg6f.js";
|
|
5
5
|
import {
|
|
6
6
|
require_src,
|
|
7
7
|
require_src2,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
logger,
|
|
28
28
|
init_structured,
|
|
29
29
|
init_ai2
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-prw2dfje.js";
|
|
31
31
|
import {
|
|
32
32
|
init_inference_attempt,
|
|
33
33
|
init_native_rollout_evidence
|
|
@@ -40,13 +40,13 @@ import {
|
|
|
40
40
|
init_customProviders,
|
|
41
41
|
resolveHoonifyModel,
|
|
42
42
|
init_hoonify
|
|
43
|
-
} from "./cli-
|
|
43
|
+
} from "./cli-9eyk8rhx.js";
|
|
44
44
|
import {
|
|
45
45
|
init_package,
|
|
46
46
|
version,
|
|
47
47
|
package_default,
|
|
48
48
|
init_installation
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-gzgyjs36.js";
|
|
50
50
|
import {
|
|
51
51
|
require_src6
|
|
52
52
|
} from "./cli-bb02pjt0.js";
|
|
@@ -725,7 +725,7 @@ var package_default2 = {
|
|
|
725
725
|
tsc: "tsc --noEmit"
|
|
726
726
|
},
|
|
727
727
|
type: "module",
|
|
728
|
-
version: "2.7.0
|
|
728
|
+
version: "2.7.0"
|
|
729
729
|
};
|
|
730
730
|
|
|
731
731
|
// src/core/ai/index.ts
|
|
@@ -1584,7 +1584,7 @@ async function createInstrumentedBus(session, model) {
|
|
|
1584
1584
|
reportHerdrState("working");
|
|
1585
1585
|
const bus = new AgentEventBus;
|
|
1586
1586
|
attachCliAgentStreamListeners(bus);
|
|
1587
|
-
const { attachWandbToEventBus } = await import("./upload-
|
|
1587
|
+
const { attachWandbToEventBus } = await import("./upload-csny5mns.js");
|
|
1588
1588
|
const wandbCleanup = await attachWandbToEventBus(session, bus).catch((e) => {
|
|
1589
1589
|
console.warn("[wandb] Tracing disabled:", e.message);
|
|
1590
1590
|
return null;
|
|
@@ -1604,7 +1604,7 @@ async function resolveCliHeaders() {
|
|
|
1604
1604
|
const { parseHeaderLine, parseHeadersFromFile, formatParseError } = await import("./parse-cqecqrc5.js");
|
|
1605
1605
|
const merged = {};
|
|
1606
1606
|
if (!noGlobal) {
|
|
1607
|
-
const { config: appConfig } = await import("./index-
|
|
1607
|
+
const { config: appConfig } = await import("./index-ynsam8mg.js");
|
|
1608
1608
|
const cfg = await appConfig.get();
|
|
1609
1609
|
if (cfg.defaultHeaders) {
|
|
1610
1610
|
Object.assign(merged, cfg.defaultHeaders);
|
|
@@ -1635,8 +1635,8 @@ ${formatParseError(parsed.error)}`);
|
|
|
1635
1635
|
return merged;
|
|
1636
1636
|
}
|
|
1637
1637
|
async function resolveCliModel() {
|
|
1638
|
-
const { config: appConfig } = await import("./index-
|
|
1639
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
1638
|
+
const { config: appConfig } = await import("./index-ynsam8mg.js");
|
|
1639
|
+
const { getDefaultModelForConfig } = await import("./utils-tzbr4bxg.js");
|
|
1640
1640
|
const pensarConfig = await appConfig.get();
|
|
1641
1641
|
const explicit = resolveExplicitCliModel({
|
|
1642
1642
|
model: getArg("--model"),
|
|
@@ -1769,9 +1769,9 @@ Custom inference:
|
|
|
1769
1769
|
`);
|
|
1770
1770
|
}
|
|
1771
1771
|
async function runPentest() {
|
|
1772
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
1773
|
-
const { sessions } = await import("./index-
|
|
1774
|
-
const { config: appConfig } = await import("./index-
|
|
1772
|
+
const { runPentestAgent } = await import("./blackboxPentest-eskvsmez.js");
|
|
1773
|
+
const { sessions } = await import("./index-3rsrzfje.js");
|
|
1774
|
+
const { config: appConfig } = await import("./index-ynsam8mg.js");
|
|
1775
1775
|
const target = getArgRequired("--target");
|
|
1776
1776
|
const cwd = getArg("--cwd");
|
|
1777
1777
|
const mode = getArg("--mode");
|
|
@@ -1820,7 +1820,7 @@ Headers: ${Object.keys(headers).length} configured` : ""}
|
|
|
1820
1820
|
}
|
|
1821
1821
|
});
|
|
1822
1822
|
console.log(`PENSAR_SESSION_PATH:${session.rootPath}`);
|
|
1823
|
-
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-
|
|
1823
|
+
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-2akrepvz.js");
|
|
1824
1824
|
const evidence = await runWithCliNativeRolloutEvidence({
|
|
1825
1825
|
session,
|
|
1826
1826
|
outputDirectory: evidenceOutput,
|
|
@@ -1856,9 +1856,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
1858
|
async function runTargetedPentest() {
|
|
1859
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
1860
|
-
const { sessions } = await import("./index-
|
|
1861
|
-
const { config: appConfig } = await import("./index-
|
|
1859
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-p3cdq712.js");
|
|
1860
|
+
const { sessions } = await import("./index-3rsrzfje.js");
|
|
1861
|
+
const { config: appConfig } = await import("./index-ynsam8mg.js");
|
|
1862
1862
|
const target = getArgRequired("--target");
|
|
1863
1863
|
const objectives = getAllArgs("--objective");
|
|
1864
1864
|
const evidenceOutput = nativeRolloutEvidenceOutput();
|
|
@@ -1891,7 +1891,7 @@ ${objectivesList}
|
|
|
1891
1891
|
} : {}
|
|
1892
1892
|
});
|
|
1893
1893
|
console.log(`PENSAR_SESSION_PATH:${session.rootPath}`);
|
|
1894
|
-
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-
|
|
1894
|
+
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-2akrepvz.js");
|
|
1895
1895
|
const evidence = await runWithCliNativeRolloutEvidence({
|
|
1896
1896
|
session,
|
|
1897
1897
|
outputDirectory: evidenceOutput,
|
|
@@ -1923,8 +1923,8 @@ POCs: ${pocsPath}`);
|
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
1925
|
async function runThreatModel() {
|
|
1926
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
1927
|
-
const { config: appConfig } = await import("./index-
|
|
1926
|
+
const { runThreatModelWorkflow } = await import("./threatModel-g9pbtnt1.js");
|
|
1927
|
+
const { config: appConfig } = await import("./index-ynsam8mg.js");
|
|
1928
1928
|
const path = await import("path");
|
|
1929
1929
|
const pensarConfig = await appConfig.get();
|
|
1930
1930
|
const model = await resolveCliModel();
|
|
@@ -1959,10 +1959,10 @@ ${sep}
|
|
|
1959
1959
|
Threat model written to: ${resolvedPath}`);
|
|
1960
1960
|
}
|
|
1961
1961
|
async function runOperator() {
|
|
1962
|
-
const { runOffensiveSecurityAgent } = await import("./offesecAgent-
|
|
1963
|
-
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-
|
|
1964
|
-
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-
|
|
1965
|
-
const { config: appConfig } = await import("./index-
|
|
1962
|
+
const { runOffensiveSecurityAgent } = await import("./offesecAgent-zewvmk98.js");
|
|
1963
|
+
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-3rsrzfje.js");
|
|
1964
|
+
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-a9yy0fe3.js");
|
|
1965
|
+
const { config: appConfig } = await import("./index-ynsam8mg.js");
|
|
1966
1966
|
const { createInterface } = await import("readline");
|
|
1967
1967
|
const { readFileSync, existsSync } = await import("fs");
|
|
1968
1968
|
const path = await import("path");
|
|
@@ -2003,7 +2003,7 @@ ${sep}
|
|
|
2003
2003
|
...evidenceOutput ? { nativeRolloutEvidence: { outputDirectory: evidenceOutput } } : {}
|
|
2004
2004
|
}
|
|
2005
2005
|
});
|
|
2006
|
-
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-
|
|
2006
|
+
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-2akrepvz.js");
|
|
2007
2007
|
const evidence = await runWithCliNativeRolloutEvidence({
|
|
2008
2008
|
session,
|
|
2009
2009
|
outputDirectory: evidenceOutput,
|
|
@@ -2105,7 +2105,7 @@ try {
|
|
|
2105
2105
|
await standaloneRuntime?.shutdown();
|
|
2106
2106
|
process.exitCode = 1;
|
|
2107
2107
|
} else {
|
|
2108
|
-
const { startTui } = await import("./index-
|
|
2108
|
+
const { startTui } = await import("./index-yj0ye642.js");
|
|
2109
2109
|
await startTui(options);
|
|
2110
2110
|
}
|
|
2111
2111
|
} else if (hasFlag("-p") || command === "--prompt") {
|
|
@@ -2125,37 +2125,37 @@ try {
|
|
|
2125
2125
|
await runTargetedPentest();
|
|
2126
2126
|
} else if (command === "login" || command === "auth") {
|
|
2127
2127
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2128
|
-
await import("./auth-
|
|
2128
|
+
await import("./auth-hshx11mc.js");
|
|
2129
2129
|
} else if (command === "uninstall") {
|
|
2130
2130
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2131
|
-
await import("./uninstall-
|
|
2131
|
+
await import("./uninstall-jpm5ppfb.js");
|
|
2132
2132
|
} else if (command === "apps") {
|
|
2133
2133
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2134
|
-
await import("./apps-
|
|
2134
|
+
await import("./apps-rh90z2nb.js");
|
|
2135
2135
|
} else if (command === "pentests") {
|
|
2136
2136
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2137
|
-
await import("./pentests-
|
|
2137
|
+
await import("./pentests-xvj8g8h4.js");
|
|
2138
2138
|
} else if (command === "agent-runs") {
|
|
2139
|
-
const { runAgentRunsCommand } = await import("./agent-runs-
|
|
2139
|
+
const { runAgentRunsCommand } = await import("./agent-runs-9nncftzk.js");
|
|
2140
2140
|
await runAgentRunsCommand(args.slice(1));
|
|
2141
2141
|
} else if (command === "targets") {
|
|
2142
2142
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2143
|
-
await import("./targets-
|
|
2143
|
+
await import("./targets-1wajqhm7.js");
|
|
2144
2144
|
} else if (command === "issues") {
|
|
2145
2145
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2146
|
-
await import("./issues-
|
|
2146
|
+
await import("./issues-267ytycy.js");
|
|
2147
2147
|
} else if (command === "knowledge") {
|
|
2148
2148
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2149
|
-
await import("./knowledge-
|
|
2149
|
+
await import("./knowledge-44acmwfw.js");
|
|
2150
2150
|
} else if (command === "fixes") {
|
|
2151
2151
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2152
|
-
await import("./fixes-
|
|
2152
|
+
await import("./fixes-j99tce5t.js");
|
|
2153
2153
|
} else if (command === "logs") {
|
|
2154
2154
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2155
|
-
await import("./logs-
|
|
2155
|
+
await import("./logs-wx69vy65.js");
|
|
2156
2156
|
} else if (command === "config") {
|
|
2157
2157
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2158
|
-
await import("./config-
|
|
2158
|
+
await import("./config-srw06gyv.js");
|
|
2159
2159
|
} else if (command === "threat-model") {
|
|
2160
2160
|
await runThreatModel();
|
|
2161
2161
|
} else if (command === "doctor") {
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
assertDepth,
|
|
6
6
|
inProcessSeams,
|
|
7
7
|
OffensiveSecurityAgent
|
|
8
|
-
} from "./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
8
|
+
} from "./cli-pwhx13h3.js";
|
|
9
|
+
import"./cli-vdbnh2ha.js";
|
|
10
|
+
import"./cli-mrk3hg6f.js";
|
|
11
11
|
import {
|
|
12
12
|
buildPentestReport,
|
|
13
13
|
renderJson,
|
|
14
14
|
renderMarkdown,
|
|
15
15
|
REPORT_FILENAME_MD,
|
|
16
16
|
REPORT_FILENAME_JSON
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-q0wmet0t.js";
|
|
18
18
|
import"./cli-qba2x69h.js";
|
|
19
19
|
import {
|
|
20
20
|
createThreatModelPrompt
|
|
21
21
|
} from "./cli-q126f6ef.js";
|
|
22
|
-
import"./cli-
|
|
22
|
+
import"./cli-prw2dfje.js";
|
|
23
23
|
import"./cli-c2k4xxaw.js";
|
|
24
24
|
import {
|
|
25
25
|
init_zod
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
2
|
+
import"./cli-vdbnh2ha.js";
|
|
3
|
+
import"./cli-mrk3hg6f.js";
|
|
4
4
|
import {
|
|
5
5
|
listFixes2,
|
|
6
6
|
getFix2
|
|
7
|
-
} from "./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
11
|
-
import"./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
15
|
-
import"./cli-
|
|
7
|
+
} from "./cli-e0v6hd3d.js";
|
|
8
|
+
import"./cli-pwhx13h3.js";
|
|
9
|
+
import"./cli-ewav0q78.js";
|
|
10
|
+
import"./cli-fk5e62a6.js";
|
|
11
|
+
import"./cli-6r1ntbmf.js";
|
|
12
|
+
import"./cli-29179gt8.js";
|
|
13
|
+
import"./cli-dqrqgfrp.js";
|
|
14
|
+
import"./cli-tf2kp8s4.js";
|
|
15
|
+
import"./cli-q0wmet0t.js";
|
|
16
16
|
import"./cli-xcy2vxj2.js";
|
|
17
17
|
import {
|
|
18
18
|
markCommandFailed
|
|
19
19
|
} from "./cli-z82n3qk1.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-dawkcveq.js";
|
|
21
21
|
import"./cli-qba2x69h.js";
|
|
22
|
-
import"./cli-
|
|
22
|
+
import"./cli-prw2dfje.js";
|
|
23
23
|
import"./cli-c2k4xxaw.js";
|
|
24
24
|
|
|
25
25
|
// src/cli/fixes.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
1
|
+
import"./cli-vdbnh2ha.js";
|
|
2
|
+
import"./cli-mrk3hg6f.js";
|
|
3
3
|
import {
|
|
4
4
|
generateRandomName,
|
|
5
5
|
generateSessionName,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
init_storage,
|
|
17
17
|
ToolsetStateSchema,
|
|
18
18
|
init_toolset
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-prw2dfje.js";
|
|
20
20
|
import {
|
|
21
21
|
schema,
|
|
22
22
|
descending,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
import {
|
|
42
42
|
getCurrentVersion,
|
|
43
43
|
init_installation
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-gzgyjs36.js";
|
|
45
45
|
|
|
46
46
|
// src/core/session/index.ts
|
|
47
47
|
init_zod();
|
|
@@ -336,7 +336,7 @@ async function create(input) {
|
|
|
336
336
|
} else if (input.inheritEnvironmentConfig === false) {
|
|
337
337
|
snapshotHeaders = {};
|
|
338
338
|
} else {
|
|
339
|
-
const { config: appConfig } = await import("./index-
|
|
339
|
+
const { config: appConfig } = await import("./index-c1tgca1w.js");
|
|
340
340
|
const cfg = await appConfig.get();
|
|
341
341
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
342
342
|
}
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
AppsDiscoveryResultSchema2,
|
|
7
7
|
DiscoverySummarySchema2,
|
|
8
8
|
WhiteboxAttackSurfaceAgent2
|
|
9
|
-
} from "./cli-
|
|
10
|
-
import"./cli-
|
|
9
|
+
} from "./cli-6r1ntbmf.js";
|
|
10
|
+
import"./cli-dawkcveq.js";
|
|
11
11
|
import"./cli-qba2x69h.js";
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
12
|
+
import"./cli-pwhx13h3.js";
|
|
13
|
+
import"./cli-prw2dfje.js";
|
|
14
|
+
import"./cli-mrk3hg6f.js";
|
|
15
15
|
import"./cli-c2k4xxaw.js";
|
|
16
|
-
import"./cli-
|
|
16
|
+
import"./cli-vdbnh2ha.js";
|
|
17
17
|
export {
|
|
18
18
|
AppInfoSchema2 as AppInfoSchema,
|
|
19
19
|
AppsDiscoveryResultSchema2 as AppsDiscoveryResultSchema,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ALL_TOOL_NAMES2,
|
|
3
3
|
SKILL_TOOL_NAMES2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
4
|
+
} from "./cli-pwhx13h3.js";
|
|
5
|
+
import"./cli-vdbnh2ha.js";
|
|
6
|
+
import"./cli-mrk3hg6f.js";
|
|
7
|
+
import"./cli-prw2dfje.js";
|
|
8
8
|
import"./cli-c2k4xxaw.js";
|
|
9
9
|
export {
|
|
10
10
|
ALL_TOOL_NAMES2 as ALL_TOOL_NAMES,
|
|
@@ -32,16 +32,16 @@ import {
|
|
|
32
32
|
RunRecoveryBlockedError2,
|
|
33
33
|
resumeRecordedAgent2,
|
|
34
34
|
serveLocalRunWorker2
|
|
35
|
-
} from "./cli-
|
|
35
|
+
} from "./cli-e0v6hd3d.js";
|
|
36
36
|
import"./cli-xcy2vxj2.js";
|
|
37
|
-
import"./cli-
|
|
38
|
-
import"./cli-
|
|
39
|
-
import"./cli-
|
|
40
|
-
import"./cli-
|
|
41
|
-
import"./cli-
|
|
42
|
-
import"./cli-
|
|
43
|
-
import"./cli-
|
|
44
|
-
import"./cli-
|
|
37
|
+
import"./cli-29179gt8.js";
|
|
38
|
+
import"./cli-q0wmet0t.js";
|
|
39
|
+
import"./cli-6r1ntbmf.js";
|
|
40
|
+
import"./cli-ewav0q78.js";
|
|
41
|
+
import"./cli-dqrqgfrp.js";
|
|
42
|
+
import"./cli-tf2kp8s4.js";
|
|
43
|
+
import"./cli-fk5e62a6.js";
|
|
44
|
+
import"./cli-dawkcveq.js";
|
|
45
45
|
import"./cli-qba2x69h.js";
|
|
46
46
|
import {
|
|
47
47
|
ENDPOINT_TRANSPORTS2,
|
|
@@ -59,14 +59,14 @@ import {
|
|
|
59
59
|
searchEndpoints2,
|
|
60
60
|
listDomains2,
|
|
61
61
|
createDomain2
|
|
62
|
-
} from "./cli-
|
|
63
|
-
import"./cli-
|
|
62
|
+
} from "./cli-pwhx13h3.js";
|
|
63
|
+
import"./cli-prw2dfje.js";
|
|
64
64
|
import {
|
|
65
65
|
getPensarApiUrl2,
|
|
66
66
|
getPensarConsoleUrl2
|
|
67
|
-
} from "./cli-
|
|
67
|
+
} from "./cli-mrk3hg6f.js";
|
|
68
68
|
import"./cli-c2k4xxaw.js";
|
|
69
|
-
import"./cli-
|
|
69
|
+
import"./cli-vdbnh2ha.js";
|
|
70
70
|
export {
|
|
71
71
|
CLOSED_DISPOSITIONS2 as CLOSED_DISPOSITIONS,
|
|
72
72
|
ENDPOINT_TRANSPORTS2 as ENDPOINT_TRANSPORTS,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
1
|
+
import"./cli-vdbnh2ha.js";
|
|
2
|
+
import"./cli-mrk3hg6f.js";
|
|
3
3
|
import {
|
|
4
4
|
scopedLogger,
|
|
5
5
|
init_lazyLogger,
|
|
6
6
|
createLogger,
|
|
7
7
|
init_structured
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-prw2dfje.js";
|
|
9
9
|
import"./cli-c2k4xxaw.js";
|
|
10
10
|
|
|
11
11
|
// src/core/agents/specialized/findingJudge/index.ts
|
|
@@ -14,7 +14,7 @@ init_lazyLogger();
|
|
|
14
14
|
var log = scopedLogger(() => createLogger("FindingJudge"));
|
|
15
15
|
async function judgeFinding(input, ctx) {
|
|
16
16
|
try {
|
|
17
|
-
const { FindingJudgeAgent } = await import("./agent-
|
|
17
|
+
const { FindingJudgeAgent } = await import("./agent-6h49fhz1.js");
|
|
18
18
|
const agent = new FindingJudgeAgent({
|
|
19
19
|
finding: input,
|
|
20
20
|
model: ctx.model,
|