@github-tools/sdk 1.7.0 → 1.8.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 (40) hide show
  1. package/README.md +76 -3
  2. package/dist/connect/eve.d.mts +17 -0
  3. package/dist/connect/eve.d.mts.map +1 -0
  4. package/dist/connect/eve.mjs +27 -0
  5. package/dist/connect/eve.mjs.map +1 -0
  6. package/dist/connect.d.mts +46 -0
  7. package/dist/connect.d.mts.map +1 -0
  8. package/dist/connect.mjs +22 -0
  9. package/dist/connect.mjs.map +1 -0
  10. package/dist/eve-B-LChKzS.mjs +526 -0
  11. package/dist/eve-B-LChKzS.mjs.map +1 -0
  12. package/dist/eve.d.mts +3 -45
  13. package/dist/eve.d.mts.map +1 -1
  14. package/dist/eve.mjs +2 -521
  15. package/dist/{index-BRUYe5q0.d.mts → index-SZCaP-y9.d.mts} +44 -44
  16. package/dist/index-SZCaP-y9.d.mts.map +1 -0
  17. package/dist/index.d.mts +3 -3
  18. package/dist/index.mjs +3 -3
  19. package/dist/{src-BgnkKMD7.mjs → src-CfzZfU82.mjs} +87 -87
  20. package/dist/src-CfzZfU82.mjs.map +1 -0
  21. package/dist/token-CW8lQBND.mjs +100 -0
  22. package/dist/token-CW8lQBND.mjs.map +1 -0
  23. package/dist/{tool-types-CuirBEc8.d.mts → tool-types-C0kszIwd.d.mts} +35 -30
  24. package/dist/tool-types-C0kszIwd.d.mts.map +1 -0
  25. package/dist/types-BTanS_dq.d.mts +49 -0
  26. package/dist/types-BTanS_dq.d.mts.map +1 -0
  27. package/dist/types-DOeq0Iia.d.mts +27 -0
  28. package/dist/types-DOeq0Iia.d.mts.map +1 -0
  29. package/dist/workflow.d.mts +5 -5
  30. package/dist/workflow.d.mts.map +1 -1
  31. package/dist/workflow.mjs +3 -3
  32. package/dist/workflow.mjs.map +1 -1
  33. package/dist/{write-tools-vzlewWo5.mjs → write-tools-Dx9LfYlU.mjs} +26 -9
  34. package/dist/write-tools-Dx9LfYlU.mjs.map +1 -0
  35. package/package.json +16 -3
  36. package/dist/eve.mjs.map +0 -1
  37. package/dist/index-BRUYe5q0.d.mts.map +0 -1
  38. package/dist/src-BgnkKMD7.mjs.map +0 -1
  39. package/dist/tool-types-CuirBEc8.d.mts.map +0 -1
  40. package/dist/write-tools-vzlewWo5.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { _ as PresetToolName, c as GithubTool, h as GithubToolPreset, m as CombinedPresetToolNames, n as GithubToolsBaseOptions, o as CommitIdentity, s as CommitToolOptions, t as AllGithubTools, u as ToolOptions, y as GithubToolName } from "./tool-types-CuirBEc8.mjs";
1
+ import { _ as GithubToolPreset, a as CommitIdentity, d as GithubTokenInput, g as CombinedPresetToolNames, l as ToolOptions, n as GithubToolsBaseOptions, o as CommitToolOptions, s as GithubTool, t as AllGithubTools, x as GithubToolName, y as PresetToolName } from "./tool-types-C0kszIwd.mjs";
2
2
  import { ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
3
3
  import { z } from "zod";
4
4
  import { Octokit } from "octokit";
@@ -8,25 +8,25 @@ declare function createOctokit(token: string): Octokit;
8
8
  //#endregion
9
9
  //#region src/tools/repository.d.ts
10
10
  /** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
11
- declare const getRepository: (token: string) => GithubTool;
11
+ declare const getRepository: (token: GithubTokenInput) => GithubTool;
12
12
  /** List branches in a GitHub repository. */
13
- declare const listBranches: (token: string) => GithubTool;
13
+ declare const listBranches: (token: GithubTokenInput) => GithubTool;
14
14
  /** Get the content of a file from a GitHub repository. */
15
- declare const getFileContent: (token: string) => GithubTool;
15
+ declare const getFileContent: (token: GithubTokenInput) => GithubTool;
16
16
  /** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */
17
- declare const createBranch: (token: string, {
17
+ declare const createBranch: (token: GithubTokenInput, {
18
18
  needsApproval
19
19
  }?: ToolOptions) => GithubTool;
20
20
  /** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */
21
- declare const forkRepository: (token: string, {
21
+ declare const forkRepository: (token: GithubTokenInput, {
22
22
  needsApproval
23
23
  }?: ToolOptions) => GithubTool;
24
24
  /** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */
25
- declare const createRepository: (token: string, {
25
+ declare const createRepository: (token: GithubTokenInput, {
26
26
  needsApproval
27
27
  }?: ToolOptions) => GithubTool;
28
28
  /** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */
29
- declare const createOrUpdateFile: (token: string, {
29
+ declare const createOrUpdateFile: (token: GithubTokenInput, {
30
30
  needsApproval,
31
31
  author,
32
32
  committer,
@@ -38,116 +38,116 @@ type MergeToolOptions = ToolOptions & {
38
38
  coAuthors?: CommitIdentity[];
39
39
  };
40
40
  /** List pull requests for a GitHub repository. */
41
- declare const listPullRequests: (token: string) => GithubTool;
41
+ declare const listPullRequests: (token: GithubTokenInput) => GithubTool;
42
42
  /** Get detailed information about a specific pull request. */
43
- declare const getPullRequest: (token: string) => GithubTool;
43
+ declare const getPullRequest: (token: GithubTokenInput) => GithubTool;
44
44
  /** Create a new pull request in a GitHub repository. Requires approval by default. */
45
- declare const createPullRequest: (token: string, {
45
+ declare const createPullRequest: (token: GithubTokenInput, {
46
46
  needsApproval
47
47
  }?: ToolOptions) => GithubTool;
48
48
  /** Merge a pull request. Requires approval by default. */
49
- declare const mergePullRequest: (token: string, {
49
+ declare const mergePullRequest: (token: GithubTokenInput, {
50
50
  needsApproval,
51
51
  coAuthors
52
52
  }?: MergeToolOptions) => GithubTool;
53
53
  /** Add a comment to a pull request. Requires approval by default. */
54
- declare const addPullRequestComment: (token: string, {
54
+ declare const addPullRequestComment: (token: GithubTokenInput, {
55
55
  needsApproval
56
56
  }?: ToolOptions) => GithubTool;
57
57
  /** List files changed in a pull request, including diff status and patch content. */
58
- declare const listPullRequestFiles: (token: string) => GithubTool;
58
+ declare const listPullRequestFiles: (token: GithubTokenInput) => GithubTool;
59
59
  /** List reviews on a pull request (approvals, change requests, and comments). */
60
- declare const listPullRequestReviews: (token: string) => GithubTool;
60
+ declare const listPullRequestReviews: (token: GithubTokenInput) => GithubTool;
61
61
  /** Submit a pull request review with optional inline comments. Requires approval by default. */
62
- declare const createPullRequestReview: (token: string, {
62
+ declare const createPullRequestReview: (token: GithubTokenInput, {
63
63
  needsApproval
64
64
  }?: ToolOptions) => GithubTool;
65
65
  //#endregion
66
66
  //#region src/tools/issues.d.ts
67
67
  /** List issues for a GitHub repository (excludes pull requests). */
68
- declare const listIssues: (token: string) => GithubTool;
68
+ declare const listIssues: (token: GithubTokenInput) => GithubTool;
69
69
  /** Get detailed information about a specific issue. */
70
- declare const getIssue: (token: string) => GithubTool;
70
+ declare const getIssue: (token: GithubTokenInput) => GithubTool;
71
71
  /** Create a new issue in a GitHub repository. Requires approval by default. */
72
- declare const createIssue: (token: string, {
72
+ declare const createIssue: (token: GithubTokenInput, {
73
73
  needsApproval
74
74
  }?: ToolOptions) => GithubTool;
75
75
  /** Add a comment to a GitHub issue. Requires approval by default. */
76
- declare const addIssueComment: (token: string, {
76
+ declare const addIssueComment: (token: GithubTokenInput, {
77
77
  needsApproval
78
78
  }?: ToolOptions) => GithubTool;
79
79
  /** Close an open GitHub issue. Requires approval by default. */
80
- declare const closeIssue: (token: string, {
80
+ declare const closeIssue: (token: GithubTokenInput, {
81
81
  needsApproval
82
82
  }?: ToolOptions) => GithubTool;
83
83
  /** List labels available in a GitHub repository. */
84
- declare const listLabels: (token: string) => GithubTool;
84
+ declare const listLabels: (token: GithubTokenInput) => GithubTool;
85
85
  /** Add labels to an issue or pull request. Requires approval by default. */
86
- declare const addLabels: (token: string, {
86
+ declare const addLabels: (token: GithubTokenInput, {
87
87
  needsApproval
88
88
  }?: ToolOptions) => GithubTool;
89
89
  /** Remove a label from an issue or pull request. Requires approval by default. */
90
- declare const removeLabel: (token: string, {
90
+ declare const removeLabel: (token: GithubTokenInput, {
91
91
  needsApproval
92
92
  }?: ToolOptions) => GithubTool;
93
93
  //#endregion
94
94
  //#region src/tools/search.d.ts
95
95
  /** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
96
- declare const searchCode: (token: string) => GithubTool;
96
+ declare const searchCode: (token: GithubTokenInput) => GithubTool;
97
97
  /** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
98
- declare const searchRepositories: (token: string) => GithubTool;
98
+ declare const searchRepositories: (token: GithubTokenInput) => GithubTool;
99
99
  //#endregion
100
100
  //#region src/tools/commits.d.ts
101
101
  /** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
102
- declare const listCommits: (token: string) => GithubTool;
102
+ declare const listCommits: (token: GithubTokenInput) => GithubTool;
103
103
  /** Get detailed information about a specific commit, including files changed with additions and deletions. */
104
- declare const getCommit: (token: string) => GithubTool;
104
+ declare const getCommit: (token: GithubTokenInput) => GithubTool;
105
105
  /** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). */
106
- declare const getBlame: (token: string) => GithubTool;
106
+ declare const getBlame: (token: GithubTokenInput) => GithubTool;
107
107
  //#endregion
108
108
  //#region src/tools/gists.d.ts
109
109
  /** List gists for the authenticated user or a specific user. */
110
- declare const listGists: (token: string) => GithubTool;
110
+ declare const listGists: (token: GithubTokenInput) => GithubTool;
111
111
  /** Get a gist by ID, including file contents. */
112
- declare const getGist: (token: string) => GithubTool;
112
+ declare const getGist: (token: GithubTokenInput) => GithubTool;
113
113
  /** List comments on a gist. */
114
- declare const listGistComments: (token: string) => GithubTool;
114
+ declare const listGistComments: (token: GithubTokenInput) => GithubTool;
115
115
  /** Create a new gist with one or more files. Requires approval by default. */
116
- declare const createGist: (token: string, {
116
+ declare const createGist: (token: GithubTokenInput, {
117
117
  needsApproval
118
118
  }?: ToolOptions) => GithubTool;
119
119
  /** Update an existing gist. Requires approval by default. */
120
- declare const updateGist: (token: string, {
120
+ declare const updateGist: (token: GithubTokenInput, {
121
121
  needsApproval
122
122
  }?: ToolOptions) => GithubTool;
123
123
  /** Delete a gist permanently. Requires approval by default. */
124
- declare const deleteGist: (token: string, {
124
+ declare const deleteGist: (token: GithubTokenInput, {
125
125
  needsApproval
126
126
  }?: ToolOptions) => GithubTool;
127
127
  /** Add a comment to a gist. Requires approval by default. */
128
- declare const createGistComment: (token: string, {
128
+ declare const createGistComment: (token: GithubTokenInput, {
129
129
  needsApproval
130
130
  }?: ToolOptions) => GithubTool;
131
131
  //#endregion
132
132
  //#region src/tools/workflows.d.ts
133
133
  /** List GitHub Actions workflows in a repository. */
134
- declare const listWorkflows: (token: string) => GithubTool;
134
+ declare const listWorkflows: (token: GithubTokenInput) => GithubTool;
135
135
  /** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */
136
- declare const listWorkflowRuns: (token: string) => GithubTool;
136
+ declare const listWorkflowRuns: (token: GithubTokenInput) => GithubTool;
137
137
  /** Get details of a specific workflow run including status, timing, and trigger info. */
138
- declare const getWorkflowRun: (token: string) => GithubTool;
138
+ declare const getWorkflowRun: (token: GithubTokenInput) => GithubTool;
139
139
  /** List jobs for a workflow run, including step-level status and timing. */
140
- declare const listWorkflowJobs: (token: string) => GithubTool;
140
+ declare const listWorkflowJobs: (token: GithubTokenInput) => GithubTool;
141
141
  /** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
142
- declare const triggerWorkflow: (token: string, {
142
+ declare const triggerWorkflow: (token: GithubTokenInput, {
143
143
  needsApproval
144
144
  }?: ToolOptions) => GithubTool;
145
145
  /** Cancel an in-progress workflow run. Requires approval by default. */
146
- declare const cancelWorkflowRun: (token: string, {
146
+ declare const cancelWorkflowRun: (token: GithubTokenInput, {
147
147
  needsApproval
148
148
  }?: ToolOptions) => GithubTool;
149
149
  /** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
150
- declare const rerunWorkflowRun: (token: string, {
150
+ declare const rerunWorkflowRun: (token: GithubTokenInput, {
151
151
  needsApproval
152
152
  }?: ToolOptions) => GithubTool;
153
153
  //#endregion
@@ -217,4 +217,4 @@ declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools
217
217
  type GithubTools = AllGithubTools & ToolSet;
218
218
  //#endregion
219
219
  export { listIssues as A, mergePullRequest as B, searchCode as C, closeIssue as D, addLabels as E, createPullRequestReview as F, getFileContent as G, createOrUpdateFile as H, getPullRequest as I, createOctokit as J, getRepository as K, listPullRequestFiles as L, removeLabel as M, addPullRequestComment as N, createIssue as O, createPullRequest as P, listPullRequestReviews as R, listCommits as S, addIssueComment as T, createRepository as U, createBranch as V, forkRepository as W, listGistComments as _, createGithubAgent as a, getBlame as b, listWorkflowJobs as c, rerunWorkflowRun as d, triggerWorkflow as f, getGist as g, deleteGist as h, CreateGithubAgentOptions as i, listLabels as j, getIssue as k, listWorkflowRuns as l, createGistComment as m, GithubToolsOptions as n, cancelWorkflowRun as o, createGist as p, listBranches as q, createGithubTools as r, getWorkflowRun as s, GithubTools as t, listWorkflows as u, listGists as v, searchRepositories as w, getCommit as x, updateGist as y, listPullRequests as z };
220
- //# sourceMappingURL=index-BRUYe5q0.d.mts.map
220
+ //# sourceMappingURL=index-SZCaP-y9.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-SZCaP-y9.d.mts","names":[],"sources":["../src/client.ts","../src/tools/repository.ts","../src/tools/pull-requests.ts","../src/tools/issues.ts","../src/tools/search.ts","../src/tools/commits.ts","../src/tools/gists.ts","../src/tools/workflows.ts","../src/agents.ts","../src/index.ts"],"mappings":";;;;;;iBAKgB,aAAA,CAAc,KAAA,WAAgB,OAAA;;;;cCgCjC,aAAA,GAAiB,KAAA,EAAO,gBAAA,KAAmB,UAAA;ADhCxD;AAAA,cC6Ca,YAAA,GAAgB,KAAA,EAAO,gBAAA,KAAmB,UAAA;;cAa1C,cAAA,GAAkB,KAAA,EAAO,gBAAA,KAAmB,UAAA;;cAc5C,YAAA,GAAgB,KAAA,EAAO,gBAAA;EAAkB;AAAA,IAA0B,WAAA,KAAmB,UAAA;;cActF,cAAA,GAAkB,KAAA,EAAO,gBA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,CAAA;AAAA,IAC3C,IAAA,CAAK,cAAA,EAAgB,cAAA,CAAe,CAAA;AAAA,iBACvB,iBAAA,oBAAqC,gBAAA,GAAA,CACnD,OAAA,EAAS,sBAAA;EAA2B,MAAA,EAAQ,CAAA;AAAA,IAC3C,IAAA,CAAK,cAAA,EAAgB,uBAAA,CAAwB,CAAA;AAAA,iBAChC,iBAAA,CAAkB,OAAA,GAAU,kBAAA,GAAqB,cAAA,GAAiB,IAAA,CAAK,cAAA,EAAgB,cAAA;AAAA,KAyG3F,WAAA,GAAc,cAAA,GAAiB,OAAA"}
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as PresetToolName, a as ApprovalConfig, c as GithubTool, d as ToolOverrides, f as GITHUB_WRITE_TOOLS, g as PRESET_TOOLS, h as GithubToolPreset, i as PickGithubTools, l as Octokit, m as CombinedPresetToolNames, o as CommitIdentity, p as GithubWriteToolName, r as GithubToolsForPreset, s as CommitToolOptions, t as AllGithubTools, u as ToolOptions, v as GITHUB_TOOL_NAMES, y as GithubToolName } from "./tool-types-CuirBEc8.mjs";
2
- import { A as listIssues, B as mergePullRequest, C as searchCode, D as closeIssue, E as addLabels, F as createPullRequestReview, G as getFileContent, H as createOrUpdateFile, I as getPullRequest, J as createOctokit, K as getRepository, L as listPullRequestFiles, M as removeLabel, N as addPullRequestComment, O as createIssue, P as createPullRequest, R as listPullRequestReviews, S as listCommits, T as addIssueComment, U as createRepository, V as createBranch, W as forkRepository, _ as listGistComments, a as createGithubAgent, b as getBlame, c as listWorkflowJobs, d as rerunWorkflowRun, f as triggerWorkflow, g as getGist, h as deleteGist, i as CreateGithubAgentOptions, j as listLabels, k as getIssue, l as listWorkflowRuns, m as createGistComment, n as GithubToolsOptions, o as cancelWorkflowRun, p as createGist, q as listBranches, r as createGithubTools, s as getWorkflowRun, t as GithubTools, u as listWorkflows, v as listGists, w as searchRepositories, x as getCommit, y as updateGist, z as listPullRequests } from "./index-BRUYe5q0.mjs";
3
- export { AllGithubTools, ApprovalConfig, CombinedPresetToolNames, CommitIdentity, CommitToolOptions, CreateGithubAgentOptions, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, GithubTool, GithubToolName, GithubToolPreset, GithubTools, GithubToolsForPreset, GithubToolsOptions, GithubWriteToolName, Octokit, PRESET_TOOLS, PickGithubTools, PresetToolName, ToolOptions, ToolOverrides, addIssueComment, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, forkRepository, getBlame, getCommit, getFileContent, getGist, getIssue, getPullRequest, getRepository, getWorkflowRun, listBranches, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeLabel, rerunWorkflowRun, searchCode, searchRepositories, triggerWorkflow, updateGist };
1
+ import { _ as GithubToolPreset, a as CommitIdentity, b as GITHUB_TOOL_NAMES, c as Octokit, d as GithubTokenInput, f as resolveGithubToken, g as CombinedPresetToolNames, h as GithubWriteToolName, i as PickGithubTools, l as ToolOptions, m as GITHUB_WRITE_TOOLS, o as CommitToolOptions, p as ApprovalConfig, r as GithubToolsForPreset, s as GithubTool, t as AllGithubTools, u as ToolOverrides, v as PRESET_TOOLS, x as GithubToolName, y as PresetToolName } from "./tool-types-C0kszIwd.mjs";
2
+ import { A as listIssues, B as mergePullRequest, C as searchCode, D as closeIssue, E as addLabels, F as createPullRequestReview, G as getFileContent, H as createOrUpdateFile, I as getPullRequest, J as createOctokit, K as getRepository, L as listPullRequestFiles, M as removeLabel, N as addPullRequestComment, O as createIssue, P as createPullRequest, R as listPullRequestReviews, S as listCommits, T as addIssueComment, U as createRepository, V as createBranch, W as forkRepository, _ as listGistComments, a as createGithubAgent, b as getBlame, c as listWorkflowJobs, d as rerunWorkflowRun, f as triggerWorkflow, g as getGist, h as deleteGist, i as CreateGithubAgentOptions, j as listLabels, k as getIssue, l as listWorkflowRuns, m as createGistComment, n as GithubToolsOptions, o as cancelWorkflowRun, p as createGist, q as listBranches, r as createGithubTools, s as getWorkflowRun, t as GithubTools, u as listWorkflows, v as listGists, w as searchRepositories, x as getCommit, y as updateGist, z as listPullRequests } from "./index-SZCaP-y9.mjs";
3
+ export { AllGithubTools, ApprovalConfig, CombinedPresetToolNames, CommitIdentity, CommitToolOptions, CreateGithubAgentOptions, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, GithubTokenInput, GithubTool, GithubToolName, GithubToolPreset, GithubTools, GithubToolsForPreset, GithubToolsOptions, GithubWriteToolName, Octokit, PRESET_TOOLS, PickGithubTools, PresetToolName, ToolOptions, ToolOverrides, addIssueComment, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, forkRepository, getBlame, getCommit, getFileContent, getGist, getIssue, getPullRequest, getRepository, getWorkflowRun, listBranches, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeLabel, rerunWorkflowRun, resolveGithubToken, searchCode, searchRepositories, triggerWorkflow, updateGist };
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { On as createOctokit, a as PRESET_TOOLS, i as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-vzlewWo5.mjs";
2
- import { A as removeLabel, B as createOrUpdateFile, C as addIssueComment, D as getIssue, E as createIssue, F as listPullRequestFiles, G as listBranches, H as forkRepository, I as listPullRequestReviews, L as listPullRequests, M as createPullRequest, N as createPullRequestReview, O as listIssues, P as getPullRequest, R as mergePullRequest, S as searchRepositories, T as closeIssue, U as getFileContent, V as createRepository, W as getRepository, _ as updateGist, a as getWorkflowRun, b as listCommits, c as listWorkflows, d as createGist, f as createGistComment, g as listGists, h as listGistComments, i as cancelWorkflowRun, j as addPullRequestComment, k as listLabels, l as rerunWorkflowRun, m as getGist, n as createGithubAgent, o as listWorkflowJobs, p as deleteGist, s as listWorkflowRuns, t as createGithubTools, u as triggerWorkflow, v as getBlame, w as addLabels, x as searchCode, y as getCommit, z as createBranch } from "./src-BgnkKMD7.mjs";
3
- export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addIssueComment, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, forkRepository, getBlame, getCommit, getFileContent, getGist, getIssue, getPullRequest, getRepository, getWorkflowRun, listBranches, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeLabel, rerunWorkflowRun, searchCode, searchRepositories, triggerWorkflow, updateGist };
1
+ import { i as PRESET_TOOLS, in as resolveGithubToken, kn as createOctokit, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-Dx9LfYlU.mjs";
2
+ import { A as removeLabel, B as createOrUpdateFile, C as addIssueComment, D as getIssue, E as createIssue, F as listPullRequestFiles, G as listBranches, H as forkRepository, I as listPullRequestReviews, L as listPullRequests, M as createPullRequest, N as createPullRequestReview, O as listIssues, P as getPullRequest, R as mergePullRequest, S as searchRepositories, T as closeIssue, U as getFileContent, V as createRepository, W as getRepository, _ as updateGist, a as getWorkflowRun, b as listCommits, c as listWorkflows, d as createGist, f as createGistComment, g as listGists, h as listGistComments, i as cancelWorkflowRun, j as addPullRequestComment, k as listLabels, l as rerunWorkflowRun, m as getGist, n as createGithubAgent, o as listWorkflowJobs, p as deleteGist, s as listWorkflowRuns, t as createGithubTools, u as triggerWorkflow, v as getBlame, w as addLabels, x as searchCode, y as getCommit, z as createBranch } from "./src-CfzZfU82.mjs";
3
+ export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addIssueComment, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, forkRepository, getBlame, getCommit, getFileContent, getGist, getIssue, getPullRequest, getRepository, getWorkflowRun, listBranches, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeLabel, rerunWorkflowRun, resolveGithubToken, searchCode, searchRepositories, triggerWorkflow, updateGist };