@rnsk/toolkits 0.0.8 → 0.0.10

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 (329) hide show
  1. package/README.md +15 -1
  2. package/dist/index.d.ts +15 -1
  3. package/dist/index.js +29 -1
  4. package/dist/toolkits/bitbucket/icon.d.ts +5 -0
  5. package/dist/toolkits/bitbucket/icon.js +6 -0
  6. package/dist/toolkits/bitbucket/manifest.d.ts +3 -0
  7. package/dist/toolkits/bitbucket/manifest.js +56 -0
  8. package/dist/toolkits/bitbucket/tools/client.d.ts +38 -0
  9. package/dist/toolkits/bitbucket/tools/client.js +87 -0
  10. package/dist/toolkits/bitbucket/tools/commits.d.ts +149 -0
  11. package/dist/toolkits/bitbucket/tools/commits.js +444 -0
  12. package/dist/toolkits/bitbucket/tools/index.d.ts +1093 -0
  13. package/dist/toolkits/bitbucket/tools/index.js +770 -0
  14. package/dist/toolkits/bitbucket/tools/issues.d.ts +73 -0
  15. package/dist/toolkits/bitbucket/tools/issues.js +234 -0
  16. package/dist/toolkits/bitbucket/tools/pipelines.d.ts +124 -0
  17. package/dist/toolkits/bitbucket/tools/pipelines.js +446 -0
  18. package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +174 -0
  19. package/dist/toolkits/bitbucket/tools/pull-requests.js +541 -0
  20. package/dist/toolkits/bitbucket/tools/reports.d.ts +84 -0
  21. package/dist/toolkits/bitbucket/tools/reports.js +213 -0
  22. package/dist/toolkits/bitbucket/tools/repositories.d.ts +156 -0
  23. package/dist/toolkits/bitbucket/tools/repositories.js +531 -0
  24. package/dist/toolkits/bitbucket/tools/search.d.ts +17 -0
  25. package/dist/toolkits/bitbucket/tools/search.js +67 -0
  26. package/dist/toolkits/bitbucket/tools/snippets.d.ts +34 -0
  27. package/dist/toolkits/bitbucket/tools/snippets.js +122 -0
  28. package/dist/toolkits/bitbucket/tools/users-workspaces.d.ts +65 -0
  29. package/dist/toolkits/bitbucket/tools/users-workspaces.js +294 -0
  30. package/dist/toolkits/discord/icon.d.ts +5 -0
  31. package/dist/toolkits/discord/icon.js +12 -0
  32. package/dist/toolkits/discord/manifest.d.ts +3 -0
  33. package/dist/toolkits/discord/manifest.js +52 -0
  34. package/dist/toolkits/discord/tools/applications.d.ts +79 -0
  35. package/dist/toolkits/discord/tools/applications.js +216 -0
  36. package/dist/toolkits/discord/tools/client.d.ts +22 -0
  37. package/dist/toolkits/discord/tools/client.js +69 -0
  38. package/dist/toolkits/discord/tools/guilds.d.ts +39 -0
  39. package/dist/toolkits/discord/tools/guilds.js +123 -0
  40. package/dist/toolkits/discord/tools/index.d.ts +222 -0
  41. package/dist/toolkits/discord/tools/index.js +170 -0
  42. package/dist/toolkits/discord/tools/misc.d.ts +7 -0
  43. package/dist/toolkits/discord/tools/misc.js +40 -0
  44. package/dist/toolkits/discord/tools/users.d.ts +28 -0
  45. package/dist/toolkits/discord/tools/users.js +128 -0
  46. package/dist/toolkits/figma/tools/index.d.ts +1 -1
  47. package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
  48. package/dist/toolkits/gitlab/icon.d.ts +5 -0
  49. package/dist/toolkits/gitlab/icon.js +6 -0
  50. package/dist/toolkits/gitlab/manifest.d.ts +3 -0
  51. package/dist/toolkits/gitlab/manifest.js +36 -0
  52. package/dist/toolkits/gitlab/tools/client.d.ts +7 -0
  53. package/dist/toolkits/gitlab/tools/client.js +45 -0
  54. package/dist/toolkits/gitlab/tools/index.d.ts +306 -0
  55. package/dist/toolkits/gitlab/tools/index.js +36 -0
  56. package/dist/toolkits/gitlab/tools/issues.d.ts +45 -0
  57. package/dist/toolkits/gitlab/tools/issues.js +103 -0
  58. package/dist/toolkits/gitlab/tools/merge-requests.d.ts +35 -0
  59. package/dist/toolkits/gitlab/tools/merge-requests.js +91 -0
  60. package/dist/toolkits/gitlab/tools/pipelines.d.ts +30 -0
  61. package/dist/toolkits/gitlab/tools/pipelines.js +66 -0
  62. package/dist/toolkits/gitlab/tools/projects.d.ts +36 -0
  63. package/dist/toolkits/gitlab/tools/projects.js +94 -0
  64. package/dist/toolkits/gitlab/tools/repository.d.ts +21 -0
  65. package/dist/toolkits/gitlab/tools/repository.js +53 -0
  66. package/dist/toolkits/gitlab/tools/users-groups.d.ts +11 -0
  67. package/dist/toolkits/gitlab/tools/users-groups.js +30 -0
  68. package/dist/toolkits/google-ads/tools/get-rmf-report.d.ts +2 -2
  69. package/dist/toolkits/google-ads/tools/index.d.ts +2 -2
  70. package/dist/toolkits/google-analytics/icon.d.ts +5 -0
  71. package/dist/toolkits/google-analytics/icon.js +11 -0
  72. package/dist/toolkits/google-analytics/manifest.d.ts +3 -0
  73. package/dist/toolkits/google-analytics/manifest.js +48 -0
  74. package/dist/toolkits/google-analytics/tools/admin.d.ts +73 -0
  75. package/dist/toolkits/google-analytics/tools/admin.js +238 -0
  76. package/dist/toolkits/google-analytics/tools/audiences.d.ts +81 -0
  77. package/dist/toolkits/google-analytics/tools/audiences.js +190 -0
  78. package/dist/toolkits/google-analytics/tools/client.d.ts +47 -0
  79. package/dist/toolkits/google-analytics/tools/client.js +74 -0
  80. package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +62 -0
  81. package/dist/toolkits/google-analytics/tools/custom-definitions.js +106 -0
  82. package/dist/toolkits/google-analytics/tools/index.d.ts +16 -0
  83. package/dist/toolkits/google-analytics/tools/index.js +88 -0
  84. package/dist/toolkits/google-analytics/tools/links.d.ts +22 -0
  85. package/dist/toolkits/google-analytics/tools/links.js +56 -0
  86. package/dist/toolkits/google-analytics/tools/measurement.d.ts +3 -0
  87. package/dist/toolkits/google-analytics/tools/measurement.js +55 -0
  88. package/dist/toolkits/google-analytics/tools/reports.d.ts +136 -0
  89. package/dist/toolkits/google-analytics/tools/reports.js +200 -0
  90. package/dist/toolkits/google-contacts/icon.d.ts +5 -0
  91. package/dist/toolkits/google-contacts/icon.js +6 -0
  92. package/dist/toolkits/google-contacts/manifest.d.ts +3 -0
  93. package/dist/toolkits/google-contacts/manifest.js +48 -0
  94. package/dist/toolkits/google-contacts/tools/client.d.ts +19 -0
  95. package/dist/toolkits/google-contacts/tools/client.js +44 -0
  96. package/dist/toolkits/google-contacts/tools/contacts.d.ts +94 -0
  97. package/dist/toolkits/google-contacts/tools/contacts.js +273 -0
  98. package/dist/toolkits/google-contacts/tools/directory.d.ts +36 -0
  99. package/dist/toolkits/google-contacts/tools/directory.js +99 -0
  100. package/dist/toolkits/google-contacts/tools/groups.d.ts +68 -0
  101. package/dist/toolkits/google-contacts/tools/groups.js +169 -0
  102. package/dist/toolkits/google-contacts/tools/index.d.ts +347 -0
  103. package/dist/toolkits/google-contacts/tools/index.js +34 -0
  104. package/dist/toolkits/google-contacts/tools/photos.d.ts +26 -0
  105. package/dist/toolkits/google-contacts/tools/photos.js +52 -0
  106. package/dist/toolkits/google-maps/icon.d.ts +5 -0
  107. package/dist/toolkits/google-maps/icon.js +39 -0
  108. package/dist/toolkits/google-maps/manifest.d.ts +3 -0
  109. package/dist/toolkits/google-maps/manifest.js +55 -0
  110. package/dist/toolkits/google-maps/tools/client.d.ts +27 -0
  111. package/dist/toolkits/google-maps/tools/client.js +72 -0
  112. package/dist/toolkits/google-maps/tools/geocode.d.ts +49 -0
  113. package/dist/toolkits/google-maps/tools/geocode.js +168 -0
  114. package/dist/toolkits/google-maps/tools/index.d.ts +432 -0
  115. package/dist/toolkits/google-maps/tools/index.js +31 -0
  116. package/dist/toolkits/google-maps/tools/misc.d.ts +70 -0
  117. package/dist/toolkits/google-maps/tools/misc.js +158 -0
  118. package/dist/toolkits/google-maps/tools/places.d.ts +112 -0
  119. package/dist/toolkits/google-maps/tools/places.js +185 -0
  120. package/dist/toolkits/google-maps/tools/routes.d.ts +48 -0
  121. package/dist/toolkits/google-maps/tools/routes.js +97 -0
  122. package/dist/toolkits/google-maps/tools/tiles.d.ts +51 -0
  123. package/dist/toolkits/google-maps/tools/tiles.js +84 -0
  124. package/dist/toolkits/google-photos/icon.d.ts +5 -0
  125. package/dist/toolkits/google-photos/icon.js +6 -0
  126. package/dist/toolkits/google-photos/manifest.d.ts +3 -0
  127. package/dist/toolkits/google-photos/manifest.js +47 -0
  128. package/dist/toolkits/google-photos/tools/albums.d.ts +83 -0
  129. package/dist/toolkits/google-photos/tools/albums.js +180 -0
  130. package/dist/toolkits/google-photos/tools/client.d.ts +24 -0
  131. package/dist/toolkits/google-photos/tools/client.js +77 -0
  132. package/dist/toolkits/google-photos/tools/index.d.ts +261 -0
  133. package/dist/toolkits/google-photos/tools/index.js +22 -0
  134. package/dist/toolkits/google-photos/tools/media.d.ts +52 -0
  135. package/dist/toolkits/google-photos/tools/media.js +142 -0
  136. package/dist/toolkits/google-photos/tools/uploads.d.ts +58 -0
  137. package/dist/toolkits/google-photos/tools/uploads.js +107 -0
  138. package/dist/toolkits/google-tasks/tools/index.d.ts +1 -1
  139. package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
  140. package/dist/toolkits/groww/tools/index.d.ts +1 -1
  141. package/dist/toolkits/groww/tools/instruments.d.ts +1 -1
  142. package/dist/toolkits/hacker-news/icon.d.ts +5 -0
  143. package/dist/toolkits/hacker-news/icon.js +9 -0
  144. package/dist/toolkits/hacker-news/manifest.d.ts +3 -0
  145. package/dist/toolkits/hacker-news/manifest.js +25 -0
  146. package/dist/toolkits/hacker-news/tools/client.d.ts +8 -0
  147. package/dist/toolkits/hacker-news/tools/client.js +51 -0
  148. package/dist/toolkits/hacker-news/tools/index.d.ts +89 -0
  149. package/dist/toolkits/hacker-news/tools/index.js +22 -0
  150. package/dist/toolkits/hacker-news/tools/items.d.ts +42 -0
  151. package/dist/toolkits/hacker-news/tools/items.js +126 -0
  152. package/dist/toolkits/hacker-news/tools/search.d.ts +12 -0
  153. package/dist/toolkits/hacker-news/tools/search.js +40 -0
  154. package/dist/toolkits/hacker-news/tools/stories.d.ts +25 -0
  155. package/dist/toolkits/hacker-news/tools/stories.js +98 -0
  156. package/dist/toolkits/hostinger/icon.d.ts +5 -0
  157. package/dist/toolkits/hostinger/icon.js +6 -0
  158. package/dist/toolkits/hostinger/manifest.d.ts +3 -0
  159. package/dist/toolkits/hostinger/manifest.js +36 -0
  160. package/dist/toolkits/hostinger/tools/billing.d.ts +12 -0
  161. package/dist/toolkits/hostinger/tools/billing.js +35 -0
  162. package/dist/toolkits/hostinger/tools/client.d.ts +6 -0
  163. package/dist/toolkits/hostinger/tools/client.js +57 -0
  164. package/dist/toolkits/hostinger/tools/dns.d.ts +22 -0
  165. package/dist/toolkits/hostinger/tools/dns.js +47 -0
  166. package/dist/toolkits/hostinger/tools/domains.d.ts +21 -0
  167. package/dist/toolkits/hostinger/tools/domains.js +62 -0
  168. package/dist/toolkits/hostinger/tools/hosting.d.ts +17 -0
  169. package/dist/toolkits/hostinger/tools/hosting.js +38 -0
  170. package/dist/toolkits/hostinger/tools/index.d.ts +179 -0
  171. package/dist/toolkits/hostinger/tools/index.js +35 -0
  172. package/dist/toolkits/hostinger/tools/vps.d.ts +27 -0
  173. package/dist/toolkits/hostinger/tools/vps.js +77 -0
  174. package/dist/toolkits/hostinger/tools/whois.d.ts +33 -0
  175. package/dist/toolkits/hostinger/tools/whois.js +85 -0
  176. package/dist/toolkits/hugging-face/icon.d.ts +5 -0
  177. package/dist/toolkits/hugging-face/icon.js +6 -0
  178. package/dist/toolkits/hugging-face/manifest.d.ts +3 -0
  179. package/dist/toolkits/hugging-face/manifest.js +42 -0
  180. package/dist/toolkits/hugging-face/tools/client.d.ts +93 -0
  181. package/dist/toolkits/hugging-face/tools/client.js +192 -0
  182. package/dist/toolkits/hugging-face/tools/datasets-viewer.d.ts +65 -0
  183. package/dist/toolkits/hugging-face/tools/datasets-viewer.js +150 -0
  184. package/dist/toolkits/hugging-face/tools/datasets.d.ts +160 -0
  185. package/dist/toolkits/hugging-face/tools/datasets.js +383 -0
  186. package/dist/toolkits/hugging-face/tools/discussions.d.ts +68 -0
  187. package/dist/toolkits/hugging-face/tools/discussions.js +144 -0
  188. package/dist/toolkits/hugging-face/tools/index.d.ts +523 -0
  189. package/dist/toolkits/hugging-face/tools/index.js +163 -0
  190. package/dist/toolkits/hugging-face/tools/inference.d.ts +42 -0
  191. package/dist/toolkits/hugging-face/tools/inference.js +86 -0
  192. package/dist/toolkits/hugging-face/tools/models.d.ts +117 -0
  193. package/dist/toolkits/hugging-face/tools/models.js +273 -0
  194. package/dist/toolkits/hugging-face/tools/papers.d.ts +37 -0
  195. package/dist/toolkits/hugging-face/tools/papers.js +91 -0
  196. package/dist/toolkits/hugging-face/tools/repos.d.ts +96 -0
  197. package/dist/toolkits/hugging-face/tools/repos.js +201 -0
  198. package/dist/toolkits/hugging-face/tools/settings.d.ts +53 -0
  199. package/dist/toolkits/hugging-face/tools/settings.js +88 -0
  200. package/dist/toolkits/hugging-face/tools/spaces.d.ts +245 -0
  201. package/dist/toolkits/hugging-face/tools/spaces.js +468 -0
  202. package/dist/toolkits/hugging-face/tools/sql.d.ts +21 -0
  203. package/dist/toolkits/hugging-face/tools/sql.js +47 -0
  204. package/dist/toolkits/hugging-face/tools/users.d.ts +60 -0
  205. package/dist/toolkits/hugging-face/tools/users.js +132 -0
  206. package/dist/toolkits/hugging-face/tools/webhooks.d.ts +35 -0
  207. package/dist/toolkits/hugging-face/tools/webhooks.js +87 -0
  208. package/dist/toolkits/jira/icon.d.ts +5 -0
  209. package/dist/toolkits/jira/icon.js +6 -0
  210. package/dist/toolkits/jira/manifest.d.ts +3 -0
  211. package/dist/toolkits/jira/manifest.js +53 -0
  212. package/dist/toolkits/jira/tools/boards.d.ts +52 -0
  213. package/dist/toolkits/jira/tools/boards.js +104 -0
  214. package/dist/toolkits/jira/tools/client.d.ts +23 -0
  215. package/dist/toolkits/jira/tools/client.js +270 -0
  216. package/dist/toolkits/jira/tools/index.d.ts +1280 -0
  217. package/dist/toolkits/jira/tools/index.js +119 -0
  218. package/dist/toolkits/jira/tools/issue-fields.d.ts +10 -0
  219. package/dist/toolkits/jira/tools/issue-fields.js +111 -0
  220. package/dist/toolkits/jira/tools/issues.d.ts +304 -0
  221. package/dist/toolkits/jira/tools/issues.js +593 -0
  222. package/dist/toolkits/jira/tools/meta.d.ts +212 -0
  223. package/dist/toolkits/jira/tools/meta.js +369 -0
  224. package/dist/toolkits/jira/tools/projects.d.ts +130 -0
  225. package/dist/toolkits/jira/tools/projects.js +263 -0
  226. package/dist/toolkits/jira/tools/search.d.ts +90 -0
  227. package/dist/toolkits/jira/tools/search.js +181 -0
  228. package/dist/toolkits/jira/tools/users.d.ts +114 -0
  229. package/dist/toolkits/jira/tools/users.js +221 -0
  230. package/dist/toolkits/neo4j/icon.d.ts +5 -0
  231. package/dist/toolkits/neo4j/icon.js +6 -0
  232. package/dist/toolkits/neo4j/manifest.d.ts +3 -0
  233. package/dist/toolkits/neo4j/manifest.js +33 -0
  234. package/dist/toolkits/neo4j/tools/analytics.d.ts +21 -0
  235. package/dist/toolkits/neo4j/tools/analytics.js +91 -0
  236. package/dist/toolkits/neo4j/tools/client.d.ts +6 -0
  237. package/dist/toolkits/neo4j/tools/client.js +105 -0
  238. package/dist/toolkits/neo4j/tools/index.d.ts +198 -0
  239. package/dist/toolkits/neo4j/tools/index.js +30 -0
  240. package/dist/toolkits/neo4j/tools/instances.d.ts +47 -0
  241. package/dist/toolkits/neo4j/tools/instances.js +127 -0
  242. package/dist/toolkits/neo4j/tools/projects.d.ts +44 -0
  243. package/dist/toolkits/neo4j/tools/projects.js +110 -0
  244. package/dist/toolkits/neo4j/tools/snapshots.d.ts +20 -0
  245. package/dist/toolkits/neo4j/tools/snapshots.js +57 -0
  246. package/dist/toolkits/neon/icon.d.ts +5 -0
  247. package/dist/toolkits/neon/icon.js +8 -0
  248. package/dist/toolkits/neon/manifest.d.ts +3 -0
  249. package/dist/toolkits/neon/manifest.js +36 -0
  250. package/dist/toolkits/neon/tools/auth.d.ts +115 -0
  251. package/dist/toolkits/neon/tools/auth.js +286 -0
  252. package/dist/toolkits/neon/tools/branches.d.ts +189 -0
  253. package/dist/toolkits/neon/tools/branches.js +465 -0
  254. package/dist/toolkits/neon/tools/client.d.ts +10 -0
  255. package/dist/toolkits/neon/tools/client.js +69 -0
  256. package/dist/toolkits/neon/tools/dataapi.d.ts +42 -0
  257. package/dist/toolkits/neon/tools/dataapi.js +111 -0
  258. package/dist/toolkits/neon/tools/endpoints.d.ts +59 -0
  259. package/dist/toolkits/neon/tools/endpoints.js +163 -0
  260. package/dist/toolkits/neon/tools/index.d.ts +976 -0
  261. package/dist/toolkits/neon/tools/index.js +130 -0
  262. package/dist/toolkits/neon/tools/meta.d.ts +4 -0
  263. package/dist/toolkits/neon/tools/meta.js +16 -0
  264. package/dist/toolkits/neon/tools/orgs.d.ts +112 -0
  265. package/dist/toolkits/neon/tools/orgs.js +303 -0
  266. package/dist/toolkits/neon/tools/projects.d.ts +177 -0
  267. package/dist/toolkits/neon/tools/projects.js +468 -0
  268. package/dist/toolkits/neon/tools/snapshots.d.ts +24 -0
  269. package/dist/toolkits/neon/tools/snapshots.js +67 -0
  270. package/dist/toolkits/reddit/tools/index.d.ts +1 -1
  271. package/dist/toolkits/reddit/tools/search-across-subreddits.d.ts +1 -1
  272. package/dist/toolkits/slack/icon.d.ts +5 -0
  273. package/dist/toolkits/slack/icon.js +20 -0
  274. package/dist/toolkits/slack/manifest.d.ts +3 -0
  275. package/dist/toolkits/slack/manifest.js +93 -0
  276. package/dist/toolkits/slack/tools/admin-apps.d.ts +32 -0
  277. package/dist/toolkits/slack/tools/admin-apps.js +116 -0
  278. package/dist/toolkits/slack/tools/admin-conversations.d.ts +62 -0
  279. package/dist/toolkits/slack/tools/admin-conversations.js +246 -0
  280. package/dist/toolkits/slack/tools/admin-invites.d.ts +19 -0
  281. package/dist/toolkits/slack/tools/admin-invites.js +75 -0
  282. package/dist/toolkits/slack/tools/admin-users.d.ts +52 -0
  283. package/dist/toolkits/slack/tools/admin-users.js +182 -0
  284. package/dist/toolkits/slack/tools/audit.d.ts +20 -0
  285. package/dist/toolkits/slack/tools/audit.js +81 -0
  286. package/dist/toolkits/slack/tools/calls.d.ts +38 -0
  287. package/dist/toolkits/slack/tools/calls.js +141 -0
  288. package/dist/toolkits/slack/tools/canvas.d.ts +24 -0
  289. package/dist/toolkits/slack/tools/canvas.js +102 -0
  290. package/dist/toolkits/slack/tools/client.d.ts +22 -0
  291. package/dist/toolkits/slack/tools/client.js +73 -0
  292. package/dist/toolkits/slack/tools/conversations.d.ts +131 -0
  293. package/dist/toolkits/slack/tools/conversations.js +463 -0
  294. package/dist/toolkits/slack/tools/emoji.d.ts +29 -0
  295. package/dist/toolkits/slack/tools/emoji.js +118 -0
  296. package/dist/toolkits/slack/tools/files.d.ts +113 -0
  297. package/dist/toolkits/slack/tools/files.js +368 -0
  298. package/dist/toolkits/slack/tools/index.d.ts +28 -0
  299. package/dist/toolkits/slack/tools/index.js +187 -0
  300. package/dist/toolkits/slack/tools/messages.d.ts +106 -0
  301. package/dist/toolkits/slack/tools/messages.js +340 -0
  302. package/dist/toolkits/slack/tools/misc.d.ts +42 -0
  303. package/dist/toolkits/slack/tools/misc.js +127 -0
  304. package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +69 -0
  305. package/dist/toolkits/slack/tools/reactions-stars-pins.js +236 -0
  306. package/dist/toolkits/slack/tools/reminders.d.ts +22 -0
  307. package/dist/toolkits/slack/tools/reminders.js +83 -0
  308. package/dist/toolkits/slack/tools/search.d.ts +49 -0
  309. package/dist/toolkits/slack/tools/search.js +155 -0
  310. package/dist/toolkits/slack/tools/slack-lists.d.ts +65 -0
  311. package/dist/toolkits/slack/tools/slack-lists.js +282 -0
  312. package/dist/toolkits/slack/tools/teams.d.ts +75 -0
  313. package/dist/toolkits/slack/tools/teams.js +285 -0
  314. package/dist/toolkits/slack/tools/usergroups.d.ts +56 -0
  315. package/dist/toolkits/slack/tools/usergroups.js +194 -0
  316. package/dist/toolkits/slack/tools/users.d.ts +87 -0
  317. package/dist/toolkits/slack/tools/users.js +396 -0
  318. package/dist/toolkits/youtube/tools/add-video-to-playlist.d.ts +1 -1
  319. package/dist/toolkits/youtube/tools/delete-video.d.ts +1 -1
  320. package/dist/toolkits/youtube/tools/index.d.ts +10 -10
  321. package/dist/toolkits/youtube/tools/list-caption-track.d.ts +1 -1
  322. package/dist/toolkits/youtube/tools/list-playlist-items.d.ts +1 -1
  323. package/dist/toolkits/youtube/tools/list-video-categories.d.ts +1 -1
  324. package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
  325. package/dist/toolkits/youtube/tools/report-video-abuse.d.ts +1 -1
  326. package/dist/toolkits/youtube/tools/search-youtube.d.ts +1 -1
  327. package/dist/toolkits/youtube/tools/update-thumbnail.d.ts +1 -1
  328. package/dist/toolkits/youtube/tools/update-video.d.ts +1 -1
  329. package/package.json +1 -1
@@ -0,0 +1,444 @@
1
+ // @ts-nocheck
2
+ import { tool } from 'ai';
3
+ import { z } from 'zod';
4
+ import { bbRequest, toBbError, requireToken, enc, encPath } from './client.js';
5
+ export const bitbucketGetCommit = tool({
6
+ description: "Tool to retrieve detailed information about a specific commit in a Bitbucket repository. Use when you need to get complete commit details including author, message, date, parents, and related links.",
7
+ inputSchema: z.object({
8
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
9
+ commit: z.string().describe("The commit hash (SHA) to retrieve."),
10
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
11
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
12
+ }),
13
+ execute: async ({ bitbucketToken, workspace, repoSlug, commit }) => {
14
+ const missing = requireToken(bitbucketToken);
15
+ if (missing)
16
+ return missing;
17
+ try {
18
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commit/${encPath(commit)}`);
19
+ }
20
+ catch (error) {
21
+ return toBbError(error, "Failed to get commit");
22
+ }
23
+ },
24
+ });
25
+ export const bitbucketListCommits = tool({
26
+ description: "Tool to retrieve a page of commits from a Bitbucket repository. Returns commits in reverse chronological order (newest first), similar to git log. Use when you need to browse commit history, filter commits by branch/tag, or restrict to commits affecting a specific path.",
27
+ inputSchema: z.object({
28
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
29
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
30
+ path: z.string().optional().describe("Filter commits to only those that affect the specified file or directory path."),
31
+ exclude: z.string().optional().describe("Branch or tag name, or commit SHA to exclude from the commit history. Commits reachable from this ref will be excluded. Multiple values can be separated by commas."),
32
+ include: z.string().optional().describe("Branch or tag name, or commit SHA to include in the commit history. If not specified, the repository's default branch is used. Multiple values can be separated by commas (e.g., 'main,develop')."),
33
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of commits per page (1-100). Bitbucket default is typically 30 if not specified."),
34
+ repoSlug: z.string().describe("The slug or UUID of the repository. This is usually the repository's name in URL-friendly format."),
35
+ workspace: z.string().describe("The workspace ID or slug that owns the repository. This can typically be found in the URL of your Bitbucket workspace."),
36
+ }),
37
+ execute: async ({ bitbucketToken, workspace, repoSlug, page, path, exclude, include, pagelen }) => {
38
+ const missing = requireToken(bitbucketToken);
39
+ if (missing)
40
+ return missing;
41
+ try {
42
+ const query = {};
43
+ if (include !== undefined)
44
+ query["include"] = include;
45
+ if (exclude !== undefined)
46
+ query["exclude"] = exclude;
47
+ if (path !== undefined)
48
+ query["path"] = path;
49
+ if (page !== undefined)
50
+ query["page"] = page;
51
+ if (pagelen !== undefined)
52
+ query["pagelen"] = pagelen;
53
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commits`, { query });
54
+ }
55
+ catch (error) {
56
+ return toBbError(error, "Failed to list commits");
57
+ }
58
+ },
59
+ });
60
+ export const bitbucketListCommitsFromRevision = tool({
61
+ description: "Tool to list commits starting from a specific revision in a Bitbucket repository. Commits are paginated and returned in reverse chronological order. Use when you need to retrieve commit history from a specific commit, branch, or tag.",
62
+ inputSchema: z.object({
63
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
64
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
65
+ path: z.string().optional().describe("Optional file path to filter commits. Only commits that modified this file or directory will be returned."),
66
+ exclude: z.string().optional().describe("Optional commit hash or branch to exclude from the results. Can be used to create a range with the 'include' parameter."),
67
+ include: z.string().optional().describe("Optional commit hash or branch to include in the results. Can be used to create a range with the 'exclude' parameter."),
68
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of commits per page (1-100). Bitbucket default is typically 30 if not specified."),
69
+ revision: z.string().describe("The commit hash, branch name, tag, or other revision identifier to start listing commits from. Commits are returned in reverse chronological order starting from this revision."),
70
+ repoSlug: z.string().describe("The slug of the repository. This is the repository's name, usually in lowercase and with hyphens instead of spaces."),
71
+ workspace: z.string().describe("The workspace ID (slug) or UUID of the Bitbucket workspace that owns the repository. This can be the workspace name or its universally unique identifier."),
72
+ }),
73
+ execute: async ({ bitbucketToken, workspace, repoSlug, revision, page, path, exclude, include, pagelen }) => {
74
+ const missing = requireToken(bitbucketToken);
75
+ if (missing)
76
+ return missing;
77
+ try {
78
+ const query = {};
79
+ if (include !== undefined)
80
+ query["include"] = include;
81
+ if (exclude !== undefined)
82
+ query["exclude"] = exclude;
83
+ if (path !== undefined)
84
+ query["path"] = path;
85
+ if (page !== undefined)
86
+ query["page"] = page;
87
+ if (pagelen !== undefined)
88
+ query["pagelen"] = pagelen;
89
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commits/${enc(revision)}`, { query });
90
+ }
91
+ catch (error) {
92
+ return toBbError(error, "Failed to list commits from revision");
93
+ }
94
+ },
95
+ });
96
+ export const bitbucketListCommitsOnMaster = tool({
97
+ description: "Lists commits on the master branch of a Bitbucket repository. Use when you need to retrieve the commit history for the master branch, including commit messages, authors, dates, and parent relationships.",
98
+ inputSchema: z.object({
99
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
100
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
101
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of commits per page (1-100). Bitbucket default is typically 30 if not specified."),
102
+ repoSlug: z.string().describe("The slug or UUID of the repository. This is usually the repository's name in URL-friendly format."),
103
+ workspace: z.string().describe("The workspace ID or slug that owns the repository. This can typically be found in the URL of your Bitbucket workspace."),
104
+ }),
105
+ execute: async ({ bitbucketToken, workspace, repoSlug, page, pagelen }) => {
106
+ const missing = requireToken(bitbucketToken);
107
+ if (missing)
108
+ return missing;
109
+ try {
110
+ const query = {};
111
+ if (page !== undefined)
112
+ query["page"] = page;
113
+ if (pagelen !== undefined)
114
+ query["pagelen"] = pagelen;
115
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commits/master`, { query });
116
+ }
117
+ catch (error) {
118
+ return toBbError(error, "Failed to list commits on master");
119
+ }
120
+ },
121
+ });
122
+ export const bitbucketListCommitsFromRevisionPost = tool({
123
+ description: "Tool to list commits from a revision using POST method. Identical to GET endpoint but allows sending include/exclude parameters in request body to avoid URL length limits. Use when include/exclude parameters are too long for query strings.",
124
+ inputSchema: z.object({
125
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
126
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
127
+ path: z.string().optional().describe("Optional file path to filter commits. Only commits that modified this file or directory will be returned."),
128
+ exclude: z.string().optional().describe("Optional commit hash or branch to exclude from the results. Can be used to create a range with the 'include' parameter. Use POST method when this value is very long."),
129
+ include: z.string().optional().describe("Optional commit hash or branch to include in the results. Can be used to create a range with the 'exclude' parameter. Use POST method when this value is very long."),
130
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of commits per page (1-100). Bitbucket default is typically 30 if not specified."),
131
+ revision: z.string().describe("The commit hash, branch name, tag, or other revision identifier to start listing commits from. Commits are returned in reverse chronological order starting from this revision."),
132
+ repoSlug: z.string().describe("The slug of the repository. This is the repository's name, usually in lowercase and with hyphens instead of spaces."),
133
+ workspace: z.string().describe("The workspace ID (slug) or UUID of the Bitbucket workspace that owns the repository. This can be the workspace name or its universally unique identifier."),
134
+ }),
135
+ execute: async ({ bitbucketToken, workspace, repoSlug, revision, page, path, exclude, include, pagelen }) => {
136
+ const missing = requireToken(bitbucketToken);
137
+ if (missing)
138
+ return missing;
139
+ try {
140
+ const body = {};
141
+ if (include !== undefined)
142
+ body.include = include;
143
+ if (exclude !== undefined)
144
+ body.exclude = exclude;
145
+ const query = {};
146
+ if (page !== undefined)
147
+ query["page"] = page;
148
+ if (pagelen !== undefined)
149
+ query["pagelen"] = pagelen;
150
+ if (path !== undefined)
151
+ query["path"] = path;
152
+ return await bbRequest(bitbucketToken, 'POST', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commits/${enc(revision)}`, { query, body });
153
+ }
154
+ catch (error) {
155
+ return toBbError(error, "Failed to list commits from revision post");
156
+ }
157
+ },
158
+ });
159
+ export const bitbucketListCommitComments = tool({
160
+ description: "Retrieves all comments on a specific commit in a Bitbucket repository. Returns both global and inline code comments. Use when you need to view feedback, discussions, or notes left on a specific commit.",
161
+ inputSchema: z.object({
162
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
163
+ page: z.number().int().min(1).optional().describe("Page number for pagination. Defaults to 1 if not specified."),
164
+ commit: z.string().describe("The commit hash/SHA to retrieve comments for."),
165
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of items per page for pagination. Defaults to 10 if not specified."),
166
+ repoSlug: z.string().describe("The slug (URL-friendly version) of the repository name."),
167
+ workspace: z.string().describe("The ID or slug of the workspace that owns the repository."),
168
+ }),
169
+ execute: async ({ bitbucketToken, workspace, repoSlug, commit, page, pagelen }) => {
170
+ const missing = requireToken(bitbucketToken);
171
+ if (missing)
172
+ return missing;
173
+ try {
174
+ const query = {};
175
+ if (page !== undefined)
176
+ query["page"] = page;
177
+ if (pagelen !== undefined)
178
+ query["pagelen"] = pagelen;
179
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commit/${encPath(commit)}/comments`, { query });
180
+ }
181
+ catch (error) {
182
+ return toBbError(error, "Failed to list commit comments");
183
+ }
184
+ },
185
+ });
186
+ export const bitbucketGetCommitComment = tool({
187
+ description: "Retrieves a specific comment from a commit by its ID. Use when you need to fetch details of a particular commit comment including content, author, timestamps, and inline location.",
188
+ inputSchema: z.object({
189
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
190
+ commit: z.string().describe("The commit hash to retrieve the comment from."),
191
+ repoSlug: z.string().describe("The repository slug (URL-friendly name)."),
192
+ workspace: z.string().describe("The workspace slug or UUID that owns the repository."),
193
+ commentId: z.number().int().positive().describe("The unique identifier for the comment."),
194
+ }),
195
+ execute: async ({ bitbucketToken, workspace, repoSlug, commit, commentId }) => {
196
+ const missing = requireToken(bitbucketToken);
197
+ if (missing)
198
+ return missing;
199
+ try {
200
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commit/${encPath(commit)}/comments/${enc(commentId)}`);
201
+ }
202
+ catch (error) {
203
+ return toBbError(error, "Failed to get commit comment");
204
+ }
205
+ },
206
+ });
207
+ export const bitbucketUpdateCommitComment = tool({
208
+ description: "Updates the contents of a comment on a commit. Use when you need to modify an existing comment's text on a commit.",
209
+ inputSchema: z.object({
210
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
211
+ commit: z.string().describe("The commit hash to update the comment on."),
212
+ repoSlug: z.string().describe("The repository slug (URL-friendly name)."),
213
+ workspace: z.string().describe("The workspace slug or UUID that owns the repository."),
214
+ commentId: z.string().describe("The unique identifier for the comment to update."),
215
+ contentRaw: z.string().describe("The updated raw text content for the comment. Supports markdown formatting."),
216
+ }),
217
+ execute: async ({ bitbucketToken, workspace, repoSlug, commit, commentId, contentRaw }) => {
218
+ const missing = requireToken(bitbucketToken);
219
+ if (missing)
220
+ return missing;
221
+ try {
222
+ const body = { content: { raw: contentRaw } };
223
+ return await bbRequest(bitbucketToken, 'PUT', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commit/${encPath(commit)}/comments/${enc(commentId)}`, { body });
224
+ }
225
+ catch (error) {
226
+ return toBbError(error, "Failed to update commit comment");
227
+ }
228
+ },
229
+ });
230
+ export const bitbucketDeleteCommitComment = tool({
231
+ description: "Permanently deletes a specific comment on a commit. Use when removing outdated, incorrect, or unwanted feedback on a commit.",
232
+ inputSchema: z.object({
233
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
234
+ commit: z.string().describe("The commit hash (SHA) or commit reference. This identifies the commit that has the comment to be deleted."),
235
+ repoSlug: z.string().describe("The slug of the repository. This is the repository's name, usually in lowercase and with hyphens instead of spaces."),
236
+ workspace: z.string().describe("The workspace ID (slug) or UUID of the Bitbucket workspace that owns the repository. This can be the workspace name or its universally unique identifier."),
237
+ commentId: z.string().describe("The unique identifier of the comment to be deleted from the specified commit."),
238
+ }),
239
+ execute: async ({ bitbucketToken, workspace, repoSlug, commit, commentId }) => {
240
+ const missing = requireToken(bitbucketToken);
241
+ if (missing)
242
+ return missing;
243
+ try {
244
+ return await bbRequest(bitbucketToken, 'DELETE', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commit/${encPath(commit)}/comments/${enc(commentId)}`);
245
+ }
246
+ catch (error) {
247
+ return toBbError(error, "Failed to delete commit comment");
248
+ }
249
+ },
250
+ });
251
+ export const bitbucketGetCommitDiff = tool({
252
+ description: "Tool to retrieve the unified diff between two provided revisions or for a single commit in a Bitbucket repository. Use when you need to see the actual code changes in a commit or between two commits. Supports filtering by file path and various diff options.",
253
+ inputSchema: z.object({
254
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
255
+ path: z.string().optional().describe("Optional file path to filter the diff to a specific file or directory. If omitted, returns diff for all changes."),
256
+ spec: z.string().describe("A commit SHA, branch name, tag, or revspec (e.g. '3a8b42..9ff173' for range). For a single commit, provide the commit hash. For comparing two commits, use 'commit1..commit2' format."),
257
+ merge: z.boolean().optional().describe("Whether to generate merge diff. Set to true for merge commit diffs."),
258
+ topic: z.boolean().optional().describe("Whether to generate a 2-way three-dot diff when spec contains two commits. Set to true to use three-dot diff notation."),
259
+ binary: z.boolean().optional().describe("Whether to include binary file diffs. Set to true to include binary diffs in the output."),
260
+ context: z.number().int().min(0).optional().describe("Number of context lines to include around changes. If not specified, uses the default context lines."),
261
+ renames: z.boolean().optional().describe("Whether to detect file renames. Set to true to show rename detection in the diff."),
262
+ repoSlug: z.string().describe("The repository slug (URL-friendly name)."),
263
+ workspace: z.string().describe("The workspace ID or username that owns the repository."),
264
+ ignoreWhitespace: z.boolean().optional().describe("Whether to ignore whitespace changes in the diff. Set to true to exclude whitespace-only changes."),
265
+ }),
266
+ execute: async ({ bitbucketToken, workspace, repoSlug, spec, path, merge, topic, binary, context, renames, ignoreWhitespace }) => {
267
+ const missing = requireToken(bitbucketToken);
268
+ if (missing)
269
+ return missing;
270
+ try {
271
+ const query = {};
272
+ if (path !== undefined)
273
+ query["path"] = path;
274
+ if (merge !== undefined)
275
+ query["merge"] = merge;
276
+ if (topic !== undefined)
277
+ query["topic"] = topic;
278
+ if (binary !== undefined)
279
+ query["binary"] = binary;
280
+ if (context !== undefined)
281
+ query["context"] = context;
282
+ if (renames !== undefined)
283
+ query["renames"] = renames;
284
+ if (ignoreWhitespace !== undefined)
285
+ query["ignore_whitespace"] = ignoreWhitespace;
286
+ const data = await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/diff/${encPath(spec)}`, { query, accept: 'text/plain' });
287
+ return { diff: data };
288
+ }
289
+ catch (error) {
290
+ return toBbError(error, "Failed to get commit diff");
291
+ }
292
+ },
293
+ });
294
+ export const bitbucketGetCommitChanges = tool({
295
+ description: "Tool to retrieve a page of changes made in a specified commit, showing all changed files with their change statistics (lines added/removed, status). Use when you need to enumerate files modified in a specific commit or commit range.",
296
+ inputSchema: z.object({
297
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
298
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
299
+ spec: z.string().describe("Commit SHA or range (e.g., '3a8b42' for single commit or '3a8b42..9ff173' for range)."),
300
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of changes per page (1-100). Bitbucket default is 500 if not specified."),
301
+ repoSlug: z.string().describe("Repository slug (URL-friendly name)."),
302
+ workspace: z.string().describe("Workspace ID or slug (URL-friendly name)."),
303
+ }),
304
+ execute: async ({ bitbucketToken, workspace, repoSlug, spec, page, pagelen }) => {
305
+ const missing = requireToken(bitbucketToken);
306
+ if (missing)
307
+ return missing;
308
+ try {
309
+ const query = {};
310
+ if (page !== undefined)
311
+ query["page"] = page;
312
+ if (pagelen !== undefined)
313
+ query["pagelen"] = pagelen;
314
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/diffstat/${encPath(spec)}`, { query });
315
+ }
316
+ catch (error) {
317
+ return toBbError(error, "Failed to get commit changes");
318
+ }
319
+ },
320
+ });
321
+ export const bitbucketGetCommitBuildStatus = tool({
322
+ description: "Get a specific build status for a commit in Bitbucket. Use when you need to check the status of a particular build/CI run for a commit.",
323
+ inputSchema: z.object({
324
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
325
+ key: z.string().describe("The unique key identifying the specific build status."),
326
+ commit: z.string().describe("The commit hash to get the build status for."),
327
+ repoSlug: z.string().describe("The slug or UUID of the repository."),
328
+ workspace: z.string().describe("The workspace ID or slug that owns the repository."),
329
+ }),
330
+ execute: async ({ bitbucketToken, workspace, repoSlug, commit, key }) => {
331
+ const missing = requireToken(bitbucketToken);
332
+ if (missing)
333
+ return missing;
334
+ try {
335
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commit/${encPath(commit)}/statuses/build/${enc(key)}`);
336
+ }
337
+ catch (error) {
338
+ return toBbError(error, "Failed to get commit build status");
339
+ }
340
+ },
341
+ });
342
+ export const bitbucketListCommitStatuses = tool({
343
+ description: "Returns all build statuses (e.g., CI/CD pipeline results) for a specific commit. Use when you need to check build status, verify test results, or monitor deployment pipelines for a particular commit.",
344
+ inputSchema: z.object({
345
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
346
+ commit: z.string().describe("The commit hash (SHA) to retrieve statuses for. Can be full or abbreviated hash."),
347
+ repoSlug: z.string().describe("The slug or UUID of the repository. This is usually the repository's name in URL-friendly format."),
348
+ workspace: z.string().describe("The workspace ID or slug that owns the repository. This can typically be found in the URL of your Bitbucket workspace."),
349
+ }),
350
+ execute: async ({ bitbucketToken, workspace, repoSlug, commit }) => {
351
+ const missing = requireToken(bitbucketToken);
352
+ if (missing)
353
+ return missing;
354
+ try {
355
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/commit/${encPath(commit)}/statuses`);
356
+ }
357
+ catch (error) {
358
+ return toBbError(error, "Failed to list commit statuses");
359
+ }
360
+ },
361
+ });
362
+ export const bitbucketGetFileHistory = tool({
363
+ description: "Returns a paginated list of commits that modified the specified file. Use when you need to track file changes over time, find who modified a file, or determine when a file was created or last changed.",
364
+ inputSchema: z.object({
365
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
366
+ q: z.string().optional().describe("Query string for filtering commits in the file history. Common use: filter by commit date using 'commit.date<=YYYY-MM-DD' or 'commit.date>=YYYY-MM-DD'. Example: 'commit.date<=2024-12-31' returns only commits before that date."),
367
+ page: z.number().int().min(1).optional().describe("Page number for paginated results (starts from 1)."),
368
+ path: z.string().describe("Full path to the file within the repository (e.g., 'README.md', 'src/main.py')."),
369
+ commit: z.string().describe("Commit hash, branch name, or tag from which to retrieve file history. The API returns commits reachable from this reference that modified the file."),
370
+ fields: z.string().optional().describe("Comma-separated list of fields to include or exclude from the response. Prefix with '+' to add fields or '-' to remove them. Example: '+values.commit.message' adds commit messages to the response."),
371
+ pagelen: z.number().int().min(1).max(100).optional().describe("Number of commits per page (1-100). Default is typically 30 if not specified."),
372
+ renames: z.boolean().optional().describe("Whether to follow file renames through history. If true (default), returns commits that modified the file even if it had a different name. If false, only returns commits where the file had the current path."),
373
+ repoSlug: z.string().describe("The repository slug (URL-friendly name) or UUID."),
374
+ workspace: z.string().describe("The workspace slug or UUID that owns the repository."),
375
+ }),
376
+ execute: async ({ bitbucketToken, workspace, repoSlug, commit, path, q, page, fields, pagelen, renames }) => {
377
+ const missing = requireToken(bitbucketToken);
378
+ if (missing)
379
+ return missing;
380
+ try {
381
+ const query = {};
382
+ if (q !== undefined)
383
+ query["q"] = q;
384
+ if (page !== undefined)
385
+ query["page"] = page;
386
+ if (pagelen !== undefined)
387
+ query["pagelen"] = pagelen;
388
+ if (fields !== undefined)
389
+ query["fields"] = fields;
390
+ if (renames !== undefined)
391
+ query["renames"] = renames;
392
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/filehistory/${encPath(commit)}/${encPath(path)}`, { query });
393
+ }
394
+ catch (error) {
395
+ return toBbError(error, "Failed to get file history");
396
+ }
397
+ },
398
+ });
399
+ export const bitbucketGetMergeBase = tool({
400
+ description: "Get the merge base (best common ancestor) between two commits in a Bitbucket repository. Use when you need to find the common ancestor commit between two branches or commits for comparison or merge operations.",
401
+ inputSchema: z.object({
402
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
403
+ revspec: z.string().describe("Two commit hashes separated by '..' (e.g., '3a8b42..9ff173' or 'abc123..def456'). This specifies the two commits to find the best common ancestor between."),
404
+ repoSlug: z.string().describe("The slug or UUID of the repository."),
405
+ workspace: z.string().describe("The workspace ID or slug that owns the repository."),
406
+ }),
407
+ execute: async ({ bitbucketToken, workspace, repoSlug, revspec }) => {
408
+ const missing = requireToken(bitbucketToken);
409
+ if (missing)
410
+ return missing;
411
+ try {
412
+ return await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/merge-base/${encPath(revspec)}`);
413
+ }
414
+ catch (error) {
415
+ return toBbError(error, "Failed to get merge base");
416
+ }
417
+ },
418
+ });
419
+ export const bitbucketGetRepositoryPatch = tool({
420
+ description: "Tool to retrieve the git patch content for a Bitbucket repository at a specified revision or commit range. Use when you need to review code changes, generate diffs, or analyze modifications between commits. Returns raw patch in unified diff format.",
421
+ inputSchema: z.object({
422
+ bitbucketToken: z.string().optional().describe("Injected by system; do not provide"),
423
+ spec: z.string().describe("A commit hash, branch name, tag, or commit range (e.g., '3a8b42..9ff173'). If a single commit is provided, the diff is against its first parent. For ranges, shows diff between the two commits."),
424
+ maxChars: z.number().int().positive().optional().describe("Maximum number of characters to return in the patch. If the patch exceeds this limit, it will be truncated. If None, no truncation is applied. Use this to protect against very large patches."),
425
+ repoSlug: z.string().describe("The slug or UUID of the repository. This is usually the repository's name in URL-friendly format."),
426
+ workspace: z.string().describe("The workspace ID or slug that owns the repository. This can typically be found in the URL of your Bitbucket workspace."),
427
+ }),
428
+ execute: async ({ bitbucketToken, workspace, repoSlug, spec, maxChars }) => {
429
+ const missing = requireToken(bitbucketToken);
430
+ if (missing)
431
+ return missing;
432
+ try {
433
+ const data = await bbRequest(bitbucketToken, 'GET', `/repositories/${enc(workspace)}/${enc(repoSlug)}/patch/${encPath(spec)}`, { accept: 'text/plain' });
434
+ if (typeof maxChars === 'number' && data.length > maxChars) {
435
+ return { diff: data.slice(0, maxChars), truncated: true, original_size: data.length };
436
+ }
437
+ return { diff: data, truncated: false };
438
+ }
439
+ catch (error) {
440
+ return toBbError(error, "Failed to get repository patch");
441
+ }
442
+ },
443
+ });
444
+ //# sourceMappingURL=commits.js.map