@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.
- package/README.md +104 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/toolkits/github/tools/Actions/get-workflow-job.d.ts +3 -3
- package/dist/toolkits/github/tools/Actions/list-artifacts.d.ts +1 -1
- package/dist/toolkits/github/tools/Actions/list-workflow-jobs.d.ts +4 -4
- package/dist/toolkits/github/tools/Actions/list-workflow-run-artifacts.d.ts +1 -1
- package/dist/toolkits/github/tools/Activity/list-notifications.d.ts +2 -2
- package/dist/toolkits/github/tools/Activity/list-public-events.d.ts +1 -1
- package/dist/toolkits/github/tools/Activity/list-repo-events.d.ts +1 -1
- package/dist/toolkits/github/tools/Activity/list-user-events.d.ts +1 -1
- package/dist/toolkits/github/tools/Apps/list-installations.d.ts +1 -1
- package/dist/toolkits/github/tools/Checks/create-check-run.d.ts +5 -5
- package/dist/toolkits/github/tools/Checks/create-check-suite.d.ts +2 -2
- package/dist/toolkits/github/tools/Checks/get-check-run.d.ts +2 -2
- package/dist/toolkits/github/tools/Checks/get-check-suite.d.ts +2 -2
- package/dist/toolkits/github/tools/Checks/list-check-runs.d.ts +4 -4
- package/dist/toolkits/github/tools/Checks/update-check-run.d.ts +4 -4
- package/dist/toolkits/github/tools/CodeScanning/list-alerts.d.ts +2 -2
- package/dist/toolkits/github/tools/CodeScanning/update-alert.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/add-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/check-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/list-collaborators.d.ts +1 -1
- package/dist/toolkits/github/tools/Collaborators/remove-collaborator.d.ts +1 -1
- package/dist/toolkits/github/tools/Commits/compare-commits.d.ts +2 -2
- package/dist/toolkits/github/tools/Commits/get-commit.d.ts +2 -2
- package/dist/toolkits/github/tools/Commits/list-commits.d.ts +1 -1
- package/dist/toolkits/github/tools/Commits/list-pull-requests-associated-with-commit.d.ts +2 -2
- package/dist/toolkits/github/tools/Dependabot/list-alerts.d.ts +1 -1
- package/dist/toolkits/github/tools/Dependabot/update-alert.d.ts +1 -1
- package/dist/toolkits/github/tools/DeployKeys/list-deploy-keys.d.ts +1 -1
- package/dist/toolkits/github/tools/Deployments/create-deployment.d.ts +1 -1
- package/dist/toolkits/github/tools/Deployments/list-deployments.d.ts +1 -1
- package/dist/toolkits/github/tools/Environments/list-environments.d.ts +1 -1
- package/dist/toolkits/github/tools/Files/create-or-update-file.d.ts +1 -1
- package/dist/toolkits/github/tools/Gists/create-gist.d.ts +1 -1
- package/dist/toolkits/github/tools/Git/create-blob.d.ts +1 -1
- package/dist/toolkits/github/tools/Git/create-tree.d.ts +1 -1
- package/dist/toolkits/github/tools/Issues/add-issue-assignees.d.ts +1 -1
- package/dist/toolkits/github/tools/Issues/add-issue-labels.d.ts +1 -1
- package/dist/toolkits/github/tools/Issues/list-authenticated-user-issues.d.ts +4 -4
- package/dist/toolkits/github/tools/Issues/list-issue-comments.d.ts +1 -1
- package/dist/toolkits/github/tools/Issues/list-org-issues.d.ts +4 -4
- package/dist/toolkits/github/tools/Issues/list-repo-issues.d.ts +2 -2
- package/dist/toolkits/github/tools/Issues/list-user-account-issues.d.ts +4 -4
- package/dist/toolkits/github/tools/Organizations/get-org-membership.d.ts +1 -1
- package/dist/toolkits/github/tools/Organizations/list-org-members.d.ts +1 -1
- package/dist/toolkits/github/tools/Organizations/list-org-repositories.d.ts +2 -2
- package/dist/toolkits/github/tools/Organizations/list-user-organizations.d.ts +1 -1
- package/dist/toolkits/github/tools/Organizations/update-organization.d.ts +1 -1
- package/dist/toolkits/github/tools/PRs/create-pull-request-review.d.ts +1 -1
- package/dist/toolkits/github/tools/PRs/list-pull-request-files.d.ts +1 -1
- package/dist/toolkits/github/tools/PRs/list-pull-requests.d.ts +1 -1
- package/dist/toolkits/github/tools/Projects/list-org-projects.d.ts +1 -1
- package/dist/toolkits/github/tools/Projects/list-project-columns.d.ts +1 -1
- package/dist/toolkits/github/tools/Projects/list-repo-projects.d.ts +1 -1
- package/dist/toolkits/github/tools/Projects/update-project.d.ts +1 -1
- package/dist/toolkits/github/tools/Reactions/create-commit-comment-reaction.d.ts +1 -1
- package/dist/toolkits/github/tools/Reactions/create-issue-reaction.d.ts +1 -1
- package/dist/toolkits/github/tools/Reactions/list-commit-comment-reactions.d.ts +1 -1
- package/dist/toolkits/github/tools/Reactions/list-issue-reactions.d.ts +1 -1
- package/dist/toolkits/github/tools/Reactions/list-pr-comment-reactions.d.ts +1 -1
- package/dist/toolkits/github/tools/Releases/list-releases.d.ts +1 -1
- package/dist/toolkits/github/tools/Repos/get-repo-contributors.d.ts +1 -1
- package/dist/toolkits/github/tools/Repos/list-branches.d.ts +1 -1
- package/dist/toolkits/github/tools/Repos/list-repos.d.ts +2 -2
- package/dist/toolkits/github/tools/Repos/watch-repo.d.ts +1 -1
- package/dist/toolkits/github/tools/Search/search-repos.d.ts +1 -1
- package/dist/toolkits/github/tools/SecretScanning/list-alerts.d.ts +1 -1
- package/dist/toolkits/github/tools/SecretScanning/update-alert.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/create-repository-advisory.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/get-repository-advisory.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/list-global-advisories.d.ts +1 -1
- package/dist/toolkits/github/tools/SecurityAdvisories/list-repository-advisories.d.ts +2 -2
- package/dist/toolkits/github/tools/Stars/list-stargazers.d.ts +1 -1
- package/dist/toolkits/github/tools/Stars/list-starred-repos.d.ts +1 -1
- package/dist/toolkits/github/tools/Statuses/create-commit-status.d.ts +1 -1
- package/dist/toolkits/github/tools/Statuses/list-commit-statuses.d.ts +1 -1
- package/dist/toolkits/github/tools/Teams/list-team-members.d.ts +1 -1
- package/dist/toolkits/github/tools/Teams/list-team-repos.d.ts +1 -1
- package/dist/toolkits/github/tools/Teams/list-teams.d.ts +1 -1
- package/dist/toolkits/github/tools/Users/get-user-context.d.ts +1 -1
- package/dist/toolkits/github/tools/Users/update-authenticated-user.d.ts +1 -1
- package/dist/toolkits/github/tools/Webhooks/create-repo-webhook.d.ts +1 -1
- package/dist/toolkits/github/tools/Webhooks/list-repo-webhooks.d.ts +1 -1
- package/dist/toolkits/github/tools/Webhooks/update-repo-webhook.d.ts +1 -1
- package/dist/toolkits/github/tools/Workflows/list-workflow-runs.d.ts +2 -2
- package/dist/toolkits/github/tools/Workflows/list-workflows.d.ts +1 -1
- package/dist/toolkits/github/tools/index.d.ts +4859 -175
- package/dist/toolkits/github/tools/index.js +342 -342
- package/dist/toolkits/gmail/icon.js +14 -14
- package/dist/toolkits/gmail/manifest.js +78 -5
- package/dist/toolkits/gmail/tools/create-draft.d.ts +34 -0
- package/dist/toolkits/gmail/tools/create-draft.js +60 -0
- package/dist/toolkits/gmail/tools/delete-draft.d.ts +23 -0
- package/dist/toolkits/gmail/tools/delete-draft.js +34 -0
- package/dist/toolkits/gmail/tools/get-draft.d.ts +32 -0
- package/dist/toolkits/gmail/tools/get-draft.js +36 -0
- package/dist/toolkits/gmail/tools/get-message.d.ts +12 -12
- package/dist/toolkits/gmail/tools/get-message.js +3 -24
- package/dist/toolkits/gmail/tools/get-thread.d.ts +29 -0
- package/dist/toolkits/gmail/tools/get-thread.js +39 -0
- package/dist/toolkits/gmail/tools/index.d.ts +17 -0
- package/dist/toolkits/gmail/tools/index.js +17 -0
- package/dist/toolkits/gmail/tools/list-drafts.d.ts +28 -0
- package/dist/toolkits/gmail/tools/list-drafts.js +43 -0
- package/dist/toolkits/gmail/tools/list-labels.d.ts +20 -0
- package/dist/toolkits/gmail/tools/list-labels.js +46 -0
- package/dist/toolkits/gmail/tools/list-threads.d.ts +28 -0
- package/dist/toolkits/gmail/tools/list-threads.js +43 -0
- package/dist/toolkits/gmail/tools/modify-message-labels.d.ts +31 -0
- package/dist/toolkits/gmail/tools/modify-message-labels.js +44 -0
- package/dist/toolkits/gmail/tools/reply-to-thread.d.ts +33 -0
- package/dist/toolkits/gmail/tools/reply-to-thread.js +58 -0
- package/dist/toolkits/gmail/tools/send-draft.d.ts +29 -0
- package/dist/toolkits/gmail/tools/send-draft.js +41 -0
- package/dist/toolkits/gmail/tools/send-message.d.ts +4 -1
- package/dist/toolkits/gmail/tools/send-message.js +18 -16
- package/dist/toolkits/gmail/tools/trash-message.d.ts +29 -0
- package/dist/toolkits/gmail/tools/trash-message.js +37 -0
- package/dist/toolkits/gmail/tools/untrash-message.d.ts +29 -0
- package/dist/toolkits/gmail/tools/untrash-message.js +37 -0
- package/dist/toolkits/gmail/tools/utils.d.ts +41 -0
- package/dist/toolkits/gmail/tools/utils.js +97 -0
- package/dist/toolkits/google-calendar/manifest.js +1 -1
- package/dist/toolkits/google-calendar/tools/delete-event.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/delete-event.js +38 -0
- package/dist/toolkits/google-calendar/tools/get-event.d.ts +24 -0
- package/dist/toolkits/google-calendar/tools/get-event.js +37 -0
- package/dist/toolkits/google-calendar/tools/index.d.ts +181 -3
- package/dist/toolkits/google-calendar/tools/index.js +31 -2
- package/dist/toolkits/google-calendar/tools/search-events.d.ts +27 -0
- package/dist/toolkits/google-calendar/tools/search-events.js +49 -0
- package/dist/toolkits/google-calendar/tools/update-event.d.ts +29 -0
- package/dist/toolkits/google-calendar/tools/update-event.js +56 -0
- package/dist/toolkits/google-sheets/manifest.js +2 -2
- package/dist/toolkits/google-sheets/tools/append-values.d.ts +41 -0
- package/dist/toolkits/google-sheets/tools/append-values.js +51 -0
- package/dist/toolkits/google-sheets/tools/clear-values.d.ts +27 -0
- package/dist/toolkits/google-sheets/tools/clear-values.js +41 -0
- package/dist/toolkits/google-sheets/tools/create-spreadsheet.d.ts +33 -0
- package/dist/toolkits/google-sheets/tools/create-spreadsheet.js +59 -0
- package/dist/toolkits/google-sheets/tools/index.d.ts +205 -7
- package/dist/toolkits/google-sheets/tools/index.js +39 -4
- package/dist/toolkits/google-sheets/tools/update-values.d.ts +38 -0
- package/dist/toolkits/google-sheets/tools/update-values.js +50 -0
- package/dist/toolkits/linear/manifest.js +35 -0
- package/dist/toolkits/linear/tools/add-comment.d.ts +6 -0
- package/dist/toolkits/linear/tools/add-comment.js +52 -0
- package/dist/toolkits/linear/tools/get-issue.d.ts +6 -0
- package/dist/toolkits/linear/tools/get-issue.js +117 -0
- package/dist/toolkits/linear/tools/list-projects.d.ts +4 -0
- package/dist/toolkits/linear/tools/list-projects.js +46 -0
- package/dist/toolkits/linear/tools/list-workflow-states.d.ts +26 -0
- package/dist/toolkits/linear/tools/list-workflow-states.js +59 -0
- package/dist/toolkits/linear/tools/update-issue.d.ts +11 -0
- package/dist/toolkits/linear/tools/update-issue.js +78 -0
- package/dist/toolkits/notion/tools/append-block-children.d.ts +1 -1
- package/dist/toolkits/notion/tools/index.d.ts +105 -12
- package/dist/toolkits/notion/tools/index.js +8 -8
- package/dist/toolkits/notion/tools/query-database.d.ts +1 -1
- package/package.json +5 -7
- package/dist/runtime/credentials.d.ts +0 -28
- package/dist/runtime/credentials.js +0 -15
- package/dist/runtime/index.d.ts +0 -5
- package/dist/runtime/index.js +0 -5
- package/dist/runtime/meta-tools.d.ts +0 -101
- package/dist/runtime/meta-tools.js +0 -250
- package/dist/runtime/registry.d.ts +0 -20
- package/dist/runtime/registry.js +0 -35
- /package/dist/{runtime → core}/schema-helpers.d.ts +0 -0
- /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
|
+
[](https://www.npmjs.com/package/@rnsk/toolkits)
|
|
6
|
+
[](../../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
|
package/dist/core/index.d.ts
CHANGED
|
@@ -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
|
package/dist/core/index.js
CHANGED
|
@@ -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: "
|
|
22
|
-
conclusion: "success" | "
|
|
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: "
|
|
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?: "
|
|
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: "
|
|
20
|
-
conclusion: "success" | "
|
|
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
|
-
|
|
5
|
+
per_page?: number | undefined;
|
|
6
6
|
participating?: boolean | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
error: string;
|
|
@@ -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,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?: "
|
|
6
|
+
status?: "completed" | "in_progress" | "queued" | undefined;
|
|
7
7
|
githubToken?: string | undefined;
|
|
8
|
-
conclusion?: "success" | "
|
|
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: "
|
|
20
|
-
conclusion: "success" | "
|
|
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: "
|
|
16
|
-
conclusion: "success" | "
|
|
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: "
|
|
19
|
-
conclusion: "success" | "
|
|
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: "
|
|
18
|
-
conclusion: "success" | "
|
|
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?: "
|
|
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: "
|
|
20
|
-
conclusion: "success" | "
|
|
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?: "
|
|
5
|
+
status?: "completed" | "in_progress" | "queued" | undefined;
|
|
6
6
|
githubToken?: string | undefined;
|
|
7
|
-
conclusion?: "success" | "
|
|
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: "
|
|
19
|
-
conclusion: "success" | "
|
|
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
|
-
|
|
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
|
}, {
|
|
@@ -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;
|
|
@@ -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
|
}, {
|
|
@@ -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;
|
|
@@ -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" | "
|
|
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;
|