@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
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
LoadAPIKeyError,
|
|
8
8
|
LoadSettingError,
|
|
9
9
|
TypeValidationError,
|
|
10
|
-
|
|
11
|
-
} from "./cli-
|
|
10
|
+
init_dist4
|
|
11
|
+
} from "./cli-7898kznf.js";
|
|
12
12
|
import {
|
|
13
13
|
toJSONSchema,
|
|
14
14
|
safeParseAsync,
|
|
@@ -6227,24 +6227,24 @@ var DelayedPromise = class {
|
|
|
6227
6227
|
rawValue: parsedResult.rawValue
|
|
6228
6228
|
};
|
|
6229
6229
|
};
|
|
6230
|
-
var
|
|
6231
|
-
|
|
6232
|
-
|
|
6233
|
-
|
|
6234
|
-
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6230
|
+
var init_dist3 = __esm(() => {
|
|
6231
|
+
init_dist4();
|
|
6232
|
+
init_dist4();
|
|
6233
|
+
init_dist4();
|
|
6234
|
+
init_dist4();
|
|
6235
|
+
init_dist4();
|
|
6236
|
+
init_dist4();
|
|
6237
|
+
init_dist4();
|
|
6238
|
+
init_dist4();
|
|
6239
|
+
init_dist4();
|
|
6240
6240
|
init_v4();
|
|
6241
6241
|
init_v3();
|
|
6242
6242
|
init_v3();
|
|
6243
6243
|
init_v3();
|
|
6244
6244
|
init_stream();
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6245
|
+
init_dist4();
|
|
6246
|
+
init_dist4();
|
|
6247
|
+
init_dist4();
|
|
6248
6248
|
({ btoa, atob: atob2 } = globalThis);
|
|
6249
6249
|
marker = `vercel.ai.error.${name}`;
|
|
6250
6250
|
symbol = Symbol.for(marker);
|
|
@@ -6334,4 +6334,4 @@ var init_dist2 = __esm(() => {
|
|
|
6334
6334
|
schemaSymbol = /* @__PURE__ */ Symbol.for("vercel.ai.schema");
|
|
6335
6335
|
});
|
|
6336
6336
|
|
|
6337
|
-
export { init_v4, ZodFirstPartyTypeKind, init_v3, EventSourceParserStream, init_stream, combineHeaders, createToolNameMapping, delay, DelayedPromise, extractResponseHeaders, convertBase64ToUint8Array, convertUint8ArrayToBase64, convertToBase64, convertToFormData, cancelResponseBody, DownloadError, fetchWithValidatedRedirects, DEFAULT_MAX_DOWNLOAD_SIZE, readResponseWithSizeLimit, downloadBlob, createIdGenerator, generateId, getErrorMessage, isAbortError, getRuntimeEnvironmentUserAgent, normalizeHeaders, withUserAgentSuffix, getFromApi, isNonNullable, isSameOrigin, isUrlSupported, loadApiKey, loadOptionalSetting, loadSetting, lazySchema, asSchema, zodSchema, validateTypes, safeValidateTypes, parseJSON, safeParseJSON, isParsableJson, parseJsonEventStream, parseProviderOptions, postJsonToApi, postFormDataToApi, tool, createProviderToolFactory, createProviderToolFactoryWithOutputSchema, resolve, createJsonErrorResponseHandler, createEventSourceResponseHandler, createJsonResponseHandler, stripFileExtension, withoutTrailingSlash, executeTool,
|
|
6337
|
+
export { init_v4, ZodFirstPartyTypeKind, init_v3, EventSourceParserStream, init_stream, combineHeaders, createToolNameMapping, delay, DelayedPromise, extractResponseHeaders, convertBase64ToUint8Array, convertUint8ArrayToBase64, convertToBase64, convertToFormData, cancelResponseBody, DownloadError, fetchWithValidatedRedirects, DEFAULT_MAX_DOWNLOAD_SIZE, readResponseWithSizeLimit, downloadBlob, createIdGenerator, generateId, getErrorMessage, isAbortError, getRuntimeEnvironmentUserAgent, normalizeHeaders, withUserAgentSuffix, getFromApi, isNonNullable, isSameOrigin, isUrlSupported, loadApiKey, loadOptionalSetting, loadSetting, lazySchema, asSchema, zodSchema, validateTypes, safeValidateTypes, parseJSON, safeParseJSON, isParsableJson, parseJsonEventStream, parseProviderOptions, postJsonToApi, postFormDataToApi, tool, createProviderToolFactory, createProviderToolFactoryWithOutputSchema, resolve, createJsonErrorResponseHandler, createEventSourceResponseHandler, createJsonResponseHandler, stripFileExtension, withoutTrailingSlash, executeTool, init_dist3 };
|
package/build/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
// @bun
|
|
3
|
-
import"./cli-
|
|
4
|
-
import"./cli-
|
|
3
|
+
import"./cli-6kgf7d6q.js";
|
|
4
|
+
import"./cli-ww29nrnd.js";
|
|
5
5
|
import {
|
|
6
6
|
require_src,
|
|
7
7
|
require_src2,
|
|
@@ -32,12 +32,13 @@ import {
|
|
|
32
32
|
init_utils,
|
|
33
33
|
init_ai,
|
|
34
34
|
init_model_history,
|
|
35
|
+
init_modelRuntime,
|
|
35
36
|
init_ai2
|
|
36
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-twtnm4ms.js";
|
|
37
38
|
import {
|
|
38
39
|
init_inference_attempt,
|
|
39
40
|
init_native_rollout_evidence
|
|
40
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-0rhfexax.js";
|
|
41
42
|
import"./cli-c2k4xxaw.js";
|
|
42
43
|
import {
|
|
43
44
|
parseCustomModelId,
|
|
@@ -46,13 +47,13 @@ import {
|
|
|
46
47
|
init_customProviders,
|
|
47
48
|
resolveHoonifyModel,
|
|
48
49
|
init_hoonify
|
|
49
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-dzs7b8qg.js";
|
|
50
51
|
import {
|
|
51
52
|
init_package,
|
|
52
53
|
version,
|
|
53
54
|
package_default,
|
|
54
55
|
init_installation
|
|
55
|
-
} from "./cli-
|
|
56
|
+
} from "./cli-5c420jyh.js";
|
|
56
57
|
import {
|
|
57
58
|
require_src6
|
|
58
59
|
} from "./cli-bb02pjt0.js";
|
|
@@ -440,6 +441,7 @@ var package_default2 = {
|
|
|
440
441
|
"@aws-sdk/lib-storage": "3.1146.0",
|
|
441
442
|
"@daytona/sdk": "0.222.0",
|
|
442
443
|
"@googleapis/gmail": "^16.1.2",
|
|
444
|
+
"@jitl/quickjs-singlefile-cjs-release-sync": "0.32.0",
|
|
443
445
|
"@microsoft/microsoft-graph-client": "^3.0.7",
|
|
444
446
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
445
447
|
"@openrouter/ai-sdk-provider": "^2.9.1",
|
|
@@ -462,6 +464,7 @@ var package_default2 = {
|
|
|
462
464
|
"mime-types": "^3.0.2",
|
|
463
465
|
nodemailer: "^8.0.11",
|
|
464
466
|
"p-limit": "^7.3.0",
|
|
467
|
+
"quickjs-emscripten": "^0.32.0",
|
|
465
468
|
react: "^19.2.7",
|
|
466
469
|
sharp: "^0.34.5",
|
|
467
470
|
tldts: "^7.4.3",
|
|
@@ -771,13 +774,14 @@ var package_default2 = {
|
|
|
771
774
|
tsc: "tsc --noEmit"
|
|
772
775
|
},
|
|
773
776
|
type: "module",
|
|
774
|
-
version: "2.7.0-canary.
|
|
777
|
+
version: "2.7.0-canary.dc4eeb73"
|
|
775
778
|
};
|
|
776
779
|
|
|
777
780
|
// src/core/ai/index.ts
|
|
778
781
|
init_ai();
|
|
779
782
|
init_inference_attempt();
|
|
780
783
|
init_model_history();
|
|
784
|
+
init_modelRuntime();
|
|
781
785
|
init_models();
|
|
782
786
|
init_native_rollout_evidence();
|
|
783
787
|
init_reasoning();
|
|
@@ -1633,7 +1637,7 @@ async function createInstrumentedBus(session, model) {
|
|
|
1633
1637
|
reportHerdrState("working");
|
|
1634
1638
|
const bus = new AgentEventBus;
|
|
1635
1639
|
attachCliAgentStreamListeners(bus);
|
|
1636
|
-
const { attachWandbToEventBus } = await import("./upload-
|
|
1640
|
+
const { attachWandbToEventBus } = await import("./upload-sr2fekpm.js");
|
|
1637
1641
|
const wandbCleanup = await attachWandbToEventBus(session, bus).catch((e) => {
|
|
1638
1642
|
console.warn("[wandb] Tracing disabled:", e.message);
|
|
1639
1643
|
return null;
|
|
@@ -1653,7 +1657,7 @@ async function resolveCliHeaders() {
|
|
|
1653
1657
|
const { parseHeaderLine, parseHeadersFromFile, formatParseError } = await import("./parse-cqecqrc5.js");
|
|
1654
1658
|
const merged = {};
|
|
1655
1659
|
if (!noGlobal) {
|
|
1656
|
-
const { config: appConfig } = await import("./index-
|
|
1660
|
+
const { config: appConfig } = await import("./index-x5ta620q.js");
|
|
1657
1661
|
const cfg = await appConfig.get();
|
|
1658
1662
|
if (cfg.defaultHeaders) {
|
|
1659
1663
|
Object.assign(merged, cfg.defaultHeaders);
|
|
@@ -1684,8 +1688,8 @@ ${formatParseError(parsed.error)}`);
|
|
|
1684
1688
|
return merged;
|
|
1685
1689
|
}
|
|
1686
1690
|
async function resolveCliModel() {
|
|
1687
|
-
const { config: appConfig } = await import("./index-
|
|
1688
|
-
const { getDefaultModelForConfig } = await import("./utils-
|
|
1691
|
+
const { config: appConfig } = await import("./index-x5ta620q.js");
|
|
1692
|
+
const { getDefaultModelForConfig } = await import("./utils-3m9rnw7g.js");
|
|
1689
1693
|
const pensarConfig = await appConfig.get();
|
|
1690
1694
|
const explicit = resolveExplicitCliModel({
|
|
1691
1695
|
model: getArg("--model"),
|
|
@@ -1706,6 +1710,7 @@ async function resolveCliModel() {
|
|
|
1706
1710
|
` + ` OPENAI_API_KEY \u2014 OpenAI
|
|
1707
1711
|
` + ` OPENROUTER_API_KEY \u2014 OpenRouter
|
|
1708
1712
|
` + ` CONCENTRATE_API_KEY \u2014 Concentrate
|
|
1713
|
+
` + ` INFERENCE_API_KEY \u2014 Inference.net
|
|
1709
1714
|
` + ` HOONIFY_API_KEY \u2014 Hoonify
|
|
1710
1715
|
` + ` APEX_CUSTOM_PROVIDERS \u2014 Custom OpenAI-compatible providers (JSON)
|
|
1711
1716
|
` + `
|
|
@@ -1824,8 +1829,8 @@ Custom inference:
|
|
|
1824
1829
|
`);
|
|
1825
1830
|
}
|
|
1826
1831
|
async function runPentest() {
|
|
1827
|
-
const { sessions } = await import("./index-
|
|
1828
|
-
const { config: appConfig } = await import("./index-
|
|
1832
|
+
const { sessions } = await import("./index-q4rvvcjm.js");
|
|
1833
|
+
const { config: appConfig } = await import("./index-x5ta620q.js");
|
|
1829
1834
|
const target = getArgRequired("--target");
|
|
1830
1835
|
const cwd = getArg("--cwd");
|
|
1831
1836
|
const mode = getArg("--mode");
|
|
@@ -1885,7 +1890,7 @@ Headers: ${Object.keys(headers).length} configured` : ""}
|
|
|
1885
1890
|
});
|
|
1886
1891
|
console.log(`PENSAR_SESSION_PATH:${session.rootPath}`);
|
|
1887
1892
|
if (lance) {
|
|
1888
|
-
const { runCliLance } = await import("./lance-
|
|
1893
|
+
const { runCliLance } = await import("./lance-g8wtg17c.js");
|
|
1889
1894
|
await runCliLance({
|
|
1890
1895
|
prompt: resolvedPrompt,
|
|
1891
1896
|
model,
|
|
@@ -1902,8 +1907,8 @@ Headers: ${Object.keys(headers).length} configured` : ""}
|
|
|
1902
1907
|
});
|
|
1903
1908
|
return;
|
|
1904
1909
|
}
|
|
1905
|
-
const { runPentestAgent } = await import("./blackboxPentest-
|
|
1906
|
-
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-
|
|
1910
|
+
const { runPentestAgent } = await import("./blackboxPentest-drx2dh8q.js");
|
|
1911
|
+
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-ddaypcmp.js");
|
|
1907
1912
|
const evidence = await runWithCliNativeRolloutEvidence({
|
|
1908
1913
|
session,
|
|
1909
1914
|
outputDirectory: evidenceOutput,
|
|
@@ -1967,9 +1972,9 @@ Report: ${reportPath}` : ""}`);
|
|
|
1967
1972
|
}
|
|
1968
1973
|
}
|
|
1969
1974
|
async function runTargetedPentest() {
|
|
1970
|
-
const { runTargetedPentestAgent } = await import("./targetedPentest-
|
|
1971
|
-
const { sessions } = await import("./index-
|
|
1972
|
-
const { config: appConfig } = await import("./index-
|
|
1975
|
+
const { runTargetedPentestAgent } = await import("./targetedPentest-42vx9fxg.js");
|
|
1976
|
+
const { sessions } = await import("./index-q4rvvcjm.js");
|
|
1977
|
+
const { config: appConfig } = await import("./index-x5ta620q.js");
|
|
1973
1978
|
const target = getArgRequired("--target");
|
|
1974
1979
|
const objectives = getAllArgs("--objective");
|
|
1975
1980
|
const evidenceOutput = nativeRolloutEvidenceOutput();
|
|
@@ -2004,7 +2009,7 @@ ${objectivesList}
|
|
|
2004
2009
|
} : {}
|
|
2005
2010
|
});
|
|
2006
2011
|
console.log(`PENSAR_SESSION_PATH:${session.rootPath}`);
|
|
2007
|
-
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-
|
|
2012
|
+
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-ddaypcmp.js");
|
|
2008
2013
|
const evidence = await runWithCliNativeRolloutEvidence({
|
|
2009
2014
|
session,
|
|
2010
2015
|
outputDirectory: evidenceOutput,
|
|
@@ -2037,8 +2042,8 @@ POCs: ${pocsPath}`);
|
|
|
2037
2042
|
}
|
|
2038
2043
|
}
|
|
2039
2044
|
async function runThreatModel() {
|
|
2040
|
-
const { runThreatModelWorkflow } = await import("./threatModel-
|
|
2041
|
-
const { config: appConfig } = await import("./index-
|
|
2045
|
+
const { runThreatModelWorkflow } = await import("./threatModel-d8mesare.js");
|
|
2046
|
+
const { config: appConfig } = await import("./index-x5ta620q.js");
|
|
2042
2047
|
const path = await import("path");
|
|
2043
2048
|
const pensarConfig = await appConfig.get();
|
|
2044
2049
|
const model = await resolveCliModel();
|
|
@@ -2075,14 +2080,14 @@ ${sep}
|
|
|
2075
2080
|
Threat model written to: ${resolvedPath}`);
|
|
2076
2081
|
}
|
|
2077
2082
|
async function runOperator() {
|
|
2078
|
-
const { runOffensiveSecurityAgent } = await import("./offesecAgent-
|
|
2079
|
-
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-
|
|
2080
|
-
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-
|
|
2081
|
-
const { config: appConfig } = await import("./index-
|
|
2083
|
+
const { runOffensiveSecurityAgent } = await import("./offesecAgent-g95mjx3s.js");
|
|
2084
|
+
const { sessions, normalizeMessages, getResumeMessages } = await import("./index-q4rvvcjm.js");
|
|
2085
|
+
const { ALL_TOOL_NAMES, SKILL_TOOL_NAMES } = await import("./index-x9w3tzx7.js");
|
|
2086
|
+
const { config: appConfig } = await import("./index-x5ta620q.js");
|
|
2082
2087
|
const { createInterface } = await import("readline");
|
|
2083
2088
|
const { readFileSync, existsSync } = await import("fs");
|
|
2084
2089
|
const path = await import("path");
|
|
2085
|
-
const { stepCountIs } = await import("./index-
|
|
2090
|
+
const { stepCountIs } = await import("./index-ffe5c30s.js");
|
|
2086
2091
|
const promptRaw = getArg("-p") ?? getArg("--prompt");
|
|
2087
2092
|
if (!promptRaw) {
|
|
2088
2093
|
console.error("Error: -p <prompt> is required");
|
|
@@ -2121,7 +2126,7 @@ ${sep}
|
|
|
2121
2126
|
...evidenceOutput ? { nativeRolloutEvidence: { outputDirectory: evidenceOutput } } : {}
|
|
2122
2127
|
}
|
|
2123
2128
|
});
|
|
2124
|
-
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-
|
|
2129
|
+
const { runWithCliNativeRolloutEvidence } = await import("./native-rollout-evidence-ddaypcmp.js");
|
|
2125
2130
|
const evidence = await runWithCliNativeRolloutEvidence({
|
|
2126
2131
|
session,
|
|
2127
2132
|
outputDirectory: evidenceOutput,
|
|
@@ -2224,7 +2229,7 @@ try {
|
|
|
2224
2229
|
await standaloneRuntime?.shutdown();
|
|
2225
2230
|
process.exitCode = 1;
|
|
2226
2231
|
} else {
|
|
2227
|
-
const { startTui } = await import("./index-
|
|
2232
|
+
const { startTui } = await import("./index-vymh03hj.js");
|
|
2228
2233
|
await startTui(options);
|
|
2229
2234
|
}
|
|
2230
2235
|
} else if (hasFlag("-p") || command === "--prompt") {
|
|
@@ -2235,7 +2240,7 @@ try {
|
|
|
2235
2240
|
showHelp();
|
|
2236
2241
|
} else if (command === "export-trajectory") {
|
|
2237
2242
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2238
|
-
await import("./export-trajectory-
|
|
2243
|
+
await import("./export-trajectory-ex317s0n.js");
|
|
2239
2244
|
} else if (command === "upgrade" || command === "update") {
|
|
2240
2245
|
await runUpgrade2();
|
|
2241
2246
|
} else if (command === "pentest") {
|
|
@@ -2244,41 +2249,41 @@ try {
|
|
|
2244
2249
|
await runTargetedPentest();
|
|
2245
2250
|
} else if (command === "login" || command === "auth") {
|
|
2246
2251
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2247
|
-
await import("./auth-
|
|
2252
|
+
await import("./auth-yf8h2pcm.js");
|
|
2248
2253
|
} else if (command === "uninstall") {
|
|
2249
2254
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2250
|
-
await import("./uninstall-
|
|
2255
|
+
await import("./uninstall-z7mexzkf.js");
|
|
2251
2256
|
} else if (command === "apps") {
|
|
2252
2257
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2253
|
-
await import("./apps-
|
|
2258
|
+
await import("./apps-pfv0zdbc.js");
|
|
2254
2259
|
} else if (command === "pentests") {
|
|
2255
2260
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2256
|
-
await import("./pentests-
|
|
2261
|
+
await import("./pentests-tj609s19.js");
|
|
2257
2262
|
} else if (command === "agent-runs") {
|
|
2258
|
-
const { runAgentRunsCommand } = await import("./agent-runs-
|
|
2263
|
+
const { runAgentRunsCommand } = await import("./agent-runs-4krbrfbz.js");
|
|
2259
2264
|
await runAgentRunsCommand(args.slice(1));
|
|
2260
2265
|
} else if (command === "targets") {
|
|
2261
2266
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2262
|
-
await import("./targets-
|
|
2267
|
+
await import("./targets-yt5mgbx2.js");
|
|
2263
2268
|
} else if (command === "issues") {
|
|
2264
2269
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2265
|
-
await import("./issues-
|
|
2270
|
+
await import("./issues-e956aq7d.js");
|
|
2266
2271
|
} else if (command === "knowledge") {
|
|
2267
2272
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2268
|
-
await import("./knowledge-
|
|
2273
|
+
await import("./knowledge-1hat8sct.js");
|
|
2269
2274
|
} else if (command === "fixes") {
|
|
2270
2275
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2271
|
-
await import("./fixes-
|
|
2276
|
+
await import("./fixes-6ew73pvs.js");
|
|
2272
2277
|
} else if (command === "logs") {
|
|
2273
2278
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2274
|
-
await import("./logs-
|
|
2279
|
+
await import("./logs-r1ene0wa.js");
|
|
2275
2280
|
} else if (command === "config") {
|
|
2276
2281
|
process.argv = [process.argv[0], process.argv[1], ...args.slice(1)];
|
|
2277
|
-
await import("./config-
|
|
2282
|
+
await import("./config-kyzwb0kw.js");
|
|
2278
2283
|
} else if (command === "threat-model") {
|
|
2279
2284
|
await runThreatModel();
|
|
2280
2285
|
} else if (command === "doctor") {
|
|
2281
|
-
const { runDoctor } = await import("./doctor-
|
|
2286
|
+
const { runDoctor } = await import("./doctor-srja68wr.js");
|
|
2282
2287
|
await runDoctor();
|
|
2283
2288
|
} else {
|
|
2284
2289
|
console.error(`Error: Unknown command '${command}'`);
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
config2,
|
|
4
4
|
init_config
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-6kgf7d6q.js";
|
|
6
|
+
import {
|
|
7
|
+
markCommandFailed
|
|
8
|
+
} from "./cli-z82n3qk1.js";
|
|
6
9
|
import {
|
|
7
10
|
isSensitiveHeaderName,
|
|
8
11
|
renderHeaderValue
|
|
9
12
|
} from "./cli-b3dvxjgk.js";
|
|
10
|
-
import {
|
|
11
|
-
markCommandFailed
|
|
12
|
-
} from "./cli-z82n3qk1.js";
|
|
13
13
|
import {
|
|
14
14
|
parseHeaderLine2,
|
|
15
15
|
parseHeadersFromFile2,
|
|
@@ -63,6 +63,7 @@ function checkApiKeys() {
|
|
|
63
63
|
{ provider: "Google", env: "GOOGLE_GENERATIVE_AI_API_KEY" },
|
|
64
64
|
{ provider: "OpenRouter", env: "OPENROUTER_API_KEY" },
|
|
65
65
|
{ provider: "Concentrate", env: "CONCENTRATE_API_KEY" },
|
|
66
|
+
{ provider: "Inference.net", env: "INFERENCE_API_KEY" },
|
|
66
67
|
{ provider: "AWS Bedrock", env: "BEDROCK_API_KEY" },
|
|
67
68
|
{ provider: "AWS IAM", env: "AWS_ACCESS_KEY_ID" },
|
|
68
69
|
{ provider: "vLLM (local)", env: "LOCAL_MODEL_URL" }
|