@github-tools/sdk 1.18.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -26
- package/dist/approval-policy--kByBqhT.mjs +17 -0
- package/dist/approval-policy--kByBqhT.mjs.map +1 -0
- package/dist/connect/eve.d.mts +2 -2
- package/dist/connect/eve.d.mts.map +1 -1
- package/dist/connect/eve.mjs +1 -1
- package/dist/connect.d.mts +15 -24
- package/dist/connect.d.mts.map +1 -1
- package/dist/connect.mjs +2 -2
- package/dist/{cores-BeLZwcde.mjs → cores-FLzAv2tu.mjs} +23 -2
- package/dist/cores-FLzAv2tu.mjs.map +1 -0
- package/dist/evaluation-BtoHbxuQ.mjs +311 -0
- package/dist/evaluation-BtoHbxuQ.mjs.map +1 -0
- package/dist/{eve-runtime-DnhM9Vog.mjs → eve-runtime-C-0doyHq.mjs} +14 -8
- package/dist/eve-runtime-C-0doyHq.mjs.map +1 -0
- package/dist/{eve-runtime-DNQrQZ36.d.mts → eve-runtime-CflZNuXD.d.mts} +6 -6
- package/dist/eve-runtime-CflZNuXD.d.mts.map +1 -0
- package/dist/eve-runtime.d.mts +5 -5
- package/dist/eve-runtime.mjs +4 -4
- package/dist/eve.d.mts +53 -4
- package/dist/eve.d.mts.map +1 -1
- package/dist/eve.mjs +52 -3
- package/dist/eve.mjs.map +1 -1
- package/dist/{index-DkZvveZP.d.mts → index-C3wlz660.d.mts} +91 -347
- package/dist/index-C3wlz660.d.mts.map +1 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +4 -3
- package/dist/{src-Bx5p1Unc.mjs → src-DyiAVHKl.mjs} +338 -15
- package/dist/src-DyiAVHKl.mjs.map +1 -0
- package/dist/tanstack.d.mts +1213 -55
- package/dist/tanstack.d.mts.map +1 -1
- package/dist/tanstack.mjs +26 -13
- package/dist/tanstack.mjs.map +1 -1
- package/dist/{token-BOLrrbTS.mjs → token-DIwB-wtp.mjs} +37 -117
- package/dist/token-DIwB-wtp.mjs.map +1 -0
- package/dist/{tool-types-CrC80SIL.d.mts → tool-types-OFyE3z0C.d.mts} +283 -54
- package/dist/tool-types-OFyE3z0C.d.mts.map +1 -0
- package/dist/{types-BmwOpI5-.d.mts → types-CJqhvQwi.d.mts} +3 -3
- package/dist/{types-BmwOpI5-.d.mts.map → types-CJqhvQwi.d.mts.map} +1 -1
- package/dist/{types-CPAsEMzx.d.mts → types-ITYfXMtY.d.mts} +2 -2
- package/dist/{types-CPAsEMzx.d.mts.map → types-ITYfXMtY.d.mts.map} +1 -1
- package/dist/workflow.d.mts +34 -40
- package/dist/workflow.d.mts.map +1 -1
- package/dist/workflow.mjs +17 -46
- package/dist/workflow.mjs.map +1 -1
- package/dist/{write-tools-BaoTUCg7.mjs → write-tools-DnGZw-RD.mjs} +941 -112
- package/dist/write-tools-DnGZw-RD.mjs.map +1 -0
- package/package.json +10 -12
- package/dist/cores-BeLZwcde.mjs.map +0 -1
- package/dist/evaluation-f-2QwBid.mjs +0 -210
- package/dist/evaluation-f-2QwBid.mjs.map +0 -1
- package/dist/eve-runtime-DNQrQZ36.d.mts.map +0 -1
- package/dist/eve-runtime-DnhM9Vog.mjs.map +0 -1
- package/dist/index-DkZvveZP.d.mts.map +0 -1
- package/dist/instructions-BuypoY0x.mjs +0 -148
- package/dist/instructions-BuypoY0x.mjs.map +0 -1
- package/dist/src-Bx5p1Unc.mjs.map +0 -1
- package/dist/token-BOLrrbTS.mjs.map +0 -1
- package/dist/tool-types-CrC80SIL.d.mts.map +0 -1
- package/dist/write-tools-BaoTUCg7.mjs.map +0 -1
|
@@ -1,311 +1,66 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as GithubToolName, F as GithubToolPreset, L as PresetToolName, P as CombinedPresetToolNames, a as GithubToolsContext, c as GithubTool, j as GithubTokenInput, n as GithubToolsBaseOptions, o as CommitIdentity, s as CommitToolOptions, t as AllGithubTools, u as ToolOptions } from "./tool-types-OFyE3z0C.mjs";
|
|
2
2
|
import { ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
|
|
3
|
-
import { z } from "zod";
|
|
4
3
|
import { Octokit } from "octokit";
|
|
5
4
|
import "evlog";
|
|
5
|
+
//#region src/core/instructions.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Guidance for using the GitHub tools, for an agent that has its own system prompt, such as an eve
|
|
8
|
+
* agent mounting the GitHub extension. Unlike {@link resolveInstructions}, it leaves out the
|
|
9
|
+
* "You are …" opener: the preset's tool rules (or, without a preset, the rule to prefer the
|
|
10
|
+
* combined read tools), the shared rules, and the working context.
|
|
11
|
+
*/
|
|
12
|
+
declare function resolveToolGuidance(options: {
|
|
13
|
+
preset?: GithubToolPreset | GithubToolPreset[];
|
|
14
|
+
context?: GithubToolsContext;
|
|
15
|
+
}): string;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/agents.d.ts
|
|
18
|
+
/** Name of the tool `preset: 'auto'` adds so the model can call GitHub tools that were not picked. */
|
|
19
|
+
declare const CALL_GITHUB_TOOL = "callGithubTool";
|
|
20
|
+
type AgentOptions = Omit<ToolLoopAgentSettings<ToolSet>, 'model' | 'tools' | 'instructions'>;
|
|
21
|
+
type CreateGithubAgentOptions = AgentOptions & GithubToolsBaseOptions & {
|
|
22
|
+
model: ToolLoopAgentSettings<ToolSet>['model'];
|
|
23
|
+
/**
|
|
24
|
+
* Restrict tools and system prompt to a predefined preset.
|
|
25
|
+
*
|
|
26
|
+
* Selects a subset of tools and sets the preset's system prompt. Combine presets with an array
|
|
27
|
+
* to merge their tool sets and system prompts.
|
|
28
|
+
*
|
|
29
|
+
* `'auto'` asks an evaluation model (Jev by default, see `evaluation`) which tools the
|
|
30
|
+
* conversation's first request needs, and narrows `activeTools` to those and the core read
|
|
31
|
+
* tools for the whole conversation. A `callGithubTool` tool lets the model call any other
|
|
32
|
+
* GitHub tool without changing the tool list, so the provider's prompt cache holds. With `evaluation.selection: 'presets'`, it routes each request to at most two
|
|
33
|
+
* presets instead and uses their system prompts. Needs `ai` 7.0.105 or later, checked when the
|
|
34
|
+
* agent is created.
|
|
35
|
+
*
|
|
36
|
+
* @see {@link GithubToolPreset} for available presets and included tools.
|
|
37
|
+
*/
|
|
38
|
+
preset?: GithubToolPreset | GithubToolPreset[] | 'auto';
|
|
39
|
+
/**
|
|
40
|
+
* Fully replace the default system prompt.
|
|
41
|
+
* When set, `preset` system prompts and `additionalInstructions` are ignored.
|
|
42
|
+
* `context` is still appended when provided.
|
|
43
|
+
*/
|
|
44
|
+
instructions?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Append text to the preset-specific (or default) system prompt.
|
|
47
|
+
* Ignored when `instructions` is set.
|
|
48
|
+
*/
|
|
49
|
+
additionalInstructions?: string;
|
|
50
|
+
};
|
|
51
|
+
declare function createGithubAgent(options: CreateGithubAgentOptions & {
|
|
52
|
+
preset?: undefined | 'auto';
|
|
53
|
+
}): ToolLoopAgent<never, AllGithubTools>;
|
|
54
|
+
declare function createGithubAgent<P extends GithubToolPreset>(options: CreateGithubAgentOptions & {
|
|
55
|
+
preset: P;
|
|
56
|
+
}): ToolLoopAgent<never, Pick<AllGithubTools, PresetToolName<P>>>;
|
|
57
|
+
declare function createGithubAgent<P extends readonly GithubToolPreset[]>(options: CreateGithubAgentOptions & {
|
|
58
|
+
preset: P;
|
|
59
|
+
}): ToolLoopAgent<never, Pick<AllGithubTools, CombinedPresetToolNames<P>>>;
|
|
6
60
|
//#endregion
|
|
7
61
|
//#region src/client.d.ts
|
|
8
62
|
declare function createOctokit(token: string): Octokit;
|
|
9
63
|
//#endregion
|
|
10
|
-
//#region src/core/pagination.d.ts
|
|
11
|
-
type PagingFields = {
|
|
12
|
-
hasMore: boolean;
|
|
13
|
-
page: number;
|
|
14
|
-
perPage: number;
|
|
15
|
-
nextPage?: number;
|
|
16
|
-
};
|
|
17
|
-
type PagedList<T> = {
|
|
18
|
-
items: T[];
|
|
19
|
-
} & PagingFields;
|
|
20
|
-
declare namespace repository_d_exports {
|
|
21
|
-
export { composeCommitMessage, createBranchCore, createBranchDescription, createBranchInputSchema, createCommitOnBranch, createOrUpdateFileCore, createOrUpdateFileDescription, createOrUpdateFileInputSchema, createRepositoryCore, createRepositoryDescription, createRepositoryInputSchema, deleteBranchCore, deleteBranchDescription, deleteBranchInputSchema, forkRepositoryCore, forkRepositoryDescription, forkRepositoryInputSchema, getFileContentCore, getFileContentDescription, getFileContentInputSchema, getRepositoryCore, getRepositoryDescription, getRepositoryInputSchema, getRepositoryTreeCore, getRepositoryTreeDescription, getRepositoryTreeInputSchema, listBranchesCore, listBranchesDescription, listBranchesInputSchema };
|
|
22
|
-
}
|
|
23
|
-
declare function createCommitOnBranch(octokit: Octokit$1, input: {
|
|
24
|
-
owner: string;
|
|
25
|
-
repo: string;
|
|
26
|
-
branch: string;
|
|
27
|
-
expectedHeadOid: string;
|
|
28
|
-
headline: string;
|
|
29
|
-
body?: string;
|
|
30
|
-
additions?: Array<{
|
|
31
|
-
path: string;
|
|
32
|
-
contents: string;
|
|
33
|
-
}>;
|
|
34
|
-
deletions?: Array<{
|
|
35
|
-
path: string;
|
|
36
|
-
}>;
|
|
37
|
-
}): Promise<{
|
|
38
|
-
commitSha: string;
|
|
39
|
-
commitUrl: string;
|
|
40
|
-
}>;
|
|
41
|
-
declare function composeCommitMessage(message: string, coAuthors?: CommitIdentity[]): string;
|
|
42
|
-
declare const getRepositoryInputSchema: z.ZodObject<{
|
|
43
|
-
owner: z.ZodString;
|
|
44
|
-
repo: z.ZodString;
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
declare const getRepositoryDescription = "Get information about a GitHub repository including description, stars, forks, language, and default branch";
|
|
47
|
-
declare function getRepositoryCore({ token, owner, repo }: {
|
|
48
|
-
token: string;
|
|
49
|
-
owner: string;
|
|
50
|
-
repo: string;
|
|
51
|
-
}): Promise<{
|
|
52
|
-
name: string;
|
|
53
|
-
fullName: string;
|
|
54
|
-
description: string | null;
|
|
55
|
-
url: string;
|
|
56
|
-
defaultBranch: string;
|
|
57
|
-
stars: number;
|
|
58
|
-
forks: number;
|
|
59
|
-
openIssues: number;
|
|
60
|
-
language: string | null;
|
|
61
|
-
private: boolean;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
64
|
-
}>;
|
|
65
|
-
declare const listBranchesInputSchema: z.ZodObject<{
|
|
66
|
-
owner: z.ZodString;
|
|
67
|
-
repo: z.ZodString;
|
|
68
|
-
perPage: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
69
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
70
|
-
}, z.core.$strip>;
|
|
71
|
-
declare const listBranchesDescription = "List branches in a GitHub repository. When hasMore, pass nextPage — do not repeat the same call.";
|
|
72
|
-
declare function listBranchesCore({ token, owner, repo, perPage, page }: {
|
|
73
|
-
token: string;
|
|
74
|
-
owner: string;
|
|
75
|
-
repo: string;
|
|
76
|
-
perPage: number;
|
|
77
|
-
page?: number;
|
|
78
|
-
}): Promise<PagedList<{
|
|
79
|
-
name: string;
|
|
80
|
-
sha: string;
|
|
81
|
-
protected: boolean;
|
|
82
|
-
}>>;
|
|
83
|
-
declare const getFileContentInputSchema: z.ZodObject<{
|
|
84
|
-
owner: z.ZodString;
|
|
85
|
-
repo: z.ZodString;
|
|
86
|
-
path: z.ZodString;
|
|
87
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
88
|
-
startLine: z.ZodOptional<z.ZodNumber>;
|
|
89
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
90
|
-
maxLines: z.ZodOptional<z.ZodNumber>;
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
declare const getFileContentDescription = "Get the content of a file from a GitHub repository. Prefer startLine/endLine or maxLines to read only the lines you need";
|
|
93
|
-
declare function getFileContentCore({ token, owner, repo, path, ref, startLine, endLine, maxLines }: {
|
|
94
|
-
token: string;
|
|
95
|
-
owner: string;
|
|
96
|
-
repo: string;
|
|
97
|
-
path: string;
|
|
98
|
-
ref?: string;
|
|
99
|
-
startLine?: number;
|
|
100
|
-
endLine?: number;
|
|
101
|
-
maxLines?: number;
|
|
102
|
-
}): Promise<{
|
|
103
|
-
type: "directory";
|
|
104
|
-
entries: {
|
|
105
|
-
name: string;
|
|
106
|
-
type: "file" | "dir" | "submodule" | "symlink";
|
|
107
|
-
path: string;
|
|
108
|
-
}[];
|
|
109
|
-
path?: undefined;
|
|
110
|
-
sha?: undefined;
|
|
111
|
-
size?: undefined;
|
|
112
|
-
totalLines?: undefined;
|
|
113
|
-
content?: undefined;
|
|
114
|
-
startLine?: undefined;
|
|
115
|
-
endLine?: undefined;
|
|
116
|
-
truncated?: undefined;
|
|
117
|
-
} | {
|
|
118
|
-
type: "submodule" | "symlink";
|
|
119
|
-
path: string;
|
|
120
|
-
entries?: undefined;
|
|
121
|
-
sha?: undefined;
|
|
122
|
-
size?: undefined;
|
|
123
|
-
totalLines?: undefined;
|
|
124
|
-
content?: undefined;
|
|
125
|
-
startLine?: undefined;
|
|
126
|
-
endLine?: undefined;
|
|
127
|
-
truncated?: undefined;
|
|
128
|
-
} | {
|
|
129
|
-
type: "file";
|
|
130
|
-
path: string;
|
|
131
|
-
sha: string;
|
|
132
|
-
size: number;
|
|
133
|
-
totalLines: number;
|
|
134
|
-
content: string;
|
|
135
|
-
entries?: undefined;
|
|
136
|
-
startLine?: undefined;
|
|
137
|
-
endLine?: undefined;
|
|
138
|
-
truncated?: undefined;
|
|
139
|
-
} | {
|
|
140
|
-
type: "file";
|
|
141
|
-
path: string;
|
|
142
|
-
sha: string;
|
|
143
|
-
size: number;
|
|
144
|
-
totalLines: number;
|
|
145
|
-
startLine: number;
|
|
146
|
-
endLine: number;
|
|
147
|
-
truncated: boolean;
|
|
148
|
-
content: string;
|
|
149
|
-
entries?: undefined;
|
|
150
|
-
}>;
|
|
151
|
-
declare const getRepositoryTreeInputSchema: z.ZodObject<{
|
|
152
|
-
owner: z.ZodString;
|
|
153
|
-
repo: z.ZodString;
|
|
154
|
-
ref: z.ZodOptional<z.ZodString>;
|
|
155
|
-
path: z.ZodOptional<z.ZodString>;
|
|
156
|
-
recursive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
157
|
-
}, z.core.$strip>;
|
|
158
|
-
declare const getRepositoryTreeDescription = "List the file and directory structure of a repository at a given ref. Prefer a path prefix over recursive true. If truncated, narrow path instead of recalling the full tree.";
|
|
159
|
-
declare function getRepositoryTreeCore({ token, owner, repo, ref, path, recursive }: {
|
|
160
|
-
token: string;
|
|
161
|
-
owner: string;
|
|
162
|
-
repo: string;
|
|
163
|
-
ref?: string;
|
|
164
|
-
path?: string;
|
|
165
|
-
recursive: boolean;
|
|
166
|
-
}): Promise<{
|
|
167
|
-
sha: string;
|
|
168
|
-
truncated: boolean;
|
|
169
|
-
path: string | undefined;
|
|
170
|
-
entries: {
|
|
171
|
-
path: string;
|
|
172
|
-
type: string;
|
|
173
|
-
size: number | undefined;
|
|
174
|
-
sha: string;
|
|
175
|
-
}[];
|
|
176
|
-
}>;
|
|
177
|
-
declare const createBranchInputSchema: z.ZodObject<{
|
|
178
|
-
owner: z.ZodString;
|
|
179
|
-
repo: z.ZodString;
|
|
180
|
-
branch: z.ZodString;
|
|
181
|
-
from: z.ZodOptional<z.ZodString>;
|
|
182
|
-
}, z.core.$strip>;
|
|
183
|
-
declare const createBranchDescription = "Create a new branch in a GitHub repository from an existing branch or commit SHA";
|
|
184
|
-
/** Idempotent when the branch already exists at the target SHA. Not idempotent otherwise. */
|
|
185
|
-
declare function createBranchCore({ token, owner, repo, branch, from }: {
|
|
186
|
-
token: string;
|
|
187
|
-
owner: string;
|
|
188
|
-
repo: string;
|
|
189
|
-
branch: string;
|
|
190
|
-
from?: string;
|
|
191
|
-
}): Promise<{
|
|
192
|
-
ref: string;
|
|
193
|
-
sha: string;
|
|
194
|
-
url: string;
|
|
195
|
-
}>;
|
|
196
|
-
declare const deleteBranchInputSchema: z.ZodObject<{
|
|
197
|
-
owner: z.ZodString;
|
|
198
|
-
repo: z.ZodString;
|
|
199
|
-
branch: z.ZodString;
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
declare const deleteBranchDescription = "Delete a branch from a GitHub repository permanently";
|
|
202
|
-
/** Not idempotent — deleting a branch that no longer exists fails with a 422. */
|
|
203
|
-
declare function deleteBranchCore({ token, owner, repo, branch }: {
|
|
204
|
-
token: string;
|
|
205
|
-
owner: string;
|
|
206
|
-
repo: string;
|
|
207
|
-
branch: string;
|
|
208
|
-
}): Promise<{
|
|
209
|
-
deleted: boolean;
|
|
210
|
-
branch: string;
|
|
211
|
-
}>;
|
|
212
|
-
declare const forkRepositoryInputSchema: z.ZodObject<{
|
|
213
|
-
owner: z.ZodString;
|
|
214
|
-
repo: z.ZodString;
|
|
215
|
-
organization: z.ZodOptional<z.ZodString>;
|
|
216
|
-
name: z.ZodOptional<z.ZodString>;
|
|
217
|
-
}, z.core.$strip>;
|
|
218
|
-
declare const forkRepositoryDescription = "Fork a GitHub repository to the authenticated user account or a specified organization";
|
|
219
|
-
/** Not idempotent — each call may create another fork attempt. */
|
|
220
|
-
declare function forkRepositoryCore({ token, owner, repo, organization, name }: {
|
|
221
|
-
token: string;
|
|
222
|
-
owner: string;
|
|
223
|
-
repo: string;
|
|
224
|
-
organization?: string;
|
|
225
|
-
name?: string;
|
|
226
|
-
}): Promise<{
|
|
227
|
-
name: string;
|
|
228
|
-
fullName: string;
|
|
229
|
-
url: string;
|
|
230
|
-
cloneUrl: string;
|
|
231
|
-
sshUrl: string;
|
|
232
|
-
defaultBranch: string;
|
|
233
|
-
private: boolean;
|
|
234
|
-
parent: {
|
|
235
|
-
fullName: string;
|
|
236
|
-
url: string;
|
|
237
|
-
} | null;
|
|
238
|
-
}>;
|
|
239
|
-
declare const createRepositoryInputSchema: z.ZodObject<{
|
|
240
|
-
name: z.ZodString;
|
|
241
|
-
description: z.ZodOptional<z.ZodString>;
|
|
242
|
-
isPrivate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
243
|
-
autoInit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
244
|
-
gitignoreTemplate: z.ZodOptional<z.ZodString>;
|
|
245
|
-
licenseTemplate: z.ZodOptional<z.ZodString>;
|
|
246
|
-
org: z.ZodOptional<z.ZodString>;
|
|
247
|
-
}, z.core.$strip>;
|
|
248
|
-
declare const createRepositoryDescription = "Create a new GitHub repository for the authenticated user or a specified organization";
|
|
249
|
-
/** Not idempotent — each call creates a new repository. */
|
|
250
|
-
declare function createRepositoryCore({ token, name, description, isPrivate, autoInit, gitignoreTemplate, licenseTemplate, org }: {
|
|
251
|
-
token: string;
|
|
252
|
-
name: string;
|
|
253
|
-
description?: string;
|
|
254
|
-
isPrivate: boolean;
|
|
255
|
-
autoInit: boolean;
|
|
256
|
-
gitignoreTemplate?: string;
|
|
257
|
-
licenseTemplate?: string;
|
|
258
|
-
org?: string;
|
|
259
|
-
}): Promise<{
|
|
260
|
-
name: string;
|
|
261
|
-
fullName: string;
|
|
262
|
-
description: string | null;
|
|
263
|
-
url: string;
|
|
264
|
-
cloneUrl: string;
|
|
265
|
-
sshUrl: string;
|
|
266
|
-
defaultBranch: string;
|
|
267
|
-
private: boolean;
|
|
268
|
-
createdAt: string;
|
|
269
|
-
}>;
|
|
270
|
-
declare const createOrUpdateFileInputSchema: z.ZodObject<{
|
|
271
|
-
owner: z.ZodString;
|
|
272
|
-
repo: z.ZodString;
|
|
273
|
-
path: z.ZodString;
|
|
274
|
-
message: z.ZodString;
|
|
275
|
-
content: z.ZodString;
|
|
276
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
277
|
-
sha: z.ZodOptional<z.ZodString>;
|
|
278
|
-
}, z.core.$strip>;
|
|
279
|
-
declare const createOrUpdateFileDescription = "Create or update a file in a GitHub repository. Provide the SHA when updating an existing file.";
|
|
280
|
-
/** Idempotent when updating with sha and content is unchanged. Not idempotent for new commits. */
|
|
281
|
-
declare function createOrUpdateFileCore({ token, owner, repo, path, message, content, branch, sha, author, committer, coAuthors }: {
|
|
282
|
-
token: string;
|
|
283
|
-
owner: string;
|
|
284
|
-
repo: string;
|
|
285
|
-
path: string;
|
|
286
|
-
message: string;
|
|
287
|
-
content: string;
|
|
288
|
-
branch?: string;
|
|
289
|
-
sha?: string;
|
|
290
|
-
author?: CommitIdentity;
|
|
291
|
-
committer?: CommitIdentity;
|
|
292
|
-
coAuthors?: CommitIdentity[];
|
|
293
|
-
}): Promise<{
|
|
294
|
-
path: string;
|
|
295
|
-
sha: string;
|
|
296
|
-
skipped: true;
|
|
297
|
-
message: string;
|
|
298
|
-
commitSha?: undefined;
|
|
299
|
-
commitUrl?: undefined;
|
|
300
|
-
} | {
|
|
301
|
-
path: string | undefined;
|
|
302
|
-
sha: string | undefined;
|
|
303
|
-
commitSha: string | undefined;
|
|
304
|
-
commitUrl: string | undefined;
|
|
305
|
-
skipped?: undefined;
|
|
306
|
-
message?: undefined;
|
|
307
|
-
}>;
|
|
308
|
-
//#endregion
|
|
309
64
|
//#region src/tools/repository.d.ts
|
|
310
65
|
/** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
|
|
311
66
|
declare const getRepository: (token: GithubTokenInput) => GithubTool;
|
|
@@ -325,6 +80,10 @@ declare const forkRepository: (token: GithubTokenInput, { needsApproval }?: Tool
|
|
|
325
80
|
declare const createRepository: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
326
81
|
/** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */
|
|
327
82
|
declare const createOrUpdateFile: (token: GithubTokenInput, { needsApproval, author, committer, coAuthors }?: CommitToolOptions) => GithubTool;
|
|
83
|
+
/** Edit files in one commit, by exact text replacement or whole contents, on a new or existing branch, and optionally open a pull request. Requires approval by default. */
|
|
84
|
+
declare const editFiles: (token: GithubTokenInput, { needsApproval, author, committer, coAuthors }?: CommitToolOptions) => GithubTool;
|
|
85
|
+
/** List the required checks, required reviews and other rules that protect a branch. */
|
|
86
|
+
declare const getBranchRules: (token: GithubTokenInput) => GithubTool;
|
|
328
87
|
//#endregion
|
|
329
88
|
//#region src/tools/pull-requests.d.ts
|
|
330
89
|
type MergeToolOptions = ToolOptions & {
|
|
@@ -360,6 +119,10 @@ declare const replyToReviewComment: (token: GithubTokenInput, { needsApproval }?
|
|
|
360
119
|
declare const resolveReviewThread: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
361
120
|
/** Request reviews from users or teams on a pull request. Requires approval by default. */
|
|
362
121
|
declare const requestReviewers: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
122
|
+
/** Merge a pull request automatically once its required checks and reviews pass. Requires approval by default. */
|
|
123
|
+
declare const enablePullRequestAutoMerge: (token: GithubTokenInput, { needsApproval, coAuthors }?: MergeToolOptions) => GithubTool;
|
|
124
|
+
/** Cancel a pending auto-merge. Requires approval by default. */
|
|
125
|
+
declare const disablePullRequestAutoMerge: (token: GithubTokenInput, { needsApproval }?: ToolOptions) => GithubTool;
|
|
363
126
|
//#endregion
|
|
364
127
|
//#region src/tools/issues.d.ts
|
|
365
128
|
/** List issues for a GitHub repository (excludes pull requests). */
|
|
@@ -479,6 +242,14 @@ declare const listCheckRuns: (token: GithubTokenInput) => GithubTool;
|
|
|
479
242
|
/** Get the combined commit status (Statuses API — legacy CI integrations) for a commit, branch, or tag. */
|
|
480
243
|
declare const getCombinedStatus: (token: GithubTokenInput) => GithubTool;
|
|
481
244
|
//#endregion
|
|
245
|
+
//#region src/tools/security.d.ts
|
|
246
|
+
/** List code scanning alerts for a repository, with the rule, severity and location. */
|
|
247
|
+
declare const listCodeScanningAlerts: (token: GithubTokenInput) => GithubTool;
|
|
248
|
+
/** List Dependabot alerts for vulnerable dependencies, with the advisory and the first patched version. */
|
|
249
|
+
declare const listDependabotAlerts: (token: GithubTokenInput) => GithubTool;
|
|
250
|
+
/** List secret scanning alerts for a repository. The secret itself is never returned. */
|
|
251
|
+
declare const listSecretScanningAlerts: (token: GithubTokenInput) => GithubTool;
|
|
252
|
+
//#endregion
|
|
482
253
|
//#region src/tools/releases.d.ts
|
|
483
254
|
/** List releases for a GitHub repository, newest first (includes drafts and prereleases). */
|
|
484
255
|
declare const listReleases: (token: GithubTokenInput) => GithubTool;
|
|
@@ -576,10 +347,24 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
576
347
|
readonly fix: "Keep Connect resolver calls on the tool execute path; use static `connect` params when no execution context is available.";
|
|
577
348
|
readonly link: "https://github-tools.com/frameworks/eve-extension#per-user-tokens";
|
|
578
349
|
};
|
|
350
|
+
readonly SESSION_SCOPE_NEEDS_TOOL_SELECTION: {
|
|
351
|
+
readonly status: 500;
|
|
352
|
+
readonly message: "`evaluation.scope: 'session'` on `createGithubAgent` does not work with `evaluation.selection: 'presets'`.";
|
|
353
|
+
readonly why: "With presets, a request later in the conversation could need a tool outside the presets picked for the first request, and the agent would have no way to reach it. Tool selection adds `callGithubTool` for that.";
|
|
354
|
+
readonly fix: "Remove `selection: 'presets'` to pick single tools, the default, or remove `scope: 'session'` to route presets for each request. The eve extension accepts both together, because it defers unlisted tools.";
|
|
355
|
+
readonly link: "https://github-tools.com/guide/presets#keep-the-prompt-cache-across-requests";
|
|
356
|
+
};
|
|
357
|
+
readonly DURABLE_GENERATE_UNAVAILABLE: {
|
|
358
|
+
readonly status: 500;
|
|
359
|
+
readonly message: "`createDurableGithubAgent(...).generate()` needs `WorkflowAgent.generate()` from `@ai-sdk/workflow` 2.0.59 or later.";
|
|
360
|
+
readonly why: "The installed `@ai-sdk/workflow` has no non-streaming `WorkflowAgent.generate()`.";
|
|
361
|
+
readonly fix: "Upgrade `@ai-sdk/workflow` to 2.0.59 or later, or call `.stream()` instead.";
|
|
362
|
+
readonly link: "https://github-tools.com/frameworks/vercel-workflow#non-streaming-bot-background-job";
|
|
363
|
+
};
|
|
579
364
|
readonly EVALUATION_UNAVAILABLE: {
|
|
580
365
|
readonly status: 500;
|
|
581
|
-
readonly message: "`requireApproval: 'auto'` and `preset: 'auto'` need `experimental_evaluate` from `ai` 7.0.105 or later.";
|
|
582
|
-
readonly why: "The installed `ai` package
|
|
366
|
+
readonly message: "`requireApproval: 'auto'` and `preset: 'auto'` need `experimental_decide` (or `experimental_evaluate`) from `ai` 7.0.105 or later.";
|
|
367
|
+
readonly why: "The installed `ai` package exports neither `experimental_decide` nor `experimental_evaluate`, which run the decision model behind the `'auto'` options.";
|
|
583
368
|
readonly fix: "Upgrade `ai` to 7.0.105 or later, or replace `'auto'` with `true` / `false` or an explicit preset.";
|
|
584
369
|
readonly link: "https://github-tools.com/guide/approval-control#auto-approval";
|
|
585
370
|
};
|
|
@@ -590,7 +375,7 @@ declare const githubToolsErrors: import("evlog").ErrorCatalog<"github_tools", {
|
|
|
590
375
|
fallback: string;
|
|
591
376
|
detail: string;
|
|
592
377
|
}) => string;
|
|
593
|
-
readonly why: "The `
|
|
378
|
+
readonly why: "The `experimental_decide` call behind `requireApproval: 'auto'` or `preset: 'auto'` threw — typically the model is not enabled for the AI Gateway project, the team has no credits, or the gateway is rate limiting or unavailable.";
|
|
594
379
|
readonly fix: "Check the evaluation model is available to the project on AI Gateway and has credits, or set `evaluation.model` to one that is. The agent keeps running on the fallback until then.";
|
|
595
380
|
readonly link: "https://github-tools.com/guide/approval-control#auto-approval";
|
|
596
381
|
};
|
|
@@ -646,47 +431,6 @@ declare module 'evlog' {
|
|
|
646
431
|
}
|
|
647
432
|
}
|
|
648
433
|
//#endregion
|
|
649
|
-
//#region src/agents.d.ts
|
|
650
|
-
type AgentOptions = Omit<ToolLoopAgentSettings<ToolSet>, 'model' | 'tools' | 'instructions'>;
|
|
651
|
-
type CreateGithubAgentOptions = AgentOptions & GithubToolsBaseOptions & {
|
|
652
|
-
model: ToolLoopAgentSettings<ToolSet>['model'];
|
|
653
|
-
/**
|
|
654
|
-
* Restrict tools and system prompt to a predefined preset.
|
|
655
|
-
*
|
|
656
|
-
* Selects a subset of tools and, when a single preset is passed,
|
|
657
|
-
* sets a matching system prompt. Combine presets with an array to merge tool sets.
|
|
658
|
-
*
|
|
659
|
-
* `'auto'` picks presets per call from the latest user message with an evaluation model
|
|
660
|
-
* (Jev by default, see `evaluation`), then narrows `activeTools` and uses the matching
|
|
661
|
-
* system prompt. Combines at most two presets (`evaluation.maxPresets`), and only uses
|
|
662
|
-
* read-only `repo-explorer` when no other preset qualifies; when none clears the threshold,
|
|
663
|
-
* uses the most likely one. Never exposes the full catalog. Needs `ai` 7.0.105 or later.
|
|
664
|
-
*
|
|
665
|
-
* @see {@link GithubToolPreset} for available presets and included tools.
|
|
666
|
-
*/
|
|
667
|
-
preset?: GithubToolPreset | GithubToolPreset[] | 'auto';
|
|
668
|
-
/**
|
|
669
|
-
* Fully replace the default system prompt.
|
|
670
|
-
* When set, `preset` system prompts and `additionalInstructions` are ignored.
|
|
671
|
-
* `context` is still appended when provided.
|
|
672
|
-
*/
|
|
673
|
-
instructions?: string;
|
|
674
|
-
/**
|
|
675
|
-
* Append text to the preset-specific (or default) system prompt.
|
|
676
|
-
* Ignored when `instructions` is set.
|
|
677
|
-
*/
|
|
678
|
-
additionalInstructions?: string;
|
|
679
|
-
};
|
|
680
|
-
declare function createGithubAgent(options: CreateGithubAgentOptions & {
|
|
681
|
-
preset?: undefined | 'auto';
|
|
682
|
-
}): ToolLoopAgent<never, AllGithubTools>;
|
|
683
|
-
declare function createGithubAgent<P extends GithubToolPreset>(options: CreateGithubAgentOptions & {
|
|
684
|
-
preset: P;
|
|
685
|
-
}): ToolLoopAgent<never, Pick<AllGithubTools, PresetToolName<P>>>;
|
|
686
|
-
declare function createGithubAgent<P extends readonly GithubToolPreset[]>(options: CreateGithubAgentOptions & {
|
|
687
|
-
preset: P;
|
|
688
|
-
}): ToolLoopAgent<never, Pick<AllGithubTools, CombinedPresetToolNames<P>>>;
|
|
689
|
-
//#endregion
|
|
690
434
|
//#region src/index.d.ts
|
|
691
435
|
type GithubToolsOptions = GithubToolsBaseOptions & {
|
|
692
436
|
/**
|
|
@@ -721,5 +465,5 @@ declare function createGithubTools<P extends readonly GithubToolPreset[]>(option
|
|
|
721
465
|
declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools | Pick<AllGithubTools, GithubToolName>;
|
|
722
466
|
type GithubTools = AllGithubTools & ToolSet;
|
|
723
467
|
//#endregion
|
|
724
|
-
export {
|
|
725
|
-
//# sourceMappingURL=index-
|
|
468
|
+
export { addIssueComment as $, createGistComment as A, updatePullRequest as At, searchCode as B, getRepository as Bt, getWorkflowRun as C, listPullRequestReviewThreads as Ct, rerunWorkflowRun as D, replyToReviewComment as Dt, listWorkflows as E, mergePullRequest as Et, updateGist as F, deleteBranch as Ft, addDiscussionComment as G, CreateGithubAgentOptions as Gt, searchRepositories as H, listBranches as Ht, compareCommits as I, editFiles as It, addCommentReaction as J, getDiscussion as K, createGithubAgent as Kt, getBlame as L, forkRepository as Lt, getGist as M, createBranch as Mt, listGistComments as N, createOrUpdateFile as Nt, triggerWorkflow as O, requestReviewers as Ot, listGists as P, createRepository as Pt, addAssignees as Q, getCommit as R, getBranchRules as Rt, getWorkflowJobLogs as S, listPullRequestFiles as St, listWorkflowRuns as T, listPullRequests as Tt, listNotifications as U, createOctokit as Ut, searchIssues as V, getRepositoryTree as Vt, markNotificationRead as W, CALL_GITHUB_TOOL as Wt, listCommentReactions as X, addIssueReaction as Y, listIssueReactions as Z, listDependabotAlerts as _, createPullRequestReview as _t, GithubRateLimit as a, deleteLabel as at, listCheckRuns as b, enablePullRequestAutoMerge as bt, getPullRequestContext as c, listIssues as ct, deleteRelease as d, removeLabel as dt, addLabels as et, getLatestRelease as f, updateIssue as ft, listCodeScanningAlerts as g, createPullRequest as gt, updateRelease as h, addPullRequestComment as ht, githubToolsErrors as i, deleteIssueComment as it, deleteGist as j, updatePullRequestComment as jt, createGist as k, resolveReviewThread as kt, getReleaseContext as l, listLabels as lt, listReleases as m, updateLabel as mt, GithubToolsOptions as n, createIssue as nt, getCiFailureContext as o, getIssue as ot, getRelease as p, updateIssueComment as pt, listDiscussions as q, resolveToolGuidance as qt, createGithubTools as r, createLabel as rt, getIssueContext as s, listIssueComments as st, GithubTools as t, closeIssue as tt, createRelease as u, removeAssignees as ut, listSecretScanningAlerts as v, deletePullRequestComment as vt, listWorkflowJobs as w, listPullRequestReviews as wt, cancelWorkflowRun as x, getPullRequest as xt, getCombinedStatus as y, disablePullRequestAutoMerge as yt, listCommits as z, getFileContent as zt };
|
|
469
|
+
//# sourceMappingURL=index-C3wlz660.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-C3wlz660.d.mts","names":[],"sources":["../src/core/instructions.ts","../src/agents.ts","../src/client.ts","../src/tools/repository.ts","../src/tools/pull-requests.ts","../src/tools/issues.ts","../src/tools/reactions.ts","../src/tools/discussions.ts","../src/tools/notifications.ts","../src/tools/search.ts","../src/tools/commits.ts","../src/tools/gists.ts","../src/tools/workflows.ts","../src/tools/checks.ts","../src/tools/security.ts","../src/tools/releases.ts","../src/tools/bundles.ts","../src/core/rate-limit.ts","../src/core/errors.ts","../src/index.ts"],"mappings":";;;;;;;;;;;iBAyJgB,oBAAoB;EAClC,SAAS,mBAAmB;EAC5B,UAAU;;;;;cCzIC;KAsFR,eAAe,KAAK,sBAAsB;KAEnC,2BAA2B,eAAe;EACpD,OAAO,sBAAsB;;;;;;;;;;;;;;;;EAgB7B,SAAS,mBAAmB;;;;;;EAM5B;;;;;EAKA;;iBA2Dc,kBAAkB,SAAS;EAA6B;IAAgC,qBAAqB;iBAC7G,kBAAkB,UAAU,kBAC1C,SAAS;EAA6B,QAAQ;IAC7C,qBAAqB,KAAK,gBAAgB,eAAe;iBAC5C,kBAAkB,mBAAmB,oBACnD,SAAS;EAA6B,QAAQ;IAC7C,qBAAqB,KAAK,gBAAgB,wBAAwB;;;iBCtLrD,cAAc,gBAAgB;;;;cC8BjC,gBAAiB,OAAO,qBAAmB;;cAa3C,eAAgB,OAAO,qBAAmB;;cAa1C,i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;;;;;;aAQE,YAAA,QAAA;MAAE;MAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAsCR,YAAA,OAAA,UAAA;MAAE;MAAe;MAAkB;;;;;;;;aAQpD,YAAA;MAAE;;;;;;;;aAOF,YAAA;MAAE;;;;;;;;aAOF,YAAA;MAAE;;;;;;;;aAOF,YAAA;MAAE;;;;;;;;aAOF,YAAA;MAAE;;;;;;;;YAQhB;IACR,qBAAqB;;;;;KCxFb,qBAAqB;;;;;;;;;;;;;;;;;;;EAmB/B,SAAS,mBAAmB;;iBAGd,kBAAkB,UAAU;EAA2B;IAAuB;iBAC9E,kBAAkB,UAAU,kBAC1C,SAAS;EAA2B,QAAQ;IAC3C,KAAK,gBAAgB,eAAe;iBACvB,kBAAkB,mBAAmB,oBACnD,SAAS;EAA2B,QAAQ;IAC3C,KAAK,gBAAgB,wBAAwB;iBAChC,kBAAkB,UAAU,qBAAqB,iBAAiB,KAAK,gBAAgB;KA0L3F,cAAc,iBAAiB"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as
|
|
3
|
-
export { AUTO_APPROVAL_TOOLS, type AllGithubTools, type ApprovalConfig, type CombinedPresetToolNames, type CommitIdentity, type CommitToolOptions, type CreateGithubAgentOptions, DEFAULT_EVALUATION_MODEL, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubEvaluationOptions, type GithubRateLimit, type GithubTokenCall, type GithubTokenInput, type GithubTool, type GithubToolName, type GithubToolPreset, GithubTools, type GithubToolsContext, type GithubToolsForPreset, GithubToolsOptions, type GithubWriteToolName, type Octokit, PRESET_TOOLS, type PickGithubTools, type PresetToolName, type StaticApprovalConfig, type ToolApprovalMode, type ToolOptions, type ToolOverrides, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteBranch, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, forkRepository, getBlame, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowJobLogs, getWorkflowRun, githubToolsErrors, listBranches, listCheckRuns, listCommentReactions, listCommits, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviewThreads, listPullRequestReviews, listPullRequests, listReleases, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, replyToReviewComment, requestReviewers, rerunWorkflowRun, resolveGithubToken, resolveReviewThread, searchCode, searchIssues, searchRepositories, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
|
|
1
|
+
import { A as GithubTokenCall, B as GithubToolName, D as AUTO_APPROVAL_TOOLS, E as GITHUB_WRITE_TOOLS, F as GithubToolPreset, I as PRESET_TOOLS, L as PresetToolName, M as resolveGithubToken, N as CORE_READ_TOOLS, O as DEFAULT_EVALUATION_MODEL, P as CombinedPresetToolNames, R as GITHUB_TOOL_NAMES, T as selectTools, V as GithubWriteToolName, a as GithubToolsContext, c as GithubTool, d as ToolOverrides, f as ApprovalConfig, g as GithubEvaluationOptions, i as PickGithubTools, j as GithubTokenInput, l as Octokit, m as ToolApprovalMode, o as CommitIdentity, p as StaticApprovalConfig, r as GithubToolsForPreset, s as CommitToolOptions, t as AllGithubTools, u as ToolOptions, w as selectPresets } from "./tool-types-OFyE3z0C.mjs";
|
|
2
|
+
import { $ as addIssueComment, A as createGistComment, At as updatePullRequest, B as searchCode, Bt as getRepository, C as getWorkflowRun, Ct as listPullRequestReviewThreads, D as rerunWorkflowRun, Dt as replyToReviewComment, E as listWorkflows, Et as mergePullRequest, F as updateGist, Ft as deleteBranch, G as addDiscussionComment, Gt as CreateGithubAgentOptions, H as searchRepositories, Ht as listBranches, I as compareCommits, It as editFiles, J as addCommentReaction, K as getDiscussion, Kt as createGithubAgent, L as getBlame, Lt as forkRepository, M as getGist, Mt as createBranch, N as listGistComments, Nt as createOrUpdateFile, O as triggerWorkflow, Ot as requestReviewers, P as listGists, Pt as createRepository, Q as addAssignees, R as getCommit, Rt as getBranchRules, S as getWorkflowJobLogs, St as listPullRequestFiles, T as listWorkflowRuns, Tt as listPullRequests, U as listNotifications, Ut as createOctokit, V as searchIssues, Vt as getRepositoryTree, W as markNotificationRead, Wt as CALL_GITHUB_TOOL, X as listCommentReactions, Y as addIssueReaction, Z as listIssueReactions, _ as listDependabotAlerts, _t as createPullRequestReview, a as GithubRateLimit, at as deleteLabel, b as listCheckRuns, bt as enablePullRequestAutoMerge, c as getPullRequestContext, ct as listIssues, d as deleteRelease, dt as removeLabel, et as addLabels, f as getLatestRelease, ft as updateIssue, g as listCodeScanningAlerts, gt as createPullRequest, h as updateRelease, ht as addPullRequestComment, i as githubToolsErrors, it as deleteIssueComment, j as deleteGist, jt as updatePullRequestComment, k as createGist, kt as resolveReviewThread, l as getReleaseContext, lt as listLabels, m as listReleases, mt as updateLabel, n as GithubToolsOptions, nt as createIssue, o as getCiFailureContext, ot as getIssue, p as getRelease, pt as updateIssueComment, q as listDiscussions, r as createGithubTools, rt as createLabel, s as getIssueContext, st as listIssueComments, t as GithubTools, tt as closeIssue, u as createRelease, ut as removeAssignees, v as listSecretScanningAlerts, vt as deletePullRequestComment, w as listWorkflowJobs, wt as listPullRequestReviews, x as cancelWorkflowRun, xt as getPullRequest, y as getCombinedStatus, yt as disablePullRequestAutoMerge, z as listCommits, zt as getFileContent } from "./index-C3wlz660.mjs";
|
|
3
|
+
export { AUTO_APPROVAL_TOOLS, type AllGithubTools, type ApprovalConfig, CALL_GITHUB_TOOL, CORE_READ_TOOLS, type CombinedPresetToolNames, type CommitIdentity, type CommitToolOptions, type CreateGithubAgentOptions, DEFAULT_EVALUATION_MODEL, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubEvaluationOptions, type GithubRateLimit, type GithubTokenCall, type GithubTokenInput, type GithubTool, type GithubToolName, type GithubToolPreset, GithubTools, type GithubToolsContext, type GithubToolsForPreset, GithubToolsOptions, type GithubWriteToolName, type Octokit, PRESET_TOOLS, type PickGithubTools, type PresetToolName, type StaticApprovalConfig, type ToolApprovalMode, type ToolOptions, type ToolOverrides, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteBranch, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, disablePullRequestAutoMerge, editFiles, enablePullRequestAutoMerge, forkRepository, getBlame, getBranchRules, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowJobLogs, getWorkflowRun, githubToolsErrors, listBranches, listCheckRuns, listCodeScanningAlerts, listCommentReactions, listCommits, listDependabotAlerts, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviewThreads, listPullRequestReviews, listPullRequests, listReleases, listSecretScanningAlerts, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, replyToReviewComment, requestReviewers, rerunWorkflowRun, resolveGithubToken, resolveReviewThread, searchCode, searchIssues, searchRepositories, selectPresets, selectTools, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { Aa as githubToolsErrors, Oa as createOctokit, _ as PRESET_TOOLS, c as DEFAULT_EVALUATION_MODEL, g as CORE_READ_TOOLS, h as GITHUB_TOOL_NAMES, s as AUTO_APPROVAL_TOOLS, t as GITHUB_WRITE_TOOLS, x as resolveGithubToken } from "./write-tools-DnGZw-RD.mjs";
|
|
2
|
+
import { d as selectTools, u as selectPresets } from "./evaluation-BtoHbxuQ.mjs";
|
|
3
|
+
import { $ as closeIssue, A as getGist, At as createBranch, B as searchRepositories, Bt as listBranches, C as listWorkflowRuns, Ct as listPullRequests, D as createGist, Dt as resolveReviewThread, E as triggerWorkflow, Et as requestReviewers, F as getBlame, Ft as forkRepository, G as listDiscussions, H as markNotificationRead, I as getCommit, It as getBranchRules, J as listCommentReactions, K as addCommentReaction, L as listCommits, Lt as getFileContent, M as listGists, Mt as createRepository, N as updateGist, Nt as deleteBranch, O as createGistComment, Ot as updatePullRequest, P as compareCommits, Pt as editFiles, Q as addLabels, R as searchCode, Rt as getRepository, S as listWorkflowJobs, St as listPullRequestReviews, T as rerunWorkflowRun, Tt as replyToReviewComment, U as addDiscussionComment, V as listNotifications, W as getDiscussion, X as addAssignees, Y as listIssueReactions, Z as addIssueComment, _ as getCombinedStatus, _t as disablePullRequestAutoMerge, a as getIssueContext, at as listIssueComments, b as getWorkflowJobLogs, bt as listPullRequestFiles, c as createRelease, ct as removeAssignees, d as getRelease, dt as updateIssueComment, et as createIssue, f as listReleases, ft as updateLabel, g as listSecretScanningAlerts, gt as deletePullRequestComment, h as listDependabotAlerts, ht as createPullRequestReview, i as getCiFailureContext, it as getIssue, j as listGistComments, jt as createOrUpdateFile, k as deleteGist, kt as updatePullRequestComment, l as deleteRelease, lt as removeLabel, m as listCodeScanningAlerts, mt as createPullRequest, n as CALL_GITHUB_TOOL, nt as deleteIssueComment, o as getPullRequestContext, ot as listIssues, p as updateRelease, pt as addPullRequestComment, q as addIssueReaction, r as createGithubAgent, rt as deleteLabel, s as getReleaseContext, st as listLabels, t as createGithubTools, tt as createLabel, u as getLatestRelease, ut as updateIssue, v as listCheckRuns, vt as enablePullRequestAutoMerge, w as listWorkflows, wt as mergePullRequest, x as getWorkflowRun, xt as listPullRequestReviewThreads, y as cancelWorkflowRun, yt as getPullRequest, z as searchIssues, zt as getRepositoryTree } from "./src-DyiAVHKl.mjs";
|
|
4
|
+
export { AUTO_APPROVAL_TOOLS, CALL_GITHUB_TOOL, CORE_READ_TOOLS, DEFAULT_EVALUATION_MODEL, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, PRESET_TOOLS, addAssignees, addCommentReaction, addDiscussionComment, addIssueComment, addIssueReaction, addLabels, addPullRequestComment, cancelWorkflowRun, closeIssue, compareCommits, createBranch, createGist, createGistComment, createGithubAgent, createGithubTools, createIssue, createLabel, createOctokit, createOrUpdateFile, createPullRequest, createPullRequestReview, createRelease, createRepository, deleteBranch, deleteGist, deleteIssueComment, deleteLabel, deletePullRequestComment, deleteRelease, disablePullRequestAutoMerge, editFiles, enablePullRequestAutoMerge, forkRepository, getBlame, getBranchRules, getCiFailureContext, getCombinedStatus, getCommit, getDiscussion, getFileContent, getGist, getIssue, getIssueContext, getLatestRelease, getPullRequest, getPullRequestContext, getRelease, getReleaseContext, getRepository, getRepositoryTree, getWorkflowJobLogs, getWorkflowRun, githubToolsErrors, listBranches, listCheckRuns, listCodeScanningAlerts, listCommentReactions, listCommits, listDependabotAlerts, listDiscussions, listGistComments, listGists, listIssueComments, listIssueReactions, listIssues, listLabels, listNotifications, listPullRequestFiles, listPullRequestReviewThreads, listPullRequestReviews, listPullRequests, listReleases, listSecretScanningAlerts, listWorkflowJobs, listWorkflowRuns, listWorkflows, markNotificationRead, mergePullRequest, removeAssignees, removeLabel, replyToReviewComment, requestReviewers, rerunWorkflowRun, resolveGithubToken, resolveReviewThread, searchCode, searchIssues, searchRepositories, selectPresets, selectTools, triggerWorkflow, updateGist, updateIssue, updateIssueComment, updateLabel, updatePullRequest, updatePullRequestComment, updateRelease };
|