@rnsk/toolkits 0.0.8 → 0.0.9
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.
- package/README.md +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +17 -1
- package/dist/toolkits/bitbucket/icon.d.ts +5 -0
- package/dist/toolkits/bitbucket/icon.js +6 -0
- package/dist/toolkits/bitbucket/manifest.d.ts +3 -0
- package/dist/toolkits/bitbucket/manifest.js +56 -0
- package/dist/toolkits/bitbucket/tools/client.d.ts +38 -0
- package/dist/toolkits/bitbucket/tools/client.js +87 -0
- package/dist/toolkits/bitbucket/tools/commits.d.ts +149 -0
- package/dist/toolkits/bitbucket/tools/commits.js +444 -0
- package/dist/toolkits/bitbucket/tools/index.d.ts +1093 -0
- package/dist/toolkits/bitbucket/tools/index.js +770 -0
- package/dist/toolkits/bitbucket/tools/issues.d.ts +73 -0
- package/dist/toolkits/bitbucket/tools/issues.js +234 -0
- package/dist/toolkits/bitbucket/tools/pipelines.d.ts +124 -0
- package/dist/toolkits/bitbucket/tools/pipelines.js +446 -0
- package/dist/toolkits/bitbucket/tools/pull-requests.d.ts +174 -0
- package/dist/toolkits/bitbucket/tools/pull-requests.js +541 -0
- package/dist/toolkits/bitbucket/tools/reports.d.ts +84 -0
- package/dist/toolkits/bitbucket/tools/reports.js +213 -0
- package/dist/toolkits/bitbucket/tools/repositories.d.ts +156 -0
- package/dist/toolkits/bitbucket/tools/repositories.js +531 -0
- package/dist/toolkits/bitbucket/tools/search.d.ts +17 -0
- package/dist/toolkits/bitbucket/tools/search.js +67 -0
- package/dist/toolkits/bitbucket/tools/snippets.d.ts +34 -0
- package/dist/toolkits/bitbucket/tools/snippets.js +122 -0
- package/dist/toolkits/bitbucket/tools/users-workspaces.d.ts +65 -0
- package/dist/toolkits/bitbucket/tools/users-workspaces.js +294 -0
- package/dist/toolkits/discord/icon.d.ts +5 -0
- package/dist/toolkits/discord/icon.js +12 -0
- package/dist/toolkits/discord/manifest.d.ts +3 -0
- package/dist/toolkits/discord/manifest.js +52 -0
- package/dist/toolkits/discord/tools/applications.d.ts +79 -0
- package/dist/toolkits/discord/tools/applications.js +216 -0
- package/dist/toolkits/discord/tools/client.d.ts +22 -0
- package/dist/toolkits/discord/tools/client.js +69 -0
- package/dist/toolkits/discord/tools/guilds.d.ts +39 -0
- package/dist/toolkits/discord/tools/guilds.js +123 -0
- package/dist/toolkits/discord/tools/index.d.ts +222 -0
- package/dist/toolkits/discord/tools/index.js +170 -0
- package/dist/toolkits/discord/tools/misc.d.ts +7 -0
- package/dist/toolkits/discord/tools/misc.js +40 -0
- package/dist/toolkits/discord/tools/users.d.ts +28 -0
- package/dist/toolkits/discord/tools/users.js +128 -0
- package/dist/toolkits/figma/tools/index.d.ts +1 -1
- package/dist/toolkits/figma/tools/render-images-of-file-nodes.d.ts +1 -1
- package/dist/toolkits/gitlab/icon.d.ts +5 -0
- package/dist/toolkits/gitlab/icon.js +6 -0
- package/dist/toolkits/gitlab/manifest.d.ts +3 -0
- package/dist/toolkits/gitlab/manifest.js +36 -0
- package/dist/toolkits/gitlab/tools/client.d.ts +7 -0
- package/dist/toolkits/gitlab/tools/client.js +45 -0
- package/dist/toolkits/gitlab/tools/index.d.ts +306 -0
- package/dist/toolkits/gitlab/tools/index.js +36 -0
- package/dist/toolkits/gitlab/tools/issues.d.ts +45 -0
- package/dist/toolkits/gitlab/tools/issues.js +103 -0
- package/dist/toolkits/gitlab/tools/merge-requests.d.ts +35 -0
- package/dist/toolkits/gitlab/tools/merge-requests.js +91 -0
- package/dist/toolkits/gitlab/tools/pipelines.d.ts +30 -0
- package/dist/toolkits/gitlab/tools/pipelines.js +66 -0
- package/dist/toolkits/gitlab/tools/projects.d.ts +36 -0
- package/dist/toolkits/gitlab/tools/projects.js +94 -0
- package/dist/toolkits/gitlab/tools/repository.d.ts +21 -0
- package/dist/toolkits/gitlab/tools/repository.js +53 -0
- package/dist/toolkits/gitlab/tools/users-groups.d.ts +11 -0
- package/dist/toolkits/gitlab/tools/users-groups.js +30 -0
- package/dist/toolkits/google-ads/tools/get-rmf-report.d.ts +2 -2
- package/dist/toolkits/google-ads/tools/index.d.ts +2 -2
- package/dist/toolkits/google-analytics/icon.d.ts +5 -0
- package/dist/toolkits/google-analytics/icon.js +11 -0
- package/dist/toolkits/google-analytics/manifest.d.ts +3 -0
- package/dist/toolkits/google-analytics/manifest.js +48 -0
- package/dist/toolkits/google-analytics/tools/admin.d.ts +73 -0
- package/dist/toolkits/google-analytics/tools/admin.js +238 -0
- package/dist/toolkits/google-analytics/tools/audiences.d.ts +81 -0
- package/dist/toolkits/google-analytics/tools/audiences.js +190 -0
- package/dist/toolkits/google-analytics/tools/client.d.ts +47 -0
- package/dist/toolkits/google-analytics/tools/client.js +74 -0
- package/dist/toolkits/google-analytics/tools/custom-definitions.d.ts +62 -0
- package/dist/toolkits/google-analytics/tools/custom-definitions.js +106 -0
- package/dist/toolkits/google-analytics/tools/index.d.ts +16 -0
- package/dist/toolkits/google-analytics/tools/index.js +88 -0
- package/dist/toolkits/google-analytics/tools/links.d.ts +22 -0
- package/dist/toolkits/google-analytics/tools/links.js +56 -0
- package/dist/toolkits/google-analytics/tools/measurement.d.ts +3 -0
- package/dist/toolkits/google-analytics/tools/measurement.js +55 -0
- package/dist/toolkits/google-analytics/tools/reports.d.ts +136 -0
- package/dist/toolkits/google-analytics/tools/reports.js +200 -0
- package/dist/toolkits/google-contacts/icon.d.ts +5 -0
- package/dist/toolkits/google-contacts/icon.js +6 -0
- package/dist/toolkits/google-contacts/manifest.d.ts +3 -0
- package/dist/toolkits/google-contacts/manifest.js +48 -0
- package/dist/toolkits/google-contacts/tools/client.d.ts +19 -0
- package/dist/toolkits/google-contacts/tools/client.js +44 -0
- package/dist/toolkits/google-contacts/tools/contacts.d.ts +94 -0
- package/dist/toolkits/google-contacts/tools/contacts.js +273 -0
- package/dist/toolkits/google-contacts/tools/directory.d.ts +36 -0
- package/dist/toolkits/google-contacts/tools/directory.js +99 -0
- package/dist/toolkits/google-contacts/tools/groups.d.ts +68 -0
- package/dist/toolkits/google-contacts/tools/groups.js +169 -0
- package/dist/toolkits/google-contacts/tools/index.d.ts +347 -0
- package/dist/toolkits/google-contacts/tools/index.js +34 -0
- package/dist/toolkits/google-contacts/tools/photos.d.ts +26 -0
- package/dist/toolkits/google-contacts/tools/photos.js +52 -0
- package/dist/toolkits/google-maps/icon.d.ts +5 -0
- package/dist/toolkits/google-maps/icon.js +39 -0
- package/dist/toolkits/google-maps/manifest.d.ts +3 -0
- package/dist/toolkits/google-maps/manifest.js +55 -0
- package/dist/toolkits/google-maps/tools/client.d.ts +27 -0
- package/dist/toolkits/google-maps/tools/client.js +72 -0
- package/dist/toolkits/google-maps/tools/geocode.d.ts +49 -0
- package/dist/toolkits/google-maps/tools/geocode.js +168 -0
- package/dist/toolkits/google-maps/tools/index.d.ts +432 -0
- package/dist/toolkits/google-maps/tools/index.js +31 -0
- package/dist/toolkits/google-maps/tools/misc.d.ts +70 -0
- package/dist/toolkits/google-maps/tools/misc.js +158 -0
- package/dist/toolkits/google-maps/tools/places.d.ts +112 -0
- package/dist/toolkits/google-maps/tools/places.js +185 -0
- package/dist/toolkits/google-maps/tools/routes.d.ts +48 -0
- package/dist/toolkits/google-maps/tools/routes.js +97 -0
- package/dist/toolkits/google-maps/tools/tiles.d.ts +51 -0
- package/dist/toolkits/google-maps/tools/tiles.js +84 -0
- package/dist/toolkits/google-photos/icon.d.ts +5 -0
- package/dist/toolkits/google-photos/icon.js +6 -0
- package/dist/toolkits/google-photos/manifest.d.ts +3 -0
- package/dist/toolkits/google-photos/manifest.js +47 -0
- package/dist/toolkits/google-photos/tools/albums.d.ts +83 -0
- package/dist/toolkits/google-photos/tools/albums.js +180 -0
- package/dist/toolkits/google-photos/tools/client.d.ts +24 -0
- package/dist/toolkits/google-photos/tools/client.js +77 -0
- package/dist/toolkits/google-photos/tools/index.d.ts +261 -0
- package/dist/toolkits/google-photos/tools/index.js +22 -0
- package/dist/toolkits/google-photos/tools/media.d.ts +52 -0
- package/dist/toolkits/google-photos/tools/media.js +142 -0
- package/dist/toolkits/google-photos/tools/uploads.d.ts +58 -0
- package/dist/toolkits/google-photos/tools/uploads.js +107 -0
- package/dist/toolkits/google-tasks/tools/index.d.ts +1 -1
- package/dist/toolkits/google-tasks/tools/update-task-full.d.ts +1 -1
- package/dist/toolkits/groww/tools/index.d.ts +1 -1
- package/dist/toolkits/groww/tools/instruments.d.ts +1 -1
- package/dist/toolkits/reddit/tools/index.d.ts +1 -1
- package/dist/toolkits/reddit/tools/search-across-subreddits.d.ts +1 -1
- package/dist/toolkits/slack/icon.d.ts +5 -0
- package/dist/toolkits/slack/icon.js +20 -0
- package/dist/toolkits/slack/manifest.d.ts +3 -0
- package/dist/toolkits/slack/manifest.js +93 -0
- package/dist/toolkits/slack/tools/admin-apps.d.ts +32 -0
- package/dist/toolkits/slack/tools/admin-apps.js +116 -0
- package/dist/toolkits/slack/tools/admin-conversations.d.ts +62 -0
- package/dist/toolkits/slack/tools/admin-conversations.js +246 -0
- package/dist/toolkits/slack/tools/admin-invites.d.ts +19 -0
- package/dist/toolkits/slack/tools/admin-invites.js +75 -0
- package/dist/toolkits/slack/tools/admin-users.d.ts +52 -0
- package/dist/toolkits/slack/tools/admin-users.js +182 -0
- package/dist/toolkits/slack/tools/audit.d.ts +20 -0
- package/dist/toolkits/slack/tools/audit.js +81 -0
- package/dist/toolkits/slack/tools/calls.d.ts +38 -0
- package/dist/toolkits/slack/tools/calls.js +141 -0
- package/dist/toolkits/slack/tools/canvas.d.ts +24 -0
- package/dist/toolkits/slack/tools/canvas.js +102 -0
- package/dist/toolkits/slack/tools/client.d.ts +22 -0
- package/dist/toolkits/slack/tools/client.js +73 -0
- package/dist/toolkits/slack/tools/conversations.d.ts +131 -0
- package/dist/toolkits/slack/tools/conversations.js +463 -0
- package/dist/toolkits/slack/tools/emoji.d.ts +29 -0
- package/dist/toolkits/slack/tools/emoji.js +118 -0
- package/dist/toolkits/slack/tools/files.d.ts +113 -0
- package/dist/toolkits/slack/tools/files.js +368 -0
- package/dist/toolkits/slack/tools/index.d.ts +28 -0
- package/dist/toolkits/slack/tools/index.js +187 -0
- package/dist/toolkits/slack/tools/messages.d.ts +106 -0
- package/dist/toolkits/slack/tools/messages.js +340 -0
- package/dist/toolkits/slack/tools/misc.d.ts +42 -0
- package/dist/toolkits/slack/tools/misc.js +127 -0
- package/dist/toolkits/slack/tools/reactions-stars-pins.d.ts +69 -0
- package/dist/toolkits/slack/tools/reactions-stars-pins.js +236 -0
- package/dist/toolkits/slack/tools/reminders.d.ts +22 -0
- package/dist/toolkits/slack/tools/reminders.js +83 -0
- package/dist/toolkits/slack/tools/search.d.ts +49 -0
- package/dist/toolkits/slack/tools/search.js +155 -0
- package/dist/toolkits/slack/tools/slack-lists.d.ts +65 -0
- package/dist/toolkits/slack/tools/slack-lists.js +282 -0
- package/dist/toolkits/slack/tools/teams.d.ts +75 -0
- package/dist/toolkits/slack/tools/teams.js +285 -0
- package/dist/toolkits/slack/tools/usergroups.d.ts +56 -0
- package/dist/toolkits/slack/tools/usergroups.js +194 -0
- package/dist/toolkits/slack/tools/users.d.ts +87 -0
- package/dist/toolkits/slack/tools/users.js +396 -0
- package/dist/toolkits/youtube/tools/add-video-to-playlist.d.ts +1 -1
- package/dist/toolkits/youtube/tools/delete-video.d.ts +1 -1
- package/dist/toolkits/youtube/tools/index.d.ts +10 -10
- package/dist/toolkits/youtube/tools/list-caption-track.d.ts +1 -1
- package/dist/toolkits/youtube/tools/list-playlist-items.d.ts +1 -1
- package/dist/toolkits/youtube/tools/list-video-categories.d.ts +1 -1
- package/dist/toolkits/youtube/tools/post-comment.d.ts +1 -1
- package/dist/toolkits/youtube/tools/report-video-abuse.d.ts +1 -1
- package/dist/toolkits/youtube/tools/search-youtube.d.ts +1 -1
- package/dist/toolkits/youtube/tools/update-thumbnail.d.ts +1 -1
- package/dist/toolkits/youtube/tools/update-video.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Manifest-driven toolkit registry for AI agents — connector definitions you pub
|
|
|
16
16
|
|
|
17
17
|
## Toolkits
|
|
18
18
|
|
|
19
|
-
**
|
|
19
|
+
**1064 tools** across **34 toolkits** (run `npm run validate` for live counts).
|
|
20
20
|
|
|
21
21
|
| Toolkit | Tools | Auth |
|
|
22
22
|
|---------|------:|------|
|
|
@@ -30,11 +30,15 @@ Manifest-driven toolkit registry for AI agents — connector definitions you pub
|
|
|
30
30
|
| google-sheets | 7 | OAuth2 |
|
|
31
31
|
| google-drive | 10 | OAuth2 |
|
|
32
32
|
| google-docs | 10 | OAuth2 |
|
|
33
|
+
| google-maps | 20 | OAuth2 |
|
|
34
|
+
| google-photos | 13 | OAuth2 |
|
|
35
|
+
| google-contacts | 24 | OAuth2 |
|
|
33
36
|
| google-forms | 10 | OAuth2 |
|
|
34
37
|
| google-meet | 15 | OAuth2 |
|
|
35
38
|
| google-slides | 8 | OAuth2 |
|
|
36
39
|
| google-classroom | 62 | OAuth2 |
|
|
37
40
|
| google-search-console | 9 | OAuth2 |
|
|
41
|
+
| google-analytics | 67 | OAuth2 |
|
|
38
42
|
| google-ads | 28 | OAuth2 |
|
|
39
43
|
| youtube | 49 | OAuth2 |
|
|
40
44
|
| google-tasks | 15 | OAuth2 |
|
|
@@ -46,6 +50,10 @@ Manifest-driven toolkit registry for AI agents — connector definitions you pub
|
|
|
46
50
|
| reddit | 21 | OAuth2 |
|
|
47
51
|
| groww | 30 | bearer token |
|
|
48
52
|
| cloudflare | 20 | API key |
|
|
53
|
+
| slack | 159 | OAuth2 |
|
|
54
|
+
| discord | 23 | OAuth2 |
|
|
55
|
+
| gitlab | 25 | OAuth2 |
|
|
56
|
+
| bitbucket | 108 | OAuth2 |
|
|
49
57
|
|
|
50
58
|
## Install
|
|
51
59
|
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,9 @@ import googleCalendar from './toolkits/google-calendar/manifest.js';
|
|
|
8
8
|
import googleSheets from './toolkits/google-sheets/manifest.js';
|
|
9
9
|
import googleDrive from './toolkits/google-drive/manifest.js';
|
|
10
10
|
import googleDocs from './toolkits/google-docs/manifest.js';
|
|
11
|
+
import googleMaps from './toolkits/google-maps/manifest.js';
|
|
12
|
+
import googlePhotos from './toolkits/google-photos/manifest.js';
|
|
13
|
+
import googleContacts from './toolkits/google-contacts/manifest.js';
|
|
11
14
|
import googleForms from './toolkits/google-forms/manifest.js';
|
|
12
15
|
import aws from './toolkits/aws/manifest.js';
|
|
13
16
|
import gcp from './toolkits/gcp/manifest.js';
|
|
@@ -18,15 +21,20 @@ import googleSlides from './toolkits/google-slides/manifest.js';
|
|
|
18
21
|
import googleClassroom from './toolkits/google-classroom/manifest.js';
|
|
19
22
|
import googleTasks from './toolkits/google-tasks/manifest.js';
|
|
20
23
|
import googleSearchConsole from './toolkits/google-search-console/manifest.js';
|
|
24
|
+
import googleAnalytics from './toolkits/google-analytics/manifest.js';
|
|
21
25
|
import googleAds from './toolkits/google-ads/manifest.js';
|
|
22
26
|
import youtube from './toolkits/youtube/manifest.js';
|
|
23
27
|
import figma from './toolkits/figma/manifest.js';
|
|
24
28
|
import reddit from './toolkits/reddit/manifest.js';
|
|
25
29
|
import groww from './toolkits/groww/manifest.js';
|
|
26
30
|
import cloudflare from './toolkits/cloudflare/manifest.js';
|
|
31
|
+
import slack from './toolkits/slack/manifest.js';
|
|
32
|
+
import discord from './toolkits/discord/manifest.js';
|
|
33
|
+
import bitbucket from './toolkits/bitbucket/manifest.js';
|
|
34
|
+
import gitlab from './toolkits/gitlab/manifest.js';
|
|
27
35
|
import type { ToolkitManifest } from './core/types.js';
|
|
28
36
|
export declare const toolkits: ToolkitManifest[];
|
|
29
|
-
export { mathematics, linear, gmail, webSearch, github, notion, googleCalendar, googleSheets, googleDrive, googleDocs, googleForms, googleMeet, googleSlides, googleClassroom, googleTasks, googleSearchConsole, googleAds, youtube, figma, aws, gcp, grafana, dockerHub, reddit, groww, cloudflare, };
|
|
37
|
+
export { mathematics, linear, gmail, webSearch, github, notion, googleCalendar, googleSheets, googleDrive, googleDocs, googleMaps, googlePhotos, googleContacts, googleForms, googleMeet, googleSlides, googleClassroom, googleTasks, googleSearchConsole, googleAnalytics, googleAds, youtube, figma, aws, gcp, grafana, dockerHub, reddit, groww, cloudflare, slack, discord, gitlab, bitbucket, };
|
|
30
38
|
export * from './core/index.js';
|
|
31
39
|
export declare function getAllTools(): {
|
|
32
40
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -8,6 +8,9 @@ import googleCalendar from './toolkits/google-calendar/manifest.js';
|
|
|
8
8
|
import googleSheets from './toolkits/google-sheets/manifest.js';
|
|
9
9
|
import googleDrive from './toolkits/google-drive/manifest.js';
|
|
10
10
|
import googleDocs from './toolkits/google-docs/manifest.js';
|
|
11
|
+
import googleMaps from './toolkits/google-maps/manifest.js';
|
|
12
|
+
import googlePhotos from './toolkits/google-photos/manifest.js';
|
|
13
|
+
import googleContacts from './toolkits/google-contacts/manifest.js';
|
|
11
14
|
import googleForms from './toolkits/google-forms/manifest.js';
|
|
12
15
|
import aws from './toolkits/aws/manifest.js';
|
|
13
16
|
import gcp from './toolkits/gcp/manifest.js';
|
|
@@ -18,12 +21,17 @@ import googleSlides from './toolkits/google-slides/manifest.js';
|
|
|
18
21
|
import googleClassroom from './toolkits/google-classroom/manifest.js';
|
|
19
22
|
import googleTasks from './toolkits/google-tasks/manifest.js';
|
|
20
23
|
import googleSearchConsole from './toolkits/google-search-console/manifest.js';
|
|
24
|
+
import googleAnalytics from './toolkits/google-analytics/manifest.js';
|
|
21
25
|
import googleAds from './toolkits/google-ads/manifest.js';
|
|
22
26
|
import youtube from './toolkits/youtube/manifest.js';
|
|
23
27
|
import figma from './toolkits/figma/manifest.js';
|
|
24
28
|
import reddit from './toolkits/reddit/manifest.js';
|
|
25
29
|
import groww from './toolkits/groww/manifest.js';
|
|
26
30
|
import cloudflare from './toolkits/cloudflare/manifest.js';
|
|
31
|
+
import slack from './toolkits/slack/manifest.js';
|
|
32
|
+
import discord from './toolkits/discord/manifest.js';
|
|
33
|
+
import bitbucket from './toolkits/bitbucket/manifest.js';
|
|
34
|
+
import gitlab from './toolkits/gitlab/manifest.js';
|
|
27
35
|
export const toolkits = [
|
|
28
36
|
mathematics,
|
|
29
37
|
linear,
|
|
@@ -35,12 +43,16 @@ export const toolkits = [
|
|
|
35
43
|
googleSheets,
|
|
36
44
|
googleDrive,
|
|
37
45
|
googleDocs,
|
|
46
|
+
googleMaps,
|
|
47
|
+
googlePhotos,
|
|
48
|
+
googleContacts,
|
|
38
49
|
googleForms,
|
|
39
50
|
googleMeet,
|
|
40
51
|
googleSlides,
|
|
41
52
|
googleClassroom,
|
|
42
53
|
googleTasks,
|
|
43
54
|
googleSearchConsole,
|
|
55
|
+
googleAnalytics,
|
|
44
56
|
googleAds,
|
|
45
57
|
youtube,
|
|
46
58
|
figma,
|
|
@@ -51,8 +63,12 @@ export const toolkits = [
|
|
|
51
63
|
reddit,
|
|
52
64
|
groww,
|
|
53
65
|
cloudflare,
|
|
66
|
+
slack,
|
|
67
|
+
discord,
|
|
68
|
+
gitlab,
|
|
69
|
+
bitbucket,
|
|
54
70
|
];
|
|
55
|
-
export { mathematics, linear, gmail, webSearch, github, notion, googleCalendar, googleSheets, googleDrive, googleDocs, googleForms, googleMeet, googleSlides, googleClassroom, googleTasks, googleSearchConsole, googleAds, youtube, figma, aws, gcp, grafana, dockerHub, reddit, groww, cloudflare, };
|
|
71
|
+
export { mathematics, linear, gmail, webSearch, github, notion, googleCalendar, googleSheets, googleDrive, googleDocs, googleMaps, googlePhotos, googleContacts, googleForms, googleMeet, googleSlides, googleClassroom, googleTasks, googleSearchConsole, googleAnalytics, googleAds, youtube, figma, aws, gcp, grafana, dockerHub, reddit, groww, cloudflare, slack, discord, gitlab, bitbucket, };
|
|
56
72
|
export * from './core/index.js';
|
|
57
73
|
export function getAllTools() {
|
|
58
74
|
return toolkits.flatMap((t) => t.tools.map((toolDef) => ({
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
const SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128"><defs><linearGradient id="bitbucket-original-a" gradientUnits="userSpaceOnUse" x1="28.593" y1="14.226" x2="16.672" y2="23.532" gradientTransform="scale(4)"><stop offset=".176" stop-color="#0052cc"/><stop offset="1" stop-color="#2684ff"/></linearGradient></defs><path d="M19.082 20c-1.918 0-3.355 1.758-3.039 3.516l12.95 79.289c.32 2.078 2.077 3.515 4.155 3.515h62.66c1.442 0 2.72-1.12 3.04-2.558l13.109-80.086c.316-1.918-1.121-3.516-3.039-3.516zM74.07 77.227H54.09l-5.278-28.293h30.215zm0 0" fill="#2684ff"/><path d="M107.64 48.934H78.868L74.07 77.227H54.09l-23.5 27.972s1.12.961 2.719.961h62.66c1.441 0 2.719-1.12 3.039-2.558zm0 0" fill="url(#bitbucket-original-a)"/></svg>`;
|
|
2
|
+
export const BITBUCKET_ICON = {
|
|
3
|
+
kind: 'svg',
|
|
4
|
+
dataUri: `data:image/svg+xml;base64,${Buffer.from(SVG).toString('base64')}`,
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=icon.js.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineToolkit, defineTool } from '../../core/define.js';
|
|
2
|
+
import { BITBUCKET_ICON } from './icon.js';
|
|
3
|
+
import { bitbucketTools } from './tools/index.js';
|
|
4
|
+
export default defineToolkit({
|
|
5
|
+
id: 'bitbucket',
|
|
6
|
+
displayName: 'Bitbucket',
|
|
7
|
+
shortDescription: 'Repositories, pull requests, issues, commits, pipelines, and snippets.',
|
|
8
|
+
category: 'Developer Tools & DevOps',
|
|
9
|
+
icon: BITBUCKET_ICON,
|
|
10
|
+
auth: {
|
|
11
|
+
type: 'oauth2',
|
|
12
|
+
tokenField: 'bitbucketToken',
|
|
13
|
+
provider: {
|
|
14
|
+
slug: 'bitbucket',
|
|
15
|
+
env: { clientId: 'BITBUCKET_CLIENT_ID', clientSecret: 'BITBUCKET_CLIENT_SECRET' },
|
|
16
|
+
authorizeUrl: 'https://bitbucket.org/site/oauth2/authorize',
|
|
17
|
+
tokenUrl: 'https://bitbucket.org/site/oauth2/access_token',
|
|
18
|
+
scopes: [
|
|
19
|
+
'account',
|
|
20
|
+
'email',
|
|
21
|
+
'repository',
|
|
22
|
+
'repository:write',
|
|
23
|
+
'repository:admin',
|
|
24
|
+
'pullrequest',
|
|
25
|
+
'pullrequest:write',
|
|
26
|
+
'issue',
|
|
27
|
+
'issue:write',
|
|
28
|
+
'wiki',
|
|
29
|
+
'snippet',
|
|
30
|
+
'snippet:write',
|
|
31
|
+
'pipeline',
|
|
32
|
+
'pipeline:write',
|
|
33
|
+
'pipeline:variable',
|
|
34
|
+
],
|
|
35
|
+
exchangeStyle: 'basic',
|
|
36
|
+
connectDescription: 'Connect Bitbucket to manage repositories, pull requests, issues, commits, pipelines, and snippets.',
|
|
37
|
+
callbackPath: '/api/auth/bitbucket/callback',
|
|
38
|
+
stateCookie: 'bitbucket_oauth_state',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
allowedHosts: ['api.bitbucket.org'],
|
|
42
|
+
tools: bitbucketTools.map((entry) => defineTool({
|
|
43
|
+
name: entry.name,
|
|
44
|
+
description: entry.description,
|
|
45
|
+
tool: entry.tool,
|
|
46
|
+
requiredAuth: entry.requiredAuth,
|
|
47
|
+
scope: entry.scope,
|
|
48
|
+
})),
|
|
49
|
+
meta: {
|
|
50
|
+
since: '0.0.9',
|
|
51
|
+
homepage: 'https://bitbucket.org',
|
|
52
|
+
docsUrl: 'https://developer.atlassian.com/cloud/bitbucket/rest/',
|
|
53
|
+
apiDocsUrl: 'https://developer.atlassian.com/cloud/bitbucket/rest/',
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare class BitbucketApiError extends Error {
|
|
2
|
+
status: number;
|
|
3
|
+
details: unknown;
|
|
4
|
+
constructor(message: string, status: number, details: unknown);
|
|
5
|
+
}
|
|
6
|
+
/** Encode a single path segment. */
|
|
7
|
+
export declare function enc(value: string | number): string;
|
|
8
|
+
/** Encode a path that may itself contain slashes (file paths, branch names, revspecs). */
|
|
9
|
+
export declare function encPath(value: string | number): string;
|
|
10
|
+
export declare function appendQuery(url: URL, query?: Record<string, unknown>): void;
|
|
11
|
+
export declare function bbRequest(bitbucketToken: string, method: 'GET' | 'POST' | 'PUT' | 'DELETE', path: string, options?: {
|
|
12
|
+
query?: Record<string, unknown>;
|
|
13
|
+
body?: unknown;
|
|
14
|
+
accept?: string;
|
|
15
|
+
}): Promise<any>;
|
|
16
|
+
/** Normalize a milestone/component/version reference that may be a name (string) or id (number). */
|
|
17
|
+
export declare function nameOrIdRef(value: string | number | undefined): {
|
|
18
|
+
id: number;
|
|
19
|
+
name?: undefined;
|
|
20
|
+
} | {
|
|
21
|
+
name: string;
|
|
22
|
+
id?: undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
export declare function toBbError(error: unknown, label: string): {
|
|
25
|
+
error: string;
|
|
26
|
+
details: unknown;
|
|
27
|
+
statusCode: number;
|
|
28
|
+
message?: undefined;
|
|
29
|
+
} | {
|
|
30
|
+
error: string;
|
|
31
|
+
message: string;
|
|
32
|
+
details?: undefined;
|
|
33
|
+
statusCode?: undefined;
|
|
34
|
+
};
|
|
35
|
+
export declare function requireToken(bitbucketToken: string | undefined): {
|
|
36
|
+
error: string;
|
|
37
|
+
} | null;
|
|
38
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
const BASE_URL = 'https://api.bitbucket.org/2.0';
|
|
3
|
+
export class BitbucketApiError extends Error {
|
|
4
|
+
status;
|
|
5
|
+
details;
|
|
6
|
+
constructor(message, status, details) {
|
|
7
|
+
super(message);
|
|
8
|
+
this.status = status;
|
|
9
|
+
this.details = details;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/** Encode a single path segment. */
|
|
13
|
+
export function enc(value) {
|
|
14
|
+
return encodeURIComponent(String(value));
|
|
15
|
+
}
|
|
16
|
+
/** Encode a path that may itself contain slashes (file paths, branch names, revspecs). */
|
|
17
|
+
export function encPath(value) {
|
|
18
|
+
return String(value)
|
|
19
|
+
.split('/')
|
|
20
|
+
.map((seg) => encodeURIComponent(seg))
|
|
21
|
+
.join('/');
|
|
22
|
+
}
|
|
23
|
+
export function appendQuery(url, query) {
|
|
24
|
+
if (!query)
|
|
25
|
+
return;
|
|
26
|
+
for (const [key, value] of Object.entries(query)) {
|
|
27
|
+
if (value === undefined || value === null)
|
|
28
|
+
continue;
|
|
29
|
+
url.searchParams.set(key, String(value));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export async function bbRequest(bitbucketToken, method, path, options) {
|
|
33
|
+
const url = new URL(`${BASE_URL}${path}`);
|
|
34
|
+
appendQuery(url, options?.query);
|
|
35
|
+
const headers = {
|
|
36
|
+
Authorization: `Bearer ${bitbucketToken}`,
|
|
37
|
+
Accept: options?.accept ?? 'application/json',
|
|
38
|
+
};
|
|
39
|
+
if (options?.body !== undefined) {
|
|
40
|
+
headers['Content-Type'] = 'application/json';
|
|
41
|
+
}
|
|
42
|
+
const response = await fetch(url.toString(), {
|
|
43
|
+
method,
|
|
44
|
+
headers,
|
|
45
|
+
body: options?.body !== undefined ? JSON.stringify(options.body) : undefined,
|
|
46
|
+
});
|
|
47
|
+
if (response.status === 204) {
|
|
48
|
+
return { success: true };
|
|
49
|
+
}
|
|
50
|
+
const contentType = response.headers.get('content-type') ?? '';
|
|
51
|
+
const text = await response.text();
|
|
52
|
+
let data = text;
|
|
53
|
+
if (contentType.includes('application/json')) {
|
|
54
|
+
try {
|
|
55
|
+
data = text ? JSON.parse(text) : {};
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
data = { raw: text };
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (!response.ok) {
|
|
62
|
+
throw new BitbucketApiError('Bitbucket API request failed', response.status, data);
|
|
63
|
+
}
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
/** Normalize a milestone/component/version reference that may be a name (string) or id (number). */
|
|
67
|
+
export function nameOrIdRef(value) {
|
|
68
|
+
if (value === undefined)
|
|
69
|
+
return undefined;
|
|
70
|
+
return typeof value === 'number' ? { id: value } : { name: value };
|
|
71
|
+
}
|
|
72
|
+
export function toBbError(error, label) {
|
|
73
|
+
if (error instanceof BitbucketApiError) {
|
|
74
|
+
return { error: label, details: error.details, statusCode: error.status };
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
error: label.replace('Failed', 'Error').replace('failed', 'error'),
|
|
78
|
+
message: error instanceof Error ? error.message : 'Unknown error',
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
export function requireToken(bitbucketToken) {
|
|
82
|
+
if (!bitbucketToken) {
|
|
83
|
+
return { error: 'Bitbucket token is required. Connect Bitbucket first.' };
|
|
84
|
+
}
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
export declare const bitbucketGetCommit: import("ai").Tool<{
|
|
2
|
+
commit: string;
|
|
3
|
+
repoSlug: string;
|
|
4
|
+
workspace: string;
|
|
5
|
+
bitbucketToken?: string | undefined;
|
|
6
|
+
}, any>;
|
|
7
|
+
export declare const bitbucketListCommits: import("ai").Tool<{
|
|
8
|
+
repoSlug: string;
|
|
9
|
+
workspace: string;
|
|
10
|
+
path?: string | undefined;
|
|
11
|
+
page?: number | undefined;
|
|
12
|
+
include?: string | undefined;
|
|
13
|
+
bitbucketToken?: string | undefined;
|
|
14
|
+
pagelen?: number | undefined;
|
|
15
|
+
exclude?: string | undefined;
|
|
16
|
+
}, any>;
|
|
17
|
+
export declare const bitbucketListCommitsFromRevision: import("ai").Tool<{
|
|
18
|
+
repoSlug: string;
|
|
19
|
+
workspace: string;
|
|
20
|
+
revision: string;
|
|
21
|
+
path?: string | undefined;
|
|
22
|
+
page?: number | undefined;
|
|
23
|
+
include?: string | undefined;
|
|
24
|
+
bitbucketToken?: string | undefined;
|
|
25
|
+
pagelen?: number | undefined;
|
|
26
|
+
exclude?: string | undefined;
|
|
27
|
+
}, any>;
|
|
28
|
+
export declare const bitbucketListCommitsOnMaster: import("ai").Tool<{
|
|
29
|
+
repoSlug: string;
|
|
30
|
+
workspace: string;
|
|
31
|
+
page?: number | undefined;
|
|
32
|
+
bitbucketToken?: string | undefined;
|
|
33
|
+
pagelen?: number | undefined;
|
|
34
|
+
}, any>;
|
|
35
|
+
export declare const bitbucketListCommitsFromRevisionPost: import("ai").Tool<{
|
|
36
|
+
repoSlug: string;
|
|
37
|
+
workspace: string;
|
|
38
|
+
revision: string;
|
|
39
|
+
path?: string | undefined;
|
|
40
|
+
page?: number | undefined;
|
|
41
|
+
include?: string | undefined;
|
|
42
|
+
bitbucketToken?: string | undefined;
|
|
43
|
+
pagelen?: number | undefined;
|
|
44
|
+
exclude?: string | undefined;
|
|
45
|
+
}, any>;
|
|
46
|
+
export declare const bitbucketListCommitComments: import("ai").Tool<{
|
|
47
|
+
commit: string;
|
|
48
|
+
repoSlug: string;
|
|
49
|
+
workspace: string;
|
|
50
|
+
page?: number | undefined;
|
|
51
|
+
bitbucketToken?: string | undefined;
|
|
52
|
+
pagelen?: number | undefined;
|
|
53
|
+
}, any>;
|
|
54
|
+
export declare const bitbucketGetCommitComment: import("ai").Tool<{
|
|
55
|
+
commit: string;
|
|
56
|
+
commentId: number;
|
|
57
|
+
repoSlug: string;
|
|
58
|
+
workspace: string;
|
|
59
|
+
bitbucketToken?: string | undefined;
|
|
60
|
+
}, any>;
|
|
61
|
+
export declare const bitbucketUpdateCommitComment: import("ai").Tool<{
|
|
62
|
+
commit: string;
|
|
63
|
+
commentId: string;
|
|
64
|
+
repoSlug: string;
|
|
65
|
+
workspace: string;
|
|
66
|
+
contentRaw: string;
|
|
67
|
+
bitbucketToken?: string | undefined;
|
|
68
|
+
}, any>;
|
|
69
|
+
export declare const bitbucketDeleteCommitComment: import("ai").Tool<{
|
|
70
|
+
commit: string;
|
|
71
|
+
commentId: string;
|
|
72
|
+
repoSlug: string;
|
|
73
|
+
workspace: string;
|
|
74
|
+
bitbucketToken?: string | undefined;
|
|
75
|
+
}, any>;
|
|
76
|
+
export declare const bitbucketGetCommitDiff: import("ai").Tool<{
|
|
77
|
+
repoSlug: string;
|
|
78
|
+
workspace: string;
|
|
79
|
+
spec: string;
|
|
80
|
+
binary?: boolean | undefined;
|
|
81
|
+
path?: string | undefined;
|
|
82
|
+
merge?: boolean | undefined;
|
|
83
|
+
context?: number | undefined;
|
|
84
|
+
topic?: boolean | undefined;
|
|
85
|
+
bitbucketToken?: string | undefined;
|
|
86
|
+
renames?: boolean | undefined;
|
|
87
|
+
ignoreWhitespace?: boolean | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
error: string;
|
|
90
|
+
} | {
|
|
91
|
+
diff: string;
|
|
92
|
+
}>;
|
|
93
|
+
export declare const bitbucketGetCommitChanges: import("ai").Tool<{
|
|
94
|
+
repoSlug: string;
|
|
95
|
+
workspace: string;
|
|
96
|
+
spec: string;
|
|
97
|
+
page?: number | undefined;
|
|
98
|
+
bitbucketToken?: string | undefined;
|
|
99
|
+
pagelen?: number | undefined;
|
|
100
|
+
}, any>;
|
|
101
|
+
export declare const bitbucketGetCommitBuildStatus: import("ai").Tool<{
|
|
102
|
+
commit: string;
|
|
103
|
+
key: string;
|
|
104
|
+
repoSlug: string;
|
|
105
|
+
workspace: string;
|
|
106
|
+
bitbucketToken?: string | undefined;
|
|
107
|
+
}, any>;
|
|
108
|
+
export declare const bitbucketListCommitStatuses: import("ai").Tool<{
|
|
109
|
+
commit: string;
|
|
110
|
+
repoSlug: string;
|
|
111
|
+
workspace: string;
|
|
112
|
+
bitbucketToken?: string | undefined;
|
|
113
|
+
}, any>;
|
|
114
|
+
export declare const bitbucketGetFileHistory: import("ai").Tool<{
|
|
115
|
+
path: string;
|
|
116
|
+
commit: string;
|
|
117
|
+
repoSlug: string;
|
|
118
|
+
workspace: string;
|
|
119
|
+
q?: string | undefined;
|
|
120
|
+
page?: number | undefined;
|
|
121
|
+
fields?: string | undefined;
|
|
122
|
+
bitbucketToken?: string | undefined;
|
|
123
|
+
pagelen?: number | undefined;
|
|
124
|
+
renames?: boolean | undefined;
|
|
125
|
+
}, any>;
|
|
126
|
+
export declare const bitbucketGetMergeBase: import("ai").Tool<{
|
|
127
|
+
repoSlug: string;
|
|
128
|
+
workspace: string;
|
|
129
|
+
revspec: string;
|
|
130
|
+
bitbucketToken?: string | undefined;
|
|
131
|
+
}, any>;
|
|
132
|
+
export declare const bitbucketGetRepositoryPatch: import("ai").Tool<{
|
|
133
|
+
repoSlug: string;
|
|
134
|
+
workspace: string;
|
|
135
|
+
spec: string;
|
|
136
|
+
bitbucketToken?: string | undefined;
|
|
137
|
+
maxChars?: number | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
error: string;
|
|
140
|
+
} | {
|
|
141
|
+
diff: string;
|
|
142
|
+
truncated: boolean;
|
|
143
|
+
original_size: number;
|
|
144
|
+
} | {
|
|
145
|
+
diff: string;
|
|
146
|
+
truncated: boolean;
|
|
147
|
+
original_size?: undefined;
|
|
148
|
+
}>;
|
|
149
|
+
//# sourceMappingURL=commits.d.ts.map
|