@pensar/apex 2.7.0-canary.21cb83dc → 2.7.0-canary.65ea630f
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-68t2wzmc.js → agent-apjfqhdy.js} +7 -6
- package/build/{agent-qvreg8a4.js → agent-c5x0bmpj.js} +6 -5
- package/build/agent-g0j0y0nj.js +14 -0
- package/build/{agent-runs-30dvbvmm.js → agent-runs-4fy6brty.js} +21 -18
- package/build/agent-w390p7pf.js +14 -0
- package/build/{apps-na0y0992.js → apps-w3azg4hv.js} +16 -13
- package/build/{auth-dz2c5thx.js → auth-1n5zzpv3.js} +16 -13
- package/build/blackboxAgent-qy1ghjdv.js +14 -0
- package/build/{blackboxPentest-s2mfze9p.js → blackboxPentest-13zy16b6.js} +15 -14
- package/build/{cli-w9nw2a4z.js → cli-25fa1zyr.js} +2 -1
- package/build/{cli-72y76bpg.js → cli-3baw38jr.js} +2 -1
- package/build/{cli-vn4cwac3.js → cli-3gep10fn.js} +1 -1
- package/build/cli-3ncpc0a4.js +54 -0
- package/build/{cli-vdd1s3x9.js → cli-4qbbnn6z.js} +11 -11
- package/build/{cli-fdrrbb9p.js → cli-8bkc7zc0.js} +3 -3
- package/build/{cli-1pmfnz1a.js → cli-8jmv4k35.js} +2 -2
- package/build/{cli-98wmmphf.js → cli-9nk97s94.js} +1 -1
- package/build/{cli-9kk9tm58.js → cli-bnegz51z.js} +5 -5
- package/build/{cli-9jscnhtg.js → cli-cb7f2wcw.js} +1 -1
- package/build/{cli-t09zj814.js → cli-egs0t450.js} +2 -2
- package/build/{cli-563yntrb.js → cli-h14pdgzz.js} +2 -2
- package/build/{cli-z7ysyrr4.js → cli-n3e3vjwf.js} +1 -1
- package/build/{cli-a6x4jm5a.js → cli-n4vfz69h.js} +37107 -36621
- package/build/{cli-9pz9wjt2.js → cli-nc5thq90.js} +114 -81
- package/build/{cli-cfrdr25z.js → cli-pegw5ec1.js} +4 -4
- package/build/cli-vre3pncf.js +1193 -0
- package/build/{cli-zbbtr4sb.js → cli-vzh6d08m.js} +11 -6
- package/build/cli-xxe3p6qp.js +36 -0
- package/build/{cli-t4q4t4dx.js → cli-z9vvm3j3.js} +989 -1417
- package/build/{cli-5ab346kd.js → cli-za8brr9s.js} +31 -60
- package/build/cli.js +137 -48
- package/build/{config-nkzm9arw.js → config-z6yka3e6.js} +1 -1
- package/build/{fastStrike-16jw1s61.js → fastStrike-hnvt0h0d.js} +12 -7
- package/build/{fixes-6wxk22v5.js → fixes-25x452xc.js} +16 -13
- package/build/{index-n9kapn1x.js → index-0dm9ytw3.js} +5 -4
- package/build/{index-bt4r13q7.js → index-2wr0xgt8.js} +19 -15
- package/build/{index-gfq1rp1q.js → index-dxwq9egv.js} +1 -1
- package/build/{index-asm4y7e4.js → index-kcdwaj2g.js} +2 -2
- package/build/{index-6nejymsc.js → index-n1yxw57b.js} +1 -1
- package/build/{index-j9pxgrzd.js → index-tmgmpw4e.js} +35 -9
- package/build/{index-tr6evhyg.js → index-wv2amtg5.js} +11 -7
- package/build/{index-bfmn52za.js → index-yjmzw4hd.js} +7 -6
- package/build/{index-36p56pcf.js → index-zqdfp71h.js} +335 -334
- package/build/{issues-7rmf4ker.js → issues-bnrmw4bq.js} +16 -13
- package/build/{knowledge-s2sxh8nb.js → knowledge-v0md1pbc.js} +16 -13
- package/build/lance-9b9sg5j9.js +232 -0
- package/build/lib/{chunk-0dnx79b1.js → chunk-03amvbqw.js} +5 -1
- package/build/lib/{chunk-5j8pp0xf.js → chunk-13j50shb.js} +1 -1
- package/build/lib/{chunk-aq9eyxas.js → chunk-21ndb0yq.js} +24 -12
- package/build/lib/{chunk-77se1d35.js → chunk-2a6gkk00.js} +49 -33
- package/build/lib/{chunk-rfyjqybp.js → chunk-35daj4vb.js} +5 -1
- package/build/lib/{chunk-qkz5sm0d.js → chunk-45qh3jmc.js} +64 -59
- package/build/lib/{chunk-m4swxy5r.js → chunk-4e3npk8v.js} +46 -2
- package/build/lib/{chunk-fy3bbbqy.js → chunk-5avnedwm.js} +7 -1
- package/build/lib/{chunk-gm3b9j4y.js → chunk-63pchg01.js} +7 -7
- package/build/lib/{chunk-1rqbhx4b.js → chunk-7383z1gj.js} +91 -71
- package/build/lib/{chunk-z8kej0sp.js → chunk-c1aw0f86.js} +15 -12
- package/build/lib/{chunk-d05cvnv8.js → chunk-dn53qe29.js} +13 -13
- package/build/lib/{chunk-2njv7wz3.js → chunk-hbyxyxdc.js} +4 -0
- package/build/lib/{chunk-ydxhkgjw.js → chunk-hwm3zkbt.js} +2 -1
- package/build/lib/{chunk-7tft4b8b.js → chunk-jraxv1ee.js} +1 -1
- package/build/lib/{chunk-mbsde9d0.js → chunk-mg19rv54.js} +2 -2
- package/build/lib/{chunk-hys7nemr.js → chunk-nar0dfqq.js} +741 -45
- package/build/lib/{chunk-8njjwwcw.js → chunk-nhvmxjsr.js} +9 -3
- package/build/lib/{chunk-3hjvdf67.js → chunk-nwscnz8j.js} +1 -1
- package/build/lib/{chunk-fasqtjq1.js → chunk-ny5xp1gs.js} +1 -1
- package/build/lib/{chunk-161ak2am.js → chunk-s28z6wmx.js} +1 -1
- package/build/lib/{chunk-mpvjfvz0.js → chunk-vftfd781.js} +70 -45
- package/build/lib/{chunk-kcw4cpr3.js → chunk-vm47fydm.js} +763 -244
- package/build/lib/{chunk-7gjdygcx.js → chunk-vwr9w3ab.js} +2 -0
- package/build/lib/{chunk-j9668h16.js → chunk-y7bbahyc.js} +1 -1
- package/build/lib/{chunk-vsnwzne5.js → chunk-yea9yx35.js} +1 -1
- package/build/lib/{chunk-f3sq4896.js → chunk-zg1szteq.js} +1 -1
- package/build/lib/core/agents/agentRuntime.d.ts +1 -0
- package/build/lib/core/agents/lance.d.ts +153 -0
- package/build/lib/core/agents/lanceJudge.d.ts +3 -0
- package/build/lib/core/agents/offSecAgent/index.js +13 -13
- package/build/lib/core/agents/offSecAgent/offensiveSecurityAgent.d.ts +4 -0
- package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +16 -1
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +10 -8
- package/build/lib/core/agents/offSecAgent/toolExecutionContext.d.ts +3 -0
- package/build/lib/core/agents/offSecAgent/toolLifecycle.d.ts +1 -0
- package/build/lib/core/agents/offSecAgent/tools/index.js +10 -6
- package/build/lib/core/agents/offSecAgent/tools/types.d.ts +5 -3
- package/build/lib/core/agents/offSecAgent/tools/whiteboxCandidates.d.ts +2 -2
- package/build/lib/core/agents/offSecAgent/types.d.ts +12 -2
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +13 -13
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +12 -12
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +14 -14
- package/build/lib/core/agents/specialized/codeAgent/agent.js +13 -13
- package/build/lib/core/agents/specialized/cvssScorer/index.d.ts +2 -1
- package/build/lib/core/agents/specialized/findingJudge/agent.js +11 -11
- package/build/lib/core/agents/specialized/findingJudge/index.d.ts +2 -1
- package/build/lib/core/agents/specialized/findingJudge/index.js +4 -4
- package/build/lib/core/agents/specialized/patching/index.js +14 -14
- package/build/lib/core/agents/specialized/pentest/agent.js +13 -13
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.d.ts +2 -1
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +13 -13
- package/build/lib/core/ai/ai.d.ts +17 -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.d.ts +3 -0
- package/build/lib/core/api/index.js +29 -23
- package/build/lib/core/api/lance.d.ts +6 -0
- package/build/lib/core/api/offesecAgent.d.ts +1 -0
- package/build/lib/core/api/reasoning.d.ts +12 -0
- package/build/lib/core/api/targetedPentest.js +14 -14
- package/build/lib/core/cli/reasoning.d.ts +4 -0
- package/build/lib/core/config/config.d.ts +7 -2
- package/build/lib/core/config/customProviders.d.ts +11 -0
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/eventBus.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 +35 -0
- package/build/lib/core/session/index.js +6 -4
- package/build/lib/core/session/persistence.js +4 -4
- package/build/lib/core/tools/backends/index.js +1 -1
- package/build/lib/core/tools/backends/resolve.d.ts +1 -0
- package/build/lib/core/workflows/pentest.d.ts +4 -1
- package/build/lib/core/workflows/pentest.js +19 -19
- 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 +6 -4
- package/build/lib/core/workflows/whiteboxAttackSurface.js +15 -15
- package/build/lib/index.js +25 -25
- package/build/{logs-70fyr848.js → logs-e8g7mb7b.js} +16 -13
- package/build/{native-rollout-evidence-ntensvzb.js → native-rollout-evidence-6k28z0k1.js} +5 -5
- package/build/offesecAgent-hs1dm6r9.js +32 -0
- package/build/pentest-6bqq76aa.js +23 -0
- package/build/{pentests-3e41hj08.js → pentests-vg4m6r03.js} +16 -13
- package/build/recordedRunClient-n83gzjck.js +11 -0
- package/build/subagentSpawner-20rjfpg9.js +12 -0
- package/build/{targetedPentest-t9snxcj2.js → targetedPentest-vv8ds3gc.js} +35 -8
- package/build/{targets-1pyf21c7.js → targets-4h5y26fq.js} +16 -13
- package/build/threatModel-dcmh0xk3.js +24 -0
- package/build/{uninstall-fbydd9t6.js → uninstall-87cfqzkk.js} +1 -1
- package/build/{upload-sbhwe2fq.js → upload-afsftte8.js} +4 -4
- package/build/{utils-23903gcj.js → utils-yr7y3xvk.js} +5 -5
- package/package.json +2 -1
- package/src/cli/lance-verifier.test.ts +57 -0
- package/src/cli/lance-verifier.ts +73 -0
- package/src/cli/lance.test.ts +71 -0
- package/src/cli/lance.ts +48 -0
- package/src/cli.ts +62 -6
- package/src/core/agents/agentRuntime.test.ts +4 -0
- package/src/core/agents/agentRuntime.ts +2 -0
- package/src/core/agents/lance.test.ts +421 -0
- package/src/core/agents/lance.ts +701 -0
- package/src/core/agents/lanceJudge.test.ts +166 -0
- package/src/core/agents/lanceJudge.ts +115 -0
- package/src/core/agents/offSecAgent/interruptedStepFinalization.test.ts +51 -0
- package/src/core/agents/offSecAgent/lance.test.ts +188 -0
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +174 -10
- package/src/core/agents/offSecAgent/subagentSpawner.hooks.test.ts +11 -3
- package/src/core/agents/offSecAgent/subagentSpawner.reasoning.test.ts +167 -0
- package/src/core/agents/offSecAgent/subagentSpawner.ts +70 -27
- package/src/core/agents/offSecAgent/toolExecutionContext.test.ts +230 -0
- package/src/core/agents/offSecAgent/toolExecutionContext.ts +56 -0
- package/src/core/agents/offSecAgent/toolLifecycle.ts +2 -0
- package/src/core/agents/offSecAgent/tools/delegateAuth.ts +3 -2
- package/src/core/agents/offSecAgent/tools/documentFinding.test.ts +9 -4
- package/src/core/agents/offSecAgent/tools/documentFinding.ts +10 -9
- package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +5 -4
- package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +2 -0
- package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +49 -67
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +7 -1
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +4 -5
- package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +3 -0
- package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +3 -3
- package/src/core/agents/offSecAgent/tools/types.ts +6 -1
- package/src/core/agents/offSecAgent/types.ts +13 -1
- 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 +6 -0
- package/src/core/agents/specialized/pentest/agent.test.ts +39 -0
- package/src/core/agents/specialized/pentest/agent.ts +3 -3
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.concurrency.test.ts +59 -2
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.hooks.test.ts +127 -0
- package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.ts +74 -69
- package/src/core/ai/ai.durability-hooks.test.ts +25 -7
- package/src/core/ai/ai.lance.test.ts +581 -0
- package/src/core/ai/ai.operator-context.bench.test.ts +159 -177
- package/src/core/ai/ai.recorded-context.test.ts +15 -8
- package/src/core/ai/ai.test.ts +37 -69
- package/src/core/ai/ai.ts +197 -301
- package/src/core/ai/compactionTelemetry.test.ts +67 -15
- 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/streamIdleTimeout.test.ts +21 -0
- package/src/core/ai/utils.native-rollout-evidence.test.ts +20 -8
- package/src/core/ai/utils.ts +99 -39
- package/src/core/api/attackSurface.ts +1 -0
- package/src/core/api/index.ts +8 -0
- package/src/core/api/lance.ts +23 -0
- package/src/core/api/offesecAgent.test.ts +51 -0
- package/src/core/api/offesecAgent.ts +15 -1
- package/src/core/api/reasoning.test.ts +213 -0
- package/src/core/api/reasoning.ts +44 -0
- package/src/core/api/recordedRun.loop.test.ts +5 -1
- 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 +6 -0
- package/src/core/config/customProviders.ts +21 -2
- package/src/core/eventBus.ts +1 -0
- package/src/core/findings/registry.test.ts +9 -1
- package/src/core/findings/registry.ts +6 -0
- package/src/core/observability/telemetry.test.ts +129 -76
- package/src/core/observability/telemetry.ts +5 -0
- package/src/core/runtime/sqliteRunObservation.test.ts +1 -1
- package/src/core/session/index.ts +33 -0
- package/src/core/tools/backends/resolve.ts +7 -0
- package/src/core/tools/backends/whiteboxJobs.test.ts +9 -8
- 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.test.ts +74 -2
- package/src/core/workflows/whiteboxAttackSurface.ts +102 -74
- package/src/tui/command-registry.test.ts +12 -0
- package/src/tui/command-registry.ts +10 -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/__tests__/advanced-settings-lifecycle.tsx +81 -93
- package/src/tui/components/commands/advanced-settings.test.ts +7 -1
- package/src/tui/components/commands/advanced-settings.tsx +143 -172
- 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 +121 -42
- package/src/tui/components/operator-dashboard/logic.test.ts +39 -3
- package/src/tui/components/operator-dashboard/logic.ts +14 -3
- package/src/tui/context/agent.tsx +32 -79
- package/src/tui/context/route.tsx +1 -0
- package/src/tui/index.tsx +1 -0
- package/build/agent-jhekpern.js +0 -13
- package/build/agent-vybw255f.js +0 -13
- package/build/blackboxAgent-2mwvaajb.js +0 -13
- package/build/cli-g06s7edq.js +0 -11
- package/build/offesecAgent-kk62tf60.js +0 -22
- package/build/pentest-4jgznn7h.js +0 -22
- package/build/recordedRunClient-w34kcch1.js +0 -11
- package/build/threatModel-48y5qjze.js +0 -21
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent2,
|
|
3
3
|
buildPentestSystemPrompt2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-4qbbnn6z.js";
|
|
5
|
+
import"./cli-3baw38jr.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
7
|
+
import"./cli-z9vvm3j3.js";
|
|
8
|
+
import"./cli-vre3pncf.js";
|
|
9
|
+
import"./cli-n4vfz69h.js";
|
|
10
|
+
import"./cli-cb7f2wcw.js";
|
|
10
11
|
import"./cli-c2k4xxaw.js";
|
|
11
|
-
import"./cli-
|
|
12
|
+
import"./cli-9nk97s94.js";
|
|
12
13
|
export {
|
|
13
14
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
14
15
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
1
|
+
import"./cli-vre3pncf.js";
|
|
2
|
+
import"./cli-9nk97s94.js";
|
|
3
|
+
import"./cli-cb7f2wcw.js";
|
|
4
|
+
import"./cli-z9vvm3j3.js";
|
|
4
5
|
import {
|
|
5
6
|
AgentRuntime,
|
|
6
7
|
defineAgent
|
|
7
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-3baw38jr.js";
|
|
8
9
|
import"./cli-qba2x69h.js";
|
|
9
10
|
import {
|
|
10
11
|
stepCountIs2,
|
|
11
12
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-n4vfz69h.js";
|
|
13
14
|
import"./cli-c2k4xxaw.js";
|
|
14
15
|
import {
|
|
15
16
|
init_zod
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-bnegz51z.js";
|
|
4
|
+
import"./cli-3baw38jr.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-z9vvm3j3.js";
|
|
7
|
+
import"./cli-vre3pncf.js";
|
|
8
|
+
import"./cli-n4vfz69h.js";
|
|
9
|
+
import"./cli-cb7f2wcw.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-9nk97s94.js";
|
|
12
|
+
export {
|
|
13
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
14
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-9nk97s94.js";
|
|
5
|
+
import"./cli-cb7f2wcw.js";
|
|
6
|
+
import"./cli-z9vvm3j3.js";
|
|
6
7
|
import {
|
|
7
8
|
AgentEventBus
|
|
8
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-vre3pncf.js";
|
|
9
10
|
import {
|
|
10
11
|
inspectSessionEvidence2,
|
|
11
12
|
RecordedRunSpecSchema,
|
|
@@ -16,29 +17,31 @@ import {
|
|
|
16
17
|
runRecordedAgent2,
|
|
17
18
|
RunRecoveryBlockedError2,
|
|
18
19
|
resumeRecordedAgent2
|
|
19
|
-
} from "./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
20
|
+
} from "./cli-za8brr9s.js";
|
|
21
|
+
import"./cli-egs0t450.js";
|
|
22
|
+
import"./cli-8jmv4k35.js";
|
|
23
|
+
import"./cli-8bkc7zc0.js";
|
|
24
|
+
import"./cli-nc5thq90.js";
|
|
25
|
+
import"./cli-bnegz51z.js";
|
|
26
|
+
import"./cli-4qbbnn6z.js";
|
|
27
|
+
import"./cli-n3e3vjwf.js";
|
|
28
|
+
import"./cli-xxe3p6qp.js";
|
|
27
29
|
import"./cli-xcy2vxj2.js";
|
|
28
30
|
import {
|
|
29
31
|
resolveWorkerExecutable,
|
|
30
32
|
launchLocalWorker
|
|
31
|
-
} from "./cli-
|
|
32
|
-
import"./cli-
|
|
33
|
+
} from "./cli-3gep10fn.js";
|
|
34
|
+
import"./cli-3ncpc0a4.js";
|
|
35
|
+
import"./cli-3baw38jr.js";
|
|
33
36
|
import"./cli-qba2x69h.js";
|
|
34
37
|
import {
|
|
35
38
|
buildAuthConfig,
|
|
36
|
-
|
|
37
|
-
} from "./cli-
|
|
39
|
+
init_ai2
|
|
40
|
+
} from "./cli-n4vfz69h.js";
|
|
38
41
|
import"./cli-c2k4xxaw.js";
|
|
39
42
|
|
|
40
43
|
// src/cli/agent-runs.ts
|
|
41
|
-
|
|
44
|
+
init_ai2();
|
|
42
45
|
import { once } from "node:events";
|
|
43
46
|
import { readFile } from "node:fs/promises";
|
|
44
47
|
import { isAbsolute, resolve } from "node:path";
|
|
@@ -115,7 +118,7 @@ async function runAgentRunsCommand(args) {
|
|
|
115
118
|
if (!isAbsolute(values.store)) {
|
|
116
119
|
throw new Error("agent-runs worker requires --store <absolute database>");
|
|
117
120
|
}
|
|
118
|
-
const { serveLocalRunWorker } = await import("./index-
|
|
121
|
+
const { serveLocalRunWorker } = await import("./index-2wr0xgt8.js");
|
|
119
122
|
await serveLocalRunWorker({
|
|
120
123
|
runId: values.run,
|
|
121
124
|
databasePath: resolve(values.store)
|
|
@@ -129,7 +132,7 @@ async function runAgentRunsCommand(args) {
|
|
|
129
132
|
${HELP}`);
|
|
130
133
|
}
|
|
131
134
|
if (command === "attach") {
|
|
132
|
-
const { openRecordedRunClient } = await import("./recordedRunClient-
|
|
135
|
+
const { openRecordedRunClient } = await import("./recordedRunClient-n83gzjck.js");
|
|
133
136
|
const client = await openRecordedRunClient(values.store);
|
|
134
137
|
const controller = new AbortController;
|
|
135
138
|
const detach = () => controller.abort();
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-8jmv4k35.js";
|
|
4
|
+
import"./cli-3baw38jr.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-z9vvm3j3.js";
|
|
7
|
+
import"./cli-vre3pncf.js";
|
|
8
|
+
import"./cli-n4vfz69h.js";
|
|
9
|
+
import"./cli-cb7f2wcw.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-9nk97s94.js";
|
|
12
|
+
export {
|
|
13
|
+
CodeAgent2 as CodeAgent
|
|
14
|
+
};
|
|
@@ -15,24 +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-
|
|
18
|
+
} from "./cli-z9vvm3j3.js";
|
|
19
|
+
import"./cli-vre3pncf.js";
|
|
20
|
+
import"./cli-9nk97s94.js";
|
|
21
|
+
import"./cli-cb7f2wcw.js";
|
|
22
|
+
import"./cli-za8brr9s.js";
|
|
23
|
+
import"./cli-egs0t450.js";
|
|
24
|
+
import"./cli-8jmv4k35.js";
|
|
25
|
+
import"./cli-8bkc7zc0.js";
|
|
26
|
+
import"./cli-nc5thq90.js";
|
|
27
|
+
import"./cli-bnegz51z.js";
|
|
28
|
+
import"./cli-4qbbnn6z.js";
|
|
29
|
+
import"./cli-n3e3vjwf.js";
|
|
30
|
+
import"./cli-xxe3p6qp.js";
|
|
29
31
|
import"./cli-xcy2vxj2.js";
|
|
30
32
|
import {
|
|
31
33
|
markCommandFailed
|
|
32
34
|
} from "./cli-z82n3qk1.js";
|
|
33
|
-
import"./cli-
|
|
35
|
+
import"./cli-3ncpc0a4.js";
|
|
36
|
+
import"./cli-3baw38jr.js";
|
|
34
37
|
import"./cli-qba2x69h.js";
|
|
35
|
-
import"./cli-
|
|
38
|
+
import"./cli-n4vfz69h.js";
|
|
36
39
|
import"./cli-c2k4xxaw.js";
|
|
37
40
|
|
|
38
41
|
// src/cli/apps.ts
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
2
|
+
import"./cli-z9vvm3j3.js";
|
|
3
|
+
import"./cli-vre3pncf.js";
|
|
3
4
|
import {
|
|
4
5
|
config2,
|
|
5
6
|
init_config
|
|
6
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-9nk97s94.js";
|
|
7
8
|
import {
|
|
8
9
|
getPensarApiUrl2,
|
|
9
10
|
getPensarConsoleUrl2,
|
|
@@ -19,22 +20,24 @@ import {
|
|
|
19
20
|
createWorkspaceSelection2,
|
|
20
21
|
pollWorkspaceSelection2,
|
|
21
22
|
init_auth
|
|
22
|
-
} from "./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-
|
|
23
|
+
} from "./cli-cb7f2wcw.js";
|
|
24
|
+
import"./cli-za8brr9s.js";
|
|
25
|
+
import"./cli-egs0t450.js";
|
|
26
|
+
import"./cli-8jmv4k35.js";
|
|
27
|
+
import"./cli-8bkc7zc0.js";
|
|
28
|
+
import"./cli-nc5thq90.js";
|
|
29
|
+
import"./cli-bnegz51z.js";
|
|
30
|
+
import"./cli-4qbbnn6z.js";
|
|
31
|
+
import"./cli-n3e3vjwf.js";
|
|
32
|
+
import"./cli-xxe3p6qp.js";
|
|
31
33
|
import"./cli-xcy2vxj2.js";
|
|
32
34
|
import {
|
|
33
35
|
markCommandFailed
|
|
34
36
|
} from "./cli-z82n3qk1.js";
|
|
35
|
-
import"./cli-
|
|
37
|
+
import"./cli-3ncpc0a4.js";
|
|
38
|
+
import"./cli-3baw38jr.js";
|
|
36
39
|
import"./cli-qba2x69h.js";
|
|
37
|
-
import"./cli-
|
|
40
|
+
import"./cli-n4vfz69h.js";
|
|
38
41
|
import"./cli-c2k4xxaw.js";
|
|
39
42
|
import {
|
|
40
43
|
__require
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent2
|
|
3
|
+
} from "./cli-egs0t450.js";
|
|
4
|
+
import"./cli-3baw38jr.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-z9vvm3j3.js";
|
|
7
|
+
import"./cli-vre3pncf.js";
|
|
8
|
+
import"./cli-n4vfz69h.js";
|
|
9
|
+
import"./cli-cb7f2wcw.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-9nk97s94.js";
|
|
12
|
+
export {
|
|
13
|
+
BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
|
|
14
|
+
};
|
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
1
|
+
import"./cli-9nk97s94.js";
|
|
2
|
+
import"./cli-cb7f2wcw.js";
|
|
3
|
+
import"./cli-vre3pncf.js";
|
|
4
|
+
import"./cli-z9vvm3j3.js";
|
|
5
|
+
import"./cli-egs0t450.js";
|
|
6
|
+
import"./cli-4qbbnn6z.js";
|
|
7
|
+
import"./cli-n3e3vjwf.js";
|
|
7
8
|
import {
|
|
8
9
|
readExecutionMetrics,
|
|
9
10
|
writeExecutionMetrics,
|
|
10
11
|
runPentestWorkflow2
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
13
|
-
import"./cli-
|
|
12
|
+
} from "./cli-nc5thq90.js";
|
|
13
|
+
import"./cli-8jmv4k35.js";
|
|
14
|
+
import"./cli-8bkc7zc0.js";
|
|
14
15
|
import {
|
|
15
16
|
EMPTY_SESSION_TOKEN_USAGE,
|
|
16
17
|
accumulateSessionTokens
|
|
17
18
|
} from "./cli-ag6jtndp.js";
|
|
18
|
-
import"./cli-
|
|
19
|
+
import"./cli-3baw38jr.js";
|
|
19
20
|
import"./cli-qba2x69h.js";
|
|
20
21
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./cli-
|
|
22
|
+
normalizeStepUsage,
|
|
23
|
+
init_ai2
|
|
24
|
+
} from "./cli-n4vfz69h.js";
|
|
24
25
|
import"./cli-c2k4xxaw.js";
|
|
25
26
|
|
|
26
27
|
// src/core/api/blackboxPentest.ts
|
|
27
|
-
|
|
28
|
+
init_ai2();
|
|
28
29
|
async function runPentestAgent(input) {
|
|
29
30
|
const persisted = readExecutionMetrics(input.session.rootPath)?.tokenUsage;
|
|
30
31
|
let tokenUsage = persisted ?? EMPTY_SESSION_TOKEN_USAGE;
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./cli-h6y3bt60.js";
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
|
-
var version = "2.7.0-canary.
|
|
6
|
+
var version = "2.7.0-canary.65ea630f", package_default;
|
|
7
7
|
var init_package = __esm(() => {
|
|
8
8
|
package_default = {
|
|
9
9
|
author: "Pensar",
|
|
@@ -336,6 +336,7 @@ var init_package = __esm(() => {
|
|
|
336
336
|
"format:check": 'biome check && prettier --check "**/*.{md,yml,yaml}"',
|
|
337
337
|
"generate:ascii": "bun run scripts/generate-ascii-art.ts",
|
|
338
338
|
"generate:models": "bun run scripts/generate-models.ts",
|
|
339
|
+
"generate:reasoning": "bun run scripts/sync-reasoning-capabilities.ts",
|
|
339
340
|
knip: "knip",
|
|
340
341
|
lint: "biome lint src/",
|
|
341
342
|
"lint:fix": "biome lint --write src/",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OffensiveSecurityAgent
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-z9vvm3j3.js";
|
|
4
4
|
|
|
5
5
|
// src/core/agents/agentRuntime.ts
|
|
6
6
|
function assembleAgentHooks(opts) {
|
|
7
7
|
return {
|
|
8
8
|
findingPolicy: opts.findingPolicy,
|
|
9
|
+
toolExecutionContext: opts.toolExecutionContext,
|
|
9
10
|
backends: opts.backends,
|
|
10
11
|
subagentSpawner: opts.subagentSpawner,
|
|
11
12
|
languageModelMiddleware: opts.languageModelMiddleware,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OffensiveSecurityAgent
|
|
3
|
+
} from "./cli-z9vvm3j3.js";
|
|
4
|
+
import {
|
|
5
|
+
startAgentExecution,
|
|
6
|
+
resolveRootReasoning,
|
|
7
|
+
persistRootReasoningOverride
|
|
8
|
+
} from "./cli-xxe3p6qp.js";
|
|
9
|
+
|
|
10
|
+
// src/core/api/offesecAgent.ts
|
|
11
|
+
async function runOffensiveSecurityAgent2(input) {
|
|
12
|
+
const resolved = resolveRootReasoning(input);
|
|
13
|
+
const persisted = persistRootReasoningOverride(input);
|
|
14
|
+
input = persisted ? { ...resolved, session: await persisted } : resolved;
|
|
15
|
+
const agent = input.session ? new OffensiveSecurityAgent(input) : await OffensiveSecurityAgent.create(input);
|
|
16
|
+
input.onSessionReady?.(agent.session);
|
|
17
|
+
await startAgentExecution(agent).result;
|
|
18
|
+
return {
|
|
19
|
+
streamResult: agent.streamResult,
|
|
20
|
+
session: agent.session,
|
|
21
|
+
...agent.lanceRuntime ? { lance: agent.lanceRuntime.metrics(input.model) } : {}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function createOffensiveSecurityAgentClient2() {
|
|
25
|
+
const controller = new AbortController;
|
|
26
|
+
let started = false;
|
|
27
|
+
return {
|
|
28
|
+
run(input) {
|
|
29
|
+
if (started) {
|
|
30
|
+
throw new Error("Offensive security agent client already started a run — create a new client per run");
|
|
31
|
+
}
|
|
32
|
+
started = true;
|
|
33
|
+
return runOffensiveSecurityAgent2({
|
|
34
|
+
...input,
|
|
35
|
+
abortSignal: controller.signal
|
|
36
|
+
});
|
|
37
|
+
},
|
|
38
|
+
abort() {
|
|
39
|
+
controller.abort();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// src/core/api/lance.ts
|
|
45
|
+
async function runLance(input) {
|
|
46
|
+
const result = await runOffensiveSecurityAgent2({
|
|
47
|
+
...input,
|
|
48
|
+
mode: "lance",
|
|
49
|
+
activeTools: []
|
|
50
|
+
});
|
|
51
|
+
return { session: result.session, result: result.lance };
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { runOffensiveSecurityAgent2, createOffensiveSecurityAgentClient2, runLance };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
collectCommand,
|
|
3
|
-
windowsProgramInvocation,
|
|
4
|
-
SANDBOX_ARTIFACTS_ROOT,
|
|
5
2
|
isMemoryEnabled,
|
|
6
3
|
readPlan,
|
|
4
|
+
collectCommand,
|
|
5
|
+
windowsProgramInvocation,
|
|
6
|
+
sandboxArtifactsRoot,
|
|
7
7
|
REPORT_ERROR_TOOL_NAME,
|
|
8
8
|
createReportErrorTool,
|
|
9
9
|
PentestReportedError
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-z9vvm3j3.js";
|
|
11
11
|
import {
|
|
12
12
|
GOOGLE_SIGNIN_PROMPT_GUIDANCE,
|
|
13
13
|
browserEngineForGoogleSignIn
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
AgentRuntime,
|
|
20
20
|
defineAgent
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-3baw38jr.js";
|
|
22
22
|
import {
|
|
23
23
|
hasToolCall,
|
|
24
24
|
init_dist,
|
|
25
|
-
scopedLogger,
|
|
26
|
-
init_lazyLogger,
|
|
27
25
|
createLogger,
|
|
28
|
-
init_structured
|
|
29
|
-
|
|
26
|
+
init_structured,
|
|
27
|
+
scopedLogger,
|
|
28
|
+
init_lazyLogger
|
|
29
|
+
} from "./cli-n4vfz69h.js";
|
|
30
30
|
import {
|
|
31
31
|
init_zod
|
|
32
32
|
} from "./cli-3qznjsnr.js";
|
|
@@ -154,12 +154,12 @@ var targetedPentestWorker = defineAgent({
|
|
|
154
154
|
} catch {}
|
|
155
155
|
}
|
|
156
156
|
const sandboxed = opts.backends?.sandboxed === true;
|
|
157
|
-
const findingsPath = sandboxed ? `${
|
|
157
|
+
const findingsPath = sandboxed ? `${sandboxArtifactsRoot(opts.session)}/findings` : opts.session.findingsPath;
|
|
158
158
|
const findings = opts.findingPolicy === "external" ? [] : sandboxed && opts.backends ? await loadSandboxFindings(opts.backends, findingsPath, opts.abortSignal) : loadFindings(findingsPath);
|
|
159
159
|
return {
|
|
160
160
|
findings,
|
|
161
161
|
findingsPath,
|
|
162
|
-
pocsPath: sandboxed ? `${
|
|
162
|
+
pocsPath: sandboxed ? `${sandboxArtifactsRoot(opts.session)}/pocs` : opts.session.pocsPath,
|
|
163
163
|
objectiveResults,
|
|
164
164
|
newObjectives,
|
|
165
165
|
reportedFindings
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EndpointTransportEnum,
|
|
3
3
|
GrpcEndpointMetadataSchema
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-z9vvm3j3.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRuntime,
|
|
7
7
|
defineAgent
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-3baw38jr.js";
|
|
9
9
|
import {
|
|
10
10
|
stepCountIs2,
|
|
11
11
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-n4vfz69h.js";
|
|
13
13
|
import {
|
|
14
14
|
tool
|
|
15
15
|
} from "./cli-pwm29ks7.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentRuntime,
|
|
3
3
|
defineAgent
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-3baw38jr.js";
|
|
5
5
|
import {
|
|
6
6
|
stepCountIs2,
|
|
7
7
|
init_dist
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-n4vfz69h.js";
|
|
9
9
|
|
|
10
10
|
// src/core/agents/specialized/codeAgent/agent.ts
|
|
11
11
|
init_dist();
|
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
AgentRuntime,
|
|
10
10
|
defineAgent
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-3baw38jr.js";
|
|
12
12
|
import {
|
|
13
13
|
hasToolCall,
|
|
14
14
|
init_dist,
|
|
15
|
-
scopedLogger,
|
|
16
|
-
init_lazyLogger,
|
|
17
15
|
createLogger,
|
|
18
|
-
init_structured
|
|
19
|
-
|
|
16
|
+
init_structured,
|
|
17
|
+
scopedLogger,
|
|
18
|
+
init_lazyLogger
|
|
19
|
+
} from "./cli-n4vfz69h.js";
|
|
20
20
|
|
|
21
21
|
// src/core/agents/specialized/authenticationAgent/agent.ts
|
|
22
22
|
init_dist();
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
AgentRuntime,
|
|
6
6
|
defineAgent
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-3baw38jr.js";
|
|
8
8
|
import {
|
|
9
9
|
stepCountIs2,
|
|
10
10
|
hasToolCall,
|
|
11
11
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-n4vfz69h.js";
|
|
13
13
|
|
|
14
14
|
// src/core/agents/specialized/attackSurface/blackboxAgent.ts
|
|
15
15
|
init_dist();
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
openSqliteRunStore,
|
|
5
5
|
resolveWorkerEndpoint,
|
|
6
6
|
workerRequest
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-za8brr9s.js";
|
|
8
8
|
import {
|
|
9
9
|
launchLocalWorker
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-3gep10fn.js";
|
|
11
11
|
|
|
12
12
|
// src/core/runtime/recordedRunClient.ts
|
|
13
13
|
import { setTimeout as delay } from "node:timers/promises";
|