@lightsage/mcp 0.4.16 → 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 (403) hide show
  1. package/README.md +2 -2
  2. package/api/mcp.js +30 -0
  3. package/bin/mcp-server.js +2495 -660
  4. package/bin/mcp-server.js.map +103 -55
  5. package/esm/funcs/agentAnalyticsCountriesList.d.ts +16 -0
  6. package/esm/funcs/agentAnalyticsCountriesList.d.ts.map +1 -0
  7. package/esm/funcs/agentAnalyticsCountriesList.js +95 -0
  8. package/esm/funcs/agentAnalyticsCountriesList.js.map +1 -0
  9. package/esm/funcs/agentAnalyticsErrorPagesList.d.ts +16 -0
  10. package/esm/funcs/agentAnalyticsErrorPagesList.d.ts.map +1 -0
  11. package/esm/funcs/agentAnalyticsErrorPagesList.js +97 -0
  12. package/esm/funcs/agentAnalyticsErrorPagesList.js.map +1 -0
  13. package/esm/funcs/agentAnalyticsPagesList.d.ts +16 -0
  14. package/esm/funcs/agentAnalyticsPagesList.d.ts.map +1 -0
  15. package/esm/funcs/agentAnalyticsPagesList.js +99 -0
  16. package/esm/funcs/agentAnalyticsPagesList.js.map +1 -0
  17. package/esm/funcs/agentAnalyticsSitesList.d.ts +15 -0
  18. package/esm/funcs/agentAnalyticsSitesList.d.ts.map +1 -0
  19. package/esm/funcs/agentAnalyticsSitesList.js +72 -0
  20. package/esm/funcs/agentAnalyticsSitesList.js.map +1 -0
  21. package/esm/funcs/agentAnalyticsSourcesList.d.ts +16 -0
  22. package/esm/funcs/agentAnalyticsSourcesList.d.ts.map +1 -0
  23. package/esm/funcs/agentAnalyticsSourcesList.js +94 -0
  24. package/esm/funcs/agentAnalyticsSourcesList.js.map +1 -0
  25. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts +16 -0
  26. package/esm/funcs/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
  27. package/esm/funcs/agentAnalyticsSummaryRetrieve.js +94 -0
  28. package/esm/funcs/agentAnalyticsSummaryRetrieve.js.map +1 -0
  29. package/esm/funcs/agentsList.d.ts +1 -1
  30. package/esm/funcs/agentsList.js +1 -1
  31. package/esm/funcs/evalsCreate.d.ts +2 -0
  32. package/esm/funcs/evalsCreate.d.ts.map +1 -1
  33. package/esm/funcs/evalsCreate.js +2 -0
  34. package/esm/funcs/evalsCreate.js.map +1 -1
  35. package/esm/funcs/evalsRun.d.ts +2 -0
  36. package/esm/funcs/evalsRun.d.ts.map +1 -1
  37. package/esm/funcs/evalsRun.js +2 -0
  38. package/esm/funcs/evalsRun.js.map +1 -1
  39. package/esm/funcs/promptsRun.d.ts +7 -3
  40. package/esm/funcs/promptsRun.d.ts.map +1 -1
  41. package/esm/funcs/promptsRun.js +7 -3
  42. package/esm/funcs/promptsRun.js.map +1 -1
  43. package/esm/funcs/promptsRunCancel.d.ts +16 -0
  44. package/esm/funcs/promptsRunCancel.d.ts.map +1 -0
  45. package/esm/funcs/promptsRunCancel.js +88 -0
  46. package/esm/funcs/promptsRunCancel.js.map +1 -0
  47. package/esm/funcs/tasksCreate.d.ts +16 -0
  48. package/esm/funcs/tasksCreate.d.ts.map +1 -0
  49. package/esm/funcs/tasksCreate.js +83 -0
  50. package/esm/funcs/tasksCreate.js.map +1 -0
  51. package/esm/funcs/visibilityCitationsList.d.ts +1 -1
  52. package/esm/funcs/visibilityCitationsList.js +2 -1
  53. package/esm/funcs/visibilityCitationsList.js.map +1 -1
  54. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts +16 -0
  55. package/esm/funcs/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  56. package/esm/funcs/visibilityCitationsSummaryRetrieve.js +93 -0
  57. package/esm/funcs/visibilityCitationsSummaryRetrieve.js.map +1 -0
  58. package/esm/funcs/visibilityCurrentRetrieve.d.ts +1 -1
  59. package/esm/funcs/visibilityCurrentRetrieve.js +2 -1
  60. package/esm/funcs/visibilityCurrentRetrieve.js.map +1 -1
  61. package/esm/funcs/visibilityOverviewRetrieve.d.ts +1 -1
  62. package/esm/funcs/visibilityOverviewRetrieve.js +2 -1
  63. package/esm/funcs/visibilityOverviewRetrieve.js.map +1 -1
  64. package/esm/funcs/visibilityPromptsRetrieve.js +1 -0
  65. package/esm/funcs/visibilityPromptsRetrieve.js.map +1 -1
  66. package/esm/landing-page.js +1 -1
  67. package/esm/lib/config.d.ts +2 -2
  68. package/esm/lib/config.js +2 -2
  69. package/esm/mcp-server/mcp-server.js +1 -1
  70. package/esm/mcp-server/server.d.ts.map +1 -1
  71. package/esm/mcp-server/server.js +19 -1
  72. package/esm/mcp-server/server.js.map +1 -1
  73. package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts +7 -0
  74. package/esm/mcp-server/tools/agentAnalyticsCountriesList.d.ts.map +1 -0
  75. package/esm/mcp-server/tools/agentAnalyticsCountriesList.js +35 -0
  76. package/esm/mcp-server/tools/agentAnalyticsCountriesList.js.map +1 -0
  77. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts +7 -0
  78. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.d.ts.map +1 -0
  79. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js +35 -0
  80. package/esm/mcp-server/tools/agentAnalyticsErrorPagesList.js.map +1 -0
  81. package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts +7 -0
  82. package/esm/mcp-server/tools/agentAnalyticsPagesList.d.ts.map +1 -0
  83. package/esm/mcp-server/tools/agentAnalyticsPagesList.js +35 -0
  84. package/esm/mcp-server/tools/agentAnalyticsPagesList.js.map +1 -0
  85. package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts +3 -0
  86. package/esm/mcp-server/tools/agentAnalyticsSitesList.d.ts.map +1 -0
  87. package/esm/mcp-server/tools/agentAnalyticsSitesList.js +30 -0
  88. package/esm/mcp-server/tools/agentAnalyticsSitesList.js.map +1 -0
  89. package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts +7 -0
  90. package/esm/mcp-server/tools/agentAnalyticsSourcesList.d.ts.map +1 -0
  91. package/esm/mcp-server/tools/agentAnalyticsSourcesList.js +35 -0
  92. package/esm/mcp-server/tools/agentAnalyticsSourcesList.js.map +1 -0
  93. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts +7 -0
  94. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.d.ts.map +1 -0
  95. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js +35 -0
  96. package/esm/mcp-server/tools/agentAnalyticsSummaryRetrieve.js.map +1 -0
  97. package/esm/mcp-server/tools/agentsList.js +1 -1
  98. package/esm/mcp-server/tools/agentsList.js.map +1 -1
  99. package/esm/mcp-server/tools/evalsCreate.d.ts.map +1 -1
  100. package/esm/mcp-server/tools/evalsCreate.js +3 -1
  101. package/esm/mcp-server/tools/evalsCreate.js.map +1 -1
  102. package/esm/mcp-server/tools/evalsRun.d.ts.map +1 -1
  103. package/esm/mcp-server/tools/evalsRun.js +2 -0
  104. package/esm/mcp-server/tools/evalsRun.js.map +1 -1
  105. package/esm/mcp-server/tools/promptsRun.d.ts.map +1 -1
  106. package/esm/mcp-server/tools/promptsRun.js +7 -3
  107. package/esm/mcp-server/tools/promptsRun.js.map +1 -1
  108. package/esm/mcp-server/tools/promptsRunCancel.d.ts +7 -0
  109. package/esm/mcp-server/tools/promptsRunCancel.d.ts.map +1 -0
  110. package/esm/mcp-server/tools/promptsRunCancel.js +35 -0
  111. package/esm/mcp-server/tools/promptsRunCancel.js.map +1 -0
  112. package/esm/mcp-server/tools/tasksCreate.d.ts +7 -0
  113. package/esm/mcp-server/tools/tasksCreate.d.ts.map +1 -0
  114. package/esm/mcp-server/tools/tasksCreate.js +35 -0
  115. package/esm/mcp-server/tools/tasksCreate.js.map +1 -0
  116. package/esm/mcp-server/tools/visibilityCitationsList.js +1 -1
  117. package/esm/mcp-server/tools/visibilityCitationsList.js.map +1 -1
  118. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts +7 -0
  119. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.d.ts.map +1 -0
  120. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js +35 -0
  121. package/esm/mcp-server/tools/visibilityCitationsSummaryRetrieve.js.map +1 -0
  122. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js +1 -1
  123. package/esm/mcp-server/tools/visibilityCurrentRetrieve.js.map +1 -1
  124. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js +1 -1
  125. package/esm/mcp-server/tools/visibilityOverviewRetrieve.js.map +1 -1
  126. package/esm/models/createtaskrequest.d.ts +65 -0
  127. package/esm/models/createtaskrequest.d.ts.map +1 -0
  128. package/esm/models/createtaskrequest.js +64 -0
  129. package/esm/models/createtaskrequest.js.map +1 -0
  130. package/esm/models/createv2promptrequest.js +1 -1
  131. package/esm/models/createv2promptrequest.js.map +1 -1
  132. package/esm/models/createv2promptrunrequest.d.ts +1 -0
  133. package/esm/models/createv2promptrunrequest.d.ts.map +1 -1
  134. package/esm/models/createv2promptrunrequest.js +2 -1
  135. package/esm/models/createv2promptrunrequest.js.map +1 -1
  136. package/esm/models/graderdefinition.d.ts +1 -0
  137. package/esm/models/graderdefinition.d.ts.map +1 -1
  138. package/esm/models/graderdefinition.js +1 -0
  139. package/esm/models/graderdefinition.js.map +1 -1
  140. package/esm/models/publicagentanalyticscountrylistresponse.d.ts +12 -0
  141. package/esm/models/publicagentanalyticscountrylistresponse.d.ts.map +1 -0
  142. package/esm/models/publicagentanalyticscountrylistresponse.js +15 -0
  143. package/esm/models/publicagentanalyticscountrylistresponse.js.map +1 -0
  144. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts +13 -0
  145. package/esm/models/publicagentanalyticserrorpagelistresponse.d.ts.map +1 -0
  146. package/esm/models/publicagentanalyticserrorpagelistresponse.js +16 -0
  147. package/esm/models/publicagentanalyticserrorpagelistresponse.js.map +1 -0
  148. package/esm/models/publicagentanalyticspagelistresponse.d.ts +13 -0
  149. package/esm/models/publicagentanalyticspagelistresponse.d.ts.map +1 -0
  150. package/esm/models/publicagentanalyticspagelistresponse.js +16 -0
  151. package/esm/models/publicagentanalyticspagelistresponse.js.map +1 -0
  152. package/esm/models/publicagentanalyticssite.d.ts +9 -0
  153. package/esm/models/publicagentanalyticssite.d.ts.map +1 -0
  154. package/esm/models/publicagentanalyticssite.js +12 -0
  155. package/esm/models/publicagentanalyticssite.js.map +1 -0
  156. package/esm/models/publicagentanalyticssitelistresponse.d.ts +7 -0
  157. package/esm/models/publicagentanalyticssitelistresponse.d.ts.map +1 -0
  158. package/esm/models/publicagentanalyticssitelistresponse.js +10 -0
  159. package/esm/models/publicagentanalyticssitelistresponse.js.map +1 -0
  160. package/esm/models/publicagentanalyticssourcelistresponse.d.ts +12 -0
  161. package/esm/models/publicagentanalyticssourcelistresponse.d.ts.map +1 -0
  162. package/esm/models/publicagentanalyticssourcelistresponse.js +15 -0
  163. package/esm/models/publicagentanalyticssourcelistresponse.js.map +1 -0
  164. package/esm/models/publicagentanalyticssummary.d.ts +13 -0
  165. package/esm/models/publicagentanalyticssummary.d.ts.map +1 -0
  166. package/esm/models/publicagentanalyticssummary.js +16 -0
  167. package/esm/models/publicagentanalyticssummary.js.map +1 -0
  168. package/esm/models/publicagentcountry.d.ts +7 -0
  169. package/esm/models/publicagentcountry.d.ts.map +1 -0
  170. package/esm/models/publicagentcountry.js +11 -0
  171. package/esm/models/publicagentcountry.js.map +1 -0
  172. package/esm/models/publicagenterrorpage.d.ts +12 -0
  173. package/esm/models/publicagenterrorpage.d.ts.map +1 -0
  174. package/esm/models/publicagenterrorpage.js +16 -0
  175. package/esm/models/publicagenterrorpage.js.map +1 -0
  176. package/esm/models/publicagenterrorsource.d.ts +40 -0
  177. package/esm/models/publicagenterrorsource.d.ts.map +1 -0
  178. package/esm/models/publicagenterrorsource.js +40 -0
  179. package/esm/models/publicagenterrorsource.js.map +1 -0
  180. package/esm/models/publicagenttrafficpage.d.ts +14 -0
  181. package/esm/models/publicagenttrafficpage.d.ts.map +1 -0
  182. package/esm/models/publicagenttrafficpage.js +17 -0
  183. package/esm/models/publicagenttrafficpage.js.map +1 -0
  184. package/esm/models/publicagenttrafficsource.d.ts +47 -0
  185. package/esm/models/publicagenttrafficsource.d.ts.map +1 -0
  186. package/esm/models/publicagenttrafficsource.js +44 -0
  187. package/esm/models/publicagenttrafficsource.js.map +1 -0
  188. package/esm/models/publicagenttraffictotals.d.ts +13 -0
  189. package/esm/models/publicagenttraffictotals.d.ts.map +1 -0
  190. package/esm/models/publicagenttraffictotals.js +16 -0
  191. package/esm/models/publicagenttraffictotals.js.map +1 -0
  192. package/esm/models/publiccitationsummarygroup.d.ts +17 -0
  193. package/esm/models/publiccitationsummarygroup.d.ts.map +1 -0
  194. package/esm/models/publiccitationsummarygroup.js +20 -0
  195. package/esm/models/publiccitationsummarygroup.js.map +1 -0
  196. package/esm/models/publiccitationsummaryresponse.d.ts +61 -0
  197. package/esm/models/publiccitationsummaryresponse.d.ts.map +1 -0
  198. package/esm/models/publiccitationsummaryresponse.js +58 -0
  199. package/esm/models/publiccitationsummaryresponse.js.map +1 -0
  200. package/esm/models/publiccitationsummarytotals.d.ts +14 -0
  201. package/esm/models/publiccitationsummarytotals.d.ts.map +1 -0
  202. package/esm/models/publiccitationsummarytotals.js +17 -0
  203. package/esm/models/publiccitationsummarytotals.js.map +1 -0
  204. package/esm/models/publiccoverage.d.ts +12 -0
  205. package/esm/models/publiccoverage.d.ts.map +1 -0
  206. package/esm/models/publiccoverage.js +15 -0
  207. package/esm/models/publiccoverage.js.map +1 -0
  208. package/esm/models/publiccoverageday.d.ts +41 -0
  209. package/esm/models/publiccoverageday.d.ts.map +1 -0
  210. package/esm/models/publiccoverageday.js +39 -0
  211. package/esm/models/publiccoverageday.js.map +1 -0
  212. package/esm/models/publiccurrentvisibilityresponse.d.ts +8 -0
  213. package/esm/models/publiccurrentvisibilityresponse.d.ts.map +1 -1
  214. package/esm/models/publiccurrentvisibilityresponse.js +8 -0
  215. package/esm/models/publiccurrentvisibilityresponse.js.map +1 -1
  216. package/esm/models/publicperiodcoverage.d.ts +13 -0
  217. package/esm/models/publicperiodcoverage.d.ts.map +1 -0
  218. package/esm/models/publicperiodcoverage.js +17 -0
  219. package/esm/models/publicperiodcoverage.js.map +1 -0
  220. package/esm/models/publicperiodrates.d.ts +10 -0
  221. package/esm/models/publicperiodrates.d.ts.map +1 -0
  222. package/esm/models/publicperiodrates.js +14 -0
  223. package/esm/models/publicperiodrates.js.map +1 -0
  224. package/esm/models/publicpreviousvisibility.d.ts +10 -0
  225. package/esm/models/publicpreviousvisibility.d.ts.map +1 -0
  226. package/esm/models/publicpreviousvisibility.js +13 -0
  227. package/esm/models/publicpreviousvisibility.js.map +1 -0
  228. package/esm/models/publicpromptvisibilityreportresponse.d.ts +6 -0
  229. package/esm/models/publicpromptvisibilityreportresponse.d.ts.map +1 -1
  230. package/esm/models/publicpromptvisibilityreportresponse.js +6 -0
  231. package/esm/models/publicpromptvisibilityreportresponse.js.map +1 -1
  232. package/esm/models/publicratechanges.d.ts +8 -0
  233. package/esm/models/publicratechanges.d.ts.map +1 -0
  234. package/esm/models/publicratechanges.js +12 -0
  235. package/esm/models/publicratechanges.js.map +1 -0
  236. package/esm/models/publicrates.d.ts +27 -0
  237. package/esm/models/publicrates.d.ts.map +1 -0
  238. package/esm/models/publicrates.js +25 -0
  239. package/esm/models/publicrates.js.map +1 -0
  240. package/esm/models/publicresolvedperiod.d.ts +14 -0
  241. package/esm/models/publicresolvedperiod.d.ts.map +1 -0
  242. package/esm/models/publicresolvedperiod.js +18 -0
  243. package/esm/models/publicresolvedperiod.js.map +1 -0
  244. package/esm/models/publictopcitedurlsresponse.d.ts +10 -4
  245. package/esm/models/publictopcitedurlsresponse.d.ts.map +1 -1
  246. package/esm/models/publictopcitedurlsresponse.js +9 -3
  247. package/esm/models/publictopcitedurlsresponse.js.map +1 -1
  248. package/esm/models/publicvisibilityoverviewresponse.d.ts +6 -0
  249. package/esm/models/publicvisibilityoverviewresponse.d.ts.map +1 -1
  250. package/esm/models/publicvisibilityoverviewresponse.js +6 -0
  251. package/esm/models/publicvisibilityoverviewresponse.js.map +1 -1
  252. package/esm/models/updatetaskrequest.d.ts +8 -8
  253. package/esm/models/updatetaskrequest.d.ts.map +1 -1
  254. package/esm/models/updatetaskrequest.js +6 -6
  255. package/esm/models/updatetaskrequest.js.map +1 -1
  256. package/esm/models/updatev2promptrequest.js +1 -1
  257. package/esm/models/updatev2promptrequest.js.map +1 -1
  258. package/esm/models/v2agentanalyticscountrieslistop.d.ts +14 -0
  259. package/esm/models/v2agentanalyticscountrieslistop.d.ts.map +1 -0
  260. package/esm/models/v2agentanalyticscountrieslistop.js +19 -0
  261. package/esm/models/v2agentanalyticscountrieslistop.js.map +1 -0
  262. package/esm/models/v2agentanalyticserrorpageslistop.d.ts +40 -0
  263. package/esm/models/v2agentanalyticserrorpageslistop.d.ts.map +1 -0
  264. package/esm/models/v2agentanalyticserrorpageslistop.js +40 -0
  265. package/esm/models/v2agentanalyticserrorpageslistop.js.map +1 -0
  266. package/esm/models/v2agentanalyticspageslistop.d.ts +69 -0
  267. package/esm/models/v2agentanalyticspageslistop.d.ts.map +1 -0
  268. package/esm/models/v2agentanalyticspageslistop.js +66 -0
  269. package/esm/models/v2agentanalyticspageslistop.js.map +1 -0
  270. package/esm/models/v2agentanalyticssourceslistop.d.ts +13 -0
  271. package/esm/models/v2agentanalyticssourceslistop.d.ts.map +1 -0
  272. package/esm/models/v2agentanalyticssourceslistop.js +18 -0
  273. package/esm/models/v2agentanalyticssourceslistop.js.map +1 -0
  274. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts +13 -0
  275. package/esm/models/v2agentanalyticssummaryretrieveop.d.ts.map +1 -0
  276. package/esm/models/v2agentanalyticssummaryretrieveop.js +18 -0
  277. package/esm/models/v2agentanalyticssummaryretrieveop.js.map +1 -0
  278. package/esm/models/v2inlinemcpdefinition.js +1 -1
  279. package/esm/models/v2inlinemcpdefinition.js.map +1 -1
  280. package/esm/models/v2promptrunscancelop.d.ts +38 -0
  281. package/esm/models/v2promptrunscancelop.d.ts.map +1 -0
  282. package/esm/models/v2promptrunscancelop.js +31 -0
  283. package/esm/models/v2promptrunscancelop.js.map +1 -0
  284. package/esm/models/v2repository.d.ts +4 -4
  285. package/esm/models/v2repository.d.ts.map +1 -1
  286. package/esm/models/v2repository.js +3 -3
  287. package/esm/models/v2repository.js.map +1 -1
  288. package/esm/models/v2taskscreateop.d.ts +13 -0
  289. package/esm/models/v2taskscreateop.d.ts.map +1 -0
  290. package/esm/models/v2taskscreateop.js +16 -0
  291. package/esm/models/v2taskscreateop.js.map +1 -0
  292. package/esm/models/v2visibilitycitationslistop.d.ts +1 -0
  293. package/esm/models/v2visibilitycitationslistop.d.ts.map +1 -1
  294. package/esm/models/v2visibilitycitationslistop.js +1 -0
  295. package/esm/models/v2visibilitycitationslistop.js.map +1 -1
  296. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts +54 -0
  297. package/esm/models/v2visibilitycitationssummaryretrieveop.d.ts.map +1 -0
  298. package/esm/models/v2visibilitycitationssummaryretrieveop.js +51 -0
  299. package/esm/models/v2visibilitycitationssummaryretrieveop.js.map +1 -0
  300. package/esm/models/v2visibilitycurrentretrieveop.d.ts +1 -0
  301. package/esm/models/v2visibilitycurrentretrieveop.d.ts.map +1 -1
  302. package/esm/models/v2visibilitycurrentretrieveop.js +1 -0
  303. package/esm/models/v2visibilitycurrentretrieveop.js.map +1 -1
  304. package/esm/models/v2visibilityoverviewretrieveop.d.ts +1 -0
  305. package/esm/models/v2visibilityoverviewretrieveop.d.ts.map +1 -1
  306. package/esm/models/v2visibilityoverviewretrieveop.js +1 -0
  307. package/esm/models/v2visibilityoverviewretrieveop.js.map +1 -1
  308. package/esm/models/v2visibilitypromptsretrieveop.d.ts +1 -0
  309. package/esm/models/v2visibilitypromptsretrieveop.d.ts.map +1 -1
  310. package/esm/models/v2visibilitypromptsretrieveop.js +1 -0
  311. package/esm/models/v2visibilitypromptsretrieveop.js.map +1 -1
  312. package/esm/tool-names.d.ts.map +1 -1
  313. package/esm/tool-names.js +43 -7
  314. package/esm/tool-names.js.map +1 -1
  315. package/lib/tracker.js +219 -0
  316. package/package.json +3 -1
  317. package/src/funcs/agentAnalyticsCountriesList.ts +160 -0
  318. package/src/funcs/agentAnalyticsErrorPagesList.ts +162 -0
  319. package/src/funcs/agentAnalyticsPagesList.ts +164 -0
  320. package/src/funcs/agentAnalyticsSitesList.ts +124 -0
  321. package/src/funcs/agentAnalyticsSourcesList.ts +159 -0
  322. package/src/funcs/agentAnalyticsSummaryRetrieve.ts +159 -0
  323. package/src/funcs/agentsList.ts +1 -1
  324. package/src/funcs/evalsCreate.ts +2 -0
  325. package/src/funcs/evalsRun.ts +2 -0
  326. package/src/funcs/promptsRun.ts +7 -3
  327. package/src/funcs/promptsRunCancel.ts +153 -0
  328. package/src/funcs/tasksCreate.ts +145 -0
  329. package/src/funcs/visibilityCitationsList.ts +2 -1
  330. package/src/funcs/visibilityCitationsSummaryRetrieve.ts +158 -0
  331. package/src/funcs/visibilityCurrentRetrieve.ts +2 -1
  332. package/src/funcs/visibilityOverviewRetrieve.ts +2 -1
  333. package/src/funcs/visibilityPromptsRetrieve.ts +1 -0
  334. package/src/landing-page.ts +1 -1
  335. package/src/lib/config.ts +2 -2
  336. package/src/mcp-server/mcp-server.ts +1 -1
  337. package/src/mcp-server/server.ts +19 -1
  338. package/src/mcp-server/tools/agentAnalyticsCountriesList.ts +43 -0
  339. package/src/mcp-server/tools/agentAnalyticsErrorPagesList.ts +43 -0
  340. package/src/mcp-server/tools/agentAnalyticsPagesList.ts +43 -0
  341. package/src/mcp-server/tools/agentAnalyticsSitesList.ts +36 -0
  342. package/src/mcp-server/tools/agentAnalyticsSourcesList.ts +43 -0
  343. package/src/mcp-server/tools/agentAnalyticsSummaryRetrieve.ts +43 -0
  344. package/src/mcp-server/tools/agentsList.ts +1 -1
  345. package/src/mcp-server/tools/evalsCreate.ts +3 -1
  346. package/src/mcp-server/tools/evalsRun.ts +2 -0
  347. package/src/mcp-server/tools/promptsRun.ts +7 -3
  348. package/src/mcp-server/tools/promptsRunCancel.ts +43 -0
  349. package/src/mcp-server/tools/tasksCreate.ts +43 -0
  350. package/src/mcp-server/tools/visibilityCitationsList.ts +1 -1
  351. package/src/mcp-server/tools/visibilityCitationsSummaryRetrieve.ts +45 -0
  352. package/src/mcp-server/tools/visibilityCurrentRetrieve.ts +1 -1
  353. package/src/mcp-server/tools/visibilityOverviewRetrieve.ts +1 -1
  354. package/src/models/createtaskrequest.ts +98 -0
  355. package/src/models/createv2promptrequest.ts +1 -1
  356. package/src/models/createv2promptrunrequest.ts +5 -1
  357. package/src/models/graderdefinition.ts +2 -0
  358. package/src/models/publicagentanalyticscountrylistresponse.ts +36 -0
  359. package/src/models/publicagentanalyticserrorpagelistresponse.ts +40 -0
  360. package/src/models/publicagentanalyticspagelistresponse.ts +38 -0
  361. package/src/models/publicagentanalyticssite.ts +26 -0
  362. package/src/models/publicagentanalyticssitelistresponse.ts +20 -0
  363. package/src/models/publicagentanalyticssourcelistresponse.ts +36 -0
  364. package/src/models/publicagentanalyticssummary.ts +36 -0
  365. package/src/models/publicagentcountry.ts +16 -0
  366. package/src/models/publicagenterrorpage.ts +35 -0
  367. package/src/models/publicagenterrorsource.ts +63 -0
  368. package/src/models/publicagenttrafficpage.ts +46 -0
  369. package/src/models/publicagenttrafficsource.ts +77 -0
  370. package/src/models/publicagenttraffictotals.ts +42 -0
  371. package/src/models/publiccitationsummarygroup.ts +54 -0
  372. package/src/models/publiccitationsummaryresponse.ts +110 -0
  373. package/src/models/publiccitationsummarytotals.ts +38 -0
  374. package/src/models/publiccoverage.ts +34 -0
  375. package/src/models/publiccoverageday.ts +68 -0
  376. package/src/models/publiccurrentvisibilityresponse.ts +26 -0
  377. package/src/models/publicperiodcoverage.ts +33 -0
  378. package/src/models/publicperiodrates.ts +29 -0
  379. package/src/models/publicpreviousvisibility.ts +30 -0
  380. package/src/models/publicpromptvisibilityreportresponse.ts +18 -0
  381. package/src/models/publicratechanges.ts +25 -0
  382. package/src/models/publicrates.ts +52 -0
  383. package/src/models/publicresolvedperiod.ts +41 -0
  384. package/src/models/publictopcitedurlsresponse.ts +25 -5
  385. package/src/models/publicvisibilityoverviewresponse.ts +18 -0
  386. package/src/models/updatetaskrequest.ts +14 -10
  387. package/src/models/updatev2promptrequest.ts +1 -1
  388. package/src/models/v2agentanalyticscountrieslistop.ts +49 -0
  389. package/src/models/v2agentanalyticserrorpageslistop.ts +83 -0
  390. package/src/models/v2agentanalyticspageslistop.ts +123 -0
  391. package/src/models/v2agentanalyticssourceslistop.ts +47 -0
  392. package/src/models/v2agentanalyticssummaryretrieveop.ts +47 -0
  393. package/src/models/v2inlinemcpdefinition.ts +1 -1
  394. package/src/models/v2promptrunscancelop.ts +90 -0
  395. package/src/models/v2repository.ts +5 -5
  396. package/src/models/v2taskscreateop.ts +34 -0
  397. package/src/models/v2visibilitycitationslistop.ts +4 -0
  398. package/src/models/v2visibilitycitationssummaryretrieveop.ts +113 -0
  399. package/src/models/v2visibilitycurrentretrieveop.ts +4 -0
  400. package/src/models/v2visibilityoverviewretrieveop.ts +4 -0
  401. package/src/models/v2visibilitypromptsretrieveop.ts +4 -0
  402. package/src/tool-names.ts +43 -7
  403. package/test/tracker.test.js +323 -0
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Retrieve Current Visibility
31
31
  *
32
32
  * @remarks
33
- * 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`.
33
+ * 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.
34
34
  */
35
35
  export function visibilityCurrentRetrieve(
36
36
  client$: LightsageMcpCore,
@@ -88,6 +88,7 @@ async function $do(
88
88
  const path$ = pathToFunc("/v2/visibility/current")();
89
89
  const query$ = encodeFormQuery({
90
90
  "end_date": payload$?.end_date,
91
+ "period": payload$?.period,
91
92
  "start_date": payload$?.start_date,
92
93
  });
93
94
 
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * Retrieve Visibility Overview
31
31
  *
32
32
  * @remarks
33
- * Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison. Calculated from active prompts only.
33
+ * 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.
34
34
  */
35
35
  export function visibilityOverviewRetrieve(
36
36
  client$: LightsageMcpCore,
@@ -88,6 +88,7 @@ async function $do(
88
88
  const path$ = pathToFunc("/v2/visibility/overview")();
89
89
  const query$ = encodeFormQuery({
90
90
  "end_date": payload$?.end_date,
91
+ "period": payload$?.period,
91
92
  "start_date": payload$?.start_date,
92
93
  });
93
94
 
@@ -88,6 +88,7 @@ async function $do(
88
88
  const path$ = pathToFunc("/v2/visibility/prompts")();
89
89
  const query$ = encodeFormQuery({
90
90
  "end_date": payload$?.end_date,
91
+ "period": payload$?.period,
91
92
  "start_date": payload$?.start_date,
92
93
  });
93
94
 
@@ -931,7 +931,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
931
931
  <h1>Instructions</h1>
932
932
  <p>One-click installation for Claude Desktop users</p>
933
933
  <div class="instruction-item">
934
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.16/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
934
+ <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;">
935
935
  📥 Download MCP Bundle
936
936
  </a>
937
937
  </div>
package/src/lib/config.ts CHANGED
@@ -66,7 +66,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
66
66
  export const SDK_METADATA = {
67
67
  language: "typescript",
68
68
  openapiDocVersion: "1.0.0",
69
- sdkVersion: "0.4.16",
69
+ sdkVersion: "0.4.18",
70
70
  genVersion: "2.948.4",
71
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.16 2.948.4 1.0.0 @lightsage/mcp",
71
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.18 2.948.4 1.0.0 @lightsage/mcp",
72
72
  } as const;
@@ -22,7 +22,7 @@ const routes = buildRouteMap({
22
22
  export const app = buildApplication(routes, {
23
23
  name: "mcp",
24
24
  versionInfo: {
25
- currentVersion: "0.4.16",
25
+ currentVersion: "0.4.18",
26
26
  },
27
27
  });
28
28
 
@@ -18,6 +18,12 @@ import {
18
18
  MCPToolAnnotationFilter,
19
19
  registerDynamicTools,
20
20
  } from "./tools.js";
21
+ import { tool$agentAnalyticsCountriesList } from "./tools/agentAnalyticsCountriesList.js";
22
+ import { tool$agentAnalyticsErrorPagesList } from "./tools/agentAnalyticsErrorPagesList.js";
23
+ import { tool$agentAnalyticsPagesList } from "./tools/agentAnalyticsPagesList.js";
24
+ import { tool$agentAnalyticsSitesList } from "./tools/agentAnalyticsSitesList.js";
25
+ import { tool$agentAnalyticsSourcesList } from "./tools/agentAnalyticsSourcesList.js";
26
+ import { tool$agentAnalyticsSummaryRetrieve } from "./tools/agentAnalyticsSummaryRetrieve.js";
21
27
  import { tool$agentPreferenceCompetitorsList } from "./tools/agentPreferenceCompetitorsList.js";
22
28
  import { tool$agentPreferenceEvalsCreate } from "./tools/agentPreferenceEvalsCreate.js";
23
29
  import { tool$agentPreferenceEvalsDelete } from "./tools/agentPreferenceEvalsDelete.js";
@@ -58,6 +64,7 @@ import { tool$promptsDelete } from "./tools/promptsDelete.js";
58
64
  import { tool$promptsList } from "./tools/promptsList.js";
59
65
  import { tool$promptsRetrieve } from "./tools/promptsRetrieve.js";
60
66
  import { tool$promptsRun } from "./tools/promptsRun.js";
67
+ import { tool$promptsRunCancel } from "./tools/promptsRunCancel.js";
61
68
  import { tool$promptsRunsList } from "./tools/promptsRunsList.js";
62
69
  import { tool$promptsRunsRetrieve } from "./tools/promptsRunsRetrieve.js";
63
70
  import { tool$promptsRunStatus } from "./tools/promptsRunStatus.js";
@@ -76,10 +83,12 @@ import { tool$siteAuditsRetrieve } from "./tools/siteAuditsRetrieve.js";
76
83
  import { tool$skillsList } from "./tools/skillsList.js";
77
84
  import { tool$statusAuthStatusGet } from "./tools/statusAuthStatusGet.js";
78
85
  import { tool$statusGet } from "./tools/statusGet.js";
86
+ import { tool$tasksCreate } from "./tools/tasksCreate.js";
79
87
  import { tool$tasksList } from "./tools/tasksList.js";
80
88
  import { tool$tasksRetrieve } from "./tools/tasksRetrieve.js";
81
89
  import { tool$tasksUpdate } from "./tools/tasksUpdate.js";
82
90
  import { tool$visibilityCitationsList } from "./tools/visibilityCitationsList.js";
91
+ import { tool$visibilityCitationsSummaryRetrieve } from "./tools/visibilityCitationsSummaryRetrieve.js";
83
92
  import { tool$visibilityCurrentRetrieve } from "./tools/visibilityCurrentRetrieve.js";
84
93
  import { tool$visibilityOverviewRetrieve } from "./tools/visibilityOverviewRetrieve.js";
85
94
  import { tool$visibilityPromptsRetrieve } from "./tools/visibilityPromptsRetrieve.js";
@@ -103,7 +112,7 @@ export function createMCPServer(deps: {
103
112
  sizes: ["any"],
104
113
  }],
105
114
  name: "LightsageMcp",
106
- version: "0.4.16",
115
+ version: "0.4.17",
107
116
  });
108
117
 
109
118
  const getClient = deps.getSDK || (() =>
@@ -154,6 +163,7 @@ export function createMCPServer(deps: {
154
163
  tool(tool$visibilityOverviewRetrieve);
155
164
  tool(tool$visibilityCitationsList);
156
165
  tool(tool$visibilityPromptsRetrieve);
166
+ tool(tool$visibilityCitationsSummaryRetrieve);
157
167
  tool(tool$promptsList);
158
168
  tool(tool$promptsCreate);
159
169
  tool(tool$promptsTopicsList);
@@ -167,13 +177,21 @@ export function createMCPServer(deps: {
167
177
  tool(tool$promptsDelete);
168
178
  tool(tool$promptsRun);
169
179
  tool(tool$promptsRunStatus);
180
+ tool(tool$promptsRunCancel);
170
181
  tool(tool$opportunitiesList);
171
182
  tool(tool$opportunitiesRetrieve);
172
183
  tool(tool$tasksList);
184
+ tool(tool$tasksCreate);
173
185
  tool(tool$tasksRetrieve);
174
186
  tool(tool$tasksUpdate);
175
187
  tool(tool$siteAuditsList);
176
188
  tool(tool$siteAuditsRetrieve);
189
+ tool(tool$agentAnalyticsSitesList);
190
+ tool(tool$agentAnalyticsSummaryRetrieve);
191
+ tool(tool$agentAnalyticsSourcesList);
192
+ tool(tool$agentAnalyticsPagesList);
193
+ tool(tool$agentAnalyticsErrorPagesList);
194
+ tool(tool$agentAnalyticsCountriesList);
177
195
  tool(tool$evalsList);
178
196
  tool(tool$evalsCreate);
179
197
  tool(tool$evalsBatchCreate);
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0da30e8db89f
4
+ */
5
+
6
+ import { agentAnalyticsCountriesList } from "../../funcs/agentAnalyticsCountriesList.js";
7
+ import { V2AgentAnalyticsCountriesListRequest$zodSchema } from "../../models/v2agentanalyticscountrieslistop.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: V2AgentAnalyticsCountriesListRequest$zodSchema,
12
+ };
13
+
14
+ export const tool$agentAnalyticsCountriesList: ToolDefinition<typeof args> = {
15
+ name: "agent-analytics-countries-list",
16
+ description: `List Agent Analytics Countries
17
+
18
+ Returns a site's visits from coding agents and AI assistants per country in the date range, most visits first.`,
19
+ annotations: {
20
+ "title": "",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": false,
24
+ "readOnlyHint": true,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await agentAnalyticsCountriesList(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d33d2c1a70a9
4
+ */
5
+
6
+ import { agentAnalyticsErrorPagesList } from "../../funcs/agentAnalyticsErrorPagesList.js";
7
+ import { V2AgentAnalyticsErrorPagesListRequest$zodSchema } from "../../models/v2agentanalyticserrorpageslistop.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: V2AgentAnalyticsErrorPagesListRequest$zodSchema,
12
+ };
13
+
14
+ export const tool$agentAnalyticsErrorPagesList: ToolDefinition<typeof args> = {
15
+ name: "agent-analytics-error-pages-list",
16
+ description: `List Agent Analytics Error Pages
17
+
18
+ Returns the pages on a site that returned an error status (400 and up) in the date range, most error requests first, with the agents, bots, and people that got each error. Set \`status\` to 404 for pages that were not found. Needs server-side tracking that records status codes; \`status_codes_tracked\` says whether the site has any.`,
19
+ annotations: {
20
+ "title": "",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": false,
24
+ "readOnlyHint": true,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await agentAnalyticsErrorPagesList(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 057773705e6c
4
+ */
5
+
6
+ import { agentAnalyticsPagesList } from "../../funcs/agentAnalyticsPagesList.js";
7
+ import { V2AgentAnalyticsPagesListRequest$zodSchema } from "../../models/v2agentanalyticspageslistop.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: V2AgentAnalyticsPagesListRequest$zodSchema,
12
+ };
13
+
14
+ export const tool$agentAnalyticsPagesList: ToolDefinition<typeof args> = {
15
+ name: "agent-analytics-pages-list",
16
+ description: `List Agent Analytics Pages
17
+
18
+ Returns the pages AI agents and bots read on a site in the date range, with visits per traffic type. Sorted by AI visits unless \`sort\` is set. With \`type\`, returns only pages that traffic type visited. With \`agent\`, returns only the pages that one coding agent read.`,
19
+ annotations: {
20
+ "title": "",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": false,
24
+ "readOnlyHint": true,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await agentAnalyticsPagesList(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: d95f6428bdb2
4
+ */
5
+
6
+ import { agentAnalyticsSitesList } from "../../funcs/agentAnalyticsSitesList.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ export const tool$agentAnalyticsSitesList: ToolDefinition = {
10
+ name: "agent-analytics-sites-list",
11
+ description: `List Agent Analytics Sites
12
+
13
+ Returns every site with tracked visits. Use a \`site_id\` from this list to read that site's agent traffic.`,
14
+ annotations: {
15
+ "title": "",
16
+ "destructiveHint": false,
17
+ "idempotentHint": false,
18
+ "openWorldHint": false,
19
+ "readOnlyHint": true,
20
+ },
21
+ tool: async (client, ctx) => {
22
+ const [result] = await agentAnalyticsSitesList(
23
+ client,
24
+ { fetchOptions: { signal: ctx.signal } },
25
+ ).$inspect();
26
+
27
+ if (!result.ok) {
28
+ return {
29
+ content: [{ type: "text", text: result.error.message }],
30
+ isError: true,
31
+ };
32
+ }
33
+
34
+ return formatResult(result.value);
35
+ },
36
+ };
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 866f96a4dbca
4
+ */
5
+
6
+ import { agentAnalyticsSourcesList } from "../../funcs/agentAnalyticsSourcesList.js";
7
+ import { V2AgentAnalyticsSourcesListRequest$zodSchema } from "../../models/v2agentanalyticssourceslistop.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: V2AgentAnalyticsSourcesListRequest$zodSchema,
12
+ };
13
+
14
+ export const tool$agentAnalyticsSourcesList: ToolDefinition<typeof args> = {
15
+ name: "agent-analytics-sources-list",
16
+ description: `List Agent Analytics Sources
17
+
18
+ Returns every coding agent and bot that visited a site in the date range, with its traffic type and visit count, most visits first. Human visits are one \`people\` row.`,
19
+ annotations: {
20
+ "title": "",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": false,
24
+ "readOnlyHint": true,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await agentAnalyticsSourcesList(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 40ea59809461
4
+ */
5
+
6
+ import { agentAnalyticsSummaryRetrieve } from "../../funcs/agentAnalyticsSummaryRetrieve.js";
7
+ import { V2AgentAnalyticsSummaryRetrieveRequest$zodSchema } from "../../models/v2agentanalyticssummaryretrieveop.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: V2AgentAnalyticsSummaryRetrieveRequest$zodSchema,
12
+ };
13
+
14
+ export const tool$agentAnalyticsSummaryRetrieve: ToolDefinition<typeof args> = {
15
+ name: "agent-analytics-summary-retrieve",
16
+ description: `Retrieve Agent Analytics Summary
17
+
18
+ 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\`).`,
19
+ annotations: {
20
+ "title": "",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": false,
24
+ "readOnlyHint": true,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await agentAnalyticsSummaryRetrieve(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -10,7 +10,7 @@ export const tool$agentsList: ToolDefinition = {
10
10
  name: "agents-list",
11
11
  description: `List Agents
12
12
 
13
- Returns the harness-and-model combinations your plan can run, as single agent IDs for use in eval runs.`,
13
+ 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.`,
14
14
  annotations: {
15
15
  "title": "",
16
16
  "destructiveHint": false,
@@ -15,7 +15,9 @@ export const tool$evalsCreate: ToolDefinition<typeof args> = {
15
15
  name: "evals-create",
16
16
  description: `Create Eval
17
17
 
18
- 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.`,
18
+ 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.
19
+
20
+ 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.`,
19
21
  annotations: {
20
22
  "title": "",
21
23
  "destructiveHint": false,
@@ -17,6 +17,8 @@ export const tool$evalsRun: ToolDefinition<typeof args> = {
17
17
 
18
18
  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.
19
19
 
20
+ 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.
21
+
20
22
  Send one of these flat request forms:
21
23
 
22
24
  - **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.
@@ -15,11 +15,15 @@ export const tool$promptsRun: ToolDefinition<typeof args> = {
15
15
  name: "prompts-run",
16
16
  description: `Run Prompts
17
17
 
18
- Queue saved prompts using the organization's configured targets.
18
+ Queue saved prompts on answer engines and coding agents.
19
19
 
20
20
  Provide \`prompt_ids\` to run selected prompts, or omit them to run all active
21
- prompts. Saved prompt run settings apply to coding-agent targets. The
22
- response returns a run ID to poll with
21
+ prompts. By default the run uses the organization's configured targets.
22
+ Provide \`agent\` with IDs from \`GET /v2/agents\` to run the prompts on
23
+ specific coding-agent harnesses and models instead, for example to compare
24
+ how several coding tools answer the same developer question. Results
25
+ include mentions and citations. Saved prompt run settings apply to
26
+ coding-agent targets. The response returns a run ID to poll with
23
27
  \`GET /v2/prompts/runs/{run_id}/status\`.`,
24
28
  annotations: {
25
29
  "title": "",
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 0560657e0c9b
4
+ */
5
+
6
+ import { promptsRunCancel } from "../../funcs/promptsRunCancel.js";
7
+ import { V2PromptRunsCancelRequest$zodSchema } from "../../models/v2promptrunscancelop.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: V2PromptRunsCancelRequest$zodSchema,
12
+ };
13
+
14
+ export const tool$promptsRunCancel: ToolDefinition<typeof args> = {
15
+ name: "prompts-run-cancel",
16
+ description: `Cancel a prompt run
17
+
18
+ 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.`,
19
+ annotations: {
20
+ "title": "",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": false,
24
+ "readOnlyHint": false,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await promptsRunCancel(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 6713b53d6c00
4
+ */
5
+
6
+ import { tasksCreate } from "../../funcs/tasksCreate.js";
7
+ import { CreateTaskRequest$zodSchema } from "../../models/createtaskrequest.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: CreateTaskRequest$zodSchema,
12
+ };
13
+
14
+ export const tool$tasksCreate: ToolDefinition<typeof args> = {
15
+ name: "tasks-create",
16
+ description: `Create Task
17
+
18
+ Adds a task to today's queue and returns it with its execution prompt. New tasks start as \`new\`.`,
19
+ annotations: {
20
+ "title": "",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": false,
24
+ "readOnlyHint": false,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await tasksCreate(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -15,7 +15,7 @@ export const tool$visibilityCitationsList: ToolDefinition<typeof args> = {
15
15
  name: "visibility-citations-list",
16
16
  description: `List Top Cited Urls
17
17
 
18
- Returns URL-level citation counts ranked from most to least cited. Results can be filtered by platform and to owned or external sources.`,
18
+ 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.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 094c7750d43d
4
+ */
5
+
6
+ import { visibilityCitationsSummaryRetrieve } from "../../funcs/visibilityCitationsSummaryRetrieve.js";
7
+ import { V2VisibilityCitationsSummaryRetrieveRequest$zodSchema } from "../../models/v2visibilitycitationssummaryretrieveop.js";
8
+ import { formatResult, ToolDefinition } from "../tools.js";
9
+
10
+ const args = {
11
+ request: V2VisibilityCitationsSummaryRetrieveRequest$zodSchema.optional(),
12
+ };
13
+
14
+ export const tool$visibilityCitationsSummaryRetrieve: ToolDefinition<
15
+ typeof args
16
+ > = {
17
+ name: "visibility-citations-summary-retrieve",
18
+ description: `Retrieve Citation Summary
19
+
20
+ 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.`,
21
+ annotations: {
22
+ "title": "",
23
+ "destructiveHint": false,
24
+ "idempotentHint": false,
25
+ "openWorldHint": false,
26
+ "readOnlyHint": true,
27
+ },
28
+ args,
29
+ tool: async (client, args, ctx) => {
30
+ const [result] = await visibilityCitationsSummaryRetrieve(
31
+ client,
32
+ args.request,
33
+ { fetchOptions: { signal: ctx.signal } },
34
+ ).$inspect();
35
+
36
+ if (!result.ok) {
37
+ return {
38
+ content: [{ type: "text", text: result.error.message }],
39
+ isError: true,
40
+ };
41
+ }
42
+
43
+ return formatResult(result.value);
44
+ },
45
+ };
@@ -15,7 +15,7 @@ export const tool$visibilityCurrentRetrieve: ToolDefinition<typeof args> = {
15
15
  name: "visibility-current-retrieve",
16
16
  description: `Retrieve Current Visibility
17
17
 
18
- 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\`.`,
18
+ 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.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -15,7 +15,7 @@ export const tool$visibilityOverviewRetrieve: ToolDefinition<typeof args> = {
15
15
  name: "visibility-overview-retrieve",
16
16
  description: `Retrieve Visibility Overview
17
17
 
18
- Returns aggregate snapshot, daily trends, per-platform breakdowns, and competitor comparison. Calculated from active prompts only.`,
18
+ 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.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,