@lightsage/mcp 0.3.0 → 0.4.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 (300) hide show
  1. package/README.md +2 -2
  2. package/api/well-known-openai-apps-challenge.js +25 -0
  3. package/bin/mcp-server.js +704 -724
  4. package/bin/mcp-server.js.map +61 -62
  5. package/esm/funcs/evalsCancel.d.ts +16 -0
  6. package/esm/funcs/evalsCancel.d.ts.map +1 -0
  7. package/esm/funcs/{evalsAnalysis.js → evalsCancel.js} +10 -10
  8. package/esm/funcs/evalsCancel.js.map +1 -0
  9. package/esm/funcs/evalsGet.d.ts +16 -0
  10. package/esm/funcs/evalsGet.d.ts.map +1 -0
  11. package/esm/funcs/{evalRunsV2EvalRunsRetrieve.js → evalsGet.js} +5 -5
  12. package/esm/funcs/evalsGet.js.map +1 -0
  13. package/esm/funcs/evalsRun.d.ts +6 -4
  14. package/esm/funcs/evalsRun.d.ts.map +1 -1
  15. package/esm/funcs/evalsRun.js +6 -4
  16. package/esm/funcs/evalsRun.js.map +1 -1
  17. package/esm/funcs/evalsV2EvalsCreate.d.ts +1 -1
  18. package/esm/funcs/evalsV2EvalsCreate.js +1 -1
  19. package/esm/funcs/evalsV2EvalsList.d.ts +1 -1
  20. package/esm/funcs/evalsV2EvalsList.js +1 -1
  21. package/esm/funcs/evalsV2EvalsRetrieve.d.ts +1 -1
  22. package/esm/funcs/evalsV2EvalsRetrieve.js +1 -1
  23. package/esm/funcs/evalsV2EvalsUpdate.d.ts +1 -1
  24. package/esm/funcs/evalsV2EvalsUpdate.js +1 -1
  25. package/esm/funcs/promptsV2PromptRunsList.d.ts +1 -1
  26. package/esm/funcs/promptsV2PromptRunsList.js +1 -1
  27. package/esm/funcs/promptsV2PromptRunsRetrieve.d.ts +1 -1
  28. package/esm/funcs/promptsV2PromptRunsRetrieve.js +1 -1
  29. package/esm/landing-page.js +1 -1
  30. package/esm/lib/config.d.ts +3 -3
  31. package/esm/lib/config.js +3 -3
  32. package/esm/mcp-server/mcp-server.js +1 -1
  33. package/esm/mcp-server/server.d.ts.map +1 -1
  34. package/esm/mcp-server/server.js +5 -9
  35. package/esm/mcp-server/server.js.map +1 -1
  36. package/esm/mcp-server/tools/evalsCancel.d.ts +7 -0
  37. package/esm/mcp-server/tools/evalsCancel.d.ts.map +1 -0
  38. package/esm/mcp-server/tools/evalsCancel.js +35 -0
  39. package/esm/mcp-server/tools/evalsCancel.js.map +1 -0
  40. package/esm/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.d.ts → evalsGet.d.ts} +2 -2
  41. package/esm/mcp-server/tools/evalsGet.d.ts.map +1 -0
  42. package/esm/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.js → evalsGet.js} +8 -8
  43. package/esm/mcp-server/tools/evalsGet.js.map +1 -0
  44. package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
  45. package/esm/mcp-server/tools/evalsRun.js +6 -4
  46. package/esm/mcp-server/tools/evalsRun.js.map +1 -1
  47. package/esm/mcp-server/tools/evalsV2EvalsCreate.js +1 -1
  48. package/esm/mcp-server/tools/evalsV2EvalsCreate.js.map +1 -1
  49. package/esm/mcp-server/tools/evalsV2EvalsList.js +1 -1
  50. package/esm/mcp-server/tools/evalsV2EvalsList.js.map +1 -1
  51. package/esm/mcp-server/tools/evalsV2EvalsRetrieve.js +1 -1
  52. package/esm/mcp-server/tools/evalsV2EvalsRetrieve.js.map +1 -1
  53. package/esm/mcp-server/tools/evalsV2EvalsUpdate.js +1 -1
  54. package/esm/mcp-server/tools/evalsV2EvalsUpdate.js.map +1 -1
  55. package/esm/mcp-server/tools/promptsV2PromptRunsList.js +1 -1
  56. package/esm/mcp-server/tools/promptsV2PromptRunsList.js.map +1 -1
  57. package/esm/mcp-server/tools/promptsV2PromptRunsRetrieve.js +1 -1
  58. package/esm/mcp-server/tools/promptsV2PromptRunsRetrieve.js.map +1 -1
  59. package/esm/models/createv2evalconfigurationrequest.d.ts +2 -0
  60. package/esm/models/createv2evalconfigurationrequest.d.ts.map +1 -1
  61. package/esm/models/createv2evalconfigurationrequest.js +2 -0
  62. package/esm/models/createv2evalconfigurationrequest.js.map +1 -1
  63. package/esm/models/createv2evalrequest.d.ts +16 -20
  64. package/esm/models/createv2evalrequest.d.ts.map +1 -1
  65. package/esm/models/createv2evalrequest.js +20 -17
  66. package/esm/models/createv2evalrequest.js.map +1 -1
  67. package/esm/models/createv2evalrunrequest.d.ts +19 -4
  68. package/esm/models/createv2evalrunrequest.d.ts.map +1 -1
  69. package/esm/models/createv2evalrunrequest.js +27 -6
  70. package/esm/models/createv2evalrunrequest.js.map +1 -1
  71. package/esm/models/publiccompetitorrow.js +2 -2
  72. package/esm/models/publiccompetitorrow.js.map +1 -1
  73. package/esm/models/publiccriterionverdict.d.ts +26 -0
  74. package/esm/models/publiccriterionverdict.d.ts.map +1 -0
  75. package/esm/models/publiccriterionverdict.js +24 -0
  76. package/esm/models/publiccriterionverdict.js.map +1 -0
  77. package/esm/models/publiccurrentvisibilityresponse.js +2 -2
  78. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  79. package/esm/models/publicevalrunenvironment.d.ts +15 -0
  80. package/esm/models/publicevalrunenvironment.d.ts.map +1 -0
  81. package/esm/models/publicevalrunenvironment.js +15 -0
  82. package/esm/models/publicevalrunenvironment.js.map +1 -0
  83. package/esm/models/publicevalrunprogress.d.ts +1 -0
  84. package/esm/models/publicevalrunprogress.d.ts.map +1 -1
  85. package/esm/models/publicevalrunprogress.js +3 -2
  86. package/esm/models/publicevalrunprogress.js.map +1 -1
  87. package/esm/models/publicgraderresult.d.ts +13 -0
  88. package/esm/models/publicgraderresult.d.ts.map +1 -0
  89. package/esm/models/publicgraderresult.js +18 -0
  90. package/esm/models/publicgraderresult.js.map +1 -0
  91. package/esm/models/publicpromptvisibilitymetrics.js +2 -2
  92. package/esm/models/publicpromptvisibilitymetrics.js.map +1 -1
  93. package/esm/models/publicvisibilitysnapshot.js +2 -2
  94. package/esm/models/publicvisibilitysnapshot.js.map +1 -1
  95. package/esm/models/searchgroundingmode.d.ts +20 -0
  96. package/esm/models/searchgroundingmode.d.ts.map +1 -0
  97. package/esm/models/searchgroundingmode.js +19 -0
  98. package/esm/models/searchgroundingmode.js.map +1 -0
  99. package/esm/models/updatev2evalconfigurationrequest.d.ts +2 -0
  100. package/esm/models/updatev2evalconfigurationrequest.d.ts.map +1 -1
  101. package/esm/models/updatev2evalconfigurationrequest.js +3 -0
  102. package/esm/models/updatev2evalconfigurationrequest.js.map +1 -1
  103. package/esm/models/updatev2evalrequest.d.ts +16 -20
  104. package/esm/models/updatev2evalrequest.d.ts.map +1 -1
  105. package/esm/models/updatev2evalrequest.js +21 -17
  106. package/esm/models/updatev2evalrequest.js.map +1 -1
  107. package/esm/models/v2eval.d.ts +20 -21
  108. package/esm/models/v2eval.d.ts.map +1 -1
  109. package/esm/models/v2eval.js +29 -18
  110. package/esm/models/v2eval.js.map +1 -1
  111. package/esm/models/v2evalconfiguration.d.ts +2 -0
  112. package/esm/models/v2evalconfiguration.d.ts.map +1 -1
  113. package/esm/models/v2evalconfiguration.js +2 -0
  114. package/esm/models/v2evalconfiguration.js.map +1 -1
  115. package/esm/models/v2evalresultsummary.d.ts +14 -1
  116. package/esm/models/v2evalresultsummary.d.ts.map +1 -1
  117. package/esm/models/v2evalresultsummary.js +16 -2
  118. package/esm/models/v2evalresultsummary.js.map +1 -1
  119. package/esm/models/v2evalrun.d.ts +5 -2
  120. package/esm/models/v2evalrun.d.ts.map +1 -1
  121. package/esm/models/v2evalrun.js +6 -3
  122. package/esm/models/v2evalrun.js.map +1 -1
  123. package/esm/models/v2evalrunanalysis.d.ts +3 -1
  124. package/esm/models/v2evalrunanalysis.d.ts.map +1 -1
  125. package/esm/models/v2evalrunanalysis.js +3 -1
  126. package/esm/models/v2evalrunanalysis.js.map +1 -1
  127. package/esm/models/v2evalrundetail.d.ts +30 -0
  128. package/esm/models/v2evalrundetail.d.ts.map +1 -0
  129. package/esm/models/v2evalrundetail.js +33 -0
  130. package/esm/models/v2evalrundetail.js.map +1 -0
  131. package/esm/models/v2evalrunscancelop.d.ts +31 -0
  132. package/esm/models/v2evalrunscancelop.d.ts.map +1 -0
  133. package/esm/models/v2evalrunscancelop.js +27 -0
  134. package/esm/models/v2evalrunscancelop.js.map +1 -0
  135. package/esm/models/v2evalrunscreateop.d.ts +23 -3
  136. package/esm/models/v2evalrunscreateop.d.ts.map +1 -1
  137. package/esm/models/v2evalrunscreateop.js +15 -2
  138. package/esm/models/v2evalrunscreateop.js.map +1 -1
  139. package/esm/models/v2evalrunsretrieveop.d.ts +9 -2
  140. package/esm/models/v2evalrunsretrieveop.d.ts.map +1 -1
  141. package/esm/models/v2evalrunsretrieveop.js +6 -2
  142. package/esm/models/v2evalrunsretrieveop.js.map +1 -1
  143. package/esm/models/v2evalruntraceevent.d.ts +3 -2
  144. package/esm/models/v2evalruntraceevent.d.ts.map +1 -1
  145. package/esm/models/v2evalruntraceevent.js +4 -3
  146. package/esm/models/v2evalruntraceevent.js.map +1 -1
  147. package/esm/models/v2inlineclireference.d.ts +6 -0
  148. package/esm/models/v2inlineclireference.d.ts.map +1 -0
  149. package/esm/models/v2inlineclireference.js +10 -0
  150. package/esm/models/v2inlineclireference.js.map +1 -0
  151. package/esm/models/v2inlinemcpdefinition.d.ts +28 -0
  152. package/esm/models/v2inlinemcpdefinition.d.ts.map +1 -0
  153. package/esm/models/v2inlinemcpdefinition.js +25 -0
  154. package/esm/models/v2inlinemcpdefinition.js.map +1 -0
  155. package/esm/models/v2promptrundetail.d.ts +6 -0
  156. package/esm/models/v2promptrundetail.d.ts.map +1 -1
  157. package/esm/models/v2promptrundetail.js +4 -1
  158. package/esm/models/v2promptrundetail.js.map +1 -1
  159. package/esm/models/v2promptrunsummary.d.ts.map +1 -1
  160. package/esm/models/v2promptrunsummary.js +1 -1
  161. package/esm/models/v2promptrunsummary.js.map +1 -1
  162. package/esm/models/v2publictask.d.ts +2 -2
  163. package/esm/models/v2publictask.d.ts.map +1 -1
  164. package/esm/models/v2publictask.js +4 -4
  165. package/esm/models/v2publictask.js.map +1 -1
  166. package/esm/models/v2savedclireference.d.ts +6 -0
  167. package/esm/models/v2savedclireference.d.ts.map +1 -0
  168. package/esm/models/v2savedclireference.js +10 -0
  169. package/esm/models/v2savedclireference.js.map +1 -0
  170. package/esm/models/v2savedmcpreference.d.ts +6 -0
  171. package/esm/models/v2savedmcpreference.d.ts.map +1 -0
  172. package/esm/models/v2savedmcpreference.js +10 -0
  173. package/esm/models/v2savedmcpreference.js.map +1 -0
  174. package/esm/tool-names.d.ts.map +1 -1
  175. package/esm/tool-names.js +13 -21
  176. package/esm/tool-names.js.map +1 -1
  177. package/package.json +1 -1
  178. package/src/funcs/{evalsAnalysis.ts → evalsCancel.ts} +13 -13
  179. package/src/funcs/{evalRunsV2EvalRunsRetrieve.ts → evalsGet.ts} +4 -4
  180. package/src/funcs/evalsRun.ts +6 -4
  181. package/src/funcs/evalsV2EvalsCreate.ts +1 -1
  182. package/src/funcs/evalsV2EvalsList.ts +1 -1
  183. package/src/funcs/evalsV2EvalsRetrieve.ts +1 -1
  184. package/src/funcs/evalsV2EvalsUpdate.ts +1 -1
  185. package/src/funcs/promptsV2PromptRunsList.ts +1 -1
  186. package/src/funcs/promptsV2PromptRunsRetrieve.ts +1 -1
  187. package/src/landing-page.ts +1 -1
  188. package/src/lib/config.ts +3 -3
  189. package/src/mcp-server/mcp-server.ts +1 -1
  190. package/src/mcp-server/server.ts +5 -9
  191. package/src/mcp-server/tools/evalsCancel.ts +43 -0
  192. package/src/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.ts → evalsGet.ts} +7 -7
  193. package/src/mcp-server/tools/evalsRun.ts +6 -4
  194. package/src/mcp-server/tools/evalsV2EvalsCreate.ts +1 -1
  195. package/src/mcp-server/tools/evalsV2EvalsList.ts +1 -1
  196. package/src/mcp-server/tools/evalsV2EvalsRetrieve.ts +1 -1
  197. package/src/mcp-server/tools/evalsV2EvalsUpdate.ts +1 -1
  198. package/src/mcp-server/tools/promptsV2PromptRunsList.ts +1 -1
  199. package/src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts +1 -1
  200. package/src/models/createv2evalconfigurationrequest.ts +8 -0
  201. package/src/models/createv2evalrequest.ts +67 -27
  202. package/src/models/createv2evalrunrequest.ts +80 -13
  203. package/src/models/publiccompetitorrow.ts +2 -2
  204. package/src/models/publiccriterionverdict.ts +48 -0
  205. package/src/models/publiccurrentvisibilityresponse.ts +2 -2
  206. package/src/models/publicevalrunenvironment.ts +47 -0
  207. package/src/models/publicevalrunprogress.ts +8 -2
  208. package/src/models/publicgraderresult.ts +44 -0
  209. package/src/models/publicpromptvisibilitymetrics.ts +2 -2
  210. package/src/models/publicvisibilitysnapshot.ts +2 -2
  211. package/src/models/searchgroundingmode.ts +26 -0
  212. package/src/models/updatev2evalconfigurationrequest.ts +9 -0
  213. package/src/models/updatev2evalrequest.ts +59 -28
  214. package/src/models/v2eval.ts +61 -26
  215. package/src/models/v2evalconfiguration.ts +8 -0
  216. package/src/models/v2evalresultsummary.ts +45 -4
  217. package/src/models/v2evalrun.ts +21 -7
  218. package/src/models/v2evalrunanalysis.ts +11 -3
  219. package/src/models/v2evalrundetail.ts +90 -0
  220. package/src/models/v2evalrunscancelop.ts +70 -0
  221. package/src/models/v2evalrunscreateop.ts +43 -5
  222. package/src/models/v2evalrunsretrieveop.ts +23 -3
  223. package/src/models/v2evalruntraceevent.ts +9 -5
  224. package/src/models/v2inlineclireference.ts +15 -0
  225. package/src/models/v2inlinemcpdefinition.ts +51 -0
  226. package/src/models/v2promptrundetail.ts +12 -1
  227. package/src/models/v2promptrunsummary.ts +3 -1
  228. package/src/models/v2publictask.ts +9 -7
  229. package/src/models/v2savedclireference.ts +13 -0
  230. package/src/models/v2savedmcpreference.ts +13 -0
  231. package/src/tool-names.ts +13 -21
  232. package/test/simulations.test.js +189 -0
  233. package/esm/funcs/evalResultsV2EvalResultsList.d.ts +0 -16
  234. package/esm/funcs/evalResultsV2EvalResultsList.d.ts.map +0 -1
  235. package/esm/funcs/evalResultsV2EvalResultsList.js +0 -87
  236. package/esm/funcs/evalResultsV2EvalResultsList.js.map +0 -1
  237. package/esm/funcs/evalResultsV2EvalResultsRetrieve.d.ts +0 -16
  238. package/esm/funcs/evalResultsV2EvalResultsRetrieve.d.ts.map +0 -1
  239. package/esm/funcs/evalResultsV2EvalResultsRetrieve.js +0 -88
  240. package/esm/funcs/evalResultsV2EvalResultsRetrieve.js.map +0 -1
  241. package/esm/funcs/evalRunsV2EvalRunsRetrieve.d.ts +0 -16
  242. package/esm/funcs/evalRunsV2EvalRunsRetrieve.d.ts.map +0 -1
  243. package/esm/funcs/evalRunsV2EvalRunsRetrieve.js.map +0 -1
  244. package/esm/funcs/evalsAnalysis.d.ts +0 -16
  245. package/esm/funcs/evalsAnalysis.d.ts.map +0 -1
  246. package/esm/funcs/evalsAnalysis.js.map +0 -1
  247. package/esm/mcp-server/tools/evalResultsV2EvalResultsList.d.ts +0 -7
  248. package/esm/mcp-server/tools/evalResultsV2EvalResultsList.d.ts.map +0 -1
  249. package/esm/mcp-server/tools/evalResultsV2EvalResultsList.js +0 -35
  250. package/esm/mcp-server/tools/evalResultsV2EvalResultsList.js.map +0 -1
  251. package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.d.ts +0 -7
  252. package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.d.ts.map +0 -1
  253. package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.js +0 -35
  254. package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.js.map +0 -1
  255. package/esm/mcp-server/tools/evalRunsV2EvalRunsRetrieve.d.ts.map +0 -1
  256. package/esm/mcp-server/tools/evalRunsV2EvalRunsRetrieve.js.map +0 -1
  257. package/esm/mcp-server/tools/evalsAnalysis.d.ts +0 -7
  258. package/esm/mcp-server/tools/evalsAnalysis.d.ts.map +0 -1
  259. package/esm/mcp-server/tools/evalsAnalysis.js +0 -35
  260. package/esm/mcp-server/tools/evalsAnalysis.js.map +0 -1
  261. package/esm/models/v2evaljudge.d.ts +0 -6
  262. package/esm/models/v2evaljudge.d.ts.map +0 -1
  263. package/esm/models/v2evaljudge.js +0 -9
  264. package/esm/models/v2evaljudge.js.map +0 -1
  265. package/esm/models/v2evalresult.d.ts +0 -21
  266. package/esm/models/v2evalresult.d.ts.map +0 -1
  267. package/esm/models/v2evalresult.js +0 -22
  268. package/esm/models/v2evalresult.js.map +0 -1
  269. package/esm/models/v2evalresultslistop.d.ts +0 -11
  270. package/esm/models/v2evalresultslistop.d.ts.map +0 -1
  271. package/esm/models/v2evalresultslistop.js +0 -16
  272. package/esm/models/v2evalresultslistop.js.map +0 -1
  273. package/esm/models/v2evalresultsresponse.d.ts +0 -9
  274. package/esm/models/v2evalresultsresponse.d.ts.map +0 -1
  275. package/esm/models/v2evalresultsresponse.js +0 -12
  276. package/esm/models/v2evalresultsresponse.js.map +0 -1
  277. package/esm/models/v2evalresultsretrieveop.d.ts +0 -10
  278. package/esm/models/v2evalresultsretrieveop.d.ts.map +0 -1
  279. package/esm/models/v2evalresultsretrieveop.js +0 -15
  280. package/esm/models/v2evalresultsretrieveop.js.map +0 -1
  281. package/esm/models/v2evalrunanalysisresponse.d.ts +0 -12
  282. package/esm/models/v2evalrunanalysisresponse.d.ts.map +0 -1
  283. package/esm/models/v2evalrunanalysisresponse.js +0 -15
  284. package/esm/models/v2evalrunanalysisresponse.js.map +0 -1
  285. package/esm/models/v2evalrunsanalysisop.d.ts +0 -17
  286. package/esm/models/v2evalrunsanalysisop.d.ts.map +0 -1
  287. package/esm/models/v2evalrunsanalysisop.js +0 -19
  288. package/esm/models/v2evalrunsanalysisop.js.map +0 -1
  289. package/src/funcs/evalResultsV2EvalResultsList.ts +0 -149
  290. package/src/funcs/evalResultsV2EvalResultsRetrieve.ts +0 -153
  291. package/src/mcp-server/tools/evalResultsV2EvalResultsList.ts +0 -43
  292. package/src/mcp-server/tools/evalResultsV2EvalResultsRetrieve.ts +0 -45
  293. package/src/mcp-server/tools/evalsAnalysis.ts +0 -43
  294. package/src/models/v2evaljudge.ts +0 -12
  295. package/src/models/v2evalresult.ts +0 -42
  296. package/src/models/v2evalresultslistop.ts +0 -39
  297. package/src/models/v2evalresultsresponse.ts +0 -23
  298. package/src/models/v2evalresultsretrieveop.ts +0 -28
  299. package/src/models/v2evalrunanalysisresponse.ts +0 -32
  300. package/src/models/v2evalrunsanalysisop.ts +0 -48
package/bin/mcp-server.js CHANGED
@@ -1453,7 +1453,7 @@ var init_versions = __esm(() => {
1453
1453
  version2 = {
1454
1454
  major: 4,
1455
1455
  minor: 6,
1456
- patch: 4
1456
+ patch: 5
1457
1457
  };
1458
1458
  });
1459
1459
 
@@ -28171,6 +28171,9 @@ var require_proxy_addr = __commonJS(function(exports, module) {
28171
28171
  if (!isip(addr))
28172
28172
  return false;
28173
28173
  var ip = parseip(addr);
28174
+ if (ip.kind() === "ipv6" && ip.isIPv4MappedAddress()) {
28175
+ ip = ip.toIPv4Address();
28176
+ }
28174
28177
  var ipconv;
28175
28178
  var kind = ip.kind();
28176
28179
  for (var i = 0;i < subnets.length; i++) {
@@ -28183,10 +28186,15 @@ var require_proxy_addr = __commonJS(function(exports, module) {
28183
28186
  if (subnetkind === "ipv4" && !ip.isIPv4MappedAddress()) {
28184
28187
  continue;
28185
28188
  }
28189
+ if (subnetkind !== "ipv4" && !(subnetrange >= 96 && subnetip.isIPv4MappedAddress())) {
28190
+ continue;
28191
+ }
28186
28192
  if (!ipconv) {
28187
28193
  ipconv = subnetkind === "ipv4" ? ip.toIPv4Address() : ip.toIPv4MappedAddress();
28188
28194
  }
28189
28195
  trusted = ipconv;
28196
+ } else if (kind === "ipv6" && subnetip.isIPv4MappedAddress()) {
28197
+ continue;
28190
28198
  }
28191
28199
  if (trusted.match(subnetip, subnetrange)) {
28192
28200
  return true;
@@ -28204,12 +28212,20 @@ var require_proxy_addr = __commonJS(function(exports, module) {
28204
28212
  if (!isip(addr))
28205
28213
  return false;
28206
28214
  var ip = parseip(addr);
28215
+ if (ip.kind() === "ipv6" && ip.isIPv4MappedAddress()) {
28216
+ ip = ip.toIPv4Address();
28217
+ }
28207
28218
  var kind = ip.kind();
28208
28219
  if (kind !== subnetkind) {
28209
28220
  if (subnetisipv4 && !ip.isIPv4MappedAddress()) {
28210
28221
  return false;
28211
28222
  }
28223
+ if (!subnetisipv4 && !(subnetrange >= 96 && subnetip.isIPv4MappedAddress())) {
28224
+ return false;
28225
+ }
28212
28226
  ip = subnetisipv4 ? ip.toIPv4Address() : ip.toIPv4MappedAddress();
28227
+ } else if (kind === "ipv6" && subnetip.isIPv4MappedAddress()) {
28228
+ return false;
28213
28229
  }
28214
28230
  return ip.match(subnetip, subnetrange);
28215
28231
  };
@@ -42217,6 +42233,22 @@ var require_utils4 = __commonJS(function(exports, module) {
42217
42233
  }
42218
42234
  return output;
42219
42235
  }
42236
+ function recomposeZonedIPv6Host(component) {
42237
+ const zone = component.ipv6Zone;
42238
+ if (zone === undefined)
42239
+ return;
42240
+ const host = component.host;
42241
+ const separator = host.indexOf("%");
42242
+ if (separator === -1)
42243
+ return;
42244
+ const address = host.slice(0, separator);
42245
+ const escaped = address + "%25" + zone;
42246
+ const derived = normalizeIPv6("[" + escaped + "]");
42247
+ if (derived.isIPV6 === true && derived.host === host) {
42248
+ return "[" + escaped + "]";
42249
+ }
42250
+ return;
42251
+ }
42220
42252
  function recomposeAuthority(component) {
42221
42253
  const uriTokens = [];
42222
42254
  if (component.userinfo !== undefined) {
@@ -42226,15 +42258,20 @@ var require_utils4 = __commonJS(function(exports, module) {
42226
42258
  if (component.host !== undefined) {
42227
42259
  let host = component.host;
42228
42260
  if (!isIPv4(host)) {
42229
- let ipV6res = normalizeIPv6(host);
42230
- if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
42231
- host = normalizePercentEncoding(host, true);
42232
- ipV6res = normalizeIPv6(host);
42233
- }
42234
- if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
42235
- host = `[${ipV6res.escapedHost}]`;
42261
+ const zonedHost = recomposeZonedIPv6Host(component);
42262
+ if (zonedHost !== undefined) {
42263
+ host = zonedHost;
42236
42264
  } else {
42237
- host = reescapeHostDelimiters(host, false);
42265
+ let ipV6res = normalizeIPv6(host);
42266
+ if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
42267
+ host = normalizePercentEncoding(host, true);
42268
+ ipV6res = normalizeIPv6(host);
42269
+ }
42270
+ if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
42271
+ host = `[${ipV6res.escapedHost}]`;
42272
+ } else {
42273
+ host = reescapeHostDelimiters(host, false);
42274
+ }
42238
42275
  }
42239
42276
  }
42240
42277
  uriTokens.push(host);
@@ -42447,6 +42484,7 @@ var require_schemes = __commonJS(function(exports, module) {
42447
42484
  var HEX_PAIR = /^[\da-f]{2}$/iu;
42448
42485
  var MAILTO_DOMAIN_LITERAL = /^\[[\x21-\x5A\x5E-\x7E]*\]$/u;
42449
42486
  var MAILTO_DOMAIN_ERROR = "URI mailto has an invalid recipient domain.";
42487
+ var MAILTO_AUTHORITY_ERROR = "URI mailto must not have an authority component.";
42450
42488
  var HAS_SURROGATE = /[\uD800-\uDFFF]/u;
42451
42489
  function decodeHex(str) {
42452
42490
  if (typeof str !== "string" || str.indexOf("%") === -1) {
@@ -42561,30 +42599,37 @@ var require_schemes = __commonJS(function(exports, module) {
42561
42599
  mailtoComponent.error = mailtoComponent.error || "URI mailto has malformed header fields.";
42562
42600
  continue;
42563
42601
  }
42564
- const name = eqIdx === -1 ? token : token.slice(0, eqIdx);
42602
+ const name = decodeHex(eqIdx === -1 ? token : token.slice(0, eqIdx));
42603
+ const normalizedName = name.toLowerCase();
42565
42604
  const value = eqIdx === -1 ? "" : token.slice(eqIdx + 1);
42566
- if (name === "to") {
42605
+ if (normalizedName === "to") {
42567
42606
  const addrs = value.split(",");
42568
42607
  for (let j = 0;j < addrs.length; j++)
42569
42608
  to.push(addrs[j]);
42570
42609
  continue;
42571
42610
  }
42572
- if (name === "subject") {
42611
+ if (normalizedName === "subject") {
42573
42612
  mailtoComponent.subject = decodeHex(value);
42574
42613
  continue;
42575
42614
  }
42576
- if (name === "body") {
42615
+ if (normalizedName === "body") {
42577
42616
  mailtoComponent.body = decodeHex(value);
42578
42617
  continue;
42579
42618
  }
42580
42619
  if (headers === null)
42581
42620
  headers = Object.create(null);
42582
- headers[decodeHex(name)] = decodeHex(value);
42621
+ headers[name] = decodeHex(value);
42583
42622
  }
42584
42623
  if (headers !== null)
42585
42624
  mailtoComponent.headers = headers;
42586
42625
  }
42587
42626
  mailtoComponent.query = undefined;
42627
+ if (to.length > 0 && (mailtoComponent.userinfo !== undefined || mailtoComponent.host !== undefined || mailtoComponent.port !== undefined)) {
42628
+ mailtoComponent.userinfo = undefined;
42629
+ mailtoComponent.host = undefined;
42630
+ mailtoComponent.port = undefined;
42631
+ mailtoComponent.error = mailtoComponent.error || MAILTO_AUTHORITY_ERROR;
42632
+ }
42588
42633
  for (let i = 0;i < to.length; i++) {
42589
42634
  const rawAddr = to[i];
42590
42635
  const atIdx = rawAddr.lastIndexOf("@");
@@ -42601,10 +42646,35 @@ var require_schemes = __commonJS(function(exports, module) {
42601
42646
  mailtoComponent.to = to;
42602
42647
  return mailtoComponent;
42603
42648
  }
42649
+ function mailtoEncodeHeaderName(name) {
42650
+ return encodeWithAllow(name.replace(/%/gu, "%25"), HFNAME);
42651
+ }
42604
42652
  function mailtoSerialize(component, options) {
42605
42653
  const mailtoComponent = component;
42606
42654
  const to = Array.isArray(mailtoComponent.to) ? mailtoComponent.to.slice() : [];
42655
+ const sourceHeaders = mailtoComponent.headers && typeof mailtoComponent.headers === "object" ? Object.assign(Object.create(null), mailtoComponent.headers) : Object.create(null);
42656
+ const headers = Object.create(null);
42657
+ for (const name in sourceHeaders) {
42658
+ const normalizedName = name.toLowerCase();
42659
+ if (normalizedName === "to") {
42660
+ const addrs = String(sourceHeaders[name]).split(",");
42661
+ for (let i = 0;i < addrs.length; i++)
42662
+ to.push(addrs[i]);
42663
+ } else if (normalizedName === "subject" || normalizedName === "body") {
42664
+ headers[normalizedName] = sourceHeaders[name];
42665
+ } else {
42666
+ headers[name] = sourceHeaders[name];
42667
+ }
42668
+ }
42669
+ if (mailtoComponent.subject !== undefined)
42670
+ headers.subject = mailtoComponent.subject;
42671
+ if (mailtoComponent.body !== undefined)
42672
+ headers.body = mailtoComponent.body;
42673
+ mailtoComponent.headers = headers;
42607
42674
  if (to.length) {
42675
+ mailtoComponent.userinfo = undefined;
42676
+ mailtoComponent.host = undefined;
42677
+ mailtoComponent.port = undefined;
42608
42678
  for (let i = 0;i < to.length; i++) {
42609
42679
  const addr = String(to[i]);
42610
42680
  const atIdx = addr.lastIndexOf("@");
@@ -42620,18 +42690,12 @@ var require_schemes = __commonJS(function(exports, module) {
42620
42690
  } else {
42621
42691
  mailtoComponent.path = undefined;
42622
42692
  }
42623
- const headers = mailtoComponent.headers && typeof mailtoComponent.headers === "object" ? Object.assign(Object.create(null), mailtoComponent.headers) : Object.create(null);
42624
- if (mailtoComponent.subject)
42625
- headers.subject = mailtoComponent.subject;
42626
- if (mailtoComponent.body)
42627
- headers.body = mailtoComponent.body;
42628
- mailtoComponent.headers = headers;
42629
42693
  let query = "";
42630
42694
  let count = 0;
42631
42695
  for (const name in headers) {
42632
42696
  if (count++ !== 0)
42633
42697
  query += "&";
42634
- query += encodeWithAllow(name, HFNAME) + "=" + encodeWithAllow(String(headers[name]), HFNAME);
42698
+ query += mailtoEncodeHeaderName(name) + "=" + encodeWithAllow(String(headers[name]), HFNAME);
42635
42699
  }
42636
42700
  if (count !== 0) {
42637
42701
  mailtoComponent.query = query;
@@ -42724,6 +42788,12 @@ var require_fast_uri = __commonJS(function(exports, module) {
42724
42788
  schemelessOptions.skipEscape = true;
42725
42789
  return serialize(resolved, schemelessOptions);
42726
42790
  }
42791
+ function copyHost(target, source) {
42792
+ target.host = source.host;
42793
+ if (source.ipv6Zone !== undefined) {
42794
+ target.ipv6Zone = source.ipv6Zone;
42795
+ }
42796
+ }
42727
42797
  function resolveComponent(base, relative, options, skipNormalization) {
42728
42798
  const target = {};
42729
42799
  if (!skipNormalization) {
@@ -42734,14 +42804,14 @@ var require_fast_uri = __commonJS(function(exports, module) {
42734
42804
  if (!options.tolerant && relative.scheme) {
42735
42805
  target.scheme = relative.scheme;
42736
42806
  target.userinfo = relative.userinfo;
42737
- target.host = relative.host;
42807
+ copyHost(target, relative);
42738
42808
  target.port = relative.port;
42739
42809
  target.path = removeDotSegments(relative.path || "");
42740
42810
  target.query = relative.query;
42741
42811
  } else {
42742
42812
  if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
42743
42813
  target.userinfo = relative.userinfo;
42744
- target.host = relative.host;
42814
+ copyHost(target, relative);
42745
42815
  target.port = relative.port;
42746
42816
  target.path = removeDotSegments(relative.path || "");
42747
42817
  target.query = relative.query;
@@ -42769,7 +42839,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
42769
42839
  target.query = relative.query;
42770
42840
  }
42771
42841
  target.userinfo = base.userinfo;
42772
- target.host = base.host;
42842
+ copyHost(target, base);
42773
42843
  target.port = base.port;
42774
42844
  }
42775
42845
  target.scheme = base.scheme;
@@ -42785,6 +42855,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
42785
42855
  function serialize(cmpts, opts) {
42786
42856
  const component = {
42787
42857
  host: cmpts.host,
42858
+ ipv6Zone: cmpts.ipv6Zone,
42788
42859
  scheme: cmpts.scheme,
42789
42860
  userinfo: cmpts.userinfo,
42790
42861
  port: cmpts.port,
@@ -42981,6 +43052,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
42981
43052
  isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
42982
43053
  malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
42983
43054
  parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
43055
+ if (isIP && ipv6result.isIPV6 === true && parsed.host.indexOf("%") !== -1) {
43056
+ parsed.ipv6Zone = parsed.host.slice(parsed.host.indexOf("%") + 1);
43057
+ }
42984
43058
  if (malformedIPLiteral) {
42985
43059
  parsed.error = parsed.error || "URI host is malformed.";
42986
43060
  malformedAuthorityOrPort = true;
@@ -43005,13 +43079,14 @@ var require_fast_uri = __commonJS(function(exports, module) {
43005
43079
  if (!malformedIPLiteral) {
43006
43080
  malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
43007
43081
  }
43008
- if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
43009
- if (uri.indexOf("%") !== -1) {
43010
- if (parsed.host !== undefined && !malformedIPLiteral) {
43011
- const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
43012
- parsed.host = reescapeHostDelimiters(host, isIP);
43013
- }
43082
+ if (uri.indexOf("%") !== -1 && parsed.host !== undefined && !malformedIPLiteral) {
43083
+ let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
43084
+ if (!isIP) {
43085
+ host = normalizePercentEncoding(host.toLowerCase());
43014
43086
  }
43087
+ parsed.host = reescapeHostDelimiters(host, isIP);
43088
+ }
43089
+ if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
43015
43090
  if (parsed.path) {
43016
43091
  parsed.path = normalizePathEncoding(parsed.path);
43017
43092
  }
@@ -52769,9 +52844,9 @@ var init_config = __esm(() => {
52769
52844
  SDK_METADATA = {
52770
52845
  language: "typescript",
52771
52846
  openapiDocVersion: "1.0.0",
52772
- sdkVersion: "0.3.0",
52773
- genVersion: "2.935.1",
52774
- userAgent: "speakeasy-sdk/mcp-typescript 0.3.0 2.935.1 1.0.0 @lightsage/mcp"
52847
+ sdkVersion: "0.4.0",
52848
+ genVersion: "2.941.0",
52849
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.0 2.941.0 1.0.0 @lightsage/mcp"
52775
52850
  };
52776
52851
  });
52777
52852
 
@@ -54953,312 +55028,6 @@ Returns reusable environments without exposing secret values.`,
54953
55028
  };
54954
55029
  });
54955
55030
 
54956
- // src/models/v2evalresultsummary.ts
54957
- var V2EvalResultSummary$zodSchema;
54958
- var init_v2evalresultsummary = __esm(() => {
54959
- init_zod();
54960
- V2EvalResultSummary$zodSchema = object({
54961
- agent_id: string2().nullable().optional().describe("Runnable agent ID combining the harness and model."),
54962
- created_at: string2().nullable().optional(),
54963
- eval_id: string2().nullable().optional(),
54964
- failure_reasons: array(string2()).nullable().optional(),
54965
- id: string2().describe("Result ID, not an eval job ID."),
54966
- latency_ms: int().nullable().optional(),
54967
- passed: boolean2().nullable().optional(),
54968
- score: number2().nullable().optional().describe("Score from 0 to 1.")
54969
- });
54970
- });
54971
-
54972
- // src/models/v2evalresultsresponse.ts
54973
- var V2EvalResultsResponse$zodSchema;
54974
- var init_v2evalresultsresponse = __esm(() => {
54975
- init_zod();
54976
- init_v2evalresultsummary();
54977
- V2EvalResultsResponse$zodSchema = object({
54978
- count: int(),
54979
- data: array(V2EvalResultSummary$zodSchema).optional(),
54980
- limit: int()
54981
- });
54982
- });
54983
-
54984
- // src/models/v2evalresultslistop.ts
54985
- var V2EvalResultsListRequest$zodSchema, V2EvalResultsListResponse$zodSchema;
54986
- var init_v2evalresultslistop = __esm(() => {
54987
- init_zod();
54988
- init_httpvalidationerror();
54989
- init_v2evalresultsresponse();
54990
- V2EvalResultsListRequest$zodSchema = object({
54991
- limit: int().default(20),
54992
- since: string2().describe("Relative window such as `7d` or an ISO timestamp.").optional()
54993
- });
54994
- V2EvalResultsListResponse$zodSchema = union([
54995
- V2EvalResultsResponse$zodSchema,
54996
- HTTPValidationError$zodSchema
54997
- ]);
54998
- });
54999
-
55000
- // src/funcs/evalResultsV2EvalResultsList.ts
55001
- function evalResultsV2EvalResultsList(client$, request, options) {
55002
- return new APIPromise($do7(client$, request, options));
55003
- }
55004
- async function $do7(client$, request, options) {
55005
- const parsed$ = safeParse4(request, (value$) => V2EvalResultsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
55006
- if (!parsed$.ok) {
55007
- return [parsed$, { status: "invalid" }];
55008
- }
55009
- const payload$ = parsed$.value;
55010
- const body$ = null;
55011
- const path$ = pathToFunc("/v2/eval-results")();
55012
- const query$ = encodeFormQuery({
55013
- limit: payload$?.limit,
55014
- since: payload$?.since
55015
- });
55016
- const headers$ = new Headers(compactMap({
55017
- Accept: "application/json"
55018
- }));
55019
- const securityInput = await extractSecurity(client$._options.security);
55020
- const requestSecurity = resolveGlobalSecurity(securityInput);
55021
- const context = {
55022
- options: client$._options,
55023
- baseURL: options?.serverURL ?? client$._baseURL ?? "",
55024
- operationID: "v2_eval_results_list",
55025
- oAuth2Scopes: null,
55026
- resolvedSecurity: requestSecurity,
55027
- securitySource: client$._options.security,
55028
- retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55029
- retryCodes: options?.retryCodes || [
55030
- "429",
55031
- "500",
55032
- "502",
55033
- "503",
55034
- "504"
55035
- ]
55036
- };
55037
- const requestRes = client$._createRequest(context, {
55038
- security: requestSecurity,
55039
- method: "GET",
55040
- baseURL: options?.serverURL,
55041
- path: path$,
55042
- headers: headers$,
55043
- query: query$,
55044
- body: body$,
55045
- userAgent: client$._options.userAgent,
55046
- timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55047
- }, options);
55048
- if (!requestRes.ok) {
55049
- return [requestRes, { status: "invalid" }];
55050
- }
55051
- const req$ = requestRes.value;
55052
- const doResult = await client$._do(req$, {
55053
- context,
55054
- errorCodes: [],
55055
- retryConfig: context.retryConfig,
55056
- retryCodes: context.retryCodes
55057
- });
55058
- if (!doResult.ok) {
55059
- return [doResult, { status: "request-error", request: req$ }];
55060
- }
55061
- return [doResult, {
55062
- status: "complete",
55063
- request: req$,
55064
- response: doResult.value
55065
- }];
55066
- }
55067
- var init_evalResultsV2EvalResultsList = __esm(() => {
55068
- init_encodings();
55069
- init_primitives();
55070
- init_schemas4();
55071
- init_security();
55072
- init_url();
55073
- init_v2evalresultslistop();
55074
- init_async();
55075
- });
55076
-
55077
- // src/mcp-server/tools/evalResultsV2EvalResultsList.ts
55078
- var args4, tool$evalResultsV2EvalResultsList;
55079
- var init_evalResultsV2EvalResultsList2 = __esm(() => {
55080
- init_evalResultsV2EvalResultsList();
55081
- init_v2evalresultslistop();
55082
- init_tools();
55083
- args4 = {
55084
- request: V2EvalResultsListRequest$zodSchema.optional()
55085
- };
55086
- tool$evalResultsV2EvalResultsList = {
55087
- name: "eval-results-v2-eval-results-list",
55088
- description: `List Results
55089
-
55090
- Returns completed custom-eval results from all supported run flows, ordered newest first. Result IDs are different from eval run IDs.`,
55091
- annotations: {
55092
- title: "",
55093
- destructiveHint: false,
55094
- idempotentHint: false,
55095
- openWorldHint: false,
55096
- readOnlyHint: true
55097
- },
55098
- args: args4,
55099
- tool: async (client, args, ctx) => {
55100
- const [result] = await evalResultsV2EvalResultsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55101
- if (!result.ok) {
55102
- return {
55103
- content: [{ type: "text", text: result.error.message }],
55104
- isError: true
55105
- };
55106
- }
55107
- return formatResult(result.value);
55108
- }
55109
- };
55110
- });
55111
-
55112
- // src/models/v2evalresult.ts
55113
- var V2EvalResult$zodSchema;
55114
- var init_v2evalresult = __esm(() => {
55115
- init_zod();
55116
- V2EvalResult$zodSchema = object({
55117
- agent_id: string2().nullable().optional().describe("Runnable agent ID combining the harness and model."),
55118
- created_at: string2().nullable().optional(),
55119
- eval_id: string2().nullable().optional(),
55120
- execution_stderr: string2().nullable().optional(),
55121
- execution_stdout: string2().nullable().optional(),
55122
- exit_code: int().nullable().optional(),
55123
- failure_reasons: array(string2()).nullable().optional(),
55124
- id: string2().describe("Result ID, not an eval job ID."),
55125
- latency_ms: int().nullable().optional(),
55126
- output: string2().nullable().optional(),
55127
- passed: boolean2().nullable().optional(),
55128
- prompt: string2().nullable().optional(),
55129
- score: number2().nullable().optional().describe("Score from 0 to 1."),
55130
- tool_calls: array(record(string2(), any())).nullable().optional()
55131
- });
55132
- });
55133
-
55134
- // src/models/v2evalresultsretrieveop.ts
55135
- var V2EvalResultsRetrieveRequest$zodSchema, V2EvalResultsRetrieveResponse$zodSchema;
55136
- var init_v2evalresultsretrieveop = __esm(() => {
55137
- init_zod();
55138
- init_httpvalidationerror();
55139
- init_v2evalresult();
55140
- V2EvalResultsRetrieveRequest$zodSchema = object({
55141
- result_id: string2()
55142
- });
55143
- V2EvalResultsRetrieveResponse$zodSchema = union([
55144
- V2EvalResult$zodSchema,
55145
- HTTPValidationError$zodSchema
55146
- ]);
55147
- });
55148
-
55149
- // src/funcs/evalResultsV2EvalResultsRetrieve.ts
55150
- function evalResultsV2EvalResultsRetrieve(client$, request, options) {
55151
- return new APIPromise($do8(client$, request, options));
55152
- }
55153
- async function $do8(client$, request, options) {
55154
- const parsed$ = safeParse4(request, (value$) => V2EvalResultsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
55155
- if (!parsed$.ok) {
55156
- return [parsed$, { status: "invalid" }];
55157
- }
55158
- const payload$ = parsed$.value;
55159
- const body$ = null;
55160
- const pathParams$ = {
55161
- result_id: encodeSimple("result_id", payload$.result_id, {
55162
- explode: false,
55163
- charEncoding: "percent"
55164
- })
55165
- };
55166
- const path$ = pathToFunc("/v2/eval-results/{result_id}")(pathParams$);
55167
- const headers$ = new Headers(compactMap({
55168
- Accept: "application/json"
55169
- }));
55170
- const securityInput = await extractSecurity(client$._options.security);
55171
- const requestSecurity = resolveGlobalSecurity(securityInput);
55172
- const context = {
55173
- options: client$._options,
55174
- baseURL: options?.serverURL ?? client$._baseURL ?? "",
55175
- operationID: "v2_eval_results_retrieve",
55176
- oAuth2Scopes: null,
55177
- resolvedSecurity: requestSecurity,
55178
- securitySource: client$._options.security,
55179
- retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55180
- retryCodes: options?.retryCodes || [
55181
- "429",
55182
- "500",
55183
- "502",
55184
- "503",
55185
- "504"
55186
- ]
55187
- };
55188
- const requestRes = client$._createRequest(context, {
55189
- security: requestSecurity,
55190
- method: "GET",
55191
- baseURL: options?.serverURL,
55192
- path: path$,
55193
- headers: headers$,
55194
- body: body$,
55195
- userAgent: client$._options.userAgent,
55196
- timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55197
- }, options);
55198
- if (!requestRes.ok) {
55199
- return [requestRes, { status: "invalid" }];
55200
- }
55201
- const req$ = requestRes.value;
55202
- const doResult = await client$._do(req$, {
55203
- context,
55204
- errorCodes: [],
55205
- retryConfig: context.retryConfig,
55206
- retryCodes: context.retryCodes
55207
- });
55208
- if (!doResult.ok) {
55209
- return [doResult, { status: "request-error", request: req$ }];
55210
- }
55211
- return [doResult, {
55212
- status: "complete",
55213
- request: req$,
55214
- response: doResult.value
55215
- }];
55216
- }
55217
- var init_evalResultsV2EvalResultsRetrieve = __esm(() => {
55218
- init_encodings();
55219
- init_primitives();
55220
- init_schemas4();
55221
- init_security();
55222
- init_url();
55223
- init_v2evalresultsretrieveop();
55224
- init_async();
55225
- });
55226
-
55227
- // src/mcp-server/tools/evalResultsV2EvalResultsRetrieve.ts
55228
- var args5, tool$evalResultsV2EvalResultsRetrieve;
55229
- var init_evalResultsV2EvalResultsRetrieve2 = __esm(() => {
55230
- init_evalResultsV2EvalResultsRetrieve();
55231
- init_v2evalresultsretrieveop();
55232
- init_tools();
55233
- args5 = {
55234
- request: V2EvalResultsRetrieveRequest$zodSchema
55235
- };
55236
- tool$evalResultsV2EvalResultsRetrieve = {
55237
- name: "eval-results-v2-eval-results-retrieve",
55238
- description: `Retrieve Result
55239
-
55240
- Returns one completed custom-eval result with its output and diagnostic details.`,
55241
- annotations: {
55242
- title: "",
55243
- destructiveHint: false,
55244
- idempotentHint: false,
55245
- openWorldHint: false,
55246
- readOnlyHint: true
55247
- },
55248
- args: args5,
55249
- tool: async (client, args, ctx) => {
55250
- const [result] = await evalResultsV2EvalResultsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55251
- if (!result.ok) {
55252
- return {
55253
- content: [{ type: "text", text: result.error.message }],
55254
- isError: true
55255
- };
55256
- }
55257
- return formatResult(result.value);
55258
- }
55259
- };
55260
- });
55261
-
55262
55031
  // src/models/publicevalrunprogress.ts
55263
55032
  var PublicEvalRunProgress$zodSchema;
55264
55033
  var init_publicevalrunprogress = __esm(() => {
@@ -55267,9 +55036,10 @@ var init_publicevalrunprogress = __esm(() => {
55267
55036
  cancelled: int().default(0),
55268
55037
  completed: int().default(0),
55269
55038
  failed: int().default(0),
55270
- interrupted: int().default(0),
55271
- percent: number2().default(0).describe("The percentage of child jobs in a terminal state. It can reach `100` while the parent job is still summarizing, so use `status` to detect completion."),
55039
+ interrupted: int().default(0).describe("Deprecated compatibility alias for `retrying`; use `retrying`."),
55040
+ percent: number2().default(0).describe("The percentage of child jobs in a final state (`completed`, `failed`, or `cancelled`). It can reach `100` while the parent job is still summarizing, so use `status` to detect completion."),
55272
55041
  queued: int().default(0),
55042
+ retrying: int().default(0).describe("Recoverable child jobs waiting to be retried. These remain active and are excluded from `percent`."),
55273
55043
  running: int().default(0),
55274
55044
  total: int().default(0)
55275
55045
  });
@@ -55281,8 +55051,8 @@ var init_v2evalrun = __esm(() => {
55281
55051
  init_zod();
55282
55052
  init_publicevalrunprogress();
55283
55053
  V2EvalRun$zodSchema = object({
55284
- agent_id: string2().nullable().optional().describe("Runnable agent ID selected for this run."),
55285
- agent_name: string2().nullable().optional().describe("Display name captured for the selected agent."),
55054
+ agent: array(string2()).optional().describe("Runnable agents selected for this simulation."),
55055
+ attempt_count: int().default(1).describe("Total concrete attempts after all fan-out dimensions."),
55286
55056
  completed_at: string2().nullable().optional(),
55287
55057
  configuration_id: string2().nullable().optional(),
55288
55058
  created_at: string2().nullable().optional(),
@@ -55293,10 +55063,13 @@ var init_v2evalrun = __esm(() => {
55293
55063
  eval_name: string2().nullable().optional().describe("Display name captured for the eval when the run was created."),
55294
55064
  id: string2().describe("Run ID to use when polling eval-run status."),
55295
55065
  job_id: string2().describe("Alias of `id` for the durable parent job."),
55066
+ persona: string2().nullable().optional().describe("Perspective applied to every attempt in this simulation."),
55296
55067
  progress: PublicEvalRunProgress$zodSchema.optional(),
55068
+ prompt_count: int().default(1).describe("Number of prompts included in the simulation."),
55069
+ runs: int().default(1).describe("Independent attempts requested for every prompt-agent pair."),
55297
55070
  stage: string2().nullable().optional(),
55298
55071
  started_at: string2().nullable().optional(),
55299
- status: string2()
55072
+ status: string2().describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.")
55300
55073
  });
55301
55074
  });
55302
55075
 
@@ -55331,9 +55104,9 @@ var init_v2evalrunslistop = __esm(() => {
55331
55104
 
55332
55105
  // src/funcs/evalRunsV2EvalRunsList.ts
55333
55106
  function evalRunsV2EvalRunsList(client$, request, options) {
55334
- return new APIPromise($do9(client$, request, options));
55107
+ return new APIPromise($do7(client$, request, options));
55335
55108
  }
55336
- async function $do9(client$, request, options) {
55109
+ async function $do7(client$, request, options) {
55337
55110
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
55338
55111
  if (!parsed$.ok) {
55339
55112
  return [parsed$, { status: "invalid" }];
@@ -55407,12 +55180,12 @@ var init_evalRunsV2EvalRunsList = __esm(() => {
55407
55180
  });
55408
55181
 
55409
55182
  // src/mcp-server/tools/evalRunsV2EvalRunsList.ts
55410
- var args6, tool$evalRunsV2EvalRunsList;
55183
+ var args4, tool$evalRunsV2EvalRunsList;
55411
55184
  var init_evalRunsV2EvalRunsList2 = __esm(() => {
55412
55185
  init_evalRunsV2EvalRunsList();
55413
55186
  init_v2evalrunslistop();
55414
55187
  init_tools();
55415
- args6 = {
55188
+ args4 = {
55416
55189
  request: V2EvalRunsListRequest$zodSchema.optional()
55417
55190
  };
55418
55191
  tool$evalRunsV2EvalRunsList = {
@@ -55427,7 +55200,7 @@ Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with
55427
55200
  openWorldHint: false,
55428
55201
  readOnlyHint: true
55429
55202
  },
55430
- args: args6,
55203
+ args: args4,
55431
55204
  tool: async (client, args, ctx) => {
55432
55205
  const [result] = await evalRunsV2EvalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55433
55206
  if (!result.ok) {
@@ -55441,27 +55214,39 @@ Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with
55441
55214
  };
55442
55215
  });
55443
55216
 
55444
- // src/models/v2evalrunsretrieveop.ts
55445
- var V2EvalRunsRetrieveRequest$zodSchema, V2EvalRunsRetrieveResponse$zodSchema;
55446
- var init_v2evalrunsretrieveop = __esm(() => {
55217
+ // src/models/v2evalrunscancelop.ts
55218
+ var V2EvalRunsCancelRequest$zodSchema, V2EvalRunsCancelServiceUnavailableResponseBody$zodSchema, V2EvalRunsCancelConflictResponseBody$zodSchema, V2EvalRunsCancelNotFoundResponseBody$zodSchema, V2EvalRunsCancelResponse$zodSchema;
55219
+ var init_v2evalrunscancelop = __esm(() => {
55447
55220
  init_zod();
55448
55221
  init_httpvalidationerror();
55449
55222
  init_v2evalrun();
55450
- V2EvalRunsRetrieveRequest$zodSchema = object({
55223
+ V2EvalRunsCancelRequest$zodSchema = object({
55451
55224
  run_id: string2()
55452
55225
  });
55453
- V2EvalRunsRetrieveResponse$zodSchema = union([
55226
+ V2EvalRunsCancelServiceUnavailableResponseBody$zodSchema = object({
55227
+ detail: string2()
55228
+ }).describe("Eval run cancellation is temporarily unavailable.");
55229
+ V2EvalRunsCancelConflictResponseBody$zodSchema = object({
55230
+ detail: string2()
55231
+ }).describe("The eval run has already completed or failed.");
55232
+ V2EvalRunsCancelNotFoundResponseBody$zodSchema = object({
55233
+ detail: string2()
55234
+ }).describe("Eval run not found. Use the run ID returned when you started the eval.");
55235
+ V2EvalRunsCancelResponse$zodSchema = union([
55454
55236
  V2EvalRun$zodSchema,
55237
+ lazy(() => V2EvalRunsCancelNotFoundResponseBody$zodSchema),
55238
+ lazy(() => V2EvalRunsCancelConflictResponseBody$zodSchema),
55239
+ lazy(() => V2EvalRunsCancelServiceUnavailableResponseBody$zodSchema),
55455
55240
  HTTPValidationError$zodSchema
55456
55241
  ]);
55457
55242
  });
55458
55243
 
55459
- // src/funcs/evalRunsV2EvalRunsRetrieve.ts
55460
- function evalRunsV2EvalRunsRetrieve(client$, request, options) {
55461
- return new APIPromise($do10(client$, request, options));
55244
+ // src/funcs/evalsCancel.ts
55245
+ function evalsCancel(client$, request, options) {
55246
+ return new APIPromise($do8(client$, request, options));
55462
55247
  }
55463
- async function $do10(client$, request, options) {
55464
- const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
55248
+ async function $do8(client$, request, options) {
55249
+ const parsed$ = safeParse4(request, (value$) => V2EvalRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
55465
55250
  if (!parsed$.ok) {
55466
55251
  return [parsed$, { status: "invalid" }];
55467
55252
  }
@@ -55473,7 +55258,7 @@ async function $do10(client$, request, options) {
55473
55258
  charEncoding: "percent"
55474
55259
  })
55475
55260
  };
55476
- const path$ = pathToFunc("/v2/eval-runs/{run_id}")(pathParams$);
55261
+ const path$ = pathToFunc("/v2/eval-runs/{run_id}/cancel")(pathParams$);
55477
55262
  const headers$ = new Headers(compactMap({
55478
55263
  Accept: "application/json"
55479
55264
  }));
@@ -55482,7 +55267,7 @@ async function $do10(client$, request, options) {
55482
55267
  const context = {
55483
55268
  options: client$._options,
55484
55269
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
55485
- operationID: "v2_eval_runs_retrieve",
55270
+ operationID: "v2_eval_runs_cancel",
55486
55271
  oAuth2Scopes: null,
55487
55272
  resolvedSecurity: requestSecurity,
55488
55273
  securitySource: client$._options.security,
@@ -55497,7 +55282,7 @@ async function $do10(client$, request, options) {
55497
55282
  };
55498
55283
  const requestRes = client$._createRequest(context, {
55499
55284
  security: requestSecurity,
55500
- method: "GET",
55285
+ method: "POST",
55501
55286
  baseURL: options?.serverURL,
55502
55287
  path: path$,
55503
55288
  headers: headers$,
@@ -55524,40 +55309,40 @@ async function $do10(client$, request, options) {
55524
55309
  response: doResult.value
55525
55310
  }];
55526
55311
  }
55527
- var init_evalRunsV2EvalRunsRetrieve = __esm(() => {
55312
+ var init_evalsCancel = __esm(() => {
55528
55313
  init_encodings();
55529
55314
  init_primitives();
55530
55315
  init_schemas4();
55531
55316
  init_security();
55532
55317
  init_url();
55533
- init_v2evalrunsretrieveop();
55318
+ init_v2evalrunscancelop();
55534
55319
  init_async();
55535
55320
  });
55536
55321
 
55537
- // src/mcp-server/tools/evalRunsV2EvalRunsRetrieve.ts
55538
- var args7, tool$evalRunsV2EvalRunsRetrieve;
55539
- var init_evalRunsV2EvalRunsRetrieve2 = __esm(() => {
55540
- init_evalRunsV2EvalRunsRetrieve();
55541
- init_v2evalrunsretrieveop();
55322
+ // src/mcp-server/tools/evalsCancel.ts
55323
+ var args5, tool$evalsCancel;
55324
+ var init_evalsCancel2 = __esm(() => {
55325
+ init_evalsCancel();
55326
+ init_v2evalrunscancelop();
55542
55327
  init_tools();
55543
- args7 = {
55544
- request: V2EvalRunsRetrieveRequest$zodSchema
55328
+ args5 = {
55329
+ request: V2EvalRunsCancelRequest$zodSchema
55545
55330
  };
55546
- tool$evalRunsV2EvalRunsRetrieve = {
55547
- name: "eval-runs-v2-eval-runs-retrieve",
55548
- description: `Retrieve Run
55331
+ tool$evalsCancel = {
55332
+ name: "evals-cancel",
55333
+ description: `Cancel an eval run
55549
55334
 
55550
- Returns the status and progress of an eval job. Poll until the status reaches a terminal value.`,
55335
+ Marks an active eval run as cancelled and prevents queued attempts from starting. Running sandbox attempts are stopped asynchronously. Requests already sent to an external provider cannot be recalled, but any later response does not change the run from cancelled. Repeating this request for an already-cancelled run is safe.`,
55551
55336
  annotations: {
55552
55337
  title: "",
55553
55338
  destructiveHint: false,
55554
55339
  idempotentHint: false,
55555
55340
  openWorldHint: false,
55556
- readOnlyHint: true
55341
+ readOnlyHint: false
55557
55342
  },
55558
- args: args7,
55343
+ args: args5,
55559
55344
  tool: async (client, args, ctx) => {
55560
- const [result] = await evalRunsV2EvalRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55345
+ const [result] = await evalsCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55561
55346
  if (!result.ok) {
55562
55347
  return {
55563
55348
  content: [{ type: "text", text: result.error.message }],
@@ -55569,18 +55354,107 @@ Returns the status and progress of an eval job. Poll until the status reaches a
55569
55354
  };
55570
55355
  });
55571
55356
 
55357
+ // src/models/publicevalrunenvironment.ts
55358
+ var PublicEvalRunEnvironment$zodSchema;
55359
+ var init_publicevalrunenvironment = __esm(() => {
55360
+ init_zod();
55361
+ PublicEvalRunEnvironment$zodSchema = object({
55362
+ changed_since_queued: boolean2().nullable().optional().describe("True when the saved environment has been edited or deleted since the run was queued, so a rerun would use different values. Null when unknown or for inline environments."),
55363
+ id: string2().nullable().optional().describe("Environment ID, as listed by the environments operation."),
55364
+ inline: boolean2().default(false).describe("True when variables were supplied inline with the run request instead of from a saved environment."),
55365
+ name: string2().nullable().optional().describe("Environment name when the run was queued."),
55366
+ queued_at: string2().nullable().optional().describe("When the run was queued with this environment."),
55367
+ updated_at: string2().nullable().optional().describe("Environment version the run used: when its name or variables last changed before the run was queued. Null if the environment had not changed since versioning was introduced."),
55368
+ variable_names: array(string2()).optional().describe("Variable names supplied to the run. Values are never returned.")
55369
+ }).describe("Non-secret summary of the environment an eval run was queued with.");
55370
+ });
55371
+
55372
+ // src/models/publiccriterionverdict.ts
55373
+ var Verdict$zodSchema, PublicCriterionVerdict$zodSchema;
55374
+ var init_publiccriterionverdict = __esm(() => {
55375
+ init_zod();
55376
+ Verdict$zodSchema = _enum([
55377
+ "PASS",
55378
+ "FAIL",
55379
+ "NOT_VERIFIED"
55380
+ ]).describe("`PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.");
55381
+ PublicCriterionVerdict$zodSchema = object({
55382
+ criterion: string2().describe("One mandatory requirement from the judge criteria."),
55383
+ evidence: string2().nullable().optional().describe("Short evidence the judge gave for the verdict."),
55384
+ verdict: Verdict$zodSchema.describe("`PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.")
55385
+ });
55386
+ });
55387
+
55388
+ // src/models/publicgraderresult.ts
55389
+ var PublicGraderResult$zodSchema;
55390
+ var init_publicgraderresult = __esm(() => {
55391
+ init_zod();
55392
+ init_publiccriterionverdict();
55393
+ PublicGraderResult$zodSchema = object({
55394
+ criteria_verdicts: array(PublicCriterionVerdict$zodSchema).optional().describe("Judges only: a verdict for each mandatory requirement in the judge criteria. Empty for other checks and for runs graded before per-requirement verdicts were recorded."),
55395
+ deductions: array(string2()).optional().describe("Specific shortcomings the check recorded, even when it passed. A judge can pass with a score below 1 and still list deductions here; those checks do not appear in `failure_reasons`."),
55396
+ details: string2().nullable().optional().describe("Reasoning or check output explaining the verdict."),
55397
+ label: string2().nullable().optional().describe("Display name for the check, when the grader sets one."),
55398
+ name: string2().describe("Grader name as configured on the eval."),
55399
+ passed: boolean2().nullable().optional().describe("Whether this check passed."),
55400
+ score: number2().nullable().optional().describe("Score from 0 to 1 for checks that score partially, such as judges; null for pass/fail checks.")
55401
+ });
55402
+ });
55403
+
55404
+ // src/models/searchgroundingmode.ts
55405
+ var SearchGroundingMode$zodSchema;
55406
+ var init_searchgroundingmode = __esm(() => {
55407
+ init_zod();
55408
+ SearchGroundingMode$zodSchema = _enum([
55409
+ "disabled",
55410
+ "enabled",
55411
+ "default"
55412
+ ]).describe("Requested web-retrieval behavior for an eval run.");
55413
+ });
55414
+
55415
+ // src/models/v2evalresultsummary.ts
55416
+ var V2EvalResultSummary$zodSchema;
55417
+ var init_v2evalresultsummary = __esm(() => {
55418
+ init_zod();
55419
+ init_publicevalrunenvironment();
55420
+ init_publicgraderresult();
55421
+ init_searchgroundingmode();
55422
+ V2EvalResultSummary$zodSchema = object({
55423
+ agent: string2().nullable().optional().describe("Runnable agent combining the harness and model."),
55424
+ created_at: string2().nullable().optional(),
55425
+ environment: PublicEvalRunEnvironment$zodSchema.nullable().optional().describe("The environment this attempt used, without secret values. Null when the attempt had no environment."),
55426
+ eval_id: string2().nullable().optional(),
55427
+ failure_reasons: array(string2()).nullable().optional().describe("Checks that failed, listed even when the result passed overall. Deductions from checks that passed are in `grader_results[].deductions`, not here."),
55428
+ grader_results: array(PublicGraderResult$zodSchema).optional().describe("Per-check verdicts behind `score`, including deductions recorded by passing checks."),
55429
+ grounding_qualification_reason: string2().nullable().optional(),
55430
+ grounding_qualified: boolean2().nullable().optional().describe("Whether the attempt satisfied the requested grounding experiment. Null means the default mode was used or isolation could not be proven."),
55431
+ id: string2().describe("Result ID, not an eval job ID."),
55432
+ latency_ms: int().nullable().optional(),
55433
+ passed: boolean2().nullable().optional(),
55434
+ prompt: string2().nullable().optional(),
55435
+ prompt_index: int().default(0),
55436
+ repeat_index: int().default(0),
55437
+ score: number2().nullable().optional().describe("Score from 0 to 1."),
55438
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional(),
55439
+ search_observed: boolean2().nullable().optional(),
55440
+ web_retrieval_observed: boolean2().nullable().optional()
55441
+ });
55442
+ });
55443
+
55572
55444
  // src/models/v2evalrunanalysis.ts
55573
55445
  var V2EvalRunAnalysis$zodSchema;
55574
55446
  var init_v2evalrunanalysis = __esm(() => {
55575
55447
  init_zod();
55576
55448
  V2EvalRunAnalysis$zodSchema = object({
55577
- agent_id: string2().nullable().optional().describe("Runnable agent ID used for this concrete attempt."),
55449
+ agent: string2().nullable().optional().describe("Runnable agent used for this concrete attempt."),
55578
55450
  analysis: record(string2(), any()).optional().describe("Persisted eval_run_analysis payload, including verdict, outcome, findings, bottleneck, and analysis sections."),
55579
55451
  analysis_version: string2().nullable().optional().describe("Version of the analysis pipeline that produced this payload."),
55580
55452
  attempt_id: string2().describe("Child eval-attempt ID used to correlate the analysis with trace events."),
55581
55453
  created_at: string2().nullable().optional(),
55582
55454
  eval_id: string2().nullable().optional().describe("Public eval definition ID, not the backing executable eval ID."),
55583
55455
  id: string2().describe("Persisted eval analysis ID."),
55456
+ prompt: string2().nullable().optional().describe("Exact task prompt used for this concrete attempt."),
55457
+ prompt_index: int().default(0).describe("Zero-based prompt index within the submitted simulation."),
55584
55458
  repeat_index: int().default(0).describe("Zero-based repeat index within the submitted run."),
55585
55459
  result_id: string2().describe("Concrete eval result ID analyzed for this attempt."),
55586
55460
  updated_at: string2().nullable().optional(),
@@ -55588,46 +55462,64 @@ var init_v2evalrunanalysis = __esm(() => {
55588
55462
  });
55589
55463
  });
55590
55464
 
55591
- // src/models/v2evalrunanalysisresponse.ts
55592
- var V2EvalRunAnalysisResponse$zodSchema;
55593
- var init_v2evalrunanalysisresponse = __esm(() => {
55465
+ // src/models/v2evalrundetail.ts
55466
+ var V2EvalRunDetail$zodSchema;
55467
+ var init_v2evalrundetail = __esm(() => {
55594
55468
  init_zod();
55595
55469
  init_publicevalrunprogress();
55470
+ init_v2evalresultsummary();
55596
55471
  init_v2evalrunanalysis();
55597
- V2EvalRunAnalysisResponse$zodSchema = object({
55598
- data: array(V2EvalRunAnalysis$zodSchema).optional(),
55472
+ V2EvalRunDetail$zodSchema = object({
55473
+ agent: array(string2()).optional().describe("Runnable agents selected for this simulation."),
55474
+ analysis: array(V2EvalRunAnalysis$zodSchema).optional().describe("Per-attempt analysis for this run. Empty until an attempt has been analyzed."),
55475
+ attempt_count: int().default(1).describe("Total concrete attempts after all fan-out dimensions."),
55476
+ completed_at: string2().nullable().optional(),
55477
+ configuration_id: string2().nullable().optional(),
55478
+ created_at: string2().nullable().optional(),
55479
+ dispatch_id: string2().nullable().optional(),
55599
55480
  error: string2().nullable().optional(),
55481
+ estimated_cost: number2().nullable().optional(),
55482
+ eval_id: string2().nullable().optional().describe("Saved eval definition ID, including one created by a direct run."),
55483
+ eval_name: string2().nullable().optional().describe("Display name captured for the eval when the run was created."),
55484
+ id: string2().describe("Run ID to use when polling eval-run status."),
55485
+ job_id: string2().describe("Alias of `id` for the durable parent job."),
55486
+ persona: string2().nullable().optional().describe("Perspective applied to every attempt in this simulation."),
55600
55487
  progress: PublicEvalRunProgress$zodSchema.optional(),
55601
- run_id: string2(),
55602
- status: string2()
55488
+ prompt_count: int().default(1).describe("Number of prompts included in the simulation."),
55489
+ results: array(V2EvalResultSummary$zodSchema).optional().describe("Per-attempt outcomes for this run. Empty while the run is active; populated as attempts finish."),
55490
+ results_truncated: boolean2().default(false).describe("True when the run produced more results than the inline cap. The remaining results are not included in this response."),
55491
+ runs: int().default(1).describe("Independent attempts requested for every prompt-agent pair."),
55492
+ stage: string2().nullable().optional(),
55493
+ started_at: string2().nullable().optional(),
55494
+ status: string2().describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.")
55603
55495
  });
55604
55496
  });
55605
55497
 
55606
- // src/models/v2evalrunsanalysisop.ts
55607
- var V2EvalRunsAnalysisRequest$zodSchema, V2EvalRunsAnalysisResponseBody$zodSchema, V2EvalRunsAnalysisResponse$zodSchema;
55608
- var init_v2evalrunsanalysisop = __esm(() => {
55498
+ // src/models/v2evalrunsretrieveop.ts
55499
+ var V2EvalRunsRetrieveRequest$zodSchema, V2EvalRunsRetrieveResponseBody$zodSchema, V2EvalRunsRetrieveResponse$zodSchema;
55500
+ var init_v2evalrunsretrieveop = __esm(() => {
55609
55501
  init_zod();
55610
55502
  init_httpvalidationerror();
55611
- init_v2evalrunanalysisresponse();
55612
- V2EvalRunsAnalysisRequest$zodSchema = object({
55503
+ init_v2evalrundetail();
55504
+ V2EvalRunsRetrieveRequest$zodSchema = object({
55613
55505
  run_id: string2()
55614
55506
  });
55615
- V2EvalRunsAnalysisResponseBody$zodSchema = object({
55507
+ V2EvalRunsRetrieveResponseBody$zodSchema = object({
55616
55508
  detail: string2()
55617
55509
  }).describe("Eval run not found. Use the run ID returned when you started the eval.");
55618
- V2EvalRunsAnalysisResponse$zodSchema = union([
55619
- V2EvalRunAnalysisResponse$zodSchema,
55620
- lazy(() => V2EvalRunsAnalysisResponseBody$zodSchema),
55510
+ V2EvalRunsRetrieveResponse$zodSchema = union([
55511
+ V2EvalRunDetail$zodSchema,
55512
+ lazy(() => V2EvalRunsRetrieveResponseBody$zodSchema),
55621
55513
  HTTPValidationError$zodSchema
55622
55514
  ]);
55623
55515
  });
55624
55516
 
55625
- // src/funcs/evalsAnalysis.ts
55626
- function evalsAnalysis(client$, request, options) {
55627
- return new APIPromise($do11(client$, request, options));
55517
+ // src/funcs/evalsGet.ts
55518
+ function evalsGet(client$, request, options) {
55519
+ return new APIPromise($do9(client$, request, options));
55628
55520
  }
55629
- async function $do11(client$, request, options) {
55630
- const parsed$ = safeParse4(request, (value$) => V2EvalRunsAnalysisRequest$zodSchema.parse(value$), "Input validation failed");
55521
+ async function $do9(client$, request, options) {
55522
+ const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
55631
55523
  if (!parsed$.ok) {
55632
55524
  return [parsed$, { status: "invalid" }];
55633
55525
  }
@@ -55639,7 +55531,7 @@ async function $do11(client$, request, options) {
55639
55531
  charEncoding: "percent"
55640
55532
  })
55641
55533
  };
55642
- const path$ = pathToFunc("/v2/eval-runs/{run_id}/analysis")(pathParams$);
55534
+ const path$ = pathToFunc("/v2/eval-runs/{run_id}")(pathParams$);
55643
55535
  const headers$ = new Headers(compactMap({
55644
55536
  Accept: "application/json"
55645
55537
  }));
@@ -55648,7 +55540,7 @@ async function $do11(client$, request, options) {
55648
55540
  const context = {
55649
55541
  options: client$._options,
55650
55542
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
55651
- operationID: "v2_eval_runs_analysis",
55543
+ operationID: "v2_eval_runs_retrieve",
55652
55544
  oAuth2Scopes: null,
55653
55545
  resolvedSecurity: requestSecurity,
55654
55546
  securitySource: client$._options.security,
@@ -55690,30 +55582,30 @@ async function $do11(client$, request, options) {
55690
55582
  response: doResult.value
55691
55583
  }];
55692
55584
  }
55693
- var init_evalsAnalysis = __esm(() => {
55585
+ var init_evalsGet = __esm(() => {
55694
55586
  init_encodings();
55695
55587
  init_primitives();
55696
55588
  init_schemas4();
55697
55589
  init_security();
55698
55590
  init_url();
55699
- init_v2evalrunsanalysisop();
55591
+ init_v2evalrunsretrieveop();
55700
55592
  init_async();
55701
55593
  });
55702
55594
 
55703
- // src/mcp-server/tools/evalsAnalysis.ts
55704
- var args8, tool$evalsAnalysis;
55705
- var init_evalsAnalysis2 = __esm(() => {
55706
- init_evalsAnalysis();
55707
- init_v2evalrunsanalysisop();
55595
+ // src/mcp-server/tools/evalsGet.ts
55596
+ var args6, tool$evalsGet;
55597
+ var init_evalsGet2 = __esm(() => {
55598
+ init_evalsGet();
55599
+ init_v2evalrunsretrieveop();
55708
55600
  init_tools();
55709
- args8 = {
55710
- request: V2EvalRunsAnalysisRequest$zodSchema
55601
+ args6 = {
55602
+ request: V2EvalRunsRetrieveRequest$zodSchema
55711
55603
  };
55712
- tool$evalsAnalysis = {
55713
- name: "evals-analysis",
55714
- description: `Retrieve eval run analysis
55604
+ tool$evalsGet = {
55605
+ name: "evals-get",
55606
+ description: `Retrieve an eval run
55715
55607
 
55716
- Returns the persisted analysis produced for each completed attempt in one eval run. The analysis includes the verdict, outcome explanation, findings, bottleneck, and analysis sections. Active runs return the analysis available so far together with current run status and progress.`,
55608
+ Returns the run's current status and progress. Once its attempts finish, the response also includes their results and analysis. Poll this until the status reaches a terminal value. Use the trace operation for the raw execution event log, or the monitor operation to follow a run live.`,
55717
55609
  annotations: {
55718
55610
  title: "",
55719
55611
  destructiveHint: false,
@@ -55721,9 +55613,9 @@ Returns the persisted analysis produced for each completed attempt in one eval r
55721
55613
  openWorldHint: false,
55722
55614
  readOnlyHint: true
55723
55615
  },
55724
- args: args8,
55616
+ args: args6,
55725
55617
  tool: async (client, args, ctx) => {
55726
- const [result] = await evalsAnalysis(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55618
+ const [result] = await evalsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55727
55619
  if (!result.ok) {
55728
55620
  return {
55729
55621
  content: [{ type: "text", text: result.error.message }],
@@ -55735,27 +55627,76 @@ Returns the persisted analysis produced for each completed attempt in one eval r
55735
55627
  };
55736
55628
  });
55737
55629
 
55630
+ // src/models/v2inlinemcpdefinition.ts
55631
+ var Type$zodSchema, V2InlineMcpDefinition$zodSchema;
55632
+ var init_v2inlinemcpdefinition = __esm(() => {
55633
+ init_zod();
55634
+ Type$zodSchema = _enum([
55635
+ "http",
55636
+ "sse",
55637
+ "stdio"
55638
+ ]);
55639
+ V2InlineMcpDefinition$zodSchema = object({
55640
+ args: array(string2()).optional(),
55641
+ command: string2().nullable().optional().describe("Executable command for a `stdio` MCP server."),
55642
+ env: record(string2(), string2()).optional().describe("Environment mapping for a `stdio` MCP server. Values may reference run secrets with `${VARIABLE_NAME}`."),
55643
+ headers: record(string2(), string2()).optional().describe("HTTP headers. Reference run secrets with `${VARIABLE_NAME}` instead of embedding credentials."),
55644
+ name: string2().describe("Stable server name used in the selected agent's MCP config."),
55645
+ type: Type$zodSchema,
55646
+ url: string2().nullable().optional().describe("HTTPS endpoint for an `http` or `sse` MCP server.")
55647
+ });
55648
+ });
55649
+
55650
+ // src/models/v2savedmcpreference.ts
55651
+ var V2SavedMcpReference$zodSchema;
55652
+ var init_v2savedmcpreference = __esm(() => {
55653
+ init_zod();
55654
+ V2SavedMcpReference$zodSchema = object({
55655
+ id: string2().describe("Saved MCP server ID from `GET /v2/mcp-servers`.")
55656
+ });
55657
+ });
55658
+
55738
55659
  // src/models/createv2evalrunrequest.ts
55739
- var CreateV2EvalRunRequest$zodSchema;
55660
+ var CreateV2EvalRunRequestMcp$zodSchema, CreateV2EvalRunRequest$zodSchema;
55740
55661
  var init_createv2evalrunrequest = __esm(() => {
55741
55662
  init_zod();
55663
+ init_searchgroundingmode();
55664
+ init_v2inlinemcpdefinition();
55665
+ init_v2savedmcpreference();
55666
+ CreateV2EvalRunRequestMcp$zodSchema = union([
55667
+ V2InlineMcpDefinition$zodSchema,
55668
+ V2SavedMcpReference$zodSchema
55669
+ ]);
55742
55670
  CreateV2EvalRunRequest$zodSchema = object({
55743
- agent_id: string2().describe("Required in both request forms. Runnable agent ID from `GET /v2/agents`."),
55744
- configuration_id: string2().optional().describe("Saved-run form only. Saved runtime configuration; required when `eval_id` is provided."),
55745
- env: record(string2(), string2()).optional().describe("Direct create-and-run form only. Write-only environment variables; values are stored only in the queued job's private configuration."),
55671
+ agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`. Required unless the saved eval already has agents. CLI clients expose repeatable `--agent`."),
55672
+ cleanup_commands: array(string2()).nullable().optional().describe("Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. In saved mode, an explicit empty array disables saved cleanup commands for this launch. CLI clients expose repeatable `--cleanup-command`."),
55673
+ clis: array(string2()).nullable().optional().describe("Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from `GET /v2/clis`; every other value is run as an installation command. In saved mode, an explicit empty array disables saved CLIs for this launch. CLI clients expose repeatable `--cli`."),
55674
+ configuration_id: string2().optional().describe("Saved-run form only. Optional saved repository, environment, skills, and legacy tool configuration."),
55675
+ env: record(string2(), string2()).optional().describe("Write-only environment variables for this launch. Values are stored only in the queued job's private configuration."),
55746
55676
  eval_id: string2().optional().describe("Saved-run form only. Existing eval definition to run. Omit this field to use the direct create-and-run form."),
55747
- judges: array(string2()).optional().describe("Direct create-and-run form only. Provide at least one success criterion. CLI clients may expose this string array as a repeatable `--judge` flag."),
55748
- prompt: string2().optional().describe("Direct create-and-run form only. Task prompt; required when `eval_id` is omitted."),
55677
+ judges: array(string2()).nullable().optional().describe("Success criteria. Required in direct mode; in saved mode, replaces saved judges for this launch. CLI clients expose repeatable `--judge`."),
55678
+ mcps: array(union([
55679
+ V2InlineMcpDefinition$zodSchema,
55680
+ V2SavedMcpReference$zodSchema
55681
+ ])).nullable().optional().describe("Saved MCP references or inline portable definitions. In saved mode, an explicit empty array disables saved MCPs for this launch."),
55682
+ name: string2().optional().describe("Direct create-and-run form only. Display name for the durable eval. Defaults to the first prompt."),
55683
+ persona: string2().optional().describe("Optional perspective for every attempt in this launch. It does not modify prompts or add a fan-out dimension."),
55684
+ prompts: array(string2()).nullable().optional().describe("Task prompts. Required in direct mode; in saved mode, replaces saved prompts for this launch. CLI clients expose repeatable `--prompt`."),
55749
55685
  repository: string2().optional().describe("Direct create-and-run form only. A saved repository ID, built-in alias such as `nextjs-starter`, or a public GitHub HTTPS URL."),
55750
- skills: array(string2()).optional().describe("Additional public skill packages to install before the agent starts in either request form, using GitHub `owner/repository` references such as `resend/resend-skills`. CLI clients may expose this string array as a repeatable `--skill` flag.")
55751
- }).describe("Start an eval run using one of two flat request forms. Saved runs require `eval_id`, `configuration_id`, and `agent_id`. Direct create-and-run requests require `prompt`, at least one item in `judges`, and `agent_id`. Do not combine saved-run and direct-run fields; no separate mode field is required.");
55686
+ runs: int().optional().describe("Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run."),
55687
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web-retrieval policy for this launch. Overrides the selected configuration or saved eval when provided; direct runs default to `default`."),
55688
+ setup_commands: array(string2()).nullable().optional().describe("Shell commands run sequentially in the prepared repository before the agent starts. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable `--setup-command`."),
55689
+ skill_ids: array(string2()).optional().describe("Direct create-and-run form only. Reusable skill IDs from `GET /v2/skills` to install before the agent starts."),
55690
+ skills: array(string2()).optional().describe("Additional public skill packages to install before the agent starts in either request form, using GitHub `owner/repository` references such as `resend/resend-skills`. CLI clients may expose this string array as a repeatable `--skill` flag."),
55691
+ tags: array(string2()).optional().describe("Direct create-and-run form only. Optional labels saved on the created eval. CLI clients may expose this string array as a repeatable `--tag` flag.")
55692
+ }).describe("Start an eval run using one of two flat request forms. Saved runs require `eval_id` and use saved simulation defaults unless the request replaces them. Direct create-and-run requests require `prompts`, `judges`, and `agent`. No separate mode field is required.");
55752
55693
  });
55753
55694
 
55754
55695
  // src/funcs/evalsRun.ts
55755
55696
  function evalsRun(client$, request, options) {
55756
- return new APIPromise($do12(client$, request, options));
55697
+ return new APIPromise($do10(client$, request, options));
55757
55698
  }
55758
- async function $do12(client$, request, options) {
55699
+ async function $do10(client$, request, options) {
55759
55700
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
55760
55701
  if (!parsed$.ok) {
55761
55702
  return [parsed$, { status: "invalid" }];
@@ -55825,26 +55766,28 @@ var init_evalsRun = __esm(() => {
55825
55766
  });
55826
55767
 
55827
55768
  // src/mcp-server/tools/evalsRun.ts
55828
- var args9, tool$evalsRun;
55769
+ var args7, tool$evalsRun;
55829
55770
  var init_evalsRun2 = __esm(() => {
55830
55771
  init_evalsRun();
55831
55772
  init_createv2evalrunrequest();
55832
55773
  init_tools();
55833
- args9 = {
55774
+ args7 = {
55834
55775
  request: CreateV2EvalRunRequest$zodSchema
55835
55776
  };
55836
55777
  tool$evalsRun = {
55837
55778
  name: "evals-run",
55838
55779
  description: `Start an eval run
55839
55780
 
55840
- Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value.
55781
+ Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.
55841
55782
 
55842
55783
  Send one of these flat request forms:
55843
55784
 
55844
- - **Saved eval:** provide \`eval_id\`, \`configuration_id\`, and \`agent_id\`.
55845
- - **Direct create-and-run:** provide \`prompt\`, \`judges\`, and \`agent_id\`. You may also provide a repository, write-only environment variables, and public skill packages.
55785
+ - **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
55786
+ - **Direct create-and-run:** provide \`prompts\`, \`judges\`, and \`agent\`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.
55787
+
55788
+ The run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate \`mode\` field is required. If the organization lacks the estimated credits, the request fails with \`402\` before dispatching work.
55846
55789
 
55847
- Do not combine saved-run and direct-run fields. No separate \`mode\` field is required.`,
55790
+ A saved or inline environment containing an empty or placeholder credential is rejected with \`400\` before any evaluation is dispatched.`,
55848
55791
  annotations: {
55849
55792
  title: "",
55850
55793
  destructiveHint: false,
@@ -55852,7 +55795,7 @@ Do not combine saved-run and direct-run fields. No separate \`mode\` field is re
55852
55795
  openWorldHint: false,
55853
55796
  readOnlyHint: false
55854
55797
  },
55855
- args: args9,
55798
+ args: args7,
55856
55799
  tool: async (client, args, ctx) => {
55857
55800
  const [result] = await evalsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55858
55801
  if (!result.ok) {
@@ -55871,8 +55814,7 @@ var V2EvalRunTraceEvent$zodSchema;
55871
55814
  var init_v2evalruntraceevent = __esm(() => {
55872
55815
  init_zod();
55873
55816
  V2EvalRunTraceEvent$zodSchema = object({
55874
- agent_id: string2().nullable().optional(),
55875
- agent_name: string2().nullable().optional(),
55817
+ agent: string2().nullable().optional(),
55876
55818
  category: string2(),
55877
55819
  child_job_id: string2().describe("Child eval-attempt ID associated with the event."),
55878
55820
  configuration_id: string2().nullable().optional(),
@@ -55881,9 +55823,11 @@ var init_v2evalruntraceevent = __esm(() => {
55881
55823
  eval_name: string2().nullable().optional(),
55882
55824
  event_id: int(),
55883
55825
  message: string2(),
55826
+ prompt_index: int().default(0),
55827
+ repeat_index: int().default(0),
55884
55828
  run_id: string2(),
55885
55829
  timestamp: string2().nullable().optional(),
55886
- type: string2()
55830
+ type: string2().describe("Event type. Events are not tool invocations: one invocation usually emits a `tool_call` event and a `tool_result` event, and can emit extra `tool_call` updates as its arguments stream. Count invocations with the result's `tool_calls`, not with trace events.")
55887
55831
  });
55888
55832
  });
55889
55833
 
@@ -55927,9 +55871,9 @@ var init_v2evalrunstraceop = __esm(() => {
55927
55871
 
55928
55872
  // src/funcs/evalsTrace.ts
55929
55873
  function evalsTrace(client$, request, options) {
55930
- return new APIPromise($do13(client$, request, options));
55874
+ return new APIPromise($do11(client$, request, options));
55931
55875
  }
55932
- async function $do13(client$, request, options) {
55876
+ async function $do11(client$, request, options) {
55933
55877
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsTraceRequest$zodSchema.parse(value$), "Input validation failed");
55934
55878
  if (!parsed$.ok) {
55935
55879
  return [parsed$, { status: "invalid" }];
@@ -56009,12 +55953,12 @@ var init_evalsTrace = __esm(() => {
56009
55953
  });
56010
55954
 
56011
55955
  // src/mcp-server/tools/evalsTrace.ts
56012
- var args10, tool$evalsTrace;
55956
+ var args8, tool$evalsTrace;
56013
55957
  var init_evalsTrace2 = __esm(() => {
56014
55958
  init_evalsTrace();
56015
55959
  init_v2evalrunstraceop();
56016
55960
  init_tools();
56017
- args10 = {
55961
+ args8 = {
56018
55962
  request: V2EvalRunsTraceRequest$zodSchema
56019
55963
  };
56020
55964
  tool$evalsTrace = {
@@ -56029,7 +55973,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
56029
55973
  openWorldHint: false,
56030
55974
  readOnlyHint: true
56031
55975
  },
56032
- args: args10,
55976
+ args: args8,
56033
55977
  tool: async (client, args, ctx) => {
56034
55978
  const [result] = await evalsTrace(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56035
55979
  if (!result.ok) {
@@ -56047,6 +55991,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
56047
55991
  var CreateV2EvalConfigurationRequest$zodSchema;
56048
55992
  var init_createv2evalconfigurationrequest = __esm(() => {
56049
55993
  init_zod();
55994
+ init_searchgroundingmode();
56050
55995
  CreateV2EvalConfigurationRequest$zodSchema = object({
56051
55996
  cli_ids: array(string2()).optional(),
56052
55997
  environment_id: string2().optional(),
@@ -56054,6 +55999,7 @@ var init_createv2evalconfigurationrequest = __esm(() => {
56054
55999
  mcp_server_ids: array(string2()).optional(),
56055
56000
  name: string2(),
56056
56001
  repository_id: string2().optional(),
56002
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
56057
56003
  skill_ids: array(string2()).optional(),
56058
56004
  skills: array(string2()).optional().describe("Public skill packages saved with this configuration, using GitHub `owner/repository` references such as `resend/resend-skills`.")
56059
56005
  });
@@ -56063,6 +56009,7 @@ var init_createv2evalconfigurationrequest = __esm(() => {
56063
56009
  var V2EvalConfiguration$zodSchema;
56064
56010
  var init_v2evalconfiguration = __esm(() => {
56065
56011
  init_zod();
56012
+ init_searchgroundingmode();
56066
56013
  V2EvalConfiguration$zodSchema = object({
56067
56014
  cli_ids: array(string2()).optional(),
56068
56015
  created_at: string2().nullable().optional(),
@@ -56073,6 +56020,7 @@ var init_v2evalconfiguration = __esm(() => {
56073
56020
  mcp_server_ids: array(string2()).optional(),
56074
56021
  name: string2(),
56075
56022
  repository_id: string2().nullable().optional(),
56023
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
56076
56024
  skill_ids: array(string2()).optional(),
56077
56025
  skills: array(string2()).optional().describe("Public GitHub `owner/repository` skill packages installed for this configuration."),
56078
56026
  updated_at: string2().nullable().optional()
@@ -56098,9 +56046,9 @@ var init_v2evalconfigurationscreateop = __esm(() => {
56098
56046
 
56099
56047
  // src/funcs/evalsV2EvalConfigurationsCreate.ts
56100
56048
  function evalsV2EvalConfigurationsCreate(client$, request, options) {
56101
- return new APIPromise($do14(client$, request, options));
56049
+ return new APIPromise($do12(client$, request, options));
56102
56050
  }
56103
- async function $do14(client$, request, options) {
56051
+ async function $do12(client$, request, options) {
56104
56052
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsCreateRequest$zodSchema.parse(value$), "Input validation failed");
56105
56053
  if (!parsed$.ok) {
56106
56054
  return [parsed$, { status: "invalid" }];
@@ -56176,12 +56124,12 @@ var init_evalsV2EvalConfigurationsCreate = __esm(() => {
56176
56124
  });
56177
56125
 
56178
56126
  // src/mcp-server/tools/evalsV2EvalConfigurationsCreate.ts
56179
- var args11, tool$evalsV2EvalConfigurationsCreate;
56127
+ var args9, tool$evalsV2EvalConfigurationsCreate;
56180
56128
  var init_evalsV2EvalConfigurationsCreate2 = __esm(() => {
56181
56129
  init_evalsV2EvalConfigurationsCreate();
56182
56130
  init_v2evalconfigurationscreateop();
56183
56131
  init_tools();
56184
- args11 = {
56132
+ args9 = {
56185
56133
  request: V2EvalConfigurationsCreateRequest$zodSchema
56186
56134
  };
56187
56135
  tool$evalsV2EvalConfigurationsCreate = {
@@ -56196,7 +56144,7 @@ Creates a saved runtime configuration that pairs an eval with a repository, envi
56196
56144
  openWorldHint: false,
56197
56145
  readOnlyHint: false
56198
56146
  },
56199
- args: args11,
56147
+ args: args9,
56200
56148
  tool: async (client, args, ctx) => {
56201
56149
  const [result] = await evalsV2EvalConfigurationsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56202
56150
  if (!result.ok) {
@@ -56228,9 +56176,9 @@ var init_v2evalconfigurationsdeleteop = __esm(() => {
56228
56176
 
56229
56177
  // src/funcs/evalsV2EvalConfigurationsDelete.ts
56230
56178
  function evalsV2EvalConfigurationsDelete(client$, request, options) {
56231
- return new APIPromise($do15(client$, request, options));
56179
+ return new APIPromise($do13(client$, request, options));
56232
56180
  }
56233
- async function $do15(client$, request, options) {
56181
+ async function $do13(client$, request, options) {
56234
56182
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
56235
56183
  if (!parsed$.ok) {
56236
56184
  return [parsed$, { status: "invalid" }];
@@ -56306,12 +56254,12 @@ var init_evalsV2EvalConfigurationsDelete = __esm(() => {
56306
56254
  });
56307
56255
 
56308
56256
  // src/mcp-server/tools/evalsV2EvalConfigurationsDelete.ts
56309
- var args12, tool$evalsV2EvalConfigurationsDelete;
56257
+ var args10, tool$evalsV2EvalConfigurationsDelete;
56310
56258
  var init_evalsV2EvalConfigurationsDelete2 = __esm(() => {
56311
56259
  init_evalsV2EvalConfigurationsDelete();
56312
56260
  init_v2evalconfigurationsdeleteop();
56313
56261
  init_tools();
56314
- args12 = {
56262
+ args10 = {
56315
56263
  request: V2EvalConfigurationsDeleteRequest$zodSchema
56316
56264
  };
56317
56265
  tool$evalsV2EvalConfigurationsDelete = {
@@ -56326,7 +56274,7 @@ Permanently deletes an eval configuration and returns its last saved state.`,
56326
56274
  openWorldHint: false,
56327
56275
  readOnlyHint: false
56328
56276
  },
56329
- args: args12,
56277
+ args: args10,
56330
56278
  tool: async (client, args, ctx) => {
56331
56279
  const [result] = await evalsV2EvalConfigurationsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56332
56280
  if (!result.ok) {
@@ -56368,9 +56316,9 @@ var init_v2evalconfigurationslistop = __esm(() => {
56368
56316
 
56369
56317
  // src/funcs/evalsV2EvalConfigurationsList.ts
56370
56318
  function evalsV2EvalConfigurationsList(client$, request, options) {
56371
- return new APIPromise($do16(client$, request, options));
56319
+ return new APIPromise($do14(client$, request, options));
56372
56320
  }
56373
- async function $do16(client$, request, options) {
56321
+ async function $do14(client$, request, options) {
56374
56322
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsListRequest$zodSchema.parse(value$), "Input validation failed");
56375
56323
  if (!parsed$.ok) {
56376
56324
  return [parsed$, { status: "invalid" }];
@@ -56445,12 +56393,12 @@ var init_evalsV2EvalConfigurationsList = __esm(() => {
56445
56393
  });
56446
56394
 
56447
56395
  // src/mcp-server/tools/evalsV2EvalConfigurationsList.ts
56448
- var args13, tool$evalsV2EvalConfigurationsList;
56396
+ var args11, tool$evalsV2EvalConfigurationsList;
56449
56397
  var init_evalsV2EvalConfigurationsList2 = __esm(() => {
56450
56398
  init_evalsV2EvalConfigurationsList();
56451
56399
  init_v2evalconfigurationslistop();
56452
56400
  init_tools();
56453
- args13 = {
56401
+ args11 = {
56454
56402
  request: V2EvalConfigurationsListRequest$zodSchema
56455
56403
  };
56456
56404
  tool$evalsV2EvalConfigurationsList = {
@@ -56465,7 +56413,7 @@ Returns the saved runtime configurations for an eval, including repository, envi
56465
56413
  openWorldHint: false,
56466
56414
  readOnlyHint: true
56467
56415
  },
56468
- args: args13,
56416
+ args: args11,
56469
56417
  tool: async (client, args, ctx) => {
56470
56418
  const [result] = await evalsV2EvalConfigurationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56471
56419
  if (!result.ok) {
@@ -56497,9 +56445,9 @@ var init_v2evalconfigurationsretrieveop = __esm(() => {
56497
56445
 
56498
56446
  // src/funcs/evalsV2EvalConfigurationsRetrieve.ts
56499
56447
  function evalsV2EvalConfigurationsRetrieve(client$, request, options) {
56500
- return new APIPromise($do17(client$, request, options));
56448
+ return new APIPromise($do15(client$, request, options));
56501
56449
  }
56502
- async function $do17(client$, request, options) {
56450
+ async function $do15(client$, request, options) {
56503
56451
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
56504
56452
  if (!parsed$.ok) {
56505
56453
  return [parsed$, { status: "invalid" }];
@@ -56575,12 +56523,12 @@ var init_evalsV2EvalConfigurationsRetrieve = __esm(() => {
56575
56523
  });
56576
56524
 
56577
56525
  // src/mcp-server/tools/evalsV2EvalConfigurationsRetrieve.ts
56578
- var args14, tool$evalsV2EvalConfigurationsRetrieve;
56526
+ var args12, tool$evalsV2EvalConfigurationsRetrieve;
56579
56527
  var init_evalsV2EvalConfigurationsRetrieve2 = __esm(() => {
56580
56528
  init_evalsV2EvalConfigurationsRetrieve();
56581
56529
  init_v2evalconfigurationsretrieveop();
56582
56530
  init_tools();
56583
- args14 = {
56531
+ args12 = {
56584
56532
  request: V2EvalConfigurationsRetrieveRequest$zodSchema
56585
56533
  };
56586
56534
  tool$evalsV2EvalConfigurationsRetrieve = {
@@ -56595,7 +56543,7 @@ Returns one saved configuration for an eval.`,
56595
56543
  openWorldHint: false,
56596
56544
  readOnlyHint: true
56597
56545
  },
56598
- args: args14,
56546
+ args: args12,
56599
56547
  tool: async (client, args, ctx) => {
56600
56548
  const [result] = await evalsV2EvalConfigurationsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56601
56549
  if (!result.ok) {
@@ -56613,6 +56561,7 @@ Returns one saved configuration for an eval.`,
56613
56561
  var UpdateV2EvalConfigurationRequest$zodSchema;
56614
56562
  var init_updatev2evalconfigurationrequest = __esm(() => {
56615
56563
  init_zod();
56564
+ init_searchgroundingmode();
56616
56565
  UpdateV2EvalConfigurationRequest$zodSchema = object({
56617
56566
  cli_ids: array(string2()).nullable().optional(),
56618
56567
  environment_id: string2().optional(),
@@ -56620,6 +56569,7 @@ var init_updatev2evalconfigurationrequest = __esm(() => {
56620
56569
  mcp_server_ids: array(string2()).nullable().optional(),
56621
56570
  name: string2().optional(),
56622
56571
  repository_id: string2().optional(),
56572
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Replacement web-retrieval policy. Omit it to keep the saved value."),
56623
56573
  skill_ids: array(string2()).nullable().optional(),
56624
56574
  skills: array(string2()).nullable().optional().describe("Public skill packages saved with this configuration, using GitHub `owner/repository` references.")
56625
56575
  });
@@ -56645,9 +56595,9 @@ var init_v2evalconfigurationsupdateop = __esm(() => {
56645
56595
 
56646
56596
  // src/funcs/evalsV2EvalConfigurationsUpdate.ts
56647
56597
  function evalsV2EvalConfigurationsUpdate(client$, request, options) {
56648
- return new APIPromise($do18(client$, request, options));
56598
+ return new APIPromise($do16(client$, request, options));
56649
56599
  }
56650
- async function $do18(client$, request, options) {
56600
+ async function $do16(client$, request, options) {
56651
56601
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
56652
56602
  if (!parsed$.ok) {
56653
56603
  return [parsed$, { status: "invalid" }];
@@ -56724,12 +56674,12 @@ var init_evalsV2EvalConfigurationsUpdate = __esm(() => {
56724
56674
  });
56725
56675
 
56726
56676
  // src/mcp-server/tools/evalsV2EvalConfigurationsUpdate.ts
56727
- var args15, tool$evalsV2EvalConfigurationsUpdate;
56677
+ var args13, tool$evalsV2EvalConfigurationsUpdate;
56728
56678
  var init_evalsV2EvalConfigurationsUpdate2 = __esm(() => {
56729
56679
  init_evalsV2EvalConfigurationsUpdate();
56730
56680
  init_v2evalconfigurationsupdateop();
56731
56681
  init_tools();
56732
- args15 = {
56682
+ args13 = {
56733
56683
  request: V2EvalConfigurationsUpdateRequest$zodSchema
56734
56684
  };
56735
56685
  tool$evalsV2EvalConfigurationsUpdate = {
@@ -56744,7 +56694,7 @@ Updates an eval configuration; omitted fields remain unchanged.`,
56744
56694
  openWorldHint: false,
56745
56695
  readOnlyHint: false
56746
56696
  },
56747
- args: args15,
56697
+ args: args13,
56748
56698
  tool: async (client, args, ctx) => {
56749
56699
  const [result] = await evalsV2EvalConfigurationsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56750
56700
  if (!result.ok) {
@@ -56759,31 +56709,40 @@ Updates an eval configuration; omitted fields remain unchanged.`,
56759
56709
  });
56760
56710
 
56761
56711
  // src/models/createv2evalrequest.ts
56762
- var CreateV2EvalRequestType$zodSchema, CreateV2EvalRequest$zodSchema;
56712
+ var CreateV2EvalRequestMcp$zodSchema, CreateV2EvalRequest$zodSchema;
56763
56713
  var init_createv2evalrequest = __esm(() => {
56764
56714
  init_zod();
56765
- CreateV2EvalRequestType$zodSchema = _enum([
56766
- "workflow",
56767
- "mcp",
56768
- "cli",
56769
- "skill"
56715
+ init_searchgroundingmode();
56716
+ init_v2inlinemcpdefinition();
56717
+ init_v2savedmcpreference();
56718
+ CreateV2EvalRequestMcp$zodSchema = union([
56719
+ V2InlineMcpDefinition$zodSchema,
56720
+ V2SavedMcpReference$zodSchema
56770
56721
  ]);
56771
56722
  CreateV2EvalRequest$zodSchema = object({
56772
- cli_id: string2().optional(),
56773
- judge: string2().describe("Plain-text outcome that counts as success."),
56774
- mcp_server_id: string2().optional(),
56723
+ agent: array(string2()).optional().describe("Runnable agents from `GET /v2/agents`. An empty array saves the eval without default agents. CLI clients expose repeatable `--agent`."),
56724
+ cleanup_commands: array(string2()).optional().describe("Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. CLI clients expose repeatable `--cleanup-command`."),
56725
+ clis: array(string2()).optional().describe("Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from `GET /v2/clis`; every other value is run as an installation command. CLI clients expose repeatable `--cli`."),
56726
+ judges: array(string2()).describe("Plain-text success criteria. CLI clients expose this as repeatable `--judge`."),
56727
+ mcps: array(union([
56728
+ V2InlineMcpDefinition$zodSchema,
56729
+ V2SavedMcpReference$zodSchema
56730
+ ])).optional().describe("Saved MCP references or inline portable MCP definitions."),
56775
56731
  name: string2(),
56776
- prompt: string2(),
56777
- skill_id: string2().optional(),
56778
- type: CreateV2EvalRequestType$zodSchema
56732
+ persona: string2().optional().describe("Optional perspective applied to the whole eval. It is stored as metadata and does not change prompts or multiply attempts."),
56733
+ prompts: array(string2()).describe("Task prompts. CLI clients expose this as repeatable `--prompt`."),
56734
+ runs: int().default(1).describe("Independent attempts for every prompt-agent pair."),
56735
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
56736
+ setup_commands: array(string2()).optional().describe("Shell commands run sequentially in the prepared repository before the agent starts. CLI clients expose repeatable `--setup-command`."),
56737
+ tags: array(string2()).optional().describe("Optional labels for organizing the eval. CLI clients may expose this string array as a repeatable `--tag` flag.")
56779
56738
  });
56780
56739
  });
56781
56740
 
56782
56741
  // src/funcs/evalsV2EvalsCreate.ts
56783
56742
  function evalsV2EvalsCreate(client$, request, options) {
56784
- return new APIPromise($do19(client$, request, options));
56743
+ return new APIPromise($do17(client$, request, options));
56785
56744
  }
56786
- async function $do19(client$, request, options) {
56745
+ async function $do17(client$, request, options) {
56787
56746
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
56788
56747
  if (!parsed$.ok) {
56789
56748
  return [parsed$, { status: "invalid" }];
@@ -56853,19 +56812,19 @@ var init_evalsV2EvalsCreate = __esm(() => {
56853
56812
  });
56854
56813
 
56855
56814
  // src/mcp-server/tools/evalsV2EvalsCreate.ts
56856
- var args16, tool$evalsV2EvalsCreate;
56815
+ var args14, tool$evalsV2EvalsCreate;
56857
56816
  var init_evalsV2EvalsCreate2 = __esm(() => {
56858
56817
  init_evalsV2EvalsCreate();
56859
56818
  init_createv2evalrequest();
56860
56819
  init_tools();
56861
- args16 = {
56820
+ args14 = {
56862
56821
  request: CreateV2EvalRequest$zodSchema
56863
56822
  };
56864
56823
  tool$evalsV2EvalsCreate = {
56865
56824
  name: "evals-v2-evals-create",
56866
56825
  description: `Create Eval
56867
56826
 
56868
- Creates an eval with a task prompt, subject, and plain-text success criterion in \`judge\`. The eval can then be run through eval runs.`,
56827
+ Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.`,
56869
56828
  annotations: {
56870
56829
  title: "",
56871
56830
  destructiveHint: false,
@@ -56873,7 +56832,7 @@ Creates an eval with a task prompt, subject, and plain-text success criterion in
56873
56832
  openWorldHint: false,
56874
56833
  readOnlyHint: false
56875
56834
  },
56876
- args: args16,
56835
+ args: args14,
56877
56836
  tool: async (client, args, ctx) => {
56878
56837
  const [result] = await evalsV2EvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56879
56838
  if (!result.ok) {
@@ -56887,36 +56846,62 @@ Creates an eval with a task prompt, subject, and plain-text success criterion in
56887
56846
  };
56888
56847
  });
56889
56848
 
56890
- // src/models/v2evaljudge.ts
56891
- var V2EvalJudge$zodSchema;
56892
- var init_v2evaljudge = __esm(() => {
56849
+ // src/models/v2inlineclireference.ts
56850
+ var V2InlineCliReference$zodSchema;
56851
+ var init_v2inlineclireference = __esm(() => {
56852
+ init_zod();
56853
+ V2InlineCliReference$zodSchema = object({
56854
+ install_command: string2().describe("Shell command to install this CLI before the agent starts.")
56855
+ });
56856
+ });
56857
+
56858
+ // src/models/v2savedclireference.ts
56859
+ var V2SavedCliReference$zodSchema;
56860
+ var init_v2savedclireference = __esm(() => {
56893
56861
  init_zod();
56894
- V2EvalJudge$zodSchema = object({
56895
- criteria: string2().describe("The outcome that counts as success.")
56862
+ V2SavedCliReference$zodSchema = object({
56863
+ id: string2().describe("Saved CLI ID from `GET /v2/clis`.")
56896
56864
  });
56897
56865
  });
56898
56866
 
56899
56867
  // src/models/v2eval.ts
56900
- var V2EvalType$zodSchema, V2Eval$zodSchema;
56868
+ var Cli$zodSchema, V2EvalMcp$zodSchema, V2Eval$zodSchema;
56901
56869
  var init_v2eval = __esm(() => {
56902
56870
  init_zod();
56903
- init_v2evaljudge();
56904
- V2EvalType$zodSchema = _enum([
56905
- "workflow",
56906
- "mcp",
56907
- "cli",
56908
- "skill"
56871
+ init_searchgroundingmode();
56872
+ init_v2inlineclireference();
56873
+ init_v2inlinemcpdefinition();
56874
+ init_v2savedclireference();
56875
+ init_v2savedmcpreference();
56876
+ Cli$zodSchema = union([
56877
+ V2SavedCliReference$zodSchema,
56878
+ V2InlineCliReference$zodSchema
56879
+ ]);
56880
+ V2EvalMcp$zodSchema = union([
56881
+ V2InlineMcpDefinition$zodSchema,
56882
+ V2SavedMcpReference$zodSchema
56909
56883
  ]);
56910
56884
  V2Eval$zodSchema = object({
56911
- cli_id: string2().nullable().optional(),
56885
+ agent: array(string2()).optional(),
56886
+ cleanup_commands: array(string2()).optional(),
56887
+ clis: array(union([
56888
+ V2SavedCliReference$zodSchema,
56889
+ V2InlineCliReference$zodSchema
56890
+ ])).optional(),
56912
56891
  created_at: string2().nullable().optional(),
56913
56892
  id: string2(),
56914
- judge: V2EvalJudge$zodSchema,
56915
- mcp_server_id: string2().nullable().optional(),
56893
+ judges: array(string2()).optional(),
56894
+ mcps: array(union([
56895
+ V2InlineMcpDefinition$zodSchema,
56896
+ V2SavedMcpReference$zodSchema
56897
+ ])).optional(),
56916
56898
  name: string2(),
56917
- prompt: string2(),
56918
- skill_id: string2().nullable().optional(),
56919
- type: V2EvalType$zodSchema,
56899
+ persona: string2().nullable().optional(),
56900
+ prompts: array(string2()).optional(),
56901
+ runs: int().default(1),
56902
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
56903
+ setup_commands: array(string2()).optional(),
56904
+ tags: array(string2()).optional(),
56920
56905
  updated_at: string2().nullable().optional()
56921
56906
  });
56922
56907
  });
@@ -56938,9 +56923,9 @@ var init_v2evalsdeleteop = __esm(() => {
56938
56923
 
56939
56924
  // src/funcs/evalsV2EvalsDelete.ts
56940
56925
  function evalsV2EvalsDelete(client$, request, options) {
56941
- return new APIPromise($do20(client$, request, options));
56926
+ return new APIPromise($do18(client$, request, options));
56942
56927
  }
56943
- async function $do20(client$, request, options) {
56928
+ async function $do18(client$, request, options) {
56944
56929
  const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
56945
56930
  if (!parsed$.ok) {
56946
56931
  return [parsed$, { status: "invalid" }];
@@ -57015,12 +57000,12 @@ var init_evalsV2EvalsDelete = __esm(() => {
57015
57000
  });
57016
57001
 
57017
57002
  // src/mcp-server/tools/evalsV2EvalsDelete.ts
57018
- var args17, tool$evalsV2EvalsDelete;
57003
+ var args15, tool$evalsV2EvalsDelete;
57019
57004
  var init_evalsV2EvalsDelete2 = __esm(() => {
57020
57005
  init_evalsV2EvalsDelete();
57021
57006
  init_v2evalsdeleteop();
57022
57007
  init_tools();
57023
- args17 = {
57008
+ args15 = {
57024
57009
  request: V2EvalsDeleteRequest$zodSchema
57025
57010
  };
57026
57011
  tool$evalsV2EvalsDelete = {
@@ -57035,7 +57020,7 @@ Permanently deletes an eval and all of its saved configurations.`,
57035
57020
  openWorldHint: false,
57036
57021
  readOnlyHint: false
57037
57022
  },
57038
- args: args17,
57023
+ args: args15,
57039
57024
  tool: async (client, args, ctx) => {
57040
57025
  const [result] = await evalsV2EvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57041
57026
  if (!result.ok) {
@@ -57051,9 +57036,9 @@ Permanently deletes an eval and all of its saved configurations.`,
57051
57036
 
57052
57037
  // src/funcs/evalsV2EvalsList.ts
57053
57038
  function evalsV2EvalsList(client$, options) {
57054
- return new APIPromise($do21(client$, options));
57039
+ return new APIPromise($do19(client$, options));
57055
57040
  }
57056
- async function $do21(client$, options) {
57041
+ async function $do19(client$, options) {
57057
57042
  const path$ = pathToFunc("/v2/evals")();
57058
57043
  const headers$ = new Headers(compactMap({
57059
57044
  Accept: "application/json"
@@ -57120,7 +57105,7 @@ var init_evalsV2EvalsList2 = __esm(() => {
57120
57105
  name: "evals-v2-evals-list",
57121
57106
  description: `List Evals
57122
57107
 
57123
- Returns all active evals including workflow, MCP, CLI, and skill evals owned by the organization.`,
57108
+ Returns all active eval definitions owned by the organization.`,
57124
57109
  annotations: {
57125
57110
  title: "",
57126
57111
  destructiveHint: false,
@@ -57158,9 +57143,9 @@ var init_v2evalsretrieveop = __esm(() => {
57158
57143
 
57159
57144
  // src/funcs/evalsV2EvalsRetrieve.ts
57160
57145
  function evalsV2EvalsRetrieve(client$, request, options) {
57161
- return new APIPromise($do22(client$, request, options));
57146
+ return new APIPromise($do20(client$, request, options));
57162
57147
  }
57163
- async function $do22(client$, request, options) {
57148
+ async function $do20(client$, request, options) {
57164
57149
  const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
57165
57150
  if (!parsed$.ok) {
57166
57151
  return [parsed$, { status: "invalid" }];
@@ -57235,19 +57220,19 @@ var init_evalsV2EvalsRetrieve = __esm(() => {
57235
57220
  });
57236
57221
 
57237
57222
  // src/mcp-server/tools/evalsV2EvalsRetrieve.ts
57238
- var args18, tool$evalsV2EvalsRetrieve;
57223
+ var args16, tool$evalsV2EvalsRetrieve;
57239
57224
  var init_evalsV2EvalsRetrieve2 = __esm(() => {
57240
57225
  init_evalsV2EvalsRetrieve();
57241
57226
  init_v2evalsretrieveop();
57242
57227
  init_tools();
57243
- args18 = {
57228
+ args16 = {
57244
57229
  request: V2EvalsRetrieveRequest$zodSchema
57245
57230
  };
57246
57231
  tool$evalsV2EvalsRetrieve = {
57247
57232
  name: "evals-v2-evals-retrieve",
57248
57233
  description: `Retrieve Eval
57249
57234
 
57250
- Returns one eval and its judge configuration.`,
57235
+ Returns one reusable eval simulation definition.`,
57251
57236
  annotations: {
57252
57237
  title: "",
57253
57238
  destructiveHint: false,
@@ -57255,7 +57240,7 @@ Returns one eval and its judge configuration.`,
57255
57240
  openWorldHint: false,
57256
57241
  readOnlyHint: true
57257
57242
  },
57258
- args: args18,
57243
+ args: args16,
57259
57244
  tool: async (client, args, ctx) => {
57260
57245
  const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57261
57246
  if (!result.ok) {
@@ -57270,23 +57255,32 @@ Returns one eval and its judge configuration.`,
57270
57255
  });
57271
57256
 
57272
57257
  // src/models/updatev2evalrequest.ts
57273
- var UpdateV2EvalRequestType$zodSchema, UpdateV2EvalRequest$zodSchema;
57258
+ var UpdateV2EvalRequestMcp$zodSchema, UpdateV2EvalRequest$zodSchema;
57274
57259
  var init_updatev2evalrequest = __esm(() => {
57275
57260
  init_zod();
57276
- UpdateV2EvalRequestType$zodSchema = _enum([
57277
- "workflow",
57278
- "mcp",
57279
- "cli",
57280
- "skill"
57261
+ init_searchgroundingmode();
57262
+ init_v2inlinemcpdefinition();
57263
+ init_v2savedmcpreference();
57264
+ UpdateV2EvalRequestMcp$zodSchema = union([
57265
+ V2InlineMcpDefinition$zodSchema,
57266
+ V2SavedMcpReference$zodSchema
57281
57267
  ]);
57282
57268
  UpdateV2EvalRequest$zodSchema = object({
57283
- cli_id: string2().optional(),
57284
- judge: string2().optional().describe("Plain-text outcome that counts as success."),
57285
- mcp_server_id: string2().optional(),
57269
+ agent: array(string2()).nullable().optional(),
57270
+ cleanup_commands: array(string2()).nullable().optional().describe("Replacement cleanup commands. Pass an empty array to clear all saved cleanup commands."),
57271
+ clis: array(string2()).nullable().optional().describe("Replacement saved CLI IDs or shell installation commands. UUID values resolve saved CLIs; every other value is an installation command. Pass an empty array to clear all CLIs."),
57272
+ judges: array(string2()).nullable().optional().describe("Replacement success criteria for the eval."),
57273
+ mcps: array(union([
57274
+ V2InlineMcpDefinition$zodSchema,
57275
+ V2SavedMcpReference$zodSchema
57276
+ ])).nullable().optional(),
57286
57277
  name: string2().optional(),
57287
- prompt: string2().optional(),
57288
- skill_id: string2().optional(),
57289
- type: UpdateV2EvalRequestType$zodSchema.optional()
57278
+ persona: string2().optional().describe("Replacement eval persona. Pass null to clear it; omit it to leave the saved value unchanged."),
57279
+ prompts: array(string2()).nullable().optional(),
57280
+ runs: int().optional(),
57281
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Replacement web-retrieval policy. Omit it to keep the saved value."),
57282
+ setup_commands: array(string2()).nullable().optional().describe("Replacement setup commands. Pass an empty array to clear all saved setup commands."),
57283
+ tags: array(string2()).nullable().optional().describe("Replacement labels for the eval. Pass an empty array to clear all tags.")
57290
57284
  });
57291
57285
  });
57292
57286
 
@@ -57309,9 +57303,9 @@ var init_v2evalsupdateop = __esm(() => {
57309
57303
 
57310
57304
  // src/funcs/evalsV2EvalsUpdate.ts
57311
57305
  function evalsV2EvalsUpdate(client$, request, options) {
57312
- return new APIPromise($do23(client$, request, options));
57306
+ return new APIPromise($do21(client$, request, options));
57313
57307
  }
57314
- async function $do23(client$, request, options) {
57308
+ async function $do21(client$, request, options) {
57315
57309
  const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
57316
57310
  if (!parsed$.ok) {
57317
57311
  return [parsed$, { status: "invalid" }];
@@ -57387,19 +57381,19 @@ var init_evalsV2EvalsUpdate = __esm(() => {
57387
57381
  });
57388
57382
 
57389
57383
  // src/mcp-server/tools/evalsV2EvalsUpdate.ts
57390
- var args19, tool$evalsV2EvalsUpdate;
57384
+ var args17, tool$evalsV2EvalsUpdate;
57391
57385
  var init_evalsV2EvalsUpdate2 = __esm(() => {
57392
57386
  init_evalsV2EvalsUpdate();
57393
57387
  init_v2evalsupdateop();
57394
57388
  init_tools();
57395
- args19 = {
57389
+ args17 = {
57396
57390
  request: V2EvalsUpdateRequest$zodSchema
57397
57391
  };
57398
57392
  tool$evalsV2EvalsUpdate = {
57399
57393
  name: "evals-v2-evals-update",
57400
57394
  description: `Update Eval
57401
57395
 
57402
- Updates an eval's task prompt, subject, plain-text \`judge\`, or name. Omitted fields remain unchanged.`,
57396
+ Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, \`setup_commands\`, \`cleanup_commands\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
57403
57397
  annotations: {
57404
57398
  title: "",
57405
57399
  destructiveHint: false,
@@ -57407,7 +57401,7 @@ Updates an eval's task prompt, subject, plain-text \`judge\`, or name. Omitted f
57407
57401
  openWorldHint: false,
57408
57402
  readOnlyHint: false
57409
57403
  },
57410
- args: args19,
57404
+ args: args17,
57411
57405
  tool: async (client, args, ctx) => {
57412
57406
  const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57413
57407
  if (!result.ok) {
@@ -57423,9 +57417,9 @@ Updates an eval's task prompt, subject, plain-text \`judge\`, or name. Omitted f
57423
57417
 
57424
57418
  // src/funcs/mcpServersV2MCPServersList.ts
57425
57419
  function mcpServersV2MCPServersList(client$, options) {
57426
- return new APIPromise($do24(client$, options));
57420
+ return new APIPromise($do22(client$, options));
57427
57421
  }
57428
- async function $do24(client$, options) {
57422
+ async function $do22(client$, options) {
57429
57423
  const path$ = pathToFunc("/v2/mcp-servers")();
57430
57424
  const headers$ = new Headers(compactMap({
57431
57425
  Accept: "application/json"
@@ -57607,9 +57601,9 @@ var init_v2opportunitieslistop = __esm(() => {
57607
57601
 
57608
57602
  // src/funcs/opportunitiesV2OpportunitiesList.ts
57609
57603
  function opportunitiesV2OpportunitiesList(client$, request, options) {
57610
- return new APIPromise($do25(client$, request, options));
57604
+ return new APIPromise($do23(client$, request, options));
57611
57605
  }
57612
- async function $do25(client$, request, options) {
57606
+ async function $do23(client$, request, options) {
57613
57607
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
57614
57608
  if (!parsed$.ok) {
57615
57609
  return [parsed$, { status: "invalid" }];
@@ -57687,12 +57681,12 @@ var init_opportunitiesV2OpportunitiesList = __esm(() => {
57687
57681
  });
57688
57682
 
57689
57683
  // src/mcp-server/tools/opportunitiesV2OpportunitiesList.ts
57690
- var args20, tool$opportunitiesV2OpportunitiesList;
57684
+ var args18, tool$opportunitiesV2OpportunitiesList;
57691
57685
  var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
57692
57686
  init_opportunitiesV2OpportunitiesList();
57693
57687
  init_v2opportunitieslistop();
57694
57688
  init_tools();
57695
- args20 = {
57689
+ args18 = {
57696
57690
  request: V2OpportunitiesListRequest$zodSchema.optional()
57697
57691
  };
57698
57692
  tool$opportunitiesV2OpportunitiesList = {
@@ -57707,7 +57701,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
57707
57701
  openWorldHint: false,
57708
57702
  readOnlyHint: true
57709
57703
  },
57710
- args: args20,
57704
+ args: args18,
57711
57705
  tool: async (client, args, ctx) => {
57712
57706
  const [result] = await opportunitiesV2OpportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57713
57707
  if (!result.ok) {
@@ -57779,9 +57773,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
57779
57773
 
57780
57774
  // src/funcs/opportunitiesV2OpportunitiesRetrieve.ts
57781
57775
  function opportunitiesV2OpportunitiesRetrieve(client$, request, options) {
57782
- return new APIPromise($do26(client$, request, options));
57776
+ return new APIPromise($do24(client$, request, options));
57783
57777
  }
57784
- async function $do26(client$, request, options) {
57778
+ async function $do24(client$, request, options) {
57785
57779
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
57786
57780
  if (!parsed$.ok) {
57787
57781
  return [parsed$, { status: "invalid" }];
@@ -57862,12 +57856,12 @@ var init_opportunitiesV2OpportunitiesRetrieve = __esm(() => {
57862
57856
  });
57863
57857
 
57864
57858
  // src/mcp-server/tools/opportunitiesV2OpportunitiesRetrieve.ts
57865
- var args21, tool$opportunitiesV2OpportunitiesRetrieve;
57859
+ var args19, tool$opportunitiesV2OpportunitiesRetrieve;
57866
57860
  var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
57867
57861
  init_opportunitiesV2OpportunitiesRetrieve();
57868
57862
  init_v2opportunitiesretrieveop();
57869
57863
  init_tools();
57870
- args21 = {
57864
+ args19 = {
57871
57865
  request: V2OpportunitiesRetrieveRequest$zodSchema
57872
57866
  };
57873
57867
  tool$opportunitiesV2OpportunitiesRetrieve = {
@@ -57882,7 +57876,7 @@ Returns one computed opportunity and its execution context for the selected date
57882
57876
  openWorldHint: false,
57883
57877
  readOnlyHint: true
57884
57878
  },
57885
- args: args21,
57879
+ args: args19,
57886
57880
  tool: async (client, args, ctx) => {
57887
57881
  const [result] = await opportunitiesV2OpportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57888
57882
  if (!result.ok) {
@@ -57951,7 +57945,7 @@ var init_v2promptrunsummary = __esm(() => {
57951
57945
  response_preview: string2().nullable().optional(),
57952
57946
  run_date: string2(),
57953
57947
  target_kind: V2PromptRunSummaryTargetKind$zodSchema.nullable().optional(),
57954
- tool_call_count: int().nullable().optional()
57948
+ tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs.")
57955
57949
  });
57956
57950
  });
57957
57951
 
@@ -57990,9 +57984,9 @@ var init_v2promptrunslistop = __esm(() => {
57990
57984
 
57991
57985
  // src/funcs/promptsV2PromptRunsList.ts
57992
57986
  function promptsV2PromptRunsList(client$, request, options) {
57993
- return new APIPromise($do27(client$, request, options));
57987
+ return new APIPromise($do25(client$, request, options));
57994
57988
  }
57995
- async function $do27(client$, request, options) {
57989
+ async function $do25(client$, request, options) {
57996
57990
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
57997
57991
  if (!parsed$.ok) {
57998
57992
  return [parsed$, { status: "invalid" }];
@@ -58070,19 +58064,19 @@ var init_promptsV2PromptRunsList = __esm(() => {
58070
58064
  });
58071
58065
 
58072
58066
  // src/mcp-server/tools/promptsV2PromptRunsList.ts
58073
- var args22, tool$promptsV2PromptRunsList;
58067
+ var args20, tool$promptsV2PromptRunsList;
58074
58068
  var init_promptsV2PromptRunsList2 = __esm(() => {
58075
58069
  init_promptsV2PromptRunsList();
58076
58070
  init_v2promptrunslistop();
58077
58071
  init_tools();
58078
- args22 = {
58072
+ args20 = {
58079
58073
  request: V2PromptRunsListRequest$zodSchema.optional()
58080
58074
  };
58081
58075
  tool$promptsV2PromptRunsList = {
58082
58076
  name: "prompts-v2-prompt-runs-list",
58083
58077
  description: `List Prompt Runs
58084
58078
 
58085
- Returns stored prompt runs without exposing raw runtime or provider configuration. Filterable by prompt, platform, and date range.`,
58079
+ Returns stored prompt runs with limit-and-offset pagination, without exposing raw runtime or provider configuration. Filter by prompt, platform, or date range.`,
58086
58080
  annotations: {
58087
58081
  title: "",
58088
58082
  destructiveHint: false,
@@ -58090,7 +58084,7 @@ Returns stored prompt runs without exposing raw runtime or provider configuratio
58090
58084
  openWorldHint: false,
58091
58085
  readOnlyHint: true
58092
58086
  },
58093
- args: args22,
58087
+ args: args20,
58094
58088
  tool: async (client, args, ctx) => {
58095
58089
  const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58096
58090
  if (!result.ok) {
@@ -58161,6 +58155,7 @@ var init_v2promptrundetail = __esm(() => {
58161
58155
  V2PromptRunDetail$zodSchema = object({
58162
58156
  citation_count: int().default(0),
58163
58157
  citations: array(V2PromptRunCitation$zodSchema).optional(),
58158
+ conversation_turns: array(record(string2(), any())).optional().describe("Sanitized interleaved text and tool-call trace captured for this run. It interleaves the agent's `text` turns with `tool_call` turns, so its length is not a tool-call count; use `tool_calls` or `tool_call_count`."),
58164
58159
  created_at: string2().nullable().optional(),
58165
58160
  harness: string2().nullable().optional().describe("Coding-agent harness for agent runs; otherwise the answer platform identifier."),
58166
58161
  id: string2(),
@@ -58174,7 +58169,8 @@ var init_v2promptrundetail = __esm(() => {
58174
58169
  response_preview: string2().nullable().optional(),
58175
58170
  run_date: string2(),
58176
58171
  target_kind: V2PromptRunDetailTargetKind$zodSchema.nullable().optional(),
58177
- tool_call_count: int().nullable().optional()
58172
+ tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs."),
58173
+ tool_calls: array(record(string2(), any())).optional().describe("Sanitized coding-agent tool invocations captured for this run, one entry per invocation with its result merged in.")
58178
58174
  });
58179
58175
  });
58180
58176
 
@@ -58195,9 +58191,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
58195
58191
 
58196
58192
  // src/funcs/promptsV2PromptRunsRetrieve.ts
58197
58193
  function promptsV2PromptRunsRetrieve(client$, request, options) {
58198
- return new APIPromise($do28(client$, request, options));
58194
+ return new APIPromise($do26(client$, request, options));
58199
58195
  }
58200
- async function $do28(client$, request, options) {
58196
+ async function $do26(client$, request, options) {
58201
58197
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58202
58198
  if (!parsed$.ok) {
58203
58199
  return [parsed$, { status: "invalid" }];
@@ -58272,19 +58268,19 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
58272
58268
  });
58273
58269
 
58274
58270
  // src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
58275
- var args23, tool$promptsV2PromptRunsRetrieve;
58271
+ var args21, tool$promptsV2PromptRunsRetrieve;
58276
58272
  var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
58277
58273
  init_promptsV2PromptRunsRetrieve();
58278
58274
  init_v2promptrunsretrieveop();
58279
58275
  init_tools();
58280
- args23 = {
58276
+ args21 = {
58281
58277
  request: V2PromptRunsRetrieveRequest$zodSchema
58282
58278
  };
58283
58279
  tool$promptsV2PromptRunsRetrieve = {
58284
58280
  name: "prompts-v2-prompt-runs-retrieve",
58285
58281
  description: `Retrieve Prompt Run
58286
58282
 
58287
- Returns one stored prompt run, including its mentions and citations.`,
58283
+ Returns one stored prompt run, including mentions, citations, and any sanitized coding-agent trace captured for the run.`,
58288
58284
  annotations: {
58289
58285
  title: "",
58290
58286
  destructiveHint: false,
@@ -58292,7 +58288,7 @@ Returns one stored prompt run, including its mentions and citations.`,
58292
58288
  openWorldHint: false,
58293
58289
  readOnlyHint: true
58294
58290
  },
58295
- args: args23,
58291
+ args: args21,
58296
58292
  tool: async (client, args, ctx) => {
58297
58293
  const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58298
58294
  if (!result.ok) {
@@ -58329,9 +58325,9 @@ var init_createv2promptsrequest = __esm(() => {
58329
58325
 
58330
58326
  // src/funcs/promptsV2PromptsCreate.ts
58331
58327
  function promptsV2PromptsCreate(client$, request, options) {
58332
- return new APIPromise($do29(client$, request, options));
58328
+ return new APIPromise($do27(client$, request, options));
58333
58329
  }
58334
- async function $do29(client$, request, options) {
58330
+ async function $do27(client$, request, options) {
58335
58331
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
58336
58332
  if (!parsed$.ok) {
58337
58333
  return [parsed$, { status: "invalid" }];
@@ -58401,12 +58397,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
58401
58397
  });
58402
58398
 
58403
58399
  // src/mcp-server/tools/promptsV2PromptsCreate.ts
58404
- var args24, tool$promptsV2PromptsCreate;
58400
+ var args22, tool$promptsV2PromptsCreate;
58405
58401
  var init_promptsV2PromptsCreate2 = __esm(() => {
58406
58402
  init_promptsV2PromptsCreate();
58407
58403
  init_createv2promptsrequest();
58408
58404
  init_tools();
58409
- args24 = {
58405
+ args22 = {
58410
58406
  request: CreateV2PromptsRequest$zodSchema
58411
58407
  };
58412
58408
  tool$promptsV2PromptsCreate = {
@@ -58421,7 +58417,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
58421
58417
  openWorldHint: false,
58422
58418
  readOnlyHint: false
58423
58419
  },
58424
- args: args24,
58420
+ args: args22,
58425
58421
  tool: async (client, args, ctx) => {
58426
58422
  const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58427
58423
  if (!result.ok) {
@@ -58461,9 +58457,9 @@ var init_v2promptsdeleteop = __esm(() => {
58461
58457
 
58462
58458
  // src/funcs/promptsV2PromptsDelete.ts
58463
58459
  function promptsV2PromptsDelete(client$, request, options) {
58464
- return new APIPromise($do30(client$, request, options));
58460
+ return new APIPromise($do28(client$, request, options));
58465
58461
  }
58466
- async function $do30(client$, request, options) {
58462
+ async function $do28(client$, request, options) {
58467
58463
  const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
58468
58464
  if (!parsed$.ok) {
58469
58465
  return [parsed$, { status: "invalid" }];
@@ -58538,12 +58534,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
58538
58534
  });
58539
58535
 
58540
58536
  // src/mcp-server/tools/promptsV2PromptsDelete.ts
58541
- var args25, tool$promptsV2PromptsDelete;
58537
+ var args23, tool$promptsV2PromptsDelete;
58542
58538
  var init_promptsV2PromptsDelete2 = __esm(() => {
58543
58539
  init_promptsV2PromptsDelete();
58544
58540
  init_v2promptsdeleteop();
58545
58541
  init_tools();
58546
- args25 = {
58542
+ args23 = {
58547
58543
  request: V2PromptsDeleteRequest$zodSchema
58548
58544
  };
58549
58545
  tool$promptsV2PromptsDelete = {
@@ -58558,7 +58554,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
58558
58554
  openWorldHint: false,
58559
58555
  readOnlyHint: false
58560
58556
  },
58561
- args: args25,
58557
+ args: args23,
58562
58558
  tool: async (client, args, ctx) => {
58563
58559
  const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58564
58560
  if (!result.ok) {
@@ -58668,9 +58664,9 @@ var init_v2promptslistop = __esm(() => {
58668
58664
 
58669
58665
  // src/funcs/promptsV2PromptsList.ts
58670
58666
  function promptsV2PromptsList(client$, request, options) {
58671
- return new APIPromise($do31(client$, request, options));
58667
+ return new APIPromise($do29(client$, request, options));
58672
58668
  }
58673
- async function $do31(client$, request, options) {
58669
+ async function $do29(client$, request, options) {
58674
58670
  const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
58675
58671
  if (!parsed$.ok) {
58676
58672
  return [parsed$, { status: "invalid" }];
@@ -58745,12 +58741,12 @@ var init_promptsV2PromptsList = __esm(() => {
58745
58741
  });
58746
58742
 
58747
58743
  // src/mcp-server/tools/promptsV2PromptsList.ts
58748
- var args26, tool$promptsV2PromptsList;
58744
+ var args24, tool$promptsV2PromptsList;
58749
58745
  var init_promptsV2PromptsList2 = __esm(() => {
58750
58746
  init_promptsV2PromptsList();
58751
58747
  init_v2promptslistop();
58752
58748
  init_tools();
58753
- args26 = {
58749
+ args24 = {
58754
58750
  request: V2PromptsListRequest$zodSchema.optional()
58755
58751
  };
58756
58752
  tool$promptsV2PromptsList = {
@@ -58765,7 +58761,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
58765
58761
  openWorldHint: false,
58766
58762
  readOnlyHint: true
58767
58763
  },
58768
- args: args26,
58764
+ args: args24,
58769
58765
  tool: async (client, args, ctx) => {
58770
58766
  const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58771
58767
  if (!result.ok) {
@@ -58796,9 +58792,9 @@ var init_v2promptsretrieveop = __esm(() => {
58796
58792
 
58797
58793
  // src/funcs/promptsV2PromptsRetrieve.ts
58798
58794
  function promptsV2PromptsRetrieve(client$, request, options) {
58799
- return new APIPromise($do32(client$, request, options));
58795
+ return new APIPromise($do30(client$, request, options));
58800
58796
  }
58801
- async function $do32(client$, request, options) {
58797
+ async function $do30(client$, request, options) {
58802
58798
  const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58803
58799
  if (!parsed$.ok) {
58804
58800
  return [parsed$, { status: "invalid" }];
@@ -58873,12 +58869,12 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
58873
58869
  });
58874
58870
 
58875
58871
  // src/mcp-server/tools/promptsV2PromptsRetrieve.ts
58876
- var args27, tool$promptsV2PromptsRetrieve;
58872
+ var args25, tool$promptsV2PromptsRetrieve;
58877
58873
  var init_promptsV2PromptsRetrieve2 = __esm(() => {
58878
58874
  init_promptsV2PromptsRetrieve();
58879
58875
  init_v2promptsretrieveop();
58880
58876
  init_tools();
58881
- args27 = {
58877
+ args25 = {
58882
58878
  request: V2PromptsRetrieveRequest$zodSchema
58883
58879
  };
58884
58880
  tool$promptsV2PromptsRetrieve = {
@@ -58893,7 +58889,7 @@ Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
58893
58889
  openWorldHint: false,
58894
58890
  readOnlyHint: true
58895
58891
  },
58896
- args: args27,
58892
+ args: args25,
58897
58893
  tool: async (client, args, ctx) => {
58898
58894
  const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58899
58895
  if (!result.ok) {
@@ -58942,9 +58938,9 @@ var init_v2promptsupdateop = __esm(() => {
58942
58938
 
58943
58939
  // src/funcs/promptsV2PromptsUpdate.ts
58944
58940
  function promptsV2PromptsUpdate(client$, request, options) {
58945
- return new APIPromise($do33(client$, request, options));
58941
+ return new APIPromise($do31(client$, request, options));
58946
58942
  }
58947
- async function $do33(client$, request, options) {
58943
+ async function $do31(client$, request, options) {
58948
58944
  const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
58949
58945
  if (!parsed$.ok) {
58950
58946
  return [parsed$, { status: "invalid" }];
@@ -59020,12 +59016,12 @@ var init_promptsV2PromptsUpdate = __esm(() => {
59020
59016
  });
59021
59017
 
59022
59018
  // src/mcp-server/tools/promptsV2PromptsUpdate.ts
59023
- var args28, tool$promptsV2PromptsUpdate;
59019
+ var args26, tool$promptsV2PromptsUpdate;
59024
59020
  var init_promptsV2PromptsUpdate2 = __esm(() => {
59025
59021
  init_promptsV2PromptsUpdate();
59026
59022
  init_v2promptsupdateop();
59027
59023
  init_tools();
59028
- args28 = {
59024
+ args26 = {
59029
59025
  request: V2PromptsUpdateRequest$zodSchema
59030
59026
  };
59031
59027
  tool$promptsV2PromptsUpdate = {
@@ -59040,7 +59036,7 @@ Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields r
59040
59036
  openWorldHint: false,
59041
59037
  readOnlyHint: false
59042
59038
  },
59043
- args: args28,
59039
+ args: args26,
59044
59040
  tool: async (client, args, ctx) => {
59045
59041
  const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59046
59042
  if (!result.ok) {
@@ -59065,9 +59061,9 @@ var init_createprompttopicrequest = __esm(() => {
59065
59061
 
59066
59062
  // src/funcs/promptsV2PromptTopicsCreate.ts
59067
59063
  function promptsV2PromptTopicsCreate(client$, request, options) {
59068
- return new APIPromise($do34(client$, request, options));
59064
+ return new APIPromise($do32(client$, request, options));
59069
59065
  }
59070
- async function $do34(client$, request, options) {
59066
+ async function $do32(client$, request, options) {
59071
59067
  const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
59072
59068
  if (!parsed$.ok) {
59073
59069
  return [parsed$, { status: "invalid" }];
@@ -59137,12 +59133,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
59137
59133
  });
59138
59134
 
59139
59135
  // src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
59140
- var args29, tool$promptsV2PromptTopicsCreate;
59136
+ var args27, tool$promptsV2PromptTopicsCreate;
59141
59137
  var init_promptsV2PromptTopicsCreate2 = __esm(() => {
59142
59138
  init_promptsV2PromptTopicsCreate();
59143
59139
  init_createprompttopicrequest();
59144
59140
  init_tools();
59145
- args29 = {
59141
+ args27 = {
59146
59142
  request: CreatePromptTopicRequest$zodSchema
59147
59143
  };
59148
59144
  tool$promptsV2PromptTopicsCreate = {
@@ -59157,7 +59153,7 @@ Creates a prompt topic and returns the saved topic.`,
59157
59153
  openWorldHint: false,
59158
59154
  readOnlyHint: false
59159
59155
  },
59160
- args: args29,
59156
+ args: args27,
59161
59157
  tool: async (client, args, ctx) => {
59162
59158
  const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59163
59159
  if (!result.ok) {
@@ -59189,9 +59185,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
59189
59185
 
59190
59186
  // src/funcs/promptsV2PromptTopicsDelete.ts
59191
59187
  function promptsV2PromptTopicsDelete(client$, request, options) {
59192
- return new APIPromise($do35(client$, request, options));
59188
+ return new APIPromise($do33(client$, request, options));
59193
59189
  }
59194
- async function $do35(client$, request, options) {
59190
+ async function $do33(client$, request, options) {
59195
59191
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59196
59192
  if (!parsed$.ok) {
59197
59193
  return [parsed$, { status: "invalid" }];
@@ -59270,12 +59266,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
59270
59266
  });
59271
59267
 
59272
59268
  // src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
59273
- var args30, tool$promptsV2PromptTopicsDelete;
59269
+ var args28, tool$promptsV2PromptTopicsDelete;
59274
59270
  var init_promptsV2PromptTopicsDelete2 = __esm(() => {
59275
59271
  init_promptsV2PromptTopicsDelete();
59276
59272
  init_v2prompttopicsdeleteop();
59277
59273
  init_tools();
59278
- args30 = {
59274
+ args28 = {
59279
59275
  request: V2PromptTopicsDeleteRequest$zodSchema
59280
59276
  };
59281
59277
  tool$promptsV2PromptTopicsDelete = {
@@ -59290,7 +59286,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
59290
59286
  openWorldHint: false,
59291
59287
  readOnlyHint: false
59292
59288
  },
59293
- args: args30,
59289
+ args: args28,
59294
59290
  tool: async (client, args, ctx) => {
59295
59291
  const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59296
59292
  if (!result.ok) {
@@ -59306,9 +59302,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
59306
59302
 
59307
59303
  // src/funcs/promptsV2PromptTopicsList.ts
59308
59304
  function promptsV2PromptTopicsList(client$, options) {
59309
- return new APIPromise($do36(client$, options));
59305
+ return new APIPromise($do34(client$, options));
59310
59306
  }
59311
- async function $do36(client$, options) {
59307
+ async function $do34(client$, options) {
59312
59308
  const path$ = pathToFunc("/v2/prompts/topics")();
59313
59309
  const headers$ = new Headers(compactMap({
59314
59310
  Accept: "application/json"
@@ -59424,9 +59420,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
59424
59420
 
59425
59421
  // src/funcs/promptsV2PromptTopicsUpdate.ts
59426
59422
  function promptsV2PromptTopicsUpdate(client$, request, options) {
59427
- return new APIPromise($do37(client$, request, options));
59423
+ return new APIPromise($do35(client$, request, options));
59428
59424
  }
59429
- async function $do37(client$, request, options) {
59425
+ async function $do35(client$, request, options) {
59430
59426
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
59431
59427
  if (!parsed$.ok) {
59432
59428
  return [parsed$, { status: "invalid" }];
@@ -59502,12 +59498,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
59502
59498
  });
59503
59499
 
59504
59500
  // src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
59505
- var args31, tool$promptsV2PromptTopicsUpdate;
59501
+ var args29, tool$promptsV2PromptTopicsUpdate;
59506
59502
  var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
59507
59503
  init_promptsV2PromptTopicsUpdate();
59508
59504
  init_v2prompttopicsupdateop();
59509
59505
  init_tools();
59510
- args31 = {
59506
+ args29 = {
59511
59507
  request: V2PromptTopicsUpdateRequest$zodSchema
59512
59508
  };
59513
59509
  tool$promptsV2PromptTopicsUpdate = {
@@ -59522,7 +59518,7 @@ Renames a prompt topic and returns the updated topic.`,
59522
59518
  openWorldHint: false,
59523
59519
  readOnlyHint: false
59524
59520
  },
59525
- args: args31,
59521
+ args: args29,
59526
59522
  tool: async (client, args, ctx) => {
59527
59523
  const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59528
59524
  if (!result.ok) {
@@ -59565,9 +59561,9 @@ var init_createv2repositoryrequest = __esm(() => {
59565
59561
 
59566
59562
  // src/funcs/repositoriesV2RepositoriesCreate.ts
59567
59563
  function repositoriesV2RepositoriesCreate(client$, request, options) {
59568
- return new APIPromise($do38(client$, request, options));
59564
+ return new APIPromise($do36(client$, request, options));
59569
59565
  }
59570
- async function $do38(client$, request, options) {
59566
+ async function $do36(client$, request, options) {
59571
59567
  const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
59572
59568
  if (!parsed$.ok) {
59573
59569
  return [parsed$, { status: "invalid" }];
@@ -59637,12 +59633,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
59637
59633
  });
59638
59634
 
59639
59635
  // src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
59640
- var args32, tool$repositoriesV2RepositoriesCreate;
59636
+ var args30, tool$repositoriesV2RepositoriesCreate;
59641
59637
  var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
59642
59638
  init_repositoriesV2RepositoriesCreate();
59643
59639
  init_createv2repositoryrequest();
59644
59640
  init_tools();
59645
- args32 = {
59641
+ args30 = {
59646
59642
  request: CreateV2RepositoryRequest$zodSchema
59647
59643
  };
59648
59644
  tool$repositoriesV2RepositoriesCreate = {
@@ -59657,7 +59653,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
59657
59653
  openWorldHint: false,
59658
59654
  readOnlyHint: false
59659
59655
  },
59660
- args: args32,
59656
+ args: args30,
59661
59657
  tool: async (client, args, ctx) => {
59662
59658
  const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59663
59659
  if (!result.ok) {
@@ -59723,9 +59719,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
59723
59719
 
59724
59720
  // src/funcs/repositoriesV2RepositoriesDelete.ts
59725
59721
  function repositoriesV2RepositoriesDelete(client$, request, options) {
59726
- return new APIPromise($do39(client$, request, options));
59722
+ return new APIPromise($do37(client$, request, options));
59727
59723
  }
59728
- async function $do39(client$, request, options) {
59724
+ async function $do37(client$, request, options) {
59729
59725
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59730
59726
  if (!parsed$.ok) {
59731
59727
  return [parsed$, { status: "invalid" }];
@@ -59800,12 +59796,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
59800
59796
  });
59801
59797
 
59802
59798
  // src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
59803
- var args33, tool$repositoriesV2RepositoriesDelete;
59799
+ var args31, tool$repositoriesV2RepositoriesDelete;
59804
59800
  var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
59805
59801
  init_repositoriesV2RepositoriesDelete();
59806
59802
  init_v2repositoriesdeleteop();
59807
59803
  init_tools();
59808
- args33 = {
59804
+ args31 = {
59809
59805
  request: V2RepositoriesDeleteRequest$zodSchema
59810
59806
  };
59811
59807
  tool$repositoriesV2RepositoriesDelete = {
@@ -59820,7 +59816,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
59820
59816
  openWorldHint: false,
59821
59817
  readOnlyHint: false
59822
59818
  },
59823
- args: args33,
59819
+ args: args31,
59824
59820
  tool: async (client, args, ctx) => {
59825
59821
  const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59826
59822
  if (!result.ok) {
@@ -59836,9 +59832,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
59836
59832
 
59837
59833
  // src/funcs/repositoriesV2RepositoriesList.ts
59838
59834
  function repositoriesV2RepositoriesList(client$, options) {
59839
- return new APIPromise($do40(client$, options));
59835
+ return new APIPromise($do38(client$, options));
59840
59836
  }
59841
- async function $do40(client$, options) {
59837
+ async function $do38(client$, options) {
59842
59838
  const path$ = pathToFunc("/v2/repositories")();
59843
59839
  const headers$ = new Headers(compactMap({
59844
59840
  Accept: "application/json"
@@ -59943,9 +59939,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
59943
59939
 
59944
59940
  // src/funcs/repositoriesV2RepositoriesRetrieve.ts
59945
59941
  function repositoriesV2RepositoriesRetrieve(client$, request, options) {
59946
- return new APIPromise($do41(client$, request, options));
59942
+ return new APIPromise($do39(client$, request, options));
59947
59943
  }
59948
- async function $do41(client$, request, options) {
59944
+ async function $do39(client$, request, options) {
59949
59945
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59950
59946
  if (!parsed$.ok) {
59951
59947
  return [parsed$, { status: "invalid" }];
@@ -60020,12 +60016,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
60020
60016
  });
60021
60017
 
60022
60018
  // src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
60023
- var args34, tool$repositoriesV2RepositoriesRetrieve;
60019
+ var args32, tool$repositoriesV2RepositoriesRetrieve;
60024
60020
  var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
60025
60021
  init_repositoriesV2RepositoriesRetrieve();
60026
60022
  init_v2repositoriesretrieveop();
60027
60023
  init_tools();
60028
- args34 = {
60024
+ args32 = {
60029
60025
  request: V2RepositoriesRetrieveRequest$zodSchema
60030
60026
  };
60031
60027
  tool$repositoriesV2RepositoriesRetrieve = {
@@ -60040,7 +60036,7 @@ Returns one reusable repository workspace.`,
60040
60036
  openWorldHint: false,
60041
60037
  readOnlyHint: true
60042
60038
  },
60043
- args: args34,
60039
+ args: args32,
60044
60040
  tool: async (client, args, ctx) => {
60045
60041
  const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60046
60042
  if (!result.ok) {
@@ -60100,9 +60096,9 @@ var init_v2repositoriesupdateop = __esm(() => {
60100
60096
 
60101
60097
  // src/funcs/repositoriesV2RepositoriesUpdate.ts
60102
60098
  function repositoriesV2RepositoriesUpdate(client$, request, options) {
60103
- return new APIPromise($do42(client$, request, options));
60099
+ return new APIPromise($do40(client$, request, options));
60104
60100
  }
60105
- async function $do42(client$, request, options) {
60101
+ async function $do40(client$, request, options) {
60106
60102
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
60107
60103
  if (!parsed$.ok) {
60108
60104
  return [parsed$, { status: "invalid" }];
@@ -60178,12 +60174,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
60178
60174
  });
60179
60175
 
60180
60176
  // src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
60181
- var args35, tool$repositoriesV2RepositoriesUpdate;
60177
+ var args33, tool$repositoriesV2RepositoriesUpdate;
60182
60178
  var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
60183
60179
  init_repositoriesV2RepositoriesUpdate();
60184
60180
  init_v2repositoriesupdateop();
60185
60181
  init_tools();
60186
- args35 = {
60182
+ args33 = {
60187
60183
  request: V2RepositoriesUpdateRequest$zodSchema
60188
60184
  };
60189
60185
  tool$repositoriesV2RepositoriesUpdate = {
@@ -60198,7 +60194,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
60198
60194
  openWorldHint: false,
60199
60195
  readOnlyHint: false
60200
60196
  },
60201
- args: args35,
60197
+ args: args33,
60202
60198
  tool: async (client, args, ctx) => {
60203
60199
  const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60204
60200
  if (!result.ok) {
@@ -60214,9 +60210,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
60214
60210
 
60215
60211
  // src/funcs/siteAuditsV2SiteAuditsList.ts
60216
60212
  function siteAuditsV2SiteAuditsList(client$, options) {
60217
- return new APIPromise($do43(client$, options));
60213
+ return new APIPromise($do41(client$, options));
60218
60214
  }
60219
- async function $do43(client$, options) {
60215
+ async function $do41(client$, options) {
60220
60216
  const path$ = pathToFunc("/v2/site-audits")();
60221
60217
  const headers$ = new Headers(compactMap({
60222
60218
  Accept: "application/json"
@@ -60357,9 +60353,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
60357
60353
 
60358
60354
  // src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
60359
60355
  function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
60360
- return new APIPromise($do44(client$, request, options));
60356
+ return new APIPromise($do42(client$, request, options));
60361
60357
  }
60362
- async function $do44(client$, request, options) {
60358
+ async function $do42(client$, request, options) {
60363
60359
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60364
60360
  if (!parsed$.ok) {
60365
60361
  return [parsed$, { status: "invalid" }];
@@ -60434,12 +60430,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
60434
60430
  });
60435
60431
 
60436
60432
  // src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
60437
- var args36, tool$siteAuditsV2SiteAuditsRetrieve;
60433
+ var args34, tool$siteAuditsV2SiteAuditsRetrieve;
60438
60434
  var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
60439
60435
  init_siteAuditsV2SiteAuditsRetrieve();
60440
60436
  init_v2siteauditsretrieveop();
60441
60437
  init_tools();
60442
- args36 = {
60438
+ args34 = {
60443
60439
  request: V2SiteAuditsRetrieveRequest$zodSchema
60444
60440
  };
60445
60441
  tool$siteAuditsV2SiteAuditsRetrieve = {
@@ -60454,7 +60450,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
60454
60450
  openWorldHint: false,
60455
60451
  readOnlyHint: true
60456
60452
  },
60457
- args: args36,
60453
+ args: args34,
60458
60454
  tool: async (client, args, ctx) => {
60459
60455
  const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60460
60456
  if (!result.ok) {
@@ -60470,9 +60466,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
60470
60466
 
60471
60467
  // src/funcs/skillsV2SkillsList.ts
60472
60468
  function skillsV2SkillsList(client$, options) {
60473
- return new APIPromise($do45(client$, options));
60469
+ return new APIPromise($do43(client$, options));
60474
60470
  }
60475
- async function $do45(client$, options) {
60471
+ async function $do43(client$, options) {
60476
60472
  const path$ = pathToFunc("/v2/skills")();
60477
60473
  const headers$ = new Headers(compactMap({
60478
60474
  Accept: "application/json"
@@ -60562,9 +60558,9 @@ Returns reusable skills available to workflows and eval configurations.`,
60562
60558
 
60563
60559
  // src/funcs/statusV2AuthStatusGet.ts
60564
60560
  function statusV2AuthStatusGet(client$, options) {
60565
- return new APIPromise($do46(client$, options));
60561
+ return new APIPromise($do44(client$, options));
60566
60562
  }
60567
- async function $do46(client$, options) {
60563
+ async function $do44(client$, options) {
60568
60564
  const path$ = pathToFunc("/v2/auth/status")();
60569
60565
  const headers$ = new Headers(compactMap({
60570
60566
  Accept: "application/json"
@@ -60654,9 +60650,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
60654
60650
 
60655
60651
  // src/funcs/statusV2StatusGet.ts
60656
60652
  function statusV2StatusGet(client$, options) {
60657
- return new APIPromise($do47(client$, options));
60653
+ return new APIPromise($do45(client$, options));
60658
60654
  }
60659
- async function $do47(client$, options) {
60655
+ async function $do45(client$, options) {
60660
60656
  const path$ = pathToFunc("/v2/status")();
60661
60657
  const headers$ = new Headers(compactMap({
60662
60658
  Accept: "application/json"
@@ -60766,11 +60762,11 @@ var init_v2publictask = __esm(() => {
60766
60762
  priority: string2().nullable().optional(),
60767
60763
  rank: int().describe("Sort order within the batch, ascending; values need not start at 1."),
60768
60764
  reasoning: string2().nullable().optional(),
60769
- score: number2(),
60765
+ score: number2().nullable().optional().describe("Planner impact score; manually created tasks may be unscored."),
60770
60766
  source: string2().nullable().optional(),
60771
60767
  source_key: string2().describe("A finding key namespaced by source, such as `api_perf:https://example.com/docs/cli`."),
60772
60768
  source_refs: record(string2(), any()).optional().describe("Source references needed to understand or execute the task."),
60773
- source_type: string2().describe("A free-form source type such as `api_performance`; this field is not an enum."),
60769
+ source_type: string2().nullable().optional().describe("A free-form source type such as `api_performance`; manually created tasks may not have a source."),
60774
60770
  status: string2().describe("The workflow status. New tasks start as `new`; `added_to_sheet` and `snoozed` tasks are listed only when `status=all`."),
60775
60771
  task_type: string2().describe("A free-form label such as `Redirect` or `Docs`; this field is not an enum."),
60776
60772
  title: string2(),
@@ -60795,11 +60791,11 @@ var init_v2publictask = __esm(() => {
60795
60791
  priority: nullable(string2()).optional(),
60796
60792
  rank: int(),
60797
60793
  reasoning: nullable(string2()).optional(),
60798
- score: number2(),
60794
+ score: nullable(number2()).optional(),
60799
60795
  source: nullable(string2()).optional(),
60800
60796
  source_key: string2(),
60801
60797
  source_refs: record(string2(), any()).optional(),
60802
- source_type: string2(),
60798
+ source_type: nullable(string2()).optional(),
60803
60799
  status: string2(),
60804
60800
  task_type: string2(),
60805
60801
  title: string2(),
@@ -60876,9 +60872,9 @@ var init_v2taskslistop = __esm(() => {
60876
60872
 
60877
60873
  // src/funcs/tasksV2TasksList.ts
60878
60874
  function tasksV2TasksList(client$, request, options) {
60879
- return new APIPromise($do48(client$, request, options));
60875
+ return new APIPromise($do46(client$, request, options));
60880
60876
  }
60881
- async function $do48(client$, request, options) {
60877
+ async function $do46(client$, request, options) {
60882
60878
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
60883
60879
  if (!parsed$.ok) {
60884
60880
  return [parsed$, { status: "invalid" }];
@@ -60952,12 +60948,12 @@ var init_tasksV2TasksList = __esm(() => {
60952
60948
  });
60953
60949
 
60954
60950
  // src/mcp-server/tools/tasksV2TasksList.ts
60955
- var args37, tool$tasksV2TasksList;
60951
+ var args35, tool$tasksV2TasksList;
60956
60952
  var init_tasksV2TasksList2 = __esm(() => {
60957
60953
  init_tasksV2TasksList();
60958
60954
  init_v2taskslistop();
60959
60955
  init_tools();
60960
- args37 = {
60956
+ args35 = {
60961
60957
  request: V2TasksListRequest$zodSchema.optional()
60962
60958
  };
60963
60959
  tool$tasksV2TasksList = {
@@ -60972,7 +60968,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
60972
60968
  openWorldHint: false,
60973
60969
  readOnlyHint: true
60974
60970
  },
60975
- args: args37,
60971
+ args: args35,
60976
60972
  tool: async (client, args, ctx) => {
60977
60973
  const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60978
60974
  if (!result.ok) {
@@ -61003,9 +60999,9 @@ var init_v2tasksretrieveop = __esm(() => {
61003
60999
 
61004
61000
  // src/funcs/tasksV2TasksRetrieve.ts
61005
61001
  function tasksV2TasksRetrieve(client$, request, options) {
61006
- return new APIPromise($do49(client$, request, options));
61002
+ return new APIPromise($do47(client$, request, options));
61007
61003
  }
61008
- async function $do49(client$, request, options) {
61004
+ async function $do47(client$, request, options) {
61009
61005
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61010
61006
  if (!parsed$.ok) {
61011
61007
  return [parsed$, { status: "invalid" }];
@@ -61080,12 +61076,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
61080
61076
  });
61081
61077
 
61082
61078
  // src/mcp-server/tools/tasksV2TasksRetrieve.ts
61083
- var args38, tool$tasksV2TasksRetrieve;
61079
+ var args36, tool$tasksV2TasksRetrieve;
61084
61080
  var init_tasksV2TasksRetrieve2 = __esm(() => {
61085
61081
  init_tasksV2TasksRetrieve();
61086
61082
  init_v2tasksretrieveop();
61087
61083
  init_tools();
61088
- args38 = {
61084
+ args36 = {
61089
61085
  request: V2TasksRetrieveRequest$zodSchema
61090
61086
  };
61091
61087
  tool$tasksV2TasksRetrieve = {
@@ -61100,7 +61096,7 @@ Returns one persisted task and its execution prompt.`,
61100
61096
  openWorldHint: false,
61101
61097
  readOnlyHint: true
61102
61098
  },
61103
- args: args38,
61099
+ args: args36,
61104
61100
  tool: async (client, args, ctx) => {
61105
61101
  const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61106
61102
  if (!result.ok) {
@@ -61163,9 +61159,9 @@ var init_v2tasksupdateop = __esm(() => {
61163
61159
 
61164
61160
  // src/funcs/tasksV2TasksUpdate.ts
61165
61161
  function tasksV2TasksUpdate(client$, request, options) {
61166
- return new APIPromise($do50(client$, request, options));
61162
+ return new APIPromise($do48(client$, request, options));
61167
61163
  }
61168
- async function $do50(client$, request, options) {
61164
+ async function $do48(client$, request, options) {
61169
61165
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
61170
61166
  if (!parsed$.ok) {
61171
61167
  return [parsed$, { status: "invalid" }];
@@ -61241,12 +61237,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
61241
61237
  });
61242
61238
 
61243
61239
  // src/mcp-server/tools/tasksV2TasksUpdate.ts
61244
- var args39, tool$tasksV2TasksUpdate;
61240
+ var args37, tool$tasksV2TasksUpdate;
61245
61241
  var init_tasksV2TasksUpdate2 = __esm(() => {
61246
61242
  init_tasksV2TasksUpdate();
61247
61243
  init_v2tasksupdateop();
61248
61244
  init_tools();
61249
- args39 = {
61245
+ args37 = {
61250
61246
  request: V2TasksUpdateRequest$zodSchema
61251
61247
  };
61252
61248
  tool$tasksV2TasksUpdate = {
@@ -61261,7 +61257,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
61261
61257
  openWorldHint: false,
61262
61258
  readOnlyHint: false
61263
61259
  },
61264
- args: args39,
61260
+ args: args37,
61265
61261
  tool: async (client, args, ctx) => {
61266
61262
  const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61267
61263
  if (!result.ok) {
@@ -61349,9 +61345,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
61349
61345
 
61350
61346
  // src/funcs/visibilityV2VisibilityCitationsList.ts
61351
61347
  function visibilityV2VisibilityCitationsList(client$, request, options) {
61352
- return new APIPromise($do51(client$, request, options));
61348
+ return new APIPromise($do49(client$, request, options));
61353
61349
  }
61354
- async function $do51(client$, request, options) {
61350
+ async function $do49(client$, request, options) {
61355
61351
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
61356
61352
  if (!parsed$.ok) {
61357
61353
  return [parsed$, { status: "invalid" }];
@@ -61428,12 +61424,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
61428
61424
  });
61429
61425
 
61430
61426
  // src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
61431
- var args40, tool$visibilityV2VisibilityCitationsList;
61427
+ var args38, tool$visibilityV2VisibilityCitationsList;
61432
61428
  var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
61433
61429
  init_visibilityV2VisibilityCitationsList();
61434
61430
  init_v2visibilitycitationslistop();
61435
61431
  init_tools();
61436
- args40 = {
61432
+ args38 = {
61437
61433
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
61438
61434
  };
61439
61435
  tool$visibilityV2VisibilityCitationsList = {
@@ -61448,7 +61444,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
61448
61444
  openWorldHint: false,
61449
61445
  readOnlyHint: true
61450
61446
  },
61451
- args: args40,
61447
+ args: args38,
61452
61448
  tool: async (client, args, ctx) => {
61453
61449
  const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61454
61450
  if (!result.ok) {
@@ -61487,10 +61483,10 @@ var init_publiccurrentvisibilityresponse = __esm(() => {
61487
61483
  date: string2().nullable().optional().describe("Latest prompt-run date in the range."),
61488
61484
  end_date: string2(),
61489
61485
  has_data: boolean2(),
61490
- share_of_voice: number2().nullable().optional().describe("Share of all brand mentions across tracked companies, 0 to 1."),
61486
+ share_of_voice: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded."),
61491
61487
  share_of_voice_rank: int().nullable().optional(),
61492
61488
  start_date: string2(),
61493
- visibility_score: number2().nullable().optional().describe("The visibility score, from 0 to 1."),
61489
+ visibility_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded."),
61494
61490
  visibility_score_rank: int().nullable().optional()
61495
61491
  });
61496
61492
  });
@@ -61513,9 +61509,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
61513
61509
 
61514
61510
  // src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
61515
61511
  function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
61516
- return new APIPromise($do52(client$, request, options));
61512
+ return new APIPromise($do50(client$, request, options));
61517
61513
  }
61518
- async function $do52(client$, request, options) {
61514
+ async function $do50(client$, request, options) {
61519
61515
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61520
61516
  if (!parsed$.ok) {
61521
61517
  return [parsed$, { status: "invalid" }];
@@ -61589,12 +61585,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
61589
61585
  });
61590
61586
 
61591
61587
  // src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
61592
- var args41, tool$visibilityV2VisibilityCurrentRetrieve;
61588
+ var args39, tool$visibilityV2VisibilityCurrentRetrieve;
61593
61589
  var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
61594
61590
  init_visibilityV2VisibilityCurrentRetrieve();
61595
61591
  init_v2visibilitycurrentretrieveop();
61596
61592
  init_tools();
61597
- args41 = {
61593
+ args39 = {
61598
61594
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
61599
61595
  };
61600
61596
  tool$visibilityV2VisibilityCurrentRetrieve = {
@@ -61609,7 +61605,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
61609
61605
  openWorldHint: false,
61610
61606
  readOnlyHint: true
61611
61607
  },
61612
- args: args41,
61608
+ args: args39,
61613
61609
  tool: async (client, args, ctx) => {
61614
61610
  const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61615
61611
  if (!result.ok) {
@@ -61632,9 +61628,9 @@ var init_publiccompetitorrow = __esm(() => {
61632
61628
  average_position: number2().nullable().optional().describe("Mean mention position in AI responses; 1 is first and lower is better. 0 when never mentioned."),
61633
61629
  average_position_rank: int().nullable().optional().describe("Companies with an `average_position` of 0 rank last."),
61634
61630
  company: PublicCompany$zodSchema,
61635
- share_of_voice: number2().nullable().optional().describe("Share of all brand mentions across tracked companies, 0 to 1; rows sum to about 1."),
61631
+ share_of_voice: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded. A run can mention several companies, so rows do not sum to 1."),
61636
61632
  share_of_voice_rank: int().nullable().optional(),
61637
- visibility_score: number2().nullable().optional().describe("The company's visibility score, from 0 to 1. Rows do not sum to 1."),
61633
+ visibility_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. Rows do not sum to 1."),
61638
61634
  visibility_score_rank: int().nullable().optional()
61639
61635
  });
61640
61636
  });
@@ -61695,10 +61691,10 @@ var init_publicvisibilitysnapshot = __esm(() => {
61695
61691
  PublicVisibilitySnapshot$zodSchema = object({
61696
61692
  average_position: number2().nullable().optional().describe("Mean mention position in AI responses; 1 is first and lower is better."),
61697
61693
  average_position_rank: int().nullable().optional(),
61698
- share_of_voice: number2().nullable().optional().describe("Share of all brand mentions across tracked companies, 0 to 1."),
61694
+ share_of_voice: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded."),
61699
61695
  share_of_voice_rank: int().nullable().optional(),
61700
61696
  total_citations: int().default(0).describe("Owned-domain citations across all platforms; 0, not `null`, with no prompt runs."),
61701
- visibility_score: number2().nullable().optional().describe("The visibility score, from 0 to 1."),
61697
+ visibility_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded."),
61702
61698
  visibility_score_rank: int().nullable().optional()
61703
61699
  });
61704
61700
  });
@@ -61752,9 +61748,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
61752
61748
 
61753
61749
  // src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
61754
61750
  function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
61755
- return new APIPromise($do53(client$, request, options));
61751
+ return new APIPromise($do51(client$, request, options));
61756
61752
  }
61757
- async function $do53(client$, request, options) {
61753
+ async function $do51(client$, request, options) {
61758
61754
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61759
61755
  if (!parsed$.ok) {
61760
61756
  return [parsed$, { status: "invalid" }];
@@ -61828,12 +61824,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
61828
61824
  });
61829
61825
 
61830
61826
  // src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
61831
- var args42, tool$visibilityV2VisibilityOverviewRetrieve;
61827
+ var args40, tool$visibilityV2VisibilityOverviewRetrieve;
61832
61828
  var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
61833
61829
  init_visibilityV2VisibilityOverviewRetrieve();
61834
61830
  init_v2visibilityoverviewretrieveop();
61835
61831
  init_tools();
61836
- args42 = {
61832
+ args40 = {
61837
61833
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
61838
61834
  };
61839
61835
  tool$visibilityV2VisibilityOverviewRetrieve = {
@@ -61848,7 +61844,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
61848
61844
  openWorldHint: false,
61849
61845
  readOnlyHint: true
61850
61846
  },
61851
- args: args42,
61847
+ args: args40,
61852
61848
  tool: async (client, args, ctx) => {
61853
61849
  const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61854
61850
  if (!result.ok) {
@@ -61882,8 +61878,8 @@ var init_publicpromptvisibilitymetrics = __esm(() => {
61882
61878
  average_position: number2().nullable().optional().describe("Mean mention position in AI responses; 1 is first and lower is better. 0 when runs produced no mentions."),
61883
61879
  citation_count: int().default(0).describe("Owned-domain citations only."),
61884
61880
  run_count: int().default(0).describe("One per prompt, platform, and run date."),
61885
- share_of_voice: number2().nullable().optional().describe("Share of all brand mentions across tracked companies, 0 to 1."),
61886
- visibility_score: number2().nullable().optional().describe("The visibility score, from 0 to 1."),
61881
+ share_of_voice: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded."),
61882
+ visibility_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded."),
61887
61883
  visibility_score_rank: int().nullable().optional()
61888
61884
  });
61889
61885
  });
@@ -61962,9 +61958,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
61962
61958
 
61963
61959
  // src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
61964
61960
  function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
61965
- return new APIPromise($do54(client$, request, options));
61961
+ return new APIPromise($do52(client$, request, options));
61966
61962
  }
61967
- async function $do54(client$, request, options) {
61963
+ async function $do52(client$, request, options) {
61968
61964
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61969
61965
  if (!parsed$.ok) {
61970
61966
  return [parsed$, { status: "invalid" }];
@@ -62038,12 +62034,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
62038
62034
  });
62039
62035
 
62040
62036
  // src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
62041
- var args43, tool$visibilityV2VisibilityPromptsRetrieve;
62037
+ var args41, tool$visibilityV2VisibilityPromptsRetrieve;
62042
62038
  var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
62043
62039
  init_visibilityV2VisibilityPromptsRetrieve();
62044
62040
  init_v2visibilitypromptsretrieveop();
62045
62041
  init_tools();
62046
- args43 = {
62042
+ args41 = {
62047
62043
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
62048
62044
  };
62049
62045
  tool$visibilityV2VisibilityPromptsRetrieve = {
@@ -62058,7 +62054,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
62058
62054
  openWorldHint: false,
62059
62055
  readOnlyHint: true
62060
62056
  },
62061
- args: args43,
62057
+ args: args41,
62062
62058
  tool: async (client, args, ctx) => {
62063
62059
  const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62064
62060
  if (!result.ok) {
@@ -62082,7 +62078,7 @@ function createMCPServer(deps) {
62082
62078
  sizes: ["any"]
62083
62079
  }],
62084
62080
  name: "LightsageMcp",
62085
- version: "0.3.0"
62081
+ version: "0.4.0"
62086
62082
  });
62087
62083
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
62088
62084
  security: deps.security,
@@ -62139,12 +62135,10 @@ function createMCPServer(deps) {
62139
62135
  tool(tool$evalsV2EvalConfigurationsUpdate);
62140
62136
  tool(tool$evalsV2EvalConfigurationsDelete);
62141
62137
  tool(tool$evalsRun);
62142
- tool(tool$evalsAnalysis);
62138
+ tool(tool$evalsCancel);
62143
62139
  tool(tool$evalsTrace);
62140
+ tool(tool$evalsGet);
62144
62141
  tool(tool$evalRunsV2EvalRunsList);
62145
- tool(tool$evalRunsV2EvalRunsRetrieve);
62146
- tool(tool$evalResultsV2EvalResultsList);
62147
- tool(tool$evalResultsV2EvalResultsRetrieve);
62148
62142
  tool(tool$agentsV2AgentsList);
62149
62143
  tool(tool$repositoriesV2RepositoriesList);
62150
62144
  tool(tool$repositoriesV2RepositoriesCreate);
@@ -62171,11 +62165,9 @@ var init_server2 = __esm(() => {
62171
62165
  init_contentV2ContentFinalize2();
62172
62166
  init_contentV2ContentRetrieve2();
62173
62167
  init_environmentsV2EnvironmentsList2();
62174
- init_evalResultsV2EvalResultsList2();
62175
- init_evalResultsV2EvalResultsRetrieve2();
62176
62168
  init_evalRunsV2EvalRunsList2();
62177
- init_evalRunsV2EvalRunsRetrieve2();
62178
- init_evalsAnalysis2();
62169
+ init_evalsCancel2();
62170
+ init_evalsGet2();
62179
62171
  init_evalsRun2();
62180
62172
  init_evalsTrace2();
62181
62173
  init_evalsV2EvalConfigurationsCreate2();
@@ -62293,13 +62285,13 @@ Renames a prompt topic and returns the updated topic.`
62293
62285
  name: "prompts-v2-prompt-runs-list",
62294
62286
  description: `List Prompt Runs
62295
62287
 
62296
- Returns stored prompt runs without exposing raw runtime or provider configuration. Filterable by prompt, platform, and date range.`
62288
+ Returns stored prompt runs with limit-and-offset pagination, without exposing raw runtime or provider configuration. Filter by prompt, platform, or date range.`
62297
62289
  },
62298
62290
  {
62299
62291
  name: "prompts-v2-prompt-runs-retrieve",
62300
62292
  description: `Retrieve Prompt Run
62301
62293
 
62302
- Returns one stored prompt run, including its mentions and citations.`
62294
+ Returns one stored prompt run, including mentions, citations, and any sanitized coding-agent trace captured for the run.`
62303
62295
  },
62304
62296
  {
62305
62297
  name: "prompts-v2-prompts-retrieve",
@@ -62379,21 +62371,21 @@ Returns one audited page with its score, priority, supporting evidence, and reco
62379
62371
  name: "evals-v2-evals-list",
62380
62372
  description: `List Evals
62381
62373
 
62382
- Returns all active evals including workflow, MCP, CLI, and skill evals owned by the organization.`
62374
+ Returns all active eval definitions owned by the organization.`
62383
62375
  },
62384
62376
  {
62385
62377
  name: "evals-v2-evals-create",
62386
- description: "Create Eval\n\nCreates an eval with a task prompt, subject, and plain-text success criterion in `judge`. The eval can then be run through eval runs."
62378
+ description: "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values."
62387
62379
  },
62388
62380
  {
62389
62381
  name: "evals-v2-evals-retrieve",
62390
62382
  description: `Retrieve Eval
62391
62383
 
62392
- Returns one eval and its judge configuration.`
62384
+ Returns one reusable eval simulation definition.`
62393
62385
  },
62394
62386
  {
62395
62387
  name: "evals-v2-evals-update",
62396
- description: "Update Eval\n\nUpdates an eval's task prompt, subject, plain-text `judge`, or name. Omitted fields remain unchanged."
62388
+ description: "Update Eval\n\nUpdates a reusable eval simulation definition. Omitted fields remain unchanged. Empty `agent`, `clis`, `mcps`, `setup_commands`, `cleanup_commands`, or `tags` arrays clear those collections, and `persona: null` clears the saved persona."
62397
62389
  },
62398
62390
  {
62399
62391
  name: "evals-v2-evals-delete",
@@ -62433,39 +62425,27 @@ Permanently deletes an eval configuration and returns its last saved state.`
62433
62425
  },
62434
62426
  {
62435
62427
  name: "evals-run",
62436
- description: "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`, `configuration_id`, and `agent_id`.\n- **Direct create-and-run:** provide `prompt`, `judges`, and `agent_id`. You may also provide a repository, write-only environment variables, and public skill packages.\n\nDo not combine saved-run and direct-run fields. No separate `mode` field is required."
62428
+ description: "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required. If the organization lacks the estimated credits, the request fails with `402` before dispatching work.\n\nA saved or inline environment containing an empty or placeholder credential is rejected with `400` before any evaluation is dispatched."
62437
62429
  },
62438
62430
  {
62439
- name: "evals-analysis",
62440
- description: `Retrieve eval run analysis
62431
+ name: "evals-cancel",
62432
+ description: `Cancel an eval run
62441
62433
 
62442
- Returns the persisted analysis produced for each completed attempt in one eval run. The analysis includes the verdict, outcome explanation, findings, bottleneck, and analysis sections. Active runs return the analysis available so far together with current run status and progress.`
62434
+ Marks an active eval run as cancelled and prevents queued attempts from starting. Running sandbox attempts are stopped asynchronously. Requests already sent to an external provider cannot be recalled, but any later response does not change the run from cancelled. Repeating this request for an already-cancelled run is safe.`
62443
62435
  },
62444
62436
  {
62445
62437
  name: "evals-trace",
62446
62438
  description: "Retrieve an eval run trace\n\nReturns a finite page of sanitized execution events for one eval run. Use `next_after_id` as `after_id` to retrieve the next page. Use the monitor operation instead when following a run live."
62447
62439
  },
62448
62440
  {
62449
- name: "eval-runs-v2-eval-runs-list",
62450
- description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
62451
- },
62452
- {
62453
- name: "eval-runs-v2-eval-runs-retrieve",
62454
- description: `Retrieve Run
62455
-
62456
- Returns the status and progress of an eval job. Poll until the status reaches a terminal value.`
62457
- },
62458
- {
62459
- name: "eval-results-v2-eval-results-list",
62460
- description: `List Results
62441
+ name: "evals-get",
62442
+ description: `Retrieve an eval run
62461
62443
 
62462
- Returns completed custom-eval results from all supported run flows, ordered newest first. Result IDs are different from eval run IDs.`
62444
+ Returns the run's current status and progress. Once its attempts finish, the response also includes their results and analysis. Poll this until the status reaches a terminal value. Use the trace operation for the raw execution event log, or the monitor operation to follow a run live.`
62463
62445
  },
62464
62446
  {
62465
- name: "eval-results-v2-eval-results-retrieve",
62466
- description: `Retrieve Result
62467
-
62468
- Returns one completed custom-eval result with its output and diagnostic details.`
62447
+ name: "eval-runs-v2-eval-runs-list",
62448
+ description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
62469
62449
  },
62470
62450
  {
62471
62451
  name: "agents-v2-agents-list",
@@ -63431,7 +63411,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
63431
63411
  <h1>Instructions</h1>
63432
63412
  <p>One-click installation for Claude Desktop users</p>
63433
63413
  <div class="instruction-item">
63434
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.3.0/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
63414
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.0/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
63435
63415
  \uD83D\uDCE5 Download MCP Bundle
63436
63416
  </a>
63437
63417
  </div>
@@ -66309,7 +66289,7 @@ var routes = buildRouteMap({
66309
66289
  var app = buildApplication(routes, {
66310
66290
  name: "mcp",
66311
66291
  versionInfo: {
66312
- currentVersion: "0.3.0"
66292
+ currentVersion: "0.4.0"
66313
66293
  }
66314
66294
  });
66315
66295
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -66317,5 +66297,5 @@ export {
66317
66297
  app
66318
66298
  };
66319
66299
 
66320
- //# debugId=E8194E142237D9EF64756E2164756E21
66300
+ //# debugId=0CC0D115366CE4FD64756E2164756E21
66321
66301
  //# sourceMappingURL=mcp-server.js.map