@pensar/apex 2.7.0-canary.89464e65 → 2.7.0-canary.96a80cdd

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 (240) hide show
  1. package/README.md +13 -0
  2. package/build/agent-2z29yw2f.js +14 -0
  3. package/build/agent-e5k7edth.js +14 -0
  4. package/build/{agent-s3v1x1pf.js → agent-hb0n840w.js} +6 -6
  5. package/build/{agent-9wkhsvd6.js → agent-ka6b3e6q.js} +7 -7
  6. package/build/{agent-runs-gp8p07gh.js → agent-runs-f2wfmfkt.js} +20 -20
  7. package/build/{apps-2ftfakca.js → apps-3sy3pdmy.js} +17 -17
  8. package/build/{auth-cn7606et.js → auth-7aygc35y.js} +17 -17
  9. package/build/blackboxAgent-1p737dt1.js +14 -0
  10. package/build/{blackboxPentest-mm9w83s4.js → blackboxPentest-g6e2mhka.js} +12 -12
  11. package/build/{cli-kgsempyx.js → cli-006njjt1.js} +2 -2
  12. package/build/{cli-se8ae8z3.js → cli-0rhfexax.js} +3 -3
  13. package/build/{cli-jezvey18.js → cli-2sx4qxgm.js} +4 -4
  14. package/build/{cli-qgttmrdw.js → cli-3chhsshd.js} +3 -1
  15. package/build/{cli-nfdc84d2.js → cli-3gq41m8n.js} +2 -2
  16. package/build/cli-4fkaes4s.js +1199 -0
  17. package/build/{cli-vm4s17z7.js → cli-60k7mepv.js} +2 -2
  18. package/build/{cli-gsaf4jk3.js → cli-7898kznf.js} +2 -2
  19. package/build/{cli-jam99yar.js → cli-a7hj3v06.js} +1 -1
  20. package/build/{cli-xcy2vxj2.js → cli-ak23knae.js} +1 -1
  21. package/build/{cli-0yjapx5n.js → cli-brtfdg49.js} +2 -2
  22. package/build/{cli-c04tfjd5.js → cli-e887rt5y.js} +1 -1
  23. package/build/{cli-kbs4zaye.js → cli-ev28r4sw.js} +14 -8
  24. package/build/{cli-mtg8qnv2.js → cli-gq554agh.js} +1 -1
  25. package/build/{cli-h738x46d.js → cli-h22v29jf.js} +24 -13
  26. package/build/{cli-0gsr4hx2.js → cli-j0497qpt.js} +1 -1
  27. package/build/{cli-3gt761d2.js → cli-j0wfj2kw.js} +6 -0
  28. package/build/{cli-e0pzprpf.js → cli-jv6064md.js} +781 -262
  29. package/build/{cli-p5qyq33j.js → cli-n5dqdbwn.js} +1 -1
  30. package/build/{cli-g6bgndhs.js → cli-rpbhg3cn.js} +4 -4
  31. package/build/{cli-q1xs3e43.js → cli-s7d915q8.js} +5 -4
  32. package/build/{cli-cgwm7tnj.js → cli-tbyd9myq.js} +10 -10
  33. package/build/{cli-dkkfyzjw.js → cli-wve4bh9n.js} +2 -2
  34. package/build/{cli-q6y3qj7s.js → cli-xk684kez.js} +3749 -71
  35. package/build/{cli-bfvp9zqk.js → cli-xvz8tcza.js} +5 -1
  36. package/build/{cli-djh5mphz.js → cli-y2mb60wy.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-jssggjxh.js → config-dk9dkh9s.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-3ep09355.js → fastStrike-59as1tjn.js} +6 -6
  44. package/build/ffi-pf145jhd.js +78 -0
  45. package/build/{fixes-gd5shnz6.js → fixes-gv0tzmrx.js} +17 -17
  46. package/build/{index-1f41pypj.js → index-3ervx25v.js} +1 -1
  47. package/build/{index-5r1tymwt.js → index-43s4cm15.js} +9 -9
  48. package/build/{index-ka68r3bw.js → index-5ktpbb7s.js} +65 -26
  49. package/build/{index-nczwtn2v.js → index-bgk8enmw.js} +1 -1
  50. package/build/{index-qnyevb6q.js → index-ffe5c30s.js} +13 -13
  51. package/build/{index-dmjjchhm.js → index-gt2h25ha.js} +7 -7
  52. package/build/{index-k50nby3j.js → index-p3aehtqt.js} +21 -17
  53. package/build/{index-m9nrk2a7.js → index-vv5s14qm.js} +2 -2
  54. package/build/{index-rsm0hj49.js → index-wt44jgfm.js} +5 -5
  55. package/build/{index-rx7xv8w4.js → index-y2y61vkm.js} +5 -4
  56. package/build/{issues-cwyb53df.js → issues-tsg276ha.js} +52 -25
  57. package/build/{knowledge-x6hs5jyh.js → knowledge-25frej6d.js} +17 -17
  58. package/build/{lance-70xs70p8.js → lance-mpx9k2v4.js} +8 -8
  59. package/build/lib/{chunk-4km07sfg.js → chunk-1q8wesh8.js} +2 -2
  60. package/build/lib/{chunk-vkrj3b2z.js → chunk-3a3zsgva.js} +9 -3
  61. package/build/lib/{chunk-me22v4c1.js → chunk-44kbg9m4.js} +1 -1
  62. package/build/lib/{chunk-4kg6p1xw.js → chunk-4xgq9vfr.js} +28 -8
  63. package/build/lib/{chunk-z1t594p5.js → chunk-5263t54a.js} +5 -5
  64. package/build/lib/{chunk-1hebds13.js → chunk-6m2yh985.js} +524 -13
  65. package/build/lib/{chunk-x68pn7bp.js → chunk-77c3z63z.js} +2 -2
  66. package/build/lib/{chunk-xn7eyk6b.js → chunk-9134mebx.js} +6 -6
  67. package/build/lib/{chunk-7q8xksn0.js → chunk-93trdp46.js} +1124 -49
  68. package/build/lib/{chunk-1kz4webg.js → chunk-e800v4r1.js} +1 -1
  69. package/build/lib/{chunk-kz5yy1ky.js → chunk-eekk13qk.js} +2 -1
  70. package/build/lib/{chunk-ya86kxve.js → chunk-enbbw98a.js} +1 -1
  71. package/build/lib/{chunk-597t9bzg.js → chunk-f194w4g6.js} +1 -1
  72. package/build/lib/{chunk-tk6ecgrt.js → chunk-fgvw6gt4.js} +27 -14
  73. package/build/lib/{chunk-qavk8gbk.js → chunk-gy5cqvcn.js} +11 -11
  74. package/build/lib/{chunk-mhbjqp44.js → chunk-hwaqg5wc.js} +1 -1
  75. package/build/lib/{chunk-qs28cz8z.js → chunk-kq5a62av.js} +10 -10
  76. package/build/lib/{chunk-mkknp0ac.js → chunk-mrh9pp6e.js} +1 -1
  77. package/build/lib/{chunk-ekq0ja1q.js → chunk-pv8zyfen.js} +1 -1
  78. package/build/lib/{chunk-map8j4b2.js → chunk-qrnjk6v3.js} +2 -2
  79. package/build/lib/{chunk-hvn14478.js → chunk-qzkqsczt.js} +4 -1
  80. package/build/lib/{chunk-dwce2aec.js → chunk-rs86be3y.js} +11 -11
  81. package/build/lib/{chunk-fdwbysn1.js → chunk-sc8yc711.js} +1 -1
  82. package/build/lib/{chunk-yfj9marz.js → chunk-v91q65qy.js} +1 -1
  83. package/build/lib/{chunk-cxj5f5qk.js → chunk-x4jmgdxr.js} +1 -1
  84. package/build/lib/{chunk-te11ybp9.js → chunk-x8rfrceb.js} +5 -1
  85. package/build/lib/core/agents/agentRuntime.d.ts +4 -0
  86. package/build/lib/core/agents/offSecAgent/index.js +9 -9
  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 -6
  91. package/build/lib/core/agents/offSecAgent/tools/httpRequest.d.ts +1 -1
  92. package/build/lib/core/agents/offSecAgent/tools/index.js +8 -8
  93. package/build/lib/core/agents/offSecAgent/tools/types.d.ts +2 -1
  94. package/build/lib/core/agents/offSecAgent/types.d.ts +9 -1
  95. package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +11 -11
  96. package/build/lib/core/agents/specialized/attackSurface/schemas.js +11 -11
  97. package/build/lib/core/agents/specialized/authenticationAgent/index.js +12 -12
  98. package/build/lib/core/agents/specialized/codeAgent/agent.js +11 -11
  99. package/build/lib/core/agents/specialized/findingJudge/agent.js +10 -10
  100. package/build/lib/core/agents/specialized/findingJudge/index.d.ts +1 -1
  101. package/build/lib/core/agents/specialized/findingJudge/index.js +4 -4
  102. package/build/lib/core/agents/specialized/patching/index.js +12 -12
  103. package/build/lib/core/agents/specialized/pentest/agent.js +11 -11
  104. package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +11 -11
  105. package/build/lib/core/ai/ai.d.ts +5 -2
  106. package/build/lib/core/ai/ai.js +3 -3
  107. package/build/lib/core/ai/index.d.ts +2 -0
  108. package/build/lib/core/ai/index.js +6 -4
  109. package/build/lib/core/ai/modelRuntime.d.ts +10 -0
  110. package/build/lib/core/ai/models/inference.d.ts +2 -0
  111. package/build/lib/core/ai/models/openrouter.d.ts +1 -0
  112. package/build/lib/core/ai/providers/concentrate.d.ts +2 -0
  113. package/build/lib/core/ai/utils.d.ts +2 -0
  114. package/build/lib/core/ai/utils.js +3 -3
  115. package/build/lib/core/api/index.d.ts +2 -2
  116. package/build/lib/core/api/index.js +25 -21
  117. package/build/lib/core/api/issues.d.ts +125 -16
  118. package/build/lib/core/api/targetedPentest.js +12 -12
  119. package/build/lib/core/code-mode/capabilityInvoker.d.ts +53 -0
  120. package/build/lib/core/code-mode/index.d.ts +3 -0
  121. package/build/lib/core/code-mode/runtime.d.ts +42 -0
  122. package/build/lib/core/code-mode/tools.d.ts +16 -0
  123. package/build/lib/core/config/config.d.ts +2 -0
  124. package/build/lib/core/config/index.js +1 -1
  125. package/build/lib/core/findings/registry.js +4 -4
  126. package/build/lib/core/providers/types.d.ts +1 -1
  127. package/build/lib/core/providers/utils.d.ts +1 -1
  128. package/build/lib/core/session/index.js +3 -3
  129. package/build/lib/core/session/persistence.js +4 -4
  130. package/build/lib/core/tools/backends/index.js +3 -3
  131. package/build/lib/core/workflows/pentest.js +17 -17
  132. package/build/lib/core/workflows/seams.js +5 -5
  133. package/build/lib/core/workflows/whiteboxAttackSurface.js +13 -13
  134. package/build/lib/index.js +24 -24
  135. package/build/{logs-6wkksqj8.js → logs-pb1c7tv4.js} +17 -17
  136. package/build/module-ES6BEMUI-6ewavg9p.js +12 -0
  137. package/build/{native-rollout-evidence-hacsahhn.js → native-rollout-evidence-mzmspvzz.js} +4 -4
  138. package/build/{offesecAgent-4s09p04g.js → offesecAgent-1x8wcabx.js} +6 -6
  139. package/build/pentest-fng54wkx.js +23 -0
  140. package/build/{pentests-m8fsm5rq.js → pentests-1d5y9rnt.js} +17 -17
  141. package/build/recordedRunClient-mcj422af.js +11 -0
  142. package/build/{subagentSpawner-4azv3666.js → subagentSpawner-qrrxtjsv.js} +4 -4
  143. package/build/{targetedPentest-4rqgtnea.js → targetedPentest-vgxbfacc.js} +8 -8
  144. package/build/{targets-gye82gfz.js → targets-ppa62x1f.js} +17 -17
  145. package/build/threatModel-0466jh7q.js +24 -0
  146. package/build/{uninstall-m0eb59eb.js → uninstall-v2n2wqyc.js} +1 -1
  147. package/build/{upload-x0dtvrcd.js → upload-4n27max1.js} +4 -4
  148. package/build/{utils-zemq4m3r.js → utils-3any68fn.js} +8 -4
  149. package/package.json +3 -1
  150. package/src/cli/issues.test.ts +217 -11
  151. package/src/cli/issues.ts +49 -9
  152. package/src/cli.ts +1 -0
  153. package/src/core/agents/agentRuntime.test.ts +16 -0
  154. package/src/core/agents/agentRuntime.ts +8 -0
  155. package/src/core/agents/offSecAgent/offensiveSecurityAgent.codeMode.test.ts +435 -0
  156. package/src/core/agents/offSecAgent/offensiveSecurityAgent.runtimeContext.test.ts +1 -0
  157. package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +1 -0
  158. package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +94 -8
  159. package/src/core/agents/offSecAgent/prompt.ts +1 -1
  160. package/src/core/agents/offSecAgent/recordedTools.test.ts +1 -0
  161. package/src/core/agents/offSecAgent/runtimeContext.test.ts +19 -0
  162. package/src/core/agents/offSecAgent/runtimeContext.ts +9 -2
  163. package/src/core/agents/offSecAgent/selectiveConstruction.publicPath.test.ts +2 -0
  164. package/src/core/agents/offSecAgent/selectiveConstruction.test.ts +1 -0
  165. package/src/core/agents/offSecAgent/subagentSpawner.hooks.test.ts +3 -0
  166. package/src/core/agents/offSecAgent/subagentSpawner.ts +7 -0
  167. package/src/core/agents/offSecAgent/tools/delegateAuth.ts +1 -0
  168. package/src/core/agents/offSecAgent/tools/documentFinding.ts +1 -0
  169. package/src/core/agents/offSecAgent/tools/httpRequest.body.test.ts +214 -0
  170. package/src/core/agents/offSecAgent/tools/httpRequest.ts +20 -11
  171. package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +2 -0
  172. package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +1 -0
  173. package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +1 -0
  174. package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +1 -0
  175. package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +1 -0
  176. package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +1 -0
  177. package/src/core/agents/offSecAgent/tools/types.ts +2 -0
  178. package/src/core/agents/offSecAgent/types.ts +10 -0
  179. package/src/core/agents/specialized/findingJudge/index.ts +2 -0
  180. package/src/core/agents/specialized/pentest/agent.ts +1 -1
  181. package/src/core/ai/ai.effective-tools.test.ts +27 -2
  182. package/src/core/ai/ai.test.ts +34 -6
  183. package/src/core/ai/ai.ts +22 -2
  184. package/src/core/ai/index.ts +6 -0
  185. package/src/core/ai/inference.test.ts +292 -0
  186. package/src/core/ai/modelRuntime.test.ts +58 -0
  187. package/src/core/ai/modelRuntime.ts +63 -0
  188. package/src/core/ai/models/concentrate.ts +132 -0
  189. package/src/core/ai/models/index.ts +13 -8
  190. package/src/core/ai/models/inference.ts +11 -0
  191. package/src/core/ai/models/models.test.ts +28 -0
  192. package/src/core/ai/models/openai.ts +6 -0
  193. package/src/core/ai/models/openrouter-reasoning.json +68 -2
  194. package/src/core/ai/models/openrouter.ts +132 -3
  195. package/src/core/ai/providers/concentrate.ts +96 -0
  196. package/src/core/ai/providers/openai-models.test.ts +5 -0
  197. package/src/core/ai/providers/qwen-models.test.ts +265 -0
  198. package/src/core/ai/reasoning.test.ts +4 -0
  199. package/src/core/ai/reasoning.ts +5 -0
  200. package/src/core/ai/utils.ts +30 -0
  201. package/src/core/api/index.ts +4 -0
  202. package/src/core/api/issues.test.ts +80 -6
  203. package/src/core/api/issues.ts +137 -16
  204. package/src/core/api/recordedRun.loop.test.ts +67 -0
  205. package/src/core/code-mode/capabilityInvoker.test.ts +424 -0
  206. package/src/core/code-mode/capabilityInvoker.ts +383 -0
  207. package/src/core/code-mode/index.ts +8 -0
  208. package/src/core/code-mode/runtime.setup.test.ts +157 -0
  209. package/src/core/code-mode/runtime.test.ts +664 -0
  210. package/src/core/code-mode/runtime.ts +700 -0
  211. package/src/core/code-mode/tools.test.ts +375 -0
  212. package/src/core/code-mode/tools.ts +281 -0
  213. package/src/core/config/config.test.ts +7 -0
  214. package/src/core/config/config.ts +3 -0
  215. package/src/core/doctor.ts +1 -0
  216. package/src/core/providers/types.ts +7 -0
  217. package/src/core/providers/utils.ts +6 -1
  218. package/src/core/providers/verify.test.ts +54 -0
  219. package/src/core/providers/verify.ts +28 -0
  220. package/src/core/runtime/runRecoveryPlan.test.ts +18 -0
  221. package/src/core/runtime/runRecoveryPlan.ts +5 -0
  222. package/src/core/runtime/runTools.test.ts +2 -0
  223. package/src/core/runtime/runTools.ts +4 -1
  224. package/src/core/runtime/sqliteControlStore.test.ts +21 -0
  225. package/src/core/runtime/sqliteControlStore.ts +6 -1
  226. package/src/tui/components/chat/input-area.tsx +1 -0
  227. package/src/tui/components/commands/api-key-input.tsx +2 -0
  228. package/src/tui/components/commands/operator-wizard.tsx +2 -0
  229. package/src/tui/components/commands/provider-manager.tsx +3 -0
  230. package/src/tui/components/model-picker/ModelPicker.tsx +1 -0
  231. package/src/tui/components/model-picker/__tests__/reasoning-control.tsx +41 -14
  232. package/src/tui/components/model-picker/model-search.test.ts +11 -0
  233. package/src/tui/components/model-picker/model-search.ts +1 -0
  234. package/src/tui/components/model-picker/reasoning-control.test.ts +8 -2
  235. package/build/agent-0hqzqt56.js +0 -14
  236. package/build/agent-2445x132.js +0 -14
  237. package/build/blackboxAgent-zzhmqs0h.js +0 -14
  238. package/build/pentest-xz47r03e.js +0 -23
  239. package/build/recordedRunClient-954nd7j6.js +0 -11
  240. package/build/threatModel-mx4d5dpm.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
+ runAuthenticationAgent2
3
+ } from "./cli-006njjt1.js";
4
+ import"./cli-xvz8tcza.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-xk684kez.js";
7
+ import"./cli-ev28r4sw.js";
8
+ import"./cli-jv6064md.js";
9
+ import"./cli-a7hj3v06.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-gq554agh.js";
12
+ export {
13
+ runAuthenticationAgent2 as runAuthenticationAgent
14
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ CodeAgent2
3
+ } from "./cli-wve4bh9n.js";
4
+ import"./cli-xvz8tcza.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-xk684kez.js";
7
+ import"./cli-ev28r4sw.js";
8
+ import"./cli-jv6064md.js";
9
+ import"./cli-a7hj3v06.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-gq554agh.js";
12
+ export {
13
+ CodeAgent2 as CodeAgent
14
+ };
@@ -1,16 +1,16 @@
1
- import"./cli-kbs4zaye.js";
2
- import"./cli-mtg8qnv2.js";
3
- import"./cli-jam99yar.js";
4
- import"./cli-q6y3qj7s.js";
1
+ import"./cli-ev28r4sw.js";
2
+ import"./cli-gq554agh.js";
3
+ import"./cli-a7hj3v06.js";
4
+ import"./cli-xk684kez.js";
5
5
  import {
6
6
  AgentRuntime,
7
7
  defineAgent
8
- } from "./cli-bfvp9zqk.js";
8
+ } from "./cli-xvz8tcza.js";
9
9
  import"./cli-qba2x69h.js";
10
10
  import {
11
11
  stepCountIs2,
12
12
  init_dist
13
- } from "./cli-e0pzprpf.js";
13
+ } from "./cli-jv6064md.js";
14
14
  import"./cli-c2k4xxaw.js";
15
15
  import {
16
16
  init_zod
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  TargetedPentestAgent2,
3
3
  buildPentestSystemPrompt2
4
- } from "./cli-jezvey18.js";
5
- import"./cli-bfvp9zqk.js";
4
+ } from "./cli-2sx4qxgm.js";
5
+ import"./cli-xvz8tcza.js";
6
6
  import"./cli-qba2x69h.js";
7
- import"./cli-q6y3qj7s.js";
8
- import"./cli-kbs4zaye.js";
9
- import"./cli-e0pzprpf.js";
10
- import"./cli-jam99yar.js";
7
+ import"./cli-xk684kez.js";
8
+ import"./cli-ev28r4sw.js";
9
+ import"./cli-jv6064md.js";
10
+ import"./cli-a7hj3v06.js";
11
11
  import"./cli-c2k4xxaw.js";
12
- import"./cli-mtg8qnv2.js";
12
+ import"./cli-gq554agh.js";
13
13
  export {
14
14
  TargetedPentestAgent2 as TargetedPentestAgent,
15
15
  buildPentestSystemPrompt2 as buildPentestSystemPrompt
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  config2,
3
3
  init_config
4
- } from "./cli-mtg8qnv2.js";
5
- import"./cli-jam99yar.js";
6
- import"./cli-q6y3qj7s.js";
4
+ } from "./cli-gq554agh.js";
5
+ import"./cli-a7hj3v06.js";
6
+ import"./cli-xk684kez.js";
7
7
  import {
8
8
  AgentEventBus
9
- } from "./cli-kbs4zaye.js";
9
+ } from "./cli-ev28r4sw.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-h738x46d.js";
21
- import"./cli-0yjapx5n.js";
22
- import"./cli-dkkfyzjw.js";
23
- import"./cli-g6bgndhs.js";
24
- import"./cli-cgwm7tnj.js";
25
- import"./cli-kgsempyx.js";
26
- import"./cli-jezvey18.js";
27
- import"./cli-c04tfjd5.js";
28
- import"./cli-p5qyq33j.js";
29
- import"./cli-xcy2vxj2.js";
20
+ } from "./cli-h22v29jf.js";
21
+ import"./cli-brtfdg49.js";
22
+ import"./cli-wve4bh9n.js";
23
+ import"./cli-rpbhg3cn.js";
24
+ import"./cli-tbyd9myq.js";
25
+ import"./cli-006njjt1.js";
26
+ import"./cli-2sx4qxgm.js";
27
+ import"./cli-e887rt5y.js";
28
+ import"./cli-n5dqdbwn.js";
29
+ import"./cli-ak23knae.js";
30
30
  import {
31
31
  resolveWorkerExecutable,
32
32
  launchLocalWorker
33
- } from "./cli-djh5mphz.js";
34
- import"./cli-nfdc84d2.js";
35
- import"./cli-bfvp9zqk.js";
33
+ } from "./cli-y2mb60wy.js";
34
+ import"./cli-3gq41m8n.js";
35
+ import"./cli-xvz8tcza.js";
36
36
  import"./cli-qba2x69h.js";
37
37
  import {
38
38
  buildAuthConfig,
39
39
  init_ai2
40
- } from "./cli-e0pzprpf.js";
40
+ } from "./cli-jv6064md.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-k50nby3j.js");
121
+ const { serveLocalRunWorker } = await import("./index-p3aehtqt.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-954nd7j6.js");
135
+ const { openRecordedRunClient } = await import("./recordedRunClient-mcj422af.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-q6y3qj7s.js";
19
- import"./cli-kbs4zaye.js";
20
- import"./cli-mtg8qnv2.js";
21
- import"./cli-jam99yar.js";
22
- import"./cli-h738x46d.js";
23
- import"./cli-0yjapx5n.js";
24
- import"./cli-dkkfyzjw.js";
25
- import"./cli-g6bgndhs.js";
26
- import"./cli-cgwm7tnj.js";
27
- import"./cli-kgsempyx.js";
28
- import"./cli-jezvey18.js";
29
- import"./cli-c04tfjd5.js";
30
- import"./cli-p5qyq33j.js";
31
- import"./cli-xcy2vxj2.js";
18
+ } from "./cli-xk684kez.js";
19
+ import"./cli-ev28r4sw.js";
20
+ import"./cli-gq554agh.js";
21
+ import"./cli-a7hj3v06.js";
22
+ import"./cli-h22v29jf.js";
23
+ import"./cli-brtfdg49.js";
24
+ import"./cli-wve4bh9n.js";
25
+ import"./cli-rpbhg3cn.js";
26
+ import"./cli-tbyd9myq.js";
27
+ import"./cli-006njjt1.js";
28
+ import"./cli-2sx4qxgm.js";
29
+ import"./cli-e887rt5y.js";
30
+ import"./cli-n5dqdbwn.js";
31
+ import"./cli-ak23knae.js";
32
32
  import {
33
33
  markCommandFailed
34
34
  } from "./cli-z82n3qk1.js";
35
- import"./cli-nfdc84d2.js";
36
- import"./cli-bfvp9zqk.js";
35
+ import"./cli-3gq41m8n.js";
36
+ import"./cli-xvz8tcza.js";
37
37
  import"./cli-qba2x69h.js";
38
- import"./cli-e0pzprpf.js";
38
+ import"./cli-jv6064md.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-q6y3qj7s.js";
3
- import"./cli-kbs4zaye.js";
2
+ import"./cli-xk684kez.js";
3
+ import"./cli-ev28r4sw.js";
4
4
  import {
5
5
  config2,
6
6
  init_config
7
- } from "./cli-mtg8qnv2.js";
7
+ } from "./cli-gq554agh.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-jam99yar.js";
24
- import"./cli-h738x46d.js";
25
- import"./cli-0yjapx5n.js";
26
- import"./cli-dkkfyzjw.js";
27
- import"./cli-g6bgndhs.js";
28
- import"./cli-cgwm7tnj.js";
29
- import"./cli-kgsempyx.js";
30
- import"./cli-jezvey18.js";
31
- import"./cli-c04tfjd5.js";
32
- import"./cli-p5qyq33j.js";
33
- import"./cli-xcy2vxj2.js";
23
+ } from "./cli-a7hj3v06.js";
24
+ import"./cli-h22v29jf.js";
25
+ import"./cli-brtfdg49.js";
26
+ import"./cli-wve4bh9n.js";
27
+ import"./cli-rpbhg3cn.js";
28
+ import"./cli-tbyd9myq.js";
29
+ import"./cli-006njjt1.js";
30
+ import"./cli-2sx4qxgm.js";
31
+ import"./cli-e887rt5y.js";
32
+ import"./cli-n5dqdbwn.js";
33
+ import"./cli-ak23knae.js";
34
34
  import {
35
35
  markCommandFailed
36
36
  } from "./cli-z82n3qk1.js";
37
- import"./cli-nfdc84d2.js";
38
- import"./cli-bfvp9zqk.js";
37
+ import"./cli-3gq41m8n.js";
38
+ import"./cli-xvz8tcza.js";
39
39
  import"./cli-qba2x69h.js";
40
- import"./cli-e0pzprpf.js";
40
+ import"./cli-jv6064md.js";
41
41
  import"./cli-c2k4xxaw.js";
42
42
  import {
43
43
  __require
@@ -0,0 +1,14 @@
1
+ import {
2
+ BlackboxAttackSurfaceAgent2
3
+ } from "./cli-brtfdg49.js";
4
+ import"./cli-xvz8tcza.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-xk684kez.js";
7
+ import"./cli-ev28r4sw.js";
8
+ import"./cli-jv6064md.js";
9
+ import"./cli-a7hj3v06.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-gq554agh.js";
12
+ export {
13
+ BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
14
+ };
@@ -1,27 +1,27 @@
1
- import"./cli-mtg8qnv2.js";
2
- import"./cli-jam99yar.js";
3
- import"./cli-kbs4zaye.js";
4
- import"./cli-q6y3qj7s.js";
5
- import"./cli-0yjapx5n.js";
6
- import"./cli-jezvey18.js";
7
- import"./cli-c04tfjd5.js";
1
+ import"./cli-gq554agh.js";
2
+ import"./cli-a7hj3v06.js";
3
+ import"./cli-ev28r4sw.js";
4
+ import"./cli-xk684kez.js";
5
+ import"./cli-brtfdg49.js";
6
+ import"./cli-2sx4qxgm.js";
7
+ import"./cli-e887rt5y.js";
8
8
  import {
9
9
  readExecutionMetrics,
10
10
  writeExecutionMetrics,
11
11
  runPentestWorkflow2
12
- } from "./cli-cgwm7tnj.js";
13
- import"./cli-dkkfyzjw.js";
14
- import"./cli-g6bgndhs.js";
12
+ } from "./cli-tbyd9myq.js";
13
+ import"./cli-wve4bh9n.js";
14
+ import"./cli-rpbhg3cn.js";
15
15
  import {
16
16
  EMPTY_SESSION_TOKEN_USAGE,
17
17
  accumulateSessionTokens
18
18
  } from "./cli-ag6jtndp.js";
19
- import"./cli-bfvp9zqk.js";
19
+ import"./cli-xvz8tcza.js";
20
20
  import"./cli-qba2x69h.js";
21
21
  import {
22
22
  normalizeStepUsage,
23
23
  init_ai2
24
- } from "./cli-e0pzprpf.js";
24
+ } from "./cli-jv6064md.js";
25
25
  import"./cli-c2k4xxaw.js";
26
26
 
27
27
  // src/core/api/blackboxPentest.ts
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  AgentRuntime,
10
10
  defineAgent
11
- } from "./cli-bfvp9zqk.js";
11
+ } from "./cli-xvz8tcza.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-e0pzprpf.js";
19
+ } from "./cli-jv6064md.js";
20
20
 
21
21
  // src/core/agents/specialized/authenticationAgent/agent.ts
22
22
  init_dist();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  APICallError,
3
- init_dist3
4
- } from "./cli-gsaf4jk3.js";
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
- init_dist3();
2218
+ init_dist4();
2219
2219
  init_inference_attempt();
2220
2220
  init_content();
2221
2221
  init_provider_metadata();
@@ -7,7 +7,7 @@ import {
7
7
  REPORT_ERROR_TOOL_NAME,
8
8
  createReportErrorTool,
9
9
  PentestReportedError
10
- } from "./cli-q6y3qj7s.js";
10
+ } from "./cli-xk684kez.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-bfvp9zqk.js";
21
+ } from "./cli-xvz8tcza.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-e0pzprpf.js";
29
+ } from "./cli-jv6064md.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).
@@ -3,7 +3,7 @@ import {
3
3
  } from "./cli-h6y3bt60.js";
4
4
 
5
5
  // package.json
6
- var version = "2.7.0-canary.89464e65", package_default;
6
+ var version = "2.7.0-canary.96a80cdd", 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",
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  OffensiveSecurityAgent
3
- } from "./cli-q6y3qj7s.js";
3
+ } from "./cli-xk684kez.js";
4
4
  import {
5
5
  startAgentExecution,
6
6
  resolveRootReasoning,
7
7
  persistRootReasoningOverride
8
- } from "./cli-p5qyq33j.js";
8
+ } from "./cli-n5dqdbwn.js";
9
9
 
10
10
  // src/core/api/offesecAgent.ts
11
11
  async function runOffensiveSecurityAgent2(input) {