@pensar/apex 2.7.0-canary.d16b6dac → 2.7.0-canary.d482b790
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-1h81wbqb.js +14 -0
- package/build/{agent-6zx1j2na.js → agent-ht2cekmx.js} +7 -7
- package/build/{agent-dbdg5c8z.js → agent-n8whftj9.js} +6 -6
- package/build/{agent-0hyagd4w.js → agent-pqxffbn4.js} +6 -6
- package/build/{agent-runs-bmwn9281.js → agent-runs-fa9qvcrk.js} +19 -19
- package/build/agent-spzqyq1w.js +14 -0
- package/build/{apps-mh5e9gt7.js → apps-fn74m80y.js} +16 -16
- package/build/{auth-jjg35kt8.js → auth-m7nft5k6.js} +16 -16
- package/build/blackboxAgent-p0c2462m.js +14 -0
- package/build/{blackboxPentest-6zz4132w.js → blackboxPentest-w8kh5zr7.js} +12 -12
- package/build/{cli-7qnn06nc.js → cli-4aptft8d.js} +3 -3
- package/build/{cli-714mr7q8.js → cli-5evd650k.js} +8 -8
- package/build/{cli-q9ydfq9r.js → cli-61cn93xa.js} +2 -2
- package/build/{cli-kga1qrsz.js → cli-89xrw30c.js} +8 -1
- package/build/{cli-msh3r1ef.js → cli-a0m2xmg9.js} +1 -1
- package/build/{cli-nrvxdsqf.js → cli-apmqcnhc.js} +1 -1
- package/build/{cli-3g32pm5z.js → cli-b7cgzh4v.js} +8 -8
- package/build/{cli-sh8f3zzf.js → cli-f2dnhzjw.js} +1 -1
- package/build/{cli-n3fx1gqa.js → cli-fytbxc3f.js} +1 -1
- package/build/{cli-xxdhqd8w.js → cli-h4dps3nk.js} +2 -2
- package/build/{cli-9j6q1xtn.js → cli-h8mqfq5f.js} +8 -5
- package/build/{cli-598rxz2s.js → cli-hm3r0brg.js} +2 -2
- package/build/{cli-cn9tevsm.js → cli-j9khm2df.js} +26 -15
- package/build/{cli-yfjccwme.js → cli-jwp3fjbs.js} +1 -1
- package/build/{cli-jnh5f7bf.js → cli-jxrwg7d9.js} +9 -9
- package/build/{cli-tk5af6mb.js → cli-mkps6wyb.js} +1 -1
- package/build/{cli-g56bmmgz.js → cli-p54be2y4.js} +1 -1
- package/build/{cli-stph2wtq.js → cli-qnmbvzjz.js} +2 -2
- package/build/{cli-9dk6v9dn.js → cli-yxn2vdxe.js} +1 -1
- package/build/{cli-6mwta692.js → cli-z9vynq4e.js} +3 -3
- package/build/{cli-bpzxt4qe.js → cli-zjthewc8.js} +2 -2
- package/build/cli.js +38 -38
- package/build/{config-jbyagyr9.js → config-jmewmzp3.js} +1 -1
- package/build/{fastStrike-at70md55.js → fastStrike-tmjs7p11.js} +6 -6
- package/build/{fixes-rm59jz4k.js → fixes-pfwzazhr.js} +16 -16
- package/build/{index-d2qsw8r3.js → index-1grcqv8j.js} +5 -5
- package/build/{index-y0sq0s7w.js → index-1rh450vy.js} +5 -5
- package/build/{index-v8gjdq7m.js → index-970cezm0.js} +16 -16
- package/build/{index-2njjmbtx.js → index-ed5hnbqz.js} +1 -1
- package/build/{index-14c7npae.js → index-fy295sas.js} +1 -1
- package/build/{index-qehgmeaa.js → index-mfh1ak3m.js} +7 -7
- package/build/{index-5v3jf1mz.js → index-r6pn48sv.js} +2 -2
- package/build/{index-ps32yrxv.js → index-vcppjv93.js} +22 -22
- package/build/{index-h10dhy1x.js → index-ygy310zp.js} +4 -4
- package/build/{issues-s202q071.js → issues-4m1e7gnm.js} +16 -16
- package/build/{knowledge-32smnbzt.js → knowledge-pey0y0ks.js} +16 -16
- package/build/{lance-znd8tsky.js → lance-ydqh7hs0.js} +7 -7
- package/build/lib/{chunk-qxrm55y9.js → chunk-0hq5cyn6.js} +1 -1
- package/build/lib/{chunk-zmye764x.js → chunk-2wa0b4yp.js} +5 -5
- package/build/lib/{chunk-6scccv4b.js → chunk-3h85q7ys.js} +2 -2
- package/build/lib/{chunk-fhq9jkje.js → chunk-4k70yge4.js} +3 -3
- package/build/lib/{chunk-0x545vbj.js → chunk-6ma3059a.js} +2 -2
- package/build/lib/{chunk-j39rtmwy.js → chunk-6nzwrzad.js} +1 -1
- package/build/lib/{chunk-s9qs5gem.js → chunk-6phx8nym.js} +1 -1
- package/build/lib/{chunk-m1c4v8a4.js → chunk-8841wp6q.js} +1 -1
- package/build/lib/{chunk-xkhwb8v2.js → chunk-8anxyrhx.js} +1 -1
- package/build/lib/{chunk-vmdepzp4.js → chunk-9bmebvaa.js} +1 -1
- package/build/lib/{chunk-j7v4sw6z.js → chunk-9mh9p717.js} +2 -2
- package/build/lib/{chunk-qze9q578.js → chunk-bbxe97jd.js} +6 -6
- package/build/lib/{chunk-2ym0jqbc.js → chunk-bspec89r.js} +1 -1
- package/build/lib/{chunk-p0h84qs7.js → chunk-czhzj75s.js} +11 -11
- package/build/lib/{chunk-jn4cgy52.js → chunk-de9xgp7d.js} +4 -4
- package/build/lib/{chunk-dv8wgk8g.js → chunk-eq5fvmmf.js} +2 -2
- package/build/lib/{chunk-gjmvasgj.js → chunk-h0rab1cy.js} +10 -10
- package/build/lib/{chunk-nrv3z1m8.js → chunk-hkm94sxk.js} +1 -1
- package/build/lib/{chunk-ejq560n8.js → chunk-kkcfnr93.js} +5 -2
- package/build/lib/{chunk-pntxxpkp.js → chunk-m56qz9kx.js} +12 -12
- package/build/lib/{chunk-c0ntbrrh.js → chunk-ntg6nv0k.js} +1 -1
- package/build/lib/{chunk-9z4ej05j.js → chunk-q8sbnx7y.js} +1 -1
- package/build/lib/{chunk-xd2g4nsd.js → chunk-raehttrq.js} +8 -1
- package/build/lib/{chunk-6rzxcv19.js → chunk-te42312f.js} +11 -11
- package/build/lib/{chunk-5s19eqsg.js → chunk-tk13waqc.js} +1 -1
- package/build/lib/{chunk-ddkbrqvm.js → chunk-z5r8wpk9.js} +24 -13
- package/build/lib/{chunk-x4tfv7rw.js → chunk-zcx58182.js} +1 -1
- package/build/lib/core/agents/offSecAgent/index.js +9 -9
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +6 -6
- package/build/lib/core/agents/offSecAgent/tools/index.js +8 -8
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +11 -11
- package/build/lib/core/agents/specialized/attackSurface/generalizedAgent.js +11 -11
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +11 -11
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +12 -12
- package/build/lib/core/agents/specialized/codeAgent/agent.js +11 -11
- package/build/lib/core/agents/specialized/findingJudge/agent.js +10 -10
- package/build/lib/core/agents/specialized/findingJudge/index.js +4 -4
- package/build/lib/core/agents/specialized/patching/index.js +12 -12
- package/build/lib/core/agents/specialized/pentest/agent.js +11 -11
- package/build/lib/core/agents/specialized/reconWorker/agent.js +10 -10
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +11 -11
- package/build/lib/core/ai/ai.js +3 -3
- package/build/lib/core/ai/index.js +3 -3
- package/build/lib/core/ai/utils.js +3 -3
- package/build/lib/core/api/index.js +22 -22
- package/build/lib/core/api/targetedPentest.js +12 -12
- package/build/lib/core/config/customProviders.d.ts +2 -0
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/findings/registry.js +4 -4
- package/build/lib/core/session/index.js +3 -3
- package/build/lib/core/session/persistence.js +4 -4
- package/build/lib/core/tools/backends/index.js +3 -3
- package/build/lib/core/workflows/pentest.js +17 -17
- package/build/lib/core/workflows/seams.js +5 -5
- package/build/lib/core/workflows/whiteboxAttackSurface.js +13 -13
- package/build/lib/index.js +25 -25
- package/build/{logs-yq83vcfk.js → logs-gt52s9tt.js} +16 -16
- package/build/{native-rollout-evidence-6dptzsqv.js → native-rollout-evidence-630seyd7.js} +3 -3
- package/build/{offesecAgent-qhp965j2.js → offesecAgent-syrcf0h9.js} +6 -6
- package/build/pentest-g1vvb41h.js +23 -0
- package/build/{pentests-8d926t0j.js → pentests-tjd22dg9.js} +16 -16
- package/build/recordedRunClient-wj8mrbw9.js +11 -0
- package/build/{subagentSpawner-zzg7smt8.js → subagentSpawner-a7aeneey.js} +4 -4
- package/build/{targetedPentest-c7ndassd.js → targetedPentest-psfxaczp.js} +8 -8
- package/build/{targets-3qqs9mj0.js → targets-x91j4p73.js} +16 -16
- package/build/threatModel-2zdh5rnx.js +24 -0
- package/build/{uninstall-z30ne2zc.js → uninstall-x424qht1.js} +1 -1
- package/build/{upload-jgp678x6.js → upload-ravxcpph.js} +4 -4
- package/build/{utils-34g7gb0k.js → utils-j2kvjve9.js} +3 -3
- package/package.json +1 -1
- package/src/core/ai/providers/custom.test.ts +80 -0
- package/src/core/ai/providers/custom.ts +3 -0
- package/src/core/config/customProviders.test.ts +14 -0
- package/src/core/config/customProviders.ts +7 -0
- package/src/core/workflows/whiteboxAttackSurface.test.ts +66 -0
- package/src/core/workflows/whiteboxAttackSurface.ts +35 -11
- package/build/agent-4v5k1p67.js +0 -14
- package/build/agent-j62tkz9c.js +0 -14
- package/build/blackboxAgent-wns6xc60.js +0 -14
- package/build/pentest-jdrf1ed0.js +0 -23
- package/build/recordedRunClient-0h288ygj.js +0 -11
- package/build/threatModel-zjn1jjg4.js +0 -24
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-61cn93xa.js";
|
|
4
|
+
import"./cli-yxn2vdxe.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-jxrwg7d9.js";
|
|
7
|
+
import"./cli-5evd650k.js";
|
|
8
|
+
import"./cli-h8mqfq5f.js";
|
|
9
|
+
import"./cli-a0m2xmg9.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-f2dnhzjw.js";
|
|
12
|
+
export {
|
|
13
|
+
CodeAgent2 as CodeAgent
|
|
14
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent2,
|
|
3
3
|
buildPentestSystemPrompt2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-z9vynq4e.js";
|
|
5
|
+
import"./cli-yxn2vdxe.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
7
|
+
import"./cli-jxrwg7d9.js";
|
|
8
|
+
import"./cli-5evd650k.js";
|
|
9
|
+
import"./cli-h8mqfq5f.js";
|
|
10
|
+
import"./cli-a0m2xmg9.js";
|
|
11
11
|
import"./cli-c2k4xxaw.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-f2dnhzjw.js";
|
|
13
13
|
export {
|
|
14
14
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
15
15
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
callbackDomains
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
3
|
+
} from "./cli-jxrwg7d9.js";
|
|
4
|
+
import"./cli-5evd650k.js";
|
|
5
|
+
import"./cli-f2dnhzjw.js";
|
|
6
|
+
import"./cli-a0m2xmg9.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentRuntime,
|
|
9
9
|
defineAgent
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-yxn2vdxe.js";
|
|
11
11
|
import"./cli-qba2x69h.js";
|
|
12
12
|
import {
|
|
13
13
|
stepCountIs2,
|
|
14
14
|
init_dist
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-h8mqfq5f.js";
|
|
16
16
|
import"./cli-c2k4xxaw.js";
|
|
17
17
|
import {
|
|
18
18
|
init_zod
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
1
|
+
import"./cli-5evd650k.js";
|
|
2
|
+
import"./cli-f2dnhzjw.js";
|
|
3
|
+
import"./cli-a0m2xmg9.js";
|
|
4
4
|
import {
|
|
5
5
|
RECON_WORKER_TOOLS
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-jxrwg7d9.js";
|
|
7
7
|
import {
|
|
8
8
|
buildCredentialsBlock
|
|
9
9
|
} from "./cli-xs69gx66.js";
|
|
10
10
|
import {
|
|
11
11
|
AgentRuntime,
|
|
12
12
|
defineAgent
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-yxn2vdxe.js";
|
|
14
14
|
import"./cli-qba2x69h.js";
|
|
15
15
|
import {
|
|
16
16
|
stepCountIs2,
|
|
17
17
|
init_dist
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-h8mqfq5f.js";
|
|
19
19
|
import"./cli-c2k4xxaw.js";
|
|
20
20
|
|
|
21
21
|
// src/core/agents/specialized/reconWorker/agent.ts
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
4
|
+
} from "./cli-f2dnhzjw.js";
|
|
5
|
+
import"./cli-a0m2xmg9.js";
|
|
6
|
+
import"./cli-jxrwg7d9.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentEventBus
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-5evd650k.js";
|
|
10
10
|
import {
|
|
11
11
|
inspectSessionEvidence2,
|
|
12
12
|
RecordedRunSpecSchema,
|
|
@@ -17,27 +17,27 @@ import {
|
|
|
17
17
|
runRecordedAgent2,
|
|
18
18
|
RunRecoveryBlockedError2,
|
|
19
19
|
resumeRecordedAgent2
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
20
|
+
} from "./cli-b7cgzh4v.js";
|
|
21
|
+
import"./cli-hm3r0brg.js";
|
|
22
|
+
import"./cli-61cn93xa.js";
|
|
23
|
+
import"./cli-4aptft8d.js";
|
|
24
|
+
import"./cli-j9khm2df.js";
|
|
25
|
+
import"./cli-h4dps3nk.js";
|
|
26
|
+
import"./cli-z9vynq4e.js";
|
|
27
|
+
import"./cli-p54be2y4.js";
|
|
28
|
+
import"./cli-fytbxc3f.js";
|
|
29
29
|
import"./cli-ak23knae.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveWorkerExecutable,
|
|
32
32
|
launchLocalWorker
|
|
33
|
-
} from "./cli-
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
33
|
+
} from "./cli-apmqcnhc.js";
|
|
34
|
+
import"./cli-qnmbvzjz.js";
|
|
35
|
+
import"./cli-yxn2vdxe.js";
|
|
36
36
|
import"./cli-qba2x69h.js";
|
|
37
37
|
import {
|
|
38
38
|
buildAuthConfig,
|
|
39
39
|
init_ai2
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-h8mqfq5f.js";
|
|
41
41
|
import"./cli-c2k4xxaw.js";
|
|
42
42
|
|
|
43
43
|
// src/cli/agent-runs.ts
|
|
@@ -118,7 +118,7 @@ async function runAgentRunsCommand(args) {
|
|
|
118
118
|
if (!isAbsolute(values.store)) {
|
|
119
119
|
throw new Error("agent-runs worker requires --store <absolute database>");
|
|
120
120
|
}
|
|
121
|
-
const { serveLocalRunWorker } = await import("./index-
|
|
121
|
+
const { serveLocalRunWorker } = await import("./index-970cezm0.js");
|
|
122
122
|
await serveLocalRunWorker({
|
|
123
123
|
runId: values.run,
|
|
124
124
|
databasePath: resolve(values.store)
|
|
@@ -132,7 +132,7 @@ async function runAgentRunsCommand(args) {
|
|
|
132
132
|
${HELP}`);
|
|
133
133
|
}
|
|
134
134
|
if (command === "attach") {
|
|
135
|
-
const { openRecordedRunClient } = await import("./recordedRunClient-
|
|
135
|
+
const { openRecordedRunClient } = await import("./recordedRunClient-wj8mrbw9.js");
|
|
136
136
|
const client = await openRecordedRunClient(values.store);
|
|
137
137
|
const controller = new AbortController;
|
|
138
138
|
const detach = () => controller.abort();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-h4dps3nk.js";
|
|
4
|
+
import"./cli-yxn2vdxe.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-jxrwg7d9.js";
|
|
7
|
+
import"./cli-5evd650k.js";
|
|
8
|
+
import"./cli-h8mqfq5f.js";
|
|
9
|
+
import"./cli-a0m2xmg9.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-f2dnhzjw.js";
|
|
12
|
+
export {
|
|
13
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
14
|
+
};
|
|
@@ -15,27 +15,27 @@ import {
|
|
|
15
15
|
searchEndpoints2,
|
|
16
16
|
listDomains2,
|
|
17
17
|
createDomain2
|
|
18
|
-
} from "./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
18
|
+
} from "./cli-jxrwg7d9.js";
|
|
19
|
+
import"./cli-5evd650k.js";
|
|
20
|
+
import"./cli-f2dnhzjw.js";
|
|
21
|
+
import"./cli-a0m2xmg9.js";
|
|
22
|
+
import"./cli-b7cgzh4v.js";
|
|
23
|
+
import"./cli-hm3r0brg.js";
|
|
24
|
+
import"./cli-61cn93xa.js";
|
|
25
|
+
import"./cli-4aptft8d.js";
|
|
26
|
+
import"./cli-j9khm2df.js";
|
|
27
|
+
import"./cli-h4dps3nk.js";
|
|
28
|
+
import"./cli-z9vynq4e.js";
|
|
29
|
+
import"./cli-p54be2y4.js";
|
|
30
|
+
import"./cli-fytbxc3f.js";
|
|
31
31
|
import"./cli-ak23knae.js";
|
|
32
32
|
import {
|
|
33
33
|
markCommandFailed
|
|
34
34
|
} from "./cli-z82n3qk1.js";
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
35
|
+
import"./cli-qnmbvzjz.js";
|
|
36
|
+
import"./cli-yxn2vdxe.js";
|
|
37
37
|
import"./cli-qba2x69h.js";
|
|
38
|
-
import"./cli-
|
|
38
|
+
import"./cli-h8mqfq5f.js";
|
|
39
39
|
import"./cli-c2k4xxaw.js";
|
|
40
40
|
|
|
41
41
|
// src/cli/apps.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
2
|
+
import"./cli-jxrwg7d9.js";
|
|
3
|
+
import"./cli-5evd650k.js";
|
|
4
4
|
import {
|
|
5
5
|
config2,
|
|
6
6
|
init_config
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-f2dnhzjw.js";
|
|
8
8
|
import {
|
|
9
9
|
getPensarApiUrl2,
|
|
10
10
|
getPensarConsoleUrl2,
|
|
@@ -20,24 +20,24 @@ import {
|
|
|
20
20
|
createWorkspaceSelection2,
|
|
21
21
|
pollWorkspaceSelection2,
|
|
22
22
|
init_auth
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
31
|
-
import"./cli-
|
|
32
|
-
import"./cli-
|
|
23
|
+
} from "./cli-a0m2xmg9.js";
|
|
24
|
+
import"./cli-b7cgzh4v.js";
|
|
25
|
+
import"./cli-hm3r0brg.js";
|
|
26
|
+
import"./cli-61cn93xa.js";
|
|
27
|
+
import"./cli-4aptft8d.js";
|
|
28
|
+
import"./cli-j9khm2df.js";
|
|
29
|
+
import"./cli-h4dps3nk.js";
|
|
30
|
+
import"./cli-z9vynq4e.js";
|
|
31
|
+
import"./cli-p54be2y4.js";
|
|
32
|
+
import"./cli-fytbxc3f.js";
|
|
33
33
|
import"./cli-ak23knae.js";
|
|
34
34
|
import {
|
|
35
35
|
markCommandFailed
|
|
36
36
|
} from "./cli-z82n3qk1.js";
|
|
37
|
-
import"./cli-
|
|
38
|
-
import"./cli-
|
|
37
|
+
import"./cli-qnmbvzjz.js";
|
|
38
|
+
import"./cli-yxn2vdxe.js";
|
|
39
39
|
import"./cli-qba2x69h.js";
|
|
40
|
-
import"./cli-
|
|
40
|
+
import"./cli-h8mqfq5f.js";
|
|
41
41
|
import"./cli-c2k4xxaw.js";
|
|
42
42
|
import {
|
|
43
43
|
__require
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent2
|
|
3
|
+
} from "./cli-hm3r0brg.js";
|
|
4
|
+
import"./cli-yxn2vdxe.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-jxrwg7d9.js";
|
|
7
|
+
import"./cli-5evd650k.js";
|
|
8
|
+
import"./cli-h8mqfq5f.js";
|
|
9
|
+
import"./cli-a0m2xmg9.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-f2dnhzjw.js";
|
|
12
|
+
export {
|
|
13
|
+
BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
|
|
14
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
1
|
+
import"./cli-f2dnhzjw.js";
|
|
2
|
+
import"./cli-a0m2xmg9.js";
|
|
3
|
+
import"./cli-5evd650k.js";
|
|
4
|
+
import"./cli-jxrwg7d9.js";
|
|
5
|
+
import"./cli-hm3r0brg.js";
|
|
6
|
+
import"./cli-z9vynq4e.js";
|
|
7
|
+
import"./cli-p54be2y4.js";
|
|
8
8
|
import {
|
|
9
9
|
readExecutionMetrics,
|
|
10
10
|
writeExecutionMetrics,
|
|
11
11
|
runPentestWorkflow2
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
12
|
+
} from "./cli-j9khm2df.js";
|
|
13
|
+
import"./cli-61cn93xa.js";
|
|
14
|
+
import"./cli-4aptft8d.js";
|
|
15
15
|
import {
|
|
16
16
|
EMPTY_SESSION_TOKEN_USAGE,
|
|
17
17
|
accumulateSessionTokens
|
|
18
18
|
} from "./cli-ag6jtndp.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-yxn2vdxe.js";
|
|
20
20
|
import"./cli-qba2x69h.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeStepUsage,
|
|
23
23
|
init_ai2
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-h8mqfq5f.js";
|
|
25
25
|
import"./cli-c2k4xxaw.js";
|
|
26
26
|
|
|
27
27
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EndpointTransportEnum,
|
|
3
3
|
GrpcEndpointMetadataSchema
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-jxrwg7d9.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRuntime,
|
|
7
7
|
defineAgent
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-yxn2vdxe.js";
|
|
9
9
|
import {
|
|
10
10
|
stepCountIs2,
|
|
11
11
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-h8mqfq5f.js";
|
|
13
13
|
import {
|
|
14
14
|
tool
|
|
15
15
|
} from "./cli-ychebg4z.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getModelSettings,
|
|
7
7
|
generateObjectResponse,
|
|
8
8
|
init_ai2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-h8mqfq5f.js";
|
|
10
10
|
import {
|
|
11
11
|
newSessionId,
|
|
12
12
|
init_id,
|
|
@@ -935,7 +935,7 @@ async function spawnBatch2(spawner, requests, opts, limiter) {
|
|
|
935
935
|
});
|
|
936
936
|
}
|
|
937
937
|
async function runSpawnedPentestWorker(spec, input) {
|
|
938
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
938
|
+
const { TargetedPentestAgent } = await import("./agent-ht2cekmx.js");
|
|
939
939
|
const hooks = resolveItemHooks(input.hooks, input.seams, spec, 0);
|
|
940
940
|
const agent = new TargetedPentestAgent({
|
|
941
941
|
target: spec.target,
|
|
@@ -1008,7 +1008,7 @@ var runPentestChild = async (spec, ctx) => {
|
|
|
1008
1008
|
};
|
|
1009
1009
|
};
|
|
1010
1010
|
var runCodeChild = async (spec, ctx) => {
|
|
1011
|
-
const { CodeAgent } = await import("./agent-
|
|
1011
|
+
const { CodeAgent } = await import("./agent-1h81wbqb.js");
|
|
1012
1012
|
const agent = new CodeAgent({
|
|
1013
1013
|
findingPolicy: ctx.findingPolicy,
|
|
1014
1014
|
codebasePath: spec.codebasePath,
|
|
@@ -1039,7 +1039,7 @@ var runCodeChild = async (spec, ctx) => {
|
|
|
1039
1039
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1040
1040
|
};
|
|
1041
1041
|
var runReconWorkerChild = async (spec, ctx) => {
|
|
1042
|
-
const { ReconWorkerAgent } = await import("./agent-
|
|
1042
|
+
const { ReconWorkerAgent } = await import("./agent-pqxffbn4.js");
|
|
1043
1043
|
const agent = new ReconWorkerAgent({
|
|
1044
1044
|
goal: spec.goal,
|
|
1045
1045
|
target: spec.target,
|
|
@@ -1072,7 +1072,7 @@ var runReconWorkerChild = async (spec, ctx) => {
|
|
|
1072
1072
|
};
|
|
1073
1073
|
};
|
|
1074
1074
|
var runWhiteboxChild = async (spec, ctx) => {
|
|
1075
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
1075
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-mfh1ak3m.js");
|
|
1076
1076
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
1077
1077
|
findingPolicy: ctx.findingPolicy,
|
|
1078
1078
|
codebasePath: spec.codebasePath,
|
|
@@ -1094,7 +1094,7 @@ var runWhiteboxChild = async (spec, ctx) => {
|
|
|
1094
1094
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1095
1095
|
};
|
|
1096
1096
|
var runBlackboxChild = async (spec, ctx) => {
|
|
1097
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
1097
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-p0c2462m.js");
|
|
1098
1098
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
1099
1099
|
findingPolicy: ctx.findingPolicy,
|
|
1100
1100
|
target: spec.target,
|
|
@@ -1115,7 +1115,7 @@ var runBlackboxChild = async (spec, ctx) => {
|
|
|
1115
1115
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1116
1116
|
};
|
|
1117
1117
|
var runAuthChild = async (spec, ctx) => {
|
|
1118
|
-
const { runAuthenticationAgent } = await import("./agent-
|
|
1118
|
+
const { runAuthenticationAgent } = await import("./agent-spzqyq1w.js");
|
|
1119
1119
|
return {
|
|
1120
1120
|
run: () => runAuthenticationAgent({
|
|
1121
1121
|
findingPolicy: ctx.findingPolicy,
|
|
@@ -1139,7 +1139,7 @@ var runAuthChild = async (spec, ctx) => {
|
|
|
1139
1139
|
};
|
|
1140
1140
|
};
|
|
1141
1141
|
var runJudgeChild = async (spec, ctx) => {
|
|
1142
|
-
const { judgeFinding } = await import("./index-
|
|
1142
|
+
const { judgeFinding } = await import("./index-ygy310zp.js");
|
|
1143
1143
|
return {
|
|
1144
1144
|
run: () => judgeFinding(spec.judgeInput, {
|
|
1145
1145
|
waitForDrain: spec.waitForDrain,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRuntime,
|
|
3
3
|
defineAgent
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-yxn2vdxe.js";
|
|
5
5
|
import {
|
|
6
6
|
stepCountIs2,
|
|
7
7
|
init_dist
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-h8mqfq5f.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
11
11
|
init_dist();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getCurrentVersion,
|
|
3
3
|
init_installation
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-mkps6wyb.js";
|
|
5
5
|
import {
|
|
6
6
|
lanceBudgetSchema,
|
|
7
7
|
init_lanceBudget
|
|
@@ -107,6 +107,7 @@ var init_customProviders = __esm(() => {
|
|
|
107
107
|
customProviderBaseSchema = strictObject({
|
|
108
108
|
name: string().trim().min(1).optional(),
|
|
109
109
|
apiType: _enum(["chat-completions", "responses"]).optional(),
|
|
110
|
+
includeUsage: boolean().optional(),
|
|
110
111
|
baseUrl: string().transform((value, ctx) => {
|
|
111
112
|
try {
|
|
112
113
|
const url = new URL(value);
|
|
@@ -143,6 +144,12 @@ var init_customProviders = __esm(() => {
|
|
|
143
144
|
path: ["requestBody"],
|
|
144
145
|
message: "requestBody is only supported for Chat Completions"
|
|
145
146
|
});
|
|
147
|
+
if (provider.includeUsage !== undefined)
|
|
148
|
+
ctx.addIssue({
|
|
149
|
+
code: "custom",
|
|
150
|
+
path: ["includeUsage"],
|
|
151
|
+
message: "includeUsage is only supported for Chat Completions"
|
|
152
|
+
});
|
|
146
153
|
} else if (provider.models.some((model) => model.reasoningEffort || model.supportedReasoningEfforts)) {
|
|
147
154
|
ctx.addIssue({
|
|
148
155
|
code: "custom",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-f2dnhzjw.js";
|
|
5
5
|
import {
|
|
6
6
|
init_constants
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-a0m2xmg9.js";
|
|
8
8
|
import {
|
|
9
9
|
GENERALIZED_ATTACK_SURFACE_TOOLS,
|
|
10
10
|
buildSessionWorkspaceSection,
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
apiRequest,
|
|
14
14
|
ALL_TOOL_NAMES2,
|
|
15
15
|
SKILL_TOOL_NAMES2
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-jxrwg7d9.js";
|
|
17
17
|
import {
|
|
18
18
|
loadAttackSurfaceResults
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-hm3r0brg.js";
|
|
20
20
|
import {
|
|
21
21
|
runOffensiveSecurityAgent2
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-qnmbvzjz.js";
|
|
23
23
|
import {
|
|
24
24
|
GENERALIZED_ATTACK_SURFACE_SYSTEM_PROMPT,
|
|
25
25
|
buildCredentialsBlock,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./cli-xs69gx66.js";
|
|
28
28
|
import {
|
|
29
29
|
defineAgent
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-yxn2vdxe.js";
|
|
31
31
|
import {
|
|
32
32
|
toolModelMessageSchema,
|
|
33
33
|
modelMessageSchema,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
getModelInfo,
|
|
51
51
|
buildAuthConfig,
|
|
52
52
|
init_ai2
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-h8mqfq5f.js";
|
|
54
54
|
import {
|
|
55
55
|
newSessionId,
|
|
56
56
|
isSessionId,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
import {
|
|
66
66
|
getCurrentVersion,
|
|
67
67
|
init_installation
|
|
68
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-mkps6wyb.js";
|
|
69
69
|
import {
|
|
70
70
|
init_zod
|
|
71
71
|
} from "./cli-3qznjsnr.js";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AgentRuntime,
|
|
10
10
|
defineAgent
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-yxn2vdxe.js";
|
|
12
12
|
import {
|
|
13
13
|
hasToolCall,
|
|
14
14
|
init_dist,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
init_structured,
|
|
17
17
|
scopedLogger,
|
|
18
18
|
init_lazyLogger
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-h8mqfq5f.js";
|
|
20
20
|
|
|
21
21
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
22
22
|
init_dist();
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
config2,
|
|
8
8
|
init_config
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-f2dnhzjw.js";
|
|
10
10
|
import {
|
|
11
11
|
getPensarGatewayUrl,
|
|
12
12
|
init_constants,
|
|
13
13
|
ensureValidToken2,
|
|
14
14
|
signGatewayRequest2,
|
|
15
15
|
init_auth
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-a0m2xmg9.js";
|
|
17
17
|
import {
|
|
18
18
|
schema,
|
|
19
19
|
descending,
|
|
@@ -108,11 +108,11 @@ import {
|
|
|
108
108
|
init_hoonify,
|
|
109
109
|
resolveOllamaModel,
|
|
110
110
|
init_ollama
|
|
111
|
-
} from "./cli-
|
|
111
|
+
} from "./cli-89xrw30c.js";
|
|
112
112
|
import {
|
|
113
113
|
getCurrentVersion,
|
|
114
114
|
init_installation
|
|
115
|
-
} from "./cli-
|
|
115
|
+
} from "./cli-mkps6wyb.js";
|
|
116
116
|
import {
|
|
117
117
|
lanceBudgetSchema,
|
|
118
118
|
init_lanceBudget
|
|
@@ -10598,7 +10598,7 @@ async function create(input) {
|
|
|
10598
10598
|
} else if (input.inheritEnvironmentConfig === false) {
|
|
10599
10599
|
snapshotHeaders = {};
|
|
10600
10600
|
} else {
|
|
10601
|
-
const { config: appConfig } = await import("./index-
|
|
10601
|
+
const { config: appConfig } = await import("./index-fy295sas.js");
|
|
10602
10602
|
const cfg = await appConfig.get();
|
|
10603
10603
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
10604
10604
|
}
|
|
@@ -51650,6 +51650,8 @@ function createCustomModel(id, providers) {
|
|
|
51650
51650
|
throw new Error("Responses custom providers require apiKeyEnv.");
|
|
51651
51651
|
if (provider.requestBody)
|
|
51652
51652
|
throw new Error("requestBody is only supported for Chat Completions.");
|
|
51653
|
+
if (provider.includeUsage !== undefined)
|
|
51654
|
+
throw new Error("includeUsage is only supported for Chat Completions.");
|
|
51653
51655
|
const responsesModel = createOpenAI({
|
|
51654
51656
|
name: `custom-${providerId}`,
|
|
51655
51657
|
baseURL: provider.baseUrl,
|
|
@@ -51681,6 +51683,7 @@ function createCustomModel(id, providers) {
|
|
|
51681
51683
|
throw new Error("reasoningEffort requires the Responses API.");
|
|
51682
51684
|
return createOpenAICompatible({
|
|
51683
51685
|
name: `custom-${providerId}`,
|
|
51686
|
+
includeUsage: provider.includeUsage,
|
|
51684
51687
|
baseURL: provider.baseUrl,
|
|
51685
51688
|
apiKey: resolveCustomApiKey(provider),
|
|
51686
51689
|
headers: provider.headers,
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
AgentRuntime,
|
|
6
6
|
defineAgent
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-yxn2vdxe.js";
|
|
8
8
|
import {
|
|
9
9
|
stepCountIs2,
|
|
10
10
|
hasToolCall,
|
|
11
11
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-h8mqfq5f.js";
|
|
13
13
|
|
|
14
14
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
15
15
|
init_dist();
|