@pensar/apex 2.6.1 → 2.7.0-canary.21cb83dc
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-yby11zaq.js → agent-68t2wzmc.js} +6 -6
- package/build/agent-jhekpern.js +13 -0
- package/build/{agent-ayreaj6z.js → agent-qvreg8a4.js} +5 -5
- package/build/{agent-runs-g37vkrjr.js → agent-runs-30dvbvmm.js} +18 -18
- package/build/agent-vybw255f.js +13 -0
- package/build/{apps-xn6km9yn.js → apps-na0y0992.js} +13 -13
- package/build/{auth-d105wc64.js → auth-dz2c5thx.js} +13 -13
- package/build/{blackboxAgent-s56sgx9b.js → blackboxAgent-2mwvaajb.js} +6 -6
- package/build/{blackboxPentest-ps78v3w7.js → blackboxPentest-s2mfze9p.js} +17 -12
- package/build/{cli-kb21qhvm.js → cli-1pmfnz1a.js} +4 -3
- package/build/{cli-ae8jqxqr.js → cli-563yntrb.js} +2 -2
- package/build/{cli-7eea4e2y.js → cli-5ab346kd.js} +6 -6
- package/build/{cli-1ve18npr.js → cli-72y76bpg.js} +3 -2
- package/build/{cli-fy6vh2a7.js → cli-98wmmphf.js} +1 -1
- package/build/{cli-c05y640n.js → cli-9jscnhtg.js} +1 -1
- package/build/{cli-3sp6nd8d.js → cli-9kk9tm58.js} +2 -2
- package/build/{cli-d37a42dc.js → cli-9pz9wjt2.js} +101 -18
- package/build/{cli-dpsw2fe6.js → cli-a6x4jm5a.js} +476 -193
- package/build/{cli-az3xq70v.js → cli-cfrdr25z.js} +1 -1
- package/build/{cli-ngq9dr8n.js → cli-fdrrbb9p.js} +3 -3
- package/build/{cli-k2nwxta0.js → cli-t09zj814.js} +2 -2
- package/build/{cli-qgz1q9g5.js → cli-t4q4t4dx.js} +223 -76
- package/build/{cli-xtc2t6me.js → cli-vdd1s3x9.js} +103 -39
- package/build/{cli-gx71jcke.js → cli-vn4cwac3.js} +1 -1
- package/build/{cli-65g6rcat.js → cli-w9nw2a4z.js} +1 -1
- package/build/{cli-n2en7j5b.js → cli-z7ysyrr4.js} +1 -1
- package/build/{cli-709rvekb.js → cli-zbbtr4sb.js} +4 -2
- package/build/cli.js +70 -40
- package/build/{config-zpqkd5cz.js → config-nkzm9arw.js} +1 -1
- package/build/{fastStrike-mcjdvwez.js → fastStrike-16jw1s61.js} +67 -15
- package/build/{fixes-kytx5dmj.js → fixes-6wxk22v5.js} +13 -13
- package/build/{index-4vqdgb42.js → index-36p56pcf.js} +1473 -1217
- package/build/{index-je6hcsqr.js → index-6nejymsc.js} +1 -1
- package/build/{index-fv64eb32.js → index-asm4y7e4.js} +2 -2
- package/build/{index-n65z6v7b.js → index-bfmn52za.js} +6 -6
- package/build/{index-qv4cc65p.js → index-bt4r13q7.js} +13 -13
- package/build/{index-dr3tg1w3.js → index-gfq1rp1q.js} +1 -1
- package/build/{index-wqetp6gq.js → index-j9pxgrzd.js} +12 -7
- package/build/{index-r9yjkfrv.js → index-n9kapn1x.js} +4 -4
- package/build/{index-ns4m4s01.js → index-tr6evhyg.js} +4 -4
- package/build/{issues-eb3q9d3a.js → issues-7rmf4ker.js} +13 -13
- package/build/{knowledge-fqsvtx0f.js → knowledge-s2sxh8nb.js} +13 -13
- package/build/lib/{chunk-1azdancq.js → chunk-0dnx79b1.js} +1 -1
- package/build/lib/{chunk-4hwzqthr.js → chunk-161ak2am.js} +3 -2
- package/build/lib/{chunk-z137x08b.js → chunk-1rqbhx4b.js} +7 -5
- package/build/lib/{chunk-1yct6cra.js → chunk-3hjvdf67.js} +1 -1
- package/build/lib/{chunk-r2dkp4tb.js → chunk-5j8pp0xf.js} +1 -1
- package/build/lib/{chunk-3c00n0cy.js → chunk-77se1d35.js} +8 -3
- package/build/lib/{chunk-yrnrbjes.js → chunk-7tft4b8b.js} +4 -2
- package/build/lib/{chunk-w66ce82a.js → chunk-8njjwwcw.js} +4 -2
- package/build/lib/{chunk-v3dk9j7k.js → chunk-aq9eyxas.js} +80 -21
- package/build/lib/{chunk-9tt2021m.js → chunk-d05cvnv8.js} +9 -9
- package/build/lib/{chunk-e8yy2k73.js → chunk-f3sq4896.js} +28 -2
- package/build/lib/{chunk-1fy8azee.js → chunk-fasqtjq1.js} +1 -1
- package/build/lib/{chunk-1jvwqnem.js → chunk-gm3b9j4y.js} +104 -40
- package/build/lib/{chunk-r4j8ybn9.js → chunk-hys7nemr.js} +87 -36
- package/build/lib/{chunk-7pwa92rn.js → chunk-j9668h16.js} +1 -1
- package/build/lib/{chunk-ba41jh41.js → chunk-kcw4cpr3.js} +418 -133
- package/build/lib/{chunk-z96pbjhd.js → chunk-m4swxy5r.js} +13 -6
- package/build/lib/{chunk-xhdpgpkm.js → chunk-mbsde9d0.js} +2 -2
- package/build/lib/{chunk-9yksqgzr.js → chunk-mpvjfvz0.js} +20 -13
- package/build/lib/{chunk-2qsq76xq.js → chunk-qkz5sm0d.js} +128 -34
- package/build/lib/{chunk-nhfax4gb.js → chunk-rfyjqybp.js} +1 -1
- package/build/lib/{chunk-mg03jdmt.js → chunk-vsnwzne5.js} +1 -1
- package/build/lib/{chunk-acgbyf5h.js → chunk-ydxhkgjw.js} +3 -2
- package/build/lib/{chunk-bb0ekhkw.js → chunk-z8kej0sp.js} +69 -18
- package/build/lib/core/agents/agentRuntime.d.ts +2 -1
- package/build/lib/core/agents/defineAgent.d.ts +3 -2
- package/build/lib/core/agents/offSecAgent/index.d.ts +3 -1
- package/build/lib/core/agents/offSecAgent/index.js +10 -8
- package/build/lib/core/agents/offSecAgent/prompt.d.ts +3 -1
- package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +2 -1
- 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/offSecAgent/tools/listMemories.d.ts +11 -1
- package/build/lib/core/agents/offSecAgent/tools/reportError.d.ts +2 -1
- package/build/lib/core/agents/offSecAgent/tools/runPentestWorkflow.d.ts +20 -1
- package/build/lib/core/agents/offSecAgent/tools/spawnPentestAgent.d.ts +4 -7
- package/build/lib/core/agents/offSecAgent/tools/spawnPentestSwarm.d.ts +7 -1
- package/build/lib/core/agents/offSecAgent/tools/types.d.ts +2 -1
- package/build/lib/core/agents/offSecAgent/types.d.ts +7 -1
- 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/codeAgent/prompts.d.ts +1 -0
- 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.d.ts +18 -4
- package/build/lib/core/agents/specialized/pentest/agent.js +11 -9
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +9 -9
- package/build/lib/core/ai/ai.d.ts +23 -6
- package/build/lib/core/ai/ai.js +2 -2
- package/build/lib/core/ai/index.js +2 -2
- package/build/lib/core/ai/models/claude-capabilities.d.ts +3 -2
- package/build/lib/core/ai/models/concentrate.d.ts +1 -0
- package/build/lib/core/ai/models/index.d.ts +1 -1
- package/build/lib/core/ai/providers/concentrate.d.ts +1 -0
- package/build/lib/core/ai/utils.d.ts +2 -0
- package/build/lib/core/ai/utils.js +4 -2
- package/build/lib/core/api/index.d.ts +3 -0
- package/build/lib/core/api/index.js +22 -19
- package/build/lib/core/api/targetedPentest.d.ts +1 -0
- package/build/lib/core/api/targetedPentest.js +10 -10
- package/build/lib/core/config/config.d.ts +3 -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.d.ts +12 -0
- package/build/lib/core/session/index.js +2 -2
- package/build/lib/core/session/persistence.d.ts +7 -0
- package/build/lib/core/session/persistence.js +7 -3
- package/build/lib/core/workflows/fastStrike.d.ts +3 -1
- package/build/lib/core/workflows/pentest.d.ts +8 -1
- 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-x62b7hk1.js → logs-70fyr848.js} +13 -13
- package/build/{native-rollout-evidence-c9yhfqcs.js → native-rollout-evidence-ntensvzb.js} +3 -3
- package/build/{offesecAgent-5whnpeta.js → offesecAgent-kk62tf60.js} +4 -4
- package/build/pentest-4jgznn7h.js +22 -0
- package/build/{pentests-e0f32aqx.js → pentests-3e41hj08.js} +13 -13
- package/build/recordedRunClient-w34kcch1.js +11 -0
- package/build/{targetedPentest-rcbs4nvp.js → targetedPentest-t9snxcj2.js} +18 -11
- package/build/{targets-xj9g3q0z.js → targets-1pyf21c7.js} +13 -13
- package/build/threatModel-48y5qjze.js +21 -0
- package/build/{uninstall-7s784q4a.js → uninstall-fbydd9t6.js} +1 -1
- package/build/{upload-4gvhwmvr.js → upload-sbhwe2fq.js} +4 -4
- package/build/{utils-cjrz64pc.js → utils-23903gcj.js} +3 -3
- package/package.json +1 -1
- package/src/cli.ts +48 -14
- package/src/core/agents/agentRuntime.test.ts +38 -0
- package/src/core/agents/agentRuntime.ts +5 -2
- package/src/core/agents/defineAgent.ts +3 -1
- package/src/core/agents/offSecAgent/index.ts +3 -0
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +92 -5
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +70 -31
- package/src/core/agents/offSecAgent/prompt.test.ts +46 -0
- package/src/core/agents/offSecAgent/prompt.ts +52 -8
- package/src/core/agents/offSecAgent/selectiveConstruction.publicPath.test.ts +38 -0
- package/src/core/agents/offSecAgent/selectiveConstruction.test.ts +64 -0
- package/src/core/agents/offSecAgent/subagentSpawner.ts +12 -1
- package/src/core/agents/offSecAgent/tools/delegateAuth.ts +1 -0
- package/src/core/agents/offSecAgent/tools/listMemories.test.ts +230 -0
- package/src/core/agents/offSecAgent/tools/listMemories.ts +73 -6
- package/src/core/agents/offSecAgent/tools/reportError.test.ts +6 -0
- package/src/core/agents/offSecAgent/tools/reportError.ts +10 -2
- package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +2 -0
- package/src/core/agents/offSecAgent/tools/runPentestWorkflow.test.ts +57 -0
- package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +19 -1
- package/src/core/agents/offSecAgent/tools/runWhiteboxScan.ts +5 -2
- package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +1 -0
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +72 -2
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +32 -11
- package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +25 -5
- package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +1 -0
- package/src/core/agents/offSecAgent/tools/types.ts +6 -1
- package/src/core/agents/offSecAgent/tools/updateTask.ts +5 -1
- package/src/core/agents/offSecAgent/tools/whiteboxCandidates.ts +11 -4
- package/src/core/agents/offSecAgent/types.ts +9 -0
- package/src/core/agents/specialized/codeAgent/agent.test.ts +7 -0
- package/src/core/agents/specialized/codeAgent/agent.ts +9 -2
- package/src/core/agents/specialized/codeAgent/prompts.ts +6 -0
- package/src/core/agents/specialized/pentest/agent.test.ts +116 -0
- package/src/core/agents/specialized/pentest/agent.ts +178 -49
- package/src/core/agents/specialized/pentest/results.test.ts +59 -4
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.ts +1 -0
- package/src/core/ai/ai.operator-context.bench.test.ts +1408 -0
- package/src/core/ai/ai.recorded-context.test.ts +74 -0
- package/src/core/ai/ai.test.ts +54 -0
- package/src/core/ai/ai.ts +312 -82
- package/src/core/ai/compactionTelemetry.test.ts +2 -2
- package/src/core/ai/models/anthropic.ts +6 -0
- package/src/core/ai/models/bedrock.ts +18 -0
- package/src/core/ai/models/claude-capabilities.ts +29 -8
- package/src/core/ai/models/concentrate.ts +52 -0
- package/src/core/ai/models/index.ts +25 -4
- package/src/core/ai/models/models.test.ts +154 -0
- package/src/core/ai/models/openrouter.ts +43 -1
- package/src/core/ai/providers/anthropic-models.test.ts +60 -1
- package/src/core/ai/providers/bedrock-models.test.ts +81 -0
- package/src/core/ai/providers/concentrate.test.ts +31 -0
- package/src/core/ai/providers/concentrate.ts +11 -0
- package/src/core/ai/providers/gateway-models.test.ts +16 -6
- package/src/core/ai/utils.native-rollout-evidence.test.ts +1 -0
- package/src/core/ai/utils.ts +189 -143
- package/src/core/api/blackboxPentest.ts +9 -1
- package/src/core/api/index.ts +9 -0
- package/src/core/api/targetedPentest.ts +19 -5
- package/src/core/config/config.test.ts +35 -0
- package/src/core/config/config.ts +5 -0
- package/src/core/observability/telemetry.test.ts +2 -3
- package/src/core/session/index.ts +5 -0
- package/src/core/session/persistence.test.ts +62 -0
- package/src/core/session/persistence.ts +56 -0
- package/src/core/workflows/fastStrike.seams.test.ts +149 -0
- package/src/core/workflows/fastStrike.test.ts +18 -1
- package/src/core/workflows/fastStrike.ts +103 -11
- package/src/core/workflows/pentest.test.ts +104 -0
- package/src/core/workflows/pentest.ts +110 -7
- package/src/core/workflows/seams.test.ts +13 -0
- package/src/core/workflows/seams.ts +5 -1
- package/src/core/workflows/whiteboxAttackSurface.ts +1 -0
- package/src/tui/components/chat/loading-indicator.tsx +20 -4
- package/src/tui/components/chat/message-list.tsx +1 -0
- package/src/tui/components/commands/__tests__/advanced-settings-lifecycle.tsx +176 -0
- package/src/tui/components/commands/advanced-settings.test.ts +28 -0
- package/src/tui/components/commands/advanced-settings.tsx +237 -19
- package/src/tui/components/operator-dashboard/index.tsx +46 -9
- package/src/tui/components/operator-dashboard/logic.test.ts +106 -0
- package/src/tui/components/operator-dashboard/logic.ts +42 -2
- package/src/tui/components/operator-dashboard/run-events.test.ts +3 -1
- package/src/tui/components/shared/__tests__/tool-renderer-lifecycle.tsx +18 -0
- package/src/tui/components/shared/action-label.test.ts +9 -0
- package/src/tui/components/shared/compacting-icon.tsx +18 -0
- package/src/tui/components/shared/index.ts +1 -0
- package/src/tui/components/shared/tool-registry.ts +1 -0
- package/src/tui/components/shared/tool-renderer.tsx +21 -7
- package/src/tui/context/route.tsx +1 -0
- package/src/tui/keybindings/registry.ts +2 -0
- package/build/agent-6w7egcf1.js +0 -13
- package/build/agent-9zx75feh.js +0 -13
- package/build/pentest-e61hc38s.js +0 -22
- package/build/recordedRunClient-dp032c32.js +0 -11
- package/build/threatModel-jkxfa40s.js +0 -21
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent2,
|
|
3
3
|
buildPentestSystemPrompt2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-vdd1s3x9.js";
|
|
5
|
+
import"./cli-72y76bpg.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
7
|
+
import"./cli-t4q4t4dx.js";
|
|
8
|
+
import"./cli-a6x4jm5a.js";
|
|
9
|
+
import"./cli-9jscnhtg.js";
|
|
10
10
|
import"./cli-c2k4xxaw.js";
|
|
11
|
-
import"./cli-
|
|
11
|
+
import"./cli-98wmmphf.js";
|
|
12
12
|
export {
|
|
13
13
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
14
14
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-9kk9tm58.js";
|
|
4
|
+
import"./cli-72y76bpg.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-t4q4t4dx.js";
|
|
7
|
+
import"./cli-a6x4jm5a.js";
|
|
8
|
+
import"./cli-9jscnhtg.js";
|
|
9
|
+
import"./cli-c2k4xxaw.js";
|
|
10
|
+
import"./cli-98wmmphf.js";
|
|
11
|
+
export {
|
|
12
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
13
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
1
|
+
import"./cli-t4q4t4dx.js";
|
|
2
|
+
import"./cli-98wmmphf.js";
|
|
3
|
+
import"./cli-9jscnhtg.js";
|
|
4
4
|
import {
|
|
5
5
|
AgentRuntime,
|
|
6
6
|
defineAgent
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-72y76bpg.js";
|
|
8
8
|
import"./cli-qba2x69h.js";
|
|
9
9
|
import {
|
|
10
10
|
stepCountIs2,
|
|
11
11
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-a6x4jm5a.js";
|
|
13
13
|
import"./cli-c2k4xxaw.js";
|
|
14
14
|
import {
|
|
15
15
|
init_zod
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-98wmmphf.js";
|
|
5
|
+
import"./cli-9jscnhtg.js";
|
|
6
|
+
import {
|
|
7
|
+
AgentEventBus
|
|
8
|
+
} from "./cli-t4q4t4dx.js";
|
|
6
9
|
import {
|
|
7
10
|
inspectSessionEvidence2,
|
|
8
11
|
RecordedRunSpecSchema,
|
|
@@ -13,28 +16,25 @@ import {
|
|
|
13
16
|
runRecordedAgent2,
|
|
14
17
|
RunRecoveryBlockedError2,
|
|
15
18
|
resumeRecordedAgent2
|
|
16
|
-
} from "./cli-
|
|
17
|
-
import
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-3sp6nd8d.js";
|
|
25
|
-
import"./cli-xtc2t6me.js";
|
|
26
|
-
import"./cli-n2en7j5b.js";
|
|
19
|
+
} from "./cli-5ab346kd.js";
|
|
20
|
+
import"./cli-t09zj814.js";
|
|
21
|
+
import"./cli-1pmfnz1a.js";
|
|
22
|
+
import"./cli-fdrrbb9p.js";
|
|
23
|
+
import"./cli-9pz9wjt2.js";
|
|
24
|
+
import"./cli-9kk9tm58.js";
|
|
25
|
+
import"./cli-vdd1s3x9.js";
|
|
26
|
+
import"./cli-z7ysyrr4.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-vn4cwac3.js";
|
|
32
|
+
import"./cli-72y76bpg.js";
|
|
33
33
|
import"./cli-qba2x69h.js";
|
|
34
34
|
import {
|
|
35
35
|
buildAuthConfig,
|
|
36
36
|
init_ai
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-a6x4jm5a.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-bt4r13q7.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-w34kcch1.js");
|
|
133
133
|
const client = await openRecordedRunClient(values.store);
|
|
134
134
|
const controller = new AbortController;
|
|
135
135
|
const detach = () => controller.abort();
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-1pmfnz1a.js";
|
|
4
|
+
import"./cli-72y76bpg.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-t4q4t4dx.js";
|
|
7
|
+
import"./cli-a6x4jm5a.js";
|
|
8
|
+
import"./cli-9jscnhtg.js";
|
|
9
|
+
import"./cli-c2k4xxaw.js";
|
|
10
|
+
import"./cli-98wmmphf.js";
|
|
11
|
+
export {
|
|
12
|
+
CodeAgent2 as CodeAgent
|
|
13
|
+
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-fy6vh2a7.js";
|
|
3
|
-
import"./cli-c05y640n.js";
|
|
4
|
-
import"./cli-7eea4e2y.js";
|
|
5
2
|
import {
|
|
6
3
|
ENDPOINT_TRANSPORTS2,
|
|
7
4
|
listApps2,
|
|
@@ -18,21 +15,24 @@ import {
|
|
|
18
15
|
searchEndpoints2,
|
|
19
16
|
listDomains2,
|
|
20
17
|
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-
|
|
18
|
+
} from "./cli-t4q4t4dx.js";
|
|
19
|
+
import"./cli-98wmmphf.js";
|
|
20
|
+
import"./cli-9jscnhtg.js";
|
|
21
|
+
import"./cli-5ab346kd.js";
|
|
22
|
+
import"./cli-t09zj814.js";
|
|
23
|
+
import"./cli-1pmfnz1a.js";
|
|
24
|
+
import"./cli-fdrrbb9p.js";
|
|
25
|
+
import"./cli-9pz9wjt2.js";
|
|
26
|
+
import"./cli-9kk9tm58.js";
|
|
27
|
+
import"./cli-vdd1s3x9.js";
|
|
28
|
+
import"./cli-z7ysyrr4.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-72y76bpg.js";
|
|
34
34
|
import"./cli-qba2x69h.js";
|
|
35
|
-
import"./cli-
|
|
35
|
+
import"./cli-a6x4jm5a.js";
|
|
36
36
|
import"./cli-c2k4xxaw.js";
|
|
37
37
|
|
|
38
38
|
// src/cli/apps.ts
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
+
import"./cli-t4q4t4dx.js";
|
|
2
3
|
import {
|
|
3
4
|
config2,
|
|
4
5
|
init_config
|
|
5
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-98wmmphf.js";
|
|
6
7
|
import {
|
|
7
8
|
getPensarApiUrl2,
|
|
8
9
|
getPensarConsoleUrl2,
|
|
@@ -18,23 +19,22 @@ import {
|
|
|
18
19
|
createWorkspaceSelection2,
|
|
19
20
|
pollWorkspaceSelection2,
|
|
20
21
|
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-n2en7j5b.js";
|
|
22
|
+
} from "./cli-9jscnhtg.js";
|
|
23
|
+
import"./cli-5ab346kd.js";
|
|
24
|
+
import"./cli-t09zj814.js";
|
|
25
|
+
import"./cli-1pmfnz1a.js";
|
|
26
|
+
import"./cli-fdrrbb9p.js";
|
|
27
|
+
import"./cli-9pz9wjt2.js";
|
|
28
|
+
import"./cli-9kk9tm58.js";
|
|
29
|
+
import"./cli-vdd1s3x9.js";
|
|
30
|
+
import"./cli-z7ysyrr4.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-72y76bpg.js";
|
|
36
36
|
import"./cli-qba2x69h.js";
|
|
37
|
-
import"./cli-
|
|
37
|
+
import"./cli-a6x4jm5a.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-t09zj814.js";
|
|
4
|
+
import"./cli-72y76bpg.js";
|
|
5
5
|
import"./cli-qba2x69h.js";
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
6
|
+
import"./cli-t4q4t4dx.js";
|
|
7
|
+
import"./cli-a6x4jm5a.js";
|
|
8
|
+
import"./cli-9jscnhtg.js";
|
|
9
9
|
import"./cli-c2k4xxaw.js";
|
|
10
|
-
import"./cli-
|
|
10
|
+
import"./cli-98wmmphf.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-98wmmphf.js";
|
|
2
|
+
import"./cli-9jscnhtg.js";
|
|
3
|
+
import"./cli-t4q4t4dx.js";
|
|
4
|
+
import"./cli-t09zj814.js";
|
|
5
|
+
import"./cli-vdd1s3x9.js";
|
|
6
|
+
import"./cli-z7ysyrr4.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-9pz9wjt2.js";
|
|
12
|
+
import"./cli-1pmfnz1a.js";
|
|
13
|
+
import"./cli-fdrrbb9p.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-72y76bpg.js";
|
|
19
19
|
import"./cli-qba2x69h.js";
|
|
20
20
|
import {
|
|
21
21
|
init_ai,
|
|
22
22
|
normalizeStepUsage
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-a6x4jm5a.js";
|
|
24
24
|
import"./cli-c2k4xxaw.js";
|
|
25
25
|
|
|
26
26
|
// src/core/api/blackboxPentest.ts
|
|
@@ -45,7 +45,12 @@ async function runPentestAgent(input) {
|
|
|
45
45
|
tokenUsage
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
const { findings, findingsPath, pocsPath, reportPath } = result;
|
|
48
|
+
const { findings, findingsPath, pocsPath, reportPath, reportedFindings } = result;
|
|
49
|
+
if ((input.hooks?.findingPolicy ?? input.findingPolicy) === "external") {
|
|
50
|
+
console.log(`
|
|
51
|
+
Reported ${reportedFindings?.length ?? 0} finding(s) for external evaluation`);
|
|
52
|
+
return result;
|
|
53
|
+
}
|
|
49
54
|
console.log(`
|
|
50
55
|
Found ${findings.length} vulnerabilities`);
|
|
51
56
|
console.log(`Findings: ${findingsPath}`);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRuntime,
|
|
3
3
|
defineAgent
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-72y76bpg.js";
|
|
5
5
|
import {
|
|
6
6
|
stepCountIs2,
|
|
7
7
|
init_dist
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-a6x4jm5a.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
11
11
|
init_dist();
|
|
@@ -59,6 +59,7 @@ Prefer catalog + code_query for sink-first work; use candidates to separate unve
|
|
|
59
59
|
4. **Stay focused** — stick to your objective. Don't wander into unrelated areas of the codebase.
|
|
60
60
|
5. **Be thorough** — don't stop at the first match. Make sure you've covered everything relevant to the objective.
|
|
61
61
|
`;
|
|
62
|
+
var CODE_AGENT_EXTERNAL_SYSTEM_PROMPT = CODE_AGENT_SYSTEM_PROMPT.replace("use candidates to separate unverified ideas from `document_vulnerability`", "use candidates to separate unverified ideas from evidence-backed findings returned to the caller");
|
|
62
63
|
|
|
63
64
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
64
65
|
var CODE_AGENT_TOOLS = [
|
|
@@ -87,7 +88,7 @@ function codeAgentDefinition() {
|
|
|
87
88
|
return defineAgent({
|
|
88
89
|
name: "code-agent",
|
|
89
90
|
role: "worker",
|
|
90
|
-
system: (opts) => opts.system ?? CODE_AGENT_SYSTEM_PROMPT,
|
|
91
|
+
system: (opts) => opts.system ?? (opts.findingPolicy === "external" ? CODE_AGENT_EXTERNAL_SYSTEM_PROMPT : CODE_AGENT_SYSTEM_PROMPT),
|
|
91
92
|
activeTools: (opts) => {
|
|
92
93
|
let activeTools = [...CODE_AGENT_TOOLS];
|
|
93
94
|
if (opts.excludeTools?.length) {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
openSqliteRunStore,
|
|
5
5
|
resolveWorkerEndpoint,
|
|
6
6
|
workerRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-5ab346kd.js";
|
|
8
8
|
import {
|
|
9
9
|
launchLocalWorker
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-vn4cwac3.js";
|
|
11
11
|
|
|
12
12
|
// src/core/runtime/recordedRunClient.ts
|
|
13
13
|
import { setTimeout as delay } from "node:timers/promises";
|
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
ALL_TOOL_NAMES2,
|
|
7
7
|
SKILL_TOOL_NAMES2,
|
|
8
8
|
OffensiveSecurityAgent
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-t4q4t4dx.js";
|
|
10
10
|
import {
|
|
11
11
|
config2,
|
|
12
12
|
init_config
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-98wmmphf.js";
|
|
14
14
|
import {
|
|
15
15
|
init_constants
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-9jscnhtg.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-72y76bpg.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-a6x4jm5a.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-w9nw2a4z.js";
|
|
75
75
|
import {
|
|
76
76
|
__commonJS,
|
|
77
77
|
__require
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-t4q4t4dx.js";
|
|
4
4
|
|
|
5
5
|
// src/core/agents/agentRuntime.ts
|
|
6
6
|
function assembleAgentHooks(opts) {
|
|
7
7
|
return {
|
|
8
|
+
findingPolicy: opts.findingPolicy,
|
|
8
9
|
backends: opts.backends,
|
|
9
10
|
subagentSpawner: opts.subagentSpawner,
|
|
10
11
|
languageModelMiddleware: opts.languageModelMiddleware,
|
|
@@ -39,7 +40,7 @@ class AgentRuntime extends OffensiveSecurityAgent {
|
|
|
39
40
|
responseSchema: definition.responseSchema?.(opts, state),
|
|
40
41
|
stopWhen: definition.stopWhen?.(opts, state) ?? opts.stopWhen,
|
|
41
42
|
extraTools: mergeExtraTools(opts.extraTools, definition.extraTools?.(opts, state)),
|
|
42
|
-
resolveResult: resolveResult ? (streamResult) => resolveResult(opts, state, streamResult) : undefined,
|
|
43
|
+
resolveResult: resolveResult ? (streamResult, validatedResponse) => resolveResult(opts, state, streamResult, validatedResponse) : undefined,
|
|
43
44
|
target: definition.target?.(opts, state) ?? opts.target,
|
|
44
45
|
grpc: definition.grpc?.(opts, state) ?? opts.grpc,
|
|
45
46
|
browserEngine: definition.browserEngine?.(opts, state) ?? opts.browserEngine,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AgentRuntime,
|
|
10
10
|
defineAgent
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-72y76bpg.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-a6x4jm5a.js";
|
|
20
20
|
|
|
21
21
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
22
22
|
init_dist();
|