@lightsage/mcp 0.1.11 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/mcp-server.js +548 -470
- package/bin/mcp-server.js.map +36 -33
- package/esm/funcs/evalsMonitor.d.ts +20 -0
- package/esm/funcs/evalsMonitor.d.ts.map +1 -0
- package/esm/funcs/evalsMonitor.js +95 -0
- package/esm/funcs/evalsMonitor.js.map +1 -0
- package/esm/funcs/evalsRun.d.ts +16 -0
- package/esm/funcs/evalsRun.d.ts.map +1 -0
- package/esm/funcs/{evalRunsV2EvalRunsCreate.js → evalsRun.js} +4 -4
- package/esm/funcs/evalsRun.js.map +1 -0
- package/esm/funcs/repositoriesV2RepositoriesList.d.ts +1 -1
- package/esm/funcs/repositoriesV2RepositoriesList.js +1 -1
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/mcp-server.js.map +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +5 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/evalsMonitor.d.ts +7 -0
- package/esm/mcp-server/tools/evalsMonitor.d.ts.map +1 -0
- package/esm/mcp-server/tools/evalsMonitor.js +35 -0
- package/esm/mcp-server/tools/evalsMonitor.js.map +1 -0
- package/esm/mcp-server/tools/{evalRunsV2EvalRunsCreate.d.ts → evalsRun.d.ts} +2 -2
- package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -0
- package/esm/mcp-server/tools/{evalRunsV2EvalRunsCreate.js → evalsRun.js} +7 -7
- package/esm/mcp-server/tools/evalsRun.js.map +1 -0
- package/esm/mcp-server/tools/repositoriesV2RepositoriesList.js +1 -1
- package/esm/mcp-server/tools/repositoriesV2RepositoriesList.js.map +1 -1
- package/esm/models/createv2evalconfigurationrequest.d.ts +1 -0
- package/esm/models/createv2evalconfigurationrequest.d.ts.map +1 -1
- package/esm/models/createv2evalconfigurationrequest.js +1 -0
- package/esm/models/createv2evalconfigurationrequest.js.map +1 -1
- package/esm/models/createv2evalrunrequest.d.ts +9 -2
- package/esm/models/createv2evalrunrequest.d.ts.map +1 -1
- package/esm/models/createv2evalrunrequest.js +7 -2
- package/esm/models/createv2evalrunrequest.js.map +1 -1
- package/esm/models/updatev2evalconfigurationrequest.d.ts +1 -0
- package/esm/models/updatev2evalconfigurationrequest.d.ts.map +1 -1
- package/esm/models/updatev2evalconfigurationrequest.js +1 -0
- package/esm/models/updatev2evalconfigurationrequest.js.map +1 -1
- package/esm/models/v2evalconfiguration.d.ts +1 -0
- package/esm/models/v2evalconfiguration.d.ts.map +1 -1
- package/esm/models/v2evalconfiguration.js +1 -0
- package/esm/models/v2evalconfiguration.js.map +1 -1
- package/esm/models/v2evalrun.d.ts +3 -0
- package/esm/models/v2evalrun.d.ts.map +1 -1
- package/esm/models/v2evalrun.js +6 -3
- package/esm/models/v2evalrun.js.map +1 -1
- package/esm/models/v2evalrunsmonitorop.d.ts +28 -0
- package/esm/models/v2evalrunsmonitorop.d.ts.map +1 -0
- package/esm/models/v2evalrunsmonitorop.js +29 -0
- package/esm/models/v2evalrunsmonitorop.js.map +1 -0
- package/esm/models/v2listtasksresponse.d.ts +1 -1
- package/esm/models/v2repository.d.ts +16 -0
- package/esm/models/v2repository.d.ts.map +1 -1
- package/esm/models/v2repository.js +13 -1
- package/esm/models/v2repository.js.map +1 -1
- package/esm/models/v2taskslistop.d.ts +1 -1
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +9 -5
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/evalsMonitor.ts +157 -0
- package/src/funcs/{evalRunsV2EvalRunsCreate.ts → evalsRun.ts} +3 -3
- package/src/funcs/repositoriesV2RepositoriesList.ts +1 -1
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +5 -3
- package/src/mcp-server/tools/evalsMonitor.ts +43 -0
- package/src/mcp-server/tools/{evalRunsV2EvalRunsCreate.ts → evalsRun.ts} +6 -6
- package/src/mcp-server/tools/repositoriesV2RepositoriesList.ts +1 -1
- package/src/models/createv2evalconfigurationrequest.ts +4 -0
- package/src/models/createv2evalrunrequest.ts +28 -4
- package/src/models/updatev2evalconfigurationrequest.ts +4 -0
- package/src/models/v2evalconfiguration.ts +4 -0
- package/src/models/v2evalrun.ts +17 -3
- package/src/models/v2evalrunsmonitorop.ts +62 -0
- package/src/models/v2repository.ts +26 -1
- package/src/tool-names.ts +9 -5
- package/esm/funcs/evalRunsV2EvalRunsCreate.d.ts +0 -16
- package/esm/funcs/evalRunsV2EvalRunsCreate.d.ts.map +0 -1
- package/esm/funcs/evalRunsV2EvalRunsCreate.js.map +0 -1
- package/esm/mcp-server/tools/evalRunsV2EvalRunsCreate.d.ts.map +0 -1
- package/esm/mcp-server/tools/evalRunsV2EvalRunsCreate.js.map +0 -1
package/bin/mcp-server.js
CHANGED
|
@@ -455,9 +455,6 @@ function members(proto, table) {
|
|
|
455
455
|
else
|
|
456
456
|
defineBound(proto, key, desc.value);
|
|
457
457
|
}
|
|
458
|
-
for (const sym of Object.getOwnPropertySymbols(table)) {
|
|
459
|
-
defineBound(proto, sym, table[sym]);
|
|
460
|
-
}
|
|
461
458
|
}
|
|
462
459
|
function own(inst, key, value, enumerable = true) {
|
|
463
460
|
Object.defineProperty(inst, key, { configurable: true, writable: true, enumerable, value });
|
|
@@ -632,8 +629,7 @@ function $constructor(name, initializer, proto, params) {
|
|
|
632
629
|
} finally {
|
|
633
630
|
_zodDesc.value = undefined;
|
|
634
631
|
}
|
|
635
|
-
}
|
|
636
|
-
if (inst._zod.traits.has(name)) {
|
|
632
|
+
} else if (inst._zod.traits.has(name)) {
|
|
637
633
|
return;
|
|
638
634
|
}
|
|
639
635
|
inst._zod.traits.add(name);
|
|
@@ -1435,7 +1431,7 @@ var init_versions = __esm(() => {
|
|
|
1435
1431
|
version2 = {
|
|
1436
1432
|
major: 4,
|
|
1437
1433
|
minor: 6,
|
|
1438
|
-
patch:
|
|
1434
|
+
patch: 4
|
|
1439
1435
|
};
|
|
1440
1436
|
});
|
|
1441
1437
|
|
|
@@ -1459,11 +1455,32 @@ function standardProps(inst) {
|
|
|
1459
1455
|
version: 1
|
|
1460
1456
|
};
|
|
1461
1457
|
}
|
|
1458
|
+
function canParseURL(input) {
|
|
1459
|
+
try {
|
|
1460
|
+
if (typeof URL !== "undefined" && typeof URL.canParse === "function")
|
|
1461
|
+
return URL.canParse(input);
|
|
1462
|
+
new URL(input);
|
|
1463
|
+
return true;
|
|
1464
|
+
} catch {
|
|
1465
|
+
return false;
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
function validateURL(trimmed, def) {
|
|
1469
|
+
if (!("normalize" in def) && !("hostname" in def) && !("protocol" in def)) {
|
|
1470
|
+
return canParseURL(trimmed) || URL_UNPARSEABLE;
|
|
1471
|
+
}
|
|
1472
|
+
return parseURLObject(trimmed, def);
|
|
1473
|
+
}
|
|
1462
1474
|
function parseURLObject(trimmed, def) {
|
|
1463
1475
|
if (!def.normalize && def.protocol?.source === httpProtocol.source && !/^https?:\/\//i.test(trimmed)) {
|
|
1464
1476
|
return URL_BAD_FORMAT;
|
|
1465
1477
|
}
|
|
1466
1478
|
try {
|
|
1479
|
+
if (typeof URL !== "undefined") {
|
|
1480
|
+
const URLStatic = URL;
|
|
1481
|
+
if (typeof URLStatic.parse === "function")
|
|
1482
|
+
return URLStatic.parse(trimmed) ?? URL_UNPARSEABLE;
|
|
1483
|
+
}
|
|
1467
1484
|
return new URL(trimmed);
|
|
1468
1485
|
} catch {
|
|
1469
1486
|
return URL_UNPARSEABLE;
|
|
@@ -1483,12 +1500,7 @@ function urlProtocolOk(url, protocol) {
|
|
|
1483
1500
|
function isValidIPv6(value) {
|
|
1484
1501
|
if (!ipv6Alphabet.test(value))
|
|
1485
1502
|
return false;
|
|
1486
|
-
|
|
1487
|
-
new URL(`http://[${value}]`);
|
|
1488
|
-
return true;
|
|
1489
|
-
} catch {
|
|
1490
|
-
return false;
|
|
1491
|
-
}
|
|
1503
|
+
return canParseURL(`http://[${value}]`);
|
|
1492
1504
|
}
|
|
1493
1505
|
function isValidCIDRv6(value) {
|
|
1494
1506
|
const parts = value.split("/");
|
|
@@ -1850,12 +1862,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
1850
1862
|
payload.issues.push(issue(_iss));
|
|
1851
1863
|
}
|
|
1852
1864
|
}
|
|
1853
|
-
|
|
1854
|
-
if (result.issues.length) {
|
|
1855
|
-
payload.issues.push(...prefixIssues(key, result.issues));
|
|
1856
|
-
}
|
|
1857
|
-
}
|
|
1858
|
-
var $ZodType, toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => finalizeIssue(iss, ctx, config())) } : { value: r.value }, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, URL_BAD_FORMAT = 1, URL_UNPARSEABLE = 2, asciiTabOrNewline, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, ipv6Alphabet, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, base64Charset, $ZodBase64, base64urlCharset, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodCatch, $ZodPipe, $ZodPreprocess, $ZodReadonly, $ZodCustom, $ZodProperties;
|
|
1865
|
+
var $ZodType, toStandardResult = (r, ctx) => r.issues.length ? { issues: r.issues.map((iss) => finalizeIssue(iss, ctx, config())) } : { value: r.value }, $ZodString, $ZodStringFormat, $ZodGUID, $ZodUUID, $ZodEmail, URL_BAD_FORMAT = 1, URL_UNPARSEABLE = 2, asciiTabOrNewline, $ZodURL, $ZodEmoji, $ZodNanoID, $ZodCUID, $ZodCUID2, $ZodULID, $ZodXID, $ZodKSUID, $ZodISODateTime, $ZodISODate, $ZodISOTime, $ZodISODuration, $ZodIPv4, ipv6Alphabet, $ZodIPv6, $ZodCIDRv4, $ZodCIDRv6, base64Charset, $ZodBase64, base64urlCharset, $ZodBase64URL, $ZodE164, $ZodJWT, $ZodNumber, $ZodNumberFormat, $ZodBoolean, $ZodNull, $ZodAny, $ZodUnknown, $ZodNever, $ZodArray, NO_SYMBOL_KEYS, $ZodObject, $ZodObjectJIT, $ZodUnion, $ZodDiscriminatedUnion, $ZodIntersection, $ZodRecord, $ZodEnum, $ZodLiteral, $ZodTransform, $ZodOptional, $ZodExactOptional, $ZodNullable, $ZodDefault, $ZodPrefault, $ZodNonOptional, $ZodCatch, $ZodPipe, $ZodPreprocess, $ZodReadonly, $ZodCustom;
|
|
1859
1866
|
var init_schemas = __esm(() => {
|
|
1860
1867
|
init_checks();
|
|
1861
1868
|
init_core();
|
|
@@ -2028,7 +2035,7 @@ var init_schemas = __esm(() => {
|
|
|
2028
2035
|
inst._zod.check = (payload) => {
|
|
2029
2036
|
try {
|
|
2030
2037
|
const trimmed = payload.value.trim();
|
|
2031
|
-
const url =
|
|
2038
|
+
const url = validateURL(trimmed, def);
|
|
2032
2039
|
if (url === URL_BAD_FORMAT) {
|
|
2033
2040
|
payload.issues.push({
|
|
2034
2041
|
code: "invalid_format",
|
|
@@ -2050,6 +2057,10 @@ var init_schemas = __esm(() => {
|
|
|
2050
2057
|
});
|
|
2051
2058
|
return;
|
|
2052
2059
|
}
|
|
2060
|
+
if (url === true) {
|
|
2061
|
+
payload.value = stripTabAndNewline(trimmed);
|
|
2062
|
+
return;
|
|
2063
|
+
}
|
|
2053
2064
|
if (def.hostname && !urlHostnameOk(url, def.hostname)) {
|
|
2054
2065
|
payload.issues.push({
|
|
2055
2066
|
code: "invalid_format",
|
|
@@ -3065,61 +3076,11 @@ var init_schemas = __esm(() => {
|
|
|
3065
3076
|
return;
|
|
3066
3077
|
};
|
|
3067
3078
|
});
|
|
3068
|
-
$ZodProperties = /* @__PURE__ */ $constructor("$ZodProperties", (inst, def) => {
|
|
3069
|
-
$ZodType.init(inst, def);
|
|
3070
|
-
$ZodCheck.init(inst, def);
|
|
3071
|
-
const memo = globalConfig.memoizer;
|
|
3072
|
-
memo?.attach(inst);
|
|
3073
|
-
let entries;
|
|
3074
|
-
const runShape = (payload, ctx) => {
|
|
3075
|
-
entries ?? (entries = Reflect.ownKeys(def.shape).map((key) => [key, def.shape[key]]));
|
|
3076
|
-
const input = payload.value;
|
|
3077
|
-
let proms;
|
|
3078
|
-
for (const [key, schema] of entries) {
|
|
3079
|
-
const result = schema._zod.run({ value: input[key], issues: [] }, ctx);
|
|
3080
|
-
if (result instanceof Promise) {
|
|
3081
|
-
proms ?? (proms = []);
|
|
3082
|
-
proms.push(result.then((result) => handlePropertiesResult(result, payload, key)));
|
|
3083
|
-
} else {
|
|
3084
|
-
handlePropertiesResult(result, payload, key);
|
|
3085
|
-
}
|
|
3086
|
-
}
|
|
3087
|
-
if (proms)
|
|
3088
|
-
return Promise.all(proms).then(() => {
|
|
3089
|
-
return;
|
|
3090
|
-
});
|
|
3091
|
-
return;
|
|
3092
|
-
};
|
|
3093
|
-
inst._zod.parse = (payload, ctx) => {
|
|
3094
|
-
const input = payload.value;
|
|
3095
|
-
if (input === null || typeof input !== "object" && typeof input !== "function") {
|
|
3096
|
-
payload.issues.push({ expected: "object", code: "invalid_type", input, inst });
|
|
3097
|
-
return payload;
|
|
3098
|
-
}
|
|
3099
|
-
if (ctx.direction === "backward")
|
|
3100
|
-
ctx = { ...ctx, direction: "forward" };
|
|
3101
|
-
if (memo)
|
|
3102
|
-
memo.alloc(inst, payload, input, ctx);
|
|
3103
|
-
const result = runShape(payload, ctx);
|
|
3104
|
-
return result instanceof Promise ? result.then(() => payload) : payload;
|
|
3105
|
-
};
|
|
3106
|
-
inst._zod.check = (payload) => {
|
|
3107
|
-
if (payload.value == null) {
|
|
3108
|
-
payload.issues.push({ expected: "object", code: "invalid_type", input: payload.value, inst });
|
|
3109
|
-
return;
|
|
3110
|
-
}
|
|
3111
|
-
return runShape(payload, {});
|
|
3112
|
-
};
|
|
3113
|
-
}, {
|
|
3114
|
-
*[Symbol.iterator]() {
|
|
3115
|
-
yield this;
|
|
3116
|
-
}
|
|
3117
|
-
});
|
|
3118
3079
|
});
|
|
3119
3080
|
|
|
3120
3081
|
// node_modules/zod/v4/core/memoizer.js
|
|
3121
3082
|
function isRef(value) {
|
|
3122
|
-
return value !== null &&
|
|
3083
|
+
return value !== null && typeof value === "object";
|
|
3123
3084
|
}
|
|
3124
3085
|
function cloneIssues(issues) {
|
|
3125
3086
|
return issues.map((iss) => iss.path ? { ...iss, path: iss.path.slice() } : { ...iss });
|
|
@@ -3164,9 +3125,6 @@ function isRecursive(inst, stack, resolve) {
|
|
|
3164
3125
|
check(def.catchall);
|
|
3165
3126
|
break;
|
|
3166
3127
|
}
|
|
3167
|
-
case "properties":
|
|
3168
|
-
merge(shape(def.shape, false));
|
|
3169
|
-
break;
|
|
3170
3128
|
case "array":
|
|
3171
3129
|
check(def.element);
|
|
3172
3130
|
break;
|
|
@@ -3434,6 +3392,7 @@ var error = () => {
|
|
|
3434
3392
|
base64url: "base64url-encoded string",
|
|
3435
3393
|
json_string: "JSON string",
|
|
3436
3394
|
e164: "E.164 number",
|
|
3395
|
+
currency_code: "currency code",
|
|
3437
3396
|
credit_card: "credit card number",
|
|
3438
3397
|
iban: "IBAN",
|
|
3439
3398
|
jwt: "JWT",
|
|
@@ -3609,11 +3568,13 @@ var init_compile = __esm(() => {
|
|
|
3609
3568
|
});
|
|
3610
3569
|
|
|
3611
3570
|
// node_modules/zod/v4/core/api.js
|
|
3571
|
+
function snapshotChecks(def) {
|
|
3572
|
+
if (def.checks)
|
|
3573
|
+
def.checks = [...def.checks];
|
|
3574
|
+
return def;
|
|
3575
|
+
}
|
|
3612
3576
|
function _string(Class, params) {
|
|
3613
|
-
return new Class({
|
|
3614
|
-
type: "string",
|
|
3615
|
-
...normalizeParams(params)
|
|
3616
|
-
});
|
|
3577
|
+
return new Class(snapshotChecks({ type: "string", ...normalizeParams(params) }));
|
|
3617
3578
|
}
|
|
3618
3579
|
function _email(Class, params) {
|
|
3619
3580
|
return new Class({
|
|
@@ -3853,19 +3814,10 @@ function _isoDuration(Class, params) {
|
|
|
3853
3814
|
});
|
|
3854
3815
|
}
|
|
3855
3816
|
function _number(Class, params) {
|
|
3856
|
-
return new Class({
|
|
3857
|
-
type: "number",
|
|
3858
|
-
checks: [],
|
|
3859
|
-
...normalizeParams(params)
|
|
3860
|
-
});
|
|
3817
|
+
return new Class(snapshotChecks({ type: "number", checks: [], ...normalizeParams(params) }));
|
|
3861
3818
|
}
|
|
3862
3819
|
function _coercedNumber(Class, params) {
|
|
3863
|
-
return new Class({
|
|
3864
|
-
type: "number",
|
|
3865
|
-
coerce: true,
|
|
3866
|
-
checks: [],
|
|
3867
|
-
...normalizeParams(params)
|
|
3868
|
-
});
|
|
3820
|
+
return new Class(snapshotChecks({ type: "number", coerce: true, checks: [], ...normalizeParams(params) }));
|
|
3869
3821
|
}
|
|
3870
3822
|
function _int(Class, params) {
|
|
3871
3823
|
return new Class({
|
|
@@ -5014,17 +4966,15 @@ var narrowMin = (agg, key, value) => {
|
|
|
5014
4966
|
path: [...params.path, "properties", key]
|
|
5015
4967
|
}));
|
|
5016
4968
|
}
|
|
5017
|
-
const
|
|
5018
|
-
const
|
|
4969
|
+
const requiredKeys = [];
|
|
4970
|
+
for (const key of Object.keys(shape)) {
|
|
5019
4971
|
const field = def.shape[key];
|
|
5020
|
-
if (ctx.io === "input") {
|
|
5021
|
-
|
|
5022
|
-
} else {
|
|
5023
|
-
return field._zod.optout === undefined;
|
|
4972
|
+
if (ctx.io === "input" ? inputOptin(field) === undefined : field._zod.optout === undefined) {
|
|
4973
|
+
requiredKeys.push(key);
|
|
5024
4974
|
}
|
|
5025
|
-
}
|
|
5026
|
-
if (requiredKeys.
|
|
5027
|
-
json.required =
|
|
4975
|
+
}
|
|
4976
|
+
if (requiredKeys.length > 0) {
|
|
4977
|
+
json.required = requiredKeys;
|
|
5028
4978
|
}
|
|
5029
4979
|
if (def.catchall?._zod.def.type === "never") {
|
|
5030
4980
|
json.additionalProperties = false;
|
|
@@ -5037,30 +4987,6 @@ var narrowMin = (agg, key, value) => {
|
|
|
5037
4987
|
path: [...params.path, "additionalProperties"]
|
|
5038
4988
|
});
|
|
5039
4989
|
}
|
|
5040
|
-
}, propertiesProcessor = (schema, ctx, _json, params) => {
|
|
5041
|
-
const json = _json;
|
|
5042
|
-
const def = schema._zod.def;
|
|
5043
|
-
if (Object.getOwnPropertySymbols(def.shape).length && handleUnrepresentable(schema, ctx, json, params, "Symbol keys cannot be represented in JSON Schema")) {
|
|
5044
|
-
return;
|
|
5045
|
-
}
|
|
5046
|
-
if (ctx.io === "output") {
|
|
5047
|
-
for (const key in def.shape) {
|
|
5048
|
-
if (isTransforming(def.shape[key]) && handleUnrepresentable(schema, ctx, json, params, `z.properties() returns its input, so the output of a transforming schema at key "${key}" cannot be represented in JSON Schema`)) {
|
|
5049
|
-
return;
|
|
5050
|
-
}
|
|
5051
|
-
}
|
|
5052
|
-
}
|
|
5053
|
-
json.type = "object";
|
|
5054
|
-
json.properties = {};
|
|
5055
|
-
for (const key in def.shape) {
|
|
5056
|
-
assignProp(json.properties, key, processSchema(def.shape[key], ctx, {
|
|
5057
|
-
...params,
|
|
5058
|
-
path: [...params.path, "properties", key]
|
|
5059
|
-
}));
|
|
5060
|
-
}
|
|
5061
|
-
const required = Object.keys(def.shape).filter((key) => inputOptin(def.shape[key]) === undefined);
|
|
5062
|
-
if (required.length > 0)
|
|
5063
|
-
json.required = required;
|
|
5064
4990
|
}, unionProcessor = (schema, ctx, json, params) => {
|
|
5065
4991
|
const def = schema._zod.def;
|
|
5066
4992
|
const isExclusive = def.inclusive === false;
|
|
@@ -5331,7 +5257,6 @@ var init_json_schema_processors = __esm(() => {
|
|
|
5331
5257
|
file: fileProcessor,
|
|
5332
5258
|
success: successProcessor,
|
|
5333
5259
|
custom: customProcessor,
|
|
5334
|
-
properties: propertiesProcessor,
|
|
5335
5260
|
function: functionProcessor,
|
|
5336
5261
|
transform: transformProcessor,
|
|
5337
5262
|
map: mapProcessor,
|
|
@@ -52793,9 +52718,9 @@ var init_config = __esm(() => {
|
|
|
52793
52718
|
SDK_METADATA = {
|
|
52794
52719
|
language: "typescript",
|
|
52795
52720
|
openapiDocVersion: "1.0.0",
|
|
52796
|
-
sdkVersion: "0.1
|
|
52721
|
+
sdkVersion: "0.2.1",
|
|
52797
52722
|
genVersion: "2.935.1",
|
|
52798
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.1
|
|
52723
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.2.1 2.935.1 1.0.0 @lightsage/mcp"
|
|
52799
52724
|
};
|
|
52800
52725
|
});
|
|
52801
52726
|
|
|
@@ -55283,31 +55208,93 @@ Returns one completed custom-eval result with its output and diagnostic details.
|
|
|
55283
55208
|
};
|
|
55284
55209
|
});
|
|
55285
55210
|
|
|
55286
|
-
// src/models/
|
|
55287
|
-
var
|
|
55288
|
-
var
|
|
55211
|
+
// src/models/publicevalrunprogress.ts
|
|
55212
|
+
var PublicEvalRunProgress$zodSchema;
|
|
55213
|
+
var init_publicevalrunprogress = __esm(() => {
|
|
55289
55214
|
init_zod();
|
|
55290
|
-
|
|
55291
|
-
|
|
55292
|
-
|
|
55293
|
-
|
|
55215
|
+
PublicEvalRunProgress$zodSchema = object({
|
|
55216
|
+
cancelled: int().default(0),
|
|
55217
|
+
completed: int().default(0),
|
|
55218
|
+
failed: int().default(0),
|
|
55219
|
+
interrupted: int().default(0),
|
|
55220
|
+
percent: number2().default(0).describe("The percentage of child jobs in a terminal state. It can reach `100` while the parent job is still summarizing, so use `status` to detect completion."),
|
|
55221
|
+
queued: int().default(0),
|
|
55222
|
+
running: int().default(0),
|
|
55223
|
+
total: int().default(0)
|
|
55224
|
+
});
|
|
55225
|
+
});
|
|
55226
|
+
|
|
55227
|
+
// src/models/v2evalrun.ts
|
|
55228
|
+
var V2EvalRun$zodSchema;
|
|
55229
|
+
var init_v2evalrun = __esm(() => {
|
|
55230
|
+
init_zod();
|
|
55231
|
+
init_publicevalrunprogress();
|
|
55232
|
+
V2EvalRun$zodSchema = object({
|
|
55233
|
+
agent_id: string2().nullable().optional().describe("Runnable agent ID selected for this run."),
|
|
55234
|
+
agent_name: string2().nullable().optional().describe("Display name captured for the selected agent."),
|
|
55235
|
+
completed_at: string2().nullable().optional(),
|
|
55236
|
+
configuration_id: string2().nullable().optional(),
|
|
55237
|
+
created_at: string2().nullable().optional(),
|
|
55238
|
+
dispatch_id: string2().nullable().optional(),
|
|
55239
|
+
error: string2().nullable().optional(),
|
|
55240
|
+
estimated_cost: number2().nullable().optional(),
|
|
55241
|
+
eval_id: string2().nullable().optional().describe("Saved eval definition ID, including one created by a direct run."),
|
|
55242
|
+
eval_name: string2().nullable().optional().describe("Display name captured for the eval when the run was created."),
|
|
55243
|
+
id: string2().describe("Run ID to use when polling eval-run status."),
|
|
55244
|
+
job_id: string2().describe("Alias of `id` for the durable parent job."),
|
|
55245
|
+
progress: PublicEvalRunProgress$zodSchema.optional(),
|
|
55246
|
+
stage: string2().nullable().optional(),
|
|
55247
|
+
started_at: string2().nullable().optional(),
|
|
55248
|
+
status: string2()
|
|
55249
|
+
});
|
|
55250
|
+
});
|
|
55251
|
+
|
|
55252
|
+
// src/models/v2evalrunsresponse.ts
|
|
55253
|
+
var V2EvalRunsResponse$zodSchema;
|
|
55254
|
+
var init_v2evalrunsresponse = __esm(() => {
|
|
55255
|
+
init_zod();
|
|
55256
|
+
init_v2evalrun();
|
|
55257
|
+
V2EvalRunsResponse$zodSchema = object({
|
|
55258
|
+
count: int(),
|
|
55259
|
+
data: array(V2EvalRun$zodSchema).optional(),
|
|
55260
|
+
limit: int(),
|
|
55261
|
+
offset: int()
|
|
55262
|
+
});
|
|
55263
|
+
});
|
|
55264
|
+
|
|
55265
|
+
// src/models/v2evalrunslistop.ts
|
|
55266
|
+
var V2EvalRunsListRequest$zodSchema, V2EvalRunsListResponse$zodSchema;
|
|
55267
|
+
var init_v2evalrunslistop = __esm(() => {
|
|
55268
|
+
init_zod();
|
|
55269
|
+
init_httpvalidationerror();
|
|
55270
|
+
init_v2evalrunsresponse();
|
|
55271
|
+
V2EvalRunsListRequest$zodSchema = object({
|
|
55272
|
+
limit: int().default(25),
|
|
55273
|
+
offset: int().default(0)
|
|
55294
55274
|
});
|
|
55275
|
+
V2EvalRunsListResponse$zodSchema = union([
|
|
55276
|
+
V2EvalRunsResponse$zodSchema,
|
|
55277
|
+
HTTPValidationError$zodSchema
|
|
55278
|
+
]);
|
|
55295
55279
|
});
|
|
55296
55280
|
|
|
55297
|
-
// src/funcs/
|
|
55298
|
-
function
|
|
55281
|
+
// src/funcs/evalRunsV2EvalRunsList.ts
|
|
55282
|
+
function evalRunsV2EvalRunsList(client$, request, options) {
|
|
55299
55283
|
return new APIPromise($do9(client$, request, options));
|
|
55300
55284
|
}
|
|
55301
55285
|
async function $do9(client$, request, options) {
|
|
55302
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
55286
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
55303
55287
|
if (!parsed$.ok) {
|
|
55304
55288
|
return [parsed$, { status: "invalid" }];
|
|
55305
55289
|
}
|
|
55306
55290
|
const payload$ = parsed$.value;
|
|
55307
|
-
const body$ =
|
|
55291
|
+
const body$ = null;
|
|
55308
55292
|
const path$ = pathToFunc("/v2/eval-runs")();
|
|
55293
|
+
const query$ = encodeFormQuery({
|
|
55294
|
+
limit: payload$?.limit,
|
|
55295
|
+
offset: payload$?.offset
|
|
55296
|
+
});
|
|
55309
55297
|
const headers$ = new Headers(compactMap({
|
|
55310
|
-
"Content-Type": "application/json",
|
|
55311
55298
|
Accept: "application/json"
|
|
55312
55299
|
}));
|
|
55313
55300
|
const securityInput = await extractSecurity(client$._options.security);
|
|
@@ -55315,7 +55302,7 @@ async function $do9(client$, request, options) {
|
|
|
55315
55302
|
const context = {
|
|
55316
55303
|
options: client$._options,
|
|
55317
55304
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55318
|
-
operationID: "
|
|
55305
|
+
operationID: "v2_eval_runs_list",
|
|
55319
55306
|
oAuth2Scopes: null,
|
|
55320
55307
|
resolvedSecurity: requestSecurity,
|
|
55321
55308
|
securitySource: client$._options.security,
|
|
@@ -55330,10 +55317,11 @@ async function $do9(client$, request, options) {
|
|
|
55330
55317
|
};
|
|
55331
55318
|
const requestRes = client$._createRequest(context, {
|
|
55332
55319
|
security: requestSecurity,
|
|
55333
|
-
method: "
|
|
55320
|
+
method: "GET",
|
|
55334
55321
|
baseURL: options?.serverURL,
|
|
55335
55322
|
path: path$,
|
|
55336
55323
|
headers: headers$,
|
|
55324
|
+
query: query$,
|
|
55337
55325
|
body: body$,
|
|
55338
55326
|
userAgent: client$._options.userAgent,
|
|
55339
55327
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
@@ -55357,40 +55345,40 @@ async function $do9(client$, request, options) {
|
|
|
55357
55345
|
response: doResult.value
|
|
55358
55346
|
}];
|
|
55359
55347
|
}
|
|
55360
|
-
var
|
|
55348
|
+
var init_evalRunsV2EvalRunsList = __esm(() => {
|
|
55361
55349
|
init_encodings();
|
|
55362
55350
|
init_primitives();
|
|
55363
55351
|
init_schemas4();
|
|
55364
55352
|
init_security();
|
|
55365
55353
|
init_url();
|
|
55366
|
-
|
|
55354
|
+
init_v2evalrunslistop();
|
|
55367
55355
|
init_async();
|
|
55368
55356
|
});
|
|
55369
55357
|
|
|
55370
|
-
// src/mcp-server/tools/
|
|
55371
|
-
var args6, tool$
|
|
55372
|
-
var
|
|
55373
|
-
|
|
55374
|
-
|
|
55358
|
+
// src/mcp-server/tools/evalRunsV2EvalRunsList.ts
|
|
55359
|
+
var args6, tool$evalRunsV2EvalRunsList;
|
|
55360
|
+
var init_evalRunsV2EvalRunsList2 = __esm(() => {
|
|
55361
|
+
init_evalRunsV2EvalRunsList();
|
|
55362
|
+
init_v2evalrunslistop();
|
|
55375
55363
|
init_tools();
|
|
55376
55364
|
args6 = {
|
|
55377
|
-
request:
|
|
55365
|
+
request: V2EvalRunsListRequest$zodSchema.optional()
|
|
55378
55366
|
};
|
|
55379
|
-
tool$
|
|
55380
|
-
name: "eval-runs-v2-eval-runs-
|
|
55381
|
-
description: `
|
|
55367
|
+
tool$evalRunsV2EvalRunsList = {
|
|
55368
|
+
name: "eval-runs-v2-eval-runs-list",
|
|
55369
|
+
description: `List Runs
|
|
55382
55370
|
|
|
55383
|
-
|
|
55371
|
+
Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with lifecycle state and progress.`,
|
|
55384
55372
|
annotations: {
|
|
55385
55373
|
title: "",
|
|
55386
55374
|
destructiveHint: false,
|
|
55387
55375
|
idempotentHint: false,
|
|
55388
55376
|
openWorldHint: false,
|
|
55389
|
-
readOnlyHint:
|
|
55377
|
+
readOnlyHint: true
|
|
55390
55378
|
},
|
|
55391
55379
|
args: args6,
|
|
55392
55380
|
tool: async (client, args, ctx) => {
|
|
55393
|
-
const [result] = await
|
|
55381
|
+
const [result] = await evalRunsV2EvalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55394
55382
|
if (!result.ok) {
|
|
55395
55383
|
return {
|
|
55396
55384
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55402,89 +55390,39 @@ Queues a new eval job for one configuration and agent, and returns immediately w
|
|
|
55402
55390
|
};
|
|
55403
55391
|
});
|
|
55404
55392
|
|
|
55405
|
-
// src/models/
|
|
55406
|
-
var
|
|
55407
|
-
var
|
|
55408
|
-
init_zod();
|
|
55409
|
-
PublicEvalRunProgress$zodSchema = object({
|
|
55410
|
-
cancelled: int().default(0),
|
|
55411
|
-
completed: int().default(0),
|
|
55412
|
-
failed: int().default(0),
|
|
55413
|
-
interrupted: int().default(0),
|
|
55414
|
-
percent: number2().default(0).describe("The percentage of child jobs in a terminal state. It can reach `100` while the parent job is still summarizing, so use `status` to detect completion."),
|
|
55415
|
-
queued: int().default(0),
|
|
55416
|
-
running: int().default(0),
|
|
55417
|
-
total: int().default(0)
|
|
55418
|
-
});
|
|
55419
|
-
});
|
|
55420
|
-
|
|
55421
|
-
// src/models/v2evalrun.ts
|
|
55422
|
-
var V2EvalRun$zodSchema;
|
|
55423
|
-
var init_v2evalrun = __esm(() => {
|
|
55424
|
-
init_zod();
|
|
55425
|
-
init_publicevalrunprogress();
|
|
55426
|
-
V2EvalRun$zodSchema = object({
|
|
55427
|
-
completed_at: string2().nullable().optional(),
|
|
55428
|
-
configuration_id: string2().nullable().optional(),
|
|
55429
|
-
created_at: string2().nullable().optional(),
|
|
55430
|
-
dispatch_id: string2().nullable().optional(),
|
|
55431
|
-
error: string2().nullable().optional(),
|
|
55432
|
-
estimated_cost: number2().nullable().optional(),
|
|
55433
|
-
eval_id: string2().nullable().optional(),
|
|
55434
|
-
id: string2(),
|
|
55435
|
-
job_id: string2(),
|
|
55436
|
-
progress: PublicEvalRunProgress$zodSchema.optional(),
|
|
55437
|
-
stage: string2().nullable().optional(),
|
|
55438
|
-
started_at: string2().nullable().optional(),
|
|
55439
|
-
status: string2()
|
|
55440
|
-
});
|
|
55441
|
-
});
|
|
55442
|
-
|
|
55443
|
-
// src/models/v2evalrunsresponse.ts
|
|
55444
|
-
var V2EvalRunsResponse$zodSchema;
|
|
55445
|
-
var init_v2evalrunsresponse = __esm(() => {
|
|
55446
|
-
init_zod();
|
|
55447
|
-
init_v2evalrun();
|
|
55448
|
-
V2EvalRunsResponse$zodSchema = object({
|
|
55449
|
-
count: int(),
|
|
55450
|
-
data: array(V2EvalRun$zodSchema).optional(),
|
|
55451
|
-
limit: int(),
|
|
55452
|
-
offset: int()
|
|
55453
|
-
});
|
|
55454
|
-
});
|
|
55455
|
-
|
|
55456
|
-
// src/models/v2evalrunslistop.ts
|
|
55457
|
-
var V2EvalRunsListRequest$zodSchema, V2EvalRunsListResponse$zodSchema;
|
|
55458
|
-
var init_v2evalrunslistop = __esm(() => {
|
|
55393
|
+
// src/models/v2evalrunsretrieveop.ts
|
|
55394
|
+
var V2EvalRunsRetrieveRequest$zodSchema, V2EvalRunsRetrieveResponse$zodSchema;
|
|
55395
|
+
var init_v2evalrunsretrieveop = __esm(() => {
|
|
55459
55396
|
init_zod();
|
|
55460
55397
|
init_httpvalidationerror();
|
|
55461
|
-
|
|
55462
|
-
|
|
55463
|
-
|
|
55464
|
-
offset: int().default(0)
|
|
55398
|
+
init_v2evalrun();
|
|
55399
|
+
V2EvalRunsRetrieveRequest$zodSchema = object({
|
|
55400
|
+
run_id: string2()
|
|
55465
55401
|
});
|
|
55466
|
-
|
|
55467
|
-
|
|
55402
|
+
V2EvalRunsRetrieveResponse$zodSchema = union([
|
|
55403
|
+
V2EvalRun$zodSchema,
|
|
55468
55404
|
HTTPValidationError$zodSchema
|
|
55469
55405
|
]);
|
|
55470
55406
|
});
|
|
55471
55407
|
|
|
55472
|
-
// src/funcs/
|
|
55473
|
-
function
|
|
55408
|
+
// src/funcs/evalRunsV2EvalRunsRetrieve.ts
|
|
55409
|
+
function evalRunsV2EvalRunsRetrieve(client$, request, options) {
|
|
55474
55410
|
return new APIPromise($do10(client$, request, options));
|
|
55475
55411
|
}
|
|
55476
55412
|
async function $do10(client$, request, options) {
|
|
55477
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
55413
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55478
55414
|
if (!parsed$.ok) {
|
|
55479
55415
|
return [parsed$, { status: "invalid" }];
|
|
55480
55416
|
}
|
|
55481
55417
|
const payload$ = parsed$.value;
|
|
55482
55418
|
const body$ = null;
|
|
55483
|
-
const
|
|
55484
|
-
|
|
55485
|
-
|
|
55486
|
-
|
|
55487
|
-
|
|
55419
|
+
const pathParams$ = {
|
|
55420
|
+
run_id: encodeSimple("run_id", payload$.run_id, {
|
|
55421
|
+
explode: false,
|
|
55422
|
+
charEncoding: "percent"
|
|
55423
|
+
})
|
|
55424
|
+
};
|
|
55425
|
+
const path$ = pathToFunc("/v2/eval-runs/{run_id}")(pathParams$);
|
|
55488
55426
|
const headers$ = new Headers(compactMap({
|
|
55489
55427
|
Accept: "application/json"
|
|
55490
55428
|
}));
|
|
@@ -55493,7 +55431,7 @@ async function $do10(client$, request, options) {
|
|
|
55493
55431
|
const context = {
|
|
55494
55432
|
options: client$._options,
|
|
55495
55433
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55496
|
-
operationID: "
|
|
55434
|
+
operationID: "v2_eval_runs_retrieve",
|
|
55497
55435
|
oAuth2Scopes: null,
|
|
55498
55436
|
resolvedSecurity: requestSecurity,
|
|
55499
55437
|
securitySource: client$._options.security,
|
|
@@ -55512,7 +55450,6 @@ async function $do10(client$, request, options) {
|
|
|
55512
55450
|
baseURL: options?.serverURL,
|
|
55513
55451
|
path: path$,
|
|
55514
55452
|
headers: headers$,
|
|
55515
|
-
query: query$,
|
|
55516
55453
|
body: body$,
|
|
55517
55454
|
userAgent: client$._options.userAgent,
|
|
55518
55455
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
@@ -55536,30 +55473,30 @@ async function $do10(client$, request, options) {
|
|
|
55536
55473
|
response: doResult.value
|
|
55537
55474
|
}];
|
|
55538
55475
|
}
|
|
55539
|
-
var
|
|
55476
|
+
var init_evalRunsV2EvalRunsRetrieve = __esm(() => {
|
|
55540
55477
|
init_encodings();
|
|
55541
55478
|
init_primitives();
|
|
55542
55479
|
init_schemas4();
|
|
55543
55480
|
init_security();
|
|
55544
55481
|
init_url();
|
|
55545
|
-
|
|
55482
|
+
init_v2evalrunsretrieveop();
|
|
55546
55483
|
init_async();
|
|
55547
55484
|
});
|
|
55548
55485
|
|
|
55549
|
-
// src/mcp-server/tools/
|
|
55550
|
-
var args7, tool$
|
|
55551
|
-
var
|
|
55552
|
-
|
|
55553
|
-
|
|
55486
|
+
// src/mcp-server/tools/evalRunsV2EvalRunsRetrieve.ts
|
|
55487
|
+
var args7, tool$evalRunsV2EvalRunsRetrieve;
|
|
55488
|
+
var init_evalRunsV2EvalRunsRetrieve2 = __esm(() => {
|
|
55489
|
+
init_evalRunsV2EvalRunsRetrieve();
|
|
55490
|
+
init_v2evalrunsretrieveop();
|
|
55554
55491
|
init_tools();
|
|
55555
55492
|
args7 = {
|
|
55556
|
-
request:
|
|
55493
|
+
request: V2EvalRunsRetrieveRequest$zodSchema
|
|
55557
55494
|
};
|
|
55558
|
-
tool$
|
|
55559
|
-
name: "eval-runs-v2-eval-runs-
|
|
55560
|
-
description: `
|
|
55495
|
+
tool$evalRunsV2EvalRunsRetrieve = {
|
|
55496
|
+
name: "eval-runs-v2-eval-runs-retrieve",
|
|
55497
|
+
description: `Retrieve Run
|
|
55561
55498
|
|
|
55562
|
-
Returns
|
|
55499
|
+
Returns the status and progress of an eval job. Poll until the status reaches a terminal value.`,
|
|
55563
55500
|
annotations: {
|
|
55564
55501
|
title: "",
|
|
55565
55502
|
destructiveHint: false,
|
|
@@ -55569,7 +55506,7 @@ Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with
|
|
|
55569
55506
|
},
|
|
55570
55507
|
args: args7,
|
|
55571
55508
|
tool: async (client, args, ctx) => {
|
|
55572
|
-
const [result] = await
|
|
55509
|
+
const [result] = await evalRunsV2EvalRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55573
55510
|
if (!result.ok) {
|
|
55574
55511
|
return {
|
|
55575
55512
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55581,48 +55518,54 @@ Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with
|
|
|
55581
55518
|
};
|
|
55582
55519
|
});
|
|
55583
55520
|
|
|
55584
|
-
// src/models/
|
|
55585
|
-
var
|
|
55586
|
-
var
|
|
55521
|
+
// src/models/v2evalrunsmonitorop.ts
|
|
55522
|
+
var Detail$zodSchema, V2EvalRunsMonitorRequest$zodSchema, V2EvalRunsMonitorResponse$zodSchema;
|
|
55523
|
+
var init_v2evalrunsmonitorop = __esm(() => {
|
|
55587
55524
|
init_zod();
|
|
55588
55525
|
init_httpvalidationerror();
|
|
55589
|
-
|
|
55590
|
-
|
|
55591
|
-
|
|
55592
|
-
|
|
55593
|
-
|
|
55594
|
-
|
|
55526
|
+
Detail$zodSchema = _enum([
|
|
55527
|
+
"summary",
|
|
55528
|
+
"verbose"
|
|
55529
|
+
]).describe("Reduced activity or the full sanitized durable trace.");
|
|
55530
|
+
V2EvalRunsMonitorRequest$zodSchema = object({
|
|
55531
|
+
after_id: int().default(0).describe("Durable child-event cursor used when reconnecting."),
|
|
55532
|
+
all: boolean2().default(false).describe("Capture all currently active public v2 eval runs."),
|
|
55533
|
+
detail: Detail$zodSchema.default("summary").describe("Reduced activity or the full sanitized durable trace."),
|
|
55534
|
+
run_id: string2().describe("Parent run ID returned by `POST /v2/eval-runs`.").optional()
|
|
55535
|
+
});
|
|
55536
|
+
V2EvalRunsMonitorResponse$zodSchema = union([
|
|
55537
|
+
string2().describe("A server-sent event stream of eval-run status and activity."),
|
|
55595
55538
|
HTTPValidationError$zodSchema
|
|
55596
55539
|
]);
|
|
55597
55540
|
});
|
|
55598
55541
|
|
|
55599
|
-
// src/funcs/
|
|
55600
|
-
function
|
|
55542
|
+
// src/funcs/evalsMonitor.ts
|
|
55543
|
+
function evalsMonitor(client$, request, options) {
|
|
55601
55544
|
return new APIPromise($do11(client$, request, options));
|
|
55602
55545
|
}
|
|
55603
55546
|
async function $do11(client$, request, options) {
|
|
55604
|
-
const parsed$ = safeParse4(request, (value$) =>
|
|
55547
|
+
const parsed$ = safeParse4(request, (value$) => V2EvalRunsMonitorRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
55605
55548
|
if (!parsed$.ok) {
|
|
55606
55549
|
return [parsed$, { status: "invalid" }];
|
|
55607
55550
|
}
|
|
55608
55551
|
const payload$ = parsed$.value;
|
|
55609
55552
|
const body$ = null;
|
|
55610
|
-
const
|
|
55611
|
-
|
|
55612
|
-
|
|
55613
|
-
|
|
55614
|
-
|
|
55615
|
-
|
|
55616
|
-
|
|
55553
|
+
const path$ = pathToFunc("/v2/eval-runs/monitor")();
|
|
55554
|
+
const query$ = encodeFormQuery({
|
|
55555
|
+
after_id: payload$?.after_id,
|
|
55556
|
+
all: payload$?.all,
|
|
55557
|
+
detail: payload$?.detail,
|
|
55558
|
+
run_id: payload$?.run_id
|
|
55559
|
+
});
|
|
55617
55560
|
const headers$ = new Headers(compactMap({
|
|
55618
|
-
Accept: "application/json"
|
|
55561
|
+
Accept: options?.acceptHeaderOverride || "application/json;q=1, text/event-stream;q=0"
|
|
55619
55562
|
}));
|
|
55620
55563
|
const securityInput = await extractSecurity(client$._options.security);
|
|
55621
55564
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
55622
55565
|
const context = {
|
|
55623
55566
|
options: client$._options,
|
|
55624
55567
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55625
|
-
operationID: "
|
|
55568
|
+
operationID: "v2_eval_runs_monitor",
|
|
55626
55569
|
oAuth2Scopes: null,
|
|
55627
55570
|
resolvedSecurity: requestSecurity,
|
|
55628
55571
|
securitySource: client$._options.security,
|
|
@@ -55641,6 +55584,7 @@ async function $do11(client$, request, options) {
|
|
|
55641
55584
|
baseURL: options?.serverURL,
|
|
55642
55585
|
path: path$,
|
|
55643
55586
|
headers: headers$,
|
|
55587
|
+
query: query$,
|
|
55644
55588
|
body: body$,
|
|
55645
55589
|
userAgent: client$._options.userAgent,
|
|
55646
55590
|
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
@@ -55664,30 +55608,30 @@ async function $do11(client$, request, options) {
|
|
|
55664
55608
|
response: doResult.value
|
|
55665
55609
|
}];
|
|
55666
55610
|
}
|
|
55667
|
-
var
|
|
55611
|
+
var init_evalsMonitor = __esm(() => {
|
|
55668
55612
|
init_encodings();
|
|
55669
55613
|
init_primitives();
|
|
55670
55614
|
init_schemas4();
|
|
55671
55615
|
init_security();
|
|
55672
55616
|
init_url();
|
|
55673
|
-
|
|
55617
|
+
init_v2evalrunsmonitorop();
|
|
55674
55618
|
init_async();
|
|
55675
55619
|
});
|
|
55676
55620
|
|
|
55677
|
-
// src/mcp-server/tools/
|
|
55678
|
-
var args8, tool$
|
|
55679
|
-
var
|
|
55680
|
-
|
|
55681
|
-
|
|
55621
|
+
// src/mcp-server/tools/evalsMonitor.ts
|
|
55622
|
+
var args8, tool$evalsMonitor;
|
|
55623
|
+
var init_evalsMonitor2 = __esm(() => {
|
|
55624
|
+
init_evalsMonitor();
|
|
55625
|
+
init_v2evalrunsmonitorop();
|
|
55682
55626
|
init_tools();
|
|
55683
55627
|
args8 = {
|
|
55684
|
-
request:
|
|
55628
|
+
request: V2EvalRunsMonitorRequest$zodSchema.optional()
|
|
55685
55629
|
};
|
|
55686
|
-
tool$
|
|
55687
|
-
name: "
|
|
55688
|
-
description: `
|
|
55630
|
+
tool$evalsMonitor = {
|
|
55631
|
+
name: "evals-monitor",
|
|
55632
|
+
description: `Monitor Runs
|
|
55689
55633
|
|
|
55690
|
-
|
|
55634
|
+
Streams an immediate snapshot followed by live status and sanitized activity for one public v2 eval run or the active runs captured when the connection opens. Exactly one of \`run_id\` or \`all=true\` is required.`,
|
|
55691
55635
|
annotations: {
|
|
55692
55636
|
title: "",
|
|
55693
55637
|
destructiveHint: false,
|
|
@@ -55697,7 +55641,131 @@ Returns the status and progress of an eval job. Poll until the status reaches a
|
|
|
55697
55641
|
},
|
|
55698
55642
|
args: args8,
|
|
55699
55643
|
tool: async (client, args, ctx) => {
|
|
55700
|
-
const [result] = await
|
|
55644
|
+
const [result] = await evalsMonitor(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55645
|
+
if (!result.ok) {
|
|
55646
|
+
return {
|
|
55647
|
+
content: [{ type: "text", text: result.error.message }],
|
|
55648
|
+
isError: true
|
|
55649
|
+
};
|
|
55650
|
+
}
|
|
55651
|
+
return formatResult(result.value);
|
|
55652
|
+
}
|
|
55653
|
+
};
|
|
55654
|
+
});
|
|
55655
|
+
|
|
55656
|
+
// src/models/createv2evalrunrequest.ts
|
|
55657
|
+
var CreateV2EvalRunRequest$zodSchema;
|
|
55658
|
+
var init_createv2evalrunrequest = __esm(() => {
|
|
55659
|
+
init_zod();
|
|
55660
|
+
CreateV2EvalRunRequest$zodSchema = object({
|
|
55661
|
+
agent_id: string2().describe("Runnable agent ID from `GET /v2/agents`."),
|
|
55662
|
+
configuration_id: string2().optional().describe("Saved runtime configuration. Required when `eval_id` is provided."),
|
|
55663
|
+
env: record(string2(), string2()).optional().describe("Write-only environment variables for a direct run. Values are stored only in the queued job's private configuration."),
|
|
55664
|
+
eval_id: string2().optional().describe("Existing eval definition to run. Omit to create and run an eval directly."),
|
|
55665
|
+
judges: array(string2()).optional().describe("Success criteria for a direct create-and-run request. CLI clients may expose this string array as a repeatable `--judge` flag."),
|
|
55666
|
+
prompt: string2().optional().describe("Task prompt for a direct create-and-run request."),
|
|
55667
|
+
repository: string2().optional().describe("Repository for a direct run: a saved repository ID, built-in alias such as `nextjs-starter`, or a public GitHub HTTPS URL."),
|
|
55668
|
+
skills: array(string2()).optional().describe("Public skill packages to install before the agent starts, using GitHub `owner/repository` references such as `resend/resend-skills`.")
|
|
55669
|
+
});
|
|
55670
|
+
});
|
|
55671
|
+
|
|
55672
|
+
// src/funcs/evalsRun.ts
|
|
55673
|
+
function evalsRun(client$, request, options) {
|
|
55674
|
+
return new APIPromise($do12(client$, request, options));
|
|
55675
|
+
}
|
|
55676
|
+
async function $do12(client$, request, options) {
|
|
55677
|
+
const parsed$ = safeParse4(request, (value$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55678
|
+
if (!parsed$.ok) {
|
|
55679
|
+
return [parsed$, { status: "invalid" }];
|
|
55680
|
+
}
|
|
55681
|
+
const payload$ = parsed$.value;
|
|
55682
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
55683
|
+
const path$ = pathToFunc("/v2/eval-runs")();
|
|
55684
|
+
const headers$ = new Headers(compactMap({
|
|
55685
|
+
"Content-Type": "application/json",
|
|
55686
|
+
Accept: "application/json"
|
|
55687
|
+
}));
|
|
55688
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
55689
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
55690
|
+
const context = {
|
|
55691
|
+
options: client$._options,
|
|
55692
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
55693
|
+
operationID: "v2_eval_runs_create",
|
|
55694
|
+
oAuth2Scopes: null,
|
|
55695
|
+
resolvedSecurity: requestSecurity,
|
|
55696
|
+
securitySource: client$._options.security,
|
|
55697
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
55698
|
+
retryCodes: options?.retryCodes || [
|
|
55699
|
+
"429",
|
|
55700
|
+
"500",
|
|
55701
|
+
"502",
|
|
55702
|
+
"503",
|
|
55703
|
+
"504"
|
|
55704
|
+
]
|
|
55705
|
+
};
|
|
55706
|
+
const requestRes = client$._createRequest(context, {
|
|
55707
|
+
security: requestSecurity,
|
|
55708
|
+
method: "POST",
|
|
55709
|
+
baseURL: options?.serverURL,
|
|
55710
|
+
path: path$,
|
|
55711
|
+
headers: headers$,
|
|
55712
|
+
body: body$,
|
|
55713
|
+
userAgent: client$._options.userAgent,
|
|
55714
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
55715
|
+
}, options);
|
|
55716
|
+
if (!requestRes.ok) {
|
|
55717
|
+
return [requestRes, { status: "invalid" }];
|
|
55718
|
+
}
|
|
55719
|
+
const req$ = requestRes.value;
|
|
55720
|
+
const doResult = await client$._do(req$, {
|
|
55721
|
+
context,
|
|
55722
|
+
errorCodes: [],
|
|
55723
|
+
retryConfig: context.retryConfig,
|
|
55724
|
+
retryCodes: context.retryCodes
|
|
55725
|
+
});
|
|
55726
|
+
if (!doResult.ok) {
|
|
55727
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
55728
|
+
}
|
|
55729
|
+
return [doResult, {
|
|
55730
|
+
status: "complete",
|
|
55731
|
+
request: req$,
|
|
55732
|
+
response: doResult.value
|
|
55733
|
+
}];
|
|
55734
|
+
}
|
|
55735
|
+
var init_evalsRun = __esm(() => {
|
|
55736
|
+
init_encodings();
|
|
55737
|
+
init_primitives();
|
|
55738
|
+
init_schemas4();
|
|
55739
|
+
init_security();
|
|
55740
|
+
init_url();
|
|
55741
|
+
init_createv2evalrunrequest();
|
|
55742
|
+
init_async();
|
|
55743
|
+
});
|
|
55744
|
+
|
|
55745
|
+
// src/mcp-server/tools/evalsRun.ts
|
|
55746
|
+
var args9, tool$evalsRun;
|
|
55747
|
+
var init_evalsRun2 = __esm(() => {
|
|
55748
|
+
init_evalsRun();
|
|
55749
|
+
init_createv2evalrunrequest();
|
|
55750
|
+
init_tools();
|
|
55751
|
+
args9 = {
|
|
55752
|
+
request: CreateV2EvalRunRequest$zodSchema
|
|
55753
|
+
};
|
|
55754
|
+
tool$evalsRun = {
|
|
55755
|
+
name: "evals-run",
|
|
55756
|
+
description: `Create Run
|
|
55757
|
+
|
|
55758
|
+
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. Choose exactly one request mode. For saved mode, provide \`eval_id\`, \`configuration_id\`, and \`agent_id\`. For direct mode, omit \`eval_id\` and provide \`prompt\`, \`judges\`, and \`agent_id\`. Direct runs may also provide a repository, write-only environment variables, and public skill packages.`,
|
|
55759
|
+
annotations: {
|
|
55760
|
+
title: "",
|
|
55761
|
+
destructiveHint: false,
|
|
55762
|
+
idempotentHint: false,
|
|
55763
|
+
openWorldHint: false,
|
|
55764
|
+
readOnlyHint: false
|
|
55765
|
+
},
|
|
55766
|
+
args: args9,
|
|
55767
|
+
tool: async (client, args, ctx) => {
|
|
55768
|
+
const [result] = await evalsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55701
55769
|
if (!result.ok) {
|
|
55702
55770
|
return {
|
|
55703
55771
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -55720,7 +55788,8 @@ var init_createv2evalconfigurationrequest = __esm(() => {
|
|
|
55720
55788
|
mcp_server_ids: array(string2()).optional(),
|
|
55721
55789
|
name: string2(),
|
|
55722
55790
|
repository_id: string2().optional(),
|
|
55723
|
-
skill_ids: array(string2()).optional()
|
|
55791
|
+
skill_ids: array(string2()).optional(),
|
|
55792
|
+
skills: array(string2()).optional().describe("Public skill packages saved with this configuration, using GitHub `owner/repository` references such as `resend/resend-skills`.")
|
|
55724
55793
|
});
|
|
55725
55794
|
});
|
|
55726
55795
|
|
|
@@ -55739,6 +55808,7 @@ var init_v2evalconfiguration = __esm(() => {
|
|
|
55739
55808
|
name: string2(),
|
|
55740
55809
|
repository_id: string2().nullable().optional(),
|
|
55741
55810
|
skill_ids: array(string2()).optional(),
|
|
55811
|
+
skills: array(string2()).optional().describe("Public GitHub `owner/repository` skill packages installed for this configuration."),
|
|
55742
55812
|
updated_at: string2().nullable().optional()
|
|
55743
55813
|
});
|
|
55744
55814
|
});
|
|
@@ -55762,9 +55832,9 @@ var init_v2evalconfigurationscreateop = __esm(() => {
|
|
|
55762
55832
|
|
|
55763
55833
|
// src/funcs/evalsV2EvalConfigurationsCreate.ts
|
|
55764
55834
|
function evalsV2EvalConfigurationsCreate(client$, request, options) {
|
|
55765
|
-
return new APIPromise($
|
|
55835
|
+
return new APIPromise($do13(client$, request, options));
|
|
55766
55836
|
}
|
|
55767
|
-
async function $
|
|
55837
|
+
async function $do13(client$, request, options) {
|
|
55768
55838
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsCreateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55769
55839
|
if (!parsed$.ok) {
|
|
55770
55840
|
return [parsed$, { status: "invalid" }];
|
|
@@ -55840,12 +55910,12 @@ var init_evalsV2EvalConfigurationsCreate = __esm(() => {
|
|
|
55840
55910
|
});
|
|
55841
55911
|
|
|
55842
55912
|
// src/mcp-server/tools/evalsV2EvalConfigurationsCreate.ts
|
|
55843
|
-
var
|
|
55913
|
+
var args10, tool$evalsV2EvalConfigurationsCreate;
|
|
55844
55914
|
var init_evalsV2EvalConfigurationsCreate2 = __esm(() => {
|
|
55845
55915
|
init_evalsV2EvalConfigurationsCreate();
|
|
55846
55916
|
init_v2evalconfigurationscreateop();
|
|
55847
55917
|
init_tools();
|
|
55848
|
-
|
|
55918
|
+
args10 = {
|
|
55849
55919
|
request: V2EvalConfigurationsCreateRequest$zodSchema
|
|
55850
55920
|
};
|
|
55851
55921
|
tool$evalsV2EvalConfigurationsCreate = {
|
|
@@ -55860,7 +55930,7 @@ Creates a saved runtime configuration that pairs an eval with a repository, envi
|
|
|
55860
55930
|
openWorldHint: false,
|
|
55861
55931
|
readOnlyHint: false
|
|
55862
55932
|
},
|
|
55863
|
-
args:
|
|
55933
|
+
args: args10,
|
|
55864
55934
|
tool: async (client, args, ctx) => {
|
|
55865
55935
|
const [result] = await evalsV2EvalConfigurationsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55866
55936
|
if (!result.ok) {
|
|
@@ -55892,9 +55962,9 @@ var init_v2evalconfigurationsdeleteop = __esm(() => {
|
|
|
55892
55962
|
|
|
55893
55963
|
// src/funcs/evalsV2EvalConfigurationsDelete.ts
|
|
55894
55964
|
function evalsV2EvalConfigurationsDelete(client$, request, options) {
|
|
55895
|
-
return new APIPromise($
|
|
55965
|
+
return new APIPromise($do14(client$, request, options));
|
|
55896
55966
|
}
|
|
55897
|
-
async function $
|
|
55967
|
+
async function $do14(client$, request, options) {
|
|
55898
55968
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
55899
55969
|
if (!parsed$.ok) {
|
|
55900
55970
|
return [parsed$, { status: "invalid" }];
|
|
@@ -55970,12 +56040,12 @@ var init_evalsV2EvalConfigurationsDelete = __esm(() => {
|
|
|
55970
56040
|
});
|
|
55971
56041
|
|
|
55972
56042
|
// src/mcp-server/tools/evalsV2EvalConfigurationsDelete.ts
|
|
55973
|
-
var
|
|
56043
|
+
var args11, tool$evalsV2EvalConfigurationsDelete;
|
|
55974
56044
|
var init_evalsV2EvalConfigurationsDelete2 = __esm(() => {
|
|
55975
56045
|
init_evalsV2EvalConfigurationsDelete();
|
|
55976
56046
|
init_v2evalconfigurationsdeleteop();
|
|
55977
56047
|
init_tools();
|
|
55978
|
-
|
|
56048
|
+
args11 = {
|
|
55979
56049
|
request: V2EvalConfigurationsDeleteRequest$zodSchema
|
|
55980
56050
|
};
|
|
55981
56051
|
tool$evalsV2EvalConfigurationsDelete = {
|
|
@@ -55990,7 +56060,7 @@ Permanently deletes an eval configuration and returns its last saved state.`,
|
|
|
55990
56060
|
openWorldHint: false,
|
|
55991
56061
|
readOnlyHint: false
|
|
55992
56062
|
},
|
|
55993
|
-
args:
|
|
56063
|
+
args: args11,
|
|
55994
56064
|
tool: async (client, args, ctx) => {
|
|
55995
56065
|
const [result] = await evalsV2EvalConfigurationsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
55996
56066
|
if (!result.ok) {
|
|
@@ -56032,9 +56102,9 @@ var init_v2evalconfigurationslistop = __esm(() => {
|
|
|
56032
56102
|
|
|
56033
56103
|
// src/funcs/evalsV2EvalConfigurationsList.ts
|
|
56034
56104
|
function evalsV2EvalConfigurationsList(client$, request, options) {
|
|
56035
|
-
return new APIPromise($
|
|
56105
|
+
return new APIPromise($do15(client$, request, options));
|
|
56036
56106
|
}
|
|
56037
|
-
async function $
|
|
56107
|
+
async function $do15(client$, request, options) {
|
|
56038
56108
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsListRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56039
56109
|
if (!parsed$.ok) {
|
|
56040
56110
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56109,12 +56179,12 @@ var init_evalsV2EvalConfigurationsList = __esm(() => {
|
|
|
56109
56179
|
});
|
|
56110
56180
|
|
|
56111
56181
|
// src/mcp-server/tools/evalsV2EvalConfigurationsList.ts
|
|
56112
|
-
var
|
|
56182
|
+
var args12, tool$evalsV2EvalConfigurationsList;
|
|
56113
56183
|
var init_evalsV2EvalConfigurationsList2 = __esm(() => {
|
|
56114
56184
|
init_evalsV2EvalConfigurationsList();
|
|
56115
56185
|
init_v2evalconfigurationslistop();
|
|
56116
56186
|
init_tools();
|
|
56117
|
-
|
|
56187
|
+
args12 = {
|
|
56118
56188
|
request: V2EvalConfigurationsListRequest$zodSchema
|
|
56119
56189
|
};
|
|
56120
56190
|
tool$evalsV2EvalConfigurationsList = {
|
|
@@ -56129,7 +56199,7 @@ Returns the saved runtime configurations for an eval, including repository, envi
|
|
|
56129
56199
|
openWorldHint: false,
|
|
56130
56200
|
readOnlyHint: true
|
|
56131
56201
|
},
|
|
56132
|
-
args:
|
|
56202
|
+
args: args12,
|
|
56133
56203
|
tool: async (client, args, ctx) => {
|
|
56134
56204
|
const [result] = await evalsV2EvalConfigurationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56135
56205
|
if (!result.ok) {
|
|
@@ -56161,9 +56231,9 @@ var init_v2evalconfigurationsretrieveop = __esm(() => {
|
|
|
56161
56231
|
|
|
56162
56232
|
// src/funcs/evalsV2EvalConfigurationsRetrieve.ts
|
|
56163
56233
|
function evalsV2EvalConfigurationsRetrieve(client$, request, options) {
|
|
56164
|
-
return new APIPromise($
|
|
56234
|
+
return new APIPromise($do16(client$, request, options));
|
|
56165
56235
|
}
|
|
56166
|
-
async function $
|
|
56236
|
+
async function $do16(client$, request, options) {
|
|
56167
56237
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56168
56238
|
if (!parsed$.ok) {
|
|
56169
56239
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56239,12 +56309,12 @@ var init_evalsV2EvalConfigurationsRetrieve = __esm(() => {
|
|
|
56239
56309
|
});
|
|
56240
56310
|
|
|
56241
56311
|
// src/mcp-server/tools/evalsV2EvalConfigurationsRetrieve.ts
|
|
56242
|
-
var
|
|
56312
|
+
var args13, tool$evalsV2EvalConfigurationsRetrieve;
|
|
56243
56313
|
var init_evalsV2EvalConfigurationsRetrieve2 = __esm(() => {
|
|
56244
56314
|
init_evalsV2EvalConfigurationsRetrieve();
|
|
56245
56315
|
init_v2evalconfigurationsretrieveop();
|
|
56246
56316
|
init_tools();
|
|
56247
|
-
|
|
56317
|
+
args13 = {
|
|
56248
56318
|
request: V2EvalConfigurationsRetrieveRequest$zodSchema
|
|
56249
56319
|
};
|
|
56250
56320
|
tool$evalsV2EvalConfigurationsRetrieve = {
|
|
@@ -56259,7 +56329,7 @@ Returns one saved configuration for an eval.`,
|
|
|
56259
56329
|
openWorldHint: false,
|
|
56260
56330
|
readOnlyHint: true
|
|
56261
56331
|
},
|
|
56262
|
-
args:
|
|
56332
|
+
args: args13,
|
|
56263
56333
|
tool: async (client, args, ctx) => {
|
|
56264
56334
|
const [result] = await evalsV2EvalConfigurationsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56265
56335
|
if (!result.ok) {
|
|
@@ -56284,7 +56354,8 @@ var init_updatev2evalconfigurationrequest = __esm(() => {
|
|
|
56284
56354
|
mcp_server_ids: array(string2()).nullable().optional(),
|
|
56285
56355
|
name: string2().optional(),
|
|
56286
56356
|
repository_id: string2().optional(),
|
|
56287
|
-
skill_ids: array(string2()).nullable().optional()
|
|
56357
|
+
skill_ids: array(string2()).nullable().optional(),
|
|
56358
|
+
skills: array(string2()).nullable().optional().describe("Public skill packages saved with this configuration, using GitHub `owner/repository` references.")
|
|
56288
56359
|
});
|
|
56289
56360
|
});
|
|
56290
56361
|
|
|
@@ -56308,9 +56379,9 @@ var init_v2evalconfigurationsupdateop = __esm(() => {
|
|
|
56308
56379
|
|
|
56309
56380
|
// src/funcs/evalsV2EvalConfigurationsUpdate.ts
|
|
56310
56381
|
function evalsV2EvalConfigurationsUpdate(client$, request, options) {
|
|
56311
|
-
return new APIPromise($
|
|
56382
|
+
return new APIPromise($do17(client$, request, options));
|
|
56312
56383
|
}
|
|
56313
|
-
async function $
|
|
56384
|
+
async function $do17(client$, request, options) {
|
|
56314
56385
|
const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56315
56386
|
if (!parsed$.ok) {
|
|
56316
56387
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56387,12 +56458,12 @@ var init_evalsV2EvalConfigurationsUpdate = __esm(() => {
|
|
|
56387
56458
|
});
|
|
56388
56459
|
|
|
56389
56460
|
// src/mcp-server/tools/evalsV2EvalConfigurationsUpdate.ts
|
|
56390
|
-
var
|
|
56461
|
+
var args14, tool$evalsV2EvalConfigurationsUpdate;
|
|
56391
56462
|
var init_evalsV2EvalConfigurationsUpdate2 = __esm(() => {
|
|
56392
56463
|
init_evalsV2EvalConfigurationsUpdate();
|
|
56393
56464
|
init_v2evalconfigurationsupdateop();
|
|
56394
56465
|
init_tools();
|
|
56395
|
-
|
|
56466
|
+
args14 = {
|
|
56396
56467
|
request: V2EvalConfigurationsUpdateRequest$zodSchema
|
|
56397
56468
|
};
|
|
56398
56469
|
tool$evalsV2EvalConfigurationsUpdate = {
|
|
@@ -56407,7 +56478,7 @@ Updates an eval configuration; omitted fields remain unchanged.`,
|
|
|
56407
56478
|
openWorldHint: false,
|
|
56408
56479
|
readOnlyHint: false
|
|
56409
56480
|
},
|
|
56410
|
-
args:
|
|
56481
|
+
args: args14,
|
|
56411
56482
|
tool: async (client, args, ctx) => {
|
|
56412
56483
|
const [result] = await evalsV2EvalConfigurationsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56413
56484
|
if (!result.ok) {
|
|
@@ -56454,9 +56525,9 @@ var init_createv2evalrequest = __esm(() => {
|
|
|
56454
56525
|
|
|
56455
56526
|
// src/funcs/evalsV2EvalsCreate.ts
|
|
56456
56527
|
function evalsV2EvalsCreate(client$, request, options) {
|
|
56457
|
-
return new APIPromise($
|
|
56528
|
+
return new APIPromise($do18(client$, request, options));
|
|
56458
56529
|
}
|
|
56459
|
-
async function $
|
|
56530
|
+
async function $do18(client$, request, options) {
|
|
56460
56531
|
const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56461
56532
|
if (!parsed$.ok) {
|
|
56462
56533
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56526,12 +56597,12 @@ var init_evalsV2EvalsCreate = __esm(() => {
|
|
|
56526
56597
|
});
|
|
56527
56598
|
|
|
56528
56599
|
// src/mcp-server/tools/evalsV2EvalsCreate.ts
|
|
56529
|
-
var
|
|
56600
|
+
var args15, tool$evalsV2EvalsCreate;
|
|
56530
56601
|
var init_evalsV2EvalsCreate2 = __esm(() => {
|
|
56531
56602
|
init_evalsV2EvalsCreate();
|
|
56532
56603
|
init_createv2evalrequest();
|
|
56533
56604
|
init_tools();
|
|
56534
|
-
|
|
56605
|
+
args15 = {
|
|
56535
56606
|
request: CreateV2EvalRequest$zodSchema
|
|
56536
56607
|
};
|
|
56537
56608
|
tool$evalsV2EvalsCreate = {
|
|
@@ -56546,7 +56617,7 @@ Creates an eval with a task prompt, subject, and judge. The eval can then be run
|
|
|
56546
56617
|
openWorldHint: false,
|
|
56547
56618
|
readOnlyHint: false
|
|
56548
56619
|
},
|
|
56549
|
-
args:
|
|
56620
|
+
args: args15,
|
|
56550
56621
|
tool: async (client, args, ctx) => {
|
|
56551
56622
|
const [result] = await evalsV2EvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56552
56623
|
if (!result.ok) {
|
|
@@ -56602,9 +56673,9 @@ var init_v2evalsdeleteop = __esm(() => {
|
|
|
56602
56673
|
|
|
56603
56674
|
// src/funcs/evalsV2EvalsDelete.ts
|
|
56604
56675
|
function evalsV2EvalsDelete(client$, request, options) {
|
|
56605
|
-
return new APIPromise($
|
|
56676
|
+
return new APIPromise($do19(client$, request, options));
|
|
56606
56677
|
}
|
|
56607
|
-
async function $
|
|
56678
|
+
async function $do19(client$, request, options) {
|
|
56608
56679
|
const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56609
56680
|
if (!parsed$.ok) {
|
|
56610
56681
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56679,12 +56750,12 @@ var init_evalsV2EvalsDelete = __esm(() => {
|
|
|
56679
56750
|
});
|
|
56680
56751
|
|
|
56681
56752
|
// src/mcp-server/tools/evalsV2EvalsDelete.ts
|
|
56682
|
-
var
|
|
56753
|
+
var args16, tool$evalsV2EvalsDelete;
|
|
56683
56754
|
var init_evalsV2EvalsDelete2 = __esm(() => {
|
|
56684
56755
|
init_evalsV2EvalsDelete();
|
|
56685
56756
|
init_v2evalsdeleteop();
|
|
56686
56757
|
init_tools();
|
|
56687
|
-
|
|
56758
|
+
args16 = {
|
|
56688
56759
|
request: V2EvalsDeleteRequest$zodSchema
|
|
56689
56760
|
};
|
|
56690
56761
|
tool$evalsV2EvalsDelete = {
|
|
@@ -56699,7 +56770,7 @@ Permanently deletes an eval and all of its saved configurations.`,
|
|
|
56699
56770
|
openWorldHint: false,
|
|
56700
56771
|
readOnlyHint: false
|
|
56701
56772
|
},
|
|
56702
|
-
args:
|
|
56773
|
+
args: args16,
|
|
56703
56774
|
tool: async (client, args, ctx) => {
|
|
56704
56775
|
const [result] = await evalsV2EvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56705
56776
|
if (!result.ok) {
|
|
@@ -56715,9 +56786,9 @@ Permanently deletes an eval and all of its saved configurations.`,
|
|
|
56715
56786
|
|
|
56716
56787
|
// src/funcs/evalsV2EvalsList.ts
|
|
56717
56788
|
function evalsV2EvalsList(client$, options) {
|
|
56718
|
-
return new APIPromise($
|
|
56789
|
+
return new APIPromise($do20(client$, options));
|
|
56719
56790
|
}
|
|
56720
|
-
async function $
|
|
56791
|
+
async function $do20(client$, options) {
|
|
56721
56792
|
const path$ = pathToFunc("/v2/evals")();
|
|
56722
56793
|
const headers$ = new Headers(compactMap({
|
|
56723
56794
|
Accept: "application/json"
|
|
@@ -56822,9 +56893,9 @@ var init_v2evalsretrieveop = __esm(() => {
|
|
|
56822
56893
|
|
|
56823
56894
|
// src/funcs/evalsV2EvalsRetrieve.ts
|
|
56824
56895
|
function evalsV2EvalsRetrieve(client$, request, options) {
|
|
56825
|
-
return new APIPromise($
|
|
56896
|
+
return new APIPromise($do21(client$, request, options));
|
|
56826
56897
|
}
|
|
56827
|
-
async function $
|
|
56898
|
+
async function $do21(client$, request, options) {
|
|
56828
56899
|
const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56829
56900
|
if (!parsed$.ok) {
|
|
56830
56901
|
return [parsed$, { status: "invalid" }];
|
|
@@ -56899,12 +56970,12 @@ var init_evalsV2EvalsRetrieve = __esm(() => {
|
|
|
56899
56970
|
});
|
|
56900
56971
|
|
|
56901
56972
|
// src/mcp-server/tools/evalsV2EvalsRetrieve.ts
|
|
56902
|
-
var
|
|
56973
|
+
var args17, tool$evalsV2EvalsRetrieve;
|
|
56903
56974
|
var init_evalsV2EvalsRetrieve2 = __esm(() => {
|
|
56904
56975
|
init_evalsV2EvalsRetrieve();
|
|
56905
56976
|
init_v2evalsretrieveop();
|
|
56906
56977
|
init_tools();
|
|
56907
|
-
|
|
56978
|
+
args17 = {
|
|
56908
56979
|
request: V2EvalsRetrieveRequest$zodSchema
|
|
56909
56980
|
};
|
|
56910
56981
|
tool$evalsV2EvalsRetrieve = {
|
|
@@ -56919,7 +56990,7 @@ Returns one eval and its judge configuration.`,
|
|
|
56919
56990
|
openWorldHint: false,
|
|
56920
56991
|
readOnlyHint: true
|
|
56921
56992
|
},
|
|
56922
|
-
args:
|
|
56993
|
+
args: args17,
|
|
56923
56994
|
tool: async (client, args, ctx) => {
|
|
56924
56995
|
const [result] = await evalsV2EvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
56925
56996
|
if (!result.ok) {
|
|
@@ -56974,9 +57045,9 @@ var init_v2evalsupdateop = __esm(() => {
|
|
|
56974
57045
|
|
|
56975
57046
|
// src/funcs/evalsV2EvalsUpdate.ts
|
|
56976
57047
|
function evalsV2EvalsUpdate(client$, request, options) {
|
|
56977
|
-
return new APIPromise($
|
|
57048
|
+
return new APIPromise($do22(client$, request, options));
|
|
56978
57049
|
}
|
|
56979
|
-
async function $
|
|
57050
|
+
async function $do22(client$, request, options) {
|
|
56980
57051
|
const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
56981
57052
|
if (!parsed$.ok) {
|
|
56982
57053
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57052,12 +57123,12 @@ var init_evalsV2EvalsUpdate = __esm(() => {
|
|
|
57052
57123
|
});
|
|
57053
57124
|
|
|
57054
57125
|
// src/mcp-server/tools/evalsV2EvalsUpdate.ts
|
|
57055
|
-
var
|
|
57126
|
+
var args18, tool$evalsV2EvalsUpdate;
|
|
57056
57127
|
var init_evalsV2EvalsUpdate2 = __esm(() => {
|
|
57057
57128
|
init_evalsV2EvalsUpdate();
|
|
57058
57129
|
init_v2evalsupdateop();
|
|
57059
57130
|
init_tools();
|
|
57060
|
-
|
|
57131
|
+
args18 = {
|
|
57061
57132
|
request: V2EvalsUpdateRequest$zodSchema
|
|
57062
57133
|
};
|
|
57063
57134
|
tool$evalsV2EvalsUpdate = {
|
|
@@ -57072,7 +57143,7 @@ Updates an eval's task prompt, subject, judge, or name. Omitted fields remain un
|
|
|
57072
57143
|
openWorldHint: false,
|
|
57073
57144
|
readOnlyHint: false
|
|
57074
57145
|
},
|
|
57075
|
-
args:
|
|
57146
|
+
args: args18,
|
|
57076
57147
|
tool: async (client, args, ctx) => {
|
|
57077
57148
|
const [result] = await evalsV2EvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57078
57149
|
if (!result.ok) {
|
|
@@ -57088,9 +57159,9 @@ Updates an eval's task prompt, subject, judge, or name. Omitted fields remain un
|
|
|
57088
57159
|
|
|
57089
57160
|
// src/funcs/mcpServersV2MCPServersList.ts
|
|
57090
57161
|
function mcpServersV2MCPServersList(client$, options) {
|
|
57091
|
-
return new APIPromise($
|
|
57162
|
+
return new APIPromise($do23(client$, options));
|
|
57092
57163
|
}
|
|
57093
|
-
async function $
|
|
57164
|
+
async function $do23(client$, options) {
|
|
57094
57165
|
const path$ = pathToFunc("/v2/mcp-servers")();
|
|
57095
57166
|
const headers$ = new Headers(compactMap({
|
|
57096
57167
|
Accept: "application/json"
|
|
@@ -57272,9 +57343,9 @@ var init_v2opportunitieslistop = __esm(() => {
|
|
|
57272
57343
|
|
|
57273
57344
|
// src/funcs/opportunitiesV2OpportunitiesList.ts
|
|
57274
57345
|
function opportunitiesV2OpportunitiesList(client$, request, options) {
|
|
57275
|
-
return new APIPromise($
|
|
57346
|
+
return new APIPromise($do24(client$, request, options));
|
|
57276
57347
|
}
|
|
57277
|
-
async function $
|
|
57348
|
+
async function $do24(client$, request, options) {
|
|
57278
57349
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
57279
57350
|
if (!parsed$.ok) {
|
|
57280
57351
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57352,12 +57423,12 @@ var init_opportunitiesV2OpportunitiesList = __esm(() => {
|
|
|
57352
57423
|
});
|
|
57353
57424
|
|
|
57354
57425
|
// src/mcp-server/tools/opportunitiesV2OpportunitiesList.ts
|
|
57355
|
-
var
|
|
57426
|
+
var args19, tool$opportunitiesV2OpportunitiesList;
|
|
57356
57427
|
var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
|
|
57357
57428
|
init_opportunitiesV2OpportunitiesList();
|
|
57358
57429
|
init_v2opportunitieslistop();
|
|
57359
57430
|
init_tools();
|
|
57360
|
-
|
|
57431
|
+
args19 = {
|
|
57361
57432
|
request: V2OpportunitiesListRequest$zodSchema.optional()
|
|
57362
57433
|
};
|
|
57363
57434
|
tool$opportunitiesV2OpportunitiesList = {
|
|
@@ -57372,7 +57443,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
|
|
|
57372
57443
|
openWorldHint: false,
|
|
57373
57444
|
readOnlyHint: true
|
|
57374
57445
|
},
|
|
57375
|
-
args:
|
|
57446
|
+
args: args19,
|
|
57376
57447
|
tool: async (client, args, ctx) => {
|
|
57377
57448
|
const [result] = await opportunitiesV2OpportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57378
57449
|
if (!result.ok) {
|
|
@@ -57444,9 +57515,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
|
|
|
57444
57515
|
|
|
57445
57516
|
// src/funcs/opportunitiesV2OpportunitiesRetrieve.ts
|
|
57446
57517
|
function opportunitiesV2OpportunitiesRetrieve(client$, request, options) {
|
|
57447
|
-
return new APIPromise($
|
|
57518
|
+
return new APIPromise($do25(client$, request, options));
|
|
57448
57519
|
}
|
|
57449
|
-
async function $
|
|
57520
|
+
async function $do25(client$, request, options) {
|
|
57450
57521
|
const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57451
57522
|
if (!parsed$.ok) {
|
|
57452
57523
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57527,12 +57598,12 @@ var init_opportunitiesV2OpportunitiesRetrieve = __esm(() => {
|
|
|
57527
57598
|
});
|
|
57528
57599
|
|
|
57529
57600
|
// src/mcp-server/tools/opportunitiesV2OpportunitiesRetrieve.ts
|
|
57530
|
-
var
|
|
57601
|
+
var args20, tool$opportunitiesV2OpportunitiesRetrieve;
|
|
57531
57602
|
var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
|
|
57532
57603
|
init_opportunitiesV2OpportunitiesRetrieve();
|
|
57533
57604
|
init_v2opportunitiesretrieveop();
|
|
57534
57605
|
init_tools();
|
|
57535
|
-
|
|
57606
|
+
args20 = {
|
|
57536
57607
|
request: V2OpportunitiesRetrieveRequest$zodSchema
|
|
57537
57608
|
};
|
|
57538
57609
|
tool$opportunitiesV2OpportunitiesRetrieve = {
|
|
@@ -57547,7 +57618,7 @@ Returns one computed opportunity and its execution context for the selected date
|
|
|
57547
57618
|
openWorldHint: false,
|
|
57548
57619
|
readOnlyHint: true
|
|
57549
57620
|
},
|
|
57550
|
-
args:
|
|
57621
|
+
args: args20,
|
|
57551
57622
|
tool: async (client, args, ctx) => {
|
|
57552
57623
|
const [result] = await opportunitiesV2OpportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57553
57624
|
if (!result.ok) {
|
|
@@ -57655,9 +57726,9 @@ var init_v2promptrunslistop = __esm(() => {
|
|
|
57655
57726
|
|
|
57656
57727
|
// src/funcs/promptsV2PromptRunsList.ts
|
|
57657
57728
|
function promptsV2PromptRunsList(client$, request, options) {
|
|
57658
|
-
return new APIPromise($
|
|
57729
|
+
return new APIPromise($do26(client$, request, options));
|
|
57659
57730
|
}
|
|
57660
|
-
async function $
|
|
57731
|
+
async function $do26(client$, request, options) {
|
|
57661
57732
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
57662
57733
|
if (!parsed$.ok) {
|
|
57663
57734
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57735,12 +57806,12 @@ var init_promptsV2PromptRunsList = __esm(() => {
|
|
|
57735
57806
|
});
|
|
57736
57807
|
|
|
57737
57808
|
// src/mcp-server/tools/promptsV2PromptRunsList.ts
|
|
57738
|
-
var
|
|
57809
|
+
var args21, tool$promptsV2PromptRunsList;
|
|
57739
57810
|
var init_promptsV2PromptRunsList2 = __esm(() => {
|
|
57740
57811
|
init_promptsV2PromptRunsList();
|
|
57741
57812
|
init_v2promptrunslistop();
|
|
57742
57813
|
init_tools();
|
|
57743
|
-
|
|
57814
|
+
args21 = {
|
|
57744
57815
|
request: V2PromptRunsListRequest$zodSchema.optional()
|
|
57745
57816
|
};
|
|
57746
57817
|
tool$promptsV2PromptRunsList = {
|
|
@@ -57755,7 +57826,7 @@ Returns stored prompt runs without exposing raw runtime or provider configuratio
|
|
|
57755
57826
|
openWorldHint: false,
|
|
57756
57827
|
readOnlyHint: true
|
|
57757
57828
|
},
|
|
57758
|
-
args:
|
|
57829
|
+
args: args21,
|
|
57759
57830
|
tool: async (client, args, ctx) => {
|
|
57760
57831
|
const [result] = await promptsV2PromptRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57761
57832
|
if (!result.ok) {
|
|
@@ -57860,9 +57931,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
|
|
|
57860
57931
|
|
|
57861
57932
|
// src/funcs/promptsV2PromptRunsRetrieve.ts
|
|
57862
57933
|
function promptsV2PromptRunsRetrieve(client$, request, options) {
|
|
57863
|
-
return new APIPromise($
|
|
57934
|
+
return new APIPromise($do27(client$, request, options));
|
|
57864
57935
|
}
|
|
57865
|
-
async function $
|
|
57936
|
+
async function $do27(client$, request, options) {
|
|
57866
57937
|
const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
57867
57938
|
if (!parsed$.ok) {
|
|
57868
57939
|
return [parsed$, { status: "invalid" }];
|
|
@@ -57937,12 +58008,12 @@ var init_promptsV2PromptRunsRetrieve = __esm(() => {
|
|
|
57937
58008
|
});
|
|
57938
58009
|
|
|
57939
58010
|
// src/mcp-server/tools/promptsV2PromptRunsRetrieve.ts
|
|
57940
|
-
var
|
|
58011
|
+
var args22, tool$promptsV2PromptRunsRetrieve;
|
|
57941
58012
|
var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
|
|
57942
58013
|
init_promptsV2PromptRunsRetrieve();
|
|
57943
58014
|
init_v2promptrunsretrieveop();
|
|
57944
58015
|
init_tools();
|
|
57945
|
-
|
|
58016
|
+
args22 = {
|
|
57946
58017
|
request: V2PromptRunsRetrieveRequest$zodSchema
|
|
57947
58018
|
};
|
|
57948
58019
|
tool$promptsV2PromptRunsRetrieve = {
|
|
@@ -57957,7 +58028,7 @@ Returns one stored prompt run, including its mentions and citations.`,
|
|
|
57957
58028
|
openWorldHint: false,
|
|
57958
58029
|
readOnlyHint: true
|
|
57959
58030
|
},
|
|
57960
|
-
args:
|
|
58031
|
+
args: args22,
|
|
57961
58032
|
tool: async (client, args, ctx) => {
|
|
57962
58033
|
const [result] = await promptsV2PromptRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57963
58034
|
if (!result.ok) {
|
|
@@ -57994,9 +58065,9 @@ var init_createv2promptsrequest = __esm(() => {
|
|
|
57994
58065
|
|
|
57995
58066
|
// src/funcs/promptsV2PromptsCreate.ts
|
|
57996
58067
|
function promptsV2PromptsCreate(client$, request, options) {
|
|
57997
|
-
return new APIPromise($
|
|
58068
|
+
return new APIPromise($do28(client$, request, options));
|
|
57998
58069
|
}
|
|
57999
|
-
async function $
|
|
58070
|
+
async function $do28(client$, request, options) {
|
|
58000
58071
|
const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58001
58072
|
if (!parsed$.ok) {
|
|
58002
58073
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58066,12 +58137,12 @@ var init_promptsV2PromptsCreate = __esm(() => {
|
|
|
58066
58137
|
});
|
|
58067
58138
|
|
|
58068
58139
|
// src/mcp-server/tools/promptsV2PromptsCreate.ts
|
|
58069
|
-
var
|
|
58140
|
+
var args23, tool$promptsV2PromptsCreate;
|
|
58070
58141
|
var init_promptsV2PromptsCreate2 = __esm(() => {
|
|
58071
58142
|
init_promptsV2PromptsCreate();
|
|
58072
58143
|
init_createv2promptsrequest();
|
|
58073
58144
|
init_tools();
|
|
58074
|
-
|
|
58145
|
+
args23 = {
|
|
58075
58146
|
request: CreateV2PromptsRequest$zodSchema
|
|
58076
58147
|
};
|
|
58077
58148
|
tool$promptsV2PromptsCreate = {
|
|
@@ -58086,7 +58157,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
|
|
|
58086
58157
|
openWorldHint: false,
|
|
58087
58158
|
readOnlyHint: false
|
|
58088
58159
|
},
|
|
58089
|
-
args:
|
|
58160
|
+
args: args23,
|
|
58090
58161
|
tool: async (client, args, ctx) => {
|
|
58091
58162
|
const [result] = await promptsV2PromptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58092
58163
|
if (!result.ok) {
|
|
@@ -58126,9 +58197,9 @@ var init_v2promptsdeleteop = __esm(() => {
|
|
|
58126
58197
|
|
|
58127
58198
|
// src/funcs/promptsV2PromptsDelete.ts
|
|
58128
58199
|
function promptsV2PromptsDelete(client$, request, options) {
|
|
58129
|
-
return new APIPromise($
|
|
58200
|
+
return new APIPromise($do29(client$, request, options));
|
|
58130
58201
|
}
|
|
58131
|
-
async function $
|
|
58202
|
+
async function $do29(client$, request, options) {
|
|
58132
58203
|
const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58133
58204
|
if (!parsed$.ok) {
|
|
58134
58205
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58203,12 +58274,12 @@ var init_promptsV2PromptsDelete = __esm(() => {
|
|
|
58203
58274
|
});
|
|
58204
58275
|
|
|
58205
58276
|
// src/mcp-server/tools/promptsV2PromptsDelete.ts
|
|
58206
|
-
var
|
|
58277
|
+
var args24, tool$promptsV2PromptsDelete;
|
|
58207
58278
|
var init_promptsV2PromptsDelete2 = __esm(() => {
|
|
58208
58279
|
init_promptsV2PromptsDelete();
|
|
58209
58280
|
init_v2promptsdeleteop();
|
|
58210
58281
|
init_tools();
|
|
58211
|
-
|
|
58282
|
+
args24 = {
|
|
58212
58283
|
request: V2PromptsDeleteRequest$zodSchema
|
|
58213
58284
|
};
|
|
58214
58285
|
tool$promptsV2PromptsDelete = {
|
|
@@ -58223,7 +58294,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
|
|
|
58223
58294
|
openWorldHint: false,
|
|
58224
58295
|
readOnlyHint: false
|
|
58225
58296
|
},
|
|
58226
|
-
args:
|
|
58297
|
+
args: args24,
|
|
58227
58298
|
tool: async (client, args, ctx) => {
|
|
58228
58299
|
const [result] = await promptsV2PromptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58229
58300
|
if (!result.ok) {
|
|
@@ -58333,9 +58404,9 @@ var init_v2promptslistop = __esm(() => {
|
|
|
58333
58404
|
|
|
58334
58405
|
// src/funcs/promptsV2PromptsList.ts
|
|
58335
58406
|
function promptsV2PromptsList(client$, request, options) {
|
|
58336
|
-
return new APIPromise($
|
|
58407
|
+
return new APIPromise($do30(client$, request, options));
|
|
58337
58408
|
}
|
|
58338
|
-
async function $
|
|
58409
|
+
async function $do30(client$, request, options) {
|
|
58339
58410
|
const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
58340
58411
|
if (!parsed$.ok) {
|
|
58341
58412
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58410,12 +58481,12 @@ var init_promptsV2PromptsList = __esm(() => {
|
|
|
58410
58481
|
});
|
|
58411
58482
|
|
|
58412
58483
|
// src/mcp-server/tools/promptsV2PromptsList.ts
|
|
58413
|
-
var
|
|
58484
|
+
var args25, tool$promptsV2PromptsList;
|
|
58414
58485
|
var init_promptsV2PromptsList2 = __esm(() => {
|
|
58415
58486
|
init_promptsV2PromptsList();
|
|
58416
58487
|
init_v2promptslistop();
|
|
58417
58488
|
init_tools();
|
|
58418
|
-
|
|
58489
|
+
args25 = {
|
|
58419
58490
|
request: V2PromptsListRequest$zodSchema.optional()
|
|
58420
58491
|
};
|
|
58421
58492
|
tool$promptsV2PromptsList = {
|
|
@@ -58430,7 +58501,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
|
|
|
58430
58501
|
openWorldHint: false,
|
|
58431
58502
|
readOnlyHint: true
|
|
58432
58503
|
},
|
|
58433
|
-
args:
|
|
58504
|
+
args: args25,
|
|
58434
58505
|
tool: async (client, args, ctx) => {
|
|
58435
58506
|
const [result] = await promptsV2PromptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58436
58507
|
if (!result.ok) {
|
|
@@ -58461,9 +58532,9 @@ var init_v2promptsretrieveop = __esm(() => {
|
|
|
58461
58532
|
|
|
58462
58533
|
// src/funcs/promptsV2PromptsRetrieve.ts
|
|
58463
58534
|
function promptsV2PromptsRetrieve(client$, request, options) {
|
|
58464
|
-
return new APIPromise($
|
|
58535
|
+
return new APIPromise($do31(client$, request, options));
|
|
58465
58536
|
}
|
|
58466
|
-
async function $
|
|
58537
|
+
async function $do31(client$, request, options) {
|
|
58467
58538
|
const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58468
58539
|
if (!parsed$.ok) {
|
|
58469
58540
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58538,12 +58609,12 @@ var init_promptsV2PromptsRetrieve = __esm(() => {
|
|
|
58538
58609
|
});
|
|
58539
58610
|
|
|
58540
58611
|
// src/mcp-server/tools/promptsV2PromptsRetrieve.ts
|
|
58541
|
-
var
|
|
58612
|
+
var args26, tool$promptsV2PromptsRetrieve;
|
|
58542
58613
|
var init_promptsV2PromptsRetrieve2 = __esm(() => {
|
|
58543
58614
|
init_promptsV2PromptsRetrieve();
|
|
58544
58615
|
init_v2promptsretrieveop();
|
|
58545
58616
|
init_tools();
|
|
58546
|
-
|
|
58617
|
+
args26 = {
|
|
58547
58618
|
request: V2PromptsRetrieveRequest$zodSchema
|
|
58548
58619
|
};
|
|
58549
58620
|
tool$promptsV2PromptsRetrieve = {
|
|
@@ -58558,7 +58629,7 @@ Returns a prompt with its topic, platforms, tags, and lifecycle status.`,
|
|
|
58558
58629
|
openWorldHint: false,
|
|
58559
58630
|
readOnlyHint: true
|
|
58560
58631
|
},
|
|
58561
|
-
args:
|
|
58632
|
+
args: args26,
|
|
58562
58633
|
tool: async (client, args, ctx) => {
|
|
58563
58634
|
const [result] = await promptsV2PromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58564
58635
|
if (!result.ok) {
|
|
@@ -58607,9 +58678,9 @@ var init_v2promptsupdateop = __esm(() => {
|
|
|
58607
58678
|
|
|
58608
58679
|
// src/funcs/promptsV2PromptsUpdate.ts
|
|
58609
58680
|
function promptsV2PromptsUpdate(client$, request, options) {
|
|
58610
|
-
return new APIPromise($
|
|
58681
|
+
return new APIPromise($do32(client$, request, options));
|
|
58611
58682
|
}
|
|
58612
|
-
async function $
|
|
58683
|
+
async function $do32(client$, request, options) {
|
|
58613
58684
|
const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58614
58685
|
if (!parsed$.ok) {
|
|
58615
58686
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58685,12 +58756,12 @@ var init_promptsV2PromptsUpdate = __esm(() => {
|
|
|
58685
58756
|
});
|
|
58686
58757
|
|
|
58687
58758
|
// src/mcp-server/tools/promptsV2PromptsUpdate.ts
|
|
58688
|
-
var
|
|
58759
|
+
var args27, tool$promptsV2PromptsUpdate;
|
|
58689
58760
|
var init_promptsV2PromptsUpdate2 = __esm(() => {
|
|
58690
58761
|
init_promptsV2PromptsUpdate();
|
|
58691
58762
|
init_v2promptsupdateop();
|
|
58692
58763
|
init_tools();
|
|
58693
|
-
|
|
58764
|
+
args27 = {
|
|
58694
58765
|
request: V2PromptsUpdateRequest$zodSchema
|
|
58695
58766
|
};
|
|
58696
58767
|
tool$promptsV2PromptsUpdate = {
|
|
@@ -58705,7 +58776,7 @@ Updates a prompt's text, topic, platforms, or lifecycle status. Omitted fields r
|
|
|
58705
58776
|
openWorldHint: false,
|
|
58706
58777
|
readOnlyHint: false
|
|
58707
58778
|
},
|
|
58708
|
-
args:
|
|
58779
|
+
args: args27,
|
|
58709
58780
|
tool: async (client, args, ctx) => {
|
|
58710
58781
|
const [result] = await promptsV2PromptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58711
58782
|
if (!result.ok) {
|
|
@@ -58730,9 +58801,9 @@ var init_createprompttopicrequest = __esm(() => {
|
|
|
58730
58801
|
|
|
58731
58802
|
// src/funcs/promptsV2PromptTopicsCreate.ts
|
|
58732
58803
|
function promptsV2PromptTopicsCreate(client$, request, options) {
|
|
58733
|
-
return new APIPromise($
|
|
58804
|
+
return new APIPromise($do33(client$, request, options));
|
|
58734
58805
|
}
|
|
58735
|
-
async function $
|
|
58806
|
+
async function $do33(client$, request, options) {
|
|
58736
58807
|
const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58737
58808
|
if (!parsed$.ok) {
|
|
58738
58809
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58802,12 +58873,12 @@ var init_promptsV2PromptTopicsCreate = __esm(() => {
|
|
|
58802
58873
|
});
|
|
58803
58874
|
|
|
58804
58875
|
// src/mcp-server/tools/promptsV2PromptTopicsCreate.ts
|
|
58805
|
-
var
|
|
58876
|
+
var args28, tool$promptsV2PromptTopicsCreate;
|
|
58806
58877
|
var init_promptsV2PromptTopicsCreate2 = __esm(() => {
|
|
58807
58878
|
init_promptsV2PromptTopicsCreate();
|
|
58808
58879
|
init_createprompttopicrequest();
|
|
58809
58880
|
init_tools();
|
|
58810
|
-
|
|
58881
|
+
args28 = {
|
|
58811
58882
|
request: CreatePromptTopicRequest$zodSchema
|
|
58812
58883
|
};
|
|
58813
58884
|
tool$promptsV2PromptTopicsCreate = {
|
|
@@ -58822,7 +58893,7 @@ Creates a prompt topic and returns the saved topic.`,
|
|
|
58822
58893
|
openWorldHint: false,
|
|
58823
58894
|
readOnlyHint: false
|
|
58824
58895
|
},
|
|
58825
|
-
args:
|
|
58896
|
+
args: args28,
|
|
58826
58897
|
tool: async (client, args, ctx) => {
|
|
58827
58898
|
const [result] = await promptsV2PromptTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58828
58899
|
if (!result.ok) {
|
|
@@ -58854,9 +58925,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
|
|
|
58854
58925
|
|
|
58855
58926
|
// src/funcs/promptsV2PromptTopicsDelete.ts
|
|
58856
58927
|
function promptsV2PromptTopicsDelete(client$, request, options) {
|
|
58857
|
-
return new APIPromise($
|
|
58928
|
+
return new APIPromise($do34(client$, request, options));
|
|
58858
58929
|
}
|
|
58859
|
-
async function $
|
|
58930
|
+
async function $do34(client$, request, options) {
|
|
58860
58931
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
58861
58932
|
if (!parsed$.ok) {
|
|
58862
58933
|
return [parsed$, { status: "invalid" }];
|
|
@@ -58935,12 +59006,12 @@ var init_promptsV2PromptTopicsDelete = __esm(() => {
|
|
|
58935
59006
|
});
|
|
58936
59007
|
|
|
58937
59008
|
// src/mcp-server/tools/promptsV2PromptTopicsDelete.ts
|
|
58938
|
-
var
|
|
59009
|
+
var args29, tool$promptsV2PromptTopicsDelete;
|
|
58939
59010
|
var init_promptsV2PromptTopicsDelete2 = __esm(() => {
|
|
58940
59011
|
init_promptsV2PromptTopicsDelete();
|
|
58941
59012
|
init_v2prompttopicsdeleteop();
|
|
58942
59013
|
init_tools();
|
|
58943
|
-
|
|
59014
|
+
args29 = {
|
|
58944
59015
|
request: V2PromptTopicsDeleteRequest$zodSchema
|
|
58945
59016
|
};
|
|
58946
59017
|
tool$promptsV2PromptTopicsDelete = {
|
|
@@ -58955,7 +59026,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
58955
59026
|
openWorldHint: false,
|
|
58956
59027
|
readOnlyHint: false
|
|
58957
59028
|
},
|
|
58958
|
-
args:
|
|
59029
|
+
args: args29,
|
|
58959
59030
|
tool: async (client, args, ctx) => {
|
|
58960
59031
|
const [result] = await promptsV2PromptTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58961
59032
|
if (!result.ok) {
|
|
@@ -58971,9 +59042,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
|
|
|
58971
59042
|
|
|
58972
59043
|
// src/funcs/promptsV2PromptTopicsList.ts
|
|
58973
59044
|
function promptsV2PromptTopicsList(client$, options) {
|
|
58974
|
-
return new APIPromise($
|
|
59045
|
+
return new APIPromise($do35(client$, options));
|
|
58975
59046
|
}
|
|
58976
|
-
async function $
|
|
59047
|
+
async function $do35(client$, options) {
|
|
58977
59048
|
const path$ = pathToFunc("/v2/prompts/topics")();
|
|
58978
59049
|
const headers$ = new Headers(compactMap({
|
|
58979
59050
|
Accept: "application/json"
|
|
@@ -59089,9 +59160,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
|
|
|
59089
59160
|
|
|
59090
59161
|
// src/funcs/promptsV2PromptTopicsUpdate.ts
|
|
59091
59162
|
function promptsV2PromptTopicsUpdate(client$, request, options) {
|
|
59092
|
-
return new APIPromise($
|
|
59163
|
+
return new APIPromise($do36(client$, request, options));
|
|
59093
59164
|
}
|
|
59094
|
-
async function $
|
|
59165
|
+
async function $do36(client$, request, options) {
|
|
59095
59166
|
const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59096
59167
|
if (!parsed$.ok) {
|
|
59097
59168
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59167,12 +59238,12 @@ var init_promptsV2PromptTopicsUpdate = __esm(() => {
|
|
|
59167
59238
|
});
|
|
59168
59239
|
|
|
59169
59240
|
// src/mcp-server/tools/promptsV2PromptTopicsUpdate.ts
|
|
59170
|
-
var
|
|
59241
|
+
var args30, tool$promptsV2PromptTopicsUpdate;
|
|
59171
59242
|
var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
|
|
59172
59243
|
init_promptsV2PromptTopicsUpdate();
|
|
59173
59244
|
init_v2prompttopicsupdateop();
|
|
59174
59245
|
init_tools();
|
|
59175
|
-
|
|
59246
|
+
args30 = {
|
|
59176
59247
|
request: V2PromptTopicsUpdateRequest$zodSchema
|
|
59177
59248
|
};
|
|
59178
59249
|
tool$promptsV2PromptTopicsUpdate = {
|
|
@@ -59187,7 +59258,7 @@ Renames a prompt topic and returns the updated topic.`,
|
|
|
59187
59258
|
openWorldHint: false,
|
|
59188
59259
|
readOnlyHint: false
|
|
59189
59260
|
},
|
|
59190
|
-
args:
|
|
59261
|
+
args: args30,
|
|
59191
59262
|
tool: async (client, args, ctx) => {
|
|
59192
59263
|
const [result] = await promptsV2PromptTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59193
59264
|
if (!result.ok) {
|
|
@@ -59230,9 +59301,9 @@ var init_createv2repositoryrequest = __esm(() => {
|
|
|
59230
59301
|
|
|
59231
59302
|
// src/funcs/repositoriesV2RepositoriesCreate.ts
|
|
59232
59303
|
function repositoriesV2RepositoriesCreate(client$, request, options) {
|
|
59233
|
-
return new APIPromise($
|
|
59304
|
+
return new APIPromise($do37(client$, request, options));
|
|
59234
59305
|
}
|
|
59235
|
-
async function $
|
|
59306
|
+
async function $do37(client$, request, options) {
|
|
59236
59307
|
const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59237
59308
|
if (!parsed$.ok) {
|
|
59238
59309
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59302,12 +59373,12 @@ var init_repositoriesV2RepositoriesCreate = __esm(() => {
|
|
|
59302
59373
|
});
|
|
59303
59374
|
|
|
59304
59375
|
// src/mcp-server/tools/repositoriesV2RepositoriesCreate.ts
|
|
59305
|
-
var
|
|
59376
|
+
var args31, tool$repositoriesV2RepositoriesCreate;
|
|
59306
59377
|
var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
|
|
59307
59378
|
init_repositoriesV2RepositoriesCreate();
|
|
59308
59379
|
init_createv2repositoryrequest();
|
|
59309
59380
|
init_tools();
|
|
59310
|
-
|
|
59381
|
+
args31 = {
|
|
59311
59382
|
request: CreateV2RepositoryRequest$zodSchema
|
|
59312
59383
|
};
|
|
59313
59384
|
tool$repositoriesV2RepositoriesCreate = {
|
|
@@ -59322,7 +59393,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
59322
59393
|
openWorldHint: false,
|
|
59323
59394
|
readOnlyHint: false
|
|
59324
59395
|
},
|
|
59325
|
-
args:
|
|
59396
|
+
args: args31,
|
|
59326
59397
|
tool: async (client, args, ctx) => {
|
|
59327
59398
|
const [result] = await repositoriesV2RepositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59328
59399
|
if (!result.ok) {
|
|
@@ -59337,9 +59408,13 @@ Adds a reusable Git repository workspace for eval configurations.`,
|
|
|
59337
59408
|
});
|
|
59338
59409
|
|
|
59339
59410
|
// src/models/v2repository.ts
|
|
59340
|
-
var V2RepositoryFramework$zodSchema, V2Repository$zodSchema;
|
|
59411
|
+
var Kind$zodSchema, V2RepositoryFramework$zodSchema, V2Repository$zodSchema;
|
|
59341
59412
|
var init_v2repository = __esm(() => {
|
|
59342
59413
|
init_zod();
|
|
59414
|
+
Kind$zodSchema = _enum([
|
|
59415
|
+
"template",
|
|
59416
|
+
"saved"
|
|
59417
|
+
]).describe("Whether the repository is a read-only built-in template or an organization-owned saved repository.");
|
|
59343
59418
|
V2RepositoryFramework$zodSchema = _enum([
|
|
59344
59419
|
"fastify",
|
|
59345
59420
|
"nuxt",
|
|
@@ -59356,8 +59431,9 @@ var init_v2repository = __esm(() => {
|
|
|
59356
59431
|
created_at: string2().nullable().optional(),
|
|
59357
59432
|
enabled: boolean2(),
|
|
59358
59433
|
framework: V2RepositoryFramework$zodSchema.default("custom"),
|
|
59359
|
-
id: string2(),
|
|
59434
|
+
id: string2().describe("Value to pass as `repository` in a direct eval run. Built-in templates use aliases such as `nextjs-starter`; saved repositories use their persisted IDs."),
|
|
59360
59435
|
install_steps: array(string2()).optional(),
|
|
59436
|
+
kind: Kind$zodSchema.describe("Whether the repository is a read-only built-in template or an organization-owned saved repository."),
|
|
59361
59437
|
name: string2(),
|
|
59362
59438
|
ref: string2(),
|
|
59363
59439
|
repo_url: string2(),
|
|
@@ -59383,9 +59459,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
|
|
|
59383
59459
|
|
|
59384
59460
|
// src/funcs/repositoriesV2RepositoriesDelete.ts
|
|
59385
59461
|
function repositoriesV2RepositoriesDelete(client$, request, options) {
|
|
59386
|
-
return new APIPromise($
|
|
59462
|
+
return new APIPromise($do38(client$, request, options));
|
|
59387
59463
|
}
|
|
59388
|
-
async function $
|
|
59464
|
+
async function $do38(client$, request, options) {
|
|
59389
59465
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59390
59466
|
if (!parsed$.ok) {
|
|
59391
59467
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59460,12 +59536,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
|
|
|
59460
59536
|
});
|
|
59461
59537
|
|
|
59462
59538
|
// src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
|
|
59463
|
-
var
|
|
59539
|
+
var args32, tool$repositoriesV2RepositoriesDelete;
|
|
59464
59540
|
var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
|
|
59465
59541
|
init_repositoriesV2RepositoriesDelete();
|
|
59466
59542
|
init_v2repositoriesdeleteop();
|
|
59467
59543
|
init_tools();
|
|
59468
|
-
|
|
59544
|
+
args32 = {
|
|
59469
59545
|
request: V2RepositoriesDeleteRequest$zodSchema
|
|
59470
59546
|
};
|
|
59471
59547
|
tool$repositoriesV2RepositoriesDelete = {
|
|
@@ -59480,7 +59556,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
59480
59556
|
openWorldHint: false,
|
|
59481
59557
|
readOnlyHint: false
|
|
59482
59558
|
},
|
|
59483
|
-
args:
|
|
59559
|
+
args: args32,
|
|
59484
59560
|
tool: async (client, args, ctx) => {
|
|
59485
59561
|
const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59486
59562
|
if (!result.ok) {
|
|
@@ -59496,9 +59572,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
|
|
|
59496
59572
|
|
|
59497
59573
|
// src/funcs/repositoriesV2RepositoriesList.ts
|
|
59498
59574
|
function repositoriesV2RepositoriesList(client$, options) {
|
|
59499
|
-
return new APIPromise($
|
|
59575
|
+
return new APIPromise($do39(client$, options));
|
|
59500
59576
|
}
|
|
59501
|
-
async function $
|
|
59577
|
+
async function $do39(client$, options) {
|
|
59502
59578
|
const path$ = pathToFunc("/v2/repositories")();
|
|
59503
59579
|
const headers$ = new Headers(compactMap({
|
|
59504
59580
|
Accept: "application/json"
|
|
@@ -59565,7 +59641,7 @@ var init_repositoriesV2RepositoriesList2 = __esm(() => {
|
|
|
59565
59641
|
name: "repositories-v2-repositories-list",
|
|
59566
59642
|
description: `List Repositories
|
|
59567
59643
|
|
|
59568
|
-
Returns Git repositories
|
|
59644
|
+
Returns built-in templates and enabled saved Git repositories. Pass an item's \`id\` directly as \`repository\` in a direct eval run. Public GitHub URLs are also accepted by eval runs but are not included in this list.`,
|
|
59569
59645
|
annotations: {
|
|
59570
59646
|
title: "",
|
|
59571
59647
|
destructiveHint: false,
|
|
@@ -59603,9 +59679,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
|
|
|
59603
59679
|
|
|
59604
59680
|
// src/funcs/repositoriesV2RepositoriesRetrieve.ts
|
|
59605
59681
|
function repositoriesV2RepositoriesRetrieve(client$, request, options) {
|
|
59606
|
-
return new APIPromise($
|
|
59682
|
+
return new APIPromise($do40(client$, request, options));
|
|
59607
59683
|
}
|
|
59608
|
-
async function $
|
|
59684
|
+
async function $do40(client$, request, options) {
|
|
59609
59685
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59610
59686
|
if (!parsed$.ok) {
|
|
59611
59687
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59680,12 +59756,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
|
|
|
59680
59756
|
});
|
|
59681
59757
|
|
|
59682
59758
|
// src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
|
|
59683
|
-
var
|
|
59759
|
+
var args33, tool$repositoriesV2RepositoriesRetrieve;
|
|
59684
59760
|
var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
|
|
59685
59761
|
init_repositoriesV2RepositoriesRetrieve();
|
|
59686
59762
|
init_v2repositoriesretrieveop();
|
|
59687
59763
|
init_tools();
|
|
59688
|
-
|
|
59764
|
+
args33 = {
|
|
59689
59765
|
request: V2RepositoriesRetrieveRequest$zodSchema
|
|
59690
59766
|
};
|
|
59691
59767
|
tool$repositoriesV2RepositoriesRetrieve = {
|
|
@@ -59700,7 +59776,7 @@ Returns one reusable repository workspace.`,
|
|
|
59700
59776
|
openWorldHint: false,
|
|
59701
59777
|
readOnlyHint: true
|
|
59702
59778
|
},
|
|
59703
|
-
args:
|
|
59779
|
+
args: args33,
|
|
59704
59780
|
tool: async (client, args, ctx) => {
|
|
59705
59781
|
const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59706
59782
|
if (!result.ok) {
|
|
@@ -59760,9 +59836,9 @@ var init_v2repositoriesupdateop = __esm(() => {
|
|
|
59760
59836
|
|
|
59761
59837
|
// src/funcs/repositoriesV2RepositoriesUpdate.ts
|
|
59762
59838
|
function repositoriesV2RepositoriesUpdate(client$, request, options) {
|
|
59763
|
-
return new APIPromise($
|
|
59839
|
+
return new APIPromise($do41(client$, request, options));
|
|
59764
59840
|
}
|
|
59765
|
-
async function $
|
|
59841
|
+
async function $do41(client$, request, options) {
|
|
59766
59842
|
const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
59767
59843
|
if (!parsed$.ok) {
|
|
59768
59844
|
return [parsed$, { status: "invalid" }];
|
|
@@ -59838,12 +59914,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
|
|
|
59838
59914
|
});
|
|
59839
59915
|
|
|
59840
59916
|
// src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
|
|
59841
|
-
var
|
|
59917
|
+
var args34, tool$repositoriesV2RepositoriesUpdate;
|
|
59842
59918
|
var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
|
|
59843
59919
|
init_repositoriesV2RepositoriesUpdate();
|
|
59844
59920
|
init_v2repositoriesupdateop();
|
|
59845
59921
|
init_tools();
|
|
59846
|
-
|
|
59922
|
+
args34 = {
|
|
59847
59923
|
request: V2RepositoriesUpdateRequest$zodSchema
|
|
59848
59924
|
};
|
|
59849
59925
|
tool$repositoriesV2RepositoriesUpdate = {
|
|
@@ -59858,7 +59934,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
59858
59934
|
openWorldHint: false,
|
|
59859
59935
|
readOnlyHint: false
|
|
59860
59936
|
},
|
|
59861
|
-
args:
|
|
59937
|
+
args: args34,
|
|
59862
59938
|
tool: async (client, args, ctx) => {
|
|
59863
59939
|
const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
59864
59940
|
if (!result.ok) {
|
|
@@ -59874,9 +59950,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
|
|
|
59874
59950
|
|
|
59875
59951
|
// src/funcs/siteAuditsV2SiteAuditsList.ts
|
|
59876
59952
|
function siteAuditsV2SiteAuditsList(client$, options) {
|
|
59877
|
-
return new APIPromise($
|
|
59953
|
+
return new APIPromise($do42(client$, options));
|
|
59878
59954
|
}
|
|
59879
|
-
async function $
|
|
59955
|
+
async function $do42(client$, options) {
|
|
59880
59956
|
const path$ = pathToFunc("/v2/site-audits")();
|
|
59881
59957
|
const headers$ = new Headers(compactMap({
|
|
59882
59958
|
Accept: "application/json"
|
|
@@ -60017,9 +60093,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
|
|
|
60017
60093
|
|
|
60018
60094
|
// src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
|
|
60019
60095
|
function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
|
|
60020
|
-
return new APIPromise($
|
|
60096
|
+
return new APIPromise($do43(client$, request, options));
|
|
60021
60097
|
}
|
|
60022
|
-
async function $
|
|
60098
|
+
async function $do43(client$, request, options) {
|
|
60023
60099
|
const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60024
60100
|
if (!parsed$.ok) {
|
|
60025
60101
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60094,12 +60170,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
|
|
|
60094
60170
|
});
|
|
60095
60171
|
|
|
60096
60172
|
// src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
|
|
60097
|
-
var
|
|
60173
|
+
var args35, tool$siteAuditsV2SiteAuditsRetrieve;
|
|
60098
60174
|
var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
|
|
60099
60175
|
init_siteAuditsV2SiteAuditsRetrieve();
|
|
60100
60176
|
init_v2siteauditsretrieveop();
|
|
60101
60177
|
init_tools();
|
|
60102
|
-
|
|
60178
|
+
args35 = {
|
|
60103
60179
|
request: V2SiteAuditsRetrieveRequest$zodSchema
|
|
60104
60180
|
};
|
|
60105
60181
|
tool$siteAuditsV2SiteAuditsRetrieve = {
|
|
@@ -60114,7 +60190,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
60114
60190
|
openWorldHint: false,
|
|
60115
60191
|
readOnlyHint: true
|
|
60116
60192
|
},
|
|
60117
|
-
args:
|
|
60193
|
+
args: args35,
|
|
60118
60194
|
tool: async (client, args, ctx) => {
|
|
60119
60195
|
const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60120
60196
|
if (!result.ok) {
|
|
@@ -60130,9 +60206,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
|
|
|
60130
60206
|
|
|
60131
60207
|
// src/funcs/skillsV2SkillsList.ts
|
|
60132
60208
|
function skillsV2SkillsList(client$, options) {
|
|
60133
|
-
return new APIPromise($
|
|
60209
|
+
return new APIPromise($do44(client$, options));
|
|
60134
60210
|
}
|
|
60135
|
-
async function $
|
|
60211
|
+
async function $do44(client$, options) {
|
|
60136
60212
|
const path$ = pathToFunc("/v2/skills")();
|
|
60137
60213
|
const headers$ = new Headers(compactMap({
|
|
60138
60214
|
Accept: "application/json"
|
|
@@ -60222,9 +60298,9 @@ Returns reusable skills available to workflows and eval configurations.`,
|
|
|
60222
60298
|
|
|
60223
60299
|
// src/funcs/statusV2AuthStatusGet.ts
|
|
60224
60300
|
function statusV2AuthStatusGet(client$, options) {
|
|
60225
|
-
return new APIPromise($
|
|
60301
|
+
return new APIPromise($do45(client$, options));
|
|
60226
60302
|
}
|
|
60227
|
-
async function $
|
|
60303
|
+
async function $do45(client$, options) {
|
|
60228
60304
|
const path$ = pathToFunc("/v2/auth/status")();
|
|
60229
60305
|
const headers$ = new Headers(compactMap({
|
|
60230
60306
|
Accept: "application/json"
|
|
@@ -60314,9 +60390,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
|
|
|
60314
60390
|
|
|
60315
60391
|
// src/funcs/statusV2StatusGet.ts
|
|
60316
60392
|
function statusV2StatusGet(client$, options) {
|
|
60317
|
-
return new APIPromise($
|
|
60393
|
+
return new APIPromise($do46(client$, options));
|
|
60318
60394
|
}
|
|
60319
|
-
async function $
|
|
60395
|
+
async function $do46(client$, options) {
|
|
60320
60396
|
const path$ = pathToFunc("/v2/status")();
|
|
60321
60397
|
const headers$ = new Headers(compactMap({
|
|
60322
60398
|
Accept: "application/json"
|
|
@@ -60536,9 +60612,9 @@ var init_v2taskslistop = __esm(() => {
|
|
|
60536
60612
|
|
|
60537
60613
|
// src/funcs/tasksV2TasksList.ts
|
|
60538
60614
|
function tasksV2TasksList(client$, request, options) {
|
|
60539
|
-
return new APIPromise($
|
|
60615
|
+
return new APIPromise($do47(client$, request, options));
|
|
60540
60616
|
}
|
|
60541
|
-
async function $
|
|
60617
|
+
async function $do47(client$, request, options) {
|
|
60542
60618
|
const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
60543
60619
|
if (!parsed$.ok) {
|
|
60544
60620
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60612,12 +60688,12 @@ var init_tasksV2TasksList = __esm(() => {
|
|
|
60612
60688
|
});
|
|
60613
60689
|
|
|
60614
60690
|
// src/mcp-server/tools/tasksV2TasksList.ts
|
|
60615
|
-
var
|
|
60691
|
+
var args36, tool$tasksV2TasksList;
|
|
60616
60692
|
var init_tasksV2TasksList2 = __esm(() => {
|
|
60617
60693
|
init_tasksV2TasksList();
|
|
60618
60694
|
init_v2taskslistop();
|
|
60619
60695
|
init_tools();
|
|
60620
|
-
|
|
60696
|
+
args36 = {
|
|
60621
60697
|
request: V2TasksListRequest$zodSchema.optional()
|
|
60622
60698
|
};
|
|
60623
60699
|
tool$tasksV2TasksList = {
|
|
@@ -60632,7 +60708,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
|
|
|
60632
60708
|
openWorldHint: false,
|
|
60633
60709
|
readOnlyHint: true
|
|
60634
60710
|
},
|
|
60635
|
-
args:
|
|
60711
|
+
args: args36,
|
|
60636
60712
|
tool: async (client, args, ctx) => {
|
|
60637
60713
|
const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60638
60714
|
if (!result.ok) {
|
|
@@ -60663,9 +60739,9 @@ var init_v2tasksretrieveop = __esm(() => {
|
|
|
60663
60739
|
|
|
60664
60740
|
// src/funcs/tasksV2TasksRetrieve.ts
|
|
60665
60741
|
function tasksV2TasksRetrieve(client$, request, options) {
|
|
60666
|
-
return new APIPromise($
|
|
60742
|
+
return new APIPromise($do48(client$, request, options));
|
|
60667
60743
|
}
|
|
60668
|
-
async function $
|
|
60744
|
+
async function $do48(client$, request, options) {
|
|
60669
60745
|
const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60670
60746
|
if (!parsed$.ok) {
|
|
60671
60747
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60740,12 +60816,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
|
|
|
60740
60816
|
});
|
|
60741
60817
|
|
|
60742
60818
|
// src/mcp-server/tools/tasksV2TasksRetrieve.ts
|
|
60743
|
-
var
|
|
60819
|
+
var args37, tool$tasksV2TasksRetrieve;
|
|
60744
60820
|
var init_tasksV2TasksRetrieve2 = __esm(() => {
|
|
60745
60821
|
init_tasksV2TasksRetrieve();
|
|
60746
60822
|
init_v2tasksretrieveop();
|
|
60747
60823
|
init_tools();
|
|
60748
|
-
|
|
60824
|
+
args37 = {
|
|
60749
60825
|
request: V2TasksRetrieveRequest$zodSchema
|
|
60750
60826
|
};
|
|
60751
60827
|
tool$tasksV2TasksRetrieve = {
|
|
@@ -60760,7 +60836,7 @@ Returns one persisted task and its execution prompt.`,
|
|
|
60760
60836
|
openWorldHint: false,
|
|
60761
60837
|
readOnlyHint: true
|
|
60762
60838
|
},
|
|
60763
|
-
args:
|
|
60839
|
+
args: args37,
|
|
60764
60840
|
tool: async (client, args, ctx) => {
|
|
60765
60841
|
const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60766
60842
|
if (!result.ok) {
|
|
@@ -60823,9 +60899,9 @@ var init_v2tasksupdateop = __esm(() => {
|
|
|
60823
60899
|
|
|
60824
60900
|
// src/funcs/tasksV2TasksUpdate.ts
|
|
60825
60901
|
function tasksV2TasksUpdate(client$, request, options) {
|
|
60826
|
-
return new APIPromise($
|
|
60902
|
+
return new APIPromise($do49(client$, request, options));
|
|
60827
60903
|
}
|
|
60828
|
-
async function $
|
|
60904
|
+
async function $do49(client$, request, options) {
|
|
60829
60905
|
const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
|
|
60830
60906
|
if (!parsed$.ok) {
|
|
60831
60907
|
return [parsed$, { status: "invalid" }];
|
|
@@ -60901,12 +60977,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
|
|
|
60901
60977
|
});
|
|
60902
60978
|
|
|
60903
60979
|
// src/mcp-server/tools/tasksV2TasksUpdate.ts
|
|
60904
|
-
var
|
|
60980
|
+
var args38, tool$tasksV2TasksUpdate;
|
|
60905
60981
|
var init_tasksV2TasksUpdate2 = __esm(() => {
|
|
60906
60982
|
init_tasksV2TasksUpdate();
|
|
60907
60983
|
init_v2tasksupdateop();
|
|
60908
60984
|
init_tools();
|
|
60909
|
-
|
|
60985
|
+
args38 = {
|
|
60910
60986
|
request: V2TasksUpdateRequest$zodSchema
|
|
60911
60987
|
};
|
|
60912
60988
|
tool$tasksV2TasksUpdate = {
|
|
@@ -60921,7 +60997,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
|
|
|
60921
60997
|
openWorldHint: false,
|
|
60922
60998
|
readOnlyHint: false
|
|
60923
60999
|
},
|
|
60924
|
-
args:
|
|
61000
|
+
args: args38,
|
|
60925
61001
|
tool: async (client, args, ctx) => {
|
|
60926
61002
|
const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60927
61003
|
if (!result.ok) {
|
|
@@ -61009,9 +61085,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
|
|
|
61009
61085
|
|
|
61010
61086
|
// src/funcs/visibilityV2VisibilityCitationsList.ts
|
|
61011
61087
|
function visibilityV2VisibilityCitationsList(client$, request, options) {
|
|
61012
|
-
return new APIPromise($
|
|
61088
|
+
return new APIPromise($do50(client$, request, options));
|
|
61013
61089
|
}
|
|
61014
|
-
async function $
|
|
61090
|
+
async function $do50(client$, request, options) {
|
|
61015
61091
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61016
61092
|
if (!parsed$.ok) {
|
|
61017
61093
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61088,12 +61164,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
|
|
|
61088
61164
|
});
|
|
61089
61165
|
|
|
61090
61166
|
// src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
|
|
61091
|
-
var
|
|
61167
|
+
var args39, tool$visibilityV2VisibilityCitationsList;
|
|
61092
61168
|
var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
|
|
61093
61169
|
init_visibilityV2VisibilityCitationsList();
|
|
61094
61170
|
init_v2visibilitycitationslistop();
|
|
61095
61171
|
init_tools();
|
|
61096
|
-
|
|
61172
|
+
args39 = {
|
|
61097
61173
|
request: V2VisibilityCitationsListRequest$zodSchema.optional()
|
|
61098
61174
|
};
|
|
61099
61175
|
tool$visibilityV2VisibilityCitationsList = {
|
|
@@ -61108,7 +61184,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
|
|
|
61108
61184
|
openWorldHint: false,
|
|
61109
61185
|
readOnlyHint: true
|
|
61110
61186
|
},
|
|
61111
|
-
args:
|
|
61187
|
+
args: args39,
|
|
61112
61188
|
tool: async (client, args, ctx) => {
|
|
61113
61189
|
const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61114
61190
|
if (!result.ok) {
|
|
@@ -61173,9 +61249,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
|
|
|
61173
61249
|
|
|
61174
61250
|
// src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
|
|
61175
61251
|
function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
|
|
61176
|
-
return new APIPromise($
|
|
61252
|
+
return new APIPromise($do51(client$, request, options));
|
|
61177
61253
|
}
|
|
61178
|
-
async function $
|
|
61254
|
+
async function $do51(client$, request, options) {
|
|
61179
61255
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61180
61256
|
if (!parsed$.ok) {
|
|
61181
61257
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61249,12 +61325,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
|
|
|
61249
61325
|
});
|
|
61250
61326
|
|
|
61251
61327
|
// src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
|
|
61252
|
-
var
|
|
61328
|
+
var args40, tool$visibilityV2VisibilityCurrentRetrieve;
|
|
61253
61329
|
var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
|
|
61254
61330
|
init_visibilityV2VisibilityCurrentRetrieve();
|
|
61255
61331
|
init_v2visibilitycurrentretrieveop();
|
|
61256
61332
|
init_tools();
|
|
61257
|
-
|
|
61333
|
+
args40 = {
|
|
61258
61334
|
request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
|
|
61259
61335
|
};
|
|
61260
61336
|
tool$visibilityV2VisibilityCurrentRetrieve = {
|
|
@@ -61269,7 +61345,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
|
|
|
61269
61345
|
openWorldHint: false,
|
|
61270
61346
|
readOnlyHint: true
|
|
61271
61347
|
},
|
|
61272
|
-
args:
|
|
61348
|
+
args: args40,
|
|
61273
61349
|
tool: async (client, args, ctx) => {
|
|
61274
61350
|
const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61275
61351
|
if (!result.ok) {
|
|
@@ -61412,9 +61488,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
|
|
|
61412
61488
|
|
|
61413
61489
|
// src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
|
|
61414
61490
|
function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
|
|
61415
|
-
return new APIPromise($
|
|
61491
|
+
return new APIPromise($do52(client$, request, options));
|
|
61416
61492
|
}
|
|
61417
|
-
async function $
|
|
61493
|
+
async function $do52(client$, request, options) {
|
|
61418
61494
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61419
61495
|
if (!parsed$.ok) {
|
|
61420
61496
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61488,12 +61564,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
|
|
|
61488
61564
|
});
|
|
61489
61565
|
|
|
61490
61566
|
// src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
|
|
61491
|
-
var
|
|
61567
|
+
var args41, tool$visibilityV2VisibilityOverviewRetrieve;
|
|
61492
61568
|
var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
|
|
61493
61569
|
init_visibilityV2VisibilityOverviewRetrieve();
|
|
61494
61570
|
init_v2visibilityoverviewretrieveop();
|
|
61495
61571
|
init_tools();
|
|
61496
|
-
|
|
61572
|
+
args41 = {
|
|
61497
61573
|
request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
|
|
61498
61574
|
};
|
|
61499
61575
|
tool$visibilityV2VisibilityOverviewRetrieve = {
|
|
@@ -61508,7 +61584,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
|
|
|
61508
61584
|
openWorldHint: false,
|
|
61509
61585
|
readOnlyHint: true
|
|
61510
61586
|
},
|
|
61511
|
-
args:
|
|
61587
|
+
args: args41,
|
|
61512
61588
|
tool: async (client, args, ctx) => {
|
|
61513
61589
|
const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61514
61590
|
if (!result.ok) {
|
|
@@ -61622,9 +61698,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
|
|
|
61622
61698
|
|
|
61623
61699
|
// src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
|
|
61624
61700
|
function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
|
|
61625
|
-
return new APIPromise($
|
|
61701
|
+
return new APIPromise($do53(client$, request, options));
|
|
61626
61702
|
}
|
|
61627
|
-
async function $
|
|
61703
|
+
async function $do53(client$, request, options) {
|
|
61628
61704
|
const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
61629
61705
|
if (!parsed$.ok) {
|
|
61630
61706
|
return [parsed$, { status: "invalid" }];
|
|
@@ -61698,12 +61774,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
|
|
|
61698
61774
|
});
|
|
61699
61775
|
|
|
61700
61776
|
// src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
|
|
61701
|
-
var
|
|
61777
|
+
var args42, tool$visibilityV2VisibilityPromptsRetrieve;
|
|
61702
61778
|
var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
|
|
61703
61779
|
init_visibilityV2VisibilityPromptsRetrieve();
|
|
61704
61780
|
init_v2visibilitypromptsretrieveop();
|
|
61705
61781
|
init_tools();
|
|
61706
|
-
|
|
61782
|
+
args42 = {
|
|
61707
61783
|
request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
|
|
61708
61784
|
};
|
|
61709
61785
|
tool$visibilityV2VisibilityPromptsRetrieve = {
|
|
@@ -61718,7 +61794,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
|
|
|
61718
61794
|
openWorldHint: false,
|
|
61719
61795
|
readOnlyHint: true
|
|
61720
61796
|
},
|
|
61721
|
-
args:
|
|
61797
|
+
args: args42,
|
|
61722
61798
|
tool: async (client, args, ctx) => {
|
|
61723
61799
|
const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
61724
61800
|
if (!result.ok) {
|
|
@@ -61742,7 +61818,7 @@ function createMCPServer(deps) {
|
|
|
61742
61818
|
sizes: ["any"]
|
|
61743
61819
|
}],
|
|
61744
61820
|
name: "LightsageMcp",
|
|
61745
|
-
version: "0.1
|
|
61821
|
+
version: "0.2.1"
|
|
61746
61822
|
});
|
|
61747
61823
|
const getClient = deps.getSDK || (() => new LightsageMcpCore({
|
|
61748
61824
|
security: deps.security,
|
|
@@ -61798,8 +61874,9 @@ function createMCPServer(deps) {
|
|
|
61798
61874
|
tool(tool$evalsV2EvalConfigurationsRetrieve);
|
|
61799
61875
|
tool(tool$evalsV2EvalConfigurationsUpdate);
|
|
61800
61876
|
tool(tool$evalsV2EvalConfigurationsDelete);
|
|
61877
|
+
tool(tool$evalsRun);
|
|
61878
|
+
tool(tool$evalsMonitor);
|
|
61801
61879
|
tool(tool$evalRunsV2EvalRunsList);
|
|
61802
|
-
tool(tool$evalRunsV2EvalRunsCreate);
|
|
61803
61880
|
tool(tool$evalRunsV2EvalRunsRetrieve);
|
|
61804
61881
|
tool(tool$evalResultsV2EvalResultsList);
|
|
61805
61882
|
tool(tool$evalResultsV2EvalResultsRetrieve);
|
|
@@ -61831,9 +61908,10 @@ var init_server2 = __esm(() => {
|
|
|
61831
61908
|
init_environmentsV2EnvironmentsList2();
|
|
61832
61909
|
init_evalResultsV2EvalResultsList2();
|
|
61833
61910
|
init_evalResultsV2EvalResultsRetrieve2();
|
|
61834
|
-
init_evalRunsV2EvalRunsCreate2();
|
|
61835
61911
|
init_evalRunsV2EvalRunsList2();
|
|
61836
61912
|
init_evalRunsV2EvalRunsRetrieve2();
|
|
61913
|
+
init_evalsMonitor2();
|
|
61914
|
+
init_evalsRun2();
|
|
61837
61915
|
init_evalsV2EvalConfigurationsCreate2();
|
|
61838
61916
|
init_evalsV2EvalConfigurationsDelete2();
|
|
61839
61917
|
init_evalsV2EvalConfigurationsList2();
|
|
@@ -62092,14 +62170,16 @@ Updates an eval configuration; omitted fields remain unchanged.`
|
|
|
62092
62170
|
Permanently deletes an eval configuration and returns its last saved state.`
|
|
62093
62171
|
},
|
|
62094
62172
|
{
|
|
62095
|
-
name: "
|
|
62096
|
-
description: "
|
|
62173
|
+
name: "evals-run",
|
|
62174
|
+
description: "Create 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. Choose exactly one request mode. For saved mode, provide `eval_id`, `configuration_id`, and `agent_id`. For direct mode, omit `eval_id` and provide `prompt`, `judges`, and `agent_id`. Direct runs may also provide a repository, write-only environment variables, and public skill packages."
|
|
62097
62175
|
},
|
|
62098
62176
|
{
|
|
62099
|
-
name: "
|
|
62100
|
-
description: `
|
|
62101
|
-
|
|
62102
|
-
|
|
62177
|
+
name: "evals-monitor",
|
|
62178
|
+
description: "Monitor Runs\n\nStreams an immediate snapshot followed by live status and sanitized activity for one public v2 eval run or the active runs captured when the connection opens. Exactly one of `run_id` or `all=true` is required."
|
|
62179
|
+
},
|
|
62180
|
+
{
|
|
62181
|
+
name: "eval-runs-v2-eval-runs-list",
|
|
62182
|
+
description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
|
|
62103
62183
|
},
|
|
62104
62184
|
{
|
|
62105
62185
|
name: "eval-runs-v2-eval-runs-retrieve",
|
|
@@ -62127,9 +62207,7 @@ Returns all runnable harness-and-model combinations as single agent IDs for use
|
|
|
62127
62207
|
},
|
|
62128
62208
|
{
|
|
62129
62209
|
name: "repositories-v2-repositories-list",
|
|
62130
|
-
description:
|
|
62131
|
-
|
|
62132
|
-
Returns Git repositories available as reusable workspaces for eval configurations.`
|
|
62210
|
+
description: "List Repositories\n\nReturns built-in templates and enabled saved Git repositories. Pass an item's `id` directly as `repository` in a direct eval run. Public GitHub URLs are also accepted by eval runs but are not included in this list."
|
|
62133
62211
|
},
|
|
62134
62212
|
{
|
|
62135
62213
|
name: "repositories-v2-repositories-create",
|
|
@@ -63085,7 +63163,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
|
|
|
63085
63163
|
<h1>Instructions</h1>
|
|
63086
63164
|
<p>One-click installation for Claude Desktop users</p>
|
|
63087
63165
|
<div class="instruction-item">
|
|
63088
|
-
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.1
|
|
63166
|
+
<a href="https://github.com/lightsagehq/mcp/releases/download/v0.2.1/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
63089
63167
|
\uD83D\uDCE5 Download MCP Bundle
|
|
63090
63168
|
</a>
|
|
63091
63169
|
</div>
|
|
@@ -65963,7 +66041,7 @@ var routes = buildRouteMap({
|
|
|
65963
66041
|
var app = buildApplication(routes, {
|
|
65964
66042
|
name: "mcp",
|
|
65965
66043
|
versionInfo: {
|
|
65966
|
-
currentVersion: "0.1
|
|
66044
|
+
currentVersion: "0.2.1"
|
|
65967
66045
|
}
|
|
65968
66046
|
});
|
|
65969
66047
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -65971,5 +66049,5 @@ export {
|
|
|
65971
66049
|
app
|
|
65972
66050
|
};
|
|
65973
66051
|
|
|
65974
|
-
//# debugId=
|
|
66052
|
+
//# debugId=7B2B8FD750C3EB7764756E2164756E21
|
|
65975
66053
|
//# sourceMappingURL=mcp-server.js.map
|