@pensar/apex 2.7.0-canary.9cda9a55 → 2.7.0-canary.c5791908
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-htj3ww3e.js +14 -0
- package/build/agent-km3wss0b.js +14 -0
- package/build/{agent-gk12m3vr.js → agent-q85c8mrh.js} +6 -6
- package/build/{agent-runs-00btf54k.js → agent-runs-cqa7xz7d.js} +21 -20
- package/build/{agent-bsrymh4g.js → agent-x8nf3k1v.js} +7 -7
- package/build/{apps-0m7kxc5n.js → apps-pxdathp4.js} +16 -15
- package/build/{auth-qvw356xe.js → auth-dcmykx6e.js} +16 -15
- package/build/blackboxAgent-g18ps9hs.js +14 -0
- package/build/{blackboxPentest-nckvdrjk.js → blackboxPentest-pbh960ms.js} +15 -15
- package/build/{cli-9cazf05s.js → cli-40gstjf7.js} +25 -39
- package/build/{cli-dn1kme57.js → cli-6g5p7cfd.js} +40892 -40511
- package/build/{cli-595znhrq.js → cli-78pm8byz.js} +4 -4
- package/build/cli-7nrpp1ks.js +36 -0
- package/build/{cli-7f37bnqn.js → cli-8wkays8e.js} +2 -2
- package/build/{cli-5xzsxyge.js → cli-am8b7hr4.js} +5 -5
- package/build/{cli-9ckbsazj.js → cli-b3hef9fp.js} +45 -40
- package/build/{cli-b3dr7d05.js → cli-b8jmzd32.js} +1 -1
- package/build/{cli-wk2nzxar.js → cli-jpjj10xv.js} +1 -1
- package/build/{cli-rdzq0z0e.js → cli-jvhswf25.js} +8 -3
- package/build/{cli-hj4k2s79.js → cli-kr28rrsa.js} +2 -2
- package/build/{cli-nkywk1ph.js → cli-m57v3wm9.js} +2 -2
- package/build/{cli-bdkbh16k.js → cli-mfgsx6hc.js} +1 -1
- package/build/{cli-q2hjt27m.js → cli-pepjaeek.js} +33 -13
- package/build/{cli-evf74q87.js → cli-ps5hmkhw.js} +20 -19
- package/build/{cli-xtdnc2xv.js → cli-v084p264.js} +1 -1
- package/build/{cli-hatszrhe.js → cli-vb4den7a.js} +2 -1
- package/build/{cli-x1zd3ycf.js → cli-xb0pqkbk.js} +6 -6
- package/build/{cli-3ekad1nb.js → cli-xpfw29g5.js} +6 -3
- package/build/{cli-e4dnk8ep.js → cli-ygcbxb1m.js} +3 -3
- package/build/{cli-23q0hfrp.js → cli-z41890cy.js} +1 -1
- package/build/cli.js +108 -47
- package/build/{config-0131r3pc.js → config-d9mdqs9w.js} +1 -1
- package/build/{fastStrike-ptjhkr8h.js → fastStrike-z096431v.js} +10 -7
- package/build/{fixes-c0x15ch4.js → fixes-9ppnsazw.js} +16 -15
- package/build/{index-a20me9cg.js → index-1j283k20.js} +16 -15
- package/build/{index-z5t05p0s.js → index-4gfq7kzj.js} +28 -6
- package/build/{index-ebycbhee.js → index-cn1pgs79.js} +8 -7
- package/build/{index-xwsp0wec.js → index-f0v1bbhs.js} +157 -185
- package/build/{index-3pqpqmek.js → index-pvb4d38m.js} +5 -5
- package/build/{index-webw5awm.js → index-pxhc0cbs.js} +2 -2
- package/build/{index-sn3y38ra.js → index-t8ncgcc9.js} +1 -1
- package/build/{index-8255w7xs.js → index-vq0132nv.js} +7 -7
- package/build/{index-4rgxe6w2.js → index-y5t6w61g.js} +1 -1
- package/build/{issues-wq9nj9wh.js → issues-hnw2wt5k.js} +16 -15
- package/build/{knowledge-80mkjh8j.js → knowledge-66kn0fwh.js} +16 -15
- package/build/{lance-m7rhfwww.js → lance-qyph9jw1.js} +9 -8
- package/build/lib/{chunk-7q221zkq.js → chunk-00jhhedd.js} +18 -28
- package/build/lib/{chunk-whq70f4y.js → chunk-0hqjfqxb.js} +608 -194
- package/build/lib/{chunk-m5hj4ghp.js → chunk-10p58fqe.js} +14 -5
- package/build/lib/{chunk-hft7ys7b.js → chunk-2svje0df.js} +12 -30
- package/build/lib/{chunk-dkzx3m6t.js → chunk-486zwtmg.js} +14 -5
- package/build/lib/{chunk-7amfkh0v.js → chunk-6vhf2dvv.js} +1 -1
- package/build/lib/{chunk-1naj9zb5.js → chunk-7350h8ab.js} +24 -12
- package/build/lib/{chunk-wn69q87t.js → chunk-7syrjsr5.js} +2 -1
- package/build/lib/{chunk-nc2g177t.js → chunk-98gxfne9.js} +2 -2
- package/build/lib/{chunk-9ktcm63m.js → chunk-bq643vks.js} +1 -1
- package/build/lib/{chunk-thbkh4t0.js → chunk-c5w6byvf.js} +1 -1
- package/build/lib/{chunk-azzmec7d.js → chunk-dj7bk5xm.js} +13 -10
- package/build/lib/{chunk-2njv7wz3.js → chunk-hbyxyxdc.js} +4 -0
- package/build/lib/{chunk-mrc10d6a.js → chunk-pr63gfsd.js} +1 -1
- package/build/lib/{chunk-97n98x5m.js → chunk-ptp3er5d.js} +7 -3
- package/build/lib/{chunk-z4gn8cjj.js → chunk-q3f1tjdx.js} +1 -1
- package/build/lib/{chunk-aey57vpj.js → chunk-qn9512q7.js} +1 -1
- package/build/lib/{chunk-5q57rez8.js → chunk-qpewr18w.js} +1 -1
- package/build/lib/{chunk-nxhks67x.js → chunk-rcneqwt6.js} +1 -1
- package/build/lib/{chunk-dxv4v5vp.js → chunk-rh6fz13n.js} +46 -2
- package/build/lib/{chunk-wwk87an2.js → chunk-tcdd68ax.js} +1 -1
- package/build/lib/{chunk-ks215cd1.js → chunk-w9cs2h48.js} +3 -3
- package/build/lib/{chunk-r8h39eh8.js → chunk-y82jpv2x.js} +10 -10
- package/build/lib/{chunk-zs5d7hxa.js → chunk-y9pm3xqv.js} +5 -1
- package/build/lib/{chunk-8z6k9akp.js → chunk-zntm5p3b.js} +19 -12
- package/build/lib/core/agents/offSecAgent/index.js +8 -8
- package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +3 -1
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +6 -6
- package/build/lib/core/agents/offSecAgent/tools/index.js +7 -7
- package/build/lib/core/agents/offSecAgent/tools/types.d.ts +2 -1
- package/build/lib/core/agents/offSecAgent/types.d.ts +3 -1
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +10 -10
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +10 -10
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +11 -11
- package/build/lib/core/agents/specialized/codeAgent/agent.js +10 -10
- package/build/lib/core/agents/specialized/cvssScorer/index.d.ts +2 -1
- package/build/lib/core/agents/specialized/findingJudge/agent.js +9 -9
- package/build/lib/core/agents/specialized/findingJudge/index.d.ts +1 -1
- package/build/lib/core/agents/specialized/findingJudge/index.js +4 -4
- package/build/lib/core/agents/specialized/patching/index.js +11 -11
- package/build/lib/core/agents/specialized/pentest/agent.js +10 -10
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.d.ts +2 -1
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +10 -10
- package/build/lib/core/ai/ai.d.ts +9 -75
- package/build/lib/core/ai/ai.js +5 -3
- package/build/lib/core/ai/index.d.ts +1 -0
- package/build/lib/core/ai/index.js +16 -4
- package/build/lib/core/ai/reasoning.d.ts +44 -0
- package/build/lib/core/ai/utils.js +3 -3
- package/build/lib/core/api/index.js +20 -20
- package/build/lib/core/api/reasoning.d.ts +12 -0
- package/build/lib/core/api/targetedPentest.js +11 -11
- package/build/lib/core/cli/reasoning.d.ts +4 -0
- package/build/lib/core/config/config.d.ts +5 -2
- package/build/lib/core/config/customProviders.d.ts +11 -0
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/findings/registry.d.ts +3 -1
- package/build/lib/core/findings/registry.js +4 -4
- package/build/lib/core/observability/index.js +1 -1
- package/build/lib/core/observability/telemetry.d.ts +4 -0
- package/build/lib/core/session/index.d.ts +32 -0
- package/build/lib/core/session/index.js +6 -4
- package/build/lib/core/session/persistence.js +4 -4
- package/build/lib/core/workflows/pentest.d.ts +4 -1
- package/build/lib/core/workflows/pentest.js +16 -16
- package/build/lib/core/workflows/seams.js +5 -5
- package/build/lib/core/workflows/threatModel.d.ts +1 -0
- package/build/lib/core/workflows/whiteboxAttackSurface.d.ts +3 -1
- package/build/lib/core/workflows/whiteboxAttackSurface.js +12 -12
- package/build/lib/index.js +23 -23
- package/build/{logs-c5zyxjpc.js → logs-h3rxtq6w.js} +16 -15
- package/build/{native-rollout-evidence-gf5z09yp.js → native-rollout-evidence-kt4rd2bp.js} +5 -5
- package/build/{offesecAgent-3wqk4s8d.js → offesecAgent-e3ea8mr6.js} +12 -7
- package/build/pentest-qx9c8wtg.js +23 -0
- package/build/{pentests-mq8zqv48.js → pentests-39hy0dre.js} +16 -15
- package/build/recordedRunClient-gra1x1y6.js +11 -0
- package/build/{subagentSpawner-37s523ry.js → subagentSpawner-2sx2edxp.js} +4 -4
- package/build/{targetedPentest-21ndbwy8.js → targetedPentest-ttafan4t.js} +35 -9
- package/build/{targets-2cwray2n.js → targets-fzte2kq9.js} +16 -15
- package/build/threatModel-nm449g6b.js +24 -0
- package/build/{uninstall-drdc3jn4.js → uninstall-0m52nyc0.js} +1 -1
- package/build/{upload-h4d092x3.js → upload-cnnhkzgt.js} +4 -4
- package/build/{utils-3tdqdwy5.js → utils-pq6pdv6p.js} +5 -5
- package/package.json +2 -1
- package/src/cli.ts +25 -3
- package/src/core/agents/lanceJudge.ts +1 -0
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +12 -1
- package/src/core/agents/offSecAgent/subagentSpawner.reasoning.test.ts +167 -0
- package/src/core/agents/offSecAgent/subagentSpawner.ts +11 -27
- package/src/core/agents/offSecAgent/tools/delegateAuth.ts +2 -2
- package/src/core/agents/offSecAgent/tools/documentFinding.ts +3 -5
- package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +3 -4
- package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +1 -0
- package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +2 -5
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +7 -1
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +3 -5
- package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +2 -0
- package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +2 -3
- package/src/core/agents/offSecAgent/tools/types.ts +2 -0
- package/src/core/agents/offSecAgent/types.ts +3 -0
- package/src/core/agents/specialized/cvssScorer/index.test.ts +2 -1
- package/src/core/agents/specialized/cvssScorer/index.ts +3 -0
- package/src/core/agents/specialized/findingJudge/index.ts +2 -0
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.ts +4 -0
- package/src/core/ai/ai.test.ts +37 -69
- package/src/core/ai/ai.ts +82 -297
- package/src/core/ai/index.ts +11 -0
- package/src/core/ai/models/models.test.ts +25 -7
- package/src/core/ai/models/openrouter-reasoning.json +219 -0
- package/src/core/ai/providers/custom.test.ts +74 -0
- package/src/core/ai/providers/custom.ts +3 -1
- package/src/core/ai/providers/pensarFormatters.ts +8 -1
- package/src/core/ai/reasoning.test.ts +313 -0
- package/src/core/ai/reasoning.ts +500 -0
- package/src/core/ai/utils.native-rollout-evidence.test.ts +1 -0
- package/src/core/ai/utils.ts +13 -4
- package/src/core/api/attackSurface.ts +1 -0
- package/src/core/api/offesecAgent.test.ts +51 -0
- package/src/core/api/offesecAgent.ts +7 -0
- package/src/core/api/reasoning.test.ts +213 -0
- package/src/core/api/reasoning.ts +44 -0
- package/src/core/api/targetedPentest.test.ts +14 -2
- package/src/core/api/targetedPentest.ts +33 -0
- package/src/core/cli/reasoning.test.ts +149 -0
- package/src/core/cli/reasoning.ts +95 -0
- package/src/core/config/config.ts +3 -0
- package/src/core/config/customProviders.ts +21 -2
- package/src/core/findings/registry.test.ts +9 -1
- package/src/core/findings/registry.ts +6 -0
- package/src/core/observability/telemetry.test.ts +13 -1
- package/src/core/observability/telemetry.ts +5 -0
- package/src/core/session/index.ts +29 -0
- package/src/core/workflows/fastStrike.ts +3 -0
- package/src/core/workflows/pentest.ts +18 -0
- package/src/core/workflows/threatModel.ts +2 -0
- package/src/core/workflows/whiteboxAttackSurface.ts +10 -0
- package/src/tui/command-registry.test.ts +12 -0
- package/src/tui/command-registry.ts +8 -0
- package/src/tui/components/chat/config-view.tsx +6 -10
- package/src/tui/components/chat/home-view.tsx +2 -2
- package/src/tui/components/chat/input-area.tsx +2 -2
- package/src/tui/components/commands/models-display.tsx +7 -1
- package/src/tui/components/model-picker/ModelPicker.tsx +65 -103
- package/src/tui/components/model-picker/ModelPickerDialog.tsx +8 -14
- package/src/tui/components/model-picker/__tests__/reasoning-control.tsx +162 -0
- package/src/tui/components/model-picker/reasoning-control.test.ts +15 -0
- package/src/tui/components/operator-dashboard/index.tsx +31 -10
- package/src/tui/components/operator-dashboard/logic.test.ts +15 -2
- package/src/tui/components/operator-dashboard/logic.ts +6 -1
- package/src/tui/context/agent.tsx +32 -79
- package/build/agent-0ar8je48.js +0 -14
- package/build/agent-7htteemj.js +0 -14
- package/build/blackboxAgent-yyrrek3k.js +0 -14
- package/build/cli-g06s7edq.js +0 -11
- package/build/pentest-cvxyhe1q.js +0 -23
- package/build/recordedRunClient-gzbtbakv.js +0 -11
- package/build/threatModel-crazcz2w.js +0 -23
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-m57v3wm9.js";
|
|
4
|
+
import"./cli-jpjj10xv.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-b3hef9fp.js";
|
|
7
|
+
import"./cli-40gstjf7.js";
|
|
8
|
+
import"./cli-6g5p7cfd.js";
|
|
9
|
+
import"./cli-z41890cy.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-mfgsx6hc.js";
|
|
12
|
+
export {
|
|
13
|
+
CodeAgent2 as CodeAgent
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-am8b7hr4.js";
|
|
4
|
+
import"./cli-jpjj10xv.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-b3hef9fp.js";
|
|
7
|
+
import"./cli-40gstjf7.js";
|
|
8
|
+
import"./cli-6g5p7cfd.js";
|
|
9
|
+
import"./cli-z41890cy.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-mfgsx6hc.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-40gstjf7.js";
|
|
2
|
+
import"./cli-mfgsx6hc.js";
|
|
3
|
+
import"./cli-z41890cy.js";
|
|
4
|
+
import"./cli-b3hef9fp.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRuntime,
|
|
7
7
|
defineAgent
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-jpjj10xv.js";
|
|
9
9
|
import"./cli-qba2x69h.js";
|
|
10
10
|
import {
|
|
11
11
|
stepCountIs2,
|
|
12
12
|
init_dist
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-6g5p7cfd.js";
|
|
14
14
|
import"./cli-c2k4xxaw.js";
|
|
15
15
|
import {
|
|
16
16
|
init_zod
|
|
@@ -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-mfgsx6hc.js";
|
|
5
|
+
import"./cli-z41890cy.js";
|
|
6
|
+
import"./cli-b3hef9fp.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentEventBus
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-40gstjf7.js";
|
|
10
10
|
import {
|
|
11
11
|
inspectSessionEvidence2,
|
|
12
12
|
RecordedRunSpecSchema,
|
|
@@ -17,30 +17,31 @@ 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-
|
|
20
|
+
} from "./cli-ps5hmkhw.js";
|
|
21
|
+
import"./cli-8wkays8e.js";
|
|
22
|
+
import"./cli-m57v3wm9.js";
|
|
23
|
+
import"./cli-ygcbxb1m.js";
|
|
24
|
+
import"./cli-pepjaeek.js";
|
|
25
|
+
import"./cli-am8b7hr4.js";
|
|
26
|
+
import"./cli-xb0pqkbk.js";
|
|
27
|
+
import"./cli-b8jmzd32.js";
|
|
28
|
+
import"./cli-7nrpp1ks.js";
|
|
28
29
|
import"./cli-xcy2vxj2.js";
|
|
29
30
|
import {
|
|
30
31
|
resolveWorkerExecutable,
|
|
31
32
|
launchLocalWorker
|
|
32
|
-
} from "./cli-
|
|
33
|
-
import"./cli-
|
|
34
|
-
import"./cli-
|
|
33
|
+
} from "./cli-v084p264.js";
|
|
34
|
+
import"./cli-jvhswf25.js";
|
|
35
|
+
import"./cli-jpjj10xv.js";
|
|
35
36
|
import"./cli-qba2x69h.js";
|
|
36
37
|
import {
|
|
37
38
|
buildAuthConfig,
|
|
38
|
-
|
|
39
|
-
} from "./cli-
|
|
39
|
+
init_ai2
|
|
40
|
+
} from "./cli-6g5p7cfd.js";
|
|
40
41
|
import"./cli-c2k4xxaw.js";
|
|
41
42
|
|
|
42
43
|
// src/cli/agent-runs.ts
|
|
43
|
-
|
|
44
|
+
init_ai2();
|
|
44
45
|
import { once } from "node:events";
|
|
45
46
|
import { readFile } from "node:fs/promises";
|
|
46
47
|
import { isAbsolute, resolve } from "node:path";
|
|
@@ -117,7 +118,7 @@ async function runAgentRunsCommand(args) {
|
|
|
117
118
|
if (!isAbsolute(values.store)) {
|
|
118
119
|
throw new Error("agent-runs worker requires --store <absolute database>");
|
|
119
120
|
}
|
|
120
|
-
const { serveLocalRunWorker } = await import("./index-
|
|
121
|
+
const { serveLocalRunWorker } = await import("./index-1j283k20.js");
|
|
121
122
|
await serveLocalRunWorker({
|
|
122
123
|
runId: values.run,
|
|
123
124
|
databasePath: resolve(values.store)
|
|
@@ -131,7 +132,7 @@ async function runAgentRunsCommand(args) {
|
|
|
131
132
|
${HELP}`);
|
|
132
133
|
}
|
|
133
134
|
if (command === "attach") {
|
|
134
|
-
const { openRecordedRunClient } = await import("./recordedRunClient-
|
|
135
|
+
const { openRecordedRunClient } = await import("./recordedRunClient-gra1x1y6.js");
|
|
135
136
|
const client = await openRecordedRunClient(values.store);
|
|
136
137
|
const controller = new AbortController;
|
|
137
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-xb0pqkbk.js";
|
|
5
|
+
import"./cli-jpjj10xv.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
7
|
+
import"./cli-b3hef9fp.js";
|
|
8
|
+
import"./cli-40gstjf7.js";
|
|
9
|
+
import"./cli-6g5p7cfd.js";
|
|
10
|
+
import"./cli-z41890cy.js";
|
|
11
11
|
import"./cli-c2k4xxaw.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-mfgsx6hc.js";
|
|
13
13
|
export {
|
|
14
14
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
15
15
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -15,26 +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-
|
|
18
|
+
} from "./cli-b3hef9fp.js";
|
|
19
|
+
import"./cli-40gstjf7.js";
|
|
20
|
+
import"./cli-mfgsx6hc.js";
|
|
21
|
+
import"./cli-z41890cy.js";
|
|
22
|
+
import"./cli-ps5hmkhw.js";
|
|
23
|
+
import"./cli-8wkays8e.js";
|
|
24
|
+
import"./cli-m57v3wm9.js";
|
|
25
|
+
import"./cli-ygcbxb1m.js";
|
|
26
|
+
import"./cli-pepjaeek.js";
|
|
27
|
+
import"./cli-am8b7hr4.js";
|
|
28
|
+
import"./cli-xb0pqkbk.js";
|
|
29
|
+
import"./cli-b8jmzd32.js";
|
|
30
|
+
import"./cli-7nrpp1ks.js";
|
|
30
31
|
import"./cli-xcy2vxj2.js";
|
|
31
32
|
import {
|
|
32
33
|
markCommandFailed
|
|
33
34
|
} from "./cli-z82n3qk1.js";
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
35
|
+
import"./cli-jvhswf25.js";
|
|
36
|
+
import"./cli-jpjj10xv.js";
|
|
36
37
|
import"./cli-qba2x69h.js";
|
|
37
|
-
import"./cli-
|
|
38
|
+
import"./cli-6g5p7cfd.js";
|
|
38
39
|
import"./cli-c2k4xxaw.js";
|
|
39
40
|
|
|
40
41
|
// src/cli/apps.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
2
|
+
import"./cli-b3hef9fp.js";
|
|
3
|
+
import"./cli-40gstjf7.js";
|
|
4
4
|
import {
|
|
5
5
|
config2,
|
|
6
6
|
init_config
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-mfgsx6hc.js";
|
|
8
8
|
import {
|
|
9
9
|
getPensarApiUrl2,
|
|
10
10
|
getPensarConsoleUrl2,
|
|
@@ -20,23 +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-
|
|
23
|
+
} from "./cli-z41890cy.js";
|
|
24
|
+
import"./cli-ps5hmkhw.js";
|
|
25
|
+
import"./cli-8wkays8e.js";
|
|
26
|
+
import"./cli-m57v3wm9.js";
|
|
27
|
+
import"./cli-ygcbxb1m.js";
|
|
28
|
+
import"./cli-pepjaeek.js";
|
|
29
|
+
import"./cli-am8b7hr4.js";
|
|
30
|
+
import"./cli-xb0pqkbk.js";
|
|
31
|
+
import"./cli-b8jmzd32.js";
|
|
32
|
+
import"./cli-7nrpp1ks.js";
|
|
32
33
|
import"./cli-xcy2vxj2.js";
|
|
33
34
|
import {
|
|
34
35
|
markCommandFailed
|
|
35
36
|
} from "./cli-z82n3qk1.js";
|
|
36
|
-
import"./cli-
|
|
37
|
-
import"./cli-
|
|
37
|
+
import"./cli-jvhswf25.js";
|
|
38
|
+
import"./cli-jpjj10xv.js";
|
|
38
39
|
import"./cli-qba2x69h.js";
|
|
39
|
-
import"./cli-
|
|
40
|
+
import"./cli-6g5p7cfd.js";
|
|
40
41
|
import"./cli-c2k4xxaw.js";
|
|
41
42
|
import {
|
|
42
43
|
__require
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent2
|
|
3
|
+
} from "./cli-8wkays8e.js";
|
|
4
|
+
import"./cli-jpjj10xv.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-b3hef9fp.js";
|
|
7
|
+
import"./cli-40gstjf7.js";
|
|
8
|
+
import"./cli-6g5p7cfd.js";
|
|
9
|
+
import"./cli-z41890cy.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-mfgsx6hc.js";
|
|
12
|
+
export {
|
|
13
|
+
BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
|
|
14
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
1
|
+
import"./cli-mfgsx6hc.js";
|
|
2
|
+
import"./cli-z41890cy.js";
|
|
3
|
+
import"./cli-40gstjf7.js";
|
|
4
|
+
import"./cli-b3hef9fp.js";
|
|
5
|
+
import"./cli-8wkays8e.js";
|
|
6
|
+
import"./cli-xb0pqkbk.js";
|
|
7
|
+
import"./cli-b8jmzd32.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-pepjaeek.js";
|
|
13
|
+
import"./cli-m57v3wm9.js";
|
|
14
|
+
import"./cli-ygcbxb1m.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-jpjj10xv.js";
|
|
20
20
|
import"./cli-qba2x69h.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./cli-
|
|
22
|
+
normalizeStepUsage,
|
|
23
|
+
init_ai2
|
|
24
|
+
} from "./cli-6g5p7cfd.js";
|
|
25
25
|
import"./cli-c2k4xxaw.js";
|
|
26
26
|
|
|
27
27
|
// src/core/api/blackboxPentest.ts
|
|
28
|
-
|
|
28
|
+
init_ai2();
|
|
29
29
|
async function runPentestAgent(input) {
|
|
30
30
|
const persisted = readExecutionMetrics(input.session.rootPath)?.tokenUsage;
|
|
31
31
|
let tokenUsage = persisted ?? EMPTY_SESSION_TOKEN_USAGE;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
scopedLogger,
|
|
3
|
-
init_lazyLogger,
|
|
4
|
-
init_ai,
|
|
5
2
|
createLogger,
|
|
6
3
|
init_structured,
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
scopedLogger,
|
|
5
|
+
init_lazyLogger,
|
|
6
|
+
getModelSettings,
|
|
7
|
+
generateObjectResponse,
|
|
8
|
+
init_ai2
|
|
9
|
+
} from "./cli-6g5p7cfd.js";
|
|
9
10
|
import {
|
|
10
11
|
newSessionId,
|
|
11
12
|
init_id,
|
|
@@ -193,7 +194,7 @@ class AgentEventBus {
|
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
// src/core/agents/offSecAgent/subagentSpawner.ts
|
|
196
|
-
|
|
197
|
+
init_ai2();
|
|
197
198
|
|
|
198
199
|
// src/core/utils/concurrency.ts
|
|
199
200
|
var import_api = __toESM(require_src6(), 1);
|
|
@@ -371,7 +372,7 @@ class AttackSurfaceRegistry {
|
|
|
371
372
|
|
|
372
373
|
// src/core/findings/registry.ts
|
|
373
374
|
init_zod();
|
|
374
|
-
|
|
375
|
+
init_ai2();
|
|
375
376
|
init_structured();
|
|
376
377
|
init_lazyLogger();
|
|
377
378
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
@@ -545,6 +546,7 @@ class FindingsRegistry {
|
|
|
545
546
|
appWideKeys = new Map;
|
|
546
547
|
findings = [];
|
|
547
548
|
model;
|
|
549
|
+
reasoning;
|
|
548
550
|
authConfig;
|
|
549
551
|
abortSignal;
|
|
550
552
|
sessionId;
|
|
@@ -553,6 +555,7 @@ class FindingsRegistry {
|
|
|
553
555
|
mutex = Promise.resolve();
|
|
554
556
|
constructor(opts) {
|
|
555
557
|
this.model = opts?.model;
|
|
558
|
+
this.reasoning = opts?.reasoning;
|
|
556
559
|
this.authConfig = opts?.authConfig;
|
|
557
560
|
this.abortSignal = opts?.abortSignal;
|
|
558
561
|
this.sessionId = opts?.sessionId;
|
|
@@ -667,6 +670,7 @@ class FindingsRegistry {
|
|
|
667
670
|
const prompt = buildSemanticDedupPrompt(finding, existingFindings);
|
|
668
671
|
const result = await generateObjectResponse({
|
|
669
672
|
model: this.model,
|
|
673
|
+
reasoning: this.reasoning,
|
|
670
674
|
schema: SemanticDedupResultSchema,
|
|
671
675
|
prompt,
|
|
672
676
|
system: SEMANTIC_DEDUP_SYSTEM,
|
|
@@ -708,6 +712,7 @@ class FindingsRegistry {
|
|
|
708
712
|
try {
|
|
709
713
|
result = await generateObjectResponse({
|
|
710
714
|
model: this.model,
|
|
715
|
+
reasoning: this.reasoning,
|
|
711
716
|
schema: RootCauseGroupResultSchema,
|
|
712
717
|
prompt,
|
|
713
718
|
system: ROOT_CAUSE_GROUPING_SYSTEM,
|
|
@@ -904,7 +909,7 @@ async function spawnBatch2(spawner, requests, opts, limiter) {
|
|
|
904
909
|
});
|
|
905
910
|
}
|
|
906
911
|
async function runSpawnedPentestWorker(spec, input) {
|
|
907
|
-
const { TargetedPentestAgent } = await import("./agent-
|
|
912
|
+
const { TargetedPentestAgent } = await import("./agent-x8nf3k1v.js");
|
|
908
913
|
const hooks = resolveItemHooks(input.hooks, input.seams, spec, 0);
|
|
909
914
|
const agent = new TargetedPentestAgent({
|
|
910
915
|
target: spec.target,
|
|
@@ -915,9 +920,8 @@ async function runSpawnedPentestWorker(spec, input) {
|
|
|
915
920
|
role: spec.role,
|
|
916
921
|
findingsRegistry: input.findingsRegistry,
|
|
917
922
|
browserSession: input.browserSession,
|
|
918
|
-
|
|
923
|
+
...getModelSettings(input),
|
|
919
924
|
session: input.session,
|
|
920
|
-
authConfig: input.authConfig,
|
|
921
925
|
onStepFinish: input.onStepFinish,
|
|
922
926
|
onCacheMetrics: input.onCacheMetrics,
|
|
923
927
|
eventBus: input.eventBus,
|
|
@@ -925,9 +929,6 @@ async function runSpawnedPentestWorker(spec, input) {
|
|
|
925
929
|
subagentName: input.subagentName,
|
|
926
930
|
environmentVariables: input.environmentVariables,
|
|
927
931
|
secretValues: input.secretValues,
|
|
928
|
-
enableThinking: input.enableThinking,
|
|
929
|
-
thinkingEffort: input.thinkingEffort,
|
|
930
|
-
openAIReasoningEffort: input.openAIReasoningEffort,
|
|
931
932
|
display: input.display,
|
|
932
933
|
...hooks,
|
|
933
934
|
abortSignal: input.abortSignal && hooks.abortSignal ? AbortSignal.any([input.abortSignal, hooks.abortSignal]) : input.abortSignal ?? hooks.abortSignal
|
|
@@ -946,9 +947,8 @@ var runPentestChild = async (spec, ctx) => {
|
|
|
946
947
|
role: spec.role
|
|
947
948
|
};
|
|
948
949
|
const workerInput = {
|
|
949
|
-
|
|
950
|
+
...getModelSettings(ctx),
|
|
950
951
|
session: ctx.session,
|
|
951
|
-
authConfig: ctx.authConfig,
|
|
952
952
|
abortSignal: ctx.abortSignal,
|
|
953
953
|
onStepFinish: ctx.onStepFinish,
|
|
954
954
|
onCacheMetrics: ctx.onCacheMetrics,
|
|
@@ -959,9 +959,6 @@ var runPentestChild = async (spec, ctx) => {
|
|
|
959
959
|
browserSession: spec.browserSession,
|
|
960
960
|
environmentVariables: ctx.environmentVariables,
|
|
961
961
|
secretValues: ctx.secretValues,
|
|
962
|
-
enableThinking: ctx.enableThinking,
|
|
963
|
-
thinkingEffort: ctx.thinkingEffort,
|
|
964
|
-
openAIReasoningEffort: ctx.openAIReasoningEffort,
|
|
965
962
|
display: ctx.display,
|
|
966
963
|
hooks: {
|
|
967
964
|
findingPolicy: ctx.findingPolicy,
|
|
@@ -983,7 +980,7 @@ var runPentestChild = async (spec, ctx) => {
|
|
|
983
980
|
};
|
|
984
981
|
};
|
|
985
982
|
var runCodeChild = async (spec, ctx) => {
|
|
986
|
-
const { CodeAgent } = await import("./agent-
|
|
983
|
+
const { CodeAgent } = await import("./agent-htj3ww3e.js");
|
|
987
984
|
const agent = new CodeAgent({
|
|
988
985
|
findingPolicy: ctx.findingPolicy,
|
|
989
986
|
codebasePath: spec.codebasePath,
|
|
@@ -994,18 +991,14 @@ var runCodeChild = async (spec, ctx) => {
|
|
|
994
991
|
excludeTools: spec.excludeTools,
|
|
995
992
|
projectThreatModel: spec.projectThreatModel,
|
|
996
993
|
attackSurfaceRegistry: spec.attackSurfaceRegistry,
|
|
997
|
-
|
|
994
|
+
...getModelSettings(ctx),
|
|
998
995
|
session: ctx.session,
|
|
999
|
-
authConfig: ctx.authConfig,
|
|
1000
996
|
abortSignal: ctx.abortSignal,
|
|
1001
997
|
eventBus: ctx.eventBus,
|
|
1002
998
|
subagentId: ctx.subagentId,
|
|
1003
999
|
subagentName: ctx.subagentName,
|
|
1004
1000
|
sandbox: ctx.sandbox,
|
|
1005
1001
|
backends: ctx.backends,
|
|
1006
|
-
enableThinking: ctx.enableThinking,
|
|
1007
|
-
thinkingEffort: ctx.thinkingEffort,
|
|
1008
|
-
openAIReasoningEffort: ctx.openAIReasoningEffort,
|
|
1009
1002
|
display: ctx.display,
|
|
1010
1003
|
onStepFinish: ctx.onStepFinish,
|
|
1011
1004
|
onCacheMetrics: ctx.onCacheMetrics,
|
|
@@ -1017,14 +1010,13 @@ var runCodeChild = async (spec, ctx) => {
|
|
|
1017
1010
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1018
1011
|
};
|
|
1019
1012
|
var runWhiteboxChild = async (spec, ctx) => {
|
|
1020
|
-
const { WhiteboxAttackSurfaceAgent } = await import("./index-
|
|
1013
|
+
const { WhiteboxAttackSurfaceAgent } = await import("./index-vq0132nv.js");
|
|
1021
1014
|
const agent = new WhiteboxAttackSurfaceAgent({
|
|
1022
1015
|
findingPolicy: ctx.findingPolicy,
|
|
1023
1016
|
codebasePath: spec.codebasePath,
|
|
1024
1017
|
attackSurfaceRegistry: spec.attackSurfaceRegistry,
|
|
1025
|
-
|
|
1018
|
+
...getModelSettings(ctx),
|
|
1026
1019
|
session: ctx.session,
|
|
1027
|
-
authConfig: ctx.authConfig,
|
|
1028
1020
|
abortSignal: ctx.abortSignal,
|
|
1029
1021
|
eventBus: ctx.eventBus,
|
|
1030
1022
|
subagentId: ctx.subagentId,
|
|
@@ -1039,14 +1031,13 @@ var runWhiteboxChild = async (spec, ctx) => {
|
|
|
1039
1031
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1040
1032
|
};
|
|
1041
1033
|
var runBlackboxChild = async (spec, ctx) => {
|
|
1042
|
-
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-
|
|
1034
|
+
const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-g18ps9hs.js");
|
|
1043
1035
|
const agent = new BlackboxAttackSurfaceAgent({
|
|
1044
1036
|
findingPolicy: ctx.findingPolicy,
|
|
1045
1037
|
target: spec.target,
|
|
1046
1038
|
attackSurfaceRegistry: spec.attackSurfaceRegistry,
|
|
1047
|
-
|
|
1039
|
+
...getModelSettings(ctx),
|
|
1048
1040
|
session: ctx.session,
|
|
1049
|
-
authConfig: ctx.authConfig,
|
|
1050
1041
|
abortSignal: ctx.abortSignal,
|
|
1051
1042
|
eventBus: ctx.eventBus,
|
|
1052
1043
|
subagentId: ctx.subagentId,
|
|
@@ -1060,15 +1051,14 @@ var runBlackboxChild = async (spec, ctx) => {
|
|
|
1060
1051
|
return { run: () => agent.consume(), drained: () => agent.drained };
|
|
1061
1052
|
};
|
|
1062
1053
|
var runAuthChild = async (spec, ctx) => {
|
|
1063
|
-
const { runAuthenticationAgent } = await import("./agent-
|
|
1054
|
+
const { runAuthenticationAgent } = await import("./agent-km3wss0b.js");
|
|
1064
1055
|
return {
|
|
1065
1056
|
run: () => runAuthenticationAgent({
|
|
1066
1057
|
findingPolicy: ctx.findingPolicy,
|
|
1067
1058
|
target: spec.target,
|
|
1068
1059
|
authHints: spec.authHints,
|
|
1069
1060
|
session: ctx.session,
|
|
1070
|
-
|
|
1071
|
-
authConfig: ctx.authConfig,
|
|
1061
|
+
...getModelSettings(ctx),
|
|
1072
1062
|
abortSignal: ctx.abortSignal,
|
|
1073
1063
|
eventBus: ctx.eventBus,
|
|
1074
1064
|
subagentId: ctx.subagentId,
|
|
@@ -1084,13 +1074,12 @@ var runAuthChild = async (spec, ctx) => {
|
|
|
1084
1074
|
};
|
|
1085
1075
|
};
|
|
1086
1076
|
var runJudgeChild = async (spec, ctx) => {
|
|
1087
|
-
const { judgeFinding } = await import("./index-
|
|
1077
|
+
const { judgeFinding } = await import("./index-cn1pgs79.js");
|
|
1088
1078
|
return {
|
|
1089
1079
|
run: () => judgeFinding(spec.judgeInput, {
|
|
1090
1080
|
waitForDrain: spec.waitForDrain,
|
|
1091
|
-
|
|
1081
|
+
...getModelSettings(ctx),
|
|
1092
1082
|
session: ctx.session,
|
|
1093
|
-
authConfig: ctx.authConfig,
|
|
1094
1083
|
abortSignal: ctx.abortSignal,
|
|
1095
1084
|
eventBus: ctx.eventBus,
|
|
1096
1085
|
subagentId: ctx.subagentId,
|
|
@@ -1098,9 +1087,6 @@ var runJudgeChild = async (spec, ctx) => {
|
|
|
1098
1087
|
sandbox: ctx.sandbox,
|
|
1099
1088
|
backends: ctx.backends,
|
|
1100
1089
|
target: spec.target,
|
|
1101
|
-
enableThinking: ctx.enableThinking,
|
|
1102
|
-
thinkingEffort: ctx.thinkingEffort,
|
|
1103
|
-
openAIReasoningEffort: ctx.openAIReasoningEffort,
|
|
1104
1090
|
languageModelMiddleware: ctx.languageModelMiddleware,
|
|
1105
1091
|
usageRecorder: ctx.usageRecorder,
|
|
1106
1092
|
toolExecutionContext: ctx.toolExecutionContext,
|