@lightsage/mcp 0.4.4 → 0.4.6

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 (250) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +1320 -565
  3. package/bin/mcp-server.js.map +46 -24
  4. package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts +15 -0
  5. package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts.map +1 -0
  6. package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.js +72 -0
  7. package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.js.map +1 -0
  8. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts +16 -0
  9. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts.map +1 -0
  10. package/esm/funcs/{contentV2ContentDraftsCreate.js → agentPreferenceV2AgentPreferenceEvalsCreate.js} +9 -9
  11. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.js.map +1 -0
  12. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts +16 -0
  13. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts.map +1 -0
  14. package/esm/funcs/{contentV2ContentFinalize.js → agentPreferenceV2AgentPreferenceEvalsDelete.js} +11 -11
  15. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.js.map +1 -0
  16. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.d.ts +15 -0
  17. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.d.ts.map +1 -0
  18. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.js +72 -0
  19. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.js.map +1 -0
  20. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts +16 -0
  21. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts.map +1 -0
  22. package/esm/funcs/{contentV2ContentRetrieve.js → agentPreferenceV2AgentPreferenceEvalsRetrieve.js} +10 -10
  23. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.js.map +1 -0
  24. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts +16 -0
  25. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts.map +1 -0
  26. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.js +89 -0
  27. package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.js.map +1 -0
  28. package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts +16 -0
  29. package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts.map +1 -0
  30. package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js +86 -0
  31. package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js.map +1 -0
  32. package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.d.ts +16 -0
  33. package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.d.ts.map +1 -0
  34. package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.js +93 -0
  35. package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.js.map +1 -0
  36. package/esm/landing-page.js +1 -1
  37. package/esm/lib/config.d.ts +2 -2
  38. package/esm/lib/config.js +2 -2
  39. package/esm/mcp-server/mcp-server.js +1 -1
  40. package/esm/mcp-server/server.d.ts.map +1 -1
  41. package/esm/mcp-server/server.js +17 -7
  42. package/esm/mcp-server/server.js.map +1 -1
  43. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts +3 -0
  44. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts.map +1 -0
  45. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.js +30 -0
  46. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.js.map +1 -0
  47. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts +7 -0
  48. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts.map +1 -0
  49. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.js +35 -0
  50. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.js.map +1 -0
  51. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts +7 -0
  52. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts.map +1 -0
  53. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.js +35 -0
  54. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.js.map +1 -0
  55. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.d.ts +3 -0
  56. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.d.ts.map +1 -0
  57. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.js +30 -0
  58. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.js.map +1 -0
  59. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts +7 -0
  60. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts.map +1 -0
  61. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.js +35 -0
  62. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.js.map +1 -0
  63. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts +7 -0
  64. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts.map +1 -0
  65. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.js +35 -0
  66. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.js.map +1 -0
  67. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts +7 -0
  68. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts.map +1 -0
  69. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js +35 -0
  70. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js.map +1 -0
  71. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.d.ts +7 -0
  72. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.d.ts.map +1 -0
  73. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.js +35 -0
  74. package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.js.map +1 -0
  75. package/esm/models/createevaltemplaterequest.d.ts +1 -1
  76. package/esm/models/createv2agentpreferenceevalrequest.d.ts +14 -0
  77. package/esm/models/createv2agentpreferenceevalrequest.d.ts.map +1 -0
  78. package/esm/models/createv2agentpreferenceevalrequest.js +17 -0
  79. package/esm/models/createv2agentpreferenceevalrequest.js.map +1 -0
  80. package/esm/models/evaltemplate.d.ts +1 -1
  81. package/esm/models/updateevaltemplaterequest.d.ts +1 -1
  82. package/esm/models/updatev2agentpreferenceevalrequest.d.ts +13 -0
  83. package/esm/models/updatev2agentpreferenceevalrequest.d.ts.map +1 -0
  84. package/esm/models/updatev2agentpreferenceevalrequest.js +16 -0
  85. package/esm/models/updatev2agentpreferenceevalrequest.js.map +1 -0
  86. package/esm/models/v2agentpreferencecompany.d.ts +7 -0
  87. package/esm/models/v2agentpreferencecompany.d.ts.map +1 -0
  88. package/esm/models/v2agentpreferencecompany.js +10 -0
  89. package/esm/models/v2agentpreferencecompany.js.map +1 -0
  90. package/esm/models/v2agentpreferencecompetitor.d.ts +9 -0
  91. package/esm/models/v2agentpreferencecompetitor.d.ts.map +1 -0
  92. package/esm/models/v2agentpreferencecompetitor.js +12 -0
  93. package/esm/models/v2agentpreferencecompetitor.js.map +1 -0
  94. package/esm/models/v2agentpreferencecompetitorsresponse.d.ts +8 -0
  95. package/esm/models/v2agentpreferencecompetitorsresponse.d.ts.map +1 -0
  96. package/esm/models/v2agentpreferencecompetitorsresponse.js +11 -0
  97. package/esm/models/v2agentpreferencecompetitorsresponse.js.map +1 -0
  98. package/esm/models/v2agentpreferenceeval.d.ts +19 -0
  99. package/esm/models/v2agentpreferenceeval.d.ts.map +1 -0
  100. package/esm/models/v2agentpreferenceeval.js +23 -0
  101. package/esm/models/v2agentpreferenceeval.js.map +1 -0
  102. package/esm/models/v2agentpreferenceevalscreateop.d.ts +6 -0
  103. package/esm/models/v2agentpreferenceevalscreateop.d.ts.map +1 -0
  104. package/esm/models/v2agentpreferenceevalscreateop.js +12 -0
  105. package/esm/models/v2agentpreferenceevalscreateop.js.map +1 -0
  106. package/esm/models/v2agentpreferenceevalsdeleteop.d.ts +10 -0
  107. package/esm/models/v2agentpreferenceevalsdeleteop.d.ts.map +1 -0
  108. package/esm/models/v2agentpreferenceevalsdeleteop.js +15 -0
  109. package/esm/models/v2agentpreferenceevalsdeleteop.js.map +1 -0
  110. package/esm/models/v2agentpreferenceevalsresponse.d.ts +8 -0
  111. package/esm/models/v2agentpreferenceevalsresponse.d.ts.map +1 -0
  112. package/esm/models/v2agentpreferenceevalsresponse.js +11 -0
  113. package/esm/models/v2agentpreferenceevalsresponse.js.map +1 -0
  114. package/esm/models/v2agentpreferenceevalsretrieveop.d.ts +10 -0
  115. package/esm/models/v2agentpreferenceevalsretrieveop.d.ts.map +1 -0
  116. package/esm/models/v2agentpreferenceevalsretrieveop.js +15 -0
  117. package/esm/models/v2agentpreferenceevalsretrieveop.js.map +1 -0
  118. package/esm/models/v2agentpreferenceevalsupdateop.d.ts +12 -0
  119. package/esm/models/v2agentpreferenceevalsupdateop.d.ts.map +1 -0
  120. package/esm/models/v2agentpreferenceevalsupdateop.js +17 -0
  121. package/esm/models/v2agentpreferenceevalsupdateop.js.map +1 -0
  122. package/esm/models/v2agentpreferenceheadtoheadresponse.d.ts +15 -0
  123. package/esm/models/v2agentpreferenceheadtoheadresponse.d.ts.map +1 -0
  124. package/esm/models/v2agentpreferenceheadtoheadresponse.js +18 -0
  125. package/esm/models/v2agentpreferenceheadtoheadresponse.js.map +1 -0
  126. package/esm/models/v2agentpreferenceheadtoheadretrieveop.d.ts +10 -0
  127. package/esm/models/v2agentpreferenceheadtoheadretrieveop.d.ts.map +1 -0
  128. package/esm/models/v2agentpreferenceheadtoheadretrieveop.js +15 -0
  129. package/esm/models/v2agentpreferenceheadtoheadretrieveop.js.map +1 -0
  130. package/esm/models/v2agentpreferencematchup.d.ts +14 -0
  131. package/esm/models/v2agentpreferencematchup.d.ts.map +1 -0
  132. package/esm/models/v2agentpreferencematchup.js +17 -0
  133. package/esm/models/v2agentpreferencematchup.js.map +1 -0
  134. package/esm/models/v2agentpreferencerecord.d.ts +10 -0
  135. package/esm/models/v2agentpreferencerecord.d.ts.map +1 -0
  136. package/esm/models/v2agentpreferencerecord.js +13 -0
  137. package/esm/models/v2agentpreferencerecord.js.map +1 -0
  138. package/esm/models/v2agentpreferenceresult.d.ts +12 -0
  139. package/esm/models/v2agentpreferenceresult.d.ts.map +1 -0
  140. package/esm/models/v2agentpreferenceresult.js +16 -0
  141. package/esm/models/v2agentpreferenceresult.js.map +1 -0
  142. package/esm/models/v2agentpreferenceresultslistop.d.ts +12 -0
  143. package/esm/models/v2agentpreferenceresultslistop.d.ts.map +1 -0
  144. package/esm/models/v2agentpreferenceresultslistop.js +17 -0
  145. package/esm/models/v2agentpreferenceresultslistop.js.map +1 -0
  146. package/esm/models/v2agentpreferenceresultsresponse.d.ts +11 -0
  147. package/esm/models/v2agentpreferenceresultsresponse.d.ts.map +1 -0
  148. package/esm/models/v2agentpreferenceresultsresponse.js +14 -0
  149. package/esm/models/v2agentpreferenceresultsresponse.js.map +1 -0
  150. package/esm/models/v2evalresultsummary.d.ts +2 -0
  151. package/esm/models/v2evalresultsummary.d.ts.map +1 -1
  152. package/esm/models/v2evalresultsummary.js +3 -0
  153. package/esm/models/v2evalresultsummary.js.map +1 -1
  154. package/esm/models/v2preferenceresult.d.ts +30 -0
  155. package/esm/models/v2preferenceresult.d.ts.map +1 -0
  156. package/esm/models/v2preferenceresult.js +26 -0
  157. package/esm/models/v2preferenceresult.js.map +1 -0
  158. package/esm/tool-names.d.ts.map +1 -1
  159. package/esm/tool-names.js +32 -12
  160. package/esm/tool-names.js.map +1 -1
  161. package/package.json +1 -1
  162. package/src/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.ts +124 -0
  163. package/src/funcs/{contentV2ContentDraftsCreate.ts → agentPreferenceV2AgentPreferenceEvalsCreate.ts} +13 -13
  164. package/src/funcs/{contentV2ContentFinalize.ts → agentPreferenceV2AgentPreferenceEvalsDelete.ts} +14 -14
  165. package/src/funcs/agentPreferenceV2AgentPreferenceEvalsList.ts +124 -0
  166. package/src/funcs/{contentV2ContentRetrieve.ts → agentPreferenceV2AgentPreferenceEvalsRetrieve.ts} +13 -13
  167. package/src/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.ts +154 -0
  168. package/src/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts +151 -0
  169. package/src/funcs/agentPreferenceV2AgentPreferenceResultsList.ts +158 -0
  170. package/src/landing-page.ts +1 -1
  171. package/src/lib/config.ts +2 -2
  172. package/src/mcp-server/mcp-server.ts +1 -1
  173. package/src/mcp-server/server.ts +17 -7
  174. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.ts +37 -0
  175. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.ts +45 -0
  176. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.ts +45 -0
  177. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.ts +36 -0
  178. package/src/mcp-server/tools/{contentV2ContentRetrieve.ts → agentPreferenceV2AgentPreferenceEvalsRetrieve.ts} +11 -9
  179. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.ts +45 -0
  180. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts +44 -0
  181. package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.ts +45 -0
  182. package/src/models/createv2agentpreferenceevalrequest.ts +48 -0
  183. package/src/models/updatev2agentpreferenceevalrequest.ts +38 -0
  184. package/src/models/v2agentpreferencecompany.ts +18 -0
  185. package/src/models/v2agentpreferencecompetitor.ts +22 -0
  186. package/src/models/v2agentpreferencecompetitorsresponse.ts +22 -0
  187. package/src/models/v2agentpreferenceeval.ts +54 -0
  188. package/src/models/v2agentpreferenceevalscreateop.ts +25 -0
  189. package/src/models/v2agentpreferenceevalsdeleteop.ts +33 -0
  190. package/src/models/v2agentpreferenceevalsresponse.ts +22 -0
  191. package/src/models/v2agentpreferenceevalsretrieveop.ts +33 -0
  192. package/src/models/v2agentpreferenceevalsupdateop.ts +41 -0
  193. package/src/models/v2agentpreferenceheadtoheadresponse.ts +46 -0
  194. package/src/models/v2agentpreferenceheadtoheadretrieveop.ts +37 -0
  195. package/src/models/v2agentpreferencematchup.ts +42 -0
  196. package/src/models/v2agentpreferencerecord.ts +30 -0
  197. package/src/models/v2agentpreferenceresult.ts +35 -0
  198. package/src/models/v2agentpreferenceresultslistop.ts +39 -0
  199. package/src/models/v2agentpreferenceresultsresponse.ts +28 -0
  200. package/src/models/v2evalresultsummary.ts +9 -0
  201. package/src/models/v2preferenceresult.ts +50 -0
  202. package/src/tool-names.ts +32 -12
  203. package/esm/funcs/contentV2ContentDraftsCreate.d.ts +0 -16
  204. package/esm/funcs/contentV2ContentDraftsCreate.d.ts.map +0 -1
  205. package/esm/funcs/contentV2ContentDraftsCreate.js.map +0 -1
  206. package/esm/funcs/contentV2ContentFinalize.d.ts +0 -16
  207. package/esm/funcs/contentV2ContentFinalize.d.ts.map +0 -1
  208. package/esm/funcs/contentV2ContentFinalize.js.map +0 -1
  209. package/esm/funcs/contentV2ContentRetrieve.d.ts +0 -16
  210. package/esm/funcs/contentV2ContentRetrieve.d.ts.map +0 -1
  211. package/esm/funcs/contentV2ContentRetrieve.js.map +0 -1
  212. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts +0 -7
  213. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.d.ts.map +0 -1
  214. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js +0 -35
  215. package/esm/mcp-server/tools/contentV2ContentDraftsCreate.js.map +0 -1
  216. package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts +0 -7
  217. package/esm/mcp-server/tools/contentV2ContentFinalize.d.ts.map +0 -1
  218. package/esm/mcp-server/tools/contentV2ContentFinalize.js +0 -35
  219. package/esm/mcp-server/tools/contentV2ContentFinalize.js.map +0 -1
  220. package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts +0 -7
  221. package/esm/mcp-server/tools/contentV2ContentRetrieve.d.ts.map +0 -1
  222. package/esm/mcp-server/tools/contentV2ContentRetrieve.js +0 -35
  223. package/esm/mcp-server/tools/contentV2ContentRetrieve.js.map +0 -1
  224. package/esm/models/generatecontentdraftrequest.d.ts +0 -9
  225. package/esm/models/generatecontentdraftrequest.d.ts.map +0 -1
  226. package/esm/models/generatecontentdraftrequest.js +0 -12
  227. package/esm/models/generatecontentdraftrequest.js.map +0 -1
  228. package/esm/models/publiccontent.d.ts +0 -11
  229. package/esm/models/publiccontent.d.ts.map +0 -1
  230. package/esm/models/publiccontent.js +0 -14
  231. package/esm/models/publiccontent.js.map +0 -1
  232. package/esm/models/v2contentdraftscreateop.d.ts +0 -6
  233. package/esm/models/v2contentdraftscreateop.d.ts.map +0 -1
  234. package/esm/models/v2contentdraftscreateop.js +0 -12
  235. package/esm/models/v2contentdraftscreateop.js.map +0 -1
  236. package/esm/models/v2contentfinalizeop.d.ts +0 -10
  237. package/esm/models/v2contentfinalizeop.d.ts.map +0 -1
  238. package/esm/models/v2contentfinalizeop.js +0 -15
  239. package/esm/models/v2contentfinalizeop.js.map +0 -1
  240. package/esm/models/v2contentretrieveop.d.ts +0 -10
  241. package/esm/models/v2contentretrieveop.d.ts.map +0 -1
  242. package/esm/models/v2contentretrieveop.js +0 -15
  243. package/esm/models/v2contentretrieveop.js.map +0 -1
  244. package/src/mcp-server/tools/contentV2ContentDraftsCreate.ts +0 -43
  245. package/src/mcp-server/tools/contentV2ContentFinalize.ts +0 -43
  246. package/src/models/generatecontentdraftrequest.ts +0 -28
  247. package/src/models/publiccontent.ts +0 -24
  248. package/src/models/v2contentdraftscreateop.ts +0 -20
  249. package/src/models/v2contentfinalizeop.ts +0 -28
  250. package/src/models/v2contentretrieveop.ts +0 -28
package/bin/mcp-server.js CHANGED
@@ -52844,9 +52844,9 @@ var init_config = __esm(() => {
52844
52844
  SDK_METADATA = {
52845
52845
  language: "typescript",
52846
52846
  openapiDocVersion: "1.0.0",
52847
- sdkVersion: "0.4.4",
52847
+ sdkVersion: "0.4.6",
52848
52848
  genVersion: "2.943.0",
52849
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.4 2.943.0 1.0.0 @lightsage/mcp"
52849
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.6 2.943.0 1.0.0 @lightsage/mcp"
52850
52850
  };
52851
52851
  });
52852
52852
 
@@ -54265,12 +54265,621 @@ var init_async = __esm(() => {
54265
54265
  };
54266
54266
  });
54267
54267
 
54268
- // src/funcs/agentsV2AgentsList.ts
54269
- function agentsV2AgentsList(client$, options) {
54268
+ // src/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.ts
54269
+ function agentPreferenceV2AgentPreferenceCompetitorsList(client$, options) {
54270
54270
  return new APIPromise($do(client$, options));
54271
54271
  }
54272
54272
  async function $do(client$, options) {
54273
- const path$ = pathToFunc("/v2/agents")();
54273
+ const path$ = pathToFunc("/v2/agent-preference/competitors")();
54274
+ const headers$ = new Headers(compactMap({
54275
+ Accept: "application/json"
54276
+ }));
54277
+ const securityInput = await extractSecurity(client$._options.security);
54278
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54279
+ const context = {
54280
+ options: client$._options,
54281
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54282
+ operationID: "v2_agent_preference_competitors_list",
54283
+ oAuth2Scopes: null,
54284
+ resolvedSecurity: requestSecurity,
54285
+ securitySource: client$._options.security,
54286
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54287
+ retryCodes: options?.retryCodes || [
54288
+ "429",
54289
+ "500",
54290
+ "502",
54291
+ "503",
54292
+ "504"
54293
+ ]
54294
+ };
54295
+ const requestRes = client$._createRequest(context, {
54296
+ security: requestSecurity,
54297
+ method: "GET",
54298
+ baseURL: options?.serverURL,
54299
+ path: path$,
54300
+ headers: headers$,
54301
+ userAgent: client$._options.userAgent,
54302
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54303
+ }, options);
54304
+ if (!requestRes.ok) {
54305
+ return [requestRes, { status: "invalid" }];
54306
+ }
54307
+ const req$ = requestRes.value;
54308
+ const doResult = await client$._do(req$, {
54309
+ context,
54310
+ errorCodes: [],
54311
+ retryConfig: context.retryConfig,
54312
+ retryCodes: context.retryCodes
54313
+ });
54314
+ if (!doResult.ok) {
54315
+ return [doResult, { status: "request-error", request: req$ }];
54316
+ }
54317
+ return [doResult, {
54318
+ status: "complete",
54319
+ request: req$,
54320
+ response: doResult.value
54321
+ }];
54322
+ }
54323
+ var init_agentPreferenceV2AgentPreferenceCompetitorsList = __esm(() => {
54324
+ init_primitives();
54325
+ init_security();
54326
+ init_url();
54327
+ init_async();
54328
+ });
54329
+
54330
+ // src/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.ts
54331
+ var tool$agentPreferenceV2AgentPreferenceCompetitorsList;
54332
+ var init_agentPreferenceV2AgentPreferenceCompetitorsList2 = __esm(() => {
54333
+ init_agentPreferenceV2AgentPreferenceCompetitorsList();
54334
+ init_tools();
54335
+ tool$agentPreferenceV2AgentPreferenceCompetitorsList = {
54336
+ name: "agent-preference-v2-agent-preference-competitors-9f0",
54337
+ description: `List Competitors
54338
+
54339
+ Returns the tracked competitors your company can be compared against. Use a returned \`id\` as \`competitor_id\` when creating an Agent Preference eval.`,
54340
+ annotations: {
54341
+ title: "",
54342
+ destructiveHint: false,
54343
+ idempotentHint: false,
54344
+ openWorldHint: false,
54345
+ readOnlyHint: true
54346
+ },
54347
+ tool: async (client, ctx) => {
54348
+ const [result] = await agentPreferenceV2AgentPreferenceCompetitorsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
54349
+ if (!result.ok) {
54350
+ return {
54351
+ content: [{ type: "text", text: result.error.message }],
54352
+ isError: true
54353
+ };
54354
+ }
54355
+ return formatResult(result.value);
54356
+ }
54357
+ };
54358
+ });
54359
+
54360
+ // src/models/errors/sdkvalidationerror.ts
54361
+ function formatZodError(err) {
54362
+ return prettifyError(err);
54363
+ }
54364
+ var SDKValidationError;
54365
+ var init_sdkvalidationerror = __esm(() => {
54366
+ init_zod();
54367
+ SDKValidationError = class SDKValidationError extends Error {
54368
+ rawValue;
54369
+ rawMessage;
54370
+ constructor(message, cause, rawValue) {
54371
+ super(`${message}: ${cause}`);
54372
+ this.name = "SDKValidationError";
54373
+ this.cause = cause;
54374
+ this.rawValue = rawValue;
54375
+ this.rawMessage = message;
54376
+ }
54377
+ pretty() {
54378
+ if (this.cause instanceof ZodError) {
54379
+ return `${this.rawMessage}
54380
+ ${formatZodError(this.cause)}`;
54381
+ } else {
54382
+ return this.toString();
54383
+ }
54384
+ }
54385
+ };
54386
+ });
54387
+
54388
+ // src/types/fp.ts
54389
+ function OK3(value) {
54390
+ return { ok: true, value };
54391
+ }
54392
+ function ERR2(error) {
54393
+ return { ok: false, error };
54394
+ }
54395
+
54396
+ // src/lib/schemas.ts
54397
+ function collectExtraKeys(obj, extrasKey, optional) {
54398
+ return obj.transform((val) => {
54399
+ const extras = {};
54400
+ const { shape } = obj;
54401
+ for (const [key] of Object.entries(val)) {
54402
+ if (key in shape) {
54403
+ continue;
54404
+ }
54405
+ const v = val[key];
54406
+ if (typeof v === "undefined") {
54407
+ continue;
54408
+ }
54409
+ extras[key] = v;
54410
+ delete val[key];
54411
+ }
54412
+ if (optional && Object.keys(extras).length === 0) {
54413
+ return val;
54414
+ }
54415
+ return { ...val, [extrasKey]: extras };
54416
+ });
54417
+ }
54418
+ function safeParse4(rawValue, fn, errorMessage) {
54419
+ try {
54420
+ return OK3(fn(rawValue));
54421
+ } catch (err) {
54422
+ return ERR2(new SDKValidationError(errorMessage, err, rawValue));
54423
+ }
54424
+ }
54425
+ var init_schemas4 = __esm(() => {
54426
+ init_sdkvalidationerror();
54427
+ });
54428
+
54429
+ // src/models/searchgroundingmode.ts
54430
+ var SearchGroundingMode$zodSchema;
54431
+ var init_searchgroundingmode = __esm(() => {
54432
+ init_zod();
54433
+ SearchGroundingMode$zodSchema = _enum([
54434
+ "disabled",
54435
+ "enabled",
54436
+ "default"
54437
+ ]).describe("Requested web-retrieval behavior for an eval run.");
54438
+ });
54439
+
54440
+ // src/models/createv2agentpreferenceevalrequest.ts
54441
+ var CreateV2AgentPreferenceEvalRequest$zodSchema;
54442
+ var init_createv2agentpreferenceevalrequest = __esm(() => {
54443
+ init_zod();
54444
+ init_searchgroundingmode();
54445
+ CreateV2AgentPreferenceEvalRequest$zodSchema = object({
54446
+ agent: array(string2()).optional().describe("Runnable agents from `GET /v2/agents`. An empty array saves the comparison without default agents. CLI clients expose repeatable `--agent`."),
54447
+ competitor_id: string2().describe("Tracked competitor to compare against, from `GET /v2/agent-preference/competitors`."),
54448
+ name: string2().optional().describe("Display name. Defaults to `<your company> vs <competitor>` when omitted."),
54449
+ persona: string2().optional().describe("Optional perspective applied to the whole comparison."),
54450
+ prompts: array(string2()).describe("Buying or build questions the agent answers by choosing between your company and the competitor. CLI clients expose this as repeatable `--prompt`."),
54451
+ runs: int().default(1).describe("Independent attempts for every prompt-agent pair."),
54452
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
54453
+ tags: array(string2()).optional()
54454
+ });
54455
+ });
54456
+
54457
+ // src/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.ts
54458
+ function agentPreferenceV2AgentPreferenceEvalsCreate(client$, request, options) {
54459
+ return new APIPromise($do2(client$, request, options));
54460
+ }
54461
+ async function $do2(client$, request, options) {
54462
+ const parsed$ = safeParse4(request, (value$) => CreateV2AgentPreferenceEvalRequest$zodSchema.parse(value$), "Input validation failed");
54463
+ if (!parsed$.ok) {
54464
+ return [parsed$, { status: "invalid" }];
54465
+ }
54466
+ const payload$ = parsed$.value;
54467
+ const body$ = encodeJSON("body", payload$, { explode: true });
54468
+ const path$ = pathToFunc("/v2/agent-preference/evals")();
54469
+ const headers$ = new Headers(compactMap({
54470
+ "Content-Type": "application/json",
54471
+ Accept: "application/json"
54472
+ }));
54473
+ const securityInput = await extractSecurity(client$._options.security);
54474
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54475
+ const context = {
54476
+ options: client$._options,
54477
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54478
+ operationID: "v2_agent_preference_evals_create",
54479
+ oAuth2Scopes: null,
54480
+ resolvedSecurity: requestSecurity,
54481
+ securitySource: client$._options.security,
54482
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54483
+ retryCodes: options?.retryCodes || [
54484
+ "429",
54485
+ "500",
54486
+ "502",
54487
+ "503",
54488
+ "504"
54489
+ ]
54490
+ };
54491
+ const requestRes = client$._createRequest(context, {
54492
+ security: requestSecurity,
54493
+ method: "POST",
54494
+ baseURL: options?.serverURL,
54495
+ path: path$,
54496
+ headers: headers$,
54497
+ body: body$,
54498
+ userAgent: client$._options.userAgent,
54499
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54500
+ }, options);
54501
+ if (!requestRes.ok) {
54502
+ return [requestRes, { status: "invalid" }];
54503
+ }
54504
+ const req$ = requestRes.value;
54505
+ const doResult = await client$._do(req$, {
54506
+ context,
54507
+ errorCodes: [],
54508
+ retryConfig: context.retryConfig,
54509
+ retryCodes: context.retryCodes
54510
+ });
54511
+ if (!doResult.ok) {
54512
+ return [doResult, { status: "request-error", request: req$ }];
54513
+ }
54514
+ return [doResult, {
54515
+ status: "complete",
54516
+ request: req$,
54517
+ response: doResult.value
54518
+ }];
54519
+ }
54520
+ var init_agentPreferenceV2AgentPreferenceEvalsCreate = __esm(() => {
54521
+ init_encodings();
54522
+ init_primitives();
54523
+ init_schemas4();
54524
+ init_security();
54525
+ init_url();
54526
+ init_createv2agentpreferenceevalrequest();
54527
+ init_async();
54528
+ });
54529
+
54530
+ // src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.ts
54531
+ var args, tool$agentPreferenceV2AgentPreferenceEvalsCreate;
54532
+ var init_agentPreferenceV2AgentPreferenceEvalsCreate2 = __esm(() => {
54533
+ init_agentPreferenceV2AgentPreferenceEvalsCreate();
54534
+ init_createv2agentpreferenceevalrequest();
54535
+ init_tools();
54536
+ args = {
54537
+ request: CreateV2AgentPreferenceEvalRequest$zodSchema
54538
+ };
54539
+ tool$agentPreferenceV2AgentPreferenceEvalsCreate = {
54540
+ name: "agent-preference-v2-agent-preference-evals-create",
54541
+ description: `Create Eval
54542
+
54543
+ Creates a head-to-head comparison between your company and one tracked competitor. Each prompt asks an agent to choose, and a fixed judge records which company it recommended. Creating the eval does not start a run; pass the returned \`id\` as \`eval_id\` to \`POST /v2/eval-runs\`.`,
54544
+ annotations: {
54545
+ title: "",
54546
+ destructiveHint: false,
54547
+ idempotentHint: false,
54548
+ openWorldHint: false,
54549
+ readOnlyHint: false
54550
+ },
54551
+ args,
54552
+ tool: async (client, args, ctx) => {
54553
+ const [result] = await agentPreferenceV2AgentPreferenceEvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54554
+ if (!result.ok) {
54555
+ return {
54556
+ content: [{ type: "text", text: result.error.message }],
54557
+ isError: true
54558
+ };
54559
+ }
54560
+ return formatResult(result.value);
54561
+ }
54562
+ };
54563
+ });
54564
+
54565
+ // src/models/validationerror.ts
54566
+ var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
54567
+ var init_validationerror = __esm(() => {
54568
+ init_zod();
54569
+ Loc$zodSchema = union([
54570
+ string2(),
54571
+ int()
54572
+ ]);
54573
+ Context$zodSchema = object({});
54574
+ ValidationError$zodSchema = object({
54575
+ ctx: lazy(() => Context$zodSchema).optional(),
54576
+ input: any().optional(),
54577
+ loc: array(union([
54578
+ string2(),
54579
+ int()
54580
+ ])),
54581
+ msg: string2(),
54582
+ type: string2()
54583
+ });
54584
+ });
54585
+
54586
+ // src/models/httpvalidationerror.ts
54587
+ var HTTPValidationError$zodSchema;
54588
+ var init_httpvalidationerror = __esm(() => {
54589
+ init_zod();
54590
+ init_validationerror();
54591
+ HTTPValidationError$zodSchema = object({
54592
+ detail: array(ValidationError$zodSchema).optional()
54593
+ });
54594
+ });
54595
+
54596
+ // src/models/v2agentpreferencecompetitor.ts
54597
+ var V2AgentPreferenceCompetitor$zodSchema;
54598
+ var init_v2agentpreferencecompetitor = __esm(() => {
54599
+ init_zod();
54600
+ V2AgentPreferenceCompetitor$zodSchema = object({
54601
+ domain: string2().nullable().optional(),
54602
+ id: string2().describe("Competitor ID to pass as `competitor_id`."),
54603
+ logo_url: string2().nullable().optional(),
54604
+ name: string2()
54605
+ });
54606
+ });
54607
+
54608
+ // src/models/v2agentpreferenceeval.ts
54609
+ var V2AgentPreferenceEval$zodSchema;
54610
+ var init_v2agentpreferenceeval = __esm(() => {
54611
+ init_zod();
54612
+ init_searchgroundingmode();
54613
+ init_v2agentpreferencecompetitor();
54614
+ V2AgentPreferenceEval$zodSchema = object({
54615
+ agent: array(string2()).optional(),
54616
+ competitor: V2AgentPreferenceCompetitor$zodSchema.nullable().optional().describe("The competitor your company is compared against. Null when the competitor is no longer tracked."),
54617
+ created_at: string2().nullable().optional(),
54618
+ id: string2().describe("Eval ID. Pass it as `eval_id` to `POST /v2/eval-runs` to run the comparison."),
54619
+ judges: array(string2()).optional().describe("Criteria applied to each response. The first one decides which company the agent recommended and cannot be changed."),
54620
+ name: string2(),
54621
+ persona: string2().nullable().optional(),
54622
+ prompts: array(string2()).optional(),
54623
+ runs: int().default(1),
54624
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
54625
+ tags: array(string2()).optional(),
54626
+ updated_at: string2().nullable().optional()
54627
+ });
54628
+ });
54629
+
54630
+ // src/models/v2agentpreferenceevalsdeleteop.ts
54631
+ var V2AgentPreferenceEvalsDeleteRequest$zodSchema, V2AgentPreferenceEvalsDeleteResponse$zodSchema;
54632
+ var init_v2agentpreferenceevalsdeleteop = __esm(() => {
54633
+ init_zod();
54634
+ init_httpvalidationerror();
54635
+ init_v2agentpreferenceeval();
54636
+ V2AgentPreferenceEvalsDeleteRequest$zodSchema = object({
54637
+ eval_id: string2()
54638
+ });
54639
+ V2AgentPreferenceEvalsDeleteResponse$zodSchema = union([
54640
+ V2AgentPreferenceEval$zodSchema,
54641
+ HTTPValidationError$zodSchema
54642
+ ]);
54643
+ });
54644
+
54645
+ // src/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.ts
54646
+ function agentPreferenceV2AgentPreferenceEvalsDelete(client$, request, options) {
54647
+ return new APIPromise($do3(client$, request, options));
54648
+ }
54649
+ async function $do3(client$, request, options) {
54650
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
54651
+ if (!parsed$.ok) {
54652
+ return [parsed$, { status: "invalid" }];
54653
+ }
54654
+ const payload$ = parsed$.value;
54655
+ const body$ = null;
54656
+ const pathParams$ = {
54657
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
54658
+ explode: false,
54659
+ charEncoding: "percent"
54660
+ })
54661
+ };
54662
+ const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
54663
+ const headers$ = new Headers(compactMap({
54664
+ Accept: "application/json"
54665
+ }));
54666
+ const securityInput = await extractSecurity(client$._options.security);
54667
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54668
+ const context = {
54669
+ options: client$._options,
54670
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54671
+ operationID: "v2_agent_preference_evals_delete",
54672
+ oAuth2Scopes: null,
54673
+ resolvedSecurity: requestSecurity,
54674
+ securitySource: client$._options.security,
54675
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54676
+ retryCodes: options?.retryCodes || [
54677
+ "429",
54678
+ "500",
54679
+ "502",
54680
+ "503",
54681
+ "504"
54682
+ ]
54683
+ };
54684
+ const requestRes = client$._createRequest(context, {
54685
+ security: requestSecurity,
54686
+ method: "DELETE",
54687
+ baseURL: options?.serverURL,
54688
+ path: path$,
54689
+ headers: headers$,
54690
+ body: body$,
54691
+ userAgent: client$._options.userAgent,
54692
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54693
+ }, options);
54694
+ if (!requestRes.ok) {
54695
+ return [requestRes, { status: "invalid" }];
54696
+ }
54697
+ const req$ = requestRes.value;
54698
+ const doResult = await client$._do(req$, {
54699
+ context,
54700
+ errorCodes: [],
54701
+ retryConfig: context.retryConfig,
54702
+ retryCodes: context.retryCodes
54703
+ });
54704
+ if (!doResult.ok) {
54705
+ return [doResult, { status: "request-error", request: req$ }];
54706
+ }
54707
+ return [doResult, {
54708
+ status: "complete",
54709
+ request: req$,
54710
+ response: doResult.value
54711
+ }];
54712
+ }
54713
+ var init_agentPreferenceV2AgentPreferenceEvalsDelete = __esm(() => {
54714
+ init_encodings();
54715
+ init_primitives();
54716
+ init_schemas4();
54717
+ init_security();
54718
+ init_url();
54719
+ init_v2agentpreferenceevalsdeleteop();
54720
+ init_async();
54721
+ });
54722
+
54723
+ // src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.ts
54724
+ var args2, tool$agentPreferenceV2AgentPreferenceEvalsDelete;
54725
+ var init_agentPreferenceV2AgentPreferenceEvalsDelete2 = __esm(() => {
54726
+ init_agentPreferenceV2AgentPreferenceEvalsDelete();
54727
+ init_v2agentpreferenceevalsdeleteop();
54728
+ init_tools();
54729
+ args2 = {
54730
+ request: V2AgentPreferenceEvalsDeleteRequest$zodSchema
54731
+ };
54732
+ tool$agentPreferenceV2AgentPreferenceEvalsDelete = {
54733
+ name: "agent-preference-v2-agent-preference-evals-delete",
54734
+ description: `Delete Eval
54735
+
54736
+ Permanently deletes an Agent Preference eval and returns its last saved state.`,
54737
+ annotations: {
54738
+ title: "",
54739
+ destructiveHint: true,
54740
+ idempotentHint: false,
54741
+ openWorldHint: false,
54742
+ readOnlyHint: false
54743
+ },
54744
+ args: args2,
54745
+ tool: async (client, args, ctx) => {
54746
+ const [result] = await agentPreferenceV2AgentPreferenceEvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54747
+ if (!result.ok) {
54748
+ return {
54749
+ content: [{ type: "text", text: result.error.message }],
54750
+ isError: true
54751
+ };
54752
+ }
54753
+ return formatResult(result.value);
54754
+ }
54755
+ };
54756
+ });
54757
+
54758
+ // src/funcs/agentPreferenceV2AgentPreferenceEvalsList.ts
54759
+ function agentPreferenceV2AgentPreferenceEvalsList(client$, options) {
54760
+ return new APIPromise($do4(client$, options));
54761
+ }
54762
+ async function $do4(client$, options) {
54763
+ const path$ = pathToFunc("/v2/agent-preference/evals")();
54764
+ const headers$ = new Headers(compactMap({
54765
+ Accept: "application/json"
54766
+ }));
54767
+ const securityInput = await extractSecurity(client$._options.security);
54768
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54769
+ const context = {
54770
+ options: client$._options,
54771
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54772
+ operationID: "v2_agent_preference_evals_list",
54773
+ oAuth2Scopes: null,
54774
+ resolvedSecurity: requestSecurity,
54775
+ securitySource: client$._options.security,
54776
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54777
+ retryCodes: options?.retryCodes || [
54778
+ "429",
54779
+ "500",
54780
+ "502",
54781
+ "503",
54782
+ "504"
54783
+ ]
54784
+ };
54785
+ const requestRes = client$._createRequest(context, {
54786
+ security: requestSecurity,
54787
+ method: "GET",
54788
+ baseURL: options?.serverURL,
54789
+ path: path$,
54790
+ headers: headers$,
54791
+ userAgent: client$._options.userAgent,
54792
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54793
+ }, options);
54794
+ if (!requestRes.ok) {
54795
+ return [requestRes, { status: "invalid" }];
54796
+ }
54797
+ const req$ = requestRes.value;
54798
+ const doResult = await client$._do(req$, {
54799
+ context,
54800
+ errorCodes: [],
54801
+ retryConfig: context.retryConfig,
54802
+ retryCodes: context.retryCodes
54803
+ });
54804
+ if (!doResult.ok) {
54805
+ return [doResult, { status: "request-error", request: req$ }];
54806
+ }
54807
+ return [doResult, {
54808
+ status: "complete",
54809
+ request: req$,
54810
+ response: doResult.value
54811
+ }];
54812
+ }
54813
+ var init_agentPreferenceV2AgentPreferenceEvalsList = __esm(() => {
54814
+ init_primitives();
54815
+ init_security();
54816
+ init_url();
54817
+ init_async();
54818
+ });
54819
+
54820
+ // src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.ts
54821
+ var tool$agentPreferenceV2AgentPreferenceEvalsList;
54822
+ var init_agentPreferenceV2AgentPreferenceEvalsList2 = __esm(() => {
54823
+ init_agentPreferenceV2AgentPreferenceEvalsList();
54824
+ init_tools();
54825
+ tool$agentPreferenceV2AgentPreferenceEvalsList = {
54826
+ name: "agent-preference-v2-agent-preference-evals-list",
54827
+ description: `List Evals
54828
+
54829
+ Returns all active Agent Preference evals owned by the organization.`,
54830
+ annotations: {
54831
+ title: "",
54832
+ destructiveHint: false,
54833
+ idempotentHint: false,
54834
+ openWorldHint: false,
54835
+ readOnlyHint: true
54836
+ },
54837
+ tool: async (client, ctx) => {
54838
+ const [result] = await agentPreferenceV2AgentPreferenceEvalsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
54839
+ if (!result.ok) {
54840
+ return {
54841
+ content: [{ type: "text", text: result.error.message }],
54842
+ isError: true
54843
+ };
54844
+ }
54845
+ return formatResult(result.value);
54846
+ }
54847
+ };
54848
+ });
54849
+
54850
+ // src/models/v2agentpreferenceevalsretrieveop.ts
54851
+ var V2AgentPreferenceEvalsRetrieveRequest$zodSchema, V2AgentPreferenceEvalsRetrieveResponse$zodSchema;
54852
+ var init_v2agentpreferenceevalsretrieveop = __esm(() => {
54853
+ init_zod();
54854
+ init_httpvalidationerror();
54855
+ init_v2agentpreferenceeval();
54856
+ V2AgentPreferenceEvalsRetrieveRequest$zodSchema = object({
54857
+ eval_id: string2()
54858
+ });
54859
+ V2AgentPreferenceEvalsRetrieveResponse$zodSchema = union([
54860
+ V2AgentPreferenceEval$zodSchema,
54861
+ HTTPValidationError$zodSchema
54862
+ ]);
54863
+ });
54864
+
54865
+ // src/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.ts
54866
+ function agentPreferenceV2AgentPreferenceEvalsRetrieve(client$, request, options) {
54867
+ return new APIPromise($do5(client$, request, options));
54868
+ }
54869
+ async function $do5(client$, request, options) {
54870
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
54871
+ if (!parsed$.ok) {
54872
+ return [parsed$, { status: "invalid" }];
54873
+ }
54874
+ const payload$ = parsed$.value;
54875
+ const body$ = null;
54876
+ const pathParams$ = {
54877
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
54878
+ explode: false,
54879
+ charEncoding: "percent"
54880
+ })
54881
+ };
54882
+ const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
54274
54883
  const headers$ = new Headers(compactMap({
54275
54884
  Accept: "application/json"
54276
54885
  }));
@@ -54279,7 +54888,7 @@ async function $do(client$, options) {
54279
54888
  const context = {
54280
54889
  options: client$._options,
54281
54890
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
54282
- operationID: "v2_agents_list",
54891
+ operationID: "v2_agent_preference_evals_retrieve",
54283
54892
  oAuth2Scopes: null,
54284
54893
  resolvedSecurity: requestSecurity,
54285
54894
  securitySource: client$._options.security,
@@ -54298,6 +54907,7 @@ async function $do(client$, options) {
54298
54907
  baseURL: options?.serverURL,
54299
54908
  path: path$,
54300
54909
  headers: headers$,
54910
+ body: body$,
54301
54911
  userAgent: client$._options.userAgent,
54302
54912
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54303
54913
  }, options);
@@ -54320,23 +54930,30 @@ async function $do(client$, options) {
54320
54930
  response: doResult.value
54321
54931
  }];
54322
54932
  }
54323
- var init_agentsV2AgentsList = __esm(() => {
54933
+ var init_agentPreferenceV2AgentPreferenceEvalsRetrieve = __esm(() => {
54934
+ init_encodings();
54324
54935
  init_primitives();
54936
+ init_schemas4();
54325
54937
  init_security();
54326
54938
  init_url();
54939
+ init_v2agentpreferenceevalsretrieveop();
54327
54940
  init_async();
54328
54941
  });
54329
54942
 
54330
- // src/mcp-server/tools/agentsV2AgentsList.ts
54331
- var tool$agentsV2AgentsList;
54332
- var init_agentsV2AgentsList2 = __esm(() => {
54333
- init_agentsV2AgentsList();
54943
+ // src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.ts
54944
+ var args3, tool$agentPreferenceV2AgentPreferenceEvalsRetrieve;
54945
+ var init_agentPreferenceV2AgentPreferenceEvalsRetrieve2 = __esm(() => {
54946
+ init_agentPreferenceV2AgentPreferenceEvalsRetrieve();
54947
+ init_v2agentpreferenceevalsretrieveop();
54334
54948
  init_tools();
54335
- tool$agentsV2AgentsList = {
54336
- name: "agents-v2-agents-list",
54337
- description: `List Agents
54949
+ args3 = {
54950
+ request: V2AgentPreferenceEvalsRetrieveRequest$zodSchema
54951
+ };
54952
+ tool$agentPreferenceV2AgentPreferenceEvalsRetrieve = {
54953
+ name: "agent-preference-v2-agent-preference-evals-retrieve",
54954
+ description: `Retrieve Eval
54338
54955
 
54339
- Returns all runnable harness-and-model combinations as single agent IDs for use in eval runs.`,
54956
+ Returns one Agent Preference eval.`,
54340
54957
  annotations: {
54341
54958
  title: "",
54342
54959
  destructiveHint: false,
@@ -54344,8 +54961,9 @@ Returns all runnable harness-and-model combinations as single agent IDs for use
54344
54961
  openWorldHint: false,
54345
54962
  readOnlyHint: true
54346
54963
  },
54347
- tool: async (client, ctx) => {
54348
- const [result] = await agentsV2AgentsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
54964
+ args: args3,
54965
+ tool: async (client, args, ctx) => {
54966
+ const [result] = await agentPreferenceV2AgentPreferenceEvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54349
54967
  if (!result.ok) {
54350
54968
  return {
54351
54969
  content: [{ type: "text", text: result.error.message }],
@@ -54357,13 +54975,59 @@ Returns all runnable harness-and-model combinations as single agent IDs for use
54357
54975
  };
54358
54976
  });
54359
54977
 
54360
- // src/funcs/clIsV2ClisList.ts
54361
- function clIsV2ClisList(client$, options) {
54362
- return new APIPromise($do2(client$, options));
54978
+ // src/models/updatev2agentpreferenceevalrequest.ts
54979
+ var UpdateV2AgentPreferenceEvalRequest$zodSchema;
54980
+ var init_updatev2agentpreferenceevalrequest = __esm(() => {
54981
+ init_zod();
54982
+ init_searchgroundingmode();
54983
+ UpdateV2AgentPreferenceEvalRequest$zodSchema = object({
54984
+ agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`. An empty array saves the comparison without default agents. CLI clients expose repeatable `--agent`."),
54985
+ name: string2().optional(),
54986
+ persona: string2().optional().describe("Set to null to clear the saved persona."),
54987
+ prompts: array(string2()).nullable().optional().describe("Buying or build questions the agent answers by choosing between your company and the competitor. CLI clients expose this as repeatable `--prompt`."),
54988
+ runs: int().optional(),
54989
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional(),
54990
+ tags: array(string2()).nullable().optional()
54991
+ });
54992
+ });
54993
+
54994
+ // src/models/v2agentpreferenceevalsupdateop.ts
54995
+ var V2AgentPreferenceEvalsUpdateRequest$zodSchema, V2AgentPreferenceEvalsUpdateResponse$zodSchema;
54996
+ var init_v2agentpreferenceevalsupdateop = __esm(() => {
54997
+ init_zod();
54998
+ init_httpvalidationerror();
54999
+ init_updatev2agentpreferenceevalrequest();
55000
+ init_v2agentpreferenceeval();
55001
+ V2AgentPreferenceEvalsUpdateRequest$zodSchema = object({
55002
+ body: UpdateV2AgentPreferenceEvalRequest$zodSchema,
55003
+ eval_id: string2()
55004
+ });
55005
+ V2AgentPreferenceEvalsUpdateResponse$zodSchema = union([
55006
+ V2AgentPreferenceEval$zodSchema,
55007
+ HTTPValidationError$zodSchema
55008
+ ]);
55009
+ });
55010
+
55011
+ // src/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.ts
55012
+ function agentPreferenceV2AgentPreferenceEvalsUpdate(client$, request, options) {
55013
+ return new APIPromise($do6(client$, request, options));
54363
55014
  }
54364
- async function $do2(client$, options) {
54365
- const path$ = pathToFunc("/v2/clis")();
55015
+ async function $do6(client$, request, options) {
55016
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
55017
+ if (!parsed$.ok) {
55018
+ return [parsed$, { status: "invalid" }];
55019
+ }
55020
+ const payload$ = parsed$.value;
55021
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
55022
+ const pathParams$ = {
55023
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
55024
+ explode: false,
55025
+ charEncoding: "percent"
55026
+ })
55027
+ };
55028
+ const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
54366
55029
  const headers$ = new Headers(compactMap({
55030
+ "Content-Type": "application/json",
54367
55031
  Accept: "application/json"
54368
55032
  }));
54369
55033
  const securityInput = await extractSecurity(client$._options.security);
@@ -54371,7 +55035,7 @@ async function $do2(client$, options) {
54371
55035
  const context = {
54372
55036
  options: client$._options,
54373
55037
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
54374
- operationID: "v2_clis_list",
55038
+ operationID: "v2_agent_preference_evals_update",
54375
55039
  oAuth2Scopes: null,
54376
55040
  resolvedSecurity: requestSecurity,
54377
55041
  securitySource: client$._options.security,
@@ -54386,10 +55050,11 @@ async function $do2(client$, options) {
54386
55050
  };
54387
55051
  const requestRes = client$._createRequest(context, {
54388
55052
  security: requestSecurity,
54389
- method: "GET",
55053
+ method: "PATCH",
54390
55054
  baseURL: options?.serverURL,
54391
55055
  path: path$,
54392
55056
  headers: headers$,
55057
+ body: body$,
54393
55058
  userAgent: client$._options.userAgent,
54394
55059
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54395
55060
  }, options);
@@ -54412,32 +55077,40 @@ async function $do2(client$, options) {
54412
55077
  response: doResult.value
54413
55078
  }];
54414
55079
  }
54415
- var init_clIsV2ClisList = __esm(() => {
55080
+ var init_agentPreferenceV2AgentPreferenceEvalsUpdate = __esm(() => {
55081
+ init_encodings();
54416
55082
  init_primitives();
55083
+ init_schemas4();
54417
55084
  init_security();
54418
55085
  init_url();
55086
+ init_v2agentpreferenceevalsupdateop();
54419
55087
  init_async();
54420
55088
  });
54421
55089
 
54422
- // src/mcp-server/tools/clIsV2ClisList.ts
54423
- var tool$clIsV2ClisList;
54424
- var init_clIsV2ClisList2 = __esm(() => {
54425
- init_clIsV2ClisList();
55090
+ // src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.ts
55091
+ var args4, tool$agentPreferenceV2AgentPreferenceEvalsUpdate;
55092
+ var init_agentPreferenceV2AgentPreferenceEvalsUpdate2 = __esm(() => {
55093
+ init_agentPreferenceV2AgentPreferenceEvalsUpdate();
55094
+ init_v2agentpreferenceevalsupdateop();
54426
55095
  init_tools();
54427
- tool$clIsV2ClisList = {
54428
- name: "CL-is-v2-clis-list",
54429
- description: `List Clis
55096
+ args4 = {
55097
+ request: V2AgentPreferenceEvalsUpdateRequest$zodSchema
55098
+ };
55099
+ tool$agentPreferenceV2AgentPreferenceEvalsUpdate = {
55100
+ name: "agent-preference-v2-agent-preference-evals-update",
55101
+ description: `Update Eval
54430
55102
 
54431
- Returns reusable CLIs without exposing setup or installation commands.`,
55103
+ Updates an Agent Preference eval. Omitted fields remain unchanged, an empty \`agent\` or \`tags\` array clears that collection, and \`persona: null\` clears the saved persona. The competitor and the judge that decides the comparison cannot be changed.`,
54432
55104
  annotations: {
54433
55105
  title: "",
54434
55106
  destructiveHint: false,
54435
55107
  idempotentHint: false,
54436
55108
  openWorldHint: false,
54437
- readOnlyHint: true
55109
+ readOnlyHint: false
54438
55110
  },
54439
- tool: async (client, ctx) => {
54440
- const [result] = await clIsV2ClisList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
55111
+ args: args4,
55112
+ tool: async (client, args, ctx) => {
55113
+ const [result] = await agentPreferenceV2AgentPreferenceEvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54441
55114
  if (!result.ok) {
54442
55115
  return {
54443
55116
  content: [{ type: "text", text: result.error.message }],
@@ -54449,101 +55122,276 @@ Returns reusable CLIs without exposing setup or installation commands.`,
54449
55122
  };
54450
55123
  });
54451
55124
 
54452
- // src/models/errors/sdkvalidationerror.ts
54453
- function formatZodError(err) {
54454
- return prettifyError(err);
54455
- }
54456
- var SDKValidationError;
54457
- var init_sdkvalidationerror = __esm(() => {
55125
+ // src/models/v2agentpreferencecompany.ts
55126
+ var V2AgentPreferenceCompany$zodSchema;
55127
+ var init_v2agentpreferencecompany = __esm(() => {
54458
55128
  init_zod();
54459
- SDKValidationError = class SDKValidationError extends Error {
54460
- rawValue;
54461
- rawMessage;
54462
- constructor(message, cause, rawValue) {
54463
- super(`${message}: ${cause}`);
54464
- this.name = "SDKValidationError";
54465
- this.cause = cause;
54466
- this.rawValue = rawValue;
54467
- this.rawMessage = message;
54468
- }
54469
- pretty() {
54470
- if (this.cause instanceof ZodError) {
54471
- return `${this.rawMessage}
54472
- ${formatZodError(this.cause)}`;
54473
- } else {
54474
- return this.toString();
54475
- }
54476
- }
54477
- };
55129
+ V2AgentPreferenceCompany$zodSchema = object({
55130
+ domain: string2().nullable().optional(),
55131
+ name: string2().nullable().optional()
55132
+ });
54478
55133
  });
54479
55134
 
54480
- // src/types/fp.ts
54481
- function OK3(value) {
54482
- return { ok: true, value };
55135
+ // src/models/v2agentpreferencematchup.ts
55136
+ var V2AgentPreferenceMatchup$zodSchema;
55137
+ var init_v2agentpreferencematchup = __esm(() => {
55138
+ init_zod();
55139
+ V2AgentPreferenceMatchup$zodSchema = object({
55140
+ comparisons: int().describe("`wins + losses + ties`."),
55141
+ competitor_domain: string2().nullable().optional(),
55142
+ competitor_id: string2().nullable().optional().describe("Null when the competitor is no longer tracked."),
55143
+ competitor_name: string2(),
55144
+ eval_ids: array(string2()).optional().describe("Agent Preference evals that contributed to this record."),
55145
+ losses: int().describe("Attempts where the agent recommended the competitor."),
55146
+ ties: int().describe("Attempts where the agent recommended both equally or neither."),
55147
+ win_rate: number2().nullable().optional().describe("`wins / comparisons` from 0 to 1. Null when there are no comparisons."),
55148
+ wins: int().describe("Attempts where the agent recommended your company.")
55149
+ });
55150
+ });
55151
+
55152
+ // src/models/v2agentpreferencerecord.ts
55153
+ var V2AgentPreferenceRecord$zodSchema;
55154
+ var init_v2agentpreferencerecord = __esm(() => {
55155
+ init_zod();
55156
+ V2AgentPreferenceRecord$zodSchema = object({
55157
+ comparisons: int().describe("`wins + losses + ties`."),
55158
+ losses: int().describe("Attempts where the agent recommended the competitor."),
55159
+ ties: int().describe("Attempts where the agent recommended both equally or neither."),
55160
+ win_rate: number2().nullable().optional().describe("`wins / comparisons` from 0 to 1. Null when there are no comparisons."),
55161
+ wins: int().describe("Attempts where the agent recommended your company.")
55162
+ });
55163
+ });
55164
+
55165
+ // src/models/v2agentpreferenceheadtoheadresponse.ts
55166
+ var V2AgentPreferenceHeadToHeadResponse$zodSchema;
55167
+ var init_v2agentpreferenceheadtoheadresponse = __esm(() => {
55168
+ init_zod();
55169
+ init_v2agentpreferencecompany();
55170
+ init_v2agentpreferencematchup();
55171
+ init_v2agentpreferencerecord();
55172
+ V2AgentPreferenceHeadToHeadResponse$zodSchema = object({
55173
+ attempts_considered: int().describe("Recent attempts read to build the records. Attempts without a usable recommendation are read but not counted as comparisons."),
55174
+ company: V2AgentPreferenceCompany$zodSchema,
55175
+ count: int().describe("The number of items in `data`."),
55176
+ data: array(V2AgentPreferenceMatchup$zodSchema).optional().describe("One record per competitor, most comparisons first."),
55177
+ limit: int(),
55178
+ summary: V2AgentPreferenceRecord$zodSchema,
55179
+ truncated: boolean2().describe("True when older attempts exist beyond `limit` and were not counted.")
55180
+ });
55181
+ });
55182
+
55183
+ // src/models/v2agentpreferenceheadtoheadretrieveop.ts
55184
+ var V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema, V2AgentPreferenceHeadToHeadRetrieveResponse$zodSchema;
55185
+ var init_v2agentpreferenceheadtoheadretrieveop = __esm(() => {
55186
+ init_zod();
55187
+ init_httpvalidationerror();
55188
+ init_v2agentpreferenceheadtoheadresponse();
55189
+ V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema = object({
55190
+ limit: int().default(500).describe("Most recent attempts to include in the records.")
55191
+ });
55192
+ V2AgentPreferenceHeadToHeadRetrieveResponse$zodSchema = union([
55193
+ V2AgentPreferenceHeadToHeadResponse$zodSchema,
55194
+ HTTPValidationError$zodSchema
55195
+ ]);
55196
+ });
55197
+
55198
+ // src/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts
55199
+ function agentPreferenceV2AgentPreferenceHeadToHeadRetrieve(client$, request, options) {
55200
+ return new APIPromise($do7(client$, request, options));
54483
55201
  }
54484
- function ERR2(error) {
54485
- return { ok: false, error };
55202
+ async function $do7(client$, request, options) {
55203
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
55204
+ if (!parsed$.ok) {
55205
+ return [parsed$, { status: "invalid" }];
55206
+ }
55207
+ const payload$ = parsed$.value;
55208
+ const body$ = null;
55209
+ const path$ = pathToFunc("/v2/agent-preference/head-to-head")();
55210
+ const query$ = encodeFormQuery({
55211
+ limit: payload$?.limit
55212
+ });
55213
+ const headers$ = new Headers(compactMap({
55214
+ Accept: "application/json"
55215
+ }));
55216
+ const securityInput = await extractSecurity(client$._options.security);
55217
+ const requestSecurity = resolveGlobalSecurity(securityInput);
55218
+ const context = {
55219
+ options: client$._options,
55220
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
55221
+ operationID: "v2_agent_preference_head_to_head_retrieve",
55222
+ oAuth2Scopes: null,
55223
+ resolvedSecurity: requestSecurity,
55224
+ securitySource: client$._options.security,
55225
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55226
+ retryCodes: options?.retryCodes || [
55227
+ "429",
55228
+ "500",
55229
+ "502",
55230
+ "503",
55231
+ "504"
55232
+ ]
55233
+ };
55234
+ const requestRes = client$._createRequest(context, {
55235
+ security: requestSecurity,
55236
+ method: "GET",
55237
+ baseURL: options?.serverURL,
55238
+ path: path$,
55239
+ headers: headers$,
55240
+ query: query$,
55241
+ body: body$,
55242
+ userAgent: client$._options.userAgent,
55243
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55244
+ }, options);
55245
+ if (!requestRes.ok) {
55246
+ return [requestRes, { status: "invalid" }];
55247
+ }
55248
+ const req$ = requestRes.value;
55249
+ const doResult = await client$._do(req$, {
55250
+ context,
55251
+ errorCodes: [],
55252
+ retryConfig: context.retryConfig,
55253
+ retryCodes: context.retryCodes
55254
+ });
55255
+ if (!doResult.ok) {
55256
+ return [doResult, { status: "request-error", request: req$ }];
55257
+ }
55258
+ return [doResult, {
55259
+ status: "complete",
55260
+ request: req$,
55261
+ response: doResult.value
55262
+ }];
54486
55263
  }
55264
+ var init_agentPreferenceV2AgentPreferenceHeadToHeadRetrieve = __esm(() => {
55265
+ init_encodings();
55266
+ init_primitives();
55267
+ init_schemas4();
55268
+ init_security();
55269
+ init_url();
55270
+ init_v2agentpreferenceheadtoheadretrieveop();
55271
+ init_async();
55272
+ });
54487
55273
 
54488
- // src/lib/schemas.ts
54489
- function collectExtraKeys(obj, extrasKey, optional) {
54490
- return obj.transform((val) => {
54491
- const extras = {};
54492
- const { shape } = obj;
54493
- for (const [key] of Object.entries(val)) {
54494
- if (key in shape) {
54495
- continue;
54496
- }
54497
- const v = val[key];
54498
- if (typeof v === "undefined") {
54499
- continue;
55274
+ // src/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts
55275
+ var args5, tool$agentPreferenceV2AgentPreferenceHeadToHeadRetrieve;
55276
+ var init_agentPreferenceV2AgentPreferenceHeadToHeadRetrieve2 = __esm(() => {
55277
+ init_agentPreferenceV2AgentPreferenceHeadToHeadRetrieve();
55278
+ init_v2agentpreferenceheadtoheadretrieveop();
55279
+ init_tools();
55280
+ args5 = {
55281
+ request: V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema.optional()
55282
+ };
55283
+ tool$agentPreferenceV2AgentPreferenceHeadToHeadRetrieve = {
55284
+ name: "agent-preference-v2-agent-preference-head-to-273",
55285
+ description: `Retrieve Head To Head
55286
+
55287
+ Returns how often agents recommended your company over each tracked competitor: wins, losses, ties, and win rate per competitor plus a combined record. Calculated from the most recent attempts across all Agent Preference evals, up to \`limit\`; \`truncated\` reports whether older attempts were left out.`,
55288
+ annotations: {
55289
+ title: "",
55290
+ destructiveHint: false,
55291
+ idempotentHint: false,
55292
+ openWorldHint: false,
55293
+ readOnlyHint: true
55294
+ },
55295
+ args: args5,
55296
+ tool: async (client, args, ctx) => {
55297
+ const [result] = await agentPreferenceV2AgentPreferenceHeadToHeadRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55298
+ if (!result.ok) {
55299
+ return {
55300
+ content: [{ type: "text", text: result.error.message }],
55301
+ isError: true
55302
+ };
54500
55303
  }
54501
- extras[key] = v;
54502
- delete val[key];
54503
- }
54504
- if (optional && Object.keys(extras).length === 0) {
54505
- return val;
55304
+ return formatResult(result.value);
54506
55305
  }
54507
- return { ...val, [extrasKey]: extras };
55306
+ };
55307
+ });
55308
+
55309
+ // src/models/v2preferenceresult.ts
55310
+ var Outcome$zodSchema, V2PreferenceResult$zodSchema;
55311
+ var init_v2preferenceresult = __esm(() => {
55312
+ init_zod();
55313
+ Outcome$zodSchema = _enum([
55314
+ "won",
55315
+ "lost",
55316
+ "tie"
55317
+ ]).describe("`won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither.");
55318
+ V2PreferenceResult$zodSchema = object({
55319
+ competitor_domain: string2().nullable().optional(),
55320
+ competitor_name: string2().nullable().optional(),
55321
+ outcome: Outcome$zodSchema.describe("`won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither."),
55322
+ winner_name: string2().nullable().optional().describe("The recommended company. Null on a tie.")
55323
+ }).describe("Which company an agent recommended, from your company's side.");
55324
+ });
55325
+
55326
+ // src/models/v2agentpreferenceresult.ts
55327
+ var V2AgentPreferenceResult$zodSchema;
55328
+ var init_v2agentpreferenceresult = __esm(() => {
55329
+ init_zod();
55330
+ init_v2preferenceresult();
55331
+ V2AgentPreferenceResult$zodSchema = object({
55332
+ agent: string2().nullable().optional().describe("Runnable agent combining the harness and model."),
55333
+ created_at: string2().nullable().optional(),
55334
+ eval_id: string2(),
55335
+ id: string2().describe("Result ID for one attempt."),
55336
+ latency_ms: int().nullable().optional(),
55337
+ preference_result: V2PreferenceResult$zodSchema.nullable().optional().describe("Null when the attempt did not produce a usable recommendation, such as an attempt that ended in an error.")
54508
55338
  });
54509
- }
54510
- function safeParse4(rawValue, fn, errorMessage) {
54511
- try {
54512
- return OK3(fn(rawValue));
54513
- } catch (err) {
54514
- return ERR2(new SDKValidationError(errorMessage, err, rawValue));
54515
- }
54516
- }
54517
- var init_schemas4 = __esm(() => {
54518
- init_sdkvalidationerror();
54519
55339
  });
54520
55340
 
54521
- // src/models/generatecontentdraftrequest.ts
54522
- var GenerateContentDraftRequest$zodSchema;
54523
- var init_generatecontentdraftrequest = __esm(() => {
55341
+ // src/models/v2agentpreferenceresultsresponse.ts
55342
+ var V2AgentPreferenceResultsResponse$zodSchema;
55343
+ var init_v2agentpreferenceresultsresponse = __esm(() => {
54524
55344
  init_zod();
54525
- GenerateContentDraftRequest$zodSchema = object({
54526
- description: string2().optional().describe("Brief on angle, audience, or goals."),
54527
- prompt_texts: array(string2()).optional().describe("Related prompts or questions to ground the article."),
54528
- title: string2(),
54529
- topic_name: string2().optional().describe("The topic or theme for the article. Defaults to `title`.")
55345
+ init_v2agentpreferenceresult();
55346
+ V2AgentPreferenceResultsResponse$zodSchema = object({
55347
+ count: int().describe("The number of items in `data`."),
55348
+ data: array(V2AgentPreferenceResult$zodSchema).optional(),
55349
+ limit: int(),
55350
+ offset: int(),
55351
+ total: int().describe("All recorded attempts for this eval.")
55352
+ });
55353
+ });
55354
+
55355
+ // src/models/v2agentpreferenceresultslistop.ts
55356
+ var V2AgentPreferenceResultsListRequest$zodSchema, V2AgentPreferenceResultsListResponse$zodSchema;
55357
+ var init_v2agentpreferenceresultslistop = __esm(() => {
55358
+ init_zod();
55359
+ init_httpvalidationerror();
55360
+ init_v2agentpreferenceresultsresponse();
55361
+ V2AgentPreferenceResultsListRequest$zodSchema = object({
55362
+ eval_id: string2(),
55363
+ limit: int().default(50),
55364
+ offset: int().default(0)
54530
55365
  });
55366
+ V2AgentPreferenceResultsListResponse$zodSchema = union([
55367
+ V2AgentPreferenceResultsResponse$zodSchema,
55368
+ HTTPValidationError$zodSchema
55369
+ ]);
54531
55370
  });
54532
55371
 
54533
- // src/funcs/contentV2ContentDraftsCreate.ts
54534
- function contentV2ContentDraftsCreate(client$, request, options) {
54535
- return new APIPromise($do3(client$, request, options));
55372
+ // src/funcs/agentPreferenceV2AgentPreferenceResultsList.ts
55373
+ function agentPreferenceV2AgentPreferenceResultsList(client$, request, options) {
55374
+ return new APIPromise($do8(client$, request, options));
54536
55375
  }
54537
- async function $do3(client$, request, options) {
54538
- const parsed$ = safeParse4(request, (value$) => GenerateContentDraftRequest$zodSchema.parse(value$), "Input validation failed");
55376
+ async function $do8(client$, request, options) {
55377
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceResultsListRequest$zodSchema.parse(value$), "Input validation failed");
54539
55378
  if (!parsed$.ok) {
54540
55379
  return [parsed$, { status: "invalid" }];
54541
55380
  }
54542
55381
  const payload$ = parsed$.value;
54543
- const body$ = encodeJSON("body", payload$, { explode: true });
54544
- const path$ = pathToFunc("/v2/content/drafts")();
55382
+ const body$ = null;
55383
+ const pathParams$ = {
55384
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
55385
+ explode: false,
55386
+ charEncoding: "percent"
55387
+ })
55388
+ };
55389
+ const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}/results")(pathParams$);
55390
+ const query$ = encodeFormQuery({
55391
+ limit: payload$.limit,
55392
+ offset: payload$.offset
55393
+ });
54545
55394
  const headers$ = new Headers(compactMap({
54546
- "Content-Type": "application/json",
54547
55395
  Accept: "application/json"
54548
55396
  }));
54549
55397
  const securityInput = await extractSecurity(client$._options.security);
@@ -54551,7 +55399,7 @@ async function $do3(client$, request, options) {
54551
55399
  const context = {
54552
55400
  options: client$._options,
54553
55401
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
54554
- operationID: "v2_content_drafts_create",
55402
+ operationID: "v2_agent_preference_results_list",
54555
55403
  oAuth2Scopes: null,
54556
55404
  resolvedSecurity: requestSecurity,
54557
55405
  securitySource: client$._options.security,
@@ -54566,10 +55414,11 @@ async function $do3(client$, request, options) {
54566
55414
  };
54567
55415
  const requestRes = client$._createRequest(context, {
54568
55416
  security: requestSecurity,
54569
- method: "POST",
55417
+ method: "GET",
54570
55418
  baseURL: options?.serverURL,
54571
55419
  path: path$,
54572
55420
  headers: headers$,
55421
+ query: query$,
54573
55422
  body: body$,
54574
55423
  userAgent: client$._options.userAgent,
54575
55424
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
@@ -54593,40 +55442,40 @@ async function $do3(client$, request, options) {
54593
55442
  response: doResult.value
54594
55443
  }];
54595
55444
  }
54596
- var init_contentV2ContentDraftsCreate = __esm(() => {
55445
+ var init_agentPreferenceV2AgentPreferenceResultsList = __esm(() => {
54597
55446
  init_encodings();
54598
55447
  init_primitives();
54599
55448
  init_schemas4();
54600
55449
  init_security();
54601
55450
  init_url();
54602
- init_generatecontentdraftrequest();
55451
+ init_v2agentpreferenceresultslistop();
54603
55452
  init_async();
54604
55453
  });
54605
55454
 
54606
- // src/mcp-server/tools/contentV2ContentDraftsCreate.ts
54607
- var args, tool$contentV2ContentDraftsCreate;
54608
- var init_contentV2ContentDraftsCreate2 = __esm(() => {
54609
- init_contentV2ContentDraftsCreate();
54610
- init_generatecontentdraftrequest();
55455
+ // src/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.ts
55456
+ var args6, tool$agentPreferenceV2AgentPreferenceResultsList;
55457
+ var init_agentPreferenceV2AgentPreferenceResultsList2 = __esm(() => {
55458
+ init_agentPreferenceV2AgentPreferenceResultsList();
55459
+ init_v2agentpreferenceresultslistop();
54611
55460
  init_tools();
54612
- args = {
54613
- request: GenerateContentDraftRequest$zodSchema
55461
+ args6 = {
55462
+ request: V2AgentPreferenceResultsListRequest$zodSchema
54614
55463
  };
54615
- tool$contentV2ContentDraftsCreate = {
54616
- name: "content-v2-content-drafts-create",
54617
- description: `Create Content Draft
55464
+ tool$agentPreferenceV2AgentPreferenceResultsList = {
55465
+ name: "agent-preference-v2-agent-preference-results-list",
55466
+ description: `List Results
54618
55467
 
54619
- Generates and saves a draft article using AI. Returns the new content record with its ID, title, markdown body, slug, and status. Consumes credits.`,
55468
+ Returns recorded attempts for an Agent Preference eval, newest first, each with whether your company won, lost, or tied against the competitor.`,
54620
55469
  annotations: {
54621
55470
  title: "",
54622
55471
  destructiveHint: false,
54623
55472
  idempotentHint: false,
54624
55473
  openWorldHint: false,
54625
- readOnlyHint: false
55474
+ readOnlyHint: true
54626
55475
  },
54627
- args,
55476
+ args: args6,
54628
55477
  tool: async (client, args, ctx) => {
54629
- const [result] = await contentV2ContentDraftsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55478
+ const [result] = await agentPreferenceV2AgentPreferenceResultsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54630
55479
  if (!result.ok) {
54631
55480
  return {
54632
55481
  content: [{ type: "text", text: result.error.message }],
@@ -54638,84 +55487,12 @@ Generates and saves a draft article using AI. Returns the new content record wit
54638
55487
  };
54639
55488
  });
54640
55489
 
54641
- // src/models/validationerror.ts
54642
- var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
54643
- var init_validationerror = __esm(() => {
54644
- init_zod();
54645
- Loc$zodSchema = union([
54646
- string2(),
54647
- int()
54648
- ]);
54649
- Context$zodSchema = object({});
54650
- ValidationError$zodSchema = object({
54651
- ctx: lazy(() => Context$zodSchema).optional(),
54652
- input: any().optional(),
54653
- loc: array(union([
54654
- string2(),
54655
- int()
54656
- ])),
54657
- msg: string2(),
54658
- type: string2()
54659
- });
54660
- });
54661
-
54662
- // src/models/httpvalidationerror.ts
54663
- var HTTPValidationError$zodSchema;
54664
- var init_httpvalidationerror = __esm(() => {
54665
- init_zod();
54666
- init_validationerror();
54667
- HTTPValidationError$zodSchema = object({
54668
- detail: array(ValidationError$zodSchema).optional()
54669
- });
54670
- });
54671
-
54672
- // src/models/publiccontent.ts
54673
- var PublicContent$zodSchema;
54674
- var init_publiccontent = __esm(() => {
54675
- init_zod();
54676
- PublicContent$zodSchema = object({
54677
- description: string2().nullable().optional(),
54678
- id: string2(),
54679
- slug: string2(),
54680
- status: string2(),
54681
- text: string2().describe("The article body in Markdown."),
54682
- title: string2()
54683
- });
54684
- });
54685
-
54686
- // src/models/v2contentfinalizeop.ts
54687
- var V2ContentFinalizeRequest$zodSchema, V2ContentFinalizeResponse$zodSchema;
54688
- var init_v2contentfinalizeop = __esm(() => {
54689
- init_zod();
54690
- init_httpvalidationerror();
54691
- init_publiccontent();
54692
- V2ContentFinalizeRequest$zodSchema = object({
54693
- content_id: string2()
54694
- });
54695
- V2ContentFinalizeResponse$zodSchema = union([
54696
- PublicContent$zodSchema,
54697
- HTTPValidationError$zodSchema
54698
- ]);
54699
- });
54700
-
54701
- // src/funcs/contentV2ContentFinalize.ts
54702
- function contentV2ContentFinalize(client$, request, options) {
54703
- return new APIPromise($do4(client$, request, options));
55490
+ // src/funcs/agentsV2AgentsList.ts
55491
+ function agentsV2AgentsList(client$, options) {
55492
+ return new APIPromise($do9(client$, options));
54704
55493
  }
54705
- async function $do4(client$, request, options) {
54706
- const parsed$ = safeParse4(request, (value$) => V2ContentFinalizeRequest$zodSchema.parse(value$), "Input validation failed");
54707
- if (!parsed$.ok) {
54708
- return [parsed$, { status: "invalid" }];
54709
- }
54710
- const payload$ = parsed$.value;
54711
- const body$ = null;
54712
- const pathParams$ = {
54713
- content_id: encodeSimple("content_id", payload$.content_id, {
54714
- explode: false,
54715
- charEncoding: "percent"
54716
- })
54717
- };
54718
- const path$ = pathToFunc("/v2/content/{content_id}/finalize")(pathParams$);
55494
+ async function $do9(client$, options) {
55495
+ const path$ = pathToFunc("/v2/agents")();
54719
55496
  const headers$ = new Headers(compactMap({
54720
55497
  Accept: "application/json"
54721
55498
  }));
@@ -54724,7 +55501,7 @@ async function $do4(client$, request, options) {
54724
55501
  const context = {
54725
55502
  options: client$._options,
54726
55503
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
54727
- operationID: "v2_content_finalize",
55504
+ operationID: "v2_agents_list",
54728
55505
  oAuth2Scopes: null,
54729
55506
  resolvedSecurity: requestSecurity,
54730
55507
  securitySource: client$._options.security,
@@ -54739,11 +55516,10 @@ async function $do4(client$, request, options) {
54739
55516
  };
54740
55517
  const requestRes = client$._createRequest(context, {
54741
55518
  security: requestSecurity,
54742
- method: "POST",
55519
+ method: "GET",
54743
55520
  baseURL: options?.serverURL,
54744
55521
  path: path$,
54745
55522
  headers: headers$,
54746
- body: body$,
54747
55523
  userAgent: client$._options.userAgent,
54748
55524
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54749
55525
  }, options);
@@ -54766,40 +55542,32 @@ async function $do4(client$, request, options) {
54766
55542
  response: doResult.value
54767
55543
  }];
54768
55544
  }
54769
- var init_contentV2ContentFinalize = __esm(() => {
54770
- init_encodings();
55545
+ var init_agentsV2AgentsList = __esm(() => {
54771
55546
  init_primitives();
54772
- init_schemas4();
54773
55547
  init_security();
54774
55548
  init_url();
54775
- init_v2contentfinalizeop();
54776
55549
  init_async();
54777
55550
  });
54778
55551
 
54779
- // src/mcp-server/tools/contentV2ContentFinalize.ts
54780
- var args2, tool$contentV2ContentFinalize;
54781
- var init_contentV2ContentFinalize2 = __esm(() => {
54782
- init_contentV2ContentFinalize();
54783
- init_v2contentfinalizeop();
55552
+ // src/mcp-server/tools/agentsV2AgentsList.ts
55553
+ var tool$agentsV2AgentsList;
55554
+ var init_agentsV2AgentsList2 = __esm(() => {
55555
+ init_agentsV2AgentsList();
54784
55556
  init_tools();
54785
- args2 = {
54786
- request: V2ContentFinalizeRequest$zodSchema
54787
- };
54788
- tool$contentV2ContentFinalize = {
54789
- name: "content-v2-content-finalize",
54790
- description: `Finalize Content
55557
+ tool$agentsV2AgentsList = {
55558
+ name: "agents-v2-agents-list",
55559
+ description: `List Agents
54791
55560
 
54792
- Rewrites an existing draft into final, publish-ready content and updates its status. Consumes credits.`,
55561
+ Returns all runnable harness-and-model combinations as single agent IDs for use in eval runs.`,
54793
55562
  annotations: {
54794
55563
  title: "",
54795
55564
  destructiveHint: false,
54796
55565
  idempotentHint: false,
54797
55566
  openWorldHint: false,
54798
- readOnlyHint: false
55567
+ readOnlyHint: true
54799
55568
  },
54800
- args: args2,
54801
- tool: async (client, args, ctx) => {
54802
- const [result] = await contentV2ContentFinalize(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55569
+ tool: async (client, ctx) => {
55570
+ const [result] = await agentsV2AgentsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
54803
55571
  if (!result.ok) {
54804
55572
  return {
54805
55573
  content: [{ type: "text", text: result.error.message }],
@@ -54811,39 +55579,12 @@ Rewrites an existing draft into final, publish-ready content and updates its sta
54811
55579
  };
54812
55580
  });
54813
55581
 
54814
- // src/models/v2contentretrieveop.ts
54815
- var V2ContentRetrieveRequest$zodSchema, V2ContentRetrieveResponse$zodSchema;
54816
- var init_v2contentretrieveop = __esm(() => {
54817
- init_zod();
54818
- init_httpvalidationerror();
54819
- init_publiccontent();
54820
- V2ContentRetrieveRequest$zodSchema = object({
54821
- content_id: string2()
54822
- });
54823
- V2ContentRetrieveResponse$zodSchema = union([
54824
- PublicContent$zodSchema,
54825
- HTTPValidationError$zodSchema
54826
- ]);
54827
- });
54828
-
54829
- // src/funcs/contentV2ContentRetrieve.ts
54830
- function contentV2ContentRetrieve(client$, request, options) {
54831
- return new APIPromise($do5(client$, request, options));
55582
+ // src/funcs/clIsV2ClisList.ts
55583
+ function clIsV2ClisList(client$, options) {
55584
+ return new APIPromise($do10(client$, options));
54832
55585
  }
54833
- async function $do5(client$, request, options) {
54834
- const parsed$ = safeParse4(request, (value$) => V2ContentRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
54835
- if (!parsed$.ok) {
54836
- return [parsed$, { status: "invalid" }];
54837
- }
54838
- const payload$ = parsed$.value;
54839
- const body$ = null;
54840
- const pathParams$ = {
54841
- content_id: encodeSimple("content_id", payload$.content_id, {
54842
- explode: false,
54843
- charEncoding: "percent"
54844
- })
54845
- };
54846
- const path$ = pathToFunc("/v2/content/{content_id}")(pathParams$);
55586
+ async function $do10(client$, options) {
55587
+ const path$ = pathToFunc("/v2/clis")();
54847
55588
  const headers$ = new Headers(compactMap({
54848
55589
  Accept: "application/json"
54849
55590
  }));
@@ -54852,7 +55593,7 @@ async function $do5(client$, request, options) {
54852
55593
  const context = {
54853
55594
  options: client$._options,
54854
55595
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
54855
- operationID: "v2_content_retrieve",
55596
+ operationID: "v2_clis_list",
54856
55597
  oAuth2Scopes: null,
54857
55598
  resolvedSecurity: requestSecurity,
54858
55599
  securitySource: client$._options.security,
@@ -54871,7 +55612,6 @@ async function $do5(client$, request, options) {
54871
55612
  baseURL: options?.serverURL,
54872
55613
  path: path$,
54873
55614
  headers: headers$,
54874
- body: body$,
54875
55615
  userAgent: client$._options.userAgent,
54876
55616
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54877
55617
  }, options);
@@ -54894,30 +55634,23 @@ async function $do5(client$, request, options) {
54894
55634
  response: doResult.value
54895
55635
  }];
54896
55636
  }
54897
- var init_contentV2ContentRetrieve = __esm(() => {
54898
- init_encodings();
55637
+ var init_clIsV2ClisList = __esm(() => {
54899
55638
  init_primitives();
54900
- init_schemas4();
54901
55639
  init_security();
54902
55640
  init_url();
54903
- init_v2contentretrieveop();
54904
55641
  init_async();
54905
55642
  });
54906
55643
 
54907
- // src/mcp-server/tools/contentV2ContentRetrieve.ts
54908
- var args3, tool$contentV2ContentRetrieve;
54909
- var init_contentV2ContentRetrieve2 = __esm(() => {
54910
- init_contentV2ContentRetrieve();
54911
- init_v2contentretrieveop();
55644
+ // src/mcp-server/tools/clIsV2ClisList.ts
55645
+ var tool$clIsV2ClisList;
55646
+ var init_clIsV2ClisList2 = __esm(() => {
55647
+ init_clIsV2ClisList();
54912
55648
  init_tools();
54913
- args3 = {
54914
- request: V2ContentRetrieveRequest$zodSchema
54915
- };
54916
- tool$contentV2ContentRetrieve = {
54917
- name: "content-v2-content-retrieve",
54918
- description: `Retrieve Content
55649
+ tool$clIsV2ClisList = {
55650
+ name: "CL-is-v2-clis-list",
55651
+ description: `List Clis
54919
55652
 
54920
- Returns a content record by ID, including title, markdown body, slug, and status.`,
55653
+ Returns reusable CLIs without exposing setup or installation commands.`,
54921
55654
  annotations: {
54922
55655
  title: "",
54923
55656
  destructiveHint: false,
@@ -54925,9 +55658,8 @@ Returns a content record by ID, including title, markdown body, slug, and status
54925
55658
  openWorldHint: false,
54926
55659
  readOnlyHint: true
54927
55660
  },
54928
- args: args3,
54929
- tool: async (client, args, ctx) => {
54930
- const [result] = await contentV2ContentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55661
+ tool: async (client, ctx) => {
55662
+ const [result] = await clIsV2ClisList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
54931
55663
  if (!result.ok) {
54932
55664
  return {
54933
55665
  content: [{ type: "text", text: result.error.message }],
@@ -54941,9 +55673,9 @@ Returns a content record by ID, including title, markdown body, slug, and status
54941
55673
 
54942
55674
  // src/funcs/environmentsV2EnvironmentsList.ts
54943
55675
  function environmentsV2EnvironmentsList(client$, options) {
54944
- return new APIPromise($do6(client$, options));
55676
+ return new APIPromise($do11(client$, options));
54945
55677
  }
54946
- async function $do6(client$, options) {
55678
+ async function $do11(client$, options) {
54947
55679
  const path$ = pathToFunc("/v2/environments")();
54948
55680
  const headers$ = new Headers(compactMap({
54949
55681
  Accept: "application/json"
@@ -55107,9 +55839,9 @@ var init_v2evalrunslistop = __esm(() => {
55107
55839
 
55108
55840
  // src/funcs/evalRunsV2EvalRunsList.ts
55109
55841
  function evalRunsV2EvalRunsList(client$, request, options) {
55110
- return new APIPromise($do7(client$, request, options));
55842
+ return new APIPromise($do12(client$, request, options));
55111
55843
  }
55112
- async function $do7(client$, request, options) {
55844
+ async function $do12(client$, request, options) {
55113
55845
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
55114
55846
  if (!parsed$.ok) {
55115
55847
  return [parsed$, { status: "invalid" }];
@@ -55183,12 +55915,12 @@ var init_evalRunsV2EvalRunsList = __esm(() => {
55183
55915
  });
55184
55916
 
55185
55917
  // src/mcp-server/tools/evalRunsV2EvalRunsList.ts
55186
- var args4, tool$evalRunsV2EvalRunsList;
55918
+ var args7, tool$evalRunsV2EvalRunsList;
55187
55919
  var init_evalRunsV2EvalRunsList2 = __esm(() => {
55188
55920
  init_evalRunsV2EvalRunsList();
55189
55921
  init_v2evalrunslistop();
55190
55922
  init_tools();
55191
- args4 = {
55923
+ args7 = {
55192
55924
  request: V2EvalRunsListRequest$zodSchema.optional()
55193
55925
  };
55194
55926
  tool$evalRunsV2EvalRunsList = {
@@ -55203,7 +55935,7 @@ Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with
55203
55935
  openWorldHint: false,
55204
55936
  readOnlyHint: true
55205
55937
  },
55206
- args: args4,
55938
+ args: args7,
55207
55939
  tool: async (client, args, ctx) => {
55208
55940
  const [result] = await evalRunsV2EvalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55209
55941
  if (!result.ok) {
@@ -55246,9 +55978,9 @@ var init_v2evalrunscancelop = __esm(() => {
55246
55978
 
55247
55979
  // src/funcs/evalsCancel.ts
55248
55980
  function evalsCancel(client$, request, options) {
55249
- return new APIPromise($do8(client$, request, options));
55981
+ return new APIPromise($do13(client$, request, options));
55250
55982
  }
55251
- async function $do8(client$, request, options) {
55983
+ async function $do13(client$, request, options) {
55252
55984
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
55253
55985
  if (!parsed$.ok) {
55254
55986
  return [parsed$, { status: "invalid" }];
@@ -55323,12 +56055,12 @@ var init_evalsCancel = __esm(() => {
55323
56055
  });
55324
56056
 
55325
56057
  // src/mcp-server/tools/evalsCancel.ts
55326
- var args5, tool$evalsCancel;
56058
+ var args8, tool$evalsCancel;
55327
56059
  var init_evalsCancel2 = __esm(() => {
55328
56060
  init_evalsCancel();
55329
56061
  init_v2evalrunscancelop();
55330
56062
  init_tools();
55331
- args5 = {
56063
+ args8 = {
55332
56064
  request: V2EvalRunsCancelRequest$zodSchema
55333
56065
  };
55334
56066
  tool$evalsCancel = {
@@ -55343,7 +56075,7 @@ Marks an active eval run as cancelled and prevents queued attempts from starting
55343
56075
  openWorldHint: false,
55344
56076
  readOnlyHint: false
55345
56077
  },
55346
- args: args5,
56078
+ args: args8,
55347
56079
  tool: async (client, args, ctx) => {
55348
56080
  const [result] = await evalsCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55349
56081
  if (!result.ok) {
@@ -55404,17 +56136,6 @@ var init_publicgraderresult = __esm(() => {
55404
56136
  });
55405
56137
  });
55406
56138
 
55407
- // src/models/searchgroundingmode.ts
55408
- var SearchGroundingMode$zodSchema;
55409
- var init_searchgroundingmode = __esm(() => {
55410
- init_zod();
55411
- SearchGroundingMode$zodSchema = _enum([
55412
- "disabled",
55413
- "enabled",
55414
- "default"
55415
- ]).describe("Requested web-retrieval behavior for an eval run.");
55416
- });
55417
-
55418
56139
  // src/models/v2evalresultsummary.ts
55419
56140
  var V2EvalResultSummary$zodSchema;
55420
56141
  var init_v2evalresultsummary = __esm(() => {
@@ -55422,6 +56143,7 @@ var init_v2evalresultsummary = __esm(() => {
55422
56143
  init_publicevalrunenvironment();
55423
56144
  init_publicgraderresult();
55424
56145
  init_searchgroundingmode();
56146
+ init_v2preferenceresult();
55425
56147
  V2EvalResultSummary$zodSchema = object({
55426
56148
  agent: string2().nullable().optional().describe("Runnable agent combining the harness and model."),
55427
56149
  created_at: string2().nullable().optional(),
@@ -55434,6 +56156,7 @@ var init_v2evalresultsummary = __esm(() => {
55434
56156
  id: string2().describe("Result ID, not an eval job ID."),
55435
56157
  latency_ms: int().nullable().optional(),
55436
56158
  passed: boolean2().nullable().optional(),
56159
+ preference_result: V2PreferenceResult$zodSchema.nullable().optional().describe("Which company the agent recommended. Present only for Agent Preference evals that produced a usable recommendation."),
55437
56160
  prompt: string2().nullable().optional(),
55438
56161
  prompt_index: int().default(0),
55439
56162
  repeat_index: int().default(0),
@@ -55519,9 +56242,9 @@ var init_v2evalrunsretrieveop = __esm(() => {
55519
56242
 
55520
56243
  // src/funcs/evalsGet.ts
55521
56244
  function evalsGet(client$, request, options) {
55522
- return new APIPromise($do9(client$, request, options));
56245
+ return new APIPromise($do14(client$, request, options));
55523
56246
  }
55524
- async function $do9(client$, request, options) {
56247
+ async function $do14(client$, request, options) {
55525
56248
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
55526
56249
  if (!parsed$.ok) {
55527
56250
  return [parsed$, { status: "invalid" }];
@@ -55596,12 +56319,12 @@ var init_evalsGet = __esm(() => {
55596
56319
  });
55597
56320
 
55598
56321
  // src/mcp-server/tools/evalsGet.ts
55599
- var args6, tool$evalsGet;
56322
+ var args9, tool$evalsGet;
55600
56323
  var init_evalsGet2 = __esm(() => {
55601
56324
  init_evalsGet();
55602
56325
  init_v2evalrunsretrieveop();
55603
56326
  init_tools();
55604
- args6 = {
56327
+ args9 = {
55605
56328
  request: V2EvalRunsRetrieveRequest$zodSchema
55606
56329
  };
55607
56330
  tool$evalsGet = {
@@ -55616,7 +56339,7 @@ Returns the run's current status and progress. Once its attempts finish, the res
55616
56339
  openWorldHint: false,
55617
56340
  readOnlyHint: true
55618
56341
  },
55619
- args: args6,
56342
+ args: args9,
55620
56343
  tool: async (client, args, ctx) => {
55621
56344
  const [result] = await evalsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55622
56345
  if (!result.ok) {
@@ -55697,9 +56420,9 @@ var init_createv2evalrunrequest = __esm(() => {
55697
56420
 
55698
56421
  // src/funcs/evalsRun.ts
55699
56422
  function evalsRun(client$, request, options) {
55700
- return new APIPromise($do10(client$, request, options));
56423
+ return new APIPromise($do15(client$, request, options));
55701
56424
  }
55702
- async function $do10(client$, request, options) {
56425
+ async function $do15(client$, request, options) {
55703
56426
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
55704
56427
  if (!parsed$.ok) {
55705
56428
  return [parsed$, { status: "invalid" }];
@@ -55769,12 +56492,12 @@ var init_evalsRun = __esm(() => {
55769
56492
  });
55770
56493
 
55771
56494
  // src/mcp-server/tools/evalsRun.ts
55772
- var args7, tool$evalsRun;
56495
+ var args10, tool$evalsRun;
55773
56496
  var init_evalsRun2 = __esm(() => {
55774
56497
  init_evalsRun();
55775
56498
  init_createv2evalrunrequest();
55776
56499
  init_tools();
55777
- args7 = {
56500
+ args10 = {
55778
56501
  request: CreateV2EvalRunRequest$zodSchema
55779
56502
  };
55780
56503
  tool$evalsRun = {
@@ -55798,7 +56521,7 @@ A saved or inline environment containing an empty or placeholder credential is r
55798
56521
  openWorldHint: false,
55799
56522
  readOnlyHint: false
55800
56523
  },
55801
- args: args7,
56524
+ args: args10,
55802
56525
  tool: async (client, args, ctx) => {
55803
56526
  const [result] = await evalsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55804
56527
  if (!result.ok) {
@@ -55874,9 +56597,9 @@ var init_v2evalrunstraceop = __esm(() => {
55874
56597
 
55875
56598
  // src/funcs/evalsTrace.ts
55876
56599
  function evalsTrace(client$, request, options) {
55877
- return new APIPromise($do11(client$, request, options));
56600
+ return new APIPromise($do16(client$, request, options));
55878
56601
  }
55879
- async function $do11(client$, request, options) {
56602
+ async function $do16(client$, request, options) {
55880
56603
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsTraceRequest$zodSchema.parse(value$), "Input validation failed");
55881
56604
  if (!parsed$.ok) {
55882
56605
  return [parsed$, { status: "invalid" }];
@@ -55956,12 +56679,12 @@ var init_evalsTrace = __esm(() => {
55956
56679
  });
55957
56680
 
55958
56681
  // src/mcp-server/tools/evalsTrace.ts
55959
- var args8, tool$evalsTrace;
56682
+ var args11, tool$evalsTrace;
55960
56683
  var init_evalsTrace2 = __esm(() => {
55961
56684
  init_evalsTrace();
55962
56685
  init_v2evalrunstraceop();
55963
56686
  init_tools();
55964
- args8 = {
56687
+ args11 = {
55965
56688
  request: V2EvalRunsTraceRequest$zodSchema
55966
56689
  };
55967
56690
  tool$evalsTrace = {
@@ -55976,7 +56699,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
55976
56699
  openWorldHint: false,
55977
56700
  readOnlyHint: true
55978
56701
  },
55979
- args: args8,
56702
+ args: args11,
55980
56703
  tool: async (client, args, ctx) => {
55981
56704
  const [result] = await evalsTrace(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55982
56705
  if (!result.ok) {
@@ -56049,9 +56772,9 @@ var init_v2evalconfigurationscreateop = __esm(() => {
56049
56772
 
56050
56773
  // src/funcs/evalsV2EvalConfigurationsCreate.ts
56051
56774
  function evalsV2EvalConfigurationsCreate(client$, request, options) {
56052
- return new APIPromise($do12(client$, request, options));
56775
+ return new APIPromise($do17(client$, request, options));
56053
56776
  }
56054
- async function $do12(client$, request, options) {
56777
+ async function $do17(client$, request, options) {
56055
56778
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsCreateRequest$zodSchema.parse(value$), "Input validation failed");
56056
56779
  if (!parsed$.ok) {
56057
56780
  return [parsed$, { status: "invalid" }];
@@ -56127,12 +56850,12 @@ var init_evalsV2EvalConfigurationsCreate = __esm(() => {
56127
56850
  });
56128
56851
 
56129
56852
  // src/mcp-server/tools/evalsV2EvalConfigurationsCreate.ts
56130
- var args9, tool$evalsV2EvalConfigurationsCreate;
56853
+ var args12, tool$evalsV2EvalConfigurationsCreate;
56131
56854
  var init_evalsV2EvalConfigurationsCreate2 = __esm(() => {
56132
56855
  init_evalsV2EvalConfigurationsCreate();
56133
56856
  init_v2evalconfigurationscreateop();
56134
56857
  init_tools();
56135
- args9 = {
56858
+ args12 = {
56136
56859
  request: V2EvalConfigurationsCreateRequest$zodSchema
56137
56860
  };
56138
56861
  tool$evalsV2EvalConfigurationsCreate = {
@@ -56147,7 +56870,7 @@ Creates a saved runtime configuration that pairs an eval with a repository, envi
56147
56870
  openWorldHint: false,
56148
56871
  readOnlyHint: false
56149
56872
  },
56150
- args: args9,
56873
+ args: args12,
56151
56874
  tool: async (client, args, ctx) => {
56152
56875
  const [result] = await evalsV2EvalConfigurationsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56153
56876
  if (!result.ok) {
@@ -56179,9 +56902,9 @@ var init_v2evalconfigurationsdeleteop = __esm(() => {
56179
56902
 
56180
56903
  // src/funcs/evalsV2EvalConfigurationsDelete.ts
56181
56904
  function evalsV2EvalConfigurationsDelete(client$, request, options) {
56182
- return new APIPromise($do13(client$, request, options));
56905
+ return new APIPromise($do18(client$, request, options));
56183
56906
  }
56184
- async function $do13(client$, request, options) {
56907
+ async function $do18(client$, request, options) {
56185
56908
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
56186
56909
  if (!parsed$.ok) {
56187
56910
  return [parsed$, { status: "invalid" }];
@@ -56257,12 +56980,12 @@ var init_evalsV2EvalConfigurationsDelete = __esm(() => {
56257
56980
  });
56258
56981
 
56259
56982
  // src/mcp-server/tools/evalsV2EvalConfigurationsDelete.ts
56260
- var args10, tool$evalsV2EvalConfigurationsDelete;
56983
+ var args13, tool$evalsV2EvalConfigurationsDelete;
56261
56984
  var init_evalsV2EvalConfigurationsDelete2 = __esm(() => {
56262
56985
  init_evalsV2EvalConfigurationsDelete();
56263
56986
  init_v2evalconfigurationsdeleteop();
56264
56987
  init_tools();
56265
- args10 = {
56988
+ args13 = {
56266
56989
  request: V2EvalConfigurationsDeleteRequest$zodSchema
56267
56990
  };
56268
56991
  tool$evalsV2EvalConfigurationsDelete = {
@@ -56277,7 +57000,7 @@ Permanently deletes an eval configuration and returns its last saved state.`,
56277
57000
  openWorldHint: false,
56278
57001
  readOnlyHint: false
56279
57002
  },
56280
- args: args10,
57003
+ args: args13,
56281
57004
  tool: async (client, args, ctx) => {
56282
57005
  const [result] = await evalsV2EvalConfigurationsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56283
57006
  if (!result.ok) {
@@ -56319,9 +57042,9 @@ var init_v2evalconfigurationslistop = __esm(() => {
56319
57042
 
56320
57043
  // src/funcs/evalsV2EvalConfigurationsList.ts
56321
57044
  function evalsV2EvalConfigurationsList(client$, request, options) {
56322
- return new APIPromise($do14(client$, request, options));
57045
+ return new APIPromise($do19(client$, request, options));
56323
57046
  }
56324
- async function $do14(client$, request, options) {
57047
+ async function $do19(client$, request, options) {
56325
57048
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsListRequest$zodSchema.parse(value$), "Input validation failed");
56326
57049
  if (!parsed$.ok) {
56327
57050
  return [parsed$, { status: "invalid" }];
@@ -56396,12 +57119,12 @@ var init_evalsV2EvalConfigurationsList = __esm(() => {
56396
57119
  });
56397
57120
 
56398
57121
  // src/mcp-server/tools/evalsV2EvalConfigurationsList.ts
56399
- var args11, tool$evalsV2EvalConfigurationsList;
57122
+ var args14, tool$evalsV2EvalConfigurationsList;
56400
57123
  var init_evalsV2EvalConfigurationsList2 = __esm(() => {
56401
57124
  init_evalsV2EvalConfigurationsList();
56402
57125
  init_v2evalconfigurationslistop();
56403
57126
  init_tools();
56404
- args11 = {
57127
+ args14 = {
56405
57128
  request: V2EvalConfigurationsListRequest$zodSchema
56406
57129
  };
56407
57130
  tool$evalsV2EvalConfigurationsList = {
@@ -56416,7 +57139,7 @@ Returns the saved runtime configurations for an eval, including repository, envi
56416
57139
  openWorldHint: false,
56417
57140
  readOnlyHint: true
56418
57141
  },
56419
- args: args11,
57142
+ args: args14,
56420
57143
  tool: async (client, args, ctx) => {
56421
57144
  const [result] = await evalsV2EvalConfigurationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56422
57145
  if (!result.ok) {
@@ -56448,9 +57171,9 @@ var init_v2evalconfigurationsretrieveop = __esm(() => {
56448
57171
 
56449
57172
  // src/funcs/evalsV2EvalConfigurationsRetrieve.ts
56450
57173
  function evalsV2EvalConfigurationsRetrieve(client$, request, options) {
56451
- return new APIPromise($do15(client$, request, options));
57174
+ return new APIPromise($do20(client$, request, options));
56452
57175
  }
56453
- async function $do15(client$, request, options) {
57176
+ async function $do20(client$, request, options) {
56454
57177
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
56455
57178
  if (!parsed$.ok) {
56456
57179
  return [parsed$, { status: "invalid" }];
@@ -56526,12 +57249,12 @@ var init_evalsV2EvalConfigurationsRetrieve = __esm(() => {
56526
57249
  });
56527
57250
 
56528
57251
  // src/mcp-server/tools/evalsV2EvalConfigurationsRetrieve.ts
56529
- var args12, tool$evalsV2EvalConfigurationsRetrieve;
57252
+ var args15, tool$evalsV2EvalConfigurationsRetrieve;
56530
57253
  var init_evalsV2EvalConfigurationsRetrieve2 = __esm(() => {
56531
57254
  init_evalsV2EvalConfigurationsRetrieve();
56532
57255
  init_v2evalconfigurationsretrieveop();
56533
57256
  init_tools();
56534
- args12 = {
57257
+ args15 = {
56535
57258
  request: V2EvalConfigurationsRetrieveRequest$zodSchema
56536
57259
  };
56537
57260
  tool$evalsV2EvalConfigurationsRetrieve = {
@@ -56546,7 +57269,7 @@ Returns one saved configuration for an eval.`,
56546
57269
  openWorldHint: false,
56547
57270
  readOnlyHint: true
56548
57271
  },
56549
- args: args12,
57272
+ args: args15,
56550
57273
  tool: async (client, args, ctx) => {
56551
57274
  const [result] = await evalsV2EvalConfigurationsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56552
57275
  if (!result.ok) {
@@ -56598,9 +57321,9 @@ var init_v2evalconfigurationsupdateop = __esm(() => {
56598
57321
 
56599
57322
  // src/funcs/evalsV2EvalConfigurationsUpdate.ts
56600
57323
  function evalsV2EvalConfigurationsUpdate(client$, request, options) {
56601
- return new APIPromise($do16(client$, request, options));
57324
+ return new APIPromise($do21(client$, request, options));
56602
57325
  }
56603
- async function $do16(client$, request, options) {
57326
+ async function $do21(client$, request, options) {
56604
57327
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
56605
57328
  if (!parsed$.ok) {
56606
57329
  return [parsed$, { status: "invalid" }];
@@ -56677,12 +57400,12 @@ var init_evalsV2EvalConfigurationsUpdate = __esm(() => {
56677
57400
  });
56678
57401
 
56679
57402
  // src/mcp-server/tools/evalsV2EvalConfigurationsUpdate.ts
56680
- var args13, tool$evalsV2EvalConfigurationsUpdate;
57403
+ var args16, tool$evalsV2EvalConfigurationsUpdate;
56681
57404
  var init_evalsV2EvalConfigurationsUpdate2 = __esm(() => {
56682
57405
  init_evalsV2EvalConfigurationsUpdate();
56683
57406
  init_v2evalconfigurationsupdateop();
56684
57407
  init_tools();
56685
- args13 = {
57408
+ args16 = {
56686
57409
  request: V2EvalConfigurationsUpdateRequest$zodSchema
56687
57410
  };
56688
57411
  tool$evalsV2EvalConfigurationsUpdate = {
@@ -56697,7 +57420,7 @@ Updates an eval configuration; omitted fields remain unchanged.`,
56697
57420
  openWorldHint: false,
56698
57421
  readOnlyHint: false
56699
57422
  },
56700
- args: args13,
57423
+ args: args16,
56701
57424
  tool: async (client, args, ctx) => {
56702
57425
  const [result] = await evalsV2EvalConfigurationsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56703
57426
  if (!result.ok) {
@@ -56743,9 +57466,9 @@ var init_createevaltemplatebatchrequest = __esm(() => {
56743
57466
 
56744
57467
  // src/funcs/evalsV2EvalsBatchCreate.ts
56745
57468
  function evalsV2EvalsBatchCreate(client$, request, options) {
56746
- return new APIPromise($do17(client$, request, options));
57469
+ return new APIPromise($do22(client$, request, options));
56747
57470
  }
56748
- async function $do17(client$, request, options) {
57471
+ async function $do22(client$, request, options) {
56749
57472
  const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateBatchRequest$zodSchema.parse(value$), "Input validation failed");
56750
57473
  if (!parsed$.ok) {
56751
57474
  return [parsed$, { status: "invalid" }];
@@ -56815,12 +57538,12 @@ var init_evalsV2EvalsBatchCreate = __esm(() => {
56815
57538
  });
56816
57539
 
56817
57540
  // src/mcp-server/tools/evalsV2EvalsBatchCreate.ts
56818
- var args14, tool$evalsV2EvalsBatchCreate;
57541
+ var args17, tool$evalsV2EvalsBatchCreate;
56819
57542
  var init_evalsV2EvalsBatchCreate2 = __esm(() => {
56820
57543
  init_evalsV2EvalsBatchCreate();
56821
57544
  init_createevaltemplatebatchrequest();
56822
57545
  init_tools();
56823
- args14 = {
57546
+ args17 = {
56824
57547
  request: CreateEvalTemplateBatchRequest$zodSchema
56825
57548
  };
56826
57549
  tool$evalsV2EvalsBatchCreate = {
@@ -56835,7 +57558,7 @@ Step 2 of the reusable template workflow. Provide the \`id\` and \`version\` ret
56835
57558
  openWorldHint: false,
56836
57559
  readOnlyHint: false
56837
57560
  },
56838
- args: args14,
57561
+ args: args17,
56839
57562
  tool: async (client, args, ctx) => {
56840
57563
  const [result] = await evalsV2EvalsBatchCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56841
57564
  if (!result.ok) {
@@ -56881,9 +57604,9 @@ var init_createv2evalrequest = __esm(() => {
56881
57604
 
56882
57605
  // src/funcs/evalsV2EvalsCreate.ts
56883
57606
  function evalsV2EvalsCreate(client$, request, options) {
56884
- return new APIPromise($do18(client$, request, options));
57607
+ return new APIPromise($do23(client$, request, options));
56885
57608
  }
56886
- async function $do18(client$, request, options) {
57609
+ async function $do23(client$, request, options) {
56887
57610
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
56888
57611
  if (!parsed$.ok) {
56889
57612
  return [parsed$, { status: "invalid" }];
@@ -56953,12 +57676,12 @@ var init_evalsV2EvalsCreate = __esm(() => {
56953
57676
  });
56954
57677
 
56955
57678
  // src/mcp-server/tools/evalsV2EvalsCreate.ts
56956
- var args15, tool$evalsV2EvalsCreate;
57679
+ var args18, tool$evalsV2EvalsCreate;
56957
57680
  var init_evalsV2EvalsCreate2 = __esm(() => {
56958
57681
  init_evalsV2EvalsCreate();
56959
57682
  init_createv2evalrequest();
56960
57683
  init_tools();
56961
- args15 = {
57684
+ args18 = {
56962
57685
  request: CreateV2EvalRequest$zodSchema
56963
57686
  };
56964
57687
  tool$evalsV2EvalsCreate = {
@@ -56973,7 +57696,7 @@ Creates a reusable simulation definition with one or more task prompts and judge
56973
57696
  openWorldHint: false,
56974
57697
  readOnlyHint: false
56975
57698
  },
56976
- args: args15,
57699
+ args: args18,
56977
57700
  tool: async (client, args, ctx) => {
56978
57701
  const [result] = await evalsV2EvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56979
57702
  if (!result.ok) {
@@ -57064,9 +57787,9 @@ var init_v2evalsdeleteop = __esm(() => {
57064
57787
 
57065
57788
  // src/funcs/evalsV2EvalsDelete.ts
57066
57789
  function evalsV2EvalsDelete(client$, request, options) {
57067
- return new APIPromise($do19(client$, request, options));
57790
+ return new APIPromise($do24(client$, request, options));
57068
57791
  }
57069
- async function $do19(client$, request, options) {
57792
+ async function $do24(client$, request, options) {
57070
57793
  const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
57071
57794
  if (!parsed$.ok) {
57072
57795
  return [parsed$, { status: "invalid" }];
@@ -57141,12 +57864,12 @@ var init_evalsV2EvalsDelete = __esm(() => {
57141
57864
  });
57142
57865
 
57143
57866
  // src/mcp-server/tools/evalsV2EvalsDelete.ts
57144
- var args16, tool$evalsV2EvalsDelete;
57867
+ var args19, tool$evalsV2EvalsDelete;
57145
57868
  var init_evalsV2EvalsDelete2 = __esm(() => {
57146
57869
  init_evalsV2EvalsDelete();
57147
57870
  init_v2evalsdeleteop();
57148
57871
  init_tools();
57149
- args16 = {
57872
+ args19 = {
57150
57873
  request: V2EvalsDeleteRequest$zodSchema
57151
57874
  };
57152
57875
  tool$evalsV2EvalsDelete = {
@@ -57161,7 +57884,7 @@ Permanently deletes an eval and all of its saved configurations.`,
57161
57884
  openWorldHint: false,
57162
57885
  readOnlyHint: false
57163
57886
  },
57164
- args: args16,
57887
+ args: args19,
57165
57888
  tool: async (client, args, ctx) => {
57166
57889
  const [result] = await evalsV2EvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57167
57890
  if (!result.ok) {
@@ -57177,9 +57900,9 @@ Permanently deletes an eval and all of its saved configurations.`,
57177
57900
 
57178
57901
  // src/funcs/evalsV2EvalsList.ts
57179
57902
  function evalsV2EvalsList(client$, options) {
57180
- return new APIPromise($do20(client$, options));
57903
+ return new APIPromise($do25(client$, options));
57181
57904
  }
57182
- async function $do20(client$, options) {
57905
+ async function $do25(client$, options) {
57183
57906
  const path$ = pathToFunc("/v2/evals")();
57184
57907
  const headers$ = new Headers(compactMap({
57185
57908
  Accept: "application/json"
@@ -57284,9 +58007,9 @@ var init_v2evalsretrieveop = __esm(() => {
57284
58007
 
57285
58008
  // src/funcs/evalsV2EvalsRetrieve.ts
57286
58009
  function evalsV2EvalsRetrieve(client$, request, options) {
57287
- return new APIPromise($do21(client$, request, options));
58010
+ return new APIPromise($do26(client$, request, options));
57288
58011
  }
57289
- async function $do21(client$, request, options) {
58012
+ async function $do26(client$, request, options) {
57290
58013
  const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
57291
58014
  if (!parsed$.ok) {
57292
58015
  return [parsed$, { status: "invalid" }];
@@ -57361,12 +58084,12 @@ var init_evalsV2EvalsRetrieve = __esm(() => {
57361
58084
  });
57362
58085
 
57363
58086
  // src/mcp-server/tools/evalsV2EvalsRetrieve.ts
57364
- var args17, tool$evalsV2EvalsRetrieve;
58087
+ var args20, tool$evalsV2EvalsRetrieve;
57365
58088
  var init_evalsV2EvalsRetrieve2 = __esm(() => {
57366
58089
  init_evalsV2EvalsRetrieve();
57367
58090
  init_v2evalsretrieveop();
57368
58091
  init_tools();
57369
- args17 = {
58092
+ args20 = {
57370
58093
  request: V2EvalsRetrieveRequest$zodSchema
57371
58094
  };
57372
58095
  tool$evalsV2EvalsRetrieve = {
@@ -57381,7 +58104,7 @@ Returns one reusable eval simulation definition.`,
57381
58104
  openWorldHint: false,
57382
58105
  readOnlyHint: true
57383
58106
  },
57384
- args: args17,
58107
+ args: args20,
57385
58108
  tool: async (client, args, ctx) => {
57386
58109
  const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57387
58110
  if (!result.ok) {
@@ -57444,9 +58167,9 @@ var init_v2evalsupdateop = __esm(() => {
57444
58167
 
57445
58168
  // src/funcs/evalsV2EvalsUpdate.ts
57446
58169
  function evalsV2EvalsUpdate(client$, request, options) {
57447
- return new APIPromise($do22(client$, request, options));
58170
+ return new APIPromise($do27(client$, request, options));
57448
58171
  }
57449
- async function $do22(client$, request, options) {
58172
+ async function $do27(client$, request, options) {
57450
58173
  const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
57451
58174
  if (!parsed$.ok) {
57452
58175
  return [parsed$, { status: "invalid" }];
@@ -57522,12 +58245,12 @@ var init_evalsV2EvalsUpdate = __esm(() => {
57522
58245
  });
57523
58246
 
57524
58247
  // src/mcp-server/tools/evalsV2EvalsUpdate.ts
57525
- var args18, tool$evalsV2EvalsUpdate;
58248
+ var args21, tool$evalsV2EvalsUpdate;
57526
58249
  var init_evalsV2EvalsUpdate2 = __esm(() => {
57527
58250
  init_evalsV2EvalsUpdate();
57528
58251
  init_v2evalsupdateop();
57529
58252
  init_tools();
57530
- args18 = {
58253
+ args21 = {
57531
58254
  request: V2EvalsUpdateRequest$zodSchema
57532
58255
  };
57533
58256
  tool$evalsV2EvalsUpdate = {
@@ -57542,7 +58265,7 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
57542
58265
  openWorldHint: false,
57543
58266
  readOnlyHint: false
57544
58267
  },
57545
- args: args18,
58268
+ args: args21,
57546
58269
  tool: async (client, args, ctx) => {
57547
58270
  const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57548
58271
  if (!result.ok) {
@@ -57657,9 +58380,9 @@ var init_createevaltemplaterequest = __esm(() => {
57657
58380
 
57658
58381
  // src/funcs/evalTemplatesV2EvalTemplatesCreate.ts
57659
58382
  function evalTemplatesV2EvalTemplatesCreate(client$, request, options) {
57660
- return new APIPromise($do23(client$, request, options));
58383
+ return new APIPromise($do28(client$, request, options));
57661
58384
  }
57662
- async function $do23(client$, request, options) {
58385
+ async function $do28(client$, request, options) {
57663
58386
  const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateRequest$zodSchema.parse(value$), "Input validation failed");
57664
58387
  if (!parsed$.ok) {
57665
58388
  return [parsed$, { status: "invalid" }];
@@ -57729,12 +58452,12 @@ var init_evalTemplatesV2EvalTemplatesCreate = __esm(() => {
57729
58452
  });
57730
58453
 
57731
58454
  // src/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.ts
57732
- var args19, tool$evalTemplatesV2EvalTemplatesCreate;
58455
+ var args22, tool$evalTemplatesV2EvalTemplatesCreate;
57733
58456
  var init_evalTemplatesV2EvalTemplatesCreate2 = __esm(() => {
57734
58457
  init_evalTemplatesV2EvalTemplatesCreate();
57735
58458
  init_createevaltemplaterequest();
57736
58459
  init_tools();
57737
- args19 = {
58460
+ args22 = {
57738
58461
  request: CreateEvalTemplateRequest$zodSchema
57739
58462
  };
57740
58463
  tool$evalTemplatesV2EvalTemplatesCreate = {
@@ -57749,7 +58472,7 @@ Step 1 of the reusable template workflow. Creates an organization-owned Eval tem
57749
58472
  openWorldHint: false,
57750
58473
  readOnlyHint: false
57751
58474
  },
57752
- args: args19,
58475
+ args: args22,
57753
58476
  tool: async (client, args, ctx) => {
57754
58477
  const [result] = await evalTemplatesV2EvalTemplatesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57755
58478
  if (!result.ok) {
@@ -57842,9 +58565,9 @@ var init_v2evaltemplatesdeleteop = __esm(() => {
57842
58565
 
57843
58566
  // src/funcs/evalTemplatesV2EvalTemplatesDelete.ts
57844
58567
  function evalTemplatesV2EvalTemplatesDelete(client$, request, options) {
57845
- return new APIPromise($do24(client$, request, options));
58568
+ return new APIPromise($do29(client$, request, options));
57846
58569
  }
57847
- async function $do24(client$, request, options) {
58570
+ async function $do29(client$, request, options) {
57848
58571
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
57849
58572
  if (!parsed$.ok) {
57850
58573
  return [parsed$, { status: "invalid" }];
@@ -57919,12 +58642,12 @@ var init_evalTemplatesV2EvalTemplatesDelete = __esm(() => {
57919
58642
  });
57920
58643
 
57921
58644
  // src/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.ts
57922
- var args20, tool$evalTemplatesV2EvalTemplatesDelete;
58645
+ var args23, tool$evalTemplatesV2EvalTemplatesDelete;
57923
58646
  var init_evalTemplatesV2EvalTemplatesDelete2 = __esm(() => {
57924
58647
  init_evalTemplatesV2EvalTemplatesDelete();
57925
58648
  init_v2evaltemplatesdeleteop();
57926
58649
  init_tools();
57927
- args20 = {
58650
+ args23 = {
57928
58651
  request: V2EvalTemplatesDeleteRequest$zodSchema
57929
58652
  };
57930
58653
  tool$evalTemplatesV2EvalTemplatesDelete = {
@@ -57939,7 +58662,7 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
57939
58662
  openWorldHint: false,
57940
58663
  readOnlyHint: false
57941
58664
  },
57942
- args: args20,
58665
+ args: args23,
57943
58666
  tool: async (client, args, ctx) => {
57944
58667
  const [result] = await evalTemplatesV2EvalTemplatesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57945
58668
  if (!result.ok) {
@@ -57955,9 +58678,9 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
57955
58678
 
57956
58679
  // src/funcs/evalTemplatesV2EvalTemplatesList.ts
57957
58680
  function evalTemplatesV2EvalTemplatesList(client$, options) {
57958
- return new APIPromise($do25(client$, options));
58681
+ return new APIPromise($do30(client$, options));
57959
58682
  }
57960
- async function $do25(client$, options) {
58683
+ async function $do30(client$, options) {
57961
58684
  const path$ = pathToFunc("/v2/eval-templates")();
57962
58685
  const headers$ = new Headers(compactMap({
57963
58686
  Accept: "application/json"
@@ -58066,9 +58789,9 @@ var init_v2evaltemplatesretrieveop = __esm(() => {
58066
58789
 
58067
58790
  // src/funcs/evalTemplatesV2EvalTemplatesRetrieve.ts
58068
58791
  function evalTemplatesV2EvalTemplatesRetrieve(client$, request, options) {
58069
- return new APIPromise($do26(client$, request, options));
58792
+ return new APIPromise($do31(client$, request, options));
58070
58793
  }
58071
- async function $do26(client$, request, options) {
58794
+ async function $do31(client$, request, options) {
58072
58795
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58073
58796
  if (!parsed$.ok) {
58074
58797
  return [parsed$, { status: "invalid" }];
@@ -58143,12 +58866,12 @@ var init_evalTemplatesV2EvalTemplatesRetrieve = __esm(() => {
58143
58866
  });
58144
58867
 
58145
58868
  // src/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.ts
58146
- var args21, tool$evalTemplatesV2EvalTemplatesRetrieve;
58869
+ var args24, tool$evalTemplatesV2EvalTemplatesRetrieve;
58147
58870
  var init_evalTemplatesV2EvalTemplatesRetrieve2 = __esm(() => {
58148
58871
  init_evalTemplatesV2EvalTemplatesRetrieve();
58149
58872
  init_v2evaltemplatesretrieveop();
58150
58873
  init_tools();
58151
- args21 = {
58874
+ args24 = {
58152
58875
  request: V2EvalTemplatesRetrieveRequest$zodSchema
58153
58876
  };
58154
58877
  tool$evalTemplatesV2EvalTemplatesRetrieve = {
@@ -58163,7 +58886,7 @@ Returns one active reusable Eval template.`,
58163
58886
  openWorldHint: false,
58164
58887
  readOnlyHint: true
58165
58888
  },
58166
- args: args21,
58889
+ args: args24,
58167
58890
  tool: async (client, args, ctx) => {
58168
58891
  const [result] = await evalTemplatesV2EvalTemplatesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58169
58892
  if (!result.ok) {
@@ -58256,9 +58979,9 @@ var init_v2evaltemplatesupdateop = __esm(() => {
58256
58979
 
58257
58980
  // src/funcs/evalTemplatesV2EvalTemplatesUpdate.ts
58258
58981
  function evalTemplatesV2EvalTemplatesUpdate(client$, request, options) {
58259
- return new APIPromise($do27(client$, request, options));
58982
+ return new APIPromise($do32(client$, request, options));
58260
58983
  }
58261
- async function $do27(client$, request, options) {
58984
+ async function $do32(client$, request, options) {
58262
58985
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
58263
58986
  if (!parsed$.ok) {
58264
58987
  return [parsed$, { status: "invalid" }];
@@ -58334,12 +59057,12 @@ var init_evalTemplatesV2EvalTemplatesUpdate = __esm(() => {
58334
59057
  });
58335
59058
 
58336
59059
  // src/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.ts
58337
- var args22, tool$evalTemplatesV2EvalTemplatesUpdate;
59060
+ var args25, tool$evalTemplatesV2EvalTemplatesUpdate;
58338
59061
  var init_evalTemplatesV2EvalTemplatesUpdate2 = __esm(() => {
58339
59062
  init_evalTemplatesV2EvalTemplatesUpdate();
58340
59063
  init_v2evaltemplatesupdateop();
58341
59064
  init_tools();
58342
- args22 = {
59065
+ args25 = {
58343
59066
  request: V2EvalTemplatesUpdateRequest$zodSchema
58344
59067
  };
58345
59068
  tool$evalTemplatesV2EvalTemplatesUpdate = {
@@ -58354,7 +59077,7 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
58354
59077
  openWorldHint: false,
58355
59078
  readOnlyHint: false
58356
59079
  },
58357
- args: args22,
59080
+ args: args25,
58358
59081
  tool: async (client, args, ctx) => {
58359
59082
  const [result] = await evalTemplatesV2EvalTemplatesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58360
59083
  if (!result.ok) {
@@ -58370,9 +59093,9 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
58370
59093
 
58371
59094
  // src/funcs/mcpServersV2MCPServersList.ts
58372
59095
  function mcpServersV2MCPServersList(client$, options) {
58373
- return new APIPromise($do28(client$, options));
59096
+ return new APIPromise($do33(client$, options));
58374
59097
  }
58375
- async function $do28(client$, options) {
59098
+ async function $do33(client$, options) {
58376
59099
  const path$ = pathToFunc("/v2/mcp-servers")();
58377
59100
  const headers$ = new Headers(compactMap({
58378
59101
  Accept: "application/json"
@@ -58554,9 +59277,9 @@ var init_v2opportunitieslistop = __esm(() => {
58554
59277
 
58555
59278
  // src/funcs/opportunitiesV2OpportunitiesList.ts
58556
59279
  function opportunitiesV2OpportunitiesList(client$, request, options) {
58557
- return new APIPromise($do29(client$, request, options));
59280
+ return new APIPromise($do34(client$, request, options));
58558
59281
  }
58559
- async function $do29(client$, request, options) {
59282
+ async function $do34(client$, request, options) {
58560
59283
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
58561
59284
  if (!parsed$.ok) {
58562
59285
  return [parsed$, { status: "invalid" }];
@@ -58634,12 +59357,12 @@ var init_opportunitiesV2OpportunitiesList = __esm(() => {
58634
59357
  });
58635
59358
 
58636
59359
  // src/mcp-server/tools/opportunitiesV2OpportunitiesList.ts
58637
- var args23, tool$opportunitiesV2OpportunitiesList;
59360
+ var args26, tool$opportunitiesV2OpportunitiesList;
58638
59361
  var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
58639
59362
  init_opportunitiesV2OpportunitiesList();
58640
59363
  init_v2opportunitieslistop();
58641
59364
  init_tools();
58642
- args23 = {
59365
+ args26 = {
58643
59366
  request: V2OpportunitiesListRequest$zodSchema.optional()
58644
59367
  };
58645
59368
  tool$opportunitiesV2OpportunitiesList = {
@@ -58654,7 +59377,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
58654
59377
  openWorldHint: false,
58655
59378
  readOnlyHint: true
58656
59379
  },
58657
- args: args23,
59380
+ args: args26,
58658
59381
  tool: async (client, args, ctx) => {
58659
59382
  const [result] = await opportunitiesV2OpportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58660
59383
  if (!result.ok) {
@@ -58726,9 +59449,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
58726
59449
 
58727
59450
  // src/funcs/opportunitiesV2OpportunitiesRetrieve.ts
58728
59451
  function opportunitiesV2OpportunitiesRetrieve(client$, request, options) {
58729
- return new APIPromise($do30(client$, request, options));
59452
+ return new APIPromise($do35(client$, request, options));
58730
59453
  }
58731
- async function $do30(client$, request, options) {
59454
+ async function $do35(client$, request, options) {
58732
59455
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58733
59456
  if (!parsed$.ok) {
58734
59457
  return [parsed$, { status: "invalid" }];
@@ -58809,12 +59532,12 @@ var init_opportunitiesV2OpportunitiesRetrieve = __esm(() => {
58809
59532
  });
58810
59533
 
58811
59534
  // src/mcp-server/tools/opportunitiesV2OpportunitiesRetrieve.ts
58812
- var args24, tool$opportunitiesV2OpportunitiesRetrieve;
59535
+ var args27, tool$opportunitiesV2OpportunitiesRetrieve;
58813
59536
  var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
58814
59537
  init_opportunitiesV2OpportunitiesRetrieve();
58815
59538
  init_v2opportunitiesretrieveop();
58816
59539
  init_tools();
58817
- args24 = {
59540
+ args27 = {
58818
59541
  request: V2OpportunitiesRetrieveRequest$zodSchema
58819
59542
  };
58820
59543
  tool$opportunitiesV2OpportunitiesRetrieve = {
@@ -58829,7 +59552,7 @@ Returns one computed opportunity and its execution context for the selected date
58829
59552
  openWorldHint: false,
58830
59553
  readOnlyHint: true
58831
59554
  },
58832
- args: args24,
59555
+ args: args27,
58833
59556
  tool: async (client, args, ctx) => {
58834
59557
  const [result] = await opportunitiesV2OpportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58835
59558
  if (!result.ok) {
@@ -58855,9 +59578,9 @@ var init_createv2promptrunrequest = __esm(() => {
58855
59578
 
58856
59579
  // src/funcs/promptsRun.ts
58857
59580
  function promptsRun(client$, request, options) {
58858
- return new APIPromise($do31(client$, request, options));
59581
+ return new APIPromise($do36(client$, request, options));
58859
59582
  }
58860
- async function $do31(client$, request, options) {
59583
+ async function $do36(client$, request, options) {
58861
59584
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptRunRequest$zodSchema.parse(value$), "Input validation failed");
58862
59585
  if (!parsed$.ok) {
58863
59586
  return [parsed$, { status: "invalid" }];
@@ -58927,12 +59650,12 @@ var init_promptsRun = __esm(() => {
58927
59650
  });
58928
59651
 
58929
59652
  // src/mcp-server/tools/promptsRun.ts
58930
- var args25, tool$promptsRun;
59653
+ var args28, tool$promptsRun;
58931
59654
  var init_promptsRun2 = __esm(() => {
58932
59655
  init_promptsRun();
58933
59656
  init_createv2promptrunrequest();
58934
59657
  init_tools();
58935
- args25 = {
59658
+ args28 = {
58936
59659
  request: CreateV2PromptRunRequest$zodSchema
58937
59660
  };
58938
59661
  tool$promptsRun = {
@@ -58952,7 +59675,7 @@ response returns a run ID to poll with
58952
59675
  openWorldHint: false,
58953
59676
  readOnlyHint: false
58954
59677
  },
58955
- args: args25,
59678
+ args: args28,
58956
59679
  tool: async (client, args, ctx) => {
58957
59680
  const [result] = await promptsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58958
59681
  if (!result.ok) {
@@ -59031,9 +59754,9 @@ var init_v2promptrunstatusretrieveop = __esm(() => {
59031
59754
 
59032
59755
  // src/funcs/promptsRunStatus.ts
59033
59756
  function promptsRunStatus(client$, request, options) {
59034
- return new APIPromise($do32(client$, request, options));
59757
+ return new APIPromise($do37(client$, request, options));
59035
59758
  }
59036
- async function $do32(client$, request, options) {
59759
+ async function $do37(client$, request, options) {
59037
59760
  const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59038
59761
  if (!parsed$.ok) {
59039
59762
  return [parsed$, { status: "invalid" }];
@@ -59108,12 +59831,12 @@ var init_promptsRunStatus = __esm(() => {
59108
59831
  });
59109
59832
 
59110
59833
  // src/mcp-server/tools/promptsRunStatus.ts
59111
- var args26, tool$promptsRunStatus;
59834
+ var args29, tool$promptsRunStatus;
59112
59835
  var init_promptsRunStatus2 = __esm(() => {
59113
59836
  init_promptsRunStatus();
59114
59837
  init_v2promptrunstatusretrieveop();
59115
59838
  init_tools();
59116
- args26 = {
59839
+ args29 = {
59117
59840
  request: V2PromptRunStatusRetrieveRequest$zodSchema
59118
59841
  };
59119
59842
  tool$promptsRunStatus = {
@@ -59131,7 +59854,7 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
59131
59854
  openWorldHint: false,
59132
59855
  readOnlyHint: true
59133
59856
  },
59134
- args: args26,
59857
+ args: args29,
59135
59858
  tool: async (client, args, ctx) => {
59136
59859
  const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59137
59860
  if (!result.ok) {
@@ -59245,9 +59968,9 @@ var init_v2promptrunslistop = __esm(() => {
59245
59968
 
59246
59969
  // src/funcs/promptsV2PromptRunsList.ts
59247
59970
  function promptsV2PromptRunsList(client$, request, options) {
59248
- return new APIPromise($do33(client$, request, options));
59971
+ return new APIPromise($do38(client$, request, options));
59249
59972
  }
59250
- async function $do33(client$, request, options) {
59973
+ async function $do38(client$, request, options) {
59251
59974
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
59252
59975
  if (!parsed$.ok) {
59253
59976
  return [parsed$, { status: "invalid" }];
@@ -59325,12 +60048,12 @@ var init_promptsV2PromptRunsList = __esm(() => {
59325
60048
  });
59326
60049
 
59327
60050
  // src/mcp-server/tools/promptsV2PromptRunsList.ts
59328
- var args27, tool$promptsV2PromptRunsList;
60051
+ var args30, tool$promptsV2PromptRunsList;
59329
60052
  var init_promptsV2PromptRunsList2 = __esm(() => {
59330
60053
  init_promptsV2PromptRunsList();
59331
60054
  init_v2promptrunslistop();
59332
60055
  init_tools();
59333
- args27 = {
60056
+ args30 = {
59334
60057
  request: V2PromptRunsListRequest$zodSchema.optional()
59335
60058
  };
59336
60059
  tool$promptsV2PromptRunsList = {
@@ -59345,7 +60068,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
59345
60068
  openWorldHint: false,
59346
60069
  readOnlyHint: true
59347
60070
  },
59348
- args: args27,
60071
+ args: args30,
59349
60072
  tool: async (client, args, ctx) => {
59350
60073
  const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59351
60074
  if (!result.ok) {
@@ -59458,9 +60181,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
59458
60181
 
59459
60182
  // src/funcs/promptsV2PromptRunsRetrieve.ts
59460
60183
  function promptsV2PromptRunsRetrieve(client$, request, options) {
59461
- return new APIPromise($do34(client$, request, options));
60184
+ return new APIPromise($do39(client$, request, options));
59462
60185
  }
59463
- async function $do34(client$, request, options) {
60186
+ async function $do39(client$, request, options) {
59464
60187
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59465
60188
  if (!parsed$.ok) {
59466
60189
  return [parsed$, { status: "invalid" }];
@@ -59535,12 +60258,12 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
59535
60258
  });
59536
60259
 
59537
60260
  // src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
59538
- var args28, tool$promptsV2PromptRunsRetrieve;
60261
+ var args31, tool$promptsV2PromptRunsRetrieve;
59539
60262
  var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
59540
60263
  init_promptsV2PromptRunsRetrieve();
59541
60264
  init_v2promptrunsretrieveop();
59542
60265
  init_tools();
59543
- args28 = {
60266
+ args31 = {
59544
60267
  request: V2PromptRunsRetrieveRequest$zodSchema
59545
60268
  };
59546
60269
  tool$promptsV2PromptRunsRetrieve = {
@@ -59555,7 +60278,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
59555
60278
  openWorldHint: false,
59556
60279
  readOnlyHint: true
59557
60280
  },
59558
- args: args28,
60281
+ args: args31,
59559
60282
  tool: async (client, args, ctx) => {
59560
60283
  const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59561
60284
  if (!result.ok) {
@@ -59610,9 +60333,9 @@ var init_createv2promptsrequest = __esm(() => {
59610
60333
 
59611
60334
  // src/funcs/promptsV2PromptsCreate.ts
59612
60335
  function promptsV2PromptsCreate(client$, request, options) {
59613
- return new APIPromise($do35(client$, request, options));
60336
+ return new APIPromise($do40(client$, request, options));
59614
60337
  }
59615
- async function $do35(client$, request, options) {
60338
+ async function $do40(client$, request, options) {
59616
60339
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
59617
60340
  if (!parsed$.ok) {
59618
60341
  return [parsed$, { status: "invalid" }];
@@ -59682,12 +60405,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
59682
60405
  });
59683
60406
 
59684
60407
  // src/mcp-server/tools/promptsV2PromptsCreate.ts
59685
- var args29, tool$promptsV2PromptsCreate;
60408
+ var args32, tool$promptsV2PromptsCreate;
59686
60409
  var init_promptsV2PromptsCreate2 = __esm(() => {
59687
60410
  init_promptsV2PromptsCreate();
59688
60411
  init_createv2promptsrequest();
59689
60412
  init_tools();
59690
- args29 = {
60413
+ args32 = {
59691
60414
  request: CreateV2PromptsRequest$zodSchema
59692
60415
  };
59693
60416
  tool$promptsV2PromptsCreate = {
@@ -59702,7 +60425,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
59702
60425
  openWorldHint: false,
59703
60426
  readOnlyHint: false
59704
60427
  },
59705
- args: args29,
60428
+ args: args32,
59706
60429
  tool: async (client, args, ctx) => {
59707
60430
  const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59708
60431
  if (!result.ok) {
@@ -59742,9 +60465,9 @@ var init_v2promptsdeleteop = __esm(() => {
59742
60465
 
59743
60466
  // src/funcs/promptsV2PromptsDelete.ts
59744
60467
  function promptsV2PromptsDelete(client$, request, options) {
59745
- return new APIPromise($do36(client$, request, options));
60468
+ return new APIPromise($do41(client$, request, options));
59746
60469
  }
59747
- async function $do36(client$, request, options) {
60470
+ async function $do41(client$, request, options) {
59748
60471
  const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59749
60472
  if (!parsed$.ok) {
59750
60473
  return [parsed$, { status: "invalid" }];
@@ -59819,12 +60542,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
59819
60542
  });
59820
60543
 
59821
60544
  // src/mcp-server/tools/promptsV2PromptsDelete.ts
59822
- var args30, tool$promptsV2PromptsDelete;
60545
+ var args33, tool$promptsV2PromptsDelete;
59823
60546
  var init_promptsV2PromptsDelete2 = __esm(() => {
59824
60547
  init_promptsV2PromptsDelete();
59825
60548
  init_v2promptsdeleteop();
59826
60549
  init_tools();
59827
- args30 = {
60550
+ args33 = {
59828
60551
  request: V2PromptsDeleteRequest$zodSchema
59829
60552
  };
59830
60553
  tool$promptsV2PromptsDelete = {
@@ -59839,7 +60562,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
59839
60562
  openWorldHint: false,
59840
60563
  readOnlyHint: false
59841
60564
  },
59842
- args: args30,
60565
+ args: args33,
59843
60566
  tool: async (client, args, ctx) => {
59844
60567
  const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59845
60568
  if (!result.ok) {
@@ -59967,9 +60690,9 @@ var init_v2promptslistop = __esm(() => {
59967
60690
 
59968
60691
  // src/funcs/promptsV2PromptsList.ts
59969
60692
  function promptsV2PromptsList(client$, request, options) {
59970
- return new APIPromise($do37(client$, request, options));
60693
+ return new APIPromise($do42(client$, request, options));
59971
60694
  }
59972
- async function $do37(client$, request, options) {
60695
+ async function $do42(client$, request, options) {
59973
60696
  const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
59974
60697
  if (!parsed$.ok) {
59975
60698
  return [parsed$, { status: "invalid" }];
@@ -60044,12 +60767,12 @@ var init_promptsV2PromptsList = __esm(() => {
60044
60767
  });
60045
60768
 
60046
60769
  // src/mcp-server/tools/promptsV2PromptsList.ts
60047
- var args31, tool$promptsV2PromptsList;
60770
+ var args34, tool$promptsV2PromptsList;
60048
60771
  var init_promptsV2PromptsList2 = __esm(() => {
60049
60772
  init_promptsV2PromptsList();
60050
60773
  init_v2promptslistop();
60051
60774
  init_tools();
60052
- args31 = {
60775
+ args34 = {
60053
60776
  request: V2PromptsListRequest$zodSchema.optional()
60054
60777
  };
60055
60778
  tool$promptsV2PromptsList = {
@@ -60064,7 +60787,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
60064
60787
  openWorldHint: false,
60065
60788
  readOnlyHint: true
60066
60789
  },
60067
- args: args31,
60790
+ args: args34,
60068
60791
  tool: async (client, args, ctx) => {
60069
60792
  const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60070
60793
  if (!result.ok) {
@@ -60095,9 +60818,9 @@ var init_v2promptsretrieveop = __esm(() => {
60095
60818
 
60096
60819
  // src/funcs/promptsV2PromptsRetrieve.ts
60097
60820
  function promptsV2PromptsRetrieve(client$, request, options) {
60098
- return new APIPromise($do38(client$, request, options));
60821
+ return new APIPromise($do43(client$, request, options));
60099
60822
  }
60100
- async function $do38(client$, request, options) {
60823
+ async function $do43(client$, request, options) {
60101
60824
  const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60102
60825
  if (!parsed$.ok) {
60103
60826
  return [parsed$, { status: "invalid" }];
@@ -60172,12 +60895,12 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
60172
60895
  });
60173
60896
 
60174
60897
  // src/mcp-server/tools/promptsV2PromptsRetrieve.ts
60175
- var args32, tool$promptsV2PromptsRetrieve;
60898
+ var args35, tool$promptsV2PromptsRetrieve;
60176
60899
  var init_promptsV2PromptsRetrieve2 = __esm(() => {
60177
60900
  init_promptsV2PromptsRetrieve();
60178
60901
  init_v2promptsretrieveop();
60179
60902
  init_tools();
60180
- args32 = {
60903
+ args35 = {
60181
60904
  request: V2PromptsRetrieveRequest$zodSchema
60182
60905
  };
60183
60906
  tool$promptsV2PromptsRetrieve = {
@@ -60192,7 +60915,7 @@ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-a
60192
60915
  openWorldHint: false,
60193
60916
  readOnlyHint: true
60194
60917
  },
60195
- args: args32,
60918
+ args: args35,
60196
60919
  tool: async (client, args, ctx) => {
60197
60920
  const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60198
60921
  if (!result.ok) {
@@ -60243,9 +60966,9 @@ var init_v2promptsupdateop = __esm(() => {
60243
60966
 
60244
60967
  // src/funcs/promptsV2PromptsUpdate.ts
60245
60968
  function promptsV2PromptsUpdate(client$, request, options) {
60246
- return new APIPromise($do39(client$, request, options));
60969
+ return new APIPromise($do44(client$, request, options));
60247
60970
  }
60248
- async function $do39(client$, request, options) {
60971
+ async function $do44(client$, request, options) {
60249
60972
  const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
60250
60973
  if (!parsed$.ok) {
60251
60974
  return [parsed$, { status: "invalid" }];
@@ -60321,12 +61044,12 @@ var init_promptsV2PromptsUpdate = __esm(() => {
60321
61044
  });
60322
61045
 
60323
61046
  // src/mcp-server/tools/promptsV2PromptsUpdate.ts
60324
- var args33, tool$promptsV2PromptsUpdate;
61047
+ var args36, tool$promptsV2PromptsUpdate;
60325
61048
  var init_promptsV2PromptsUpdate2 = __esm(() => {
60326
61049
  init_promptsV2PromptsUpdate();
60327
61050
  init_v2promptsupdateop();
60328
61051
  init_tools();
60329
- args33 = {
61052
+ args36 = {
60330
61053
  request: V2PromptsUpdateRequest$zodSchema
60331
61054
  };
60332
61055
  tool$promptsV2PromptsUpdate = {
@@ -60341,7 +61064,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
60341
61064
  openWorldHint: false,
60342
61065
  readOnlyHint: false
60343
61066
  },
60344
- args: args33,
61067
+ args: args36,
60345
61068
  tool: async (client, args, ctx) => {
60346
61069
  const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60347
61070
  if (!result.ok) {
@@ -60366,9 +61089,9 @@ var init_createprompttopicrequest = __esm(() => {
60366
61089
 
60367
61090
  // src/funcs/promptsV2PromptTopicsCreate.ts
60368
61091
  function promptsV2PromptTopicsCreate(client$, request, options) {
60369
- return new APIPromise($do40(client$, request, options));
61092
+ return new APIPromise($do45(client$, request, options));
60370
61093
  }
60371
- async function $do40(client$, request, options) {
61094
+ async function $do45(client$, request, options) {
60372
61095
  const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
60373
61096
  if (!parsed$.ok) {
60374
61097
  return [parsed$, { status: "invalid" }];
@@ -60438,12 +61161,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
60438
61161
  });
60439
61162
 
60440
61163
  // src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
60441
- var args34, tool$promptsV2PromptTopicsCreate;
61164
+ var args37, tool$promptsV2PromptTopicsCreate;
60442
61165
  var init_promptsV2PromptTopicsCreate2 = __esm(() => {
60443
61166
  init_promptsV2PromptTopicsCreate();
60444
61167
  init_createprompttopicrequest();
60445
61168
  init_tools();
60446
- args34 = {
61169
+ args37 = {
60447
61170
  request: CreatePromptTopicRequest$zodSchema
60448
61171
  };
60449
61172
  tool$promptsV2PromptTopicsCreate = {
@@ -60458,7 +61181,7 @@ Creates a prompt topic and returns the saved topic.`,
60458
61181
  openWorldHint: false,
60459
61182
  readOnlyHint: false
60460
61183
  },
60461
- args: args34,
61184
+ args: args37,
60462
61185
  tool: async (client, args, ctx) => {
60463
61186
  const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60464
61187
  if (!result.ok) {
@@ -60490,9 +61213,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
60490
61213
 
60491
61214
  // src/funcs/promptsV2PromptTopicsDelete.ts
60492
61215
  function promptsV2PromptTopicsDelete(client$, request, options) {
60493
- return new APIPromise($do41(client$, request, options));
61216
+ return new APIPromise($do46(client$, request, options));
60494
61217
  }
60495
- async function $do41(client$, request, options) {
61218
+ async function $do46(client$, request, options) {
60496
61219
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
60497
61220
  if (!parsed$.ok) {
60498
61221
  return [parsed$, { status: "invalid" }];
@@ -60571,12 +61294,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
60571
61294
  });
60572
61295
 
60573
61296
  // src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
60574
- var args35, tool$promptsV2PromptTopicsDelete;
61297
+ var args38, tool$promptsV2PromptTopicsDelete;
60575
61298
  var init_promptsV2PromptTopicsDelete2 = __esm(() => {
60576
61299
  init_promptsV2PromptTopicsDelete();
60577
61300
  init_v2prompttopicsdeleteop();
60578
61301
  init_tools();
60579
- args35 = {
61302
+ args38 = {
60580
61303
  request: V2PromptTopicsDeleteRequest$zodSchema
60581
61304
  };
60582
61305
  tool$promptsV2PromptTopicsDelete = {
@@ -60591,7 +61314,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
60591
61314
  openWorldHint: false,
60592
61315
  readOnlyHint: false
60593
61316
  },
60594
- args: args35,
61317
+ args: args38,
60595
61318
  tool: async (client, args, ctx) => {
60596
61319
  const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60597
61320
  if (!result.ok) {
@@ -60607,9 +61330,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
60607
61330
 
60608
61331
  // src/funcs/promptsV2PromptTopicsList.ts
60609
61332
  function promptsV2PromptTopicsList(client$, options) {
60610
- return new APIPromise($do42(client$, options));
61333
+ return new APIPromise($do47(client$, options));
60611
61334
  }
60612
- async function $do42(client$, options) {
61335
+ async function $do47(client$, options) {
60613
61336
  const path$ = pathToFunc("/v2/prompts/topics")();
60614
61337
  const headers$ = new Headers(compactMap({
60615
61338
  Accept: "application/json"
@@ -60725,9 +61448,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
60725
61448
 
60726
61449
  // src/funcs/promptsV2PromptTopicsUpdate.ts
60727
61450
  function promptsV2PromptTopicsUpdate(client$, request, options) {
60728
- return new APIPromise($do43(client$, request, options));
61451
+ return new APIPromise($do48(client$, request, options));
60729
61452
  }
60730
- async function $do43(client$, request, options) {
61453
+ async function $do48(client$, request, options) {
60731
61454
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
60732
61455
  if (!parsed$.ok) {
60733
61456
  return [parsed$, { status: "invalid" }];
@@ -60803,12 +61526,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
60803
61526
  });
60804
61527
 
60805
61528
  // src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
60806
- var args36, tool$promptsV2PromptTopicsUpdate;
61529
+ var args39, tool$promptsV2PromptTopicsUpdate;
60807
61530
  var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
60808
61531
  init_promptsV2PromptTopicsUpdate();
60809
61532
  init_v2prompttopicsupdateop();
60810
61533
  init_tools();
60811
- args36 = {
61534
+ args39 = {
60812
61535
  request: V2PromptTopicsUpdateRequest$zodSchema
60813
61536
  };
60814
61537
  tool$promptsV2PromptTopicsUpdate = {
@@ -60823,7 +61546,7 @@ Renames a prompt topic and returns the updated topic.`,
60823
61546
  openWorldHint: false,
60824
61547
  readOnlyHint: false
60825
61548
  },
60826
- args: args36,
61549
+ args: args39,
60827
61550
  tool: async (client, args, ctx) => {
60828
61551
  const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60829
61552
  if (!result.ok) {
@@ -60866,9 +61589,9 @@ var init_createv2repositoryrequest = __esm(() => {
60866
61589
 
60867
61590
  // src/funcs/repositoriesV2RepositoriesCreate.ts
60868
61591
  function repositoriesV2RepositoriesCreate(client$, request, options) {
60869
- return new APIPromise($do44(client$, request, options));
61592
+ return new APIPromise($do49(client$, request, options));
60870
61593
  }
60871
- async function $do44(client$, request, options) {
61594
+ async function $do49(client$, request, options) {
60872
61595
  const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
60873
61596
  if (!parsed$.ok) {
60874
61597
  return [parsed$, { status: "invalid" }];
@@ -60938,12 +61661,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
60938
61661
  });
60939
61662
 
60940
61663
  // src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
60941
- var args37, tool$repositoriesV2RepositoriesCreate;
61664
+ var args40, tool$repositoriesV2RepositoriesCreate;
60942
61665
  var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
60943
61666
  init_repositoriesV2RepositoriesCreate();
60944
61667
  init_createv2repositoryrequest();
60945
61668
  init_tools();
60946
- args37 = {
61669
+ args40 = {
60947
61670
  request: CreateV2RepositoryRequest$zodSchema
60948
61671
  };
60949
61672
  tool$repositoriesV2RepositoriesCreate = {
@@ -60958,7 +61681,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
60958
61681
  openWorldHint: false,
60959
61682
  readOnlyHint: false
60960
61683
  },
60961
- args: args37,
61684
+ args: args40,
60962
61685
  tool: async (client, args, ctx) => {
60963
61686
  const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60964
61687
  if (!result.ok) {
@@ -61024,9 +61747,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
61024
61747
 
61025
61748
  // src/funcs/repositoriesV2RepositoriesDelete.ts
61026
61749
  function repositoriesV2RepositoriesDelete(client$, request, options) {
61027
- return new APIPromise($do45(client$, request, options));
61750
+ return new APIPromise($do50(client$, request, options));
61028
61751
  }
61029
- async function $do45(client$, request, options) {
61752
+ async function $do50(client$, request, options) {
61030
61753
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
61031
61754
  if (!parsed$.ok) {
61032
61755
  return [parsed$, { status: "invalid" }];
@@ -61101,12 +61824,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
61101
61824
  });
61102
61825
 
61103
61826
  // src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
61104
- var args38, tool$repositoriesV2RepositoriesDelete;
61827
+ var args41, tool$repositoriesV2RepositoriesDelete;
61105
61828
  var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
61106
61829
  init_repositoriesV2RepositoriesDelete();
61107
61830
  init_v2repositoriesdeleteop();
61108
61831
  init_tools();
61109
- args38 = {
61832
+ args41 = {
61110
61833
  request: V2RepositoriesDeleteRequest$zodSchema
61111
61834
  };
61112
61835
  tool$repositoriesV2RepositoriesDelete = {
@@ -61121,7 +61844,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
61121
61844
  openWorldHint: false,
61122
61845
  readOnlyHint: false
61123
61846
  },
61124
- args: args38,
61847
+ args: args41,
61125
61848
  tool: async (client, args, ctx) => {
61126
61849
  const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61127
61850
  if (!result.ok) {
@@ -61137,9 +61860,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
61137
61860
 
61138
61861
  // src/funcs/repositoriesV2RepositoriesList.ts
61139
61862
  function repositoriesV2RepositoriesList(client$, options) {
61140
- return new APIPromise($do46(client$, options));
61863
+ return new APIPromise($do51(client$, options));
61141
61864
  }
61142
- async function $do46(client$, options) {
61865
+ async function $do51(client$, options) {
61143
61866
  const path$ = pathToFunc("/v2/repositories")();
61144
61867
  const headers$ = new Headers(compactMap({
61145
61868
  Accept: "application/json"
@@ -61244,9 +61967,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
61244
61967
 
61245
61968
  // src/funcs/repositoriesV2RepositoriesRetrieve.ts
61246
61969
  function repositoriesV2RepositoriesRetrieve(client$, request, options) {
61247
- return new APIPromise($do47(client$, request, options));
61970
+ return new APIPromise($do52(client$, request, options));
61248
61971
  }
61249
- async function $do47(client$, request, options) {
61972
+ async function $do52(client$, request, options) {
61250
61973
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61251
61974
  if (!parsed$.ok) {
61252
61975
  return [parsed$, { status: "invalid" }];
@@ -61321,12 +62044,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
61321
62044
  });
61322
62045
 
61323
62046
  // src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
61324
- var args39, tool$repositoriesV2RepositoriesRetrieve;
62047
+ var args42, tool$repositoriesV2RepositoriesRetrieve;
61325
62048
  var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
61326
62049
  init_repositoriesV2RepositoriesRetrieve();
61327
62050
  init_v2repositoriesretrieveop();
61328
62051
  init_tools();
61329
- args39 = {
62052
+ args42 = {
61330
62053
  request: V2RepositoriesRetrieveRequest$zodSchema
61331
62054
  };
61332
62055
  tool$repositoriesV2RepositoriesRetrieve = {
@@ -61341,7 +62064,7 @@ Returns one reusable repository workspace.`,
61341
62064
  openWorldHint: false,
61342
62065
  readOnlyHint: true
61343
62066
  },
61344
- args: args39,
62067
+ args: args42,
61345
62068
  tool: async (client, args, ctx) => {
61346
62069
  const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61347
62070
  if (!result.ok) {
@@ -61401,9 +62124,9 @@ var init_v2repositoriesupdateop = __esm(() => {
61401
62124
 
61402
62125
  // src/funcs/repositoriesV2RepositoriesUpdate.ts
61403
62126
  function repositoriesV2RepositoriesUpdate(client$, request, options) {
61404
- return new APIPromise($do48(client$, request, options));
62127
+ return new APIPromise($do53(client$, request, options));
61405
62128
  }
61406
- async function $do48(client$, request, options) {
62129
+ async function $do53(client$, request, options) {
61407
62130
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
61408
62131
  if (!parsed$.ok) {
61409
62132
  return [parsed$, { status: "invalid" }];
@@ -61479,12 +62202,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
61479
62202
  });
61480
62203
 
61481
62204
  // src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
61482
- var args40, tool$repositoriesV2RepositoriesUpdate;
62205
+ var args43, tool$repositoriesV2RepositoriesUpdate;
61483
62206
  var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
61484
62207
  init_repositoriesV2RepositoriesUpdate();
61485
62208
  init_v2repositoriesupdateop();
61486
62209
  init_tools();
61487
- args40 = {
62210
+ args43 = {
61488
62211
  request: V2RepositoriesUpdateRequest$zodSchema
61489
62212
  };
61490
62213
  tool$repositoriesV2RepositoriesUpdate = {
@@ -61499,7 +62222,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
61499
62222
  openWorldHint: false,
61500
62223
  readOnlyHint: false
61501
62224
  },
61502
- args: args40,
62225
+ args: args43,
61503
62226
  tool: async (client, args, ctx) => {
61504
62227
  const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61505
62228
  if (!result.ok) {
@@ -61515,9 +62238,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
61515
62238
 
61516
62239
  // src/funcs/siteAuditsV2SiteAuditsList.ts
61517
62240
  function siteAuditsV2SiteAuditsList(client$, options) {
61518
- return new APIPromise($do49(client$, options));
62241
+ return new APIPromise($do54(client$, options));
61519
62242
  }
61520
- async function $do49(client$, options) {
62243
+ async function $do54(client$, options) {
61521
62244
  const path$ = pathToFunc("/v2/site-audits")();
61522
62245
  const headers$ = new Headers(compactMap({
61523
62246
  Accept: "application/json"
@@ -61658,9 +62381,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
61658
62381
 
61659
62382
  // src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
61660
62383
  function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
61661
- return new APIPromise($do50(client$, request, options));
62384
+ return new APIPromise($do55(client$, request, options));
61662
62385
  }
61663
- async function $do50(client$, request, options) {
62386
+ async function $do55(client$, request, options) {
61664
62387
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61665
62388
  if (!parsed$.ok) {
61666
62389
  return [parsed$, { status: "invalid" }];
@@ -61735,12 +62458,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
61735
62458
  });
61736
62459
 
61737
62460
  // src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
61738
- var args41, tool$siteAuditsV2SiteAuditsRetrieve;
62461
+ var args44, tool$siteAuditsV2SiteAuditsRetrieve;
61739
62462
  var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
61740
62463
  init_siteAuditsV2SiteAuditsRetrieve();
61741
62464
  init_v2siteauditsretrieveop();
61742
62465
  init_tools();
61743
- args41 = {
62466
+ args44 = {
61744
62467
  request: V2SiteAuditsRetrieveRequest$zodSchema
61745
62468
  };
61746
62469
  tool$siteAuditsV2SiteAuditsRetrieve = {
@@ -61755,7 +62478,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
61755
62478
  openWorldHint: false,
61756
62479
  readOnlyHint: true
61757
62480
  },
61758
- args: args41,
62481
+ args: args44,
61759
62482
  tool: async (client, args, ctx) => {
61760
62483
  const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61761
62484
  if (!result.ok) {
@@ -61771,9 +62494,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
61771
62494
 
61772
62495
  // src/funcs/skillsV2SkillsList.ts
61773
62496
  function skillsV2SkillsList(client$, options) {
61774
- return new APIPromise($do51(client$, options));
62497
+ return new APIPromise($do56(client$, options));
61775
62498
  }
61776
- async function $do51(client$, options) {
62499
+ async function $do56(client$, options) {
61777
62500
  const path$ = pathToFunc("/v2/skills")();
61778
62501
  const headers$ = new Headers(compactMap({
61779
62502
  Accept: "application/json"
@@ -61863,9 +62586,9 @@ Returns reusable skills available to workflows and eval configurations.`,
61863
62586
 
61864
62587
  // src/funcs/statusV2AuthStatusGet.ts
61865
62588
  function statusV2AuthStatusGet(client$, options) {
61866
- return new APIPromise($do52(client$, options));
62589
+ return new APIPromise($do57(client$, options));
61867
62590
  }
61868
- async function $do52(client$, options) {
62591
+ async function $do57(client$, options) {
61869
62592
  const path$ = pathToFunc("/v2/auth/status")();
61870
62593
  const headers$ = new Headers(compactMap({
61871
62594
  Accept: "application/json"
@@ -61955,9 +62678,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
61955
62678
 
61956
62679
  // src/funcs/statusV2StatusGet.ts
61957
62680
  function statusV2StatusGet(client$, options) {
61958
- return new APIPromise($do53(client$, options));
62681
+ return new APIPromise($do58(client$, options));
61959
62682
  }
61960
- async function $do53(client$, options) {
62683
+ async function $do58(client$, options) {
61961
62684
  const path$ = pathToFunc("/v2/status")();
61962
62685
  const headers$ = new Headers(compactMap({
61963
62686
  Accept: "application/json"
@@ -62177,9 +62900,9 @@ var init_v2taskslistop = __esm(() => {
62177
62900
 
62178
62901
  // src/funcs/tasksV2TasksList.ts
62179
62902
  function tasksV2TasksList(client$, request, options) {
62180
- return new APIPromise($do54(client$, request, options));
62903
+ return new APIPromise($do59(client$, request, options));
62181
62904
  }
62182
- async function $do54(client$, request, options) {
62905
+ async function $do59(client$, request, options) {
62183
62906
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
62184
62907
  if (!parsed$.ok) {
62185
62908
  return [parsed$, { status: "invalid" }];
@@ -62253,12 +62976,12 @@ var init_tasksV2TasksList = __esm(() => {
62253
62976
  });
62254
62977
 
62255
62978
  // src/mcp-server/tools/tasksV2TasksList.ts
62256
- var args42, tool$tasksV2TasksList;
62979
+ var args45, tool$tasksV2TasksList;
62257
62980
  var init_tasksV2TasksList2 = __esm(() => {
62258
62981
  init_tasksV2TasksList();
62259
62982
  init_v2taskslistop();
62260
62983
  init_tools();
62261
- args42 = {
62984
+ args45 = {
62262
62985
  request: V2TasksListRequest$zodSchema.optional()
62263
62986
  };
62264
62987
  tool$tasksV2TasksList = {
@@ -62273,7 +62996,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
62273
62996
  openWorldHint: false,
62274
62997
  readOnlyHint: true
62275
62998
  },
62276
- args: args42,
62999
+ args: args45,
62277
63000
  tool: async (client, args, ctx) => {
62278
63001
  const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62279
63002
  if (!result.ok) {
@@ -62304,9 +63027,9 @@ var init_v2tasksretrieveop = __esm(() => {
62304
63027
 
62305
63028
  // src/funcs/tasksV2TasksRetrieve.ts
62306
63029
  function tasksV2TasksRetrieve(client$, request, options) {
62307
- return new APIPromise($do55(client$, request, options));
63030
+ return new APIPromise($do60(client$, request, options));
62308
63031
  }
62309
- async function $do55(client$, request, options) {
63032
+ async function $do60(client$, request, options) {
62310
63033
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
62311
63034
  if (!parsed$.ok) {
62312
63035
  return [parsed$, { status: "invalid" }];
@@ -62381,12 +63104,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
62381
63104
  });
62382
63105
 
62383
63106
  // src/mcp-server/tools/tasksV2TasksRetrieve.ts
62384
- var args43, tool$tasksV2TasksRetrieve;
63107
+ var args46, tool$tasksV2TasksRetrieve;
62385
63108
  var init_tasksV2TasksRetrieve2 = __esm(() => {
62386
63109
  init_tasksV2TasksRetrieve();
62387
63110
  init_v2tasksretrieveop();
62388
63111
  init_tools();
62389
- args43 = {
63112
+ args46 = {
62390
63113
  request: V2TasksRetrieveRequest$zodSchema
62391
63114
  };
62392
63115
  tool$tasksV2TasksRetrieve = {
@@ -62401,7 +63124,7 @@ Returns one persisted task and its execution prompt.`,
62401
63124
  openWorldHint: false,
62402
63125
  readOnlyHint: true
62403
63126
  },
62404
- args: args43,
63127
+ args: args46,
62405
63128
  tool: async (client, args, ctx) => {
62406
63129
  const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62407
63130
  if (!result.ok) {
@@ -62464,9 +63187,9 @@ var init_v2tasksupdateop = __esm(() => {
62464
63187
 
62465
63188
  // src/funcs/tasksV2TasksUpdate.ts
62466
63189
  function tasksV2TasksUpdate(client$, request, options) {
62467
- return new APIPromise($do56(client$, request, options));
63190
+ return new APIPromise($do61(client$, request, options));
62468
63191
  }
62469
- async function $do56(client$, request, options) {
63192
+ async function $do61(client$, request, options) {
62470
63193
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
62471
63194
  if (!parsed$.ok) {
62472
63195
  return [parsed$, { status: "invalid" }];
@@ -62542,12 +63265,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
62542
63265
  });
62543
63266
 
62544
63267
  // src/mcp-server/tools/tasksV2TasksUpdate.ts
62545
- var args44, tool$tasksV2TasksUpdate;
63268
+ var args47, tool$tasksV2TasksUpdate;
62546
63269
  var init_tasksV2TasksUpdate2 = __esm(() => {
62547
63270
  init_tasksV2TasksUpdate();
62548
63271
  init_v2tasksupdateop();
62549
63272
  init_tools();
62550
- args44 = {
63273
+ args47 = {
62551
63274
  request: V2TasksUpdateRequest$zodSchema
62552
63275
  };
62553
63276
  tool$tasksV2TasksUpdate = {
@@ -62562,7 +63285,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
62562
63285
  openWorldHint: false,
62563
63286
  readOnlyHint: false
62564
63287
  },
62565
- args: args44,
63288
+ args: args47,
62566
63289
  tool: async (client, args, ctx) => {
62567
63290
  const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62568
63291
  if (!result.ok) {
@@ -62650,9 +63373,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
62650
63373
 
62651
63374
  // src/funcs/visibilityV2VisibilityCitationsList.ts
62652
63375
  function visibilityV2VisibilityCitationsList(client$, request, options) {
62653
- return new APIPromise($do57(client$, request, options));
63376
+ return new APIPromise($do62(client$, request, options));
62654
63377
  }
62655
- async function $do57(client$, request, options) {
63378
+ async function $do62(client$, request, options) {
62656
63379
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
62657
63380
  if (!parsed$.ok) {
62658
63381
  return [parsed$, { status: "invalid" }];
@@ -62729,12 +63452,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
62729
63452
  });
62730
63453
 
62731
63454
  // src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
62732
- var args45, tool$visibilityV2VisibilityCitationsList;
63455
+ var args48, tool$visibilityV2VisibilityCitationsList;
62733
63456
  var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
62734
63457
  init_visibilityV2VisibilityCitationsList();
62735
63458
  init_v2visibilitycitationslistop();
62736
63459
  init_tools();
62737
- args45 = {
63460
+ args48 = {
62738
63461
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
62739
63462
  };
62740
63463
  tool$visibilityV2VisibilityCitationsList = {
@@ -62749,7 +63472,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
62749
63472
  openWorldHint: false,
62750
63473
  readOnlyHint: true
62751
63474
  },
62752
- args: args45,
63475
+ args: args48,
62753
63476
  tool: async (client, args, ctx) => {
62754
63477
  const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62755
63478
  if (!result.ok) {
@@ -62814,9 +63537,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
62814
63537
 
62815
63538
  // src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
62816
63539
  function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
62817
- return new APIPromise($do58(client$, request, options));
63540
+ return new APIPromise($do63(client$, request, options));
62818
63541
  }
62819
- async function $do58(client$, request, options) {
63542
+ async function $do63(client$, request, options) {
62820
63543
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
62821
63544
  if (!parsed$.ok) {
62822
63545
  return [parsed$, { status: "invalid" }];
@@ -62890,12 +63613,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
62890
63613
  });
62891
63614
 
62892
63615
  // src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
62893
- var args46, tool$visibilityV2VisibilityCurrentRetrieve;
63616
+ var args49, tool$visibilityV2VisibilityCurrentRetrieve;
62894
63617
  var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
62895
63618
  init_visibilityV2VisibilityCurrentRetrieve();
62896
63619
  init_v2visibilitycurrentretrieveop();
62897
63620
  init_tools();
62898
- args46 = {
63621
+ args49 = {
62899
63622
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
62900
63623
  };
62901
63624
  tool$visibilityV2VisibilityCurrentRetrieve = {
@@ -62910,7 +63633,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
62910
63633
  openWorldHint: false,
62911
63634
  readOnlyHint: true
62912
63635
  },
62913
- args: args46,
63636
+ args: args49,
62914
63637
  tool: async (client, args, ctx) => {
62915
63638
  const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62916
63639
  if (!result.ok) {
@@ -63053,9 +63776,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
63053
63776
 
63054
63777
  // src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
63055
63778
  function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
63056
- return new APIPromise($do59(client$, request, options));
63779
+ return new APIPromise($do64(client$, request, options));
63057
63780
  }
63058
- async function $do59(client$, request, options) {
63781
+ async function $do64(client$, request, options) {
63059
63782
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
63060
63783
  if (!parsed$.ok) {
63061
63784
  return [parsed$, { status: "invalid" }];
@@ -63129,12 +63852,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
63129
63852
  });
63130
63853
 
63131
63854
  // src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
63132
- var args47, tool$visibilityV2VisibilityOverviewRetrieve;
63855
+ var args50, tool$visibilityV2VisibilityOverviewRetrieve;
63133
63856
  var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
63134
63857
  init_visibilityV2VisibilityOverviewRetrieve();
63135
63858
  init_v2visibilityoverviewretrieveop();
63136
63859
  init_tools();
63137
- args47 = {
63860
+ args50 = {
63138
63861
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
63139
63862
  };
63140
63863
  tool$visibilityV2VisibilityOverviewRetrieve = {
@@ -63149,7 +63872,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
63149
63872
  openWorldHint: false,
63150
63873
  readOnlyHint: true
63151
63874
  },
63152
- args: args47,
63875
+ args: args50,
63153
63876
  tool: async (client, args, ctx) => {
63154
63877
  const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63155
63878
  if (!result.ok) {
@@ -63263,9 +63986,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
63263
63986
 
63264
63987
  // src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
63265
63988
  function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
63266
- return new APIPromise($do60(client$, request, options));
63989
+ return new APIPromise($do65(client$, request, options));
63267
63990
  }
63268
- async function $do60(client$, request, options) {
63991
+ async function $do65(client$, request, options) {
63269
63992
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
63270
63993
  if (!parsed$.ok) {
63271
63994
  return [parsed$, { status: "invalid" }];
@@ -63339,12 +64062,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
63339
64062
  });
63340
64063
 
63341
64064
  // src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
63342
- var args48, tool$visibilityV2VisibilityPromptsRetrieve;
64065
+ var args51, tool$visibilityV2VisibilityPromptsRetrieve;
63343
64066
  var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
63344
64067
  init_visibilityV2VisibilityPromptsRetrieve();
63345
64068
  init_v2visibilitypromptsretrieveop();
63346
64069
  init_tools();
63347
- args48 = {
64070
+ args51 = {
63348
64071
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
63349
64072
  };
63350
64073
  tool$visibilityV2VisibilityPromptsRetrieve = {
@@ -63359,7 +64082,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
63359
64082
  openWorldHint: false,
63360
64083
  readOnlyHint: true
63361
64084
  },
63362
- args: args48,
64085
+ args: args51,
63363
64086
  tool: async (client, args, ctx) => {
63364
64087
  const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63365
64088
  if (!result.ok) {
@@ -63383,7 +64106,7 @@ function createMCPServer(deps) {
63383
64106
  sizes: ["any"]
63384
64107
  }],
63385
64108
  name: "LightsageMcp",
63386
- version: "0.4.4"
64109
+ version: "0.4.6"
63387
64110
  });
63388
64111
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
63389
64112
  security: deps.security,
@@ -63426,9 +64149,6 @@ function createMCPServer(deps) {
63426
64149
  tool(tool$tasksV2TasksList);
63427
64150
  tool(tool$tasksV2TasksRetrieve);
63428
64151
  tool(tool$tasksV2TasksUpdate);
63429
- tool(tool$contentV2ContentDraftsCreate);
63430
- tool(tool$contentV2ContentFinalize);
63431
- tool(tool$contentV2ContentRetrieve);
63432
64152
  tool(tool$siteAuditsV2SiteAuditsList);
63433
64153
  tool(tool$siteAuditsV2SiteAuditsRetrieve);
63434
64154
  tool(tool$evalsV2EvalsList);
@@ -63452,6 +64172,14 @@ function createMCPServer(deps) {
63452
64172
  tool(tool$evalTemplatesV2EvalTemplatesUpdate);
63453
64173
  tool(tool$evalTemplatesV2EvalTemplatesDelete);
63454
64174
  tool(tool$evalRunsV2EvalRunsList);
64175
+ tool(tool$agentPreferenceV2AgentPreferenceCompetitorsList);
64176
+ tool(tool$agentPreferenceV2AgentPreferenceHeadToHeadRetrieve);
64177
+ tool(tool$agentPreferenceV2AgentPreferenceEvalsList);
64178
+ tool(tool$agentPreferenceV2AgentPreferenceEvalsCreate);
64179
+ tool(tool$agentPreferenceV2AgentPreferenceEvalsRetrieve);
64180
+ tool(tool$agentPreferenceV2AgentPreferenceEvalsUpdate);
64181
+ tool(tool$agentPreferenceV2AgentPreferenceEvalsDelete);
64182
+ tool(tool$agentPreferenceV2AgentPreferenceResultsList);
63455
64183
  tool(tool$agentsV2AgentsList);
63456
64184
  tool(tool$repositoriesV2RepositoriesList);
63457
64185
  tool(tool$repositoriesV2RepositoriesCreate);
@@ -63472,11 +64200,16 @@ var init_server2 = __esm(() => {
63472
64200
  init_core3();
63473
64201
  init_resources();
63474
64202
  init_tools();
64203
+ init_agentPreferenceV2AgentPreferenceCompetitorsList2();
64204
+ init_agentPreferenceV2AgentPreferenceEvalsCreate2();
64205
+ init_agentPreferenceV2AgentPreferenceEvalsDelete2();
64206
+ init_agentPreferenceV2AgentPreferenceEvalsList2();
64207
+ init_agentPreferenceV2AgentPreferenceEvalsRetrieve2();
64208
+ init_agentPreferenceV2AgentPreferenceEvalsUpdate2();
64209
+ init_agentPreferenceV2AgentPreferenceHeadToHeadRetrieve2();
64210
+ init_agentPreferenceV2AgentPreferenceResultsList2();
63475
64211
  init_agentsV2AgentsList2();
63476
64212
  init_clIsV2ClisList2();
63477
- init_contentV2ContentDraftsCreate2();
63478
- init_contentV2ContentFinalize2();
63479
- init_contentV2ContentRetrieve2();
63480
64213
  init_environmentsV2EnvironmentsList2();
63481
64214
  init_evalRunsV2EvalRunsList2();
63482
64215
  init_evalsCancel2();
@@ -63672,24 +64405,6 @@ Returns one persisted task and its execution prompt.`
63672
64405
  description: `Update Task
63673
64406
 
63674
64407
  Updates a task's status, priority, assignee, or action type. Only sent fields are changed; omitted fields remain unchanged.`
63675
- },
63676
- {
63677
- name: "content-v2-content-drafts-create",
63678
- description: `Create Content Draft
63679
-
63680
- Generates and saves a draft article using AI. Returns the new content record with its ID, title, markdown body, slug, and status. Consumes credits.`
63681
- },
63682
- {
63683
- name: "content-v2-content-finalize",
63684
- description: `Finalize Content
63685
-
63686
- Rewrites an existing draft into final, publish-ready content and updates its status. Consumes credits.`
63687
- },
63688
- {
63689
- name: "content-v2-content-retrieve",
63690
- description: `Retrieve Content
63691
-
63692
- Returns a content record by ID, including title, markdown body, slug, and status.`
63693
64408
  },
63694
64409
  {
63695
64410
  name: "site-audits-v2-site-audits-list",
@@ -63813,6 +64528,46 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
63813
64528
  name: "eval-runs-v2-eval-runs-list",
63814
64529
  description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
63815
64530
  },
64531
+ {
64532
+ name: "agent-preference-v2-agent-preference-competitors-9f0",
64533
+ description: "List Competitors\n\nReturns the tracked competitors your company can be compared against. Use a returned `id` as `competitor_id` when creating an Agent Preference eval."
64534
+ },
64535
+ {
64536
+ name: "agent-preference-v2-agent-preference-head-to-273",
64537
+ description: "Retrieve Head To Head\n\nReturns how often agents recommended your company over each tracked competitor: wins, losses, ties, and win rate per competitor plus a combined record. Calculated from the most recent attempts across all Agent Preference evals, up to `limit`; `truncated` reports whether older attempts were left out."
64538
+ },
64539
+ {
64540
+ name: "agent-preference-v2-agent-preference-evals-list",
64541
+ description: `List Evals
64542
+
64543
+ Returns all active Agent Preference evals owned by the organization.`
64544
+ },
64545
+ {
64546
+ name: "agent-preference-v2-agent-preference-evals-create",
64547
+ description: "Create Eval\n\nCreates a head-to-head comparison between your company and one tracked competitor. Each prompt asks an agent to choose, and a fixed judge records which company it recommended. Creating the eval does not start a run; pass the returned `id` as `eval_id` to `POST /v2/eval-runs`."
64548
+ },
64549
+ {
64550
+ name: "agent-preference-v2-agent-preference-evals-retrieve",
64551
+ description: `Retrieve Eval
64552
+
64553
+ Returns one Agent Preference eval.`
64554
+ },
64555
+ {
64556
+ name: "agent-preference-v2-agent-preference-evals-update",
64557
+ description: "Update Eval\n\nUpdates an Agent Preference eval. Omitted fields remain unchanged, an empty `agent` or `tags` array clears that collection, and `persona: null` clears the saved persona. The competitor and the judge that decides the comparison cannot be changed."
64558
+ },
64559
+ {
64560
+ name: "agent-preference-v2-agent-preference-evals-delete",
64561
+ description: `Delete Eval
64562
+
64563
+ Permanently deletes an Agent Preference eval and returns its last saved state.`
64564
+ },
64565
+ {
64566
+ name: "agent-preference-v2-agent-preference-results-list",
64567
+ description: `List Results
64568
+
64569
+ Returns recorded attempts for an Agent Preference eval, newest first, each with whether your company won, lost, or tied against the competitor.`
64570
+ },
63816
64571
  {
63817
64572
  name: "agents-v2-agents-list",
63818
64573
  description: `List Agents
@@ -64777,7 +65532,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
64777
65532
  <h1>Instructions</h1>
64778
65533
  <p>One-click installation for Claude Desktop users</p>
64779
65534
  <div class="instruction-item">
64780
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.4/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
65535
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.6/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
64781
65536
  \uD83D\uDCE5 Download MCP Bundle
64782
65537
  </a>
64783
65538
  </div>
@@ -67655,7 +68410,7 @@ var routes = buildRouteMap({
67655
68410
  var app = buildApplication(routes, {
67656
68411
  name: "mcp",
67657
68412
  versionInfo: {
67658
- currentVersion: "0.4.4"
68413
+ currentVersion: "0.4.6"
67659
68414
  }
67660
68415
  });
67661
68416
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -67663,5 +68418,5 @@ export {
67663
68418
  app
67664
68419
  };
67665
68420
 
67666
- //# debugId=C4591BDA5368315164756E2164756E21
68421
+ //# debugId=59EB2957DA1B9F9B64756E2164756E21
67667
68422
  //# sourceMappingURL=mcp-server.js.map