@github-tools/sdk 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -9
- package/dist/eve.d.mts +167 -0
- package/dist/eve.d.mts.map +1 -0
- package/dist/eve.mjs +522 -0
- package/dist/eve.mjs.map +1 -0
- package/dist/index-BRUYe5q0.d.mts +220 -0
- package/dist/index-BRUYe5q0.d.mts.map +1 -0
- package/dist/index.d.mts +3 -777
- package/dist/index.mjs +3 -220
- package/dist/src-BgnkKMD7.mjs +812 -0
- package/dist/src-BgnkKMD7.mjs.map +1 -0
- package/dist/tool-types-CuirBEc8.d.mts +244 -0
- package/dist/tool-types-CuirBEc8.d.mts.map +1 -0
- package/dist/workflow.d.mts +66 -726
- package/dist/workflow.d.mts.map +1 -1
- package/dist/workflow.mjs +20 -79
- package/dist/workflow.mjs.map +1 -1
- package/dist/write-tools-vzlewWo5.mjs +1823 -0
- package/dist/write-tools-vzlewWo5.mjs.map +1 -0
- package/package.json +30 -11
- package/dist/agents-C6nqZiYp.d.mts +0 -781
- package/dist/agents-C6nqZiYp.d.mts.map +0 -1
- package/dist/agents-D9aKsd_7.mjs +0 -1649
- package/dist/agents-D9aKsd_7.mjs.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ GitHub tools for the [AI SDK](https://ai-sdk.dev) — wrap GitHub's REST API as
|
|
|
17
17
|
pnpm add @github-tools/sdk
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
`ai` and `zod` are peer dependencies:
|
|
20
|
+
`ai` and `zod` are peer dependencies (`ai` v6 or v7; the eve subpath requires v7):
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
23
|
pnpm add ai zod
|
|
@@ -141,6 +141,31 @@ Supported override properties:
|
|
|
141
141
|
|
|
142
142
|
Core properties (`execute`, `inputSchema`, `outputSchema`) cannot be overridden.
|
|
143
143
|
|
|
144
|
+
## Commit Attribution
|
|
145
|
+
|
|
146
|
+
Control how commits are attributed when using `createOrUpdateFile` or `mergePullRequest`:
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
import { createGithubTools } from '@github-tools/sdk'
|
|
150
|
+
|
|
151
|
+
const tools = createGithubTools({
|
|
152
|
+
token,
|
|
153
|
+
coAuthors: [
|
|
154
|
+
{ name: 'my-bot[bot]', email: '12345+my-bot[bot]@users.noreply.github.com' }
|
|
155
|
+
]
|
|
156
|
+
})
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
This appends `Co-authored-by` trailers to commit messages, crediting additional contributors.
|
|
160
|
+
|
|
161
|
+
| Option | Type | Description |
|
|
162
|
+
|--------|------|-------------|
|
|
163
|
+
| `author` | `{ name: string, email: string }` | The person who wrote the code. Falls back to the authenticated user. |
|
|
164
|
+
| `committer` | `{ name: string, email: string }` | The person who applied the commit. Falls back to the authenticated user. |
|
|
165
|
+
| `coAuthors` | `{ name: string, email: string }[]` | Additional contributors added as `Co-authored-by` trailers. |
|
|
166
|
+
|
|
167
|
+
Commits made via the GitHub API are **automatically signed** by GitHub's web-flow key, passing branch protection rules that require signed commits.
|
|
168
|
+
|
|
144
169
|
## Tool Selection with toolpick
|
|
145
170
|
|
|
146
171
|
With dozens of tools, context window usage adds up. [toolpick](https://github.com/pontusab/toolpick) selects only the most relevant tools per step so the model sees what it needs:
|
|
@@ -170,7 +195,7 @@ Each step, toolpick picks the best ~5 tools using keyword + semantic search. All
|
|
|
170
195
|
|
|
171
196
|
All tools include `"use step"` directives with named, module-level step functions, making them natively compatible with the Vercel Workflow SDK. Each tool execution runs as a properly registered durable step with full Node.js access in the workflow sandbox.
|
|
172
197
|
|
|
173
|
-
Use `
|
|
198
|
+
Use `WorkflowAgent` via the `@github-tools/sdk/workflow` subpath to make every LLM call and tool execution a retryable, crash-safe step:
|
|
174
199
|
|
|
175
200
|
```ts
|
|
176
201
|
import { createDurableGithubAgent } from '@github-tools/sdk/workflow'
|
|
@@ -182,11 +207,80 @@ const agent = createDurableGithubAgent({
|
|
|
182
207
|
})
|
|
183
208
|
```
|
|
184
209
|
|
|
185
|
-
All presets work with `createDurableGithubAgent`.
|
|
210
|
+
All presets work with `createDurableGithubAgent`. Write tools honor `requireApproval` via `needsApproval` — the workflow pauses until the user approves or denies.
|
|
186
211
|
|
|
187
|
-
>
|
|
212
|
+
> `workflow` and `@ai-sdk/workflow` are optional peer dependencies — install them only when using the workflow subpath.
|
|
188
213
|
|
|
189
|
-
|
|
214
|
+
## eve
|
|
215
|
+
|
|
216
|
+
[eve](https://eve.dev) is Vercel's filesystem-first agent framework. The `@github-tools/sdk/eve` subpath registers all GitHub tools via `defineDynamic` — one file, zero CLI.
|
|
217
|
+
|
|
218
|
+
```sh
|
|
219
|
+
pnpm add @github-tools/sdk eve ai zod
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
`eve` v0.19+ requires **`ai` v7** as a peer dependency.
|
|
223
|
+
|
|
224
|
+
```ts
|
|
225
|
+
// agent/tools/github.ts
|
|
226
|
+
import { createGithubTools } from '@github-tools/sdk/eve'
|
|
227
|
+
|
|
228
|
+
export default createGithubTools({
|
|
229
|
+
preset: ['code-review', 'issue-triage'],
|
|
230
|
+
requireApproval: {
|
|
231
|
+
mergePullRequest: true,
|
|
232
|
+
createIssue: 'once',
|
|
233
|
+
addPullRequestComment: false,
|
|
234
|
+
createOrUpdateFile: ({ toolInput }) => toolInput?.owner !== 'vercel-labs',
|
|
235
|
+
},
|
|
236
|
+
})
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
Dynamic tools are named by their **bare map key** — the model sees `listPullRequests`, `createIssue`, and so on (same names as the AI SDK package). There is no automatic file-slug prefix when returning a tool map from `defineDynamic`.
|
|
240
|
+
|
|
241
|
+
### Approval (eve)
|
|
242
|
+
|
|
243
|
+
| Value | Maps to | Behavior |
|
|
244
|
+
|---|---|---|
|
|
245
|
+
| `true` / `'always'` | `always()` | Require approval on every call |
|
|
246
|
+
| `false` / `'never'` | `never()` | Skip approval |
|
|
247
|
+
| `'once'` | `once()` | Approve once per session, then auto-allow |
|
|
248
|
+
| predicate | custom `Approval` | Input-dependent gate; booleans map to `user-approval` / `not-applicable` |
|
|
249
|
+
| `always()` / `once()` / `never()` | passthrough | Use eve helpers directly |
|
|
250
|
+
|
|
251
|
+
Default (no `requireApproval`): all write tools → `always()`. Unlisted write tools keep the `always()` fail-safe default.
|
|
252
|
+
|
|
253
|
+
Unlike the Workflow SDK subpath, eve approval **works durably** — gated tools pause the session until a human approves.
|
|
254
|
+
|
|
255
|
+
### Cherry-picking (one tool per file)
|
|
256
|
+
|
|
257
|
+
```ts
|
|
258
|
+
// agent/tools/list_pull_requests.ts
|
|
259
|
+
import { listPullRequests } from '@github-tools/sdk/eve'
|
|
260
|
+
|
|
261
|
+
export default listPullRequests()
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
### Idempotency
|
|
265
|
+
|
|
266
|
+
eve replays completed steps but re-runs steps interrupted mid-execution. Write tools vary:
|
|
267
|
+
|
|
268
|
+
| Tool | Idempotency |
|
|
269
|
+
|---|---|
|
|
270
|
+
| `createOrUpdateFile` | Natural when content + `sha` unchanged (skips no-op updates) |
|
|
271
|
+
| `closeIssue` | Natural when already closed |
|
|
272
|
+
| `createBranch` | Natural when branch exists at same SHA |
|
|
273
|
+
| `addIssueComment`, `createIssue`, `mergePullRequest`, … | **Not** idempotent — each call creates new side effects |
|
|
274
|
+
|
|
275
|
+
Gate non-idempotent writes behind `always()` or `once()` where replay safety matters.
|
|
276
|
+
|
|
277
|
+
### Roadmap
|
|
278
|
+
|
|
279
|
+
`// TODO(eve-auth)`: per-session GitHub tokens via eve connections (`auth: 'eve'`). For now, pass `token` explicitly or set `GITHUB_TOKEN`.
|
|
280
|
+
|
|
281
|
+
> `eve` is an optional peer dependency — install it only when using the `/eve` subpath.
|
|
282
|
+
|
|
283
|
+
See [`examples/eve-agent`](../../examples/eve-agent) for a minimal agent.
|
|
190
284
|
|
|
191
285
|
## Available Tools
|
|
192
286
|
|
|
@@ -411,11 +505,9 @@ async function agentTurn(prompt: string) {
|
|
|
411
505
|
}
|
|
412
506
|
```
|
|
413
507
|
|
|
414
|
-
> See [`examples/pr-review-
|
|
415
|
-
|
|
416
|
-
All presets (`code-review`, `issue-triage`, `ci-ops`, `repo-explorer`, `maintainer`) work with `createDurableGithubAgent`. Options mirror `createGithubAgent` with additional pass-through for `DurableAgentOptions` fields like `experimental_telemetry`, `onStepFinish`, `onFinish`, and `prepareStep`.
|
|
508
|
+
> See [`examples/pr-review-agent`](../../examples/pr-review-agent) for a complete PR review agent built with Chat SDK and Vercel Workflow.
|
|
417
509
|
|
|
418
|
-
|
|
510
|
+
All presets (`code-review`, `issue-triage`, `ci-ops`, `repo-explorer`, `maintainer`) work with `createDurableGithubAgent`. Options mirror `createGithubAgent` with additional pass-through for `WorkflowAgentOptions` fields like `experimental_telemetry`, `onStepEnd`, `onEnd`, and `prepareStep`. Write tools honor `requireApproval` via `needsApproval`.
|
|
419
511
|
|
|
420
512
|
### `createOctokit(token)`
|
|
421
513
|
|
package/dist/eve.d.mts
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { _ as PresetToolName, f as GITHUB_WRITE_TOOLS, g as PRESET_TOOLS, h as GithubToolPreset, i as PickGithubTools, m as CombinedPresetToolNames, o as CommitIdentity, p as GithubWriteToolName, r as GithubToolsForPreset, t as AllGithubTools, v as GITHUB_TOOL_NAMES, y as GithubToolName } from "./tool-types-CuirBEc8.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import * as _$eve_tools0 from "eve/tools";
|
|
4
|
+
import { Approval, ToolDefinition, ToolModelOutput } from "eve/tools";
|
|
5
|
+
//#region src/eve/types.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Approval value for eve tools.
|
|
8
|
+
* - `true` / `'always'` → require approval on every call
|
|
9
|
+
* - `false` / `'never'` → skip approval
|
|
10
|
+
* - `'once'` → require approval only the first time per session
|
|
11
|
+
* - predicate → input-dependent gate (eve `Approval` shape)
|
|
12
|
+
* - eve helpers (`always()`, `once()`, `never()`) → passthrough
|
|
13
|
+
*/
|
|
14
|
+
type EveApprovalValue = boolean | 'always' | 'once' | 'never' | Approval;
|
|
15
|
+
type EveApprovalConfig = boolean | Partial<Record<GithubWriteToolName, EveApprovalValue>>;
|
|
16
|
+
type EveToolOverrides = Partial<Record<GithubToolName, {
|
|
17
|
+
description?: string;
|
|
18
|
+
approval?: EveApprovalValue;
|
|
19
|
+
toModelOutput?: (output: unknown) => ToolModelOutput | Promise<ToolModelOutput>;
|
|
20
|
+
outputSchema?: z.ZodType | Record<string, unknown>;
|
|
21
|
+
}>>;
|
|
22
|
+
type EveGithubToolsOptions = {
|
|
23
|
+
/** Defaults to `process.env.GITHUB_TOKEN`. */token?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Restrict tools to a predefined preset.
|
|
26
|
+
*
|
|
27
|
+
* @see {@link GithubToolPreset} for available presets and included tools.
|
|
28
|
+
*/
|
|
29
|
+
preset?: GithubToolPreset | GithubToolPreset[];
|
|
30
|
+
/**
|
|
31
|
+
* Control whether write operations require user approval before execution.
|
|
32
|
+
*
|
|
33
|
+
* @see {@link EveApprovalConfig} for global and per-tool options.
|
|
34
|
+
*/
|
|
35
|
+
requireApproval?: EveApprovalConfig;
|
|
36
|
+
/**
|
|
37
|
+
* Per-tool overrides for description, approval, output shaping, and output schema.
|
|
38
|
+
*
|
|
39
|
+
* @see {@link GithubToolName} for valid tool keys.
|
|
40
|
+
*/
|
|
41
|
+
overrides?: EveToolOverrides; /** Default author for commit-creating tools. Falls back to the authenticated user when omitted. */
|
|
42
|
+
author?: CommitIdentity; /** Default committer for commit-creating tools. Falls back to the authenticated user when omitted. */
|
|
43
|
+
committer?: CommitIdentity; /** Co-authors to attribute on all commits created by tools. */
|
|
44
|
+
coAuthors?: CommitIdentity[];
|
|
45
|
+
};
|
|
46
|
+
type EveToolFactoryOptions = Omit<EveGithubToolsOptions, 'preset'>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/eve/build.d.ts
|
|
49
|
+
type BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & {
|
|
50
|
+
preset?: EveGithubToolsOptions['preset'];
|
|
51
|
+
});
|
|
52
|
+
type EveToolMap = Partial<Record<GithubToolName, ToolDefinition>>;
|
|
53
|
+
declare function buildEveToolDefinition(name: GithubToolName, options?: BuildOptions): ToolDefinition;
|
|
54
|
+
declare function buildEveToolMap(options?: EveGithubToolsOptions): EveToolMap;
|
|
55
|
+
declare function createEveGithubToolsDynamic(options?: EveGithubToolsOptions): _$eve_tools0.DynamicSentinel;
|
|
56
|
+
declare function listResolvedEveToolNames(options?: {
|
|
57
|
+
preset?: undefined;
|
|
58
|
+
}): GithubToolName[];
|
|
59
|
+
declare function listResolvedEveToolNames<P extends GithubToolPreset>(options: {
|
|
60
|
+
preset: P;
|
|
61
|
+
}): PresetToolName<P>[];
|
|
62
|
+
declare function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: {
|
|
63
|
+
preset: P;
|
|
64
|
+
}): CombinedPresetToolNames<P>[];
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/eve/load-eve.d.ts
|
|
67
|
+
declare const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve";
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/eve.d.ts
|
|
70
|
+
/**
|
|
71
|
+
* Register all GitHub tools (or a preset subset) as eve dynamic capabilities.
|
|
72
|
+
*
|
|
73
|
+
* Export as the default from `agent/tools/github.ts`:
|
|
74
|
+
*
|
|
75
|
+
* ```ts
|
|
76
|
+
* import { createGithubTools } from '@github-tools/sdk/eve'
|
|
77
|
+
* export default createGithubTools({ preset: 'code-review' })
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
declare function createGithubTools(options?: EveGithubToolsOptions): _$eve_tools0.DynamicSentinel;
|
|
81
|
+
/** Get information about a GitHub repository including description, stars, forks, language, and default branch. */
|
|
82
|
+
declare const getRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
83
|
+
/** List branches in a GitHub repository. */
|
|
84
|
+
declare const listBranches: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
85
|
+
/** Get the content of a file from a GitHub repository. */
|
|
86
|
+
declare const getFileContent: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
87
|
+
/** Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default. */
|
|
88
|
+
declare const createBranch: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
89
|
+
/** Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default. */
|
|
90
|
+
declare const forkRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
91
|
+
/** Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default. */
|
|
92
|
+
declare const createRepository: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
93
|
+
/** Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default. */
|
|
94
|
+
declare const createOrUpdateFile: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
95
|
+
/** List pull requests for a GitHub repository. */
|
|
96
|
+
declare const listPullRequests: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
97
|
+
/** Get detailed information about a specific pull request. */
|
|
98
|
+
declare const getPullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
99
|
+
/** Create a new pull request in a GitHub repository. Requires approval by default. */
|
|
100
|
+
declare const createPullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
101
|
+
/** Merge a pull request. Requires approval by default. */
|
|
102
|
+
declare const mergePullRequest: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
103
|
+
/** Add a comment to a pull request. Requires approval by default. */
|
|
104
|
+
declare const addPullRequestComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
105
|
+
/** List files changed in a pull request, including diff status and patch content. */
|
|
106
|
+
declare const listPullRequestFiles: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
107
|
+
/** List reviews on a pull request (approvals, change requests, and comments). */
|
|
108
|
+
declare const listPullRequestReviews: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
109
|
+
/** Submit a pull request review with optional inline comments. Requires approval by default. */
|
|
110
|
+
declare const createPullRequestReview: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
111
|
+
/** List issues for a GitHub repository (excludes pull requests). */
|
|
112
|
+
declare const listIssues: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
113
|
+
/** Get detailed information about a specific issue. */
|
|
114
|
+
declare const getIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
115
|
+
/** Create a new issue in a GitHub repository. Requires approval by default. */
|
|
116
|
+
declare const createIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
117
|
+
/** Add a comment to a GitHub issue. Requires approval by default. */
|
|
118
|
+
declare const addIssueComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
119
|
+
/** Close an open GitHub issue. Requires approval by default. */
|
|
120
|
+
declare const closeIssue: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
121
|
+
/** List labels available in a GitHub repository. */
|
|
122
|
+
declare const listLabels: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
123
|
+
/** Add labels to an issue or pull request. Requires approval by default. */
|
|
124
|
+
declare const addLabels: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
125
|
+
/** Remove a label from an issue or pull request. Requires approval by default. */
|
|
126
|
+
declare const removeLabel: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
127
|
+
/** Search for code in GitHub repositories. Use qualifiers like "repo:owner/name" to scope the search. */
|
|
128
|
+
declare const searchCode: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
129
|
+
/** Search for GitHub repositories by keyword, topic, language, or other qualifiers. */
|
|
130
|
+
declare const searchRepositories: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
131
|
+
/** List commits for a GitHub repository. Filter by file path to see commits that touched a file. */
|
|
132
|
+
declare const listCommits: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
133
|
+
/** Get detailed information about a specific commit, including files changed with additions and deletions. */
|
|
134
|
+
declare const getCommit: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
135
|
+
/** Line-level git blame for a file at a commit-like ref (branch, tag, or SHA). */
|
|
136
|
+
declare const getBlame: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
137
|
+
/** List gists for the authenticated user or a specific user. */
|
|
138
|
+
declare const listGists: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
139
|
+
/** Get a gist by ID, including file contents. */
|
|
140
|
+
declare const getGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
141
|
+
/** List comments on a gist. */
|
|
142
|
+
declare const listGistComments: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
143
|
+
/** Create a new gist with one or more files. Requires approval by default. */
|
|
144
|
+
declare const createGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
145
|
+
/** Update an existing gist. Requires approval by default. */
|
|
146
|
+
declare const updateGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
147
|
+
/** Delete a gist permanently. Requires approval by default. */
|
|
148
|
+
declare const deleteGist: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
149
|
+
/** Add a comment to a gist. Requires approval by default. */
|
|
150
|
+
declare const createGistComment: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
151
|
+
/** List GitHub Actions workflows in a repository. */
|
|
152
|
+
declare const listWorkflows: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
153
|
+
/** List workflow runs for a repository, optionally filtered by workflow, branch, status, or event. */
|
|
154
|
+
declare const listWorkflowRuns: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
155
|
+
/** Get details of a specific workflow run including status, timing, and trigger info. */
|
|
156
|
+
declare const getWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
157
|
+
/** List jobs for a workflow run, including step-level status and timing. */
|
|
158
|
+
declare const listWorkflowJobs: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
159
|
+
/** Trigger a workflow via workflow_dispatch event. Requires approval by default. */
|
|
160
|
+
declare const triggerWorkflow: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
161
|
+
/** Cancel an in-progress workflow run. Requires approval by default. */
|
|
162
|
+
declare const cancelWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
163
|
+
/** Re-run a workflow run, optionally only the failed jobs. Requires approval by default. */
|
|
164
|
+
declare const rerunWorkflowRun: (options?: EveToolFactoryOptions) => _$eve_tools0.ToolDefinition;
|
|
165
|
+
//#endregion
|
|
166
|
+
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 };
|
|
167
|
+
//# sourceMappingURL=eve.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eve.d.mts","names":[],"sources":["../src/eve/types.ts","../src/eve/build.ts","../src/eve/load-eve.ts","../src/eve.ts"],"mappings":";;;;;;AAeA;;;;;AAOA;;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;EATO,8CAWjB,KAAA;EAXsD;;AAExD;;;EAeE,MAAA,GAAS,gBAAA,GAAmB,gBAAA;EAbjB;;;;;EAmBX,eAAA,GAAkB,iBAAA;EArBmB;;;;;EA2BrC,SAAA,GAAY,gBAAA,EA3BgC;EA6B5C,MAAA,GAAS,cAAA,EA3BT;EA6BA,SAAA,GAAY,cAAA,EA5BZ;EA8BA,SAAA,GAAY,cAAA;AAAA;AAAA,KAGF,qBAAA,GAAwB,IAAA,CAAK,qBAAA;;;KCrDpC,YAAA,GAAe,qBAAA,IAAyB,qBAAA;EAA0B,M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