@lightsage/mcp 0.4.5 → 0.4.7

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 (208) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +1537 -370
  3. package/bin/mcp-server.js.map +49 -17
  4. package/esm/funcs/agentPreferenceCompetitorsList.d.ts +15 -0
  5. package/esm/funcs/agentPreferenceCompetitorsList.d.ts.map +1 -0
  6. package/esm/funcs/agentPreferenceCompetitorsList.js +72 -0
  7. package/esm/funcs/agentPreferenceCompetitorsList.js.map +1 -0
  8. package/esm/funcs/agentPreferenceEvalsCreate.d.ts +16 -0
  9. package/esm/funcs/agentPreferenceEvalsCreate.d.ts.map +1 -0
  10. package/esm/funcs/agentPreferenceEvalsCreate.js +83 -0
  11. package/esm/funcs/agentPreferenceEvalsCreate.js.map +1 -0
  12. package/esm/funcs/agentPreferenceEvalsDelete.d.ts +16 -0
  13. package/esm/funcs/agentPreferenceEvalsDelete.d.ts.map +1 -0
  14. package/esm/funcs/agentPreferenceEvalsDelete.js +88 -0
  15. package/esm/funcs/agentPreferenceEvalsDelete.js.map +1 -0
  16. package/esm/funcs/agentPreferenceEvalsList.d.ts +15 -0
  17. package/esm/funcs/agentPreferenceEvalsList.d.ts.map +1 -0
  18. package/esm/funcs/agentPreferenceEvalsList.js +72 -0
  19. package/esm/funcs/agentPreferenceEvalsList.js.map +1 -0
  20. package/esm/funcs/agentPreferenceEvalsResultsList.d.ts +16 -0
  21. package/esm/funcs/agentPreferenceEvalsResultsList.d.ts.map +1 -0
  22. package/esm/funcs/agentPreferenceEvalsResultsList.js +93 -0
  23. package/esm/funcs/agentPreferenceEvalsResultsList.js.map +1 -0
  24. package/esm/funcs/agentPreferenceEvalsRetrieve.d.ts +16 -0
  25. package/esm/funcs/agentPreferenceEvalsRetrieve.d.ts.map +1 -0
  26. package/esm/funcs/agentPreferenceEvalsRetrieve.js +88 -0
  27. package/esm/funcs/agentPreferenceEvalsRetrieve.js.map +1 -0
  28. package/esm/funcs/agentPreferenceEvalsUpdate.d.ts +16 -0
  29. package/esm/funcs/agentPreferenceEvalsUpdate.d.ts.map +1 -0
  30. package/esm/funcs/agentPreferenceEvalsUpdate.js +89 -0
  31. package/esm/funcs/agentPreferenceEvalsUpdate.js.map +1 -0
  32. package/esm/funcs/agentPreferenceHeadToHeadRetrieve.d.ts +16 -0
  33. package/esm/funcs/agentPreferenceHeadToHeadRetrieve.d.ts.map +1 -0
  34. package/esm/funcs/agentPreferenceHeadToHeadRetrieve.js +86 -0
  35. package/esm/funcs/agentPreferenceHeadToHeadRetrieve.js.map +1 -0
  36. package/esm/funcs/evalsV2EvalsList.d.ts +1 -1
  37. package/esm/funcs/evalsV2EvalsList.js +1 -1
  38. package/esm/landing-page.js +1 -1
  39. package/esm/lib/config.d.ts +2 -2
  40. package/esm/lib/config.js +2 -2
  41. package/esm/mcp-server/mcp-server.js +1 -1
  42. package/esm/mcp-server/server.d.ts.map +1 -1
  43. package/esm/mcp-server/server.js +17 -1
  44. package/esm/mcp-server/server.js.map +1 -1
  45. package/esm/mcp-server/tools/agentPreferenceCompetitorsList.d.ts +3 -0
  46. package/esm/mcp-server/tools/agentPreferenceCompetitorsList.d.ts.map +1 -0
  47. package/esm/mcp-server/tools/agentPreferenceCompetitorsList.js +30 -0
  48. package/esm/mcp-server/tools/agentPreferenceCompetitorsList.js.map +1 -0
  49. package/esm/mcp-server/tools/agentPreferenceEvalsCreate.d.ts +7 -0
  50. package/esm/mcp-server/tools/agentPreferenceEvalsCreate.d.ts.map +1 -0
  51. package/esm/mcp-server/tools/agentPreferenceEvalsCreate.js +35 -0
  52. package/esm/mcp-server/tools/agentPreferenceEvalsCreate.js.map +1 -0
  53. package/esm/mcp-server/tools/agentPreferenceEvalsDelete.d.ts +7 -0
  54. package/esm/mcp-server/tools/agentPreferenceEvalsDelete.d.ts.map +1 -0
  55. package/esm/mcp-server/tools/agentPreferenceEvalsDelete.js +35 -0
  56. package/esm/mcp-server/tools/agentPreferenceEvalsDelete.js.map +1 -0
  57. package/esm/mcp-server/tools/agentPreferenceEvalsList.d.ts +3 -0
  58. package/esm/mcp-server/tools/agentPreferenceEvalsList.d.ts.map +1 -0
  59. package/esm/mcp-server/tools/agentPreferenceEvalsList.js +30 -0
  60. package/esm/mcp-server/tools/agentPreferenceEvalsList.js.map +1 -0
  61. package/esm/mcp-server/tools/agentPreferenceEvalsResultsList.d.ts +7 -0
  62. package/esm/mcp-server/tools/agentPreferenceEvalsResultsList.d.ts.map +1 -0
  63. package/esm/mcp-server/tools/agentPreferenceEvalsResultsList.js +35 -0
  64. package/esm/mcp-server/tools/agentPreferenceEvalsResultsList.js.map +1 -0
  65. package/esm/mcp-server/tools/agentPreferenceEvalsRetrieve.d.ts +7 -0
  66. package/esm/mcp-server/tools/agentPreferenceEvalsRetrieve.d.ts.map +1 -0
  67. package/esm/mcp-server/tools/agentPreferenceEvalsRetrieve.js +35 -0
  68. package/esm/mcp-server/tools/agentPreferenceEvalsRetrieve.js.map +1 -0
  69. package/esm/mcp-server/tools/agentPreferenceEvalsUpdate.d.ts +7 -0
  70. package/esm/mcp-server/tools/agentPreferenceEvalsUpdate.d.ts.map +1 -0
  71. package/esm/mcp-server/tools/agentPreferenceEvalsUpdate.js +35 -0
  72. package/esm/mcp-server/tools/agentPreferenceEvalsUpdate.js.map +1 -0
  73. package/esm/mcp-server/tools/agentPreferenceHeadToHeadRetrieve.d.ts +7 -0
  74. package/esm/mcp-server/tools/agentPreferenceHeadToHeadRetrieve.d.ts.map +1 -0
  75. package/esm/mcp-server/tools/agentPreferenceHeadToHeadRetrieve.js +35 -0
  76. package/esm/mcp-server/tools/agentPreferenceHeadToHeadRetrieve.js.map +1 -0
  77. package/esm/mcp-server/tools/evalsV2EvalsList.js +1 -1
  78. package/esm/mcp-server/tools/evalsV2EvalsList.js.map +1 -1
  79. package/esm/models/createevaltemplaterequest.d.ts +1 -1
  80. package/esm/models/createv2agentpreferenceevalrequest.d.ts +14 -0
  81. package/esm/models/createv2agentpreferenceevalrequest.d.ts.map +1 -0
  82. package/esm/models/createv2agentpreferenceevalrequest.js +17 -0
  83. package/esm/models/createv2agentpreferenceevalrequest.js.map +1 -0
  84. package/esm/models/evaltemplate.d.ts +1 -1
  85. package/esm/models/updateevaltemplaterequest.d.ts +1 -1
  86. package/esm/models/updatev2agentpreferenceevalrequest.d.ts +13 -0
  87. package/esm/models/updatev2agentpreferenceevalrequest.d.ts.map +1 -0
  88. package/esm/models/updatev2agentpreferenceevalrequest.js +16 -0
  89. package/esm/models/updatev2agentpreferenceevalrequest.js.map +1 -0
  90. package/esm/models/v2agentpreferencecompany.d.ts +7 -0
  91. package/esm/models/v2agentpreferencecompany.d.ts.map +1 -0
  92. package/esm/models/v2agentpreferencecompany.js +10 -0
  93. package/esm/models/v2agentpreferencecompany.js.map +1 -0
  94. package/esm/models/v2agentpreferencecompetitor.d.ts +9 -0
  95. package/esm/models/v2agentpreferencecompetitor.d.ts.map +1 -0
  96. package/esm/models/v2agentpreferencecompetitor.js +12 -0
  97. package/esm/models/v2agentpreferencecompetitor.js.map +1 -0
  98. package/esm/models/v2agentpreferencecompetitorsresponse.d.ts +8 -0
  99. package/esm/models/v2agentpreferencecompetitorsresponse.d.ts.map +1 -0
  100. package/esm/models/v2agentpreferencecompetitorsresponse.js +11 -0
  101. package/esm/models/v2agentpreferencecompetitorsresponse.js.map +1 -0
  102. package/esm/models/v2agentpreferenceeval.d.ts +19 -0
  103. package/esm/models/v2agentpreferenceeval.d.ts.map +1 -0
  104. package/esm/models/v2agentpreferenceeval.js +23 -0
  105. package/esm/models/v2agentpreferenceeval.js.map +1 -0
  106. package/esm/models/v2agentpreferenceevalscreateop.d.ts +6 -0
  107. package/esm/models/v2agentpreferenceevalscreateop.d.ts.map +1 -0
  108. package/esm/models/v2agentpreferenceevalscreateop.js +12 -0
  109. package/esm/models/v2agentpreferenceevalscreateop.js.map +1 -0
  110. package/esm/models/v2agentpreferenceevalsdeleteop.d.ts +10 -0
  111. package/esm/models/v2agentpreferenceevalsdeleteop.d.ts.map +1 -0
  112. package/esm/models/v2agentpreferenceevalsdeleteop.js +15 -0
  113. package/esm/models/v2agentpreferenceevalsdeleteop.js.map +1 -0
  114. package/esm/models/v2agentpreferenceevalsresponse.d.ts +8 -0
  115. package/esm/models/v2agentpreferenceevalsresponse.d.ts.map +1 -0
  116. package/esm/models/v2agentpreferenceevalsresponse.js +11 -0
  117. package/esm/models/v2agentpreferenceevalsresponse.js.map +1 -0
  118. package/esm/models/v2agentpreferenceevalsretrieveop.d.ts +10 -0
  119. package/esm/models/v2agentpreferenceevalsretrieveop.d.ts.map +1 -0
  120. package/esm/models/v2agentpreferenceevalsretrieveop.js +15 -0
  121. package/esm/models/v2agentpreferenceevalsretrieveop.js.map +1 -0
  122. package/esm/models/v2agentpreferenceevalsupdateop.d.ts +12 -0
  123. package/esm/models/v2agentpreferenceevalsupdateop.d.ts.map +1 -0
  124. package/esm/models/v2agentpreferenceevalsupdateop.js +17 -0
  125. package/esm/models/v2agentpreferenceevalsupdateop.js.map +1 -0
  126. package/esm/models/v2agentpreferenceheadtoheadresponse.d.ts +15 -0
  127. package/esm/models/v2agentpreferenceheadtoheadresponse.d.ts.map +1 -0
  128. package/esm/models/v2agentpreferenceheadtoheadresponse.js +18 -0
  129. package/esm/models/v2agentpreferenceheadtoheadresponse.js.map +1 -0
  130. package/esm/models/v2agentpreferenceheadtoheadretrieveop.d.ts +10 -0
  131. package/esm/models/v2agentpreferenceheadtoheadretrieveop.d.ts.map +1 -0
  132. package/esm/models/v2agentpreferenceheadtoheadretrieveop.js +15 -0
  133. package/esm/models/v2agentpreferenceheadtoheadretrieveop.js.map +1 -0
  134. package/esm/models/v2agentpreferencematchup.d.ts +14 -0
  135. package/esm/models/v2agentpreferencematchup.d.ts.map +1 -0
  136. package/esm/models/v2agentpreferencematchup.js +17 -0
  137. package/esm/models/v2agentpreferencematchup.js.map +1 -0
  138. package/esm/models/v2agentpreferencerecord.d.ts +10 -0
  139. package/esm/models/v2agentpreferencerecord.d.ts.map +1 -0
  140. package/esm/models/v2agentpreferencerecord.js +13 -0
  141. package/esm/models/v2agentpreferencerecord.js.map +1 -0
  142. package/esm/models/v2agentpreferenceresult.d.ts +12 -0
  143. package/esm/models/v2agentpreferenceresult.d.ts.map +1 -0
  144. package/esm/models/v2agentpreferenceresult.js +16 -0
  145. package/esm/models/v2agentpreferenceresult.js.map +1 -0
  146. package/esm/models/v2agentpreferenceresultslistop.d.ts +12 -0
  147. package/esm/models/v2agentpreferenceresultslistop.d.ts.map +1 -0
  148. package/esm/models/v2agentpreferenceresultslistop.js +17 -0
  149. package/esm/models/v2agentpreferenceresultslistop.js.map +1 -0
  150. package/esm/models/v2agentpreferenceresultsresponse.d.ts +11 -0
  151. package/esm/models/v2agentpreferenceresultsresponse.d.ts.map +1 -0
  152. package/esm/models/v2agentpreferenceresultsresponse.js +14 -0
  153. package/esm/models/v2agentpreferenceresultsresponse.js.map +1 -0
  154. package/esm/models/v2evalresultsummary.d.ts +2 -0
  155. package/esm/models/v2evalresultsummary.d.ts.map +1 -1
  156. package/esm/models/v2evalresultsummary.js +3 -0
  157. package/esm/models/v2evalresultsummary.js.map +1 -1
  158. package/esm/models/v2preferenceresult.d.ts +30 -0
  159. package/esm/models/v2preferenceresult.d.ts.map +1 -0
  160. package/esm/models/v2preferenceresult.js +26 -0
  161. package/esm/models/v2preferenceresult.js.map +1 -0
  162. package/esm/tool-names.d.ts.map +1 -1
  163. package/esm/tool-names.js +33 -1
  164. package/esm/tool-names.js.map +1 -1
  165. package/package.json +1 -1
  166. package/src/funcs/agentPreferenceCompetitorsList.ts +124 -0
  167. package/src/funcs/agentPreferenceEvalsCreate.ts +145 -0
  168. package/src/funcs/agentPreferenceEvalsDelete.ts +153 -0
  169. package/src/funcs/agentPreferenceEvalsList.ts +124 -0
  170. package/src/funcs/agentPreferenceEvalsResultsList.ts +158 -0
  171. package/src/funcs/agentPreferenceEvalsRetrieve.ts +153 -0
  172. package/src/funcs/agentPreferenceEvalsUpdate.ts +154 -0
  173. package/src/funcs/agentPreferenceHeadToHeadRetrieve.ts +151 -0
  174. package/src/funcs/evalsV2EvalsList.ts +1 -1
  175. package/src/landing-page.ts +1 -1
  176. package/src/lib/config.ts +2 -2
  177. package/src/mcp-server/mcp-server.ts +1 -1
  178. package/src/mcp-server/server.ts +17 -1
  179. package/src/mcp-server/tools/agentPreferenceCompetitorsList.ts +36 -0
  180. package/src/mcp-server/tools/agentPreferenceEvalsCreate.ts +43 -0
  181. package/src/mcp-server/tools/agentPreferenceEvalsDelete.ts +43 -0
  182. package/src/mcp-server/tools/agentPreferenceEvalsList.ts +36 -0
  183. package/src/mcp-server/tools/agentPreferenceEvalsResultsList.ts +44 -0
  184. package/src/mcp-server/tools/agentPreferenceEvalsRetrieve.ts +43 -0
  185. package/src/mcp-server/tools/agentPreferenceEvalsUpdate.ts +43 -0
  186. package/src/mcp-server/tools/agentPreferenceHeadToHeadRetrieve.ts +45 -0
  187. package/src/mcp-server/tools/evalsV2EvalsList.ts +1 -1
  188. package/src/models/createv2agentpreferenceevalrequest.ts +48 -0
  189. package/src/models/updatev2agentpreferenceevalrequest.ts +38 -0
  190. package/src/models/v2agentpreferencecompany.ts +18 -0
  191. package/src/models/v2agentpreferencecompetitor.ts +22 -0
  192. package/src/models/v2agentpreferencecompetitorsresponse.ts +22 -0
  193. package/src/models/v2agentpreferenceeval.ts +54 -0
  194. package/src/models/v2agentpreferenceevalscreateop.ts +25 -0
  195. package/src/models/v2agentpreferenceevalsdeleteop.ts +33 -0
  196. package/src/models/v2agentpreferenceevalsresponse.ts +22 -0
  197. package/src/models/v2agentpreferenceevalsretrieveop.ts +33 -0
  198. package/src/models/v2agentpreferenceevalsupdateop.ts +41 -0
  199. package/src/models/v2agentpreferenceheadtoheadresponse.ts +46 -0
  200. package/src/models/v2agentpreferenceheadtoheadretrieveop.ts +37 -0
  201. package/src/models/v2agentpreferencematchup.ts +42 -0
  202. package/src/models/v2agentpreferencerecord.ts +30 -0
  203. package/src/models/v2agentpreferenceresult.ts +35 -0
  204. package/src/models/v2agentpreferenceresultslistop.ts +39 -0
  205. package/src/models/v2agentpreferenceresultsresponse.ts +28 -0
  206. package/src/models/v2evalresultsummary.ts +9 -0
  207. package/src/models/v2preferenceresult.ts +50 -0
  208. package/src/tool-names.ts +33 -1
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.5",
52847
+ sdkVersion: "0.4.7",
52848
52848
  genVersion: "2.943.0",
52849
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.5 2.943.0 1.0.0 @lightsage/mcp"
52849
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.7 2.943.0 1.0.0 @lightsage/mcp"
52850
52850
  };
52851
52851
  });
52852
52852
 
@@ -54265,11 +54265,1233 @@ var init_async = __esm(() => {
54265
54265
  };
54266
54266
  });
54267
54267
 
54268
+ // src/funcs/agentPreferenceCompetitorsList.ts
54269
+ function agentPreferenceCompetitorsList(client$, options) {
54270
+ return new APIPromise($do(client$, options));
54271
+ }
54272
+ async function $do(client$, options) {
54273
+ const path$ = pathToFunc("/v2/agent-preference/competitors")();
54274
+ const headers$ = new Headers(compactMap({
54275
+ Accept: "application/json"
54276
+ }));
54277
+ const securityInput = await extractSecurity(client$._options.security);
54278
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54279
+ const context = {
54280
+ options: client$._options,
54281
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54282
+ operationID: "v2_agent_preference_competitors_list",
54283
+ oAuth2Scopes: null,
54284
+ resolvedSecurity: requestSecurity,
54285
+ securitySource: client$._options.security,
54286
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54287
+ retryCodes: options?.retryCodes || [
54288
+ "429",
54289
+ "500",
54290
+ "502",
54291
+ "503",
54292
+ "504"
54293
+ ]
54294
+ };
54295
+ const requestRes = client$._createRequest(context, {
54296
+ security: requestSecurity,
54297
+ method: "GET",
54298
+ baseURL: options?.serverURL,
54299
+ path: path$,
54300
+ headers: headers$,
54301
+ userAgent: client$._options.userAgent,
54302
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54303
+ }, options);
54304
+ if (!requestRes.ok) {
54305
+ return [requestRes, { status: "invalid" }];
54306
+ }
54307
+ const req$ = requestRes.value;
54308
+ const doResult = await client$._do(req$, {
54309
+ context,
54310
+ errorCodes: [],
54311
+ retryConfig: context.retryConfig,
54312
+ retryCodes: context.retryCodes
54313
+ });
54314
+ if (!doResult.ok) {
54315
+ return [doResult, { status: "request-error", request: req$ }];
54316
+ }
54317
+ return [doResult, {
54318
+ status: "complete",
54319
+ request: req$,
54320
+ response: doResult.value
54321
+ }];
54322
+ }
54323
+ var init_agentPreferenceCompetitorsList = __esm(() => {
54324
+ init_primitives();
54325
+ init_security();
54326
+ init_url();
54327
+ init_async();
54328
+ });
54329
+
54330
+ // src/mcp-server/tools/agentPreferenceCompetitorsList.ts
54331
+ var tool$agentPreferenceCompetitorsList;
54332
+ var init_agentPreferenceCompetitorsList2 = __esm(() => {
54333
+ init_agentPreferenceCompetitorsList();
54334
+ init_tools();
54335
+ tool$agentPreferenceCompetitorsList = {
54336
+ name: "agent-preference-competitors-list",
54337
+ description: `List Competitors
54338
+
54339
+ Returns the tracked competitors your company can be compared against. Use a returned \`id\` as \`competitor_id\` when creating an Agent Preference eval.`,
54340
+ annotations: {
54341
+ title: "",
54342
+ destructiveHint: false,
54343
+ idempotentHint: false,
54344
+ openWorldHint: false,
54345
+ readOnlyHint: true
54346
+ },
54347
+ tool: async (client, ctx) => {
54348
+ const [result] = await agentPreferenceCompetitorsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
54349
+ if (!result.ok) {
54350
+ return {
54351
+ content: [{ type: "text", text: result.error.message }],
54352
+ isError: true
54353
+ };
54354
+ }
54355
+ return formatResult(result.value);
54356
+ }
54357
+ };
54358
+ });
54359
+
54360
+ // src/models/errors/sdkvalidationerror.ts
54361
+ function formatZodError(err) {
54362
+ return prettifyError(err);
54363
+ }
54364
+ var SDKValidationError;
54365
+ var init_sdkvalidationerror = __esm(() => {
54366
+ init_zod();
54367
+ SDKValidationError = class SDKValidationError extends Error {
54368
+ rawValue;
54369
+ rawMessage;
54370
+ constructor(message, cause, rawValue) {
54371
+ super(`${message}: ${cause}`);
54372
+ this.name = "SDKValidationError";
54373
+ this.cause = cause;
54374
+ this.rawValue = rawValue;
54375
+ this.rawMessage = message;
54376
+ }
54377
+ pretty() {
54378
+ if (this.cause instanceof ZodError) {
54379
+ return `${this.rawMessage}
54380
+ ${formatZodError(this.cause)}`;
54381
+ } else {
54382
+ return this.toString();
54383
+ }
54384
+ }
54385
+ };
54386
+ });
54387
+
54388
+ // src/types/fp.ts
54389
+ function OK3(value) {
54390
+ return { ok: true, value };
54391
+ }
54392
+ function ERR2(error) {
54393
+ return { ok: false, error };
54394
+ }
54395
+
54396
+ // src/lib/schemas.ts
54397
+ function collectExtraKeys(obj, extrasKey, optional) {
54398
+ return obj.transform((val) => {
54399
+ const extras = {};
54400
+ const { shape } = obj;
54401
+ for (const [key] of Object.entries(val)) {
54402
+ if (key in shape) {
54403
+ continue;
54404
+ }
54405
+ const v = val[key];
54406
+ if (typeof v === "undefined") {
54407
+ continue;
54408
+ }
54409
+ extras[key] = v;
54410
+ delete val[key];
54411
+ }
54412
+ if (optional && Object.keys(extras).length === 0) {
54413
+ return val;
54414
+ }
54415
+ return { ...val, [extrasKey]: extras };
54416
+ });
54417
+ }
54418
+ function safeParse4(rawValue, fn, errorMessage) {
54419
+ try {
54420
+ return OK3(fn(rawValue));
54421
+ } catch (err) {
54422
+ return ERR2(new SDKValidationError(errorMessage, err, rawValue));
54423
+ }
54424
+ }
54425
+ var init_schemas4 = __esm(() => {
54426
+ init_sdkvalidationerror();
54427
+ });
54428
+
54429
+ // src/models/searchgroundingmode.ts
54430
+ var SearchGroundingMode$zodSchema;
54431
+ var init_searchgroundingmode = __esm(() => {
54432
+ init_zod();
54433
+ SearchGroundingMode$zodSchema = _enum([
54434
+ "disabled",
54435
+ "enabled",
54436
+ "default"
54437
+ ]).describe("Requested web-retrieval behavior for an eval run.");
54438
+ });
54439
+
54440
+ // src/models/createv2agentpreferenceevalrequest.ts
54441
+ var CreateV2AgentPreferenceEvalRequest$zodSchema;
54442
+ var init_createv2agentpreferenceevalrequest = __esm(() => {
54443
+ init_zod();
54444
+ init_searchgroundingmode();
54445
+ CreateV2AgentPreferenceEvalRequest$zodSchema = object({
54446
+ agent: array(string2()).optional().describe("Runnable agents from `GET /v2/agents`. An empty array saves the comparison without default agents. CLI clients expose repeatable `--agent`."),
54447
+ competitor_id: string2().describe("Tracked competitor to compare against, from `GET /v2/agent-preference/competitors`."),
54448
+ name: string2().optional().describe("Display name. Defaults to `<your company> vs <competitor>` when omitted."),
54449
+ persona: string2().optional().describe("Optional perspective applied to the whole comparison."),
54450
+ prompts: array(string2()).describe("Buying or build questions the agent answers by choosing between your company and the competitor. CLI clients expose this as repeatable `--prompt`."),
54451
+ runs: int().default(1).describe("Independent attempts for every prompt-agent pair."),
54452
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
54453
+ tags: array(string2()).optional()
54454
+ });
54455
+ });
54456
+
54457
+ // src/funcs/agentPreferenceEvalsCreate.ts
54458
+ function agentPreferenceEvalsCreate(client$, request, options) {
54459
+ return new APIPromise($do2(client$, request, options));
54460
+ }
54461
+ async function $do2(client$, request, options) {
54462
+ const parsed$ = safeParse4(request, (value$) => CreateV2AgentPreferenceEvalRequest$zodSchema.parse(value$), "Input validation failed");
54463
+ if (!parsed$.ok) {
54464
+ return [parsed$, { status: "invalid" }];
54465
+ }
54466
+ const payload$ = parsed$.value;
54467
+ const body$ = encodeJSON("body", payload$, { explode: true });
54468
+ const path$ = pathToFunc("/v2/agent-preference/evals")();
54469
+ const headers$ = new Headers(compactMap({
54470
+ "Content-Type": "application/json",
54471
+ Accept: "application/json"
54472
+ }));
54473
+ const securityInput = await extractSecurity(client$._options.security);
54474
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54475
+ const context = {
54476
+ options: client$._options,
54477
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54478
+ operationID: "v2_agent_preference_evals_create",
54479
+ oAuth2Scopes: null,
54480
+ resolvedSecurity: requestSecurity,
54481
+ securitySource: client$._options.security,
54482
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54483
+ retryCodes: options?.retryCodes || [
54484
+ "429",
54485
+ "500",
54486
+ "502",
54487
+ "503",
54488
+ "504"
54489
+ ]
54490
+ };
54491
+ const requestRes = client$._createRequest(context, {
54492
+ security: requestSecurity,
54493
+ method: "POST",
54494
+ baseURL: options?.serverURL,
54495
+ path: path$,
54496
+ headers: headers$,
54497
+ body: body$,
54498
+ userAgent: client$._options.userAgent,
54499
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54500
+ }, options);
54501
+ if (!requestRes.ok) {
54502
+ return [requestRes, { status: "invalid" }];
54503
+ }
54504
+ const req$ = requestRes.value;
54505
+ const doResult = await client$._do(req$, {
54506
+ context,
54507
+ errorCodes: [],
54508
+ retryConfig: context.retryConfig,
54509
+ retryCodes: context.retryCodes
54510
+ });
54511
+ if (!doResult.ok) {
54512
+ return [doResult, { status: "request-error", request: req$ }];
54513
+ }
54514
+ return [doResult, {
54515
+ status: "complete",
54516
+ request: req$,
54517
+ response: doResult.value
54518
+ }];
54519
+ }
54520
+ var init_agentPreferenceEvalsCreate = __esm(() => {
54521
+ init_encodings();
54522
+ init_primitives();
54523
+ init_schemas4();
54524
+ init_security();
54525
+ init_url();
54526
+ init_createv2agentpreferenceevalrequest();
54527
+ init_async();
54528
+ });
54529
+
54530
+ // src/mcp-server/tools/agentPreferenceEvalsCreate.ts
54531
+ var args, tool$agentPreferenceEvalsCreate;
54532
+ var init_agentPreferenceEvalsCreate2 = __esm(() => {
54533
+ init_agentPreferenceEvalsCreate();
54534
+ init_createv2agentpreferenceevalrequest();
54535
+ init_tools();
54536
+ args = {
54537
+ request: CreateV2AgentPreferenceEvalRequest$zodSchema
54538
+ };
54539
+ tool$agentPreferenceEvalsCreate = {
54540
+ name: "agent-preference-evals-create",
54541
+ description: `Create Eval
54542
+
54543
+ Creates a head-to-head comparison between your company and one tracked competitor. Each prompt asks an agent to choose, and a fixed judge records which company it recommended. Creating the eval does not start a run; pass the returned \`id\` as \`eval_id\` to \`POST /v2/eval-runs\`.`,
54544
+ annotations: {
54545
+ title: "",
54546
+ destructiveHint: false,
54547
+ idempotentHint: false,
54548
+ openWorldHint: false,
54549
+ readOnlyHint: false
54550
+ },
54551
+ args,
54552
+ tool: async (client, args, ctx) => {
54553
+ const [result] = await agentPreferenceEvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54554
+ if (!result.ok) {
54555
+ return {
54556
+ content: [{ type: "text", text: result.error.message }],
54557
+ isError: true
54558
+ };
54559
+ }
54560
+ return formatResult(result.value);
54561
+ }
54562
+ };
54563
+ });
54564
+
54565
+ // src/models/validationerror.ts
54566
+ var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
54567
+ var init_validationerror = __esm(() => {
54568
+ init_zod();
54569
+ Loc$zodSchema = union([
54570
+ string2(),
54571
+ int()
54572
+ ]);
54573
+ Context$zodSchema = object({});
54574
+ ValidationError$zodSchema = object({
54575
+ ctx: lazy(() => Context$zodSchema).optional(),
54576
+ input: any().optional(),
54577
+ loc: array(union([
54578
+ string2(),
54579
+ int()
54580
+ ])),
54581
+ msg: string2(),
54582
+ type: string2()
54583
+ });
54584
+ });
54585
+
54586
+ // src/models/httpvalidationerror.ts
54587
+ var HTTPValidationError$zodSchema;
54588
+ var init_httpvalidationerror = __esm(() => {
54589
+ init_zod();
54590
+ init_validationerror();
54591
+ HTTPValidationError$zodSchema = object({
54592
+ detail: array(ValidationError$zodSchema).optional()
54593
+ });
54594
+ });
54595
+
54596
+ // src/models/v2agentpreferencecompetitor.ts
54597
+ var V2AgentPreferenceCompetitor$zodSchema;
54598
+ var init_v2agentpreferencecompetitor = __esm(() => {
54599
+ init_zod();
54600
+ V2AgentPreferenceCompetitor$zodSchema = object({
54601
+ domain: string2().nullable().optional(),
54602
+ id: string2().describe("Competitor ID to pass as `competitor_id`."),
54603
+ logo_url: string2().nullable().optional(),
54604
+ name: string2()
54605
+ });
54606
+ });
54607
+
54608
+ // src/models/v2agentpreferenceeval.ts
54609
+ var V2AgentPreferenceEval$zodSchema;
54610
+ var init_v2agentpreferenceeval = __esm(() => {
54611
+ init_zod();
54612
+ init_searchgroundingmode();
54613
+ init_v2agentpreferencecompetitor();
54614
+ V2AgentPreferenceEval$zodSchema = object({
54615
+ agent: array(string2()).optional(),
54616
+ competitor: V2AgentPreferenceCompetitor$zodSchema.nullable().optional().describe("The competitor your company is compared against. Null when the competitor is no longer tracked."),
54617
+ created_at: string2().nullable().optional(),
54618
+ id: string2().describe("Eval ID. Pass it as `eval_id` to `POST /v2/eval-runs` to run the comparison."),
54619
+ judges: array(string2()).optional().describe("Criteria applied to each response. The first one decides which company the agent recommended and cannot be changed."),
54620
+ name: string2(),
54621
+ persona: string2().nullable().optional(),
54622
+ prompts: array(string2()).optional(),
54623
+ runs: int().default(1),
54624
+ search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
54625
+ tags: array(string2()).optional(),
54626
+ updated_at: string2().nullable().optional()
54627
+ });
54628
+ });
54629
+
54630
+ // src/models/v2agentpreferenceevalsdeleteop.ts
54631
+ var V2AgentPreferenceEvalsDeleteRequest$zodSchema, V2AgentPreferenceEvalsDeleteResponse$zodSchema;
54632
+ var init_v2agentpreferenceevalsdeleteop = __esm(() => {
54633
+ init_zod();
54634
+ init_httpvalidationerror();
54635
+ init_v2agentpreferenceeval();
54636
+ V2AgentPreferenceEvalsDeleteRequest$zodSchema = object({
54637
+ eval_id: string2()
54638
+ });
54639
+ V2AgentPreferenceEvalsDeleteResponse$zodSchema = union([
54640
+ V2AgentPreferenceEval$zodSchema,
54641
+ HTTPValidationError$zodSchema
54642
+ ]);
54643
+ });
54644
+
54645
+ // src/funcs/agentPreferenceEvalsDelete.ts
54646
+ function agentPreferenceEvalsDelete(client$, request, options) {
54647
+ return new APIPromise($do3(client$, request, options));
54648
+ }
54649
+ async function $do3(client$, request, options) {
54650
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
54651
+ if (!parsed$.ok) {
54652
+ return [parsed$, { status: "invalid" }];
54653
+ }
54654
+ const payload$ = parsed$.value;
54655
+ const body$ = null;
54656
+ const pathParams$ = {
54657
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
54658
+ explode: false,
54659
+ charEncoding: "percent"
54660
+ })
54661
+ };
54662
+ const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
54663
+ const headers$ = new Headers(compactMap({
54664
+ Accept: "application/json"
54665
+ }));
54666
+ const securityInput = await extractSecurity(client$._options.security);
54667
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54668
+ const context = {
54669
+ options: client$._options,
54670
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54671
+ operationID: "v2_agent_preference_evals_delete",
54672
+ oAuth2Scopes: null,
54673
+ resolvedSecurity: requestSecurity,
54674
+ securitySource: client$._options.security,
54675
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54676
+ retryCodes: options?.retryCodes || [
54677
+ "429",
54678
+ "500",
54679
+ "502",
54680
+ "503",
54681
+ "504"
54682
+ ]
54683
+ };
54684
+ const requestRes = client$._createRequest(context, {
54685
+ security: requestSecurity,
54686
+ method: "DELETE",
54687
+ baseURL: options?.serverURL,
54688
+ path: path$,
54689
+ headers: headers$,
54690
+ body: body$,
54691
+ userAgent: client$._options.userAgent,
54692
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54693
+ }, options);
54694
+ if (!requestRes.ok) {
54695
+ return [requestRes, { status: "invalid" }];
54696
+ }
54697
+ const req$ = requestRes.value;
54698
+ const doResult = await client$._do(req$, {
54699
+ context,
54700
+ errorCodes: [],
54701
+ retryConfig: context.retryConfig,
54702
+ retryCodes: context.retryCodes
54703
+ });
54704
+ if (!doResult.ok) {
54705
+ return [doResult, { status: "request-error", request: req$ }];
54706
+ }
54707
+ return [doResult, {
54708
+ status: "complete",
54709
+ request: req$,
54710
+ response: doResult.value
54711
+ }];
54712
+ }
54713
+ var init_agentPreferenceEvalsDelete = __esm(() => {
54714
+ init_encodings();
54715
+ init_primitives();
54716
+ init_schemas4();
54717
+ init_security();
54718
+ init_url();
54719
+ init_v2agentpreferenceevalsdeleteop();
54720
+ init_async();
54721
+ });
54722
+
54723
+ // src/mcp-server/tools/agentPreferenceEvalsDelete.ts
54724
+ var args2, tool$agentPreferenceEvalsDelete;
54725
+ var init_agentPreferenceEvalsDelete2 = __esm(() => {
54726
+ init_agentPreferenceEvalsDelete();
54727
+ init_v2agentpreferenceevalsdeleteop();
54728
+ init_tools();
54729
+ args2 = {
54730
+ request: V2AgentPreferenceEvalsDeleteRequest$zodSchema
54731
+ };
54732
+ tool$agentPreferenceEvalsDelete = {
54733
+ name: "agent-preference-evals-delete",
54734
+ description: `Delete Eval
54735
+
54736
+ Permanently deletes an Agent Preference eval and returns its last saved state.`,
54737
+ annotations: {
54738
+ title: "",
54739
+ destructiveHint: true,
54740
+ idempotentHint: false,
54741
+ openWorldHint: false,
54742
+ readOnlyHint: false
54743
+ },
54744
+ args: args2,
54745
+ tool: async (client, args, ctx) => {
54746
+ const [result] = await agentPreferenceEvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54747
+ if (!result.ok) {
54748
+ return {
54749
+ content: [{ type: "text", text: result.error.message }],
54750
+ isError: true
54751
+ };
54752
+ }
54753
+ return formatResult(result.value);
54754
+ }
54755
+ };
54756
+ });
54757
+
54758
+ // src/funcs/agentPreferenceEvalsList.ts
54759
+ function agentPreferenceEvalsList(client$, options) {
54760
+ return new APIPromise($do4(client$, options));
54761
+ }
54762
+ async function $do4(client$, options) {
54763
+ const path$ = pathToFunc("/v2/agent-preference/evals")();
54764
+ const headers$ = new Headers(compactMap({
54765
+ Accept: "application/json"
54766
+ }));
54767
+ const securityInput = await extractSecurity(client$._options.security);
54768
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54769
+ const context = {
54770
+ options: client$._options,
54771
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54772
+ operationID: "v2_agent_preference_evals_list",
54773
+ oAuth2Scopes: null,
54774
+ resolvedSecurity: requestSecurity,
54775
+ securitySource: client$._options.security,
54776
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54777
+ retryCodes: options?.retryCodes || [
54778
+ "429",
54779
+ "500",
54780
+ "502",
54781
+ "503",
54782
+ "504"
54783
+ ]
54784
+ };
54785
+ const requestRes = client$._createRequest(context, {
54786
+ security: requestSecurity,
54787
+ method: "GET",
54788
+ baseURL: options?.serverURL,
54789
+ path: path$,
54790
+ headers: headers$,
54791
+ userAgent: client$._options.userAgent,
54792
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54793
+ }, options);
54794
+ if (!requestRes.ok) {
54795
+ return [requestRes, { status: "invalid" }];
54796
+ }
54797
+ const req$ = requestRes.value;
54798
+ const doResult = await client$._do(req$, {
54799
+ context,
54800
+ errorCodes: [],
54801
+ retryConfig: context.retryConfig,
54802
+ retryCodes: context.retryCodes
54803
+ });
54804
+ if (!doResult.ok) {
54805
+ return [doResult, { status: "request-error", request: req$ }];
54806
+ }
54807
+ return [doResult, {
54808
+ status: "complete",
54809
+ request: req$,
54810
+ response: doResult.value
54811
+ }];
54812
+ }
54813
+ var init_agentPreferenceEvalsList = __esm(() => {
54814
+ init_primitives();
54815
+ init_security();
54816
+ init_url();
54817
+ init_async();
54818
+ });
54819
+
54820
+ // src/mcp-server/tools/agentPreferenceEvalsList.ts
54821
+ var tool$agentPreferenceEvalsList;
54822
+ var init_agentPreferenceEvalsList2 = __esm(() => {
54823
+ init_agentPreferenceEvalsList();
54824
+ init_tools();
54825
+ tool$agentPreferenceEvalsList = {
54826
+ name: "agent-preference-evals-list",
54827
+ description: `List Evals
54828
+
54829
+ Returns all active Agent Preference evals owned by the organization.`,
54830
+ annotations: {
54831
+ title: "",
54832
+ destructiveHint: false,
54833
+ idempotentHint: false,
54834
+ openWorldHint: false,
54835
+ readOnlyHint: true
54836
+ },
54837
+ tool: async (client, ctx) => {
54838
+ const [result] = await agentPreferenceEvalsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
54839
+ if (!result.ok) {
54840
+ return {
54841
+ content: [{ type: "text", text: result.error.message }],
54842
+ isError: true
54843
+ };
54844
+ }
54845
+ return formatResult(result.value);
54846
+ }
54847
+ };
54848
+ });
54849
+
54850
+ // src/models/v2preferenceresult.ts
54851
+ var Outcome$zodSchema, V2PreferenceResult$zodSchema;
54852
+ var init_v2preferenceresult = __esm(() => {
54853
+ init_zod();
54854
+ Outcome$zodSchema = _enum([
54855
+ "won",
54856
+ "lost",
54857
+ "tie"
54858
+ ]).describe("`won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither.");
54859
+ V2PreferenceResult$zodSchema = object({
54860
+ competitor_domain: string2().nullable().optional(),
54861
+ competitor_name: string2().nullable().optional(),
54862
+ outcome: Outcome$zodSchema.describe("`won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither."),
54863
+ winner_name: string2().nullable().optional().describe("The recommended company. Null on a tie.")
54864
+ }).describe("Which company an agent recommended, from your company's side.");
54865
+ });
54866
+
54867
+ // src/models/v2agentpreferenceresult.ts
54868
+ var V2AgentPreferenceResult$zodSchema;
54869
+ var init_v2agentpreferenceresult = __esm(() => {
54870
+ init_zod();
54871
+ init_v2preferenceresult();
54872
+ V2AgentPreferenceResult$zodSchema = object({
54873
+ agent: string2().nullable().optional().describe("Runnable agent combining the harness and model."),
54874
+ created_at: string2().nullable().optional(),
54875
+ eval_id: string2(),
54876
+ id: string2().describe("Result ID for one attempt."),
54877
+ latency_ms: int().nullable().optional(),
54878
+ preference_result: V2PreferenceResult$zodSchema.nullable().optional().describe("Null when the attempt did not produce a usable recommendation, such as an attempt that ended in an error.")
54879
+ });
54880
+ });
54881
+
54882
+ // src/models/v2agentpreferenceresultsresponse.ts
54883
+ var V2AgentPreferenceResultsResponse$zodSchema;
54884
+ var init_v2agentpreferenceresultsresponse = __esm(() => {
54885
+ init_zod();
54886
+ init_v2agentpreferenceresult();
54887
+ V2AgentPreferenceResultsResponse$zodSchema = object({
54888
+ count: int().describe("The number of items in `data`."),
54889
+ data: array(V2AgentPreferenceResult$zodSchema).optional(),
54890
+ limit: int(),
54891
+ offset: int(),
54892
+ total: int().describe("All recorded attempts for this eval.")
54893
+ });
54894
+ });
54895
+
54896
+ // src/models/v2agentpreferenceresultslistop.ts
54897
+ var V2AgentPreferenceResultsListRequest$zodSchema, V2AgentPreferenceResultsListResponse$zodSchema;
54898
+ var init_v2agentpreferenceresultslistop = __esm(() => {
54899
+ init_zod();
54900
+ init_httpvalidationerror();
54901
+ init_v2agentpreferenceresultsresponse();
54902
+ V2AgentPreferenceResultsListRequest$zodSchema = object({
54903
+ eval_id: string2(),
54904
+ limit: int().default(50),
54905
+ offset: int().default(0)
54906
+ });
54907
+ V2AgentPreferenceResultsListResponse$zodSchema = union([
54908
+ V2AgentPreferenceResultsResponse$zodSchema,
54909
+ HTTPValidationError$zodSchema
54910
+ ]);
54911
+ });
54912
+
54913
+ // src/funcs/agentPreferenceEvalsResultsList.ts
54914
+ function agentPreferenceEvalsResultsList(client$, request, options) {
54915
+ return new APIPromise($do5(client$, request, options));
54916
+ }
54917
+ async function $do5(client$, request, options) {
54918
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceResultsListRequest$zodSchema.parse(value$), "Input validation failed");
54919
+ if (!parsed$.ok) {
54920
+ return [parsed$, { status: "invalid" }];
54921
+ }
54922
+ const payload$ = parsed$.value;
54923
+ const body$ = null;
54924
+ const pathParams$ = {
54925
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
54926
+ explode: false,
54927
+ charEncoding: "percent"
54928
+ })
54929
+ };
54930
+ const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}/results")(pathParams$);
54931
+ const query$ = encodeFormQuery({
54932
+ limit: payload$.limit,
54933
+ offset: payload$.offset
54934
+ });
54935
+ const headers$ = new Headers(compactMap({
54936
+ Accept: "application/json"
54937
+ }));
54938
+ const securityInput = await extractSecurity(client$._options.security);
54939
+ const requestSecurity = resolveGlobalSecurity(securityInput);
54940
+ const context = {
54941
+ options: client$._options,
54942
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
54943
+ operationID: "v2_agent_preference_results_list",
54944
+ oAuth2Scopes: null,
54945
+ resolvedSecurity: requestSecurity,
54946
+ securitySource: client$._options.security,
54947
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
54948
+ retryCodes: options?.retryCodes || [
54949
+ "429",
54950
+ "500",
54951
+ "502",
54952
+ "503",
54953
+ "504"
54954
+ ]
54955
+ };
54956
+ const requestRes = client$._createRequest(context, {
54957
+ security: requestSecurity,
54958
+ method: "GET",
54959
+ baseURL: options?.serverURL,
54960
+ path: path$,
54961
+ headers: headers$,
54962
+ query: query$,
54963
+ body: body$,
54964
+ userAgent: client$._options.userAgent,
54965
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
54966
+ }, options);
54967
+ if (!requestRes.ok) {
54968
+ return [requestRes, { status: "invalid" }];
54969
+ }
54970
+ const req$ = requestRes.value;
54971
+ const doResult = await client$._do(req$, {
54972
+ context,
54973
+ errorCodes: [],
54974
+ retryConfig: context.retryConfig,
54975
+ retryCodes: context.retryCodes
54976
+ });
54977
+ if (!doResult.ok) {
54978
+ return [doResult, { status: "request-error", request: req$ }];
54979
+ }
54980
+ return [doResult, {
54981
+ status: "complete",
54982
+ request: req$,
54983
+ response: doResult.value
54984
+ }];
54985
+ }
54986
+ var init_agentPreferenceEvalsResultsList = __esm(() => {
54987
+ init_encodings();
54988
+ init_primitives();
54989
+ init_schemas4();
54990
+ init_security();
54991
+ init_url();
54992
+ init_v2agentpreferenceresultslistop();
54993
+ init_async();
54994
+ });
54995
+
54996
+ // src/mcp-server/tools/agentPreferenceEvalsResultsList.ts
54997
+ var args3, tool$agentPreferenceEvalsResultsList;
54998
+ var init_agentPreferenceEvalsResultsList2 = __esm(() => {
54999
+ init_agentPreferenceEvalsResultsList();
55000
+ init_v2agentpreferenceresultslistop();
55001
+ init_tools();
55002
+ args3 = {
55003
+ request: V2AgentPreferenceResultsListRequest$zodSchema
55004
+ };
55005
+ tool$agentPreferenceEvalsResultsList = {
55006
+ name: "agent-preference-evals-results-list",
55007
+ description: `List Results
55008
+
55009
+ Returns recorded attempts for an Agent Preference eval, newest first, each with whether your company won, lost, or tied against the competitor.`,
55010
+ annotations: {
55011
+ title: "",
55012
+ destructiveHint: false,
55013
+ idempotentHint: false,
55014
+ openWorldHint: false,
55015
+ readOnlyHint: true
55016
+ },
55017
+ args: args3,
55018
+ tool: async (client, args, ctx) => {
55019
+ const [result] = await agentPreferenceEvalsResultsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55020
+ if (!result.ok) {
55021
+ return {
55022
+ content: [{ type: "text", text: result.error.message }],
55023
+ isError: true
55024
+ };
55025
+ }
55026
+ return formatResult(result.value);
55027
+ }
55028
+ };
55029
+ });
55030
+
55031
+ // src/models/v2agentpreferenceevalsretrieveop.ts
55032
+ var V2AgentPreferenceEvalsRetrieveRequest$zodSchema, V2AgentPreferenceEvalsRetrieveResponse$zodSchema;
55033
+ var init_v2agentpreferenceevalsretrieveop = __esm(() => {
55034
+ init_zod();
55035
+ init_httpvalidationerror();
55036
+ init_v2agentpreferenceeval();
55037
+ V2AgentPreferenceEvalsRetrieveRequest$zodSchema = object({
55038
+ eval_id: string2()
55039
+ });
55040
+ V2AgentPreferenceEvalsRetrieveResponse$zodSchema = union([
55041
+ V2AgentPreferenceEval$zodSchema,
55042
+ HTTPValidationError$zodSchema
55043
+ ]);
55044
+ });
55045
+
55046
+ // src/funcs/agentPreferenceEvalsRetrieve.ts
55047
+ function agentPreferenceEvalsRetrieve(client$, request, options) {
55048
+ return new APIPromise($do6(client$, request, options));
55049
+ }
55050
+ async function $do6(client$, request, options) {
55051
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
55052
+ if (!parsed$.ok) {
55053
+ return [parsed$, { status: "invalid" }];
55054
+ }
55055
+ const payload$ = parsed$.value;
55056
+ const body$ = null;
55057
+ const pathParams$ = {
55058
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
55059
+ explode: false,
55060
+ charEncoding: "percent"
55061
+ })
55062
+ };
55063
+ const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
55064
+ const headers$ = new Headers(compactMap({
55065
+ Accept: "application/json"
55066
+ }));
55067
+ const securityInput = await extractSecurity(client$._options.security);
55068
+ const requestSecurity = resolveGlobalSecurity(securityInput);
55069
+ const context = {
55070
+ options: client$._options,
55071
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
55072
+ operationID: "v2_agent_preference_evals_retrieve",
55073
+ oAuth2Scopes: null,
55074
+ resolvedSecurity: requestSecurity,
55075
+ securitySource: client$._options.security,
55076
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55077
+ retryCodes: options?.retryCodes || [
55078
+ "429",
55079
+ "500",
55080
+ "502",
55081
+ "503",
55082
+ "504"
55083
+ ]
55084
+ };
55085
+ const requestRes = client$._createRequest(context, {
55086
+ security: requestSecurity,
55087
+ method: "GET",
55088
+ baseURL: options?.serverURL,
55089
+ path: path$,
55090
+ headers: headers$,
55091
+ body: body$,
55092
+ userAgent: client$._options.userAgent,
55093
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55094
+ }, options);
55095
+ if (!requestRes.ok) {
55096
+ return [requestRes, { status: "invalid" }];
55097
+ }
55098
+ const req$ = requestRes.value;
55099
+ const doResult = await client$._do(req$, {
55100
+ context,
55101
+ errorCodes: [],
55102
+ retryConfig: context.retryConfig,
55103
+ retryCodes: context.retryCodes
55104
+ });
55105
+ if (!doResult.ok) {
55106
+ return [doResult, { status: "request-error", request: req$ }];
55107
+ }
55108
+ return [doResult, {
55109
+ status: "complete",
55110
+ request: req$,
55111
+ response: doResult.value
55112
+ }];
55113
+ }
55114
+ var init_agentPreferenceEvalsRetrieve = __esm(() => {
55115
+ init_encodings();
55116
+ init_primitives();
55117
+ init_schemas4();
55118
+ init_security();
55119
+ init_url();
55120
+ init_v2agentpreferenceevalsretrieveop();
55121
+ init_async();
55122
+ });
55123
+
55124
+ // src/mcp-server/tools/agentPreferenceEvalsRetrieve.ts
55125
+ var args4, tool$agentPreferenceEvalsRetrieve;
55126
+ var init_agentPreferenceEvalsRetrieve2 = __esm(() => {
55127
+ init_agentPreferenceEvalsRetrieve();
55128
+ init_v2agentpreferenceevalsretrieveop();
55129
+ init_tools();
55130
+ args4 = {
55131
+ request: V2AgentPreferenceEvalsRetrieveRequest$zodSchema
55132
+ };
55133
+ tool$agentPreferenceEvalsRetrieve = {
55134
+ name: "agent-preference-evals-retrieve",
55135
+ description: `Retrieve Eval
55136
+
55137
+ Returns one Agent Preference eval.`,
55138
+ annotations: {
55139
+ title: "",
55140
+ destructiveHint: false,
55141
+ idempotentHint: false,
55142
+ openWorldHint: false,
55143
+ readOnlyHint: true
55144
+ },
55145
+ args: args4,
55146
+ tool: async (client, args, ctx) => {
55147
+ const [result] = await agentPreferenceEvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55148
+ if (!result.ok) {
55149
+ return {
55150
+ content: [{ type: "text", text: result.error.message }],
55151
+ isError: true
55152
+ };
55153
+ }
55154
+ return formatResult(result.value);
55155
+ }
55156
+ };
55157
+ });
55158
+
55159
+ // src/models/updatev2agentpreferenceevalrequest.ts
55160
+ var UpdateV2AgentPreferenceEvalRequest$zodSchema;
55161
+ var init_updatev2agentpreferenceevalrequest = __esm(() => {
55162
+ init_zod();
55163
+ init_searchgroundingmode();
55164
+ UpdateV2AgentPreferenceEvalRequest$zodSchema = object({
55165
+ agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`. An empty array saves the comparison without default agents. CLI clients expose repeatable `--agent`."),
55166
+ name: string2().optional(),
55167
+ persona: string2().optional().describe("Set to null to clear the saved persona."),
55168
+ prompts: array(string2()).nullable().optional().describe("Buying or build questions the agent answers by choosing between your company and the competitor. CLI clients expose this as repeatable `--prompt`."),
55169
+ runs: int().optional(),
55170
+ search_grounding: SearchGroundingMode$zodSchema.nullable().optional(),
55171
+ tags: array(string2()).nullable().optional()
55172
+ });
55173
+ });
55174
+
55175
+ // src/models/v2agentpreferenceevalsupdateop.ts
55176
+ var V2AgentPreferenceEvalsUpdateRequest$zodSchema, V2AgentPreferenceEvalsUpdateResponse$zodSchema;
55177
+ var init_v2agentpreferenceevalsupdateop = __esm(() => {
55178
+ init_zod();
55179
+ init_httpvalidationerror();
55180
+ init_updatev2agentpreferenceevalrequest();
55181
+ init_v2agentpreferenceeval();
55182
+ V2AgentPreferenceEvalsUpdateRequest$zodSchema = object({
55183
+ body: UpdateV2AgentPreferenceEvalRequest$zodSchema,
55184
+ eval_id: string2()
55185
+ });
55186
+ V2AgentPreferenceEvalsUpdateResponse$zodSchema = union([
55187
+ V2AgentPreferenceEval$zodSchema,
55188
+ HTTPValidationError$zodSchema
55189
+ ]);
55190
+ });
55191
+
55192
+ // src/funcs/agentPreferenceEvalsUpdate.ts
55193
+ function agentPreferenceEvalsUpdate(client$, request, options) {
55194
+ return new APIPromise($do7(client$, request, options));
55195
+ }
55196
+ async function $do7(client$, request, options) {
55197
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
55198
+ if (!parsed$.ok) {
55199
+ return [parsed$, { status: "invalid" }];
55200
+ }
55201
+ const payload$ = parsed$.value;
55202
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
55203
+ const pathParams$ = {
55204
+ eval_id: encodeSimple("eval_id", payload$.eval_id, {
55205
+ explode: false,
55206
+ charEncoding: "percent"
55207
+ })
55208
+ };
55209
+ const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
55210
+ const headers$ = new Headers(compactMap({
55211
+ "Content-Type": "application/json",
55212
+ Accept: "application/json"
55213
+ }));
55214
+ const securityInput = await extractSecurity(client$._options.security);
55215
+ const requestSecurity = resolveGlobalSecurity(securityInput);
55216
+ const context = {
55217
+ options: client$._options,
55218
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
55219
+ operationID: "v2_agent_preference_evals_update",
55220
+ oAuth2Scopes: null,
55221
+ resolvedSecurity: requestSecurity,
55222
+ securitySource: client$._options.security,
55223
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55224
+ retryCodes: options?.retryCodes || [
55225
+ "429",
55226
+ "500",
55227
+ "502",
55228
+ "503",
55229
+ "504"
55230
+ ]
55231
+ };
55232
+ const requestRes = client$._createRequest(context, {
55233
+ security: requestSecurity,
55234
+ method: "PATCH",
55235
+ baseURL: options?.serverURL,
55236
+ path: path$,
55237
+ headers: headers$,
55238
+ body: body$,
55239
+ userAgent: client$._options.userAgent,
55240
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55241
+ }, options);
55242
+ if (!requestRes.ok) {
55243
+ return [requestRes, { status: "invalid" }];
55244
+ }
55245
+ const req$ = requestRes.value;
55246
+ const doResult = await client$._do(req$, {
55247
+ context,
55248
+ errorCodes: [],
55249
+ retryConfig: context.retryConfig,
55250
+ retryCodes: context.retryCodes
55251
+ });
55252
+ if (!doResult.ok) {
55253
+ return [doResult, { status: "request-error", request: req$ }];
55254
+ }
55255
+ return [doResult, {
55256
+ status: "complete",
55257
+ request: req$,
55258
+ response: doResult.value
55259
+ }];
55260
+ }
55261
+ var init_agentPreferenceEvalsUpdate = __esm(() => {
55262
+ init_encodings();
55263
+ init_primitives();
55264
+ init_schemas4();
55265
+ init_security();
55266
+ init_url();
55267
+ init_v2agentpreferenceevalsupdateop();
55268
+ init_async();
55269
+ });
55270
+
55271
+ // src/mcp-server/tools/agentPreferenceEvalsUpdate.ts
55272
+ var args5, tool$agentPreferenceEvalsUpdate;
55273
+ var init_agentPreferenceEvalsUpdate2 = __esm(() => {
55274
+ init_agentPreferenceEvalsUpdate();
55275
+ init_v2agentpreferenceevalsupdateop();
55276
+ init_tools();
55277
+ args5 = {
55278
+ request: V2AgentPreferenceEvalsUpdateRequest$zodSchema
55279
+ };
55280
+ tool$agentPreferenceEvalsUpdate = {
55281
+ name: "agent-preference-evals-update",
55282
+ description: `Update Eval
55283
+
55284
+ Updates an Agent Preference eval. Omitted fields remain unchanged, an empty \`agent\` or \`tags\` array clears that collection, and \`persona: null\` clears the saved persona. The competitor and the judge that decides the comparison cannot be changed.`,
55285
+ annotations: {
55286
+ title: "",
55287
+ destructiveHint: false,
55288
+ idempotentHint: false,
55289
+ openWorldHint: false,
55290
+ readOnlyHint: false
55291
+ },
55292
+ args: args5,
55293
+ tool: async (client, args, ctx) => {
55294
+ const [result] = await agentPreferenceEvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55295
+ if (!result.ok) {
55296
+ return {
55297
+ content: [{ type: "text", text: result.error.message }],
55298
+ isError: true
55299
+ };
55300
+ }
55301
+ return formatResult(result.value);
55302
+ }
55303
+ };
55304
+ });
55305
+
55306
+ // src/models/v2agentpreferencecompany.ts
55307
+ var V2AgentPreferenceCompany$zodSchema;
55308
+ var init_v2agentpreferencecompany = __esm(() => {
55309
+ init_zod();
55310
+ V2AgentPreferenceCompany$zodSchema = object({
55311
+ domain: string2().nullable().optional(),
55312
+ name: string2().nullable().optional()
55313
+ });
55314
+ });
55315
+
55316
+ // src/models/v2agentpreferencematchup.ts
55317
+ var V2AgentPreferenceMatchup$zodSchema;
55318
+ var init_v2agentpreferencematchup = __esm(() => {
55319
+ init_zod();
55320
+ V2AgentPreferenceMatchup$zodSchema = object({
55321
+ comparisons: int().describe("`wins + losses + ties`."),
55322
+ competitor_domain: string2().nullable().optional(),
55323
+ competitor_id: string2().nullable().optional().describe("Null when the competitor is no longer tracked."),
55324
+ competitor_name: string2(),
55325
+ eval_ids: array(string2()).optional().describe("Agent Preference evals that contributed to this record."),
55326
+ losses: int().describe("Attempts where the agent recommended the competitor."),
55327
+ ties: int().describe("Attempts where the agent recommended both equally or neither."),
55328
+ win_rate: number2().nullable().optional().describe("`wins / comparisons` from 0 to 1. Null when there are no comparisons."),
55329
+ wins: int().describe("Attempts where the agent recommended your company.")
55330
+ });
55331
+ });
55332
+
55333
+ // src/models/v2agentpreferencerecord.ts
55334
+ var V2AgentPreferenceRecord$zodSchema;
55335
+ var init_v2agentpreferencerecord = __esm(() => {
55336
+ init_zod();
55337
+ V2AgentPreferenceRecord$zodSchema = object({
55338
+ comparisons: int().describe("`wins + losses + ties`."),
55339
+ losses: int().describe("Attempts where the agent recommended the competitor."),
55340
+ ties: int().describe("Attempts where the agent recommended both equally or neither."),
55341
+ win_rate: number2().nullable().optional().describe("`wins / comparisons` from 0 to 1. Null when there are no comparisons."),
55342
+ wins: int().describe("Attempts where the agent recommended your company.")
55343
+ });
55344
+ });
55345
+
55346
+ // src/models/v2agentpreferenceheadtoheadresponse.ts
55347
+ var V2AgentPreferenceHeadToHeadResponse$zodSchema;
55348
+ var init_v2agentpreferenceheadtoheadresponse = __esm(() => {
55349
+ init_zod();
55350
+ init_v2agentpreferencecompany();
55351
+ init_v2agentpreferencematchup();
55352
+ init_v2agentpreferencerecord();
55353
+ V2AgentPreferenceHeadToHeadResponse$zodSchema = object({
55354
+ attempts_considered: int().describe("Recent attempts read to build the records. Attempts without a usable recommendation are read but not counted as comparisons."),
55355
+ company: V2AgentPreferenceCompany$zodSchema,
55356
+ count: int().describe("The number of items in `data`."),
55357
+ data: array(V2AgentPreferenceMatchup$zodSchema).optional().describe("One record per competitor, most comparisons first."),
55358
+ limit: int(),
55359
+ summary: V2AgentPreferenceRecord$zodSchema,
55360
+ truncated: boolean2().describe("True when older attempts exist beyond `limit` and were not counted.")
55361
+ });
55362
+ });
55363
+
55364
+ // src/models/v2agentpreferenceheadtoheadretrieveop.ts
55365
+ var V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema, V2AgentPreferenceHeadToHeadRetrieveResponse$zodSchema;
55366
+ var init_v2agentpreferenceheadtoheadretrieveop = __esm(() => {
55367
+ init_zod();
55368
+ init_httpvalidationerror();
55369
+ init_v2agentpreferenceheadtoheadresponse();
55370
+ V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema = object({
55371
+ limit: int().default(500).describe("Most recent attempts to include in the records.")
55372
+ });
55373
+ V2AgentPreferenceHeadToHeadRetrieveResponse$zodSchema = union([
55374
+ V2AgentPreferenceHeadToHeadResponse$zodSchema,
55375
+ HTTPValidationError$zodSchema
55376
+ ]);
55377
+ });
55378
+
55379
+ // src/funcs/agentPreferenceHeadToHeadRetrieve.ts
55380
+ function agentPreferenceHeadToHeadRetrieve(client$, request, options) {
55381
+ return new APIPromise($do8(client$, request, options));
55382
+ }
55383
+ async function $do8(client$, request, options) {
55384
+ const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
55385
+ if (!parsed$.ok) {
55386
+ return [parsed$, { status: "invalid" }];
55387
+ }
55388
+ const payload$ = parsed$.value;
55389
+ const body$ = null;
55390
+ const path$ = pathToFunc("/v2/agent-preference/head-to-head")();
55391
+ const query$ = encodeFormQuery({
55392
+ limit: payload$?.limit
55393
+ });
55394
+ const headers$ = new Headers(compactMap({
55395
+ Accept: "application/json"
55396
+ }));
55397
+ const securityInput = await extractSecurity(client$._options.security);
55398
+ const requestSecurity = resolveGlobalSecurity(securityInput);
55399
+ const context = {
55400
+ options: client$._options,
55401
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
55402
+ operationID: "v2_agent_preference_head_to_head_retrieve",
55403
+ oAuth2Scopes: null,
55404
+ resolvedSecurity: requestSecurity,
55405
+ securitySource: client$._options.security,
55406
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55407
+ retryCodes: options?.retryCodes || [
55408
+ "429",
55409
+ "500",
55410
+ "502",
55411
+ "503",
55412
+ "504"
55413
+ ]
55414
+ };
55415
+ const requestRes = client$._createRequest(context, {
55416
+ security: requestSecurity,
55417
+ method: "GET",
55418
+ baseURL: options?.serverURL,
55419
+ path: path$,
55420
+ headers: headers$,
55421
+ query: query$,
55422
+ body: body$,
55423
+ userAgent: client$._options.userAgent,
55424
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55425
+ }, options);
55426
+ if (!requestRes.ok) {
55427
+ return [requestRes, { status: "invalid" }];
55428
+ }
55429
+ const req$ = requestRes.value;
55430
+ const doResult = await client$._do(req$, {
55431
+ context,
55432
+ errorCodes: [],
55433
+ retryConfig: context.retryConfig,
55434
+ retryCodes: context.retryCodes
55435
+ });
55436
+ if (!doResult.ok) {
55437
+ return [doResult, { status: "request-error", request: req$ }];
55438
+ }
55439
+ return [doResult, {
55440
+ status: "complete",
55441
+ request: req$,
55442
+ response: doResult.value
55443
+ }];
55444
+ }
55445
+ var init_agentPreferenceHeadToHeadRetrieve = __esm(() => {
55446
+ init_encodings();
55447
+ init_primitives();
55448
+ init_schemas4();
55449
+ init_security();
55450
+ init_url();
55451
+ init_v2agentpreferenceheadtoheadretrieveop();
55452
+ init_async();
55453
+ });
55454
+
55455
+ // src/mcp-server/tools/agentPreferenceHeadToHeadRetrieve.ts
55456
+ var args6, tool$agentPreferenceHeadToHeadRetrieve;
55457
+ var init_agentPreferenceHeadToHeadRetrieve2 = __esm(() => {
55458
+ init_agentPreferenceHeadToHeadRetrieve();
55459
+ init_v2agentpreferenceheadtoheadretrieveop();
55460
+ init_tools();
55461
+ args6 = {
55462
+ request: V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema.optional()
55463
+ };
55464
+ tool$agentPreferenceHeadToHeadRetrieve = {
55465
+ name: "agent-preference-head-to-head-retrieve",
55466
+ description: `Retrieve Head To Head
55467
+
55468
+ Returns how often agents recommended your company over each tracked competitor: wins, losses, ties, and win rate per competitor plus a combined record. Calculated from the most recent attempts across all Agent Preference evals, up to \`limit\`; \`truncated\` reports whether older attempts were left out.`,
55469
+ annotations: {
55470
+ title: "",
55471
+ destructiveHint: false,
55472
+ idempotentHint: false,
55473
+ openWorldHint: false,
55474
+ readOnlyHint: true
55475
+ },
55476
+ args: args6,
55477
+ tool: async (client, args, ctx) => {
55478
+ const [result] = await agentPreferenceHeadToHeadRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55479
+ if (!result.ok) {
55480
+ return {
55481
+ content: [{ type: "text", text: result.error.message }],
55482
+ isError: true
55483
+ };
55484
+ }
55485
+ return formatResult(result.value);
55486
+ }
55487
+ };
55488
+ });
55489
+
54268
55490
  // src/funcs/agentsV2AgentsList.ts
54269
55491
  function agentsV2AgentsList(client$, options) {
54270
- return new APIPromise($do(client$, options));
55492
+ return new APIPromise($do9(client$, options));
54271
55493
  }
54272
- async function $do(client$, options) {
55494
+ async function $do9(client$, options) {
54273
55495
  const path$ = pathToFunc("/v2/agents")();
54274
55496
  const headers$ = new Headers(compactMap({
54275
55497
  Accept: "application/json"
@@ -54359,9 +55581,9 @@ Returns all runnable harness-and-model combinations as single agent IDs for use
54359
55581
 
54360
55582
  // src/funcs/clIsV2ClisList.ts
54361
55583
  function clIsV2ClisList(client$, options) {
54362
- return new APIPromise($do2(client$, options));
55584
+ return new APIPromise($do10(client$, options));
54363
55585
  }
54364
- async function $do2(client$, options) {
55586
+ async function $do10(client$, options) {
54365
55587
  const path$ = pathToFunc("/v2/clis")();
54366
55588
  const headers$ = new Headers(compactMap({
54367
55589
  Accept: "application/json"
@@ -54451,9 +55673,9 @@ Returns reusable CLIs without exposing setup or installation commands.`,
54451
55673
 
54452
55674
  // src/funcs/environmentsV2EnvironmentsList.ts
54453
55675
  function environmentsV2EnvironmentsList(client$, options) {
54454
- return new APIPromise($do3(client$, options));
55676
+ return new APIPromise($do11(client$, options));
54455
55677
  }
54456
- async function $do3(client$, options) {
55678
+ async function $do11(client$, options) {
54457
55679
  const path$ = pathToFunc("/v2/environments")();
54458
55680
  const headers$ = new Headers(compactMap({
54459
55681
  Accept: "application/json"
@@ -54541,106 +55763,6 @@ Returns reusable environments without exposing secret values.`,
54541
55763
  };
54542
55764
  });
54543
55765
 
54544
- // src/models/errors/sdkvalidationerror.ts
54545
- function formatZodError(err) {
54546
- return prettifyError(err);
54547
- }
54548
- var SDKValidationError;
54549
- var init_sdkvalidationerror = __esm(() => {
54550
- init_zod();
54551
- SDKValidationError = class SDKValidationError extends Error {
54552
- rawValue;
54553
- rawMessage;
54554
- constructor(message, cause, rawValue) {
54555
- super(`${message}: ${cause}`);
54556
- this.name = "SDKValidationError";
54557
- this.cause = cause;
54558
- this.rawValue = rawValue;
54559
- this.rawMessage = message;
54560
- }
54561
- pretty() {
54562
- if (this.cause instanceof ZodError) {
54563
- return `${this.rawMessage}
54564
- ${formatZodError(this.cause)}`;
54565
- } else {
54566
- return this.toString();
54567
- }
54568
- }
54569
- };
54570
- });
54571
-
54572
- // src/types/fp.ts
54573
- function OK3(value) {
54574
- return { ok: true, value };
54575
- }
54576
- function ERR2(error) {
54577
- return { ok: false, error };
54578
- }
54579
-
54580
- // src/lib/schemas.ts
54581
- function collectExtraKeys(obj, extrasKey, optional) {
54582
- return obj.transform((val) => {
54583
- const extras = {};
54584
- const { shape } = obj;
54585
- for (const [key] of Object.entries(val)) {
54586
- if (key in shape) {
54587
- continue;
54588
- }
54589
- const v = val[key];
54590
- if (typeof v === "undefined") {
54591
- continue;
54592
- }
54593
- extras[key] = v;
54594
- delete val[key];
54595
- }
54596
- if (optional && Object.keys(extras).length === 0) {
54597
- return val;
54598
- }
54599
- return { ...val, [extrasKey]: extras };
54600
- });
54601
- }
54602
- function safeParse4(rawValue, fn, errorMessage) {
54603
- try {
54604
- return OK3(fn(rawValue));
54605
- } catch (err) {
54606
- return ERR2(new SDKValidationError(errorMessage, err, rawValue));
54607
- }
54608
- }
54609
- var init_schemas4 = __esm(() => {
54610
- init_sdkvalidationerror();
54611
- });
54612
-
54613
- // src/models/validationerror.ts
54614
- var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
54615
- var init_validationerror = __esm(() => {
54616
- init_zod();
54617
- Loc$zodSchema = union([
54618
- string2(),
54619
- int()
54620
- ]);
54621
- Context$zodSchema = object({});
54622
- ValidationError$zodSchema = object({
54623
- ctx: lazy(() => Context$zodSchema).optional(),
54624
- input: any().optional(),
54625
- loc: array(union([
54626
- string2(),
54627
- int()
54628
- ])),
54629
- msg: string2(),
54630
- type: string2()
54631
- });
54632
- });
54633
-
54634
- // src/models/httpvalidationerror.ts
54635
- var HTTPValidationError$zodSchema;
54636
- var init_httpvalidationerror = __esm(() => {
54637
- init_zod();
54638
- init_validationerror();
54639
- HTTPValidationError$zodSchema = object({
54640
- detail: array(ValidationError$zodSchema).optional()
54641
- });
54642
- });
54643
-
54644
55766
  // src/models/publicevalrunprogress.ts
54645
55767
  var PublicEvalRunProgress$zodSchema;
54646
55768
  var init_publicevalrunprogress = __esm(() => {
@@ -54717,9 +55839,9 @@ var init_v2evalrunslistop = __esm(() => {
54717
55839
 
54718
55840
  // src/funcs/evalRunsV2EvalRunsList.ts
54719
55841
  function evalRunsV2EvalRunsList(client$, request, options) {
54720
- return new APIPromise($do4(client$, request, options));
55842
+ return new APIPromise($do12(client$, request, options));
54721
55843
  }
54722
- async function $do4(client$, request, options) {
55844
+ async function $do12(client$, request, options) {
54723
55845
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
54724
55846
  if (!parsed$.ok) {
54725
55847
  return [parsed$, { status: "invalid" }];
@@ -54793,12 +55915,12 @@ var init_evalRunsV2EvalRunsList = __esm(() => {
54793
55915
  });
54794
55916
 
54795
55917
  // src/mcp-server/tools/evalRunsV2EvalRunsList.ts
54796
- var args, tool$evalRunsV2EvalRunsList;
55918
+ var args7, tool$evalRunsV2EvalRunsList;
54797
55919
  var init_evalRunsV2EvalRunsList2 = __esm(() => {
54798
55920
  init_evalRunsV2EvalRunsList();
54799
55921
  init_v2evalrunslistop();
54800
55922
  init_tools();
54801
- args = {
55923
+ args7 = {
54802
55924
  request: V2EvalRunsListRequest$zodSchema.optional()
54803
55925
  };
54804
55926
  tool$evalRunsV2EvalRunsList = {
@@ -54813,7 +55935,7 @@ Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with
54813
55935
  openWorldHint: false,
54814
55936
  readOnlyHint: true
54815
55937
  },
54816
- args,
55938
+ args: args7,
54817
55939
  tool: async (client, args, ctx) => {
54818
55940
  const [result] = await evalRunsV2EvalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54819
55941
  if (!result.ok) {
@@ -54856,9 +55978,9 @@ var init_v2evalrunscancelop = __esm(() => {
54856
55978
 
54857
55979
  // src/funcs/evalsCancel.ts
54858
55980
  function evalsCancel(client$, request, options) {
54859
- return new APIPromise($do5(client$, request, options));
55981
+ return new APIPromise($do13(client$, request, options));
54860
55982
  }
54861
- async function $do5(client$, request, options) {
55983
+ async function $do13(client$, request, options) {
54862
55984
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
54863
55985
  if (!parsed$.ok) {
54864
55986
  return [parsed$, { status: "invalid" }];
@@ -54933,12 +56055,12 @@ var init_evalsCancel = __esm(() => {
54933
56055
  });
54934
56056
 
54935
56057
  // src/mcp-server/tools/evalsCancel.ts
54936
- var args2, tool$evalsCancel;
56058
+ var args8, tool$evalsCancel;
54937
56059
  var init_evalsCancel2 = __esm(() => {
54938
56060
  init_evalsCancel();
54939
56061
  init_v2evalrunscancelop();
54940
56062
  init_tools();
54941
- args2 = {
56063
+ args8 = {
54942
56064
  request: V2EvalRunsCancelRequest$zodSchema
54943
56065
  };
54944
56066
  tool$evalsCancel = {
@@ -54953,7 +56075,7 @@ Marks an active eval run as cancelled and prevents queued attempts from starting
54953
56075
  openWorldHint: false,
54954
56076
  readOnlyHint: false
54955
56077
  },
54956
- args: args2,
56078
+ args: args8,
54957
56079
  tool: async (client, args, ctx) => {
54958
56080
  const [result] = await evalsCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
54959
56081
  if (!result.ok) {
@@ -55014,17 +56136,6 @@ var init_publicgraderresult = __esm(() => {
55014
56136
  });
55015
56137
  });
55016
56138
 
55017
- // src/models/searchgroundingmode.ts
55018
- var SearchGroundingMode$zodSchema;
55019
- var init_searchgroundingmode = __esm(() => {
55020
- init_zod();
55021
- SearchGroundingMode$zodSchema = _enum([
55022
- "disabled",
55023
- "enabled",
55024
- "default"
55025
- ]).describe("Requested web-retrieval behavior for an eval run.");
55026
- });
55027
-
55028
56139
  // src/models/v2evalresultsummary.ts
55029
56140
  var V2EvalResultSummary$zodSchema;
55030
56141
  var init_v2evalresultsummary = __esm(() => {
@@ -55032,6 +56143,7 @@ var init_v2evalresultsummary = __esm(() => {
55032
56143
  init_publicevalrunenvironment();
55033
56144
  init_publicgraderresult();
55034
56145
  init_searchgroundingmode();
56146
+ init_v2preferenceresult();
55035
56147
  V2EvalResultSummary$zodSchema = object({
55036
56148
  agent: string2().nullable().optional().describe("Runnable agent combining the harness and model."),
55037
56149
  created_at: string2().nullable().optional(),
@@ -55044,6 +56156,7 @@ var init_v2evalresultsummary = __esm(() => {
55044
56156
  id: string2().describe("Result ID, not an eval job ID."),
55045
56157
  latency_ms: int().nullable().optional(),
55046
56158
  passed: boolean2().nullable().optional(),
56159
+ preference_result: V2PreferenceResult$zodSchema.nullable().optional().describe("Which company the agent recommended. Present only for Agent Preference evals that produced a usable recommendation."),
55047
56160
  prompt: string2().nullable().optional(),
55048
56161
  prompt_index: int().default(0),
55049
56162
  repeat_index: int().default(0),
@@ -55129,9 +56242,9 @@ var init_v2evalrunsretrieveop = __esm(() => {
55129
56242
 
55130
56243
  // src/funcs/evalsGet.ts
55131
56244
  function evalsGet(client$, request, options) {
55132
- return new APIPromise($do6(client$, request, options));
56245
+ return new APIPromise($do14(client$, request, options));
55133
56246
  }
55134
- async function $do6(client$, request, options) {
56247
+ async function $do14(client$, request, options) {
55135
56248
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
55136
56249
  if (!parsed$.ok) {
55137
56250
  return [parsed$, { status: "invalid" }];
@@ -55206,12 +56319,12 @@ var init_evalsGet = __esm(() => {
55206
56319
  });
55207
56320
 
55208
56321
  // src/mcp-server/tools/evalsGet.ts
55209
- var args3, tool$evalsGet;
56322
+ var args9, tool$evalsGet;
55210
56323
  var init_evalsGet2 = __esm(() => {
55211
56324
  init_evalsGet();
55212
56325
  init_v2evalrunsretrieveop();
55213
56326
  init_tools();
55214
- args3 = {
56327
+ args9 = {
55215
56328
  request: V2EvalRunsRetrieveRequest$zodSchema
55216
56329
  };
55217
56330
  tool$evalsGet = {
@@ -55226,7 +56339,7 @@ Returns the run's current status and progress. Once its attempts finish, the res
55226
56339
  openWorldHint: false,
55227
56340
  readOnlyHint: true
55228
56341
  },
55229
- args: args3,
56342
+ args: args9,
55230
56343
  tool: async (client, args, ctx) => {
55231
56344
  const [result] = await evalsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55232
56345
  if (!result.ok) {
@@ -55307,9 +56420,9 @@ var init_createv2evalrunrequest = __esm(() => {
55307
56420
 
55308
56421
  // src/funcs/evalsRun.ts
55309
56422
  function evalsRun(client$, request, options) {
55310
- return new APIPromise($do7(client$, request, options));
56423
+ return new APIPromise($do15(client$, request, options));
55311
56424
  }
55312
- async function $do7(client$, request, options) {
56425
+ async function $do15(client$, request, options) {
55313
56426
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
55314
56427
  if (!parsed$.ok) {
55315
56428
  return [parsed$, { status: "invalid" }];
@@ -55379,12 +56492,12 @@ var init_evalsRun = __esm(() => {
55379
56492
  });
55380
56493
 
55381
56494
  // src/mcp-server/tools/evalsRun.ts
55382
- var args4, tool$evalsRun;
56495
+ var args10, tool$evalsRun;
55383
56496
  var init_evalsRun2 = __esm(() => {
55384
56497
  init_evalsRun();
55385
56498
  init_createv2evalrunrequest();
55386
56499
  init_tools();
55387
- args4 = {
56500
+ args10 = {
55388
56501
  request: CreateV2EvalRunRequest$zodSchema
55389
56502
  };
55390
56503
  tool$evalsRun = {
@@ -55408,7 +56521,7 @@ A saved or inline environment containing an empty or placeholder credential is r
55408
56521
  openWorldHint: false,
55409
56522
  readOnlyHint: false
55410
56523
  },
55411
- args: args4,
56524
+ args: args10,
55412
56525
  tool: async (client, args, ctx) => {
55413
56526
  const [result] = await evalsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55414
56527
  if (!result.ok) {
@@ -55484,9 +56597,9 @@ var init_v2evalrunstraceop = __esm(() => {
55484
56597
 
55485
56598
  // src/funcs/evalsTrace.ts
55486
56599
  function evalsTrace(client$, request, options) {
55487
- return new APIPromise($do8(client$, request, options));
56600
+ return new APIPromise($do16(client$, request, options));
55488
56601
  }
55489
- async function $do8(client$, request, options) {
56602
+ async function $do16(client$, request, options) {
55490
56603
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsTraceRequest$zodSchema.parse(value$), "Input validation failed");
55491
56604
  if (!parsed$.ok) {
55492
56605
  return [parsed$, { status: "invalid" }];
@@ -55566,12 +56679,12 @@ var init_evalsTrace = __esm(() => {
55566
56679
  });
55567
56680
 
55568
56681
  // src/mcp-server/tools/evalsTrace.ts
55569
- var args5, tool$evalsTrace;
56682
+ var args11, tool$evalsTrace;
55570
56683
  var init_evalsTrace2 = __esm(() => {
55571
56684
  init_evalsTrace();
55572
56685
  init_v2evalrunstraceop();
55573
56686
  init_tools();
55574
- args5 = {
56687
+ args11 = {
55575
56688
  request: V2EvalRunsTraceRequest$zodSchema
55576
56689
  };
55577
56690
  tool$evalsTrace = {
@@ -55586,7 +56699,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
55586
56699
  openWorldHint: false,
55587
56700
  readOnlyHint: true
55588
56701
  },
55589
- args: args5,
56702
+ args: args11,
55590
56703
  tool: async (client, args, ctx) => {
55591
56704
  const [result] = await evalsTrace(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55592
56705
  if (!result.ok) {
@@ -55659,9 +56772,9 @@ var init_v2evalconfigurationscreateop = __esm(() => {
55659
56772
 
55660
56773
  // src/funcs/evalsV2EvalConfigurationsCreate.ts
55661
56774
  function evalsV2EvalConfigurationsCreate(client$, request, options) {
55662
- return new APIPromise($do9(client$, request, options));
56775
+ return new APIPromise($do17(client$, request, options));
55663
56776
  }
55664
- async function $do9(client$, request, options) {
56777
+ async function $do17(client$, request, options) {
55665
56778
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsCreateRequest$zodSchema.parse(value$), "Input validation failed");
55666
56779
  if (!parsed$.ok) {
55667
56780
  return [parsed$, { status: "invalid" }];
@@ -55737,12 +56850,12 @@ var init_evalsV2EvalConfigurationsCreate = __esm(() => {
55737
56850
  });
55738
56851
 
55739
56852
  // src/mcp-server/tools/evalsV2EvalConfigurationsCreate.ts
55740
- var args6, tool$evalsV2EvalConfigurationsCreate;
56853
+ var args12, tool$evalsV2EvalConfigurationsCreate;
55741
56854
  var init_evalsV2EvalConfigurationsCreate2 = __esm(() => {
55742
56855
  init_evalsV2EvalConfigurationsCreate();
55743
56856
  init_v2evalconfigurationscreateop();
55744
56857
  init_tools();
55745
- args6 = {
56858
+ args12 = {
55746
56859
  request: V2EvalConfigurationsCreateRequest$zodSchema
55747
56860
  };
55748
56861
  tool$evalsV2EvalConfigurationsCreate = {
@@ -55757,7 +56870,7 @@ Creates a saved runtime configuration that pairs an eval with a repository, envi
55757
56870
  openWorldHint: false,
55758
56871
  readOnlyHint: false
55759
56872
  },
55760
- args: args6,
56873
+ args: args12,
55761
56874
  tool: async (client, args, ctx) => {
55762
56875
  const [result] = await evalsV2EvalConfigurationsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55763
56876
  if (!result.ok) {
@@ -55789,9 +56902,9 @@ var init_v2evalconfigurationsdeleteop = __esm(() => {
55789
56902
 
55790
56903
  // src/funcs/evalsV2EvalConfigurationsDelete.ts
55791
56904
  function evalsV2EvalConfigurationsDelete(client$, request, options) {
55792
- return new APIPromise($do10(client$, request, options));
56905
+ return new APIPromise($do18(client$, request, options));
55793
56906
  }
55794
- async function $do10(client$, request, options) {
56907
+ async function $do18(client$, request, options) {
55795
56908
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
55796
56909
  if (!parsed$.ok) {
55797
56910
  return [parsed$, { status: "invalid" }];
@@ -55867,12 +56980,12 @@ var init_evalsV2EvalConfigurationsDelete = __esm(() => {
55867
56980
  });
55868
56981
 
55869
56982
  // src/mcp-server/tools/evalsV2EvalConfigurationsDelete.ts
55870
- var args7, tool$evalsV2EvalConfigurationsDelete;
56983
+ var args13, tool$evalsV2EvalConfigurationsDelete;
55871
56984
  var init_evalsV2EvalConfigurationsDelete2 = __esm(() => {
55872
56985
  init_evalsV2EvalConfigurationsDelete();
55873
56986
  init_v2evalconfigurationsdeleteop();
55874
56987
  init_tools();
55875
- args7 = {
56988
+ args13 = {
55876
56989
  request: V2EvalConfigurationsDeleteRequest$zodSchema
55877
56990
  };
55878
56991
  tool$evalsV2EvalConfigurationsDelete = {
@@ -55887,7 +57000,7 @@ Permanently deletes an eval configuration and returns its last saved state.`,
55887
57000
  openWorldHint: false,
55888
57001
  readOnlyHint: false
55889
57002
  },
55890
- args: args7,
57003
+ args: args13,
55891
57004
  tool: async (client, args, ctx) => {
55892
57005
  const [result] = await evalsV2EvalConfigurationsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55893
57006
  if (!result.ok) {
@@ -55929,9 +57042,9 @@ var init_v2evalconfigurationslistop = __esm(() => {
55929
57042
 
55930
57043
  // src/funcs/evalsV2EvalConfigurationsList.ts
55931
57044
  function evalsV2EvalConfigurationsList(client$, request, options) {
55932
- return new APIPromise($do11(client$, request, options));
57045
+ return new APIPromise($do19(client$, request, options));
55933
57046
  }
55934
- async function $do11(client$, request, options) {
57047
+ async function $do19(client$, request, options) {
55935
57048
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsListRequest$zodSchema.parse(value$), "Input validation failed");
55936
57049
  if (!parsed$.ok) {
55937
57050
  return [parsed$, { status: "invalid" }];
@@ -56006,12 +57119,12 @@ var init_evalsV2EvalConfigurationsList = __esm(() => {
56006
57119
  });
56007
57120
 
56008
57121
  // src/mcp-server/tools/evalsV2EvalConfigurationsList.ts
56009
- var args8, tool$evalsV2EvalConfigurationsList;
57122
+ var args14, tool$evalsV2EvalConfigurationsList;
56010
57123
  var init_evalsV2EvalConfigurationsList2 = __esm(() => {
56011
57124
  init_evalsV2EvalConfigurationsList();
56012
57125
  init_v2evalconfigurationslistop();
56013
57126
  init_tools();
56014
- args8 = {
57127
+ args14 = {
56015
57128
  request: V2EvalConfigurationsListRequest$zodSchema
56016
57129
  };
56017
57130
  tool$evalsV2EvalConfigurationsList = {
@@ -56026,7 +57139,7 @@ Returns the saved runtime configurations for an eval, including repository, envi
56026
57139
  openWorldHint: false,
56027
57140
  readOnlyHint: true
56028
57141
  },
56029
- args: args8,
57142
+ args: args14,
56030
57143
  tool: async (client, args, ctx) => {
56031
57144
  const [result] = await evalsV2EvalConfigurationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56032
57145
  if (!result.ok) {
@@ -56058,9 +57171,9 @@ var init_v2evalconfigurationsretrieveop = __esm(() => {
56058
57171
 
56059
57172
  // src/funcs/evalsV2EvalConfigurationsRetrieve.ts
56060
57173
  function evalsV2EvalConfigurationsRetrieve(client$, request, options) {
56061
- return new APIPromise($do12(client$, request, options));
57174
+ return new APIPromise($do20(client$, request, options));
56062
57175
  }
56063
- async function $do12(client$, request, options) {
57176
+ async function $do20(client$, request, options) {
56064
57177
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
56065
57178
  if (!parsed$.ok) {
56066
57179
  return [parsed$, { status: "invalid" }];
@@ -56136,12 +57249,12 @@ var init_evalsV2EvalConfigurationsRetrieve = __esm(() => {
56136
57249
  });
56137
57250
 
56138
57251
  // src/mcp-server/tools/evalsV2EvalConfigurationsRetrieve.ts
56139
- var args9, tool$evalsV2EvalConfigurationsRetrieve;
57252
+ var args15, tool$evalsV2EvalConfigurationsRetrieve;
56140
57253
  var init_evalsV2EvalConfigurationsRetrieve2 = __esm(() => {
56141
57254
  init_evalsV2EvalConfigurationsRetrieve();
56142
57255
  init_v2evalconfigurationsretrieveop();
56143
57256
  init_tools();
56144
- args9 = {
57257
+ args15 = {
56145
57258
  request: V2EvalConfigurationsRetrieveRequest$zodSchema
56146
57259
  };
56147
57260
  tool$evalsV2EvalConfigurationsRetrieve = {
@@ -56156,7 +57269,7 @@ Returns one saved configuration for an eval.`,
56156
57269
  openWorldHint: false,
56157
57270
  readOnlyHint: true
56158
57271
  },
56159
- args: args9,
57272
+ args: args15,
56160
57273
  tool: async (client, args, ctx) => {
56161
57274
  const [result] = await evalsV2EvalConfigurationsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56162
57275
  if (!result.ok) {
@@ -56208,9 +57321,9 @@ var init_v2evalconfigurationsupdateop = __esm(() => {
56208
57321
 
56209
57322
  // src/funcs/evalsV2EvalConfigurationsUpdate.ts
56210
57323
  function evalsV2EvalConfigurationsUpdate(client$, request, options) {
56211
- return new APIPromise($do13(client$, request, options));
57324
+ return new APIPromise($do21(client$, request, options));
56212
57325
  }
56213
- async function $do13(client$, request, options) {
57326
+ async function $do21(client$, request, options) {
56214
57327
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
56215
57328
  if (!parsed$.ok) {
56216
57329
  return [parsed$, { status: "invalid" }];
@@ -56287,12 +57400,12 @@ var init_evalsV2EvalConfigurationsUpdate = __esm(() => {
56287
57400
  });
56288
57401
 
56289
57402
  // src/mcp-server/tools/evalsV2EvalConfigurationsUpdate.ts
56290
- var args10, tool$evalsV2EvalConfigurationsUpdate;
57403
+ var args16, tool$evalsV2EvalConfigurationsUpdate;
56291
57404
  var init_evalsV2EvalConfigurationsUpdate2 = __esm(() => {
56292
57405
  init_evalsV2EvalConfigurationsUpdate();
56293
57406
  init_v2evalconfigurationsupdateop();
56294
57407
  init_tools();
56295
- args10 = {
57408
+ args16 = {
56296
57409
  request: V2EvalConfigurationsUpdateRequest$zodSchema
56297
57410
  };
56298
57411
  tool$evalsV2EvalConfigurationsUpdate = {
@@ -56307,7 +57420,7 @@ Updates an eval configuration; omitted fields remain unchanged.`,
56307
57420
  openWorldHint: false,
56308
57421
  readOnlyHint: false
56309
57422
  },
56310
- args: args10,
57423
+ args: args16,
56311
57424
  tool: async (client, args, ctx) => {
56312
57425
  const [result] = await evalsV2EvalConfigurationsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56313
57426
  if (!result.ok) {
@@ -56353,9 +57466,9 @@ var init_createevaltemplatebatchrequest = __esm(() => {
56353
57466
 
56354
57467
  // src/funcs/evalsV2EvalsBatchCreate.ts
56355
57468
  function evalsV2EvalsBatchCreate(client$, request, options) {
56356
- return new APIPromise($do14(client$, request, options));
57469
+ return new APIPromise($do22(client$, request, options));
56357
57470
  }
56358
- async function $do14(client$, request, options) {
57471
+ async function $do22(client$, request, options) {
56359
57472
  const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateBatchRequest$zodSchema.parse(value$), "Input validation failed");
56360
57473
  if (!parsed$.ok) {
56361
57474
  return [parsed$, { status: "invalid" }];
@@ -56425,12 +57538,12 @@ var init_evalsV2EvalsBatchCreate = __esm(() => {
56425
57538
  });
56426
57539
 
56427
57540
  // src/mcp-server/tools/evalsV2EvalsBatchCreate.ts
56428
- var args11, tool$evalsV2EvalsBatchCreate;
57541
+ var args17, tool$evalsV2EvalsBatchCreate;
56429
57542
  var init_evalsV2EvalsBatchCreate2 = __esm(() => {
56430
57543
  init_evalsV2EvalsBatchCreate();
56431
57544
  init_createevaltemplatebatchrequest();
56432
57545
  init_tools();
56433
- args11 = {
57546
+ args17 = {
56434
57547
  request: CreateEvalTemplateBatchRequest$zodSchema
56435
57548
  };
56436
57549
  tool$evalsV2EvalsBatchCreate = {
@@ -56445,7 +57558,7 @@ Step 2 of the reusable template workflow. Provide the \`id\` and \`version\` ret
56445
57558
  openWorldHint: false,
56446
57559
  readOnlyHint: false
56447
57560
  },
56448
- args: args11,
57561
+ args: args17,
56449
57562
  tool: async (client, args, ctx) => {
56450
57563
  const [result] = await evalsV2EvalsBatchCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56451
57564
  if (!result.ok) {
@@ -56491,9 +57604,9 @@ var init_createv2evalrequest = __esm(() => {
56491
57604
 
56492
57605
  // src/funcs/evalsV2EvalsCreate.ts
56493
57606
  function evalsV2EvalsCreate(client$, request, options) {
56494
- return new APIPromise($do15(client$, request, options));
57607
+ return new APIPromise($do23(client$, request, options));
56495
57608
  }
56496
- async function $do15(client$, request, options) {
57609
+ async function $do23(client$, request, options) {
56497
57610
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
56498
57611
  if (!parsed$.ok) {
56499
57612
  return [parsed$, { status: "invalid" }];
@@ -56563,12 +57676,12 @@ var init_evalsV2EvalsCreate = __esm(() => {
56563
57676
  });
56564
57677
 
56565
57678
  // src/mcp-server/tools/evalsV2EvalsCreate.ts
56566
- var args12, tool$evalsV2EvalsCreate;
57679
+ var args18, tool$evalsV2EvalsCreate;
56567
57680
  var init_evalsV2EvalsCreate2 = __esm(() => {
56568
57681
  init_evalsV2EvalsCreate();
56569
57682
  init_createv2evalrequest();
56570
57683
  init_tools();
56571
- args12 = {
57684
+ args18 = {
56572
57685
  request: CreateV2EvalRequest$zodSchema
56573
57686
  };
56574
57687
  tool$evalsV2EvalsCreate = {
@@ -56583,7 +57696,7 @@ Creates a reusable simulation definition with one or more task prompts and judge
56583
57696
  openWorldHint: false,
56584
57697
  readOnlyHint: false
56585
57698
  },
56586
- args: args12,
57699
+ args: args18,
56587
57700
  tool: async (client, args, ctx) => {
56588
57701
  const [result] = await evalsV2EvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56589
57702
  if (!result.ok) {
@@ -56674,9 +57787,9 @@ var init_v2evalsdeleteop = __esm(() => {
56674
57787
 
56675
57788
  // src/funcs/evalsV2EvalsDelete.ts
56676
57789
  function evalsV2EvalsDelete(client$, request, options) {
56677
- return new APIPromise($do16(client$, request, options));
57790
+ return new APIPromise($do24(client$, request, options));
56678
57791
  }
56679
- async function $do16(client$, request, options) {
57792
+ async function $do24(client$, request, options) {
56680
57793
  const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
56681
57794
  if (!parsed$.ok) {
56682
57795
  return [parsed$, { status: "invalid" }];
@@ -56751,12 +57864,12 @@ var init_evalsV2EvalsDelete = __esm(() => {
56751
57864
  });
56752
57865
 
56753
57866
  // src/mcp-server/tools/evalsV2EvalsDelete.ts
56754
- var args13, tool$evalsV2EvalsDelete;
57867
+ var args19, tool$evalsV2EvalsDelete;
56755
57868
  var init_evalsV2EvalsDelete2 = __esm(() => {
56756
57869
  init_evalsV2EvalsDelete();
56757
57870
  init_v2evalsdeleteop();
56758
57871
  init_tools();
56759
- args13 = {
57872
+ args19 = {
56760
57873
  request: V2EvalsDeleteRequest$zodSchema
56761
57874
  };
56762
57875
  tool$evalsV2EvalsDelete = {
@@ -56771,7 +57884,7 @@ Permanently deletes an eval and all of its saved configurations.`,
56771
57884
  openWorldHint: false,
56772
57885
  readOnlyHint: false
56773
57886
  },
56774
- args: args13,
57887
+ args: args19,
56775
57888
  tool: async (client, args, ctx) => {
56776
57889
  const [result] = await evalsV2EvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56777
57890
  if (!result.ok) {
@@ -56787,9 +57900,9 @@ Permanently deletes an eval and all of its saved configurations.`,
56787
57900
 
56788
57901
  // src/funcs/evalsV2EvalsList.ts
56789
57902
  function evalsV2EvalsList(client$, options) {
56790
- return new APIPromise($do17(client$, options));
57903
+ return new APIPromise($do25(client$, options));
56791
57904
  }
56792
- async function $do17(client$, options) {
57905
+ async function $do25(client$, options) {
56793
57906
  const path$ = pathToFunc("/v2/evals")();
56794
57907
  const headers$ = new Headers(compactMap({
56795
57908
  Accept: "application/json"
@@ -56856,7 +57969,7 @@ var init_evalsV2EvalsList2 = __esm(() => {
56856
57969
  name: "evals-v2-evals-list",
56857
57970
  description: `List Evals
56858
57971
 
56859
- Returns all active eval definitions owned by the organization.`,
57972
+ Returns all active eval definitions owned by the organization. Agent Preference evals are not included; list them with \`GET /v2/agent-preference/evals\`.`,
56860
57973
  annotations: {
56861
57974
  title: "",
56862
57975
  destructiveHint: false,
@@ -56894,9 +58007,9 @@ var init_v2evalsretrieveop = __esm(() => {
56894
58007
 
56895
58008
  // src/funcs/evalsV2EvalsRetrieve.ts
56896
58009
  function evalsV2EvalsRetrieve(client$, request, options) {
56897
- return new APIPromise($do18(client$, request, options));
58010
+ return new APIPromise($do26(client$, request, options));
56898
58011
  }
56899
- async function $do18(client$, request, options) {
58012
+ async function $do26(client$, request, options) {
56900
58013
  const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
56901
58014
  if (!parsed$.ok) {
56902
58015
  return [parsed$, { status: "invalid" }];
@@ -56971,12 +58084,12 @@ var init_evalsV2EvalsRetrieve = __esm(() => {
56971
58084
  });
56972
58085
 
56973
58086
  // src/mcp-server/tools/evalsV2EvalsRetrieve.ts
56974
- var args14, tool$evalsV2EvalsRetrieve;
58087
+ var args20, tool$evalsV2EvalsRetrieve;
56975
58088
  var init_evalsV2EvalsRetrieve2 = __esm(() => {
56976
58089
  init_evalsV2EvalsRetrieve();
56977
58090
  init_v2evalsretrieveop();
56978
58091
  init_tools();
56979
- args14 = {
58092
+ args20 = {
56980
58093
  request: V2EvalsRetrieveRequest$zodSchema
56981
58094
  };
56982
58095
  tool$evalsV2EvalsRetrieve = {
@@ -56991,7 +58104,7 @@ Returns one reusable eval simulation definition.`,
56991
58104
  openWorldHint: false,
56992
58105
  readOnlyHint: true
56993
58106
  },
56994
- args: args14,
58107
+ args: args20,
56995
58108
  tool: async (client, args, ctx) => {
56996
58109
  const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56997
58110
  if (!result.ok) {
@@ -57054,9 +58167,9 @@ var init_v2evalsupdateop = __esm(() => {
57054
58167
 
57055
58168
  // src/funcs/evalsV2EvalsUpdate.ts
57056
58169
  function evalsV2EvalsUpdate(client$, request, options) {
57057
- return new APIPromise($do19(client$, request, options));
58170
+ return new APIPromise($do27(client$, request, options));
57058
58171
  }
57059
- async function $do19(client$, request, options) {
58172
+ async function $do27(client$, request, options) {
57060
58173
  const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
57061
58174
  if (!parsed$.ok) {
57062
58175
  return [parsed$, { status: "invalid" }];
@@ -57132,12 +58245,12 @@ var init_evalsV2EvalsUpdate = __esm(() => {
57132
58245
  });
57133
58246
 
57134
58247
  // src/mcp-server/tools/evalsV2EvalsUpdate.ts
57135
- var args15, tool$evalsV2EvalsUpdate;
58248
+ var args21, tool$evalsV2EvalsUpdate;
57136
58249
  var init_evalsV2EvalsUpdate2 = __esm(() => {
57137
58250
  init_evalsV2EvalsUpdate();
57138
58251
  init_v2evalsupdateop();
57139
58252
  init_tools();
57140
- args15 = {
58253
+ args21 = {
57141
58254
  request: V2EvalsUpdateRequest$zodSchema
57142
58255
  };
57143
58256
  tool$evalsV2EvalsUpdate = {
@@ -57152,7 +58265,7 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
57152
58265
  openWorldHint: false,
57153
58266
  readOnlyHint: false
57154
58267
  },
57155
- args: args15,
58268
+ args: args21,
57156
58269
  tool: async (client, args, ctx) => {
57157
58270
  const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57158
58271
  if (!result.ok) {
@@ -57267,9 +58380,9 @@ var init_createevaltemplaterequest = __esm(() => {
57267
58380
 
57268
58381
  // src/funcs/evalTemplatesV2EvalTemplatesCreate.ts
57269
58382
  function evalTemplatesV2EvalTemplatesCreate(client$, request, options) {
57270
- return new APIPromise($do20(client$, request, options));
58383
+ return new APIPromise($do28(client$, request, options));
57271
58384
  }
57272
- async function $do20(client$, request, options) {
58385
+ async function $do28(client$, request, options) {
57273
58386
  const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateRequest$zodSchema.parse(value$), "Input validation failed");
57274
58387
  if (!parsed$.ok) {
57275
58388
  return [parsed$, { status: "invalid" }];
@@ -57339,12 +58452,12 @@ var init_evalTemplatesV2EvalTemplatesCreate = __esm(() => {
57339
58452
  });
57340
58453
 
57341
58454
  // src/mcp-server/tools/evalTemplatesV2EvalTemplatesCreate.ts
57342
- var args16, tool$evalTemplatesV2EvalTemplatesCreate;
58455
+ var args22, tool$evalTemplatesV2EvalTemplatesCreate;
57343
58456
  var init_evalTemplatesV2EvalTemplatesCreate2 = __esm(() => {
57344
58457
  init_evalTemplatesV2EvalTemplatesCreate();
57345
58458
  init_createevaltemplaterequest();
57346
58459
  init_tools();
57347
- args16 = {
58460
+ args22 = {
57348
58461
  request: CreateEvalTemplateRequest$zodSchema
57349
58462
  };
57350
58463
  tool$evalTemplatesV2EvalTemplatesCreate = {
@@ -57359,7 +58472,7 @@ Step 1 of the reusable template workflow. Creates an organization-owned Eval tem
57359
58472
  openWorldHint: false,
57360
58473
  readOnlyHint: false
57361
58474
  },
57362
- args: args16,
58475
+ args: args22,
57363
58476
  tool: async (client, args, ctx) => {
57364
58477
  const [result] = await evalTemplatesV2EvalTemplatesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57365
58478
  if (!result.ok) {
@@ -57452,9 +58565,9 @@ var init_v2evaltemplatesdeleteop = __esm(() => {
57452
58565
 
57453
58566
  // src/funcs/evalTemplatesV2EvalTemplatesDelete.ts
57454
58567
  function evalTemplatesV2EvalTemplatesDelete(client$, request, options) {
57455
- return new APIPromise($do21(client$, request, options));
58568
+ return new APIPromise($do29(client$, request, options));
57456
58569
  }
57457
- async function $do21(client$, request, options) {
58570
+ async function $do29(client$, request, options) {
57458
58571
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
57459
58572
  if (!parsed$.ok) {
57460
58573
  return [parsed$, { status: "invalid" }];
@@ -57529,12 +58642,12 @@ var init_evalTemplatesV2EvalTemplatesDelete = __esm(() => {
57529
58642
  });
57530
58643
 
57531
58644
  // src/mcp-server/tools/evalTemplatesV2EvalTemplatesDelete.ts
57532
- var args17, tool$evalTemplatesV2EvalTemplatesDelete;
58645
+ var args23, tool$evalTemplatesV2EvalTemplatesDelete;
57533
58646
  var init_evalTemplatesV2EvalTemplatesDelete2 = __esm(() => {
57534
58647
  init_evalTemplatesV2EvalTemplatesDelete();
57535
58648
  init_v2evaltemplatesdeleteop();
57536
58649
  init_tools();
57537
- args17 = {
58650
+ args23 = {
57538
58651
  request: V2EvalTemplatesDeleteRequest$zodSchema
57539
58652
  };
57540
58653
  tool$evalTemplatesV2EvalTemplatesDelete = {
@@ -57549,7 +58662,7 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
57549
58662
  openWorldHint: false,
57550
58663
  readOnlyHint: false
57551
58664
  },
57552
- args: args17,
58665
+ args: args23,
57553
58666
  tool: async (client, args, ctx) => {
57554
58667
  const [result] = await evalTemplatesV2EvalTemplatesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57555
58668
  if (!result.ok) {
@@ -57565,9 +58678,9 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
57565
58678
 
57566
58679
  // src/funcs/evalTemplatesV2EvalTemplatesList.ts
57567
58680
  function evalTemplatesV2EvalTemplatesList(client$, options) {
57568
- return new APIPromise($do22(client$, options));
58681
+ return new APIPromise($do30(client$, options));
57569
58682
  }
57570
- async function $do22(client$, options) {
58683
+ async function $do30(client$, options) {
57571
58684
  const path$ = pathToFunc("/v2/eval-templates")();
57572
58685
  const headers$ = new Headers(compactMap({
57573
58686
  Accept: "application/json"
@@ -57676,9 +58789,9 @@ var init_v2evaltemplatesretrieveop = __esm(() => {
57676
58789
 
57677
58790
  // src/funcs/evalTemplatesV2EvalTemplatesRetrieve.ts
57678
58791
  function evalTemplatesV2EvalTemplatesRetrieve(client$, request, options) {
57679
- return new APIPromise($do23(client$, request, options));
58792
+ return new APIPromise($do31(client$, request, options));
57680
58793
  }
57681
- async function $do23(client$, request, options) {
58794
+ async function $do31(client$, request, options) {
57682
58795
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
57683
58796
  if (!parsed$.ok) {
57684
58797
  return [parsed$, { status: "invalid" }];
@@ -57753,12 +58866,12 @@ var init_evalTemplatesV2EvalTemplatesRetrieve = __esm(() => {
57753
58866
  });
57754
58867
 
57755
58868
  // src/mcp-server/tools/evalTemplatesV2EvalTemplatesRetrieve.ts
57756
- var args18, tool$evalTemplatesV2EvalTemplatesRetrieve;
58869
+ var args24, tool$evalTemplatesV2EvalTemplatesRetrieve;
57757
58870
  var init_evalTemplatesV2EvalTemplatesRetrieve2 = __esm(() => {
57758
58871
  init_evalTemplatesV2EvalTemplatesRetrieve();
57759
58872
  init_v2evaltemplatesretrieveop();
57760
58873
  init_tools();
57761
- args18 = {
58874
+ args24 = {
57762
58875
  request: V2EvalTemplatesRetrieveRequest$zodSchema
57763
58876
  };
57764
58877
  tool$evalTemplatesV2EvalTemplatesRetrieve = {
@@ -57773,7 +58886,7 @@ Returns one active reusable Eval template.`,
57773
58886
  openWorldHint: false,
57774
58887
  readOnlyHint: true
57775
58888
  },
57776
- args: args18,
58889
+ args: args24,
57777
58890
  tool: async (client, args, ctx) => {
57778
58891
  const [result] = await evalTemplatesV2EvalTemplatesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57779
58892
  if (!result.ok) {
@@ -57866,9 +58979,9 @@ var init_v2evaltemplatesupdateop = __esm(() => {
57866
58979
 
57867
58980
  // src/funcs/evalTemplatesV2EvalTemplatesUpdate.ts
57868
58981
  function evalTemplatesV2EvalTemplatesUpdate(client$, request, options) {
57869
- return new APIPromise($do24(client$, request, options));
58982
+ return new APIPromise($do32(client$, request, options));
57870
58983
  }
57871
- async function $do24(client$, request, options) {
58984
+ async function $do32(client$, request, options) {
57872
58985
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
57873
58986
  if (!parsed$.ok) {
57874
58987
  return [parsed$, { status: "invalid" }];
@@ -57944,12 +59057,12 @@ var init_evalTemplatesV2EvalTemplatesUpdate = __esm(() => {
57944
59057
  });
57945
59058
 
57946
59059
  // src/mcp-server/tools/evalTemplatesV2EvalTemplatesUpdate.ts
57947
- var args19, tool$evalTemplatesV2EvalTemplatesUpdate;
59060
+ var args25, tool$evalTemplatesV2EvalTemplatesUpdate;
57948
59061
  var init_evalTemplatesV2EvalTemplatesUpdate2 = __esm(() => {
57949
59062
  init_evalTemplatesV2EvalTemplatesUpdate();
57950
59063
  init_v2evaltemplatesupdateop();
57951
59064
  init_tools();
57952
- args19 = {
59065
+ args25 = {
57953
59066
  request: V2EvalTemplatesUpdateRequest$zodSchema
57954
59067
  };
57955
59068
  tool$evalTemplatesV2EvalTemplatesUpdate = {
@@ -57964,7 +59077,7 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
57964
59077
  openWorldHint: false,
57965
59078
  readOnlyHint: false
57966
59079
  },
57967
- args: args19,
59080
+ args: args25,
57968
59081
  tool: async (client, args, ctx) => {
57969
59082
  const [result] = await evalTemplatesV2EvalTemplatesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57970
59083
  if (!result.ok) {
@@ -57980,9 +59093,9 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
57980
59093
 
57981
59094
  // src/funcs/mcpServersV2MCPServersList.ts
57982
59095
  function mcpServersV2MCPServersList(client$, options) {
57983
- return new APIPromise($do25(client$, options));
59096
+ return new APIPromise($do33(client$, options));
57984
59097
  }
57985
- async function $do25(client$, options) {
59098
+ async function $do33(client$, options) {
57986
59099
  const path$ = pathToFunc("/v2/mcp-servers")();
57987
59100
  const headers$ = new Headers(compactMap({
57988
59101
  Accept: "application/json"
@@ -58164,9 +59277,9 @@ var init_v2opportunitieslistop = __esm(() => {
58164
59277
 
58165
59278
  // src/funcs/opportunitiesV2OpportunitiesList.ts
58166
59279
  function opportunitiesV2OpportunitiesList(client$, request, options) {
58167
- return new APIPromise($do26(client$, request, options));
59280
+ return new APIPromise($do34(client$, request, options));
58168
59281
  }
58169
- async function $do26(client$, request, options) {
59282
+ async function $do34(client$, request, options) {
58170
59283
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
58171
59284
  if (!parsed$.ok) {
58172
59285
  return [parsed$, { status: "invalid" }];
@@ -58244,12 +59357,12 @@ var init_opportunitiesV2OpportunitiesList = __esm(() => {
58244
59357
  });
58245
59358
 
58246
59359
  // src/mcp-server/tools/opportunitiesV2OpportunitiesList.ts
58247
- var args20, tool$opportunitiesV2OpportunitiesList;
59360
+ var args26, tool$opportunitiesV2OpportunitiesList;
58248
59361
  var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
58249
59362
  init_opportunitiesV2OpportunitiesList();
58250
59363
  init_v2opportunitieslistop();
58251
59364
  init_tools();
58252
- args20 = {
59365
+ args26 = {
58253
59366
  request: V2OpportunitiesListRequest$zodSchema.optional()
58254
59367
  };
58255
59368
  tool$opportunitiesV2OpportunitiesList = {
@@ -58264,7 +59377,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
58264
59377
  openWorldHint: false,
58265
59378
  readOnlyHint: true
58266
59379
  },
58267
- args: args20,
59380
+ args: args26,
58268
59381
  tool: async (client, args, ctx) => {
58269
59382
  const [result] = await opportunitiesV2OpportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58270
59383
  if (!result.ok) {
@@ -58336,9 +59449,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
58336
59449
 
58337
59450
  // src/funcs/opportunitiesV2OpportunitiesRetrieve.ts
58338
59451
  function opportunitiesV2OpportunitiesRetrieve(client$, request, options) {
58339
- return new APIPromise($do27(client$, request, options));
59452
+ return new APIPromise($do35(client$, request, options));
58340
59453
  }
58341
- async function $do27(client$, request, options) {
59454
+ async function $do35(client$, request, options) {
58342
59455
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58343
59456
  if (!parsed$.ok) {
58344
59457
  return [parsed$, { status: "invalid" }];
@@ -58419,12 +59532,12 @@ var init_opportunitiesV2OpportunitiesRetrieve = __esm(() => {
58419
59532
  });
58420
59533
 
58421
59534
  // src/mcp-server/tools/opportunitiesV2OpportunitiesRetrieve.ts
58422
- var args21, tool$opportunitiesV2OpportunitiesRetrieve;
59535
+ var args27, tool$opportunitiesV2OpportunitiesRetrieve;
58423
59536
  var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
58424
59537
  init_opportunitiesV2OpportunitiesRetrieve();
58425
59538
  init_v2opportunitiesretrieveop();
58426
59539
  init_tools();
58427
- args21 = {
59540
+ args27 = {
58428
59541
  request: V2OpportunitiesRetrieveRequest$zodSchema
58429
59542
  };
58430
59543
  tool$opportunitiesV2OpportunitiesRetrieve = {
@@ -58439,7 +59552,7 @@ Returns one computed opportunity and its execution context for the selected date
58439
59552
  openWorldHint: false,
58440
59553
  readOnlyHint: true
58441
59554
  },
58442
- args: args21,
59555
+ args: args27,
58443
59556
  tool: async (client, args, ctx) => {
58444
59557
  const [result] = await opportunitiesV2OpportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58445
59558
  if (!result.ok) {
@@ -58465,9 +59578,9 @@ var init_createv2promptrunrequest = __esm(() => {
58465
59578
 
58466
59579
  // src/funcs/promptsRun.ts
58467
59580
  function promptsRun(client$, request, options) {
58468
- return new APIPromise($do28(client$, request, options));
59581
+ return new APIPromise($do36(client$, request, options));
58469
59582
  }
58470
- async function $do28(client$, request, options) {
59583
+ async function $do36(client$, request, options) {
58471
59584
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptRunRequest$zodSchema.parse(value$), "Input validation failed");
58472
59585
  if (!parsed$.ok) {
58473
59586
  return [parsed$, { status: "invalid" }];
@@ -58537,12 +59650,12 @@ var init_promptsRun = __esm(() => {
58537
59650
  });
58538
59651
 
58539
59652
  // src/mcp-server/tools/promptsRun.ts
58540
- var args22, tool$promptsRun;
59653
+ var args28, tool$promptsRun;
58541
59654
  var init_promptsRun2 = __esm(() => {
58542
59655
  init_promptsRun();
58543
59656
  init_createv2promptrunrequest();
58544
59657
  init_tools();
58545
- args22 = {
59658
+ args28 = {
58546
59659
  request: CreateV2PromptRunRequest$zodSchema
58547
59660
  };
58548
59661
  tool$promptsRun = {
@@ -58562,7 +59675,7 @@ response returns a run ID to poll with
58562
59675
  openWorldHint: false,
58563
59676
  readOnlyHint: false
58564
59677
  },
58565
- args: args22,
59678
+ args: args28,
58566
59679
  tool: async (client, args, ctx) => {
58567
59680
  const [result] = await promptsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58568
59681
  if (!result.ok) {
@@ -58641,9 +59754,9 @@ var init_v2promptrunstatusretrieveop = __esm(() => {
58641
59754
 
58642
59755
  // src/funcs/promptsRunStatus.ts
58643
59756
  function promptsRunStatus(client$, request, options) {
58644
- return new APIPromise($do29(client$, request, options));
59757
+ return new APIPromise($do37(client$, request, options));
58645
59758
  }
58646
- async function $do29(client$, request, options) {
59759
+ async function $do37(client$, request, options) {
58647
59760
  const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58648
59761
  if (!parsed$.ok) {
58649
59762
  return [parsed$, { status: "invalid" }];
@@ -58718,12 +59831,12 @@ var init_promptsRunStatus = __esm(() => {
58718
59831
  });
58719
59832
 
58720
59833
  // src/mcp-server/tools/promptsRunStatus.ts
58721
- var args23, tool$promptsRunStatus;
59834
+ var args29, tool$promptsRunStatus;
58722
59835
  var init_promptsRunStatus2 = __esm(() => {
58723
59836
  init_promptsRunStatus();
58724
59837
  init_v2promptrunstatusretrieveop();
58725
59838
  init_tools();
58726
- args23 = {
59839
+ args29 = {
58727
59840
  request: V2PromptRunStatusRetrieveRequest$zodSchema
58728
59841
  };
58729
59842
  tool$promptsRunStatus = {
@@ -58741,7 +59854,7 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
58741
59854
  openWorldHint: false,
58742
59855
  readOnlyHint: true
58743
59856
  },
58744
- args: args23,
59857
+ args: args29,
58745
59858
  tool: async (client, args, ctx) => {
58746
59859
  const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58747
59860
  if (!result.ok) {
@@ -58855,9 +59968,9 @@ var init_v2promptrunslistop = __esm(() => {
58855
59968
 
58856
59969
  // src/funcs/promptsV2PromptRunsList.ts
58857
59970
  function promptsV2PromptRunsList(client$, request, options) {
58858
- return new APIPromise($do30(client$, request, options));
59971
+ return new APIPromise($do38(client$, request, options));
58859
59972
  }
58860
- async function $do30(client$, request, options) {
59973
+ async function $do38(client$, request, options) {
58861
59974
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
58862
59975
  if (!parsed$.ok) {
58863
59976
  return [parsed$, { status: "invalid" }];
@@ -58935,12 +60048,12 @@ var init_promptsV2PromptRunsList = __esm(() => {
58935
60048
  });
58936
60049
 
58937
60050
  // src/mcp-server/tools/promptsV2PromptRunsList.ts
58938
- var args24, tool$promptsV2PromptRunsList;
60051
+ var args30, tool$promptsV2PromptRunsList;
58939
60052
  var init_promptsV2PromptRunsList2 = __esm(() => {
58940
60053
  init_promptsV2PromptRunsList();
58941
60054
  init_v2promptrunslistop();
58942
60055
  init_tools();
58943
- args24 = {
60056
+ args30 = {
58944
60057
  request: V2PromptRunsListRequest$zodSchema.optional()
58945
60058
  };
58946
60059
  tool$promptsV2PromptRunsList = {
@@ -58955,7 +60068,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
58955
60068
  openWorldHint: false,
58956
60069
  readOnlyHint: true
58957
60070
  },
58958
- args: args24,
60071
+ args: args30,
58959
60072
  tool: async (client, args, ctx) => {
58960
60073
  const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58961
60074
  if (!result.ok) {
@@ -59068,9 +60181,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
59068
60181
 
59069
60182
  // src/funcs/promptsV2PromptRunsRetrieve.ts
59070
60183
  function promptsV2PromptRunsRetrieve(client$, request, options) {
59071
- return new APIPromise($do31(client$, request, options));
60184
+ return new APIPromise($do39(client$, request, options));
59072
60185
  }
59073
- async function $do31(client$, request, options) {
60186
+ async function $do39(client$, request, options) {
59074
60187
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59075
60188
  if (!parsed$.ok) {
59076
60189
  return [parsed$, { status: "invalid" }];
@@ -59145,12 +60258,12 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
59145
60258
  });
59146
60259
 
59147
60260
  // src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
59148
- var args25, tool$promptsV2PromptRunsRetrieve;
60261
+ var args31, tool$promptsV2PromptRunsRetrieve;
59149
60262
  var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
59150
60263
  init_promptsV2PromptRunsRetrieve();
59151
60264
  init_v2promptrunsretrieveop();
59152
60265
  init_tools();
59153
- args25 = {
60266
+ args31 = {
59154
60267
  request: V2PromptRunsRetrieveRequest$zodSchema
59155
60268
  };
59156
60269
  tool$promptsV2PromptRunsRetrieve = {
@@ -59165,7 +60278,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
59165
60278
  openWorldHint: false,
59166
60279
  readOnlyHint: true
59167
60280
  },
59168
- args: args25,
60281
+ args: args31,
59169
60282
  tool: async (client, args, ctx) => {
59170
60283
  const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59171
60284
  if (!result.ok) {
@@ -59220,9 +60333,9 @@ var init_createv2promptsrequest = __esm(() => {
59220
60333
 
59221
60334
  // src/funcs/promptsV2PromptsCreate.ts
59222
60335
  function promptsV2PromptsCreate(client$, request, options) {
59223
- return new APIPromise($do32(client$, request, options));
60336
+ return new APIPromise($do40(client$, request, options));
59224
60337
  }
59225
- async function $do32(client$, request, options) {
60338
+ async function $do40(client$, request, options) {
59226
60339
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
59227
60340
  if (!parsed$.ok) {
59228
60341
  return [parsed$, { status: "invalid" }];
@@ -59292,12 +60405,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
59292
60405
  });
59293
60406
 
59294
60407
  // src/mcp-server/tools/promptsV2PromptsCreate.ts
59295
- var args26, tool$promptsV2PromptsCreate;
60408
+ var args32, tool$promptsV2PromptsCreate;
59296
60409
  var init_promptsV2PromptsCreate2 = __esm(() => {
59297
60410
  init_promptsV2PromptsCreate();
59298
60411
  init_createv2promptsrequest();
59299
60412
  init_tools();
59300
- args26 = {
60413
+ args32 = {
59301
60414
  request: CreateV2PromptsRequest$zodSchema
59302
60415
  };
59303
60416
  tool$promptsV2PromptsCreate = {
@@ -59312,7 +60425,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
59312
60425
  openWorldHint: false,
59313
60426
  readOnlyHint: false
59314
60427
  },
59315
- args: args26,
60428
+ args: args32,
59316
60429
  tool: async (client, args, ctx) => {
59317
60430
  const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59318
60431
  if (!result.ok) {
@@ -59352,9 +60465,9 @@ var init_v2promptsdeleteop = __esm(() => {
59352
60465
 
59353
60466
  // src/funcs/promptsV2PromptsDelete.ts
59354
60467
  function promptsV2PromptsDelete(client$, request, options) {
59355
- return new APIPromise($do33(client$, request, options));
60468
+ return new APIPromise($do41(client$, request, options));
59356
60469
  }
59357
- async function $do33(client$, request, options) {
60470
+ async function $do41(client$, request, options) {
59358
60471
  const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59359
60472
  if (!parsed$.ok) {
59360
60473
  return [parsed$, { status: "invalid" }];
@@ -59429,12 +60542,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
59429
60542
  });
59430
60543
 
59431
60544
  // src/mcp-server/tools/promptsV2PromptsDelete.ts
59432
- var args27, tool$promptsV2PromptsDelete;
60545
+ var args33, tool$promptsV2PromptsDelete;
59433
60546
  var init_promptsV2PromptsDelete2 = __esm(() => {
59434
60547
  init_promptsV2PromptsDelete();
59435
60548
  init_v2promptsdeleteop();
59436
60549
  init_tools();
59437
- args27 = {
60550
+ args33 = {
59438
60551
  request: V2PromptsDeleteRequest$zodSchema
59439
60552
  };
59440
60553
  tool$promptsV2PromptsDelete = {
@@ -59449,7 +60562,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
59449
60562
  openWorldHint: false,
59450
60563
  readOnlyHint: false
59451
60564
  },
59452
- args: args27,
60565
+ args: args33,
59453
60566
  tool: async (client, args, ctx) => {
59454
60567
  const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59455
60568
  if (!result.ok) {
@@ -59577,9 +60690,9 @@ var init_v2promptslistop = __esm(() => {
59577
60690
 
59578
60691
  // src/funcs/promptsV2PromptsList.ts
59579
60692
  function promptsV2PromptsList(client$, request, options) {
59580
- return new APIPromise($do34(client$, request, options));
60693
+ return new APIPromise($do42(client$, request, options));
59581
60694
  }
59582
- async function $do34(client$, request, options) {
60695
+ async function $do42(client$, request, options) {
59583
60696
  const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
59584
60697
  if (!parsed$.ok) {
59585
60698
  return [parsed$, { status: "invalid" }];
@@ -59654,12 +60767,12 @@ var init_promptsV2PromptsList = __esm(() => {
59654
60767
  });
59655
60768
 
59656
60769
  // src/mcp-server/tools/promptsV2PromptsList.ts
59657
- var args28, tool$promptsV2PromptsList;
60770
+ var args34, tool$promptsV2PromptsList;
59658
60771
  var init_promptsV2PromptsList2 = __esm(() => {
59659
60772
  init_promptsV2PromptsList();
59660
60773
  init_v2promptslistop();
59661
60774
  init_tools();
59662
- args28 = {
60775
+ args34 = {
59663
60776
  request: V2PromptsListRequest$zodSchema.optional()
59664
60777
  };
59665
60778
  tool$promptsV2PromptsList = {
@@ -59674,7 +60787,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
59674
60787
  openWorldHint: false,
59675
60788
  readOnlyHint: true
59676
60789
  },
59677
- args: args28,
60790
+ args: args34,
59678
60791
  tool: async (client, args, ctx) => {
59679
60792
  const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59680
60793
  if (!result.ok) {
@@ -59705,9 +60818,9 @@ var init_v2promptsretrieveop = __esm(() => {
59705
60818
 
59706
60819
  // src/funcs/promptsV2PromptsRetrieve.ts
59707
60820
  function promptsV2PromptsRetrieve(client$, request, options) {
59708
- return new APIPromise($do35(client$, request, options));
60821
+ return new APIPromise($do43(client$, request, options));
59709
60822
  }
59710
- async function $do35(client$, request, options) {
60823
+ async function $do43(client$, request, options) {
59711
60824
  const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59712
60825
  if (!parsed$.ok) {
59713
60826
  return [parsed$, { status: "invalid" }];
@@ -59782,12 +60895,12 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
59782
60895
  });
59783
60896
 
59784
60897
  // src/mcp-server/tools/promptsV2PromptsRetrieve.ts
59785
- var args29, tool$promptsV2PromptsRetrieve;
60898
+ var args35, tool$promptsV2PromptsRetrieve;
59786
60899
  var init_promptsV2PromptsRetrieve2 = __esm(() => {
59787
60900
  init_promptsV2PromptsRetrieve();
59788
60901
  init_v2promptsretrieveop();
59789
60902
  init_tools();
59790
- args29 = {
60903
+ args35 = {
59791
60904
  request: V2PromptsRetrieveRequest$zodSchema
59792
60905
  };
59793
60906
  tool$promptsV2PromptsRetrieve = {
@@ -59802,7 +60915,7 @@ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-a
59802
60915
  openWorldHint: false,
59803
60916
  readOnlyHint: true
59804
60917
  },
59805
- args: args29,
60918
+ args: args35,
59806
60919
  tool: async (client, args, ctx) => {
59807
60920
  const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59808
60921
  if (!result.ok) {
@@ -59853,9 +60966,9 @@ var init_v2promptsupdateop = __esm(() => {
59853
60966
 
59854
60967
  // src/funcs/promptsV2PromptsUpdate.ts
59855
60968
  function promptsV2PromptsUpdate(client$, request, options) {
59856
- return new APIPromise($do36(client$, request, options));
60969
+ return new APIPromise($do44(client$, request, options));
59857
60970
  }
59858
- async function $do36(client$, request, options) {
60971
+ async function $do44(client$, request, options) {
59859
60972
  const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
59860
60973
  if (!parsed$.ok) {
59861
60974
  return [parsed$, { status: "invalid" }];
@@ -59931,12 +61044,12 @@ var init_promptsV2PromptsUpdate = __esm(() => {
59931
61044
  });
59932
61045
 
59933
61046
  // src/mcp-server/tools/promptsV2PromptsUpdate.ts
59934
- var args30, tool$promptsV2PromptsUpdate;
61047
+ var args36, tool$promptsV2PromptsUpdate;
59935
61048
  var init_promptsV2PromptsUpdate2 = __esm(() => {
59936
61049
  init_promptsV2PromptsUpdate();
59937
61050
  init_v2promptsupdateop();
59938
61051
  init_tools();
59939
- args30 = {
61052
+ args36 = {
59940
61053
  request: V2PromptsUpdateRequest$zodSchema
59941
61054
  };
59942
61055
  tool$promptsV2PromptsUpdate = {
@@ -59951,7 +61064,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
59951
61064
  openWorldHint: false,
59952
61065
  readOnlyHint: false
59953
61066
  },
59954
- args: args30,
61067
+ args: args36,
59955
61068
  tool: async (client, args, ctx) => {
59956
61069
  const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59957
61070
  if (!result.ok) {
@@ -59976,9 +61089,9 @@ var init_createprompttopicrequest = __esm(() => {
59976
61089
 
59977
61090
  // src/funcs/promptsV2PromptTopicsCreate.ts
59978
61091
  function promptsV2PromptTopicsCreate(client$, request, options) {
59979
- return new APIPromise($do37(client$, request, options));
61092
+ return new APIPromise($do45(client$, request, options));
59980
61093
  }
59981
- async function $do37(client$, request, options) {
61094
+ async function $do45(client$, request, options) {
59982
61095
  const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
59983
61096
  if (!parsed$.ok) {
59984
61097
  return [parsed$, { status: "invalid" }];
@@ -60048,12 +61161,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
60048
61161
  });
60049
61162
 
60050
61163
  // src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
60051
- var args31, tool$promptsV2PromptTopicsCreate;
61164
+ var args37, tool$promptsV2PromptTopicsCreate;
60052
61165
  var init_promptsV2PromptTopicsCreate2 = __esm(() => {
60053
61166
  init_promptsV2PromptTopicsCreate();
60054
61167
  init_createprompttopicrequest();
60055
61168
  init_tools();
60056
- args31 = {
61169
+ args37 = {
60057
61170
  request: CreatePromptTopicRequest$zodSchema
60058
61171
  };
60059
61172
  tool$promptsV2PromptTopicsCreate = {
@@ -60068,7 +61181,7 @@ Creates a prompt topic and returns the saved topic.`,
60068
61181
  openWorldHint: false,
60069
61182
  readOnlyHint: false
60070
61183
  },
60071
- args: args31,
61184
+ args: args37,
60072
61185
  tool: async (client, args, ctx) => {
60073
61186
  const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60074
61187
  if (!result.ok) {
@@ -60100,9 +61213,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
60100
61213
 
60101
61214
  // src/funcs/promptsV2PromptTopicsDelete.ts
60102
61215
  function promptsV2PromptTopicsDelete(client$, request, options) {
60103
- return new APIPromise($do38(client$, request, options));
61216
+ return new APIPromise($do46(client$, request, options));
60104
61217
  }
60105
- async function $do38(client$, request, options) {
61218
+ async function $do46(client$, request, options) {
60106
61219
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
60107
61220
  if (!parsed$.ok) {
60108
61221
  return [parsed$, { status: "invalid" }];
@@ -60181,12 +61294,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
60181
61294
  });
60182
61295
 
60183
61296
  // src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
60184
- var args32, tool$promptsV2PromptTopicsDelete;
61297
+ var args38, tool$promptsV2PromptTopicsDelete;
60185
61298
  var init_promptsV2PromptTopicsDelete2 = __esm(() => {
60186
61299
  init_promptsV2PromptTopicsDelete();
60187
61300
  init_v2prompttopicsdeleteop();
60188
61301
  init_tools();
60189
- args32 = {
61302
+ args38 = {
60190
61303
  request: V2PromptTopicsDeleteRequest$zodSchema
60191
61304
  };
60192
61305
  tool$promptsV2PromptTopicsDelete = {
@@ -60201,7 +61314,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
60201
61314
  openWorldHint: false,
60202
61315
  readOnlyHint: false
60203
61316
  },
60204
- args: args32,
61317
+ args: args38,
60205
61318
  tool: async (client, args, ctx) => {
60206
61319
  const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60207
61320
  if (!result.ok) {
@@ -60217,9 +61330,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
60217
61330
 
60218
61331
  // src/funcs/promptsV2PromptTopicsList.ts
60219
61332
  function promptsV2PromptTopicsList(client$, options) {
60220
- return new APIPromise($do39(client$, options));
61333
+ return new APIPromise($do47(client$, options));
60221
61334
  }
60222
- async function $do39(client$, options) {
61335
+ async function $do47(client$, options) {
60223
61336
  const path$ = pathToFunc("/v2/prompts/topics")();
60224
61337
  const headers$ = new Headers(compactMap({
60225
61338
  Accept: "application/json"
@@ -60335,9 +61448,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
60335
61448
 
60336
61449
  // src/funcs/promptsV2PromptTopicsUpdate.ts
60337
61450
  function promptsV2PromptTopicsUpdate(client$, request, options) {
60338
- return new APIPromise($do40(client$, request, options));
61451
+ return new APIPromise($do48(client$, request, options));
60339
61452
  }
60340
- async function $do40(client$, request, options) {
61453
+ async function $do48(client$, request, options) {
60341
61454
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
60342
61455
  if (!parsed$.ok) {
60343
61456
  return [parsed$, { status: "invalid" }];
@@ -60413,12 +61526,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
60413
61526
  });
60414
61527
 
60415
61528
  // src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
60416
- var args33, tool$promptsV2PromptTopicsUpdate;
61529
+ var args39, tool$promptsV2PromptTopicsUpdate;
60417
61530
  var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
60418
61531
  init_promptsV2PromptTopicsUpdate();
60419
61532
  init_v2prompttopicsupdateop();
60420
61533
  init_tools();
60421
- args33 = {
61534
+ args39 = {
60422
61535
  request: V2PromptTopicsUpdateRequest$zodSchema
60423
61536
  };
60424
61537
  tool$promptsV2PromptTopicsUpdate = {
@@ -60433,7 +61546,7 @@ Renames a prompt topic and returns the updated topic.`,
60433
61546
  openWorldHint: false,
60434
61547
  readOnlyHint: false
60435
61548
  },
60436
- args: args33,
61549
+ args: args39,
60437
61550
  tool: async (client, args, ctx) => {
60438
61551
  const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60439
61552
  if (!result.ok) {
@@ -60476,9 +61589,9 @@ var init_createv2repositoryrequest = __esm(() => {
60476
61589
 
60477
61590
  // src/funcs/repositoriesV2RepositoriesCreate.ts
60478
61591
  function repositoriesV2RepositoriesCreate(client$, request, options) {
60479
- return new APIPromise($do41(client$, request, options));
61592
+ return new APIPromise($do49(client$, request, options));
60480
61593
  }
60481
- async function $do41(client$, request, options) {
61594
+ async function $do49(client$, request, options) {
60482
61595
  const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
60483
61596
  if (!parsed$.ok) {
60484
61597
  return [parsed$, { status: "invalid" }];
@@ -60548,12 +61661,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
60548
61661
  });
60549
61662
 
60550
61663
  // src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
60551
- var args34, tool$repositoriesV2RepositoriesCreate;
61664
+ var args40, tool$repositoriesV2RepositoriesCreate;
60552
61665
  var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
60553
61666
  init_repositoriesV2RepositoriesCreate();
60554
61667
  init_createv2repositoryrequest();
60555
61668
  init_tools();
60556
- args34 = {
61669
+ args40 = {
60557
61670
  request: CreateV2RepositoryRequest$zodSchema
60558
61671
  };
60559
61672
  tool$repositoriesV2RepositoriesCreate = {
@@ -60568,7 +61681,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
60568
61681
  openWorldHint: false,
60569
61682
  readOnlyHint: false
60570
61683
  },
60571
- args: args34,
61684
+ args: args40,
60572
61685
  tool: async (client, args, ctx) => {
60573
61686
  const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60574
61687
  if (!result.ok) {
@@ -60634,9 +61747,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
60634
61747
 
60635
61748
  // src/funcs/repositoriesV2RepositoriesDelete.ts
60636
61749
  function repositoriesV2RepositoriesDelete(client$, request, options) {
60637
- return new APIPromise($do42(client$, request, options));
61750
+ return new APIPromise($do50(client$, request, options));
60638
61751
  }
60639
- async function $do42(client$, request, options) {
61752
+ async function $do50(client$, request, options) {
60640
61753
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
60641
61754
  if (!parsed$.ok) {
60642
61755
  return [parsed$, { status: "invalid" }];
@@ -60711,12 +61824,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
60711
61824
  });
60712
61825
 
60713
61826
  // src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
60714
- var args35, tool$repositoriesV2RepositoriesDelete;
61827
+ var args41, tool$repositoriesV2RepositoriesDelete;
60715
61828
  var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
60716
61829
  init_repositoriesV2RepositoriesDelete();
60717
61830
  init_v2repositoriesdeleteop();
60718
61831
  init_tools();
60719
- args35 = {
61832
+ args41 = {
60720
61833
  request: V2RepositoriesDeleteRequest$zodSchema
60721
61834
  };
60722
61835
  tool$repositoriesV2RepositoriesDelete = {
@@ -60731,7 +61844,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
60731
61844
  openWorldHint: false,
60732
61845
  readOnlyHint: false
60733
61846
  },
60734
- args: args35,
61847
+ args: args41,
60735
61848
  tool: async (client, args, ctx) => {
60736
61849
  const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60737
61850
  if (!result.ok) {
@@ -60747,9 +61860,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
60747
61860
 
60748
61861
  // src/funcs/repositoriesV2RepositoriesList.ts
60749
61862
  function repositoriesV2RepositoriesList(client$, options) {
60750
- return new APIPromise($do43(client$, options));
61863
+ return new APIPromise($do51(client$, options));
60751
61864
  }
60752
- async function $do43(client$, options) {
61865
+ async function $do51(client$, options) {
60753
61866
  const path$ = pathToFunc("/v2/repositories")();
60754
61867
  const headers$ = new Headers(compactMap({
60755
61868
  Accept: "application/json"
@@ -60854,9 +61967,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
60854
61967
 
60855
61968
  // src/funcs/repositoriesV2RepositoriesRetrieve.ts
60856
61969
  function repositoriesV2RepositoriesRetrieve(client$, request, options) {
60857
- return new APIPromise($do44(client$, request, options));
61970
+ return new APIPromise($do52(client$, request, options));
60858
61971
  }
60859
- async function $do44(client$, request, options) {
61972
+ async function $do52(client$, request, options) {
60860
61973
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60861
61974
  if (!parsed$.ok) {
60862
61975
  return [parsed$, { status: "invalid" }];
@@ -60931,12 +62044,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
60931
62044
  });
60932
62045
 
60933
62046
  // src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
60934
- var args36, tool$repositoriesV2RepositoriesRetrieve;
62047
+ var args42, tool$repositoriesV2RepositoriesRetrieve;
60935
62048
  var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
60936
62049
  init_repositoriesV2RepositoriesRetrieve();
60937
62050
  init_v2repositoriesretrieveop();
60938
62051
  init_tools();
60939
- args36 = {
62052
+ args42 = {
60940
62053
  request: V2RepositoriesRetrieveRequest$zodSchema
60941
62054
  };
60942
62055
  tool$repositoriesV2RepositoriesRetrieve = {
@@ -60951,7 +62064,7 @@ Returns one reusable repository workspace.`,
60951
62064
  openWorldHint: false,
60952
62065
  readOnlyHint: true
60953
62066
  },
60954
- args: args36,
62067
+ args: args42,
60955
62068
  tool: async (client, args, ctx) => {
60956
62069
  const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60957
62070
  if (!result.ok) {
@@ -61011,9 +62124,9 @@ var init_v2repositoriesupdateop = __esm(() => {
61011
62124
 
61012
62125
  // src/funcs/repositoriesV2RepositoriesUpdate.ts
61013
62126
  function repositoriesV2RepositoriesUpdate(client$, request, options) {
61014
- return new APIPromise($do45(client$, request, options));
62127
+ return new APIPromise($do53(client$, request, options));
61015
62128
  }
61016
- async function $do45(client$, request, options) {
62129
+ async function $do53(client$, request, options) {
61017
62130
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
61018
62131
  if (!parsed$.ok) {
61019
62132
  return [parsed$, { status: "invalid" }];
@@ -61089,12 +62202,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
61089
62202
  });
61090
62203
 
61091
62204
  // src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
61092
- var args37, tool$repositoriesV2RepositoriesUpdate;
62205
+ var args43, tool$repositoriesV2RepositoriesUpdate;
61093
62206
  var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
61094
62207
  init_repositoriesV2RepositoriesUpdate();
61095
62208
  init_v2repositoriesupdateop();
61096
62209
  init_tools();
61097
- args37 = {
62210
+ args43 = {
61098
62211
  request: V2RepositoriesUpdateRequest$zodSchema
61099
62212
  };
61100
62213
  tool$repositoriesV2RepositoriesUpdate = {
@@ -61109,7 +62222,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
61109
62222
  openWorldHint: false,
61110
62223
  readOnlyHint: false
61111
62224
  },
61112
- args: args37,
62225
+ args: args43,
61113
62226
  tool: async (client, args, ctx) => {
61114
62227
  const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61115
62228
  if (!result.ok) {
@@ -61125,9 +62238,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
61125
62238
 
61126
62239
  // src/funcs/siteAuditsV2SiteAuditsList.ts
61127
62240
  function siteAuditsV2SiteAuditsList(client$, options) {
61128
- return new APIPromise($do46(client$, options));
62241
+ return new APIPromise($do54(client$, options));
61129
62242
  }
61130
- async function $do46(client$, options) {
62243
+ async function $do54(client$, options) {
61131
62244
  const path$ = pathToFunc("/v2/site-audits")();
61132
62245
  const headers$ = new Headers(compactMap({
61133
62246
  Accept: "application/json"
@@ -61268,9 +62381,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
61268
62381
 
61269
62382
  // src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
61270
62383
  function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
61271
- return new APIPromise($do47(client$, request, options));
62384
+ return new APIPromise($do55(client$, request, options));
61272
62385
  }
61273
- async function $do47(client$, request, options) {
62386
+ async function $do55(client$, request, options) {
61274
62387
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61275
62388
  if (!parsed$.ok) {
61276
62389
  return [parsed$, { status: "invalid" }];
@@ -61345,12 +62458,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
61345
62458
  });
61346
62459
 
61347
62460
  // src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
61348
- var args38, tool$siteAuditsV2SiteAuditsRetrieve;
62461
+ var args44, tool$siteAuditsV2SiteAuditsRetrieve;
61349
62462
  var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
61350
62463
  init_siteAuditsV2SiteAuditsRetrieve();
61351
62464
  init_v2siteauditsretrieveop();
61352
62465
  init_tools();
61353
- args38 = {
62466
+ args44 = {
61354
62467
  request: V2SiteAuditsRetrieveRequest$zodSchema
61355
62468
  };
61356
62469
  tool$siteAuditsV2SiteAuditsRetrieve = {
@@ -61365,7 +62478,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
61365
62478
  openWorldHint: false,
61366
62479
  readOnlyHint: true
61367
62480
  },
61368
- args: args38,
62481
+ args: args44,
61369
62482
  tool: async (client, args, ctx) => {
61370
62483
  const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61371
62484
  if (!result.ok) {
@@ -61381,9 +62494,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
61381
62494
 
61382
62495
  // src/funcs/skillsV2SkillsList.ts
61383
62496
  function skillsV2SkillsList(client$, options) {
61384
- return new APIPromise($do48(client$, options));
62497
+ return new APIPromise($do56(client$, options));
61385
62498
  }
61386
- async function $do48(client$, options) {
62499
+ async function $do56(client$, options) {
61387
62500
  const path$ = pathToFunc("/v2/skills")();
61388
62501
  const headers$ = new Headers(compactMap({
61389
62502
  Accept: "application/json"
@@ -61473,9 +62586,9 @@ Returns reusable skills available to workflows and eval configurations.`,
61473
62586
 
61474
62587
  // src/funcs/statusV2AuthStatusGet.ts
61475
62588
  function statusV2AuthStatusGet(client$, options) {
61476
- return new APIPromise($do49(client$, options));
62589
+ return new APIPromise($do57(client$, options));
61477
62590
  }
61478
- async function $do49(client$, options) {
62591
+ async function $do57(client$, options) {
61479
62592
  const path$ = pathToFunc("/v2/auth/status")();
61480
62593
  const headers$ = new Headers(compactMap({
61481
62594
  Accept: "application/json"
@@ -61565,9 +62678,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
61565
62678
 
61566
62679
  // src/funcs/statusV2StatusGet.ts
61567
62680
  function statusV2StatusGet(client$, options) {
61568
- return new APIPromise($do50(client$, options));
62681
+ return new APIPromise($do58(client$, options));
61569
62682
  }
61570
- async function $do50(client$, options) {
62683
+ async function $do58(client$, options) {
61571
62684
  const path$ = pathToFunc("/v2/status")();
61572
62685
  const headers$ = new Headers(compactMap({
61573
62686
  Accept: "application/json"
@@ -61787,9 +62900,9 @@ var init_v2taskslistop = __esm(() => {
61787
62900
 
61788
62901
  // src/funcs/tasksV2TasksList.ts
61789
62902
  function tasksV2TasksList(client$, request, options) {
61790
- return new APIPromise($do51(client$, request, options));
62903
+ return new APIPromise($do59(client$, request, options));
61791
62904
  }
61792
- async function $do51(client$, request, options) {
62905
+ async function $do59(client$, request, options) {
61793
62906
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
61794
62907
  if (!parsed$.ok) {
61795
62908
  return [parsed$, { status: "invalid" }];
@@ -61863,12 +62976,12 @@ var init_tasksV2TasksList = __esm(() => {
61863
62976
  });
61864
62977
 
61865
62978
  // src/mcp-server/tools/tasksV2TasksList.ts
61866
- var args39, tool$tasksV2TasksList;
62979
+ var args45, tool$tasksV2TasksList;
61867
62980
  var init_tasksV2TasksList2 = __esm(() => {
61868
62981
  init_tasksV2TasksList();
61869
62982
  init_v2taskslistop();
61870
62983
  init_tools();
61871
- args39 = {
62984
+ args45 = {
61872
62985
  request: V2TasksListRequest$zodSchema.optional()
61873
62986
  };
61874
62987
  tool$tasksV2TasksList = {
@@ -61883,7 +62996,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
61883
62996
  openWorldHint: false,
61884
62997
  readOnlyHint: true
61885
62998
  },
61886
- args: args39,
62999
+ args: args45,
61887
63000
  tool: async (client, args, ctx) => {
61888
63001
  const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61889
63002
  if (!result.ok) {
@@ -61914,9 +63027,9 @@ var init_v2tasksretrieveop = __esm(() => {
61914
63027
 
61915
63028
  // src/funcs/tasksV2TasksRetrieve.ts
61916
63029
  function tasksV2TasksRetrieve(client$, request, options) {
61917
- return new APIPromise($do52(client$, request, options));
63030
+ return new APIPromise($do60(client$, request, options));
61918
63031
  }
61919
- async function $do52(client$, request, options) {
63032
+ async function $do60(client$, request, options) {
61920
63033
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61921
63034
  if (!parsed$.ok) {
61922
63035
  return [parsed$, { status: "invalid" }];
@@ -61991,12 +63104,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
61991
63104
  });
61992
63105
 
61993
63106
  // src/mcp-server/tools/tasksV2TasksRetrieve.ts
61994
- var args40, tool$tasksV2TasksRetrieve;
63107
+ var args46, tool$tasksV2TasksRetrieve;
61995
63108
  var init_tasksV2TasksRetrieve2 = __esm(() => {
61996
63109
  init_tasksV2TasksRetrieve();
61997
63110
  init_v2tasksretrieveop();
61998
63111
  init_tools();
61999
- args40 = {
63112
+ args46 = {
62000
63113
  request: V2TasksRetrieveRequest$zodSchema
62001
63114
  };
62002
63115
  tool$tasksV2TasksRetrieve = {
@@ -62011,7 +63124,7 @@ Returns one persisted task and its execution prompt.`,
62011
63124
  openWorldHint: false,
62012
63125
  readOnlyHint: true
62013
63126
  },
62014
- args: args40,
63127
+ args: args46,
62015
63128
  tool: async (client, args, ctx) => {
62016
63129
  const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62017
63130
  if (!result.ok) {
@@ -62074,9 +63187,9 @@ var init_v2tasksupdateop = __esm(() => {
62074
63187
 
62075
63188
  // src/funcs/tasksV2TasksUpdate.ts
62076
63189
  function tasksV2TasksUpdate(client$, request, options) {
62077
- return new APIPromise($do53(client$, request, options));
63190
+ return new APIPromise($do61(client$, request, options));
62078
63191
  }
62079
- async function $do53(client$, request, options) {
63192
+ async function $do61(client$, request, options) {
62080
63193
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
62081
63194
  if (!parsed$.ok) {
62082
63195
  return [parsed$, { status: "invalid" }];
@@ -62152,12 +63265,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
62152
63265
  });
62153
63266
 
62154
63267
  // src/mcp-server/tools/tasksV2TasksUpdate.ts
62155
- var args41, tool$tasksV2TasksUpdate;
63268
+ var args47, tool$tasksV2TasksUpdate;
62156
63269
  var init_tasksV2TasksUpdate2 = __esm(() => {
62157
63270
  init_tasksV2TasksUpdate();
62158
63271
  init_v2tasksupdateop();
62159
63272
  init_tools();
62160
- args41 = {
63273
+ args47 = {
62161
63274
  request: V2TasksUpdateRequest$zodSchema
62162
63275
  };
62163
63276
  tool$tasksV2TasksUpdate = {
@@ -62172,7 +63285,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
62172
63285
  openWorldHint: false,
62173
63286
  readOnlyHint: false
62174
63287
  },
62175
- args: args41,
63288
+ args: args47,
62176
63289
  tool: async (client, args, ctx) => {
62177
63290
  const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62178
63291
  if (!result.ok) {
@@ -62260,9 +63373,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
62260
63373
 
62261
63374
  // src/funcs/visibilityV2VisibilityCitationsList.ts
62262
63375
  function visibilityV2VisibilityCitationsList(client$, request, options) {
62263
- return new APIPromise($do54(client$, request, options));
63376
+ return new APIPromise($do62(client$, request, options));
62264
63377
  }
62265
- async function $do54(client$, request, options) {
63378
+ async function $do62(client$, request, options) {
62266
63379
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
62267
63380
  if (!parsed$.ok) {
62268
63381
  return [parsed$, { status: "invalid" }];
@@ -62339,12 +63452,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
62339
63452
  });
62340
63453
 
62341
63454
  // src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
62342
- var args42, tool$visibilityV2VisibilityCitationsList;
63455
+ var args48, tool$visibilityV2VisibilityCitationsList;
62343
63456
  var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
62344
63457
  init_visibilityV2VisibilityCitationsList();
62345
63458
  init_v2visibilitycitationslistop();
62346
63459
  init_tools();
62347
- args42 = {
63460
+ args48 = {
62348
63461
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
62349
63462
  };
62350
63463
  tool$visibilityV2VisibilityCitationsList = {
@@ -62359,7 +63472,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
62359
63472
  openWorldHint: false,
62360
63473
  readOnlyHint: true
62361
63474
  },
62362
- args: args42,
63475
+ args: args48,
62363
63476
  tool: async (client, args, ctx) => {
62364
63477
  const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62365
63478
  if (!result.ok) {
@@ -62424,9 +63537,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
62424
63537
 
62425
63538
  // src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
62426
63539
  function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
62427
- return new APIPromise($do55(client$, request, options));
63540
+ return new APIPromise($do63(client$, request, options));
62428
63541
  }
62429
- async function $do55(client$, request, options) {
63542
+ async function $do63(client$, request, options) {
62430
63543
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
62431
63544
  if (!parsed$.ok) {
62432
63545
  return [parsed$, { status: "invalid" }];
@@ -62500,12 +63613,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
62500
63613
  });
62501
63614
 
62502
63615
  // src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
62503
- var args43, tool$visibilityV2VisibilityCurrentRetrieve;
63616
+ var args49, tool$visibilityV2VisibilityCurrentRetrieve;
62504
63617
  var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
62505
63618
  init_visibilityV2VisibilityCurrentRetrieve();
62506
63619
  init_v2visibilitycurrentretrieveop();
62507
63620
  init_tools();
62508
- args43 = {
63621
+ args49 = {
62509
63622
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
62510
63623
  };
62511
63624
  tool$visibilityV2VisibilityCurrentRetrieve = {
@@ -62520,7 +63633,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
62520
63633
  openWorldHint: false,
62521
63634
  readOnlyHint: true
62522
63635
  },
62523
- args: args43,
63636
+ args: args49,
62524
63637
  tool: async (client, args, ctx) => {
62525
63638
  const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62526
63639
  if (!result.ok) {
@@ -62663,9 +63776,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
62663
63776
 
62664
63777
  // src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
62665
63778
  function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
62666
- return new APIPromise($do56(client$, request, options));
63779
+ return new APIPromise($do64(client$, request, options));
62667
63780
  }
62668
- async function $do56(client$, request, options) {
63781
+ async function $do64(client$, request, options) {
62669
63782
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
62670
63783
  if (!parsed$.ok) {
62671
63784
  return [parsed$, { status: "invalid" }];
@@ -62739,12 +63852,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
62739
63852
  });
62740
63853
 
62741
63854
  // src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
62742
- var args44, tool$visibilityV2VisibilityOverviewRetrieve;
63855
+ var args50, tool$visibilityV2VisibilityOverviewRetrieve;
62743
63856
  var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
62744
63857
  init_visibilityV2VisibilityOverviewRetrieve();
62745
63858
  init_v2visibilityoverviewretrieveop();
62746
63859
  init_tools();
62747
- args44 = {
63860
+ args50 = {
62748
63861
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
62749
63862
  };
62750
63863
  tool$visibilityV2VisibilityOverviewRetrieve = {
@@ -62759,7 +63872,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
62759
63872
  openWorldHint: false,
62760
63873
  readOnlyHint: true
62761
63874
  },
62762
- args: args44,
63875
+ args: args50,
62763
63876
  tool: async (client, args, ctx) => {
62764
63877
  const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62765
63878
  if (!result.ok) {
@@ -62873,9 +63986,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
62873
63986
 
62874
63987
  // src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
62875
63988
  function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
62876
- return new APIPromise($do57(client$, request, options));
63989
+ return new APIPromise($do65(client$, request, options));
62877
63990
  }
62878
- async function $do57(client$, request, options) {
63991
+ async function $do65(client$, request, options) {
62879
63992
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
62880
63993
  if (!parsed$.ok) {
62881
63994
  return [parsed$, { status: "invalid" }];
@@ -62949,12 +64062,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
62949
64062
  });
62950
64063
 
62951
64064
  // src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
62952
- var args45, tool$visibilityV2VisibilityPromptsRetrieve;
64065
+ var args51, tool$visibilityV2VisibilityPromptsRetrieve;
62953
64066
  var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
62954
64067
  init_visibilityV2VisibilityPromptsRetrieve();
62955
64068
  init_v2visibilitypromptsretrieveop();
62956
64069
  init_tools();
62957
- args45 = {
64070
+ args51 = {
62958
64071
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
62959
64072
  };
62960
64073
  tool$visibilityV2VisibilityPromptsRetrieve = {
@@ -62969,7 +64082,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
62969
64082
  openWorldHint: false,
62970
64083
  readOnlyHint: true
62971
64084
  },
62972
- args: args45,
64085
+ args: args51,
62973
64086
  tool: async (client, args, ctx) => {
62974
64087
  const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62975
64088
  if (!result.ok) {
@@ -62993,7 +64106,7 @@ function createMCPServer(deps) {
62993
64106
  sizes: ["any"]
62994
64107
  }],
62995
64108
  name: "LightsageMcp",
62996
- version: "0.4.5"
64109
+ version: "0.4.7"
62997
64110
  });
62998
64111
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
62999
64112
  security: deps.security,
@@ -63059,6 +64172,14 @@ function createMCPServer(deps) {
63059
64172
  tool(tool$evalTemplatesV2EvalTemplatesUpdate);
63060
64173
  tool(tool$evalTemplatesV2EvalTemplatesDelete);
63061
64174
  tool(tool$evalRunsV2EvalRunsList);
64175
+ tool(tool$agentPreferenceCompetitorsList);
64176
+ tool(tool$agentPreferenceHeadToHeadRetrieve);
64177
+ tool(tool$agentPreferenceEvalsList);
64178
+ tool(tool$agentPreferenceEvalsCreate);
64179
+ tool(tool$agentPreferenceEvalsRetrieve);
64180
+ tool(tool$agentPreferenceEvalsUpdate);
64181
+ tool(tool$agentPreferenceEvalsDelete);
64182
+ tool(tool$agentPreferenceEvalsResultsList);
63062
64183
  tool(tool$agentsV2AgentsList);
63063
64184
  tool(tool$repositoriesV2RepositoriesList);
63064
64185
  tool(tool$repositoriesV2RepositoriesCreate);
@@ -63079,6 +64200,14 @@ var init_server2 = __esm(() => {
63079
64200
  init_core3();
63080
64201
  init_resources();
63081
64202
  init_tools();
64203
+ init_agentPreferenceCompetitorsList2();
64204
+ init_agentPreferenceEvalsCreate2();
64205
+ init_agentPreferenceEvalsDelete2();
64206
+ init_agentPreferenceEvalsList2();
64207
+ init_agentPreferenceEvalsResultsList2();
64208
+ init_agentPreferenceEvalsRetrieve2();
64209
+ init_agentPreferenceEvalsUpdate2();
64210
+ init_agentPreferenceHeadToHeadRetrieve2();
63082
64211
  init_agentsV2AgentsList2();
63083
64212
  init_clIsV2ClisList2();
63084
64213
  init_environmentsV2EnvironmentsList2();
@@ -63291,9 +64420,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
63291
64420
  },
63292
64421
  {
63293
64422
  name: "evals-v2-evals-list",
63294
- description: `List Evals
63295
-
63296
- Returns all active eval definitions owned by the organization.`
64423
+ description: "List Evals\n\nReturns all active eval definitions owned by the organization. Agent Preference evals are not included; list them with `GET /v2/agent-preference/evals`."
63297
64424
  },
63298
64425
  {
63299
64426
  name: "evals-v2-evals-create",
@@ -63399,6 +64526,46 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
63399
64526
  name: "eval-runs-v2-eval-runs-list",
63400
64527
  description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
63401
64528
  },
64529
+ {
64530
+ name: "agent-preference-competitors-list",
64531
+ description: "List Competitors\n\nReturns the tracked competitors your company can be compared against. Use a returned `id` as `competitor_id` when creating an Agent Preference eval."
64532
+ },
64533
+ {
64534
+ name: "agent-preference-head-to-head-retrieve",
64535
+ description: "Retrieve Head To Head\n\nReturns how often agents recommended your company over each tracked competitor: wins, losses, ties, and win rate per competitor plus a combined record. Calculated from the most recent attempts across all Agent Preference evals, up to `limit`; `truncated` reports whether older attempts were left out."
64536
+ },
64537
+ {
64538
+ name: "agent-preference-evals-list",
64539
+ description: `List Evals
64540
+
64541
+ Returns all active Agent Preference evals owned by the organization.`
64542
+ },
64543
+ {
64544
+ name: "agent-preference-evals-create",
64545
+ description: "Create Eval\n\nCreates a head-to-head comparison between your company and one tracked competitor. Each prompt asks an agent to choose, and a fixed judge records which company it recommended. Creating the eval does not start a run; pass the returned `id` as `eval_id` to `POST /v2/eval-runs`."
64546
+ },
64547
+ {
64548
+ name: "agent-preference-evals-retrieve",
64549
+ description: `Retrieve Eval
64550
+
64551
+ Returns one Agent Preference eval.`
64552
+ },
64553
+ {
64554
+ name: "agent-preference-evals-update",
64555
+ description: "Update Eval\n\nUpdates an Agent Preference eval. Omitted fields remain unchanged, an empty `agent` or `tags` array clears that collection, and `persona: null` clears the saved persona. The competitor and the judge that decides the comparison cannot be changed."
64556
+ },
64557
+ {
64558
+ name: "agent-preference-evals-delete",
64559
+ description: `Delete Eval
64560
+
64561
+ Permanently deletes an Agent Preference eval and returns its last saved state.`
64562
+ },
64563
+ {
64564
+ name: "agent-preference-evals-results-list",
64565
+ description: `List Results
64566
+
64567
+ Returns recorded attempts for an Agent Preference eval, newest first, each with whether your company won, lost, or tied against the competitor.`
64568
+ },
63402
64569
  {
63403
64570
  name: "agents-v2-agents-list",
63404
64571
  description: `List Agents
@@ -64363,7 +65530,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
64363
65530
  <h1>Instructions</h1>
64364
65531
  <p>One-click installation for Claude Desktop users</p>
64365
65532
  <div class="instruction-item">
64366
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.5/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
65533
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.7/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
64367
65534
  \uD83D\uDCE5 Download MCP Bundle
64368
65535
  </a>
64369
65536
  </div>
@@ -67241,7 +68408,7 @@ var routes = buildRouteMap({
67241
68408
  var app = buildApplication(routes, {
67242
68409
  name: "mcp",
67243
68410
  versionInfo: {
67244
- currentVersion: "0.4.5"
68411
+ currentVersion: "0.4.7"
67245
68412
  }
67246
68413
  });
67247
68414
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -67249,5 +68416,5 @@ export {
67249
68416
  app
67250
68417
  };
67251
68418
 
67252
- //# debugId=243CF3FE60B2C5ED64756E2164756E21
68419
+ //# debugId=5CAAC599E0BB518C64756E2164756E21
67253
68420
  //# sourceMappingURL=mcp-server.js.map