@pensar/apex 2.6.1-canary.4c944004 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/agent-6w7egcf1.js +13 -0
- package/build/agent-9zx75feh.js +13 -0
- package/build/{agent-b2z45j1b.js → agent-ayreaj6z.js} +5 -5
- package/build/{agent-runs-mztyf3qm.js → agent-runs-g37vkrjr.js} +16 -16
- package/build/{agent-kddx1vez.js → agent-yby11zaq.js} +6 -6
- package/build/{apps-h48ah1wf.js → apps-xn6km9yn.js} +13 -13
- package/build/{auth-v65mvfbf.js → auth-d105wc64.js} +13 -13
- package/build/{blackboxAgent-pzyz81z9.js → blackboxAgent-s56sgx9b.js} +6 -6
- package/build/{blackboxPentest-3pzzgzm5.js → blackboxPentest-ps78v3w7.js} +11 -11
- package/build/{cli-s82mq645.js → cli-1ve18npr.js} +1 -1
- package/build/{cli-d8x165mf.js → cli-3sp6nd8d.js} +2 -2
- package/build/{cli-gh5c6sf9.js → cli-65g6rcat.js} +3 -1
- package/build/{cli-wxkae592.js → cli-709rvekb.js} +29 -4
- package/build/{cli-jsvm7qaa.js → cli-7eea4e2y.js} +39 -7
- package/build/{cli-s4k4fxqm.js → cli-ae8jqxqr.js} +2 -2
- package/build/{cli-kw5wxxth.js → cli-az3xq70v.js} +1 -1
- package/build/{cli-5t6n4a8w.js → cli-c05y640n.js} +1 -1
- package/build/{cli-wqhbwkbc.js → cli-d37a42dc.js} +8 -8
- package/build/{cli-a9j339n2.js → cli-dpsw2fe6.js} +41 -5
- package/build/{cli-905nmz0b.js → cli-fy6vh2a7.js} +1 -1
- package/build/{cli-rvqwpdjg.js → cli-gx71jcke.js} +1 -1
- package/build/{cli-xaxr74bm.js → cli-k2nwxta0.js} +2 -2
- package/build/{cli-t368gv8p.js → cli-kb21qhvm.js} +2 -2
- package/build/{cli-da57pbjb.js → cli-n2en7j5b.js} +1 -1
- package/build/{cli-x0rrhg57.js → cli-ngq9dr8n.js} +3 -3
- package/build/{cli-v0d1n2j3.js → cli-qgz1q9g5.js} +12 -12
- package/build/{cli-021yxmh5.js → cli-xtc2t6me.js} +3 -3
- package/build/cli.js +42 -36
- package/build/{config-8e9k1hfk.js → config-zpqkd5cz.js} +1 -1
- package/build/{fastStrike-xs5ny137.js → fastStrike-mcjdvwez.js} +5 -5
- package/build/{fixes-a97nmysn.js → fixes-kytx5dmj.js} +13 -13
- package/build/{index-aztmdcaa.js → index-4vqdgb42.js} +19 -19
- package/build/{index-e1cct2cz.js → index-dr3tg1w3.js} +1 -1
- package/build/{index-8enyzj1n.js → index-fv64eb32.js} +2 -2
- package/build/{index-1k2prgt6.js → index-je6hcsqr.js} +1 -1
- package/build/{index-0gyjerk4.js → index-n65z6v7b.js} +6 -6
- package/build/{index-cwnp58dc.js → index-ns4m4s01.js} +4 -4
- package/build/{index-00n0zrdn.js → index-qv4cc65p.js} +28 -14
- package/build/{index-2w1n934x.js → index-r9yjkfrv.js} +4 -4
- package/build/{index-pde3w88a.js → index-wqetp6gq.js} +5 -5
- package/build/{issues-4q8k9rc5.js → issues-eb3q9d3a.js} +13 -13
- package/build/knowledge-fqsvtx0f.js +139 -0
- package/build/lib/{chunk-dmznt6r6.js → chunk-1azdancq.js} +1 -1
- package/build/lib/{chunk-kqgnc8g9.js → chunk-1fy8azee.js} +1 -1
- package/build/lib/{chunk-jmxdxsm8.js → chunk-1jvwqnem.js} +3 -3
- package/build/lib/{chunk-2p92hj2m.js → chunk-1yct6cra.js} +1 -1
- package/build/lib/{chunk-yy87a24g.js → chunk-2qsq76xq.js} +3 -3
- package/build/lib/{chunk-vrnhexdm.js → chunk-3c00n0cy.js} +3 -3
- package/build/lib/{chunk-gmw7vx6r.js → chunk-4hwzqthr.js} +1 -1
- package/build/lib/{chunk-c1zsb6zz.js → chunk-7pwa92rn.js} +1 -1
- package/build/lib/{chunk-vzc51c4z.js → chunk-9tt2021m.js} +9 -9
- package/build/lib/{chunk-nb0pppn2.js → chunk-9yksqgzr.js} +52 -13
- package/build/lib/{chunk-fxx0c7he.js → chunk-acgbyf5h.js} +1 -1
- package/build/lib/{chunk-7zkv27tc.js → chunk-ba41jh41.js} +46 -10
- package/build/lib/{chunk-wtht1nmq.js → chunk-bb0ekhkw.js} +8 -8
- package/build/lib/{chunk-4vsr549z.js → chunk-e8yy2k73.js} +1 -1
- package/build/lib/{chunk-ahtg1ytr.js → chunk-mg03jdmt.js} +1 -1
- package/build/lib/{chunk-mtbmjfys.js → chunk-nhfax4gb.js} +1 -1
- package/build/lib/{chunk-ss77exdk.js → chunk-r2dkp4tb.js} +1 -1
- package/build/lib/{chunk-f09y54py.js → chunk-r4j8ybn9.js} +3 -3
- package/build/lib/{chunk-11w6wa26.js → chunk-v3dk9j7k.js} +11 -11
- package/build/lib/{chunk-qt87ty01.js → chunk-w66ce82a.js} +29 -3
- package/build/lib/{chunk-ed0hqes9.js → chunk-xhdpgpkm.js} +2 -2
- package/build/lib/{chunk-3haymsms.js → chunk-yrnrbjes.js} +1 -1
- package/build/lib/{chunk-1090qz7m.js → chunk-z137x08b.js} +5 -5
- package/build/lib/{chunk-s0egavst.js → chunk-z96pbjhd.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.d.ts +2 -0
- package/build/lib/core/api/index.js +34 -20
- package/build/lib/core/api/issues.d.ts +1 -0
- package/build/lib/core/api/knowledge.d.ts +33 -0
- package/build/lib/core/api/targetedPentest.js +10 -10
- package/build/lib/core/config/customProviders.d.ts +16 -0
- 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-xs1kkpdv.js → logs-x62b7hk1.js} +13 -13
- package/build/{native-rollout-evidence-vraxk4w0.js → native-rollout-evidence-c9yhfqcs.js} +3 -3
- package/build/{offesecAgent-2jg3hfrb.js → offesecAgent-5whnpeta.js} +4 -4
- package/build/pentest-e61hc38s.js +22 -0
- package/build/{pentests-e0pdke9w.js → pentests-e0f32aqx.js} +21 -14
- package/build/recordedRunClient-dp032c32.js +11 -0
- package/build/{targetedPentest-jjt094tn.js → targetedPentest-rcbs4nvp.js} +6 -6
- package/build/{targets-2m91qa1w.js → targets-xj9g3q0z.js} +13 -13
- package/build/threatModel-jkxfa40s.js +21 -0
- package/build/{uninstall-bqswmvka.js → uninstall-7s784q4a.js} +1 -1
- package/build/{upload-cdxp2dhp.js → upload-4gvhwmvr.js} +4 -4
- package/build/{utils-rh9r0ka4.js → utils-cjrz64pc.js} +3 -3
- package/package.json +3 -1
- package/src/cli/knowledge.test.ts +140 -0
- package/src/cli/knowledge.ts +146 -0
- package/src/cli/pentests.test.ts +15 -0
- package/src/cli/pentests.ts +15 -1
- package/src/cli.ts +4 -0
- package/src/core/ai/providers/custom.test.ts +240 -0
- package/src/core/ai/providers/custom.ts +40 -0
- package/src/core/api/index.ts +15 -0
- package/src/core/api/issues.ts +1 -0
- package/src/core/api/knowledge.ts +70 -0
- package/src/core/config/customProviders.test.ts +26 -0
- package/src/core/config/customProviders.ts +30 -1
- package/build/agent-2ss75279.js +0 -13
- package/build/agent-s8v26rcw.js +0 -13
- package/build/pentest-mj0ejcdx.js +0 -22
- package/build/recordedRunClient-35dp6wng.js +0 -11
- package/build/threatModel-j3sdyrqd.js +0 -21
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-3sp6nd8d.js";
|
|
4
|
+
import"./cli-1ve18npr.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-qgz1q9g5.js";
|
|
7
|
+
import"./cli-dpsw2fe6.js";
|
|
8
|
+
import"./cli-c05y640n.js";
|
|
9
|
+
import"./cli-c2k4xxaw.js";
|
|
10
|
+
import"./cli-fy6vh2a7.js";
|
|
11
|
+
export {
|
|
12
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-kb21qhvm.js";
|
|
4
|
+
import"./cli-1ve18npr.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-qgz1q9g5.js";
|
|
7
|
+
import"./cli-dpsw2fe6.js";
|
|
8
|
+
import"./cli-c05y640n.js";
|
|
9
|
+
import"./cli-c2k4xxaw.js";
|
|
10
|
+
import"./cli-fy6vh2a7.js";
|
|
11
|
+
export {
|
|
12
|
+
CodeAgent2 as CodeAgent
|
|
13
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
1
|
+
import"./cli-qgz1q9g5.js";
|
|
2
|
+
import"./cli-fy6vh2a7.js";
|
|
3
|
+
import"./cli-c05y640n.js";
|
|
4
4
|
import {
|
|
5
5
|
AgentRuntime,
|
|
6
6
|
defineAgent
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-1ve18npr.js";
|
|
8
8
|
import"./cli-qba2x69h.js";
|
|
9
9
|
import {
|
|
10
10
|
stepCountIs2,
|
|
11
11
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-dpsw2fe6.js";
|
|
13
13
|
import"./cli-c2k4xxaw.js";
|
|
14
14
|
import {
|
|
15
15
|
init_zod
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-fy6vh2a7.js";
|
|
5
|
+
import"./cli-c05y640n.js";
|
|
6
6
|
import {
|
|
7
7
|
inspectSessionEvidence2,
|
|
8
8
|
RecordedRunSpecSchema,
|
|
@@ -13,28 +13,28 @@ import {
|
|
|
13
13
|
runRecordedAgent2,
|
|
14
14
|
RunRecoveryBlockedError2,
|
|
15
15
|
resumeRecordedAgent2
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-7eea4e2y.js";
|
|
17
17
|
import {
|
|
18
18
|
AgentEventBus
|
|
19
|
-
} from "./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
19
|
+
} from "./cli-qgz1q9g5.js";
|
|
20
|
+
import"./cli-k2nwxta0.js";
|
|
21
|
+
import"./cli-kb21qhvm.js";
|
|
22
|
+
import"./cli-ngq9dr8n.js";
|
|
23
|
+
import"./cli-d37a42dc.js";
|
|
24
|
+
import"./cli-3sp6nd8d.js";
|
|
25
|
+
import"./cli-xtc2t6me.js";
|
|
26
|
+
import"./cli-n2en7j5b.js";
|
|
27
27
|
import"./cli-xcy2vxj2.js";
|
|
28
28
|
import {
|
|
29
29
|
resolveWorkerExecutable,
|
|
30
30
|
launchLocalWorker
|
|
31
|
-
} from "./cli-
|
|
32
|
-
import"./cli-
|
|
31
|
+
} from "./cli-gx71jcke.js";
|
|
32
|
+
import"./cli-1ve18npr.js";
|
|
33
33
|
import"./cli-qba2x69h.js";
|
|
34
34
|
import {
|
|
35
35
|
buildAuthConfig,
|
|
36
36
|
init_ai
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-dpsw2fe6.js";
|
|
38
38
|
import"./cli-c2k4xxaw.js";
|
|
39
39
|
|
|
40
40
|
// src/cli/agent-runs.ts
|
|
@@ -115,7 +115,7 @@ async function runAgentRunsCommand(args) {
|
|
|
115
115
|
if (!isAbsolute(values.store)) {
|
|
116
116
|
throw new Error("agent-runs worker requires --store <absolute database>");
|
|
117
117
|
}
|
|
118
|
-
const { serveLocalRunWorker } = await import("./index-
|
|
118
|
+
const { serveLocalRunWorker } = await import("./index-qv4cc65p.js");
|
|
119
119
|
await serveLocalRunWorker({
|
|
120
120
|
runId: values.run,
|
|
121
121
|
databasePath: resolve(values.store)
|
|
@@ -129,7 +129,7 @@ async function runAgentRunsCommand(args) {
|
|
|
129
129
|
${HELP}`);
|
|
130
130
|
}
|
|
131
131
|
if (command === "attach") {
|
|
132
|
-
const { openRecordedRunClient } = await import("./recordedRunClient-
|
|
132
|
+
const { openRecordedRunClient } = await import("./recordedRunClient-dp032c32.js");
|
|
133
133
|
const client = await openRecordedRunClient(values.store);
|
|
134
134
|
const controller = new AbortController;
|
|
135
135
|
const detach = () => controller.abort();
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent2,
|
|
3
3
|
buildPentestSystemPrompt2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-xtc2t6me.js";
|
|
5
|
+
import"./cli-1ve18npr.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
7
|
+
import"./cli-qgz1q9g5.js";
|
|
8
|
+
import"./cli-dpsw2fe6.js";
|
|
9
|
+
import"./cli-c05y640n.js";
|
|
10
10
|
import"./cli-c2k4xxaw.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-fy6vh2a7.js";
|
|
12
12
|
export {
|
|
13
13
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
14
14
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
2
|
+
import"./cli-fy6vh2a7.js";
|
|
3
|
+
import"./cli-c05y640n.js";
|
|
4
|
+
import"./cli-7eea4e2y.js";
|
|
5
5
|
import {
|
|
6
6
|
ENDPOINT_TRANSPORTS2,
|
|
7
7
|
listApps2,
|
|
@@ -18,21 +18,21 @@ import {
|
|
|
18
18
|
searchEndpoints2,
|
|
19
19
|
listDomains2,
|
|
20
20
|
createDomain2
|
|
21
|
-
} from "./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
21
|
+
} from "./cli-qgz1q9g5.js";
|
|
22
|
+
import"./cli-k2nwxta0.js";
|
|
23
|
+
import"./cli-kb21qhvm.js";
|
|
24
|
+
import"./cli-ngq9dr8n.js";
|
|
25
|
+
import"./cli-d37a42dc.js";
|
|
26
|
+
import"./cli-3sp6nd8d.js";
|
|
27
|
+
import"./cli-xtc2t6me.js";
|
|
28
|
+
import"./cli-n2en7j5b.js";
|
|
29
29
|
import"./cli-xcy2vxj2.js";
|
|
30
30
|
import {
|
|
31
31
|
markCommandFailed
|
|
32
32
|
} from "./cli-z82n3qk1.js";
|
|
33
|
-
import"./cli-
|
|
33
|
+
import"./cli-1ve18npr.js";
|
|
34
34
|
import"./cli-qba2x69h.js";
|
|
35
|
-
import"./cli-
|
|
35
|
+
import"./cli-dpsw2fe6.js";
|
|
36
36
|
import"./cli-c2k4xxaw.js";
|
|
37
37
|
|
|
38
38
|
// src/cli/apps.ts
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
config2,
|
|
4
4
|
init_config
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-fy6vh2a7.js";
|
|
6
6
|
import {
|
|
7
7
|
getPensarApiUrl2,
|
|
8
8
|
getPensarConsoleUrl2,
|
|
@@ -18,23 +18,23 @@ import {
|
|
|
18
18
|
createWorkspaceSelection2,
|
|
19
19
|
pollWorkspaceSelection2,
|
|
20
20
|
init_auth
|
|
21
|
-
} from "./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-
|
|
21
|
+
} from "./cli-c05y640n.js";
|
|
22
|
+
import"./cli-7eea4e2y.js";
|
|
23
|
+
import"./cli-qgz1q9g5.js";
|
|
24
|
+
import"./cli-k2nwxta0.js";
|
|
25
|
+
import"./cli-kb21qhvm.js";
|
|
26
|
+
import"./cli-ngq9dr8n.js";
|
|
27
|
+
import"./cli-d37a42dc.js";
|
|
28
|
+
import"./cli-3sp6nd8d.js";
|
|
29
|
+
import"./cli-xtc2t6me.js";
|
|
30
|
+
import"./cli-n2en7j5b.js";
|
|
31
31
|
import"./cli-xcy2vxj2.js";
|
|
32
32
|
import {
|
|
33
33
|
markCommandFailed
|
|
34
34
|
} from "./cli-z82n3qk1.js";
|
|
35
|
-
import"./cli-
|
|
35
|
+
import"./cli-1ve18npr.js";
|
|
36
36
|
import"./cli-qba2x69h.js";
|
|
37
|
-
import"./cli-
|
|
37
|
+
import"./cli-dpsw2fe6.js";
|
|
38
38
|
import"./cli-c2k4xxaw.js";
|
|
39
39
|
import {
|
|
40
40
|
__require
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlackboxAttackSurfaceAgent2
|
|
3
|
-
} from "./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
} from "./cli-k2nwxta0.js";
|
|
4
|
+
import"./cli-1ve18npr.js";
|
|
5
5
|
import"./cli-qba2x69h.js";
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
6
|
+
import"./cli-qgz1q9g5.js";
|
|
7
|
+
import"./cli-dpsw2fe6.js";
|
|
8
|
+
import"./cli-c05y640n.js";
|
|
9
9
|
import"./cli-c2k4xxaw.js";
|
|
10
|
-
import"./cli-
|
|
10
|
+
import"./cli-fy6vh2a7.js";
|
|
11
11
|
export {
|
|
12
12
|
BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
|
|
13
13
|
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
1
|
+
import"./cli-fy6vh2a7.js";
|
|
2
|
+
import"./cli-c05y640n.js";
|
|
3
|
+
import"./cli-qgz1q9g5.js";
|
|
4
|
+
import"./cli-k2nwxta0.js";
|
|
5
|
+
import"./cli-xtc2t6me.js";
|
|
6
|
+
import"./cli-n2en7j5b.js";
|
|
7
7
|
import {
|
|
8
8
|
readExecutionMetrics,
|
|
9
9
|
writeExecutionMetrics,
|
|
10
10
|
runPentestWorkflow2
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
11
|
+
} from "./cli-d37a42dc.js";
|
|
12
|
+
import"./cli-kb21qhvm.js";
|
|
13
|
+
import"./cli-ngq9dr8n.js";
|
|
14
14
|
import {
|
|
15
15
|
EMPTY_SESSION_TOKEN_USAGE,
|
|
16
16
|
accumulateSessionTokens
|
|
17
17
|
} from "./cli-ag6jtndp.js";
|
|
18
|
-
import"./cli-
|
|
18
|
+
import"./cli-1ve18npr.js";
|
|
19
19
|
import"./cli-qba2x69h.js";
|
|
20
20
|
import {
|
|
21
21
|
init_ai,
|
|
22
22
|
normalizeStepUsage
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-dpsw2fe6.js";
|
|
24
24
|
import"./cli-c2k4xxaw.js";
|
|
25
25
|
|
|
26
26
|
// src/core/api/blackboxPentest.ts
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AgentRuntime,
|
|
10
10
|
defineAgent
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-1ve18npr.js";
|
|
12
12
|
import {
|
|
13
13
|
hasToolCall,
|
|
14
14
|
init_dist,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
init_lazyLogger,
|
|
17
17
|
createLogger,
|
|
18
18
|
init_structured
|
|
19
|
-
} from "./cli-
|
|
19
|
+
} from "./cli-dpsw2fe6.js";
|
|
20
20
|
|
|
21
21
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
22
22
|
init_dist();
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./cli-h6y3bt60.js";
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
|
-
var version = "2.6.1
|
|
6
|
+
var version = "2.6.1", package_default;
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
author: "Pensar",
|
|
@@ -17,6 +17,8 @@ var init_package = __esm(() => {
|
|
|
17
17
|
"@ai-sdk/openai": "3.0.46",
|
|
18
18
|
"@ai-sdk/openai-compatible": "^2.0.51",
|
|
19
19
|
"@ai-sdk/provider": "^3.0.10",
|
|
20
|
+
"@aws-sdk/client-s3": "3.1146.0",
|
|
21
|
+
"@aws-sdk/lib-storage": "3.1146.0",
|
|
20
22
|
"@daytona/sdk": "0.222.0",
|
|
21
23
|
"@googleapis/gmail": "^16.1.2",
|
|
22
24
|
"@microsoft/microsoft-graph-client": "^3.0.7",
|
|
@@ -9,12 +9,13 @@ import {
|
|
|
9
9
|
object,
|
|
10
10
|
strictObject,
|
|
11
11
|
record,
|
|
12
|
+
_enum,
|
|
12
13
|
json
|
|
13
14
|
} from "./cli-mz5pk30x.js";
|
|
14
15
|
import {
|
|
15
16
|
getCurrentVersion,
|
|
16
17
|
init_installation
|
|
17
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-65g6rcat.js";
|
|
18
19
|
import {
|
|
19
20
|
__esm
|
|
20
21
|
} from "./cli-h6y3bt60.js";
|
|
@@ -71,7 +72,7 @@ function resolveCustomApiKey(provider) {
|
|
|
71
72
|
throw new Error(`Set ${provider.apiKeyEnv} before using this custom provider.`);
|
|
72
73
|
return key;
|
|
73
74
|
}
|
|
74
|
-
var providerIdSchema, reservedRequestFields, customModelSchema, customProviderSchema, customProvidersSchema;
|
|
75
|
+
var providerIdSchema, reservedRequestFields, customModelSchema, customProviderBaseSchema, customProviderSchema, customProvidersSchema;
|
|
75
76
|
var init_customProviders = __esm(() => {
|
|
76
77
|
init_zod();
|
|
77
78
|
providerIdSchema = string().regex(/^[a-zA-Z0-9_-]+$/);
|
|
@@ -90,12 +91,14 @@ var init_customProviders = __esm(() => {
|
|
|
90
91
|
id: string().trim().min(1),
|
|
91
92
|
name: string().trim().min(1).optional(),
|
|
92
93
|
contextLength: number().int().positive(),
|
|
93
|
-
maxOutputTokens: number().int().positive()
|
|
94
|
+
maxOutputTokens: number().int().positive(),
|
|
95
|
+
reasoningEffort: _enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional()
|
|
94
96
|
}).refine((model) => model.maxOutputTokens < model.contextLength, {
|
|
95
97
|
message: "maxOutputTokens must be smaller than contextLength"
|
|
96
98
|
});
|
|
97
|
-
|
|
99
|
+
customProviderBaseSchema = strictObject({
|
|
98
100
|
name: string().trim().min(1).optional(),
|
|
101
|
+
apiType: _enum(["chat-completions", "responses"]).optional(),
|
|
99
102
|
baseUrl: string().transform((value, ctx) => {
|
|
100
103
|
try {
|
|
101
104
|
const url = new URL(value);
|
|
@@ -118,6 +121,28 @@ var init_customProviders = __esm(() => {
|
|
|
118
121
|
}).optional(),
|
|
119
122
|
models: array(customModelSchema).min(1).refine((models) => new Set(models.map((model) => model.id)).size === models.length, { message: "Model IDs must be unique within a provider" })
|
|
120
123
|
});
|
|
124
|
+
customProviderSchema = customProviderBaseSchema.superRefine((provider, ctx) => {
|
|
125
|
+
if (provider.apiType === "responses") {
|
|
126
|
+
if (!provider.apiKeyEnv)
|
|
127
|
+
ctx.addIssue({
|
|
128
|
+
code: "custom",
|
|
129
|
+
path: ["apiKeyEnv"],
|
|
130
|
+
message: "Responses requires apiKeyEnv"
|
|
131
|
+
});
|
|
132
|
+
if (provider.requestBody)
|
|
133
|
+
ctx.addIssue({
|
|
134
|
+
code: "custom",
|
|
135
|
+
path: ["requestBody"],
|
|
136
|
+
message: "requestBody is only supported for Chat Completions"
|
|
137
|
+
});
|
|
138
|
+
} else if (provider.models.some((model) => model.reasoningEffort)) {
|
|
139
|
+
ctx.addIssue({
|
|
140
|
+
code: "custom",
|
|
141
|
+
path: ["models"],
|
|
142
|
+
message: "reasoningEffort requires the Responses API"
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
});
|
|
121
146
|
customProvidersSchema = record(providerIdSchema, customProviderSchema);
|
|
122
147
|
});
|
|
123
148
|
|
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
ALL_TOOL_NAMES2,
|
|
7
7
|
SKILL_TOOL_NAMES2,
|
|
8
8
|
OffensiveSecurityAgent
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-qgz1q9g5.js";
|
|
10
10
|
import {
|
|
11
11
|
config2,
|
|
12
12
|
init_config
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-fy6vh2a7.js";
|
|
14
14
|
import {
|
|
15
15
|
init_constants
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-c05y640n.js";
|
|
17
17
|
import {
|
|
18
18
|
startAgentExecution
|
|
19
19
|
} from "./cli-g06s7edq.js";
|
|
20
20
|
import {
|
|
21
21
|
defineAgent
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-1ve18npr.js";
|
|
23
23
|
import {
|
|
24
24
|
toolModelMessageSchema,
|
|
25
25
|
modelMessageSchema,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
init_runControlStore,
|
|
43
43
|
RunLimitError,
|
|
44
44
|
init_runModelStore
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-dpsw2fe6.js";
|
|
46
46
|
import {
|
|
47
47
|
newSessionId,
|
|
48
48
|
isSessionId,
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
import {
|
|
72
72
|
getCurrentVersion,
|
|
73
73
|
init_installation
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-65g6rcat.js";
|
|
75
75
|
import {
|
|
76
76
|
__commonJS,
|
|
77
77
|
__require
|
|
@@ -9286,6 +9286,38 @@ async function listTargetLogs2(targetId, opts) {
|
|
|
9286
9286
|
async function searchTargetLogs2(targetId, query, opts) {
|
|
9287
9287
|
return apiRequest("POST", `/targets/${targetId}/logs/search`, { query, ...opts });
|
|
9288
9288
|
}
|
|
9289
|
+
// src/core/api/knowledge.ts
|
|
9290
|
+
var KNOWLEDGE_CATEGORIES2 = [
|
|
9291
|
+
"false_positive_pattern",
|
|
9292
|
+
"technology_context",
|
|
9293
|
+
"testing_history",
|
|
9294
|
+
"user_note",
|
|
9295
|
+
"agent_learning"
|
|
9296
|
+
];
|
|
9297
|
+
var KNOWLEDGE_STATUSES2 = ["active", "stale", "archived"];
|
|
9298
|
+
async function listKnowledge2(filters) {
|
|
9299
|
+
const params = new URLSearchParams;
|
|
9300
|
+
if (filters?.category)
|
|
9301
|
+
params.set("category", filters.category);
|
|
9302
|
+
if (filters?.status)
|
|
9303
|
+
params.set("status", filters.status);
|
|
9304
|
+
if (filters?.tags?.length)
|
|
9305
|
+
params.set("tags", filters.tags.join(","));
|
|
9306
|
+
const qs = params.toString();
|
|
9307
|
+
return apiRequest("GET", `/knowledge${qs ? `?${qs}` : ""}`);
|
|
9308
|
+
}
|
|
9309
|
+
async function getKnowledge2(id) {
|
|
9310
|
+
return apiRequest("GET", `/knowledge/${id}`);
|
|
9311
|
+
}
|
|
9312
|
+
async function createKnowledge2(input) {
|
|
9313
|
+
return apiRequest("POST", "/knowledge", input);
|
|
9314
|
+
}
|
|
9315
|
+
async function updateKnowledge2(id, input) {
|
|
9316
|
+
return apiRequest("PATCH", `/knowledge/${id}`, input);
|
|
9317
|
+
}
|
|
9318
|
+
async function archiveKnowledge2(id) {
|
|
9319
|
+
return apiRequest("DELETE", `/knowledge/${id}`);
|
|
9320
|
+
}
|
|
9289
9321
|
// src/core/api/localWorker.ts
|
|
9290
9322
|
init_ai();
|
|
9291
9323
|
init_config();
|
|
@@ -12654,4 +12686,4 @@ Working directory: ${input.codebasePath}`;
|
|
|
12654
12686
|
return { session, outputPath: input.outputPath };
|
|
12655
12687
|
}
|
|
12656
12688
|
|
|
12657
|
-
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, updateIssue2, listIssueComments2, createIssueComment2, retestIssue2, linkPullRequest2, listIssuePullRequests2, listFixes2, getFix2, listAgentLogs2, searchAgentLogs2, listTargetLogs2, searchTargetLogs2, resolveWorkerEndpoint, LocalWorkerTransportError, WorkerConnectionError, workerRequest, runOffensiveSecurityAgent2, createOffensiveSecurityAgentClient2, runRecordedAgent2, RunRecoveryBlockedError2, resumeRecordedAgent2, serveLocalRunWorker2, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow2 };
|
|
12689
|
+
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, updateIssue2, listIssueComments2, createIssueComment2, retestIssue2, linkPullRequest2, listIssuePullRequests2, listFixes2, getFix2, listAgentLogs2, searchAgentLogs2, listTargetLogs2, searchTargetLogs2, KNOWLEDGE_CATEGORIES2, KNOWLEDGE_STATUSES2, listKnowledge2, getKnowledge2, createKnowledge2, updateKnowledge2, archiveKnowledge2, resolveWorkerEndpoint, LocalWorkerTransportError, WorkerConnectionError, workerRequest, runOffensiveSecurityAgent2, createOffensiveSecurityAgentClient2, runRecordedAgent2, RunRecoveryBlockedError2, resumeRecordedAgent2, serveLocalRunWorker2, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow2 };
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
openSqliteRunStore,
|
|
5
5
|
resolveWorkerEndpoint,
|
|
6
6
|
workerRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-7eea4e2y.js";
|
|
8
8
|
import {
|
|
9
9
|
launchLocalWorker
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-gx71jcke.js";
|
|
11
11
|
|
|
12
12
|
// src/core/runtime/recordedRunClient.ts
|
|
13
13
|
import { setTimeout as delay } from "node:timers/promises";
|
|
@@ -12,24 +12,24 @@ import {
|
|
|
12
12
|
pLimit,
|
|
13
13
|
PLAN_MODE_TOOL_NAMES,
|
|
14
14
|
OffensiveSecurityAgent
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-qgz1q9g5.js";
|
|
16
16
|
import {
|
|
17
17
|
BlackboxAttackSurfaceAgent2
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-k2nwxta0.js";
|
|
19
19
|
import {
|
|
20
20
|
TargetedPentestAgent2,
|
|
21
21
|
buildPentestSystemPrompt2
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-xtc2t6me.js";
|
|
23
23
|
import {
|
|
24
24
|
buildPentestReport,
|
|
25
25
|
renderJson,
|
|
26
26
|
renderMarkdown,
|
|
27
27
|
REPORT_FILENAME_MD,
|
|
28
28
|
REPORT_FILENAME_JSON
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-n2en7j5b.js";
|
|
30
30
|
import {
|
|
31
31
|
CodeAgent2
|
|
32
|
-
} from "./cli-
|
|
32
|
+
} from "./cli-kb21qhvm.js";
|
|
33
33
|
import {
|
|
34
34
|
WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT2,
|
|
35
35
|
WHITEBOX_ENDPOINT_DOCUMENTATION_SYSTEM_PROMPT,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
AppInfoSchema2,
|
|
39
39
|
AppsDiscoveryResultSchema2,
|
|
40
40
|
DiscoverySummarySchema2
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-ngq9dr8n.js";
|
|
42
42
|
import {
|
|
43
43
|
createThreatModelPrompt
|
|
44
44
|
} from "./cli-q126f6ef.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
init_session,
|
|
51
51
|
createLogger,
|
|
52
52
|
init_structured
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-dpsw2fe6.js";
|
|
54
54
|
import {
|
|
55
55
|
newSessionId,
|
|
56
56
|
init_id
|
|
@@ -8139,7 +8139,7 @@ async function runPentestSwarm2(input) {
|
|
|
8139
8139
|
}
|
|
8140
8140
|
async function runPentestWorkflow2(input) {
|
|
8141
8141
|
if (input.fastStrike) {
|
|
8142
|
-
const { runFastStrike } = await import("./fastStrike-
|
|
8142
|
+
const { runFastStrike } = await import("./fastStrike-mcjdvwez.js");
|
|
8143
8143
|
return runFastStrike(input);
|
|
8144
8144
|
}
|
|
8145
8145
|
const {
|