@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.
Files changed (283) hide show
  1. package/README.md +13 -0
  2. package/build/agent-02pnejnw.js +14 -0
  3. package/build/{agent-x8nf3k1v.js → agent-5k6qd29v.js} +7 -7
  4. package/build/agent-7k53k922.js +14 -0
  5. package/build/{agent-q85c8mrh.js → agent-gbz5rygq.js} +6 -6
  6. package/build/{agent-runs-cqa7xz7d.js → agent-runs-4krbrfbz.js} +20 -20
  7. package/build/{apps-pxdathp4.js → apps-pfv0zdbc.js} +17 -17
  8. package/build/{auth-dcmykx6e.js → auth-yf8h2pcm.js} +17 -17
  9. package/build/blackboxAgent-zfvw66gx.js +14 -0
  10. package/build/{blackboxPentest-pbh960ms.js → blackboxPentest-drx2dh8q.js} +12 -12
  11. package/build/{cli-se8ae8z3.js → cli-0rhfexax.js} +3 -3
  12. package/build/{cli-ps5hmkhw.js → cli-2kxz8wct.js} +24 -13
  13. package/build/cli-4fkaes4s.js +1199 -0
  14. package/build/{cli-78pm8byz.js → cli-4mmtfeyq.js} +1 -1
  15. package/build/{cli-vb4den7a.js → cli-5c420jyh.js} +3 -1
  16. package/build/{cli-mfgsx6hc.js → cli-6kgf7d6q.js} +1 -1
  17. package/build/{cli-am8b7hr4.js → cli-6pa9g38w.js} +2 -2
  18. package/build/{cli-gsaf4jk3.js → cli-7898kznf.js} +2 -2
  19. package/build/{cli-jvhswf25.js → cli-91xbw8s1.js} +2 -2
  20. package/build/{cli-xcy2vxj2.js → cli-ak23knae.js} +1 -1
  21. package/build/{cli-kr28rrsa.js → cli-bxaessv4.js} +2 -2
  22. package/build/{cli-jpjj10xv.js → cli-c70xpef4.js} +5 -1
  23. package/build/{cli-pepjaeek.js → cli-cthffb4f.js} +12 -11
  24. package/build/{cli-40gstjf7.js → cli-d5zzvezc.js} +14 -8
  25. package/build/{cli-xpfw29g5.js → cli-dzs7b8qg.js} +5 -4
  26. package/build/{cli-m57v3wm9.js → cli-e6gwq7a9.js} +2 -2
  27. package/build/{cli-b8jmzd32.js → cli-h7y81bkg.js} +1 -1
  28. package/build/{cli-xb0pqkbk.js → cli-hr8cdrm9.js} +4 -4
  29. package/build/{cli-ygcbxb1m.js → cli-hrb1gb3f.js} +4 -4
  30. package/build/{cli-3gt761d2.js → cli-j0wfj2kw.js} +6 -0
  31. package/build/{cli-b3hef9fp.js → cli-k72gvna3.js} +4358 -982
  32. package/build/{cli-7nrpp1ks.js → cli-pthzx104.js} +1 -1
  33. package/build/{cli-8wkays8e.js → cli-pyrrf4ms.js} +13 -49
  34. package/build/{cli-v084p264.js → cli-r9kjgdr6.js} +1 -1
  35. package/build/{cli-6g5p7cfd.js → cli-twtnm4ms.js} +388 -260
  36. package/build/{cli-z41890cy.js → cli-ww29nrnd.js} +1 -1
  37. package/build/{cli-pwm29ks7.js → cli-ychebg4z.js} +16 -16
  38. package/build/cli.js +47 -42
  39. package/build/{config-d9mdqs9w.js → config-kyzwb0kw.js} +4 -4
  40. package/build/{doctor-z94afr10.js → doctor-srja68wr.js} +1 -0
  41. package/build/emscripten-module-kzkvkeqz.js +503 -0
  42. package/build/{export-trajectory-rt4tf07k.js → export-trajectory-ex317s0n.js} +1 -1
  43. package/build/{fastStrike-z096431v.js → fastStrike-f5h0bwrp.js} +6 -6
  44. package/build/ffi-pf145jhd.js +78 -0
  45. package/build/{fixes-9ppnsazw.js → fixes-6ew73pvs.js} +17 -17
  46. package/build/{index-pxhc0cbs.js → index-5yww2gt7.js} +2 -2
  47. package/build/{index-t8ncgcc9.js → index-ez32src5.js} +1 -1
  48. package/build/{index-qnyevb6q.js → index-ffe5c30s.js} +13 -13
  49. package/build/{index-cn1pgs79.js → index-h41d5ahy.js} +5 -4
  50. package/build/{index-vq0132nv.js → index-p1en670g.js} +7 -7
  51. package/build/{index-4gfq7kzj.js → index-q4rvvcjm.js} +9 -9
  52. package/build/{index-1j283k20.js → index-rzc981b7.js} +21 -17
  53. package/build/{index-f0v1bbhs.js → index-vymh03hj.js} +65 -26
  54. package/build/{index-y5t6w61g.js → index-x5ta620q.js} +1 -1
  55. package/build/{index-pvb4d38m.js → index-x9w3tzx7.js} +5 -5
  56. package/build/{issues-hnw2wt5k.js → issues-e956aq7d.js} +52 -25
  57. package/build/{knowledge-66kn0fwh.js → knowledge-1hat8sct.js} +17 -17
  58. package/build/{lance-qyph9jw1.js → lance-g8wtg17c.js} +8 -8
  59. package/build/lib/{chunk-10p58fqe.js → chunk-0fthn5vv.js} +8 -7
  60. package/build/lib/chunk-188my1pm.js +112 -0
  61. package/build/lib/{chunk-98gxfne9.js → chunk-2zvreyrw.js} +2 -2
  62. package/build/lib/{chunk-y9pm3xqv.js → chunk-3jz6jqxd.js} +1 -1
  63. package/build/lib/{chunk-rcneqwt6.js → chunk-3kpdgtve.js} +12 -48
  64. package/build/lib/{chunk-rh6fz13n.js → chunk-5veg292g.js} +2 -2
  65. package/build/lib/{chunk-7syrjsr5.js → chunk-75yfsj0q.js} +2 -1
  66. package/build/lib/{chunk-7350h8ab.js → chunk-8cbwztjg.js} +11 -11
  67. package/build/lib/{chunk-zntm5p3b.js → chunk-91jtnq4d.js} +33 -18
  68. package/build/lib/{chunk-bq643vks.js → chunk-9gkjbdzc.js} +1 -1
  69. package/build/lib/{chunk-pr63gfsd.js → chunk-aw579bmb.js} +1 -1
  70. package/build/lib/{chunk-5avnedwm.js → chunk-dhpxjgd5.js} +589 -97
  71. package/build/lib/{chunk-2svje0df.js → chunk-gyv3p1c4.js} +9 -3
  72. package/build/lib/{chunk-00jhhedd.js → chunk-hv8fgz23.js} +193 -343
  73. package/build/lib/{chunk-qpewr18w.js → chunk-jfekc6hy.js} +1 -1
  74. package/build/lib/{chunk-ptp3er5d.js → chunk-npq9ftzp.js} +4 -1
  75. package/build/lib/{chunk-y82jpv2x.js → chunk-p3ghsa83.js} +11 -10
  76. package/build/lib/{chunk-486zwtmg.js → chunk-p4pt2x7b.js} +1126 -51
  77. package/build/lib/{chunk-c5w6byvf.js → chunk-q7j8wy3a.js} +1 -1
  78. package/build/lib/{chunk-q3f1tjdx.js → chunk-qz91fj8n.js} +1 -1
  79. package/build/lib/{chunk-w9cs2h48.js → chunk-rcmken1g.js} +5 -5
  80. package/build/lib/{chunk-6vhf2dvv.js → chunk-sm1q467w.js} +1 -1
  81. package/build/lib/{chunk-0hqjfqxb.js → chunk-sqt67cq5.js} +137 -119
  82. package/build/lib/{chunk-dj7bk5xm.js → chunk-szr3nyqa.js} +10 -9
  83. package/build/lib/{chunk-tcdd68ax.js → chunk-xh9yr9y0.js} +5 -1
  84. package/build/lib/{chunk-qn9512q7.js → chunk-zdvz6e1v.js} +1 -1
  85. package/build/lib/core/agents/agentRuntime.d.ts +4 -0
  86. package/build/lib/core/agents/offSecAgent/index.js +11 -10
  87. package/build/lib/core/agents/offSecAgent/offensiveSecurityAgent.d.ts +1 -0
  88. package/build/lib/core/agents/offSecAgent/runtimeContext.d.ts +1 -0
  89. package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +1 -0
  90. package/build/lib/core/agents/offSecAgent/subagentSpawner.js +6 -5
  91. package/build/lib/core/agents/offSecAgent/tools/browserHeaderRouting.d.ts +2 -0
  92. package/build/lib/core/agents/offSecAgent/tools/getPage.d.ts +1 -2
  93. package/build/lib/core/agents/offSecAgent/tools/httpRequest.d.ts +1 -1
  94. package/build/lib/core/agents/offSecAgent/tools/index.js +10 -9
  95. package/build/lib/core/agents/offSecAgent/tools/scopeGuard.d.ts +7 -18
  96. package/build/lib/core/agents/offSecAgent/tools/types.d.ts +2 -1
  97. package/build/lib/core/agents/offSecAgent/tools/webSearch.d.ts +8 -0
  98. package/build/lib/core/agents/offSecAgent/types.d.ts +9 -1
  99. package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +11 -10
  100. package/build/lib/core/agents/specialized/attackSurface/prompts.d.ts +1 -1
  101. package/build/lib/core/agents/specialized/attackSurface/schemas.js +11 -10
  102. package/build/lib/core/agents/specialized/authenticationAgent/index.js +12 -11
  103. package/build/lib/core/agents/specialized/codeAgent/agent.js +11 -10
  104. package/build/lib/core/agents/specialized/findingJudge/agent.js +10 -9
  105. package/build/lib/core/agents/specialized/findingJudge/index.d.ts +1 -1
  106. package/build/lib/core/agents/specialized/findingJudge/index.js +4 -3
  107. package/build/lib/core/agents/specialized/patching/index.js +12 -11
  108. package/build/lib/core/agents/specialized/pentest/agent.js +11 -10
  109. package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +11 -10
  110. package/build/lib/core/ai/ai.d.ts +5 -2
  111. package/build/lib/core/ai/ai.js +3 -2
  112. package/build/lib/core/ai/index.d.ts +2 -0
  113. package/build/lib/core/ai/index.js +6 -3
  114. package/build/lib/core/ai/modelRuntime.d.ts +10 -0
  115. package/build/lib/core/ai/models/inference.d.ts +2 -0
  116. package/build/lib/core/ai/utils.d.ts +2 -0
  117. package/build/lib/core/ai/utils.js +3 -2
  118. package/build/lib/core/api/index.d.ts +2 -2
  119. package/build/lib/core/api/index.js +27 -21
  120. package/build/lib/core/api/issues.d.ts +125 -16
  121. package/build/lib/core/api/targetedPentest.js +12 -11
  122. package/build/lib/core/code-mode/capabilityInvoker.d.ts +53 -0
  123. package/build/lib/core/code-mode/index.d.ts +3 -0
  124. package/build/lib/core/code-mode/runtime.d.ts +42 -0
  125. package/build/lib/core/code-mode/tools.d.ts +16 -0
  126. package/build/lib/core/config/config.d.ts +2 -0
  127. package/build/lib/core/config/index.js +1 -1
  128. package/build/lib/core/findings/registry.js +4 -3
  129. package/build/lib/core/http/researchFetchToken.d.ts +2 -0
  130. package/build/lib/core/http/targetHeaders.d.ts +2 -0
  131. package/build/lib/core/http/targetScope.d.ts +3 -0
  132. package/build/lib/core/providers/types.d.ts +1 -1
  133. package/build/lib/core/providers/utils.d.ts +1 -1
  134. package/build/lib/core/session/index.js +3 -2
  135. package/build/lib/core/session/persistence.js +4 -3
  136. package/build/lib/core/tools/backends/index.js +3 -1
  137. package/build/lib/core/tools/backends/types.d.ts +2 -0
  138. package/build/lib/core/workflows/pentest.js +17 -16
  139. package/build/lib/core/workflows/seams.js +5 -4
  140. package/build/lib/core/workflows/whiteboxAttackSurface.d.ts +3 -3
  141. package/build/lib/core/workflows/whiteboxAttackSurface.js +13 -12
  142. package/build/lib/index.js +24 -23
  143. package/build/{logs-h3rxtq6w.js → logs-r1ene0wa.js} +17 -17
  144. package/build/module-ES6BEMUI-6ewavg9p.js +12 -0
  145. package/build/{native-rollout-evidence-kt4rd2bp.js → native-rollout-evidence-ddaypcmp.js} +4 -4
  146. package/build/{offesecAgent-e3ea8mr6.js → offesecAgent-g95mjx3s.js} +6 -6
  147. package/build/pentest-341705d4.js +23 -0
  148. package/build/{pentests-39hy0dre.js → pentests-tj609s19.js} +17 -17
  149. package/build/recordedRunClient-k9pqxwvp.js +11 -0
  150. package/build/{subagentSpawner-2sx2edxp.js → subagentSpawner-086t0dyq.js} +4 -4
  151. package/build/{targetedPentest-ttafan4t.js → targetedPentest-42vx9fxg.js} +8 -8
  152. package/build/{targets-fzte2kq9.js → targets-yt5mgbx2.js} +17 -17
  153. package/build/threatModel-d8mesare.js +24 -0
  154. package/build/{uninstall-0m52nyc0.js → uninstall-z7mexzkf.js} +1 -1
  155. package/build/{upload-cnnhkzgt.js → upload-sr2fekpm.js} +4 -4
  156. package/build/{utils-pq6pdv6p.js → utils-3m9rnw7g.js} +8 -4
  157. package/package.json +3 -1
  158. package/src/cli/agent-runs.test.ts +1 -4
  159. package/src/cli/issues.test.ts +234 -12
  160. package/src/cli/issues.ts +49 -9
  161. package/src/cli.ts +1 -0
  162. package/src/core/agents/agentRuntime.test.ts +16 -0
  163. package/src/core/agents/agentRuntime.ts +8 -0
  164. package/src/core/agents/offSecAgent/offensiveSecurityAgent.codeMode.test.ts +435 -0
  165. package/src/core/agents/offSecAgent/offensiveSecurityAgent.runtimeContext.test.ts +1 -0
  166. package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +6 -1
  167. package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +94 -8
  168. package/src/core/agents/offSecAgent/prompt.ts +2 -2
  169. package/src/core/agents/offSecAgent/recordedTools.test.ts +6 -1
  170. package/src/core/agents/offSecAgent/runtimeContext.test.ts +19 -0
  171. package/src/core/agents/offSecAgent/runtimeContext.ts +9 -2
  172. package/src/core/agents/offSecAgent/selectiveConstruction.publicPath.test.ts +2 -0
  173. package/src/core/agents/offSecAgent/selectiveConstruction.test.ts +6 -1
  174. package/src/core/agents/offSecAgent/subagentSpawner.hooks.test.ts +3 -0
  175. package/src/core/agents/offSecAgent/subagentSpawner.ts +7 -0
  176. package/src/core/agents/offSecAgent/tools/browserHeaderRouting.redirect.test.ts +141 -0
  177. package/src/core/agents/offSecAgent/tools/browserHeaderRouting.test.ts +106 -8
  178. package/src/core/agents/offSecAgent/tools/browserHeaderRouting.ts +56 -16
  179. package/src/core/agents/offSecAgent/tools/delegateAuth.ts +5 -0
  180. package/src/core/agents/offSecAgent/tools/documentFinding.ts +1 -0
  181. package/src/core/agents/offSecAgent/tools/executeCommand.test.ts +2 -1
  182. package/src/core/agents/offSecAgent/tools/getPage.test.ts +120 -0
  183. package/src/core/agents/offSecAgent/tools/getPage.ts +24 -19
  184. package/src/core/agents/offSecAgent/tools/httpBackends.test.ts +18 -25
  185. package/src/core/agents/offSecAgent/tools/httpRequest.body.test.ts +214 -0
  186. package/src/core/agents/offSecAgent/tools/httpRequest.test.ts +54 -0
  187. package/src/core/agents/offSecAgent/tools/httpRequest.ts +20 -11
  188. package/src/core/agents/offSecAgent/tools/playwrightMcp.test.ts +5 -0
  189. package/src/core/agents/offSecAgent/tools/playwrightMcp.ts +5 -2
  190. package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +2 -0
  191. package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +1 -0
  192. package/src/core/agents/offSecAgent/tools/sandboxPlaywright.test.ts +47 -0
  193. package/src/core/agents/offSecAgent/tools/sandboxPlaywright.ts +65 -2
  194. package/src/core/agents/offSecAgent/tools/scopeGuard.test.ts +121 -52
  195. package/src/core/agents/offSecAgent/tools/scopeGuard.ts +50 -30
  196. package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +1 -0
  197. package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +4 -3
  198. package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +1 -0
  199. package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +1 -0
  200. package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +1 -0
  201. package/src/core/agents/offSecAgent/tools/types.ts +2 -0
  202. package/src/core/agents/offSecAgent/tools/webSearch.test.ts +154 -0
  203. package/src/core/agents/offSecAgent/tools/webSearch.ts +119 -87
  204. package/src/core/agents/offSecAgent/types.ts +10 -0
  205. package/src/core/agents/specialized/attackSurface/blackboxAgent.ts +3 -3
  206. package/src/core/agents/specialized/attackSurface/prompts.ts +9 -45
  207. package/src/core/agents/specialized/findingJudge/index.ts +2 -0
  208. package/src/core/agents/specialized/pentest/agent.ts +1 -1
  209. package/src/core/ai/ai.effective-tools.test.ts +27 -2
  210. package/src/core/ai/ai.test.ts +34 -6
  211. package/src/core/ai/ai.ts +22 -2
  212. package/src/core/ai/compactionTelemetry.test.ts +167 -5
  213. package/src/core/ai/index.ts +6 -0
  214. package/src/core/ai/inference.test.ts +292 -0
  215. package/src/core/ai/modelRuntime.test.ts +58 -0
  216. package/src/core/ai/modelRuntime.ts +63 -0
  217. package/src/core/ai/models/concentrate.ts +13 -0
  218. package/src/core/ai/models/index.ts +10 -7
  219. package/src/core/ai/models/inference.ts +11 -0
  220. package/src/core/ai/models/models.test.ts +28 -0
  221. package/src/core/ai/models/openai.ts +6 -0
  222. package/src/core/ai/providers/concentrate.ts +1 -0
  223. package/src/core/ai/providers/openai-models.test.ts +5 -0
  224. package/src/core/ai/providers/pensarResponsesStream.test.ts +117 -0
  225. package/src/core/ai/providers/pensarResponsesStream.ts +20 -1
  226. package/src/core/ai/reasoning.test.ts +4 -0
  227. package/src/core/ai/reasoning.ts +2 -0
  228. package/src/core/ai/utils.ts +47 -12
  229. package/src/core/api/index.ts +4 -0
  230. package/src/core/api/issues.test.ts +80 -6
  231. package/src/core/api/issues.ts +137 -16
  232. package/src/core/api/recordedRun.loop.test.ts +67 -0
  233. package/src/core/code-mode/capabilityInvoker.test.ts +424 -0
  234. package/src/core/code-mode/capabilityInvoker.ts +383 -0
  235. package/src/core/code-mode/index.ts +8 -0
  236. package/src/core/code-mode/runtime.setup.test.ts +157 -0
  237. package/src/core/code-mode/runtime.test.ts +664 -0
  238. package/src/core/code-mode/runtime.ts +700 -0
  239. package/src/core/code-mode/tools.test.ts +375 -0
  240. package/src/core/code-mode/tools.ts +281 -0
  241. package/src/core/config/config.test.ts +7 -0
  242. package/src/core/config/config.ts +3 -0
  243. package/src/core/doctor.ts +1 -0
  244. package/src/core/http/agentNetworkPolicyFixture.test.ts +39 -0
  245. package/src/core/http/headers.contract.test.ts +100 -2
  246. package/src/core/http/researchFetchToken.test.ts +50 -0
  247. package/src/core/http/researchFetchToken.ts +63 -0
  248. package/src/core/http/targetHeaders.ts +26 -8
  249. package/src/core/http/targetScope.ts +47 -11
  250. package/src/core/providers/types.ts +7 -0
  251. package/src/core/providers/utils.ts +6 -1
  252. package/src/core/providers/verify.test.ts +54 -0
  253. package/src/core/providers/verify.ts +28 -0
  254. package/src/core/runtime/runRecoveryPlan.test.ts +18 -0
  255. package/src/core/runtime/runRecoveryPlan.ts +5 -0
  256. package/src/core/runtime/runTools.test.ts +2 -0
  257. package/src/core/runtime/runTools.ts +4 -1
  258. package/src/core/runtime/sqliteControlStore.test.ts +21 -0
  259. package/src/core/runtime/sqliteControlStore.ts +6 -1
  260. package/src/core/runtime/sqliteRecoveryStore.test.ts +24 -5
  261. package/src/core/tools/backends/local.test.ts +126 -0
  262. package/src/core/tools/backends/local.ts +256 -59
  263. package/src/core/tools/backends/policy.test.ts +36 -1
  264. package/src/core/tools/backends/policy.ts +9 -4
  265. package/src/core/tools/backends/types.ts +2 -0
  266. package/src/core/workflows/whiteboxAttackSurface.test.ts +40 -0
  267. package/src/core/workflows/whiteboxAttackSurface.ts +9 -4
  268. package/src/test-fixtures/agent-network-policy-v2.json +80 -0
  269. package/src/tui/components/chat/input-area.tsx +1 -0
  270. package/src/tui/components/commands/api-key-input.tsx +2 -0
  271. package/src/tui/components/commands/operator-wizard.tsx +2 -0
  272. package/src/tui/components/commands/provider-manager.tsx +3 -0
  273. package/src/tui/components/model-picker/ModelPicker.tsx +1 -0
  274. package/src/tui/components/model-picker/__tests__/reasoning-control.tsx +41 -14
  275. package/src/tui/components/model-picker/model-search.test.ts +11 -0
  276. package/src/tui/components/model-picker/model-search.ts +1 -0
  277. package/src/tui/components/model-picker/reasoning-control.test.ts +8 -2
  278. package/build/agent-htj3ww3e.js +0 -14
  279. package/build/agent-km3wss0b.js +0 -14
  280. package/build/blackboxAgent-g18ps9hs.js +0 -14
  281. package/build/pentest-qx9c8wtg.js +0 -23
  282. package/build/recordedRunClient-gra1x1y6.js +0 -11
  283. package/build/threatModel-nm449g6b.js +0 -24
@@ -3,7 +3,7 @@ import {
3
3
  init_structured,
4
4
  scopedLogger,
5
5
  init_lazyLogger
6
- } from "./cli-6g5p7cfd.js";
6
+ } from "./cli-twtnm4ms.js";
7
7
 
8
8
  // src/core/integrations/wandb/client.ts
9
9
  init_structured();
@@ -3,7 +3,7 @@ import {
3
3
  } from "./cli-h6y3bt60.js";
4
4
 
5
5
  // package.json
6
- var version = "2.7.0-canary.c5791908", package_default;
6
+ var version = "2.7.0-canary.dc4eeb73", package_default;
7
7
  var init_package = __esm(() => {
8
8
  package_default = {
9
9
  author: "Pensar",
@@ -21,6 +21,7 @@ var init_package = __esm(() => {
21
21
  "@aws-sdk/lib-storage": "3.1146.0",
22
22
  "@daytona/sdk": "0.222.0",
23
23
  "@googleapis/gmail": "^16.1.2",
24
+ "@jitl/quickjs-singlefile-cjs-release-sync": "0.32.0",
24
25
  "@microsoft/microsoft-graph-client": "^3.0.7",
25
26
  "@modelcontextprotocol/sdk": "^1.29.0",
26
27
  "@openrouter/ai-sdk-provider": "^2.9.1",
@@ -43,6 +44,7 @@ var init_package = __esm(() => {
43
44
  "mime-types": "^3.0.2",
44
45
  nodemailer: "^8.0.11",
45
46
  "p-limit": "^7.3.0",
47
+ "quickjs-emscripten": "^0.32.0",
46
48
  react: "^19.2.7",
47
49
  sharp: "^0.34.5",
48
50
  tldts: "^7.4.3",
@@ -3,7 +3,7 @@ import {
3
3
  get2,
4
4
  update2,
5
5
  init_config2
6
- } from "./cli-xpfw29g5.js";
6
+ } from "./cli-dzs7b8qg.js";
7
7
  import {
8
8
  __esm
9
9
  } from "./cli-h6y3bt60.js";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  AgentRuntime,
10
10
  defineAgent
11
- } from "./cli-jpjj10xv.js";
11
+ } from "./cli-c70xpef4.js";
12
12
  import {
13
13
  hasToolCall,
14
14
  init_dist,
@@ -16,7 +16,7 @@ import {
16
16
  init_structured,
17
17
  scopedLogger,
18
18
  init_lazyLogger
19
- } from "./cli-6g5p7cfd.js";
19
+ } from "./cli-twtnm4ms.js";
20
20
 
21
21
  // src/core/agents/specialized/authenticationAgent/agent.ts
22
22
  init_dist();
@@ -16,7 +16,7 @@ function getErrorMessage2(error) {
16
16
  return JSON.stringify(error);
17
17
  }
18
18
  var marker = "vercel.ai.error", symbol, _a, _b, AISDKError, name = "AI_APICallError", marker2, symbol2, _a2, _b2, APICallError, name2 = "AI_EmptyResponseBodyError", marker3, symbol3, _a3, _b3, EmptyResponseBodyError, name3 = "AI_InvalidArgumentError", marker4, symbol4, _a4, _b4, InvalidArgumentError, name4 = "AI_InvalidPromptError", marker5, symbol5, _a5, _b5, InvalidPromptError, name5 = "AI_InvalidResponseDataError", marker6, symbol6, _a6, _b6, InvalidResponseDataError, name6 = "AI_JSONParseError", marker7, symbol7, _a7, _b7, JSONParseError, name7 = "AI_LoadAPIKeyError", marker8, symbol8, _a8, _b8, LoadAPIKeyError, name8 = "AI_LoadSettingError", marker9, symbol9, _a9, _b9, LoadSettingError, name9 = "AI_NoContentGeneratedError", marker10, symbol10, _a10, _b10, NoContentGeneratedError, name10 = "AI_NoSuchModelError", marker11, symbol11, _a11, _b11, NoSuchModelError, name11 = "AI_TooManyEmbeddingValuesForCallError", marker12, symbol12, _a12, _b12, TooManyEmbeddingValuesForCallError, name12 = "AI_TypeValidationError", marker13, symbol13, _a13, _b13, TypeValidationError, name13 = "AI_UnsupportedFunctionalityError", marker14, symbol14, _a14, _b14, UnsupportedFunctionalityError;
19
- var init_dist3 = __esm(() => {
19
+ var init_dist4 = __esm(() => {
20
20
  symbol = Symbol.for(marker);
21
21
  AISDKError = class _AISDKError extends (_b = Error, _a = symbol, _b) {
22
22
  constructor({
@@ -277,4 +277,4 @@ Error message: ${getErrorMessage2(cause)}`,
277
277
  };
278
278
  });
279
279
 
280
- export { AISDKError, APICallError, EmptyResponseBodyError, getErrorMessage2, InvalidArgumentError, InvalidPromptError, InvalidResponseDataError, JSONParseError, LoadAPIKeyError, LoadSettingError, NoSuchModelError, TooManyEmbeddingValuesForCallError, TypeValidationError, UnsupportedFunctionalityError, init_dist3 };
280
+ export { AISDKError, APICallError, EmptyResponseBodyError, getErrorMessage2, InvalidArgumentError, InvalidPromptError, InvalidResponseDataError, JSONParseError, LoadAPIKeyError, LoadSettingError, NoSuchModelError, TooManyEmbeddingValuesForCallError, TypeValidationError, UnsupportedFunctionalityError, init_dist4 };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  OffensiveSecurityAgent
3
- } from "./cli-b3hef9fp.js";
3
+ } from "./cli-k72gvna3.js";
4
4
  import {
5
5
  startAgentExecution,
6
6
  resolveRootReasoning,
7
7
  persistRootReasoningOverride
8
- } from "./cli-7nrpp1ks.js";
8
+ } from "./cli-pthzx104.js";
9
9
 
10
10
  // src/core/api/offesecAgent.ts
11
11
  async function runOffensiveSecurityAgent2(input) {
@@ -5,7 +5,7 @@ import {
5
5
  NATIVE_EVIDENCE_AVAILABILITY_STATES,
6
6
  parseNativeRolloutEvidence,
7
7
  init_native_rollout_evidence
8
- } from "./cli-se8ae8z3.js";
8
+ } from "./cli-0rhfexax.js";
9
9
  import {
10
10
  init_zod
11
11
  } from "./cli-3qznjsnr.js";
@@ -4,10 +4,10 @@ import {
4
4
  openSqliteRunStore,
5
5
  resolveWorkerEndpoint,
6
6
  workerRequest
7
- } from "./cli-ps5hmkhw.js";
7
+ } from "./cli-2kxz8wct.js";
8
8
  import {
9
9
  launchLocalWorker
10
- } from "./cli-v084p264.js";
10
+ } from "./cli-r9kjgdr6.js";
11
11
 
12
12
  // src/core/runtime/recordedRunClient.ts
13
13
  import { setTimeout as delay } from "node:timers/promises";
@@ -1,12 +1,16 @@
1
1
  import {
2
2
  OffensiveSecurityAgent
3
- } from "./cli-b3hef9fp.js";
3
+ } from "./cli-k72gvna3.js";
4
4
 
5
5
  // src/core/agents/agentRuntime.ts
6
6
  function assembleAgentHooks(opts) {
7
7
  return {
8
8
  findingPolicy: opts.findingPolicy,
9
9
  toolExecutionContext: opts.toolExecutionContext,
10
+ toolProtocol: opts.toolProtocol,
11
+ directTools: opts.directTools,
12
+ nestedTools: opts.nestedTools,
13
+ onCodeCellComplete: opts.onCodeCellComplete,
10
14
  backends: opts.backends,
11
15
  subagentSpawner: opts.subagentSpawner,
12
16
  languageModelMiddleware: opts.languageModelMiddleware,
@@ -7,7 +7,7 @@ import {
7
7
  resolveItemHooks,
8
8
  spawnBatch2,
9
9
  inProcessSubagentSpawner2
10
- } from "./cli-40gstjf7.js";
10
+ } from "./cli-d5zzvezc.js";
11
11
  import {
12
12
  collectCommand,
13
13
  toGrpcPentestContext,
@@ -15,24 +15,24 @@ import {
15
15
  pLimit,
16
16
  PLAN_MODE_TOOL_NAMES,
17
17
  OffensiveSecurityAgent
18
- } from "./cli-b3hef9fp.js";
18
+ } from "./cli-k72gvna3.js";
19
19
  import {
20
20
  BlackboxAttackSurfaceAgent2
21
- } from "./cli-8wkays8e.js";
21
+ } from "./cli-pyrrf4ms.js";
22
22
  import {
23
23
  TargetedPentestAgent2,
24
24
  buildPentestSystemPrompt2
25
- } from "./cli-xb0pqkbk.js";
25
+ } from "./cli-hr8cdrm9.js";
26
26
  import {
27
27
  buildPentestReport,
28
28
  renderJson,
29
29
  renderMarkdown,
30
30
  REPORT_FILENAME_MD,
31
31
  REPORT_FILENAME_JSON
32
- } from "./cli-b8jmzd32.js";
32
+ } from "./cli-h7y81bkg.js";
33
33
  import {
34
34
  CodeAgent2
35
- } from "./cli-m57v3wm9.js";
35
+ } from "./cli-e6gwq7a9.js";
36
36
  import {
37
37
  WHITEBOX_APPS_DISCOVERY_SYSTEM_PROMPT2,
38
38
  WHITEBOX_ENDPOINT_DOCUMENTATION_SYSTEM_PROMPT,
@@ -41,7 +41,7 @@ import {
41
41
  AppInfoSchema2,
42
42
  AppsDiscoveryResultSchema2,
43
43
  DiscoverySummarySchema2
44
- } from "./cli-ygcbxb1m.js";
44
+ } from "./cli-hrb1gb3f.js";
45
45
  import {
46
46
  createThreatModelPrompt
47
47
  } from "./cli-q126f6ef.js";
@@ -53,11 +53,11 @@ import {
53
53
  init_structured,
54
54
  scopedLogger,
55
55
  init_lazyLogger
56
- } from "./cli-6g5p7cfd.js";
56
+ } from "./cli-twtnm4ms.js";
57
57
  import {
58
58
  newSessionId,
59
59
  init_id
60
- } from "./cli-se8ae8z3.js";
60
+ } from "./cli-0rhfexax.js";
61
61
  import {
62
62
  init_zod
63
63
  } from "./cli-3qznjsnr.js";
@@ -7190,8 +7190,9 @@ async function runWhiteboxAttackSurfaceApp(app, appIndex, input) {
7190
7190
  await discoverPagesAndApi();
7191
7191
  }
7192
7192
  }
7193
- } catch {
7193
+ } catch (error) {
7194
7194
  failed = true;
7195
+ log4.error(`Phase 2: app "${app.name}" FAILED`, error instanceof Error ? error : undefined, { error: String(error), app: app.name });
7195
7196
  }
7196
7197
  eventBus?.emit("subagent-complete", {
7197
7198
  subagentId: appNodeId,
@@ -8215,7 +8216,7 @@ async function runPentestSwarm2(input) {
8215
8216
  }
8216
8217
  async function runPentestWorkflow2(input) {
8217
8218
  if (input.fastStrike) {
8218
- const { runFastStrike } = await import("./fastStrike-z096431v.js");
8219
+ const { runFastStrike } = await import("./fastStrike-f5h0bwrp.js");
8219
8220
  return runFastStrike(input);
8220
8221
  }
8221
8222
  const {
@@ -6,12 +6,12 @@ import {
6
6
  getModelSettings,
7
7
  generateObjectResponse,
8
8
  init_ai2
9
- } from "./cli-6g5p7cfd.js";
9
+ } from "./cli-twtnm4ms.js";
10
10
  import {
11
11
  newSessionId,
12
12
  init_id,
13
13
  runWithNativeRolloutSession
14
- } from "./cli-se8ae8z3.js";
14
+ } from "./cli-0rhfexax.js";
15
15
  import {
16
16
  init_zod
17
17
  } from "./cli-3qznjsnr.js";
@@ -909,7 +909,7 @@ async function spawnBatch2(spawner, requests, opts, limiter) {
909
909
  });
910
910
  }
911
911
  async function runSpawnedPentestWorker(spec, input) {
912
- const { TargetedPentestAgent } = await import("./agent-x8nf3k1v.js");
912
+ const { TargetedPentestAgent } = await import("./agent-5k6qd29v.js");
913
913
  const hooks = resolveItemHooks(input.hooks, input.seams, spec, 0);
914
914
  const agent = new TargetedPentestAgent({
915
915
  target: spec.target,
@@ -965,6 +965,7 @@ var runPentestChild = async (spec, ctx) => {
965
965
  backends: ctx.backends,
966
966
  sandbox: ctx.sandbox,
967
967
  languageModelMiddleware: ctx.languageModelMiddleware,
968
+ toolProtocol: ctx.toolProtocol,
968
969
  usageRecorder: ctx.usageRecorder,
969
970
  toolExecutionContext: ctx.toolExecutionContext,
970
971
  streamIdFactory: ctx.streamIdFactory
@@ -980,7 +981,7 @@ var runPentestChild = async (spec, ctx) => {
980
981
  };
981
982
  };
982
983
  var runCodeChild = async (spec, ctx) => {
983
- const { CodeAgent } = await import("./agent-htj3ww3e.js");
984
+ const { CodeAgent } = await import("./agent-02pnejnw.js");
984
985
  const agent = new CodeAgent({
985
986
  findingPolicy: ctx.findingPolicy,
986
987
  codebasePath: spec.codebasePath,
@@ -1003,6 +1004,7 @@ var runCodeChild = async (spec, ctx) => {
1003
1004
  onStepFinish: ctx.onStepFinish,
1004
1005
  onCacheMetrics: ctx.onCacheMetrics,
1005
1006
  languageModelMiddleware: ctx.languageModelMiddleware,
1007
+ toolProtocol: ctx.toolProtocol,
1006
1008
  usageRecorder: ctx.usageRecorder,
1007
1009
  toolExecutionContext: ctx.toolExecutionContext,
1008
1010
  streamIdFactory: ctx.streamIdFactory
@@ -1010,7 +1012,7 @@ var runCodeChild = async (spec, ctx) => {
1010
1012
  return { run: () => agent.consume(), drained: () => agent.drained };
1011
1013
  };
1012
1014
  var runWhiteboxChild = async (spec, ctx) => {
1013
- const { WhiteboxAttackSurfaceAgent } = await import("./index-vq0132nv.js");
1015
+ const { WhiteboxAttackSurfaceAgent } = await import("./index-p1en670g.js");
1014
1016
  const agent = new WhiteboxAttackSurfaceAgent({
1015
1017
  findingPolicy: ctx.findingPolicy,
1016
1018
  codebasePath: spec.codebasePath,
@@ -1024,6 +1026,7 @@ var runWhiteboxChild = async (spec, ctx) => {
1024
1026
  sandbox: ctx.sandbox,
1025
1027
  backends: ctx.backends,
1026
1028
  languageModelMiddleware: ctx.languageModelMiddleware,
1029
+ toolProtocol: ctx.toolProtocol,
1027
1030
  usageRecorder: ctx.usageRecorder,
1028
1031
  toolExecutionContext: ctx.toolExecutionContext,
1029
1032
  streamIdFactory: ctx.streamIdFactory
@@ -1031,7 +1034,7 @@ var runWhiteboxChild = async (spec, ctx) => {
1031
1034
  return { run: () => agent.consume(), drained: () => agent.drained };
1032
1035
  };
1033
1036
  var runBlackboxChild = async (spec, ctx) => {
1034
- const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-g18ps9hs.js");
1037
+ const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-zfvw66gx.js");
1035
1038
  const agent = new BlackboxAttackSurfaceAgent({
1036
1039
  findingPolicy: ctx.findingPolicy,
1037
1040
  target: spec.target,
@@ -1044,6 +1047,7 @@ var runBlackboxChild = async (spec, ctx) => {
1044
1047
  sandbox: ctx.sandbox,
1045
1048
  backends: ctx.backends,
1046
1049
  languageModelMiddleware: ctx.languageModelMiddleware,
1050
+ toolProtocol: ctx.toolProtocol,
1047
1051
  usageRecorder: ctx.usageRecorder,
1048
1052
  toolExecutionContext: ctx.toolExecutionContext,
1049
1053
  streamIdFactory: ctx.streamIdFactory
@@ -1051,7 +1055,7 @@ var runBlackboxChild = async (spec, ctx) => {
1051
1055
  return { run: () => agent.consume(), drained: () => agent.drained };
1052
1056
  };
1053
1057
  var runAuthChild = async (spec, ctx) => {
1054
- const { runAuthenticationAgent } = await import("./agent-km3wss0b.js");
1058
+ const { runAuthenticationAgent } = await import("./agent-7k53k922.js");
1055
1059
  return {
1056
1060
  run: () => runAuthenticationAgent({
1057
1061
  findingPolicy: ctx.findingPolicy,
@@ -1067,6 +1071,7 @@ var runAuthChild = async (spec, ctx) => {
1067
1071
  secretValues: ctx.secretValues,
1068
1072
  backends: ctx.backends,
1069
1073
  languageModelMiddleware: ctx.languageModelMiddleware,
1074
+ toolProtocol: ctx.toolProtocol,
1070
1075
  usageRecorder: ctx.usageRecorder,
1071
1076
  toolExecutionContext: ctx.toolExecutionContext,
1072
1077
  streamIdFactory: ctx.streamIdFactory
@@ -1074,7 +1079,7 @@ var runAuthChild = async (spec, ctx) => {
1074
1079
  };
1075
1080
  };
1076
1081
  var runJudgeChild = async (spec, ctx) => {
1077
- const { judgeFinding } = await import("./index-cn1pgs79.js");
1082
+ const { judgeFinding } = await import("./index-h41d5ahy.js");
1078
1083
  return {
1079
1084
  run: () => judgeFinding(spec.judgeInput, {
1080
1085
  waitForDrain: spec.waitForDrain,
@@ -1088,6 +1093,7 @@ var runJudgeChild = async (spec, ctx) => {
1088
1093
  backends: ctx.backends,
1089
1094
  target: spec.target,
1090
1095
  languageModelMiddleware: ctx.languageModelMiddleware,
1096
+ toolProtocol: ctx.toolProtocol,
1091
1097
  usageRecorder: ctx.usageRecorder,
1092
1098
  toolExecutionContext: ctx.toolExecutionContext,
1093
1099
  streamIdFactory: ctx.streamIdFactory
@@ -1,10 +1,10 @@
1
- import {
2
- getCurrentVersion,
3
- init_installation
4
- } from "./cli-vb4den7a.js";
5
1
  import {
6
2
  init_zod
7
3
  } from "./cli-3qznjsnr.js";
4
+ import {
5
+ getCurrentVersion,
6
+ init_installation
7
+ } from "./cli-5c420jyh.js";
8
8
  import {
9
9
  NEVER,
10
10
  string,
@@ -300,6 +300,7 @@ function applyEnvFallbacks(parsedConfig) {
300
300
  googleAPIKey: parsedConfig.googleAPIKey ?? process.env.GOOGLE_GENERATIVE_AI_API_KEY,
301
301
  openRouterAPIKey: parsedConfig.openRouterAPIKey ?? process.env.OPENROUTER_API_KEY,
302
302
  concentrateAPIKey: parsedConfig.concentrateAPIKey ?? process.env.CONCENTRATE_API_KEY,
303
+ inferenceAPIKey: parsedConfig.inferenceAPIKey ?? process.env.INFERENCE_API_KEY,
303
304
  inceptionAPIKey: parsedConfig.inceptionAPIKey ?? process.env.INCEPTION_API_KEY,
304
305
  hoonifyAPIKey: parsedConfig.hoonifyAPIKey ?? process.env.HOONIFY_API_KEY,
305
306
  hoonifyModels: undefined,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentRuntime,
3
3
  defineAgent
4
- } from "./cli-jpjj10xv.js";
4
+ } from "./cli-c70xpef4.js";
5
5
  import {
6
6
  stepCountIs2,
7
7
  init_dist
8
- } from "./cli-6g5p7cfd.js";
8
+ } from "./cli-twtnm4ms.js";
9
9
 
10
10
  // src/core/agents/specialized/codeAgent/agent.ts
11
11
  init_dist();
@@ -4,7 +4,7 @@ import {
4
4
  ValidatedCweEntrySchema,
5
5
  hasCanonicalName,
6
6
  EvidenceFileEntrySchema
7
- } from "./cli-b3hef9fp.js";
7
+ } from "./cli-k72gvna3.js";
8
8
  import {
9
9
  init_zod
10
10
  } from "./cli-3qznjsnr.js";
@@ -7,7 +7,7 @@ import {
7
7
  REPORT_ERROR_TOOL_NAME,
8
8
  createReportErrorTool,
9
9
  PentestReportedError
10
- } from "./cli-b3hef9fp.js";
10
+ } from "./cli-k72gvna3.js";
11
11
  import {
12
12
  GOOGLE_SIGNIN_PROMPT_GUIDANCE,
13
13
  browserEngineForGoogleSignIn
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  AgentRuntime,
20
20
  defineAgent
21
- } from "./cli-jpjj10xv.js";
21
+ } from "./cli-c70xpef4.js";
22
22
  import {
23
23
  hasToolCall,
24
24
  init_dist,
@@ -26,7 +26,7 @@ import {
26
26
  init_structured,
27
27
  scopedLogger,
28
28
  init_lazyLogger
29
- } from "./cli-6g5p7cfd.js";
29
+ } from "./cli-twtnm4ms.js";
30
30
  import {
31
31
  init_zod
32
32
  } from "./cli-3qznjsnr.js";
@@ -226,7 +226,7 @@ var SECTION_HELPER_FILE_WORKSPACE = (helperWorkspaceRoot, hasSourceAccess = fals
226
226
  const sourceRule = hasSourceAccess ? "Source access remains read-only. Helper-file tools do not authorize edits to the target repository, including through shell commands." : "The black-box rule still applies: helper scripts are your own code — never use any tool to read the target's source code.";
227
227
  return `Helper Script File Workspace:
228
228
  - Your native file tools (read_file, list_files, glob, grep, create_file, update_file, apply_patch) operate ONLY inside your file workspace: ${root}. Relative paths resolve against it. Ordinary paths outside it — target source code, session logs, retained http_request output — are NOT reachable through these tools. The read_file and grep tools also accept tool-output: references returned by execute_command or grep, solely to inspect your own captured tool results.
229
- - For stateful, repetitive, concurrent, or multi-stage work, build an editable helper script there and iterate: create_file / update_file / apply_patch to write and refine it, read_file to inspect it, and execute_command to run it (reference the script by its absolute path — your shell does not start inside the file workspace).
229
+ - When exec is available, implement payload generation, loops, tool composition, and response processing directly in its JavaScript cells. Use the file workspace for durable artifacts and for helper programs that require OS tools or dependencies unavailable in exec. When exec is unavailable, use helper scripts for repetitive or multi-stage work. Write and refine helpers with create_file / update_file / apply_patch, inspect them with read_file, and run them with execute_command using absolute paths — your shell does not start inside the file workspace.
230
230
  - Syntax-check or compile new or changed helpers with the runtime's available tools before execution. Inspect the exit status and output, repair failures, and rerun; a successful file write alone does not establish that the helper works or proves a finding.
231
231
  - Keep credentials in runtime environment references rather than embedding literal secrets in generated source.
232
232
  - For captured command output, use the returned tool-output: reference with read_file or grep. To inspect other saved output with native tools, save it under the file workspace first (e.g. redirect command output to a file there).
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  EndpointTransportEnum,
3
3
  GrpcEndpointMetadataSchema
4
- } from "./cli-b3hef9fp.js";
4
+ } from "./cli-k72gvna3.js";
5
5
  import {
6
6
  AgentRuntime,
7
7
  defineAgent
8
- } from "./cli-jpjj10xv.js";
8
+ } from "./cli-c70xpef4.js";
9
9
  import {
10
10
  stepCountIs2,
11
11
  init_dist
12
- } from "./cli-6g5p7cfd.js";
12
+ } from "./cli-twtnm4ms.js";
13
13
  import {
14
14
  tool
15
- } from "./cli-pwm29ks7.js";
15
+ } from "./cli-ychebg4z.js";
16
16
  import {
17
17
  init_zod
18
18
  } from "./cli-3qznjsnr.js";
@@ -36,6 +36,12 @@ var init_types = __esm(() => {
36
36
  description: "Access multiple AI models through one API",
37
37
  requiresAPIKey: true
38
38
  },
39
+ {
40
+ id: "inference",
41
+ name: "Inference.net",
42
+ description: "DeepSeek V4.1 Flash 1017 Cyber (approved access required)",
43
+ requiresAPIKey: true
44
+ },
39
45
  {
40
46
  id: "inception",
41
47
  name: "Inception",