@github-tools/sdk 1.9.0 → 1.10.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 +82 -27
- package/dist/connect/eve.d.mts +14 -9
- package/dist/connect/eve.d.mts.map +1 -1
- package/dist/connect/eve.mjs +14 -9
- package/dist/connect/eve.mjs.map +1 -1
- package/dist/connect.d.mts +16 -8
- package/dist/connect.d.mts.map +1 -1
- package/dist/connect.mjs +2 -2
- package/dist/eve-runtime-CI4dR_hI.d.mts +54 -0
- package/dist/eve-runtime-CI4dR_hI.d.mts.map +1 -0
- package/dist/eve-runtime-CIcrt7MD.mjs +674 -0
- package/dist/eve-runtime-CIcrt7MD.mjs.map +1 -0
- package/dist/eve-runtime.d.mts +4 -0
- package/dist/eve-runtime.mjs +3 -0
- package/dist/eve.d.mts +5 -34
- package/dist/eve.d.mts.map +1 -1
- package/dist/eve.mjs +356 -3
- package/dist/eve.mjs.map +1 -0
- package/dist/{index-CtID5dUi.d.mts → index-B0nL0C00.d.mts} +159 -19
- package/dist/index-B0nL0C00.d.mts.map +1 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{src-D6vC3V8r.mjs → src-v-LjzPpR.mjs} +354 -68
- package/dist/src-v-LjzPpR.mjs.map +1 -0
- package/dist/{token-sbepWIkd.mjs → token-DDMlEkK-.mjs} +34 -5
- package/dist/token-DDMlEkK-.mjs.map +1 -0
- package/dist/{types-BVLof-5R.d.mts → types-VW0m0Uxl.d.mts} +3 -3
- package/dist/{types-BVLof-5R.d.mts.map → types-VW0m0Uxl.d.mts.map} +1 -1
- package/dist/{types-BOnJ0Rou.d.mts → types-Ygt1pw1N.d.mts} +4 -3
- package/dist/types-Ygt1pw1N.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-uIVfURVp.mjs} +792 -25
- package/dist/write-tools-uIVfURVp.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.map +0 -1
- package/dist/types-BOnJ0Rou.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,14 +53,20 @@ 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";
|
|
52
58
|
/** Create a new issue in a GitHub repository. Requires approval by default. */
|
|
53
59
|
readonly createIssue: "createIssue";
|
|
54
60
|
/** Add a comment to a GitHub issue. Requires approval by default. */
|
|
55
61
|
readonly addIssueComment: "addIssueComment";
|
|
62
|
+
/** Update the body of a comment on a GitHub issue. Requires approval by default. */
|
|
63
|
+
readonly updateIssueComment: "updateIssueComment";
|
|
64
|
+
/** Delete a comment from a GitHub issue permanently. Requires approval by default. */
|
|
65
|
+
readonly deleteIssueComment: "deleteIssueComment";
|
|
56
66
|
/** Close an open GitHub issue. Requires approval by default. */
|
|
57
67
|
readonly closeIssue: "closeIssue";
|
|
68
|
+
/** Update a GitHub issue — title, body, state, labels, milestone, or assignees. Requires approval by default. */
|
|
69
|
+
readonly updateIssue: "updateIssue";
|
|
58
70
|
/** List labels available in a GitHub repository. */
|
|
59
71
|
readonly listLabels: "listLabels";
|
|
60
72
|
/** Add labels to an issue or pull request. Requires approval by default. */
|
|
@@ -65,10 +77,12 @@ declare const GITHUB_TOOL_NAMES: {
|
|
|
65
77
|
readonly addAssignees: "addAssignees";
|
|
66
78
|
/** Remove assignees from an issue or pull request. Requires approval by default. */
|
|
67
79
|
readonly removeAssignees: "removeAssignees";
|
|
68
|
-
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
|
|
80
|
+
/** 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
81
|
readonly searchCode: "searchCode";
|
|
70
82
|
/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
|
|
71
83
|
readonly searchRepositories: "searchRepositories";
|
|
84
|
+
/** Search for issues and pull requests across GitHub using search qualifiers like "repo:owner/name is:open". */
|
|
85
|
+
readonly searchIssues: "searchIssues";
|
|
72
86
|
/** 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
87
|
readonly listCommits: "listCommits";
|
|
74
88
|
/** Get detailed information about a specific commit, including the list of files changed. Patches omitted by default. */
|
|
@@ -111,6 +125,24 @@ declare const GITHUB_TOOL_NAMES: {
|
|
|
111
125
|
readonly getCombinedStatus: "getCombinedStatus";
|
|
112
126
|
/** Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call. */
|
|
113
127
|
readonly getCiFailureContext: "getCiFailureContext";
|
|
128
|
+
/** List discussions in a GitHub repository, most recently updated first, optionally filtered by category. */
|
|
129
|
+
readonly listDiscussions: "listDiscussions";
|
|
130
|
+
/** Get a GitHub discussion by number. Body truncated by default (detail: summary). */
|
|
131
|
+
readonly getDiscussion: "getDiscussion";
|
|
132
|
+
/** Add a comment to a GitHub discussion. Requires approval by default. */
|
|
133
|
+
readonly addDiscussionComment: "addDiscussionComment";
|
|
134
|
+
/** List notification threads for the authenticated user. Requires a token with notifications access. */
|
|
135
|
+
readonly listNotifications: "listNotifications";
|
|
136
|
+
/** Mark a single notification thread as read. Requires approval by default. */
|
|
137
|
+
readonly markNotificationRead: "markNotificationRead";
|
|
138
|
+
/** List reactions on an issue or pull request conversation, with per-emoji counts. */
|
|
139
|
+
readonly listIssueReactions: "listIssueReactions";
|
|
140
|
+
/** React to an issue or pull request with an emoji. Requires approval by default. */
|
|
141
|
+
readonly addIssueReaction: "addIssueReaction";
|
|
142
|
+
/** List reactions on an issue or pull request comment, with per-emoji counts. */
|
|
143
|
+
readonly listCommentReactions: "listCommentReactions";
|
|
144
|
+
/** React to an issue or pull request comment with an emoji. Requires approval by default. */
|
|
145
|
+
readonly addCommentReaction: "addCommentReaction";
|
|
114
146
|
/** List releases for a GitHub repository, newest first (includes drafts and prereleases). */
|
|
115
147
|
readonly listReleases: "listReleases";
|
|
116
148
|
/** Get the latest published release for a GitHub repository (excludes drafts and prereleases). Body truncated by default. */
|
|
@@ -121,6 +153,10 @@ declare const GITHUB_TOOL_NAMES: {
|
|
|
121
153
|
readonly getReleaseContext: "getReleaseContext";
|
|
122
154
|
/** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
|
|
123
155
|
readonly createRelease: "createRelease";
|
|
156
|
+
/** Update an existing release — tag, target, title, notes, draft, or prerelease status. Requires approval by default. */
|
|
157
|
+
readonly updateRelease: "updateRelease";
|
|
158
|
+
/** Delete a release permanently. Requires approval by default. */
|
|
159
|
+
readonly deleteRelease: "deleteRelease";
|
|
124
160
|
};
|
|
125
161
|
type GithubToolName = typeof GITHUB_TOOL_NAMES[keyof typeof GITHUB_TOOL_NAMES];
|
|
126
162
|
//#endregion
|
|
@@ -136,20 +172,26 @@ declare const PRESET_TOOLS: {
|
|
|
136
172
|
*
|
|
137
173
|
* Tools: `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `getPullRequestContext`,
|
|
138
174
|
* `getFileContent`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `getRepository`, `listBranches`,
|
|
139
|
-
* `searchCode`, `listCheckRuns`, `getCombinedStatus`, `
|
|
175
|
+
* `searchCode`, `listCheckRuns`, `getCombinedStatus`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`,
|
|
176
|
+
* `deletePullRequestComment`, `createPullRequestReview`, `requestReviewers`.
|
|
140
177
|
*
|
|
141
178
|
* Agent prompt: optimized for thorough PR review with inline feedback.
|
|
142
179
|
*/
|
|
143
|
-
readonly 'code-review': readonly ["getPullRequest", "listPullRequests", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "getFileContent", "listCommits", "getCommit", "getBlame", "compareCommits", "getRepository", "listBranches", "searchCode", "listCheckRuns", "getCombinedStatus", "addPullRequestComment", "createPullRequestReview", "requestReviewers"];
|
|
180
|
+
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
181
|
/**
|
|
145
182
|
* **Issue triage** — manage and organize GitHub issues.
|
|
146
183
|
*
|
|
147
|
-
* Tools: `listIssues`, `
|
|
148
|
-
* `
|
|
184
|
+
* Tools: `listIssues`, `getIssueContext`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`,
|
|
185
|
+
* `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `addAssignees`, `removeAssignees`,
|
|
186
|
+
* `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`,
|
|
187
|
+
* `searchRepositories`, `searchCode`, `searchIssues`.
|
|
149
188
|
*
|
|
189
|
+
* Prefer `getIssueContext` (issue + `labelNames` + recent comments) over separate get/list calls.
|
|
190
|
+
* Reopen a closed issue with `updateIssue` (`state: 'open'`) — there is no separate reopen tool.
|
|
191
|
+
* Acknowledge a report with `addIssueReaction` / `addCommentReaction` instead of a comment when no reply is needed.
|
|
150
192
|
* Agent prompt: optimized for categorizing, labeling, and responding to issues.
|
|
151
193
|
*/
|
|
152
|
-
readonly 'issue-triage': readonly ["listIssues", "
|
|
194
|
+
readonly 'issue-triage': readonly ["listIssues", "getIssueContext", "createIssue", "addIssueComment", "updateIssueComment", "deleteIssueComment", "closeIssue", "updateIssue", "addLabels", "removeLabel", "addAssignees", "removeAssignees", "listIssueReactions", "addIssueReaction", "listCommentReactions", "addCommentReaction", "getRepository", "searchRepositories", "searchCode", "searchIssues"];
|
|
153
195
|
/**
|
|
154
196
|
* **CI operations** — monitor and manage GitHub Actions workflows.
|
|
155
197
|
*
|
|
@@ -163,16 +205,16 @@ declare const PRESET_TOOLS: {
|
|
|
163
205
|
/**
|
|
164
206
|
* **Repository explorer** — read-only access to browse codebases.
|
|
165
207
|
*
|
|
166
|
-
* Tools: all read-only tools including repos, branches, PRs, issues, commits, blame, comparisons,
|
|
208
|
+
* Tools: all read-only tools including repos, branches, PRs, issues, discussions, commits, blame, comparisons,
|
|
167
209
|
* search, gists, workflows, checks, and releases. No write operations.
|
|
168
210
|
*
|
|
169
211
|
* Agent prompt: optimized for answering questions about code structure and history.
|
|
170
212
|
*/
|
|
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"];
|
|
213
|
+
readonly 'repo-explorer': readonly ["getRepository", "listBranches", "getFileContent", "getRepositoryTree", "listPullRequests", "getPullRequest", "listPullRequestFiles", "listPullRequestReviews", "getPullRequestContext", "listIssues", "getIssue", "getIssueContext", "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
214
|
/**
|
|
173
215
|
* **Security audit** — review repositories for security risks and report findings.
|
|
174
216
|
*
|
|
175
|
-
* Tools: read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `getCommit`,
|
|
217
|
+
* Tools: read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `searchIssues`, `listCommits`, `getCommit`,
|
|
176
218
|
* `getBlame`, `compareCommits`), PR and CI visibility (`listPullRequests`, `getPullRequest`, `listPullRequestFiles`,
|
|
177
219
|
* `getPullRequestContext`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `listWorkflows`, `listWorkflowRuns`,
|
|
178
220
|
* `getWorkflowRun`, `listWorkflowJobs`), plus `createIssue`, `addIssueComment`, and `addLabels` to report findings.
|
|
@@ -180,18 +222,47 @@ declare const PRESET_TOOLS: {
|
|
|
180
222
|
*
|
|
181
223
|
* Agent prompt: optimized for finding and reporting security risks without making changes.
|
|
182
224
|
*/
|
|
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"];
|
|
225
|
+
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
226
|
/**
|
|
185
227
|
* **Release manager** — prepare and publish GitHub releases.
|
|
186
228
|
*
|
|
187
229
|
* Tools: `getRepository`, `listBranches`, `listCommits`, `getCommit`, `compareCommits`,
|
|
188
|
-
* `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext`, `createRelease`,
|
|
230
|
+
* `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext`, `createRelease`, `updateRelease`, `deleteRelease`,
|
|
189
231
|
* `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `triggerWorkflow`,
|
|
190
232
|
* `listPullRequests`, `getPullRequest`.
|
|
191
233
|
*
|
|
192
234
|
* Agent prompt: optimized for summarizing changes and cutting releases safely.
|
|
193
235
|
*/
|
|
194
|
-
readonly 'release-manager': readonly ["getRepository", "listBranches", "listCommits", "getCommit", "compareCommits", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext", "createRelease", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "triggerWorkflow", "listPullRequests", "getPullRequest"];
|
|
236
|
+
readonly 'release-manager': readonly ["getRepository", "listBranches", "listCommits", "getCommit", "compareCommits", "listReleases", "getLatestRelease", "getRelease", "getReleaseContext", "createRelease", "updateRelease", "deleteRelease", "listWorkflows", "listWorkflowRuns", "getWorkflowRun", "listWorkflowJobs", "triggerWorkflow", "listPullRequests", "getPullRequest"];
|
|
237
|
+
/**
|
|
238
|
+
* **Discussion moderator** — answer and moderate repository Discussions.
|
|
239
|
+
*
|
|
240
|
+
* Tools: `listDiscussions`, `getDiscussion`, `addDiscussionComment`,
|
|
241
|
+
* `getRepository`, `searchIssues`, `getIssueContext`, `addIssueComment`.
|
|
242
|
+
*
|
|
243
|
+
* Prefer discussions for Q&A; link related issues with `getIssueContext` / `addIssueComment` when needed.
|
|
244
|
+
* Agent prompt: optimized for clear, on-topic discussion replies.
|
|
245
|
+
*/
|
|
246
|
+
readonly 'discussion-moderator': readonly ["listDiscussions", "getDiscussion", "addDiscussionComment", "getRepository", "searchIssues", "getIssueContext", "addIssueComment"];
|
|
247
|
+
/**
|
|
248
|
+
* **Notification inbox** — triage authenticated-user notification threads.
|
|
249
|
+
*
|
|
250
|
+
* Tools: `listNotifications`, `markNotificationRead`, `getIssue`, `getPullRequest`, `getRepository`.
|
|
251
|
+
*
|
|
252
|
+
* Requires a user PAT with the Notifications account permission — not available on Connect installation tokens.
|
|
253
|
+
* Agent prompt: optimized for clearing inbox noise and following up on actionable threads.
|
|
254
|
+
*/
|
|
255
|
+
readonly 'notification-inbox': readonly ["listNotifications", "markNotificationRead", "getIssue", "getPullRequest", "getRepository"];
|
|
256
|
+
/**
|
|
257
|
+
* **PR author** — open pull requests without the full write surface.
|
|
258
|
+
*
|
|
259
|
+
* Tools: `getRepository`, `listBranches`, `getFileContent`, `createBranch`, `createOrUpdateFile`,
|
|
260
|
+
* `createPullRequest`, `updatePullRequest`, `getPullRequest`, `listPullRequestFiles`,
|
|
261
|
+
* `compareCommits`, `getCommit`.
|
|
262
|
+
*
|
|
263
|
+
* Agent prompt: optimized for branching, editing files, and opening focused PRs.
|
|
264
|
+
*/
|
|
265
|
+
readonly 'pr-author': readonly ["getRepository", "listBranches", "getFileContent", "createBranch", "createOrUpdateFile", "createPullRequest", "updatePullRequest", "getPullRequest", "listPullRequestFiles", "compareCommits", "getCommit"];
|
|
195
266
|
/**
|
|
196
267
|
* **Maintainer** — full repository maintenance with all read and write tools.
|
|
197
268
|
*
|
|
@@ -199,7 +270,7 @@ declare const PRESET_TOOLS: {
|
|
|
199
270
|
*
|
|
200
271
|
* Agent prompt: optimized for day-to-day repo maintenance with careful write operations.
|
|
201
272
|
*/
|
|
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"];
|
|
273
|
+
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", "createIssue", "addIssueComment", "updateIssueComment", "deleteIssueComment", "closeIssue", "updateIssue", "listLabels", "addLabels", "removeLabel", "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
274
|
};
|
|
204
275
|
type GithubToolPreset = keyof typeof PRESET_TOOLS;
|
|
205
276
|
/** Tool names included in a single preset. */
|
|
@@ -225,8 +296,14 @@ declare const GITHUB_WRITE_TOOLS: {
|
|
|
225
296
|
readonly createPullRequest: "createPullRequest";
|
|
226
297
|
/** Merge a pull request. Requires approval by default. */
|
|
227
298
|
readonly mergePullRequest: "mergePullRequest";
|
|
299
|
+
/** Update a pull request. Requires approval by default. */
|
|
300
|
+
readonly updatePullRequest: "updatePullRequest";
|
|
228
301
|
/** Add a comment to a pull request. Requires approval by default. */
|
|
229
302
|
readonly addPullRequestComment: "addPullRequestComment";
|
|
303
|
+
/** Update a pull request comment. Requires approval by default. */
|
|
304
|
+
readonly updatePullRequestComment: "updatePullRequestComment";
|
|
305
|
+
/** Delete a pull request comment. Requires approval by default. */
|
|
306
|
+
readonly deletePullRequestComment: "deletePullRequestComment";
|
|
230
307
|
/** Submit a pull request review with optional inline comments. Requires approval by default. */
|
|
231
308
|
readonly createPullRequestReview: "createPullRequestReview";
|
|
232
309
|
/** Request reviews from users or teams on a pull request. Requires approval by default. */
|
|
@@ -235,8 +312,14 @@ declare const GITHUB_WRITE_TOOLS: {
|
|
|
235
312
|
readonly createIssue: "createIssue";
|
|
236
313
|
/** Add a comment to a GitHub issue. Requires approval by default. */
|
|
237
314
|
readonly addIssueComment: "addIssueComment";
|
|
315
|
+
/** Update a GitHub issue comment. Requires approval by default. */
|
|
316
|
+
readonly updateIssueComment: "updateIssueComment";
|
|
317
|
+
/** Delete a GitHub issue comment. Requires approval by default. */
|
|
318
|
+
readonly deleteIssueComment: "deleteIssueComment";
|
|
238
319
|
/** Close an open GitHub issue. Requires approval by default. */
|
|
239
320
|
readonly closeIssue: "closeIssue";
|
|
321
|
+
/** Update a GitHub issue. Requires approval by default. */
|
|
322
|
+
readonly updateIssue: "updateIssue";
|
|
240
323
|
/** Add labels to an issue or pull request. Requires approval by default. */
|
|
241
324
|
readonly addLabels: "addLabels";
|
|
242
325
|
/** Remove a label from an issue or pull request. Requires approval by default. */
|
|
@@ -253,6 +336,14 @@ declare const GITHUB_WRITE_TOOLS: {
|
|
|
253
336
|
readonly deleteGist: "deleteGist";
|
|
254
337
|
/** Add a comment to a gist. Requires approval by default. */
|
|
255
338
|
readonly createGistComment: "createGistComment";
|
|
339
|
+
/** Add a comment to a GitHub discussion. Requires approval by default. */
|
|
340
|
+
readonly addDiscussionComment: "addDiscussionComment";
|
|
341
|
+
/** Mark a single notification thread as read. Requires approval by default. */
|
|
342
|
+
readonly markNotificationRead: "markNotificationRead";
|
|
343
|
+
/** React to an issue or pull request with an emoji. Requires approval by default. */
|
|
344
|
+
readonly addIssueReaction: "addIssueReaction";
|
|
345
|
+
/** React to an issue or pull request comment with an emoji. Requires approval by default. */
|
|
346
|
+
readonly addCommentReaction: "addCommentReaction";
|
|
256
347
|
/** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
|
|
257
348
|
readonly triggerWorkflow: "triggerWorkflow";
|
|
258
349
|
/** Cancel an in-progress workflow run. Requires approval by default. */
|
|
@@ -261,6 +352,10 @@ declare const GITHUB_WRITE_TOOLS: {
|
|
|
261
352
|
readonly rerunWorkflowRun: "rerunWorkflowRun";
|
|
262
353
|
/** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
|
|
263
354
|
readonly createRelease: "createRelease";
|
|
355
|
+
/** Update an existing release. Requires approval by default. */
|
|
356
|
+
readonly updateRelease: "updateRelease";
|
|
357
|
+
/** Delete a release permanently. Requires approval by default. */
|
|
358
|
+
readonly deleteRelease: "deleteRelease";
|
|
264
359
|
};
|
|
265
360
|
type GithubWriteToolName = typeof GITHUB_WRITE_TOOLS[keyof typeof GITHUB_WRITE_TOOLS];
|
|
266
361
|
//#endregion
|
|
@@ -429,8 +524,14 @@ declare const getPullRequest: (token: GithubTokenInput) => GithubTool;
|
|
|
429
524
|
declare const createPullRequest: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
430
525
|
/** Merge a pull request. Requires approval by default. */
|
|
431
526
|
declare const mergePullRequest: (token: GithubTokenInput, { needsApproval, coAuthors }?: MergeToolOptions) => GithubTool;
|
|
527
|
+
/** Update a pull request — title, body, state, base branch, or draft status. Requires approval by default. */
|
|
528
|
+
declare const updatePullRequest: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
432
529
|
/** Add a comment to a pull request. Requires approval by default. */
|
|
433
530
|
declare const addPullRequestComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
531
|
+
/** Update the body of a comment on a pull request. Requires approval by default. */
|
|
532
|
+
declare const updatePullRequestComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
533
|
+
/** Delete a comment from a pull request permanently. Requires approval by default. */
|
|
534
|
+
declare const deletePullRequestComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
434
535
|
/** List files changed in a pull request with status and stats. Patches omitted by default. */
|
|
435
536
|
declare const listPullRequestFiles: (token: GithubTokenInput) => GithubTool;
|
|
436
537
|
/** List reviews on a pull request (approvals, change requests, and comments). */
|
|
@@ -451,6 +552,12 @@ declare const createIssue: (token: GithubTokenInput, { needsApproval }?: ToolOpt
|
|
|
451
552
|
declare const addIssueComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
452
553
|
/** Close an open GitHub issue. Requires approval by default. */
|
|
453
554
|
declare const closeIssue: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
555
|
+
/** Update a GitHub issue — title, body, state, labels, milestone, or assignees. Requires approval by default. */
|
|
556
|
+
declare const updateIssue: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
557
|
+
/** Update the body of a comment on a GitHub issue. Requires approval by default. */
|
|
558
|
+
declare const updateIssueComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
559
|
+
/** Delete a comment from a GitHub issue permanently. Requires approval by default. */
|
|
560
|
+
declare const deleteIssueComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
454
561
|
/** List labels available in a GitHub repository. */
|
|
455
562
|
declare const listLabels: (token: GithubTokenInput) => GithubTool;
|
|
456
563
|
/** Add labels to an issue or pull request. Requires approval by default. */
|
|
@@ -462,11 +569,37 @@ declare const addAssignees: (token: GithubTokenInput, { needsApproval }?: ToolOp
|
|
|
462
569
|
/** Remove assignees from an issue or pull request. Requires approval by default. */
|
|
463
570
|
declare const removeAssignees: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
464
571
|
//#endregion
|
|
572
|
+
//#region src/tools/reactions.d.ts
|
|
573
|
+
/** List reactions on an issue or pull request conversation. */
|
|
574
|
+
declare const listIssueReactions: (token: GithubTokenInput) => GithubTool;
|
|
575
|
+
/** React to an issue or pull request with an emoji. Requires approval by default. */
|
|
576
|
+
declare const addIssueReaction: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
577
|
+
/** List reactions on an issue or pull request comment. */
|
|
578
|
+
declare const listCommentReactions: (token: GithubTokenInput) => GithubTool;
|
|
579
|
+
/** React to an issue or pull request comment with an emoji. Requires approval by default. */
|
|
580
|
+
declare const addCommentReaction: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region src/tools/discussions.d.ts
|
|
583
|
+
/** List discussions in a repository, optionally filtered by category. */
|
|
584
|
+
declare const listDiscussions: (token: GithubTokenInput) => GithubTool;
|
|
585
|
+
/** Get a discussion by number. */
|
|
586
|
+
declare const getDiscussion: (token: GithubTokenInput) => GithubTool;
|
|
587
|
+
/** Add a comment to a discussion. Requires approval by default. */
|
|
588
|
+
declare const addDiscussionComment: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
589
|
+
//#endregion
|
|
590
|
+
//#region src/tools/notifications.d.ts
|
|
591
|
+
/** List notification threads for the authenticated user. */
|
|
592
|
+
declare const listNotifications: (token: GithubTokenInput) => GithubTool;
|
|
593
|
+
/** Mark a notification thread as read. Requires approval by default. */
|
|
594
|
+
declare const markNotificationRead: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
595
|
+
//#endregion
|
|
465
596
|
//#region src/tools/search.d.ts
|
|
466
|
-
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
|
|
597
|
+
/** 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
598
|
declare const searchCode: (token: GithubTokenInput) => GithubTool;
|
|
468
599
|
/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
|
|
469
600
|
declare const searchRepositories: (token: GithubTokenInput) => GithubTool;
|
|
601
|
+
/** Search for issues and pull requests across GitHub using search qualifiers like "repo:owner/name is:open". */
|
|
602
|
+
declare const searchIssues: (token: GithubTokenInput) => GithubTool;
|
|
470
603
|
//#endregion
|
|
471
604
|
//#region src/tools/commits.d.ts
|
|
472
605
|
/** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
|
|
@@ -525,11 +658,15 @@ declare const getLatestRelease: (token: GithubTokenInput) => GithubTool;
|
|
|
525
658
|
declare const getRelease: (token: GithubTokenInput) => GithubTool;
|
|
526
659
|
/** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
|
|
527
660
|
declare const createRelease: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
661
|
+
/** Update an existing release — tag, target, title, notes, draft, or prerelease status. Requires approval by default. */
|
|
662
|
+
declare const updateRelease: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
663
|
+
/** Delete a release permanently. Requires approval by default. */
|
|
664
|
+
declare const deleteRelease: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
528
665
|
//#endregion
|
|
529
666
|
//#region src/tools/bundles.d.ts
|
|
530
667
|
/** Fetch pull request details plus files, reviews, and optional CI checks in one call. */
|
|
531
668
|
declare const getPullRequestContext: (token: GithubTokenInput) => GithubTool;
|
|
532
|
-
/** Fetch an issue plus available
|
|
669
|
+
/** Fetch an issue plus available label names and recent comments in one call. */
|
|
533
670
|
declare const getIssueContext: (token: GithubTokenInput) => GithubTool;
|
|
534
671
|
/** Fetch a release plus the previous release and tag comparison in one call. */
|
|
535
672
|
declare const getReleaseContext: (token: GithubTokenInput) => GithubTool;
|
|
@@ -575,7 +712,7 @@ declare function createGithubAgent<P extends readonly GithubToolPreset[]>(option
|
|
|
575
712
|
type GithubToolsOptions = GithubToolsBaseOptions & {
|
|
576
713
|
/**
|
|
577
714
|
* Restrict the returned tools to a predefined preset.
|
|
578
|
-
* Omit
|
|
715
|
+
* Prefer a focused preset for most agents. Omit or use `maintainer` for the full catalog.
|
|
579
716
|
*
|
|
580
717
|
* @see {@link GithubToolPreset} for available presets and included tools.
|
|
581
718
|
*
|
|
@@ -586,6 +723,9 @@ type GithubToolsOptions = GithubToolsBaseOptions & {
|
|
|
586
723
|
*
|
|
587
724
|
* // Combine presets
|
|
588
725
|
* createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
|
|
726
|
+
*
|
|
727
|
+
* // Full catalog
|
|
728
|
+
* createGithubTools({ token, preset: 'maintainer' })
|
|
589
729
|
* ```
|
|
590
730
|
*/
|
|
591
731
|
preset?: GithubToolPreset | GithubToolPreset[];
|
|
@@ -602,5 +742,5 @@ declare function createGithubTools<P extends readonly GithubToolPreset[]>(option
|
|
|
602
742
|
declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools | Pick<AllGithubTools, GithubToolName>;
|
|
603
743
|
type GithubTools = AllGithubTools & ToolSet;
|
|
604
744
|
//#endregion
|
|
605
|
-
export {
|
|
606
|
-
//# sourceMappingURL=index-
|
|
745
|
+
export { deleteIssueComment as $, listGists as A, GithubToolsForPreset as At, markNotificationRead as B, ToolOverrides as Bt, rerunWorkflowRun as C, getFileContent as Ct, deleteGist as D, createOctokit as Dt, createGistComment as E, listBranches as Et, listCommits as F, CommitIdentity as Ft, addIssueReaction as G, GithubToolPreset as Gt, getDiscussion as H, GITHUB_WRITE_TOOLS as Ht, searchCode as I, CommitToolOptions as It, addAssignees as J, GITHUB_TOOL_NAMES as Jt, listCommentReactions as K, PRESET_TOOLS as Kt, searchIssues as L, GithubTool as Lt, compareCommits as M, GithubTokenInput as Mt, getBlame as N, resolveGithubToken as Nt, getGist as O, AllGithubTools as Ot, getCommit as P, GithubToolsContext as Pt, createIssue as Q, searchRepositories as R, Octokit$1 as Rt, listWorkflows as S, forkRepository as St, createGist as T, getRepositoryTree as Tt, listDiscussions as U, GithubWriteToolName as Ut, addDiscussionComment as V, ApprovalConfig as Vt, addCommentReaction as W, CombinedPresetToolNames as Wt, addLabels as X, addIssueComment as Y, GithubToolName as Yt, closeIssue as Z, listCheckRuns as _, updatePullRequest as _t, createGithubAgent as a, updateIssue as at, listWorkflowJobs as b, createOrUpdateFile as bt, getPullRequestContext as c, createPullRequest as ct, deleteRelease as d, getPullRequest as dt, getIssue as et, getLatestRelease as f, listPullRequestFiles as ft, getCombinedStatus as g, requestReviewers as gt, updateRelease as h, mergePullRequest as ht, CreateGithubAgentOptions as i, removeLabel as it, updateGist as j, PickGithubTools as jt, listGistComments as k, GithubToolsBaseOptions as kt, getReleaseContext as l, createPullRequestReview as lt, listReleases as m, listPullRequests as mt, GithubToolsOptions as n, listLabels as nt, getCiFailureContext as o, updateIssueComment as ot, getRelease as p, listPullRequestReviews as pt, listIssueReactions as q, PresetToolName as qt, createGithubTools as r, removeAssignees as rt, getIssueContext as s, addPullRequestComment as st, GithubTools as t, listIssues as tt, createRelease as u, deletePullRequestComment as ut, cancelWorkflowRun as v, updatePullRequestComment as vt, triggerWorkflow as w, getRepository as wt, listWorkflowRuns as x, createRepository as xt, getWorkflowRun as y, createBranch as yt, listNotifications as z, ToolOptions as zt };
|
|
746
|
+
//# sourceMappingURL=index-B0nL0C00.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B0nL0C00.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;K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AO,qBAAmB;;;;cCD/C,eAAgB,OAAO,qBAAmB;;cAa1C,mBAAoB,OAAO,qBAAmB;;cAa9C,aAAc,OAAO,qBAAmB;;cAaxC,gBAAiB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAcvF,gBAAiB,OAAO,oBAAkB,kBAA0B,gBAAmB;;cAcvF,gBAAiB,OAAO,oBAAkB,kBAA0B,gBAAmB;;;;cCxEvF,wBAAyB,OAAO,qBAAmB;;cAcnD,kBAAmB,OAAO,qBAAmB;;cAa7C,oBAAqB,OAAO,qBAAmB;;cAa/C,sBAAuB,OAAO,qBAAmB;;;KCwFzD,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;;;KCzJzD,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;KAqJ3F,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 deleteIssueComment, A as listGists, At as GithubToolsForPreset, B as markNotificationRead, Bt as ToolOverrides, C as rerunWorkflowRun, Ct as getFileContent, D as deleteGist, Dt as createOctokit, E as createGistComment, Et as listBranches, F as listCommits, Ft as CommitIdentity, G as addIssueReaction, Gt as GithubToolPreset, H as getDiscussion, Ht as GITHUB_WRITE_TOOLS, I as searchCode, It as CommitToolOptions, J as addAssignees, Jt as GITHUB_TOOL_NAMES, K as listCommentReactions, Kt as PRESET_TOOLS, L as searchIssues, Lt as GithubTool, M as compareCommits, Mt as GithubTokenInput, N as getBlame, Nt as resolveGithubToken, O as getGist, Ot as AllGithubTools, P as getCommit, Pt as GithubToolsContext, Q as createIssue, R as searchRepositories, Rt as Octokit, S as listWorkflows, St as forkRepository, T as createGist, Tt as getRepositoryTree, U as listDiscussions, Ut as GithubWriteToolName, V as addDiscussionComment, Vt as ApprovalConfig, W as addCommentReaction, Wt as CombinedPresetToolNames, X as addLabels, Y as addIssueComment, Yt as GithubToolName, Z as closeIssue, _ as listCheckRuns, _t as updatePullRequest, a as createGithubAgent, at as updateIssue, b as listWorkflowJobs, bt as createOrUpdateFile, c as getPullRequestContext, ct as createPullRequest, d as deleteRelease, dt as getPullRequest, et as getIssue, f as getLatestRelease, ft as listPullRequestFiles, g as getCombinedStatus, gt as requestReviewers, h as updateRelease, ht as mergePullRequest, i as CreateGithubAgentOptions, it as removeLabel, j as updateGist, jt as PickGithubTools, k as listGistComments, l as getReleaseContext, lt as createPullRequestReview, m as listReleases, mt as listPullRequests, n as GithubToolsOptions, nt as listLabels, o as getCiFailureContext, ot as updateIssueComment, p as getRelease, pt as listPullRequestReviews, q as listIssueReactions, qt as PresetToolName, r as createGithubTools, rt as removeAssignees, s as getIssueContext, st as addPullRequestComment, t as GithubTools, tt as listIssues, u as createRelease, ut as deletePullRequestComment, v as cancelWorkflowRun, vt as updatePullRequestComment, w as triggerWorkflow, wt as getRepository, x as listWorkflowRuns, xt as createRepository, y as getWorkflowRun, yt as createBranch, z as listNotifications, zt as ToolOptions } from "./index-B0nL0C00.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, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, deleteIssueComment, 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, 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, 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 { Ei as createOctokit, Xr as resolveGithubToken, i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-uIVfURVp.mjs";
|
|
2
|
+
import { $ as listIssues, A as compareCommits, B as getDiscussion, C as createGist, Ct as getRepositoryTree, D as listGistComments, E as getGist, 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, P as searchCode, Q as getIssue, R as markNotificationRead, S as triggerWorkflow, St as getRepository, T as deleteGist, U as addIssueReaction, V as listDiscussions, W as listCommentReactions, X as createIssue, Y as closeIssue, Z as deleteIssueComment, _ as getWorkflowRun, _t as createBranch, a as getIssueContext, at as addPullRequestComment, b as listWorkflows, bt as forkRepository, c as createRelease, ct as deletePullRequestComment, d as getRelease, dt as listPullRequestReviews, et as listLabels, f as listReleases, ft as listPullRequests, g as cancelWorkflowRun, gt as updatePullRequestComment, h as listCheckRuns, ht as updatePullRequest, i as getCiFailureContext, it as updateIssueComment, j as getBlame, k as updateGist, l as deleteRelease, lt as getPullRequest, m as getCombinedStatus, mt as requestReviewers, n as createGithubAgent, nt as removeLabel, o as getPullRequestContext, ot as createPullRequest, p as updateRelease, pt as mergePullRequest, q as addIssueComment, rt as updateIssue, s as getReleaseContext, st as createPullRequestReview, t as createGithubTools, tt as removeAssignees, u as getLatestRelease, ut as listPullRequestFiles, v as listWorkflowJobs, vt as createOrUpdateFile, w as createGistComment, wt as listBranches, x as rerunWorkflowRun, xt as getFileContent, y as listWorkflowRuns, yt as createRepository, z as addDiscussionComment } from "./src-v-LjzPpR.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, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteGist, deleteIssueComment, 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, 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, updatePullRequest, updatePullRequestComment, updateRelease };
|