@lightsage/mcp 0.4.28 → 0.4.30

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 (182) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +1810 -664
  3. package/bin/mcp-server.js.map +47 -24
  4. package/esm/funcs/evalResultsList.d.ts +16 -0
  5. package/esm/funcs/evalResultsList.d.ts.map +1 -0
  6. package/esm/funcs/evalResultsList.js +91 -0
  7. package/esm/funcs/evalResultsList.js.map +1 -0
  8. package/esm/funcs/evalResultsSummary.d.ts +16 -0
  9. package/esm/funcs/evalResultsSummary.d.ts.map +1 -0
  10. package/esm/funcs/evalResultsSummary.js +87 -0
  11. package/esm/funcs/evalResultsSummary.js.map +1 -0
  12. package/esm/funcs/evalRunsList.d.ts +1 -1
  13. package/esm/funcs/evalRunsList.js +1 -1
  14. package/esm/funcs/promptsScheduleRetrieve.d.ts +15 -0
  15. package/esm/funcs/promptsScheduleRetrieve.d.ts.map +1 -0
  16. package/esm/funcs/promptsScheduleRetrieve.js +72 -0
  17. package/esm/funcs/promptsScheduleRetrieve.js.map +1 -0
  18. package/esm/funcs/promptsScheduleUpdate.d.ts +16 -0
  19. package/esm/funcs/promptsScheduleUpdate.d.ts.map +1 -0
  20. package/esm/funcs/promptsScheduleUpdate.js +83 -0
  21. package/esm/funcs/promptsScheduleUpdate.js.map +1 -0
  22. package/esm/funcs/promptsTargetsList.d.ts +1 -1
  23. package/esm/funcs/promptsTargetsList.js +1 -1
  24. package/esm/landing-page.js +1 -1
  25. package/esm/lib/config.d.ts +2 -2
  26. package/esm/lib/config.js +2 -2
  27. package/esm/mcp-server/mcp-server.js +1 -1
  28. package/esm/mcp-server/server.d.ts.map +1 -1
  29. package/esm/mcp-server/server.js +9 -1
  30. package/esm/mcp-server/server.js.map +1 -1
  31. package/esm/mcp-server/tools/evalResultsList.d.ts +7 -0
  32. package/esm/mcp-server/tools/evalResultsList.d.ts.map +1 -0
  33. package/esm/mcp-server/tools/evalResultsList.js +35 -0
  34. package/esm/mcp-server/tools/evalResultsList.js.map +1 -0
  35. package/esm/mcp-server/tools/evalResultsSummary.d.ts +7 -0
  36. package/esm/mcp-server/tools/evalResultsSummary.d.ts.map +1 -0
  37. package/esm/mcp-server/tools/evalResultsSummary.js +35 -0
  38. package/esm/mcp-server/tools/evalResultsSummary.js.map +1 -0
  39. package/esm/mcp-server/tools/evalRunsList.js +1 -1
  40. package/esm/mcp-server/tools/evalRunsList.js.map +1 -1
  41. package/esm/mcp-server/tools/promptsScheduleRetrieve.d.ts +3 -0
  42. package/esm/mcp-server/tools/promptsScheduleRetrieve.d.ts.map +1 -0
  43. package/esm/mcp-server/tools/promptsScheduleRetrieve.js +30 -0
  44. package/esm/mcp-server/tools/promptsScheduleRetrieve.js.map +1 -0
  45. package/esm/mcp-server/tools/promptsScheduleUpdate.d.ts +7 -0
  46. package/esm/mcp-server/tools/promptsScheduleUpdate.d.ts.map +1 -0
  47. package/esm/mcp-server/tools/promptsScheduleUpdate.js +35 -0
  48. package/esm/mcp-server/tools/promptsScheduleUpdate.js.map +1 -0
  49. package/esm/mcp-server/tools/promptsTargetsList.js +1 -1
  50. package/esm/mcp-server/tools/promptsTargetsList.js.map +1 -1
  51. package/esm/models/createv2evalrequest.js +1 -1
  52. package/esm/models/createv2evalrequest.js.map +1 -1
  53. package/esm/models/createv2evalrunrequest.js +1 -1
  54. package/esm/models/createv2evalrunrequest.js.map +1 -1
  55. package/esm/models/evaltemplateruntime.js +1 -1
  56. package/esm/models/evaltemplateruntime.js.map +1 -1
  57. package/esm/models/graderdefinition.d.ts +6 -0
  58. package/esm/models/graderdefinition.d.ts.map +1 -1
  59. package/esm/models/graderdefinition.js +28 -1
  60. package/esm/models/graderdefinition.js.map +1 -1
  61. package/esm/models/updatev2promptschedulerequest.d.ts +27 -0
  62. package/esm/models/updatev2promptschedulerequest.d.ts.map +1 -0
  63. package/esm/models/updatev2promptschedulerequest.js +27 -0
  64. package/esm/models/updatev2promptschedulerequest.js.map +1 -0
  65. package/esm/models/v2evalresultsfailedcheck.d.ts +9 -0
  66. package/esm/models/v2evalresultsfailedcheck.d.ts.map +1 -0
  67. package/esm/models/v2evalresultsfailedcheck.js +12 -0
  68. package/esm/models/v2evalresultsfailedcheck.js.map +1 -0
  69. package/esm/models/v2evalresultslistitem.d.ts +35 -0
  70. package/esm/models/v2evalresultslistitem.d.ts.map +1 -0
  71. package/esm/models/v2evalresultslistitem.js +34 -0
  72. package/esm/models/v2evalresultslistitem.js.map +1 -0
  73. package/esm/models/v2evalresultslistop.d.ts +33 -0
  74. package/esm/models/v2evalresultslistop.d.ts.map +1 -0
  75. package/esm/models/v2evalresultslistop.js +34 -0
  76. package/esm/models/v2evalresultslistop.js.map +1 -0
  77. package/esm/models/v2evalresultslistresponse.d.ts +10 -0
  78. package/esm/models/v2evalresultslistresponse.d.ts.map +1 -0
  79. package/esm/models/v2evalresultslistresponse.js +13 -0
  80. package/esm/models/v2evalresultslistresponse.js.map +1 -0
  81. package/esm/models/v2evalresultssummary.d.ts +14 -0
  82. package/esm/models/v2evalresultssummary.d.ts.map +1 -0
  83. package/esm/models/v2evalresultssummary.js +18 -0
  84. package/esm/models/v2evalresultssummary.js.map +1 -0
  85. package/esm/models/v2evalresultssummaryagent.d.ts +9 -0
  86. package/esm/models/v2evalresultssummaryagent.d.ts.map +1 -0
  87. package/esm/models/v2evalresultssummaryagent.js +12 -0
  88. package/esm/models/v2evalresultssummaryagent.js.map +1 -0
  89. package/esm/models/v2evalresultssummaryeval.d.ts +13 -0
  90. package/esm/models/v2evalresultssummaryeval.d.ts.map +1 -0
  91. package/esm/models/v2evalresultssummaryeval.js +16 -0
  92. package/esm/models/v2evalresultssummaryeval.js.map +1 -0
  93. package/esm/models/v2evalresultssummaryevalagent.d.ts +9 -0
  94. package/esm/models/v2evalresultssummaryevalagent.d.ts.map +1 -0
  95. package/esm/models/v2evalresultssummaryevalagent.js +12 -0
  96. package/esm/models/v2evalresultssummaryevalagent.js.map +1 -0
  97. package/esm/models/v2evalresultssummaryfigures.d.ts +12 -0
  98. package/esm/models/v2evalresultssummaryfigures.d.ts.map +1 -0
  99. package/esm/models/v2evalresultssummaryfigures.js +15 -0
  100. package/esm/models/v2evalresultssummaryfigures.js.map +1 -0
  101. package/esm/models/v2evalresultssummaryrange.d.ts +10 -0
  102. package/esm/models/v2evalresultssummaryrange.d.ts.map +1 -0
  103. package/esm/models/v2evalresultssummaryrange.js +13 -0
  104. package/esm/models/v2evalresultssummaryrange.js.map +1 -0
  105. package/esm/models/v2evalresultssummaryretrieveop.d.ts +11 -0
  106. package/esm/models/v2evalresultssummaryretrieveop.d.ts.map +1 -0
  107. package/esm/models/v2evalresultssummaryretrieveop.js +17 -0
  108. package/esm/models/v2evalresultssummaryretrieveop.js.map +1 -0
  109. package/esm/models/v2promptrunfrequency.d.ts +40 -0
  110. package/esm/models/v2promptrunfrequency.d.ts.map +1 -0
  111. package/esm/models/v2promptrunfrequency.js +38 -0
  112. package/esm/models/v2promptrunfrequency.js.map +1 -0
  113. package/esm/models/v2promptrunfrequencyinput.d.ts +47 -0
  114. package/esm/models/v2promptrunfrequencyinput.d.ts.map +1 -0
  115. package/esm/models/v2promptrunfrequencyinput.js +45 -0
  116. package/esm/models/v2promptrunfrequencyinput.js.map +1 -0
  117. package/esm/models/v2promptrunjobresponse.d.ts +1 -1
  118. package/esm/models/v2promptschedule.d.ts +31 -0
  119. package/esm/models/v2promptschedule.d.ts.map +1 -0
  120. package/esm/models/v2promptschedule.js +29 -0
  121. package/esm/models/v2promptschedule.js.map +1 -0
  122. package/esm/models/v2promptscheduleupdateop.d.ts +6 -0
  123. package/esm/models/v2promptscheduleupdateop.d.ts.map +1 -0
  124. package/esm/models/v2promptscheduleupdateop.js +12 -0
  125. package/esm/models/v2promptscheduleupdateop.js.map +1 -0
  126. package/esm/models/v2prompttarget.d.ts +6 -2
  127. package/esm/models/v2prompttarget.d.ts.map +1 -1
  128. package/esm/models/v2prompttarget.js +5 -3
  129. package/esm/models/v2prompttarget.js.map +1 -1
  130. package/esm/models/v2prompttargetinput.d.ts +10 -6
  131. package/esm/models/v2prompttargetinput.d.ts.map +1 -1
  132. package/esm/models/v2prompttargetinput.js +9 -6
  133. package/esm/models/v2prompttargetinput.js.map +1 -1
  134. package/esm/models/v2setupcommandoutput.js +1 -1
  135. package/esm/models/v2setupcommandoutput.js.map +1 -1
  136. package/esm/tool-names.d.ts.map +1 -1
  137. package/esm/tool-names.js +18 -2
  138. package/esm/tool-names.js.map +1 -1
  139. package/lib/feedback.js +2 -2
  140. package/lib/tool-overrides.js +196 -8
  141. package/package.json +1 -1
  142. package/src/funcs/evalResultsList.ts +153 -0
  143. package/src/funcs/evalResultsSummary.ts +150 -0
  144. package/src/funcs/evalRunsList.ts +1 -1
  145. package/src/funcs/promptsScheduleRetrieve.ts +124 -0
  146. package/src/funcs/promptsScheduleUpdate.ts +145 -0
  147. package/src/funcs/promptsTargetsList.ts +1 -1
  148. package/src/landing-page.ts +1 -1
  149. package/src/lib/config.ts +2 -2
  150. package/src/mcp-server/mcp-server.ts +1 -1
  151. package/src/mcp-server/server.ts +9 -1
  152. package/src/mcp-server/tools/evalResultsList.ts +43 -0
  153. package/src/mcp-server/tools/evalResultsSummary.ts +43 -0
  154. package/src/mcp-server/tools/evalRunsList.ts +1 -1
  155. package/src/mcp-server/tools/promptsScheduleRetrieve.ts +36 -0
  156. package/src/mcp-server/tools/promptsScheduleUpdate.ts +43 -0
  157. package/src/mcp-server/tools/promptsTargetsList.ts +1 -1
  158. package/src/models/createv2evalrequest.ts +1 -1
  159. package/src/models/createv2evalrunrequest.ts +1 -1
  160. package/src/models/evaltemplateruntime.ts +1 -1
  161. package/src/models/graderdefinition.ts +53 -19
  162. package/src/models/updatev2promptschedulerequest.ts +56 -0
  163. package/src/models/v2evalresultsfailedcheck.ts +24 -0
  164. package/src/models/v2evalresultslistitem.ts +70 -0
  165. package/src/models/v2evalresultslistop.ts +74 -0
  166. package/src/models/v2evalresultslistresponse.ts +28 -0
  167. package/src/models/v2evalresultssummary.ts +43 -0
  168. package/src/models/v2evalresultssummaryagent.ts +26 -0
  169. package/src/models/v2evalresultssummaryeval.ts +38 -0
  170. package/src/models/v2evalresultssummaryevalagent.ts +26 -0
  171. package/src/models/v2evalresultssummaryfigures.ts +38 -0
  172. package/src/models/v2evalresultssummaryrange.ts +26 -0
  173. package/src/models/v2evalresultssummaryretrieveop.ts +40 -0
  174. package/src/models/v2promptrunfrequency.ts +78 -0
  175. package/src/models/v2promptrunfrequencyinput.ts +76 -0
  176. package/src/models/v2promptschedule.ts +60 -0
  177. package/src/models/v2promptscheduleupdateop.ts +25 -0
  178. package/src/models/v2prompttarget.ts +8 -4
  179. package/src/models/v2prompttargetinput.ts +18 -11
  180. package/src/models/v2setupcommandoutput.ts +1 -1
  181. package/src/tool-names.ts +18 -2
  182. package/test/tool-overrides.test.js +121 -3
package/bin/mcp-server.js CHANGED
@@ -25496,16 +25496,121 @@ var require_util_inspect = __commonJS(function(exports, module) {
25496
25496
  module.exports = __require("util").inspect;
25497
25497
  });
25498
25498
 
25499
+ // node_modules/object-inspect/stringWidthRanges.js
25500
+ var require_stringWidthRanges = __commonJS(function(exports, module) {
25501
+ var $join = Array.prototype.join;
25502
+ module.exports = $join.call([
25503
+ "00.v,02n.w,0gw.33,07n.6,07b.18,01.0,01.1,01.1,01.0,01k.5,0a.a,01.0,01a.k,0g.0,02t.7,01.5,02.1,01.3,",
25504
+ "0x.0,01.0,0u.q,02j.a,01m.8,09.0,0o.3,01.8,01.2,01.4,017.2,01g.1,05.8,016.1k,01j.0,01.0,04.7,04.0,",
25505
+ "03.6,0a.1,0t.0,01m.0,04.3,08.0,0k.1,0q.0,02.1,01l.0,04.1,04.1,02.2,03.0,0u.1,03.0,0b.1,01l.0,04.4,",
25506
+ "01.1,04.0,0k.1,0m.5,01.0,01m.0,02.0,01.3,08.0,07.1,0b.1,0u.0,01p.0,0c.0,01e.0,03.0,01j.0,01.2,05.2,",
25507
+ "01.3,07.1,0b.1,0t.0,01m.0,02.0,06.0,05.1,0k.1,0s.1,01l.1,04.3,08.0,0k.1,0t.0,020.0,07.2,01.0,02i.0,",
25508
+ "02.6,0c.7,02q.0,02.8,0b.6,021.1,0r.0,01.0,01.0,01j.d,01.4,01.1,05.a,01.z,09.0,02u.3,01.5,01.1,02.1,",
25509
+ "0p.1,04.2,0g.3,0d.0,02.1,06.0,0f.0,22q.2n,0e5.2,0qa.2,0t.1,0u.1,0u.1,01s.1,01.6,08.0,02.a,09.0,",
25510
+ "019.4,039.1,0y.0,03a.2,04.1,09.0,06.2,063.1,02.0,01m.0,01.6,01.0,01.0,02.7,06.9,02.0,01c.19,02.b,",
25511
+ "0k.3,01c.0,01.4,01.0,05.0,014.8,0c.1,0w.3,02.1,01.2,01k.0,01.1,03.0,01.2,01m.7,02.1,048.2,01.c,01.6,",
25512
+ "04.0,06.0,03.1,05i.1r,0ej.4,0q.4,01d.4,01.9,02o.w,2fd.1,2d.1,25a.3,23.0,22.0,2eh.1,2l.1,2q.7,2g.b,",
25513
+ "217.0,2a.5,23.0,2d.0,28.1,2h.1,25.1,28.0,25.0,2l.0,27.1,21.0,24.0,22.0,27.0,24.1,2s.0,2z.0,21.0,",
25514
+ "24.2,21.0,21p.2,2o.0,2e.0,2nv.1,21f.0,24.0,0bd.2,03x.0,02o.v,23k.p,21.2g,2c.5x,2q.26,22.2d,22.2u,",
25515
+ "25.16,21.2l,21.2d,29.1b,21.13,28.mkc,23.1i,0bs.3,01.9,0w.1,028.1,07k.0,03.0,04.0,0p.1,05.0,047.1,",
25516
+ "0q.h,0d.0,012.7,0p.a,2e.s,03.2,01c.0,02.3,02.1,013.0,01v.5,02.1,02.1,0c.0,08.0,01b.0,01f.0,01.2,",
25517
+ "02.1,05.1,01.0,016.1,08.0,06m.0,02.0,04.0,2i.8mb,26l8.e7,0u.0,0kh.f,20.9,06.f,20.y,21.i,21.3,043.0,",
25518
+ "21.2n,23j.6,0i.2,0e9.0,06a.0,045.4,01ae.2,01.1,05.3,014.2,04.0,04l.1,0fx.3,01t.4,08t.1,025.5,01y.a,",
25519
+ "01d.3,03f.0,01i.e,015.0,02.1,0a.2,01d.3,02.1,02.0,04.0,0a.0,01e.2,010.4,01.7,01q.0,0c.1,01g.8,0a.3,",
25520
+ "02.0,02n.2,02.0,01.1,06.0,02.0,04d.0,03.7,0l.1,01l.1,03.0,011.6,03.4,01y.5,0d.0,01.0,01.0,0e.1,",
25521
+ "02d.7,02.2,01.0,0n.0,02c.5,01.0,04.1,01.1,06m.3,06.1,01.1,0r.1,02d.7,02.0,01.1,02y.0,01.0,02.5,01.0,",
25522
+ "02t.0,01.0,02.3,01.4,077.8,01.1,074.1,01.0,04.0,040.3,02.1,04.0,0w.9,014.5,02.3,08.0,09.5,02.2,",
25523
+ "01a.c,01.1,05i.0,01.2,01.0,05l.6,01.5,01.0,02a.l,02.6,01.1,01.1,03e.5,03.0,01.1,01.6,01.0,020.1,",
25524
+ "03.0,01.0,09n.1,0b.1,01g.4,05.0,01.0,0n.0,0445.g,06.e,08ug.b,03.2,01xc.4,01n.6,0t4.0,01r.3,225.4,",
25525
+ "2b.6,29.5p1,215.v,22p.36,26pp.3,21.6,21.1,21.82,2f.0,2t.2,22.0,2e.3,28.az,01wh.1,01.3,03mk.19,02.m,",
25526
+ "2ev.1,30.4,02.2,09.f,02.6,0u.3,2d.1,30.3,03l.2,257.2e,29.m,01ah.1i,04.1d,08.0,0e.0,0m.4,01.e,011s.6,",
25527
+ "01.g,02.6,01.1,01.4,02s.0,04g.6,0af.0,01p.3,0e4.3,072.1,06r.0,02.0,07.1,05.0,0d6.6,031.6,21bt.0,",
25528
+ "25m.0,25a.0,22.9,223.s,2d.17,24.8,27.1,2e.5,24a.w,2c.8,21.1x,21.l,2c.16,24.4,2c.g,23.0,23.1y,21.0,",
25529
+ "21.56,22.1q,2d.3,21.n,2i.0,2q.1,2d.0,22e.2c,21c.1x,26.0,23.2,22.3,23.3,2b.1,27.8,26b.b,24.0,27v.1a,",
25530
+ "21.9,21.54,234.c,23.a,23.1k,21.0,24.f,22.b,24.9,2zr.1ekd,22.1ekd,0e1oj.0,0u.2n,03k.6n"
25531
+ ], "");
25532
+ });
25533
+
25534
+ // node_modules/object-inspect/stringWidth.js
25535
+ var require_stringWidth = __commonJS(function(exports, module) {
25536
+ var $charCodeAt = String.prototype.charCodeAt;
25537
+ var $indexOf = String.prototype.indexOf;
25538
+ var $normalize = String.prototype.normalize;
25539
+ var $slice = String.prototype.slice;
25540
+ var $split = String.prototype.split;
25541
+ var $floor = Math.floor;
25542
+ var $parseInt = parseInt;
25543
+ var ranges = require_stringWidthRanges();
25544
+ var starts = [];
25545
+ var ends = [];
25546
+ var widths = [];
25547
+ var tokens = $split.call(ranges, ",");
25548
+ var previousEnd = -1;
25549
+ for (t = 0;t < tokens.length; t++) {
25550
+ dot = $indexOf.call(tokens[t], ".");
25551
+ starts[t] = previousEnd + 1 + $parseInt($slice.call(tokens[t], 1, dot), 36);
25552
+ previousEnd = starts[t] + $parseInt($slice.call(tokens[t], dot + 1), 36);
25553
+ ends[t] = previousEnd;
25554
+ widths[t] = Number($slice.call(tokens[t], 0, 1));
25555
+ }
25556
+ var dot;
25557
+ var t;
25558
+ function codePointWidth(code) {
25559
+ var low = 0;
25560
+ var high = starts.length - 1;
25561
+ while (low <= high) {
25562
+ var mid = $floor((low + high) / 2);
25563
+ if (code < starts[mid]) {
25564
+ high = mid - 1;
25565
+ } else if (code > ends[mid]) {
25566
+ low = mid + 1;
25567
+ } else {
25568
+ return widths[mid];
25569
+ }
25570
+ }
25571
+ return 1;
25572
+ }
25573
+ function unicodeWidth(str) {
25574
+ var width = 0;
25575
+ for (var i = 0;i < str.length; i++) {
25576
+ var code = $charCodeAt.call(str, i);
25577
+ if (code >= 55296 && code <= 56319 && i + 1 < str.length) {
25578
+ var next = $charCodeAt.call(str, i + 1);
25579
+ if (next >= 56320 && next <= 57343) {
25580
+ code = (code - 55296) * 1024 + (next - 56320) + 65536;
25581
+ i += 1;
25582
+ }
25583
+ }
25584
+ width += codePointWidth(code);
25585
+ }
25586
+ return width;
25587
+ }
25588
+ module.exports = function getStringWidth(str) {
25589
+ var width = 0;
25590
+ for (var i = 0;i < str.length; i++) {
25591
+ var code = $charCodeAt.call(str, i);
25592
+ if (code >= 127) {
25593
+ var rest = $slice.call(str, i);
25594
+ return width + unicodeWidth($normalize ? $normalize.call(rest, "NFC") : rest);
25595
+ }
25596
+ width += code >= 32 ? 1 : 0;
25597
+ }
25598
+ return width;
25599
+ };
25600
+ });
25601
+
25499
25602
  // node_modules/object-inspect/index.js
25500
25603
  var require_object_inspect = __commonJS(function(exports, module) {
25501
25604
  var hasMap = typeof Map === "function" && Map.prototype;
25502
25605
  var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
25503
25606
  var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
25504
25607
  var mapForEach = hasMap && Map.prototype.forEach;
25608
+ var mapEntries = hasMap && Map.prototype.entries;
25505
25609
  var hasSet = typeof Set === "function" && Set.prototype;
25506
25610
  var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
25507
25611
  var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
25508
25612
  var setForEach = hasSet && Set.prototype.forEach;
25613
+ var setValues = hasSet && Set.prototype.values;
25509
25614
  var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
25510
25615
  var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
25511
25616
  var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
@@ -25525,15 +25630,50 @@ var require_object_inspect = __commonJS(function(exports, module) {
25525
25630
  var $join = Array.prototype.join;
25526
25631
  var $arrSlice = Array.prototype.slice;
25527
25632
  var $floor = Math.floor;
25633
+ var $max = Math.max;
25634
+ var $min = Math.min;
25635
+ var $round = Math.round;
25636
+ var $sqrt = Math.sqrt;
25528
25637
  var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
25529
25638
  var gOPS = Object.getOwnPropertySymbols;
25530
25639
  var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
25531
25640
  var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
25532
- var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
25641
+ var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (hasShammedSymbols ? typeof Symbol.toStringTag === "object" : typeof Symbol.toStringTag === "symbol") ? Symbol.toStringTag : null;
25533
25642
  var isEnumerable = Object.prototype.propertyIsEnumerable;
25534
25643
  var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
25535
25644
  return O.__proto__;
25536
25645
  } : null);
25646
+ var mapIteratorNext = mapEntries && gPO ? gPO(mapEntries.call(new Map)).next : null;
25647
+ var setIteratorNext = setValues && gPO ? gPO(setValues.call(new Set)).next : null;
25648
+ var typedArrayProto = typeof Uint8Array === "function" && gPO ? gPO(Uint8Array.prototype) : null;
25649
+ var typedArrayTag = typedArrayProto && toStringTag ? getterOf(typedArrayProto, toStringTag) : null;
25650
+ var typedArrayLength = typedArrayProto ? getterOf(typedArrayProto, "length") : null;
25651
+ var typedArrayToString = /^\[object (?:Int8|Uint8|Uint8Clamped|Int16|Uint16|Int32|Uint32|Float16|Float32|Float64|BigInt64|BigUint64)Array\]$/;
25652
+ var typedArrayLengths = { __proto__: null };
25653
+ if (!typedArrayLength) {
25654
+ TypedArrays = [
25655
+ typeof Int8Array === "function" && Int8Array,
25656
+ typeof Uint8Array === "function" && Uint8Array,
25657
+ typeof Uint8ClampedArray === "function" && Uint8ClampedArray,
25658
+ typeof Int16Array === "function" && Int16Array,
25659
+ typeof Uint16Array === "function" && Uint16Array,
25660
+ typeof Int32Array === "function" && Int32Array,
25661
+ typeof Uint32Array === "function" && Uint32Array,
25662
+ typeof Float32Array === "function" && Float32Array,
25663
+ typeof Float64Array === "function" && Float64Array
25664
+ ];
25665
+ for (ta = 0;ta < TypedArrays.length; ta++) {
25666
+ TypedArray = TypedArrays[ta];
25667
+ lengthGetter = TypedArray && getterOf(TypedArray.prototype, "length");
25668
+ if (lengthGetter) {
25669
+ typedArrayLengths[toStr(new TypedArray(0))] = lengthGetter;
25670
+ }
25671
+ }
25672
+ }
25673
+ var TypedArrays;
25674
+ var TypedArray;
25675
+ var lengthGetter;
25676
+ var ta;
25537
25677
  function addNumericSeparator(num, str) {
25538
25678
  if (num === Infinity || num === -Infinity || num !== num || num && num > -1000 && num < 1000 || $test.call(/e/, str)) {
25539
25679
  return str;
@@ -25550,6 +25690,7 @@ var require_object_inspect = __commonJS(function(exports, module) {
25550
25690
  return $replace.call(str, sepRegex, "$&_");
25551
25691
  }
25552
25692
  var utilInspect = require_util_inspect();
25693
+ var getStringWidth = require_stringWidth();
25553
25694
  var inspectCustom = utilInspect.custom;
25554
25695
  var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
25555
25696
  var quotes = {
@@ -25562,14 +25703,18 @@ var require_object_inspect = __commonJS(function(exports, module) {
25562
25703
  double: /(["\\])/g,
25563
25704
  single: /(['\\])/g
25564
25705
  };
25565
- module.exports = function inspect_(obj, options, depth, seen) {
25706
+ module.exports = function inspect_(obj, options, depth, seen, breakState) {
25566
25707
  var opts = options || {};
25567
25708
  if (has(opts, "quoteStyle") && !has(quotes, opts.quoteStyle)) {
25568
25709
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
25569
25710
  }
25570
25711
  if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
25571
- throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
25712
+ throw new TypeError('option "maxStringLength", if provided, must be a non-negative integer, Infinity, or `null`');
25713
+ }
25714
+ if (has(opts, "maxCollectionLength") && opts.maxCollectionLength !== null && opts.maxCollectionLength !== Infinity && !(typeof opts.maxCollectionLength === "number" && opts.maxCollectionLength >= 0 && $floor(opts.maxCollectionLength) === opts.maxCollectionLength)) {
25715
+ throw new TypeError('option "maxCollectionLength", if provided, must be a non-negative integer, Infinity, or `null`');
25572
25716
  }
25717
+ var maxCollectionLength = typeof opts.maxCollectionLength === "number" ? opts.maxCollectionLength : Infinity;
25573
25718
  var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
25574
25719
  if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
25575
25720
  throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
@@ -25581,6 +25726,13 @@ var require_object_inspect = __commonJS(function(exports, module) {
25581
25726
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
25582
25727
  }
25583
25728
  var numericSeparator = opts.numericSeparator;
25729
+ if (has(opts, "multilineStrings") && typeof opts.multilineStrings !== "boolean") {
25730
+ throw new TypeError('option "multilineStrings", if provided, must be `true` or `false`');
25731
+ }
25732
+ var hasBreakLength = has(opts, "breakLength");
25733
+ if (hasBreakLength && opts.breakLength !== Infinity && (typeof opts.breakLength !== "number" || opts.breakLength < 0 || parseInt(opts.breakLength, 10) !== opts.breakLength)) {
25734
+ throw new TypeError('option "breakLength", if provided, must be a non-negative integer or `Infinity`');
25735
+ }
25584
25736
  if (typeof obj === "undefined") {
25585
25737
  return "undefined";
25586
25738
  }
@@ -25611,31 +25763,60 @@ var require_object_inspect = __commonJS(function(exports, module) {
25611
25763
  if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
25612
25764
  return isArray(obj) ? "[Array]" : "[Object]";
25613
25765
  }
25614
- var indent = getIndent(opts, depth);
25766
+ var indent = getIndent(hasBreakLength && (typeof opts.indent === "undefined" || opts.indent === null) ? { indent: 2 } : opts, depth);
25767
+ var layout = hasBreakLength ? {
25768
+ breakLength: opts.breakLength,
25769
+ depth,
25770
+ indent,
25771
+ maxCollectionLength,
25772
+ state: breakState || { currentDepth: depth }
25773
+ } : null;
25615
25774
  if (typeof seen === "undefined") {
25616
25775
  seen = [];
25617
25776
  } else if (indexOf(seen, obj) >= 0) {
25618
25777
  return "[Circular]";
25619
25778
  }
25620
25779
  function inspect(value, from, noIndent) {
25780
+ var nextSeen = seen;
25621
25781
  if (from) {
25622
- seen = $arrSlice.call(seen);
25623
- seen.push(from);
25782
+ nextSeen = $arrSlice.call(seen);
25783
+ nextSeen.push(from);
25624
25784
  }
25625
- if (noIndent) {
25785
+ if (noIndent && !layout) {
25626
25786
  var newOpts = {
25627
25787
  depth: opts.depth
25628
25788
  };
25629
25789
  if (has(opts, "quoteStyle")) {
25630
25790
  newOpts.quoteStyle = opts.quoteStyle;
25631
25791
  }
25632
- return inspect_(value, newOpts, depth + 1, seen);
25792
+ if (has(opts, "maxCollectionLength")) {
25793
+ newOpts.maxCollectionLength = opts.maxCollectionLength;
25794
+ }
25795
+ return inspect_(value, newOpts, depth + 1, nextSeen);
25796
+ }
25797
+ return inspect_(value, opts, depth + 1, nextSeen, layout ? layout.state : breakState);
25798
+ }
25799
+ function enter() {
25800
+ if (layout) {
25801
+ var previousDepth = layout.state.currentDepth;
25802
+ layout.state.currentDepth = depth;
25803
+ return previousDepth;
25804
+ }
25805
+ return null;
25806
+ }
25807
+ function leaveIfEmpty(entries, previousDepth) {
25808
+ if (layout && entries.length === 0) {
25809
+ layout.state.currentDepth = previousDepth;
25633
25810
  }
25634
- return inspect_(value, opts, depth + 1, seen);
25635
25811
  }
25636
25812
  if (typeof obj === "function" && !isRegExp(obj)) {
25637
25813
  var name = nameOf(obj);
25814
+ var fnDepth = enter();
25638
25815
  var keys = arrObjKeys(obj, inspect);
25816
+ leaveIfEmpty(keys, fnDepth);
25817
+ if (layout && keys.length > 0) {
25818
+ return breakLines(keys, bracesOf("{", "}", "[Function" + (name ? ": " + name : " (anonymous)") + "]", " "), layout);
25819
+ }
25639
25820
  return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
25640
25821
  }
25641
25822
  if (isSymbol(obj)) {
@@ -25659,20 +25840,29 @@ var require_object_inspect = __commonJS(function(exports, module) {
25659
25840
  if (obj.length === 0) {
25660
25841
  return "[]";
25661
25842
  }
25662
- var xs = arrObjKeys(obj, inspect);
25843
+ enter();
25844
+ var xs = arrObjKeys(obj, inspect, maxCollectionLength);
25845
+ if (layout) {
25846
+ return breakLines(xs, bracesOf("[", "]", "", " "), layout, obj);
25847
+ }
25663
25848
  if (indent && !singleLineValues(xs)) {
25664
25849
  return "[" + indentedJoin(xs, indent) + "]";
25665
25850
  }
25666
25851
  return "[ " + $join.call(xs, ", ") + " ]";
25667
25852
  }
25668
25853
  if (isError(obj)) {
25854
+ var errorDepth = enter();
25669
25855
  var parts = arrObjKeys(obj, inspect);
25670
25856
  if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
25671
- return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
25857
+ parts = $concat.call(["[cause]: " + inspect(obj.cause)], parts);
25672
25858
  }
25859
+ leaveIfEmpty(parts, errorDepth);
25673
25860
  if (parts.length === 0) {
25674
25861
  return "[" + String(obj) + "]";
25675
25862
  }
25863
+ if (layout) {
25864
+ return breakLines(parts, bracesOf("{ [" + String(obj) + "]", "}", "", " "), layout);
25865
+ }
25676
25866
  return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
25677
25867
  }
25678
25868
  if (typeof obj === "object" && customInspect) {
@@ -25684,21 +25874,55 @@ var require_object_inspect = __commonJS(function(exports, module) {
25684
25874
  }
25685
25875
  if (isMap(obj)) {
25686
25876
  var mapParts = [];
25687
- if (mapForEach) {
25877
+ var mapDepth = enter();
25878
+ if (mapIteratorNext && maxCollectionLength < mapSize.call(obj)) {
25879
+ var mapIterator = mapEntries.call(obj);
25880
+ var mapStep;
25881
+ while (mapParts.length < maxCollectionLength && !(mapStep = mapIteratorNext.call(mapIterator)).done) {
25882
+ mapParts.push(inspect(mapStep.value[0], obj, true) + " => " + inspect(mapStep.value[1], obj));
25883
+ }
25884
+ } else if (mapForEach) {
25688
25885
  mapForEach.call(obj, function(value, key) {
25689
- mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
25886
+ if (mapParts.length < maxCollectionLength) {
25887
+ mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
25888
+ }
25690
25889
  });
25691
25890
  }
25692
- return collectionOf("Map", mapSize.call(obj), mapParts, indent);
25891
+ var mapLength = mapSize.call(obj);
25892
+ if (maxCollectionLength !== Infinity && mapLength > mapParts.length) {
25893
+ mapParts.push(moreItems(mapLength - mapParts.length));
25894
+ }
25895
+ leaveIfEmpty(mapParts, mapDepth);
25896
+ if (layout) {
25897
+ return breakLines(mapParts, bracesOf("Map (" + mapLength + ") {", "}", "", ""), layout);
25898
+ }
25899
+ return collectionOf("Map", mapLength, mapParts, indent);
25693
25900
  }
25694
25901
  if (isSet(obj)) {
25695
25902
  var setParts = [];
25696
- if (setForEach) {
25903
+ var setDepth = enter();
25904
+ if (setIteratorNext && maxCollectionLength < setSize.call(obj)) {
25905
+ var setIterator = setValues.call(obj);
25906
+ var setStep;
25907
+ while (setParts.length < maxCollectionLength && !(setStep = setIteratorNext.call(setIterator)).done) {
25908
+ setParts.push(inspect(setStep.value, obj));
25909
+ }
25910
+ } else if (setForEach) {
25697
25911
  setForEach.call(obj, function(value) {
25698
- setParts.push(inspect(value, obj));
25912
+ if (setParts.length < maxCollectionLength) {
25913
+ setParts.push(inspect(value, obj));
25914
+ }
25699
25915
  });
25700
25916
  }
25701
- return collectionOf("Set", setSize.call(obj), setParts, indent);
25917
+ var setLength = setSize.call(obj);
25918
+ if (maxCollectionLength !== Infinity && setLength > setParts.length) {
25919
+ setParts.push(moreItems(setLength - setParts.length));
25920
+ }
25921
+ leaveIfEmpty(setParts, setDepth);
25922
+ if (layout) {
25923
+ return breakLines(setParts, bracesOf("Set (" + setLength + ") {", "}", "", ""), layout);
25924
+ }
25925
+ return collectionOf("Set", setLength, setParts, indent);
25702
25926
  }
25703
25927
  if (isWeakMap(obj)) {
25704
25928
  return weakCollectionOf("WeakMap");
@@ -25728,15 +25952,20 @@ var require_object_inspect = __commonJS(function(exports, module) {
25728
25952
  return "{ [object globalThis] }";
25729
25953
  }
25730
25954
  if (!isDate(obj) && !isRegExp(obj)) {
25731
- var ys = arrObjKeys(obj, inspect);
25955
+ var objectDepth = enter();
25956
+ var ys = arrObjKeys(obj, inspect, maxCollectionLength);
25957
+ leaveIfEmpty(ys, objectDepth);
25732
25958
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
25733
- var protoTag = obj instanceof Object ? "" : "null prototype";
25959
+ var protoTag = (gPO ? gPO(obj) === null : !(obj instanceof Object)) ? "null prototype" : "";
25734
25960
  var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
25735
25961
  var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
25736
25962
  var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
25737
25963
  if (ys.length === 0) {
25738
25964
  return tag + "{}";
25739
25965
  }
25966
+ if (layout) {
25967
+ return breakLines(ys, bracesOf(tag + "{", "}", "", " "), layout);
25968
+ }
25740
25969
  if (indent) {
25741
25970
  return tag + "{" + indentedJoin(ys, indent) + "}";
25742
25971
  }
@@ -25811,6 +26040,26 @@ var require_object_inspect = __commonJS(function(exports, module) {
25811
26040
  function toStr(obj) {
25812
26041
  return objectToString.call(obj);
25813
26042
  }
26043
+ function isTypedArray(obj) {
26044
+ if (typedArrayTag) {
26045
+ return !!typedArrayTag.call(obj);
26046
+ }
26047
+ return !toStringTag && $test.call(typedArrayToString, toStr(obj));
26048
+ }
26049
+ function getTypedArrayLength(obj) {
26050
+ if (typedArrayLength) {
26051
+ return typedArrayLength.call(obj);
26052
+ }
26053
+ var getter = typedArrayLengths[toStr(obj)];
26054
+ return getter ? getter.call(obj) : obj.length;
26055
+ }
26056
+ function getterOf(obj, key) {
26057
+ var descriptor = Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
26058
+ return descriptor && typeof descriptor.get === "function" ? descriptor.get : null;
26059
+ }
26060
+ function moreItems(count) {
26061
+ return "... " + count + " more item" + (count > 1 ? "s" : "");
26062
+ }
25814
26063
  function nameOf(f) {
25815
26064
  if (f.name) {
25816
26065
  return f.name;
@@ -25919,7 +26168,7 @@ var require_object_inspect = __commonJS(function(exports, module) {
25919
26168
  }
25920
26169
  var quoteRE = quoteREs[opts.quoteStyle || "single"];
25921
26170
  quoteRE.lastIndex = 0;
25922
- var s = $replace.call($replace.call(str, quoteRE, "\\$1"), /[\x00-\x1f]/g, lowbyte);
26171
+ var s = $replace.call($replace.call(str, quoteRE, "\\$1"), opts.multilineStrings ? /[\x00-\x09\x0b-\x1f]/g : /[\x00-\x1f]/g, lowbyte);
25923
26172
  return wrapQuotes(s, "single", opts);
25924
26173
  }
25925
26174
  function lowbyte(c) {
@@ -25946,6 +26195,107 @@ var require_object_inspect = __commonJS(function(exports, module) {
25946
26195
  var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
25947
26196
  return type + " (" + size + ") {" + joinedEntries + "}";
25948
26197
  }
26198
+ function isBelowBreakLength(entries, start, breakLength) {
26199
+ if (breakLength === Infinity) {
26200
+ return singleLineValues(entries);
26201
+ }
26202
+ var totalLength = entries.length + start;
26203
+ if (totalLength + entries.length > breakLength) {
26204
+ return false;
26205
+ }
26206
+ for (var i = 0;i < entries.length; i++) {
26207
+ totalLength += entries[i].length;
26208
+ if (totalLength > breakLength) {
26209
+ return false;
26210
+ }
26211
+ }
26212
+ return true;
26213
+ }
26214
+ function padTo(str, width, atStart) {
26215
+ var fill = width > str.length ? $join.call(Array(width - str.length + 1), " ") : "";
26216
+ return atStart ? fill + str : str + fill;
26217
+ }
26218
+ function groupArrayElements(entries, layout, value) {
26219
+ var separatorSpace = 2;
26220
+ var totalLength = 0;
26221
+ var maxLength = 0;
26222
+ var outputLength = entries.length;
26223
+ if (layout.maxCollectionLength < entries.length) {
26224
+ outputLength -= 1;
26225
+ }
26226
+ var dataLen = [];
26227
+ for (var i = 0;i < outputLength; i++) {
26228
+ dataLen[i] = getStringWidth(entries[i]);
26229
+ totalLength += dataLen[i] + separatorSpace;
26230
+ if (maxLength < dataLen[i]) {
26231
+ maxLength = dataLen[i];
26232
+ }
26233
+ }
26234
+ var actualMax = maxLength + separatorSpace;
26235
+ var indentationLvl = layout.indent.prev.length;
26236
+ if (actualMax * 3 + indentationLvl >= layout.breakLength || totalLength / actualMax <= 5 && maxLength > 6) {
26237
+ return entries;
26238
+ }
26239
+ var averageBias = $sqrt(actualMax - totalLength / entries.length);
26240
+ var biasedMax = $max(actualMax - 3 - averageBias, 1);
26241
+ var columns = $min($round($sqrt(2.5 * biasedMax * outputLength) / biasedMax), $floor((layout.breakLength - indentationLvl) / actualMax), 12, 15);
26242
+ if (columns <= 1) {
26243
+ return entries;
26244
+ }
26245
+ var maxLineLength = [];
26246
+ for (var c = 0;c < columns; c++) {
26247
+ var lineMaxLength = 0;
26248
+ for (var j = c;j < entries.length; j += columns) {
26249
+ if (dataLen[j] > lineMaxLength) {
26250
+ lineMaxLength = dataLen[j];
26251
+ }
26252
+ }
26253
+ maxLineLength[c] = lineMaxLength + separatorSpace;
26254
+ }
26255
+ var numeric = true;
26256
+ for (var k = 0;k < entries.length && numeric; k++) {
26257
+ numeric = typeof value[k] === "number" || typeof value[k] === "bigint";
26258
+ }
26259
+ var grouped = [];
26260
+ for (var row = 0;row < outputLength; row += columns) {
26261
+ var max = $min(row + columns, outputLength);
26262
+ var str = "";
26263
+ var col = row;
26264
+ for (;col < max - 1; col++) {
26265
+ str += padTo(entries[col] + ", ", maxLineLength[col - row] + (entries[col].length - dataLen[col]), numeric);
26266
+ }
26267
+ var lastPadding = maxLineLength[col - row] + (entries[col].length - dataLen[col]) - separatorSpace;
26268
+ str += numeric ? padTo(entries[col], lastPadding, true) : entries[col];
26269
+ grouped.push(str);
26270
+ }
26271
+ if (outputLength < entries.length) {
26272
+ grouped.push(entries[outputLength]);
26273
+ }
26274
+ return grouped;
26275
+ }
26276
+ function bracesOf(opening, closing, base, padding) {
26277
+ return [
26278
+ opening,
26279
+ closing,
26280
+ base,
26281
+ padding
26282
+ ];
26283
+ }
26284
+ function breakLines(entries, braces, layout, arrayValue) {
26285
+ var output = arrayValue && entries.length > 6 ? groupArrayElements(entries, layout, arrayValue) : entries;
26286
+ var base = braces[2] ? braces[2] + " " : "";
26287
+ if (layout.state.currentDepth - layout.depth < 3 && output.length === entries.length) {
26288
+ var start = output.length + layout.indent.prev.length + braces[0].length + braces[2].length + 10;
26289
+ if (isBelowBreakLength(output, start, layout.breakLength)) {
26290
+ var joined = $join.call(output, ", ");
26291
+ if (indexOf(joined, `
26292
+ `) < 0) {
26293
+ return base + braces[0] + braces[3] + joined + braces[3] + braces[1];
26294
+ }
26295
+ }
26296
+ }
26297
+ return base + braces[0] + indentedJoin(output, layout.indent) + braces[1];
26298
+ }
25949
26299
  function singleLineValues(xs) {
25950
26300
  for (var i = 0;i < xs.length; i++) {
25951
26301
  if (indexOf(xs[i], `
@@ -25978,14 +26328,27 @@ var require_object_inspect = __commonJS(function(exports, module) {
25978
26328
  return lineJoiner + $join.call(xs, "," + lineJoiner) + `
25979
26329
  ` + indent.prev;
25980
26330
  }
25981
- function arrObjKeys(obj, inspect) {
26331
+ function arrObjKeys(obj, inspect, maxLength) {
25982
26332
  var isArr = isArray(obj);
26333
+ var limit = typeof maxLength === "number" ? maxLength : Infinity;
26334
+ var typedLength = !isArr && limit !== Infinity && isTypedArray(obj) ? getTypedArrayLength(obj) : null;
26335
+ if (typeof typedLength !== "number" || typedLength <= limit) {
26336
+ typedLength = null;
26337
+ }
25983
26338
  var xs = [];
25984
26339
  if (isArr) {
25985
- xs.length = obj.length;
25986
- for (var i = 0;i < obj.length; i++) {
26340
+ xs.length = obj.length < limit ? obj.length : limit;
26341
+ for (var i = 0;i < obj.length && i < limit; i++) {
25987
26342
  xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
25988
26343
  }
26344
+ if (obj.length > limit) {
26345
+ xs.push(moreItems(obj.length - limit));
26346
+ }
26347
+ } else if (typedLength !== null) {
26348
+ for (var t = 0;t < limit; t++) {
26349
+ xs.push(t + ": " + inspect(obj[t], obj));
26350
+ }
26351
+ xs.push(moreItems(typedLength - limit));
25989
26352
  }
25990
26353
  var syms = typeof gOPS === "function" ? gOPS(obj) : [];
25991
26354
  var symMap;
@@ -26002,6 +26365,9 @@ var require_object_inspect = __commonJS(function(exports, module) {
26002
26365
  if (isArr && String(Number(key)) === key && key < obj.length) {
26003
26366
  continue;
26004
26367
  }
26368
+ if (typedLength !== null && String(Number(key)) === key && key < typedLength) {
26369
+ continue;
26370
+ }
26005
26371
  if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
26006
26372
  continue;
26007
26373
  } else if ($test.call(/[^\w$]/, key)) {
@@ -43500,13 +43866,42 @@ var require_utils4 = __commonJS(function(exports, module) {
43500
43866
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
43501
43867
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
43502
43868
  var isPort = RegExp.prototype.test.bind(/^\d*$/u);
43503
- var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
43504
43869
  var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
43505
43870
  var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
43506
43871
  var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
43507
43872
  var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
43508
43873
  var isRegNameCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=]$/u);
43509
43874
  var isLiteralRegName = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=]*$/u);
43875
+ var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
43876
+ var isLiteralPath = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]*$/u);
43877
+ var isLiteralQueryFragment = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]*$/u);
43878
+ var isLiteralUserinfo = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]*$/u);
43879
+ var HEX_DIGIT_TABLE = new Uint8Array(128);
43880
+ var HEX_DIGIT_VALUE = new Uint8Array(128);
43881
+ var HEX_UPPER_CHARS = new Array(128);
43882
+ var UNRESERVED_TABLE = new Uint8Array(128);
43883
+ var ZONE_TABLE = new Uint8Array(128);
43884
+ var PATH_TABLE = new Uint8Array(128);
43885
+ var QUERY_FRAGMENT_TABLE = new Uint8Array(128);
43886
+ var USERINFO_TABLE = new Uint8Array(128);
43887
+ var REG_NAME_TABLE = new Uint8Array(128);
43888
+ {
43889
+ const HEX = /^[0-9A-Fa-f]$/;
43890
+ for (let i = 0;i < 128; i++) {
43891
+ const ch = String.fromCharCode(i);
43892
+ if (HEX.test(ch)) {
43893
+ HEX_DIGIT_TABLE[i] = 1;
43894
+ HEX_DIGIT_VALUE[i] = parseInt(ch, 16);
43895
+ HEX_UPPER_CHARS[i] = ch.toUpperCase();
43896
+ }
43897
+ UNRESERVED_TABLE[i] = isUnreserved(ch) ? 1 : 0;
43898
+ ZONE_TABLE[i] = isZoneCharacter(ch) ? 1 : 0;
43899
+ PATH_TABLE[i] = isPathCharacter(ch) ? 1 : 0;
43900
+ QUERY_FRAGMENT_TABLE[i] = isQueryFragmentCharacter(ch) ? 1 : 0;
43901
+ USERINFO_TABLE[i] = isUserinfoCharacter(ch) ? 1 : 0;
43902
+ REG_NAME_TABLE[i] = isRegNameCharacter(ch) ? 1 : 0;
43903
+ }
43904
+ }
43510
43905
  function stringArrayToHexStripped(input) {
43511
43906
  let acc = "";
43512
43907
  let code = 0;
@@ -43533,22 +43928,33 @@ var require_utils4 = __commonJS(function(exports, module) {
43533
43928
  }
43534
43929
  var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
43535
43930
  var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
43536
- var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
43537
43931
  var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
43538
43932
  var nonSimpleDomainChars = RegExp.prototype.test.bind(/[^\d!"$&'()*+,\-.;=_`a-z{}~]/u);
43539
- var numericLastLabel = RegExp.prototype.test.bind(/(?:^|\.)\d+$/u);
43933
+ var numericLastLabel = RegExp.prototype.test.bind(/(?:^|\.)(?:\d+|0x[\da-f]*)\.?$/iu);
43934
+ var isAscii = RegExp.prototype.test.bind(/^[\u0020-\u007E]*$/u);
43540
43935
  function nonSimpleMailtoDomain(domain) {
43541
43936
  return nonSimpleDomainChars(domain) || numericLastLabel(domain);
43542
43937
  }
43938
+ function fastLowerAsciiHost(host) {
43939
+ if (host.length === 0 || numericLastLabel(host) || !isAscii(host))
43940
+ return;
43941
+ const hostLower = host.toLowerCase();
43942
+ return nonSimpleDomainChars(hostLower) ? undefined : hostLower;
43943
+ }
43543
43944
  function isZoneIdentifier(zone) {
43544
43945
  if (zone.length === 0)
43545
43946
  return false;
43546
43947
  for (let i = 0;i < zone.length; i++) {
43547
- if (isZoneCharacter(zone[i]))
43548
- continue;
43549
- if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
43550
- i += 2;
43948
+ const code = zone.charCodeAt(i);
43949
+ if (code < 128 && ZONE_TABLE[code] === 1)
43551
43950
  continue;
43951
+ if (code === 37 && i + 2 < zone.length) {
43952
+ const h1 = zone.charCodeAt(i + 1);
43953
+ const h2 = zone.charCodeAt(i + 2);
43954
+ if (h1 < 128 && h2 < 128 && HEX_DIGIT_TABLE[h1] === 1 && HEX_DIGIT_TABLE[h2] === 1) {
43955
+ i += 2;
43956
+ continue;
43957
+ }
43552
43958
  }
43553
43959
  return false;
43554
43960
  }
@@ -43662,6 +44068,9 @@ var require_utils4 = __commonJS(function(exports, module) {
43662
44068
  return ind;
43663
44069
  }
43664
44070
  function removeDotSegments(path) {
44071
+ if (path.indexOf(".") === -1) {
44072
+ return path;
44073
+ }
43665
44074
  let input = path;
43666
44075
  const output = [];
43667
44076
  let nextSlash = -1;
@@ -43773,7 +44182,7 @@ var require_utils4 = __commonJS(function(exports, module) {
43773
44182
  if (!isIP) {
43774
44183
  if (isLiteralRegName(host))
43775
44184
  return host;
43776
- return encodeComponent(host, isRegNameCharacter, allowNonAscii);
44185
+ return encodeComponent(host, REG_NAME_TABLE, allowNonAscii);
43777
44186
  }
43778
44187
  IP_HOST_DELIM_RE.lastIndex = 0;
43779
44188
  return host.replace(IP_HOST_DELIM_RE, (ch) => IP_HOST_DELIMS[ch]);
@@ -43784,16 +44193,20 @@ var require_utils4 = __commonJS(function(exports, module) {
43784
44193
  }
43785
44194
  let output = "";
43786
44195
  for (let i = 0;i < input.length; i++) {
43787
- if (input[i] === "%" && i + 2 < input.length) {
43788
- const hex = input.slice(i + 1, i + 3);
43789
- if (isHexPair(hex)) {
43790
- const normalizedHex = hex.toUpperCase();
43791
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
43792
- if (decodeUnreserved && isUnreserved(decoded)) {
43793
- output += decoded;
43794
- } else {
43795
- output += "%" + normalizedHex;
44196
+ const code = input.charCodeAt(i);
44197
+ if (code === 37 && i + 2 < input.length) {
44198
+ const h1 = input.charCodeAt(i + 1);
44199
+ const h2 = input.charCodeAt(i + 2);
44200
+ if (h1 < 128 && h2 < 128 && HEX_DIGIT_TABLE[h1] === 1 && HEX_DIGIT_TABLE[h2] === 1) {
44201
+ if (decodeUnreserved) {
44202
+ const value = HEX_DIGIT_VALUE[h1] * 16 + HEX_DIGIT_VALUE[h2];
44203
+ if (value < 128 && UNRESERVED_TABLE[value] === 1) {
44204
+ output += String.fromCharCode(value);
44205
+ i += 2;
44206
+ continue;
44207
+ }
43796
44208
  }
44209
+ output += "%" + HEX_UPPER_CHARS[h1] + HEX_UPPER_CHARS[h2];
43797
44210
  i += 2;
43798
44211
  continue;
43799
44212
  }
@@ -43822,185 +44235,197 @@ var require_utils4 = __commonJS(function(exports, module) {
43822
44235
  return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
43823
44236
  }
43824
44237
  function normalizePathEncoding(input) {
44238
+ if (isLiteralPath(input)) {
44239
+ return input;
44240
+ }
43825
44241
  let output = "";
43826
44242
  for (let i = 0;i < input.length; i++) {
43827
- const ch = input[i];
43828
- if (ch === "%" && i + 2 < input.length) {
43829
- const hex = input.slice(i + 1, i + 3);
43830
- if (isHexPair(hex)) {
43831
- const normalizedHex = hex.toUpperCase();
43832
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
43833
- if (decoded !== "." && isUnreserved(decoded)) {
43834
- output += decoded;
44243
+ const code = input.charCodeAt(i);
44244
+ if (code === 37 && i + 2 < input.length) {
44245
+ const h1 = input.charCodeAt(i + 1);
44246
+ const h2 = input.charCodeAt(i + 2);
44247
+ if (h1 < 128 && h2 < 128 && HEX_DIGIT_TABLE[h1] === 1 && HEX_DIGIT_TABLE[h2] === 1) {
44248
+ const value = HEX_DIGIT_VALUE[h1] * 16 + HEX_DIGIT_VALUE[h2];
44249
+ if (value !== 46 && value < 128 && UNRESERVED_TABLE[value] === 1) {
44250
+ output += String.fromCharCode(value);
43835
44251
  } else {
43836
- output += "%" + normalizedHex;
44252
+ output += "%" + HEX_UPPER_CHARS[h1] + HEX_UPPER_CHARS[h2];
43837
44253
  }
43838
44254
  i += 2;
43839
44255
  continue;
43840
44256
  }
43841
44257
  }
43842
- if (isPathCharacter(ch)) {
43843
- output += ch;
43844
- } else {
43845
- const code = input.charCodeAt(i);
43846
- if (code < 128) {
43847
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
43848
- } else if (code < 55296 || code > 57343) {
43849
- output += percentEncodeNonAscii(code);
43850
- } else if (code <= 56319 && i + 1 < input.length) {
43851
- const low = input.charCodeAt(i + 1);
43852
- if (low >= 56320 && low <= 57343) {
43853
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
43854
- i++;
43855
- } else {
43856
- output += percentEncodeNonAscii(65533);
43857
- }
44258
+ if (code < 128) {
44259
+ if (PATH_TABLE[code] === 1) {
44260
+ output += input[i];
44261
+ } else {
44262
+ output += isEscapeSafe(code) ? input[i] : BYTE_HEX[code];
44263
+ }
44264
+ } else if (code < 55296 || code > 57343) {
44265
+ output += percentEncodeNonAscii(code);
44266
+ } else if (code <= 56319 && i + 1 < input.length) {
44267
+ const low = input.charCodeAt(i + 1);
44268
+ if (low >= 56320 && low <= 57343) {
44269
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
44270
+ i++;
43858
44271
  } else {
43859
44272
  output += percentEncodeNonAscii(65533);
43860
44273
  }
44274
+ } else {
44275
+ output += percentEncodeNonAscii(65533);
43861
44276
  }
43862
44277
  }
43863
44278
  return output;
43864
44279
  }
43865
44280
  function serializePathEncoding(input, pathNoScheme = false) {
44281
+ if (!pathNoScheme && isLiteralPath(input)) {
44282
+ return input;
44283
+ }
43866
44284
  let output = "";
43867
44285
  let firstSegment = pathNoScheme && input[0] !== "/";
43868
44286
  for (let i = 0;i < input.length; i++) {
43869
- const ch = input[i];
43870
- if (ch === "%" && i + 2 < input.length) {
43871
- const hex = input.slice(i + 1, i + 3);
43872
- if (isHexPair(hex)) {
43873
- output += "%" + hex.toUpperCase();
44287
+ const code = input.charCodeAt(i);
44288
+ if (code === 37 && i + 2 < input.length) {
44289
+ const h1 = input.charCodeAt(i + 1);
44290
+ const h2 = input.charCodeAt(i + 2);
44291
+ if (h1 < 128 && h2 < 128 && HEX_DIGIT_TABLE[h1] === 1 && HEX_DIGIT_TABLE[h2] === 1) {
44292
+ output += "%" + HEX_UPPER_CHARS[h1] + HEX_UPPER_CHARS[h2];
43874
44293
  i += 2;
43875
44294
  continue;
43876
44295
  }
43877
44296
  }
43878
- if (ch === "/") {
44297
+ if (code === 47)
43879
44298
  firstSegment = false;
43880
- }
43881
- if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
43882
- output += ch;
43883
- } else {
43884
- const code = input.charCodeAt(i);
43885
- if (code < 128) {
44299
+ if (code < 128) {
44300
+ if (PATH_TABLE[code] === 1 && (code !== 58 || !firstSegment)) {
44301
+ output += input[i];
44302
+ } else {
43886
44303
  output += BYTE_HEX[code];
43887
- } else if (code < 55296 || code > 57343) {
43888
- output += percentEncodeNonAscii(code);
43889
- } else if (code <= 56319 && i + 1 < input.length) {
43890
- const low = input.charCodeAt(i + 1);
43891
- if (low >= 56320 && low <= 57343) {
43892
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
43893
- i++;
43894
- } else {
43895
- output += percentEncodeNonAscii(65533);
43896
- }
44304
+ }
44305
+ } else if (code < 55296 || code > 57343) {
44306
+ output += percentEncodeNonAscii(code);
44307
+ } else if (code <= 56319 && i + 1 < input.length) {
44308
+ const low = input.charCodeAt(i + 1);
44309
+ if (low >= 56320 && low <= 57343) {
44310
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
44311
+ i++;
43897
44312
  } else {
43898
44313
  output += percentEncodeNonAscii(65533);
43899
44314
  }
44315
+ } else {
44316
+ output += percentEncodeNonAscii(65533);
43900
44317
  }
43901
44318
  }
43902
44319
  return output;
43903
44320
  }
43904
44321
  function normalizeQueryFragmentEncoding(input) {
44322
+ if (isLiteralQueryFragment(input)) {
44323
+ return input;
44324
+ }
43905
44325
  let output = "";
43906
44326
  for (let i = 0;i < input.length; i++) {
43907
- const ch = input[i];
43908
- if (ch === "%" && i + 2 < input.length) {
43909
- const hex = input.slice(i + 1, i + 3);
43910
- if (isHexPair(hex)) {
43911
- const normalizedHex = hex.toUpperCase();
43912
- const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
43913
- if (isUnreserved(decoded)) {
43914
- output += decoded;
44327
+ const code = input.charCodeAt(i);
44328
+ if (code === 37 && i + 2 < input.length) {
44329
+ const h1 = input.charCodeAt(i + 1);
44330
+ const h2 = input.charCodeAt(i + 2);
44331
+ if (h1 < 128 && h2 < 128 && HEX_DIGIT_TABLE[h1] === 1 && HEX_DIGIT_TABLE[h2] === 1) {
44332
+ const value = HEX_DIGIT_VALUE[h1] * 16 + HEX_DIGIT_VALUE[h2];
44333
+ if (value < 128 && UNRESERVED_TABLE[value] === 1) {
44334
+ output += String.fromCharCode(value);
43915
44335
  } else {
43916
- output += "%" + normalizedHex;
44336
+ output += "%" + HEX_UPPER_CHARS[h1] + HEX_UPPER_CHARS[h2];
43917
44337
  }
43918
44338
  i += 2;
43919
44339
  continue;
43920
44340
  }
43921
44341
  }
43922
- if (isQueryFragmentCharacter(ch)) {
43923
- output += ch;
43924
- } else {
43925
- const code = input.charCodeAt(i);
43926
- if (code < 128) {
43927
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
43928
- } else if (code < 55296 || code > 57343) {
43929
- output += percentEncodeNonAscii(code);
43930
- } else if (code <= 56319 && i + 1 < input.length) {
43931
- const low = input.charCodeAt(i + 1);
43932
- if (low >= 56320 && low <= 57343) {
43933
- output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
43934
- i++;
43935
- } else {
43936
- output += percentEncodeNonAscii(65533);
43937
- }
44342
+ if (code < 128) {
44343
+ if (QUERY_FRAGMENT_TABLE[code] === 1) {
44344
+ output += input[i];
44345
+ } else {
44346
+ output += isEscapeSafe(code) ? input[i] : BYTE_HEX[code];
44347
+ }
44348
+ } else if (code < 55296 || code > 57343) {
44349
+ output += percentEncodeNonAscii(code);
44350
+ } else if (code <= 56319 && i + 1 < input.length) {
44351
+ const low = input.charCodeAt(i + 1);
44352
+ if (low >= 56320 && low <= 57343) {
44353
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
44354
+ i++;
43938
44355
  } else {
43939
44356
  output += percentEncodeNonAscii(65533);
43940
44357
  }
44358
+ } else {
44359
+ output += percentEncodeNonAscii(65533);
43941
44360
  }
43942
44361
  }
43943
44362
  return output;
43944
44363
  }
43945
- function encodeComponent(input, isAllowed, allowNonAscii = false) {
44364
+ function encodeComponent(input, table, allowNonAscii = false) {
43946
44365
  let output = "";
43947
44366
  for (let i = 0;i < input.length; i++) {
43948
- const ch = input[i];
43949
- if (ch === "%" && i + 2 < input.length) {
43950
- const hex = input.slice(i + 1, i + 3);
43951
- if (isHexPair(hex)) {
43952
- output += "%" + hex.toUpperCase();
44367
+ const code = input.charCodeAt(i);
44368
+ if (code === 37 && i + 2 < input.length) {
44369
+ const h1 = input.charCodeAt(i + 1);
44370
+ const h2 = input.charCodeAt(i + 2);
44371
+ if (h1 < 128 && h2 < 128 && HEX_DIGIT_TABLE[h1] === 1 && HEX_DIGIT_TABLE[h2] === 1) {
44372
+ output += "%" + HEX_UPPER_CHARS[h1] + HEX_UPPER_CHARS[h2];
43953
44373
  i += 2;
43954
44374
  continue;
43955
44375
  }
43956
44376
  }
43957
- if (isAllowed(ch)) {
43958
- output += ch;
43959
- } else {
43960
- const code = input.charCodeAt(i);
43961
- if (code < 128) {
44377
+ if (code < 128) {
44378
+ if (table[code] === 1) {
44379
+ output += input[i];
44380
+ } else {
43962
44381
  output += BYTE_HEX[code];
43963
- } else if (code < 55296 || code > 57343) {
43964
- output += allowNonAscii ? ch : percentEncodeNonAscii(code);
43965
- } else if (code <= 56319 && i + 1 < input.length) {
43966
- const low = input.charCodeAt(i + 1);
43967
- if (low >= 56320 && low <= 57343) {
43968
- output += allowNonAscii ? ch + input[i + 1] : percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
43969
- i++;
43970
- } else {
43971
- output += allowNonAscii ? "�" : percentEncodeNonAscii(65533);
43972
- }
44382
+ }
44383
+ } else if (code < 55296 || code > 57343) {
44384
+ output += allowNonAscii ? input[i] : percentEncodeNonAscii(code);
44385
+ } else if (code <= 56319 && i + 1 < input.length) {
44386
+ const low = input.charCodeAt(i + 1);
44387
+ if (low >= 56320 && low <= 57343) {
44388
+ output += allowNonAscii ? input[i] + input[i + 1] : percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
44389
+ i++;
43973
44390
  } else {
43974
44391
  output += allowNonAscii ? "�" : percentEncodeNonAscii(65533);
43975
44392
  }
44393
+ } else {
44394
+ output += allowNonAscii ? "�" : percentEncodeNonAscii(65533);
43976
44395
  }
43977
44396
  }
43978
44397
  return output;
43979
44398
  }
43980
44399
  function encodeUserinfo(input) {
43981
- return encodeComponent(input, isUserinfoCharacter);
44400
+ if (isLiteralUserinfo(input))
44401
+ return input;
44402
+ return encodeComponent(input, USERINFO_TABLE);
43982
44403
  }
43983
44404
  function encodeQuery(input) {
43984
- return encodeComponent(input, isQueryFragmentCharacter);
44405
+ if (isLiteralQueryFragment(input))
44406
+ return input;
44407
+ return encodeComponent(input, QUERY_FRAGMENT_TABLE);
43985
44408
  }
43986
44409
  function encodeFragment(input) {
43987
- return encodeComponent(input, isQueryFragmentCharacter);
44410
+ if (isLiteralQueryFragment(input))
44411
+ return input;
44412
+ return encodeComponent(input, QUERY_FRAGMENT_TABLE);
43988
44413
  }
43989
44414
  function escapePreservingEscapes(input) {
43990
44415
  let output = "";
43991
44416
  for (let i = 0;i < input.length; i++) {
43992
- const ch = input[i];
43993
- if (ch === "%" && i + 2 < input.length) {
43994
- const hex = input.slice(i + 1, i + 3);
43995
- if (isHexPair(hex)) {
43996
- output += "%" + hex.toUpperCase();
44417
+ const code = input.charCodeAt(i);
44418
+ if (code === 37 && i + 2 < input.length) {
44419
+ const h1 = input.charCodeAt(i + 1);
44420
+ const h2 = input.charCodeAt(i + 2);
44421
+ if (h1 < 128 && h2 < 128 && HEX_DIGIT_TABLE[h1] === 1 && HEX_DIGIT_TABLE[h2] === 1) {
44422
+ output += "%" + HEX_UPPER_CHARS[h1] + HEX_UPPER_CHARS[h2];
43997
44423
  i += 2;
43998
44424
  continue;
43999
44425
  }
44000
44426
  }
44001
- const code = input.charCodeAt(i);
44002
44427
  if (code < 128) {
44003
- output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
44428
+ output += isEscapeSafe(code) ? input[i] : BYTE_HEX[code];
44004
44429
  } else if (code < 55296 || code > 57343) {
44005
44430
  output += percentEncodeNonAscii(code);
44006
44431
  } else if (code <= 56319 && i + 1 < input.length) {
@@ -44075,6 +44500,7 @@ var require_utils4 = __commonJS(function(exports, module) {
44075
44500
  percentEncodeNonAscii,
44076
44501
  nonSimpleDomain,
44077
44502
  nonSimpleMailtoDomain,
44503
+ fastLowerAsciiHost,
44078
44504
  recomposeAuthority,
44079
44505
  encodeHost,
44080
44506
  normalizePercentEncoding,
@@ -44138,6 +44564,9 @@ var require_schemes = __commonJS(function(exports, module) {
44138
44564
  return component;
44139
44565
  }
44140
44566
  function wsParse(wsComponent) {
44567
+ if (!wsComponent.host) {
44568
+ wsComponent.error = wsComponent.error || "WebSocket URIs must have a host.";
44569
+ }
44141
44570
  wsComponent.secure = wsIsSecure(wsComponent);
44142
44571
  wsComponent.resourceName = (wsComponent.path || "/") + (wsComponent.query ? "?" + wsComponent.query : "");
44143
44572
  wsComponent.path = undefined;
@@ -44522,7 +44951,7 @@ var require_schemes = __commonJS(function(exports, module) {
44522
44951
 
44523
44952
  // node_modules/fast-uri/index.js
44524
44953
  var require_fast_uri = __commonJS(function(exports, module) {
44525
- var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, encodeHost, isIPv4, nonSimpleDomain } = require_utils4();
44954
+ var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, encodeHost, isIPv4, nonSimpleDomain, fastLowerAsciiHost } = require_utils4();
44526
44955
  var { SCHEMES, getSchemeHandler } = require_schemes();
44527
44956
  var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
44528
44957
  var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
@@ -44569,8 +44998,13 @@ var require_fast_uri = __commonJS(function(exports, module) {
44569
44998
  const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
44570
44999
  const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
44571
45000
  const resolvedHost = resolved.host;
44572
- if ((resolved.scheme === "http" || resolved.scheme === "https") && !resolvedHost) {
44573
- throw new Error("HTTP URIs must have a host.");
45001
+ if (!resolvedHost) {
45002
+ if (resolved.scheme === "http" || resolved.scheme === "https") {
45003
+ throw new Error("HTTP URIs must have a host.");
45004
+ }
45005
+ if (resolved.scheme === "ws" || resolved.scheme === "wss") {
45006
+ throw new Error("WebSocket URIs must have a host.");
45007
+ }
44574
45008
  }
44575
45009
  const resolvedHostIsIP = resolvedHost !== undefined && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
44576
45010
  if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
@@ -44649,6 +45083,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
44649
45083
  return target;
44650
45084
  }
44651
45085
  function equal(uriA, uriB, options) {
45086
+ if (uriA === uriB) {
45087
+ return normalizeComparableURI(uriA, options) !== undefined;
45088
+ }
44652
45089
  const normalizedA = normalizeComparableURI(uriA, options);
44653
45090
  const normalizedB = normalizeComparableURI(uriB, options);
44654
45091
  return normalizedA !== undefined && normalizedB !== undefined && normalizedA === normalizedB;
@@ -44677,8 +45114,10 @@ var require_fast_uri = __commonJS(function(exports, module) {
44677
45114
  };
44678
45115
  const options = Object.assign({}, opts);
44679
45116
  const uriTokens = [];
45117
+ let validatedScheme;
44680
45118
  if (component.scheme) {
44681
45119
  component.scheme = validateScheme(component.scheme);
45120
+ validatedScheme = component.scheme;
44682
45121
  }
44683
45122
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
44684
45123
  if (schemeHandler && schemeHandler.serialize)
@@ -44694,7 +45133,9 @@ var require_fast_uri = __commonJS(function(exports, module) {
44694
45133
  }
44695
45134
  }
44696
45135
  if (options.reference !== "suffix" && component.scheme) {
44697
- component.scheme = validateScheme(component.scheme);
45136
+ if (component.scheme !== validatedScheme) {
45137
+ component.scheme = validateScheme(component.scheme);
45138
+ }
44698
45139
  uriTokens.push(component.scheme, ":");
44699
45140
  }
44700
45141
  const allowNonAsciiHost = options.unicodeSupport === true || Boolean(schemeHandler && schemeHandler.unicodeSupport);
@@ -44767,6 +45208,11 @@ var require_fast_uri = __commonJS(function(exports, module) {
44767
45208
  return true;
44768
45209
  }
44769
45210
  if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && !bracketedIPLiteral && nonSimpleDomain(parsed.host)) {
45211
+ const fastHost = fastLowerAsciiHost(parsed.host);
45212
+ if (fastHost !== undefined) {
45213
+ parsed.host = fastHost;
45214
+ return false;
45215
+ }
44770
45216
  let url;
44771
45217
  try {
44772
45218
  url = new URL("http://" + parsed.host);
@@ -54771,9 +55217,9 @@ var init_config = __esm(() => {
54771
55217
  SDK_METADATA = {
54772
55218
  language: "typescript",
54773
55219
  openapiDocVersion: "1.0.0",
54774
- sdkVersion: "0.4.28",
55220
+ sdkVersion: "0.4.30",
54775
55221
  genVersion: "2.948.4",
54776
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.28 2.948.4 1.0.0 @lightsage/mcp"
55222
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.30 2.948.4 1.0.0 @lightsage/mcp"
54777
55223
  };
54778
55224
  });
54779
55225
 
@@ -58720,95 +59166,100 @@ Returns reusable environments without exposing secret values.`,
58720
59166
  };
58721
59167
  });
58722
59168
 
58723
- // src/models/publicevalrunprogress.ts
58724
- var PublicEvalRunProgress$zodSchema;
58725
- var init_publicevalrunprogress = __esm(() => {
59169
+ // src/models/v2evalresultsfailedcheck.ts
59170
+ var V2EvalResultsFailedCheck$zodSchema;
59171
+ var init_v2evalresultsfailedcheck = __esm(() => {
58726
59172
  init_zod();
58727
- PublicEvalRunProgress$zodSchema = object({
58728
- cancelled: int().default(0),
58729
- completed: int().default(0),
58730
- failed: int().default(0),
58731
- interrupted: int().default(0).describe("Deprecated compatibility alias for `retrying`; use `retrying`."),
58732
- percent: number2().default(0).describe("The percentage of child jobs in a final state (`completed`, `failed`, or `cancelled`). It can reach `100` while the parent job is still summarizing, so use `status` to detect completion."),
58733
- queued: int().default(0),
58734
- retrying: int().default(0).describe("Recoverable child jobs waiting to be retried. These remain active and are excluded from `percent`."),
58735
- running: int().default(0),
58736
- total: int().default(0)
59173
+ V2EvalResultsFailedCheck$zodSchema = object({
59174
+ deductions: array(string2()).optional().describe("What the judge took points off for."),
59175
+ details: string2().nullable().optional().describe("The judge's reason."),
59176
+ label: string2().nullable().optional(),
59177
+ name: string2().describe("The judge's check.")
58737
59178
  });
58738
59179
  });
58739
59180
 
58740
- // src/models/v2evalrun.ts
58741
- var V2EvalRun$zodSchema;
58742
- var init_v2evalrun = __esm(() => {
59181
+ // src/models/v2evalresultslistitem.ts
59182
+ var Result$zodSchema, V2EvalResultsListItem$zodSchema;
59183
+ var init_v2evalresultslistitem = __esm(() => {
58743
59184
  init_zod();
58744
- init_publicevalrunprogress();
58745
- V2EvalRun$zodSchema = object({
58746
- agent: array(string2()).optional().describe("Runnable agents selected for this simulation."),
58747
- attempt_count: int().default(1).describe("Total concrete attempts after all fan-out dimensions."),
58748
- completed_at: string2().nullable().optional(),
58749
- configuration_id: string2().nullable().optional(),
58750
- created_at: string2().nullable().optional(),
58751
- dispatch_id: string2().nullable().optional(),
58752
- error: string2().nullable().optional(),
58753
- estimated_cost: number2().nullable().optional(),
58754
- eval_id: string2().nullable().optional().describe("Saved eval definition ID, including one created by a direct run."),
58755
- eval_name: string2().nullable().optional().describe("Display name captured for the eval when the run was created."),
58756
- id: string2().describe("Run ID to use when polling eval-run status."),
58757
- job_id: string2().describe("Alias of `id` for the durable parent job."),
58758
- persona: string2().nullable().optional().describe("Perspective applied to every attempt in this simulation."),
58759
- progress: PublicEvalRunProgress$zodSchema.optional(),
58760
- prompt_count: int().default(1).describe("Number of prompts included in the simulation."),
58761
- runs: int().default(1).describe("Independent attempts requested for every prompt-agent pair."),
58762
- stage: string2().nullable().optional(),
58763
- started_at: string2().nullable().optional(),
58764
- status: string2().describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.")
59185
+ init_v2evalresultsfailedcheck();
59186
+ Result$zodSchema = _enum([
59187
+ "passed",
59188
+ "failed",
59189
+ "errored"
59190
+ ]).describe("`passed`, `failed` (graded and did not pass) or `errored` (never graded; see `error`).");
59191
+ V2EvalResultsListItem$zodSchema = object({
59192
+ agent: string2().describe("Agent ID (`harness:model`)."),
59193
+ created_at: string2(),
59194
+ error: string2().nullable().optional().describe("Why an errored attempt never ran."),
59195
+ eval_id: string2(),
59196
+ eval_name: string2(),
59197
+ failed_checks: array(V2EvalResultsFailedCheck$zodSchema).optional().describe("The judge's checks this attempt failed, with the reasons."),
59198
+ id: string2().describe("Result ID: one attempt by one agent."),
59199
+ result: Result$zodSchema.describe("`passed`, `failed` (graded and did not pass) or `errored` (never graded; see `error`)."),
59200
+ run_id: string2().nullable().optional().describe("The eval run the result belongs to. Pass it to `GET /v2/eval-runs/{run_id}/trace` for the agent's step-by-step log. Null for a result with no run on record."),
59201
+ time_ms: int().nullable().optional().describe("Agent time, in milliseconds."),
59202
+ tool_calls: int().nullable().optional()
58765
59203
  });
58766
59204
  });
58767
59205
 
58768
- // src/models/v2evalrunsresponse.ts
58769
- var V2EvalRunsResponse$zodSchema;
58770
- var init_v2evalrunsresponse = __esm(() => {
59206
+ // src/models/v2evalresultslistresponse.ts
59207
+ var V2EvalResultsListResponse$zodSchema;
59208
+ var init_v2evalresultslistresponse = __esm(() => {
58771
59209
  init_zod();
58772
- init_v2evalrun();
58773
- V2EvalRunsResponse$zodSchema = object({
58774
- count: int(),
58775
- data: array(V2EvalRun$zodSchema).optional(),
58776
- limit: int(),
58777
- offset: int()
59210
+ init_v2evalresultslistitem();
59211
+ V2EvalResultsListResponse$zodSchema = object({
59212
+ count: int().describe("The number of items in `data`."),
59213
+ data: array(V2EvalResultsListItem$zodSchema).optional(),
59214
+ has_more: boolean2().describe("Whether more results match."),
59215
+ next_cursor: string2().nullable().optional().describe("Pass as `cursor` to get the next page.")
58778
59216
  });
58779
59217
  });
58780
59218
 
58781
- // src/models/v2evalrunslistop.ts
58782
- var V2EvalRunsListRequest$zodSchema, V2EvalRunsListResponse$zodSchema;
58783
- var init_v2evalrunslistop = __esm(() => {
59219
+ // src/models/v2evalresultslistop.ts
59220
+ var V2EvalResultsListResult$zodSchema, V2EvalResultsListRequest$zodSchema, V2EvalResultsListResponseResponse$zodSchema;
59221
+ var init_v2evalresultslistop = __esm(() => {
58784
59222
  init_zod();
58785
59223
  init_httpvalidationerror();
58786
- init_v2evalrunsresponse();
58787
- V2EvalRunsListRequest$zodSchema = object({
58788
- limit: int().default(25),
58789
- offset: int().default(0)
58790
- });
58791
- V2EvalRunsListResponse$zodSchema = union([
58792
- V2EvalRunsResponse$zodSchema,
59224
+ init_v2evalresultslistresponse();
59225
+ V2EvalResultsListResult$zodSchema = _enum([
59226
+ "passed",
59227
+ "failed",
59228
+ "errored"
59229
+ ]).describe("`passed`, `failed` (graded and did not pass) or `errored` (never graded).");
59230
+ V2EvalResultsListRequest$zodSchema = object({
59231
+ agent: string2().describe("Only this agent ID (`harness:model`), as `GET /v2/eval-results/summary` names it.").optional(),
59232
+ cursor: string2().describe("`next_cursor` from the previous page.").optional(),
59233
+ days: int().default(30).describe("Days up to today (UTC) to cover."),
59234
+ eval_id: string2().describe("Only this eval.").optional(),
59235
+ limit: int().default(50).describe("Results per page."),
59236
+ result: V2EvalResultsListResult$zodSchema.optional().describe("`passed`, `failed` (graded and did not pass) or `errored` (never graded).")
59237
+ });
59238
+ V2EvalResultsListResponseResponse$zodSchema = union([
59239
+ V2EvalResultsListResponse$zodSchema,
58793
59240
  HTTPValidationError$zodSchema
58794
59241
  ]);
58795
59242
  });
58796
59243
 
58797
- // src/funcs/evalRunsList.ts
58798
- function evalRunsList(client$, request, options) {
59244
+ // src/funcs/evalResultsList.ts
59245
+ function evalResultsList(client$, request, options) {
58799
59246
  return new APIPromise($do18(client$, request, options));
58800
59247
  }
58801
59248
  async function $do18(client$, request, options) {
58802
- const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
59249
+ const parsed$ = safeParse4(request, (value$) => V2EvalResultsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
58803
59250
  if (!parsed$.ok) {
58804
59251
  return [parsed$, { status: "invalid" }];
58805
59252
  }
58806
59253
  const payload$ = parsed$.value;
58807
59254
  const body$ = null;
58808
- const path$ = pathToFunc("/v2/eval-runs")();
59255
+ const path$ = pathToFunc("/v2/eval-results")();
58809
59256
  const query$ = encodeFormQuery({
59257
+ agent: payload$?.agent,
59258
+ cursor: payload$?.cursor,
59259
+ days: payload$?.days,
59260
+ eval_id: payload$?.eval_id,
58810
59261
  limit: payload$?.limit,
58811
- offset: payload$?.offset
59262
+ result: payload$?.result
58812
59263
  });
58813
59264
  const headers$ = new Headers(compactMap({
58814
59265
  Accept: "application/json"
@@ -58818,7 +59269,7 @@ async function $do18(client$, request, options) {
58818
59269
  const context = {
58819
59270
  options: client$._options,
58820
59271
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
58821
- operationID: "v2_eval_runs_list",
59272
+ operationID: "v2_eval_results_list",
58822
59273
  oAuth2Scopes: null,
58823
59274
  resolvedSecurity: requestSecurity,
58824
59275
  securitySource: client$._options.security,
@@ -58861,30 +59312,30 @@ async function $do18(client$, request, options) {
58861
59312
  response: doResult.value
58862
59313
  }];
58863
59314
  }
58864
- var init_evalRunsList = __esm(() => {
59315
+ var init_evalResultsList = __esm(() => {
58865
59316
  init_encodings();
58866
59317
  init_primitives();
58867
59318
  init_schemas4();
58868
59319
  init_security();
58869
59320
  init_url();
58870
- init_v2evalrunslistop();
59321
+ init_v2evalresultslistop();
58871
59322
  init_async();
58872
59323
  });
58873
59324
 
58874
- // src/mcp-server/tools/evalRunsList.ts
58875
- var args12, tool$evalRunsList;
58876
- var init_evalRunsList2 = __esm(() => {
58877
- init_evalRunsList();
58878
- init_v2evalrunslistop();
59325
+ // src/mcp-server/tools/evalResultsList.ts
59326
+ var args12, tool$evalResultsList;
59327
+ var init_evalResultsList2 = __esm(() => {
59328
+ init_evalResultsList();
59329
+ init_v2evalresultslistop();
58879
59330
  init_tools();
58880
59331
  args12 = {
58881
- request: V2EvalRunsListRequest$zodSchema.optional()
59332
+ request: V2EvalResultsListRequest$zodSchema.optional()
58882
59333
  };
58883
- tool$evalRunsList = {
58884
- name: "eval-runs-list",
58885
- description: `List Runs
59334
+ tool$evalResultsList = {
59335
+ name: "eval-results-list",
59336
+ description: `List Results
58886
59337
 
58887
- Returns custom eval runs, ordered newest first, with lifecycle state and progress. Includes scheduled, onboarding, and pull request runs and runs started in the Lightsage app, as well as runs started through \`POST /v2/eval-runs\`.`,
59338
+ Lists eval results across runs, newest first: one per attempt by one agent, with the checks the judge failed and its reasons. Filter by \`eval_id\`, \`agent\` and \`result\` (use \`result=failed\` to see why evals fail). Each result has a \`run_id\` to pass to \`GET /v2/eval-runs/{run_id}/trace\` for the agent's step-by-step log. For totals across evals and agents, use \`GET /v2/eval-results/summary\` first.`,
58888
59339
  annotations: {
58889
59340
  title: "",
58890
59341
  destructiveHint: false,
@@ -58894,7 +59345,7 @@ Returns custom eval runs, ordered newest first, with lifecycle state and progres
58894
59345
  },
58895
59346
  args: args12,
58896
59347
  tool: async (client, args, ctx) => {
58897
- const [result] = await evalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59348
+ const [result] = await evalResultsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
58898
59349
  if (!result.ok) {
58899
59350
  return {
58900
59351
  content: [{ type: "text", text: result.error.message }],
@@ -58906,50 +59357,124 @@ Returns custom eval runs, ordered newest first, with lifecycle state and progres
58906
59357
  };
58907
59358
  });
58908
59359
 
58909
- // src/models/evaltemplatebatchitem.ts
58910
- var EvalTemplateBatchItemType$zodSchema, EvalTemplateBatchItem$zodSchema;
58911
- var init_evaltemplatebatchitem = __esm(() => {
59360
+ // src/models/v2evalresultssummaryfigures.ts
59361
+ var V2EvalResultsSummaryFigures$zodSchema;
59362
+ var init_v2evalresultssummaryfigures = __esm(() => {
58912
59363
  init_zod();
58913
- EvalTemplateBatchItemType$zodSchema = _enum([
58914
- "workflow",
58915
- "mcp",
58916
- "cli",
58917
- "skill"
58918
- ]).describe("Eval subject type used for organization and reporting.");
58919
- EvalTemplateBatchItem$zodSchema = object({
58920
- name: string2().describe("Name of the prompt-specific eval to create."),
58921
- prompts: array(string2()).describe("Task prompts owned by this eval. Judges, targets, scheduling, and runtime resources come from the template."),
58922
- subject_id: string2().nullable().optional().describe("Optional subject identifier associated with this eval."),
58923
- type: EvalTemplateBatchItemType$zodSchema.default("workflow").describe("Eval subject type used for organization and reporting.")
58924
- }).describe("Prompt-specific fields combined with the referenced template.");
59364
+ V2EvalResultsSummaryFigures$zodSchema = object({
59365
+ errored: int().describe("Attempts that never reached the judge (the agent crashed or the run could not start). They are left out of every rate and average."),
59366
+ graded: int().describe("Attempts the judge graded: `runs` minus `errored`."),
59367
+ pass_rate: number2().nullable().optional().describe("`passed / graded` from 0 to 1. Null when nothing was graded."),
59368
+ passed: int().describe("Graded attempts that passed."),
59369
+ runs: int().describe("Attempts in the range, graded or not."),
59370
+ time_ms_per_run: number2().nullable().optional().describe("Average agent time per graded attempt, in milliseconds."),
59371
+ tool_calls_per_run: number2().nullable().optional().describe("Average tool calls per graded attempt.")
59372
+ });
58925
59373
  });
58926
59374
 
58927
- // src/models/createevaltemplatebatchrequest.ts
58928
- var CreateEvalTemplateBatchRequest$zodSchema;
58929
- var init_createevaltemplatebatchrequest = __esm(() => {
59375
+ // src/models/v2evalresultssummaryagent.ts
59376
+ var V2EvalResultsSummaryAgent$zodSchema;
59377
+ var init_v2evalresultssummaryagent = __esm(() => {
58930
59378
  init_zod();
58931
- init_evaltemplatebatchitem();
58932
- CreateEvalTemplateBatchRequest$zodSchema = object({
58933
- evals: array(EvalTemplateBatchItem$zodSchema).describe("Prompt-specific evals to create from the referenced template. Template-owned fields are intentionally rejected here to avoid ambiguous overrides."),
58934
- expected_template_version: int().optional().describe("Template `version` returned when the template was read or created. When supplied, creation fails if the template changed before reuse."),
58935
- template_id: string2().describe("Template `id` returned by `POST /v2/eval-templates`.")
58936
- }).describe("Reuse one template across up to 100 prompt-specific eval definitions.");
59379
+ init_v2evalresultssummaryfigures();
59380
+ V2EvalResultsSummaryAgent$zodSchema = object({
59381
+ agent: string2().describe("Agent ID (`harness:model`). Pass it as `agent` to `GET /v2/eval-results`."),
59382
+ previous: V2EvalResultsSummaryFigures$zodSchema,
59383
+ results: V2EvalResultsSummaryFigures$zodSchema
59384
+ });
58937
59385
  });
58938
59386
 
58939
- // src/funcs/evalsBatchCreate.ts
58940
- function evalsBatchCreate(client$, request, options) {
59387
+ // src/models/v2evalresultssummaryevalagent.ts
59388
+ var V2EvalResultsSummaryEvalAgent$zodSchema;
59389
+ var init_v2evalresultssummaryevalagent = __esm(() => {
59390
+ init_zod();
59391
+ init_v2evalresultssummaryfigures();
59392
+ V2EvalResultsSummaryEvalAgent$zodSchema = object({
59393
+ agent: string2().describe("Agent ID (`harness:model`)."),
59394
+ previous_pass_rate: number2().nullable().optional().describe("Pass rate in the range before. Null when nothing was graded."),
59395
+ results: V2EvalResultsSummaryFigures$zodSchema
59396
+ });
59397
+ });
59398
+
59399
+ // src/models/v2evalresultssummaryeval.ts
59400
+ var V2EvalResultsSummaryEval$zodSchema;
59401
+ var init_v2evalresultssummaryeval = __esm(() => {
59402
+ init_zod();
59403
+ init_v2evalresultssummaryevalagent();
59404
+ init_v2evalresultssummaryfigures();
59405
+ V2EvalResultsSummaryEval$zodSchema = object({
59406
+ agents: array(V2EvalResultsSummaryEvalAgent$zodSchema).optional().describe("This eval's figures for each agent, lowest pass rate first."),
59407
+ eval_id: string2(),
59408
+ eval_name: string2(),
59409
+ pass_rate_change: number2().nullable().optional().describe("`results.pass_rate - previous.pass_rate`. Negative means the eval got worse. Null unless both ranges have at least 5 graded attempts."),
59410
+ previous: V2EvalResultsSummaryFigures$zodSchema,
59411
+ results: V2EvalResultsSummaryFigures$zodSchema
59412
+ });
59413
+ });
59414
+
59415
+ // src/models/v2evalresultssummaryrange.ts
59416
+ var V2EvalResultsSummaryRange$zodSchema;
59417
+ var init_v2evalresultssummaryrange = __esm(() => {
59418
+ init_zod();
59419
+ V2EvalResultsSummaryRange$zodSchema = object({
59420
+ days: int(),
59421
+ end: string2().describe("Last day of the range (UTC), today."),
59422
+ previous_end: string2(),
59423
+ previous_start: string2().describe("First day of the range of the same length just before."),
59424
+ start: string2().describe("First day of the range (UTC), `YYYY-MM-DD`.")
59425
+ });
59426
+ });
59427
+
59428
+ // src/models/v2evalresultssummary.ts
59429
+ var V2EvalResultsSummary$zodSchema;
59430
+ var init_v2evalresultssummary = __esm(() => {
59431
+ init_zod();
59432
+ init_v2evalresultssummaryagent();
59433
+ init_v2evalresultssummaryeval();
59434
+ init_v2evalresultssummaryfigures();
59435
+ init_v2evalresultssummaryrange();
59436
+ V2EvalResultsSummary$zodSchema = object({
59437
+ agents: array(V2EvalResultsSummaryAgent$zodSchema).optional().describe("Each agent across every eval in the response, lowest pass rate first."),
59438
+ evals: array(V2EvalResultsSummaryEval$zodSchema).optional().describe("Each eval with attempts in either range, lowest pass rate first (evals with nothing graded last)."),
59439
+ previous: V2EvalResultsSummaryFigures$zodSchema,
59440
+ range: V2EvalResultsSummaryRange$zodSchema,
59441
+ results: V2EvalResultsSummaryFigures$zodSchema
59442
+ });
59443
+ });
59444
+
59445
+ // src/models/v2evalresultssummaryretrieveop.ts
59446
+ var V2EvalResultsSummaryRetrieveRequest$zodSchema, V2EvalResultsSummaryRetrieveResponse$zodSchema;
59447
+ var init_v2evalresultssummaryretrieveop = __esm(() => {
59448
+ init_zod();
59449
+ init_httpvalidationerror();
59450
+ init_v2evalresultssummary();
59451
+ V2EvalResultsSummaryRetrieveRequest$zodSchema = object({
59452
+ days: int().default(30).describe("Days up to today (UTC) to cover. The response also covers the same number of days before."),
59453
+ eval_id: string2().describe("Only this eval. Leave out for every eval.").optional()
59454
+ });
59455
+ V2EvalResultsSummaryRetrieveResponse$zodSchema = union([
59456
+ V2EvalResultsSummary$zodSchema,
59457
+ HTTPValidationError$zodSchema
59458
+ ]);
59459
+ });
59460
+
59461
+ // src/funcs/evalResultsSummary.ts
59462
+ function evalResultsSummary(client$, request, options) {
58941
59463
  return new APIPromise($do19(client$, request, options));
58942
59464
  }
58943
59465
  async function $do19(client$, request, options) {
58944
- const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateBatchRequest$zodSchema.parse(value$), "Input validation failed");
59466
+ const parsed$ = safeParse4(request, (value$) => V2EvalResultsSummaryRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
58945
59467
  if (!parsed$.ok) {
58946
59468
  return [parsed$, { status: "invalid" }];
58947
59469
  }
58948
59470
  const payload$ = parsed$.value;
58949
- const body$ = encodeJSON("body", payload$, { explode: true });
58950
- const path$ = pathToFunc("/v2/evals/batch")();
59471
+ const body$ = null;
59472
+ const path$ = pathToFunc("/v2/eval-results/summary")();
59473
+ const query$ = encodeFormQuery({
59474
+ days: payload$?.days,
59475
+ eval_id: payload$?.eval_id
59476
+ });
58951
59477
  const headers$ = new Headers(compactMap({
58952
- "Content-Type": "application/json",
58953
59478
  Accept: "application/json"
58954
59479
  }));
58955
59480
  const securityInput = await extractSecurity(client$._options.security);
@@ -58957,7 +59482,7 @@ async function $do19(client$, request, options) {
58957
59482
  const context = {
58958
59483
  options: client$._options,
58959
59484
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
58960
- operationID: "v2_evals_batch_create",
59485
+ operationID: "v2_eval_results_summary_retrieve",
58961
59486
  oAuth2Scopes: null,
58962
59487
  resolvedSecurity: requestSecurity,
58963
59488
  securitySource: client$._options.security,
@@ -58972,7 +59497,332 @@ async function $do19(client$, request, options) {
58972
59497
  };
58973
59498
  const requestRes = client$._createRequest(context, {
58974
59499
  security: requestSecurity,
58975
- method: "POST",
59500
+ method: "GET",
59501
+ baseURL: options?.serverURL,
59502
+ path: path$,
59503
+ headers: headers$,
59504
+ query: query$,
59505
+ body: body$,
59506
+ userAgent: client$._options.userAgent,
59507
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
59508
+ }, options);
59509
+ if (!requestRes.ok) {
59510
+ return [requestRes, { status: "invalid" }];
59511
+ }
59512
+ const req$ = requestRes.value;
59513
+ const doResult = await client$._do(req$, {
59514
+ context,
59515
+ errorCodes: [],
59516
+ retryConfig: context.retryConfig,
59517
+ retryCodes: context.retryCodes
59518
+ });
59519
+ if (!doResult.ok) {
59520
+ return [doResult, { status: "request-error", request: req$ }];
59521
+ }
59522
+ return [doResult, {
59523
+ status: "complete",
59524
+ request: req$,
59525
+ response: doResult.value
59526
+ }];
59527
+ }
59528
+ var init_evalResultsSummary = __esm(() => {
59529
+ init_encodings();
59530
+ init_primitives();
59531
+ init_schemas4();
59532
+ init_security();
59533
+ init_url();
59534
+ init_v2evalresultssummaryretrieveop();
59535
+ init_async();
59536
+ });
59537
+
59538
+ // src/mcp-server/tools/evalResultsSummary.ts
59539
+ var args13, tool$evalResultsSummary;
59540
+ var init_evalResultsSummary2 = __esm(() => {
59541
+ init_evalResultsSummary();
59542
+ init_v2evalresultssummaryretrieveop();
59543
+ init_tools();
59544
+ args13 = {
59545
+ request: V2EvalResultsSummaryRetrieveRequest$zodSchema.optional()
59546
+ };
59547
+ tool$evalResultsSummary = {
59548
+ name: "eval-results-summary",
59549
+ description: `Retrieve Summary
59550
+
59551
+ Start here for any question about how evals are doing. Returns, in one call, totals for the last \`days\` days and the same number of days before: for every eval and every agent (harness and model), the attempts, pass rate, average agent time and average tool calls, and how the pass rate changed. Answers which evals got worse and which agents fail most without retrieving runs one at a time. To see the individual results behind these figures and the judge's reasons, use \`GET /v2/eval-results\`.`,
59552
+ annotations: {
59553
+ title: "",
59554
+ destructiveHint: false,
59555
+ idempotentHint: false,
59556
+ openWorldHint: false,
59557
+ readOnlyHint: true
59558
+ },
59559
+ args: args13,
59560
+ tool: async (client, args, ctx) => {
59561
+ const [result] = await evalResultsSummary(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59562
+ if (!result.ok) {
59563
+ return {
59564
+ content: [{ type: "text", text: result.error.message }],
59565
+ isError: true
59566
+ };
59567
+ }
59568
+ return formatResult(result.value);
59569
+ }
59570
+ };
59571
+ });
59572
+
59573
+ // src/models/publicevalrunprogress.ts
59574
+ var PublicEvalRunProgress$zodSchema;
59575
+ var init_publicevalrunprogress = __esm(() => {
59576
+ init_zod();
59577
+ PublicEvalRunProgress$zodSchema = object({
59578
+ cancelled: int().default(0),
59579
+ completed: int().default(0),
59580
+ failed: int().default(0),
59581
+ interrupted: int().default(0).describe("Deprecated compatibility alias for `retrying`; use `retrying`."),
59582
+ percent: number2().default(0).describe("The percentage of child jobs in a final state (`completed`, `failed`, or `cancelled`). It can reach `100` while the parent job is still summarizing, so use `status` to detect completion."),
59583
+ queued: int().default(0),
59584
+ retrying: int().default(0).describe("Recoverable child jobs waiting to be retried. These remain active and are excluded from `percent`."),
59585
+ running: int().default(0),
59586
+ total: int().default(0)
59587
+ });
59588
+ });
59589
+
59590
+ // src/models/v2evalrun.ts
59591
+ var V2EvalRun$zodSchema;
59592
+ var init_v2evalrun = __esm(() => {
59593
+ init_zod();
59594
+ init_publicevalrunprogress();
59595
+ V2EvalRun$zodSchema = object({
59596
+ agent: array(string2()).optional().describe("Runnable agents selected for this simulation."),
59597
+ attempt_count: int().default(1).describe("Total concrete attempts after all fan-out dimensions."),
59598
+ completed_at: string2().nullable().optional(),
59599
+ configuration_id: string2().nullable().optional(),
59600
+ created_at: string2().nullable().optional(),
59601
+ dispatch_id: string2().nullable().optional(),
59602
+ error: string2().nullable().optional(),
59603
+ estimated_cost: number2().nullable().optional(),
59604
+ eval_id: string2().nullable().optional().describe("Saved eval definition ID, including one created by a direct run."),
59605
+ eval_name: string2().nullable().optional().describe("Display name captured for the eval when the run was created."),
59606
+ id: string2().describe("Run ID to use when polling eval-run status."),
59607
+ job_id: string2().describe("Alias of `id` for the durable parent job."),
59608
+ persona: string2().nullable().optional().describe("Perspective applied to every attempt in this simulation."),
59609
+ progress: PublicEvalRunProgress$zodSchema.optional(),
59610
+ prompt_count: int().default(1).describe("Number of prompts included in the simulation."),
59611
+ runs: int().default(1).describe("Independent attempts requested for every prompt-agent pair."),
59612
+ stage: string2().nullable().optional(),
59613
+ started_at: string2().nullable().optional(),
59614
+ status: string2().describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.")
59615
+ });
59616
+ });
59617
+
59618
+ // src/models/v2evalrunsresponse.ts
59619
+ var V2EvalRunsResponse$zodSchema;
59620
+ var init_v2evalrunsresponse = __esm(() => {
59621
+ init_zod();
59622
+ init_v2evalrun();
59623
+ V2EvalRunsResponse$zodSchema = object({
59624
+ count: int(),
59625
+ data: array(V2EvalRun$zodSchema).optional(),
59626
+ limit: int(),
59627
+ offset: int()
59628
+ });
59629
+ });
59630
+
59631
+ // src/models/v2evalrunslistop.ts
59632
+ var V2EvalRunsListRequest$zodSchema, V2EvalRunsListResponse$zodSchema;
59633
+ var init_v2evalrunslistop = __esm(() => {
59634
+ init_zod();
59635
+ init_httpvalidationerror();
59636
+ init_v2evalrunsresponse();
59637
+ V2EvalRunsListRequest$zodSchema = object({
59638
+ limit: int().default(25),
59639
+ offset: int().default(0)
59640
+ });
59641
+ V2EvalRunsListResponse$zodSchema = union([
59642
+ V2EvalRunsResponse$zodSchema,
59643
+ HTTPValidationError$zodSchema
59644
+ ]);
59645
+ });
59646
+
59647
+ // src/funcs/evalRunsList.ts
59648
+ function evalRunsList(client$, request, options) {
59649
+ return new APIPromise($do20(client$, request, options));
59650
+ }
59651
+ async function $do20(client$, request, options) {
59652
+ const parsed$ = safeParse4(request, (value$) => V2EvalRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
59653
+ if (!parsed$.ok) {
59654
+ return [parsed$, { status: "invalid" }];
59655
+ }
59656
+ const payload$ = parsed$.value;
59657
+ const body$ = null;
59658
+ const path$ = pathToFunc("/v2/eval-runs")();
59659
+ const query$ = encodeFormQuery({
59660
+ limit: payload$?.limit,
59661
+ offset: payload$?.offset
59662
+ });
59663
+ const headers$ = new Headers(compactMap({
59664
+ Accept: "application/json"
59665
+ }));
59666
+ const securityInput = await extractSecurity(client$._options.security);
59667
+ const requestSecurity = resolveGlobalSecurity(securityInput);
59668
+ const context = {
59669
+ options: client$._options,
59670
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
59671
+ operationID: "v2_eval_runs_list",
59672
+ oAuth2Scopes: null,
59673
+ resolvedSecurity: requestSecurity,
59674
+ securitySource: client$._options.security,
59675
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
59676
+ retryCodes: options?.retryCodes || [
59677
+ "429",
59678
+ "500",
59679
+ "502",
59680
+ "503",
59681
+ "504"
59682
+ ]
59683
+ };
59684
+ const requestRes = client$._createRequest(context, {
59685
+ security: requestSecurity,
59686
+ method: "GET",
59687
+ baseURL: options?.serverURL,
59688
+ path: path$,
59689
+ headers: headers$,
59690
+ query: query$,
59691
+ body: body$,
59692
+ userAgent: client$._options.userAgent,
59693
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
59694
+ }, options);
59695
+ if (!requestRes.ok) {
59696
+ return [requestRes, { status: "invalid" }];
59697
+ }
59698
+ const req$ = requestRes.value;
59699
+ const doResult = await client$._do(req$, {
59700
+ context,
59701
+ errorCodes: [],
59702
+ retryConfig: context.retryConfig,
59703
+ retryCodes: context.retryCodes
59704
+ });
59705
+ if (!doResult.ok) {
59706
+ return [doResult, { status: "request-error", request: req$ }];
59707
+ }
59708
+ return [doResult, {
59709
+ status: "complete",
59710
+ request: req$,
59711
+ response: doResult.value
59712
+ }];
59713
+ }
59714
+ var init_evalRunsList = __esm(() => {
59715
+ init_encodings();
59716
+ init_primitives();
59717
+ init_schemas4();
59718
+ init_security();
59719
+ init_url();
59720
+ init_v2evalrunslistop();
59721
+ init_async();
59722
+ });
59723
+
59724
+ // src/mcp-server/tools/evalRunsList.ts
59725
+ var args14, tool$evalRunsList;
59726
+ var init_evalRunsList2 = __esm(() => {
59727
+ init_evalRunsList();
59728
+ init_v2evalrunslistop();
59729
+ init_tools();
59730
+ args14 = {
59731
+ request: V2EvalRunsListRequest$zodSchema.optional()
59732
+ };
59733
+ tool$evalRunsList = {
59734
+ name: "eval-runs-list",
59735
+ description: `List Runs
59736
+
59737
+ Returns custom eval runs, ordered newest first, with lifecycle state and progress. Includes scheduled, onboarding, and pull request runs and runs started in the Lightsage app, as well as runs started through \`POST /v2/eval-runs\`. This lists runs and their status only: to see how evals did across runs, use \`GET /v2/eval-results/summary\` and \`GET /v2/eval-results\` instead of retrieving runs one at a time.`,
59738
+ annotations: {
59739
+ title: "",
59740
+ destructiveHint: false,
59741
+ idempotentHint: false,
59742
+ openWorldHint: false,
59743
+ readOnlyHint: true
59744
+ },
59745
+ args: args14,
59746
+ tool: async (client, args, ctx) => {
59747
+ const [result] = await evalRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59748
+ if (!result.ok) {
59749
+ return {
59750
+ content: [{ type: "text", text: result.error.message }],
59751
+ isError: true
59752
+ };
59753
+ }
59754
+ return formatResult(result.value);
59755
+ }
59756
+ };
59757
+ });
59758
+
59759
+ // src/models/evaltemplatebatchitem.ts
59760
+ var EvalTemplateBatchItemType$zodSchema, EvalTemplateBatchItem$zodSchema;
59761
+ var init_evaltemplatebatchitem = __esm(() => {
59762
+ init_zod();
59763
+ EvalTemplateBatchItemType$zodSchema = _enum([
59764
+ "workflow",
59765
+ "mcp",
59766
+ "cli",
59767
+ "skill"
59768
+ ]).describe("Eval subject type used for organization and reporting.");
59769
+ EvalTemplateBatchItem$zodSchema = object({
59770
+ name: string2().describe("Name of the prompt-specific eval to create."),
59771
+ prompts: array(string2()).describe("Task prompts owned by this eval. Judges, targets, scheduling, and runtime resources come from the template."),
59772
+ subject_id: string2().nullable().optional().describe("Optional subject identifier associated with this eval."),
59773
+ type: EvalTemplateBatchItemType$zodSchema.default("workflow").describe("Eval subject type used for organization and reporting.")
59774
+ }).describe("Prompt-specific fields combined with the referenced template.");
59775
+ });
59776
+
59777
+ // src/models/createevaltemplatebatchrequest.ts
59778
+ var CreateEvalTemplateBatchRequest$zodSchema;
59779
+ var init_createevaltemplatebatchrequest = __esm(() => {
59780
+ init_zod();
59781
+ init_evaltemplatebatchitem();
59782
+ CreateEvalTemplateBatchRequest$zodSchema = object({
59783
+ evals: array(EvalTemplateBatchItem$zodSchema).describe("Prompt-specific evals to create from the referenced template. Template-owned fields are intentionally rejected here to avoid ambiguous overrides."),
59784
+ expected_template_version: int().optional().describe("Template `version` returned when the template was read or created. When supplied, creation fails if the template changed before reuse."),
59785
+ template_id: string2().describe("Template `id` returned by `POST /v2/eval-templates`.")
59786
+ }).describe("Reuse one template across up to 100 prompt-specific eval definitions.");
59787
+ });
59788
+
59789
+ // src/funcs/evalsBatchCreate.ts
59790
+ function evalsBatchCreate(client$, request, options) {
59791
+ return new APIPromise($do21(client$, request, options));
59792
+ }
59793
+ async function $do21(client$, request, options) {
59794
+ const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateBatchRequest$zodSchema.parse(value$), "Input validation failed");
59795
+ if (!parsed$.ok) {
59796
+ return [parsed$, { status: "invalid" }];
59797
+ }
59798
+ const payload$ = parsed$.value;
59799
+ const body$ = encodeJSON("body", payload$, { explode: true });
59800
+ const path$ = pathToFunc("/v2/evals/batch")();
59801
+ const headers$ = new Headers(compactMap({
59802
+ "Content-Type": "application/json",
59803
+ Accept: "application/json"
59804
+ }));
59805
+ const securityInput = await extractSecurity(client$._options.security);
59806
+ const requestSecurity = resolveGlobalSecurity(securityInput);
59807
+ const context = {
59808
+ options: client$._options,
59809
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
59810
+ operationID: "v2_evals_batch_create",
59811
+ oAuth2Scopes: null,
59812
+ resolvedSecurity: requestSecurity,
59813
+ securitySource: client$._options.security,
59814
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
59815
+ retryCodes: options?.retryCodes || [
59816
+ "429",
59817
+ "500",
59818
+ "502",
59819
+ "503",
59820
+ "504"
59821
+ ]
59822
+ };
59823
+ const requestRes = client$._createRequest(context, {
59824
+ security: requestSecurity,
59825
+ method: "POST",
58976
59826
  baseURL: options?.serverURL,
58977
59827
  path: path$,
58978
59828
  headers: headers$,
@@ -59010,12 +59860,12 @@ var init_evalsBatchCreate = __esm(() => {
59010
59860
  });
59011
59861
 
59012
59862
  // src/mcp-server/tools/evalsBatchCreate.ts
59013
- var args13, tool$evalsBatchCreate;
59863
+ var args15, tool$evalsBatchCreate;
59014
59864
  var init_evalsBatchCreate2 = __esm(() => {
59015
59865
  init_evalsBatchCreate();
59016
59866
  init_createevaltemplatebatchrequest();
59017
59867
  init_tools();
59018
- args13 = {
59868
+ args15 = {
59019
59869
  request: CreateEvalTemplateBatchRequest$zodSchema
59020
59870
  };
59021
59871
  tool$evalsBatchCreate = {
@@ -59030,7 +59880,7 @@ Step 2 of the reusable template workflow. Provide the \`id\` and \`version\` ret
59030
59880
  openWorldHint: false,
59031
59881
  readOnlyHint: false
59032
59882
  },
59033
- args: args13,
59883
+ args: args15,
59034
59884
  tool: async (client, args, ctx) => {
59035
59885
  const [result] = await evalsBatchCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59036
59886
  if (!result.ok) {
@@ -59073,9 +59923,9 @@ var init_v2evalrunscancelop = __esm(() => {
59073
59923
 
59074
59924
  // src/funcs/evalsCancel.ts
59075
59925
  function evalsCancel(client$, request, options) {
59076
- return new APIPromise($do20(client$, request, options));
59926
+ return new APIPromise($do22(client$, request, options));
59077
59927
  }
59078
- async function $do20(client$, request, options) {
59928
+ async function $do22(client$, request, options) {
59079
59929
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
59080
59930
  if (!parsed$.ok) {
59081
59931
  return [parsed$, { status: "invalid" }];
@@ -59150,12 +60000,12 @@ var init_evalsCancel = __esm(() => {
59150
60000
  });
59151
60001
 
59152
60002
  // src/mcp-server/tools/evalsCancel.ts
59153
- var args14, tool$evalsCancel;
60003
+ var args16, tool$evalsCancel;
59154
60004
  var init_evalsCancel2 = __esm(() => {
59155
60005
  init_evalsCancel();
59156
60006
  init_v2evalrunscancelop();
59157
60007
  init_tools();
59158
- args14 = {
60008
+ args16 = {
59159
60009
  request: V2EvalRunsCancelRequest$zodSchema
59160
60010
  };
59161
60011
  tool$evalsCancel = {
@@ -59170,7 +60020,7 @@ Marks an active eval run as cancelled and prevents queued attempts from starting
59170
60020
  openWorldHint: false,
59171
60021
  readOnlyHint: false
59172
60022
  },
59173
- args: args14,
60023
+ args: args16,
59174
60024
  tool: async (client, args, ctx) => {
59175
60025
  const [result] = await evalsCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59176
60026
  if (!result.ok) {
@@ -59243,9 +60093,9 @@ var init_v2evalconfigurationscreateop = __esm(() => {
59243
60093
 
59244
60094
  // src/funcs/evalsConfigurationsCreate.ts
59245
60095
  function evalsConfigurationsCreate(client$, request, options) {
59246
- return new APIPromise($do21(client$, request, options));
60096
+ return new APIPromise($do23(client$, request, options));
59247
60097
  }
59248
- async function $do21(client$, request, options) {
60098
+ async function $do23(client$, request, options) {
59249
60099
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsCreateRequest$zodSchema.parse(value$), "Input validation failed");
59250
60100
  if (!parsed$.ok) {
59251
60101
  return [parsed$, { status: "invalid" }];
@@ -59321,12 +60171,12 @@ var init_evalsConfigurationsCreate = __esm(() => {
59321
60171
  });
59322
60172
 
59323
60173
  // src/mcp-server/tools/evalsConfigurationsCreate.ts
59324
- var args15, tool$evalsConfigurationsCreate;
60174
+ var args17, tool$evalsConfigurationsCreate;
59325
60175
  var init_evalsConfigurationsCreate2 = __esm(() => {
59326
60176
  init_evalsConfigurationsCreate();
59327
60177
  init_v2evalconfigurationscreateop();
59328
60178
  init_tools();
59329
- args15 = {
60179
+ args17 = {
59330
60180
  request: V2EvalConfigurationsCreateRequest$zodSchema
59331
60181
  };
59332
60182
  tool$evalsConfigurationsCreate = {
@@ -59341,7 +60191,7 @@ Creates a saved runtime configuration that pairs an eval with a repository, envi
59341
60191
  openWorldHint: false,
59342
60192
  readOnlyHint: false
59343
60193
  },
59344
- args: args15,
60194
+ args: args17,
59345
60195
  tool: async (client, args, ctx) => {
59346
60196
  const [result] = await evalsConfigurationsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59347
60197
  if (!result.ok) {
@@ -59373,9 +60223,9 @@ var init_v2evalconfigurationsdeleteop = __esm(() => {
59373
60223
 
59374
60224
  // src/funcs/evalsConfigurationsDelete.ts
59375
60225
  function evalsConfigurationsDelete(client$, request, options) {
59376
- return new APIPromise($do22(client$, request, options));
60226
+ return new APIPromise($do24(client$, request, options));
59377
60227
  }
59378
- async function $do22(client$, request, options) {
60228
+ async function $do24(client$, request, options) {
59379
60229
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
59380
60230
  if (!parsed$.ok) {
59381
60231
  return [parsed$, { status: "invalid" }];
@@ -59451,12 +60301,12 @@ var init_evalsConfigurationsDelete = __esm(() => {
59451
60301
  });
59452
60302
 
59453
60303
  // src/mcp-server/tools/evalsConfigurationsDelete.ts
59454
- var args16, tool$evalsConfigurationsDelete;
60304
+ var args18, tool$evalsConfigurationsDelete;
59455
60305
  var init_evalsConfigurationsDelete2 = __esm(() => {
59456
60306
  init_evalsConfigurationsDelete();
59457
60307
  init_v2evalconfigurationsdeleteop();
59458
60308
  init_tools();
59459
- args16 = {
60309
+ args18 = {
59460
60310
  request: V2EvalConfigurationsDeleteRequest$zodSchema
59461
60311
  };
59462
60312
  tool$evalsConfigurationsDelete = {
@@ -59471,7 +60321,7 @@ Permanently deletes an eval configuration and returns its last saved state.`,
59471
60321
  openWorldHint: false,
59472
60322
  readOnlyHint: false
59473
60323
  },
59474
- args: args16,
60324
+ args: args18,
59475
60325
  tool: async (client, args, ctx) => {
59476
60326
  const [result] = await evalsConfigurationsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59477
60327
  if (!result.ok) {
@@ -59513,9 +60363,9 @@ var init_v2evalconfigurationslistop = __esm(() => {
59513
60363
 
59514
60364
  // src/funcs/evalsConfigurationsList.ts
59515
60365
  function evalsConfigurationsList(client$, request, options) {
59516
- return new APIPromise($do23(client$, request, options));
60366
+ return new APIPromise($do25(client$, request, options));
59517
60367
  }
59518
- async function $do23(client$, request, options) {
60368
+ async function $do25(client$, request, options) {
59519
60369
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsListRequest$zodSchema.parse(value$), "Input validation failed");
59520
60370
  if (!parsed$.ok) {
59521
60371
  return [parsed$, { status: "invalid" }];
@@ -59590,12 +60440,12 @@ var init_evalsConfigurationsList = __esm(() => {
59590
60440
  });
59591
60441
 
59592
60442
  // src/mcp-server/tools/evalsConfigurationsList.ts
59593
- var args17, tool$evalsConfigurationsList;
60443
+ var args19, tool$evalsConfigurationsList;
59594
60444
  var init_evalsConfigurationsList2 = __esm(() => {
59595
60445
  init_evalsConfigurationsList();
59596
60446
  init_v2evalconfigurationslistop();
59597
60447
  init_tools();
59598
- args17 = {
60448
+ args19 = {
59599
60449
  request: V2EvalConfigurationsListRequest$zodSchema
59600
60450
  };
59601
60451
  tool$evalsConfigurationsList = {
@@ -59610,7 +60460,7 @@ Returns the saved runtime configurations for an eval, including repository, envi
59610
60460
  openWorldHint: false,
59611
60461
  readOnlyHint: true
59612
60462
  },
59613
- args: args17,
60463
+ args: args19,
59614
60464
  tool: async (client, args, ctx) => {
59615
60465
  const [result] = await evalsConfigurationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59616
60466
  if (!result.ok) {
@@ -59642,9 +60492,9 @@ var init_v2evalconfigurationsretrieveop = __esm(() => {
59642
60492
 
59643
60493
  // src/funcs/evalsConfigurationsRetrieve.ts
59644
60494
  function evalsConfigurationsRetrieve(client$, request, options) {
59645
- return new APIPromise($do24(client$, request, options));
60495
+ return new APIPromise($do26(client$, request, options));
59646
60496
  }
59647
- async function $do24(client$, request, options) {
60497
+ async function $do26(client$, request, options) {
59648
60498
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
59649
60499
  if (!parsed$.ok) {
59650
60500
  return [parsed$, { status: "invalid" }];
@@ -59720,12 +60570,12 @@ var init_evalsConfigurationsRetrieve = __esm(() => {
59720
60570
  });
59721
60571
 
59722
60572
  // src/mcp-server/tools/evalsConfigurationsRetrieve.ts
59723
- var args18, tool$evalsConfigurationsRetrieve;
60573
+ var args20, tool$evalsConfigurationsRetrieve;
59724
60574
  var init_evalsConfigurationsRetrieve2 = __esm(() => {
59725
60575
  init_evalsConfigurationsRetrieve();
59726
60576
  init_v2evalconfigurationsretrieveop();
59727
60577
  init_tools();
59728
- args18 = {
60578
+ args20 = {
59729
60579
  request: V2EvalConfigurationsRetrieveRequest$zodSchema
59730
60580
  };
59731
60581
  tool$evalsConfigurationsRetrieve = {
@@ -59740,7 +60590,7 @@ Returns one saved configuration for an eval.`,
59740
60590
  openWorldHint: false,
59741
60591
  readOnlyHint: true
59742
60592
  },
59743
- args: args18,
60593
+ args: args20,
59744
60594
  tool: async (client, args, ctx) => {
59745
60595
  const [result] = await evalsConfigurationsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59746
60596
  if (!result.ok) {
@@ -59792,9 +60642,9 @@ var init_v2evalconfigurationsupdateop = __esm(() => {
59792
60642
 
59793
60643
  // src/funcs/evalsConfigurationsUpdate.ts
59794
60644
  function evalsConfigurationsUpdate(client$, request, options) {
59795
- return new APIPromise($do25(client$, request, options));
60645
+ return new APIPromise($do27(client$, request, options));
59796
60646
  }
59797
- async function $do25(client$, request, options) {
60647
+ async function $do27(client$, request, options) {
59798
60648
  const parsed$ = safeParse4(request, (value$) => V2EvalConfigurationsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
59799
60649
  if (!parsed$.ok) {
59800
60650
  return [parsed$, { status: "invalid" }];
@@ -59871,12 +60721,12 @@ var init_evalsConfigurationsUpdate = __esm(() => {
59871
60721
  });
59872
60722
 
59873
60723
  // src/mcp-server/tools/evalsConfigurationsUpdate.ts
59874
- var args19, tool$evalsConfigurationsUpdate;
60724
+ var args21, tool$evalsConfigurationsUpdate;
59875
60725
  var init_evalsConfigurationsUpdate2 = __esm(() => {
59876
60726
  init_evalsConfigurationsUpdate();
59877
60727
  init_v2evalconfigurationsupdateop();
59878
60728
  init_tools();
59879
- args19 = {
60729
+ args21 = {
59880
60730
  request: V2EvalConfigurationsUpdateRequest$zodSchema
59881
60731
  };
59882
60732
  tool$evalsConfigurationsUpdate = {
@@ -59891,7 +60741,7 @@ Updates an eval configuration; omitted fields remain unchanged.`,
59891
60741
  openWorldHint: false,
59892
60742
  readOnlyHint: false
59893
60743
  },
59894
- args: args19,
60744
+ args: args21,
59895
60745
  tool: async (client, args, ctx) => {
59896
60746
  const [result] = await evalsConfigurationsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
59897
60747
  if (!result.ok) {
@@ -59961,16 +60811,16 @@ var init_createv2evalrequest = __esm(() => {
59961
60811
  repository: string2().optional().describe("Repository every run starts from: a saved repository ID or a built-in alias such as `nextjs-starter` from `GET /v2/repositories`. Save a private repository with `POST /v2/repositories` first; it must be shared with your organization's Lightsage GitHub App."),
59962
60812
  runs: int().default(1).describe("Independent attempts for every prompt-agent pair."),
59963
60813
  search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
59964
- setup_commands: array(string2()).optional().describe("Shell commands run sequentially in the prepared repository before the agent starts. CLI clients expose repeatable `--setup-command`."),
60814
+ setup_commands: array(string2()).optional().describe("Shell commands run one after another before the agent starts. They run in the folder the agent starts in, so `./` is the agent's project folder. New files and folders a command creates directly in `~` also appear in the agent's home folder; files added inside a folder `~` already has, such as `~/.config`, do not. CLI clients expose repeatable `--setup-command`."),
59965
60815
  tags: array(string2()).optional().describe("Optional labels for organizing the eval. CLI clients may expose this string array as a repeatable `--tag` flag.")
59966
60816
  });
59967
60817
  });
59968
60818
 
59969
60819
  // src/funcs/evalsCreate.ts
59970
60820
  function evalsCreate(client$, request, options) {
59971
- return new APIPromise($do26(client$, request, options));
60821
+ return new APIPromise($do28(client$, request, options));
59972
60822
  }
59973
- async function $do26(client$, request, options) {
60823
+ async function $do28(client$, request, options) {
59974
60824
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRequest$zodSchema.parse(value$), "Input validation failed");
59975
60825
  if (!parsed$.ok) {
59976
60826
  return [parsed$, { status: "invalid" }];
@@ -60040,12 +60890,12 @@ var init_evalsCreate = __esm(() => {
60040
60890
  });
60041
60891
 
60042
60892
  // src/mcp-server/tools/evalsCreate.ts
60043
- var args20, tool$evalsCreate;
60893
+ var args22, tool$evalsCreate;
60044
60894
  var init_evalsCreate2 = __esm(() => {
60045
60895
  init_evalsCreate();
60046
60896
  init_createv2evalrequest();
60047
60897
  init_tools();
60048
- args20 = {
60898
+ args22 = {
60049
60899
  request: CreateV2EvalRequest$zodSchema
60050
60900
  };
60051
60901
  tool$evalsCreate = {
@@ -60062,7 +60912,7 @@ Evals measure how well agents complete tasks with your product. To track how age
60062
60912
  openWorldHint: false,
60063
60913
  readOnlyHint: false
60064
60914
  },
60065
- args: args20,
60915
+ args: args22,
60066
60916
  tool: async (client, args, ctx) => {
60067
60917
  const [result] = await evalsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60068
60918
  if (!result.ok) {
@@ -60155,9 +61005,9 @@ var init_v2evalsdeleteop = __esm(() => {
60155
61005
 
60156
61006
  // src/funcs/evalsDelete.ts
60157
61007
  function evalsDelete(client$, request, options) {
60158
- return new APIPromise($do27(client$, request, options));
61008
+ return new APIPromise($do29(client$, request, options));
60159
61009
  }
60160
- async function $do27(client$, request, options) {
61010
+ async function $do29(client$, request, options) {
60161
61011
  const parsed$ = safeParse4(request, (value$) => V2EvalsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
60162
61012
  if (!parsed$.ok) {
60163
61013
  return [parsed$, { status: "invalid" }];
@@ -60232,12 +61082,12 @@ var init_evalsDelete = __esm(() => {
60232
61082
  });
60233
61083
 
60234
61084
  // src/mcp-server/tools/evalsDelete.ts
60235
- var args21, tool$evalsDelete;
61085
+ var args23, tool$evalsDelete;
60236
61086
  var init_evalsDelete2 = __esm(() => {
60237
61087
  init_evalsDelete();
60238
61088
  init_v2evalsdeleteop();
60239
61089
  init_tools();
60240
- args21 = {
61090
+ args23 = {
60241
61091
  request: V2EvalsDeleteRequest$zodSchema
60242
61092
  };
60243
61093
  tool$evalsDelete = {
@@ -60252,7 +61102,7 @@ Permanently deletes an eval and all of its saved configurations.`,
60252
61102
  openWorldHint: false,
60253
61103
  readOnlyHint: false
60254
61104
  },
60255
- args: args21,
61105
+ args: args23,
60256
61106
  tool: async (client, args, ctx) => {
60257
61107
  const [result] = await evalsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60258
61108
  if (!result.ok) {
@@ -60343,7 +61193,7 @@ var init_v2setupcommandoutput = __esm(() => {
60343
61193
  exit_code: int().nullable().optional().describe("The command's exit code."),
60344
61194
  output: string2().nullable().optional().describe("The end of what the command printed (up to 4,000 characters), with secret values redacted."),
60345
61195
  output_truncated: boolean2().default(false).describe("True when earlier output was cut off."),
60346
- status: string2().nullable().optional().describe("`succeeded` for a completed command.")
61196
+ status: string2().nullable().optional().describe("`succeeded` for a completed command; `failed` for a CLI install that failed, after which the run went on and the agent could install the CLI itself.")
60347
61197
  });
60348
61198
  });
60349
61199
 
@@ -60458,9 +61308,9 @@ var init_v2evalrunsretrieveop = __esm(() => {
60458
61308
 
60459
61309
  // src/funcs/evalsGet.ts
60460
61310
  function evalsGet(client$, request, options) {
60461
- return new APIPromise($do28(client$, request, options));
61311
+ return new APIPromise($do30(client$, request, options));
60462
61312
  }
60463
- async function $do28(client$, request, options) {
61313
+ async function $do30(client$, request, options) {
60464
61314
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60465
61315
  if (!parsed$.ok) {
60466
61316
  return [parsed$, { status: "invalid" }];
@@ -60535,12 +61385,12 @@ var init_evalsGet = __esm(() => {
60535
61385
  });
60536
61386
 
60537
61387
  // src/mcp-server/tools/evalsGet.ts
60538
- var args22, tool$evalsGet;
61388
+ var args24, tool$evalsGet;
60539
61389
  var init_evalsGet2 = __esm(() => {
60540
61390
  init_evalsGet();
60541
61391
  init_v2evalrunsretrieveop();
60542
61392
  init_tools();
60543
- args22 = {
61393
+ args24 = {
60544
61394
  request: V2EvalRunsRetrieveRequest$zodSchema
60545
61395
  };
60546
61396
  tool$evalsGet = {
@@ -60555,7 +61405,7 @@ Returns the run's current status and progress. Once its attempts finish, the res
60555
61405
  openWorldHint: false,
60556
61406
  readOnlyHint: true
60557
61407
  },
60558
- args: args22,
61408
+ args: args24,
60559
61409
  tool: async (client, args, ctx) => {
60560
61410
  const [result] = await evalsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60561
61411
  if (!result.ok) {
@@ -60571,9 +61421,9 @@ Returns the run's current status and progress. Once its attempts finish, the res
60571
61421
 
60572
61422
  // src/funcs/evalsList.ts
60573
61423
  function evalsList(client$, options) {
60574
- return new APIPromise($do29(client$, options));
61424
+ return new APIPromise($do31(client$, options));
60575
61425
  }
60576
- async function $do29(client$, options) {
61426
+ async function $do31(client$, options) {
60577
61427
  const path$ = pathToFunc("/v2/evals")();
60578
61428
  const headers$ = new Headers(compactMap({
60579
61429
  Accept: "application/json"
@@ -60678,9 +61528,9 @@ var init_v2evalsretrieveop = __esm(() => {
60678
61528
 
60679
61529
  // src/funcs/evalsRetrieve.ts
60680
61530
  function evalsRetrieve(client$, request, options) {
60681
- return new APIPromise($do30(client$, request, options));
61531
+ return new APIPromise($do32(client$, request, options));
60682
61532
  }
60683
- async function $do30(client$, request, options) {
61533
+ async function $do32(client$, request, options) {
60684
61534
  const parsed$ = safeParse4(request, (value$) => V2EvalsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
60685
61535
  if (!parsed$.ok) {
60686
61536
  return [parsed$, { status: "invalid" }];
@@ -60755,12 +61605,12 @@ var init_evalsRetrieve = __esm(() => {
60755
61605
  });
60756
61606
 
60757
61607
  // src/mcp-server/tools/evalsRetrieve.ts
60758
- var args23, tool$evalsRetrieve;
61608
+ var args25, tool$evalsRetrieve;
60759
61609
  var init_evalsRetrieve2 = __esm(() => {
60760
61610
  init_evalsRetrieve();
60761
61611
  init_v2evalsretrieveop();
60762
61612
  init_tools();
60763
- args23 = {
61613
+ args25 = {
60764
61614
  request: V2EvalsRetrieveRequest$zodSchema
60765
61615
  };
60766
61616
  tool$evalsRetrieve = {
@@ -60775,7 +61625,7 @@ Returns one reusable eval simulation definition.`,
60775
61625
  openWorldHint: false,
60776
61626
  readOnlyHint: true
60777
61627
  },
60778
- args: args23,
61628
+ args: args25,
60779
61629
  tool: async (client, args, ctx) => {
60780
61630
  const [result] = await evalsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60781
61631
  if (!result.ok) {
@@ -60819,7 +61669,7 @@ var init_createv2evalrunrequest = __esm(() => {
60819
61669
  repository: string2().optional().describe("Repository the run starts from: a saved repository ID, built-in alias such as `nextjs-starter`, or a public GitHub HTTPS URL. With `eval_id` it applies to this run only, over the configuration's repository; the eval keeps its saved repository."),
60820
61670
  runs: int().optional().describe("Independent attempts for every prompt-agent pair. Defaults to the saved eval value or 1 for a direct run."),
60821
61671
  search_grounding: SearchGroundingMode$zodSchema.nullable().optional().describe("Web-retrieval policy for this launch. Overrides the selected configuration or saved eval when provided; direct runs default to `default`."),
60822
- setup_commands: array(string2()).nullable().optional().describe("Shell commands run sequentially in the prepared repository before the agent starts. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable `--setup-command`."),
61672
+ setup_commands: array(string2()).nullable().optional().describe("Shell commands run one after another before the agent starts. They run in the folder the agent starts in, so `./` is the agent's project folder. New files and folders a command creates directly in `~` also appear in the agent's home folder; files added inside a folder `~` already has, such as `~/.config`, do not. In saved mode, an explicit empty array disables saved setup commands for this launch. CLI clients expose repeatable `--setup-command`."),
60823
61673
  skill_ids: array(string2()).optional().describe("Direct create-and-run form only. Reusable skill IDs from `GET /v2/skills` to install before the agent starts."),
60824
61674
  skills: array(string2()).optional().describe("Additional public skill packages to install before the agent starts in either request form, using GitHub `owner/repository` references such as `resend/resend-skills`. CLI clients may expose this string array as a repeatable `--skill` flag."),
60825
61675
  tags: array(string2()).optional().describe("Direct create-and-run form only. Optional labels saved on the created eval. CLI clients may expose this string array as a repeatable `--tag` flag.")
@@ -60828,9 +61678,9 @@ var init_createv2evalrunrequest = __esm(() => {
60828
61678
 
60829
61679
  // src/funcs/evalsRun.ts
60830
61680
  function evalsRun(client$, request, options) {
60831
- return new APIPromise($do31(client$, request, options));
61681
+ return new APIPromise($do33(client$, request, options));
60832
61682
  }
60833
- async function $do31(client$, request, options) {
61683
+ async function $do33(client$, request, options) {
60834
61684
  const parsed$ = safeParse4(request, (value$) => CreateV2EvalRunRequest$zodSchema.parse(value$), "Input validation failed");
60835
61685
  if (!parsed$.ok) {
60836
61686
  return [parsed$, { status: "invalid" }];
@@ -60900,12 +61750,12 @@ var init_evalsRun = __esm(() => {
60900
61750
  });
60901
61751
 
60902
61752
  // src/mcp-server/tools/evalsRun.ts
60903
- var args24, tool$evalsRun;
61753
+ var args26, tool$evalsRun;
60904
61754
  var init_evalsRun2 = __esm(() => {
60905
61755
  init_evalsRun();
60906
61756
  init_createv2evalrunrequest();
60907
61757
  init_tools();
60908
- args24 = {
61758
+ args26 = {
60909
61759
  request: CreateV2EvalRunRequest$zodSchema
60910
61760
  };
60911
61761
  tool$evalsRun = {
@@ -60931,7 +61781,7 @@ A saved or inline environment containing an empty or placeholder credential is r
60931
61781
  openWorldHint: false,
60932
61782
  readOnlyHint: false
60933
61783
  },
60934
- args: args24,
61784
+ args: args26,
60935
61785
  tool: async (client, args, ctx) => {
60936
61786
  const [result] = await evalsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
60937
61787
  if (!result.ok) {
@@ -61008,9 +61858,9 @@ var init_v2evalrunstraceop = __esm(() => {
61008
61858
 
61009
61859
  // src/funcs/evalsTrace.ts
61010
61860
  function evalsTrace(client$, request, options) {
61011
- return new APIPromise($do32(client$, request, options));
61861
+ return new APIPromise($do34(client$, request, options));
61012
61862
  }
61013
- async function $do32(client$, request, options) {
61863
+ async function $do34(client$, request, options) {
61014
61864
  const parsed$ = safeParse4(request, (value$) => V2EvalRunsTraceRequest$zodSchema.parse(value$), "Input validation failed");
61015
61865
  if (!parsed$.ok) {
61016
61866
  return [parsed$, { status: "invalid" }];
@@ -61090,12 +61940,12 @@ var init_evalsTrace = __esm(() => {
61090
61940
  });
61091
61941
 
61092
61942
  // src/mcp-server/tools/evalsTrace.ts
61093
- var args25, tool$evalsTrace;
61943
+ var args27, tool$evalsTrace;
61094
61944
  var init_evalsTrace2 = __esm(() => {
61095
61945
  init_evalsTrace();
61096
61946
  init_v2evalrunstraceop();
61097
61947
  init_tools();
61098
- args25 = {
61948
+ args27 = {
61099
61949
  request: V2EvalRunsTraceRequest$zodSchema
61100
61950
  };
61101
61951
  tool$evalsTrace = {
@@ -61110,7 +61960,7 @@ Returns a finite page of sanitized execution events for one eval run. Use \`next
61110
61960
  openWorldHint: false,
61111
61961
  readOnlyHint: true
61112
61962
  },
61113
- args: args25,
61963
+ args: args27,
61114
61964
  tool: async (client, args, ctx) => {
61115
61965
  const [result] = await evalsTrace(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61116
61966
  if (!result.ok) {
@@ -61175,9 +62025,9 @@ var init_v2evalsupdateop = __esm(() => {
61175
62025
 
61176
62026
  // src/funcs/evalsUpdate.ts
61177
62027
  function evalsUpdate(client$, request, options) {
61178
- return new APIPromise($do33(client$, request, options));
62028
+ return new APIPromise($do35(client$, request, options));
61179
62029
  }
61180
- async function $do33(client$, request, options) {
62030
+ async function $do35(client$, request, options) {
61181
62031
  const parsed$ = safeParse4(request, (value$) => V2EvalsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
61182
62032
  if (!parsed$.ok) {
61183
62033
  return [parsed$, { status: "invalid" }];
@@ -61253,12 +62103,12 @@ var init_evalsUpdate = __esm(() => {
61253
62103
  });
61254
62104
 
61255
62105
  // src/mcp-server/tools/evalsUpdate.ts
61256
- var args26, tool$evalsUpdate;
62106
+ var args28, tool$evalsUpdate;
61257
62107
  var init_evalsUpdate2 = __esm(() => {
61258
62108
  init_evalsUpdate();
61259
62109
  init_v2evalsupdateop();
61260
62110
  init_tools();
61261
- args26 = {
62111
+ args28 = {
61262
62112
  request: V2EvalsUpdateRequest$zodSchema
61263
62113
  };
61264
62114
  tool$evalsUpdate = {
@@ -61273,7 +62123,7 @@ Updates a reusable eval simulation definition. Omitted fields remain unchanged.
61273
62123
  openWorldHint: false,
61274
62124
  readOnlyHint: false
61275
62125
  },
61276
- args: args26,
62126
+ args: args28,
61277
62127
  tool: async (client, args, ctx) => {
61278
62128
  const [result] = await evalsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61279
62129
  if (!result.ok) {
@@ -61301,7 +62151,7 @@ var init_evaltemplateruntime = __esm(() => {
61301
62151
  mcp_server_ids: array(string2()).optional().describe("Reusable MCP server IDs copied into each created eval."),
61302
62152
  run_on_github_pr: boolean2().default(false).describe("Whether each created eval is configured for GitHub pull requests."),
61303
62153
  search_grounding: SearchGroundingMode$zodSchema.optional().describe("Requested web-retrieval behavior for an eval run."),
61304
- setup_commands: array(string2()).optional().describe("Shell commands run before each eval attempt, in order."),
62154
+ setup_commands: array(string2()).optional().describe("Shell commands run before each eval attempt, in order, in the folder the agent starts in, so `./` is the agent's project folder. New files and folders a command creates directly in `~` also appear in the agent's home folder."),
61305
62155
  skill_ids: array(string2()).optional().describe("Reusable skill IDs copied into each created eval."),
61306
62156
  starting_project_id: string2().nullable().optional().describe("Optional reusable repository workspace ID.")
61307
62157
  }).describe("Reusable runtime resources copied into each created eval.");
@@ -61323,28 +62173,55 @@ var init_evaltemplateschedule = __esm(() => {
61323
62173
  });
61324
62174
 
61325
62175
  // src/models/graderdefinition.ts
61326
- var Metric$zodSchema, GraderDefinition$zodSchema;
62176
+ var Metric$zodSchema, GraderDefinition$zodSchema, GraderDefinition$zodSchemaOutbound;
61327
62177
  var init_graderdefinition = __esm(() => {
61328
62178
  init_zod();
62179
+ init_schemas4();
61329
62180
  Metric$zodSchema = _enum([
61330
62181
  "tool_calls",
61331
62182
  "time",
61332
62183
  "cost"
61333
62184
  ]);
61334
- GraderDefinition$zodSchema = object({
62185
+ GraderDefinition$zodSchema = collectExtraKeys(object({
61335
62186
  blocking: boolean2().default(false).describe("Whether a failed or missing result from this grader fails the entire eval regardless of the aggregate score."),
61336
62187
  case_sensitive: boolean2().default(false),
61337
62188
  criteria: string2().nullable().optional(),
62189
+ expected: int().nullable().optional(),
61338
62190
  max_value: number2().nullable().optional(),
61339
62191
  metric: Metric$zodSchema.nullable().optional(),
61340
62192
  min_score: number2().nullable().optional(),
61341
62193
  name: string2(),
61342
62194
  needle: string2().nullable().optional(),
61343
62195
  needles: array(string2()).nullable().optional(),
62196
+ path: string2().nullable().optional(),
61344
62197
  pattern: string2().nullable().optional(),
61345
62198
  plugin: string2().nullable().optional(),
61346
62199
  type: string2(),
61347
62200
  weight: number2().default(1)
62201
+ }).catchall(any()), "AdditionalProperties", true);
62202
+ GraderDefinition$zodSchemaOutbound = object({
62203
+ AdditionalProperties: record(string2(), any()).optional(),
62204
+ blocking: boolean2().default(false),
62205
+ case_sensitive: boolean2().default(false),
62206
+ criteria: nullable(string2()).optional(),
62207
+ expected: nullable(int()).optional(),
62208
+ max_value: nullable(number2()).optional(),
62209
+ metric: nullable(Metric$zodSchema).optional(),
62210
+ min_score: nullable(number2()).optional(),
62211
+ name: string2(),
62212
+ needle: nullable(string2()).optional(),
62213
+ needles: nullable(array(string2())).optional(),
62214
+ path: nullable(string2()).optional(),
62215
+ pattern: nullable(string2()).optional(),
62216
+ plugin: nullable(string2()).optional(),
62217
+ type: string2(),
62218
+ weight: number2().default(1)
62219
+ }).transform((v) => {
62220
+ const { AdditionalProperties, ...rest } = v;
62221
+ return {
62222
+ ...rest,
62223
+ ...AdditionalProperties
62224
+ };
61348
62225
  });
61349
62226
  });
61350
62227
 
@@ -61398,9 +62275,9 @@ var init_createevaltemplaterequest = __esm(() => {
61398
62275
 
61399
62276
  // src/funcs/evalTemplatesCreate.ts
61400
62277
  function evalTemplatesCreate(client$, request, options) {
61401
- return new APIPromise($do34(client$, request, options));
62278
+ return new APIPromise($do36(client$, request, options));
61402
62279
  }
61403
- async function $do34(client$, request, options) {
62280
+ async function $do36(client$, request, options) {
61404
62281
  const parsed$ = safeParse4(request, (value$) => CreateEvalTemplateRequest$zodSchema.parse(value$), "Input validation failed");
61405
62282
  if (!parsed$.ok) {
61406
62283
  return [parsed$, { status: "invalid" }];
@@ -61470,12 +62347,12 @@ var init_evalTemplatesCreate = __esm(() => {
61470
62347
  });
61471
62348
 
61472
62349
  // src/mcp-server/tools/evalTemplatesCreate.ts
61473
- var args27, tool$evalTemplatesCreate;
62350
+ var args29, tool$evalTemplatesCreate;
61474
62351
  var init_evalTemplatesCreate2 = __esm(() => {
61475
62352
  init_evalTemplatesCreate();
61476
62353
  init_createevaltemplaterequest();
61477
62354
  init_tools();
61478
- args27 = {
62355
+ args29 = {
61479
62356
  request: CreateEvalTemplateRequest$zodSchema
61480
62357
  };
61481
62358
  tool$evalTemplatesCreate = {
@@ -61490,7 +62367,7 @@ Step 1 of the reusable template workflow. Creates an organization-owned Eval tem
61490
62367
  openWorldHint: false,
61491
62368
  readOnlyHint: false
61492
62369
  },
61493
- args: args27,
62370
+ args: args29,
61494
62371
  tool: async (client, args, ctx) => {
61495
62372
  const [result] = await evalTemplatesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61496
62373
  if (!result.ok) {
@@ -61584,9 +62461,9 @@ var init_v2evaltemplatesdeleteop = __esm(() => {
61584
62461
 
61585
62462
  // src/funcs/evalTemplatesDelete.ts
61586
62463
  function evalTemplatesDelete(client$, request, options) {
61587
- return new APIPromise($do35(client$, request, options));
62464
+ return new APIPromise($do37(client$, request, options));
61588
62465
  }
61589
- async function $do35(client$, request, options) {
62466
+ async function $do37(client$, request, options) {
61590
62467
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
61591
62468
  if (!parsed$.ok) {
61592
62469
  return [parsed$, { status: "invalid" }];
@@ -61661,12 +62538,12 @@ var init_evalTemplatesDelete = __esm(() => {
61661
62538
  });
61662
62539
 
61663
62540
  // src/mcp-server/tools/evalTemplatesDelete.ts
61664
- var args28, tool$evalTemplatesDelete;
62541
+ var args30, tool$evalTemplatesDelete;
61665
62542
  var init_evalTemplatesDelete2 = __esm(() => {
61666
62543
  init_evalTemplatesDelete();
61667
62544
  init_v2evaltemplatesdeleteop();
61668
62545
  init_tools();
61669
- args28 = {
62546
+ args30 = {
61670
62547
  request: V2EvalTemplatesDeleteRequest$zodSchema
61671
62548
  };
61672
62549
  tool$evalTemplatesDelete = {
@@ -61681,7 +62558,7 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
61681
62558
  openWorldHint: false,
61682
62559
  readOnlyHint: false
61683
62560
  },
61684
- args: args28,
62561
+ args: args30,
61685
62562
  tool: async (client, args, ctx) => {
61686
62563
  const [result] = await evalTemplatesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61687
62564
  if (!result.ok) {
@@ -61697,9 +62574,9 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
61697
62574
 
61698
62575
  // src/funcs/evalTemplatesList.ts
61699
62576
  function evalTemplatesList(client$, options) {
61700
- return new APIPromise($do36(client$, options));
62577
+ return new APIPromise($do38(client$, options));
61701
62578
  }
61702
- async function $do36(client$, options) {
62579
+ async function $do38(client$, options) {
61703
62580
  const path$ = pathToFunc("/v2/eval-templates")();
61704
62581
  const headers$ = new Headers(compactMap({
61705
62582
  Accept: "application/json"
@@ -61808,9 +62685,9 @@ var init_v2evaltemplatesretrieveop = __esm(() => {
61808
62685
 
61809
62686
  // src/funcs/evalTemplatesRetrieve.ts
61810
62687
  function evalTemplatesRetrieve(client$, request, options) {
61811
- return new APIPromise($do37(client$, request, options));
62688
+ return new APIPromise($do39(client$, request, options));
61812
62689
  }
61813
- async function $do37(client$, request, options) {
62690
+ async function $do39(client$, request, options) {
61814
62691
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
61815
62692
  if (!parsed$.ok) {
61816
62693
  return [parsed$, { status: "invalid" }];
@@ -61885,12 +62762,12 @@ var init_evalTemplatesRetrieve = __esm(() => {
61885
62762
  });
61886
62763
 
61887
62764
  // src/mcp-server/tools/evalTemplatesRetrieve.ts
61888
- var args29, tool$evalTemplatesRetrieve;
62765
+ var args31, tool$evalTemplatesRetrieve;
61889
62766
  var init_evalTemplatesRetrieve2 = __esm(() => {
61890
62767
  init_evalTemplatesRetrieve();
61891
62768
  init_v2evaltemplatesretrieveop();
61892
62769
  init_tools();
61893
- args29 = {
62770
+ args31 = {
61894
62771
  request: V2EvalTemplatesRetrieveRequest$zodSchema
61895
62772
  };
61896
62773
  tool$evalTemplatesRetrieve = {
@@ -61905,7 +62782,7 @@ Returns one active reusable Eval template.`,
61905
62782
  openWorldHint: false,
61906
62783
  readOnlyHint: true
61907
62784
  },
61908
- args: args29,
62785
+ args: args31,
61909
62786
  tool: async (client, args, ctx) => {
61910
62787
  const [result] = await evalTemplatesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
61911
62788
  if (!result.ok) {
@@ -61999,9 +62876,9 @@ var init_v2evaltemplatesupdateop = __esm(() => {
61999
62876
 
62000
62877
  // src/funcs/evalTemplatesUpdate.ts
62001
62878
  function evalTemplatesUpdate(client$, request, options) {
62002
- return new APIPromise($do38(client$, request, options));
62879
+ return new APIPromise($do40(client$, request, options));
62003
62880
  }
62004
- async function $do38(client$, request, options) {
62881
+ async function $do40(client$, request, options) {
62005
62882
  const parsed$ = safeParse4(request, (value$) => V2EvalTemplatesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
62006
62883
  if (!parsed$.ok) {
62007
62884
  return [parsed$, { status: "invalid" }];
@@ -62077,12 +62954,12 @@ var init_evalTemplatesUpdate = __esm(() => {
62077
62954
  });
62078
62955
 
62079
62956
  // src/mcp-server/tools/evalTemplatesUpdate.ts
62080
- var args30, tool$evalTemplatesUpdate;
62957
+ var args32, tool$evalTemplatesUpdate;
62081
62958
  var init_evalTemplatesUpdate2 = __esm(() => {
62082
62959
  init_evalTemplatesUpdate();
62083
62960
  init_v2evaltemplatesupdateop();
62084
62961
  init_tools();
62085
- args30 = {
62962
+ args32 = {
62086
62963
  request: V2EvalTemplatesUpdateRequest$zodSchema
62087
62964
  };
62088
62965
  tool$evalTemplatesUpdate = {
@@ -62097,7 +62974,7 @@ Updates an Eval template. Supply \`expected_template_version\` to reject an edit
62097
62974
  openWorldHint: false,
62098
62975
  readOnlyHint: false
62099
62976
  },
62100
- args: args30,
62977
+ args: args32,
62101
62978
  tool: async (client, args, ctx) => {
62102
62979
  const [result] = await evalTemplatesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62103
62980
  if (!result.ok) {
@@ -62169,9 +63046,9 @@ var init_v2librarylistop = __esm(() => {
62169
63046
 
62170
63047
  // src/funcs/libraryList.ts
62171
63048
  function libraryList(client$, request, options) {
62172
- return new APIPromise($do39(client$, request, options));
63049
+ return new APIPromise($do41(client$, request, options));
62173
63050
  }
62174
- async function $do39(client$, request, options) {
63051
+ async function $do41(client$, request, options) {
62175
63052
  const parsed$ = safeParse4(request, (value$) => V2LibraryListRequest$zodSchema.optional().parse(value$), "Input validation failed");
62176
63053
  if (!parsed$.ok) {
62177
63054
  return [parsed$, { status: "invalid" }];
@@ -62246,12 +63123,12 @@ var init_libraryList = __esm(() => {
62246
63123
  });
62247
63124
 
62248
63125
  // src/mcp-server/tools/libraryList.ts
62249
- var args31, tool$libraryList;
63126
+ var args33, tool$libraryList;
62250
63127
  var init_libraryList2 = __esm(() => {
62251
63128
  init_libraryList();
62252
63129
  init_v2librarylistop();
62253
63130
  init_tools();
62254
- args31 = {
63131
+ args33 = {
62255
63132
  request: V2LibraryListRequest$zodSchema.optional()
62256
63133
  };
62257
63134
  tool$libraryList = {
@@ -62266,7 +63143,7 @@ Returns the Library's pages and redirects together, most recently updated first,
62266
63143
  openWorldHint: false,
62267
63144
  readOnlyHint: true
62268
63145
  },
62269
- args: args31,
63146
+ args: args33,
62270
63147
  tool: async (client, args, ctx) => {
62271
63148
  const [result] = await libraryList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62272
63149
  if (!result.ok) {
@@ -62294,9 +63171,9 @@ var init_createlibrarypagerequest = __esm(() => {
62294
63171
 
62295
63172
  // src/funcs/libraryPagesCreate.ts
62296
63173
  function libraryPagesCreate(client$, request, options) {
62297
- return new APIPromise($do40(client$, request, options));
63174
+ return new APIPromise($do42(client$, request, options));
62298
63175
  }
62299
- async function $do40(client$, request, options) {
63176
+ async function $do42(client$, request, options) {
62300
63177
  const parsed$ = safeParse4(request, (value$) => CreateLibraryPageRequest$zodSchema.parse(value$), "Input validation failed");
62301
63178
  if (!parsed$.ok) {
62302
63179
  return [parsed$, { status: "invalid" }];
@@ -62366,12 +63243,12 @@ var init_libraryPagesCreate = __esm(() => {
62366
63243
  });
62367
63244
 
62368
63245
  // src/mcp-server/tools/libraryPagesCreate.ts
62369
- var args32, tool$libraryPagesCreate;
63246
+ var args34, tool$libraryPagesCreate;
62370
63247
  var init_libraryPagesCreate2 = __esm(() => {
62371
63248
  init_libraryPagesCreate();
62372
63249
  init_createlibrarypagerequest();
62373
63250
  init_tools();
62374
- args32 = {
63251
+ args34 = {
62375
63252
  request: CreateLibraryPageRequest$zodSchema
62376
63253
  };
62377
63254
  tool$libraryPagesCreate = {
@@ -62386,7 +63263,7 @@ Adds a live page to the Library to track its citations and agent visits. Trackin
62386
63263
  openWorldHint: false,
62387
63264
  readOnlyHint: false
62388
63265
  },
62389
- args: args32,
63266
+ args: args34,
62390
63267
  tool: async (client, args, ctx) => {
62391
63268
  const [result] = await libraryPagesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62392
63269
  if (!result.ok) {
@@ -62472,9 +63349,9 @@ var init_v2librarypagesretrieveop = __esm(() => {
62472
63349
 
62473
63350
  // src/funcs/libraryPagesGet.ts
62474
63351
  function libraryPagesGet(client$, request, options) {
62475
- return new APIPromise($do41(client$, request, options));
63352
+ return new APIPromise($do43(client$, request, options));
62476
63353
  }
62477
- async function $do41(client$, request, options) {
63354
+ async function $do43(client$, request, options) {
62478
63355
  const parsed$ = safeParse4(request, (value$) => V2LibraryPagesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
62479
63356
  if (!parsed$.ok) {
62480
63357
  return [parsed$, { status: "invalid" }];
@@ -62549,12 +63426,12 @@ var init_libraryPagesGet = __esm(() => {
62549
63426
  });
62550
63427
 
62551
63428
  // src/mcp-server/tools/libraryPagesGet.ts
62552
- var args33, tool$libraryPagesGet;
63429
+ var args35, tool$libraryPagesGet;
62553
63430
  var init_libraryPagesGet2 = __esm(() => {
62554
63431
  init_libraryPagesGet();
62555
63432
  init_v2librarypagesretrieveop();
62556
63433
  init_tools();
62557
- args33 = {
63434
+ args35 = {
62558
63435
  request: V2LibraryPagesRetrieveRequest$zodSchema
62559
63436
  };
62560
63437
  tool$libraryPagesGet = {
@@ -62569,7 +63446,7 @@ Returns one Library page with its tracking and first-citation milestones.`,
62569
63446
  openWorldHint: false,
62570
63447
  readOnlyHint: true
62571
63448
  },
62572
- args: args33,
63449
+ args: args35,
62573
63450
  tool: async (client, args, ctx) => {
62574
63451
  const [result] = await libraryPagesGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62575
63452
  if (!result.ok) {
@@ -62672,9 +63549,9 @@ var init_v2librarypagesinsightsop = __esm(() => {
62672
63549
 
62673
63550
  // src/funcs/libraryPagesInsights.ts
62674
63551
  function libraryPagesInsights(client$, request, options) {
62675
- return new APIPromise($do42(client$, request, options));
63552
+ return new APIPromise($do44(client$, request, options));
62676
63553
  }
62677
- async function $do42(client$, request, options) {
63554
+ async function $do44(client$, request, options) {
62678
63555
  const parsed$ = safeParse4(request, (value$) => V2LibraryPagesInsightsRequest$zodSchema.parse(value$), "Input validation failed");
62679
63556
  if (!parsed$.ok) {
62680
63557
  return [parsed$, { status: "invalid" }];
@@ -62753,12 +63630,12 @@ var init_libraryPagesInsights = __esm(() => {
62753
63630
  });
62754
63631
 
62755
63632
  // src/mcp-server/tools/libraryPagesInsights.ts
62756
- var args34, tool$libraryPagesInsights;
63633
+ var args36, tool$libraryPagesInsights;
62757
63634
  var init_libraryPagesInsights2 = __esm(() => {
62758
63635
  init_libraryPagesInsights();
62759
63636
  init_v2librarypagesinsightsop();
62760
63637
  init_tools();
62761
- args34 = {
63638
+ args36 = {
62762
63639
  request: V2LibraryPagesInsightsRequest$zodSchema
62763
63640
  };
62764
63641
  tool$libraryPagesInsights = {
@@ -62773,7 +63650,7 @@ Returns a page's citations and agent visits per day, the last period against the
62773
63650
  openWorldHint: false,
62774
63651
  readOnlyHint: true
62775
63652
  },
62776
- args: args34,
63653
+ args: args36,
62777
63654
  tool: async (client, args, ctx) => {
62778
63655
  const [result] = await libraryPagesInsights(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62779
63656
  if (!result.ok) {
@@ -62819,9 +63696,9 @@ var init_v2librarypageslistop = __esm(() => {
62819
63696
 
62820
63697
  // src/funcs/libraryPagesList.ts
62821
63698
  function libraryPagesList(client$, request, options) {
62822
- return new APIPromise($do43(client$, request, options));
63699
+ return new APIPromise($do45(client$, request, options));
62823
63700
  }
62824
- async function $do43(client$, request, options) {
63701
+ async function $do45(client$, request, options) {
62825
63702
  const parsed$ = safeParse4(request, (value$) => V2LibraryPagesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
62826
63703
  if (!parsed$.ok) {
62827
63704
  return [parsed$, { status: "invalid" }];
@@ -62896,12 +63773,12 @@ var init_libraryPagesList = __esm(() => {
62896
63773
  });
62897
63774
 
62898
63775
  // src/mcp-server/tools/libraryPagesList.ts
62899
- var args35, tool$libraryPagesList;
63776
+ var args37, tool$libraryPagesList;
62900
63777
  var init_libraryPagesList2 = __esm(() => {
62901
63778
  init_libraryPagesList();
62902
63779
  init_v2librarypageslistop();
62903
63780
  init_tools();
62904
- args35 = {
63781
+ args37 = {
62905
63782
  request: V2LibraryPagesListRequest$zodSchema.optional()
62906
63783
  };
62907
63784
  tool$libraryPagesList = {
@@ -62916,7 +63793,7 @@ Returns live pages in the Library, most recently updated first, with their citat
62916
63793
  openWorldHint: false,
62917
63794
  readOnlyHint: true
62918
63795
  },
62919
- args: args35,
63796
+ args: args37,
62920
63797
  tool: async (client, args, ctx) => {
62921
63798
  const [result] = await libraryPagesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62922
63799
  if (!result.ok) {
@@ -62959,9 +63836,9 @@ var init_v2librarypagesupdateop = __esm(() => {
62959
63836
 
62960
63837
  // src/funcs/libraryPagesUpdate.ts
62961
63838
  function libraryPagesUpdate(client$, request, options) {
62962
- return new APIPromise($do44(client$, request, options));
63839
+ return new APIPromise($do46(client$, request, options));
62963
63840
  }
62964
- async function $do44(client$, request, options) {
63841
+ async function $do46(client$, request, options) {
62965
63842
  const parsed$ = safeParse4(request, (value$) => V2LibraryPagesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
62966
63843
  if (!parsed$.ok) {
62967
63844
  return [parsed$, { status: "invalid" }];
@@ -63037,12 +63914,12 @@ var init_libraryPagesUpdate = __esm(() => {
63037
63914
  });
63038
63915
 
63039
63916
  // src/mcp-server/tools/libraryPagesUpdate.ts
63040
- var args36, tool$libraryPagesUpdate;
63917
+ var args38, tool$libraryPagesUpdate;
63041
63918
  var init_libraryPagesUpdate2 = __esm(() => {
63042
63919
  init_libraryPagesUpdate();
63043
63920
  init_v2librarypagesupdateop();
63044
63921
  init_tools();
63045
- args36 = {
63922
+ args38 = {
63046
63923
  request: V2LibraryPagesUpdateRequest$zodSchema
63047
63924
  };
63048
63925
  tool$libraryPagesUpdate = {
@@ -63057,7 +63934,7 @@ Renames a Library page or changes the day it went live; omitted fields remain un
63057
63934
  openWorldHint: false,
63058
63935
  readOnlyHint: false
63059
63936
  },
63060
- args: args36,
63937
+ args: args38,
63061
63938
  tool: async (client, args, ctx) => {
63062
63939
  const [result] = await libraryPagesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63063
63940
  if (!result.ok) {
@@ -63115,9 +63992,9 @@ var init_v2libraryredirectscheckop = __esm(() => {
63115
63992
 
63116
63993
  // src/funcs/libraryRedirectsCheck.ts
63117
63994
  function libraryRedirectsCheck(client$, request, options) {
63118
- return new APIPromise($do45(client$, request, options));
63995
+ return new APIPromise($do47(client$, request, options));
63119
63996
  }
63120
- async function $do45(client$, request, options) {
63997
+ async function $do47(client$, request, options) {
63121
63998
  const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsCheckRequest$zodSchema.parse(value$), "Input validation failed");
63122
63999
  if (!parsed$.ok) {
63123
64000
  return [parsed$, { status: "invalid" }];
@@ -63191,12 +64068,12 @@ var init_libraryRedirectsCheck = __esm(() => {
63191
64068
  });
63192
64069
 
63193
64070
  // src/mcp-server/tools/libraryRedirectsCheck.ts
63194
- var args37, tool$libraryRedirectsCheck;
64071
+ var args39, tool$libraryRedirectsCheck;
63195
64072
  var init_libraryRedirectsCheck2 = __esm(() => {
63196
64073
  init_libraryRedirectsCheck();
63197
64074
  init_v2libraryredirectscheckop();
63198
64075
  init_tools();
63199
- args37 = {
64076
+ args39 = {
63200
64077
  request: V2LibraryRedirectsCheckRequest$zodSchema
63201
64078
  };
63202
64079
  tool$libraryRedirectsCheck = {
@@ -63211,7 +64088,7 @@ Before recording a redirect: whether its old address is on a site Agent Analytic
63211
64088
  openWorldHint: false,
63212
64089
  readOnlyHint: true
63213
64090
  },
63214
- args: args37,
64091
+ args: args39,
63215
64092
  tool: async (client, args, ctx) => {
63216
64093
  const [result] = await libraryRedirectsCheck(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63217
64094
  if (!result.ok) {
@@ -63240,9 +64117,9 @@ var init_createlibraryredirectrequest = __esm(() => {
63240
64117
 
63241
64118
  // src/funcs/libraryRedirectsCreate.ts
63242
64119
  function libraryRedirectsCreate(client$, request, options) {
63243
- return new APIPromise($do46(client$, request, options));
64120
+ return new APIPromise($do48(client$, request, options));
63244
64121
  }
63245
- async function $do46(client$, request, options) {
64122
+ async function $do48(client$, request, options) {
63246
64123
  const parsed$ = safeParse4(request, (value$) => CreateLibraryRedirectRequest$zodSchema.parse(value$), "Input validation failed");
63247
64124
  if (!parsed$.ok) {
63248
64125
  return [parsed$, { status: "invalid" }];
@@ -63312,12 +64189,12 @@ var init_libraryRedirectsCreate = __esm(() => {
63312
64189
  });
63313
64190
 
63314
64191
  // src/mcp-server/tools/libraryRedirectsCreate.ts
63315
- var args38, tool$libraryRedirectsCreate;
64192
+ var args40, tool$libraryRedirectsCreate;
63316
64193
  var init_libraryRedirectsCreate2 = __esm(() => {
63317
64194
  init_libraryRedirectsCreate();
63318
64195
  init_createlibraryredirectrequest();
63319
64196
  init_tools();
63320
- args38 = {
64197
+ args40 = {
63321
64198
  request: CreateLibraryRedirectRequest$zodSchema
63322
64199
  };
63323
64200
  tool$libraryRedirectsCreate = {
@@ -63332,7 +64209,7 @@ Records a redirect that is live on your site, so the Library can show whether it
63332
64209
  openWorldHint: false,
63333
64210
  readOnlyHint: false
63334
64211
  },
63335
- args: args38,
64212
+ args: args40,
63336
64213
  tool: async (client, args, ctx) => {
63337
64214
  const [result] = await libraryRedirectsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63338
64215
  if (!result.ok) {
@@ -63379,9 +64256,9 @@ var init_v2libraryredirectsretrieveop = __esm(() => {
63379
64256
 
63380
64257
  // src/funcs/libraryRedirectsGet.ts
63381
64258
  function libraryRedirectsGet(client$, request, options) {
63382
- return new APIPromise($do47(client$, request, options));
64259
+ return new APIPromise($do49(client$, request, options));
63383
64260
  }
63384
- async function $do47(client$, request, options) {
64261
+ async function $do49(client$, request, options) {
63385
64262
  const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
63386
64263
  if (!parsed$.ok) {
63387
64264
  return [parsed$, { status: "invalid" }];
@@ -63456,12 +64333,12 @@ var init_libraryRedirectsGet = __esm(() => {
63456
64333
  });
63457
64334
 
63458
64335
  // src/mcp-server/tools/libraryRedirectsGet.ts
63459
- var args39, tool$libraryRedirectsGet;
64336
+ var args41, tool$libraryRedirectsGet;
63460
64337
  var init_libraryRedirectsGet2 = __esm(() => {
63461
64338
  init_libraryRedirectsGet();
63462
64339
  init_v2libraryredirectsretrieveop();
63463
64340
  init_tools();
63464
- args39 = {
64341
+ args41 = {
63465
64342
  request: V2LibraryRedirectsRetrieveRequest$zodSchema
63466
64343
  };
63467
64344
  tool$libraryRedirectsGet = {
@@ -63476,7 +64353,7 @@ Returns one Library redirect.`,
63476
64353
  openWorldHint: false,
63477
64354
  readOnlyHint: true
63478
64355
  },
63479
- args: args39,
64356
+ args: args41,
63480
64357
  tool: async (client, args, ctx) => {
63481
64358
  const [result] = await libraryRedirectsGet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63482
64359
  if (!result.ok) {
@@ -63621,9 +64498,9 @@ var init_v2libraryredirectsinsightsop = __esm(() => {
63621
64498
 
63622
64499
  // src/funcs/libraryRedirectsInsights.ts
63623
64500
  function libraryRedirectsInsights(client$, request, options) {
63624
- return new APIPromise($do48(client$, request, options));
64501
+ return new APIPromise($do50(client$, request, options));
63625
64502
  }
63626
- async function $do48(client$, request, options) {
64503
+ async function $do50(client$, request, options) {
63627
64504
  const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsInsightsRequest$zodSchema.parse(value$), "Input validation failed");
63628
64505
  if (!parsed$.ok) {
63629
64506
  return [parsed$, { status: "invalid" }];
@@ -63698,12 +64575,12 @@ var init_libraryRedirectsInsights = __esm(() => {
63698
64575
  });
63699
64576
 
63700
64577
  // src/mcp-server/tools/libraryRedirectsInsights.ts
63701
- var args40, tool$libraryRedirectsInsights;
64578
+ var args42, tool$libraryRedirectsInsights;
63702
64579
  var init_libraryRedirectsInsights2 = __esm(() => {
63703
64580
  init_libraryRedirectsInsights();
63704
64581
  init_v2libraryredirectsinsightsop();
63705
64582
  init_tools();
63706
- args40 = {
64583
+ args42 = {
63707
64584
  request: V2LibraryRedirectsInsightsRequest$zodSchema
63708
64585
  };
63709
64586
  tool$libraryRedirectsInsights = {
@@ -63718,7 +64595,7 @@ Whether agents that ask for the old address are now redirected: what Agent Analy
63718
64595
  openWorldHint: false,
63719
64596
  readOnlyHint: true
63720
64597
  },
63721
- args: args40,
64598
+ args: args42,
63722
64599
  tool: async (client, args, ctx) => {
63723
64600
  const [result] = await libraryRedirectsInsights(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63724
64601
  if (!result.ok) {
@@ -63789,9 +64666,9 @@ var init_v2libraryredirectslistop = __esm(() => {
63789
64666
 
63790
64667
  // src/funcs/libraryRedirectsList.ts
63791
64668
  function libraryRedirectsList(client$, request, options) {
63792
- return new APIPromise($do49(client$, request, options));
64669
+ return new APIPromise($do51(client$, request, options));
63793
64670
  }
63794
- async function $do49(client$, request, options) {
64671
+ async function $do51(client$, request, options) {
63795
64672
  const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
63796
64673
  if (!parsed$.ok) {
63797
64674
  return [parsed$, { status: "invalid" }];
@@ -63865,12 +64742,12 @@ var init_libraryRedirectsList = __esm(() => {
63865
64742
  });
63866
64743
 
63867
64744
  // src/mcp-server/tools/libraryRedirectsList.ts
63868
- var args41, tool$libraryRedirectsList;
64745
+ var args43, tool$libraryRedirectsList;
63869
64746
  var init_libraryRedirectsList2 = __esm(() => {
63870
64747
  init_libraryRedirectsList();
63871
64748
  init_v2libraryredirectslistop();
63872
64749
  init_tools();
63873
- args41 = {
64750
+ args43 = {
63874
64751
  request: V2LibraryRedirectsListRequest$zodSchema.optional()
63875
64752
  };
63876
64753
  tool$libraryRedirectsList = {
@@ -63885,7 +64762,7 @@ Returns redirects recorded in the Library, newest first, each with whether agent
63885
64762
  openWorldHint: false,
63886
64763
  readOnlyHint: true
63887
64764
  },
63888
- args: args41,
64765
+ args: args43,
63889
64766
  tool: async (client, args, ctx) => {
63890
64767
  const [result] = await libraryRedirectsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63891
64768
  if (!result.ok) {
@@ -63928,9 +64805,9 @@ var init_v2libraryredirectsupdateop = __esm(() => {
63928
64805
 
63929
64806
  // src/funcs/libraryRedirectsUpdate.ts
63930
64807
  function libraryRedirectsUpdate(client$, request, options) {
63931
- return new APIPromise($do50(client$, request, options));
64808
+ return new APIPromise($do52(client$, request, options));
63932
64809
  }
63933
- async function $do50(client$, request, options) {
64810
+ async function $do52(client$, request, options) {
63934
64811
  const parsed$ = safeParse4(request, (value$) => V2LibraryRedirectsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
63935
64812
  if (!parsed$.ok) {
63936
64813
  return [parsed$, { status: "invalid" }];
@@ -64006,12 +64883,12 @@ var init_libraryRedirectsUpdate = __esm(() => {
64006
64883
  });
64007
64884
 
64008
64885
  // src/mcp-server/tools/libraryRedirectsUpdate.ts
64009
- var args42, tool$libraryRedirectsUpdate;
64886
+ var args44, tool$libraryRedirectsUpdate;
64010
64887
  var init_libraryRedirectsUpdate2 = __esm(() => {
64011
64888
  init_libraryRedirectsUpdate();
64012
64889
  init_v2libraryredirectsupdateop();
64013
64890
  init_tools();
64014
- args42 = {
64891
+ args44 = {
64015
64892
  request: V2LibraryRedirectsUpdateRequest$zodSchema
64016
64893
  };
64017
64894
  tool$libraryRedirectsUpdate = {
@@ -64026,7 +64903,7 @@ Renames a Library redirect or changes the day it went live; omitted fields remai
64026
64903
  openWorldHint: false,
64027
64904
  readOnlyHint: false
64028
64905
  },
64029
- args: args42,
64906
+ args: args44,
64030
64907
  tool: async (client, args, ctx) => {
64031
64908
  const [result] = await libraryRedirectsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64032
64909
  if (!result.ok) {
@@ -64042,9 +64919,9 @@ Renames a Library redirect or changes the day it went live; omitted fields remai
64042
64919
 
64043
64920
  // src/funcs/mcpServersList.ts
64044
64921
  function mcpServersList(client$, options) {
64045
- return new APIPromise($do51(client$, options));
64922
+ return new APIPromise($do53(client$, options));
64046
64923
  }
64047
- async function $do51(client$, options) {
64924
+ async function $do53(client$, options) {
64048
64925
  const path$ = pathToFunc("/v2/mcp-servers")();
64049
64926
  const headers$ = new Headers(compactMap({
64050
64927
  Accept: "application/json"
@@ -64226,9 +65103,9 @@ var init_v2opportunitieslistop = __esm(() => {
64226
65103
 
64227
65104
  // src/funcs/opportunitiesList.ts
64228
65105
  function opportunitiesList(client$, request, options) {
64229
- return new APIPromise($do52(client$, request, options));
65106
+ return new APIPromise($do54(client$, request, options));
64230
65107
  }
64231
- async function $do52(client$, request, options) {
65108
+ async function $do54(client$, request, options) {
64232
65109
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesListRequest$zodSchema.optional().parse(value$), "Input validation failed");
64233
65110
  if (!parsed$.ok) {
64234
65111
  return [parsed$, { status: "invalid" }];
@@ -64306,12 +65183,12 @@ var init_opportunitiesList = __esm(() => {
64306
65183
  });
64307
65184
 
64308
65185
  // src/mcp-server/tools/opportunitiesList.ts
64309
- var args43, tool$opportunitiesList;
65186
+ var args45, tool$opportunitiesList;
64310
65187
  var init_opportunitiesList2 = __esm(() => {
64311
65188
  init_opportunitiesList();
64312
65189
  init_v2opportunitieslistop();
64313
65190
  init_tools();
64314
- args43 = {
65191
+ args45 = {
64315
65192
  request: V2OpportunitiesListRequest$zodSchema.optional()
64316
65193
  };
64317
65194
  tool$opportunitiesList = {
@@ -64326,7 +65203,7 @@ Returns ranked opportunities computed from stored prompt visibility results. Eac
64326
65203
  openWorldHint: false,
64327
65204
  readOnlyHint: true
64328
65205
  },
64329
- args: args43,
65206
+ args: args45,
64330
65207
  tool: async (client, args, ctx) => {
64331
65208
  const [result] = await opportunitiesList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64332
65209
  if (!result.ok) {
@@ -64398,9 +65275,9 @@ var init_v2opportunitiesretrieveop = __esm(() => {
64398
65275
 
64399
65276
  // src/funcs/opportunitiesRetrieve.ts
64400
65277
  function opportunitiesRetrieve(client$, request, options) {
64401
- return new APIPromise($do53(client$, request, options));
65278
+ return new APIPromise($do55(client$, request, options));
64402
65279
  }
64403
- async function $do53(client$, request, options) {
65280
+ async function $do55(client$, request, options) {
64404
65281
  const parsed$ = safeParse4(request, (value$) => V2OpportunitiesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
64405
65282
  if (!parsed$.ok) {
64406
65283
  return [parsed$, { status: "invalid" }];
@@ -64481,12 +65358,12 @@ var init_opportunitiesRetrieve = __esm(() => {
64481
65358
  });
64482
65359
 
64483
65360
  // src/mcp-server/tools/opportunitiesRetrieve.ts
64484
- var args44, tool$opportunitiesRetrieve;
65361
+ var args46, tool$opportunitiesRetrieve;
64485
65362
  var init_opportunitiesRetrieve2 = __esm(() => {
64486
65363
  init_opportunitiesRetrieve();
64487
65364
  init_v2opportunitiesretrieveop();
64488
65365
  init_tools();
64489
- args44 = {
65366
+ args46 = {
64490
65367
  request: V2OpportunitiesRetrieveRequest$zodSchema
64491
65368
  };
64492
65369
  tool$opportunitiesRetrieve = {
@@ -64501,7 +65378,7 @@ Returns one computed opportunity and its execution context for the selected date
64501
65378
  openWorldHint: false,
64502
65379
  readOnlyHint: true
64503
65380
  },
64504
- args: args44,
65381
+ args: args46,
64505
65382
  tool: async (client, args, ctx) => {
64506
65383
  const [result] = await opportunitiesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64507
65384
  if (!result.ok) {
@@ -64558,9 +65435,9 @@ var init_v2pluginevalsresultslistop = __esm(() => {
64558
65435
 
64559
65436
  // src/funcs/pluginEvalsResultsList.ts
64560
65437
  function pluginEvalsResultsList(client$, request, options) {
64561
- return new APIPromise($do54(client$, request, options));
65438
+ return new APIPromise($do56(client$, request, options));
64562
65439
  }
64563
- async function $do54(client$, request, options) {
65440
+ async function $do56(client$, request, options) {
64564
65441
  const parsed$ = safeParse4(request, (value$) => V2PluginEvalsResultsListRequest$zodSchema.parse(value$), "Input validation failed");
64565
65442
  if (!parsed$.ok) {
64566
65443
  return [parsed$, { status: "invalid" }];
@@ -64633,12 +65510,12 @@ var init_pluginEvalsResultsList = __esm(() => {
64633
65510
  });
64634
65511
 
64635
65512
  // src/mcp-server/tools/pluginEvalsResultsList.ts
64636
- var args45, tool$pluginEvalsResultsList;
65513
+ var args47, tool$pluginEvalsResultsList;
64637
65514
  var init_pluginEvalsResultsList2 = __esm(() => {
64638
65515
  init_pluginEvalsResultsList();
64639
65516
  init_v2pluginevalsresultslistop();
64640
65517
  init_tools();
64641
- args45 = {
65518
+ args47 = {
64642
65519
  request: V2PluginEvalsResultsListRequest$zodSchema
64643
65520
  };
64644
65521
  tool$pluginEvalsResultsList = {
@@ -64653,7 +65530,7 @@ Returns a day's plugin eval results, one per plugin with results that day. Each
64653
65530
  openWorldHint: false,
64654
65531
  readOnlyHint: true
64655
65532
  },
64656
- args: args45,
65533
+ args: args47,
64657
65534
  tool: async (client, args, ctx) => {
64658
65535
  const [result] = await pluginEvalsResultsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64659
65536
  if (!result.ok) {
@@ -64709,9 +65586,9 @@ var init_createv2promptsrequest = __esm(() => {
64709
65586
 
64710
65587
  // src/funcs/promptsCreate.ts
64711
65588
  function promptsCreate(client$, request, options) {
64712
- return new APIPromise($do55(client$, request, options));
65589
+ return new APIPromise($do57(client$, request, options));
64713
65590
  }
64714
- async function $do55(client$, request, options) {
65591
+ async function $do57(client$, request, options) {
64715
65592
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptsRequest$zodSchema.parse(value$), "Input validation failed");
64716
65593
  if (!parsed$.ok) {
64717
65594
  return [parsed$, { status: "invalid" }];
@@ -64781,12 +65658,12 @@ var init_promptsCreate = __esm(() => {
64781
65658
  });
64782
65659
 
64783
65660
  // src/mcp-server/tools/promptsCreate.ts
64784
- var args46, tool$promptsCreate;
65661
+ var args48, tool$promptsCreate;
64785
65662
  var init_promptsCreate2 = __esm(() => {
64786
65663
  init_promptsCreate();
64787
65664
  init_createv2promptsrequest();
64788
65665
  init_tools();
64789
- args46 = {
65666
+ args48 = {
64790
65667
  request: CreateV2PromptsRequest$zodSchema
64791
65668
  };
64792
65669
  tool$promptsCreate = {
@@ -64801,7 +65678,7 @@ Creates prompts in a batch. Each item is validated independently, so the respons
64801
65678
  openWorldHint: false,
64802
65679
  readOnlyHint: false
64803
65680
  },
64804
- args: args46,
65681
+ args: args48,
64805
65682
  tool: async (client, args, ctx) => {
64806
65683
  const [result] = await promptsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64807
65684
  if (!result.ok) {
@@ -64841,9 +65718,9 @@ var init_v2promptsdeleteop = __esm(() => {
64841
65718
 
64842
65719
  // src/funcs/promptsDelete.ts
64843
65720
  function promptsDelete(client$, request, options) {
64844
- return new APIPromise($do56(client$, request, options));
65721
+ return new APIPromise($do58(client$, request, options));
64845
65722
  }
64846
- async function $do56(client$, request, options) {
65723
+ async function $do58(client$, request, options) {
64847
65724
  const parsed$ = safeParse4(request, (value$) => V2PromptsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
64848
65725
  if (!parsed$.ok) {
64849
65726
  return [parsed$, { status: "invalid" }];
@@ -64918,12 +65795,12 @@ var init_promptsDelete = __esm(() => {
64918
65795
  });
64919
65796
 
64920
65797
  // src/mcp-server/tools/promptsDelete.ts
64921
- var args47, tool$promptsDelete;
65798
+ var args49, tool$promptsDelete;
64922
65799
  var init_promptsDelete2 = __esm(() => {
64923
65800
  init_promptsDelete();
64924
65801
  init_v2promptsdeleteop();
64925
65802
  init_tools();
64926
- args47 = {
65803
+ args49 = {
64927
65804
  request: V2PromptsDeleteRequest$zodSchema
64928
65805
  };
64929
65806
  tool$promptsDelete = {
@@ -64938,7 +65815,7 @@ Archives the prompt and excludes it from normal listings while preserving its hi
64938
65815
  openWorldHint: false,
64939
65816
  readOnlyHint: false
64940
65817
  },
64941
- args: args47,
65818
+ args: args49,
64942
65819
  tool: async (client, args, ctx) => {
64943
65820
  const [result] = await promptsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64944
65821
  if (!result.ok) {
@@ -65071,9 +65948,9 @@ var init_v2promptslistop = __esm(() => {
65071
65948
 
65072
65949
  // src/funcs/promptsList.ts
65073
65950
  function promptsList(client$, request, options) {
65074
- return new APIPromise($do57(client$, request, options));
65951
+ return new APIPromise($do59(client$, request, options));
65075
65952
  }
65076
- async function $do57(client$, request, options) {
65953
+ async function $do59(client$, request, options) {
65077
65954
  const parsed$ = safeParse4(request, (value$) => V2PromptsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
65078
65955
  if (!parsed$.ok) {
65079
65956
  return [parsed$, { status: "invalid" }];
@@ -65150,12 +66027,12 @@ var init_promptsList = __esm(() => {
65150
66027
  });
65151
66028
 
65152
66029
  // src/mcp-server/tools/promptsList.ts
65153
- var args48, tool$promptsList;
66030
+ var args50, tool$promptsList;
65154
66031
  var init_promptsList2 = __esm(() => {
65155
66032
  init_promptsList();
65156
66033
  init_v2promptslistop();
65157
66034
  init_tools();
65158
- args48 = {
66035
+ args50 = {
65159
66036
  request: V2PromptsListRequest$zodSchema.optional()
65160
66037
  };
65161
66038
  tool$promptsList = {
@@ -65170,7 +66047,7 @@ Returns active and inactive prompts by default, newest first. Set \`include_arch
65170
66047
  openWorldHint: false,
65171
66048
  readOnlyHint: true
65172
66049
  },
65173
- args: args48,
66050
+ args: args50,
65174
66051
  tool: async (client, args, ctx) => {
65175
66052
  const [result] = await promptsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65176
66053
  if (!result.ok) {
@@ -65201,9 +66078,9 @@ var init_v2promptsretrieveop = __esm(() => {
65201
66078
 
65202
66079
  // src/funcs/promptsRetrieve.ts
65203
66080
  function promptsRetrieve(client$, request, options) {
65204
- return new APIPromise($do58(client$, request, options));
66081
+ return new APIPromise($do60(client$, request, options));
65205
66082
  }
65206
- async function $do58(client$, request, options) {
66083
+ async function $do60(client$, request, options) {
65207
66084
  const parsed$ = safeParse4(request, (value$) => V2PromptsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
65208
66085
  if (!parsed$.ok) {
65209
66086
  return [parsed$, { status: "invalid" }];
@@ -65278,12 +66155,12 @@ var init_promptsRetrieve = __esm(() => {
65278
66155
  });
65279
66156
 
65280
66157
  // src/mcp-server/tools/promptsRetrieve.ts
65281
- var args49, tool$promptsRetrieve;
66158
+ var args51, tool$promptsRetrieve;
65282
66159
  var init_promptsRetrieve2 = __esm(() => {
65283
66160
  init_promptsRetrieve();
65284
66161
  init_v2promptsretrieveop();
65285
66162
  init_tools();
65286
- args49 = {
66163
+ args51 = {
65287
66164
  request: V2PromptsRetrieveRequest$zodSchema
65288
66165
  };
65289
66166
  tool$promptsRetrieve = {
@@ -65298,7 +66175,7 @@ Returns a prompt with its topic, platforms, tags, lifecycle status, and coding-a
65298
66175
  openWorldHint: false,
65299
66176
  readOnlyHint: true
65300
66177
  },
65301
- args: args49,
66178
+ args: args51,
65302
66179
  tool: async (client, args, ctx) => {
65303
66180
  const [result] = await promptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65304
66181
  if (!result.ok) {
@@ -65325,9 +66202,9 @@ var init_createv2promptrunrequest = __esm(() => {
65325
66202
 
65326
66203
  // src/funcs/promptsRun.ts
65327
66204
  function promptsRun(client$, request, options) {
65328
- return new APIPromise($do59(client$, request, options));
66205
+ return new APIPromise($do61(client$, request, options));
65329
66206
  }
65330
- async function $do59(client$, request, options) {
66207
+ async function $do61(client$, request, options) {
65331
66208
  const parsed$ = safeParse4(request, (value$) => CreateV2PromptRunRequest$zodSchema.parse(value$), "Input validation failed");
65332
66209
  if (!parsed$.ok) {
65333
66210
  return [parsed$, { status: "invalid" }];
@@ -65397,12 +66274,12 @@ var init_promptsRun = __esm(() => {
65397
66274
  });
65398
66275
 
65399
66276
  // src/mcp-server/tools/promptsRun.ts
65400
- var args50, tool$promptsRun;
66277
+ var args52, tool$promptsRun;
65401
66278
  var init_promptsRun2 = __esm(() => {
65402
66279
  init_promptsRun();
65403
66280
  init_createv2promptrunrequest();
65404
66281
  init_tools();
65405
- args50 = {
66282
+ args52 = {
65406
66283
  request: CreateV2PromptRunRequest$zodSchema
65407
66284
  };
65408
66285
  tool$promptsRun = {
@@ -65427,7 +66304,7 @@ coding-agent targets. The response returns a run ID to poll with
65427
66304
  openWorldHint: false,
65428
66305
  readOnlyHint: false
65429
66306
  },
65430
- args: args50,
66307
+ args: args52,
65431
66308
  tool: async (client, args, ctx) => {
65432
66309
  const [result] = await promptsRun(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65433
66310
  if (!result.ok) {
@@ -65514,9 +66391,9 @@ var init_v2promptrunscancelop = __esm(() => {
65514
66391
 
65515
66392
  // src/funcs/promptsRunCancel.ts
65516
66393
  function promptsRunCancel(client$, request, options) {
65517
- return new APIPromise($do60(client$, request, options));
66394
+ return new APIPromise($do62(client$, request, options));
65518
66395
  }
65519
- async function $do60(client$, request, options) {
66396
+ async function $do62(client$, request, options) {
65520
66397
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
65521
66398
  if (!parsed$.ok) {
65522
66399
  return [parsed$, { status: "invalid" }];
@@ -65591,12 +66468,12 @@ var init_promptsRunCancel = __esm(() => {
65591
66468
  });
65592
66469
 
65593
66470
  // src/mcp-server/tools/promptsRunCancel.ts
65594
- var args51, tool$promptsRunCancel;
66471
+ var args53, tool$promptsRunCancel;
65595
66472
  var init_promptsRunCancel2 = __esm(() => {
65596
66473
  init_promptsRunCancel();
65597
66474
  init_v2promptrunscancelop();
65598
66475
  init_tools();
65599
- args51 = {
66476
+ args53 = {
65600
66477
  request: V2PromptRunsCancelRequest$zodSchema
65601
66478
  };
65602
66479
  tool$promptsRunCancel = {
@@ -65611,7 +66488,7 @@ Marks an active prompt run as cancelled and prevents queued prompts from startin
65611
66488
  openWorldHint: false,
65612
66489
  readOnlyHint: false
65613
66490
  },
65614
- args: args51,
66491
+ args: args53,
65615
66492
  tool: async (client, args, ctx) => {
65616
66493
  const [result] = await promptsRunCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65617
66494
  if (!result.ok) {
@@ -65726,9 +66603,9 @@ var init_v2promptrunslistop = __esm(() => {
65726
66603
 
65727
66604
  // src/funcs/promptsRunsList.ts
65728
66605
  function promptsRunsList(client$, request, options) {
65729
- return new APIPromise($do61(client$, request, options));
66606
+ return new APIPromise($do63(client$, request, options));
65730
66607
  }
65731
- async function $do61(client$, request, options) {
66608
+ async function $do63(client$, request, options) {
65732
66609
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
65733
66610
  if (!parsed$.ok) {
65734
66611
  return [parsed$, { status: "invalid" }];
@@ -65806,12 +66683,12 @@ var init_promptsRunsList = __esm(() => {
65806
66683
  });
65807
66684
 
65808
66685
  // src/mcp-server/tools/promptsRunsList.ts
65809
- var args52, tool$promptsRunsList;
66686
+ var args54, tool$promptsRunsList;
65810
66687
  var init_promptsRunsList2 = __esm(() => {
65811
66688
  init_promptsRunsList();
65812
66689
  init_v2promptrunslistop();
65813
66690
  init_tools();
65814
- args52 = {
66691
+ args54 = {
65815
66692
  request: V2PromptRunsListRequest$zodSchema.optional()
65816
66693
  };
65817
66694
  tool$promptsRunsList = {
@@ -65826,7 +66703,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
65826
66703
  openWorldHint: false,
65827
66704
  readOnlyHint: true
65828
66705
  },
65829
- args: args52,
66706
+ args: args54,
65830
66707
  tool: async (client, args, ctx) => {
65831
66708
  const [result] = await promptsRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65832
66709
  if (!result.ok) {
@@ -65940,9 +66817,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
65940
66817
 
65941
66818
  // src/funcs/promptsRunsRetrieve.ts
65942
66819
  function promptsRunsRetrieve(client$, request, options) {
65943
- return new APIPromise($do62(client$, request, options));
66820
+ return new APIPromise($do64(client$, request, options));
65944
66821
  }
65945
- async function $do62(client$, request, options) {
66822
+ async function $do64(client$, request, options) {
65946
66823
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
65947
66824
  if (!parsed$.ok) {
65948
66825
  return [parsed$, { status: "invalid" }];
@@ -66006,30 +66883,169 @@ async function $do62(client$, request, options) {
66006
66883
  response: doResult.value
66007
66884
  }];
66008
66885
  }
66009
- var init_promptsRunsRetrieve = __esm(() => {
66886
+ var init_promptsRunsRetrieve = __esm(() => {
66887
+ init_encodings();
66888
+ init_primitives();
66889
+ init_schemas4();
66890
+ init_security();
66891
+ init_url();
66892
+ init_v2promptrunsretrieveop();
66893
+ init_async();
66894
+ });
66895
+
66896
+ // src/mcp-server/tools/promptsRunsRetrieve.ts
66897
+ var args55, tool$promptsRunsRetrieve;
66898
+ var init_promptsRunsRetrieve2 = __esm(() => {
66899
+ init_promptsRunsRetrieve();
66900
+ init_v2promptrunsretrieveop();
66901
+ init_tools();
66902
+ args55 = {
66903
+ request: V2PromptRunsRetrieveRequest$zodSchema
66904
+ };
66905
+ tool$promptsRunsRetrieve = {
66906
+ name: "prompts-runs-retrieve",
66907
+ description: `Retrieve Prompt Run
66908
+
66909
+ Returns one stored prompt run, including mentions, citations, and any sanitized coding-agent trace captured for the run.`,
66910
+ annotations: {
66911
+ title: "",
66912
+ destructiveHint: false,
66913
+ idempotentHint: false,
66914
+ openWorldHint: false,
66915
+ readOnlyHint: true
66916
+ },
66917
+ args: args55,
66918
+ tool: async (client, args, ctx) => {
66919
+ const [result] = await promptsRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66920
+ if (!result.ok) {
66921
+ return {
66922
+ content: [{ type: "text", text: result.error.message }],
66923
+ isError: true
66924
+ };
66925
+ }
66926
+ return formatResult(result.value);
66927
+ }
66928
+ };
66929
+ });
66930
+
66931
+ // src/models/v2promptrunstatusretrieveop.ts
66932
+ var V2PromptRunStatusRetrieveRequest$zodSchema, V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema, V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema, V2PromptRunStatusRetrieveResponse$zodSchema;
66933
+ var init_v2promptrunstatusretrieveop = __esm(() => {
66934
+ init_zod();
66935
+ init_httpvalidationerror();
66936
+ init_v2promptrunjobresponse();
66937
+ V2PromptRunStatusRetrieveRequest$zodSchema = object({
66938
+ run_id: string2().describe("Run ID returned by `POST /v2/prompts/runs`, not a stored prompt result ID.")
66939
+ });
66940
+ V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema = object({
66941
+ detail: string2()
66942
+ }).describe("The prompt run job does not exist or is not visible to this API key.");
66943
+ V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema = object({
66944
+ detail: string2()
66945
+ }).describe("The prompt run ID is not a valid UUID.");
66946
+ V2PromptRunStatusRetrieveResponse$zodSchema = union([
66947
+ V2PromptRunJobResponse$zodSchema,
66948
+ lazy(() => V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema),
66949
+ lazy(() => V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema),
66950
+ HTTPValidationError$zodSchema
66951
+ ]);
66952
+ });
66953
+
66954
+ // src/funcs/promptsRunStatus.ts
66955
+ function promptsRunStatus(client$, request, options) {
66956
+ return new APIPromise($do65(client$, request, options));
66957
+ }
66958
+ async function $do65(client$, request, options) {
66959
+ const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
66960
+ if (!parsed$.ok) {
66961
+ return [parsed$, { status: "invalid" }];
66962
+ }
66963
+ const payload$ = parsed$.value;
66964
+ const body$ = null;
66965
+ const pathParams$ = {
66966
+ run_id: encodeSimple("run_id", payload$.run_id, {
66967
+ explode: false,
66968
+ charEncoding: "percent"
66969
+ })
66970
+ };
66971
+ const path$ = pathToFunc("/v2/prompts/runs/{run_id}/status")(pathParams$);
66972
+ const headers$ = new Headers(compactMap({
66973
+ Accept: "application/json"
66974
+ }));
66975
+ const securityInput = await extractSecurity(client$._options.security);
66976
+ const requestSecurity = resolveGlobalSecurity(securityInput);
66977
+ const context = {
66978
+ options: client$._options,
66979
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
66980
+ operationID: "v2_prompt_run_status_retrieve",
66981
+ oAuth2Scopes: null,
66982
+ resolvedSecurity: requestSecurity,
66983
+ securitySource: client$._options.security,
66984
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
66985
+ retryCodes: options?.retryCodes || [
66986
+ "429",
66987
+ "500",
66988
+ "502",
66989
+ "503",
66990
+ "504"
66991
+ ]
66992
+ };
66993
+ const requestRes = client$._createRequest(context, {
66994
+ security: requestSecurity,
66995
+ method: "GET",
66996
+ baseURL: options?.serverURL,
66997
+ path: path$,
66998
+ headers: headers$,
66999
+ body: body$,
67000
+ userAgent: client$._options.userAgent,
67001
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
67002
+ }, options);
67003
+ if (!requestRes.ok) {
67004
+ return [requestRes, { status: "invalid" }];
67005
+ }
67006
+ const req$ = requestRes.value;
67007
+ const doResult = await client$._do(req$, {
67008
+ context,
67009
+ errorCodes: [],
67010
+ retryConfig: context.retryConfig,
67011
+ retryCodes: context.retryCodes
67012
+ });
67013
+ if (!doResult.ok) {
67014
+ return [doResult, { status: "request-error", request: req$ }];
67015
+ }
67016
+ return [doResult, {
67017
+ status: "complete",
67018
+ request: req$,
67019
+ response: doResult.value
67020
+ }];
67021
+ }
67022
+ var init_promptsRunStatus = __esm(() => {
66010
67023
  init_encodings();
66011
67024
  init_primitives();
66012
67025
  init_schemas4();
66013
67026
  init_security();
66014
67027
  init_url();
66015
- init_v2promptrunsretrieveop();
67028
+ init_v2promptrunstatusretrieveop();
66016
67029
  init_async();
66017
67030
  });
66018
67031
 
66019
- // src/mcp-server/tools/promptsRunsRetrieve.ts
66020
- var args53, tool$promptsRunsRetrieve;
66021
- var init_promptsRunsRetrieve2 = __esm(() => {
66022
- init_promptsRunsRetrieve();
66023
- init_v2promptrunsretrieveop();
67032
+ // src/mcp-server/tools/promptsRunStatus.ts
67033
+ var args56, tool$promptsRunStatus;
67034
+ var init_promptsRunStatus2 = __esm(() => {
67035
+ init_promptsRunStatus();
67036
+ init_v2promptrunstatusretrieveop();
66024
67037
  init_tools();
66025
- args53 = {
66026
- request: V2PromptRunsRetrieveRequest$zodSchema
67038
+ args56 = {
67039
+ request: V2PromptRunStatusRetrieveRequest$zodSchema
66027
67040
  };
66028
- tool$promptsRunsRetrieve = {
66029
- name: "prompts-runs-retrieve",
66030
- description: `Retrieve Prompt Run
67041
+ tool$promptsRunStatus = {
67042
+ name: "prompts-run-status",
67043
+ description: `Get Prompt Run Status
66031
67044
 
66032
- Returns one stored prompt run, including mentions, citations, and any sanitized coding-agent trace captured for the run.`,
67045
+ Return status and progress for a queued prompt run.
67046
+
67047
+ Poll this endpoint until \`status\` is \`completed\`, \`failed\`, or \`cancelled\`.
67048
+ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
66033
67049
  annotations: {
66034
67050
  title: "",
66035
67051
  destructiveHint: false,
@@ -66037,9 +67053,9 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
66037
67053
  openWorldHint: false,
66038
67054
  readOnlyHint: true
66039
67055
  },
66040
- args: args53,
67056
+ args: args56,
66041
67057
  tool: async (client, args, ctx) => {
66042
- const [result] = await promptsRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
67058
+ const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66043
67059
  if (!result.ok) {
66044
67060
  return {
66045
67061
  content: [{ type: "text", text: result.error.message }],
@@ -66051,48 +67067,155 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
66051
67067
  };
66052
67068
  });
66053
67069
 
66054
- // src/models/v2promptrunstatusretrieveop.ts
66055
- var V2PromptRunStatusRetrieveRequest$zodSchema, V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema, V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema, V2PromptRunStatusRetrieveResponse$zodSchema;
66056
- var init_v2promptrunstatusretrieveop = __esm(() => {
66057
- init_zod();
66058
- init_httpvalidationerror();
66059
- init_v2promptrunjobresponse();
66060
- V2PromptRunStatusRetrieveRequest$zodSchema = object({
66061
- run_id: string2().describe("Run ID returned by `POST /v2/prompts/runs`, not a stored prompt result ID.")
67070
+ // src/funcs/promptsScheduleRetrieve.ts
67071
+ function promptsScheduleRetrieve(client$, options) {
67072
+ return new APIPromise($do66(client$, options));
67073
+ }
67074
+ async function $do66(client$, options) {
67075
+ const path$ = pathToFunc("/v2/prompts/schedule")();
67076
+ const headers$ = new Headers(compactMap({
67077
+ Accept: "application/json"
67078
+ }));
67079
+ const securityInput = await extractSecurity(client$._options.security);
67080
+ const requestSecurity = resolveGlobalSecurity(securityInput);
67081
+ const context = {
67082
+ options: client$._options,
67083
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
67084
+ operationID: "v2_prompt_schedule_retrieve",
67085
+ oAuth2Scopes: null,
67086
+ resolvedSecurity: requestSecurity,
67087
+ securitySource: client$._options.security,
67088
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
67089
+ retryCodes: options?.retryCodes || [
67090
+ "429",
67091
+ "500",
67092
+ "502",
67093
+ "503",
67094
+ "504"
67095
+ ]
67096
+ };
67097
+ const requestRes = client$._createRequest(context, {
67098
+ security: requestSecurity,
67099
+ method: "GET",
67100
+ baseURL: options?.serverURL,
67101
+ path: path$,
67102
+ headers: headers$,
67103
+ userAgent: client$._options.userAgent,
67104
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
67105
+ }, options);
67106
+ if (!requestRes.ok) {
67107
+ return [requestRes, { status: "invalid" }];
67108
+ }
67109
+ const req$ = requestRes.value;
67110
+ const doResult = await client$._do(req$, {
67111
+ context,
67112
+ errorCodes: [],
67113
+ retryConfig: context.retryConfig,
67114
+ retryCodes: context.retryCodes
66062
67115
  });
66063
- V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema = object({
66064
- detail: string2()
66065
- }).describe("The prompt run job does not exist or is not visible to this API key.");
66066
- V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema = object({
66067
- detail: string2()
66068
- }).describe("The prompt run ID is not a valid UUID.");
66069
- V2PromptRunStatusRetrieveResponse$zodSchema = union([
66070
- V2PromptRunJobResponse$zodSchema,
66071
- lazy(() => V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema),
66072
- lazy(() => V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema),
66073
- HTTPValidationError$zodSchema
67116
+ if (!doResult.ok) {
67117
+ return [doResult, { status: "request-error", request: req$ }];
67118
+ }
67119
+ return [doResult, {
67120
+ status: "complete",
67121
+ request: req$,
67122
+ response: doResult.value
67123
+ }];
67124
+ }
67125
+ var init_promptsScheduleRetrieve = __esm(() => {
67126
+ init_primitives();
67127
+ init_security();
67128
+ init_url();
67129
+ init_async();
67130
+ });
67131
+
67132
+ // src/mcp-server/tools/promptsScheduleRetrieve.ts
67133
+ var tool$promptsScheduleRetrieve;
67134
+ var init_promptsScheduleRetrieve2 = __esm(() => {
67135
+ init_promptsScheduleRetrieve();
67136
+ init_tools();
67137
+ tool$promptsScheduleRetrieve = {
67138
+ name: "prompts-schedule-retrieve",
67139
+ description: `Get Prompt Schedule
67140
+
67141
+ Returns whether scheduled prompt runs are on, when the daily run starts, the organization's default frequency, and how often each answer engine and coding-agent harness runs. The same settings as Settings > Schedules in the app.`,
67142
+ annotations: {
67143
+ title: "",
67144
+ destructiveHint: false,
67145
+ idempotentHint: false,
67146
+ openWorldHint: false,
67147
+ readOnlyHint: true
67148
+ },
67149
+ tool: async (client, ctx) => {
67150
+ const [result] = await promptsScheduleRetrieve(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
67151
+ if (!result.ok) {
67152
+ return {
67153
+ content: [{ type: "text", text: result.error.message }],
67154
+ isError: true
67155
+ };
67156
+ }
67157
+ return formatResult(result.value);
67158
+ }
67159
+ };
67160
+ });
67161
+
67162
+ // src/models/v2promptrunfrequencyinput.ts
67163
+ var V2PromptRunFrequencyInputAnswerEngine$zodSchema, V2PromptRunFrequencyInputFrequency$zodSchema, V2PromptRunFrequencyInput$zodSchema;
67164
+ var init_v2promptrunfrequencyinput = __esm(() => {
67165
+ init_zod();
67166
+ V2PromptRunFrequencyInputAnswerEngine$zodSchema = _enum([
67167
+ "chatgpt",
67168
+ "google-ai-overviews",
67169
+ "google-ai-mode",
67170
+ "gemini-search",
67171
+ "perplexity",
67172
+ "claude",
67173
+ "microsoft-copilot"
66074
67174
  ]);
67175
+ V2PromptRunFrequencyInputFrequency$zodSchema = _enum([
67176
+ "daily",
67177
+ "every_other_day",
67178
+ "weekly",
67179
+ "default"
67180
+ ]).describe("How often this answer engine or harness runs your prompts on schedule. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve. `default` puts it back on the organization's default frequency.");
67181
+ V2PromptRunFrequencyInput$zodSchema = object({
67182
+ answer_engine: V2PromptRunFrequencyInputAnswerEngine$zodSchema.nullable().optional().describe("Answer engine to set. Set this or `harness`, not both."),
67183
+ frequency: V2PromptRunFrequencyInputFrequency$zodSchema.describe("How often this answer engine or harness runs your prompts on schedule. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve. `default` puts it back on the organization's default frequency."),
67184
+ harness: string2().nullable().optional().describe("Coding-agent harness to set, such as `claude-code`, from the `harness` field of `GET /v2/agents`. It covers every model on the harness. Set this or `answer_engine`, not both.")
67185
+ });
66075
67186
  });
66076
67187
 
66077
- // src/funcs/promptsRunStatus.ts
66078
- function promptsRunStatus(client$, request, options) {
66079
- return new APIPromise($do63(client$, request, options));
67188
+ // src/models/updatev2promptschedulerequest.ts
67189
+ var UpdateV2PromptScheduleRequestFrequency$zodSchema, UpdateV2PromptScheduleRequest$zodSchema;
67190
+ var init_updatev2promptschedulerequest = __esm(() => {
67191
+ init_zod();
67192
+ init_v2promptrunfrequencyinput();
67193
+ UpdateV2PromptScheduleRequestFrequency$zodSchema = _enum([
67194
+ "daily",
67195
+ "every_other_day",
67196
+ "weekly"
67197
+ ]).describe("The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.");
67198
+ UpdateV2PromptScheduleRequest$zodSchema = object({
67199
+ enabled: boolean2().optional().describe("Turn scheduled prompt runs on or off for the organization."),
67200
+ frequencies: array(V2PromptRunFrequencyInput$zodSchema).nullable().optional().describe("Answer engines and harnesses to set differently from the default, or back to it with `default`. Those you leave out keep theirs."),
67201
+ frequency: UpdateV2PromptScheduleRequestFrequency$zodSchema.optional().describe("The organization's default frequency, for every answer engine and harness not set differently. `daily` is recommended. `every_other_day` and `weekly` are not recommended: they leave less data to analyze and work out how to improve.")
67202
+ });
67203
+ });
67204
+
67205
+ // src/funcs/promptsScheduleUpdate.ts
67206
+ function promptsScheduleUpdate(client$, request, options) {
67207
+ return new APIPromise($do67(client$, request, options));
66080
67208
  }
66081
- async function $do63(client$, request, options) {
66082
- const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
67209
+ async function $do67(client$, request, options) {
67210
+ const parsed$ = safeParse4(request, (value$) => UpdateV2PromptScheduleRequest$zodSchema.parse(value$), "Input validation failed");
66083
67211
  if (!parsed$.ok) {
66084
67212
  return [parsed$, { status: "invalid" }];
66085
67213
  }
66086
67214
  const payload$ = parsed$.value;
66087
- const body$ = null;
66088
- const pathParams$ = {
66089
- run_id: encodeSimple("run_id", payload$.run_id, {
66090
- explode: false,
66091
- charEncoding: "percent"
66092
- })
66093
- };
66094
- const path$ = pathToFunc("/v2/prompts/runs/{run_id}/status")(pathParams$);
67215
+ const body$ = encodeJSON("body", payload$, { explode: true });
67216
+ const path$ = pathToFunc("/v2/prompts/schedule")();
66095
67217
  const headers$ = new Headers(compactMap({
67218
+ "Content-Type": "application/json",
66096
67219
  Accept: "application/json"
66097
67220
  }));
66098
67221
  const securityInput = await extractSecurity(client$._options.security);
@@ -66100,7 +67223,7 @@ async function $do63(client$, request, options) {
66100
67223
  const context = {
66101
67224
  options: client$._options,
66102
67225
  baseURL: options?.serverURL ?? client$._baseURL ?? "",
66103
- operationID: "v2_prompt_run_status_retrieve",
67226
+ operationID: "v2_prompt_schedule_update",
66104
67227
  oAuth2Scopes: null,
66105
67228
  resolvedSecurity: requestSecurity,
66106
67229
  securitySource: client$._options.security,
@@ -66115,7 +67238,7 @@ async function $do63(client$, request, options) {
66115
67238
  };
66116
67239
  const requestRes = client$._createRequest(context, {
66117
67240
  security: requestSecurity,
66118
- method: "GET",
67241
+ method: "PATCH",
66119
67242
  baseURL: options?.serverURL,
66120
67243
  path: path$,
66121
67244
  headers: headers$,
@@ -66142,43 +67265,40 @@ async function $do63(client$, request, options) {
66142
67265
  response: doResult.value
66143
67266
  }];
66144
67267
  }
66145
- var init_promptsRunStatus = __esm(() => {
67268
+ var init_promptsScheduleUpdate = __esm(() => {
66146
67269
  init_encodings();
66147
67270
  init_primitives();
66148
67271
  init_schemas4();
66149
67272
  init_security();
66150
67273
  init_url();
66151
- init_v2promptrunstatusretrieveop();
67274
+ init_updatev2promptschedulerequest();
66152
67275
  init_async();
66153
67276
  });
66154
67277
 
66155
- // src/mcp-server/tools/promptsRunStatus.ts
66156
- var args54, tool$promptsRunStatus;
66157
- var init_promptsRunStatus2 = __esm(() => {
66158
- init_promptsRunStatus();
66159
- init_v2promptrunstatusretrieveop();
67278
+ // src/mcp-server/tools/promptsScheduleUpdate.ts
67279
+ var args57, tool$promptsScheduleUpdate;
67280
+ var init_promptsScheduleUpdate2 = __esm(() => {
67281
+ init_promptsScheduleUpdate();
67282
+ init_updatev2promptschedulerequest();
66160
67283
  init_tools();
66161
- args54 = {
66162
- request: V2PromptRunStatusRetrieveRequest$zodSchema
67284
+ args57 = {
67285
+ request: UpdateV2PromptScheduleRequest$zodSchema
66163
67286
  };
66164
- tool$promptsRunStatus = {
66165
- name: "prompts-run-status",
66166
- description: `Get Prompt Run Status
66167
-
66168
- Return status and progress for a queued prompt run.
67287
+ tool$promptsScheduleUpdate = {
67288
+ name: "prompts-schedule-update",
67289
+ description: `Update Prompt Schedule
66169
67290
 
66170
- Poll this endpoint until \`status\` is \`completed\`, \`failed\`, or \`cancelled\`.
66171
- Individual stored results are available from \`GET /v2/prompts/runs\`.`,
67291
+ Turns scheduled prompt runs on or off, sets the organization's default frequency, and sets answer engines or coding-agent harnesses differently from it. Only what you send changes. Daily is recommended: running less often leaves less data to analyze and work out how to improve. Choose which engines and agents run each topic's prompts with \`PUT /v2/prompts/targets\`.`,
66172
67292
  annotations: {
66173
67293
  title: "",
66174
67294
  destructiveHint: false,
66175
67295
  idempotentHint: false,
66176
67296
  openWorldHint: false,
66177
- readOnlyHint: true
67297
+ readOnlyHint: false
66178
67298
  },
66179
- args: args54,
67299
+ args: args57,
66180
67300
  tool: async (client, args, ctx) => {
66181
- const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
67301
+ const [result] = await promptsScheduleUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66182
67302
  if (!result.ok) {
66183
67303
  return {
66184
67304
  content: [{ type: "text", text: result.error.message }],
@@ -66192,9 +67312,9 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
66192
67312
 
66193
67313
  // src/funcs/promptsTagsList.ts
66194
67314
  function promptsTagsList(client$, options) {
66195
- return new APIPromise($do64(client$, options));
67315
+ return new APIPromise($do68(client$, options));
66196
67316
  }
66197
- async function $do64(client$, options) {
67317
+ async function $do68(client$, options) {
66198
67318
  const path$ = pathToFunc("/v2/prompts/tags")();
66199
67319
  const headers$ = new Headers(compactMap({
66200
67320
  Accept: "application/json"
@@ -66296,11 +67416,11 @@ var init_v2prompttarget = __esm(() => {
66296
67416
  "every_other_day",
66297
67417
  "weekly",
66298
67418
  "manual"
66299
- ]).describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.");
67419
+ ]).describe("Deprecated: how often prompts run is set per answer engine or harness with `PATCH /v2/prompts/schedule`. On input only `daily` is accepted; any other value returns `400`. On output this is the frequency of the target's answer engine or harness.");
66300
67420
  V2PromptTarget$zodSchema = object({
66301
67421
  agent: string2().nullable().optional().describe("Agent ID from `GET /v2/agents` for coding-agent targets."),
66302
67422
  answer_engine: string2().nullable().optional().describe("Answer engine identifier for answer-engine targets."),
66303
- frequency: V2PromptTargetFrequency$zodSchema.describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization."),
67423
+ frequency: V2PromptTargetFrequency$zodSchema.describe("Deprecated: how often prompts run is set per answer engine or harness with `PATCH /v2/prompts/schedule`. On input only `daily` is accepted; any other value returns `400`. On output this is the frequency of the target's answer engine or harness."),
66304
67424
  id: string2(),
66305
67425
  kind: V2PromptTargetKind$zodSchema,
66306
67426
  last_run_at: string2().nullable().optional(),
@@ -66338,9 +67458,9 @@ var init_v2prompttargetslistop = __esm(() => {
66338
67458
 
66339
67459
  // src/funcs/promptsTargetsList.ts
66340
67460
  function promptsTargetsList(client$, request, options) {
66341
- return new APIPromise($do65(client$, request, options));
67461
+ return new APIPromise($do69(client$, request, options));
66342
67462
  }
66343
- async function $do65(client$, request, options) {
67463
+ async function $do69(client$, request, options) {
66344
67464
  const parsed$ = safeParse4(request, (value$) => V2PromptTargetsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
66345
67465
  if (!parsed$.ok) {
66346
67466
  return [parsed$, { status: "invalid" }];
@@ -66413,19 +67533,19 @@ var init_promptsTargetsList = __esm(() => {
66413
67533
  });
66414
67534
 
66415
67535
  // src/mcp-server/tools/promptsTargetsList.ts
66416
- var args55, tool$promptsTargetsList;
67536
+ var args58, tool$promptsTargetsList;
66417
67537
  var init_promptsTargetsList2 = __esm(() => {
66418
67538
  init_promptsTargetsList();
66419
67539
  init_v2prompttargetslistop();
66420
67540
  init_tools();
66421
- args55 = {
67541
+ args58 = {
66422
67542
  request: V2PromptTargetsListRequest$zodSchema.optional()
66423
67543
  };
66424
67544
  tool$promptsTargetsList = {
66425
67545
  name: "prompts-targets-list",
66426
67546
  description: `List Targets
66427
67547
 
66428
- Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide \`topic_id\` to list one topic's targets.`,
67548
+ Returns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic. Provide \`topic_id\` to list one topic's targets. How often each one runs is set with \`PATCH /v2/prompts/schedule\`.`,
66429
67549
  annotations: {
66430
67550
  title: "",
66431
67551
  destructiveHint: false,
@@ -66433,7 +67553,7 @@ Returns the answer engines and coding agents that run the organization's prompts
66433
67553
  openWorldHint: false,
66434
67554
  readOnlyHint: true
66435
67555
  },
66436
- args: args55,
67556
+ args: args58,
66437
67557
  tool: async (client, args, ctx) => {
66438
67558
  const [result] = await promptsTargetsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66439
67559
  if (!result.ok) {
@@ -66448,10 +67568,10 @@ Returns the answer engines and coding agents that run the organization's prompts
66448
67568
  });
66449
67569
 
66450
67570
  // src/models/v2prompttargetinput.ts
66451
- var AnswerEngine$zodSchema, V2PromptTargetInputFrequency$zodSchema, V2PromptTargetInput$zodSchema;
67571
+ var V2PromptTargetInputAnswerEngine$zodSchema, V2PromptTargetInputFrequency$zodSchema, V2PromptTargetInput$zodSchema;
66452
67572
  var init_v2prompttargetinput = __esm(() => {
66453
67573
  init_zod();
66454
- AnswerEngine$zodSchema = _enum([
67574
+ V2PromptTargetInputAnswerEngine$zodSchema = _enum([
66455
67575
  "chatgpt",
66456
67576
  "google-ai-overviews",
66457
67577
  "google-ai-mode",
@@ -66465,11 +67585,11 @@ var init_v2prompttargetinput = __esm(() => {
66465
67585
  "every_other_day",
66466
67586
  "weekly",
66467
67587
  "manual"
66468
- ]).describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.");
67588
+ ]).describe("Deprecated: how often prompts run is set per answer engine or harness with `PATCH /v2/prompts/schedule`. On input only `daily` is accepted; any other value returns `400`. On output this is the frequency of the target's answer engine or harness.");
66469
67589
  V2PromptTargetInput$zodSchema = object({
66470
67590
  agent: string2().nullable().optional().describe("Runnable agent from `GET /v2/agents`, a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Set this or `answer_engine`, not both."),
66471
- answer_engine: AnswerEngine$zodSchema.nullable().optional().describe("Answer engine to run the topic's prompts on. Set this or `agent`, not both."),
66472
- frequency: V2PromptTargetInputFrequency$zodSchema.default("daily").describe("How often this target runs on schedule. `manual` keeps it for runs you start yourself. Frequencies other than `daily` require custom prompt scheduling on the organization.")
67591
+ answer_engine: V2PromptTargetInputAnswerEngine$zodSchema.nullable().optional().describe("Answer engine to run the topic's prompts on. Set this or `agent`, not both."),
67592
+ frequency: V2PromptTargetInputFrequency$zodSchema.default("daily").describe("Deprecated: how often prompts run is set per answer engine or harness with `PATCH /v2/prompts/schedule`. On input only `daily` is accepted; any other value returns `400`. On output this is the frequency of the target's answer engine or harness.")
66473
67593
  });
66474
67594
  });
66475
67595
 
@@ -66486,9 +67606,9 @@ var init_setv2prompttargetsrequest = __esm(() => {
66486
67606
 
66487
67607
  // src/funcs/promptsTargetsSet.ts
66488
67608
  function promptsTargetsSet(client$, request, options) {
66489
- return new APIPromise($do66(client$, request, options));
67609
+ return new APIPromise($do70(client$, request, options));
66490
67610
  }
66491
- async function $do66(client$, request, options) {
67611
+ async function $do70(client$, request, options) {
66492
67612
  const parsed$ = safeParse4(request, (value$) => SetV2PromptTargetsRequest$zodSchema.parse(value$), "Input validation failed");
66493
67613
  if (!parsed$.ok) {
66494
67614
  return [parsed$, { status: "invalid" }];
@@ -66558,12 +67678,12 @@ var init_promptsTargetsSet = __esm(() => {
66558
67678
  });
66559
67679
 
66560
67680
  // src/mcp-server/tools/promptsTargetsSet.ts
66561
- var args56, tool$promptsTargetsSet;
67681
+ var args59, tool$promptsTargetsSet;
66562
67682
  var init_promptsTargetsSet2 = __esm(() => {
66563
67683
  init_promptsTargetsSet();
66564
67684
  init_setv2prompttargetsrequest();
66565
67685
  init_tools();
66566
- args56 = {
67686
+ args59 = {
66567
67687
  request: SetV2PromptTargetsRequest$zodSchema
66568
67688
  };
66569
67689
  tool$promptsTargetsSet = {
@@ -66578,7 +67698,7 @@ Sets which answer engines and coding agents run a topic's prompts on schedule, t
66578
67698
  openWorldHint: false,
66579
67699
  readOnlyHint: false
66580
67700
  },
66581
- args: args56,
67701
+ args: args59,
66582
67702
  tool: async (client, args, ctx) => {
66583
67703
  const [result] = await promptsTargetsSet(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66584
67704
  if (!result.ok) {
@@ -66603,9 +67723,9 @@ var init_createprompttopicrequest = __esm(() => {
66603
67723
 
66604
67724
  // src/funcs/promptsTopicsCreate.ts
66605
67725
  function promptsTopicsCreate(client$, request, options) {
66606
- return new APIPromise($do67(client$, request, options));
67726
+ return new APIPromise($do71(client$, request, options));
66607
67727
  }
66608
- async function $do67(client$, request, options) {
67728
+ async function $do71(client$, request, options) {
66609
67729
  const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
66610
67730
  if (!parsed$.ok) {
66611
67731
  return [parsed$, { status: "invalid" }];
@@ -66675,12 +67795,12 @@ var init_promptsTopicsCreate = __esm(() => {
66675
67795
  });
66676
67796
 
66677
67797
  // src/mcp-server/tools/promptsTopicsCreate.ts
66678
- var args57, tool$promptsTopicsCreate;
67798
+ var args60, tool$promptsTopicsCreate;
66679
67799
  var init_promptsTopicsCreate2 = __esm(() => {
66680
67800
  init_promptsTopicsCreate();
66681
67801
  init_createprompttopicrequest();
66682
67802
  init_tools();
66683
- args57 = {
67803
+ args60 = {
66684
67804
  request: CreatePromptTopicRequest$zodSchema
66685
67805
  };
66686
67806
  tool$promptsTopicsCreate = {
@@ -66695,7 +67815,7 @@ Creates a prompt topic and returns the saved topic.`,
66695
67815
  openWorldHint: false,
66696
67816
  readOnlyHint: false
66697
67817
  },
66698
- args: args57,
67818
+ args: args60,
66699
67819
  tool: async (client, args, ctx) => {
66700
67820
  const [result] = await promptsTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66701
67821
  if (!result.ok) {
@@ -66727,9 +67847,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
66727
67847
 
66728
67848
  // src/funcs/promptsTopicsDelete.ts
66729
67849
  function promptsTopicsDelete(client$, request, options) {
66730
- return new APIPromise($do68(client$, request, options));
67850
+ return new APIPromise($do72(client$, request, options));
66731
67851
  }
66732
- async function $do68(client$, request, options) {
67852
+ async function $do72(client$, request, options) {
66733
67853
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
66734
67854
  if (!parsed$.ok) {
66735
67855
  return [parsed$, { status: "invalid" }];
@@ -66808,12 +67928,12 @@ var init_promptsTopicsDelete = __esm(() => {
66808
67928
  });
66809
67929
 
66810
67930
  // src/mcp-server/tools/promptsTopicsDelete.ts
66811
- var args58, tool$promptsTopicsDelete;
67931
+ var args61, tool$promptsTopicsDelete;
66812
67932
  var init_promptsTopicsDelete2 = __esm(() => {
66813
67933
  init_promptsTopicsDelete();
66814
67934
  init_v2prompttopicsdeleteop();
66815
67935
  init_tools();
66816
- args58 = {
67936
+ args61 = {
66817
67937
  request: V2PromptTopicsDeleteRequest$zodSchema
66818
67938
  };
66819
67939
  tool$promptsTopicsDelete = {
@@ -66828,7 +67948,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
66828
67948
  openWorldHint: false,
66829
67949
  readOnlyHint: false
66830
67950
  },
66831
- args: args58,
67951
+ args: args61,
66832
67952
  tool: async (client, args, ctx) => {
66833
67953
  const [result] = await promptsTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66834
67954
  if (!result.ok) {
@@ -66844,9 +67964,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
66844
67964
 
66845
67965
  // src/funcs/promptsTopicsList.ts
66846
67966
  function promptsTopicsList(client$, options) {
66847
- return new APIPromise($do69(client$, options));
67967
+ return new APIPromise($do73(client$, options));
66848
67968
  }
66849
- async function $do69(client$, options) {
67969
+ async function $do73(client$, options) {
66850
67970
  const path$ = pathToFunc("/v2/prompts/topics")();
66851
67971
  const headers$ = new Headers(compactMap({
66852
67972
  Accept: "application/json"
@@ -66962,9 +68082,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
66962
68082
 
66963
68083
  // src/funcs/promptsTopicsUpdate.ts
66964
68084
  function promptsTopicsUpdate(client$, request, options) {
66965
- return new APIPromise($do70(client$, request, options));
68085
+ return new APIPromise($do74(client$, request, options));
66966
68086
  }
66967
- async function $do70(client$, request, options) {
68087
+ async function $do74(client$, request, options) {
66968
68088
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
66969
68089
  if (!parsed$.ok) {
66970
68090
  return [parsed$, { status: "invalid" }];
@@ -67040,12 +68160,12 @@ var init_promptsTopicsUpdate = __esm(() => {
67040
68160
  });
67041
68161
 
67042
68162
  // src/mcp-server/tools/promptsTopicsUpdate.ts
67043
- var args59, tool$promptsTopicsUpdate;
68163
+ var args62, tool$promptsTopicsUpdate;
67044
68164
  var init_promptsTopicsUpdate2 = __esm(() => {
67045
68165
  init_promptsTopicsUpdate();
67046
68166
  init_v2prompttopicsupdateop();
67047
68167
  init_tools();
67048
- args59 = {
68168
+ args62 = {
67049
68169
  request: V2PromptTopicsUpdateRequest$zodSchema
67050
68170
  };
67051
68171
  tool$promptsTopicsUpdate = {
@@ -67060,7 +68180,7 @@ Renames a prompt topic and returns the updated topic.`,
67060
68180
  openWorldHint: false,
67061
68181
  readOnlyHint: false
67062
68182
  },
67063
- args: args59,
68183
+ args: args62,
67064
68184
  tool: async (client, args, ctx) => {
67065
68185
  const [result] = await promptsTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
67066
68186
  if (!result.ok) {
@@ -67113,9 +68233,9 @@ var init_v2promptsupdateop = __esm(() => {
67113
68233
 
67114
68234
  // src/funcs/promptsUpdate.ts
67115
68235
  function promptsUpdate(client$, request, options) {
67116
- return new APIPromise($do71(client$, request, options));
68236
+ return new APIPromise($do75(client$, request, options));
67117
68237
  }
67118
- async function $do71(client$, request, options) {
68238
+ async function $do75(client$, request, options) {
67119
68239
  const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
67120
68240
  if (!parsed$.ok) {
67121
68241
  return [parsed$, { status: "invalid" }];
@@ -67191,12 +68311,12 @@ var init_promptsUpdate = __esm(() => {
67191
68311
  });
67192
68312
 
67193
68313
  // src/mcp-server/tools/promptsUpdate.ts
67194
- var args60, tool$promptsUpdate;
68314
+ var args63, tool$promptsUpdate;
67195
68315
  var init_promptsUpdate2 = __esm(() => {
67196
68316
  init_promptsUpdate();
67197
68317
  init_v2promptsupdateop();
67198
68318
  init_tools();
67199
- args60 = {
68319
+ args63 = {
67200
68320
  request: V2PromptsUpdateRequest$zodSchema
67201
68321
  };
67202
68322
  tool$promptsUpdate = {
@@ -67211,7 +68331,7 @@ Updates a prompt's text, topic, platforms, tags, lifecycle status, or coding-age
67211
68331
  openWorldHint: false,
67212
68332
  readOnlyHint: false
67213
68333
  },
67214
- args: args60,
68334
+ args: args63,
67215
68335
  tool: async (client, args, ctx) => {
67216
68336
  const [result] = await promptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
67217
68337
  if (!result.ok) {
@@ -67254,9 +68374,9 @@ var init_createv2repositoryrequest = __esm(() => {
67254
68374
 
67255
68375
  // src/funcs/repositoriesCreate.ts
67256
68376
  function repositoriesCreate(client$, request, options) {
67257
- return new APIPromise($do72(client$, request, options));
68377
+ return new APIPromise($do76(client$, request, options));
67258
68378
  }
67259
- async function $do72(client$, request, options) {
68379
+ async function $do76(client$, request, options) {
67260
68380
  const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
67261
68381
  if (!parsed$.ok) {
67262
68382
  return [parsed$, { status: "invalid" }];
@@ -67326,12 +68446,12 @@ var init_repositoriesCreate = __esm(() => {
67326
68446
  });
67327
68447
 
67328
68448
  // src/mcp-server/tools/repositoriesCreate.ts
67329
- var args61, tool$repositoriesCreate;
68449
+ var args64, tool$repositoriesCreate;
67330
68450
  var init_repositoriesCreate2 = __esm(() => {
67331
68451
  init_repositoriesCreate();
67332
68452
  init_createv2repositoryrequest();
67333
68453
  init_tools();
67334
- args61 = {
68454
+ args64 = {
67335
68455
  request: CreateV2RepositoryRequest$zodSchema
67336
68456
  };
67337
68457
  tool$repositoriesCreate = {
@@ -67346,7 +68466,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
67346
68466
  openWorldHint: false,
67347
68467
  readOnlyHint: false
67348
68468
  },
67349
- args: args61,
68469
+ args: args64,
67350
68470
  tool: async (client, args, ctx) => {
67351
68471
  const [result] = await repositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
67352
68472
  if (!result.ok) {
@@ -67419,9 +68539,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
67419
68539
 
67420
68540
  // src/funcs/repositoriesDelete.ts
67421
68541
  function repositoriesDelete(client$, request, options) {
67422
- return new APIPromise($do73(client$, request, options));
68542
+ return new APIPromise($do77(client$, request, options));
67423
68543
  }
67424
- async function $do73(client$, request, options) {
68544
+ async function $do77(client$, request, options) {
67425
68545
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
67426
68546
  if (!parsed$.ok) {
67427
68547
  return [parsed$, { status: "invalid" }];
@@ -67496,12 +68616,12 @@ var init_repositoriesDelete = __esm(() => {
67496
68616
  });
67497
68617
 
67498
68618
  // src/mcp-server/tools/repositoriesDelete.ts
67499
- var args62, tool$repositoriesDelete;
68619
+ var args65, tool$repositoriesDelete;
67500
68620
  var init_repositoriesDelete2 = __esm(() => {
67501
68621
  init_repositoriesDelete();
67502
68622
  init_v2repositoriesdeleteop();
67503
68623
  init_tools();
67504
- args62 = {
68624
+ args65 = {
67505
68625
  request: V2RepositoriesDeleteRequest$zodSchema
67506
68626
  };
67507
68627
  tool$repositoriesDelete = {
@@ -67516,7 +68636,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
67516
68636
  openWorldHint: false,
67517
68637
  readOnlyHint: false
67518
68638
  },
67519
- args: args62,
68639
+ args: args65,
67520
68640
  tool: async (client, args, ctx) => {
67521
68641
  const [result] = await repositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
67522
68642
  if (!result.ok) {
@@ -67532,9 +68652,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
67532
68652
 
67533
68653
  // src/funcs/repositoriesList.ts
67534
68654
  function repositoriesList(client$, options) {
67535
- return new APIPromise($do74(client$, options));
68655
+ return new APIPromise($do78(client$, options));
67536
68656
  }
67537
- async function $do74(client$, options) {
68657
+ async function $do78(client$, options) {
67538
68658
  const path$ = pathToFunc("/v2/repositories")();
67539
68659
  const headers$ = new Headers(compactMap({
67540
68660
  Accept: "application/json"
@@ -67639,9 +68759,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
67639
68759
 
67640
68760
  // src/funcs/repositoriesRetrieve.ts
67641
68761
  function repositoriesRetrieve(client$, request, options) {
67642
- return new APIPromise($do75(client$, request, options));
68762
+ return new APIPromise($do79(client$, request, options));
67643
68763
  }
67644
- async function $do75(client$, request, options) {
68764
+ async function $do79(client$, request, options) {
67645
68765
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
67646
68766
  if (!parsed$.ok) {
67647
68767
  return [parsed$, { status: "invalid" }];
@@ -67716,12 +68836,12 @@ var init_repositoriesRetrieve = __esm(() => {
67716
68836
  });
67717
68837
 
67718
68838
  // src/mcp-server/tools/repositoriesRetrieve.ts
67719
- var args63, tool$repositoriesRetrieve;
68839
+ var args66, tool$repositoriesRetrieve;
67720
68840
  var init_repositoriesRetrieve2 = __esm(() => {
67721
68841
  init_repositoriesRetrieve();
67722
68842
  init_v2repositoriesretrieveop();
67723
68843
  init_tools();
67724
- args63 = {
68844
+ args66 = {
67725
68845
  request: V2RepositoriesRetrieveRequest$zodSchema
67726
68846
  };
67727
68847
  tool$repositoriesRetrieve = {
@@ -67736,7 +68856,7 @@ Returns one reusable repository workspace.`,
67736
68856
  openWorldHint: false,
67737
68857
  readOnlyHint: true
67738
68858
  },
67739
- args: args63,
68859
+ args: args66,
67740
68860
  tool: async (client, args, ctx) => {
67741
68861
  const [result] = await repositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
67742
68862
  if (!result.ok) {
@@ -67796,9 +68916,9 @@ var init_v2repositoriesupdateop = __esm(() => {
67796
68916
 
67797
68917
  // src/funcs/repositoriesUpdate.ts
67798
68918
  function repositoriesUpdate(client$, request, options) {
67799
- return new APIPromise($do76(client$, request, options));
68919
+ return new APIPromise($do80(client$, request, options));
67800
68920
  }
67801
- async function $do76(client$, request, options) {
68921
+ async function $do80(client$, request, options) {
67802
68922
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
67803
68923
  if (!parsed$.ok) {
67804
68924
  return [parsed$, { status: "invalid" }];
@@ -67874,12 +68994,12 @@ var init_repositoriesUpdate = __esm(() => {
67874
68994
  });
67875
68995
 
67876
68996
  // src/mcp-server/tools/repositoriesUpdate.ts
67877
- var args64, tool$repositoriesUpdate;
68997
+ var args67, tool$repositoriesUpdate;
67878
68998
  var init_repositoriesUpdate2 = __esm(() => {
67879
68999
  init_repositoriesUpdate();
67880
69000
  init_v2repositoriesupdateop();
67881
69001
  init_tools();
67882
- args64 = {
69002
+ args67 = {
67883
69003
  request: V2RepositoriesUpdateRequest$zodSchema
67884
69004
  };
67885
69005
  tool$repositoriesUpdate = {
@@ -67894,7 +69014,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
67894
69014
  openWorldHint: false,
67895
69015
  readOnlyHint: false
67896
69016
  },
67897
- args: args64,
69017
+ args: args67,
67898
69018
  tool: async (client, args, ctx) => {
67899
69019
  const [result] = await repositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
67900
69020
  if (!result.ok) {
@@ -67910,9 +69030,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
67910
69030
 
67911
69031
  // src/funcs/siteAuditsList.ts
67912
69032
  function siteAuditsList(client$, options) {
67913
- return new APIPromise($do77(client$, options));
69033
+ return new APIPromise($do81(client$, options));
67914
69034
  }
67915
- async function $do77(client$, options) {
69035
+ async function $do81(client$, options) {
67916
69036
  const path$ = pathToFunc("/v2/site-audits")();
67917
69037
  const headers$ = new Headers(compactMap({
67918
69038
  Accept: "application/json"
@@ -68053,9 +69173,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
68053
69173
 
68054
69174
  // src/funcs/siteAuditsRetrieve.ts
68055
69175
  function siteAuditsRetrieve(client$, request, options) {
68056
- return new APIPromise($do78(client$, request, options));
69176
+ return new APIPromise($do82(client$, request, options));
68057
69177
  }
68058
- async function $do78(client$, request, options) {
69178
+ async function $do82(client$, request, options) {
68059
69179
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
68060
69180
  if (!parsed$.ok) {
68061
69181
  return [parsed$, { status: "invalid" }];
@@ -68130,12 +69250,12 @@ var init_siteAuditsRetrieve = __esm(() => {
68130
69250
  });
68131
69251
 
68132
69252
  // src/mcp-server/tools/siteAuditsRetrieve.ts
68133
- var args65, tool$siteAuditsRetrieve;
69253
+ var args68, tool$siteAuditsRetrieve;
68134
69254
  var init_siteAuditsRetrieve2 = __esm(() => {
68135
69255
  init_siteAuditsRetrieve();
68136
69256
  init_v2siteauditsretrieveop();
68137
69257
  init_tools();
68138
- args65 = {
69258
+ args68 = {
68139
69259
  request: V2SiteAuditsRetrieveRequest$zodSchema
68140
69260
  };
68141
69261
  tool$siteAuditsRetrieve = {
@@ -68150,7 +69270,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
68150
69270
  openWorldHint: false,
68151
69271
  readOnlyHint: true
68152
69272
  },
68153
- args: args65,
69273
+ args: args68,
68154
69274
  tool: async (client, args, ctx) => {
68155
69275
  const [result] = await siteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
68156
69276
  if (!result.ok) {
@@ -68166,9 +69286,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
68166
69286
 
68167
69287
  // src/funcs/skillsList.ts
68168
69288
  function skillsList(client$, options) {
68169
- return new APIPromise($do79(client$, options));
69289
+ return new APIPromise($do83(client$, options));
68170
69290
  }
68171
- async function $do79(client$, options) {
69291
+ async function $do83(client$, options) {
68172
69292
  const path$ = pathToFunc("/v2/skills")();
68173
69293
  const headers$ = new Headers(compactMap({
68174
69294
  Accept: "application/json"
@@ -68258,9 +69378,9 @@ Returns reusable skills available to workflows and eval configurations.`,
68258
69378
 
68259
69379
  // src/funcs/statusAuthStatusGet.ts
68260
69380
  function statusAuthStatusGet(client$, options) {
68261
- return new APIPromise($do80(client$, options));
69381
+ return new APIPromise($do84(client$, options));
68262
69382
  }
68263
- async function $do80(client$, options) {
69383
+ async function $do84(client$, options) {
68264
69384
  const path$ = pathToFunc("/v2/auth/status")();
68265
69385
  const headers$ = new Headers(compactMap({
68266
69386
  Accept: "application/json"
@@ -68350,9 +69470,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
68350
69470
 
68351
69471
  // src/funcs/statusGet.ts
68352
69472
  function statusGet(client$, options) {
68353
- return new APIPromise($do81(client$, options));
69473
+ return new APIPromise($do85(client$, options));
68354
69474
  }
68355
- async function $do81(client$, options) {
69475
+ async function $do85(client$, options) {
68356
69476
  const path$ = pathToFunc("/v2/status")();
68357
69477
  const headers$ = new Headers(compactMap({
68358
69478
  Accept: "application/json"
@@ -68481,9 +69601,9 @@ var init_createtaskrequest = __esm(() => {
68481
69601
 
68482
69602
  // src/funcs/tasksCreate.ts
68483
69603
  function tasksCreate(client$, request, options) {
68484
- return new APIPromise($do82(client$, request, options));
69604
+ return new APIPromise($do86(client$, request, options));
68485
69605
  }
68486
- async function $do82(client$, request, options) {
69606
+ async function $do86(client$, request, options) {
68487
69607
  const parsed$ = safeParse4(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
68488
69608
  if (!parsed$.ok) {
68489
69609
  return [parsed$, { status: "invalid" }];
@@ -68553,12 +69673,12 @@ var init_tasksCreate = __esm(() => {
68553
69673
  });
68554
69674
 
68555
69675
  // src/mcp-server/tools/tasksCreate.ts
68556
- var args66, tool$tasksCreate;
69676
+ var args69, tool$tasksCreate;
68557
69677
  var init_tasksCreate2 = __esm(() => {
68558
69678
  init_tasksCreate();
68559
69679
  init_createtaskrequest();
68560
69680
  init_tools();
68561
- args66 = {
69681
+ args69 = {
68562
69682
  request: CreateTaskRequest$zodSchema
68563
69683
  };
68564
69684
  tool$tasksCreate = {
@@ -68573,7 +69693,7 @@ Adds a task to today's queue and returns it with its execution prompt. New tasks
68573
69693
  openWorldHint: false,
68574
69694
  readOnlyHint: false
68575
69695
  },
68576
- args: args66,
69696
+ args: args69,
68577
69697
  tool: async (client, args, ctx) => {
68578
69698
  const [result] = await tasksCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
68579
69699
  if (!result.ok) {
@@ -68733,9 +69853,9 @@ var init_v2taskslistop = __esm(() => {
68733
69853
 
68734
69854
  // src/funcs/tasksList.ts
68735
69855
  function tasksList(client$, request, options) {
68736
- return new APIPromise($do83(client$, request, options));
69856
+ return new APIPromise($do87(client$, request, options));
68737
69857
  }
68738
- async function $do83(client$, request, options) {
69858
+ async function $do87(client$, request, options) {
68739
69859
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
68740
69860
  if (!parsed$.ok) {
68741
69861
  return [parsed$, { status: "invalid" }];
@@ -68809,12 +69929,12 @@ var init_tasksList = __esm(() => {
68809
69929
  });
68810
69930
 
68811
69931
  // src/mcp-server/tools/tasksList.ts
68812
- var args67, tool$tasksList;
69932
+ var args70, tool$tasksList;
68813
69933
  var init_tasksList2 = __esm(() => {
68814
69934
  init_tasksList();
68815
69935
  init_v2taskslistop();
68816
69936
  init_tools();
68817
- args67 = {
69937
+ args70 = {
68818
69938
  request: V2TasksListRequest$zodSchema.optional()
68819
69939
  };
68820
69940
  tool$tasksList = {
@@ -68829,7 +69949,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
68829
69949
  openWorldHint: false,
68830
69950
  readOnlyHint: true
68831
69951
  },
68832
- args: args67,
69952
+ args: args70,
68833
69953
  tool: async (client, args, ctx) => {
68834
69954
  const [result] = await tasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
68835
69955
  if (!result.ok) {
@@ -68860,9 +69980,9 @@ var init_v2tasksretrieveop = __esm(() => {
68860
69980
 
68861
69981
  // src/funcs/tasksRetrieve.ts
68862
69982
  function tasksRetrieve(client$, request, options) {
68863
- return new APIPromise($do84(client$, request, options));
69983
+ return new APIPromise($do88(client$, request, options));
68864
69984
  }
68865
- async function $do84(client$, request, options) {
69985
+ async function $do88(client$, request, options) {
68866
69986
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
68867
69987
  if (!parsed$.ok) {
68868
69988
  return [parsed$, { status: "invalid" }];
@@ -68937,12 +70057,12 @@ var init_tasksRetrieve = __esm(() => {
68937
70057
  });
68938
70058
 
68939
70059
  // src/mcp-server/tools/tasksRetrieve.ts
68940
- var args68, tool$tasksRetrieve;
70060
+ var args71, tool$tasksRetrieve;
68941
70061
  var init_tasksRetrieve2 = __esm(() => {
68942
70062
  init_tasksRetrieve();
68943
70063
  init_v2tasksretrieveop();
68944
70064
  init_tools();
68945
- args68 = {
70065
+ args71 = {
68946
70066
  request: V2TasksRetrieveRequest$zodSchema
68947
70067
  };
68948
70068
  tool$tasksRetrieve = {
@@ -68957,7 +70077,7 @@ Returns one persisted task and its execution prompt.`,
68957
70077
  openWorldHint: false,
68958
70078
  readOnlyHint: true
68959
70079
  },
68960
- args: args68,
70080
+ args: args71,
68961
70081
  tool: async (client, args, ctx) => {
68962
70082
  const [result] = await tasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
68963
70083
  if (!result.ok) {
@@ -69020,9 +70140,9 @@ var init_v2tasksupdateop = __esm(() => {
69020
70140
 
69021
70141
  // src/funcs/tasksUpdate.ts
69022
70142
  function tasksUpdate(client$, request, options) {
69023
- return new APIPromise($do85(client$, request, options));
70143
+ return new APIPromise($do89(client$, request, options));
69024
70144
  }
69025
- async function $do85(client$, request, options) {
70145
+ async function $do89(client$, request, options) {
69026
70146
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
69027
70147
  if (!parsed$.ok) {
69028
70148
  return [parsed$, { status: "invalid" }];
@@ -69098,12 +70218,12 @@ var init_tasksUpdate = __esm(() => {
69098
70218
  });
69099
70219
 
69100
70220
  // src/mcp-server/tools/tasksUpdate.ts
69101
- var args69, tool$tasksUpdate;
70221
+ var args72, tool$tasksUpdate;
69102
70222
  var init_tasksUpdate2 = __esm(() => {
69103
70223
  init_tasksUpdate();
69104
70224
  init_v2tasksupdateop();
69105
70225
  init_tools();
69106
- args69 = {
70226
+ args72 = {
69107
70227
  request: V2TasksUpdateRequest$zodSchema
69108
70228
  };
69109
70229
  tool$tasksUpdate = {
@@ -69118,7 +70238,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
69118
70238
  openWorldHint: false,
69119
70239
  readOnlyHint: false
69120
70240
  },
69121
- args: args69,
70241
+ args: args72,
69122
70242
  tool: async (client, args, ctx) => {
69123
70243
  const [result] = await tasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
69124
70244
  if (!result.ok) {
@@ -69310,9 +70430,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
69310
70430
 
69311
70431
  // src/funcs/visibilityCitationsList.ts
69312
70432
  function visibilityCitationsList(client$, request, options) {
69313
- return new APIPromise($do86(client$, request, options));
70433
+ return new APIPromise($do90(client$, request, options));
69314
70434
  }
69315
- async function $do86(client$, request, options) {
70435
+ async function $do90(client$, request, options) {
69316
70436
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
69317
70437
  if (!parsed$.ok) {
69318
70438
  return [parsed$, { status: "invalid" }];
@@ -69390,12 +70510,12 @@ var init_visibilityCitationsList = __esm(() => {
69390
70510
  });
69391
70511
 
69392
70512
  // src/mcp-server/tools/visibilityCitationsList.ts
69393
- var args70, tool$visibilityCitationsList;
70513
+ var args73, tool$visibilityCitationsList;
69394
70514
  var init_visibilityCitationsList2 = __esm(() => {
69395
70515
  init_visibilityCitationsList();
69396
70516
  init_v2visibilitycitationslistop();
69397
70517
  init_tools();
69398
- args70 = {
70518
+ args73 = {
69399
70519
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
69400
70520
  };
69401
70521
  tool$visibilityCitationsList = {
@@ -69410,7 +70530,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
69410
70530
  openWorldHint: false,
69411
70531
  readOnlyHint: true
69412
70532
  },
69413
- args: args70,
70533
+ args: args73,
69414
70534
  tool: async (client, args, ctx) => {
69415
70535
  const [result] = await visibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
69416
70536
  if (!result.ok) {
@@ -69535,9 +70655,9 @@ var init_v2visibilitycitationssummaryretrieveop = __esm(() => {
69535
70655
 
69536
70656
  // src/funcs/visibilityCitationsSummaryRetrieve.ts
69537
70657
  function visibilityCitationsSummaryRetrieve(client$, request, options) {
69538
- return new APIPromise($do87(client$, request, options));
70658
+ return new APIPromise($do91(client$, request, options));
69539
70659
  }
69540
- async function $do87(client$, request, options) {
70660
+ async function $do91(client$, request, options) {
69541
70661
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
69542
70662
  if (!parsed$.ok) {
69543
70663
  return [parsed$, { status: "invalid" }];
@@ -69617,12 +70737,12 @@ var init_visibilityCitationsSummaryRetrieve = __esm(() => {
69617
70737
  });
69618
70738
 
69619
70739
  // src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts
69620
- var args71, tool$visibilityCitationsSummaryRetrieve;
70740
+ var args74, tool$visibilityCitationsSummaryRetrieve;
69621
70741
  var init_visibilityCitationsSummaryRetrieve2 = __esm(() => {
69622
70742
  init_visibilityCitationsSummaryRetrieve();
69623
70743
  init_v2visibilitycitationssummaryretrieveop();
69624
70744
  init_tools();
69625
- args71 = {
70745
+ args74 = {
69626
70746
  request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional()
69627
70747
  };
69628
70748
  tool$visibilityCitationsSummaryRetrieve = {
@@ -69637,7 +70757,7 @@ Returns citation totals grouped by URL prefix (domain and first path segment, su
69637
70757
  openWorldHint: false,
69638
70758
  readOnlyHint: true
69639
70759
  },
69640
- args: args71,
70760
+ args: args74,
69641
70761
  tool: async (client, args, ctx) => {
69642
70762
  const [result] = await visibilityCitationsSummaryRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
69643
70763
  if (!result.ok) {
@@ -69726,9 +70846,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
69726
70846
 
69727
70847
  // src/funcs/visibilityCurrentRetrieve.ts
69728
70848
  function visibilityCurrentRetrieve(client$, request, options) {
69729
- return new APIPromise($do88(client$, request, options));
70849
+ return new APIPromise($do92(client$, request, options));
69730
70850
  }
69731
- async function $do88(client$, request, options) {
70851
+ async function $do92(client$, request, options) {
69732
70852
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
69733
70853
  if (!parsed$.ok) {
69734
70854
  return [parsed$, { status: "invalid" }];
@@ -69803,12 +70923,12 @@ var init_visibilityCurrentRetrieve = __esm(() => {
69803
70923
  });
69804
70924
 
69805
70925
  // src/mcp-server/tools/visibilityCurrentRetrieve.ts
69806
- var args72, tool$visibilityCurrentRetrieve;
70926
+ var args75, tool$visibilityCurrentRetrieve;
69807
70927
  var init_visibilityCurrentRetrieve2 = __esm(() => {
69808
70928
  init_visibilityCurrentRetrieve();
69809
70929
  init_v2visibilitycurrentretrieveop();
69810
70930
  init_tools();
69811
- args72 = {
70931
+ args75 = {
69812
70932
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
69813
70933
  };
69814
70934
  tool$visibilityCurrentRetrieve = {
@@ -69823,7 +70943,7 @@ Returns recommendation score, visibility score, ranks, and date-range metadata f
69823
70943
  openWorldHint: false,
69824
70944
  readOnlyHint: true
69825
70945
  },
69826
- args: args72,
70946
+ args: args75,
69827
70947
  tool: async (client, args, ctx) => {
69828
70948
  const [result] = await visibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
69829
70949
  if (!result.ok) {
@@ -69979,9 +71099,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
69979
71099
 
69980
71100
  // src/funcs/visibilityOverviewRetrieve.ts
69981
71101
  function visibilityOverviewRetrieve(client$, request, options) {
69982
- return new APIPromise($do89(client$, request, options));
71102
+ return new APIPromise($do93(client$, request, options));
69983
71103
  }
69984
- async function $do89(client$, request, options) {
71104
+ async function $do93(client$, request, options) {
69985
71105
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
69986
71106
  if (!parsed$.ok) {
69987
71107
  return [parsed$, { status: "invalid" }];
@@ -70056,12 +71176,12 @@ var init_visibilityOverviewRetrieve = __esm(() => {
70056
71176
  });
70057
71177
 
70058
71178
  // src/mcp-server/tools/visibilityOverviewRetrieve.ts
70059
- var args73, tool$visibilityOverviewRetrieve;
71179
+ var args76, tool$visibilityOverviewRetrieve;
70060
71180
  var init_visibilityOverviewRetrieve2 = __esm(() => {
70061
71181
  init_visibilityOverviewRetrieve();
70062
71182
  init_v2visibilityoverviewretrieveop();
70063
71183
  init_tools();
70064
- args73 = {
71184
+ args76 = {
70065
71185
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
70066
71186
  };
70067
71187
  tool$visibilityOverviewRetrieve = {
@@ -70076,7 +71196,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
70076
71196
  openWorldHint: false,
70077
71197
  readOnlyHint: true
70078
71198
  },
70079
- args: args73,
71199
+ args: args76,
70080
71200
  tool: async (client, args, ctx) => {
70081
71201
  const [result] = await visibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
70082
71202
  if (!result.ok) {
@@ -70198,9 +71318,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
70198
71318
 
70199
71319
  // src/funcs/visibilityPromptsRetrieve.ts
70200
71320
  function visibilityPromptsRetrieve(client$, request, options) {
70201
- return new APIPromise($do90(client$, request, options));
71321
+ return new APIPromise($do94(client$, request, options));
70202
71322
  }
70203
- async function $do90(client$, request, options) {
71323
+ async function $do94(client$, request, options) {
70204
71324
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
70205
71325
  if (!parsed$.ok) {
70206
71326
  return [parsed$, { status: "invalid" }];
@@ -70275,12 +71395,12 @@ var init_visibilityPromptsRetrieve = __esm(() => {
70275
71395
  });
70276
71396
 
70277
71397
  // src/mcp-server/tools/visibilityPromptsRetrieve.ts
70278
- var args74, tool$visibilityPromptsRetrieve;
71398
+ var args77, tool$visibilityPromptsRetrieve;
70279
71399
  var init_visibilityPromptsRetrieve2 = __esm(() => {
70280
71400
  init_visibilityPromptsRetrieve();
70281
71401
  init_v2visibilitypromptsretrieveop();
70282
71402
  init_tools();
70283
- args74 = {
71403
+ args77 = {
70284
71404
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
70285
71405
  };
70286
71406
  tool$visibilityPromptsRetrieve = {
@@ -70295,7 +71415,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
70295
71415
  openWorldHint: false,
70296
71416
  readOnlyHint: true
70297
71417
  },
70298
- args: args74,
71418
+ args: args77,
70299
71419
  tool: async (client, args, ctx) => {
70300
71420
  const [result] = await visibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
70301
71421
  if (!result.ok) {
@@ -70319,7 +71439,7 @@ function createMCPServer(deps) {
70319
71439
  sizes: ["any"]
70320
71440
  }],
70321
71441
  name: "LightsageMcp",
70322
- version: "0.4.28"
71442
+ version: "0.4.30"
70323
71443
  });
70324
71444
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
70325
71445
  security: deps.security,
@@ -70354,6 +71474,8 @@ function createMCPServer(deps) {
70354
71474
  tool(tool$promptsTopicsDelete);
70355
71475
  tool(tool$promptsTargetsList);
70356
71476
  tool(tool$promptsTargetsSet);
71477
+ tool(tool$promptsScheduleRetrieve);
71478
+ tool(tool$promptsScheduleUpdate);
70357
71479
  tool(tool$promptsRunsList);
70358
71480
  tool(tool$promptsRunsRetrieve);
70359
71481
  tool(tool$promptsRetrieve);
@@ -70409,6 +71531,8 @@ function createMCPServer(deps) {
70409
71531
  tool(tool$evalTemplatesUpdate);
70410
71532
  tool(tool$evalTemplatesDelete);
70411
71533
  tool(tool$evalRunsList);
71534
+ tool(tool$evalResultsSummary);
71535
+ tool(tool$evalResultsList);
70412
71536
  tool(tool$agentPreferenceCompetitorsList);
70413
71537
  tool(tool$agentPreferenceHeadToHeadRetrieve);
70414
71538
  tool(tool$agentPreferenceEvalsList);
@@ -70455,6 +71579,8 @@ var init_server3 = __esm(() => {
70455
71579
  init_agentsList2();
70456
71580
  init_clIsList2();
70457
71581
  init_environmentsList2();
71582
+ init_evalResultsList2();
71583
+ init_evalResultsSummary2();
70458
71584
  init_evalRunsList2();
70459
71585
  init_evalsBatchCreate2();
70460
71586
  init_evalsCancel2();
@@ -70501,6 +71627,8 @@ var init_server3 = __esm(() => {
70501
71627
  init_promptsRunsList2();
70502
71628
  init_promptsRunsRetrieve2();
70503
71629
  init_promptsRunStatus2();
71630
+ init_promptsScheduleRetrieve2();
71631
+ init_promptsScheduleUpdate2();
70504
71632
  init_promptsTagsList2();
70505
71633
  init_promptsTargetsList2();
70506
71634
  init_promptsTargetsSet2();
@@ -70608,12 +71736,22 @@ Renames a prompt topic and returns the updated topic.`
70608
71736
  },
70609
71737
  {
70610
71738
  name: "prompts-targets-list",
70611
- description: "List Targets\n\nReturns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic and frequency. Provide `topic_id` to list one topic's targets."
71739
+ description: "List Targets\n\nReturns the answer engines and coding agents that run the organization's prompts on schedule, with each target's topic. Provide `topic_id` to list one topic's targets. How often each one runs is set with `PATCH /v2/prompts/schedule`."
70612
71740
  },
70613
71741
  {
70614
71742
  name: "prompts-targets-set",
70615
71743
  description: "Set Targets\n\nSets which answer engines and coding agents run a topic's prompts on schedule, the same way the prompt editor does. The list replaces the topic's targets: targets you leave out stop running. Every prompt in the topic is set to exactly these platforms; you can still narrow one prompt afterwards with `platform_ids`. Name coding agents with IDs from `GET /v2/agents`, and list a harness more than once to run it on several models. To pick agents for a single run without changing the schedule, pass `agent` to `POST /v2/prompts/runs` instead."
70616
71744
  },
71745
+ {
71746
+ name: "prompts-schedule-retrieve",
71747
+ description: `Get Prompt Schedule
71748
+
71749
+ Returns whether scheduled prompt runs are on, when the daily run starts, the organization's default frequency, and how often each answer engine and coding-agent harness runs. The same settings as Settings > Schedules in the app.`
71750
+ },
71751
+ {
71752
+ name: "prompts-schedule-update",
71753
+ description: "Update Prompt Schedule\n\nTurns scheduled prompt runs on or off, sets the organization's default frequency, and sets answer engines or coding-agent harnesses differently from it. Only what you send changes. Daily is recommended: running less often leaves less data to analyze and work out how to improve. Choose which engines and agents run each topic's prompts with `PUT /v2/prompts/targets`."
71754
+ },
70617
71755
  {
70618
71756
  name: "prompts-runs-list",
70619
71757
  description: `List Prompt Runs
@@ -70908,7 +72046,15 @@ Soft-deletes an Eval template. Evals previously created from it remain independe
70908
72046
  },
70909
72047
  {
70910
72048
  name: "eval-runs-list",
70911
- description: "List Runs\n\nReturns custom eval runs, ordered newest first, with lifecycle state and progress. Includes scheduled, onboarding, and pull request runs and runs started in the Lightsage app, as well as runs started through `POST /v2/eval-runs`."
72049
+ description: "List Runs\n\nReturns custom eval runs, ordered newest first, with lifecycle state and progress. Includes scheduled, onboarding, and pull request runs and runs started in the Lightsage app, as well as runs started through `POST /v2/eval-runs`. This lists runs and their status only: to see how evals did across runs, use `GET /v2/eval-results/summary` and `GET /v2/eval-results` instead of retrieving runs one at a time."
72050
+ },
72051
+ {
72052
+ name: "eval-results-summary",
72053
+ description: "Retrieve Summary\n\nStart here for any question about how evals are doing. Returns, in one call, totals for the last `days` days and the same number of days before: for every eval and every agent (harness and model), the attempts, pass rate, average agent time and average tool calls, and how the pass rate changed. Answers which evals got worse and which agents fail most without retrieving runs one at a time. To see the individual results behind these figures and the judge's reasons, use `GET /v2/eval-results`."
72054
+ },
72055
+ {
72056
+ name: "eval-results-list",
72057
+ description: "List Results\n\nLists eval results across runs, newest first: one per attempt by one agent, with the checks the judge failed and its reasons. Filter by `eval_id`, `agent` and `result` (use `result=failed` to see why evals fail). Each result has a `run_id` to pass to `GET /v2/eval-runs/{run_id}/trace` for the agent's step-by-step log. For totals across evals and agents, use `GET /v2/eval-results/summary` first."
70912
72058
  },
70913
72059
  {
70914
72060
  name: "agent-preference-competitors-list",
@@ -71916,7 +73062,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
71916
73062
  <h1>Instructions</h1>
71917
73063
  <p>One-click installation for Claude Desktop users</p>
71918
73064
  <div class="instruction-item">
71919
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.28/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
73065
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.30/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
71920
73066
  \uD83D\uDCE5 Download MCP Bundle
71921
73067
  </a>
71922
73068
  </div>
@@ -74816,7 +75962,7 @@ var routes = buildRouteMap({
74816
75962
  var app = buildApplication(routes, {
74817
75963
  name: "mcp",
74818
75964
  versionInfo: {
74819
- currentVersion: "0.4.28"
75965
+ currentVersion: "0.4.30"
74820
75966
  }
74821
75967
  });
74822
75968
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -74824,5 +75970,5 @@ export {
74824
75970
  app
74825
75971
  };
74826
75972
 
74827
- //# debugId=09850C28C6AD78BF64756E2164756E21
75973
+ //# debugId=08F6A22AA3AE2A4364756E2164756E21
74828
75974
  //# sourceMappingURL=mcp-server.js.map