@rnsk/toolkits 0.0.3 → 0.0.5

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 (175) hide show
  1. package/README.md +4 -4
  2. package/dist/index.d.ts +3 -1
  3. package/dist/index.js +5 -1
  4. package/dist/toolkits/github/tools/Actions/get-workflow-job.d.ts +3 -3
  5. package/dist/toolkits/github/tools/Actions/list-artifacts.d.ts +1 -1
  6. package/dist/toolkits/github/tools/Actions/list-workflow-jobs.d.ts +3 -3
  7. package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.d.ts +1 -1
  8. package/dist/toolkits/github/tools/Activity/list-notifications.d.ts +1 -1
  9. package/dist/toolkits/github/tools/Activity/list-public-events.d.ts +1 -1
  10. package/dist/toolkits/github/tools/Activity/list-repo-events.d.ts +1 -1
  11. package/dist/toolkits/github/tools/Activity/list-user-events.d.ts +1 -1
  12. package/dist/toolkits/github/tools/Apps/list-installations.d.ts +1 -1
  13. package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +5 -5
  14. package/dist/toolkits/github/tools/Checks/create-check-suite.d.ts +2 -2
  15. package/dist/toolkits/github/tools/Checks/get-check-run.d.ts +2 -2
  16. package/dist/toolkits/github/tools/Checks/get-check-suite.d.ts +2 -2
  17. package/dist/toolkits/github/tools/Checks/list-check-runs.d.ts +4 -4
  18. package/dist/toolkits/github/tools/Checks/update-check-run.d.ts +4 -4
  19. package/dist/toolkits/github/tools/CodeScanning/list-alerts.d.ts +2 -2
  20. package/dist/toolkits/github/tools/CodeScanning/update-alert.d.ts +1 -1
  21. package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +1 -1
  22. package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +1 -1
  23. package/dist/toolkits/github/tools/Collaborators/list-collaborators.d.ts +1 -1
  24. package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +1 -1
  25. package/dist/toolkits/github/tools/Commits/compare-commits.d.ts +2 -2
  26. package/dist/toolkits/github/tools/Commits/get-commit.d.ts +2 -2
  27. package/dist/toolkits/github/tools/Commits/list-commits.d.ts +1 -1
  28. package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.d.ts +2 -2
  29. package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +1 -1
  30. package/dist/toolkits/github/tools/Dependabot/update-alert.d.ts +1 -1
  31. package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.d.ts +1 -1
  32. package/dist/toolkits/github/tools/Deployments/create-deployment.d.ts +1 -1
  33. package/dist/toolkits/github/tools/Deployments/list-deployments.d.ts +1 -1
  34. package/dist/toolkits/github/tools/Environments/list-environments.d.ts +1 -1
  35. package/dist/toolkits/github/tools/Files/create-or-update-file.d.ts +1 -1
  36. package/dist/toolkits/github/tools/Gists/create-gist.d.ts +1 -1
  37. package/dist/toolkits/github/tools/Git/create-blob.d.ts +1 -1
  38. package/dist/toolkits/github/tools/Git/create-tree.d.ts +1 -1
  39. package/dist/toolkits/github/tools/Issues/add-issue-assignees.d.ts +1 -1
  40. package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.d.ts +3 -3
  41. package/dist/toolkits/github/tools/Issues/list-issue-comments.d.ts +1 -1
  42. package/dist/toolkits/github/tools/Issues/list-org-issues.d.ts +3 -3
  43. package/dist/toolkits/github/tools/Issues/list-repo-issues.d.ts +2 -2
  44. package/dist/toolkits/github/tools/Issues/list-user-account-issues.d.ts +3 -3
  45. package/dist/toolkits/github/tools/Organizations/get-org-membership.d.ts +1 -1
  46. package/dist/toolkits/github/tools/Organizations/list-org-members.d.ts +1 -1
  47. package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +2 -2
  48. package/dist/toolkits/github/tools/Organizations/list-user-organizations.d.ts +1 -1
  49. package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +1 -1
  50. package/dist/toolkits/github/tools/PRs/create-pull-request-review.d.ts +1 -1
  51. package/dist/toolkits/github/tools/PRs/list-pull-request-files.d.ts +1 -1
  52. package/dist/toolkits/github/tools/PRs/list-pull-requests.d.ts +1 -1
  53. package/dist/toolkits/github/tools/Projects/list-org-projects.d.ts +1 -1
  54. package/dist/toolkits/github/tools/Projects/list-project-columns.d.ts +1 -1
  55. package/dist/toolkits/github/tools/Projects/list-repo-projects.d.ts +1 -1
  56. package/dist/toolkits/github/tools/Projects/update-project.d.ts +1 -1
  57. package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.d.ts +1 -1
  58. package/dist/toolkits/github/tools/Reactions/create-issue-reaction.d.ts +1 -1
  59. package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.d.ts +1 -1
  60. package/dist/toolkits/github/tools/Reactions/list-issue-reactions.d.ts +1 -1
  61. package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.d.ts +1 -1
  62. package/dist/toolkits/github/tools/Releases/list-releases.d.ts +1 -1
  63. package/dist/toolkits/github/tools/Repos/get-repo-contributors.d.ts +1 -1
  64. package/dist/toolkits/github/tools/Repos/list-branches.d.ts +1 -1
  65. package/dist/toolkits/github/tools/Repos/list-repos.d.ts +2 -2
  66. package/dist/toolkits/github/tools/Repos/watch-repo.d.ts +1 -1
  67. package/dist/toolkits/github/tools/Search/search-repos.d.ts +1 -1
  68. package/dist/toolkits/github/tools/SecretScanning/list-alerts.d.ts +1 -1
  69. package/dist/toolkits/github/tools/SecretScanning/update-alert.d.ts +1 -1
  70. package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +1 -1
  71. package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +1 -1
  72. package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +1 -1
  73. package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +2 -2
  74. package/dist/toolkits/github/tools/Stars/list-stargazers.d.ts +1 -1
  75. package/dist/toolkits/github/tools/Stars/list-starred-repos.d.ts +1 -1
  76. package/dist/toolkits/github/tools/Statuses/create-commit-status.d.ts +1 -1
  77. package/dist/toolkits/github/tools/Statuses/list-commit-statuses.d.ts +1 -1
  78. package/dist/toolkits/github/tools/Teams/list-team-members.d.ts +1 -1
  79. package/dist/toolkits/github/tools/Teams/list-team-repos.d.ts +1 -1
  80. package/dist/toolkits/github/tools/Teams/list-teams.d.ts +1 -1
  81. package/dist/toolkits/github/tools/Users/get-user-context.d.ts +1 -1
  82. package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +1 -1
  83. package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +1 -1
  84. package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.d.ts +1 -1
  85. package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.d.ts +1 -1
  86. package/dist/toolkits/github/tools/Workflows/list-workflow-runs.d.ts +2 -2
  87. package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +1 -1
  88. package/dist/toolkits/github/tools/index.d.ts +4859 -175
  89. package/dist/toolkits/github/tools/index.js +342 -342
  90. package/dist/toolkits/gmail/manifest.js +1 -1
  91. package/dist/toolkits/gmail/tools/create-draft.d.ts +1 -1
  92. package/dist/toolkits/gmail/tools/reply-to-thread.d.ts +1 -1
  93. package/dist/toolkits/gmail/tools/send-message.d.ts +1 -1
  94. package/dist/toolkits/google-calendar/manifest.js +1 -6
  95. package/dist/toolkits/google-docs/icon.d.ts +5 -0
  96. package/dist/toolkits/google-docs/icon.js +6 -0
  97. package/dist/toolkits/google-docs/manifest.d.ts +3 -0
  98. package/dist/toolkits/google-docs/manifest.js +40 -0
  99. package/dist/toolkits/google-docs/tools/append-text.d.ts +30 -0
  100. package/dist/toolkits/google-docs/tools/append-text.js +48 -0
  101. package/dist/toolkits/google-docs/tools/copy-document.d.ts +27 -0
  102. package/dist/toolkits/google-docs/tools/copy-document.js +43 -0
  103. package/dist/toolkits/google-docs/tools/create-document.d.ts +26 -0
  104. package/dist/toolkits/google-docs/tools/create-document.js +39 -0
  105. package/dist/toolkits/google-docs/tools/delete-content.d.ts +28 -0
  106. package/dist/toolkits/google-docs/tools/delete-content.js +45 -0
  107. package/dist/toolkits/google-docs/tools/delete-document.d.ts +23 -0
  108. package/dist/toolkits/google-docs/tools/delete-document.js +30 -0
  109. package/dist/toolkits/google-docs/tools/get-document-text.d.ts +26 -0
  110. package/dist/toolkits/google-docs/tools/get-document-text.js +35 -0
  111. package/dist/toolkits/google-docs/tools/get-document.d.ts +5 -0
  112. package/dist/toolkits/google-docs/tools/get-document.js +29 -0
  113. package/dist/toolkits/google-docs/tools/index.d.ts +299 -0
  114. package/dist/toolkits/google-docs/tools/index.js +85 -0
  115. package/dist/toolkits/google-docs/tools/insert-text.d.ts +28 -0
  116. package/dist/toolkits/google-docs/tools/insert-text.js +39 -0
  117. package/dist/toolkits/google-docs/tools/list-documents.d.ts +21 -0
  118. package/dist/toolkits/google-docs/tools/list-documents.js +39 -0
  119. package/dist/toolkits/google-docs/tools/replace-text.d.ts +32 -0
  120. package/dist/toolkits/google-docs/tools/replace-text.js +48 -0
  121. package/dist/toolkits/google-docs/tools/utils.d.ts +12 -0
  122. package/dist/toolkits/google-docs/tools/utils.js +48 -0
  123. package/dist/toolkits/google-drive/icon.d.ts +5 -0
  124. package/dist/toolkits/google-drive/icon.js +6 -0
  125. package/dist/toolkits/google-drive/manifest.d.ts +3 -0
  126. package/dist/toolkits/google-drive/manifest.js +37 -0
  127. package/dist/toolkits/google-drive/tools/copy-file.d.ts +7 -0
  128. package/dist/toolkits/google-drive/tools/copy-file.js +41 -0
  129. package/dist/toolkits/google-drive/tools/create-folder.d.ts +6 -0
  130. package/dist/toolkits/google-drive/tools/create-folder.js +42 -0
  131. package/dist/toolkits/google-drive/tools/delete-file.d.ts +23 -0
  132. package/dist/toolkits/google-drive/tools/delete-file.js +30 -0
  133. package/dist/toolkits/google-drive/tools/download-file.d.ts +30 -0
  134. package/dist/toolkits/google-drive/tools/download-file.js +61 -0
  135. package/dist/toolkits/google-drive/tools/get-file.d.ts +5 -0
  136. package/dist/toolkits/google-drive/tools/get-file.js +31 -0
  137. package/dist/toolkits/google-drive/tools/index.d.ts +188 -0
  138. package/dist/toolkits/google-drive/tools/index.js +85 -0
  139. package/dist/toolkits/google-drive/tools/list-files.d.ts +21 -0
  140. package/dist/toolkits/google-drive/tools/list-files.js +42 -0
  141. package/dist/toolkits/google-drive/tools/move-file.d.ts +7 -0
  142. package/dist/toolkits/google-drive/tools/move-file.js +51 -0
  143. package/dist/toolkits/google-drive/tools/search-files.d.ts +21 -0
  144. package/dist/toolkits/google-drive/tools/search-files.js +36 -0
  145. package/dist/toolkits/google-drive/tools/update-file.d.ts +7 -0
  146. package/dist/toolkits/google-drive/tools/update-file.js +44 -0
  147. package/dist/toolkits/google-drive/tools/upload-file.d.ts +8 -0
  148. package/dist/toolkits/google-drive/tools/upload-file.js +58 -0
  149. package/dist/toolkits/google-sheets/manifest.js +1 -6
  150. package/dist/toolkits/linear/manifest.js +35 -0
  151. package/dist/toolkits/linear/tools/add-comment.d.ts +6 -0
  152. package/dist/toolkits/linear/tools/add-comment.js +52 -0
  153. package/dist/toolkits/linear/tools/get-issue.d.ts +6 -0
  154. package/dist/toolkits/linear/tools/get-issue.js +117 -0
  155. package/dist/toolkits/linear/tools/list-projects.d.ts +4 -0
  156. package/dist/toolkits/linear/tools/list-projects.js +46 -0
  157. package/dist/toolkits/linear/tools/list-workflow-states.d.ts +26 -0
  158. package/dist/toolkits/linear/tools/list-workflow-states.js +59 -0
  159. package/dist/toolkits/linear/tools/update-issue.d.ts +11 -0
  160. package/dist/toolkits/linear/tools/update-issue.js +78 -0
  161. package/dist/toolkits/notion/tools/append-block-children.d.ts +1 -1
  162. package/dist/toolkits/notion/tools/index.d.ts +105 -12
  163. package/dist/toolkits/notion/tools/index.js +8 -8
  164. package/dist/toolkits/notion/tools/query-database.d.ts +1 -1
  165. package/package.json +20 -4
  166. package/dist/runtime/credentials.d.ts +0 -28
  167. package/dist/runtime/credentials.js +0 -15
  168. package/dist/runtime/index.d.ts +0 -5
  169. package/dist/runtime/index.js +0 -5
  170. package/dist/runtime/meta-tools.d.ts +0 -101
  171. package/dist/runtime/meta-tools.js +0 -250
  172. package/dist/runtime/registry.d.ts +0 -20
  173. package/dist/runtime/registry.js +0 -35
  174. package/dist/runtime/schema-helpers.d.ts +0 -20
  175. package/dist/runtime/schema-helpers.js +0 -157
@@ -0,0 +1,78 @@
1
+ import { tool } from 'ai';
2
+ import { z } from 'zod';
3
+ export const linearUpdateIssue = tool({
4
+ description: 'Update a Linear issue. Change title, description, status (stateId), assignee, priority, or project. Use linearListWorkflowStates to find state IDs.',
5
+ inputSchema: z.object({
6
+ issueId: z.string().describe('Linear issue UUID'),
7
+ title: z.string().optional().describe('New title'),
8
+ description: z.string().optional().describe('New description (markdown supported)'),
9
+ stateId: z.string().optional().describe('Workflow state ID (e.g. move to Done). Use linearListWorkflowStates.'),
10
+ assigneeId: z.string().nullable().optional().describe('User ID to assign, or null to unassign.'),
11
+ priority: z
12
+ .number()
13
+ .int()
14
+ .min(0)
15
+ .max(4)
16
+ .optional()
17
+ .describe('Priority: 0=none, 1=urgent, 2=high, 3=medium, 4=low'),
18
+ projectId: z.string().optional().describe('Project ID to associate the issue with'),
19
+ linearToken: z.string().optional().describe('Linear API token (injected by system)'),
20
+ }),
21
+ execute: async ({ issueId, title, description, stateId, assigneeId, priority, projectId, linearToken }) => {
22
+ const input = {};
23
+ if (title !== undefined)
24
+ input.title = title;
25
+ if (description !== undefined)
26
+ input.description = description;
27
+ if (stateId !== undefined)
28
+ input.stateId = stateId;
29
+ if (assigneeId !== undefined)
30
+ input.assigneeId = assigneeId;
31
+ if (priority !== undefined)
32
+ input.priority = priority;
33
+ if (projectId !== undefined)
34
+ input.projectId = projectId;
35
+ if (Object.keys(input).length === 0) {
36
+ return { error: 'Provide at least one field to update (title, description, stateId, assigneeId, priority, or projectId).' };
37
+ }
38
+ const graphqlQuery = {
39
+ query: `
40
+ mutation UpdateIssue($id: String!, $input: IssueUpdateInput!) {
41
+ issueUpdate(id: $id, input: $input) {
42
+ success
43
+ issue {
44
+ id
45
+ identifier
46
+ title
47
+ description
48
+ priority
49
+ url
50
+ state { id name }
51
+ assignee { id name }
52
+ project { id name }
53
+ }
54
+ }
55
+ }
56
+ `,
57
+ variables: { id: issueId, input },
58
+ };
59
+ const response = await fetch('https://api.linear.app/graphql', {
60
+ method: 'POST',
61
+ headers: {
62
+ 'Content-Type': 'application/json',
63
+ Authorization: `Bearer ${linearToken}`,
64
+ },
65
+ body: JSON.stringify(graphqlQuery),
66
+ });
67
+ if (!response.ok) {
68
+ const error = await response.json();
69
+ return { error: 'Failed to update Linear issue', details: error };
70
+ }
71
+ const data = await response.json();
72
+ if (data.errors?.length) {
73
+ return { error: 'Linear GraphQL error', details: data.errors };
74
+ }
75
+ return data.data.issueUpdate;
76
+ },
77
+ });
78
+ //# sourceMappingURL=update-issue.js.map
@@ -1,6 +1,6 @@
1
1
  export declare const notionAppendBlockChildren: import("ai").Tool<{
2
- block_id: string;
3
2
  children: any[];
3
+ block_id: string;
4
4
  notionToken?: string | undefined;
5
5
  }, any>;
6
6
  //# sourceMappingURL=append-block-children.d.ts.map
@@ -1,16 +1,109 @@
1
- import { notionSearch } from './search';
2
- import { notionListDatabases } from './list-databases';
3
- import { notionQueryDatabase } from './query-database';
4
- import { notionGetPage } from './get-page';
5
- import { notionCreatePage } from './create-page';
6
- import { notionUpdatePage } from './update-page';
7
- import { notionAppendBlockChildren } from './append-block-children';
8
- import { notionGetDatabase } from './get-database';
1
+ import { notionSearch } from './search.js';
2
+ import { notionListDatabases } from './list-databases.js';
3
+ import { notionQueryDatabase } from './query-database.js';
4
+ import { notionGetPage } from './get-page.js';
5
+ import { notionCreatePage } from './create-page.js';
6
+ import { notionUpdatePage } from './update-page.js';
7
+ import { notionAppendBlockChildren } from './append-block-children.js';
8
+ import { notionGetDatabase } from './get-database.js';
9
9
  export { notionSearch, notionListDatabases, notionQueryDatabase, notionGetPage, notionCreatePage, notionUpdatePage, notionAppendBlockChildren, notionGetDatabase, };
10
- export declare const notionTools: {
10
+ export declare const notionTools: ({
11
11
  name: string;
12
- description: any;
13
- tool: any;
12
+ description: string;
13
+ tool: import("ai").Tool<{
14
+ query: string;
15
+ page_size: number;
16
+ sort?: {
17
+ direction?: "ascending" | "descending" | undefined;
18
+ timestamp?: "last_edited_time" | undefined;
19
+ } | undefined;
20
+ filter?: {
21
+ value?: "page" | "database" | undefined;
22
+ property?: "object" | undefined;
23
+ } | undefined;
24
+ notionToken?: string | undefined;
25
+ }, any>;
14
26
  requiredAuth: "notionToken";
15
- }[];
27
+ } | {
28
+ name: string;
29
+ description: string;
30
+ tool: import("ai").Tool<{
31
+ page_size: number;
32
+ notionToken?: string | undefined;
33
+ }, any>;
34
+ requiredAuth: "notionToken";
35
+ } | {
36
+ name: string;
37
+ description: string;
38
+ tool: import("ai").Tool<{
39
+ page_size: number;
40
+ database_id: string;
41
+ filter?: any;
42
+ notionToken?: string | undefined;
43
+ sorts?: any[] | undefined;
44
+ }, any>;
45
+ requiredAuth: "notionToken";
46
+ } | {
47
+ name: string;
48
+ description: string;
49
+ tool: import("ai").Tool<{
50
+ page_id: string;
51
+ notionToken?: string | undefined;
52
+ }, {
53
+ error: string;
54
+ details: any;
55
+ page?: undefined;
56
+ content?: undefined;
57
+ } | {
58
+ page: any;
59
+ content: any;
60
+ error?: undefined;
61
+ details?: undefined;
62
+ }>;
63
+ requiredAuth: "notionToken";
64
+ } | {
65
+ name: string;
66
+ description: string;
67
+ tool: import("ai").Tool<{
68
+ parent: {
69
+ database_id?: string | undefined;
70
+ page_id?: string | undefined;
71
+ };
72
+ notionToken?: string | undefined;
73
+ properties?: any;
74
+ children?: any[] | undefined;
75
+ icon?: any;
76
+ cover?: any;
77
+ }, any>;
78
+ requiredAuth: "notionToken";
79
+ } | {
80
+ name: string;
81
+ description: string;
82
+ tool: import("ai").Tool<{
83
+ page_id: string;
84
+ notionToken?: string | undefined;
85
+ properties?: any;
86
+ icon?: any;
87
+ cover?: any;
88
+ archived?: boolean | undefined;
89
+ }, any>;
90
+ requiredAuth: "notionToken";
91
+ } | {
92
+ name: string;
93
+ description: string;
94
+ tool: import("ai").Tool<{
95
+ children: any[];
96
+ block_id: string;
97
+ notionToken?: string | undefined;
98
+ }, any>;
99
+ requiredAuth: "notionToken";
100
+ } | {
101
+ name: string;
102
+ description: string;
103
+ tool: import("ai").Tool<{
104
+ database_id: string;
105
+ notionToken?: string | undefined;
106
+ }, any>;
107
+ requiredAuth: "notionToken";
108
+ })[];
16
109
  //# sourceMappingURL=index.d.ts.map
@@ -1,12 +1,12 @@
1
1
  // @ts-nocheck
2
- import { notionSearch } from './search';
3
- import { notionListDatabases } from './list-databases';
4
- import { notionQueryDatabase } from './query-database';
5
- import { notionGetPage } from './get-page';
6
- import { notionCreatePage } from './create-page';
7
- import { notionUpdatePage } from './update-page';
8
- import { notionAppendBlockChildren } from './append-block-children';
9
- import { notionGetDatabase } from './get-database';
2
+ import { notionSearch } from './search.js';
3
+ import { notionListDatabases } from './list-databases.js';
4
+ import { notionQueryDatabase } from './query-database.js';
5
+ import { notionGetPage } from './get-page.js';
6
+ import { notionCreatePage } from './create-page.js';
7
+ import { notionUpdatePage } from './update-page.js';
8
+ import { notionAppendBlockChildren } from './append-block-children.js';
9
+ import { notionGetDatabase } from './get-database.js';
10
10
  export { notionSearch, notionListDatabases, notionQueryDatabase, notionGetPage, notionCreatePage, notionUpdatePage, notionAppendBlockChildren, notionGetDatabase, };
11
11
  export const notionTools = [
12
12
  {
@@ -1,6 +1,6 @@
1
1
  export declare const notionQueryDatabase: import("ai").Tool<{
2
- database_id: string;
3
2
  page_size: number;
3
+ database_id: string;
4
4
  filter?: any;
5
5
  notionToken?: string | undefined;
6
6
  sorts?: any[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnsk/toolkits",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Runstack toolkit registry — manifest-driven tool definitions for AI agents",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,8 +22,9 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "gen": "tsx scripts/gen-index.ts",
25
- "validate": "tsx scripts/validate.ts",
26
- "build": "npm run gen && tsc",
25
+ "validate": "tsx scripts/validate.ts && tsx scripts/validate-esm.ts --source",
26
+ "validate:dist": "tsx scripts/validate-esm.ts --dist",
27
+ "build": "npm run gen && tsc && npm run validate:dist",
27
28
  "prepublishOnly": "npm run validate && npm run build"
28
29
  },
29
30
  "peerDependencies": {
@@ -41,5 +42,20 @@
41
42
  "tsx": "^4.19.3",
42
43
  "typescript": "^5",
43
44
  "zod": "^3.24.2"
44
- }
45
+ },
46
+ "author": "Deepraj Bera",
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "https://github.com/deepraj21/rnsk-toolkits"
50
+ },
51
+ "homepage": "https://runstack.engineer",
52
+ "keywords": [
53
+ "runstack",
54
+ "ai-sdk",
55
+ "vercel-ai-sdk",
56
+ "mcp",
57
+ "tools",
58
+ "agents",
59
+ "llm"
60
+ ]
45
61
  }
@@ -1,28 +0,0 @@
1
- import type { ToolkitManifest } from '../core/types.js';
2
- import type { ToolRegistry } from './registry.js';
3
- export interface CredentialResolver {
4
- getToken: (tokenField: string) => Promise<string | null>;
5
- getServiceEnv: (envName: string) => string | undefined;
6
- }
7
- export interface MetaToolPolicyResult {
8
- allowed: boolean;
9
- error?: string;
10
- reason?: string;
11
- }
12
- export interface MetaToolHooks {
13
- checkToolPolicy?: (toolName: string) => MetaToolPolicyResult;
14
- sanitizeToolResult?: (result: unknown) => unknown;
15
- sanitizeToolPayload?: (payload: Record<string, unknown>) => Record<string, unknown>;
16
- isWebSearchEnabled?: () => boolean;
17
- getAppUrl?: () => string;
18
- getProviderSlugs?: () => string[];
19
- isToolkitAvailable?: (toolkitId: string) => {
20
- available: boolean;
21
- reason?: string;
22
- };
23
- }
24
- export declare function registerAllToolsFromManifests(registry: ToolRegistry, manifests: ToolkitManifest[], options?: {
25
- skipUnavailable?: boolean;
26
- isToolkitAvailable?: (id: string) => boolean;
27
- }): void;
28
- //# sourceMappingURL=credentials.d.ts.map
@@ -1,15 +0,0 @@
1
- export function registerAllToolsFromManifests(registry, manifests, options) {
2
- for (const manifest of manifests) {
3
- if (options?.skipUnavailable && options.isToolkitAvailable && !options.isToolkitAvailable(manifest.id)) {
4
- continue;
5
- }
6
- for (const toolDef of manifest.tools) {
7
- registry.register(toolDef.name, toolDef.description ?? toolDef.tool.description ?? '', toolDef.tool, {
8
- requiredAuth: toolDef.requiredAuth,
9
- scope: toolDef.scope,
10
- toolkitId: manifest.id,
11
- });
12
- }
13
- }
14
- }
15
- //# sourceMappingURL=credentials.js.map
@@ -1,5 +0,0 @@
1
- export { getToolInputZodSchema, resolveZodObjectShape, toolInputToJsonSchema, extractParameterInfo, coerceArguments, TOOL_OUTPUT_JSON_SCHEMA, type ParameterInfo, } from './schema-helpers.js';
2
- export { createToolRegistry, type ToolRegistry, type ToolRegistryEntry } from './registry.js';
3
- export { registerAllToolsFromManifests, type CredentialResolver, type MetaToolHooks, type MetaToolPolicyResult, } from './credentials.js';
4
- export { createMetaTools } from './meta-tools.js';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1,5 +0,0 @@
1
- export { getToolInputZodSchema, resolveZodObjectShape, toolInputToJsonSchema, extractParameterInfo, coerceArguments, TOOL_OUTPUT_JSON_SCHEMA, } from './schema-helpers.js';
2
- export { createToolRegistry } from './registry.js';
3
- export { registerAllToolsFromManifests, } from './credentials.js';
4
- export { createMetaTools } from './meta-tools.js';
5
- //# sourceMappingURL=index.js.map
@@ -1,101 +0,0 @@
1
- import type { CredentialResolver, MetaToolHooks } from './credentials.js';
2
- import type { ToolRegistry } from './registry.js';
3
- export interface MetaToolsConfig {
4
- registry: ToolRegistry;
5
- credentials: CredentialResolver;
6
- hooks?: MetaToolHooks;
7
- }
8
- export declare function createMetaTools({ registry, credentials, hooks }: MetaToolsConfig): {
9
- searchTool: import("ai").Tool<{
10
- pattern: string;
11
- searchIn: "names" | "descriptions" | "both";
12
- }, {
13
- pattern: string;
14
- searchIn: "names" | "descriptions" | "both";
15
- matches: number;
16
- tools: {
17
- name: string;
18
- description: string;
19
- parameters: Record<string, unknown> | undefined;
20
- requiredAuth: string | undefined;
21
- }[];
22
- error?: undefined;
23
- message?: undefined;
24
- } | {
25
- error: string;
26
- message: string;
27
- pattern: string;
28
- searchIn?: undefined;
29
- matches?: undefined;
30
- tools?: undefined;
31
- }>;
32
- checkAuthentication: import("ai").Tool<{
33
- toolName: string;
34
- }, {
35
- error: string;
36
- toolName: string;
37
- availableTools: string[];
38
- authenticated?: undefined;
39
- reason?: undefined;
40
- message?: undefined;
41
- requiredAuth?: undefined;
42
- } | {
43
- authenticated: boolean;
44
- toolName: string;
45
- reason: string;
46
- message: string | undefined;
47
- error?: undefined;
48
- availableTools?: undefined;
49
- requiredAuth?: undefined;
50
- } | {
51
- authenticated: boolean;
52
- toolName: string;
53
- reason: string;
54
- error?: undefined;
55
- availableTools?: undefined;
56
- message?: undefined;
57
- requiredAuth?: undefined;
58
- } | {
59
- authenticated: boolean;
60
- toolName: string;
61
- requiredAuth: string;
62
- reason: string;
63
- error?: undefined;
64
- availableTools?: undefined;
65
- message?: undefined;
66
- } | {
67
- authenticated: boolean;
68
- toolName: string;
69
- error?: undefined;
70
- availableTools?: undefined;
71
- reason?: undefined;
72
- message?: undefined;
73
- requiredAuth?: undefined;
74
- } | {
75
- error: string;
76
- toolName: string;
77
- message: string;
78
- availableTools?: undefined;
79
- authenticated?: undefined;
80
- reason?: undefined;
81
- requiredAuth?: undefined;
82
- }>;
83
- initiateConnection: import("ai").Tool<{
84
- provider: string;
85
- }, {
86
- link: string;
87
- provider: string;
88
- error?: undefined;
89
- supportedProviders?: undefined;
90
- } | {
91
- error: string;
92
- provider: string;
93
- supportedProviders: string[];
94
- link?: undefined;
95
- }>;
96
- executeTool: import("ai").Tool<{
97
- args: Record<string, unknown>;
98
- toolName: string;
99
- }, Record<string, unknown>>;
100
- };
101
- //# sourceMappingURL=meta-tools.d.ts.map