@github-tools/sdk 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +86 -27
  2. package/dist/connect/eve.d.mts +16 -10
  3. package/dist/connect/eve.d.mts.map +1 -1
  4. package/dist/connect/eve.mjs +21 -11
  5. package/dist/connect/eve.mjs.map +1 -1
  6. package/dist/connect.d.mts +123 -10
  7. package/dist/connect.d.mts.map +1 -1
  8. package/dist/connect.mjs +3 -3
  9. package/dist/eve-runtime-BqfQZAP7.d.mts +54 -0
  10. package/dist/eve-runtime-BqfQZAP7.d.mts.map +1 -0
  11. package/dist/eve-runtime-DXZgfCMb.mjs +701 -0
  12. package/dist/eve-runtime-DXZgfCMb.mjs.map +1 -0
  13. package/dist/eve-runtime.d.mts +4 -0
  14. package/dist/eve-runtime.mjs +3 -0
  15. package/dist/eve.d.mts +33 -34
  16. package/dist/eve.d.mts.map +1 -1
  17. package/dist/eve.mjs +384 -3
  18. package/dist/eve.mjs.map +1 -0
  19. package/dist/{index-CtID5dUi.d.mts → index-BNeMjmgp.d.mts} +183 -19
  20. package/dist/index-BNeMjmgp.d.mts.map +1 -0
  21. package/dist/index.d.mts +2 -2
  22. package/dist/index.mjs +3 -3
  23. package/dist/{src-D6vC3V8r.mjs → src-jQWS2Txw.mjs} +414 -68
  24. package/dist/src-jQWS2Txw.mjs.map +1 -0
  25. package/dist/token-OPdZa0t3.mjs +390 -0
  26. package/dist/token-OPdZa0t3.mjs.map +1 -0
  27. package/dist/{types-BVLof-5R.d.mts → types-BD5YvGxm.d.mts} +7 -3
  28. package/dist/types-BD5YvGxm.d.mts.map +1 -0
  29. package/dist/{types-BOnJ0Rou.d.mts → types-BDO-Mmn6.d.mts} +4 -3
  30. package/dist/types-BDO-Mmn6.d.mts.map +1 -0
  31. package/dist/workflow.d.mts +1 -1
  32. package/dist/workflow.mjs +2 -2
  33. package/dist/{write-tools-cg_ialNd.mjs → write-tools-Dk32V9Hl.mjs} +885 -26
  34. package/dist/write-tools-Dk32V9Hl.mjs.map +1 -0
  35. package/package.json +5 -1
  36. package/dist/eve-DmiXBuli.mjs +0 -864
  37. package/dist/eve-DmiXBuli.mjs.map +0 -1
  38. package/dist/index-CtID5dUi.d.mts.map +0 -1
  39. package/dist/src-D6vC3V8r.mjs.map +0 -1
  40. package/dist/token-sbepWIkd.mjs +0 -138
  41. package/dist/token-sbepWIkd.mjs.map +0 -1
  42. package/dist/types-BOnJ0Rou.d.mts.map +0 -1
  43. package/dist/types-BVLof-5R.d.mts.map +0 -1
  44. package/dist/write-tools-cg_ialNd.mjs.map +0 -1
@@ -693,6 +693,54 @@ async function createPullRequestCore({ token, owner, repo, title, body, head, ba
693
693
  base: data.base.ref
694
694
  };
695
695
  }
696
+ const MARK_READY_FOR_REVIEW_MUTATION = `
697
+ mutation($pullRequestId: ID!) {
698
+ markPullRequestReadyForReview(input: { pullRequestId: $pullRequestId }) {
699
+ pullRequest { id }
700
+ }
701
+ }
702
+ `;
703
+ const CONVERT_TO_DRAFT_MUTATION = `
704
+ mutation($pullRequestId: ID!) {
705
+ convertPullRequestToDraft(input: { pullRequestId: $pullRequestId }) {
706
+ pullRequest { id }
707
+ }
708
+ }
709
+ `;
710
+ const updatePullRequestInputSchema = z.object({
711
+ owner: z.string().describe("Repository owner"),
712
+ repo: z.string().describe("Repository name"),
713
+ pullNumber: z.number().describe("Pull request number"),
714
+ title: z.string().optional().describe("New pull request title"),
715
+ body: z.string().optional().describe("New pull request description (supports Markdown)"),
716
+ state: z.enum(["open", "closed"]).optional().describe("Open or close the pull request"),
717
+ base: z.string().optional().describe("Change the base branch to merge into"),
718
+ draft: z.boolean().optional().describe("Convert to draft (true) or mark as ready for review (false)")
719
+ });
720
+ const updatePullRequestDescription = "Update a pull request — title, body, state, base branch, or draft status. Draft toggling uses the GitHub GraphQL API since the REST update endpoint does not support it";
721
+ /** Not idempotent — each call applies a new revision. */
722
+ async function updatePullRequestCore({ token, owner, repo, pullNumber, title, body, state, base, draft }) {
723
+ const octokit = createOctokit(token);
724
+ const { data } = await octokit.rest.pulls.update({
725
+ owner,
726
+ repo,
727
+ pull_number: pullNumber,
728
+ title,
729
+ body,
730
+ state,
731
+ base
732
+ });
733
+ if (draft !== void 0 && draft !== data.draft) await octokit.graphql(draft ? CONVERT_TO_DRAFT_MUTATION : MARK_READY_FOR_REVIEW_MUTATION, { pullRequestId: data.node_id });
734
+ return {
735
+ number: data.number,
736
+ title: data.title,
737
+ state: data.state,
738
+ draft: draft ?? data.draft,
739
+ url: data.html_url,
740
+ base: data.base.ref,
741
+ updatedAt: data.updated_at
742
+ };
743
+ }
696
744
  const mergePullRequestInputSchema = z.object({
697
745
  owner: z.string().describe("Repository owner"),
698
746
  repo: z.string().describe("Repository name"),
@@ -747,6 +795,46 @@ async function addPullRequestCommentCore({ token, owner, repo, pullNumber, body
747
795
  createdAt: data.created_at
748
796
  };
749
797
  }
798
+ const updatePullRequestCommentInputSchema = z.object({
799
+ owner: z.string().describe("Repository owner"),
800
+ repo: z.string().describe("Repository name"),
801
+ commentId: z.number().describe("Comment ID (from the comment returned by addPullRequestComment)"),
802
+ body: z.string().describe("New comment text (supports Markdown)")
803
+ });
804
+ const updatePullRequestCommentDescription = "Update the body of a comment on a pull request";
805
+ /** Not idempotent — each call applies a new revision. */
806
+ async function updatePullRequestCommentCore({ token, owner, repo, commentId, body }) {
807
+ const { data } = await createOctokit(token).rest.issues.updateComment({
808
+ owner,
809
+ repo,
810
+ comment_id: commentId,
811
+ body
812
+ });
813
+ return {
814
+ id: data.id,
815
+ url: data.html_url,
816
+ body: data.body,
817
+ updatedAt: data.updated_at
818
+ };
819
+ }
820
+ const deletePullRequestCommentInputSchema = z.object({
821
+ owner: z.string().describe("Repository owner"),
822
+ repo: z.string().describe("Repository name"),
823
+ commentId: z.number().describe("Comment ID to delete")
824
+ });
825
+ const deletePullRequestCommentDescription = "Delete a comment from a pull request permanently";
826
+ /** Not idempotent — deleting an already-deleted comment returns 404 from GitHub. */
827
+ async function deletePullRequestCommentCore({ token, owner, repo, commentId }) {
828
+ await createOctokit(token).rest.issues.deleteComment({
829
+ owner,
830
+ repo,
831
+ comment_id: commentId
832
+ });
833
+ return {
834
+ deleted: true,
835
+ commentId
836
+ };
837
+ }
750
838
  const listPullRequestFilesInputSchema = z.object({
751
839
  owner: z.string().describe("Repository owner"),
752
840
  repo: z.string().describe("Repository name"),
@@ -927,7 +1015,7 @@ async function getIssueCore({ token, owner, repo, issueNumber, detail = "summary
927
1015
  closedAt: data.closed_at
928
1016
  };
929
1017
  }
930
- z.object({
1018
+ const listIssueCommentsInputSchema = z.object({
931
1019
  owner: z.string().describe("Repository owner"),
932
1020
  repo: z.string().describe("Repository name"),
933
1021
  issueNumber: z.number().describe("Issue number"),
@@ -935,6 +1023,7 @@ z.object({
935
1023
  page: z.number().optional().default(1).describe("Page number for pagination"),
936
1024
  detail: detailSchema
937
1025
  });
1026
+ const listIssueCommentsDescription = "List comments on a GitHub issue. Bodies are truncated by default (detail: summary)";
938
1027
  async function listIssueCommentsCore({ token, owner, repo, issueNumber, perPage, page, detail = "summary" }) {
939
1028
  const { data } = await createOctokit(token).rest.issues.listComments({
940
1029
  owner,
@@ -1039,6 +1128,89 @@ async function closeIssueCore({ token, owner, repo, issueNumber, stateReason })
1039
1128
  closedAt: data.closed_at
1040
1129
  };
1041
1130
  }
1131
+ const updateIssueInputSchema = z.object({
1132
+ owner: z.string().describe("Repository owner"),
1133
+ repo: z.string().describe("Repository name"),
1134
+ issueNumber: z.number().describe("Issue number"),
1135
+ title: z.string().optional().describe("New issue title"),
1136
+ body: z.string().optional().describe("New issue description (supports Markdown)"),
1137
+ state: z.enum(["open", "closed"]).optional().describe("Open or close the issue — set open to reopen a closed issue, closed to close it"),
1138
+ stateReason: z.enum([
1139
+ "completed",
1140
+ "not_planned",
1141
+ "reopened"
1142
+ ]).optional().describe("Reason for the state change (ignored unless state changes)"),
1143
+ labels: z.array(z.string()).optional().describe("Labels to set on the issue — replaces the existing set"),
1144
+ milestone: z.number().nullable().optional().describe("Milestone number to associate, or null to remove the milestone"),
1145
+ assignees: z.array(z.string()).optional().describe("GitHub usernames to set as assignees — replaces the existing set")
1146
+ });
1147
+ const updateIssueDescription = "Update a GitHub issue — title, body, labels, milestone, or assignees. Set state open to reopen a closed issue, or closed to close it";
1148
+ /** Not idempotent — each call applies a new revision. */
1149
+ async function updateIssueCore({ token, owner, repo, issueNumber, title, body, state, stateReason, labels, milestone, assignees }) {
1150
+ const { data } = await createOctokit(token).rest.issues.update({
1151
+ owner,
1152
+ repo,
1153
+ issue_number: issueNumber,
1154
+ title,
1155
+ body,
1156
+ state,
1157
+ state_reason: stateReason,
1158
+ labels,
1159
+ milestone,
1160
+ assignees
1161
+ });
1162
+ return {
1163
+ number: data.number,
1164
+ title: data.title,
1165
+ state: data.state,
1166
+ url: data.html_url,
1167
+ labels: data.labels.map((l) => typeof l === "string" ? l : l.name),
1168
+ assignees: data.assignees?.map((a) => a.login),
1169
+ milestone: data.milestone?.number ?? null,
1170
+ closedAt: data.closed_at,
1171
+ updatedAt: data.updated_at
1172
+ };
1173
+ }
1174
+ const updateIssueCommentInputSchema = z.object({
1175
+ owner: z.string().describe("Repository owner"),
1176
+ repo: z.string().describe("Repository name"),
1177
+ commentId: z.number().describe("Comment ID (from listIssueComments)"),
1178
+ body: z.string().describe("New comment text (supports Markdown)")
1179
+ });
1180
+ const updateIssueCommentDescription = "Update the body of a comment on a GitHub issue";
1181
+ /** Not idempotent — each call applies a new revision. */
1182
+ async function updateIssueCommentCore({ token, owner, repo, commentId, body }) {
1183
+ const { data } = await createOctokit(token).rest.issues.updateComment({
1184
+ owner,
1185
+ repo,
1186
+ comment_id: commentId,
1187
+ body
1188
+ });
1189
+ return {
1190
+ id: data.id,
1191
+ url: data.html_url,
1192
+ body: data.body,
1193
+ updatedAt: data.updated_at
1194
+ };
1195
+ }
1196
+ const deleteIssueCommentInputSchema = z.object({
1197
+ owner: z.string().describe("Repository owner"),
1198
+ repo: z.string().describe("Repository name"),
1199
+ commentId: z.number().describe("Comment ID to delete")
1200
+ });
1201
+ const deleteIssueCommentDescription = "Delete a comment from a GitHub issue permanently";
1202
+ /** Not idempotent — deleting an already-deleted comment returns 404 from GitHub. */
1203
+ async function deleteIssueCommentCore({ token, owner, repo, commentId }) {
1204
+ await createOctokit(token).rest.issues.deleteComment({
1205
+ owner,
1206
+ repo,
1207
+ comment_id: commentId
1208
+ });
1209
+ return {
1210
+ deleted: true,
1211
+ commentId
1212
+ };
1213
+ }
1042
1214
  const listLabelsInputSchema = z.object({
1043
1215
  owner: z.string().describe("Repository owner"),
1044
1216
  repo: z.string().describe("Repository name"),
@@ -1101,6 +1273,72 @@ async function removeLabelCore({ token, owner, repo, issueNumber, label }) {
1101
1273
  issueNumber
1102
1274
  };
1103
1275
  }
1276
+ const createLabelInputSchema = z.object({
1277
+ owner: z.string().describe("Repository owner"),
1278
+ repo: z.string().describe("Repository name"),
1279
+ name: z.string().describe("Label name"),
1280
+ color: z.string().describe("Label color as 6 hex digits without a leading # (e.g. \"d73a4a\")"),
1281
+ description: z.string().optional().describe("Short label description")
1282
+ });
1283
+ const createLabelDescription = "Create a label in a GitHub repository";
1284
+ /** Not idempotent — creating a label that already exists returns 422 from GitHub. */
1285
+ async function createLabelCore({ token, owner, repo, name, color, description }) {
1286
+ const { data } = await createOctokit(token).rest.issues.createLabel({
1287
+ owner,
1288
+ repo,
1289
+ name,
1290
+ color,
1291
+ description
1292
+ });
1293
+ return {
1294
+ name: data.name,
1295
+ color: data.color,
1296
+ description: data.description
1297
+ };
1298
+ }
1299
+ const updateLabelInputSchema = z.object({
1300
+ owner: z.string().describe("Repository owner"),
1301
+ repo: z.string().describe("Repository name"),
1302
+ name: z.string().describe("Current label name"),
1303
+ newName: z.string().optional().describe("New label name (rename)"),
1304
+ color: z.string().optional().describe("New color as 6 hex digits without a leading #"),
1305
+ description: z.string().nullable().optional().describe("New description, or null to clear it")
1306
+ });
1307
+ const updateLabelDescription = "Update a label in a GitHub repository — name, color, or description";
1308
+ /** Not idempotent — each call applies a new revision. */
1309
+ async function updateLabelCore({ token, owner, repo, name, newName, color, description }) {
1310
+ const { data } = await createOctokit(token).rest.issues.updateLabel({
1311
+ owner,
1312
+ repo,
1313
+ name,
1314
+ new_name: newName,
1315
+ color,
1316
+ description: description === null ? "" : description
1317
+ });
1318
+ return {
1319
+ name: data.name,
1320
+ color: data.color,
1321
+ description: data.description
1322
+ };
1323
+ }
1324
+ const deleteLabelInputSchema = z.object({
1325
+ owner: z.string().describe("Repository owner"),
1326
+ repo: z.string().describe("Repository name"),
1327
+ name: z.string().describe("Label name to delete")
1328
+ });
1329
+ const deleteLabelDescription = "Delete a label from a GitHub repository permanently";
1330
+ /** Not idempotent — deleting a missing label returns 404 from GitHub. */
1331
+ async function deleteLabelCore({ token, owner, repo, name }) {
1332
+ await createOctokit(token).rest.issues.deleteLabel({
1333
+ owner,
1334
+ repo,
1335
+ name
1336
+ });
1337
+ return {
1338
+ deleted: true,
1339
+ name
1340
+ };
1341
+ }
1104
1342
  const addAssigneesInputSchema = z.object({
1105
1343
  owner: z.string().describe("Repository owner"),
1106
1344
  repo: z.string().describe("Repository name"),
@@ -1142,16 +1380,366 @@ async function removeAssigneesCore({ token, owner, repo, issueNumber, assignees
1142
1380
  };
1143
1381
  }
1144
1382
  //#endregion
1383
+ //#region src/core/reactions.ts
1384
+ const reactionContentSchema = z.enum([
1385
+ "+1",
1386
+ "-1",
1387
+ "laugh",
1388
+ "confused",
1389
+ "heart",
1390
+ "hooray",
1391
+ "rocket",
1392
+ "eyes"
1393
+ ]);
1394
+ function shapeReactions(reactions) {
1395
+ const counts = {};
1396
+ for (const reaction of reactions) counts[reaction.content] = (counts[reaction.content] ?? 0) + 1;
1397
+ return {
1398
+ total: reactions.length,
1399
+ counts,
1400
+ reactions: reactions.map((reaction) => ({
1401
+ content: reaction.content,
1402
+ user: reaction.user?.login
1403
+ }))
1404
+ };
1405
+ }
1406
+ const listIssueReactionsInputSchema = z.object({
1407
+ owner: z.string().describe("Repository owner"),
1408
+ repo: z.string().describe("Repository name"),
1409
+ issueNumber: z.number().describe("Issue or pull request number — pull request conversations share the issue numbering"),
1410
+ content: reactionContentSchema.optional().describe("Only return reactions of this type"),
1411
+ perPage: z.number().optional().default(30).describe("Number of reactions to return (max 100)"),
1412
+ page: z.number().optional().default(1).describe("Page number for pagination")
1413
+ });
1414
+ const listIssueReactionsDescription = "List reactions on an issue or pull request conversation, with per-emoji counts for the returned page";
1415
+ async function listIssueReactionsCore({ token, owner, repo, issueNumber, content, perPage, page }) {
1416
+ const { data } = await createOctokit(token).rest.reactions.listForIssue({
1417
+ owner,
1418
+ repo,
1419
+ issue_number: issueNumber,
1420
+ content,
1421
+ per_page: perPage,
1422
+ page
1423
+ });
1424
+ return shapeReactions(data);
1425
+ }
1426
+ const addIssueReactionInputSchema = z.object({
1427
+ owner: z.string().describe("Repository owner"),
1428
+ repo: z.string().describe("Repository name"),
1429
+ issueNumber: z.number().describe("Issue or pull request number — pull request conversations share the issue numbering"),
1430
+ content: reactionContentSchema.describe("Reaction to add")
1431
+ });
1432
+ const addIssueReactionDescription = "React to an issue or pull request with an emoji. Prefer this over posting a comment to acknowledge a report without adding noise to the thread";
1433
+ /** Idempotent — GitHub returns the existing reaction when the user already reacted with the same content. */
1434
+ async function addIssueReactionCore({ token, owner, repo, issueNumber, content }) {
1435
+ const { data } = await createOctokit(token).rest.reactions.createForIssue({
1436
+ owner,
1437
+ repo,
1438
+ issue_number: issueNumber,
1439
+ content
1440
+ });
1441
+ return {
1442
+ id: data.id,
1443
+ content: data.content,
1444
+ user: data.user?.login,
1445
+ issueNumber
1446
+ };
1447
+ }
1448
+ const listCommentReactionsInputSchema = z.object({
1449
+ owner: z.string().describe("Repository owner"),
1450
+ repo: z.string().describe("Repository name"),
1451
+ commentId: z.number().describe("Issue or pull request comment ID (from getIssueContext or addIssueComment)"),
1452
+ content: reactionContentSchema.optional().describe("Only return reactions of this type"),
1453
+ perPage: z.number().optional().default(30).describe("Number of reactions to return (max 100)"),
1454
+ page: z.number().optional().default(1).describe("Page number for pagination")
1455
+ });
1456
+ const listCommentReactionsDescription = "List reactions on an issue or pull request comment, with per-emoji counts for the returned page";
1457
+ async function listCommentReactionsCore({ token, owner, repo, commentId, content, perPage, page }) {
1458
+ const { data } = await createOctokit(token).rest.reactions.listForIssueComment({
1459
+ owner,
1460
+ repo,
1461
+ comment_id: commentId,
1462
+ content,
1463
+ per_page: perPage,
1464
+ page
1465
+ });
1466
+ return shapeReactions(data);
1467
+ }
1468
+ const addCommentReactionInputSchema = z.object({
1469
+ owner: z.string().describe("Repository owner"),
1470
+ repo: z.string().describe("Repository name"),
1471
+ commentId: z.number().describe("Issue or pull request comment ID to react to"),
1472
+ content: reactionContentSchema.describe("Reaction to add")
1473
+ });
1474
+ const addCommentReactionDescription = "React to an issue or pull request comment with an emoji. Prefer this over a reply when acknowledging a comment";
1475
+ /** Idempotent — GitHub returns the existing reaction when the user already reacted with the same content. */
1476
+ async function addCommentReactionCore({ token, owner, repo, commentId, content }) {
1477
+ const { data } = await createOctokit(token).rest.reactions.createForIssueComment({
1478
+ owner,
1479
+ repo,
1480
+ comment_id: commentId,
1481
+ content
1482
+ });
1483
+ return {
1484
+ id: data.id,
1485
+ content: data.content,
1486
+ user: data.user?.login,
1487
+ commentId
1488
+ };
1489
+ }
1490
+ //#endregion
1491
+ //#region src/core/discussions.ts
1492
+ const DISCUSSION_CATEGORIES_QUERY = `
1493
+ query ($owner: String!, $name: String!) {
1494
+ repository(owner: $owner, name: $name) {
1495
+ discussionCategories(first: 100) {
1496
+ nodes {
1497
+ id
1498
+ name
1499
+ }
1500
+ }
1501
+ }
1502
+ }
1503
+ `;
1504
+ const LIST_DISCUSSIONS_QUERY = `
1505
+ query ($owner: String!, $name: String!, $first: Int!, $after: String, $categoryId: ID) {
1506
+ repository(owner: $owner, name: $name) {
1507
+ discussions(first: $first, after: $after, categoryId: $categoryId, orderBy: { field: UPDATED_AT, direction: DESC }) {
1508
+ pageInfo {
1509
+ hasNextPage
1510
+ endCursor
1511
+ }
1512
+ nodes {
1513
+ id
1514
+ number
1515
+ title
1516
+ url
1517
+ createdAt
1518
+ updatedAt
1519
+ isAnswered
1520
+ author {
1521
+ login
1522
+ }
1523
+ category {
1524
+ name
1525
+ }
1526
+ }
1527
+ }
1528
+ }
1529
+ }
1530
+ `;
1531
+ const GET_DISCUSSION_QUERY = `
1532
+ query ($owner: String!, $name: String!, $number: Int!) {
1533
+ repository(owner: $owner, name: $name) {
1534
+ discussion(number: $number) {
1535
+ id
1536
+ number
1537
+ title
1538
+ body
1539
+ url
1540
+ createdAt
1541
+ updatedAt
1542
+ isAnswered
1543
+ author {
1544
+ login
1545
+ }
1546
+ category {
1547
+ name
1548
+ }
1549
+ comments {
1550
+ totalCount
1551
+ }
1552
+ }
1553
+ }
1554
+ }
1555
+ `;
1556
+ const DISCUSSION_ID_QUERY = `
1557
+ query ($owner: String!, $name: String!, $number: Int!) {
1558
+ repository(owner: $owner, name: $name) {
1559
+ discussion(number: $number) {
1560
+ id
1561
+ }
1562
+ }
1563
+ }
1564
+ `;
1565
+ const ADD_DISCUSSION_COMMENT_MUTATION = `
1566
+ mutation ($discussionId: ID!, $body: String!) {
1567
+ addDiscussionComment(input: { discussionId: $discussionId, body: $body }) {
1568
+ comment {
1569
+ id
1570
+ url
1571
+ body
1572
+ createdAt
1573
+ author {
1574
+ login
1575
+ }
1576
+ }
1577
+ }
1578
+ }
1579
+ `;
1580
+ async function resolveCategoryId(octokit, owner, repo, category) {
1581
+ const nodes = (await octokit.graphql(DISCUSSION_CATEGORIES_QUERY, {
1582
+ owner,
1583
+ name: repo
1584
+ })).repository?.discussionCategories.nodes ?? [];
1585
+ return {
1586
+ id: nodes.find((node) => node.name.toLowerCase() === category.toLowerCase())?.id,
1587
+ available: nodes.map((node) => node.name)
1588
+ };
1589
+ }
1590
+ const listDiscussionsInputSchema = z.object({
1591
+ owner: z.string().describe("Repository owner"),
1592
+ repo: z.string().describe("Repository name"),
1593
+ category: z.string().optional().describe("Discussion category name (for example \"Q&A\" or \"Ideas\") — omit for all categories"),
1594
+ perPage: z.number().optional().default(20).describe("Number of discussions to return (max 100)"),
1595
+ after: z.string().optional().describe("Cursor from a previous call (endCursor) to fetch the next page")
1596
+ });
1597
+ const listDiscussionsDescription = "List discussions in a GitHub repository, most recently updated first, optionally filtered by category (GitHub GraphQL API)";
1598
+ async function listDiscussionsCore({ token, owner, repo, category, perPage, after }) {
1599
+ const octokit = createOctokit(token);
1600
+ let categoryId;
1601
+ if (category) {
1602
+ const { id, available } = await resolveCategoryId(octokit, owner, repo, category);
1603
+ if (!id) return { error: `Unknown discussion category "${category}". Available categories: ${available.join(", ")}` };
1604
+ categoryId = id;
1605
+ }
1606
+ const data = await octokit.graphql(LIST_DISCUSSIONS_QUERY, {
1607
+ owner,
1608
+ name: repo,
1609
+ first: perPage,
1610
+ after,
1611
+ categoryId
1612
+ });
1613
+ if (!data.repository) return { error: `Repository not found, or discussions are disabled on ${owner}/${repo}` };
1614
+ const { pageInfo, nodes } = data.repository.discussions;
1615
+ return {
1616
+ hasNextPage: pageInfo.hasNextPage,
1617
+ endCursor: pageInfo.endCursor,
1618
+ discussions: nodes.map((node) => ({
1619
+ id: node.id,
1620
+ number: node.number,
1621
+ title: node.title,
1622
+ url: node.url,
1623
+ author: node.author?.login ?? null,
1624
+ category: node.category?.name ?? null,
1625
+ answerChosen: node.isAnswered,
1626
+ createdAt: node.createdAt,
1627
+ updatedAt: node.updatedAt
1628
+ }))
1629
+ };
1630
+ }
1631
+ const getDiscussionInputSchema = z.object({
1632
+ owner: z.string().describe("Repository owner"),
1633
+ repo: z.string().describe("Repository name"),
1634
+ discussionNumber: z.number().describe("Discussion number"),
1635
+ detail: detailSchema
1636
+ });
1637
+ const getDiscussionDescription = "Get a GitHub discussion by number. Body is truncated by default (detail: summary) — set detail full for the complete text (GitHub GraphQL API)";
1638
+ async function getDiscussionCore({ token, owner, repo, discussionNumber, detail = "summary" }) {
1639
+ const discussion = (await createOctokit(token).graphql(GET_DISCUSSION_QUERY, {
1640
+ owner,
1641
+ name: repo,
1642
+ number: discussionNumber
1643
+ })).repository?.discussion;
1644
+ if (!discussion) return { error: `Discussion #${discussionNumber} not found on ${owner}/${repo}` };
1645
+ return {
1646
+ id: discussion.id,
1647
+ number: discussion.number,
1648
+ title: discussion.title,
1649
+ body: applyDetailBody(discussion.body, detail),
1650
+ url: discussion.url,
1651
+ author: discussion.author?.login ?? null,
1652
+ category: discussion.category?.name ?? null,
1653
+ answerChosen: discussion.isAnswered,
1654
+ commentsCount: discussion.comments.totalCount,
1655
+ createdAt: discussion.createdAt,
1656
+ updatedAt: discussion.updatedAt
1657
+ };
1658
+ }
1659
+ const addDiscussionCommentInputSchema = z.object({
1660
+ owner: z.string().describe("Repository owner"),
1661
+ repo: z.string().describe("Repository name"),
1662
+ discussionNumber: z.number().describe("Discussion number"),
1663
+ body: z.string().describe("Comment text (supports Markdown)")
1664
+ });
1665
+ const addDiscussionCommentDescription = "Add a comment to a GitHub discussion (GitHub GraphQL API)";
1666
+ /** Not idempotent — each call adds another comment. */
1667
+ async function addDiscussionCommentCore({ token, owner, repo, discussionNumber, body }) {
1668
+ const octokit = createOctokit(token);
1669
+ const discussionId = (await octokit.graphql(DISCUSSION_ID_QUERY, {
1670
+ owner,
1671
+ name: repo,
1672
+ number: discussionNumber
1673
+ })).repository?.discussion?.id;
1674
+ if (!discussionId) return { error: `Discussion #${discussionNumber} not found on ${owner}/${repo}` };
1675
+ const comment = (await octokit.graphql(ADD_DISCUSSION_COMMENT_MUTATION, {
1676
+ discussionId,
1677
+ body
1678
+ })).addDiscussionComment.comment;
1679
+ return {
1680
+ id: comment.id,
1681
+ url: comment.url,
1682
+ body: comment.body,
1683
+ author: comment.author?.login ?? null,
1684
+ createdAt: comment.createdAt
1685
+ };
1686
+ }
1687
+ //#endregion
1688
+ //#region src/core/notifications.ts
1689
+ const listNotificationsInputSchema = z.object({
1690
+ all: z.boolean().optional().default(false).describe("Include notifications already marked as read"),
1691
+ participating: z.boolean().optional().default(false).describe("Only notifications where the authenticated user is directly participating or mentioned"),
1692
+ perPage: z.number().optional().default(20).describe("Number of notifications to return (max 50)"),
1693
+ page: z.number().optional().default(1).describe("Page number for pagination")
1694
+ });
1695
+ const listNotificationsDescription = "List notification threads for the authenticated user. Unread only by default — set all true to include read threads. Requires a token with notifications access";
1696
+ async function listNotificationsCore({ token, all, participating, perPage, page }) {
1697
+ const { data } = await createOctokit(token).rest.activity.listNotificationsForAuthenticatedUser({
1698
+ all,
1699
+ participating,
1700
+ per_page: perPage,
1701
+ page
1702
+ });
1703
+ return data.map((thread) => ({
1704
+ threadId: thread.id,
1705
+ repository: thread.repository.full_name,
1706
+ subject: {
1707
+ title: thread.subject.title,
1708
+ type: thread.subject.type,
1709
+ url: thread.subject.url
1710
+ },
1711
+ reason: thread.reason,
1712
+ unread: thread.unread,
1713
+ updatedAt: thread.updated_at
1714
+ }));
1715
+ }
1716
+ const markNotificationReadInputSchema = z.object({ threadId: z.string().describe("Notification thread ID (from listNotifications)") });
1717
+ const markNotificationReadDescription = "Mark a single notification thread as read";
1718
+ /** Idempotent — marking an already-read thread is a no-op on GitHub. */
1719
+ async function markNotificationReadCore({ token, threadId }) {
1720
+ await createOctokit(token).rest.activity.markThreadAsRead({ thread_id: Number(threadId) });
1721
+ return {
1722
+ marked: true,
1723
+ threadId
1724
+ };
1725
+ }
1726
+ //#endregion
1145
1727
  //#region src/core/search.ts
1728
+ const MAX_FRAGMENT_LENGTH = 300;
1729
+ function truncateFragment(fragment) {
1730
+ if (fragment.length <= MAX_FRAGMENT_LENGTH) return fragment;
1731
+ return `${fragment.slice(0, MAX_FRAGMENT_LENGTH)}…`;
1732
+ }
1146
1733
  const searchCodeInputSchema = z.object({
1147
1734
  query: z.string().describe("Search query. Supports GitHub search qualifiers, e.g. \"useState repo:facebook/react\""),
1148
1735
  perPage: z.number().optional().default(10).describe("Number of results to return (max 30)")
1149
1736
  });
1150
- const searchCodeDescription = "Search for code in GitHub repositories. Use qualifiers like \"repo:owner/name\" to scope the search.";
1737
+ const searchCodeDescription = "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.";
1151
1738
  async function searchCodeCore({ token, query, perPage }) {
1152
1739
  const { data } = await createOctokit(token).rest.search.code({
1153
1740
  q: query,
1154
- per_page: perPage
1741
+ per_page: perPage,
1742
+ mediaType: { format: "text-match" }
1155
1743
  });
1156
1744
  return {
1157
1745
  totalCount: data.total_count,
@@ -1160,7 +1748,8 @@ async function searchCodeCore({ token, query, perPage }) {
1160
1748
  path: item.path,
1161
1749
  url: item.html_url,
1162
1750
  repository: item.repository.full_name,
1163
- sha: item.sha
1751
+ sha: item.sha,
1752
+ textMatches: item.text_matches?.map((match) => ({ fragment: truncateFragment(match.fragment ?? "") }))
1164
1753
  }))
1165
1754
  };
1166
1755
  }
@@ -1197,6 +1786,43 @@ async function searchRepositoriesCore({ token, query, perPage, sort, order }) {
1197
1786
  }))
1198
1787
  };
1199
1788
  }
1789
+ const searchIssuesInputSchema = z.object({
1790
+ query: z.string().describe("Search query. Supports GitHub search qualifiers, e.g. \"repo:owner/name is:open label:bug\". Returns both issues and pull requests by default — use type:pr or is:pr to scope to pull requests, or type:issue / is:issue to exclude them"),
1791
+ perPage: z.number().optional().default(10).describe("Number of results to return (max 30)"),
1792
+ sort: z.enum([
1793
+ "comments",
1794
+ "reactions",
1795
+ "created",
1796
+ "updated",
1797
+ "interactions"
1798
+ ]).optional().describe("Sort field"),
1799
+ order: z.enum(["asc", "desc"]).optional().default("desc").describe("Sort order")
1800
+ });
1801
+ const searchIssuesDescription = "Search for issues and pull requests across GitHub using search qualifiers like \"repo:owner/name is:open\"";
1802
+ async function searchIssuesCore({ token, query, perPage, sort, order }) {
1803
+ const { data } = await createOctokit(token).rest.search.issuesAndPullRequests({
1804
+ q: query,
1805
+ per_page: perPage,
1806
+ sort,
1807
+ order
1808
+ });
1809
+ return {
1810
+ totalCount: data.total_count,
1811
+ items: data.items.map((item) => ({
1812
+ number: item.number,
1813
+ title: item.title,
1814
+ state: item.state,
1815
+ url: item.html_url,
1816
+ repository: item.repository_url.split("/repos/").at(-1),
1817
+ author: item.user?.login,
1818
+ labels: item.labels.map((l) => typeof l === "string" ? l : l.name),
1819
+ comments: item.comments,
1820
+ createdAt: item.created_at,
1821
+ updatedAt: item.updated_at,
1822
+ isPullRequest: Boolean(item.pull_request)
1823
+ }))
1824
+ };
1825
+ }
1200
1826
  //#endregion
1201
1827
  //#region src/core/commits.ts
1202
1828
  const BLAME_QUERY = `
@@ -1966,6 +2592,60 @@ async function createReleaseCore({ token, owner, repo, tagName, target, name, bo
1966
2592
  createdAt: data.created_at
1967
2593
  };
1968
2594
  }
2595
+ const updateReleaseInputSchema = z.object({
2596
+ owner: z.string().describe("Repository owner"),
2597
+ repo: z.string().describe("Repository name"),
2598
+ releaseId: z.number().describe("Release ID (from listReleases or getLatestRelease)"),
2599
+ tagName: z.string().optional().describe("New tag name for the release"),
2600
+ target: z.string().optional().describe("Branch name or commit SHA to tag"),
2601
+ name: z.string().optional().describe("New release title"),
2602
+ body: z.string().optional().describe("New release notes (supports Markdown)"),
2603
+ draft: z.boolean().optional().describe("Mark as a draft release"),
2604
+ prerelease: z.boolean().optional().describe("Mark as a prerelease")
2605
+ });
2606
+ const updateReleaseDescription = "Update an existing release — tag, target, title, notes, draft, or prerelease status";
2607
+ /** Not idempotent — each call applies a new revision. */
2608
+ async function updateReleaseCore({ token, owner, repo, releaseId, tagName, target, name, body, draft, prerelease }) {
2609
+ const { data } = await createOctokit(token).rest.repos.updateRelease({
2610
+ owner,
2611
+ repo,
2612
+ release_id: releaseId,
2613
+ tag_name: tagName,
2614
+ target_commitish: target,
2615
+ name,
2616
+ body,
2617
+ draft,
2618
+ prerelease
2619
+ });
2620
+ return {
2621
+ id: data.id,
2622
+ tagName: data.tag_name,
2623
+ name: data.name,
2624
+ body: data.body,
2625
+ url: data.html_url,
2626
+ draft: data.draft,
2627
+ prerelease: data.prerelease,
2628
+ publishedAt: data.published_at
2629
+ };
2630
+ }
2631
+ const deleteReleaseInputSchema = z.object({
2632
+ owner: z.string().describe("Repository owner"),
2633
+ repo: z.string().describe("Repository name"),
2634
+ releaseId: z.number().describe("Release ID to delete")
2635
+ });
2636
+ const deleteReleaseDescription = "Delete a release permanently (does not delete the underlying git tag)";
2637
+ /** Not idempotent — deleting an already-deleted release returns 404 from GitHub. */
2638
+ async function deleteReleaseCore({ token, owner, repo, releaseId }) {
2639
+ await createOctokit(token).rest.repos.deleteRelease({
2640
+ owner,
2641
+ repo,
2642
+ release_id: releaseId
2643
+ });
2644
+ return {
2645
+ deleted: true,
2646
+ releaseId
2647
+ };
2648
+ }
1969
2649
  //#endregion
1970
2650
  //#region src/core/bundles.ts
1971
2651
  const getPullRequestContextInputSchema = z.object({
@@ -2034,13 +2714,13 @@ const getIssueContextInputSchema = z.object({
2034
2714
  owner: z.string().describe("Repository owner"),
2035
2715
  repo: z.string().describe("Repository name"),
2036
2716
  issueNumber: z.number().describe("Issue number"),
2037
- includeLabels: z.boolean().optional().default(true).describe("Include available repository labels for triage"),
2717
+ includeLabels: z.boolean().optional().default(true).describe("Include available repository label names for triage (names only — use listLabels for descriptions)"),
2038
2718
  includeComments: z.boolean().optional().default(true).describe("Include recent issue comments"),
2039
- maxComments: z.number().optional().default(20).describe("Max recent comments to include"),
2040
- detail: detailSchema
2719
+ maxComments: z.number().optional().default(5).describe("Max recent comments to include (keep small — fetch more only when needed)"),
2720
+ detail: z.enum(["summary", "full"]).optional().default("full").describe("full returns the complete body (default for this one-shot tool); summary truncates to ~500 chars")
2041
2721
  });
2042
- const getIssueContextDescription = "Fetch an issue plus available labels and recent comments in one call — prefer this over separate getIssue / listLabels / comment calls when triaging";
2043
- async function getIssueContextCore({ token, owner, repo, issueNumber, includeLabels, includeComments, maxComments, detail = "summary" }) {
2722
+ const getIssueContextDescription = "Fetch an issue plus available label names and recent comments in one call — prefer this over separate getIssue / listLabels / comment calls when triaging. Call once; do not re-fetch the same issue.";
2723
+ async function getIssueContextCore({ token, owner, repo, issueNumber, includeLabels, includeComments, maxComments, detail = "full" }) {
2044
2724
  const [issue, labels, comments] = await Promise.all([
2045
2725
  getIssueCore({
2046
2726
  token,
@@ -2068,7 +2748,7 @@ async function getIssueContextCore({ token, owner, repo, issueNumber, includeLab
2068
2748
  ]);
2069
2749
  return {
2070
2750
  issue,
2071
- ...labels !== void 0 ? { labels } : {},
2751
+ ...labels !== void 0 ? { labelNames: labels.map((label) => label.name) } : {},
2072
2752
  ...comments !== void 0 ? { comments } : {}
2073
2753
  };
2074
2754
  }
@@ -2291,7 +2971,8 @@ const PRESET_TOOLS = {
2291
2971
  *
2292
2972
  * Tools: `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `getPullRequestContext`,
2293
2973
  * `getFileContent`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `getRepository`, `listBranches`,
2294
- * `searchCode`, `listCheckRuns`, `getCombinedStatus`, `addPullRequestComment`, `createPullRequestReview`, `requestReviewers`.
2974
+ * `searchCode`, `listCheckRuns`, `getCombinedStatus`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`,
2975
+ * `deletePullRequestComment`, `createPullRequestReview`, `requestReviewers`.
2295
2976
  *
2296
2977
  * Agent prompt: optimized for thorough PR review with inline feedback.
2297
2978
  */
@@ -2311,33 +2992,53 @@ const PRESET_TOOLS = {
2311
2992
  "searchCode",
2312
2993
  "listCheckRuns",
2313
2994
  "getCombinedStatus",
2995
+ "updatePullRequest",
2314
2996
  "addPullRequestComment",
2997
+ "updatePullRequestComment",
2998
+ "deletePullRequestComment",
2315
2999
  "createPullRequestReview",
2316
3000
  "requestReviewers"
2317
3001
  ],
2318
3002
  /**
2319
3003
  * **Issue triage** — manage and organize GitHub issues.
2320
3004
  *
2321
- * Tools: `listIssues`, `getIssue`, `getIssueContext`, `createIssue`, `addIssueComment`, `closeIssue`,
2322
- * `listLabels`, `addLabels`, `removeLabel`, `addAssignees`, `removeAssignees`, `getRepository`, `searchRepositories`, `searchCode`.
3005
+ * Tools: `listIssues`, `getIssueContext`, `listIssueComments`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`,
3006
+ * `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`,
3007
+ * `addAssignees`, `removeAssignees`,
3008
+ * `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`,
3009
+ * `searchRepositories`, `searchCode`, `searchIssues`.
2323
3010
  *
3011
+ * Prefer `getIssueContext` (issue + `labelNames` + recent comments) over separate get/list calls.
3012
+ * Use `listIssueComments` to paginate beyond the comments returned by `getIssueContext`.
3013
+ * Reopen a closed issue with `updateIssue` (`state: 'open'`) — there is no separate reopen tool.
3014
+ * Acknowledge a report with `addIssueReaction` / `addCommentReaction` instead of a comment when no reply is needed.
2324
3015
  * Agent prompt: optimized for categorizing, labeling, and responding to issues.
2325
3016
  */
2326
3017
  "issue-triage": [
2327
3018
  "listIssues",
2328
- "getIssue",
2329
3019
  "getIssueContext",
3020
+ "listIssueComments",
2330
3021
  "createIssue",
2331
3022
  "addIssueComment",
3023
+ "updateIssueComment",
3024
+ "deleteIssueComment",
2332
3025
  "closeIssue",
2333
- "listLabels",
3026
+ "updateIssue",
2334
3027
  "addLabels",
2335
3028
  "removeLabel",
3029
+ "createLabel",
3030
+ "updateLabel",
3031
+ "deleteLabel",
2336
3032
  "addAssignees",
2337
3033
  "removeAssignees",
3034
+ "listIssueReactions",
3035
+ "addIssueReaction",
3036
+ "listCommentReactions",
3037
+ "addCommentReaction",
2338
3038
  "getRepository",
2339
3039
  "searchRepositories",
2340
- "searchCode"
3040
+ "searchCode",
3041
+ "searchIssues"
2341
3042
  ],
2342
3043
  /**
2343
3044
  * **CI operations** — monitor and manage GitHub Actions workflows.
@@ -2367,7 +3068,7 @@ const PRESET_TOOLS = {
2367
3068
  /**
2368
3069
  * **Repository explorer** — read-only access to browse codebases.
2369
3070
  *
2370
- * Tools: all read-only tools including repos, branches, PRs, issues, commits, blame, comparisons,
3071
+ * Tools: all read-only tools including repos, branches, PRs, issues, discussions, commits, blame, comparisons,
2371
3072
  * search, gists, workflows, checks, and releases. No write operations.
2372
3073
  *
2373
3074
  * Agent prompt: optimized for answering questions about code structure and history.
@@ -2385,6 +3086,9 @@ const PRESET_TOOLS = {
2385
3086
  "listIssues",
2386
3087
  "getIssue",
2387
3088
  "getIssueContext",
3089
+ "listIssueComments",
3090
+ "listDiscussions",
3091
+ "getDiscussion",
2388
3092
  "listLabels",
2389
3093
  "listCommits",
2390
3094
  "getCommit",
@@ -2392,6 +3096,7 @@ const PRESET_TOOLS = {
2392
3096
  "compareCommits",
2393
3097
  "searchCode",
2394
3098
  "searchRepositories",
3099
+ "searchIssues",
2395
3100
  "listGists",
2396
3101
  "getGist",
2397
3102
  "listGistComments",
@@ -2410,7 +3115,7 @@ const PRESET_TOOLS = {
2410
3115
  /**
2411
3116
  * **Security audit** — review repositories for security risks and report findings.
2412
3117
  *
2413
- * Tools: read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `getCommit`,
3118
+ * Tools: read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `searchIssues`, `listCommits`, `getCommit`,
2414
3119
  * `getBlame`, `compareCommits`), PR and CI visibility (`listPullRequests`, `getPullRequest`, `listPullRequestFiles`,
2415
3120
  * `getPullRequestContext`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `listWorkflows`, `listWorkflowRuns`,
2416
3121
  * `getWorkflowRun`, `listWorkflowJobs`), plus `createIssue`, `addIssueComment`, and `addLabels` to report findings.
@@ -2429,6 +3134,7 @@ const PRESET_TOOLS = {
2429
3134
  "compareCommits",
2430
3135
  "searchCode",
2431
3136
  "searchRepositories",
3137
+ "searchIssues",
2432
3138
  "listPullRequests",
2433
3139
  "getPullRequest",
2434
3140
  "listPullRequestFiles",
@@ -2451,7 +3157,7 @@ const PRESET_TOOLS = {
2451
3157
  * **Release manager** — prepare and publish GitHub releases.
2452
3158
  *
2453
3159
  * Tools: `getRepository`, `listBranches`, `listCommits`, `getCommit`, `compareCommits`,
2454
- * `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext`, `createRelease`,
3160
+ * `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext`, `createRelease`, `updateRelease`, `deleteRelease`,
2455
3161
  * `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `triggerWorkflow`,
2456
3162
  * `listPullRequests`, `getPullRequest`.
2457
3163
  *
@@ -2468,6 +3174,8 @@ const PRESET_TOOLS = {
2468
3174
  "getRelease",
2469
3175
  "getReleaseContext",
2470
3176
  "createRelease",
3177
+ "updateRelease",
3178
+ "deleteRelease",
2471
3179
  "listWorkflows",
2472
3180
  "listWorkflowRuns",
2473
3181
  "getWorkflowRun",
@@ -2477,6 +3185,61 @@ const PRESET_TOOLS = {
2477
3185
  "getPullRequest"
2478
3186
  ],
2479
3187
  /**
3188
+ * **Discussion moderator** — answer and moderate repository Discussions.
3189
+ *
3190
+ * Tools: `listDiscussions`, `getDiscussion`, `addDiscussionComment`,
3191
+ * `getRepository`, `searchIssues`, `getIssueContext`, `addIssueComment`.
3192
+ *
3193
+ * Prefer discussions for Q&A; link related issues with `getIssueContext` / `addIssueComment` when needed.
3194
+ * Agent prompt: optimized for clear, on-topic discussion replies.
3195
+ */
3196
+ "discussion-moderator": [
3197
+ "listDiscussions",
3198
+ "getDiscussion",
3199
+ "addDiscussionComment",
3200
+ "getRepository",
3201
+ "searchIssues",
3202
+ "getIssueContext",
3203
+ "addIssueComment"
3204
+ ],
3205
+ /**
3206
+ * **Notification inbox** — triage authenticated-user notification threads.
3207
+ *
3208
+ * Tools: `listNotifications`, `markNotificationRead`, `getIssue`, `getPullRequest`, `getRepository`.
3209
+ *
3210
+ * Requires a user PAT with the Notifications account permission — not available on Connect installation tokens.
3211
+ * Agent prompt: optimized for clearing inbox noise and following up on actionable threads.
3212
+ */
3213
+ "notification-inbox": [
3214
+ "listNotifications",
3215
+ "markNotificationRead",
3216
+ "getIssue",
3217
+ "getPullRequest",
3218
+ "getRepository"
3219
+ ],
3220
+ /**
3221
+ * **PR author** — open pull requests without the full write surface.
3222
+ *
3223
+ * Tools: `getRepository`, `listBranches`, `getFileContent`, `createBranch`, `createOrUpdateFile`,
3224
+ * `createPullRequest`, `updatePullRequest`, `getPullRequest`, `listPullRequestFiles`,
3225
+ * `compareCommits`, `getCommit`.
3226
+ *
3227
+ * Agent prompt: optimized for branching, editing files, and opening focused PRs.
3228
+ */
3229
+ "pr-author": [
3230
+ "getRepository",
3231
+ "listBranches",
3232
+ "getFileContent",
3233
+ "createBranch",
3234
+ "createOrUpdateFile",
3235
+ "createPullRequest",
3236
+ "updatePullRequest",
3237
+ "getPullRequest",
3238
+ "listPullRequestFiles",
3239
+ "compareCommits",
3240
+ "getCommit"
3241
+ ],
3242
+ /**
2480
3243
  * **Maintainer** — full repository maintenance with all read and write tools.
2481
3244
  *
2482
3245
  * Tools: all tools (same as omitting `preset`).
@@ -2499,26 +3262,46 @@ const PRESET_TOOLS = {
2499
3262
  "getPullRequestContext",
2500
3263
  "createPullRequest",
2501
3264
  "mergePullRequest",
3265
+ "updatePullRequest",
2502
3266
  "addPullRequestComment",
3267
+ "updatePullRequestComment",
3268
+ "deletePullRequestComment",
2503
3269
  "createPullRequestReview",
2504
3270
  "requestReviewers",
2505
3271
  "listIssues",
2506
3272
  "getIssue",
2507
3273
  "getIssueContext",
3274
+ "listIssueComments",
2508
3275
  "createIssue",
2509
3276
  "addIssueComment",
3277
+ "updateIssueComment",
3278
+ "deleteIssueComment",
2510
3279
  "closeIssue",
3280
+ "updateIssue",
2511
3281
  "listLabels",
2512
3282
  "addLabels",
2513
3283
  "removeLabel",
3284
+ "createLabel",
3285
+ "updateLabel",
3286
+ "deleteLabel",
2514
3287
  "addAssignees",
2515
3288
  "removeAssignees",
3289
+ "listIssueReactions",
3290
+ "addIssueReaction",
3291
+ "listCommentReactions",
3292
+ "addCommentReaction",
3293
+ "listDiscussions",
3294
+ "getDiscussion",
3295
+ "addDiscussionComment",
3296
+ "listNotifications",
3297
+ "markNotificationRead",
2516
3298
  "listCommits",
2517
3299
  "getCommit",
2518
3300
  "getBlame",
2519
3301
  "compareCommits",
2520
3302
  "searchCode",
2521
3303
  "searchRepositories",
3304
+ "searchIssues",
2522
3305
  "listGists",
2523
3306
  "getGist",
2524
3307
  "listGistComments",
@@ -2540,7 +3323,9 @@ const PRESET_TOOLS = {
2540
3323
  "getLatestRelease",
2541
3324
  "getRelease",
2542
3325
  "getReleaseContext",
2543
- "createRelease"
3326
+ "createRelease",
3327
+ "updateRelease",
3328
+ "deleteRelease"
2544
3329
  ]
2545
3330
  };
2546
3331
  /**
@@ -2587,8 +3372,14 @@ const GITHUB_TOOL_NAMES = {
2587
3372
  createPullRequest: "createPullRequest",
2588
3373
  /** Merge a pull request. Requires approval by default. */
2589
3374
  mergePullRequest: "mergePullRequest",
3375
+ /** Update a pull request — title, body, state, base branch, or draft status. Requires approval by default. */
3376
+ updatePullRequest: "updatePullRequest",
2590
3377
  /** Add a comment to a pull request. Requires approval by default. */
2591
3378
  addPullRequestComment: "addPullRequestComment",
3379
+ /** Update the body of a comment on a pull request. Requires approval by default. */
3380
+ updatePullRequestComment: "updatePullRequestComment",
3381
+ /** Delete a comment from a pull request permanently. Requires approval by default. */
3382
+ deletePullRequestComment: "deletePullRequestComment",
2592
3383
  /** List files changed in a pull request with status and stats. Patches omitted by default — set includePatch true for diffs. */
2593
3384
  listPullRequestFiles: "listPullRequestFiles",
2594
3385
  /** List reviews on a pull request (approvals, change requests, and comments). */
@@ -2603,28 +3394,44 @@ const GITHUB_TOOL_NAMES = {
2603
3394
  listIssues: "listIssues",
2604
3395
  /** Get detailed information about a specific issue. Body truncated by default (detail: summary). */
2605
3396
  getIssue: "getIssue",
2606
- /** Fetch an issue plus available labels and recent comments in one call. */
3397
+ /** Fetch an issue plus available label names and recent comments in one call. */
2607
3398
  getIssueContext: "getIssueContext",
3399
+ /** List comments on a GitHub issue. Bodies are truncated by default (detail: summary). Prefer getIssueContext for the first page when triaging. */
3400
+ listIssueComments: "listIssueComments",
2608
3401
  /** Create a new issue in a GitHub repository. Requires approval by default. */
2609
3402
  createIssue: "createIssue",
2610
3403
  /** Add a comment to a GitHub issue. Requires approval by default. */
2611
3404
  addIssueComment: "addIssueComment",
3405
+ /** Update the body of a comment on a GitHub issue. Requires approval by default. */
3406
+ updateIssueComment: "updateIssueComment",
3407
+ /** Delete a comment from a GitHub issue permanently. Requires approval by default. */
3408
+ deleteIssueComment: "deleteIssueComment",
2612
3409
  /** Close an open GitHub issue. Requires approval by default. */
2613
3410
  closeIssue: "closeIssue",
3411
+ /** Update a GitHub issue — title, body, state, labels, milestone, or assignees. Requires approval by default. */
3412
+ updateIssue: "updateIssue",
2614
3413
  /** List labels available in a GitHub repository. */
2615
3414
  listLabels: "listLabels",
2616
3415
  /** Add labels to an issue or pull request. Requires approval by default. */
2617
3416
  addLabels: "addLabels",
2618
3417
  /** Remove a label from an issue or pull request. Requires approval by default. */
2619
3418
  removeLabel: "removeLabel",
3419
+ /** Create a label in a GitHub repository. Requires approval by default. */
3420
+ createLabel: "createLabel",
3421
+ /** Update a label in a GitHub repository — name, color, or description. Requires approval by default. */
3422
+ updateLabel: "updateLabel",
3423
+ /** Delete a label from a GitHub repository permanently. Requires approval by default. */
3424
+ deleteLabel: "deleteLabel",
2620
3425
  /** Assign users to an issue or pull request. Requires approval by default. */
2621
3426
  addAssignees: "addAssignees",
2622
3427
  /** Remove assignees from an issue or pull request. Requires approval by default. */
2623
3428
  removeAssignees: "removeAssignees",
2624
- /** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
3429
+ /** 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. */
2625
3430
  searchCode: "searchCode",
2626
3431
  /** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
2627
3432
  searchRepositories: "searchRepositories",
3433
+ /** Search for issues and pull requests across GitHub using search qualifiers like "repo:owner/name is:open". */
3434
+ searchIssues: "searchIssues",
2628
3435
  /** 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. */
2629
3436
  listCommits: "listCommits",
2630
3437
  /** Get detailed information about a specific commit, including the list of files changed. Patches omitted by default. */
@@ -2667,6 +3474,24 @@ const GITHUB_TOOL_NAMES = {
2667
3474
  getCombinedStatus: "getCombinedStatus",
2668
3475
  /** Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call. */
2669
3476
  getCiFailureContext: "getCiFailureContext",
3477
+ /** List discussions in a GitHub repository, most recently updated first, optionally filtered by category. */
3478
+ listDiscussions: "listDiscussions",
3479
+ /** Get a GitHub discussion by number. Body truncated by default (detail: summary). */
3480
+ getDiscussion: "getDiscussion",
3481
+ /** Add a comment to a GitHub discussion. Requires approval by default. */
3482
+ addDiscussionComment: "addDiscussionComment",
3483
+ /** List notification threads for the authenticated user. Requires a token with notifications access. */
3484
+ listNotifications: "listNotifications",
3485
+ /** Mark a single notification thread as read. Requires approval by default. */
3486
+ markNotificationRead: "markNotificationRead",
3487
+ /** List reactions on an issue or pull request conversation, with per-emoji counts. */
3488
+ listIssueReactions: "listIssueReactions",
3489
+ /** React to an issue or pull request with an emoji. Requires approval by default. */
3490
+ addIssueReaction: "addIssueReaction",
3491
+ /** List reactions on an issue or pull request comment, with per-emoji counts. */
3492
+ listCommentReactions: "listCommentReactions",
3493
+ /** React to an issue or pull request comment with an emoji. Requires approval by default. */
3494
+ addCommentReaction: "addCommentReaction",
2670
3495
  /** List releases for a GitHub repository, newest first (includes drafts and prereleases). */
2671
3496
  listReleases: "listReleases",
2672
3497
  /** Get the latest published release for a GitHub repository (excludes drafts and prereleases). Body truncated by default. */
@@ -2676,7 +3501,11 @@ const GITHUB_TOOL_NAMES = {
2676
3501
  /** Fetch a release plus the previous release and tag comparison in one call. */
2677
3502
  getReleaseContext: "getReleaseContext",
2678
3503
  /** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
2679
- createRelease: "createRelease"
3504
+ createRelease: "createRelease",
3505
+ /** Update an existing release — tag, target, title, notes, draft, or prerelease status. Requires approval by default. */
3506
+ updateRelease: "updateRelease",
3507
+ /** Delete a release permanently. Requires approval by default. */
3508
+ deleteRelease: "deleteRelease"
2680
3509
  };
2681
3510
  const ALL_GITHUB_TOOL_NAMES = Object.values(GITHUB_TOOL_NAMES);
2682
3511
  //#endregion
@@ -2698,8 +3527,14 @@ const GITHUB_WRITE_TOOLS = {
2698
3527
  createPullRequest: "createPullRequest",
2699
3528
  /** Merge a pull request. Requires approval by default. */
2700
3529
  mergePullRequest: "mergePullRequest",
3530
+ /** Update a pull request. Requires approval by default. */
3531
+ updatePullRequest: "updatePullRequest",
2701
3532
  /** Add a comment to a pull request. Requires approval by default. */
2702
3533
  addPullRequestComment: "addPullRequestComment",
3534
+ /** Update a pull request comment. Requires approval by default. */
3535
+ updatePullRequestComment: "updatePullRequestComment",
3536
+ /** Delete a pull request comment. Requires approval by default. */
3537
+ deletePullRequestComment: "deletePullRequestComment",
2703
3538
  /** Submit a pull request review with optional inline comments. Requires approval by default. */
2704
3539
  createPullRequestReview: "createPullRequestReview",
2705
3540
  /** Request reviews from users or teams on a pull request. Requires approval by default. */
@@ -2708,12 +3543,24 @@ const GITHUB_WRITE_TOOLS = {
2708
3543
  createIssue: "createIssue",
2709
3544
  /** Add a comment to a GitHub issue. Requires approval by default. */
2710
3545
  addIssueComment: "addIssueComment",
3546
+ /** Update a GitHub issue comment. Requires approval by default. */
3547
+ updateIssueComment: "updateIssueComment",
3548
+ /** Delete a GitHub issue comment. Requires approval by default. */
3549
+ deleteIssueComment: "deleteIssueComment",
2711
3550
  /** Close an open GitHub issue. Requires approval by default. */
2712
3551
  closeIssue: "closeIssue",
3552
+ /** Update a GitHub issue. Requires approval by default. */
3553
+ updateIssue: "updateIssue",
2713
3554
  /** Add labels to an issue or pull request. Requires approval by default. */
2714
3555
  addLabels: "addLabels",
2715
3556
  /** Remove a label from an issue or pull request. Requires approval by default. */
2716
3557
  removeLabel: "removeLabel",
3558
+ /** Create a label in a GitHub repository. Requires approval by default. */
3559
+ createLabel: "createLabel",
3560
+ /** Update a label in a GitHub repository. Requires approval by default. */
3561
+ updateLabel: "updateLabel",
3562
+ /** Delete a label from a GitHub repository permanently. Requires approval by default. */
3563
+ deleteLabel: "deleteLabel",
2717
3564
  /** Assign users to an issue or pull request. Requires approval by default. */
2718
3565
  addAssignees: "addAssignees",
2719
3566
  /** Remove assignees from an issue or pull request. Requires approval by default. */
@@ -2726,6 +3573,14 @@ const GITHUB_WRITE_TOOLS = {
2726
3573
  deleteGist: "deleteGist",
2727
3574
  /** Add a comment to a gist. Requires approval by default. */
2728
3575
  createGistComment: "createGistComment",
3576
+ /** Add a comment to a GitHub discussion. Requires approval by default. */
3577
+ addDiscussionComment: "addDiscussionComment",
3578
+ /** Mark a single notification thread as read. Requires approval by default. */
3579
+ markNotificationRead: "markNotificationRead",
3580
+ /** React to an issue or pull request with an emoji. Requires approval by default. */
3581
+ addIssueReaction: "addIssueReaction",
3582
+ /** React to an issue or pull request comment with an emoji. Requires approval by default. */
3583
+ addCommentReaction: "addCommentReaction",
2729
3584
  /** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
2730
3585
  triggerWorkflow: "triggerWorkflow",
2731
3586
  /** Cancel an in-progress workflow run. Requires approval by default. */
@@ -2733,10 +3588,14 @@ const GITHUB_WRITE_TOOLS = {
2733
3588
  /** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
2734
3589
  rerunWorkflowRun: "rerunWorkflowRun",
2735
3590
  /** Create a new release (and its tag if needed) in a GitHub repository. Requires approval by default. */
2736
- createRelease: "createRelease"
3591
+ createRelease: "createRelease",
3592
+ /** Update an existing release. Requires approval by default. */
3593
+ updateRelease: "updateRelease",
3594
+ /** Delete a release permanently. Requires approval by default. */
3595
+ deleteRelease: "deleteRelease"
2737
3596
  };
2738
3597
  Object.values(GITHUB_WRITE_TOOLS);
2739
3598
  //#endregion
2740
- export { listWorkflowsDescription as $, getFileContentToModelOutput as $n, addLabelsDescription as $t, getReleaseInputSchema as A, createPullRequestReviewInputSchema as An, compareCommitsInputSchema as At, cancelWorkflowRunCore as B, listPullRequestsCore as Bn, searchCodeCore as Bt, createReleaseDescription as C, addPullRequestCommentDescription as Cn, listBranchesCore as Cr, listGistsDescription as Ct, getLatestReleaseInputSchema as D, createPullRequestInputSchema as Dn, updateGistInputSchema as Dt, getLatestReleaseDescription as E, createPullRequestDescription as En, createOctokit as Er, updateGistDescription as Et, getCombinedStatusDescription as F, listPullRequestFilesDescription as Fn, getCommitDescription as Ft, getWorkflowRunInputSchema as G, mergePullRequestInputSchema as Gn, searchRepositoriesInputSchema as Gt, cancelWorkflowRunInputSchema as H, listPullRequestsInputSchema as Hn, searchCodeInputSchema as Ht, getCombinedStatusInputSchema as I, listPullRequestFilesInputSchema as In, getCommitInputSchema as It, listWorkflowJobsInputSchema as J, requestReviewersInputSchema as Jn, addAssigneesInputSchema as Jt, listWorkflowJobsCore as K, requestReviewersCore as Kn, addAssigneesCore as Kt, listCheckRunsCore as L, listPullRequestReviewsCore as Ln, listCommitsCore as Lt, listReleasesDescription as M, getPullRequestDescription as Mn, getBlameDescription as Mt, listReleasesInputSchema as N, getPullRequestInputSchema as Nn, getBlameInputSchema as Nt, getReleaseCore as O, createPullRequestReviewCore as On, compareCommitsCore as Ot, getCombinedStatusCore as P, listPullRequestFilesCore as Pn, getCommitCore as Pt, listWorkflowsCore as Q, getCommitToModelOutput as Qn, addLabelsCore as Qt, listCheckRunsDescription as R, listPullRequestReviewsDescription as Rn, listCommitsDescription as Rt, createReleaseCore as S, addPullRequestCommentCore as Sn, getRepositoryTreeInputSchema as Sr, listGistsCore as St, getLatestReleaseCore as T, createPullRequestCore as Tn, listBranchesInputSchema as Tr, updateGistCore as Tt, getWorkflowRunCore as U, mergePullRequestCore as Un, searchRepositoriesCore as Ut, cancelWorkflowRunDescription as V, listPullRequestsDescription as Vn, searchCodeDescription as Vt, getWorkflowRunDescription as W, mergePullRequestDescription as Wn, searchRepositoriesDescription as Wt, listWorkflowRunsDescription as X, resolveGithubToken as Xn, addIssueCommentDescription as Xt, listWorkflowRunsCore as Y, createGithubTokenResolver as Yn, addIssueCommentCore as Yt, listWorkflowRunsInputSchema as Z, compareCommitsToModelOutput as Zn, addIssueCommentInputSchema as Zt, getPullRequestContextDescription as _, removeAssigneesDescription as _n, getRepositoryCore as _r, getGistDescription as _t, resolvePresetTools as a, createIssueDescription as an, createOrUpdateFileCore as ar, triggerWorkflowDescription as at, getReleaseContextDescription as b, removeLabelDescription as bn, getRepositoryTreeCore as br, listGistCommentsDescription as bt, mergeContextArgs as c, getIssueDescription as cn, createRepositoryCore as cr, createGistCommentDescription as ct, getCiFailureContextDescription as d, listIssuesDescription as dn, forkRepositoryCore as dr, createGistDescription as dt, addLabelsInputSchema as en, getPullRequestContextToModelOutput as er, listWorkflowsInputSchema as et, getCiFailureContextInputSchema as f, listIssuesInputSchema as fn, forkRepositoryDescription as fr, createGistInputSchema as ft, getPullRequestContextCore as g, removeAssigneesCore as gn, getFileContentInputSchema as gr, getGistCore as gt, getIssueContextInputSchema as h, listLabelsInputSchema as hn, getFileContentDescription as hr, deleteGistInputSchema as ht, PRESET_TOOLS as i, createIssueCore as in, createBranchInputSchema as ir, triggerWorkflowCore as it, listReleasesCore as j, getPullRequestCore as jn, getBlameCore as jt, getReleaseDescription as k, createPullRequestReviewDescription as kn, compareCommitsDescription as kt, softenContextSchema as l, getIssueInputSchema as ln, createRepositoryDescription as lr, createGistCommentInputSchema as lt, getIssueContextDescription as m, listLabelsDescription as mn, getFileContentCore as mr, deleteGistDescription as mt, ALL_GITHUB_TOOL_NAMES as n, closeIssueDescription as nn, createBranchCore as nr, rerunWorkflowRunDescription as nt, bindToolsContext as o, createIssueInputSchema as on, createOrUpdateFileDescription as or, triggerWorkflowInputSchema as ot, getIssueContextCore as p, listLabelsCore as pn, forkRepositoryInputSchema as pr, deleteGistCore as pt, listWorkflowJobsDescription as q, requestReviewersDescription as qn, addAssigneesDescription as qt, GITHUB_TOOL_NAMES as r, closeIssueInputSchema as rn, createBranchDescription as rr, rerunWorkflowRunInputSchema as rt, formatContextInstructions as s, getIssueCore as sn, createOrUpdateFileInputSchema as sr, createGistCommentCore as st, GITHUB_WRITE_TOOLS as t, closeIssueCore as tn, listPullRequestFilesToModelOutput as tr, rerunWorkflowRunCore as tt, getCiFailureContextCore as u, listIssuesCore as un, createRepositoryInputSchema as ur, createGistCore as ut, getPullRequestContextInputSchema as v, removeAssigneesInputSchema as vn, getRepositoryDescription as vr, getGistInputSchema as vt, createReleaseInputSchema as w, addPullRequestCommentInputSchema as wn, listBranchesDescription as wr, listGistsInputSchema as wt, getReleaseContextInputSchema as x, removeLabelInputSchema as xn, getRepositoryTreeDescription as xr, listGistCommentsInputSchema as xt, getReleaseContextCore as y, removeLabelCore as yn, getRepositoryInputSchema as yr, listGistCommentsCore as yt, listCheckRunsInputSchema as z, listPullRequestReviewsInputSchema as zn, listCommitsInputSchema as zt };
3599
+ 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, closeIssueInputSchema as zn, getPullRequestInputSchema as zr, getBlameInputSchema as zt };
2741
3600
 
2742
- //# sourceMappingURL=write-tools-cg_ialNd.mjs.map
3601
+ //# sourceMappingURL=write-tools-Dk32V9Hl.mjs.map