@lightsage/mcp 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/well-known-openai-apps-challenge.js +25 -0
- package/bin/mcp-server.js +660 -797
- package/bin/mcp-server.js.map +53 -57
- package/esm/funcs/evalsCancel.d.ts +16 -0
- package/esm/funcs/evalsCancel.d.ts.map +1 -0
- package/esm/funcs/{evalsAnalysis.js → evalsCancel.js} +10 -10
- package/esm/funcs/evalsCancel.js.map +1 -0
- package/esm/funcs/evalsGet.d.ts +16 -0
- package/esm/funcs/evalsGet.d.ts.map +1 -0
- package/esm/funcs/{evalRunsV2EvalRunsRetrieve.js → evalsGet.js} +5 -5
- package/esm/funcs/evalsGet.js.map +1 -0
- package/esm/funcs/evalsRun.d.ts +6 -4
- package/esm/funcs/evalsRun.d.ts.map +1 -1
- package/esm/funcs/evalsRun.js +6 -4
- package/esm/funcs/evalsRun.js.map +1 -1
- package/esm/funcs/evalsV2EvalsCreate.d.ts +1 -1
- package/esm/funcs/evalsV2EvalsCreate.js +1 -1
- package/esm/funcs/evalsV2EvalsUpdate.d.ts +1 -1
- package/esm/funcs/evalsV2EvalsUpdate.js +1 -1
- package/esm/funcs/promptsV2PromptRunsList.d.ts +1 -1
- package/esm/funcs/promptsV2PromptRunsList.js +1 -1
- package/esm/funcs/promptsV2PromptRunsRetrieve.d.ts +1 -1
- package/esm/funcs/promptsV2PromptRunsRetrieve.js +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- 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 +5 -9
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/evalsCancel.d.ts +7 -0
- package/esm/mcp-server/tools/evalsCancel.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalsCancel.js +35 -0
- package/esm/mcp-server/tools/evalsCancel.js.map +1 -0
- package/esm/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.d.ts → evalsGet.d.ts} +2 -2
- package/esm/mcp-server/tools/evalsGet.d.ts.map +1 -0
- package/esm/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.js → evalsGet.js} +8 -8
- package/esm/mcp-server/tools/evalsGet.js.map +1 -0
- package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
- package/esm/mcp-server/tools/evalsRun.js +6 -4
- package/esm/mcp-server/tools/evalsRun.js.map +1 -1
- package/esm/mcp-server/tools/evalsV2EvalsCreate.js +1 -1
- package/esm/mcp-server/tools/evalsV2EvalsCreate.js.map +1 -1
- package/esm/mcp-server/tools/evalsV2EvalsUpdate.js +1 -1
- package/esm/mcp-server/tools/evalsV2EvalsUpdate.js.map +1 -1
- package/esm/mcp-server/tools/promptsV2PromptRunsList.js +1 -1
- package/esm/mcp-server/tools/promptsV2PromptRunsList.js.map +1 -1
- package/esm/mcp-server/tools/promptsV2PromptRunsRetrieve.js +1 -1
- package/esm/mcp-server/tools/promptsV2PromptRunsRetrieve.js.map +1 -1
- package/esm/models/createv2evalconfigurationrequest.d.ts +2 -0
- package/esm/models/createv2evalconfigurationrequest.d.ts.map +1 -1
- package/esm/models/createv2evalconfigurationrequest.js +2 -0
- package/esm/models/createv2evalconfigurationrequest.js.map +1 -1
- package/esm/models/createv2evalrequest.d.ts +5 -5
- package/esm/models/createv2evalrequest.d.ts.map +1 -1
- package/esm/models/createv2evalrequest.js +5 -10
- package/esm/models/createv2evalrequest.js.map +1 -1
- package/esm/models/createv2evalrunrequest.d.ts +5 -5
- package/esm/models/createv2evalrunrequest.d.ts.map +1 -1
- package/esm/models/createv2evalrunrequest.js +6 -10
- package/esm/models/createv2evalrunrequest.js.map +1 -1
- package/esm/models/publiccompetitorrow.js +2 -2
- package/esm/models/publiccompetitorrow.js.map +1 -1
- package/esm/models/publiccriterionverdict.d.ts +26 -0
- package/esm/models/publiccriterionverdict.d.ts.map +1 -0
- package/esm/models/publiccriterionverdict.js +24 -0
- package/esm/models/publiccriterionverdict.js.map +1 -0
- package/esm/models/publiccurrentvisibilityresponse.js +2 -2
- package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
- package/esm/models/publicevalrunenvironment.d.ts +15 -0
- package/esm/models/publicevalrunenvironment.d.ts.map +1 -0
- package/esm/models/publicevalrunenvironment.js +15 -0
- package/esm/models/publicevalrunenvironment.js.map +1 -0
- package/esm/models/publicevalrunprogress.d.ts +1 -0
- package/esm/models/publicevalrunprogress.d.ts.map +1 -1
- package/esm/models/publicevalrunprogress.js +3 -2
- package/esm/models/publicevalrunprogress.js.map +1 -1
- package/esm/models/publicgraderresult.d.ts +13 -0
- package/esm/models/publicgraderresult.d.ts.map +1 -0
- package/esm/models/publicgraderresult.js +18 -0
- package/esm/models/publicgraderresult.js.map +1 -0
- package/esm/models/publicpromptvisibilitymetrics.js +2 -2
- package/esm/models/publicpromptvisibilitymetrics.js.map +1 -1
- package/esm/models/publicvisibilitysnapshot.js +2 -2
- package/esm/models/publicvisibilitysnapshot.js.map +1 -1
- package/esm/models/searchgroundingmode.d.ts +20 -0
- package/esm/models/searchgroundingmode.d.ts.map +1 -0
- package/esm/models/searchgroundingmode.js +19 -0
- package/esm/models/searchgroundingmode.js.map +1 -0
- package/esm/models/updatev2evalconfigurationrequest.d.ts +2 -0
- package/esm/models/updatev2evalconfigurationrequest.d.ts.map +1 -1
- package/esm/models/updatev2evalconfigurationrequest.js +3 -0
- package/esm/models/updatev2evalconfigurationrequest.js.map +1 -1
- package/esm/models/updatev2evalrequest.d.ts +5 -5
- package/esm/models/updatev2evalrequest.d.ts.map +1 -1
- package/esm/models/updatev2evalrequest.js +6 -10
- package/esm/models/updatev2evalrequest.js.map +1 -1
- package/esm/models/v2eval.d.ts +6 -2
- package/esm/models/v2eval.d.ts.map +1 -1
- package/esm/models/v2eval.js +5 -1
- package/esm/models/v2eval.js.map +1 -1
- package/esm/models/v2evalconfiguration.d.ts +2 -0
- package/esm/models/v2evalconfiguration.d.ts.map +1 -1
- package/esm/models/v2evalconfiguration.js +2 -0
- package/esm/models/v2evalconfiguration.js.map +1 -1
- package/esm/models/v2evalresultsummary.d.ts +10 -0
- package/esm/models/v2evalresultsummary.d.ts.map +1 -1
- package/esm/models/v2evalresultsummary.js +12 -1
- package/esm/models/v2evalresultsummary.js.map +1 -1
- package/esm/models/v2evalrun.d.ts.map +1 -1
- package/esm/models/v2evalrun.js +1 -1
- package/esm/models/v2evalrun.js.map +1 -1
- package/esm/models/v2evalrundetail.d.ts +30 -0
- package/esm/models/v2evalrundetail.d.ts.map +1 -0
- package/esm/models/v2evalrundetail.js +33 -0
- package/esm/models/v2evalrundetail.js.map +1 -0
- package/esm/models/v2evalrunscancelop.d.ts +31 -0
- package/esm/models/v2evalrunscancelop.d.ts.map +1 -0
- package/esm/models/v2evalrunscancelop.js +27 -0
- package/esm/models/v2evalrunscancelop.js.map +1 -0
- package/esm/models/v2evalrunscreateop.d.ts +23 -3
- package/esm/models/v2evalrunscreateop.d.ts.map +1 -1
- package/esm/models/v2evalrunscreateop.js +15 -2
- package/esm/models/v2evalrunscreateop.js.map +1 -1
- package/esm/models/v2evalrunsretrieveop.d.ts +9 -2
- package/esm/models/v2evalrunsretrieveop.d.ts.map +1 -1
- package/esm/models/v2evalrunsretrieveop.js +6 -2
- package/esm/models/v2evalrunsretrieveop.js.map +1 -1
- package/esm/models/v2evalruntraceevent.d.ts.map +1 -1
- package/esm/models/v2evalruntraceevent.js +1 -1
- package/esm/models/v2evalruntraceevent.js.map +1 -1
- package/esm/models/v2promptrundetail.d.ts +6 -0
- package/esm/models/v2promptrundetail.d.ts.map +1 -1
- package/esm/models/v2promptrundetail.js +4 -1
- package/esm/models/v2promptrundetail.js.map +1 -1
- package/esm/models/v2promptrunsummary.d.ts.map +1 -1
- package/esm/models/v2promptrunsummary.js +1 -1
- package/esm/models/v2promptrunsummary.js.map +1 -1
- package/esm/models/v2publictask.d.ts +2 -2
- package/esm/models/v2publictask.d.ts.map +1 -1
- package/esm/models/v2publictask.js +4 -4
- package/esm/models/v2publictask.js.map +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +11 -19
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/{evalsAnalysis.ts → evalsCancel.ts} +13 -13
- package/src/funcs/{evalRunsV2EvalRunsRetrieve.ts → evalsGet.ts} +4 -4
- package/src/funcs/evalsRun.ts +6 -4
- package/src/funcs/evalsV2EvalsCreate.ts +1 -1
- package/src/funcs/evalsV2EvalsUpdate.ts +1 -1
- package/src/funcs/promptsV2PromptRunsList.ts +1 -1
- package/src/funcs/promptsV2PromptRunsRetrieve.ts +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -9
- package/src/mcp-server/tools/evalsCancel.ts +43 -0
- package/src/mcp-server/tools/{evalRunsV2EvalRunsRetrieve.ts → evalsGet.ts} +7 -7
- package/src/mcp-server/tools/evalsRun.ts +6 -4
- package/src/mcp-server/tools/evalsV2EvalsCreate.ts +1 -1
- package/src/mcp-server/tools/evalsV2EvalsUpdate.ts +1 -1
- package/src/mcp-server/tools/promptsV2PromptRunsList.ts +1 -1
- package/src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts +1 -1
- package/src/models/createv2evalconfigurationrequest.ts +8 -0
- package/src/models/createv2evalrequest.ts +18 -22
- package/src/models/createv2evalrunrequest.ts +19 -24
- package/src/models/publiccompetitorrow.ts +2 -2
- package/src/models/publiccriterionverdict.ts +48 -0
- package/src/models/publiccurrentvisibilityresponse.ts +2 -2
- package/src/models/publicevalrunenvironment.ts +47 -0
- package/src/models/publicevalrunprogress.ts +8 -2
- package/src/models/publicgraderresult.ts +44 -0
- package/src/models/publicpromptvisibilitymetrics.ts +2 -2
- package/src/models/publicvisibilitysnapshot.ts +2 -2
- package/src/models/searchgroundingmode.ts +26 -0
- package/src/models/updatev2evalconfigurationrequest.ts +9 -0
- package/src/models/updatev2evalrequest.ts +20 -21
- package/src/models/v2eval.ts +14 -2
- package/src/models/v2evalconfiguration.ts +8 -0
- package/src/models/v2evalresultsummary.ts +36 -1
- package/src/models/v2evalrun.ts +3 -1
- package/src/models/v2evalrundetail.ts +90 -0
- package/src/models/v2evalrunscancelop.ts +70 -0
- package/src/models/v2evalrunscreateop.ts +43 -5
- package/src/models/v2evalrunsretrieveop.ts +23 -3
- package/src/models/v2evalruntraceevent.ts +3 -1
- package/src/models/v2promptrundetail.ts +12 -1
- package/src/models/v2promptrunsummary.ts +3 -1
- package/src/models/v2publictask.ts +9 -7
- package/src/tool-names.ts +11 -19
- package/test/simulations.test.js +30 -3
- package/esm/funcs/evalResultsV2EvalResultsList.d.ts +0 -16
- package/esm/funcs/evalResultsV2EvalResultsList.d.ts.map +0 -1
- package/esm/funcs/evalResultsV2EvalResultsList.js +0 -87
- package/esm/funcs/evalResultsV2EvalResultsList.js.map +0 -1
- package/esm/funcs/evalResultsV2EvalResultsRetrieve.d.ts +0 -16
- package/esm/funcs/evalResultsV2EvalResultsRetrieve.d.ts.map +0 -1
- package/esm/funcs/evalResultsV2EvalResultsRetrieve.js +0 -88
- package/esm/funcs/evalResultsV2EvalResultsRetrieve.js.map +0 -1
- package/esm/funcs/evalRunsV2EvalRunsRetrieve.d.ts +0 -16
- package/esm/funcs/evalRunsV2EvalRunsRetrieve.d.ts.map +0 -1
- package/esm/funcs/evalRunsV2EvalRunsRetrieve.js.map +0 -1
- package/esm/funcs/evalsAnalysis.d.ts +0 -16
- package/esm/funcs/evalsAnalysis.d.ts.map +0 -1
- package/esm/funcs/evalsAnalysis.js.map +0 -1
- package/esm/mcp-server/tools/evalResultsV2EvalResultsList.d.ts +0 -7
- package/esm/mcp-server/tools/evalResultsV2EvalResultsList.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalResultsV2EvalResultsList.js +0 -35
- package/esm/mcp-server/tools/evalResultsV2EvalResultsList.js.map +0 -1
- package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.d.ts +0 -7
- package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.js +0 -35
- package/esm/mcp-server/tools/evalResultsV2EvalResultsRetrieve.js.map +0 -1
- package/esm/mcp-server/tools/evalRunsV2EvalRunsRetrieve.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalRunsV2EvalRunsRetrieve.js.map +0 -1
- package/esm/mcp-server/tools/evalsAnalysis.d.ts +0 -7
- package/esm/mcp-server/tools/evalsAnalysis.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalsAnalysis.js +0 -35
- package/esm/mcp-server/tools/evalsAnalysis.js.map +0 -1
- package/esm/models/v2evalresult.d.ts +0 -23
- package/esm/models/v2evalresult.d.ts.map +0 -1
- package/esm/models/v2evalresult.js +0 -24
- package/esm/models/v2evalresult.js.map +0 -1
- package/esm/models/v2evalresultslistop.d.ts +0 -11
- package/esm/models/v2evalresultslistop.d.ts.map +0 -1
- package/esm/models/v2evalresultslistop.js +0 -16
- package/esm/models/v2evalresultslistop.js.map +0 -1
- package/esm/models/v2evalresultsresponse.d.ts +0 -9
- package/esm/models/v2evalresultsresponse.d.ts.map +0 -1
- package/esm/models/v2evalresultsresponse.js +0 -12
- package/esm/models/v2evalresultsresponse.js.map +0 -1
- package/esm/models/v2evalresultsretrieveop.d.ts +0 -10
- package/esm/models/v2evalresultsretrieveop.d.ts.map +0 -1
- package/esm/models/v2evalresultsretrieveop.js +0 -15
- package/esm/models/v2evalresultsretrieveop.js.map +0 -1
- package/esm/models/v2evalrunanalysisresponse.d.ts +0 -12
- package/esm/models/v2evalrunanalysisresponse.d.ts.map +0 -1
- package/esm/models/v2evalrunanalysisresponse.js +0 -15
- package/esm/models/v2evalrunanalysisresponse.js.map +0 -1
- package/esm/models/v2evalrunsanalysisop.d.ts +0 -17
- package/esm/models/v2evalrunsanalysisop.d.ts.map +0 -1
- package/esm/models/v2evalrunsanalysisop.js +0 -19
- package/esm/models/v2evalrunsanalysisop.js.map +0 -1
- package/src/funcs/evalResultsV2EvalResultsList.ts +0 -149
- package/src/funcs/evalResultsV2EvalResultsRetrieve.ts +0 -153
- package/src/mcp-server/tools/evalResultsV2EvalResultsList.ts +0 -43
- package/src/mcp-server/tools/evalResultsV2EvalResultsRetrieve.ts +0 -45
- package/src/mcp-server/tools/evalsAnalysis.ts +0 -43
- package/src/models/v2evalresult.ts +0 -46
- package/src/models/v2evalresultslistop.ts +0 -39
- package/src/models/v2evalresultsresponse.ts +0 -23
- package/src/models/v2evalresultsretrieveop.ts +0 -28
- package/src/models/v2evalrunanalysisresponse.ts +0 -32
- package/src/models/v2evalrunsanalysisop.ts +0 -48
package/bin/mcp-server.js
CHANGED
|
@@ -28171,6 +28171,9 @@ var require_proxy_addr = __commonJS(function(exports, module) {
|
|
|
28171
28171
|
if (!isip(addr))
|
|
28172
28172
|
return false;
|
|
28173
28173
|
var ip = parseip(addr);
|
|
28174
|
+
if (ip.kind() === "ipv6" && ip.isIPv4MappedAddress()) {
|
|
28175
|
+
ip = ip.toIPv4Address();
|
|
28176
|
+
}
|
|
28174
28177
|
var ipconv;
|
|
28175
28178
|
var kind = ip.kind();
|
|
28176
28179
|
for (var i = 0;i < subnets.length; i++) {
|
|
@@ -28183,10 +28186,15 @@ var require_proxy_addr = __commonJS(function(exports, module) {
|
|
|
28183
28186
|
if (subnetkind === "ipv4" && !ip.isIPv4MappedAddress()) {
|
|
28184
28187
|
continue;
|
|
28185
28188
|
}
|
|
28189
|
+
if (subnetkind !== "ipv4" && !(subnetrange >= 96 && subnetip.isIPv4MappedAddress())) {
|
|
28190
|
+
continue;
|
|
28191
|
+
}
|
|
28186
28192
|
if (!ipconv) {
|
|
28187
28193
|
ipconv = subnetkind === "ipv4" ? ip.toIPv4Address() : ip.toIPv4MappedAddress();
|
|
28188
28194
|
}
|
|
28189
28195
|
trusted = ipconv;
|
|
28196
|
+
} else if (kind === "ipv6" && subnetip.isIPv4MappedAddress()) {
|
|
28197
|
+
continue;
|
|
28190
28198
|
}
|
|
28191
28199
|
if (trusted.match(subnetip, subnetrange)) {
|
|
28192
28200
|
return true;
|
|
@@ -28204,12 +28212,20 @@ var require_proxy_addr = __commonJS(function(exports, module) {
|
|
|
28204
28212
|
if (!isip(addr))
|
|
28205
28213
|
return false;
|
|
28206
28214
|
var ip = parseip(addr);
|
|
28215
|
+
if (ip.kind() === "ipv6" && ip.isIPv4MappedAddress()) {
|
|
28216
|
+
ip = ip.toIPv4Address();
|
|
28217
|
+
}
|
|
28207
28218
|
var kind = ip.kind();
|
|
28208
28219
|
if (kind !== subnetkind) {
|
|
28209
28220
|
if (subnetisipv4 && !ip.isIPv4MappedAddress()) {
|
|
28210
28221
|
return false;
|
|
28211
28222
|
}
|
|
28223
|
+
if (!subnetisipv4 && !(subnetrange >= 96 && subnetip.isIPv4MappedAddress())) {
|
|
28224
|
+
return false;
|
|
28225
|
+
}
|
|
28212
28226
|
ip = subnetisipv4 ? ip.toIPv4Address() : ip.toIPv4MappedAddress();
|
|
28227
|
+
} else if (kind === "ipv6" && subnetip.isIPv4MappedAddress()) {
|
|
28228
|
+
return false;
|
|
28213
28229
|
}
|
|
28214
28230
|
return ip.match(subnetip, subnetrange);
|
|
28215
28231
|
};
|
|
@@ -42217,6 +42233,22 @@ var require_utils4 = __commonJS(function(exports, module) {
|
|
|
42217
42233
|
}
|
|
42218
42234
|
return output;
|
|
42219
42235
|
}
|
|
42236
|
+
function recomposeZonedIPv6Host(component) {
|
|
42237
|
+
const zone = component.ipv6Zone;
|
|
42238
|
+
if (zone === undefined)
|
|
42239
|
+
return;
|
|
42240
|
+
const host = component.host;
|
|
42241
|
+
const separator = host.indexOf("%");
|
|
42242
|
+
if (separator === -1)
|
|
42243
|
+
return;
|
|
42244
|
+
const address = host.slice(0, separator);
|
|
42245
|
+
const escaped = address + "%25" + zone;
|
|
42246
|
+
const derived = normalizeIPv6("[" + escaped + "]");
|
|
42247
|
+
if (derived.isIPV6 === true && derived.host === host) {
|
|
42248
|
+
return "[" + escaped + "]";
|
|
42249
|
+
}
|
|
42250
|
+
return;
|
|
42251
|
+
}
|
|
42220
42252
|
function recomposeAuthority(component) {
|
|
42221
42253
|
const uriTokens = [];
|
|
42222
42254
|
if (component.userinfo !== undefined) {
|
|
@@ -42226,15 +42258,20 @@ var require_utils4 = __commonJS(function(exports, module) {
|
|
|
42226
42258
|
if (component.host !== undefined) {
|
|
42227
42259
|
let host = component.host;
|
|
42228
42260
|
if (!isIPv4(host)) {
|
|
42229
|
-
|
|
42230
|
-
if (
|
|
42231
|
-
host =
|
|
42232
|
-
ipV6res = normalizeIPv6(host);
|
|
42233
|
-
}
|
|
42234
|
-
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
42235
|
-
host = `[${ipV6res.escapedHost}]`;
|
|
42261
|
+
const zonedHost = recomposeZonedIPv6Host(component);
|
|
42262
|
+
if (zonedHost !== undefined) {
|
|
42263
|
+
host = zonedHost;
|
|
42236
42264
|
} else {
|
|
42237
|
-
|
|
42265
|
+
let ipV6res = normalizeIPv6(host);
|
|
42266
|
+
if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
|
|
42267
|
+
host = normalizePercentEncoding(host, true);
|
|
42268
|
+
ipV6res = normalizeIPv6(host);
|
|
42269
|
+
}
|
|
42270
|
+
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
42271
|
+
host = `[${ipV6res.escapedHost}]`;
|
|
42272
|
+
} else {
|
|
42273
|
+
host = reescapeHostDelimiters(host, false);
|
|
42274
|
+
}
|
|
42238
42275
|
}
|
|
42239
42276
|
}
|
|
42240
42277
|
uriTokens.push(host);
|
|
@@ -42447,6 +42484,7 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
42447
42484
|
var HEX_PAIR = /^[\da-f]{2}$/iu;
|
|
42448
42485
|
var MAILTO_DOMAIN_LITERAL = /^\[[\x21-\x5A\x5E-\x7E]*\]$/u;
|
|
42449
42486
|
var MAILTO_DOMAIN_ERROR = "URI mailto has an invalid recipient domain.";
|
|
42487
|
+
var MAILTO_AUTHORITY_ERROR = "URI mailto must not have an authority component.";
|
|
42450
42488
|
var HAS_SURROGATE = /[\uD800-\uDFFF]/u;
|
|
42451
42489
|
function decodeHex(str) {
|
|
42452
42490
|
if (typeof str !== "string" || str.indexOf("%") === -1) {
|
|
@@ -42561,30 +42599,37 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
42561
42599
|
mailtoComponent.error = mailtoComponent.error || "URI mailto has malformed header fields.";
|
|
42562
42600
|
continue;
|
|
42563
42601
|
}
|
|
42564
|
-
const name = eqIdx === -1 ? token : token.slice(0, eqIdx);
|
|
42602
|
+
const name = decodeHex(eqIdx === -1 ? token : token.slice(0, eqIdx));
|
|
42603
|
+
const normalizedName = name.toLowerCase();
|
|
42565
42604
|
const value = eqIdx === -1 ? "" : token.slice(eqIdx + 1);
|
|
42566
|
-
if (
|
|
42605
|
+
if (normalizedName === "to") {
|
|
42567
42606
|
const addrs = value.split(",");
|
|
42568
42607
|
for (let j = 0;j < addrs.length; j++)
|
|
42569
42608
|
to.push(addrs[j]);
|
|
42570
42609
|
continue;
|
|
42571
42610
|
}
|
|
42572
|
-
if (
|
|
42611
|
+
if (normalizedName === "subject") {
|
|
42573
42612
|
mailtoComponent.subject = decodeHex(value);
|
|
42574
42613
|
continue;
|
|
42575
42614
|
}
|
|
42576
|
-
if (
|
|
42615
|
+
if (normalizedName === "body") {
|
|
42577
42616
|
mailtoComponent.body = decodeHex(value);
|
|
42578
42617
|
continue;
|
|
42579
42618
|
}
|
|
42580
42619
|
if (headers === null)
|
|
42581
42620
|
headers = Object.create(null);
|
|
42582
|
-
headers[
|
|
42621
|
+
headers[name] = decodeHex(value);
|
|
42583
42622
|
}
|
|
42584
42623
|
if (headers !== null)
|
|
42585
42624
|
mailtoComponent.headers = headers;
|
|
42586
42625
|
}
|
|
42587
42626
|
mailtoComponent.query = undefined;
|
|
42627
|
+
if (to.length > 0 && (mailtoComponent.userinfo !== undefined || mailtoComponent.host !== undefined || mailtoComponent.port !== undefined)) {
|
|
42628
|
+
mailtoComponent.userinfo = undefined;
|
|
42629
|
+
mailtoComponent.host = undefined;
|
|
42630
|
+
mailtoComponent.port = undefined;
|
|
42631
|
+
mailtoComponent.error = mailtoComponent.error || MAILTO_AUTHORITY_ERROR;
|
|
42632
|
+
}
|
|
42588
42633
|
for (let i = 0;i < to.length; i++) {
|
|
42589
42634
|
const rawAddr = to[i];
|
|
42590
42635
|
const atIdx = rawAddr.lastIndexOf("@");
|
|
@@ -42601,10 +42646,35 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
42601
42646
|
mailtoComponent.to = to;
|
|
42602
42647
|
return mailtoComponent;
|
|
42603
42648
|
}
|
|
42649
|
+
function mailtoEncodeHeaderName(name) {
|
|
42650
|
+
return encodeWithAllow(name.replace(/%/gu, "%25"), HFNAME);
|
|
42651
|
+
}
|
|
42604
42652
|
function mailtoSerialize(component, options) {
|
|
42605
42653
|
const mailtoComponent = component;
|
|
42606
42654
|
const to = Array.isArray(mailtoComponent.to) ? mailtoComponent.to.slice() : [];
|
|
42655
|
+
const sourceHeaders = mailtoComponent.headers && typeof mailtoComponent.headers === "object" ? Object.assign(Object.create(null), mailtoComponent.headers) : Object.create(null);
|
|
42656
|
+
const headers = Object.create(null);
|
|
42657
|
+
for (const name in sourceHeaders) {
|
|
42658
|
+
const normalizedName = name.toLowerCase();
|
|
42659
|
+
if (normalizedName === "to") {
|
|
42660
|
+
const addrs = String(sourceHeaders[name]).split(",");
|
|
42661
|
+
for (let i = 0;i < addrs.length; i++)
|
|
42662
|
+
to.push(addrs[i]);
|
|
42663
|
+
} else if (normalizedName === "subject" || normalizedName === "body") {
|
|
42664
|
+
headers[normalizedName] = sourceHeaders[name];
|
|
42665
|
+
} else {
|
|
42666
|
+
headers[name] = sourceHeaders[name];
|
|
42667
|
+
}
|
|
42668
|
+
}
|
|
42669
|
+
if (mailtoComponent.subject !== undefined)
|
|
42670
|
+
headers.subject = mailtoComponent.subject;
|
|
42671
|
+
if (mailtoComponent.body !== undefined)
|
|
42672
|
+
headers.body = mailtoComponent.body;
|
|
42673
|
+
mailtoComponent.headers = headers;
|
|
42607
42674
|
if (to.length) {
|
|
42675
|
+
mailtoComponent.userinfo = undefined;
|
|
42676
|
+
mailtoComponent.host = undefined;
|
|
42677
|
+
mailtoComponent.port = undefined;
|
|
42608
42678
|
for (let i = 0;i < to.length; i++) {
|
|
42609
42679
|
const addr = String(to[i]);
|
|
42610
42680
|
const atIdx = addr.lastIndexOf("@");
|
|
@@ -42620,18 +42690,12 @@ var require_schemes = __commonJS(function(exports, module) {
|
|
|
42620
42690
|
} else {
|
|
42621
42691
|
mailtoComponent.path = undefined;
|
|
42622
42692
|
}
|
|
42623
|
-
const headers = mailtoComponent.headers && typeof mailtoComponent.headers === "object" ? Object.assign(Object.create(null), mailtoComponent.headers) : Object.create(null);
|
|
42624
|
-
if (mailtoComponent.subject)
|
|
42625
|
-
headers.subject = mailtoComponent.subject;
|
|
42626
|
-
if (mailtoComponent.body)
|
|
42627
|
-
headers.body = mailtoComponent.body;
|
|
42628
|
-
mailtoComponent.headers = headers;
|
|
42629
42693
|
let query = "";
|
|
42630
42694
|
let count = 0;
|
|
42631
42695
|
for (const name in headers) {
|
|
42632
42696
|
if (count++ !== 0)
|
|
42633
42697
|
query += "&";
|
|
42634
|
-
query +=
|
|
42698
|
+
query += mailtoEncodeHeaderName(name) + "=" + encodeWithAllow(String(headers[name]), HFNAME);
|
|
42635
42699
|
}
|
|
42636
42700
|
if (count !== 0) {
|
|
42637
42701
|
mailtoComponent.query = query;
|
|
@@ -42724,6 +42788,12 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42724
42788
|
schemelessOptions.skipEscape = true;
|
|
42725
42789
|
return serialize(resolved, schemelessOptions);
|
|
42726
42790
|
}
|
|
42791
|
+
function copyHost(target, source) {
|
|
42792
|
+
target.host = source.host;
|
|
42793
|
+
if (source.ipv6Zone !== undefined) {
|
|
42794
|
+
target.ipv6Zone = source.ipv6Zone;
|
|
42795
|
+
}
|
|
42796
|
+
}
|
|
42727
42797
|
function resolveComponent(base, relative, options, skipNormalization) {
|
|
42728
42798
|
const target = {};
|
|
42729
42799
|
if (!skipNormalization) {
|
|
@@ -42734,14 +42804,14 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42734
42804
|
if (!options.tolerant && relative.scheme) {
|
|
42735
42805
|
target.scheme = relative.scheme;
|
|
42736
42806
|
target.userinfo = relative.userinfo;
|
|
42737
|
-
target
|
|
42807
|
+
copyHost(target, relative);
|
|
42738
42808
|
target.port = relative.port;
|
|
42739
42809
|
target.path = removeDotSegments(relative.path || "");
|
|
42740
42810
|
target.query = relative.query;
|
|
42741
42811
|
} else {
|
|
42742
42812
|
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
42743
42813
|
target.userinfo = relative.userinfo;
|
|
42744
|
-
target
|
|
42814
|
+
copyHost(target, relative);
|
|
42745
42815
|
target.port = relative.port;
|
|
42746
42816
|
target.path = removeDotSegments(relative.path || "");
|
|
42747
42817
|
target.query = relative.query;
|
|
@@ -42769,7 +42839,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42769
42839
|
target.query = relative.query;
|
|
42770
42840
|
}
|
|
42771
42841
|
target.userinfo = base.userinfo;
|
|
42772
|
-
target
|
|
42842
|
+
copyHost(target, base);
|
|
42773
42843
|
target.port = base.port;
|
|
42774
42844
|
}
|
|
42775
42845
|
target.scheme = base.scheme;
|
|
@@ -42785,6 +42855,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42785
42855
|
function serialize(cmpts, opts) {
|
|
42786
42856
|
const component = {
|
|
42787
42857
|
host: cmpts.host,
|
|
42858
|
+
ipv6Zone: cmpts.ipv6Zone,
|
|
42788
42859
|
scheme: cmpts.scheme,
|
|
42789
42860
|
userinfo: cmpts.userinfo,
|
|
42790
42861
|
port: cmpts.port,
|
|
@@ -42981,6 +43052,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
42981
43052
|
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
42982
43053
|
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
42983
43054
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
43055
|
+
if (isIP && ipv6result.isIPV6 === true && parsed.host.indexOf("%") !== -1) {
|
|
43056
|
+
parsed.ipv6Zone = parsed.host.slice(parsed.host.indexOf("%") + 1);
|
|
43057
|
+
}
|
|
42984
43058
|
if (malformedIPLiteral) {
|
|
42985
43059
|
parsed.error = parsed.error || "URI host is malformed.";
|
|
42986
43060
|
malformedAuthorityOrPort = true;
|
|
@@ -43005,13 +43079,14 @@ var require_fast_uri = __commonJS(function(exports, module) {
|
|
|
43005
43079
|
if (!malformedIPLiteral) {
|
|
43006
43080
|
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
43007
43081
|
}
|
|
43008
|
-
if (
|
|
43009
|
-
|
|
43010
|
-
|
|
43011
|
-
|
|
43012
|
-
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
43013
|
-
}
|
|
43082
|
+
if (uri.indexOf("%") !== -1 && parsed.host !== undefined && !malformedIPLiteral) {
|
|
43083
|
+
let host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
43084
|
+
if (!isIP) {
|
|
43085
|
+
host = normalizePercentEncoding(host.toLowerCase());
|
|
43014
43086
|
}
|
|
43087
|
+
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
43088
|
+
}
|
|
43089
|
+
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
43015
43090
|
if (parsed.path) {
|
|
43016
43091
|
parsed.path = normalizePathEncoding(parsed.path);
|
|
43017
43092
|
}
|
|
@@ -52769,9 +52844,9 @@ var init_config = __esm(() => {
|
|
|
52769
52844
|
SDK_METADATA = {
|
|
52770
52845
|
language: "typescript",
|
|
52771
52846
|
openapiDocVersion: "1.0.0",
|
|
52772
|
-
sdkVersion: "0.
|
|
52773
|
-
genVersion: "2.
|
|
52774
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.
|
|
52847
|
+
sdkVersion: "0.4.0",
|
|
52848
|
+
genVersion: "2.941.0",
|
|
52849
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.4.0 2.941.0 1.0.0 @lightsage/mcp"
|
|
52775
52850
|
};
|
|
52776
52851
|
});
|
|
52777
52852
|
|
|
@@ -54953,68 +55028,95 @@ Returns reusable environments without exposing secret values.`,
|
|
|
54953
55028
|
};
|
|
54954
55029
|
});
|
|
54955
55030
|
|
|
54956
|
-
// src/models/
|
|
54957
|
-
var
|
|
54958
|
-
var
|
|
55031
|
+
// src/models/publicevalrunprogress.ts
|
|
55032
|
+
var PublicEvalRunProgress$zodSchema;
|
|
55033
|
+
var init_publicevalrunprogress = __esm(() => {
|
|
54959
55034
|
init_zod();
|
|
54960
|
-
|
|
54961
|
-
|
|
55035
|
+
PublicEvalRunProgress$zodSchema = object({
|
|
55036
|
+
cancelled: int().default(0),
|
|
55037
|
+
completed: int().default(0),
|
|
55038
|
+
failed: int().default(0),
|
|
55039
|
+
interrupted: int().default(0).describe("Deprecated compatibility alias for `retrying`; use `retrying`."),
|
|
55040
|
+
percent: number2().default(0).describe("The percentage of child jobs in a final state (`completed`, `failed`, or `cancelled`). It can reach `100` while the parent job is still summarizing, so use `status` to detect completion."),
|
|
55041
|
+
queued: int().default(0),
|
|
55042
|
+
retrying: int().default(0).describe("Recoverable child jobs waiting to be retried. These remain active and are excluded from `percent`."),
|
|
55043
|
+
running: int().default(0),
|
|
55044
|
+
total: int().default(0)
|
|
55045
|
+
});
|
|
55046
|
+
});
|
|
55047
|
+
|
|
55048
|
+
// src/models/v2evalrun.ts
|
|
55049
|
+
var V2EvalRun$zodSchema;
|
|
55050
|
+
var init_v2evalrun = __esm(() => {
|
|
55051
|
+
init_zod();
|
|
55052
|
+
init_publicevalrunprogress();
|
|
55053
|
+
V2EvalRun$zodSchema = object({
|
|
55054
|
+
agent: array(string2()).optional().describe("Runnable agents selected for this simulation."),
|
|
55055
|
+
attempt_count: int().default(1).describe("Total concrete attempts after all fan-out dimensions."),
|
|
55056
|
+
completed_at: string2().nullable().optional(),
|
|
55057
|
+
configuration_id: string2().nullable().optional(),
|
|
54962
55058
|
created_at: string2().nullable().optional(),
|
|
54963
|
-
|
|
54964
|
-
|
|
54965
|
-
|
|
54966
|
-
|
|
54967
|
-
|
|
54968
|
-
|
|
54969
|
-
|
|
54970
|
-
|
|
54971
|
-
|
|
55059
|
+
dispatch_id: string2().nullable().optional(),
|
|
55060
|
+
error: string2().nullable().optional(),
|
|
55061
|
+
estimated_cost: number2().nullable().optional(),
|
|
55062
|
+
eval_id: string2().nullable().optional().describe("Saved eval definition ID, including one created by a direct run."),
|
|
55063
|
+
eval_name: string2().nullable().optional().describe("Display name captured for the eval when the run was created."),
|
|
55064
|
+
id: string2().describe("Run ID to use when polling eval-run status."),
|
|
55065
|
+
job_id: string2().describe("Alias of `id` for the durable parent job."),
|
|
55066
|
+
persona: string2().nullable().optional().describe("Perspective applied to every attempt in this simulation."),
|
|
55067
|
+
progress: PublicEvalRunProgress$zodSchema.optional(),
|
|
55068
|
+
prompt_count: int().default(1).describe("Number of prompts included in the simulation."),
|
|
55069
|
+
runs: int().default(1).describe("Independent attempts requested for every prompt-agent pair."),
|
|
55070
|
+
stage: string2().nullable().optional(),
|
|
55071
|
+
started_at: string2().nullable().optional(),
|
|
55072
|
+
status: string2().describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.")
|
|
54972
55073
|
});
|
|
54973
55074
|
});
|
|
54974
55075
|
|
|
54975
|
-
// src/models/
|
|
54976
|
-
var
|
|
54977
|
-
var
|
|
55076
|
+
// src/models/v2evalrunsresponse.ts
|
|
55077
|
+
var V2EvalRunsResponse$zodSchema;
|
|
55078
|
+
var init_v2evalrunsresponse = __esm(() => {
|
|
54978
55079
|
init_zod();
|
|
54979
|
-
|
|
54980
|
-
|
|
55080
|
+
init_v2evalrun();
|
|
55081
|
+
V2EvalRunsResponse$zodSchema = object({
|
|
54981
55082
|
count: int(),
|
|
54982
|
-
data: array(
|
|
54983
|
-
limit: int()
|
|
55083
|
+
data: array(V2EvalRun$zodSchema).optional(),
|
|
55084
|
+
limit: int(),
|
|
55085
|
+
offset: int()
|
|
54984
55086
|
});
|
|
54985
55087
|
});
|
|
54986
55088
|
|
|
54987
|
-
// src/models/
|
|
54988
|
-
var
|
|
54989
|
-
var
|
|
55089
|
+
// src/models/v2evalrunslistop.ts
|
|
55090
|
+
var V2EvalRunsListRequest$zodSchema, V2EvalRunsListResponse$zodSchema;
|
|
55091
|
+
var init_v2evalrunslistop = __esm(() => {
|
|
54990
55092
|
init_zod();
|
|
54991
55093
|
init_httpvalidationerror();
|
|
54992
|
-
|
|
54993
|
-
|
|
54994
|
-
limit: int().default(
|
|
54995
|
-
|
|
55094
|
+
init_v2evalrunsresponse();
|
|
55095
|
+
V2EvalRunsListRequest$zodSchema = object({
|
|
55096
|
+
limit: int().default(25),
|
|
55097
|
+
offset: int().default(0)
|
|
54996
55098
|
});
|
|
54997
|
-
|
|
54998
|
-
|
|
55099
|
+
V2EvalRunsListResponse$zodSchema = union([
|
|
55100
|
+
V2EvalRunsResponse$zodSchema,
|
|
54999
55101
|
HTTPValidationError$zodSchema
|
|
55000
55102
|
]);
|
|
55001
55103
|
});
|
|
55002
55104
|
|
|
55003
|
-
// src/funcs/
|
|
55004
|
-
function
|
|
55105
|
+
// src/funcs/evalRunsV2EvalRunsList.ts
|
|
55106
|
+
function evalRunsV2EvalRunsList(client$, request, options) {
|
|
55005
55107
|
return new APIPromise($do7(client$, request, options));
|
|
55006
55108
|
}
|
|
55007
55109
|
async function $do7(client$, request, options) {
|
|
55008
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
55110
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
55009
55111
|
if (!parsed$.ok) {
|
|
55010
55112
|
return [parsed$, { status: "invalid" }];
|
|
55011
55113
|
}
|
|
55012
55114
|
const payload$ = parsed$.value;
|
|
55013
55115
|
const body$ = null;
|
|
55014
|
-
const path$ = pathToFunc("/v2/eval-
|
|
55116
|
+
const path$ = pathToFunc("/v2/eval-runs")();
|
|
55015
55117
|
const query$ = encodeFormQuery({
|
|
55016
55118
|
limit: payload$?.limit,
|
|
55017
|
-
|
|
55119
|
+
offset: payload$?.offset
|
|
55018
55120
|
});
|
|
55019
55121
|
const headers$ = new Headers(compactMap({
|
|
55020
55122
|
Accept: "application/json"
|
|
@@ -55024,7 +55126,7 @@ async function $do7(client$, request, options) {
|
|
|
55024
55126
|
const context = {
|
|
55025
55127
|
options: client$._options,
|
|
55026
55128
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55027
|
-
operationID: "
|
|
55129
|
+
operationID: "v2_eval_runs_list",
|
|
55028
55130
|
oAuth2Scopes: null,
|
|
55029
55131
|
resolvedSecurity: requestSecurity,
|
|
55030
55132
|
securitySource: client$._options.security,
|
|
@@ -55067,30 +55169,30 @@ async function $do7(client$, request, options) {
|
|
|
55067
55169
|
response: doResult.value
|
|
55068
55170
|
}];
|
|
55069
55171
|
}
|
|
55070
|
-
var
|
|
55172
|
+
var init_evalRunsV2EvalRunsList = __esm(() => {
|
|
55071
55173
|
init_encodings();
|
|
55072
55174
|
init_primitives();
|
|
55073
55175
|
init_schemas4();
|
|
55074
55176
|
init_security();
|
|
55075
55177
|
init_url();
|
|
55076
|
-
|
|
55178
|
+
init_v2evalrunslistop();
|
|
55077
55179
|
init_async();
|
|
55078
55180
|
});
|
|
55079
55181
|
|
|
55080
|
-
// src/mcp-server/tools/
|
|
55081
|
-
var args4, tool$
|
|
55082
|
-
var
|
|
55083
|
-
|
|
55084
|
-
|
|
55182
|
+
// src/mcp-server/tools/evalRunsV2EvalRunsList.ts
|
|
55183
|
+
var args4, tool$evalRunsV2EvalRunsList;
|
|
55184
|
+
var init_evalRunsV2EvalRunsList2 = __esm(() => {
|
|
55185
|
+
init_evalRunsV2EvalRunsList();
|
|
55186
|
+
init_v2evalrunslistop();
|
|
55085
55187
|
init_tools();
|
|
55086
55188
|
args4 = {
|
|
55087
|
-
request:
|
|
55189
|
+
request: V2EvalRunsListRequest$zodSchema.optional()
|
|
55088
55190
|
};
|
|
55089
|
-
tool$
|
|
55090
|
-
name: "eval-
|
|
55091
|
-
description: `List
|
|
55191
|
+
tool$evalRunsV2EvalRunsList = {
|
|
55192
|
+
name: "eval-runs-v2-eval-runs-list",
|
|
55193
|
+
description: `List Runs
|
|
55092
55194
|
|
|
55093
|
-
Returns
|
|
55195
|
+
Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with lifecycle state and progress.`,
|
|
55094
55196
|
annotations: {
|
|
55095
55197
|
title: "",
|
|
55096
55198
|
destructiveHint: false,
|
|
@@ -55100,7 +55202,7 @@ Returns completed custom-eval results from all supported run flows, ordered newe
|
|
|
55100
55202
|
},
|
|
55101
55203
|
args: args4,
|
|
55102
55204
|
tool: async (client, args, ctx) => {
|
|
55103
|
-
const [result] = await
|
|
55205
|
+
const [result] = await evalRunsV2EvalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55104
55206
|
if (!result.ok) {
|
|
55105
55207
|
return {
|
|
55106
55208
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55112,63 +55214,51 @@ Returns completed custom-eval results from all supported run flows, ordered newe
|
|
|
55112
55214
|
};
|
|
55113
55215
|
});
|
|
55114
55216
|
|
|
55115
|
-
// src/models/
|
|
55116
|
-
var
|
|
55117
|
-
var
|
|
55118
|
-
init_zod();
|
|
55119
|
-
V2EvalResult$zodSchema = object({
|
|
55120
|
-
agent: string2().nullable().optional().describe("Runnable agent combining the harness and model."),
|
|
55121
|
-
created_at: string2().nullable().optional(),
|
|
55122
|
-
eval_id: string2().nullable().optional(),
|
|
55123
|
-
execution_stderr: string2().nullable().optional(),
|
|
55124
|
-
execution_stdout: string2().nullable().optional(),
|
|
55125
|
-
exit_code: int().nullable().optional(),
|
|
55126
|
-
failure_reasons: array(string2()).nullable().optional(),
|
|
55127
|
-
id: string2().describe("Result ID, not an eval job ID."),
|
|
55128
|
-
latency_ms: int().nullable().optional(),
|
|
55129
|
-
output: string2().nullable().optional(),
|
|
55130
|
-
passed: boolean2().nullable().optional(),
|
|
55131
|
-
prompt: string2().nullable().optional(),
|
|
55132
|
-
prompt_index: int().default(0),
|
|
55133
|
-
repeat_index: int().default(0),
|
|
55134
|
-
score: number2().nullable().optional().describe("Score from 0 to 1."),
|
|
55135
|
-
tool_calls: array(record(string2(), any())).nullable().optional()
|
|
55136
|
-
});
|
|
55137
|
-
});
|
|
55138
|
-
|
|
55139
|
-
// src/models/v2evalresultsretrieveop.ts
|
|
55140
|
-
var V2EvalResultsRetrieveRequest$zodSchema, V2EvalResultsRetrieveResponse$zodSchema;
|
|
55141
|
-
var init_v2evalresultsretrieveop = __esm(() => {
|
|
55217
|
+
// src/models/v2evalrunscancelop.ts
|
|
55218
|
+
var V2EvalRunsCancelRequest$zodSchema, V2EvalRunsCancelServiceUnavailableResponseBody$zodSchema, V2EvalRunsCancelConflictResponseBody$zodSchema, V2EvalRunsCancelNotFoundResponseBody$zodSchema, V2EvalRunsCancelResponse$zodSchema;
|
|
55219
|
+
var init_v2evalrunscancelop = __esm(() => {
|
|
55142
55220
|
init_zod();
|
|
55143
55221
|
init_httpvalidationerror();
|
|
55144
|
-
|
|
55145
|
-
|
|
55146
|
-
|
|
55222
|
+
init_v2evalrun();
|
|
55223
|
+
V2EvalRunsCancelRequest$zodSchema = object({
|
|
55224
|
+
run_id: string2()
|
|
55147
55225
|
});
|
|
55148
|
-
|
|
55149
|
-
|
|
55226
|
+
V2EvalRunsCancelServiceUnavailableResponseBody$zodSchema = object({
|
|
55227
|
+
detail: string2()
|
|
55228
|
+
}).describe("Eval run cancellation is temporarily unavailable.");
|
|
55229
|
+
V2EvalRunsCancelConflictResponseBody$zodSchema = object({
|
|
55230
|
+
detail: string2()
|
|
55231
|
+
}).describe("The eval run has already completed or failed.");
|
|
55232
|
+
V2EvalRunsCancelNotFoundResponseBody$zodSchema = object({
|
|
55233
|
+
detail: string2()
|
|
55234
|
+
}).describe("Eval run not found. Use the run ID returned when you started the eval.");
|
|
55235
|
+
V2EvalRunsCancelResponse$zodSchema = union([
|
|
55236
|
+
V2EvalRun$zodSchema,
|
|
55237
|
+
lazy(() => V2EvalRunsCancelNotFoundResponseBody$zodSchema),
|
|
55238
|
+
lazy(() => V2EvalRunsCancelConflictResponseBody$zodSchema),
|
|
55239
|
+
lazy(() => V2EvalRunsCancelServiceUnavailableResponseBody$zodSchema),
|
|
55150
55240
|
HTTPValidationError$zodSchema
|
|
55151
55241
|
]);
|
|
55152
55242
|
});
|
|
55153
55243
|
|
|
55154
|
-
// src/funcs/
|
|
55155
|
-
function
|
|
55244
|
+
// src/funcs/evalsCancel.ts
|
|
55245
|
+
function evalsCancel(client$, request, options) {
|
|
55156
55246
|
return new APIPromise($do8(client$, request, options));
|
|
55157
55247
|
}
|
|
55158
55248
|
async function $do8(client$, request, options) {
|
|
55159
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
55249
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55160
55250
|
if (!parsed$.ok) {
|
|
55161
55251
|
return [parsed$, { status: "invalid" }];
|
|
55162
55252
|
}
|
|
55163
55253
|
const payload$ = parsed$.value;
|
|
55164
55254
|
const body$ = null;
|
|
55165
55255
|
const pathParams$ = {
|
|
55166
|
-
|
|
55256
|
+
run_id: encodeSimple("run_id", payload$.run_id, {
|
|
55167
55257
|
explode: false,
|
|
55168
55258
|
charEncoding: "percent"
|
|
55169
55259
|
})
|
|
55170
55260
|
};
|
|
55171
|
-
const path$ = pathToFunc("/v2/eval-
|
|
55261
|
+
const path$ = pathToFunc("/v2/eval-runs/{run_id}/cancel")(pathParams$);
|
|
55172
55262
|
const headers$ = new Headers(compactMap({
|
|
55173
55263
|
Accept: "application/json"
|
|
55174
55264
|
}));
|
|
@@ -55177,7 +55267,7 @@ async function $do8(client$, request, options) {
|
|
|
55177
55267
|
const context = {
|
|
55178
55268
|
options: client$._options,
|
|
55179
55269
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55180
|
-
operationID: "
|
|
55270
|
+
operationID: "v2_eval_runs_cancel",
|
|
55181
55271
|
oAuth2Scopes: null,
|
|
55182
55272
|
resolvedSecurity: requestSecurity,
|
|
55183
55273
|
securitySource: client$._options.security,
|
|
@@ -55192,7 +55282,7 @@ async function $do8(client$, request, options) {
|
|
|
55192
55282
|
};
|
|
55193
55283
|
const requestRes = client$._createRequest(context, {
|
|
55194
55284
|
security: requestSecurity,
|
|
55195
|
-
method: "
|
|
55285
|
+
method: "POST",
|
|
55196
55286
|
baseURL: options?.serverURL,
|
|
55197
55287
|
path: path$,
|
|
55198
55288
|
headers: headers$,
|
|
@@ -55219,40 +55309,40 @@ async function $do8(client$, request, options) {
|
|
|
55219
55309
|
response: doResult.value
|
|
55220
55310
|
}];
|
|
55221
55311
|
}
|
|
55222
|
-
var
|
|
55312
|
+
var init_evalsCancel = __esm(() => {
|
|
55223
55313
|
init_encodings();
|
|
55224
55314
|
init_primitives();
|
|
55225
55315
|
init_schemas4();
|
|
55226
55316
|
init_security();
|
|
55227
55317
|
init_url();
|
|
55228
|
-
|
|
55318
|
+
init_v2evalrunscancelop();
|
|
55229
55319
|
init_async();
|
|
55230
55320
|
});
|
|
55231
55321
|
|
|
55232
|
-
// src/mcp-server/tools/
|
|
55233
|
-
var args5, tool$
|
|
55234
|
-
var
|
|
55235
|
-
|
|
55236
|
-
|
|
55322
|
+
// src/mcp-server/tools/evalsCancel.ts
|
|
55323
|
+
var args5, tool$evalsCancel;
|
|
55324
|
+
var init_evalsCancel2 = __esm(() => {
|
|
55325
|
+
init_evalsCancel();
|
|
55326
|
+
init_v2evalrunscancelop();
|
|
55237
55327
|
init_tools();
|
|
55238
55328
|
args5 = {
|
|
55239
|
-
request:
|
|
55329
|
+
request: V2EvalRunsCancelRequest$zodSchema
|
|
55240
55330
|
};
|
|
55241
|
-
tool$
|
|
55242
|
-
name: "
|
|
55243
|
-
description: `
|
|
55331
|
+
tool$evalsCancel = {
|
|
55332
|
+
name: "evals-cancel",
|
|
55333
|
+
description: `Cancel an eval run
|
|
55244
55334
|
|
|
55245
|
-
|
|
55335
|
+
Marks an active eval run as cancelled and prevents queued attempts from starting. Running sandbox attempts are stopped asynchronously. Requests already sent to an external provider cannot be recalled, but any later response does not change the run from cancelled. Repeating this request for an already-cancelled run is safe.`,
|
|
55246
55336
|
annotations: {
|
|
55247
55337
|
title: "",
|
|
55248
55338
|
destructiveHint: false,
|
|
55249
55339
|
idempotentHint: false,
|
|
55250
55340
|
openWorldHint: false,
|
|
55251
|
-
readOnlyHint:
|
|
55341
|
+
readOnlyHint: false
|
|
55252
55342
|
},
|
|
55253
55343
|
args: args5,
|
|
55254
55344
|
tool: async (client, args, ctx) => {
|
|
55255
|
-
const [result] = await
|
|
55345
|
+
const [result] = await evalsCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55256
55346
|
if (!result.ok) {
|
|
55257
55347
|
return {
|
|
55258
55348
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55264,29 +55354,124 @@ Returns one completed custom-eval result with its output and diagnostic details.
|
|
|
55264
55354
|
};
|
|
55265
55355
|
});
|
|
55266
55356
|
|
|
55267
|
-
// src/models/
|
|
55268
|
-
var
|
|
55269
|
-
var
|
|
55357
|
+
// src/models/publicevalrunenvironment.ts
|
|
55358
|
+
var PublicEvalRunEnvironment$zodSchema;
|
|
55359
|
+
var init_publicevalrunenvironment = __esm(() => {
|
|
55270
55360
|
init_zod();
|
|
55271
|
-
|
|
55272
|
-
|
|
55273
|
-
|
|
55274
|
-
|
|
55275
|
-
|
|
55276
|
-
|
|
55277
|
-
|
|
55278
|
-
|
|
55279
|
-
|
|
55361
|
+
PublicEvalRunEnvironment$zodSchema = object({
|
|
55362
|
+
changed_since_queued: boolean2().nullable().optional().describe("True when the saved environment has been edited or deleted since the run was queued, so a rerun would use different values. Null when unknown or for inline environments."),
|
|
55363
|
+
id: string2().nullable().optional().describe("Environment ID, as listed by the environments operation."),
|
|
55364
|
+
inline: boolean2().default(false).describe("True when variables were supplied inline with the run request instead of from a saved environment."),
|
|
55365
|
+
name: string2().nullable().optional().describe("Environment name when the run was queued."),
|
|
55366
|
+
queued_at: string2().nullable().optional().describe("When the run was queued with this environment."),
|
|
55367
|
+
updated_at: string2().nullable().optional().describe("Environment version the run used: when its name or variables last changed before the run was queued. Null if the environment had not changed since versioning was introduced."),
|
|
55368
|
+
variable_names: array(string2()).optional().describe("Variable names supplied to the run. Values are never returned.")
|
|
55369
|
+
}).describe("Non-secret summary of the environment an eval run was queued with.");
|
|
55370
|
+
});
|
|
55371
|
+
|
|
55372
|
+
// src/models/publiccriterionverdict.ts
|
|
55373
|
+
var Verdict$zodSchema, PublicCriterionVerdict$zodSchema;
|
|
55374
|
+
var init_publiccriterionverdict = __esm(() => {
|
|
55375
|
+
init_zod();
|
|
55376
|
+
Verdict$zodSchema = _enum([
|
|
55377
|
+
"PASS",
|
|
55378
|
+
"FAIL",
|
|
55379
|
+
"NOT_VERIFIED"
|
|
55380
|
+
]).describe("`PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.");
|
|
55381
|
+
PublicCriterionVerdict$zodSchema = object({
|
|
55382
|
+
criterion: string2().describe("One mandatory requirement from the judge criteria."),
|
|
55383
|
+
evidence: string2().nullable().optional().describe("Short evidence the judge gave for the verdict."),
|
|
55384
|
+
verdict: Verdict$zodSchema.describe("`PASS` when the evidence shows the requirement was met, `FAIL` when it shows it was not, and `NOT_VERIFIED` when the evidence cannot confirm it. Any `FAIL` or `NOT_VERIFIED` fails the run, whatever the score.")
|
|
55280
55385
|
});
|
|
55281
55386
|
});
|
|
55282
55387
|
|
|
55283
|
-
// src/models/
|
|
55284
|
-
var
|
|
55285
|
-
var
|
|
55388
|
+
// src/models/publicgraderresult.ts
|
|
55389
|
+
var PublicGraderResult$zodSchema;
|
|
55390
|
+
var init_publicgraderresult = __esm(() => {
|
|
55391
|
+
init_zod();
|
|
55392
|
+
init_publiccriterionverdict();
|
|
55393
|
+
PublicGraderResult$zodSchema = object({
|
|
55394
|
+
criteria_verdicts: array(PublicCriterionVerdict$zodSchema).optional().describe("Judges only: a verdict for each mandatory requirement in the judge criteria. Empty for other checks and for runs graded before per-requirement verdicts were recorded."),
|
|
55395
|
+
deductions: array(string2()).optional().describe("Specific shortcomings the check recorded, even when it passed. A judge can pass with a score below 1 and still list deductions here; those checks do not appear in `failure_reasons`."),
|
|
55396
|
+
details: string2().nullable().optional().describe("Reasoning or check output explaining the verdict."),
|
|
55397
|
+
label: string2().nullable().optional().describe("Display name for the check, when the grader sets one."),
|
|
55398
|
+
name: string2().describe("Grader name as configured on the eval."),
|
|
55399
|
+
passed: boolean2().nullable().optional().describe("Whether this check passed."),
|
|
55400
|
+
score: number2().nullable().optional().describe("Score from 0 to 1 for checks that score partially, such as judges; null for pass/fail checks.")
|
|
55401
|
+
});
|
|
55402
|
+
});
|
|
55403
|
+
|
|
55404
|
+
// src/models/searchgroundingmode.ts
|
|
55405
|
+
var SearchGroundingMode$zodSchema;
|
|
55406
|
+
var init_searchgroundingmode = __esm(() => {
|
|
55407
|
+
init_zod();
|
|
55408
|
+
SearchGroundingMode$zodSchema = _enum([
|
|
55409
|
+
"disabled",
|
|
55410
|
+
"enabled",
|
|
55411
|
+
"default"
|
|
55412
|
+
]).describe("Requested web-retrieval behavior for an eval run.");
|
|
55413
|
+
});
|
|
55414
|
+
|
|
55415
|
+
// src/models/v2evalresultsummary.ts
|
|
55416
|
+
var V2EvalResultSummary$zodSchema;
|
|
55417
|
+
var init_v2evalresultsummary = __esm(() => {
|
|
55418
|
+
init_zod();
|
|
55419
|
+
init_publicevalrunenvironment();
|
|
55420
|
+
init_publicgraderresult();
|
|
55421
|
+
init_searchgroundingmode();
|
|
55422
|
+
V2EvalResultSummary$zodSchema = object({
|
|
55423
|
+
agent: string2().nullable().optional().describe("Runnable agent combining the harness and model."),
|
|
55424
|
+
created_at: string2().nullable().optional(),
|
|
55425
|
+
environment: PublicEvalRunEnvironment$zodSchema.nullable().optional().describe("The environment this attempt used, without secret values. Null when the attempt had no environment."),
|
|
55426
|
+
eval_id: string2().nullable().optional(),
|
|
55427
|
+
failure_reasons: array(string2()).nullable().optional().describe("Checks that failed, listed even when the result passed overall. Deductions from checks that passed are in `grader_results[].deductions`, not here."),
|
|
55428
|
+
grader_results: array(PublicGraderResult$zodSchema).optional().describe("Per-check verdicts behind `score`, including deductions recorded by passing checks."),
|
|
55429
|
+
grounding_qualification_reason: string2().nullable().optional(),
|
|
55430
|
+
grounding_qualified: boolean2().nullable().optional().describe("Whether the attempt satisfied the requested grounding experiment. Null means the default mode was used or isolation could not be proven."),
|
|
55431
|
+
id: string2().describe("Result ID, not an eval job ID."),
|
|
55432
|
+
latency_ms: int().nullable().optional(),
|
|
55433
|
+
passed: boolean2().nullable().optional(),
|
|
55434
|
+
prompt: string2().nullable().optional(),
|
|
55435
|
+
prompt_index: int().default(0),
|
|
55436
|
+
repeat_index: int().default(0),
|
|
55437
|
+
score: number2().nullable().optional().describe("Score from 0 to 1."),
|
|
55438
|
+
search_grounding: SearchGroundingMode$zodSchema.nullable().optional(),
|
|
55439
|
+
search_observed: boolean2().nullable().optional(),
|
|
55440
|
+
web_retrieval_observed: boolean2().nullable().optional()
|
|
55441
|
+
});
|
|
55442
|
+
});
|
|
55443
|
+
|
|
55444
|
+
// src/models/v2evalrunanalysis.ts
|
|
55445
|
+
var V2EvalRunAnalysis$zodSchema;
|
|
55446
|
+
var init_v2evalrunanalysis = __esm(() => {
|
|
55447
|
+
init_zod();
|
|
55448
|
+
V2EvalRunAnalysis$zodSchema = object({
|
|
55449
|
+
agent: string2().nullable().optional().describe("Runnable agent used for this concrete attempt."),
|
|
55450
|
+
analysis: record(string2(), any()).optional().describe("Persisted eval_run_analysis payload, including verdict, outcome, findings, bottleneck, and analysis sections."),
|
|
55451
|
+
analysis_version: string2().nullable().optional().describe("Version of the analysis pipeline that produced this payload."),
|
|
55452
|
+
attempt_id: string2().describe("Child eval-attempt ID used to correlate the analysis with trace events."),
|
|
55453
|
+
created_at: string2().nullable().optional(),
|
|
55454
|
+
eval_id: string2().nullable().optional().describe("Public eval definition ID, not the backing executable eval ID."),
|
|
55455
|
+
id: string2().describe("Persisted eval analysis ID."),
|
|
55456
|
+
prompt: string2().nullable().optional().describe("Exact task prompt used for this concrete attempt."),
|
|
55457
|
+
prompt_index: int().default(0).describe("Zero-based prompt index within the submitted simulation."),
|
|
55458
|
+
repeat_index: int().default(0).describe("Zero-based repeat index within the submitted run."),
|
|
55459
|
+
result_id: string2().describe("Concrete eval result ID analyzed for this attempt."),
|
|
55460
|
+
updated_at: string2().nullable().optional(),
|
|
55461
|
+
variant_key: string2().default("default").describe("Runtime variant that produced this result.")
|
|
55462
|
+
});
|
|
55463
|
+
});
|
|
55464
|
+
|
|
55465
|
+
// src/models/v2evalrundetail.ts
|
|
55466
|
+
var V2EvalRunDetail$zodSchema;
|
|
55467
|
+
var init_v2evalrundetail = __esm(() => {
|
|
55286
55468
|
init_zod();
|
|
55287
55469
|
init_publicevalrunprogress();
|
|
55288
|
-
|
|
55470
|
+
init_v2evalresultsummary();
|
|
55471
|
+
init_v2evalrunanalysis();
|
|
55472
|
+
V2EvalRunDetail$zodSchema = object({
|
|
55289
55473
|
agent: array(string2()).optional().describe("Runnable agents selected for this simulation."),
|
|
55474
|
+
analysis: array(V2EvalRunAnalysis$zodSchema).optional().describe("Per-attempt analysis for this run. Empty until an attempt has been analyzed."),
|
|
55290
55475
|
attempt_count: int().default(1).describe("Total concrete attempts after all fan-out dimensions."),
|
|
55291
55476
|
completed_at: string2().nullable().optional(),
|
|
55292
55477
|
configuration_id: string2().nullable().optional(),
|
|
@@ -55301,58 +55486,52 @@ var init_v2evalrun = __esm(() => {
|
|
|
55301
55486
|
persona: string2().nullable().optional().describe("Perspective applied to every attempt in this simulation."),
|
|
55302
55487
|
progress: PublicEvalRunProgress$zodSchema.optional(),
|
|
55303
55488
|
prompt_count: int().default(1).describe("Number of prompts included in the simulation."),
|
|
55489
|
+
results: array(V2EvalResultSummary$zodSchema).optional().describe("Per-attempt outcomes for this run. Empty while the run is active; populated as attempts finish."),
|
|
55490
|
+
results_truncated: boolean2().default(false).describe("True when the run produced more results than the inline cap. The remaining results are not included in this response."),
|
|
55304
55491
|
runs: int().default(1).describe("Independent attempts requested for every prompt-agent pair."),
|
|
55305
55492
|
stage: string2().nullable().optional(),
|
|
55306
55493
|
started_at: string2().nullable().optional(),
|
|
55307
|
-
status: string2()
|
|
55494
|
+
status: string2().describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.")
|
|
55308
55495
|
});
|
|
55309
55496
|
});
|
|
55310
55497
|
|
|
55311
|
-
// src/models/
|
|
55312
|
-
var
|
|
55313
|
-
var
|
|
55314
|
-
init_zod();
|
|
55315
|
-
init_v2evalrun();
|
|
55316
|
-
V2EvalRunsResponse$zodSchema = object({
|
|
55317
|
-
count: int(),
|
|
55318
|
-
data: array(V2EvalRun$zodSchema).optional(),
|
|
55319
|
-
limit: int(),
|
|
55320
|
-
offset: int()
|
|
55321
|
-
});
|
|
55322
|
-
});
|
|
55323
|
-
|
|
55324
|
-
// src/models/v2evalrunslistop.ts
|
|
55325
|
-
var V2EvalRunsListRequest$zodSchema, V2EvalRunsListResponse$zodSchema;
|
|
55326
|
-
var init_v2evalrunslistop = __esm(() => {
|
|
55498
|
+
// src/models/v2evalrunsretrieveop.ts
|
|
55499
|
+
var V2EvalRunsRetrieveRequest$zodSchema, V2EvalRunsRetrieveResponseBody$zodSchema, V2EvalRunsRetrieveResponse$zodSchema;
|
|
55500
|
+
var init_v2evalrunsretrieveop = __esm(() => {
|
|
55327
55501
|
init_zod();
|
|
55328
55502
|
init_httpvalidationerror();
|
|
55329
|
-
|
|
55330
|
-
|
|
55331
|
-
|
|
55332
|
-
offset: int().default(0)
|
|
55503
|
+
init_v2evalrundetail();
|
|
55504
|
+
V2EvalRunsRetrieveRequest$zodSchema = object({
|
|
55505
|
+
run_id: string2()
|
|
55333
55506
|
});
|
|
55334
|
-
|
|
55335
|
-
|
|
55507
|
+
V2EvalRunsRetrieveResponseBody$zodSchema = object({
|
|
55508
|
+
detail: string2()
|
|
55509
|
+
}).describe("Eval run not found. Use the run ID returned when you started the eval.");
|
|
55510
|
+
V2EvalRunsRetrieveResponse$zodSchema = union([
|
|
55511
|
+
V2EvalRunDetail$zodSchema,
|
|
55512
|
+
lazy(() => V2EvalRunsRetrieveResponseBody$zodSchema),
|
|
55336
55513
|
HTTPValidationError$zodSchema
|
|
55337
55514
|
]);
|
|
55338
55515
|
});
|
|
55339
55516
|
|
|
55340
|
-
// src/funcs/
|
|
55341
|
-
function
|
|
55517
|
+
// src/funcs/evalsGet.ts
|
|
55518
|
+
function evalsGet(client$, request, options) {
|
|
55342
55519
|
return new APIPromise($do9(client$, request, options));
|
|
55343
55520
|
}
|
|
55344
55521
|
async function $do9(client$, request, options) {
|
|
55345
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
55522
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55346
55523
|
if (!parsed$.ok) {
|
|
55347
55524
|
return [parsed$, { status: "invalid" }];
|
|
55348
55525
|
}
|
|
55349
55526
|
const payload$ = parsed$.value;
|
|
55350
55527
|
const body$ = null;
|
|
55351
|
-
const
|
|
55352
|
-
|
|
55353
|
-
|
|
55354
|
-
|
|
55355
|
-
|
|
55528
|
+
const pathParams$ = {
|
|
55529
|
+
run_id: encodeSimple("run_id", payload$.run_id, {
|
|
55530
|
+
explode: false,
|
|
55531
|
+
charEncoding: "percent"
|
|
55532
|
+
})
|
|
55533
|
+
};
|
|
55534
|
+
const path$ = pathToFunc("/v2/eval-runs/{run_id}")(pathParams$);
|
|
55356
55535
|
const headers$ = new Headers(compactMap({
|
|
55357
55536
|
Accept: "application/json"
|
|
55358
55537
|
}));
|
|
@@ -55361,7 +55540,7 @@ async function $do9(client$, request, options) {
|
|
|
55361
55540
|
const context = {
|
|
55362
55541
|
options: client$._options,
|
|
55363
55542
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55364
|
-
operationID: "
|
|
55543
|
+
operationID: "v2_eval_runs_retrieve",
|
|
55365
55544
|
oAuth2Scopes: null,
|
|
55366
55545
|
resolvedSecurity: requestSecurity,
|
|
55367
55546
|
securitySource: client$._options.security,
|
|
@@ -55380,7 +55559,6 @@ async function $do9(client$, request, options) {
|
|
|
55380
55559
|
baseURL: options?.serverURL,
|
|
55381
55560
|
path: path$,
|
|
55382
55561
|
headers: headers$,
|
|
55383
|
-
query: query$,
|
|
55384
55562
|
body: body$,
|
|
55385
55563
|
userAgent: client$._options.userAgent,
|
|
55386
55564
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
@@ -55404,135 +55582,7 @@ async function $do9(client$, request, options) {
|
|
|
55404
55582
|
response: doResult.value
|
|
55405
55583
|
}];
|
|
55406
55584
|
}
|
|
55407
|
-
var
|
|
55408
|
-
init_encodings();
|
|
55409
|
-
init_primitives();
|
|
55410
|
-
init_schemas4();
|
|
55411
|
-
init_security();
|
|
55412
|
-
init_url();
|
|
55413
|
-
init_v2evalrunslistop();
|
|
55414
|
-
init_async();
|
|
55415
|
-
});
|
|
55416
|
-
|
|
55417
|
-
// src/mcp-server/tools/evalRunsV2EvalRunsList.ts
|
|
55418
|
-
var args6, tool$evalRunsV2EvalRunsList;
|
|
55419
|
-
var init_evalRunsV2EvalRunsList2 = __esm(() => {
|
|
55420
|
-
init_evalRunsV2EvalRunsList();
|
|
55421
|
-
init_v2evalrunslistop();
|
|
55422
|
-
init_tools();
|
|
55423
|
-
args6 = {
|
|
55424
|
-
request: V2EvalRunsListRequest$zodSchema.optional()
|
|
55425
|
-
};
|
|
55426
|
-
tool$evalRunsV2EvalRunsList = {
|
|
55427
|
-
name: "eval-runs-v2-eval-runs-list",
|
|
55428
|
-
description: `List Runs
|
|
55429
|
-
|
|
55430
|
-
Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with lifecycle state and progress.`,
|
|
55431
|
-
annotations: {
|
|
55432
|
-
title: "",
|
|
55433
|
-
destructiveHint: false,
|
|
55434
|
-
idempotentHint: false,
|
|
55435
|
-
openWorldHint: false,
|
|
55436
|
-
readOnlyHint: true
|
|
55437
|
-
},
|
|
55438
|
-
args: args6,
|
|
55439
|
-
tool: async (client, args, ctx) => {
|
|
55440
|
-
const [result] = await evalRunsV2EvalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55441
|
-
if (!result.ok) {
|
|
55442
|
-
return {
|
|
55443
|
-
content: [{ type: "text", text: result.error.message }],
|
|
55444
|
-
isError: true
|
|
55445
|
-
};
|
|
55446
|
-
}
|
|
55447
|
-
return formatResult(result.value);
|
|
55448
|
-
}
|
|
55449
|
-
};
|
|
55450
|
-
});
|
|
55451
|
-
|
|
55452
|
-
// src/models/v2evalrunsretrieveop.ts
|
|
55453
|
-
var V2EvalRunsRetrieveRequest$zodSchema, V2EvalRunsRetrieveResponse$zodSchema;
|
|
55454
|
-
var init_v2evalrunsretrieveop = __esm(() => {
|
|
55455
|
-
init_zod();
|
|
55456
|
-
init_httpvalidationerror();
|
|
55457
|
-
init_v2evalrun();
|
|
55458
|
-
V2EvalRunsRetrieveRequest$zodSchema = object({
|
|
55459
|
-
run_id: string2()
|
|
55460
|
-
});
|
|
55461
|
-
V2EvalRunsRetrieveResponse$zodSchema = union([
|
|
55462
|
-
V2EvalRun$zodSchema,
|
|
55463
|
-
HTTPValidationError$zodSchema
|
|
55464
|
-
]);
|
|
55465
|
-
});
|
|
55466
|
-
|
|
55467
|
-
// src/funcs/evalRunsV2EvalRunsRetrieve.ts
|
|
55468
|
-
function evalRunsV2EvalRunsRetrieve(client$, request, options) {
|
|
55469
|
-
return new APIPromise($do10(client$, request, options));
|
|
55470
|
-
}
|
|
55471
|
-
async function $do10(client$, request, options) {
|
|
55472
|
-
const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55473
|
-
if (!parsed$.ok) {
|
|
55474
|
-
return [parsed$, { status: "invalid" }];
|
|
55475
|
-
}
|
|
55476
|
-
const payload$ = parsed$.value;
|
|
55477
|
-
const body$ = null;
|
|
55478
|
-
const pathParams$ = {
|
|
55479
|
-
run_id: encodeSimple("run_id", payload$.run_id, {
|
|
55480
|
-
explode: false,
|
|
55481
|
-
charEncoding: "percent"
|
|
55482
|
-
})
|
|
55483
|
-
};
|
|
55484
|
-
const path$ = pathToFunc("/v2/eval-runs/{run_id}")(pathParams$);
|
|
55485
|
-
const headers$ = new Headers(compactMap({
|
|
55486
|
-
Accept: "application/json"
|
|
55487
|
-
}));
|
|
55488
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
55489
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
55490
|
-
const context = {
|
|
55491
|
-
options: client$._options,
|
|
55492
|
-
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55493
|
-
operationID: "v2_eval_runs_retrieve",
|
|
55494
|
-
oAuth2Scopes: null,
|
|
55495
|
-
resolvedSecurity: requestSecurity,
|
|
55496
|
-
securitySource: client$._options.security,
|
|
55497
|
-
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
55498
|
-
retryCodes: options?.retryCodes || [
|
|
55499
|
-
"429",
|
|
55500
|
-
"500",
|
|
55501
|
-
"502",
|
|
55502
|
-
"503",
|
|
55503
|
-
"504"
|
|
55504
|
-
]
|
|
55505
|
-
};
|
|
55506
|
-
const requestRes = client$._createRequest(context, {
|
|
55507
|
-
security: requestSecurity,
|
|
55508
|
-
method: "GET",
|
|
55509
|
-
baseURL: options?.serverURL,
|
|
55510
|
-
path: path$,
|
|
55511
|
-
headers: headers$,
|
|
55512
|
-
body: body$,
|
|
55513
|
-
userAgent: client$._options.userAgent,
|
|
55514
|
-
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
55515
|
-
}, options);
|
|
55516
|
-
if (!requestRes.ok) {
|
|
55517
|
-
return [requestRes, { status: "invalid" }];
|
|
55518
|
-
}
|
|
55519
|
-
const req$ = requestRes.value;
|
|
55520
|
-
const doResult = await client$._do(req$, {
|
|
55521
|
-
context,
|
|
55522
|
-
errorCodes: [],
|
|
55523
|
-
retryConfig: context.retryConfig,
|
|
55524
|
-
retryCodes: context.retryCodes
|
|
55525
|
-
});
|
|
55526
|
-
if (!doResult.ok) {
|
|
55527
|
-
return [doResult, { status: "request-error", request: req$ }];
|
|
55528
|
-
}
|
|
55529
|
-
return [doResult, {
|
|
55530
|
-
status: "complete",
|
|
55531
|
-
request: req$,
|
|
55532
|
-
response: doResult.value
|
|
55533
|
-
}];
|
|
55534
|
-
}
|
|
55535
|
-
var init_evalRunsV2EvalRunsRetrieve = __esm(() => {
|
|
55585
|
+
var init_evalsGet = __esm(() => {
|
|
55536
55586
|
init_encodings();
|
|
55537
55587
|
init_primitives();
|
|
55538
55588
|
init_schemas4();
|
|
@@ -55542,188 +55592,20 @@ var init_evalRunsV2EvalRunsRetrieve = __esm(() => {
|
|
|
55542
55592
|
init_async();
|
|
55543
55593
|
});
|
|
55544
55594
|
|
|
55545
|
-
// src/mcp-server/tools/
|
|
55546
|
-
var
|
|
55547
|
-
var
|
|
55548
|
-
|
|
55595
|
+
// src/mcp-server/tools/evalsGet.ts
|
|
55596
|
+
var args6, tool$evalsGet;
|
|
55597
|
+
var init_evalsGet2 = __esm(() => {
|
|
55598
|
+
init_evalsGet();
|
|
55549
55599
|
init_v2evalrunsretrieveop();
|
|
55550
55600
|
init_tools();
|
|
55551
|
-
|
|
55601
|
+
args6 = {
|
|
55552
55602
|
request: V2EvalRunsRetrieveRequest$zodSchema
|
|
55553
55603
|
};
|
|
55554
|
-
tool$
|
|
55555
|
-
name: "
|
|
55556
|
-
description: `Retrieve
|
|
55557
|
-
|
|
55558
|
-
Returns the status and progress of an eval job. Poll until the status reaches a terminal value.`,
|
|
55559
|
-
annotations: {
|
|
55560
|
-
title: "",
|
|
55561
|
-
destructiveHint: false,
|
|
55562
|
-
idempotentHint: false,
|
|
55563
|
-
openWorldHint: false,
|
|
55564
|
-
readOnlyHint: true
|
|
55565
|
-
},
|
|
55566
|
-
args: args7,
|
|
55567
|
-
tool: async (client, args, ctx) => {
|
|
55568
|
-
const [result] = await evalRunsV2EvalRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55569
|
-
if (!result.ok) {
|
|
55570
|
-
return {
|
|
55571
|
-
content: [{ type: "text", text: result.error.message }],
|
|
55572
|
-
isError: true
|
|
55573
|
-
};
|
|
55574
|
-
}
|
|
55575
|
-
return formatResult(result.value);
|
|
55576
|
-
}
|
|
55577
|
-
};
|
|
55578
|
-
});
|
|
55579
|
-
|
|
55580
|
-
// src/models/v2evalrunanalysis.ts
|
|
55581
|
-
var V2EvalRunAnalysis$zodSchema;
|
|
55582
|
-
var init_v2evalrunanalysis = __esm(() => {
|
|
55583
|
-
init_zod();
|
|
55584
|
-
V2EvalRunAnalysis$zodSchema = object({
|
|
55585
|
-
agent: string2().nullable().optional().describe("Runnable agent used for this concrete attempt."),
|
|
55586
|
-
analysis: record(string2(), any()).optional().describe("Persisted eval_run_analysis payload, including verdict, outcome, findings, bottleneck, and analysis sections."),
|
|
55587
|
-
analysis_version: string2().nullable().optional().describe("Version of the analysis pipeline that produced this payload."),
|
|
55588
|
-
attempt_id: string2().describe("Child eval-attempt ID used to correlate the analysis with trace events."),
|
|
55589
|
-
created_at: string2().nullable().optional(),
|
|
55590
|
-
eval_id: string2().nullable().optional().describe("Public eval definition ID, not the backing executable eval ID."),
|
|
55591
|
-
id: string2().describe("Persisted eval analysis ID."),
|
|
55592
|
-
prompt: string2().nullable().optional().describe("Exact task prompt used for this concrete attempt."),
|
|
55593
|
-
prompt_index: int().default(0).describe("Zero-based prompt index within the submitted simulation."),
|
|
55594
|
-
repeat_index: int().default(0).describe("Zero-based repeat index within the submitted run."),
|
|
55595
|
-
result_id: string2().describe("Concrete eval result ID analyzed for this attempt."),
|
|
55596
|
-
updated_at: string2().nullable().optional(),
|
|
55597
|
-
variant_key: string2().default("default").describe("Runtime variant that produced this result.")
|
|
55598
|
-
});
|
|
55599
|
-
});
|
|
55600
|
-
|
|
55601
|
-
// src/models/v2evalrunanalysisresponse.ts
|
|
55602
|
-
var V2EvalRunAnalysisResponse$zodSchema;
|
|
55603
|
-
var init_v2evalrunanalysisresponse = __esm(() => {
|
|
55604
|
-
init_zod();
|
|
55605
|
-
init_publicevalrunprogress();
|
|
55606
|
-
init_v2evalrunanalysis();
|
|
55607
|
-
V2EvalRunAnalysisResponse$zodSchema = object({
|
|
55608
|
-
data: array(V2EvalRunAnalysis$zodSchema).optional(),
|
|
55609
|
-
error: string2().nullable().optional(),
|
|
55610
|
-
progress: PublicEvalRunProgress$zodSchema.optional(),
|
|
55611
|
-
run_id: string2(),
|
|
55612
|
-
status: string2()
|
|
55613
|
-
});
|
|
55614
|
-
});
|
|
55615
|
-
|
|
55616
|
-
// src/models/v2evalrunsanalysisop.ts
|
|
55617
|
-
var V2EvalRunsAnalysisRequest$zodSchema, V2EvalRunsAnalysisResponseBody$zodSchema, V2EvalRunsAnalysisResponse$zodSchema;
|
|
55618
|
-
var init_v2evalrunsanalysisop = __esm(() => {
|
|
55619
|
-
init_zod();
|
|
55620
|
-
init_httpvalidationerror();
|
|
55621
|
-
init_v2evalrunanalysisresponse();
|
|
55622
|
-
V2EvalRunsAnalysisRequest$zodSchema = object({
|
|
55623
|
-
run_id: string2()
|
|
55624
|
-
});
|
|
55625
|
-
V2EvalRunsAnalysisResponseBody$zodSchema = object({
|
|
55626
|
-
detail: string2()
|
|
55627
|
-
}).describe("Eval run not found. Use the run ID returned when you started the eval.");
|
|
55628
|
-
V2EvalRunsAnalysisResponse$zodSchema = union([
|
|
55629
|
-
V2EvalRunAnalysisResponse$zodSchema,
|
|
55630
|
-
lazy(() => V2EvalRunsAnalysisResponseBody$zodSchema),
|
|
55631
|
-
HTTPValidationError$zodSchema
|
|
55632
|
-
]);
|
|
55633
|
-
});
|
|
55634
|
-
|
|
55635
|
-
// src/funcs/evalsAnalysis.ts
|
|
55636
|
-
function evalsAnalysis(client$, request, options) {
|
|
55637
|
-
return new APIPromise($do11(client$, request, options));
|
|
55638
|
-
}
|
|
55639
|
-
async function $do11(client$, request, options) {
|
|
55640
|
-
const parsed$ = safeParse4(request, (value$) => V2EvalRunsAnalysisRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55641
|
-
if (!parsed$.ok) {
|
|
55642
|
-
return [parsed$, { status: "invalid" }];
|
|
55643
|
-
}
|
|
55644
|
-
const payload$ = parsed$.value;
|
|
55645
|
-
const body$ = null;
|
|
55646
|
-
const pathParams$ = {
|
|
55647
|
-
run_id: encodeSimple("run_id", payload$.run_id, {
|
|
55648
|
-
explode: false,
|
|
55649
|
-
charEncoding: "percent"
|
|
55650
|
-
})
|
|
55651
|
-
};
|
|
55652
|
-
const path$ = pathToFunc("/v2/eval-runs/{run_id}/analysis")(pathParams$);
|
|
55653
|
-
const headers$ = new Headers(compactMap({
|
|
55654
|
-
Accept: "application/json"
|
|
55655
|
-
}));
|
|
55656
|
-
const securityInput = await extractSecurity(client$._options.security);
|
|
55657
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
55658
|
-
const context = {
|
|
55659
|
-
options: client$._options,
|
|
55660
|
-
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55661
|
-
operationID: "v2_eval_runs_analysis",
|
|
55662
|
-
oAuth2Scopes: null,
|
|
55663
|
-
resolvedSecurity: requestSecurity,
|
|
55664
|
-
securitySource: client$._options.security,
|
|
55665
|
-
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
55666
|
-
retryCodes: options?.retryCodes || [
|
|
55667
|
-
"429",
|
|
55668
|
-
"500",
|
|
55669
|
-
"502",
|
|
55670
|
-
"503",
|
|
55671
|
-
"504"
|
|
55672
|
-
]
|
|
55673
|
-
};
|
|
55674
|
-
const requestRes = client$._createRequest(context, {
|
|
55675
|
-
security: requestSecurity,
|
|
55676
|
-
method: "GET",
|
|
55677
|
-
baseURL: options?.serverURL,
|
|
55678
|
-
path: path$,
|
|
55679
|
-
headers: headers$,
|
|
55680
|
-
body: body$,
|
|
55681
|
-
userAgent: client$._options.userAgent,
|
|
55682
|
-
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
55683
|
-
}, options);
|
|
55684
|
-
if (!requestRes.ok) {
|
|
55685
|
-
return [requestRes, { status: "invalid" }];
|
|
55686
|
-
}
|
|
55687
|
-
const req$ = requestRes.value;
|
|
55688
|
-
const doResult = await client$._do(req$, {
|
|
55689
|
-
context,
|
|
55690
|
-
errorCodes: [],
|
|
55691
|
-
retryConfig: context.retryConfig,
|
|
55692
|
-
retryCodes: context.retryCodes
|
|
55693
|
-
});
|
|
55694
|
-
if (!doResult.ok) {
|
|
55695
|
-
return [doResult, { status: "request-error", request: req$ }];
|
|
55696
|
-
}
|
|
55697
|
-
return [doResult, {
|
|
55698
|
-
status: "complete",
|
|
55699
|
-
request: req$,
|
|
55700
|
-
response: doResult.value
|
|
55701
|
-
}];
|
|
55702
|
-
}
|
|
55703
|
-
var init_evalsAnalysis = __esm(() => {
|
|
55704
|
-
init_encodings();
|
|
55705
|
-
init_primitives();
|
|
55706
|
-
init_schemas4();
|
|
55707
|
-
init_security();
|
|
55708
|
-
init_url();
|
|
55709
|
-
init_v2evalrunsanalysisop();
|
|
55710
|
-
init_async();
|
|
55711
|
-
});
|
|
55712
|
-
|
|
55713
|
-
// src/mcp-server/tools/evalsAnalysis.ts
|
|
55714
|
-
var args8, tool$evalsAnalysis;
|
|
55715
|
-
var init_evalsAnalysis2 = __esm(() => {
|
|
55716
|
-
init_evalsAnalysis();
|
|
55717
|
-
init_v2evalrunsanalysisop();
|
|
55718
|
-
init_tools();
|
|
55719
|
-
args8 = {
|
|
55720
|
-
request: V2EvalRunsAnalysisRequest$zodSchema
|
|
55721
|
-
};
|
|
55722
|
-
tool$evalsAnalysis = {
|
|
55723
|
-
name: "evals-analysis",
|
|
55724
|
-
description: `Retrieve eval run analysis
|
|
55604
|
+
tool$evalsGet = {
|
|
55605
|
+
name: "evals-get",
|
|
55606
|
+
description: `Retrieve an eval run
|
|
55725
55607
|
|
|
55726
|
-
Returns the
|
|
55608
|
+
Returns the run's current status and progress. Once its attempts finish, the response also includes their results and analysis. Poll this until the status reaches a terminal value. Use the trace operation for the raw execution event log, or the monitor operation to follow a run live.`,
|
|
55727
55609
|
annotations: {
|
|
55728
55610
|
title: "",
|
|
55729
55611
|
destructiveHint: false,
|
|
@@ -55731,9 +55613,9 @@ Returns the persisted analysis produced for each completed attempt in one eval r
|
|
|
55731
55613
|
openWorldHint: false,
|
|
55732
55614
|
readOnlyHint: true
|
|
55733
55615
|
},
|
|
55734
|
-
args:
|
|
55616
|
+
args: args6,
|
|
55735
55617
|
tool: async (client, args, ctx) => {
|
|
55736
|
-
const [result] = await
|
|
55618
|
+
const [result] = await evalsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55737
55619
|
if (!result.ok) {
|
|
55738
55620
|
return {
|
|
55739
55621
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55745,15 +55627,6 @@ Returns the persisted analysis produced for each completed attempt in one eval r
|
|
|
55745
55627
|
};
|
|
55746
55628
|
});
|
|
55747
55629
|
|
|
55748
|
-
// src/models/v2inlineclireference.ts
|
|
55749
|
-
var V2InlineCliReference$zodSchema;
|
|
55750
|
-
var init_v2inlineclireference = __esm(() => {
|
|
55751
|
-
init_zod();
|
|
55752
|
-
V2InlineCliReference$zodSchema = object({
|
|
55753
|
-
install_command: string2().describe("Shell command to install this CLI before the agent starts.")
|
|
55754
|
-
});
|
|
55755
|
-
});
|
|
55756
|
-
|
|
55757
55630
|
// src/models/v2inlinemcpdefinition.ts
|
|
55758
55631
|
var Type$zodSchema, V2InlineMcpDefinition$zodSchema;
|
|
55759
55632
|
var init_v2inlinemcpdefinition = __esm(() => {
|
|
@@ -55774,15 +55647,6 @@ var init_v2inlinemcpdefinition = __esm(() => {
|
|
|
55774
55647
|
});
|
|
55775
55648
|
});
|
|
55776
55649
|
|
|
55777
|
-
// src/models/v2savedclireference.ts
|
|
55778
|
-
var V2SavedCliReference$zodSchema;
|
|
55779
|
-
var init_v2savedclireference = __esm(() => {
|
|
55780
|
-
init_zod();
|
|
55781
|
-
V2SavedCliReference$zodSchema = object({
|
|
55782
|
-
id: string2().describe("Saved CLI ID from `GET /v2/clis`.")
|
|
55783
|
-
});
|
|
55784
|
-
});
|
|
55785
|
-
|
|
55786
55650
|
// src/models/v2savedmcpreference.ts
|
|
55787
55651
|
var V2SavedMcpReference$zodSchema;
|
|
55788
55652
|
var init_v2savedmcpreference = __esm(() => {
|
|
@@ -55793,27 +55657,20 @@ var init_v2savedmcpreference = __esm(() => {
|
|
|
55793
55657
|
});
|
|
55794
55658
|
|
|
55795
55659
|
// src/models/createv2evalrunrequest.ts
|
|
55796
|
-
var
|
|
55660
|
+
var CreateV2EvalRunRequestMcp$zodSchema, CreateV2EvalRunRequest$zodSchema;
|
|
55797
55661
|
var init_createv2evalrunrequest = __esm(() => {
|
|
55798
55662
|
init_zod();
|
|
55799
|
-
|
|
55663
|
+
init_searchgroundingmode();
|
|
55800
55664
|
init_v2inlinemcpdefinition();
|
|
55801
|
-
init_v2savedclireference();
|
|
55802
55665
|
init_v2savedmcpreference();
|
|
55803
|
-
CreateV2EvalRunRequestCli$zodSchema = union([
|
|
55804
|
-
V2SavedCliReference$zodSchema,
|
|
55805
|
-
V2InlineCliReference$zodSchema
|
|
55806
|
-
]);
|
|
55807
55666
|
CreateV2EvalRunRequestMcp$zodSchema = union([
|
|
55808
55667
|
V2InlineMcpDefinition$zodSchema,
|
|
55809
55668
|
V2SavedMcpReference$zodSchema
|
|
55810
55669
|
]);
|
|
55811
55670
|
CreateV2EvalRunRequest$zodSchema = object({
|
|
55812
55671
|
agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`. Required unless the saved eval already has agents. CLI clients expose repeatable `--agent`."),
|
|
55813
|
-
|
|
55814
|
-
|
|
55815
|
-
V2InlineCliReference$zodSchema
|
|
55816
|
-
])).nullable().optional().describe("Saved CLI references or inline installation commands. In saved mode, an explicit empty array disables saved CLIs for this launch."),
|
|
55672
|
+
cleanup_commands: array(string2()).nullable().optional().describe("Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. In saved mode, an explicit empty array disables saved cleanup commands for this launch. CLI clients expose repeatable `--cleanup-command`."),
|
|
55673
|
+
clis: array(string2()).nullable().optional().describe("Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from `GET /v2/clis`; every other value is run as an installation command. In saved mode, an explicit empty array disables saved CLIs for this launch. CLI clients expose repeatable `--cli`."),
|
|
55817
55674
|
configuration_id: string2().optional().describe("Saved-run form only. Optional saved repository, environment, skills, and legacy tool configuration."),
|
|
55818
55675
|
env: record(string2(), string2()).optional().describe("Write-only environment variables for this launch. Values are stored only in the queued job's private configuration."),
|
|
55819
55676
|
eval_id: string2().optional().describe("Saved-run form only. Existing eval definition to run. Omit this field to use the direct create-and-run form."),
|
|
@@ -55827,6 +55684,8 @@ var init_createv2evalrunrequest = __esm(() => {
|
|
|
55827
55684
|
prompts: array(string2()).nullable().optional().describe("Task prompts. Required in direct mode; in saved mode, replaces saved prompts for this launch. CLI clients expose repeatable `--prompt`."),
|
|
55828
55685
|
repository: string2().optional().describe("Direct create-and-run form only. A saved repository ID, built-in alias such as `nextjs-starter`, or a public GitHub HTTPS URL."),
|
|
55829
55686
|
runs: int().optional().describe("Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run."),
|
|
55687
|
+
search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web-retrieval policy for this launch. Overrides the selected configuration or saved eval when provided; direct runs default to `default`."),
|
|
55688
|
+
setup_commands: array(string2()).nullable().optional().describe("Shell commands run sequentially in the prepared repository before the agent starts. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable `--setup-command`."),
|
|
55830
55689
|
skill_ids: array(string2()).optional().describe("Direct create-and-run form only. Reusable skill IDs from `GET /v2/skills` to install before the agent starts."),
|
|
55831
55690
|
skills: array(string2()).optional().describe("Additional public skill packages to install before the agent starts in either request form, using GitHub `owner/repository` references such as `resend/resend-skills`. CLI clients may expose this string array as a repeatable `--skill` flag."),
|
|
55832
55691
|
tags: array(string2()).optional().describe("Direct create-and-run form only. Optional labels saved on the created eval. CLI clients may expose this string array as a repeatable `--tag` flag.")
|
|
@@ -55835,9 +55694,9 @@ var init_createv2evalrunrequest = __esm(() => {
|
|
|
55835
55694
|
|
|
55836
55695
|
// src/funcs/evalsRun.ts
|
|
55837
55696
|
function evalsRun(client$, request, options) {
|
|
55838
|
-
return new APIPromise($
|
|
55697
|
+
return new APIPromise($do10(client$, request, options));
|
|
55839
55698
|
}
|
|
55840
|
-
async function $
|
|
55699
|
+
async function $do10(client$, request, options) {
|
|
55841
55700
|
const parsed$ = safeParse4(request, (value$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55842
55701
|
if (!parsed$.ok) {
|
|
55843
55702
|
return [parsed$, { status: "invalid" }];
|
|
@@ -55907,26 +55766,28 @@ var init_evalsRun = __esm(() => {
|
|
|
55907
55766
|
});
|
|
55908
55767
|
|
|
55909
55768
|
// src/mcp-server/tools/evalsRun.ts
|
|
55910
|
-
var
|
|
55769
|
+
var args7, tool$evalsRun;
|
|
55911
55770
|
var init_evalsRun2 = __esm(() => {
|
|
55912
55771
|
init_evalsRun();
|
|
55913
55772
|
init_createv2evalrunrequest();
|
|
55914
55773
|
init_tools();
|
|
55915
|
-
|
|
55774
|
+
args7 = {
|
|
55916
55775
|
request: CreateV2EvalRunRequest$zodSchema
|
|
55917
55776
|
};
|
|
55918
55777
|
tool$evalsRun = {
|
|
55919
55778
|
name: "evals-run",
|
|
55920
55779
|
description: `Start an eval run
|
|
55921
55780
|
|
|
55922
|
-
Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value.
|
|
55781
|
+
Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.
|
|
55923
55782
|
|
|
55924
55783
|
Send one of these flat request forms:
|
|
55925
55784
|
|
|
55926
|
-
- **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
|
|
55927
|
-
- **Direct create-and-run:** provide \`prompts\`, \`judges\`, and \`agent\`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, and
|
|
55785
|
+
- **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
|
|
55786
|
+
- **Direct create-and-run:** provide \`prompts\`, \`judges\`, and \`agent\`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.
|
|
55787
|
+
|
|
55788
|
+
The run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate \`mode\` field is required. If the organization lacks the estimated credits, the request fails with \`402\` before dispatching work.
|
|
55928
55789
|
|
|
55929
|
-
|
|
55790
|
+
A saved or inline environment containing an empty or placeholder credential is rejected with \`400\` before any evaluation is dispatched.`,
|
|
55930
55791
|
annotations: {
|
|
55931
55792
|
title: "",
|
|
55932
55793
|
destructiveHint: false,
|
|
@@ -55934,7 +55795,7 @@ The run fans out across prompts × agents × runs. Persona is shared metadata an
|
|
|
55934
55795
|
openWorldHint: false,
|
|
55935
55796
|
readOnlyHint: false
|
|
55936
55797
|
},
|
|
55937
|
-
args:
|
|
55798
|
+
args: args7,
|
|
55938
55799
|
tool: async (client, args, ctx) => {
|
|
55939
55800
|
const [result] = await evalsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55940
55801
|
if (!result.ok) {
|
|
@@ -55966,7 +55827,7 @@ var init_v2evalruntraceevent = __esm(() => {
|
|
|
55966
55827
|
repeat_index: int().default(0),
|
|
55967
55828
|
run_id: string2(),
|
|
55968
55829
|
timestamp: string2().nullable().optional(),
|
|
55969
|
-
type: string2()
|
|
55830
|
+
type: string2().describe("Event type. Events are not tool invocations: one invocation usually emits a `tool_call` event and a `tool_result` event, and can emit extra `tool_call` updates as its arguments stream. Count invocations with the result's `tool_calls`, not with trace events.")
|
|
55970
55831
|
});
|
|
55971
55832
|
});
|
|
55972
55833
|
|
|
@@ -56010,9 +55871,9 @@ var init_v2evalrunstraceop = __esm(() => {
|
|
|
56010
55871
|
|
|
56011
55872
|
// src/funcs/evalsTrace.ts
|
|
56012
55873
|
function evalsTrace(client$, request, options) {
|
|
56013
|
-
return new APIPromise($
|
|
55874
|
+
return new APIPromise($do11(client$, request, options));
|
|
56014
55875
|
}
|
|
56015
|
-
async function $
|
|
55876
|
+
async function $do11(client$, request, options) {
|
|
56016
55877
|
const parsed$ = safeParse4(request, (value$) => V2EvalRunsTraceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56017
55878
|
if (!parsed$.ok) {
|
|
56018
55879
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56092,12 +55953,12 @@ var init_evalsTrace = __esm(() => {
|
|
|
56092
55953
|
});
|
|
56093
55954
|
|
|
56094
55955
|
// src/mcp-server/tools/evalsTrace.ts
|
|
56095
|
-
var
|
|
55956
|
+
var args8, tool$evalsTrace;
|
|
56096
55957
|
var init_evalsTrace2 = __esm(() => {
|
|
56097
55958
|
init_evalsTrace();
|
|
56098
55959
|
init_v2evalrunstraceop();
|
|
56099
55960
|
init_tools();
|
|
56100
|
-
|
|
55961
|
+
args8 = {
|
|
56101
55962
|
request: V2EvalRunsTraceRequest$zodSchema
|
|
56102
55963
|
};
|
|
56103
55964
|
tool$evalsTrace = {
|
|
@@ -56112,7 +55973,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
|
|
|
56112
55973
|
openWorldHint: false,
|
|
56113
55974
|
readOnlyHint: true
|
|
56114
55975
|
},
|
|
56115
|
-
args:
|
|
55976
|
+
args: args8,
|
|
56116
55977
|
tool: async (client, args, ctx) => {
|
|
56117
55978
|
const [result] = await evalsTrace(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56118
55979
|
if (!result.ok) {
|
|
@@ -56130,6 +55991,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
|
|
|
56130
55991
|
var CreateV2EvalConfigurationRequest$zodSchema;
|
|
56131
55992
|
var init_createv2evalconfigurationrequest = __esm(() => {
|
|
56132
55993
|
init_zod();
|
|
55994
|
+
init_searchgroundingmode();
|
|
56133
55995
|
CreateV2EvalConfigurationRequest$zodSchema = object({
|
|
56134
55996
|
cli_ids: array(string2()).optional(),
|
|
56135
55997
|
environment_id: string2().optional(),
|
|
@@ -56137,6 +55999,7 @@ var init_createv2evalconfigurationrequest = __esm(() => {
|
|
|
56137
55999
|
mcp_server_ids: array(string2()).optional(),
|
|
56138
56000
|
name: string2(),
|
|
56139
56001
|
repository_id: string2().optional(),
|
|
56002
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
|
|
56140
56003
|
skill_ids: array(string2()).optional(),
|
|
56141
56004
|
skills: array(string2()).optional().describe("Public skill packages saved with this configuration, using GitHub `owner/repository` references such as `resend/resend-skills`.")
|
|
56142
56005
|
});
|
|
@@ -56146,6 +56009,7 @@ var init_createv2evalconfigurationrequest = __esm(() => {
|
|
|
56146
56009
|
var V2EvalConfiguration$zodSchema;
|
|
56147
56010
|
var init_v2evalconfiguration = __esm(() => {
|
|
56148
56011
|
init_zod();
|
|
56012
|
+
init_searchgroundingmode();
|
|
56149
56013
|
V2EvalConfiguration$zodSchema = object({
|
|
56150
56014
|
cli_ids: array(string2()).optional(),
|
|
56151
56015
|
created_at: string2().nullable().optional(),
|
|
@@ -56156,6 +56020,7 @@ var init_v2evalconfiguration = __esm(() => {
|
|
|
56156
56020
|
mcp_server_ids: array(string2()).optional(),
|
|
56157
56021
|
name: string2(),
|
|
56158
56022
|
repository_id: string2().nullable().optional(),
|
|
56023
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
|
|
56159
56024
|
skill_ids: array(string2()).optional(),
|
|
56160
56025
|
skills: array(string2()).optional().describe("Public GitHub `owner/repository` skill packages installed for this configuration."),
|
|
56161
56026
|
updated_at: string2().nullable().optional()
|
|
@@ -56181,9 +56046,9 @@ var init_v2evalconfigurationscreateop = __esm(() => {
|
|
|
56181
56046
|
|
|
56182
56047
|
// src/funcs/evalsV2EvalConfigurationsCreate.ts
|
|
56183
56048
|
function evalsV2EvalConfigurationsCreate(client$, request, options) {
|
|
56184
|
-
return new APIPromise($
|
|
56049
|
+
return new APIPromise($do12(client$, request, options));
|
|
56185
56050
|
}
|
|
56186
|
-
async function $
|
|
56051
|
+
async function $do12(client$, request, options) {
|
|
56187
56052
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsCreateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56188
56053
|
if (!parsed$.ok) {
|
|
56189
56054
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56259,12 +56124,12 @@ var init_evalsV2EvalConfigurationsCreate = __esm(() => {
|
|
|
56259
56124
|
});
|
|
56260
56125
|
|
|
56261
56126
|
// src/mcp-server/tools/evalsV2EvalConfigurationsCreate.ts
|
|
56262
|
-
var
|
|
56127
|
+
var args9, tool$evalsV2EvalConfigurationsCreate;
|
|
56263
56128
|
var init_evalsV2EvalConfigurationsCreate2 = __esm(() => {
|
|
56264
56129
|
init_evalsV2EvalConfigurationsCreate();
|
|
56265
56130
|
init_v2evalconfigurationscreateop();
|
|
56266
56131
|
init_tools();
|
|
56267
|
-
|
|
56132
|
+
args9 = {
|
|
56268
56133
|
request: V2EvalConfigurationsCreateRequest$zodSchema
|
|
56269
56134
|
};
|
|
56270
56135
|
tool$evalsV2EvalConfigurationsCreate = {
|
|
@@ -56279,7 +56144,7 @@ Creates a saved runtime configuration that pairs an eval with a repository, envi
|
|
|
56279
56144
|
openWorldHint: false,
|
|
56280
56145
|
readOnlyHint: false
|
|
56281
56146
|
},
|
|
56282
|
-
args:
|
|
56147
|
+
args: args9,
|
|
56283
56148
|
tool: async (client, args, ctx) => {
|
|
56284
56149
|
const [result] = await evalsV2EvalConfigurationsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56285
56150
|
if (!result.ok) {
|
|
@@ -56311,9 +56176,9 @@ var init_v2evalconfigurationsdeleteop = __esm(() => {
|
|
|
56311
56176
|
|
|
56312
56177
|
// src/funcs/evalsV2EvalConfigurationsDelete.ts
|
|
56313
56178
|
function evalsV2EvalConfigurationsDelete(client$, request, options) {
|
|
56314
|
-
return new APIPromise($
|
|
56179
|
+
return new APIPromise($do13(client$, request, options));
|
|
56315
56180
|
}
|
|
56316
|
-
async function $
|
|
56181
|
+
async function $do13(client$, request, options) {
|
|
56317
56182
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56318
56183
|
if (!parsed$.ok) {
|
|
56319
56184
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56389,12 +56254,12 @@ var init_evalsV2EvalConfigurationsDelete = __esm(() => {
|
|
|
56389
56254
|
});
|
|
56390
56255
|
|
|
56391
56256
|
// src/mcp-server/tools/evalsV2EvalConfigurationsDelete.ts
|
|
56392
|
-
var
|
|
56257
|
+
var args10, tool$evalsV2EvalConfigurationsDelete;
|
|
56393
56258
|
var init_evalsV2EvalConfigurationsDelete2 = __esm(() => {
|
|
56394
56259
|
init_evalsV2EvalConfigurationsDelete();
|
|
56395
56260
|
init_v2evalconfigurationsdeleteop();
|
|
56396
56261
|
init_tools();
|
|
56397
|
-
|
|
56262
|
+
args10 = {
|
|
56398
56263
|
request: V2EvalConfigurationsDeleteRequest$zodSchema
|
|
56399
56264
|
};
|
|
56400
56265
|
tool$evalsV2EvalConfigurationsDelete = {
|
|
@@ -56409,7 +56274,7 @@ Permanently deletes an eval configuration and returns its last saved state.`,
|
|
|
56409
56274
|
openWorldHint: false,
|
|
56410
56275
|
readOnlyHint: false
|
|
56411
56276
|
},
|
|
56412
|
-
args:
|
|
56277
|
+
args: args10,
|
|
56413
56278
|
tool: async (client, args, ctx) => {
|
|
56414
56279
|
const [result] = await evalsV2EvalConfigurationsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56415
56280
|
if (!result.ok) {
|
|
@@ -56451,9 +56316,9 @@ var init_v2evalconfigurationslistop = __esm(() => {
|
|
|
56451
56316
|
|
|
56452
56317
|
// src/funcs/evalsV2EvalConfigurationsList.ts
|
|
56453
56318
|
function evalsV2EvalConfigurationsList(client$, request, options) {
|
|
56454
|
-
return new APIPromise($
|
|
56319
|
+
return new APIPromise($do14(client$, request, options));
|
|
56455
56320
|
}
|
|
56456
|
-
async function $
|
|
56321
|
+
async function $do14(client$, request, options) {
|
|
56457
56322
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsListRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56458
56323
|
if (!parsed$.ok) {
|
|
56459
56324
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56528,12 +56393,12 @@ var init_evalsV2EvalConfigurationsList = __esm(() => {
|
|
|
56528
56393
|
});
|
|
56529
56394
|
|
|
56530
56395
|
// src/mcp-server/tools/evalsV2EvalConfigurationsList.ts
|
|
56531
|
-
var
|
|
56396
|
+
var args11, tool$evalsV2EvalConfigurationsList;
|
|
56532
56397
|
var init_evalsV2EvalConfigurationsList2 = __esm(() => {
|
|
56533
56398
|
init_evalsV2EvalConfigurationsList();
|
|
56534
56399
|
init_v2evalconfigurationslistop();
|
|
56535
56400
|
init_tools();
|
|
56536
|
-
|
|
56401
|
+
args11 = {
|
|
56537
56402
|
request: V2EvalConfigurationsListRequest$zodSchema
|
|
56538
56403
|
};
|
|
56539
56404
|
tool$evalsV2EvalConfigurationsList = {
|
|
@@ -56548,7 +56413,7 @@ Returns the saved runtime configurations for an eval, including repository, envi
|
|
|
56548
56413
|
openWorldHint: false,
|
|
56549
56414
|
readOnlyHint: true
|
|
56550
56415
|
},
|
|
56551
|
-
args:
|
|
56416
|
+
args: args11,
|
|
56552
56417
|
tool: async (client, args, ctx) => {
|
|
56553
56418
|
const [result] = await evalsV2EvalConfigurationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56554
56419
|
if (!result.ok) {
|
|
@@ -56580,9 +56445,9 @@ var init_v2evalconfigurationsretrieveop = __esm(() => {
|
|
|
56580
56445
|
|
|
56581
56446
|
// src/funcs/evalsV2EvalConfigurationsRetrieve.ts
|
|
56582
56447
|
function evalsV2EvalConfigurationsRetrieve(client$, request, options) {
|
|
56583
|
-
return new APIPromise($
|
|
56448
|
+
return new APIPromise($do15(client$, request, options));
|
|
56584
56449
|
}
|
|
56585
|
-
async function $
|
|
56450
|
+
async function $do15(client$, request, options) {
|
|
56586
56451
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56587
56452
|
if (!parsed$.ok) {
|
|
56588
56453
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56658,12 +56523,12 @@ var init_evalsV2EvalConfigurationsRetrieve = __esm(() => {
|
|
|
56658
56523
|
});
|
|
56659
56524
|
|
|
56660
56525
|
// src/mcp-server/tools/evalsV2EvalConfigurationsRetrieve.ts
|
|
56661
|
-
var
|
|
56526
|
+
var args12, tool$evalsV2EvalConfigurationsRetrieve;
|
|
56662
56527
|
var init_evalsV2EvalConfigurationsRetrieve2 = __esm(() => {
|
|
56663
56528
|
init_evalsV2EvalConfigurationsRetrieve();
|
|
56664
56529
|
init_v2evalconfigurationsretrieveop();
|
|
56665
56530
|
init_tools();
|
|
56666
|
-
|
|
56531
|
+
args12 = {
|
|
56667
56532
|
request: V2EvalConfigurationsRetrieveRequest$zodSchema
|
|
56668
56533
|
};
|
|
56669
56534
|
tool$evalsV2EvalConfigurationsRetrieve = {
|
|
@@ -56678,7 +56543,7 @@ Returns one saved configuration for an eval.`,
|
|
|
56678
56543
|
openWorldHint: false,
|
|
56679
56544
|
readOnlyHint: true
|
|
56680
56545
|
},
|
|
56681
|
-
args:
|
|
56546
|
+
args: args12,
|
|
56682
56547
|
tool: async (client, args, ctx) => {
|
|
56683
56548
|
const [result] = await evalsV2EvalConfigurationsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56684
56549
|
if (!result.ok) {
|
|
@@ -56696,6 +56561,7 @@ Returns one saved configuration for an eval.`,
|
|
|
56696
56561
|
var UpdateV2EvalConfigurationRequest$zodSchema;
|
|
56697
56562
|
var init_updatev2evalconfigurationrequest = __esm(() => {
|
|
56698
56563
|
init_zod();
|
|
56564
|
+
init_searchgroundingmode();
|
|
56699
56565
|
UpdateV2EvalConfigurationRequest$zodSchema = object({
|
|
56700
56566
|
cli_ids: array(string2()).nullable().optional(),
|
|
56701
56567
|
environment_id: string2().optional(),
|
|
@@ -56703,6 +56569,7 @@ var init_updatev2evalconfigurationrequest = __esm(() => {
|
|
|
56703
56569
|
mcp_server_ids: array(string2()).nullable().optional(),
|
|
56704
56570
|
name: string2().optional(),
|
|
56705
56571
|
repository_id: string2().optional(),
|
|
56572
|
+
search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Replacement web-retrieval policy. Omit it to keep the saved value."),
|
|
56706
56573
|
skill_ids: array(string2()).nullable().optional(),
|
|
56707
56574
|
skills: array(string2()).nullable().optional().describe("Public skill packages saved with this configuration, using GitHub `owner/repository` references.")
|
|
56708
56575
|
});
|
|
@@ -56728,9 +56595,9 @@ var init_v2evalconfigurationsupdateop = __esm(() => {
|
|
|
56728
56595
|
|
|
56729
56596
|
// src/funcs/evalsV2EvalConfigurationsUpdate.ts
|
|
56730
56597
|
function evalsV2EvalConfigurationsUpdate(client$, request, options) {
|
|
56731
|
-
return new APIPromise($
|
|
56598
|
+
return new APIPromise($do16(client$, request, options));
|
|
56732
56599
|
}
|
|
56733
|
-
async function $
|
|
56600
|
+
async function $do16(client$, request, options) {
|
|
56734
56601
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56735
56602
|
if (!parsed$.ok) {
|
|
56736
56603
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56807,12 +56674,12 @@ var init_evalsV2EvalConfigurationsUpdate = __esm(() => {
|
|
|
56807
56674
|
});
|
|
56808
56675
|
|
|
56809
56676
|
// src/mcp-server/tools/evalsV2EvalConfigurationsUpdate.ts
|
|
56810
|
-
var
|
|
56677
|
+
var args13, tool$evalsV2EvalConfigurationsUpdate;
|
|
56811
56678
|
var init_evalsV2EvalConfigurationsUpdate2 = __esm(() => {
|
|
56812
56679
|
init_evalsV2EvalConfigurationsUpdate();
|
|
56813
56680
|
init_v2evalconfigurationsupdateop();
|
|
56814
56681
|
init_tools();
|
|
56815
|
-
|
|
56682
|
+
args13 = {
|
|
56816
56683
|
request: V2EvalConfigurationsUpdateRequest$zodSchema
|
|
56817
56684
|
};
|
|
56818
56685
|
tool$evalsV2EvalConfigurationsUpdate = {
|
|
@@ -56827,7 +56694,7 @@ Updates an eval configuration; omitted fields remain unchanged.`,
|
|
|
56827
56694
|
openWorldHint: false,
|
|
56828
56695
|
readOnlyHint: false
|
|
56829
56696
|
},
|
|
56830
|
-
args:
|
|
56697
|
+
args: args13,
|
|
56831
56698
|
tool: async (client, args, ctx) => {
|
|
56832
56699
|
const [result] = await evalsV2EvalConfigurationsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56833
56700
|
if (!result.ok) {
|
|
@@ -56842,27 +56709,20 @@ Updates an eval configuration; omitted fields remain unchanged.`,
|
|
|
56842
56709
|
});
|
|
56843
56710
|
|
|
56844
56711
|
// src/models/createv2evalrequest.ts
|
|
56845
|
-
var
|
|
56712
|
+
var CreateV2EvalRequestMcp$zodSchema, CreateV2EvalRequest$zodSchema;
|
|
56846
56713
|
var init_createv2evalrequest = __esm(() => {
|
|
56847
56714
|
init_zod();
|
|
56848
|
-
|
|
56715
|
+
init_searchgroundingmode();
|
|
56849
56716
|
init_v2inlinemcpdefinition();
|
|
56850
|
-
init_v2savedclireference();
|
|
56851
56717
|
init_v2savedmcpreference();
|
|
56852
|
-
CreateV2EvalRequestCli$zodSchema = union([
|
|
56853
|
-
V2SavedCliReference$zodSchema,
|
|
56854
|
-
V2InlineCliReference$zodSchema
|
|
56855
|
-
]);
|
|
56856
56718
|
CreateV2EvalRequestMcp$zodSchema = union([
|
|
56857
56719
|
V2InlineMcpDefinition$zodSchema,
|
|
56858
56720
|
V2SavedMcpReference$zodSchema
|
|
56859
56721
|
]);
|
|
56860
56722
|
CreateV2EvalRequest$zodSchema = object({
|
|
56861
56723
|
agent: array(string2()).optional().describe("Runnable agents from `GET /v2/agents`. An empty array saves the eval without default agents. CLI clients expose repeatable `--agent`."),
|
|
56862
|
-
|
|
56863
|
-
|
|
56864
|
-
V2InlineCliReference$zodSchema
|
|
56865
|
-
])).optional().describe("Saved CLI references or inline installation commands."),
|
|
56724
|
+
cleanup_commands: array(string2()).optional().describe("Best-effort shell commands run sequentially after agent execution and result capture, before sandbox deletion. CLI clients expose repeatable `--cleanup-command`."),
|
|
56725
|
+
clis: array(string2()).optional().describe("Saved CLI IDs or shell installation commands. UUID values resolve saved CLIs from `GET /v2/clis`; every other value is run as an installation command. CLI clients expose repeatable `--cli`."),
|
|
56866
56726
|
judges: array(string2()).describe("Plain-text success criteria. CLI clients expose this as repeatable `--judge`."),
|
|
56867
56727
|
mcps: array(union([
|
|
56868
56728
|
V2InlineMcpDefinition$zodSchema,
|
|
@@ -56872,15 +56732,17 @@ var init_createv2evalrequest = __esm(() => {
|
|
|
56872
56732
|
persona: string2().optional().describe("Optional perspective applied to the whole eval. It is stored as metadata and does not change prompts or multiply attempts."),
|
|
56873
56733
|
prompts: array(string2()).describe("Task prompts. CLI clients expose this as repeatable `--prompt`."),
|
|
56874
56734
|
runs: int().default(1).describe("Independent attempts for every prompt-agent pair."),
|
|
56735
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
|
|
56736
|
+
setup_commands: array(string2()).optional().describe("Shell commands run sequentially in the prepared repository before the agent starts. CLI clients expose repeatable `--setup-command`."),
|
|
56875
56737
|
tags: array(string2()).optional().describe("Optional labels for organizing the eval. CLI clients may expose this string array as a repeatable `--tag` flag.")
|
|
56876
56738
|
});
|
|
56877
56739
|
});
|
|
56878
56740
|
|
|
56879
56741
|
// src/funcs/evalsV2EvalsCreate.ts
|
|
56880
56742
|
function evalsV2EvalsCreate(client$, request, options) {
|
|
56881
|
-
return new APIPromise($
|
|
56743
|
+
return new APIPromise($do17(client$, request, options));
|
|
56882
56744
|
}
|
|
56883
|
-
async function $
|
|
56745
|
+
async function $do17(client$, request, options) {
|
|
56884
56746
|
const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56885
56747
|
if (!parsed$.ok) {
|
|
56886
56748
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56950,19 +56812,19 @@ var init_evalsV2EvalsCreate = __esm(() => {
|
|
|
56950
56812
|
});
|
|
56951
56813
|
|
|
56952
56814
|
// src/mcp-server/tools/evalsV2EvalsCreate.ts
|
|
56953
|
-
var
|
|
56815
|
+
var args14, tool$evalsV2EvalsCreate;
|
|
56954
56816
|
var init_evalsV2EvalsCreate2 = __esm(() => {
|
|
56955
56817
|
init_evalsV2EvalsCreate();
|
|
56956
56818
|
init_createv2evalrequest();
|
|
56957
56819
|
init_tools();
|
|
56958
|
-
|
|
56820
|
+
args14 = {
|
|
56959
56821
|
request: CreateV2EvalRequest$zodSchema
|
|
56960
56822
|
};
|
|
56961
56823
|
tool$evalsV2EvalsCreate = {
|
|
56962
56824
|
name: "evals-v2-evals-create",
|
|
56963
56825
|
description: `Create Eval
|
|
56964
56826
|
|
|
56965
|
-
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, repeat count, and tags are saved with the eval. Creating the eval does not start a run and does not accept secret environment values.`,
|
|
56827
|
+
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.`,
|
|
56966
56828
|
annotations: {
|
|
56967
56829
|
title: "",
|
|
56968
56830
|
destructiveHint: false,
|
|
@@ -56970,7 +56832,7 @@ Creates a reusable simulation definition with one or more task prompts and judge
|
|
|
56970
56832
|
openWorldHint: false,
|
|
56971
56833
|
readOnlyHint: false
|
|
56972
56834
|
},
|
|
56973
|
-
args:
|
|
56835
|
+
args: args14,
|
|
56974
56836
|
tool: async (client, args, ctx) => {
|
|
56975
56837
|
const [result] = await evalsV2EvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56976
56838
|
if (!result.ok) {
|
|
@@ -56984,15 +56846,34 @@ Creates a reusable simulation definition with one or more task prompts and judge
|
|
|
56984
56846
|
};
|
|
56985
56847
|
});
|
|
56986
56848
|
|
|
56849
|
+
// src/models/v2inlineclireference.ts
|
|
56850
|
+
var V2InlineCliReference$zodSchema;
|
|
56851
|
+
var init_v2inlineclireference = __esm(() => {
|
|
56852
|
+
init_zod();
|
|
56853
|
+
V2InlineCliReference$zodSchema = object({
|
|
56854
|
+
install_command: string2().describe("Shell command to install this CLI before the agent starts.")
|
|
56855
|
+
});
|
|
56856
|
+
});
|
|
56857
|
+
|
|
56858
|
+
// src/models/v2savedclireference.ts
|
|
56859
|
+
var V2SavedCliReference$zodSchema;
|
|
56860
|
+
var init_v2savedclireference = __esm(() => {
|
|
56861
|
+
init_zod();
|
|
56862
|
+
V2SavedCliReference$zodSchema = object({
|
|
56863
|
+
id: string2().describe("Saved CLI ID from `GET /v2/clis`.")
|
|
56864
|
+
});
|
|
56865
|
+
});
|
|
56866
|
+
|
|
56987
56867
|
// src/models/v2eval.ts
|
|
56988
|
-
var
|
|
56868
|
+
var Cli$zodSchema, V2EvalMcp$zodSchema, V2Eval$zodSchema;
|
|
56989
56869
|
var init_v2eval = __esm(() => {
|
|
56990
56870
|
init_zod();
|
|
56871
|
+
init_searchgroundingmode();
|
|
56991
56872
|
init_v2inlineclireference();
|
|
56992
56873
|
init_v2inlinemcpdefinition();
|
|
56993
56874
|
init_v2savedclireference();
|
|
56994
56875
|
init_v2savedmcpreference();
|
|
56995
|
-
|
|
56876
|
+
Cli$zodSchema = union([
|
|
56996
56877
|
V2SavedCliReference$zodSchema,
|
|
56997
56878
|
V2InlineCliReference$zodSchema
|
|
56998
56879
|
]);
|
|
@@ -57002,6 +56883,7 @@ var init_v2eval = __esm(() => {
|
|
|
57002
56883
|
]);
|
|
57003
56884
|
V2Eval$zodSchema = object({
|
|
57004
56885
|
agent: array(string2()).optional(),
|
|
56886
|
+
cleanup_commands: array(string2()).optional(),
|
|
57005
56887
|
clis: array(union([
|
|
57006
56888
|
V2SavedCliReference$zodSchema,
|
|
57007
56889
|
V2InlineCliReference$zodSchema
|
|
@@ -57017,6 +56899,8 @@ var init_v2eval = __esm(() => {
|
|
|
57017
56899
|
persona: string2().nullable().optional(),
|
|
57018
56900
|
prompts: array(string2()).optional(),
|
|
57019
56901
|
runs: int().default(1),
|
|
56902
|
+
search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
|
|
56903
|
+
setup_commands: array(string2()).optional(),
|
|
57020
56904
|
tags: array(string2()).optional(),
|
|
57021
56905
|
updated_at: string2().nullable().optional()
|
|
57022
56906
|
});
|
|
@@ -57039,9 +56923,9 @@ var init_v2evalsdeleteop = __esm(() => {
|
|
|
57039
56923
|
|
|
57040
56924
|
// src/funcs/evalsV2EvalsDelete.ts
|
|
57041
56925
|
function evalsV2EvalsDelete(client$, request, options) {
|
|
57042
|
-
return new APIPromise($
|
|
56926
|
+
return new APIPromise($do18(client$, request, options));
|
|
57043
56927
|
}
|
|
57044
|
-
async function $
|
|
56928
|
+
async function $do18(client$, request, options) {
|
|
57045
56929
|
const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57046
56930
|
if (!parsed$.ok) {
|
|
57047
56931
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57116,12 +57000,12 @@ var init_evalsV2EvalsDelete = __esm(() => {
|
|
|
57116
57000
|
});
|
|
57117
57001
|
|
|
57118
57002
|
// src/mcp-server/tools/evalsV2EvalsDelete.ts
|
|
57119
|
-
var
|
|
57003
|
+
var args15, tool$evalsV2EvalsDelete;
|
|
57120
57004
|
var init_evalsV2EvalsDelete2 = __esm(() => {
|
|
57121
57005
|
init_evalsV2EvalsDelete();
|
|
57122
57006
|
init_v2evalsdeleteop();
|
|
57123
57007
|
init_tools();
|
|
57124
|
-
|
|
57008
|
+
args15 = {
|
|
57125
57009
|
request: V2EvalsDeleteRequest$zodSchema
|
|
57126
57010
|
};
|
|
57127
57011
|
tool$evalsV2EvalsDelete = {
|
|
@@ -57136,7 +57020,7 @@ Permanently deletes an eval and all of its saved configurations.`,
|
|
|
57136
57020
|
openWorldHint: false,
|
|
57137
57021
|
readOnlyHint: false
|
|
57138
57022
|
},
|
|
57139
|
-
args:
|
|
57023
|
+
args: args15,
|
|
57140
57024
|
tool: async (client, args, ctx) => {
|
|
57141
57025
|
const [result] = await evalsV2EvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57142
57026
|
if (!result.ok) {
|
|
@@ -57152,9 +57036,9 @@ Permanently deletes an eval and all of its saved configurations.`,
|
|
|
57152
57036
|
|
|
57153
57037
|
// src/funcs/evalsV2EvalsList.ts
|
|
57154
57038
|
function evalsV2EvalsList(client$, options) {
|
|
57155
|
-
return new APIPromise($
|
|
57039
|
+
return new APIPromise($do19(client$, options));
|
|
57156
57040
|
}
|
|
57157
|
-
async function $
|
|
57041
|
+
async function $do19(client$, options) {
|
|
57158
57042
|
const path$ = pathToFunc("/v2/evals")();
|
|
57159
57043
|
const headers$ = new Headers(compactMap({
|
|
57160
57044
|
Accept: "application/json"
|
|
@@ -57259,9 +57143,9 @@ var init_v2evalsretrieveop = __esm(() => {
|
|
|
57259
57143
|
|
|
57260
57144
|
// src/funcs/evalsV2EvalsRetrieve.ts
|
|
57261
57145
|
function evalsV2EvalsRetrieve(client$, request, options) {
|
|
57262
|
-
return new APIPromise($
|
|
57146
|
+
return new APIPromise($do20(client$, request, options));
|
|
57263
57147
|
}
|
|
57264
|
-
async function $
|
|
57148
|
+
async function $do20(client$, request, options) {
|
|
57265
57149
|
const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57266
57150
|
if (!parsed$.ok) {
|
|
57267
57151
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57336,12 +57220,12 @@ var init_evalsV2EvalsRetrieve = __esm(() => {
|
|
|
57336
57220
|
});
|
|
57337
57221
|
|
|
57338
57222
|
// src/mcp-server/tools/evalsV2EvalsRetrieve.ts
|
|
57339
|
-
var
|
|
57223
|
+
var args16, tool$evalsV2EvalsRetrieve;
|
|
57340
57224
|
var init_evalsV2EvalsRetrieve2 = __esm(() => {
|
|
57341
57225
|
init_evalsV2EvalsRetrieve();
|
|
57342
57226
|
init_v2evalsretrieveop();
|
|
57343
57227
|
init_tools();
|
|
57344
|
-
|
|
57228
|
+
args16 = {
|
|
57345
57229
|
request: V2EvalsRetrieveRequest$zodSchema
|
|
57346
57230
|
};
|
|
57347
57231
|
tool$evalsV2EvalsRetrieve = {
|
|
@@ -57356,7 +57240,7 @@ Returns one reusable eval simulation definition.`,
|
|
|
57356
57240
|
openWorldHint: false,
|
|
57357
57241
|
readOnlyHint: true
|
|
57358
57242
|
},
|
|
57359
|
-
args:
|
|
57243
|
+
args: args16,
|
|
57360
57244
|
tool: async (client, args, ctx) => {
|
|
57361
57245
|
const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57362
57246
|
if (!result.ok) {
|
|
@@ -57371,27 +57255,20 @@ Returns one reusable eval simulation definition.`,
|
|
|
57371
57255
|
});
|
|
57372
57256
|
|
|
57373
57257
|
// src/models/updatev2evalrequest.ts
|
|
57374
|
-
var
|
|
57258
|
+
var UpdateV2EvalRequestMcp$zodSchema, UpdateV2EvalRequest$zodSchema;
|
|
57375
57259
|
var init_updatev2evalrequest = __esm(() => {
|
|
57376
57260
|
init_zod();
|
|
57377
|
-
|
|
57261
|
+
init_searchgroundingmode();
|
|
57378
57262
|
init_v2inlinemcpdefinition();
|
|
57379
|
-
init_v2savedclireference();
|
|
57380
57263
|
init_v2savedmcpreference();
|
|
57381
|
-
UpdateV2EvalRequestCli$zodSchema = union([
|
|
57382
|
-
V2SavedCliReference$zodSchema,
|
|
57383
|
-
V2InlineCliReference$zodSchema
|
|
57384
|
-
]);
|
|
57385
57264
|
UpdateV2EvalRequestMcp$zodSchema = union([
|
|
57386
57265
|
V2InlineMcpDefinition$zodSchema,
|
|
57387
57266
|
V2SavedMcpReference$zodSchema
|
|
57388
57267
|
]);
|
|
57389
57268
|
UpdateV2EvalRequest$zodSchema = object({
|
|
57390
57269
|
agent: array(string2()).nullable().optional(),
|
|
57391
|
-
|
|
57392
|
-
|
|
57393
|
-
V2InlineCliReference$zodSchema
|
|
57394
|
-
])).nullable().optional(),
|
|
57270
|
+
cleanup_commands: array(string2()).nullable().optional().describe("Replacement cleanup commands. Pass an empty array to clear all saved cleanup commands."),
|
|
57271
|
+
clis: array(string2()).nullable().optional().describe("Replacement saved CLI IDs or shell installation commands. UUID values resolve saved CLIs; every other value is an installation command. Pass an empty array to clear all CLIs."),
|
|
57395
57272
|
judges: array(string2()).nullable().optional().describe("Replacement success criteria for the eval."),
|
|
57396
57273
|
mcps: array(union([
|
|
57397
57274
|
V2InlineMcpDefinition$zodSchema,
|
|
@@ -57401,6 +57278,8 @@ var init_updatev2evalrequest = __esm(() => {
|
|
|
57401
57278
|
persona: string2().optional().describe("Replacement eval persona. Pass null to clear it; omit it to leave the saved value unchanged."),
|
|
57402
57279
|
prompts: array(string2()).nullable().optional(),
|
|
57403
57280
|
runs: int().optional(),
|
|
57281
|
+
search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Replacement web-retrieval policy. Omit it to keep the saved value."),
|
|
57282
|
+
setup_commands: array(string2()).nullable().optional().describe("Replacement setup commands. Pass an empty array to clear all saved setup commands."),
|
|
57404
57283
|
tags: array(string2()).nullable().optional().describe("Replacement labels for the eval. Pass an empty array to clear all tags.")
|
|
57405
57284
|
});
|
|
57406
57285
|
});
|
|
@@ -57424,9 +57303,9 @@ var init_v2evalsupdateop = __esm(() => {
|
|
|
57424
57303
|
|
|
57425
57304
|
// src/funcs/evalsV2EvalsUpdate.ts
|
|
57426
57305
|
function evalsV2EvalsUpdate(client$, request, options) {
|
|
57427
|
-
return new APIPromise($
|
|
57306
|
+
return new APIPromise($do21(client$, request, options));
|
|
57428
57307
|
}
|
|
57429
|
-
async function $
|
|
57308
|
+
async function $do21(client$, request, options) {
|
|
57430
57309
|
const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57431
57310
|
if (!parsed$.ok) {
|
|
57432
57311
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57502,19 +57381,19 @@ var init_evalsV2EvalsUpdate = __esm(() => {
|
|
|
57502
57381
|
});
|
|
57503
57382
|
|
|
57504
57383
|
// src/mcp-server/tools/evalsV2EvalsUpdate.ts
|
|
57505
|
-
var
|
|
57384
|
+
var args17, tool$evalsV2EvalsUpdate;
|
|
57506
57385
|
var init_evalsV2EvalsUpdate2 = __esm(() => {
|
|
57507
57386
|
init_evalsV2EvalsUpdate();
|
|
57508
57387
|
init_v2evalsupdateop();
|
|
57509
57388
|
init_tools();
|
|
57510
|
-
|
|
57389
|
+
args17 = {
|
|
57511
57390
|
request: V2EvalsUpdateRequest$zodSchema
|
|
57512
57391
|
};
|
|
57513
57392
|
tool$evalsV2EvalsUpdate = {
|
|
57514
57393
|
name: "evals-v2-evals-update",
|
|
57515
57394
|
description: `Update Eval
|
|
57516
57395
|
|
|
57517
|
-
Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
|
|
57396
|
+
Updates a reusable eval simulation definition. Omitted fields remain unchanged. Empty \`agent\`, \`clis\`, \`mcps\`, \`setup_commands\`, \`cleanup_commands\`, or \`tags\` arrays clear those collections, and \`persona: null\` clears the saved persona.`,
|
|
57518
57397
|
annotations: {
|
|
57519
57398
|
title: "",
|
|
57520
57399
|
destructiveHint: false,
|
|
@@ -57522,7 +57401,7 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
|
|
|
57522
57401
|
openWorldHint: false,
|
|
57523
57402
|
readOnlyHint: false
|
|
57524
57403
|
},
|
|
57525
|
-
args:
|
|
57404
|
+
args: args17,
|
|
57526
57405
|
tool: async (client, args, ctx) => {
|
|
57527
57406
|
const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57528
57407
|
if (!result.ok) {
|
|
@@ -57538,9 +57417,9 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
|
|
|
57538
57417
|
|
|
57539
57418
|
// src/funcs/mcpServersV2MCPServersList.ts
|
|
57540
57419
|
function mcpServersV2MCPServersList(client$, options) {
|
|
57541
|
-
return new APIPromise($
|
|
57420
|
+
return new APIPromise($do22(client$, options));
|
|
57542
57421
|
}
|
|
57543
|
-
async function $
|
|
57422
|
+
async function $do22(client$, options) {
|
|
57544
57423
|
const path$ = pathToFunc("/v2/mcp-servers")();
|
|
57545
57424
|
const headers$ = new Headers(compactMap({
|
|
57546
57425
|
Accept: "application/json"
|
|
@@ -57722,9 +57601,9 @@ var init_v2opportunitieslistop = __esm(() => {
|
|
|
57722
57601
|
|
|
57723
57602
|
// src/funcs/opportunitiesV2OpportunitiesList.ts
|
|
57724
57603
|
function opportunitiesV2OpportunitiesList(client$, request, options) {
|
|
57725
|
-
return new APIPromise($
|
|
57604
|
+
return new APIPromise($do23(client$, request, options));
|
|
57726
57605
|
}
|
|
57727
|
-
async function $
|
|
57606
|
+
async function $do23(client$, request, options) {
|
|
57728
57607
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
57729
57608
|
if (!parsed$.ok) {
|
|
57730
57609
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57802,12 +57681,12 @@ var init_opportunitiesV2OpportunitiesList = __esm(() => {
|
|
|
57802
57681
|
});
|
|
57803
57682
|
|
|
57804
57683
|
// src/mcp-server/tools/opportunitiesV2OpportunitiesList.ts
|
|
57805
|
-
var
|
|
57684
|
+
var args18, tool$opportunitiesV2OpportunitiesList;
|
|
57806
57685
|
var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
|
|
57807
57686
|
init_opportunitiesV2OpportunitiesList();
|
|
57808
57687
|
init_v2opportunitieslistop();
|
|
57809
57688
|
init_tools();
|
|
57810
|
-
|
|
57689
|
+
args18 = {
|
|
57811
57690
|
request: V2OpportunitiesListRequest$zodSchema.optional()
|
|
57812
57691
|
};
|
|
57813
57692
|
tool$opportunitiesV2OpportunitiesList = {
|
|
@@ -57822,7 +57701,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
|
|
|
57822
57701
|
openWorldHint: false,
|
|
57823
57702
|
readOnlyHint: true
|
|
57824
57703
|
},
|
|
57825
|
-
args:
|
|
57704
|
+
args: args18,
|
|
57826
57705
|
tool: async (client, args, ctx) => {
|
|
57827
57706
|
const [result] = await opportunitiesV2OpportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57828
57707
|
if (!result.ok) {
|
|
@@ -57894,9 +57773,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
|
|
|
57894
57773
|
|
|
57895
57774
|
// src/funcs/opportunitiesV2OpportunitiesRetrieve.ts
|
|
57896
57775
|
function opportunitiesV2OpportunitiesRetrieve(client$, request, options) {
|
|
57897
|
-
return new APIPromise($
|
|
57776
|
+
return new APIPromise($do24(client$, request, options));
|
|
57898
57777
|
}
|
|
57899
|
-
async function $
|
|
57778
|
+
async function $do24(client$, request, options) {
|
|
57900
57779
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57901
57780
|
if (!parsed$.ok) {
|
|
57902
57781
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57977,12 +57856,12 @@ var init_opportunitiesV2OpportunitiesRetrieve = __esm(() => {
|
|
|
57977
57856
|
});
|
|
57978
57857
|
|
|
57979
57858
|
// src/mcp-server/tools/opportunitiesV2OpportunitiesRetrieve.ts
|
|
57980
|
-
var
|
|
57859
|
+
var args19, tool$opportunitiesV2OpportunitiesRetrieve;
|
|
57981
57860
|
var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
|
|
57982
57861
|
init_opportunitiesV2OpportunitiesRetrieve();
|
|
57983
57862
|
init_v2opportunitiesretrieveop();
|
|
57984
57863
|
init_tools();
|
|
57985
|
-
|
|
57864
|
+
args19 = {
|
|
57986
57865
|
request: V2OpportunitiesRetrieveRequest$zodSchema
|
|
57987
57866
|
};
|
|
57988
57867
|
tool$opportunitiesV2OpportunitiesRetrieve = {
|
|
@@ -57997,7 +57876,7 @@ Returns one computed opportunity and its execution context for the selected date
|
|
|
57997
57876
|
openWorldHint: false,
|
|
57998
57877
|
readOnlyHint: true
|
|
57999
57878
|
},
|
|
58000
|
-
args:
|
|
57879
|
+
args: args19,
|
|
58001
57880
|
tool: async (client, args, ctx) => {
|
|
58002
57881
|
const [result] = await opportunitiesV2OpportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58003
57882
|
if (!result.ok) {
|
|
@@ -58066,7 +57945,7 @@ var init_v2promptrunsummary = __esm(() => {
|
|
|
58066
57945
|
response_preview: string2().nullable().optional(),
|
|
58067
57946
|
run_date: string2(),
|
|
58068
57947
|
target_kind: V2PromptRunSummaryTargetKind$zodSchema.nullable().optional(),
|
|
58069
|
-
tool_call_count: int().nullable().optional()
|
|
57948
|
+
tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs.")
|
|
58070
57949
|
});
|
|
58071
57950
|
});
|
|
58072
57951
|
|
|
@@ -58105,9 +57984,9 @@ var init_v2promptrunslistop = __esm(() => {
|
|
|
58105
57984
|
|
|
58106
57985
|
// src/funcs/promptsV2PromptRunsList.ts
|
|
58107
57986
|
function promptsV2PromptRunsList(client$, request, options) {
|
|
58108
|
-
return new APIPromise($
|
|
57987
|
+
return new APIPromise($do25(client$, request, options));
|
|
58109
57988
|
}
|
|
58110
|
-
async function $
|
|
57989
|
+
async function $do25(client$, request, options) {
|
|
58111
57990
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
58112
57991
|
if (!parsed$.ok) {
|
|
58113
57992
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58185,19 +58064,19 @@ var init_promptsV2PromptRunsList = __esm(() => {
|
|
|
58185
58064
|
});
|
|
58186
58065
|
|
|
58187
58066
|
// src/mcp-server/tools/promptsV2PromptRunsList.ts
|
|
58188
|
-
var
|
|
58067
|
+
var args20, tool$promptsV2PromptRunsList;
|
|
58189
58068
|
var init_promptsV2PromptRunsList2 = __esm(() => {
|
|
58190
58069
|
init_promptsV2PromptRunsList();
|
|
58191
58070
|
init_v2promptrunslistop();
|
|
58192
58071
|
init_tools();
|
|
58193
|
-
|
|
58072
|
+
args20 = {
|
|
58194
58073
|
request: V2PromptRunsListRequest$zodSchema.optional()
|
|
58195
58074
|
};
|
|
58196
58075
|
tool$promptsV2PromptRunsList = {
|
|
58197
58076
|
name: "prompts-v2-prompt-runs-list",
|
|
58198
58077
|
description: `List Prompt Runs
|
|
58199
58078
|
|
|
58200
|
-
Returns stored prompt runs without exposing raw runtime or provider configuration.
|
|
58079
|
+
Returns stored prompt runs with limit-and-offset pagination, without exposing raw runtime or provider configuration. Filter by prompt, platform, or date range.`,
|
|
58201
58080
|
annotations: {
|
|
58202
58081
|
title: "",
|
|
58203
58082
|
destructiveHint: false,
|
|
@@ -58205,7 +58084,7 @@ Returns stored prompt runs without exposing raw runtime or provider configuratio
|
|
|
58205
58084
|
openWorldHint: false,
|
|
58206
58085
|
readOnlyHint: true
|
|
58207
58086
|
},
|
|
58208
|
-
args:
|
|
58087
|
+
args: args20,
|
|
58209
58088
|
tool: async (client, args, ctx) => {
|
|
58210
58089
|
const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58211
58090
|
if (!result.ok) {
|
|
@@ -58276,6 +58155,7 @@ var init_v2promptrundetail = __esm(() => {
|
|
|
58276
58155
|
V2PromptRunDetail$zodSchema = object({
|
|
58277
58156
|
citation_count: int().default(0),
|
|
58278
58157
|
citations: array(V2PromptRunCitation$zodSchema).optional(),
|
|
58158
|
+
conversation_turns: array(record(string2(), any())).optional().describe("Sanitized interleaved text and tool-call trace captured for this run. It interleaves the agent's `text` turns with `tool_call` turns, so its length is not a tool-call count; use `tool_calls` or `tool_call_count`."),
|
|
58279
58159
|
created_at: string2().nullable().optional(),
|
|
58280
58160
|
harness: string2().nullable().optional().describe("Coding-agent harness for agent runs; otherwise the answer platform identifier."),
|
|
58281
58161
|
id: string2(),
|
|
@@ -58289,7 +58169,8 @@ var init_v2promptrundetail = __esm(() => {
|
|
|
58289
58169
|
response_preview: string2().nullable().optional(),
|
|
58290
58170
|
run_date: string2(),
|
|
58291
58171
|
target_kind: V2PromptRunDetailTargetKind$zodSchema.nullable().optional(),
|
|
58292
|
-
tool_call_count: int().nullable().optional()
|
|
58172
|
+
tool_call_count: int().nullable().optional().describe("Coding-agent tool invocations, counting a call and its result once. Matches the length of `tool_calls` on the detail response; null for answer-engine runs."),
|
|
58173
|
+
tool_calls: array(record(string2(), any())).optional().describe("Sanitized coding-agent tool invocations captured for this run, one entry per invocation with its result merged in.")
|
|
58293
58174
|
});
|
|
58294
58175
|
});
|
|
58295
58176
|
|
|
@@ -58310,9 +58191,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
|
|
|
58310
58191
|
|
|
58311
58192
|
// src/funcs/promptsV2PromptRunsRetrieve.ts
|
|
58312
58193
|
function promptsV2PromptRunsRetrieve(client$, request, options) {
|
|
58313
|
-
return new APIPromise($
|
|
58194
|
+
return new APIPromise($do26(client$, request, options));
|
|
58314
58195
|
}
|
|
58315
|
-
async function $
|
|
58196
|
+
async function $do26(client$, request, options) {
|
|
58316
58197
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58317
58198
|
if (!parsed$.ok) {
|
|
58318
58199
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58387,19 +58268,19 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
|
|
|
58387
58268
|
});
|
|
58388
58269
|
|
|
58389
58270
|
// src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
|
|
58390
|
-
var
|
|
58271
|
+
var args21, tool$promptsV2PromptRunsRetrieve;
|
|
58391
58272
|
var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
|
|
58392
58273
|
init_promptsV2PromptRunsRetrieve();
|
|
58393
58274
|
init_v2promptrunsretrieveop();
|
|
58394
58275
|
init_tools();
|
|
58395
|
-
|
|
58276
|
+
args21 = {
|
|
58396
58277
|
request: V2PromptRunsRetrieveRequest$zodSchema
|
|
58397
58278
|
};
|
|
58398
58279
|
tool$promptsV2PromptRunsRetrieve = {
|
|
58399
58280
|
name: "prompts-v2-prompt-runs-retrieve",
|
|
58400
58281
|
description: `Retrieve Prompt Run
|
|
58401
58282
|
|
|
58402
|
-
Returns one stored prompt run, including
|
|
58283
|
+
Returns one stored prompt run, including mentions, citations, and any sanitized coding-agent trace captured for the run.`,
|
|
58403
58284
|
annotations: {
|
|
58404
58285
|
title: "",
|
|
58405
58286
|
destructiveHint: false,
|
|
@@ -58407,7 +58288,7 @@ Returns one stored prompt run, including its mentions and citations.`,
|
|
|
58407
58288
|
openWorldHint: false,
|
|
58408
58289
|
readOnlyHint: true
|
|
58409
58290
|
},
|
|
58410
|
-
args:
|
|
58291
|
+
args: args21,
|
|
58411
58292
|
tool: async (client, args, ctx) => {
|
|
58412
58293
|
const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58413
58294
|
if (!result.ok) {
|
|
@@ -58444,9 +58325,9 @@ var init_createv2promptsrequest = __esm(() => {
|
|
|
58444
58325
|
|
|
58445
58326
|
// src/funcs/promptsV2PromptsCreate.ts
|
|
58446
58327
|
function promptsV2PromptsCreate(client$, request, options) {
|
|
58447
|
-
return new APIPromise($
|
|
58328
|
+
return new APIPromise($do27(client$, request, options));
|
|
58448
58329
|
}
|
|
58449
|
-
async function $
|
|
58330
|
+
async function $do27(client$, request, options) {
|
|
58450
58331
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58451
58332
|
if (!parsed$.ok) {
|
|
58452
58333
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58516,12 +58397,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
|
|
|
58516
58397
|
});
|
|
58517
58398
|
|
|
58518
58399
|
// src/mcp-server/tools/promptsV2PromptsCreate.ts
|
|
58519
|
-
var
|
|
58400
|
+
var args22, tool$promptsV2PromptsCreate;
|
|
58520
58401
|
var init_promptsV2PromptsCreate2 = __esm(() => {
|
|
58521
58402
|
init_promptsV2PromptsCreate();
|
|
58522
58403
|
init_createv2promptsrequest();
|
|
58523
58404
|
init_tools();
|
|
58524
|
-
|
|
58405
|
+
args22 = {
|
|
58525
58406
|
request: CreateV2PromptsRequest$zodSchema
|
|
58526
58407
|
};
|
|
58527
58408
|
tool$promptsV2PromptsCreate = {
|
|
@@ -58536,7 +58417,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
|
|
|
58536
58417
|
openWorldHint: false,
|
|
58537
58418
|
readOnlyHint: false
|
|
58538
58419
|
},
|
|
58539
|
-
args:
|
|
58420
|
+
args: args22,
|
|
58540
58421
|
tool: async (client, args, ctx) => {
|
|
58541
58422
|
const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58542
58423
|
if (!result.ok) {
|
|
@@ -58576,9 +58457,9 @@ var init_v2promptsdeleteop = __esm(() => {
|
|
|
58576
58457
|
|
|
58577
58458
|
// src/funcs/promptsV2PromptsDelete.ts
|
|
58578
58459
|
function promptsV2PromptsDelete(client$, request, options) {
|
|
58579
|
-
return new APIPromise($
|
|
58460
|
+
return new APIPromise($do28(client$, request, options));
|
|
58580
58461
|
}
|
|
58581
|
-
async function $
|
|
58462
|
+
async function $do28(client$, request, options) {
|
|
58582
58463
|
const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58583
58464
|
if (!parsed$.ok) {
|
|
58584
58465
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58653,12 +58534,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
|
|
|
58653
58534
|
});
|
|
58654
58535
|
|
|
58655
58536
|
// src/mcp-server/tools/promptsV2PromptsDelete.ts
|
|
58656
|
-
var
|
|
58537
|
+
var args23, tool$promptsV2PromptsDelete;
|
|
58657
58538
|
var init_promptsV2PromptsDelete2 = __esm(() => {
|
|
58658
58539
|
init_promptsV2PromptsDelete();
|
|
58659
58540
|
init_v2promptsdeleteop();
|
|
58660
58541
|
init_tools();
|
|
58661
|
-
|
|
58542
|
+
args23 = {
|
|
58662
58543
|
request: V2PromptsDeleteRequest$zodSchema
|
|
58663
58544
|
};
|
|
58664
58545
|
tool$promptsV2PromptsDelete = {
|
|
@@ -58673,7 +58554,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
58673
58554
|
openWorldHint: false,
|
|
58674
58555
|
readOnlyHint: false
|
|
58675
58556
|
},
|
|
58676
|
-
args:
|
|
58557
|
+
args: args23,
|
|
58677
58558
|
tool: async (client, args, ctx) => {
|
|
58678
58559
|
const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58679
58560
|
if (!result.ok) {
|
|
@@ -58783,9 +58664,9 @@ var init_v2promptslistop = __esm(() => {
|
|
|
58783
58664
|
|
|
58784
58665
|
// src/funcs/promptsV2PromptsList.ts
|
|
58785
58666
|
function promptsV2PromptsList(client$, request, options) {
|
|
58786
|
-
return new APIPromise($
|
|
58667
|
+
return new APIPromise($do29(client$, request, options));
|
|
58787
58668
|
}
|
|
58788
|
-
async function $
|
|
58669
|
+
async function $do29(client$, request, options) {
|
|
58789
58670
|
const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
58790
58671
|
if (!parsed$.ok) {
|
|
58791
58672
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58860,12 +58741,12 @@ var init_promptsV2PromptsList = __esm(() => {
|
|
|
58860
58741
|
});
|
|
58861
58742
|
|
|
58862
58743
|
// src/mcp-server/tools/promptsV2PromptsList.ts
|
|
58863
|
-
var
|
|
58744
|
+
var args24, tool$promptsV2PromptsList;
|
|
58864
58745
|
var init_promptsV2PromptsList2 = __esm(() => {
|
|
58865
58746
|
init_promptsV2PromptsList();
|
|
58866
58747
|
init_v2promptslistop();
|
|
58867
58748
|
init_tools();
|
|
58868
|
-
|
|
58749
|
+
args24 = {
|
|
58869
58750
|
request: V2PromptsListRequest$zodSchema.optional()
|
|
58870
58751
|
};
|
|
58871
58752
|
tool$promptsV2PromptsList = {
|
|
@@ -58880,7 +58761,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
|
|
|
58880
58761
|
openWorldHint: false,
|
|
58881
58762
|
readOnlyHint: true
|
|
58882
58763
|
},
|
|
58883
|
-
args:
|
|
58764
|
+
args: args24,
|
|
58884
58765
|
tool: async (client, args, ctx) => {
|
|
58885
58766
|
const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58886
58767
|
if (!result.ok) {
|
|
@@ -58911,9 +58792,9 @@ var init_v2promptsretrieveop = __esm(() => {
|
|
|
58911
58792
|
|
|
58912
58793
|
// src/funcs/promptsV2PromptsRetrieve.ts
|
|
58913
58794
|
function promptsV2PromptsRetrieve(client$, request, options) {
|
|
58914
|
-
return new APIPromise($
|
|
58795
|
+
return new APIPromise($do30(client$, request, options));
|
|
58915
58796
|
}
|
|
58916
|
-
async function $
|
|
58797
|
+
async function $do30(client$, request, options) {
|
|
58917
58798
|
const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58918
58799
|
if (!parsed$.ok) {
|
|
58919
58800
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58988,12 +58869,12 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
|
|
|
58988
58869
|
});
|
|
58989
58870
|
|
|
58990
58871
|
// src/mcp-server/tools/promptsV2PromptsRetrieve.ts
|
|
58991
|
-
var
|
|
58872
|
+
var args25, tool$promptsV2PromptsRetrieve;
|
|
58992
58873
|
var init_promptsV2PromptsRetrieve2 = __esm(() => {
|
|
58993
58874
|
init_promptsV2PromptsRetrieve();
|
|
58994
58875
|
init_v2promptsretrieveop();
|
|
58995
58876
|
init_tools();
|
|
58996
|
-
|
|
58877
|
+
args25 = {
|
|
58997
58878
|
request: V2PromptsRetrieveRequest$zodSchema
|
|
58998
58879
|
};
|
|
58999
58880
|
tool$promptsV2PromptsRetrieve = {
|
|
@@ -59008,7 +58889,7 @@ Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
|
|
|
59008
58889
|
openWorldHint: false,
|
|
59009
58890
|
readOnlyHint: true
|
|
59010
58891
|
},
|
|
59011
|
-
args:
|
|
58892
|
+
args: args25,
|
|
59012
58893
|
tool: async (client, args, ctx) => {
|
|
59013
58894
|
const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59014
58895
|
if (!result.ok) {
|
|
@@ -59057,9 +58938,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
59057
58938
|
|
|
59058
58939
|
// src/funcs/promptsV2PromptsUpdate.ts
|
|
59059
58940
|
function promptsV2PromptsUpdate(client$, request, options) {
|
|
59060
|
-
return new APIPromise($
|
|
58941
|
+
return new APIPromise($do31(client$, request, options));
|
|
59061
58942
|
}
|
|
59062
|
-
async function $
|
|
58943
|
+
async function $do31(client$, request, options) {
|
|
59063
58944
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59064
58945
|
if (!parsed$.ok) {
|
|
59065
58946
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59135,12 +59016,12 @@ var init_promptsV2PromptsUpdate = __esm(() => {
|
|
|
59135
59016
|
});
|
|
59136
59017
|
|
|
59137
59018
|
// src/mcp-server/tools/promptsV2PromptsUpdate.ts
|
|
59138
|
-
var
|
|
59019
|
+
var args26, tool$promptsV2PromptsUpdate;
|
|
59139
59020
|
var init_promptsV2PromptsUpdate2 = __esm(() => {
|
|
59140
59021
|
init_promptsV2PromptsUpdate();
|
|
59141
59022
|
init_v2promptsupdateop();
|
|
59142
59023
|
init_tools();
|
|
59143
|
-
|
|
59024
|
+
args26 = {
|
|
59144
59025
|
request: V2PromptsUpdateRequest$zodSchema
|
|
59145
59026
|
};
|
|
59146
59027
|
tool$promptsV2PromptsUpdate = {
|
|
@@ -59155,7 +59036,7 @@ Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields r
|
|
|
59155
59036
|
openWorldHint: false,
|
|
59156
59037
|
readOnlyHint: false
|
|
59157
59038
|
},
|
|
59158
|
-
args:
|
|
59039
|
+
args: args26,
|
|
59159
59040
|
tool: async (client, args, ctx) => {
|
|
59160
59041
|
const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59161
59042
|
if (!result.ok) {
|
|
@@ -59180,9 +59061,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
59180
59061
|
|
|
59181
59062
|
// src/funcs/promptsV2PromptTopicsCreate.ts
|
|
59182
59063
|
function promptsV2PromptTopicsCreate(client$, request, options) {
|
|
59183
|
-
return new APIPromise($
|
|
59064
|
+
return new APIPromise($do32(client$, request, options));
|
|
59184
59065
|
}
|
|
59185
|
-
async function $
|
|
59066
|
+
async function $do32(client$, request, options) {
|
|
59186
59067
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59187
59068
|
if (!parsed$.ok) {
|
|
59188
59069
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59252,12 +59133,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
|
|
|
59252
59133
|
});
|
|
59253
59134
|
|
|
59254
59135
|
// src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
|
|
59255
|
-
var
|
|
59136
|
+
var args27, tool$promptsV2PromptTopicsCreate;
|
|
59256
59137
|
var init_promptsV2PromptTopicsCreate2 = __esm(() => {
|
|
59257
59138
|
init_promptsV2PromptTopicsCreate();
|
|
59258
59139
|
init_createprompttopicrequest();
|
|
59259
59140
|
init_tools();
|
|
59260
|
-
|
|
59141
|
+
args27 = {
|
|
59261
59142
|
request: CreatePromptTopicRequest$zodSchema
|
|
59262
59143
|
};
|
|
59263
59144
|
tool$promptsV2PromptTopicsCreate = {
|
|
@@ -59272,7 +59153,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
59272
59153
|
openWorldHint: false,
|
|
59273
59154
|
readOnlyHint: false
|
|
59274
59155
|
},
|
|
59275
|
-
args:
|
|
59156
|
+
args: args27,
|
|
59276
59157
|
tool: async (client, args, ctx) => {
|
|
59277
59158
|
const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59278
59159
|
if (!result.ok) {
|
|
@@ -59304,9 +59185,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
59304
59185
|
|
|
59305
59186
|
// src/funcs/promptsV2PromptTopicsDelete.ts
|
|
59306
59187
|
function promptsV2PromptTopicsDelete(client$, request, options) {
|
|
59307
|
-
return new APIPromise($
|
|
59188
|
+
return new APIPromise($do33(client$, request, options));
|
|
59308
59189
|
}
|
|
59309
|
-
async function $
|
|
59190
|
+
async function $do33(client$, request, options) {
|
|
59310
59191
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59311
59192
|
if (!parsed$.ok) {
|
|
59312
59193
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59385,12 +59266,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
|
|
|
59385
59266
|
});
|
|
59386
59267
|
|
|
59387
59268
|
// src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
|
|
59388
|
-
var
|
|
59269
|
+
var args28, tool$promptsV2PromptTopicsDelete;
|
|
59389
59270
|
var init_promptsV2PromptTopicsDelete2 = __esm(() => {
|
|
59390
59271
|
init_promptsV2PromptTopicsDelete();
|
|
59391
59272
|
init_v2prompttopicsdeleteop();
|
|
59392
59273
|
init_tools();
|
|
59393
|
-
|
|
59274
|
+
args28 = {
|
|
59394
59275
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
59395
59276
|
};
|
|
59396
59277
|
tool$promptsV2PromptTopicsDelete = {
|
|
@@ -59405,7 +59286,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
59405
59286
|
openWorldHint: false,
|
|
59406
59287
|
readOnlyHint: false
|
|
59407
59288
|
},
|
|
59408
|
-
args:
|
|
59289
|
+
args: args28,
|
|
59409
59290
|
tool: async (client, args, ctx) => {
|
|
59410
59291
|
const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59411
59292
|
if (!result.ok) {
|
|
@@ -59421,9 +59302,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
59421
59302
|
|
|
59422
59303
|
// src/funcs/promptsV2PromptTopicsList.ts
|
|
59423
59304
|
function promptsV2PromptTopicsList(client$, options) {
|
|
59424
|
-
return new APIPromise($
|
|
59305
|
+
return new APIPromise($do34(client$, options));
|
|
59425
59306
|
}
|
|
59426
|
-
async function $
|
|
59307
|
+
async function $do34(client$, options) {
|
|
59427
59308
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
59428
59309
|
const headers$ = new Headers(compactMap({
|
|
59429
59310
|
Accept: "application/json"
|
|
@@ -59539,9 +59420,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
59539
59420
|
|
|
59540
59421
|
// src/funcs/promptsV2PromptTopicsUpdate.ts
|
|
59541
59422
|
function promptsV2PromptTopicsUpdate(client$, request, options) {
|
|
59542
|
-
return new APIPromise($
|
|
59423
|
+
return new APIPromise($do35(client$, request, options));
|
|
59543
59424
|
}
|
|
59544
|
-
async function $
|
|
59425
|
+
async function $do35(client$, request, options) {
|
|
59545
59426
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59546
59427
|
if (!parsed$.ok) {
|
|
59547
59428
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59617,12 +59498,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
|
|
|
59617
59498
|
});
|
|
59618
59499
|
|
|
59619
59500
|
// src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
|
|
59620
|
-
var
|
|
59501
|
+
var args29, tool$promptsV2PromptTopicsUpdate;
|
|
59621
59502
|
var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
|
|
59622
59503
|
init_promptsV2PromptTopicsUpdate();
|
|
59623
59504
|
init_v2prompttopicsupdateop();
|
|
59624
59505
|
init_tools();
|
|
59625
|
-
|
|
59506
|
+
args29 = {
|
|
59626
59507
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
59627
59508
|
};
|
|
59628
59509
|
tool$promptsV2PromptTopicsUpdate = {
|
|
@@ -59637,7 +59518,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
59637
59518
|
openWorldHint: false,
|
|
59638
59519
|
readOnlyHint: false
|
|
59639
59520
|
},
|
|
59640
|
-
args:
|
|
59521
|
+
args: args29,
|
|
59641
59522
|
tool: async (client, args, ctx) => {
|
|
59642
59523
|
const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59643
59524
|
if (!result.ok) {
|
|
@@ -59680,9 +59561,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
59680
59561
|
|
|
59681
59562
|
// src/funcs/repositoriesV2RepositoriesCreate.ts
|
|
59682
59563
|
function repositoriesV2RepositoriesCreate(client$, request, options) {
|
|
59683
|
-
return new APIPromise($
|
|
59564
|
+
return new APIPromise($do36(client$, request, options));
|
|
59684
59565
|
}
|
|
59685
|
-
async function $
|
|
59566
|
+
async function $do36(client$, request, options) {
|
|
59686
59567
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59687
59568
|
if (!parsed$.ok) {
|
|
59688
59569
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59752,12 +59633,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
|
|
|
59752
59633
|
});
|
|
59753
59634
|
|
|
59754
59635
|
// src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
|
|
59755
|
-
var
|
|
59636
|
+
var args30, tool$repositoriesV2RepositoriesCreate;
|
|
59756
59637
|
var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
|
|
59757
59638
|
init_repositoriesV2RepositoriesCreate();
|
|
59758
59639
|
init_createv2repositoryrequest();
|
|
59759
59640
|
init_tools();
|
|
59760
|
-
|
|
59641
|
+
args30 = {
|
|
59761
59642
|
request: CreateV2RepositoryRequest$zodSchema
|
|
59762
59643
|
};
|
|
59763
59644
|
tool$repositoriesV2RepositoriesCreate = {
|
|
@@ -59772,7 +59653,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
59772
59653
|
openWorldHint: false,
|
|
59773
59654
|
readOnlyHint: false
|
|
59774
59655
|
},
|
|
59775
|
-
args:
|
|
59656
|
+
args: args30,
|
|
59776
59657
|
tool: async (client, args, ctx) => {
|
|
59777
59658
|
const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59778
59659
|
if (!result.ok) {
|
|
@@ -59838,9 +59719,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
59838
59719
|
|
|
59839
59720
|
// src/funcs/repositoriesV2RepositoriesDelete.ts
|
|
59840
59721
|
function repositoriesV2RepositoriesDelete(client$, request, options) {
|
|
59841
|
-
return new APIPromise($
|
|
59722
|
+
return new APIPromise($do37(client$, request, options));
|
|
59842
59723
|
}
|
|
59843
|
-
async function $
|
|
59724
|
+
async function $do37(client$, request, options) {
|
|
59844
59725
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59845
59726
|
if (!parsed$.ok) {
|
|
59846
59727
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59915,12 +59796,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
|
|
|
59915
59796
|
});
|
|
59916
59797
|
|
|
59917
59798
|
// src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
|
|
59918
|
-
var
|
|
59799
|
+
var args31, tool$repositoriesV2RepositoriesDelete;
|
|
59919
59800
|
var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
|
|
59920
59801
|
init_repositoriesV2RepositoriesDelete();
|
|
59921
59802
|
init_v2repositoriesdeleteop();
|
|
59922
59803
|
init_tools();
|
|
59923
|
-
|
|
59804
|
+
args31 = {
|
|
59924
59805
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
59925
59806
|
};
|
|
59926
59807
|
tool$repositoriesV2RepositoriesDelete = {
|
|
@@ -59935,7 +59816,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
59935
59816
|
openWorldHint: false,
|
|
59936
59817
|
readOnlyHint: false
|
|
59937
59818
|
},
|
|
59938
|
-
args:
|
|
59819
|
+
args: args31,
|
|
59939
59820
|
tool: async (client, args, ctx) => {
|
|
59940
59821
|
const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59941
59822
|
if (!result.ok) {
|
|
@@ -59951,9 +59832,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
59951
59832
|
|
|
59952
59833
|
// src/funcs/repositoriesV2RepositoriesList.ts
|
|
59953
59834
|
function repositoriesV2RepositoriesList(client$, options) {
|
|
59954
|
-
return new APIPromise($
|
|
59835
|
+
return new APIPromise($do38(client$, options));
|
|
59955
59836
|
}
|
|
59956
|
-
async function $
|
|
59837
|
+
async function $do38(client$, options) {
|
|
59957
59838
|
const path$ = pathToFunc("/v2/repositories")();
|
|
59958
59839
|
const headers$ = new Headers(compactMap({
|
|
59959
59840
|
Accept: "application/json"
|
|
@@ -60058,9 +59939,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
60058
59939
|
|
|
60059
59940
|
// src/funcs/repositoriesV2RepositoriesRetrieve.ts
|
|
60060
59941
|
function repositoriesV2RepositoriesRetrieve(client$, request, options) {
|
|
60061
|
-
return new APIPromise($
|
|
59942
|
+
return new APIPromise($do39(client$, request, options));
|
|
60062
59943
|
}
|
|
60063
|
-
async function $
|
|
59944
|
+
async function $do39(client$, request, options) {
|
|
60064
59945
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60065
59946
|
if (!parsed$.ok) {
|
|
60066
59947
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60135,12 +60016,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
|
|
|
60135
60016
|
});
|
|
60136
60017
|
|
|
60137
60018
|
// src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
|
|
60138
|
-
var
|
|
60019
|
+
var args32, tool$repositoriesV2RepositoriesRetrieve;
|
|
60139
60020
|
var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
|
|
60140
60021
|
init_repositoriesV2RepositoriesRetrieve();
|
|
60141
60022
|
init_v2repositoriesretrieveop();
|
|
60142
60023
|
init_tools();
|
|
60143
|
-
|
|
60024
|
+
args32 = {
|
|
60144
60025
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
60145
60026
|
};
|
|
60146
60027
|
tool$repositoriesV2RepositoriesRetrieve = {
|
|
@@ -60155,7 +60036,7 @@ Returns one reusable repository workspace.`,
|
|
|
60155
60036
|
openWorldHint: false,
|
|
60156
60037
|
readOnlyHint: true
|
|
60157
60038
|
},
|
|
60158
|
-
args:
|
|
60039
|
+
args: args32,
|
|
60159
60040
|
tool: async (client, args, ctx) => {
|
|
60160
60041
|
const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60161
60042
|
if (!result.ok) {
|
|
@@ -60215,9 +60096,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
60215
60096
|
|
|
60216
60097
|
// src/funcs/repositoriesV2RepositoriesUpdate.ts
|
|
60217
60098
|
function repositoriesV2RepositoriesUpdate(client$, request, options) {
|
|
60218
|
-
return new APIPromise($
|
|
60099
|
+
return new APIPromise($do40(client$, request, options));
|
|
60219
60100
|
}
|
|
60220
|
-
async function $
|
|
60101
|
+
async function $do40(client$, request, options) {
|
|
60221
60102
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60222
60103
|
if (!parsed$.ok) {
|
|
60223
60104
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60293,12 +60174,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
|
|
|
60293
60174
|
});
|
|
60294
60175
|
|
|
60295
60176
|
// src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
|
|
60296
|
-
var
|
|
60177
|
+
var args33, tool$repositoriesV2RepositoriesUpdate;
|
|
60297
60178
|
var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
|
|
60298
60179
|
init_repositoriesV2RepositoriesUpdate();
|
|
60299
60180
|
init_v2repositoriesupdateop();
|
|
60300
60181
|
init_tools();
|
|
60301
|
-
|
|
60182
|
+
args33 = {
|
|
60302
60183
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
60303
60184
|
};
|
|
60304
60185
|
tool$repositoriesV2RepositoriesUpdate = {
|
|
@@ -60313,7 +60194,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
60313
60194
|
openWorldHint: false,
|
|
60314
60195
|
readOnlyHint: false
|
|
60315
60196
|
},
|
|
60316
|
-
args:
|
|
60197
|
+
args: args33,
|
|
60317
60198
|
tool: async (client, args, ctx) => {
|
|
60318
60199
|
const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60319
60200
|
if (!result.ok) {
|
|
@@ -60329,9 +60210,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
60329
60210
|
|
|
60330
60211
|
// src/funcs/siteAuditsV2SiteAuditsList.ts
|
|
60331
60212
|
function siteAuditsV2SiteAuditsList(client$, options) {
|
|
60332
|
-
return new APIPromise($
|
|
60213
|
+
return new APIPromise($do41(client$, options));
|
|
60333
60214
|
}
|
|
60334
|
-
async function $
|
|
60215
|
+
async function $do41(client$, options) {
|
|
60335
60216
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
60336
60217
|
const headers$ = new Headers(compactMap({
|
|
60337
60218
|
Accept: "application/json"
|
|
@@ -60472,9 +60353,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
60472
60353
|
|
|
60473
60354
|
// src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
|
|
60474
60355
|
function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
|
|
60475
|
-
return new APIPromise($
|
|
60356
|
+
return new APIPromise($do42(client$, request, options));
|
|
60476
60357
|
}
|
|
60477
|
-
async function $
|
|
60358
|
+
async function $do42(client$, request, options) {
|
|
60478
60359
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60479
60360
|
if (!parsed$.ok) {
|
|
60480
60361
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60549,12 +60430,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
|
|
|
60549
60430
|
});
|
|
60550
60431
|
|
|
60551
60432
|
// src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
|
|
60552
|
-
var
|
|
60433
|
+
var args34, tool$siteAuditsV2SiteAuditsRetrieve;
|
|
60553
60434
|
var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
|
|
60554
60435
|
init_siteAuditsV2SiteAuditsRetrieve();
|
|
60555
60436
|
init_v2siteauditsretrieveop();
|
|
60556
60437
|
init_tools();
|
|
60557
|
-
|
|
60438
|
+
args34 = {
|
|
60558
60439
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
60559
60440
|
};
|
|
60560
60441
|
tool$siteAuditsV2SiteAuditsRetrieve = {
|
|
@@ -60569,7 +60450,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
60569
60450
|
openWorldHint: false,
|
|
60570
60451
|
readOnlyHint: true
|
|
60571
60452
|
},
|
|
60572
|
-
args:
|
|
60453
|
+
args: args34,
|
|
60573
60454
|
tool: async (client, args, ctx) => {
|
|
60574
60455
|
const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60575
60456
|
if (!result.ok) {
|
|
@@ -60585,9 +60466,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
60585
60466
|
|
|
60586
60467
|
// src/funcs/skillsV2SkillsList.ts
|
|
60587
60468
|
function skillsV2SkillsList(client$, options) {
|
|
60588
|
-
return new APIPromise($
|
|
60469
|
+
return new APIPromise($do43(client$, options));
|
|
60589
60470
|
}
|
|
60590
|
-
async function $
|
|
60471
|
+
async function $do43(client$, options) {
|
|
60591
60472
|
const path$ = pathToFunc("/v2/skills")();
|
|
60592
60473
|
const headers$ = new Headers(compactMap({
|
|
60593
60474
|
Accept: "application/json"
|
|
@@ -60677,9 +60558,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
60677
60558
|
|
|
60678
60559
|
// src/funcs/statusV2AuthStatusGet.ts
|
|
60679
60560
|
function statusV2AuthStatusGet(client$, options) {
|
|
60680
|
-
return new APIPromise($
|
|
60561
|
+
return new APIPromise($do44(client$, options));
|
|
60681
60562
|
}
|
|
60682
|
-
async function $
|
|
60563
|
+
async function $do44(client$, options) {
|
|
60683
60564
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
60684
60565
|
const headers$ = new Headers(compactMap({
|
|
60685
60566
|
Accept: "application/json"
|
|
@@ -60769,9 +60650,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
60769
60650
|
|
|
60770
60651
|
// src/funcs/statusV2StatusGet.ts
|
|
60771
60652
|
function statusV2StatusGet(client$, options) {
|
|
60772
|
-
return new APIPromise($
|
|
60653
|
+
return new APIPromise($do45(client$, options));
|
|
60773
60654
|
}
|
|
60774
|
-
async function $
|
|
60655
|
+
async function $do45(client$, options) {
|
|
60775
60656
|
const path$ = pathToFunc("/v2/status")();
|
|
60776
60657
|
const headers$ = new Headers(compactMap({
|
|
60777
60658
|
Accept: "application/json"
|
|
@@ -60881,11 +60762,11 @@ var init_v2publictask = __esm(() => {
|
|
|
60881
60762
|
priority: string2().nullable().optional(),
|
|
60882
60763
|
rank: int().describe("Sort order within the batch, ascending; values need not start at 1."),
|
|
60883
60764
|
reasoning: string2().nullable().optional(),
|
|
60884
|
-
score: number2(),
|
|
60765
|
+
score: number2().nullable().optional().describe("Planner impact score; manually created tasks may be unscored."),
|
|
60885
60766
|
source: string2().nullable().optional(),
|
|
60886
60767
|
source_key: string2().describe("A finding key namespaced by source, such as `api_perf:https://example.com/docs/cli`."),
|
|
60887
60768
|
source_refs: record(string2(), any()).optional().describe("Source references needed to understand or execute the task."),
|
|
60888
|
-
source_type: string2().describe("A free-form source type such as `api_performance`;
|
|
60769
|
+
source_type: string2().nullable().optional().describe("A free-form source type such as `api_performance`; manually created tasks may not have a source."),
|
|
60889
60770
|
status: string2().describe("The workflow status. New tasks start as `new`; `added_to_sheet` and `snoozed` tasks are listed only when `status=all`."),
|
|
60890
60771
|
task_type: string2().describe("A free-form label such as `Redirect` or `Docs`; this field is not an enum."),
|
|
60891
60772
|
title: string2(),
|
|
@@ -60910,11 +60791,11 @@ var init_v2publictask = __esm(() => {
|
|
|
60910
60791
|
priority: nullable(string2()).optional(),
|
|
60911
60792
|
rank: int(),
|
|
60912
60793
|
reasoning: nullable(string2()).optional(),
|
|
60913
|
-
score: number2(),
|
|
60794
|
+
score: nullable(number2()).optional(),
|
|
60914
60795
|
source: nullable(string2()).optional(),
|
|
60915
60796
|
source_key: string2(),
|
|
60916
60797
|
source_refs: record(string2(), any()).optional(),
|
|
60917
|
-
source_type: string2(),
|
|
60798
|
+
source_type: nullable(string2()).optional(),
|
|
60918
60799
|
status: string2(),
|
|
60919
60800
|
task_type: string2(),
|
|
60920
60801
|
title: string2(),
|
|
@@ -60991,9 +60872,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
60991
60872
|
|
|
60992
60873
|
// src/funcs/tasksV2TasksList.ts
|
|
60993
60874
|
function tasksV2TasksList(client$, request, options) {
|
|
60994
|
-
return new APIPromise($
|
|
60875
|
+
return new APIPromise($do46(client$, request, options));
|
|
60995
60876
|
}
|
|
60996
|
-
async function $
|
|
60877
|
+
async function $do46(client$, request, options) {
|
|
60997
60878
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
60998
60879
|
if (!parsed$.ok) {
|
|
60999
60880
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61067,12 +60948,12 @@ var init_tasksV2TasksList = __esm(() => {
|
|
|
61067
60948
|
});
|
|
61068
60949
|
|
|
61069
60950
|
// src/mcp-server/tools/tasksV2TasksList.ts
|
|
61070
|
-
var
|
|
60951
|
+
var args35, tool$tasksV2TasksList;
|
|
61071
60952
|
var init_tasksV2TasksList2 = __esm(() => {
|
|
61072
60953
|
init_tasksV2TasksList();
|
|
61073
60954
|
init_v2taskslistop();
|
|
61074
60955
|
init_tools();
|
|
61075
|
-
|
|
60956
|
+
args35 = {
|
|
61076
60957
|
request: V2TasksListRequest$zodSchema.optional()
|
|
61077
60958
|
};
|
|
61078
60959
|
tool$tasksV2TasksList = {
|
|
@@ -61087,7 +60968,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
61087
60968
|
openWorldHint: false,
|
|
61088
60969
|
readOnlyHint: true
|
|
61089
60970
|
},
|
|
61090
|
-
args:
|
|
60971
|
+
args: args35,
|
|
61091
60972
|
tool: async (client, args, ctx) => {
|
|
61092
60973
|
const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61093
60974
|
if (!result.ok) {
|
|
@@ -61118,9 +60999,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
61118
60999
|
|
|
61119
61000
|
// src/funcs/tasksV2TasksRetrieve.ts
|
|
61120
61001
|
function tasksV2TasksRetrieve(client$, request, options) {
|
|
61121
|
-
return new APIPromise($
|
|
61002
|
+
return new APIPromise($do47(client$, request, options));
|
|
61122
61003
|
}
|
|
61123
|
-
async function $
|
|
61004
|
+
async function $do47(client$, request, options) {
|
|
61124
61005
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61125
61006
|
if (!parsed$.ok) {
|
|
61126
61007
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61195,12 +61076,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
|
|
|
61195
61076
|
});
|
|
61196
61077
|
|
|
61197
61078
|
// src/mcp-server/tools/tasksV2TasksRetrieve.ts
|
|
61198
|
-
var
|
|
61079
|
+
var args36, tool$tasksV2TasksRetrieve;
|
|
61199
61080
|
var init_tasksV2TasksRetrieve2 = __esm(() => {
|
|
61200
61081
|
init_tasksV2TasksRetrieve();
|
|
61201
61082
|
init_v2tasksretrieveop();
|
|
61202
61083
|
init_tools();
|
|
61203
|
-
|
|
61084
|
+
args36 = {
|
|
61204
61085
|
request: V2TasksRetrieveRequest$zodSchema
|
|
61205
61086
|
};
|
|
61206
61087
|
tool$tasksV2TasksRetrieve = {
|
|
@@ -61215,7 +61096,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
61215
61096
|
openWorldHint: false,
|
|
61216
61097
|
readOnlyHint: true
|
|
61217
61098
|
},
|
|
61218
|
-
args:
|
|
61099
|
+
args: args36,
|
|
61219
61100
|
tool: async (client, args, ctx) => {
|
|
61220
61101
|
const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61221
61102
|
if (!result.ok) {
|
|
@@ -61278,9 +61159,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
61278
61159
|
|
|
61279
61160
|
// src/funcs/tasksV2TasksUpdate.ts
|
|
61280
61161
|
function tasksV2TasksUpdate(client$, request, options) {
|
|
61281
|
-
return new APIPromise($
|
|
61162
|
+
return new APIPromise($do48(client$, request, options));
|
|
61282
61163
|
}
|
|
61283
|
-
async function $
|
|
61164
|
+
async function $do48(client$, request, options) {
|
|
61284
61165
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
61285
61166
|
if (!parsed$.ok) {
|
|
61286
61167
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61356,12 +61237,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
|
|
|
61356
61237
|
});
|
|
61357
61238
|
|
|
61358
61239
|
// src/mcp-server/tools/tasksV2TasksUpdate.ts
|
|
61359
|
-
var
|
|
61240
|
+
var args37, tool$tasksV2TasksUpdate;
|
|
61360
61241
|
var init_tasksV2TasksUpdate2 = __esm(() => {
|
|
61361
61242
|
init_tasksV2TasksUpdate();
|
|
61362
61243
|
init_v2tasksupdateop();
|
|
61363
61244
|
init_tools();
|
|
61364
|
-
|
|
61245
|
+
args37 = {
|
|
61365
61246
|
request: V2TasksUpdateRequest$zodSchema
|
|
61366
61247
|
};
|
|
61367
61248
|
tool$tasksV2TasksUpdate = {
|
|
@@ -61376,7 +61257,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
61376
61257
|
openWorldHint: false,
|
|
61377
61258
|
readOnlyHint: false
|
|
61378
61259
|
},
|
|
61379
|
-
args:
|
|
61260
|
+
args: args37,
|
|
61380
61261
|
tool: async (client, args, ctx) => {
|
|
61381
61262
|
const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61382
61263
|
if (!result.ok) {
|
|
@@ -61464,9 +61345,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
61464
61345
|
|
|
61465
61346
|
// src/funcs/visibilityV2VisibilityCitationsList.ts
|
|
61466
61347
|
function visibilityV2VisibilityCitationsList(client$, request, options) {
|
|
61467
|
-
return new APIPromise($
|
|
61348
|
+
return new APIPromise($do49(client$, request, options));
|
|
61468
61349
|
}
|
|
61469
|
-
async function $
|
|
61350
|
+
async function $do49(client$, request, options) {
|
|
61470
61351
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61471
61352
|
if (!parsed$.ok) {
|
|
61472
61353
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61543,12 +61424,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
|
|
|
61543
61424
|
});
|
|
61544
61425
|
|
|
61545
61426
|
// src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
|
|
61546
|
-
var
|
|
61427
|
+
var args38, tool$visibilityV2VisibilityCitationsList;
|
|
61547
61428
|
var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
|
|
61548
61429
|
init_visibilityV2VisibilityCitationsList();
|
|
61549
61430
|
init_v2visibilitycitationslistop();
|
|
61550
61431
|
init_tools();
|
|
61551
|
-
|
|
61432
|
+
args38 = {
|
|
61552
61433
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
61553
61434
|
};
|
|
61554
61435
|
tool$visibilityV2VisibilityCitationsList = {
|
|
@@ -61563,7 +61444,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
61563
61444
|
openWorldHint: false,
|
|
61564
61445
|
readOnlyHint: true
|
|
61565
61446
|
},
|
|
61566
|
-
args:
|
|
61447
|
+
args: args38,
|
|
61567
61448
|
tool: async (client, args, ctx) => {
|
|
61568
61449
|
const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61569
61450
|
if (!result.ok) {
|
|
@@ -61602,10 +61483,10 @@ var init_publiccurrentvisibilityresponse = __esm(() => {
|
|
|
61602
61483
|
date: string2().nullable().optional().describe("Latest prompt-run date in the range."),
|
|
61603
61484
|
end_date: string2(),
|
|
61604
61485
|
has_data: boolean2(),
|
|
61605
|
-
share_of_voice: number2().nullable().optional().describe("
|
|
61486
|
+
share_of_voice: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded."),
|
|
61606
61487
|
share_of_voice_rank: int().nullable().optional(),
|
|
61607
61488
|
start_date: string2(),
|
|
61608
|
-
visibility_score: number2().nullable().optional().describe("
|
|
61489
|
+
visibility_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded."),
|
|
61609
61490
|
visibility_score_rank: int().nullable().optional()
|
|
61610
61491
|
});
|
|
61611
61492
|
});
|
|
@@ -61628,9 +61509,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
61628
61509
|
|
|
61629
61510
|
// src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
|
|
61630
61511
|
function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
|
|
61631
|
-
return new APIPromise($
|
|
61512
|
+
return new APIPromise($do50(client$, request, options));
|
|
61632
61513
|
}
|
|
61633
|
-
async function $
|
|
61514
|
+
async function $do50(client$, request, options) {
|
|
61634
61515
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61635
61516
|
if (!parsed$.ok) {
|
|
61636
61517
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61704,12 +61585,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
|
|
|
61704
61585
|
});
|
|
61705
61586
|
|
|
61706
61587
|
// src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
|
|
61707
|
-
var
|
|
61588
|
+
var args39, tool$visibilityV2VisibilityCurrentRetrieve;
|
|
61708
61589
|
var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
|
|
61709
61590
|
init_visibilityV2VisibilityCurrentRetrieve();
|
|
61710
61591
|
init_v2visibilitycurrentretrieveop();
|
|
61711
61592
|
init_tools();
|
|
61712
|
-
|
|
61593
|
+
args39 = {
|
|
61713
61594
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
61714
61595
|
};
|
|
61715
61596
|
tool$visibilityV2VisibilityCurrentRetrieve = {
|
|
@@ -61724,7 +61605,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
|
|
|
61724
61605
|
openWorldHint: false,
|
|
61725
61606
|
readOnlyHint: true
|
|
61726
61607
|
},
|
|
61727
|
-
args:
|
|
61608
|
+
args: args39,
|
|
61728
61609
|
tool: async (client, args, ctx) => {
|
|
61729
61610
|
const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61730
61611
|
if (!result.ok) {
|
|
@@ -61747,9 +61628,9 @@ var init_publiccompetitorrow = __esm(() => {
|
|
|
61747
61628
|
average_position: number2().nullable().optional().describe("Mean mention position in AI responses; 1 is first and lower is better. 0 when never mentioned."),
|
|
61748
61629
|
average_position_rank: int().nullable().optional().describe("Companies with an `average_position` of 0 rank last."),
|
|
61749
61630
|
company: PublicCompany$zodSchema,
|
|
61750
|
-
share_of_voice: number2().nullable().optional().describe("
|
|
61631
|
+
share_of_voice: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded. A run can mention several companies, so rows do not sum to 1."),
|
|
61751
61632
|
share_of_voice_rank: int().nullable().optional(),
|
|
61752
|
-
visibility_score: number2().nullable().optional().describe("
|
|
61633
|
+
visibility_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. Rows do not sum to 1."),
|
|
61753
61634
|
visibility_score_rank: int().nullable().optional()
|
|
61754
61635
|
});
|
|
61755
61636
|
});
|
|
@@ -61810,10 +61691,10 @@ var init_publicvisibilitysnapshot = __esm(() => {
|
|
|
61810
61691
|
PublicVisibilitySnapshot$zodSchema = object({
|
|
61811
61692
|
average_position: number2().nullable().optional().describe("Mean mention position in AI responses; 1 is first and lower is better."),
|
|
61812
61693
|
average_position_rank: int().nullable().optional(),
|
|
61813
|
-
share_of_voice: number2().nullable().optional().describe("
|
|
61694
|
+
share_of_voice: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded."),
|
|
61814
61695
|
share_of_voice_rank: int().nullable().optional(),
|
|
61815
61696
|
total_citations: int().default(0).describe("Owned-domain citations across all platforms; 0, not `null`, with no prompt runs."),
|
|
61816
|
-
visibility_score: number2().nullable().optional().describe("
|
|
61697
|
+
visibility_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded."),
|
|
61817
61698
|
visibility_score_rank: int().nullable().optional()
|
|
61818
61699
|
});
|
|
61819
61700
|
});
|
|
@@ -61867,9 +61748,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
61867
61748
|
|
|
61868
61749
|
// src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
|
|
61869
61750
|
function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
|
|
61870
|
-
return new APIPromise($
|
|
61751
|
+
return new APIPromise($do51(client$, request, options));
|
|
61871
61752
|
}
|
|
61872
|
-
async function $
|
|
61753
|
+
async function $do51(client$, request, options) {
|
|
61873
61754
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61874
61755
|
if (!parsed$.ok) {
|
|
61875
61756
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61943,12 +61824,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
|
|
|
61943
61824
|
});
|
|
61944
61825
|
|
|
61945
61826
|
// src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
|
|
61946
|
-
var
|
|
61827
|
+
var args40, tool$visibilityV2VisibilityOverviewRetrieve;
|
|
61947
61828
|
var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
|
|
61948
61829
|
init_visibilityV2VisibilityOverviewRetrieve();
|
|
61949
61830
|
init_v2visibilityoverviewretrieveop();
|
|
61950
61831
|
init_tools();
|
|
61951
|
-
|
|
61832
|
+
args40 = {
|
|
61952
61833
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
61953
61834
|
};
|
|
61954
61835
|
tool$visibilityV2VisibilityOverviewRetrieve = {
|
|
@@ -61963,7 +61844,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
61963
61844
|
openWorldHint: false,
|
|
61964
61845
|
readOnlyHint: true
|
|
61965
61846
|
},
|
|
61966
|
-
args:
|
|
61847
|
+
args: args40,
|
|
61967
61848
|
tool: async (client, args, ctx) => {
|
|
61968
61849
|
const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61969
61850
|
if (!result.ok) {
|
|
@@ -61997,8 +61878,8 @@ var init_publicpromptvisibilitymetrics = __esm(() => {
|
|
|
61997
61878
|
average_position: number2().nullable().optional().describe("Mean mention position in AI responses; 1 is first and lower is better. 0 when runs produced no mentions."),
|
|
61998
61879
|
citation_count: int().default(0).describe("Owned-domain citations only."),
|
|
61999
61880
|
run_count: int().default(0).describe("One per prompt, platform, and run date."),
|
|
62000
|
-
share_of_voice: number2().nullable().optional().describe("
|
|
62001
|
-
visibility_score: number2().nullable().optional().describe("
|
|
61881
|
+
share_of_voice: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded."),
|
|
61882
|
+
visibility_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded."),
|
|
62002
61883
|
visibility_score_rank: int().nullable().optional()
|
|
62003
61884
|
});
|
|
62004
61885
|
});
|
|
@@ -62077,9 +61958,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
62077
61958
|
|
|
62078
61959
|
// src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
|
|
62079
61960
|
function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
|
|
62080
|
-
return new APIPromise($
|
|
61961
|
+
return new APIPromise($do52(client$, request, options));
|
|
62081
61962
|
}
|
|
62082
|
-
async function $
|
|
61963
|
+
async function $do52(client$, request, options) {
|
|
62083
61964
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62084
61965
|
if (!parsed$.ok) {
|
|
62085
61966
|
return [parsed$, { status: "invalid" }];
|
|
@@ -62153,12 +62034,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
|
|
|
62153
62034
|
});
|
|
62154
62035
|
|
|
62155
62036
|
// src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
|
|
62156
|
-
var
|
|
62037
|
+
var args41, tool$visibilityV2VisibilityPromptsRetrieve;
|
|
62157
62038
|
var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
|
|
62158
62039
|
init_visibilityV2VisibilityPromptsRetrieve();
|
|
62159
62040
|
init_v2visibilitypromptsretrieveop();
|
|
62160
62041
|
init_tools();
|
|
62161
|
-
|
|
62042
|
+
args41 = {
|
|
62162
62043
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
62163
62044
|
};
|
|
62164
62045
|
tool$visibilityV2VisibilityPromptsRetrieve = {
|
|
@@ -62173,7 +62054,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
|
|
|
62173
62054
|
openWorldHint: false,
|
|
62174
62055
|
readOnlyHint: true
|
|
62175
62056
|
},
|
|
62176
|
-
args:
|
|
62057
|
+
args: args41,
|
|
62177
62058
|
tool: async (client, args, ctx) => {
|
|
62178
62059
|
const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62179
62060
|
if (!result.ok) {
|
|
@@ -62197,7 +62078,7 @@ function createMCPServer(deps) {
|
|
|
62197
62078
|
sizes: ["any"]
|
|
62198
62079
|
}],
|
|
62199
62080
|
name: "LightsageMcp",
|
|
62200
|
-
version: "0.
|
|
62081
|
+
version: "0.4.0"
|
|
62201
62082
|
});
|
|
62202
62083
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
62203
62084
|
security: deps.security,
|
|
@@ -62254,12 +62135,10 @@ function createMCPServer(deps) {
|
|
|
62254
62135
|
tool(tool$evalsV2EvalConfigurationsUpdate);
|
|
62255
62136
|
tool(tool$evalsV2EvalConfigurationsDelete);
|
|
62256
62137
|
tool(tool$evalsRun);
|
|
62257
|
-
tool(tool$
|
|
62138
|
+
tool(tool$evalsCancel);
|
|
62258
62139
|
tool(tool$evalsTrace);
|
|
62140
|
+
tool(tool$evalsGet);
|
|
62259
62141
|
tool(tool$evalRunsV2EvalRunsList);
|
|
62260
|
-
tool(tool$evalRunsV2EvalRunsRetrieve);
|
|
62261
|
-
tool(tool$evalResultsV2EvalResultsList);
|
|
62262
|
-
tool(tool$evalResultsV2EvalResultsRetrieve);
|
|
62263
62142
|
tool(tool$agentsV2AgentsList);
|
|
62264
62143
|
tool(tool$repositoriesV2RepositoriesList);
|
|
62265
62144
|
tool(tool$repositoriesV2RepositoriesCreate);
|
|
@@ -62286,11 +62165,9 @@ var init_server2 = __esm(() => {
|
|
|
62286
62165
|
init_contentV2ContentFinalize2();
|
|
62287
62166
|
init_contentV2ContentRetrieve2();
|
|
62288
62167
|
init_environmentsV2EnvironmentsList2();
|
|
62289
|
-
init_evalResultsV2EvalResultsList2();
|
|
62290
|
-
init_evalResultsV2EvalResultsRetrieve2();
|
|
62291
62168
|
init_evalRunsV2EvalRunsList2();
|
|
62292
|
-
|
|
62293
|
-
|
|
62169
|
+
init_evalsCancel2();
|
|
62170
|
+
init_evalsGet2();
|
|
62294
62171
|
init_evalsRun2();
|
|
62295
62172
|
init_evalsTrace2();
|
|
62296
62173
|
init_evalsV2EvalConfigurationsCreate2();
|
|
@@ -62408,13 +62285,13 @@ Renames a prompt topic and returns the updated topic.`
|
|
|
62408
62285
|
name: "prompts-v2-prompt-runs-list",
|
|
62409
62286
|
description: `List Prompt Runs
|
|
62410
62287
|
|
|
62411
|
-
Returns stored prompt runs without exposing raw runtime or provider configuration.
|
|
62288
|
+
Returns stored prompt runs with limit-and-offset pagination, without exposing raw runtime or provider configuration. Filter by prompt, platform, or date range.`
|
|
62412
62289
|
},
|
|
62413
62290
|
{
|
|
62414
62291
|
name: "prompts-v2-prompt-runs-retrieve",
|
|
62415
62292
|
description: `Retrieve Prompt Run
|
|
62416
62293
|
|
|
62417
|
-
Returns one stored prompt run, including
|
|
62294
|
+
Returns one stored prompt run, including mentions, citations, and any sanitized coding-agent trace captured for the run.`
|
|
62418
62295
|
},
|
|
62419
62296
|
{
|
|
62420
62297
|
name: "prompts-v2-prompts-retrieve",
|
|
@@ -62498,9 +62375,7 @@ Returns all active eval definitions owned by the organization.`
|
|
|
62498
62375
|
},
|
|
62499
62376
|
{
|
|
62500
62377
|
name: "evals-v2-evals-create",
|
|
62501
|
-
description:
|
|
62502
|
-
|
|
62503
|
-
Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, repeat count, and tags are saved with the eval. Creating the eval does not start a run and does not accept secret environment values.`
|
|
62378
|
+
description: "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values."
|
|
62504
62379
|
},
|
|
62505
62380
|
{
|
|
62506
62381
|
name: "evals-v2-evals-retrieve",
|
|
@@ -62510,7 +62385,7 @@ Returns one reusable eval simulation definition.`
|
|
|
62510
62385
|
},
|
|
62511
62386
|
{
|
|
62512
62387
|
name: "evals-v2-evals-update",
|
|
62513
|
-
description: "Update Eval\n\nUpdates a reusable eval simulation definition. Omitted fields remain unchanged. Empty `agent`, `clis`, `mcps`, or `tags` arrays clear those collections, and `persona: null` clears the saved persona."
|
|
62388
|
+
description: "Update Eval\n\nUpdates a reusable eval simulation definition. Omitted fields remain unchanged. Empty `agent`, `clis`, `mcps`, `setup_commands`, `cleanup_commands`, or `tags` arrays clear those collections, and `persona: null` clears the saved persona."
|
|
62514
62389
|
},
|
|
62515
62390
|
{
|
|
62516
62391
|
name: "evals-v2-evals-delete",
|
|
@@ -62550,39 +62425,27 @@ Permanently deletes an eval configuration and returns its last saved state.`
|
|
|
62550
62425
|
},
|
|
62551
62426
|
{
|
|
62552
62427
|
name: "evals-run",
|
|
62553
|
-
description: "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, and
|
|
62428
|
+
description: "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required. If the organization lacks the estimated credits, the request fails with `402` before dispatching work.\n\nA saved or inline environment containing an empty or placeholder credential is rejected with `400` before any evaluation is dispatched."
|
|
62554
62429
|
},
|
|
62555
62430
|
{
|
|
62556
|
-
name: "evals-
|
|
62557
|
-
description: `
|
|
62431
|
+
name: "evals-cancel",
|
|
62432
|
+
description: `Cancel an eval run
|
|
62558
62433
|
|
|
62559
|
-
|
|
62434
|
+
Marks an active eval run as cancelled and prevents queued attempts from starting. Running sandbox attempts are stopped asynchronously. Requests already sent to an external provider cannot be recalled, but any later response does not change the run from cancelled. Repeating this request for an already-cancelled run is safe.`
|
|
62560
62435
|
},
|
|
62561
62436
|
{
|
|
62562
62437
|
name: "evals-trace",
|
|
62563
62438
|
description: "Retrieve an eval run trace\n\nReturns a finite page of sanitized execution events for one eval run. Use `next_after_id` as `after_id` to retrieve the next page. Use the monitor operation instead when following a run live."
|
|
62564
62439
|
},
|
|
62565
62440
|
{
|
|
62566
|
-
name: "
|
|
62567
|
-
description:
|
|
62568
|
-
},
|
|
62569
|
-
{
|
|
62570
|
-
name: "eval-runs-v2-eval-runs-retrieve",
|
|
62571
|
-
description: `Retrieve Run
|
|
62572
|
-
|
|
62573
|
-
Returns the status and progress of an eval job. Poll until the status reaches a terminal value.`
|
|
62574
|
-
},
|
|
62575
|
-
{
|
|
62576
|
-
name: "eval-results-v2-eval-results-list",
|
|
62577
|
-
description: `List Results
|
|
62441
|
+
name: "evals-get",
|
|
62442
|
+
description: `Retrieve an eval run
|
|
62578
62443
|
|
|
62579
|
-
Returns
|
|
62444
|
+
Returns the run's current status and progress. Once its attempts finish, the response also includes their results and analysis. Poll this until the status reaches a terminal value. Use the trace operation for the raw execution event log, or the monitor operation to follow a run live.`
|
|
62580
62445
|
},
|
|
62581
62446
|
{
|
|
62582
|
-
name: "eval-
|
|
62583
|
-
description: `
|
|
62584
|
-
|
|
62585
|
-
Returns one completed custom-eval result with its output and diagnostic details.`
|
|
62447
|
+
name: "eval-runs-v2-eval-runs-list",
|
|
62448
|
+
description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
|
|
62586
62449
|
},
|
|
62587
62450
|
{
|
|
62588
62451
|
name: "agents-v2-agents-list",
|
|
@@ -63548,7 +63411,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
63548
63411
|
<h1>Instructions</h1>
|
|
63549
63412
|
<p>One-click installation for Claude Desktop users</p>
|
|
63550
63413
|
<div class="instruction-item">
|
|
63551
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.
|
|
63414
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.0/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
63552
63415
|
\uD83D\uDCE5 Download MCP Bundle
|
|
63553
63416
|
</a>
|
|
63554
63417
|
</div>
|
|
@@ -66426,7 +66289,7 @@ var routes = buildRouteMap({
|
|
|
66426
66289
|
var app = buildApplication(routes, {
|
|
66427
66290
|
name: "mcp",
|
|
66428
66291
|
versionInfo: {
|
|
66429
|
-
currentVersion: "0.
|
|
66292
|
+
currentVersion: "0.4.0"
|
|
66430
66293
|
}
|
|
66431
66294
|
});
|
|
66432
66295
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -66434,5 +66297,5 @@ export {
|
|
|
66434
66297
|
app
|
|
66435
66298
|
};
|
|
66436
66299
|
|
|
66437
|
-
//# debugId=
|
|
66300
|
+
//# debugId=0CC0D115366CE4FD64756E2164756E21
|
|
66438
66301
|
//# sourceMappingURL=mcp-server.js.map
|