@lightsage/mcp 0.4.17 → 0.4.18

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 (281) hide show
  1. package/README.md +2 -2
  2. package/bin/mcp-server.js +787 -201
  3. package/bin/mcp-server.js.map +72 -55
  4. package/esm/funcs/agentAnalyticsCountriesList.js +1 -0
  5. package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -1
  6. package/esm/funcs/agentAnalyticsErrorPagesList.js +1 -0
  7. package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -1
  8. package/esm/funcs/agentAnalyticsPagesList.js +1 -0
  9. package/esm/funcs/agentAnalyticsPagesList.js.map +1 -1
  10. package/esm/funcs/agentAnalyticsSourcesList.js +1 -0
  11. package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -1
  12. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +1 -1
  13. package/esm/funcs/agentAnalyticsSummaryRetrieve.js +2 -1
  14. package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -1
  15. package/esm/funcs/agentsList.d.ts +1 -1
  16. package/esm/funcs/agentsList.js +1 -1
  17. package/esm/funcs/evalsCreate.d.ts +2 -0
  18. package/esm/funcs/evalsCreate.d.ts.map +1 -1
  19. package/esm/funcs/evalsCreate.js +2 -0
  20. package/esm/funcs/evalsCreate.js.map +1 -1
  21. package/esm/funcs/evalsRun.d.ts +2 -0
  22. package/esm/funcs/evalsRun.d.ts.map +1 -1
  23. package/esm/funcs/evalsRun.js +2 -0
  24. package/esm/funcs/evalsRun.js.map +1 -1
  25. package/esm/funcs/promptsRun.d.ts +7 -3
  26. package/esm/funcs/promptsRun.d.ts.map +1 -1
  27. package/esm/funcs/promptsRun.js +7 -3
  28. package/esm/funcs/promptsRun.js.map +1 -1
  29. package/esm/funcs/promptsRunCancel.d.ts +16 -0
  30. package/esm/funcs/promptsRunCancel.d.ts.map +1 -0
  31. package/esm/funcs/promptsRunCancel.js +88 -0
  32. package/esm/funcs/promptsRunCancel.js.map +1 -0
  33. package/esm/funcs/visibilityCitationsList.d.ts +1 -1
  34. package/esm/funcs/visibilityCitationsList.js +2 -1
  35. package/esm/funcs/visibilityCitationsList.js.map +1 -1
  36. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts +16 -0
  37. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  38. package/esm/funcs/visibilityCitationsSummaryRetrieve.js +93 -0
  39. package/esm/funcs/visibilityCitationsSummaryRetrieve.js.map +1 -0
  40. package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
  41. package/esm/funcs/visibilityCurrentRetrieve.js +2 -1
  42. package/esm/funcs/visibilityCurrentRetrieve.js.map +1 -1
  43. package/esm/funcs/visibilityOverviewRetrieve.d.ts +1 -1
  44. package/esm/funcs/visibilityOverviewRetrieve.js +2 -1
  45. package/esm/funcs/visibilityOverviewRetrieve.js.map +1 -1
  46. package/esm/funcs/visibilityPromptsRetrieve.js +1 -0
  47. package/esm/funcs/visibilityPromptsRetrieve.js.map +1 -1
  48. package/esm/landing-page.js +1 -1
  49. package/esm/lib/config.d.ts +2 -2
  50. package/esm/lib/config.js +2 -2
  51. package/esm/mcp-server/mcp-server.js +1 -1
  52. package/esm/mcp-server/server.d.ts.map +1 -1
  53. package/esm/mcp-server/server.js +4 -0
  54. package/esm/mcp-server/server.js.map +1 -1
  55. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +1 -1
  56. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -1
  57. package/esm/mcp-server/tools/agentsList.js +1 -1
  58. package/esm/mcp-server/tools/agentsList.js.map +1 -1
  59. package/esm/mcp-server/tools/evalsCreate.d.ts.map +1 -1
  60. package/esm/mcp-server/tools/evalsCreate.js +3 -1
  61. package/esm/mcp-server/tools/evalsCreate.js.map +1 -1
  62. package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
  63. package/esm/mcp-server/tools/evalsRun.js +2 -0
  64. package/esm/mcp-server/tools/evalsRun.js.map +1 -1
  65. package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
  66. package/esm/mcp-server/tools/promptsRun.js +7 -3
  67. package/esm/mcp-server/tools/promptsRun.js.map +1 -1
  68. package/esm/mcp-server/tools/promptsRunCancel.d.ts +7 -0
  69. package/esm/mcp-server/tools/promptsRunCancel.d.ts.map +1 -0
  70. package/esm/mcp-server/tools/promptsRunCancel.js +35 -0
  71. package/esm/mcp-server/tools/promptsRunCancel.js.map +1 -0
  72. package/esm/mcp-server/tools/visibilityCitationsList.js +1 -1
  73. package/esm/mcp-server/tools/visibilityCitationsList.js.map +1 -1
  74. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts +7 -0
  75. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  76. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js +35 -0
  77. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js.map +1 -0
  78. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
  79. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
  80. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js +1 -1
  81. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js.map +1 -1
  82. package/esm/models/createv2promptrequest.js +1 -1
  83. package/esm/models/createv2promptrequest.js.map +1 -1
  84. package/esm/models/createv2promptrunrequest.d.ts +1 -0
  85. package/esm/models/createv2promptrunrequest.d.ts.map +1 -1
  86. package/esm/models/createv2promptrunrequest.js +2 -1
  87. package/esm/models/createv2promptrunrequest.js.map +1 -1
  88. package/esm/models/publicagentanalyticscountrylistresponse.d.ts +2 -0
  89. package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -1
  90. package/esm/models/publicagentanalyticscountrylistresponse.js +2 -0
  91. package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -1
  92. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +2 -0
  93. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -1
  94. package/esm/models/publicagentanalyticserrorpagelistresponse.js +2 -0
  95. package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -1
  96. package/esm/models/publicagentanalyticspagelistresponse.d.ts +2 -0
  97. package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -1
  98. package/esm/models/publicagentanalyticspagelistresponse.js +2 -0
  99. package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -1
  100. package/esm/models/publicagentanalyticssourcelistresponse.d.ts +2 -0
  101. package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -1
  102. package/esm/models/publicagentanalyticssourcelistresponse.js +2 -0
  103. package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -1
  104. package/esm/models/publicagentanalyticssummary.d.ts +2 -0
  105. package/esm/models/publicagentanalyticssummary.d.ts.map +1 -1
  106. package/esm/models/publicagentanalyticssummary.js +2 -0
  107. package/esm/models/publicagentanalyticssummary.js.map +1 -1
  108. package/esm/models/publiccitationsummarygroup.d.ts +17 -0
  109. package/esm/models/publiccitationsummarygroup.d.ts.map +1 -0
  110. package/esm/models/publiccitationsummarygroup.js +20 -0
  111. package/esm/models/publiccitationsummarygroup.js.map +1 -0
  112. package/esm/models/publiccitationsummaryresponse.d.ts +61 -0
  113. package/esm/models/publiccitationsummaryresponse.d.ts.map +1 -0
  114. package/esm/models/publiccitationsummaryresponse.js +58 -0
  115. package/esm/models/publiccitationsummaryresponse.js.map +1 -0
  116. package/esm/models/publiccitationsummarytotals.d.ts +14 -0
  117. package/esm/models/publiccitationsummarytotals.d.ts.map +1 -0
  118. package/esm/models/publiccitationsummarytotals.js +17 -0
  119. package/esm/models/publiccitationsummarytotals.js.map +1 -0
  120. package/esm/models/publiccoverage.d.ts +12 -0
  121. package/esm/models/publiccoverage.d.ts.map +1 -0
  122. package/esm/models/publiccoverage.js +15 -0
  123. package/esm/models/publiccoverage.js.map +1 -0
  124. package/esm/models/publiccoverageday.d.ts +41 -0
  125. package/esm/models/publiccoverageday.d.ts.map +1 -0
  126. package/esm/models/publiccoverageday.js +39 -0
  127. package/esm/models/publiccoverageday.js.map +1 -0
  128. package/esm/models/publiccurrentvisibilityresponse.d.ts +8 -0
  129. package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
  130. package/esm/models/publiccurrentvisibilityresponse.js +8 -0
  131. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  132. package/esm/models/publicperiodcoverage.d.ts +13 -0
  133. package/esm/models/publicperiodcoverage.d.ts.map +1 -0
  134. package/esm/models/publicperiodcoverage.js +17 -0
  135. package/esm/models/publicperiodcoverage.js.map +1 -0
  136. package/esm/models/publicperiodrates.d.ts +10 -0
  137. package/esm/models/publicperiodrates.d.ts.map +1 -0
  138. package/esm/models/publicperiodrates.js +14 -0
  139. package/esm/models/publicperiodrates.js.map +1 -0
  140. package/esm/models/publicpreviousvisibility.d.ts +10 -0
  141. package/esm/models/publicpreviousvisibility.d.ts.map +1 -0
  142. package/esm/models/publicpreviousvisibility.js +13 -0
  143. package/esm/models/publicpreviousvisibility.js.map +1 -0
  144. package/esm/models/publicpromptvisibilityreportresponse.d.ts +6 -0
  145. package/esm/models/publicpromptvisibilityreportresponse.d.ts.map +1 -1
  146. package/esm/models/publicpromptvisibilityreportresponse.js +6 -0
  147. package/esm/models/publicpromptvisibilityreportresponse.js.map +1 -1
  148. package/esm/models/publicratechanges.d.ts +8 -0
  149. package/esm/models/publicratechanges.d.ts.map +1 -0
  150. package/esm/models/publicratechanges.js +12 -0
  151. package/esm/models/publicratechanges.js.map +1 -0
  152. package/esm/models/publicrates.d.ts +27 -0
  153. package/esm/models/publicrates.d.ts.map +1 -0
  154. package/esm/models/publicrates.js +25 -0
  155. package/esm/models/publicrates.js.map +1 -0
  156. package/esm/models/publicresolvedperiod.d.ts +14 -0
  157. package/esm/models/publicresolvedperiod.d.ts.map +1 -0
  158. package/esm/models/publicresolvedperiod.js +18 -0
  159. package/esm/models/publicresolvedperiod.js.map +1 -0
  160. package/esm/models/publictopcitedurlsresponse.d.ts +10 -4
  161. package/esm/models/publictopcitedurlsresponse.d.ts.map +1 -1
  162. package/esm/models/publictopcitedurlsresponse.js +9 -3
  163. package/esm/models/publictopcitedurlsresponse.js.map +1 -1
  164. package/esm/models/publicvisibilityoverviewresponse.d.ts +6 -0
  165. package/esm/models/publicvisibilityoverviewresponse.d.ts.map +1 -1
  166. package/esm/models/publicvisibilityoverviewresponse.js +6 -0
  167. package/esm/models/publicvisibilityoverviewresponse.js.map +1 -1
  168. package/esm/models/updatev2promptrequest.js +1 -1
  169. package/esm/models/updatev2promptrequest.js.map +1 -1
  170. package/esm/models/v2agentanalyticscountrieslistop.d.ts +1 -0
  171. package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -1
  172. package/esm/models/v2agentanalyticscountrieslistop.js +1 -0
  173. package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -1
  174. package/esm/models/v2agentanalyticserrorpageslistop.d.ts +1 -0
  175. package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -1
  176. package/esm/models/v2agentanalyticserrorpageslistop.js +1 -0
  177. package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -1
  178. package/esm/models/v2agentanalyticspageslistop.d.ts +1 -0
  179. package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -1
  180. package/esm/models/v2agentanalyticspageslistop.js +1 -0
  181. package/esm/models/v2agentanalyticspageslistop.js.map +1 -1
  182. package/esm/models/v2agentanalyticssourceslistop.d.ts +1 -0
  183. package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -1
  184. package/esm/models/v2agentanalyticssourceslistop.js +1 -0
  185. package/esm/models/v2agentanalyticssourceslistop.js.map +1 -1
  186. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +1 -0
  187. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -1
  188. package/esm/models/v2agentanalyticssummaryretrieveop.js +1 -0
  189. package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -1
  190. package/esm/models/v2promptrunscancelop.d.ts +38 -0
  191. package/esm/models/v2promptrunscancelop.d.ts.map +1 -0
  192. package/esm/models/v2promptrunscancelop.js +31 -0
  193. package/esm/models/v2promptrunscancelop.js.map +1 -0
  194. package/esm/models/v2visibilitycitationslistop.d.ts +1 -0
  195. package/esm/models/v2visibilitycitationslistop.d.ts.map +1 -1
  196. package/esm/models/v2visibilitycitationslistop.js +1 -0
  197. package/esm/models/v2visibilitycitationslistop.js.map +1 -1
  198. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts +54 -0
  199. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts.map +1 -0
  200. package/esm/models/v2visibilitycitationssummaryretrieveop.js +51 -0
  201. package/esm/models/v2visibilitycitationssummaryretrieveop.js.map +1 -0
  202. package/esm/models/v2visibilitycurrentretrieveop.d.ts +1 -0
  203. package/esm/models/v2visibilitycurrentretrieveop.d.ts.map +1 -1
  204. package/esm/models/v2visibilitycurrentretrieveop.js +1 -0
  205. package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
  206. package/esm/models/v2visibilityoverviewretrieveop.d.ts +1 -0
  207. package/esm/models/v2visibilityoverviewretrieveop.d.ts.map +1 -1
  208. package/esm/models/v2visibilityoverviewretrieveop.js +1 -0
  209. package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
  210. package/esm/models/v2visibilitypromptsretrieveop.d.ts +1 -0
  211. package/esm/models/v2visibilitypromptsretrieveop.d.ts.map +1 -1
  212. package/esm/models/v2visibilitypromptsretrieveop.js +1 -0
  213. package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
  214. package/esm/tool-names.d.ts.map +1 -1
  215. package/esm/tool-names.js +16 -8
  216. package/esm/tool-names.js.map +1 -1
  217. package/package.json +1 -1
  218. package/src/funcs/agentAnalyticsCountriesList.ts +1 -0
  219. package/src/funcs/agentAnalyticsErrorPagesList.ts +1 -0
  220. package/src/funcs/agentAnalyticsPagesList.ts +1 -0
  221. package/src/funcs/agentAnalyticsSourcesList.ts +1 -0
  222. package/src/funcs/agentAnalyticsSummaryRetrieve.ts +2 -1
  223. package/src/funcs/agentsList.ts +1 -1
  224. package/src/funcs/evalsCreate.ts +2 -0
  225. package/src/funcs/evalsRun.ts +2 -0
  226. package/src/funcs/promptsRun.ts +7 -3
  227. package/src/funcs/promptsRunCancel.ts +153 -0
  228. package/src/funcs/visibilityCitationsList.ts +2 -1
  229. package/src/funcs/visibilityCitationsSummaryRetrieve.ts +158 -0
  230. package/src/funcs/visibilityCurrentRetrieve.ts +2 -1
  231. package/src/funcs/visibilityOverviewRetrieve.ts +2 -1
  232. package/src/funcs/visibilityPromptsRetrieve.ts +1 -0
  233. package/src/landing-page.ts +1 -1
  234. package/src/lib/config.ts +2 -2
  235. package/src/mcp-server/mcp-server.ts +1 -1
  236. package/src/mcp-server/server.ts +4 -0
  237. package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +1 -1
  238. package/src/mcp-server/tools/agentsList.ts +1 -1
  239. package/src/mcp-server/tools/evalsCreate.ts +3 -1
  240. package/src/mcp-server/tools/evalsRun.ts +2 -0
  241. package/src/mcp-server/tools/promptsRun.ts +7 -3
  242. package/src/mcp-server/tools/promptsRunCancel.ts +43 -0
  243. package/src/mcp-server/tools/visibilityCitationsList.ts +1 -1
  244. package/src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts +45 -0
  245. package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
  246. package/src/mcp-server/tools/visibilityOverviewRetrieve.ts +1 -1
  247. package/src/models/createv2promptrequest.ts +1 -1
  248. package/src/models/createv2promptrunrequest.ts +5 -1
  249. package/src/models/publicagentanalyticscountrylistresponse.ts +8 -0
  250. package/src/models/publicagentanalyticserrorpagelistresponse.ts +8 -0
  251. package/src/models/publicagentanalyticspagelistresponse.ts +8 -0
  252. package/src/models/publicagentanalyticssourcelistresponse.ts +8 -0
  253. package/src/models/publicagentanalyticssummary.ts +8 -0
  254. package/src/models/publiccitationsummarygroup.ts +54 -0
  255. package/src/models/publiccitationsummaryresponse.ts +110 -0
  256. package/src/models/publiccitationsummarytotals.ts +38 -0
  257. package/src/models/publiccoverage.ts +34 -0
  258. package/src/models/publiccoverageday.ts +68 -0
  259. package/src/models/publiccurrentvisibilityresponse.ts +26 -0
  260. package/src/models/publicperiodcoverage.ts +33 -0
  261. package/src/models/publicperiodrates.ts +29 -0
  262. package/src/models/publicpreviousvisibility.ts +30 -0
  263. package/src/models/publicpromptvisibilityreportresponse.ts +18 -0
  264. package/src/models/publicratechanges.ts +25 -0
  265. package/src/models/publicrates.ts +52 -0
  266. package/src/models/publicresolvedperiod.ts +41 -0
  267. package/src/models/publictopcitedurlsresponse.ts +25 -5
  268. package/src/models/publicvisibilityoverviewresponse.ts +18 -0
  269. package/src/models/updatev2promptrequest.ts +1 -1
  270. package/src/models/v2agentanalyticscountrieslistop.ts +4 -0
  271. package/src/models/v2agentanalyticserrorpageslistop.ts +4 -0
  272. package/src/models/v2agentanalyticspageslistop.ts +4 -0
  273. package/src/models/v2agentanalyticssourceslistop.ts +4 -0
  274. package/src/models/v2agentanalyticssummaryretrieveop.ts +4 -0
  275. package/src/models/v2promptrunscancelop.ts +90 -0
  276. package/src/models/v2visibilitycitationslistop.ts +4 -0
  277. package/src/models/v2visibilitycitationssummaryretrieveop.ts +113 -0
  278. package/src/models/v2visibilitycurrentretrieveop.ts +4 -0
  279. package/src/models/v2visibilityoverviewretrieveop.ts +4 -0
  280. package/src/models/v2visibilitypromptsretrieveop.ts +4 -0
  281. package/src/tool-names.ts +16 -8
package/bin/mcp-server.js CHANGED
@@ -26195,7 +26195,8 @@ var require_formats = __commonJS(function(exports, module) {
26195
26195
  var percentTwenties = /%20/g;
26196
26196
  var Format = {
26197
26197
  RFC1738: "RFC1738",
26198
- RFC3986: "RFC3986"
26198
+ RFC3986: "RFC3986",
26199
+ WHATWG: "WHATWG"
26199
26200
  };
26200
26201
  module.exports = {
26201
26202
  default: Format.RFC3986,
@@ -26205,10 +26206,14 @@ var require_formats = __commonJS(function(exports, module) {
26205
26206
  },
26206
26207
  RFC3986: function(value) {
26207
26208
  return String(value);
26209
+ },
26210
+ WHATWG: function(value) {
26211
+ return replace.call(value, percentTwenties, "+");
26208
26212
  }
26209
26213
  },
26210
26214
  RFC1738: Format.RFC1738,
26211
- RFC3986: Format.RFC3986
26215
+ RFC3986: Format.RFC3986,
26216
+ WHATWG: Format.WHATWG
26212
26217
  };
26213
26218
  });
26214
26219
 
@@ -26512,7 +26517,7 @@ var require_utils2 = __commonJS(function(exports, module) {
26512
26517
  var arr = [];
26513
26518
  for (var i = 0;i < segment.length; ++i) {
26514
26519
  var c = segment.charCodeAt(i);
26515
- if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
26520
+ if (c === 45 || c === 46 || c === 95 || c === 126 && format !== formats.WHATWG || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41) || format === formats.WHATWG && c === 42) {
26516
26521
  arr[arr.length] = segment.charAt(i);
26517
26522
  continue;
26518
26523
  }
@@ -26528,9 +26533,14 @@ var require_utils2 = __commonJS(function(exports, module) {
26528
26533
  arr[arr.length] = hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
26529
26534
  continue;
26530
26535
  }
26531
- i += 1;
26532
- c = 65536 + ((c & 1023) << 10 | segment.charCodeAt(i) & 1023);
26533
- arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
26536
+ var next = segment.charCodeAt(i + 1);
26537
+ if (c <= 56319 && next >= 56320 && next <= 57343) {
26538
+ i += 1;
26539
+ c = 65536 + ((c & 1023) << 10 | next & 1023);
26540
+ arr[arr.length] = hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
26541
+ } else {
26542
+ arr[arr.length] = "%EF%BF%BD";
26543
+ }
26534
26544
  }
26535
26545
  out += arr.join("");
26536
26546
  }
@@ -26610,6 +26620,7 @@ var require_utils2 = __commonJS(function(exports, module) {
26610
26620
  markOverflow,
26611
26621
  maybeMap,
26612
26622
  merge,
26623
+ setProperty,
26613
26624
  toCoercible
26614
26625
  };
26615
26626
  });
@@ -26734,7 +26745,7 @@ var require_stringify = __commonJS(function(exports, module) {
26734
26745
  var encodedPrefix = String(prefix);
26735
26746
  var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + "[]" : encodedPrefix;
26736
26747
  if (allowEmptyArrays && isArray(obj) && obj.length === 0 && Object.keys(obj).length === 0) {
26737
- return adjustedPrefix + "[]";
26748
+ return formatter(encoder && !encodeValuesOnly ? encoder(adjustedPrefix, defaults.encoder, charset, "key", format) : adjustedPrefix) + "[]";
26738
26749
  }
26739
26750
  for (var j = 0;j < objKeys.length; ++j) {
26740
26751
  var key = objKeys[j];
@@ -26824,7 +26835,7 @@ var require_stringify = __commonJS(function(exports, module) {
26824
26835
  filter = options.filter;
26825
26836
  obj = filter("", obj);
26826
26837
  } else if (isArray(options.filter)) {
26827
- filter = options.filter;
26838
+ filter = options.filter.slice();
26828
26839
  objKeys = filter;
26829
26840
  }
26830
26841
  var keys = [];
@@ -26850,7 +26861,7 @@ var require_stringify = __commonJS(function(exports, module) {
26850
26861
  continue;
26851
26862
  }
26852
26863
  var encodedKey = options.encodeDotInKeys ? String(key).replace(/\./g, "%2E") : String(key);
26853
- pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
26864
+ pushToArray(keys, stringify(value, encodedKey, generateArrayPrefix, commaRoundTrip, options.allowEmptyArrays, options.strictNullHandling, options.skipNulls, options.encodeDotInKeys, options.encode ? options.encoder : null, filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel, options.depth, 0));
26854
26865
  }
26855
26866
  var joined = keys.join(options.delimiter);
26856
26867
  var prefix = options.addQueryPrefix === true ? "?" : "";
@@ -26906,9 +26917,9 @@ var require_parse = __commonJS(function(exports, module) {
26906
26917
  copies.set(value, copy);
26907
26918
  queue[queue.length] = { source: value, target: copy };
26908
26919
  }
26909
- target[keys[j]] = copies.get(value);
26920
+ utils.setProperty(target, keys[j], copies.get(value));
26910
26921
  } else {
26911
- target[keys[j]] = value;
26922
+ utils.setProperty(target, keys[j], value);
26912
26923
  }
26913
26924
  }
26914
26925
  }
@@ -26958,7 +26969,7 @@ var require_parse = __commonJS(function(exports, module) {
26958
26969
  }
26959
26970
  return val.split(",");
26960
26971
  }
26961
- if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
26972
+ if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit && currentArrayLength > 0) {
26962
26973
  throw new RangeError("Array limit exceeded. Only " + options.arrayLimit + " element" + (options.arrayLimit === 1 ? "" : "s") + " allowed in an array.");
26963
26974
  }
26964
26975
  return val;
@@ -27006,13 +27017,15 @@ var require_parse = __commonJS(function(exports, module) {
27006
27017
  } else {
27007
27018
  key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
27008
27019
  if (key !== null) {
27009
- val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) ? obj[key].length : 0), function(encodedVal) {
27020
+ val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options, isArray(obj[key]) && (options.duplicates === "combine" || isEmptyBracketKey) ? obj[key].length : 0), function(encodedVal) {
27010
27021
  return options.decoder(encodedVal, defaults.decoder, charset, "value");
27011
27022
  });
27012
27023
  }
27013
27024
  }
27014
27025
  if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
27015
- val = interpretNumericEntities(String(val));
27026
+ val = utils.maybeMap(val, function(value) {
27027
+ return value ? interpretNumericEntities(String(value)) : value;
27028
+ });
27016
27029
  }
27017
27030
  if (isEmptyBracketKey) {
27018
27031
  val = isArray(val) ? [val] : val;
@@ -27050,7 +27063,7 @@ var require_parse = __commonJS(function(exports, module) {
27050
27063
  } else {
27051
27064
  obj = options.plainObjects ? { __proto__: null } : {};
27052
27065
  var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
27053
- var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, ".") : cleanRoot;
27066
+ var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/gi, ".") : cleanRoot;
27054
27067
  var index = parseInt(decodedRoot, 10);
27055
27068
  var isValidArrayIndex = !isNaN(index) && root !== decodedRoot && String(index) === decodedRoot && index >= 0 && options.parseArrays;
27056
27069
  if (!options.parseArrays && decodedRoot === "") {
@@ -53715,9 +53728,9 @@ var init_config = __esm(() => {
53715
53728
  SDK_METADATA = {
53716
53729
  language: "typescript",
53717
53730
  openapiDocVersion: "1.0.0",
53718
- sdkVersion: "0.4.17",
53731
+ sdkVersion: "0.4.18",
53719
53732
  genVersion: "2.948.4",
53720
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.17 2.948.4 1.0.0 @lightsage/mcp"
53733
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.18 2.948.4 1.0.0 @lightsage/mcp"
53721
53734
  };
53722
53735
  });
53723
53736
 
@@ -55217,14 +55230,33 @@ var init_publicagentcountry = __esm(() => {
55217
55230
  });
55218
55231
  });
55219
55232
 
55233
+ // src/models/publicresolvedperiod.ts
55234
+ var PublicResolvedPeriod$zodSchema;
55235
+ var init_publicresolvedperiod = __esm(() => {
55236
+ init_zod();
55237
+ PublicResolvedPeriod$zodSchema = object({
55238
+ days: int().describe("Days in the period, counting both ends."),
55239
+ end_date: string2().describe("Last day of the period (UTC), inclusive."),
55240
+ name: string2().nullable().optional().describe("The `period` requested, or null when the range came from `start_date` and `end_date`."),
55241
+ partial: boolean2().describe("Whether the period includes today, so its last day is still in progress."),
55242
+ previous_days: int().describe("Days in the previous period."),
55243
+ previous_end_date: string2().describe("Last day of the previous period. While a calendar week, month, or quarter is in progress, the previous one is cut to the same number of days."),
55244
+ previous_start_date: string2().describe("First day of the previous period it is compared with."),
55245
+ start_date: string2().describe("First day of the period (UTC), inclusive."),
55246
+ timezone: literal("UTC").default("UTC")
55247
+ });
55248
+ });
55249
+
55220
55250
  // src/models/publicagentanalyticscountrylistresponse.ts
55221
55251
  var PublicAgentAnalyticsCountryListResponse$zodSchema;
55222
55252
  var init_publicagentanalyticscountrylistresponse = __esm(() => {
55223
55253
  init_zod();
55224
55254
  init_publicagentcountry();
55255
+ init_publicresolvedperiod();
55225
55256
  PublicAgentAnalyticsCountryListResponse$zodSchema = object({
55226
55257
  countries: array(PublicAgentCountry$zodSchema).optional().describe("Visits from coding agents and AI assistants per country, most visits first. The country is located from the IP address the request came from. For hosted assistants such as ChatGPT that is usually the provider's servers, not the person who asked; for coding agents it is usually the developer's machine."),
55227
55258
  end_date: string2().date(),
55259
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
55228
55260
  site_id: string2(),
55229
55261
  start_date: string2().date()
55230
55262
  });
@@ -55239,6 +55271,7 @@ var init_v2agentanalyticscountrieslistop = __esm(() => {
55239
55271
  V2AgentAnalyticsCountriesListRequest$zodSchema = object({
55240
55272
  end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
55241
55273
  limit: int().default(20),
55274
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
55242
55275
  site_id: string2(),
55243
55276
  start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
55244
55277
  });
@@ -55298,6 +55331,7 @@ async function $do(client$, request, options) {
55298
55331
  const query$ = encodeFormQuery({
55299
55332
  end_date: payload$.end_date,
55300
55333
  limit: payload$.limit,
55334
+ period: payload$.period,
55301
55335
  start_date: payload$.start_date
55302
55336
  });
55303
55337
  const headers$ = new Headers(compactMap({
@@ -55442,9 +55476,11 @@ var PublicAgentAnalyticsErrorPageListResponse$zodSchema;
55442
55476
  var init_publicagentanalyticserrorpagelistresponse = __esm(() => {
55443
55477
  init_zod();
55444
55478
  init_publicagenterrorpage();
55479
+ init_publicresolvedperiod();
55445
55480
  PublicAgentAnalyticsErrorPageListResponse$zodSchema = object({
55446
55481
  end_date: string2().date(),
55447
55482
  pages: array(PublicAgentErrorPage$zodSchema).optional().describe("Most error requests first."),
55483
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
55448
55484
  site_id: string2(),
55449
55485
  start_date: string2().date(),
55450
55486
  status_codes_tracked: boolean2().describe("Whether any request to the site in the date range reported a status code. Status codes come from server-side tracking such as a log drain or middleware; when this is false, an empty `pages` list does not mean there were no errors.")
@@ -55468,6 +55504,7 @@ var init_v2agentanalyticserrorpageslistop = __esm(() => {
55468
55504
  V2AgentAnalyticsErrorPagesListRequest$zodSchema = object({
55469
55505
  end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
55470
55506
  limit: int().default(50),
55507
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
55471
55508
  site_id: string2(),
55472
55509
  start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional(),
55473
55510
  status: int().describe("Only this status code, such as 404.").optional(),
@@ -55500,6 +55537,7 @@ async function $do2(client$, request, options) {
55500
55537
  const query$ = encodeFormQuery({
55501
55538
  end_date: payload$.end_date,
55502
55539
  limit: payload$.limit,
55540
+ period: payload$.period,
55503
55541
  start_date: payload$.start_date,
55504
55542
  status: payload$.status,
55505
55543
  type: payload$.type
@@ -55622,10 +55660,12 @@ var PublicAgentAnalyticsPageListResponse$zodSchema;
55622
55660
  var init_publicagentanalyticspagelistresponse = __esm(() => {
55623
55661
  init_zod();
55624
55662
  init_publicagenttrafficpage();
55663
+ init_publicresolvedperiod();
55625
55664
  PublicAgentAnalyticsPageListResponse$zodSchema = object({
55626
55665
  agent: string2().nullable().optional().describe("The coding agent the pages were filtered to, when `agent` was set. Its visits are in `coding` and `ai_total`; the other counts are 0."),
55627
55666
  end_date: string2().date(),
55628
55667
  pages: array(PublicAgentTrafficPage$zodSchema).optional(),
55668
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
55629
55669
  site_id: string2(),
55630
55670
  start_date: string2().date()
55631
55671
  });
@@ -55659,6 +55699,7 @@ var init_v2agentanalyticspageslistop = __esm(() => {
55659
55699
  agent: string2().describe("Only pages this coding agent read, by the `name` the sources list gives it, such as `codex` or `cursor`.").optional(),
55660
55700
  end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
55661
55701
  limit: int().default(20),
55702
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
55662
55703
  search: string2().describe("Only pages whose path contains this text.").optional(),
55663
55704
  site_id: string2(),
55664
55705
  sort: Sort$zodSchema.default("ai_total").describe("Traffic type to sort by, most visits first, or `last_seen` for the latest visit first."),
@@ -55693,6 +55734,7 @@ async function $do3(client$, request, options) {
55693
55734
  agent: payload$.agent,
55694
55735
  end_date: payload$.end_date,
55695
55736
  limit: payload$.limit,
55737
+ period: payload$.period,
55696
55738
  search: payload$.search,
55697
55739
  sort: payload$.sort,
55698
55740
  start_date: payload$.start_date,
@@ -55918,8 +55960,10 @@ var PublicAgentAnalyticsSourceListResponse$zodSchema;
55918
55960
  var init_publicagentanalyticssourcelistresponse = __esm(() => {
55919
55961
  init_zod();
55920
55962
  init_publicagenttrafficsource();
55963
+ init_publicresolvedperiod();
55921
55964
  PublicAgentAnalyticsSourceListResponse$zodSchema = object({
55922
55965
  end_date: string2().date(),
55966
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
55923
55967
  site_id: string2(),
55924
55968
  sources: array(PublicAgentTrafficSource$zodSchema).optional().describe("Most visits first."),
55925
55969
  start_date: string2().date()
@@ -55934,6 +55978,7 @@ var init_v2agentanalyticssourceslistop = __esm(() => {
55934
55978
  init_publicagentanalyticssourcelistresponse();
55935
55979
  V2AgentAnalyticsSourcesListRequest$zodSchema = object({
55936
55980
  end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
55981
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
55937
55982
  site_id: string2(),
55938
55983
  start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
55939
55984
  });
@@ -55963,6 +56008,7 @@ async function $do5(client$, request, options) {
55963
56008
  const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/sources")(pathParams$);
55964
56009
  const query$ = encodeFormQuery({
55965
56010
  end_date: payload$.end_date,
56011
+ period: payload$.period,
55966
56012
  start_date: payload$.start_date
55967
56013
  });
55968
56014
  const headers$ = new Headers(compactMap({
@@ -56082,9 +56128,11 @@ var PublicAgentAnalyticsSummary$zodSchema;
56082
56128
  var init_publicagentanalyticssummary = __esm(() => {
56083
56129
  init_zod();
56084
56130
  init_publicagenttraffictotals();
56131
+ init_publicresolvedperiod();
56085
56132
  PublicAgentAnalyticsSummary$zodSchema = object({
56086
56133
  current: PublicAgentTrafficTotals$zodSchema,
56087
56134
  end_date: string2().date(),
56135
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
56088
56136
  previous: PublicAgentTrafficTotals$zodSchema,
56089
56137
  site_id: string2(),
56090
56138
  start_date: string2().date()
@@ -56099,6 +56147,7 @@ var init_v2agentanalyticssummaryretrieveop = __esm(() => {
56099
56147
  init_publicagentanalyticssummary();
56100
56148
  V2AgentAnalyticsSummaryRetrieveRequest$zodSchema = object({
56101
56149
  end_date: string2().date().describe("Inclusive range end in UTC; defaults to today.").optional(),
56150
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
56102
56151
  site_id: string2(),
56103
56152
  start_date: string2().date().describe("Inclusive range start; defaults to 6 days before the end date. The range may span at most 90 days.").optional()
56104
56153
  });
@@ -56128,6 +56177,7 @@ async function $do6(client$, request, options) {
56128
56177
  const path$ = pathToFunc("/v2/agent-analytics/sites/{site_id}/summary")(pathParams$);
56129
56178
  const query$ = encodeFormQuery({
56130
56179
  end_date: payload$.end_date,
56180
+ period: payload$.period,
56131
56181
  start_date: payload$.start_date
56132
56182
  });
56133
56183
  const headers$ = new Headers(compactMap({
@@ -56204,7 +56254,7 @@ var init_agentAnalyticsSummaryRetrieve2 = __esm(() => {
56204
56254
  name: "agent-analytics-summary-retrieve",
56205
56255
  description: `Retrieve Agent Analytics Summary
56206
56256
 
56207
- Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it.`,
56257
+ Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the previous period (the same number of days before it, or the previous calendar week, month, or quarter for a named \`period\`).`,
56208
56258
  annotations: {
56209
56259
  title: "",
56210
56260
  destructiveHint: false,
@@ -57419,7 +57469,7 @@ var init_agentsList2 = __esm(() => {
57419
57469
  name: "agents-list",
57420
57470
  description: `List Agents
57421
57471
 
57422
- Returns the harness-and-model combinations your plan can run, as single agent IDs for use in eval runs.`,
57472
+ Returns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as \`agent\` to \`POST /v2/prompts/runs\` to see how coding agents answer your prompts, with mentions and citations; to \`POST /v2/agent-preference/evals\` to see whether agents recommend your company over one competitor; or to \`POST /v2/evals\` and \`POST /v2/eval-runs\` to measure how well agents complete tasks with your product.`,
57423
57473
  annotations: {
57424
57474
  title: "",
57425
57475
  destructiveHint: false,
@@ -58954,7 +59004,9 @@ var init_evalsCreate2 = __esm(() => {
58954
59004
  name: "evals-create",
58955
59005
  description: `Create Eval
58956
59006
 
58957
- Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.`,
59007
+ Creates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. \`search_grounding\` supports \`disabled\`, \`enabled\`, and \`default\`; \`default\` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.
59008
+
59009
+ Evals measure how well agents complete tasks with your product. To track how agents and answer engines answer research questions, including which brands they mention and cite, run prompts with \`POST /v2/prompts/runs\` instead.`,
58958
59010
  annotations: {
58959
59011
  title: "",
58960
59012
  destructiveHint: false,
@@ -59772,6 +59824,8 @@ var init_evalsRun2 = __esm(() => {
59772
59824
 
59773
59825
  Queues a durable eval job and returns immediately with a polling ID. Poll \`GET /v2/eval-runs/{run_id}\` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.
59774
59826
 
59827
+ Eval runs measure how well agents complete tasks with your product. To compare how coding agents and answer engines answer the same research question, with mentions and citations, use \`POST /v2/prompts/runs\` with \`agent\` instead.
59828
+
59775
59829
  Send one of these flat request forms:
59776
59830
 
59777
59831
  - **Saved eval:** provide \`eval_id\`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.
@@ -61460,7 +61514,7 @@ var init_createv2promptrequest = __esm(() => {
61460
61514
  init_zod();
61461
61515
  init_v2promptrunsettingsinput();
61462
61516
  CreateV2PromptRequest$zodSchema = object({
61463
- platform_ids: array(string2()).optional().describe("Answer-platform IDs from the prompt configuration. Omit to attach none."),
61517
+ platform_ids: array(string2()).optional().describe("Platform IDs, as returned in `platforms` on `GET /v2/prompts`. Omit to attach none. To choose which coding-agent models a run uses, pass `agent` to `POST /v2/prompts/runs`."),
61464
61518
  run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional().describe("Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values."),
61465
61519
  text: string2(),
61466
61520
  topic_id: string2().describe("Prompt topic ID from `GET /v2/prompts/topics`.")
@@ -62081,7 +62135,8 @@ var CreateV2PromptRunRequest$zodSchema;
62081
62135
  var init_createv2promptrunrequest = __esm(() => {
62082
62136
  init_zod();
62083
62137
  CreateV2PromptRunRequest$zodSchema = object({
62084
- force: boolean2().default(false).describe("Run even when a prompt already ran today on the configured platform and model."),
62138
+ agent: array(string2()).nullable().optional().describe("Runnable agents from `GET /v2/agents`, each a coding-agent harness and model such as `claude-code:claude-opus-5-5`. Every selected prompt runs once on each agent, so you can compare how several coding tools and models answer the same question. When set, this run uses only these agents instead of the organization's configured targets, including answer engines. Omit it to use the configured targets. CLI clients expose repeatable `--agent`."),
62139
+ force: boolean2().default(false).describe("Run even when a prompt already ran today on the same platform and model."),
62085
62140
  prompt_ids: array(string2()).nullable().optional().describe("Prompt IDs from `GET /v2/prompts`. Omit this field to run all active prompts.")
62086
62141
  });
62087
62142
  });
@@ -62172,11 +62227,15 @@ var init_promptsRun2 = __esm(() => {
62172
62227
  name: "prompts-run",
62173
62228
  description: `Run Prompts
62174
62229
 
62175
- Queue saved prompts using the organization's configured targets.
62230
+ Queue saved prompts on answer engines and coding agents.
62176
62231
 
62177
62232
  Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
62178
- prompts. Saved prompt run settings apply to coding-agent targets. The
62179
- response returns a run ID to poll with
62233
+ prompts. By default the run uses the organization's configured targets.
62234
+ Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
62235
+ specific coding-agent harnesses and models instead, for example to compare
62236
+ how several coding tools answer the same developer question. Results
62237
+ include mentions and citations. Saved prompt run settings apply to
62238
+ coding-agent targets. The response returns a run ID to poll with
62180
62239
  \`GET /v2/prompts/runs/{run_id}/status\`.`,
62181
62240
  annotations: {
62182
62241
  title: "",
@@ -62199,6 +62258,190 @@ response returns a run ID to poll with
62199
62258
  };
62200
62259
  });
62201
62260
 
62261
+ // src/models/v2promptrunjobresponse.ts
62262
+ var V2PromptRunJobResponseStatusEnum$zodSchema, Status$zodSchema, V2PromptRunJobResponse$zodSchema;
62263
+ var init_v2promptrunjobresponse = __esm(() => {
62264
+ init_zod();
62265
+ init_publicevalrunprogress();
62266
+ V2PromptRunJobResponseStatusEnum$zodSchema = _enum([
62267
+ "pending",
62268
+ "running",
62269
+ "summarizing",
62270
+ "completed",
62271
+ "failed",
62272
+ "cancelled",
62273
+ "interrupted"
62274
+ ]);
62275
+ Status$zodSchema = union([
62276
+ V2PromptRunJobResponseStatusEnum$zodSchema,
62277
+ string2()
62278
+ ]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.");
62279
+ V2PromptRunJobResponse$zodSchema = object({
62280
+ completed_at: string2().nullable().optional().describe("Can be set while `status` is still `summarizing`; use `status` to detect completion."),
62281
+ created_at: string2().nullable().optional(),
62282
+ dispatch_id: string2().nullable().optional(),
62283
+ error: string2().nullable().optional(),
62284
+ estimated_cost: number2().nullable().optional().describe("The estimated credit cost for prompt jobs or estimated USD cost for API Performance jobs. Null when no estimate is available."),
62285
+ eval_count: int().nullable().optional(),
62286
+ id: string2().describe("Run ID to poll with `GET /v2/prompts/runs/{run_id}/status`."),
62287
+ job_id: string2().describe("Parent job ID. It currently matches `id`."),
62288
+ model_count: int().nullable().optional(),
62289
+ progress: PublicEvalRunProgress$zodSchema.optional(),
62290
+ source_type: literal("prompts").default("prompts").optional(),
62291
+ stage: string2().nullable().optional().describe("Current lifecycle stage, including `retrying` while interrupted child jobs wait to be reclaimed."),
62292
+ started_at: string2().nullable().optional(),
62293
+ status: union([
62294
+ V2PromptRunJobResponseStatusEnum$zodSchema,
62295
+ string2()
62296
+ ]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`."),
62297
+ type: literal("prompts").default("prompts").optional()
62298
+ });
62299
+ });
62300
+
62301
+ // src/models/v2promptrunscancelop.ts
62302
+ var V2PromptRunsCancelRequest$zodSchema, V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema, V2PromptRunsCancelConflictResponseBody$zodSchema, V2PromptRunsCancelNotFoundResponseBody$zodSchema, V2PromptRunsCancelBadRequestResponseBody$zodSchema, V2PromptRunsCancelResponse$zodSchema;
62303
+ var init_v2promptrunscancelop = __esm(() => {
62304
+ init_zod();
62305
+ init_httpvalidationerror();
62306
+ init_v2promptrunjobresponse();
62307
+ V2PromptRunsCancelRequest$zodSchema = object({
62308
+ run_id: string2().describe("Run ID returned by `POST /v2/prompts/runs`, not a stored prompt result ID.")
62309
+ });
62310
+ V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema = object({
62311
+ detail: string2()
62312
+ }).describe("Prompt run cancellation is temporarily unavailable.");
62313
+ V2PromptRunsCancelConflictResponseBody$zodSchema = object({
62314
+ detail: string2()
62315
+ }).describe("The prompt run has already completed or failed.");
62316
+ V2PromptRunsCancelNotFoundResponseBody$zodSchema = object({
62317
+ detail: string2()
62318
+ }).describe("Prompt run not found. Use the run ID returned when you started the prompt run.");
62319
+ V2PromptRunsCancelBadRequestResponseBody$zodSchema = object({
62320
+ detail: string2()
62321
+ }).describe("The prompt run ID is not a valid UUID.");
62322
+ V2PromptRunsCancelResponse$zodSchema = union([
62323
+ V2PromptRunJobResponse$zodSchema,
62324
+ lazy(() => V2PromptRunsCancelBadRequestResponseBody$zodSchema),
62325
+ lazy(() => V2PromptRunsCancelNotFoundResponseBody$zodSchema),
62326
+ lazy(() => V2PromptRunsCancelConflictResponseBody$zodSchema),
62327
+ lazy(() => V2PromptRunsCancelServiceUnavailableResponseBody$zodSchema),
62328
+ HTTPValidationError$zodSchema
62329
+ ]);
62330
+ });
62331
+
62332
+ // src/funcs/promptsRunCancel.ts
62333
+ function promptsRunCancel(client$, request, options) {
62334
+ return new APIPromise($do47(client$, request, options));
62335
+ }
62336
+ async function $do47(client$, request, options) {
62337
+ const parsed$ = safeParse4(request, (value$) => V2PromptRunsCancelRequest$zodSchema.parse(value$), "Input validation failed");
62338
+ if (!parsed$.ok) {
62339
+ return [parsed$, { status: "invalid" }];
62340
+ }
62341
+ const payload$ = parsed$.value;
62342
+ const body$ = null;
62343
+ const pathParams$ = {
62344
+ run_id: encodeSimple("run_id", payload$.run_id, {
62345
+ explode: false,
62346
+ charEncoding: "percent"
62347
+ })
62348
+ };
62349
+ const path$ = pathToFunc("/v2/prompts/runs/{run_id}/cancel")(pathParams$);
62350
+ const headers$ = new Headers(compactMap({
62351
+ Accept: "application/json"
62352
+ }));
62353
+ const securityInput = await extractSecurity(client$._options.security);
62354
+ const requestSecurity = resolveGlobalSecurity(securityInput);
62355
+ const context = {
62356
+ options: client$._options,
62357
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
62358
+ operationID: "v2_prompt_runs_cancel",
62359
+ oAuth2Scopes: null,
62360
+ resolvedSecurity: requestSecurity,
62361
+ securitySource: client$._options.security,
62362
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
62363
+ retryCodes: options?.retryCodes || [
62364
+ "429",
62365
+ "500",
62366
+ "502",
62367
+ "503",
62368
+ "504"
62369
+ ]
62370
+ };
62371
+ const requestRes = client$._createRequest(context, {
62372
+ security: requestSecurity,
62373
+ method: "POST",
62374
+ baseURL: options?.serverURL,
62375
+ path: path$,
62376
+ headers: headers$,
62377
+ body: body$,
62378
+ userAgent: client$._options.userAgent,
62379
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
62380
+ }, options);
62381
+ if (!requestRes.ok) {
62382
+ return [requestRes, { status: "invalid" }];
62383
+ }
62384
+ const req$ = requestRes.value;
62385
+ const doResult = await client$._do(req$, {
62386
+ context,
62387
+ errorCodes: [],
62388
+ retryConfig: context.retryConfig,
62389
+ retryCodes: context.retryCodes
62390
+ });
62391
+ if (!doResult.ok) {
62392
+ return [doResult, { status: "request-error", request: req$ }];
62393
+ }
62394
+ return [doResult, {
62395
+ status: "complete",
62396
+ request: req$,
62397
+ response: doResult.value
62398
+ }];
62399
+ }
62400
+ var init_promptsRunCancel = __esm(() => {
62401
+ init_encodings();
62402
+ init_primitives();
62403
+ init_schemas4();
62404
+ init_security();
62405
+ init_url();
62406
+ init_v2promptrunscancelop();
62407
+ init_async();
62408
+ });
62409
+
62410
+ // src/mcp-server/tools/promptsRunCancel.ts
62411
+ var args38, tool$promptsRunCancel;
62412
+ var init_promptsRunCancel2 = __esm(() => {
62413
+ init_promptsRunCancel();
62414
+ init_v2promptrunscancelop();
62415
+ init_tools();
62416
+ args38 = {
62417
+ request: V2PromptRunsCancelRequest$zodSchema
62418
+ };
62419
+ tool$promptsRunCancel = {
62420
+ name: "prompts-run-cancel",
62421
+ description: `Cancel a prompt run
62422
+
62423
+ Marks an active prompt run as cancelled and prevents queued prompts from starting. Running coding-agent attempts are stopped asynchronously. Requests already sent to an answer platform cannot be recalled, so prompts already in progress may still finish and store their results, but the run stays cancelled. Prompts that never start use no usage-based credits. The response has the same shape as the status operation, with cancelled prompts counted in \`progress.cancelled\`. Repeating this request for an already-cancelled run is safe.`,
62424
+ annotations: {
62425
+ title: "",
62426
+ destructiveHint: false,
62427
+ idempotentHint: false,
62428
+ openWorldHint: false,
62429
+ readOnlyHint: false
62430
+ },
62431
+ args: args38,
62432
+ tool: async (client, args, ctx) => {
62433
+ const [result] = await promptsRunCancel(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62434
+ if (!result.ok) {
62435
+ return {
62436
+ content: [{ type: "text", text: result.error.message }],
62437
+ isError: true
62438
+ };
62439
+ }
62440
+ return formatResult(result.value);
62441
+ }
62442
+ };
62443
+ });
62444
+
62202
62445
  // src/models/v2promptrunplatform.ts
62203
62446
  var V2PromptRunPlatform$zodSchema;
62204
62447
  var init_v2promptrunplatform = __esm(() => {
@@ -62299,9 +62542,9 @@ var init_v2promptrunslistop = __esm(() => {
62299
62542
 
62300
62543
  // src/funcs/promptsRunsList.ts
62301
62544
  function promptsRunsList(client$, request, options) {
62302
- return new APIPromise($do47(client$, request, options));
62545
+ return new APIPromise($do48(client$, request, options));
62303
62546
  }
62304
- async function $do47(client$, request, options) {
62547
+ async function $do48(client$, request, options) {
62305
62548
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
62306
62549
  if (!parsed$.ok) {
62307
62550
  return [parsed$, { status: "invalid" }];
@@ -62379,12 +62622,12 @@ var init_promptsRunsList = __esm(() => {
62379
62622
  });
62380
62623
 
62381
62624
  // src/mcp-server/tools/promptsRunsList.ts
62382
- var args38, tool$promptsRunsList;
62625
+ var args39, tool$promptsRunsList;
62383
62626
  var init_promptsRunsList2 = __esm(() => {
62384
62627
  init_promptsRunsList();
62385
62628
  init_v2promptrunslistop();
62386
62629
  init_tools();
62387
- args38 = {
62630
+ args39 = {
62388
62631
  request: V2PromptRunsListRequest$zodSchema.optional()
62389
62632
  };
62390
62633
  tool$promptsRunsList = {
@@ -62399,7 +62642,7 @@ Returns stored prompt runs with limit-and-offset pagination, without exposing ra
62399
62642
  openWorldHint: false,
62400
62643
  readOnlyHint: true
62401
62644
  },
62402
- args: args38,
62645
+ args: args39,
62403
62646
  tool: async (client, args, ctx) => {
62404
62647
  const [result] = await promptsRunsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62405
62648
  if (!result.ok) {
@@ -62512,9 +62755,9 @@ var init_v2promptrunsretrieveop = __esm(() => {
62512
62755
 
62513
62756
  // src/funcs/promptsRunsRetrieve.ts
62514
62757
  function promptsRunsRetrieve(client$, request, options) {
62515
- return new APIPromise($do48(client$, request, options));
62758
+ return new APIPromise($do49(client$, request, options));
62516
62759
  }
62517
- async function $do48(client$, request, options) {
62760
+ async function $do49(client$, request, options) {
62518
62761
  const parsed$ = safeParse4(request, (value$) => V2PromptRunsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
62519
62762
  if (!parsed$.ok) {
62520
62763
  return [parsed$, { status: "invalid" }];
@@ -62589,12 +62832,12 @@ var init_promptsRunsRetrieve = __esm(() => {
62589
62832
  });
62590
62833
 
62591
62834
  // src/mcp-server/tools/promptsRunsRetrieve.ts
62592
- var args39, tool$promptsRunsRetrieve;
62835
+ var args40, tool$promptsRunsRetrieve;
62593
62836
  var init_promptsRunsRetrieve2 = __esm(() => {
62594
62837
  init_promptsRunsRetrieve();
62595
62838
  init_v2promptrunsretrieveop();
62596
62839
  init_tools();
62597
- args39 = {
62840
+ args40 = {
62598
62841
  request: V2PromptRunsRetrieveRequest$zodSchema
62599
62842
  };
62600
62843
  tool$promptsRunsRetrieve = {
@@ -62609,7 +62852,7 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
62609
62852
  openWorldHint: false,
62610
62853
  readOnlyHint: true
62611
62854
  },
62612
- args: args39,
62855
+ args: args40,
62613
62856
  tool: async (client, args, ctx) => {
62614
62857
  const [result] = await promptsRunsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62615
62858
  if (!result.ok) {
@@ -62623,46 +62866,6 @@ Returns one stored prompt run, including mentions, citations, and any sanitized
62623
62866
  };
62624
62867
  });
62625
62868
 
62626
- // src/models/v2promptrunjobresponse.ts
62627
- var V2PromptRunJobResponseStatusEnum$zodSchema, Status$zodSchema, V2PromptRunJobResponse$zodSchema;
62628
- var init_v2promptrunjobresponse = __esm(() => {
62629
- init_zod();
62630
- init_publicevalrunprogress();
62631
- V2PromptRunJobResponseStatusEnum$zodSchema = _enum([
62632
- "pending",
62633
- "running",
62634
- "summarizing",
62635
- "completed",
62636
- "failed",
62637
- "cancelled",
62638
- "interrupted"
62639
- ]);
62640
- Status$zodSchema = union([
62641
- V2PromptRunJobResponseStatusEnum$zodSchema,
62642
- string2()
62643
- ]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`.");
62644
- V2PromptRunJobResponse$zodSchema = object({
62645
- completed_at: string2().nullable().optional().describe("Can be set while `status` is still `summarizing`; use `status` to detect completion."),
62646
- created_at: string2().nullable().optional(),
62647
- dispatch_id: string2().nullable().optional(),
62648
- error: string2().nullable().optional(),
62649
- estimated_cost: number2().nullable().optional().describe("The estimated credit cost for prompt jobs or estimated USD cost for API Performance jobs. Null when no estimate is available."),
62650
- eval_count: int().nullable().optional(),
62651
- id: string2().describe("Run ID to poll with `GET /v2/prompts/runs/{run_id}/status`."),
62652
- job_id: string2().describe("Parent job ID. It currently matches `id`."),
62653
- model_count: int().nullable().optional(),
62654
- progress: PublicEvalRunProgress$zodSchema.optional(),
62655
- source_type: literal("prompts").default("prompts").optional(),
62656
- stage: string2().nullable().optional().describe("Current lifecycle stage, including `retrying` while interrupted child jobs wait to be reclaimed."),
62657
- started_at: string2().nullable().optional(),
62658
- status: union([
62659
- V2PromptRunJobResponseStatusEnum$zodSchema,
62660
- string2()
62661
- ]).describe("Terminal values: `completed`, `failed`, and `cancelled`. Recoverable interruptions are reported as `running` with stage `retrying`."),
62662
- type: literal("prompts").default("prompts").optional()
62663
- });
62664
- });
62665
-
62666
62869
  // src/models/v2promptrunstatusretrieveop.ts
62667
62870
  var V2PromptRunStatusRetrieveRequest$zodSchema, V2PromptRunStatusRetrieveNotFoundResponseBody$zodSchema, V2PromptRunStatusRetrieveBadRequestResponseBody$zodSchema, V2PromptRunStatusRetrieveResponse$zodSchema;
62668
62871
  var init_v2promptrunstatusretrieveop = __esm(() => {
@@ -62688,9 +62891,9 @@ var init_v2promptrunstatusretrieveop = __esm(() => {
62688
62891
 
62689
62892
  // src/funcs/promptsRunStatus.ts
62690
62893
  function promptsRunStatus(client$, request, options) {
62691
- return new APIPromise($do49(client$, request, options));
62894
+ return new APIPromise($do50(client$, request, options));
62692
62895
  }
62693
- async function $do49(client$, request, options) {
62896
+ async function $do50(client$, request, options) {
62694
62897
  const parsed$ = safeParse4(request, (value$) => V2PromptRunStatusRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
62695
62898
  if (!parsed$.ok) {
62696
62899
  return [parsed$, { status: "invalid" }];
@@ -62765,12 +62968,12 @@ var init_promptsRunStatus = __esm(() => {
62765
62968
  });
62766
62969
 
62767
62970
  // src/mcp-server/tools/promptsRunStatus.ts
62768
- var args40, tool$promptsRunStatus;
62971
+ var args41, tool$promptsRunStatus;
62769
62972
  var init_promptsRunStatus2 = __esm(() => {
62770
62973
  init_promptsRunStatus();
62771
62974
  init_v2promptrunstatusretrieveop();
62772
62975
  init_tools();
62773
- args40 = {
62976
+ args41 = {
62774
62977
  request: V2PromptRunStatusRetrieveRequest$zodSchema
62775
62978
  };
62776
62979
  tool$promptsRunStatus = {
@@ -62788,7 +62991,7 @@ Individual stored results are available from \`GET /v2/prompts/runs\`.`,
62788
62991
  openWorldHint: false,
62789
62992
  readOnlyHint: true
62790
62993
  },
62791
- args: args40,
62994
+ args: args41,
62792
62995
  tool: async (client, args, ctx) => {
62793
62996
  const [result] = await promptsRunStatus(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62794
62997
  if (!result.ok) {
@@ -62813,9 +63016,9 @@ var init_createprompttopicrequest = __esm(() => {
62813
63016
 
62814
63017
  // src/funcs/promptsTopicsCreate.ts
62815
63018
  function promptsTopicsCreate(client$, request, options) {
62816
- return new APIPromise($do50(client$, request, options));
63019
+ return new APIPromise($do51(client$, request, options));
62817
63020
  }
62818
- async function $do50(client$, request, options) {
63021
+ async function $do51(client$, request, options) {
62819
63022
  const parsed$ = safeParse4(request, (value$) => CreatePromptTopicRequest$zodSchema.parse(value$), "Input validation failed");
62820
63023
  if (!parsed$.ok) {
62821
63024
  return [parsed$, { status: "invalid" }];
@@ -62885,12 +63088,12 @@ var init_promptsTopicsCreate = __esm(() => {
62885
63088
  });
62886
63089
 
62887
63090
  // src/mcp-server/tools/promptsTopicsCreate.ts
62888
- var args41, tool$promptsTopicsCreate;
63091
+ var args42, tool$promptsTopicsCreate;
62889
63092
  var init_promptsTopicsCreate2 = __esm(() => {
62890
63093
  init_promptsTopicsCreate();
62891
63094
  init_createprompttopicrequest();
62892
63095
  init_tools();
62893
- args41 = {
63096
+ args42 = {
62894
63097
  request: CreatePromptTopicRequest$zodSchema
62895
63098
  };
62896
63099
  tool$promptsTopicsCreate = {
@@ -62905,7 +63108,7 @@ Creates a prompt topic and returns the saved topic.`,
62905
63108
  openWorldHint: false,
62906
63109
  readOnlyHint: false
62907
63110
  },
62908
- args: args41,
63111
+ args: args42,
62909
63112
  tool: async (client, args, ctx) => {
62910
63113
  const [result] = await promptsTopicsCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
62911
63114
  if (!result.ok) {
@@ -62937,9 +63140,9 @@ var init_v2prompttopicsdeleteop = __esm(() => {
62937
63140
 
62938
63141
  // src/funcs/promptsTopicsDelete.ts
62939
63142
  function promptsTopicsDelete(client$, request, options) {
62940
- return new APIPromise($do51(client$, request, options));
63143
+ return new APIPromise($do52(client$, request, options));
62941
63144
  }
62942
- async function $do51(client$, request, options) {
63145
+ async function $do52(client$, request, options) {
62943
63146
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsDeleteRequest$zodSchema.parse(value$), "Input validation failed");
62944
63147
  if (!parsed$.ok) {
62945
63148
  return [parsed$, { status: "invalid" }];
@@ -63018,12 +63221,12 @@ var init_promptsTopicsDelete = __esm(() => {
63018
63221
  });
63019
63222
 
63020
63223
  // src/mcp-server/tools/promptsTopicsDelete.ts
63021
- var args42, tool$promptsTopicsDelete;
63224
+ var args43, tool$promptsTopicsDelete;
63022
63225
  var init_promptsTopicsDelete2 = __esm(() => {
63023
63226
  init_promptsTopicsDelete();
63024
63227
  init_v2prompttopicsdeleteop();
63025
63228
  init_tools();
63026
- args42 = {
63229
+ args43 = {
63027
63230
  request: V2PromptTopicsDeleteRequest$zodSchema
63028
63231
  };
63029
63232
  tool$promptsTopicsDelete = {
@@ -63038,7 +63241,7 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
63038
63241
  openWorldHint: false,
63039
63242
  readOnlyHint: false
63040
63243
  },
63041
- args: args42,
63244
+ args: args43,
63042
63245
  tool: async (client, args, ctx) => {
63043
63246
  const [result] = await promptsTopicsDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63044
63247
  if (!result.ok) {
@@ -63054,9 +63257,9 @@ Archives a prompt topic. Set \`archive_prompts\` to archive remaining prompts; o
63054
63257
 
63055
63258
  // src/funcs/promptsTopicsList.ts
63056
63259
  function promptsTopicsList(client$, options) {
63057
- return new APIPromise($do52(client$, options));
63260
+ return new APIPromise($do53(client$, options));
63058
63261
  }
63059
- async function $do52(client$, options) {
63262
+ async function $do53(client$, options) {
63060
63263
  const path$ = pathToFunc("/v2/prompts/topics")();
63061
63264
  const headers$ = new Headers(compactMap({
63062
63265
  Accept: "application/json"
@@ -63172,9 +63375,9 @@ var init_v2prompttopicsupdateop = __esm(() => {
63172
63375
 
63173
63376
  // src/funcs/promptsTopicsUpdate.ts
63174
63377
  function promptsTopicsUpdate(client$, request, options) {
63175
- return new APIPromise($do53(client$, request, options));
63378
+ return new APIPromise($do54(client$, request, options));
63176
63379
  }
63177
- async function $do53(client$, request, options) {
63380
+ async function $do54(client$, request, options) {
63178
63381
  const parsed$ = safeParse4(request, (value$) => V2PromptTopicsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
63179
63382
  if (!parsed$.ok) {
63180
63383
  return [parsed$, { status: "invalid" }];
@@ -63250,12 +63453,12 @@ var init_promptsTopicsUpdate = __esm(() => {
63250
63453
  });
63251
63454
 
63252
63455
  // src/mcp-server/tools/promptsTopicsUpdate.ts
63253
- var args43, tool$promptsTopicsUpdate;
63456
+ var args44, tool$promptsTopicsUpdate;
63254
63457
  var init_promptsTopicsUpdate2 = __esm(() => {
63255
63458
  init_promptsTopicsUpdate();
63256
63459
  init_v2prompttopicsupdateop();
63257
63460
  init_tools();
63258
- args43 = {
63461
+ args44 = {
63259
63462
  request: V2PromptTopicsUpdateRequest$zodSchema
63260
63463
  };
63261
63464
  tool$promptsTopicsUpdate = {
@@ -63270,7 +63473,7 @@ Renames a prompt topic and returns the updated topic.`,
63270
63473
  openWorldHint: false,
63271
63474
  readOnlyHint: false
63272
63475
  },
63273
- args: args43,
63476
+ args: args44,
63274
63477
  tool: async (client, args, ctx) => {
63275
63478
  const [result] = await promptsTopicsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63276
63479
  if (!result.ok) {
@@ -63295,7 +63498,7 @@ var init_updatev2promptrequest = __esm(() => {
63295
63498
  ]);
63296
63499
  UpdateV2PromptRequest$zodSchema = object({
63297
63500
  is_branded: boolean2().optional().describe("Marks the prompt as branded or unbranded. Omit to keep the current value; changing `text` does not change it."),
63298
- platform_ids: array(string2()).nullable().optional().describe("Replacement list of answer-platform IDs."),
63501
+ platform_ids: array(string2()).nullable().optional().describe("Replacement list of platform IDs, as returned in `platforms` on `GET /v2/prompts`."),
63299
63502
  run_settings: V2PromptRunSettingsInput$zodSchema.nullable().optional().describe("Run settings that apply to coding-agent runs of this prompt. Omitted fields keep their current or default values."),
63300
63503
  status: UpdateV2PromptRequestStatus$zodSchema.optional(),
63301
63504
  text: string2().optional(),
@@ -63322,9 +63525,9 @@ var init_v2promptsupdateop = __esm(() => {
63322
63525
 
63323
63526
  // src/funcs/promptsUpdate.ts
63324
63527
  function promptsUpdate(client$, request, options) {
63325
- return new APIPromise($do54(client$, request, options));
63528
+ return new APIPromise($do55(client$, request, options));
63326
63529
  }
63327
- async function $do54(client$, request, options) {
63530
+ async function $do55(client$, request, options) {
63328
63531
  const parsed$ = safeParse4(request, (value$) => V2PromptsUpdateRequest$zodSchema.parse(value$), "Input validation failed");
63329
63532
  if (!parsed$.ok) {
63330
63533
  return [parsed$, { status: "invalid" }];
@@ -63400,12 +63603,12 @@ var init_promptsUpdate = __esm(() => {
63400
63603
  });
63401
63604
 
63402
63605
  // src/mcp-server/tools/promptsUpdate.ts
63403
- var args44, tool$promptsUpdate;
63606
+ var args45, tool$promptsUpdate;
63404
63607
  var init_promptsUpdate2 = __esm(() => {
63405
63608
  init_promptsUpdate();
63406
63609
  init_v2promptsupdateop();
63407
63610
  init_tools();
63408
- args44 = {
63611
+ args45 = {
63409
63612
  request: V2PromptsUpdateRequest$zodSchema
63410
63613
  };
63411
63614
  tool$promptsUpdate = {
@@ -63420,7 +63623,7 @@ Updates a prompt's text, topic, platforms, lifecycle status, or coding-agent run
63420
63623
  openWorldHint: false,
63421
63624
  readOnlyHint: false
63422
63625
  },
63423
- args: args44,
63626
+ args: args45,
63424
63627
  tool: async (client, args, ctx) => {
63425
63628
  const [result] = await promptsUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63426
63629
  if (!result.ok) {
@@ -63463,9 +63666,9 @@ var init_createv2repositoryrequest = __esm(() => {
63463
63666
 
63464
63667
  // src/funcs/repositoriesCreate.ts
63465
63668
  function repositoriesCreate(client$, request, options) {
63466
- return new APIPromise($do55(client$, request, options));
63669
+ return new APIPromise($do56(client$, request, options));
63467
63670
  }
63468
- async function $do55(client$, request, options) {
63671
+ async function $do56(client$, request, options) {
63469
63672
  const parsed$ = safeParse4(request, (value$) => CreateV2RepositoryRequest$zodSchema.parse(value$), "Input validation failed");
63470
63673
  if (!parsed$.ok) {
63471
63674
  return [parsed$, { status: "invalid" }];
@@ -63535,12 +63738,12 @@ var init_repositoriesCreate = __esm(() => {
63535
63738
  });
63536
63739
 
63537
63740
  // src/mcp-server/tools/repositoriesCreate.ts
63538
- var args45, tool$repositoriesCreate;
63741
+ var args46, tool$repositoriesCreate;
63539
63742
  var init_repositoriesCreate2 = __esm(() => {
63540
63743
  init_repositoriesCreate();
63541
63744
  init_createv2repositoryrequest();
63542
63745
  init_tools();
63543
- args45 = {
63746
+ args46 = {
63544
63747
  request: CreateV2RepositoryRequest$zodSchema
63545
63748
  };
63546
63749
  tool$repositoriesCreate = {
@@ -63555,7 +63758,7 @@ Adds a reusable Git repository workspace for eval configurations.`,
63555
63758
  openWorldHint: false,
63556
63759
  readOnlyHint: false
63557
63760
  },
63558
- args: args45,
63761
+ args: args46,
63559
63762
  tool: async (client, args, ctx) => {
63560
63763
  const [result] = await repositoriesCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63561
63764
  if (!result.ok) {
@@ -63621,9 +63824,9 @@ var init_v2repositoriesdeleteop = __esm(() => {
63621
63824
 
63622
63825
  // src/funcs/repositoriesDelete.ts
63623
63826
  function repositoriesDelete(client$, request, options) {
63624
- return new APIPromise($do56(client$, request, options));
63827
+ return new APIPromise($do57(client$, request, options));
63625
63828
  }
63626
- async function $do56(client$, request, options) {
63829
+ async function $do57(client$, request, options) {
63627
63830
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesDeleteRequest$zodSchema.parse(value$), "Input validation failed");
63628
63831
  if (!parsed$.ok) {
63629
63832
  return [parsed$, { status: "invalid" }];
@@ -63698,12 +63901,12 @@ var init_repositoriesDelete = __esm(() => {
63698
63901
  });
63699
63902
 
63700
63903
  // src/mcp-server/tools/repositoriesDelete.ts
63701
- var args46, tool$repositoriesDelete;
63904
+ var args47, tool$repositoriesDelete;
63702
63905
  var init_repositoriesDelete2 = __esm(() => {
63703
63906
  init_repositoriesDelete();
63704
63907
  init_v2repositoriesdeleteop();
63705
63908
  init_tools();
63706
- args46 = {
63909
+ args47 = {
63707
63910
  request: V2RepositoriesDeleteRequest$zodSchema
63708
63911
  };
63709
63912
  tool$repositoriesDelete = {
@@ -63718,7 +63921,7 @@ Permanently deletes a repository workspace and returns its last saved state.`,
63718
63921
  openWorldHint: false,
63719
63922
  readOnlyHint: false
63720
63923
  },
63721
- args: args46,
63924
+ args: args47,
63722
63925
  tool: async (client, args, ctx) => {
63723
63926
  const [result] = await repositoriesDelete(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63724
63927
  if (!result.ok) {
@@ -63734,9 +63937,9 @@ Permanently deletes a repository workspace and returns its last saved state.`,
63734
63937
 
63735
63938
  // src/funcs/repositoriesList.ts
63736
63939
  function repositoriesList(client$, options) {
63737
- return new APIPromise($do57(client$, options));
63940
+ return new APIPromise($do58(client$, options));
63738
63941
  }
63739
- async function $do57(client$, options) {
63942
+ async function $do58(client$, options) {
63740
63943
  const path$ = pathToFunc("/v2/repositories")();
63741
63944
  const headers$ = new Headers(compactMap({
63742
63945
  Accept: "application/json"
@@ -63841,9 +64044,9 @@ var init_v2repositoriesretrieveop = __esm(() => {
63841
64044
 
63842
64045
  // src/funcs/repositoriesRetrieve.ts
63843
64046
  function repositoriesRetrieve(client$, request, options) {
63844
- return new APIPromise($do58(client$, request, options));
64047
+ return new APIPromise($do59(client$, request, options));
63845
64048
  }
63846
- async function $do58(client$, request, options) {
64049
+ async function $do59(client$, request, options) {
63847
64050
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
63848
64051
  if (!parsed$.ok) {
63849
64052
  return [parsed$, { status: "invalid" }];
@@ -63918,12 +64121,12 @@ var init_repositoriesRetrieve = __esm(() => {
63918
64121
  });
63919
64122
 
63920
64123
  // src/mcp-server/tools/repositoriesRetrieve.ts
63921
- var args47, tool$repositoriesRetrieve;
64124
+ var args48, tool$repositoriesRetrieve;
63922
64125
  var init_repositoriesRetrieve2 = __esm(() => {
63923
64126
  init_repositoriesRetrieve();
63924
64127
  init_v2repositoriesretrieveop();
63925
64128
  init_tools();
63926
- args47 = {
64129
+ args48 = {
63927
64130
  request: V2RepositoriesRetrieveRequest$zodSchema
63928
64131
  };
63929
64132
  tool$repositoriesRetrieve = {
@@ -63938,7 +64141,7 @@ Returns one reusable repository workspace.`,
63938
64141
  openWorldHint: false,
63939
64142
  readOnlyHint: true
63940
64143
  },
63941
- args: args47,
64144
+ args: args48,
63942
64145
  tool: async (client, args, ctx) => {
63943
64146
  const [result] = await repositoriesRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
63944
64147
  if (!result.ok) {
@@ -63998,9 +64201,9 @@ var init_v2repositoriesupdateop = __esm(() => {
63998
64201
 
63999
64202
  // src/funcs/repositoriesUpdate.ts
64000
64203
  function repositoriesUpdate(client$, request, options) {
64001
- return new APIPromise($do59(client$, request, options));
64204
+ return new APIPromise($do60(client$, request, options));
64002
64205
  }
64003
- async function $do59(client$, request, options) {
64206
+ async function $do60(client$, request, options) {
64004
64207
  const parsed$ = safeParse4(request, (value$) => V2RepositoriesUpdateRequest$zodSchema.parse(value$), "Input validation failed");
64005
64208
  if (!parsed$.ok) {
64006
64209
  return [parsed$, { status: "invalid" }];
@@ -64076,12 +64279,12 @@ var init_repositoriesUpdate = __esm(() => {
64076
64279
  });
64077
64280
 
64078
64281
  // src/mcp-server/tools/repositoriesUpdate.ts
64079
- var args48, tool$repositoriesUpdate;
64282
+ var args49, tool$repositoriesUpdate;
64080
64283
  var init_repositoriesUpdate2 = __esm(() => {
64081
64284
  init_repositoriesUpdate();
64082
64285
  init_v2repositoriesupdateop();
64083
64286
  init_tools();
64084
- args48 = {
64287
+ args49 = {
64085
64288
  request: V2RepositoriesUpdateRequest$zodSchema
64086
64289
  };
64087
64290
  tool$repositoriesUpdate = {
@@ -64096,7 +64299,7 @@ Updates a repository workspace; omitted fields remain unchanged.`,
64096
64299
  openWorldHint: false,
64097
64300
  readOnlyHint: false
64098
64301
  },
64099
- args: args48,
64302
+ args: args49,
64100
64303
  tool: async (client, args, ctx) => {
64101
64304
  const [result] = await repositoriesUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64102
64305
  if (!result.ok) {
@@ -64112,9 +64315,9 @@ Updates a repository workspace; omitted fields remain unchanged.`,
64112
64315
 
64113
64316
  // src/funcs/siteAuditsList.ts
64114
64317
  function siteAuditsList(client$, options) {
64115
- return new APIPromise($do60(client$, options));
64318
+ return new APIPromise($do61(client$, options));
64116
64319
  }
64117
- async function $do60(client$, options) {
64320
+ async function $do61(client$, options) {
64118
64321
  const path$ = pathToFunc("/v2/site-audits")();
64119
64322
  const headers$ = new Headers(compactMap({
64120
64323
  Accept: "application/json"
@@ -64255,9 +64458,9 @@ var init_v2siteauditsretrieveop = __esm(() => {
64255
64458
 
64256
64459
  // src/funcs/siteAuditsRetrieve.ts
64257
64460
  function siteAuditsRetrieve(client$, request, options) {
64258
- return new APIPromise($do61(client$, request, options));
64461
+ return new APIPromise($do62(client$, request, options));
64259
64462
  }
64260
- async function $do61(client$, request, options) {
64463
+ async function $do62(client$, request, options) {
64261
64464
  const parsed$ = safeParse4(request, (value$) => V2SiteAuditsRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
64262
64465
  if (!parsed$.ok) {
64263
64466
  return [parsed$, { status: "invalid" }];
@@ -64332,12 +64535,12 @@ var init_siteAuditsRetrieve = __esm(() => {
64332
64535
  });
64333
64536
 
64334
64537
  // src/mcp-server/tools/siteAuditsRetrieve.ts
64335
- var args49, tool$siteAuditsRetrieve;
64538
+ var args50, tool$siteAuditsRetrieve;
64336
64539
  var init_siteAuditsRetrieve2 = __esm(() => {
64337
64540
  init_siteAuditsRetrieve();
64338
64541
  init_v2siteauditsretrieveop();
64339
64542
  init_tools();
64340
- args49 = {
64543
+ args50 = {
64341
64544
  request: V2SiteAuditsRetrieveRequest$zodSchema
64342
64545
  };
64343
64546
  tool$siteAuditsRetrieve = {
@@ -64352,7 +64555,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
64352
64555
  openWorldHint: false,
64353
64556
  readOnlyHint: true
64354
64557
  },
64355
- args: args49,
64558
+ args: args50,
64356
64559
  tool: async (client, args, ctx) => {
64357
64560
  const [result] = await siteAuditsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64358
64561
  if (!result.ok) {
@@ -64368,9 +64571,9 @@ Returns one audited page with its score, priority, supporting evidence, and reco
64368
64571
 
64369
64572
  // src/funcs/skillsList.ts
64370
64573
  function skillsList(client$, options) {
64371
- return new APIPromise($do62(client$, options));
64574
+ return new APIPromise($do63(client$, options));
64372
64575
  }
64373
- async function $do62(client$, options) {
64576
+ async function $do63(client$, options) {
64374
64577
  const path$ = pathToFunc("/v2/skills")();
64375
64578
  const headers$ = new Headers(compactMap({
64376
64579
  Accept: "application/json"
@@ -64460,9 +64663,9 @@ Returns reusable skills available to workflows and eval configurations.`,
64460
64663
 
64461
64664
  // src/funcs/statusAuthStatusGet.ts
64462
64665
  function statusAuthStatusGet(client$, options) {
64463
- return new APIPromise($do63(client$, options));
64666
+ return new APIPromise($do64(client$, options));
64464
64667
  }
64465
- async function $do63(client$, options) {
64668
+ async function $do64(client$, options) {
64466
64669
  const path$ = pathToFunc("/v2/auth/status")();
64467
64670
  const headers$ = new Headers(compactMap({
64468
64671
  Accept: "application/json"
@@ -64552,9 +64755,9 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
64552
64755
 
64553
64756
  // src/funcs/statusGet.ts
64554
64757
  function statusGet(client$, options) {
64555
- return new APIPromise($do64(client$, options));
64758
+ return new APIPromise($do65(client$, options));
64556
64759
  }
64557
- async function $do64(client$, options) {
64760
+ async function $do65(client$, options) {
64558
64761
  const path$ = pathToFunc("/v2/status")();
64559
64762
  const headers$ = new Headers(compactMap({
64560
64763
  Accept: "application/json"
@@ -64683,9 +64886,9 @@ var init_createtaskrequest = __esm(() => {
64683
64886
 
64684
64887
  // src/funcs/tasksCreate.ts
64685
64888
  function tasksCreate(client$, request, options) {
64686
- return new APIPromise($do65(client$, request, options));
64889
+ return new APIPromise($do66(client$, request, options));
64687
64890
  }
64688
- async function $do65(client$, request, options) {
64891
+ async function $do66(client$, request, options) {
64689
64892
  const parsed$ = safeParse4(request, (value$) => CreateTaskRequest$zodSchema.parse(value$), "Input validation failed");
64690
64893
  if (!parsed$.ok) {
64691
64894
  return [parsed$, { status: "invalid" }];
@@ -64755,12 +64958,12 @@ var init_tasksCreate = __esm(() => {
64755
64958
  });
64756
64959
 
64757
64960
  // src/mcp-server/tools/tasksCreate.ts
64758
- var args50, tool$tasksCreate;
64961
+ var args51, tool$tasksCreate;
64759
64962
  var init_tasksCreate2 = __esm(() => {
64760
64963
  init_tasksCreate();
64761
64964
  init_createtaskrequest();
64762
64965
  init_tools();
64763
- args50 = {
64966
+ args51 = {
64764
64967
  request: CreateTaskRequest$zodSchema
64765
64968
  };
64766
64969
  tool$tasksCreate = {
@@ -64775,7 +64978,7 @@ Adds a task to today's queue and returns it with its execution prompt. New tasks
64775
64978
  openWorldHint: false,
64776
64979
  readOnlyHint: false
64777
64980
  },
64778
- args: args50,
64981
+ args: args51,
64779
64982
  tool: async (client, args, ctx) => {
64780
64983
  const [result] = await tasksCreate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
64781
64984
  if (!result.ok) {
@@ -64935,9 +65138,9 @@ var init_v2taskslistop = __esm(() => {
64935
65138
 
64936
65139
  // src/funcs/tasksList.ts
64937
65140
  function tasksList(client$, request, options) {
64938
- return new APIPromise($do66(client$, request, options));
65141
+ return new APIPromise($do67(client$, request, options));
64939
65142
  }
64940
- async function $do66(client$, request, options) {
65143
+ async function $do67(client$, request, options) {
64941
65144
  const parsed$ = safeParse4(request, (value$) => V2TasksListRequest$zodSchema.optional().parse(value$), "Input validation failed");
64942
65145
  if (!parsed$.ok) {
64943
65146
  return [parsed$, { status: "invalid" }];
@@ -65011,12 +65214,12 @@ var init_tasksList = __esm(() => {
65011
65214
  });
65012
65215
 
65013
65216
  // src/mcp-server/tools/tasksList.ts
65014
- var args51, tool$tasksList;
65217
+ var args52, tool$tasksList;
65015
65218
  var init_tasksList2 = __esm(() => {
65016
65219
  init_tasksList();
65017
65220
  init_v2taskslistop();
65018
65221
  init_tools();
65019
- args51 = {
65222
+ args52 = {
65020
65223
  request: V2TasksListRequest$zodSchema.optional()
65021
65224
  };
65022
65225
  tool$tasksList = {
@@ -65031,7 +65234,7 @@ Returns persisted daily tasks with execution instructions. Includes per-status c
65031
65234
  openWorldHint: false,
65032
65235
  readOnlyHint: true
65033
65236
  },
65034
- args: args51,
65237
+ args: args52,
65035
65238
  tool: async (client, args, ctx) => {
65036
65239
  const [result] = await tasksList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65037
65240
  if (!result.ok) {
@@ -65062,9 +65265,9 @@ var init_v2tasksretrieveop = __esm(() => {
65062
65265
 
65063
65266
  // src/funcs/tasksRetrieve.ts
65064
65267
  function tasksRetrieve(client$, request, options) {
65065
- return new APIPromise($do67(client$, request, options));
65268
+ return new APIPromise($do68(client$, request, options));
65066
65269
  }
65067
- async function $do67(client$, request, options) {
65270
+ async function $do68(client$, request, options) {
65068
65271
  const parsed$ = safeParse4(request, (value$) => V2TasksRetrieveRequest$zodSchema.parse(value$), "Input validation failed");
65069
65272
  if (!parsed$.ok) {
65070
65273
  return [parsed$, { status: "invalid" }];
@@ -65139,12 +65342,12 @@ var init_tasksRetrieve = __esm(() => {
65139
65342
  });
65140
65343
 
65141
65344
  // src/mcp-server/tools/tasksRetrieve.ts
65142
- var args52, tool$tasksRetrieve;
65345
+ var args53, tool$tasksRetrieve;
65143
65346
  var init_tasksRetrieve2 = __esm(() => {
65144
65347
  init_tasksRetrieve();
65145
65348
  init_v2tasksretrieveop();
65146
65349
  init_tools();
65147
- args52 = {
65350
+ args53 = {
65148
65351
  request: V2TasksRetrieveRequest$zodSchema
65149
65352
  };
65150
65353
  tool$tasksRetrieve = {
@@ -65159,7 +65362,7 @@ Returns one persisted task and its execution prompt.`,
65159
65362
  openWorldHint: false,
65160
65363
  readOnlyHint: true
65161
65364
  },
65162
- args: args52,
65365
+ args: args53,
65163
65366
  tool: async (client, args, ctx) => {
65164
65367
  const [result] = await tasksRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65165
65368
  if (!result.ok) {
@@ -65222,9 +65425,9 @@ var init_v2tasksupdateop = __esm(() => {
65222
65425
 
65223
65426
  // src/funcs/tasksUpdate.ts
65224
65427
  function tasksUpdate(client$, request, options) {
65225
- return new APIPromise($do68(client$, request, options));
65428
+ return new APIPromise($do69(client$, request, options));
65226
65429
  }
65227
- async function $do68(client$, request, options) {
65430
+ async function $do69(client$, request, options) {
65228
65431
  const parsed$ = safeParse4(request, (value$) => V2TasksUpdateRequest$zodSchema.parse(value$), "Input validation failed");
65229
65432
  if (!parsed$.ok) {
65230
65433
  return [parsed$, { status: "invalid" }];
@@ -65300,12 +65503,12 @@ var init_tasksUpdate = __esm(() => {
65300
65503
  });
65301
65504
 
65302
65505
  // src/mcp-server/tools/tasksUpdate.ts
65303
- var args53, tool$tasksUpdate;
65506
+ var args54, tool$tasksUpdate;
65304
65507
  var init_tasksUpdate2 = __esm(() => {
65305
65508
  init_tasksUpdate();
65306
65509
  init_v2tasksupdateop();
65307
65510
  init_tools();
65308
- args53 = {
65511
+ args54 = {
65309
65512
  request: V2TasksUpdateRequest$zodSchema
65310
65513
  };
65311
65514
  tool$tasksUpdate = {
@@ -65320,7 +65523,7 @@ Updates a task's status, priority, assignee, or action type. Only sent fields ar
65320
65523
  openWorldHint: false,
65321
65524
  readOnlyHint: false
65322
65525
  },
65323
- args: args53,
65526
+ args: args54,
65324
65527
  tool: async (client, args, ctx) => {
65325
65528
  const [result] = await tasksUpdate(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65326
65529
  if (!result.ok) {
@@ -65361,24 +65564,127 @@ var init_publiccitedurldaterange = __esm(() => {
65361
65564
  });
65362
65565
  });
65363
65566
 
65567
+ // src/models/publiccoverageday.ts
65568
+ var Period$zodSchema, PublicCoverageDayStatus$zodSchema, PublicCoverageDay$zodSchema;
65569
+ var init_publiccoverageday = __esm(() => {
65570
+ init_zod();
65571
+ Period$zodSchema = _enum([
65572
+ "current",
65573
+ "previous"
65574
+ ]);
65575
+ PublicCoverageDayStatus$zodSchema = _enum([
65576
+ "ok",
65577
+ "short",
65578
+ "missing",
65579
+ "in_progress",
65580
+ "not_expected"
65581
+ ]).describe("`missing`: no runs on a day that expected some. `short`: under half the expected runs. `in_progress`: today, before its runs finished.");
65582
+ PublicCoverageDay$zodSchema = object({
65583
+ date: string2(),
65584
+ expected_runs: int().describe("Median daily runs over the 7 days before; 0 when no daily runs are expected."),
65585
+ period: Period$zodSchema,
65586
+ runs: int().describe("Successful prompt runs of active prompts that day."),
65587
+ status: PublicCoverageDayStatus$zodSchema.describe("`missing`: no runs on a day that expected some. `short`: under half the expected runs. `in_progress`: today, before its runs finished.")
65588
+ });
65589
+ });
65590
+
65591
+ // src/models/publicperiodcoverage.ts
65592
+ var PublicPeriodCoverage$zodSchema;
65593
+ var init_publicperiodcoverage = __esm(() => {
65594
+ init_zod();
65595
+ PublicPeriodCoverage$zodSchema = object({
65596
+ complete_days: int().describe("Days in the period other than today in progress."),
65597
+ end_date: string2(),
65598
+ expected_runs: int(),
65599
+ missing_days: array(string2()).optional(),
65600
+ runs: int(),
65601
+ runs_per_day: number2().nullable().optional().describe("Runs per complete day."),
65602
+ short_days: array(string2()).optional(),
65603
+ start_date: string2()
65604
+ });
65605
+ });
65606
+
65607
+ // src/models/publiccoverage.ts
65608
+ var PublicCoverage$zodSchema;
65609
+ var init_publiccoverage = __esm(() => {
65610
+ init_zod();
65611
+ init_publiccoverageday();
65612
+ init_publicperiodcoverage();
65613
+ PublicCoverage$zodSchema = object({
65614
+ comparable: boolean2().describe("Whether totals can be compared between the two periods. False when either period has a missing or short day or runs per day differ by more than 20%; compare per-run rates instead."),
65615
+ current: PublicPeriodCoverage$zodSchema,
65616
+ days: array(PublicCoverageDay$zodSchema).optional(),
65617
+ notes: array(string2()).optional().describe("Why the periods are not comparable, in plain sentences."),
65618
+ previous: PublicPeriodCoverage$zodSchema
65619
+ });
65620
+ });
65621
+
65622
+ // src/models/publicperiodrates.ts
65623
+ var PublicPeriodRates$zodSchema;
65624
+ var init_publicperiodrates = __esm(() => {
65625
+ init_zod();
65626
+ PublicPeriodRates$zodSchema = object({
65627
+ brand_mention_runs: int().describe("Runs that mention the primary company."),
65628
+ mention_rate: number2().nullable().optional().describe("Share of runs that mention the primary company, from 0 to 1."),
65629
+ owned_citations: int().describe("Citations of the organization's own domains."),
65630
+ owned_citations_per_run: number2().nullable().optional(),
65631
+ runs: int()
65632
+ });
65633
+ });
65634
+
65635
+ // src/models/publicratechanges.ts
65636
+ var PublicRateChanges$zodSchema;
65637
+ var init_publicratechanges = __esm(() => {
65638
+ init_zod();
65639
+ PublicRateChanges$zodSchema = object({
65640
+ mention_rate: number2().nullable().optional().describe("Relative change from the previous period."),
65641
+ owned_citations: number2().nullable().optional().describe("Relative change from the previous period; 0.25 means 25% higher."),
65642
+ owned_citations_per_run: number2().nullable().optional().describe("Relative change from the previous period.")
65643
+ });
65644
+ });
65645
+
65646
+ // src/models/publicrates.ts
65647
+ var PublicRatesHeadlineMetric$zodSchema, PublicRates$zodSchema;
65648
+ var init_publicrates = __esm(() => {
65649
+ init_zod();
65650
+ init_publicperiodrates();
65651
+ init_publicratechanges();
65652
+ PublicRatesHeadlineMetric$zodSchema = _enum([
65653
+ "owned_citations",
65654
+ "owned_citations_per_run"
65655
+ ]).describe("The number to lead with: owned citations when the periods are comparable, otherwise owned citations per run.");
65656
+ PublicRates$zodSchema = object({
65657
+ change: PublicRateChanges$zodSchema,
65658
+ current: PublicPeriodRates$zodSchema,
65659
+ headline_metric: PublicRatesHeadlineMetric$zodSchema.describe("The number to lead with: owned citations when the periods are comparable, otherwise owned citations per run."),
65660
+ previous: PublicPeriodRates$zodSchema
65661
+ });
65662
+ });
65663
+
65364
65664
  // src/models/publictopcitedurlsresponse.ts
65365
- var SourceType$zodSchema, PublicTopCitedUrlsResponse$zodSchema;
65665
+ var PublicTopCitedUrlsResponseSourceType$zodSchema, PublicTopCitedUrlsResponse$zodSchema;
65366
65666
  var init_publictopcitedurlsresponse = __esm(() => {
65367
65667
  init_zod();
65368
65668
  init_publiccitedurl();
65369
65669
  init_publiccitedurldaterange();
65370
- SourceType$zodSchema = _enum([
65670
+ init_publiccoverage();
65671
+ init_publicrates();
65672
+ init_publicresolvedperiod();
65673
+ PublicTopCitedUrlsResponseSourceType$zodSchema = _enum([
65371
65674
  "all",
65372
65675
  "owned",
65373
65676
  "external"
65374
65677
  ]).describe("Whether the results include all, owned, or external URLs.");
65375
65678
  PublicTopCitedUrlsResponse$zodSchema = object({
65376
65679
  count: int().describe("Number of URL rows returned."),
65680
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe("Runs per day against expected runs for both periods. Check `comparable` before comparing totals."),
65377
65681
  data: array(PublicCitedUrl$zodSchema).optional().describe("Cited URLs ranked by citation count in descending order."),
65378
65682
  date_range: PublicCitedUrlDateRange$zodSchema,
65379
65683
  has_data: boolean2().describe("Whether any citations matched the selected filters."),
65684
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
65380
65685
  platform: string2().nullable().optional().describe("Platform selector applied to the results, or null for all platforms."),
65381
- source_type: SourceType$zodSchema.describe("Whether the results include all, owned, or external URLs.")
65686
+ rates: PublicRates$zodSchema.nullable().optional().describe("Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`."),
65687
+ source_type: PublicTopCitedUrlsResponseSourceType$zodSchema.describe("Whether the results include all, owned, or external URLs.")
65382
65688
  });
65383
65689
  });
65384
65690
 
@@ -65396,6 +65702,7 @@ var init_v2visibilitycitationslistop = __esm(() => {
65396
65702
  V2VisibilityCitationsListRequest$zodSchema = object({
65397
65703
  end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
65398
65704
  limit: int().default(20),
65705
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
65399
65706
  platform: string2().describe("Optional answer-platform ID, name, or slug.").optional(),
65400
65707
  source_type: V2VisibilityCitationsListSourceType$zodSchema.default("all"),
65401
65708
  start_date: string2().date().describe("Inclusive range start.").optional()
@@ -65408,9 +65715,9 @@ var init_v2visibilitycitationslistop = __esm(() => {
65408
65715
 
65409
65716
  // src/funcs/visibilityCitationsList.ts
65410
65717
  function visibilityCitationsList(client$, request, options) {
65411
- return new APIPromise($do69(client$, request, options));
65718
+ return new APIPromise($do70(client$, request, options));
65412
65719
  }
65413
- async function $do69(client$, request, options) {
65720
+ async function $do70(client$, request, options) {
65414
65721
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsListRequest$zodSchema.optional().parse(value$), "Input validation failed");
65415
65722
  if (!parsed$.ok) {
65416
65723
  return [parsed$, { status: "invalid" }];
@@ -65421,6 +65728,7 @@ async function $do69(client$, request, options) {
65421
65728
  const query$ = encodeFormQuery({
65422
65729
  end_date: payload$?.end_date,
65423
65730
  limit: payload$?.limit,
65731
+ period: payload$?.period,
65424
65732
  platform: payload$?.platform,
65425
65733
  source_type: payload$?.source_type,
65426
65734
  start_date: payload$?.start_date
@@ -65487,19 +65795,19 @@ var init_visibilityCitationsList = __esm(() => {
65487
65795
  });
65488
65796
 
65489
65797
  // src/mcp-server/tools/visibilityCitationsList.ts
65490
- var args54, tool$visibilityCitationsList;
65798
+ var args55, tool$visibilityCitationsList;
65491
65799
  var init_visibilityCitationsList2 = __esm(() => {
65492
65800
  init_visibilityCitationsList();
65493
65801
  init_v2visibilitycitationslistop();
65494
65802
  init_tools();
65495
- args54 = {
65803
+ args55 = {
65496
65804
  request: V2VisibilityCitationsListRequest$zodSchema.optional()
65497
65805
  };
65498
65806
  tool$visibilityCitationsList = {
65499
65807
  name: "visibility-citations-list",
65500
65808
  description: `List Top Cited Urls
65501
65809
 
65502
- Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources.`,
65810
+ Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources. For totals by URL prefix, domain, or day compared with the previous period, use the citations summary.`,
65503
65811
  annotations: {
65504
65812
  title: "",
65505
65813
  destructiveHint: false,
@@ -65507,7 +65815,7 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
65507
65815
  openWorldHint: false,
65508
65816
  readOnlyHint: true
65509
65817
  },
65510
- args: args54,
65818
+ args: args55,
65511
65819
  tool: async (client, args, ctx) => {
65512
65820
  const [result] = await visibilityCitationsList(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65513
65821
  if (!result.ok) {
@@ -65521,6 +65829,233 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
65521
65829
  };
65522
65830
  });
65523
65831
 
65832
+ // src/models/publiccitationsummarygroup.ts
65833
+ var PublicCitationSummaryGroup$zodSchema;
65834
+ var init_publiccitationsummarygroup = __esm(() => {
65835
+ init_zod();
65836
+ PublicCitationSummaryGroup$zodSchema = object({
65837
+ change: number2().nullable().optional().describe("Relative change in citations; 0.25 means 25% higher."),
65838
+ citation_count: int().describe("Citations in the period."),
65839
+ citations_per_run: number2().nullable().optional(),
65840
+ is_company_link: boolean2().describe("Whether the group includes an owned company domain."),
65841
+ key: string2().describe("The group: a URL prefix (domain and first path segment, such as `example.com/blog`), a normalized URL, a domain, or a day (YYYY-MM-DD)."),
65842
+ per_run_change: number2().nullable().optional().describe("Relative change in citations per run."),
65843
+ previous_citation_count: int().describe("Citations in the previous period. For `day` groups, the matching day of the previous period."),
65844
+ previous_citations_per_run: number2().nullable().optional(),
65845
+ prompt_count: int().describe("Distinct active prompts that cited the group in the period."),
65846
+ title: string2().nullable().optional().describe("Page title, for `url` groups."),
65847
+ url: string2().nullable().optional().describe("Most frequently observed variant of the URL, for `url` groups."),
65848
+ url_count: int().describe("Distinct URLs in the group in the period.")
65849
+ });
65850
+ });
65851
+
65852
+ // src/models/publiccitationsummarytotals.ts
65853
+ var PublicCitationSummaryTotals$zodSchema;
65854
+ var init_publiccitationsummarytotals = __esm(() => {
65855
+ init_zod();
65856
+ PublicCitationSummaryTotals$zodSchema = object({
65857
+ change: number2().nullable().optional().describe("Relative change in citations; 0.25 means 25% higher."),
65858
+ citation_count: int(),
65859
+ citations_per_run: number2().nullable().optional(),
65860
+ per_run_change: number2().nullable().optional().describe("Relative change in citations per run."),
65861
+ previous_citation_count: int(),
65862
+ previous_citations_per_run: number2().nullable().optional(),
65863
+ previous_run_count: int(),
65864
+ run_count: int().describe("Successful runs of active prompts in the period, after the platform filter."),
65865
+ url_count: int().describe("Distinct cited URLs in the period.")
65866
+ });
65867
+ });
65868
+
65869
+ // src/models/publiccitationsummaryresponse.ts
65870
+ var GroupBy$zodSchema, PublicCitationSummaryResponseSourceType$zodSchema, PublicCitationSummaryResponseHeadlineMetric$zodSchema, PublicCitationSummaryResponse$zodSchema;
65871
+ var init_publiccitationsummaryresponse = __esm(() => {
65872
+ init_zod();
65873
+ init_publiccitationsummarygroup();
65874
+ init_publiccitationsummarytotals();
65875
+ init_publiccoverage();
65876
+ init_publicresolvedperiod();
65877
+ GroupBy$zodSchema = _enum([
65878
+ "url_prefix",
65879
+ "url",
65880
+ "domain",
65881
+ "day"
65882
+ ]);
65883
+ PublicCitationSummaryResponseSourceType$zodSchema = _enum([
65884
+ "all",
65885
+ "owned",
65886
+ "external"
65887
+ ]);
65888
+ PublicCitationSummaryResponseHeadlineMetric$zodSchema = _enum([
65889
+ "citation_count",
65890
+ "citations_per_run"
65891
+ ]).describe("The number to lead with: citation counts when the periods are comparable, otherwise citations per run.");
65892
+ PublicCitationSummaryResponse$zodSchema = object({
65893
+ count: int().describe("Groups returned."),
65894
+ coverage: PublicCoverage$zodSchema,
65895
+ group_by: GroupBy$zodSchema,
65896
+ group_count: int().describe("Groups matching the filters, before `limit`."),
65897
+ groups: array(PublicCitationSummaryGroup$zodSchema).optional().describe("Groups by citation count, most first; `day` groups are in date order."),
65898
+ has_data: boolean2(),
65899
+ headline_metric: PublicCitationSummaryResponseHeadlineMetric$zodSchema.describe("The number to lead with: citation counts when the periods are comparable, otherwise citations per run."),
65900
+ period: PublicResolvedPeriod$zodSchema,
65901
+ platform: string2().nullable().optional(),
65902
+ source_type: PublicCitationSummaryResponseSourceType$zodSchema,
65903
+ totals: PublicCitationSummaryTotals$zodSchema,
65904
+ url_prefix: string2().nullable().optional().describe("URL prefix filter applied, if any.")
65905
+ });
65906
+ });
65907
+
65908
+ // src/models/v2visibilitycitationssummaryretrieveop.ts
65909
+ var V2VisibilityCitationsSummaryRetrieveGroupBy$zodSchema, V2VisibilityCitationsSummaryRetrieveSourceType$zodSchema, V2VisibilityCitationsSummaryRetrieveRequest$zodSchema, V2VisibilityCitationsSummaryRetrieveResponse$zodSchema;
65910
+ var init_v2visibilitycitationssummaryretrieveop = __esm(() => {
65911
+ init_zod();
65912
+ init_httpvalidationerror();
65913
+ init_publiccitationsummaryresponse();
65914
+ V2VisibilityCitationsSummaryRetrieveGroupBy$zodSchema = _enum([
65915
+ "url_prefix",
65916
+ "url",
65917
+ "domain",
65918
+ "day"
65919
+ ]).describe("How to group citations.");
65920
+ V2VisibilityCitationsSummaryRetrieveSourceType$zodSchema = _enum([
65921
+ "all",
65922
+ "owned",
65923
+ "external"
65924
+ ]).describe("All citations, only owned company domains, or only external ones.");
65925
+ V2VisibilityCitationsSummaryRetrieveRequest$zodSchema = object({
65926
+ end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
65927
+ group_by: V2VisibilityCitationsSummaryRetrieveGroupBy$zodSchema.default("url_prefix").describe("How to group citations."),
65928
+ limit: int().default(20).describe("Groups to return; `day` groups return every day."),
65929
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
65930
+ platform: string2().describe("Optional answer-platform ID, name, or slug.").optional(),
65931
+ source_type: V2VisibilityCitationsSummaryRetrieveSourceType$zodSchema.default("all").describe("All citations, only owned company domains, or only external ones."),
65932
+ start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional(),
65933
+ url_prefix: string2().describe("Only citations under this URL prefix, such as `https://example.com/blog/`. Scheme and `www.` are ignored.").optional()
65934
+ });
65935
+ V2VisibilityCitationsSummaryRetrieveResponse$zodSchema = union([
65936
+ PublicCitationSummaryResponse$zodSchema,
65937
+ HTTPValidationError$zodSchema
65938
+ ]);
65939
+ });
65940
+
65941
+ // src/funcs/visibilityCitationsSummaryRetrieve.ts
65942
+ function visibilityCitationsSummaryRetrieve(client$, request, options) {
65943
+ return new APIPromise($do71(client$, request, options));
65944
+ }
65945
+ async function $do71(client$, request, options) {
65946
+ const parsed$ = safeParse4(request, (value$) => V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
65947
+ if (!parsed$.ok) {
65948
+ return [parsed$, { status: "invalid" }];
65949
+ }
65950
+ const payload$ = parsed$.value;
65951
+ const body$ = null;
65952
+ const path$ = pathToFunc("/v2/visibility/citations/summary")();
65953
+ const query$ = encodeFormQuery({
65954
+ end_date: payload$?.end_date,
65955
+ group_by: payload$?.group_by,
65956
+ limit: payload$?.limit,
65957
+ period: payload$?.period,
65958
+ platform: payload$?.platform,
65959
+ source_type: payload$?.source_type,
65960
+ start_date: payload$?.start_date,
65961
+ url_prefix: payload$?.url_prefix
65962
+ });
65963
+ const headers$ = new Headers(compactMap({
65964
+ Accept: "application/json"
65965
+ }));
65966
+ const securityInput = await extractSecurity(client$._options.security);
65967
+ const requestSecurity = resolveGlobalSecurity(securityInput);
65968
+ const context = {
65969
+ options: client$._options,
65970
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
65971
+ operationID: "v2_visibility_citations_summary_retrieve",
65972
+ oAuth2Scopes: null,
65973
+ resolvedSecurity: requestSecurity,
65974
+ securitySource: client$._options.security,
65975
+ retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
65976
+ retryCodes: options?.retryCodes || [
65977
+ "429",
65978
+ "500",
65979
+ "502",
65980
+ "503",
65981
+ "504"
65982
+ ]
65983
+ };
65984
+ const requestRes = client$._createRequest(context, {
65985
+ security: requestSecurity,
65986
+ method: "GET",
65987
+ baseURL: options?.serverURL,
65988
+ path: path$,
65989
+ headers: headers$,
65990
+ query: query$,
65991
+ body: body$,
65992
+ userAgent: client$._options.userAgent,
65993
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
65994
+ }, options);
65995
+ if (!requestRes.ok) {
65996
+ return [requestRes, { status: "invalid" }];
65997
+ }
65998
+ const req$ = requestRes.value;
65999
+ const doResult = await client$._do(req$, {
66000
+ context,
66001
+ errorCodes: [],
66002
+ retryConfig: context.retryConfig,
66003
+ retryCodes: context.retryCodes
66004
+ });
66005
+ if (!doResult.ok) {
66006
+ return [doResult, { status: "request-error", request: req$ }];
66007
+ }
66008
+ return [doResult, {
66009
+ status: "complete",
66010
+ request: req$,
66011
+ response: doResult.value
66012
+ }];
66013
+ }
66014
+ var init_visibilityCitationsSummaryRetrieve = __esm(() => {
66015
+ init_encodings();
66016
+ init_primitives();
66017
+ init_schemas4();
66018
+ init_security();
66019
+ init_url();
66020
+ init_v2visibilitycitationssummaryretrieveop();
66021
+ init_async();
66022
+ });
66023
+
66024
+ // src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts
66025
+ var args56, tool$visibilityCitationsSummaryRetrieve;
66026
+ var init_visibilityCitationsSummaryRetrieve2 = __esm(() => {
66027
+ init_visibilityCitationsSummaryRetrieve();
66028
+ init_v2visibilitycitationssummaryretrieveop();
66029
+ init_tools();
66030
+ args56 = {
66031
+ request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional()
66032
+ };
66033
+ tool$visibilityCitationsSummaryRetrieve = {
66034
+ name: "visibility-citations-summary-retrieve",
66035
+ description: `Retrieve Citation Summary
66036
+
66037
+ Returns citation totals grouped by URL prefix (domain and first path segment, such as \`example.com/blog\`), URL, domain, or day, each compared with the previous period, with per-run rates and run coverage. Filter to one section of a site with \`url_prefix\`, for example \`https://example.com/blog/\`. Aggregated in one call; use it instead of paging the citations list.`,
66038
+ annotations: {
66039
+ title: "",
66040
+ destructiveHint: false,
66041
+ idempotentHint: false,
66042
+ openWorldHint: false,
66043
+ readOnlyHint: true
66044
+ },
66045
+ args: args56,
66046
+ tool: async (client, args, ctx) => {
66047
+ const [result] = await visibilityCitationsSummaryRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66048
+ if (!result.ok) {
66049
+ return {
66050
+ content: [{ type: "text", text: result.error.message }],
66051
+ isError: true
66052
+ };
66053
+ }
66054
+ return formatResult(result.value);
66055
+ }
66056
+ };
66057
+ });
66058
+
65524
66059
  // src/models/publiccompany.ts
65525
66060
  var PublicCompany$zodSchema;
65526
66061
  var init_publiccompany = __esm(() => {
@@ -65533,19 +66068,40 @@ var init_publiccompany = __esm(() => {
65533
66068
  });
65534
66069
  });
65535
66070
 
66071
+ // src/models/publicpreviousvisibility.ts
66072
+ var PublicPreviousVisibility$zodSchema;
66073
+ var init_publicpreviousvisibility = __esm(() => {
66074
+ init_zod();
66075
+ PublicPreviousVisibility$zodSchema = object({
66076
+ average_position: number2().nullable().optional(),
66077
+ has_data: boolean2().default(false),
66078
+ recommendation_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. `null` unless the organization turns on Recommendation Score under Settings › Navigation."),
66079
+ share_of_voice: number2().nullable().optional().describe("The company's share of all mentions of tracked companies (your company plus configured competitors) in the same prompt runs, from 0 to 1; tracked companies add up to 1. Each company counts once per run. `null` for companies you do not track. Not the `share_of_voice` field removed in October 2026, which held the mention rate now returned as `visibility_score`."),
66080
+ visibility_score: number2().nullable().optional().describe("Fraction of successful prompt runs that mention the company, from 0 to 1; for example, 0.25 means one in four runs. Failed provider runs are excluded.")
66081
+ });
66082
+ });
66083
+
65536
66084
  // src/models/publiccurrentvisibilityresponse.ts
65537
66085
  var PublicCurrentVisibilityResponse$zodSchema;
65538
66086
  var init_publiccurrentvisibilityresponse = __esm(() => {
65539
66087
  init_zod();
65540
66088
  init_publiccompany();
66089
+ init_publiccoverage();
66090
+ init_publicpreviousvisibility();
66091
+ init_publicrates();
66092
+ init_publicresolvedperiod();
65541
66093
  PublicCurrentVisibilityResponse$zodSchema = object({
65542
66094
  active_prompts_only: boolean2().default(true),
65543
66095
  average_position: number2().nullable().optional().describe("Mean mention position in AI responses; 1 is first and lower is better."),
65544
66096
  average_position_rank: int().nullable().optional(),
65545
66097
  company: PublicCompany$zodSchema,
66098
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe("Runs per day against expected runs for both periods. Check `comparable` before comparing totals."),
65546
66099
  date: string2().nullable().optional().describe("Latest prompt-run date in the range."),
65547
66100
  end_date: string2(),
65548
66101
  has_data: boolean2(),
66102
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
66103
+ previous: PublicPreviousVisibility$zodSchema.nullable().optional().describe("The same metrics for the previous period."),
66104
+ rates: PublicRates$zodSchema.nullable().optional().describe("Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`."),
65549
66105
  recommendation_score: number2().nullable().optional().describe("Mean recommendation strength across successful prompt runs, from 0 to 1. Each run contributes the company's recommendation strength (0 to 1) when it is mentioned and 0 when it is not. Failed provider runs are excluded. `null` unless the organization turns on Recommendation Score under Settings › Navigation."),
65550
66106
  recommendation_score_rank: int().nullable().optional(),
65551
66107
  share_of_voice: number2().nullable().optional().describe("The company's share of all mentions of tracked companies (your company plus configured competitors) in the same prompt runs, from 0 to 1; tracked companies add up to 1. Each company counts once per run. `null` for companies you do not track. Not the `share_of_voice` field removed in October 2026, which held the mention rate now returned as `visibility_score`."),
@@ -65564,6 +66120,7 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
65564
66120
  init_publiccurrentvisibilityresponse();
65565
66121
  V2VisibilityCurrentRetrieveRequest$zodSchema = object({
65566
66122
  end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
66123
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
65567
66124
  start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
65568
66125
  });
65569
66126
  V2VisibilityCurrentRetrieveResponse$zodSchema = union([
@@ -65574,9 +66131,9 @@ var init_v2visibilitycurrentretrieveop = __esm(() => {
65574
66131
 
65575
66132
  // src/funcs/visibilityCurrentRetrieve.ts
65576
66133
  function visibilityCurrentRetrieve(client$, request, options) {
65577
- return new APIPromise($do70(client$, request, options));
66134
+ return new APIPromise($do72(client$, request, options));
65578
66135
  }
65579
- async function $do70(client$, request, options) {
66136
+ async function $do72(client$, request, options) {
65580
66137
  const parsed$ = safeParse4(request, (value$) => V2VisibilityCurrentRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
65581
66138
  if (!parsed$.ok) {
65582
66139
  return [parsed$, { status: "invalid" }];
@@ -65586,6 +66143,7 @@ async function $do70(client$, request, options) {
65586
66143
  const path$ = pathToFunc("/v2/visibility/current")();
65587
66144
  const query$ = encodeFormQuery({
65588
66145
  end_date: payload$?.end_date,
66146
+ period: payload$?.period,
65589
66147
  start_date: payload$?.start_date
65590
66148
  });
65591
66149
  const headers$ = new Headers(compactMap({
@@ -65650,19 +66208,19 @@ var init_visibilityCurrentRetrieve = __esm(() => {
65650
66208
  });
65651
66209
 
65652
66210
  // src/mcp-server/tools/visibilityCurrentRetrieve.ts
65653
- var args55, tool$visibilityCurrentRetrieve;
66211
+ var args57, tool$visibilityCurrentRetrieve;
65654
66212
  var init_visibilityCurrentRetrieve2 = __esm(() => {
65655
66213
  init_visibilityCurrentRetrieve();
65656
66214
  init_v2visibilitycurrentretrieveop();
65657
66215
  init_tools();
65658
- args55 = {
66216
+ args57 = {
65659
66217
  request: V2VisibilityCurrentRetrieveRequest$zodSchema.optional()
65660
66218
  };
65661
66219
  tool$visibilityCurrentRetrieve = {
65662
66220
  name: "visibility-current-retrieve",
65663
66221
  description: `Retrieve Current Visibility
65664
66222
 
65665
- Returns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company. Metrics are computed from active prompts only; when no data exists, values are \`null\`.`,
66223
+ Returns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company, with the same metrics for the previous period, run coverage, and per-run rates. Metrics are computed from active prompts only; when no data exists, values are \`null\`. Pass \`period\` (for example \`last_30_days\` or \`2026Q4\`) instead of computing dates.`,
65666
66224
  annotations: {
65667
66225
  title: "",
65668
66226
  destructiveHint: false,
@@ -65670,7 +66228,7 @@ Returns recommendation score, visibility score, ranks, and date-range metadata f
65670
66228
  openWorldHint: false,
65671
66229
  readOnlyHint: true
65672
66230
  },
65673
- args: args55,
66231
+ args: args57,
65674
66232
  tool: async (client, args, ctx) => {
65675
66233
  const [result] = await visibilityCurrentRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65676
66234
  if (!result.ok) {
@@ -65786,6 +66344,9 @@ var init_publicvisibilityoverviewresponse = __esm(() => {
65786
66344
  init_zod();
65787
66345
  init_publiccompany();
65788
66346
  init_publiccompetitorrow();
66347
+ init_publiccoverage();
66348
+ init_publicrates();
66349
+ init_publicresolvedperiod();
65789
66350
  init_publicvisibilitybyplatform();
65790
66351
  init_publicvisibilitydaterange();
65791
66352
  init_publicvisibilitysnapshot();
@@ -65794,8 +66355,11 @@ var init_publicvisibilityoverviewresponse = __esm(() => {
65794
66355
  by_platform: PublicVisibilityByPlatform$zodSchema,
65795
66356
  company: PublicCompany$zodSchema,
65796
66357
  competitors: array(PublicCompetitorRow$zodSchema).optional().describe("Includes the primary company."),
66358
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe("Runs per day against expected runs for both periods. Check `comparable` before comparing totals."),
65797
66359
  date_range: PublicVisibilityDateRange$zodSchema,
65798
66360
  has_data: boolean2(),
66361
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
66362
+ rates: PublicRates$zodSchema.nullable().optional().describe("Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`."),
65799
66363
  snapshot: PublicVisibilitySnapshot$zodSchema,
65800
66364
  timeseries: PublicVisibilityTimeseries$zodSchema
65801
66365
  });
@@ -65809,6 +66373,7 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
65809
66373
  init_publicvisibilityoverviewresponse();
65810
66374
  V2VisibilityOverviewRetrieveRequest$zodSchema = object({
65811
66375
  end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
66376
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
65812
66377
  start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
65813
66378
  });
65814
66379
  V2VisibilityOverviewRetrieveResponse$zodSchema = union([
@@ -65819,9 +66384,9 @@ var init_v2visibilityoverviewretrieveop = __esm(() => {
65819
66384
 
65820
66385
  // src/funcs/visibilityOverviewRetrieve.ts
65821
66386
  function visibilityOverviewRetrieve(client$, request, options) {
65822
- return new APIPromise($do71(client$, request, options));
66387
+ return new APIPromise($do73(client$, request, options));
65823
66388
  }
65824
- async function $do71(client$, request, options) {
66389
+ async function $do73(client$, request, options) {
65825
66390
  const parsed$ = safeParse4(request, (value$) => V2VisibilityOverviewRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
65826
66391
  if (!parsed$.ok) {
65827
66392
  return [parsed$, { status: "invalid" }];
@@ -65831,6 +66396,7 @@ async function $do71(client$, request, options) {
65831
66396
  const path$ = pathToFunc("/v2/visibility/overview")();
65832
66397
  const query$ = encodeFormQuery({
65833
66398
  end_date: payload$?.end_date,
66399
+ period: payload$?.period,
65834
66400
  start_date: payload$?.start_date
65835
66401
  });
65836
66402
  const headers$ = new Headers(compactMap({
@@ -65895,19 +66461,19 @@ var init_visibilityOverviewRetrieve = __esm(() => {
65895
66461
  });
65896
66462
 
65897
66463
  // src/mcp-server/tools/visibilityOverviewRetrieve.ts
65898
- var args56, tool$visibilityOverviewRetrieve;
66464
+ var args58, tool$visibilityOverviewRetrieve;
65899
66465
  var init_visibilityOverviewRetrieve2 = __esm(() => {
65900
66466
  init_visibilityOverviewRetrieve();
65901
66467
  init_v2visibilityoverviewretrieveop();
65902
66468
  init_tools();
65903
- args56 = {
66469
+ args58 = {
65904
66470
  request: V2VisibilityOverviewRetrieveRequest$zodSchema.optional()
65905
66471
  };
65906
66472
  tool$visibilityOverviewRetrieve = {
65907
66473
  name: "visibility-overview-retrieve",
65908
66474
  description: `Retrieve Visibility Overview
65909
66475
 
65910
- Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison. Calculated from active prompts only.`,
66476
+ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison, with run coverage and per-run rates against the previous period. Calculated from active prompts only.`,
65911
66477
  annotations: {
65912
66478
  title: "",
65913
66479
  destructiveHint: false,
@@ -65915,7 +66481,7 @@ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competito
65915
66481
  openWorldHint: false,
65916
66482
  readOnlyHint: true
65917
66483
  },
65918
- args: args56,
66484
+ args: args58,
65919
66485
  tool: async (client, args, ctx) => {
65920
66486
  const [result] = await visibilityOverviewRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
65921
66487
  if (!result.ok) {
@@ -66000,13 +66566,19 @@ var PublicPromptVisibilityReportResponse$zodSchema;
66000
66566
  var init_publicpromptvisibilityreportresponse = __esm(() => {
66001
66567
  init_zod();
66002
66568
  init_publiccompany();
66569
+ init_publiccoverage();
66003
66570
  init_publicpromptvisibilitydaterange();
66004
66571
  init_publicpromptvisibilitysummary();
66572
+ init_publicrates();
66573
+ init_publicresolvedperiod();
66005
66574
  init_publictopicvisibilityrow();
66006
66575
  PublicPromptVisibilityReportResponse$zodSchema = object({
66007
66576
  company: PublicCompany$zodSchema,
66577
+ coverage: PublicCoverage$zodSchema.nullable().optional().describe("Runs per day against expected runs for both periods. Check `comparable` before comparing totals."),
66008
66578
  date_range: PublicPromptVisibilityDateRange$zodSchema,
66009
66579
  has_data: boolean2(),
66580
+ period: PublicResolvedPeriod$zodSchema.nullable().optional().describe("The resolved period and the previous period it is compared with."),
66581
+ rates: PublicRates$zodSchema.nullable().optional().describe("Runs, owned citations, and per-run rates for both periods. Lead with `headline_metric`."),
66010
66582
  summary: PublicPromptVisibilitySummary$zodSchema,
66011
66583
  topics: array(PublicTopicVisibilityRow$zodSchema).optional()
66012
66584
  });
@@ -66020,6 +66592,7 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
66020
66592
  init_publicpromptvisibilityreportresponse();
66021
66593
  V2VisibilityPromptsRetrieveRequest$zodSchema = object({
66022
66594
  end_date: string2().date().describe("Inclusive range end; defaults to today.").optional(),
66595
+ period: string2().describe("Named period, resolved in UTC by the server: `last_7_days`, `last_14_days`, `last_30_days`, `last_90_days` (N days ending today), `this_week`, `last_week`, an ISO week such as `2026-W43` (Monday to Sunday), `this_month`, `last_month`, a month such as `2026-10`, `this_quarter`, `last_quarter`, or a quarter such as `2026Q4`. A current week, month, or quarter ends today. The response's `period` gives the resolved dates and the matching previous period. Do not combine with `start_date` or `end_date`.").optional(),
66023
66596
  start_date: string2().date().describe("Inclusive range start; defaults to 30 days before the end date. The range may span at most 90 days.").optional()
66024
66597
  });
66025
66598
  V2VisibilityPromptsRetrieveResponse$zodSchema = union([
@@ -66030,9 +66603,9 @@ var init_v2visibilitypromptsretrieveop = __esm(() => {
66030
66603
 
66031
66604
  // src/funcs/visibilityPromptsRetrieve.ts
66032
66605
  function visibilityPromptsRetrieve(client$, request, options) {
66033
- return new APIPromise($do72(client$, request, options));
66606
+ return new APIPromise($do74(client$, request, options));
66034
66607
  }
66035
- async function $do72(client$, request, options) {
66608
+ async function $do74(client$, request, options) {
66036
66609
  const parsed$ = safeParse4(request, (value$) => V2VisibilityPromptsRetrieveRequest$zodSchema.optional().parse(value$), "Input validation failed");
66037
66610
  if (!parsed$.ok) {
66038
66611
  return [parsed$, { status: "invalid" }];
@@ -66042,6 +66615,7 @@ async function $do72(client$, request, options) {
66042
66615
  const path$ = pathToFunc("/v2/visibility/prompts")();
66043
66616
  const query$ = encodeFormQuery({
66044
66617
  end_date: payload$?.end_date,
66618
+ period: payload$?.period,
66045
66619
  start_date: payload$?.start_date
66046
66620
  });
66047
66621
  const headers$ = new Headers(compactMap({
@@ -66106,12 +66680,12 @@ var init_visibilityPromptsRetrieve = __esm(() => {
66106
66680
  });
66107
66681
 
66108
66682
  // src/mcp-server/tools/visibilityPromptsRetrieve.ts
66109
- var args57, tool$visibilityPromptsRetrieve;
66683
+ var args59, tool$visibilityPromptsRetrieve;
66110
66684
  var init_visibilityPromptsRetrieve2 = __esm(() => {
66111
66685
  init_visibilityPromptsRetrieve();
66112
66686
  init_v2visibilitypromptsretrieveop();
66113
66687
  init_tools();
66114
- args57 = {
66688
+ args59 = {
66115
66689
  request: V2VisibilityPromptsRetrieveRequest$zodSchema.optional()
66116
66690
  };
66117
66691
  tool$visibilityPromptsRetrieve = {
@@ -66126,7 +66700,7 @@ Returns per-topic and per-prompt visibility metrics including recommendation sco
66126
66700
  openWorldHint: false,
66127
66701
  readOnlyHint: true
66128
66702
  },
66129
- args: args57,
66703
+ args: args59,
66130
66704
  tool: async (client, args, ctx) => {
66131
66705
  const [result] = await visibilityPromptsRetrieve(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
66132
66706
  if (!result.ok) {
@@ -66175,6 +66749,7 @@ function createMCPServer(deps) {
66175
66749
  tool(tool$visibilityOverviewRetrieve);
66176
66750
  tool(tool$visibilityCitationsList);
66177
66751
  tool(tool$visibilityPromptsRetrieve);
66752
+ tool(tool$visibilityCitationsSummaryRetrieve);
66178
66753
  tool(tool$promptsList);
66179
66754
  tool(tool$promptsCreate);
66180
66755
  tool(tool$promptsTopicsList);
@@ -66188,6 +66763,7 @@ function createMCPServer(deps) {
66188
66763
  tool(tool$promptsDelete);
66189
66764
  tool(tool$promptsRun);
66190
66765
  tool(tool$promptsRunStatus);
66766
+ tool(tool$promptsRunCancel);
66191
66767
  tool(tool$opportunitiesList);
66192
66768
  tool(tool$opportunitiesRetrieve);
66193
66769
  tool(tool$tasksList);
@@ -66297,6 +66873,7 @@ var init_server3 = __esm(() => {
66297
66873
  init_promptsList2();
66298
66874
  init_promptsRetrieve2();
66299
66875
  init_promptsRun2();
66876
+ init_promptsRunCancel2();
66300
66877
  init_promptsRunsList2();
66301
66878
  init_promptsRunsRetrieve2();
66302
66879
  init_promptsRunStatus2();
@@ -66320,6 +66897,7 @@ var init_server3 = __esm(() => {
66320
66897
  init_tasksRetrieve2();
66321
66898
  init_tasksUpdate2();
66322
66899
  init_visibilityCitationsList2();
66900
+ init_visibilityCitationsSummaryRetrieve2();
66323
66901
  init_visibilityCurrentRetrieve2();
66324
66902
  init_visibilityOverviewRetrieve2();
66325
66903
  init_visibilityPromptsRetrieve2();
@@ -66341,19 +66919,19 @@ Validates the API key and returns its organization ID, API key ID, scopes, and a
66341
66919
  },
66342
66920
  {
66343
66921
  name: "visibility-current-retrieve",
66344
- description: "Retrieve Current Visibility\n\nReturns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company. Metrics are computed from active prompts only; when no data exists, values are `null`."
66922
+ description: "Retrieve Current Visibility\n\nReturns recommendation score, visibility score, ranks, and date-range metadata for the configured primary company, with the same metrics for the previous period, run coverage, and per-run rates. Metrics are computed from active prompts only; when no data exists, values are `null`. Pass `period` (for example `last_30_days` or `2026Q4`) instead of computing dates."
66345
66923
  },
66346
66924
  {
66347
66925
  name: "visibility-overview-retrieve",
66348
66926
  description: `Retrieve Visibility Overview
66349
66927
 
66350
- Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison. Calculated from active prompts only.`
66928
+ Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison, with run coverage and per-run rates against the previous period. Calculated from active prompts only.`
66351
66929
  },
66352
66930
  {
66353
66931
  name: "visibility-citations-list",
66354
66932
  description: `List Top Cited Urls
66355
66933
 
66356
- Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources.`
66934
+ Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources. For totals by URL prefix, domain, or day compared with the previous period, use the citations summary.`
66357
66935
  },
66358
66936
  {
66359
66937
  name: "visibility-prompts-retrieve",
@@ -66361,6 +66939,10 @@ Returns URL-level citation counts ranked from most to least cited. Results can b
66361
66939
 
66362
66940
  Returns per-topic and per-prompt visibility metrics including recommendation score, rank, visibility score, average position, and citation counts.`
66363
66941
  },
66942
+ {
66943
+ name: "visibility-citations-summary-retrieve",
66944
+ description: "Retrieve Citation Summary\n\nReturns citation totals grouped by URL prefix (domain and first path segment, such as `example.com/blog`), URL, domain, or day, each compared with the previous period, with per-run rates and run coverage. Filter to one section of a site with `url_prefix`, for example `https://example.com/blog/`. Aggregated in one call; use it instead of paging the citations list."
66945
+ },
66364
66946
  {
66365
66947
  name: "prompts-list",
66366
66948
  description: "List Prompts\n\nReturns active and inactive prompts by default. Set `include_archived` to include archived prompts."
@@ -66427,17 +67009,25 @@ Archives the prompt and excludes it from normal listings while preserving its hi
66427
67009
  name: "prompts-run",
66428
67010
  description: `Run Prompts
66429
67011
 
66430
- Queue saved prompts using the organization's configured targets.
67012
+ Queue saved prompts on answer engines and coding agents.
66431
67013
 
66432
67014
  Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
66433
- prompts. Saved prompt run settings apply to coding-agent targets. The
66434
- response returns a run ID to poll with
67015
+ prompts. By default the run uses the organization's configured targets.
67016
+ Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
67017
+ specific coding-agent harnesses and models instead, for example to compare
67018
+ how several coding tools answer the same developer question. Results
67019
+ include mentions and citations. Saved prompt run settings apply to
67020
+ coding-agent targets. The response returns a run ID to poll with
66435
67021
  \`GET /v2/prompts/runs/{run_id}/status\`.`
66436
67022
  },
66437
67023
  {
66438
67024
  name: "prompts-run-status",
66439
67025
  description: "Get Prompt Run Status\n\nReturn status and progress for a queued prompt run.\n\nPoll this endpoint until `status` is `completed`, `failed`, or `cancelled`.\nIndividual stored results are available from `GET /v2/prompts/runs`."
66440
67026
  },
67027
+ {
67028
+ name: "prompts-run-cancel",
67029
+ description: "Cancel a prompt run\n\nMarks an active prompt run as cancelled and prevents queued prompts from starting. Running coding-agent attempts are stopped asynchronously. Requests already sent to an answer platform cannot be recalled, so prompts already in progress may still finish and store their results, but the run stays cancelled. Prompts that never start use no usage-based credits. The response has the same shape as the status operation, with cancelled prompts counted in `progress.cancelled`. Repeating this request for an already-cancelled run is safe."
67030
+ },
66441
67031
  {
66442
67032
  name: "opportunities-list",
66443
67033
  description: "List Opportunities\n\nReturns ranked opportunities computed from stored prompt visibility results. Each includes an `execution_prompt` with context for an AI agent. Default window is 30 days."
@@ -66486,9 +67076,7 @@ Returns one audited page with its score, priority, supporting evidence, and reco
66486
67076
  },
66487
67077
  {
66488
67078
  name: "agent-analytics-summary-retrieve",
66489
- description: `Retrieve Agent Analytics Summary
66490
-
66491
- Returns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the same number of days before it.`
67079
+ description: "Retrieve Agent Analytics Summary\n\nReturns a site's visits by traffic type (coding agents, user-requested AI fetches, AI search, AI training, other bots, and people) for the date range and for the previous period (the same number of days before it, or the previous calendar week, month, or quarter for a named `period`)."
66492
67080
  },
66493
67081
  {
66494
67082
  name: "agent-analytics-sources-list",
@@ -66514,7 +67102,7 @@ Returns a site's visits from coding agents and AI assistants per country in the
66514
67102
  },
66515
67103
  {
66516
67104
  name: "evals-create",
66517
- description: "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values."
67105
+ description: "Create Eval\n\nCreates a reusable simulation definition with one or more task prompts and judges. Optional agents, persona, CLI installations, MCP servers, setup commands, cleanup commands, grounding policy, repeat count, and tags are saved with the eval. `search_grounding` supports `disabled`, `enabled`, and `default`; `default` preserves normal platform behavior. Creating the eval does not start a run and does not accept secret environment values.\n\nEvals measure how well agents complete tasks with your product. To track how agents and answer engines answer research questions, including which brands they mention and cite, run prompts with `POST /v2/prompts/runs` instead."
66518
67106
  },
66519
67107
  {
66520
67108
  name: "evals-batch-create",
@@ -66568,7 +67156,7 @@ Permanently deletes an eval configuration and returns its last saved state.`
66568
67156
  },
66569
67157
  {
66570
67158
  name: "evals-run",
66571
- description: "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required. If the organization lacks the estimated credits, the request fails with `402` before dispatching work.\n\nA saved or inline environment containing an empty or placeholder credential is rejected with `400` before any evaluation is dispatched."
67159
+ description: "Start an eval run\n\nQueues a durable eval job and returns immediately with a polling ID. Poll `GET /v2/eval-runs/{run_id}` until its status reaches a terminal value; once finished it also returns the results and analysis. Follow a run live with the monitor operation.\n\nEval runs measure how well agents complete tasks with your product. To compare how coding agents and answer engines answer the same research question, with mentions and citations, use `POST /v2/prompts/runs` with `agent` instead.\n\nSend one of these flat request forms:\n\n- **Saved eval:** provide `eval_id`; optionally replace its prompts, persona, agents, CLIs, MCPs, setup commands, cleanup commands, or runs for this launch. A saved configuration can still provide repository, environment, skills, and legacy tool selections.\n- **Direct create-and-run:** provide `prompts`, `judges`, and `agent`. You may also provide a persona, tags, repository, write-only environment variables, saved or inline CLIs and MCP servers, skills, setup commands, and cleanup commands.\n\nThe run fans out across prompts × agents × runs. Persona is shared metadata and does not multiply attempts. No separate `mode` field is required. If the organization lacks the estimated credits, the request fails with `402` before dispatching work.\n\nA saved or inline environment containing an empty or placeholder credential is rejected with `400` before any evaluation is dispatched."
66572
67160
  },
66573
67161
  {
66574
67162
  name: "evals-cancel",
@@ -66658,9 +67246,7 @@ Returns recorded attempts for an Agent Preference eval, newest first, each with
66658
67246
  },
66659
67247
  {
66660
67248
  name: "agents-list",
66661
- description: `List Agents
66662
-
66663
- Returns the harness-and-model combinations your plan can run, as single agent IDs for use in eval runs.`
67249
+ description: "List Agents\n\nReturns the coding-agent harness-and-model combinations your plan can run, as single agent IDs. Pass them as `agent` to `POST /v2/prompts/runs` to see how coding agents answer your prompts, with mentions and citations; to `POST /v2/agent-preference/evals` to see whether agents recommend your company over one competitor; or to `POST /v2/evals` and `POST /v2/eval-runs` to measure how well agents complete tasks with your product."
66664
67250
  },
66665
67251
  {
66666
67252
  name: "repositories-list",
@@ -67620,7 +68206,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
67620
68206
  <h1>Instructions</h1>
67621
68207
  <p>One-click installation for Claude Desktop users</p>
67622
68208
  <div class="instruction-item">
67623
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.17/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
68209
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.18/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
67624
68210
  \uD83D\uDCE5 Download MCP Bundle
67625
68211
  </a>
67626
68212
  </div>
@@ -70520,7 +71106,7 @@ var routes = buildRouteMap({
70520
71106
  var app = buildApplication(routes, {
70521
71107
  name: "mcp",
70522
71108
  versionInfo: {
70523
- currentVersion: "0.4.17"
71109
+ currentVersion: "0.4.18"
70524
71110
  }
70525
71111
  });
70526
71112
  run(app, process3.argv.slice(2), buildContext(process3));
@@ -70528,5 +71114,5 @@ export {
70528
71114
  app
70529
71115
  };
70530
71116
 
70531
- //# debugId=5C5EC6411988AD1A64756E2164756E21
71117
+ //# debugId=7BE94F7B9FDE6A6464756E2164756E21
70532
71118
  //# sourceMappingURL=mcp-server.js.map