@github-tools/sdk 1.12.0 → 1.13.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.
Files changed (45) hide show
  1. package/README.md +17 -12
  2. package/dist/connect/eve.d.mts +2 -3
  3. package/dist/connect/eve.d.mts.map +1 -1
  4. package/dist/connect/eve.mjs +1 -1
  5. package/dist/connect.d.mts +8 -86
  6. package/dist/connect.d.mts.map +1 -1
  7. package/dist/connect.mjs +2 -2
  8. package/dist/eve-runtime-BkzmgsI2.mjs +274 -0
  9. package/dist/eve-runtime-BkzmgsI2.mjs.map +1 -0
  10. package/dist/{eve-runtime-BmoVTbEU.d.mts → eve-runtime-C5HaKmOP.d.mts} +14 -6
  11. package/dist/eve-runtime-C5HaKmOP.d.mts.map +1 -0
  12. package/dist/eve-runtime.d.mts +4 -3
  13. package/dist/eve-runtime.mjs +2 -2
  14. package/dist/eve.d.mts +4 -4
  15. package/dist/eve.d.mts.map +1 -1
  16. package/dist/eve.mjs +2 -2
  17. package/dist/index-BjRUOM2Z.d.mts +287 -0
  18. package/dist/index-BjRUOM2Z.d.mts.map +1 -0
  19. package/dist/index.d.mts +3 -2
  20. package/dist/index.mjs +3 -3
  21. package/dist/{src-D45Onmsn.mjs → src-DPcwVTf-.mjs} +80 -3
  22. package/dist/src-DPcwVTf-.mjs.map +1 -0
  23. package/dist/{token-BIn80-XU.mjs → token-qesvchbI.mjs} +9 -168
  24. package/dist/token-qesvchbI.mjs.map +1 -0
  25. package/dist/tool-types-K8i--5D9.d.mts +3255 -0
  26. package/dist/tool-types-K8i--5D9.d.mts.map +1 -0
  27. package/dist/{types-CiNZNOXa.d.mts → types-6aWpzNzg.d.mts} +3 -3
  28. package/dist/{types-CiNZNOXa.d.mts.map → types-6aWpzNzg.d.mts.map} +1 -1
  29. package/dist/{types-CoTpsxxp.d.mts → types-BVSe0Zey.d.mts} +4 -3
  30. package/dist/types-BVSe0Zey.d.mts.map +1 -0
  31. package/dist/workflow.d.mts +2 -1
  32. package/dist/workflow.d.mts.map +1 -1
  33. package/dist/workflow.mjs +2 -2
  34. package/dist/{write-tools-CnJE0Vvu.mjs → write-tools-BEcL5Fv6.mjs} +1056 -184
  35. package/dist/write-tools-BEcL5Fv6.mjs.map +1 -0
  36. package/package.json +3 -3
  37. package/dist/eve-runtime-3asyv7YM.mjs +0 -771
  38. package/dist/eve-runtime-3asyv7YM.mjs.map +0 -1
  39. package/dist/eve-runtime-BmoVTbEU.d.mts.map +0 -1
  40. package/dist/index-CGeFo38P.d.mts +0 -783
  41. package/dist/index-CGeFo38P.d.mts.map +0 -1
  42. package/dist/src-D45Onmsn.mjs.map +0 -1
  43. package/dist/token-BIn80-XU.mjs.map +0 -1
  44. package/dist/types-CoTpsxxp.d.mts.map +0 -1
  45. package/dist/write-tools-CnJE0Vvu.mjs.map +0 -1
@@ -428,6 +428,26 @@ async function createBranchCore({ token, owner, repo, branch, from }) {
428
428
  };
429
429
  });
430
430
  }
431
+ const deleteBranchInputSchema = z.object({
432
+ owner: z.string().describe("Repository owner"),
433
+ repo: z.string().describe("Repository name"),
434
+ branch: z.string().describe("Branch name to delete (without the refs/heads/ prefix)")
435
+ });
436
+ const deleteBranchDescription = "Delete a branch from a GitHub repository permanently";
437
+ /** Not idempotent — deleting a branch that no longer exists fails with a 422. */
438
+ async function deleteBranchCore({ token, owner, repo, branch }) {
439
+ return withOctokit(token, async (octokit) => {
440
+ await octokit.rest.git.deleteRef({
441
+ owner,
442
+ repo,
443
+ ref: `heads/${branch}`
444
+ });
445
+ return {
446
+ deleted: true,
447
+ branch
448
+ };
449
+ });
450
+ }
431
451
  const forkRepositoryInputSchema = z.object({
432
452
  owner: z.string().describe("Repository owner to fork from"),
433
453
  repo: z.string().describe("Repository name to fork"),
@@ -1066,6 +1086,139 @@ async function createPullRequestReviewCore({ token, owner, repo, pullNumber, bod
1066
1086
  };
1067
1087
  });
1068
1088
  }
1089
+ const listPullRequestReviewThreadsInputSchema = z.object({
1090
+ owner: z.string().describe("Repository owner"),
1091
+ repo: z.string().describe("Repository name"),
1092
+ pullNumber: z.number().describe("Pull request number"),
1093
+ status: z.enum(["unresolved", "all"]).optional().default("unresolved").describe("unresolved returns only threads awaiting action (default, saves tokens); all includes resolved threads"),
1094
+ detail: detailSchema,
1095
+ perPage: z.number().int().positive().max(50).optional().default(30).describe("Number of threads to fetch per call (max 50)"),
1096
+ after: z.string().optional().describe("Cursor from a previous call (endCursor) to fetch the next page of threads")
1097
+ });
1098
+ const listPullRequestReviewThreadsDescription = "List review threads on a pull request with their comments, resolution state, and the IDs needed to reply (commentId) or resolve (threadId). Unresolved threads only by default (GitHub GraphQL API)";
1099
+ const REVIEW_THREADS_QUERY = `
1100
+ query ReviewThreads($owner: String!, $name: String!, $number: Int!, $first: Int!, $after: String) {
1101
+ repository(owner: $owner, name: $name) {
1102
+ pullRequest(number: $number) {
1103
+ reviewThreads(first: $first, after: $after) {
1104
+ totalCount
1105
+ pageInfo {
1106
+ hasNextPage
1107
+ endCursor
1108
+ }
1109
+ nodes {
1110
+ id
1111
+ isResolved
1112
+ isOutdated
1113
+ path
1114
+ line
1115
+ startLine
1116
+ resolvedBy {
1117
+ login
1118
+ }
1119
+ comments(first: 30) {
1120
+ totalCount
1121
+ nodes {
1122
+ databaseId
1123
+ body
1124
+ createdAt
1125
+ author {
1126
+ login
1127
+ }
1128
+ }
1129
+ }
1130
+ }
1131
+ }
1132
+ }
1133
+ }
1134
+ }
1135
+ `;
1136
+ async function listPullRequestReviewThreadsCore({ token, owner, repo, pullNumber, status, detail, perPage, after }) {
1137
+ return withOctokit(token, async (octokit) => {
1138
+ const data = await octokit.graphql(REVIEW_THREADS_QUERY, {
1139
+ owner,
1140
+ name: repo,
1141
+ number: pullNumber,
1142
+ first: perPage,
1143
+ after
1144
+ });
1145
+ if (!data.repository) return { error: `Repository not found: ${owner}/${repo}` };
1146
+ const reviewThreads = data.repository.pullRequest?.reviewThreads;
1147
+ if (!reviewThreads) return { error: `Pull request not found: ${owner}/${repo}#${pullNumber}` };
1148
+ const threads = reviewThreads.nodes.filter((thread) => status === "all" || !thread.isResolved).map((thread) => ({
1149
+ threadId: thread.id,
1150
+ isResolved: thread.isResolved,
1151
+ isOutdated: thread.isOutdated,
1152
+ path: thread.path,
1153
+ line: thread.line,
1154
+ startLine: thread.startLine,
1155
+ resolvedBy: thread.resolvedBy?.login ?? null,
1156
+ commentCount: thread.comments.totalCount,
1157
+ comments: thread.comments.nodes.map((comment) => ({
1158
+ commentId: comment.databaseId,
1159
+ author: comment.author?.login ?? null,
1160
+ body: applyDetailBody(comment.body, detail),
1161
+ createdAt: comment.createdAt
1162
+ }))
1163
+ }));
1164
+ return {
1165
+ totalCount: reviewThreads.totalCount,
1166
+ returnedCount: threads.length,
1167
+ hasNextPage: reviewThreads.pageInfo.hasNextPage,
1168
+ endCursor: reviewThreads.pageInfo.endCursor,
1169
+ threads
1170
+ };
1171
+ });
1172
+ }
1173
+ const replyToReviewCommentInputSchema = z.object({
1174
+ owner: z.string().describe("Repository owner"),
1175
+ repo: z.string().describe("Repository name"),
1176
+ pullNumber: z.number().describe("Pull request number"),
1177
+ commentId: z.number().describe("commentId of the thread's first comment, from listPullRequestReviewThreads"),
1178
+ body: z.string().describe("Reply text (supports Markdown)")
1179
+ });
1180
+ const replyToReviewCommentDescription = "Reply to a pull request review comment, adding a message to its review thread";
1181
+ /** Not idempotent — each call posts a new reply. */
1182
+ async function replyToReviewCommentCore({ token, owner, repo, pullNumber, commentId, body }) {
1183
+ return withOctokit(token, async (octokit) => {
1184
+ const { data } = await octokit.rest.pulls.createReplyForReviewComment({
1185
+ owner,
1186
+ repo,
1187
+ pull_number: pullNumber,
1188
+ comment_id: commentId,
1189
+ body
1190
+ });
1191
+ return {
1192
+ id: data.id,
1193
+ url: data.html_url,
1194
+ author: data.user?.login,
1195
+ createdAt: data.created_at
1196
+ };
1197
+ });
1198
+ }
1199
+ const resolveReviewThreadInputSchema = z.object({ threadId: z.string().describe("Review thread ID (threadId from listPullRequestReviewThreads)") });
1200
+ const resolveReviewThreadDescription = "Mark a pull request review thread as resolved";
1201
+ const RESOLVE_THREAD_MUTATION = `
1202
+ mutation ResolveReviewThread($threadId: ID!) {
1203
+ resolveReviewThread(input: { threadId: $threadId }) {
1204
+ thread {
1205
+ id
1206
+ isResolved
1207
+ }
1208
+ }
1209
+ }
1210
+ `;
1211
+ /** Idempotent — resolving an already-resolved thread is a no-op on GitHub. */
1212
+ async function resolveReviewThreadCore({ token, threadId }) {
1213
+ return withOctokit(token, async (octokit) => {
1214
+ const thread = (await octokit.graphql(RESOLVE_THREAD_MUTATION, { threadId })).resolveReviewThread?.thread;
1215
+ if (!thread) return { error: `Review thread not found: ${threadId}` };
1216
+ return {
1217
+ threadId: thread.id,
1218
+ isResolved: thread.isResolved
1219
+ };
1220
+ });
1221
+ }
1069
1222
  const requestReviewersInputSchema = z.object({
1070
1223
  owner: z.string().describe("Repository owner"),
1071
1224
  repo: z.string().describe("Repository name"),
@@ -2558,6 +2711,41 @@ async function listWorkflowJobsCore({ token, owner, repo, runId, filter, perPage
2558
2711
  };
2559
2712
  });
2560
2713
  }
2714
+ const getWorkflowJobLogsInputSchema = z.object({
2715
+ owner: z.string().describe("Repository owner"),
2716
+ repo: z.string().describe("Repository name"),
2717
+ jobId: z.number().describe("Workflow job ID (from listWorkflowJobs or getCiFailureContext)"),
2718
+ maxLines: z.number().int().positive().max(2e3).optional().default(200).describe("Return only the last N log lines (default 200, max 2000). Failures surface at the end of a log, so the tail is usually enough")
2719
+ });
2720
+ const getWorkflowJobLogsDescription = "Get the log output of a workflow job to diagnose failures. Returns the last maxLines lines (default 200) with per-line timestamps stripped to save tokens";
2721
+ const LOG_TIMESTAMP_PREFIX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z /;
2722
+ /**
2723
+ * Tail-truncate a raw job log and strip the ISO timestamp GitHub prefixes on
2724
+ * every line (~29 tokens-worth of noise per line the model never needs).
2725
+ */
2726
+ function shapeJobLog(raw, maxLines) {
2727
+ const lines = raw.replace(/\r\n/g, "\n").replace(/\n+$/, "").split("\n");
2728
+ const tail = lines.slice(-maxLines).map((line) => line.replace(LOG_TIMESTAMP_PREFIX, ""));
2729
+ return {
2730
+ totalLines: lines.length,
2731
+ returnedLines: tail.length,
2732
+ omittedLines: lines.length - tail.length,
2733
+ log: tail.join("\n")
2734
+ };
2735
+ }
2736
+ async function getWorkflowJobLogsCore({ token, owner, repo, jobId, maxLines }) {
2737
+ return withOctokit(token, async (octokit) => {
2738
+ const { data } = await octokit.rest.actions.downloadJobLogsForWorkflowRun({
2739
+ owner,
2740
+ repo,
2741
+ job_id: jobId
2742
+ });
2743
+ return {
2744
+ jobId,
2745
+ ...shapeJobLog(String(data), maxLines)
2746
+ };
2747
+ });
2748
+ }
2561
2749
  const triggerWorkflowInputSchema = z.object({
2562
2750
  owner: z.string().describe("Repository owner"),
2563
2751
  repo: z.string().describe("Repository name"),
@@ -3210,10 +3398,10 @@ const PRESET_TOOLS = {
3210
3398
  /**
3211
3399
  * **Code review** — review pull requests and submit feedback.
3212
3400
  *
3213
- * Tools: `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `getPullRequestContext`,
3401
+ * Tools: `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `listPullRequestReviewThreads`, `getPullRequestContext`,
3214
3402
  * `getFileContent`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `getRepository`, `listBranches`,
3215
3403
  * `searchCode`, `listCheckRuns`, `getCombinedStatus`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`,
3216
- * `deletePullRequestComment`, `createPullRequestReview`, `requestReviewers`.
3404
+ * `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers`.
3217
3405
  *
3218
3406
  * Agent prompt: optimized for thorough PR review with inline feedback.
3219
3407
  */
@@ -3222,6 +3410,7 @@ const PRESET_TOOLS = {
3222
3410
  "listPullRequests",
3223
3411
  "listPullRequestFiles",
3224
3412
  "listPullRequestReviews",
3413
+ "listPullRequestReviewThreads",
3225
3414
  "getPullRequestContext",
3226
3415
  "getFileContent",
3227
3416
  "listCommits",
@@ -3238,6 +3427,8 @@ const PRESET_TOOLS = {
3238
3427
  "updatePullRequestComment",
3239
3428
  "deletePullRequestComment",
3240
3429
  "createPullRequestReview",
3430
+ "replyToReviewComment",
3431
+ "resolveReviewThread",
3241
3432
  "requestReviewers"
3242
3433
  ],
3243
3434
  /**
@@ -3285,9 +3476,10 @@ const PRESET_TOOLS = {
3285
3476
  * **CI operations** — monitor and manage GitHub Actions workflows.
3286
3477
  *
3287
3478
  * Tools: `getRepository`, `listBranches`, `listCommits`, `getCommit`,
3288
- * `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`,
3479
+ * `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `getWorkflowJobLogs`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`,
3289
3480
  * `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`.
3290
3481
  *
3482
+ * Diagnose a failure with `getCiFailureContext` first, then read the failing job's output with `getWorkflowJobLogs`.
3291
3483
  * Agent prompt: optimized for diagnosing CI failures and managing workflow runs.
3292
3484
  */
3293
3485
  "ci-ops": [
@@ -3299,6 +3491,7 @@ const PRESET_TOOLS = {
3299
3491
  "listWorkflowRuns",
3300
3492
  "getWorkflowRun",
3301
3493
  "listWorkflowJobs",
3494
+ "getWorkflowJobLogs",
3302
3495
  "listCheckRuns",
3303
3496
  "getCombinedStatus",
3304
3497
  "getCiFailureContext",
@@ -3323,6 +3516,7 @@ const PRESET_TOOLS = {
3323
3516
  "getPullRequest",
3324
3517
  "listPullRequestFiles",
3325
3518
  "listPullRequestReviews",
3519
+ "listPullRequestReviewThreads",
3326
3520
  "getPullRequestContext",
3327
3521
  "listIssues",
3328
3522
  "getIssue",
@@ -3345,6 +3539,7 @@ const PRESET_TOOLS = {
3345
3539
  "listWorkflowRuns",
3346
3540
  "getWorkflowRun",
3347
3541
  "listWorkflowJobs",
3542
+ "getWorkflowJobLogs",
3348
3543
  "listCheckRuns",
3349
3544
  "getCombinedStatus",
3350
3545
  "getCiFailureContext",
@@ -3359,7 +3554,8 @@ const PRESET_TOOLS = {
3359
3554
  * Tools: read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `searchIssues`, `listCommits`, `getCommit`,
3360
3555
  * `getBlame`, `compareCommits`), PR and CI visibility (`listPullRequests`, `getPullRequest`, `listPullRequestFiles`,
3361
3556
  * `getPullRequestContext`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `listWorkflows`, `listWorkflowRuns`,
3362
- * `getWorkflowRun`, `listWorkflowJobs`), plus `createIssue`, `addIssueComment`, and `addLabels` to report findings.
3557
+ * `getWorkflowRun`, `listWorkflowJobs`, `getWorkflowJobLogs` — logs can leak secrets, so auditing them matters),
3558
+ * plus `createIssue`, `addIssueComment`, and `addLabels` to report findings.
3363
3559
  * No destructive writes.
3364
3560
  *
3365
3561
  * Agent prompt: optimized for finding and reporting security risks without making changes.
@@ -3387,6 +3583,7 @@ const PRESET_TOOLS = {
3387
3583
  "listWorkflowRuns",
3388
3584
  "getWorkflowRun",
3389
3585
  "listWorkflowJobs",
3586
+ "getWorkflowJobLogs",
3390
3587
  "listIssues",
3391
3588
  "getIssue",
3392
3589
  "getIssueContext",
@@ -3461,10 +3658,12 @@ const PRESET_TOOLS = {
3461
3658
  /**
3462
3659
  * **PR author** — open pull requests without the full write surface.
3463
3660
  *
3464
- * Tools: `getRepository`, `listBranches`, `getFileContent`, `createBranch`, `createOrUpdateFile`,
3661
+ * Tools: `getRepository`, `listBranches`, `getFileContent`, `createBranch`, `deleteBranch`, `createOrUpdateFile`,
3465
3662
  * `createPullRequest`, `updatePullRequest`, `getPullRequest`, `listPullRequestFiles`,
3663
+ * `listPullRequestReviewThreads`, `replyToReviewComment`, `resolveReviewThread`,
3466
3664
  * `compareCommits`, `getCommit`.
3467
3665
  *
3666
+ * Respond to review feedback with `listPullRequestReviewThreads` → `replyToReviewComment` → `resolveReviewThread`.
3468
3667
  * Agent prompt: optimized for branching, editing files, and opening focused PRs.
3469
3668
  */
3470
3669
  "pr-author": [
@@ -3472,11 +3671,15 @@ const PRESET_TOOLS = {
3472
3671
  "listBranches",
3473
3672
  "getFileContent",
3474
3673
  "createBranch",
3674
+ "deleteBranch",
3475
3675
  "createOrUpdateFile",
3476
3676
  "createPullRequest",
3477
3677
  "updatePullRequest",
3478
3678
  "getPullRequest",
3479
3679
  "listPullRequestFiles",
3680
+ "listPullRequestReviewThreads",
3681
+ "replyToReviewComment",
3682
+ "resolveReviewThread",
3480
3683
  "compareCommits",
3481
3684
  "getCommit"
3482
3685
  ],
@@ -3493,6 +3696,7 @@ const PRESET_TOOLS = {
3493
3696
  "getFileContent",
3494
3697
  "getRepositoryTree",
3495
3698
  "createBranch",
3699
+ "deleteBranch",
3496
3700
  "forkRepository",
3497
3701
  "createRepository",
3498
3702
  "createOrUpdateFile",
@@ -3500,6 +3704,7 @@ const PRESET_TOOLS = {
3500
3704
  "getPullRequest",
3501
3705
  "listPullRequestFiles",
3502
3706
  "listPullRequestReviews",
3707
+ "listPullRequestReviewThreads",
3503
3708
  "getPullRequestContext",
3504
3709
  "createPullRequest",
3505
3710
  "mergePullRequest",
@@ -3508,6 +3713,8 @@ const PRESET_TOOLS = {
3508
3713
  "updatePullRequestComment",
3509
3714
  "deletePullRequestComment",
3510
3715
  "createPullRequestReview",
3716
+ "replyToReviewComment",
3717
+ "resolveReviewThread",
3511
3718
  "requestReviewers",
3512
3719
  "listIssues",
3513
3720
  "getIssue",
@@ -3554,6 +3761,7 @@ const PRESET_TOOLS = {
3554
3761
  "listWorkflowRuns",
3555
3762
  "getWorkflowRun",
3556
3763
  "listWorkflowJobs",
3764
+ "getWorkflowJobLogs",
3557
3765
  "triggerWorkflow",
3558
3766
  "cancelWorkflowRun",
3559
3767
  "rerunWorkflowRun",
@@ -3583,260 +3791,924 @@ function resolvePresetTools(preset) {
3583
3791
  return tools;
3584
3792
  }
3585
3793
  //#endregion
3586
- //#region src/core/tool-names.ts
3794
+ //#region src/core/catalog.ts
3587
3795
  /**
3588
- * All GitHub tool names available via {@link createGithubTools}.
3589
- * Each key maps to its own string literal for IDE autocomplete and hover docs.
3796
+ * Vercel Connect scope sets, mirroring GitHub App permissions.
3797
+ * Release tools fall under `contents`, reaction tools under `issues`.
3798
+ * Gist and notification tools are intentionally unscoped: those APIs only
3799
+ * accept user access tokens, never the installation tokens Connect mints.
3590
3800
  */
3591
- const GITHUB_TOOL_NAMES = {
3801
+ const CONTENTS_READ = ["contents:read", "metadata:read"];
3802
+ const CONTENTS_WRITE = [
3803
+ "contents:read",
3804
+ "contents:write",
3805
+ "metadata:read"
3806
+ ];
3807
+ const PR_READ = [
3808
+ "contents:read",
3809
+ "metadata:read",
3810
+ "pull_requests:read"
3811
+ ];
3812
+ const PR_WRITE = [
3813
+ "contents:read",
3814
+ "metadata:read",
3815
+ "pull_requests:read",
3816
+ "pull_requests:write"
3817
+ ];
3818
+ /** Read-only PR context (details, files, reviews) plus optional CI checks. */
3819
+ const PR_CONTEXT = [
3820
+ "contents:read",
3821
+ "metadata:read",
3822
+ "pull_requests:read",
3823
+ "checks:read",
3824
+ "statuses:read"
3825
+ ];
3826
+ const ISSUES_READ = [
3827
+ "contents:read",
3828
+ "metadata:read",
3829
+ "issues:read"
3830
+ ];
3831
+ const ISSUES_WRITE = [
3832
+ "contents:read",
3833
+ "metadata:read",
3834
+ "issues:read",
3835
+ "issues:write"
3836
+ ];
3837
+ const DISCUSSIONS_READ = [
3838
+ "contents:read",
3839
+ "metadata:read",
3840
+ "discussions:read"
3841
+ ];
3842
+ const DISCUSSIONS_WRITE = [
3843
+ "contents:read",
3844
+ "metadata:read",
3845
+ "discussions:read",
3846
+ "discussions:write"
3847
+ ];
3848
+ const ACTIONS_READ = [
3849
+ "contents:read",
3850
+ "metadata:read",
3851
+ "actions:read"
3852
+ ];
3853
+ const ACTIONS_WRITE = [
3854
+ "contents:read",
3855
+ "metadata:read",
3856
+ "actions:read",
3857
+ "actions:write"
3858
+ ];
3859
+ const CHECKS = [
3860
+ "contents:read",
3861
+ "metadata:read",
3862
+ "checks:read",
3863
+ "statuses:read"
3864
+ ];
3865
+ const CI_CONTEXT = [
3866
+ "contents:read",
3867
+ "metadata:read",
3868
+ "actions:read",
3869
+ "checks:read",
3870
+ "statuses:read"
3871
+ ];
3872
+ const ADMIN = [
3873
+ "metadata:read",
3874
+ "administration:read",
3875
+ "administration:write"
3876
+ ];
3877
+ const SEARCH_REPOS = ["metadata:read"];
3878
+ const SEARCH_ISSUES = [
3879
+ "metadata:read",
3880
+ "issues:read",
3881
+ "pull_requests:read"
3882
+ ];
3883
+ const UNSCOPED = [];
3884
+ /**
3885
+ * Single source of truth for every GitHub tool.
3886
+ *
3887
+ * `GITHUB_TOOL_NAMES`, `GITHUB_WRITE_TOOLS`, `TOOL_CONNECT_SCOPES`, and the
3888
+ * eve tool registry are all derived from this catalog. Adding a tool here (plus
3889
+ * its `"use step"` factory in `src/tools/` and `allTools` in `src/index.ts`,
3890
+ * both enforced at compile time) is the only registration needed.
3891
+ */
3892
+ const GITHUB_TOOL_CATALOG = {
3592
3893
  /** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
3593
- getRepository: "getRepository",
3894
+ getRepository: {
3895
+ description: getRepositoryDescription,
3896
+ inputSchema: getRepositoryInputSchema,
3897
+ get core() {
3898
+ return getRepositoryCore;
3899
+ },
3900
+ connectScopes: CONTENTS_READ
3901
+ },
3594
3902
  /** List branches in a GitHub repository. */
3595
- listBranches: "listBranches",
3903
+ listBranches: {
3904
+ description: listBranchesDescription,
3905
+ inputSchema: listBranchesInputSchema,
3906
+ get core() {
3907
+ return listBranchesCore;
3908
+ },
3909
+ connectScopes: CONTENTS_READ
3910
+ },
3596
3911
  /** Get the content of a file from a GitHub repository. Prefer startLine/endLine or maxLines for large files. */
3597
- getFileContent: "getFileContent",
3912
+ getFileContent: {
3913
+ description: getFileContentDescription,
3914
+ inputSchema: getFileContentInputSchema,
3915
+ get core() {
3916
+ return getFileContentCore;
3917
+ },
3918
+ connectScopes: CONTENTS_READ
3919
+ },
3598
3920
  /** List the file and directory structure of a repository at a given ref. */
3599
- getRepositoryTree: "getRepositoryTree",
3921
+ getRepositoryTree: {
3922
+ description: getRepositoryTreeDescription,
3923
+ inputSchema: getRepositoryTreeInputSchema,
3924
+ get core() {
3925
+ return getRepositoryTreeCore;
3926
+ },
3927
+ connectScopes: CONTENTS_READ
3928
+ },
3600
3929
  /** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */
3601
- createBranch: "createBranch",
3930
+ createBranch: {
3931
+ description: createBranchDescription,
3932
+ inputSchema: createBranchInputSchema,
3933
+ get core() {
3934
+ return createBranchCore;
3935
+ },
3936
+ write: true,
3937
+ connectScopes: CONTENTS_WRITE
3938
+ },
3939
+ /** Delete a branch from a GitHub repository permanently. Requires approval by default. */
3940
+ deleteBranch: {
3941
+ description: deleteBranchDescription,
3942
+ inputSchema: deleteBranchInputSchema,
3943
+ get core() {
3944
+ return deleteBranchCore;
3945
+ },
3946
+ write: true,
3947
+ connectScopes: CONTENTS_WRITE
3948
+ },
3602
3949
  /** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */
3603
- forkRepository: "forkRepository",
3950
+ forkRepository: {
3951
+ description: forkRepositoryDescription,
3952
+ inputSchema: forkRepositoryInputSchema,
3953
+ get core() {
3954
+ return forkRepositoryCore;
3955
+ },
3956
+ write: true,
3957
+ connectScopes: CONTENTS_READ
3958
+ },
3604
3959
  /** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */
3605
- createRepository: "createRepository",
3960
+ createRepository: {
3961
+ description: createRepositoryDescription,
3962
+ inputSchema: createRepositoryInputSchema,
3963
+ get core() {
3964
+ return createRepositoryCore;
3965
+ },
3966
+ write: true,
3967
+ connectScopes: ADMIN
3968
+ },
3606
3969
  /** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */
3607
- createOrUpdateFile: "createOrUpdateFile",
3970
+ createOrUpdateFile: {
3971
+ description: createOrUpdateFileDescription,
3972
+ inputSchema: createOrUpdateFileInputSchema,
3973
+ get core() {
3974
+ return createOrUpdateFileCore;
3975
+ },
3976
+ write: true,
3977
+ connectScopes: CONTENTS_WRITE
3978
+ },
3608
3979
  /** List pull requests for a GitHub repository. */
3609
- listPullRequests: "listPullRequests",
3980
+ listPullRequests: {
3981
+ description: listPullRequestsDescription,
3982
+ inputSchema: listPullRequestsInputSchema,
3983
+ get core() {
3984
+ return listPullRequestsCore;
3985
+ },
3986
+ connectScopes: PR_READ
3987
+ },
3610
3988
  /** Get detailed information about a specific pull request. Body truncated by default (detail: summary). */
3611
- getPullRequest: "getPullRequest",
3989
+ getPullRequest: {
3990
+ description: getPullRequestDescription,
3991
+ inputSchema: getPullRequestInputSchema,
3992
+ get core() {
3993
+ return getPullRequestCore;
3994
+ },
3995
+ connectScopes: PR_READ
3996
+ },
3612
3997
  /** Create a new pull request in a GitHub repository. Requires approval by default. */
3613
- createPullRequest: "createPullRequest",
3998
+ createPullRequest: {
3999
+ description: createPullRequestDescription,
4000
+ inputSchema: createPullRequestInputSchema,
4001
+ get core() {
4002
+ return createPullRequestCore;
4003
+ },
4004
+ write: true,
4005
+ connectScopes: PR_WRITE
4006
+ },
3614
4007
  /** Merge a pull request. Requires approval by default. */
3615
- mergePullRequest: "mergePullRequest",
4008
+ mergePullRequest: {
4009
+ description: mergePullRequestDescription,
4010
+ inputSchema: mergePullRequestInputSchema,
4011
+ get core() {
4012
+ return mergePullRequestCore;
4013
+ },
4014
+ write: true,
4015
+ connectScopes: PR_WRITE
4016
+ },
3616
4017
  /** Update a pull request — title, body, state, base branch, or draft status. Requires approval by default. */
3617
- updatePullRequest: "updatePullRequest",
4018
+ updatePullRequest: {
4019
+ description: updatePullRequestDescription,
4020
+ inputSchema: updatePullRequestInputSchema,
4021
+ get core() {
4022
+ return updatePullRequestCore;
4023
+ },
4024
+ write: true,
4025
+ connectScopes: PR_WRITE
4026
+ },
3618
4027
  /** Add a comment to a pull request. Requires approval by default. */
3619
- addPullRequestComment: "addPullRequestComment",
4028
+ addPullRequestComment: {
4029
+ description: addPullRequestCommentDescription,
4030
+ inputSchema: addPullRequestCommentInputSchema,
4031
+ get core() {
4032
+ return addPullRequestCommentCore;
4033
+ },
4034
+ write: true,
4035
+ connectScopes: PR_WRITE
4036
+ },
3620
4037
  /** Update the body of a comment on a pull request. Requires approval by default. */
3621
- updatePullRequestComment: "updatePullRequestComment",
4038
+ updatePullRequestComment: {
4039
+ description: updatePullRequestCommentDescription,
4040
+ inputSchema: updatePullRequestCommentInputSchema,
4041
+ get core() {
4042
+ return updatePullRequestCommentCore;
4043
+ },
4044
+ write: true,
4045
+ connectScopes: PR_WRITE
4046
+ },
3622
4047
  /** Delete a comment from a pull request permanently. Requires approval by default. */
3623
- deletePullRequestComment: "deletePullRequestComment",
4048
+ deletePullRequestComment: {
4049
+ description: deletePullRequestCommentDescription,
4050
+ inputSchema: deletePullRequestCommentInputSchema,
4051
+ get core() {
4052
+ return deletePullRequestCommentCore;
4053
+ },
4054
+ write: true,
4055
+ connectScopes: PR_WRITE
4056
+ },
3624
4057
  /** List files changed in a pull request with status and stats. Patches omitted by default — set includePatch true for diffs. */
3625
- listPullRequestFiles: "listPullRequestFiles",
4058
+ listPullRequestFiles: {
4059
+ description: listPullRequestFilesDescription,
4060
+ inputSchema: listPullRequestFilesInputSchema,
4061
+ get core() {
4062
+ return listPullRequestFilesCore;
4063
+ },
4064
+ connectScopes: PR_READ
4065
+ },
3626
4066
  /** List reviews on a pull request (approvals, change requests, and comments). */
3627
- listPullRequestReviews: "listPullRequestReviews",
4067
+ listPullRequestReviews: {
4068
+ description: listPullRequestReviewsDescription,
4069
+ inputSchema: listPullRequestReviewsInputSchema,
4070
+ get core() {
4071
+ return listPullRequestReviewsCore;
4072
+ },
4073
+ connectScopes: PR_READ
4074
+ },
3628
4075
  /** Submit a pull request review — approve, request changes, or comment with optional inline comments on specific lines. Requires approval by default. */
3629
- createPullRequestReview: "createPullRequestReview",
4076
+ createPullRequestReview: {
4077
+ description: createPullRequestReviewDescription,
4078
+ inputSchema: createPullRequestReviewInputSchema,
4079
+ get core() {
4080
+ return createPullRequestReviewCore;
4081
+ },
4082
+ write: true,
4083
+ connectScopes: PR_WRITE
4084
+ },
4085
+ /** List review threads on a pull request with comments, resolution state, and the IDs needed to reply or resolve. Unresolved only by default. */
4086
+ listPullRequestReviewThreads: {
4087
+ description: listPullRequestReviewThreadsDescription,
4088
+ inputSchema: listPullRequestReviewThreadsInputSchema,
4089
+ get core() {
4090
+ return listPullRequestReviewThreadsCore;
4091
+ },
4092
+ connectScopes: PR_READ
4093
+ },
4094
+ /** Reply to a pull request review comment in its review thread. Requires approval by default. */
4095
+ replyToReviewComment: {
4096
+ description: replyToReviewCommentDescription,
4097
+ inputSchema: replyToReviewCommentInputSchema,
4098
+ get core() {
4099
+ return replyToReviewCommentCore;
4100
+ },
4101
+ write: true,
4102
+ connectScopes: PR_WRITE
4103
+ },
4104
+ /** Mark a pull request review thread as resolved. Requires approval by default. */
4105
+ resolveReviewThread: {
4106
+ description: resolveReviewThreadDescription,
4107
+ inputSchema: resolveReviewThreadInputSchema,
4108
+ get core() {
4109
+ return resolveReviewThreadCore;
4110
+ },
4111
+ write: true,
4112
+ connectScopes: PR_WRITE
4113
+ },
3630
4114
  /** Request reviews from users or teams on a pull request. Requires approval by default. */
3631
- requestReviewers: "requestReviewers",
4115
+ requestReviewers: {
4116
+ description: requestReviewersDescription,
4117
+ inputSchema: requestReviewersInputSchema,
4118
+ get core() {
4119
+ return requestReviewersCore;
4120
+ },
4121
+ write: true,
4122
+ connectScopes: PR_WRITE
4123
+ },
3632
4124
  /** Fetch pull request details plus files, reviews, and optional CI checks in one call. */
3633
- getPullRequestContext: "getPullRequestContext",
4125
+ getPullRequestContext: {
4126
+ description: getPullRequestContextDescription,
4127
+ inputSchema: getPullRequestContextInputSchema,
4128
+ get core() {
4129
+ return getPullRequestContextCore;
4130
+ },
4131
+ connectScopes: PR_CONTEXT
4132
+ },
4133
+ /** Fetch an issue plus available label names and recent comments in one call. */
4134
+ getIssueContext: {
4135
+ description: getIssueContextDescription,
4136
+ inputSchema: getIssueContextInputSchema,
4137
+ get core() {
4138
+ return getIssueContextCore;
4139
+ },
4140
+ connectScopes: ISSUES_READ
4141
+ },
3634
4142
  /** List issues for a GitHub repository (excludes pull requests). */
3635
- listIssues: "listIssues",
4143
+ listIssues: {
4144
+ description: listIssuesDescription,
4145
+ inputSchema: listIssuesInputSchema,
4146
+ get core() {
4147
+ return listIssuesCore;
4148
+ },
4149
+ connectScopes: ISSUES_READ
4150
+ },
3636
4151
  /** Get detailed information about a specific issue. Body truncated by default (detail: summary). */
3637
- getIssue: "getIssue",
3638
- /** Fetch an issue plus available label names and recent comments in one call. */
3639
- getIssueContext: "getIssueContext",
4152
+ getIssue: {
4153
+ description: getIssueDescription,
4154
+ inputSchema: getIssueInputSchema,
4155
+ get core() {
4156
+ return getIssueCore;
4157
+ },
4158
+ connectScopes: ISSUES_READ
4159
+ },
3640
4160
  /** List comments on a GitHub issue. Bodies are truncated by default (detail: summary). Prefer getIssueContext for the first page when triaging. */
3641
- listIssueComments: "listIssueComments",
4161
+ listIssueComments: {
4162
+ description: listIssueCommentsDescription,
4163
+ inputSchema: listIssueCommentsInputSchema,
4164
+ get core() {
4165
+ return listIssueCommentsCore;
4166
+ },
4167
+ connectScopes: ISSUES_READ
4168
+ },
3642
4169
  /** Create a new issue in a GitHub repository. Requires approval by default. */
3643
- createIssue: "createIssue",
4170
+ createIssue: {
4171
+ description: createIssueDescription,
4172
+ inputSchema: createIssueInputSchema,
4173
+ get core() {
4174
+ return createIssueCore;
4175
+ },
4176
+ write: true,
4177
+ connectScopes: ISSUES_WRITE
4178
+ },
3644
4179
  /** Add a comment to a GitHub issue. Requires approval by default. */
3645
- addIssueComment: "addIssueComment",
4180
+ addIssueComment: {
4181
+ description: addIssueCommentDescription,
4182
+ inputSchema: addIssueCommentInputSchema,
4183
+ get core() {
4184
+ return addIssueCommentCore;
4185
+ },
4186
+ write: true,
4187
+ connectScopes: ISSUES_WRITE
4188
+ },
3646
4189
  /** Update the body of a comment on a GitHub issue. Requires approval by default. */
3647
- updateIssueComment: "updateIssueComment",
4190
+ updateIssueComment: {
4191
+ description: updateIssueCommentDescription,
4192
+ inputSchema: updateIssueCommentInputSchema,
4193
+ get core() {
4194
+ return updateIssueCommentCore;
4195
+ },
4196
+ write: true,
4197
+ connectScopes: ISSUES_WRITE
4198
+ },
3648
4199
  /** Delete a comment from a GitHub issue permanently. Requires approval by default. */
3649
- deleteIssueComment: "deleteIssueComment",
4200
+ deleteIssueComment: {
4201
+ description: deleteIssueCommentDescription,
4202
+ inputSchema: deleteIssueCommentInputSchema,
4203
+ get core() {
4204
+ return deleteIssueCommentCore;
4205
+ },
4206
+ write: true,
4207
+ connectScopes: ISSUES_WRITE
4208
+ },
3650
4209
  /** Close an open GitHub issue. Requires approval by default. */
3651
- closeIssue: "closeIssue",
4210
+ closeIssue: {
4211
+ description: closeIssueDescription,
4212
+ inputSchema: closeIssueInputSchema,
4213
+ get core() {
4214
+ return closeIssueCore;
4215
+ },
4216
+ write: true,
4217
+ connectScopes: ISSUES_WRITE
4218
+ },
3652
4219
  /** Update a GitHub issue — title, body, state, labels, milestone, or assignees. Requires approval by default. */
3653
- updateIssue: "updateIssue",
4220
+ updateIssue: {
4221
+ description: updateIssueDescription,
4222
+ inputSchema: updateIssueInputSchema,
4223
+ get core() {
4224
+ return updateIssueCore;
4225
+ },
4226
+ write: true,
4227
+ connectScopes: ISSUES_WRITE
4228
+ },
3654
4229
  /** List labels available in a GitHub repository. */
3655
- listLabels: "listLabels",
4230
+ listLabels: {
4231
+ description: listLabelsDescription,
4232
+ inputSchema: listLabelsInputSchema,
4233
+ get core() {
4234
+ return listLabelsCore;
4235
+ },
4236
+ connectScopes: ISSUES_READ
4237
+ },
3656
4238
  /** Add labels to an issue or pull request. Requires approval by default. */
3657
- addLabels: "addLabels",
4239
+ addLabels: {
4240
+ description: addLabelsDescription,
4241
+ inputSchema: addLabelsInputSchema,
4242
+ get core() {
4243
+ return addLabelsCore;
4244
+ },
4245
+ write: true,
4246
+ connectScopes: ISSUES_WRITE
4247
+ },
3658
4248
  /** Remove a label from an issue or pull request. Requires approval by default. */
3659
- removeLabel: "removeLabel",
4249
+ removeLabel: {
4250
+ description: removeLabelDescription,
4251
+ inputSchema: removeLabelInputSchema,
4252
+ get core() {
4253
+ return removeLabelCore;
4254
+ },
4255
+ write: true,
4256
+ connectScopes: ISSUES_WRITE
4257
+ },
3660
4258
  /** Create a label in a GitHub repository. Requires approval by default. */
3661
- createLabel: "createLabel",
4259
+ createLabel: {
4260
+ description: createLabelDescription,
4261
+ inputSchema: createLabelInputSchema,
4262
+ get core() {
4263
+ return createLabelCore;
4264
+ },
4265
+ write: true,
4266
+ connectScopes: ISSUES_WRITE
4267
+ },
3662
4268
  /** Update a label in a GitHub repository — name, color, or description. Requires approval by default. */
3663
- updateLabel: "updateLabel",
4269
+ updateLabel: {
4270
+ description: updateLabelDescription,
4271
+ inputSchema: updateLabelInputSchema,
4272
+ get core() {
4273
+ return updateLabelCore;
4274
+ },
4275
+ write: true,
4276
+ connectScopes: ISSUES_WRITE
4277
+ },
3664
4278
  /** Delete a label from a GitHub repository permanently. Requires approval by default. */
3665
- deleteLabel: "deleteLabel",
4279
+ deleteLabel: {
4280
+ description: deleteLabelDescription,
4281
+ inputSchema: deleteLabelInputSchema,
4282
+ get core() {
4283
+ return deleteLabelCore;
4284
+ },
4285
+ write: true,
4286
+ connectScopes: ISSUES_WRITE
4287
+ },
3666
4288
  /** Assign users to an issue or pull request. Requires approval by default. */
3667
- addAssignees: "addAssignees",
4289
+ addAssignees: {
4290
+ description: addAssigneesDescription,
4291
+ inputSchema: addAssigneesInputSchema,
4292
+ get core() {
4293
+ return addAssigneesCore;
4294
+ },
4295
+ write: true,
4296
+ connectScopes: ISSUES_WRITE
4297
+ },
3668
4298
  /** Remove assignees from an issue or pull request. Requires approval by default. */
3669
- removeAssignees: "removeAssignees",
4299
+ removeAssignees: {
4300
+ description: removeAssigneesDescription,
4301
+ inputSchema: removeAssigneesInputSchema,
4302
+ get core() {
4303
+ return removeAssigneesCore;
4304
+ },
4305
+ write: true,
4306
+ connectScopes: ISSUES_WRITE
4307
+ },
4308
+ /** List reactions on an issue or pull request conversation, with per-emoji counts. */
4309
+ listIssueReactions: {
4310
+ description: listIssueReactionsDescription,
4311
+ inputSchema: listIssueReactionsInputSchema,
4312
+ get core() {
4313
+ return listIssueReactionsCore;
4314
+ },
4315
+ connectScopes: ISSUES_READ
4316
+ },
4317
+ /** React to an issue or pull request with an emoji. Requires approval by default. */
4318
+ addIssueReaction: {
4319
+ description: addIssueReactionDescription,
4320
+ inputSchema: addIssueReactionInputSchema,
4321
+ get core() {
4322
+ return addIssueReactionCore;
4323
+ },
4324
+ write: true,
4325
+ connectScopes: ISSUES_WRITE
4326
+ },
4327
+ /** List reactions on an issue or pull request comment, with per-emoji counts. */
4328
+ listCommentReactions: {
4329
+ description: listCommentReactionsDescription,
4330
+ inputSchema: listCommentReactionsInputSchema,
4331
+ get core() {
4332
+ return listCommentReactionsCore;
4333
+ },
4334
+ connectScopes: ISSUES_READ
4335
+ },
4336
+ /** React to an issue or pull request comment with an emoji. Requires approval by default. */
4337
+ addCommentReaction: {
4338
+ description: addCommentReactionDescription,
4339
+ inputSchema: addCommentReactionInputSchema,
4340
+ get core() {
4341
+ return addCommentReactionCore;
4342
+ },
4343
+ write: true,
4344
+ connectScopes: ISSUES_WRITE
4345
+ },
4346
+ /** List discussions in a GitHub repository, most recently updated first, optionally filtered by category. */
4347
+ listDiscussions: {
4348
+ description: listDiscussionsDescription,
4349
+ inputSchema: listDiscussionsInputSchema,
4350
+ get core() {
4351
+ return listDiscussionsCore;
4352
+ },
4353
+ connectScopes: DISCUSSIONS_READ
4354
+ },
4355
+ /** Get a GitHub discussion by number. Body truncated by default (detail: summary). */
4356
+ getDiscussion: {
4357
+ description: getDiscussionDescription,
4358
+ inputSchema: getDiscussionInputSchema,
4359
+ get core() {
4360
+ return getDiscussionCore;
4361
+ },
4362
+ connectScopes: DISCUSSIONS_READ
4363
+ },
4364
+ /** Add a comment to a GitHub discussion. Requires approval by default. */
4365
+ addDiscussionComment: {
4366
+ description: addDiscussionCommentDescription,
4367
+ inputSchema: addDiscussionCommentInputSchema,
4368
+ get core() {
4369
+ return addDiscussionCommentCore;
4370
+ },
4371
+ write: true,
4372
+ connectScopes: DISCUSSIONS_WRITE
4373
+ },
4374
+ /** List notification threads for the authenticated user. Requires a token with notifications access. */
4375
+ listNotifications: {
4376
+ description: listNotificationsDescription,
4377
+ inputSchema: listNotificationsInputSchema,
4378
+ get core() {
4379
+ return listNotificationsCore;
4380
+ },
4381
+ connectScopes: UNSCOPED
4382
+ },
4383
+ /** Mark a single notification thread as read. Requires approval by default. */
4384
+ markNotificationRead: {
4385
+ description: markNotificationReadDescription,
4386
+ inputSchema: markNotificationReadInputSchema,
4387
+ get core() {
4388
+ return markNotificationReadCore;
4389
+ },
4390
+ write: true,
4391
+ connectScopes: UNSCOPED
4392
+ },
3670
4393
  /** 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. */
3671
- searchCode: "searchCode",
4394
+ searchCode: {
4395
+ description: searchCodeDescription,
4396
+ inputSchema: searchCodeInputSchema,
4397
+ get core() {
4398
+ return searchCodeCore;
4399
+ },
4400
+ connectScopes: CONTENTS_READ
4401
+ },
3672
4402
  /** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
3673
- searchRepositories: "searchRepositories",
4403
+ searchRepositories: {
4404
+ description: searchRepositoriesDescription,
4405
+ inputSchema: searchRepositoriesInputSchema,
4406
+ get core() {
4407
+ return searchRepositoriesCore;
4408
+ },
4409
+ connectScopes: SEARCH_REPOS
4410
+ },
3674
4411
  /** Search for issues and pull requests across GitHub using search qualifiers like "repo:owner/name is:open". */
3675
- searchIssues: "searchIssues",
4412
+ searchIssues: {
4413
+ description: searchIssuesDescription,
4414
+ inputSchema: searchIssuesInputSchema,
4415
+ get core() {
4416
+ return searchIssuesCore;
4417
+ },
4418
+ connectScopes: SEARCH_ISSUES
4419
+ },
3676
4420
  /** 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. */
3677
- listCommits: "listCommits",
4421
+ listCommits: {
4422
+ description: listCommitsDescription,
4423
+ inputSchema: listCommitsInputSchema,
4424
+ get core() {
4425
+ return listCommitsCore;
4426
+ },
4427
+ connectScopes: CONTENTS_READ
4428
+ },
3678
4429
  /** Get detailed information about a specific commit, including the list of files changed. Patches omitted by default. */
3679
- getCommit: "getCommit",
4430
+ getCommit: {
4431
+ description: getCommitDescription,
4432
+ inputSchema: getCommitInputSchema,
4433
+ get core() {
4434
+ return getCommitCore;
4435
+ },
4436
+ connectScopes: CONTENTS_READ
4437
+ },
3680
4438
  /** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). Returns contiguous ranges mapping lines to the commits that last modified them. */
3681
- getBlame: "getBlame",
4439
+ getBlame: {
4440
+ description: getBlameDescription,
4441
+ inputSchema: getBlameInputSchema,
4442
+ get core() {
4443
+ return getBlameCore;
4444
+ },
4445
+ connectScopes: CONTENTS_READ
4446
+ },
3682
4447
  /** Compare two branches, tags, or commits — ahead/behind counts, commits in between, and differing files. Patches omitted by default. */
3683
- compareCommits: "compareCommits",
4448
+ compareCommits: {
4449
+ description: compareCommitsDescription,
4450
+ inputSchema: compareCommitsInputSchema,
4451
+ get core() {
4452
+ return compareCommitsCore;
4453
+ },
4454
+ connectScopes: CONTENTS_READ
4455
+ },
3684
4456
  /** List gists for the authenticated user or a specific user. */
3685
- listGists: "listGists",
4457
+ listGists: {
4458
+ description: listGistsDescription,
4459
+ inputSchema: listGistsInputSchema,
4460
+ get core() {
4461
+ return listGistsCore;
4462
+ },
4463
+ connectScopes: UNSCOPED
4464
+ },
3686
4465
  /** Get a gist by ID, including file contents. */
3687
- getGist: "getGist",
4466
+ getGist: {
4467
+ description: getGistDescription,
4468
+ inputSchema: getGistInputSchema,
4469
+ get core() {
4470
+ return getGistCore;
4471
+ },
4472
+ connectScopes: UNSCOPED
4473
+ },
3688
4474
  /** List comments on a gist. */
3689
- listGistComments: "listGistComments",
4475
+ listGistComments: {
4476
+ description: listGistCommentsDescription,
4477
+ inputSchema: listGistCommentsInputSchema,
4478
+ get core() {
4479
+ return listGistCommentsCore;
4480
+ },
4481
+ connectScopes: UNSCOPED
4482
+ },
3690
4483
  /** Create a new gist with one or more files. Requires approval by default. */
3691
- createGist: "createGist",
4484
+ createGist: {
4485
+ description: createGistDescription,
4486
+ inputSchema: createGistInputSchema,
4487
+ get core() {
4488
+ return createGistCore;
4489
+ },
4490
+ write: true,
4491
+ connectScopes: UNSCOPED
4492
+ },
3692
4493
  /** Update an existing gist — edit description, update files, or remove files. Requires approval by default. */
3693
- updateGist: "updateGist",
4494
+ updateGist: {
4495
+ description: updateGistDescription,
4496
+ inputSchema: updateGistInputSchema,
4497
+ get core() {
4498
+ return updateGistCore;
4499
+ },
4500
+ write: true,
4501
+ connectScopes: UNSCOPED
4502
+ },
3694
4503
  /** Delete a gist permanently. Requires approval by default. */
3695
- deleteGist: "deleteGist",
4504
+ deleteGist: {
4505
+ description: deleteGistDescription,
4506
+ inputSchema: deleteGistInputSchema,
4507
+ get core() {
4508
+ return deleteGistCore;
4509
+ },
4510
+ write: true,
4511
+ connectScopes: UNSCOPED
4512
+ },
3696
4513
  /** Add a comment to a gist. Requires approval by default. */
3697
- createGistComment: "createGistComment",
4514
+ createGistComment: {
4515
+ description: createGistCommentDescription,
4516
+ inputSchema: createGistCommentInputSchema,
4517
+ get core() {
4518
+ return createGistCommentCore;
4519
+ },
4520
+ write: true,
4521
+ connectScopes: UNSCOPED
4522
+ },
3698
4523
  /** List GitHub Actions workflows in a repository. */
3699
- listWorkflows: "listWorkflows",
4524
+ listWorkflows: {
4525
+ description: listWorkflowsDescription,
4526
+ inputSchema: listWorkflowsInputSchema,
4527
+ get core() {
4528
+ return listWorkflowsCore;
4529
+ },
4530
+ connectScopes: ACTIONS_READ
4531
+ },
3700
4532
  /** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */
3701
- listWorkflowRuns: "listWorkflowRuns",
4533
+ listWorkflowRuns: {
4534
+ description: listWorkflowRunsDescription,
4535
+ inputSchema: listWorkflowRunsInputSchema,
4536
+ get core() {
4537
+ return listWorkflowRunsCore;
4538
+ },
4539
+ connectScopes: ACTIONS_READ
4540
+ },
3702
4541
  /** Get details of a specific workflow run including status, timing, and trigger info. */
3703
- getWorkflowRun: "getWorkflowRun",
4542
+ getWorkflowRun: {
4543
+ description: getWorkflowRunDescription,
4544
+ inputSchema: getWorkflowRunInputSchema,
4545
+ get core() {
4546
+ return getWorkflowRunCore;
4547
+ },
4548
+ connectScopes: ACTIONS_READ
4549
+ },
3704
4550
  /** List jobs for a workflow run, including step-level status and timing. */
3705
- listWorkflowJobs: "listWorkflowJobs",
4551
+ listWorkflowJobs: {
4552
+ description: listWorkflowJobsDescription,
4553
+ inputSchema: listWorkflowJobsInputSchema,
4554
+ get core() {
4555
+ return listWorkflowJobsCore;
4556
+ },
4557
+ connectScopes: ACTIONS_READ
4558
+ },
4559
+ /** Get the log output of a workflow job to diagnose failures. Returns the tail (default 200 lines) with timestamps stripped. */
4560
+ getWorkflowJobLogs: {
4561
+ description: getWorkflowJobLogsDescription,
4562
+ inputSchema: getWorkflowJobLogsInputSchema,
4563
+ get core() {
4564
+ return getWorkflowJobLogsCore;
4565
+ },
4566
+ connectScopes: ACTIONS_READ
4567
+ },
3706
4568
  /** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
3707
- triggerWorkflow: "triggerWorkflow",
4569
+ triggerWorkflow: {
4570
+ description: triggerWorkflowDescription,
4571
+ inputSchema: triggerWorkflowInputSchema,
4572
+ get core() {
4573
+ return triggerWorkflowCore;
4574
+ },
4575
+ write: true,
4576
+ connectScopes: ACTIONS_WRITE
4577
+ },
3708
4578
  /** Cancel an in-progress workflow run. Requires approval by default. */
3709
- cancelWorkflowRun: "cancelWorkflowRun",
4579
+ cancelWorkflowRun: {
4580
+ description: cancelWorkflowRunDescription,
4581
+ inputSchema: cancelWorkflowRunInputSchema,
4582
+ get core() {
4583
+ return cancelWorkflowRunCore;
4584
+ },
4585
+ write: true,
4586
+ connectScopes: ACTIONS_WRITE
4587
+ },
3710
4588
  /** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
3711
- rerunWorkflowRun: "rerunWorkflowRun",
4589
+ rerunWorkflowRun: {
4590
+ description: rerunWorkflowRunDescription,
4591
+ inputSchema: rerunWorkflowRunInputSchema,
4592
+ get core() {
4593
+ return rerunWorkflowRunCore;
4594
+ },
4595
+ write: true,
4596
+ connectScopes: ACTIONS_WRITE
4597
+ },
3712
4598
  /** List check runs (Checks API — GitHub Actions and other CI providers) for a commit, branch, or tag. */
3713
- listCheckRuns: "listCheckRuns",
4599
+ listCheckRuns: {
4600
+ description: listCheckRunsDescription,
4601
+ inputSchema: listCheckRunsInputSchema,
4602
+ get core() {
4603
+ return listCheckRunsCore;
4604
+ },
4605
+ connectScopes: CHECKS
4606
+ },
3714
4607
  /** Get the combined commit status (Statuses API — legacy CI integrations) for a commit, branch, or tag. */
3715
- getCombinedStatus: "getCombinedStatus",
4608
+ getCombinedStatus: {
4609
+ description: getCombinedStatusDescription,
4610
+ inputSchema: getCombinedStatusInputSchema,
4611
+ get core() {
4612
+ return getCombinedStatusCore;
4613
+ },
4614
+ connectScopes: CHECKS
4615
+ },
3716
4616
  /** Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call. */
3717
- getCiFailureContext: "getCiFailureContext",
3718
- /** List discussions in a GitHub repository, most recently updated first, optionally filtered by category. */
3719
- listDiscussions: "listDiscussions",
3720
- /** Get a GitHub discussion by number. Body truncated by default (detail: summary). */
3721
- getDiscussion: "getDiscussion",
3722
- /** Add a comment to a GitHub discussion. Requires approval by default. */
3723
- addDiscussionComment: "addDiscussionComment",
3724
- /** List notification threads for the authenticated user. Requires a token with notifications access. */
3725
- listNotifications: "listNotifications",
3726
- /** Mark a single notification thread as read. Requires approval by default. */
3727
- markNotificationRead: "markNotificationRead",
3728
- /** List reactions on an issue or pull request conversation, with per-emoji counts. */
3729
- listIssueReactions: "listIssueReactions",
3730
- /** React to an issue or pull request with an emoji. Requires approval by default. */
3731
- addIssueReaction: "addIssueReaction",
3732
- /** List reactions on an issue or pull request comment, with per-emoji counts. */
3733
- listCommentReactions: "listCommentReactions",
3734
- /** React to an issue or pull request comment with an emoji. Requires approval by default. */
3735
- addCommentReaction: "addCommentReaction",
4617
+ getCiFailureContext: {
4618
+ description: getCiFailureContextDescription,
4619
+ inputSchema: getCiFailureContextInputSchema,
4620
+ get core() {
4621
+ return getCiFailureContextCore;
4622
+ },
4623
+ connectScopes: CI_CONTEXT
4624
+ },
3736
4625
  /** List releases for a GitHub repository, newest first (includes drafts and prereleases). */
3737
- listReleases: "listReleases",
4626
+ listReleases: {
4627
+ description: listReleasesDescription,
4628
+ inputSchema: listReleasesInputSchema,
4629
+ get core() {
4630
+ return listReleasesCore;
4631
+ },
4632
+ connectScopes: CONTENTS_READ
4633
+ },
3738
4634
  /** Get the latest published release for a GitHub repository (excludes drafts and prereleases). Body truncated by default. */
3739
- getLatestRelease: "getLatestRelease",
4635
+ getLatestRelease: {
4636
+ description: getLatestReleaseDescription,
4637
+ inputSchema: getLatestReleaseInputSchema,
4638
+ get core() {
4639
+ return getLatestReleaseCore;
4640
+ },
4641
+ connectScopes: CONTENTS_READ
4642
+ },
3740
4643
  /** Get a specific release by ID, including its assets. Body truncated by default. */
3741
- getRelease: "getRelease",
4644
+ getRelease: {
4645
+ description: getReleaseDescription,
4646
+ inputSchema: getReleaseInputSchema,
4647
+ get core() {
4648
+ return getReleaseCore;
4649
+ },
4650
+ connectScopes: CONTENTS_READ
4651
+ },
3742
4652
  /** Fetch a release plus the previous release and tag comparison in one call. */
3743
- getReleaseContext: "getReleaseContext",
4653
+ getReleaseContext: {
4654
+ description: getReleaseContextDescription,
4655
+ inputSchema: getReleaseContextInputSchema,
4656
+ get core() {
4657
+ return getReleaseContextCore;
4658
+ },
4659
+ connectScopes: CONTENTS_READ
4660
+ },
3744
4661
  /** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
3745
- createRelease: "createRelease",
4662
+ createRelease: {
4663
+ description: createReleaseDescription,
4664
+ inputSchema: createReleaseInputSchema,
4665
+ get core() {
4666
+ return createReleaseCore;
4667
+ },
4668
+ write: true,
4669
+ connectScopes: CONTENTS_WRITE
4670
+ },
3746
4671
  /** Update an existing release — tag, target, title, notes, draft, or prerelease status. Requires approval by default. */
3747
- updateRelease: "updateRelease",
4672
+ updateRelease: {
4673
+ description: updateReleaseDescription,
4674
+ inputSchema: updateReleaseInputSchema,
4675
+ get core() {
4676
+ return updateReleaseCore;
4677
+ },
4678
+ write: true,
4679
+ connectScopes: CONTENTS_WRITE
4680
+ },
3748
4681
  /** Delete a release permanently. Requires approval by default. */
3749
- deleteRelease: "deleteRelease"
4682
+ deleteRelease: {
4683
+ description: deleteReleaseDescription,
4684
+ inputSchema: deleteReleaseInputSchema,
4685
+ get core() {
4686
+ return deleteReleaseCore;
4687
+ },
4688
+ write: true,
4689
+ connectScopes: CONTENTS_WRITE
4690
+ }
3750
4691
  };
3751
- const ALL_GITHUB_TOOL_NAMES = Object.values(GITHUB_TOOL_NAMES);
4692
+ const ALL_GITHUB_TOOL_NAMES = Object.keys(GITHUB_TOOL_CATALOG);
4693
+ const GITHUB_WRITE_TOOL_NAMES = ALL_GITHUB_TOOL_NAMES.filter((name) => "write" in GITHUB_TOOL_CATALOG[name]);
4694
+ function isGithubWriteToolName(name) {
4695
+ return "write" in GITHUB_TOOL_CATALOG[name];
4696
+ }
4697
+ //#endregion
4698
+ //#region src/core/tool-names.ts
4699
+ /**
4700
+ * All GitHub tool names available via {@link createGithubTools}, keyed by name.
4701
+ * Derived from `GITHUB_TOOL_CATALOG` — the single source of truth for tools.
4702
+ */
4703
+ const GITHUB_TOOL_NAMES = Object.fromEntries(ALL_GITHUB_TOOL_NAMES.map((name) => [name, name]));
3752
4704
  //#endregion
3753
4705
  //#region src/core/write-tools.ts
3754
4706
  /**
3755
- * Write tools that mutate GitHub state. All require user approval by default
3756
- * unless overridden via {@link ApprovalConfig}.
4707
+ * GitHub tools that perform write operations and require approval by default.
4708
+ * Derived from the `write: true` entries of `GITHUB_TOOL_CATALOG`.
3757
4709
  */
3758
- const GITHUB_WRITE_TOOLS = {
3759
- /** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */
3760
- createBranch: "createBranch",
3761
- /** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */
3762
- forkRepository: "forkRepository",
3763
- /** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */
3764
- createRepository: "createRepository",
3765
- /** Create or update a file in a GitHub repository. Requires approval by default. */
3766
- createOrUpdateFile: "createOrUpdateFile",
3767
- /** Create a new pull request in a GitHub repository. Requires approval by default. */
3768
- createPullRequest: "createPullRequest",
3769
- /** Merge a pull request. Requires approval by default. */
3770
- mergePullRequest: "mergePullRequest",
3771
- /** Update a pull request. Requires approval by default. */
3772
- updatePullRequest: "updatePullRequest",
3773
- /** Add a comment to a pull request. Requires approval by default. */
3774
- addPullRequestComment: "addPullRequestComment",
3775
- /** Update a pull request comment. Requires approval by default. */
3776
- updatePullRequestComment: "updatePullRequestComment",
3777
- /** Delete a pull request comment. Requires approval by default. */
3778
- deletePullRequestComment: "deletePullRequestComment",
3779
- /** Submit a pull request review with optional inline comments. Requires approval by default. */
3780
- createPullRequestReview: "createPullRequestReview",
3781
- /** Request reviews from users or teams on a pull request. Requires approval by default. */
3782
- requestReviewers: "requestReviewers",
3783
- /** Create a new issue in a GitHub repository. Requires approval by default. */
3784
- createIssue: "createIssue",
3785
- /** Add a comment to a GitHub issue. Requires approval by default. */
3786
- addIssueComment: "addIssueComment",
3787
- /** Update a GitHub issue comment. Requires approval by default. */
3788
- updateIssueComment: "updateIssueComment",
3789
- /** Delete a GitHub issue comment. Requires approval by default. */
3790
- deleteIssueComment: "deleteIssueComment",
3791
- /** Close an open GitHub issue. Requires approval by default. */
3792
- closeIssue: "closeIssue",
3793
- /** Update a GitHub issue. Requires approval by default. */
3794
- updateIssue: "updateIssue",
3795
- /** Add labels to an issue or pull request. Requires approval by default. */
3796
- addLabels: "addLabels",
3797
- /** Remove a label from an issue or pull request. Requires approval by default. */
3798
- removeLabel: "removeLabel",
3799
- /** Create a label in a GitHub repository. Requires approval by default. */
3800
- createLabel: "createLabel",
3801
- /** Update a label in a GitHub repository. Requires approval by default. */
3802
- updateLabel: "updateLabel",
3803
- /** Delete a label from a GitHub repository permanently. Requires approval by default. */
3804
- deleteLabel: "deleteLabel",
3805
- /** Assign users to an issue or pull request. Requires approval by default. */
3806
- addAssignees: "addAssignees",
3807
- /** Remove assignees from an issue or pull request. Requires approval by default. */
3808
- removeAssignees: "removeAssignees",
3809
- /** Create a new gist with one or more files. Requires approval by default. */
3810
- createGist: "createGist",
3811
- /** Update an existing gist. Requires approval by default. */
3812
- updateGist: "updateGist",
3813
- /** Delete a gist permanently. Requires approval by default. */
3814
- deleteGist: "deleteGist",
3815
- /** Add a comment to a gist. Requires approval by default. */
3816
- createGistComment: "createGistComment",
3817
- /** Add a comment to a GitHub discussion. Requires approval by default. */
3818
- addDiscussionComment: "addDiscussionComment",
3819
- /** Mark a single notification thread as read. Requires approval by default. */
3820
- markNotificationRead: "markNotificationRead",
3821
- /** React to an issue or pull request with an emoji. Requires approval by default. */
3822
- addIssueReaction: "addIssueReaction",
3823
- /** React to an issue or pull request comment with an emoji. Requires approval by default. */
3824
- addCommentReaction: "addCommentReaction",
3825
- /** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
3826
- triggerWorkflow: "triggerWorkflow",
3827
- /** Cancel an in-progress workflow run. Requires approval by default. */
3828
- cancelWorkflowRun: "cancelWorkflowRun",
3829
- /** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
3830
- rerunWorkflowRun: "rerunWorkflowRun",
3831
- /** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
3832
- createRelease: "createRelease",
3833
- /** Update an existing release. Requires approval by default. */
3834
- updateRelease: "updateRelease",
3835
- /** Delete a release permanently. Requires approval by default. */
3836
- deleteRelease: "deleteRelease"
3837
- };
3838
- Object.values(GITHUB_WRITE_TOOLS);
4710
+ const GITHUB_WRITE_TOOLS = Object.fromEntries(GITHUB_WRITE_TOOL_NAMES.map((name) => [name, name]));
3839
4711
  //#endregion
3840
- export { listWorkflowJobsDescription as $, getIssueDescription as $n, requestReviewersDescription as $r, searchRepositoriesDescription as $t, getLatestReleaseInputSchema as A, getRepositoryDescription as Ai, addAssigneesInputSchema as An, createPullRequestInputSchema as Ar, listGistsInputSchema as At, getCombinedStatusCore as B, createIssueCore as Bn, listPullRequestFilesCore as Br, getCommitCore as Bt, createReleaseDescription as C, forkRepositoryCore as Ci, listCommentReactionsDescription as Cn, updateLabelDescription as Cr, getGistDescription as Ct, deleteReleaseInputSchema as D, getFileContentDescription as Di, listIssueReactionsInputSchema as Dn, addPullRequestCommentInputSchema as Dr, listGistCommentsInputSchema as Dt, deleteReleaseDescription as E, getFileContentCore as Ei, listIssueReactionsDescription as En, addPullRequestCommentDescription as Er, listGistCommentsDescription as Et, listReleasesDescription as F, listBranchesCore as Fi, addLabelsDescription as Fn, deletePullRequestCommentDescription as Fr, compareCommitsDescription as Ft, listCheckRunsInputSchema as G, createLabelInputSchema as Gn, listPullRequestReviewsInputSchema as Gr, listCommitsInputSchema as Gt, getCombinedStatusInputSchema as H, createIssueInputSchema as Hn, listPullRequestFilesInputSchema as Hr, getCommitInputSchema as Ht, listReleasesInputSchema as I, listBranchesDescription as Ii, addLabelsInputSchema as In, deletePullRequestCommentInputSchema as Ir, compareCommitsInputSchema as It, cancelWorkflowRunInputSchema as J, deleteIssueCommentInputSchema as Jn, listPullRequestsInputSchema as Jr, searchCodeInputSchema as Jt, cancelWorkflowRunCore as K, deleteIssueCommentCore as Kn, listPullRequestsCore as Kr, searchCodeCore as Kt, updateReleaseCore as L, listBranchesInputSchema as Li, closeIssueCore as Ln, getPullRequestCore as Lr, getBlameCore as Lt, getReleaseDescription as M, getRepositoryTreeCore as Mi, addIssueCommentDescription as Mn, createPullRequestReviewDescription as Mr, updateGistDescription as Mt, getReleaseInputSchema as N, getRepositoryTreeDescription as Ni, addIssueCommentInputSchema as Nn, createPullRequestReviewInputSchema as Nr, updateGistInputSchema as Nt, getLatestReleaseCore as O, getFileContentInputSchema as Oi, addAssigneesCore as On, createPullRequestCore as Or, listGistsCore as Ot, listReleasesCore as P, getRepositoryTreeInputSchema as Pi, addLabelsCore as Pn, deletePullRequestCommentCore as Pr, compareCommitsCore as Pt, listWorkflowJobsCore as Q, getIssueCore as Qn, requestReviewersCore as Qr, searchRepositoriesCore as Qt, updateReleaseDescription as R, createOctokit as Ri, closeIssueDescription as Rn, getPullRequestDescription as Rr, getBlameDescription as Rt, createReleaseCore as S, createRepositoryInputSchema as Si, listCommentReactionsCore as Sn, updateLabelCore as Sr, getGistCore as St, deleteReleaseCore as T, forkRepositoryInputSchema as Ti, listIssueReactionsCore as Tn, addPullRequestCommentCore as Tr, listGistCommentsCore as Tt, listCheckRunsCore as U, createLabelCore as Un, listPullRequestReviewsCore as Ur, listCommitsCore as Ut, getCombinedStatusDescription as V, createIssueDescription as Vn, listPullRequestFilesDescription as Vr, getCommitDescription as Vt, listCheckRunsDescription as W, createLabelDescription as Wn, listPullRequestReviewsDescription as Wr, listCommitsDescription as Wt, getWorkflowRunDescription as X, deleteLabelDescription as Xn, mergePullRequestDescription as Xr, searchIssuesDescription as Xt, getWorkflowRunCore as Y, deleteLabelCore as Yn, mergePullRequestCore as Yr, searchIssuesCore as Yt, getWorkflowRunInputSchema as Z, deleteLabelInputSchema as Zn, mergePullRequestInputSchema as Zr, searchIssuesInputSchema as Zt, getPullRequestContextDescription as _, createOrUpdateFileCore as _i, addCommentReactionDescription as _n, updateIssueCommentDescription as _r, createGistDescription as _t, resolvePresetTools as a, updatePullRequestDescription as ai, markNotificationReadDescription as an, listIssuesDescription as ar, listWorkflowsDescription as at, getReleaseContextDescription as b, createRepositoryCore as bi, addIssueReactionDescription as bn, updateIssueDescription as br, deleteGistDescription as bt, mergeContextArgs as c, resolveGithubToken as ci, addDiscussionCommentDescription as cn, listLabelsDescription as cr, rerunWorkflowRunDescription as ct, getCiFailureContextDescription as d, getFileContentToModelOutput as di, getDiscussionDescription as dn, removeAssigneesDescription as dr, triggerWorkflowDescription as dt, requestReviewersInputSchema as ei, searchRepositoriesInputSchema as en, getIssueInputSchema as er, listWorkflowJobsInputSchema as et, getCiFailureContextInputSchema as f, getPullRequestContextToModelOutput as fi, getDiscussionInputSchema as fn, removeAssigneesInputSchema as fr, triggerWorkflowInputSchema as ft, getPullRequestContextCore as g, createBranchInputSchema as gi, addCommentReactionCore as gn, updateIssueCommentCore as gr, createGistCore as gt, getIssueContextInputSchema as h, createBranchDescription as hi, listDiscussionsInputSchema as hn, removeLabelInputSchema as hr, createGistCommentInputSchema as ht, PRESET_TOOLS as i, updatePullRequestCore as ii, markNotificationReadCore as in, listIssuesCore as ir, listWorkflowsCore as it, getReleaseCore as j, getRepositoryInputSchema as ji, addIssueCommentCore as jn, createPullRequestReviewCore as jr, updateGistCore as jt, getLatestReleaseDescription as k, getRepositoryCore as ki, addAssigneesDescription as kn, createPullRequestDescription as kr, listGistsDescription as kt, softenContextSchema as l, compareCommitsToModelOutput as li, addDiscussionCommentInputSchema as ln, listLabelsInputSchema as lr, rerunWorkflowRunInputSchema as lt, getIssueContextDescription as m, createBranchCore as mi, listDiscussionsDescription as mn, removeLabelDescription as mr, createGistCommentDescription as mt, ALL_GITHUB_TOOL_NAMES as n, updatePullRequestCommentDescription as ni, listNotificationsDescription as nn, listIssueCommentsDescription as nr, listWorkflowRunsDescription as nt, bindToolsContext as o, updatePullRequestInputSchema as oi, markNotificationReadInputSchema as on, listIssuesInputSchema as or, listWorkflowsInputSchema as ot, getIssueContextCore as p, listPullRequestFilesToModelOutput as pi, listDiscussionsCore as pn, removeLabelCore as pr, createGistCommentCore as pt, cancelWorkflowRunDescription as q, deleteIssueCommentDescription as qn, listPullRequestsDescription as qr, searchCodeDescription as qt, GITHUB_TOOL_NAMES as r, updatePullRequestCommentInputSchema as ri, listNotificationsInputSchema as rn, listIssueCommentsInputSchema as rr, listWorkflowRunsInputSchema as rt, formatContextInstructions as s, createGithubTokenResolver as si, addDiscussionCommentCore as sn, listLabelsCore as sr, rerunWorkflowRunCore as st, GITHUB_WRITE_TOOLS as t, updatePullRequestCommentCore as ti, listNotificationsCore as tn, listIssueCommentsCore as tr, listWorkflowRunsCore as tt, getCiFailureContextCore as u, getCommitToModelOutput as ui, getDiscussionCore as un, removeAssigneesCore as ur, triggerWorkflowCore as ut, getPullRequestContextInputSchema as v, createOrUpdateFileDescription as vi, addCommentReactionInputSchema as vn, updateIssueCommentInputSchema as vr, createGistInputSchema as vt, createReleaseInputSchema as w, forkRepositoryDescription as wi, listCommentReactionsInputSchema as wn, updateLabelInputSchema as wr, getGistInputSchema as wt, getReleaseContextInputSchema as x, createRepositoryDescription as xi, addIssueReactionInputSchema as xn, updateIssueInputSchema as xr, deleteGistInputSchema as xt, getReleaseContextCore as y, createOrUpdateFileInputSchema as yi, addIssueReactionCore as yn, updateIssueCore as yr, deleteGistCore as yt, updateReleaseInputSchema as z, stripRateLimit as zi, closeIssueInputSchema as zn, getPullRequestInputSchema as zr, getBlameInputSchema as zt };
4712
+ export { getWorkflowJobLogsInputSchema as $, listBranchesDescription as $i, deleteIssueCommentInputSchema as $n, listPullRequestReviewsInputSchema as $r, searchCodeInputSchema as $t, getLatestReleaseCore as A, createBranchInputSchema as Ai, listIssueReactionsCore as An, addPullRequestCommentCore as Ar, listGistCommentsCore as At, updateReleaseDescription as B, forkRepositoryCore as Bi, addLabelsDescription as Bn, deletePullRequestCommentDescription as Br, compareCommitsDescription as Bt, getReleaseContextInputSchema as C, compareCommitsToModelOutput as Ci, addCommentReactionInputSchema as Cn, updateIssueCommentInputSchema as Cr, createGistInputSchema as Ct, deleteReleaseCore as D, listPullRequestFilesToModelOutput as Di, listCommentReactionsCore as Dn, updateLabelCore as Dr, getGistCore as Dt, createReleaseInputSchema as E, getPullRequestContextToModelOutput as Ei, addIssueReactionInputSchema as En, updateIssueInputSchema as Er, deleteGistInputSchema as Et, getReleaseInputSchema as F, createRepositoryDescription as Fi, addAssigneesInputSchema as Fn, createPullRequestInputSchema as Fr, listGistsInputSchema as Ft, listCheckRunsCore as G, getFileContentInputSchema as Gi, createIssueCore as Gn, listPullRequestFilesCore as Gr, getCommitCore as Gt, getCombinedStatusCore as H, forkRepositoryInputSchema as Hi, closeIssueCore as Hn, getPullRequestCore as Hr, getBlameCore as Ht, listReleasesCore as I, createRepositoryInputSchema as Ii, addIssueCommentCore as In, createPullRequestReviewCore as Ir, updateGistCore as It, cancelWorkflowRunCore as J, getRepositoryInputSchema as Ji, createLabelCore as Jn, listPullRequestReviewThreadsCore as Jr, listCommitsCore as Jt, listCheckRunsDescription as K, getRepositoryCore as Ki, createIssueDescription as Kn, listPullRequestFilesDescription as Kr, getCommitDescription as Kt, listReleasesDescription as L, deleteBranchCore as Li, addIssueCommentDescription as Ln, createPullRequestReviewDescription as Lr, updateGistDescription as Lt, getLatestReleaseInputSchema as M, createOrUpdateFileDescription as Mi, listIssueReactionsInputSchema as Mn, addPullRequestCommentInputSchema as Mr, listGistCommentsInputSchema as Mt, getReleaseCore as N, createOrUpdateFileInputSchema as Ni, addAssigneesCore as Nn, createPullRequestCore as Nr, listGistsCore as Nt, deleteReleaseDescription as O, createBranchCore as Oi, listCommentReactionsDescription as On, updateLabelDescription as Or, getGistDescription as Ot, getReleaseDescription as P, createRepositoryCore as Pi, addAssigneesDescription as Pn, createPullRequestDescription as Pr, listGistsDescription as Pt, getWorkflowJobLogsDescription as Q, listBranchesCore as Qi, deleteIssueCommentDescription as Qn, listPullRequestReviewsDescription as Qr, searchCodeDescription as Qt, listReleasesInputSchema as R, deleteBranchDescription as Ri, addIssueCommentInputSchema as Rn, createPullRequestReviewInputSchema as Rr, updateGistInputSchema as Rt, getReleaseContextDescription as S, resolveGithubToken as Si, addCommentReactionDescription as Sn, updateIssueCommentDescription as Sr, createGistDescription as St, createReleaseDescription as T, getFileContentToModelOutput as Ti, addIssueReactionDescription as Tn, updateIssueDescription as Tr, deleteGistDescription as Tt, getCombinedStatusDescription as U, getFileContentCore as Ui, closeIssueDescription as Un, getPullRequestDescription as Ur, getBlameDescription as Ut, updateReleaseInputSchema as V, forkRepositoryDescription as Vi, addLabelsInputSchema as Vn, deletePullRequestCommentInputSchema as Vr, compareCommitsInputSchema as Vt, getCombinedStatusInputSchema as W, getFileContentDescription as Wi, closeIssueInputSchema as Wn, getPullRequestInputSchema as Wr, getBlameInputSchema as Wt, cancelWorkflowRunInputSchema as X, getRepositoryTreeDescription as Xi, createLabelInputSchema as Xn, listPullRequestReviewThreadsInputSchema as Xr, listCommitsInputSchema as Xt, cancelWorkflowRunDescription as Y, getRepositoryTreeCore as Yi, createLabelDescription as Yn, listPullRequestReviewThreadsDescription as Yr, listCommitsDescription as Yt, getWorkflowJobLogsCore as Z, getRepositoryTreeInputSchema as Zi, deleteIssueCommentCore as Zn, listPullRequestReviewsCore as Zr, searchCodeCore as Zt, getIssueContextInputSchema as _, updatePullRequestCommentInputSchema as _i, getDiscussionInputSchema as _n, removeAssigneesInputSchema as _r, triggerWorkflowInputSchema as _t, isGithubWriteToolName as a, mergePullRequestInputSchema as ai, searchRepositoriesInputSchema as an, getIssueInputSchema as ar, listWorkflowJobsInputSchema as at, getPullRequestContextInputSchema as b, updatePullRequestInputSchema as bi, listDiscussionsInputSchema as bn, removeLabelInputSchema as br, createGistCommentInputSchema as bt, bindToolsContext as c, replyToReviewCommentInputSchema as ci, listNotificationsInputSchema as cn, listIssueCommentsInputSchema as cr, listWorkflowRunsInputSchema as ct, softenContextSchema as d, requestReviewersInputSchema as di, markNotificationReadInputSchema as dn, listIssuesInputSchema as dr, listWorkflowsInputSchema as dt, listBranchesInputSchema as ea, listPullRequestsCore as ei, searchIssuesCore as en, deleteLabelCore as er, getWorkflowRunCore as et, getCiFailureContextCore as f, resolveReviewThreadCore as fi, addDiscussionCommentCore as fn, listLabelsCore as fr, rerunWorkflowRunCore as ft, getIssueContextDescription as g, updatePullRequestCommentDescription as gi, getDiscussionDescription as gn, removeAssigneesDescription as gr, triggerWorkflowDescription as gt, getIssueContextCore as h, updatePullRequestCommentCore as hi, getDiscussionCore as hn, removeAssigneesCore as hr, triggerWorkflowCore as ht, GITHUB_TOOL_CATALOG as i, mergePullRequestDescription as ii, searchRepositoriesDescription as in, getIssueDescription as ir, listWorkflowJobsDescription as it, getLatestReleaseDescription as j, createOrUpdateFileCore as ji, listIssueReactionsDescription as jn, addPullRequestCommentDescription as jr, listGistCommentsDescription as jt, deleteReleaseInputSchema as k, createBranchDescription as ki, listCommentReactionsInputSchema as kn, updateLabelInputSchema as kr, getGistInputSchema as kt, formatContextInstructions as l, requestReviewersCore as li, markNotificationReadCore as ln, listIssuesCore as lr, listWorkflowsCore as lt, getCiFailureContextInputSchema as m, resolveReviewThreadInputSchema as mi, addDiscussionCommentInputSchema as mn, listLabelsInputSchema as mr, rerunWorkflowRunInputSchema as mt, GITHUB_TOOL_NAMES as n, stripRateLimit as na, listPullRequestsInputSchema as ni, searchIssuesInputSchema as nn, deleteLabelInputSchema as nr, getWorkflowRunInputSchema as nt, PRESET_TOOLS as o, replyToReviewCommentCore as oi, listNotificationsCore as on, listIssueCommentsCore as or, listWorkflowRunsCore as ot, getCiFailureContextDescription as p, resolveReviewThreadDescription as pi, addDiscussionCommentDescription as pn, listLabelsDescription as pr, rerunWorkflowRunDescription as pt, listCheckRunsInputSchema as q, getRepositoryDescription as qi, createIssueInputSchema as qn, listPullRequestFilesInputSchema as qr, getCommitInputSchema as qt, ALL_GITHUB_TOOL_NAMES as r, mergePullRequestCore as ri, searchRepositoriesCore as rn, getIssueCore as rr, listWorkflowJobsCore as rt, resolvePresetTools as s, replyToReviewCommentDescription as si, listNotificationsDescription as sn, listIssueCommentsDescription as sr, listWorkflowRunsDescription as st, GITHUB_WRITE_TOOLS as t, createOctokit as ta, listPullRequestsDescription as ti, searchIssuesDescription as tn, deleteLabelDescription as tr, getWorkflowRunDescription as tt, mergeContextArgs as u, requestReviewersDescription as ui, markNotificationReadDescription as un, listIssuesDescription as ur, listWorkflowsDescription as ut, getPullRequestContextCore as v, updatePullRequestCore as vi, listDiscussionsCore as vn, removeLabelCore as vr, createGistCommentCore as vt, createReleaseCore as w, getCommitToModelOutput as wi, addIssueReactionCore as wn, updateIssueCore as wr, deleteGistCore as wt, getReleaseContextCore as x, createGithubTokenResolver as xi, addCommentReactionCore as xn, updateIssueCommentCore as xr, createGistCore as xt, getPullRequestContextDescription as y, updatePullRequestDescription as yi, listDiscussionsDescription as yn, removeLabelDescription as yr, createGistCommentDescription as yt, updateReleaseCore as z, deleteBranchInputSchema as zi, addLabelsCore as zn, deletePullRequestCommentCore as zr, compareCommitsCore as zt };
3841
4713
 
3842
- //# sourceMappingURL=write-tools-CnJE0Vvu.mjs.map
4714
+ //# sourceMappingURL=write-tools-BEcL5Fv6.mjs.map