@pensar/apex 2.7.0-canary.c5791908 → 2.7.0-canary.dc4eeb73
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/README.md +13 -0
- package/build/agent-02pnejnw.js +14 -0
- package/build/{agent-x8nf3k1v.js → agent-5k6qd29v.js} +7 -7
- package/build/agent-7k53k922.js +14 -0
- package/build/{agent-q85c8mrh.js → agent-gbz5rygq.js} +6 -6
- package/build/{agent-runs-cqa7xz7d.js → agent-runs-4krbrfbz.js} +20 -20
- package/build/{apps-pxdathp4.js → apps-pfv0zdbc.js} +17 -17
- package/build/{auth-dcmykx6e.js → auth-yf8h2pcm.js} +17 -17
- package/build/blackboxAgent-zfvw66gx.js +14 -0
- package/build/{blackboxPentest-pbh960ms.js → blackboxPentest-drx2dh8q.js} +12 -12
- package/build/{cli-se8ae8z3.js → cli-0rhfexax.js} +3 -3
- package/build/{cli-ps5hmkhw.js → cli-2kxz8wct.js} +24 -13
- package/build/cli-4fkaes4s.js +1199 -0
- package/build/{cli-78pm8byz.js → cli-4mmtfeyq.js} +1 -1
- package/build/{cli-vb4den7a.js → cli-5c420jyh.js} +3 -1
- package/build/{cli-mfgsx6hc.js → cli-6kgf7d6q.js} +1 -1
- package/build/{cli-am8b7hr4.js → cli-6pa9g38w.js} +2 -2
- package/build/{cli-gsaf4jk3.js → cli-7898kznf.js} +2 -2
- package/build/{cli-jvhswf25.js → cli-91xbw8s1.js} +2 -2
- package/build/{cli-xcy2vxj2.js → cli-ak23knae.js} +1 -1
- package/build/{cli-kr28rrsa.js → cli-bxaessv4.js} +2 -2
- package/build/{cli-jpjj10xv.js → cli-c70xpef4.js} +5 -1
- package/build/{cli-pepjaeek.js → cli-cthffb4f.js} +12 -11
- package/build/{cli-40gstjf7.js → cli-d5zzvezc.js} +14 -8
- package/build/{cli-xpfw29g5.js → cli-dzs7b8qg.js} +5 -4
- package/build/{cli-m57v3wm9.js → cli-e6gwq7a9.js} +2 -2
- package/build/{cli-b8jmzd32.js → cli-h7y81bkg.js} +1 -1
- package/build/{cli-xb0pqkbk.js → cli-hr8cdrm9.js} +4 -4
- package/build/{cli-ygcbxb1m.js → cli-hrb1gb3f.js} +4 -4
- package/build/{cli-3gt761d2.js → cli-j0wfj2kw.js} +6 -0
- package/build/{cli-b3hef9fp.js → cli-k72gvna3.js} +4358 -982
- package/build/{cli-7nrpp1ks.js → cli-pthzx104.js} +1 -1
- package/build/{cli-8wkays8e.js → cli-pyrrf4ms.js} +13 -49
- package/build/{cli-v084p264.js → cli-r9kjgdr6.js} +1 -1
- package/build/{cli-6g5p7cfd.js → cli-twtnm4ms.js} +388 -260
- package/build/{cli-z41890cy.js → cli-ww29nrnd.js} +1 -1
- package/build/{cli-pwm29ks7.js → cli-ychebg4z.js} +16 -16
- package/build/cli.js +47 -42
- package/build/{config-d9mdqs9w.js → config-kyzwb0kw.js} +4 -4
- package/build/{doctor-z94afr10.js → doctor-srja68wr.js} +1 -0
- package/build/emscripten-module-kzkvkeqz.js +503 -0
- package/build/{export-trajectory-rt4tf07k.js → export-trajectory-ex317s0n.js} +1 -1
- package/build/{fastStrike-z096431v.js → fastStrike-f5h0bwrp.js} +6 -6
- package/build/ffi-pf145jhd.js +78 -0
- package/build/{fixes-9ppnsazw.js → fixes-6ew73pvs.js} +17 -17
- package/build/{index-pxhc0cbs.js → index-5yww2gt7.js} +2 -2
- package/build/{index-t8ncgcc9.js → index-ez32src5.js} +1 -1
- package/build/{index-qnyevb6q.js → index-ffe5c30s.js} +13 -13
- package/build/{index-cn1pgs79.js → index-h41d5ahy.js} +5 -4
- package/build/{index-vq0132nv.js → index-p1en670g.js} +7 -7
- package/build/{index-4gfq7kzj.js → index-q4rvvcjm.js} +9 -9
- package/build/{index-1j283k20.js → index-rzc981b7.js} +21 -17
- package/build/{index-f0v1bbhs.js → index-vymh03hj.js} +65 -26
- package/build/{index-y5t6w61g.js → index-x5ta620q.js} +1 -1
- package/build/{index-pvb4d38m.js → index-x9w3tzx7.js} +5 -5
- package/build/{issues-hnw2wt5k.js → issues-e956aq7d.js} +52 -25
- package/build/{knowledge-66kn0fwh.js → knowledge-1hat8sct.js} +17 -17
- package/build/{lance-qyph9jw1.js → lance-g8wtg17c.js} +8 -8
- package/build/lib/{chunk-10p58fqe.js → chunk-0fthn5vv.js} +8 -7
- package/build/lib/chunk-188my1pm.js +112 -0
- package/build/lib/{chunk-98gxfne9.js → chunk-2zvreyrw.js} +2 -2
- package/build/lib/{chunk-y9pm3xqv.js → chunk-3jz6jqxd.js} +1 -1
- package/build/lib/{chunk-rcneqwt6.js → chunk-3kpdgtve.js} +12 -48
- package/build/lib/{chunk-rh6fz13n.js → chunk-5veg292g.js} +2 -2
- package/build/lib/{chunk-7syrjsr5.js → chunk-75yfsj0q.js} +2 -1
- package/build/lib/{chunk-7350h8ab.js → chunk-8cbwztjg.js} +11 -11
- package/build/lib/{chunk-zntm5p3b.js → chunk-91jtnq4d.js} +33 -18
- package/build/lib/{chunk-bq643vks.js → chunk-9gkjbdzc.js} +1 -1
- package/build/lib/{chunk-pr63gfsd.js → chunk-aw579bmb.js} +1 -1
- package/build/lib/{chunk-5avnedwm.js → chunk-dhpxjgd5.js} +589 -97
- package/build/lib/{chunk-2svje0df.js → chunk-gyv3p1c4.js} +9 -3
- package/build/lib/{chunk-00jhhedd.js → chunk-hv8fgz23.js} +193 -343
- package/build/lib/{chunk-qpewr18w.js → chunk-jfekc6hy.js} +1 -1
- package/build/lib/{chunk-ptp3er5d.js → chunk-npq9ftzp.js} +4 -1
- package/build/lib/{chunk-y82jpv2x.js → chunk-p3ghsa83.js} +11 -10
- package/build/lib/{chunk-486zwtmg.js → chunk-p4pt2x7b.js} +1126 -51
- package/build/lib/{chunk-c5w6byvf.js → chunk-q7j8wy3a.js} +1 -1
- package/build/lib/{chunk-q3f1tjdx.js → chunk-qz91fj8n.js} +1 -1
- package/build/lib/{chunk-w9cs2h48.js → chunk-rcmken1g.js} +5 -5
- package/build/lib/{chunk-6vhf2dvv.js → chunk-sm1q467w.js} +1 -1
- package/build/lib/{chunk-0hqjfqxb.js → chunk-sqt67cq5.js} +137 -119
- package/build/lib/{chunk-dj7bk5xm.js → chunk-szr3nyqa.js} +10 -9
- package/build/lib/{chunk-tcdd68ax.js → chunk-xh9yr9y0.js} +5 -1
- package/build/lib/{chunk-qn9512q7.js → chunk-zdvz6e1v.js} +1 -1
- package/build/lib/core/agents/agentRuntime.d.ts +4 -0
- package/build/lib/core/agents/offSecAgent/index.js +11 -10
- package/build/lib/core/agents/offSecAgent/offensiveSecurityAgent.d.ts +1 -0
- package/build/lib/core/agents/offSecAgent/runtimeContext.d.ts +1 -0
- package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +1 -0
- package/build/lib/core/agents/offSecAgent/subagentSpawner.js +6 -5
- 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/httpRequest.d.ts +1 -1
- package/build/lib/core/agents/offSecAgent/tools/index.js +10 -9
- package/build/lib/core/agents/offSecAgent/tools/scopeGuard.d.ts +7 -18
- package/build/lib/core/agents/offSecAgent/tools/types.d.ts +2 -1
- package/build/lib/core/agents/offSecAgent/tools/webSearch.d.ts +8 -0
- package/build/lib/core/agents/offSecAgent/types.d.ts +9 -1
- package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +11 -10
- package/build/lib/core/agents/specialized/attackSurface/prompts.d.ts +1 -1
- package/build/lib/core/agents/specialized/attackSurface/schemas.js +11 -10
- package/build/lib/core/agents/specialized/authenticationAgent/index.js +12 -11
- package/build/lib/core/agents/specialized/codeAgent/agent.js +11 -10
- package/build/lib/core/agents/specialized/findingJudge/agent.js +10 -9
- package/build/lib/core/agents/specialized/findingJudge/index.d.ts +1 -1
- package/build/lib/core/agents/specialized/findingJudge/index.js +4 -3
- package/build/lib/core/agents/specialized/patching/index.js +12 -11
- package/build/lib/core/agents/specialized/pentest/agent.js +11 -10
- package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +11 -10
- package/build/lib/core/ai/ai.d.ts +5 -2
- package/build/lib/core/ai/ai.js +3 -2
- package/build/lib/core/ai/index.d.ts +2 -0
- package/build/lib/core/ai/index.js +6 -3
- package/build/lib/core/ai/modelRuntime.d.ts +10 -0
- package/build/lib/core/ai/models/inference.d.ts +2 -0
- package/build/lib/core/ai/utils.d.ts +2 -0
- package/build/lib/core/ai/utils.js +3 -2
- package/build/lib/core/api/index.d.ts +2 -2
- package/build/lib/core/api/index.js +27 -21
- package/build/lib/core/api/issues.d.ts +125 -16
- package/build/lib/core/api/targetedPentest.js +12 -11
- package/build/lib/core/code-mode/capabilityInvoker.d.ts +53 -0
- package/build/lib/core/code-mode/index.d.ts +3 -0
- package/build/lib/core/code-mode/runtime.d.ts +42 -0
- package/build/lib/core/code-mode/tools.d.ts +16 -0
- package/build/lib/core/config/config.d.ts +2 -0
- package/build/lib/core/config/index.js +1 -1
- package/build/lib/core/findings/registry.js +4 -3
- 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/providers/types.d.ts +1 -1
- package/build/lib/core/providers/utils.d.ts +1 -1
- package/build/lib/core/session/index.js +3 -2
- package/build/lib/core/session/persistence.js +4 -3
- package/build/lib/core/tools/backends/index.js +3 -1
- package/build/lib/core/tools/backends/types.d.ts +2 -0
- package/build/lib/core/workflows/pentest.js +17 -16
- package/build/lib/core/workflows/seams.js +5 -4
- package/build/lib/core/workflows/whiteboxAttackSurface.d.ts +3 -3
- package/build/lib/core/workflows/whiteboxAttackSurface.js +13 -12
- package/build/lib/index.js +24 -23
- package/build/{logs-h3rxtq6w.js → logs-r1ene0wa.js} +17 -17
- package/build/module-ES6BEMUI-6ewavg9p.js +12 -0
- package/build/{native-rollout-evidence-kt4rd2bp.js → native-rollout-evidence-ddaypcmp.js} +4 -4
- package/build/{offesecAgent-e3ea8mr6.js → offesecAgent-g95mjx3s.js} +6 -6
- package/build/pentest-341705d4.js +23 -0
- package/build/{pentests-39hy0dre.js → pentests-tj609s19.js} +17 -17
- package/build/recordedRunClient-k9pqxwvp.js +11 -0
- package/build/{subagentSpawner-2sx2edxp.js → subagentSpawner-086t0dyq.js} +4 -4
- package/build/{targetedPentest-ttafan4t.js → targetedPentest-42vx9fxg.js} +8 -8
- package/build/{targets-fzte2kq9.js → targets-yt5mgbx2.js} +17 -17
- package/build/threatModel-d8mesare.js +24 -0
- package/build/{uninstall-0m52nyc0.js → uninstall-z7mexzkf.js} +1 -1
- package/build/{upload-cnnhkzgt.js → upload-sr2fekpm.js} +4 -4
- package/build/{utils-pq6pdv6p.js → utils-3m9rnw7g.js} +8 -4
- package/package.json +3 -1
- package/src/cli/agent-runs.test.ts +1 -4
- package/src/cli/issues.test.ts +234 -12
- package/src/cli/issues.ts +49 -9
- package/src/cli.ts +1 -0
- package/src/core/agents/agentRuntime.test.ts +16 -0
- package/src/core/agents/agentRuntime.ts +8 -0
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.codeMode.test.ts +435 -0
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.runtimeContext.test.ts +1 -0
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +6 -1
- package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +94 -8
- package/src/core/agents/offSecAgent/prompt.ts +2 -2
- package/src/core/agents/offSecAgent/recordedTools.test.ts +6 -1
- package/src/core/agents/offSecAgent/runtimeContext.test.ts +19 -0
- package/src/core/agents/offSecAgent/runtimeContext.ts +9 -2
- package/src/core/agents/offSecAgent/selectiveConstruction.publicPath.test.ts +2 -0
- package/src/core/agents/offSecAgent/selectiveConstruction.test.ts +6 -1
- package/src/core/agents/offSecAgent/subagentSpawner.hooks.test.ts +3 -0
- package/src/core/agents/offSecAgent/subagentSpawner.ts +7 -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 +5 -0
- package/src/core/agents/offSecAgent/tools/documentFinding.ts +1 -0
- 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.body.test.ts +214 -0
- package/src/core/agents/offSecAgent/tools/httpRequest.test.ts +54 -0
- package/src/core/agents/offSecAgent/tools/httpRequest.ts +20 -11
- 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 +2 -0
- package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +1 -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 +1 -0
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +4 -3
- package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +1 -0
- package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +1 -0
- package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +1 -0
- package/src/core/agents/offSecAgent/tools/types.ts +2 -0
- 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 +10 -0
- 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/findingJudge/index.ts +2 -0
- package/src/core/agents/specialized/pentest/agent.ts +1 -1
- package/src/core/ai/ai.effective-tools.test.ts +27 -2
- package/src/core/ai/ai.test.ts +34 -6
- package/src/core/ai/ai.ts +22 -2
- package/src/core/ai/compactionTelemetry.test.ts +167 -5
- package/src/core/ai/index.ts +6 -0
- package/src/core/ai/inference.test.ts +292 -0
- package/src/core/ai/modelRuntime.test.ts +58 -0
- package/src/core/ai/modelRuntime.ts +63 -0
- package/src/core/ai/models/concentrate.ts +13 -0
- package/src/core/ai/models/index.ts +10 -7
- package/src/core/ai/models/inference.ts +11 -0
- package/src/core/ai/models/models.test.ts +28 -0
- package/src/core/ai/models/openai.ts +6 -0
- package/src/core/ai/providers/concentrate.ts +1 -0
- package/src/core/ai/providers/openai-models.test.ts +5 -0
- package/src/core/ai/providers/pensarResponsesStream.test.ts +117 -0
- package/src/core/ai/providers/pensarResponsesStream.ts +20 -1
- package/src/core/ai/reasoning.test.ts +4 -0
- package/src/core/ai/reasoning.ts +2 -0
- package/src/core/ai/utils.ts +47 -12
- package/src/core/api/index.ts +4 -0
- package/src/core/api/issues.test.ts +80 -6
- package/src/core/api/issues.ts +137 -16
- package/src/core/api/recordedRun.loop.test.ts +67 -0
- package/src/core/code-mode/capabilityInvoker.test.ts +424 -0
- package/src/core/code-mode/capabilityInvoker.ts +383 -0
- package/src/core/code-mode/index.ts +8 -0
- package/src/core/code-mode/runtime.setup.test.ts +157 -0
- package/src/core/code-mode/runtime.test.ts +664 -0
- package/src/core/code-mode/runtime.ts +700 -0
- package/src/core/code-mode/tools.test.ts +375 -0
- package/src/core/code-mode/tools.ts +281 -0
- package/src/core/config/config.test.ts +7 -0
- package/src/core/config/config.ts +3 -0
- package/src/core/doctor.ts +1 -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/providers/types.ts +7 -0
- package/src/core/providers/utils.ts +6 -1
- package/src/core/providers/verify.test.ts +54 -0
- package/src/core/providers/verify.ts +28 -0
- package/src/core/runtime/runRecoveryPlan.test.ts +18 -0
- package/src/core/runtime/runRecoveryPlan.ts +5 -0
- package/src/core/runtime/runTools.test.ts +2 -0
- package/src/core/runtime/runTools.ts +4 -1
- package/src/core/runtime/sqliteControlStore.test.ts +21 -0
- package/src/core/runtime/sqliteControlStore.ts +6 -1
- package/src/core/runtime/sqliteRecoveryStore.test.ts +24 -5
- 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/types.ts +2 -0
- package/src/core/workflows/whiteboxAttackSurface.test.ts +40 -0
- package/src/core/workflows/whiteboxAttackSurface.ts +9 -4
- package/src/test-fixtures/agent-network-policy-v2.json +80 -0
- package/src/tui/components/chat/input-area.tsx +1 -0
- package/src/tui/components/commands/api-key-input.tsx +2 -0
- package/src/tui/components/commands/operator-wizard.tsx +2 -0
- package/src/tui/components/commands/provider-manager.tsx +3 -0
- package/src/tui/components/model-picker/ModelPicker.tsx +1 -0
- package/src/tui/components/model-picker/__tests__/reasoning-control.tsx +41 -14
- package/src/tui/components/model-picker/model-search.test.ts +11 -0
- package/src/tui/components/model-picker/model-search.ts +1 -0
- package/src/tui/components/model-picker/reasoning-control.test.ts +8 -2
- package/build/agent-htj3ww3e.js +0 -14
- package/build/agent-km3wss0b.js +0 -14
- package/build/blackboxAgent-g18ps9hs.js +0 -14
- package/build/pentest-qx9c8wtg.js +0 -23
- package/build/recordedRunClient-gra1x1y6.js +0 -11
- package/build/threatModel-nm449g6b.js +0 -24
package/README.md
CHANGED
|
@@ -114,6 +114,19 @@ discovered model in `/models`. Headless commands accept
|
|
|
114
114
|
`--model-provider hoonify --model <catalog-model-id>`. See
|
|
115
115
|
[Hoonify setup](docs/hoonify.md) for model discovery, token budgets, and live checks.
|
|
116
116
|
|
|
117
|
+
### Inference.net
|
|
118
|
+
|
|
119
|
+
Connect **Inference.net** in `/providers` or set `INFERENCE_API_KEY`, then select
|
|
120
|
+
**DeepSeek V4.1 Flash 1017 Cyber** in `/models`. This is the only Inference.net model
|
|
121
|
+
currently available in Apex. Headless commands accept
|
|
122
|
+
`--model inference:deepseek-v4.1-flash-1017-cyber`.
|
|
123
|
+
|
|
124
|
+
Your team needs [approved model access](https://inference.net/model-access/deepseek-v4.1-flash-1017-cyber)
|
|
125
|
+
before inference will succeed; saving a valid API key does not grant model access.
|
|
126
|
+
Apex uses the provider's default reasoning behavior and the
|
|
127
|
+
[catalog](https://api.inference.net/v1/models) limits of 1,040,000 context tokens
|
|
128
|
+
and 393,216 output tokens.
|
|
129
|
+
|
|
117
130
|
### Custom inference endpoints
|
|
118
131
|
|
|
119
132
|
Bring an OpenAI-compatible endpoint and bearer token through `customProviders`
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CodeAgent2
|
|
3
|
+
} from "./cli-e6gwq7a9.js";
|
|
4
|
+
import"./cli-c70xpef4.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-k72gvna3.js";
|
|
7
|
+
import"./cli-d5zzvezc.js";
|
|
8
|
+
import"./cli-twtnm4ms.js";
|
|
9
|
+
import"./cli-ww29nrnd.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-6kgf7d6q.js";
|
|
12
|
+
export {
|
|
13
|
+
CodeAgent2 as CodeAgent
|
|
14
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TargetedPentestAgent2,
|
|
3
3
|
buildPentestSystemPrompt2
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
4
|
+
} from "./cli-hr8cdrm9.js";
|
|
5
|
+
import"./cli-c70xpef4.js";
|
|
6
6
|
import"./cli-qba2x69h.js";
|
|
7
|
-
import"./cli-
|
|
8
|
-
import"./cli-
|
|
9
|
-
import"./cli-
|
|
10
|
-
import"./cli-
|
|
7
|
+
import"./cli-k72gvna3.js";
|
|
8
|
+
import"./cli-d5zzvezc.js";
|
|
9
|
+
import"./cli-twtnm4ms.js";
|
|
10
|
+
import"./cli-ww29nrnd.js";
|
|
11
11
|
import"./cli-c2k4xxaw.js";
|
|
12
|
-
import"./cli-
|
|
12
|
+
import"./cli-6kgf7d6q.js";
|
|
13
13
|
export {
|
|
14
14
|
TargetedPentestAgent2 as TargetedPentestAgent,
|
|
15
15
|
buildPentestSystemPrompt2 as buildPentestSystemPrompt
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runAuthenticationAgent2
|
|
3
|
+
} from "./cli-6pa9g38w.js";
|
|
4
|
+
import"./cli-c70xpef4.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-k72gvna3.js";
|
|
7
|
+
import"./cli-d5zzvezc.js";
|
|
8
|
+
import"./cli-twtnm4ms.js";
|
|
9
|
+
import"./cli-ww29nrnd.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-6kgf7d6q.js";
|
|
12
|
+
export {
|
|
13
|
+
runAuthenticationAgent2 as runAuthenticationAgent
|
|
14
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
1
|
+
import"./cli-d5zzvezc.js";
|
|
2
|
+
import"./cli-6kgf7d6q.js";
|
|
3
|
+
import"./cli-ww29nrnd.js";
|
|
4
|
+
import"./cli-k72gvna3.js";
|
|
5
5
|
import {
|
|
6
6
|
AgentRuntime,
|
|
7
7
|
defineAgent
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-c70xpef4.js";
|
|
9
9
|
import"./cli-qba2x69h.js";
|
|
10
10
|
import {
|
|
11
11
|
stepCountIs2,
|
|
12
12
|
init_dist
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-twtnm4ms.js";
|
|
14
14
|
import"./cli-c2k4xxaw.js";
|
|
15
15
|
import {
|
|
16
16
|
init_zod
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
4
|
+
} from "./cli-6kgf7d6q.js";
|
|
5
|
+
import"./cli-ww29nrnd.js";
|
|
6
|
+
import"./cli-k72gvna3.js";
|
|
7
7
|
import {
|
|
8
8
|
AgentEventBus
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-d5zzvezc.js";
|
|
10
10
|
import {
|
|
11
11
|
inspectSessionEvidence2,
|
|
12
12
|
RecordedRunSpecSchema,
|
|
@@ -17,27 +17,27 @@ import {
|
|
|
17
17
|
runRecordedAgent2,
|
|
18
18
|
RunRecoveryBlockedError2,
|
|
19
19
|
resumeRecordedAgent2
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
20
|
+
} from "./cli-2kxz8wct.js";
|
|
21
|
+
import"./cli-pyrrf4ms.js";
|
|
22
|
+
import"./cli-e6gwq7a9.js";
|
|
23
|
+
import"./cli-hrb1gb3f.js";
|
|
24
|
+
import"./cli-cthffb4f.js";
|
|
25
|
+
import"./cli-6pa9g38w.js";
|
|
26
|
+
import"./cli-hr8cdrm9.js";
|
|
27
|
+
import"./cli-h7y81bkg.js";
|
|
28
|
+
import"./cli-pthzx104.js";
|
|
29
|
+
import"./cli-ak23knae.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveWorkerExecutable,
|
|
32
32
|
launchLocalWorker
|
|
33
|
-
} from "./cli-
|
|
34
|
-
import"./cli-
|
|
35
|
-
import"./cli-
|
|
33
|
+
} from "./cli-r9kjgdr6.js";
|
|
34
|
+
import"./cli-91xbw8s1.js";
|
|
35
|
+
import"./cli-c70xpef4.js";
|
|
36
36
|
import"./cli-qba2x69h.js";
|
|
37
37
|
import {
|
|
38
38
|
buildAuthConfig,
|
|
39
39
|
init_ai2
|
|
40
|
-
} from "./cli-
|
|
40
|
+
} from "./cli-twtnm4ms.js";
|
|
41
41
|
import"./cli-c2k4xxaw.js";
|
|
42
42
|
|
|
43
43
|
// src/cli/agent-runs.ts
|
|
@@ -118,7 +118,7 @@ async function runAgentRunsCommand(args) {
|
|
|
118
118
|
if (!isAbsolute(values.store)) {
|
|
119
119
|
throw new Error("agent-runs worker requires --store <absolute database>");
|
|
120
120
|
}
|
|
121
|
-
const { serveLocalRunWorker } = await import("./index-
|
|
121
|
+
const { serveLocalRunWorker } = await import("./index-rzc981b7.js");
|
|
122
122
|
await serveLocalRunWorker({
|
|
123
123
|
runId: values.run,
|
|
124
124
|
databasePath: resolve(values.store)
|
|
@@ -132,7 +132,7 @@ async function runAgentRunsCommand(args) {
|
|
|
132
132
|
${HELP}`);
|
|
133
133
|
}
|
|
134
134
|
if (command === "attach") {
|
|
135
|
-
const { openRecordedRunClient } = await import("./recordedRunClient-
|
|
135
|
+
const { openRecordedRunClient } = await import("./recordedRunClient-k9pqxwvp.js");
|
|
136
136
|
const client = await openRecordedRunClient(values.store);
|
|
137
137
|
const controller = new AbortController;
|
|
138
138
|
const detach = () => controller.abort();
|
|
@@ -15,27 +15,27 @@ import {
|
|
|
15
15
|
searchEndpoints2,
|
|
16
16
|
listDomains2,
|
|
17
17
|
createDomain2
|
|
18
|
-
} from "./cli-
|
|
19
|
-
import"./cli-
|
|
20
|
-
import"./cli-
|
|
21
|
-
import"./cli-
|
|
22
|
-
import"./cli-
|
|
23
|
-
import"./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
31
|
-
import"./cli-
|
|
18
|
+
} from "./cli-k72gvna3.js";
|
|
19
|
+
import"./cli-d5zzvezc.js";
|
|
20
|
+
import"./cli-6kgf7d6q.js";
|
|
21
|
+
import"./cli-ww29nrnd.js";
|
|
22
|
+
import"./cli-2kxz8wct.js";
|
|
23
|
+
import"./cli-pyrrf4ms.js";
|
|
24
|
+
import"./cli-e6gwq7a9.js";
|
|
25
|
+
import"./cli-hrb1gb3f.js";
|
|
26
|
+
import"./cli-cthffb4f.js";
|
|
27
|
+
import"./cli-6pa9g38w.js";
|
|
28
|
+
import"./cli-hr8cdrm9.js";
|
|
29
|
+
import"./cli-h7y81bkg.js";
|
|
30
|
+
import"./cli-pthzx104.js";
|
|
31
|
+
import"./cli-ak23knae.js";
|
|
32
32
|
import {
|
|
33
33
|
markCommandFailed
|
|
34
34
|
} from "./cli-z82n3qk1.js";
|
|
35
|
-
import"./cli-
|
|
36
|
-
import"./cli-
|
|
35
|
+
import"./cli-91xbw8s1.js";
|
|
36
|
+
import"./cli-c70xpef4.js";
|
|
37
37
|
import"./cli-qba2x69h.js";
|
|
38
|
-
import"./cli-
|
|
38
|
+
import"./cli-twtnm4ms.js";
|
|
39
39
|
import"./cli-c2k4xxaw.js";
|
|
40
40
|
|
|
41
41
|
// src/cli/apps.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
2
|
+
import"./cli-k72gvna3.js";
|
|
3
|
+
import"./cli-d5zzvezc.js";
|
|
4
4
|
import {
|
|
5
5
|
config2,
|
|
6
6
|
init_config
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-6kgf7d6q.js";
|
|
8
8
|
import {
|
|
9
9
|
getPensarApiUrl2,
|
|
10
10
|
getPensarConsoleUrl2,
|
|
@@ -20,24 +20,24 @@ import {
|
|
|
20
20
|
createWorkspaceSelection2,
|
|
21
21
|
pollWorkspaceSelection2,
|
|
22
22
|
init_auth
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-
|
|
25
|
-
import"./cli-
|
|
26
|
-
import"./cli-
|
|
27
|
-
import"./cli-
|
|
28
|
-
import"./cli-
|
|
29
|
-
import"./cli-
|
|
30
|
-
import"./cli-
|
|
31
|
-
import"./cli-
|
|
32
|
-
import"./cli-
|
|
33
|
-
import"./cli-
|
|
23
|
+
} from "./cli-ww29nrnd.js";
|
|
24
|
+
import"./cli-2kxz8wct.js";
|
|
25
|
+
import"./cli-pyrrf4ms.js";
|
|
26
|
+
import"./cli-e6gwq7a9.js";
|
|
27
|
+
import"./cli-hrb1gb3f.js";
|
|
28
|
+
import"./cli-cthffb4f.js";
|
|
29
|
+
import"./cli-6pa9g38w.js";
|
|
30
|
+
import"./cli-hr8cdrm9.js";
|
|
31
|
+
import"./cli-h7y81bkg.js";
|
|
32
|
+
import"./cli-pthzx104.js";
|
|
33
|
+
import"./cli-ak23knae.js";
|
|
34
34
|
import {
|
|
35
35
|
markCommandFailed
|
|
36
36
|
} from "./cli-z82n3qk1.js";
|
|
37
|
-
import"./cli-
|
|
38
|
-
import"./cli-
|
|
37
|
+
import"./cli-91xbw8s1.js";
|
|
38
|
+
import"./cli-c70xpef4.js";
|
|
39
39
|
import"./cli-qba2x69h.js";
|
|
40
|
-
import"./cli-
|
|
40
|
+
import"./cli-twtnm4ms.js";
|
|
41
41
|
import"./cli-c2k4xxaw.js";
|
|
42
42
|
import {
|
|
43
43
|
__require
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BlackboxAttackSurfaceAgent2
|
|
3
|
+
} from "./cli-pyrrf4ms.js";
|
|
4
|
+
import"./cli-c70xpef4.js";
|
|
5
|
+
import"./cli-qba2x69h.js";
|
|
6
|
+
import"./cli-k72gvna3.js";
|
|
7
|
+
import"./cli-d5zzvezc.js";
|
|
8
|
+
import"./cli-twtnm4ms.js";
|
|
9
|
+
import"./cli-ww29nrnd.js";
|
|
10
|
+
import"./cli-c2k4xxaw.js";
|
|
11
|
+
import"./cli-6kgf7d6q.js";
|
|
12
|
+
export {
|
|
13
|
+
BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
|
|
14
|
+
};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import"./cli-
|
|
2
|
-
import"./cli-
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
5
|
-
import"./cli-
|
|
6
|
-
import"./cli-
|
|
7
|
-
import"./cli-
|
|
1
|
+
import"./cli-6kgf7d6q.js";
|
|
2
|
+
import"./cli-ww29nrnd.js";
|
|
3
|
+
import"./cli-d5zzvezc.js";
|
|
4
|
+
import"./cli-k72gvna3.js";
|
|
5
|
+
import"./cli-pyrrf4ms.js";
|
|
6
|
+
import"./cli-hr8cdrm9.js";
|
|
7
|
+
import"./cli-h7y81bkg.js";
|
|
8
8
|
import {
|
|
9
9
|
readExecutionMetrics,
|
|
10
10
|
writeExecutionMetrics,
|
|
11
11
|
runPentestWorkflow2
|
|
12
|
-
} from "./cli-
|
|
13
|
-
import"./cli-
|
|
14
|
-
import"./cli-
|
|
12
|
+
} from "./cli-cthffb4f.js";
|
|
13
|
+
import"./cli-e6gwq7a9.js";
|
|
14
|
+
import"./cli-hrb1gb3f.js";
|
|
15
15
|
import {
|
|
16
16
|
EMPTY_SESSION_TOKEN_USAGE,
|
|
17
17
|
accumulateSessionTokens
|
|
18
18
|
} from "./cli-ag6jtndp.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-c70xpef4.js";
|
|
20
20
|
import"./cli-qba2x69h.js";
|
|
21
21
|
import {
|
|
22
22
|
normalizeStepUsage,
|
|
23
23
|
init_ai2
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-twtnm4ms.js";
|
|
25
25
|
import"./cli-c2k4xxaw.js";
|
|
26
26
|
|
|
27
27
|
// src/core/api/blackboxPentest.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
APICallError,
|
|
3
|
-
|
|
4
|
-
} from "./cli-
|
|
3
|
+
init_dist4
|
|
4
|
+
} from "./cli-7898kznf.js";
|
|
5
5
|
import {
|
|
6
6
|
init_zod
|
|
7
7
|
} from "./cli-3qznjsnr.js";
|
|
@@ -2215,7 +2215,7 @@ function withNativeRolloutEvidenceModel(model, defaultContext) {
|
|
|
2215
2215
|
}
|
|
2216
2216
|
var DEFAULT_NATIVE_ROLLOUT_CAPTURE_LIMITS, captureStore, operationStore, sessionStore, RECORDER_ONLY_INPUT;
|
|
2217
2217
|
var init_capture = __esm(() => {
|
|
2218
|
-
|
|
2218
|
+
init_dist4();
|
|
2219
2219
|
init_inference_attempt();
|
|
2220
2220
|
init_content();
|
|
2221
2221
|
init_provider_metadata();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
config2,
|
|
3
3
|
init_config
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-6kgf7d6q.js";
|
|
5
5
|
import {
|
|
6
6
|
init_constants
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-ww29nrnd.js";
|
|
8
8
|
import {
|
|
9
9
|
buildSessionWorkspaceSection,
|
|
10
10
|
buildBaseSystemPrompt,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
apiRequest,
|
|
13
13
|
ALL_TOOL_NAMES2,
|
|
14
14
|
SKILL_TOOL_NAMES2
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-k72gvna3.js";
|
|
16
16
|
import {
|
|
17
17
|
runOffensiveSecurityAgent2
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-91xbw8s1.js";
|
|
19
19
|
import {
|
|
20
20
|
defineAgent
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-c70xpef4.js";
|
|
22
22
|
import {
|
|
23
23
|
toolModelMessageSchema,
|
|
24
24
|
modelMessageSchema,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
getModelInfo,
|
|
42
42
|
buildAuthConfig,
|
|
43
43
|
init_ai2
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-twtnm4ms.js";
|
|
45
45
|
import {
|
|
46
46
|
newSessionId,
|
|
47
47
|
isSessionId,
|
|
@@ -49,14 +49,14 @@ import {
|
|
|
49
49
|
InferenceAttemptSchema,
|
|
50
50
|
parseInferenceAttempt,
|
|
51
51
|
runWithInferenceRecorder
|
|
52
|
-
} from "./cli-
|
|
53
|
-
import {
|
|
54
|
-
getCurrentVersion,
|
|
55
|
-
init_installation
|
|
56
|
-
} from "./cli-vb4den7a.js";
|
|
52
|
+
} from "./cli-0rhfexax.js";
|
|
57
53
|
import {
|
|
58
54
|
init_zod
|
|
59
55
|
} from "./cli-3qznjsnr.js";
|
|
56
|
+
import {
|
|
57
|
+
getCurrentVersion,
|
|
58
|
+
init_installation
|
|
59
|
+
} from "./cli-5c420jyh.js";
|
|
60
60
|
import {
|
|
61
61
|
exports_iso,
|
|
62
62
|
string,
|
|
@@ -7691,7 +7691,7 @@ function createSqliteControlStore(input) {
|
|
|
7691
7691
|
const assertToolApproved = (runId, toolName, toolCallId, candidateInput) => {
|
|
7692
7692
|
assertDispatchAllowed(runId);
|
|
7693
7693
|
const run = input.getRun(runId);
|
|
7694
|
-
if (!run.spec.activeTools.some((name) => name === toolName)) {
|
|
7694
|
+
if (toolName !== "exec" && toolName !== "wait" && !run.spec.activeTools.some((name) => name === toolName)) {
|
|
7695
7695
|
throw new Error(`Tool is not in the run's active tool allowlist: ${toolName}`);
|
|
7696
7696
|
}
|
|
7697
7697
|
const required = run.spec.approval?.requiredTools ?? [];
|
|
@@ -9225,6 +9225,12 @@ async function listIssues2(filters) {
|
|
|
9225
9225
|
async function getIssue2(issueId) {
|
|
9226
9226
|
return apiRequest("GET", `/issues/${issueId}`);
|
|
9227
9227
|
}
|
|
9228
|
+
async function getIssueEvidence2(issueId) {
|
|
9229
|
+
return apiRequest("GET", `/issues/${issueId}/evidence`);
|
|
9230
|
+
}
|
|
9231
|
+
async function listIssueRetests2(issueId) {
|
|
9232
|
+
return apiRequest("GET", `/issues/${issueId}/retests`);
|
|
9233
|
+
}
|
|
9228
9234
|
async function updateIssue2(issueId, data) {
|
|
9229
9235
|
return apiRequest("PATCH", `/issues/${issueId}`, data);
|
|
9230
9236
|
}
|
|
@@ -10754,6 +10760,9 @@ function planRunRecovery(input) {
|
|
|
10754
10760
|
if (op.toolName === "execute_command") {
|
|
10755
10761
|
blockers.push("execute_command was used by this run; shell/background state cannot be reconciled");
|
|
10756
10762
|
}
|
|
10763
|
+
if (op.toolName === "exec" || op.toolName === "wait") {
|
|
10764
|
+
blockers.push("Code-mode cells and stored state cannot be restored after a process restart");
|
|
10765
|
+
}
|
|
10757
10766
|
if (op.context.epoch > context.epoch || op.context.revision > context.revision) {
|
|
10758
10767
|
blockers.push(`tool operation ${op.toolCallId} references a future context (${op.context.epoch}/${op.context.revision})`);
|
|
10759
10768
|
}
|
|
@@ -10948,6 +10957,8 @@ function buildExchange(input) {
|
|
|
10948
10957
|
init_persistenceError();
|
|
10949
10958
|
init_runControlStore();
|
|
10950
10959
|
var TOOL_POLICIES = {
|
|
10960
|
+
exec: "shell_state",
|
|
10961
|
+
wait: "shell_state",
|
|
10951
10962
|
read_file: "read_only",
|
|
10952
10963
|
list_files: "read_only",
|
|
10953
10964
|
grep: "read_only",
|
|
@@ -12657,4 +12668,4 @@ Working directory: ${input.codebasePath}`;
|
|
|
12657
12668
|
return { session, outputPath: input.outputPath };
|
|
12658
12669
|
}
|
|
12659
12670
|
|
|
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 };
|
|
12671
|
+
export { inspectSessionEvidence2, RecordedRunSpecSchema, acquireLocalRunLock, resolveRunDatabasePath, openSqliteRunStore, CLOSED_DISPOSITIONS2, listScans2, getScan2, listPentestTargets2, dispatchPentest2, listIssues2, getIssue2, getIssueEvidence2, listIssueRetests2, 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 };
|