@github-tools/sdk 1.7.0 → 1.8.1

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 (39) hide show
  1. package/README.md +78 -3
  2. package/dist/connect/eve.d.mts +18 -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-UPaHEGVi.mjs +512 -0
  11. package/dist/eve-UPaHEGVi.mjs.map +1 -0
  12. package/dist/eve.d.mts +47 -89
  13. package/dist/eve.d.mts.map +1 -1
  14. package/dist/eve.mjs +2 -521
  15. package/dist/{tool-types-CuirBEc8.d.mts → index-Cs1Kebmt.d.mts} +251 -32
  16. package/dist/index-Cs1Kebmt.d.mts.map +1 -0
  17. package/dist/index.d.mts +2 -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/types-B0mvQgJf.d.mts +49 -0
  24. package/dist/types-B0mvQgJf.d.mts.map +1 -0
  25. package/dist/types-DwHrGKWO.d.mts +27 -0
  26. package/dist/types-DwHrGKWO.d.mts.map +1 -0
  27. package/dist/workflow.d.mts +4 -5
  28. package/dist/workflow.d.mts.map +1 -1
  29. package/dist/workflow.mjs +3 -3
  30. package/dist/workflow.mjs.map +1 -1
  31. package/dist/{write-tools-vzlewWo5.mjs → write-tools-Dx9LfYlU.mjs} +26 -9
  32. package/dist/write-tools-Dx9LfYlU.mjs.map +1 -0
  33. package/package.json +18 -5
  34. package/dist/eve.mjs.map +0 -1
  35. package/dist/index-BRUYe5q0.d.mts +0 -220
  36. package/dist/index-BRUYe5q0.d.mts.map +0 -1
  37. package/dist/src-BgnkKMD7.mjs.map +0 -1
  38. package/dist/tool-types-CuirBEc8.d.mts.map +0 -1
  39. package/dist/write-tools-vzlewWo5.mjs.map +0 -1
@@ -1,5 +1,6 @@
1
- import { Tool } from "ai";
2
- import { Octokit as Octokit$1 } from "octokit";
1
+ import { Tool, ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
2
+ import { z } from "zod";
3
+ import { Octokit, Octokit as Octokit$1 } from "octokit";
3
4
 
4
5
  //#region src/core/tool-names.d.ts
5
6
  /**
@@ -141,6 +142,38 @@ declare const GITHUB_WRITE_TOOLS: {
141
142
  };
142
143
  type GithubWriteToolName = typeof GITHUB_WRITE_TOOLS[keyof typeof GITHUB_WRITE_TOOLS];
143
144
  //#endregion
145
+ //#region src/core/approval.d.ts
146
+ /**
147
+ * Whether write operations require user approval.
148
+ *
149
+ * - `true` — all write tools need approval (default)
150
+ * - `false` — no approval needed for any write tool
151
+ * - object — per-tool override via {@link GithubWriteToolName}; unspecified write tools default to `true`
152
+ *
153
+ * @example Global disable
154
+ * ```ts
155
+ * createGithubTools({ token, requireApproval: false })
156
+ * ```
157
+ *
158
+ * @example Granular per write tool
159
+ * ```ts
160
+ * createGithubTools({
161
+ * token,
162
+ * requireApproval: {
163
+ * mergePullRequest: true,
164
+ * createOrUpdateFile: true,
165
+ * addPullRequestComment: false,
166
+ * },
167
+ * })
168
+ * ```
169
+ */
170
+ type ApprovalConfig = boolean | Partial<Record<GithubWriteToolName, boolean>>;
171
+ //#endregion
172
+ //#region src/core/token.d.ts
173
+ type GithubTokenInput = string | (() => Promise<string>);
174
+ /** Resolves a {@link GithubTokenInput} to a token string. */
175
+ declare function resolveGithubToken(token?: GithubTokenInput): Promise<string>;
176
+ //#endregion
144
177
  //#region src/types.d.ts
145
178
  type GithubTool = Tool<any, any>;
146
179
  type ToolOptions = {
@@ -196,39 +229,12 @@ type CommitToolOptions = ToolOptions & {
196
229
  */
197
230
  type ToolOverrides = Partial<Pick<Tool, 'description' | 'needsApproval' | 'onInputAvailable' | 'onInputDelta' | 'onInputStart' | 'providerOptions' | 'strict' | 'title' | 'toModelOutput'>>;
198
231
  //#endregion
199
- //#region src/core/approval.d.ts
200
- /**
201
- * Whether write operations require user approval.
202
- *
203
- * - `true` — all write tools need approval (default)
204
- * - `false` — no approval needed for any write tool
205
- * - object — per-tool override via {@link GithubWriteToolName}; unspecified write tools default to `true`
206
- *
207
- * @example Global disable
208
- * ```ts
209
- * createGithubTools({ token, requireApproval: false })
210
- * ```
211
- *
212
- * @example Granular per write tool
213
- * ```ts
214
- * createGithubTools({
215
- * token,
216
- * requireApproval: {
217
- * mergePullRequest: true,
218
- * createOrUpdateFile: true,
219
- * addPullRequestComment: false,
220
- * },
221
- * })
222
- * ```
223
- */
224
- type ApprovalConfig = boolean | Partial<Record<GithubWriteToolName, boolean>>;
225
- //#endregion
226
232
  //#region src/core/tool-types.d.ts
227
233
  /** Full tool set returned when no `preset` is specified. */
228
234
  type AllGithubTools = Record<GithubToolName, GithubTool>;
229
235
  /** Base options shared by all {@link createGithubTools} overloads. */
230
236
  type GithubToolsBaseOptions = {
231
- /** GitHub personal access token. Falls back to `process.env.GITHUB_TOKEN` when omitted. */token?: string; /** Control whether write operations require user approval. @see {@link ApprovalConfig} */
237
+ /** GitHub token string or async provider. Falls back to `process.env.GITHUB_TOKEN` when omitted. */token?: GithubTokenInput; /** Control whether write operations require user approval. @see {@link ApprovalConfig} */
232
238
  requireApproval?: ApprovalConfig; /** Per-tool overrides for description, title, needsApproval, and related AI SDK tool fields. */
233
239
  overrides?: Partial<Record<GithubToolName, ToolOverrides>>; /** Default author for commit-creating tools. Falls back to the authenticated user when omitted. */
234
240
  author?: CommitIdentity; /** Default committer for commit-creating tools. Falls back to the authenticated user when omitted. */
@@ -240,5 +246,218 @@ type GithubToolsForPreset<P extends GithubToolPreset | readonly GithubToolPreset
240
246
  /** Pick a subset of GitHub tools by tool name. */
241
247
  type PickGithubTools<T extends GithubToolName> = Pick<AllGithubTools, T>;
242
248
  //#endregion
243
- export { PresetToolName as _, ApprovalConfig as a, GithubTool as c, ToolOverrides as d, GITHUB_WRITE_TOOLS as f, PRESET_TOOLS as g, GithubToolPreset as h, PickGithubTools as i, Octokit$1 as l, CombinedPresetToolNames as m, GithubToolsBaseOptions as n, CommitIdentity as o, GithubWriteToolName as p, GithubToolsForPreset as r, CommitToolOptions as s, AllGithubTools as t, ToolOptions as u, GITHUB_TOOL_NAMES as v, GithubToolName as y };
244
- //# sourceMappingURL=tool-types-CuirBEc8.d.mts.map
249
+ //#region src/client.d.ts
250
+ declare function createOctokit(token: string): Octokit;
251
+ //#endregion
252
+ //#region src/tools/repository.d.ts
253
+ /** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
254
+ declare const getRepository: (token: GithubTokenInput) => GithubTool;
255
+ /** List branches in a GitHub repository. */
256
+ declare const listBranches: (token: GithubTokenInput) => GithubTool;
257
+ /** Get the content of a file from a GitHub repository. */
258
+ declare const getFileContent: (token: GithubTokenInput) => GithubTool;
259
+ /** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */
260
+ declare const createBranch: (token: GithubTokenInput, {
261
+ needsApproval
262
+ }?: ToolOptions) => GithubTool;
263
+ /** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */
264
+ declare const forkRepository: (token: GithubTokenInput, {
265
+ needsApproval
266
+ }?: ToolOptions) => GithubTool;
267
+ /** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */
268
+ declare const createRepository: (token: GithubTokenInput, {
269
+ needsApproval
270
+ }?: ToolOptions) => GithubTool;
271
+ /** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */
272
+ declare const createOrUpdateFile: (token: GithubTokenInput, {
273
+ needsApproval,
274
+ author,
275
+ committer,
276
+ coAuthors
277
+ }?: CommitToolOptions) => GithubTool;
278
+ //#endregion
279
+ //#region src/tools/pull-requests.d.ts
280
+ type MergeToolOptions = ToolOptions & {
281
+ coAuthors?: CommitIdentity[];
282
+ };
283
+ /** List pull requests for a GitHub repository. */
284
+ declare const listPullRequests: (token: GithubTokenInput) => GithubTool;
285
+ /** Get detailed information about a specific pull request. */
286
+ declare const getPullRequest: (token: GithubTokenInput) => GithubTool;
287
+ /** Create a new pull request in a GitHub repository. Requires approval by default. */
288
+ declare const createPullRequest: (token: GithubTokenInput, {
289
+ needsApproval
290
+ }?: ToolOptions) => GithubTool;
291
+ /** Merge a pull request. Requires approval by default. */
292
+ declare const mergePullRequest: (token: GithubTokenInput, {
293
+ needsApproval,
294
+ coAuthors
295
+ }?: MergeToolOptions) => GithubTool;
296
+ /** Add a comment to a pull request. Requires approval by default. */
297
+ declare const addPullRequestComment: (token: GithubTokenInput, {
298
+ needsApproval
299
+ }?: ToolOptions) => GithubTool;
300
+ /** List files changed in a pull request, including diff status and patch content. */
301
+ declare const listPullRequestFiles: (token: GithubTokenInput) => GithubTool;
302
+ /** List reviews on a pull request (approvals, change requests, and comments). */
303
+ declare const listPullRequestReviews: (token: GithubTokenInput) => GithubTool;
304
+ /** Submit a pull request review with optional inline comments. Requires approval by default. */
305
+ declare const createPullRequestReview: (token: GithubTokenInput, {
306
+ needsApproval
307
+ }?: ToolOptions) => GithubTool;
308
+ //#endregion
309
+ //#region src/tools/issues.d.ts
310
+ /** List issues for a GitHub repository (excludes pull requests). */
311
+ declare const listIssues: (token: GithubTokenInput) => GithubTool;
312
+ /** Get detailed information about a specific issue. */
313
+ declare const getIssue: (token: GithubTokenInput) => GithubTool;
314
+ /** Create a new issue in a GitHub repository. Requires approval by default. */
315
+ declare const createIssue: (token: GithubTokenInput, {
316
+ needsApproval
317
+ }?: ToolOptions) => GithubTool;
318
+ /** Add a comment to a GitHub issue. Requires approval by default. */
319
+ declare const addIssueComment: (token: GithubTokenInput, {
320
+ needsApproval
321
+ }?: ToolOptions) => GithubTool;
322
+ /** Close an open GitHub issue. Requires approval by default. */
323
+ declare const closeIssue: (token: GithubTokenInput, {
324
+ needsApproval
325
+ }?: ToolOptions) => GithubTool;
326
+ /** List labels available in a GitHub repository. */
327
+ declare const listLabels: (token: GithubTokenInput) => GithubTool;
328
+ /** Add labels to an issue or pull request. Requires approval by default. */
329
+ declare const addLabels: (token: GithubTokenInput, {
330
+ needsApproval
331
+ }?: ToolOptions) => GithubTool;
332
+ /** Remove a label from an issue or pull request. Requires approval by default. */
333
+ declare const removeLabel: (token: GithubTokenInput, {
334
+ needsApproval
335
+ }?: ToolOptions) => GithubTool;
336
+ //#endregion
337
+ //#region src/tools/search.d.ts
338
+ /** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
339
+ declare const searchCode: (token: GithubTokenInput) => GithubTool;
340
+ /** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
341
+ declare const searchRepositories: (token: GithubTokenInput) => GithubTool;
342
+ //#endregion
343
+ //#region src/tools/commits.d.ts
344
+ /** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
345
+ declare const listCommits: (token: GithubTokenInput) => GithubTool;
346
+ /** Get detailed information about a specific commit, including files changed with additions and deletions. */
347
+ declare const getCommit: (token: GithubTokenInput) => GithubTool;
348
+ /** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). */
349
+ declare const getBlame: (token: GithubTokenInput) => GithubTool;
350
+ //#endregion
351
+ //#region src/tools/gists.d.ts
352
+ /** List gists for the authenticated user or a specific user. */
353
+ declare const listGists: (token: GithubTokenInput) => GithubTool;
354
+ /** Get a gist by ID, including file contents. */
355
+ declare const getGist: (token: GithubTokenInput) => GithubTool;
356
+ /** List comments on a gist. */
357
+ declare const listGistComments: (token: GithubTokenInput) => GithubTool;
358
+ /** Create a new gist with one or more files. Requires approval by default. */
359
+ declare const createGist: (token: GithubTokenInput, {
360
+ needsApproval
361
+ }?: ToolOptions) => GithubTool;
362
+ /** Update an existing gist. Requires approval by default. */
363
+ declare const updateGist: (token: GithubTokenInput, {
364
+ needsApproval
365
+ }?: ToolOptions) => GithubTool;
366
+ /** Delete a gist permanently. Requires approval by default. */
367
+ declare const deleteGist: (token: GithubTokenInput, {
368
+ needsApproval
369
+ }?: ToolOptions) => GithubTool;
370
+ /** Add a comment to a gist. Requires approval by default. */
371
+ declare const createGistComment: (token: GithubTokenInput, {
372
+ needsApproval
373
+ }?: ToolOptions) => GithubTool;
374
+ //#endregion
375
+ //#region src/tools/workflows.d.ts
376
+ /** List GitHub Actions workflows in a repository. */
377
+ declare const listWorkflows: (token: GithubTokenInput) => GithubTool;
378
+ /** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */
379
+ declare const listWorkflowRuns: (token: GithubTokenInput) => GithubTool;
380
+ /** Get details of a specific workflow run including status, timing, and trigger info. */
381
+ declare const getWorkflowRun: (token: GithubTokenInput) => GithubTool;
382
+ /** List jobs for a workflow run, including step-level status and timing. */
383
+ declare const listWorkflowJobs: (token: GithubTokenInput) => GithubTool;
384
+ /** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
385
+ declare const triggerWorkflow: (token: GithubTokenInput, {
386
+ needsApproval
387
+ }?: ToolOptions) => GithubTool;
388
+ /** Cancel an in-progress workflow run. Requires approval by default. */
389
+ declare const cancelWorkflowRun: (token: GithubTokenInput, {
390
+ needsApproval
391
+ }?: ToolOptions) => GithubTool;
392
+ /** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
393
+ declare const rerunWorkflowRun: (token: GithubTokenInput, {
394
+ needsApproval
395
+ }?: ToolOptions) => GithubTool;
396
+ //#endregion
397
+ //#region src/agents.d.ts
398
+ type AgentOptions = Omit<ToolLoopAgentSettings<ToolSet>, 'model' | 'tools' | 'instructions'>;
399
+ type CreateGithubAgentOptions = AgentOptions & GithubToolsBaseOptions & {
400
+ model: ToolLoopAgentSettings<ToolSet>['model'];
401
+ /**
402
+ * Restrict tools and system prompt to a predefined preset.
403
+ *
404
+ * Selects a subset of tools and, when a single preset is passed,
405
+ * sets a matching system prompt. Combine presets with an array to merge tool sets.
406
+ *
407
+ * @see {@link GithubToolPreset} for available presets and included tools.
408
+ */
409
+ preset?: GithubToolPreset | GithubToolPreset[];
410
+ /**
411
+ * Fully replace the default system prompt.
412
+ * When set, `preset` system prompts and `additionalInstructions` are ignored.
413
+ */
414
+ instructions?: string;
415
+ /**
416
+ * Append text to the preset-specific (or default) system prompt.
417
+ * Ignored when `instructions` is set.
418
+ */
419
+ additionalInstructions?: string;
420
+ };
421
+ declare function createGithubAgent(options: CreateGithubAgentOptions & {
422
+ preset?: undefined;
423
+ }): ToolLoopAgent<never, AllGithubTools>;
424
+ declare function createGithubAgent<P extends GithubToolPreset>(options: CreateGithubAgentOptions & {
425
+ preset: P;
426
+ }): ToolLoopAgent<never, Pick<AllGithubTools, PresetToolName<P>>>;
427
+ declare function createGithubAgent<P extends readonly GithubToolPreset[]>(options: CreateGithubAgentOptions & {
428
+ preset: P;
429
+ }): ToolLoopAgent<never, Pick<AllGithubTools, CombinedPresetToolNames<P>>>;
430
+ //#endregion
431
+ //#region src/index.d.ts
432
+ type GithubToolsOptions = GithubToolsBaseOptions & {
433
+ /**
434
+ * Restrict the returned tools to a predefined preset.
435
+ * Omit to get all tools.
436
+ *
437
+ * @see {@link GithubToolPreset} for available presets and included tools.
438
+ *
439
+ * @example
440
+ * ```ts
441
+ * // Only code-review tools
442
+ * createGithubTools({ token, preset: 'code-review' })
443
+ *
444
+ * // Combine presets
445
+ * createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
446
+ * ```
447
+ */
448
+ preset?: GithubToolPreset | GithubToolPreset[];
449
+ };
450
+ declare function createGithubTools(options?: GithubToolsBaseOptions & {
451
+ preset?: undefined;
452
+ }): AllGithubTools;
453
+ declare function createGithubTools<P extends GithubToolPreset>(options: GithubToolsBaseOptions & {
454
+ preset: P;
455
+ }): Pick<AllGithubTools, PresetToolName<P>>;
456
+ declare function createGithubTools<P extends readonly GithubToolPreset[]>(options: GithubToolsBaseOptions & {
457
+ preset: P;
458
+ }): Pick<AllGithubTools, CombinedPresetToolNames<P>>;
459
+ declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools | Pick<AllGithubTools, GithubToolName>;
460
+ type GithubTools = AllGithubTools & ToolSet;
461
+ //#endregion
462
+ export { CommitIdentity as $, 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, PickGithubTools as Q, listPullRequestReviews as R, listCommits as S, addIssueComment as T, createRepository as U, createBranch as V, forkRepository as W, GithubToolsBaseOptions as X, AllGithubTools as Y, GithubToolsForPreset as Z, listGistComments as _, createGithubAgent as a, GithubTokenInput as at, getBlame as b, listWorkflowJobs as c, GITHUB_WRITE_TOOLS as ct, rerunWorkflowRun as d, GithubToolPreset as dt, CommitToolOptions as et, triggerWorkflow as f, PRESET_TOOLS as ft, getGist as g, deleteGist as h, GithubToolName as ht, CreateGithubAgentOptions as i, ToolOverrides as it, listLabels as j, getIssue as k, listWorkflowRuns as l, GithubWriteToolName as lt, createGistComment as m, GITHUB_TOOL_NAMES as mt, GithubToolsOptions as n, Octokit$1 as nt, cancelWorkflowRun as o, resolveGithubToken as ot, createGist as p, PresetToolName as pt, listBranches as q, createGithubTools as r, ToolOptions as rt, getWorkflowRun as s, ApprovalConfig as st, GithubTools as t, GithubTool as tt, listWorkflows as u, CombinedPresetToolNames as ut, listGists as v, searchRepositories as w, getCommit as x, updateGist as y, listPullRequests as z };
463
+ //# sourceMappingURL=index-Cs1Kebmt.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-Cs1Kebmt.d.mts","names":[],"sources":["../src/core/tool-names.ts","../src/core/presets.ts","../src/core/write-tools.ts","../src/core/approval.ts","../src/core/token.ts","../src/types.ts","../src/core/tool-types.ts","../src/client.ts","../src/tools/repository.ts","../src/tools/pull-requests.ts","../src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_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 CommitIdentity, 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, Q as PickGithubTools, R as listPullRequestReviews, S as listCommits, T as addIssueComment, U as createRepository, V as createBranch, W as forkRepository, Y as AllGithubTools, Z as GithubToolsForPreset, _ as listGistComments, a as createGithubAgent, at as GithubTokenInput, b as getBlame, c as listWorkflowJobs, ct as GITHUB_WRITE_TOOLS, d as rerunWorkflowRun, dt as GithubToolPreset, et as CommitToolOptions, f as triggerWorkflow, ft as PRESET_TOOLS, g as getGist, h as deleteGist, ht as GithubToolName, i as CreateGithubAgentOptions, it as ToolOverrides, j as listLabels, k as getIssue, l as listWorkflowRuns, lt as GithubWriteToolName, m as createGistComment, mt as GITHUB_TOOL_NAMES, n as GithubToolsOptions, nt as Octokit, o as cancelWorkflowRun, ot as resolveGithubToken, p as createGist, pt as PresetToolName, q as listBranches, r as createGithubTools, rt as ToolOptions, s as getWorkflowRun, st as ApprovalConfig, t as GithubTools, tt as GithubTool, u as listWorkflows, ut as CombinedPresetToolNames, v as listGists, w as searchRepositories, x as getCommit, y as updateGist, z as listPullRequests } from "./index-Cs1Kebmt.mjs";
2
+ 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 };