@lightsage/mcp 0.4.15 → 0.4.17

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 (213) hide show
  1. package/README.md +2 -2
  2. package/api/mcp.js +30 -0
  3. package/bin/mcp-server.js +1766 -510
  4. package/bin/mcp-server.js.map +56 -25
  5. package/esm/funcs/agentAnalyticsCountriesList.d.ts +16 -0
  6. package/esm/funcs/agentAnalyticsCountriesList.d.ts.map +1 -0
  7. package/esm/funcs/agentAnalyticsCountriesList.js +94 -0
  8. package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -0
  9. package/esm/funcs/agentAnalyticsErrorPagesList.d.ts +16 -0
  10. package/esm/funcs/agentAnalyticsErrorPagesList.d.ts.map +1 -0
  11. package/esm/funcs/agentAnalyticsErrorPagesList.js +96 -0
  12. package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -0
  13. package/esm/funcs/agentAnalyticsPagesList.d.ts +16 -0
  14. package/esm/funcs/agentAnalyticsPagesList.d.ts.map +1 -0
  15. package/esm/funcs/agentAnalyticsPagesList.js +98 -0
  16. package/esm/funcs/agentAnalyticsPagesList.js.map +1 -0
  17. package/esm/funcs/agentAnalyticsSitesList.d.ts +15 -0
  18. package/esm/funcs/agentAnalyticsSitesList.d.ts.map +1 -0
  19. package/esm/funcs/agentAnalyticsSitesList.js +72 -0
  20. package/esm/funcs/agentAnalyticsSitesList.js.map +1 -0
  21. package/esm/funcs/agentAnalyticsSourcesList.d.ts +16 -0
  22. package/esm/funcs/agentAnalyticsSourcesList.d.ts.map +1 -0
  23. package/esm/funcs/agentAnalyticsSourcesList.js +93 -0
  24. package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -0
  25. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +16 -0
  26. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
  27. package/esm/funcs/agentAnalyticsSummaryRetrieve.js +93 -0
  28. package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -0
  29. package/esm/funcs/tasksCreate.d.ts +16 -0
  30. package/esm/funcs/tasksCreate.d.ts.map +1 -0
  31. package/esm/funcs/tasksCreate.js +83 -0
  32. package/esm/funcs/tasksCreate.js.map +1 -0
  33. package/esm/landing-page.js +1 -1
  34. package/esm/lib/config.d.ts +2 -2
  35. package/esm/lib/config.js +2 -2
  36. package/esm/mcp-server/mcp-server.js +1 -1
  37. package/esm/mcp-server/server.d.ts.map +1 -1
  38. package/esm/mcp-server/server.js +15 -1
  39. package/esm/mcp-server/server.js.map +1 -1
  40. package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts +7 -0
  41. package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts.map +1 -0
  42. package/esm/mcp-server/tools/agentAnalyticsCountriesList.js +35 -0
  43. package/esm/mcp-server/tools/agentAnalyticsCountriesList.js.map +1 -0
  44. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts +7 -0
  45. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts.map +1 -0
  46. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js +35 -0
  47. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js.map +1 -0
  48. package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts +7 -0
  49. package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts.map +1 -0
  50. package/esm/mcp-server/tools/agentAnalyticsPagesList.js +35 -0
  51. package/esm/mcp-server/tools/agentAnalyticsPagesList.js.map +1 -0
  52. package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts +3 -0
  53. package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts.map +1 -0
  54. package/esm/mcp-server/tools/agentAnalyticsSitesList.js +30 -0
  55. package/esm/mcp-server/tools/agentAnalyticsSitesList.js.map +1 -0
  56. package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts +7 -0
  57. package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts.map +1 -0
  58. package/esm/mcp-server/tools/agentAnalyticsSourcesList.js +35 -0
  59. package/esm/mcp-server/tools/agentAnalyticsSourcesList.js.map +1 -0
  60. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts +7 -0
  61. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
  62. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +35 -0
  63. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -0
  64. package/esm/mcp-server/tools/tasksCreate.d.ts +7 -0
  65. package/esm/mcp-server/tools/tasksCreate.d.ts.map +1 -0
  66. package/esm/mcp-server/tools/tasksCreate.js +35 -0
  67. package/esm/mcp-server/tools/tasksCreate.js.map +1 -0
  68. package/esm/models/createtaskrequest.d.ts +65 -0
  69. package/esm/models/createtaskrequest.d.ts.map +1 -0
  70. package/esm/models/createtaskrequest.js +64 -0
  71. package/esm/models/createtaskrequest.js.map +1 -0
  72. package/esm/models/graderdefinition.d.ts +15 -0
  73. package/esm/models/graderdefinition.d.ts.map +1 -1
  74. package/esm/models/graderdefinition.js +13 -0
  75. package/esm/models/graderdefinition.js.map +1 -1
  76. package/esm/models/publicagentanalyticscountrylistresponse.d.ts +10 -0
  77. package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -0
  78. package/esm/models/publicagentanalyticscountrylistresponse.js +13 -0
  79. package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -0
  80. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +11 -0
  81. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -0
  82. package/esm/models/publicagentanalyticserrorpagelistresponse.js +14 -0
  83. package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -0
  84. package/esm/models/publicagentanalyticspagelistresponse.d.ts +11 -0
  85. package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -0
  86. package/esm/models/publicagentanalyticspagelistresponse.js +14 -0
  87. package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -0
  88. package/esm/models/publicagentanalyticssite.d.ts +9 -0
  89. package/esm/models/publicagentanalyticssite.d.ts.map +1 -0
  90. package/esm/models/publicagentanalyticssite.js +12 -0
  91. package/esm/models/publicagentanalyticssite.js.map +1 -0
  92. package/esm/models/publicagentanalyticssitelistresponse.d.ts +7 -0
  93. package/esm/models/publicagentanalyticssitelistresponse.d.ts.map +1 -0
  94. package/esm/models/publicagentanalyticssitelistresponse.js +10 -0
  95. package/esm/models/publicagentanalyticssitelistresponse.js.map +1 -0
  96. package/esm/models/publicagentanalyticssourcelistresponse.d.ts +10 -0
  97. package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -0
  98. package/esm/models/publicagentanalyticssourcelistresponse.js +13 -0
  99. package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -0
  100. package/esm/models/publicagentanalyticssummary.d.ts +11 -0
  101. package/esm/models/publicagentanalyticssummary.d.ts.map +1 -0
  102. package/esm/models/publicagentanalyticssummary.js +14 -0
  103. package/esm/models/publicagentanalyticssummary.js.map +1 -0
  104. package/esm/models/publicagentcountry.d.ts +7 -0
  105. package/esm/models/publicagentcountry.d.ts.map +1 -0
  106. package/esm/models/publicagentcountry.js +11 -0
  107. package/esm/models/publicagentcountry.js.map +1 -0
  108. package/esm/models/publicagenterrorpage.d.ts +12 -0
  109. package/esm/models/publicagenterrorpage.d.ts.map +1 -0
  110. package/esm/models/publicagenterrorpage.js +16 -0
  111. package/esm/models/publicagenterrorpage.js.map +1 -0
  112. package/esm/models/publicagenterrorsource.d.ts +40 -0
  113. package/esm/models/publicagenterrorsource.d.ts.map +1 -0
  114. package/esm/models/publicagenterrorsource.js +40 -0
  115. package/esm/models/publicagenterrorsource.js.map +1 -0
  116. package/esm/models/publicagenttrafficpage.d.ts +14 -0
  117. package/esm/models/publicagenttrafficpage.d.ts.map +1 -0
  118. package/esm/models/publicagenttrafficpage.js +17 -0
  119. package/esm/models/publicagenttrafficpage.js.map +1 -0
  120. package/esm/models/publicagenttrafficsource.d.ts +47 -0
  121. package/esm/models/publicagenttrafficsource.d.ts.map +1 -0
  122. package/esm/models/publicagenttrafficsource.js +44 -0
  123. package/esm/models/publicagenttrafficsource.js.map +1 -0
  124. package/esm/models/publicagenttraffictotals.d.ts +13 -0
  125. package/esm/models/publicagenttraffictotals.d.ts.map +1 -0
  126. package/esm/models/publicagenttraffictotals.js +16 -0
  127. package/esm/models/publicagenttraffictotals.js.map +1 -0
  128. package/esm/models/updatetaskrequest.d.ts +8 -8
  129. package/esm/models/updatetaskrequest.d.ts.map +1 -1
  130. package/esm/models/updatetaskrequest.js +6 -6
  131. package/esm/models/updatetaskrequest.js.map +1 -1
  132. package/esm/models/v2agentanalyticscountrieslistop.d.ts +13 -0
  133. package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -0
  134. package/esm/models/v2agentanalyticscountrieslistop.js +18 -0
  135. package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -0
  136. package/esm/models/v2agentanalyticserrorpageslistop.d.ts +39 -0
  137. package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -0
  138. package/esm/models/v2agentanalyticserrorpageslistop.js +39 -0
  139. package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -0
  140. package/esm/models/v2agentanalyticspageslistop.d.ts +68 -0
  141. package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -0
  142. package/esm/models/v2agentanalyticspageslistop.js +65 -0
  143. package/esm/models/v2agentanalyticspageslistop.js.map +1 -0
  144. package/esm/models/v2agentanalyticssourceslistop.d.ts +12 -0
  145. package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -0
  146. package/esm/models/v2agentanalyticssourceslistop.js +17 -0
  147. package/esm/models/v2agentanalyticssourceslistop.js.map +1 -0
  148. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +12 -0
  149. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -0
  150. package/esm/models/v2agentanalyticssummaryretrieveop.js +17 -0
  151. package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -0
  152. package/esm/models/v2inlinemcpdefinition.js +1 -1
  153. package/esm/models/v2inlinemcpdefinition.js.map +1 -1
  154. package/esm/models/v2publictask.js +1 -1
  155. package/esm/models/v2publictask.js.map +1 -1
  156. package/esm/models/v2repository.d.ts +4 -4
  157. package/esm/models/v2repository.d.ts.map +1 -1
  158. package/esm/models/v2repository.js +3 -3
  159. package/esm/models/v2repository.js.map +1 -1
  160. package/esm/models/v2taskscreateop.d.ts +13 -0
  161. package/esm/models/v2taskscreateop.d.ts.map +1 -0
  162. package/esm/models/v2taskscreateop.js +16 -0
  163. package/esm/models/v2taskscreateop.js.map +1 -0
  164. package/esm/tool-names.d.ts.map +1 -1
  165. package/esm/tool-names.js +28 -0
  166. package/esm/tool-names.js.map +1 -1
  167. package/lib/tracker.js +219 -0
  168. package/package.json +3 -1
  169. package/src/funcs/agentAnalyticsCountriesList.ts +159 -0
  170. package/src/funcs/agentAnalyticsErrorPagesList.ts +161 -0
  171. package/src/funcs/agentAnalyticsPagesList.ts +163 -0
  172. package/src/funcs/agentAnalyticsSitesList.ts +124 -0
  173. package/src/funcs/agentAnalyticsSourcesList.ts +158 -0
  174. package/src/funcs/agentAnalyticsSummaryRetrieve.ts +158 -0
  175. package/src/funcs/tasksCreate.ts +145 -0
  176. package/src/landing-page.ts +1 -1
  177. package/src/lib/config.ts +2 -2
  178. package/src/mcp-server/mcp-server.ts +1 -1
  179. package/src/mcp-server/server.ts +15 -1
  180. package/src/mcp-server/tools/agentAnalyticsCountriesList.ts +43 -0
  181. package/src/mcp-server/tools/agentAnalyticsErrorPagesList.ts +43 -0
  182. package/src/mcp-server/tools/agentAnalyticsPagesList.ts +43 -0
  183. package/src/mcp-server/tools/agentAnalyticsSitesList.ts +36 -0
  184. package/src/mcp-server/tools/agentAnalyticsSourcesList.ts +43 -0
  185. package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +43 -0
  186. package/src/mcp-server/tools/tasksCreate.ts +43 -0
  187. package/src/models/createtaskrequest.ts +98 -0
  188. package/src/models/graderdefinition.ts +20 -0
  189. package/src/models/publicagentanalyticscountrylistresponse.ts +28 -0
  190. package/src/models/publicagentanalyticserrorpagelistresponse.ts +32 -0
  191. package/src/models/publicagentanalyticspagelistresponse.ts +30 -0
  192. package/src/models/publicagentanalyticssite.ts +26 -0
  193. package/src/models/publicagentanalyticssitelistresponse.ts +20 -0
  194. package/src/models/publicagentanalyticssourcelistresponse.ts +28 -0
  195. package/src/models/publicagentanalyticssummary.ts +28 -0
  196. package/src/models/publicagentcountry.ts +16 -0
  197. package/src/models/publicagenterrorpage.ts +35 -0
  198. package/src/models/publicagenterrorsource.ts +63 -0
  199. package/src/models/publicagenttrafficpage.ts +46 -0
  200. package/src/models/publicagenttrafficsource.ts +77 -0
  201. package/src/models/publicagenttraffictotals.ts +42 -0
  202. package/src/models/updatetaskrequest.ts +14 -10
  203. package/src/models/v2agentanalyticscountrieslistop.ts +45 -0
  204. package/src/models/v2agentanalyticserrorpageslistop.ts +79 -0
  205. package/src/models/v2agentanalyticspageslistop.ts +119 -0
  206. package/src/models/v2agentanalyticssourceslistop.ts +43 -0
  207. package/src/models/v2agentanalyticssummaryretrieveop.ts +43 -0
  208. package/src/models/v2inlinemcpdefinition.ts +1 -1
  209. package/src/models/v2publictask.ts +1 -1
  210. package/src/models/v2repository.ts +5 -5
  211. package/src/models/v2taskscreateop.ts +34 -0
  212. package/src/tool-names.ts +28 -0
  213. package/test/tracker.test.js +323 -0
package/bin/mcp-server.js CHANGED
@@ -14343,8 +14343,9 @@ var require_on_finished = __commonJS(function(exports, module) {
14343
14343
  }
14344
14344
  function isFinished(msg) {
14345
14345
  var socket = msg.socket;
14346
- if (typeof msg.finished === "boolean") {
14347
- return Boolean(msg.finished || socket && !socket.writable);
14346
+ var finished = writableEnded(msg);
14347
+ if (typeof finished === "boolean") {
14348
+ return Boolean(finished || socket && !socket.writable);
14348
14349
  }
14349
14350
  if (typeof msg.complete === "boolean") {
14350
14351
  return Boolean(msg.upgrade || !socket || !socket.readable || msg.complete && !msg.readable);
@@ -14428,6 +14429,9 @@ var require_on_finished = __commonJS(function(exports, module) {
14428
14429
  }
14429
14430
  return res.runInAsyncScope.bind(res, fn, null);
14430
14431
  }
14432
+ function writableEnded(res) {
14433
+ return typeof res.writableEnded === "boolean" ? res.writableEnded : res.finished;
14434
+ }
14431
14435
  });
14432
14436
 
14433
14437
  // node_modules/type-is/node_modules/content-type/dist/index.js
@@ -24362,56 +24366,6 @@ var require_dist2 = __commonJS(function(exports) {
24362
24366
  }
24363
24367
  });
24364
24368
 
24365
- // node_modules/body-parser/lib/utils.js
24366
- var require_utils = __commonJS(function(exports, module) {
24367
- var bytes = require_bytes();
24368
- var contentType = require_dist2();
24369
- var typeis = require_type_is();
24370
- module.exports = {
24371
- getCharset,
24372
- normalizeOptions,
24373
- passthrough
24374
- };
24375
- function getCharset(req) {
24376
- const header = req.headers["content-type"];
24377
- if (!header)
24378
- return;
24379
- return contentType.parse(header).parameters.charset?.toLowerCase();
24380
- }
24381
- function typeChecker(type) {
24382
- return function checkType(req) {
24383
- return Boolean(typeis(req, type));
24384
- };
24385
- }
24386
- function normalizeOptions(options, defaultType) {
24387
- if (!defaultType) {
24388
- throw new TypeError("defaultType must be provided");
24389
- }
24390
- const inflate = options?.inflate !== false;
24391
- const limit = typeof options?.limit === "undefined" || options?.limit === null ? 102400 : bytes.parse(options.limit);
24392
- const type = options?.type || defaultType;
24393
- const verify = options?.verify || false;
24394
- const defaultCharset = options?.defaultCharset || "utf-8";
24395
- if (limit === null) {
24396
- throw new TypeError(`option limit "${String(options.limit)}" is invalid`);
24397
- }
24398
- if (verify !== false && typeof verify !== "function") {
24399
- throw new TypeError("option verify must be function");
24400
- }
24401
- const shouldParse = typeof type !== "function" ? typeChecker(type) : type;
24402
- return {
24403
- inflate,
24404
- limit,
24405
- verify,
24406
- defaultCharset,
24407
- shouldParse
24408
- };
24409
- }
24410
- function passthrough(value) {
24411
- return value;
24412
- }
24413
- });
24414
-
24415
24369
  // node_modules/body-parser/lib/read.js
24416
24370
  var require_read = __commonJS(function(exports, module) {
24417
24371
  /*!
@@ -24425,8 +24379,9 @@ var require_read = __commonJS(function(exports, module) {
24425
24379
  var onFinished = require_on_finished();
24426
24380
  var zlib = __require("node:zlib");
24427
24381
  var hasBody = require_type_is().hasBody;
24428
- var { getCharset } = require_utils();
24382
+ var contentType = require_dist2();
24429
24383
  module.exports = read;
24384
+ var hasZstandardSupport = "createZstdDecompress" in zlib;
24430
24385
  function read(req, res, next, parse, debug, options) {
24431
24386
  if (onFinished.isFinished(req)) {
24432
24387
  debug("body already parsed");
@@ -24460,26 +24415,40 @@ var require_read = __commonJS(function(exports, module) {
24460
24415
  }
24461
24416
  }
24462
24417
  let length;
24463
- const opts = options;
24464
24418
  let stream;
24465
- const verify = opts.verify;
24466
- try {
24467
- stream = contentstream(req, debug, opts.inflate);
24468
- length = stream.length;
24469
- stream.length = undefined;
24470
- } catch (err) {
24471
- return next(err);
24472
- }
24473
- opts.length = length;
24474
- opts.encoding = verify ? null : encoding;
24475
- if (opts.encoding === null && encoding !== null && !iconv.encodingExists(encoding)) {
24419
+ const verify = options.verify;
24420
+ if (verify && encoding !== null && !iconv.encodingExists(encoding)) {
24476
24421
  return next(createError(415, 'unsupported charset "' + encoding.toUpperCase() + '"', {
24477
24422
  charset: encoding.toLowerCase(),
24478
24423
  type: "charset.unsupported"
24479
24424
  }));
24480
24425
  }
24426
+ try {
24427
+ const contentEncoding = (req.headers["content-encoding"] || "identity").toLowerCase();
24428
+ debug('content-encoding "%s"', contentEncoding);
24429
+ if (options.inflate === false && contentEncoding !== "identity") {
24430
+ throw createError(415, "content encoding unsupported", {
24431
+ encoding: contentEncoding,
24432
+ type: "encoding.unsupported"
24433
+ });
24434
+ }
24435
+ if (contentEncoding === "identity") {
24436
+ length = req.headers["content-length"];
24437
+ stream = req;
24438
+ } else {
24439
+ stream = createDecompressionStream(contentEncoding, debug);
24440
+ req.pipe(stream);
24441
+ }
24442
+ } catch (err) {
24443
+ return next(err);
24444
+ }
24445
+ const rawBodyOptions = {
24446
+ length,
24447
+ encoding: verify ? null : encoding,
24448
+ limit: options.limit
24449
+ };
24481
24450
  debug("read body");
24482
- getBody(stream, opts, function(error, body) {
24451
+ getBody(stream, rawBodyOptions, function(error, body) {
24483
24452
  if (error) {
24484
24453
  let _error;
24485
24454
  if (error.type === "encoding.unsupported") {
@@ -24499,6 +24468,12 @@ var require_read = __commonJS(function(exports, module) {
24499
24468
  });
24500
24469
  return;
24501
24470
  }
24471
+ if (stream !== req) {
24472
+ req.unpipe(stream);
24473
+ stream.on("error", () => {});
24474
+ stream.destroy();
24475
+ req.resume();
24476
+ }
24502
24477
  if (verify) {
24503
24478
  try {
24504
24479
  debug("verify body");
@@ -24526,24 +24501,6 @@ var require_read = __commonJS(function(exports, module) {
24526
24501
  next();
24527
24502
  });
24528
24503
  }
24529
- function contentstream(req, debug, inflate) {
24530
- const encoding = (req.headers["content-encoding"] || "identity").toLowerCase();
24531
- const length = req.headers["content-length"];
24532
- debug('content-encoding "%s"', encoding);
24533
- if (inflate === false && encoding !== "identity") {
24534
- throw createError(415, "content encoding unsupported", {
24535
- encoding,
24536
- type: "encoding.unsupported"
24537
- });
24538
- }
24539
- if (encoding === "identity") {
24540
- req.length = length;
24541
- return req;
24542
- }
24543
- const stream = createDecompressionStream(encoding, debug);
24544
- req.pipe(stream);
24545
- return stream;
24546
- }
24547
24504
  function createDecompressionStream(encoding, debug) {
24548
24505
  switch (encoding) {
24549
24506
  case "deflate":
@@ -24555,12 +24512,16 @@ var require_read = __commonJS(function(exports, module) {
24555
24512
  case "br":
24556
24513
  debug("brotli decompress body");
24557
24514
  return zlib.createBrotliDecompress();
24558
- default:
24559
- throw createError(415, 'unsupported content encoding "' + encoding + '"', {
24560
- encoding,
24561
- type: "encoding.unsupported"
24562
- });
24515
+ case "zstd":
24516
+ if (hasZstandardSupport) {
24517
+ debug("zstd decompress body");
24518
+ return zlib.createZstdDecompress();
24519
+ }
24563
24520
  }
24521
+ throw createError(415, 'unsupported content encoding "' + encoding + '"', {
24522
+ encoding,
24523
+ type: "encoding.unsupported"
24524
+ });
24564
24525
  }
24565
24526
  function dump(req, callback) {
24566
24527
  if (onFinished.isFinished(req)) {
@@ -24570,6 +24531,54 @@ var require_read = __commonJS(function(exports, module) {
24570
24531
  req.resume();
24571
24532
  }
24572
24533
  }
24534
+ function getCharset(req) {
24535
+ const header = req.headers["content-type"];
24536
+ if (!header)
24537
+ return;
24538
+ return contentType.parse(header).parameters.charset?.toLowerCase();
24539
+ }
24540
+ });
24541
+
24542
+ // node_modules/body-parser/lib/utils.js
24543
+ var require_utils = __commonJS(function(exports, module) {
24544
+ var bytes = require_bytes();
24545
+ var typeis = require_type_is();
24546
+ module.exports = {
24547
+ normalizeOptions,
24548
+ passthrough
24549
+ };
24550
+ function typeChecker(type) {
24551
+ return function checkType(req) {
24552
+ return Boolean(typeis(req, type));
24553
+ };
24554
+ }
24555
+ function normalizeOptions(options, defaultType) {
24556
+ if (!defaultType) {
24557
+ throw new TypeError("defaultType must be provided");
24558
+ }
24559
+ const inflate = options?.inflate !== false;
24560
+ const limit = typeof options?.limit === "undefined" || options?.limit === null ? 102400 : bytes.parse(options.limit);
24561
+ const type = options?.type || defaultType;
24562
+ const verify = options?.verify || false;
24563
+ const defaultCharset = options?.defaultCharset || "utf-8";
24564
+ if (limit === null) {
24565
+ throw new TypeError(`option limit "${String(options.limit)}" is invalid`);
24566
+ }
24567
+ if (verify !== false && typeof verify !== "function") {
24568
+ throw new TypeError("option verify must be function");
24569
+ }
24570
+ const shouldParse = typeof type !== "function" ? typeChecker(type) : type;
24571
+ return {
24572
+ inflate,
24573
+ limit,
24574
+ verify,
24575
+ defaultCharset,
24576
+ shouldParse
24577
+ };
24578
+ }
24579
+ function passthrough(value) {
24580
+ return value;
24581
+ }
24573
24582
  });
24574
24583
 
24575
24584
  // node_modules/body-parser/lib/types/json.js
@@ -24584,7 +24593,7 @@ var require_json = __commonJS(function(exports, module) {
24584
24593
  var read = require_read();
24585
24594
  var { normalizeOptions } = require_utils();
24586
24595
  module.exports = json;
24587
- var FIRST_CHAR_REGEXP = /^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d])/;
24596
+ var FIRST_NON_WHITESPACE_REGEXP = /^[\x20\x09\x0a\x0d]*([^\x20\x09\x0a\x0d]|$)/;
24588
24597
  var JSON_SYNTAX_CHAR = "#";
24589
24598
  var JSON_SYNTAX_REGEXP = /#+/g;
24590
24599
  function json(options) {
@@ -24606,10 +24615,12 @@ var require_json = __commonJS(function(exports, module) {
24606
24615
  if (body.length === 0) {
24607
24616
  return {};
24608
24617
  }
24609
- const first = firstchar(body);
24610
- if (first !== "{" && first !== "[") {
24611
- debug("strict violation");
24612
- throw createStrictSyntaxError(body, first);
24618
+ if (body[0] !== "{" && body[0] !== "[") {
24619
+ const first = firstNonWhitespaceChar(body);
24620
+ if (first !== "{" && first !== "[") {
24621
+ debug("strict violation");
24622
+ throw createStrictSyntaxError(body, first);
24623
+ }
24613
24624
  }
24614
24625
  try {
24615
24626
  debug("parse json");
@@ -24655,9 +24666,9 @@ var require_json = __commonJS(function(exports, module) {
24655
24666
  });
24656
24667
  }
24657
24668
  }
24658
- function firstchar(str) {
24659
- const match = FIRST_CHAR_REGEXP.exec(str);
24660
- return match ? match[1] : undefined;
24669
+ function firstNonWhitespaceChar(str) {
24670
+ const match = FIRST_NON_WHITESPACE_REGEXP.exec(str);
24671
+ return match && match[1] ? match[1] : undefined;
24661
24672
  }
24662
24673
  function normalizeJsonSyntaxError(error, obj) {
24663
24674
  const keys = Object.getOwnPropertyNames(error);
@@ -42669,6 +42680,37 @@ var require_utils4 = __commonJS(function(exports, module) {
42669
42680
  }
42670
42681
  return output.join("");
42671
42682
  }
42683
+ function removeDotSegmentsRelative(path) {
42684
+ if (path === "" || path[0] === "/") {
42685
+ return removeDotSegments(path);
42686
+ }
42687
+ const segments = path.split("/");
42688
+ const last = segments.length - 1;
42689
+ const output = [];
42690
+ let trailingDirectory = false;
42691
+ for (let i = 0;i <= last; i++) {
42692
+ const segment = segments[i];
42693
+ if (segment === "." || segment === "..") {
42694
+ if (segment === "..") {
42695
+ if (output.length !== 0 && output[output.length - 1] !== "..") {
42696
+ output.pop();
42697
+ } else {
42698
+ output.push("..");
42699
+ }
42700
+ }
42701
+ trailingDirectory = i === last;
42702
+ } else {
42703
+ output.push(segment);
42704
+ }
42705
+ }
42706
+ if (trailingDirectory && output[output.length - 1] !== "..") {
42707
+ output.push("");
42708
+ }
42709
+ if (output.length === 0 || output[0] === "" || output[0].includes(":")) {
42710
+ output.unshift(".");
42711
+ }
42712
+ return output.join("/");
42713
+ }
42672
42714
  var IP_HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23" };
42673
42715
  var IP_HOST_DELIM_RE = /[@/?#]/g;
42674
42716
  function encodeHost(host, isIP, allowNonAscii = false) {
@@ -42988,6 +43030,7 @@ var require_utils4 = __commonJS(function(exports, module) {
42988
43030
  encodeFragment,
42989
43031
  escapePreservingEscapes,
42990
43032
  removeDotSegments,
43033
+ removeDotSegmentsRelative,
42991
43034
  isIPv4,
42992
43035
  isUUID,
42993
43036
  normalizeIPv6,
@@ -43423,16 +43466,18 @@ var require_schemes = __commonJS(function(exports, module) {
43423
43466
 
43424
43467
  // node_modules/fast-uri/index.js
43425
43468
  var require_fast_uri = __commonJS(function(exports, module) {
43426
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, encodeHost, isIPv4, nonSimpleDomain } = require_utils4();
43469
+ var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, encodeHost, isIPv4, nonSimpleDomain } = require_utils4();
43427
43470
  var { SCHEMES, getSchemeHandler } = require_schemes();
43428
43471
  var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
43429
43472
  var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
43430
- function decodeValidScheme(scheme) {
43431
- const decodedScheme = unescape(String(scheme));
43432
- if (!VALID_SCHEME.test(decodedScheme)) {
43473
+ var MALFORMED_HOST_ERROR = "URI host is malformed.";
43474
+ var FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
43475
+ function validateScheme(scheme) {
43476
+ const stringScheme = String(scheme);
43477
+ if (!VALID_SCHEME.test(stringScheme)) {
43433
43478
  throw new TypeError(MALFORMED_SCHEME_ERROR);
43434
43479
  }
43435
- return decodedScheme;
43480
+ return stringScheme;
43436
43481
  }
43437
43482
  function normalize(uri, options) {
43438
43483
  if (typeof uri === "string") {
@@ -43472,6 +43517,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
43472
43517
  throw new Error("HTTP URIs must have a host.");
43473
43518
  }
43474
43519
  const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
43520
+ if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
43521
+ throw new Error(MALFORMED_HOST_ERROR);
43522
+ }
43475
43523
  canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
43476
43524
  const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
43477
43525
  if (resolved.error && !encodedASCIIHost) {
@@ -43523,14 +43571,15 @@ var require_fast_uri = __commonJS(function(exports, module) {
43523
43571
  if (relative.path[0] === "/") {
43524
43572
  target.path = removeDotSegments(relative.path);
43525
43573
  } else {
43526
- if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
43574
+ const baseHasAuthority = base.userinfo !== undefined || base.host !== undefined || base.port !== undefined;
43575
+ if (baseHasAuthority && !base.path) {
43527
43576
  target.path = "/" + relative.path;
43528
43577
  } else if (!base.path) {
43529
43578
  target.path = relative.path;
43530
43579
  } else {
43531
43580
  target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
43532
43581
  }
43533
- target.path = removeDotSegments(target.path);
43582
+ target.path = base.scheme === undefined && !baseHasAuthority && target.path[0] !== "/" ? removeDotSegmentsRelative(target.path) : removeDotSegments(target.path);
43534
43583
  }
43535
43584
  target.query = relative.query;
43536
43585
  }
@@ -43573,13 +43622,14 @@ var require_fast_uri = __commonJS(function(exports, module) {
43573
43622
  const options = Object.assign({}, opts);
43574
43623
  const uriTokens = [];
43575
43624
  if (component.scheme) {
43576
- component.scheme = decodeValidScheme(component.scheme);
43625
+ component.scheme = validateScheme(component.scheme);
43577
43626
  }
43578
43627
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
43579
43628
  if (schemeHandler && schemeHandler.serialize)
43580
43629
  schemeHandler.serialize(component, options);
43581
43630
  const hasAuthority = component.userinfo !== undefined || component.host !== undefined || component.port !== undefined;
43582
- const pathNoScheme = !options.skipEscape && component.scheme === undefined && !hasAuthority;
43631
+ const schemelessReference = (component.scheme === undefined || options.reference === "suffix") && !hasAuthority;
43632
+ const pathNoScheme = !options.skipEscape && schemelessReference;
43583
43633
  if (component.path !== undefined) {
43584
43634
  if (!options.skipEscape) {
43585
43635
  component.path = serializePathEncoding(component.path, pathNoScheme);
@@ -43588,7 +43638,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
43588
43638
  }
43589
43639
  }
43590
43640
  if (options.reference !== "suffix" && component.scheme) {
43591
- component.scheme = decodeValidScheme(component.scheme);
43641
+ component.scheme = validateScheme(component.scheme);
43592
43642
  uriTokens.push(component.scheme, ":");
43593
43643
  }
43594
43644
  const allowNonAsciiHost = options.unicodeSupport === true || Boolean(schemeHandler && schemeHandler.unicodeSupport);
@@ -43605,9 +43655,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
43605
43655
  if (component.path !== undefined) {
43606
43656
  let s = component.path;
43607
43657
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
43608
- s = removeDotSegments(s);
43658
+ s = schemelessReference && s[0] !== "/" ? removeDotSegmentsRelative(s) : removeDotSegments(s);
43609
43659
  }
43610
- if (pathNoScheme) {
43660
+ if (schemelessReference) {
43611
43661
  s = serializePathEncoding(s, true);
43612
43662
  }
43613
43663
  if (authority === undefined && s[0] === "/" && s[1] === "/") {
@@ -43656,16 +43706,32 @@ var require_fast_uri = __commonJS(function(exports, module) {
43656
43706
  }
43657
43707
  function canonicalizeHost(parsed, options, schemeHandler, isIP) {
43658
43708
  const bracketedIPLiteral = parsed.host && parsed.host[0] === "[" && parsed.host[parsed.host.length - 1] === "]";
43709
+ if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
43710
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
43711
+ return true;
43712
+ }
43659
43713
  if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && !bracketedIPLiteral && nonSimpleDomain(parsed.host)) {
43714
+ let url;
43660
43715
  try {
43661
- parsed.host = new URL("http://" + parsed.host).hostname;
43716
+ url = new URL("http://" + parsed.host);
43662
43717
  } catch (e) {
43663
43718
  parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
43664
43719
  return true;
43665
43720
  }
43721
+ if (!isHostOnlyURL(url)) {
43722
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
43723
+ return true;
43724
+ }
43725
+ parsed.host = url.hostname;
43666
43726
  }
43667
43727
  return false;
43668
43728
  }
43729
+ function hasForbiddenDomainHost(parsed, options, schemeHandler, isIP) {
43730
+ return Boolean(parsed.host && isIP === false && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host));
43731
+ }
43732
+ function isHostOnlyURL(url) {
43733
+ return url.username === "" && url.password === "" && url.port === "" && url.pathname === "/" && url.search === "" && url.hash === "" && url.hostname !== "";
43734
+ }
43669
43735
  function parseWithStatus(uri, opts) {
43670
43736
  const options = Object.assign({}, opts);
43671
43737
  const parsed = {
@@ -43724,9 +43790,8 @@ var require_fast_uri = __commonJS(function(exports, module) {
43724
43790
  parsed.query = matches[7];
43725
43791
  parsed.fragment = matches[8];
43726
43792
  if (parsed.scheme !== undefined) {
43727
- const decodedScheme = unescape(parsed.scheme);
43728
- if (VALID_SCHEME.test(decodedScheme)) {
43729
- parsed.scheme = decodedScheme.toLowerCase();
43793
+ if (VALID_SCHEME.test(parsed.scheme)) {
43794
+ parsed.scheme = parsed.scheme.toLowerCase();
43730
43795
  } else {
43731
43796
  parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
43732
43797
  malformedScheme = true;
@@ -43757,7 +43822,7 @@ var require_fast_uri = __commonJS(function(exports, module) {
43757
43822
  parsed.ipv6Zone = parsed.host.slice(parsed.host.indexOf("%") + 1);
43758
43823
  }
43759
43824
  if (malformedIPLiteral) {
43760
- parsed.error = parsed.error || "URI host is malformed.";
43825
+ parsed.error = parsed.error || MALFORMED_HOST_ERROR;
43761
43826
  malformedAuthorityOrPort = true;
43762
43827
  }
43763
43828
  } else {
@@ -53650,9 +53715,9 @@ var init_config = __esm(() => {
53650
53715
  SDK_METADATA = {
53651
53716
  language: "typescript",
53652
53717
  openapiDocVersion: "1.0.0",
53653
- sdkVersion: "0.4.15",
53718
+ sdkVersion: "0.4.17",
53654
53719
  genVersion: "2.948.4",
53655
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.15 2.948.4 1.0.0 @lightsage/mcp"
53720
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.17 2.948.4 1.0.0 @lightsage/mcp"
53656
53721
  };
53657
53722
  });
53658
53723
 
@@ -54901,6 +54966,75 @@ var init_tools = __esm(() => {
54901
54966
  };
54902
54967
  });
54903
54968
 
54969
+ // src/models/errors/sdkvalidationerror.ts
54970
+ function formatZodError(err) {
54971
+ return prettifyError(err);
54972
+ }
54973
+ var SDKValidationError;
54974
+ var init_sdkvalidationerror = __esm(() => {
54975
+ init_zod();
54976
+ SDKValidationError = class SDKValidationError extends Error {
54977
+ rawValue;
54978
+ rawMessage;
54979
+ constructor(message, cause, rawValue) {
54980
+ super(`${message}: ${cause}`);
54981
+ this.name = "SDKValidationError";
54982
+ this.cause = cause;
54983
+ this.rawValue = rawValue;
54984
+ this.rawMessage = message;
54985
+ }
54986
+ pretty() {
54987
+ if (this.cause instanceof ZodError) {
54988
+ return `${this.rawMessage}
54989
+ ${formatZodError(this.cause)}`;
54990
+ } else {
54991
+ return this.toString();
54992
+ }
54993
+ }
54994
+ };
54995
+ });
54996
+
54997
+ // src/types/fp.ts
54998
+ function OK3(value) {
54999
+ return { ok: true, value };
55000
+ }
55001
+ function ERR2(error) {
55002
+ return { ok: false, error };
55003
+ }
55004
+
55005
+ // src/lib/schemas.ts
55006
+ function collectExtraKeys(obj, extrasKey, optional) {
55007
+ return obj.transform((val) => {
55008
+ const extras = {};
55009
+ const { shape } = obj;
55010
+ for (const [key] of Object.entries(val)) {
55011
+ if (key in shape) {
55012
+ continue;
55013
+ }
55014
+ const v = val[key];
55015
+ if (typeof v === "undefined") {
55016
+ continue;
55017
+ }
55018
+ extras[key] = v;
55019
+ delete val[key];
55020
+ }
55021
+ if (optional && Object.keys(extras).length === 0) {
55022
+ return val;
55023
+ }
55024
+ return { ...val, [extrasKey]: extras };
55025
+ });
55026
+ }
55027
+ function safeParse4(rawValue, fn, errorMessage) {
55028
+ try {
55029
+ return OK3(fn(rawValue));
55030
+ } catch (err) {
55031
+ return ERR2(new SDKValidationError(errorMessage, err, rawValue));
55032
+ }
55033
+ }
55034
+ var init_schemas4 = __esm(() => {
55035
+ init_sdkvalidationerror();
55036
+ });
55037
+
54904
55038
  // src/lib/security.ts
54905
55039
  function resolveSecurity(...options) {
54906
55040
  const state = {
@@ -55042,6 +55176,78 @@ var init_security = __esm(() => {
55042
55176
  };
55043
55177
  });
55044
55178
 
55179
+ // src/models/validationerror.ts
55180
+ var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
55181
+ var init_validationerror = __esm(() => {
55182
+ init_zod();
55183
+ Loc$zodSchema = union([
55184
+ string2(),
55185
+ int()
55186
+ ]);
55187
+ Context$zodSchema = object({});
55188
+ ValidationError$zodSchema = object({
55189
+ ctx: lazy(() => Context$zodSchema).optional(),
55190
+ input: any().optional(),
55191
+ loc: array(union([
55192
+ string2(),
55193
+ int()
55194
+ ])),
55195
+ msg: string2(),
55196
+ type: string2()
55197
+ });
55198
+ });
55199
+
55200
+ // src/models/httpvalidationerror.ts
55201
+ var HTTPValidationError$zodSchema;
55202
+ var init_httpvalidationerror = __esm(() => {
55203
+ init_zod();
55204
+ init_validationerror();
55205
+ HTTPValidationError$zodSchema = object({
55206
+ detail: array(ValidationError$zodSchema).optional()
55207
+ });
55208
+ });
55209
+
55210
+ // src/models/publicagentcountry.ts
55211
+ var PublicAgentCountry$zodSchema;
55212
+ var init_publicagentcountry = __esm(() => {
55213
+ init_zod();
55214
+ PublicAgentCountry$zodSchema = object({
55215
+ country: string2().describe("Two-letter ISO country code of the request, or `unknown`."),
55216
+ visits: int()
55217
+ });
55218
+ });
55219
+
55220
+ // src/models/publicagentanalyticscountrylistresponse.ts
55221
+ var PublicAgentAnalyticsCountryListResponse$zodSchema;
55222
+ var init_publicagentanalyticscountrylistresponse = __esm(() => {
55223
+ init_zod();
55224
+ init_publicagentcountry();
55225
+ PublicAgentAnalyticsCountryListResponse$zodSchema = object({
55226
+ countries: array(PublicAgentCountry$zodSchema).optional().describe("Visits from coding agents and AI assistants per country, most visits first. The country is located from the IP address the request came from. For hosted assistants such as ChatGPT that is usually the provider's servers, not the person who asked; for coding agents it is usually the developer's machine."),
55227
+ end_date: string2().date(),
55228
+ site_id: string2(),
55229
+ start_date: string2().date()
55230
+ });
55231
+ });
55232
+
55233
+ // src/models/v2agentanalyticscountrieslistop.ts
55234
+ var V2AgentAnalyticsCountriesListRequest$zodSchema, V2AgentAnalyticsCountriesListResponse$zodSchema;
55235
+ var init_v2agentanalyticscountrieslistop = __esm(() => {
55236
+ init_zod();
55237
+ init_httpvalidationerror();
55238
+ init_publicagentanalyticscountrylistresponse();
55239
+ V2AgentAnalyticsCountriesListRequest$zodSchema = object({
55240
+ end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
55241
+ limit: int().default(20),
55242
+ site_id: string2(),
55243
+ start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
55244
+ });
55245
+ V2AgentAnalyticsCountriesListResponse$zodSchema = union([
55246
+ PublicAgentAnalyticsCountryListResponse$zodSchema,
55247
+ HTTPValidationError$zodSchema
55248
+ ]);
55249
+ });
55250
+
55045
55251
  // src/types/async.ts
55046
55252
  var APIPromise;
55047
55253
  var init_async = __esm(() => {
@@ -55071,12 +55277,29 @@ var init_async = __esm(() => {
55071
55277
  };
55072
55278
  });
55073
55279
 
55074
- // src/funcs/agentPreferenceCompetitorsList.ts
55075
- function agentPreferenceCompetitorsList(client$, options) {
55076
- return new APIPromise($do(client$, options));
55280
+ // src/funcs/agentAnalyticsCountriesList.ts
55281
+ function agentAnalyticsCountriesList(client$, request, options) {
55282
+ return new APIPromise($do(client$, request, options));
55077
55283
  }
55078
- async function $do(client$, options) {
55079
- const path$ = pathToFunc("/v2/agent-preference/competitors")();
55284
+ async function $do(client$, request, options) {
55285
+ const parsed$ = safeParse4(request, (value$) => V2AgentAnalyticsCountriesListRequest$zodSchema.parse(value$), "Input validation failed");
55286
+ if (!parsed$.ok) {
55287
+ return [parsed$, { status: "invalid" }];
55288
+ }
55289
+ const payload$ = parsed$.value;
55290
+ const body$ = null;
55291
+ const pathParams$ = {
55292
+ site_id: encodeSimple("site_id", payload$.site_id, {
55293
+ explode: false,
55294
+ charEncoding: "percent"
55295
+ })
55296
+ };
55297
+ const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/countries")(pathParams$);
55298
+ const query$ = encodeFormQuery({
55299
+ end_date: payload$.end_date,
55300
+ limit: payload$.limit,
55301
+ start_date: payload$.start_date
55302
+ });
55080
55303
  const headers$ = new Headers(compactMap({
55081
55304
  Accept: "application/json"
55082
55305
  }));
@@ -55085,7 +55308,7 @@ async function $do(client$, options) {
55085
55308
  const context = {
55086
55309
  options: client$._options,
55087
55310
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
55088
- operationID: "v2_agent_preference_competitors_list",
55311
+ operationID: "v2_agent_analytics_countries_list",
55089
55312
  oAuth2Scopes: null,
55090
55313
  resolvedSecurity: requestSecurity,
55091
55314
  securitySource: client$._options.security,
@@ -55104,6 +55327,8 @@ async function $do(client$, options) {
55104
55327
  baseURL: options?.serverURL,
55105
55328
  path: path$,
55106
55329
  headers: headers$,
55330
+ query: query$,
55331
+ body: body$,
55107
55332
  userAgent: client$._options.userAgent,
55108
55333
  timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55109
55334
  }, options);
@@ -55126,23 +55351,30 @@ async function $do(client$, options) {
55126
55351
  response: doResult.value
55127
55352
  }];
55128
55353
  }
55129
- var init_agentPreferenceCompetitorsList = __esm(() => {
55354
+ var init_agentAnalyticsCountriesList = __esm(() => {
55355
+ init_encodings();
55130
55356
  init_primitives();
55357
+ init_schemas4();
55131
55358
  init_security();
55132
55359
  init_url();
55360
+ init_v2agentanalyticscountrieslistop();
55133
55361
  init_async();
55134
55362
  });
55135
55363
 
55136
- // src/mcp-server/tools/agentPreferenceCompetitorsList.ts
55137
- var tool$agentPreferenceCompetitorsList;
55138
- var init_agentPreferenceCompetitorsList2 = __esm(() => {
55139
- init_agentPreferenceCompetitorsList();
55364
+ // src/mcp-server/tools/agentAnalyticsCountriesList.ts
55365
+ var args, tool$agentAnalyticsCountriesList;
55366
+ var init_agentAnalyticsCountriesList2 = __esm(() => {
55367
+ init_agentAnalyticsCountriesList();
55368
+ init_v2agentanalyticscountrieslistop();
55140
55369
  init_tools();
55141
- tool$agentPreferenceCompetitorsList = {
55142
- name: "agent-preference-competitors-list",
55143
- description: `List Competitors
55370
+ args = {
55371
+ request: V2AgentAnalyticsCountriesListRequest$zodSchema
55372
+ };
55373
+ tool$agentAnalyticsCountriesList = {
55374
+ name: "agent-analytics-countries-list",
55375
+ description: `List Agent Analytics Countries
55144
55376
 
55145
- Returns the tracked competitors your company can be compared against. Use a returned \`id\` as \`competitor_id\` when creating an Agent Preference eval.`,
55377
+ Returns a site's visits from coding agents and AI assistants per country in the date range, most visits first.`,
55146
55378
  annotations: {
55147
55379
  title: "",
55148
55380
  destructiveHint: false,
@@ -55150,8 +55382,9 @@ Returns the tracked competitors your company can be compared against. Use a retu
55150
55382
  openWorldHint: false,
55151
55383
  readOnlyHint: true
55152
55384
  },
55153
- tool: async (client, ctx) => {
55154
- const [result] = await agentPreferenceCompetitorsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
55385
+ args,
55386
+ tool: async (client, args, ctx) => {
55387
+ const [result] = await agentAnalyticsCountriesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55155
55388
  if (!result.ok) {
55156
55389
  return {
55157
55390
  content: [{ type: "text", text: result.error.message }],
@@ -55163,73 +55396,926 @@ Returns the tracked competitors your company can be compared against. Use a retu
55163
55396
  };
55164
55397
  });
55165
55398
 
55166
- // src/models/errors/sdkvalidationerror.ts
55167
- function formatZodError(err) {
55168
- return prettifyError(err);
55169
- }
55170
- var SDKValidationError;
55171
- var init_sdkvalidationerror = __esm(() => {
55399
+ // src/models/publicagenterrorsource.ts
55400
+ var PublicAgentErrorSourceKind$zodSchema, PublicAgentErrorSourceType$zodSchema, PublicAgentErrorSource$zodSchema;
55401
+ var init_publicagenterrorsource = __esm(() => {
55172
55402
  init_zod();
55173
- SDKValidationError = class SDKValidationError extends Error {
55174
- rawValue;
55175
- rawMessage;
55176
- constructor(message, cause, rawValue) {
55177
- super(`${message}: ${cause}`);
55178
- this.name = "SDKValidationError";
55179
- this.cause = cause;
55180
- this.rawValue = rawValue;
55181
- this.rawMessage = message;
55182
- }
55183
- pretty() {
55184
- if (this.cause instanceof ZodError) {
55185
- return `${this.rawMessage}
55186
- ${formatZodError(this.cause)}`;
55187
- } else {
55188
- return this.toString();
55403
+ PublicAgentErrorSourceKind$zodSchema = _enum([
55404
+ "agent",
55405
+ "bot",
55406
+ "other",
55407
+ "people"
55408
+ ]);
55409
+ PublicAgentErrorSourceType$zodSchema = _enum([
55410
+ "coding",
55411
+ "user",
55412
+ "search",
55413
+ "training",
55414
+ "other",
55415
+ "people"
55416
+ ]);
55417
+ PublicAgentErrorSource$zodSchema = object({
55418
+ kind: PublicAgentErrorSourceKind$zodSchema,
55419
+ name: string2().describe("Agent or bot name, as in the traffic sources list, or `people`."),
55420
+ type: PublicAgentErrorSourceType$zodSchema,
55421
+ visits: int().describe("Requests from this source that got the error.")
55422
+ });
55423
+ });
55424
+
55425
+ // src/models/publicagenterrorpage.ts
55426
+ var PublicAgentErrorPage$zodSchema;
55427
+ var init_publicagenterrorpage = __esm(() => {
55428
+ init_zod();
55429
+ init_publicagenterrorsource();
55430
+ PublicAgentErrorPage$zodSchema = object({
55431
+ ai_visits: int().describe("Of `visits`, those from coding agents and AI bots."),
55432
+ last_seen: string2().nullable().optional().describe("Time of the latest error."),
55433
+ path: string2(),
55434
+ sources: array(PublicAgentErrorSource$zodSchema).optional().describe("Who got the error, most requests first."),
55435
+ status_code: int().describe("HTTP status returned, such as 404."),
55436
+ visits: int().describe("Requests to this path that got this status.")
55437
+ });
55438
+ });
55439
+
55440
+ // src/models/publicagentanalyticserrorpagelistresponse.ts
55441
+ var PublicAgentAnalyticsErrorPageListResponse$zodSchema;
55442
+ var init_publicagentanalyticserrorpagelistresponse = __esm(() => {
55443
+ init_zod();
55444
+ init_publicagenterrorpage();
55445
+ PublicAgentAnalyticsErrorPageListResponse$zodSchema = object({
55446
+ end_date: string2().date(),
55447
+ pages: array(PublicAgentErrorPage$zodSchema).optional().describe("Most error requests first."),
55448
+ site_id: string2(),
55449
+ start_date: string2().date(),
55450
+ status_codes_tracked: boolean2().describe("Whether any request to the site in the date range reported a status code. Status codes come from server-side tracking such as a log drain or middleware; when this is false, an empty `pages` list does not mean there were no errors.")
55451
+ });
55452
+ });
55453
+
55454
+ // src/models/v2agentanalyticserrorpageslistop.ts
55455
+ var V2AgentAnalyticsErrorPagesListType$zodSchema, V2AgentAnalyticsErrorPagesListRequest$zodSchema, V2AgentAnalyticsErrorPagesListResponse$zodSchema;
55456
+ var init_v2agentanalyticserrorpageslistop = __esm(() => {
55457
+ init_zod();
55458
+ init_httpvalidationerror();
55459
+ init_publicagentanalyticserrorpagelistresponse();
55460
+ V2AgentAnalyticsErrorPagesListType$zodSchema = _enum([
55461
+ "coding",
55462
+ "user",
55463
+ "search",
55464
+ "training",
55465
+ "other",
55466
+ "people"
55467
+ ]).describe("Only errors this traffic type got.");
55468
+ V2AgentAnalyticsErrorPagesListRequest$zodSchema = object({
55469
+ end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
55470
+ limit: int().default(50),
55471
+ site_id: string2(),
55472
+ start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional(),
55473
+ status: int().describe("Only this status code, such as 404.").optional(),
55474
+ type: V2AgentAnalyticsErrorPagesListType$zodSchema.optional().describe("Only errors this traffic type got.")
55475
+ });
55476
+ V2AgentAnalyticsErrorPagesListResponse$zodSchema = union([
55477
+ PublicAgentAnalyticsErrorPageListResponse$zodSchema,
55478
+ HTTPValidationError$zodSchema
55479
+ ]);
55480
+ });
55481
+
55482
+ // src/funcs/agentAnalyticsErrorPagesList.ts
55483
+ function agentAnalyticsErrorPagesList(client$, request, options) {
55484
+ return new APIPromise($do2(client$, request, options));
55485
+ }
55486
+ async function $do2(client$, request, options) {
55487
+ const parsed$ = safeParse4(request, (value$) => V2AgentAnalyticsErrorPagesListRequest$zodSchema.parse(value$), "Input validation failed");
55488
+ if (!parsed$.ok) {
55489
+ return [parsed$, { status: "invalid" }];
55490
+ }
55491
+ const payload$ = parsed$.value;
55492
+ const body$ = null;
55493
+ const pathParams$ = {
55494
+ site_id: encodeSimple("site_id", payload$.site_id, {
55495
+ explode: false,
55496
+ charEncoding: "percent"
55497
+ })
55498
+ };
55499
+ const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/error-pages")(pathParams$);
55500
+ const query$ = encodeFormQuery({
55501
+ end_date: payload$.end_date,
55502
+ limit: payload$.limit,
55503
+ start_date: payload$.start_date,
55504
+ status: payload$.status,
55505
+ type: payload$.type
55506
+ });
55507
+ const headers$ = new Headers(compactMap({
55508
+ Accept: "application/json"
55509
+ }));
55510
+ const securityInput = await extractSecurity(client$._options.security);
55511
+ const requestSecurity = resolveGlobalSecurity(securityInput);
55512
+ const context = {
55513
+ options: client$._options,
55514
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
55515
+ operationID: "v2_agent_analytics_error_pages_list",
55516
+ oAuth2Scopes: null,
55517
+ resolvedSecurity: requestSecurity,
55518
+ securitySource: client$._options.security,
55519
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55520
+ retryCodes: options?.retryCodes || [
55521
+ "429",
55522
+ "500",
55523
+ "502",
55524
+ "503",
55525
+ "504"
55526
+ ]
55527
+ };
55528
+ const requestRes = client$._createRequest(context, {
55529
+ security: requestSecurity,
55530
+ method: "GET",
55531
+ baseURL: options?.serverURL,
55532
+ path: path$,
55533
+ headers: headers$,
55534
+ query: query$,
55535
+ body: body$,
55536
+ userAgent: client$._options.userAgent,
55537
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55538
+ }, options);
55539
+ if (!requestRes.ok) {
55540
+ return [requestRes, { status: "invalid" }];
55541
+ }
55542
+ const req$ = requestRes.value;
55543
+ const doResult = await client$._do(req$, {
55544
+ context,
55545
+ errorCodes: [],
55546
+ retryConfig: context.retryConfig,
55547
+ retryCodes: context.retryCodes
55548
+ });
55549
+ if (!doResult.ok) {
55550
+ return [doResult, { status: "request-error", request: req$ }];
55551
+ }
55552
+ return [doResult, {
55553
+ status: "complete",
55554
+ request: req$,
55555
+ response: doResult.value
55556
+ }];
55557
+ }
55558
+ var init_agentAnalyticsErrorPagesList = __esm(() => {
55559
+ init_encodings();
55560
+ init_primitives();
55561
+ init_schemas4();
55562
+ init_security();
55563
+ init_url();
55564
+ init_v2agentanalyticserrorpageslistop();
55565
+ init_async();
55566
+ });
55567
+
55568
+ // src/mcp-server/tools/agentAnalyticsErrorPagesList.ts
55569
+ var args2, tool$agentAnalyticsErrorPagesList;
55570
+ var init_agentAnalyticsErrorPagesList2 = __esm(() => {
55571
+ init_agentAnalyticsErrorPagesList();
55572
+ init_v2agentanalyticserrorpageslistop();
55573
+ init_tools();
55574
+ args2 = {
55575
+ request: V2AgentAnalyticsErrorPagesListRequest$zodSchema
55576
+ };
55577
+ tool$agentAnalyticsErrorPagesList = {
55578
+ name: "agent-analytics-error-pages-list",
55579
+ description: `List Agent Analytics Error Pages
55580
+
55581
+ Returns the pages on a site that returned an error status (400 and up) in the date range, most error requests first, with the agents, bots, and people that got each error. Set \`status\` to 404 for pages that were not found. Needs server-side tracking that records status codes; \`status_codes_tracked\` says whether the site has any.`,
55582
+ annotations: {
55583
+ title: "",
55584
+ destructiveHint: false,
55585
+ idempotentHint: false,
55586
+ openWorldHint: false,
55587
+ readOnlyHint: true
55588
+ },
55589
+ args: args2,
55590
+ tool: async (client, args, ctx) => {
55591
+ const [result] = await agentAnalyticsErrorPagesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55592
+ if (!result.ok) {
55593
+ return {
55594
+ content: [{ type: "text", text: result.error.message }],
55595
+ isError: true
55596
+ };
55189
55597
  }
55598
+ return formatResult(result.value);
55190
55599
  }
55191
55600
  };
55192
55601
  });
55193
55602
 
55194
- // src/types/fp.ts
55195
- function OK3(value) {
55196
- return { ok: true, value };
55603
+ // src/models/publicagenttrafficpage.ts
55604
+ var PublicAgentTrafficPage$zodSchema;
55605
+ var init_publicagenttrafficpage = __esm(() => {
55606
+ init_zod();
55607
+ PublicAgentTrafficPage$zodSchema = object({
55608
+ ai_total: int().describe("Sum of `coding`, `user`, `search`, and `training` visits."),
55609
+ coding: int().describe("Visits from coding agents such as Claude Code, Codex, and Cursor."),
55610
+ last_seen: string2().nullable().optional().describe("Day of the latest visit, in `YYYY-MM-DD` format."),
55611
+ other: int().describe("Visits from bots with no AI purpose, such as search engine crawlers."),
55612
+ path: string2(),
55613
+ people: int().describe("Visits from people."),
55614
+ search: int().describe("Visits from AI search indexers such as OAI-SearchBot."),
55615
+ training: int().describe("Visits from AI training crawlers such as GPTBot."),
55616
+ user: int().describe("Visits from AI assistants fetching a page because a user asked, such as ChatGPT-User.")
55617
+ });
55618
+ });
55619
+
55620
+ // src/models/publicagentanalyticspagelistresponse.ts
55621
+ var PublicAgentAnalyticsPageListResponse$zodSchema;
55622
+ var init_publicagentanalyticspagelistresponse = __esm(() => {
55623
+ init_zod();
55624
+ init_publicagenttrafficpage();
55625
+ PublicAgentAnalyticsPageListResponse$zodSchema = object({
55626
+ agent: string2().nullable().optional().describe("The coding agent the pages were filtered to, when `agent` was set. Its visits are in `coding` and `ai_total`; the other counts are 0."),
55627
+ end_date: string2().date(),
55628
+ pages: array(PublicAgentTrafficPage$zodSchema).optional(),
55629
+ site_id: string2(),
55630
+ start_date: string2().date()
55631
+ });
55632
+ });
55633
+
55634
+ // src/models/v2agentanalyticspageslistop.ts
55635
+ var Sort$zodSchema, V2AgentAnalyticsPagesListType$zodSchema, V2AgentAnalyticsPagesListRequest$zodSchema, V2AgentAnalyticsPagesListResponse$zodSchema;
55636
+ var init_v2agentanalyticspageslistop = __esm(() => {
55637
+ init_zod();
55638
+ init_httpvalidationerror();
55639
+ init_publicagentanalyticspagelistresponse();
55640
+ Sort$zodSchema = _enum([
55641
+ "coding",
55642
+ "user",
55643
+ "search",
55644
+ "training",
55645
+ "other",
55646
+ "people",
55647
+ "ai_total",
55648
+ "last_seen"
55649
+ ]).describe("Traffic type to sort by, most visits first, or `last_seen` for the latest visit first.");
55650
+ V2AgentAnalyticsPagesListType$zodSchema = _enum([
55651
+ "coding",
55652
+ "user",
55653
+ "search",
55654
+ "training",
55655
+ "other",
55656
+ "people"
55657
+ ]).describe("Only pages this traffic type visited.");
55658
+ V2AgentAnalyticsPagesListRequest$zodSchema = object({
55659
+ agent: string2().describe("Only pages this coding agent read, by the `name` the sources list gives it, such as `codex` or `cursor`.").optional(),
55660
+ end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
55661
+ limit: int().default(20),
55662
+ search: string2().describe("Only pages whose path contains this text.").optional(),
55663
+ site_id: string2(),
55664
+ sort: Sort$zodSchema.default("ai_total").describe("Traffic type to sort by, most visits first, or `last_seen` for the latest visit first."),
55665
+ start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional(),
55666
+ type: V2AgentAnalyticsPagesListType$zodSchema.optional().describe("Only pages this traffic type visited.")
55667
+ });
55668
+ V2AgentAnalyticsPagesListResponse$zodSchema = union([
55669
+ PublicAgentAnalyticsPageListResponse$zodSchema,
55670
+ HTTPValidationError$zodSchema
55671
+ ]);
55672
+ });
55673
+
55674
+ // src/funcs/agentAnalyticsPagesList.ts
55675
+ function agentAnalyticsPagesList(client$, request, options) {
55676
+ return new APIPromise($do3(client$, request, options));
55197
55677
  }
55198
- function ERR2(error) {
55199
- return { ok: false, error };
55678
+ async function $do3(client$, request, options) {
55679
+ const parsed$ = safeParse4(request, (value$) => V2AgentAnalyticsPagesListRequest$zodSchema.parse(value$), "Input validation failed");
55680
+ if (!parsed$.ok) {
55681
+ return [parsed$, { status: "invalid" }];
55682
+ }
55683
+ const payload$ = parsed$.value;
55684
+ const body$ = null;
55685
+ const pathParams$ = {
55686
+ site_id: encodeSimple("site_id", payload$.site_id, {
55687
+ explode: false,
55688
+ charEncoding: "percent"
55689
+ })
55690
+ };
55691
+ const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/pages")(pathParams$);
55692
+ const query$ = encodeFormQuery({
55693
+ agent: payload$.agent,
55694
+ end_date: payload$.end_date,
55695
+ limit: payload$.limit,
55696
+ search: payload$.search,
55697
+ sort: payload$.sort,
55698
+ start_date: payload$.start_date,
55699
+ type: payload$.type
55700
+ });
55701
+ const headers$ = new Headers(compactMap({
55702
+ Accept: "application/json"
55703
+ }));
55704
+ const securityInput = await extractSecurity(client$._options.security);
55705
+ const requestSecurity = resolveGlobalSecurity(securityInput);
55706
+ const context = {
55707
+ options: client$._options,
55708
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
55709
+ operationID: "v2_agent_analytics_pages_list",
55710
+ oAuth2Scopes: null,
55711
+ resolvedSecurity: requestSecurity,
55712
+ securitySource: client$._options.security,
55713
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55714
+ retryCodes: options?.retryCodes || [
55715
+ "429",
55716
+ "500",
55717
+ "502",
55718
+ "503",
55719
+ "504"
55720
+ ]
55721
+ };
55722
+ const requestRes = client$._createRequest(context, {
55723
+ security: requestSecurity,
55724
+ method: "GET",
55725
+ baseURL: options?.serverURL,
55726
+ path: path$,
55727
+ headers: headers$,
55728
+ query: query$,
55729
+ body: body$,
55730
+ userAgent: client$._options.userAgent,
55731
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55732
+ }, options);
55733
+ if (!requestRes.ok) {
55734
+ return [requestRes, { status: "invalid" }];
55735
+ }
55736
+ const req$ = requestRes.value;
55737
+ const doResult = await client$._do(req$, {
55738
+ context,
55739
+ errorCodes: [],
55740
+ retryConfig: context.retryConfig,
55741
+ retryCodes: context.retryCodes
55742
+ });
55743
+ if (!doResult.ok) {
55744
+ return [doResult, { status: "request-error", request: req$ }];
55745
+ }
55746
+ return [doResult, {
55747
+ status: "complete",
55748
+ request: req$,
55749
+ response: doResult.value
55750
+ }];
55200
55751
  }
55752
+ var init_agentAnalyticsPagesList = __esm(() => {
55753
+ init_encodings();
55754
+ init_primitives();
55755
+ init_schemas4();
55756
+ init_security();
55757
+ init_url();
55758
+ init_v2agentanalyticspageslistop();
55759
+ init_async();
55760
+ });
55201
55761
 
55202
- // src/lib/schemas.ts
55203
- function collectExtraKeys(obj, extrasKey, optional) {
55204
- return obj.transform((val) => {
55205
- const extras = {};
55206
- const { shape } = obj;
55207
- for (const [key] of Object.entries(val)) {
55208
- if (key in shape) {
55209
- continue;
55762
+ // src/mcp-server/tools/agentAnalyticsPagesList.ts
55763
+ var args3, tool$agentAnalyticsPagesList;
55764
+ var init_agentAnalyticsPagesList2 = __esm(() => {
55765
+ init_agentAnalyticsPagesList();
55766
+ init_v2agentanalyticspageslistop();
55767
+ init_tools();
55768
+ args3 = {
55769
+ request: V2AgentAnalyticsPagesListRequest$zodSchema
55770
+ };
55771
+ tool$agentAnalyticsPagesList = {
55772
+ name: "agent-analytics-pages-list",
55773
+ description: `List Agent Analytics Pages
55774
+
55775
+ Returns the pages AI agents and bots read on a site in the date range, with visits per traffic type. Sorted by AI visits unless \`sort\` is set. With \`type\`, returns only pages that traffic type visited. With \`agent\`, returns only the pages that one coding agent read.`,
55776
+ annotations: {
55777
+ title: "",
55778
+ destructiveHint: false,
55779
+ idempotentHint: false,
55780
+ openWorldHint: false,
55781
+ readOnlyHint: true
55782
+ },
55783
+ args: args3,
55784
+ tool: async (client, args, ctx) => {
55785
+ const [result] = await agentAnalyticsPagesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55786
+ if (!result.ok) {
55787
+ return {
55788
+ content: [{ type: "text", text: result.error.message }],
55789
+ isError: true
55790
+ };
55210
55791
  }
55211
- const v = val[key];
55212
- if (typeof v === "undefined") {
55213
- continue;
55792
+ return formatResult(result.value);
55793
+ }
55794
+ };
55795
+ });
55796
+
55797
+ // src/funcs/agentAnalyticsSitesList.ts
55798
+ function agentAnalyticsSitesList(client$, options) {
55799
+ return new APIPromise($do4(client$, options));
55800
+ }
55801
+ async function $do4(client$, options) {
55802
+ const path$ = pathToFunc("/v2/agent-analytics/sites")();
55803
+ const headers$ = new Headers(compactMap({
55804
+ Accept: "application/json"
55805
+ }));
55806
+ const securityInput = await extractSecurity(client$._options.security);
55807
+ const requestSecurity = resolveGlobalSecurity(securityInput);
55808
+ const context = {
55809
+ options: client$._options,
55810
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
55811
+ operationID: "v2_agent_analytics_sites_list",
55812
+ oAuth2Scopes: null,
55813
+ resolvedSecurity: requestSecurity,
55814
+ securitySource: client$._options.security,
55815
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55816
+ retryCodes: options?.retryCodes || [
55817
+ "429",
55818
+ "500",
55819
+ "502",
55820
+ "503",
55821
+ "504"
55822
+ ]
55823
+ };
55824
+ const requestRes = client$._createRequest(context, {
55825
+ security: requestSecurity,
55826
+ method: "GET",
55827
+ baseURL: options?.serverURL,
55828
+ path: path$,
55829
+ headers: headers$,
55830
+ userAgent: client$._options.userAgent,
55831
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55832
+ }, options);
55833
+ if (!requestRes.ok) {
55834
+ return [requestRes, { status: "invalid" }];
55835
+ }
55836
+ const req$ = requestRes.value;
55837
+ const doResult = await client$._do(req$, {
55838
+ context,
55839
+ errorCodes: [],
55840
+ retryConfig: context.retryConfig,
55841
+ retryCodes: context.retryCodes
55842
+ });
55843
+ if (!doResult.ok) {
55844
+ return [doResult, { status: "request-error", request: req$ }];
55845
+ }
55846
+ return [doResult, {
55847
+ status: "complete",
55848
+ request: req$,
55849
+ response: doResult.value
55850
+ }];
55851
+ }
55852
+ var init_agentAnalyticsSitesList = __esm(() => {
55853
+ init_primitives();
55854
+ init_security();
55855
+ init_url();
55856
+ init_async();
55857
+ });
55858
+
55859
+ // src/mcp-server/tools/agentAnalyticsSitesList.ts
55860
+ var tool$agentAnalyticsSitesList;
55861
+ var init_agentAnalyticsSitesList2 = __esm(() => {
55862
+ init_agentAnalyticsSitesList();
55863
+ init_tools();
55864
+ tool$agentAnalyticsSitesList = {
55865
+ name: "agent-analytics-sites-list",
55866
+ description: `List Agent Analytics Sites
55867
+
55868
+ Returns every site with tracked visits. Use a \`site_id\` from this list to read that site's agent traffic.`,
55869
+ annotations: {
55870
+ title: "",
55871
+ destructiveHint: false,
55872
+ idempotentHint: false,
55873
+ openWorldHint: false,
55874
+ readOnlyHint: true
55875
+ },
55876
+ tool: async (client, ctx) => {
55877
+ const [result] = await agentAnalyticsSitesList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
55878
+ if (!result.ok) {
55879
+ return {
55880
+ content: [{ type: "text", text: result.error.message }],
55881
+ isError: true
55882
+ };
55214
55883
  }
55215
- extras[key] = v;
55216
- delete val[key];
55884
+ return formatResult(result.value);
55217
55885
  }
55218
- if (optional && Object.keys(extras).length === 0) {
55219
- return val;
55886
+ };
55887
+ });
55888
+
55889
+ // src/models/publicagenttrafficsource.ts
55890
+ var PublicAgentTrafficSourceKind$zodSchema, PublicAgentTrafficSourceType$zodSchema, PublicAgentTrafficSource$zodSchema;
55891
+ var init_publicagenttrafficsource = __esm(() => {
55892
+ init_zod();
55893
+ PublicAgentTrafficSourceKind$zodSchema = _enum([
55894
+ "agent",
55895
+ "bot",
55896
+ "other",
55897
+ "people"
55898
+ ]).describe("`agent` for coding agents, `bot` for AI bots, `other` for bots with no AI purpose, and `people` for all human visits as one row.");
55899
+ PublicAgentTrafficSourceType$zodSchema = _enum([
55900
+ "coding",
55901
+ "user",
55902
+ "search",
55903
+ "training",
55904
+ "other",
55905
+ "people"
55906
+ ]);
55907
+ PublicAgentTrafficSource$zodSchema = object({
55908
+ kind: PublicAgentTrafficSourceKind$zodSchema.describe("`agent` for coding agents, `bot` for AI bots, `other` for bots with no AI purpose, and `people` for all human visits as one row."),
55909
+ name: string2().describe("Agent or bot name, such as `claude-code` or `GPTBot`."),
55910
+ provider: string2().nullable().optional().describe("Company that runs the bot."),
55911
+ type: PublicAgentTrafficSourceType$zodSchema,
55912
+ visits: int()
55913
+ });
55914
+ });
55915
+
55916
+ // src/models/publicagentanalyticssourcelistresponse.ts
55917
+ var PublicAgentAnalyticsSourceListResponse$zodSchema;
55918
+ var init_publicagentanalyticssourcelistresponse = __esm(() => {
55919
+ init_zod();
55920
+ init_publicagenttrafficsource();
55921
+ PublicAgentAnalyticsSourceListResponse$zodSchema = object({
55922
+ end_date: string2().date(),
55923
+ site_id: string2(),
55924
+ sources: array(PublicAgentTrafficSource$zodSchema).optional().describe("Most visits first."),
55925
+ start_date: string2().date()
55926
+ });
55927
+ });
55928
+
55929
+ // src/models/v2agentanalyticssourceslistop.ts
55930
+ var V2AgentAnalyticsSourcesListRequest$zodSchema, V2AgentAnalyticsSourcesListResponse$zodSchema;
55931
+ var init_v2agentanalyticssourceslistop = __esm(() => {
55932
+ init_zod();
55933
+ init_httpvalidationerror();
55934
+ init_publicagentanalyticssourcelistresponse();
55935
+ V2AgentAnalyticsSourcesListRequest$zodSchema = object({
55936
+ end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
55937
+ site_id: string2(),
55938
+ start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
55939
+ });
55940
+ V2AgentAnalyticsSourcesListResponse$zodSchema = union([
55941
+ PublicAgentAnalyticsSourceListResponse$zodSchema,
55942
+ HTTPValidationError$zodSchema
55943
+ ]);
55944
+ });
55945
+
55946
+ // src/funcs/agentAnalyticsSourcesList.ts
55947
+ function agentAnalyticsSourcesList(client$, request, options) {
55948
+ return new APIPromise($do5(client$, request, options));
55949
+ }
55950
+ async function $do5(client$, request, options) {
55951
+ const parsed$ = safeParse4(request, (value$) => V2AgentAnalyticsSourcesListRequest$zodSchema.parse(value$), "Input validation failed");
55952
+ if (!parsed$.ok) {
55953
+ return [parsed$, { status: "invalid" }];
55954
+ }
55955
+ const payload$ = parsed$.value;
55956
+ const body$ = null;
55957
+ const pathParams$ = {
55958
+ site_id: encodeSimple("site_id", payload$.site_id, {
55959
+ explode: false,
55960
+ charEncoding: "percent"
55961
+ })
55962
+ };
55963
+ const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/sources")(pathParams$);
55964
+ const query$ = encodeFormQuery({
55965
+ end_date: payload$.end_date,
55966
+ start_date: payload$.start_date
55967
+ });
55968
+ const headers$ = new Headers(compactMap({
55969
+ Accept: "application/json"
55970
+ }));
55971
+ const securityInput = await extractSecurity(client$._options.security);
55972
+ const requestSecurity = resolveGlobalSecurity(securityInput);
55973
+ const context = {
55974
+ options: client$._options,
55975
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
55976
+ operationID: "v2_agent_analytics_sources_list",
55977
+ oAuth2Scopes: null,
55978
+ resolvedSecurity: requestSecurity,
55979
+ securitySource: client$._options.security,
55980
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
55981
+ retryCodes: options?.retryCodes || [
55982
+ "429",
55983
+ "500",
55984
+ "502",
55985
+ "503",
55986
+ "504"
55987
+ ]
55988
+ };
55989
+ const requestRes = client$._createRequest(context, {
55990
+ security: requestSecurity,
55991
+ method: "GET",
55992
+ baseURL: options?.serverURL,
55993
+ path: path$,
55994
+ headers: headers$,
55995
+ query: query$,
55996
+ body: body$,
55997
+ userAgent: client$._options.userAgent,
55998
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
55999
+ }, options);
56000
+ if (!requestRes.ok) {
56001
+ return [requestRes, { status: "invalid" }];
56002
+ }
56003
+ const req$ = requestRes.value;
56004
+ const doResult = await client$._do(req$, {
56005
+ context,
56006
+ errorCodes: [],
56007
+ retryConfig: context.retryConfig,
56008
+ retryCodes: context.retryCodes
56009
+ });
56010
+ if (!doResult.ok) {
56011
+ return [doResult, { status: "request-error", request: req$ }];
56012
+ }
56013
+ return [doResult, {
56014
+ status: "complete",
56015
+ request: req$,
56016
+ response: doResult.value
56017
+ }];
56018
+ }
56019
+ var init_agentAnalyticsSourcesList = __esm(() => {
56020
+ init_encodings();
56021
+ init_primitives();
56022
+ init_schemas4();
56023
+ init_security();
56024
+ init_url();
56025
+ init_v2agentanalyticssourceslistop();
56026
+ init_async();
56027
+ });
56028
+
56029
+ // src/mcp-server/tools/agentAnalyticsSourcesList.ts
56030
+ var args4, tool$agentAnalyticsSourcesList;
56031
+ var init_agentAnalyticsSourcesList2 = __esm(() => {
56032
+ init_agentAnalyticsSourcesList();
56033
+ init_v2agentanalyticssourceslistop();
56034
+ init_tools();
56035
+ args4 = {
56036
+ request: V2AgentAnalyticsSourcesListRequest$zodSchema
56037
+ };
56038
+ tool$agentAnalyticsSourcesList = {
56039
+ name: "agent-analytics-sources-list",
56040
+ description: `List Agent Analytics Sources
56041
+
56042
+ Returns every coding agent and bot that visited a site in the date range, with its traffic type and visit count, most visits first. Human visits are one \`people\` row.`,
56043
+ annotations: {
56044
+ title: "",
56045
+ destructiveHint: false,
56046
+ idempotentHint: false,
56047
+ openWorldHint: false,
56048
+ readOnlyHint: true
56049
+ },
56050
+ args: args4,
56051
+ tool: async (client, args, ctx) => {
56052
+ const [result] = await agentAnalyticsSourcesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56053
+ if (!result.ok) {
56054
+ return {
56055
+ content: [{ type: "text", text: result.error.message }],
56056
+ isError: true
56057
+ };
56058
+ }
56059
+ return formatResult(result.value);
55220
56060
  }
55221
- return { ...val, [extrasKey]: extras };
56061
+ };
56062
+ });
56063
+
56064
+ // src/models/publicagenttraffictotals.ts
56065
+ var PublicAgentTrafficTotals$zodSchema;
56066
+ var init_publicagenttraffictotals = __esm(() => {
56067
+ init_zod();
56068
+ PublicAgentTrafficTotals$zodSchema = object({
56069
+ ai_total: int().describe("Sum of `coding`, `user`, `search`, and `training` visits."),
56070
+ coding: int().describe("Visits from coding agents such as Claude Code, Codex, and Cursor."),
56071
+ other: int().describe("Visits from bots with no AI purpose, such as search engine crawlers."),
56072
+ people: int().describe("Visits from people."),
56073
+ search: int().describe("Visits from AI search indexers such as OAI-SearchBot."),
56074
+ total: int().describe("Every visit, AI or not."),
56075
+ training: int().describe("Visits from AI training crawlers such as GPTBot."),
56076
+ user: int().describe("Visits from AI assistants fetching a page because a user asked, such as ChatGPT-User.")
56077
+ });
56078
+ });
56079
+
56080
+ // src/models/publicagentanalyticssummary.ts
56081
+ var PublicAgentAnalyticsSummary$zodSchema;
56082
+ var init_publicagentanalyticssummary = __esm(() => {
56083
+ init_zod();
56084
+ init_publicagenttraffictotals();
56085
+ PublicAgentAnalyticsSummary$zodSchema = object({
56086
+ current: PublicAgentTrafficTotals$zodSchema,
56087
+ end_date: string2().date(),
56088
+ previous: PublicAgentTrafficTotals$zodSchema,
56089
+ site_id: string2(),
56090
+ start_date: string2().date()
56091
+ });
56092
+ });
56093
+
56094
+ // src/models/v2agentanalyticssummaryretrieveop.ts
56095
+ var V2AgentAnalyticsSummaryRetrieveRequest$zodSchema, V2AgentAnalyticsSummaryRetrieveResponse$zodSchema;
56096
+ var init_v2agentanalyticssummaryretrieveop = __esm(() => {
56097
+ init_zod();
56098
+ init_httpvalidationerror();
56099
+ init_publicagentanalyticssummary();
56100
+ V2AgentAnalyticsSummaryRetrieveRequest$zodSchema = object({
56101
+ end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
56102
+ site_id: string2(),
56103
+ start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
55222
56104
  });
56105
+ V2AgentAnalyticsSummaryRetrieveResponse$zodSchema = union([
56106
+ PublicAgentAnalyticsSummary$zodSchema,
56107
+ HTTPValidationError$zodSchema
56108
+ ]);
56109
+ });
56110
+
56111
+ // src/funcs/agentAnalyticsSummaryRetrieve.ts
56112
+ function agentAnalyticsSummaryRetrieve(client$, request, options) {
56113
+ return new APIPromise($do6(client$, request, options));
55223
56114
  }
55224
- function safeParse4(rawValue, fn, errorMessage) {
55225
- try {
55226
- return OK3(fn(rawValue));
55227
- } catch (err) {
55228
- return ERR2(new SDKValidationError(errorMessage, err, rawValue));
56115
+ async function $do6(client$, request, options) {
56116
+ const parsed$ = safeParse4(request, (value$) => V2AgentAnalyticsSummaryRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
56117
+ if (!parsed$.ok) {
56118
+ return [parsed$, { status: "invalid" }];
56119
+ }
56120
+ const payload$ = parsed$.value;
56121
+ const body$ = null;
56122
+ const pathParams$ = {
56123
+ site_id: encodeSimple("site_id", payload$.site_id, {
56124
+ explode: false,
56125
+ charEncoding: "percent"
56126
+ })
56127
+ };
56128
+ const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/summary")(pathParams$);
56129
+ const query$ = encodeFormQuery({
56130
+ end_date: payload$.end_date,
56131
+ start_date: payload$.start_date
56132
+ });
56133
+ const headers$ = new Headers(compactMap({
56134
+ Accept: "application/json"
56135
+ }));
56136
+ const securityInput = await extractSecurity(client$._options.security);
56137
+ const requestSecurity = resolveGlobalSecurity(securityInput);
56138
+ const context = {
56139
+ options: client$._options,
56140
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
56141
+ operationID: "v2_agent_analytics_summary_retrieve",
56142
+ oAuth2Scopes: null,
56143
+ resolvedSecurity: requestSecurity,
56144
+ securitySource: client$._options.security,
56145
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
56146
+ retryCodes: options?.retryCodes || [
56147
+ "429",
56148
+ "500",
56149
+ "502",
56150
+ "503",
56151
+ "504"
56152
+ ]
56153
+ };
56154
+ const requestRes = client$._createRequest(context, {
56155
+ security: requestSecurity,
56156
+ method: "GET",
56157
+ baseURL: options?.serverURL,
56158
+ path: path$,
56159
+ headers: headers$,
56160
+ query: query$,
56161
+ body: body$,
56162
+ userAgent: client$._options.userAgent,
56163
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
56164
+ }, options);
56165
+ if (!requestRes.ok) {
56166
+ return [requestRes, { status: "invalid" }];
56167
+ }
56168
+ const req$ = requestRes.value;
56169
+ const doResult = await client$._do(req$, {
56170
+ context,
56171
+ errorCodes: [],
56172
+ retryConfig: context.retryConfig,
56173
+ retryCodes: context.retryCodes
56174
+ });
56175
+ if (!doResult.ok) {
56176
+ return [doResult, { status: "request-error", request: req$ }];
55229
56177
  }
56178
+ return [doResult, {
56179
+ status: "complete",
56180
+ request: req$,
56181
+ response: doResult.value
56182
+ }];
55230
56183
  }
55231
- var init_schemas4 = __esm(() => {
55232
- init_sdkvalidationerror();
56184
+ var init_agentAnalyticsSummaryRetrieve = __esm(() => {
56185
+ init_encodings();
56186
+ init_primitives();
56187
+ init_schemas4();
56188
+ init_security();
56189
+ init_url();
56190
+ init_v2agentanalyticssummaryretrieveop();
56191
+ init_async();
56192
+ });
56193
+
56194
+ // src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts
56195
+ var args5, tool$agentAnalyticsSummaryRetrieve;
56196
+ var init_agentAnalyticsSummaryRetrieve2 = __esm(() => {
56197
+ init_agentAnalyticsSummaryRetrieve();
56198
+ init_v2agentanalyticssummaryretrieveop();
56199
+ init_tools();
56200
+ args5 = {
56201
+ request: V2AgentAnalyticsSummaryRetrieveRequest$zodSchema
56202
+ };
56203
+ tool$agentAnalyticsSummaryRetrieve = {
56204
+ name: "agent-analytics-summary-retrieve",
56205
+ description: `Retrieve Agent Analytics Summary
56206
+
56207
+ Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it.`,
56208
+ annotations: {
56209
+ title: "",
56210
+ destructiveHint: false,
56211
+ idempotentHint: false,
56212
+ openWorldHint: false,
56213
+ readOnlyHint: true
56214
+ },
56215
+ args: args5,
56216
+ tool: async (client, args, ctx) => {
56217
+ const [result] = await agentAnalyticsSummaryRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56218
+ if (!result.ok) {
56219
+ return {
56220
+ content: [{ type: "text", text: result.error.message }],
56221
+ isError: true
56222
+ };
56223
+ }
56224
+ return formatResult(result.value);
56225
+ }
56226
+ };
56227
+ });
56228
+
56229
+ // src/funcs/agentPreferenceCompetitorsList.ts
56230
+ function agentPreferenceCompetitorsList(client$, options) {
56231
+ return new APIPromise($do7(client$, options));
56232
+ }
56233
+ async function $do7(client$, options) {
56234
+ const path$ = pathToFunc("/v2/agent-preference/competitors")();
56235
+ const headers$ = new Headers(compactMap({
56236
+ Accept: "application/json"
56237
+ }));
56238
+ const securityInput = await extractSecurity(client$._options.security);
56239
+ const requestSecurity = resolveGlobalSecurity(securityInput);
56240
+ const context = {
56241
+ options: client$._options,
56242
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
56243
+ operationID: "v2_agent_preference_competitors_list",
56244
+ oAuth2Scopes: null,
56245
+ resolvedSecurity: requestSecurity,
56246
+ securitySource: client$._options.security,
56247
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
56248
+ retryCodes: options?.retryCodes || [
56249
+ "429",
56250
+ "500",
56251
+ "502",
56252
+ "503",
56253
+ "504"
56254
+ ]
56255
+ };
56256
+ const requestRes = client$._createRequest(context, {
56257
+ security: requestSecurity,
56258
+ method: "GET",
56259
+ baseURL: options?.serverURL,
56260
+ path: path$,
56261
+ headers: headers$,
56262
+ userAgent: client$._options.userAgent,
56263
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
56264
+ }, options);
56265
+ if (!requestRes.ok) {
56266
+ return [requestRes, { status: "invalid" }];
56267
+ }
56268
+ const req$ = requestRes.value;
56269
+ const doResult = await client$._do(req$, {
56270
+ context,
56271
+ errorCodes: [],
56272
+ retryConfig: context.retryConfig,
56273
+ retryCodes: context.retryCodes
56274
+ });
56275
+ if (!doResult.ok) {
56276
+ return [doResult, { status: "request-error", request: req$ }];
56277
+ }
56278
+ return [doResult, {
56279
+ status: "complete",
56280
+ request: req$,
56281
+ response: doResult.value
56282
+ }];
56283
+ }
56284
+ var init_agentPreferenceCompetitorsList = __esm(() => {
56285
+ init_primitives();
56286
+ init_security();
56287
+ init_url();
56288
+ init_async();
56289
+ });
56290
+
56291
+ // src/mcp-server/tools/agentPreferenceCompetitorsList.ts
56292
+ var tool$agentPreferenceCompetitorsList;
56293
+ var init_agentPreferenceCompetitorsList2 = __esm(() => {
56294
+ init_agentPreferenceCompetitorsList();
56295
+ init_tools();
56296
+ tool$agentPreferenceCompetitorsList = {
56297
+ name: "agent-preference-competitors-list",
56298
+ description: `List Competitors
56299
+
56300
+ Returns the tracked competitors your company can be compared against. Use a returned \`id\` as \`competitor_id\` when creating an Agent Preference eval.`,
56301
+ annotations: {
56302
+ title: "",
56303
+ destructiveHint: false,
56304
+ idempotentHint: false,
56305
+ openWorldHint: false,
56306
+ readOnlyHint: true
56307
+ },
56308
+ tool: async (client, ctx) => {
56309
+ const [result] = await agentPreferenceCompetitorsList(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
56310
+ if (!result.ok) {
56311
+ return {
56312
+ content: [{ type: "text", text: result.error.message }],
56313
+ isError: true
56314
+ };
56315
+ }
56316
+ return formatResult(result.value);
56317
+ }
56318
+ };
55233
56319
  });
55234
56320
 
55235
56321
  // src/models/searchgroundingmode.ts
@@ -55262,9 +56348,9 @@ var init_createv2agentpreferenceevalrequest = __esm(() => {
55262
56348
 
55263
56349
  // src/funcs/agentPreferenceEvalsCreate.ts
55264
56350
  function agentPreferenceEvalsCreate(client$, request, options) {
55265
- return new APIPromise($do2(client$, request, options));
56351
+ return new APIPromise($do8(client$, request, options));
55266
56352
  }
55267
- async function $do2(client$, request, options) {
56353
+ async function $do8(client$, request, options) {
55268
56354
  const parsed$ = safeParse4(request, (value$) => CreateV2AgentPreferenceEvalRequest$zodSchema.parse(value$), "Input validation failed");
55269
56355
  if (!parsed$.ok) {
55270
56356
  return [parsed$, { status: "invalid" }];
@@ -55334,12 +56420,12 @@ var init_agentPreferenceEvalsCreate = __esm(() => {
55334
56420
  });
55335
56421
 
55336
56422
  // src/mcp-server/tools/agentPreferenceEvalsCreate.ts
55337
- var args, tool$agentPreferenceEvalsCreate;
56423
+ var args6, tool$agentPreferenceEvalsCreate;
55338
56424
  var init_agentPreferenceEvalsCreate2 = __esm(() => {
55339
56425
  init_agentPreferenceEvalsCreate();
55340
56426
  init_createv2agentpreferenceevalrequest();
55341
56427
  init_tools();
55342
- args = {
56428
+ args6 = {
55343
56429
  request: CreateV2AgentPreferenceEvalRequest$zodSchema
55344
56430
  };
55345
56431
  tool$agentPreferenceEvalsCreate = {
@@ -55354,7 +56440,7 @@ Creates a head-to-head comparison between your company and one tracked competito
55354
56440
  openWorldHint: false,
55355
56441
  readOnlyHint: false
55356
56442
  },
55357
- args,
56443
+ args: args6,
55358
56444
  tool: async (client, args, ctx) => {
55359
56445
  const [result] = await agentPreferenceEvalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55360
56446
  if (!result.ok) {
@@ -55368,37 +56454,6 @@ Creates a head-to-head comparison between your company and one tracked competito
55368
56454
  };
55369
56455
  });
55370
56456
 
55371
- // src/models/validationerror.ts
55372
- var Loc$zodSchema, Context$zodSchema, ValidationError$zodSchema;
55373
- var init_validationerror = __esm(() => {
55374
- init_zod();
55375
- Loc$zodSchema = union([
55376
- string2(),
55377
- int()
55378
- ]);
55379
- Context$zodSchema = object({});
55380
- ValidationError$zodSchema = object({
55381
- ctx: lazy(() => Context$zodSchema).optional(),
55382
- input: any().optional(),
55383
- loc: array(union([
55384
- string2(),
55385
- int()
55386
- ])),
55387
- msg: string2(),
55388
- type: string2()
55389
- });
55390
- });
55391
-
55392
- // src/models/httpvalidationerror.ts
55393
- var HTTPValidationError$zodSchema;
55394
- var init_httpvalidationerror = __esm(() => {
55395
- init_zod();
55396
- init_validationerror();
55397
- HTTPValidationError$zodSchema = object({
55398
- detail: array(ValidationError$zodSchema).optional()
55399
- });
55400
- });
55401
-
55402
56457
  // src/models/v2agentpreferencecompetitor.ts
55403
56458
  var V2AgentPreferenceCompetitor$zodSchema;
55404
56459
  var init_v2agentpreferencecompetitor = __esm(() => {
@@ -55450,9 +56505,9 @@ var init_v2agentpreferenceevalsdeleteop = __esm(() => {
55450
56505
 
55451
56506
  // src/funcs/agentPreferenceEvalsDelete.ts
55452
56507
  function agentPreferenceEvalsDelete(client$, request, options) {
55453
- return new APIPromise($do3(client$, request, options));
56508
+ return new APIPromise($do9(client$, request, options));
55454
56509
  }
55455
- async function $do3(client$, request, options) {
56510
+ async function $do9(client$, request, options) {
55456
56511
  const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
55457
56512
  if (!parsed$.ok) {
55458
56513
  return [parsed$, { status: "invalid" }];
@@ -55527,12 +56582,12 @@ var init_agentPreferenceEvalsDelete = __esm(() => {
55527
56582
  });
55528
56583
 
55529
56584
  // src/mcp-server/tools/agentPreferenceEvalsDelete.ts
55530
- var args2, tool$agentPreferenceEvalsDelete;
56585
+ var args7, tool$agentPreferenceEvalsDelete;
55531
56586
  var init_agentPreferenceEvalsDelete2 = __esm(() => {
55532
56587
  init_agentPreferenceEvalsDelete();
55533
56588
  init_v2agentpreferenceevalsdeleteop();
55534
56589
  init_tools();
55535
- args2 = {
56590
+ args7 = {
55536
56591
  request: V2AgentPreferenceEvalsDeleteRequest$zodSchema
55537
56592
  };
55538
56593
  tool$agentPreferenceEvalsDelete = {
@@ -55547,7 +56602,7 @@ Permanently deletes an Agent Preference eval and returns its last saved state.`,
55547
56602
  openWorldHint: false,
55548
56603
  readOnlyHint: false
55549
56604
  },
55550
- args: args2,
56605
+ args: args7,
55551
56606
  tool: async (client, args, ctx) => {
55552
56607
  const [result] = await agentPreferenceEvalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55553
56608
  if (!result.ok) {
@@ -55563,9 +56618,9 @@ Permanently deletes an Agent Preference eval and returns its last saved state.`,
55563
56618
 
55564
56619
  // src/funcs/agentPreferenceEvalsList.ts
55565
56620
  function agentPreferenceEvalsList(client$, options) {
55566
- return new APIPromise($do4(client$, options));
56621
+ return new APIPromise($do10(client$, options));
55567
56622
  }
55568
- async function $do4(client$, options) {
56623
+ async function $do10(client$, options) {
55569
56624
  const path$ = pathToFunc("/v2/agent-preference/evals")();
55570
56625
  const headers$ = new Headers(compactMap({
55571
56626
  Accept: "application/json"
@@ -55718,9 +56773,9 @@ var init_v2agentpreferenceresultslistop = __esm(() => {
55718
56773
 
55719
56774
  // src/funcs/agentPreferenceEvalsResultsList.ts
55720
56775
  function agentPreferenceEvalsResultsList(client$, request, options) {
55721
- return new APIPromise($do5(client$, request, options));
56776
+ return new APIPromise($do11(client$, request, options));
55722
56777
  }
55723
- async function $do5(client$, request, options) {
56778
+ async function $do11(client$, request, options) {
55724
56779
  const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceResultsListRequest$zodSchema.parse(value$), "Input validation failed");
55725
56780
  if (!parsed$.ok) {
55726
56781
  return [parsed$, { status: "invalid" }];
@@ -55800,12 +56855,12 @@ var init_agentPreferenceEvalsResultsList = __esm(() => {
55800
56855
  });
55801
56856
 
55802
56857
  // src/mcp-server/tools/agentPreferenceEvalsResultsList.ts
55803
- var args3, tool$agentPreferenceEvalsResultsList;
56858
+ var args8, tool$agentPreferenceEvalsResultsList;
55804
56859
  var init_agentPreferenceEvalsResultsList2 = __esm(() => {
55805
56860
  init_agentPreferenceEvalsResultsList();
55806
56861
  init_v2agentpreferenceresultslistop();
55807
56862
  init_tools();
55808
- args3 = {
56863
+ args8 = {
55809
56864
  request: V2AgentPreferenceResultsListRequest$zodSchema
55810
56865
  };
55811
56866
  tool$agentPreferenceEvalsResultsList = {
@@ -55820,7 +56875,7 @@ Returns recorded attempts for an Agent Preference eval, newest first, each with
55820
56875
  openWorldHint: false,
55821
56876
  readOnlyHint: true
55822
56877
  },
55823
- args: args3,
56878
+ args: args8,
55824
56879
  tool: async (client, args, ctx) => {
55825
56880
  const [result] = await agentPreferenceEvalsResultsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55826
56881
  if (!result.ok) {
@@ -55851,9 +56906,9 @@ var init_v2agentpreferenceevalsretrieveop = __esm(() => {
55851
56906
 
55852
56907
  // src/funcs/agentPreferenceEvalsRetrieve.ts
55853
56908
  function agentPreferenceEvalsRetrieve(client$, request, options) {
55854
- return new APIPromise($do6(client$, request, options));
56909
+ return new APIPromise($do12(client$, request, options));
55855
56910
  }
55856
- async function $do6(client$, request, options) {
56911
+ async function $do12(client$, request, options) {
55857
56912
  const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
55858
56913
  if (!parsed$.ok) {
55859
56914
  return [parsed$, { status: "invalid" }];
@@ -55928,12 +56983,12 @@ var init_agentPreferenceEvalsRetrieve = __esm(() => {
55928
56983
  });
55929
56984
 
55930
56985
  // src/mcp-server/tools/agentPreferenceEvalsRetrieve.ts
55931
- var args4, tool$agentPreferenceEvalsRetrieve;
56986
+ var args9, tool$agentPreferenceEvalsRetrieve;
55932
56987
  var init_agentPreferenceEvalsRetrieve2 = __esm(() => {
55933
56988
  init_agentPreferenceEvalsRetrieve();
55934
56989
  init_v2agentpreferenceevalsretrieveop();
55935
56990
  init_tools();
55936
- args4 = {
56991
+ args9 = {
55937
56992
  request: V2AgentPreferenceEvalsRetrieveRequest$zodSchema
55938
56993
  };
55939
56994
  tool$agentPreferenceEvalsRetrieve = {
@@ -55948,7 +57003,7 @@ Returns one Agent Preference eval.`,
55948
57003
  openWorldHint: false,
55949
57004
  readOnlyHint: true
55950
57005
  },
55951
- args: args4,
57006
+ args: args9,
55952
57007
  tool: async (client, args, ctx) => {
55953
57008
  const [result] = await agentPreferenceEvalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
55954
57009
  if (!result.ok) {
@@ -55997,9 +57052,9 @@ var init_v2agentpreferenceevalsupdateop = __esm(() => {
55997
57052
 
55998
57053
  // src/funcs/agentPreferenceEvalsUpdate.ts
55999
57054
  function agentPreferenceEvalsUpdate(client$, request, options) {
56000
- return new APIPromise($do7(client$, request, options));
57055
+ return new APIPromise($do13(client$, request, options));
56001
57056
  }
56002
- async function $do7(client$, request, options) {
57057
+ async function $do13(client$, request, options) {
56003
57058
  const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceEvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
56004
57059
  if (!parsed$.ok) {
56005
57060
  return [parsed$, { status: "invalid" }];
@@ -56075,12 +57130,12 @@ var init_agentPreferenceEvalsUpdate = __esm(() => {
56075
57130
  });
56076
57131
 
56077
57132
  // src/mcp-server/tools/agentPreferenceEvalsUpdate.ts
56078
- var args5, tool$agentPreferenceEvalsUpdate;
57133
+ var args10, tool$agentPreferenceEvalsUpdate;
56079
57134
  var init_agentPreferenceEvalsUpdate2 = __esm(() => {
56080
57135
  init_agentPreferenceEvalsUpdate();
56081
57136
  init_v2agentpreferenceevalsupdateop();
56082
57137
  init_tools();
56083
- args5 = {
57138
+ args10 = {
56084
57139
  request: V2AgentPreferenceEvalsUpdateRequest$zodSchema
56085
57140
  };
56086
57141
  tool$agentPreferenceEvalsUpdate = {
@@ -56095,7 +57150,7 @@ Updates an Agent Preference eval. Omitted fields remain unchanged, an empty \`ag
56095
57150
  openWorldHint: false,
56096
57151
  readOnlyHint: false
56097
57152
  },
56098
- args: args5,
57153
+ args: args10,
56099
57154
  tool: async (client, args, ctx) => {
56100
57155
  const [result] = await agentPreferenceEvalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56101
57156
  if (!result.ok) {
@@ -56184,9 +57239,9 @@ var init_v2agentpreferenceheadtoheadretrieveop = __esm(() => {
56184
57239
 
56185
57240
  // src/funcs/agentPreferenceHeadToHeadRetrieve.ts
56186
57241
  function agentPreferenceHeadToHeadRetrieve(client$, request, options) {
56187
- return new APIPromise($do8(client$, request, options));
57242
+ return new APIPromise($do14(client$, request, options));
56188
57243
  }
56189
- async function $do8(client$, request, options) {
57244
+ async function $do14(client$, request, options) {
56190
57245
  const parsed$ = safeParse4(request, (value$) => V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
56191
57246
  if (!parsed$.ok) {
56192
57247
  return [parsed$, { status: "invalid" }];
@@ -56259,12 +57314,12 @@ var init_agentPreferenceHeadToHeadRetrieve = __esm(() => {
56259
57314
  });
56260
57315
 
56261
57316
  // src/mcp-server/tools/agentPreferenceHeadToHeadRetrieve.ts
56262
- var args6, tool$agentPreferenceHeadToHeadRetrieve;
57317
+ var args11, tool$agentPreferenceHeadToHeadRetrieve;
56263
57318
  var init_agentPreferenceHeadToHeadRetrieve2 = __esm(() => {
56264
57319
  init_agentPreferenceHeadToHeadRetrieve();
56265
57320
  init_v2agentpreferenceheadtoheadretrieveop();
56266
57321
  init_tools();
56267
- args6 = {
57322
+ args11 = {
56268
57323
  request: V2AgentPreferenceHeadToHeadRetrieveRequest$zodSchema.optional()
56269
57324
  };
56270
57325
  tool$agentPreferenceHeadToHeadRetrieve = {
@@ -56279,7 +57334,7 @@ Returns how often agents recommended your company over each tracked competitor:
56279
57334
  openWorldHint: false,
56280
57335
  readOnlyHint: true
56281
57336
  },
56282
- args: args6,
57337
+ args: args11,
56283
57338
  tool: async (client, args, ctx) => {
56284
57339
  const [result] = await agentPreferenceHeadToHeadRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56285
57340
  if (!result.ok) {
@@ -56295,9 +57350,9 @@ Returns how often agents recommended your company over each tracked competitor:
56295
57350
 
56296
57351
  // src/funcs/agentsList.ts
56297
57352
  function agentsList(client$, options) {
56298
- return new APIPromise($do9(client$, options));
57353
+ return new APIPromise($do15(client$, options));
56299
57354
  }
56300
- async function $do9(client$, options) {
57355
+ async function $do15(client$, options) {
56301
57356
  const path$ = pathToFunc("/v2/agents")();
56302
57357
  const headers$ = new Headers(compactMap({
56303
57358
  Accept: "application/json"
@@ -56387,9 +57442,9 @@ Returns the harness-and-model combinations your plan can run, as single agent ID
56387
57442
 
56388
57443
  // src/funcs/clIsList.ts
56389
57444
  function clIsList(client$, options) {
56390
- return new APIPromise($do10(client$, options));
57445
+ return new APIPromise($do16(client$, options));
56391
57446
  }
56392
- async function $do10(client$, options) {
57447
+ async function $do16(client$, options) {
56393
57448
  const path$ = pathToFunc("/v2/clis")();
56394
57449
  const headers$ = new Headers(compactMap({
56395
57450
  Accept: "application/json"
@@ -56479,9 +57534,9 @@ Returns reusable CLIs without exposing setup or installation commands.`,
56479
57534
 
56480
57535
  // src/funcs/environmentsList.ts
56481
57536
  function environmentsList(client$, options) {
56482
- return new APIPromise($do11(client$, options));
57537
+ return new APIPromise($do17(client$, options));
56483
57538
  }
56484
- async function $do11(client$, options) {
57539
+ async function $do17(client$, options) {
56485
57540
  const path$ = pathToFunc("/v2/environments")();
56486
57541
  const headers$ = new Headers(compactMap({
56487
57542
  Accept: "application/json"
@@ -56645,9 +57700,9 @@ var init_v2evalrunslistop = __esm(() => {
56645
57700
 
56646
57701
  // src/funcs/evalRunsList.ts
56647
57702
  function evalRunsList(client$, request, options) {
56648
- return new APIPromise($do12(client$, request, options));
57703
+ return new APIPromise($do18(client$, request, options));
56649
57704
  }
56650
- async function $do12(client$, request, options) {
57705
+ async function $do18(client$, request, options) {
56651
57706
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
56652
57707
  if (!parsed$.ok) {
56653
57708
  return [parsed$, { status: "invalid" }];
@@ -56721,12 +57776,12 @@ var init_evalRunsList = __esm(() => {
56721
57776
  });
56722
57777
 
56723
57778
  // src/mcp-server/tools/evalRunsList.ts
56724
- var args7, tool$evalRunsList;
57779
+ var args12, tool$evalRunsList;
56725
57780
  var init_evalRunsList2 = __esm(() => {
56726
57781
  init_evalRunsList();
56727
57782
  init_v2evalrunslistop();
56728
57783
  init_tools();
56729
- args7 = {
57784
+ args12 = {
56730
57785
  request: V2EvalRunsListRequest$zodSchema.optional()
56731
57786
  };
56732
57787
  tool$evalRunsList = {
@@ -56741,7 +57796,7 @@ Returns custom eval runs, ordered newest first, with lifecycle state and progres
56741
57796
  openWorldHint: false,
56742
57797
  readOnlyHint: true
56743
57798
  },
56744
- args: args7,
57799
+ args: args12,
56745
57800
  tool: async (client, args, ctx) => {
56746
57801
  const [result] = await evalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56747
57802
  if (!result.ok) {
@@ -56787,9 +57842,9 @@ var init_createevaltemplatebatchrequest = __esm(() => {
56787
57842
 
56788
57843
  // src/funcs/evalsBatchCreate.ts
56789
57844
  function evalsBatchCreate(client$, request, options) {
56790
- return new APIPromise($do13(client$, request, options));
57845
+ return new APIPromise($do19(client$, request, options));
56791
57846
  }
56792
- async function $do13(client$, request, options) {
57847
+ async function $do19(client$, request, options) {
56793
57848
  const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateBatchRequest$zodSchema.parse(value$), "Input validation failed");
56794
57849
  if (!parsed$.ok) {
56795
57850
  return [parsed$, { status: "invalid" }];
@@ -56859,12 +57914,12 @@ var init_evalsBatchCreate = __esm(() => {
56859
57914
  });
56860
57915
 
56861
57916
  // src/mcp-server/tools/evalsBatchCreate.ts
56862
- var args8, tool$evalsBatchCreate;
57917
+ var args13, tool$evalsBatchCreate;
56863
57918
  var init_evalsBatchCreate2 = __esm(() => {
56864
57919
  init_evalsBatchCreate();
56865
57920
  init_createevaltemplatebatchrequest();
56866
57921
  init_tools();
56867
- args8 = {
57922
+ args13 = {
56868
57923
  request: CreateEvalTemplateBatchRequest$zodSchema
56869
57924
  };
56870
57925
  tool$evalsBatchCreate = {
@@ -56879,7 +57934,7 @@ Step 2 of the reusable template workflow. Provide the \`id\` and \`version\` ret
56879
57934
  openWorldHint: false,
56880
57935
  readOnlyHint: false
56881
57936
  },
56882
- args: args8,
57937
+ args: args13,
56883
57938
  tool: async (client, args, ctx) => {
56884
57939
  const [result] = await evalsBatchCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
56885
57940
  if (!result.ok) {
@@ -56922,9 +57977,9 @@ var init_v2evalrunscancelop = __esm(() => {
56922
57977
 
56923
57978
  // src/funcs/evalsCancel.ts
56924
57979
  function evalsCancel(client$, request, options) {
56925
- return new APIPromise($do14(client$, request, options));
57980
+ return new APIPromise($do20(client$, request, options));
56926
57981
  }
56927
- async function $do14(client$, request, options) {
57982
+ async function $do20(client$, request, options) {
56928
57983
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
56929
57984
  if (!parsed$.ok) {
56930
57985
  return [parsed$, { status: "invalid" }];
@@ -56999,12 +58054,12 @@ var init_evalsCancel = __esm(() => {
56999
58054
  });
57000
58055
 
57001
58056
  // src/mcp-server/tools/evalsCancel.ts
57002
- var args9, tool$evalsCancel;
58057
+ var args14, tool$evalsCancel;
57003
58058
  var init_evalsCancel2 = __esm(() => {
57004
58059
  init_evalsCancel();
57005
58060
  init_v2evalrunscancelop();
57006
58061
  init_tools();
57007
- args9 = {
58062
+ args14 = {
57008
58063
  request: V2EvalRunsCancelRequest$zodSchema
57009
58064
  };
57010
58065
  tool$evalsCancel = {
@@ -57019,7 +58074,7 @@ Marks an active eval run as cancelled and prevents queued attempts from starting
57019
58074
  openWorldHint: false,
57020
58075
  readOnlyHint: false
57021
58076
  },
57022
- args: args9,
58077
+ args: args14,
57023
58078
  tool: async (client, args, ctx) => {
57024
58079
  const [result] = await evalsCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57025
58080
  if (!result.ok) {
@@ -57092,9 +58147,9 @@ var init_v2evalconfigurationscreateop = __esm(() => {
57092
58147
 
57093
58148
  // src/funcs/evalsConfigurationsCreate.ts
57094
58149
  function evalsConfigurationsCreate(client$, request, options) {
57095
- return new APIPromise($do15(client$, request, options));
58150
+ return new APIPromise($do21(client$, request, options));
57096
58151
  }
57097
- async function $do15(client$, request, options) {
58152
+ async function $do21(client$, request, options) {
57098
58153
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsCreateRequest$zodSchema.parse(value$), "Input validation failed");
57099
58154
  if (!parsed$.ok) {
57100
58155
  return [parsed$, { status: "invalid" }];
@@ -57170,12 +58225,12 @@ var init_evalsConfigurationsCreate = __esm(() => {
57170
58225
  });
57171
58226
 
57172
58227
  // src/mcp-server/tools/evalsConfigurationsCreate.ts
57173
- var args10, tool$evalsConfigurationsCreate;
58228
+ var args15, tool$evalsConfigurationsCreate;
57174
58229
  var init_evalsConfigurationsCreate2 = __esm(() => {
57175
58230
  init_evalsConfigurationsCreate();
57176
58231
  init_v2evalconfigurationscreateop();
57177
58232
  init_tools();
57178
- args10 = {
58233
+ args15 = {
57179
58234
  request: V2EvalConfigurationsCreateRequest$zodSchema
57180
58235
  };
57181
58236
  tool$evalsConfigurationsCreate = {
@@ -57190,7 +58245,7 @@ Creates a saved runtime configuration that pairs an eval with a repository, envi
57190
58245
  openWorldHint: false,
57191
58246
  readOnlyHint: false
57192
58247
  },
57193
- args: args10,
58248
+ args: args15,
57194
58249
  tool: async (client, args, ctx) => {
57195
58250
  const [result] = await evalsConfigurationsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57196
58251
  if (!result.ok) {
@@ -57222,9 +58277,9 @@ var init_v2evalconfigurationsdeleteop = __esm(() => {
57222
58277
 
57223
58278
  // src/funcs/evalsConfigurationsDelete.ts
57224
58279
  function evalsConfigurationsDelete(client$, request, options) {
57225
- return new APIPromise($do16(client$, request, options));
58280
+ return new APIPromise($do22(client$, request, options));
57226
58281
  }
57227
- async function $do16(client$, request, options) {
58282
+ async function $do22(client$, request, options) {
57228
58283
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
57229
58284
  if (!parsed$.ok) {
57230
58285
  return [parsed$, { status: "invalid" }];
@@ -57300,12 +58355,12 @@ var init_evalsConfigurationsDelete = __esm(() => {
57300
58355
  });
57301
58356
 
57302
58357
  // src/mcp-server/tools/evalsConfigurationsDelete.ts
57303
- var args11, tool$evalsConfigurationsDelete;
58358
+ var args16, tool$evalsConfigurationsDelete;
57304
58359
  var init_evalsConfigurationsDelete2 = __esm(() => {
57305
58360
  init_evalsConfigurationsDelete();
57306
58361
  init_v2evalconfigurationsdeleteop();
57307
58362
  init_tools();
57308
- args11 = {
58363
+ args16 = {
57309
58364
  request: V2EvalConfigurationsDeleteRequest$zodSchema
57310
58365
  };
57311
58366
  tool$evalsConfigurationsDelete = {
@@ -57320,7 +58375,7 @@ Permanently deletes an eval configuration and returns its last saved state.`,
57320
58375
  openWorldHint: false,
57321
58376
  readOnlyHint: false
57322
58377
  },
57323
- args: args11,
58378
+ args: args16,
57324
58379
  tool: async (client, args, ctx) => {
57325
58380
  const [result] = await evalsConfigurationsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57326
58381
  if (!result.ok) {
@@ -57362,9 +58417,9 @@ var init_v2evalconfigurationslistop = __esm(() => {
57362
58417
 
57363
58418
  // src/funcs/evalsConfigurationsList.ts
57364
58419
  function evalsConfigurationsList(client$, request, options) {
57365
- return new APIPromise($do17(client$, request, options));
58420
+ return new APIPromise($do23(client$, request, options));
57366
58421
  }
57367
- async function $do17(client$, request, options) {
58422
+ async function $do23(client$, request, options) {
57368
58423
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsListRequest$zodSchema.parse(value$), "Input validation failed");
57369
58424
  if (!parsed$.ok) {
57370
58425
  return [parsed$, { status: "invalid" }];
@@ -57439,12 +58494,12 @@ var init_evalsConfigurationsList = __esm(() => {
57439
58494
  });
57440
58495
 
57441
58496
  // src/mcp-server/tools/evalsConfigurationsList.ts
57442
- var args12, tool$evalsConfigurationsList;
58497
+ var args17, tool$evalsConfigurationsList;
57443
58498
  var init_evalsConfigurationsList2 = __esm(() => {
57444
58499
  init_evalsConfigurationsList();
57445
58500
  init_v2evalconfigurationslistop();
57446
58501
  init_tools();
57447
- args12 = {
58502
+ args17 = {
57448
58503
  request: V2EvalConfigurationsListRequest$zodSchema
57449
58504
  };
57450
58505
  tool$evalsConfigurationsList = {
@@ -57459,7 +58514,7 @@ Returns the saved runtime configurations for an eval, including repository, envi
57459
58514
  openWorldHint: false,
57460
58515
  readOnlyHint: true
57461
58516
  },
57462
- args: args12,
58517
+ args: args17,
57463
58518
  tool: async (client, args, ctx) => {
57464
58519
  const [result] = await evalsConfigurationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57465
58520
  if (!result.ok) {
@@ -57491,9 +58546,9 @@ var init_v2evalconfigurationsretrieveop = __esm(() => {
57491
58546
 
57492
58547
  // src/funcs/evalsConfigurationsRetrieve.ts
57493
58548
  function evalsConfigurationsRetrieve(client$, request, options) {
57494
- return new APIPromise($do18(client$, request, options));
58549
+ return new APIPromise($do24(client$, request, options));
57495
58550
  }
57496
- async function $do18(client$, request, options) {
58551
+ async function $do24(client$, request, options) {
57497
58552
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
57498
58553
  if (!parsed$.ok) {
57499
58554
  return [parsed$, { status: "invalid" }];
@@ -57569,12 +58624,12 @@ var init_evalsConfigurationsRetrieve = __esm(() => {
57569
58624
  });
57570
58625
 
57571
58626
  // src/mcp-server/tools/evalsConfigurationsRetrieve.ts
57572
- var args13, tool$evalsConfigurationsRetrieve;
58627
+ var args18, tool$evalsConfigurationsRetrieve;
57573
58628
  var init_evalsConfigurationsRetrieve2 = __esm(() => {
57574
58629
  init_evalsConfigurationsRetrieve();
57575
58630
  init_v2evalconfigurationsretrieveop();
57576
58631
  init_tools();
57577
- args13 = {
58632
+ args18 = {
57578
58633
  request: V2EvalConfigurationsRetrieveRequest$zodSchema
57579
58634
  };
57580
58635
  tool$evalsConfigurationsRetrieve = {
@@ -57589,7 +58644,7 @@ Returns one saved configuration for an eval.`,
57589
58644
  openWorldHint: false,
57590
58645
  readOnlyHint: true
57591
58646
  },
57592
- args: args13,
58647
+ args: args18,
57593
58648
  tool: async (client, args, ctx) => {
57594
58649
  const [result] = await evalsConfigurationsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57595
58650
  if (!result.ok) {
@@ -57641,9 +58696,9 @@ var init_v2evalconfigurationsupdateop = __esm(() => {
57641
58696
 
57642
58697
  // src/funcs/evalsConfigurationsUpdate.ts
57643
58698
  function evalsConfigurationsUpdate(client$, request, options) {
57644
- return new APIPromise($do19(client$, request, options));
58699
+ return new APIPromise($do25(client$, request, options));
57645
58700
  }
57646
- async function $do19(client$, request, options) {
58701
+ async function $do25(client$, request, options) {
57647
58702
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
57648
58703
  if (!parsed$.ok) {
57649
58704
  return [parsed$, { status: "invalid" }];
@@ -57720,12 +58775,12 @@ var init_evalsConfigurationsUpdate = __esm(() => {
57720
58775
  });
57721
58776
 
57722
58777
  // src/mcp-server/tools/evalsConfigurationsUpdate.ts
57723
- var args14, tool$evalsConfigurationsUpdate;
58778
+ var args19, tool$evalsConfigurationsUpdate;
57724
58779
  var init_evalsConfigurationsUpdate2 = __esm(() => {
57725
58780
  init_evalsConfigurationsUpdate();
57726
58781
  init_v2evalconfigurationsupdateop();
57727
58782
  init_tools();
57728
- args14 = {
58783
+ args19 = {
57729
58784
  request: V2EvalConfigurationsUpdateRequest$zodSchema
57730
58785
  };
57731
58786
  tool$evalsConfigurationsUpdate = {
@@ -57740,7 +58795,7 @@ Updates an eval configuration; omitted fields remain unchanged.`,
57740
58795
  openWorldHint: false,
57741
58796
  readOnlyHint: false
57742
58797
  },
57743
- args: args14,
58798
+ args: args19,
57744
58799
  tool: async (client, args, ctx) => {
57745
58800
  const [result] = await evalsConfigurationsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57746
58801
  if (!result.ok) {
@@ -57766,7 +58821,7 @@ var init_v2inlinemcpdefinition = __esm(() => {
57766
58821
  V2InlineMcpDefinition$zodSchema = object({
57767
58822
  args: array(string2()).optional(),
57768
58823
  command: string2().nullable().optional().describe("Executable command for a `stdio` MCP server."),
57769
- env: record(string2(), string2()).optional().describe("Environment mapping for a `stdio` MCP server. Values may reference run secrets with `${VARIABLE_NAME}`."),
58824
+ env: record(string2(), string2()).optional().describe("Environment mapping for a `stdio` MCP server. Values may reference the run environment's variables with `${VARIABLE_NAME}`; secrets (names ending in KEY, TOKEN, SECRET or PASSWORD) must."),
57770
58825
  headers: record(string2(), string2()).optional().describe("HTTP headers. Reference run secrets with `${VARIABLE_NAME}` instead of embedding credentials."),
57771
58826
  name: string2().describe("Stable server name used in the selected agent's MCP config."),
57772
58827
  type: V2InlineMcpDefinitionType$zodSchema,
@@ -57815,9 +58870,9 @@ var init_createv2evalrequest = __esm(() => {
57815
58870
 
57816
58871
  // src/funcs/evalsCreate.ts
57817
58872
  function evalsCreate(client$, request, options) {
57818
- return new APIPromise($do20(client$, request, options));
58873
+ return new APIPromise($do26(client$, request, options));
57819
58874
  }
57820
- async function $do20(client$, request, options) {
58875
+ async function $do26(client$, request, options) {
57821
58876
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
57822
58877
  if (!parsed$.ok) {
57823
58878
  return [parsed$, { status: "invalid" }];
@@ -57887,12 +58942,12 @@ var init_evalsCreate = __esm(() => {
57887
58942
  });
57888
58943
 
57889
58944
  // src/mcp-server/tools/evalsCreate.ts
57890
- var args15, tool$evalsCreate;
58945
+ var args20, tool$evalsCreate;
57891
58946
  var init_evalsCreate2 = __esm(() => {
57892
58947
  init_evalsCreate();
57893
58948
  init_createv2evalrequest();
57894
58949
  init_tools();
57895
- args15 = {
58950
+ args20 = {
57896
58951
  request: CreateV2EvalRequest$zodSchema
57897
58952
  };
57898
58953
  tool$evalsCreate = {
@@ -57907,7 +58962,7 @@ Creates a reusable simulation definition with one or more task prompts and judge
57907
58962
  openWorldHint: false,
57908
58963
  readOnlyHint: false
57909
58964
  },
57910
- args: args15,
58965
+ args: args20,
57911
58966
  tool: async (client, args, ctx) => {
57912
58967
  const [result] = await evalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
57913
58968
  if (!result.ok) {
@@ -57998,9 +59053,9 @@ var init_v2evalsdeleteop = __esm(() => {
57998
59053
 
57999
59054
  // src/funcs/evalsDelete.ts
58000
59055
  function evalsDelete(client$, request, options) {
58001
- return new APIPromise($do21(client$, request, options));
59056
+ return new APIPromise($do27(client$, request, options));
58002
59057
  }
58003
- async function $do21(client$, request, options) {
59058
+ async function $do27(client$, request, options) {
58004
59059
  const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
58005
59060
  if (!parsed$.ok) {
58006
59061
  return [parsed$, { status: "invalid" }];
@@ -58075,12 +59130,12 @@ var init_evalsDelete = __esm(() => {
58075
59130
  });
58076
59131
 
58077
59132
  // src/mcp-server/tools/evalsDelete.ts
58078
- var args16, tool$evalsDelete;
59133
+ var args21, tool$evalsDelete;
58079
59134
  var init_evalsDelete2 = __esm(() => {
58080
59135
  init_evalsDelete();
58081
59136
  init_v2evalsdeleteop();
58082
59137
  init_tools();
58083
- args16 = {
59138
+ args21 = {
58084
59139
  request: V2EvalsDeleteRequest$zodSchema
58085
59140
  };
58086
59141
  tool$evalsDelete = {
@@ -58095,7 +59150,7 @@ Permanently deletes an eval and all of its saved configurations.`,
58095
59150
  openWorldHint: false,
58096
59151
  readOnlyHint: false
58097
59152
  },
58098
- args: args16,
59153
+ args: args21,
58099
59154
  tool: async (client, args, ctx) => {
58100
59155
  const [result] = await evalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58101
59156
  if (!result.ok) {
@@ -58262,9 +59317,9 @@ var init_v2evalrunsretrieveop = __esm(() => {
58262
59317
 
58263
59318
  // src/funcs/evalsGet.ts
58264
59319
  function evalsGet(client$, request, options) {
58265
- return new APIPromise($do22(client$, request, options));
59320
+ return new APIPromise($do28(client$, request, options));
58266
59321
  }
58267
- async function $do22(client$, request, options) {
59322
+ async function $do28(client$, request, options) {
58268
59323
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58269
59324
  if (!parsed$.ok) {
58270
59325
  return [parsed$, { status: "invalid" }];
@@ -58339,12 +59394,12 @@ var init_evalsGet = __esm(() => {
58339
59394
  });
58340
59395
 
58341
59396
  // src/mcp-server/tools/evalsGet.ts
58342
- var args17, tool$evalsGet;
59397
+ var args22, tool$evalsGet;
58343
59398
  var init_evalsGet2 = __esm(() => {
58344
59399
  init_evalsGet();
58345
59400
  init_v2evalrunsretrieveop();
58346
59401
  init_tools();
58347
- args17 = {
59402
+ args22 = {
58348
59403
  request: V2EvalRunsRetrieveRequest$zodSchema
58349
59404
  };
58350
59405
  tool$evalsGet = {
@@ -58359,7 +59414,7 @@ Returns the run's current status and progress. Once its attempts finish, the res
58359
59414
  openWorldHint: false,
58360
59415
  readOnlyHint: true
58361
59416
  },
58362
- args: args17,
59417
+ args: args22,
58363
59418
  tool: async (client, args, ctx) => {
58364
59419
  const [result] = await evalsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58365
59420
  if (!result.ok) {
@@ -58375,9 +59430,9 @@ Returns the run's current status and progress. Once its attempts finish, the res
58375
59430
 
58376
59431
  // src/funcs/evalsList.ts
58377
59432
  function evalsList(client$, options) {
58378
- return new APIPromise($do23(client$, options));
59433
+ return new APIPromise($do29(client$, options));
58379
59434
  }
58380
- async function $do23(client$, options) {
59435
+ async function $do29(client$, options) {
58381
59436
  const path$ = pathToFunc("/v2/evals")();
58382
59437
  const headers$ = new Headers(compactMap({
58383
59438
  Accept: "application/json"
@@ -58482,9 +59537,9 @@ var init_v2evalsretrieveop = __esm(() => {
58482
59537
 
58483
59538
  // src/funcs/evalsRetrieve.ts
58484
59539
  function evalsRetrieve(client$, request, options) {
58485
- return new APIPromise($do24(client$, request, options));
59540
+ return new APIPromise($do30(client$, request, options));
58486
59541
  }
58487
- async function $do24(client$, request, options) {
59542
+ async function $do30(client$, request, options) {
58488
59543
  const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
58489
59544
  if (!parsed$.ok) {
58490
59545
  return [parsed$, { status: "invalid" }];
@@ -58559,12 +59614,12 @@ var init_evalsRetrieve = __esm(() => {
58559
59614
  });
58560
59615
 
58561
59616
  // src/mcp-server/tools/evalsRetrieve.ts
58562
- var args18, tool$evalsRetrieve;
59617
+ var args23, tool$evalsRetrieve;
58563
59618
  var init_evalsRetrieve2 = __esm(() => {
58564
59619
  init_evalsRetrieve();
58565
59620
  init_v2evalsretrieveop();
58566
59621
  init_tools();
58567
- args18 = {
59622
+ args23 = {
58568
59623
  request: V2EvalsRetrieveRequest$zodSchema
58569
59624
  };
58570
59625
  tool$evalsRetrieve = {
@@ -58579,7 +59634,7 @@ Returns one reusable eval simulation definition.`,
58579
59634
  openWorldHint: false,
58580
59635
  readOnlyHint: true
58581
59636
  },
58582
- args: args18,
59637
+ args: args23,
58583
59638
  tool: async (client, args, ctx) => {
58584
59639
  const [result] = await evalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58585
59640
  if (!result.ok) {
@@ -58631,9 +59686,9 @@ var init_createv2evalrunrequest = __esm(() => {
58631
59686
 
58632
59687
  // src/funcs/evalsRun.ts
58633
59688
  function evalsRun(client$, request, options) {
58634
- return new APIPromise($do25(client$, request, options));
59689
+ return new APIPromise($do31(client$, request, options));
58635
59690
  }
58636
- async function $do25(client$, request, options) {
59691
+ async function $do31(client$, request, options) {
58637
59692
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
58638
59693
  if (!parsed$.ok) {
58639
59694
  return [parsed$, { status: "invalid" }];
@@ -58703,12 +59758,12 @@ var init_evalsRun = __esm(() => {
58703
59758
  });
58704
59759
 
58705
59760
  // src/mcp-server/tools/evalsRun.ts
58706
- var args19, tool$evalsRun;
59761
+ var args24, tool$evalsRun;
58707
59762
  var init_evalsRun2 = __esm(() => {
58708
59763
  init_evalsRun();
58709
59764
  init_createv2evalrunrequest();
58710
59765
  init_tools();
58711
- args19 = {
59766
+ args24 = {
58712
59767
  request: CreateV2EvalRunRequest$zodSchema
58713
59768
  };
58714
59769
  tool$evalsRun = {
@@ -58732,7 +59787,7 @@ A saved or inline environment containing an empty or placeholder credential is r
58732
59787
  openWorldHint: false,
58733
59788
  readOnlyHint: false
58734
59789
  },
58735
- args: args19,
59790
+ args: args24,
58736
59791
  tool: async (client, args, ctx) => {
58737
59792
  const [result] = await evalsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58738
59793
  if (!result.ok) {
@@ -58808,9 +59863,9 @@ var init_v2evalrunstraceop = __esm(() => {
58808
59863
 
58809
59864
  // src/funcs/evalsTrace.ts
58810
59865
  function evalsTrace(client$, request, options) {
58811
- return new APIPromise($do26(client$, request, options));
59866
+ return new APIPromise($do32(client$, request, options));
58812
59867
  }
58813
- async function $do26(client$, request, options) {
59868
+ async function $do32(client$, request, options) {
58814
59869
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsTraceRequest$zodSchema.parse(value$), "Input validation failed");
58815
59870
  if (!parsed$.ok) {
58816
59871
  return [parsed$, { status: "invalid" }];
@@ -58890,12 +59945,12 @@ var init_evalsTrace = __esm(() => {
58890
59945
  });
58891
59946
 
58892
59947
  // src/mcp-server/tools/evalsTrace.ts
58893
- var args20, tool$evalsTrace;
59948
+ var args25, tool$evalsTrace;
58894
59949
  var init_evalsTrace2 = __esm(() => {
58895
59950
  init_evalsTrace();
58896
59951
  init_v2evalrunstraceop();
58897
59952
  init_tools();
58898
- args20 = {
59953
+ args25 = {
58899
59954
  request: V2EvalRunsTraceRequest$zodSchema
58900
59955
  };
58901
59956
  tool$evalsTrace = {
@@ -58910,7 +59965,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
58910
59965
  openWorldHint: false,
58911
59966
  readOnlyHint: true
58912
59967
  },
58913
- args: args20,
59968
+ args: args25,
58914
59969
  tool: async (client, args, ctx) => {
58915
59970
  const [result] = await evalsTrace(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58916
59971
  if (!result.ok) {
@@ -58973,9 +60028,9 @@ var init_v2evalsupdateop = __esm(() => {
58973
60028
 
58974
60029
  // src/funcs/evalsUpdate.ts
58975
60030
  function evalsUpdate(client$, request, options) {
58976
- return new APIPromise($do27(client$, request, options));
60031
+ return new APIPromise($do33(client$, request, options));
58977
60032
  }
58978
- async function $do27(client$, request, options) {
60033
+ async function $do33(client$, request, options) {
58979
60034
  const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
58980
60035
  if (!parsed$.ok) {
58981
60036
  return [parsed$, { status: "invalid" }];
@@ -59051,12 +60106,12 @@ var init_evalsUpdate = __esm(() => {
59051
60106
  });
59052
60107
 
59053
60108
  // src/mcp-server/tools/evalsUpdate.ts
59054
- var args21, tool$evalsUpdate;
60109
+ var args26, tool$evalsUpdate;
59055
60110
  var init_evalsUpdate2 = __esm(() => {
59056
60111
  init_evalsUpdate();
59057
60112
  init_v2evalsupdateop();
59058
60113
  init_tools();
59059
- args21 = {
60114
+ args26 = {
59060
60115
  request: V2EvalsUpdateRequest$zodSchema
59061
60116
  };
59062
60117
  tool$evalsUpdate = {
@@ -59071,7 +60126,7 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
59071
60126
  openWorldHint: false,
59072
60127
  readOnlyHint: false
59073
60128
  },
59074
- args: args21,
60129
+ args: args26,
59075
60130
  tool: async (client, args, ctx) => {
59076
60131
  const [result] = await evalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59077
60132
  if (!result.ok) {
@@ -59121,13 +60176,21 @@ var init_evaltemplateschedule = __esm(() => {
59121
60176
  });
59122
60177
 
59123
60178
  // src/models/graderdefinition.ts
59124
- var GraderDefinition$zodSchema;
60179
+ var Metric$zodSchema, GraderDefinition$zodSchema;
59125
60180
  var init_graderdefinition = __esm(() => {
59126
60181
  init_zod();
60182
+ Metric$zodSchema = _enum([
60183
+ "tool_calls",
60184
+ "time",
60185
+ "cost"
60186
+ ]);
59127
60187
  GraderDefinition$zodSchema = object({
59128
60188
  blocking: boolean2().default(false).describe("Whether a failed or missing result from this grader fails the entire eval regardless of the aggregate score."),
59129
60189
  case_sensitive: boolean2().default(false),
59130
60190
  criteria: string2().nullable().optional(),
60191
+ max_value: number2().nullable().optional(),
60192
+ metric: Metric$zodSchema.nullable().optional(),
60193
+ min_score: number2().nullable().optional(),
59131
60194
  name: string2(),
59132
60195
  needle: string2().nullable().optional(),
59133
60196
  needles: array(string2()).nullable().optional(),
@@ -59187,9 +60250,9 @@ var init_createevaltemplaterequest = __esm(() => {
59187
60250
 
59188
60251
  // src/funcs/evalTemplatesCreate.ts
59189
60252
  function evalTemplatesCreate(client$, request, options) {
59190
- return new APIPromise($do28(client$, request, options));
60253
+ return new APIPromise($do34(client$, request, options));
59191
60254
  }
59192
- async function $do28(client$, request, options) {
60255
+ async function $do34(client$, request, options) {
59193
60256
  const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateRequest$zodSchema.parse(value$), "Input validation failed");
59194
60257
  if (!parsed$.ok) {
59195
60258
  return [parsed$, { status: "invalid" }];
@@ -59259,12 +60322,12 @@ var init_evalTemplatesCreate = __esm(() => {
59259
60322
  });
59260
60323
 
59261
60324
  // src/mcp-server/tools/evalTemplatesCreate.ts
59262
- var args22, tool$evalTemplatesCreate;
60325
+ var args27, tool$evalTemplatesCreate;
59263
60326
  var init_evalTemplatesCreate2 = __esm(() => {
59264
60327
  init_evalTemplatesCreate();
59265
60328
  init_createevaltemplaterequest();
59266
60329
  init_tools();
59267
- args22 = {
60330
+ args27 = {
59268
60331
  request: CreateEvalTemplateRequest$zodSchema
59269
60332
  };
59270
60333
  tool$evalTemplatesCreate = {
@@ -59279,7 +60342,7 @@ Step 1 of the reusable template workflow. Creates an organization-owned Eval tem
59279
60342
  openWorldHint: false,
59280
60343
  readOnlyHint: false
59281
60344
  },
59282
- args: args22,
60345
+ args: args27,
59283
60346
  tool: async (client, args, ctx) => {
59284
60347
  const [result] = await evalTemplatesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59285
60348
  if (!result.ok) {
@@ -59373,9 +60436,9 @@ var init_v2evaltemplatesdeleteop = __esm(() => {
59373
60436
 
59374
60437
  // src/funcs/evalTemplatesDelete.ts
59375
60438
  function evalTemplatesDelete(client$, request, options) {
59376
- return new APIPromise($do29(client$, request, options));
60439
+ return new APIPromise($do35(client$, request, options));
59377
60440
  }
59378
- async function $do29(client$, request, options) {
60441
+ async function $do35(client$, request, options) {
59379
60442
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59380
60443
  if (!parsed$.ok) {
59381
60444
  return [parsed$, { status: "invalid" }];
@@ -59450,12 +60513,12 @@ var init_evalTemplatesDelete = __esm(() => {
59450
60513
  });
59451
60514
 
59452
60515
  // src/mcp-server/tools/evalTemplatesDelete.ts
59453
- var args23, tool$evalTemplatesDelete;
60516
+ var args28, tool$evalTemplatesDelete;
59454
60517
  var init_evalTemplatesDelete2 = __esm(() => {
59455
60518
  init_evalTemplatesDelete();
59456
60519
  init_v2evaltemplatesdeleteop();
59457
60520
  init_tools();
59458
- args23 = {
60521
+ args28 = {
59459
60522
  request: V2EvalTemplatesDeleteRequest$zodSchema
59460
60523
  };
59461
60524
  tool$evalTemplatesDelete = {
@@ -59470,7 +60533,7 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
59470
60533
  openWorldHint: false,
59471
60534
  readOnlyHint: false
59472
60535
  },
59473
- args: args23,
60536
+ args: args28,
59474
60537
  tool: async (client, args, ctx) => {
59475
60538
  const [result] = await evalTemplatesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59476
60539
  if (!result.ok) {
@@ -59486,9 +60549,9 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
59486
60549
 
59487
60550
  // src/funcs/evalTemplatesList.ts
59488
60551
  function evalTemplatesList(client$, options) {
59489
- return new APIPromise($do30(client$, options));
60552
+ return new APIPromise($do36(client$, options));
59490
60553
  }
59491
- async function $do30(client$, options) {
60554
+ async function $do36(client$, options) {
59492
60555
  const path$ = pathToFunc("/v2/eval-templates")();
59493
60556
  const headers$ = new Headers(compactMap({
59494
60557
  Accept: "application/json"
@@ -59597,9 +60660,9 @@ var init_v2evaltemplatesretrieveop = __esm(() => {
59597
60660
 
59598
60661
  // src/funcs/evalTemplatesRetrieve.ts
59599
60662
  function evalTemplatesRetrieve(client$, request, options) {
59600
- return new APIPromise($do31(client$, request, options));
60663
+ return new APIPromise($do37(client$, request, options));
59601
60664
  }
59602
- async function $do31(client$, request, options) {
60665
+ async function $do37(client$, request, options) {
59603
60666
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59604
60667
  if (!parsed$.ok) {
59605
60668
  return [parsed$, { status: "invalid" }];
@@ -59674,12 +60737,12 @@ var init_evalTemplatesRetrieve = __esm(() => {
59674
60737
  });
59675
60738
 
59676
60739
  // src/mcp-server/tools/evalTemplatesRetrieve.ts
59677
- var args24, tool$evalTemplatesRetrieve;
60740
+ var args29, tool$evalTemplatesRetrieve;
59678
60741
  var init_evalTemplatesRetrieve2 = __esm(() => {
59679
60742
  init_evalTemplatesRetrieve();
59680
60743
  init_v2evaltemplatesretrieveop();
59681
60744
  init_tools();
59682
- args24 = {
60745
+ args29 = {
59683
60746
  request: V2EvalTemplatesRetrieveRequest$zodSchema
59684
60747
  };
59685
60748
  tool$evalTemplatesRetrieve = {
@@ -59694,7 +60757,7 @@ Returns one active reusable Eval template.`,
59694
60757
  openWorldHint: false,
59695
60758
  readOnlyHint: true
59696
60759
  },
59697
- args: args24,
60760
+ args: args29,
59698
60761
  tool: async (client, args, ctx) => {
59699
60762
  const [result] = await evalTemplatesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59700
60763
  if (!result.ok) {
@@ -59788,9 +60851,9 @@ var init_v2evaltemplatesupdateop = __esm(() => {
59788
60851
 
59789
60852
  // src/funcs/evalTemplatesUpdate.ts
59790
60853
  function evalTemplatesUpdate(client$, request, options) {
59791
- return new APIPromise($do32(client$, request, options));
60854
+ return new APIPromise($do38(client$, request, options));
59792
60855
  }
59793
- async function $do32(client$, request, options) {
60856
+ async function $do38(client$, request, options) {
59794
60857
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
59795
60858
  if (!parsed$.ok) {
59796
60859
  return [parsed$, { status: "invalid" }];
@@ -59866,12 +60929,12 @@ var init_evalTemplatesUpdate = __esm(() => {
59866
60929
  });
59867
60930
 
59868
60931
  // src/mcp-server/tools/evalTemplatesUpdate.ts
59869
- var args25, tool$evalTemplatesUpdate;
60932
+ var args30, tool$evalTemplatesUpdate;
59870
60933
  var init_evalTemplatesUpdate2 = __esm(() => {
59871
60934
  init_evalTemplatesUpdate();
59872
60935
  init_v2evaltemplatesupdateop();
59873
60936
  init_tools();
59874
- args25 = {
60937
+ args30 = {
59875
60938
  request: V2EvalTemplatesUpdateRequest$zodSchema
59876
60939
  };
59877
60940
  tool$evalTemplatesUpdate = {
@@ -59886,7 +60949,7 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
59886
60949
  openWorldHint: false,
59887
60950
  readOnlyHint: false
59888
60951
  },
59889
- args: args25,
60952
+ args: args30,
59890
60953
  tool: async (client, args, ctx) => {
59891
60954
  const [result] = await evalTemplatesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59892
60955
  if (!result.ok) {
@@ -59902,9 +60965,9 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
59902
60965
 
59903
60966
  // src/funcs/mcpServersList.ts
59904
60967
  function mcpServersList(client$, options) {
59905
- return new APIPromise($do33(client$, options));
60968
+ return new APIPromise($do39(client$, options));
59906
60969
  }
59907
- async function $do33(client$, options) {
60970
+ async function $do39(client$, options) {
59908
60971
  const path$ = pathToFunc("/v2/mcp-servers")();
59909
60972
  const headers$ = new Headers(compactMap({
59910
60973
  Accept: "application/json"
@@ -60086,9 +61149,9 @@ var init_v2opportunitieslistop = __esm(() => {
60086
61149
 
60087
61150
  // src/funcs/opportunitiesList.ts
60088
61151
  function opportunitiesList(client$, request, options) {
60089
- return new APIPromise($do34(client$, request, options));
61152
+ return new APIPromise($do40(client$, request, options));
60090
61153
  }
60091
- async function $do34(client$, request, options) {
61154
+ async function $do40(client$, request, options) {
60092
61155
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
60093
61156
  if (!parsed$.ok) {
60094
61157
  return [parsed$, { status: "invalid" }];
@@ -60166,12 +61229,12 @@ var init_opportunitiesList = __esm(() => {
60166
61229
  });
60167
61230
 
60168
61231
  // src/mcp-server/tools/opportunitiesList.ts
60169
- var args26, tool$opportunitiesList;
61232
+ var args31, tool$opportunitiesList;
60170
61233
  var init_opportunitiesList2 = __esm(() => {
60171
61234
  init_opportunitiesList();
60172
61235
  init_v2opportunitieslistop();
60173
61236
  init_tools();
60174
- args26 = {
61237
+ args31 = {
60175
61238
  request: V2OpportunitiesListRequest$zodSchema.optional()
60176
61239
  };
60177
61240
  tool$opportunitiesList = {
@@ -60186,7 +61249,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
60186
61249
  openWorldHint: false,
60187
61250
  readOnlyHint: true
60188
61251
  },
60189
- args: args26,
61252
+ args: args31,
60190
61253
  tool: async (client, args, ctx) => {
60191
61254
  const [result] = await opportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60192
61255
  if (!result.ok) {
@@ -60258,9 +61321,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
60258
61321
 
60259
61322
  // src/funcs/opportunitiesRetrieve.ts
60260
61323
  function opportunitiesRetrieve(client$, request, options) {
60261
- return new APIPromise($do35(client$, request, options));
61324
+ return new APIPromise($do41(client$, request, options));
60262
61325
  }
60263
- async function $do35(client$, request, options) {
61326
+ async function $do41(client$, request, options) {
60264
61327
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60265
61328
  if (!parsed$.ok) {
60266
61329
  return [parsed$, { status: "invalid" }];
@@ -60341,12 +61404,12 @@ var init_opportunitiesRetrieve = __esm(() => {
60341
61404
  });
60342
61405
 
60343
61406
  // src/mcp-server/tools/opportunitiesRetrieve.ts
60344
- var args27, tool$opportunitiesRetrieve;
61407
+ var args32, tool$opportunitiesRetrieve;
60345
61408
  var init_opportunitiesRetrieve2 = __esm(() => {
60346
61409
  init_opportunitiesRetrieve();
60347
61410
  init_v2opportunitiesretrieveop();
60348
61411
  init_tools();
60349
- args27 = {
61412
+ args32 = {
60350
61413
  request: V2OpportunitiesRetrieveRequest$zodSchema
60351
61414
  };
60352
61415
  tool$opportunitiesRetrieve = {
@@ -60361,7 +61424,7 @@ Returns one computed opportunity and its execution context for the selected date
60361
61424
  openWorldHint: false,
60362
61425
  readOnlyHint: true
60363
61426
  },
60364
- args: args27,
61427
+ args: args32,
60365
61428
  tool: async (client, args, ctx) => {
60366
61429
  const [result] = await opportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60367
61430
  if (!result.ok) {
@@ -60416,9 +61479,9 @@ var init_createv2promptsrequest = __esm(() => {
60416
61479
 
60417
61480
  // src/funcs/promptsCreate.ts
60418
61481
  function promptsCreate(client$, request, options) {
60419
- return new APIPromise($do36(client$, request, options));
61482
+ return new APIPromise($do42(client$, request, options));
60420
61483
  }
60421
- async function $do36(client$, request, options) {
61484
+ async function $do42(client$, request, options) {
60422
61485
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
60423
61486
  if (!parsed$.ok) {
60424
61487
  return [parsed$, { status: "invalid" }];
@@ -60488,12 +61551,12 @@ var init_promptsCreate = __esm(() => {
60488
61551
  });
60489
61552
 
60490
61553
  // src/mcp-server/tools/promptsCreate.ts
60491
- var args28, tool$promptsCreate;
61554
+ var args33, tool$promptsCreate;
60492
61555
  var init_promptsCreate2 = __esm(() => {
60493
61556
  init_promptsCreate();
60494
61557
  init_createv2promptsrequest();
60495
61558
  init_tools();
60496
- args28 = {
61559
+ args33 = {
60497
61560
  request: CreateV2PromptsRequest$zodSchema
60498
61561
  };
60499
61562
  tool$promptsCreate = {
@@ -60508,7 +61571,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
60508
61571
  openWorldHint: false,
60509
61572
  readOnlyHint: false
60510
61573
  },
60511
- args: args28,
61574
+ args: args33,
60512
61575
  tool: async (client, args, ctx) => {
60513
61576
  const [result] = await promptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60514
61577
  if (!result.ok) {
@@ -60548,9 +61611,9 @@ var init_v2promptsdeleteop = __esm(() => {
60548
61611
 
60549
61612
  // src/funcs/promptsDelete.ts
60550
61613
  function promptsDelete(client$, request, options) {
60551
- return new APIPromise($do37(client$, request, options));
61614
+ return new APIPromise($do43(client$, request, options));
60552
61615
  }
60553
- async function $do37(client$, request, options) {
61616
+ async function $do43(client$, request, options) {
60554
61617
  const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
60555
61618
  if (!parsed$.ok) {
60556
61619
  return [parsed$, { status: "invalid" }];
@@ -60625,12 +61688,12 @@ var init_promptsDelete = __esm(() => {
60625
61688
  });
60626
61689
 
60627
61690
  // src/mcp-server/tools/promptsDelete.ts
60628
- var args29, tool$promptsDelete;
61691
+ var args34, tool$promptsDelete;
60629
61692
  var init_promptsDelete2 = __esm(() => {
60630
61693
  init_promptsDelete();
60631
61694
  init_v2promptsdeleteop();
60632
61695
  init_tools();
60633
- args29 = {
61696
+ args34 = {
60634
61697
  request: V2PromptsDeleteRequest$zodSchema
60635
61698
  };
60636
61699
  tool$promptsDelete = {
@@ -60645,7 +61708,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
60645
61708
  openWorldHint: false,
60646
61709
  readOnlyHint: false
60647
61710
  },
60648
- args: args29,
61711
+ args: args34,
60649
61712
  tool: async (client, args, ctx) => {
60650
61713
  const [result] = await promptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60651
61714
  if (!result.ok) {
@@ -60774,9 +61837,9 @@ var init_v2promptslistop = __esm(() => {
60774
61837
 
60775
61838
  // src/funcs/promptsList.ts
60776
61839
  function promptsList(client$, request, options) {
60777
- return new APIPromise($do38(client$, request, options));
61840
+ return new APIPromise($do44(client$, request, options));
60778
61841
  }
60779
- async function $do38(client$, request, options) {
61842
+ async function $do44(client$, request, options) {
60780
61843
  const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
60781
61844
  if (!parsed$.ok) {
60782
61845
  return [parsed$, { status: "invalid" }];
@@ -60851,12 +61914,12 @@ var init_promptsList = __esm(() => {
60851
61914
  });
60852
61915
 
60853
61916
  // src/mcp-server/tools/promptsList.ts
60854
- var args30, tool$promptsList;
61917
+ var args35, tool$promptsList;
60855
61918
  var init_promptsList2 = __esm(() => {
60856
61919
  init_promptsList();
60857
61920
  init_v2promptslistop();
60858
61921
  init_tools();
60859
- args30 = {
61922
+ args35 = {
60860
61923
  request: V2PromptsListRequest$zodSchema.optional()
60861
61924
  };
60862
61925
  tool$promptsList = {
@@ -60871,7 +61934,7 @@ Returns active and inactive prompts by default. Set \`include_archived\` to incl
60871
61934
  openWorldHint: false,
60872
61935
  readOnlyHint: true
60873
61936
  },
60874
- args: args30,
61937
+ args: args35,
60875
61938
  tool: async (client, args, ctx) => {
60876
61939
  const [result] = await promptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60877
61940
  if (!result.ok) {
@@ -60902,9 +61965,9 @@ var init_v2promptsretrieveop = __esm(() => {
60902
61965
 
60903
61966
  // src/funcs/promptsRetrieve.ts
60904
61967
  function promptsRetrieve(client$, request, options) {
60905
- return new APIPromise($do39(client$, request, options));
61968
+ return new APIPromise($do45(client$, request, options));
60906
61969
  }
60907
- async function $do39(client$, request, options) {
61970
+ async function $do45(client$, request, options) {
60908
61971
  const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60909
61972
  if (!parsed$.ok) {
60910
61973
  return [parsed$, { status: "invalid" }];
@@ -60979,12 +62042,12 @@ var init_promptsRetrieve = __esm(() => {
60979
62042
  });
60980
62043
 
60981
62044
  // src/mcp-server/tools/promptsRetrieve.ts
60982
- var args31, tool$promptsRetrieve;
62045
+ var args36, tool$promptsRetrieve;
60983
62046
  var init_promptsRetrieve2 = __esm(() => {
60984
62047
  init_promptsRetrieve();
60985
62048
  init_v2promptsretrieveop();
60986
62049
  init_tools();
60987
- args31 = {
62050
+ args36 = {
60988
62051
  request: V2PromptsRetrieveRequest$zodSchema
60989
62052
  };
60990
62053
  tool$promptsRetrieve = {
@@ -60999,7 +62062,7 @@ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-a
60999
62062
  openWorldHint: false,
61000
62063
  readOnlyHint: true
61001
62064
  },
61002
- args: args31,
62065
+ args: args36,
61003
62066
  tool: async (client, args, ctx) => {
61004
62067
  const [result] = await promptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61005
62068
  if (!result.ok) {
@@ -61025,9 +62088,9 @@ var init_createv2promptrunrequest = __esm(() => {
61025
62088
 
61026
62089
  // src/funcs/promptsRun.ts
61027
62090
  function promptsRun(client$, request, options) {
61028
- return new APIPromise($do40(client$, request, options));
62091
+ return new APIPromise($do46(client$, request, options));
61029
62092
  }
61030
- async function $do40(client$, request, options) {
62093
+ async function $do46(client$, request, options) {
61031
62094
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptRunRequest$zodSchema.parse(value$), "Input validation failed");
61032
62095
  if (!parsed$.ok) {
61033
62096
  return [parsed$, { status: "invalid" }];
@@ -61097,12 +62160,12 @@ var init_promptsRun = __esm(() => {
61097
62160
  });
61098
62161
 
61099
62162
  // src/mcp-server/tools/promptsRun.ts
61100
- var args32, tool$promptsRun;
62163
+ var args37, tool$promptsRun;
61101
62164
  var init_promptsRun2 = __esm(() => {
61102
62165
  init_promptsRun();
61103
62166
  init_createv2promptrunrequest();
61104
62167
  init_tools();
61105
- args32 = {
62168
+ args37 = {
61106
62169
  request: CreateV2PromptRunRequest$zodSchema
61107
62170
  };
61108
62171
  tool$promptsRun = {
@@ -61122,7 +62185,7 @@ response returns a run ID to poll with
61122
62185
  openWorldHint: false,
61123
62186
  readOnlyHint: false
61124
62187
  },
61125
- args: args32,
62188
+ args: args37,
61126
62189
  tool: async (client, args, ctx) => {
61127
62190
  const [result] = await promptsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61128
62191
  if (!result.ok) {
@@ -61236,9 +62299,9 @@ var init_v2promptrunslistop = __esm(() => {
61236
62299
 
61237
62300
  // src/funcs/promptsRunsList.ts
61238
62301
  function promptsRunsList(client$, request, options) {
61239
- return new APIPromise($do41(client$, request, options));
62302
+ return new APIPromise($do47(client$, request, options));
61240
62303
  }
61241
- async function $do41(client$, request, options) {
62304
+ async function $do47(client$, request, options) {
61242
62305
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
61243
62306
  if (!parsed$.ok) {
61244
62307
  return [parsed$, { status: "invalid" }];
@@ -61316,12 +62379,12 @@ var init_promptsRunsList = __esm(() => {
61316
62379
  });
61317
62380
 
61318
62381
  // src/mcp-server/tools/promptsRunsList.ts
61319
- var args33, tool$promptsRunsList;
62382
+ var args38, tool$promptsRunsList;
61320
62383
  var init_promptsRunsList2 = __esm(() => {
61321
62384
  init_promptsRunsList();
61322
62385
  init_v2promptrunslistop();
61323
62386
  init_tools();
61324
- args33 = {
62387
+ args38 = {
61325
62388
  request: V2PromptRunsListRequest$zodSchema.optional()
61326
62389
  };
61327
62390
  tool$promptsRunsList = {
@@ -61336,7 +62399,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
61336
62399
  openWorldHint: false,
61337
62400
  readOnlyHint: true
61338
62401
  },
61339
- args: args33,
62402
+ args: args38,
61340
62403
  tool: async (client, args, ctx) => {
61341
62404
  const [result] = await promptsRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61342
62405
  if (!result.ok) {
@@ -61449,9 +62512,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
61449
62512
 
61450
62513
  // src/funcs/promptsRunsRetrieve.ts
61451
62514
  function promptsRunsRetrieve(client$, request, options) {
61452
- return new APIPromise($do42(client$, request, options));
62515
+ return new APIPromise($do48(client$, request, options));
61453
62516
  }
61454
- async function $do42(client$, request, options) {
62517
+ async function $do48(client$, request, options) {
61455
62518
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61456
62519
  if (!parsed$.ok) {
61457
62520
  return [parsed$, { status: "invalid" }];
@@ -61526,12 +62589,12 @@ var init_promptsRunsRetrieve = __esm(() => {
61526
62589
  });
61527
62590
 
61528
62591
  // src/mcp-server/tools/promptsRunsRetrieve.ts
61529
- var args34, tool$promptsRunsRetrieve;
62592
+ var args39, tool$promptsRunsRetrieve;
61530
62593
  var init_promptsRunsRetrieve2 = __esm(() => {
61531
62594
  init_promptsRunsRetrieve();
61532
62595
  init_v2promptrunsretrieveop();
61533
62596
  init_tools();
61534
- args34 = {
62597
+ args39 = {
61535
62598
  request: V2PromptRunsRetrieveRequest$zodSchema
61536
62599
  };
61537
62600
  tool$promptsRunsRetrieve = {
@@ -61546,7 +62609,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
61546
62609
  openWorldHint: false,
61547
62610
  readOnlyHint: true
61548
62611
  },
61549
- args: args34,
62612
+ args: args39,
61550
62613
  tool: async (client, args, ctx) => {
61551
62614
  const [result] = await promptsRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61552
62615
  if (!result.ok) {
@@ -61625,9 +62688,9 @@ var init_v2promptrunstatusretrieveop = __esm(() => {
61625
62688
 
61626
62689
  // src/funcs/promptsRunStatus.ts
61627
62690
  function promptsRunStatus(client$, request, options) {
61628
- return new APIPromise($do43(client$, request, options));
62691
+ return new APIPromise($do49(client$, request, options));
61629
62692
  }
61630
- async function $do43(client$, request, options) {
62693
+ async function $do49(client$, request, options) {
61631
62694
  const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61632
62695
  if (!parsed$.ok) {
61633
62696
  return [parsed$, { status: "invalid" }];
@@ -61702,12 +62765,12 @@ var init_promptsRunStatus = __esm(() => {
61702
62765
  });
61703
62766
 
61704
62767
  // src/mcp-server/tools/promptsRunStatus.ts
61705
- var args35, tool$promptsRunStatus;
62768
+ var args40, tool$promptsRunStatus;
61706
62769
  var init_promptsRunStatus2 = __esm(() => {
61707
62770
  init_promptsRunStatus();
61708
62771
  init_v2promptrunstatusretrieveop();
61709
62772
  init_tools();
61710
- args35 = {
62773
+ args40 = {
61711
62774
  request: V2PromptRunStatusRetrieveRequest$zodSchema
61712
62775
  };
61713
62776
  tool$promptsRunStatus = {
@@ -61725,7 +62788,7 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
61725
62788
  openWorldHint: false,
61726
62789
  readOnlyHint: true
61727
62790
  },
61728
- args: args35,
62791
+ args: args40,
61729
62792
  tool: async (client, args, ctx) => {
61730
62793
  const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61731
62794
  if (!result.ok) {
@@ -61750,9 +62813,9 @@ var init_createprompttopicrequest = __esm(() => {
61750
62813
 
61751
62814
  // src/funcs/promptsTopicsCreate.ts
61752
62815
  function promptsTopicsCreate(client$, request, options) {
61753
- return new APIPromise($do44(client$, request, options));
62816
+ return new APIPromise($do50(client$, request, options));
61754
62817
  }
61755
- async function $do44(client$, request, options) {
62818
+ async function $do50(client$, request, options) {
61756
62819
  const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
61757
62820
  if (!parsed$.ok) {
61758
62821
  return [parsed$, { status: "invalid" }];
@@ -61822,12 +62885,12 @@ var init_promptsTopicsCreate = __esm(() => {
61822
62885
  });
61823
62886
 
61824
62887
  // src/mcp-server/tools/promptsTopicsCreate.ts
61825
- var args36, tool$promptsTopicsCreate;
62888
+ var args41, tool$promptsTopicsCreate;
61826
62889
  var init_promptsTopicsCreate2 = __esm(() => {
61827
62890
  init_promptsTopicsCreate();
61828
62891
  init_createprompttopicrequest();
61829
62892
  init_tools();
61830
- args36 = {
62893
+ args41 = {
61831
62894
  request: CreatePromptTopicRequest$zodSchema
61832
62895
  };
61833
62896
  tool$promptsTopicsCreate = {
@@ -61842,7 +62905,7 @@ Creates a prompt topic and returns the saved topic.`,
61842
62905
  openWorldHint: false,
61843
62906
  readOnlyHint: false
61844
62907
  },
61845
- args: args36,
62908
+ args: args41,
61846
62909
  tool: async (client, args, ctx) => {
61847
62910
  const [result] = await promptsTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61848
62911
  if (!result.ok) {
@@ -61874,9 +62937,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
61874
62937
 
61875
62938
  // src/funcs/promptsTopicsDelete.ts
61876
62939
  function promptsTopicsDelete(client$, request, options) {
61877
- return new APIPromise($do45(client$, request, options));
62940
+ return new APIPromise($do51(client$, request, options));
61878
62941
  }
61879
- async function $do45(client$, request, options) {
62942
+ async function $do51(client$, request, options) {
61880
62943
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
61881
62944
  if (!parsed$.ok) {
61882
62945
  return [parsed$, { status: "invalid" }];
@@ -61955,12 +63018,12 @@ var init_promptsTopicsDelete = __esm(() => {
61955
63018
  });
61956
63019
 
61957
63020
  // src/mcp-server/tools/promptsTopicsDelete.ts
61958
- var args37, tool$promptsTopicsDelete;
63021
+ var args42, tool$promptsTopicsDelete;
61959
63022
  var init_promptsTopicsDelete2 = __esm(() => {
61960
63023
  init_promptsTopicsDelete();
61961
63024
  init_v2prompttopicsdeleteop();
61962
63025
  init_tools();
61963
- args37 = {
63026
+ args42 = {
61964
63027
  request: V2PromptTopicsDeleteRequest$zodSchema
61965
63028
  };
61966
63029
  tool$promptsTopicsDelete = {
@@ -61975,7 +63038,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
61975
63038
  openWorldHint: false,
61976
63039
  readOnlyHint: false
61977
63040
  },
61978
- args: args37,
63041
+ args: args42,
61979
63042
  tool: async (client, args, ctx) => {
61980
63043
  const [result] = await promptsTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61981
63044
  if (!result.ok) {
@@ -61991,9 +63054,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
61991
63054
 
61992
63055
  // src/funcs/promptsTopicsList.ts
61993
63056
  function promptsTopicsList(client$, options) {
61994
- return new APIPromise($do46(client$, options));
63057
+ return new APIPromise($do52(client$, options));
61995
63058
  }
61996
- async function $do46(client$, options) {
63059
+ async function $do52(client$, options) {
61997
63060
  const path$ = pathToFunc("/v2/prompts/topics")();
61998
63061
  const headers$ = new Headers(compactMap({
61999
63062
  Accept: "application/json"
@@ -62109,9 +63172,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
62109
63172
 
62110
63173
  // src/funcs/promptsTopicsUpdate.ts
62111
63174
  function promptsTopicsUpdate(client$, request, options) {
62112
- return new APIPromise($do47(client$, request, options));
63175
+ return new APIPromise($do53(client$, request, options));
62113
63176
  }
62114
- async function $do47(client$, request, options) {
63177
+ async function $do53(client$, request, options) {
62115
63178
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
62116
63179
  if (!parsed$.ok) {
62117
63180
  return [parsed$, { status: "invalid" }];
@@ -62187,12 +63250,12 @@ var init_promptsTopicsUpdate = __esm(() => {
62187
63250
  });
62188
63251
 
62189
63252
  // src/mcp-server/tools/promptsTopicsUpdate.ts
62190
- var args38, tool$promptsTopicsUpdate;
63253
+ var args43, tool$promptsTopicsUpdate;
62191
63254
  var init_promptsTopicsUpdate2 = __esm(() => {
62192
63255
  init_promptsTopicsUpdate();
62193
63256
  init_v2prompttopicsupdateop();
62194
63257
  init_tools();
62195
- args38 = {
63258
+ args43 = {
62196
63259
  request: V2PromptTopicsUpdateRequest$zodSchema
62197
63260
  };
62198
63261
  tool$promptsTopicsUpdate = {
@@ -62207,7 +63270,7 @@ Renames a prompt topic and returns the updated topic.`,
62207
63270
  openWorldHint: false,
62208
63271
  readOnlyHint: false
62209
63272
  },
62210
- args: args38,
63273
+ args: args43,
62211
63274
  tool: async (client, args, ctx) => {
62212
63275
  const [result] = await promptsTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62213
63276
  if (!result.ok) {
@@ -62259,9 +63322,9 @@ var init_v2promptsupdateop = __esm(() => {
62259
63322
 
62260
63323
  // src/funcs/promptsUpdate.ts
62261
63324
  function promptsUpdate(client$, request, options) {
62262
- return new APIPromise($do48(client$, request, options));
63325
+ return new APIPromise($do54(client$, request, options));
62263
63326
  }
62264
- async function $do48(client$, request, options) {
63327
+ async function $do54(client$, request, options) {
62265
63328
  const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
62266
63329
  if (!parsed$.ok) {
62267
63330
  return [parsed$, { status: "invalid" }];
@@ -62337,12 +63400,12 @@ var init_promptsUpdate = __esm(() => {
62337
63400
  });
62338
63401
 
62339
63402
  // src/mcp-server/tools/promptsUpdate.ts
62340
- var args39, tool$promptsUpdate;
63403
+ var args44, tool$promptsUpdate;
62341
63404
  var init_promptsUpdate2 = __esm(() => {
62342
63405
  init_promptsUpdate();
62343
63406
  init_v2promptsupdateop();
62344
63407
  init_tools();
62345
- args39 = {
63408
+ args44 = {
62346
63409
  request: V2PromptsUpdateRequest$zodSchema
62347
63410
  };
62348
63411
  tool$promptsUpdate = {
@@ -62357,7 +63420,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
62357
63420
  openWorldHint: false,
62358
63421
  readOnlyHint: false
62359
63422
  },
62360
- args: args39,
63423
+ args: args44,
62361
63424
  tool: async (client, args, ctx) => {
62362
63425
  const [result] = await promptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62363
63426
  if (!result.ok) {
@@ -62400,9 +63463,9 @@ var init_createv2repositoryrequest = __esm(() => {
62400
63463
 
62401
63464
  // src/funcs/repositoriesCreate.ts
62402
63465
  function repositoriesCreate(client$, request, options) {
62403
- return new APIPromise($do49(client$, request, options));
63466
+ return new APIPromise($do55(client$, request, options));
62404
63467
  }
62405
- async function $do49(client$, request, options) {
63468
+ async function $do55(client$, request, options) {
62406
63469
  const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
62407
63470
  if (!parsed$.ok) {
62408
63471
  return [parsed$, { status: "invalid" }];
@@ -62472,12 +63535,12 @@ var init_repositoriesCreate = __esm(() => {
62472
63535
  });
62473
63536
 
62474
63537
  // src/mcp-server/tools/repositoriesCreate.ts
62475
- var args40, tool$repositoriesCreate;
63538
+ var args45, tool$repositoriesCreate;
62476
63539
  var init_repositoriesCreate2 = __esm(() => {
62477
63540
  init_repositoriesCreate();
62478
63541
  init_createv2repositoryrequest();
62479
63542
  init_tools();
62480
- args40 = {
63543
+ args45 = {
62481
63544
  request: CreateV2RepositoryRequest$zodSchema
62482
63545
  };
62483
63546
  tool$repositoriesCreate = {
@@ -62492,7 +63555,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
62492
63555
  openWorldHint: false,
62493
63556
  readOnlyHint: false
62494
63557
  },
62495
- args: args40,
63558
+ args: args45,
62496
63559
  tool: async (client, args, ctx) => {
62497
63560
  const [result] = await repositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62498
63561
  if (!result.ok) {
@@ -62507,10 +63570,10 @@ Adds a reusable Git repository workspace for eval configurations.`,
62507
63570
  });
62508
63571
 
62509
63572
  // src/models/v2repository.ts
62510
- var Kind$zodSchema, V2RepositoryFramework$zodSchema, V2Repository$zodSchema;
63573
+ var V2RepositoryKind$zodSchema, V2RepositoryFramework$zodSchema, V2Repository$zodSchema;
62511
63574
  var init_v2repository = __esm(() => {
62512
63575
  init_zod();
62513
- Kind$zodSchema = _enum([
63576
+ V2RepositoryKind$zodSchema = _enum([
62514
63577
  "template",
62515
63578
  "saved"
62516
63579
  ]).describe("Whether the repository is a read-only built-in template or an organization-owned saved repository.");
@@ -62532,7 +63595,7 @@ var init_v2repository = __esm(() => {
62532
63595
  framework: V2RepositoryFramework$zodSchema.default("custom"),
62533
63596
  id: string2().describe("Value to pass as `repository` in a direct eval run. Built-in templates use aliases such as `nextjs-starter`; saved repositories use their persisted IDs."),
62534
63597
  install_steps: array(string2()).optional(),
62535
- kind: Kind$zodSchema.describe("Whether the repository is a read-only built-in template or an organization-owned saved repository."),
63598
+ kind: V2RepositoryKind$zodSchema.describe("Whether the repository is a read-only built-in template or an organization-owned saved repository."),
62536
63599
  name: string2(),
62537
63600
  ref: string2(),
62538
63601
  repo_url: string2(),
@@ -62558,9 +63621,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
62558
63621
 
62559
63622
  // src/funcs/repositoriesDelete.ts
62560
63623
  function repositoriesDelete(client$, request, options) {
62561
- return new APIPromise($do50(client$, request, options));
63624
+ return new APIPromise($do56(client$, request, options));
62562
63625
  }
62563
- async function $do50(client$, request, options) {
63626
+ async function $do56(client$, request, options) {
62564
63627
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
62565
63628
  if (!parsed$.ok) {
62566
63629
  return [parsed$, { status: "invalid" }];
@@ -62635,12 +63698,12 @@ var init_repositoriesDelete = __esm(() => {
62635
63698
  });
62636
63699
 
62637
63700
  // src/mcp-server/tools/repositoriesDelete.ts
62638
- var args41, tool$repositoriesDelete;
63701
+ var args46, tool$repositoriesDelete;
62639
63702
  var init_repositoriesDelete2 = __esm(() => {
62640
63703
  init_repositoriesDelete();
62641
63704
  init_v2repositoriesdeleteop();
62642
63705
  init_tools();
62643
- args41 = {
63706
+ args46 = {
62644
63707
  request: V2RepositoriesDeleteRequest$zodSchema
62645
63708
  };
62646
63709
  tool$repositoriesDelete = {
@@ -62655,7 +63718,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
62655
63718
  openWorldHint: false,
62656
63719
  readOnlyHint: false
62657
63720
  },
62658
- args: args41,
63721
+ args: args46,
62659
63722
  tool: async (client, args, ctx) => {
62660
63723
  const [result] = await repositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62661
63724
  if (!result.ok) {
@@ -62671,9 +63734,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
62671
63734
 
62672
63735
  // src/funcs/repositoriesList.ts
62673
63736
  function repositoriesList(client$, options) {
62674
- return new APIPromise($do51(client$, options));
63737
+ return new APIPromise($do57(client$, options));
62675
63738
  }
62676
- async function $do51(client$, options) {
63739
+ async function $do57(client$, options) {
62677
63740
  const path$ = pathToFunc("/v2/repositories")();
62678
63741
  const headers$ = new Headers(compactMap({
62679
63742
  Accept: "application/json"
@@ -62778,9 +63841,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
62778
63841
 
62779
63842
  // src/funcs/repositoriesRetrieve.ts
62780
63843
  function repositoriesRetrieve(client$, request, options) {
62781
- return new APIPromise($do52(client$, request, options));
63844
+ return new APIPromise($do58(client$, request, options));
62782
63845
  }
62783
- async function $do52(client$, request, options) {
63846
+ async function $do58(client$, request, options) {
62784
63847
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
62785
63848
  if (!parsed$.ok) {
62786
63849
  return [parsed$, { status: "invalid" }];
@@ -62855,12 +63918,12 @@ var init_repositoriesRetrieve = __esm(() => {
62855
63918
  });
62856
63919
 
62857
63920
  // src/mcp-server/tools/repositoriesRetrieve.ts
62858
- var args42, tool$repositoriesRetrieve;
63921
+ var args47, tool$repositoriesRetrieve;
62859
63922
  var init_repositoriesRetrieve2 = __esm(() => {
62860
63923
  init_repositoriesRetrieve();
62861
63924
  init_v2repositoriesretrieveop();
62862
63925
  init_tools();
62863
- args42 = {
63926
+ args47 = {
62864
63927
  request: V2RepositoriesRetrieveRequest$zodSchema
62865
63928
  };
62866
63929
  tool$repositoriesRetrieve = {
@@ -62875,7 +63938,7 @@ Returns one reusable repository workspace.`,
62875
63938
  openWorldHint: false,
62876
63939
  readOnlyHint: true
62877
63940
  },
62878
- args: args42,
63941
+ args: args47,
62879
63942
  tool: async (client, args, ctx) => {
62880
63943
  const [result] = await repositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62881
63944
  if (!result.ok) {
@@ -62935,9 +63998,9 @@ var init_v2repositoriesupdateop = __esm(() => {
62935
63998
 
62936
63999
  // src/funcs/repositoriesUpdate.ts
62937
64000
  function repositoriesUpdate(client$, request, options) {
62938
- return new APIPromise($do53(client$, request, options));
64001
+ return new APIPromise($do59(client$, request, options));
62939
64002
  }
62940
- async function $do53(client$, request, options) {
64003
+ async function $do59(client$, request, options) {
62941
64004
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
62942
64005
  if (!parsed$.ok) {
62943
64006
  return [parsed$, { status: "invalid" }];
@@ -63013,12 +64076,12 @@ var init_repositoriesUpdate = __esm(() => {
63013
64076
  });
63014
64077
 
63015
64078
  // src/mcp-server/tools/repositoriesUpdate.ts
63016
- var args43, tool$repositoriesUpdate;
64079
+ var args48, tool$repositoriesUpdate;
63017
64080
  var init_repositoriesUpdate2 = __esm(() => {
63018
64081
  init_repositoriesUpdate();
63019
64082
  init_v2repositoriesupdateop();
63020
64083
  init_tools();
63021
- args43 = {
64084
+ args48 = {
63022
64085
  request: V2RepositoriesUpdateRequest$zodSchema
63023
64086
  };
63024
64087
  tool$repositoriesUpdate = {
@@ -63033,7 +64096,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
63033
64096
  openWorldHint: false,
63034
64097
  readOnlyHint: false
63035
64098
  },
63036
- args: args43,
64099
+ args: args48,
63037
64100
  tool: async (client, args, ctx) => {
63038
64101
  const [result] = await repositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63039
64102
  if (!result.ok) {
@@ -63049,9 +64112,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
63049
64112
 
63050
64113
  // src/funcs/siteAuditsList.ts
63051
64114
  function siteAuditsList(client$, options) {
63052
- return new APIPromise($do54(client$, options));
64115
+ return new APIPromise($do60(client$, options));
63053
64116
  }
63054
- async function $do54(client$, options) {
64117
+ async function $do60(client$, options) {
63055
64118
  const path$ = pathToFunc("/v2/site-audits")();
63056
64119
  const headers$ = new Headers(compactMap({
63057
64120
  Accept: "application/json"
@@ -63192,9 +64255,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
63192
64255
 
63193
64256
  // src/funcs/siteAuditsRetrieve.ts
63194
64257
  function siteAuditsRetrieve(client$, request, options) {
63195
- return new APIPromise($do55(client$, request, options));
64258
+ return new APIPromise($do61(client$, request, options));
63196
64259
  }
63197
- async function $do55(client$, request, options) {
64260
+ async function $do61(client$, request, options) {
63198
64261
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
63199
64262
  if (!parsed$.ok) {
63200
64263
  return [parsed$, { status: "invalid" }];
@@ -63269,12 +64332,12 @@ var init_siteAuditsRetrieve = __esm(() => {
63269
64332
  });
63270
64333
 
63271
64334
  // src/mcp-server/tools/siteAuditsRetrieve.ts
63272
- var args44, tool$siteAuditsRetrieve;
64335
+ var args49, tool$siteAuditsRetrieve;
63273
64336
  var init_siteAuditsRetrieve2 = __esm(() => {
63274
64337
  init_siteAuditsRetrieve();
63275
64338
  init_v2siteauditsretrieveop();
63276
64339
  init_tools();
63277
- args44 = {
64340
+ args49 = {
63278
64341
  request: V2SiteAuditsRetrieveRequest$zodSchema
63279
64342
  };
63280
64343
  tool$siteAuditsRetrieve = {
@@ -63289,7 +64352,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
63289
64352
  openWorldHint: false,
63290
64353
  readOnlyHint: true
63291
64354
  },
63292
- args: args44,
64355
+ args: args49,
63293
64356
  tool: async (client, args, ctx) => {
63294
64357
  const [result] = await siteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63295
64358
  if (!result.ok) {
@@ -63305,9 +64368,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
63305
64368
 
63306
64369
  // src/funcs/skillsList.ts
63307
64370
  function skillsList(client$, options) {
63308
- return new APIPromise($do56(client$, options));
64371
+ return new APIPromise($do62(client$, options));
63309
64372
  }
63310
- async function $do56(client$, options) {
64373
+ async function $do62(client$, options) {
63311
64374
  const path$ = pathToFunc("/v2/skills")();
63312
64375
  const headers$ = new Headers(compactMap({
63313
64376
  Accept: "application/json"
@@ -63397,9 +64460,9 @@ Returns reusable skills available to workflows and eval configurations.`,
63397
64460
 
63398
64461
  // src/funcs/statusAuthStatusGet.ts
63399
64462
  function statusAuthStatusGet(client$, options) {
63400
- return new APIPromise($do57(client$, options));
64463
+ return new APIPromise($do63(client$, options));
63401
64464
  }
63402
- async function $do57(client$, options) {
64465
+ async function $do63(client$, options) {
63403
64466
  const path$ = pathToFunc("/v2/auth/status")();
63404
64467
  const headers$ = new Headers(compactMap({
63405
64468
  Accept: "application/json"
@@ -63489,9 +64552,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
63489
64552
 
63490
64553
  // src/funcs/statusGet.ts
63491
64554
  function statusGet(client$, options) {
63492
- return new APIPromise($do58(client$, options));
64555
+ return new APIPromise($do64(client$, options));
63493
64556
  }
63494
- async function $do58(client$, options) {
64557
+ async function $do64(client$, options) {
63495
64558
  const path$ = pathToFunc("/v2/status")();
63496
64559
  const headers$ = new Headers(compactMap({
63497
64560
  Accept: "application/json"
@@ -63579,6 +64642,153 @@ Checks API liveness without authentication. Use \`GET /v2/auth/status\` to valid
63579
64642
  };
63580
64643
  });
63581
64644
 
64645
+ // src/models/createtaskrequest.ts
64646
+ var TaskType$zodSchema, Effort$zodSchema, CreateTaskRequestPriority$zodSchema, CreateTaskRequestActionType$zodSchema, CreateTaskRequest$zodSchema;
64647
+ var init_createtaskrequest = __esm(() => {
64648
+ init_zod();
64649
+ TaskType$zodSchema = _enum([
64650
+ "Create",
64651
+ "Refresh",
64652
+ "Win back",
64653
+ "Outreach",
64654
+ "Community",
64655
+ "Docs",
64656
+ "Redirect"
64657
+ ]);
64658
+ Effort$zodSchema = _enum([
64659
+ "Low",
64660
+ "Medium",
64661
+ "High"
64662
+ ]);
64663
+ CreateTaskRequestPriority$zodSchema = _enum([
64664
+ "urgent",
64665
+ "high",
64666
+ "medium",
64667
+ "low"
64668
+ ]);
64669
+ CreateTaskRequestActionType$zodSchema = _enum([
64670
+ "agent_discovery",
64671
+ "agent_usability"
64672
+ ]);
64673
+ CreateTaskRequest$zodSchema = object({
64674
+ action_type: CreateTaskRequestActionType$zodSchema.default("agent_discovery"),
64675
+ assignee_user_id: string2().optional().describe("A member of your organization to assign the task to. They are emailed unless they have turned off task notifications."),
64676
+ description: string2().optional().describe("A Markdown description of what to do and why."),
64677
+ effort: Effort$zodSchema.default("Medium"),
64678
+ priority: CreateTaskRequestPriority$zodSchema.default("medium"),
64679
+ task_type: TaskType$zodSchema.default("Create"),
64680
+ title: string2()
64681
+ });
64682
+ });
64683
+
64684
+ // src/funcs/tasksCreate.ts
64685
+ function tasksCreate(client$, request, options) {
64686
+ return new APIPromise($do65(client$, request, options));
64687
+ }
64688
+ async function $do65(client$, request, options) {
64689
+ const parsed$ = safeParse4(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
64690
+ if (!parsed$.ok) {
64691
+ return [parsed$, { status: "invalid" }];
64692
+ }
64693
+ const payload$ = parsed$.value;
64694
+ const body$ = encodeJSON("body", payload$, { explode: true });
64695
+ const path$ = pathToFunc("/v2/tasks")();
64696
+ const headers$ = new Headers(compactMap({
64697
+ "Content-Type": "application/json",
64698
+ Accept: "application/json"
64699
+ }));
64700
+ const securityInput = await extractSecurity(client$._options.security);
64701
+ const requestSecurity = resolveGlobalSecurity(securityInput);
64702
+ const context = {
64703
+ options: client$._options,
64704
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
64705
+ operationID: "v2_tasks_create",
64706
+ oAuth2Scopes: null,
64707
+ resolvedSecurity: requestSecurity,
64708
+ securitySource: client$._options.security,
64709
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
64710
+ retryCodes: options?.retryCodes || [
64711
+ "429",
64712
+ "500",
64713
+ "502",
64714
+ "503",
64715
+ "504"
64716
+ ]
64717
+ };
64718
+ const requestRes = client$._createRequest(context, {
64719
+ security: requestSecurity,
64720
+ method: "POST",
64721
+ baseURL: options?.serverURL,
64722
+ path: path$,
64723
+ headers: headers$,
64724
+ body: body$,
64725
+ userAgent: client$._options.userAgent,
64726
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
64727
+ }, options);
64728
+ if (!requestRes.ok) {
64729
+ return [requestRes, { status: "invalid" }];
64730
+ }
64731
+ const req$ = requestRes.value;
64732
+ const doResult = await client$._do(req$, {
64733
+ context,
64734
+ errorCodes: [],
64735
+ retryConfig: context.retryConfig,
64736
+ retryCodes: context.retryCodes
64737
+ });
64738
+ if (!doResult.ok) {
64739
+ return [doResult, { status: "request-error", request: req$ }];
64740
+ }
64741
+ return [doResult, {
64742
+ status: "complete",
64743
+ request: req$,
64744
+ response: doResult.value
64745
+ }];
64746
+ }
64747
+ var init_tasksCreate = __esm(() => {
64748
+ init_encodings();
64749
+ init_primitives();
64750
+ init_schemas4();
64751
+ init_security();
64752
+ init_url();
64753
+ init_createtaskrequest();
64754
+ init_async();
64755
+ });
64756
+
64757
+ // src/mcp-server/tools/tasksCreate.ts
64758
+ var args50, tool$tasksCreate;
64759
+ var init_tasksCreate2 = __esm(() => {
64760
+ init_tasksCreate();
64761
+ init_createtaskrequest();
64762
+ init_tools();
64763
+ args50 = {
64764
+ request: CreateTaskRequest$zodSchema
64765
+ };
64766
+ tool$tasksCreate = {
64767
+ name: "tasks-create",
64768
+ description: `Create Task
64769
+
64770
+ Adds a task to today's queue and returns it with its execution prompt. New tasks start as \`new\`.`,
64771
+ annotations: {
64772
+ title: "",
64773
+ destructiveHint: false,
64774
+ idempotentHint: false,
64775
+ openWorldHint: false,
64776
+ readOnlyHint: false
64777
+ },
64778
+ args: args50,
64779
+ tool: async (client, args, ctx) => {
64780
+ const [result] = await tasksCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64781
+ if (!result.ok) {
64782
+ return {
64783
+ content: [{ type: "text", text: result.error.message }],
64784
+ isError: true
64785
+ };
64786
+ }
64787
+ return formatResult(result.value);
64788
+ }
64789
+ };
64790
+ });
64791
+
63582
64792
  // src/models/v2publictask.ts
63583
64793
  var ContentStatus$zodSchema, V2PublicTask$zodSchema, V2PublicTask$zodSchemaOutbound;
63584
64794
  var init_v2publictask = __esm(() => {
@@ -63605,7 +64815,7 @@ var init_v2publictask = __esm(() => {
63605
64815
  execution_prompt: string2(),
63606
64816
  function_area: string2().nullable().optional(),
63607
64817
  id: string2(),
63608
- metadata: record(string2(), any()).optional().describe("Additional task metadata, including `source_key`, `impact_score`, `disposition`, `target_urls`, `evidence_summary`, `source_start_date`, and `source_end_date`."),
64818
+ metadata: record(string2(), any()).optional().describe("Additional task metadata, including `source_key`, `impact_score`, `disposition`, `target_urls`, `edit_locations` (where on the target page each change goes: `url`, `anchor` heading, `placement` of `in`, `after`, or `before`, and `change`), `evidence_summary`, `source_start_date`, and `source_end_date`."),
63609
64819
  next_action: string2(),
63610
64820
  priority: string2().nullable().optional(),
63611
64821
  rank: int().describe("Sort order within the batch, ascending; values need not start at 1."),
@@ -63725,9 +64935,9 @@ var init_v2taskslistop = __esm(() => {
63725
64935
 
63726
64936
  // src/funcs/tasksList.ts
63727
64937
  function tasksList(client$, request, options) {
63728
- return new APIPromise($do59(client$, request, options));
64938
+ return new APIPromise($do66(client$, request, options));
63729
64939
  }
63730
- async function $do59(client$, request, options) {
64940
+ async function $do66(client$, request, options) {
63731
64941
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
63732
64942
  if (!parsed$.ok) {
63733
64943
  return [parsed$, { status: "invalid" }];
@@ -63801,12 +65011,12 @@ var init_tasksList = __esm(() => {
63801
65011
  });
63802
65012
 
63803
65013
  // src/mcp-server/tools/tasksList.ts
63804
- var args45, tool$tasksList;
65014
+ var args51, tool$tasksList;
63805
65015
  var init_tasksList2 = __esm(() => {
63806
65016
  init_tasksList();
63807
65017
  init_v2taskslistop();
63808
65018
  init_tools();
63809
- args45 = {
65019
+ args51 = {
63810
65020
  request: V2TasksListRequest$zodSchema.optional()
63811
65021
  };
63812
65022
  tool$tasksList = {
@@ -63821,7 +65031,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
63821
65031
  openWorldHint: false,
63822
65032
  readOnlyHint: true
63823
65033
  },
63824
- args: args45,
65034
+ args: args51,
63825
65035
  tool: async (client, args, ctx) => {
63826
65036
  const [result] = await tasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63827
65037
  if (!result.ok) {
@@ -63852,9 +65062,9 @@ var init_v2tasksretrieveop = __esm(() => {
63852
65062
 
63853
65063
  // src/funcs/tasksRetrieve.ts
63854
65064
  function tasksRetrieve(client$, request, options) {
63855
- return new APIPromise($do60(client$, request, options));
65065
+ return new APIPromise($do67(client$, request, options));
63856
65066
  }
63857
- async function $do60(client$, request, options) {
65067
+ async function $do67(client$, request, options) {
63858
65068
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
63859
65069
  if (!parsed$.ok) {
63860
65070
  return [parsed$, { status: "invalid" }];
@@ -63929,12 +65139,12 @@ var init_tasksRetrieve = __esm(() => {
63929
65139
  });
63930
65140
 
63931
65141
  // src/mcp-server/tools/tasksRetrieve.ts
63932
- var args46, tool$tasksRetrieve;
65142
+ var args52, tool$tasksRetrieve;
63933
65143
  var init_tasksRetrieve2 = __esm(() => {
63934
65144
  init_tasksRetrieve();
63935
65145
  init_v2tasksretrieveop();
63936
65146
  init_tools();
63937
- args46 = {
65147
+ args52 = {
63938
65148
  request: V2TasksRetrieveRequest$zodSchema
63939
65149
  };
63940
65150
  tool$tasksRetrieve = {
@@ -63949,7 +65159,7 @@ Returns one persisted task and its execution prompt.`,
63949
65159
  openWorldHint: false,
63950
65160
  readOnlyHint: true
63951
65161
  },
63952
- args: args46,
65162
+ args: args52,
63953
65163
  tool: async (client, args, ctx) => {
63954
65164
  const [result] = await tasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63955
65165
  if (!result.ok) {
@@ -63964,7 +65174,7 @@ Returns one persisted task and its execution prompt.`,
63964
65174
  });
63965
65175
 
63966
65176
  // src/models/updatetaskrequest.ts
63967
- var UpdateTaskRequestStatus$zodSchema, Priority$zodSchema, ActionType$zodSchema, UpdateTaskRequest$zodSchema;
65177
+ var UpdateTaskRequestStatus$zodSchema, UpdateTaskRequestPriority$zodSchema, UpdateTaskRequestActionType$zodSchema, UpdateTaskRequest$zodSchema;
63968
65178
  var init_updatetaskrequest = __esm(() => {
63969
65179
  init_zod();
63970
65180
  UpdateTaskRequestStatus$zodSchema = _enum([
@@ -63975,20 +65185,20 @@ var init_updatetaskrequest = __esm(() => {
63975
65185
  "dismissed",
63976
65186
  "snoozed"
63977
65187
  ]).describe("The new task status. `added_to_sheet` and `snoozed` tasks are listed only when `status=all`.");
63978
- Priority$zodSchema = _enum([
65188
+ UpdateTaskRequestPriority$zodSchema = _enum([
63979
65189
  "urgent",
63980
65190
  "high",
63981
65191
  "medium",
63982
65192
  "low"
63983
65193
  ]);
63984
- ActionType$zodSchema = _enum([
65194
+ UpdateTaskRequestActionType$zodSchema = _enum([
63985
65195
  "agent_discovery",
63986
65196
  "agent_usability"
63987
65197
  ]);
63988
65198
  UpdateTaskRequest$zodSchema = object({
63989
- action_type: ActionType$zodSchema.optional(),
65199
+ action_type: UpdateTaskRequestActionType$zodSchema.optional(),
63990
65200
  assignee_user_id: string2().optional(),
63991
- priority: Priority$zodSchema.optional(),
65201
+ priority: UpdateTaskRequestPriority$zodSchema.optional(),
63992
65202
  status: UpdateTaskRequestStatus$zodSchema.optional().describe("The new task status. `added_to_sheet` and `snoozed` tasks are listed only when `status=all`.")
63993
65203
  });
63994
65204
  });
@@ -64012,9 +65222,9 @@ var init_v2tasksupdateop = __esm(() => {
64012
65222
 
64013
65223
  // src/funcs/tasksUpdate.ts
64014
65224
  function tasksUpdate(client$, request, options) {
64015
- return new APIPromise($do61(client$, request, options));
65225
+ return new APIPromise($do68(client$, request, options));
64016
65226
  }
64017
- async function $do61(client$, request, options) {
65227
+ async function $do68(client$, request, options) {
64018
65228
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
64019
65229
  if (!parsed$.ok) {
64020
65230
  return [parsed$, { status: "invalid" }];
@@ -64090,12 +65300,12 @@ var init_tasksUpdate = __esm(() => {
64090
65300
  });
64091
65301
 
64092
65302
  // src/mcp-server/tools/tasksUpdate.ts
64093
- var args47, tool$tasksUpdate;
65303
+ var args53, tool$tasksUpdate;
64094
65304
  var init_tasksUpdate2 = __esm(() => {
64095
65305
  init_tasksUpdate();
64096
65306
  init_v2tasksupdateop();
64097
65307
  init_tools();
64098
- args47 = {
65308
+ args53 = {
64099
65309
  request: V2TasksUpdateRequest$zodSchema
64100
65310
  };
64101
65311
  tool$tasksUpdate = {
@@ -64110,7 +65320,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
64110
65320
  openWorldHint: false,
64111
65321
  readOnlyHint: false
64112
65322
  },
64113
- args: args47,
65323
+ args: args53,
64114
65324
  tool: async (client, args, ctx) => {
64115
65325
  const [result] = await tasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64116
65326
  if (!result.ok) {
@@ -64198,9 +65408,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
64198
65408
 
64199
65409
  // src/funcs/visibilityCitationsList.ts
64200
65410
  function visibilityCitationsList(client$, request, options) {
64201
- return new APIPromise($do62(client$, request, options));
65411
+ return new APIPromise($do69(client$, request, options));
64202
65412
  }
64203
- async function $do62(client$, request, options) {
65413
+ async function $do69(client$, request, options) {
64204
65414
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
64205
65415
  if (!parsed$.ok) {
64206
65416
  return [parsed$, { status: "invalid" }];
@@ -64277,12 +65487,12 @@ var init_visibilityCitationsList = __esm(() => {
64277
65487
  });
64278
65488
 
64279
65489
  // src/mcp-server/tools/visibilityCitationsList.ts
64280
- var args48, tool$visibilityCitationsList;
65490
+ var args54, tool$visibilityCitationsList;
64281
65491
  var init_visibilityCitationsList2 = __esm(() => {
64282
65492
  init_visibilityCitationsList();
64283
65493
  init_v2visibilitycitationslistop();
64284
65494
  init_tools();
64285
- args48 = {
65495
+ args54 = {
64286
65496
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
64287
65497
  };
64288
65498
  tool$visibilityCitationsList = {
@@ -64297,7 +65507,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
64297
65507
  openWorldHint: false,
64298
65508
  readOnlyHint: true
64299
65509
  },
64300
- args: args48,
65510
+ args: args54,
64301
65511
  tool: async (client, args, ctx) => {
64302
65512
  const [result] = await visibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64303
65513
  if (!result.ok) {
@@ -64364,9 +65574,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
64364
65574
 
64365
65575
  // src/funcs/visibilityCurrentRetrieve.ts
64366
65576
  function visibilityCurrentRetrieve(client$, request, options) {
64367
- return new APIPromise($do63(client$, request, options));
65577
+ return new APIPromise($do70(client$, request, options));
64368
65578
  }
64369
- async function $do63(client$, request, options) {
65579
+ async function $do70(client$, request, options) {
64370
65580
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
64371
65581
  if (!parsed$.ok) {
64372
65582
  return [parsed$, { status: "invalid" }];
@@ -64440,12 +65650,12 @@ var init_visibilityCurrentRetrieve = __esm(() => {
64440
65650
  });
64441
65651
 
64442
65652
  // src/mcp-server/tools/visibilityCurrentRetrieve.ts
64443
- var args49, tool$visibilityCurrentRetrieve;
65653
+ var args55, tool$visibilityCurrentRetrieve;
64444
65654
  var init_visibilityCurrentRetrieve2 = __esm(() => {
64445
65655
  init_visibilityCurrentRetrieve();
64446
65656
  init_v2visibilitycurrentretrieveop();
64447
65657
  init_tools();
64448
- args49 = {
65658
+ args55 = {
64449
65659
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
64450
65660
  };
64451
65661
  tool$visibilityCurrentRetrieve = {
@@ -64460,7 +65670,7 @@ Returns recommendation score, visibility score, ranks, and date-range metadata f
64460
65670
  openWorldHint: false,
64461
65671
  readOnlyHint: true
64462
65672
  },
64463
- args: args49,
65673
+ args: args55,
64464
65674
  tool: async (client, args, ctx) => {
64465
65675
  const [result] = await visibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64466
65676
  if (!result.ok) {
@@ -64609,9 +65819,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
64609
65819
 
64610
65820
  // src/funcs/visibilityOverviewRetrieve.ts
64611
65821
  function visibilityOverviewRetrieve(client$, request, options) {
64612
- return new APIPromise($do64(client$, request, options));
65822
+ return new APIPromise($do71(client$, request, options));
64613
65823
  }
64614
- async function $do64(client$, request, options) {
65824
+ async function $do71(client$, request, options) {
64615
65825
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
64616
65826
  if (!parsed$.ok) {
64617
65827
  return [parsed$, { status: "invalid" }];
@@ -64685,12 +65895,12 @@ var init_visibilityOverviewRetrieve = __esm(() => {
64685
65895
  });
64686
65896
 
64687
65897
  // src/mcp-server/tools/visibilityOverviewRetrieve.ts
64688
- var args50, tool$visibilityOverviewRetrieve;
65898
+ var args56, tool$visibilityOverviewRetrieve;
64689
65899
  var init_visibilityOverviewRetrieve2 = __esm(() => {
64690
65900
  init_visibilityOverviewRetrieve();
64691
65901
  init_v2visibilityoverviewretrieveop();
64692
65902
  init_tools();
64693
- args50 = {
65903
+ args56 = {
64694
65904
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
64695
65905
  };
64696
65906
  tool$visibilityOverviewRetrieve = {
@@ -64705,7 +65915,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
64705
65915
  openWorldHint: false,
64706
65916
  readOnlyHint: true
64707
65917
  },
64708
- args: args50,
65918
+ args: args56,
64709
65919
  tool: async (client, args, ctx) => {
64710
65920
  const [result] = await visibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64711
65921
  if (!result.ok) {
@@ -64820,9 +66030,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
64820
66030
 
64821
66031
  // src/funcs/visibilityPromptsRetrieve.ts
64822
66032
  function visibilityPromptsRetrieve(client$, request, options) {
64823
- return new APIPromise($do65(client$, request, options));
66033
+ return new APIPromise($do72(client$, request, options));
64824
66034
  }
64825
- async function $do65(client$, request, options) {
66035
+ async function $do72(client$, request, options) {
64826
66036
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
64827
66037
  if (!parsed$.ok) {
64828
66038
  return [parsed$, { status: "invalid" }];
@@ -64896,12 +66106,12 @@ var init_visibilityPromptsRetrieve = __esm(() => {
64896
66106
  });
64897
66107
 
64898
66108
  // src/mcp-server/tools/visibilityPromptsRetrieve.ts
64899
- var args51, tool$visibilityPromptsRetrieve;
66109
+ var args57, tool$visibilityPromptsRetrieve;
64900
66110
  var init_visibilityPromptsRetrieve2 = __esm(() => {
64901
66111
  init_visibilityPromptsRetrieve();
64902
66112
  init_v2visibilitypromptsretrieveop();
64903
66113
  init_tools();
64904
- args51 = {
66114
+ args57 = {
64905
66115
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
64906
66116
  };
64907
66117
  tool$visibilityPromptsRetrieve = {
@@ -64916,7 +66126,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
64916
66126
  openWorldHint: false,
64917
66127
  readOnlyHint: true
64918
66128
  },
64919
- args: args51,
66129
+ args: args57,
64920
66130
  tool: async (client, args, ctx) => {
64921
66131
  const [result] = await visibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64922
66132
  if (!result.ok) {
@@ -64940,7 +66150,7 @@ function createMCPServer(deps) {
64940
66150
  sizes: ["any"]
64941
66151
  }],
64942
66152
  name: "LightsageMcp",
64943
- version: "0.4.15"
66153
+ version: "0.4.17"
64944
66154
  });
64945
66155
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
64946
66156
  security: deps.security,
@@ -64981,10 +66191,17 @@ function createMCPServer(deps) {
64981
66191
  tool(tool$opportunitiesList);
64982
66192
  tool(tool$opportunitiesRetrieve);
64983
66193
  tool(tool$tasksList);
66194
+ tool(tool$tasksCreate);
64984
66195
  tool(tool$tasksRetrieve);
64985
66196
  tool(tool$tasksUpdate);
64986
66197
  tool(tool$siteAuditsList);
64987
66198
  tool(tool$siteAuditsRetrieve);
66199
+ tool(tool$agentAnalyticsSitesList);
66200
+ tool(tool$agentAnalyticsSummaryRetrieve);
66201
+ tool(tool$agentAnalyticsSourcesList);
66202
+ tool(tool$agentAnalyticsPagesList);
66203
+ tool(tool$agentAnalyticsErrorPagesList);
66204
+ tool(tool$agentAnalyticsCountriesList);
64988
66205
  tool(tool$evalsList);
64989
66206
  tool(tool$evalsCreate);
64990
66207
  tool(tool$evalsBatchCreate);
@@ -65034,6 +66251,12 @@ var init_server3 = __esm(() => {
65034
66251
  init_core3();
65035
66252
  init_resources();
65036
66253
  init_tools();
66254
+ init_agentAnalyticsCountriesList2();
66255
+ init_agentAnalyticsErrorPagesList2();
66256
+ init_agentAnalyticsPagesList2();
66257
+ init_agentAnalyticsSitesList2();
66258
+ init_agentAnalyticsSourcesList2();
66259
+ init_agentAnalyticsSummaryRetrieve2();
65037
66260
  init_agentPreferenceCompetitorsList2();
65038
66261
  init_agentPreferenceEvalsCreate2();
65039
66262
  init_agentPreferenceEvalsDelete2();
@@ -65092,6 +66315,7 @@ var init_server3 = __esm(() => {
65092
66315
  init_skillsList2();
65093
66316
  init_statusAuthStatusGet2();
65094
66317
  init_statusGet2();
66318
+ init_tasksCreate2();
65095
66319
  init_tasksList2();
65096
66320
  init_tasksRetrieve2();
65097
66321
  init_tasksUpdate2();
@@ -65228,6 +66452,10 @@ Returns one computed opportunity and its execution context for the selected date
65228
66452
  name: "tasks-list",
65229
66453
  description: "List Tasks\n\nReturns persisted daily tasks with execution instructions. Includes per-status counts not narrowed by the `status` filter."
65230
66454
  },
66455
+ {
66456
+ name: "tasks-create",
66457
+ description: "Create Task\n\nAdds a task to today's queue and returns it with its execution prompt. New tasks start as `new`."
66458
+ },
65231
66459
  {
65232
66460
  name: "tasks-retrieve",
65233
66461
  description: `Retrieve Task
@@ -65251,6 +66479,34 @@ Returns every audited page and its actionable issues. Each page includes its sco
65251
66479
  description: `Retrieve Site Audit
65252
66480
 
65253
66481
  Returns one audited page with its score, priority, supporting evidence, and recommended fixes.`
66482
+ },
66483
+ {
66484
+ name: "agent-analytics-sites-list",
66485
+ description: "List Agent Analytics Sites\n\nReturns every site with tracked visits. Use a `site_id` from this list to read that site's agent traffic."
66486
+ },
66487
+ {
66488
+ name: "agent-analytics-summary-retrieve",
66489
+ description: `Retrieve Agent Analytics Summary
66490
+
66491
+ Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it.`
66492
+ },
66493
+ {
66494
+ name: "agent-analytics-sources-list",
66495
+ description: "List Agent Analytics Sources\n\nReturns every coding agent and bot that visited a site in the date range, with its traffic type and visit count, most visits first. Human visits are one `people` row."
66496
+ },
66497
+ {
66498
+ name: "agent-analytics-pages-list",
66499
+ description: "List Agent Analytics Pages\n\nReturns the pages AI agents and bots read on a site in the date range, with visits per traffic type. Sorted by AI visits unless `sort` is set. With `type`, returns only pages that traffic type visited. With `agent`, returns only the pages that one coding agent read."
66500
+ },
66501
+ {
66502
+ name: "agent-analytics-error-pages-list",
66503
+ description: "List Agent Analytics Error Pages\n\nReturns the pages on a site that returned an error status (400 and up) in the date range, most error requests first, with the agents, bots, and people that got each error. Set `status` to 404 for pages that were not found. Needs server-side tracking that records status codes; `status_codes_tracked` says whether the site has any."
66504
+ },
66505
+ {
66506
+ name: "agent-analytics-countries-list",
66507
+ description: `List Agent Analytics Countries
66508
+
66509
+ Returns a site's visits from coding agents and AI assistants per country in the date range, most visits first.`
65254
66510
  },
65255
66511
  {
65256
66512
  name: "evals-list",
@@ -66364,7 +67620,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
66364
67620
  <h1>Instructions</h1>
66365
67621
  <p>One-click installation for Claude Desktop users</p>
66366
67622
  <div class="instruction-item">
66367
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.15/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
67623
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.17/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
66368
67624
  \uD83D\uDCE5 Download MCP Bundle
66369
67625
  </a>
66370
67626
  </div>
@@ -69264,7 +70520,7 @@ var routes = buildRouteMap({
69264
70520
  var app = buildApplication(routes, {
69265
70521
  name: "mcp",
69266
70522
  versionInfo: {
69267
- currentVersion: "0.4.15"
70523
+ currentVersion: "0.4.17"
69268
70524
  }
69269
70525
  });
69270
70526
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -69272,5 +70528,5 @@ export {
69272
70528
  app
69273
70529
  };
69274
70530
 
69275
- //# debugId=E3C4ACAC8665A9C164756E2164756E21
70531
+ //# debugId=5C5EC6411988AD1A64756E2164756E21
69276
70532
  //# sourceMappingURL=mcp-server.js.map