@pensar/apex 2.7.0-canary.c5791908 → 2.7.0-canary.c763a48b

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 (242) hide show
  1. package/build/{agent-q85c8mrh.js → agent-8p8p45dg.js} +6 -6
  2. package/build/{agent-x8nf3k1v.js → agent-j79hpm2v.js} +7 -7
  3. package/build/agent-k1whwehz.js +14 -0
  4. package/build/{agent-runs-cqa7xz7d.js → agent-runs-7bses37q.js} +20 -20
  5. package/build/agent-z2ax8k9e.js +14 -0
  6. package/build/{apps-pxdathp4.js → apps-8yvrx9qq.js} +17 -17
  7. package/build/{auth-dcmykx6e.js → auth-9cg6a24n.js} +17 -17
  8. package/build/blackboxAgent-mt7ynwgw.js +14 -0
  9. package/build/{blackboxPentest-pbh960ms.js → blackboxPentest-nt3k5an4.js} +12 -12
  10. package/build/{cli-se8ae8z3.js → cli-0rhfexax.js} +3 -3
  11. package/build/{cli-am8b7hr4.js → cli-2f2682d8.js} +2 -2
  12. package/build/{cli-v084p264.js → cli-2smp6vy3.js} +1 -1
  13. package/build/{cli-jpjj10xv.js → cli-3qac6b95.js} +5 -1
  14. package/build/{cli-ps5hmkhw.js → cli-3ysp9qdp.js} +17 -12
  15. package/build/cli-4fkaes4s.js +1199 -0
  16. package/build/{cli-vb4den7a.js → cli-54ej646m.js} +3 -1
  17. package/build/{cli-gsaf4jk3.js → cli-7898kznf.js} +2 -2
  18. package/build/{cli-7nrpp1ks.js → cli-83kfkdv1.js} +1 -1
  19. package/build/{cli-xcy2vxj2.js → cli-ak23knae.js} +1 -1
  20. package/build/{cli-kr28rrsa.js → cli-bv2ank3r.js} +2 -2
  21. package/build/{cli-8wkays8e.js → cli-dm2fc4v9.js} +13 -49
  22. package/build/{cli-ygcbxb1m.js → cli-hfm4szxe.js} +4 -4
  23. package/build/{cli-xb0pqkbk.js → cli-hqt03hyz.js} +4 -4
  24. package/build/{cli-jvhswf25.js → cli-hx0erkgq.js} +2 -2
  25. package/build/{cli-z41890cy.js → cli-j1jcp1ma.js} +1 -1
  26. package/build/{cli-m57v3wm9.js → cli-jvekn5fm.js} +2 -2
  27. package/build/{cli-78pm8byz.js → cli-q6q1ndmg.js} +1 -1
  28. package/build/{cli-pepjaeek.js → cli-qsrqeqts.js} +12 -11
  29. package/build/{cli-mfgsx6hc.js → cli-rb7669sc.js} +1 -1
  30. package/build/{cli-xpfw29g5.js → cli-rjnwmh9y.js} +4 -4
  31. package/build/{cli-b3hef9fp.js → cli-rm6chd07.js} +4358 -982
  32. package/build/{cli-b8jmzd32.js → cli-sbxx1mx3.js} +1 -1
  33. package/build/{cli-40gstjf7.js → cli-t6jjemz3.js} +14 -8
  34. package/build/{cli-6g5p7cfd.js → cli-ty55px8v.js} +325 -254
  35. package/build/{cli-pwm29ks7.js → cli-ychebg4z.js} +16 -16
  36. package/build/cli.js +45 -41
  37. package/build/{config-d9mdqs9w.js → config-dang1bbh.js} +4 -4
  38. package/build/emscripten-module-kzkvkeqz.js +503 -0
  39. package/build/{export-trajectory-rt4tf07k.js → export-trajectory-ex317s0n.js} +1 -1
  40. package/build/{fastStrike-z096431v.js → fastStrike-mv8qq6xw.js} +6 -6
  41. package/build/ffi-pf145jhd.js +78 -0
  42. package/build/{fixes-9ppnsazw.js → fixes-bqrv4brm.js} +17 -17
  43. package/build/{index-pxhc0cbs.js → index-0nc613n3.js} +2 -2
  44. package/build/{index-4gfq7kzj.js → index-6apqbv2n.js} +9 -9
  45. package/build/{index-y5t6w61g.js → index-cmz1frxb.js} +1 -1
  46. package/build/{index-qnyevb6q.js → index-ffe5c30s.js} +13 -13
  47. package/build/{index-pvb4d38m.js → index-jsrgf01b.js} +5 -5
  48. package/build/{index-cn1pgs79.js → index-kmcsfkqs.js} +5 -4
  49. package/build/{index-vq0132nv.js → index-qre19r25.js} +7 -7
  50. package/build/{index-f0v1bbhs.js → index-qsqea5pp.js} +24 -24
  51. package/build/{index-t8ncgcc9.js → index-t4qnd5ne.js} +1 -1
  52. package/build/{index-1j283k20.js → index-xc2trj7g.js} +17 -17
  53. package/build/{issues-hnw2wt5k.js → issues-nx5encrk.js} +17 -17
  54. package/build/{knowledge-66kn0fwh.js → knowledge-x5p0ry2f.js} +17 -17
  55. package/build/{lance-qyph9jw1.js → lance-bx9jacev.js} +8 -8
  56. package/build/lib/{chunk-7350h8ab.js → chunk-07f5xvw0.js} +11 -11
  57. package/build/lib/{chunk-y9pm3xqv.js → chunk-1yrb53ek.js} +1 -1
  58. package/build/lib/{chunk-5avnedwm.js → chunk-387s571s.js} +589 -97
  59. package/build/lib/chunk-3ejfsrz6.js +112 -0
  60. package/build/lib/{chunk-qn9512q7.js → chunk-5gej0kwn.js} +1 -1
  61. package/build/lib/{chunk-00jhhedd.js → chunk-62g2fdqa.js} +193 -343
  62. package/build/lib/{chunk-pr63gfsd.js → chunk-a8pax9vc.js} +1 -1
  63. package/build/lib/{chunk-7syrjsr5.js → chunk-bcb13pka.js} +2 -1
  64. package/build/lib/{chunk-dj7bk5xm.js → chunk-bjmzv0yp.js} +10 -9
  65. package/build/lib/{chunk-486zwtmg.js → chunk-c76cs0qh.js} +1126 -51
  66. package/build/lib/{chunk-ptp3er5d.js → chunk-de28cajr.js} +3 -1
  67. package/build/lib/{chunk-0hqjfqxb.js → chunk-e69f9g6z.js} +78 -113
  68. package/build/lib/{chunk-98gxfne9.js → chunk-fpw26983.js} +2 -2
  69. package/build/lib/{chunk-bq643vks.js → chunk-gqn2ea41.js} +1 -1
  70. package/build/lib/{chunk-6vhf2dvv.js → chunk-j9w3bbwn.js} +1 -1
  71. package/build/lib/{chunk-rcneqwt6.js → chunk-mxqpgva7.js} +12 -48
  72. package/build/lib/{chunk-q3f1tjdx.js → chunk-njtbxwbe.js} +1 -1
  73. package/build/lib/{chunk-tcdd68ax.js → chunk-nw3c0h1s.js} +5 -1
  74. package/build/lib/{chunk-w9cs2h48.js → chunk-p4274gxg.js} +5 -5
  75. package/build/lib/{chunk-zntm5p3b.js → chunk-q8dq94pb.js} +24 -17
  76. package/build/lib/{chunk-qpewr18w.js → chunk-t1rc00vt.js} +1 -1
  77. package/build/lib/{chunk-y82jpv2x.js → chunk-t4fv3k72.js} +11 -10
  78. package/build/lib/{chunk-2svje0df.js → chunk-vx58fc19.js} +9 -3
  79. package/build/lib/{chunk-10p58fqe.js → chunk-x03kpd1g.js} +8 -7
  80. package/build/lib/{chunk-rh6fz13n.js → chunk-y1fv416w.js} +2 -2
  81. package/build/lib/{chunk-c5w6byvf.js → chunk-yk0cma87.js} +1 -1
  82. package/build/lib/core/agents/agentRuntime.d.ts +4 -0
  83. package/build/lib/core/agents/offSecAgent/index.js +11 -10
  84. package/build/lib/core/agents/offSecAgent/offensiveSecurityAgent.d.ts +1 -0
  85. package/build/lib/core/agents/offSecAgent/runtimeContext.d.ts +1 -0
  86. package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +1 -0
  87. package/build/lib/core/agents/offSecAgent/subagentSpawner.js +6 -5
  88. package/build/lib/core/agents/offSecAgent/tools/browserHeaderRouting.d.ts +2 -0
  89. package/build/lib/core/agents/offSecAgent/tools/getPage.d.ts +1 -2
  90. package/build/lib/core/agents/offSecAgent/tools/httpRequest.d.ts +1 -1
  91. package/build/lib/core/agents/offSecAgent/tools/index.js +10 -9
  92. package/build/lib/core/agents/offSecAgent/tools/scopeGuard.d.ts +7 -18
  93. package/build/lib/core/agents/offSecAgent/tools/types.d.ts +2 -1
  94. package/build/lib/core/agents/offSecAgent/tools/webSearch.d.ts +8 -0
  95. package/build/lib/core/agents/offSecAgent/types.d.ts +9 -1
  96. package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +11 -10
  97. package/build/lib/core/agents/specialized/attackSurface/prompts.d.ts +1 -1
  98. package/build/lib/core/agents/specialized/attackSurface/schemas.js +11 -10
  99. package/build/lib/core/agents/specialized/authenticationAgent/index.js +12 -11
  100. package/build/lib/core/agents/specialized/codeAgent/agent.js +11 -10
  101. package/build/lib/core/agents/specialized/findingJudge/agent.js +10 -9
  102. package/build/lib/core/agents/specialized/findingJudge/index.d.ts +1 -1
  103. package/build/lib/core/agents/specialized/findingJudge/index.js +4 -3
  104. package/build/lib/core/agents/specialized/patching/index.js +12 -11
  105. package/build/lib/core/agents/specialized/pentest/agent.js +11 -10
  106. package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +11 -10
  107. package/build/lib/core/ai/ai.d.ts +4 -1
  108. package/build/lib/core/ai/ai.js +3 -2
  109. package/build/lib/core/ai/index.d.ts +2 -0
  110. package/build/lib/core/ai/index.js +6 -3
  111. package/build/lib/core/ai/modelRuntime.d.ts +10 -0
  112. package/build/lib/core/ai/utils.js +3 -2
  113. package/build/lib/core/api/index.js +23 -21
  114. package/build/lib/core/api/targetedPentest.js +12 -11
  115. package/build/lib/core/code-mode/capabilityInvoker.d.ts +53 -0
  116. package/build/lib/core/code-mode/index.d.ts +3 -0
  117. package/build/lib/core/code-mode/runtime.d.ts +42 -0
  118. package/build/lib/core/code-mode/tools.d.ts +16 -0
  119. package/build/lib/core/config/index.js +1 -1
  120. package/build/lib/core/findings/registry.js +4 -3
  121. package/build/lib/core/http/researchFetchToken.d.ts +2 -0
  122. package/build/lib/core/http/targetHeaders.d.ts +2 -0
  123. package/build/lib/core/http/targetScope.d.ts +3 -0
  124. package/build/lib/core/session/index.js +3 -2
  125. package/build/lib/core/session/persistence.js +4 -3
  126. package/build/lib/core/tools/backends/index.js +3 -1
  127. package/build/lib/core/tools/backends/types.d.ts +2 -0
  128. package/build/lib/core/workflows/pentest.js +17 -16
  129. package/build/lib/core/workflows/seams.js +5 -4
  130. package/build/lib/core/workflows/whiteboxAttackSurface.d.ts +3 -3
  131. package/build/lib/core/workflows/whiteboxAttackSurface.js +13 -12
  132. package/build/lib/index.js +24 -23
  133. package/build/{logs-h3rxtq6w.js → logs-2r4sgk4v.js} +17 -17
  134. package/build/module-ES6BEMUI-6ewavg9p.js +12 -0
  135. package/build/{native-rollout-evidence-kt4rd2bp.js → native-rollout-evidence-gcj4kx7z.js} +4 -4
  136. package/build/{offesecAgent-e3ea8mr6.js → offesecAgent-j1dsctxr.js} +6 -6
  137. package/build/pentest-bb4vwwty.js +23 -0
  138. package/build/{pentests-39hy0dre.js → pentests-5zzqfe81.js} +17 -17
  139. package/build/recordedRunClient-x5q05e99.js +11 -0
  140. package/build/{subagentSpawner-2sx2edxp.js → subagentSpawner-qgrr66br.js} +4 -4
  141. package/build/{targetedPentest-ttafan4t.js → targetedPentest-mp4j7nvp.js} +8 -8
  142. package/build/{targets-fzte2kq9.js → targets-t346pzhw.js} +17 -17
  143. package/build/threatModel-461njhm7.js +24 -0
  144. package/build/{uninstall-0m52nyc0.js → uninstall-rs78zgdm.js} +1 -1
  145. package/build/{upload-cnnhkzgt.js → upload-sw0d27ep.js} +4 -4
  146. package/build/{utils-pq6pdv6p.js → utils-tbmh2fee.js} +3 -3
  147. package/package.json +3 -1
  148. package/src/cli/agent-runs.test.ts +1 -4
  149. package/src/cli/issues.test.ts +17 -1
  150. package/src/core/agents/agentRuntime.test.ts +16 -0
  151. package/src/core/agents/agentRuntime.ts +8 -0
  152. package/src/core/agents/offSecAgent/offensiveSecurityAgent.codeMode.test.ts +435 -0
  153. package/src/core/agents/offSecAgent/offensiveSecurityAgent.runtimeContext.test.ts +1 -0
  154. package/src/core/agents/offSecAgent/offensiveSecurityAgent.test.ts +6 -1
  155. package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +94 -8
  156. package/src/core/agents/offSecAgent/prompt.ts +2 -2
  157. package/src/core/agents/offSecAgent/recordedTools.test.ts +6 -1
  158. package/src/core/agents/offSecAgent/runtimeContext.test.ts +19 -0
  159. package/src/core/agents/offSecAgent/runtimeContext.ts +9 -2
  160. package/src/core/agents/offSecAgent/selectiveConstruction.publicPath.test.ts +2 -0
  161. package/src/core/agents/offSecAgent/selectiveConstruction.test.ts +6 -1
  162. package/src/core/agents/offSecAgent/subagentSpawner.hooks.test.ts +3 -0
  163. package/src/core/agents/offSecAgent/subagentSpawner.ts +7 -0
  164. package/src/core/agents/offSecAgent/tools/browserHeaderRouting.redirect.test.ts +141 -0
  165. package/src/core/agents/offSecAgent/tools/browserHeaderRouting.test.ts +106 -8
  166. package/src/core/agents/offSecAgent/tools/browserHeaderRouting.ts +56 -16
  167. package/src/core/agents/offSecAgent/tools/delegateAuth.ts +5 -0
  168. package/src/core/agents/offSecAgent/tools/documentFinding.ts +1 -0
  169. package/src/core/agents/offSecAgent/tools/executeCommand.test.ts +2 -1
  170. package/src/core/agents/offSecAgent/tools/getPage.test.ts +120 -0
  171. package/src/core/agents/offSecAgent/tools/getPage.ts +24 -19
  172. package/src/core/agents/offSecAgent/tools/httpBackends.test.ts +18 -25
  173. package/src/core/agents/offSecAgent/tools/httpRequest.body.test.ts +214 -0
  174. package/src/core/agents/offSecAgent/tools/httpRequest.test.ts +54 -0
  175. package/src/core/agents/offSecAgent/tools/httpRequest.ts +20 -11
  176. package/src/core/agents/offSecAgent/tools/playwrightMcp.test.ts +5 -0
  177. package/src/core/agents/offSecAgent/tools/playwrightMcp.ts +5 -2
  178. package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +2 -0
  179. package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +1 -0
  180. package/src/core/agents/offSecAgent/tools/sandboxPlaywright.test.ts +47 -0
  181. package/src/core/agents/offSecAgent/tools/sandboxPlaywright.ts +65 -2
  182. package/src/core/agents/offSecAgent/tools/scopeGuard.test.ts +121 -52
  183. package/src/core/agents/offSecAgent/tools/scopeGuard.ts +50 -30
  184. package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +1 -0
  185. package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +4 -3
  186. package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +1 -0
  187. package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +1 -0
  188. package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +1 -0
  189. package/src/core/agents/offSecAgent/tools/types.ts +2 -0
  190. package/src/core/agents/offSecAgent/tools/webSearch.test.ts +154 -0
  191. package/src/core/agents/offSecAgent/tools/webSearch.ts +119 -87
  192. package/src/core/agents/offSecAgent/types.ts +10 -0
  193. package/src/core/agents/specialized/attackSurface/blackboxAgent.ts +3 -3
  194. package/src/core/agents/specialized/attackSurface/prompts.ts +9 -45
  195. package/src/core/agents/specialized/findingJudge/index.ts +2 -0
  196. package/src/core/agents/specialized/pentest/agent.ts +1 -1
  197. package/src/core/ai/ai.effective-tools.test.ts +27 -2
  198. package/src/core/ai/ai.test.ts +34 -6
  199. package/src/core/ai/ai.ts +21 -2
  200. package/src/core/ai/compactionTelemetry.test.ts +167 -5
  201. package/src/core/ai/index.ts +6 -0
  202. package/src/core/ai/modelRuntime.test.ts +58 -0
  203. package/src/core/ai/modelRuntime.ts +63 -0
  204. package/src/core/ai/providers/pensarResponsesStream.test.ts +117 -0
  205. package/src/core/ai/providers/pensarResponsesStream.ts +20 -1
  206. package/src/core/ai/utils.ts +17 -12
  207. package/src/core/api/recordedRun.loop.test.ts +67 -0
  208. package/src/core/code-mode/capabilityInvoker.test.ts +424 -0
  209. package/src/core/code-mode/capabilityInvoker.ts +383 -0
  210. package/src/core/code-mode/index.ts +8 -0
  211. package/src/core/code-mode/runtime.setup.test.ts +157 -0
  212. package/src/core/code-mode/runtime.test.ts +664 -0
  213. package/src/core/code-mode/runtime.ts +700 -0
  214. package/src/core/code-mode/tools.test.ts +375 -0
  215. package/src/core/code-mode/tools.ts +281 -0
  216. package/src/core/http/agentNetworkPolicyFixture.test.ts +39 -0
  217. package/src/core/http/headers.contract.test.ts +100 -2
  218. package/src/core/http/researchFetchToken.test.ts +50 -0
  219. package/src/core/http/researchFetchToken.ts +63 -0
  220. package/src/core/http/targetHeaders.ts +26 -8
  221. package/src/core/http/targetScope.ts +47 -11
  222. package/src/core/runtime/runRecoveryPlan.test.ts +18 -0
  223. package/src/core/runtime/runRecoveryPlan.ts +5 -0
  224. package/src/core/runtime/runTools.test.ts +2 -0
  225. package/src/core/runtime/runTools.ts +4 -1
  226. package/src/core/runtime/sqliteControlStore.test.ts +21 -0
  227. package/src/core/runtime/sqliteControlStore.ts +6 -1
  228. package/src/core/runtime/sqliteRecoveryStore.test.ts +24 -5
  229. package/src/core/tools/backends/local.test.ts +126 -0
  230. package/src/core/tools/backends/local.ts +256 -59
  231. package/src/core/tools/backends/policy.test.ts +36 -1
  232. package/src/core/tools/backends/policy.ts +9 -4
  233. package/src/core/tools/backends/types.ts +2 -0
  234. package/src/core/workflows/whiteboxAttackSurface.test.ts +40 -0
  235. package/src/core/workflows/whiteboxAttackSurface.ts +9 -4
  236. package/src/test-fixtures/agent-network-policy-v2.json +80 -0
  237. package/build/agent-htj3ww3e.js +0 -14
  238. package/build/agent-km3wss0b.js +0 -14
  239. package/build/blackboxAgent-g18ps9hs.js +0 -14
  240. package/build/pentest-qx9c8wtg.js +0 -23
  241. package/build/recordedRunClient-gra1x1y6.js +0 -11
  242. package/build/threatModel-nm449g6b.js +0 -24
@@ -1,16 +1,16 @@
1
- import"./cli-40gstjf7.js";
2
- import"./cli-mfgsx6hc.js";
3
- import"./cli-z41890cy.js";
4
- import"./cli-b3hef9fp.js";
1
+ import"./cli-t6jjemz3.js";
2
+ import"./cli-rb7669sc.js";
3
+ import"./cli-j1jcp1ma.js";
4
+ import"./cli-rm6chd07.js";
5
5
  import {
6
6
  AgentRuntime,
7
7
  defineAgent
8
- } from "./cli-jpjj10xv.js";
8
+ } from "./cli-3qac6b95.js";
9
9
  import"./cli-qba2x69h.js";
10
10
  import {
11
11
  stepCountIs2,
12
12
  init_dist
13
- } from "./cli-6g5p7cfd.js";
13
+ } from "./cli-ty55px8v.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-xb0pqkbk.js";
5
- import"./cli-jpjj10xv.js";
4
+ } from "./cli-hqt03hyz.js";
5
+ import"./cli-3qac6b95.js";
6
6
  import"./cli-qba2x69h.js";
7
- import"./cli-b3hef9fp.js";
8
- import"./cli-40gstjf7.js";
9
- import"./cli-6g5p7cfd.js";
10
- import"./cli-z41890cy.js";
7
+ import"./cli-rm6chd07.js";
8
+ import"./cli-t6jjemz3.js";
9
+ import"./cli-ty55px8v.js";
10
+ import"./cli-j1jcp1ma.js";
11
11
  import"./cli-c2k4xxaw.js";
12
- import"./cli-mfgsx6hc.js";
12
+ import"./cli-rb7669sc.js";
13
13
  export {
14
14
  TargetedPentestAgent2 as TargetedPentestAgent,
15
15
  buildPentestSystemPrompt2 as buildPentestSystemPrompt
@@ -0,0 +1,14 @@
1
+ import {
2
+ runAuthenticationAgent2
3
+ } from "./cli-2f2682d8.js";
4
+ import"./cli-3qac6b95.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-rm6chd07.js";
7
+ import"./cli-t6jjemz3.js";
8
+ import"./cli-ty55px8v.js";
9
+ import"./cli-j1jcp1ma.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-rb7669sc.js";
12
+ export {
13
+ runAuthenticationAgent2 as runAuthenticationAgent
14
+ };
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  config2,
3
3
  init_config
4
- } from "./cli-mfgsx6hc.js";
5
- import"./cli-z41890cy.js";
6
- import"./cli-b3hef9fp.js";
4
+ } from "./cli-rb7669sc.js";
5
+ import"./cli-j1jcp1ma.js";
6
+ import"./cli-rm6chd07.js";
7
7
  import {
8
8
  AgentEventBus
9
- } from "./cli-40gstjf7.js";
9
+ } from "./cli-t6jjemz3.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-ps5hmkhw.js";
21
- import"./cli-8wkays8e.js";
22
- import"./cli-m57v3wm9.js";
23
- import"./cli-ygcbxb1m.js";
24
- import"./cli-pepjaeek.js";
25
- import"./cli-am8b7hr4.js";
26
- import"./cli-xb0pqkbk.js";
27
- import"./cli-b8jmzd32.js";
28
- import"./cli-7nrpp1ks.js";
29
- import"./cli-xcy2vxj2.js";
20
+ } from "./cli-3ysp9qdp.js";
21
+ import"./cli-dm2fc4v9.js";
22
+ import"./cli-jvekn5fm.js";
23
+ import"./cli-hfm4szxe.js";
24
+ import"./cli-qsrqeqts.js";
25
+ import"./cli-2f2682d8.js";
26
+ import"./cli-hqt03hyz.js";
27
+ import"./cli-sbxx1mx3.js";
28
+ import"./cli-83kfkdv1.js";
29
+ import"./cli-ak23knae.js";
30
30
  import {
31
31
  resolveWorkerExecutable,
32
32
  launchLocalWorker
33
- } from "./cli-v084p264.js";
34
- import"./cli-jvhswf25.js";
35
- import"./cli-jpjj10xv.js";
33
+ } from "./cli-2smp6vy3.js";
34
+ import"./cli-hx0erkgq.js";
35
+ import"./cli-3qac6b95.js";
36
36
  import"./cli-qba2x69h.js";
37
37
  import {
38
38
  buildAuthConfig,
39
39
  init_ai2
40
- } from "./cli-6g5p7cfd.js";
40
+ } from "./cli-ty55px8v.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-1j283k20.js");
121
+ const { serveLocalRunWorker } = await import("./index-xc2trj7g.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-gra1x1y6.js");
135
+ const { openRecordedRunClient } = await import("./recordedRunClient-x5q05e99.js");
136
136
  const client = await openRecordedRunClient(values.store);
137
137
  const controller = new AbortController;
138
138
  const detach = () => controller.abort();
@@ -0,0 +1,14 @@
1
+ import {
2
+ CodeAgent2
3
+ } from "./cli-jvekn5fm.js";
4
+ import"./cli-3qac6b95.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-rm6chd07.js";
7
+ import"./cli-t6jjemz3.js";
8
+ import"./cli-ty55px8v.js";
9
+ import"./cli-j1jcp1ma.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-rb7669sc.js";
12
+ export {
13
+ CodeAgent2 as CodeAgent
14
+ };
@@ -15,27 +15,27 @@ import {
15
15
  searchEndpoints2,
16
16
  listDomains2,
17
17
  createDomain2
18
- } from "./cli-b3hef9fp.js";
19
- import"./cli-40gstjf7.js";
20
- import"./cli-mfgsx6hc.js";
21
- import"./cli-z41890cy.js";
22
- import"./cli-ps5hmkhw.js";
23
- import"./cli-8wkays8e.js";
24
- import"./cli-m57v3wm9.js";
25
- import"./cli-ygcbxb1m.js";
26
- import"./cli-pepjaeek.js";
27
- import"./cli-am8b7hr4.js";
28
- import"./cli-xb0pqkbk.js";
29
- import"./cli-b8jmzd32.js";
30
- import"./cli-7nrpp1ks.js";
31
- import"./cli-xcy2vxj2.js";
18
+ } from "./cli-rm6chd07.js";
19
+ import"./cli-t6jjemz3.js";
20
+ import"./cli-rb7669sc.js";
21
+ import"./cli-j1jcp1ma.js";
22
+ import"./cli-3ysp9qdp.js";
23
+ import"./cli-dm2fc4v9.js";
24
+ import"./cli-jvekn5fm.js";
25
+ import"./cli-hfm4szxe.js";
26
+ import"./cli-qsrqeqts.js";
27
+ import"./cli-2f2682d8.js";
28
+ import"./cli-hqt03hyz.js";
29
+ import"./cli-sbxx1mx3.js";
30
+ import"./cli-83kfkdv1.js";
31
+ import"./cli-ak23knae.js";
32
32
  import {
33
33
  markCommandFailed
34
34
  } from "./cli-z82n3qk1.js";
35
- import"./cli-jvhswf25.js";
36
- import"./cli-jpjj10xv.js";
35
+ import"./cli-hx0erkgq.js";
36
+ import"./cli-3qac6b95.js";
37
37
  import"./cli-qba2x69h.js";
38
- import"./cli-6g5p7cfd.js";
38
+ import"./cli-ty55px8v.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-b3hef9fp.js";
3
- import"./cli-40gstjf7.js";
2
+ import"./cli-rm6chd07.js";
3
+ import"./cli-t6jjemz3.js";
4
4
  import {
5
5
  config2,
6
6
  init_config
7
- } from "./cli-mfgsx6hc.js";
7
+ } from "./cli-rb7669sc.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-z41890cy.js";
24
- import"./cli-ps5hmkhw.js";
25
- import"./cli-8wkays8e.js";
26
- import"./cli-m57v3wm9.js";
27
- import"./cli-ygcbxb1m.js";
28
- import"./cli-pepjaeek.js";
29
- import"./cli-am8b7hr4.js";
30
- import"./cli-xb0pqkbk.js";
31
- import"./cli-b8jmzd32.js";
32
- import"./cli-7nrpp1ks.js";
33
- import"./cli-xcy2vxj2.js";
23
+ } from "./cli-j1jcp1ma.js";
24
+ import"./cli-3ysp9qdp.js";
25
+ import"./cli-dm2fc4v9.js";
26
+ import"./cli-jvekn5fm.js";
27
+ import"./cli-hfm4szxe.js";
28
+ import"./cli-qsrqeqts.js";
29
+ import"./cli-2f2682d8.js";
30
+ import"./cli-hqt03hyz.js";
31
+ import"./cli-sbxx1mx3.js";
32
+ import"./cli-83kfkdv1.js";
33
+ import"./cli-ak23knae.js";
34
34
  import {
35
35
  markCommandFailed
36
36
  } from "./cli-z82n3qk1.js";
37
- import"./cli-jvhswf25.js";
38
- import"./cli-jpjj10xv.js";
37
+ import"./cli-hx0erkgq.js";
38
+ import"./cli-3qac6b95.js";
39
39
  import"./cli-qba2x69h.js";
40
- import"./cli-6g5p7cfd.js";
40
+ import"./cli-ty55px8v.js";
41
41
  import"./cli-c2k4xxaw.js";
42
42
  import {
43
43
  __require
@@ -0,0 +1,14 @@
1
+ import {
2
+ BlackboxAttackSurfaceAgent2
3
+ } from "./cli-dm2fc4v9.js";
4
+ import"./cli-3qac6b95.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-rm6chd07.js";
7
+ import"./cli-t6jjemz3.js";
8
+ import"./cli-ty55px8v.js";
9
+ import"./cli-j1jcp1ma.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-rb7669sc.js";
12
+ export {
13
+ BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
14
+ };
@@ -1,27 +1,27 @@
1
- import"./cli-mfgsx6hc.js";
2
- import"./cli-z41890cy.js";
3
- import"./cli-40gstjf7.js";
4
- import"./cli-b3hef9fp.js";
5
- import"./cli-8wkays8e.js";
6
- import"./cli-xb0pqkbk.js";
7
- import"./cli-b8jmzd32.js";
1
+ import"./cli-rb7669sc.js";
2
+ import"./cli-j1jcp1ma.js";
3
+ import"./cli-t6jjemz3.js";
4
+ import"./cli-rm6chd07.js";
5
+ import"./cli-dm2fc4v9.js";
6
+ import"./cli-hqt03hyz.js";
7
+ import"./cli-sbxx1mx3.js";
8
8
  import {
9
9
  readExecutionMetrics,
10
10
  writeExecutionMetrics,
11
11
  runPentestWorkflow2
12
- } from "./cli-pepjaeek.js";
13
- import"./cli-m57v3wm9.js";
14
- import"./cli-ygcbxb1m.js";
12
+ } from "./cli-qsrqeqts.js";
13
+ import"./cli-jvekn5fm.js";
14
+ import"./cli-hfm4szxe.js";
15
15
  import {
16
16
  EMPTY_SESSION_TOKEN_USAGE,
17
17
  accumulateSessionTokens
18
18
  } from "./cli-ag6jtndp.js";
19
- import"./cli-jpjj10xv.js";
19
+ import"./cli-3qac6b95.js";
20
20
  import"./cli-qba2x69h.js";
21
21
  import {
22
22
  normalizeStepUsage,
23
23
  init_ai2
24
- } from "./cli-6g5p7cfd.js";
24
+ } from "./cli-ty55px8v.js";
25
25
  import"./cli-c2k4xxaw.js";
26
26
 
27
27
  // src/core/api/blackboxPentest.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  APICallError,
3
- 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();
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  AgentRuntime,
10
10
  defineAgent
11
- } from "./cli-jpjj10xv.js";
11
+ } from "./cli-3qac6b95.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-ty55px8v.js";
20
20
 
21
21
  // src/core/agents/specialized/authenticationAgent/agent.ts
22
22
  init_dist();
@@ -4,7 +4,7 @@ import {
4
4
  LocalWorkerTransportError,
5
5
  WorkerConnectionError,
6
6
  workerRequest
7
- } from "./cli-ps5hmkhw.js";
7
+ } from "./cli-3ysp9qdp.js";
8
8
 
9
9
  // src/core/runtime/launchLocalWorker.ts
10
10
  import { spawn } from "node:child_process";
@@ -1,12 +1,16 @@
1
1
  import {
2
2
  OffensiveSecurityAgent
3
- } from "./cli-b3hef9fp.js";
3
+ } from "./cli-rm6chd07.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,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  config2,
3
3
  init_config
4
- } from "./cli-mfgsx6hc.js";
4
+ } from "./cli-rb7669sc.js";
5
5
  import {
6
6
  init_constants
7
- } from "./cli-z41890cy.js";
7
+ } from "./cli-j1jcp1ma.js";
8
8
  import {
9
9
  buildSessionWorkspaceSection,
10
10
  buildBaseSystemPrompt,
@@ -12,13 +12,13 @@ import {
12
12
  apiRequest,
13
13
  ALL_TOOL_NAMES2,
14
14
  SKILL_TOOL_NAMES2
15
- } from "./cli-b3hef9fp.js";
15
+ } from "./cli-rm6chd07.js";
16
16
  import {
17
17
  runOffensiveSecurityAgent2
18
- } from "./cli-jvhswf25.js";
18
+ } from "./cli-hx0erkgq.js";
19
19
  import {
20
20
  defineAgent
21
- } from "./cli-jpjj10xv.js";
21
+ } from "./cli-3qac6b95.js";
22
22
  import {
23
23
  toolModelMessageSchema,
24
24
  modelMessageSchema,
@@ -41,7 +41,7 @@ import {
41
41
  getModelInfo,
42
42
  buildAuthConfig,
43
43
  init_ai2
44
- } from "./cli-6g5p7cfd.js";
44
+ } from "./cli-ty55px8v.js";
45
45
  import {
46
46
  newSessionId,
47
47
  isSessionId,
@@ -49,14 +49,14 @@ import {
49
49
  InferenceAttemptSchema,
50
50
  parseInferenceAttempt,
51
51
  runWithInferenceRecorder
52
- } from "./cli-se8ae8z3.js";
53
- import {
54
- getCurrentVersion,
55
- init_installation
56
- } from "./cli-vb4den7a.js";
52
+ } from "./cli-0rhfexax.js";
57
53
  import {
58
54
  init_zod
59
55
  } from "./cli-3qznjsnr.js";
56
+ import {
57
+ getCurrentVersion,
58
+ init_installation
59
+ } from "./cli-54ej646m.js";
60
60
  import {
61
61
  exports_iso,
62
62
  string,
@@ -7691,7 +7691,7 @@ function createSqliteControlStore(input) {
7691
7691
  const assertToolApproved = (runId, toolName, toolCallId, candidateInput) => {
7692
7692
  assertDispatchAllowed(runId);
7693
7693
  const run = input.getRun(runId);
7694
- if (!run.spec.activeTools.some((name) => name === toolName)) {
7694
+ if (toolName !== "exec" && toolName !== "wait" && !run.spec.activeTools.some((name) => name === toolName)) {
7695
7695
  throw new Error(`Tool is not in the run's active tool allowlist: ${toolName}`);
7696
7696
  }
7697
7697
  const required = run.spec.approval?.requiredTools ?? [];
@@ -10754,6 +10754,9 @@ function planRunRecovery(input) {
10754
10754
  if (op.toolName === "execute_command") {
10755
10755
  blockers.push("execute_command was used by this run; shell/background state cannot be reconciled");
10756
10756
  }
10757
+ if (op.toolName === "exec" || op.toolName === "wait") {
10758
+ blockers.push("Code-mode cells and stored state cannot be restored after a process restart");
10759
+ }
10757
10760
  if (op.context.epoch > context.epoch || op.context.revision > context.revision) {
10758
10761
  blockers.push(`tool operation ${op.toolCallId} references a future context (${op.context.epoch}/${op.context.revision})`);
10759
10762
  }
@@ -10948,6 +10951,8 @@ function buildExchange(input) {
10948
10951
  init_persistenceError();
10949
10952
  init_runControlStore();
10950
10953
  var TOOL_POLICIES = {
10954
+ exec: "shell_state",
10955
+ wait: "shell_state",
10951
10956
  read_file: "read_only",
10952
10957
  list_files: "read_only",
10953
10958
  grep: "read_only",