@rnsk/toolkits 0.0.2 → 0.0.4

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 (174) hide show
  1. package/README.md +104 -0
  2. package/dist/core/index.d.ts +1 -0
  3. package/dist/core/index.js +1 -0
  4. package/dist/index.d.ts +0 -1
  5. package/dist/index.js +0 -1
  6. package/dist/toolkits/github/tools/Actions/get-workflow-job.d.ts +3 -3
  7. package/dist/toolkits/github/tools/Actions/list-artifacts.d.ts +1 -1
  8. package/dist/toolkits/github/tools/Actions/list-workflow-jobs.d.ts +4 -4
  9. package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.d.ts +1 -1
  10. package/dist/toolkits/github/tools/Activity/list-notifications.d.ts +2 -2
  11. package/dist/toolkits/github/tools/Activity/list-public-events.d.ts +1 -1
  12. package/dist/toolkits/github/tools/Activity/list-repo-events.d.ts +1 -1
  13. package/dist/toolkits/github/tools/Activity/list-user-events.d.ts +1 -1
  14. package/dist/toolkits/github/tools/Apps/list-installations.d.ts +1 -1
  15. package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +5 -5
  16. package/dist/toolkits/github/tools/Checks/create-check-suite.d.ts +2 -2
  17. package/dist/toolkits/github/tools/Checks/get-check-run.d.ts +2 -2
  18. package/dist/toolkits/github/tools/Checks/get-check-suite.d.ts +2 -2
  19. package/dist/toolkits/github/tools/Checks/list-check-runs.d.ts +4 -4
  20. package/dist/toolkits/github/tools/Checks/update-check-run.d.ts +4 -4
  21. package/dist/toolkits/github/tools/CodeScanning/list-alerts.d.ts +2 -2
  22. package/dist/toolkits/github/tools/CodeScanning/update-alert.d.ts +1 -1
  23. package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +1 -1
  24. package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +1 -1
  25. package/dist/toolkits/github/tools/Collaborators/list-collaborators.d.ts +1 -1
  26. package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +1 -1
  27. package/dist/toolkits/github/tools/Commits/compare-commits.d.ts +2 -2
  28. package/dist/toolkits/github/tools/Commits/get-commit.d.ts +2 -2
  29. package/dist/toolkits/github/tools/Commits/list-commits.d.ts +1 -1
  30. package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.d.ts +2 -2
  31. package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +1 -1
  32. package/dist/toolkits/github/tools/Dependabot/update-alert.d.ts +1 -1
  33. package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.d.ts +1 -1
  34. package/dist/toolkits/github/tools/Deployments/create-deployment.d.ts +1 -1
  35. package/dist/toolkits/github/tools/Deployments/list-deployments.d.ts +1 -1
  36. package/dist/toolkits/github/tools/Environments/list-environments.d.ts +1 -1
  37. package/dist/toolkits/github/tools/Files/create-or-update-file.d.ts +1 -1
  38. package/dist/toolkits/github/tools/Gists/create-gist.d.ts +1 -1
  39. package/dist/toolkits/github/tools/Git/create-blob.d.ts +1 -1
  40. package/dist/toolkits/github/tools/Git/create-tree.d.ts +1 -1
  41. package/dist/toolkits/github/tools/Issues/add-issue-assignees.d.ts +1 -1
  42. package/dist/toolkits/github/tools/Issues/add-issue-labels.d.ts +1 -1
  43. package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.d.ts +4 -4
  44. package/dist/toolkits/github/tools/Issues/list-issue-comments.d.ts +1 -1
  45. package/dist/toolkits/github/tools/Issues/list-org-issues.d.ts +4 -4
  46. package/dist/toolkits/github/tools/Issues/list-repo-issues.d.ts +2 -2
  47. package/dist/toolkits/github/tools/Issues/list-user-account-issues.d.ts +4 -4
  48. package/dist/toolkits/github/tools/Organizations/get-org-membership.d.ts +1 -1
  49. package/dist/toolkits/github/tools/Organizations/list-org-members.d.ts +1 -1
  50. package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +2 -2
  51. package/dist/toolkits/github/tools/Organizations/list-user-organizations.d.ts +1 -1
  52. package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +1 -1
  53. package/dist/toolkits/github/tools/PRs/create-pull-request-review.d.ts +1 -1
  54. package/dist/toolkits/github/tools/PRs/list-pull-request-files.d.ts +1 -1
  55. package/dist/toolkits/github/tools/PRs/list-pull-requests.d.ts +1 -1
  56. package/dist/toolkits/github/tools/Projects/list-org-projects.d.ts +1 -1
  57. package/dist/toolkits/github/tools/Projects/list-project-columns.d.ts +1 -1
  58. package/dist/toolkits/github/tools/Projects/list-repo-projects.d.ts +1 -1
  59. package/dist/toolkits/github/tools/Projects/update-project.d.ts +1 -1
  60. package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.d.ts +1 -1
  61. package/dist/toolkits/github/tools/Reactions/create-issue-reaction.d.ts +1 -1
  62. package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.d.ts +1 -1
  63. package/dist/toolkits/github/tools/Reactions/list-issue-reactions.d.ts +1 -1
  64. package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.d.ts +1 -1
  65. package/dist/toolkits/github/tools/Releases/list-releases.d.ts +1 -1
  66. package/dist/toolkits/github/tools/Repos/get-repo-contributors.d.ts +1 -1
  67. package/dist/toolkits/github/tools/Repos/list-branches.d.ts +1 -1
  68. package/dist/toolkits/github/tools/Repos/list-repos.d.ts +2 -2
  69. package/dist/toolkits/github/tools/Repos/watch-repo.d.ts +1 -1
  70. package/dist/toolkits/github/tools/Search/search-repos.d.ts +1 -1
  71. package/dist/toolkits/github/tools/SecretScanning/list-alerts.d.ts +1 -1
  72. package/dist/toolkits/github/tools/SecretScanning/update-alert.d.ts +1 -1
  73. package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +1 -1
  74. package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +1 -1
  75. package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +1 -1
  76. package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +2 -2
  77. package/dist/toolkits/github/tools/Stars/list-stargazers.d.ts +1 -1
  78. package/dist/toolkits/github/tools/Stars/list-starred-repos.d.ts +1 -1
  79. package/dist/toolkits/github/tools/Statuses/create-commit-status.d.ts +1 -1
  80. package/dist/toolkits/github/tools/Statuses/list-commit-statuses.d.ts +1 -1
  81. package/dist/toolkits/github/tools/Teams/list-team-members.d.ts +1 -1
  82. package/dist/toolkits/github/tools/Teams/list-team-repos.d.ts +1 -1
  83. package/dist/toolkits/github/tools/Teams/list-teams.d.ts +1 -1
  84. package/dist/toolkits/github/tools/Users/get-user-context.d.ts +1 -1
  85. package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +1 -1
  86. package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +1 -1
  87. package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.d.ts +1 -1
  88. package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.d.ts +1 -1
  89. package/dist/toolkits/github/tools/Workflows/list-workflow-runs.d.ts +2 -2
  90. package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +1 -1
  91. package/dist/toolkits/github/tools/index.d.ts +4859 -175
  92. package/dist/toolkits/github/tools/index.js +342 -342
  93. package/dist/toolkits/gmail/icon.js +14 -14
  94. package/dist/toolkits/gmail/manifest.js +78 -5
  95. package/dist/toolkits/gmail/tools/create-draft.d.ts +34 -0
  96. package/dist/toolkits/gmail/tools/create-draft.js +60 -0
  97. package/dist/toolkits/gmail/tools/delete-draft.d.ts +23 -0
  98. package/dist/toolkits/gmail/tools/delete-draft.js +34 -0
  99. package/dist/toolkits/gmail/tools/get-draft.d.ts +32 -0
  100. package/dist/toolkits/gmail/tools/get-draft.js +36 -0
  101. package/dist/toolkits/gmail/tools/get-message.d.ts +12 -12
  102. package/dist/toolkits/gmail/tools/get-message.js +3 -24
  103. package/dist/toolkits/gmail/tools/get-thread.d.ts +29 -0
  104. package/dist/toolkits/gmail/tools/get-thread.js +39 -0
  105. package/dist/toolkits/gmail/tools/index.d.ts +17 -0
  106. package/dist/toolkits/gmail/tools/index.js +17 -0
  107. package/dist/toolkits/gmail/tools/list-drafts.d.ts +28 -0
  108. package/dist/toolkits/gmail/tools/list-drafts.js +43 -0
  109. package/dist/toolkits/gmail/tools/list-labels.d.ts +20 -0
  110. package/dist/toolkits/gmail/tools/list-labels.js +46 -0
  111. package/dist/toolkits/gmail/tools/list-threads.d.ts +28 -0
  112. package/dist/toolkits/gmail/tools/list-threads.js +43 -0
  113. package/dist/toolkits/gmail/tools/modify-message-labels.d.ts +31 -0
  114. package/dist/toolkits/gmail/tools/modify-message-labels.js +44 -0
  115. package/dist/toolkits/gmail/tools/reply-to-thread.d.ts +33 -0
  116. package/dist/toolkits/gmail/tools/reply-to-thread.js +58 -0
  117. package/dist/toolkits/gmail/tools/send-draft.d.ts +29 -0
  118. package/dist/toolkits/gmail/tools/send-draft.js +41 -0
  119. package/dist/toolkits/gmail/tools/send-message.d.ts +4 -1
  120. package/dist/toolkits/gmail/tools/send-message.js +18 -16
  121. package/dist/toolkits/gmail/tools/trash-message.d.ts +29 -0
  122. package/dist/toolkits/gmail/tools/trash-message.js +37 -0
  123. package/dist/toolkits/gmail/tools/untrash-message.d.ts +29 -0
  124. package/dist/toolkits/gmail/tools/untrash-message.js +37 -0
  125. package/dist/toolkits/gmail/tools/utils.d.ts +41 -0
  126. package/dist/toolkits/gmail/tools/utils.js +97 -0
  127. package/dist/toolkits/google-calendar/manifest.js +1 -1
  128. package/dist/toolkits/google-calendar/tools/delete-event.d.ts +27 -0
  129. package/dist/toolkits/google-calendar/tools/delete-event.js +38 -0
  130. package/dist/toolkits/google-calendar/tools/get-event.d.ts +24 -0
  131. package/dist/toolkits/google-calendar/tools/get-event.js +37 -0
  132. package/dist/toolkits/google-calendar/tools/index.d.ts +181 -3
  133. package/dist/toolkits/google-calendar/tools/index.js +31 -2
  134. package/dist/toolkits/google-calendar/tools/search-events.d.ts +27 -0
  135. package/dist/toolkits/google-calendar/tools/search-events.js +49 -0
  136. package/dist/toolkits/google-calendar/tools/update-event.d.ts +29 -0
  137. package/dist/toolkits/google-calendar/tools/update-event.js +56 -0
  138. package/dist/toolkits/google-sheets/manifest.js +2 -2
  139. package/dist/toolkits/google-sheets/tools/append-values.d.ts +41 -0
  140. package/dist/toolkits/google-sheets/tools/append-values.js +51 -0
  141. package/dist/toolkits/google-sheets/tools/clear-values.d.ts +27 -0
  142. package/dist/toolkits/google-sheets/tools/clear-values.js +41 -0
  143. package/dist/toolkits/google-sheets/tools/create-spreadsheet.d.ts +33 -0
  144. package/dist/toolkits/google-sheets/tools/create-spreadsheet.js +59 -0
  145. package/dist/toolkits/google-sheets/tools/index.d.ts +205 -7
  146. package/dist/toolkits/google-sheets/tools/index.js +39 -4
  147. package/dist/toolkits/google-sheets/tools/update-values.d.ts +38 -0
  148. package/dist/toolkits/google-sheets/tools/update-values.js +50 -0
  149. package/dist/toolkits/linear/manifest.js +35 -0
  150. package/dist/toolkits/linear/tools/add-comment.d.ts +6 -0
  151. package/dist/toolkits/linear/tools/add-comment.js +52 -0
  152. package/dist/toolkits/linear/tools/get-issue.d.ts +6 -0
  153. package/dist/toolkits/linear/tools/get-issue.js +117 -0
  154. package/dist/toolkits/linear/tools/list-projects.d.ts +4 -0
  155. package/dist/toolkits/linear/tools/list-projects.js +46 -0
  156. package/dist/toolkits/linear/tools/list-workflow-states.d.ts +26 -0
  157. package/dist/toolkits/linear/tools/list-workflow-states.js +59 -0
  158. package/dist/toolkits/linear/tools/update-issue.d.ts +11 -0
  159. package/dist/toolkits/linear/tools/update-issue.js +78 -0
  160. package/dist/toolkits/notion/tools/append-block-children.d.ts +1 -1
  161. package/dist/toolkits/notion/tools/index.d.ts +105 -12
  162. package/dist/toolkits/notion/tools/index.js +8 -8
  163. package/dist/toolkits/notion/tools/query-database.d.ts +1 -1
  164. package/package.json +5 -7
  165. package/dist/runtime/credentials.d.ts +0 -28
  166. package/dist/runtime/credentials.js +0 -15
  167. package/dist/runtime/index.d.ts +0 -5
  168. package/dist/runtime/index.js +0 -5
  169. package/dist/runtime/meta-tools.d.ts +0 -101
  170. package/dist/runtime/meta-tools.js +0 -250
  171. package/dist/runtime/registry.d.ts +0 -20
  172. package/dist/runtime/registry.js +0 -35
  173. /package/dist/{runtime → core}/schema-helpers.d.ts +0 -0
  174. /package/dist/{runtime → core}/schema-helpers.js +0 -0
package/README.md ADDED
@@ -0,0 +1,104 @@
1
+ # @rnsk/toolkits
2
+
3
+ Manifest-driven toolkit registry for AI agents — connector definitions you publish as npm and wire into [Runstack](https://runstack.engineer).
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@rnsk/toolkits.svg)](https://www.npmjs.com/package/@rnsk/toolkits)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)
7
+
8
+ > This is **not** [`@rnsk/tools`](https://www.npmjs.com/package/@rnsk/tools) (the MCP client SDK). `@rnsk/toolkits` ships **connector implementations** — manifests, tools, OAuth specs, and icons.
9
+
10
+ ## What this package contains
11
+
12
+ | Export | Purpose |
13
+ |--------|---------|
14
+ | `@rnsk/toolkits` | All toolkit manifests, `registerAllTools()`, `getAllTools()` |
15
+ | `@rnsk/toolkits/core` | Types, `defineToolkit`, validation, schema helpers |
16
+
17
+ ## Seed toolkits (v0.0.4)
18
+
19
+ **228 tools** across **8 toolkits**.
20
+
21
+ | Toolkit | Tools | Auth |
22
+ |---------|------:|------|
23
+ | mathematics | 9 | none |
24
+ | linear | 8 | OAuth2 |
25
+ | gmail | 15 | OAuth2 |
26
+ | web-search (Firecrawl) | 2 | service env |
27
+ | github | 173 | OAuth2 |
28
+ | notion | 8 | OAuth2 |
29
+ | google-calendar | 6 | OAuth2 |
30
+ | google-sheets | 7 | OAuth2 |
31
+
32
+ ## Install
33
+
34
+ ```bash
35
+ npm install @rnsk/toolkits
36
+ ```
37
+
38
+ Peer dependencies: `ai`, `zod`.
39
+
40
+ ## Usage
41
+
42
+ Register every toolkit tool into your application's registry:
43
+
44
+ ```ts
45
+ import { toolkits, registerAllTools } from '@rnsk/toolkits';
46
+
47
+ registerAllTools(myRegistry);
48
+ ```
49
+
50
+ Inspect manifests or build custom registration:
51
+
52
+ ```ts
53
+ import { toolkits } from '@rnsk/toolkits';
54
+ import { defineToolkit, validateManifests } from '@rnsk/toolkits/core';
55
+
56
+ for (const manifest of toolkits) {
57
+ console.log(manifest.id, manifest.tools.length);
58
+ }
59
+ ```
60
+
61
+ Runstack loads this package server-side, registers tools, and routes agent requests through its own meta-tool layer. You can publish a **private fork** or scoped package and point Runstack at your version to host connectors outside the public registry.
62
+
63
+ ## Toolkit structure
64
+
65
+ Each toolkit lives under `src/toolkits/<id>/`:
66
+
67
+ ```
68
+ <id>/
69
+ manifest.ts # defineToolkit({ displayName, auth, tools, ... })
70
+ icon.ts # SVG/PNG data URI
71
+ tools/
72
+ *.ts # one tool per file (AI SDK tool() + execute)
73
+ index.ts # exports array
74
+ ```
75
+
76
+ After adding a toolkit, register it in `src/index.ts`, then run `npm run validate && npm run build`.
77
+
78
+ ## Local testing
79
+
80
+ The repo includes a **sandbox** (not published to npm) for exercising tools at runtime:
81
+
82
+ ```bash
83
+ cd ../../sandbox
84
+ cp .env.local.example .env.local
85
+ npm run dev
86
+ ```
87
+
88
+ Use `POST /api/tools/execute` to invoke a tool directly with the same credential-injection pattern Runstack uses. See the [repository README](../../README.md) for sandbox endpoints.
89
+
90
+ ## Versioning
91
+
92
+ Pre-1.0 (`0.0.x`): patch releases add toolkits and tools. Pin an exact version in production (`"0.0.4"`).
93
+
94
+ ## Contributing
95
+
96
+ See [CONTRIBUTING.md](../../CONTRIBUTING.md) in the repository root.
97
+
98
+ ## Security
99
+
100
+ Report vulnerabilities privately — [SECURITY.md](../../SECURITY.md). Toolkit `execute` functions run server-side with user credentials; every PR is reviewed for token handling and outbound hosts.
101
+
102
+ ## License
103
+
104
+ MIT
@@ -2,5 +2,6 @@ export { CONNECTOR_CATEGORIES, type ConnectorCategory } from './categories.js';
2
2
  export { defineToolkit, defineTool, toolkitCamelId } from './define.js';
3
3
  export { inferToolScope } from './scope.js';
4
4
  export { validateManifests, getAuthType, } from './validate.js';
5
+ export { TOOL_OUTPUT_JSON_SCHEMA, getToolInputZodSchema, resolveZodObjectShape, toolInputToJsonSchema, extractParameterInfo, coerceArguments, type ParameterInfo, } from './schema-helpers.js';
5
6
  export type { ToolkitManifest, ToolDefinition, ToolkitIcon, ToolkitAuthSpec, ToolkitAuthType, ToolScope, OAuthProviderSpec, EnvVarSpec, ToolkitAvailability, } from './types.js';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -2,4 +2,5 @@ export { CONNECTOR_CATEGORIES } from './categories.js';
2
2
  export { defineToolkit, defineTool, toolkitCamelId } from './define.js';
3
3
  export { inferToolScope } from './scope.js';
4
4
  export { validateManifests, getAuthType, } from './validate.js';
5
+ export { TOOL_OUTPUT_JSON_SCHEMA, getToolInputZodSchema, resolveZodObjectShape, toolInputToJsonSchema, extractParameterInfo, coerceArguments, } from './schema-helpers.js';
5
6
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -10,7 +10,6 @@ import type { ToolkitManifest } from './core/types.js';
10
10
  export declare const toolkits: ToolkitManifest[];
11
11
  export { mathematics, linear, gmail, webSearch, github, notion, googleCalendar, googleSheets, };
12
12
  export * from './core/index.js';
13
- export * from './runtime/index.js';
14
13
  export declare function getAllTools(): {
15
14
  name: string;
16
15
  description: string;
package/dist/index.js CHANGED
@@ -18,7 +18,6 @@ export const toolkits = [
18
18
  ];
19
19
  export { mathematics, linear, gmail, webSearch, github, notion, googleCalendar, googleSheets, };
20
20
  export * from './core/index.js';
21
- export * from './runtime/index.js';
22
21
  export function getAllTools() {
23
22
  return toolkits.flatMap((t) => t.tools.map((toolDef) => ({
24
23
  name: toolDef.name,
@@ -18,14 +18,14 @@ export declare const getWorkflowJob: import("ai").Tool<{
18
18
  id: number;
19
19
  run_id: number;
20
20
  name: string;
21
- status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending";
22
- conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
21
+ status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending";
22
+ conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null;
23
23
  started_at: string;
24
24
  completed_at: string | null;
25
25
  html_url: string | null;
26
26
  steps: {
27
27
  name: string;
28
- status: "queued" | "in_progress" | "completed";
28
+ status: "completed" | "in_progress" | "queued";
29
29
  conclusion: string | null;
30
30
  number: number;
31
31
  started_at: string | null | undefined;
@@ -2,8 +2,8 @@ export declare const listArtifacts: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  githubToken?: string | undefined;
5
- per_page?: number | undefined;
6
5
  page?: number | undefined;
6
+ per_page?: number | undefined;
7
7
  }, {
8
8
  error: string;
9
9
  total_count?: undefined;
@@ -2,10 +2,10 @@ export declare const listWorkflowJobs: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  run_id: number;
5
- filter?: "latest" | "all" | undefined;
5
+ filter?: "all" | "latest" | undefined;
6
6
  githubToken?: string | undefined;
7
- per_page?: number | undefined;
8
7
  page?: number | undefined;
8
+ per_page?: number | undefined;
9
9
  }, {
10
10
  error: string;
11
11
  total_count?: undefined;
@@ -16,8 +16,8 @@ export declare const listWorkflowJobs: import("ai").Tool<{
16
16
  id: number;
17
17
  run_id: number;
18
18
  name: string;
19
- status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending";
20
- conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
19
+ status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending";
20
+ conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null;
21
21
  started_at: string;
22
22
  completed_at: string | null;
23
23
  html_url: string | null;
@@ -3,8 +3,8 @@ export declare const listWorkflowRunArtifacts: import("ai").Tool<{
3
3
  owner: string;
4
4
  run_id: number;
5
5
  githubToken?: string | undefined;
6
- per_page?: number | undefined;
7
6
  page?: number | undefined;
7
+ per_page?: number | undefined;
8
8
  }, {
9
9
  error: string;
10
10
  total_count?: undefined;
@@ -1,8 +1,8 @@
1
1
  export declare const listNotifications: import("ai").Tool<{
2
+ all?: boolean | undefined;
2
3
  githubToken?: string | undefined;
3
- per_page?: number | undefined;
4
4
  page?: number | undefined;
5
- all?: boolean | undefined;
5
+ per_page?: number | undefined;
6
6
  participating?: boolean | undefined;
7
7
  }, {
8
8
  error: string;
@@ -1,7 +1,7 @@
1
1
  export declare const listPublicEvents: import("ai").Tool<{
2
2
  githubToken?: string | undefined;
3
- per_page?: number | undefined;
4
3
  page?: number | undefined;
4
+ per_page?: number | undefined;
5
5
  }, {
6
6
  error: string;
7
7
  events?: undefined;
@@ -2,8 +2,8 @@ export declare const listRepoEvents: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  githubToken?: string | undefined;
5
- per_page?: number | undefined;
6
5
  page?: number | undefined;
6
+ per_page?: number | undefined;
7
7
  }, {
8
8
  error: string;
9
9
  events?: undefined;
@@ -1,7 +1,7 @@
1
1
  export declare const listUserEvents: import("ai").Tool<{
2
2
  githubToken?: string | undefined;
3
- per_page?: number | undefined;
4
3
  page?: number | undefined;
4
+ per_page?: number | undefined;
5
5
  }, {
6
6
  error: string;
7
7
  events?: undefined;
@@ -1,7 +1,7 @@
1
1
  export declare const listInstallations: import("ai").Tool<{
2
2
  githubToken?: string | undefined;
3
- per_page?: number | undefined;
4
3
  page?: number | undefined;
4
+ per_page?: number | undefined;
5
5
  }, {
6
6
  error: string;
7
7
  installations?: undefined;
@@ -1,11 +1,11 @@
1
1
  export declare const createCheckRun: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
4
3
  name: string;
4
+ owner: string;
5
5
  head_sha: string;
6
- status?: "queued" | "in_progress" | "completed" | undefined;
6
+ status?: "completed" | "in_progress" | "queued" | undefined;
7
7
  githubToken?: string | undefined;
8
- conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | "stale" | undefined;
8
+ conclusion?: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "stale" | "timed_out" | undefined;
9
9
  }, {
10
10
  error: string;
11
11
  id?: undefined;
@@ -16,8 +16,8 @@ export declare const createCheckRun: import("ai").Tool<{
16
16
  } | {
17
17
  id: number;
18
18
  name: string;
19
- status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending";
20
- conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
19
+ status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending";
20
+ conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null;
21
21
  html_url: string | null;
22
22
  error?: undefined;
23
23
  }>;
@@ -12,8 +12,8 @@ export declare const createCheckSuite: import("ai").Tool<{
12
12
  created_at?: undefined;
13
13
  } | {
14
14
  id: number;
15
- status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending" | null;
16
- conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | "stale" | "startup_failure" | null;
15
+ status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending" | null;
16
+ conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "stale" | "timed_out" | "startup_failure" | null;
17
17
  head_sha: string;
18
18
  created_at: string | null;
19
19
  error?: undefined;
@@ -15,8 +15,8 @@ export declare const getCheckRun: import("ai").Tool<{
15
15
  } | {
16
16
  id: number;
17
17
  name: string;
18
- status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending";
19
- conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
18
+ status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending";
19
+ conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null;
20
20
  started_at: string | null;
21
21
  completed_at: string | null;
22
22
  html_url: string | null;
@@ -14,8 +14,8 @@ export declare const getCheckSuite: import("ai").Tool<{
14
14
  updated_at?: undefined;
15
15
  } | {
16
16
  id: number;
17
- status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending" | null;
18
- conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | "stale" | "startup_failure" | null;
17
+ status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending" | null;
18
+ conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "stale" | "timed_out" | "startup_failure" | null;
19
19
  head_sha: string;
20
20
  head_branch: string | null;
21
21
  created_at: string | null;
@@ -2,10 +2,10 @@ export declare const listCheckRuns: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  ref: string;
5
- status?: "queued" | "in_progress" | "completed" | undefined;
5
+ status?: "completed" | "in_progress" | "queued" | undefined;
6
6
  githubToken?: string | undefined;
7
- per_page?: number | undefined;
8
7
  page?: number | undefined;
8
+ per_page?: number | undefined;
9
9
  check_name?: string | undefined;
10
10
  }, {
11
11
  error: string;
@@ -16,8 +16,8 @@ export declare const listCheckRuns: import("ai").Tool<{
16
16
  check_runs: {
17
17
  id: number;
18
18
  name: string;
19
- status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending";
20
- conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
19
+ status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending";
20
+ conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null;
21
21
  started_at: string | null;
22
22
  completed_at: string | null;
23
23
  html_url: string | null;
@@ -2,9 +2,9 @@ export declare const updateCheckRun: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  check_run_id: number;
5
- status?: "queued" | "in_progress" | "completed" | undefined;
5
+ status?: "completed" | "in_progress" | "queued" | undefined;
6
6
  githubToken?: string | undefined;
7
- conclusion?: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | "stale" | undefined;
7
+ conclusion?: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "stale" | "timed_out" | undefined;
8
8
  }, {
9
9
  error: string;
10
10
  id?: undefined;
@@ -15,8 +15,8 @@ export declare const updateCheckRun: import("ai").Tool<{
15
15
  } | {
16
16
  id: number;
17
17
  name: string;
18
- status: "queued" | "in_progress" | "completed" | "waiting" | "requested" | "pending";
19
- conclusion: "success" | "failure" | "neutral" | "cancelled" | "skipped" | "timed_out" | "action_required" | null;
18
+ status: "completed" | "in_progress" | "queued" | "requested" | "waiting" | "pending";
19
+ conclusion: "success" | "action_required" | "cancelled" | "failure" | "neutral" | "skipped" | "timed_out" | null;
20
20
  html_url: string | null;
21
21
  error?: undefined;
22
22
  }>;
@@ -2,10 +2,10 @@ export declare const listCodeScanningAlerts: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  githubToken?: string | undefined;
5
- per_page?: number | undefined;
6
5
  page?: number | undefined;
7
- ref?: string | undefined;
6
+ per_page?: number | undefined;
8
7
  state?: "open" | "dismissed" | "fixed" | undefined;
8
+ ref?: string | undefined;
9
9
  }, {
10
10
  error: string;
11
11
  alerts?: undefined;
@@ -1,8 +1,8 @@
1
1
  export declare const updateCodeScanningAlert: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
- alert_number: number;
5
4
  state: "open" | "dismissed";
5
+ alert_number: number;
6
6
  githubToken?: string | undefined;
7
7
  dismissed_reason?: "false positive" | "won't fix" | "used in tests" | undefined;
8
8
  }, {
@@ -1,7 +1,7 @@
1
1
  export declare const addCollaborator: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
4
3
  username: string;
4
+ owner: string;
5
5
  githubToken?: string | undefined;
6
6
  permission?: "push" | "admin" | "pull" | "maintain" | "triage" | undefined;
7
7
  }, {
@@ -1,7 +1,7 @@
1
1
  export declare const checkCollaborator: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
4
3
  username: string;
4
+ owner: string;
5
5
  githubToken?: string | undefined;
6
6
  }, {
7
7
  error: string;
@@ -2,8 +2,8 @@ export declare const listCollaborators: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  githubToken?: string | undefined;
5
- per_page?: number | undefined;
6
5
  page?: number | undefined;
6
+ per_page?: number | undefined;
7
7
  affiliation?: "all" | "outside" | "direct" | undefined;
8
8
  }, {
9
9
  error: string;
@@ -1,7 +1,7 @@
1
1
  export declare const removeCollaborator: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
4
3
  username: string;
4
+ owner: string;
5
5
  githubToken?: string | undefined;
6
6
  }, {
7
7
  error: string;
@@ -1,10 +1,10 @@
1
1
  export declare const compareCommits: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
3
+ perPage: number;
4
4
  page: number;
5
+ owner: string;
5
6
  base: string;
6
7
  head: string;
7
- perPage: number;
8
8
  githubToken?: string | undefined;
9
9
  }, {
10
10
  error: string;
@@ -1,9 +1,9 @@
1
1
  export declare const getCommit: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
3
+ perPage: number;
4
4
  page: number;
5
+ owner: string;
5
6
  ref: string;
6
- perPage: number;
7
7
  githubToken?: string | undefined;
8
8
  }, {
9
9
  error: string;
@@ -1,7 +1,7 @@
1
1
  export declare const listCommits: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
4
3
  perPage: number;
4
+ owner: string;
5
5
  path?: string | undefined;
6
6
  githubToken?: string | undefined;
7
7
  sha?: string | undefined;
@@ -1,8 +1,8 @@
1
1
  export declare const listPullRequestsAssociatedWithCommit: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
4
- page: number;
5
3
  perPage: number;
4
+ page: number;
5
+ owner: string;
6
6
  commit_sha: string;
7
7
  githubToken?: string | undefined;
8
8
  }, {
@@ -2,8 +2,8 @@ export declare const listDependabotAlerts: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  githubToken?: string | undefined;
5
- per_page?: number | undefined;
6
5
  page?: number | undefined;
6
+ per_page?: number | undefined;
7
7
  state?: "open" | "dismissed" | "fixed" | "auto_dismissed" | undefined;
8
8
  severity?: "low" | "medium" | "high" | "critical" | undefined;
9
9
  }, {
@@ -1,8 +1,8 @@
1
1
  export declare const updateDependabotAlert: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
- alert_number: number;
5
4
  state: "open" | "dismissed";
5
+ alert_number: number;
6
6
  githubToken?: string | undefined;
7
7
  dismissed_reason?: "fix_started" | "inaccurate" | "no_bandwidth" | "not_used" | "tolerable_risk" | undefined;
8
8
  }, {
@@ -2,8 +2,8 @@ export declare const listDeployKeys: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  githubToken?: string | undefined;
5
- per_page?: number | undefined;
6
5
  page?: number | undefined;
6
+ per_page?: number | undefined;
7
7
  }, {
8
8
  error: string;
9
9
  keys?: undefined;
@@ -4,11 +4,11 @@ export declare const createDeployment: import("ai").Tool<{
4
4
  ref: string;
5
5
  description?: string | undefined;
6
6
  githubToken?: string | undefined;
7
+ environment?: string | undefined;
7
8
  task?: string | undefined;
8
9
  auto_merge?: boolean | undefined;
9
10
  required_contexts?: string[] | undefined;
10
11
  payload?: string | undefined;
11
- environment?: string | undefined;
12
12
  transient_environment?: boolean | undefined;
13
13
  production_environment?: boolean | undefined;
14
14
  }, {
@@ -2,8 +2,8 @@ export declare const listDeployments: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  githubToken?: string | undefined;
5
- per_page?: number | undefined;
6
5
  page?: number | undefined;
6
+ per_page?: number | undefined;
7
7
  ref?: string | undefined;
8
8
  environment?: string | undefined;
9
9
  }, {
@@ -2,8 +2,8 @@ export declare const listEnvironments: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
4
  githubToken?: string | undefined;
5
- per_page?: number | undefined;
6
5
  page?: number | undefined;
6
+ per_page?: number | undefined;
7
7
  }, {
8
8
  error: string;
9
9
  total_count?: undefined;
@@ -2,8 +2,8 @@ export declare const createOrUpdateFile: import("ai").Tool<{
2
2
  path: string;
3
3
  message: string;
4
4
  repo: string;
5
- owner: string;
6
5
  content: string;
6
+ owner: string;
7
7
  githubToken?: string | undefined;
8
8
  sha?: string | undefined;
9
9
  branch?: string | undefined;
@@ -1,8 +1,8 @@
1
1
  export declare const createGist: import("ai").Tool<{
2
- public: boolean;
3
2
  files: Record<string, {
4
3
  content: string;
5
4
  }>;
5
+ public: boolean;
6
6
  description?: string | undefined;
7
7
  githubToken?: string | undefined;
8
8
  }, {
@@ -1,7 +1,7 @@
1
1
  export declare const createBlob: import("ai").Tool<{
2
2
  repo: string;
3
- owner: string;
4
3
  content: string;
4
+ owner: string;
5
5
  githubToken?: string | undefined;
6
6
  encoding?: "utf-8" | "base64" | undefined;
7
7
  }, {
@@ -3,7 +3,7 @@ export declare const createTree: import("ai").Tool<{
3
3
  owner: string;
4
4
  tree: {
5
5
  path?: string | undefined;
6
- type?: "commit" | "tree" | "blob" | undefined;
6
+ type?: "commit" | "blob" | "tree" | undefined;
7
7
  mode?: "100644" | "100755" | "040000" | "160000" | "120000" | undefined;
8
8
  content?: string | undefined;
9
9
  sha?: string | null | undefined;
@@ -1,8 +1,8 @@
1
1
  export declare const addIssueAssignees: import("ai").Tool<{
2
2
  repo: string;
3
3
  owner: string;
4
- issueNumber: number;
5
4
  assignees: string[];
5
+ issueNumber: number;
6
6
  githubToken?: string | undefined;
7
7
  }, {
8
8
  error: string;
@@ -1,8 +1,8 @@
1
1
  export declare const addIssueLabels: import("ai").Tool<{
2
+ labels: string[];
2
3
  repo: string;
3
4
  owner: string;
4
5
  issueNumber: number;
5
- labels: string[];
6
6
  githubToken?: string | undefined;
7
7
  }, {
8
8
  error: string;