@pensar/apex 2.7.0-canary.21cb83dc → 2.7.0-canary.2245acbd
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-2mbyqr0n.js} +7 -6
- package/build/agent-88cxq4rw.js +14 -0
- package/build/agent-bp0s9m26.js +14 -0
- package/build/{agent-qvreg8a4.js → agent-fr60kr30.js} +6 -5
- package/build/{agent-runs-30dvbvmm.js → agent-runs-v77njejp.js} +21 -18
- package/build/{apps-na0y0992.js → apps-ya5a3z9z.js} +16 -13
- package/build/{auth-dz2c5thx.js → auth-adj5k5rp.js} +16 -13
- package/build/blackboxAgent-gsv15wd5.js +14 -0
- package/build/{blackboxPentest-s2mfze9p.js → blackboxPentest-4q3aay6e.js} +15 -14
- package/build/{cli-zbbtr4sb.js → cli-278wp1w5.js} +11 -6
- package/build/{cli-5ab346kd.js → cli-338p1kjj.js} +31 -60
- package/build/{cli-z7ysyrr4.js → cli-3jjwy74s.js} +1 -1
- package/build/cli-47fpwa1j.js +1193 -0
- package/build/{cli-a6x4jm5a.js → cli-5yjwhpkw.js} +37107 -36621
- package/build/{cli-cfrdr25z.js → cli-6x5mwvq9.js} +4 -4
- package/build/{cli-t4q4t4dx.js → cli-b9c9kgge.js} +1598 -2328
- package/build/{cli-fdrrbb9p.js → cli-c819gbky.js} +3 -3
- package/build/{cli-w9nw2a4z.js → cli-dqpdgmfm.js} +2 -1
- package/build/{cli-vdd1s3x9.js → cli-eb2jzax2.js} +11 -11
- package/build/{cli-vn4cwac3.js → cli-ekv21ejw.js} +1 -1
- package/build/{cli-72y76bpg.js → cli-f967pp1y.js} +2 -1
- package/build/cli-gv1v3myg.js +36 -0
- package/build/{cli-t09zj814.js → cli-hjqs6983.js} +13 -49
- package/build/{cli-9pz9wjt2.js → cli-j5cx4cbe.js} +114 -81
- package/build/cli-ny923ch6.js +54 -0
- package/build/{cli-563yntrb.js → cli-q111mpr0.js} +2 -2
- package/build/{cli-98wmmphf.js → cli-qr6mnr22.js} +1 -1
- package/build/{cli-9jscnhtg.js → cli-rnf3zcrx.js} +1 -1
- package/build/{cli-9kk9tm58.js → cli-sq894ffd.js} +5 -5
- package/build/{cli-1pmfnz1a.js → cli-yxp55r84.js} +2 -2
- package/build/cli.js +137 -48
- package/build/{config-nkzm9arw.js → config-sb8v39j3.js} +1 -1
- package/build/{fastStrike-16jw1s61.js → fastStrike-tf2z2yk7.js} +12 -7
- package/build/{fixes-6wxk22v5.js → fixes-x02qse8p.js} +16 -13
- package/build/{index-gfq1rp1q.js → index-1267w9xp.js} +1 -1
- package/build/{index-j9pxgrzd.js → index-27apajv1.js} +35 -9
- package/build/{index-6nejymsc.js → index-3pwk8qdm.js} +1 -1
- package/build/{index-n9kapn1x.js → index-6vq25f67.js} +5 -4
- package/build/{index-tr6evhyg.js → index-7w4n9kkk.js} +11 -7
- package/build/{index-bt4r13q7.js → index-k2kgmegh.js} +19 -15
- package/build/{index-asm4y7e4.js → index-ma0r90mp.js} +2 -2
- package/build/{index-36p56pcf.js → index-wrrkabq4.js} +335 -334
- package/build/{index-bfmn52za.js → index-x2jn2s7c.js} +7 -6
- package/build/{issues-7rmf4ker.js → issues-ae8xns2h.js} +16 -13
- package/build/{knowledge-s2sxh8nb.js → knowledge-24q0edfr.js} +16 -13
- package/build/lance-cy2351aa.js +232 -0
- package/build/lib/{chunk-rfyjqybp.js → chunk-2r3wkxtf.js} +5 -1
- package/build/lib/{chunk-d05cvnv8.js → chunk-2rz4pxbd.js} +14 -13
- package/build/lib/{chunk-j9668h16.js → chunk-2v0bwpfd.js} +1 -1
- package/build/lib/{chunk-f3sq4896.js → chunk-3btmke6e.js} +1 -1
- package/build/lib/{chunk-77se1d35.js → chunk-58veqf1b.js} +49 -33
- package/build/lib/{chunk-mpvjfvz0.js → chunk-6a122h2k.js} +77 -50
- package/build/lib/{chunk-z8kej0sp.js → chunk-6bth5b5g.js} +16 -12
- package/build/lib/{chunk-161ak2am.js → chunk-6nz3qvgt.js} +1 -1
- package/build/lib/{chunk-3hjvdf67.js → chunk-74v1j9fv.js} +1 -1
- package/build/lib/{chunk-hys7nemr.js → chunk-7jxt4mws.js} +743 -47
- package/build/lib/{chunk-gm3b9j4y.js → chunk-9b34e1xv.js} +7 -7
- package/build/lib/{chunk-m4swxy5r.js → chunk-9d4cpkfp.js} +46 -2
- package/build/lib/{chunk-kcw4cpr3.js → chunk-c8fsyvgk.js} +768 -351
- package/build/lib/{chunk-0dnx79b1.js → chunk-cw04smka.js} +5 -1
- package/build/lib/{chunk-5j8pp0xf.js → chunk-gehwsvr1.js} +1 -1
- package/build/lib/{chunk-2njv7wz3.js → chunk-hbyxyxdc.js} +4 -0
- package/build/lib/{chunk-mbsde9d0.js → chunk-he6bt99t.js} +2 -2
- package/build/lib/chunk-jsr01spp.js +112 -0
- package/build/lib/{chunk-ydxhkgjw.js → chunk-r05a8em0.js} +2 -1
- package/build/lib/{chunk-aq9eyxas.js → chunk-rcswnhfx.js} +24 -12
- package/build/lib/{chunk-8njjwwcw.js → chunk-s4yh1x0q.js} +9 -3
- package/build/lib/{chunk-7tft4b8b.js → chunk-s8cwj99j.js} +1 -1
- package/build/lib/{chunk-7gjdygcx.js → chunk-vwr9w3ab.js} +2 -0
- package/build/lib/{chunk-vsnwzne5.js → chunk-wt3ypta3.js} +1 -1
- package/build/lib/{chunk-qkz5sm0d.js → chunk-y8zz7bjs.js} +230 -395
- package/build/lib/{chunk-1rqbhx4b.js → chunk-ybs8vnqn.js} +91 -71
- package/build/lib/{chunk-fasqtjq1.js → chunk-zfvzh2sv.js} +12 -48
- package/build/lib/{chunk-fy3bbbqy.js → chunk-zxrbrrce.js} +595 -97
- 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 +16 -15
- 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 +11 -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/browserHeaderRouting.d.ts +2 -0
- package/build/lib/core/agents/offSecAgent/tools/getPage.d.ts +1 -2
- package/build/lib/core/agents/offSecAgent/tools/index.js +13 -8
- package/build/lib/core/agents/offSecAgent/tools/scopeGuard.d.ts +7 -18
- package/build/lib/core/agents/offSecAgent/tools/types.d.ts +5 -3
- package/build/lib/core/agents/offSecAgent/tools/webSearch.d.ts +8 -0
- 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 +14 -13
- package/build/lib/core/agents/specialized/attackSurface/prompts.d.ts +1 -1
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +13 -12
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +15 -14
- package/build/lib/core/agents/specialized/codeAgent/agent.js +14 -13
- package/build/lib/core/agents/specialized/cvssScorer/index.d.ts +2 -1
- package/build/lib/core/agents/specialized/findingJudge/agent.js +12 -11
- package/build/lib/core/agents/specialized/findingJudge/index.d.ts +2 -1
- package/build/lib/core/agents/specialized/findingJudge/index.js +5 -4
- package/build/lib/core/agents/specialized/patching/index.js +15 -14
- package/build/lib/core/agents/specialized/pentest/agent.js +14 -13
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.d.ts +2 -1
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +14 -13
- package/build/lib/core/ai/ai.d.ts +17 -75
- package/build/lib/core/ai/ai.js +6 -3
- package/build/lib/core/ai/index.d.ts +1 -0
- package/build/lib/core/ai/index.js +17 -4
- package/build/lib/core/ai/reasoning.d.ts +44 -0
- package/build/lib/core/ai/utils.js +4 -3
- package/build/lib/core/api/index.d.ts +3 -0
- package/build/lib/core/api/index.js +32 -24
- 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 +15 -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 +5 -4
- package/build/lib/core/http/researchFetchToken.d.ts +2 -0
- package/build/lib/core/http/targetHeaders.d.ts +2 -0
- package/build/lib/core/http/targetScope.d.ts +3 -0
- 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 +7 -4
- package/build/lib/core/session/persistence.js +5 -4
- package/build/lib/core/tools/backends/index.js +3 -1
- package/build/lib/core/tools/backends/resolve.d.ts +1 -0
- package/build/lib/core/tools/backends/types.d.ts +2 -0
- package/build/lib/core/workflows/pentest.d.ts +4 -1
- package/build/lib/core/workflows/pentest.js +20 -19
- package/build/lib/core/workflows/seams.js +6 -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 +16 -15
- package/build/lib/index.js +26 -25
- package/build/{logs-70fyr848.js → logs-bnw04wqp.js} +16 -13
- package/build/{native-rollout-evidence-ntensvzb.js → native-rollout-evidence-80vy8403.js} +5 -5
- package/build/offesecAgent-9m683nv4.js +32 -0
- package/build/pentest-pkr2hfgp.js +23 -0
- package/build/{pentests-3e41hj08.js → pentests-2ap08b1a.js} +16 -13
- package/build/recordedRunClient-y4khnzh2.js +11 -0
- package/build/subagentSpawner-w0ys1ym6.js +12 -0
- package/build/{targetedPentest-t9snxcj2.js → targetedPentest-myj6mwb1.js} +35 -8
- package/build/{targets-1pyf21c7.js → targets-g9w2v2xc.js} +16 -13
- package/build/threatModel-r6cm2z8v.js +24 -0
- package/build/{uninstall-fbydd9t6.js → uninstall-6swmh7zn.js} +1 -1
- package/build/{upload-sbhwe2fq.js → upload-f1cqhdpb.js} +4 -4
- package/build/{utils-23903gcj.js → utils-xq1bbxd1.js} +5 -5
- package/package.json +2 -1
- package/src/cli/agent-runs.test.ts +1 -4
- package/src/cli/issues.test.ts +17 -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.test.ts +5 -1
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +174 -10
- package/src/core/agents/offSecAgent/prompt.ts +1 -1
- package/src/core/agents/offSecAgent/recordedTools.test.ts +5 -1
- package/src/core/agents/offSecAgent/selectiveConstruction.test.ts +5 -1
- 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/browserHeaderRouting.redirect.test.ts +141 -0
- package/src/core/agents/offSecAgent/tools/browserHeaderRouting.test.ts +106 -8
- package/src/core/agents/offSecAgent/tools/browserHeaderRouting.ts +56 -16
- package/src/core/agents/offSecAgent/tools/delegateAuth.ts +7 -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/executeCommand.test.ts +2 -1
- package/src/core/agents/offSecAgent/tools/getPage.test.ts +120 -0
- package/src/core/agents/offSecAgent/tools/getPage.ts +24 -19
- package/src/core/agents/offSecAgent/tools/httpBackends.test.ts +18 -25
- package/src/core/agents/offSecAgent/tools/httpRequest.test.ts +54 -0
- package/src/core/agents/offSecAgent/tools/playwrightMcp.test.ts +5 -0
- package/src/core/agents/offSecAgent/tools/playwrightMcp.ts +5 -2
- 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/sandboxPlaywright.test.ts +47 -0
- package/src/core/agents/offSecAgent/tools/sandboxPlaywright.ts +65 -2
- package/src/core/agents/offSecAgent/tools/scopeGuard.test.ts +121 -52
- package/src/core/agents/offSecAgent/tools/scopeGuard.ts +50 -30
- package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +49 -67
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +11 -4
- 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/tools/webSearch.test.ts +154 -0
- package/src/core/agents/offSecAgent/tools/webSearch.ts +119 -87
- package/src/core/agents/offSecAgent/types.ts +13 -1
- package/src/core/agents/specialized/attackSurface/blackboxAgent.ts +3 -3
- package/src/core/agents/specialized/attackSurface/prompts.ts +9 -45
- 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/http/agentNetworkPolicyFixture.test.ts +39 -0
- package/src/core/http/headers.contract.test.ts +100 -2
- package/src/core/http/researchFetchToken.test.ts +50 -0
- package/src/core/http/researchFetchToken.ts +63 -0
- package/src/core/http/targetHeaders.ts +26 -8
- package/src/core/http/targetScope.ts +47 -11
- package/src/core/observability/telemetry.test.ts +129 -76
- package/src/core/observability/telemetry.ts +5 -0
- package/src/core/runtime/sqliteRecoveryStore.test.ts +24 -5
- package/src/core/runtime/sqliteRunObservation.test.ts +1 -1
- package/src/core/session/index.ts +33 -0
- package/src/core/tools/backends/local.test.ts +126 -0
- package/src/core/tools/backends/local.ts +256 -59
- package/src/core/tools/backends/policy.test.ts +36 -1
- package/src/core/tools/backends/policy.ts +9 -4
- package/src/core/tools/backends/resolve.ts +7 -0
- package/src/core/tools/backends/types.ts +2 -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/test-fixtures/agent-network-policy-v2.json +80 -0
- 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-eb2jzax2.js";
|
|
5
|
+
import"./cli-f967pp1y.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
7
|
+
import"./cli-b9c9kgge.js";
|
|
8
|
+
import"./cli-47fpwa1j.js";
|
|
9
|
+
import"./cli-5yjwhpkw.js";
|
|
10
|
+
import"./cli-rnf3zcrx.js";
|
|
10
11
|
import"./cli-c2k4xxaw.js";
|
|
11
|
-
import"./cli-
|
|
12
|
+
import"./cli-qr6mnr22.js";
|
|
12
13
|
export {
|
|
13
14
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
14
15
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-sq894ffd.js";
|
|
4
|
+
import"./cli-f967pp1y.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-b9c9kgge.js";
|
|
7
|
+
import"./cli-47fpwa1j.js";
|
|
8
|
+
import"./cli-5yjwhpkw.js";
|
|
9
|
+
import"./cli-rnf3zcrx.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-qr6mnr22.js";
|
|
12
|
+
export {
|
|
13
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
14
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-yxp55r84.js";
|
|
4
|
+
import"./cli-f967pp1y.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-b9c9kgge.js";
|
|
7
|
+
import"./cli-47fpwa1j.js";
|
|
8
|
+
import"./cli-5yjwhpkw.js";
|
|
9
|
+
import"./cli-rnf3zcrx.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-qr6mnr22.js";
|
|
12
|
+
export {
|
|
13
|
+
CodeAgent2 as CodeAgent
|
|
14
|
+
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
1
|
+
import"./cli-47fpwa1j.js";
|
|
2
|
+
import"./cli-qr6mnr22.js";
|
|
3
|
+
import"./cli-rnf3zcrx.js";
|
|
4
|
+
import"./cli-b9c9kgge.js";
|
|
4
5
|
import {
|
|
5
6
|
AgentRuntime,
|
|
6
7
|
defineAgent
|
|
7
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-f967pp1y.js";
|
|
8
9
|
import"./cli-qba2x69h.js";
|
|
9
10
|
import {
|
|
10
11
|
stepCountIs2,
|
|
11
12
|
init_dist
|
|
12
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-5yjwhpkw.js";
|
|
13
14
|
import"./cli-c2k4xxaw.js";
|
|
14
15
|
import {
|
|
15
16
|
init_zod
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-qr6mnr22.js";
|
|
5
|
+
import"./cli-rnf3zcrx.js";
|
|
6
|
+
import"./cli-b9c9kgge.js";
|
|
6
7
|
import {
|
|
7
8
|
AgentEventBus
|
|
8
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-47fpwa1j.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-338p1kjj.js";
|
|
21
|
+
import"./cli-hjqs6983.js";
|
|
22
|
+
import"./cli-yxp55r84.js";
|
|
23
|
+
import"./cli-c819gbky.js";
|
|
24
|
+
import"./cli-j5cx4cbe.js";
|
|
25
|
+
import"./cli-sq894ffd.js";
|
|
26
|
+
import"./cli-eb2jzax2.js";
|
|
27
|
+
import"./cli-3jjwy74s.js";
|
|
28
|
+
import"./cli-gv1v3myg.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-ekv21ejw.js";
|
|
34
|
+
import"./cli-ny923ch6.js";
|
|
35
|
+
import"./cli-f967pp1y.js";
|
|
33
36
|
import"./cli-qba2x69h.js";
|
|
34
37
|
import {
|
|
35
38
|
buildAuthConfig,
|
|
36
|
-
|
|
37
|
-
} from "./cli-
|
|
39
|
+
init_ai2
|
|
40
|
+
} from "./cli-5yjwhpkw.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-k2kgmegh.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-y4khnzh2.js");
|
|
133
136
|
const client = await openRecordedRunClient(values.store);
|
|
134
137
|
const controller = new AbortController;
|
|
135
138
|
const detach = () => controller.abort();
|
|
@@ -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-b9c9kgge.js";
|
|
19
|
+
import"./cli-47fpwa1j.js";
|
|
20
|
+
import"./cli-qr6mnr22.js";
|
|
21
|
+
import"./cli-rnf3zcrx.js";
|
|
22
|
+
import"./cli-338p1kjj.js";
|
|
23
|
+
import"./cli-hjqs6983.js";
|
|
24
|
+
import"./cli-yxp55r84.js";
|
|
25
|
+
import"./cli-c819gbky.js";
|
|
26
|
+
import"./cli-j5cx4cbe.js";
|
|
27
|
+
import"./cli-sq894ffd.js";
|
|
28
|
+
import"./cli-eb2jzax2.js";
|
|
29
|
+
import"./cli-3jjwy74s.js";
|
|
30
|
+
import"./cli-gv1v3myg.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-ny923ch6.js";
|
|
36
|
+
import"./cli-f967pp1y.js";
|
|
34
37
|
import"./cli-qba2x69h.js";
|
|
35
|
-
import"./cli-
|
|
38
|
+
import"./cli-5yjwhpkw.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-b9c9kgge.js";
|
|
3
|
+
import"./cli-47fpwa1j.js";
|
|
3
4
|
import {
|
|
4
5
|
config2,
|
|
5
6
|
init_config
|
|
6
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-qr6mnr22.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-rnf3zcrx.js";
|
|
24
|
+
import"./cli-338p1kjj.js";
|
|
25
|
+
import"./cli-hjqs6983.js";
|
|
26
|
+
import"./cli-yxp55r84.js";
|
|
27
|
+
import"./cli-c819gbky.js";
|
|
28
|
+
import"./cli-j5cx4cbe.js";
|
|
29
|
+
import"./cli-sq894ffd.js";
|
|
30
|
+
import"./cli-eb2jzax2.js";
|
|
31
|
+
import"./cli-3jjwy74s.js";
|
|
32
|
+
import"./cli-gv1v3myg.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-ny923ch6.js";
|
|
38
|
+
import"./cli-f967pp1y.js";
|
|
36
39
|
import"./cli-qba2x69h.js";
|
|
37
|
-
import"./cli-
|
|
40
|
+
import"./cli-5yjwhpkw.js";
|
|
38
41
|
import"./cli-c2k4xxaw.js";
|
|
39
42
|
import {
|
|
40
43
|
__require
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent2
|
|
3
|
+
} from "./cli-hjqs6983.js";
|
|
4
|
+
import"./cli-f967pp1y.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-b9c9kgge.js";
|
|
7
|
+
import"./cli-47fpwa1j.js";
|
|
8
|
+
import"./cli-5yjwhpkw.js";
|
|
9
|
+
import"./cli-rnf3zcrx.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-qr6mnr22.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-qr6mnr22.js";
|
|
2
|
+
import"./cli-rnf3zcrx.js";
|
|
3
|
+
import"./cli-47fpwa1j.js";
|
|
4
|
+
import"./cli-b9c9kgge.js";
|
|
5
|
+
import"./cli-hjqs6983.js";
|
|
6
|
+
import"./cli-eb2jzax2.js";
|
|
7
|
+
import"./cli-3jjwy74s.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-j5cx4cbe.js";
|
|
13
|
+
import"./cli-yxp55r84.js";
|
|
14
|
+
import"./cli-c819gbky.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-f967pp1y.js";
|
|
19
20
|
import"./cli-qba2x69h.js";
|
|
20
21
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./cli-
|
|
22
|
+
normalizeStepUsage,
|
|
23
|
+
init_ai2
|
|
24
|
+
} from "./cli-5yjwhpkw.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;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCurrentVersion,
|
|
3
|
+
init_installation
|
|
4
|
+
} from "./cli-dqpdgmfm.js";
|
|
1
5
|
import {
|
|
2
6
|
init_zod
|
|
3
7
|
} from "./cli-3qznjsnr.js";
|
|
@@ -12,10 +16,6 @@ import {
|
|
|
12
16
|
_enum,
|
|
13
17
|
json
|
|
14
18
|
} from "./cli-mz5pk30x.js";
|
|
15
|
-
import {
|
|
16
|
-
getCurrentVersion,
|
|
17
|
-
init_installation
|
|
18
|
-
} from "./cli-w9nw2a4z.js";
|
|
19
19
|
import {
|
|
20
20
|
__esm
|
|
21
21
|
} from "./cli-h6y3bt60.js";
|
|
@@ -92,9 +92,12 @@ var init_customProviders = __esm(() => {
|
|
|
92
92
|
name: string().trim().min(1).optional(),
|
|
93
93
|
contextLength: number().int().positive(),
|
|
94
94
|
maxOutputTokens: number().int().positive(),
|
|
95
|
-
reasoningEffort: _enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional()
|
|
95
|
+
reasoningEffort: _enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
96
|
+
supportedReasoningEfforts: array(_enum(["none", "minimal", "low", "medium", "high", "xhigh", "max"])).nonempty().optional()
|
|
96
97
|
}).refine((model) => model.maxOutputTokens < model.contextLength, {
|
|
97
98
|
message: "maxOutputTokens must be smaller than contextLength"
|
|
99
|
+
}).refine((model) => !model.supportedReasoningEfforts || !model.reasoningEffort || model.supportedReasoningEfforts.includes(model.reasoningEffort), {
|
|
100
|
+
message: "reasoningEffort must be one of supportedReasoningEfforts"
|
|
98
101
|
});
|
|
99
102
|
customProviderBaseSchema = strictObject({
|
|
100
103
|
name: string().trim().min(1).optional(),
|
|
@@ -135,7 +138,7 @@ var init_customProviders = __esm(() => {
|
|
|
135
138
|
path: ["requestBody"],
|
|
136
139
|
message: "requestBody is only supported for Chat Completions"
|
|
137
140
|
});
|
|
138
|
-
} else if (provider.models.some((model) => model.reasoningEffort)) {
|
|
141
|
+
} else if (provider.models.some((model) => model.reasoningEffort || model.supportedReasoningEfforts)) {
|
|
139
142
|
ctx.addIssue({
|
|
140
143
|
code: "custom",
|
|
141
144
|
path: ["models"],
|
|
@@ -287,6 +290,7 @@ function applyEnvFallbacks(parsedConfig) {
|
|
|
287
290
|
responsibleUseAccepted: parsedConfig.responsibleUseAccepted ?? false,
|
|
288
291
|
defaultHeaders: parsedConfig.defaultHeaders ?? DEFAULT_CONFIG.defaultHeaders,
|
|
289
292
|
strikeMode: parsedConfig.strikeMode ?? DEFAULT_CONFIG.strikeMode,
|
|
293
|
+
lanceMode: parsedConfig.lanceMode === true,
|
|
290
294
|
findingPolicy: parsedConfig.findingPolicy === "external" ? "external" : "native",
|
|
291
295
|
surfaceIntegrationEnabled: parsedConfig.surfaceIntegrationEnabled ?? parseBoolEnv(process.env.PENSAR_SURFACE_INTEGRATION),
|
|
292
296
|
version,
|
|
@@ -350,6 +354,7 @@ var init_config2 = __esm(() => {
|
|
|
350
354
|
responsibleUseAccepted: false,
|
|
351
355
|
defaultHeaders: { "User-Agent": "pensar-apex" },
|
|
352
356
|
strikeMode: false,
|
|
357
|
+
lanceMode: false,
|
|
353
358
|
findingPolicy: "native"
|
|
354
359
|
};
|
|
355
360
|
});
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
config2,
|
|
3
|
+
init_config
|
|
4
|
+
} from "./cli-qr6mnr22.js";
|
|
5
|
+
import {
|
|
6
|
+
init_constants
|
|
7
|
+
} from "./cli-rnf3zcrx.js";
|
|
1
8
|
import {
|
|
2
9
|
buildSessionWorkspaceSection,
|
|
3
10
|
buildBaseSystemPrompt,
|
|
4
11
|
ASK_USER_QUESTIONS_TOOL_NAME,
|
|
5
12
|
apiRequest,
|
|
6
13
|
ALL_TOOL_NAMES2,
|
|
7
|
-
SKILL_TOOL_NAMES2
|
|
8
|
-
|
|
9
|
-
} from "./cli-t4q4t4dx.js";
|
|
10
|
-
import {
|
|
11
|
-
config2,
|
|
12
|
-
init_config
|
|
13
|
-
} from "./cli-98wmmphf.js";
|
|
14
|
-
import {
|
|
15
|
-
init_constants
|
|
16
|
-
} from "./cli-9jscnhtg.js";
|
|
14
|
+
SKILL_TOOL_NAMES2
|
|
15
|
+
} from "./cli-b9c9kgge.js";
|
|
17
16
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./cli-
|
|
17
|
+
runOffensiveSecurityAgent2
|
|
18
|
+
} from "./cli-ny923ch6.js";
|
|
20
19
|
import {
|
|
21
20
|
defineAgent
|
|
22
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-f967pp1y.js";
|
|
23
22
|
import {
|
|
24
23
|
toolModelMessageSchema,
|
|
25
24
|
modelMessageSchema,
|
|
26
25
|
stepCountIs2,
|
|
27
26
|
hasToolCall,
|
|
28
27
|
init_dist,
|
|
29
|
-
getClaudeCapabilities,
|
|
30
|
-
AVAILABLE_MODELS,
|
|
31
|
-
getModelInfo,
|
|
32
|
-
buildAuthConfig,
|
|
33
|
-
init_ai,
|
|
34
28
|
create,
|
|
35
29
|
get,
|
|
36
30
|
sessions2,
|
|
@@ -41,8 +35,13 @@ import {
|
|
|
41
35
|
RunControlInterruption,
|
|
42
36
|
init_runControlStore,
|
|
43
37
|
RunLimitError,
|
|
44
|
-
init_runModelStore
|
|
45
|
-
|
|
38
|
+
init_runModelStore,
|
|
39
|
+
getClaudeCapabilities,
|
|
40
|
+
AVAILABLE_MODELS,
|
|
41
|
+
getModelInfo,
|
|
42
|
+
buildAuthConfig,
|
|
43
|
+
init_ai2
|
|
44
|
+
} from "./cli-5yjwhpkw.js";
|
|
46
45
|
import {
|
|
47
46
|
newSessionId,
|
|
48
47
|
isSessionId,
|
|
@@ -51,6 +50,10 @@ import {
|
|
|
51
50
|
parseInferenceAttempt,
|
|
52
51
|
runWithInferenceRecorder
|
|
53
52
|
} from "./cli-se8ae8z3.js";
|
|
53
|
+
import {
|
|
54
|
+
getCurrentVersion,
|
|
55
|
+
init_installation
|
|
56
|
+
} from "./cli-dqpdgmfm.js";
|
|
54
57
|
import {
|
|
55
58
|
init_zod
|
|
56
59
|
} from "./cli-3qznjsnr.js";
|
|
@@ -68,10 +71,6 @@ import {
|
|
|
68
71
|
literal,
|
|
69
72
|
custom
|
|
70
73
|
} from "./cli-mz5pk30x.js";
|
|
71
|
-
import {
|
|
72
|
-
getCurrentVersion,
|
|
73
|
-
init_installation
|
|
74
|
-
} from "./cli-w9nw2a4z.js";
|
|
75
74
|
import {
|
|
76
75
|
__commonJS,
|
|
77
76
|
__require
|
|
@@ -7022,7 +7021,7 @@ var require_public_api = __commonJS(function(exports) {
|
|
|
7022
7021
|
init_dist();
|
|
7023
7022
|
|
|
7024
7023
|
// src/core/api/index.ts
|
|
7025
|
-
|
|
7024
|
+
init_ai2();
|
|
7026
7025
|
|
|
7027
7026
|
// src/core/runtime/runEvidence.ts
|
|
7028
7027
|
import { createHash } from "node:crypto";
|
|
@@ -7735,7 +7734,7 @@ function createSqliteControlStore(input) {
|
|
|
7735
7734
|
|
|
7736
7735
|
// src/core/runtime/sqliteModelStore.ts
|
|
7737
7736
|
init_zod();
|
|
7738
|
-
|
|
7737
|
+
init_ai2();
|
|
7739
7738
|
init_runModelStore();
|
|
7740
7739
|
import { isDeepStrictEqual as isDeepStrictEqual2 } from "node:util";
|
|
7741
7740
|
var MODEL_STORE_SCHEMA_SQL = `
|
|
@@ -8997,7 +8996,7 @@ function loadActualFindings(sessionPath) {
|
|
|
8997
8996
|
`) : "No findings were documented.";
|
|
8998
8997
|
}
|
|
8999
8998
|
// src/core/api/blackboxPentest.ts
|
|
9000
|
-
|
|
8999
|
+
init_ai2();
|
|
9001
9000
|
|
|
9002
9001
|
// src/core/api/index.ts
|
|
9003
9002
|
init_constants();
|
|
@@ -9319,7 +9318,7 @@ async function archiveKnowledge2(id) {
|
|
|
9319
9318
|
return apiRequest("DELETE", `/knowledge/${id}`);
|
|
9320
9319
|
}
|
|
9321
9320
|
// src/core/api/localWorker.ts
|
|
9322
|
-
|
|
9321
|
+
init_ai2();
|
|
9323
9322
|
init_config();
|
|
9324
9323
|
|
|
9325
9324
|
// src/core/runtime/localRunWorker.ts
|
|
@@ -10015,7 +10014,7 @@ async function serveLocalRunWorker(options) {
|
|
|
10015
10014
|
}
|
|
10016
10015
|
|
|
10017
10016
|
// src/core/api/recordedRun.ts
|
|
10018
|
-
|
|
10017
|
+
init_ai2();
|
|
10019
10018
|
init_persistenceError();
|
|
10020
10019
|
import { realpath as realpath5, stat as stat4 } from "node:fs/promises";
|
|
10021
10020
|
|
|
@@ -10645,7 +10644,7 @@ function restoreRunContext(input) {
|
|
|
10645
10644
|
}
|
|
10646
10645
|
|
|
10647
10646
|
// src/core/runtime/runRecoveryPlan.ts
|
|
10648
|
-
|
|
10647
|
+
init_ai2();
|
|
10649
10648
|
import { createHash as createHash4 } from "node:crypto";
|
|
10650
10649
|
import { isDeepStrictEqual as isDeepStrictEqual7 } from "node:util";
|
|
10651
10650
|
var DENIED_BY_OPERATOR2 = {
|
|
@@ -11076,35 +11075,6 @@ function createRunToolRecorder(options) {
|
|
|
11076
11075
|
|
|
11077
11076
|
// src/core/api/recordedRun.ts
|
|
11078
11077
|
init_session();
|
|
11079
|
-
|
|
11080
|
-
// src/core/api/offesecAgent.ts
|
|
11081
|
-
async function runOffensiveSecurityAgent2(input) {
|
|
11082
|
-
const agent = input.session ? new OffensiveSecurityAgent(input) : await OffensiveSecurityAgent.create(input);
|
|
11083
|
-
input.onSessionReady?.(agent.session);
|
|
11084
|
-
await startAgentExecution(agent).result;
|
|
11085
|
-
return { streamResult: agent.streamResult, session: agent.session };
|
|
11086
|
-
}
|
|
11087
|
-
function createOffensiveSecurityAgentClient2() {
|
|
11088
|
-
const controller = new AbortController;
|
|
11089
|
-
let started = false;
|
|
11090
|
-
return {
|
|
11091
|
-
run(input) {
|
|
11092
|
-
if (started) {
|
|
11093
|
-
throw new Error("Offensive security agent client already started a run — create a new client per run");
|
|
11094
|
-
}
|
|
11095
|
-
started = true;
|
|
11096
|
-
return runOffensiveSecurityAgent2({
|
|
11097
|
-
...input,
|
|
11098
|
-
abortSignal: controller.signal
|
|
11099
|
-
});
|
|
11100
|
-
},
|
|
11101
|
-
abort() {
|
|
11102
|
-
controller.abort();
|
|
11103
|
-
}
|
|
11104
|
-
};
|
|
11105
|
-
}
|
|
11106
|
-
|
|
11107
|
-
// src/core/api/recordedRun.ts
|
|
11108
11078
|
var TASK_TOOL_NAMES2 = new Set(["create_task", "update_task", "list_tasks"]);
|
|
11109
11079
|
function assertCredentialsDeclared(spec, manager) {
|
|
11110
11080
|
for (const credentialId of spec.credentialRefs) {
|
|
@@ -12675,6 +12645,7 @@ Working directory: ${input.codebasePath}`;
|
|
|
12675
12645
|
system,
|
|
12676
12646
|
prompt,
|
|
12677
12647
|
model,
|
|
12648
|
+
reasoning: input.reasoning,
|
|
12678
12649
|
session,
|
|
12679
12650
|
activeTools: [...HEADLESS_TOOL_NAMES, ...SKILL_TOOL_NAMES2],
|
|
12680
12651
|
authConfig: input.authConfig,
|
|
@@ -12686,4 +12657,4 @@ Working directory: ${input.codebasePath}`;
|
|
|
12686
12657
|
return { session, outputPath: input.outputPath };
|
|
12687
12658
|
}
|
|
12688
12659
|
|
|
12689
|
-
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, updateIssue2, listIssueComments2, createIssueComment2, retestIssue2, linkPullRequest2, listIssuePullRequests2, listFixes2, getFix2, listAgentLogs2, searchAgentLogs2, listTargetLogs2, searchTargetLogs2, KNOWLEDGE_CATEGORIES2, KNOWLEDGE_STATUSES2, listKnowledge2, getKnowledge2, createKnowledge2, updateKnowledge2, archiveKnowledge2, resolveWorkerEndpoint, LocalWorkerTransportError, WorkerConnectionError, workerRequest,
|
|
12660
|
+
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, updateIssue2, listIssueComments2, createIssueComment2, retestIssue2, linkPullRequest2, listIssuePullRequests2, listFixes2, getFix2, listAgentLogs2, searchAgentLogs2, listTargetLogs2, searchTargetLogs2, KNOWLEDGE_CATEGORIES2, KNOWLEDGE_STATUSES2, listKnowledge2, getKnowledge2, createKnowledge2, updateKnowledge2, archiveKnowledge2, resolveWorkerEndpoint, LocalWorkerTransportError, WorkerConnectionError, workerRequest, runRecordedAgent2, RunRecoveryBlockedError2, resumeRecordedAgent2, serveLocalRunWorker2, buildPentestPrompt, buildThreatModelPrompt, createSkillsRegistry, runThreatModelWorkflow2 };
|