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

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 (156) hide show
  1. package/README.md +13 -0
  2. package/build/agent-34gmbmct.js +14 -0
  3. package/build/{agent-j79hpm2v.js → agent-3nyddsj2.js} +7 -7
  4. package/build/agent-jdcbh4s0.js +14 -0
  5. package/build/{agent-8p8p45dg.js → agent-rjyfyw0g.js} +6 -6
  6. package/build/{agent-runs-7bses37q.js → agent-runs-dhvj9n11.js} +19 -19
  7. package/build/{apps-8yvrx9qq.js → apps-xb4dwm8m.js} +16 -16
  8. package/build/{auth-9cg6a24n.js → auth-3herxns4.js} +16 -16
  9. package/build/blackboxAgent-d7xv0thk.js +14 -0
  10. package/build/{blackboxPentest-nt3k5an4.js → blackboxPentest-n73frjae.js} +12 -12
  11. package/build/{cli-rjnwmh9y.js → cli-0xvrtsac.js} +2 -1
  12. package/build/{cli-t6jjemz3.js → cli-15df7cy4.js} +7 -7
  13. package/build/{cli-jvekn5fm.js → cli-16jm0s8q.js} +2 -2
  14. package/build/{cli-83kfkdv1.js → cli-1k414c58.js} +1 -1
  15. package/build/{cli-bv2ank3r.js → cli-2r2agtre.js} +2 -2
  16. package/build/{cli-ty55px8v.js → cli-3ne35gxp.js} +68 -11
  17. package/build/{cli-2f2682d8.js → cli-5nsn1vpx.js} +2 -2
  18. package/build/{cli-q6q1ndmg.js → cli-67bcwpc2.js} +1 -1
  19. package/build/{cli-2smp6vy3.js → cli-730f1622.js} +1 -1
  20. package/build/{cli-hqt03hyz.js → cli-cwmkbq45.js} +3 -3
  21. package/build/{cli-hx0erkgq.js → cli-d13d67ym.js} +2 -2
  22. package/build/{cli-dm2fc4v9.js → cli-ebx3j3c5.js} +2 -2
  23. package/build/{cli-sbxx1mx3.js → cli-f7v0fgc0.js} +1 -1
  24. package/build/{cli-qsrqeqts.js → cli-h2r33z2v.js} +9 -9
  25. package/build/{cli-3gt761d2.js → cli-j0wfj2kw.js} +6 -0
  26. package/build/{cli-3ysp9qdp.js → cli-jqf27aw9.js} +7 -7
  27. package/build/{cli-rm6chd07.js → cli-nrz17r1p.js} +8 -8
  28. package/build/{cli-3qac6b95.js → cli-q9rsfw2a.js} +1 -1
  29. package/build/{cli-rb7669sc.js → cli-rsdhzyxc.js} +1 -1
  30. package/build/{cli-54ej646m.js → cli-sy52tg90.js} +1 -1
  31. package/build/{cli-hfm4szxe.js → cli-veyqzxra.js} +3 -3
  32. package/build/{cli-j1jcp1ma.js → cli-xc4jc5g8.js} +1 -1
  33. package/build/cli.js +40 -39
  34. package/build/{config-dang1bbh.js → config-csq1zxtv.js} +1 -1
  35. package/build/{doctor-z94afr10.js → doctor-srja68wr.js} +1 -0
  36. package/build/{fastStrike-mv8qq6xw.js → fastStrike-d6ekb4qh.js} +6 -6
  37. package/build/{fixes-bqrv4brm.js → fixes-3msn9pqm.js} +16 -16
  38. package/build/{index-6apqbv2n.js → index-0hz1wzxq.js} +5 -5
  39. package/build/{index-jsrgf01b.js → index-82q74kah.js} +5 -5
  40. package/build/{index-qre19r25.js → index-f1a9x9ez.js} +7 -7
  41. package/build/{index-0nc613n3.js → index-j0wkw2yh.js} +2 -2
  42. package/build/{index-t4qnd5ne.js → index-kgssmyk2.js} +1 -1
  43. package/build/{index-kmcsfkqs.js → index-mgq7hqhw.js} +4 -4
  44. package/build/{index-cmz1frxb.js → index-s12ksdnj.js} +1 -1
  45. package/build/{index-xc2trj7g.js → index-th12cq1c.js} +16 -16
  46. package/build/{index-qsqea5pp.js → index-xkdgbesy.js} +63 -24
  47. package/build/{issues-nx5encrk.js → issues-sx841383.js} +16 -16
  48. package/build/{knowledge-x5p0ry2f.js → knowledge-sqe5z2ar.js} +16 -16
  49. package/build/{lance-bx9jacev.js → lance-43s36cr7.js} +7 -7
  50. package/build/lib/{chunk-de28cajr.js → chunk-036v016g.js} +2 -1
  51. package/build/lib/{chunk-mxqpgva7.js → chunk-05qvh0kp.js} +1 -1
  52. package/build/lib/{chunk-q8dq94pb.js → chunk-2zym7z9d.js} +12 -12
  53. package/build/lib/{chunk-vx58fc19.js → chunk-3vvhjf9b.js} +3 -3
  54. package/build/lib/{chunk-c76cs0qh.js → chunk-4m0zmj0b.js} +4 -4
  55. package/build/lib/{chunk-njtbxwbe.js → chunk-6nbh1eg1.js} +1 -1
  56. package/build/lib/{chunk-62g2fdqa.js → chunk-86sya3w8.js} +6 -6
  57. package/build/lib/{chunk-gqn2ea41.js → chunk-88y6svhr.js} +1 -1
  58. package/build/lib/{chunk-yk0cma87.js → chunk-9psbcps6.js} +1 -1
  59. package/build/lib/{chunk-1yrb53ek.js → chunk-bakpxqpv.js} +1 -1
  60. package/build/lib/{chunk-5gej0kwn.js → chunk-dn4zp4dr.js} +1 -1
  61. package/build/lib/{chunk-387s571s.js → chunk-e0nhccd7.js} +2 -2
  62. package/build/lib/{chunk-t1rc00vt.js → chunk-f0r8pb9d.js} +1 -1
  63. package/build/lib/{chunk-e69f9g6z.js → chunk-f2esp324.js} +61 -8
  64. package/build/lib/{chunk-t4fv3k72.js → chunk-g20qjtah.js} +11 -11
  65. package/build/lib/{chunk-fpw26983.js → chunk-gn18j4fc.js} +2 -2
  66. package/build/lib/{chunk-3ejfsrz6.js → chunk-k5ck1jqf.js} +1 -1
  67. package/build/lib/{chunk-p4274gxg.js → chunk-kh2p8hzh.js} +4 -4
  68. package/build/lib/{chunk-nw3c0h1s.js → chunk-q065dv8y.js} +1 -1
  69. package/build/lib/{chunk-bcb13pka.js → chunk-sbq4e99t.js} +1 -1
  70. package/build/lib/{chunk-j9w3bbwn.js → chunk-sfcgtqfg.js} +1 -1
  71. package/build/lib/{chunk-bjmzv0yp.js → chunk-tparpmzd.js} +10 -10
  72. package/build/lib/{chunk-07f5xvw0.js → chunk-tqs67gqe.js} +11 -11
  73. package/build/lib/{chunk-x03kpd1g.js → chunk-vcwyb6ba.js} +6 -6
  74. package/build/lib/{chunk-a8pax9vc.js → chunk-w3c69y0y.js} +1 -1
  75. package/build/lib/{chunk-y1fv416w.js → chunk-xebz8z2r.js} +2 -2
  76. package/build/lib/core/agents/offSecAgent/index.js +9 -9
  77. package/build/lib/core/agents/offSecAgent/subagentSpawner.js +6 -6
  78. package/build/lib/core/agents/offSecAgent/tools/index.js +8 -8
  79. package/build/lib/core/agents/specialized/attackSurface/blackboxAgent.js +11 -11
  80. package/build/lib/core/agents/specialized/attackSurface/schemas.js +11 -11
  81. package/build/lib/core/agents/specialized/authenticationAgent/index.js +12 -12
  82. package/build/lib/core/agents/specialized/codeAgent/agent.js +11 -11
  83. package/build/lib/core/agents/specialized/findingJudge/agent.js +10 -10
  84. package/build/lib/core/agents/specialized/findingJudge/index.js +4 -4
  85. package/build/lib/core/agents/specialized/patching/index.js +12 -12
  86. package/build/lib/core/agents/specialized/pentest/agent.js +11 -11
  87. package/build/lib/core/agents/specialized/whiteboxAttackSurface/index.js +11 -11
  88. package/build/lib/core/ai/ai.d.ts +1 -1
  89. package/build/lib/core/ai/ai.js +3 -3
  90. package/build/lib/core/ai/index.js +3 -3
  91. package/build/lib/core/ai/models/inference.d.ts +2 -0
  92. package/build/lib/core/ai/utils.d.ts +2 -0
  93. package/build/lib/core/ai/utils.js +3 -3
  94. package/build/lib/core/api/index.js +21 -21
  95. package/build/lib/core/api/targetedPentest.js +12 -12
  96. package/build/lib/core/config/config.d.ts +2 -0
  97. package/build/lib/core/config/index.js +1 -1
  98. package/build/lib/core/findings/registry.js +4 -4
  99. package/build/lib/core/providers/types.d.ts +1 -1
  100. package/build/lib/core/providers/utils.d.ts +1 -1
  101. package/build/lib/core/session/index.js +3 -3
  102. package/build/lib/core/session/persistence.js +4 -4
  103. package/build/lib/core/tools/backends/index.js +3 -3
  104. package/build/lib/core/workflows/pentest.js +17 -17
  105. package/build/lib/core/workflows/seams.js +5 -5
  106. package/build/lib/core/workflows/whiteboxAttackSurface.js +13 -13
  107. package/build/lib/index.js +24 -24
  108. package/build/{logs-2r4sgk4v.js → logs-5a82dn40.js} +16 -16
  109. package/build/{native-rollout-evidence-gcj4kx7z.js → native-rollout-evidence-hcx5fq4d.js} +3 -3
  110. package/build/{offesecAgent-j1dsctxr.js → offesecAgent-36mp5t7n.js} +6 -6
  111. package/build/pentest-p1tjfres.js +23 -0
  112. package/build/{pentests-5zzqfe81.js → pentests-yr3am8eg.js} +16 -16
  113. package/build/recordedRunClient-jrasfd3h.js +11 -0
  114. package/build/{subagentSpawner-qgrr66br.js → subagentSpawner-m17w7z4b.js} +4 -4
  115. package/build/{targetedPentest-mp4j7nvp.js → targetedPentest-bmx2w41m.js} +8 -8
  116. package/build/{targets-t346pzhw.js → targets-8e2tmhsj.js} +16 -16
  117. package/build/threatModel-ec0272nc.js +24 -0
  118. package/build/{uninstall-rs78zgdm.js → uninstall-hgtqggvn.js} +1 -1
  119. package/build/{upload-sw0d27ep.js → upload-dyzsg969.js} +4 -4
  120. package/build/{utils-tbmh2fee.js → utils-862v7pgy.js} +8 -4
  121. package/package.json +1 -1
  122. package/src/cli.ts +1 -0
  123. package/src/core/ai/ai.ts +1 -0
  124. package/src/core/ai/inference.test.ts +292 -0
  125. package/src/core/ai/models/concentrate.ts +13 -0
  126. package/src/core/ai/models/index.ts +10 -7
  127. package/src/core/ai/models/inference.ts +11 -0
  128. package/src/core/ai/models/models.test.ts +28 -0
  129. package/src/core/ai/models/openai.ts +6 -0
  130. package/src/core/ai/providers/concentrate.ts +1 -0
  131. package/src/core/ai/providers/openai-models.test.ts +5 -0
  132. package/src/core/ai/reasoning.test.ts +4 -0
  133. package/src/core/ai/reasoning.ts +2 -0
  134. package/src/core/ai/utils.ts +30 -0
  135. package/src/core/config/config.test.ts +7 -0
  136. package/src/core/config/config.ts +3 -0
  137. package/src/core/doctor.ts +1 -0
  138. package/src/core/providers/types.ts +7 -0
  139. package/src/core/providers/utils.ts +6 -1
  140. package/src/core/providers/verify.test.ts +54 -0
  141. package/src/core/providers/verify.ts +28 -0
  142. package/src/tui/components/chat/input-area.tsx +1 -0
  143. package/src/tui/components/commands/api-key-input.tsx +2 -0
  144. package/src/tui/components/commands/operator-wizard.tsx +2 -0
  145. package/src/tui/components/commands/provider-manager.tsx +3 -0
  146. package/src/tui/components/model-picker/ModelPicker.tsx +1 -0
  147. package/src/tui/components/model-picker/__tests__/reasoning-control.tsx +41 -14
  148. package/src/tui/components/model-picker/model-search.test.ts +11 -0
  149. package/src/tui/components/model-picker/model-search.ts +1 -0
  150. package/src/tui/components/model-picker/reasoning-control.test.ts +8 -2
  151. package/build/agent-k1whwehz.js +0 -14
  152. package/build/agent-z2ax8k9e.js +0 -14
  153. package/build/blackboxAgent-mt7ynwgw.js +0 -14
  154. package/build/pentest-bb4vwwty.js +0 -23
  155. package/build/recordedRunClient-x5q05e99.js +0 -11
  156. package/build/threatModel-461njhm7.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
+ CodeAgent2
3
+ } from "./cli-16jm0s8q.js";
4
+ import"./cli-q9rsfw2a.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-nrz17r1p.js";
7
+ import"./cli-15df7cy4.js";
8
+ import"./cli-3ne35gxp.js";
9
+ import"./cli-xc4jc5g8.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-rsdhzyxc.js";
12
+ export {
13
+ CodeAgent2 as CodeAgent
14
+ };
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  TargetedPentestAgent2,
3
3
  buildPentestSystemPrompt2
4
- } from "./cli-hqt03hyz.js";
5
- import"./cli-3qac6b95.js";
4
+ } from "./cli-cwmkbq45.js";
5
+ import"./cli-q9rsfw2a.js";
6
6
  import"./cli-qba2x69h.js";
7
- import"./cli-rm6chd07.js";
8
- import"./cli-t6jjemz3.js";
9
- import"./cli-ty55px8v.js";
10
- import"./cli-j1jcp1ma.js";
7
+ import"./cli-nrz17r1p.js";
8
+ import"./cli-15df7cy4.js";
9
+ import"./cli-3ne35gxp.js";
10
+ import"./cli-xc4jc5g8.js";
11
11
  import"./cli-c2k4xxaw.js";
12
- import"./cli-rb7669sc.js";
12
+ import"./cli-rsdhzyxc.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-5nsn1vpx.js";
4
+ import"./cli-q9rsfw2a.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-nrz17r1p.js";
7
+ import"./cli-15df7cy4.js";
8
+ import"./cli-3ne35gxp.js";
9
+ import"./cli-xc4jc5g8.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-rsdhzyxc.js";
12
+ export {
13
+ runAuthenticationAgent2 as runAuthenticationAgent
14
+ };
@@ -1,16 +1,16 @@
1
- import"./cli-t6jjemz3.js";
2
- import"./cli-rb7669sc.js";
3
- import"./cli-j1jcp1ma.js";
4
- import"./cli-rm6chd07.js";
1
+ import"./cli-15df7cy4.js";
2
+ import"./cli-rsdhzyxc.js";
3
+ import"./cli-xc4jc5g8.js";
4
+ import"./cli-nrz17r1p.js";
5
5
  import {
6
6
  AgentRuntime,
7
7
  defineAgent
8
- } from "./cli-3qac6b95.js";
8
+ } from "./cli-q9rsfw2a.js";
9
9
  import"./cli-qba2x69h.js";
10
10
  import {
11
11
  stepCountIs2,
12
12
  init_dist
13
- } from "./cli-ty55px8v.js";
13
+ } from "./cli-3ne35gxp.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-rb7669sc.js";
5
- import"./cli-j1jcp1ma.js";
6
- import"./cli-rm6chd07.js";
4
+ } from "./cli-rsdhzyxc.js";
5
+ import"./cli-xc4jc5g8.js";
6
+ import"./cli-nrz17r1p.js";
7
7
  import {
8
8
  AgentEventBus
9
- } from "./cli-t6jjemz3.js";
9
+ } from "./cli-15df7cy4.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-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";
20
+ } from "./cli-jqf27aw9.js";
21
+ import"./cli-ebx3j3c5.js";
22
+ import"./cli-16jm0s8q.js";
23
+ import"./cli-veyqzxra.js";
24
+ import"./cli-h2r33z2v.js";
25
+ import"./cli-5nsn1vpx.js";
26
+ import"./cli-cwmkbq45.js";
27
+ import"./cli-f7v0fgc0.js";
28
+ import"./cli-1k414c58.js";
29
29
  import"./cli-ak23knae.js";
30
30
  import {
31
31
  resolveWorkerExecutable,
32
32
  launchLocalWorker
33
- } from "./cli-2smp6vy3.js";
34
- import"./cli-hx0erkgq.js";
35
- import"./cli-3qac6b95.js";
33
+ } from "./cli-730f1622.js";
34
+ import"./cli-d13d67ym.js";
35
+ import"./cli-q9rsfw2a.js";
36
36
  import"./cli-qba2x69h.js";
37
37
  import {
38
38
  buildAuthConfig,
39
39
  init_ai2
40
- } from "./cli-ty55px8v.js";
40
+ } from "./cli-3ne35gxp.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-xc2trj7g.js");
121
+ const { serveLocalRunWorker } = await import("./index-th12cq1c.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-x5q05e99.js");
135
+ const { openRecordedRunClient } = await import("./recordedRunClient-jrasfd3h.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-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";
18
+ } from "./cli-nrz17r1p.js";
19
+ import"./cli-15df7cy4.js";
20
+ import"./cli-rsdhzyxc.js";
21
+ import"./cli-xc4jc5g8.js";
22
+ import"./cli-jqf27aw9.js";
23
+ import"./cli-ebx3j3c5.js";
24
+ import"./cli-16jm0s8q.js";
25
+ import"./cli-veyqzxra.js";
26
+ import"./cli-h2r33z2v.js";
27
+ import"./cli-5nsn1vpx.js";
28
+ import"./cli-cwmkbq45.js";
29
+ import"./cli-f7v0fgc0.js";
30
+ import"./cli-1k414c58.js";
31
31
  import"./cli-ak23knae.js";
32
32
  import {
33
33
  markCommandFailed
34
34
  } from "./cli-z82n3qk1.js";
35
- import"./cli-hx0erkgq.js";
36
- import"./cli-3qac6b95.js";
35
+ import"./cli-d13d67ym.js";
36
+ import"./cli-q9rsfw2a.js";
37
37
  import"./cli-qba2x69h.js";
38
- import"./cli-ty55px8v.js";
38
+ import"./cli-3ne35gxp.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-rm6chd07.js";
3
- import"./cli-t6jjemz3.js";
2
+ import"./cli-nrz17r1p.js";
3
+ import"./cli-15df7cy4.js";
4
4
  import {
5
5
  config2,
6
6
  init_config
7
- } from "./cli-rb7669sc.js";
7
+ } from "./cli-rsdhzyxc.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-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";
23
+ } from "./cli-xc4jc5g8.js";
24
+ import"./cli-jqf27aw9.js";
25
+ import"./cli-ebx3j3c5.js";
26
+ import"./cli-16jm0s8q.js";
27
+ import"./cli-veyqzxra.js";
28
+ import"./cli-h2r33z2v.js";
29
+ import"./cli-5nsn1vpx.js";
30
+ import"./cli-cwmkbq45.js";
31
+ import"./cli-f7v0fgc0.js";
32
+ import"./cli-1k414c58.js";
33
33
  import"./cli-ak23knae.js";
34
34
  import {
35
35
  markCommandFailed
36
36
  } from "./cli-z82n3qk1.js";
37
- import"./cli-hx0erkgq.js";
38
- import"./cli-3qac6b95.js";
37
+ import"./cli-d13d67ym.js";
38
+ import"./cli-q9rsfw2a.js";
39
39
  import"./cli-qba2x69h.js";
40
- import"./cli-ty55px8v.js";
40
+ import"./cli-3ne35gxp.js";
41
41
  import"./cli-c2k4xxaw.js";
42
42
  import {
43
43
  __require
@@ -0,0 +1,14 @@
1
+ import {
2
+ BlackboxAttackSurfaceAgent2
3
+ } from "./cli-ebx3j3c5.js";
4
+ import"./cli-q9rsfw2a.js";
5
+ import"./cli-qba2x69h.js";
6
+ import"./cli-nrz17r1p.js";
7
+ import"./cli-15df7cy4.js";
8
+ import"./cli-3ne35gxp.js";
9
+ import"./cli-xc4jc5g8.js";
10
+ import"./cli-c2k4xxaw.js";
11
+ import"./cli-rsdhzyxc.js";
12
+ export {
13
+ BlackboxAttackSurfaceAgent2 as BlackboxAttackSurfaceAgent
14
+ };
@@ -1,27 +1,27 @@
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";
1
+ import"./cli-rsdhzyxc.js";
2
+ import"./cli-xc4jc5g8.js";
3
+ import"./cli-15df7cy4.js";
4
+ import"./cli-nrz17r1p.js";
5
+ import"./cli-ebx3j3c5.js";
6
+ import"./cli-cwmkbq45.js";
7
+ import"./cli-f7v0fgc0.js";
8
8
  import {
9
9
  readExecutionMetrics,
10
10
  writeExecutionMetrics,
11
11
  runPentestWorkflow2
12
- } from "./cli-qsrqeqts.js";
13
- import"./cli-jvekn5fm.js";
14
- import"./cli-hfm4szxe.js";
12
+ } from "./cli-h2r33z2v.js";
13
+ import"./cli-16jm0s8q.js";
14
+ import"./cli-veyqzxra.js";
15
15
  import {
16
16
  EMPTY_SESSION_TOKEN_USAGE,
17
17
  accumulateSessionTokens
18
18
  } from "./cli-ag6jtndp.js";
19
- import"./cli-3qac6b95.js";
19
+ import"./cli-q9rsfw2a.js";
20
20
  import"./cli-qba2x69h.js";
21
21
  import {
22
22
  normalizeStepUsage,
23
23
  init_ai2
24
- } from "./cli-ty55px8v.js";
24
+ } from "./cli-3ne35gxp.js";
25
25
  import"./cli-c2k4xxaw.js";
26
26
 
27
27
  // src/core/api/blackboxPentest.ts
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  getCurrentVersion,
6
6
  init_installation
7
- } from "./cli-54ej646m.js";
7
+ } from "./cli-sy52tg90.js";
8
8
  import {
9
9
  NEVER,
10
10
  string,
@@ -300,6 +300,7 @@ function applyEnvFallbacks(parsedConfig) {
300
300
  googleAPIKey: parsedConfig.googleAPIKey ?? process.env.GOOGLE_GENERATIVE_AI_API_KEY,
301
301
  openRouterAPIKey: parsedConfig.openRouterAPIKey ?? process.env.OPENROUTER_API_KEY,
302
302
  concentrateAPIKey: parsedConfig.concentrateAPIKey ?? process.env.CONCENTRATE_API_KEY,
303
+ inferenceAPIKey: parsedConfig.inferenceAPIKey ?? process.env.INFERENCE_API_KEY,
303
304
  inceptionAPIKey: parsedConfig.inceptionAPIKey ?? process.env.INCEPTION_API_KEY,
304
305
  hoonifyAPIKey: parsedConfig.hoonifyAPIKey ?? process.env.HOONIFY_API_KEY,
305
306
  hoonifyModels: undefined,
@@ -6,7 +6,7 @@ import {
6
6
  getModelSettings,
7
7
  generateObjectResponse,
8
8
  init_ai2
9
- } from "./cli-ty55px8v.js";
9
+ } from "./cli-3ne35gxp.js";
10
10
  import {
11
11
  newSessionId,
12
12
  init_id,
@@ -909,7 +909,7 @@ async function spawnBatch2(spawner, requests, opts, limiter) {
909
909
  });
910
910
  }
911
911
  async function runSpawnedPentestWorker(spec, input) {
912
- const { TargetedPentestAgent } = await import("./agent-j79hpm2v.js");
912
+ const { TargetedPentestAgent } = await import("./agent-3nyddsj2.js");
913
913
  const hooks = resolveItemHooks(input.hooks, input.seams, spec, 0);
914
914
  const agent = new TargetedPentestAgent({
915
915
  target: spec.target,
@@ -981,7 +981,7 @@ var runPentestChild = async (spec, ctx) => {
981
981
  };
982
982
  };
983
983
  var runCodeChild = async (spec, ctx) => {
984
- const { CodeAgent } = await import("./agent-z2ax8k9e.js");
984
+ const { CodeAgent } = await import("./agent-34gmbmct.js");
985
985
  const agent = new CodeAgent({
986
986
  findingPolicy: ctx.findingPolicy,
987
987
  codebasePath: spec.codebasePath,
@@ -1012,7 +1012,7 @@ var runCodeChild = async (spec, ctx) => {
1012
1012
  return { run: () => agent.consume(), drained: () => agent.drained };
1013
1013
  };
1014
1014
  var runWhiteboxChild = async (spec, ctx) => {
1015
- const { WhiteboxAttackSurfaceAgent } = await import("./index-qre19r25.js");
1015
+ const { WhiteboxAttackSurfaceAgent } = await import("./index-f1a9x9ez.js");
1016
1016
  const agent = new WhiteboxAttackSurfaceAgent({
1017
1017
  findingPolicy: ctx.findingPolicy,
1018
1018
  codebasePath: spec.codebasePath,
@@ -1034,7 +1034,7 @@ var runWhiteboxChild = async (spec, ctx) => {
1034
1034
  return { run: () => agent.consume(), drained: () => agent.drained };
1035
1035
  };
1036
1036
  var runBlackboxChild = async (spec, ctx) => {
1037
- const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-mt7ynwgw.js");
1037
+ const { BlackboxAttackSurfaceAgent } = await import("./blackboxAgent-d7xv0thk.js");
1038
1038
  const agent = new BlackboxAttackSurfaceAgent({
1039
1039
  findingPolicy: ctx.findingPolicy,
1040
1040
  target: spec.target,
@@ -1055,7 +1055,7 @@ var runBlackboxChild = async (spec, ctx) => {
1055
1055
  return { run: () => agent.consume(), drained: () => agent.drained };
1056
1056
  };
1057
1057
  var runAuthChild = async (spec, ctx) => {
1058
- const { runAuthenticationAgent } = await import("./agent-k1whwehz.js");
1058
+ const { runAuthenticationAgent } = await import("./agent-jdcbh4s0.js");
1059
1059
  return {
1060
1060
  run: () => runAuthenticationAgent({
1061
1061
  findingPolicy: ctx.findingPolicy,
@@ -1079,7 +1079,7 @@ var runAuthChild = async (spec, ctx) => {
1079
1079
  };
1080
1080
  };
1081
1081
  var runJudgeChild = async (spec, ctx) => {
1082
- const { judgeFinding } = await import("./index-kmcsfkqs.js");
1082
+ const { judgeFinding } = await import("./index-mgq7hqhw.js");
1083
1083
  return {
1084
1084
  run: () => judgeFinding(spec.judgeInput, {
1085
1085
  waitForDrain: spec.waitForDrain,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  AgentRuntime,
3
3
  defineAgent
4
- } from "./cli-3qac6b95.js";
4
+ } from "./cli-q9rsfw2a.js";
5
5
  import {
6
6
  stepCountIs2,
7
7
  init_dist
8
- } from "./cli-ty55px8v.js";
8
+ } from "./cli-3ne35gxp.js";
9
9
 
10
10
  // src/core/agents/specialized/codeAgent/agent.ts
11
11
  init_dist();
@@ -3,7 +3,7 @@ import {
3
3
  init_session,
4
4
  getModelSettings,
5
5
  init_ai2
6
- } from "./cli-ty55px8v.js";
6
+ } from "./cli-3ne35gxp.js";
7
7
 
8
8
  // src/core/runtime/agentExecution.ts
9
9
  function startAgentExecution(agent) {
@@ -4,10 +4,10 @@ import {
4
4
  openSqliteRunStore,
5
5
  resolveWorkerEndpoint,
6
6
  workerRequest
7
- } from "./cli-3ysp9qdp.js";
7
+ } from "./cli-jqf27aw9.js";
8
8
  import {
9
9
  launchLocalWorker
10
- } from "./cli-2smp6vy3.js";
10
+ } from "./cli-730f1622.js";
11
11
 
12
12
  // src/core/runtime/recordedRunClient.ts
13
13
  import { setTimeout as delay } from "node:timers/promises";
@@ -6,14 +6,14 @@ import {
6
6
  import {
7
7
  config2,
8
8
  init_config
9
- } from "./cli-rb7669sc.js";
9
+ } from "./cli-rsdhzyxc.js";
10
10
  import {
11
11
  getPensarGatewayUrl,
12
12
  init_constants,
13
13
  ensureValidToken2,
14
14
  signGatewayRequest2,
15
15
  init_auth
16
- } from "./cli-j1jcp1ma.js";
16
+ } from "./cli-xc4jc5g8.js";
17
17
  import {
18
18
  schema,
19
19
  descending,
@@ -106,14 +106,14 @@ import {
106
106
  HOONIFY_BASE_URL,
107
107
  resolveHoonifyModel,
108
108
  init_hoonify
109
- } from "./cli-rjnwmh9y.js";
109
+ } from "./cli-0xvrtsac.js";
110
110
  import {
111
111
  init_zod
112
112
  } from "./cli-3qznjsnr.js";
113
113
  import {
114
114
  getCurrentVersion,
115
115
  init_installation
116
- } from "./cli-54ej646m.js";
116
+ } from "./cli-sy52tg90.js";
117
117
  import {
118
118
  toJSONSchema,
119
119
  safeParseAsync,
@@ -10592,7 +10592,7 @@ async function create(input) {
10592
10592
  } else if (input.inheritEnvironmentConfig === false) {
10593
10593
  snapshotHeaders = {};
10594
10594
  } else {
10595
- const { config: appConfig } = await import("./index-t4qnd5ne.js");
10595
+ const { config: appConfig } = await import("./index-kgssmyk2.js");
10596
10596
  const cfg = await appConfig.get();
10597
10597
  snapshotHeaders = cfg.defaultHeaders ? { ...cfg.defaultHeaders } : { ...DEFAULT_HEADER_RECORD };
10598
10598
  }
@@ -12114,6 +12114,7 @@ var CONCENTRATE_MAX_OUTPUT_TOKENS, CONCENTRATE_MODELS;
12114
12114
  var init_concentrate = __esm(() => {
12115
12115
  CONCENTRATE_MAX_OUTPUT_TOKENS = {
12116
12116
  "concentrate:kimi-k3": 32768,
12117
+ "concentrate:kimi-k3-1-pro": 32768,
12117
12118
  "concentrate:qwen3.8-max": 32768,
12118
12119
  "concentrate:qwen3.8-27b": 32768,
12119
12120
  "concentrate:deepseek-v4-1-flash": 32768,
@@ -12162,6 +12163,12 @@ var init_concentrate = __esm(() => {
12162
12163
  provider: "concentrate",
12163
12164
  contextLength: 1050000
12164
12165
  },
12166
+ {
12167
+ id: "concentrate:gpt-6.1-terra",
12168
+ name: "GPT 6.1 Terra",
12169
+ provider: "concentrate",
12170
+ contextLength: 1050000
12171
+ },
12165
12172
  {
12166
12173
  id: "concentrate:gpt-6-luna",
12167
12174
  name: "GPT-6 Luna",
@@ -12318,6 +12325,12 @@ var init_concentrate = __esm(() => {
12318
12325
  provider: "concentrate",
12319
12326
  contextLength: 1048576
12320
12327
  },
12328
+ {
12329
+ id: "concentrate:kimi-k3-1-pro",
12330
+ name: "Kimi K3.1 Pro",
12331
+ provider: "concentrate",
12332
+ contextLength: 1048576
12333
+ },
12321
12334
  {
12322
12335
  id: "concentrate:kimi-k2-thinking",
12323
12336
  name: "Kimi K2 Thinking",
@@ -12518,6 +12531,19 @@ var init_inception = __esm(() => {
12518
12531
  ];
12519
12532
  });
12520
12533
 
12534
+ // src/core/ai/models/inference.ts
12535
+ var INFERENCE_MODELS;
12536
+ var init_inference = __esm(() => {
12537
+ INFERENCE_MODELS = [
12538
+ {
12539
+ id: "inference:deepseek-v4.1-flash-1017-cyber",
12540
+ name: "DeepSeek V4.1 Flash 1017 Cyber",
12541
+ provider: "inference",
12542
+ contextLength: 1040000
12543
+ }
12544
+ ];
12545
+ });
12546
+
12521
12547
  // src/core/ai/mantle.ts
12522
12548
  function stripMantlePrefix(modelId) {
12523
12549
  return modelId.startsWith(MANTLE_PREFIX) ? modelId.slice(MANTLE_PREFIX.length) : modelId;
@@ -12558,6 +12584,12 @@ var init_openai = __esm(() => {
12558
12584
  provider: "openai",
12559
12585
  contextLength: 1050000
12560
12586
  },
12587
+ {
12588
+ id: "gpt-6.1-terra",
12589
+ name: "GPT-6.1-terra",
12590
+ provider: "openai",
12591
+ contextLength: 1050000
12592
+ },
12561
12593
  {
12562
12594
  id: "gpt-6-luna",
12563
12595
  name: "GPT-6-luna",
@@ -13414,11 +13446,12 @@ function getModelInfo(model) {
13414
13446
  const custom = parseCustomModelId(model);
13415
13447
  if (custom)
13416
13448
  return { id: model, name: custom.modelId, provider: "custom" };
13417
- return AVAILABLE_MODELS.find((m) => m.id === model) ?? {
13418
- id: model,
13419
- name: model,
13420
- provider: "local"
13421
- };
13449
+ const registeredModel = AVAILABLE_MODELS.find((m) => m.id === model);
13450
+ if (registeredModel)
13451
+ return registeredModel;
13452
+ if (model.startsWith("inference:"))
13453
+ throw new Error(`Unknown Inference.net model "${model}". Select an available Inference.net model in /models.`);
13454
+ return { id: model, name: model, provider: "local" };
13422
13455
  }
13423
13456
  function prefersSequentialToolCalls(model) {
13424
13457
  return /(^|[./:-])deepseek([./:-]|$)/i.test(model);
@@ -13436,6 +13469,8 @@ function getMaxOutputTokens(modelId, customProviders, hoonifyModels) {
13436
13469
  return fromPattern;
13437
13470
  }
13438
13471
  function lookupOutputBudgetByPattern(modelId) {
13472
+ if (modelId === "inference:deepseek-v4.1-flash-1017-cyber")
13473
+ return 393216;
13439
13474
  if (modelId === "chat-latest")
13440
13475
  return 128000;
13441
13476
  if (getClaudeCapabilities(modelId))
@@ -13538,6 +13573,7 @@ var init_models = __esm(() => {
13538
13573
  init_concentrate();
13539
13574
  init_google();
13540
13575
  init_inception();
13576
+ init_inference();
13541
13577
  init_mantle2();
13542
13578
  init_openai();
13543
13579
  init_openrouter();
@@ -13550,6 +13586,7 @@ var init_models = __esm(() => {
13550
13586
  ...MANTLE_MODELS,
13551
13587
  ...OPENROUTER_MODELS,
13552
13588
  ...CONCENTRATE_MODELS,
13589
+ ...INFERENCE_MODELS,
13553
13590
  ...PENSAR_MODELS,
13554
13591
  ...INCEPTION_MODELS
13555
13592
  ];
@@ -22439,6 +22476,7 @@ var init_concentrate2 = __esm(() => {
22439
22476
  CONCENTRATE_REASONING_MODEL_IDS = new Set([
22440
22477
  "concentrate:mimo-v2.6-pro",
22441
22478
  "concentrate:kimi-k3",
22479
+ "concentrate:kimi-k3-1-pro",
22442
22480
  "concentrate:qwen3.8-max",
22443
22481
  "concentrate:qwen3.8-27b",
22444
22482
  "concentrate:deepseek-v4-1-flash",
@@ -22759,7 +22797,7 @@ function getReasoningCapabilities(modelId, customProviders) {
22759
22797
  return UNKNOWN;
22760
22798
  }
22761
22799
  const { provider } = getModelInfo(modelId);
22762
- if (provider === "local" || provider === "hoonify" || provider === "inception")
22800
+ if (provider === "local" || provider === "hoonify" || provider === "inference" || provider === "inception")
22763
22801
  return UNKNOWN;
22764
22802
  if (provider === "openrouter") {
22765
22803
  const metadata = openrouter_reasoning_default.models[modelId];
@@ -22840,6 +22878,7 @@ function getReasoningCapabilities(modelId, customProviders) {
22840
22878
  return UNKNOWN;
22841
22879
  if ([
22842
22880
  "gpt-6.1-sol",
22881
+ "gpt-6.1-terra",
22843
22882
  "gpt-6-astra",
22844
22883
  "gpt-5.6-sol",
22845
22884
  "gpt-5.6-terra",
@@ -52000,6 +52039,7 @@ function buildAuthConfig(cfg) {
52000
52039
  googleAPIKey: cfg.googleAPIKey ?? undefined,
52001
52040
  openRouterAPIKey: cfg.openRouterAPIKey ?? undefined,
52002
52041
  concentrateAPIKey: cfg.concentrateAPIKey ?? undefined,
52042
+ inferenceAPIKey: cfg.inferenceAPIKey ?? undefined,
52003
52043
  inceptionAPIKey: cfg.inceptionAPIKey ?? undefined,
52004
52044
  hoonifyAPIKey: cfg.hoonifyAPIKey ?? undefined,
52005
52045
  hoonifyModels: cfg.hoonifyModels,
@@ -52076,6 +52116,23 @@ function getProviderModel(model, authConfig) {
52076
52116
  });
52077
52117
  break;
52078
52118
  }
52119
+ case "inference": {
52120
+ const apiKey = (authConfig?.inferenceAPIKey ?? process.env.INFERENCE_API_KEY)?.trim();
52121
+ if (!apiKey)
52122
+ throw new Error("Set INFERENCE_API_KEY or connect Inference.net in /providers.");
52123
+ const maxOutputTokens = getMaxOutputTokens(model);
52124
+ providerModel = createOpenAICompatible({
52125
+ name: "inference",
52126
+ apiKey,
52127
+ baseURL: "https://api.inference.net/v1",
52128
+ supportsStructuredOutputs: true,
52129
+ transformRequestBody: (body) => ({
52130
+ ...body,
52131
+ max_tokens: Math.min(typeof body.max_tokens === "number" ? body.max_tokens : maxOutputTokens, maxOutputTokens)
52132
+ })
52133
+ }).chatModel(model.slice("inference:".length));
52134
+ break;
52135
+ }
52079
52136
  case "inception": {
52080
52137
  const inception = createOpenAICompatible({
52081
52138
  name: "inception",
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  AgentRuntime,
10
10
  defineAgent
11
- } from "./cli-3qac6b95.js";
11
+ } from "./cli-q9rsfw2a.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-ty55px8v.js";
19
+ } from "./cli-3ne35gxp.js";
20
20
 
21
21
  // src/core/agents/specialized/authenticationAgent/agent.ts
22
22
  init_dist();