@github-tools/sdk 1.8.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.
package/README.md CHANGED
@@ -250,6 +250,8 @@ export default connectGithubTools('github/my-connector', {
250
250
  })
251
251
  ```
252
252
 
253
+ `connectGithubTools` mints tokens lazily at tool execution — do not `await getToken(...)` at module top level in `agent/tools/` (that runs at import/build time).
254
+
253
255
  Token provider only (custom factories):
254
256
 
255
257
  ```ts
@@ -1,4 +1,5 @@
1
- import { t as ConnectGithubEveToolsOptions } from "../types-DOeq0Iia.mjs";
1
+ import { ht as GithubToolName } from "../index-Cs1Kebmt.mjs";
2
+ import { t as ConnectGithubEveToolsOptions } from "../types-DwHrGKWO.mjs";
2
3
  import * as _$eve_tools0 from "eve/tools";
3
4
 
4
5
  //#region src/connect/eve.d.ts
@@ -11,7 +12,7 @@ import * as _$eve_tools0 from "eve/tools";
11
12
  * `build.externalDependencies: ['@vercel/connect']` in `agent.ts`. Remove that
12
13
  * requirement when upstream eve externalizes this path.
13
14
  */
14
- declare function connectGithubTools(connector: string, options?: ConnectGithubEveToolsOptions): _$eve_tools0.DynamicSentinel;
15
+ declare function connectGithubTools(connector: string, options?: ConnectGithubEveToolsOptions): _$eve_tools0.DynamicSentinel<Partial<Record<GithubToolName, _$eve_tools0.ToolDefinition<unknown, unknown>>>>;
15
16
  //#endregion
16
17
  export { connectGithubTools };
17
18
  //# sourceMappingURL=eve.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;AAaA;;;;;;iBAAgB,kBAAA,CACd,SAAA,UACA,OAAA,GAAS,4BAAA,GAAiC,YAAA,CAAA,eAAA"}
1
+ {"version":3,"file":"eve.d.mts","names":[],"sources":["../../src/connect/eve.ts"],"mappings":";;;;;;;;;AAaA;;;;;iBAAgB,kBAAA,CACd,SAAA,UACA,OAAA,GAAS,4BAAA,GAAiC,YAAA,CAAA,eAAA,CAAA,OAAA,CAAA,MAAA,CAAA,cAAA,EAAA,YAAA,CAAA,cAAA"}
@@ -1,4 +1,4 @@
1
- import { l as createGithubTools } from "../eve-B-LChKzS.mjs";
1
+ import { l as createGithubTools } from "../eve-UPaHEGVi.mjs";
2
2
  import { t as connectGithubToken } from "../token-CW8lQBND.mjs";
3
3
  //#region src/connect/eve.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { _ as GithubToolPreset, d as GithubTokenInput, t as AllGithubTools, x as GithubToolName } from "./tool-types-C0kszIwd.mjs";
2
- import { i as GithubConnectParams, n as ConnectGithubTokenOptions, r as ConnectGithubToolsOptions, t as ConnectGithubEveToolsOptions } from "./types-DOeq0Iia.mjs";
1
+ import { Y as AllGithubTools, at as GithubTokenInput, dt as GithubToolPreset, ht as GithubToolName } from "./index-Cs1Kebmt.mjs";
2
+ import { i as GithubConnectParams, n as ConnectGithubTokenOptions, r as ConnectGithubToolsOptions, t as ConnectGithubEveToolsOptions } from "./types-DwHrGKWO.mjs";
3
3
  //#region src/connect/scopes.d.ts
4
4
  /**
5
5
  * Vercel Connect scope strings mapped to each {@link GithubToolPreset}.
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.mts","names":[],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":";;;;;;;;AAgBA;;;;;;;;;cAAa,qBAAA;EAAA;;;;;;;;;;iBAkDG,4BAAA,CACd,MAAA,GAAS,gBAAA,GAAmB,gBAAA;;;;;;AAnD9B;iBCPgB,kBAAA,CACd,SAAA,UACA,OAAA,GAAS,yBAAA,GACR,gBAAA;;;;;;;iBCJa,kBAAA,CACd,SAAA,UACA,OAAA,GAAS,yBAAA,GAA8B,cAAA,GAAA,IAAA,CAAA,cAAA,EAAA,cAAA"}
1
+ {"version":3,"file":"connect.d.mts","names":[],"sources":["../src/connect/scopes.ts","../src/connect/token.ts","../src/connect/tools.ts"],"mappings":";;;;;;;AAgBA;;;;;;;;;;cAAa,qBAAA;EAAA;;;;;;;;;;iBAkDG,4BAAA,CACd,MAAA,GAAS,gBAAA,GAAmB,gBAAA;;;;;AAnD9B;;iBCPgB,kBAAA,CACd,SAAA,UACA,OAAA,GAAS,yBAAA,GACR,gBAAA;;;;;;;iBCJa,kBAAA,CACd,SAAA,UACA,OAAA,GAAS,yBAAA,GAA8B,cAAA,GAAA,IAAA,CAAA,cAAA,EAAA,cAAA"}
@@ -1,27 +1,13 @@
1
1
  import { $ as getCommitInputSchema, $t as listPullRequestsInputSchema, A as createGistCore, At as removeLabelCore, B as listGistCommentsDescription, Bt as createPullRequestReviewDescription, C as rerunWorkflowRunInputSchema, Cn as getRepositoryCore, Ct as getIssueInputSchema, D as createGistCommentCore, Dn as listBranchesDescription, Dt as listLabelsCore, E as triggerWorkflowInputSchema, En as listBranchesCore, Et as listIssuesInputSchema, F as deleteGistInputSchema, Ft as addPullRequestCommentInputSchema, G as updateGistCore, Gt as listPullRequestFilesCore, H as listGistsCore, Ht as getPullRequestCore, I as getGistCore, It as createPullRequestCore, J as getBlameCore, Jt as listPullRequestReviewsCore, K as updateGistDescription, Kt as listPullRequestFilesDescription, L as getGistDescription, Lt as createPullRequestDescription, M as createGistInputSchema, Mt as removeLabelInputSchema, N as deleteGistCore, Nt as addPullRequestCommentCore, O as createGistCommentDescription, On as listBranchesInputSchema, Ot as listLabelsDescription, P as deleteGistDescription, Pt as addPullRequestCommentDescription, Q as getCommitDescription, Qt as listPullRequestsDescription, R as getGistInputSchema, Rt as createPullRequestInputSchema, S as rerunWorkflowRunDescription, Sn as getFileContentInputSchema, St as getIssueDescription, T as triggerWorkflowDescription, Tn as getRepositoryInputSchema, Tt as listIssuesDescription, U as listGistsDescription, Ut as getPullRequestDescription, V as listGistCommentsInputSchema, Vt as createPullRequestReviewInputSchema, W as listGistsInputSchema, Wt as getPullRequestInputSchema, X as getBlameInputSchema, Xt as listPullRequestReviewsInputSchema, Y as getBlameDescription, Yt as listPullRequestReviewsDescription, Z as getCommitCore, Zt as listPullRequestsCore, _ as listWorkflowRunsInputSchema, _n as forkRepositoryCore, _t as closeIssueInputSchema, a as resolvePresetTools, an as getCommitToModelOutput, at as searchCodeInputSchema, b as listWorkflowsInputSchema, bn as getFileContentCore, bt as createIssueInputSchema, c as cancelWorkflowRunInputSchema, cn as createBranchCore, ct as searchRepositoriesInputSchema, d as getWorkflowRunInputSchema, dn as createOrUpdateFileCore, dt as addIssueCommentInputSchema, en as mergePullRequestCore, et as listCommitsCore, f as listWorkflowJobsCore, fn as createOrUpdateFileDescription, ft as addLabelsCore, g as listWorkflowRunsDescription, gn as createRepositoryInputSchema, gt as closeIssueDescription, h as listWorkflowRunsCore, hn as createRepositoryDescription, ht as closeIssueCore, in as resolveGithubToken, it as searchCodeDescription, j as createGistDescription, jt as removeLabelDescription, k as createGistCommentInputSchema, kt as listLabelsInputSchema, l as getWorkflowRunCore, ln as createBranchDescription, lt as addIssueCommentCore, m as listWorkflowJobsInputSchema, mn as createRepositoryCore, mt as addLabelsInputSchema, n as ALL_GITHUB_TOOL_NAMES, nn as mergePullRequestInputSchema, nt as listCommitsInputSchema, o as cancelWorkflowRunCore, on as getFileContentToModelOutput, ot as searchRepositoriesCore, p as listWorkflowJobsDescription, pn as createOrUpdateFileInputSchema, pt as addLabelsDescription, q as updateGistInputSchema, qt as listPullRequestFilesInputSchema, rn as createGithubTokenResolver, rt as searchCodeCore, s as cancelWorkflowRunDescription, sn as listPullRequestFilesToModelOutput, st as searchRepositoriesDescription, tn as mergePullRequestDescription, tt as listCommitsDescription, u as getWorkflowRunDescription, un as createBranchInputSchema, ut as addIssueCommentDescription, v as listWorkflowsCore, vn as forkRepositoryDescription, vt as createIssueCore, w as triggerWorkflowCore, wn as getRepositoryDescription, wt as listIssuesCore, x as rerunWorkflowRunCore, xn as getFileContentDescription, xt as getIssueCore, y as listWorkflowsDescription, yn as forkRepositoryInputSchema, yt as createIssueDescription, z as listGistCommentsCore, zt as createPullRequestReviewCore } from "./write-tools-Dx9LfYlU.mjs";
2
- import { createRequire } from "node:module";
2
+ import * as eveTools from "eve/tools";
3
+ import * as eveApproval from "eve/tools/approval";
3
4
  //#region src/eve/load-eve.ts
4
- const require = createRequire(import.meta.url);
5
5
  const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve";
6
- let eveToolsModule;
7
- let eveApprovalModule;
8
6
  function getEveTools() {
9
- if (eveToolsModule) return eveToolsModule;
10
- try {
11
- eveToolsModule = require("eve/tools");
12
- return eveToolsModule;
13
- } catch {
14
- throw new Error(MISSING_EVE_MESSAGE);
15
- }
7
+ return eveTools;
16
8
  }
17
9
  function getEveApprovalHelpers() {
18
- if (eveApprovalModule) return eveApprovalModule;
19
- try {
20
- eveApprovalModule = require("eve/tools/approval");
21
- return eveApprovalModule;
22
- } catch {
23
- throw new Error(MISSING_EVE_MESSAGE);
24
- }
10
+ return eveApproval;
25
11
  }
26
12
  //#endregion
27
13
  //#region src/eve/approval.ts
@@ -523,4 +509,4 @@ const rerunWorkflowRun = factory("rerunWorkflowRun");
523
509
  //#endregion
524
510
  export { listLabels as A, searchCode as B, getRepository as C, listGistComments as D, listCommits as E, listWorkflowRuns as F, buildEveToolMap as G, triggerWorkflow as H, listWorkflows as I, MISSING_EVE_MESSAGE as J, createEveGithubToolsDynamic as K, mergePullRequest as L, listPullRequestReviews as M, listPullRequests as N, listGists as O, listWorkflowJobs as P, removeLabel as R, getPullRequest as S, listBranches as T, updateGist as U, searchRepositories as V, buildEveToolDefinition as W, getBlame as _, closeIssue as a, getGist as b, createGistComment as c, createOrUpdateFile as d, createPullRequest as f, forkRepository as g, deleteGist as h, cancelWorkflowRun as i, listPullRequestFiles as j, listIssues as k, createGithubTools as l, createRepository as m, addLabels as n, createBranch as o, createPullRequestReview as p, listResolvedEveToolNames as q, addPullRequestComment as r, createGist as s, addIssueComment as t, createIssue as u, getCommit as v, getWorkflowRun as w, getIssue as x, getFileContent as y, rerunWorkflowRun as z };
525
511
 
526
- //# sourceMappingURL=eve-B-LChKzS.mjs.map
512
+ //# sourceMappingURL=eve-UPaHEGVi.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eve-UPaHEGVi.mjs","names":["repository.getRepositoryDescription","repository.getRepositoryInputSchema","repository.getRepositoryCore","repository.listBranchesDescription","repository.listBranchesInputSchema","repository.listBranchesCore","repository.getFileContentDescription","repository.getFileContentInputSchema","repository.getFileContentCore","repository.createBranchDescription","repository.createBranchInputSchema","repository.createBranchCore","repository.forkRepositoryDescription","repository.forkRepositoryInputSchema","repository.forkRepositoryCore","repository.createRepositoryDescription","repository.createRepositoryInputSchema","repository.createRepositoryCore","repository.createOrUpdateFileDescription","repository.createOrUpdateFileInputSchema","repository.createOrUpdateFileCore","pullRequests.listPullRequestsDescription","pullRequests.listPullRequestsInputSchema","pullRequests.listPullRequestsCore","pullRequests.getPullRequestDescription","pullRequests.getPullRequestInputSchema","pullRequests.getPullRequestCore","pullRequests.createPullRequestDescription","pullRequests.createPullRequestInputSchema","pullRequests.createPullRequestCore","pullRequests.mergePullRequestDescription","pullRequests.mergePullRequestInputSchema","pullRequests.mergePullRequestCore","pullRequests.addPullRequestCommentDescription","pullRequests.addPullRequestCommentInputSchema","pullRequests.addPullRequestCommentCore","pullRequests.listPullRequestFilesDescription","pullRequests.listPullRequestFilesInputSchema","pullRequests.listPullRequestFilesCore","pullRequests.listPullRequestReviewsDescription","pullRequests.listPullRequestReviewsInputSchema","pullRequests.listPullRequestReviewsCore","pullRequests.createPullRequestReviewDescription","pullRequests.createPullRequestReviewInputSchema","pullRequests.createPullRequestReviewCore","issues.listIssuesDescription","issues.listIssuesInputSchema","issues.listIssuesCore","issues.getIssueDescription","issues.getIssueInputSchema","issues.getIssueCore","issues.createIssueDescription","issues.createIssueInputSchema","issues.createIssueCore","issues.addIssueCommentDescription","issues.addIssueCommentInputSchema","issues.addIssueCommentCore","issues.closeIssueDescription","issues.closeIssueInputSchema","issues.closeIssueCore","issues.listLabelsDescription","issues.listLabelsInputSchema","issues.listLabelsCore","issues.addLabelsDescription","issues.addLabelsInputSchema","issues.addLabelsCore","issues.removeLabelDescription","issues.removeLabelInputSchema","issues.removeLabelCore","search.searchCodeDescription","search.searchCodeInputSchema","search.searchCodeCore","search.searchRepositoriesDescription","search.searchRepositoriesInputSchema","search.searchRepositoriesCore","commits.listCommitsDescription","commits.listCommitsInputSchema","commits.listCommitsCore","commits.getCommitDescription","commits.getCommitInputSchema","commits.getCommitCore","commits.getBlameDescription","commits.getBlameInputSchema","commits.getBlameCore","gists.listGistsDescription","gists.listGistsInputSchema","gists.listGistsCore","gists.getGistDescription","gists.getGistInputSchema","gists.getGistCore","gists.listGistCommentsDescription","gists.listGistCommentsInputSchema","gists.listGistCommentsCore","gists.createGistDescription","gists.createGistInputSchema","gists.createGistCore","gists.updateGistDescription","gists.updateGistInputSchema","gists.updateGistCore","gists.deleteGistDescription","gists.deleteGistInputSchema","gists.deleteGistCore","gists.createGistCommentDescription","gists.createGistCommentInputSchema","gists.createGistCommentCore","workflows.listWorkflowsDescription","workflows.listWorkflowsInputSchema","workflows.listWorkflowsCore","workflows.listWorkflowRunsDescription","workflows.listWorkflowRunsInputSchema","workflows.listWorkflowRunsCore","workflows.getWorkflowRunDescription","workflows.getWorkflowRunInputSchema","workflows.getWorkflowRunCore","workflows.listWorkflowJobsDescription","workflows.listWorkflowJobsInputSchema","workflows.listWorkflowJobsCore","workflows.triggerWorkflowDescription","workflows.triggerWorkflowInputSchema","workflows.triggerWorkflowCore","workflows.cancelWorkflowRunDescription","workflows.cancelWorkflowRunInputSchema","workflows.cancelWorkflowRunCore","workflows.rerunWorkflowRunDescription","workflows.rerunWorkflowRunInputSchema","workflows.rerunWorkflowRunCore"],"sources":["../src/eve/load-eve.ts","../src/eve/approval.ts","../src/eve/registry.ts","../src/eve/steps.ts","../src/eve/build.ts","../src/eve.ts"],"sourcesContent":["import * as eveTools from 'eve/tools'\nimport * as eveApproval from 'eve/tools/approval'\n\n/**\n * Static ESM imports so bundlers (eve/Nitro/Vercel) can resolve `eve` when it is\n * compiled into the output rather than left as `node_modules/eve` at runtime.\n * Runtime `createRequire(\"eve/tools\")` fails in those targets.\n */\nexport type EveToolsModule = typeof import('eve/tools')\nexport type EveApprovalModule = typeof import('eve/tools/approval')\n\nexport const MISSING_EVE_MESSAGE =\n 'The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve'\n\nexport function getEveTools(): EveToolsModule {\n return eveTools\n}\n\nexport function getEveApprovalHelpers(): EveApprovalModule {\n return eveApproval\n}\n","import type { Approval } from 'eve/tools'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport { getEveApprovalHelpers } from './load-eve'\nimport type { EveApprovalConfig, EveApprovalValue } from './types'\n\nexport function mapEveApprovalValue(value: EveApprovalValue): Approval {\n if (typeof value === 'function') return value\n\n const { always, never, once } = getEveApprovalHelpers()\n\n if (value === true || value === 'always') return always()\n if (value === false || value === 'never') return never()\n if (value === 'once') return once()\n\n return always()\n}\n\nexport function resolveEveApproval(\n toolName: GithubWriteToolName,\n config: EveApprovalConfig | undefined,\n): Approval | undefined {\n if (config === undefined) return getEveApprovalHelpers().always()\n if (config === true) return getEveApprovalHelpers().always()\n if (config === false) return getEveApprovalHelpers().never()\n\n const value = config[toolName]\n if (value === undefined) return getEveApprovalHelpers().always()\n\n return mapEveApprovalValue(value)\n}\n","import type { ToolModelOutput } from 'eve/tools'\nimport type { z } from 'zod'\nimport type { CommitIdentity } from '../types'\nimport * as commits from '../core/commits'\nimport * as gists from '../core/gists'\nimport * as issues from '../core/issues'\nimport {\n getCommitToModelOutput,\n getFileContentToModelOutput,\n listPullRequestFilesToModelOutput,\n} from '../core/model-output'\nimport * as pullRequests from '../core/pull-requests'\nimport * as repository from '../core/repository'\nimport * as search from '../core/search'\nimport * as workflows from '../core/workflows'\nimport { resolveGithubToken, type GithubTokenInput } from '../core/token'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport type { GithubToolName } from '../core/tool-names'\nexport type { GithubToolName } from '../core/tool-names'\nexport { ALL_GITHUB_TOOL_NAMES } from '../core/tool-names'\n\nexport type ToolBuildContext = {\n token: GithubTokenInput\n author?: CommitIdentity\n committer?: CommitIdentity\n coAuthors?: CommitIdentity[]\n}\n\ntype ToolRegistryEntry = {\n name: GithubToolName\n writeTool?: GithubWriteToolName\n description: string\n inputSchema: z.ZodType\n execute: (args: Record<string, unknown>) => Promise<unknown>\n toModelOutput?: (output: unknown) => ToolModelOutput\n}\n\nfunction withToken<T extends Record<string, unknown>>(\n core: (args: T & { token: string }) => Promise<unknown>,\n ctx: ToolBuildContext,\n extra?: Record<string, unknown>,\n) {\n return async (input: Record<string, unknown>) => core({ token: await resolveGithubToken(ctx.token), ...extra, ...input } as T & { token: string })\n}\n\nfunction modelOutputAdapter(\n fn: (options: { toolCallId: string, input: unknown, output: unknown }) => { type: 'json' | 'text', value: unknown },\n) {\n return (output: unknown) => fn({ toolCallId: '', input: {}, output }) as ToolModelOutput\n}\n\nexport function createToolRegistry(ctx: ToolBuildContext): ToolRegistryEntry[] {\n return [\n {\n name: 'getRepository',\n description: repository.getRepositoryDescription,\n inputSchema: repository.getRepositoryInputSchema,\n execute: withToken(repository.getRepositoryCore, ctx),\n },\n {\n name: 'listBranches',\n description: repository.listBranchesDescription,\n inputSchema: repository.listBranchesInputSchema,\n execute: withToken(repository.listBranchesCore, ctx),\n },\n {\n name: 'getFileContent',\n description: repository.getFileContentDescription,\n inputSchema: repository.getFileContentInputSchema,\n execute: withToken(repository.getFileContentCore, ctx),\n toModelOutput: modelOutputAdapter(getFileContentToModelOutput),\n },\n {\n name: 'createBranch',\n writeTool: 'createBranch',\n description: repository.createBranchDescription,\n inputSchema: repository.createBranchInputSchema,\n execute: withToken(repository.createBranchCore, ctx),\n },\n {\n name: 'forkRepository',\n writeTool: 'forkRepository',\n description: repository.forkRepositoryDescription,\n inputSchema: repository.forkRepositoryInputSchema,\n execute: withToken(repository.forkRepositoryCore, ctx),\n },\n {\n name: 'createRepository',\n writeTool: 'createRepository',\n description: repository.createRepositoryDescription,\n inputSchema: repository.createRepositoryInputSchema,\n execute: withToken(repository.createRepositoryCore, ctx),\n },\n {\n name: 'createOrUpdateFile',\n writeTool: 'createOrUpdateFile',\n description: repository.createOrUpdateFileDescription,\n inputSchema: repository.createOrUpdateFileInputSchema,\n execute: withToken(repository.createOrUpdateFileCore, ctx, {\n author: ctx.author,\n committer: ctx.committer,\n coAuthors: ctx.coAuthors,\n }),\n },\n {\n name: 'listPullRequests',\n description: pullRequests.listPullRequestsDescription,\n inputSchema: pullRequests.listPullRequestsInputSchema,\n execute: withToken(pullRequests.listPullRequestsCore, ctx),\n },\n {\n name: 'getPullRequest',\n description: pullRequests.getPullRequestDescription,\n inputSchema: pullRequests.getPullRequestInputSchema,\n execute: withToken(pullRequests.getPullRequestCore, ctx),\n },\n {\n name: 'createPullRequest',\n writeTool: 'createPullRequest',\n description: pullRequests.createPullRequestDescription,\n inputSchema: pullRequests.createPullRequestInputSchema,\n execute: withToken(pullRequests.createPullRequestCore, ctx),\n },\n {\n name: 'mergePullRequest',\n writeTool: 'mergePullRequest',\n description: pullRequests.mergePullRequestDescription,\n inputSchema: pullRequests.mergePullRequestInputSchema,\n execute: withToken(pullRequests.mergePullRequestCore, ctx, { coAuthors: ctx.coAuthors }),\n },\n {\n name: 'addPullRequestComment',\n writeTool: 'addPullRequestComment',\n description: pullRequests.addPullRequestCommentDescription,\n inputSchema: pullRequests.addPullRequestCommentInputSchema,\n execute: withToken(pullRequests.addPullRequestCommentCore, ctx),\n },\n {\n name: 'listPullRequestFiles',\n description: pullRequests.listPullRequestFilesDescription,\n inputSchema: pullRequests.listPullRequestFilesInputSchema,\n execute: withToken(pullRequests.listPullRequestFilesCore, ctx),\n toModelOutput: modelOutputAdapter(listPullRequestFilesToModelOutput),\n },\n {\n name: 'listPullRequestReviews',\n description: pullRequests.listPullRequestReviewsDescription,\n inputSchema: pullRequests.listPullRequestReviewsInputSchema,\n execute: withToken(pullRequests.listPullRequestReviewsCore, ctx),\n },\n {\n name: 'createPullRequestReview',\n writeTool: 'createPullRequestReview',\n description: pullRequests.createPullRequestReviewDescription,\n inputSchema: pullRequests.createPullRequestReviewInputSchema,\n execute: withToken(pullRequests.createPullRequestReviewCore, ctx),\n },\n {\n name: 'listIssues',\n description: issues.listIssuesDescription,\n inputSchema: issues.listIssuesInputSchema,\n execute: withToken(issues.listIssuesCore, ctx),\n },\n {\n name: 'getIssue',\n description: issues.getIssueDescription,\n inputSchema: issues.getIssueInputSchema,\n execute: withToken(issues.getIssueCore, ctx),\n },\n {\n name: 'createIssue',\n writeTool: 'createIssue',\n description: issues.createIssueDescription,\n inputSchema: issues.createIssueInputSchema,\n execute: withToken(issues.createIssueCore, ctx),\n },\n {\n name: 'addIssueComment',\n writeTool: 'addIssueComment',\n description: issues.addIssueCommentDescription,\n inputSchema: issues.addIssueCommentInputSchema,\n execute: withToken(issues.addIssueCommentCore, ctx),\n },\n {\n name: 'closeIssue',\n writeTool: 'closeIssue',\n description: issues.closeIssueDescription,\n inputSchema: issues.closeIssueInputSchema,\n execute: withToken(issues.closeIssueCore, ctx),\n },\n {\n name: 'listLabels',\n description: issues.listLabelsDescription,\n inputSchema: issues.listLabelsInputSchema,\n execute: withToken(issues.listLabelsCore, ctx),\n },\n {\n name: 'addLabels',\n writeTool: 'addLabels',\n description: issues.addLabelsDescription,\n inputSchema: issues.addLabelsInputSchema,\n execute: withToken(issues.addLabelsCore, ctx),\n },\n {\n name: 'removeLabel',\n writeTool: 'removeLabel',\n description: issues.removeLabelDescription,\n inputSchema: issues.removeLabelInputSchema,\n execute: withToken(issues.removeLabelCore, ctx),\n },\n {\n name: 'searchCode',\n description: search.searchCodeDescription,\n inputSchema: search.searchCodeInputSchema,\n execute: withToken(search.searchCodeCore, ctx),\n },\n {\n name: 'searchRepositories',\n description: search.searchRepositoriesDescription,\n inputSchema: search.searchRepositoriesInputSchema,\n execute: withToken(search.searchRepositoriesCore, ctx),\n },\n {\n name: 'listCommits',\n description: commits.listCommitsDescription,\n inputSchema: commits.listCommitsInputSchema,\n execute: withToken(commits.listCommitsCore, ctx),\n },\n {\n name: 'getCommit',\n description: commits.getCommitDescription,\n inputSchema: commits.getCommitInputSchema,\n execute: withToken(commits.getCommitCore, ctx),\n toModelOutput: modelOutputAdapter(getCommitToModelOutput),\n },\n {\n name: 'getBlame',\n description: commits.getBlameDescription,\n inputSchema: commits.getBlameInputSchema,\n execute: withToken(commits.getBlameCore, ctx),\n },\n {\n name: 'listGists',\n description: gists.listGistsDescription,\n inputSchema: gists.listGistsInputSchema,\n execute: withToken(gists.listGistsCore, ctx),\n },\n {\n name: 'getGist',\n description: gists.getGistDescription,\n inputSchema: gists.getGistInputSchema,\n execute: withToken(gists.getGistCore, ctx),\n },\n {\n name: 'listGistComments',\n description: gists.listGistCommentsDescription,\n inputSchema: gists.listGistCommentsInputSchema,\n execute: withToken(gists.listGistCommentsCore, ctx),\n },\n {\n name: 'createGist',\n writeTool: 'createGist',\n description: gists.createGistDescription,\n inputSchema: gists.createGistInputSchema,\n execute: withToken(gists.createGistCore, ctx),\n },\n {\n name: 'updateGist',\n writeTool: 'updateGist',\n description: gists.updateGistDescription,\n inputSchema: gists.updateGistInputSchema,\n execute: withToken(gists.updateGistCore, ctx),\n },\n {\n name: 'deleteGist',\n writeTool: 'deleteGist',\n description: gists.deleteGistDescription,\n inputSchema: gists.deleteGistInputSchema,\n execute: withToken(gists.deleteGistCore, ctx),\n },\n {\n name: 'createGistComment',\n writeTool: 'createGistComment',\n description: gists.createGistCommentDescription,\n inputSchema: gists.createGistCommentInputSchema,\n execute: withToken(gists.createGistCommentCore, ctx),\n },\n {\n name: 'listWorkflows',\n description: workflows.listWorkflowsDescription,\n inputSchema: workflows.listWorkflowsInputSchema,\n execute: withToken(workflows.listWorkflowsCore, ctx),\n },\n {\n name: 'listWorkflowRuns',\n description: workflows.listWorkflowRunsDescription,\n inputSchema: workflows.listWorkflowRunsInputSchema,\n execute: withToken(workflows.listWorkflowRunsCore, ctx),\n },\n {\n name: 'getWorkflowRun',\n description: workflows.getWorkflowRunDescription,\n inputSchema: workflows.getWorkflowRunInputSchema,\n execute: withToken(workflows.getWorkflowRunCore, ctx),\n },\n {\n name: 'listWorkflowJobs',\n description: workflows.listWorkflowJobsDescription,\n inputSchema: workflows.listWorkflowJobsInputSchema,\n execute: withToken(workflows.listWorkflowJobsCore, ctx),\n },\n {\n name: 'triggerWorkflow',\n writeTool: 'triggerWorkflow',\n description: workflows.triggerWorkflowDescription,\n inputSchema: workflows.triggerWorkflowInputSchema,\n execute: withToken(workflows.triggerWorkflowCore, ctx),\n },\n {\n name: 'cancelWorkflowRun',\n writeTool: 'cancelWorkflowRun',\n description: workflows.cancelWorkflowRunDescription,\n inputSchema: workflows.cancelWorkflowRunInputSchema,\n execute: withToken(workflows.cancelWorkflowRunCore, ctx),\n },\n {\n name: 'rerunWorkflowRun',\n writeTool: 'rerunWorkflowRun',\n description: workflows.rerunWorkflowRunDescription,\n inputSchema: workflows.rerunWorkflowRunInputSchema,\n execute: withToken(workflows.rerunWorkflowRunCore, ctx),\n },\n ]\n}\n","import { resolveGithubToken } from '../core/token'\nimport { createToolRegistry, type GithubToolName, type ToolBuildContext } from './registry'\n\nasync function executeGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n 'use step'\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n return entry.execute(input)\n}\n\nexport async function runGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n // Resolve the token before entering the step so only a serializable string crosses the boundary.\n const token = await resolveGithubToken(ctx.token)\n return executeGithubToolStep(name, input, { ...ctx, token })\n}\n","import type { ToolDefinition } from 'eve/tools'\nimport { resolvePresetTools, type CombinedPresetToolNames, type GithubToolPreset, type PresetToolName } from '../core/presets'\nimport { createGithubTokenResolver } from '../core/token'\nimport { mapEveApprovalValue, resolveEveApproval } from './approval'\nimport { getEveTools } from './load-eve'\nimport { ALL_GITHUB_TOOL_NAMES, createToolRegistry, type GithubToolName, type ToolBuildContext } from './registry'\nimport { runGithubToolStep } from './steps'\nimport type { EveGithubToolsOptions, EveToolFactoryOptions, EveToolOverrides } from './types'\n\ntype BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & { preset?: EveGithubToolsOptions['preset'] })\ntype EveToolMap = Partial<Record<GithubToolName, ToolDefinition>>\n\nfunction applyOverrides<T extends ToolDefinition>(\n tool: T,\n name: GithubToolName,\n overrides?: EveToolOverrides,\n): T {\n const override = overrides?.[name]\n if (!override) return tool\n return {\n ...tool,\n ...override.description !== undefined && { description: override.description },\n ...override.approval !== undefined && { approval: mapEveApprovalValue(override.approval) },\n ...override.toModelOutput !== undefined && { toModelOutput: override.toModelOutput },\n ...override.outputSchema !== undefined && { outputSchema: override.outputSchema },\n }\n}\n\nexport function buildEveToolDefinition(\n name: GithubToolName,\n options: BuildOptions = {},\n): ToolDefinition {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n\n const tool = defineTool({\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(entry.writeTool && {\n approval: resolveEveApproval(entry.writeTool, options.requireApproval),\n }),\n ...(entry.toModelOutput && { toModelOutput: entry.toModelOutput }),\n execute: async (input) => runGithubToolStep(name, input as Record<string, unknown>, ctx),\n })\n\n return applyOverrides(tool, name, options.overrides)\n}\n\nexport function buildEveToolMap(options: EveGithubToolsOptions = {}): EveToolMap {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const allowed = options.preset ? resolvePresetTools(options.preset) : null\n const registry = createToolRegistry(ctx)\n const tools = {} as EveToolMap\n\n for (const entry of registry) {\n if (allowed && !allowed.has(entry.name)) continue\n\n const tool = defineTool({\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(entry.writeTool && {\n approval: resolveEveApproval(entry.writeTool, options.requireApproval),\n }),\n ...(entry.toModelOutput && { toModelOutput: entry.toModelOutput }),\n execute: async (input) => runGithubToolStep(entry.name, input as Record<string, unknown>, ctx),\n })\n\n tools[entry.name] = applyOverrides(tool, entry.name, options.overrides)\n }\n\n return tools\n}\n\nexport function createEveGithubToolsDynamic(options: EveGithubToolsOptions = {}) {\n const { defineDynamic } = getEveTools()\n\n // TODO(eve-auth): resolve token from ctx.getToken('github') when eve-managed auth lands.\n return defineDynamic({\n events: {\n 'session.started': async () => buildEveToolMap(options),\n },\n })\n}\n\nexport function listResolvedEveToolNames(options?: { preset?: undefined }): GithubToolName[]\nexport function listResolvedEveToolNames<P extends GithubToolPreset>(options: { preset: P }): PresetToolName<P>[]\nexport function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: { preset: P }): CombinedPresetToolNames<P>[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset'> = {}): GithubToolName[] {\n if (!options.preset) return [...ALL_GITHUB_TOOL_NAMES]\n return ALL_GITHUB_TOOL_NAMES.filter(name => resolvePresetTools(options.preset!)!.has(name))\n}\n","import { buildEveToolDefinition, createEveGithubToolsDynamic } from './eve/build'\nimport type { EveToolFactoryOptions } from './eve/types'\n\nexport { buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, listResolvedEveToolNames } from './eve/build'\nexport type { EveApprovalConfig, EveApprovalValue, EveGithubToolsOptions, EveToolFactoryOptions, EveToolOverrides } from './eve/types'\nexport type { GithubToolPreset, PresetToolName, CombinedPresetToolNames } from './core/presets'\nexport type { GithubToolName } from './core/tool-names'\nexport type { GithubWriteToolName } from './core/write-tools'\nexport type { AllGithubTools, GithubToolsForPreset, PickGithubTools } from './core/tool-types'\nexport type { CommitIdentity } from './types'\nexport { PRESET_TOOLS } from './core/presets'\nexport { GITHUB_TOOL_NAMES } from './core/tool-names'\nexport { GITHUB_WRITE_TOOLS } from './core/write-tools'\nexport { MISSING_EVE_MESSAGE } from './eve/load-eve'\n\n/**\n * Register all GitHub tools (or a preset subset) as eve dynamic capabilities.\n *\n * Export as the default from `agent/tools/github.ts`:\n *\n * ```ts\n * import { createGithubTools } from '@github-tools/sdk/eve'\n * export default createGithubTools({ preset: 'code-review' })\n * ```\n */\nexport function createGithubTools(options?: import('./eve/types').EveGithubToolsOptions) {\n return createEveGithubToolsDynamic(options ?? {})\n}\n\nfunction factory(name: Parameters<typeof buildEveToolDefinition>[0]) {\n return (options?: EveToolFactoryOptions) => buildEveToolDefinition(name, options)\n}\n\n/** Get information about a GitHub repository including description, stars, forks, language, and default branch. */\nexport const getRepository = factory('getRepository')\n/** List branches in a GitHub repository. */\nexport const listBranches = factory('listBranches')\n/** Get the content of a file from a GitHub repository. */\nexport const getFileContent = factory('getFileContent')\n/** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */\nexport const createBranch = factory('createBranch')\n/** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */\nexport const forkRepository = factory('forkRepository')\n/** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */\nexport const createRepository = factory('createRepository')\n/** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */\nexport const createOrUpdateFile = factory('createOrUpdateFile')\n/** List pull requests for a GitHub repository. */\nexport const listPullRequests = factory('listPullRequests')\n/** Get detailed information about a specific pull request. */\nexport const getPullRequest = factory('getPullRequest')\n/** Create a new pull request in a GitHub repository. Requires approval by default. */\nexport const createPullRequest = factory('createPullRequest')\n/** Merge a pull request. Requires approval by default. */\nexport const mergePullRequest = factory('mergePullRequest')\n/** Add a comment to a pull request. Requires approval by default. */\nexport const addPullRequestComment = factory('addPullRequestComment')\n/** List files changed in a pull request, including diff status and patch content. */\nexport const listPullRequestFiles = factory('listPullRequestFiles')\n/** List reviews on a pull request (approvals, change requests, and comments). */\nexport const listPullRequestReviews = factory('listPullRequestReviews')\n/** Submit a pull request review with optional inline comments. Requires approval by default. */\nexport const createPullRequestReview = factory('createPullRequestReview')\n/** List issues for a GitHub repository (excludes pull requests). */\nexport const listIssues = factory('listIssues')\n/** Get detailed information about a specific issue. */\nexport const getIssue = factory('getIssue')\n/** Create a new issue in a GitHub repository. Requires approval by default. */\nexport const createIssue = factory('createIssue')\n/** Add a comment to a GitHub issue. Requires approval by default. */\nexport const addIssueComment = factory('addIssueComment')\n/** Close an open GitHub issue. Requires approval by default. */\nexport const closeIssue = factory('closeIssue')\n/** List labels available in a GitHub repository. */\nexport const listLabels = factory('listLabels')\n/** Add labels to an issue or pull request. Requires approval by default. */\nexport const addLabels = factory('addLabels')\n/** Remove a label from an issue or pull request. Requires approval by default. */\nexport const removeLabel = factory('removeLabel')\n/** Search for code in GitHub repositories. Use qualifiers like \"repo:owner/name\" to scope the search. */\nexport const searchCode = factory('searchCode')\n/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */\nexport const searchRepositories = factory('searchRepositories')\n/** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */\nexport const listCommits = factory('listCommits')\n/** Get detailed information about a specific commit, including files changed with additions and deletions. */\nexport const getCommit = factory('getCommit')\n/** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). */\nexport const getBlame = factory('getBlame')\n/** List gists for the authenticated user or a specific user. */\nexport const listGists = factory('listGists')\n/** Get a gist by ID, including file contents. */\nexport const getGist = factory('getGist')\n/** List comments on a gist. */\nexport const listGistComments = factory('listGistComments')\n/** Create a new gist with one or more files. Requires approval by default. */\nexport const createGist = factory('createGist')\n/** Update an existing gist. Requires approval by default. */\nexport const updateGist = factory('updateGist')\n/** Delete a gist permanently. Requires approval by default. */\nexport const deleteGist = factory('deleteGist')\n/** Add a comment to a gist. Requires approval by default. */\nexport const createGistComment = factory('createGistComment')\n/** List GitHub Actions workflows in a repository. */\nexport const listWorkflows = factory('listWorkflows')\n/** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */\nexport const listWorkflowRuns = factory('listWorkflowRuns')\n/** Get details of a specific workflow run including status, timing, and trigger info. */\nexport const getWorkflowRun = factory('getWorkflowRun')\n/** List jobs for a workflow run, including step-level status and timing. */\nexport const listWorkflowJobs = factory('listWorkflowJobs')\n/** Trigger a workflow via workflow_dispatch event. Requires approval by default. */\nexport const triggerWorkflow = factory('triggerWorkflow')\n/** Cancel an in-progress workflow run. Requires approval by default. */\nexport const cancelWorkflowRun = factory('cancelWorkflowRun')\n/** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */\nexport const rerunWorkflowRun = factory('rerunWorkflowRun')\n"],"mappings":";;;;AAWA,MAAa,sBACX;AAEF,SAAgB,cAA8B;AAC5C,QAAO;;AAGT,SAAgB,wBAA2C;AACzD,QAAO;;;;ACdT,SAAgB,oBAAoB,OAAmC;AACrE,KAAI,OAAO,UAAU,WAAY,QAAO;CAExC,MAAM,EAAE,QAAQ,OAAO,SAAS,uBAAuB;AAEvD,KAAI,UAAU,QAAQ,UAAU,SAAU,QAAO,QAAQ;AACzD,KAAI,UAAU,SAAS,UAAU,QAAS,QAAO,OAAO;AACxD,KAAI,UAAU,OAAQ,QAAO,MAAM;AAEnC,QAAO,QAAQ;;AAGjB,SAAgB,mBACd,UACA,QACsB;AACtB,KAAI,WAAW,KAAA,EAAW,QAAO,uBAAuB,CAAC,QAAQ;AACjE,KAAI,WAAW,KAAM,QAAO,uBAAuB,CAAC,QAAQ;AAC5D,KAAI,WAAW,MAAO,QAAO,uBAAuB,CAAC,OAAO;CAE5D,MAAM,QAAQ,OAAO;AACrB,KAAI,UAAU,KAAA,EAAW,QAAO,uBAAuB,CAAC,QAAQ;AAEhE,QAAO,oBAAoB,MAAM;;;;ACSnC,SAAS,UACP,MACA,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aAAa;;AAE/C,MAAa,qBAAqB,QAAQ,qBAAqB;;AAE/D,MAAa,cAAc,QAAQ,cAAc;;AAEjD,MAAa,YAAY,QAAQ,YAAY;;AAE7C,MAAa,WAAW,QAAQ,WAAW;;AAE3C,MAAa,YAAY,QAAQ,YAAY;;AAE7C,MAAa,UAAU,QAAQ,UAAU;;AAEzC,MAAa,mBAAmB,QAAQ,mBAAmB;;AAE3D,MAAa,aAAa,QAAQ,aAAa;;AAE/C,MAAa,aAAa,QAAQ,aAAa;;AAE/C,MAAa,aAAa,QAAQ,aAAa;;AAE/C,MAAa,oBAAoB,QAAQ,oBAAoB;;AAE7D,MAAa,gBAAgB,QAAQ,gBAAgB;;AAErD,MAAa,mBAAmB,QAAQ,mBAAmB;;AAE3D,MAAa,iBAAiB,QAAQ,iBAAiB;;AAEvD,MAAa,mBAAmB,QAAQ,mBAAmB;;AAE3D,MAAa,kBAAkB,QAAQ,kBAAkB;;AAEzD,MAAa,oBAAoB,QAAQ,oBAAoB;;AAE7D,MAAa,mBAAmB,QAAQ,mBAAmB"}
package/dist/eve.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as GithubToolPreset, a as CommitIdentity, b as GITHUB_TOOL_NAMES, g as CombinedPresetToolNames, h as GithubWriteToolName, i as PickGithubTools, m as GITHUB_WRITE_TOOLS, r as GithubToolsForPreset, t as AllGithubTools, v as PRESET_TOOLS, x as GithubToolName, y as PresetToolName } from "./tool-types-C0kszIwd.mjs";
2
- import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BTanS_dq.mjs";
1
+ import { $ as CommitIdentity, Q as PickGithubTools, Y as AllGithubTools, Z as GithubToolsForPreset, ct as GITHUB_WRITE_TOOLS, dt as GithubToolPreset, ft as PRESET_TOOLS, ht as GithubToolName, lt as GithubWriteToolName, mt as GITHUB_TOOL_NAMES, pt as PresetToolName, ut as CombinedPresetToolNames } from "./index-Cs1Kebmt.mjs";
2
+ import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-B0mvQgJf.mjs";
3
3
  import { z } from "zod";
4
4
  import * as _$eve_tools0 from "eve/tools";
5
5
  import { ToolDefinition, ToolModelOutput } from "eve/tools";
@@ -10,7 +10,7 @@ type BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & {
10
10
  type EveToolMap = Partial<Record<GithubToolName, ToolDefinition>>;
11
11
  declare function buildEveToolDefinition(name: GithubToolName, options?: BuildOptions): ToolDefinition;
12
12
  declare function buildEveToolMap(options?: EveGithubToolsOptions): EveToolMap;
13
- declare function createEveGithubToolsDynamic(options?: EveGithubToolsOptions): _$eve_tools0.DynamicSentinel;
13
+ declare function createEveGithubToolsDynamic(options?: EveGithubToolsOptions): _$eve_tools0.DynamicSentinel<Partial<Record<GithubToolName, ToolDefinition<unknown, unknown>>>>;
14
14
  declare function listResolvedEveToolNames(options?: {
15
15
  preset?: undefined;
16
16
  }): GithubToolName[];
@@ -35,91 +35,91 @@ declare const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @git
35
35
  * export default createGithubTools({ preset: 'code-review' })
36
36
  * ```
37
37
  */
38
- declare function createGithubTools(options?: EveGithubToolsOptions): _$eve_tools0.DynamicSentinel;
38
+ declare function createGithubTools(options?: EveGithubToolsOptions): _$eve_tools0.DynamicSentinel<Partial<Record<GithubToolName, _$eve_tools0.ToolDefinition<unknown, unknown>>>>;
39
39
  /** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
40
- declare const getRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
40
+ declare const getRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
41
41
  /** List branches in a GitHub repository. */
42
- declare const listBranches: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
42
+ declare const listBranches: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
43
43
  /** Get the content of a file from a GitHub repository. */
44
- declare const getFileContent: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
44
+ declare const getFileContent: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
45
45
  /** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */
46
- declare const createBranch: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
46
+ declare const createBranch: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
47
47
  /** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */
48
- declare const forkRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
48
+ declare const forkRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
49
49
  /** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */
50
- declare const createRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
50
+ declare const createRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
51
51
  /** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */
52
- declare const createOrUpdateFile: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
52
+ declare const createOrUpdateFile: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
53
53
  /** List pull requests for a GitHub repository. */
54
- declare const listPullRequests: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
54
+ declare const listPullRequests: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
55
55
  /** Get detailed information about a specific pull request. */
56
- declare const getPullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
56
+ declare const getPullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
57
57
  /** Create a new pull request in a GitHub repository. Requires approval by default. */
58
- declare const createPullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
58
+ declare const createPullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
59
59
  /** Merge a pull request. Requires approval by default. */
60
- declare const mergePullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
60
+ declare const mergePullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
61
61
  /** Add a comment to a pull request. Requires approval by default. */
62
- declare const addPullRequestComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
62
+ declare const addPullRequestComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
63
63
  /** List files changed in a pull request, including diff status and patch content. */
64
- declare const listPullRequestFiles: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
64
+ declare const listPullRequestFiles: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
65
65
  /** List reviews on a pull request (approvals, change requests, and comments). */
66
- declare const listPullRequestReviews: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
66
+ declare const listPullRequestReviews: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
67
67
  /** Submit a pull request review with optional inline comments. Requires approval by default. */
68
- declare const createPullRequestReview: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
68
+ declare const createPullRequestReview: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
69
69
  /** List issues for a GitHub repository (excludes pull requests). */
70
- declare const listIssues: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
70
+ declare const listIssues: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
71
71
  /** Get detailed information about a specific issue. */
72
- declare const getIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
72
+ declare const getIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
73
73
  /** Create a new issue in a GitHub repository. Requires approval by default. */
74
- declare const createIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
74
+ declare const createIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
75
75
  /** Add a comment to a GitHub issue. Requires approval by default. */
76
- declare const addIssueComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
76
+ declare const addIssueComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
77
77
  /** Close an open GitHub issue. Requires approval by default. */
78
- declare const closeIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
78
+ declare const closeIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
79
79
  /** List labels available in a GitHub repository. */
80
- declare const listLabels: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
80
+ declare const listLabels: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
81
81
  /** Add labels to an issue or pull request. Requires approval by default. */
82
- declare const addLabels: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
82
+ declare const addLabels: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
83
83
  /** Remove a label from an issue or pull request. Requires approval by default. */
84
- declare const removeLabel: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
84
+ declare const removeLabel: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
85
85
  /** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
86
- declare const searchCode: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
86
+ declare const searchCode: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
87
87
  /** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
88
- declare const searchRepositories: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
88
+ declare const searchRepositories: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
89
89
  /** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
90
- declare const listCommits: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
90
+ declare const listCommits: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
91
91
  /** Get detailed information about a specific commit, including files changed with additions and deletions. */
92
- declare const getCommit: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
92
+ declare const getCommit: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
93
93
  /** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). */
94
- declare const getBlame: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
94
+ declare const getBlame: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
95
95
  /** List gists for the authenticated user or a specific user. */
96
- declare const listGists: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
96
+ declare const listGists: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
97
97
  /** Get a gist by ID, including file contents. */
98
- declare const getGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
98
+ declare const getGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
99
99
  /** List comments on a gist. */
100
- declare const listGistComments: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
100
+ declare const listGistComments: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
101
101
  /** Create a new gist with one or more files. Requires approval by default. */
102
- declare const createGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
102
+ declare const createGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
103
103
  /** Update an existing gist. Requires approval by default. */
104
- declare const updateGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
104
+ declare const updateGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
105
105
  /** Delete a gist permanently. Requires approval by default. */
106
- declare const deleteGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
106
+ declare const deleteGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
107
107
  /** Add a comment to a gist. Requires approval by default. */
108
- declare const createGistComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
108
+ declare const createGistComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
109
109
  /** List GitHub Actions workflows in a repository. */
110
- declare const listWorkflows: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
110
+ declare const listWorkflows: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
111
111
  /** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */
112
- declare const listWorkflowRuns: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
112
+ declare const listWorkflowRuns: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
113
113
  /** Get details of a specific workflow run including status, timing, and trigger info. */
114
- declare const getWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
114
+ declare const getWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
115
115
  /** List jobs for a workflow run, including step-level status and timing. */
116
- declare const listWorkflowJobs: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
116
+ declare const listWorkflowJobs: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
117
117
  /** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
118
- declare const triggerWorkflow: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
118
+ declare const triggerWorkflow: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
119
119
  /** Cancel an in-progress workflow run. Requires approval by default. */
120
- declare const cancelWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
120
+ declare const cancelWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
121
121
  /** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
122
- declare const rerunWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
122
+ declare const rerunWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition<unknown, unknown>;
123
123
  //#endregion
124
124
  export { type AllGithubTools, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, addIssueComment, addLabels, addPullRequestComment, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, forkRepository, getBlame, getCommit, getFileContent, getGist, getIssue, getPullRequest, getRepository, getWorkflowRun, listBranches, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeLabel, rerunWorkflowRun, searchCode, searchRepositories, triggerWorkflow, updateGist };
125
125
  //# sourceMappingURL=eve.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eve.d.mts","names":[],"sources":["../src/eve/build.ts","../src/eve/load-eve.ts","../src/eve.ts"],"mappings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A,KAAqB,YAAA,CAAA,cAAA;;cAsF5B,gBAAA,GAAgB,OAAA,GAtFT,qBAAA,KAAqB,YAAA,CAAA,cAAA"}
package/dist/eve.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  import { i as PRESET_TOOLS, r as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-Dx9LfYlU.mjs";
2
- import { A as listLabels, B as searchCode, C as getRepository, D as listGistComments, E as listCommits, F as listWorkflowRuns, G as buildEveToolMap, H as triggerWorkflow, I as listWorkflows, J as MISSING_EVE_MESSAGE, K as createEveGithubToolsDynamic, L as mergePullRequest, M as listPullRequestReviews, N as listPullRequests, O as listGists, P as listWorkflowJobs, R as removeLabel, S as getPullRequest, T as listBranches, U as updateGist, V as searchRepositories, W as buildEveToolDefinition, _ as getBlame, a as closeIssue, b as getGist, c as createGistComment, d as createOrUpdateFile, f as createPullRequest, g as forkRepository, h as deleteGist, i as cancelWorkflowRun, j as listPullRequestFiles, k as listIssues, l as createGithubTools, m as createRepository, n as addLabels, o as createBranch, p as createPullRequestReview, q as listResolvedEveToolNames, r as addPullRequestComment, s as createGist, t as addIssueComment, u as createIssue, v as getCommit, w as getWorkflowRun, x as getIssue, y as getFileContent, z as rerunWorkflowRun } from "./eve-B-LChKzS.mjs";
2
+ import { A as listLabels, B as searchCode, C as getRepository, D as listGistComments, E as listCommits, F as listWorkflowRuns, G as buildEveToolMap, H as triggerWorkflow, I as listWorkflows, J as MISSING_EVE_MESSAGE, K as createEveGithubToolsDynamic, L as mergePullRequest, M as listPullRequestReviews, N as listPullRequests, O as listGists, P as listWorkflowJobs, R as removeLabel, S as getPullRequest, T as listBranches, U as updateGist, V as searchRepositories, W as buildEveToolDefinition, _ as getBlame, a as closeIssue, b as getGist, c as createGistComment, d as createOrUpdateFile, f as createPullRequest, g as forkRepository, h as deleteGist, i as cancelWorkflowRun, j as listPullRequestFiles, k as listIssues, l as createGithubTools, m as createRepository, n as addLabels, o as createBranch, p as createPullRequestReview, q as listResolvedEveToolNames, r as addPullRequestComment, s as createGist, t as addIssueComment, u as createIssue, v as getCommit, w as getWorkflowRun, x as getIssue, y as getFileContent, z as rerunWorkflowRun } from "./eve-UPaHEGVi.mjs";
3
3
  export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, addIssueComment, addLabels, addPullRequestComment, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, forkRepository, getBlame, getCommit, getFileContent, getGist, getIssue, getPullRequest, getRepository, getWorkflowRun, listBranches, listCommits, listGistComments, listGists, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listWorkflowJobs, listWorkflowRuns, listWorkflows, mergePullRequest, removeLabel, rerunWorkflowRun, searchCode, searchRepositories, triggerWorkflow, updateGist };
@@ -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
  /**
@@ -245,5 +246,218 @@ type GithubToolsForPreset<P extends GithubToolPreset | readonly GithubToolPreset
245
246
  /** Pick a subset of GitHub tools by tool name. */
246
247
  type PickGithubTools<T extends GithubToolName> = Pick<AllGithubTools, T>;
247
248
  //#endregion
248
- export { GithubToolPreset as _, CommitIdentity as a, GITHUB_TOOL_NAMES as b, Octokit$1 as c, GithubTokenInput as d, resolveGithubToken as f, CombinedPresetToolNames as g, GithubWriteToolName as h, PickGithubTools as i, ToolOptions as l, GITHUB_WRITE_TOOLS as m, GithubToolsBaseOptions as n, CommitToolOptions as o, ApprovalConfig as p, GithubToolsForPreset as r, GithubTool as s, AllGithubTools as t, ToolOverrides as u, PRESET_TOOLS as v, GithubToolName as x, PresetToolName as y };
249
- //# sourceMappingURL=tool-types-C0kszIwd.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/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":";;;;;;;;;cAIa,iBAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;qCAuFD;EAAA;uCAAwE;EAAA;iCCpFvE;EAAA;;;;;qCAgFe;EAAA,iDAAgB;EAAA,yCAGhC;EAAA,+CAAc;EAAA,2CAA+C;EAAA,+CAA0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,cAAA,EAAgB,cAAA,CAAe,CAAA;AAAA,iBAC5C,iBAAA,oBAAqC,gBAAA,GAAA,CACnD,OAAA,EAAS,wBAAA;EAA6B,MAAA,EAAQ,CAAA;AAAA,IAC7C,aAAA,QAAqB,IAAA,CAAK,cAAA,EAAgB,uBAAA,CAAwB,CAAA;;;KCjGzD,kBAAA,GAAqB,sBAAA;;;;;;;;;;;;;;;;EAgB/B,MAAA,GAAS,gBAAA,GAAmB,gBAAA;AAAA;AAAA,iBAGd,iBAAA,CAAkB,OAAA,GAAU,sBAAA;EAA2B,MAAA;AAAA,IAAuB,cAAA;AAAA,iBAC9E,iBAAA,WAA4B,gBAAA,CAAA,CAC1C,OAAA,EAAS,sBAAA;EAA2B,MAAA,EAAQ,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,2 @@
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";
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";
3
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 };
@@ -1,4 +1,4 @@
1
- import { _ as GithubToolPreset, a as CommitIdentity, d as GithubTokenInput, h as GithubWriteToolName, x as GithubToolName } from "./tool-types-C0kszIwd.mjs";
1
+ import { $ as CommitIdentity, at as GithubTokenInput, dt as GithubToolPreset, ht as GithubToolName, lt as GithubWriteToolName } from "./index-Cs1Kebmt.mjs";
2
2
  import { z } from "zod";
3
3
  import { Approval, ToolModelOutput } from "eve/tools";
4
4
 
@@ -46,4 +46,4 @@ type EveGithubToolsOptions = {
46
46
  type EveToolFactoryOptions = Omit<EveGithubToolsOptions, 'preset'>;
47
47
  //#endregion
48
48
  export { EveToolOverrides as a, EveToolFactoryOptions as i, EveApprovalValue as n, EveGithubToolsOptions as r, EveApprovalConfig as t };
49
- //# sourceMappingURL=types-BTanS_dq.d.mts.map
49
+ //# sourceMappingURL=types-B0mvQgJf.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-BTanS_dq.d.mts","names":[],"sources":["../src/eve/types.ts"],"mappings":";;;;;;;;AAuBA;;;;;KAPY,gBAAA,2CAKR,QAAA;AAAA,KAEQ,iBAAA,aAER,OAAA,CAAQ,MAAA,CAAO,mBAAA,EAAqB,gBAAA;AAAA,KAE5B,gBAAA,GAAmB,OAAA,CAAQ,MAAA,CAAO,cAAA;EAC5C,WAAA;EACA,QAAA,GAAW,gBAAA;EACX,aAAA,IAAiB,MAAA,cAAoB,eAAA,GAAkB,OAAA,CAAQ,eAAA;EAC/D,YAAA,GAAe,CAAA,CAAE,OAAA,GAAU,MAAA;AAAA;AAAA,KAGjB,qBAAA;EAT4C,qFAWtD,KAAA,GAAQ,gBAAA;EATkB;;;;;EAe1B,MAAA,GAAS,gBAAA,GAAmB,gBAAA;EAZ2B;;;;;EAkBvD,eAAA,GAAkB,iBAAA;EArBkB;;;;;EA2BpC,SAAA,GAAY,gBAAA,EAzBD;EA2BX,MAAA,GAAS,cAAA,EA1BQ;EA4BjB,SAAA,GAAY,cAAA,EA5B2C;EA8BvD,SAAA,GAAY,cAAA;AAAA;AAAA,KAGF,qBAAA,GAAwB,IAAA,CAAK,qBAAA"}
1
+ {"version":3,"file":"types-B0mvQgJf.d.mts","names":[],"sources":["../src/eve/types.ts"],"mappings":";;;;;;;;AAuBA;;;;;KAPY,gBAAA,2CAKR,QAAA;AAAA,KAEQ,iBAAA,aAER,OAAA,CAAQ,MAAA,CAAO,mBAAA,EAAqB,gBAAA;AAAA,KAE5B,gBAAA,GAAmB,OAAA,CAAQ,MAAA,CAAO,cAAA;EAC5C,WAAA;EACA,QAAA,GAAW,gBAAA;EACX,aAAA,IAAiB,MAAA,cAAoB,eAAA,GAAkB,OAAA,CAAQ,eAAA;EAC/D,YAAA,GAAe,CAAA,CAAE,OAAA,GAAU,MAAA;AAAA;AAAA,KAGjB,qBAAA;EAT4C,qFAWtD,KAAA,GAAQ,gBAAA;EATkB;;;;;EAe1B,MAAA,GAAS,gBAAA,GAAmB,gBAAA;EAZ2B;;;;;EAkBvD,eAAA,GAAkB,iBAAA;EArBkB;;;;;EA2BpC,SAAA,GAAY,gBAAA,EAzBD;EA2BX,MAAA,GAAS,cAAA,EA1BQ;EA4BjB,SAAA,GAAY,cAAA,EA5B2C;EA8BvD,SAAA,GAAY,cAAA;AAAA;AAAA,KAGF,qBAAA,GAAwB,IAAA,CAAK,qBAAA"}
@@ -1,5 +1,5 @@
1
- import { _ as GithubToolPreset, n as GithubToolsBaseOptions } from "./tool-types-C0kszIwd.mjs";
2
- import { r as EveGithubToolsOptions } from "./types-BTanS_dq.mjs";
1
+ import { X as GithubToolsBaseOptions, dt as GithubToolPreset } from "./index-Cs1Kebmt.mjs";
2
+ import { r as EveGithubToolsOptions } from "./types-B0mvQgJf.mjs";
3
3
  import { ConnectOptions, ConnectTokenParams } from "@vercel/connect";
4
4
 
5
5
  //#region src/connect/types.d.ts
@@ -24,4 +24,4 @@ type ConnectGithubTokenOptions = {
24
24
  };
25
25
  //#endregion
26
26
  export { GithubConnectParams as i, ConnectGithubTokenOptions as n, ConnectGithubToolsOptions as r, ConnectGithubEveToolsOptions as t };
27
- //# sourceMappingURL=types-DOeq0Iia.d.mts.map
27
+ //# sourceMappingURL=types-DwHrGKWO.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-DOeq0Iia.d.mts","names":[],"sources":["../src/connect/types.ts"],"mappings":";;;;;;AASA;;;KAAY,mBAAA,GAAsB,IAAA,CAAK,kBAAA;EAAL,oFAEhC,YAAA;AAAA;AAAA,KAGU,yBAAA,GAA4B,sBAAA;EACtC,MAAA,GAAS,gBAAA,GAAmB,gBAAA;EAC5B,OAAA,GAAU,mBAAA;AAAA;AAAA,KAGA,4BAAA,GAA+B,IAAA,CAAK,qBAAA;EAC9C,OAAA,GAAU,mBAAA;AAAA;AAAA,KAGA,yBAAA;EACV,MAAA,GAAS,gBAAA,GAAmB,gBAAA;EAC5B,MAAA,GAAS,mBAAA;EACT,cAAA,GAAiB,cAAA;AAAA"}
1
+ {"version":3,"file":"types-DwHrGKWO.d.mts","names":[],"sources":["../src/connect/types.ts"],"mappings":";;;;;;AASA;;;KAAY,mBAAA,GAAsB,IAAA,CAAK,kBAAA;EAAL,oFAEhC,YAAA;AAAA;AAAA,KAGU,yBAAA,GAA4B,sBAAA;EACtC,MAAA,GAAS,gBAAA,GAAmB,gBAAA;EAC5B,OAAA,GAAU,mBAAA;AAAA;AAAA,KAGA,4BAAA,GAA+B,IAAA,CAAK,qBAAA;EAC9C,OAAA,GAAU,mBAAA;AAAA;AAAA,KAGA,yBAAA;EACV,MAAA,GAAS,gBAAA,GAAmB,gBAAA;EAC5B,MAAA,GAAS,mBAAA;EACT,cAAA,GAAiB,cAAA;AAAA"}
@@ -1,5 +1,4 @@
1
- import { _ as GithubToolPreset, a as CommitIdentity, b as GITHUB_TOOL_NAMES, d as GithubTokenInput, f as resolveGithubToken, g as CombinedPresetToolNames, h as GithubWriteToolName, i as PickGithubTools, m as GITHUB_WRITE_TOOLS, o as CommitToolOptions, p as ApprovalConfig, r as GithubToolsForPreset, 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 createGithubAgent, i as CreateGithubAgentOptions, n as GithubToolsOptions, r as createGithubTools, t as GithubTools } from "./index-SZCaP-y9.mjs";
1
+ import { $ as CommitIdentity, Q as PickGithubTools, Y as AllGithubTools, Z as GithubToolsForPreset, a as createGithubAgent, at as GithubTokenInput, ct as GITHUB_WRITE_TOOLS, dt as GithubToolPreset, et as CommitToolOptions, ft as PRESET_TOOLS, ht as GithubToolName, i as CreateGithubAgentOptions, it as ToolOverrides, lt as GithubWriteToolName, mt as GITHUB_TOOL_NAMES, n as GithubToolsOptions, ot as resolveGithubToken, pt as PresetToolName, r as createGithubTools, st as ApprovalConfig, t as GithubTools, ut as CombinedPresetToolNames } from "./index-Cs1Kebmt.mjs";
3
2
  import { FinishReason, LanguageModel, LanguageModelResponseMetadata, LanguageModelUsage, ModelMessage, StepResult, StopCondition, ToolSet } from "ai";
4
3
  import { WorkflowAgentOptions, WorkflowAgentStreamOptions, WorkflowAgentStreamResult } from "@ai-sdk/workflow";
5
4
  import { Context } from "@ai-sdk/provider-utils";
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.d.mts","names":[],"sources":["../src/workflow.ts"],"mappings":";;;;;;;;;;UA8BiB,gCAAA,gBAAgD,OAAA,GAAU,OAAA;EACzE,IAAA;EACA,YAAA,EAAc,YAAA;EACd,KAAA,EAAO,kBAAA;EACP,KAAA,EAAO,UAAA,CAAW,MAAA;EAClB,QAAA,EAAU,6BAAA;IAAkC,QAAA,EAAU,YAAA;EAAA;AAAA;;;;;;;;;;;cAa3C,kBAAA,gBAAkC,OAAA,GAAU,OAAA;EAAA,QAC/C,KAAA;EAAA,QACA,MAAA;EAAA,QACA,aAAA;EAAA,QACA,UAAA;EAAA,QACA,MAAA;cAEI,OAAA,EAAS,oBAAA,CAAqB,MAAA;EAP/B;EAAA,IAgBP,KAAA,CAAA,GAAS,MAAA;EAhBgB;;;;EAwB7B,MAAA,sBAA4B,MAAA,GAAS,MAAA,yCAAA,CACnC,OAAA,EAAS,0BAAA,CAA2B,YAAA,EAAc,OAAA,EAAS,MAAA,EAAQ,cAAA,IAClE,OAAA,CAAQ,yBAAA,CAA0B,YAAA,EAAc,MAAA;EAVtC;;;;;;;EAqBP,QAAA,CAAA;IAAW,MAAA;IAAQ;EAAA;IAAc,MAAA;IAAgB,QAAA,GAAW,aAAA,CAAc,MAAA,IAAU,KAAA,CAAM,aAAA,CAAc,MAAA;EAAA,IAAa,OAAA,CAAQ,gCAAA,CAAiC,MAAA;AAAA;;;;;;;KA8B1J,+BAAA,GACV,IAAA,CAAK,oBAAA;EACH,KAAA,WAAgB,aAAA;EAhCiH;;;;EAqCjI,KAAA,GAAQ,gBAAA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-1,6 +1,6 @@
1
1
  {
2
2
  "name": "@github-tools/sdk",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "42 typed GitHub tools with presets, human approval, and durable execution — for the AI SDK, eve, Vercel Workflow, and Chat SDK",
5
5
  "author": "HugoRCD <hugo.richard@vercel.com",
6
6
  "repository": {
@@ -59,10 +59,10 @@
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@ai-sdk/workflow": "^1.0.16",
62
- "@vercel/connect": "^0.3.2",
62
+ "@vercel/connect": ">=0.3.2",
63
63
  "@workflow/ai": "^4.1.2",
64
64
  "ai": "^6.0.97 || ^7.0.0",
65
- "eve": "^0.19.0",
65
+ "eve": ">=0.19.0",
66
66
  "workflow": "^4.5.0",
67
67
  "zod": "^4.3.6"
68
68
  },
@@ -88,10 +88,10 @@
88
88
  "@ai-sdk/provider": "^4.0.2",
89
89
  "@ai-sdk/provider-utils": "^5.0.5",
90
90
  "@types/node": "^25.6.0",
91
- "@vercel/connect": "^0.3.2",
91
+ "@vercel/connect": "^0.4.2",
92
92
  "ai": "^7.0.0",
93
93
  "eslint": "^10.3.0",
94
- "eve": "^0.19.0",
94
+ "eve": "^0.26.2",
95
95
  "tsdown": "^0.21.10",
96
96
  "typescript": "^6.0.3",
97
97
  "typescript-eslint": "^8.59.2",
@@ -1 +0,0 @@
1
- {"version":3,"file":"eve-B-LChKzS.mjs","names":["repository.getRepositoryDescription","repository.getRepositoryInputSchema","repository.getRepositoryCore","repository.listBranchesDescription","repository.listBranchesInputSchema","repository.listBranchesCore","repository.getFileContentDescription","repository.getFileContentInputSchema","repository.getFileContentCore","repository.createBranchDescription","repository.createBranchInputSchema","repository.createBranchCore","repository.forkRepositoryDescription","repository.forkRepositoryInputSchema","repository.forkRepositoryCore","repository.createRepositoryDescription","repository.createRepositoryInputSchema","repository.createRepositoryCore","repository.createOrUpdateFileDescription","repository.createOrUpdateFileInputSchema","repository.createOrUpdateFileCore","pullRequests.listPullRequestsDescription","pullRequests.listPullRequestsInputSchema","pullRequests.listPullRequestsCore","pullRequests.getPullRequestDescription","pullRequests.getPullRequestInputSchema","pullRequests.getPullRequestCore","pullRequests.createPullRequestDescription","pullRequests.createPullRequestInputSchema","pullRequests.createPullRequestCore","pullRequests.mergePullRequestDescription","pullRequests.mergePullRequestInputSchema","pullRequests.mergePullRequestCore","pullRequests.addPullRequestCommentDescription","pullRequests.addPullRequestCommentInputSchema","pullRequests.addPullRequestCommentCore","pullRequests.listPullRequestFilesDescription","pullRequests.listPullRequestFilesInputSchema","pullRequests.listPullRequestFilesCore","pullRequests.listPullRequestReviewsDescription","pullRequests.listPullRequestReviewsInputSchema","pullRequests.listPullRequestReviewsCore","pullRequests.createPullRequestReviewDescription","pullRequests.createPullRequestReviewInputSchema","pullRequests.createPullRequestReviewCore","issues.listIssuesDescription","issues.listIssuesInputSchema","issues.listIssuesCore","issues.getIssueDescription","issues.getIssueInputSchema","issues.getIssueCore","issues.createIssueDescription","issues.createIssueInputSchema","issues.createIssueCore","issues.addIssueCommentDescription","issues.addIssueCommentInputSchema","issues.addIssueCommentCore","issues.closeIssueDescription","issues.closeIssueInputSchema","issues.closeIssueCore","issues.listLabelsDescription","issues.listLabelsInputSchema","issues.listLabelsCore","issues.addLabelsDescription","issues.addLabelsInputSchema","issues.addLabelsCore","issues.removeLabelDescription","issues.removeLabelInputSchema","issues.removeLabelCore","search.searchCodeDescription","search.searchCodeInputSchema","search.searchCodeCore","search.searchRepositoriesDescription","search.searchRepositoriesInputSchema","search.searchRepositoriesCore","commits.listCommitsDescription","commits.listCommitsInputSchema","commits.listCommitsCore","commits.getCommitDescription","commits.getCommitInputSchema","commits.getCommitCore","commits.getBlameDescription","commits.getBlameInputSchema","commits.getBlameCore","gists.listGistsDescription","gists.listGistsInputSchema","gists.listGistsCore","gists.getGistDescription","gists.getGistInputSchema","gists.getGistCore","gists.listGistCommentsDescription","gists.listGistCommentsInputSchema","gists.listGistCommentsCore","gists.createGistDescription","gists.createGistInputSchema","gists.createGistCore","gists.updateGistDescription","gists.updateGistInputSchema","gists.updateGistCore","gists.deleteGistDescription","gists.deleteGistInputSchema","gists.deleteGistCore","gists.createGistCommentDescription","gists.createGistCommentInputSchema","gists.createGistCommentCore","workflows.listWorkflowsDescription","workflows.listWorkflowsInputSchema","workflows.listWorkflowsCore","workflows.listWorkflowRunsDescription","workflows.listWorkflowRunsInputSchema","workflows.listWorkflowRunsCore","workflows.getWorkflowRunDescription","workflows.getWorkflowRunInputSchema","workflows.getWorkflowRunCore","workflows.listWorkflowJobsDescription","workflows.listWorkflowJobsInputSchema","workflows.listWorkflowJobsCore","workflows.triggerWorkflowDescription","workflows.triggerWorkflowInputSchema","workflows.triggerWorkflowCore","workflows.cancelWorkflowRunDescription","workflows.cancelWorkflowRunInputSchema","workflows.cancelWorkflowRunCore","workflows.rerunWorkflowRunDescription","workflows.rerunWorkflowRunInputSchema","workflows.rerunWorkflowRunCore"],"sources":["../src/eve/load-eve.ts","../src/eve/approval.ts","../src/eve/registry.ts","../src/eve/steps.ts","../src/eve/build.ts","../src/eve.ts"],"sourcesContent":["import { createRequire } from 'node:module'\n\nconst require = createRequire(import.meta.url)\n\nconst MISSING_EVE_MESSAGE =\n 'The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve'\n\nexport type EveToolsModule = typeof import('eve/tools')\nexport type EveApprovalModule = typeof import('eve/tools/approval')\n\nlet eveToolsModule: EveToolsModule | undefined\nlet eveApprovalModule: EveApprovalModule | undefined\n\nexport function getEveTools(): EveToolsModule {\n if (eveToolsModule) return eveToolsModule\n try {\n eveToolsModule = require('eve/tools') as EveToolsModule\n return eveToolsModule\n } catch {\n throw new Error(MISSING_EVE_MESSAGE)\n }\n}\n\nexport function getEveApprovalHelpers(): EveApprovalModule {\n if (eveApprovalModule) return eveApprovalModule\n try {\n eveApprovalModule = require('eve/tools/approval') as EveApprovalModule\n return eveApprovalModule\n } catch {\n throw new Error(MISSING_EVE_MESSAGE)\n }\n}\n\nexport { MISSING_EVE_MESSAGE }\n","import type { Approval } from 'eve/tools'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport { getEveApprovalHelpers } from './load-eve'\nimport type { EveApprovalConfig, EveApprovalValue } from './types'\n\nexport function mapEveApprovalValue(value: EveApprovalValue): Approval {\n if (typeof value === 'function') return value\n\n const { always, never, once } = getEveApprovalHelpers()\n\n if (value === true || value === 'always') return always()\n if (value === false || value === 'never') return never()\n if (value === 'once') return once()\n\n return always()\n}\n\nexport function resolveEveApproval(\n toolName: GithubWriteToolName,\n config: EveApprovalConfig | undefined,\n): Approval | undefined {\n if (config === undefined) return getEveApprovalHelpers().always()\n if (config === true) return getEveApprovalHelpers().always()\n if (config === false) return getEveApprovalHelpers().never()\n\n const value = config[toolName]\n if (value === undefined) return getEveApprovalHelpers().always()\n\n return mapEveApprovalValue(value)\n}\n","import type { ToolModelOutput } from 'eve/tools'\nimport type { z } from 'zod'\nimport type { CommitIdentity } from '../types'\nimport * as commits from '../core/commits'\nimport * as gists from '../core/gists'\nimport * as issues from '../core/issues'\nimport {\n getCommitToModelOutput,\n getFileContentToModelOutput,\n listPullRequestFilesToModelOutput,\n} from '../core/model-output'\nimport * as pullRequests from '../core/pull-requests'\nimport * as repository from '../core/repository'\nimport * as search from '../core/search'\nimport * as workflows from '../core/workflows'\nimport { resolveGithubToken, type GithubTokenInput } from '../core/token'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport type { GithubToolName } from '../core/tool-names'\nexport type { GithubToolName } from '../core/tool-names'\nexport { ALL_GITHUB_TOOL_NAMES } from '../core/tool-names'\n\nexport type ToolBuildContext = {\n token: GithubTokenInput\n author?: CommitIdentity\n committer?: CommitIdentity\n coAuthors?: CommitIdentity[]\n}\n\ntype ToolRegistryEntry = {\n name: GithubToolName\n writeTool?: GithubWriteToolName\n description: string\n inputSchema: z.ZodType\n execute: (args: Record<string, unknown>) => Promise<unknown>\n toModelOutput?: (output: unknown) => ToolModelOutput\n}\n\nfunction withToken<T extends Record<string, unknown>>(\n core: (args: T & { token: string }) => Promise<unknown>,\n ctx: ToolBuildContext,\n extra?: Record<string, unknown>,\n) {\n return async (input: Record<string, unknown>) => core({ token: await resolveGithubToken(ctx.token), ...extra, ...input } as T & { token: string })\n}\n\nfunction modelOutputAdapter(\n fn: (options: { toolCallId: string, input: unknown, output: unknown }) => { type: 'json' | 'text', value: unknown },\n) {\n return (output: unknown) => fn({ toolCallId: '', input: {}, output }) as ToolModelOutput\n}\n\nexport function createToolRegistry(ctx: ToolBuildContext): ToolRegistryEntry[] {\n return [\n {\n name: 'getRepository',\n description: repository.getRepositoryDescription,\n inputSchema: repository.getRepositoryInputSchema,\n execute: withToken(repository.getRepositoryCore, ctx),\n },\n {\n name: 'listBranches',\n description: repository.listBranchesDescription,\n inputSchema: repository.listBranchesInputSchema,\n execute: withToken(repository.listBranchesCore, ctx),\n },\n {\n name: 'getFileContent',\n description: repository.getFileContentDescription,\n inputSchema: repository.getFileContentInputSchema,\n execute: withToken(repository.getFileContentCore, ctx),\n toModelOutput: modelOutputAdapter(getFileContentToModelOutput),\n },\n {\n name: 'createBranch',\n writeTool: 'createBranch',\n description: repository.createBranchDescription,\n inputSchema: repository.createBranchInputSchema,\n execute: withToken(repository.createBranchCore, ctx),\n },\n {\n name: 'forkRepository',\n writeTool: 'forkRepository',\n description: repository.forkRepositoryDescription,\n inputSchema: repository.forkRepositoryInputSchema,\n execute: withToken(repository.forkRepositoryCore, ctx),\n },\n {\n name: 'createRepository',\n writeTool: 'createRepository',\n description: repository.createRepositoryDescription,\n inputSchema: repository.createRepositoryInputSchema,\n execute: withToken(repository.createRepositoryCore, ctx),\n },\n {\n name: 'createOrUpdateFile',\n writeTool: 'createOrUpdateFile',\n description: repository.createOrUpdateFileDescription,\n inputSchema: repository.createOrUpdateFileInputSchema,\n execute: withToken(repository.createOrUpdateFileCore, ctx, {\n author: ctx.author,\n committer: ctx.committer,\n coAuthors: ctx.coAuthors,\n }),\n },\n {\n name: 'listPullRequests',\n description: pullRequests.listPullRequestsDescription,\n inputSchema: pullRequests.listPullRequestsInputSchema,\n execute: withToken(pullRequests.listPullRequestsCore, ctx),\n },\n {\n name: 'getPullRequest',\n description: pullRequests.getPullRequestDescription,\n inputSchema: pullRequests.getPullRequestInputSchema,\n execute: withToken(pullRequests.getPullRequestCore, ctx),\n },\n {\n name: 'createPullRequest',\n writeTool: 'createPullRequest',\n description: pullRequests.createPullRequestDescription,\n inputSchema: pullRequests.createPullRequestInputSchema,\n execute: withToken(pullRequests.createPullRequestCore, ctx),\n },\n {\n name: 'mergePullRequest',\n writeTool: 'mergePullRequest',\n description: pullRequests.mergePullRequestDescription,\n inputSchema: pullRequests.mergePullRequestInputSchema,\n execute: withToken(pullRequests.mergePullRequestCore, ctx, { coAuthors: ctx.coAuthors }),\n },\n {\n name: 'addPullRequestComment',\n writeTool: 'addPullRequestComment',\n description: pullRequests.addPullRequestCommentDescription,\n inputSchema: pullRequests.addPullRequestCommentInputSchema,\n execute: withToken(pullRequests.addPullRequestCommentCore, ctx),\n },\n {\n name: 'listPullRequestFiles',\n description: pullRequests.listPullRequestFilesDescription,\n inputSchema: pullRequests.listPullRequestFilesInputSchema,\n execute: withToken(pullRequests.listPullRequestFilesCore, ctx),\n toModelOutput: modelOutputAdapter(listPullRequestFilesToModelOutput),\n },\n {\n name: 'listPullRequestReviews',\n description: pullRequests.listPullRequestReviewsDescription,\n inputSchema: pullRequests.listPullRequestReviewsInputSchema,\n execute: withToken(pullRequests.listPullRequestReviewsCore, ctx),\n },\n {\n name: 'createPullRequestReview',\n writeTool: 'createPullRequestReview',\n description: pullRequests.createPullRequestReviewDescription,\n inputSchema: pullRequests.createPullRequestReviewInputSchema,\n execute: withToken(pullRequests.createPullRequestReviewCore, ctx),\n },\n {\n name: 'listIssues',\n description: issues.listIssuesDescription,\n inputSchema: issues.listIssuesInputSchema,\n execute: withToken(issues.listIssuesCore, ctx),\n },\n {\n name: 'getIssue',\n description: issues.getIssueDescription,\n inputSchema: issues.getIssueInputSchema,\n execute: withToken(issues.getIssueCore, ctx),\n },\n {\n name: 'createIssue',\n writeTool: 'createIssue',\n description: issues.createIssueDescription,\n inputSchema: issues.createIssueInputSchema,\n execute: withToken(issues.createIssueCore, ctx),\n },\n {\n name: 'addIssueComment',\n writeTool: 'addIssueComment',\n description: issues.addIssueCommentDescription,\n inputSchema: issues.addIssueCommentInputSchema,\n execute: withToken(issues.addIssueCommentCore, ctx),\n },\n {\n name: 'closeIssue',\n writeTool: 'closeIssue',\n description: issues.closeIssueDescription,\n inputSchema: issues.closeIssueInputSchema,\n execute: withToken(issues.closeIssueCore, ctx),\n },\n {\n name: 'listLabels',\n description: issues.listLabelsDescription,\n inputSchema: issues.listLabelsInputSchema,\n execute: withToken(issues.listLabelsCore, ctx),\n },\n {\n name: 'addLabels',\n writeTool: 'addLabels',\n description: issues.addLabelsDescription,\n inputSchema: issues.addLabelsInputSchema,\n execute: withToken(issues.addLabelsCore, ctx),\n },\n {\n name: 'removeLabel',\n writeTool: 'removeLabel',\n description: issues.removeLabelDescription,\n inputSchema: issues.removeLabelInputSchema,\n execute: withToken(issues.removeLabelCore, ctx),\n },\n {\n name: 'searchCode',\n description: search.searchCodeDescription,\n inputSchema: search.searchCodeInputSchema,\n execute: withToken(search.searchCodeCore, ctx),\n },\n {\n name: 'searchRepositories',\n description: search.searchRepositoriesDescription,\n inputSchema: search.searchRepositoriesInputSchema,\n execute: withToken(search.searchRepositoriesCore, ctx),\n },\n {\n name: 'listCommits',\n description: commits.listCommitsDescription,\n inputSchema: commits.listCommitsInputSchema,\n execute: withToken(commits.listCommitsCore, ctx),\n },\n {\n name: 'getCommit',\n description: commits.getCommitDescription,\n inputSchema: commits.getCommitInputSchema,\n execute: withToken(commits.getCommitCore, ctx),\n toModelOutput: modelOutputAdapter(getCommitToModelOutput),\n },\n {\n name: 'getBlame',\n description: commits.getBlameDescription,\n inputSchema: commits.getBlameInputSchema,\n execute: withToken(commits.getBlameCore, ctx),\n },\n {\n name: 'listGists',\n description: gists.listGistsDescription,\n inputSchema: gists.listGistsInputSchema,\n execute: withToken(gists.listGistsCore, ctx),\n },\n {\n name: 'getGist',\n description: gists.getGistDescription,\n inputSchema: gists.getGistInputSchema,\n execute: withToken(gists.getGistCore, ctx),\n },\n {\n name: 'listGistComments',\n description: gists.listGistCommentsDescription,\n inputSchema: gists.listGistCommentsInputSchema,\n execute: withToken(gists.listGistCommentsCore, ctx),\n },\n {\n name: 'createGist',\n writeTool: 'createGist',\n description: gists.createGistDescription,\n inputSchema: gists.createGistInputSchema,\n execute: withToken(gists.createGistCore, ctx),\n },\n {\n name: 'updateGist',\n writeTool: 'updateGist',\n description: gists.updateGistDescription,\n inputSchema: gists.updateGistInputSchema,\n execute: withToken(gists.updateGistCore, ctx),\n },\n {\n name: 'deleteGist',\n writeTool: 'deleteGist',\n description: gists.deleteGistDescription,\n inputSchema: gists.deleteGistInputSchema,\n execute: withToken(gists.deleteGistCore, ctx),\n },\n {\n name: 'createGistComment',\n writeTool: 'createGistComment',\n description: gists.createGistCommentDescription,\n inputSchema: gists.createGistCommentInputSchema,\n execute: withToken(gists.createGistCommentCore, ctx),\n },\n {\n name: 'listWorkflows',\n description: workflows.listWorkflowsDescription,\n inputSchema: workflows.listWorkflowsInputSchema,\n execute: withToken(workflows.listWorkflowsCore, ctx),\n },\n {\n name: 'listWorkflowRuns',\n description: workflows.listWorkflowRunsDescription,\n inputSchema: workflows.listWorkflowRunsInputSchema,\n execute: withToken(workflows.listWorkflowRunsCore, ctx),\n },\n {\n name: 'getWorkflowRun',\n description: workflows.getWorkflowRunDescription,\n inputSchema: workflows.getWorkflowRunInputSchema,\n execute: withToken(workflows.getWorkflowRunCore, ctx),\n },\n {\n name: 'listWorkflowJobs',\n description: workflows.listWorkflowJobsDescription,\n inputSchema: workflows.listWorkflowJobsInputSchema,\n execute: withToken(workflows.listWorkflowJobsCore, ctx),\n },\n {\n name: 'triggerWorkflow',\n writeTool: 'triggerWorkflow',\n description: workflows.triggerWorkflowDescription,\n inputSchema: workflows.triggerWorkflowInputSchema,\n execute: withToken(workflows.triggerWorkflowCore, ctx),\n },\n {\n name: 'cancelWorkflowRun',\n writeTool: 'cancelWorkflowRun',\n description: workflows.cancelWorkflowRunDescription,\n inputSchema: workflows.cancelWorkflowRunInputSchema,\n execute: withToken(workflows.cancelWorkflowRunCore, ctx),\n },\n {\n name: 'rerunWorkflowRun',\n writeTool: 'rerunWorkflowRun',\n description: workflows.rerunWorkflowRunDescription,\n inputSchema: workflows.rerunWorkflowRunInputSchema,\n execute: withToken(workflows.rerunWorkflowRunCore, ctx),\n },\n ]\n}\n","import { resolveGithubToken } from '../core/token'\nimport { createToolRegistry, type GithubToolName, type ToolBuildContext } from './registry'\n\nasync function executeGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n 'use step'\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n return entry.execute(input)\n}\n\nexport async function runGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n // Resolve the token before entering the step so only a serializable string crosses the boundary.\n const token = await resolveGithubToken(ctx.token)\n return executeGithubToolStep(name, input, { ...ctx, token })\n}\n","import type { ToolDefinition } from 'eve/tools'\nimport { resolvePresetTools, type CombinedPresetToolNames, type GithubToolPreset, type PresetToolName } from '../core/presets'\nimport { createGithubTokenResolver } from '../core/token'\nimport { mapEveApprovalValue, resolveEveApproval } from './approval'\nimport { getEveTools } from './load-eve'\nimport { ALL_GITHUB_TOOL_NAMES, createToolRegistry, type GithubToolName, type ToolBuildContext } from './registry'\nimport { runGithubToolStep } from './steps'\nimport type { EveGithubToolsOptions, EveToolFactoryOptions, EveToolOverrides } from './types'\n\ntype BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & { preset?: EveGithubToolsOptions['preset'] })\ntype EveToolMap = Partial<Record<GithubToolName, ToolDefinition>>\n\nfunction applyOverrides<T extends ToolDefinition>(\n tool: T,\n name: GithubToolName,\n overrides?: EveToolOverrides,\n): T {\n const override = overrides?.[name]\n if (!override) return tool\n return {\n ...tool,\n ...override.description !== undefined && { description: override.description },\n ...override.approval !== undefined && { approval: mapEveApprovalValue(override.approval) },\n ...override.toModelOutput !== undefined && { toModelOutput: override.toModelOutput },\n ...override.outputSchema !== undefined && { outputSchema: override.outputSchema },\n }\n}\n\nexport function buildEveToolDefinition(\n name: GithubToolName,\n options: BuildOptions = {},\n): ToolDefinition {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const entry = createToolRegistry(ctx).find(tool => tool.name === name)\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n\n const tool = defineTool({\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(entry.writeTool && {\n approval: resolveEveApproval(entry.writeTool, options.requireApproval),\n }),\n ...(entry.toModelOutput && { toModelOutput: entry.toModelOutput }),\n execute: async (input) => runGithubToolStep(name, input as Record<string, unknown>, ctx),\n })\n\n return applyOverrides(tool, name, options.overrides)\n}\n\nexport function buildEveToolMap(options: EveGithubToolsOptions = {}): EveToolMap {\n const { defineTool } = getEveTools()\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n }\n\n const allowed = options.preset ? resolvePresetTools(options.preset) : null\n const registry = createToolRegistry(ctx)\n const tools = {} as EveToolMap\n\n for (const entry of registry) {\n if (allowed && !allowed.has(entry.name)) continue\n\n const tool = defineTool({\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(entry.writeTool && {\n approval: resolveEveApproval(entry.writeTool, options.requireApproval),\n }),\n ...(entry.toModelOutput && { toModelOutput: entry.toModelOutput }),\n execute: async (input) => runGithubToolStep(entry.name, input as Record<string, unknown>, ctx),\n })\n\n tools[entry.name] = applyOverrides(tool, entry.name, options.overrides)\n }\n\n return tools\n}\n\nexport function createEveGithubToolsDynamic(options: EveGithubToolsOptions = {}) {\n const { defineDynamic } = getEveTools()\n\n // TODO(eve-auth): resolve token from ctx.getToken('github') when eve-managed auth lands.\n return defineDynamic({\n events: {\n 'session.started': async () => buildEveToolMap(options),\n },\n })\n}\n\nexport function listResolvedEveToolNames(options?: { preset?: undefined }): GithubToolName[]\nexport function listResolvedEveToolNames<P extends GithubToolPreset>(options: { preset: P }): PresetToolName<P>[]\nexport function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: { preset: P }): CombinedPresetToolNames<P>[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset'> = {}): GithubToolName[] {\n if (!options.preset) return [...ALL_GITHUB_TOOL_NAMES]\n return ALL_GITHUB_TOOL_NAMES.filter(name => resolvePresetTools(options.preset!)!.has(name))\n}\n","import { buildEveToolDefinition, createEveGithubToolsDynamic } from './eve/build'\nimport type { EveToolFactoryOptions } from './eve/types'\n\nexport { buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, listResolvedEveToolNames } from './eve/build'\nexport type { EveApprovalConfig, EveApprovalValue, EveGithubToolsOptions, EveToolFactoryOptions, EveToolOverrides } from './eve/types'\nexport type { GithubToolPreset, PresetToolName, CombinedPresetToolNames } from './core/presets'\nexport type { GithubToolName } from './core/tool-names'\nexport type { GithubWriteToolName } from './core/write-tools'\nexport type { AllGithubTools, GithubToolsForPreset, PickGithubTools } from './core/tool-types'\nexport type { CommitIdentity } from './types'\nexport { PRESET_TOOLS } from './core/presets'\nexport { GITHUB_TOOL_NAMES } from './core/tool-names'\nexport { GITHUB_WRITE_TOOLS } from './core/write-tools'\nexport { MISSING_EVE_MESSAGE } from './eve/load-eve'\n\n/**\n * Register all GitHub tools (or a preset subset) as eve dynamic capabilities.\n *\n * Export as the default from `agent/tools/github.ts`:\n *\n * ```ts\n * import { createGithubTools } from '@github-tools/sdk/eve'\n * export default createGithubTools({ preset: 'code-review' })\n * ```\n */\nexport function createGithubTools(options?: import('./eve/types').EveGithubToolsOptions) {\n return createEveGithubToolsDynamic(options ?? {})\n}\n\nfunction factory(name: Parameters<typeof buildEveToolDefinition>[0]) {\n return (options?: EveToolFactoryOptions) => buildEveToolDefinition(name, options)\n}\n\n/** Get information about a GitHub repository including description, stars, forks, language, and default branch. */\nexport const getRepository = factory('getRepository')\n/** List branches in a GitHub repository. */\nexport const listBranches = factory('listBranches')\n/** Get the content of a file from a GitHub repository. */\nexport const getFileContent = factory('getFileContent')\n/** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */\nexport const createBranch = factory('createBranch')\n/** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */\nexport const forkRepository = factory('forkRepository')\n/** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */\nexport const createRepository = factory('createRepository')\n/** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */\nexport const createOrUpdateFile = factory('createOrUpdateFile')\n/** List pull requests for a GitHub repository. */\nexport const listPullRequests = factory('listPullRequests')\n/** Get detailed information about a specific pull request. */\nexport const getPullRequest = factory('getPullRequest')\n/** Create a new pull request in a GitHub repository. Requires approval by default. */\nexport const createPullRequest = factory('createPullRequest')\n/** Merge a pull request. Requires approval by default. */\nexport const mergePullRequest = factory('mergePullRequest')\n/** Add a comment to a pull request. Requires approval by default. */\nexport const addPullRequestComment = factory('addPullRequestComment')\n/** List files changed in a pull request, including diff status and patch content. */\nexport const listPullRequestFiles = factory('listPullRequestFiles')\n/** List reviews on a pull request (approvals, change requests, and comments). */\nexport const listPullRequestReviews = factory('listPullRequestReviews')\n/** Submit a pull request review with optional inline comments. Requires approval by default. */\nexport const createPullRequestReview = factory('createPullRequestReview')\n/** List issues for a GitHub repository (excludes pull requests). */\nexport const listIssues = factory('listIssues')\n/** Get detailed information about a specific issue. */\nexport const getIssue = factory('getIssue')\n/** Create a new issue in a GitHub repository. Requires approval by default. */\nexport const createIssue = factory('createIssue')\n/** Add a comment to a GitHub issue. Requires approval by default. */\nexport const addIssueComment = factory('addIssueComment')\n/** Close an open GitHub issue. Requires approval by default. */\nexport const closeIssue = factory('closeIssue')\n/** List labels available in a GitHub repository. */\nexport const listLabels = factory('listLabels')\n/** Add labels to an issue or pull request. Requires approval by default. */\nexport const addLabels = factory('addLabels')\n/** Remove a label from an issue or pull request. Requires approval by default. */\nexport const removeLabel = factory('removeLabel')\n/** Search for code in GitHub repositories. Use qualifiers like \"repo:owner/name\" to scope the search. */\nexport const searchCode = factory('searchCode')\n/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */\nexport const searchRepositories = factory('searchRepositories')\n/** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */\nexport const listCommits = factory('listCommits')\n/** Get detailed information about a specific commit, including files changed with additions and deletions. */\nexport const getCommit = factory('getCommit')\n/** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). */\nexport const getBlame = factory('getBlame')\n/** List gists for the authenticated user or a specific user. */\nexport const listGists = factory('listGists')\n/** Get a gist by ID, including file contents. */\nexport const getGist = factory('getGist')\n/** List comments on a gist. */\nexport const listGistComments = factory('listGistComments')\n/** Create a new gist with one or more files. Requires approval by default. */\nexport const createGist = factory('createGist')\n/** Update an existing gist. Requires approval by default. */\nexport const updateGist = factory('updateGist')\n/** Delete a gist permanently. Requires approval by default. */\nexport const deleteGist = factory('deleteGist')\n/** Add a comment to a gist. Requires approval by default. */\nexport const createGistComment = factory('createGistComment')\n/** List GitHub Actions workflows in a repository. */\nexport const listWorkflows = factory('listWorkflows')\n/** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */\nexport const listWorkflowRuns = factory('listWorkflowRuns')\n/** Get details of a specific workflow run including status, timing, and trigger info. */\nexport const getWorkflowRun = factory('getWorkflowRun')\n/** List jobs for a workflow run, including step-level status and timing. */\nexport const listWorkflowJobs = factory('listWorkflowJobs')\n/** Trigger a workflow via workflow_dispatch event. Requires approval by default. */\nexport const triggerWorkflow = factory('triggerWorkflow')\n/** Cancel an in-progress workflow run. Requires approval by default. */\nexport const cancelWorkflowRun = factory('cancelWorkflowRun')\n/** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */\nexport const rerunWorkflowRun = factory('rerunWorkflowRun')\n"],"mappings":";;;AAEA,MAAM,UAAU,cAAc,OAAO,KAAK,IAAI;AAE9C,MAAM,sBACJ;AAKF,IAAI;AACJ,IAAI;AAEJ,SAAgB,cAA8B;AAC5C,KAAI,eAAgB,QAAO;AAC3B,KAAI;AACF,mBAAiB,QAAQ,YAAY;AACrC,SAAO;SACD;AACN,QAAM,IAAI,MAAM,oBAAoB;;;AAIxC,SAAgB,wBAA2C;AACzD,KAAI,kBAAmB,QAAO;AAC9B,KAAI;AACF,sBAAoB,QAAQ,qBAAqB;AACjD,SAAO;SACD;AACN,QAAM,IAAI,MAAM,oBAAoB;;;;;ACxBxC,SAAgB,oBAAoB,OAAmC;AACrE,KAAI,OAAO,UAAU,WAAY,QAAO;CAExC,MAAM,EAAE,QAAQ,OAAO,SAAS,uBAAuB;AAEvD,KAAI,UAAU,QAAQ,UAAU,SAAU,QAAO,QAAQ;AACzD,KAAI,UAAU,SAAS,UAAU,QAAS,QAAO,OAAO;AACxD,KAAI,UAAU,OAAQ,QAAO,MAAM;AAEnC,QAAO,QAAQ;;AAGjB,SAAgB,mBACd,UACA,QACsB;AACtB,KAAI,WAAW,KAAA,EAAW,QAAO,uBAAuB,CAAC,QAAQ;AACjE,KAAI,WAAW,KAAM,QAAO,uBAAuB,CAAC,QAAQ;AAC5D,KAAI,WAAW,MAAO,QAAO,uBAAuB,CAAC,OAAO;CAE5D,MAAM,QAAQ,OAAO;AACrB,KAAI,UAAU,KAAA,EAAW,QAAO,uBAAuB,CAAC,QAAQ;AAEhE,QAAO,oBAAoB,MAAM;;;;ACSnC,SAAS,UACP,MACA,KACA,OACA;AACA,QAAO,OAAO,UAAmC,KAAK;EAAE,OAAO,MAAM,mBAAmB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QAAQ,cAAc;;AAEjD,MAAa,YAAY,QAAQ,YAAY;;AAE7C,MAAa,WAAW,QAAQ,WAAW;;AAE3C,MAAa,YAAY,QAAQ,YAAY;;AAE7C,MAAa,UAAU,QAAQ,UAAU;;AAEzC,MAAa,mBAAmB,QAAQ,mBAAmB;;AAE3D,MAAa,aAAa,QAAQ,aAAa;;AAE/C,MAAa,aAAa,QAAQ,aAAa;;AAE/C,MAAa,aAAa,QAAQ,aAAa;;AAE/C,MAAa,oBAAoB,QAAQ,oBAAoB;;AAE7D,MAAa,gBAAgB,QAAQ,gBAAgB;;AAErD,MAAa,mBAAmB,QAAQ,mBAAmB;;AAE3D,MAAa,iBAAiB,QAAQ,iBAAiB;;AAEvD,MAAa,mBAAmB,QAAQ,mBAAmB;;AAE3D,MAAa,kBAAkB,QAAQ,kBAAkB;;AAEzD,MAAa,oBAAoB,QAAQ,oBAAoB;;AAE7D,MAAa,mBAAmB,QAAQ,mBAAmB"}
@@ -1,220 +0,0 @@
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
- import { ToolLoopAgent, ToolLoopAgentSettings, ToolSet } from "ai";
3
- import { z } from "zod";
4
- import { Octokit } from "octokit";
5
-
6
- //#region src/client.d.ts
7
- declare function createOctokit(token: string): Octokit;
8
- //#endregion
9
- //#region src/tools/repository.d.ts
10
- /** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
11
- declare const getRepository: (token: GithubTokenInput) => GithubTool;
12
- /** List branches in a GitHub repository. */
13
- declare const listBranches: (token: GithubTokenInput) => GithubTool;
14
- /** Get the content of a file from a GitHub repository. */
15
- declare const getFileContent: (token: GithubTokenInput) => GithubTool;
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: GithubTokenInput, {
18
- needsApproval
19
- }?: ToolOptions) => GithubTool;
20
- /** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */
21
- declare const forkRepository: (token: GithubTokenInput, {
22
- needsApproval
23
- }?: ToolOptions) => GithubTool;
24
- /** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */
25
- declare const createRepository: (token: GithubTokenInput, {
26
- needsApproval
27
- }?: ToolOptions) => GithubTool;
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: GithubTokenInput, {
30
- needsApproval,
31
- author,
32
- committer,
33
- coAuthors
34
- }?: CommitToolOptions) => GithubTool;
35
- //#endregion
36
- //#region src/tools/pull-requests.d.ts
37
- type MergeToolOptions = ToolOptions & {
38
- coAuthors?: CommitIdentity[];
39
- };
40
- /** List pull requests for a GitHub repository. */
41
- declare const listPullRequests: (token: GithubTokenInput) => GithubTool;
42
- /** Get detailed information about a specific pull request. */
43
- declare const getPullRequest: (token: GithubTokenInput) => GithubTool;
44
- /** Create a new pull request in a GitHub repository. Requires approval by default. */
45
- declare const createPullRequest: (token: GithubTokenInput, {
46
- needsApproval
47
- }?: ToolOptions) => GithubTool;
48
- /** Merge a pull request. Requires approval by default. */
49
- declare const mergePullRequest: (token: GithubTokenInput, {
50
- needsApproval,
51
- coAuthors
52
- }?: MergeToolOptions) => GithubTool;
53
- /** Add a comment to a pull request. Requires approval by default. */
54
- declare const addPullRequestComment: (token: GithubTokenInput, {
55
- needsApproval
56
- }?: ToolOptions) => GithubTool;
57
- /** List files changed in a pull request, including diff status and patch content. */
58
- declare const listPullRequestFiles: (token: GithubTokenInput) => GithubTool;
59
- /** List reviews on a pull request (approvals, change requests, and comments). */
60
- declare const listPullRequestReviews: (token: GithubTokenInput) => GithubTool;
61
- /** Submit a pull request review with optional inline comments. Requires approval by default. */
62
- declare const createPullRequestReview: (token: GithubTokenInput, {
63
- needsApproval
64
- }?: ToolOptions) => GithubTool;
65
- //#endregion
66
- //#region src/tools/issues.d.ts
67
- /** List issues for a GitHub repository (excludes pull requests). */
68
- declare const listIssues: (token: GithubTokenInput) => GithubTool;
69
- /** Get detailed information about a specific issue. */
70
- declare const getIssue: (token: GithubTokenInput) => GithubTool;
71
- /** Create a new issue in a GitHub repository. Requires approval by default. */
72
- declare const createIssue: (token: GithubTokenInput, {
73
- needsApproval
74
- }?: ToolOptions) => GithubTool;
75
- /** Add a comment to a GitHub issue. Requires approval by default. */
76
- declare const addIssueComment: (token: GithubTokenInput, {
77
- needsApproval
78
- }?: ToolOptions) => GithubTool;
79
- /** Close an open GitHub issue. Requires approval by default. */
80
- declare const closeIssue: (token: GithubTokenInput, {
81
- needsApproval
82
- }?: ToolOptions) => GithubTool;
83
- /** List labels available in a GitHub repository. */
84
- declare const listLabels: (token: GithubTokenInput) => GithubTool;
85
- /** Add labels to an issue or pull request. Requires approval by default. */
86
- declare const addLabels: (token: GithubTokenInput, {
87
- needsApproval
88
- }?: ToolOptions) => GithubTool;
89
- /** Remove a label from an issue or pull request. Requires approval by default. */
90
- declare const removeLabel: (token: GithubTokenInput, {
91
- needsApproval
92
- }?: ToolOptions) => GithubTool;
93
- //#endregion
94
- //#region src/tools/search.d.ts
95
- /** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
96
- declare const searchCode: (token: GithubTokenInput) => GithubTool;
97
- /** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
98
- declare const searchRepositories: (token: GithubTokenInput) => GithubTool;
99
- //#endregion
100
- //#region src/tools/commits.d.ts
101
- /** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
102
- declare const listCommits: (token: GithubTokenInput) => GithubTool;
103
- /** Get detailed information about a specific commit, including files changed with additions and deletions. */
104
- declare const getCommit: (token: GithubTokenInput) => GithubTool;
105
- /** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). */
106
- declare const getBlame: (token: GithubTokenInput) => GithubTool;
107
- //#endregion
108
- //#region src/tools/gists.d.ts
109
- /** List gists for the authenticated user or a specific user. */
110
- declare const listGists: (token: GithubTokenInput) => GithubTool;
111
- /** Get a gist by ID, including file contents. */
112
- declare const getGist: (token: GithubTokenInput) => GithubTool;
113
- /** List comments on a gist. */
114
- declare const listGistComments: (token: GithubTokenInput) => GithubTool;
115
- /** Create a new gist with one or more files. Requires approval by default. */
116
- declare const createGist: (token: GithubTokenInput, {
117
- needsApproval
118
- }?: ToolOptions) => GithubTool;
119
- /** Update an existing gist. Requires approval by default. */
120
- declare const updateGist: (token: GithubTokenInput, {
121
- needsApproval
122
- }?: ToolOptions) => GithubTool;
123
- /** Delete a gist permanently. Requires approval by default. */
124
- declare const deleteGist: (token: GithubTokenInput, {
125
- needsApproval
126
- }?: ToolOptions) => GithubTool;
127
- /** Add a comment to a gist. Requires approval by default. */
128
- declare const createGistComment: (token: GithubTokenInput, {
129
- needsApproval
130
- }?: ToolOptions) => GithubTool;
131
- //#endregion
132
- //#region src/tools/workflows.d.ts
133
- /** List GitHub Actions workflows in a repository. */
134
- declare const listWorkflows: (token: GithubTokenInput) => GithubTool;
135
- /** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */
136
- declare const listWorkflowRuns: (token: GithubTokenInput) => GithubTool;
137
- /** Get details of a specific workflow run including status, timing, and trigger info. */
138
- declare const getWorkflowRun: (token: GithubTokenInput) => GithubTool;
139
- /** List jobs for a workflow run, including step-level status and timing. */
140
- declare const listWorkflowJobs: (token: GithubTokenInput) => GithubTool;
141
- /** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
142
- declare const triggerWorkflow: (token: GithubTokenInput, {
143
- needsApproval
144
- }?: ToolOptions) => GithubTool;
145
- /** Cancel an in-progress workflow run. Requires approval by default. */
146
- declare const cancelWorkflowRun: (token: GithubTokenInput, {
147
- needsApproval
148
- }?: ToolOptions) => GithubTool;
149
- /** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
150
- declare const rerunWorkflowRun: (token: GithubTokenInput, {
151
- needsApproval
152
- }?: ToolOptions) => GithubTool;
153
- //#endregion
154
- //#region src/agents.d.ts
155
- type AgentOptions = Omit<ToolLoopAgentSettings<ToolSet>, 'model' | 'tools' | 'instructions'>;
156
- type CreateGithubAgentOptions = AgentOptions & GithubToolsBaseOptions & {
157
- model: ToolLoopAgentSettings<ToolSet>['model'];
158
- /**
159
- * Restrict tools and system prompt to a predefined preset.
160
- *
161
- * Selects a subset of tools and, when a single preset is passed,
162
- * sets a matching system prompt. Combine presets with an array to merge tool sets.
163
- *
164
- * @see {@link GithubToolPreset} for available presets and included tools.
165
- */
166
- preset?: GithubToolPreset | GithubToolPreset[];
167
- /**
168
- * Fully replace the default system prompt.
169
- * When set, `preset` system prompts and `additionalInstructions` are ignored.
170
- */
171
- instructions?: string;
172
- /**
173
- * Append text to the preset-specific (or default) system prompt.
174
- * Ignored when `instructions` is set.
175
- */
176
- additionalInstructions?: string;
177
- };
178
- declare function createGithubAgent(options: CreateGithubAgentOptions & {
179
- preset?: undefined;
180
- }): ToolLoopAgent<never, AllGithubTools>;
181
- declare function createGithubAgent<P extends GithubToolPreset>(options: CreateGithubAgentOptions & {
182
- preset: P;
183
- }): ToolLoopAgent<never, Pick<AllGithubTools, PresetToolName<P>>>;
184
- declare function createGithubAgent<P extends readonly GithubToolPreset[]>(options: CreateGithubAgentOptions & {
185
- preset: P;
186
- }): ToolLoopAgent<never, Pick<AllGithubTools, CombinedPresetToolNames<P>>>;
187
- //#endregion
188
- //#region src/index.d.ts
189
- type GithubToolsOptions = GithubToolsBaseOptions & {
190
- /**
191
- * Restrict the returned tools to a predefined preset.
192
- * Omit to get all tools.
193
- *
194
- * @see {@link GithubToolPreset} for available presets and included tools.
195
- *
196
- * @example
197
- * ```ts
198
- * // Only code-review tools
199
- * createGithubTools({ token, preset: 'code-review' })
200
- *
201
- * // Combine presets
202
- * createGithubTools({ token, preset: ['code-review', 'issue-triage'] })
203
- * ```
204
- */
205
- preset?: GithubToolPreset | GithubToolPreset[];
206
- };
207
- declare function createGithubTools(options?: GithubToolsBaseOptions & {
208
- preset?: undefined;
209
- }): AllGithubTools;
210
- declare function createGithubTools<P extends GithubToolPreset>(options: GithubToolsBaseOptions & {
211
- preset: P;
212
- }): Pick<AllGithubTools, PresetToolName<P>>;
213
- declare function createGithubTools<P extends readonly GithubToolPreset[]>(options: GithubToolsBaseOptions & {
214
- preset: P;
215
- }): Pick<AllGithubTools, CombinedPresetToolNames<P>>;
216
- declare function createGithubTools(options?: GithubToolsOptions): AllGithubTools | Pick<AllGithubTools, GithubToolName>;
217
- type GithubTools = AllGithubTools & ToolSet;
218
- //#endregion
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-SZCaP-y9.d.mts.map
@@ -1 +0,0 @@
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,gB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,GAAqB,sBAAA;;ARajC;;;;;;;;;AAaA;;;;;EQVE,MAAA,GAAS,gBAAA,GAAmB,gBAAA;AAAA;AAAA,iBAGd,iBAAA,CAAkB,OAAA,GAAU,sBAAA;EAA2B,MAAA;AAAA,IAAuB,cAAA;AAAA,iBAC9E,iBAAA,WAA4B,gBAAA,CAAA,CAC1C,OAAA,EAAS,sBAAA;EAA2B,MAAA,EAAQ,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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tool-types-C0kszIwd.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"],"mappings":";;;;;;;;cAIa,iBAAA;EAqFH,4JAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;qCAEgB;EAAA,mDAAU;EAAA;;iCCN1B;EAAA,iCAAA;EAAA;;;qCAEE;EAAA;mDAA4C;EAAA,yCAG9B;EAAA,+CAAW;EAAA,2CAAkD;EAAA,+CAA9B;EAAA,6CAAO;EAAA,iDAA3B;EAAA;;KDCzB,cAAA,UAAwB,iBAAA,cAA+B,iBAAA;;;;;;AAvFnE;;cCGa,YAAA;EDkFH;;;;;;;;;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KCFE,gBAAA,gBAAgC,YAAA;;KAGhC,cAAA,WAAyB,gBAAA,IAAoB,OAA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