@pensar/apex 2.7.0-canary.2245acbd → 2.7.0-canary.30dd57ca
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-29xka573.js +14 -0
- package/build/{agent-fr60kr30.js → agent-96x1fmev.js} +6 -6
- package/build/agent-gwjwqs79.js +14 -0
- package/build/{agent-runs-v77njejp.js → agent-runs-bq6agc2j.js} +19 -19
- package/build/{agent-2mbyqr0n.js → agent-ssx1fxxh.js} +7 -7
- package/build/{apps-ya5a3z9z.js → apps-7t6yfnkr.js} +16 -16
- package/build/{auth-adj5k5rp.js → auth-rk82f7ex.js} +16 -16
- package/build/blackboxAgent-ny4vw1qb.js +14 -0
- package/build/{blackboxPentest-4q3aay6e.js → blackboxPentest-ny5hypqq.js} +12 -12
- package/build/{cli-338p1kjj.js → cli-02spd95w.js} +7 -7
- package/build/{cli-c819gbky.js → cli-03re5agz.js} +3 -3
- package/build/{cli-gv1v3myg.js → cli-0983qj94.js} +1 -1
- package/build/{cli-f967pp1y.js → cli-0pdsq871.js} +1 -1
- package/build/{cli-q111mpr0.js → cli-0s2j47cf.js} +2 -2
- package/build/{cli-dqpdgmfm.js → cli-1cntxbf1.js} +1 -1
- package/build/{cli-sq894ffd.js → cli-1m23stwf.js} +2 -2
- package/build/{cli-3jjwy74s.js → cli-46za39pt.js} +1 -1
- package/build/{cli-yxp55r84.js → cli-60ckg1jj.js} +2 -2
- package/build/{cli-ekv21ejw.js → cli-6wv8wxwm.js} +1 -1
- package/build/{cli-eb2jzax2.js → cli-7288ea8p.js} +3 -3
- package/build/{cli-ny923ch6.js → cli-bgpmbjrd.js} +2 -2
- package/build/{cli-qr6mnr22.js → cli-ek6kavmy.js} +1 -1
- package/build/{cli-5yjwhpkw.js → cli-gxk0xv52.js} +5 -5
- package/build/{cli-47fpwa1j.js → cli-hq1bhr5t.js} +7 -7
- package/build/{cli-hjqs6983.js → cli-n9h1jwmf.js} +49 -13
- package/build/{cli-rnf3zcrx.js → cli-pek3fpmz.js} +1 -1
- package/build/{cli-6x5mwvq9.js → cli-pzy9wyet.js} +1 -1
- package/build/{cli-j5cx4cbe.js → cli-tgrq0r0r.js} +9 -9
- package/build/{cli-b9c9kgge.js → cli-vm2ddx02.js} +919 -617
- package/build/{cli-278wp1w5.js → cli-zbg59vp8.js} +1 -1
- package/build/cli.js +38 -38
- package/build/{config-sb8v39j3.js → config-s3kwt4x9.js} +1 -1
- package/build/{fastStrike-tf2z2yk7.js → fastStrike-dfn8qgbd.js} +6 -6
- package/build/{fixes-x02qse8p.js → fixes-1grrk24d.js} +16 -16
- package/build/{index-7w4n9kkk.js → index-0pgw9j0q.js} +4 -4
- package/build/{index-ma0r90mp.js → index-48rdcajs.js} +2 -2
- package/build/{index-27apajv1.js → index-8kypxm7c.js} +5 -5
- package/build/{index-1267w9xp.js → index-97fhvt95.js} +1 -1
- package/build/{index-k2kgmegh.js → index-an04xvt9.js} +16 -16
- package/build/{index-6vq25f67.js → index-fdny93q2.js} +5 -5
- package/build/{index-wrrkabq4.js → index-ghjjb65a.js} +22 -22
- package/build/{index-x2jn2s7c.js → index-sz0bhddx.js} +7 -7
- package/build/{index-3pwk8qdm.js → index-w4sq93y8.js} +1 -1
- package/build/{issues-ae8xns2h.js → issues-63sf5wz3.js} +16 -16
- package/build/{knowledge-24q0edfr.js → knowledge-jmh43krm.js} +16 -16
- package/build/{lance-cy2351aa.js → lance-6zaz81n0.js} +7 -7
- package/build/lib/{chunk-2rz4pxbd.js → chunk-1k9504hd.js} +10 -11
- package/build/lib/{chunk-zxrbrrce.js → chunk-5avnedwm.js} +97 -589
- package/build/lib/{chunk-9d4cpkfp.js → chunk-5zp1h7jc.js} +2 -2
- package/build/lib/{chunk-6nz3qvgt.js → chunk-99t7k2s7.js} +1 -1
- package/build/lib/{chunk-7jxt4mws.js → chunk-agvcg5hm.js} +6 -6
- package/build/lib/{chunk-r05a8em0.js → chunk-app1j5v1.js} +1 -1
- package/build/lib/{chunk-rcswnhfx.js → chunk-g9cmyzde.js} +11 -11
- package/build/lib/{chunk-9b34e1xv.js → chunk-gkg51ke8.js} +4 -4
- package/build/lib/{chunk-74v1j9fv.js → chunk-hcgfyh8w.js} +1 -1
- package/build/lib/{chunk-s8cwj99j.js → chunk-hjs8t3dz.js} +1 -1
- package/build/lib/{chunk-s4yh1x0q.js → chunk-hs05csp2.js} +1 -1
- package/build/lib/{chunk-58veqf1b.js → chunk-hxdrh5y1.js} +3 -3
- package/build/lib/{chunk-ybs8vnqn.js → chunk-j6baq6p7.js} +6 -6
- package/build/lib/{chunk-he6bt99t.js → chunk-j7tgd3eb.js} +2 -2
- package/build/lib/{chunk-gehwsvr1.js → chunk-m60fcmc1.js} +1 -1
- package/build/lib/{chunk-3btmke6e.js → chunk-n9z5b17x.js} +1 -1
- package/build/lib/{chunk-c8fsyvgk.js → chunk-ny8at0ts.js} +109 -7
- package/build/lib/{chunk-cw04smka.js → chunk-pvwvksw1.js} +1 -1
- package/build/lib/{chunk-zfvzh2sv.js → chunk-qgjs6r7x.js} +48 -12
- package/build/lib/{chunk-6bth5b5g.js → chunk-r57ymzft.js} +9 -10
- package/build/lib/{chunk-y8zz7bjs.js → chunk-ra2pejz2.js} +341 -171
- package/build/lib/{chunk-2r3wkxtf.js → chunk-ty8skvht.js} +1 -1
- package/build/lib/{chunk-2v0bwpfd.js → chunk-w7khgzyg.js} +1 -1
- package/build/lib/{chunk-6a122h2k.js → chunk-x2vg7zya.js} +16 -18
- package/build/lib/{chunk-wt3ypta3.js → chunk-z16xmz2n.js} +1 -1
- package/build/lib/core/agents/offSecAgent/index.js +10 -11
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +5 -6
- package/build/lib/core/agents/offSecAgent/tools/browserHeaderRouting.d.ts +0 -2
- package/build/lib/core/agents/offSecAgent/tools/getPage.d.ts +2 -1
- package/build/lib/core/agents/offSecAgent/tools/index.js +9 -10
- package/build/lib/core/agents/offSecAgent/tools/scopeGuard.d.ts +18 -7
- package/build/lib/core/agents/offSecAgent/tools/webSearch.d.ts +0 -8
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +10 -11
- package/build/lib/core/agents/specialized/attackSurface/prompts.d.ts +1 -1
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +10 -11
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +11 -12
- package/build/lib/core/agents/specialized/codeAgent/agent.js +10 -11
- package/build/lib/core/agents/specialized/findingJudge/agent.js +9 -10
- package/build/lib/core/agents/specialized/findingJudge/index.js +3 -4
- package/build/lib/core/agents/specialized/patching/index.js +11 -12
- package/build/lib/core/agents/specialized/pentest/agent.js +10 -11
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +10 -11
- package/build/lib/core/ai/ai.js +2 -3
- package/build/lib/core/ai/index.js +2 -3
- package/build/lib/core/ai/utils.js +2 -3
- package/build/lib/core/api/index.js +21 -23
- package/build/lib/core/api/targetedPentest.js +11 -12
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/findings/registry.js +3 -4
- package/build/lib/core/http/targetHeaders.d.ts +0 -2
- package/build/lib/core/http/targetScope.d.ts +0 -3
- package/build/lib/core/session/index.js +2 -3
- package/build/lib/core/session/persistence.js +3 -4
- package/build/lib/core/tools/backends/index.js +1 -3
- package/build/lib/core/tools/backends/types.d.ts +0 -2
- package/build/lib/core/workflows/pentest.js +16 -17
- package/build/lib/core/workflows/seams.js +4 -5
- package/build/lib/core/workflows/whiteboxAttackSurface.js +12 -13
- package/build/lib/index.js +23 -24
- package/build/{logs-bnw04wqp.js → logs-b8y8d5e3.js} +16 -16
- package/build/{native-rollout-evidence-80vy8403.js → native-rollout-evidence-nekfbrh4.js} +3 -3
- package/build/{offesecAgent-9m683nv4.js → offesecAgent-s7pddf4g.js} +6 -6
- package/build/pentest-7a2xfm93.js +23 -0
- package/build/{pentests-2ap08b1a.js → pentests-4wfb22yp.js} +16 -16
- package/build/recordedRunClient-ptyqssxc.js +11 -0
- package/build/{subagentSpawner-w0ys1ym6.js → subagentSpawner-jw66fdeh.js} +4 -4
- package/build/{targetedPentest-myj6mwb1.js → targetedPentest-7hw5v3qb.js} +8 -8
- package/build/{targets-g9w2v2xc.js → targets-wf0h641d.js} +16 -16
- package/build/threatModel-wzrehc8t.js +24 -0
- package/build/{uninstall-6swmh7zn.js → uninstall-m7thta4w.js} +1 -1
- package/build/{upload-f1cqhdpb.js → upload-jzrqy12h.js} +4 -4
- package/build/{utils-xq1bbxd1.js → utils-k7b82ary.js} +3 -3
- package/package.json +1 -1
- package/src/cli/agent-runs.test.ts +4 -1
- package/src/cli/issues.test.ts +1 -17
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +1 -5
- package/src/core/agents/offSecAgent/prompt.ts +1 -1
- package/src/core/agents/offSecAgent/recordedTools.test.ts +1 -5
- package/src/core/agents/offSecAgent/selectiveConstruction.test.ts +1 -5
- package/src/core/agents/offSecAgent/tools/browserHeaderRouting.test.ts +8 -106
- package/src/core/agents/offSecAgent/tools/browserHeaderRouting.ts +16 -56
- package/src/core/agents/offSecAgent/tools/delegateAuth.ts +0 -4
- package/src/core/agents/offSecAgent/tools/executeCommand.test.ts +1 -2
- package/src/core/agents/offSecAgent/tools/getPage.test.ts +0 -120
- package/src/core/agents/offSecAgent/tools/getPage.ts +19 -24
- package/src/core/agents/offSecAgent/tools/httpBackends.test.ts +25 -18
- package/src/core/agents/offSecAgent/tools/httpRequest.test.ts +0 -54
- package/src/core/agents/offSecAgent/tools/playwrightMcp.test.ts +0 -5
- package/src/core/agents/offSecAgent/tools/playwrightMcp.ts +2 -5
- package/src/core/agents/offSecAgent/tools/sandboxPlaywright.test.ts +0 -47
- package/src/core/agents/offSecAgent/tools/sandboxPlaywright.ts +2 -65
- package/src/core/agents/offSecAgent/tools/scopeGuard.test.ts +52 -121
- package/src/core/agents/offSecAgent/tools/scopeGuard.ts +30 -50
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +3 -4
- package/src/core/agents/offSecAgent/tools/webSearch.ts +87 -119
- package/src/core/agents/specialized/attackSurface/blackboxAgent.ts +3 -3
- package/src/core/agents/specialized/attackSurface/prompts.ts +45 -9
- package/src/core/http/headers.contract.test.ts +2 -100
- package/src/core/http/targetHeaders.ts +8 -26
- package/src/core/http/targetScope.ts +11 -47
- package/src/core/runtime/sqliteRecoveryStore.test.ts +5 -24
- package/src/core/tools/backends/local.test.ts +0 -126
- package/src/core/tools/backends/local.ts +59 -256
- package/src/core/tools/backends/policy.test.ts +1 -36
- package/src/core/tools/backends/policy.ts +4 -9
- package/src/core/tools/backends/types.ts +0 -2
- package/build/agent-88cxq4rw.js +0 -14
- package/build/agent-bp0s9m26.js +0 -14
- package/build/blackboxAgent-gsv15wd5.js +0 -14
- package/build/lib/chunk-jsr01spp.js +0 -112
- package/build/lib/core/http/researchFetchToken.d.ts +0 -2
- package/build/pentest-pkr2hfgp.js +0 -23
- package/build/recordedRunClient-y4khnzh2.js +0 -11
- package/build/threatModel-r6cm2z8v.js +0 -24
- package/src/core/agents/offSecAgent/tools/browserHeaderRouting.redirect.test.ts +0 -141
- package/src/core/agents/offSecAgent/tools/webSearch.test.ts +0 -154
- package/src/core/http/agentNetworkPolicyFixture.test.ts +0 -39
- package/src/core/http/researchFetchToken.test.ts +0 -50
- package/src/core/http/researchFetchToken.ts +0 -63
- package/src/test-fixtures/agent-network-policy-v2.json +0 -80
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-1m23stwf.js";
|
|
4
|
+
import"./cli-0pdsq871.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-vm2ddx02.js";
|
|
7
|
+
import"./cli-hq1bhr5t.js";
|
|
8
|
+
import"./cli-gxk0xv52.js";
|
|
9
|
+
import"./cli-pek3fpmz.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-ek6kavmy.js";
|
|
12
|
+
export {
|
|
13
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
14
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
1
|
+
import"./cli-hq1bhr5t.js";
|
|
2
|
+
import"./cli-ek6kavmy.js";
|
|
3
|
+
import"./cli-pek3fpmz.js";
|
|
4
|
+
import"./cli-vm2ddx02.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRuntime,
|
|
7
7
|
defineAgent
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-0pdsq871.js";
|
|
9
9
|
import"./cli-qba2x69h.js";
|
|
10
10
|
import {
|
|
11
11
|
stepCountIs2,
|
|
12
12
|
init_dist
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-gxk0xv52.js";
|
|
14
14
|
import"./cli-c2k4xxaw.js";
|
|
15
15
|
import {
|
|
16
16
|
init_zod
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-60ckg1jj.js";
|
|
4
|
+
import"./cli-0pdsq871.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-vm2ddx02.js";
|
|
7
|
+
import"./cli-hq1bhr5t.js";
|
|
8
|
+
import"./cli-gxk0xv52.js";
|
|
9
|
+
import"./cli-pek3fpmz.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-ek6kavmy.js";
|
|
12
|
+
export {
|
|
13
|
+
CodeAgent2 as CodeAgent
|
|
14
|
+
};
|
|
@@ -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-ek6kavmy.js";
|
|
5
|
+
import"./cli-pek3fpmz.js";
|
|
6
|
+
import"./cli-vm2ddx02.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentEventBus
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-hq1bhr5t.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-02spd95w.js";
|
|
21
|
+
import"./cli-n9h1jwmf.js";
|
|
22
|
+
import"./cli-60ckg1jj.js";
|
|
23
|
+
import"./cli-03re5agz.js";
|
|
24
|
+
import"./cli-tgrq0r0r.js";
|
|
25
|
+
import"./cli-1m23stwf.js";
|
|
26
|
+
import"./cli-7288ea8p.js";
|
|
27
|
+
import"./cli-46za39pt.js";
|
|
28
|
+
import"./cli-0983qj94.js";
|
|
29
29
|
import"./cli-xcy2vxj2.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveWorkerExecutable,
|
|
32
32
|
launchLocalWorker
|
|
33
|
-
} from "./cli-
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
33
|
+
} from "./cli-6wv8wxwm.js";
|
|
34
|
+
import"./cli-bgpmbjrd.js";
|
|
35
|
+
import"./cli-0pdsq871.js";
|
|
36
36
|
import"./cli-qba2x69h.js";
|
|
37
37
|
import {
|
|
38
38
|
buildAuthConfig,
|
|
39
39
|
init_ai2
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-gxk0xv52.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-an04xvt9.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-ptyqssxc.js");
|
|
136
136
|
const client = await openRecordedRunClient(values.store);
|
|
137
137
|
const controller = new AbortController;
|
|
138
138
|
const detach = () => controller.abort();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent2,
|
|
3
3
|
buildPentestSystemPrompt2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-7288ea8p.js";
|
|
5
|
+
import"./cli-0pdsq871.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
7
|
+
import"./cli-vm2ddx02.js";
|
|
8
|
+
import"./cli-hq1bhr5t.js";
|
|
9
|
+
import"./cli-gxk0xv52.js";
|
|
10
|
+
import"./cli-pek3fpmz.js";
|
|
11
11
|
import"./cli-c2k4xxaw.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-ek6kavmy.js";
|
|
13
13
|
export {
|
|
14
14
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
15
15
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -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-vm2ddx02.js";
|
|
19
|
+
import"./cli-hq1bhr5t.js";
|
|
20
|
+
import"./cli-ek6kavmy.js";
|
|
21
|
+
import"./cli-pek3fpmz.js";
|
|
22
|
+
import"./cli-02spd95w.js";
|
|
23
|
+
import"./cli-n9h1jwmf.js";
|
|
24
|
+
import"./cli-60ckg1jj.js";
|
|
25
|
+
import"./cli-03re5agz.js";
|
|
26
|
+
import"./cli-tgrq0r0r.js";
|
|
27
|
+
import"./cli-1m23stwf.js";
|
|
28
|
+
import"./cli-7288ea8p.js";
|
|
29
|
+
import"./cli-46za39pt.js";
|
|
30
|
+
import"./cli-0983qj94.js";
|
|
31
31
|
import"./cli-xcy2vxj2.js";
|
|
32
32
|
import {
|
|
33
33
|
markCommandFailed
|
|
34
34
|
} from "./cli-z82n3qk1.js";
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
35
|
+
import"./cli-bgpmbjrd.js";
|
|
36
|
+
import"./cli-0pdsq871.js";
|
|
37
37
|
import"./cli-qba2x69h.js";
|
|
38
|
-
import"./cli-
|
|
38
|
+
import"./cli-gxk0xv52.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-vm2ddx02.js";
|
|
3
|
+
import"./cli-hq1bhr5t.js";
|
|
4
4
|
import {
|
|
5
5
|
config2,
|
|
6
6
|
init_config
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-ek6kavmy.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-pek3fpmz.js";
|
|
24
|
+
import"./cli-02spd95w.js";
|
|
25
|
+
import"./cli-n9h1jwmf.js";
|
|
26
|
+
import"./cli-60ckg1jj.js";
|
|
27
|
+
import"./cli-03re5agz.js";
|
|
28
|
+
import"./cli-tgrq0r0r.js";
|
|
29
|
+
import"./cli-1m23stwf.js";
|
|
30
|
+
import"./cli-7288ea8p.js";
|
|
31
|
+
import"./cli-46za39pt.js";
|
|
32
|
+
import"./cli-0983qj94.js";
|
|
33
33
|
import"./cli-xcy2vxj2.js";
|
|
34
34
|
import {
|
|
35
35
|
markCommandFailed
|
|
36
36
|
} from "./cli-z82n3qk1.js";
|
|
37
|
-
import"./cli-
|
|
38
|
-
import"./cli-
|
|
37
|
+
import"./cli-bgpmbjrd.js";
|
|
38
|
+
import"./cli-0pdsq871.js";
|
|
39
39
|
import"./cli-qba2x69h.js";
|
|
40
|
-
import"./cli-
|
|
40
|
+
import"./cli-gxk0xv52.js";
|
|
41
41
|
import"./cli-c2k4xxaw.js";
|
|
42
42
|
import {
|
|
43
43
|
__require
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent2
|
|
3
|
+
} from "./cli-n9h1jwmf.js";
|
|
4
|
+
import"./cli-0pdsq871.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-vm2ddx02.js";
|
|
7
|
+
import"./cli-hq1bhr5t.js";
|
|
8
|
+
import"./cli-gxk0xv52.js";
|
|
9
|
+
import"./cli-pek3fpmz.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-ek6kavmy.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-ek6kavmy.js";
|
|
2
|
+
import"./cli-pek3fpmz.js";
|
|
3
|
+
import"./cli-hq1bhr5t.js";
|
|
4
|
+
import"./cli-vm2ddx02.js";
|
|
5
|
+
import"./cli-n9h1jwmf.js";
|
|
6
|
+
import"./cli-7288ea8p.js";
|
|
7
|
+
import"./cli-46za39pt.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-tgrq0r0r.js";
|
|
13
|
+
import"./cli-60ckg1jj.js";
|
|
14
|
+
import"./cli-03re5agz.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-0pdsq871.js";
|
|
20
20
|
import"./cli-qba2x69h.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeStepUsage,
|
|
23
23
|
init_ai2
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-gxk0xv52.js";
|
|
25
25
|
import"./cli-c2k4xxaw.js";
|
|
26
26
|
|
|
27
27
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-ek6kavmy.js";
|
|
5
5
|
import {
|
|
6
6
|
init_constants
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-pek3fpmz.js";
|
|
8
8
|
import {
|
|
9
9
|
buildSessionWorkspaceSection,
|
|
10
10
|
buildBaseSystemPrompt,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
apiRequest,
|
|
13
13
|
ALL_TOOL_NAMES2,
|
|
14
14
|
SKILL_TOOL_NAMES2
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-vm2ddx02.js";
|
|
16
16
|
import {
|
|
17
17
|
runOffensiveSecurityAgent2
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-bgpmbjrd.js";
|
|
19
19
|
import {
|
|
20
20
|
defineAgent
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-0pdsq871.js";
|
|
22
22
|
import {
|
|
23
23
|
toolModelMessageSchema,
|
|
24
24
|
modelMessageSchema,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getModelInfo,
|
|
42
42
|
buildAuthConfig,
|
|
43
43
|
init_ai2
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-gxk0xv52.js";
|
|
45
45
|
import {
|
|
46
46
|
newSessionId,
|
|
47
47
|
isSessionId,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
import {
|
|
54
54
|
getCurrentVersion,
|
|
55
55
|
init_installation
|
|
56
|
-
} from "./cli-
|
|
56
|
+
} from "./cli-1cntxbf1.js";
|
|
57
57
|
import {
|
|
58
58
|
init_zod
|
|
59
59
|
} from "./cli-3qznjsnr.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EndpointTransportEnum,
|
|
3
3
|
GrpcEndpointMetadataSchema
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-vm2ddx02.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRuntime,
|
|
7
7
|
defineAgent
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-0pdsq871.js";
|
|
9
9
|
import {
|
|
10
10
|
stepCountIs2,
|
|
11
11
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-gxk0xv52.js";
|
|
13
13
|
import {
|
|
14
14
|
tool
|
|
15
15
|
} from "./cli-pwm29ks7.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
openSqliteRunStore,
|
|
5
5
|
resolveWorkerEndpoint,
|
|
6
6
|
workerRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-02spd95w.js";
|
|
8
8
|
import {
|
|
9
9
|
launchLocalWorker
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-6wv8wxwm.js";
|
|
11
11
|
|
|
12
12
|
// src/core/runtime/recordedRunClient.ts
|
|
13
13
|
import { setTimeout as delay } from "node:timers/promises";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AgentRuntime,
|
|
10
10
|
defineAgent
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-0pdsq871.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-gxk0xv52.js";
|
|
20
20
|
|
|
21
21
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
22
22
|
init_dist();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRuntime,
|
|
3
3
|
defineAgent
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-0pdsq871.js";
|
|
5
5
|
import {
|
|
6
6
|
stepCountIs2,
|
|
7
7
|
init_dist
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-gxk0xv52.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
11
11
|
init_dist();
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
REPORT_ERROR_TOOL_NAME,
|
|
8
8
|
createReportErrorTool,
|
|
9
9
|
PentestReportedError
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-vm2ddx02.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-0pdsq871.js";
|
|
22
22
|
import {
|
|
23
23
|
hasToolCall,
|
|
24
24
|
init_dist,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
init_structured,
|
|
27
27
|
scopedLogger,
|
|
28
28
|
init_lazyLogger
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-gxk0xv52.js";
|
|
30
30
|
import {
|
|
31
31
|
init_zod
|
|
32
32
|
} from "./cli-3qznjsnr.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-vm2ddx02.js";
|
|
4
4
|
import {
|
|
5
5
|
startAgentExecution,
|
|
6
6
|
resolveRootReasoning,
|
|
7
7
|
persistRootReasoningOverride
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-0983qj94.js";
|
|
9
9
|
|
|
10
10
|
// src/core/api/offesecAgent.ts
|
|
11
11
|
async function runOffensiveSecurityAgent2(input) {
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
config2,
|
|
8
8
|
init_config
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-ek6kavmy.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-pek3fpmz.js";
|
|
17
17
|
import {
|
|
18
18
|
init_v4,
|
|
19
19
|
ZodFirstPartyTypeKind,
|
|
@@ -106,11 +106,11 @@ import {
|
|
|
106
106
|
HOONIFY_BASE_URL,
|
|
107
107
|
resolveHoonifyModel,
|
|
108
108
|
init_hoonify
|
|
109
|
-
} from "./cli-
|
|
109
|
+
} from "./cli-zbg59vp8.js";
|
|
110
110
|
import {
|
|
111
111
|
getCurrentVersion,
|
|
112
112
|
init_installation
|
|
113
|
-
} from "./cli-
|
|
113
|
+
} from "./cli-1cntxbf1.js";
|
|
114
114
|
import {
|
|
115
115
|
init_zod
|
|
116
116
|
} from "./cli-3qznjsnr.js";
|
|
@@ -10592,7 +10592,7 @@ async function create(input) {
|
|
|
10592
10592
|
} else if (input.inheritEnvironmentConfig === false) {
|
|
10593
10593
|
snapshotHeaders = {};
|
|
10594
10594
|
} else {
|
|
10595
|
-
const { config: appConfig } = await import("./index-
|
|
10595
|
+
const { config: appConfig } = await import("./index-97fhvt95.js");
|
|
10596
10596
|
const cfg = await appConfig.get();
|
|
10597
10597
|
snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
|
|
10598
10598
|
}
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getModelSettings,
|
|
7
7
|
generateObjectResponse,
|
|
8
8
|
init_ai2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-gxk0xv52.js";
|
|
10
10
|
import {
|
|
11
11
|
newSessionId,
|
|
12
12
|
init_id,
|
|
@@ -909,7 +909,7 @@ async function spawnBatch2(spawner, requests, opts, limiter) {
|
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
911
|
async function runSpawnedPentestWorker(spec, input) {
|
|
912
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
912
|
+
const { TargetedPentestAgent } = await import("./agent-ssx1fxxh.js");
|
|
913
913
|
const hooks = resolveItemHooks(input.hooks, input.seams, spec, 0);
|
|
914
914
|
const agent = new TargetedPentestAgent({
|
|
915
915
|
target: spec.target,
|
|
@@ -980,7 +980,7 @@ var runPentestChild = async (spec, ctx) => {
|
|
|
980
980
|
};
|
|
981
981
|
};
|
|
982
982
|
var runCodeChild = async (spec, ctx) => {
|
|
983
|
-
const { CodeAgent } = await import("./agent-
|
|
983
|
+
const { CodeAgent } = await import("./agent-gwjwqs79.js");
|
|
984
984
|
const agent = new CodeAgent({
|
|
985
985
|
findingPolicy: ctx.findingPolicy,
|
|
986
986
|
codebasePath: spec.codebasePath,
|
|
@@ -1010,7 +1010,7 @@ var runCodeChild = async (spec, ctx) => {
|
|
|
1010
1010
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1011
1011
|
};
|
|
1012
1012
|
var runWhiteboxChild = async (spec, ctx) => {
|
|
1013
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
1013
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-sz0bhddx.js");
|
|
1014
1014
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
1015
1015
|
findingPolicy: ctx.findingPolicy,
|
|
1016
1016
|
codebasePath: spec.codebasePath,
|
|
@@ -1031,7 +1031,7 @@ var runWhiteboxChild = async (spec, ctx) => {
|
|
|
1031
1031
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1032
1032
|
};
|
|
1033
1033
|
var runBlackboxChild = async (spec, ctx) => {
|
|
1034
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
1034
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-ny4vw1qb.js");
|
|
1035
1035
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
1036
1036
|
findingPolicy: ctx.findingPolicy,
|
|
1037
1037
|
target: spec.target,
|
|
@@ -1051,7 +1051,7 @@ var runBlackboxChild = async (spec, ctx) => {
|
|
|
1051
1051
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1052
1052
|
};
|
|
1053
1053
|
var runAuthChild = async (spec, ctx) => {
|
|
1054
|
-
const { runAuthenticationAgent } = await import("./agent-
|
|
1054
|
+
const { runAuthenticationAgent } = await import("./agent-29xka573.js");
|
|
1055
1055
|
return {
|
|
1056
1056
|
run: () => runAuthenticationAgent({
|
|
1057
1057
|
findingPolicy: ctx.findingPolicy,
|
|
@@ -1074,7 +1074,7 @@ var runAuthChild = async (spec, ctx) => {
|
|
|
1074
1074
|
};
|
|
1075
1075
|
};
|
|
1076
1076
|
var runJudgeChild = async (spec, ctx) => {
|
|
1077
|
-
const { judgeFinding } = await import("./index-
|
|
1077
|
+
const { judgeFinding } = await import("./index-0pgw9j0q.js");
|
|
1078
1078
|
return {
|
|
1079
1079
|
run: () => judgeFinding(spec.judgeInput, {
|
|
1080
1080
|
waitForDrain: spec.waitForDrain,
|