@tangle-network/agent-eval 0.128.2 → 0.130.0

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 (424) hide show
  1. package/CHANGELOG.md +279 -0
  2. package/README.md +19 -0
  3. package/dist/active-curriculum-C4mk67HP.js +214 -0
  4. package/dist/active-curriculum-C4mk67HP.js.map +1 -0
  5. package/dist/adversarial-smnADNFS.d.ts +21 -0
  6. package/dist/adversarial-smnADNFS.d.ts.map +1 -0
  7. package/dist/analyst/index.d.ts +83 -2932
  8. package/dist/analyst/index.d.ts.map +1 -0
  9. package/dist/analyst/index.js +319 -364
  10. package/dist/analyst/index.js.map +1 -1
  11. package/dist/analyst-BkTS3C58.d.ts +89 -0
  12. package/dist/analyst-BkTS3C58.d.ts.map +1 -0
  13. package/dist/analyst-LsnNpSkm.js +152 -0
  14. package/dist/analyst-LsnNpSkm.js.map +1 -0
  15. package/dist/analyze-runs-C1CavBMk.js +1067 -0
  16. package/dist/analyze-runs-C1CavBMk.js.map +1 -0
  17. package/dist/analyze-runs-FsgYCinh.d.ts +72 -0
  18. package/dist/analyze-runs-FsgYCinh.d.ts.map +1 -0
  19. package/dist/attribute-vocabulary-DLJ6303h.d.ts +54 -0
  20. package/dist/attribute-vocabulary-DLJ6303h.d.ts.map +1 -0
  21. package/dist/authenticity/index.d.ts +81 -79
  22. package/dist/authenticity/index.d.ts.map +1 -0
  23. package/dist/authenticity/index.js +209 -193
  24. package/dist/authenticity/index.js.map +1 -1
  25. package/dist/baseline-HsBvw_dk.js +550 -0
  26. package/dist/baseline-HsBvw_dk.js.map +1 -0
  27. package/dist/baseline-hG3K85h4.d.ts +125 -0
  28. package/dist/baseline-hG3K85h4.d.ts.map +1 -0
  29. package/dist/belief-state/index.d.ts +448 -1205
  30. package/dist/belief-state/index.d.ts.map +1 -0
  31. package/dist/belief-state/index.js +1617 -1710
  32. package/dist/belief-state/index.js.map +1 -1
  33. package/dist/benchmarks/index.d.ts +2 -894
  34. package/dist/benchmarks/index.js +2 -59
  35. package/dist/benchmarks-DviOvUNr.js +754 -0
  36. package/dist/benchmarks-DviOvUNr.js.map +1 -0
  37. package/dist/builder-eval/index.d.ts +150 -662
  38. package/dist/builder-eval/index.d.ts.map +1 -0
  39. package/dist/builder-eval/index.js +356 -345
  40. package/dist/builder-eval/index.js.map +1 -1
  41. package/dist/calibration-CNWWA6K8.js +94 -0
  42. package/dist/calibration-CNWWA6K8.js.map +1 -0
  43. package/dist/campaign/index.d.ts +5 -6390
  44. package/dist/campaign/index.js +3 -212
  45. package/dist/campaign-CBKZvQ1H.js +3885 -0
  46. package/dist/campaign-CBKZvQ1H.js.map +1 -0
  47. package/dist/cli.d.ts +1 -1
  48. package/dist/cli.js +164 -174
  49. package/dist/cli.js.map +1 -1
  50. package/dist/client-C97NMzqi.d.ts +581 -0
  51. package/dist/client-C97NMzqi.d.ts.map +1 -0
  52. package/dist/client-CYzbdJOZ.js +637 -0
  53. package/dist/client-CYzbdJOZ.js.map +1 -0
  54. package/dist/code-agent-session-BjkMTQ7H.js +1390 -0
  55. package/dist/code-agent-session-BjkMTQ7H.js.map +1 -0
  56. package/dist/code-agent-session-DqqgOJaz.d.ts +143 -0
  57. package/dist/code-agent-session-DqqgOJaz.d.ts.map +1 -0
  58. package/dist/concurrency-DIxRZF_J.js +85 -0
  59. package/dist/concurrency-DIxRZF_J.js.map +1 -0
  60. package/dist/contract/index.d.ts +645 -5605
  61. package/dist/contract/index.d.ts.map +1 -0
  62. package/dist/contract/index.js +1730 -1937
  63. package/dist/contract/index.js.map +1 -1
  64. package/dist/control.d.ts +3 -1030
  65. package/dist/control.js +2 -32
  66. package/dist/cost-ledger-DIgQUFZZ.js +801 -0
  67. package/dist/cost-ledger-DIgQUFZZ.js.map +1 -0
  68. package/dist/cost-ledger-Dye6jCgg.d.ts +236 -0
  69. package/dist/cost-ledger-Dye6jCgg.d.ts.map +1 -0
  70. package/dist/dataset-BvtnC8Dc.d.ts +115 -0
  71. package/dist/dataset-BvtnC8Dc.d.ts.map +1 -0
  72. package/dist/default-registry-C-vFCSEc.js +2579 -0
  73. package/dist/default-registry-C-vFCSEc.js.map +1 -0
  74. package/dist/default-registry-CNPo-Vsb.d.ts +540 -0
  75. package/dist/default-registry-CNPo-Vsb.d.ts.map +1 -0
  76. package/dist/emitter-CPBAhxum.js +266 -0
  77. package/dist/emitter-CPBAhxum.js.map +1 -0
  78. package/dist/emitter-DGQGoLyj.d.ts +113 -0
  79. package/dist/emitter-DGQGoLyj.d.ts.map +1 -0
  80. package/dist/errors-8YnH8WlF.js +64 -0
  81. package/dist/errors-8YnH8WlF.js.map +1 -0
  82. package/dist/errors-CEk209JS.d.ts +76 -0
  83. package/dist/errors-CEk209JS.d.ts.map +1 -0
  84. package/dist/eval-campaign-DEm6c8ru.js +349 -0
  85. package/dist/eval-campaign-DEm6c8ru.js.map +1 -0
  86. package/dist/execution-tracks-CpgFPpS5.js +93 -0
  87. package/dist/execution-tracks-CpgFPpS5.js.map +1 -0
  88. package/dist/exporters-q9iL-2Jf.js +148 -0
  89. package/dist/exporters-q9iL-2Jf.js.map +1 -0
  90. package/dist/extract-usage-BrQ8mCLX.js +155 -0
  91. package/dist/extract-usage-BrQ8mCLX.js.map +1 -0
  92. package/dist/failure-cluster-CqcvCcdR.d.ts +59 -0
  93. package/dist/failure-cluster-CqcvCcdR.d.ts.map +1 -0
  94. package/dist/feedback-trajectory-CVaeREXV.d.ts +340 -0
  95. package/dist/feedback-trajectory-CVaeREXV.d.ts.map +1 -0
  96. package/dist/fuzz.d.ts +320 -646
  97. package/dist/fuzz.d.ts.map +1 -0
  98. package/dist/fuzz.js +670 -617
  99. package/dist/fuzz.js.map +1 -1
  100. package/dist/hf-dataset-DBJXXoY1.js +763 -0
  101. package/dist/hf-dataset-DBJXXoY1.js.map +1 -0
  102. package/dist/hosted/index.d.ts +11 -831
  103. package/dist/hosted/index.d.ts.map +1 -0
  104. package/dist/hosted/index.js +2 -37
  105. package/dist/index-2JJSA6-r2.d.ts +926 -0
  106. package/dist/index-2JJSA6-r2.d.ts.map +1 -0
  107. package/dist/index-6N0aYmpW.d.ts +217 -0
  108. package/dist/index-6N0aYmpW.d.ts.map +1 -0
  109. package/dist/index-BAvgST_9.d.ts +131 -0
  110. package/dist/index-BAvgST_9.d.ts.map +1 -0
  111. package/dist/index-BvnJuTGD.d.ts +68 -0
  112. package/dist/index-BvnJuTGD.d.ts.map +1 -0
  113. package/dist/index-C61Wi7yg.d.ts +547 -0
  114. package/dist/index-C61Wi7yg.d.ts.map +1 -0
  115. package/dist/index-CAPUUKaM.d.ts +335 -0
  116. package/dist/index-CAPUUKaM.d.ts.map +1 -0
  117. package/dist/index-DE5fb3EC.d.ts +2244 -0
  118. package/dist/index-DE5fb3EC.d.ts.map +1 -0
  119. package/dist/index-DSC51roc.d.ts +102 -0
  120. package/dist/index-DSC51roc.d.ts.map +1 -0
  121. package/dist/index.d.ts +3776 -15120
  122. package/dist/index.d.ts.map +1 -0
  123. package/dist/index.js +11185 -11191
  124. package/dist/index.js.map +1 -1
  125. package/dist/integrity-BzRbCHzi.js +424 -0
  126. package/dist/integrity-BzRbCHzi.js.map +1 -0
  127. package/dist/integrity-rmVhXWA7.d.ts +61 -0
  128. package/dist/integrity-rmVhXWA7.d.ts.map +1 -0
  129. package/dist/judge-calibration-DFtEMlde.d.ts +146 -0
  130. package/dist/judge-calibration-DFtEMlde.d.ts.map +1 -0
  131. package/dist/ledger-core/index.d.ts +2 -0
  132. package/dist/ledger-core/index.js +2 -0
  133. package/dist/ledger-core-DtZz1RG0.js +388 -0
  134. package/dist/ledger-core-DtZz1RG0.js.map +1 -0
  135. package/dist/llm-client--GR4JbZE.js +687 -0
  136. package/dist/llm-client--GR4JbZE.js.map +1 -0
  137. package/dist/llm-client-B_nIBlYo.d.ts +290 -0
  138. package/dist/llm-client-B_nIBlYo.d.ts.map +1 -0
  139. package/dist/matrix/index.d.ts +3 -155
  140. package/dist/matrix/index.js +2 -8
  141. package/dist/matrix-BzQnu2S6.js +270 -0
  142. package/dist/matrix-BzQnu2S6.js.map +1 -0
  143. package/dist/meta-eval/index.d.ts +4 -1027
  144. package/dist/meta-eval/index.js +393 -390
  145. package/dist/meta-eval/index.js.map +1 -1
  146. package/dist/metrics-C9YY1OcL.js +239 -0
  147. package/dist/metrics-C9YY1OcL.js.map +1 -0
  148. package/dist/mint-yN2M2eh0.js +201 -0
  149. package/dist/mint-yN2M2eh0.js.map +1 -0
  150. package/dist/multi-layer-verifier-BHY1gWAc.d.ts +138 -0
  151. package/dist/multi-layer-verifier-BHY1gWAc.d.ts.map +1 -0
  152. package/dist/multishot/index.d.ts +273 -481
  153. package/dist/multishot/index.d.ts.map +1 -0
  154. package/dist/multishot/index.js +595 -548
  155. package/dist/multishot/index.js.map +1 -1
  156. package/dist/off-policy-DvgzvtIx.js +220 -0
  157. package/dist/off-policy-DvgzvtIx.js.map +1 -0
  158. package/dist/off-policy-mskQw8Mb.d.ts +153 -0
  159. package/dist/off-policy-mskQw8Mb.d.ts.map +1 -0
  160. package/dist/openapi.json +1 -1
  161. package/dist/opencode-sqlite-BGrHeDu3.js +318 -0
  162. package/dist/opencode-sqlite-BGrHeDu3.js.map +1 -0
  163. package/dist/outcome-store-BYHIuO0e.d.ts +65 -0
  164. package/dist/outcome-store-BYHIuO0e.d.ts.map +1 -0
  165. package/dist/outcome-store-ChBKlTd_.js +75 -0
  166. package/dist/outcome-store-ChBKlTd_.js.map +1 -0
  167. package/dist/paired-arms-D9D0wXj2.js +260 -0
  168. package/dist/paired-arms-D9D0wXj2.js.map +1 -0
  169. package/dist/pipelines/index.d.ts +95 -532
  170. package/dist/pipelines/index.d.ts.map +1 -0
  171. package/dist/pipelines/index.js +497 -478
  172. package/dist/pipelines/index.js.map +1 -1
  173. package/dist/pre-registration-DakwTRXk.js +96 -0
  174. package/dist/pre-registration-DakwTRXk.js.map +1 -0
  175. package/dist/propose-review-control-LhIWGzHl.js +1458 -0
  176. package/dist/propose-review-control-LhIWGzHl.js.map +1 -0
  177. package/dist/query-CJ_DX8vl.d.ts +28 -0
  178. package/dist/query-CJ_DX8vl.d.ts.map +1 -0
  179. package/dist/query-Di7eEQ79.js +83 -0
  180. package/dist/query-Di7eEQ79.js.map +1 -0
  181. package/dist/raw-provider-sink-BQd7mzyT.js +201 -0
  182. package/dist/raw-provider-sink-BQd7mzyT.js.map +1 -0
  183. package/dist/raw-provider-sink-BU29Sh8h.d.ts +134 -0
  184. package/dist/raw-provider-sink-BU29Sh8h.d.ts.map +1 -0
  185. package/dist/redact-7Aq1ukl-.js +107 -0
  186. package/dist/redact-7Aq1ukl-.js.map +1 -0
  187. package/dist/release-report-Cz9NKH39.js +603 -0
  188. package/dist/release-report-Cz9NKH39.js.map +1 -0
  189. package/dist/release-report-mvB2G4_J.d.ts +244 -0
  190. package/dist/release-report-mvB2G4_J.d.ts.map +1 -0
  191. package/dist/replay-GnyotH0J.js +1741 -0
  192. package/dist/replay-GnyotH0J.js.map +1 -0
  193. package/dist/replay-OoidtG1E.d.ts +749 -0
  194. package/dist/replay-OoidtG1E.d.ts.map +1 -0
  195. package/dist/reporting.d.ts +6 -1298
  196. package/dist/reporting.js +6 -50
  197. package/dist/researcher-CwTdwXG1.d.ts +314 -0
  198. package/dist/researcher-CwTdwXG1.d.ts.map +1 -0
  199. package/dist/reward-hacking-eAnOsynk.d.ts +224 -0
  200. package/dist/reward-hacking-eAnOsynk.d.ts.map +1 -0
  201. package/dist/reward-hacking-qipEpKvY.js +596 -0
  202. package/dist/reward-hacking-qipEpKvY.js.map +1 -0
  203. package/dist/reward-nw2xZGZG.js +137 -0
  204. package/dist/reward-nw2xZGZG.js.map +1 -0
  205. package/dist/rl.d.ts +916 -3596
  206. package/dist/rl.d.ts.map +1 -0
  207. package/dist/rl.js +2362 -1751
  208. package/dist/rl.js.map +1 -1
  209. package/dist/rolldown-runtime-8H4AJuhK.js +14 -0
  210. package/dist/rollout/index.d.ts +3 -1048
  211. package/dist/rollout/index.js +8 -110
  212. package/dist/rollout-BOYjemfR.js +624 -0
  213. package/dist/rollout-BOYjemfR.js.map +1 -0
  214. package/dist/rubric-predictive-validity-B3xmbmS1.js +141 -0
  215. package/dist/rubric-predictive-validity-B3xmbmS1.js.map +1 -0
  216. package/dist/rubric-predictive-validity-Ku_clp_1.d.ts +74 -0
  217. package/dist/rubric-predictive-validity-Ku_clp_1.d.ts.map +1 -0
  218. package/dist/run-evidence-ClRX_8A9.d.ts +225 -0
  219. package/dist/run-evidence-ClRX_8A9.d.ts.map +1 -0
  220. package/dist/run-record-BuoE80Dq.js +467 -0
  221. package/dist/run-record-BuoE80Dq.js.map +1 -0
  222. package/dist/run-record-CnZu_gjl.d.ts +357 -0
  223. package/dist/run-record-CnZu_gjl.d.ts.map +1 -0
  224. package/dist/run-score-iEEAWiBY.js +41 -0
  225. package/dist/run-score-iEEAWiBY.js.map +1 -0
  226. package/dist/runtime-trajectory-1gyaTOoC.js +93 -0
  227. package/dist/runtime-trajectory-1gyaTOoC.js.map +1 -0
  228. package/dist/runtime-trajectory-BvSZcCHD.d.ts +50 -0
  229. package/dist/runtime-trajectory-BvSZcCHD.d.ts.map +1 -0
  230. package/dist/schema-BtVldJ3T.d.ts +206 -0
  231. package/dist/schema-BtVldJ3T.d.ts.map +1 -0
  232. package/dist/schema-C6DW4ZHR.js +821 -0
  233. package/dist/schema-C6DW4ZHR.js.map +1 -0
  234. package/dist/schema-CRhEY1SO.js +69 -0
  235. package/dist/schema-CRhEY1SO.js.map +1 -0
  236. package/dist/schema-Cef2cFmb.d.ts +408 -0
  237. package/dist/schema-Cef2cFmb.d.ts.map +1 -0
  238. package/dist/semantic-concept-judge-B6cWNJ2K.js +725 -0
  239. package/dist/semantic-concept-judge-B6cWNJ2K.js.map +1 -0
  240. package/dist/sequential-Br0mAPHA.js +148 -0
  241. package/dist/sequential-Br0mAPHA.js.map +1 -0
  242. package/dist/sequential-CYwq6Ff_.d.ts +141 -0
  243. package/dist/sequential-CYwq6Ff_.d.ts.map +1 -0
  244. package/dist/series-convergence-CjO2QdRW.js +43 -0
  245. package/dist/series-convergence-CjO2QdRW.js.map +1 -0
  246. package/dist/series-convergence-ofsqPWhs.d.ts +35 -0
  247. package/dist/series-convergence-ofsqPWhs.d.ts.map +1 -0
  248. package/dist/server-m5D9cvnG.js +1040 -0
  249. package/dist/server-m5D9cvnG.js.map +1 -0
  250. package/dist/skill-usage-C_pXm7lP.d.ts +534 -0
  251. package/dist/skill-usage-C_pXm7lP.d.ts.map +1 -0
  252. package/dist/skillopt-optimization-method-B7wX7XkF.d.ts +1739 -0
  253. package/dist/skillopt-optimization-method-B7wX7XkF.d.ts.map +1 -0
  254. package/dist/skillopt-optimization-method-D4ODwFVV.js +7712 -0
  255. package/dist/skillopt-optimization-method-D4ODwFVV.js.map +1 -0
  256. package/dist/statistics-Cmj6nynr.d.ts +514 -0
  257. package/dist/statistics-Cmj6nynr.d.ts.map +1 -0
  258. package/dist/statistics-CnnxdpOg.js +1437 -0
  259. package/dist/statistics-CnnxdpOg.js.map +1 -0
  260. package/dist/store-CT9YIIve.d.ts +117 -0
  261. package/dist/store-CT9YIIve.d.ts.map +1 -0
  262. package/dist/store-CxJry_cs.d.ts +229 -0
  263. package/dist/store-CxJry_cs.d.ts.map +1 -0
  264. package/dist/storyboard/index.d.ts +84 -203
  265. package/dist/storyboard/index.d.ts.map +1 -0
  266. package/dist/storyboard/index.js +609 -542
  267. package/dist/storyboard/index.js.map +1 -1
  268. package/dist/summary-report-BNs5nmXI.js +862 -0
  269. package/dist/summary-report-BNs5nmXI.js.map +1 -0
  270. package/dist/summary-report-Cj9gdw4i.d.ts +407 -0
  271. package/dist/summary-report-Cj9gdw4i.d.ts.map +1 -0
  272. package/dist/supervisor-run/index.d.ts +2 -849
  273. package/dist/supervisor-run/index.js +2 -64
  274. package/dist/supervisor-run-_lnTLM3z.js +1679 -0
  275. package/dist/supervisor-run-_lnTLM3z.js.map +1 -0
  276. package/dist/task-failure-attributes-CQZlB3et.js +311 -0
  277. package/dist/task-failure-attributes-CQZlB3et.js.map +1 -0
  278. package/dist/test-graded-scenario-BsqWLmPt.js +318 -0
  279. package/dist/test-graded-scenario-BsqWLmPt.js.map +1 -0
  280. package/dist/test-graded-scenario-D1TaI2va.d.ts +141 -0
  281. package/dist/test-graded-scenario-D1TaI2va.d.ts.map +1 -0
  282. package/dist/tools-BmuN627J.js +1085 -0
  283. package/dist/tools-BmuN627J.js.map +1 -0
  284. package/dist/trace-attributes.d.ts +2 -52
  285. package/dist/trace-attributes.js +131 -61
  286. package/dist/trace-attributes.js.map +1 -1
  287. package/dist/traces.d.ts +12 -2365
  288. package/dist/traces.js +12 -251
  289. package/dist/trajectory-D_7rLrvE.js +56 -0
  290. package/dist/trajectory-D_7rLrvE.js.map +1 -0
  291. package/dist/types-DGsxbAEd.d.ts +387 -0
  292. package/dist/types-DGsxbAEd.d.ts.map +1 -0
  293. package/dist/types-k9tZGKUg.d.ts +640 -0
  294. package/dist/types-k9tZGKUg.d.ts.map +1 -0
  295. package/dist/verdict-Dps8_okt.d.ts +37 -0
  296. package/dist/verdict-Dps8_okt.d.ts.map +1 -0
  297. package/dist/wire/index.d.ts +702 -1174
  298. package/dist/wire/index.d.ts.map +1 -0
  299. package/dist/wire/index.js +2 -81
  300. package/docs/feature-guide.md +1 -1
  301. package/docs/rollout.md +116 -2
  302. package/package.json +18 -10
  303. package/dist/benchmarks/index.js.map +0 -1
  304. package/dist/campaign/index.js.map +0 -1
  305. package/dist/chunk-2JX3CFMB.js +0 -695
  306. package/dist/chunk-2JX3CFMB.js.map +0 -1
  307. package/dist/chunk-2MKQIFS4.js +0 -183
  308. package/dist/chunk-2MKQIFS4.js.map +0 -1
  309. package/dist/chunk-3RF76KTD.js +0 -84
  310. package/dist/chunk-3RF76KTD.js.map +0 -1
  311. package/dist/chunk-5DTSBUL2.js +0 -159
  312. package/dist/chunk-5DTSBUL2.js.map +0 -1
  313. package/dist/chunk-7ZZMD7UK.js +0 -386
  314. package/dist/chunk-7ZZMD7UK.js.map +0 -1
  315. package/dist/chunk-BOD4O7OF.js +0 -40
  316. package/dist/chunk-BOD4O7OF.js.map +0 -1
  317. package/dist/chunk-BYT7ELPS.js +0 -1553
  318. package/dist/chunk-BYT7ELPS.js.map +0 -1
  319. package/dist/chunk-DJKY2TSY.js +0 -2428
  320. package/dist/chunk-DJKY2TSY.js.map +0 -1
  321. package/dist/chunk-DPUHNQLN.js +0 -232
  322. package/dist/chunk-DPUHNQLN.js.map +0 -1
  323. package/dist/chunk-DRYIUNWY.js +0 -622
  324. package/dist/chunk-DRYIUNWY.js.map +0 -1
  325. package/dist/chunk-EJGRPCO3.js +0 -617
  326. package/dist/chunk-EJGRPCO3.js.map +0 -1
  327. package/dist/chunk-EOSZT7PL.js +0 -2001
  328. package/dist/chunk-EOSZT7PL.js.map +0 -1
  329. package/dist/chunk-EZJEIH2R.js +0 -1559
  330. package/dist/chunk-EZJEIH2R.js.map +0 -1
  331. package/dist/chunk-GGE4NNQT.js +0 -65
  332. package/dist/chunk-GGE4NNQT.js.map +0 -1
  333. package/dist/chunk-HHWE3POT.js +0 -94
  334. package/dist/chunk-HHWE3POT.js.map +0 -1
  335. package/dist/chunk-IHQDPH7D.js +0 -171
  336. package/dist/chunk-IHQDPH7D.js.map +0 -1
  337. package/dist/chunk-JHCHEVET.js +0 -274
  338. package/dist/chunk-JHCHEVET.js.map +0 -1
  339. package/dist/chunk-K4DBDHLK.js +0 -158
  340. package/dist/chunk-K4DBDHLK.js.map +0 -1
  341. package/dist/chunk-K6N6XJJX.js +0 -306
  342. package/dist/chunk-K6N6XJJX.js.map +0 -1
  343. package/dist/chunk-MA6HLL3S.js +0 -65
  344. package/dist/chunk-MA6HLL3S.js.map +0 -1
  345. package/dist/chunk-MAZ26DC7.js +0 -99
  346. package/dist/chunk-MAZ26DC7.js.map +0 -1
  347. package/dist/chunk-MHELPNRP.js +0 -1212
  348. package/dist/chunk-MHELPNRP.js.map +0 -1
  349. package/dist/chunk-NACAGYSY.js +0 -1040
  350. package/dist/chunk-NACAGYSY.js.map +0 -1
  351. package/dist/chunk-NKAGIDE2.js +0 -7633
  352. package/dist/chunk-NKAGIDE2.js.map +0 -1
  353. package/dist/chunk-NPCTHQIO.js +0 -91
  354. package/dist/chunk-NPCTHQIO.js.map +0 -1
  355. package/dist/chunk-NYLOYM6N.js +0 -332
  356. package/dist/chunk-NYLOYM6N.js.map +0 -1
  357. package/dist/chunk-ONWEPEDO.js +0 -57
  358. package/dist/chunk-ONWEPEDO.js.map +0 -1
  359. package/dist/chunk-P5W7RQKK.js +0 -576
  360. package/dist/chunk-P5W7RQKK.js.map +0 -1
  361. package/dist/chunk-P6FYH6K4.js +0 -1161
  362. package/dist/chunk-P6FYH6K4.js.map +0 -1
  363. package/dist/chunk-PBE2LOSS.js +0 -669
  364. package/dist/chunk-PBE2LOSS.js.map +0 -1
  365. package/dist/chunk-PC4UYEBM.js +0 -166
  366. package/dist/chunk-PC4UYEBM.js.map +0 -1
  367. package/dist/chunk-PXE2VKMX.js +0 -140
  368. package/dist/chunk-PXE2VKMX.js.map +0 -1
  369. package/dist/chunk-PZ5AY32C.js +0 -10
  370. package/dist/chunk-PZ5AY32C.js.map +0 -1
  371. package/dist/chunk-RZTMDUO7.js +0 -49
  372. package/dist/chunk-RZTMDUO7.js.map +0 -1
  373. package/dist/chunk-S5YLIBFX.js +0 -136
  374. package/dist/chunk-S5YLIBFX.js.map +0 -1
  375. package/dist/chunk-SZLVEKMJ.js +0 -1446
  376. package/dist/chunk-SZLVEKMJ.js.map +0 -1
  377. package/dist/chunk-T4SQEITX.js +0 -95
  378. package/dist/chunk-T4SQEITX.js.map +0 -1
  379. package/dist/chunk-TBL77AUT.js +0 -355
  380. package/dist/chunk-TBL77AUT.js.map +0 -1
  381. package/dist/chunk-TSN7JT6D.js +0 -1646
  382. package/dist/chunk-TSN7JT6D.js.map +0 -1
  383. package/dist/chunk-TT4KNT67.js +0 -124
  384. package/dist/chunk-TT4KNT67.js.map +0 -1
  385. package/dist/chunk-UB2LOJ6Q.js +0 -4461
  386. package/dist/chunk-UB2LOJ6Q.js.map +0 -1
  387. package/dist/chunk-UWZZKKU7.js +0 -237
  388. package/dist/chunk-UWZZKKU7.js.map +0 -1
  389. package/dist/chunk-VBQ3CRKH.js +0 -291
  390. package/dist/chunk-VBQ3CRKH.js.map +0 -1
  391. package/dist/chunk-VGRCHJON.js +0 -163
  392. package/dist/chunk-VGRCHJON.js.map +0 -1
  393. package/dist/chunk-VI2UW6B6.js +0 -162
  394. package/dist/chunk-VI2UW6B6.js.map +0 -1
  395. package/dist/chunk-VLOATJQ2.js +0 -908
  396. package/dist/chunk-VLOATJQ2.js.map +0 -1
  397. package/dist/chunk-VQMK5FMP.js +0 -247
  398. package/dist/chunk-VQMK5FMP.js.map +0 -1
  399. package/dist/chunk-VZSRQ272.js +0 -149
  400. package/dist/chunk-VZSRQ272.js.map +0 -1
  401. package/dist/chunk-WGXIEX7P.js +0 -116
  402. package/dist/chunk-WGXIEX7P.js.map +0 -1
  403. package/dist/chunk-WS3NZZQQ.js +0 -929
  404. package/dist/chunk-WS3NZZQQ.js.map +0 -1
  405. package/dist/chunk-XDWDC2MP.js +0 -695
  406. package/dist/chunk-XDWDC2MP.js.map +0 -1
  407. package/dist/chunk-XPRT64IE.js +0 -766
  408. package/dist/chunk-XPRT64IE.js.map +0 -1
  409. package/dist/chunk-YJBNWCAA.js +0 -1056
  410. package/dist/chunk-YJBNWCAA.js.map +0 -1
  411. package/dist/chunk-ZET2UAYW.js +0 -89
  412. package/dist/chunk-ZET2UAYW.js.map +0 -1
  413. package/dist/chunk-ZUUWPZCV.js +0 -752
  414. package/dist/chunk-ZUUWPZCV.js.map +0 -1
  415. package/dist/control.js.map +0 -1
  416. package/dist/hosted/index.js.map +0 -1
  417. package/dist/matrix/index.js.map +0 -1
  418. package/dist/reporting.js.map +0 -1
  419. package/dist/rollout/index.js.map +0 -1
  420. package/dist/run-campaign-ISHFZ7FJ.js +0 -17
  421. package/dist/run-campaign-ISHFZ7FJ.js.map +0 -1
  422. package/dist/supervisor-run/index.js.map +0 -1
  423. package/dist/traces.js.map +0 -1
  424. package/dist/wire/index.js.map +0 -1
@@ -1,894 +1,2 @@
1
- type CostChannel = 'agent' | 'judge' | 'verifier' | 'analyst' | 'driver' | (string & {});
2
- interface CostUsage {
3
- inputTokens: number;
4
- /** Includes reasoning tokens when the provider bills them as output. */
5
- outputTokens: number;
6
- /** Reasoning-token subset of outputTokens, when reported. */
7
- reasoningTokens?: number;
8
- /** Prompt tokens served from a provider cache. */
9
- cachedTokens?: number;
10
- /** Prompt tokens written into a provider cache. */
11
- cacheWriteTokens?: number;
12
- }
13
- interface CostCallBase {
14
- callId: string;
15
- channel: CostChannel;
16
- phase: string;
17
- actor: string;
18
- model: string;
19
- maximumCostUsd?: number;
20
- tags?: Record<string, string>;
21
- timestamp: number;
22
- }
23
- interface CostReceipt extends CostCallBase, CostUsage {
24
- status: 'settled';
25
- costUsd: number;
26
- costUnknown: boolean;
27
- usageUnknown?: boolean;
28
- /** Rates used to estimate cost locally. Absent when cost is provider-reported or unknown. */
29
- pricing?: {
30
- inputUsdPerThousand: number;
31
- cachedInputUsdPerThousand?: number;
32
- cacheWriteUsdPerThousand?: number;
33
- outputUsdPerThousand: number;
34
- };
35
- /** Cost reported by the provider, not a local token-price calculation. */
36
- actualCostUsd?: number;
37
- error?: string;
38
- }
39
- interface CostReceiptInput extends CostUsage {
40
- model: string;
41
- /** Caller-supplied rates for a local estimate when the provider does not report billed cost. */
42
- customTokenPricing?: CustomTokenPricing;
43
- actualCostUsd?: number;
44
- costUnknown?: boolean;
45
- usageUnknown?: boolean;
46
- }
47
- /** Per-million token rates for a model or endpoint not covered by package pricing. */
48
- interface CustomTokenPricing {
49
- /** Non-cached input tokens. */
50
- inputUsdPerMillion: number;
51
- /** Cache-read tokens. Falls back to the normal input rate when omitted. */
52
- cachedInputUsdPerMillion?: number;
53
- /** Cache-creation or cache-write tokens. Falls back to the normal input rate when omitted. */
54
- cacheWriteUsdPerMillion?: number;
55
- outputUsdPerMillion: number;
56
- }
57
- type MaximumCharge = {
58
- externallyEnforcedMaximumUsd: number;
59
- } | ({
60
- customTokenPricing: CustomTokenPricing;
61
- } & Pick<CostUsage, 'inputTokens' | 'outputTokens' | 'cachedTokens' | 'cacheWriteTokens'>) | ({
62
- model: string;
63
- } & CostUsage);
64
- interface RunPaidCallInput<T> {
65
- callId?: string;
66
- channel: CostChannel;
67
- phase: string;
68
- actor: string;
69
- /** Used before a provider receipt exists and on failures without one. */
70
- model?: string;
71
- tags?: Record<string, string>;
72
- signal?: AbortSignal;
73
- /** Provider-enforced dollar maximum, or maximum token usage with known pricing. Required when capped. */
74
- maximumCharge?: MaximumCharge;
75
- /** `callId` can be forwarded as the provider's idempotency key. */
76
- execute(signal: AbortSignal, callId: string): Promise<T>;
77
- receipt(value: T): CostReceiptInput;
78
- receiptFromError?(error: Error): CostReceiptInput | undefined;
79
- }
80
- type PaidCallResult<T> = {
81
- succeeded: true;
82
- callId: string;
83
- value: T;
84
- receipt: CostReceipt;
85
- } | {
86
- succeeded: false;
87
- callId?: string;
88
- error: Error;
89
- receipt?: CostReceipt;
90
- };
91
- interface ChannelRollup {
92
- channel: CostChannel;
93
- calls: number;
94
- inputTokens: number;
95
- outputTokens: number;
96
- reasoningTokens?: number;
97
- cachedTokens: number;
98
- cacheWriteTokens?: number;
99
- costUsd: number;
100
- unpricedCalls: number;
101
- unknownUsageCalls: number;
102
- }
103
- interface CostLedgerSummary {
104
- totalCalls: number;
105
- pendingCalls: number;
106
- unresolvedCalls: number;
107
- reservedCostUsd: number;
108
- inputTokens: number;
109
- outputTokens: number;
110
- reasoningTokens?: number;
111
- cachedTokens: number;
112
- cacheWriteTokens?: number;
113
- totalCostUsd: number;
114
- byChannel: ChannelRollup[];
115
- unpricedModels: string[];
116
- fullyPriced: boolean;
117
- usageComplete: boolean;
118
- accountingComplete: boolean;
119
- incompleteReasons: string[];
120
- }
121
-
122
- /**
123
- * LLM client with graceful degrade.
124
- *
125
- * OpenAI-compatible `/v1/chat/completions` client with:
126
- * - Exponential-backoff retry on 429 + 5xx gateway errors (502/503/504).
127
- * - Retry on transient network errors (fetch failed, AbortError, ECONNRESET).
128
- * - One retry at temperature 1 when a model explicitly requires it.
129
- * - Graceful json_schema → json_object degrade on 400 with schema-reject body.
130
- * - Fenced-JSON stripping (```json ... ```) for models that wrap structured output.
131
- * - Configurable base URL + api key / bearer, works with LiteLLM proxies, OpenAI
132
- * directly, cli-bridge subscriptions, and any router that speaks the spec.
133
- *
134
- * Usage:
135
- * const { value, result } = await callLlmJson<MyType>(
136
- * { model: 'gpt-4o', messages: [...], jsonSchema: { name: 'x', schema: {...} } },
137
- * { baseUrl: 'https://router.tangle.tools/v1', apiKey: process.env.KEY },
138
- * )
139
- *
140
- * This is THE llm-calling seam for agent-eval primitives that need structured
141
- * output (semantic concept judge, reviewer directives, critic scores). Primitives
142
- * that need free-form text use `callLlm` and parse output themselves.
143
- */
144
-
145
- interface LlmUsage {
146
- promptTokens: number;
147
- completionTokens: number;
148
- totalTokens: number;
149
- /** False when the provider omitted or malformed prompt/completion usage. */
150
- captured?: boolean;
151
- /** Reasoning-token subset of completionTokens, when reported. */
152
- reasoningTokens?: number;
153
- /** Proxies populate this when prompt caching is on. */
154
- cachedPromptTokens?: number;
155
- }
156
- interface LlmCallResult {
157
- /** The text content of the first choice. Empty string if none. */
158
- content: string;
159
- usage: LlmUsage;
160
- /**
161
- * Cost in USD. Uses the provider's reported cost when present, otherwise
162
- * caller-supplied token pricing. `null` when neither is available.
163
- */
164
- costUsd: number | null;
165
- /** Model name actually used (echoed from response). */
166
- model: string;
167
- /** Wall-clock duration of the HTTP call (last attempt, if retried). */
168
- durationMs: number;
169
- /**
170
- * `finish_reason` echoed from the first choice (`stop`, `length`,
171
- * `content_filter`, `tool_calls`, ...). `null` when the provider omits it.
172
- * Exposed so a free-form `callLlm` caller CAN detect a truncated answer
173
- * (`length`) instead of treating a cut-off completion as complete. Note:
174
- * `callLlm` does not itself reject on it — acting on this signal is the
175
- * caller's responsibility (in-repo free-form drivers do not yet enforce it).
176
- */
177
- finishReason?: string | null;
178
- /**
179
- * True when `content.trim()` is empty. An empty completion is a silent zero
180
- * for free-form `callLlm` callers; this flag is the signal a caller can
181
- * inspect to fail loud rather than proceed on an empty string. `callLlm`
182
- * surfaces it but does not throw on it.
183
- */
184
- contentEmpty?: boolean;
185
- /** Raw response body. */
186
- raw: Record<string, unknown>;
187
- }
188
- type LlmCallMetadata = Pick<LlmCallResult, 'usage' | 'costUsd' | 'model' | 'durationMs'>;
189
-
190
- /**
191
- * Paper-grade RunRecord schema + runtime validator.
192
- *
193
- * Every run that participates in a promotion gate, paper table, or
194
- * researcher loop SHOULD be recorded as a `RunRecord`. The mandatory
195
- * fields are exactly those the paper "Two Loops, Three Roles" requires
196
- * for reproducibility: who/what/when/cost/seed/hash, plus the search vs
197
- * holdout split tag. A task score is optional because execution-only records
198
- * must preserve missing labels instead of converting errors into zero quality.
199
- *
200
- * This is intentionally NOT a replacement for the rich `Run` /
201
- * `ProposeReviewReport` / `ScenarioResult` types already in the
202
- * package. Those are runtime structures with full provenance. A
203
- * `RunRecord` is the analysis-time projection — the JSON-friendly
204
- * row you'd put in a parquet file or paste into a notebook.
205
- *
206
- * Validate at the boundary:
207
- *
208
- * const rec = validateRunRecord(rawJson) // throws on missing
209
- * const ok = isRunRecord(rawJson) // boolean check
210
- * const rec = parseRunRecordSafe(rawJson) // { ok, value | error }
211
- *
212
- * The validator runs in pure TS — zod is intentionally NOT a
213
- * dependency. Round-trip tested in `tests/run-record.test.ts`.
214
- */
215
-
216
- /** Search/dev/holdout split tag. 'search' is the paper-grade alias for the
217
- * combined train+test pool that the optimizer is allowed to read. */
218
- type RunSplitTag = 'search' | 'dev' | 'holdout';
219
- interface RunTokenUsage {
220
- input: number;
221
- /** All generated tokens charged as output, including reasoning tokens. */
222
- output: number;
223
- /** Reasoning-token subset of `output`, when the provider reports it. */
224
- reasoning?: number;
225
- /** Prompt tokens served from a provider cache. */
226
- cached?: number;
227
- /** Prompt tokens written into a provider cache. */
228
- cacheWrite?: number;
229
- }
230
-
231
- /**
232
- * Pass A substrate types — `runCampaign` is the one primitive every
233
- * eval flow composes from. Three contracts in this file:
234
- *
235
- * - `Scenario` input set
236
- * - `DispatchFn` how to run one scenario → artifact
237
- * - `CampaignResult` defined output schema (the contract downstream tools depend on)
238
- *
239
- * Three more lifted from earlier substrate work (re-exported):
240
- *
241
- * - `JudgeConfig` pluggable dimensional scorer (0.38)
242
- * - `Mutator` optimization-loop surface mutator
243
- * - `Gate` promotion gate (`HeldOutGate` and friends adapt to this)
244
- *
245
- * No new architecture vs 0.38 — Pass A formalizes the shapes so consumers
246
- * can build dashboards / CI gates / regression diffs against a stable schema.
247
- */
248
-
249
- /** Stable identifier + kind tag for any scenario. Consumers
250
- * extend with their per-domain payload (persona, task, requirement, ...). */
251
- interface Scenario {
252
- id: string;
253
- kind: string;
254
- tags?: string[];
255
- /**
256
- * Variants with the same non-empty value receive the same seed for a given
257
- * replicate. Leave unset when every scenario should have an independent seed.
258
- */
259
- seedGroup?: string;
260
- }
261
- /** Redacted identity of a complete scenario payload retained in campaign results. */
262
- interface CampaignScenarioIdentity extends Pick<Scenario, 'id' | 'kind'> {
263
- scenarioDigest: `sha256:${string}`;
264
- }
265
- /** Context handed to every dispatch invocation. Scoped — every
266
- * trace/span carries the cellId, every artifact write lands under the cell's
267
- * artifact root, the cost meter accumulates per cell. */
268
- interface DispatchContext {
269
- cellId: string;
270
- rep: number;
271
- generation?: number;
272
- seed: number;
273
- signal: AbortSignal;
274
- trace: CampaignTraceWriter;
275
- artifacts: CampaignArtifactWriter;
276
- cost: CampaignCostMeter;
277
- /** Populated when this run is part of a multi-cycle improvement loop. */
278
- cycleId?: string;
279
- /** Populated when the substrate resumed from a prior cache hit. */
280
- resumedFrom?: string;
281
- /**
282
- * Opaque placement key supplied by `RunCampaignOptions.cellPlacement`.
283
- * The substrate forwards it through unchanged; placement-aware Dispatch
284
- * implementations (e.g. `httpDispatch` from `/adapters/http`) read it to
285
- * route the cell to the right worker / region / sandbox. `undefined`
286
- * when no placement strategy is configured.
287
- */
288
- placement?: string;
289
- }
290
- /** The canonical judge verdict shape — one declaration, shared by campaign
291
- * judges and the multishot judge runner (which re-exports this type).
292
- *
293
- * Scale is PRODUCER-DEFINED: campaign convention is [0,1]; the legacy
294
- * multishot runner emits 0-10. Cross-scale comparison must go through
295
- * `detectScale` (src/campaign/gates/statistical-heldout.ts, used by
296
- * promotion-policy) — never renormalize a producer's values in place, as
297
- * downstream thresholds (`composite >= 5` in multishot/matrix.ts, live-soak
298
- * `>= 7` gates) key on the producer's native scale. */
299
- interface JudgeScore {
300
- dimensions: Record<string, number>;
301
- composite: number;
302
- notes: string;
303
- /** Provider metadata for display and diagnostics; accounting uses CostLedger receipts. */
304
- llmCall?: LlmCallMetadata;
305
- /** Set when the judge itself failed (call error, unparseable output).
306
- * `composite`/`dimensions` carry no signal — aggregators MUST exclude
307
- * failed scores from means instead of folding them into zeros. */
308
- failed?: true;
309
- /** Ensemble extras (populated by `ensembleJudge`): max per-dimension
310
- * spread across surviving judges — the inter-rater signal. */
311
- maxDisagreement?: number;
312
- /** Ensemble extras: judge identities whose verdict failed. */
313
- failedJudges?: string[];
314
- /** Ensemble extras: each surviving judge's per-dimension scores. */
315
- perJudge?: Record<string, Record<string, number>>;
316
- }
317
- /** Five-valued verdict taxonomy (MOSS-paper alignment). */
318
- type GateDecision = 'ship' | 'hold' | 'need_more_work' | 'model_ceiling' | 'arch_ceiling';
319
- /** Outcome of one check that contributed to a release decision. */
320
- type GateCheckStatus = 'pass' | 'fail' | 'not_evaluated';
321
- interface GateContribution {
322
- name: string;
323
- status: GateCheckStatus;
324
- detail: unknown;
325
- }
326
- interface GateResult {
327
- decision: GateDecision;
328
- reasons: string[];
329
- contributingGates: GateContribution[];
330
- delta?: number;
331
- }
332
- /** Scoped trace writer handed to each dispatch — every span
333
- * auto-tagged with the cellId so traces filter cleanly. */
334
- interface CampaignTraceWriter {
335
- span(name: string, attributes?: Record<string, unknown>): TraceSpan;
336
- flush(): Promise<void>;
337
- }
338
- interface TraceSpan {
339
- end(attributes?: Record<string, unknown>): void;
340
- setAttribute(key: string, value: unknown): void;
341
- }
342
- /** Scoped artifact writer — `write(path, content)` lands under
343
- * `<runDir>/<cellId>/<path>`. */
344
- interface CampaignArtifactWriter {
345
- write(path: string, content: string | Uint8Array): Promise<string>;
346
- writeJson(path: string, value: unknown): Promise<string>;
347
- }
348
- /** Token usage accumulated for a cell. Aliased to the canonical `RunTokenUsage`
349
- * (run-record.ts, same package) so a cell maps onto a `RunRecord` for the
350
- * backend-integrity guard with ONE source of truth — a field added to
351
- * `RunTokenUsage` is a compile error here, not a silent drift. */
352
- type CampaignTokenUsage = RunTokenUsage;
353
- /** Cell-scoped paid-call entry point. The dispatch places every paid operation
354
- * inside `runPaidCall`; the returned provider result supplies one receipt with
355
- * cost, tokens, and resolved model. Calls made outside this method are not
356
- * admitted or captured. */
357
- interface CampaignCostMeter {
358
- /** The only paid-call path. Returns a typed result; callers must inspect it. */
359
- runPaidCall<T>(input: Omit<RunPaidCallInput<T>, 'channel' | 'phase' | 'tags'> & {
360
- channel?: CostChannel;
361
- }): Promise<PaidCallResult<T>>;
362
- }
363
- interface CampaignCellResult<TArtifact> {
364
- /** Manifest that produced this cell. Resumability refuses to reuse a cell
365
- * whose manifest differs from the current run. */
366
- manifestHash?: string;
367
- cellId: string;
368
- scenarioId: string;
369
- rep: number;
370
- generation?: number;
371
- artifact: TArtifact;
372
- judgeScores: Record<string, JudgeScore>;
373
- costUsd: number;
374
- /** True when at least one priced receipt used the model table instead of a provider bill. */
375
- costEstimated?: boolean;
376
- /** Exact durable receipts required to reuse this cached result. */
377
- costCallIds?: string[];
378
- /** Agent-call token usage committed by `ctx.cost.runPaidCall`.
379
- * `{ input: 0, output: 0 }` when no paid agent call was recorded. */
380
- tokenUsage: CampaignTokenUsage;
381
- /** Concrete model from the latest committed agent receipt. Consumed by
382
- * `buildRunRecord` to pin the model when the declared profile uses a
383
- * runtime-resolved sentinel. */
384
- resolvedModel?: string;
385
- durationMs: number;
386
- seed: number;
387
- cached: boolean;
388
- /** Stage that produced `error`. Missing on successful cells. */
389
- errorStage?: 'dispatch' | 'judge';
390
- /** Judge that threw when `errorStage` is `judge`. */
391
- errorJudge?: string;
392
- error?: string;
393
- }
394
- interface JudgeAggregate {
395
- mean: number;
396
- stdev: number;
397
- ci95: [number, number];
398
- n: number;
399
- }
400
- interface ScenarioAggregate {
401
- meanComposite: number;
402
- ci95: [number, number];
403
- n: number;
404
- }
405
- interface GenerationRecord {
406
- generationIndex: number;
407
- candidates: GenerationCandidate[];
408
- promoted: string[];
409
- }
410
- /** One scored candidate surface in a generation. `dimensions` + `scenarios`
411
- * let a reflective proposer ground its next proposal on WHICH
412
- * dimensions the candidate is weakest on and WHICH scenarios it best/worst
413
- * handled — the evidence a blind `Mutator` cannot see. */
414
- interface GenerationCandidate {
415
- surfaceHash: string;
416
- /** Mean over complete task-quality scores, or null when none were produced. */
417
- composite: number | null;
418
- /** Descriptive interval for `composite`, or null when no score exists. */
419
- ci95: [number, number] | null;
420
- /** Exact surface this candidate mutated. */
421
- parentSurfaceHash?: string;
422
- /** Measured search-split composite of the exact parent surface. */
423
- parentComposite?: number;
424
- /** Candidate composite minus its parent's composite. Present only when the
425
- * candidate completed the designed denominator. */
426
- observedDeltaFromParent?: number;
427
- /** Whether this candidate had a scorable result for every designed campaign
428
- * cell and was therefore eligible for ranking, promotion, and Pareto
429
- * selection. */
430
- eligibleForPromotion: boolean;
431
- /** Exact denominator receipt for selection eligibility. Scores stay
432
- * descriptive: an incomplete candidate is retained with its observed score
433
- * and errors instead of receiving an invented penalty. */
434
- coverage: {
435
- expectedCells: number;
436
- scorableCells: number;
437
- unscorableCells: Array<{
438
- cellId: string;
439
- reason: string;
440
- }>;
441
- };
442
- /** Mean score per judge dimension across all cells (scenarios × reps ×
443
- * judges that reported the dimension). */
444
- dimensions: Record<string, number>;
445
- /** Per-scenario composite (mean over reps + judges), plus the judge's
446
- * free-form `notes` for that scenario — the "why it scored low" evidence a
447
- * reflective proposer grounds its next edit on. Keep `notes` GENERALIZABLE
448
- * (which checks/lines/dimensions failed and how), NOT case-specific ground
449
- * truth: leaking expected answers into the prompt is memorization, and the
450
- * held-out gate would reject it anyway. `emitted` is a bounded excerpt of
451
- * the candidate's raw output for the scenario (worst rep when reps > 1) —
452
- * the "what it actually did" evidence; optional so trajectory capture is
453
- * never required of a dispatch. */
454
- scenarios: Array<{
455
- scenarioId: string;
456
- composite: number;
457
- notes?: string;
458
- emitted?: string;
459
- }>;
460
- /** Proposer-supplied short label for the change. Present when the proposer
461
- * returned a `ProposedCandidate`; absent for bare-surface mutators. */
462
- label?: string;
463
- /** Proposer-supplied rationale — WHY this candidate was proposed. The
464
- * "because rationale Z" the audit requires to survive to the result.
465
- * Present when the proposer returned a `ProposedCandidate`. */
466
- rationale?: string;
467
- }
468
- interface CampaignAggregates {
469
- byJudge: Record<string, JudgeAggregate>;
470
- byScenario: Record<string, ScenarioAggregate>;
471
- /** Canonical campaign accounting, including worker and judge calls. */
472
- cost: CostLedgerSummary;
473
- /** Compatibility alias of `cost.totalCostUsd`. */
474
- totalCostUsd: number;
475
- /** Cells whose dispatch completed, including cells whose later judge failed. */
476
- cellsExecuted: number;
477
- cellsSkipped: number;
478
- cellsCached: number;
479
- /** All non-skipped dispatch, judge, and unclassified cell failures. */
480
- cellsFailed: number;
481
- /** Present on results that record failure stages. */
482
- cellsDispatchFailed?: number;
483
- /** Present on results that record failure stages. */
484
- cellsJudgeFailed?: number;
485
- /** Legacy failures whose stage was not recorded. */
486
- cellsUnclassifiedFailed?: number;
487
- }
488
- interface CampaignResult<TArtifact = unknown, TScenario extends Scenario = Scenario> {
489
- /** sha256(scenarios, judges, dispatch source ref, optimizer config, seed). Stable identity for reruns. */
490
- manifestHash: string;
491
- /** Canonical identity of the exact scenario payloads and replicate count. */
492
- splitDigest: `sha256:${string}`;
493
- seed: number;
494
- /** Replicates designed for every scenario in this campaign. */
495
- reps: number;
496
- startedAt: string;
497
- endedAt: string;
498
- durationMs: number;
499
- cells: Array<CampaignCellResult<TArtifact>>;
500
- aggregates: CampaignAggregates;
501
- optimization?: {
502
- generations: GenerationRecord[];
503
- winnerSurfaceHash?: string;
504
- };
505
- gate?: GateResult;
506
- prUrl?: string;
507
- runDir: string;
508
- artifactsByPath: Record<string, string>;
509
- /** Redacted identities that let consumers verify the exact scenario payloads
510
- * without retaining customer task content in the result. */
511
- scenarios: Array<CampaignScenarioIdentity & Pick<TScenario, 'id' | 'kind'>>;
512
- }
513
-
514
- /**
515
- * Shared types for the reference benchmark wrappers under
516
- * `src/benchmarks/`. Each wrapper exports the three functions in
517
- * `BenchmarkAdapter` plus its own typed `DatasetItem` shape.
518
- */
519
-
520
- type BenchmarkTaskKind = 'retrieval' | 'rag-answer' | 'hallucination' | 'kb-improvement' | 'routing' | 'custom';
521
- type BenchmarkFamily = 'beir' | 'mteb-retrieval' | 'msmarco' | 'trec-dl' | 'miracl' | 'lotte' | 'bright' | 'crag' | 'hotpotqa' | 'kilt' | 'ragtruth' | 'faithbench' | 'first-party' | 'custom';
522
- interface BenchmarkDatasetItem<TPayload = unknown> {
523
- /** Stable dataset-local item id (used for split assignment + paper
524
- * references). Unique within a benchmark. */
525
- id: string;
526
- /** Free-form payload. Each benchmark defines its own shape. */
527
- payload: TPayload;
528
- /** Optional precomputed split. When absent, adapters use assignSplit(id). */
529
- split?: RunSplitTag;
530
- /** Benchmark family this row came from, e.g. `beir` or `crag`. */
531
- family?: BenchmarkFamily | string;
532
- /** Benchmark-local task kind, e.g. retrieval vs answer quality. */
533
- taskKind?: BenchmarkTaskKind | string;
534
- /** Slice labels such as language, domain, freshness, multihop, long-tail. */
535
- tags?: string[];
536
- /** Dataset provenance, version, URL, or license notes. */
537
- source?: BenchmarkSource;
538
- metadata?: Record<string, unknown>;
539
- }
540
- interface BenchmarkEvaluation {
541
- /** [0, 1] score for the response on this item. Exact-match
542
- * benchmarks use 0/1; partial-credit benchmarks may return
543
- * fractional values. */
544
- score: number;
545
- /** Optional pass/fail projection. Defaults to `score > 0` when absent. */
546
- passed?: boolean;
547
- /** Numeric sub-metrics. These become report dimensions. */
548
- dimensions?: Record<string, number>;
549
- /** Optional bag of raw scoring signals — e.g. parsed numeric
550
- * answer, regex match, judge sub-scores. */
551
- raw: Record<string, unknown>;
552
- notes?: string;
553
- }
554
- interface BenchmarkSource {
555
- name?: string;
556
- url?: string;
557
- version?: string;
558
- license?: string;
559
- citation?: string;
560
- }
561
- /** Common signature implemented by every adapter under `src/benchmarks/*`. */
562
- interface BenchmarkAdapter<_TItem = unknown, TPayload = unknown, TArtifact = string> {
563
- /** Stable benchmark id such as `beir/nfcorpus` or `crag/smoke`. */
564
- id?: string;
565
- family?: BenchmarkFamily | string;
566
- taskKind?: BenchmarkTaskKind | string;
567
- description?: string;
568
- source?: BenchmarkSource;
569
- defaultMetric?: string;
570
- /** Load the dataset for the given split. May hit the network on
571
- * first call but should be cache-friendly. Adapters that don't
572
- * ship the dataset itself MUST throw a clearly-marked error
573
- * pointing the caller at the loader script. */
574
- loadDataset(split: RunSplitTag): Promise<BenchmarkDatasetItem<TPayload>[]>;
575
- /** Score a single response. Pure with respect to the inputs. */
576
- evaluate(item: BenchmarkDatasetItem<TPayload>, artifact: TArtifact): Promise<BenchmarkEvaluation>;
577
- /** Deterministic split assignment via item id hashing. The
578
- * fraction of items in each split is implementation-defined but
579
- * MUST be stable across processes and platforms. */
580
- assignSplit(itemId: string): RunSplitTag;
581
- }
582
- interface BenchmarkScenario<TPayload = unknown> extends Scenario {
583
- kind: 'benchmark';
584
- benchmarkId: string;
585
- family: BenchmarkFamily | string;
586
- taskKind: BenchmarkTaskKind | string;
587
- splitTag: RunSplitTag;
588
- item: BenchmarkDatasetItem<TPayload>;
589
- }
590
- type BenchmarkResponder<TPayload = unknown, TArtifact = string> = (input: {
591
- scenario: BenchmarkScenario<TPayload>;
592
- item: BenchmarkDatasetItem<TPayload>;
593
- context: DispatchContext;
594
- }) => Promise<TArtifact> | TArtifact;
595
- /** Split-assignment seed shared across all benchmarks. Bumping this
596
- * value reshuffles every split — do NOT do that lightly. */
597
- declare const BENCHMARK_SPLIT_SEED = "agent-eval-v1";
598
- /**
599
- * Assign an item id to one of `'search' | 'dev' | 'holdout'` using a
600
- * stable 32-bit hash of `${seed}::${id}`. Default proportions:
601
- *
602
- * search: 60% (optimization-readable)
603
- * dev: 20% (held-out for tuning, leak-on-purpose during dev)
604
- * holdout:20% (paper-grade held-out, gated reads)
605
- */
606
- declare function deterministicSplit(itemId: string, seed?: string): RunSplitTag;
607
-
608
- interface BenchmarkMetricCalibrationOptions<TPayload = unknown, TArtifact = string> {
609
- adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
610
- item: BenchmarkDatasetItem<TPayload>;
611
- weakArtifact: TArtifact;
612
- strongArtifact: TArtifact;
613
- maxWeakScore?: number;
614
- minStrongScore?: number;
615
- minGap?: number;
616
- }
617
- interface BenchmarkMetricCalibrationResult {
618
- passed: boolean;
619
- weak: BenchmarkEvaluation;
620
- strong: BenchmarkEvaluation;
621
- weakScore: number;
622
- strongScore: number;
623
- gap: number;
624
- reasons: string[];
625
- }
626
- declare function calibrateBenchmarkMetric<TPayload = unknown, TArtifact = string>(options: BenchmarkMetricCalibrationOptions<TPayload, TArtifact>): Promise<BenchmarkMetricCalibrationResult>;
627
-
628
- /**
629
- * Synthetic routing dataset. 16 tasks across 4 categories. Used as a
630
- * deterministic, dependency-free benchmark for any router that maps a
631
- * natural-language request to one of a fixed set of route labels.
632
- *
633
- * Format (see `routing/README.md` for prose):
634
- *
635
- * {
636
- * id: stable per-task ID (matches across processes).
637
- * category: one of the four route labels.
638
- * prompt: the user-facing request the router must classify.
639
- * route: the ground-truth route the router should pick.
640
- * synonyms: other strings that count as a correct answer.
641
- * hardNegatives:close-but-wrong route labels — used to detect the
642
- * "always picks the popular route" failure mode.
643
- * }
644
- *
645
- * The four categories are intentionally cross-domain (file ops,
646
- * math, search, conversation) so a router that collapses to one
647
- * category is easy to spot.
648
- */
649
- interface RoutingItem {
650
- id: string;
651
- category: 'file' | 'math' | 'search' | 'chat';
652
- prompt: string;
653
- /** Canonical correct route label. */
654
- route: string;
655
- /** Alternate route labels that also count as correct. */
656
- synonyms: string[];
657
- /** Wrong-but-tempting route labels (for analysis, not grading). */
658
- hardNegatives: string[];
659
- }
660
- declare const ROUTING_DATASET: RoutingItem[];
661
-
662
- /**
663
- * Routing benchmark — synthetic, dependency-free, ships in the
664
- * package. 16 cross-category items in `dataset.ts`. See
665
- * `routing/README.md` for the format.
666
- *
667
- * `evaluate` does case-insensitive exact match against the canonical
668
- * route plus declared synonyms. The first valid route token in the
669
- * response wins; everything else is ignored. Wrong answers also
670
- * report whether they hit a hard negative — useful when triaging
671
- * "always picks the popular route" failure modes.
672
- */
673
-
674
- type RoutingPayload = RoutingItem;
675
- type RoutingDatasetItem = BenchmarkDatasetItem<RoutingPayload>;
676
- declare class RoutingAdapter implements BenchmarkAdapter<RoutingDatasetItem, RoutingPayload> {
677
- readonly id = "first-party/routing";
678
- readonly family = "first-party";
679
- readonly taskKind = "routing";
680
- readonly description = "Synthetic fixed-route classification smoke benchmark";
681
- readonly defaultMetric = "route_exact_match";
682
- loadDataset(split: RunSplitTag): Promise<RoutingDatasetItem[]>;
683
- evaluate(item: RoutingDatasetItem, response: string): Promise<BenchmarkEvaluation>;
684
- assignSplit(itemId: string): RunSplitTag;
685
- }
686
- /**
687
- * Pull route-shaped tokens out of a model response. Routes look like
688
- * `category.action` (`fs.write`, `chat.reply`). Bare alphanumerics
689
- * are not routes, but `category.action` patterns are robust to most
690
- * model wrappers (JSON output, prose explanations, code fences).
691
- */
692
- declare function extractRouteTokens(response: string): string[];
693
- declare const loadDataset: (split: RunSplitTag) => Promise<RoutingDatasetItem[]>;
694
- declare const evaluate: (item: RoutingDatasetItem, response: string) => Promise<BenchmarkEvaluation>;
695
- declare const assignSplit: (itemId: string) => RunSplitTag;
696
-
697
- declare const index_ROUTING_DATASET: typeof ROUTING_DATASET;
698
- type index_RoutingAdapter = RoutingAdapter;
699
- declare const index_RoutingAdapter: typeof RoutingAdapter;
700
- type index_RoutingDatasetItem = RoutingDatasetItem;
701
- type index_RoutingItem = RoutingItem;
702
- type index_RoutingPayload = RoutingPayload;
703
- declare const index_assignSplit: typeof assignSplit;
704
- declare const index_evaluate: typeof evaluate;
705
- declare const index_extractRouteTokens: typeof extractRouteTokens;
706
- declare const index_loadDataset: typeof loadDataset;
707
- declare namespace index {
708
- export { index_ROUTING_DATASET as ROUTING_DATASET, index_RoutingAdapter as RoutingAdapter, type index_RoutingDatasetItem as RoutingDatasetItem, type index_RoutingItem as RoutingItem, type index_RoutingPayload as RoutingPayload, index_assignSplit as assignSplit, index_evaluate as evaluate, index_extractRouteTokens as extractRouteTokens, index_loadDataset as loadDataset };
709
- }
710
-
711
- /**
712
- * `CampaignStorage` — the filesystem seam `runCampaign` writes through
713
- * (run/cell dirs, the resumability cache, per-cell artifacts, trace spans).
714
- *
715
- * The default (`fsCampaignStorage`) is the Node filesystem — identical
716
- * behavior to the inline `node:fs` calls it replaces, so existing CLI
717
- * consumers are unaffected. `inMemoryCampaignStorage` keeps everything in a
718
- * `Map`, so the substrate runs in environments WITHOUT a filesystem
719
- * (Cloudflare Workers, Deno Deploy, other edge runtimes) — the campaign
720
- * still produces its `CampaignResult` (cells + aggregates) in memory;
721
- * artifacts/traces simply aren't persisted to disk.
722
- *
723
- * Paths are opaque keys to the in-memory adapter — it does not parse them,
724
- * so the same `join(...)`-built paths work unchanged across both adapters.
725
- */
726
- interface CampaignStorage {
727
- /** Ensure a directory exists (recursive). No-op for in-memory. */
728
- ensureDir(dir: string): void;
729
- /** Does this path exist (as a written file or an ensured dir)? */
730
- exists(path: string): boolean;
731
- /** Read a UTF-8 file; `undefined` when missing or unreadable. */
732
- read(path: string): string | undefined;
733
- /** Write a file (string or bytes). Parent dir is assumed ensured. */
734
- write(path: string, content: string | Uint8Array): void;
735
- /** Append only when the current UTF-8 byte length matches `expectedBytes`.
736
- * Returns the new length, or undefined when another writer won. */
737
- append?(path: string, content: string, expectedBytes: number): number | undefined;
738
- }
739
-
740
- interface BenchmarkRunOptions<TPayload = unknown, TArtifact = string> {
741
- adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
742
- respond: BenchmarkResponder<TPayload, TArtifact>;
743
- splits?: readonly RunSplitTag[];
744
- runDir: string;
745
- repo?: string;
746
- seed?: number;
747
- reps?: number;
748
- resumable?: boolean;
749
- costCeiling?: number;
750
- maxConcurrency?: number;
751
- dispatchTimeoutMs?: number;
752
- expectUsage?: 'assert' | 'warn' | 'off';
753
- storage?: CampaignStorage;
754
- now?: () => Date;
755
- }
756
- interface BenchmarkReport {
757
- benchmarkId: string;
758
- family: BenchmarkFamily | string;
759
- taskKind: BenchmarkTaskKind | string;
760
- source?: BenchmarkAdapter['source'];
761
- runDir: string;
762
- manifestHash: string;
763
- seed: number;
764
- startedAt: string;
765
- endedAt: string;
766
- durationMs: number;
767
- totalItems: number;
768
- totalCells: number;
769
- cellsFailed: number;
770
- cellsCached: number;
771
- totalCostUsd: number;
772
- splits: Record<string, BenchmarkSliceSummary>;
773
- tags: Record<string, BenchmarkSliceSummary>;
774
- dimensions: Record<string, BenchmarkDistribution>;
775
- score: BenchmarkDistribution;
776
- costUsd: BenchmarkDistribution;
777
- latencyMs: BenchmarkDistribution;
778
- }
779
- interface BenchmarkSliceSummary {
780
- n: number;
781
- meanScore: number;
782
- passRate: number;
783
- score: BenchmarkDistribution;
784
- costUsd: BenchmarkDistribution;
785
- latencyMs: BenchmarkDistribution;
786
- }
787
- interface BenchmarkDistribution {
788
- n: number;
789
- min: number;
790
- mean: number;
791
- median: number;
792
- p90: number;
793
- max: number;
794
- }
795
- interface BenchmarkRunResult<TPayload = unknown, TArtifact = string> {
796
- scenarios: Array<BenchmarkScenario<TPayload>>;
797
- campaign: CampaignResult<TArtifact, BenchmarkScenario<TPayload>>;
798
- report: BenchmarkReport;
799
- reportJsonPath: string;
800
- reportMarkdownPath: string;
801
- }
802
- declare function runBenchmarkAdapter<TPayload = unknown, TArtifact = string>(options: BenchmarkRunOptions<TPayload, TArtifact>): Promise<BenchmarkRunResult<TPayload, TArtifact>>;
803
- declare function summarizeBenchmarkCampaign<TPayload, TArtifact>(input: {
804
- adapter: BenchmarkAdapter<BenchmarkDatasetItem<TPayload>, TPayload, TArtifact>;
805
- scenarios: Array<BenchmarkScenario<TPayload>>;
806
- campaign: CampaignResult<TArtifact, BenchmarkScenario<TPayload>>;
807
- }): BenchmarkReport;
808
- declare function renderBenchmarkReportMarkdown(report: BenchmarkReport): string;
809
-
810
- interface StandardRetrievalDocument {
811
- id: string;
812
- title?: string;
813
- text: string;
814
- metadata?: Record<string, unknown>;
815
- }
816
- interface StandardRetrievalQuery {
817
- id: string;
818
- text: string;
819
- metadata?: Record<string, unknown>;
820
- }
821
- interface StandardRetrievalQrel {
822
- queryId: string;
823
- documentId: string;
824
- score: number;
825
- }
826
- interface StandardRetrievalPayload {
827
- queryId: string;
828
- query: string;
829
- expectedDocumentIds: string[];
830
- expectedScores: Record<string, number>;
831
- corpus?: Record<string, StandardRetrievalDocument>;
832
- metadata?: Record<string, unknown>;
833
- }
834
- interface BuildStandardRetrievalItemsOptions {
835
- benchmarkId: string;
836
- family: BenchmarkFamily | string;
837
- queries: readonly StandardRetrievalQuery[];
838
- qrels: readonly StandardRetrievalQrel[];
839
- corpus?: readonly StandardRetrievalDocument[];
840
- includeCorpusInPayload?: boolean;
841
- source?: BenchmarkSource;
842
- tags?: readonly string[];
843
- splitOf?: (queryId: string) => RunSplitTag;
844
- }
845
- interface RetrievalIdAdapterOptions extends BuildStandardRetrievalItemsOptions {
846
- responseIdPattern?: RegExp;
847
- cutoffs?: readonly number[];
848
- primaryMetric?: string;
849
- passMetric?: string;
850
- passThreshold?: number;
851
- }
852
- interface StandardRetrievalResult {
853
- id?: string;
854
- documentId?: string;
855
- docId?: string;
856
- score?: number;
857
- }
858
- type StandardRetrievalArtifact = string | readonly string[] | readonly StandardRetrievalResult[] | {
859
- ids?: readonly string[];
860
- documentIds?: readonly string[];
861
- results?: readonly StandardRetrievalResult[];
862
- };
863
- interface StandardRetrievalEvaluationOptions {
864
- responseIdPattern?: RegExp;
865
- cutoffs?: readonly number[];
866
- primaryMetric?: string;
867
- passMetric?: string;
868
- passThreshold?: number;
869
- }
870
- declare function parseJsonlRows<T = unknown>(text: string): T[];
871
- declare function parseTsvRows(text: string): string[][];
872
- declare function parseQrels(text: string): StandardRetrievalQrel[];
873
- declare function parseBeirCorpusJsonl(text: string): StandardRetrievalDocument[];
874
- declare function parseBeirQueriesJsonl(text: string): StandardRetrievalQuery[];
875
- declare function buildStandardRetrievalItems(options: BuildStandardRetrievalItemsOptions): Array<BenchmarkDatasetItem<StandardRetrievalPayload>>;
876
- declare function createRetrievalIdBenchmarkAdapter(options: RetrievalIdAdapterOptions): BenchmarkAdapter<BenchmarkDatasetItem<StandardRetrievalPayload>, StandardRetrievalPayload, StandardRetrievalArtifact>;
877
- declare function evaluateStandardRetrieval(payload: StandardRetrievalPayload, artifact: StandardRetrievalArtifact, options?: StandardRetrievalEvaluationOptions): {
878
- score: number;
879
- passed: boolean;
880
- dimensions: Record<string, number>;
881
- raw: {
882
- rankedDocumentIds: string[];
883
- expectedDocumentIds: string[];
884
- expectedScores: Record<string, number>;
885
- };
886
- };
887
- declare function normalizeRetrievedDocumentIds(artifact: StandardRetrievalArtifact, responseIdPattern?: RegExp): string[];
888
- declare function retrievalMetricsAtCutoff(input: {
889
- rankedDocumentIds: readonly string[];
890
- expectedScores: Record<string, number>;
891
- cutoff: number;
892
- }): Record<string, number>;
893
-
894
- export { BENCHMARK_SPLIT_SEED, type BenchmarkAdapter, type BenchmarkDatasetItem, type BenchmarkDistribution, type BenchmarkEvaluation, type BenchmarkFamily, type BenchmarkMetricCalibrationOptions, type BenchmarkMetricCalibrationResult, type BenchmarkReport, type BenchmarkResponder, type BenchmarkRunOptions, type BenchmarkRunResult, type BenchmarkScenario, type BenchmarkSliceSummary, type BenchmarkSource, type BenchmarkTaskKind, type BuildStandardRetrievalItemsOptions, type RetrievalIdAdapterOptions, type StandardRetrievalArtifact, type StandardRetrievalDocument, type StandardRetrievalEvaluationOptions, type StandardRetrievalPayload, type StandardRetrievalQrel, type StandardRetrievalQuery, type StandardRetrievalResult, buildStandardRetrievalItems, calibrateBenchmarkMetric, createRetrievalIdBenchmarkAdapter, deterministicSplit, evaluateStandardRetrieval, normalizeRetrievedDocumentIds, parseBeirCorpusJsonl, parseBeirQueriesJsonl, parseJsonlRows, parseQrels, parseTsvRows, renderBenchmarkReportMarkdown, retrievalMetricsAtCutoff, index as routing, runBenchmarkAdapter, summarizeBenchmarkCampaign };
1
+ import { A as BenchmarkMetricCalibrationOptions, B as BenchmarkSource, C as BenchmarkRunOptions, D as runBenchmarkAdapter, E as renderBenchmarkReportMarkdown, F as BenchmarkDatasetItem, H as deterministicSplit, I as BenchmarkEvaluation, L as BenchmarkFamily, M as calibrateBenchmarkMetric, N as BENCHMARK_SPLIT_SEED, O as summarizeBenchmarkCampaign, P as BenchmarkAdapter, R as BenchmarkResponder, S as BenchmarkReport, T as BenchmarkSliceSummary, V as BenchmarkTaskKind, _ as parseJsonlRows, a as StandardRetrievalDocument, b as retrievalMetricsAtCutoff, c as StandardRetrievalQrel, d as buildStandardRetrievalItems, f as createRetrievalIdBenchmarkAdapter, g as parseBeirQueriesJsonl, h as parseBeirCorpusJsonl, i as StandardRetrievalArtifact, j as BenchmarkMetricCalibrationResult, k as index_d_exports, l as StandardRetrievalQuery, m as normalizeRetrievedDocumentIds, n as BuildStandardRetrievalItemsOptions, o as StandardRetrievalEvaluationOptions, p as evaluateStandardRetrieval, r as RetrievalIdAdapterOptions, s as StandardRetrievalPayload, u as StandardRetrievalResult, v as parseQrels, w as BenchmarkRunResult, x as BenchmarkDistribution, y as parseTsvRows, z as BenchmarkScenario } from "../index-CAPUUKaM.js";
2
+ export { BENCHMARK_SPLIT_SEED, type BenchmarkAdapter, type BenchmarkDatasetItem, type BenchmarkDistribution, type BenchmarkEvaluation, type BenchmarkFamily, type BenchmarkMetricCalibrationOptions, type BenchmarkMetricCalibrationResult, type BenchmarkReport, type BenchmarkResponder, type BenchmarkRunOptions, type BenchmarkRunResult, type BenchmarkScenario, type BenchmarkSliceSummary, type BenchmarkSource, type BenchmarkTaskKind, type BuildStandardRetrievalItemsOptions, type RetrievalIdAdapterOptions, type StandardRetrievalArtifact, type StandardRetrievalDocument, type StandardRetrievalEvaluationOptions, type StandardRetrievalPayload, type StandardRetrievalQrel, type StandardRetrievalQuery, type StandardRetrievalResult, buildStandardRetrievalItems, calibrateBenchmarkMetric, createRetrievalIdBenchmarkAdapter, deterministicSplit, evaluateStandardRetrieval, normalizeRetrievedDocumentIds, parseBeirCorpusJsonl, parseBeirQueriesJsonl, parseJsonlRows, parseQrels, parseTsvRows, renderBenchmarkReportMarkdown, retrievalMetricsAtCutoff, index_d_exports as routing, runBenchmarkAdapter, summarizeBenchmarkCampaign };