@github-tools/sdk 1.16.1 → 1.18.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 (60) hide show
  1. package/README.md +51 -15
  2. package/dist/connect/eve.d.mts +2 -2
  3. package/dist/connect/eve.d.mts.map +1 -1
  4. package/dist/connect/eve.mjs +1 -1
  5. package/dist/connect.d.mts +12 -4
  6. package/dist/connect.d.mts.map +1 -1
  7. package/dist/connect.mjs +2 -2
  8. package/dist/cores-BeLZwcde.mjs +269 -0
  9. package/dist/cores-BeLZwcde.mjs.map +1 -0
  10. package/dist/evaluation-f-2QwBid.mjs +210 -0
  11. package/dist/evaluation-f-2QwBid.mjs.map +1 -0
  12. package/dist/{eve-runtime-BnWUzXdV.d.mts → eve-runtime-DNQrQZ36.d.mts} +5 -5
  13. package/dist/{eve-runtime-BnWUzXdV.d.mts.map → eve-runtime-DNQrQZ36.d.mts.map} +1 -1
  14. package/dist/{eve-runtime-Cfyy1tzp.mjs → eve-runtime-DnhM9Vog.mjs} +14 -11
  15. package/dist/eve-runtime-DnhM9Vog.mjs.map +1 -0
  16. package/dist/eve-runtime.d.mts +5 -5
  17. package/dist/eve-runtime.mjs +4 -3
  18. package/dist/eve.d.mts +4 -4
  19. package/dist/eve.d.mts.map +1 -1
  20. package/dist/eve.mjs +2 -2
  21. package/dist/{index-JH3DVh1R.d.mts → index-DkZvveZP.d.mts} +337 -11
  22. package/dist/index-DkZvveZP.d.mts.map +1 -0
  23. package/dist/index.d.mts +3 -3
  24. package/dist/index.mjs +3 -3
  25. package/dist/instructions-BuypoY0x.mjs +148 -0
  26. package/dist/instructions-BuypoY0x.mjs.map +1 -0
  27. package/dist/interrupts-BSDPwdJ2.d.mts +60 -0
  28. package/dist/interrupts-BSDPwdJ2.d.mts.map +1 -0
  29. package/dist/{src-C54blWpT.mjs → src-Bx5p1Unc.mjs} +130 -232
  30. package/dist/src-Bx5p1Unc.mjs.map +1 -0
  31. package/dist/tanstack/interrupts.d.mts +2 -0
  32. package/dist/tanstack/interrupts.mjs +17 -0
  33. package/dist/tanstack/interrupts.mjs.map +1 -0
  34. package/dist/tanstack.d.mts +4971 -0
  35. package/dist/tanstack.d.mts.map +1 -0
  36. package/dist/tanstack.mjs +465 -0
  37. package/dist/tanstack.mjs.map +1 -0
  38. package/dist/{token-Iop2lapd.mjs → token-BOLrrbTS.mjs} +65 -10
  39. package/dist/token-BOLrrbTS.mjs.map +1 -0
  40. package/dist/tool-types-CrC80SIL.d.mts +1573 -0
  41. package/dist/tool-types-CrC80SIL.d.mts.map +1 -0
  42. package/dist/{types-ve9shBaf.d.mts → types-BmwOpI5-.d.mts} +19 -8
  43. package/dist/types-BmwOpI5-.d.mts.map +1 -0
  44. package/dist/{types-BKXTeCqT.d.mts → types-CPAsEMzx.d.mts} +2 -2
  45. package/dist/{types-BKXTeCqT.d.mts.map → types-CPAsEMzx.d.mts.map} +1 -1
  46. package/dist/workflow.d.mts +7 -5
  47. package/dist/workflow.d.mts.map +1 -1
  48. package/dist/workflow.mjs +3 -2
  49. package/dist/workflow.mjs.map +1 -1
  50. package/dist/{write-tools-BvuWAzwo.mjs → write-tools-BaoTUCg7.mjs} +2293 -2558
  51. package/dist/write-tools-BaoTUCg7.mjs.map +1 -0
  52. package/package.json +32 -16
  53. package/dist/eve-runtime-Cfyy1tzp.mjs.map +0 -1
  54. package/dist/index-JH3DVh1R.d.mts.map +0 -1
  55. package/dist/src-C54blWpT.mjs.map +0 -1
  56. package/dist/token-Iop2lapd.mjs.map +0 -1
  57. package/dist/tool-types-BsfalcyC.d.mts +0 -4163
  58. package/dist/tool-types-BsfalcyC.d.mts.map +0 -1
  59. package/dist/types-ve9shBaf.d.mts.map +0 -1
  60. package/dist/write-tools-BvuWAzwo.mjs.map +0 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-black?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
8
8
  [![license](https://img.shields.io/github/license/vercel-labs/github-tools?color=black)](https://github.com/vercel-labs/github-tools/blob/main/LICENSE)
9
9
 
10
- **Give any agent GitHub access.** A typed tool layer for GitHub AI agents, with presets, human approval, and durable execution. Works with [eve](https://eve.dev), the [AI SDK](https://ai-sdk.dev), Vercel Workflow, and [Chat SDK](https://chat-sdk.dev).
10
+ **Give any agent GitHub access.** A typed tool layer for GitHub AI agents, with presets, human approval, and durable execution. Works with [eve](https://eve.dev), the [AI SDK](https://ai-sdk.dev), [TanStack AI](https://tanstack.com/ai), Vercel Workflow, and [Chat SDK](https://chat-sdk.dev).
11
11
 
12
12
  Docs: **[github-tools.com](https://github-tools.com)**
13
13
 
@@ -17,10 +17,10 @@ They all reach the GitHub API, but none of them were built as an agent's tool la
17
17
 
18
18
  | | `@github-tools/sdk` | GitHub MCP server | `gh` CLI | Raw Octokit |
19
19
  |---|---|---|---|---|
20
- | Integration | Native AI SDK `tool()` objects | MCP wire protocol via a separate process | Shell-out from the agent | Hand-written per call |
20
+ | Integration | Native AI SDK and TanStack AI tools | MCP wire protocol via a separate process | Shell-out from the agent | Hand-written per call |
21
21
  | Human approval | Built in, on by default | Host-dependent, inconsistent | None | You build it |
22
- | Durable / retryable | Every call is a `"use step"` | No | No | No |
23
- | Scoped by task | Presets (7 built-in) | Full server surface, or manual filtering | Full CLI surface | You build it |
22
+ | Durable / retryable | Workflow entry point uses `"use step"` | No | No | No |
23
+ | Scoped by task | Presets (10 built-in) | Full server surface, or manual filtering | Full CLI surface | You build it |
24
24
  | Token-efficient output | Shaped and truncated by design | Raw API responses | Raw text, needs parsing | Raw API responses |
25
25
  | Native eve / Workflow / Chat SDK | Yes | No | No | No |
26
26
 
@@ -30,6 +30,7 @@ They all reach the GitHub API, but none of them were built as an agent's tool la
30
30
  |---|---|
31
31
  | A standalone GitHub agent, fast: 3 files, durable approval | [eve extension](#eve-extension-recommended) |
32
32
  | Scripts, chat backends, or an existing AI SDK app | Quick Start below |
33
+ | A TanStack AI app | [TanStack AI](#tanstack-ai) |
33
34
  | Production agents that must survive restarts and timeouts | [Durable Agents](#durable-agents-vercel-workflow-sdk) |
34
35
  | A GitHub, Slack, or Discord bot | [Chat SDK docs](https://github-tools.com/frameworks/chat-sdk) |
35
36
 
@@ -115,6 +116,8 @@ createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
115
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
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.
120
+
118
121
  ### Cherry-Picking Tools
119
122
 
120
123
  You can also import individual tool factories for full control:
@@ -143,6 +146,9 @@ createGithubTools({ token })
143
146
  // No approval needed
144
147
  createGithubTools({ token, requireApproval: false })
145
148
 
149
+ // Skip approval for low-risk writes the user asked for (labels, comments, reactions, …)
150
+ createGithubTools({ token, requireApproval: 'auto' })
151
+
146
152
  // Granular: only destructive actions need approval
147
153
  createGithubTools({
148
154
  token,
@@ -162,6 +168,8 @@ Write tools: `createBranch`, `deleteBranch`, `forkRepository`, `createRepository
162
168
 
163
169
  All other tools are read-only and never require approval.
164
170
 
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
+
165
173
  ### Tool overrides
166
174
 
167
175
  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.
@@ -247,7 +255,7 @@ const index = createToolIndex(tools, {
247
255
  })
248
256
 
249
257
  const result = await generateText({
250
- model: openai('gpt-4o'),
258
+ model: 'anthropic/claude-opus-5.5',
251
259
  tools,
252
260
  prepareStep: index.prepareStep(),
253
261
  prompt: 'List open PRs on vercel/ai and summarize them.',
@@ -266,7 +274,7 @@ Use `WorkflowAgent` via the `@github-tools/sdk/workflow` subpath to make every L
266
274
  import { createDurableGithubAgent } from '@github-tools/sdk/workflow'
267
275
 
268
276
  const agent = createDurableGithubAgent({
269
- model: 'anthropic/claude-sonnet-4.6',
277
+ model: 'anthropic/claude-opus-5.5',
270
278
  token: process.env.GITHUB_TOKEN!,
271
279
  preset: 'maintainer',
272
280
  })
@@ -334,6 +342,8 @@ connectGithubTools('github/my-connector', {
334
342
  })
335
343
  ```
336
344
 
345
+ A GitHub App installed on several accounts needs no configuration: each app token is minted for the installation that owns the tool call's target `owner/repo`. Set `installationId`, `authorizationDetails` or `repositories` in `connect` to pin one installation. `connect` also accepts any `(call) => params` resolver for other per-call rules.
346
+
337
347
  > `@vercel/connect` is an optional peer dependency, install it only when using the `/connect` subpath.
338
348
 
339
349
  `connector` accepts a `() => string | Promise<string>` resolver instead of a static name, re-resolved on every call. Useful to pick a connector per environment or tenant:
@@ -345,6 +355,32 @@ connectGithubTools(
345
355
  )
346
356
  ```
347
357
 
358
+ ## TanStack AI
359
+
360
+ Import native tool arrays and the prebuilt agent from `@github-tools/sdk/tanstack`:
361
+
362
+ ```sh
363
+ pnpm add @github-tools/sdk @tanstack/ai@0.64 @tanstack/ai-vercel-gateway@0.3 ai zod
364
+ ```
365
+
366
+ ```ts
367
+ import { createGithubAgent } from '@github-tools/sdk/tanstack'
368
+ import { vercelGatewayText } from '@tanstack/ai-vercel-gateway'
369
+
370
+ const agent = createGithubAgent({
371
+ adapter: vercelGatewayText('anthropic/claude-opus-5'),
372
+ context: { owner: 'vercel', repo: 'ai' },
373
+ preset: 'auto',
374
+ requireApproval: 'auto',
375
+ })
376
+
377
+ const text = await agent.generate({ prompt: 'Summarize the open pull requests.' })
378
+ ```
379
+
380
+ 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
+
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.
383
+
348
384
  ## eve
349
385
 
350
386
  [eve](https://eve.dev) is Vercel's filesystem-first agent framework. `@github-tools/eve-extension` is the **recommended** way to add GitHub tools to an eve agent: a mountable [eve extension](https://eve.dev/docs/extensions), no CLI setup, no direct SDK import in `agent/tools/`. The legacy `createGithubTools` / per-tool factories on `@github-tools/sdk/eve` are **deprecated** for that registration pattern; they keep working and are documented below for existing agents. Shared runtime helpers for the extension live on `@github-tools/sdk/eve-runtime` (not deprecated).
@@ -692,7 +728,7 @@ import { createGithubAgent } from '@github-tools/sdk'
692
728
 
693
729
  // Prefer a preset: scoped tools + tailored prompt
694
730
  const reviewer = createGithubAgent({
695
- model: 'anthropic/claude-sonnet-4.6',
731
+ model: 'anthropic/claude-opus-5.5',
696
732
  token: process.env.GITHUB_TOKEN!,
697
733
  preset: 'code-review',
698
734
  context: { owner: 'vercel', repo: 'ai', pullNumber: 42 },
@@ -700,7 +736,7 @@ const reviewer = createGithubAgent({
700
736
 
701
737
  // Add context to the built-in prompt
702
738
  const triager = createGithubAgent({
703
- model: 'anthropic/claude-sonnet-4.6',
739
+ model: 'anthropic/claude-opus-5.5',
704
740
  token: process.env.GITHUB_TOKEN!,
705
741
  preset: 'issue-triage',
706
742
  additionalInstructions: 'Focus on the nuxt/ui repository. Always respond in French.',
@@ -708,14 +744,14 @@ const triager = createGithubAgent({
708
744
 
709
745
  // Full catalog (omit preset or use maintainer)
710
746
  const agent = createGithubAgent({
711
- model: 'anthropic/claude-sonnet-4.6',
747
+ model: 'anthropic/claude-opus-5.5',
712
748
  token: process.env.GITHUB_TOKEN!,
713
749
  preset: 'maintainer',
714
750
  })
715
751
 
716
752
  // Full override: replace the built-in prompt entirely
717
753
  const custom = createGithubAgent({
718
- model: 'anthropic/claude-sonnet-4.6',
754
+ model: 'anthropic/claude-opus-5.5',
719
755
  token: process.env.GITHUB_TOKEN!,
720
756
  instructions: 'You are a security auditor. Only flag security-related issues.',
721
757
  })
@@ -727,7 +763,7 @@ const stream = reviewer.stream({ prompt: 'Review this PR' })
727
763
 
728
764
  | Option | Description |
729
765
  |---|---|
730
- | `model` | Language model: string (`'anthropic/claude-sonnet-4.6'`) or provider instance |
766
+ | `model` | Language model: string (`'anthropic/claude-opus-5.5'`) or provider instance |
731
767
  | `token` | GitHub token string or async provider |
732
768
  | `preset` | Optional preset or array of presets to scope tools |
733
769
  | `context` | Default owner / repo / pullNumber / issueNumber / ref for tools and the system prompt |
@@ -743,10 +779,10 @@ Returns a `DurableGithubAgent` instance for use inside Vercel Workflow SDK funct
743
779
 
744
780
  Supports both `.stream()` (real-time output to a writable) and `.generate()` (non-streaming, returns the full text response).
745
781
 
746
- Requires the optional peer dependencies `workflow` and `@workflow/ai`:
782
+ Requires the optional peer dependencies `workflow` and `@ai-sdk/workflow`:
747
783
 
748
784
  ```sh
749
- pnpm add workflow @workflow/ai
785
+ pnpm add workflow @ai-sdk/workflow
750
786
  ```
751
787
 
752
788
  #### Streaming (chat UI)
@@ -760,7 +796,7 @@ import type { ModelMessage, UIMessageChunk } from 'ai'
760
796
  async function chatWorkflow(messages: ModelMessage[], token: string) {
761
797
  "use workflow"
762
798
  const agent = createDurableGithubAgent({
763
- model: 'anthropic/claude-sonnet-4.6',
799
+ model: 'anthropic/claude-opus-5.5',
764
800
  token,
765
801
  preset: 'code-review',
766
802
  })
@@ -778,7 +814,7 @@ import { createGithubAgent } from '@github-tools/sdk'
778
814
  async function agentTurn(prompt: string) {
779
815
  "use step"
780
816
  const agent = createGithubAgent({
781
- model: 'anthropic/claude-sonnet-4.6',
817
+ model: 'anthropic/claude-opus-5.5',
782
818
  preset: 'code-review',
783
819
  requireApproval: false,
784
820
  })
@@ -1,4 +1,4 @@
1
- import { a as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-ve9shBaf.mjs";
1
+ import { s as GithubConnectorInput, t as ConnectGithubEveToolsOptions } from "../types-BmwOpI5-.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 { a 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/tools").DynamicSentinel<Partial<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", import("eve/tools").ToolDefinition<unknown, unknown>>>>;
26
+ export declare function connectGithubTools(connector: GithubConnectorInput, options?: ConnectGithubEveToolsOptions): import("eve").DynamicSentinel<Partial<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", import("eve/tools").ToolDefinition<unknown, unknown>>>>;
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,mDAAiC,gBAAA,QAAA,qqDAAA"}
1
+ {"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;wBA4BgB,mBACd,WAAW,sBACX,UAAS,6CAAiC,gBAAA,QAAA,qqDAAA"}
@@ -1,5 +1,5 @@
1
1
  import { createGithubTools } from "../eve.mjs";
2
- import { t as connectGithubToken } from "../token-Iop2lapd.mjs";
2
+ import { t as connectGithubToken } from "../token-BOLrrbTS.mjs";
3
3
  //#region src/connect/eve.ts
4
4
  /**
5
5
  * Register eve GitHub tools backed by a Vercel Connect connector.
@@ -1,6 +1,6 @@
1
- import { a as GithubTokenInput, d as GithubToolPreset, h as GithubToolName, t as AllGithubTools } from "./tool-types-BsfalcyC.mjs";
2
- import { a as GithubConnectorInput, i as GithubConnectParams, n as ConnectGithubTokenOptions, o as resolveGithubConnector, r as ConnectGithubToolsOptions, t as ConnectGithubEveToolsOptions } from "./types-ve9shBaf.mjs";
3
- import "./eve-runtime-BnWUzXdV.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-BmwOpI5-.mjs";
2
+ import { C as GithubTokenInput, E as GithubToolPreset, S as GithubTokenCall, j as GithubToolName, t as AllGithubTools } from "./tool-types-CrC80SIL.mjs";
3
+ import "./eve-runtime-DNQrQZ36.mjs";
4
4
  import { ConnectTokenSubject } from "@vercel/connect";
5
5
  //#region src/connect/scopes.d.ts
6
6
  /**
@@ -76,6 +76,14 @@ export declare function connectGithubScopesForSelection(selection?: ConnectScope
76
76
  * `connector` may be a static name or a resolver function — e.g. to pick a
77
77
  * different connector per environment (production vs. preview) or tenant.
78
78
  * It's re-resolved on every call, alongside the token itself.
79
+ *
80
+ * App-subject tokens are minted for the GitHub App installation that owns the
81
+ * call's target repository, so one App installed on several accounts works
82
+ * with no configuration; an explicit `installationId`, `authorizationDetails`
83
+ * or `repositories` in `params` pins the installation instead. `params` may
84
+ * also be a resolver called with the tool call on every token request.
85
+ * Connect caches tokens per `(connector, params)`, so repeated calls on the
86
+ * same repository reuse one token.
79
87
  */
80
88
  export declare function connectGithubToken(connector: GithubConnectorInput, options?: ConnectGithubTokenOptions): GithubTokenInput;
81
89
  //#endregion
@@ -89,5 +97,5 @@ export declare function connectGithubToken(connector: GithubConnectorInput, opti
89
97
  */
90
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">;
91
99
  //#endregion
92
- export { type ConnectGithubEveToolsOptions, type ConnectGithubTokenOptions, type ConnectGithubToolsOptions, type ConnectScopeSelection, type ConnectTokenSubject, type GithubConnectParams, type GithubConnectorInput, resolveGithubConnector };
100
+ export { type ConnectGithubEveToolsOptions, type ConnectGithubTokenOptions, type ConnectGithubToolsOptions, type ConnectScopeSelection, type ConnectTokenSubject, type GithubConnectParams, type GithubConnectParamsInput, type GithubConnectParamsResolver, type GithubConnectorInput, type GithubTokenCall, resolveGithubConnector };
93
101
  //# 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;;;;;;;;;;;;wBCnM3C,mBACd,WAAW,sBACX,UAAS,4BACR;;;;;;;;;;wBCda,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":";;;;;;;;;;;;;;;;;;;;;;;;;;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"}
package/dist/connect.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as createGithubTools } from "./src-C54blWpT.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-Iop2lapd.mjs";
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-BOLrrbTS.mjs";
3
3
  //#region src/connect/tools.ts
4
4
  /**
5
5
  * Create GitHub tools backed by a Vercel Connect connector.
@@ -0,0 +1,269 @@
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";
2
+ //#region src/core/cores.ts
3
+ /**
4
+ * The `*Core` implementation of every tool, keyed by tool name.
5
+ *
6
+ * Kept apart from `GITHUB_TOOL_CATALOG` so that importing tool metadata does
7
+ * not pull Octokit into a Vercel Workflow flow bundle, which cannot load
8
+ * Node.js built-ins. Argument types vary per tool, so callers cast at the
9
+ * dispatch boundary. Entries are getters so the ESM binding stays live
10
+ * (module spies in tests).
11
+ */
12
+ const GITHUB_TOOL_CORES = {
13
+ get getRepository() {
14
+ return getRepositoryCore;
15
+ },
16
+ get listBranches() {
17
+ return listBranchesCore;
18
+ },
19
+ get getFileContent() {
20
+ return getFileContentCore;
21
+ },
22
+ get getRepositoryTree() {
23
+ return getRepositoryTreeCore;
24
+ },
25
+ get createBranch() {
26
+ return createBranchCore;
27
+ },
28
+ get deleteBranch() {
29
+ return deleteBranchCore;
30
+ },
31
+ get forkRepository() {
32
+ return forkRepositoryCore;
33
+ },
34
+ get createRepository() {
35
+ return createRepositoryCore;
36
+ },
37
+ get createOrUpdateFile() {
38
+ return createOrUpdateFileCore;
39
+ },
40
+ get listPullRequests() {
41
+ return listPullRequestsCore;
42
+ },
43
+ get getPullRequest() {
44
+ return getPullRequestCore;
45
+ },
46
+ get createPullRequest() {
47
+ return createPullRequestCore;
48
+ },
49
+ get mergePullRequest() {
50
+ return mergePullRequestCore;
51
+ },
52
+ get updatePullRequest() {
53
+ return updatePullRequestCore;
54
+ },
55
+ get addPullRequestComment() {
56
+ return addPullRequestCommentCore;
57
+ },
58
+ get updatePullRequestComment() {
59
+ return updatePullRequestCommentCore;
60
+ },
61
+ get deletePullRequestComment() {
62
+ return deletePullRequestCommentCore;
63
+ },
64
+ get listPullRequestFiles() {
65
+ return listPullRequestFilesCore;
66
+ },
67
+ get listPullRequestReviews() {
68
+ return listPullRequestReviewsCore;
69
+ },
70
+ get createPullRequestReview() {
71
+ return createPullRequestReviewCore;
72
+ },
73
+ get listPullRequestReviewThreads() {
74
+ return listPullRequestReviewThreadsCore;
75
+ },
76
+ get replyToReviewComment() {
77
+ return replyToReviewCommentCore;
78
+ },
79
+ get resolveReviewThread() {
80
+ return resolveReviewThreadCore;
81
+ },
82
+ get requestReviewers() {
83
+ return requestReviewersCore;
84
+ },
85
+ get getPullRequestContext() {
86
+ return getPullRequestContextCore;
87
+ },
88
+ get getIssueContext() {
89
+ return getIssueContextCore;
90
+ },
91
+ get listIssues() {
92
+ return listIssuesCore;
93
+ },
94
+ get getIssue() {
95
+ return getIssueCore;
96
+ },
97
+ get listIssueComments() {
98
+ return listIssueCommentsCore;
99
+ },
100
+ get createIssue() {
101
+ return createIssueCore;
102
+ },
103
+ get addIssueComment() {
104
+ return addIssueCommentCore;
105
+ },
106
+ get updateIssueComment() {
107
+ return updateIssueCommentCore;
108
+ },
109
+ get deleteIssueComment() {
110
+ return deleteIssueCommentCore;
111
+ },
112
+ get closeIssue() {
113
+ return closeIssueCore;
114
+ },
115
+ get updateIssue() {
116
+ return updateIssueCore;
117
+ },
118
+ get listLabels() {
119
+ return listLabelsCore;
120
+ },
121
+ get addLabels() {
122
+ return addLabelsCore;
123
+ },
124
+ get removeLabel() {
125
+ return removeLabelCore;
126
+ },
127
+ get createLabel() {
128
+ return createLabelCore;
129
+ },
130
+ get updateLabel() {
131
+ return updateLabelCore;
132
+ },
133
+ get deleteLabel() {
134
+ return deleteLabelCore;
135
+ },
136
+ get addAssignees() {
137
+ return addAssigneesCore;
138
+ },
139
+ get removeAssignees() {
140
+ return removeAssigneesCore;
141
+ },
142
+ get listIssueReactions() {
143
+ return listIssueReactionsCore;
144
+ },
145
+ get addIssueReaction() {
146
+ return addIssueReactionCore;
147
+ },
148
+ get listCommentReactions() {
149
+ return listCommentReactionsCore;
150
+ },
151
+ get addCommentReaction() {
152
+ return addCommentReactionCore;
153
+ },
154
+ get listDiscussions() {
155
+ return listDiscussionsCore;
156
+ },
157
+ get getDiscussion() {
158
+ return getDiscussionCore;
159
+ },
160
+ get addDiscussionComment() {
161
+ return addDiscussionCommentCore;
162
+ },
163
+ get listNotifications() {
164
+ return listNotificationsCore;
165
+ },
166
+ get markNotificationRead() {
167
+ return markNotificationReadCore;
168
+ },
169
+ get searchCode() {
170
+ return searchCodeCore;
171
+ },
172
+ get searchRepositories() {
173
+ return searchRepositoriesCore;
174
+ },
175
+ get searchIssues() {
176
+ return searchIssuesCore;
177
+ },
178
+ get listCommits() {
179
+ return listCommitsCore;
180
+ },
181
+ get getCommit() {
182
+ return getCommitCore;
183
+ },
184
+ get getBlame() {
185
+ return getBlameCore;
186
+ },
187
+ get compareCommits() {
188
+ return compareCommitsCore;
189
+ },
190
+ get listGists() {
191
+ return listGistsCore;
192
+ },
193
+ get getGist() {
194
+ return getGistCore;
195
+ },
196
+ get listGistComments() {
197
+ return listGistCommentsCore;
198
+ },
199
+ get createGist() {
200
+ return createGistCore;
201
+ },
202
+ get updateGist() {
203
+ return updateGistCore;
204
+ },
205
+ get deleteGist() {
206
+ return deleteGistCore;
207
+ },
208
+ get createGistComment() {
209
+ return createGistCommentCore;
210
+ },
211
+ get listWorkflows() {
212
+ return listWorkflowsCore;
213
+ },
214
+ get listWorkflowRuns() {
215
+ return listWorkflowRunsCore;
216
+ },
217
+ get getWorkflowRun() {
218
+ return getWorkflowRunCore;
219
+ },
220
+ get listWorkflowJobs() {
221
+ return listWorkflowJobsCore;
222
+ },
223
+ get getWorkflowJobLogs() {
224
+ return getWorkflowJobLogsCore;
225
+ },
226
+ get triggerWorkflow() {
227
+ return triggerWorkflowCore;
228
+ },
229
+ get cancelWorkflowRun() {
230
+ return cancelWorkflowRunCore;
231
+ },
232
+ get rerunWorkflowRun() {
233
+ return rerunWorkflowRunCore;
234
+ },
235
+ get listCheckRuns() {
236
+ return listCheckRunsCore;
237
+ },
238
+ get getCombinedStatus() {
239
+ return getCombinedStatusCore;
240
+ },
241
+ get getCiFailureContext() {
242
+ return getCiFailureContextCore;
243
+ },
244
+ get listReleases() {
245
+ return listReleasesCore;
246
+ },
247
+ get getLatestRelease() {
248
+ return getLatestReleaseCore;
249
+ },
250
+ get getRelease() {
251
+ return getReleaseCore;
252
+ },
253
+ get getReleaseContext() {
254
+ return getReleaseContextCore;
255
+ },
256
+ get createRelease() {
257
+ return createReleaseCore;
258
+ },
259
+ get updateRelease() {
260
+ return updateReleaseCore;
261
+ },
262
+ get deleteRelease() {
263
+ return deleteReleaseCore;
264
+ }
265
+ };
266
+ //#endregion
267
+ export { GITHUB_TOOL_CORES as t };
268
+
269
+ //# sourceMappingURL=cores-BeLZwcde.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cores-BeLZwcde.mjs","names":["repository.getRepositoryCore","repository.listBranchesCore","repository.getFileContentCore","repository.getRepositoryTreeCore","repository.createBranchCore","repository.deleteBranchCore","repository.forkRepositoryCore","repository.createRepositoryCore","repository.createOrUpdateFileCore","pullRequests.listPullRequestsCore","pullRequests.getPullRequestCore","pullRequests.createPullRequestCore","pullRequests.mergePullRequestCore","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"],"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 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 listPullRequests() { return pullRequests.listPullRequestsCore },\n get getPullRequest() { return pullRequests.getPullRequestCore },\n get createPullRequest() { return pullRequests.createPullRequestCore },\n get mergePullRequest() { return pullRequests.mergePullRequestCore },\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} satisfies Record<GithubToolName, (args: never) => Promise<unknown>>\n"],"mappings":";;;;;;;;;;;AAwBA,MAAa,oBAAoB;CAC/B,IAA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