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

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 (209) hide show
  1. package/build/agent-htj3ww3e.js +14 -0
  2. package/build/agent-km3wss0b.js +14 -0
  3. package/build/{agent-d049cd1j.js → agent-q85c8mrh.js} +6 -6
  4. package/build/{agent-runs-ppg5qd9x.js → agent-runs-cqa7xz7d.js} +21 -20
  5. package/build/{agent-gmvjvv73.js → agent-x8nf3k1v.js} +7 -7
  6. package/build/{apps-1aqtk8md.js → apps-pxdathp4.js} +16 -15
  7. package/build/{auth-dj0h7wrp.js → auth-dcmykx6e.js} +16 -15
  8. package/build/blackboxAgent-g18ps9hs.js +14 -0
  9. package/build/{blackboxPentest-2vseya2d.js → blackboxPentest-pbh960ms.js} +15 -15
  10. package/build/{cli-z4zhpya3.js → cli-40gstjf7.js} +25 -39
  11. package/build/{cli-46vcb9b8.js → cli-6g5p7cfd.js} +40918 -40519
  12. package/build/{cli-jbcpfw5s.js → cli-78pm8byz.js} +4 -4
  13. package/build/cli-7nrpp1ks.js +36 -0
  14. package/build/{cli-93p9edgd.js → cli-8wkays8e.js} +2 -2
  15. package/build/{cli-865ax921.js → cli-am8b7hr4.js} +5 -5
  16. package/build/{cli-dnc52s6m.js → cli-b3hef9fp.js} +48 -42
  17. package/build/{cli-1jd9ydse.js → cli-b8jmzd32.js} +1 -1
  18. package/build/{cli-cqjrngg1.js → cli-jpjj10xv.js} +1 -1
  19. package/build/{cli-dsjybzds.js → cli-jvhswf25.js} +8 -3
  20. package/build/{cli-36ydz906.js → cli-kr28rrsa.js} +2 -2
  21. package/build/{cli-be6rpy4n.js → cli-m57v3wm9.js} +2 -2
  22. package/build/{cli-rpsbx8gr.js → cli-mfgsx6hc.js} +1 -1
  23. package/build/{cli-153dfpyr.js → cli-pepjaeek.js} +33 -13
  24. package/build/{cli-66sfrenk.js → cli-ps5hmkhw.js} +20 -19
  25. package/build/{cli-a2pxz9jh.js → cli-v084p264.js} +1 -1
  26. package/build/{cli-jj10a9gh.js → cli-vb4den7a.js} +2 -1
  27. package/build/{cli-jvdc93sx.js → cli-xb0pqkbk.js} +6 -6
  28. package/build/{cli-4rcm7hve.js → cli-xpfw29g5.js} +6 -3
  29. package/build/{cli-4vhqy3jy.js → cli-ygcbxb1m.js} +3 -3
  30. package/build/{cli-be94d6vz.js → cli-z41890cy.js} +1 -1
  31. package/build/cli.js +108 -47
  32. package/build/{config-ceaaspfs.js → config-d9mdqs9w.js} +1 -1
  33. package/build/{fastStrike-yjxfpzqh.js → fastStrike-z096431v.js} +10 -7
  34. package/build/{fixes-rjsrnskv.js → fixes-9ppnsazw.js} +16 -15
  35. package/build/{index-8sm0xn4j.js → index-1j283k20.js} +16 -15
  36. package/build/{index-e74hqsdk.js → index-4gfq7kzj.js} +28 -6
  37. package/build/{index-dx7s2krd.js → index-cn1pgs79.js} +8 -7
  38. package/build/{index-yeds9kt9.js → index-f0v1bbhs.js} +157 -185
  39. package/build/{index-m1gk7dfw.js → index-pvb4d38m.js} +5 -5
  40. package/build/{index-gfn3w4sr.js → index-pxhc0cbs.js} +2 -2
  41. package/build/{index-ez61bt8z.js → index-t8ncgcc9.js} +1 -1
  42. package/build/{index-jg0dagyr.js → index-vq0132nv.js} +7 -7
  43. package/build/{index-9yjaxema.js → index-y5t6w61g.js} +1 -1
  44. package/build/{issues-n579mwj1.js → issues-hnw2wt5k.js} +16 -15
  45. package/build/{knowledge-p1axk6hj.js → knowledge-66kn0fwh.js} +16 -15
  46. package/build/{lance-3jh7nx7s.js → lance-qyph9jw1.js} +9 -8
  47. package/build/lib/{chunk-z0fjbn1g.js → chunk-00jhhedd.js} +18 -28
  48. package/build/lib/{chunk-ge5k2t96.js → chunk-0hqjfqxb.js} +648 -216
  49. package/build/lib/{chunk-87086sw5.js → chunk-10p58fqe.js} +14 -5
  50. package/build/lib/{chunk-v2maz4g3.js → chunk-2svje0df.js} +12 -30
  51. package/build/lib/{chunk-nahyza5p.js → chunk-486zwtmg.js} +17 -7
  52. package/build/lib/{chunk-j6fh903j.js → chunk-6vhf2dvv.js} +1 -1
  53. package/build/lib/{chunk-deqmazx3.js → chunk-7350h8ab.js} +24 -12
  54. package/build/lib/{chunk-ds1pvtsd.js → chunk-7syrjsr5.js} +2 -1
  55. package/build/lib/{chunk-8b4hhfga.js → chunk-98gxfne9.js} +2 -2
  56. package/build/lib/{chunk-kc7cycqk.js → chunk-bq643vks.js} +1 -1
  57. package/build/lib/{chunk-vphyxc04.js → chunk-c5w6byvf.js} +1 -1
  58. package/build/lib/{chunk-bx7zx8h4.js → chunk-dj7bk5xm.js} +13 -10
  59. package/build/lib/{chunk-2njv7wz3.js → chunk-hbyxyxdc.js} +4 -0
  60. package/build/lib/{chunk-4wvhkr4q.js → chunk-pr63gfsd.js} +1 -1
  61. package/build/lib/{chunk-k87x4eey.js → chunk-ptp3er5d.js} +7 -3
  62. package/build/lib/{chunk-v1q7kddr.js → chunk-q3f1tjdx.js} +1 -1
  63. package/build/lib/{chunk-jcwnfy61.js → chunk-qn9512q7.js} +1 -1
  64. package/build/lib/{chunk-03919ezr.js → chunk-qpewr18w.js} +1 -1
  65. package/build/lib/{chunk-4r48bhwh.js → chunk-rcneqwt6.js} +1 -1
  66. package/build/lib/{chunk-e5455ewa.js → chunk-rh6fz13n.js} +46 -2
  67. package/build/lib/{chunk-xvkqvrbs.js → chunk-tcdd68ax.js} +1 -1
  68. package/build/lib/{chunk-jjbhxz68.js → chunk-w9cs2h48.js} +3 -3
  69. package/build/lib/{chunk-4x7zg5s8.js → chunk-y82jpv2x.js} +10 -10
  70. package/build/lib/{chunk-kbkpesp9.js → chunk-y9pm3xqv.js} +5 -1
  71. package/build/lib/{chunk-esngr9ry.js → chunk-zntm5p3b.js} +19 -12
  72. package/build/lib/core/agents/offSecAgent/index.js +8 -8
  73. package/build/lib/core/agents/offSecAgent/subagentSpawner.d.ts +3 -1
  74. package/build/lib/core/agents/offSecAgent/subagentSpawner.js +6 -6
  75. package/build/lib/core/agents/offSecAgent/tools/index.js +7 -7
  76. package/build/lib/core/agents/offSecAgent/tools/types.d.ts +2 -1
  77. package/build/lib/core/agents/offSecAgent/types.d.ts +3 -1
  78. package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +10 -10
  79. package/build/lib/core/agents/specialized/attackSurface/schemas.js +10 -10
  80. package/build/lib/core/agents/specialized/authenticationAgent/index.js +11 -11
  81. package/build/lib/core/agents/specialized/codeAgent/agent.js +10 -10
  82. package/build/lib/core/agents/specialized/cvssScorer/index.d.ts +2 -1
  83. package/build/lib/core/agents/specialized/findingJudge/agent.js +9 -9
  84. package/build/lib/core/agents/specialized/findingJudge/index.d.ts +1 -1
  85. package/build/lib/core/agents/specialized/findingJudge/index.js +4 -4
  86. package/build/lib/core/agents/specialized/patching/index.js +11 -11
  87. package/build/lib/core/agents/specialized/pentest/agent.js +10 -10
  88. package/build/lib/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.d.ts +2 -1
  89. package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +10 -10
  90. package/build/lib/core/ai/ai.d.ts +9 -75
  91. package/build/lib/core/ai/ai.js +5 -3
  92. package/build/lib/core/ai/index.d.ts +1 -0
  93. package/build/lib/core/ai/index.js +16 -4
  94. package/build/lib/core/ai/reasoning.d.ts +44 -0
  95. package/build/lib/core/ai/utils.js +3 -3
  96. package/build/lib/core/api/index.js +20 -20
  97. package/build/lib/core/api/reasoning.d.ts +12 -0
  98. package/build/lib/core/api/targetedPentest.js +11 -11
  99. package/build/lib/core/cli/reasoning.d.ts +4 -0
  100. package/build/lib/core/config/config.d.ts +5 -2
  101. package/build/lib/core/config/customProviders.d.ts +11 -0
  102. package/build/lib/core/config/index.js +1 -1
  103. package/build/lib/core/findings/registry.d.ts +3 -1
  104. package/build/lib/core/findings/registry.js +4 -4
  105. package/build/lib/core/observability/index.js +1 -1
  106. package/build/lib/core/observability/telemetry.d.ts +4 -0
  107. package/build/lib/core/session/index.d.ts +32 -0
  108. package/build/lib/core/session/index.js +6 -4
  109. package/build/lib/core/session/persistence.js +4 -4
  110. package/build/lib/core/workflows/pentest.d.ts +4 -1
  111. package/build/lib/core/workflows/pentest.js +16 -16
  112. package/build/lib/core/workflows/seams.js +5 -5
  113. package/build/lib/core/workflows/threatModel.d.ts +1 -0
  114. package/build/lib/core/workflows/whiteboxAttackSurface.d.ts +3 -1
  115. package/build/lib/core/workflows/whiteboxAttackSurface.js +12 -12
  116. package/build/lib/index.js +23 -23
  117. package/build/{logs-y3khdc1n.js → logs-h3rxtq6w.js} +16 -15
  118. package/build/{native-rollout-evidence-k5whdh7f.js → native-rollout-evidence-kt4rd2bp.js} +5 -5
  119. package/build/{offesecAgent-rz5nyebg.js → offesecAgent-e3ea8mr6.js} +12 -7
  120. package/build/pentest-qx9c8wtg.js +23 -0
  121. package/build/{pentests-c0q1gr96.js → pentests-39hy0dre.js} +16 -15
  122. package/build/recordedRunClient-gra1x1y6.js +11 -0
  123. package/build/{subagentSpawner-aps2msrw.js → subagentSpawner-2sx2edxp.js} +4 -4
  124. package/build/{targetedPentest-fyxrynh4.js → targetedPentest-ttafan4t.js} +35 -9
  125. package/build/{targets-brxtjz0r.js → targets-fzte2kq9.js} +16 -15
  126. package/build/threatModel-nm449g6b.js +24 -0
  127. package/build/{uninstall-ddk3yk69.js → uninstall-0m52nyc0.js} +1 -1
  128. package/build/{upload-5gkh0rq7.js → upload-cnnhkzgt.js} +4 -4
  129. package/build/{utils-qam9gqrq.js → utils-pq6pdv6p.js} +5 -5
  130. package/package.json +2 -1
  131. package/src/cli.ts +25 -3
  132. package/src/core/agents/lance.ts +9 -3
  133. package/src/core/agents/lanceJudge.ts +1 -0
  134. package/src/core/agents/offSecAgent/offensiveSecurityAgent.ts +12 -1
  135. package/src/core/agents/offSecAgent/subagentSpawner.reasoning.test.ts +167 -0
  136. package/src/core/agents/offSecAgent/subagentSpawner.ts +11 -27
  137. package/src/core/agents/offSecAgent/tools/delegateAuth.ts +2 -2
  138. package/src/core/agents/offSecAgent/tools/documentFinding.ts +3 -5
  139. package/src/core/agents/offSecAgent/tools/runAttackSurface.ts +3 -4
  140. package/src/core/agents/offSecAgent/tools/runPentestWorkflow.ts +1 -0
  141. package/src/core/agents/offSecAgent/tools/spawnCodingAgent.ts +2 -5
  142. package/src/core/agents/offSecAgent/tools/spawnPentestAgent.test.ts +7 -1
  143. package/src/core/agents/offSecAgent/tools/spawnPentestAgent.ts +3 -5
  144. package/src/core/agents/offSecAgent/tools/spawnPentestSwarm.ts +2 -0
  145. package/src/core/agents/offSecAgent/tools/threatModelGenerator.ts +2 -3
  146. package/src/core/agents/offSecAgent/tools/types.ts +2 -0
  147. package/src/core/agents/offSecAgent/types.ts +3 -0
  148. package/src/core/agents/specialized/cvssScorer/index.test.ts +2 -1
  149. package/src/core/agents/specialized/cvssScorer/index.ts +3 -0
  150. package/src/core/agents/specialized/findingJudge/index.ts +2 -0
  151. package/src/core/agents/specialized/whiteboxAttackSurface/endpointDocumentationAgent.ts +4 -0
  152. package/src/core/ai/ai.lance.test.ts +54 -32
  153. package/src/core/ai/ai.operator-context.bench.test.ts +159 -177
  154. package/src/core/ai/ai.recorded-context.test.ts +15 -8
  155. package/src/core/ai/ai.test.ts +37 -69
  156. package/src/core/ai/ai.ts +82 -297
  157. package/src/core/ai/compactionTelemetry.test.ts +67 -15
  158. package/src/core/ai/index.ts +11 -0
  159. package/src/core/ai/models/models.test.ts +25 -7
  160. package/src/core/ai/models/openrouter-reasoning.json +219 -0
  161. package/src/core/ai/providers/custom.test.ts +74 -0
  162. package/src/core/ai/providers/custom.ts +3 -1
  163. package/src/core/ai/providers/pensarFormatters.ts +8 -1
  164. package/src/core/ai/reasoning.test.ts +313 -0
  165. package/src/core/ai/reasoning.ts +500 -0
  166. package/src/core/ai/utils.native-rollout-evidence.test.ts +20 -8
  167. package/src/core/ai/utils.ts +45 -8
  168. package/src/core/api/attackSurface.ts +1 -0
  169. package/src/core/api/offesecAgent.test.ts +51 -0
  170. package/src/core/api/offesecAgent.ts +7 -0
  171. package/src/core/api/reasoning.test.ts +213 -0
  172. package/src/core/api/reasoning.ts +44 -0
  173. package/src/core/api/recordedRun.loop.test.ts +5 -1
  174. package/src/core/api/targetedPentest.test.ts +14 -2
  175. package/src/core/api/targetedPentest.ts +33 -0
  176. package/src/core/cli/reasoning.test.ts +149 -0
  177. package/src/core/cli/reasoning.ts +95 -0
  178. package/src/core/config/config.ts +3 -0
  179. package/src/core/config/customProviders.ts +21 -2
  180. package/src/core/findings/registry.test.ts +9 -1
  181. package/src/core/findings/registry.ts +6 -0
  182. package/src/core/observability/telemetry.test.ts +129 -76
  183. package/src/core/observability/telemetry.ts +5 -0
  184. package/src/core/session/index.ts +29 -0
  185. package/src/core/workflows/fastStrike.ts +3 -0
  186. package/src/core/workflows/pentest.ts +18 -0
  187. package/src/core/workflows/threatModel.ts +2 -0
  188. package/src/core/workflows/whiteboxAttackSurface.ts +10 -0
  189. package/src/tui/command-registry.test.ts +12 -0
  190. package/src/tui/command-registry.ts +8 -0
  191. package/src/tui/components/chat/config-view.tsx +6 -10
  192. package/src/tui/components/chat/home-view.tsx +2 -2
  193. package/src/tui/components/chat/input-area.tsx +2 -2
  194. package/src/tui/components/commands/models-display.tsx +7 -1
  195. package/src/tui/components/model-picker/ModelPicker.tsx +65 -103
  196. package/src/tui/components/model-picker/ModelPickerDialog.tsx +8 -14
  197. package/src/tui/components/model-picker/__tests__/reasoning-control.tsx +162 -0
  198. package/src/tui/components/model-picker/reasoning-control.test.ts +15 -0
  199. package/src/tui/components/operator-dashboard/index.tsx +31 -10
  200. package/src/tui/components/operator-dashboard/logic.test.ts +15 -2
  201. package/src/tui/components/operator-dashboard/logic.ts +6 -1
  202. package/src/tui/context/agent.tsx +32 -79
  203. package/build/agent-10mq5k9j.js +0 -14
  204. package/build/agent-30gf97eh.js +0 -14
  205. package/build/blackboxAgent-pjnkpcw1.js +0 -14
  206. package/build/cli-g06s7edq.js +0 -11
  207. package/build/pentest-cwg44v4p.js +0 -23
  208. package/build/recordedRunClient-pbaczqb6.js +0 -11
  209. package/build/threatModel-18417p77.js +0 -23
@@ -0,0 +1,14 @@
1
+ import {
2
+ CodeAgent2
3
+ } from "./cli-m57v3wm9.js";
4
+ import"./cli-jpjj10xv.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-b3hef9fp.js";
7
+ import"./cli-40gstjf7.js";
8
+ import"./cli-6g5p7cfd.js";
9
+ import"./cli-z41890cy.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-mfgsx6hc.js";
12
+ export {
13
+ CodeAgent2 as CodeAgent
14
+ };
@@ -0,0 +1,14 @@
1
+ import {
2
+ runAuthenticationAgent2
3
+ } from "./cli-am8b7hr4.js";
4
+ import"./cli-jpjj10xv.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-b3hef9fp.js";
7
+ import"./cli-40gstjf7.js";
8
+ import"./cli-6g5p7cfd.js";
9
+ import"./cli-z41890cy.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-mfgsx6hc.js";
12
+ export {
13
+ runAuthenticationAgent2 as runAuthenticationAgent
14
+ };
@@ -1,16 +1,16 @@
1
- import"./cli-z4zhpya3.js";
2
- import"./cli-rpsbx8gr.js";
3
- import"./cli-be94d6vz.js";
4
- import"./cli-dnc52s6m.js";
1
+ import"./cli-40gstjf7.js";
2
+ import"./cli-mfgsx6hc.js";
3
+ import"./cli-z41890cy.js";
4
+ import"./cli-b3hef9fp.js";
5
5
  import {
6
6
  AgentRuntime,
7
7
  defineAgent
8
- } from "./cli-cqjrngg1.js";
8
+ } from "./cli-jpjj10xv.js";
9
9
  import"./cli-qba2x69h.js";
10
10
  import {
11
11
  stepCountIs2,
12
12
  init_dist
13
- } from "./cli-46vcb9b8.js";
13
+ } from "./cli-6g5p7cfd.js";
14
14
  import"./cli-c2k4xxaw.js";
15
15
  import {
16
16
  init_zod
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  config2,
3
3
  init_config
4
- } from "./cli-rpsbx8gr.js";
5
- import"./cli-be94d6vz.js";
6
- import"./cli-dnc52s6m.js";
4
+ } from "./cli-mfgsx6hc.js";
5
+ import"./cli-z41890cy.js";
6
+ import"./cli-b3hef9fp.js";
7
7
  import {
8
8
  AgentEventBus
9
- } from "./cli-z4zhpya3.js";
9
+ } from "./cli-40gstjf7.js";
10
10
  import {
11
11
  inspectSessionEvidence2,
12
12
  RecordedRunSpecSchema,
@@ -17,30 +17,31 @@ import {
17
17
  runRecordedAgent2,
18
18
  RunRecoveryBlockedError2,
19
19
  resumeRecordedAgent2
20
- } from "./cli-66sfrenk.js";
21
- import"./cli-93p9edgd.js";
22
- import"./cli-be6rpy4n.js";
23
- import"./cli-4vhqy3jy.js";
24
- import"./cli-153dfpyr.js";
25
- import"./cli-865ax921.js";
26
- import"./cli-jvdc93sx.js";
27
- import"./cli-1jd9ydse.js";
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";
28
29
  import"./cli-xcy2vxj2.js";
29
30
  import {
30
31
  resolveWorkerExecutable,
31
32
  launchLocalWorker
32
- } from "./cli-a2pxz9jh.js";
33
- import"./cli-dsjybzds.js";
34
- import"./cli-cqjrngg1.js";
33
+ } from "./cli-v084p264.js";
34
+ import"./cli-jvhswf25.js";
35
+ import"./cli-jpjj10xv.js";
35
36
  import"./cli-qba2x69h.js";
36
37
  import {
37
38
  buildAuthConfig,
38
- init_ai
39
- } from "./cli-46vcb9b8.js";
39
+ init_ai2
40
+ } from "./cli-6g5p7cfd.js";
40
41
  import"./cli-c2k4xxaw.js";
41
42
 
42
43
  // src/cli/agent-runs.ts
43
- init_ai();
44
+ init_ai2();
44
45
  import { once } from "node:events";
45
46
  import { readFile } from "node:fs/promises";
46
47
  import { isAbsolute, resolve } from "node:path";
@@ -117,7 +118,7 @@ async function runAgentRunsCommand(args) {
117
118
  if (!isAbsolute(values.store)) {
118
119
  throw new Error("agent-runs worker requires --store <absolute database>");
119
120
  }
120
- const { serveLocalRunWorker } = await import("./index-8sm0xn4j.js");
121
+ const { serveLocalRunWorker } = await import("./index-1j283k20.js");
121
122
  await serveLocalRunWorker({
122
123
  runId: values.run,
123
124
  databasePath: resolve(values.store)
@@ -131,7 +132,7 @@ async function runAgentRunsCommand(args) {
131
132
  ${HELP}`);
132
133
  }
133
134
  if (command === "attach") {
134
- const { openRecordedRunClient } = await import("./recordedRunClient-pbaczqb6.js");
135
+ const { openRecordedRunClient } = await import("./recordedRunClient-gra1x1y6.js");
135
136
  const client = await openRecordedRunClient(values.store);
136
137
  const controller = new AbortController;
137
138
  const detach = () => controller.abort();
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  TargetedPentestAgent2,
3
3
  buildPentestSystemPrompt2
4
- } from "./cli-jvdc93sx.js";
5
- import"./cli-cqjrngg1.js";
4
+ } from "./cli-xb0pqkbk.js";
5
+ import"./cli-jpjj10xv.js";
6
6
  import"./cli-qba2x69h.js";
7
- import"./cli-dnc52s6m.js";
8
- import"./cli-z4zhpya3.js";
9
- import"./cli-46vcb9b8.js";
10
- import"./cli-be94d6vz.js";
7
+ import"./cli-b3hef9fp.js";
8
+ import"./cli-40gstjf7.js";
9
+ import"./cli-6g5p7cfd.js";
10
+ import"./cli-z41890cy.js";
11
11
  import"./cli-c2k4xxaw.js";
12
- import"./cli-rpsbx8gr.js";
12
+ import"./cli-mfgsx6hc.js";
13
13
  export {
14
14
  TargetedPentestAgent2 as TargetedPentestAgent,
15
15
  buildPentestSystemPrompt2 as buildPentestSystemPrompt
@@ -15,26 +15,27 @@ import {
15
15
  searchEndpoints2,
16
16
  listDomains2,
17
17
  createDomain2
18
- } from "./cli-dnc52s6m.js";
19
- import"./cli-z4zhpya3.js";
20
- import"./cli-rpsbx8gr.js";
21
- import"./cli-be94d6vz.js";
22
- import"./cli-66sfrenk.js";
23
- import"./cli-93p9edgd.js";
24
- import"./cli-be6rpy4n.js";
25
- import"./cli-4vhqy3jy.js";
26
- import"./cli-153dfpyr.js";
27
- import"./cli-865ax921.js";
28
- import"./cli-jvdc93sx.js";
29
- import"./cli-1jd9ydse.js";
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";
30
31
  import"./cli-xcy2vxj2.js";
31
32
  import {
32
33
  markCommandFailed
33
34
  } from "./cli-z82n3qk1.js";
34
- import"./cli-dsjybzds.js";
35
- import"./cli-cqjrngg1.js";
35
+ import"./cli-jvhswf25.js";
36
+ import"./cli-jpjj10xv.js";
36
37
  import"./cli-qba2x69h.js";
37
- import"./cli-46vcb9b8.js";
38
+ import"./cli-6g5p7cfd.js";
38
39
  import"./cli-c2k4xxaw.js";
39
40
 
40
41
  // src/cli/apps.ts
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env bun
2
- import"./cli-dnc52s6m.js";
3
- import"./cli-z4zhpya3.js";
2
+ import"./cli-b3hef9fp.js";
3
+ import"./cli-40gstjf7.js";
4
4
  import {
5
5
  config2,
6
6
  init_config
7
- } from "./cli-rpsbx8gr.js";
7
+ } from "./cli-mfgsx6hc.js";
8
8
  import {
9
9
  getPensarApiUrl2,
10
10
  getPensarConsoleUrl2,
@@ -20,23 +20,24 @@ import {
20
20
  createWorkspaceSelection2,
21
21
  pollWorkspaceSelection2,
22
22
  init_auth
23
- } from "./cli-be94d6vz.js";
24
- import"./cli-66sfrenk.js";
25
- import"./cli-93p9edgd.js";
26
- import"./cli-be6rpy4n.js";
27
- import"./cli-4vhqy3jy.js";
28
- import"./cli-153dfpyr.js";
29
- import"./cli-865ax921.js";
30
- import"./cli-jvdc93sx.js";
31
- import"./cli-1jd9ydse.js";
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";
32
33
  import"./cli-xcy2vxj2.js";
33
34
  import {
34
35
  markCommandFailed
35
36
  } from "./cli-z82n3qk1.js";
36
- import"./cli-dsjybzds.js";
37
- import"./cli-cqjrngg1.js";
37
+ import"./cli-jvhswf25.js";
38
+ import"./cli-jpjj10xv.js";
38
39
  import"./cli-qba2x69h.js";
39
- import"./cli-46vcb9b8.js";
40
+ import"./cli-6g5p7cfd.js";
40
41
  import"./cli-c2k4xxaw.js";
41
42
  import {
42
43
  __require
@@ -0,0 +1,14 @@
1
+ import {
2
+ BlackboxAttackSurfaceAgent2
3
+ } from "./cli-8wkays8e.js";
4
+ import"./cli-jpjj10xv.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-b3hef9fp.js";
7
+ import"./cli-40gstjf7.js";
8
+ import"./cli-6g5p7cfd.js";
9
+ import"./cli-z41890cy.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-mfgsx6hc.js";
12
+ export {
13
+ BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
14
+ };
@@ -1,31 +1,31 @@
1
- import"./cli-rpsbx8gr.js";
2
- import"./cli-be94d6vz.js";
3
- import"./cli-z4zhpya3.js";
4
- import"./cli-dnc52s6m.js";
5
- import"./cli-93p9edgd.js";
6
- import"./cli-jvdc93sx.js";
7
- import"./cli-1jd9ydse.js";
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";
8
8
  import {
9
9
  readExecutionMetrics,
10
10
  writeExecutionMetrics,
11
11
  runPentestWorkflow2
12
- } from "./cli-153dfpyr.js";
13
- import"./cli-be6rpy4n.js";
14
- import"./cli-4vhqy3jy.js";
12
+ } from "./cli-pepjaeek.js";
13
+ import"./cli-m57v3wm9.js";
14
+ import"./cli-ygcbxb1m.js";
15
15
  import {
16
16
  EMPTY_SESSION_TOKEN_USAGE,
17
17
  accumulateSessionTokens
18
18
  } from "./cli-ag6jtndp.js";
19
- import"./cli-cqjrngg1.js";
19
+ import"./cli-jpjj10xv.js";
20
20
  import"./cli-qba2x69h.js";
21
21
  import {
22
- init_ai,
23
- normalizeStepUsage
24
- } from "./cli-46vcb9b8.js";
22
+ normalizeStepUsage,
23
+ init_ai2
24
+ } from "./cli-6g5p7cfd.js";
25
25
  import"./cli-c2k4xxaw.js";
26
26
 
27
27
  // src/core/api/blackboxPentest.ts
28
- init_ai();
28
+ init_ai2();
29
29
  async function runPentestAgent(input) {
30
30
  const persisted = readExecutionMetrics(input.session.rootPath)?.tokenUsage;
31
31
  let tokenUsage = persisted ?? EMPTY_SESSION_TOKEN_USAGE;
@@ -1,11 +1,12 @@
1
1
  import {
2
- scopedLogger,
3
- init_lazyLogger,
4
- init_ai,
5
2
  createLogger,
6
3
  init_structured,
7
- generateObjectResponse
8
- } from "./cli-46vcb9b8.js";
4
+ scopedLogger,
5
+ init_lazyLogger,
6
+ getModelSettings,
7
+ generateObjectResponse,
8
+ init_ai2
9
+ } from "./cli-6g5p7cfd.js";
9
10
  import {
10
11
  newSessionId,
11
12
  init_id,
@@ -193,7 +194,7 @@ class AgentEventBus {
193
194
  }
194
195
 
195
196
  // src/core/agents/offSecAgent/subagentSpawner.ts
196
- init_ai();
197
+ init_ai2();
197
198
 
198
199
  // src/core/utils/concurrency.ts
199
200
  var import_api = __toESM(require_src6(), 1);
@@ -371,7 +372,7 @@ class AttackSurfaceRegistry {
371
372
 
372
373
  // src/core/findings/registry.ts
373
374
  init_zod();
374
- init_ai();
375
+ init_ai2();
375
376
  init_structured();
376
377
  init_lazyLogger();
377
378
  import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
@@ -545,6 +546,7 @@ class FindingsRegistry {
545
546
  appWideKeys = new Map;
546
547
  findings = [];
547
548
  model;
549
+ reasoning;
548
550
  authConfig;
549
551
  abortSignal;
550
552
  sessionId;
@@ -553,6 +555,7 @@ class FindingsRegistry {
553
555
  mutex = Promise.resolve();
554
556
  constructor(opts) {
555
557
  this.model = opts?.model;
558
+ this.reasoning = opts?.reasoning;
556
559
  this.authConfig = opts?.authConfig;
557
560
  this.abortSignal = opts?.abortSignal;
558
561
  this.sessionId = opts?.sessionId;
@@ -667,6 +670,7 @@ class FindingsRegistry {
667
670
  const prompt = buildSemanticDedupPrompt(finding, existingFindings);
668
671
  const result = await generateObjectResponse({
669
672
  model: this.model,
673
+ reasoning: this.reasoning,
670
674
  schema: SemanticDedupResultSchema,
671
675
  prompt,
672
676
  system: SEMANTIC_DEDUP_SYSTEM,
@@ -708,6 +712,7 @@ class FindingsRegistry {
708
712
  try {
709
713
  result = await generateObjectResponse({
710
714
  model: this.model,
715
+ reasoning: this.reasoning,
711
716
  schema: RootCauseGroupResultSchema,
712
717
  prompt,
713
718
  system: ROOT_CAUSE_GROUPING_SYSTEM,
@@ -904,7 +909,7 @@ async function spawnBatch2(spawner, requests, opts, limiter) {
904
909
  });
905
910
  }
906
911
  async function runSpawnedPentestWorker(spec, input) {
907
- const { TargetedPentestAgent } = await import("./agent-gmvjvv73.js");
912
+ const { TargetedPentestAgent } = await import("./agent-x8nf3k1v.js");
908
913
  const hooks = resolveItemHooks(input.hooks, input.seams, spec, 0);
909
914
  const agent = new TargetedPentestAgent({
910
915
  target: spec.target,
@@ -915,9 +920,8 @@ async function runSpawnedPentestWorker(spec, input) {
915
920
  role: spec.role,
916
921
  findingsRegistry: input.findingsRegistry,
917
922
  browserSession: input.browserSession,
918
- model: input.model,
923
+ ...getModelSettings(input),
919
924
  session: input.session,
920
- authConfig: input.authConfig,
921
925
  onStepFinish: input.onStepFinish,
922
926
  onCacheMetrics: input.onCacheMetrics,
923
927
  eventBus: input.eventBus,
@@ -925,9 +929,6 @@ async function runSpawnedPentestWorker(spec, input) {
925
929
  subagentName: input.subagentName,
926
930
  environmentVariables: input.environmentVariables,
927
931
  secretValues: input.secretValues,
928
- enableThinking: input.enableThinking,
929
- thinkingEffort: input.thinkingEffort,
930
- openAIReasoningEffort: input.openAIReasoningEffort,
931
932
  display: input.display,
932
933
  ...hooks,
933
934
  abortSignal: input.abortSignal && hooks.abortSignal ? AbortSignal.any([input.abortSignal, hooks.abortSignal]) : input.abortSignal ?? hooks.abortSignal
@@ -946,9 +947,8 @@ var runPentestChild = async (spec, ctx) => {
946
947
  role: spec.role
947
948
  };
948
949
  const workerInput = {
949
- model: ctx.model,
950
+ ...getModelSettings(ctx),
950
951
  session: ctx.session,
951
- authConfig: ctx.authConfig,
952
952
  abortSignal: ctx.abortSignal,
953
953
  onStepFinish: ctx.onStepFinish,
954
954
  onCacheMetrics: ctx.onCacheMetrics,
@@ -959,9 +959,6 @@ var runPentestChild = async (spec, ctx) => {
959
959
  browserSession: spec.browserSession,
960
960
  environmentVariables: ctx.environmentVariables,
961
961
  secretValues: ctx.secretValues,
962
- enableThinking: ctx.enableThinking,
963
- thinkingEffort: ctx.thinkingEffort,
964
- openAIReasoningEffort: ctx.openAIReasoningEffort,
965
962
  display: ctx.display,
966
963
  hooks: {
967
964
  findingPolicy: ctx.findingPolicy,
@@ -983,7 +980,7 @@ var runPentestChild = async (spec, ctx) => {
983
980
  };
984
981
  };
985
982
  var runCodeChild = async (spec, ctx) => {
986
- const { CodeAgent } = await import("./agent-10mq5k9j.js");
983
+ const { CodeAgent } = await import("./agent-htj3ww3e.js");
987
984
  const agent = new CodeAgent({
988
985
  findingPolicy: ctx.findingPolicy,
989
986
  codebasePath: spec.codebasePath,
@@ -994,18 +991,14 @@ var runCodeChild = async (spec, ctx) => {
994
991
  excludeTools: spec.excludeTools,
995
992
  projectThreatModel: spec.projectThreatModel,
996
993
  attackSurfaceRegistry: spec.attackSurfaceRegistry,
997
- model: ctx.model,
994
+ ...getModelSettings(ctx),
998
995
  session: ctx.session,
999
- authConfig: ctx.authConfig,
1000
996
  abortSignal: ctx.abortSignal,
1001
997
  eventBus: ctx.eventBus,
1002
998
  subagentId: ctx.subagentId,
1003
999
  subagentName: ctx.subagentName,
1004
1000
  sandbox: ctx.sandbox,
1005
1001
  backends: ctx.backends,
1006
- enableThinking: ctx.enableThinking,
1007
- thinkingEffort: ctx.thinkingEffort,
1008
- openAIReasoningEffort: ctx.openAIReasoningEffort,
1009
1002
  display: ctx.display,
1010
1003
  onStepFinish: ctx.onStepFinish,
1011
1004
  onCacheMetrics: ctx.onCacheMetrics,
@@ -1017,14 +1010,13 @@ var runCodeChild = async (spec, ctx) => {
1017
1010
  return { run: () => agent.consume(), drained: () => agent.drained };
1018
1011
  };
1019
1012
  var runWhiteboxChild = async (spec, ctx) => {
1020
- const { WhiteboxAttackSurfaceAgent } = await import("./index-jg0dagyr.js");
1013
+ const { WhiteboxAttackSurfaceAgent } = await import("./index-vq0132nv.js");
1021
1014
  const agent = new WhiteboxAttackSurfaceAgent({
1022
1015
  findingPolicy: ctx.findingPolicy,
1023
1016
  codebasePath: spec.codebasePath,
1024
1017
  attackSurfaceRegistry: spec.attackSurfaceRegistry,
1025
- model: ctx.model,
1018
+ ...getModelSettings(ctx),
1026
1019
  session: ctx.session,
1027
- authConfig: ctx.authConfig,
1028
1020
  abortSignal: ctx.abortSignal,
1029
1021
  eventBus: ctx.eventBus,
1030
1022
  subagentId: ctx.subagentId,
@@ -1039,14 +1031,13 @@ var runWhiteboxChild = async (spec, ctx) => {
1039
1031
  return { run: () => agent.consume(), drained: () => agent.drained };
1040
1032
  };
1041
1033
  var runBlackboxChild = async (spec, ctx) => {
1042
- const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-pjnkpcw1.js");
1034
+ const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-g18ps9hs.js");
1043
1035
  const agent = new BlackboxAttackSurfaceAgent({
1044
1036
  findingPolicy: ctx.findingPolicy,
1045
1037
  target: spec.target,
1046
1038
  attackSurfaceRegistry: spec.attackSurfaceRegistry,
1047
- model: ctx.model,
1039
+ ...getModelSettings(ctx),
1048
1040
  session: ctx.session,
1049
- authConfig: ctx.authConfig,
1050
1041
  abortSignal: ctx.abortSignal,
1051
1042
  eventBus: ctx.eventBus,
1052
1043
  subagentId: ctx.subagentId,
@@ -1060,15 +1051,14 @@ var runBlackboxChild = async (spec, ctx) => {
1060
1051
  return { run: () => agent.consume(), drained: () => agent.drained };
1061
1052
  };
1062
1053
  var runAuthChild = async (spec, ctx) => {
1063
- const { runAuthenticationAgent } = await import("./agent-30gf97eh.js");
1054
+ const { runAuthenticationAgent } = await import("./agent-km3wss0b.js");
1064
1055
  return {
1065
1056
  run: () => runAuthenticationAgent({
1066
1057
  findingPolicy: ctx.findingPolicy,
1067
1058
  target: spec.target,
1068
1059
  authHints: spec.authHints,
1069
1060
  session: ctx.session,
1070
- model: ctx.model,
1071
- authConfig: ctx.authConfig,
1061
+ ...getModelSettings(ctx),
1072
1062
  abortSignal: ctx.abortSignal,
1073
1063
  eventBus: ctx.eventBus,
1074
1064
  subagentId: ctx.subagentId,
@@ -1084,13 +1074,12 @@ var runAuthChild = async (spec, ctx) => {
1084
1074
  };
1085
1075
  };
1086
1076
  var runJudgeChild = async (spec, ctx) => {
1087
- const { judgeFinding } = await import("./index-dx7s2krd.js");
1077
+ const { judgeFinding } = await import("./index-cn1pgs79.js");
1088
1078
  return {
1089
1079
  run: () => judgeFinding(spec.judgeInput, {
1090
1080
  waitForDrain: spec.waitForDrain,
1091
- model: ctx.model,
1081
+ ...getModelSettings(ctx),
1092
1082
  session: ctx.session,
1093
- authConfig: ctx.authConfig,
1094
1083
  abortSignal: ctx.abortSignal,
1095
1084
  eventBus: ctx.eventBus,
1096
1085
  subagentId: ctx.subagentId,
@@ -1098,9 +1087,6 @@ var runJudgeChild = async (spec, ctx) => {
1098
1087
  sandbox: ctx.sandbox,
1099
1088
  backends: ctx.backends,
1100
1089
  target: spec.target,
1101
- enableThinking: ctx.enableThinking,
1102
- thinkingEffort: ctx.thinkingEffort,
1103
- openAIReasoningEffort: ctx.openAIReasoningEffort,
1104
1090
  languageModelMiddleware: ctx.languageModelMiddleware,
1105
1091
  usageRecorder: ctx.usageRecorder,
1106
1092
  toolExecutionContext: ctx.toolExecutionContext,