@github-tools/sdk 1.19.0 → 1.20.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 (63) hide show
  1. package/README.md +60 -26
  2. package/dist/approval-policy--kByBqhT.mjs +17 -0
  3. package/dist/approval-policy--kByBqhT.mjs.map +1 -0
  4. package/dist/connect/eve.d.mts +2 -2
  5. package/dist/connect/eve.d.mts.map +1 -1
  6. package/dist/connect/eve.mjs +1 -1
  7. package/dist/connect.d.mts +15 -24
  8. package/dist/connect.d.mts.map +1 -1
  9. package/dist/connect.mjs +2 -2
  10. package/dist/{cores-BeLZwcde.mjs → cores-FLzAv2tu.mjs} +23 -2
  11. package/dist/cores-FLzAv2tu.mjs.map +1 -0
  12. package/dist/evaluation-BtoHbxuQ.mjs +311 -0
  13. package/dist/evaluation-BtoHbxuQ.mjs.map +1 -0
  14. package/dist/{eve-runtime-YTxfrWP-.mjs → eve-runtime-C-0doyHq.mjs} +13 -7
  15. package/dist/eve-runtime-C-0doyHq.mjs.map +1 -0
  16. package/dist/{eve-runtime-DRh2QJI7.d.mts → eve-runtime-CflZNuXD.d.mts} +6 -6
  17. package/dist/{eve-runtime-DRh2QJI7.d.mts.map → eve-runtime-CflZNuXD.d.mts.map} +1 -1
  18. package/dist/eve-runtime.d.mts +5 -5
  19. package/dist/eve-runtime.mjs +4 -4
  20. package/dist/eve.d.mts +53 -4
  21. package/dist/eve.d.mts.map +1 -1
  22. package/dist/eve.mjs +52 -3
  23. package/dist/eve.mjs.map +1 -1
  24. package/dist/{index-DkZvveZP.d.mts → index-C3wlz660.d.mts} +91 -347
  25. package/dist/index-C3wlz660.d.mts.map +1 -0
  26. package/dist/index.d.mts +3 -3
  27. package/dist/index.mjs +4 -3
  28. package/dist/{interrupts-C_lUXMdd.d.mts → interrupts-BSDPwdJ2.d.mts} +2 -2
  29. package/dist/interrupts-BSDPwdJ2.d.mts.map +1 -0
  30. package/dist/{src-Bx5p1Unc.mjs → src-DyiAVHKl.mjs} +338 -15
  31. package/dist/src-DyiAVHKl.mjs.map +1 -0
  32. package/dist/tanstack/interrupts.d.mts +1 -1
  33. package/dist/tanstack.d.mts +1214 -56
  34. package/dist/tanstack.d.mts.map +1 -1
  35. package/dist/tanstack.mjs +26 -13
  36. package/dist/tanstack.mjs.map +1 -1
  37. package/dist/{token-Bh8nPj66.mjs → token-DIwB-wtp.mjs} +35 -116
  38. package/dist/token-DIwB-wtp.mjs.map +1 -0
  39. package/dist/{tool-types-CrC80SIL.d.mts → tool-types-OFyE3z0C.d.mts} +283 -54
  40. package/dist/tool-types-OFyE3z0C.d.mts.map +1 -0
  41. package/dist/{types-BmwOpI5-.d.mts → types-CJqhvQwi.d.mts} +3 -3
  42. package/dist/{types-BmwOpI5-.d.mts.map → types-CJqhvQwi.d.mts.map} +1 -1
  43. package/dist/{types-CPAsEMzx.d.mts → types-ITYfXMtY.d.mts} +2 -2
  44. package/dist/{types-CPAsEMzx.d.mts.map → types-ITYfXMtY.d.mts.map} +1 -1
  45. package/dist/workflow.d.mts +34 -40
  46. package/dist/workflow.d.mts.map +1 -1
  47. package/dist/workflow.mjs +17 -46
  48. package/dist/workflow.mjs.map +1 -1
  49. package/dist/{write-tools-BaoTUCg7.mjs → write-tools-DnGZw-RD.mjs} +941 -112
  50. package/dist/write-tools-DnGZw-RD.mjs.map +1 -0
  51. package/package.json +4 -6
  52. package/dist/cores-BeLZwcde.mjs.map +0 -1
  53. package/dist/evaluation-f-2QwBid.mjs +0 -210
  54. package/dist/evaluation-f-2QwBid.mjs.map +0 -1
  55. package/dist/eve-runtime-YTxfrWP-.mjs.map +0 -1
  56. package/dist/index-DkZvveZP.d.mts.map +0 -1
  57. package/dist/instructions-BuypoY0x.mjs +0 -148
  58. package/dist/instructions-BuypoY0x.mjs.map +0 -1
  59. package/dist/interrupts-C_lUXMdd.d.mts.map +0 -1
  60. package/dist/src-Bx5p1Unc.mjs.map +0 -1
  61. package/dist/token-Bh8nPj66.mjs.map +0 -1
  62. package/dist/tool-types-CrC80SIL.d.mts.map +0 -1
  63. package/dist/write-tools-BaoTUCg7.mjs.map +0 -1
package/README.md CHANGED
@@ -34,7 +34,7 @@ They all reach the GitHub API, but none of them were built as an agent's tool la
34
34
  | Production agents that must survive restarts and timeouts | [Durable Agents](#durable-agents-vercel-workflow-sdk) |
35
35
  | A GitHub, Slack, or Discord bot | [Chat SDK docs](https://github-tools.com/frameworks/chat-sdk) |
36
36
 
37
- 84 tools cover repositories, branches, pull requests, issues, reactions, discussions, notifications, commits, releases, checks and statuses, search, gists, and workflows. See the full [Tools Catalog](https://github-tools.com/api/tools-catalog). Write operations support granular approval control out of the box.
37
+ 91 tools cover repositories, branches, pull requests, issues, reactions, discussions, notifications, commits, releases, checks and statuses, search, gists, and workflows. See the full [Tools Catalog](https://github-tools.com/api/tools-catalog). Write operations support granular approval control out of the box.
38
38
 
39
39
  ## Installation
40
40
 
@@ -103,20 +103,20 @@ createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
103
103
 
104
104
  | Preset | Tools included |
105
105
  |---|---|
106
- | `code-review` | `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `listPullRequestReviewThreads`, `getPullRequestContext`, `getFileContent`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `getRepository`, `listBranches`, `searchCode`, `listCheckRuns`, `getCombinedStatus`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers` |
107
- | `issue-triage` | `listIssues`, `getIssueContext`, `listIssueComments`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`, `searchRepositories`, `searchCode`, `searchIssues` |
106
+ | `code-review` | `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `listPullRequestReviewThreads`, `getPullRequestContext`, `getCommit`, `getBlame`, `compareCommits`, `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getBranchRules`, `listCheckRuns`, `getCombinedStatus`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers` |
107
+ | `issue-triage` | `listIssues`, `getIssueContext`, `listIssueComments`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `searchRepositories`, `searchIssues`, `getPullRequest` |
108
108
  | `repo-explorer` | All read-only tools including discussions, gists, workflows, checks/statuses, and releases (no write operations) |
109
- | `ci-ops` | `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `getWorkflowJobLogs`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`, `getRepository`, `listBranches`, `listCommits`, `getCommit` |
110
- | `security-audit` | Read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`), PR and CI visibility (including `getWorkflowJobLogs`), plus `createIssue`, `addIssueComment`, `addLabels` to report findings (no destructive writes) |
111
- | `release-manager` | `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext`, `createRelease`, `updateRelease`, `deleteRelease`, `compareCommits`, `listCommits`, `getCommit`, `listWorkflowRuns`, `getWorkflowRun`, `listPullRequests`, `getPullRequest`, `getRepository`, `listBranches` |
112
- | `discussion-moderator` | `listDiscussions`, `getDiscussion`, `addDiscussionComment`, `getRepository`, `searchIssues`, `getIssueContext`, `addIssueComment` |
113
- | `notification-inbox` | `listNotifications`, `markNotificationRead`, `getIssue`, `getPullRequest`, `getRepository` (requires a Notifications PAT) |
114
- | `pr-author` | `getRepository`, `listBranches`, `getFileContent`, `createBranch`, `deleteBranch`, `createOrUpdateFile`, `createPullRequest`, `updatePullRequest`, `getPullRequest`, `listPullRequestFiles`, `listPullRequestReviewThreads`, `replyToReviewComment`, `resolveReviewThread`, `compareCommits`, `getCommit` |
115
- | `maintainer` | All 84 tools |
109
+ | `ci-ops` | `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getBranchRules`, `getCommit`, `getPullRequest`, `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `getWorkflowJobLogs`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun` |
110
+ | `security-audit` | Read-only exploration (`getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`), PR and CI visibility (including `getWorkflowJobLogs`), the repository's code scanning, Dependabot and secret scanning alerts, plus `createIssue`, `addIssueComment`, `addLabels` to report findings (no destructive writes) |
111
+ | `release-manager` | `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getCommit`, `compareCommits`, `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext`, `createRelease`, `updateRelease`, `deleteRelease`, `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `triggerWorkflow`, `getCombinedStatus`, `getCiFailureContext`, `listPullRequests`, `getPullRequest` |
112
+ | `discussion-moderator` | `listDiscussions`, `getDiscussion`, `addDiscussionComment`, `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `searchIssues`, `getIssueContext`, `addIssueComment` |
113
+ | `notification-inbox` | `listNotifications`, `markNotificationRead`, `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `getIssue`, `getIssueContext`, `getPullRequest`, `getDiscussion` (requires a Notifications PAT) |
114
+ | `pr-author` | `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getBranchRules`, `createBranch`, `deleteBranch`, `createOrUpdateFile`, `editFiles`, `createPullRequest`, `updatePullRequest`, `listPullRequests`, `getPullRequest`, `listPullRequestFiles`, `listPullRequestReviewThreads`, `replyToReviewComment`, `resolveReviewThread`, `compareCommits`, `getCommit` |
115
+ | `maintainer` | All 91 tools |
116
116
 
117
117
  Start with the smallest preset that fits. Use `maintainer` or omit `preset` when you need the full catalog. Full breakdown: [Tools Catalog](https://github-tools.com/api/tools-catalog).
118
118
 
119
- For an agent that handles open-ended requests, `createGithubAgent({ model, preset: 'auto' })` picks presets per call from the latest user message. It narrows the tools the model sees to at most two presets and uses the matching system prompt. When no preset clearly matches, it uses the most likely one, and read-only `repo-explorer` when nothing stands out, so the full catalog is never exposed. This needs `ai` 7.0.105 or later.
119
+ For an agent that handles open-ended requests, `createGithubAgent({ model, preset: 'auto' })` asks a fast evaluation model which tools the conversation's first request needs. It lists those and the core read tools for the whole conversation, and adds a `callGithubTool` tool the model can use to call any other GitHub tool without changing the tool list, so the provider's prompt cache holds. `evaluation: { selection: 'presets' }` routes each request to at most two presets instead and uses their system prompts. This needs `ai` 7.0.105 or later.
120
120
 
121
121
  ### Cherry-Picking Tools
122
122
 
@@ -137,7 +137,7 @@ Each tool factory accepts a `token` string. Tools use named module-level step fu
137
137
 
138
138
  ## Approval Control
139
139
 
140
- Write operations (creating issues, merging PRs, pushing files, …) require user approval by default. This is designed for human-in-the-loop agent workflows.
140
+ Write operations (creating issues, merging PRs, pushing files, …) require user approval by default. This is designed for human-in-the-loop agent workflows. When the client sends the conversation back on each request, as with `useChat`, also pass `experimental_toolApprovalSecret` so a client can't forge an approval: see [Sign approvals](https://github-tools.com/guide/approval-control#sign-approvals).
141
141
 
142
142
  ```ts
143
143
  // All writes need approval (default)
@@ -164,7 +164,7 @@ createGithubTools({
164
164
  })
165
165
  ```
166
166
 
167
- Write tools: `createBranch`, `deleteBranch`, `forkRepository`, `createRepository`, `createOrUpdateFile`, `createPullRequest`, `mergePullRequest`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `addIssueReaction`, `addCommentReaction`, `addDiscussionComment`, `markNotificationRead`, `createGist`, `updateGist`, `deleteGist`, `createGistComment`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`, `createRelease`, `updateRelease`, `deleteRelease`.
167
+ Write tools: `createBranch`, `deleteBranch`, `forkRepository`, `createRepository`, `createOrUpdateFile`, `editFiles`, `createPullRequest`, `mergePullRequest`, `enablePullRequestAutoMerge`, `disablePullRequestAutoMerge`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `addIssueReaction`, `addCommentReaction`, `addDiscussionComment`, `markNotificationRead`, `createGist`, `updateGist`, `deleteGist`, `createGistComment`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`, `createRelease`, `updateRelease`, `deleteRelease`.
168
168
 
169
169
  All other tools are read-only and never require approval.
170
170
 
@@ -216,7 +216,7 @@ In the eve extension, a failing tool returns `{ error: { code, message, why, fix
216
216
 
217
217
  ## Commit Attribution
218
218
 
219
- Control how commits are attributed when using `createOrUpdateFile` or `mergePullRequest`:
219
+ Control how commits are attributed when using `createOrUpdateFile`, `editFiles` or `mergePullRequest`:
220
220
 
221
221
  ```ts
222
222
  import { createGithubTools } from '@github-tools/sdk'
@@ -483,6 +483,7 @@ eve replays completed steps but re-runs steps interrupted mid-execution. Write t
483
483
  | Tool | Idempotency |
484
484
  |---|---|
485
485
  | `createOrUpdateFile` | Natural when content + `sha` unchanged (skips no-op updates) |
486
+ | `editFiles` | Not idempotent: a re-run whose `find` text was already replaced fails with "not found" instead of committing twice |
486
487
  | `closeIssue` | Natural when already closed |
487
488
  | `createBranch` | Natural when branch exists at same SHA |
488
489
  | `removeAssignees` | Natural: removing an assignee that isn't assigned is a no-op on GitHub |
@@ -523,6 +524,7 @@ List tools return `{ items, hasMore, page, perPage, nextPage? }` (or add those f
523
524
  |---|---|
524
525
  | `getRepository` | Get repository metadata (stars, language, default branch, …) |
525
526
  | `listBranches` | List branches (`hasMore` / `nextPage` when there are more) |
527
+ | `getBranchRules` | List a branch's required checks, required reviews and other protection rules |
526
528
  | `getFileContent` | Read a file or directory listing (prefer `startLine`/`endLine` or `maxLines` for large files) |
527
529
  | `getRepositoryTree` | List the file and directory structure at a given ref (prefer a `path` prefix over `recursive: true`) |
528
530
  | `createBranch` | Create a new branch from an existing branch or commit SHA |
@@ -530,6 +532,7 @@ List tools return `{ items, hasMore, page, perPage, nextPage? }` (or add those f
530
532
  | `forkRepository` | Fork a repository to a user or organization |
531
533
  | `createRepository` | Create a new repository for a user or organization |
532
534
  | `createOrUpdateFile` | Create or update a file and commit it |
535
+ | `editFiles` | Edit files in one commit by exact text replacement or whole contents, create the branch if needed, and optionally open a pull request |
533
536
 
534
537
  ### Pull Requests
535
538
 
@@ -540,14 +543,16 @@ List tools return `{ items, hasMore, page, perPage, nextPage? }` (or add those f
540
543
  | `listPullRequestFiles` | List files changed in a PR (patches omitted by default; set `includePatch` / `filenames` for diffs) |
541
544
  | `listPullRequestReviews` | List reviews on a PR (approvals, change requests, comments) |
542
545
  | `listPullRequestReviewThreads` | List review threads with comments, resolution state, and reply/resolve IDs (unresolved only by default) |
543
- | `getPullRequestContext` | Fetch PR details plus files, reviews, and optional CI checks in one call |
546
+ | `getPullRequestContext` | Fetch PR details plus files, reviews, optional CI checks, and optionally the issues it closes, in one call |
544
547
  | `createPullRequest` | Open a new PR |
545
548
  | `mergePullRequest` | Merge a PR (merge, squash, or rebase) |
549
+ | `enablePullRequestAutoMerge` | Merge a PR automatically once its required checks and reviews pass |
550
+ | `disablePullRequestAutoMerge` | Cancel a pending auto-merge |
546
551
  | `updatePullRequest` | Update a PR's title, body, state, base branch, or draft status |
547
552
  | `addPullRequestComment` | Post a comment on a PR |
548
553
  | `updatePullRequestComment` | Edit the body of a PR comment |
549
554
  | `deletePullRequestComment` | Permanently delete a PR comment |
550
- | `createPullRequestReview` | Submit a formal review (approve, request changes, or comment) with inline comments |
555
+ | `createPullRequestReview` | Submit a formal review (approve, request changes, or comment) with inline comments on a line or a range of lines, including suggested changes |
551
556
  | `replyToReviewComment` | Reply to a review comment in its thread |
552
557
  | `resolveReviewThread` | Mark a review thread as resolved |
553
558
  | `requestReviewers` | Request reviews from users or teams on a PR |
@@ -632,7 +637,7 @@ Pull request conversations share the issue numbering, so the issue-level tools w
632
637
  |---|---|
633
638
  | `listCheckRuns` | List check runs (Checks API: GitHub Actions and other CI providers) for a commit, branch, or tag |
634
639
  | `getCombinedStatus` | Get the combined commit status (Statuses API: legacy CI integrations) for a commit, branch, or tag |
635
- | `getCiFailureContext` | Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call |
640
+ | `getCiFailureContext` | Diagnose CI failures for a ref or one workflow run: failing checks, failed jobs and steps, and the end of each failed job's log, in one call |
636
641
 
637
642
  ### Releases
638
643
 
@@ -640,8 +645,8 @@ Pull request conversations share the issue numbering, so the issue-level tools w
640
645
  |---|---|
641
646
  | `listReleases` | List releases, newest first (includes drafts and prereleases) |
642
647
  | `getLatestRelease` | Get the latest published release (body truncated by default; set `detail: full` for complete notes) |
643
- | `getRelease` | Get a specific release by ID, including its assets |
644
- | `getReleaseContext` | Fetch a release plus the previous release and tag comparison in one call |
648
+ | `getRelease` | Get a specific release by ID or tag, including its assets |
649
+ | `getReleaseContext` | Fetch a release (latest, by ID, or by tag) plus the release before it and their tag comparison in one call |
645
650
  | `createRelease` | Create a new release (and its tag if needed) |
646
651
  | `updateRelease` | Update a release's tag, target, title, notes, draft, or prerelease status |
647
652
  | `deleteRelease` | Permanently delete a release (does not delete the underlying git tag) |
@@ -663,6 +668,14 @@ Pull request conversations share the issue numbering, so the issue-level tools w
663
668
  | `searchRepositories` | Search repositories by keyword, topic, language, stars, … |
664
669
  | `searchIssues` | Search issues and pull requests using qualifiers like `is:open`, `type:pr`, or `label:bug` |
665
670
 
671
+ ### Security alerts
672
+
673
+ | Tool | Description |
674
+ |---|---|
675
+ | `listCodeScanningAlerts` | List code scanning alerts with the rule, severity and location |
676
+ | `listDependabotAlerts` | List Dependabot alerts with the advisory and first patched version (cursor pages: pass `nextCursor` as `after`) |
677
+ | `listSecretScanningAlerts` | List secret scanning alerts; the secret itself is never returned |
678
+
666
679
  ## GitHub Token
667
680
 
668
681
  All tools authenticate with a GitHub personal access token (PAT).
@@ -674,11 +687,11 @@ Create one at **GitHub → Settings → Developer settings → Personal access t
674
687
  | Permission | Level | Required for |
675
688
  |---|---|---|
676
689
  | **Metadata** | Read-only | Always required (auto-included) |
677
- | **Contents** | Read-only | `getRepository`, `listBranches`, `getFileContent`, `getRepositoryTree`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext` |
678
- | **Contents** | Read and write | `createBranch`, `deleteBranch`, `createOrUpdateFile`, `createRelease`, `updateRelease`, `deleteRelease` |
690
+ | **Contents** | Read-only | `getRepository`, `listBranches`, `getBranchRules`, `getFileContent`, `getRepositoryTree`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext` |
691
+ | **Contents** | Read and write | `createBranch`, `deleteBranch`, `createOrUpdateFile`, `editFiles`, `createRelease`, `updateRelease`, `deleteRelease` |
679
692
  | **Administration** | Read and write | `forkRepository`, `createRepository` |
680
693
  | **Pull requests** | Read-only | `listPullRequests`, `getPullRequest`, `listPullRequestFiles`, `listPullRequestReviews`, `listPullRequestReviewThreads`, `getPullRequestContext` |
681
- | **Pull requests** | Read and write | `createPullRequest`, `mergePullRequest`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers` |
694
+ | **Pull requests** | Read and write | `createPullRequest`, `editFiles` (with `pullRequest`), `mergePullRequest`, `enablePullRequestAutoMerge`, `disablePullRequestAutoMerge`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers` |
682
695
  | **Issues** | Read-only | `listIssues`, `getIssue`, `getIssueContext`, `listIssueComments`, `listLabels`, `listIssueReactions`, `listCommentReactions` |
683
696
  | **Issues** | Read and write | `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `addIssueReaction`, `addCommentReaction` |
684
697
  | **Discussions** | Read-only | `listDiscussions`, `getDiscussion` |
@@ -690,6 +703,9 @@ Create one at **GitHub → Settings → Developer settings → Personal access t
690
703
  | **Actions** | Read and write | `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun` |
691
704
  | **Checks** | Read-only | `listCheckRuns`, `getCiFailureContext` |
692
705
  | **Commit statuses** | Read-only | `getCombinedStatus`, `getCiFailureContext` |
706
+ | **Code scanning alerts** | Read-only | `listCodeScanningAlerts` |
707
+ | **Dependabot alerts** | Read-only | `listDependabotAlerts` |
708
+ | **Secret scanning alerts** | Read-only | `listSecretScanningAlerts` |
693
709
 
694
710
  Search tools (`searchCode`, `searchRepositories`, `searchIssues`) work with any token.
695
711
 
@@ -698,7 +714,8 @@ Search tools (`searchCode`, `searchRepositories`, `searchIssues`) work with any
698
714
  | Scope | Required for |
699
715
  |---|---|
700
716
  | `public_repo` | All tools on public repositories |
701
- | `repo` | All tools on public and private repositories |
717
+ | `repo` | All tools on public and private repositories, except the security alert tools |
718
+ | `security_events` | `listCodeScanningAlerts`, `listDependabotAlerts`, `listSecretScanningAlerts` |
702
719
 
703
720
  ## API
704
721
 
@@ -758,7 +775,7 @@ const custom = createGithubAgent({
758
775
 
759
776
  // Use the agent
760
777
  const result = await reviewer.generate({ prompt: 'Review this PR' })
761
- const stream = reviewer.stream({ prompt: 'Review this PR' })
778
+ const stream = await reviewer.stream({ prompt: 'Review this PR' })
762
779
  ```
763
780
 
764
781
  | Option | Description |
@@ -805,7 +822,24 @@ async function chatWorkflow(messages: ModelMessage[], token: string) {
805
822
  }
806
823
  ```
807
824
 
808
- #### Non-streaming (bot / background job, needs `"use step"`)
825
+ #### Non-streaming (bot / background job)
826
+
827
+ Call `.generate()` from the workflow function. Each model call and tool call is its own durable step. It needs `@ai-sdk/workflow` 2.0.59 or later. Return plain fields, since the result itself isn't serializable:
828
+
829
+ ```ts
830
+ // review.workflow.ts
831
+ import { createDurableGithubAgent } from '@github-tools/sdk/workflow'
832
+ import type { ModelMessage } from 'ai'
833
+
834
+ async function reviewWorkflow(messages: ModelMessage[], token: string) {
835
+ "use workflow"
836
+ const agent = createDurableGithubAgent({ model: 'anthropic/claude-opus-5.5', token, preset: 'code-review' })
837
+ const result = await agent.generate({ messages })
838
+ return { text: result.text, responseMessages: result.responseMessages }
839
+ }
840
+ ```
841
+
842
+ To run the whole loop as one step instead, call `createGithubAgent` inside a `"use step"` function:
809
843
 
810
844
  ```ts
811
845
  // agent-turn.step.ts
@@ -825,7 +859,7 @@ async function agentTurn(prompt: string) {
825
859
 
826
860
  > See [`examples/pr-review-agent`](../../examples/pr-review-agent) for a complete PR review agent built with Chat SDK and Vercel Workflow.
827
861
 
828
- All presets (`code-review`, `issue-triage`, `ci-ops`, `repo-explorer`, `security-audit`, `release-manager`, `discussion-moderator`, `notification-inbox`, `pr-author`, `maintainer`) work with `createDurableGithubAgent`. Options mirror `createGithubAgent` with additional pass-through for `WorkflowAgentOptions` fields like `experimental_telemetry`, `onStepEnd`, `onEnd`, and `prepareStep`. Write tools honor `requireApproval` via `needsApproval`.
862
+ All presets (`code-review`, `issue-triage`, `ci-ops`, `repo-explorer`, `security-audit`, `release-manager`, `discussion-moderator`, `notification-inbox`, `pr-author`, `maintainer`) work with `createDurableGithubAgent`. Options mirror `createGithubAgent` with additional pass-through for `WorkflowAgentOptions` fields like `telemetry`, `onStepEnd`, `onEnd`, and `prepareStep`. Write tools honor `requireApproval` via `needsApproval`.
829
863
 
830
864
  ### `resolveGithubToken(token?)`
831
865
 
@@ -0,0 +1,17 @@
1
+ import { s as AUTO_APPROVAL_TOOLS } from "./write-tools-DnGZw-RD.mjs";
2
+ //#region src/core/approval-policy.ts
3
+ const autoApprovalTools = new Set(AUTO_APPROVAL_TOOLS);
4
+ /**
5
+ * Resolve a write tool's approval mode from global or per-tool config.
6
+ *
7
+ * @returns `'auto'` only for tools that opt into evaluation; defaults to `true` for unspecified tools in object mode.
8
+ */
9
+ function resolveApprovalMode(toolName, config) {
10
+ if (config === "auto") return autoApprovalTools.has(toolName) ? "auto" : true;
11
+ if (typeof config === "boolean") return config;
12
+ return config[toolName] ?? true;
13
+ }
14
+ //#endregion
15
+ export { resolveApprovalMode as t };
16
+
17
+ //# sourceMappingURL=approval-policy--kByBqhT.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approval-policy--kByBqhT.mjs","names":[],"sources":["../src/core/approval-policy.ts"],"sourcesContent":["import { AUTO_APPROVAL_TOOLS } from './evaluation-policy'\nimport type { GithubWriteToolName } from './write-tools'\n\n/**\n * Approval for a single write tool.\n *\n * - `true` — always ask the user\n * - `false` — never ask\n * - `'auto'` — ask only when an evaluation model (Jev by default) rates the call risky\n * or not asked for by the latest user message. AI SDK evaluation needs `ai` 7.0.105 or later.\n */\nexport type ToolApprovalMode = boolean | 'auto'\n\n/**\n * Whether write operations require user approval.\n *\n * - `true` — all write tools need approval (default)\n * - `false` — no approval needed for any write tool\n * - `'auto'` — low-risk write tools ({@link AUTO_APPROVAL_TOOLS}) are evaluated per call;\n * every other write tool needs approval\n * - object — per-tool {@link ToolApprovalMode} via {@link GithubWriteToolName}; unspecified write tools default to `true`\n *\n * @example Global disable\n * ```ts\n * createGithubTools({ token, requireApproval: false })\n * ```\n *\n * @example Auto approval for low-risk writes\n * ```ts\n * createGithubTools({ token, requireApproval: 'auto' })\n * ```\n *\n * @example Granular per write tool\n * ```ts\n * createGithubTools({\n * token,\n * requireApproval: {\n * mergePullRequest: true,\n * createOrUpdateFile: true,\n * addPullRequestComment: 'auto',\n * },\n * })\n * ```\n */\nexport type ApprovalConfig = ToolApprovalMode | Partial<Record<GithubWriteToolName, ToolApprovalMode>>\n\n/** {@link ApprovalConfig} without `'auto'`, for runtimes that cannot run the evaluation model. */\nexport type StaticApprovalConfig = boolean | Partial<Record<GithubWriteToolName, boolean>>\n\nconst autoApprovalTools: ReadonlySet<string> = new Set(AUTO_APPROVAL_TOOLS)\n\n/**\n * Resolve a write tool's approval mode from global or per-tool config.\n *\n * @returns `'auto'` only for tools that opt into evaluation; defaults to `true` for unspecified tools in object mode.\n */\nexport function resolveApprovalMode(toolName: GithubWriteToolName, config: ApprovalConfig): ToolApprovalMode {\n if (config === 'auto') return autoApprovalTools.has(toolName) ? 'auto' : true\n if (typeof config === 'boolean') return config\n return config[toolName] ?? true\n}\n"],"mappings":";;AAiDA,MAAM,oBAAyC,IAAI,IAAI,mBAAmB;;;;;;AAO1E,SAAgB,oBAAoB,UAA+B,QAA0C;CAC3G,IAAI,WAAW,QAAQ,OAAO,kBAAkB,IAAI,QAAQ,IAAI,SAAS;CACzE,IAAI,OAAO,WAAW,WAAW,OAAO;CACxC,OAAO,OAAO,aAAa;AAC7B"}
@@ -1,4 +1,4 @@
1
- import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-BmwOpI5-.mjs";
1
+ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-CJqhvQwi.mjs";
2
2
  //#region src/connect/eve.d.ts
3
3
  /**
4
4
  * Register eve GitHub tools backed by a Vercel Connect connector.
@@ -23,6 +23,6 @@ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "..
23
23
  * `build.externalDependencies: ['@vercel/connect']` in `agent.ts`. Prefer the
24
24
  * eve extension (pre-built) so that workaround is unnecessary.
25
25
  */
26
- export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubEveToolsOptions): import("eve").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve").DynamicContext>;
26
+ export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubEveToolsOptions): import("eve/tools").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve/tools").DynamicContext>;
27
27
  //#endregion
28
28
  //# sourceMappingURL=eve.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;wBA4BgB,mBACd,WAAW,sBACX,UAAS,6CAAiC,oCAAA,iCAAA"}
1
+ {"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;wBA4BgB,mBACd,WAAW,sBACX,UAAS,mDAAiC,oCAAA,uCAAA"}
@@ -1,5 +1,5 @@
1
1
  import { createGithubTools } from "../eve.mjs";
2
- import { t as connectGithubToken } from "../token-Bh8nPj66.mjs";
2
+ import { t as connectGithubToken } from "../token-DIwB-wtp.mjs";
3
3
  //#region src/connect/eve.ts
4
4
  /**
5
5
  * Register eve GitHub tools backed by a Vercel Connect connector.
@@ -1,13 +1,21 @@
1
- import "./index-DkZvveZP.mjs";
2
- import { a as GithubConnectParamsInput, c as resolveGithubConnector, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as GithubConnectParamsResolver, r as ConnectGithubToolsOptions, s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "./types-BmwOpI5-.mjs";
3
- import { C as GithubTokenInput, E as GithubToolPreset, S as GithubTokenCall, j as GithubToolName, t as AllGithubTools } from "./tool-types-CrC80SIL.mjs";
1
+ import { a as GithubConnectParamsInput, c as resolveGithubConnector, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as GithubConnectParamsResolver, r as ConnectGithubToolsOptions, s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "./types-CJqhvQwi.mjs";
2
+ import { A as GithubTokenCall, B as GithubToolName, F as GithubToolPreset, j as GithubTokenInput, t as AllGithubTools } from "./tool-types-OFyE3z0C.mjs";
3
+ import "./eve-runtime-CflZNuXD.mjs";
4
4
  import { ConnectTokenSubject } from "@vercel/connect";
5
5
  //#region src/connect/scopes.d.ts
6
6
  /**
7
- * Vercel Connect scope strings mapped to each {@link GithubToolPreset}.
7
+ * Per-tool Connect scopes, derived from `GITHUB_TOOL_CATALOG`. Empty arrays are
8
+ * intentional for gist and notification tools (installation tokens cannot
9
+ * satisfy those APIs).
10
+ */
11
+ export declare const TOOL_CONNECT_SCOPES: Record<"getRepository" | "listBranches" | "getFileContent" | "getRepositoryTree" | "createBranch" | "deleteBranch" | "forkRepository" | "createRepository" | "createOrUpdateFile" | "getBranchRules" | "editFiles" | "listPullRequests" | "getPullRequest" | "createPullRequest" | "mergePullRequest" | "enablePullRequestAutoMerge" | "disablePullRequestAutoMerge" | "updatePullRequest" | "addPullRequestComment" | "updatePullRequestComment" | "deletePullRequestComment" | "listPullRequestFiles" | "listPullRequestReviews" | "createPullRequestReview" | "listPullRequestReviewThreads" | "replyToReviewComment" | "resolveReviewThread" | "requestReviewers" | "getPullRequestContext" | "getIssueContext" | "listIssues" | "getIssue" | "listIssueComments" | "createIssue" | "addIssueComment" | "updateIssueComment" | "deleteIssueComment" | "closeIssue" | "updateIssue" | "listLabels" | "addLabels" | "removeLabel" | "createLabel" | "updateLabel" | "deleteLabel" | "addAssignees" | "removeAssignees" | "listIssueReactions" | "addIssueReaction" | "listCommentReactions" | "addCommentReaction" | "listDiscussions" | "getDiscussion" | "addDiscussionComment" | "listNotifications" | "markNotificationRead" | "searchCode" | "searchRepositories" | "searchIssues" | "listCommits" | "getCommit" | "getBlame" | "compareCommits" | "listGists" | "getGist" | "listGistComments" | "createGist" | "updateGist" | "deleteGist" | "createGistComment" | "listWorkflows" | "listWorkflowRuns" | "getWorkflowRun" | "listWorkflowJobs" | "getWorkflowJobLogs" | "triggerWorkflow" | "cancelWorkflowRun" | "rerunWorkflowRun" | "listCheckRuns" | "getCombinedStatus" | "getCiFailureContext" | "listReleases" | "getLatestRelease" | "getRelease" | "getReleaseContext" | "createRelease" | "updateRelease" | "deleteRelease" | "listCodeScanningAlerts" | "listDependabotAlerts" | "listSecretScanningAlerts", readonly string[]>;
12
+ /**
13
+ * Vercel Connect scope strings mapped to each {@link GithubToolPreset}, derived
14
+ * from the preset's tools so a tool added to a preset brings its scopes along.
8
15
  *
9
16
  * Scopes mirror GitHub App permissions (`contents`, `pull_requests`, `issues`,
10
- * `discussions`, `actions`, `checks`, `statuses`, `administration`, `metadata`)
17
+ * `discussions`, `actions`, `checks`, `statuses`, `administration`, `metadata`,
18
+ * and `security_events`, `vulnerability_alerts`, `secret_scanning_alerts` for the alert tools)
11
19
  * and must cover every read/write family a preset's tools touch, not just its
12
20
  * primary domain. Release tools fall under the `contents` permission on GitHub
13
21
  * Apps, and reaction tools under `issues`, so neither needs a scope of its own.
@@ -24,24 +32,7 @@ import { ConnectTokenSubject } from "@vercel/connect";
24
32
  * that only applies to user access tokens, so `listNotifications` /
25
33
  * `markNotificationRead` need a PAT with the "Notifications" account permission.
26
34
  */
27
- export declare const PRESET_CONNECT_SCOPES: {
28
- readonly 'repo-explorer': readonly ["contents:read", "metadata:read", "pull_requests:read", "issues:read", "discussions:read", "actions:read", "checks:read", "statuses:read"];
29
- readonly 'code-review': readonly ["contents:read", "metadata:read", "pull_requests:read", "pull_requests:write", "checks:read", "statuses:read"];
30
- readonly 'issue-triage': readonly ["contents:read", "metadata:read", "issues:read", "issues:write"];
31
- readonly 'ci-ops': readonly ["contents:read", "metadata:read", "actions:read", "actions:write", "checks:read", "statuses:read"];
32
- readonly 'security-audit': readonly ["contents:read", "metadata:read", "pull_requests:read", "issues:read", "issues:write", "actions:read", "checks:read", "statuses:read"];
33
- readonly 'release-manager': readonly ["contents:read", "contents:write", "metadata:read", "pull_requests:read", "actions:read", "actions:write"];
34
- readonly 'discussion-moderator': readonly ["contents:read", "metadata:read", "issues:read", "issues:write", "discussions:read", "discussions:write"];
35
- readonly 'notification-inbox': readonly ["contents:read", "metadata:read", "pull_requests:read", "issues:read"];
36
- readonly 'pr-author': readonly ["contents:read", "contents:write", "metadata:read", "pull_requests:read", "pull_requests:write"];
37
- readonly maintainer: readonly ["contents:read", "contents:write", "metadata:read", "pull_requests:read", "pull_requests:write", "issues:read", "issues:write", "discussions:read", "discussions:write", "actions:read", "actions:write", "checks:read", "statuses:read", "administration:read", "administration:write"];
38
- };
39
- /**
40
- * Per-tool Connect scopes, derived from `GITHUB_TOOL_CATALOG`. Empty arrays are
41
- * intentional for gist and notification tools (installation tokens cannot
42
- * satisfy those APIs).
43
- */
44
- export declare const TOOL_CONNECT_SCOPES: Record<"getPullRequest" | "listPullRequests" | "listPullRequestFiles" | "listPullRequestReviews" | "listPullRequestReviewThreads" | "getPullRequestContext" | "getFileContent" | "listCommits" | "getCommit" | "getBlame" | "compareCommits" | "getRepository" | "listBranches" | "searchCode" | "listCheckRuns" | "getCombinedStatus" | "updatePullRequest" | "addPullRequestComment" | "updatePullRequestComment" | "deletePullRequestComment" | "createPullRequestReview" | "replyToReviewComment" | "resolveReviewThread" | "requestReviewers" | "listIssues" | "getIssueContext" | "listIssueComments" | "createIssue" | "addIssueComment" | "updateIssueComment" | "deleteIssueComment" | "closeIssue" | "updateIssue" | "addLabels" | "removeLabel" | "createLabel" | "updateLabel" | "deleteLabel" | "addAssignees" | "removeAssignees" | "listIssueReactions" | "addIssueReaction" | "listCommentReactions" | "addCommentReaction" | "searchRepositories" | "searchIssues" | "listWorkflows" | "listWorkflowRuns" | "getWorkflowRun" | "listWorkflowJobs" | "getWorkflowJobLogs" | "getCiFailureContext" | "triggerWorkflow" | "cancelWorkflowRun" | "rerunWorkflowRun" | "getRepositoryTree" | "getIssue" | "listDiscussions" | "getDiscussion" | "listLabels" | "listGists" | "getGist" | "listGistComments" | "listReleases" | "getLatestRelease" | "getRelease" | "getReleaseContext" | "createRelease" | "updateRelease" | "deleteRelease" | "addDiscussionComment" | "listNotifications" | "markNotificationRead" | "createBranch" | "deleteBranch" | "createOrUpdateFile" | "createPullRequest" | "forkRepository" | "createRepository" | "mergePullRequest" | "createGist" | "updateGist" | "deleteGist" | "createGistComment", readonly string[]>;
35
+ export declare const PRESET_CONNECT_SCOPES: Record<"code-review" | "issue-triage" | "ci-ops" | "repo-explorer" | "security-audit" | "release-manager" | "discussion-moderator" | "notification-inbox" | "pr-author" | "maintainer", readonly string[]>;
45
36
  /**
46
37
  * Returns Vercel Connect scopes for a preset or combined presets.
47
38
  * Without a preset, returns the union of all preset scopes (full tool set).
@@ -95,7 +86,7 @@ export declare function connectGithubToken(connector: GithubConnectorInput, opti
95
86
  * `connector` may be a static name or a resolver function — e.g. to pick a
96
87
  * different connector per environment (production vs. preview) or tenant.
97
88
  */
98
- export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubToolsOptions): AllGithubTools | Pick<AllGithubTools, "getPullRequest" | "listPullRequests" | "listPullRequestFiles" | "listPullRequestReviews" | "listPullRequestReviewThreads" | "getPullRequestContext" | "getFileContent" | "listCommits" | "getCommit" | "getBlame" | "compareCommits" | "getRepository" | "listBranches" | "searchCode" | "listCheckRuns" | "getCombinedStatus" | "updatePullRequest" | "addPullRequestComment" | "updatePullRequestComment" | "deletePullRequestComment" | "createPullRequestReview" | "replyToReviewComment" | "resolveReviewThread" | "requestReviewers" | "listIssues" | "getIssueContext" | "listIssueComments" | "createIssue" | "addIssueComment" | "updateIssueComment" | "deleteIssueComment" | "closeIssue" | "updateIssue" | "addLabels" | "removeLabel" | "createLabel" | "updateLabel" | "deleteLabel" | "addAssignees" | "removeAssignees" | "listIssueReactions" | "addIssueReaction" | "listCommentReactions" | "addCommentReaction" | "searchRepositories" | "searchIssues" | "listWorkflows" | "listWorkflowRuns" | "getWorkflowRun" | "listWorkflowJobs" | "getWorkflowJobLogs" | "getCiFailureContext" | "triggerWorkflow" | "cancelWorkflowRun" | "rerunWorkflowRun" | "getRepositoryTree" | "getIssue" | "listDiscussions" | "getDiscussion" | "listLabels" | "listGists" | "getGist" | "listGistComments" | "listReleases" | "getLatestRelease" | "getRelease" | "getReleaseContext" | "createRelease" | "updateRelease" | "deleteRelease" | "addDiscussionComment" | "listNotifications" | "markNotificationRead" | "createBranch" | "deleteBranch" | "createOrUpdateFile" | "createPullRequest" | "forkRepository" | "createRepository" | "mergePullRequest" | "createGist" | "updateGist" | "deleteGist" | "createGistComment">;
89
+ export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubToolsOptions): AllGithubTools | Pick<AllGithubTools, "getRepository" | "listBranches" | "getFileContent" | "getRepositoryTree" | "createBranch" | "deleteBranch" | "forkRepository" | "createRepository" | "createOrUpdateFile" | "getBranchRules" | "editFiles" | "listPullRequests" | "getPullRequest" | "createPullRequest" | "mergePullRequest" | "enablePullRequestAutoMerge" | "disablePullRequestAutoMerge" | "updatePullRequest" | "addPullRequestComment" | "updatePullRequestComment" | "deletePullRequestComment" | "listPullRequestFiles" | "listPullRequestReviews" | "createPullRequestReview" | "listPullRequestReviewThreads" | "replyToReviewComment" | "resolveReviewThread" | "requestReviewers" | "getPullRequestContext" | "getIssueContext" | "listIssues" | "getIssue" | "listIssueComments" | "createIssue" | "addIssueComment" | "updateIssueComment" | "deleteIssueComment" | "closeIssue" | "updateIssue" | "listLabels" | "addLabels" | "removeLabel" | "createLabel" | "updateLabel" | "deleteLabel" | "addAssignees" | "removeAssignees" | "listIssueReactions" | "addIssueReaction" | "listCommentReactions" | "addCommentReaction" | "listDiscussions" | "getDiscussion" | "addDiscussionComment" | "listNotifications" | "markNotificationRead" | "searchCode" | "searchRepositories" | "searchIssues" | "listCommits" | "getCommit" | "getBlame" | "compareCommits" | "listGists" | "getGist" | "listGistComments" | "createGist" | "updateGist" | "deleteGist" | "createGistComment" | "listWorkflows" | "listWorkflowRuns" | "getWorkflowRun" | "listWorkflowJobs" | "getWorkflowJobLogs" | "triggerWorkflow" | "cancelWorkflowRun" | "rerunWorkflowRun" | "listCheckRuns" | "getCombinedStatus" | "getCiFailureContext" | "listReleases" | "getLatestRelease" | "getRelease" | "getReleaseContext" | "createRelease" | "updateRelease" | "deleteRelease" | "listCodeScanningAlerts" | "listDependabotAlerts" | "listSecretScanningAlerts">;
99
90
  //#endregion
100
91
  export { type ConnectGithubEveToolsOptions, type ConnectGithubTokenOptions, type ConnectGithubToolsOptions, type ConnectScopeSelection, type ConnectTokenSubject, type GithubConnectParams, type GithubConnectParamsInput, type GithubConnectParamsResolver, type GithubConnectorInput, type GithubTokenCall, resolveGithubConnector };
101
92
  //# sourceMappingURL=connect.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.mts","names":[],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;qBAyBa;;;;;;;;;;;;;;;;;qBAwHA,qBAAmB;;;;;wBAgBhB,6BACd,SAAS,mBAAmB;;;;;wBAcd,4BAA4B,gBAAgB;KAUhD;EACV,SAAS,mBAAmB;EAC5B,mBAAmB;EACnB,mBAAmB;;;;;;;;;;wBA6BL,gCAAgC,YAAW;;;;;;;;;;;;;;;;;;;;wBC3L3C,mBACd,WAAW,sBACX,UAAS,4BACR;;;;;;;;;;wBCtBa,mBACd,WAAW,sBACX,UAAS,4BAAA,iBAA8B,KAAA"}
1
+ {"version":3,"file":"connect.d.mts","names":[],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":";;;;;;;;;;qBA+Ba,qBAAmB;;;;;;;;;;;;;;;;;;;;;;;;qBAmCnB,uBAAqB;;;;;wBAelB,6BACd,SAAS,mBAAmB;;;;;wBAcd,4BAA4B,gBAAgB;KAUhD;EACV,SAAS,mBAAmB;EAC5B,mBAAmB;EACnB,mBAAmB;;;;;;;;;;wBA6BL,gCAAgC,YAAW;;;;;;;;;;;;;;;;;;;;wBC3G3C,mBACd,WAAW,sBACX,UAAS,4BACR;;;;;;;;;;wBCtBa,mBACd,WAAW,sBACX,UAAS,4BAAA,iBAA8B,KAAA"}
package/dist/connect.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as createGithubTools } from "./src-Bx5p1Unc.mjs";
2
- import { a as connectGithubScopesForSelection, i as connectGithubScopesForPreset, n as PRESET_CONNECT_SCOPES, o as connectGithubScopesForTools, r as TOOL_CONNECT_SCOPES, s as resolveGithubConnector, t as connectGithubToken } from "./token-Bh8nPj66.mjs";
1
+ import { t as createGithubTools } from "./src-DyiAVHKl.mjs";
2
+ import { a as connectGithubScopesForSelection, i as connectGithubScopesForPreset, n as PRESET_CONNECT_SCOPES, o as connectGithubScopesForTools, r as TOOL_CONNECT_SCOPES, s as resolveGithubConnector, t as connectGithubToken } from "./token-DIwB-wtp.mjs";
3
3
  //#region src/connect/tools.ts
4
4
  /**
5
5
  * Create GitHub tools backed by a Vercel Connect connector.
@@ -1,4 +1,4 @@
1
- import { B as listIssueReactionsCore, Bi as deleteBranchCore, Bn as listPullRequestFilesCore, Br as getIssueCore, Bt as getWorkflowJobLogsCore, K as markNotificationReadCore, Ki as getFileContentCore, Kn as listPullRequestReviewsCore, Kr as listIssuesCore, Kt as listWorkflowJobsCore, L as listCommentReactionsCore, Li as createRepositoryCore, Ln as getPullRequestCore, Lr as deleteLabelCore, Lt as cancelWorkflowRunCore, O as searchRepositoriesCore, Oi as listCheckRunsCore, On as createPullRequestCore, Or as createIssueCore, Ot as getIssueContextCore, P as addIssueReactionCore, Pi as createOrUpdateFileCore, Pn as deletePullRequestCommentCore, Pr as deleteIssueCommentCore, Pt as getReleaseContextCore, Q as createGistCore, Qi as getRepositoryTreeCore, Qn as mergePullRequestCore, Qr as removeAssigneesCore, Qt as listWorkflowsCore, S as searchCodeCore, Si as listCommitsCore, Sn as updateReleaseCore, Sr as addLabelsCore, St as listDiscussionsCore, T as searchIssuesCore, Ti as getCombinedStatusCore, Tn as addPullRequestCommentCore, Tr as closeIssueCore, Tt as getCiFailureContextCore, U as listNotificationsCore, Ui as forkRepositoryCore, Un as listPullRequestReviewThreadsCore, Ur as listIssueCommentsCore, Ut as getWorkflowRunCore, Y as createGistCommentCore, Yi as getRepositoryCore, Yn as listPullRequestsCore, Yr as listLabelsCore, Yt as listWorkflowRunsCore, gi as getBlameCore, gn as getReleaseCore, gr as addAssigneesCore, gt as addDiscussionCommentCore, ii as updateIssueCommentCore, in as triggerWorkflowCore, ir as requestReviewersCore, it as getGistCore, j as addCommentReactionCore, ji as createBranchCore, jn as createPullRequestReviewCore, jr as createLabelCore, jt as getPullRequestContextCore, pi as compareCommitsCore, pn as getLatestReleaseCore, pr as updatePullRequestCore, pt as updateGistCore, si as updateIssueCore, sn as createReleaseCore, sr as resolveReviewThreadCore, st as listGistCommentsCore, ta as listBranchesCore, ti as removeLabelCore, tn as rerunWorkflowRunCore, tr as replyToReviewCommentCore, tt as deleteGistCore, ui as updateLabelCore, un as deleteReleaseCore, ur as updatePullRequestCommentCore, ut as listGistsCore, yi as getCommitCore, yn as listReleasesCore, yr as addIssueCommentCore, yt as getDiscussionCore } from "./write-tools-BaoTUCg7.mjs";
1
+ import { B as searchRepositoriesCore, Bi as listCommitsCore, Bn as createPullRequestCore, Br as addLabelsCore, Bt as getIssueContextCore, K as addIssueReactionCore, Ki as listCheckRunsCore, Kn as deletePullRequestCommentCore, Kr as createIssueCore, Kt as getReleaseContextCore, L as searchIssuesCore, Li as getCommitCore, Ln as addPullRequestCommentCore, Lr as addIssueCommentCore, Lt as getCiFailureContextCore, O as listDependabotAlertsCore, Oi as updateLabelCore, On as getReleaseCore, Or as updatePullRequestCommentCore, Ot as addDiscussionCommentCore, P as searchCodeCore, Pi as getBlameCore, Pn as updateReleaseCore, Pr as addAssigneesCore, Pt as listDiscussionsCore, Q as listIssueReactionsCore, Qi as createOrUpdateFileCore, Qn as enablePullRequestAutoMergeCore, Qr as deleteIssueCommentCore, Qt as getWorkflowJobLogsCore, Sa as getRepositoryTreeCore, Si as updateIssueCommentCore, Sn as deleteReleaseCore, Sr as requestReviewersCore, St as listGistsCore, T as listCodeScanningAlertsCore, Ta as listBranchesCore, Ti as updateIssueCore, Tn as getLatestReleaseCore, Tr as resolveReviewThreadCore, Tt as updateGistCore, U as addCommentReactionCore, Ui as getCombinedStatusCore, Un as createPullRequestReviewCore, Ur as closeIssueCore, Ut as getPullRequestContextCore, Y as listCommentReactionsCore, Yi as createBranchCore, Yn as disablePullRequestAutoMergeCore, Yr as createLabelCore, Yt as cancelWorkflowRunCore, ga as getFileContentCore, gi as removeAssigneesCore, gn as triggerWorkflowCore, gr as mergePullRequestCore, gt as getGistCore, ia as deleteBranchCore, ii as getIssueCore, in as listWorkflowJobsCore, ir as listPullRequestFilesCore, it as markNotificationReadCore, j as listSecretScanningAlertsCore, ji as compareCommitsCore, jn as listReleasesCore, jr as updatePullRequestCore, jt as getDiscussionCore, pa as getBranchRulesCore, pi as listLabelsCore, pn as rerunWorkflowRunCore, pr as listPullRequestsCore, pt as deleteGistCore, sa as editFilesCore, si as listIssueCommentsCore, sn as listWorkflowRunsCore, sr as listPullRequestReviewThreadsCore, st as createGistCommentCore, ta as createRepositoryCore, ti as deleteLabelCore, tn as getWorkflowRunCore, tr as getPullRequestCore, tt as listNotificationsCore, ua as forkRepositoryCore, ui as listIssuesCore, un as listWorkflowsCore, ur as listPullRequestReviewsCore, ut as createGistCore, ya as getRepositoryCore, yi as removeLabelCore, yn as createReleaseCore, yr as replyToReviewCommentCore, yt as listGistCommentsCore } from "./write-tools-DnGZw-RD.mjs";
2
2
  //#region src/core/cores.ts
3
3
  /**
4
4
  * The `*Core` implementation of every tool, keyed by tool name.
@@ -37,6 +37,12 @@ const GITHUB_TOOL_CORES = {
37
37
  get createOrUpdateFile() {
38
38
  return createOrUpdateFileCore;
39
39
  },
40
+ get editFiles() {
41
+ return editFilesCore;
42
+ },
43
+ get getBranchRules() {
44
+ return getBranchRulesCore;
45
+ },
40
46
  get listPullRequests() {
41
47
  return listPullRequestsCore;
42
48
  },
@@ -49,6 +55,12 @@ const GITHUB_TOOL_CORES = {
49
55
  get mergePullRequest() {
50
56
  return mergePullRequestCore;
51
57
  },
58
+ get enablePullRequestAutoMerge() {
59
+ return enablePullRequestAutoMergeCore;
60
+ },
61
+ get disablePullRequestAutoMerge() {
62
+ return disablePullRequestAutoMergeCore;
63
+ },
52
64
  get updatePullRequest() {
53
65
  return updatePullRequestCore;
54
66
  },
@@ -261,9 +273,18 @@ const GITHUB_TOOL_CORES = {
261
273
  },
262
274
  get deleteRelease() {
263
275
  return deleteReleaseCore;
276
+ },
277
+ get listCodeScanningAlerts() {
278
+ return listCodeScanningAlertsCore;
279
+ },
280
+ get listDependabotAlerts() {
281
+ return listDependabotAlertsCore;
282
+ },
283
+ get listSecretScanningAlerts() {
284
+ return listSecretScanningAlertsCore;
264
285
  }
265
286
  };
266
287
  //#endregion
267
288
  export { GITHUB_TOOL_CORES as t };
268
289
 
269
- //# sourceMappingURL=cores-BeLZwcde.mjs.map
290
+ //# sourceMappingURL=cores-FLzAv2tu.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cores-FLzAv2tu.mjs","names":["repository.getRepositoryCore","repository.listBranchesCore","repository.getFileContentCore","repository.getRepositoryTreeCore","repository.createBranchCore","repository.deleteBranchCore","repository.forkRepositoryCore","repository.createRepositoryCore","repository.createOrUpdateFileCore","repository.editFilesCore","repository.getBranchRulesCore","pullRequests.listPullRequestsCore","pullRequests.getPullRequestCore","pullRequests.createPullRequestCore","pullRequests.mergePullRequestCore","pullRequests.enablePullRequestAutoMergeCore","pullRequests.disablePullRequestAutoMergeCore","pullRequests.updatePullRequestCore","pullRequests.addPullRequestCommentCore","pullRequests.updatePullRequestCommentCore","pullRequests.deletePullRequestCommentCore","pullRequests.listPullRequestFilesCore","pullRequests.listPullRequestReviewsCore","pullRequests.createPullRequestReviewCore","pullRequests.listPullRequestReviewThreadsCore","pullRequests.replyToReviewCommentCore","pullRequests.resolveReviewThreadCore","pullRequests.requestReviewersCore","bundles.getPullRequestContextCore","bundles.getIssueContextCore","issues.listIssuesCore","issues.getIssueCore","issues.listIssueCommentsCore","issues.createIssueCore","issues.addIssueCommentCore","issues.updateIssueCommentCore","issues.deleteIssueCommentCore","issues.closeIssueCore","issues.updateIssueCore","issues.listLabelsCore","issues.addLabelsCore","issues.removeLabelCore","issues.createLabelCore","issues.updateLabelCore","issues.deleteLabelCore","issues.addAssigneesCore","issues.removeAssigneesCore","reactions.listIssueReactionsCore","reactions.addIssueReactionCore","reactions.listCommentReactionsCore","reactions.addCommentReactionCore","discussions.listDiscussionsCore","discussions.getDiscussionCore","discussions.addDiscussionCommentCore","notifications.listNotificationsCore","notifications.markNotificationReadCore","search.searchCodeCore","search.searchRepositoriesCore","search.searchIssuesCore","commits.listCommitsCore","commits.getCommitCore","commits.getBlameCore","commits.compareCommitsCore","gists.listGistsCore","gists.getGistCore","gists.listGistCommentsCore","gists.createGistCore","gists.updateGistCore","gists.deleteGistCore","gists.createGistCommentCore","workflows.listWorkflowsCore","workflows.listWorkflowRunsCore","workflows.getWorkflowRunCore","workflows.listWorkflowJobsCore","workflows.getWorkflowJobLogsCore","workflows.triggerWorkflowCore","workflows.cancelWorkflowRunCore","workflows.rerunWorkflowRunCore","checks.listCheckRunsCore","checks.getCombinedStatusCore","bundles.getCiFailureContextCore","releases.listReleasesCore","releases.getLatestReleaseCore","releases.getReleaseCore","bundles.getReleaseContextCore","releases.createReleaseCore","releases.updateReleaseCore","releases.deleteReleaseCore","security.listCodeScanningAlertsCore","security.listDependabotAlertsCore","security.listSecretScanningAlertsCore"],"sources":["../src/core/cores.ts"],"sourcesContent":["import * as bundles from './bundles'\nimport * as checks from './checks'\nimport * as commits from './commits'\nimport * as discussions from './discussions'\nimport * as gists from './gists'\nimport * as issues from './issues'\nimport * as notifications from './notifications'\nimport * as pullRequests from './pull-requests'\nimport * as reactions from './reactions'\nimport * as releases from './releases'\nimport * as security from './security'\nimport * as repository from './repository'\nimport * as search from './search'\nimport * as workflows from './workflows'\nimport type { GithubToolName } from './catalog'\n\n/**\n * The `*Core` implementation of every tool, keyed by tool name.\n *\n * Kept apart from `GITHUB_TOOL_CATALOG` so that importing tool metadata does\n * not pull Octokit into a Vercel Workflow flow bundle, which cannot load\n * Node.js built-ins. Argument types vary per tool, so callers cast at the\n * dispatch boundary. Entries are getters so the ESM binding stays live\n * (module spies in tests).\n */\nexport const GITHUB_TOOL_CORES = {\n get getRepository() { return repository.getRepositoryCore },\n get listBranches() { return repository.listBranchesCore },\n get getFileContent() { return repository.getFileContentCore },\n get getRepositoryTree() { return repository.getRepositoryTreeCore },\n get createBranch() { return repository.createBranchCore },\n get deleteBranch() { return repository.deleteBranchCore },\n get forkRepository() { return repository.forkRepositoryCore },\n get createRepository() { return repository.createRepositoryCore },\n get createOrUpdateFile() { return repository.createOrUpdateFileCore },\n get editFiles() { return repository.editFilesCore },\n get getBranchRules() { return repository.getBranchRulesCore },\n get listPullRequests() { return pullRequests.listPullRequestsCore },\n get getPullRequest() { return pullRequests.getPullRequestCore },\n get createPullRequest() { return pullRequests.createPullRequestCore },\n get mergePullRequest() { return pullRequests.mergePullRequestCore },\n get enablePullRequestAutoMerge() { return pullRequests.enablePullRequestAutoMergeCore },\n get disablePullRequestAutoMerge() { return pullRequests.disablePullRequestAutoMergeCore },\n get updatePullRequest() { return pullRequests.updatePullRequestCore },\n get addPullRequestComment() { return pullRequests.addPullRequestCommentCore },\n get updatePullRequestComment() { return pullRequests.updatePullRequestCommentCore },\n get deletePullRequestComment() { return pullRequests.deletePullRequestCommentCore },\n get listPullRequestFiles() { return pullRequests.listPullRequestFilesCore },\n get listPullRequestReviews() { return pullRequests.listPullRequestReviewsCore },\n get createPullRequestReview() { return pullRequests.createPullRequestReviewCore },\n get listPullRequestReviewThreads() { return pullRequests.listPullRequestReviewThreadsCore },\n get replyToReviewComment() { return pullRequests.replyToReviewCommentCore },\n get resolveReviewThread() { return pullRequests.resolveReviewThreadCore },\n get requestReviewers() { return pullRequests.requestReviewersCore },\n get getPullRequestContext() { return bundles.getPullRequestContextCore },\n get getIssueContext() { return bundles.getIssueContextCore },\n get listIssues() { return issues.listIssuesCore },\n get getIssue() { return issues.getIssueCore },\n get listIssueComments() { return issues.listIssueCommentsCore },\n get createIssue() { return issues.createIssueCore },\n get addIssueComment() { return issues.addIssueCommentCore },\n get updateIssueComment() { return issues.updateIssueCommentCore },\n get deleteIssueComment() { return issues.deleteIssueCommentCore },\n get closeIssue() { return issues.closeIssueCore },\n get updateIssue() { return issues.updateIssueCore },\n get listLabels() { return issues.listLabelsCore },\n get addLabels() { return issues.addLabelsCore },\n get removeLabel() { return issues.removeLabelCore },\n get createLabel() { return issues.createLabelCore },\n get updateLabel() { return issues.updateLabelCore },\n get deleteLabel() { return issues.deleteLabelCore },\n get addAssignees() { return issues.addAssigneesCore },\n get removeAssignees() { return issues.removeAssigneesCore },\n get listIssueReactions() { return reactions.listIssueReactionsCore },\n get addIssueReaction() { return reactions.addIssueReactionCore },\n get listCommentReactions() { return reactions.listCommentReactionsCore },\n get addCommentReaction() { return reactions.addCommentReactionCore },\n get listDiscussions() { return discussions.listDiscussionsCore },\n get getDiscussion() { return discussions.getDiscussionCore },\n get addDiscussionComment() { return discussions.addDiscussionCommentCore },\n get listNotifications() { return notifications.listNotificationsCore },\n get markNotificationRead() { return notifications.markNotificationReadCore },\n get searchCode() { return search.searchCodeCore },\n get searchRepositories() { return search.searchRepositoriesCore },\n get searchIssues() { return search.searchIssuesCore },\n get listCommits() { return commits.listCommitsCore },\n get getCommit() { return commits.getCommitCore },\n get getBlame() { return commits.getBlameCore },\n get compareCommits() { return commits.compareCommitsCore },\n get listGists() { return gists.listGistsCore },\n get getGist() { return gists.getGistCore },\n get listGistComments() { return gists.listGistCommentsCore },\n get createGist() { return gists.createGistCore },\n get updateGist() { return gists.updateGistCore },\n get deleteGist() { return gists.deleteGistCore },\n get createGistComment() { return gists.createGistCommentCore },\n get listWorkflows() { return workflows.listWorkflowsCore },\n get listWorkflowRuns() { return workflows.listWorkflowRunsCore },\n get getWorkflowRun() { return workflows.getWorkflowRunCore },\n get listWorkflowJobs() { return workflows.listWorkflowJobsCore },\n get getWorkflowJobLogs() { return workflows.getWorkflowJobLogsCore },\n get triggerWorkflow() { return workflows.triggerWorkflowCore },\n get cancelWorkflowRun() { return workflows.cancelWorkflowRunCore },\n get rerunWorkflowRun() { return workflows.rerunWorkflowRunCore },\n get listCheckRuns() { return checks.listCheckRunsCore },\n get getCombinedStatus() { return checks.getCombinedStatusCore },\n get getCiFailureContext() { return bundles.getCiFailureContextCore },\n get listReleases() { return releases.listReleasesCore },\n get getLatestRelease() { return releases.getLatestReleaseCore },\n get getRelease() { return releases.getReleaseCore },\n get getReleaseContext() { return bundles.getReleaseContextCore },\n get createRelease() { return releases.createReleaseCore },\n get updateRelease() { return releases.updateReleaseCore },\n get deleteRelease() { return releases.deleteReleaseCore },\n get listCodeScanningAlerts() { return security.listCodeScanningAlertsCore },\n get listDependabotAlerts() { return security.listDependabotAlertsCore },\n get listSecretScanningAlerts() { return security.listSecretScanningAlertsCore },\n} satisfies Record<GithubToolName, (args: never) => Promise<unknown>>\n"],"mappings":"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"}