@github-tools/sdk 1.20.0 → 1.22.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 (66) hide show
  1. package/README.md +50 -17
  2. package/dist/{approval-policy--kByBqhT.mjs → approval-policy-C2rcAY77.mjs} +3 -4
  3. package/dist/{approval-policy--kByBqhT.mjs.map → approval-policy-C2rcAY77.mjs.map} +1 -1
  4. package/dist/connect/eve.d.mts +2 -4
  5. package/dist/connect/eve.d.mts.map +1 -1
  6. package/dist/connect/eve.mjs +3 -4
  7. package/dist/connect/eve.mjs.map +1 -1
  8. package/dist/connect.d.mts +5 -11
  9. package/dist/connect.d.mts.map +1 -1
  10. package/dist/connect.mjs +3 -4
  11. package/dist/{cores-FLzAv2tu.mjs → cores-CMUr_SEv.mjs} +21 -4
  12. package/dist/cores-CMUr_SEv.mjs.map +1 -0
  13. package/dist/{tool-types-OFyE3z0C.d.mts → dry-run-BAbes7Mv.d.mts} +168 -40
  14. package/dist/dry-run-BAbes7Mv.d.mts.map +1 -0
  15. package/dist/{evaluation-BtoHbxuQ.mjs → evaluation-DskA4Lzk.mjs} +4 -6
  16. package/dist/{evaluation-BtoHbxuQ.mjs.map → evaluation-DskA4Lzk.mjs.map} +1 -1
  17. package/dist/eve-runtime-Bmdw1C-K.d.mts +127 -0
  18. package/dist/eve-runtime-Bmdw1C-K.d.mts.map +1 -0
  19. package/dist/{eve-runtime-C-0doyHq.mjs → eve-runtime-DM9yjOsG.mjs} +193 -22
  20. package/dist/eve-runtime-DM9yjOsG.mjs.map +1 -0
  21. package/dist/eve-runtime.d.mts +5 -5
  22. package/dist/eve-runtime.mjs +4 -4
  23. package/dist/eve.d.mts +103 -63
  24. package/dist/eve.d.mts.map +1 -1
  25. package/dist/eve.mjs +104 -63
  26. package/dist/eve.mjs.map +1 -1
  27. package/dist/{index-C3wlz660.d.mts → index-DgCZi9Ns.d.mts} +52 -56
  28. package/dist/index-DgCZi9Ns.d.mts.map +1 -0
  29. package/dist/index.d.mts +3 -3
  30. package/dist/index.mjs +4 -4
  31. package/dist/{interrupts-BSDPwdJ2.d.mts → interrupts-MwQ_v_PF.d.mts} +1 -3
  32. package/dist/interrupts-MwQ_v_PF.d.mts.map +1 -0
  33. package/dist/rolldown-runtime-D8jQpDG7.mjs +12 -0
  34. package/dist/{src-DyiAVHKl.mjs → src-Djn_FFj1.mjs} +183 -55
  35. package/dist/src-Djn_FFj1.mjs.map +1 -0
  36. package/dist/tanstack/interrupts.d.mts +1 -1
  37. package/dist/tanstack/interrupts.mjs +1 -2
  38. package/dist/tanstack.d.mts +534 -208
  39. package/dist/tanstack.d.mts.map +1 -1
  40. package/dist/tanstack.mjs +37 -21
  41. package/dist/tanstack.mjs.map +1 -1
  42. package/dist/{token-DIwB-wtp.mjs → token-HpJhSRkl.mjs} +7 -10
  43. package/dist/token-HpJhSRkl.mjs.map +1 -0
  44. package/dist/{types-CJqhvQwi.d.mts → types-8KtcPTao.d.mts} +3 -7
  45. package/dist/types-8KtcPTao.d.mts.map +1 -0
  46. package/dist/{types-ITYfXMtY.d.mts → types-C-BIKmas.d.mts} +14 -4
  47. package/dist/types-C-BIKmas.d.mts.map +1 -0
  48. package/dist/workflow.d.mts +9 -4
  49. package/dist/workflow.d.mts.map +1 -1
  50. package/dist/workflow.mjs +7 -6
  51. package/dist/workflow.mjs.map +1 -1
  52. package/dist/{write-tools-DnGZw-RD.mjs → write-tools-BR29EOoM.mjs} +483 -113
  53. package/dist/write-tools-BR29EOoM.mjs.map +1 -0
  54. package/package.json +1 -1
  55. package/dist/cores-FLzAv2tu.mjs.map +0 -1
  56. package/dist/eve-runtime-C-0doyHq.mjs.map +0 -1
  57. package/dist/eve-runtime-CflZNuXD.d.mts +0 -85
  58. package/dist/eve-runtime-CflZNuXD.d.mts.map +0 -1
  59. package/dist/index-C3wlz660.d.mts.map +0 -1
  60. package/dist/interrupts-BSDPwdJ2.d.mts.map +0 -1
  61. package/dist/src-DyiAVHKl.mjs.map +0 -1
  62. package/dist/token-DIwB-wtp.mjs.map +0 -1
  63. package/dist/tool-types-OFyE3z0C.d.mts.map +0 -1
  64. package/dist/types-CJqhvQwi.d.mts.map +0 -1
  65. package/dist/types-ITYfXMtY.d.mts.map +0 -1
  66. package/dist/write-tools-DnGZw-RD.mjs.map +0 -1
package/README.md CHANGED
@@ -32,9 +32,9 @@ They all reach the GitHub API, but none of them were built as an agent's tool la
32
32
  | Scripts, chat backends, or an existing AI SDK app | Quick Start below |
33
33
  | A TanStack AI app | [TanStack AI](#tanstack-ai) |
34
34
  | Production agents that must survive restarts and timeouts | [Durable Agents](#durable-agents-vercel-workflow-sdk) |
35
- | A GitHub, Slack, or Discord bot | [Chat SDK docs](https://github-tools.com/frameworks/chat-sdk) |
35
+ | A GitHub, Slack, or Discord bot | [Chat SDK docs](https://github-tools.com/integrations/chat-sdk) |
36
36
 
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.
37
+ 97 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/reference/tools). Write operations support granular approval control out of the box.
38
38
 
39
39
  ## Installation
40
40
 
@@ -103,18 +103,18 @@ 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`, `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` |
106
+ | `code-review` | `getPullRequest`, `listPullRequests`, `listPullRequestFiles`, `listPullRequestReviews`, `listPullRequestReviewThreads`, `getPullRequestContext`, `getCommit`, `getBlame`, `compareCommits`, `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getBranchRules`, `getCollaboratorPermission`, `listCheckRuns`, `getCombinedStatus`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers`, `createCommitStatus` |
107
+ | `issue-triage` | `listIssues`, `getIssueContext`, `listIssueComments`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `listMilestones`, `listSubIssues`, `addSubIssue`, `listIssueReactions`, `addIssueReaction`, `listCommentReactions`, `addCommentReaction`, `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `searchRepositories`, `searchIssues`, `getPullRequest`, `getCollaboratorPermission` |
108
108
  | `repo-explorer` | All read-only tools including discussions, gists, workflows, checks/statuses, and releases (no write operations) |
109
- | `ci-ops` | `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getBranchRules`, `getCommit`, `getPullRequest`, `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `getWorkflowJobLogs`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun` |
109
+ | `ci-ops` | `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getBranchRules`, `getCommit`, `getPullRequest`, `listWorkflows`, `listWorkflowRuns`, `getWorkflowRun`, `listWorkflowJobs`, `getWorkflowJobLogs`, `listCheckRuns`, `getCombinedStatus`, `getCiFailureContext`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`, `createCommitStatus` |
110
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
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
112
  | `discussion-moderator` | `listDiscussions`, `getDiscussion`, `addDiscussionComment`, `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `searchIssues`, `getIssueContext`, `addIssueComment` |
113
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 |
114
+ | `pr-author` | `getRepository`, `getFileContent`, `getRepositoryTree`, `searchCode`, `listCommits`, `listBranches`, `getBranchRules`, `getCollaboratorPermission`, `createBranch`, `deleteBranch`, `createOrUpdateFile`, `editFiles`, `createPullRequest`, `updatePullRequest`, `updatePullRequestBranch`, `listPullRequests`, `getPullRequest`, `listPullRequestFiles`, `listPullRequestReviewThreads`, `replyToReviewComment`, `resolveReviewThread`, `compareCommits`, `getCommit` |
115
+ | `maintainer` | All 97 tools |
116
116
 
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).
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/reference/tools).
118
118
 
119
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
 
@@ -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. 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).
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/approval#sign-approvals).
141
141
 
142
142
  ```ts
143
143
  // All writes need approval (default)
@@ -164,12 +164,36 @@ createGithubTools({
164
164
  })
165
165
  ```
166
166
 
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`.
167
+ Write tools: `createBranch`, `deleteBranch`, `forkRepository`, `createRepository`, `createOrUpdateFile`, `editFiles`, `createPullRequest`, `mergePullRequest`, `enablePullRequestAutoMerge`, `disablePullRequestAutoMerge`, `updatePullRequest`, `updatePullRequestBranch`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers`, `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `addSubIssue`, `addIssueReaction`, `addCommentReaction`, `addDiscussionComment`, `markNotificationRead`, `createGist`, `updateGist`, `deleteGist`, `createGistComment`, `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun`, `createCommitStatus`, `createRelease`, `updateRelease`, `deleteRelease`.
168
168
 
169
169
  All other tools are read-only and never require approval.
170
170
 
171
171
  With `'auto'`, a fast evaluation model checks each call to a low-risk write tool (`AUTO_APPROVAL_TOOLS`). It scores how costly the call would be if wrong, and whether the latest user message asked for it. The call runs without a prompt only when both checks pass. Other write tools keep requiring approval. Any tool can opt in per tool (`{ updateIssue: 'auto' }`). `'auto'` needs `ai` 7.0.105 or later and is not available on the durable agent. Tune it with `evaluation: { maxRisk, minIntent, model }`. The default model is TypeSafe's Jev.
172
172
 
173
+ ### Guardrails
174
+
175
+ Approval decides whether a call runs. `guardrails` decide where any call may act, whoever approves it:
176
+
177
+ ```ts
178
+ createGithubTools({
179
+ token,
180
+ guardrails: {
181
+ repositories: ['vercel-labs/*'], // 'owner/repo' or 'owner/*'; a call to any other repository fails
182
+ branches: ['agent/*'], // commits, branch creation and deletion, merges, and pull request branch updates must target a matching branch
183
+ },
184
+ })
185
+ ```
186
+
187
+ The checks run before any request reaches GitHub, and a blocked call fails with `github_tools.GUARDRAIL_BLOCKED` and a reason the model can act on. Even without `guardrails`, a call whose input contains what looks like a credential (a GitHub, npm, Slack, Stripe, Anthropic, OpenAI, Google or AWS key, or a private key) fails; set `guardrails: { secrets: 'allow' }` to turn that off. `createGithubAgent` denies a blocked write instead of asking for approval. Tools without a repository target (search, gists, notifications) aren't restricted. For tools built from individual factories, wrap the token with `withGithubGuardrails(token, guardrails)`. See [Guardrails](https://github-tools.com/approval#guardrails).
188
+
189
+ ### Shadow mode
190
+
191
+ `dryRun: true` runs reads as usual, but no write reaches GitHub and nobody is asked to approve one. Each write goes through `guardrails`, then returns `{ dryRun: true, tool, input, approval, message }`, where `approval` says whether a person would have been asked. Use it to roll out a bot that runs on its own, test against real data, or compare models, before letting it write. It fits writes that stand on their own (labels, comments, reviews), not chains where a later step needs an earlier write's result. See [Shadow mode](https://github-tools.com/approval#shadow-mode).
192
+
193
+ ### Text from GitHub
194
+
195
+ Tool results drop HTML comments and invisible Unicode characters from issue, pull request, comment, review, release and discussion bodies, since a rendered page hides them but a model reads them. The default agent prompts tell the model to treat GitHub text as data and act only on what the user asked. See [Text from GitHub](https://github-tools.com/approval#text-from-github).
196
+
173
197
  ### Tool overrides
174
198
 
175
199
  The `overrides` option lets you customize any AI SDK [`tool()`](https://ai-sdk.dev/docs/ai-sdk-core/tools-and-tool-calling) property on a per-tool basis, keyed by tool name.
@@ -212,7 +236,7 @@ Classifiable failures become structured [evlog](https://evlog.dev) catalog error
212
236
 
213
237
  Codes: `TOKEN_REQUIRED`, `OIDC_TOKEN_EXPIRED`, `CONNECT_NOT_AUTHORIZED`, `CONNECT_USER_NOT_CONNECTED`, `CONNECT_INSTALLATION_REQUIRED`, `SUBJECT_CONTEXT_REQUIRED`, `UNAUTHORIZED` (401), `FORBIDDEN` (403), `RATE_LIMITED` (403/429), `NOT_FOUND` (404), `VALIDATION_FAILED` (422). Unmapped statuses pass through unchanged; the original Octokit error stays reachable as `cause`.
214
238
 
215
- In the eve extension, a failing tool returns `{ error: { code, message, why, fix, link } }` to the model. With `generateText`/`streamText`, the framework forwards `error.message` (self-sufficient by design); use evlog's `parseError(error)` when you need the full structure. The catalog is exported as `githubToolsErrors`. See the [errors guide](https://github-tools.com/guide/errors).
239
+ In the eve extension, a failing tool returns `{ error: { code, message, why, fix, link } }` to the model. With `generateText`/`streamText`, the framework forwards `error.message` (self-sufficient by design); use evlog's `parseError(error)` when you need the full structure. The catalog is exported as `githubToolsErrors`. See the [errors guide](https://github-tools.com/errors).
216
240
 
217
241
  ## Commit Attribution
218
242
 
@@ -379,7 +403,7 @@ const text = await agent.generate({ prompt: 'Summarize the open pull requests.'
379
403
 
380
404
  Set `GITHUB_TOKEN` and Gateway authentication on the server. `generate()` returns a string and throws on approval interrupts; `stream()` returns TanStack's native event stream. Auto modes use TanStack `decide()` with Gateway Jev and the same approval and routing thresholds as the AI SDK integration. Supply `evaluation.adapter` to use another evaluator. Auto-preset continuations skip routing and expose `repo-explorer` plus pending GitHub tools.
381
405
 
382
- `createGithubTools()` returns an array for TanStack `chat({ tools })`. Direct tools with auto approval also need `createGithubApprovalMiddleware({ tools })` and the shared `githubToolApproval` interrupt from `@github-tools/sdk/tanstack/interrupts`. Register that definition on the client to handle human review. See the [TanStack AI guide](https://github-tools.com/frameworks/tanstack-ai) for tools, streaming, and approval continuation.
406
+ `createGithubTools()` returns an array for TanStack `chat({ tools })`. Direct tools with auto approval also need `createGithubApprovalMiddleware({ tools })` and the shared `githubToolApproval` interrupt from `@github-tools/sdk/tanstack/interrupts`. Register that definition on the client to handle human review. See the [TanStack AI guide](https://github-tools.com/integrations/tanstack-ai) for tools, streaming, and approval continuation.
383
407
 
384
408
  ## eve
385
409
 
@@ -525,6 +549,7 @@ List tools return `{ items, hasMore, page, perPage, nextPage? }` (or add those f
525
549
  | `getRepository` | Get repository metadata (stars, language, default branch, …) |
526
550
  | `listBranches` | List branches (`hasMore` / `nextPage` when there are more) |
527
551
  | `getBranchRules` | List a branch's required checks, required reviews and other protection rules |
552
+ | `getCollaboratorPermission` | Get a user's permission and role on a repository, to check whether they may trigger the bot or approve an action |
528
553
  | `getFileContent` | Read a file or directory listing (prefer `startLine`/`endLine` or `maxLines` for large files) |
529
554
  | `getRepositoryTree` | List the file and directory structure at a given ref (prefer a `path` prefix over `recursive: true`) |
530
555
  | `createBranch` | Create a new branch from an existing branch or commit SHA |
@@ -549,6 +574,7 @@ List tools return `{ items, hasMore, page, perPage, nextPage? }` (or add those f
549
574
  | `enablePullRequestAutoMerge` | Merge a PR automatically once its required checks and reviews pass |
550
575
  | `disablePullRequestAutoMerge` | Cancel a pending auto-merge |
551
576
  | `updatePullRequest` | Update a PR's title, body, state, base branch, or draft status |
577
+ | `updatePullRequestBranch` | Bring a PR branch up to date by merging its base branch into it |
552
578
  | `addPullRequestComment` | Post a comment on a PR |
553
579
  | `updatePullRequestComment` | Edit the body of a PR comment |
554
580
  | `deletePullRequestComment` | Permanently delete a PR comment |
@@ -565,7 +591,7 @@ List tools return `{ items, hasMore, page, perPage, nextPage? }` (or add those f
565
591
  | `getIssue` | Get an issue's details (body truncated by default; set `detail: full` for complete text) |
566
592
  | `getIssueContext` | Fetch an issue plus label names and recent comments in one call |
567
593
  | `listIssueComments` | List comments on an issue (paginated; prefer `getIssueContext` for the first page) |
568
- | `createIssue` | Open a new issue |
594
+ | `createIssue` | Open a new issue, optionally in a milestone |
569
595
  | `addIssueComment` | Post a comment on an issue |
570
596
  | `updateIssueComment` | Edit the body of an issue comment |
571
597
  | `deleteIssueComment` | Permanently delete an issue comment |
@@ -579,6 +605,9 @@ List tools return `{ items, hasMore, page, perPage, nextPage? }` (or add those f
579
605
  | `deleteLabel` | Delete a label from a repository permanently |
580
606
  | `addAssignees` | Assign users to an issue or pull request |
581
607
  | `removeAssignees` | Remove assignees from an issue or pull request |
608
+ | `listMilestones` | List milestones with their due dates and open and closed issue counts |
609
+ | `listSubIssues` | List the sub-issues of an issue |
610
+ | `addSubIssue` | Add an existing issue as a sub-issue, from the same repository or another one with the same owner |
582
611
 
583
612
  ### Reactions
584
613
 
@@ -637,6 +666,7 @@ Pull request conversations share the issue numbering, so the issue-level tools w
637
666
  |---|---|
638
667
  | `listCheckRuns` | List check runs (Checks API: GitHub Actions and other CI providers) for a commit, branch, or tag |
639
668
  | `getCombinedStatus` | Get the combined commit status (Statuses API: legacy CI integrations) for a commit, branch, or tag |
669
+ | `createCommitStatus` | Report a result on a commit as a commit status; works with a PAT or a GitHub App, unlike check runs |
640
670
  | `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 |
641
671
 
642
672
  ### Releases
@@ -686,14 +716,14 @@ Create one at **GitHub → Settings → Developer settings → Personal access t
686
716
 
687
717
  | Permission | Level | Required for |
688
718
  |---|---|---|
689
- | **Metadata** | Read-only | Always required (auto-included) |
719
+ | **Metadata** | Read-only | Always required (auto-included); the only permission `getCollaboratorPermission` needs |
690
720
  | **Contents** | Read-only | `getRepository`, `listBranches`, `getBranchRules`, `getFileContent`, `getRepositoryTree`, `listCommits`, `getCommit`, `getBlame`, `compareCommits`, `listReleases`, `getLatestRelease`, `getRelease`, `getReleaseContext` |
691
721
  | **Contents** | Read and write | `createBranch`, `deleteBranch`, `createOrUpdateFile`, `editFiles`, `createRelease`, `updateRelease`, `deleteRelease` |
692
722
  | **Administration** | Read and write | `forkRepository`, `createRepository` |
693
723
  | **Pull requests** | Read-only | `listPullRequests`, `getPullRequest`, `listPullRequestFiles`, `listPullRequestReviews`, `listPullRequestReviewThreads`, `getPullRequestContext` |
694
- | **Pull requests** | Read and write | `createPullRequest`, `editFiles` (with `pullRequest`), `mergePullRequest`, `enablePullRequestAutoMerge`, `disablePullRequestAutoMerge`, `updatePullRequest`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers` |
695
- | **Issues** | Read-only | `listIssues`, `getIssue`, `getIssueContext`, `listIssueComments`, `listLabels`, `listIssueReactions`, `listCommentReactions` |
696
- | **Issues** | Read and write | `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `addIssueReaction`, `addCommentReaction` |
724
+ | **Pull requests** | Read and write | `createPullRequest`, `editFiles` (with `pullRequest`), `mergePullRequest`, `enablePullRequestAutoMerge`, `disablePullRequestAutoMerge`, `updatePullRequest`, `updatePullRequestBranch`, `addPullRequestComment`, `updatePullRequestComment`, `deletePullRequestComment`, `createPullRequestReview`, `replyToReviewComment`, `resolveReviewThread`, `requestReviewers` |
725
+ | **Issues** | Read-only | `listIssues`, `getIssue`, `getIssueContext`, `listIssueComments`, `listLabels`, `listMilestones`, `listSubIssues`, `listIssueReactions`, `listCommentReactions` |
726
+ | **Issues** | Read and write | `createIssue`, `addIssueComment`, `updateIssueComment`, `deleteIssueComment`, `closeIssue`, `updateIssue`, `addLabels`, `removeLabel`, `createLabel`, `updateLabel`, `deleteLabel`, `addAssignees`, `removeAssignees`, `addSubIssue`, `addIssueReaction`, `addCommentReaction` |
697
727
  | **Discussions** | Read-only | `listDiscussions`, `getDiscussion` |
698
728
  | **Discussions** | Read and write | `addDiscussionComment` |
699
729
  | **Gists** | Read-only | `listGists`, `getGist`, `listGistComments` |
@@ -703,6 +733,7 @@ Create one at **GitHub → Settings → Developer settings → Personal access t
703
733
  | **Actions** | Read and write | `triggerWorkflow`, `cancelWorkflowRun`, `rerunWorkflowRun` |
704
734
  | **Checks** | Read-only | `listCheckRuns`, `getCiFailureContext` |
705
735
  | **Commit statuses** | Read-only | `getCombinedStatus`, `getCiFailureContext` |
736
+ | **Commit statuses** | Read and write | `createCommitStatus` |
706
737
  | **Code scanning alerts** | Read-only | `listCodeScanningAlerts` |
707
738
  | **Dependabot alerts** | Read-only | `listDependabotAlerts` |
708
739
  | **Secret scanning alerts** | Read-only | `listSecretScanningAlerts` |
@@ -729,6 +760,8 @@ type GithubToolsOptions = {
729
760
  requireApproval?: boolean | Partial<Record<GithubWriteToolName, boolean>>
730
761
  preset?: GithubToolPreset | GithubToolPreset[]
731
762
  context?: GithubToolsContext // default owner / repo / PR / issue / ref
763
+ guardrails?: { repositories?: string[], branches?: string[] } // where any call may act
764
+ dryRun?: boolean // shadow mode: reads run, writes don't reach GitHub or ask anyone
732
765
  }
733
766
 
734
767
  type GithubTokenInput = string | (() => Promise<string>)
@@ -1,5 +1,5 @@
1
- import { s as AUTO_APPROVAL_TOOLS } from "./write-tools-DnGZw-RD.mjs";
2
- //#region src/core/approval-policy.ts
1
+ import { c as AUTO_APPROVAL_TOOLS } from "./write-tools-BR29EOoM.mjs";
2
+ // src/core/approval-policy.ts
3
3
  const autoApprovalTools = new Set(AUTO_APPROVAL_TOOLS);
4
4
  /**
5
5
  * Resolve a write tool's approval mode from global or per-tool config.
@@ -11,7 +11,6 @@ function resolveApprovalMode(toolName, config) {
11
11
  if (typeof config === "boolean") return config;
12
12
  return config[toolName] ?? true;
13
13
  }
14
- //#endregion
15
14
  export { resolveApprovalMode as t };
16
15
 
17
- //# sourceMappingURL=approval-policy--kByBqhT.mjs.map
16
+ //# sourceMappingURL=approval-policy-C2rcAY77.mjs.map
@@ -1 +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
+ {"version":3,"file":"approval-policy-C2rcAY77.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,5 +1,4 @@
1
- import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-CJqhvQwi.mjs";
2
- //#region src/connect/eve.d.ts
1
+ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-8KtcPTao.mjs";
3
2
  /**
4
3
  * Register eve GitHub tools backed by a Vercel Connect connector.
5
4
  * Scopes are derived from `preset`, or from the resolved `include`/`exclude`
@@ -13,7 +12,7 @@ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "..
13
12
  * import is also **not durable** under multi-turn eve Workflow replay (`defineTool` inside
14
13
  * `node_modules` is not hoisted); mount `@github-tools/eve-extension` instead
15
14
  * (see https://github.com/vercel-labs/github-tools/issues/51 and
16
- * https://github-tools.com/frameworks/eve-extension).
15
+ * https://github-tools.com/integrations/eve).
17
16
  *
18
17
  * Shared runtime helpers used by the extension are on `@github-tools/sdk/eve-runtime`
19
18
  * (not deprecated).
@@ -24,5 +23,4 @@ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "..
24
23
  * eve extension (pre-built) so that workaround is unnecessary.
25
24
  */
26
25
  export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubEveToolsOptions): import("eve/tools").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve/tools").DynamicContext>;
27
- //#endregion
28
26
  //# 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,mDAAiC,oCAAA,uCAAA"}
1
+ {"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wBA4BgB,mBACd,WAAW,sBACX,UAAS,mDAAiC,oCAAA,uCAAA"}
@@ -1,6 +1,6 @@
1
1
  import { createGithubTools } from "../eve.mjs";
2
- import { t as connectGithubToken } from "../token-DIwB-wtp.mjs";
3
- //#region src/connect/eve.ts
2
+ import { t as connectGithubToken } from "../token-HpJhSRkl.mjs";
3
+ // src/connect/eve.ts
4
4
  /**
5
5
  * Register eve GitHub tools backed by a Vercel Connect connector.
6
6
  * Scopes are derived from `preset`, or from the resolved `include`/`exclude`
@@ -14,7 +14,7 @@ import { t as connectGithubToken } from "../token-DIwB-wtp.mjs";
14
14
  * import is also **not durable** under multi-turn eve Workflow replay (`defineTool` inside
15
15
  * `node_modules` is not hoisted); mount `@github-tools/eve-extension` instead
16
16
  * (see https://github.com/vercel-labs/github-tools/issues/51 and
17
- * https://github-tools.com/frameworks/eve-extension).
17
+ * https://github-tools.com/integrations/eve).
18
18
  *
19
19
  * Shared runtime helpers used by the extension are on `@github-tools/sdk/eve-runtime`
20
20
  * (not deprecated).
@@ -39,7 +39,6 @@ function connectGithubTools(connector, options = {}) {
39
39
  })
40
40
  });
41
41
  }
42
- //#endregion
43
42
  export { connectGithubTools };
44
43
 
45
44
  //# sourceMappingURL=eve.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"eve.mjs","names":["createEveGithubTools"],"sources":["../../src/connect/eve.ts"],"sourcesContent":["import { createGithubTools as createEveGithubTools } from '../eve'\nimport type { GithubConnectorInput } from './connector'\nimport { connectGithubToken } from './token'\nimport type { ConnectGithubEveToolsOptions } from './types'\n\n/**\n * Register eve GitHub tools backed by a Vercel Connect connector.\n * Scopes are derived from `preset`, or from the resolved `include`/`exclude`\n * tool set when those are set, unless overridden in `connect.scopes`.\n *\n * `connector` may be a static name or a resolver function — e.g. to pick a\n * different connector per environment (production vs. preview) or tenant.\n *\n * @deprecated Use the mountable `@github-tools/eve-extension` instead and pass `connector`\n * directly to `githubExtension(...)` — no separate Connect import is needed. This direct\n * import is also **not durable** under multi-turn eve Workflow replay (`defineTool` inside\n * `node_modules` is not hoisted); mount `@github-tools/eve-extension` instead\n * (see https://github.com/vercel-labs/github-tools/issues/51 and\n * https://github-tools.com/frameworks/eve-extension).\n *\n * Shared runtime helpers used by the extension are on `@github-tools/sdk/eve-runtime`\n * (not deprecated).\n *\n * TODO(eve-connect-bundle): eve's authored-module bundler inlines workspace-linked\n * SDK code and code-splits `@vercel/connect` unless the agent sets\n * `build.externalDependencies: ['@vercel/connect']` in `agent.ts`. Prefer the\n * eve extension (pre-built) so that workaround is unnecessary.\n */\nexport function connectGithubTools(\n connector: GithubConnectorInput,\n options: ConnectGithubEveToolsOptions = {},\n) {\n const { connect, preset, include, exclude, ...rest } = options\n\n return createEveGithubTools({\n ...rest,\n preset,\n include,\n exclude,\n token: connectGithubToken(connector, { preset, include, exclude, params: connect }),\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,SAAgB,mBACd,WACA,UAAwC,CAAC,GACzC;CACA,MAAM,EAAE,SAAS,QAAQ,SAAS,SAAS,GAAG,SAAS;CAEvD,OAAOA,kBAAqB;EAC1B,GAAG;EACH;EACA;EACA;EACA,OAAO,mBAAmB,WAAW;GAAE;GAAQ;GAAS;GAAS,QAAQ;EAAQ,CAAC;CACpF,CAAC;AACH"}
1
+ {"version":3,"file":"eve.mjs","names":["createEveGithubTools"],"sources":["../../src/connect/eve.ts"],"sourcesContent":["import { createGithubTools as createEveGithubTools } from '../eve'\nimport type { GithubConnectorInput } from './connector'\nimport { connectGithubToken } from './token'\nimport type { ConnectGithubEveToolsOptions } from './types'\n\n/**\n * Register eve GitHub tools backed by a Vercel Connect connector.\n * Scopes are derived from `preset`, or from the resolved `include`/`exclude`\n * tool set when those are set, unless overridden in `connect.scopes`.\n *\n * `connector` may be a static name or a resolver function — e.g. to pick a\n * different connector per environment (production vs. preview) or tenant.\n *\n * @deprecated Use the mountable `@github-tools/eve-extension` instead and pass `connector`\n * directly to `githubExtension(...)` — no separate Connect import is needed. This direct\n * import is also **not durable** under multi-turn eve Workflow replay (`defineTool` inside\n * `node_modules` is not hoisted); mount `@github-tools/eve-extension` instead\n * (see https://github.com/vercel-labs/github-tools/issues/51 and\n * https://github-tools.com/integrations/eve).\n *\n * Shared runtime helpers used by the extension are on `@github-tools/sdk/eve-runtime`\n * (not deprecated).\n *\n * TODO(eve-connect-bundle): eve's authored-module bundler inlines workspace-linked\n * SDK code and code-splits `@vercel/connect` unless the agent sets\n * `build.externalDependencies: ['@vercel/connect']` in `agent.ts`. Prefer the\n * eve extension (pre-built) so that workaround is unnecessary.\n */\nexport function connectGithubTools(\n connector: GithubConnectorInput,\n options: ConnectGithubEveToolsOptions = {},\n) {\n const { connect, preset, include, exclude, ...rest } = options\n\n return createEveGithubTools({\n ...rest,\n preset,\n include,\n exclude,\n token: connectGithubToken(connector, { preset, include, exclude, params: connect }),\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,SAAgB,mBACd,WACA,UAAwC,CAAC,GACzC;CACA,MAAM,EAAE,SAAS,QAAQ,SAAS,SAAS,GAAG,SAAS;CAEvD,OAAOA,kBAAqB;EAC1B,GAAG;EACH;EACA;EACA;EACA,OAAO,mBAAmB,WAAW;GAAE;GAAQ;GAAS;GAAS,QAAQ;EAAQ,CAAC;CACpF,CAAC;AACH"}
@@ -1,14 +1,13 @@
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";
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-8KtcPTao.mjs";
2
+ import { B as GithubToolPreset, G as GithubToolName, M as GithubTokenCall, N as GithubTokenInput, r as AllGithubTools } from "./dry-run-BAbes7Mv.mjs";
3
+ import "./eve-runtime-Bmdw1C-K.mjs";
4
4
  import { ConnectTokenSubject } from "@vercel/connect";
5
- //#region src/connect/scopes.d.ts
6
5
  /**
7
6
  * Per-tool Connect scopes, derived from `GITHUB_TOOL_CATALOG`. Empty arrays are
8
7
  * intentional for gist and notification tools (installation tokens cannot
9
8
  * satisfy those APIs).
10
9
  */
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[]>;
10
+ export declare const TOOL_CONNECT_SCOPES: Record<"getRepository" | "listBranches" | "getFileContent" | "getRepositoryTree" | "createBranch" | "deleteBranch" | "forkRepository" | "createRepository" | "createOrUpdateFile" | "getBranchRules" | "getCollaboratorPermission" | "editFiles" | "listPullRequests" | "getPullRequest" | "createPullRequest" | "mergePullRequest" | "enablePullRequestAutoMerge" | "disablePullRequestAutoMerge" | "updatePullRequest" | "updatePullRequestBranch" | "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" | "listMilestones" | "listSubIssues" | "addSubIssue" | "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" | "createCommitStatus" | "getCiFailureContext" | "listReleases" | "getLatestRelease" | "getRelease" | "getReleaseContext" | "createRelease" | "updateRelease" | "deleteRelease" | "listCodeScanningAlerts" | "listDependabotAlerts" | "listSecretScanningAlerts", readonly string[]>;
12
11
  /**
13
12
  * Vercel Connect scope strings mapped to each {@link GithubToolPreset}, derived
14
13
  * from the preset's tools so a tool added to a preset brings its scopes along.
@@ -57,8 +56,6 @@ type ConnectScopeSelection = {
57
56
  * so a hand-picked `include` list does not mint the full admin surface.
58
57
  */
59
58
  export declare function connectGithubScopesForSelection(selection?: ConnectScopeSelection): string[];
60
- //#endregion
61
- //#region src/connect/token.d.ts
62
59
  /**
63
60
  * Returns a lazy GitHub token provider backed by a Vercel Connect connector.
64
61
  * Scopes are derived from `preset`, or from the resolved `include`/`exclude`
@@ -77,8 +74,6 @@ export declare function connectGithubScopesForSelection(selection?: ConnectScope
77
74
  * same repository reuse one token.
78
75
  */
79
76
  export declare function connectGithubToken(connector: GithubConnectorInput, options?: ConnectGithubTokenOptions): GithubTokenInput;
80
- //#endregion
81
- //#region src/connect/tools.d.ts
82
77
  /**
83
78
  * Create GitHub tools backed by a Vercel Connect connector.
84
79
  * Scopes are derived from `preset` unless overridden in `connect.scopes`.
@@ -86,7 +81,6 @@ export declare function connectGithubToken(connector: GithubConnectorInput, opti
86
81
  * `connector` may be a static name or a resolver function — e.g. to pick a
87
82
  * different connector per environment (production vs. preview) or tenant.
88
83
  */
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">;
90
- //#endregion
84
+ export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubToolsOptions): AllGithubTools | Pick<AllGithubTools, "getRepository" | "listBranches" | "getFileContent" | "getRepositoryTree" | "createBranch" | "deleteBranch" | "forkRepository" | "createRepository" | "createOrUpdateFile" | "getBranchRules" | "getCollaboratorPermission" | "editFiles" | "listPullRequests" | "getPullRequest" | "createPullRequest" | "mergePullRequest" | "enablePullRequestAutoMerge" | "disablePullRequestAutoMerge" | "updatePullRequest" | "updatePullRequestBranch" | "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" | "listMilestones" | "listSubIssues" | "addSubIssue" | "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" | "createCommitStatus" | "getCiFailureContext" | "listReleases" | "getLatestRelease" | "getRelease" | "getReleaseContext" | "createRelease" | "updateRelease" | "deleteRelease" | "listCodeScanningAlerts" | "listDependabotAlerts" | "listSecretScanningAlerts">;
91
85
  export { type ConnectGithubEveToolsOptions, type ConnectGithubTokenOptions, type ConnectGithubToolsOptions, type ConnectScopeSelection, type ConnectTokenSubject, type GithubConnectParams, type GithubConnectParamsInput, type GithubConnectParamsResolver, type GithubConnectorInput, type GithubTokenCall, resolveGithubConnector };
92
86
  //# 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":";;;;;;;;;;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"}
1
+ {"version":3,"file":"connect.d.mts","names":["_$___eve_runtime0.AllGithubTools"],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":";;;;;;;;;qBAgCa,qBAAmB;;;;;;;;;;;;;;;;;;;;;;;;qBAmCnB,uBAAqB;;;;;wBAelB,6BACd,SAAS,mBAAmB;;;;;wBAcd,4BAA4B,gBAAgB;KAUhD;EACV,SAAS,mBAAmB;EAC5B,mBAAmB;EACnB,mBAAmB;;;;;;;;;;wBA6BL,gCAAgC,YAAW;;;;;;;;;;;;;;;;;;wBC5G3C,mBACd,WAAW,sBACX,UAAS,4BACR;;;;;;;;wBCtBa,mBACd,WAAW,sBACX,UAAS,4BAAAA,iBAA8B,KAAAA"}
package/dist/connect.mjs CHANGED
@@ -1,6 +1,6 @@
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
- //#region src/connect/tools.ts
1
+ 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-HpJhSRkl.mjs";
2
+ import { t as createGithubTools } from "./src-Djn_FFj1.mjs";
3
+ // src/connect/tools.ts
4
4
  /**
5
5
  * Create GitHub tools backed by a Vercel Connect connector.
6
6
  * Scopes are derived from `preset` unless overridden in `connect.scopes`.
@@ -19,7 +19,6 @@ function connectGithubTools(connector, options = {}) {
19
19
  })
20
20
  });
21
21
  }
22
- //#endregion
23
22
  export { PRESET_CONNECT_SCOPES, TOOL_CONNECT_SCOPES, connectGithubScopesForPreset, connectGithubScopesForSelection, connectGithubScopesForTools, connectGithubToken, connectGithubTools, resolveGithubConnector };
24
23
 
25
24
  //# sourceMappingURL=connect.mjs.map
@@ -1,5 +1,5 @@
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
- //#region src/core/cores.ts
1
+ import { A as listDependabotAlertsCore, An as getReleaseCore, Ar as updatePullRequestBranchCore, At as addDiscussionCommentCore, Ba as getRepositoryCore, Bi as updateIssueCore, Br as addAssigneesCore, D as listCodeScanningAlertsCore, Dn as getLatestReleaseCore, Dr as resolveReviewThreadCore, Dt as updateGistCore, G as addCommentReactionCore, Gn as createPullRequestReviewCore, Gt as getPullRequestContextCore, H as searchRepositoriesCore, Hn as createPullRequestCore, Ht as getIssueContextCore, I as searchCodeCore, In as updateReleaseCore, Ir as updatePullRequestCore, It as listDiscussionsCore, J as addIssueReactionCore, Jn as deletePullRequestCommentCore, Jt as getReleaseContextCore, Ka as listBranchesCore, Ki as compareCommitsCore, Kr as addLabelsCore, La as getFileContentCore, Li as updateIssueCommentCore, N as listSecretScanningAlertsCore, Nn as listReleasesCore, Nr as updatePullRequestCommentCore, Nt as getDiscussionCore, Oa as forkRepositoryCore, Oi as listSubIssuesCore, Pa as getCollaboratorPermissionCore, Pi as removeLabelCore, Qi as getCommitCore, Qr as closeIssueCore, Sa as deleteBranchCore, Si as listLabelsCore, Ta as editFilesCore, Ti as listMilestonesCore, Ua as getRepositoryTreeCore, Ui as updateLabelCore, Ur as addIssueCommentCore, Yi as getBlameCore, Yr as addSubIssueCore, Z as listCommentReactionsCore, Zn as disablePullRequestAutoMergeCore, Zt as cancelWorkflowRunCore, en as getWorkflowJobLogsCore, er as enablePullRequestAutoMergeCore, et as listIssueReactionsCore, fn as listWorkflowsCore, fr as listPullRequestReviewsCore, ft as createGistCore, ga as createOrUpdateFileCore, gi as listIssueCommentsCore, hn as rerunWorkflowRunCore, hr as listPullRequestsCore, ht as deleteGistCore, ia as createCommitStatusCore, ii as createLabelCore, ja as getBranchRulesCore, ji as removeAssigneesCore, ln as listWorkflowRunsCore, lr as listPullRequestReviewThreadsCore, lt as createGistCommentCore, on as listWorkflowJobsCore, or as listPullRequestFilesCore, ot as markNotificationReadCore, pa as createBranchCore, pi as getIssueCore, rn as getWorkflowRunCore, rr as getPullRequestCore, rt as listNotificationsCore, sa as getCombinedStatusCore, si as deleteIssueCommentCore, ta as listCommitsCore, ti as createIssueCore, ua as listCheckRunsCore, ui as deleteLabelCore, vn as triggerWorkflowCore, vr as mergePullRequestCore, vt as getGistCore, wn as deleteReleaseCore, wr as requestReviewersCore, wt as listGistsCore, xn as createReleaseCore, xr as replyToReviewCommentCore, xt as listGistCommentsCore, ya as createRepositoryCore, yi as listIssuesCore, z as searchIssuesCore, zn as addPullRequestCommentCore, zt as getCiFailureContextCore } from "./write-tools-BR29EOoM.mjs";
2
+ // src/core/cores.ts
3
3
  /**
4
4
  * The `*Core` implementation of every tool, keyed by tool name.
5
5
  *
@@ -43,6 +43,9 @@ const GITHUB_TOOL_CORES = {
43
43
  get getBranchRules() {
44
44
  return getBranchRulesCore;
45
45
  },
46
+ get getCollaboratorPermission() {
47
+ return getCollaboratorPermissionCore;
48
+ },
46
49
  get listPullRequests() {
47
50
  return listPullRequestsCore;
48
51
  },
@@ -64,6 +67,9 @@ const GITHUB_TOOL_CORES = {
64
67
  get updatePullRequest() {
65
68
  return updatePullRequestCore;
66
69
  },
70
+ get updatePullRequestBranch() {
71
+ return updatePullRequestBranchCore;
72
+ },
67
73
  get addPullRequestComment() {
68
74
  return addPullRequestCommentCore;
69
75
  },
@@ -151,6 +157,15 @@ const GITHUB_TOOL_CORES = {
151
157
  get removeAssignees() {
152
158
  return removeAssigneesCore;
153
159
  },
160
+ get listMilestones() {
161
+ return listMilestonesCore;
162
+ },
163
+ get listSubIssues() {
164
+ return listSubIssuesCore;
165
+ },
166
+ get addSubIssue() {
167
+ return addSubIssueCore;
168
+ },
154
169
  get listIssueReactions() {
155
170
  return listIssueReactionsCore;
156
171
  },
@@ -250,6 +265,9 @@ const GITHUB_TOOL_CORES = {
250
265
  get getCombinedStatus() {
251
266
  return getCombinedStatusCore;
252
267
  },
268
+ get createCommitStatus() {
269
+ return createCommitStatusCore;
270
+ },
253
271
  get getCiFailureContext() {
254
272
  return getCiFailureContextCore;
255
273
  },
@@ -284,7 +302,6 @@ const GITHUB_TOOL_CORES = {
284
302
  return listSecretScanningAlertsCore;
285
303
  }
286
304
  };
287
- //#endregion
288
305
  export { GITHUB_TOOL_CORES as t };
289
306
 
290
- //# sourceMappingURL=cores-FLzAv2tu.mjs.map
307
+ //# sourceMappingURL=cores-CMUr_SEv.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cores-CMUr_SEv.mjs","names":["repository.getRepositoryCore","repository.listBranchesCore","repository.getFileContentCore","repository.getRepositoryTreeCore","repository.createBranchCore","repository.deleteBranchCore","repository.forkRepositoryCore","repository.createRepositoryCore","repository.createOrUpdateFileCore","repository.editFilesCore","repository.getBranchRulesCore","repository.getCollaboratorPermissionCore","pullRequests.listPullRequestsCore","pullRequests.getPullRequestCore","pullRequests.createPullRequestCore","pullRequests.mergePullRequestCore","pullRequests.enablePullRequestAutoMergeCore","pullRequests.disablePullRequestAutoMergeCore","pullRequests.updatePullRequestCore","pullRequests.updatePullRequestBranchCore","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","issues.listMilestonesCore","issues.listSubIssuesCore","issues.addSubIssueCore","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","checks.createCommitStatusCore","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 getCollaboratorPermission() { return repository.getCollaboratorPermissionCore },\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 updatePullRequestBranch() { return pullRequests.updatePullRequestBranchCore },\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 listMilestones() { return issues.listMilestonesCore },\n get listSubIssues() { return issues.listSubIssuesCore },\n get addSubIssue() { return issues.addSubIssueCore },\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 createCommitStatus() { return checks.createCommitStatusCore },\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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"}