@lightsage/mcp 0.1.11 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +539 -464
  3. package/bin/mcp-server.js.map +33 -30
  4. package/esm/funcs/evalsMonitor.d.ts +20 -0
  5. package/esm/funcs/evalsMonitor.d.ts.map +1 -0
  6. package/esm/funcs/evalsMonitor.js +95 -0
  7. package/esm/funcs/evalsMonitor.js.map +1 -0
  8. package/esm/funcs/evalsRun.d.ts +16 -0
  9. package/esm/funcs/evalsRun.d.ts.map +1 -0
  10. package/esm/funcs/{evalRunsV2EvalRunsCreate.js → evalsRun.js} +4 -4
  11. package/esm/funcs/evalsRun.js.map +1 -0
  12. package/esm/landing-page.js +1 -1
  13. package/esm/lib/config.d.ts +2 -2
  14. package/esm/lib/config.js +2 -2
  15. package/esm/lib/config.js.map +1 -1
  16. package/esm/mcp-server/mcp-server.js +1 -1
  17. package/esm/mcp-server/mcp-server.js.map +1 -1
  18. package/esm/mcp-server/server.d.ts.map +1 -1
  19. package/esm/mcp-server/server.js +5 -3
  20. package/esm/mcp-server/server.js.map +1 -1
  21. package/esm/mcp-server/tools/evalsMonitor.d.ts +7 -0
  22. package/esm/mcp-server/tools/evalsMonitor.d.ts.map +1 -0
  23. package/esm/mcp-server/tools/evalsMonitor.js +35 -0
  24. package/esm/mcp-server/tools/evalsMonitor.js.map +1 -0
  25. package/esm/mcp-server/tools/{evalRunsV2EvalRunsCreate.d.ts → evalsRun.d.ts} +2 -2
  26. package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -0
  27. package/esm/mcp-server/tools/{evalRunsV2EvalRunsCreate.js → evalsRun.js} +7 -7
  28. package/esm/mcp-server/tools/evalsRun.js.map +1 -0
  29. package/esm/models/createv2evalconfigurationrequest.d.ts +1 -0
  30. package/esm/models/createv2evalconfigurationrequest.d.ts.map +1 -1
  31. package/esm/models/createv2evalconfigurationrequest.js +1 -0
  32. package/esm/models/createv2evalconfigurationrequest.js.map +1 -1
  33. package/esm/models/createv2evalrunrequest.d.ts +9 -2
  34. package/esm/models/createv2evalrunrequest.d.ts.map +1 -1
  35. package/esm/models/createv2evalrunrequest.js +7 -2
  36. package/esm/models/createv2evalrunrequest.js.map +1 -1
  37. package/esm/models/updatev2evalconfigurationrequest.d.ts +1 -0
  38. package/esm/models/updatev2evalconfigurationrequest.d.ts.map +1 -1
  39. package/esm/models/updatev2evalconfigurationrequest.js +1 -0
  40. package/esm/models/updatev2evalconfigurationrequest.js.map +1 -1
  41. package/esm/models/v2evalconfiguration.d.ts +1 -0
  42. package/esm/models/v2evalconfiguration.d.ts.map +1 -1
  43. package/esm/models/v2evalconfiguration.js +1 -0
  44. package/esm/models/v2evalconfiguration.js.map +1 -1
  45. package/esm/models/v2evalrun.d.ts +3 -0
  46. package/esm/models/v2evalrun.d.ts.map +1 -1
  47. package/esm/models/v2evalrun.js +6 -3
  48. package/esm/models/v2evalrun.js.map +1 -1
  49. package/esm/models/v2evalrunsmonitorop.d.ts +28 -0
  50. package/esm/models/v2evalrunsmonitorop.d.ts.map +1 -0
  51. package/esm/models/v2evalrunsmonitorop.js +29 -0
  52. package/esm/models/v2evalrunsmonitorop.js.map +1 -0
  53. package/esm/models/v2listtasksresponse.d.ts +1 -1
  54. package/esm/models/v2taskslistop.d.ts +1 -1
  55. package/esm/tool-names.d.ts.map +1 -1
  56. package/esm/tool-names.js +8 -4
  57. package/esm/tool-names.js.map +1 -1
  58. package/package.json +1 -1
  59. package/src/funcs/evalsMonitor.ts +157 -0
  60. package/src/funcs/{evalRunsV2EvalRunsCreate.ts → evalsRun.ts} +3 -3
  61. package/src/landing-page.ts +1 -1
  62. package/src/lib/config.ts +2 -2
  63. package/src/mcp-server/mcp-server.ts +1 -1
  64. package/src/mcp-server/server.ts +5 -3
  65. package/src/mcp-server/tools/evalsMonitor.ts +43 -0
  66. package/src/mcp-server/tools/{evalRunsV2EvalRunsCreate.ts → evalsRun.ts} +6 -6
  67. package/src/models/createv2evalconfigurationrequest.ts +4 -0
  68. package/src/models/createv2evalrunrequest.ts +28 -4
  69. package/src/models/updatev2evalconfigurationrequest.ts +4 -0
  70. package/src/models/v2evalconfiguration.ts +4 -0
  71. package/src/models/v2evalrun.ts +17 -3
  72. package/src/models/v2evalrunsmonitorop.ts +62 -0
  73. package/src/tool-names.ts +8 -4
  74. package/esm/funcs/evalRunsV2EvalRunsCreate.d.ts +0 -16
  75. package/esm/funcs/evalRunsV2EvalRunsCreate.d.ts.map +0 -1
  76. package/esm/funcs/evalRunsV2EvalRunsCreate.js.map +0 -1
  77. package/esm/mcp-server/tools/evalRunsV2EvalRunsCreate.d.ts.map +0 -1
  78. 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: 2
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
- try {
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
- function handlePropertiesResult(result, payload, key) {
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 = parseURLObject(trimmed, def);
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 && (typeof value === "object" || typeof value === "function");
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 allKeys = new Set(Object.keys(shape));
5018
- const requiredKeys = new Set([...allKeys].filter((key) => {
4969
+ const requiredKeys = [];
4970
+ for (const key of Object.keys(shape)) {
5019
4971
  const field = def.shape[key];
5020
- if (ctx.io === "input") {
5021
- return inputOptin(field) === undefined;
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.size > 0) {
5027
- json.required = Array.from(requiredKeys);
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.11",
52721
+ sdkVersion: "0.2.0",
52797
52722
  genVersion: "2.935.1",
52798
- userAgent: "speakeasy-sdk/mcp-typescript 0.1.11 2.935.1 1.0.0 @lightsage/mcp"
52723
+ userAgent: "speakeasy-sdk/mcp-typescript 0.2.0 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/createv2evalrunrequest.ts
55287
- var CreateV2EvalRunRequest$zodSchema;
55288
- var init_createv2evalrunrequest = __esm(() => {
55211
+ // src/models/publicevalrunprogress.ts
55212
+ var PublicEvalRunProgress$zodSchema;
55213
+ var init_publicevalrunprogress = __esm(() => {
55289
55214
  init_zod();
55290
- CreateV2EvalRunRequest$zodSchema = object({
55291
- agent_id: string2().describe("Runnable agent ID from `GET /v2/agents`."),
55292
- configuration_id: string2(),
55293
- eval_id: string2()
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/evalRunsV2EvalRunsCreate.ts
55298
- function evalRunsV2EvalRunsCreate(client$, request, options) {
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$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
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$ = encodeJSON("body", payload$, { explode: true });
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: "v2_eval_runs_create",
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: "POST",
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 init_evalRunsV2EvalRunsCreate = __esm(() => {
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
- init_createv2evalrunrequest();
55354
+ init_v2evalrunslistop();
55367
55355
  init_async();
55368
55356
  });
55369
55357
 
55370
- // src/mcp-server/tools/evalRunsV2EvalRunsCreate.ts
55371
- var args6, tool$evalRunsV2EvalRunsCreate;
55372
- var init_evalRunsV2EvalRunsCreate2 = __esm(() => {
55373
- init_evalRunsV2EvalRunsCreate();
55374
- init_createv2evalrunrequest();
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: CreateV2EvalRunRequest$zodSchema
55365
+ request: V2EvalRunsListRequest$zodSchema.optional()
55378
55366
  };
55379
- tool$evalRunsV2EvalRunsCreate = {
55380
- name: "eval-runs-v2-eval-runs-create",
55381
- description: `Create Run
55367
+ tool$evalRunsV2EvalRunsList = {
55368
+ name: "eval-runs-v2-eval-runs-list",
55369
+ description: `List Runs
55382
55370
 
55383
- Queues a new eval job for one configuration and agent, and returns immediately with a polling ID.`,
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: false
55377
+ readOnlyHint: true
55390
55378
  },
55391
55379
  args: args6,
55392
55380
  tool: async (client, args, ctx) => {
55393
- const [result] = await evalRunsV2EvalRunsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
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/publicevalrunprogress.ts
55406
- var PublicEvalRunProgress$zodSchema;
55407
- var init_publicevalrunprogress = __esm(() => {
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
- init_v2evalrunsresponse();
55462
- V2EvalRunsListRequest$zodSchema = object({
55463
- limit: int().default(25),
55464
- offset: int().default(0)
55398
+ init_v2evalrun();
55399
+ V2EvalRunsRetrieveRequest$zodSchema = object({
55400
+ run_id: string2()
55465
55401
  });
55466
- V2EvalRunsListResponse$zodSchema = union([
55467
- V2EvalRunsResponse$zodSchema,
55402
+ V2EvalRunsRetrieveResponse$zodSchema = union([
55403
+ V2EvalRun$zodSchema,
55468
55404
  HTTPValidationError$zodSchema
55469
55405
  ]);
55470
55406
  });
55471
55407
 
55472
- // src/funcs/evalRunsV2EvalRunsList.ts
55473
- function evalRunsV2EvalRunsList(client$, request, options) {
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$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
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 path$ = pathToFunc("/v2/eval-runs")();
55484
- const query$ = encodeFormQuery({
55485
- limit: payload$?.limit,
55486
- offset: payload$?.offset
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: "v2_eval_runs_list",
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 init_evalRunsV2EvalRunsList = __esm(() => {
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
- init_v2evalrunslistop();
55482
+ init_v2evalrunsretrieveop();
55546
55483
  init_async();
55547
55484
  });
55548
55485
 
55549
- // src/mcp-server/tools/evalRunsV2EvalRunsList.ts
55550
- var args7, tool$evalRunsV2EvalRunsList;
55551
- var init_evalRunsV2EvalRunsList2 = __esm(() => {
55552
- init_evalRunsV2EvalRunsList();
55553
- init_v2evalrunslistop();
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: V2EvalRunsListRequest$zodSchema.optional()
55493
+ request: V2EvalRunsRetrieveRequest$zodSchema
55557
55494
  };
55558
- tool$evalRunsV2EvalRunsList = {
55559
- name: "eval-runs-v2-eval-runs-list",
55560
- description: `List Runs
55495
+ tool$evalRunsV2EvalRunsRetrieve = {
55496
+ name: "eval-runs-v2-eval-runs-retrieve",
55497
+ description: `Retrieve Run
55561
55498
 
55562
- Returns jobs created through \`POST /v2/eval-runs\`, ordered newest first, with lifecycle state and progress.`,
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 evalRunsV2EvalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
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/v2evalrunsretrieveop.ts
55585
- var V2EvalRunsRetrieveRequest$zodSchema, V2EvalRunsRetrieveResponse$zodSchema;
55586
- var init_v2evalrunsretrieveop = __esm(() => {
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
- init_v2evalrun();
55590
- V2EvalRunsRetrieveRequest$zodSchema = object({
55591
- run_id: string2()
55592
- });
55593
- V2EvalRunsRetrieveResponse$zodSchema = union([
55594
- V2EvalRun$zodSchema,
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/evalRunsV2EvalRunsRetrieve.ts
55600
- function evalRunsV2EvalRunsRetrieve(client$, request, options) {
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$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
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 pathParams$ = {
55611
- run_id: encodeSimple("run_id", payload$.run_id, {
55612
- explode: false,
55613
- charEncoding: "percent"
55614
- })
55615
- };
55616
- const path$ = pathToFunc("/v2/eval-runs/{run_id}")(pathParams$);
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: "v2_eval_runs_retrieve",
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 init_evalRunsV2EvalRunsRetrieve = __esm(() => {
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
- init_v2evalrunsretrieveop();
55617
+ init_v2evalrunsmonitorop();
55674
55618
  init_async();
55675
55619
  });
55676
55620
 
55677
- // src/mcp-server/tools/evalRunsV2EvalRunsRetrieve.ts
55678
- var args8, tool$evalRunsV2EvalRunsRetrieve;
55679
- var init_evalRunsV2EvalRunsRetrieve2 = __esm(() => {
55680
- init_evalRunsV2EvalRunsRetrieve();
55681
- init_v2evalrunsretrieveop();
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: V2EvalRunsRetrieveRequest$zodSchema
55628
+ request: V2EvalRunsMonitorRequest$zodSchema.optional()
55685
55629
  };
55686
- tool$evalRunsV2EvalRunsRetrieve = {
55687
- name: "eval-runs-v2-eval-runs-retrieve",
55688
- description: `Retrieve Run
55630
+ tool$evalsMonitor = {
55631
+ name: "evals-monitor",
55632
+ description: `Monitor Runs
55689
55633
 
55690
- Returns the status and progress of an eval job. Poll until the status reaches a terminal value.`,
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 evalRunsV2EvalRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
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($do12(client$, request, options));
55835
+ return new APIPromise($do13(client$, request, options));
55766
55836
  }
55767
- async function $do12(client$, request, options) {
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 args9, tool$evalsV2EvalConfigurationsCreate;
55913
+ var args10, tool$evalsV2EvalConfigurationsCreate;
55844
55914
  var init_evalsV2EvalConfigurationsCreate2 = __esm(() => {
55845
55915
  init_evalsV2EvalConfigurationsCreate();
55846
55916
  init_v2evalconfigurationscreateop();
55847
55917
  init_tools();
55848
- args9 = {
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: args9,
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($do13(client$, request, options));
55965
+ return new APIPromise($do14(client$, request, options));
55896
55966
  }
55897
- async function $do13(client$, request, options) {
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 args10, tool$evalsV2EvalConfigurationsDelete;
56043
+ var args11, tool$evalsV2EvalConfigurationsDelete;
55974
56044
  var init_evalsV2EvalConfigurationsDelete2 = __esm(() => {
55975
56045
  init_evalsV2EvalConfigurationsDelete();
55976
56046
  init_v2evalconfigurationsdeleteop();
55977
56047
  init_tools();
55978
- args10 = {
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: args10,
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($do14(client$, request, options));
56105
+ return new APIPromise($do15(client$, request, options));
56036
56106
  }
56037
- async function $do14(client$, request, options) {
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 args11, tool$evalsV2EvalConfigurationsList;
56182
+ var args12, tool$evalsV2EvalConfigurationsList;
56113
56183
  var init_evalsV2EvalConfigurationsList2 = __esm(() => {
56114
56184
  init_evalsV2EvalConfigurationsList();
56115
56185
  init_v2evalconfigurationslistop();
56116
56186
  init_tools();
56117
- args11 = {
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: args11,
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($do15(client$, request, options));
56234
+ return new APIPromise($do16(client$, request, options));
56165
56235
  }
56166
- async function $do15(client$, request, options) {
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 args12, tool$evalsV2EvalConfigurationsRetrieve;
56312
+ var args13, tool$evalsV2EvalConfigurationsRetrieve;
56243
56313
  var init_evalsV2EvalConfigurationsRetrieve2 = __esm(() => {
56244
56314
  init_evalsV2EvalConfigurationsRetrieve();
56245
56315
  init_v2evalconfigurationsretrieveop();
56246
56316
  init_tools();
56247
- args12 = {
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: args12,
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($do16(client$, request, options));
56382
+ return new APIPromise($do17(client$, request, options));
56312
56383
  }
56313
- async function $do16(client$, request, options) {
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 args13, tool$evalsV2EvalConfigurationsUpdate;
56461
+ var args14, tool$evalsV2EvalConfigurationsUpdate;
56391
56462
  var init_evalsV2EvalConfigurationsUpdate2 = __esm(() => {
56392
56463
  init_evalsV2EvalConfigurationsUpdate();
56393
56464
  init_v2evalconfigurationsupdateop();
56394
56465
  init_tools();
56395
- args13 = {
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: args13,
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($do17(client$, request, options));
56528
+ return new APIPromise($do18(client$, request, options));
56458
56529
  }
56459
- async function $do17(client$, request, options) {
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 args14, tool$evalsV2EvalsCreate;
56600
+ var args15, tool$evalsV2EvalsCreate;
56530
56601
  var init_evalsV2EvalsCreate2 = __esm(() => {
56531
56602
  init_evalsV2EvalsCreate();
56532
56603
  init_createv2evalrequest();
56533
56604
  init_tools();
56534
- args14 = {
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: args14,
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($do18(client$, request, options));
56676
+ return new APIPromise($do19(client$, request, options));
56606
56677
  }
56607
- async function $do18(client$, request, options) {
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 args15, tool$evalsV2EvalsDelete;
56753
+ var args16, tool$evalsV2EvalsDelete;
56683
56754
  var init_evalsV2EvalsDelete2 = __esm(() => {
56684
56755
  init_evalsV2EvalsDelete();
56685
56756
  init_v2evalsdeleteop();
56686
56757
  init_tools();
56687
- args15 = {
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: args15,
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($do19(client$, options));
56789
+ return new APIPromise($do20(client$, options));
56719
56790
  }
56720
- async function $do19(client$, options) {
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($do20(client$, request, options));
56896
+ return new APIPromise($do21(client$, request, options));
56826
56897
  }
56827
- async function $do20(client$, request, options) {
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 args16, tool$evalsV2EvalsRetrieve;
56973
+ var args17, tool$evalsV2EvalsRetrieve;
56903
56974
  var init_evalsV2EvalsRetrieve2 = __esm(() => {
56904
56975
  init_evalsV2EvalsRetrieve();
56905
56976
  init_v2evalsretrieveop();
56906
56977
  init_tools();
56907
- args16 = {
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: args16,
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($do21(client$, request, options));
57048
+ return new APIPromise($do22(client$, request, options));
56978
57049
  }
56979
- async function $do21(client$, request, options) {
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 args17, tool$evalsV2EvalsUpdate;
57126
+ var args18, tool$evalsV2EvalsUpdate;
57056
57127
  var init_evalsV2EvalsUpdate2 = __esm(() => {
57057
57128
  init_evalsV2EvalsUpdate();
57058
57129
  init_v2evalsupdateop();
57059
57130
  init_tools();
57060
- args17 = {
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: args17,
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($do22(client$, options));
57162
+ return new APIPromise($do23(client$, options));
57092
57163
  }
57093
- async function $do22(client$, options) {
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($do23(client$, request, options));
57346
+ return new APIPromise($do24(client$, request, options));
57276
57347
  }
57277
- async function $do23(client$, request, options) {
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 args18, tool$opportunitiesV2OpportunitiesList;
57426
+ var args19, tool$opportunitiesV2OpportunitiesList;
57356
57427
  var init_opportunitiesV2OpportunitiesList2 = __esm(() => {
57357
57428
  init_opportunitiesV2OpportunitiesList();
57358
57429
  init_v2opportunitieslistop();
57359
57430
  init_tools();
57360
- args18 = {
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: args18,
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($do24(client$, request, options));
57518
+ return new APIPromise($do25(client$, request, options));
57448
57519
  }
57449
- async function $do24(client$, request, options) {
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 args19, tool$opportunitiesV2OpportunitiesRetrieve;
57601
+ var args20, tool$opportunitiesV2OpportunitiesRetrieve;
57531
57602
  var init_opportunitiesV2OpportunitiesRetrieve2 = __esm(() => {
57532
57603
  init_opportunitiesV2OpportunitiesRetrieve();
57533
57604
  init_v2opportunitiesretrieveop();
57534
57605
  init_tools();
57535
- args19 = {
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: args19,
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($do25(client$, request, options));
57729
+ return new APIPromise($do26(client$, request, options));
57659
57730
  }
57660
- async function $do25(client$, request, options) {
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 args20, tool$promptsV2PromptRunsList;
57809
+ var args21, tool$promptsV2PromptRunsList;
57739
57810
  var init_promptsV2PromptRunsList2 = __esm(() => {
57740
57811
  init_promptsV2PromptRunsList();
57741
57812
  init_v2promptrunslistop();
57742
57813
  init_tools();
57743
- args20 = {
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: args20,
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($do26(client$, request, options));
57934
+ return new APIPromise($do27(client$, request, options));
57864
57935
  }
57865
- async function $do26(client$, request, options) {
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 args21, tool$promptsV2PromptRunsRetrieve;
58011
+ var args22, tool$promptsV2PromptRunsRetrieve;
57941
58012
  var init_promptsV2PromptRunsRetrieve2 = __esm(() => {
57942
58013
  init_promptsV2PromptRunsRetrieve();
57943
58014
  init_v2promptrunsretrieveop();
57944
58015
  init_tools();
57945
- args21 = {
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: args21,
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($do27(client$, request, options));
58068
+ return new APIPromise($do28(client$, request, options));
57998
58069
  }
57999
- async function $do27(client$, request, options) {
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 args22, tool$promptsV2PromptsCreate;
58140
+ var args23, tool$promptsV2PromptsCreate;
58070
58141
  var init_promptsV2PromptsCreate2 = __esm(() => {
58071
58142
  init_promptsV2PromptsCreate();
58072
58143
  init_createv2promptsrequest();
58073
58144
  init_tools();
58074
- args22 = {
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: args22,
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($do28(client$, request, options));
58200
+ return new APIPromise($do29(client$, request, options));
58130
58201
  }
58131
- async function $do28(client$, request, options) {
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 args23, tool$promptsV2PromptsDelete;
58277
+ var args24, tool$promptsV2PromptsDelete;
58207
58278
  var init_promptsV2PromptsDelete2 = __esm(() => {
58208
58279
  init_promptsV2PromptsDelete();
58209
58280
  init_v2promptsdeleteop();
58210
58281
  init_tools();
58211
- args23 = {
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: args23,
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($do29(client$, request, options));
58407
+ return new APIPromise($do30(client$, request, options));
58337
58408
  }
58338
- async function $do29(client$, request, options) {
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 args24, tool$promptsV2PromptsList;
58484
+ var args25, tool$promptsV2PromptsList;
58414
58485
  var init_promptsV2PromptsList2 = __esm(() => {
58415
58486
  init_promptsV2PromptsList();
58416
58487
  init_v2promptslistop();
58417
58488
  init_tools();
58418
- args24 = {
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: args24,
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($do30(client$, request, options));
58535
+ return new APIPromise($do31(client$, request, options));
58465
58536
  }
58466
- async function $do30(client$, request, options) {
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 args25, tool$promptsV2PromptsRetrieve;
58612
+ var args26, tool$promptsV2PromptsRetrieve;
58542
58613
  var init_promptsV2PromptsRetrieve2 = __esm(() => {
58543
58614
  init_promptsV2PromptsRetrieve();
58544
58615
  init_v2promptsretrieveop();
58545
58616
  init_tools();
58546
- args25 = {
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: args25,
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($do31(client$, request, options));
58681
+ return new APIPromise($do32(client$, request, options));
58611
58682
  }
58612
- async function $do31(client$, request, options) {
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 args26, tool$promptsV2PromptsUpdate;
58759
+ var args27, tool$promptsV2PromptsUpdate;
58689
58760
  var init_promptsV2PromptsUpdate2 = __esm(() => {
58690
58761
  init_promptsV2PromptsUpdate();
58691
58762
  init_v2promptsupdateop();
58692
58763
  init_tools();
58693
- args26 = {
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: args26,
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($do32(client$, request, options));
58804
+ return new APIPromise($do33(client$, request, options));
58734
58805
  }
58735
- async function $do32(client$, request, options) {
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 args27, tool$promptsV2PromptTopicsCreate;
58876
+ var args28, tool$promptsV2PromptTopicsCreate;
58806
58877
  var init_promptsV2PromptTopicsCreate2 = __esm(() => {
58807
58878
  init_promptsV2PromptTopicsCreate();
58808
58879
  init_createprompttopicrequest();
58809
58880
  init_tools();
58810
- args27 = {
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: args27,
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($do33(client$, request, options));
58928
+ return new APIPromise($do34(client$, request, options));
58858
58929
  }
58859
- async function $do33(client$, request, options) {
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 args28, tool$promptsV2PromptTopicsDelete;
59009
+ var args29, tool$promptsV2PromptTopicsDelete;
58939
59010
  var init_promptsV2PromptTopicsDelete2 = __esm(() => {
58940
59011
  init_promptsV2PromptTopicsDelete();
58941
59012
  init_v2prompttopicsdeleteop();
58942
59013
  init_tools();
58943
- args28 = {
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: args28,
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($do34(client$, options));
59045
+ return new APIPromise($do35(client$, options));
58975
59046
  }
58976
- async function $do34(client$, options) {
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($do35(client$, request, options));
59163
+ return new APIPromise($do36(client$, request, options));
59093
59164
  }
59094
- async function $do35(client$, request, options) {
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 args29, tool$promptsV2PromptTopicsUpdate;
59241
+ var args30, tool$promptsV2PromptTopicsUpdate;
59171
59242
  var init_promptsV2PromptTopicsUpdate2 = __esm(() => {
59172
59243
  init_promptsV2PromptTopicsUpdate();
59173
59244
  init_v2prompttopicsupdateop();
59174
59245
  init_tools();
59175
- args29 = {
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: args29,
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($do36(client$, request, options));
59304
+ return new APIPromise($do37(client$, request, options));
59234
59305
  }
59235
- async function $do36(client$, request, options) {
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 args30, tool$repositoriesV2RepositoriesCreate;
59376
+ var args31, tool$repositoriesV2RepositoriesCreate;
59306
59377
  var init_repositoriesV2RepositoriesCreate2 = __esm(() => {
59307
59378
  init_repositoriesV2RepositoriesCreate();
59308
59379
  init_createv2repositoryrequest();
59309
59380
  init_tools();
59310
- args30 = {
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: args30,
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) {
@@ -59383,9 +59454,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
59383
59454
 
59384
59455
  // src/funcs/repositoriesV2RepositoriesDelete.ts
59385
59456
  function repositoriesV2RepositoriesDelete(client$, request, options) {
59386
- return new APIPromise($do37(client$, request, options));
59457
+ return new APIPromise($do38(client$, request, options));
59387
59458
  }
59388
- async function $do37(client$, request, options) {
59459
+ async function $do38(client$, request, options) {
59389
59460
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59390
59461
  if (!parsed$.ok) {
59391
59462
  return [parsed$, { status: "invalid" }];
@@ -59460,12 +59531,12 @@ var init_repositoriesV2RepositoriesDelete = __esm(() => {
59460
59531
  });
59461
59532
 
59462
59533
  // src/mcp-server/tools/repositoriesV2RepositoriesDelete.ts
59463
- var args31, tool$repositoriesV2RepositoriesDelete;
59534
+ var args32, tool$repositoriesV2RepositoriesDelete;
59464
59535
  var init_repositoriesV2RepositoriesDelete2 = __esm(() => {
59465
59536
  init_repositoriesV2RepositoriesDelete();
59466
59537
  init_v2repositoriesdeleteop();
59467
59538
  init_tools();
59468
- args31 = {
59539
+ args32 = {
59469
59540
  request: V2RepositoriesDeleteRequest$zodSchema
59470
59541
  };
59471
59542
  tool$repositoriesV2RepositoriesDelete = {
@@ -59480,7 +59551,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
59480
59551
  openWorldHint: false,
59481
59552
  readOnlyHint: false
59482
59553
  },
59483
- args: args31,
59554
+ args: args32,
59484
59555
  tool: async (client, args, ctx) => {
59485
59556
  const [result] = await repositoriesV2RepositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59486
59557
  if (!result.ok) {
@@ -59496,9 +59567,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
59496
59567
 
59497
59568
  // src/funcs/repositoriesV2RepositoriesList.ts
59498
59569
  function repositoriesV2RepositoriesList(client$, options) {
59499
- return new APIPromise($do38(client$, options));
59570
+ return new APIPromise($do39(client$, options));
59500
59571
  }
59501
- async function $do38(client$, options) {
59572
+ async function $do39(client$, options) {
59502
59573
  const path$ = pathToFunc("/v2/repositories")();
59503
59574
  const headers$ = new Headers(compactMap({
59504
59575
  Accept: "application/json"
@@ -59603,9 +59674,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
59603
59674
 
59604
59675
  // src/funcs/repositoriesV2RepositoriesRetrieve.ts
59605
59676
  function repositoriesV2RepositoriesRetrieve(client$, request, options) {
59606
- return new APIPromise($do39(client$, request, options));
59677
+ return new APIPromise($do40(client$, request, options));
59607
59678
  }
59608
- async function $do39(client$, request, options) {
59679
+ async function $do40(client$, request, options) {
59609
59680
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59610
59681
  if (!parsed$.ok) {
59611
59682
  return [parsed$, { status: "invalid" }];
@@ -59680,12 +59751,12 @@ var init_repositoriesV2RepositoriesRetrieve = __esm(() => {
59680
59751
  });
59681
59752
 
59682
59753
  // src/mcp-server/tools/repositoriesV2RepositoriesRetrieve.ts
59683
- var args32, tool$repositoriesV2RepositoriesRetrieve;
59754
+ var args33, tool$repositoriesV2RepositoriesRetrieve;
59684
59755
  var init_repositoriesV2RepositoriesRetrieve2 = __esm(() => {
59685
59756
  init_repositoriesV2RepositoriesRetrieve();
59686
59757
  init_v2repositoriesretrieveop();
59687
59758
  init_tools();
59688
- args32 = {
59759
+ args33 = {
59689
59760
  request: V2RepositoriesRetrieveRequest$zodSchema
59690
59761
  };
59691
59762
  tool$repositoriesV2RepositoriesRetrieve = {
@@ -59700,7 +59771,7 @@ Returns one reusable repository workspace.`,
59700
59771
  openWorldHint: false,
59701
59772
  readOnlyHint: true
59702
59773
  },
59703
- args: args32,
59774
+ args: args33,
59704
59775
  tool: async (client, args, ctx) => {
59705
59776
  const [result] = await repositoriesV2RepositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59706
59777
  if (!result.ok) {
@@ -59760,9 +59831,9 @@ var init_v2repositoriesupdateop = __esm(() => {
59760
59831
 
59761
59832
  // src/funcs/repositoriesV2RepositoriesUpdate.ts
59762
59833
  function repositoriesV2RepositoriesUpdate(client$, request, options) {
59763
- return new APIPromise($do40(client$, request, options));
59834
+ return new APIPromise($do41(client$, request, options));
59764
59835
  }
59765
- async function $do40(client$, request, options) {
59836
+ async function $do41(client$, request, options) {
59766
59837
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
59767
59838
  if (!parsed$.ok) {
59768
59839
  return [parsed$, { status: "invalid" }];
@@ -59838,12 +59909,12 @@ var init_repositoriesV2RepositoriesUpdate = __esm(() => {
59838
59909
  });
59839
59910
 
59840
59911
  // src/mcp-server/tools/repositoriesV2RepositoriesUpdate.ts
59841
- var args33, tool$repositoriesV2RepositoriesUpdate;
59912
+ var args34, tool$repositoriesV2RepositoriesUpdate;
59842
59913
  var init_repositoriesV2RepositoriesUpdate2 = __esm(() => {
59843
59914
  init_repositoriesV2RepositoriesUpdate();
59844
59915
  init_v2repositoriesupdateop();
59845
59916
  init_tools();
59846
- args33 = {
59917
+ args34 = {
59847
59918
  request: V2RepositoriesUpdateRequest$zodSchema
59848
59919
  };
59849
59920
  tool$repositoriesV2RepositoriesUpdate = {
@@ -59858,7 +59929,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
59858
59929
  openWorldHint: false,
59859
59930
  readOnlyHint: false
59860
59931
  },
59861
- args: args33,
59932
+ args: args34,
59862
59933
  tool: async (client, args, ctx) => {
59863
59934
  const [result] = await repositoriesV2RepositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59864
59935
  if (!result.ok) {
@@ -59874,9 +59945,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
59874
59945
 
59875
59946
  // src/funcs/siteAuditsV2SiteAuditsList.ts
59876
59947
  function siteAuditsV2SiteAuditsList(client$, options) {
59877
- return new APIPromise($do41(client$, options));
59948
+ return new APIPromise($do42(client$, options));
59878
59949
  }
59879
- async function $do41(client$, options) {
59950
+ async function $do42(client$, options) {
59880
59951
  const path$ = pathToFunc("/v2/site-audits")();
59881
59952
  const headers$ = new Headers(compactMap({
59882
59953
  Accept: "application/json"
@@ -60017,9 +60088,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
60017
60088
 
60018
60089
  // src/funcs/siteAuditsV2SiteAuditsRetrieve.ts
60019
60090
  function siteAuditsV2SiteAuditsRetrieve(client$, request, options) {
60020
- return new APIPromise($do42(client$, request, options));
60091
+ return new APIPromise($do43(client$, request, options));
60021
60092
  }
60022
- async function $do42(client$, request, options) {
60093
+ async function $do43(client$, request, options) {
60023
60094
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60024
60095
  if (!parsed$.ok) {
60025
60096
  return [parsed$, { status: "invalid" }];
@@ -60094,12 +60165,12 @@ var init_siteAuditsV2SiteAuditsRetrieve = __esm(() => {
60094
60165
  });
60095
60166
 
60096
60167
  // src/mcp-server/tools/siteAuditsV2SiteAuditsRetrieve.ts
60097
- var args34, tool$siteAuditsV2SiteAuditsRetrieve;
60168
+ var args35, tool$siteAuditsV2SiteAuditsRetrieve;
60098
60169
  var init_siteAuditsV2SiteAuditsRetrieve2 = __esm(() => {
60099
60170
  init_siteAuditsV2SiteAuditsRetrieve();
60100
60171
  init_v2siteauditsretrieveop();
60101
60172
  init_tools();
60102
- args34 = {
60173
+ args35 = {
60103
60174
  request: V2SiteAuditsRetrieveRequest$zodSchema
60104
60175
  };
60105
60176
  tool$siteAuditsV2SiteAuditsRetrieve = {
@@ -60114,7 +60185,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
60114
60185
  openWorldHint: false,
60115
60186
  readOnlyHint: true
60116
60187
  },
60117
- args: args34,
60188
+ args: args35,
60118
60189
  tool: async (client, args, ctx) => {
60119
60190
  const [result] = await siteAuditsV2SiteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60120
60191
  if (!result.ok) {
@@ -60130,9 +60201,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
60130
60201
 
60131
60202
  // src/funcs/skillsV2SkillsList.ts
60132
60203
  function skillsV2SkillsList(client$, options) {
60133
- return new APIPromise($do43(client$, options));
60204
+ return new APIPromise($do44(client$, options));
60134
60205
  }
60135
- async function $do43(client$, options) {
60206
+ async function $do44(client$, options) {
60136
60207
  const path$ = pathToFunc("/v2/skills")();
60137
60208
  const headers$ = new Headers(compactMap({
60138
60209
  Accept: "application/json"
@@ -60222,9 +60293,9 @@ Returns reusable skills available to workflows and eval configurations.`,
60222
60293
 
60223
60294
  // src/funcs/statusV2AuthStatusGet.ts
60224
60295
  function statusV2AuthStatusGet(client$, options) {
60225
- return new APIPromise($do44(client$, options));
60296
+ return new APIPromise($do45(client$, options));
60226
60297
  }
60227
- async function $do44(client$, options) {
60298
+ async function $do45(client$, options) {
60228
60299
  const path$ = pathToFunc("/v2/auth/status")();
60229
60300
  const headers$ = new Headers(compactMap({
60230
60301
  Accept: "application/json"
@@ -60314,9 +60385,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
60314
60385
 
60315
60386
  // src/funcs/statusV2StatusGet.ts
60316
60387
  function statusV2StatusGet(client$, options) {
60317
- return new APIPromise($do45(client$, options));
60388
+ return new APIPromise($do46(client$, options));
60318
60389
  }
60319
- async function $do45(client$, options) {
60390
+ async function $do46(client$, options) {
60320
60391
  const path$ = pathToFunc("/v2/status")();
60321
60392
  const headers$ = new Headers(compactMap({
60322
60393
  Accept: "application/json"
@@ -60536,9 +60607,9 @@ var init_v2taskslistop = __esm(() => {
60536
60607
 
60537
60608
  // src/funcs/tasksV2TasksList.ts
60538
60609
  function tasksV2TasksList(client$, request, options) {
60539
- return new APIPromise($do46(client$, request, options));
60610
+ return new APIPromise($do47(client$, request, options));
60540
60611
  }
60541
- async function $do46(client$, request, options) {
60612
+ async function $do47(client$, request, options) {
60542
60613
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
60543
60614
  if (!parsed$.ok) {
60544
60615
  return [parsed$, { status: "invalid" }];
@@ -60612,12 +60683,12 @@ var init_tasksV2TasksList = __esm(() => {
60612
60683
  });
60613
60684
 
60614
60685
  // src/mcp-server/tools/tasksV2TasksList.ts
60615
- var args35, tool$tasksV2TasksList;
60686
+ var args36, tool$tasksV2TasksList;
60616
60687
  var init_tasksV2TasksList2 = __esm(() => {
60617
60688
  init_tasksV2TasksList();
60618
60689
  init_v2taskslistop();
60619
60690
  init_tools();
60620
- args35 = {
60691
+ args36 = {
60621
60692
  request: V2TasksListRequest$zodSchema.optional()
60622
60693
  };
60623
60694
  tool$tasksV2TasksList = {
@@ -60632,7 +60703,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
60632
60703
  openWorldHint: false,
60633
60704
  readOnlyHint: true
60634
60705
  },
60635
- args: args35,
60706
+ args: args36,
60636
60707
  tool: async (client, args, ctx) => {
60637
60708
  const [result] = await tasksV2TasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60638
60709
  if (!result.ok) {
@@ -60663,9 +60734,9 @@ var init_v2tasksretrieveop = __esm(() => {
60663
60734
 
60664
60735
  // src/funcs/tasksV2TasksRetrieve.ts
60665
60736
  function tasksV2TasksRetrieve(client$, request, options) {
60666
- return new APIPromise($do47(client$, request, options));
60737
+ return new APIPromise($do48(client$, request, options));
60667
60738
  }
60668
- async function $do47(client$, request, options) {
60739
+ async function $do48(client$, request, options) {
60669
60740
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60670
60741
  if (!parsed$.ok) {
60671
60742
  return [parsed$, { status: "invalid" }];
@@ -60740,12 +60811,12 @@ var init_tasksV2TasksRetrieve = __esm(() => {
60740
60811
  });
60741
60812
 
60742
60813
  // src/mcp-server/tools/tasksV2TasksRetrieve.ts
60743
- var args36, tool$tasksV2TasksRetrieve;
60814
+ var args37, tool$tasksV2TasksRetrieve;
60744
60815
  var init_tasksV2TasksRetrieve2 = __esm(() => {
60745
60816
  init_tasksV2TasksRetrieve();
60746
60817
  init_v2tasksretrieveop();
60747
60818
  init_tools();
60748
- args36 = {
60819
+ args37 = {
60749
60820
  request: V2TasksRetrieveRequest$zodSchema
60750
60821
  };
60751
60822
  tool$tasksV2TasksRetrieve = {
@@ -60760,7 +60831,7 @@ Returns one persisted task and its execution prompt.`,
60760
60831
  openWorldHint: false,
60761
60832
  readOnlyHint: true
60762
60833
  },
60763
- args: args36,
60834
+ args: args37,
60764
60835
  tool: async (client, args, ctx) => {
60765
60836
  const [result] = await tasksV2TasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60766
60837
  if (!result.ok) {
@@ -60823,9 +60894,9 @@ var init_v2tasksupdateop = __esm(() => {
60823
60894
 
60824
60895
  // src/funcs/tasksV2TasksUpdate.ts
60825
60896
  function tasksV2TasksUpdate(client$, request, options) {
60826
- return new APIPromise($do48(client$, request, options));
60897
+ return new APIPromise($do49(client$, request, options));
60827
60898
  }
60828
- async function $do48(client$, request, options) {
60899
+ async function $do49(client$, request, options) {
60829
60900
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
60830
60901
  if (!parsed$.ok) {
60831
60902
  return [parsed$, { status: "invalid" }];
@@ -60901,12 +60972,12 @@ var init_tasksV2TasksUpdate = __esm(() => {
60901
60972
  });
60902
60973
 
60903
60974
  // src/mcp-server/tools/tasksV2TasksUpdate.ts
60904
- var args37, tool$tasksV2TasksUpdate;
60975
+ var args38, tool$tasksV2TasksUpdate;
60905
60976
  var init_tasksV2TasksUpdate2 = __esm(() => {
60906
60977
  init_tasksV2TasksUpdate();
60907
60978
  init_v2tasksupdateop();
60908
60979
  init_tools();
60909
- args37 = {
60980
+ args38 = {
60910
60981
  request: V2TasksUpdateRequest$zodSchema
60911
60982
  };
60912
60983
  tool$tasksV2TasksUpdate = {
@@ -60921,7 +60992,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
60921
60992
  openWorldHint: false,
60922
60993
  readOnlyHint: false
60923
60994
  },
60924
- args: args37,
60995
+ args: args38,
60925
60996
  tool: async (client, args, ctx) => {
60926
60997
  const [result] = await tasksV2TasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60927
60998
  if (!result.ok) {
@@ -61009,9 +61080,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
61009
61080
 
61010
61081
  // src/funcs/visibilityV2VisibilityCitationsList.ts
61011
61082
  function visibilityV2VisibilityCitationsList(client$, request, options) {
61012
- return new APIPromise($do49(client$, request, options));
61083
+ return new APIPromise($do50(client$, request, options));
61013
61084
  }
61014
- async function $do49(client$, request, options) {
61085
+ async function $do50(client$, request, options) {
61015
61086
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
61016
61087
  if (!parsed$.ok) {
61017
61088
  return [parsed$, { status: "invalid" }];
@@ -61088,12 +61159,12 @@ var init_visibilityV2VisibilityCitationsList = __esm(() => {
61088
61159
  });
61089
61160
 
61090
61161
  // src/mcp-server/tools/visibilityV2VisibilityCitationsList.ts
61091
- var args38, tool$visibilityV2VisibilityCitationsList;
61162
+ var args39, tool$visibilityV2VisibilityCitationsList;
61092
61163
  var init_visibilityV2VisibilityCitationsList2 = __esm(() => {
61093
61164
  init_visibilityV2VisibilityCitationsList();
61094
61165
  init_v2visibilitycitationslistop();
61095
61166
  init_tools();
61096
- args38 = {
61167
+ args39 = {
61097
61168
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
61098
61169
  };
61099
61170
  tool$visibilityV2VisibilityCitationsList = {
@@ -61108,7 +61179,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
61108
61179
  openWorldHint: false,
61109
61180
  readOnlyHint: true
61110
61181
  },
61111
- args: args38,
61182
+ args: args39,
61112
61183
  tool: async (client, args, ctx) => {
61113
61184
  const [result] = await visibilityV2VisibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61114
61185
  if (!result.ok) {
@@ -61173,9 +61244,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
61173
61244
 
61174
61245
  // src/funcs/visibilityV2VisibilityCurrentRetrieve.ts
61175
61246
  function visibilityV2VisibilityCurrentRetrieve(client$, request, options) {
61176
- return new APIPromise($do50(client$, request, options));
61247
+ return new APIPromise($do51(client$, request, options));
61177
61248
  }
61178
- async function $do50(client$, request, options) {
61249
+ async function $do51(client$, request, options) {
61179
61250
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61180
61251
  if (!parsed$.ok) {
61181
61252
  return [parsed$, { status: "invalid" }];
@@ -61249,12 +61320,12 @@ var init_visibilityV2VisibilityCurrentRetrieve = __esm(() => {
61249
61320
  });
61250
61321
 
61251
61322
  // src/mcp-server/tools/visibilityV2VisibilityCurrentRetrieve.ts
61252
- var args39, tool$visibilityV2VisibilityCurrentRetrieve;
61323
+ var args40, tool$visibilityV2VisibilityCurrentRetrieve;
61253
61324
  var init_visibilityV2VisibilityCurrentRetrieve2 = __esm(() => {
61254
61325
  init_visibilityV2VisibilityCurrentRetrieve();
61255
61326
  init_v2visibilitycurrentretrieveop();
61256
61327
  init_tools();
61257
- args39 = {
61328
+ args40 = {
61258
61329
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
61259
61330
  };
61260
61331
  tool$visibilityV2VisibilityCurrentRetrieve = {
@@ -61269,7 +61340,7 @@ Returns visibility score, share of voice, ranks, and date-range metadata for the
61269
61340
  openWorldHint: false,
61270
61341
  readOnlyHint: true
61271
61342
  },
61272
- args: args39,
61343
+ args: args40,
61273
61344
  tool: async (client, args, ctx) => {
61274
61345
  const [result] = await visibilityV2VisibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61275
61346
  if (!result.ok) {
@@ -61412,9 +61483,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
61412
61483
 
61413
61484
  // src/funcs/visibilityV2VisibilityOverviewRetrieve.ts
61414
61485
  function visibilityV2VisibilityOverviewRetrieve(client$, request, options) {
61415
- return new APIPromise($do51(client$, request, options));
61486
+ return new APIPromise($do52(client$, request, options));
61416
61487
  }
61417
- async function $do51(client$, request, options) {
61488
+ async function $do52(client$, request, options) {
61418
61489
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61419
61490
  if (!parsed$.ok) {
61420
61491
  return [parsed$, { status: "invalid" }];
@@ -61488,12 +61559,12 @@ var init_visibilityV2VisibilityOverviewRetrieve = __esm(() => {
61488
61559
  });
61489
61560
 
61490
61561
  // src/mcp-server/tools/visibilityV2VisibilityOverviewRetrieve.ts
61491
- var args40, tool$visibilityV2VisibilityOverviewRetrieve;
61562
+ var args41, tool$visibilityV2VisibilityOverviewRetrieve;
61492
61563
  var init_visibilityV2VisibilityOverviewRetrieve2 = __esm(() => {
61493
61564
  init_visibilityV2VisibilityOverviewRetrieve();
61494
61565
  init_v2visibilityoverviewretrieveop();
61495
61566
  init_tools();
61496
- args40 = {
61567
+ args41 = {
61497
61568
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
61498
61569
  };
61499
61570
  tool$visibilityV2VisibilityOverviewRetrieve = {
@@ -61508,7 +61579,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
61508
61579
  openWorldHint: false,
61509
61580
  readOnlyHint: true
61510
61581
  },
61511
- args: args40,
61582
+ args: args41,
61512
61583
  tool: async (client, args, ctx) => {
61513
61584
  const [result] = await visibilityV2VisibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61514
61585
  if (!result.ok) {
@@ -61622,9 +61693,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
61622
61693
 
61623
61694
  // src/funcs/visibilityV2VisibilityPromptsRetrieve.ts
61624
61695
  function visibilityV2VisibilityPromptsRetrieve(client$, request, options) {
61625
- return new APIPromise($do52(client$, request, options));
61696
+ return new APIPromise($do53(client$, request, options));
61626
61697
  }
61627
- async function $do52(client$, request, options) {
61698
+ async function $do53(client$, request, options) {
61628
61699
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
61629
61700
  if (!parsed$.ok) {
61630
61701
  return [parsed$, { status: "invalid" }];
@@ -61698,12 +61769,12 @@ var init_visibilityV2VisibilityPromptsRetrieve = __esm(() => {
61698
61769
  });
61699
61770
 
61700
61771
  // src/mcp-server/tools/visibilityV2VisibilityPromptsRetrieve.ts
61701
- var args41, tool$visibilityV2VisibilityPromptsRetrieve;
61772
+ var args42, tool$visibilityV2VisibilityPromptsRetrieve;
61702
61773
  var init_visibilityV2VisibilityPromptsRetrieve2 = __esm(() => {
61703
61774
  init_visibilityV2VisibilityPromptsRetrieve();
61704
61775
  init_v2visibilitypromptsretrieveop();
61705
61776
  init_tools();
61706
- args41 = {
61777
+ args42 = {
61707
61778
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
61708
61779
  };
61709
61780
  tool$visibilityV2VisibilityPromptsRetrieve = {
@@ -61718,7 +61789,7 @@ Returns per-topic and per-prompt visibility metrics including score, rank, share
61718
61789
  openWorldHint: false,
61719
61790
  readOnlyHint: true
61720
61791
  },
61721
- args: args41,
61792
+ args: args42,
61722
61793
  tool: async (client, args, ctx) => {
61723
61794
  const [result] = await visibilityV2VisibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61724
61795
  if (!result.ok) {
@@ -61742,7 +61813,7 @@ function createMCPServer(deps) {
61742
61813
  sizes: ["any"]
61743
61814
  }],
61744
61815
  name: "LightsageMcp",
61745
- version: "0.1.11"
61816
+ version: "0.2.0"
61746
61817
  });
61747
61818
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
61748
61819
  security: deps.security,
@@ -61798,8 +61869,9 @@ function createMCPServer(deps) {
61798
61869
  tool(tool$evalsV2EvalConfigurationsRetrieve);
61799
61870
  tool(tool$evalsV2EvalConfigurationsUpdate);
61800
61871
  tool(tool$evalsV2EvalConfigurationsDelete);
61872
+ tool(tool$evalsRun);
61873
+ tool(tool$evalsMonitor);
61801
61874
  tool(tool$evalRunsV2EvalRunsList);
61802
- tool(tool$evalRunsV2EvalRunsCreate);
61803
61875
  tool(tool$evalRunsV2EvalRunsRetrieve);
61804
61876
  tool(tool$evalResultsV2EvalResultsList);
61805
61877
  tool(tool$evalResultsV2EvalResultsRetrieve);
@@ -61831,9 +61903,10 @@ var init_server2 = __esm(() => {
61831
61903
  init_environmentsV2EnvironmentsList2();
61832
61904
  init_evalResultsV2EvalResultsList2();
61833
61905
  init_evalResultsV2EvalResultsRetrieve2();
61834
- init_evalRunsV2EvalRunsCreate2();
61835
61906
  init_evalRunsV2EvalRunsList2();
61836
61907
  init_evalRunsV2EvalRunsRetrieve2();
61908
+ init_evalsMonitor2();
61909
+ init_evalsRun2();
61837
61910
  init_evalsV2EvalConfigurationsCreate2();
61838
61911
  init_evalsV2EvalConfigurationsDelete2();
61839
61912
  init_evalsV2EvalConfigurationsList2();
@@ -62092,14 +62165,16 @@ Updates an eval configuration; omitted fields remain unchanged.`
62092
62165
  Permanently deletes an eval configuration and returns its last saved state.`
62093
62166
  },
62094
62167
  {
62095
- name: "eval-runs-v2-eval-runs-list",
62096
- description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
62168
+ name: "evals-run",
62169
+ 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
62170
  },
62098
62171
  {
62099
- name: "eval-runs-v2-eval-runs-create",
62100
- description: `Create Run
62101
-
62102
- Queues a new eval job for one configuration and agent, and returns immediately with a polling ID.`
62172
+ name: "evals-monitor",
62173
+ 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."
62174
+ },
62175
+ {
62176
+ name: "eval-runs-v2-eval-runs-list",
62177
+ description: "List Runs\n\nReturns jobs created through `POST /v2/eval-runs`, ordered newest first, with lifecycle state and progress."
62103
62178
  },
62104
62179
  {
62105
62180
  name: "eval-runs-v2-eval-runs-retrieve",
@@ -63085,7 +63160,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
63085
63160
  <h1>Instructions</h1>
63086
63161
  <p>One-click installation for Claude Desktop users</p>
63087
63162
  <div class="instruction-item">
63088
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.1.11/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
63163
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.2.0/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
63089
63164
  \uD83D\uDCE5 Download MCP Bundle
63090
63165
  </a>
63091
63166
  </div>
@@ -65963,7 +66038,7 @@ var routes = buildRouteMap({
65963
66038
  var app = buildApplication(routes, {
65964
66039
  name: "mcp",
65965
66040
  versionInfo: {
65966
- currentVersion: "0.1.11"
66041
+ currentVersion: "0.2.0"
65967
66042
  }
65968
66043
  });
65969
66044
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -65971,5 +66046,5 @@ export {
65971
66046
  app
65972
66047
  };
65973
66048
 
65974
- //# debugId=1CA5AB6E372181A364756E2164756E21
66049
+ //# debugId=A53AF1992BDBC8DC64756E2164756E21
65975
66050
  //# sourceMappingURL=mcp-server.js.map