@lightsage/mcp 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/mcp-server.js +1535 -366
- package/bin/mcp-server.js.map +47 -15
- package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts +15 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.js +72 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.js.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts +16 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.js +83 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.js.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts +16 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.js +88 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.js.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.d.ts +15 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.d.ts.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.js +72 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsList.js.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts +16 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.js +88 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.js.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts +16 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.js +89 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.js.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts +16 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js +86 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.d.ts +16 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.d.ts.map +1 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.js +93 -0
- package/esm/funcs/agentPreferenceV2AgentPreferenceResultsList.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +17 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts +3 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.js +30 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.js.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts +7 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.js +35 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.js.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts +7 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.js +35 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.js.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.d.ts +3 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.js +30 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.js.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts +7 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.js +35 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.js.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts +7 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.js +35 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.js.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts +7 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js +35 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.js.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.d.ts +7 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.d.ts.map +1 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.js +35 -0
- package/esm/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.js.map +1 -0
- package/esm/models/createevaltemplaterequest.d.ts +1 -1
- package/esm/models/createv2agentpreferenceevalrequest.d.ts +14 -0
- package/esm/models/createv2agentpreferenceevalrequest.d.ts.map +1 -0
- package/esm/models/createv2agentpreferenceevalrequest.js +17 -0
- package/esm/models/createv2agentpreferenceevalrequest.js.map +1 -0
- package/esm/models/evaltemplate.d.ts +1 -1
- package/esm/models/updateevaltemplaterequest.d.ts +1 -1
- package/esm/models/updatev2agentpreferenceevalrequest.d.ts +13 -0
- package/esm/models/updatev2agentpreferenceevalrequest.d.ts.map +1 -0
- package/esm/models/updatev2agentpreferenceevalrequest.js +16 -0
- package/esm/models/updatev2agentpreferenceevalrequest.js.map +1 -0
- package/esm/models/v2agentpreferencecompany.d.ts +7 -0
- package/esm/models/v2agentpreferencecompany.d.ts.map +1 -0
- package/esm/models/v2agentpreferencecompany.js +10 -0
- package/esm/models/v2agentpreferencecompany.js.map +1 -0
- package/esm/models/v2agentpreferencecompetitor.d.ts +9 -0
- package/esm/models/v2agentpreferencecompetitor.d.ts.map +1 -0
- package/esm/models/v2agentpreferencecompetitor.js +12 -0
- package/esm/models/v2agentpreferencecompetitor.js.map +1 -0
- package/esm/models/v2agentpreferencecompetitorsresponse.d.ts +8 -0
- package/esm/models/v2agentpreferencecompetitorsresponse.d.ts.map +1 -0
- package/esm/models/v2agentpreferencecompetitorsresponse.js +11 -0
- package/esm/models/v2agentpreferencecompetitorsresponse.js.map +1 -0
- package/esm/models/v2agentpreferenceeval.d.ts +19 -0
- package/esm/models/v2agentpreferenceeval.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceeval.js +23 -0
- package/esm/models/v2agentpreferenceeval.js.map +1 -0
- package/esm/models/v2agentpreferenceevalscreateop.d.ts +6 -0
- package/esm/models/v2agentpreferenceevalscreateop.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceevalscreateop.js +12 -0
- package/esm/models/v2agentpreferenceevalscreateop.js.map +1 -0
- package/esm/models/v2agentpreferenceevalsdeleteop.d.ts +10 -0
- package/esm/models/v2agentpreferenceevalsdeleteop.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceevalsdeleteop.js +15 -0
- package/esm/models/v2agentpreferenceevalsdeleteop.js.map +1 -0
- package/esm/models/v2agentpreferenceevalsresponse.d.ts +8 -0
- package/esm/models/v2agentpreferenceevalsresponse.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceevalsresponse.js +11 -0
- package/esm/models/v2agentpreferenceevalsresponse.js.map +1 -0
- package/esm/models/v2agentpreferenceevalsretrieveop.d.ts +10 -0
- package/esm/models/v2agentpreferenceevalsretrieveop.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceevalsretrieveop.js +15 -0
- package/esm/models/v2agentpreferenceevalsretrieveop.js.map +1 -0
- package/esm/models/v2agentpreferenceevalsupdateop.d.ts +12 -0
- package/esm/models/v2agentpreferenceevalsupdateop.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceevalsupdateop.js +17 -0
- package/esm/models/v2agentpreferenceevalsupdateop.js.map +1 -0
- package/esm/models/v2agentpreferenceheadtoheadresponse.d.ts +15 -0
- package/esm/models/v2agentpreferenceheadtoheadresponse.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceheadtoheadresponse.js +18 -0
- package/esm/models/v2agentpreferenceheadtoheadresponse.js.map +1 -0
- package/esm/models/v2agentpreferenceheadtoheadretrieveop.d.ts +10 -0
- package/esm/models/v2agentpreferenceheadtoheadretrieveop.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceheadtoheadretrieveop.js +15 -0
- package/esm/models/v2agentpreferenceheadtoheadretrieveop.js.map +1 -0
- package/esm/models/v2agentpreferencematchup.d.ts +14 -0
- package/esm/models/v2agentpreferencematchup.d.ts.map +1 -0
- package/esm/models/v2agentpreferencematchup.js +17 -0
- package/esm/models/v2agentpreferencematchup.js.map +1 -0
- package/esm/models/v2agentpreferencerecord.d.ts +10 -0
- package/esm/models/v2agentpreferencerecord.d.ts.map +1 -0
- package/esm/models/v2agentpreferencerecord.js +13 -0
- package/esm/models/v2agentpreferencerecord.js.map +1 -0
- package/esm/models/v2agentpreferenceresult.d.ts +12 -0
- package/esm/models/v2agentpreferenceresult.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceresult.js +16 -0
- package/esm/models/v2agentpreferenceresult.js.map +1 -0
- package/esm/models/v2agentpreferenceresultslistop.d.ts +12 -0
- package/esm/models/v2agentpreferenceresultslistop.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceresultslistop.js +17 -0
- package/esm/models/v2agentpreferenceresultslistop.js.map +1 -0
- package/esm/models/v2agentpreferenceresultsresponse.d.ts +11 -0
- package/esm/models/v2agentpreferenceresultsresponse.d.ts.map +1 -0
- package/esm/models/v2agentpreferenceresultsresponse.js +14 -0
- package/esm/models/v2agentpreferenceresultsresponse.js.map +1 -0
- package/esm/models/v2evalresultsummary.d.ts +2 -0
- package/esm/models/v2evalresultsummary.d.ts.map +1 -1
- package/esm/models/v2evalresultsummary.js +3 -0
- package/esm/models/v2evalresultsummary.js.map +1 -1
- package/esm/models/v2preferenceresult.d.ts +30 -0
- package/esm/models/v2preferenceresult.d.ts.map +1 -0
- package/esm/models/v2preferenceresult.js +26 -0
- package/esm/models/v2preferenceresult.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +32 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/agentPreferenceV2AgentPreferenceCompetitorsList.ts +124 -0
- package/src/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.ts +145 -0
- package/src/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.ts +153 -0
- package/src/funcs/agentPreferenceV2AgentPreferenceEvalsList.ts +124 -0
- package/src/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.ts +153 -0
- package/src/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.ts +154 -0
- package/src/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts +151 -0
- package/src/funcs/agentPreferenceV2AgentPreferenceResultsList.ts +158 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -1
- package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.ts +37 -0
- package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.ts +45 -0
- package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.ts +45 -0
- package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.ts +36 -0
- package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.ts +45 -0
- package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.ts +45 -0
- package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts +44 -0
- package/src/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.ts +45 -0
- package/src/models/createv2agentpreferenceevalrequest.ts +48 -0
- package/src/models/updatev2agentpreferenceevalrequest.ts +38 -0
- package/src/models/v2agentpreferencecompany.ts +18 -0
- package/src/models/v2agentpreferencecompetitor.ts +22 -0
- package/src/models/v2agentpreferencecompetitorsresponse.ts +22 -0
- package/src/models/v2agentpreferenceeval.ts +54 -0
- package/src/models/v2agentpreferenceevalscreateop.ts +25 -0
- package/src/models/v2agentpreferenceevalsdeleteop.ts +33 -0
- package/src/models/v2agentpreferenceevalsresponse.ts +22 -0
- package/src/models/v2agentpreferenceevalsretrieveop.ts +33 -0
- package/src/models/v2agentpreferenceevalsupdateop.ts +41 -0
- package/src/models/v2agentpreferenceheadtoheadresponse.ts +46 -0
- package/src/models/v2agentpreferenceheadtoheadretrieveop.ts +37 -0
- package/src/models/v2agentpreferencematchup.ts +42 -0
- package/src/models/v2agentpreferencerecord.ts +30 -0
- package/src/models/v2agentpreferenceresult.ts +35 -0
- package/src/models/v2agentpreferenceresultslistop.ts +39 -0
- package/src/models/v2agentpreferenceresultsresponse.ts +28 -0
- package/src/models/v2evalresultsummary.ts +9 -0
- package/src/models/v2preferenceresult.ts +50 -0
- package/src/tool-names.ts +32 -0
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.
|
|
52847
|
+
sdkVersion: "0.4.6",
|
|
52848
52848
|
genVersion: "2.943.0",
|
|
52849
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.4.
|
|
52849
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.6 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/agentPreferenceV2AgentPreferenceCompetitorsList.ts
|
|
54269
|
+
function agentPreferenceV2AgentPreferenceCompetitorsList(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_agentPreferenceV2AgentPreferenceCompetitorsList = __esm(() => {
|
|
54324
|
+
init_primitives();
|
|
54325
|
+
init_security();
|
|
54326
|
+
init_url();
|
|
54327
|
+
init_async();
|
|
54328
|
+
});
|
|
54329
|
+
|
|
54330
|
+
// src/mcp-server/tools/agentPreferenceV2AgentPreferenceCompetitorsList.ts
|
|
54331
|
+
var tool$agentPreferenceV2AgentPreferenceCompetitorsList;
|
|
54332
|
+
var init_agentPreferenceV2AgentPreferenceCompetitorsList2 = __esm(() => {
|
|
54333
|
+
init_agentPreferenceV2AgentPreferenceCompetitorsList();
|
|
54334
|
+
init_tools();
|
|
54335
|
+
tool$agentPreferenceV2AgentPreferenceCompetitorsList = {
|
|
54336
|
+
name: "agent-preference-v2-agent-preference-competitors-9f0",
|
|
54337
|
+
description: `List Competitors
|
|
54338
|
+
|
|
54339
|
+
Returns the tracked competitors your company can be compared against. Use a returned \`id\` as \`competitor_id\` when creating an Agent Preference eval.`,
|
|
54340
|
+
annotations: {
|
|
54341
|
+
title: "",
|
|
54342
|
+
destructiveHint: false,
|
|
54343
|
+
idempotentHint: false,
|
|
54344
|
+
openWorldHint: false,
|
|
54345
|
+
readOnlyHint: true
|
|
54346
|
+
},
|
|
54347
|
+
tool: async (client, ctx) => {
|
|
54348
|
+
const [result] = await agentPreferenceV2AgentPreferenceCompetitorsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54349
|
+
if (!result.ok) {
|
|
54350
|
+
return {
|
|
54351
|
+
content: [{ type: "text", text: result.error.message }],
|
|
54352
|
+
isError: true
|
|
54353
|
+
};
|
|
54354
|
+
}
|
|
54355
|
+
return formatResult(result.value);
|
|
54356
|
+
}
|
|
54357
|
+
};
|
|
54358
|
+
});
|
|
54359
|
+
|
|
54360
|
+
// src/models/errors/sdkvalidationerror.ts
|
|
54361
|
+
function formatZodError(err) {
|
|
54362
|
+
return prettifyError(err);
|
|
54363
|
+
}
|
|
54364
|
+
var SDKValidationError;
|
|
54365
|
+
var init_sdkvalidationerror = __esm(() => {
|
|
54366
|
+
init_zod();
|
|
54367
|
+
SDKValidationError = class SDKValidationError extends Error {
|
|
54368
|
+
rawValue;
|
|
54369
|
+
rawMessage;
|
|
54370
|
+
constructor(message, cause, rawValue) {
|
|
54371
|
+
super(`${message}: ${cause}`);
|
|
54372
|
+
this.name = "SDKValidationError";
|
|
54373
|
+
this.cause = cause;
|
|
54374
|
+
this.rawValue = rawValue;
|
|
54375
|
+
this.rawMessage = message;
|
|
54376
|
+
}
|
|
54377
|
+
pretty() {
|
|
54378
|
+
if (this.cause instanceof ZodError) {
|
|
54379
|
+
return `${this.rawMessage}
|
|
54380
|
+
${formatZodError(this.cause)}`;
|
|
54381
|
+
} else {
|
|
54382
|
+
return this.toString();
|
|
54383
|
+
}
|
|
54384
|
+
}
|
|
54385
|
+
};
|
|
54386
|
+
});
|
|
54387
|
+
|
|
54388
|
+
// src/types/fp.ts
|
|
54389
|
+
function OK3(value) {
|
|
54390
|
+
return { ok: true, value };
|
|
54391
|
+
}
|
|
54392
|
+
function ERR2(error) {
|
|
54393
|
+
return { ok: false, error };
|
|
54394
|
+
}
|
|
54395
|
+
|
|
54396
|
+
// src/lib/schemas.ts
|
|
54397
|
+
function collectExtraKeys(obj, extrasKey, optional) {
|
|
54398
|
+
return obj.transform((val) => {
|
|
54399
|
+
const extras = {};
|
|
54400
|
+
const { shape } = obj;
|
|
54401
|
+
for (const [key] of Object.entries(val)) {
|
|
54402
|
+
if (key in shape) {
|
|
54403
|
+
continue;
|
|
54404
|
+
}
|
|
54405
|
+
const v = val[key];
|
|
54406
|
+
if (typeof v === "undefined") {
|
|
54407
|
+
continue;
|
|
54408
|
+
}
|
|
54409
|
+
extras[key] = v;
|
|
54410
|
+
delete val[key];
|
|
54411
|
+
}
|
|
54412
|
+
if (optional && Object.keys(extras).length === 0) {
|
|
54413
|
+
return val;
|
|
54414
|
+
}
|
|
54415
|
+
return { ...val, [extrasKey]: extras };
|
|
54416
|
+
});
|
|
54417
|
+
}
|
|
54418
|
+
function safeParse4(rawValue, fn, errorMessage) {
|
|
54419
|
+
try {
|
|
54420
|
+
return OK3(fn(rawValue));
|
|
54421
|
+
} catch (err) {
|
|
54422
|
+
return ERR2(new SDKValidationError(errorMessage, err, rawValue));
|
|
54423
|
+
}
|
|
54424
|
+
}
|
|
54425
|
+
var init_schemas4 = __esm(() => {
|
|
54426
|
+
init_sdkvalidationerror();
|
|
54427
|
+
});
|
|
54428
|
+
|
|
54429
|
+
// src/models/searchgroundingmode.ts
|
|
54430
|
+
var SearchGroundingMode$zodSchema;
|
|
54431
|
+
var init_searchgroundingmode = __esm(() => {
|
|
54432
|
+
init_zod();
|
|
54433
|
+
SearchGroundingMode$zodSchema = _enum([
|
|
54434
|
+
"disabled",
|
|
54435
|
+
"enabled",
|
|
54436
|
+
"default"
|
|
54437
|
+
]).describe("Requested web-retrieval behavior for an eval run.");
|
|
54438
|
+
});
|
|
54439
|
+
|
|
54440
|
+
// src/models/createv2agentpreferenceevalrequest.ts
|
|
54441
|
+
var CreateV2AgentPreferenceEvalRequest$zodSchema;
|
|
54442
|
+
var init_createv2agentpreferenceevalrequest = __esm(() => {
|
|
54443
|
+
init_zod();
|
|
54444
|
+
init_searchgroundingmode();
|
|
54445
|
+
CreateV2AgentPreferenceEvalRequest$zodSchema = object({
|
|
54446
|
+
agent: array(string2()).optional().describe("Runnable agents from `GET /v2/agents`. An empty array saves the comparison without default agents. CLI clients expose repeatable `--agent`."),
|
|
54447
|
+
competitor_id: string2().describe("Tracked competitor to compare against, from `GET /v2/agent-preference/competitors`."),
|
|
54448
|
+
name: string2().optional().describe("Display name. Defaults to `<your company> vs <competitor>` when omitted."),
|
|
54449
|
+
persona: string2().optional().describe("Optional perspective applied to the whole comparison."),
|
|
54450
|
+
prompts: array(string2()).describe("Buying or build questions the agent answers by choosing between your company and the competitor. CLI clients expose this as repeatable `--prompt`."),
|
|
54451
|
+
runs: int().default(1).describe("Independent attempts for every prompt-agent pair."),
|
|
54452
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
|
|
54453
|
+
tags: array(string2()).optional()
|
|
54454
|
+
});
|
|
54455
|
+
});
|
|
54456
|
+
|
|
54457
|
+
// src/funcs/agentPreferenceV2AgentPreferenceEvalsCreate.ts
|
|
54458
|
+
function agentPreferenceV2AgentPreferenceEvalsCreate(client$, request, options) {
|
|
54459
|
+
return new APIPromise($do2(client$, request, options));
|
|
54460
|
+
}
|
|
54461
|
+
async function $do2(client$, request, options) {
|
|
54462
|
+
const parsed$ = safeParse4(request, (value$) => CreateV2AgentPreferenceEvalRequest$zodSchema.parse(value$), "Input validation failed");
|
|
54463
|
+
if (!parsed$.ok) {
|
|
54464
|
+
return [parsed$, { status: "invalid" }];
|
|
54465
|
+
}
|
|
54466
|
+
const payload$ = parsed$.value;
|
|
54467
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
54468
|
+
const path$ = pathToFunc("/v2/agent-preference/evals")();
|
|
54469
|
+
const headers$ = new Headers(compactMap({
|
|
54470
|
+
"Content-Type": "application/json",
|
|
54471
|
+
Accept: "application/json"
|
|
54472
|
+
}));
|
|
54473
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
54474
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54475
|
+
const context = {
|
|
54476
|
+
options: client$._options,
|
|
54477
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
54478
|
+
operationID: "v2_agent_preference_evals_create",
|
|
54479
|
+
oAuth2Scopes: null,
|
|
54480
|
+
resolvedSecurity: requestSecurity,
|
|
54481
|
+
securitySource: client$._options.security,
|
|
54482
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
54483
|
+
retryCodes: options?.retryCodes || [
|
|
54484
|
+
"429",
|
|
54485
|
+
"500",
|
|
54486
|
+
"502",
|
|
54487
|
+
"503",
|
|
54488
|
+
"504"
|
|
54489
|
+
]
|
|
54490
|
+
};
|
|
54491
|
+
const requestRes = client$._createRequest(context, {
|
|
54492
|
+
security: requestSecurity,
|
|
54493
|
+
method: "POST",
|
|
54494
|
+
baseURL: options?.serverURL,
|
|
54495
|
+
path: path$,
|
|
54496
|
+
headers: headers$,
|
|
54497
|
+
body: body$,
|
|
54498
|
+
userAgent: client$._options.userAgent,
|
|
54499
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
54500
|
+
}, options);
|
|
54501
|
+
if (!requestRes.ok) {
|
|
54502
|
+
return [requestRes, { status: "invalid" }];
|
|
54503
|
+
}
|
|
54504
|
+
const req$ = requestRes.value;
|
|
54505
|
+
const doResult = await client$._do(req$, {
|
|
54506
|
+
context,
|
|
54507
|
+
errorCodes: [],
|
|
54508
|
+
retryConfig: context.retryConfig,
|
|
54509
|
+
retryCodes: context.retryCodes
|
|
54510
|
+
});
|
|
54511
|
+
if (!doResult.ok) {
|
|
54512
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
54513
|
+
}
|
|
54514
|
+
return [doResult, {
|
|
54515
|
+
status: "complete",
|
|
54516
|
+
request: req$,
|
|
54517
|
+
response: doResult.value
|
|
54518
|
+
}];
|
|
54519
|
+
}
|
|
54520
|
+
var init_agentPreferenceV2AgentPreferenceEvalsCreate = __esm(() => {
|
|
54521
|
+
init_encodings();
|
|
54522
|
+
init_primitives();
|
|
54523
|
+
init_schemas4();
|
|
54524
|
+
init_security();
|
|
54525
|
+
init_url();
|
|
54526
|
+
init_createv2agentpreferenceevalrequest();
|
|
54527
|
+
init_async();
|
|
54528
|
+
});
|
|
54529
|
+
|
|
54530
|
+
// src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsCreate.ts
|
|
54531
|
+
var args, tool$agentPreferenceV2AgentPreferenceEvalsCreate;
|
|
54532
|
+
var init_agentPreferenceV2AgentPreferenceEvalsCreate2 = __esm(() => {
|
|
54533
|
+
init_agentPreferenceV2AgentPreferenceEvalsCreate();
|
|
54534
|
+
init_createv2agentpreferenceevalrequest();
|
|
54535
|
+
init_tools();
|
|
54536
|
+
args = {
|
|
54537
|
+
request: CreateV2AgentPreferenceEvalRequest$zodSchema
|
|
54538
|
+
};
|
|
54539
|
+
tool$agentPreferenceV2AgentPreferenceEvalsCreate = {
|
|
54540
|
+
name: "agent-preference-v2-agent-preference-evals-create",
|
|
54541
|
+
description: `Create Eval
|
|
54542
|
+
|
|
54543
|
+
Creates a head-to-head comparison between your company and one tracked competitor. Each prompt asks an agent to choose, and a fixed judge records which company it recommended. Creating the eval does not start a run; pass the returned \`id\` as \`eval_id\` to \`POST /v2/eval-runs\`.`,
|
|
54544
|
+
annotations: {
|
|
54545
|
+
title: "",
|
|
54546
|
+
destructiveHint: false,
|
|
54547
|
+
idempotentHint: false,
|
|
54548
|
+
openWorldHint: false,
|
|
54549
|
+
readOnlyHint: false
|
|
54550
|
+
},
|
|
54551
|
+
args,
|
|
54552
|
+
tool: async (client, args, ctx) => {
|
|
54553
|
+
const [result] = await agentPreferenceV2AgentPreferenceEvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54554
|
+
if (!result.ok) {
|
|
54555
|
+
return {
|
|
54556
|
+
content: [{ type: "text", text: result.error.message }],
|
|
54557
|
+
isError: true
|
|
54558
|
+
};
|
|
54559
|
+
}
|
|
54560
|
+
return formatResult(result.value);
|
|
54561
|
+
}
|
|
54562
|
+
};
|
|
54563
|
+
});
|
|
54564
|
+
|
|
54565
|
+
// src/models/validationerror.ts
|
|
54566
|
+
var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
|
|
54567
|
+
var init_validationerror = __esm(() => {
|
|
54568
|
+
init_zod();
|
|
54569
|
+
Loc$zodSchema = union([
|
|
54570
|
+
string2(),
|
|
54571
|
+
int()
|
|
54572
|
+
]);
|
|
54573
|
+
Context$zodSchema = object({});
|
|
54574
|
+
ValidationError$zodSchema = object({
|
|
54575
|
+
ctx: lazy(() => Context$zodSchema).optional(),
|
|
54576
|
+
input: any().optional(),
|
|
54577
|
+
loc: array(union([
|
|
54578
|
+
string2(),
|
|
54579
|
+
int()
|
|
54580
|
+
])),
|
|
54581
|
+
msg: string2(),
|
|
54582
|
+
type: string2()
|
|
54583
|
+
});
|
|
54584
|
+
});
|
|
54585
|
+
|
|
54586
|
+
// src/models/httpvalidationerror.ts
|
|
54587
|
+
var HTTPValidationError$zodSchema;
|
|
54588
|
+
var init_httpvalidationerror = __esm(() => {
|
|
54589
|
+
init_zod();
|
|
54590
|
+
init_validationerror();
|
|
54591
|
+
HTTPValidationError$zodSchema = object({
|
|
54592
|
+
detail: array(ValidationError$zodSchema).optional()
|
|
54593
|
+
});
|
|
54594
|
+
});
|
|
54595
|
+
|
|
54596
|
+
// src/models/v2agentpreferencecompetitor.ts
|
|
54597
|
+
var V2AgentPreferenceCompetitor$zodSchema;
|
|
54598
|
+
var init_v2agentpreferencecompetitor = __esm(() => {
|
|
54599
|
+
init_zod();
|
|
54600
|
+
V2AgentPreferenceCompetitor$zodSchema = object({
|
|
54601
|
+
domain: string2().nullable().optional(),
|
|
54602
|
+
id: string2().describe("Competitor ID to pass as `competitor_id`."),
|
|
54603
|
+
logo_url: string2().nullable().optional(),
|
|
54604
|
+
name: string2()
|
|
54605
|
+
});
|
|
54606
|
+
});
|
|
54607
|
+
|
|
54608
|
+
// src/models/v2agentpreferenceeval.ts
|
|
54609
|
+
var V2AgentPreferenceEval$zodSchema;
|
|
54610
|
+
var init_v2agentpreferenceeval = __esm(() => {
|
|
54611
|
+
init_zod();
|
|
54612
|
+
init_searchgroundingmode();
|
|
54613
|
+
init_v2agentpreferencecompetitor();
|
|
54614
|
+
V2AgentPreferenceEval$zodSchema = object({
|
|
54615
|
+
agent: array(string2()).optional(),
|
|
54616
|
+
competitor: V2AgentPreferenceCompetitor$zodSchema.nullable().optional().describe("The competitor your company is compared against. Null when the competitor is no longer tracked."),
|
|
54617
|
+
created_at: string2().nullable().optional(),
|
|
54618
|
+
id: string2().describe("Eval ID. Pass it as `eval_id` to `POST /v2/eval-runs` to run the comparison."),
|
|
54619
|
+
judges: array(string2()).optional().describe("Criteria applied to each response. The first one decides which company the agent recommended and cannot be changed."),
|
|
54620
|
+
name: string2(),
|
|
54621
|
+
persona: string2().nullable().optional(),
|
|
54622
|
+
prompts: array(string2()).optional(),
|
|
54623
|
+
runs: int().default(1),
|
|
54624
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
|
|
54625
|
+
tags: array(string2()).optional(),
|
|
54626
|
+
updated_at: string2().nullable().optional()
|
|
54627
|
+
});
|
|
54628
|
+
});
|
|
54629
|
+
|
|
54630
|
+
// src/models/v2agentpreferenceevalsdeleteop.ts
|
|
54631
|
+
var V2AgentPreferenceEvalsDeleteRequest$zodSchema, V2AgentPreferenceEvalsDeleteResponse$zodSchema;
|
|
54632
|
+
var init_v2agentpreferenceevalsdeleteop = __esm(() => {
|
|
54633
|
+
init_zod();
|
|
54634
|
+
init_httpvalidationerror();
|
|
54635
|
+
init_v2agentpreferenceeval();
|
|
54636
|
+
V2AgentPreferenceEvalsDeleteRequest$zodSchema = object({
|
|
54637
|
+
eval_id: string2()
|
|
54638
|
+
});
|
|
54639
|
+
V2AgentPreferenceEvalsDeleteResponse$zodSchema = union([
|
|
54640
|
+
V2AgentPreferenceEval$zodSchema,
|
|
54641
|
+
HTTPValidationError$zodSchema
|
|
54642
|
+
]);
|
|
54643
|
+
});
|
|
54644
|
+
|
|
54645
|
+
// src/funcs/agentPreferenceV2AgentPreferenceEvalsDelete.ts
|
|
54646
|
+
function agentPreferenceV2AgentPreferenceEvalsDelete(client$, request, options) {
|
|
54647
|
+
return new APIPromise($do3(client$, request, options));
|
|
54648
|
+
}
|
|
54649
|
+
async function $do3(client$, request, options) {
|
|
54650
|
+
const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
54651
|
+
if (!parsed$.ok) {
|
|
54652
|
+
return [parsed$, { status: "invalid" }];
|
|
54653
|
+
}
|
|
54654
|
+
const payload$ = parsed$.value;
|
|
54655
|
+
const body$ = null;
|
|
54656
|
+
const pathParams$ = {
|
|
54657
|
+
eval_id: encodeSimple("eval_id", payload$.eval_id, {
|
|
54658
|
+
explode: false,
|
|
54659
|
+
charEncoding: "percent"
|
|
54660
|
+
})
|
|
54661
|
+
};
|
|
54662
|
+
const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
|
|
54663
|
+
const headers$ = new Headers(compactMap({
|
|
54664
|
+
Accept: "application/json"
|
|
54665
|
+
}));
|
|
54666
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
54667
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54668
|
+
const context = {
|
|
54669
|
+
options: client$._options,
|
|
54670
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
54671
|
+
operationID: "v2_agent_preference_evals_delete",
|
|
54672
|
+
oAuth2Scopes: null,
|
|
54673
|
+
resolvedSecurity: requestSecurity,
|
|
54674
|
+
securitySource: client$._options.security,
|
|
54675
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
54676
|
+
retryCodes: options?.retryCodes || [
|
|
54677
|
+
"429",
|
|
54678
|
+
"500",
|
|
54679
|
+
"502",
|
|
54680
|
+
"503",
|
|
54681
|
+
"504"
|
|
54682
|
+
]
|
|
54683
|
+
};
|
|
54684
|
+
const requestRes = client$._createRequest(context, {
|
|
54685
|
+
security: requestSecurity,
|
|
54686
|
+
method: "DELETE",
|
|
54687
|
+
baseURL: options?.serverURL,
|
|
54688
|
+
path: path$,
|
|
54689
|
+
headers: headers$,
|
|
54690
|
+
body: body$,
|
|
54691
|
+
userAgent: client$._options.userAgent,
|
|
54692
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
54693
|
+
}, options);
|
|
54694
|
+
if (!requestRes.ok) {
|
|
54695
|
+
return [requestRes, { status: "invalid" }];
|
|
54696
|
+
}
|
|
54697
|
+
const req$ = requestRes.value;
|
|
54698
|
+
const doResult = await client$._do(req$, {
|
|
54699
|
+
context,
|
|
54700
|
+
errorCodes: [],
|
|
54701
|
+
retryConfig: context.retryConfig,
|
|
54702
|
+
retryCodes: context.retryCodes
|
|
54703
|
+
});
|
|
54704
|
+
if (!doResult.ok) {
|
|
54705
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
54706
|
+
}
|
|
54707
|
+
return [doResult, {
|
|
54708
|
+
status: "complete",
|
|
54709
|
+
request: req$,
|
|
54710
|
+
response: doResult.value
|
|
54711
|
+
}];
|
|
54712
|
+
}
|
|
54713
|
+
var init_agentPreferenceV2AgentPreferenceEvalsDelete = __esm(() => {
|
|
54714
|
+
init_encodings();
|
|
54715
|
+
init_primitives();
|
|
54716
|
+
init_schemas4();
|
|
54717
|
+
init_security();
|
|
54718
|
+
init_url();
|
|
54719
|
+
init_v2agentpreferenceevalsdeleteop();
|
|
54720
|
+
init_async();
|
|
54721
|
+
});
|
|
54722
|
+
|
|
54723
|
+
// src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsDelete.ts
|
|
54724
|
+
var args2, tool$agentPreferenceV2AgentPreferenceEvalsDelete;
|
|
54725
|
+
var init_agentPreferenceV2AgentPreferenceEvalsDelete2 = __esm(() => {
|
|
54726
|
+
init_agentPreferenceV2AgentPreferenceEvalsDelete();
|
|
54727
|
+
init_v2agentpreferenceevalsdeleteop();
|
|
54728
|
+
init_tools();
|
|
54729
|
+
args2 = {
|
|
54730
|
+
request: V2AgentPreferenceEvalsDeleteRequest$zodSchema
|
|
54731
|
+
};
|
|
54732
|
+
tool$agentPreferenceV2AgentPreferenceEvalsDelete = {
|
|
54733
|
+
name: "agent-preference-v2-agent-preference-evals-delete",
|
|
54734
|
+
description: `Delete Eval
|
|
54735
|
+
|
|
54736
|
+
Permanently deletes an Agent Preference eval and returns its last saved state.`,
|
|
54737
|
+
annotations: {
|
|
54738
|
+
title: "",
|
|
54739
|
+
destructiveHint: true,
|
|
54740
|
+
idempotentHint: false,
|
|
54741
|
+
openWorldHint: false,
|
|
54742
|
+
readOnlyHint: false
|
|
54743
|
+
},
|
|
54744
|
+
args: args2,
|
|
54745
|
+
tool: async (client, args, ctx) => {
|
|
54746
|
+
const [result] = await agentPreferenceV2AgentPreferenceEvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54747
|
+
if (!result.ok) {
|
|
54748
|
+
return {
|
|
54749
|
+
content: [{ type: "text", text: result.error.message }],
|
|
54750
|
+
isError: true
|
|
54751
|
+
};
|
|
54752
|
+
}
|
|
54753
|
+
return formatResult(result.value);
|
|
54754
|
+
}
|
|
54755
|
+
};
|
|
54756
|
+
});
|
|
54757
|
+
|
|
54758
|
+
// src/funcs/agentPreferenceV2AgentPreferenceEvalsList.ts
|
|
54759
|
+
function agentPreferenceV2AgentPreferenceEvalsList(client$, options) {
|
|
54760
|
+
return new APIPromise($do4(client$, options));
|
|
54761
|
+
}
|
|
54762
|
+
async function $do4(client$, options) {
|
|
54763
|
+
const path$ = pathToFunc("/v2/agent-preference/evals")();
|
|
54764
|
+
const headers$ = new Headers(compactMap({
|
|
54765
|
+
Accept: "application/json"
|
|
54766
|
+
}));
|
|
54767
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
54768
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54769
|
+
const context = {
|
|
54770
|
+
options: client$._options,
|
|
54771
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
54772
|
+
operationID: "v2_agent_preference_evals_list",
|
|
54773
|
+
oAuth2Scopes: null,
|
|
54774
|
+
resolvedSecurity: requestSecurity,
|
|
54775
|
+
securitySource: client$._options.security,
|
|
54776
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
54777
|
+
retryCodes: options?.retryCodes || [
|
|
54778
|
+
"429",
|
|
54779
|
+
"500",
|
|
54780
|
+
"502",
|
|
54781
|
+
"503",
|
|
54782
|
+
"504"
|
|
54783
|
+
]
|
|
54784
|
+
};
|
|
54785
|
+
const requestRes = client$._createRequest(context, {
|
|
54786
|
+
security: requestSecurity,
|
|
54787
|
+
method: "GET",
|
|
54788
|
+
baseURL: options?.serverURL,
|
|
54789
|
+
path: path$,
|
|
54790
|
+
headers: headers$,
|
|
54791
|
+
userAgent: client$._options.userAgent,
|
|
54792
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
54793
|
+
}, options);
|
|
54794
|
+
if (!requestRes.ok) {
|
|
54795
|
+
return [requestRes, { status: "invalid" }];
|
|
54796
|
+
}
|
|
54797
|
+
const req$ = requestRes.value;
|
|
54798
|
+
const doResult = await client$._do(req$, {
|
|
54799
|
+
context,
|
|
54800
|
+
errorCodes: [],
|
|
54801
|
+
retryConfig: context.retryConfig,
|
|
54802
|
+
retryCodes: context.retryCodes
|
|
54803
|
+
});
|
|
54804
|
+
if (!doResult.ok) {
|
|
54805
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
54806
|
+
}
|
|
54807
|
+
return [doResult, {
|
|
54808
|
+
status: "complete",
|
|
54809
|
+
request: req$,
|
|
54810
|
+
response: doResult.value
|
|
54811
|
+
}];
|
|
54812
|
+
}
|
|
54813
|
+
var init_agentPreferenceV2AgentPreferenceEvalsList = __esm(() => {
|
|
54814
|
+
init_primitives();
|
|
54815
|
+
init_security();
|
|
54816
|
+
init_url();
|
|
54817
|
+
init_async();
|
|
54818
|
+
});
|
|
54819
|
+
|
|
54820
|
+
// src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsList.ts
|
|
54821
|
+
var tool$agentPreferenceV2AgentPreferenceEvalsList;
|
|
54822
|
+
var init_agentPreferenceV2AgentPreferenceEvalsList2 = __esm(() => {
|
|
54823
|
+
init_agentPreferenceV2AgentPreferenceEvalsList();
|
|
54824
|
+
init_tools();
|
|
54825
|
+
tool$agentPreferenceV2AgentPreferenceEvalsList = {
|
|
54826
|
+
name: "agent-preference-v2-agent-preference-evals-list",
|
|
54827
|
+
description: `List Evals
|
|
54828
|
+
|
|
54829
|
+
Returns all active Agent Preference evals owned by the organization.`,
|
|
54830
|
+
annotations: {
|
|
54831
|
+
title: "",
|
|
54832
|
+
destructiveHint: false,
|
|
54833
|
+
idempotentHint: false,
|
|
54834
|
+
openWorldHint: false,
|
|
54835
|
+
readOnlyHint: true
|
|
54836
|
+
},
|
|
54837
|
+
tool: async (client, ctx) => {
|
|
54838
|
+
const [result] = await agentPreferenceV2AgentPreferenceEvalsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54839
|
+
if (!result.ok) {
|
|
54840
|
+
return {
|
|
54841
|
+
content: [{ type: "text", text: result.error.message }],
|
|
54842
|
+
isError: true
|
|
54843
|
+
};
|
|
54844
|
+
}
|
|
54845
|
+
return formatResult(result.value);
|
|
54846
|
+
}
|
|
54847
|
+
};
|
|
54848
|
+
});
|
|
54849
|
+
|
|
54850
|
+
// src/models/v2agentpreferenceevalsretrieveop.ts
|
|
54851
|
+
var V2AgentPreferenceEvalsRetrieveRequest$zodSchema, V2AgentPreferenceEvalsRetrieveResponse$zodSchema;
|
|
54852
|
+
var init_v2agentpreferenceevalsretrieveop = __esm(() => {
|
|
54853
|
+
init_zod();
|
|
54854
|
+
init_httpvalidationerror();
|
|
54855
|
+
init_v2agentpreferenceeval();
|
|
54856
|
+
V2AgentPreferenceEvalsRetrieveRequest$zodSchema = object({
|
|
54857
|
+
eval_id: string2()
|
|
54858
|
+
});
|
|
54859
|
+
V2AgentPreferenceEvalsRetrieveResponse$zodSchema = union([
|
|
54860
|
+
V2AgentPreferenceEval$zodSchema,
|
|
54861
|
+
HTTPValidationError$zodSchema
|
|
54862
|
+
]);
|
|
54863
|
+
});
|
|
54864
|
+
|
|
54865
|
+
// src/funcs/agentPreferenceV2AgentPreferenceEvalsRetrieve.ts
|
|
54866
|
+
function agentPreferenceV2AgentPreferenceEvalsRetrieve(client$, request, options) {
|
|
54867
|
+
return new APIPromise($do5(client$, request, options));
|
|
54868
|
+
}
|
|
54869
|
+
async function $do5(client$, request, options) {
|
|
54870
|
+
const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
54871
|
+
if (!parsed$.ok) {
|
|
54872
|
+
return [parsed$, { status: "invalid" }];
|
|
54873
|
+
}
|
|
54874
|
+
const payload$ = parsed$.value;
|
|
54875
|
+
const body$ = null;
|
|
54876
|
+
const pathParams$ = {
|
|
54877
|
+
eval_id: encodeSimple("eval_id", payload$.eval_id, {
|
|
54878
|
+
explode: false,
|
|
54879
|
+
charEncoding: "percent"
|
|
54880
|
+
})
|
|
54881
|
+
};
|
|
54882
|
+
const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
|
|
54883
|
+
const headers$ = new Headers(compactMap({
|
|
54884
|
+
Accept: "application/json"
|
|
54885
|
+
}));
|
|
54886
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
54887
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
54888
|
+
const context = {
|
|
54889
|
+
options: client$._options,
|
|
54890
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
54891
|
+
operationID: "v2_agent_preference_evals_retrieve",
|
|
54892
|
+
oAuth2Scopes: null,
|
|
54893
|
+
resolvedSecurity: requestSecurity,
|
|
54894
|
+
securitySource: client$._options.security,
|
|
54895
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
54896
|
+
retryCodes: options?.retryCodes || [
|
|
54897
|
+
"429",
|
|
54898
|
+
"500",
|
|
54899
|
+
"502",
|
|
54900
|
+
"503",
|
|
54901
|
+
"504"
|
|
54902
|
+
]
|
|
54903
|
+
};
|
|
54904
|
+
const requestRes = client$._createRequest(context, {
|
|
54905
|
+
security: requestSecurity,
|
|
54906
|
+
method: "GET",
|
|
54907
|
+
baseURL: options?.serverURL,
|
|
54908
|
+
path: path$,
|
|
54909
|
+
headers: headers$,
|
|
54910
|
+
body: body$,
|
|
54911
|
+
userAgent: client$._options.userAgent,
|
|
54912
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
54913
|
+
}, options);
|
|
54914
|
+
if (!requestRes.ok) {
|
|
54915
|
+
return [requestRes, { status: "invalid" }];
|
|
54916
|
+
}
|
|
54917
|
+
const req$ = requestRes.value;
|
|
54918
|
+
const doResult = await client$._do(req$, {
|
|
54919
|
+
context,
|
|
54920
|
+
errorCodes: [],
|
|
54921
|
+
retryConfig: context.retryConfig,
|
|
54922
|
+
retryCodes: context.retryCodes
|
|
54923
|
+
});
|
|
54924
|
+
if (!doResult.ok) {
|
|
54925
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
54926
|
+
}
|
|
54927
|
+
return [doResult, {
|
|
54928
|
+
status: "complete",
|
|
54929
|
+
request: req$,
|
|
54930
|
+
response: doResult.value
|
|
54931
|
+
}];
|
|
54932
|
+
}
|
|
54933
|
+
var init_agentPreferenceV2AgentPreferenceEvalsRetrieve = __esm(() => {
|
|
54934
|
+
init_encodings();
|
|
54935
|
+
init_primitives();
|
|
54936
|
+
init_schemas4();
|
|
54937
|
+
init_security();
|
|
54938
|
+
init_url();
|
|
54939
|
+
init_v2agentpreferenceevalsretrieveop();
|
|
54940
|
+
init_async();
|
|
54941
|
+
});
|
|
54942
|
+
|
|
54943
|
+
// src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsRetrieve.ts
|
|
54944
|
+
var args3, tool$agentPreferenceV2AgentPreferenceEvalsRetrieve;
|
|
54945
|
+
var init_agentPreferenceV2AgentPreferenceEvalsRetrieve2 = __esm(() => {
|
|
54946
|
+
init_agentPreferenceV2AgentPreferenceEvalsRetrieve();
|
|
54947
|
+
init_v2agentpreferenceevalsretrieveop();
|
|
54948
|
+
init_tools();
|
|
54949
|
+
args3 = {
|
|
54950
|
+
request: V2AgentPreferenceEvalsRetrieveRequest$zodSchema
|
|
54951
|
+
};
|
|
54952
|
+
tool$agentPreferenceV2AgentPreferenceEvalsRetrieve = {
|
|
54953
|
+
name: "agent-preference-v2-agent-preference-evals-retrieve",
|
|
54954
|
+
description: `Retrieve Eval
|
|
54955
|
+
|
|
54956
|
+
Returns one Agent Preference eval.`,
|
|
54957
|
+
annotations: {
|
|
54958
|
+
title: "",
|
|
54959
|
+
destructiveHint: false,
|
|
54960
|
+
idempotentHint: false,
|
|
54961
|
+
openWorldHint: false,
|
|
54962
|
+
readOnlyHint: true
|
|
54963
|
+
},
|
|
54964
|
+
args: args3,
|
|
54965
|
+
tool: async (client, args, ctx) => {
|
|
54966
|
+
const [result] = await agentPreferenceV2AgentPreferenceEvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
54967
|
+
if (!result.ok) {
|
|
54968
|
+
return {
|
|
54969
|
+
content: [{ type: "text", text: result.error.message }],
|
|
54970
|
+
isError: true
|
|
54971
|
+
};
|
|
54972
|
+
}
|
|
54973
|
+
return formatResult(result.value);
|
|
54974
|
+
}
|
|
54975
|
+
};
|
|
54976
|
+
});
|
|
54977
|
+
|
|
54978
|
+
// src/models/updatev2agentpreferenceevalrequest.ts
|
|
54979
|
+
var UpdateV2AgentPreferenceEvalRequest$zodSchema;
|
|
54980
|
+
var init_updatev2agentpreferenceevalrequest = __esm(() => {
|
|
54981
|
+
init_zod();
|
|
54982
|
+
init_searchgroundingmode();
|
|
54983
|
+
UpdateV2AgentPreferenceEvalRequest$zodSchema = object({
|
|
54984
|
+
agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`. An empty array saves the comparison without default agents. CLI clients expose repeatable `--agent`."),
|
|
54985
|
+
name: string2().optional(),
|
|
54986
|
+
persona: string2().optional().describe("Set to null to clear the saved persona."),
|
|
54987
|
+
prompts: array(string2()).nullable().optional().describe("Buying or build questions the agent answers by choosing between your company and the competitor. CLI clients expose this as repeatable `--prompt`."),
|
|
54988
|
+
runs: int().optional(),
|
|
54989
|
+
search_grounding: SearchGroundingMode$zodSchema.nullable().optional(),
|
|
54990
|
+
tags: array(string2()).nullable().optional()
|
|
54991
|
+
});
|
|
54992
|
+
});
|
|
54993
|
+
|
|
54994
|
+
// src/models/v2agentpreferenceevalsupdateop.ts
|
|
54995
|
+
var V2AgentPreferenceEvalsUpdateRequest$zodSchema, V2AgentPreferenceEvalsUpdateResponse$zodSchema;
|
|
54996
|
+
var init_v2agentpreferenceevalsupdateop = __esm(() => {
|
|
54997
|
+
init_zod();
|
|
54998
|
+
init_httpvalidationerror();
|
|
54999
|
+
init_updatev2agentpreferenceevalrequest();
|
|
55000
|
+
init_v2agentpreferenceeval();
|
|
55001
|
+
V2AgentPreferenceEvalsUpdateRequest$zodSchema = object({
|
|
55002
|
+
body: UpdateV2AgentPreferenceEvalRequest$zodSchema,
|
|
55003
|
+
eval_id: string2()
|
|
55004
|
+
});
|
|
55005
|
+
V2AgentPreferenceEvalsUpdateResponse$zodSchema = union([
|
|
55006
|
+
V2AgentPreferenceEval$zodSchema,
|
|
55007
|
+
HTTPValidationError$zodSchema
|
|
55008
|
+
]);
|
|
55009
|
+
});
|
|
55010
|
+
|
|
55011
|
+
// src/funcs/agentPreferenceV2AgentPreferenceEvalsUpdate.ts
|
|
55012
|
+
function agentPreferenceV2AgentPreferenceEvalsUpdate(client$, request, options) {
|
|
55013
|
+
return new APIPromise($do6(client$, request, options));
|
|
55014
|
+
}
|
|
55015
|
+
async function $do6(client$, request, options) {
|
|
55016
|
+
const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55017
|
+
if (!parsed$.ok) {
|
|
55018
|
+
return [parsed$, { status: "invalid" }];
|
|
55019
|
+
}
|
|
55020
|
+
const payload$ = parsed$.value;
|
|
55021
|
+
const body$ = encodeJSON("body", payload$.body, { explode: true });
|
|
55022
|
+
const pathParams$ = {
|
|
55023
|
+
eval_id: encodeSimple("eval_id", payload$.eval_id, {
|
|
55024
|
+
explode: false,
|
|
55025
|
+
charEncoding: "percent"
|
|
55026
|
+
})
|
|
55027
|
+
};
|
|
55028
|
+
const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}")(pathParams$);
|
|
55029
|
+
const headers$ = new Headers(compactMap({
|
|
55030
|
+
"Content-Type": "application/json",
|
|
55031
|
+
Accept: "application/json"
|
|
55032
|
+
}));
|
|
55033
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
55034
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
55035
|
+
const context = {
|
|
55036
|
+
options: client$._options,
|
|
55037
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55038
|
+
operationID: "v2_agent_preference_evals_update",
|
|
55039
|
+
oAuth2Scopes: null,
|
|
55040
|
+
resolvedSecurity: requestSecurity,
|
|
55041
|
+
securitySource: client$._options.security,
|
|
55042
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
55043
|
+
retryCodes: options?.retryCodes || [
|
|
55044
|
+
"429",
|
|
55045
|
+
"500",
|
|
55046
|
+
"502",
|
|
55047
|
+
"503",
|
|
55048
|
+
"504"
|
|
55049
|
+
]
|
|
55050
|
+
};
|
|
55051
|
+
const requestRes = client$._createRequest(context, {
|
|
55052
|
+
security: requestSecurity,
|
|
55053
|
+
method: "PATCH",
|
|
55054
|
+
baseURL: options?.serverURL,
|
|
55055
|
+
path: path$,
|
|
55056
|
+
headers: headers$,
|
|
55057
|
+
body: body$,
|
|
55058
|
+
userAgent: client$._options.userAgent,
|
|
55059
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
55060
|
+
}, options);
|
|
55061
|
+
if (!requestRes.ok) {
|
|
55062
|
+
return [requestRes, { status: "invalid" }];
|
|
55063
|
+
}
|
|
55064
|
+
const req$ = requestRes.value;
|
|
55065
|
+
const doResult = await client$._do(req$, {
|
|
55066
|
+
context,
|
|
55067
|
+
errorCodes: [],
|
|
55068
|
+
retryConfig: context.retryConfig,
|
|
55069
|
+
retryCodes: context.retryCodes
|
|
55070
|
+
});
|
|
55071
|
+
if (!doResult.ok) {
|
|
55072
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
55073
|
+
}
|
|
55074
|
+
return [doResult, {
|
|
55075
|
+
status: "complete",
|
|
55076
|
+
request: req$,
|
|
55077
|
+
response: doResult.value
|
|
55078
|
+
}];
|
|
55079
|
+
}
|
|
55080
|
+
var init_agentPreferenceV2AgentPreferenceEvalsUpdate = __esm(() => {
|
|
55081
|
+
init_encodings();
|
|
55082
|
+
init_primitives();
|
|
55083
|
+
init_schemas4();
|
|
55084
|
+
init_security();
|
|
55085
|
+
init_url();
|
|
55086
|
+
init_v2agentpreferenceevalsupdateop();
|
|
55087
|
+
init_async();
|
|
55088
|
+
});
|
|
55089
|
+
|
|
55090
|
+
// src/mcp-server/tools/agentPreferenceV2AgentPreferenceEvalsUpdate.ts
|
|
55091
|
+
var args4, tool$agentPreferenceV2AgentPreferenceEvalsUpdate;
|
|
55092
|
+
var init_agentPreferenceV2AgentPreferenceEvalsUpdate2 = __esm(() => {
|
|
55093
|
+
init_agentPreferenceV2AgentPreferenceEvalsUpdate();
|
|
55094
|
+
init_v2agentpreferenceevalsupdateop();
|
|
55095
|
+
init_tools();
|
|
55096
|
+
args4 = {
|
|
55097
|
+
request: V2AgentPreferenceEvalsUpdateRequest$zodSchema
|
|
55098
|
+
};
|
|
55099
|
+
tool$agentPreferenceV2AgentPreferenceEvalsUpdate = {
|
|
55100
|
+
name: "agent-preference-v2-agent-preference-evals-update",
|
|
55101
|
+
description: `Update Eval
|
|
55102
|
+
|
|
55103
|
+
Updates an Agent Preference eval. Omitted fields remain unchanged, an empty \`agent\` or \`tags\` array clears that collection, and \`persona: null\` clears the saved persona. The competitor and the judge that decides the comparison cannot be changed.`,
|
|
55104
|
+
annotations: {
|
|
55105
|
+
title: "",
|
|
55106
|
+
destructiveHint: false,
|
|
55107
|
+
idempotentHint: false,
|
|
55108
|
+
openWorldHint: false,
|
|
55109
|
+
readOnlyHint: false
|
|
55110
|
+
},
|
|
55111
|
+
args: args4,
|
|
55112
|
+
tool: async (client, args, ctx) => {
|
|
55113
|
+
const [result] = await agentPreferenceV2AgentPreferenceEvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55114
|
+
if (!result.ok) {
|
|
55115
|
+
return {
|
|
55116
|
+
content: [{ type: "text", text: result.error.message }],
|
|
55117
|
+
isError: true
|
|
55118
|
+
};
|
|
55119
|
+
}
|
|
55120
|
+
return formatResult(result.value);
|
|
55121
|
+
}
|
|
55122
|
+
};
|
|
55123
|
+
});
|
|
55124
|
+
|
|
55125
|
+
// src/models/v2agentpreferencecompany.ts
|
|
55126
|
+
var V2AgentPreferenceCompany$zodSchema;
|
|
55127
|
+
var init_v2agentpreferencecompany = __esm(() => {
|
|
55128
|
+
init_zod();
|
|
55129
|
+
V2AgentPreferenceCompany$zodSchema = object({
|
|
55130
|
+
domain: string2().nullable().optional(),
|
|
55131
|
+
name: string2().nullable().optional()
|
|
55132
|
+
});
|
|
55133
|
+
});
|
|
55134
|
+
|
|
55135
|
+
// src/models/v2agentpreferencematchup.ts
|
|
55136
|
+
var V2AgentPreferenceMatchup$zodSchema;
|
|
55137
|
+
var init_v2agentpreferencematchup = __esm(() => {
|
|
55138
|
+
init_zod();
|
|
55139
|
+
V2AgentPreferenceMatchup$zodSchema = object({
|
|
55140
|
+
comparisons: int().describe("`wins + losses + ties`."),
|
|
55141
|
+
competitor_domain: string2().nullable().optional(),
|
|
55142
|
+
competitor_id: string2().nullable().optional().describe("Null when the competitor is no longer tracked."),
|
|
55143
|
+
competitor_name: string2(),
|
|
55144
|
+
eval_ids: array(string2()).optional().describe("Agent Preference evals that contributed to this record."),
|
|
55145
|
+
losses: int().describe("Attempts where the agent recommended the competitor."),
|
|
55146
|
+
ties: int().describe("Attempts where the agent recommended both equally or neither."),
|
|
55147
|
+
win_rate: number2().nullable().optional().describe("`wins / comparisons` from 0 to 1. Null when there are no comparisons."),
|
|
55148
|
+
wins: int().describe("Attempts where the agent recommended your company.")
|
|
55149
|
+
});
|
|
55150
|
+
});
|
|
55151
|
+
|
|
55152
|
+
// src/models/v2agentpreferencerecord.ts
|
|
55153
|
+
var V2AgentPreferenceRecord$zodSchema;
|
|
55154
|
+
var init_v2agentpreferencerecord = __esm(() => {
|
|
55155
|
+
init_zod();
|
|
55156
|
+
V2AgentPreferenceRecord$zodSchema = object({
|
|
55157
|
+
comparisons: int().describe("`wins + losses + ties`."),
|
|
55158
|
+
losses: int().describe("Attempts where the agent recommended the competitor."),
|
|
55159
|
+
ties: int().describe("Attempts where the agent recommended both equally or neither."),
|
|
55160
|
+
win_rate: number2().nullable().optional().describe("`wins / comparisons` from 0 to 1. Null when there are no comparisons."),
|
|
55161
|
+
wins: int().describe("Attempts where the agent recommended your company.")
|
|
55162
|
+
});
|
|
55163
|
+
});
|
|
55164
|
+
|
|
55165
|
+
// src/models/v2agentpreferenceheadtoheadresponse.ts
|
|
55166
|
+
var V2AgentPreferenceHeadToHeadResponse$zodSchema;
|
|
55167
|
+
var init_v2agentpreferenceheadtoheadresponse = __esm(() => {
|
|
55168
|
+
init_zod();
|
|
55169
|
+
init_v2agentpreferencecompany();
|
|
55170
|
+
init_v2agentpreferencematchup();
|
|
55171
|
+
init_v2agentpreferencerecord();
|
|
55172
|
+
V2AgentPreferenceHeadToHeadResponse$zodSchema = object({
|
|
55173
|
+
attempts_considered: int().describe("Recent attempts read to build the records. Attempts without a usable recommendation are read but not counted as comparisons."),
|
|
55174
|
+
company: V2AgentPreferenceCompany$zodSchema,
|
|
55175
|
+
count: int().describe("The number of items in `data`."),
|
|
55176
|
+
data: array(V2AgentPreferenceMatchup$zodSchema).optional().describe("One record per competitor, most comparisons first."),
|
|
55177
|
+
limit: int(),
|
|
55178
|
+
summary: V2AgentPreferenceRecord$zodSchema,
|
|
55179
|
+
truncated: boolean2().describe("True when older attempts exist beyond `limit` and were not counted.")
|
|
55180
|
+
});
|
|
55181
|
+
});
|
|
55182
|
+
|
|
55183
|
+
// src/models/v2agentpreferenceheadtoheadretrieveop.ts
|
|
55184
|
+
var V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema, V2AgentPreferenceHeadToHeadRetrieveResponse$zodSchema;
|
|
55185
|
+
var init_v2agentpreferenceheadtoheadretrieveop = __esm(() => {
|
|
55186
|
+
init_zod();
|
|
55187
|
+
init_httpvalidationerror();
|
|
55188
|
+
init_v2agentpreferenceheadtoheadresponse();
|
|
55189
|
+
V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema = object({
|
|
55190
|
+
limit: int().default(500).describe("Most recent attempts to include in the records.")
|
|
55191
|
+
});
|
|
55192
|
+
V2AgentPreferenceHeadToHeadRetrieveResponse$zodSchema = union([
|
|
55193
|
+
V2AgentPreferenceHeadToHeadResponse$zodSchema,
|
|
55194
|
+
HTTPValidationError$zodSchema
|
|
55195
|
+
]);
|
|
55196
|
+
});
|
|
55197
|
+
|
|
55198
|
+
// src/funcs/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts
|
|
55199
|
+
function agentPreferenceV2AgentPreferenceHeadToHeadRetrieve(client$, request, options) {
|
|
55200
|
+
return new APIPromise($do7(client$, request, options));
|
|
55201
|
+
}
|
|
55202
|
+
async function $do7(client$, request, options) {
|
|
55203
|
+
const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
55204
|
+
if (!parsed$.ok) {
|
|
55205
|
+
return [parsed$, { status: "invalid" }];
|
|
55206
|
+
}
|
|
55207
|
+
const payload$ = parsed$.value;
|
|
55208
|
+
const body$ = null;
|
|
55209
|
+
const path$ = pathToFunc("/v2/agent-preference/head-to-head")();
|
|
55210
|
+
const query$ = encodeFormQuery({
|
|
55211
|
+
limit: payload$?.limit
|
|
55212
|
+
});
|
|
55213
|
+
const headers$ = new Headers(compactMap({
|
|
55214
|
+
Accept: "application/json"
|
|
55215
|
+
}));
|
|
55216
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
55217
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
55218
|
+
const context = {
|
|
55219
|
+
options: client$._options,
|
|
55220
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55221
|
+
operationID: "v2_agent_preference_head_to_head_retrieve",
|
|
55222
|
+
oAuth2Scopes: null,
|
|
55223
|
+
resolvedSecurity: requestSecurity,
|
|
55224
|
+
securitySource: client$._options.security,
|
|
55225
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
55226
|
+
retryCodes: options?.retryCodes || [
|
|
55227
|
+
"429",
|
|
55228
|
+
"500",
|
|
55229
|
+
"502",
|
|
55230
|
+
"503",
|
|
55231
|
+
"504"
|
|
55232
|
+
]
|
|
55233
|
+
};
|
|
55234
|
+
const requestRes = client$._createRequest(context, {
|
|
55235
|
+
security: requestSecurity,
|
|
55236
|
+
method: "GET",
|
|
55237
|
+
baseURL: options?.serverURL,
|
|
55238
|
+
path: path$,
|
|
55239
|
+
headers: headers$,
|
|
55240
|
+
query: query$,
|
|
55241
|
+
body: body$,
|
|
55242
|
+
userAgent: client$._options.userAgent,
|
|
55243
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
55244
|
+
}, options);
|
|
55245
|
+
if (!requestRes.ok) {
|
|
55246
|
+
return [requestRes, { status: "invalid" }];
|
|
55247
|
+
}
|
|
55248
|
+
const req$ = requestRes.value;
|
|
55249
|
+
const doResult = await client$._do(req$, {
|
|
55250
|
+
context,
|
|
55251
|
+
errorCodes: [],
|
|
55252
|
+
retryConfig: context.retryConfig,
|
|
55253
|
+
retryCodes: context.retryCodes
|
|
55254
|
+
});
|
|
55255
|
+
if (!doResult.ok) {
|
|
55256
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
55257
|
+
}
|
|
55258
|
+
return [doResult, {
|
|
55259
|
+
status: "complete",
|
|
55260
|
+
request: req$,
|
|
55261
|
+
response: doResult.value
|
|
55262
|
+
}];
|
|
55263
|
+
}
|
|
55264
|
+
var init_agentPreferenceV2AgentPreferenceHeadToHeadRetrieve = __esm(() => {
|
|
55265
|
+
init_encodings();
|
|
55266
|
+
init_primitives();
|
|
55267
|
+
init_schemas4();
|
|
55268
|
+
init_security();
|
|
55269
|
+
init_url();
|
|
55270
|
+
init_v2agentpreferenceheadtoheadretrieveop();
|
|
55271
|
+
init_async();
|
|
55272
|
+
});
|
|
55273
|
+
|
|
55274
|
+
// src/mcp-server/tools/agentPreferenceV2AgentPreferenceHeadToHeadRetrieve.ts
|
|
55275
|
+
var args5, tool$agentPreferenceV2AgentPreferenceHeadToHeadRetrieve;
|
|
55276
|
+
var init_agentPreferenceV2AgentPreferenceHeadToHeadRetrieve2 = __esm(() => {
|
|
55277
|
+
init_agentPreferenceV2AgentPreferenceHeadToHeadRetrieve();
|
|
55278
|
+
init_v2agentpreferenceheadtoheadretrieveop();
|
|
55279
|
+
init_tools();
|
|
55280
|
+
args5 = {
|
|
55281
|
+
request: V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema.optional()
|
|
55282
|
+
};
|
|
55283
|
+
tool$agentPreferenceV2AgentPreferenceHeadToHeadRetrieve = {
|
|
55284
|
+
name: "agent-preference-v2-agent-preference-head-to-273",
|
|
55285
|
+
description: `Retrieve Head To Head
|
|
55286
|
+
|
|
55287
|
+
Returns how often agents recommended your company over each tracked competitor: wins, losses, ties, and win rate per competitor plus a combined record. Calculated from the most recent attempts across all Agent Preference evals, up to \`limit\`; \`truncated\` reports whether older attempts were left out.`,
|
|
55288
|
+
annotations: {
|
|
55289
|
+
title: "",
|
|
55290
|
+
destructiveHint: false,
|
|
55291
|
+
idempotentHint: false,
|
|
55292
|
+
openWorldHint: false,
|
|
55293
|
+
readOnlyHint: true
|
|
55294
|
+
},
|
|
55295
|
+
args: args5,
|
|
55296
|
+
tool: async (client, args, ctx) => {
|
|
55297
|
+
const [result] = await agentPreferenceV2AgentPreferenceHeadToHeadRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55298
|
+
if (!result.ok) {
|
|
55299
|
+
return {
|
|
55300
|
+
content: [{ type: "text", text: result.error.message }],
|
|
55301
|
+
isError: true
|
|
55302
|
+
};
|
|
55303
|
+
}
|
|
55304
|
+
return formatResult(result.value);
|
|
55305
|
+
}
|
|
55306
|
+
};
|
|
55307
|
+
});
|
|
55308
|
+
|
|
55309
|
+
// src/models/v2preferenceresult.ts
|
|
55310
|
+
var Outcome$zodSchema, V2PreferenceResult$zodSchema;
|
|
55311
|
+
var init_v2preferenceresult = __esm(() => {
|
|
55312
|
+
init_zod();
|
|
55313
|
+
Outcome$zodSchema = _enum([
|
|
55314
|
+
"won",
|
|
55315
|
+
"lost",
|
|
55316
|
+
"tie"
|
|
55317
|
+
]).describe("`won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither.");
|
|
55318
|
+
V2PreferenceResult$zodSchema = object({
|
|
55319
|
+
competitor_domain: string2().nullable().optional(),
|
|
55320
|
+
competitor_name: string2().nullable().optional(),
|
|
55321
|
+
outcome: Outcome$zodSchema.describe("`won` when the agent recommended your company, `lost` when it recommended the competitor, and `tie` when it recommended both equally or neither."),
|
|
55322
|
+
winner_name: string2().nullable().optional().describe("The recommended company. Null on a tie.")
|
|
55323
|
+
}).describe("Which company an agent recommended, from your company's side.");
|
|
55324
|
+
});
|
|
55325
|
+
|
|
55326
|
+
// src/models/v2agentpreferenceresult.ts
|
|
55327
|
+
var V2AgentPreferenceResult$zodSchema;
|
|
55328
|
+
var init_v2agentpreferenceresult = __esm(() => {
|
|
55329
|
+
init_zod();
|
|
55330
|
+
init_v2preferenceresult();
|
|
55331
|
+
V2AgentPreferenceResult$zodSchema = object({
|
|
55332
|
+
agent: string2().nullable().optional().describe("Runnable agent combining the harness and model."),
|
|
55333
|
+
created_at: string2().nullable().optional(),
|
|
55334
|
+
eval_id: string2(),
|
|
55335
|
+
id: string2().describe("Result ID for one attempt."),
|
|
55336
|
+
latency_ms: int().nullable().optional(),
|
|
55337
|
+
preference_result: V2PreferenceResult$zodSchema.nullable().optional().describe("Null when the attempt did not produce a usable recommendation, such as an attempt that ended in an error.")
|
|
55338
|
+
});
|
|
55339
|
+
});
|
|
55340
|
+
|
|
55341
|
+
// src/models/v2agentpreferenceresultsresponse.ts
|
|
55342
|
+
var V2AgentPreferenceResultsResponse$zodSchema;
|
|
55343
|
+
var init_v2agentpreferenceresultsresponse = __esm(() => {
|
|
55344
|
+
init_zod();
|
|
55345
|
+
init_v2agentpreferenceresult();
|
|
55346
|
+
V2AgentPreferenceResultsResponse$zodSchema = object({
|
|
55347
|
+
count: int().describe("The number of items in `data`."),
|
|
55348
|
+
data: array(V2AgentPreferenceResult$zodSchema).optional(),
|
|
55349
|
+
limit: int(),
|
|
55350
|
+
offset: int(),
|
|
55351
|
+
total: int().describe("All recorded attempts for this eval.")
|
|
55352
|
+
});
|
|
55353
|
+
});
|
|
55354
|
+
|
|
55355
|
+
// src/models/v2agentpreferenceresultslistop.ts
|
|
55356
|
+
var V2AgentPreferenceResultsListRequest$zodSchema, V2AgentPreferenceResultsListResponse$zodSchema;
|
|
55357
|
+
var init_v2agentpreferenceresultslistop = __esm(() => {
|
|
55358
|
+
init_zod();
|
|
55359
|
+
init_httpvalidationerror();
|
|
55360
|
+
init_v2agentpreferenceresultsresponse();
|
|
55361
|
+
V2AgentPreferenceResultsListRequest$zodSchema = object({
|
|
55362
|
+
eval_id: string2(),
|
|
55363
|
+
limit: int().default(50),
|
|
55364
|
+
offset: int().default(0)
|
|
55365
|
+
});
|
|
55366
|
+
V2AgentPreferenceResultsListResponse$zodSchema = union([
|
|
55367
|
+
V2AgentPreferenceResultsResponse$zodSchema,
|
|
55368
|
+
HTTPValidationError$zodSchema
|
|
55369
|
+
]);
|
|
55370
|
+
});
|
|
55371
|
+
|
|
55372
|
+
// src/funcs/agentPreferenceV2AgentPreferenceResultsList.ts
|
|
55373
|
+
function agentPreferenceV2AgentPreferenceResultsList(client$, request, options) {
|
|
55374
|
+
return new APIPromise($do8(client$, request, options));
|
|
55375
|
+
}
|
|
55376
|
+
async function $do8(client$, request, options) {
|
|
55377
|
+
const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceResultsListRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55378
|
+
if (!parsed$.ok) {
|
|
55379
|
+
return [parsed$, { status: "invalid" }];
|
|
55380
|
+
}
|
|
55381
|
+
const payload$ = parsed$.value;
|
|
55382
|
+
const body$ = null;
|
|
55383
|
+
const pathParams$ = {
|
|
55384
|
+
eval_id: encodeSimple("eval_id", payload$.eval_id, {
|
|
55385
|
+
explode: false,
|
|
55386
|
+
charEncoding: "percent"
|
|
55387
|
+
})
|
|
55388
|
+
};
|
|
55389
|
+
const path$ = pathToFunc("/v2/agent-preference/evals/{eval_id}/results")(pathParams$);
|
|
55390
|
+
const query$ = encodeFormQuery({
|
|
55391
|
+
limit: payload$.limit,
|
|
55392
|
+
offset: payload$.offset
|
|
55393
|
+
});
|
|
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_results_list",
|
|
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_agentPreferenceV2AgentPreferenceResultsList = __esm(() => {
|
|
55446
|
+
init_encodings();
|
|
55447
|
+
init_primitives();
|
|
55448
|
+
init_schemas4();
|
|
55449
|
+
init_security();
|
|
55450
|
+
init_url();
|
|
55451
|
+
init_v2agentpreferenceresultslistop();
|
|
55452
|
+
init_async();
|
|
55453
|
+
});
|
|
55454
|
+
|
|
55455
|
+
// src/mcp-server/tools/agentPreferenceV2AgentPreferenceResultsList.ts
|
|
55456
|
+
var args6, tool$agentPreferenceV2AgentPreferenceResultsList;
|
|
55457
|
+
var init_agentPreferenceV2AgentPreferenceResultsList2 = __esm(() => {
|
|
55458
|
+
init_agentPreferenceV2AgentPreferenceResultsList();
|
|
55459
|
+
init_v2agentpreferenceresultslistop();
|
|
55460
|
+
init_tools();
|
|
55461
|
+
args6 = {
|
|
55462
|
+
request: V2AgentPreferenceResultsListRequest$zodSchema
|
|
55463
|
+
};
|
|
55464
|
+
tool$agentPreferenceV2AgentPreferenceResultsList = {
|
|
55465
|
+
name: "agent-preference-v2-agent-preference-results-list",
|
|
55466
|
+
description: `List Results
|
|
55467
|
+
|
|
55468
|
+
Returns recorded attempts for an Agent Preference eval, newest first, each with whether your company won, lost, or tied against the competitor.`,
|
|
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 agentPreferenceV2AgentPreferenceResultsList(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($
|
|
55492
|
+
return new APIPromise($do9(client$, options));
|
|
54271
55493
|
}
|
|
54272
|
-
async function $
|
|
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($
|
|
55584
|
+
return new APIPromise($do10(client$, options));
|
|
54363
55585
|
}
|
|
54364
|
-
async function $
|
|
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($
|
|
55676
|
+
return new APIPromise($do11(client$, options));
|
|
54455
55677
|
}
|
|
54456
|
-
async function $
|
|
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($
|
|
55842
|
+
return new APIPromise($do12(client$, request, options));
|
|
54721
55843
|
}
|
|
54722
|
-
async function $
|
|
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
|
|
55918
|
+
var args7, tool$evalRunsV2EvalRunsList;
|
|
54797
55919
|
var init_evalRunsV2EvalRunsList2 = __esm(() => {
|
|
54798
55920
|
init_evalRunsV2EvalRunsList();
|
|
54799
55921
|
init_v2evalrunslistop();
|
|
54800
55922
|
init_tools();
|
|
54801
|
-
|
|
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($
|
|
55981
|
+
return new APIPromise($do13(client$, request, options));
|
|
54860
55982
|
}
|
|
54861
|
-
async function $
|
|
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
|
|
56058
|
+
var args8, tool$evalsCancel;
|
|
54937
56059
|
var init_evalsCancel2 = __esm(() => {
|
|
54938
56060
|
init_evalsCancel();
|
|
54939
56061
|
init_v2evalrunscancelop();
|
|
54940
56062
|
init_tools();
|
|
54941
|
-
|
|
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:
|
|
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($
|
|
56245
|
+
return new APIPromise($do14(client$, request, options));
|
|
55133
56246
|
}
|
|
55134
|
-
async function $
|
|
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
|
|
56322
|
+
var args9, tool$evalsGet;
|
|
55210
56323
|
var init_evalsGet2 = __esm(() => {
|
|
55211
56324
|
init_evalsGet();
|
|
55212
56325
|
init_v2evalrunsretrieveop();
|
|
55213
56326
|
init_tools();
|
|
55214
|
-
|
|
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:
|
|
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($
|
|
56423
|
+
return new APIPromise($do15(client$, request, options));
|
|
55311
56424
|
}
|
|
55312
|
-
async function $
|
|
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
|
|
56495
|
+
var args10, tool$evalsRun;
|
|
55383
56496
|
var init_evalsRun2 = __esm(() => {
|
|
55384
56497
|
init_evalsRun();
|
|
55385
56498
|
init_createv2evalrunrequest();
|
|
55386
56499
|
init_tools();
|
|
55387
|
-
|
|
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:
|
|
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($
|
|
56600
|
+
return new APIPromise($do16(client$, request, options));
|
|
55488
56601
|
}
|
|
55489
|
-
async function $
|
|
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
|
|
56682
|
+
var args11, tool$evalsTrace;
|
|
55570
56683
|
var init_evalsTrace2 = __esm(() => {
|
|
55571
56684
|
init_evalsTrace();
|
|
55572
56685
|
init_v2evalrunstraceop();
|
|
55573
56686
|
init_tools();
|
|
55574
|
-
|
|
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:
|
|
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($
|
|
56775
|
+
return new APIPromise($do17(client$, request, options));
|
|
55663
56776
|
}
|
|
55664
|
-
async function $
|
|
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
|
|
56853
|
+
var args12, tool$evalsV2EvalConfigurationsCreate;
|
|
55741
56854
|
var init_evalsV2EvalConfigurationsCreate2 = __esm(() => {
|
|
55742
56855
|
init_evalsV2EvalConfigurationsCreate();
|
|
55743
56856
|
init_v2evalconfigurationscreateop();
|
|
55744
56857
|
init_tools();
|
|
55745
|
-
|
|
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:
|
|
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($
|
|
56905
|
+
return new APIPromise($do18(client$, request, options));
|
|
55793
56906
|
}
|
|
55794
|
-
async function $
|
|
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
|
|
56983
|
+
var args13, tool$evalsV2EvalConfigurationsDelete;
|
|
55871
56984
|
var init_evalsV2EvalConfigurationsDelete2 = __esm(() => {
|
|
55872
56985
|
init_evalsV2EvalConfigurationsDelete();
|
|
55873
56986
|
init_v2evalconfigurationsdeleteop();
|
|
55874
56987
|
init_tools();
|
|
55875
|
-
|
|
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:
|
|
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($
|
|
57045
|
+
return new APIPromise($do19(client$, request, options));
|
|
55933
57046
|
}
|
|
55934
|
-
async function $
|
|
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
|
|
57122
|
+
var args14, tool$evalsV2EvalConfigurationsList;
|
|
56010
57123
|
var init_evalsV2EvalConfigurationsList2 = __esm(() => {
|
|
56011
57124
|
init_evalsV2EvalConfigurationsList();
|
|
56012
57125
|
init_v2evalconfigurationslistop();
|
|
56013
57126
|
init_tools();
|
|
56014
|
-
|
|
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:
|
|
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($
|
|
57174
|
+
return new APIPromise($do20(client$, request, options));
|
|
56062
57175
|
}
|
|
56063
|
-
async function $
|
|
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
|
|
57252
|
+
var args15, tool$evalsV2EvalConfigurationsRetrieve;
|
|
56140
57253
|
var init_evalsV2EvalConfigurationsRetrieve2 = __esm(() => {
|
|
56141
57254
|
init_evalsV2EvalConfigurationsRetrieve();
|
|
56142
57255
|
init_v2evalconfigurationsretrieveop();
|
|
56143
57256
|
init_tools();
|
|
56144
|
-
|
|
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:
|
|
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($
|
|
57324
|
+
return new APIPromise($do21(client$, request, options));
|
|
56212
57325
|
}
|
|
56213
|
-
async function $
|
|
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
|
|
57403
|
+
var args16, tool$evalsV2EvalConfigurationsUpdate;
|
|
56291
57404
|
var init_evalsV2EvalConfigurationsUpdate2 = __esm(() => {
|
|
56292
57405
|
init_evalsV2EvalConfigurationsUpdate();
|
|
56293
57406
|
init_v2evalconfigurationsupdateop();
|
|
56294
57407
|
init_tools();
|
|
56295
|
-
|
|
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:
|
|
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($
|
|
57469
|
+
return new APIPromise($do22(client$, request, options));
|
|
56357
57470
|
}
|
|
56358
|
-
async function $
|
|
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
|
|
57541
|
+
var args17, tool$evalsV2EvalsBatchCreate;
|
|
56429
57542
|
var init_evalsV2EvalsBatchCreate2 = __esm(() => {
|
|
56430
57543
|
init_evalsV2EvalsBatchCreate();
|
|
56431
57544
|
init_createevaltemplatebatchrequest();
|
|
56432
57545
|
init_tools();
|
|
56433
|
-
|
|
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:
|
|
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($
|
|
57607
|
+
return new APIPromise($do23(client$, request, options));
|
|
56495
57608
|
}
|
|
56496
|
-
async function $
|
|
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
|
|
57679
|
+
var args18, tool$evalsV2EvalsCreate;
|
|
56567
57680
|
var init_evalsV2EvalsCreate2 = __esm(() => {
|
|
56568
57681
|
init_evalsV2EvalsCreate();
|
|
56569
57682
|
init_createv2evalrequest();
|
|
56570
57683
|
init_tools();
|
|
56571
|
-
|
|
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:
|
|
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($
|
|
57790
|
+
return new APIPromise($do24(client$, request, options));
|
|
56678
57791
|
}
|
|
56679
|
-
async function $
|
|
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
|
|
57867
|
+
var args19, tool$evalsV2EvalsDelete;
|
|
56755
57868
|
var init_evalsV2EvalsDelete2 = __esm(() => {
|
|
56756
57869
|
init_evalsV2EvalsDelete();
|
|
56757
57870
|
init_v2evalsdeleteop();
|
|
56758
57871
|
init_tools();
|
|
56759
|
-
|
|
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:
|
|
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($
|
|
57903
|
+
return new APIPromise($do25(client$, options));
|
|
56791
57904
|
}
|
|
56792
|
-
async function $
|
|
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"
|
|
@@ -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($
|
|
58010
|
+
return new APIPromise($do26(client$, request, options));
|
|
56898
58011
|
}
|
|
56899
|
-
async function $
|
|
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
|
|
58087
|
+
var args20, tool$evalsV2EvalsRetrieve;
|
|
56975
58088
|
var init_evalsV2EvalsRetrieve2 = __esm(() => {
|
|
56976
58089
|
init_evalsV2EvalsRetrieve();
|
|
56977
58090
|
init_v2evalsretrieveop();
|
|
56978
58091
|
init_tools();
|
|
56979
|
-
|
|
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:
|
|
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($
|
|
58170
|
+
return new APIPromise($do27(client$, request, options));
|
|
57058
58171
|
}
|
|
57059
|
-
async function $
|
|
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
|
|
58248
|
+
var args21, tool$evalsV2EvalsUpdate;
|
|
57136
58249
|
var init_evalsV2EvalsUpdate2 = __esm(() => {
|
|
57137
58250
|
init_evalsV2EvalsUpdate();
|
|
57138
58251
|
init_v2evalsupdateop();
|
|
57139
58252
|
init_tools();
|
|
57140
|
-
|
|
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:
|
|
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($
|
|
58383
|
+
return new APIPromise($do28(client$, request, options));
|
|
57271
58384
|
}
|
|
57272
|
-
async function $
|
|
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
|
|
58455
|
+
var args22, tool$evalTemplatesV2EvalTemplatesCreate;
|
|
57343
58456
|
var init_evalTemplatesV2EvalTemplatesCreate2 = __esm(() => {
|
|
57344
58457
|
init_evalTemplatesV2EvalTemplatesCreate();
|
|
57345
58458
|
init_createevaltemplaterequest();
|
|
57346
58459
|
init_tools();
|
|
57347
|
-
|
|
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:
|
|
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($
|
|
58568
|
+
return new APIPromise($do29(client$, request, options));
|
|
57456
58569
|
}
|
|
57457
|
-
async function $
|
|
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
|
|
58645
|
+
var args23, tool$evalTemplatesV2EvalTemplatesDelete;
|
|
57533
58646
|
var init_evalTemplatesV2EvalTemplatesDelete2 = __esm(() => {
|
|
57534
58647
|
init_evalTemplatesV2EvalTemplatesDelete();
|
|
57535
58648
|
init_v2evaltemplatesdeleteop();
|
|
57536
58649
|
init_tools();
|
|
57537
|
-
|
|
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:
|
|
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($
|
|
58681
|
+
return new APIPromise($do30(client$, options));
|
|
57569
58682
|
}
|
|
57570
|
-
async function $
|
|
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($
|
|
58792
|
+
return new APIPromise($do31(client$, request, options));
|
|
57680
58793
|
}
|
|
57681
|
-
async function $
|
|
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
|
|
58869
|
+
var args24, tool$evalTemplatesV2EvalTemplatesRetrieve;
|
|
57757
58870
|
var init_evalTemplatesV2EvalTemplatesRetrieve2 = __esm(() => {
|
|
57758
58871
|
init_evalTemplatesV2EvalTemplatesRetrieve();
|
|
57759
58872
|
init_v2evaltemplatesretrieveop();
|
|
57760
58873
|
init_tools();
|
|
57761
|
-
|
|
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:
|
|
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($
|
|
58982
|
+
return new APIPromise($do32(client$, request, options));
|
|
57870
58983
|
}
|
|
57871
|
-
async function $
|
|
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
|
|
59060
|
+
var args25, tool$evalTemplatesV2EvalTemplatesUpdate;
|
|
57948
59061
|
var init_evalTemplatesV2EvalTemplatesUpdate2 = __esm(() => {
|
|
57949
59062
|
init_evalTemplatesV2EvalTemplatesUpdate();
|
|
57950
59063
|
init_v2evaltemplatesupdateop();
|
|
57951
59064
|
init_tools();
|
|
57952
|
-
|
|
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:
|
|
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($
|
|
59096
|
+
return new APIPromise($do33(client$, options));
|
|
57984
59097
|
}
|
|
57985
|
-
async function $
|
|
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($
|
|
59280
|
+
return new APIPromise($do34(client$, request, options));
|
|
58168
59281
|
}
|
|
58169
|
-
async function $
|
|
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
|
|
59360
|
+
var args26, tool$opportunitiesV2OpportunitiesList;
|
|
58248
59361
|
var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
|
|
58249
59362
|
init_opportunitiesV2OpportunitiesList();
|
|
58250
59363
|
init_v2opportunitieslistop();
|
|
58251
59364
|
init_tools();
|
|
58252
|
-
|
|
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:
|
|
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($
|
|
59452
|
+
return new APIPromise($do35(client$, request, options));
|
|
58340
59453
|
}
|
|
58341
|
-
async function $
|
|
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
|
|
59535
|
+
var args27, tool$opportunitiesV2OpportunitiesRetrieve;
|
|
58423
59536
|
var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
|
|
58424
59537
|
init_opportunitiesV2OpportunitiesRetrieve();
|
|
58425
59538
|
init_v2opportunitiesretrieveop();
|
|
58426
59539
|
init_tools();
|
|
58427
|
-
|
|
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:
|
|
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($
|
|
59581
|
+
return new APIPromise($do36(client$, request, options));
|
|
58469
59582
|
}
|
|
58470
|
-
async function $
|
|
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
|
|
59653
|
+
var args28, tool$promptsRun;
|
|
58541
59654
|
var init_promptsRun2 = __esm(() => {
|
|
58542
59655
|
init_promptsRun();
|
|
58543
59656
|
init_createv2promptrunrequest();
|
|
58544
59657
|
init_tools();
|
|
58545
|
-
|
|
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:
|
|
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($
|
|
59757
|
+
return new APIPromise($do37(client$, request, options));
|
|
58645
59758
|
}
|
|
58646
|
-
async function $
|
|
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
|
|
59834
|
+
var args29, tool$promptsRunStatus;
|
|
58722
59835
|
var init_promptsRunStatus2 = __esm(() => {
|
|
58723
59836
|
init_promptsRunStatus();
|
|
58724
59837
|
init_v2promptrunstatusretrieveop();
|
|
58725
59838
|
init_tools();
|
|
58726
|
-
|
|
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:
|
|
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($
|
|
59971
|
+
return new APIPromise($do38(client$, request, options));
|
|
58859
59972
|
}
|
|
58860
|
-
async function $
|
|
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
|
|
60051
|
+
var args30, tool$promptsV2PromptRunsList;
|
|
58939
60052
|
var init_promptsV2PromptRunsList2 = __esm(() => {
|
|
58940
60053
|
init_promptsV2PromptRunsList();
|
|
58941
60054
|
init_v2promptrunslistop();
|
|
58942
60055
|
init_tools();
|
|
58943
|
-
|
|
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:
|
|
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($
|
|
60184
|
+
return new APIPromise($do39(client$, request, options));
|
|
59072
60185
|
}
|
|
59073
|
-
async function $
|
|
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
|
|
60261
|
+
var args31, tool$promptsV2PromptRunsRetrieve;
|
|
59149
60262
|
var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
|
|
59150
60263
|
init_promptsV2PromptRunsRetrieve();
|
|
59151
60264
|
init_v2promptrunsretrieveop();
|
|
59152
60265
|
init_tools();
|
|
59153
|
-
|
|
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:
|
|
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($
|
|
60336
|
+
return new APIPromise($do40(client$, request, options));
|
|
59224
60337
|
}
|
|
59225
|
-
async function $
|
|
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
|
|
60408
|
+
var args32, tool$promptsV2PromptsCreate;
|
|
59296
60409
|
var init_promptsV2PromptsCreate2 = __esm(() => {
|
|
59297
60410
|
init_promptsV2PromptsCreate();
|
|
59298
60411
|
init_createv2promptsrequest();
|
|
59299
60412
|
init_tools();
|
|
59300
|
-
|
|
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:
|
|
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($
|
|
60468
|
+
return new APIPromise($do41(client$, request, options));
|
|
59356
60469
|
}
|
|
59357
|
-
async function $
|
|
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
|
|
60545
|
+
var args33, tool$promptsV2PromptsDelete;
|
|
59433
60546
|
var init_promptsV2PromptsDelete2 = __esm(() => {
|
|
59434
60547
|
init_promptsV2PromptsDelete();
|
|
59435
60548
|
init_v2promptsdeleteop();
|
|
59436
60549
|
init_tools();
|
|
59437
|
-
|
|
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:
|
|
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($
|
|
60693
|
+
return new APIPromise($do42(client$, request, options));
|
|
59581
60694
|
}
|
|
59582
|
-
async function $
|
|
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
|
|
60770
|
+
var args34, tool$promptsV2PromptsList;
|
|
59658
60771
|
var init_promptsV2PromptsList2 = __esm(() => {
|
|
59659
60772
|
init_promptsV2PromptsList();
|
|
59660
60773
|
init_v2promptslistop();
|
|
59661
60774
|
init_tools();
|
|
59662
|
-
|
|
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:
|
|
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($
|
|
60821
|
+
return new APIPromise($do43(client$, request, options));
|
|
59709
60822
|
}
|
|
59710
|
-
async function $
|
|
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
|
|
60898
|
+
var args35, tool$promptsV2PromptsRetrieve;
|
|
59786
60899
|
var init_promptsV2PromptsRetrieve2 = __esm(() => {
|
|
59787
60900
|
init_promptsV2PromptsRetrieve();
|
|
59788
60901
|
init_v2promptsretrieveop();
|
|
59789
60902
|
init_tools();
|
|
59790
|
-
|
|
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:
|
|
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($
|
|
60969
|
+
return new APIPromise($do44(client$, request, options));
|
|
59857
60970
|
}
|
|
59858
|
-
async function $
|
|
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
|
|
61047
|
+
var args36, tool$promptsV2PromptsUpdate;
|
|
59935
61048
|
var init_promptsV2PromptsUpdate2 = __esm(() => {
|
|
59936
61049
|
init_promptsV2PromptsUpdate();
|
|
59937
61050
|
init_v2promptsupdateop();
|
|
59938
61051
|
init_tools();
|
|
59939
|
-
|
|
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:
|
|
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($
|
|
61092
|
+
return new APIPromise($do45(client$, request, options));
|
|
59980
61093
|
}
|
|
59981
|
-
async function $
|
|
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
|
|
61164
|
+
var args37, tool$promptsV2PromptTopicsCreate;
|
|
60052
61165
|
var init_promptsV2PromptTopicsCreate2 = __esm(() => {
|
|
60053
61166
|
init_promptsV2PromptTopicsCreate();
|
|
60054
61167
|
init_createprompttopicrequest();
|
|
60055
61168
|
init_tools();
|
|
60056
|
-
|
|
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:
|
|
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($
|
|
61216
|
+
return new APIPromise($do46(client$, request, options));
|
|
60104
61217
|
}
|
|
60105
|
-
async function $
|
|
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
|
|
61297
|
+
var args38, tool$promptsV2PromptTopicsDelete;
|
|
60185
61298
|
var init_promptsV2PromptTopicsDelete2 = __esm(() => {
|
|
60186
61299
|
init_promptsV2PromptTopicsDelete();
|
|
60187
61300
|
init_v2prompttopicsdeleteop();
|
|
60188
61301
|
init_tools();
|
|
60189
|
-
|
|
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:
|
|
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($
|
|
61333
|
+
return new APIPromise($do47(client$, options));
|
|
60221
61334
|
}
|
|
60222
|
-
async function $
|
|
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($
|
|
61451
|
+
return new APIPromise($do48(client$, request, options));
|
|
60339
61452
|
}
|
|
60340
|
-
async function $
|
|
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
|
|
61529
|
+
var args39, tool$promptsV2PromptTopicsUpdate;
|
|
60417
61530
|
var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
|
|
60418
61531
|
init_promptsV2PromptTopicsUpdate();
|
|
60419
61532
|
init_v2prompttopicsupdateop();
|
|
60420
61533
|
init_tools();
|
|
60421
|
-
|
|
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:
|
|
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($
|
|
61592
|
+
return new APIPromise($do49(client$, request, options));
|
|
60480
61593
|
}
|
|
60481
|
-
async function $
|
|
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
|
|
61664
|
+
var args40, tool$repositoriesV2RepositoriesCreate;
|
|
60552
61665
|
var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
|
|
60553
61666
|
init_repositoriesV2RepositoriesCreate();
|
|
60554
61667
|
init_createv2repositoryrequest();
|
|
60555
61668
|
init_tools();
|
|
60556
|
-
|
|
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:
|
|
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($
|
|
61750
|
+
return new APIPromise($do50(client$, request, options));
|
|
60638
61751
|
}
|
|
60639
|
-
async function $
|
|
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
|
|
61827
|
+
var args41, tool$repositoriesV2RepositoriesDelete;
|
|
60715
61828
|
var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
|
|
60716
61829
|
init_repositoriesV2RepositoriesDelete();
|
|
60717
61830
|
init_v2repositoriesdeleteop();
|
|
60718
61831
|
init_tools();
|
|
60719
|
-
|
|
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:
|
|
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($
|
|
61863
|
+
return new APIPromise($do51(client$, options));
|
|
60751
61864
|
}
|
|
60752
|
-
async function $
|
|
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($
|
|
61970
|
+
return new APIPromise($do52(client$, request, options));
|
|
60858
61971
|
}
|
|
60859
|
-
async function $
|
|
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
|
|
62047
|
+
var args42, tool$repositoriesV2RepositoriesRetrieve;
|
|
60935
62048
|
var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
|
|
60936
62049
|
init_repositoriesV2RepositoriesRetrieve();
|
|
60937
62050
|
init_v2repositoriesretrieveop();
|
|
60938
62051
|
init_tools();
|
|
60939
|
-
|
|
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:
|
|
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($
|
|
62127
|
+
return new APIPromise($do53(client$, request, options));
|
|
61015
62128
|
}
|
|
61016
|
-
async function $
|
|
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
|
|
62205
|
+
var args43, tool$repositoriesV2RepositoriesUpdate;
|
|
61093
62206
|
var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
|
|
61094
62207
|
init_repositoriesV2RepositoriesUpdate();
|
|
61095
62208
|
init_v2repositoriesupdateop();
|
|
61096
62209
|
init_tools();
|
|
61097
|
-
|
|
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:
|
|
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($
|
|
62241
|
+
return new APIPromise($do54(client$, options));
|
|
61129
62242
|
}
|
|
61130
|
-
async function $
|
|
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($
|
|
62384
|
+
return new APIPromise($do55(client$, request, options));
|
|
61272
62385
|
}
|
|
61273
|
-
async function $
|
|
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
|
|
62461
|
+
var args44, tool$siteAuditsV2SiteAuditsRetrieve;
|
|
61349
62462
|
var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
|
|
61350
62463
|
init_siteAuditsV2SiteAuditsRetrieve();
|
|
61351
62464
|
init_v2siteauditsretrieveop();
|
|
61352
62465
|
init_tools();
|
|
61353
|
-
|
|
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:
|
|
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($
|
|
62497
|
+
return new APIPromise($do56(client$, options));
|
|
61385
62498
|
}
|
|
61386
|
-
async function $
|
|
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($
|
|
62589
|
+
return new APIPromise($do57(client$, options));
|
|
61477
62590
|
}
|
|
61478
|
-
async function $
|
|
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($
|
|
62681
|
+
return new APIPromise($do58(client$, options));
|
|
61569
62682
|
}
|
|
61570
|
-
async function $
|
|
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($
|
|
62903
|
+
return new APIPromise($do59(client$, request, options));
|
|
61791
62904
|
}
|
|
61792
|
-
async function $
|
|
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
|
|
62979
|
+
var args45, tool$tasksV2TasksList;
|
|
61867
62980
|
var init_tasksV2TasksList2 = __esm(() => {
|
|
61868
62981
|
init_tasksV2TasksList();
|
|
61869
62982
|
init_v2taskslistop();
|
|
61870
62983
|
init_tools();
|
|
61871
|
-
|
|
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:
|
|
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($
|
|
63030
|
+
return new APIPromise($do60(client$, request, options));
|
|
61918
63031
|
}
|
|
61919
|
-
async function $
|
|
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
|
|
63107
|
+
var args46, tool$tasksV2TasksRetrieve;
|
|
61995
63108
|
var init_tasksV2TasksRetrieve2 = __esm(() => {
|
|
61996
63109
|
init_tasksV2TasksRetrieve();
|
|
61997
63110
|
init_v2tasksretrieveop();
|
|
61998
63111
|
init_tools();
|
|
61999
|
-
|
|
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:
|
|
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($
|
|
63190
|
+
return new APIPromise($do61(client$, request, options));
|
|
62078
63191
|
}
|
|
62079
|
-
async function $
|
|
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
|
|
63268
|
+
var args47, tool$tasksV2TasksUpdate;
|
|
62156
63269
|
var init_tasksV2TasksUpdate2 = __esm(() => {
|
|
62157
63270
|
init_tasksV2TasksUpdate();
|
|
62158
63271
|
init_v2tasksupdateop();
|
|
62159
63272
|
init_tools();
|
|
62160
|
-
|
|
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:
|
|
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($
|
|
63376
|
+
return new APIPromise($do62(client$, request, options));
|
|
62264
63377
|
}
|
|
62265
|
-
async function $
|
|
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
|
|
63455
|
+
var args48, tool$visibilityV2VisibilityCitationsList;
|
|
62343
63456
|
var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
|
|
62344
63457
|
init_visibilityV2VisibilityCitationsList();
|
|
62345
63458
|
init_v2visibilitycitationslistop();
|
|
62346
63459
|
init_tools();
|
|
62347
|
-
|
|
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:
|
|
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($
|
|
63540
|
+
return new APIPromise($do63(client$, request, options));
|
|
62428
63541
|
}
|
|
62429
|
-
async function $
|
|
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
|
|
63616
|
+
var args49, tool$visibilityV2VisibilityCurrentRetrieve;
|
|
62504
63617
|
var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
|
|
62505
63618
|
init_visibilityV2VisibilityCurrentRetrieve();
|
|
62506
63619
|
init_v2visibilitycurrentretrieveop();
|
|
62507
63620
|
init_tools();
|
|
62508
|
-
|
|
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:
|
|
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($
|
|
63779
|
+
return new APIPromise($do64(client$, request, options));
|
|
62667
63780
|
}
|
|
62668
|
-
async function $
|
|
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
|
|
63855
|
+
var args50, tool$visibilityV2VisibilityOverviewRetrieve;
|
|
62743
63856
|
var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
|
|
62744
63857
|
init_visibilityV2VisibilityOverviewRetrieve();
|
|
62745
63858
|
init_v2visibilityoverviewretrieveop();
|
|
62746
63859
|
init_tools();
|
|
62747
|
-
|
|
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:
|
|
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($
|
|
63989
|
+
return new APIPromise($do65(client$, request, options));
|
|
62877
63990
|
}
|
|
62878
|
-
async function $
|
|
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
|
|
64065
|
+
var args51, tool$visibilityV2VisibilityPromptsRetrieve;
|
|
62953
64066
|
var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
|
|
62954
64067
|
init_visibilityV2VisibilityPromptsRetrieve();
|
|
62955
64068
|
init_v2visibilitypromptsretrieveop();
|
|
62956
64069
|
init_tools();
|
|
62957
|
-
|
|
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:
|
|
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.
|
|
64109
|
+
version: "0.4.6"
|
|
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$agentPreferenceV2AgentPreferenceCompetitorsList);
|
|
64176
|
+
tool(tool$agentPreferenceV2AgentPreferenceHeadToHeadRetrieve);
|
|
64177
|
+
tool(tool$agentPreferenceV2AgentPreferenceEvalsList);
|
|
64178
|
+
tool(tool$agentPreferenceV2AgentPreferenceEvalsCreate);
|
|
64179
|
+
tool(tool$agentPreferenceV2AgentPreferenceEvalsRetrieve);
|
|
64180
|
+
tool(tool$agentPreferenceV2AgentPreferenceEvalsUpdate);
|
|
64181
|
+
tool(tool$agentPreferenceV2AgentPreferenceEvalsDelete);
|
|
64182
|
+
tool(tool$agentPreferenceV2AgentPreferenceResultsList);
|
|
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_agentPreferenceV2AgentPreferenceCompetitorsList2();
|
|
64204
|
+
init_agentPreferenceV2AgentPreferenceEvalsCreate2();
|
|
64205
|
+
init_agentPreferenceV2AgentPreferenceEvalsDelete2();
|
|
64206
|
+
init_agentPreferenceV2AgentPreferenceEvalsList2();
|
|
64207
|
+
init_agentPreferenceV2AgentPreferenceEvalsRetrieve2();
|
|
64208
|
+
init_agentPreferenceV2AgentPreferenceEvalsUpdate2();
|
|
64209
|
+
init_agentPreferenceV2AgentPreferenceHeadToHeadRetrieve2();
|
|
64210
|
+
init_agentPreferenceV2AgentPreferenceResultsList2();
|
|
63082
64211
|
init_agentsV2AgentsList2();
|
|
63083
64212
|
init_clIsV2ClisList2();
|
|
63084
64213
|
init_environmentsV2EnvironmentsList2();
|
|
@@ -63399,6 +64528,46 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
|
|
|
63399
64528
|
name: "eval-runs-v2-eval-runs-list",
|
|
63400
64529
|
description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
|
|
63401
64530
|
},
|
|
64531
|
+
{
|
|
64532
|
+
name: "agent-preference-v2-agent-preference-competitors-9f0",
|
|
64533
|
+
description: "List Competitors\n\nReturns the tracked competitors your company can be compared against. Use a returned `id` as `competitor_id` when creating an Agent Preference eval."
|
|
64534
|
+
},
|
|
64535
|
+
{
|
|
64536
|
+
name: "agent-preference-v2-agent-preference-head-to-273",
|
|
64537
|
+
description: "Retrieve Head To Head\n\nReturns how often agents recommended your company over each tracked competitor: wins, losses, ties, and win rate per competitor plus a combined record. Calculated from the most recent attempts across all Agent Preference evals, up to `limit`; `truncated` reports whether older attempts were left out."
|
|
64538
|
+
},
|
|
64539
|
+
{
|
|
64540
|
+
name: "agent-preference-v2-agent-preference-evals-list",
|
|
64541
|
+
description: `List Evals
|
|
64542
|
+
|
|
64543
|
+
Returns all active Agent Preference evals owned by the organization.`
|
|
64544
|
+
},
|
|
64545
|
+
{
|
|
64546
|
+
name: "agent-preference-v2-agent-preference-evals-create",
|
|
64547
|
+
description: "Create Eval\n\nCreates a head-to-head comparison between your company and one tracked competitor. Each prompt asks an agent to choose, and a fixed judge records which company it recommended. Creating the eval does not start a run; pass the returned `id` as `eval_id` to `POST /v2/eval-runs`."
|
|
64548
|
+
},
|
|
64549
|
+
{
|
|
64550
|
+
name: "agent-preference-v2-agent-preference-evals-retrieve",
|
|
64551
|
+
description: `Retrieve Eval
|
|
64552
|
+
|
|
64553
|
+
Returns one Agent Preference eval.`
|
|
64554
|
+
},
|
|
64555
|
+
{
|
|
64556
|
+
name: "agent-preference-v2-agent-preference-evals-update",
|
|
64557
|
+
description: "Update Eval\n\nUpdates an Agent Preference eval. Omitted fields remain unchanged, an empty `agent` or `tags` array clears that collection, and `persona: null` clears the saved persona. The competitor and the judge that decides the comparison cannot be changed."
|
|
64558
|
+
},
|
|
64559
|
+
{
|
|
64560
|
+
name: "agent-preference-v2-agent-preference-evals-delete",
|
|
64561
|
+
description: `Delete Eval
|
|
64562
|
+
|
|
64563
|
+
Permanently deletes an Agent Preference eval and returns its last saved state.`
|
|
64564
|
+
},
|
|
64565
|
+
{
|
|
64566
|
+
name: "agent-preference-v2-agent-preference-results-list",
|
|
64567
|
+
description: `List Results
|
|
64568
|
+
|
|
64569
|
+
Returns recorded attempts for an Agent Preference eval, newest first, each with whether your company won, lost, or tied against the competitor.`
|
|
64570
|
+
},
|
|
63402
64571
|
{
|
|
63403
64572
|
name: "agents-v2-agents-list",
|
|
63404
64573
|
description: `List Agents
|
|
@@ -64363,7 +65532,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
64363
65532
|
<h1>Instructions</h1>
|
|
64364
65533
|
<p>One-click installation for Claude Desktop users</p>
|
|
64365
65534
|
<div class="instruction-item">
|
|
64366
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.
|
|
65535
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.6/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
64367
65536
|
\uD83D\uDCE5 Download MCP Bundle
|
|
64368
65537
|
</a>
|
|
64369
65538
|
</div>
|
|
@@ -67241,7 +68410,7 @@ var routes = buildRouteMap({
|
|
|
67241
68410
|
var app = buildApplication(routes, {
|
|
67242
68411
|
name: "mcp",
|
|
67243
68412
|
versionInfo: {
|
|
67244
|
-
currentVersion: "0.4.
|
|
68413
|
+
currentVersion: "0.4.6"
|
|
67245
68414
|
}
|
|
67246
68415
|
});
|
|
67247
68416
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -67249,5 +68418,5 @@ export {
|
|
|
67249
68418
|
app
|
|
67250
68419
|
};
|
|
67251
68420
|
|
|
67252
|
-
//# debugId=
|
|
68421
|
+
//# debugId=59EB2957DA1B9F9B64756E2164756E21
|
|
67253
68422
|
//# sourceMappingURL=mcp-server.js.map
|