@github-tools/sdk 1.9.0 → 1.11.0
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 +86 -27
- package/dist/connect/eve.d.mts +16 -10
- package/dist/connect/eve.d.mts.map +1 -1
- package/dist/connect/eve.mjs +21 -11
- package/dist/connect/eve.mjs.map +1 -1
- package/dist/connect.d.mts +123 -10
- package/dist/connect.d.mts.map +1 -1
- package/dist/connect.mjs +3 -3
- package/dist/eve-runtime-BqfQZAP7.d.mts +54 -0
- package/dist/eve-runtime-BqfQZAP7.d.mts.map +1 -0
- package/dist/eve-runtime-DXZgfCMb.mjs +701 -0
- package/dist/eve-runtime-DXZgfCMb.mjs.map +1 -0
- package/dist/eve-runtime.d.mts +4 -0
- package/dist/eve-runtime.mjs +3 -0
- package/dist/eve.d.mts +33 -34
- package/dist/eve.d.mts.map +1 -1
- package/dist/eve.mjs +384 -3
- package/dist/eve.mjs.map +1 -0
- package/dist/{index-CtID5dUi.d.mts → index-BNeMjmgp.d.mts} +183 -19
- package/dist/index-BNeMjmgp.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{src-D6vC3V8r.mjs → src-jQWS2Txw.mjs} +414 -68
- package/dist/src-jQWS2Txw.mjs.map +1 -0
- package/dist/token-OPdZa0t3.mjs +390 -0
- package/dist/token-OPdZa0t3.mjs.map +1 -0
- package/dist/{types-BVLof-5R.d.mts → types-BD5YvGxm.d.mts} +7 -3
- package/dist/types-BD5YvGxm.d.mts.map +1 -0
- package/dist/{types-BOnJ0Rou.d.mts → types-BDO-Mmn6.d.mts} +4 -3
- package/dist/types-BDO-Mmn6.d.mts.map +1 -0
- package/dist/workflow.d.mts +1 -1
- package/dist/workflow.mjs +2 -2
- package/dist/{write-tools-cg_ialNd.mjs → write-tools-Dk32V9Hl.mjs} +885 -26
- package/dist/write-tools-Dk32V9Hl.mjs.map +1 -0
- package/package.json +5 -1
- package/dist/eve-DmiXBuli.mjs +0 -864
- package/dist/eve-DmiXBuli.mjs.map +0 -1
- package/dist/index-CtID5dUi.d.mts.map +0 -1
- package/dist/src-D6vC3V8r.mjs.map +0 -1
- package/dist/token-sbepWIkd.mjs +0 -138
- package/dist/token-sbepWIkd.mjs.map +0 -1
- package/dist/types-BOnJ0Rou.d.mts.map +0 -1
- package/dist/types-BVLof-5R.d.mts.map +0 -1
- package/dist/write-tools-cg_ialNd.mjs.map +0 -1
|
@@ -31,8 +31,14 @@ declare const GITHUB_TOOL_NAMES: {
|
|
|
31
31
|
readonly createPullRequest: "createPullRequest";
|
|
32
32
|
/** Merge a pull request. Requires approval by default. */
|
|
33
33
|
readonly mergePullRequest: "mergePullRequest";
|
|
34
|
+
/** Update a pull request — title, body, state, base branch, or draft status. Requires approval by default. */
|
|
35
|
+
readonly updatePullRequest: "updatePullRequest";
|
|
34
36
|
/** Add a comment to a pull request. Requires approval by default. */
|
|
35
37
|
readonly addPullRequestComment: "addPullRequestComment";
|
|
38
|
+
/** Update the body of a comment on a pull request. Requires approval by default. */
|
|
39
|
+
readonly updatePullRequestComment: "updatePullRequestComment";
|
|
40
|
+
/** Delete a comment from a pull request permanently. Requires approval by default. */
|
|
41
|
+
readonly deletePullRequestComment: "deletePullRequestComment";
|
|
36
42
|
/** List files changed in a pull request with status and stats. Patches omitted by default — set includePatch true for diffs. */
|
|
37
43
|
readonly listPullRequestFiles: "listPullRequestFiles";
|
|
38
44
|
/** List reviews on a pull request (approvals, change requests, and comments). */
|
|
@@ -47,28 +53,44 @@ declare const GITHUB_TOOL_NAMES: {
|
|
|
47
53
|
readonly listIssues: "listIssues";
|
|
48
54
|
/** Get detailed information about a specific issue. Body truncated by default (detail: summary). */
|
|
49
55
|
readonly getIssue: "getIssue";
|
|
50
|
-
/** Fetch an issue plus available
|
|
56
|
+
/** Fetch an issue plus available label names and recent comments in one call. */
|
|
51
57
|
readonly getIssueContext: "getIssueContext";
|
|
58
|
+
/** List comments on a GitHub issue. Bodies are truncated by default (detail: summary). Prefer getIssueContext for the first page when triaging. */
|
|
59
|
+
readonly listIssueComments: "listIssueComments";
|
|
52
60
|
/** Create a new issue in a GitHub repository. Requires approval by default. */
|
|
53
61
|
readonly createIssue: "createIssue";
|
|
54
62
|
/** Add a comment to a GitHub issue. Requires approval by default. */
|
|
55
63
|
readonly addIssueComment: "addIssueComment";
|
|
64
|
+
/** Update the body of a comment on a GitHub issue. Requires approval by default. */
|
|
65
|
+
readonly updateIssueComment: "updateIssueComment";
|
|
66
|
+
/** Delete a comment from a GitHub issue permanently. Requires approval by default. */
|
|
67
|
+
readonly deleteIssueComment: "deleteIssueComment";
|
|
56
68
|
/** Close an open GitHub issue. Requires approval by default. */
|
|
57
69
|
readonly closeIssue: "closeIssue";
|
|
70
|
+
/** Update a GitHub issue — title, body, state, labels, milestone, or assignees. Requires approval by default. */
|
|
71
|
+
readonly updateIssue: "updateIssue";
|
|
58
72
|
/** List labels available in a GitHub repository. */
|
|
59
73
|
readonly listLabels: "listLabels";
|
|
60
74
|
/** Add labels to an issue or pull request. Requires approval by default. */
|
|
61
75
|
readonly addLabels: "addLabels";
|
|
62
76
|
/** Remove a label from an issue or pull request. Requires approval by default. */
|
|
63
77
|
readonly removeLabel: "removeLabel";
|
|
78
|
+
/** Create a label in a GitHub repository. Requires approval by default. */
|
|
79
|
+
readonly createLabel: "createLabel";
|
|
80
|
+
/** Update a label in a GitHub repository — name, color, or description. Requires approval by default. */
|
|
81
|
+
readonly updateLabel: "updateLabel";
|
|
82
|
+
/** Delete a label from a GitHub repository permanently. Requires approval by default. */
|
|
83
|
+
readonly deleteLabel: "deleteLabel";
|
|
64
84
|
/** Assign users to an issue or pull request. Requires approval by default. */
|
|
65
85
|
readonly addAssignees: "addAssignees";
|
|
66
86
|
/** Remove assignees from an issue or pull request. Requires approval by default. */
|
|
67
87
|
readonly removeAssignees: "removeAssignees";
|
|
68
|
-
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
|
|
88
|
+
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. Results include matching text snippets when GitHub returns them. */
|
|
69
89
|
readonly searchCode: "searchCode";
|
|
70
90
|
/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
|
|
71
91
|
readonly searchRepositories: "searchRepositories";
|
|
92
|
+
/** Search for issues and pull requests across GitHub using search qualifiers like "repo:owner/name is:open". */
|
|
93
|
+
readonly searchIssues: "searchIssues";
|
|
72
94
|
/** List commits for a GitHub repository. Filter by file path to see commits that touched a file. For line-by-line attribution at a given ref, use getBlame instead. */
|
|
73
95
|
readonly listCommits: "listCommits";
|
|
74
96
|
/** Get detailed information about a specific commit, including the list of files changed. Patches omitted by default. */
|
|
@@ -111,6 +133,24 @@ declare const GITHUB_TOOL_NAMES: {
|
|
|
111
133
|
readonly getCombinedStatus: "getCombinedStatus";
|
|
112
134
|
/** Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call. */
|
|
113
135
|
readonly getCiFailureContext: "getCiFailureContext";
|
|
136
|
+
/** List discussions in a GitHub repository, most recently updated first, optionally filtered by category. */
|
|
137
|
+
readonly listDiscussions: "listDiscussions";
|
|
138
|
+
/** Get a GitHub discussion by number. Body truncated by default (detail: summary). */
|
|
139
|
+
readonly getDiscussion: "getDiscussion";
|
|
140
|
+
/** Add a comment to a GitHub discussion. Requires approval by default. */
|
|
141
|
+
readonly addDiscussionComment: "addDiscussionComment";
|
|
142
|
+
/** List notification threads for the authenticated user. Requires a token with notifications access. */
|
|
143
|
+
readonly listNotifications: "listNotifications";
|
|
144
|
+
/** Mark a single notification thread as read. Requires approval by default. */
|
|
145
|
+
readonly markNotificationRead: "markNotificationRead";
|
|
146
|
+
/** List reactions on an issue or pull request conversation, with per-emoji counts. */
|
|
147
|
+
readonly listIssueReactions: "listIssueReactions";
|
|
148
|
+
/** React to an issue or pull request with an emoji. Requires approval by default. */
|
|
149
|
+
readonly addIssueReaction: "addIssueReaction";
|
|
150
|
+
/** List reactions on an issue or pull request comment, with per-emoji counts. */
|
|
151
|
+
readonly listCommentReactions: "listCommentReactions";
|
|
152
|
+
/** React to an issue or pull request comment with an emoji. Requires approval by default. */
|
|
153
|
+
readonly addCommentReaction: "addCommentReaction";
|
|
114
154
|
/** List releases for a GitHub repository, newest first (includes drafts and prereleases). */
|
|
115
155
|
readonly listReleases: "listReleases";
|
|
116
156
|
/** Get the latest published release for a GitHub repository (excludes drafts and prereleases). Body truncated by default. */
|
|
@@ -121,6 +161,10 @@ declare const GITHUB_TOOL_NAMES: {
|
|
|
121
161
|
readonly getReleaseContext: "getReleaseContext";
|
|
122
162
|
/** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
|
|
123
163
|
readonly createRelease: "createRelease";
|
|
164
|
+
/** Update an existing release — tag, target, title, notes, draft, or prerelease status. Requires approval by default. */
|
|
165
|
+
readonly updateRelease: "updateRelease";
|
|
166
|
+
/** Delete a release permanently. Requires approval by default. */
|
|
167
|
+
readonly deleteRelease: "deleteRelease";
|
|
124
168
|
};
|
|
125
169
|
type GithubToolName = typeof GITHUB_TOOL_NAMES[keyof typeof GITHUB_TOOL_NAMES];
|
|
126
170
|
//#endregion
|
|
@@ -136,20 +180,28 @@ declare const PRESET_TOOLS: {
|
|
|
136
180
|
*
|
|
137
181
|
* Tools: `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `getPullRequestContext`,
|
|
138
182
|
* `getFileContent`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `getRepository`, `listBranches`,
|
|
139
|
-
* `searchCode`, `listCheckRuns`, `getCombinedStatus`, `
|
|
183
|
+
* `searchCode`, `listCheckRuns`, `getCombinedStatus`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`,
|
|
184
|
+
* `deletePullRequestComment`, `createPullRequestReview`, `requestReviewers`.
|
|
140
185
|
*
|
|
141
186
|
* Agent prompt: optimized for thorough PR review with inline feedback.
|
|
142
187
|
*/
|
|
143
|
-
readonly 'code-review': readonly ["getPullRequest", "listPullRequests", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "getFileContent", "listCommits", "getCommit", "getBlame", "compareCommits", "getRepository", "listBranches", "searchCode", "listCheckRuns", "getCombinedStatus", "addPullRequestComment", "createPullRequestReview", "requestReviewers"];
|
|
188
|
+
readonly 'code-review': readonly ["getPullRequest", "listPullRequests", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "getFileContent", "listCommits", "getCommit", "getBlame", "compareCommits", "getRepository", "listBranches", "searchCode", "listCheckRuns", "getCombinedStatus", "updatePullRequest", "addPullRequestComment", "updatePullRequestComment", "deletePullRequestComment", "createPullRequestReview", "requestReviewers"];
|
|
144
189
|
/**
|
|
145
190
|
* **Issue triage** — manage and organize GitHub issues.
|
|
146
191
|
*
|
|
147
|
-
* Tools: `listIssues`, `
|
|
148
|
-
* `
|
|
192
|
+
* Tools: `listIssues`, `getIssueContext`, `listIssueComments`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`,
|
|
193
|
+
* `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`,
|
|
194
|
+
* `addAssignees`, `removeAssignees`,
|
|
195
|
+
* `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`,
|
|
196
|
+
* `searchRepositories`, `searchCode`, `searchIssues`.
|
|
149
197
|
*
|
|
198
|
+
* Prefer `getIssueContext` (issue + `labelNames` + recent comments) over separate get/list calls.
|
|
199
|
+
* Use `listIssueComments` to paginate beyond the comments returned by `getIssueContext`.
|
|
200
|
+
* Reopen a closed issue with `updateIssue` (`state: 'open'`) — there is no separate reopen tool.
|
|
201
|
+
* Acknowledge a report with `addIssueReaction` / `addCommentReaction` instead of a comment when no reply is needed.
|
|
150
202
|
* Agent prompt: optimized for categorizing, labeling, and responding to issues.
|
|
151
203
|
*/
|
|
152
|
-
readonly 'issue-triage': readonly ["listIssues", "
|
|
204
|
+
readonly 'issue-triage': readonly ["listIssues", "getIssueContext", "listIssueComments", "createIssue", "addIssueComment", "updateIssueComment", "deleteIssueComment", "closeIssue", "updateIssue", "addLabels", "removeLabel", "createLabel", "updateLabel", "deleteLabel", "addAssignees", "removeAssignees", "listIssueReactions", "addIssueReaction", "listCommentReactions", "addCommentReaction", "getRepository", "searchRepositories", "searchCode", "searchIssues"];
|
|
153
205
|
/**
|
|
154
206
|
* **CI operations** — monitor and manage GitHub Actions workflows.
|
|
155
207
|
*
|
|
@@ -163,16 +215,16 @@ declare const PRESET_TOOLS: {
|
|
|
163
215
|
/**
|
|
164
216
|
* **Repository explorer** — read-only access to browse codebases.
|
|
165
217
|
*
|
|
166
|
-
* Tools: all read-only tools including repos, branches, PRs, issues, commits, blame, comparisons,
|
|
218
|
+
* Tools: all read-only tools including repos, branches, PRs, issues, discussions, commits, blame, comparisons,
|
|
167
219
|
* search, gists, workflows, checks, and releases. No write operations.
|
|
168
220
|
*
|
|
169
221
|
* Agent prompt: optimized for answering questions about code structure and history.
|
|
170
222
|
*/
|
|
171
|
-
readonly 'repo-explorer': readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "listIssues", "getIssue", "getIssueContext", "listLabels", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "listGists", "getGist", "listGistComments", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext"];
|
|
223
|
+
readonly 'repo-explorer': readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "listIssues", "getIssue", "getIssueContext", "listIssueComments", "listDiscussions", "getDiscussion", "listLabels", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "searchIssues", "listGists", "getGist", "listGistComments", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext"];
|
|
172
224
|
/**
|
|
173
225
|
* **Security audit** — review repositories for security risks and report findings.
|
|
174
226
|
*
|
|
175
|
-
* Tools: read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `getCommit`,
|
|
227
|
+
* Tools: read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `searchIssues`, `listCommits`, `getCommit`,
|
|
176
228
|
* `getBlame`, `compareCommits`), PR and CI visibility (`listPullRequests`, `getPullRequest`, `listPullRequestFiles`,
|
|
177
229
|
* `getPullRequestContext`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `listWorkflows`, `listWorkflowRuns`,
|
|
178
230
|
* `getWorkflowRun`, `listWorkflowJobs`), plus `createIssue`, `addIssueComment`, and `addLabels` to report findings.
|
|
@@ -180,18 +232,47 @@ declare const PRESET_TOOLS: {
|
|
|
180
232
|
*
|
|
181
233
|
* Agent prompt: optimized for finding and reporting security risks without making changes.
|
|
182
234
|
*/
|
|
183
|
-
readonly 'security-audit': readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "listPullRequests", "getPullRequest", "listPullRequestFiles", "getPullRequestContext", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "listIssues", "getIssue", "getIssueContext", "createIssue", "addIssueComment", "addLabels"];
|
|
235
|
+
readonly 'security-audit': readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "searchIssues", "listPullRequests", "getPullRequest", "listPullRequestFiles", "getPullRequestContext", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "listIssues", "getIssue", "getIssueContext", "createIssue", "addIssueComment", "addLabels"];
|
|
184
236
|
/**
|
|
185
237
|
* **Release manager** — prepare and publish GitHub releases.
|
|
186
238
|
*
|
|
187
239
|
* Tools: `getRepository`, `listBranches`, `listCommits`, `getCommit`, `compareCommits`,
|
|
188
|
-
* `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext`, `createRelease`,
|
|
240
|
+
* `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext`, `createRelease`, `updateRelease`, `deleteRelease`,
|
|
189
241
|
* `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `triggerWorkflow`,
|
|
190
242
|
* `listPullRequests`, `getPullRequest`.
|
|
191
243
|
*
|
|
192
244
|
* Agent prompt: optimized for summarizing changes and cutting releases safely.
|
|
193
245
|
*/
|
|
194
|
-
readonly 'release-manager': readonly ["getRepository", "listBranches", "listCommits", "getCommit", "compareCommits", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext", "createRelease", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "triggerWorkflow", "listPullRequests", "getPullRequest"];
|
|
246
|
+
readonly 'release-manager': readonly ["getRepository", "listBranches", "listCommits", "getCommit", "compareCommits", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext", "createRelease", "updateRelease", "deleteRelease", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "triggerWorkflow", "listPullRequests", "getPullRequest"];
|
|
247
|
+
/**
|
|
248
|
+
* **Discussion moderator** — answer and moderate repository Discussions.
|
|
249
|
+
*
|
|
250
|
+
* Tools: `listDiscussions`, `getDiscussion`, `addDiscussionComment`,
|
|
251
|
+
* `getRepository`, `searchIssues`, `getIssueContext`, `addIssueComment`.
|
|
252
|
+
*
|
|
253
|
+
* Prefer discussions for Q&A; link related issues with `getIssueContext` / `addIssueComment` when needed.
|
|
254
|
+
* Agent prompt: optimized for clear, on-topic discussion replies.
|
|
255
|
+
*/
|
|
256
|
+
readonly 'discussion-moderator': readonly ["listDiscussions", "getDiscussion", "addDiscussionComment", "getRepository", "searchIssues", "getIssueContext", "addIssueComment"];
|
|
257
|
+
/**
|
|
258
|
+
* **Notification inbox** — triage authenticated-user notification threads.
|
|
259
|
+
*
|
|
260
|
+
* Tools: `listNotifications`, `markNotificationRead`, `getIssue`, `getPullRequest`, `getRepository`.
|
|
261
|
+
*
|
|
262
|
+
* Requires a user PAT with the Notifications account permission — not available on Connect installation tokens.
|
|
263
|
+
* Agent prompt: optimized for clearing inbox noise and following up on actionable threads.
|
|
264
|
+
*/
|
|
265
|
+
readonly 'notification-inbox': readonly ["listNotifications", "markNotificationRead", "getIssue", "getPullRequest", "getRepository"];
|
|
266
|
+
/**
|
|
267
|
+
* **PR author** — open pull requests without the full write surface.
|
|
268
|
+
*
|
|
269
|
+
* Tools: `getRepository`, `listBranches`, `getFileContent`, `createBranch`, `createOrUpdateFile`,
|
|
270
|
+
* `createPullRequest`, `updatePullRequest`, `getPullRequest`, `listPullRequestFiles`,
|
|
271
|
+
* `compareCommits`, `getCommit`.
|
|
272
|
+
*
|
|
273
|
+
* Agent prompt: optimized for branching, editing files, and opening focused PRs.
|
|
274
|
+
*/
|
|
275
|
+
readonly 'pr-author': readonly ["getRepository", "listBranches", "getFileContent", "createBranch", "createOrUpdateFile", "createPullRequest", "updatePullRequest", "getPullRequest", "listPullRequestFiles", "compareCommits", "getCommit"];
|
|
195
276
|
/**
|
|
196
277
|
* **Maintainer** — full repository maintenance with all read and write tools.
|
|
197
278
|
*
|
|
@@ -199,7 +280,7 @@ declare const PRESET_TOOLS: {
|
|
|
199
280
|
*
|
|
200
281
|
* Agent prompt: optimized for day-to-day repo maintenance with careful write operations.
|
|
201
282
|
*/
|
|
202
|
-
readonly maintainer: readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "createBranch", "forkRepository", "createRepository", "createOrUpdateFile", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "createPullRequest", "mergePullRequest", "addPullRequestComment", "createPullRequestReview", "requestReviewers", "listIssues", "getIssue", "getIssueContext", "createIssue", "addIssueComment", "closeIssue", "listLabels", "addLabels", "removeLabel", "addAssignees", "removeAssignees", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "listGists", "getGist", "listGistComments", "createGist", "updateGist", "deleteGist", "createGistComment", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "triggerWorkflow", "cancelWorkflowRun", "rerunWorkflowRun", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext", "createRelease"];
|
|
283
|
+
readonly maintainer: readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "createBranch", "forkRepository", "createRepository", "createOrUpdateFile", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "createPullRequest", "mergePullRequest", "updatePullRequest", "addPullRequestComment", "updatePullRequestComment", "deletePullRequestComment", "createPullRequestReview", "requestReviewers", "listIssues", "getIssue", "getIssueContext", "listIssueComments", "createIssue", "addIssueComment", "updateIssueComment", "deleteIssueComment", "closeIssue", "updateIssue", "listLabels", "addLabels", "removeLabel", "createLabel", "updateLabel", "deleteLabel", "addAssignees", "removeAssignees", "listIssueReactions", "addIssueReaction", "listCommentReactions", "addCommentReaction", "listDiscussions", "getDiscussion", "addDiscussionComment", "listNotifications", "markNotificationRead", "listCommits", "getCommit", "getBlame", "compareCommits", "searchCode", "searchRepositories", "searchIssues", "listGists", "getGist", "listGistComments", "createGist", "updateGist", "deleteGist", "createGistComment", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "triggerWorkflow", "cancelWorkflowRun", "rerunWorkflowRun", "listCheckRuns", "getCombinedStatus", "getCiFailureContext", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext", "createRelease", "updateRelease", "deleteRelease"];
|
|
203
284
|
};
|
|
204
285
|
type GithubToolPreset = keyof typeof PRESET_TOOLS;
|
|
205
286
|
/** Tool names included in a single preset. */
|
|
@@ -225,8 +306,14 @@ declare const GITHUB_WRITE_TOOLS: {
|
|
|
225
306
|
readonly createPullRequest: "createPullRequest";
|
|
226
307
|
/** Merge a pull request. Requires approval by default. */
|
|
227
308
|
readonly mergePullRequest: "mergePullRequest";
|
|
309
|
+
/** Update a pull request. Requires approval by default. */
|
|
310
|
+
readonly updatePullRequest: "updatePullRequest";
|
|
228
311
|
/** Add a comment to a pull request. Requires approval by default. */
|
|
229
312
|
readonly addPullRequestComment: "addPullRequestComment";
|
|
313
|
+
/** Update a pull request comment. Requires approval by default. */
|
|
314
|
+
readonly updatePullRequestComment: "updatePullRequestComment";
|
|
315
|
+
/** Delete a pull request comment. Requires approval by default. */
|
|
316
|
+
readonly deletePullRequestComment: "deletePullRequestComment";
|
|
230
317
|
/** Submit a pull request review with optional inline comments. Requires approval by default. */
|
|
231
318
|
readonly createPullRequestReview: "createPullRequestReview";
|
|
232
319
|
/** Request reviews from users or teams on a pull request. Requires approval by default. */
|
|
@@ -235,12 +322,24 @@ declare const GITHUB_WRITE_TOOLS: {
|
|
|
235
322
|
readonly createIssue: "createIssue";
|
|
236
323
|
/** Add a comment to a GitHub issue. Requires approval by default. */
|
|
237
324
|
readonly addIssueComment: "addIssueComment";
|
|
325
|
+
/** Update a GitHub issue comment. Requires approval by default. */
|
|
326
|
+
readonly updateIssueComment: "updateIssueComment";
|
|
327
|
+
/** Delete a GitHub issue comment. Requires approval by default. */
|
|
328
|
+
readonly deleteIssueComment: "deleteIssueComment";
|
|
238
329
|
/** Close an open GitHub issue. Requires approval by default. */
|
|
239
330
|
readonly closeIssue: "closeIssue";
|
|
331
|
+
/** Update a GitHub issue. Requires approval by default. */
|
|
332
|
+
readonly updateIssue: "updateIssue";
|
|
240
333
|
/** Add labels to an issue or pull request. Requires approval by default. */
|
|
241
334
|
readonly addLabels: "addLabels";
|
|
242
335
|
/** Remove a label from an issue or pull request. Requires approval by default. */
|
|
243
336
|
readonly removeLabel: "removeLabel";
|
|
337
|
+
/** Create a label in a GitHub repository. Requires approval by default. */
|
|
338
|
+
readonly createLabel: "createLabel";
|
|
339
|
+
/** Update a label in a GitHub repository. Requires approval by default. */
|
|
340
|
+
readonly updateLabel: "updateLabel";
|
|
341
|
+
/** Delete a label from a GitHub repository permanently. Requires approval by default. */
|
|
342
|
+
readonly deleteLabel: "deleteLabel";
|
|
244
343
|
/** Assign users to an issue or pull request. Requires approval by default. */
|
|
245
344
|
readonly addAssignees: "addAssignees";
|
|
246
345
|
/** Remove assignees from an issue or pull request. Requires approval by default. */
|
|
@@ -253,6 +352,14 @@ declare const GITHUB_WRITE_TOOLS: {
|
|
|
253
352
|
readonly deleteGist: "deleteGist";
|
|
254
353
|
/** Add a comment to a gist. Requires approval by default. */
|
|
255
354
|
readonly createGistComment: "createGistComment";
|
|
355
|
+
/** Add a comment to a GitHub discussion. Requires approval by default. */
|
|
356
|
+
readonly addDiscussionComment: "addDiscussionComment";
|
|
357
|
+
/** Mark a single notification thread as read. Requires approval by default. */
|
|
358
|
+
readonly markNotificationRead: "markNotificationRead";
|
|
359
|
+
/** React to an issue or pull request with an emoji. Requires approval by default. */
|
|
360
|
+
readonly addIssueReaction: "addIssueReaction";
|
|
361
|
+
/** React to an issue or pull request comment with an emoji. Requires approval by default. */
|
|
362
|
+
readonly addCommentReaction: "addCommentReaction";
|
|
256
363
|
/** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
|
|
257
364
|
readonly triggerWorkflow: "triggerWorkflow";
|
|
258
365
|
/** Cancel an in-progress workflow run. Requires approval by default. */
|
|
@@ -261,6 +368,10 @@ declare const GITHUB_WRITE_TOOLS: {
|
|
|
261
368
|
readonly rerunWorkflowRun: "rerunWorkflowRun";
|
|
262
369
|
/** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
|
|
263
370
|
readonly createRelease: "createRelease";
|
|
371
|
+
/** Update an existing release. Requires approval by default. */
|
|
372
|
+
readonly updateRelease: "updateRelease";
|
|
373
|
+
/** Delete a release permanently. Requires approval by default. */
|
|
374
|
+
readonly deleteRelease: "deleteRelease";
|
|
264
375
|
};
|
|
265
376
|
type GithubWriteToolName = typeof GITHUB_WRITE_TOOLS[keyof typeof GITHUB_WRITE_TOOLS];
|
|
266
377
|
//#endregion
|
|
@@ -429,8 +540,14 @@ declare const getPullRequest: (token: GithubTokenInput) => GithubTool;
|
|
|
429
540
|
declare const createPullRequest: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
430
541
|
/** Merge a pull request. Requires approval by default. */
|
|
431
542
|
declare const mergePullRequest: (token: GithubTokenInput, { needsApproval, coAuthors }?: MergeToolOptions) => GithubTool;
|
|
543
|
+
/** Update a pull request — title, body, state, base branch, or draft status. Requires approval by default. */
|
|
544
|
+
declare const updatePullRequest: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
432
545
|
/** Add a comment to a pull request. Requires approval by default. */
|
|
433
546
|
declare const addPullRequestComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
547
|
+
/** Update the body of a comment on a pull request. Requires approval by default. */
|
|
548
|
+
declare const updatePullRequestComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
549
|
+
/** Delete a comment from a pull request permanently. Requires approval by default. */
|
|
550
|
+
declare const deletePullRequestComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
434
551
|
/** List files changed in a pull request with status and stats. Patches omitted by default. */
|
|
435
552
|
declare const listPullRequestFiles: (token: GithubTokenInput) => GithubTool;
|
|
436
553
|
/** List reviews on a pull request (approvals, change requests, and comments). */
|
|
@@ -445,28 +562,68 @@ declare const requestReviewers: (token: GithubTokenInput, { needsApproval }?: To
|
|
|
445
562
|
declare const listIssues: (token: GithubTokenInput) => GithubTool;
|
|
446
563
|
/** Get detailed information about a specific issue. */
|
|
447
564
|
declare const getIssue: (token: GithubTokenInput) => GithubTool;
|
|
565
|
+
/** List comments on a GitHub issue. Prefer getIssueContext for the first page when triaging. */
|
|
566
|
+
declare const listIssueComments: (token: GithubTokenInput) => GithubTool;
|
|
448
567
|
/** Create a new issue in a GitHub repository. Requires approval by default. */
|
|
449
568
|
declare const createIssue: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
450
569
|
/** Add a comment to a GitHub issue. Requires approval by default. */
|
|
451
570
|
declare const addIssueComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
452
571
|
/** Close an open GitHub issue. Requires approval by default. */
|
|
453
572
|
declare const closeIssue: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
573
|
+
/** Update a GitHub issue — title, body, state, labels, milestone, or assignees. Requires approval by default. */
|
|
574
|
+
declare const updateIssue: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
575
|
+
/** Update the body of a comment on a GitHub issue. Requires approval by default. */
|
|
576
|
+
declare const updateIssueComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
577
|
+
/** Delete a comment from a GitHub issue permanently. Requires approval by default. */
|
|
578
|
+
declare const deleteIssueComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
454
579
|
/** List labels available in a GitHub repository. */
|
|
455
580
|
declare const listLabels: (token: GithubTokenInput) => GithubTool;
|
|
456
581
|
/** Add labels to an issue or pull request. Requires approval by default. */
|
|
457
582
|
declare const addLabels: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
458
583
|
/** Remove a label from an issue or pull request. Requires approval by default. */
|
|
459
584
|
declare const removeLabel: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
585
|
+
/** Create a label in a GitHub repository. Requires approval by default. */
|
|
586
|
+
declare const createLabel: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
587
|
+
/** Update a label in a GitHub repository. Requires approval by default. */
|
|
588
|
+
declare const updateLabel: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
589
|
+
/** Delete a label from a GitHub repository permanently. Requires approval by default. */
|
|
590
|
+
declare const deleteLabel: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
460
591
|
/** Assign users to an issue or pull request. Requires approval by default. */
|
|
461
592
|
declare const addAssignees: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
462
593
|
/** Remove assignees from an issue or pull request. Requires approval by default. */
|
|
463
594
|
declare const removeAssignees: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
464
595
|
//#endregion
|
|
596
|
+
//#region src/tools/reactions.d.ts
|
|
597
|
+
/** List reactions on an issue or pull request conversation. */
|
|
598
|
+
declare const listIssueReactions: (token: GithubTokenInput) => GithubTool;
|
|
599
|
+
/** React to an issue or pull request with an emoji. Requires approval by default. */
|
|
600
|
+
declare const addIssueReaction: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
601
|
+
/** List reactions on an issue or pull request comment. */
|
|
602
|
+
declare const listCommentReactions: (token: GithubTokenInput) => GithubTool;
|
|
603
|
+
/** React to an issue or pull request comment with an emoji. Requires approval by default. */
|
|
604
|
+
declare const addCommentReaction: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
605
|
+
//#endregion
|
|
606
|
+
//#region src/tools/discussions.d.ts
|
|
607
|
+
/** List discussions in a repository, optionally filtered by category. */
|
|
608
|
+
declare const listDiscussions: (token: GithubTokenInput) => GithubTool;
|
|
609
|
+
/** Get a discussion by number. */
|
|
610
|
+
declare const getDiscussion: (token: GithubTokenInput) => GithubTool;
|
|
611
|
+
/** Add a comment to a discussion. Requires approval by default. */
|
|
612
|
+
declare const addDiscussionComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
613
|
+
//#endregion
|
|
614
|
+
//#region src/tools/notifications.d.ts
|
|
615
|
+
/** List notification threads for the authenticated user. */
|
|
616
|
+
declare const listNotifications: (token: GithubTokenInput) => GithubTool;
|
|
617
|
+
/** Mark a notification thread as read. Requires approval by default. */
|
|
618
|
+
declare const markNotificationRead: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
619
|
+
//#endregion
|
|
465
620
|
//#region src/tools/search.d.ts
|
|
466
|
-
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
|
|
621
|
+
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. Results include matching text snippets when GitHub returns them. */
|
|
467
622
|
declare const searchCode: (token: GithubTokenInput) => GithubTool;
|
|
468
623
|
/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
|
|
469
624
|
declare const searchRepositories: (token: GithubTokenInput) => GithubTool;
|
|
625
|
+
/** Search for issues and pull requests across GitHub using search qualifiers like "repo:owner/name is:open". */
|
|
626
|
+
declare const searchIssues: (token: GithubTokenInput) => GithubTool;
|
|
470
627
|
//#endregion
|
|
471
628
|
//#region src/tools/commits.d.ts
|
|
472
629
|
/** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
|
|
@@ -525,11 +682,15 @@ declare const getLatestRelease: (token: GithubTokenInput) => GithubTool;
|
|
|
525
682
|
declare const getRelease: (token: GithubTokenInput) => GithubTool;
|
|
526
683
|
/** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
|
|
527
684
|
declare const createRelease: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
685
|
+
/** Update an existing release — tag, target, title, notes, draft, or prerelease status. Requires approval by default. */
|
|
686
|
+
declare const updateRelease: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
687
|
+
/** Delete a release permanently. Requires approval by default. */
|
|
688
|
+
declare const deleteRelease: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
528
689
|
//#endregion
|
|
529
690
|
//#region src/tools/bundles.d.ts
|
|
530
691
|
/** Fetch pull request details plus files, reviews, and optional CI checks in one call. */
|
|
531
692
|
declare const getPullRequestContext: (token: GithubTokenInput) => GithubTool;
|
|
532
|
-
/** Fetch an issue plus available
|
|
693
|
+
/** Fetch an issue plus available label names and recent comments in one call. */
|
|
533
694
|
declare const getIssueContext: (token: GithubTokenInput) => GithubTool;
|
|
534
695
|
/** Fetch a release plus the previous release and tag comparison in one call. */
|
|
535
696
|
declare const getReleaseContext: (token: GithubTokenInput) => GithubTool;
|
|
@@ -575,7 +736,7 @@ declare function createGithubAgent<P extends readonly GithubToolPreset[]>(option
|
|
|
575
736
|
type GithubToolsOptions = GithubToolsBaseOptions & {
|
|
576
737
|
/**
|
|
577
738
|
* Restrict the returned tools to a predefined preset.
|
|
578
|
-
* Omit
|
|
739
|
+
* Prefer a focused preset for most agents. Omit or use `maintainer` for the full catalog.
|
|
579
740
|
*
|
|
580
741
|
* @see {@link GithubToolPreset} for available presets and included tools.
|
|
581
742
|
*
|
|
@@ -586,6 +747,9 @@ type GithubToolsOptions = GithubToolsBaseOptions & {
|
|
|
586
747
|
*
|
|
587
748
|
* // Combine presets
|
|
588
749
|
* createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
|
|
750
|
+
*
|
|
751
|
+
* // Full catalog
|
|
752
|
+
* createGithubTools({ token, preset: 'maintainer' })
|
|
589
753
|
* ```
|
|
590
754
|
*/
|
|
591
755
|
preset?: GithubToolPreset | GithubToolPreset[];
|
|
@@ -602,5 +766,5 @@ declare function createGithubTools<P extends readonly GithubToolPreset[]>(option
|
|
|
602
766
|
declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools | Pick<AllGithubTools, GithubToolName>;
|
|
603
767
|
type GithubTools = AllGithubTools & ToolSet;
|
|
604
768
|
//#endregion
|
|
605
|
-
export {
|
|
606
|
-
//# sourceMappingURL=index-
|
|
769
|
+
export { createLabel as $, GithubToolName as $t, listGists as A, listBranches as At, markNotificationRead as B, CommitToolOptions as Bt, rerunWorkflowRun as C, createBranch as Ct, deleteGist as D, getFileContent as Dt, createGistComment as E, forkRepository as Et, listCommits as F, PickGithubTools as Ft, addIssueReaction as G, ApprovalConfig as Gt, getDiscussion as H, Octokit$1 as Ht, searchCode as I, GithubTokenInput as It, addAssignees as J, CombinedPresetToolNames as Jt, listCommentReactions as K, GITHUB_WRITE_TOOLS as Kt, searchIssues as L, resolveGithubToken as Lt, compareCommits as M, AllGithubTools as Mt, getBlame as N, GithubToolsBaseOptions as Nt, getGist as O, getRepository as Ot, getCommit as P, GithubToolsForPreset as Pt, createIssue as Q, GITHUB_TOOL_NAMES as Qt, searchRepositories as R, GithubToolsContext as Rt, listWorkflows as S, updatePullRequestComment as St, createGist as T, createRepository as Tt, listDiscussions as U, ToolOptions as Ut, addDiscussionComment as V, GithubTool as Vt, addCommentReaction as W, ToolOverrides as Wt, addLabels as X, PRESET_TOOLS as Xt, addIssueComment as Y, GithubToolPreset as Yt, closeIssue as Z, PresetToolName as Zt, listCheckRuns as _, listPullRequestReviews as _t, createGithubAgent as a, listLabels as at, listWorkflowJobs as b, requestReviewers as bt, getPullRequestContext as c, updateIssue as ct, deleteRelease as d, addPullRequestComment as dt, deleteIssueComment as et, getLatestRelease as f, createPullRequest as ft, getCombinedStatus as g, listPullRequestFiles as gt, updateRelease as h, getPullRequest as ht, CreateGithubAgentOptions as i, listIssues as it, updateGist as j, createOctokit as jt, listGistComments as k, getRepositoryTree as kt, getReleaseContext as l, updateIssueComment as lt, listReleases as m, deletePullRequestComment as mt, GithubToolsOptions as n, getIssue as nt, getCiFailureContext as o, removeAssignees as ot, getRelease as p, createPullRequestReview as pt, listIssueReactions as q, GithubWriteToolName as qt, createGithubTools as r, listIssueComments as rt, getIssueContext as s, removeLabel as st, GithubTools as t, deleteLabel as tt, createRelease as u, updateLabel as ut, cancelWorkflowRun as v, listPullRequests as vt, triggerWorkflow as w, createOrUpdateFile as wt, listWorkflowRuns as x, updatePullRequest as xt, getWorkflowRun as y, mergePullRequest as yt, listNotifications as z, CommitIdentity as zt };
|
|
770
|
+
//# sourceMappingURL=index-BNeMjmgp.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BNeMjmgp.d.mts","names":[],"sources":["../src/core/tool-names.ts","../src/core/presets.ts","../src/core/write-tools.ts","../src/core/approval.ts","../src/types.ts","../src/core/context.ts","../src/core/token.ts","../src/core/tool-types.ts","../src/client.ts","../src/tools/repository.ts","../src/tools/pull-requests.ts","../src/tools/issues.ts","../src/tools/reactions.ts","../src/tools/discussions.ts","../src/tools/notifications.ts","../src/tools/search.ts","../src/tools/commits.ts","../src/tools/gists.ts","../src/tools/workflows.ts","../src/tools/checks.ts","../src/tools/releases.ts","../src/tools/bundles.ts","../src/agents.ts","../src/index.ts"],"mappings":";;;;;;;;cAIa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiKD,wBAAwB,+BAA+B;;;;;;;;cC9JtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2KD,gCAAgC;;KAGhC,eAAe,UAAU,oBAAoB,gBAAgB,cAAc,YAAY;;KAGvF,wBAAwB,mBAAmB,sBAAsB,eAAe;;;;;;;cCpL/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiFD,6BAA6B,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;KC3D7D,2B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AAO,qBAAmB;;cAcnD,kBAAmB,OAAO,qBAAmB;;cAa7C,oBAAqB,OAAO,qBAAmB;;cAa/C,sBAAuB,OAAO,qBAAmB;;;KCyFzD,eAAe,KAAK,sBAAsB;KAEnC,2BAA2B,eAAe;EACpD,OAAO,sBAAsB;;;;;;;;;EAS7B,SAAS,mBAAmB;;;;;;EAM5B;;;;;EAKA;;iBAGc,kBAAkB,SAAS;EAA6B;IAAuB,qBAAqB;iBACpG,kBAAkB,UAAU,kBAC1C,SAAS;EAA6B,QAAQ;IAC7C,qBAAqB,KAAK,gBAAgB,eAAe;iBAC5C,kBAAkB,mBAAmB,oBACnD,SAAS;EAA6B,QAAQ;IAC7C,qBAAqB,KAAK,gBAAgB,wBAAwB;;;KC1JzD,qBAAqB;;;;;;;;;;;;;;;;;;;EAmB/B,SAAS,mBAAmB;;iBAGd,kBAAkB,UAAU;EAA2B;IAAuB;iBAC9E,kBAAkB,UAAU,kBAC1C,SAAS;EAA2B,QAAQ;IAC3C,KAAK,gBAAgB,eAAe;iBACvB,kBAAkB,mBAAmB,oBACnD,SAAS;EAA2B,QAAQ;IAC3C,KAAK,gBAAgB,wBAAwB;iBAChC,kBAAkB,UAAU,qBAAqB,iBAAiB,KAAK,gBAAgB;KAyJ3F,cAAc,iBAAiB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
export { type AllGithubTools, type ApprovalConfig, type CombinedPresetToolNames, type CommitIdentity, type CommitToolOptions, type CreateGithubAgentOptions, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubTokenInput, type GithubTool, type GithubToolName, type GithubToolPreset, GithubTools, type GithubToolsContext, type GithubToolsForPreset, GithubToolsOptions, type GithubWriteToolName, type Octokit, PRESET_TOOLS, type PickGithubTools, type PresetToolName, type ToolOptions, type ToolOverrides, addAssignees, addIssueComment, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowRun, listBranches, listCheckRuns, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeAssignees, removeLabel, requestReviewers, rerunWorkflowRun, resolveGithubToken, searchCode, searchRepositories, triggerWorkflow, updateGist };
|
|
1
|
+
import { $ as createLabel, $t as GithubToolName, A as listGists, At as listBranches, B as markNotificationRead, Bt as CommitToolOptions, C as rerunWorkflowRun, Ct as createBranch, D as deleteGist, Dt as getFileContent, E as createGistComment, Et as forkRepository, F as listCommits, Ft as PickGithubTools, G as addIssueReaction, Gt as ApprovalConfig, H as getDiscussion, Ht as Octokit, I as searchCode, It as GithubTokenInput, J as addAssignees, Jt as CombinedPresetToolNames, K as listCommentReactions, Kt as GITHUB_WRITE_TOOLS, L as searchIssues, Lt as resolveGithubToken, M as compareCommits, Mt as AllGithubTools, N as getBlame, O as getGist, Ot as getRepository, P as getCommit, Pt as GithubToolsForPreset, Q as createIssue, Qt as GITHUB_TOOL_NAMES, R as searchRepositories, Rt as GithubToolsContext, S as listWorkflows, St as updatePullRequestComment, T as createGist, Tt as createRepository, U as listDiscussions, Ut as ToolOptions, V as addDiscussionComment, Vt as GithubTool, W as addCommentReaction, Wt as ToolOverrides, X as addLabels, Xt as PRESET_TOOLS, Y as addIssueComment, Yt as GithubToolPreset, Z as closeIssue, Zt as PresetToolName, _ as listCheckRuns, _t as listPullRequestReviews, a as createGithubAgent, at as listLabels, b as listWorkflowJobs, bt as requestReviewers, c as getPullRequestContext, ct as updateIssue, d as deleteRelease, dt as addPullRequestComment, et as deleteIssueComment, f as getLatestRelease, ft as createPullRequest, g as getCombinedStatus, gt as listPullRequestFiles, h as updateRelease, ht as getPullRequest, i as CreateGithubAgentOptions, it as listIssues, j as updateGist, jt as createOctokit, k as listGistComments, kt as getRepositoryTree, l as getReleaseContext, lt as updateIssueComment, m as listReleases, mt as deletePullRequestComment, n as GithubToolsOptions, nt as getIssue, o as getCiFailureContext, ot as removeAssignees, p as getRelease, pt as createPullRequestReview, q as listIssueReactions, qt as GithubWriteToolName, r as createGithubTools, rt as listIssueComments, s as getIssueContext, st as removeLabel, t as GithubTools, tt as deleteLabel, u as createRelease, ut as updateLabel, v as cancelWorkflowRun, vt as listPullRequests, w as triggerWorkflow, wt as createOrUpdateFile, x as listWorkflowRuns, xt as updatePullRequest, y as getWorkflowRun, yt as mergePullRequest, z as listNotifications, zt as CommitIdentity } from "./index-BNeMjmgp.mjs";
|
|
2
|
+
export { type AllGithubTools, type ApprovalConfig, type CombinedPresetToolNames, type CommitIdentity, type CommitToolOptions, type CreateGithubAgentOptions, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubTokenInput, type GithubTool, type GithubToolName, type GithubToolPreset, GithubTools, type GithubToolsContext, type GithubToolsForPreset, GithubToolsOptions, type GithubWriteToolName, type Octokit, PRESET_TOOLS, type PickGithubTools, type PresetToolName, type ToolOptions, type ToolOverrides, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowRun, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, requestReviewers, rerunWorkflowRun, resolveGithubToken, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
3
|
-
export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addAssignees, addIssueComment, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowRun, listBranches, listCheckRuns, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeAssignees, removeLabel, requestReviewers, rerunWorkflowRun, resolveGithubToken, searchCode, searchRepositories, triggerWorkflow, updateGist };
|
|
1
|
+
import { Ri as createOctokit, ci as resolveGithubToken, i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-Dk32V9Hl.mjs";
|
|
2
|
+
import { $ as deleteLabel, A as compareCommits, B as getDiscussion, C as createGist, Ct as createRepository, D as listGistComments, Dt as getRepositoryTree, E as getGist, Et as getRepository, F as searchIssues, G as listIssueReactions, H as addCommentReaction, I as searchRepositories, J as addLabels, K as addAssignees, L as listNotifications, M as getCommit, N as listCommits, O as listGists, Ot as listBranches, P as searchCode, Q as deleteIssueComment, R as markNotificationRead, S as triggerWorkflow, St as createOrUpdateFile, T as deleteGist, Tt as getFileContent, U as addIssueReaction, V as listDiscussions, W as listCommentReactions, X as createIssue, Y as closeIssue, Z as createLabel, _ as getWorkflowRun, _t as mergePullRequest, a as getIssueContext, at as removeLabel, b as listWorkflows, bt as updatePullRequestComment, c as createRelease, ct as updateLabel, d as getRelease, dt as createPullRequestReview, et as getIssue, f as listReleases, ft as deletePullRequestComment, g as cancelWorkflowRun, gt as listPullRequests, h as listCheckRuns, ht as listPullRequestReviews, i as getCiFailureContext, it as removeAssignees, j as getBlame, k as updateGist, l as deleteRelease, lt as addPullRequestComment, m as getCombinedStatus, mt as listPullRequestFiles, n as createGithubAgent, nt as listIssues, o as getPullRequestContext, ot as updateIssue, p as updateRelease, pt as getPullRequest, q as addIssueComment, rt as listLabels, s as getReleaseContext, st as updateIssueComment, t as createGithubTools, tt as listIssueComments, u as getLatestRelease, ut as createPullRequest, v as listWorkflowJobs, vt as requestReviewers, w as createGistComment, wt as forkRepository, x as rerunWorkflowRun, xt as createBranch, y as listWorkflowRuns, yt as updatePullRequest, z as addDiscussionComment } from "./src-jQWS2Txw.mjs";
|
|
3
|
+
export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowRun, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, requestReviewers, rerunWorkflowRun, resolveGithubToken, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
|