@lightsage/mcp 0.4.0 → 0.4.2

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 (263) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +1292 -247
  3. package/bin/mcp-server.js.map +48 -23
  4. package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.d.ts +16 -0
  5. package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.d.ts.map +1 -0
  6. package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.js +83 -0
  7. package/esm/funcs/evalTemplatesV2EvalTemplatesCreate.js.map +1 -0
  8. package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.d.ts +16 -0
  9. package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.d.ts.map +1 -0
  10. package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.js +88 -0
  11. package/esm/funcs/evalTemplatesV2EvalTemplatesDelete.js.map +1 -0
  12. package/esm/funcs/evalTemplatesV2EvalTemplatesList.d.ts +15 -0
  13. package/esm/funcs/evalTemplatesV2EvalTemplatesList.d.ts.map +1 -0
  14. package/esm/funcs/evalTemplatesV2EvalTemplatesList.js +72 -0
  15. package/esm/funcs/evalTemplatesV2EvalTemplatesList.js.map +1 -0
  16. package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.d.ts +16 -0
  17. package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.d.ts.map +1 -0
  18. package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.js +88 -0
  19. package/esm/funcs/evalTemplatesV2EvalTemplatesRetrieve.js.map +1 -0
  20. package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.d.ts +16 -0
  21. package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.d.ts.map +1 -0
  22. package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.js +89 -0
  23. package/esm/funcs/evalTemplatesV2EvalTemplatesUpdate.js.map +1 -0
  24. package/esm/funcs/evalsV2EvalsBatchCreate.d.ts +16 -0
  25. package/esm/funcs/evalsV2EvalsBatchCreate.d.ts.map +1 -0
  26. package/esm/funcs/evalsV2EvalsBatchCreate.js +83 -0
  27. package/esm/funcs/evalsV2EvalsBatchCreate.js.map +1 -0
  28. package/esm/funcs/promptsV2PromptsRetrieve.d.ts +1 -1
  29. package/esm/funcs/promptsV2PromptsRetrieve.js +1 -1
  30. package/esm/funcs/promptsV2PromptsUpdate.d.ts +1 -1
  31. package/esm/funcs/promptsV2PromptsUpdate.js +1 -1
  32. package/esm/landing-page.js +1 -1
  33. package/esm/lib/config.d.ts +2 -2
  34. package/esm/lib/config.js +2 -2
  35. package/esm/mcp-server/mcp-server.js +1 -1
  36. package/esm/mcp-server/server.d.ts.map +1 -1
  37. package/esm/mcp-server/server.js +13 -1
  38. package/esm/mcp-server/server.js.map +1 -1
  39. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.d.ts +7 -0
  40. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.d.ts.map +1 -0
  41. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.js +35 -0
  42. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.js.map +1 -0
  43. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.d.ts +7 -0
  44. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.d.ts.map +1 -0
  45. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.js +35 -0
  46. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.js.map +1 -0
  47. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.d.ts +3 -0
  48. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.d.ts.map +1 -0
  49. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.js +30 -0
  50. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesList.js.map +1 -0
  51. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.d.ts +7 -0
  52. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.d.ts.map +1 -0
  53. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.js +35 -0
  54. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.js.map +1 -0
  55. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.d.ts +7 -0
  56. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.d.ts.map +1 -0
  57. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.js +35 -0
  58. package/esm/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.js.map +1 -0
  59. package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.d.ts +7 -0
  60. package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.d.ts.map +1 -0
  61. package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.js +35 -0
  62. package/esm/mcp-server/tools/evalsV2EvalsBatchCreate.js.map +1 -0
  63. package/esm/mcp-server/tools/promptsV2PromptsRetrieve.js +1 -1
  64. package/esm/mcp-server/tools/promptsV2PromptsRetrieve.js.map +1 -1
  65. package/esm/mcp-server/tools/promptsV2PromptsUpdate.js +1 -1
  66. package/esm/mcp-server/tools/promptsV2PromptsUpdate.js.map +1 -1
  67. package/esm/models/createevaltemplatebatchrequest.d.ts +12 -0
  68. package/esm/models/createevaltemplatebatchrequest.d.ts.map +1 -0
  69. package/esm/models/createevaltemplatebatchrequest.js +12 -0
  70. package/esm/models/createevaltemplatebatchrequest.js.map +1 -0
  71. package/esm/models/createevaltemplaterequest.d.ts +79 -0
  72. package/esm/models/createevaltemplaterequest.d.ts.map +1 -0
  73. package/esm/models/createevaltemplaterequest.js +74 -0
  74. package/esm/models/createevaltemplaterequest.js.map +1 -0
  75. package/esm/models/createv2promptrequest.d.ts +2 -0
  76. package/esm/models/createv2promptrequest.d.ts.map +1 -1
  77. package/esm/models/createv2promptrequest.js +3 -0
  78. package/esm/models/createv2promptrequest.js.map +1 -1
  79. package/esm/models/evaltemplate.d.ts +83 -0
  80. package/esm/models/evaltemplate.d.ts.map +1 -0
  81. package/esm/models/evaltemplate.js +81 -0
  82. package/esm/models/evaltemplate.js.map +1 -0
  83. package/esm/models/evaltemplatebatchcreatedeval.d.ts +11 -0
  84. package/esm/models/evaltemplatebatchcreatedeval.d.ts.map +1 -0
  85. package/esm/models/evaltemplatebatchcreatedeval.js +14 -0
  86. package/esm/models/evaltemplatebatchcreatedeval.js.map +1 -0
  87. package/esm/models/evaltemplatebatchitem.d.ts +32 -0
  88. package/esm/models/evaltemplatebatchitem.d.ts.map +1 -0
  89. package/esm/models/evaltemplatebatchitem.js +27 -0
  90. package/esm/models/evaltemplatebatchitem.js.map +1 -0
  91. package/esm/models/evaltemplatebatchresponse.d.ts +12 -0
  92. package/esm/models/evaltemplatebatchresponse.d.ts.map +1 -0
  93. package/esm/models/evaltemplatebatchresponse.js +15 -0
  94. package/esm/models/evaltemplatebatchresponse.js.map +1 -0
  95. package/esm/models/evaltemplatebatchresult.d.ts +10 -0
  96. package/esm/models/evaltemplatebatchresult.d.ts.map +1 -0
  97. package/esm/models/evaltemplatebatchresult.js +13 -0
  98. package/esm/models/evaltemplatebatchresult.js.map +1 -0
  99. package/esm/models/evaltemplateruntime.d.ts +20 -0
  100. package/esm/models/evaltemplateruntime.d.ts.map +1 -0
  101. package/esm/models/evaltemplateruntime.js +21 -0
  102. package/esm/models/evaltemplateruntime.js.map +1 -0
  103. package/esm/models/evaltemplateschedule.d.ts +28 -0
  104. package/esm/models/evaltemplateschedule.d.ts.map +1 -0
  105. package/esm/models/evaltemplateschedule.js +24 -0
  106. package/esm/models/evaltemplateschedule.js.map +1 -0
  107. package/esm/models/evaltemplatesresponse.d.ts +8 -0
  108. package/esm/models/evaltemplatesresponse.d.ts.map +1 -0
  109. package/esm/models/evaltemplatesresponse.js +11 -0
  110. package/esm/models/evaltemplatesresponse.js.map +1 -0
  111. package/esm/models/graderdefinition.d.ts +14 -0
  112. package/esm/models/graderdefinition.d.ts.map +1 -0
  113. package/esm/models/graderdefinition.js +17 -0
  114. package/esm/models/graderdefinition.js.map +1 -0
  115. package/esm/models/updateevaltemplaterequest.d.ts +71 -0
  116. package/esm/models/updateevaltemplaterequest.d.ts.map +1 -0
  117. package/esm/models/updateevaltemplaterequest.js +71 -0
  118. package/esm/models/updateevaltemplaterequest.js.map +1 -0
  119. package/esm/models/updatev2promptrequest.d.ts +2 -0
  120. package/esm/models/updatev2promptrequest.d.ts.map +1 -1
  121. package/esm/models/updatev2promptrequest.js +3 -0
  122. package/esm/models/updatev2promptrequest.js.map +1 -1
  123. package/esm/models/v2evalsbatchcreateop.d.ts +27 -0
  124. package/esm/models/v2evalsbatchcreateop.d.ts.map +1 -0
  125. package/esm/models/v2evalsbatchcreateop.js +24 -0
  126. package/esm/models/v2evalsbatchcreateop.js.map +1 -0
  127. package/esm/models/v2evaltemplatescreateop.d.ts +13 -0
  128. package/esm/models/v2evaltemplatescreateop.d.ts.map +1 -0
  129. package/esm/models/v2evaltemplatescreateop.js +16 -0
  130. package/esm/models/v2evaltemplatescreateop.js.map +1 -0
  131. package/esm/models/v2evaltemplatesdeleteop.d.ts +24 -0
  132. package/esm/models/v2evaltemplatesdeleteop.d.ts.map +1 -0
  133. package/esm/models/v2evaltemplatesdeleteop.js +23 -0
  134. package/esm/models/v2evaltemplatesdeleteop.js.map +1 -0
  135. package/esm/models/v2evaltemplatesretrieveop.d.ts +17 -0
  136. package/esm/models/v2evaltemplatesretrieveop.d.ts.map +1 -0
  137. package/esm/models/v2evaltemplatesretrieveop.js +19 -0
  138. package/esm/models/v2evaltemplatesretrieveop.js.map +1 -0
  139. package/esm/models/v2evaltemplatesupdateop.d.ts +33 -0
  140. package/esm/models/v2evaltemplatesupdateop.d.ts.map +1 -0
  141. package/esm/models/v2evaltemplatesupdateop.js +29 -0
  142. package/esm/models/v2evaltemplatesupdateop.js.map +1 -0
  143. package/esm/models/v2inlinemcpdefinition.d.ts +4 -4
  144. package/esm/models/v2inlinemcpdefinition.d.ts.map +1 -1
  145. package/esm/models/v2inlinemcpdefinition.js +3 -3
  146. package/esm/models/v2inlinemcpdefinition.js.map +1 -1
  147. package/esm/models/v2listpromptsresponse.d.ts +8 -0
  148. package/esm/models/v2listpromptsresponse.d.ts.map +1 -0
  149. package/esm/models/v2listpromptsresponse.js +11 -0
  150. package/esm/models/v2listpromptsresponse.js.map +1 -0
  151. package/esm/models/v2promptbatchresponse.d.ts +10 -0
  152. package/esm/models/v2promptbatchresponse.d.ts.map +1 -0
  153. package/esm/models/v2promptbatchresponse.js +13 -0
  154. package/esm/models/v2promptbatchresponse.js.map +1 -0
  155. package/esm/models/{publicprompt.d.ts → v2promptresponse.d.ts} +9 -7
  156. package/esm/models/v2promptresponse.d.ts.map +1 -0
  157. package/esm/models/{publicprompt.js → v2promptresponse.js} +8 -6
  158. package/esm/models/v2promptresponse.js.map +1 -0
  159. package/esm/models/v2promptrundetail.d.ts +6 -0
  160. package/esm/models/v2promptrundetail.d.ts.map +1 -1
  161. package/esm/models/v2promptrundetail.js +7 -0
  162. package/esm/models/v2promptrundetail.js.map +1 -1
  163. package/esm/models/v2promptrunsettings.d.ts +26 -0
  164. package/esm/models/v2promptrunsettings.d.ts.map +1 -0
  165. package/esm/models/v2promptrunsettings.js +26 -0
  166. package/esm/models/v2promptrunsettings.js.map +1 -0
  167. package/esm/models/v2promptrunsettingsinput.d.ts +20 -0
  168. package/esm/models/v2promptrunsettingsinput.d.ts.map +1 -0
  169. package/esm/models/v2promptrunsettingsinput.js +23 -0
  170. package/esm/models/v2promptrunsettingsinput.js.map +1 -0
  171. package/esm/models/v2promptrunsummary.d.ts +6 -0
  172. package/esm/models/v2promptrunsummary.d.ts.map +1 -1
  173. package/esm/models/v2promptrunsummary.js +7 -0
  174. package/esm/models/v2promptrunsummary.js.map +1 -1
  175. package/esm/models/v2promptscreateop.d.ts +2 -2
  176. package/esm/models/v2promptscreateop.d.ts.map +1 -1
  177. package/esm/models/v2promptscreateop.js +2 -2
  178. package/esm/models/v2promptscreateop.js.map +1 -1
  179. package/esm/models/v2promptslistop.d.ts +2 -2
  180. package/esm/models/v2promptslistop.d.ts.map +1 -1
  181. package/esm/models/v2promptslistop.js +2 -2
  182. package/esm/models/v2promptslistop.js.map +1 -1
  183. package/esm/models/v2promptsretrieveop.d.ts +2 -2
  184. package/esm/models/v2promptsretrieveop.d.ts.map +1 -1
  185. package/esm/models/v2promptsretrieveop.js +2 -2
  186. package/esm/models/v2promptsretrieveop.js.map +1 -1
  187. package/esm/models/v2promptsupdateop.d.ts +2 -2
  188. package/esm/models/v2promptsupdateop.d.ts.map +1 -1
  189. package/esm/models/v2promptsupdateop.js +2 -2
  190. package/esm/models/v2promptsupdateop.js.map +1 -1
  191. package/esm/models/validationerror.d.ts +4 -0
  192. package/esm/models/validationerror.d.ts.map +1 -1
  193. package/esm/models/validationerror.js +3 -0
  194. package/esm/models/validationerror.js.map +1 -1
  195. package/esm/tool-names.d.ts.map +1 -1
  196. package/esm/tool-names.js +26 -2
  197. package/esm/tool-names.js.map +1 -1
  198. package/package.json +1 -1
  199. package/src/funcs/evalTemplatesV2EvalTemplatesCreate.ts +145 -0
  200. package/src/funcs/evalTemplatesV2EvalTemplatesDelete.ts +153 -0
  201. package/src/funcs/evalTemplatesV2EvalTemplatesList.ts +124 -0
  202. package/src/funcs/evalTemplatesV2EvalTemplatesRetrieve.ts +153 -0
  203. package/src/funcs/evalTemplatesV2EvalTemplatesUpdate.ts +154 -0
  204. package/src/funcs/evalsV2EvalsBatchCreate.ts +145 -0
  205. package/src/funcs/promptsV2PromptsRetrieve.ts +1 -1
  206. package/src/funcs/promptsV2PromptsUpdate.ts +1 -1
  207. package/src/landing-page.ts +1 -1
  208. package/src/lib/config.ts +2 -2
  209. package/src/mcp-server/mcp-server.ts +1 -1
  210. package/src/mcp-server/server.ts +13 -1
  211. package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.ts +45 -0
  212. package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.ts +45 -0
  213. package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesList.ts +36 -0
  214. package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.ts +45 -0
  215. package/src/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.ts +45 -0
  216. package/src/mcp-server/tools/evalsV2EvalsBatchCreate.ts +43 -0
  217. package/src/mcp-server/tools/promptsV2PromptsRetrieve.ts +1 -1
  218. package/src/mcp-server/tools/promptsV2PromptsUpdate.ts +1 -1
  219. package/src/models/createevaltemplatebatchrequest.ts +35 -0
  220. package/src/models/createevaltemplaterequest.ts +151 -0
  221. package/src/models/createv2promptrequest.ts +9 -0
  222. package/src/models/evaltemplate.ts +154 -0
  223. package/src/models/evaltemplatebatchcreatedeval.ts +26 -0
  224. package/src/models/evaltemplatebatchitem.ts +54 -0
  225. package/src/models/evaltemplatebatchresponse.ts +30 -0
  226. package/src/models/evaltemplatebatchresult.ts +26 -0
  227. package/src/models/evaltemplateruntime.ts +64 -0
  228. package/src/models/evaltemplateschedule.ts +44 -0
  229. package/src/models/evaltemplatesresponse.ts +18 -0
  230. package/src/models/graderdefinition.ts +34 -0
  231. package/src/models/updateevaltemplaterequest.ts +116 -0
  232. package/src/models/updatev2promptrequest.ts +9 -0
  233. package/src/models/v2evalsbatchcreateop.ts +66 -0
  234. package/src/models/v2evaltemplatescreateop.ts +37 -0
  235. package/src/models/v2evaltemplatesdeleteop.ts +56 -0
  236. package/src/models/v2evaltemplatesretrieveop.ts +43 -0
  237. package/src/models/v2evaltemplatesupdateop.ts +79 -0
  238. package/src/models/v2inlinemcpdefinition.ts +7 -5
  239. package/src/models/v2listpromptsresponse.ts +21 -0
  240. package/src/models/v2promptbatchresponse.ts +27 -0
  241. package/src/models/{publicprompt.ts → v2promptresponse.ts} +29 -21
  242. package/src/models/v2promptrundetail.ts +21 -0
  243. package/src/models/v2promptrunsettings.ts +50 -0
  244. package/src/models/v2promptrunsettingsinput.ts +47 -0
  245. package/src/models/v2promptrunsummary.ts +21 -0
  246. package/src/models/v2promptscreateop.ts +5 -5
  247. package/src/models/v2promptslistop.ts +5 -5
  248. package/src/models/v2promptsretrieveop.ts +6 -3
  249. package/src/models/v2promptsupdateop.ts +6 -3
  250. package/src/models/validationerror.ts +8 -0
  251. package/src/tool-names.ts +26 -2
  252. package/esm/models/listpromptsresponse.d.ts +0 -8
  253. package/esm/models/listpromptsresponse.d.ts.map +0 -1
  254. package/esm/models/listpromptsresponse.js +0 -12
  255. package/esm/models/listpromptsresponse.js.map +0 -1
  256. package/esm/models/publicprompt.d.ts.map +0 -1
  257. package/esm/models/publicprompt.js.map +0 -1
  258. package/esm/models/publicpromptbatchresponse.d.ts +0 -10
  259. package/esm/models/publicpromptbatchresponse.d.ts.map +0 -1
  260. package/esm/models/publicpromptbatchresponse.js +0 -13
  261. package/esm/models/publicpromptbatchresponse.js.map +0 -1
  262. package/src/models/listpromptsresponse.ts +0 -15
  263. package/src/models/publicpromptbatchresponse.ts +0 -25
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.0",
52847
+ sdkVersion: "0.4.2",
52848
52848
  genVersion: "2.941.0",
52849
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.0 2.941.0 1.0.0 @lightsage/mcp"
52849
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.2 2.941.0 1.0.0 @lightsage/mcp"
52850
52850
  };
52851
52851
  });
52852
52852
 
@@ -54639,14 +54639,17 @@ Generates and saves a draft article using AI. Returns the new content record wit
54639
54639
  });
54640
54640
 
54641
54641
  // src/models/validationerror.ts
54642
- var Loc$zodSchema, ValidationError$zodSchema;
54642
+ var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
54643
54643
  var init_validationerror = __esm(() => {
54644
54644
  init_zod();
54645
54645
  Loc$zodSchema = union([
54646
54646
  string2(),
54647
54647
  int()
54648
54648
  ]);
54649
+ Context$zodSchema = object({});
54649
54650
  ValidationError$zodSchema = object({
54651
+ ctx: lazy(() => Context$zodSchema).optional(),
54652
+ input: any().optional(),
54650
54653
  loc: array(union([
54651
54654
  string2(),
54652
54655
  int()
@@ -55628,10 +55631,10 @@ Returns the run's current status and progress. Once its attempts finish, the res
55628
55631
  });
55629
55632
 
55630
55633
  // src/models/v2inlinemcpdefinition.ts
55631
- var Type$zodSchema, V2InlineMcpDefinition$zodSchema;
55634
+ var V2InlineMcpDefinitionType$zodSchema, V2InlineMcpDefinition$zodSchema;
55632
55635
  var init_v2inlinemcpdefinition = __esm(() => {
55633
55636
  init_zod();
55634
- Type$zodSchema = _enum([
55637
+ V2InlineMcpDefinitionType$zodSchema = _enum([
55635
55638
  "http",
55636
55639
  "sse",
55637
55640
  "stdio"
@@ -55642,7 +55645,7 @@ var init_v2inlinemcpdefinition = __esm(() => {
55642
55645
  env: record(string2(), string2()).optional().describe("Environment mapping for a `stdio` MCP server. Values may reference run secrets with `${VARIABLE_NAME}`."),
55643
55646
  headers: record(string2(), string2()).optional().describe("HTTP headers. Reference run secrets with `${VARIABLE_NAME}` instead of embedding credentials."),
55644
55647
  name: string2().describe("Stable server name used in the selected agent's MCP config."),
55645
- type: Type$zodSchema,
55648
+ type: V2InlineMcpDefinitionType$zodSchema,
55646
55649
  url: string2().nullable().optional().describe("HTTPS endpoint for an `http` or `sse` MCP server.")
55647
55650
  });
55648
55651
  });
@@ -56708,6 +56711,144 @@ Updates an eval configuration; omitted fields remain unchanged.`,
56708
56711
  };
56709
56712
  });
56710
56713
 
56714
+ // src/models/evaltemplatebatchitem.ts
56715
+ var EvalTemplateBatchItemType$zodSchema, EvalTemplateBatchItem$zodSchema;
56716
+ var init_evaltemplatebatchitem = __esm(() => {
56717
+ init_zod();
56718
+ EvalTemplateBatchItemType$zodSchema = _enum([
56719
+ "workflow",
56720
+ "mcp",
56721
+ "cli",
56722
+ "skill"
56723
+ ]).describe("Eval subject type used for organization and reporting.");
56724
+ EvalTemplateBatchItem$zodSchema = object({
56725
+ name: string2().describe("Name of the prompt-specific eval to create."),
56726
+ prompts: array(string2()).describe("Task prompts owned by this eval. Judges, targets, scheduling, and runtime resources come from the template."),
56727
+ subject_id: string2().nullable().optional().describe("Optional subject identifier associated with this eval."),
56728
+ type: EvalTemplateBatchItemType$zodSchema.default("workflow").describe("Eval subject type used for organization and reporting.")
56729
+ }).describe("Prompt-specific fields combined with the referenced template.");
56730
+ });
56731
+
56732
+ // src/models/createevaltemplatebatchrequest.ts
56733
+ var CreateEvalTemplateBatchRequest$zodSchema;
56734
+ var init_createevaltemplatebatchrequest = __esm(() => {
56735
+ init_zod();
56736
+ init_evaltemplatebatchitem();
56737
+ CreateEvalTemplateBatchRequest$zodSchema = object({
56738
+ evals: array(EvalTemplateBatchItem$zodSchema).describe("Prompt-specific evals to create from the referenced template. Template-owned fields are intentionally rejected here to avoid ambiguous overrides."),
56739
+ expected_template_version: int().optional().describe("Template `version` returned when the template was read or created. When supplied, creation fails if the template changed before reuse."),
56740
+ template_id: string2().describe("Template `id` returned by `POST /v2/eval-templates`.")
56741
+ }).describe("Reuse one template across up to 100 prompt-specific eval definitions.");
56742
+ });
56743
+
56744
+ // src/funcs/evalsV2EvalsBatchCreate.ts
56745
+ function evalsV2EvalsBatchCreate(client$, request, options) {
56746
+ return new APIPromise($do17(client$, request, options));
56747
+ }
56748
+ async function $do17(client$, request, options) {
56749
+ const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateBatchRequest$zodSchema.parse(value$), "Input validation failed");
56750
+ if (!parsed$.ok) {
56751
+ return [parsed$, { status: "invalid" }];
56752
+ }
56753
+ const payload$ = parsed$.value;
56754
+ const body$ = encodeJSON("body", payload$, { explode: true });
56755
+ const path$ = pathToFunc("/v2/evals/batch")();
56756
+ const headers$ = new Headers(compactMap({
56757
+ "Content-Type": "application/json",
56758
+ Accept: "application/json"
56759
+ }));
56760
+ const securityInput = await extractSecurity(client$._options.security);
56761
+ const requestSecurity = resolveGlobalSecurity(securityInput);
56762
+ const context = {
56763
+ options: client$._options,
56764
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
56765
+ operationID: "v2_evals_batch_create",
56766
+ oAuth2Scopes: null,
56767
+ resolvedSecurity: requestSecurity,
56768
+ securitySource: client$._options.security,
56769
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
56770
+ retryCodes: options?.retryCodes || [
56771
+ "429",
56772
+ "500",
56773
+ "502",
56774
+ "503",
56775
+ "504"
56776
+ ]
56777
+ };
56778
+ const requestRes = client$._createRequest(context, {
56779
+ security: requestSecurity,
56780
+ method: "POST",
56781
+ baseURL: options?.serverURL,
56782
+ path: path$,
56783
+ headers: headers$,
56784
+ body: body$,
56785
+ userAgent: client$._options.userAgent,
56786
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
56787
+ }, options);
56788
+ if (!requestRes.ok) {
56789
+ return [requestRes, { status: "invalid" }];
56790
+ }
56791
+ const req$ = requestRes.value;
56792
+ const doResult = await client$._do(req$, {
56793
+ context,
56794
+ errorCodes: [],
56795
+ retryConfig: context.retryConfig,
56796
+ retryCodes: context.retryCodes
56797
+ });
56798
+ if (!doResult.ok) {
56799
+ return [doResult, { status: "request-error", request: req$ }];
56800
+ }
56801
+ return [doResult, {
56802
+ status: "complete",
56803
+ request: req$,
56804
+ response: doResult.value
56805
+ }];
56806
+ }
56807
+ var init_evalsV2EvalsBatchCreate = __esm(() => {
56808
+ init_encodings();
56809
+ init_primitives();
56810
+ init_schemas4();
56811
+ init_security();
56812
+ init_url();
56813
+ init_createevaltemplatebatchrequest();
56814
+ init_async();
56815
+ });
56816
+
56817
+ // src/mcp-server/tools/evalsV2EvalsBatchCreate.ts
56818
+ var args14, tool$evalsV2EvalsBatchCreate;
56819
+ var init_evalsV2EvalsBatchCreate2 = __esm(() => {
56820
+ init_evalsV2EvalsBatchCreate();
56821
+ init_createevaltemplatebatchrequest();
56822
+ init_tools();
56823
+ args14 = {
56824
+ request: CreateEvalTemplateBatchRequest$zodSchema
56825
+ };
56826
+ tool$evalsV2EvalsBatchCreate = {
56827
+ name: "evals-v2-evals-batch-create",
56828
+ description: `Create evals from a template
56829
+
56830
+ Step 2 of the reusable template workflow. Provide the \`id\` and \`version\` returned by \`POST /v2/eval-templates\` as \`template_id\` and \`expected_template_version\`, then provide only prompt-specific fields in \`evals\`. The template supplies only the settings named in its \`included_components\`; omitted settings keep the values supplied by the creation workflow or its defaults. Included values are copied at creation time, so later template changes do not alter the created evals. Competitor selections create one additional eval per selected competitor for every input item, and the response groups each base eval with those variants. Brand-scoped runtime resources are validated against the organization's primary brand before any eval is created.`,
56831
+ annotations: {
56832
+ title: "",
56833
+ destructiveHint: false,
56834
+ idempotentHint: false,
56835
+ openWorldHint: false,
56836
+ readOnlyHint: false
56837
+ },
56838
+ args: args14,
56839
+ tool: async (client, args, ctx) => {
56840
+ const [result] = await evalsV2EvalsBatchCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56841
+ if (!result.ok) {
56842
+ return {
56843
+ content: [{ type: "text", text: result.error.message }],
56844
+ isError: true
56845
+ };
56846
+ }
56847
+ return formatResult(result.value);
56848
+ }
56849
+ };
56850
+ });
56851
+
56711
56852
  // src/models/createv2evalrequest.ts
56712
56853
  var CreateV2EvalRequestMcp$zodSchema, CreateV2EvalRequest$zodSchema;
56713
56854
  var init_createv2evalrequest = __esm(() => {
@@ -56740,9 +56881,9 @@ var init_createv2evalrequest = __esm(() => {
56740
56881
 
56741
56882
  // src/funcs/evalsV2EvalsCreate.ts
56742
56883
  function evalsV2EvalsCreate(client$, request, options) {
56743
- return new APIPromise($do17(client$, request, options));
56884
+ return new APIPromise($do18(client$, request, options));
56744
56885
  }
56745
- async function $do17(client$, request, options) {
56886
+ async function $do18(client$, request, options) {
56746
56887
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
56747
56888
  if (!parsed$.ok) {
56748
56889
  return [parsed$, { status: "invalid" }];
@@ -56812,12 +56953,12 @@ var init_evalsV2EvalsCreate = __esm(() => {
56812
56953
  });
56813
56954
 
56814
56955
  // src/mcp-server/tools/evalsV2EvalsCreate.ts
56815
- var args14, tool$evalsV2EvalsCreate;
56956
+ var args15, tool$evalsV2EvalsCreate;
56816
56957
  var init_evalsV2EvalsCreate2 = __esm(() => {
56817
56958
  init_evalsV2EvalsCreate();
56818
56959
  init_createv2evalrequest();
56819
56960
  init_tools();
56820
- args14 = {
56961
+ args15 = {
56821
56962
  request: CreateV2EvalRequest$zodSchema
56822
56963
  };
56823
56964
  tool$evalsV2EvalsCreate = {
@@ -56832,7 +56973,7 @@ Creates a reusable simulation definition with one or more task prompts and judge
56832
56973
  openWorldHint: false,
56833
56974
  readOnlyHint: false
56834
56975
  },
56835
- args: args14,
56976
+ args: args15,
56836
56977
  tool: async (client, args, ctx) => {
56837
56978
  const [result] = await evalsV2EvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56838
56979
  if (!result.ok) {
@@ -56923,9 +57064,9 @@ var init_v2evalsdeleteop = __esm(() => {
56923
57064
 
56924
57065
  // src/funcs/evalsV2EvalsDelete.ts
56925
57066
  function evalsV2EvalsDelete(client$, request, options) {
56926
- return new APIPromise($do18(client$, request, options));
57067
+ return new APIPromise($do19(client$, request, options));
56927
57068
  }
56928
- async function $do18(client$, request, options) {
57069
+ async function $do19(client$, request, options) {
56929
57070
  const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
56930
57071
  if (!parsed$.ok) {
56931
57072
  return [parsed$, { status: "invalid" }];
@@ -57000,12 +57141,12 @@ var init_evalsV2EvalsDelete = __esm(() => {
57000
57141
  });
57001
57142
 
57002
57143
  // src/mcp-server/tools/evalsV2EvalsDelete.ts
57003
- var args15, tool$evalsV2EvalsDelete;
57144
+ var args16, tool$evalsV2EvalsDelete;
57004
57145
  var init_evalsV2EvalsDelete2 = __esm(() => {
57005
57146
  init_evalsV2EvalsDelete();
57006
57147
  init_v2evalsdeleteop();
57007
57148
  init_tools();
57008
- args15 = {
57149
+ args16 = {
57009
57150
  request: V2EvalsDeleteRequest$zodSchema
57010
57151
  };
57011
57152
  tool$evalsV2EvalsDelete = {
@@ -57020,7 +57161,7 @@ Permanently deletes an eval and all of its saved configurations.`,
57020
57161
  openWorldHint: false,
57021
57162
  readOnlyHint: false
57022
57163
  },
57023
- args: args15,
57164
+ args: args16,
57024
57165
  tool: async (client, args, ctx) => {
57025
57166
  const [result] = await evalsV2EvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57026
57167
  if (!result.ok) {
@@ -57036,9 +57177,9 @@ Permanently deletes an eval and all of its saved configurations.`,
57036
57177
 
57037
57178
  // src/funcs/evalsV2EvalsList.ts
57038
57179
  function evalsV2EvalsList(client$, options) {
57039
- return new APIPromise($do19(client$, options));
57180
+ return new APIPromise($do20(client$, options));
57040
57181
  }
57041
- async function $do19(client$, options) {
57182
+ async function $do20(client$, options) {
57042
57183
  const path$ = pathToFunc("/v2/evals")();
57043
57184
  const headers$ = new Headers(compactMap({
57044
57185
  Accept: "application/json"
@@ -57143,9 +57284,9 @@ var init_v2evalsretrieveop = __esm(() => {
57143
57284
 
57144
57285
  // src/funcs/evalsV2EvalsRetrieve.ts
57145
57286
  function evalsV2EvalsRetrieve(client$, request, options) {
57146
- return new APIPromise($do20(client$, request, options));
57287
+ return new APIPromise($do21(client$, request, options));
57147
57288
  }
57148
- async function $do20(client$, request, options) {
57289
+ async function $do21(client$, request, options) {
57149
57290
  const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
57150
57291
  if (!parsed$.ok) {
57151
57292
  return [parsed$, { status: "invalid" }];
@@ -57220,19 +57361,801 @@ var init_evalsV2EvalsRetrieve = __esm(() => {
57220
57361
  });
57221
57362
 
57222
57363
  // src/mcp-server/tools/evalsV2EvalsRetrieve.ts
57223
- var args16, tool$evalsV2EvalsRetrieve;
57364
+ var args17, tool$evalsV2EvalsRetrieve;
57224
57365
  var init_evalsV2EvalsRetrieve2 = __esm(() => {
57225
57366
  init_evalsV2EvalsRetrieve();
57226
57367
  init_v2evalsretrieveop();
57227
57368
  init_tools();
57228
- args16 = {
57369
+ args17 = {
57229
57370
  request: V2EvalsRetrieveRequest$zodSchema
57230
57371
  };
57231
- tool$evalsV2EvalsRetrieve = {
57232
- name: "evals-v2-evals-retrieve",
57233
- description: `Retrieve Eval
57372
+ tool$evalsV2EvalsRetrieve = {
57373
+ name: "evals-v2-evals-retrieve",
57374
+ description: `Retrieve Eval
57375
+
57376
+ Returns one reusable eval simulation definition.`,
57377
+ annotations: {
57378
+ title: "",
57379
+ destructiveHint: false,
57380
+ idempotentHint: false,
57381
+ openWorldHint: false,
57382
+ readOnlyHint: true
57383
+ },
57384
+ args: args17,
57385
+ tool: async (client, args, ctx) => {
57386
+ const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57387
+ if (!result.ok) {
57388
+ return {
57389
+ content: [{ type: "text", text: result.error.message }],
57390
+ isError: true
57391
+ };
57392
+ }
57393
+ return formatResult(result.value);
57394
+ }
57395
+ };
57396
+ });
57397
+
57398
+ // src/models/updatev2evalrequest.ts
57399
+ var UpdateV2EvalRequestMcp$zodSchema, UpdateV2EvalRequest$zodSchema;
57400
+ var init_updatev2evalrequest = __esm(() => {
57401
+ init_zod();
57402
+ init_searchgroundingmode();
57403
+ init_v2inlinemcpdefinition();
57404
+ init_v2savedmcpreference();
57405
+ UpdateV2EvalRequestMcp$zodSchema = union([
57406
+ V2InlineMcpDefinition$zodSchema,
57407
+ V2SavedMcpReference$zodSchema
57408
+ ]);
57409
+ UpdateV2EvalRequest$zodSchema = object({
57410
+ agent: array(string2()).nullable().optional(),
57411
+ cleanup_commands: array(string2()).nullable().optional().describe("Replacement cleanup commands. Pass an empty array to clear all saved cleanup commands."),
57412
+ clis: array(string2()).nullable().optional().describe("Replacement saved CLI IDs or shell installation commands. UUID values resolve saved CLIs; every other value is an installation command. Pass an empty array to clear all CLIs."),
57413
+ judges: array(string2()).nullable().optional().describe("Replacement success criteria for the eval."),
57414
+ mcps: array(union([
57415
+ V2InlineMcpDefinition$zodSchema,
57416
+ V2SavedMcpReference$zodSchema
57417
+ ])).nullable().optional(),
57418
+ name: string2().optional(),
57419
+ persona: string2().optional().describe("Replacement eval persona. Pass null to clear it; omit it to leave the saved value unchanged."),
57420
+ prompts: array(string2()).nullable().optional(),
57421
+ runs: int().optional(),
57422
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Replacement web-retrieval policy. Omit it to keep the saved value."),
57423
+ setup_commands: array(string2()).nullable().optional().describe("Replacement setup commands. Pass an empty array to clear all saved setup commands."),
57424
+ tags: array(string2()).nullable().optional().describe("Replacement labels for the eval. Pass an empty array to clear all tags.")
57425
+ });
57426
+ });
57427
+
57428
+ // src/models/v2evalsupdateop.ts
57429
+ var V2EvalsUpdateRequest$zodSchema, V2EvalsUpdateResponse$zodSchema;
57430
+ var init_v2evalsupdateop = __esm(() => {
57431
+ init_zod();
57432
+ init_httpvalidationerror();
57433
+ init_updatev2evalrequest();
57434
+ init_v2eval();
57435
+ V2EvalsUpdateRequest$zodSchema = object({
57436
+ body: UpdateV2EvalRequest$zodSchema,
57437
+ eval_id: string2()
57438
+ });
57439
+ V2EvalsUpdateResponse$zodSchema = union([
57440
+ V2Eval$zodSchema,
57441
+ HTTPValidationError$zodSchema
57442
+ ]);
57443
+ });
57444
+
57445
+ // src/funcs/evalsV2EvalsUpdate.ts
57446
+ function evalsV2EvalsUpdate(client$, request, options) {
57447
+ return new APIPromise($do22(client$, request, options));
57448
+ }
57449
+ async function $do22(client$, request, options) {
57450
+ const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
57451
+ if (!parsed$.ok) {
57452
+ return [parsed$, { status: "invalid" }];
57453
+ }
57454
+ const payload$ = parsed$.value;
57455
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
57456
+ const pathParams$ = {
57457
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
57458
+ explode: false,
57459
+ charEncoding: "percent"
57460
+ })
57461
+ };
57462
+ const path$ = pathToFunc("/v2/evals/{eval_id}")(pathParams$);
57463
+ const headers$ = new Headers(compactMap({
57464
+ "Content-Type": "application/json",
57465
+ Accept: "application/json"
57466
+ }));
57467
+ const securityInput = await extractSecurity(client$._options.security);
57468
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57469
+ const context = {
57470
+ options: client$._options,
57471
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
57472
+ operationID: "v2_evals_update",
57473
+ oAuth2Scopes: null,
57474
+ resolvedSecurity: requestSecurity,
57475
+ securitySource: client$._options.security,
57476
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
57477
+ retryCodes: options?.retryCodes || [
57478
+ "429",
57479
+ "500",
57480
+ "502",
57481
+ "503",
57482
+ "504"
57483
+ ]
57484
+ };
57485
+ const requestRes = client$._createRequest(context, {
57486
+ security: requestSecurity,
57487
+ method: "PATCH",
57488
+ baseURL: options?.serverURL,
57489
+ path: path$,
57490
+ headers: headers$,
57491
+ body: body$,
57492
+ userAgent: client$._options.userAgent,
57493
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
57494
+ }, options);
57495
+ if (!requestRes.ok) {
57496
+ return [requestRes, { status: "invalid" }];
57497
+ }
57498
+ const req$ = requestRes.value;
57499
+ const doResult = await client$._do(req$, {
57500
+ context,
57501
+ errorCodes: [],
57502
+ retryConfig: context.retryConfig,
57503
+ retryCodes: context.retryCodes
57504
+ });
57505
+ if (!doResult.ok) {
57506
+ return [doResult, { status: "request-error", request: req$ }];
57507
+ }
57508
+ return [doResult, {
57509
+ status: "complete",
57510
+ request: req$,
57511
+ response: doResult.value
57512
+ }];
57513
+ }
57514
+ var init_evalsV2EvalsUpdate = __esm(() => {
57515
+ init_encodings();
57516
+ init_primitives();
57517
+ init_schemas4();
57518
+ init_security();
57519
+ init_url();
57520
+ init_v2evalsupdateop();
57521
+ init_async();
57522
+ });
57523
+
57524
+ // src/mcp-server/tools/evalsV2EvalsUpdate.ts
57525
+ var args18, tool$evalsV2EvalsUpdate;
57526
+ var init_evalsV2EvalsUpdate2 = __esm(() => {
57527
+ init_evalsV2EvalsUpdate();
57528
+ init_v2evalsupdateop();
57529
+ init_tools();
57530
+ args18 = {
57531
+ request: V2EvalsUpdateRequest$zodSchema
57532
+ };
57533
+ tool$evalsV2EvalsUpdate = {
57534
+ name: "evals-v2-evals-update",
57535
+ description: `Update Eval
57536
+
57537
+ Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, \`setup_commands\`, \`cleanup_commands\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
57538
+ annotations: {
57539
+ title: "",
57540
+ destructiveHint: false,
57541
+ idempotentHint: false,
57542
+ openWorldHint: false,
57543
+ readOnlyHint: false
57544
+ },
57545
+ args: args18,
57546
+ tool: async (client, args, ctx) => {
57547
+ const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57548
+ if (!result.ok) {
57549
+ return {
57550
+ content: [{ type: "text", text: result.error.message }],
57551
+ isError: true
57552
+ };
57553
+ }
57554
+ return formatResult(result.value);
57555
+ }
57556
+ };
57557
+ });
57558
+
57559
+ // src/models/evaltemplateruntime.ts
57560
+ var EvalTemplateRuntime$zodSchema;
57561
+ var init_evaltemplateruntime = __esm(() => {
57562
+ init_zod();
57563
+ init_searchgroundingmode();
57564
+ EvalTemplateRuntime$zodSchema = object({
57565
+ cleanup_commands: array(string2()).optional().describe("Shell commands run after each eval attempt, in order."),
57566
+ cli_ids: array(string2()).optional().describe("Reusable CLI IDs copied into each created eval."),
57567
+ environment_profile_ids: array(string2()).optional().describe("Environment profile IDs copied into each created eval."),
57568
+ include_brand_docs: boolean2().default(false).describe("Whether organization documentation is included at runtime."),
57569
+ include_env_vars: boolean2().default(true).describe("Whether selected environment profiles are enabled."),
57570
+ mcp_server_ids: array(string2()).optional().describe("Reusable MCP server IDs copied into each created eval."),
57571
+ run_on_github_pr: boolean2().default(false).describe("Whether each created eval is configured for GitHub pull requests."),
57572
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
57573
+ setup_commands: array(string2()).optional().describe("Shell commands run before each eval attempt, in order."),
57574
+ skill_ids: array(string2()).optional().describe("Reusable skill IDs copied into each created eval."),
57575
+ starting_project_id: string2().nullable().optional().describe("Optional reusable repository workspace ID.")
57576
+ }).describe("Reusable runtime resources copied into each created eval.");
57577
+ });
57578
+
57579
+ // src/models/evaltemplateschedule.ts
57580
+ var Frequency$zodSchema, EvalTemplateSchedule$zodSchema;
57581
+ var init_evaltemplateschedule = __esm(() => {
57582
+ init_zod();
57583
+ Frequency$zodSchema = _enum([
57584
+ "daily",
57585
+ "every_other_day",
57586
+ "weekly"
57587
+ ]).describe("Schedule cadence used when `enabled` is true.");
57588
+ EvalTemplateSchedule$zodSchema = object({
57589
+ enabled: boolean2().default(false).describe("Whether each eval created from the template receives a schedule."),
57590
+ frequency: Frequency$zodSchema.default("weekly").describe("Schedule cadence used when `enabled` is true.")
57591
+ }).describe("Schedule copied into every eval created from the template.");
57592
+ });
57593
+
57594
+ // src/models/graderdefinition.ts
57595
+ var GraderDefinition$zodSchema;
57596
+ var init_graderdefinition = __esm(() => {
57597
+ init_zod();
57598
+ GraderDefinition$zodSchema = object({
57599
+ blocking: boolean2().default(false).describe("Whether a failed or missing result from this grader fails the entire eval regardless of the aggregate score."),
57600
+ case_sensitive: boolean2().default(false),
57601
+ criteria: string2().nullable().optional(),
57602
+ name: string2(),
57603
+ needle: string2().nullable().optional(),
57604
+ needles: array(string2()).nullable().optional(),
57605
+ pattern: string2().nullable().optional(),
57606
+ type: string2(),
57607
+ weight: number2().default(1)
57608
+ });
57609
+ });
57610
+
57611
+ // src/models/createevaltemplaterequest.ts
57612
+ var CreateEvalTemplateRequestEvalType$zodSchema, CreateEvalTemplateRequestIncludedComponent$zodSchema, CreateEvalTemplateRequest$zodSchema;
57613
+ var init_createevaltemplaterequest = __esm(() => {
57614
+ init_zod();
57615
+ init_evaltemplateruntime();
57616
+ init_evaltemplateschedule();
57617
+ init_graderdefinition();
57618
+ CreateEvalTemplateRequestEvalType$zodSchema = _enum([
57619
+ "custom_eval",
57620
+ "agent_preference"
57621
+ ]).describe("Kind of eval the template creates. A template only applies to evals of the same type.");
57622
+ CreateEvalTemplateRequestIncludedComponent$zodSchema = _enum([
57623
+ "judges",
57624
+ "targets",
57625
+ "persona",
57626
+ "competitors",
57627
+ "tag",
57628
+ "category",
57629
+ "runs",
57630
+ "schedule",
57631
+ "repository",
57632
+ "environment",
57633
+ "search_grounding",
57634
+ "skills",
57635
+ "mcp_servers",
57636
+ "clis",
57637
+ "brand_docs",
57638
+ "github_pr",
57639
+ "runtime_commands"
57640
+ ]);
57641
+ CreateEvalTemplateRequest$zodSchema = object({
57642
+ category_name: string2().optional().describe("Optional category copied when `category` is included."),
57643
+ competitor_ids: array(string2()).optional().describe("Competitor IDs that create additional variants when `competitors` is included."),
57644
+ description: string2().optional().describe("Optional guidance describing when to use the template."),
57645
+ eval_type: CreateEvalTemplateRequestEvalType$zodSchema.default("custom_eval").describe("Kind of eval the template creates. A template only applies to evals of the same type."),
57646
+ included_components: array(CreateEvalTemplateRequestIncludedComponent$zodSchema).describe("Settings copied when the template is applied. Omitted components do not override the new eval; included components copy their saved value, including an empty value."),
57647
+ judges: array(GraderDefinition$zodSchema).optional().describe("Judge definitions copied when `judges` is included. May be empty to explicitly create the eval without template judges."),
57648
+ name: string2().describe("Organization-visible name for this reusable template."),
57649
+ persona: string2().optional().describe("Optional persona copied when `persona` is included."),
57650
+ runs_per_execution: int().default(1).describe("Attempt count copied when `runs` is included."),
57651
+ runtime: EvalTemplateRuntime$zodSchema.optional().describe("Reusable runtime resources copied into each created eval."),
57652
+ schedule: EvalTemplateSchedule$zodSchema.optional().describe("Schedule copied into every eval created from the template."),
57653
+ tag: string2().optional().describe("Optional tag copied when `tag` is included."),
57654
+ target_keys: array(string2()).optional().describe("Runnable target keys copied when `targets` is included, such as `agent:codex:gpt-5.6-terra`.")
57655
+ }).describe("Create reusable configuration before supplying prompt-specific evals.");
57656
+ });
57657
+
57658
+ // src/funcs/evalTemplatesV2EvalTemplatesCreate.ts
57659
+ function evalTemplatesV2EvalTemplatesCreate(client$, request, options) {
57660
+ return new APIPromise($do23(client$, request, options));
57661
+ }
57662
+ async function $do23(client$, request, options) {
57663
+ const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateRequest$zodSchema.parse(value$), "Input validation failed");
57664
+ if (!parsed$.ok) {
57665
+ return [parsed$, { status: "invalid" }];
57666
+ }
57667
+ const payload$ = parsed$.value;
57668
+ const body$ = encodeJSON("body", payload$, { explode: true });
57669
+ const path$ = pathToFunc("/v2/eval-templates")();
57670
+ const headers$ = new Headers(compactMap({
57671
+ "Content-Type": "application/json",
57672
+ Accept: "application/json"
57673
+ }));
57674
+ const securityInput = await extractSecurity(client$._options.security);
57675
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57676
+ const context = {
57677
+ options: client$._options,
57678
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
57679
+ operationID: "v2_eval_templates_create",
57680
+ oAuth2Scopes: null,
57681
+ resolvedSecurity: requestSecurity,
57682
+ securitySource: client$._options.security,
57683
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
57684
+ retryCodes: options?.retryCodes || [
57685
+ "429",
57686
+ "500",
57687
+ "502",
57688
+ "503",
57689
+ "504"
57690
+ ]
57691
+ };
57692
+ const requestRes = client$._createRequest(context, {
57693
+ security: requestSecurity,
57694
+ method: "POST",
57695
+ baseURL: options?.serverURL,
57696
+ path: path$,
57697
+ headers: headers$,
57698
+ body: body$,
57699
+ userAgent: client$._options.userAgent,
57700
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
57701
+ }, options);
57702
+ if (!requestRes.ok) {
57703
+ return [requestRes, { status: "invalid" }];
57704
+ }
57705
+ const req$ = requestRes.value;
57706
+ const doResult = await client$._do(req$, {
57707
+ context,
57708
+ errorCodes: [],
57709
+ retryConfig: context.retryConfig,
57710
+ retryCodes: context.retryCodes
57711
+ });
57712
+ if (!doResult.ok) {
57713
+ return [doResult, { status: "request-error", request: req$ }];
57714
+ }
57715
+ return [doResult, {
57716
+ status: "complete",
57717
+ request: req$,
57718
+ response: doResult.value
57719
+ }];
57720
+ }
57721
+ var init_evalTemplatesV2EvalTemplatesCreate = __esm(() => {
57722
+ init_encodings();
57723
+ init_primitives();
57724
+ init_schemas4();
57725
+ init_security();
57726
+ init_url();
57727
+ init_createevaltemplaterequest();
57728
+ init_async();
57729
+ });
57730
+
57731
+ // src/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.ts
57732
+ var args19, tool$evalTemplatesV2EvalTemplatesCreate;
57733
+ var init_evalTemplatesV2EvalTemplatesCreate2 = __esm(() => {
57734
+ init_evalTemplatesV2EvalTemplatesCreate();
57735
+ init_createevaltemplaterequest();
57736
+ init_tools();
57737
+ args19 = {
57738
+ request: CreateEvalTemplateRequest$zodSchema
57739
+ };
57740
+ tool$evalTemplatesV2EvalTemplatesCreate = {
57741
+ name: "eval-templates-v2-eval-templates-create",
57742
+ description: `Create an Eval template
57743
+
57744
+ Step 1 of the reusable template workflow. Creates an organization-owned Eval template containing only the configuration components selected in \`included_components\`. Do not include task prompts in the template. The response returns the template \`id\` and \`version\`; pass them as \`template_id\` and \`expected_template_version\` to \`POST /v2/evals/batch\` with each eval's name and prompts. Applying a template copies its values into the new evals without creating a live link.`,
57745
+ annotations: {
57746
+ title: "",
57747
+ destructiveHint: false,
57748
+ idempotentHint: false,
57749
+ openWorldHint: false,
57750
+ readOnlyHint: false
57751
+ },
57752
+ args: args19,
57753
+ tool: async (client, args, ctx) => {
57754
+ const [result] = await evalTemplatesV2EvalTemplatesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57755
+ if (!result.ok) {
57756
+ return {
57757
+ content: [{ type: "text", text: result.error.message }],
57758
+ isError: true
57759
+ };
57760
+ }
57761
+ return formatResult(result.value);
57762
+ }
57763
+ };
57764
+ });
57765
+
57766
+ // src/models/evaltemplate.ts
57767
+ var EvalTemplateEvalType$zodSchema, EvalTemplateIncludedComponent$zodSchema, EvalTemplate$zodSchema;
57768
+ var init_evaltemplate = __esm(() => {
57769
+ init_zod();
57770
+ init_evaltemplateruntime();
57771
+ init_evaltemplateschedule();
57772
+ init_graderdefinition();
57773
+ EvalTemplateEvalType$zodSchema = _enum([
57774
+ "custom_eval",
57775
+ "agent_preference"
57776
+ ]).describe("Kind of eval the template creates. A template only applies to evals of the same type.");
57777
+ EvalTemplateIncludedComponent$zodSchema = _enum([
57778
+ "judges",
57779
+ "targets",
57780
+ "persona",
57781
+ "competitors",
57782
+ "tag",
57783
+ "category",
57784
+ "runs",
57785
+ "schedule",
57786
+ "repository",
57787
+ "environment",
57788
+ "search_grounding",
57789
+ "skills",
57790
+ "mcp_servers",
57791
+ "clis",
57792
+ "brand_docs",
57793
+ "github_pr",
57794
+ "runtime_commands"
57795
+ ]);
57796
+ EvalTemplate$zodSchema = object({
57797
+ category_name: string2().nullable().optional().describe("Optional category copied when `category` is included."),
57798
+ competitor_ids: array(string2()).optional().describe("Competitor IDs that create additional variants when `competitors` is included."),
57799
+ created_at: datetime2({ offset: true }),
57800
+ created_by: string2().nullable().optional(),
57801
+ deleted_at: datetime2({ offset: true }).nullable().optional(),
57802
+ description: string2().nullable().optional().describe("Optional guidance describing when to use the template."),
57803
+ eval_type: EvalTemplateEvalType$zodSchema.default("custom_eval").describe("Kind of eval the template creates. A template only applies to evals of the same type."),
57804
+ id: string2(),
57805
+ included_components: array(EvalTemplateIncludedComponent$zodSchema).describe("Settings copied when the template is applied. Omitted components do not override the new eval; included components copy their saved value, including an empty value."),
57806
+ judges: array(GraderDefinition$zodSchema).optional().describe("Judge definitions copied when `judges` is included. May be empty to explicitly create the eval without template judges."),
57807
+ name: string2().describe("Organization-visible name for this reusable template."),
57808
+ org_id: string2(),
57809
+ persona: string2().nullable().optional().describe("Optional persona copied when `persona` is included."),
57810
+ runs_per_execution: int().default(1).describe("Attempt count copied when `runs` is included."),
57811
+ runtime: EvalTemplateRuntime$zodSchema.optional().describe("Reusable runtime resources copied into each created eval."),
57812
+ schedule: EvalTemplateSchedule$zodSchema.optional().describe("Schedule copied into every eval created from the template."),
57813
+ tag: string2().nullable().optional().describe("Optional tag copied when `tag` is included."),
57814
+ target_keys: array(string2()).optional().describe("Runnable target keys copied when `targets` is included, such as `agent:codex:gpt-5.6-terra`."),
57815
+ updated_at: datetime2({ offset: true }),
57816
+ version: int()
57817
+ });
57818
+ });
57819
+
57820
+ // src/models/v2evaltemplatesdeleteop.ts
57821
+ var V2EvalTemplatesDeleteRequest$zodSchema, V2EvalTemplatesDeleteConflictResponseBody$zodSchema, V2EvalTemplatesDeleteNotFoundResponseBody$zodSchema, V2EvalTemplatesDeleteResponse$zodSchema;
57822
+ var init_v2evaltemplatesdeleteop = __esm(() => {
57823
+ init_zod();
57824
+ init_evaltemplate();
57825
+ init_httpvalidationerror();
57826
+ V2EvalTemplatesDeleteRequest$zodSchema = object({
57827
+ template_id: string2()
57828
+ });
57829
+ V2EvalTemplatesDeleteConflictResponseBody$zodSchema = object({
57830
+ detail: string2()
57831
+ }).describe("The supplied template version is stale.");
57832
+ V2EvalTemplatesDeleteNotFoundResponseBody$zodSchema = object({
57833
+ detail: string2()
57834
+ }).describe("The Eval template does not exist in the organization.");
57835
+ V2EvalTemplatesDeleteResponse$zodSchema = union([
57836
+ EvalTemplate$zodSchema,
57837
+ lazy(() => V2EvalTemplatesDeleteNotFoundResponseBody$zodSchema),
57838
+ lazy(() => V2EvalTemplatesDeleteConflictResponseBody$zodSchema),
57839
+ HTTPValidationError$zodSchema
57840
+ ]);
57841
+ });
57842
+
57843
+ // src/funcs/evalTemplatesV2EvalTemplatesDelete.ts
57844
+ function evalTemplatesV2EvalTemplatesDelete(client$, request, options) {
57845
+ return new APIPromise($do24(client$, request, options));
57846
+ }
57847
+ async function $do24(client$, request, options) {
57848
+ const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
57849
+ if (!parsed$.ok) {
57850
+ return [parsed$, { status: "invalid" }];
57851
+ }
57852
+ const payload$ = parsed$.value;
57853
+ const body$ = null;
57854
+ const pathParams$ = {
57855
+ template_id: encodeSimple("template_id", payload$.template_id, {
57856
+ explode: false,
57857
+ charEncoding: "percent"
57858
+ })
57859
+ };
57860
+ const path$ = pathToFunc("/v2/eval-templates/{template_id}")(pathParams$);
57861
+ const headers$ = new Headers(compactMap({
57862
+ Accept: "application/json"
57863
+ }));
57864
+ const securityInput = await extractSecurity(client$._options.security);
57865
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57866
+ const context = {
57867
+ options: client$._options,
57868
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
57869
+ operationID: "v2_eval_templates_delete",
57870
+ oAuth2Scopes: null,
57871
+ resolvedSecurity: requestSecurity,
57872
+ securitySource: client$._options.security,
57873
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
57874
+ retryCodes: options?.retryCodes || [
57875
+ "429",
57876
+ "500",
57877
+ "502",
57878
+ "503",
57879
+ "504"
57880
+ ]
57881
+ };
57882
+ const requestRes = client$._createRequest(context, {
57883
+ security: requestSecurity,
57884
+ method: "DELETE",
57885
+ baseURL: options?.serverURL,
57886
+ path: path$,
57887
+ headers: headers$,
57888
+ body: body$,
57889
+ userAgent: client$._options.userAgent,
57890
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
57891
+ }, options);
57892
+ if (!requestRes.ok) {
57893
+ return [requestRes, { status: "invalid" }];
57894
+ }
57895
+ const req$ = requestRes.value;
57896
+ const doResult = await client$._do(req$, {
57897
+ context,
57898
+ errorCodes: [],
57899
+ retryConfig: context.retryConfig,
57900
+ retryCodes: context.retryCodes
57901
+ });
57902
+ if (!doResult.ok) {
57903
+ return [doResult, { status: "request-error", request: req$ }];
57904
+ }
57905
+ return [doResult, {
57906
+ status: "complete",
57907
+ request: req$,
57908
+ response: doResult.value
57909
+ }];
57910
+ }
57911
+ var init_evalTemplatesV2EvalTemplatesDelete = __esm(() => {
57912
+ init_encodings();
57913
+ init_primitives();
57914
+ init_schemas4();
57915
+ init_security();
57916
+ init_url();
57917
+ init_v2evaltemplatesdeleteop();
57918
+ init_async();
57919
+ });
57920
+
57921
+ // src/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.ts
57922
+ var args20, tool$evalTemplatesV2EvalTemplatesDelete;
57923
+ var init_evalTemplatesV2EvalTemplatesDelete2 = __esm(() => {
57924
+ init_evalTemplatesV2EvalTemplatesDelete();
57925
+ init_v2evaltemplatesdeleteop();
57926
+ init_tools();
57927
+ args20 = {
57928
+ request: V2EvalTemplatesDeleteRequest$zodSchema
57929
+ };
57930
+ tool$evalTemplatesV2EvalTemplatesDelete = {
57931
+ name: "eval-templates-v2-eval-templates-delete",
57932
+ description: `Delete an Eval template
57933
+
57934
+ Soft-deletes an Eval template. Evals previously created from it remain independent and continue to run with their copied configuration.`,
57935
+ annotations: {
57936
+ title: "",
57937
+ destructiveHint: true,
57938
+ idempotentHint: false,
57939
+ openWorldHint: false,
57940
+ readOnlyHint: false
57941
+ },
57942
+ args: args20,
57943
+ tool: async (client, args, ctx) => {
57944
+ const [result] = await evalTemplatesV2EvalTemplatesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57945
+ if (!result.ok) {
57946
+ return {
57947
+ content: [{ type: "text", text: result.error.message }],
57948
+ isError: true
57949
+ };
57950
+ }
57951
+ return formatResult(result.value);
57952
+ }
57953
+ };
57954
+ });
57955
+
57956
+ // src/funcs/evalTemplatesV2EvalTemplatesList.ts
57957
+ function evalTemplatesV2EvalTemplatesList(client$, options) {
57958
+ return new APIPromise($do25(client$, options));
57959
+ }
57960
+ async function $do25(client$, options) {
57961
+ const path$ = pathToFunc("/v2/eval-templates")();
57962
+ const headers$ = new Headers(compactMap({
57963
+ Accept: "application/json"
57964
+ }));
57965
+ const securityInput = await extractSecurity(client$._options.security);
57966
+ const requestSecurity = resolveGlobalSecurity(securityInput);
57967
+ const context = {
57968
+ options: client$._options,
57969
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
57970
+ operationID: "v2_eval_templates_list",
57971
+ oAuth2Scopes: null,
57972
+ resolvedSecurity: requestSecurity,
57973
+ securitySource: client$._options.security,
57974
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
57975
+ retryCodes: options?.retryCodes || [
57976
+ "429",
57977
+ "500",
57978
+ "502",
57979
+ "503",
57980
+ "504"
57981
+ ]
57982
+ };
57983
+ const requestRes = client$._createRequest(context, {
57984
+ security: requestSecurity,
57985
+ method: "GET",
57986
+ baseURL: options?.serverURL,
57987
+ path: path$,
57988
+ headers: headers$,
57989
+ userAgent: client$._options.userAgent,
57990
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
57991
+ }, options);
57992
+ if (!requestRes.ok) {
57993
+ return [requestRes, { status: "invalid" }];
57994
+ }
57995
+ const req$ = requestRes.value;
57996
+ const doResult = await client$._do(req$, {
57997
+ context,
57998
+ errorCodes: [],
57999
+ retryConfig: context.retryConfig,
58000
+ retryCodes: context.retryCodes
58001
+ });
58002
+ if (!doResult.ok) {
58003
+ return [doResult, { status: "request-error", request: req$ }];
58004
+ }
58005
+ return [doResult, {
58006
+ status: "complete",
58007
+ request: req$,
58008
+ response: doResult.value
58009
+ }];
58010
+ }
58011
+ var init_evalTemplatesV2EvalTemplatesList = __esm(() => {
58012
+ init_primitives();
58013
+ init_security();
58014
+ init_url();
58015
+ init_async();
58016
+ });
58017
+
58018
+ // src/mcp-server/tools/evalTemplatesV2EvalTemplatesList.ts
58019
+ var tool$evalTemplatesV2EvalTemplatesList;
58020
+ var init_evalTemplatesV2EvalTemplatesList2 = __esm(() => {
58021
+ init_evalTemplatesV2EvalTemplatesList();
58022
+ init_tools();
58023
+ tool$evalTemplatesV2EvalTemplatesList = {
58024
+ name: "eval-templates-v2-eval-templates-list",
58025
+ description: `List Eval templates
58026
+
58027
+ Returns active reusable Eval templates owned by the authenticated organization. Templates contain reusable configuration and never task prompts.`,
58028
+ annotations: {
58029
+ title: "",
58030
+ destructiveHint: false,
58031
+ idempotentHint: false,
58032
+ openWorldHint: false,
58033
+ readOnlyHint: true
58034
+ },
58035
+ tool: async (client, ctx) => {
58036
+ const [result] = await evalTemplatesV2EvalTemplatesList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
58037
+ if (!result.ok) {
58038
+ return {
58039
+ content: [{ type: "text", text: result.error.message }],
58040
+ isError: true
58041
+ };
58042
+ }
58043
+ return formatResult(result.value);
58044
+ }
58045
+ };
58046
+ });
58047
+
58048
+ // src/models/v2evaltemplatesretrieveop.ts
58049
+ var V2EvalTemplatesRetrieveRequest$zodSchema, V2EvalTemplatesRetrieveResponseBody$zodSchema, V2EvalTemplatesRetrieveResponse$zodSchema;
58050
+ var init_v2evaltemplatesretrieveop = __esm(() => {
58051
+ init_zod();
58052
+ init_evaltemplate();
58053
+ init_httpvalidationerror();
58054
+ V2EvalTemplatesRetrieveRequest$zodSchema = object({
58055
+ template_id: string2()
58056
+ });
58057
+ V2EvalTemplatesRetrieveResponseBody$zodSchema = object({
58058
+ detail: string2()
58059
+ }).describe("The Eval template does not exist in the organization.");
58060
+ V2EvalTemplatesRetrieveResponse$zodSchema = union([
58061
+ EvalTemplate$zodSchema,
58062
+ lazy(() => V2EvalTemplatesRetrieveResponseBody$zodSchema),
58063
+ HTTPValidationError$zodSchema
58064
+ ]);
58065
+ });
58066
+
58067
+ // src/funcs/evalTemplatesV2EvalTemplatesRetrieve.ts
58068
+ function evalTemplatesV2EvalTemplatesRetrieve(client$, request, options) {
58069
+ return new APIPromise($do26(client$, request, options));
58070
+ }
58071
+ async function $do26(client$, request, options) {
58072
+ const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58073
+ if (!parsed$.ok) {
58074
+ return [parsed$, { status: "invalid" }];
58075
+ }
58076
+ const payload$ = parsed$.value;
58077
+ const body$ = null;
58078
+ const pathParams$ = {
58079
+ template_id: encodeSimple("template_id", payload$.template_id, {
58080
+ explode: false,
58081
+ charEncoding: "percent"
58082
+ })
58083
+ };
58084
+ const path$ = pathToFunc("/v2/eval-templates/{template_id}")(pathParams$);
58085
+ const headers$ = new Headers(compactMap({
58086
+ Accept: "application/json"
58087
+ }));
58088
+ const securityInput = await extractSecurity(client$._options.security);
58089
+ const requestSecurity = resolveGlobalSecurity(securityInput);
58090
+ const context = {
58091
+ options: client$._options,
58092
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
58093
+ operationID: "v2_eval_templates_retrieve",
58094
+ oAuth2Scopes: null,
58095
+ resolvedSecurity: requestSecurity,
58096
+ securitySource: client$._options.security,
58097
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
58098
+ retryCodes: options?.retryCodes || [
58099
+ "429",
58100
+ "500",
58101
+ "502",
58102
+ "503",
58103
+ "504"
58104
+ ]
58105
+ };
58106
+ const requestRes = client$._createRequest(context, {
58107
+ security: requestSecurity,
58108
+ method: "GET",
58109
+ baseURL: options?.serverURL,
58110
+ path: path$,
58111
+ headers: headers$,
58112
+ body: body$,
58113
+ userAgent: client$._options.userAgent,
58114
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
58115
+ }, options);
58116
+ if (!requestRes.ok) {
58117
+ return [requestRes, { status: "invalid" }];
58118
+ }
58119
+ const req$ = requestRes.value;
58120
+ const doResult = await client$._do(req$, {
58121
+ context,
58122
+ errorCodes: [],
58123
+ retryConfig: context.retryConfig,
58124
+ retryCodes: context.retryCodes
58125
+ });
58126
+ if (!doResult.ok) {
58127
+ return [doResult, { status: "request-error", request: req$ }];
58128
+ }
58129
+ return [doResult, {
58130
+ status: "complete",
58131
+ request: req$,
58132
+ response: doResult.value
58133
+ }];
58134
+ }
58135
+ var init_evalTemplatesV2EvalTemplatesRetrieve = __esm(() => {
58136
+ init_encodings();
58137
+ init_primitives();
58138
+ init_schemas4();
58139
+ init_security();
58140
+ init_url();
58141
+ init_v2evaltemplatesretrieveop();
58142
+ init_async();
58143
+ });
58144
+
58145
+ // src/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.ts
58146
+ var args21, tool$evalTemplatesV2EvalTemplatesRetrieve;
58147
+ var init_evalTemplatesV2EvalTemplatesRetrieve2 = __esm(() => {
58148
+ init_evalTemplatesV2EvalTemplatesRetrieve();
58149
+ init_v2evaltemplatesretrieveop();
58150
+ init_tools();
58151
+ args21 = {
58152
+ request: V2EvalTemplatesRetrieveRequest$zodSchema
58153
+ };
58154
+ tool$evalTemplatesV2EvalTemplatesRetrieve = {
58155
+ name: "eval-templates-v2-eval-templates-retrieve",
58156
+ description: `Retrieve an Eval template
57234
58157
 
57235
- Returns one reusable eval simulation definition.`,
58158
+ Returns one active reusable Eval template.`,
57236
58159
  annotations: {
57237
58160
  title: "",
57238
58161
  destructiveHint: false,
@@ -57240,9 +58163,9 @@ Returns one reusable eval simulation definition.`,
57240
58163
  openWorldHint: false,
57241
58164
  readOnlyHint: true
57242
58165
  },
57243
- args: args16,
58166
+ args: args21,
57244
58167
  tool: async (client, args, ctx) => {
57245
- const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58168
+ const [result] = await evalTemplatesV2EvalTemplatesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57246
58169
  if (!result.ok) {
57247
58170
  return {
57248
58171
  content: [{ type: "text", text: result.error.message }],
@@ -57254,71 +58177,101 @@ Returns one reusable eval simulation definition.`,
57254
58177
  };
57255
58178
  });
57256
58179
 
57257
- // src/models/updatev2evalrequest.ts
57258
- var UpdateV2EvalRequestMcp$zodSchema, UpdateV2EvalRequest$zodSchema;
57259
- var init_updatev2evalrequest = __esm(() => {
58180
+ // src/models/updateevaltemplaterequest.ts
58181
+ var UpdateEvalTemplateRequestEvalType$zodSchema, UpdateEvalTemplateRequestIncludedComponent$zodSchema, UpdateEvalTemplateRequest$zodSchema;
58182
+ var init_updateevaltemplaterequest = __esm(() => {
57260
58183
  init_zod();
57261
- init_searchgroundingmode();
57262
- init_v2inlinemcpdefinition();
57263
- init_v2savedmcpreference();
57264
- UpdateV2EvalRequestMcp$zodSchema = union([
57265
- V2InlineMcpDefinition$zodSchema,
57266
- V2SavedMcpReference$zodSchema
58184
+ init_evaltemplateruntime();
58185
+ init_evaltemplateschedule();
58186
+ init_graderdefinition();
58187
+ UpdateEvalTemplateRequestEvalType$zodSchema = _enum([
58188
+ "custom_eval",
58189
+ "agent_preference"
57267
58190
  ]);
57268
- UpdateV2EvalRequest$zodSchema = object({
57269
- agent: array(string2()).nullable().optional(),
57270
- cleanup_commands: array(string2()).nullable().optional().describe("Replacement cleanup commands. Pass an empty array to clear all saved cleanup commands."),
57271
- clis: array(string2()).nullable().optional().describe("Replacement saved CLI IDs or shell installation commands. UUID values resolve saved CLIs; every other value is an installation command. Pass an empty array to clear all CLIs."),
57272
- judges: array(string2()).nullable().optional().describe("Replacement success criteria for the eval."),
57273
- mcps: array(union([
57274
- V2InlineMcpDefinition$zodSchema,
57275
- V2SavedMcpReference$zodSchema
57276
- ])).nullable().optional(),
58191
+ UpdateEvalTemplateRequestIncludedComponent$zodSchema = _enum([
58192
+ "judges",
58193
+ "targets",
58194
+ "persona",
58195
+ "competitors",
58196
+ "tag",
58197
+ "category",
58198
+ "runs",
58199
+ "schedule",
58200
+ "repository",
58201
+ "environment",
58202
+ "search_grounding",
58203
+ "skills",
58204
+ "mcp_servers",
58205
+ "clis",
58206
+ "brand_docs",
58207
+ "github_pr",
58208
+ "runtime_commands"
58209
+ ]);
58210
+ UpdateEvalTemplateRequest$zodSchema = object({
58211
+ category_name: string2().optional(),
58212
+ competitor_ids: array(string2()).nullable().optional(),
58213
+ description: string2().optional(),
58214
+ eval_type: UpdateEvalTemplateRequestEvalType$zodSchema.optional(),
58215
+ expected_template_version: int().optional(),
58216
+ included_components: array(UpdateEvalTemplateRequestIncludedComponent$zodSchema).nullable().optional(),
58217
+ judges: array(GraderDefinition$zodSchema).nullable().optional(),
57277
58218
  name: string2().optional(),
57278
- persona: string2().optional().describe("Replacement eval persona. Pass null to clear it; omit it to leave the saved value unchanged."),
57279
- prompts: array(string2()).nullable().optional(),
57280
- runs: int().optional(),
57281
- search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Replacement web-retrieval policy. Omit it to keep the saved value."),
57282
- setup_commands: array(string2()).nullable().optional().describe("Replacement setup commands. Pass an empty array to clear all saved setup commands."),
57283
- tags: array(string2()).nullable().optional().describe("Replacement labels for the eval. Pass an empty array to clear all tags.")
58219
+ persona: string2().optional(),
58220
+ runs_per_execution: int().optional(),
58221
+ runtime: EvalTemplateRuntime$zodSchema.nullable().optional(),
58222
+ schedule: EvalTemplateSchedule$zodSchema.nullable().optional(),
58223
+ tag: string2().optional(),
58224
+ target_keys: array(string2()).nullable().optional()
57284
58225
  });
57285
58226
  });
57286
58227
 
57287
- // src/models/v2evalsupdateop.ts
57288
- var V2EvalsUpdateRequest$zodSchema, V2EvalsUpdateResponse$zodSchema;
57289
- var init_v2evalsupdateop = __esm(() => {
58228
+ // src/models/v2evaltemplatesupdateop.ts
58229
+ var V2EvalTemplatesUpdateRequest$zodSchema, V2EvalTemplatesUpdateConflictResponseBody$zodSchema, V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema, V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema, V2EvalTemplatesUpdateResponse$zodSchema;
58230
+ var init_v2evaltemplatesupdateop = __esm(() => {
57290
58231
  init_zod();
58232
+ init_evaltemplate();
57291
58233
  init_httpvalidationerror();
57292
- init_updatev2evalrequest();
57293
- init_v2eval();
57294
- V2EvalsUpdateRequest$zodSchema = object({
57295
- body: UpdateV2EvalRequest$zodSchema,
57296
- eval_id: string2()
58234
+ init_updateevaltemplaterequest();
58235
+ V2EvalTemplatesUpdateRequest$zodSchema = object({
58236
+ body: UpdateEvalTemplateRequest$zodSchema,
58237
+ template_id: string2()
57297
58238
  });
57298
- V2EvalsUpdateResponse$zodSchema = union([
57299
- V2Eval$zodSchema,
58239
+ V2EvalTemplatesUpdateConflictResponseBody$zodSchema = object({
58240
+ detail: string2()
58241
+ }).describe("The supplied template version is stale.");
58242
+ V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema = object({
58243
+ detail: string2()
58244
+ }).describe("The Eval template does not exist in the organization.");
58245
+ V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema = object({
58246
+ detail: string2()
58247
+ }).describe("The template contains invalid judges, targets, scheduling, metadata, or organization resources.");
58248
+ V2EvalTemplatesUpdateResponse$zodSchema = union([
58249
+ EvalTemplate$zodSchema,
58250
+ lazy(() => V2EvalTemplatesUpdateBadRequestResponseBody$zodSchema),
58251
+ lazy(() => V2EvalTemplatesUpdateNotFoundResponseBody$zodSchema),
58252
+ lazy(() => V2EvalTemplatesUpdateConflictResponseBody$zodSchema),
57300
58253
  HTTPValidationError$zodSchema
57301
58254
  ]);
57302
58255
  });
57303
58256
 
57304
- // src/funcs/evalsV2EvalsUpdate.ts
57305
- function evalsV2EvalsUpdate(client$, request, options) {
57306
- return new APIPromise($do21(client$, request, options));
58257
+ // src/funcs/evalTemplatesV2EvalTemplatesUpdate.ts
58258
+ function evalTemplatesV2EvalTemplatesUpdate(client$, request, options) {
58259
+ return new APIPromise($do27(client$, request, options));
57307
58260
  }
57308
- async function $do21(client$, request, options) {
57309
- const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
58261
+ async function $do27(client$, request, options) {
58262
+ const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
57310
58263
  if (!parsed$.ok) {
57311
58264
  return [parsed$, { status: "invalid" }];
57312
58265
  }
57313
58266
  const payload$ = parsed$.value;
57314
58267
  const body$ = encodeJSON("body", payload$.body, { explode: true });
57315
58268
  const pathParams$ = {
57316
- eval_id: encodeSimple("eval_id", payload$.eval_id, {
58269
+ template_id: encodeSimple("template_id", payload$.template_id, {
57317
58270
  explode: false,
57318
58271
  charEncoding: "percent"
57319
58272
  })
57320
58273
  };
57321
- const path$ = pathToFunc("/v2/evals/{eval_id}")(pathParams$);
58274
+ const path$ = pathToFunc("/v2/eval-templates/{template_id}")(pathParams$);
57322
58275
  const headers$ = new Headers(compactMap({
57323
58276
  "Content-Type": "application/json",
57324
58277
  Accept: "application/json"
@@ -57328,7 +58281,7 @@ async function $do21(client$, request, options) {
57328
58281
  const context = {
57329
58282
  options: client$._options,
57330
58283
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
57331
- operationID: "v2_evals_update",
58284
+ operationID: "v2_eval_templates_update",
57332
58285
  oAuth2Scopes: null,
57333
58286
  resolvedSecurity: requestSecurity,
57334
58287
  securitySource: client$._options.security,
@@ -57370,30 +58323,30 @@ async function $do21(client$, request, options) {
57370
58323
  response: doResult.value
57371
58324
  }];
57372
58325
  }
57373
- var init_evalsV2EvalsUpdate = __esm(() => {
58326
+ var init_evalTemplatesV2EvalTemplatesUpdate = __esm(() => {
57374
58327
  init_encodings();
57375
58328
  init_primitives();
57376
58329
  init_schemas4();
57377
58330
  init_security();
57378
58331
  init_url();
57379
- init_v2evalsupdateop();
58332
+ init_v2evaltemplatesupdateop();
57380
58333
  init_async();
57381
58334
  });
57382
58335
 
57383
- // src/mcp-server/tools/evalsV2EvalsUpdate.ts
57384
- var args17, tool$evalsV2EvalsUpdate;
57385
- var init_evalsV2EvalsUpdate2 = __esm(() => {
57386
- init_evalsV2EvalsUpdate();
57387
- init_v2evalsupdateop();
58336
+ // src/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.ts
58337
+ var args22, tool$evalTemplatesV2EvalTemplatesUpdate;
58338
+ var init_evalTemplatesV2EvalTemplatesUpdate2 = __esm(() => {
58339
+ init_evalTemplatesV2EvalTemplatesUpdate();
58340
+ init_v2evaltemplatesupdateop();
57388
58341
  init_tools();
57389
- args17 = {
57390
- request: V2EvalsUpdateRequest$zodSchema
58342
+ args22 = {
58343
+ request: V2EvalTemplatesUpdateRequest$zodSchema
57391
58344
  };
57392
- tool$evalsV2EvalsUpdate = {
57393
- name: "evals-v2-evals-update",
57394
- description: `Update Eval
58345
+ tool$evalTemplatesV2EvalTemplatesUpdate = {
58346
+ name: "eval-templates-v2-eval-templates-update",
58347
+ description: `Update an Eval template
57395
58348
 
57396
- Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, \`setup_commands\`, \`cleanup_commands\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
58349
+ Updates an Eval template. Supply \`expected_template_version\` to reject an edit based on stale data. Existing evals are never changed.`,
57397
58350
  annotations: {
57398
58351
  title: "",
57399
58352
  destructiveHint: false,
@@ -57401,9 +58354,9 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
57401
58354
  openWorldHint: false,
57402
58355
  readOnlyHint: false
57403
58356
  },
57404
- args: args17,
58357
+ args: args22,
57405
58358
  tool: async (client, args, ctx) => {
57406
- const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58359
+ const [result] = await evalTemplatesV2EvalTemplatesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57407
58360
  if (!result.ok) {
57408
58361
  return {
57409
58362
  content: [{ type: "text", text: result.error.message }],
@@ -57417,9 +58370,9 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
57417
58370
 
57418
58371
  // src/funcs/mcpServersV2MCPServersList.ts
57419
58372
  function mcpServersV2MCPServersList(client$, options) {
57420
- return new APIPromise($do22(client$, options));
58373
+ return new APIPromise($do28(client$, options));
57421
58374
  }
57422
- async function $do22(client$, options) {
58375
+ async function $do28(client$, options) {
57423
58376
  const path$ = pathToFunc("/v2/mcp-servers")();
57424
58377
  const headers$ = new Headers(compactMap({
57425
58378
  Accept: "application/json"
@@ -57601,9 +58554,9 @@ var init_v2opportunitieslistop = __esm(() => {
57601
58554
 
57602
58555
  // src/funcs/opportunitiesV2OpportunitiesList.ts
57603
58556
  function opportunitiesV2OpportunitiesList(client$, request, options) {
57604
- return new APIPromise($do23(client$, request, options));
58557
+ return new APIPromise($do29(client$, request, options));
57605
58558
  }
57606
- async function $do23(client$, request, options) {
58559
+ async function $do29(client$, request, options) {
57607
58560
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
57608
58561
  if (!parsed$.ok) {
57609
58562
  return [parsed$, { status: "invalid" }];
@@ -57681,12 +58634,12 @@ var init_opportunitiesV2OpportunitiesList = __esm(() => {
57681
58634
  });
57682
58635
 
57683
58636
  // src/mcp-server/tools/opportunitiesV2OpportunitiesList.ts
57684
- var args18, tool$opportunitiesV2OpportunitiesList;
58637
+ var args23, tool$opportunitiesV2OpportunitiesList;
57685
58638
  var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
57686
58639
  init_opportunitiesV2OpportunitiesList();
57687
58640
  init_v2opportunitieslistop();
57688
58641
  init_tools();
57689
- args18 = {
58642
+ args23 = {
57690
58643
  request: V2OpportunitiesListRequest$zodSchema.optional()
57691
58644
  };
57692
58645
  tool$opportunitiesV2OpportunitiesList = {
@@ -57701,7 +58654,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
57701
58654
  openWorldHint: false,
57702
58655
  readOnlyHint: true
57703
58656
  },
57704
- args: args18,
58657
+ args: args23,
57705
58658
  tool: async (client, args, ctx) => {
57706
58659
  const [result] = await opportunitiesV2OpportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57707
58660
  if (!result.ok) {
@@ -57773,9 +58726,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
57773
58726
 
57774
58727
  // src/funcs/opportunitiesV2OpportunitiesRetrieve.ts
57775
58728
  function opportunitiesV2OpportunitiesRetrieve(client$, request, options) {
57776
- return new APIPromise($do24(client$, request, options));
58729
+ return new APIPromise($do30(client$, request, options));
57777
58730
  }
57778
- async function $do24(client$, request, options) {
58731
+ async function $do30(client$, request, options) {
57779
58732
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
57780
58733
  if (!parsed$.ok) {
57781
58734
  return [parsed$, { status: "invalid" }];
@@ -57856,12 +58809,12 @@ var init_opportunitiesV2OpportunitiesRetrieve = __esm(() => {
57856
58809
  });
57857
58810
 
57858
58811
  // src/mcp-server/tools/opportunitiesV2OpportunitiesRetrieve.ts
57859
- var args19, tool$opportunitiesV2OpportunitiesRetrieve;
58812
+ var args24, tool$opportunitiesV2OpportunitiesRetrieve;
57860
58813
  var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
57861
58814
  init_opportunitiesV2OpportunitiesRetrieve();
57862
58815
  init_v2opportunitiesretrieveop();
57863
58816
  init_tools();
57864
- args19 = {
58817
+ args24 = {
57865
58818
  request: V2OpportunitiesRetrieveRequest$zodSchema
57866
58819
  };
57867
58820
  tool$opportunitiesV2OpportunitiesRetrieve = {
@@ -57876,7 +58829,7 @@ Returns one computed opportunity and its execution context for the selected date
57876
58829
  openWorldHint: false,
57877
58830
  readOnlyHint: true
57878
58831
  },
57879
- args: args19,
58832
+ args: args24,
57880
58833
  tool: async (client, args, ctx) => {
57881
58834
  const [result] = await opportunitiesV2OpportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57882
58835
  if (!result.ok) {
@@ -57926,6 +58879,7 @@ var init_v2promptrunprompt = __esm(() => {
57926
58879
  var V2PromptRunSummaryTargetKind$zodSchema, V2PromptRunSummary$zodSchema;
57927
58880
  var init_v2promptrunsummary = __esm(() => {
57928
58881
  init_zod();
58882
+ init_searchgroundingmode();
57929
58883
  init_v2promptrunplatform();
57930
58884
  init_v2promptrunprompt();
57931
58885
  V2PromptRunSummaryTargetKind$zodSchema = _enum([
@@ -57935,6 +58889,8 @@ var init_v2promptrunsummary = __esm(() => {
57935
58889
  V2PromptRunSummary$zodSchema = object({
57936
58890
  citation_count: int().default(0),
57937
58891
  created_at: string2().nullable().optional(),
58892
+ grounding_qualification_reason: string2().nullable().optional(),
58893
+ grounding_qualified: boolean2().nullable().optional().describe("Whether the run satisfied the requested web access mode. Null means the default mode was used or isolation could not be proven."),
57938
58894
  harness: string2().nullable().optional().describe("Coding-agent harness for agent runs; otherwise the answer platform identifier."),
57939
58895
  id: string2(),
57940
58896
  is_brand_mentioned: boolean2().nullable().optional(),
@@ -57944,8 +58900,11 @@ var init_v2promptrunsummary = __esm(() => {
57944
58900
  prompt_id: string2(),
57945
58901
  response_preview: string2().nullable().optional(),
57946
58902
  run_date: string2(),
58903
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web access mode requested for this run. Null for runs recorded before web access was tracked."),
58904
+ search_observed: boolean2().nullable().optional(),
57947
58905
  target_kind: V2PromptRunSummaryTargetKind$zodSchema.nullable().optional(),
57948
- tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs.")
58906
+ tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs."),
58907
+ web_retrieval_observed: boolean2().nullable().optional().describe("Whether the coding agent was observed searching or fetching from the web. Null when not measured, including answer-engine runs.")
57949
58908
  });
57950
58909
  });
57951
58910
 
@@ -57984,9 +58943,9 @@ var init_v2promptrunslistop = __esm(() => {
57984
58943
 
57985
58944
  // src/funcs/promptsV2PromptRunsList.ts
57986
58945
  function promptsV2PromptRunsList(client$, request, options) {
57987
- return new APIPromise($do25(client$, request, options));
58946
+ return new APIPromise($do31(client$, request, options));
57988
58947
  }
57989
- async function $do25(client$, request, options) {
58948
+ async function $do31(client$, request, options) {
57990
58949
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
57991
58950
  if (!parsed$.ok) {
57992
58951
  return [parsed$, { status: "invalid" }];
@@ -58064,12 +59023,12 @@ var init_promptsV2PromptRunsList = __esm(() => {
58064
59023
  });
58065
59024
 
58066
59025
  // src/mcp-server/tools/promptsV2PromptRunsList.ts
58067
- var args20, tool$promptsV2PromptRunsList;
59026
+ var args25, tool$promptsV2PromptRunsList;
58068
59027
  var init_promptsV2PromptRunsList2 = __esm(() => {
58069
59028
  init_promptsV2PromptRunsList();
58070
59029
  init_v2promptrunslistop();
58071
59030
  init_tools();
58072
- args20 = {
59031
+ args25 = {
58073
59032
  request: V2PromptRunsListRequest$zodSchema.optional()
58074
59033
  };
58075
59034
  tool$promptsV2PromptRunsList = {
@@ -58084,7 +59043,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
58084
59043
  openWorldHint: false,
58085
59044
  readOnlyHint: true
58086
59045
  },
58087
- args: args20,
59046
+ args: args25,
58088
59047
  tool: async (client, args, ctx) => {
58089
59048
  const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58090
59049
  if (!result.ok) {
@@ -58144,6 +59103,7 @@ var init_v2promptrunmention = __esm(() => {
58144
59103
  var V2PromptRunDetailTargetKind$zodSchema, V2PromptRunDetail$zodSchema;
58145
59104
  var init_v2promptrundetail = __esm(() => {
58146
59105
  init_zod();
59106
+ init_searchgroundingmode();
58147
59107
  init_v2promptruncitation();
58148
59108
  init_v2promptrunmention();
58149
59109
  init_v2promptrunplatform();
@@ -58157,6 +59117,8 @@ var init_v2promptrundetail = __esm(() => {
58157
59117
  citations: array(V2PromptRunCitation$zodSchema).optional(),
58158
59118
  conversation_turns: array(record(string2(), any())).optional().describe("Sanitized interleaved text and tool-call trace captured for this run. It interleaves the agent's `text` turns with `tool_call` turns, so its length is not a tool-call count; use `tool_calls` or `tool_call_count`."),
58159
59119
  created_at: string2().nullable().optional(),
59120
+ grounding_qualification_reason: string2().nullable().optional(),
59121
+ grounding_qualified: boolean2().nullable().optional().describe("Whether the run satisfied the requested web access mode. Null means the default mode was used or isolation could not be proven."),
58160
59122
  harness: string2().nullable().optional().describe("Coding-agent harness for agent runs; otherwise the answer platform identifier."),
58161
59123
  id: string2(),
58162
59124
  is_brand_mentioned: boolean2().nullable().optional(),
@@ -58168,9 +59130,12 @@ var init_v2promptrundetail = __esm(() => {
58168
59130
  response: string2().nullable().optional(),
58169
59131
  response_preview: string2().nullable().optional(),
58170
59132
  run_date: string2(),
59133
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web access mode requested for this run. Null for runs recorded before web access was tracked."),
59134
+ search_observed: boolean2().nullable().optional(),
58171
59135
  target_kind: V2PromptRunDetailTargetKind$zodSchema.nullable().optional(),
58172
59136
  tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs."),
58173
- tool_calls: array(record(string2(), any())).optional().describe("Sanitized coding-agent tool invocations captured for this run, one entry per invocation with its result merged in.")
59137
+ tool_calls: array(record(string2(), any())).optional().describe("Sanitized coding-agent tool invocations captured for this run, one entry per invocation with its result merged in."),
59138
+ web_retrieval_observed: boolean2().nullable().optional().describe("Whether the coding agent was observed searching or fetching from the web. Null when not measured, including answer-engine runs.")
58174
59139
  });
58175
59140
  });
58176
59141
 
@@ -58191,9 +59156,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
58191
59156
 
58192
59157
  // src/funcs/promptsV2PromptRunsRetrieve.ts
58193
59158
  function promptsV2PromptRunsRetrieve(client$, request, options) {
58194
- return new APIPromise($do26(client$, request, options));
59159
+ return new APIPromise($do32(client$, request, options));
58195
59160
  }
58196
- async function $do26(client$, request, options) {
59161
+ async function $do32(client$, request, options) {
58197
59162
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58198
59163
  if (!parsed$.ok) {
58199
59164
  return [parsed$, { status: "invalid" }];
@@ -58268,12 +59233,12 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
58268
59233
  });
58269
59234
 
58270
59235
  // src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
58271
- var args21, tool$promptsV2PromptRunsRetrieve;
59236
+ var args26, tool$promptsV2PromptRunsRetrieve;
58272
59237
  var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
58273
59238
  init_promptsV2PromptRunsRetrieve();
58274
59239
  init_v2promptrunsretrieveop();
58275
59240
  init_tools();
58276
- args21 = {
59241
+ args26 = {
58277
59242
  request: V2PromptRunsRetrieveRequest$zodSchema
58278
59243
  };
58279
59244
  tool$promptsV2PromptRunsRetrieve = {
@@ -58288,7 +59253,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
58288
59253
  openWorldHint: false,
58289
59254
  readOnlyHint: true
58290
59255
  },
58291
- args: args21,
59256
+ args: args26,
58292
59257
  tool: async (client, args, ctx) => {
58293
59258
  const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58294
59259
  if (!result.ok) {
@@ -58302,12 +59267,30 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
58302
59267
  };
58303
59268
  });
58304
59269
 
59270
+ // src/models/v2promptrunsettingsinput.ts
59271
+ var V2PromptRunSettingsInputWebSearchInstruction$zodSchema, V2PromptRunSettingsInput$zodSchema;
59272
+ var init_v2promptrunsettingsinput = __esm(() => {
59273
+ init_zod();
59274
+ init_searchgroundingmode();
59275
+ V2PromptRunSettingsInputWebSearchInstruction$zodSchema = _enum([
59276
+ "omit",
59277
+ "append",
59278
+ "both"
59279
+ ]);
59280
+ V2PromptRunSettingsInput$zodSchema = object({
59281
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web access for coding-agent runs of this prompt. `disabled` blocks web access in the agent sandbox, `enabled` requires the agent to retrieve from the web, and `default` leaves the choice to the agent. Answer engines are not affected. An eval-run target that sets `search_grounding` overrides this setting."),
59282
+ web_search_instruction: V2PromptRunSettingsInputWebSearchInstruction$zodSchema.nullable().optional().describe('Whether coding-agent runs append "Use web search." to the prompt. `both` runs the prompt once without and once with the instruction. Ignored when `search_grounding` is `disabled`. Answer engines always receive the prompt as written.')
59283
+ });
59284
+ });
59285
+
58305
59286
  // src/models/createv2promptrequest.ts
58306
59287
  var CreateV2PromptRequest$zodSchema;
58307
59288
  var init_createv2promptrequest = __esm(() => {
58308
59289
  init_zod();
59290
+ init_v2promptrunsettingsinput();
58309
59291
  CreateV2PromptRequest$zodSchema = object({
58310
59292
  platform_ids: array(string2()).optional().describe("Answer-platform IDs from the prompt configuration. Omit to attach none."),
59293
+ run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional().describe("Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values."),
58311
59294
  text: string2(),
58312
59295
  topic_id: string2().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
58313
59296
  });
@@ -58325,9 +59308,9 @@ var init_createv2promptsrequest = __esm(() => {
58325
59308
 
58326
59309
  // src/funcs/promptsV2PromptsCreate.ts
58327
59310
  function promptsV2PromptsCreate(client$, request, options) {
58328
- return new APIPromise($do27(client$, request, options));
59311
+ return new APIPromise($do33(client$, request, options));
58329
59312
  }
58330
- async function $do27(client$, request, options) {
59313
+ async function $do33(client$, request, options) {
58331
59314
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
58332
59315
  if (!parsed$.ok) {
58333
59316
  return [parsed$, { status: "invalid" }];
@@ -58397,12 +59380,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
58397
59380
  });
58398
59381
 
58399
59382
  // src/mcp-server/tools/promptsV2PromptsCreate.ts
58400
- var args22, tool$promptsV2PromptsCreate;
59383
+ var args27, tool$promptsV2PromptsCreate;
58401
59384
  var init_promptsV2PromptsCreate2 = __esm(() => {
58402
59385
  init_promptsV2PromptsCreate();
58403
59386
  init_createv2promptsrequest();
58404
59387
  init_tools();
58405
- args22 = {
59388
+ args27 = {
58406
59389
  request: CreateV2PromptsRequest$zodSchema
58407
59390
  };
58408
59391
  tool$promptsV2PromptsCreate = {
@@ -58417,7 +59400,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
58417
59400
  openWorldHint: false,
58418
59401
  readOnlyHint: false
58419
59402
  },
58420
- args: args22,
59403
+ args: args27,
58421
59404
  tool: async (client, args, ctx) => {
58422
59405
  const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58423
59406
  if (!result.ok) {
@@ -58457,9 +59440,9 @@ var init_v2promptsdeleteop = __esm(() => {
58457
59440
 
58458
59441
  // src/funcs/promptsV2PromptsDelete.ts
58459
59442
  function promptsV2PromptsDelete(client$, request, options) {
58460
- return new APIPromise($do28(client$, request, options));
59443
+ return new APIPromise($do34(client$, request, options));
58461
59444
  }
58462
- async function $do28(client$, request, options) {
59445
+ async function $do34(client$, request, options) {
58463
59446
  const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
58464
59447
  if (!parsed$.ok) {
58465
59448
  return [parsed$, { status: "invalid" }];
@@ -58534,12 +59517,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
58534
59517
  });
58535
59518
 
58536
59519
  // src/mcp-server/tools/promptsV2PromptsDelete.ts
58537
- var args23, tool$promptsV2PromptsDelete;
59520
+ var args28, tool$promptsV2PromptsDelete;
58538
59521
  var init_promptsV2PromptsDelete2 = __esm(() => {
58539
59522
  init_promptsV2PromptsDelete();
58540
59523
  init_v2promptsdeleteop();
58541
59524
  init_tools();
58542
- args23 = {
59525
+ args28 = {
58543
59526
  request: V2PromptsDeleteRequest$zodSchema
58544
59527
  };
58545
59528
  tool$promptsV2PromptsDelete = {
@@ -58554,7 +59537,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
58554
59537
  openWorldHint: false,
58555
59538
  readOnlyHint: false
58556
59539
  },
58557
- args: args23,
59540
+ args: args28,
58558
59541
  tool: async (client, args, ctx) => {
58559
59542
  const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58560
59543
  if (!result.ok) {
@@ -58602,25 +59585,43 @@ var init_publicprompttopic = __esm(() => {
58602
59585
  });
58603
59586
  });
58604
59587
 
58605
- // src/models/publicprompt.ts
58606
- var PublicPromptStatus$zodSchema, PublicPrompt$zodSchema;
58607
- var init_publicprompt = __esm(() => {
59588
+ // src/models/v2promptrunsettings.ts
59589
+ var V2PromptRunSettingsWebSearchInstruction$zodSchema, V2PromptRunSettings$zodSchema;
59590
+ var init_v2promptrunsettings = __esm(() => {
59591
+ init_zod();
59592
+ init_searchgroundingmode();
59593
+ V2PromptRunSettingsWebSearchInstruction$zodSchema = _enum([
59594
+ "omit",
59595
+ "append",
59596
+ "both"
59597
+ ]).describe('Whether coding-agent runs append "Use web search." to the prompt. `both` runs the prompt once without and once with the instruction. Ignored when `search_grounding` is `disabled`. Answer engines always receive the prompt as written.');
59598
+ V2PromptRunSettings$zodSchema = object({
59599
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
59600
+ web_search_instruction: V2PromptRunSettingsWebSearchInstruction$zodSchema.default("omit").describe('Whether coding-agent runs append "Use web search." to the prompt. `both` runs the prompt once without and once with the instruction. Ignored when `search_grounding` is `disabled`. Answer engines always receive the prompt as written.')
59601
+ });
59602
+ });
59603
+
59604
+ // src/models/v2promptresponse.ts
59605
+ var V2PromptResponseStatus$zodSchema, V2PromptResponse$zodSchema;
59606
+ var init_v2promptresponse = __esm(() => {
58608
59607
  init_zod();
58609
59608
  init_publicpromptplatform();
58610
59609
  init_publicprompttag();
58611
59610
  init_publicprompttopic();
58612
- PublicPromptStatus$zodSchema = _enum([
59611
+ init_v2promptrunsettings();
59612
+ V2PromptResponseStatus$zodSchema = _enum([
58613
59613
  "active",
58614
59614
  "inactive",
58615
59615
  "archived"
58616
59616
  ]).describe("The prompt lifecycle status. Only `active` prompts run on schedule.");
58617
- PublicPrompt$zodSchema = object({
59617
+ V2PromptResponse$zodSchema = object({
58618
59618
  created_at: string2().nullable().optional(),
58619
59619
  id: string2(),
58620
59620
  language_id: string2().nullable().optional(),
58621
59621
  platforms: array(PublicPromptPlatform$zodSchema).optional(),
58622
59622
  region_id: string2().nullable().optional(),
58623
- status: PublicPromptStatus$zodSchema.describe("The prompt lifecycle status. Only `active` prompts run on schedule."),
59623
+ run_settings: V2PromptRunSettings$zodSchema.optional(),
59624
+ status: V2PromptResponseStatus$zodSchema.describe("The prompt lifecycle status. Only `active` prompts run on schedule."),
58624
59625
  tags: array(PublicPromptTag$zodSchema).optional(),
58625
59626
  text: string2(),
58626
59627
  topic: PublicPromptTopic$zodSchema.nullable().optional(),
@@ -58629,14 +59630,14 @@ var init_publicprompt = __esm(() => {
58629
59630
  });
58630
59631
  });
58631
59632
 
58632
- // src/models/listpromptsresponse.ts
58633
- var ListPromptsResponse$zodSchema;
58634
- var init_listpromptsresponse = __esm(() => {
59633
+ // src/models/v2listpromptsresponse.ts
59634
+ var V2ListPromptsResponse$zodSchema;
59635
+ var init_v2listpromptsresponse = __esm(() => {
58635
59636
  init_zod();
58636
- init_publicprompt();
58637
- ListPromptsResponse$zodSchema = object({
59637
+ init_v2promptresponse();
59638
+ V2ListPromptsResponse$zodSchema = object({
58638
59639
  count: int(),
58639
- data: array(PublicPrompt$zodSchema)
59640
+ data: array(V2PromptResponse$zodSchema)
58640
59641
  });
58641
59642
  });
58642
59643
 
@@ -58645,7 +59646,7 @@ var V2PromptsListStatus$zodSchema, V2PromptsListRequest$zodSchema, V2PromptsList
58645
59646
  var init_v2promptslistop = __esm(() => {
58646
59647
  init_zod();
58647
59648
  init_httpvalidationerror();
58648
- init_listpromptsresponse();
59649
+ init_v2listpromptsresponse();
58649
59650
  V2PromptsListStatus$zodSchema = _enum([
58650
59651
  "active",
58651
59652
  "inactive",
@@ -58657,16 +59658,16 @@ var init_v2promptslistop = __esm(() => {
58657
59658
  topic_id: string2().describe("Optional prompt topic ID.").optional()
58658
59659
  });
58659
59660
  V2PromptsListResponse$zodSchema = union([
58660
- ListPromptsResponse$zodSchema,
59661
+ V2ListPromptsResponse$zodSchema,
58661
59662
  HTTPValidationError$zodSchema
58662
59663
  ]);
58663
59664
  });
58664
59665
 
58665
59666
  // src/funcs/promptsV2PromptsList.ts
58666
59667
  function promptsV2PromptsList(client$, request, options) {
58667
- return new APIPromise($do29(client$, request, options));
59668
+ return new APIPromise($do35(client$, request, options));
58668
59669
  }
58669
- async function $do29(client$, request, options) {
59670
+ async function $do35(client$, request, options) {
58670
59671
  const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
58671
59672
  if (!parsed$.ok) {
58672
59673
  return [parsed$, { status: "invalid" }];
@@ -58741,12 +59742,12 @@ var init_promptsV2PromptsList = __esm(() => {
58741
59742
  });
58742
59743
 
58743
59744
  // src/mcp-server/tools/promptsV2PromptsList.ts
58744
- var args24, tool$promptsV2PromptsList;
59745
+ var args29, tool$promptsV2PromptsList;
58745
59746
  var init_promptsV2PromptsList2 = __esm(() => {
58746
59747
  init_promptsV2PromptsList();
58747
59748
  init_v2promptslistop();
58748
59749
  init_tools();
58749
- args24 = {
59750
+ args29 = {
58750
59751
  request: V2PromptsListRequest$zodSchema.optional()
58751
59752
  };
58752
59753
  tool$promptsV2PromptsList = {
@@ -58761,7 +59762,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
58761
59762
  openWorldHint: false,
58762
59763
  readOnlyHint: true
58763
59764
  },
58764
- args: args24,
59765
+ args: args29,
58765
59766
  tool: async (client, args, ctx) => {
58766
59767
  const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58767
59768
  if (!result.ok) {
@@ -58780,21 +59781,21 @@ var V2PromptsRetrieveRequest$zodSchema, V2PromptsRetrieveResponse$zodSchema;
58780
59781
  var init_v2promptsretrieveop = __esm(() => {
58781
59782
  init_zod();
58782
59783
  init_httpvalidationerror();
58783
- init_publicprompt();
59784
+ init_v2promptresponse();
58784
59785
  V2PromptsRetrieveRequest$zodSchema = object({
58785
59786
  prompt_id: string2()
58786
59787
  });
58787
59788
  V2PromptsRetrieveResponse$zodSchema = union([
58788
- PublicPrompt$zodSchema,
59789
+ V2PromptResponse$zodSchema,
58789
59790
  HTTPValidationError$zodSchema
58790
59791
  ]);
58791
59792
  });
58792
59793
 
58793
59794
  // src/funcs/promptsV2PromptsRetrieve.ts
58794
59795
  function promptsV2PromptsRetrieve(client$, request, options) {
58795
- return new APIPromise($do30(client$, request, options));
59796
+ return new APIPromise($do36(client$, request, options));
58796
59797
  }
58797
- async function $do30(client$, request, options) {
59798
+ async function $do36(client$, request, options) {
58798
59799
  const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58799
59800
  if (!parsed$.ok) {
58800
59801
  return [parsed$, { status: "invalid" }];
@@ -58869,19 +59870,19 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
58869
59870
  });
58870
59871
 
58871
59872
  // src/mcp-server/tools/promptsV2PromptsRetrieve.ts
58872
- var args25, tool$promptsV2PromptsRetrieve;
59873
+ var args30, tool$promptsV2PromptsRetrieve;
58873
59874
  var init_promptsV2PromptsRetrieve2 = __esm(() => {
58874
59875
  init_promptsV2PromptsRetrieve();
58875
59876
  init_v2promptsretrieveop();
58876
59877
  init_tools();
58877
- args25 = {
59878
+ args30 = {
58878
59879
  request: V2PromptsRetrieveRequest$zodSchema
58879
59880
  };
58880
59881
  tool$promptsV2PromptsRetrieve = {
58881
59882
  name: "prompts-v2-prompts-retrieve",
58882
59883
  description: `Retrieve Prompt
58883
59884
 
58884
- Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
59885
+ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-agent run settings.`,
58885
59886
  annotations: {
58886
59887
  title: "",
58887
59888
  destructiveHint: false,
@@ -58889,7 +59890,7 @@ Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
58889
59890
  openWorldHint: false,
58890
59891
  readOnlyHint: true
58891
59892
  },
58892
- args: args25,
59893
+ args: args30,
58893
59894
  tool: async (client, args, ctx) => {
58894
59895
  const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58895
59896
  if (!result.ok) {
@@ -58907,12 +59908,14 @@ Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
58907
59908
  var UpdateV2PromptRequestStatus$zodSchema, UpdateV2PromptRequest$zodSchema;
58908
59909
  var init_updatev2promptrequest = __esm(() => {
58909
59910
  init_zod();
59911
+ init_v2promptrunsettingsinput();
58910
59912
  UpdateV2PromptRequestStatus$zodSchema = _enum([
58911
59913
  "active",
58912
59914
  "inactive"
58913
59915
  ]);
58914
59916
  UpdateV2PromptRequest$zodSchema = object({
58915
59917
  platform_ids: array(string2()).nullable().optional().describe("Replacement list of answer-platform IDs."),
59918
+ run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional().describe("Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values."),
58916
59919
  status: UpdateV2PromptRequestStatus$zodSchema.optional(),
58917
59920
  text: string2().optional(),
58918
59921
  topic_id: string2().optional().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
@@ -58924,23 +59927,23 @@ var V2PromptsUpdateRequest$zodSchema, V2PromptsUpdateResponse$zodSchema;
58924
59927
  var init_v2promptsupdateop = __esm(() => {
58925
59928
  init_zod();
58926
59929
  init_httpvalidationerror();
58927
- init_publicprompt();
58928
59930
  init_updatev2promptrequest();
59931
+ init_v2promptresponse();
58929
59932
  V2PromptsUpdateRequest$zodSchema = object({
58930
59933
  body: UpdateV2PromptRequest$zodSchema,
58931
59934
  prompt_id: string2()
58932
59935
  });
58933
59936
  V2PromptsUpdateResponse$zodSchema = union([
58934
- PublicPrompt$zodSchema,
59937
+ V2PromptResponse$zodSchema,
58935
59938
  HTTPValidationError$zodSchema
58936
59939
  ]);
58937
59940
  });
58938
59941
 
58939
59942
  // src/funcs/promptsV2PromptsUpdate.ts
58940
59943
  function promptsV2PromptsUpdate(client$, request, options) {
58941
- return new APIPromise($do31(client$, request, options));
59944
+ return new APIPromise($do37(client$, request, options));
58942
59945
  }
58943
- async function $do31(client$, request, options) {
59946
+ async function $do37(client$, request, options) {
58944
59947
  const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
58945
59948
  if (!parsed$.ok) {
58946
59949
  return [parsed$, { status: "invalid" }];
@@ -59016,19 +60019,19 @@ var init_promptsV2PromptsUpdate = __esm(() => {
59016
60019
  });
59017
60020
 
59018
60021
  // src/mcp-server/tools/promptsV2PromptsUpdate.ts
59019
- var args26, tool$promptsV2PromptsUpdate;
60022
+ var args31, tool$promptsV2PromptsUpdate;
59020
60023
  var init_promptsV2PromptsUpdate2 = __esm(() => {
59021
60024
  init_promptsV2PromptsUpdate();
59022
60025
  init_v2promptsupdateop();
59023
60026
  init_tools();
59024
- args26 = {
60027
+ args31 = {
59025
60028
  request: V2PromptsUpdateRequest$zodSchema
59026
60029
  };
59027
60030
  tool$promptsV2PromptsUpdate = {
59028
60031
  name: "prompts-v2-prompts-update",
59029
60032
  description: `Update Prompt
59030
60033
 
59031
- Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields remain unchanged.`,
60034
+ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged.`,
59032
60035
  annotations: {
59033
60036
  title: "",
59034
60037
  destructiveHint: false,
@@ -59036,7 +60039,7 @@ Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields r
59036
60039
  openWorldHint: false,
59037
60040
  readOnlyHint: false
59038
60041
  },
59039
- args: args26,
60042
+ args: args31,
59040
60043
  tool: async (client, args, ctx) => {
59041
60044
  const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59042
60045
  if (!result.ok) {
@@ -59061,9 +60064,9 @@ var init_createprompttopicrequest = __esm(() => {
59061
60064
 
59062
60065
  // src/funcs/promptsV2PromptTopicsCreate.ts
59063
60066
  function promptsV2PromptTopicsCreate(client$, request, options) {
59064
- return new APIPromise($do32(client$, request, options));
60067
+ return new APIPromise($do38(client$, request, options));
59065
60068
  }
59066
- async function $do32(client$, request, options) {
60069
+ async function $do38(client$, request, options) {
59067
60070
  const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
59068
60071
  if (!parsed$.ok) {
59069
60072
  return [parsed$, { status: "invalid" }];
@@ -59133,12 +60136,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
59133
60136
  });
59134
60137
 
59135
60138
  // src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
59136
- var args27, tool$promptsV2PromptTopicsCreate;
60139
+ var args32, tool$promptsV2PromptTopicsCreate;
59137
60140
  var init_promptsV2PromptTopicsCreate2 = __esm(() => {
59138
60141
  init_promptsV2PromptTopicsCreate();
59139
60142
  init_createprompttopicrequest();
59140
60143
  init_tools();
59141
- args27 = {
60144
+ args32 = {
59142
60145
  request: CreatePromptTopicRequest$zodSchema
59143
60146
  };
59144
60147
  tool$promptsV2PromptTopicsCreate = {
@@ -59153,7 +60156,7 @@ Creates a prompt topic and returns the saved topic.`,
59153
60156
  openWorldHint: false,
59154
60157
  readOnlyHint: false
59155
60158
  },
59156
- args: args27,
60159
+ args: args32,
59157
60160
  tool: async (client, args, ctx) => {
59158
60161
  const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59159
60162
  if (!result.ok) {
@@ -59185,9 +60188,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
59185
60188
 
59186
60189
  // src/funcs/promptsV2PromptTopicsDelete.ts
59187
60190
  function promptsV2PromptTopicsDelete(client$, request, options) {
59188
- return new APIPromise($do33(client$, request, options));
60191
+ return new APIPromise($do39(client$, request, options));
59189
60192
  }
59190
- async function $do33(client$, request, options) {
60193
+ async function $do39(client$, request, options) {
59191
60194
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59192
60195
  if (!parsed$.ok) {
59193
60196
  return [parsed$, { status: "invalid" }];
@@ -59266,12 +60269,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
59266
60269
  });
59267
60270
 
59268
60271
  // src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
59269
- var args28, tool$promptsV2PromptTopicsDelete;
60272
+ var args33, tool$promptsV2PromptTopicsDelete;
59270
60273
  var init_promptsV2PromptTopicsDelete2 = __esm(() => {
59271
60274
  init_promptsV2PromptTopicsDelete();
59272
60275
  init_v2prompttopicsdeleteop();
59273
60276
  init_tools();
59274
- args28 = {
60277
+ args33 = {
59275
60278
  request: V2PromptTopicsDeleteRequest$zodSchema
59276
60279
  };
59277
60280
  tool$promptsV2PromptTopicsDelete = {
@@ -59286,7 +60289,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
59286
60289
  openWorldHint: false,
59287
60290
  readOnlyHint: false
59288
60291
  },
59289
- args: args28,
60292
+ args: args33,
59290
60293
  tool: async (client, args, ctx) => {
59291
60294
  const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59292
60295
  if (!result.ok) {
@@ -59302,9 +60305,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
59302
60305
 
59303
60306
  // src/funcs/promptsV2PromptTopicsList.ts
59304
60307
  function promptsV2PromptTopicsList(client$, options) {
59305
- return new APIPromise($do34(client$, options));
60308
+ return new APIPromise($do40(client$, options));
59306
60309
  }
59307
- async function $do34(client$, options) {
60310
+ async function $do40(client$, options) {
59308
60311
  const path$ = pathToFunc("/v2/prompts/topics")();
59309
60312
  const headers$ = new Headers(compactMap({
59310
60313
  Accept: "application/json"
@@ -59420,9 +60423,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
59420
60423
 
59421
60424
  // src/funcs/promptsV2PromptTopicsUpdate.ts
59422
60425
  function promptsV2PromptTopicsUpdate(client$, request, options) {
59423
- return new APIPromise($do35(client$, request, options));
60426
+ return new APIPromise($do41(client$, request, options));
59424
60427
  }
59425
- async function $do35(client$, request, options) {
60428
+ async function $do41(client$, request, options) {
59426
60429
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
59427
60430
  if (!parsed$.ok) {
59428
60431
  return [parsed$, { status: "invalid" }];
@@ -59498,12 +60501,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
59498
60501
  });
59499
60502
 
59500
60503
  // src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
59501
- var args29, tool$promptsV2PromptTopicsUpdate;
60504
+ var args34, tool$promptsV2PromptTopicsUpdate;
59502
60505
  var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
59503
60506
  init_promptsV2PromptTopicsUpdate();
59504
60507
  init_v2prompttopicsupdateop();
59505
60508
  init_tools();
59506
- args29 = {
60509
+ args34 = {
59507
60510
  request: V2PromptTopicsUpdateRequest$zodSchema
59508
60511
  };
59509
60512
  tool$promptsV2PromptTopicsUpdate = {
@@ -59518,7 +60521,7 @@ Renames a prompt topic and returns the updated topic.`,
59518
60521
  openWorldHint: false,
59519
60522
  readOnlyHint: false
59520
60523
  },
59521
- args: args29,
60524
+ args: args34,
59522
60525
  tool: async (client, args, ctx) => {
59523
60526
  const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59524
60527
  if (!result.ok) {
@@ -59561,9 +60564,9 @@ var init_createv2repositoryrequest = __esm(() => {
59561
60564
 
59562
60565
  // src/funcs/repositoriesV2RepositoriesCreate.ts
59563
60566
  function repositoriesV2RepositoriesCreate(client$, request, options) {
59564
- return new APIPromise($do36(client$, request, options));
60567
+ return new APIPromise($do42(client$, request, options));
59565
60568
  }
59566
- async function $do36(client$, request, options) {
60569
+ async function $do42(client$, request, options) {
59567
60570
  const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
59568
60571
  if (!parsed$.ok) {
59569
60572
  return [parsed$, { status: "invalid" }];
@@ -59633,12 +60636,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
59633
60636
  });
59634
60637
 
59635
60638
  // src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
59636
- var args30, tool$repositoriesV2RepositoriesCreate;
60639
+ var args35, tool$repositoriesV2RepositoriesCreate;
59637
60640
  var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
59638
60641
  init_repositoriesV2RepositoriesCreate();
59639
60642
  init_createv2repositoryrequest();
59640
60643
  init_tools();
59641
- args30 = {
60644
+ args35 = {
59642
60645
  request: CreateV2RepositoryRequest$zodSchema
59643
60646
  };
59644
60647
  tool$repositoriesV2RepositoriesCreate = {
@@ -59653,7 +60656,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
59653
60656
  openWorldHint: false,
59654
60657
  readOnlyHint: false
59655
60658
  },
59656
- args: args30,
60659
+ args: args35,
59657
60660
  tool: async (client, args, ctx) => {
59658
60661
  const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59659
60662
  if (!result.ok) {
@@ -59719,9 +60722,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
59719
60722
 
59720
60723
  // src/funcs/repositoriesV2RepositoriesDelete.ts
59721
60724
  function repositoriesV2RepositoriesDelete(client$, request, options) {
59722
- return new APIPromise($do37(client$, request, options));
60725
+ return new APIPromise($do43(client$, request, options));
59723
60726
  }
59724
- async function $do37(client$, request, options) {
60727
+ async function $do43(client$, request, options) {
59725
60728
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59726
60729
  if (!parsed$.ok) {
59727
60730
  return [parsed$, { status: "invalid" }];
@@ -59796,12 +60799,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
59796
60799
  });
59797
60800
 
59798
60801
  // src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
59799
- var args31, tool$repositoriesV2RepositoriesDelete;
60802
+ var args36, tool$repositoriesV2RepositoriesDelete;
59800
60803
  var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
59801
60804
  init_repositoriesV2RepositoriesDelete();
59802
60805
  init_v2repositoriesdeleteop();
59803
60806
  init_tools();
59804
- args31 = {
60807
+ args36 = {
59805
60808
  request: V2RepositoriesDeleteRequest$zodSchema
59806
60809
  };
59807
60810
  tool$repositoriesV2RepositoriesDelete = {
@@ -59816,7 +60819,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
59816
60819
  openWorldHint: false,
59817
60820
  readOnlyHint: false
59818
60821
  },
59819
- args: args31,
60822
+ args: args36,
59820
60823
  tool: async (client, args, ctx) => {
59821
60824
  const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59822
60825
  if (!result.ok) {
@@ -59832,9 +60835,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
59832
60835
 
59833
60836
  // src/funcs/repositoriesV2RepositoriesList.ts
59834
60837
  function repositoriesV2RepositoriesList(client$, options) {
59835
- return new APIPromise($do38(client$, options));
60838
+ return new APIPromise($do44(client$, options));
59836
60839
  }
59837
- async function $do38(client$, options) {
60840
+ async function $do44(client$, options) {
59838
60841
  const path$ = pathToFunc("/v2/repositories")();
59839
60842
  const headers$ = new Headers(compactMap({
59840
60843
  Accept: "application/json"
@@ -59939,9 +60942,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
59939
60942
 
59940
60943
  // src/funcs/repositoriesV2RepositoriesRetrieve.ts
59941
60944
  function repositoriesV2RepositoriesRetrieve(client$, request, options) {
59942
- return new APIPromise($do39(client$, request, options));
60945
+ return new APIPromise($do45(client$, request, options));
59943
60946
  }
59944
- async function $do39(client$, request, options) {
60947
+ async function $do45(client$, request, options) {
59945
60948
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59946
60949
  if (!parsed$.ok) {
59947
60950
  return [parsed$, { status: "invalid" }];
@@ -60016,12 +61019,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
60016
61019
  });
60017
61020
 
60018
61021
  // src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
60019
- var args32, tool$repositoriesV2RepositoriesRetrieve;
61022
+ var args37, tool$repositoriesV2RepositoriesRetrieve;
60020
61023
  var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
60021
61024
  init_repositoriesV2RepositoriesRetrieve();
60022
61025
  init_v2repositoriesretrieveop();
60023
61026
  init_tools();
60024
- args32 = {
61027
+ args37 = {
60025
61028
  request: V2RepositoriesRetrieveRequest$zodSchema
60026
61029
  };
60027
61030
  tool$repositoriesV2RepositoriesRetrieve = {
@@ -60036,7 +61039,7 @@ Returns one reusable repository workspace.`,
60036
61039
  openWorldHint: false,
60037
61040
  readOnlyHint: true
60038
61041
  },
60039
- args: args32,
61042
+ args: args37,
60040
61043
  tool: async (client, args, ctx) => {
60041
61044
  const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60042
61045
  if (!result.ok) {
@@ -60096,9 +61099,9 @@ var init_v2repositoriesupdateop = __esm(() => {
60096
61099
 
60097
61100
  // src/funcs/repositoriesV2RepositoriesUpdate.ts
60098
61101
  function repositoriesV2RepositoriesUpdate(client$, request, options) {
60099
- return new APIPromise($do40(client$, request, options));
61102
+ return new APIPromise($do46(client$, request, options));
60100
61103
  }
60101
- async function $do40(client$, request, options) {
61104
+ async function $do46(client$, request, options) {
60102
61105
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
60103
61106
  if (!parsed$.ok) {
60104
61107
  return [parsed$, { status: "invalid" }];
@@ -60174,12 +61177,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
60174
61177
  });
60175
61178
 
60176
61179
  // src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
60177
- var args33, tool$repositoriesV2RepositoriesUpdate;
61180
+ var args38, tool$repositoriesV2RepositoriesUpdate;
60178
61181
  var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
60179
61182
  init_repositoriesV2RepositoriesUpdate();
60180
61183
  init_v2repositoriesupdateop();
60181
61184
  init_tools();
60182
- args33 = {
61185
+ args38 = {
60183
61186
  request: V2RepositoriesUpdateRequest$zodSchema
60184
61187
  };
60185
61188
  tool$repositoriesV2RepositoriesUpdate = {
@@ -60194,7 +61197,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
60194
61197
  openWorldHint: false,
60195
61198
  readOnlyHint: false
60196
61199
  },
60197
- args: args33,
61200
+ args: args38,
60198
61201
  tool: async (client, args, ctx) => {
60199
61202
  const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60200
61203
  if (!result.ok) {
@@ -60210,9 +61213,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
60210
61213
 
60211
61214
  // src/funcs/siteAuditsV2SiteAuditsList.ts
60212
61215
  function siteAuditsV2SiteAuditsList(client$, options) {
60213
- return new APIPromise($do41(client$, options));
61216
+ return new APIPromise($do47(client$, options));
60214
61217
  }
60215
- async function $do41(client$, options) {
61218
+ async function $do47(client$, options) {
60216
61219
  const path$ = pathToFunc("/v2/site-audits")();
60217
61220
  const headers$ = new Headers(compactMap({
60218
61221
  Accept: "application/json"
@@ -60353,9 +61356,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
60353
61356
 
60354
61357
  // src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
60355
61358
  function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
60356
- return new APIPromise($do42(client$, request, options));
61359
+ return new APIPromise($do48(client$, request, options));
60357
61360
  }
60358
- async function $do42(client$, request, options) {
61361
+ async function $do48(client$, request, options) {
60359
61362
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60360
61363
  if (!parsed$.ok) {
60361
61364
  return [parsed$, { status: "invalid" }];
@@ -60430,12 +61433,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
60430
61433
  });
60431
61434
 
60432
61435
  // src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
60433
- var args34, tool$siteAuditsV2SiteAuditsRetrieve;
61436
+ var args39, tool$siteAuditsV2SiteAuditsRetrieve;
60434
61437
  var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
60435
61438
  init_siteAuditsV2SiteAuditsRetrieve();
60436
61439
  init_v2siteauditsretrieveop();
60437
61440
  init_tools();
60438
- args34 = {
61441
+ args39 = {
60439
61442
  request: V2SiteAuditsRetrieveRequest$zodSchema
60440
61443
  };
60441
61444
  tool$siteAuditsV2SiteAuditsRetrieve = {
@@ -60450,7 +61453,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
60450
61453
  openWorldHint: false,
60451
61454
  readOnlyHint: true
60452
61455
  },
60453
- args: args34,
61456
+ args: args39,
60454
61457
  tool: async (client, args, ctx) => {
60455
61458
  const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60456
61459
  if (!result.ok) {
@@ -60466,9 +61469,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
60466
61469
 
60467
61470
  // src/funcs/skillsV2SkillsList.ts
60468
61471
  function skillsV2SkillsList(client$, options) {
60469
- return new APIPromise($do43(client$, options));
61472
+ return new APIPromise($do49(client$, options));
60470
61473
  }
60471
- async function $do43(client$, options) {
61474
+ async function $do49(client$, options) {
60472
61475
  const path$ = pathToFunc("/v2/skills")();
60473
61476
  const headers$ = new Headers(compactMap({
60474
61477
  Accept: "application/json"
@@ -60558,9 +61561,9 @@ Returns reusable skills available to workflows and eval configurations.`,
60558
61561
 
60559
61562
  // src/funcs/statusV2AuthStatusGet.ts
60560
61563
  function statusV2AuthStatusGet(client$, options) {
60561
- return new APIPromise($do44(client$, options));
61564
+ return new APIPromise($do50(client$, options));
60562
61565
  }
60563
- async function $do44(client$, options) {
61566
+ async function $do50(client$, options) {
60564
61567
  const path$ = pathToFunc("/v2/auth/status")();
60565
61568
  const headers$ = new Headers(compactMap({
60566
61569
  Accept: "application/json"
@@ -60650,9 +61653,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
60650
61653
 
60651
61654
  // src/funcs/statusV2StatusGet.ts
60652
61655
  function statusV2StatusGet(client$, options) {
60653
- return new APIPromise($do45(client$, options));
61656
+ return new APIPromise($do51(client$, options));
60654
61657
  }
60655
- async function $do45(client$, options) {
61658
+ async function $do51(client$, options) {
60656
61659
  const path$ = pathToFunc("/v2/status")();
60657
61660
  const headers$ = new Headers(compactMap({
60658
61661
  Accept: "application/json"
@@ -60872,9 +61875,9 @@ var init_v2taskslistop = __esm(() => {
60872
61875
 
60873
61876
  // src/funcs/tasksV2TasksList.ts
60874
61877
  function tasksV2TasksList(client$, request, options) {
60875
- return new APIPromise($do46(client$, request, options));
61878
+ return new APIPromise($do52(client$, request, options));
60876
61879
  }
60877
- async function $do46(client$, request, options) {
61880
+ async function $do52(client$, request, options) {
60878
61881
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
60879
61882
  if (!parsed$.ok) {
60880
61883
  return [parsed$, { status: "invalid" }];
@@ -60948,12 +61951,12 @@ var init_tasksV2TasksList = __esm(() => {
60948
61951
  });
60949
61952
 
60950
61953
  // src/mcp-server/tools/tasksV2TasksList.ts
60951
- var args35, tool$tasksV2TasksList;
61954
+ var args40, tool$tasksV2TasksList;
60952
61955
  var init_tasksV2TasksList2 = __esm(() => {
60953
61956
  init_tasksV2TasksList();
60954
61957
  init_v2taskslistop();
60955
61958
  init_tools();
60956
- args35 = {
61959
+ args40 = {
60957
61960
  request: V2TasksListRequest$zodSchema.optional()
60958
61961
  };
60959
61962
  tool$tasksV2TasksList = {
@@ -60968,7 +61971,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
60968
61971
  openWorldHint: false,
60969
61972
  readOnlyHint: true
60970
61973
  },
60971
- args: args35,
61974
+ args: args40,
60972
61975
  tool: async (client, args, ctx) => {
60973
61976
  const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60974
61977
  if (!result.ok) {
@@ -60999,9 +62002,9 @@ var init_v2tasksretrieveop = __esm(() => {
60999
62002
 
61000
62003
  // src/funcs/tasksV2TasksRetrieve.ts
61001
62004
  function tasksV2TasksRetrieve(client$, request, options) {
61002
- return new APIPromise($do47(client$, request, options));
62005
+ return new APIPromise($do53(client$, request, options));
61003
62006
  }
61004
- async function $do47(client$, request, options) {
62007
+ async function $do53(client$, request, options) {
61005
62008
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61006
62009
  if (!parsed$.ok) {
61007
62010
  return [parsed$, { status: "invalid" }];
@@ -61076,12 +62079,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
61076
62079
  });
61077
62080
 
61078
62081
  // src/mcp-server/tools/tasksV2TasksRetrieve.ts
61079
- var args36, tool$tasksV2TasksRetrieve;
62082
+ var args41, tool$tasksV2TasksRetrieve;
61080
62083
  var init_tasksV2TasksRetrieve2 = __esm(() => {
61081
62084
  init_tasksV2TasksRetrieve();
61082
62085
  init_v2tasksretrieveop();
61083
62086
  init_tools();
61084
- args36 = {
62087
+ args41 = {
61085
62088
  request: V2TasksRetrieveRequest$zodSchema
61086
62089
  };
61087
62090
  tool$tasksV2TasksRetrieve = {
@@ -61096,7 +62099,7 @@ Returns one persisted task and its execution prompt.`,
61096
62099
  openWorldHint: false,
61097
62100
  readOnlyHint: true
61098
62101
  },
61099
- args: args36,
62102
+ args: args41,
61100
62103
  tool: async (client, args, ctx) => {
61101
62104
  const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61102
62105
  if (!result.ok) {
@@ -61159,9 +62162,9 @@ var init_v2tasksupdateop = __esm(() => {
61159
62162
 
61160
62163
  // src/funcs/tasksV2TasksUpdate.ts
61161
62164
  function tasksV2TasksUpdate(client$, request, options) {
61162
- return new APIPromise($do48(client$, request, options));
62165
+ return new APIPromise($do54(client$, request, options));
61163
62166
  }
61164
- async function $do48(client$, request, options) {
62167
+ async function $do54(client$, request, options) {
61165
62168
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
61166
62169
  if (!parsed$.ok) {
61167
62170
  return [parsed$, { status: "invalid" }];
@@ -61237,12 +62240,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
61237
62240
  });
61238
62241
 
61239
62242
  // src/mcp-server/tools/tasksV2TasksUpdate.ts
61240
- var args37, tool$tasksV2TasksUpdate;
62243
+ var args42, tool$tasksV2TasksUpdate;
61241
62244
  var init_tasksV2TasksUpdate2 = __esm(() => {
61242
62245
  init_tasksV2TasksUpdate();
61243
62246
  init_v2tasksupdateop();
61244
62247
  init_tools();
61245
- args37 = {
62248
+ args42 = {
61246
62249
  request: V2TasksUpdateRequest$zodSchema
61247
62250
  };
61248
62251
  tool$tasksV2TasksUpdate = {
@@ -61257,7 +62260,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
61257
62260
  openWorldHint: false,
61258
62261
  readOnlyHint: false
61259
62262
  },
61260
- args: args37,
62263
+ args: args42,
61261
62264
  tool: async (client, args, ctx) => {
61262
62265
  const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61263
62266
  if (!result.ok) {
@@ -61345,9 +62348,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
61345
62348
 
61346
62349
  // src/funcs/visibilityV2VisibilityCitationsList.ts
61347
62350
  function visibilityV2VisibilityCitationsList(client$, request, options) {
61348
- return new APIPromise($do49(client$, request, options));
62351
+ return new APIPromise($do55(client$, request, options));
61349
62352
  }
61350
- async function $do49(client$, request, options) {
62353
+ async function $do55(client$, request, options) {
61351
62354
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
61352
62355
  if (!parsed$.ok) {
61353
62356
  return [parsed$, { status: "invalid" }];
@@ -61424,12 +62427,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
61424
62427
  });
61425
62428
 
61426
62429
  // src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
61427
- var args38, tool$visibilityV2VisibilityCitationsList;
62430
+ var args43, tool$visibilityV2VisibilityCitationsList;
61428
62431
  var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
61429
62432
  init_visibilityV2VisibilityCitationsList();
61430
62433
  init_v2visibilitycitationslistop();
61431
62434
  init_tools();
61432
- args38 = {
62435
+ args43 = {
61433
62436
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
61434
62437
  };
61435
62438
  tool$visibilityV2VisibilityCitationsList = {
@@ -61444,7 +62447,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
61444
62447
  openWorldHint: false,
61445
62448
  readOnlyHint: true
61446
62449
  },
61447
- args: args38,
62450
+ args: args43,
61448
62451
  tool: async (client, args, ctx) => {
61449
62452
  const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61450
62453
  if (!result.ok) {
@@ -61509,9 +62512,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
61509
62512
 
61510
62513
  // src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
61511
62514
  function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
61512
- return new APIPromise($do50(client$, request, options));
62515
+ return new APIPromise($do56(client$, request, options));
61513
62516
  }
61514
- async function $do50(client$, request, options) {
62517
+ async function $do56(client$, request, options) {
61515
62518
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61516
62519
  if (!parsed$.ok) {
61517
62520
  return [parsed$, { status: "invalid" }];
@@ -61585,12 +62588,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
61585
62588
  });
61586
62589
 
61587
62590
  // src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
61588
- var args39, tool$visibilityV2VisibilityCurrentRetrieve;
62591
+ var args44, tool$visibilityV2VisibilityCurrentRetrieve;
61589
62592
  var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
61590
62593
  init_visibilityV2VisibilityCurrentRetrieve();
61591
62594
  init_v2visibilitycurrentretrieveop();
61592
62595
  init_tools();
61593
- args39 = {
62596
+ args44 = {
61594
62597
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
61595
62598
  };
61596
62599
  tool$visibilityV2VisibilityCurrentRetrieve = {
@@ -61605,7 +62608,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
61605
62608
  openWorldHint: false,
61606
62609
  readOnlyHint: true
61607
62610
  },
61608
- args: args39,
62611
+ args: args44,
61609
62612
  tool: async (client, args, ctx) => {
61610
62613
  const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61611
62614
  if (!result.ok) {
@@ -61748,9 +62751,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
61748
62751
 
61749
62752
  // src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
61750
62753
  function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
61751
- return new APIPromise($do51(client$, request, options));
62754
+ return new APIPromise($do57(client$, request, options));
61752
62755
  }
61753
- async function $do51(client$, request, options) {
62756
+ async function $do57(client$, request, options) {
61754
62757
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61755
62758
  if (!parsed$.ok) {
61756
62759
  return [parsed$, { status: "invalid" }];
@@ -61824,12 +62827,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
61824
62827
  });
61825
62828
 
61826
62829
  // src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
61827
- var args40, tool$visibilityV2VisibilityOverviewRetrieve;
62830
+ var args45, tool$visibilityV2VisibilityOverviewRetrieve;
61828
62831
  var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
61829
62832
  init_visibilityV2VisibilityOverviewRetrieve();
61830
62833
  init_v2visibilityoverviewretrieveop();
61831
62834
  init_tools();
61832
- args40 = {
62835
+ args45 = {
61833
62836
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
61834
62837
  };
61835
62838
  tool$visibilityV2VisibilityOverviewRetrieve = {
@@ -61844,7 +62847,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
61844
62847
  openWorldHint: false,
61845
62848
  readOnlyHint: true
61846
62849
  },
61847
- args: args40,
62850
+ args: args45,
61848
62851
  tool: async (client, args, ctx) => {
61849
62852
  const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61850
62853
  if (!result.ok) {
@@ -61958,9 +62961,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
61958
62961
 
61959
62962
  // src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
61960
62963
  function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
61961
- return new APIPromise($do52(client$, request, options));
62964
+ return new APIPromise($do58(client$, request, options));
61962
62965
  }
61963
- async function $do52(client$, request, options) {
62966
+ async function $do58(client$, request, options) {
61964
62967
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61965
62968
  if (!parsed$.ok) {
61966
62969
  return [parsed$, { status: "invalid" }];
@@ -62034,12 +63037,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
62034
63037
  });
62035
63038
 
62036
63039
  // src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
62037
- var args41, tool$visibilityV2VisibilityPromptsRetrieve;
63040
+ var args46, tool$visibilityV2VisibilityPromptsRetrieve;
62038
63041
  var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
62039
63042
  init_visibilityV2VisibilityPromptsRetrieve();
62040
63043
  init_v2visibilitypromptsretrieveop();
62041
63044
  init_tools();
62042
- args41 = {
63045
+ args46 = {
62043
63046
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
62044
63047
  };
62045
63048
  tool$visibilityV2VisibilityPromptsRetrieve = {
@@ -62054,7 +63057,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
62054
63057
  openWorldHint: false,
62055
63058
  readOnlyHint: true
62056
63059
  },
62057
- args: args41,
63060
+ args: args46,
62058
63061
  tool: async (client, args, ctx) => {
62059
63062
  const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62060
63063
  if (!result.ok) {
@@ -62078,7 +63081,7 @@ function createMCPServer(deps) {
62078
63081
  sizes: ["any"]
62079
63082
  }],
62080
63083
  name: "LightsageMcp",
62081
- version: "0.4.0"
63084
+ version: "0.4.2"
62082
63085
  });
62083
63086
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
62084
63087
  security: deps.security,
@@ -62126,6 +63129,7 @@ function createMCPServer(deps) {
62126
63129
  tool(tool$siteAuditsV2SiteAuditsRetrieve);
62127
63130
  tool(tool$evalsV2EvalsList);
62128
63131
  tool(tool$evalsV2EvalsCreate);
63132
+ tool(tool$evalsV2EvalsBatchCreate);
62129
63133
  tool(tool$evalsV2EvalsRetrieve);
62130
63134
  tool(tool$evalsV2EvalsUpdate);
62131
63135
  tool(tool$evalsV2EvalsDelete);
@@ -62138,6 +63142,11 @@ function createMCPServer(deps) {
62138
63142
  tool(tool$evalsCancel);
62139
63143
  tool(tool$evalsTrace);
62140
63144
  tool(tool$evalsGet);
63145
+ tool(tool$evalTemplatesV2EvalTemplatesList);
63146
+ tool(tool$evalTemplatesV2EvalTemplatesCreate);
63147
+ tool(tool$evalTemplatesV2EvalTemplatesRetrieve);
63148
+ tool(tool$evalTemplatesV2EvalTemplatesUpdate);
63149
+ tool(tool$evalTemplatesV2EvalTemplatesDelete);
62141
63150
  tool(tool$evalRunsV2EvalRunsList);
62142
63151
  tool(tool$agentsV2AgentsList);
62143
63152
  tool(tool$repositoriesV2RepositoriesList);
@@ -62175,11 +63184,17 @@ var init_server2 = __esm(() => {
62175
63184
  init_evalsV2EvalConfigurationsList2();
62176
63185
  init_evalsV2EvalConfigurationsRetrieve2();
62177
63186
  init_evalsV2EvalConfigurationsUpdate2();
63187
+ init_evalsV2EvalsBatchCreate2();
62178
63188
  init_evalsV2EvalsCreate2();
62179
63189
  init_evalsV2EvalsDelete2();
62180
63190
  init_evalsV2EvalsList2();
62181
63191
  init_evalsV2EvalsRetrieve2();
62182
63192
  init_evalsV2EvalsUpdate2();
63193
+ init_evalTemplatesV2EvalTemplatesCreate2();
63194
+ init_evalTemplatesV2EvalTemplatesDelete2();
63195
+ init_evalTemplatesV2EvalTemplatesList2();
63196
+ init_evalTemplatesV2EvalTemplatesRetrieve2();
63197
+ init_evalTemplatesV2EvalTemplatesUpdate2();
62183
63198
  init_mcpServersV2MCPServersList2();
62184
63199
  init_opportunitiesV2OpportunitiesList2();
62185
63200
  init_opportunitiesV2OpportunitiesRetrieve2();
@@ -62297,13 +63312,13 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
62297
63312
  name: "prompts-v2-prompts-retrieve",
62298
63313
  description: `Retrieve Prompt
62299
63314
 
62300
- Returns a prompt with its topic, platforms, tags, and lifecycle status.`
63315
+ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-agent run settings.`
62301
63316
  },
62302
63317
  {
62303
63318
  name: "prompts-v2-prompts-update",
62304
63319
  description: `Update Prompt
62305
63320
 
62306
- Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields remain unchanged.`
63321
+ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run settings. Omitted fields remain unchanged.`
62307
63322
  },
62308
63323
  {
62309
63324
  name: "prompts-v2-prompts-delete",
@@ -62377,6 +63392,10 @@ Returns all active eval definitions owned by the organization.`
62377
63392
  name: "evals-v2-evals-create",
62378
63393
  description: "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values."
62379
63394
  },
63395
+ {
63396
+ name: "evals-v2-evals-batch-create",
63397
+ description: "Create evals from a template\n\nStep 2 of the reusable template workflow. Provide the `id` and `version` returned by `POST /v2/eval-templates` as `template_id` and `expected_template_version`, then provide only prompt-specific fields in `evals`. The template supplies only the settings named in its `included_components`; omitted settings keep the values supplied by the creation workflow or its defaults. Included values are copied at creation time, so later template changes do not alter the created evals. Competitor selections create one additional eval per selected competitor for every input item, and the response groups each base eval with those variants. Brand-scoped runtime resources are validated against the organization's primary brand before any eval is created."
63398
+ },
62380
63399
  {
62381
63400
  name: "evals-v2-evals-retrieve",
62382
63401
  description: `Retrieve Eval
@@ -62442,6 +63461,32 @@ Marks an active eval run as cancelled and prevents queued attempts from starting
62442
63461
  description: `Retrieve an eval run
62443
63462
 
62444
63463
  Returns the run's current status and progress. Once its attempts finish, the response also includes their results and analysis. Poll this until the status reaches a terminal value. Use the trace operation for the raw execution event log, or the monitor operation to follow a run live.`
63464
+ },
63465
+ {
63466
+ name: "eval-templates-v2-eval-templates-list",
63467
+ description: `List Eval templates
63468
+
63469
+ Returns active reusable Eval templates owned by the authenticated organization. Templates contain reusable configuration and never task prompts.`
63470
+ },
63471
+ {
63472
+ name: "eval-templates-v2-eval-templates-create",
63473
+ description: "Create an Eval template\n\nStep 1 of the reusable template workflow. Creates an organization-owned Eval template containing only the configuration components selected in `included_components`. Do not include task prompts in the template. The response returns the template `id` and `version`; pass them as `template_id` and `expected_template_version` to `POST /v2/evals/batch` with each eval's name and prompts. Applying a template copies its values into the new evals without creating a live link."
63474
+ },
63475
+ {
63476
+ name: "eval-templates-v2-eval-templates-retrieve",
63477
+ description: `Retrieve an Eval template
63478
+
63479
+ Returns one active reusable Eval template.`
63480
+ },
63481
+ {
63482
+ name: "eval-templates-v2-eval-templates-update",
63483
+ description: "Update an Eval template\n\nUpdates an Eval template. Supply `expected_template_version` to reject an edit based on stale data. Existing evals are never changed."
63484
+ },
63485
+ {
63486
+ name: "eval-templates-v2-eval-templates-delete",
63487
+ description: `Delete an Eval template
63488
+
63489
+ Soft-deletes an Eval template. Evals previously created from it remain independent and continue to run with their copied configuration.`
62445
63490
  },
62446
63491
  {
62447
63492
  name: "eval-runs-v2-eval-runs-list",
@@ -63411,7 +64456,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
63411
64456
  <h1>Instructions</h1>
63412
64457
  <p>One-click installation for Claude Desktop users</p>
63413
64458
  <div class="instruction-item">
63414
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.0/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
64459
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.2/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
63415
64460
  \uD83D\uDCE5 Download MCP Bundle
63416
64461
  </a>
63417
64462
  </div>
@@ -66289,7 +67334,7 @@ var routes = buildRouteMap({
66289
67334
  var app = buildApplication(routes, {
66290
67335
  name: "mcp",
66291
67336
  versionInfo: {
66292
- currentVersion: "0.4.0"
67337
+ currentVersion: "0.4.2"
66293
67338
  }
66294
67339
  });
66295
67340
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -66297,5 +67342,5 @@ export {
66297
67342
  app
66298
67343
  };
66299
67344
 
66300
- //# debugId=0CC0D115366CE4FD64756E2164756E21
67345
+ //# debugId=EB4BA033DF30A06964756E2164756E21
66301
67346
  //# sourceMappingURL=mcp-server.js.map