@github-tools/sdk 1.20.0 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +45 -12
  2. package/dist/{approval-policy--kByBqhT.mjs → approval-policy-CEMMPq92.mjs} +2 -2
  3. package/dist/{approval-policy--kByBqhT.mjs.map → approval-policy-CEMMPq92.mjs.map} +1 -1
  4. package/dist/connect/eve.d.mts +1 -1
  5. package/dist/connect/eve.mjs +1 -1
  6. package/dist/connect.d.mts +5 -5
  7. package/dist/connect.d.mts.map +1 -1
  8. package/dist/connect.mjs +2 -2
  9. package/dist/{cores-FLzAv2tu.mjs → cores-meFAMt2D.mjs} +20 -2
  10. package/dist/cores-meFAMt2D.mjs.map +1 -0
  11. package/dist/{tool-types-OFyE3z0C.d.mts → dry-run-DXckOam2.d.mts} +172 -18
  12. package/dist/dry-run-DXckOam2.d.mts.map +1 -0
  13. package/dist/{evaluation-BtoHbxuQ.mjs → evaluation-DJHINyAu.mjs} +2 -2
  14. package/dist/{evaluation-BtoHbxuQ.mjs.map → evaluation-DJHINyAu.mjs.map} +1 -1
  15. package/dist/{eve-runtime-CflZNuXD.d.mts → eve-runtime-B_CJE9JV.d.mts} +20 -6
  16. package/dist/eve-runtime-B_CJE9JV.d.mts.map +1 -0
  17. package/dist/{eve-runtime-C-0doyHq.mjs → eve-runtime-DPzMPCLt.mjs} +40 -12
  18. package/dist/eve-runtime-DPzMPCLt.mjs.map +1 -0
  19. package/dist/eve-runtime.d.mts +5 -5
  20. package/dist/eve-runtime.mjs +4 -4
  21. package/dist/eve.d.mts +45 -3
  22. package/dist/eve.d.mts.map +1 -1
  23. package/dist/eve.mjs +45 -3
  24. package/dist/eve.mjs.map +1 -1
  25. package/dist/{index-C3wlz660.d.mts → index-CzzrtCVj.d.mts} +32 -5
  26. package/dist/index-CzzrtCVj.d.mts.map +1 -0
  27. package/dist/index.d.mts +3 -3
  28. package/dist/index.mjs +4 -4
  29. package/dist/{src-DyiAVHKl.mjs → src-BlhrSieS.mjs} +166 -21
  30. package/dist/src-BlhrSieS.mjs.map +1 -0
  31. package/dist/tanstack.d.mts +533 -190
  32. package/dist/tanstack.d.mts.map +1 -1
  33. package/dist/tanstack.mjs +32 -11
  34. package/dist/tanstack.mjs.map +1 -1
  35. package/dist/{token-DIwB-wtp.mjs → token-BLps09gm.mjs} +3 -2
  36. package/dist/token-BLps09gm.mjs.map +1 -0
  37. package/dist/{types-CJqhvQwi.d.mts → types-Bln8U42J.d.mts} +3 -3
  38. package/dist/{types-CJqhvQwi.d.mts.map → types-Bln8U42J.d.mts.map} +1 -1
  39. package/dist/{types-ITYfXMtY.d.mts → types-C7O2lwwz.d.mts} +14 -2
  40. package/dist/{types-ITYfXMtY.d.mts.map → types-C7O2lwwz.d.mts.map} +1 -1
  41. package/dist/workflow.d.mts +9 -2
  42. package/dist/workflow.d.mts.map +1 -1
  43. package/dist/workflow.mjs +6 -4
  44. package/dist/workflow.mjs.map +1 -1
  45. package/dist/{write-tools-DnGZw-RD.mjs → write-tools-w-8tjnDQ.mjs} +440 -33
  46. package/dist/write-tools-w-8tjnDQ.mjs.map +1 -0
  47. package/package.json +1 -1
  48. package/dist/cores-FLzAv2tu.mjs.map +0 -1
  49. package/dist/eve-runtime-C-0doyHq.mjs.map +0 -1
  50. package/dist/eve-runtime-CflZNuXD.d.mts.map +0 -1
  51. package/dist/index-C3wlz660.d.mts.map +0 -1
  52. package/dist/src-DyiAVHKl.mjs.map +0 -1
  53. package/dist/token-DIwB-wtp.mjs.map +0 -1
  54. package/dist/tool-types-OFyE3z0C.d.mts.map +0 -1
  55. package/dist/write-tools-DnGZw-RD.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
- import { C as GITHUB_TOOL_CATALOG, Ma as stripRateLimit, S as ALL_GITHUB_TOOL_NAMES, a as mergeContextArgs, b as githubTokenCall, ja as toModelErrorPayload, ka as EvlogError, o as softenContextSchema, v as resolvePresetTools, w as isGithubWriteToolName, x as resolveGithubToken, y as createGithubTokenResolver } from "./write-tools-DnGZw-RD.mjs";
2
- import { _ as listPullRequestFilesToModelOutput, f as compareCommitsToModelOutput, g as getRepositoryTreeToModelOutput, h as getPullRequestContextToModelOutput, m as getFileContentToModelOutput, p as getCommitToModelOutput } from "./evaluation-BtoHbxuQ.mjs";
3
- import { t as GITHUB_TOOL_CORES } from "./cores-FLzAv2tu.mjs";
1
+ import { $a as stripRateLimit, E as isGithubWriteToolName, Qa as toModelErrorPayload, S as resolveGithubToken, T as GITHUB_TOOL_CATALOG, Xa as EvlogError, Za as githubToolsErrors, b as createGithubTokenResolver, i as dryRunWrite, o as mergeContextArgs, s as softenContextSchema, w as ALL_GITHUB_TOOL_NAMES, x as githubTokenCall, y as resolvePresetTools, zr as guardrailViolation } from "./write-tools-w-8tjnDQ.mjs";
2
+ import { _ as listPullRequestFilesToModelOutput, f as compareCommitsToModelOutput, g as getRepositoryTreeToModelOutput, h as getPullRequestContextToModelOutput, m as getFileContentToModelOutput, p as getCommitToModelOutput } from "./evaluation-DJHINyAu.mjs";
3
+ import { t as GITHUB_TOOL_CORES } from "./cores-meFAMt2D.mjs";
4
4
  import * as eveTools from "eve/tools";
5
5
  import * as eveApproval from "eve/tools/approval";
6
6
  //#region src/eve/load-eve.ts
@@ -57,11 +57,12 @@ function resolveEveToolApproval(toolName, config, override) {
57
57
  }
58
58
  //#endregion
59
59
  //#region src/eve/registry.ts
60
- function withToken(core, ctx, extra) {
60
+ function withToken(core, ctx, extra, guard) {
61
61
  return async (input) => core({
62
62
  token: await resolveGithubToken(ctx.token),
63
63
  ...extra,
64
- ...mergeContextArgs(input, ctx.context ?? {})
64
+ ...mergeContextArgs(input, ctx.context ?? {}),
65
+ ...guard
65
66
  });
66
67
  }
67
68
  function modelOutputAdapter(fn) {
@@ -123,6 +124,14 @@ function createToolRegistry(ctx, names = ALL_GITHUB_TOOL_NAMES) {
123
124
  mergePullRequest: { coAuthors: ctx.coAuthors },
124
125
  enablePullRequestAutoMerge: { coAuthors: ctx.coAuthors }
125
126
  };
127
+ const branches = ctx.guardrails?.branches;
128
+ const guardExtras = {
129
+ ...branches && {
130
+ mergePullRequest: { branches },
131
+ enablePullRequestAutoMerge: { branches }
132
+ },
133
+ ...ctx.guardrails && { updatePullRequestBranch: { guardrails: ctx.guardrails } }
134
+ };
126
135
  const entries = names.map((name) => {
127
136
  const descriptor = GITHUB_TOOL_CATALOG[name];
128
137
  const core = GITHUB_TOOL_CORES[name];
@@ -132,7 +141,7 @@ function createToolRegistry(ctx, names = ALL_GITHUB_TOOL_NAMES) {
132
141
  ...isGithubWriteToolName(name) && { writeTool: name },
133
142
  description: descriptor.description,
134
143
  inputSchema: descriptor.inputSchema,
135
- execute: withToken(core, ctx, commitExtras[name]),
144
+ execute: withToken(core, ctx, commitExtras[name], guardExtras[name]),
136
145
  ...toModelOutput && { toModelOutput }
137
146
  };
138
147
  });
@@ -150,9 +159,16 @@ async function executeGithubToolStep(name, input, ctx) {
150
159
  if (!entry) throw new Error(`Unknown GitHub tool: ${name}`);
151
160
  return entry.execute(input);
152
161
  }
162
+ /** Why `guardrails` block a call once `context` defaults are applied, or `undefined` when they allow it. */
163
+ function githubGuardrailViolation(name, input, { context, guardrails }) {
164
+ return guardrailViolation(githubTokenCall(name, mergeContextArgs(input, context ?? {})), guardrails);
165
+ }
153
166
  async function runGithubToolStep(name, input, ctx) {
154
167
  try {
155
168
  const call = githubTokenCall(name, mergeContextArgs(input, ctx.context ?? {}));
169
+ const reason = guardrailViolation(call, ctx.guardrails);
170
+ if (reason) throw githubToolsErrors.GUARDRAIL_BLOCKED({ reason });
171
+ if (ctx.dryRun && isGithubWriteToolName(name)) return dryRunWrite(name, call.input, ctx.guardrails, () => ctx.dryRunApproval);
156
172
  const token = await resolveGithubToken(ctx.token, call);
157
173
  return await executeGithubToolStep(name, input, {
158
174
  ...ctx,
@@ -200,7 +216,10 @@ function buildEveToolDefinition(name, options = {}) {
200
216
  context: options.context,
201
217
  author: options.author,
202
218
  committer: options.committer,
203
- coAuthors: options.coAuthors
219
+ coAuthors: options.coAuthors,
220
+ guardrails: options.guardrails,
221
+ dryRun: options.dryRun,
222
+ dryRunApproval: options.dryRunApproval
204
223
  };
205
224
  const [entry] = createToolRegistry(ctx, ALL_GITHUB_TOOL_NAMES.filter((tool) => tool === name));
206
225
  if (!entry) throw new Error(`Unknown GitHub tool: ${name}`);
@@ -220,7 +239,10 @@ function buildEveToolMap(options = {}) {
220
239
  context: options.context,
221
240
  author: options.author,
222
241
  committer: options.committer,
223
- coAuthors: options.coAuthors
242
+ coAuthors: options.coAuthors,
243
+ guardrails: options.guardrails,
244
+ dryRun: options.dryRun,
245
+ dryRunApproval: options.dryRunApproval
224
246
  };
225
247
  const isAllowed = resolveAllowedToolNames(options);
226
248
  const registry = createToolRegistry(ctx);
@@ -257,7 +279,10 @@ function listEveToolDescriptors(options = {}) {
257
279
  context: options.context,
258
280
  author: options.author,
259
281
  committer: options.committer,
260
- coAuthors: options.coAuthors
282
+ coAuthors: options.coAuthors,
283
+ guardrails: options.guardrails,
284
+ dryRun: options.dryRun,
285
+ dryRunApproval: options.dryRunApproval
261
286
  }, listResolvedEveToolNames(options)).map((entry) => ({
262
287
  name: entry.name,
263
288
  description: entry.description,
@@ -276,10 +301,13 @@ async function executeGithubEveTool(name, input, options = {}) {
276
301
  context: options.context,
277
302
  author: options.author,
278
303
  committer: options.committer,
279
- coAuthors: options.coAuthors
304
+ coAuthors: options.coAuthors,
305
+ guardrails: options.guardrails,
306
+ dryRun: options.dryRun,
307
+ dryRunApproval: options.dryRunApproval
280
308
  });
281
309
  }
282
310
  //#endregion
283
- export { listEveToolDescriptors as a, hasGithubEveToolModelOutput as c, resolveEveApproval as d, resolveEveToolApproval as f, executeGithubEveTool as i, isEveApprovalDisabled as l, buildEveToolMap as n, listResolvedEveToolNames as o, MISSING_EVE_MESSAGE as p, createEveGithubToolsDynamic as r, formatGithubEveToolOutput as s, buildEveToolDefinition as t, mapEveApprovalValue as u };
311
+ export { listEveToolDescriptors as a, formatGithubEveToolOutput as c, mapEveApprovalValue as d, resolveEveApproval as f, executeGithubEveTool as i, hasGithubEveToolModelOutput as l, MISSING_EVE_MESSAGE as m, buildEveToolMap as n, listResolvedEveToolNames as o, resolveEveToolApproval as p, createEveGithubToolsDynamic as r, githubGuardrailViolation as s, buildEveToolDefinition as t, isEveApprovalDisabled as u };
284
312
 
285
- //# sourceMappingURL=eve-runtime-C-0doyHq.mjs.map
313
+ //# sourceMappingURL=eve-runtime-DPzMPCLt.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eve-runtime-DPzMPCLt.mjs","names":[],"sources":["../src/eve/load-eve.ts","../src/eve/approval.ts","../src/eve/registry.ts","../src/eve/steps.ts","../src/eve/build.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\n/**\n * @deprecated Never thrown since eve moved to static ESM imports — a missing\n * `eve` package now fails at module resolution with the bundler/runtime's own\n * error. Kept only for backward compatibility of the public export; do not\n * match on it. Will be removed in the next major.\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, ApprovalPolicy } from 'eve/tools/approval'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport { getEveApprovalHelpers } from './load-eve'\nimport type { EveApprovalConfig, EveApprovalValue } from './types'\n\n/**\n * `false` / `'never'` should omit the tool `approval` field entirely.\n * eve treats a missing `approval` like `never()`; attaching `never()` is\n * redundant and has caused approval UI noise on some channels.\n */\nexport function isEveApprovalDisabled(value: EveApprovalValue | undefined): boolean {\n return value === false || value === 'never'\n}\n\nexport function mapEveApprovalValue(value: EveApprovalValue): ApprovalPolicy {\n if (typeof value === 'function') return value\n // Object-shaped eve `ApprovalConfiguration` — the request-time policy lives on `request`.\n if (typeof value === 'object') return value.request\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 return once()\n}\n\nexport function resolveEveApproval(\n toolName: GithubWriteToolName,\n config: EveApprovalConfig | undefined,\n): ApprovalPolicy {\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\n/**\n * Approval to attach on a write tool, or `undefined` to omit the field.\n * Prefer this when building `defineTool` values so `false` / `'never'` do not\n * attach a redundant `never()` handler.\n */\nexport function resolveEveToolApproval(\n toolName: GithubWriteToolName,\n config: EveApprovalConfig | undefined,\n override?: EveApprovalValue,\n): Approval | undefined {\n const value = override !== undefined\n ? override\n : typeof config === 'object' && config !== null\n ? config[toolName]\n : config\n\n if (value === undefined) return getEveApprovalHelpers().always()\n if (isEveApprovalDisabled(value)) return undefined\n // Pass policies and `ApprovalConfiguration` objects through unchanged so a\n // response-time authorizer (`response`) survives onto `defineTool`.\n if (typeof value === 'function' || typeof value === 'object') return value\n return mapEveApprovalValue(value)\n}\n","import type { ToolModelOutput } from 'eve/tools'\nimport type { z } from 'zod'\nimport type { CommitIdentity } from '../types'\nimport { GITHUB_TOOL_CATALOG, isGithubWriteToolName } from '../core/catalog'\nimport { GITHUB_TOOL_CORES } from '../core/cores'\nimport { mergeContextArgs, softenContextSchema, type GithubToolsContext } from '../core/context'\nimport {\n compareCommitsToModelOutput,\n getCommitToModelOutput,\n getFileContentToModelOutput,\n getPullRequestContextToModelOutput,\n getRepositoryTreeToModelOutput,\n listPullRequestFilesToModelOutput,\n} from '../core/model-output'\nimport { stripRateLimit } from '../core/rate-limit'\nimport { resolveGithubToken, type GithubTokenInput } from '../core/token'\nimport type { GithubGuardrails } from '../core/guardrails'\nimport type { GithubDryRunApproval } from '../core/dry-run'\nimport type { GithubWriteToolName } from '../core/write-tools'\nimport { ALL_GITHUB_TOOL_NAMES, 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 context?: GithubToolsContext\n author?: CommitIdentity\n committer?: CommitIdentity\n coAuthors?: CommitIdentity[]\n guardrails?: GithubGuardrails\n dryRun?: boolean\n dryRunApproval?: GithubDryRunApproval\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 guard?: Record<string, unknown>,\n) {\n return async (input: Record<string, unknown>) =>\n core({\n token: await resolveGithubToken(ctx.token),\n ...extra,\n ...mergeContextArgs(input, ctx.context ?? {}),\n ...guard,\n } 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\nconst GITHUB_EVE_TOOL_MODEL_OUTPUT = {\n getFileContent: modelOutputAdapter(getFileContentToModelOutput),\n getRepositoryTree: modelOutputAdapter(getRepositoryTreeToModelOutput),\n listPullRequestFiles: modelOutputAdapter(listPullRequestFilesToModelOutput),\n getPullRequestContext: modelOutputAdapter(getPullRequestContextToModelOutput),\n getCommit: modelOutputAdapter(getCommitToModelOutput),\n compareCommits: modelOutputAdapter(compareCommitsToModelOutput),\n} satisfies Partial<Record<GithubToolName, (output: unknown) => ToolModelOutput>>\n\nconst EVE_TOOL_MODEL_OUTPUTS: Partial<Record<GithubToolName, (output: unknown) => ToolModelOutput>> = GITHUB_EVE_TOOL_MODEL_OUTPUT\n\n/** Whether a GitHub tool has a built-in eve `toModelOutput` projection. */\nexport function hasGithubEveToolModelOutput(name: GithubToolName): boolean {\n return Object.hasOwn(GITHUB_EVE_TOOL_MODEL_OUTPUT, name)\n}\n\n/**\n * Apply the built-in eve `toModelOutput` projection for a tool.\n * Strips `rateLimit` so it never reaches the model. Tools without a dedicated\n * formatter get `{ type: 'json', value }` of the remaining payload.\n * Used by `@github-tools/eve-extension` so the callback only closes over a serializable tool name.\n */\nexport function formatGithubEveToolOutput(name: GithubToolName, output: unknown): ToolModelOutput {\n const stripped = stripRateLimit(output)\n // `runGithubToolStep` returns `{ error }` when execute throws. The per-tool\n // formatters assume the success shape (e.g. `listPullRequestFilesToModelOutput`\n // calls `.map` on the payload), so dispatching an error payload would throw a\n // second time inside model-output formatting and re-break the tool loop.\n if (isErrorPayload(stripped)) {\n return { type: 'json', value: stripped }\n }\n const format = GITHUB_EVE_TOOL_MODEL_OUTPUT[name as keyof typeof GITHUB_EVE_TOOL_MODEL_OUTPUT]\n if (!format) {\n return { type: 'json', value: stripped }\n }\n return format(stripped)\n}\n\nfunction isErrorPayload(output: unknown): output is { error: string | Record<string, string> } {\n if (output == null || typeof output !== 'object' || Array.isArray(output)) return false\n const { error } = output as { error?: unknown }\n return typeof error === 'string' || (error != null && typeof error === 'object')\n}\n\nexport function createToolRegistry(\n ctx: ToolBuildContext,\n names: readonly GithubToolName[] = ALL_GITHUB_TOOL_NAMES,\n): ToolRegistryEntry[] {\n // Commit-identity options are session-level, not model inputs, so they ride\n // alongside the token instead of living in the tool's input schema.\n const commitExtras: Partial<Record<GithubToolName, Record<string, unknown>>> = {\n createOrUpdateFile: { author: ctx.author, committer: ctx.committer, coAuthors: ctx.coAuthors },\n editFiles: { author: ctx.author, committer: ctx.committer, coAuthors: ctx.coAuthors },\n mergePullRequest: { coAuthors: ctx.coAuthors },\n enablePullRequestAutoMerge: { coAuthors: ctx.coAuthors },\n }\n // Spread after the input, so the branches a merge or branch update may write can't come from the model.\n const branches = ctx.guardrails?.branches\n const guardExtras: Partial<Record<GithubToolName, Record<string, unknown>>> = {\n ...branches && { mergePullRequest: { branches }, enablePullRequestAutoMerge: { branches } },\n ...ctx.guardrails && { updatePullRequestBranch: { guardrails: ctx.guardrails } },\n }\n\n const entries = names.map((name): ToolRegistryEntry => {\n const descriptor = GITHUB_TOOL_CATALOG[name]\n // Argument types vary per tool; `withToken` re-narrows at the dispatch boundary.\n const core = GITHUB_TOOL_CORES[name] as (args: Record<string, unknown> & { token: string }) => Promise<unknown>\n const toModelOutput = EVE_TOOL_MODEL_OUTPUTS[name]\n return {\n name,\n ...(isGithubWriteToolName(name) && { writeTool: name }),\n description: descriptor.description,\n inputSchema: descriptor.inputSchema,\n execute: withToken(core, ctx, commitExtras[name], guardExtras[name]),\n ...(toModelOutput && { toModelOutput }),\n }\n })\n\n if (!ctx.context) return entries\n\n return entries.map(entry => ({\n ...entry,\n inputSchema: softenContextSchema(entry.inputSchema, ctx.context!),\n }))\n}\n","import { mergeContextArgs } from '../core/context'\nimport { EvlogError, githubToolsErrors, toModelErrorPayload } from '../core/errors'\nimport { guardrailViolation } from '../core/guardrails'\nimport { dryRunWrite } from '../core/dry-run'\nimport { isGithubWriteToolName } from '../core/catalog'\nimport { githubTokenCall, resolveGithubToken } from '../core/token'\nimport { ALL_GITHUB_TOOL_NAMES, 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, ALL_GITHUB_TOOL_NAMES.filter(tool => tool === name))\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n return entry.execute(input)\n}\n\n/** Why `guardrails` block a call once `context` defaults are applied, or `undefined` when they allow it. */\nexport function githubGuardrailViolation(\n name: GithubToolName,\n input: Record<string, unknown>,\n { context, guardrails }: Pick<ToolBuildContext, 'context' | 'guardrails'>,\n) {\n return guardrailViolation(githubTokenCall(name, mergeContextArgs(input, context ?? {})), guardrails)\n}\n\nexport async function runGithubToolStep(\n name: GithubToolName,\n input: Record<string, unknown>,\n ctx: ToolBuildContext,\n) {\n try {\n // Resolve the token before entering the step so only a serializable string crosses the boundary.\n const call = githubTokenCall(name, mergeContextArgs(input, ctx.context ?? {}))\n const reason = guardrailViolation(call, ctx.guardrails)\n if (reason) throw githubToolsErrors.GUARDRAIL_BLOCKED({ reason })\n if (ctx.dryRun && isGithubWriteToolName(name)) return dryRunWrite(name, call.input as Record<string, unknown>, ctx.guardrails, () => ctx.dryRunApproval)\n const token = await resolveGithubToken(ctx.token, call)\n return await executeGithubToolStep(name, input, { ...ctx, token })\n } catch (error) {\n // Eve's tool-loop logs thrown execute errors but does not always append a\n // tool_result. Returning a payload keeps the Anthropic tool_use/tool_result pairing intact.\n // Catalog errors keep their { code, why, fix, link } structure so the model can recover.\n if (EvlogError.isEvlogError(error)) {\n return { error: toModelErrorPayload(error) }\n }\n return { error: error instanceof Error ? error.message : String(error) }\n }\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 { isEveApprovalDisabled, mapEveApprovalValue, resolveEveToolApproval } from './approval'\nimport { getEveTools } from './load-eve'\nimport { ALL_GITHUB_TOOL_NAMES, createToolRegistry, formatGithubEveToolOutput, hasGithubEveToolModelOutput, 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 resolveAllowedToolNames(\n options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>,\n): (name: GithubToolName) => boolean {\n const presetAllowed = options.preset ? resolvePresetTools(options.preset) : null\n const includeAllowed = options.include ? new Set(options.include) : null\n const excluded = options.exclude ? new Set(options.exclude) : null\n\n // `preset` and `include` compose as a union (add tools a preset is missing);\n // `exclude` always subtracts from that combined set afterward.\n const allowed = presetAllowed && includeAllowed\n ? new Set([...presetAllowed, ...includeAllowed])\n : presetAllowed ?? includeAllowed\n\n return name => (!allowed || allowed.has(name)) && !excluded?.has(name)\n}\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\n const next: T = {\n ...tool,\n ...override.description !== undefined && { description: override.description },\n ...override.toModelOutput !== undefined && { toModelOutput: override.toModelOutput },\n ...override.outputSchema !== undefined && { outputSchema: override.outputSchema },\n }\n\n if (override.approval === undefined) return next\n if (isEveApprovalDisabled(override.approval)) {\n const rest = { ...next }\n delete (rest as { approval?: unknown }).approval\n return rest\n }\n // Preserve policies and `ApprovalConfiguration` objects as-is; only literals need mapping.\n const approval = typeof override.approval === 'function' || typeof override.approval === 'object'\n ? override.approval\n : mapEveApprovalValue(override.approval)\n return { ...next, approval }\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 context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n guardrails: options.guardrails,\n dryRun: options.dryRun,\n dryRunApproval: options.dryRunApproval,\n }\n\n const [entry] = createToolRegistry(ctx, ALL_GITHUB_TOOL_NAMES.filter(tool => tool === name))\n if (!entry) {\n throw new Error(`Unknown GitHub tool: ${name}`)\n }\n\n const approval = entry.writeTool\n ? resolveEveToolApproval(entry.writeTool, options.requireApproval)\n : undefined\n\n // Annotated so defineTool resolves to its ToolDefinition overload — inference\n // from the bare literal picks the background-tool overload on eve 0.45+.\n const definition: ToolDefinition = {\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(approval && { approval }),\n toModelOutput: (output: unknown) => formatGithubEveToolOutput(name, output),\n execute: async (input) => runGithubToolStep(name, input as Record<string, unknown>, ctx),\n }\n\n return applyOverrides(defineTool(definition), 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 context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n guardrails: options.guardrails,\n dryRun: options.dryRun,\n dryRunApproval: options.dryRunApproval,\n }\n\n const isAllowed = resolveAllowedToolNames(options)\n const registry = createToolRegistry(ctx)\n const tools = {} as EveToolMap\n\n for (const entry of registry) {\n if (!isAllowed(entry.name)) continue\n\n const approval = entry.writeTool\n ? resolveEveToolApproval(entry.writeTool, options.requireApproval)\n : undefined\n\n const definition: ToolDefinition = {\n description: entry.description,\n inputSchema: entry.inputSchema,\n ...(approval && { approval }),\n toModelOutput: (output: unknown) => formatGithubEveToolOutput(entry.name, output),\n execute: async (input) => runGithubToolStep(entry.name, input as Record<string, unknown>, ctx),\n }\n\n tools[entry.name] = applyOverrides(defineTool(definition), 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 // Deferred — eve does not yet expose managed GitHub tokens on the session context.\n return defineDynamic(() => buildEveToolMap(options))\n}\n\nexport function listResolvedEveToolNames(options?: { preset?: undefined, include?: undefined, exclude?: undefined }): GithubToolName[]\nexport function listResolvedEveToolNames<P extends GithubToolPreset>(options: { preset: P, include?: undefined, exclude?: undefined }): PresetToolName<P>[]\nexport function listResolvedEveToolNames<P extends readonly GithubToolPreset[]>(options: { preset: P, include?: undefined, exclude?: undefined }): CombinedPresetToolNames<P>[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'>): GithubToolName[]\nexport function listResolvedEveToolNames(options: Pick<EveGithubToolsOptions, 'preset' | 'include' | 'exclude'> = {}): GithubToolName[] {\n const isAllowed = resolveAllowedToolNames(options)\n return ALL_GITHUB_TOOL_NAMES.filter(isAllowed)\n}\n\n/**\n * Tool descriptors (no `execute`) for authored eve `defineTool` loops.\n * Prefer this when registering tools outside the SDK package so durable transforms can hoist inline execute.\n */\nexport function listEveToolDescriptors(options: EveGithubToolsOptions = {}) {\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n guardrails: options.guardrails,\n dryRun: options.dryRun,\n dryRunApproval: options.dryRunApproval,\n }\n\n const names = listResolvedEveToolNames(options)\n return createToolRegistry(ctx, names)\n .map(entry => ({\n name: entry.name,\n description: entry.description,\n inputSchema: entry.inputSchema,\n writeTool: entry.writeTool,\n toModelOutput: entry.toModelOutput,\n }))\n}\n\nexport { formatGithubEveToolOutput, hasGithubEveToolModelOutput }\n\n/**\n * Execute a GitHub tool by name with the given eve options (token/context/attribution).\n * Used by `@github-tools/eve-extension` so `execute` only closes over a serializable tool name.\n */\nexport async function executeGithubEveTool(\n name: GithubToolName,\n input: Record<string, unknown>,\n options: EveGithubToolsOptions = {},\n) {\n const ctx: ToolBuildContext = {\n token: createGithubTokenResolver(options.token),\n context: options.context,\n author: options.author,\n committer: options.committer,\n coAuthors: options.coAuthors,\n guardrails: options.guardrails,\n dryRun: options.dryRun,\n dryRunApproval: options.dryRunApproval,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AiC,CAAC,GAClC;CAWA,OAAO,kBAAkB,MAAM,OAAO;EATpC,OAAO,0BAA0B,QAAQ,KAAK;EAC9C,SAAS,QAAQ;EACjB,QAAQ,QAAQ;EAChB,WAAW,QAAQ;EACnB,WAAW,QAAQ;EACnB,YAAY,QAAQ;EACpB,QAAQ,QAAQ;EAChB,gBAAgB,QAAQ;CAEY,CAAG;AAC3C"}
@@ -1,5 +1,5 @@
1
- import { A as GithubTokenCall, B as GithubToolName, C as needsAutoApproval, D as AUTO_APPROVAL_TOOLS, E as GITHUB_WRITE_TOOLS, F as GithubToolPreset, I as PRESET_TOOLS, L as PresetToolName, M as resolveGithubToken, P as CombinedPresetToolNames, R as GITHUB_TOOL_NAMES, S as latestUserText, T as selectTools, V as GithubWriteToolName, _ as autoApprovalDecision, b as fallbackPresets, g as GithubEvaluationOptions, h as AutoApprovalDecision, i as PickGithubTools, o as CommitIdentity, r as GithubToolsForPreset, t as AllGithubTools, v as evaluatePresets, w as selectPresets, x as fallbackTools, y as evaluateTools } from "./tool-types-OFyE3z0C.mjs";
2
- import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-ITYfXMtY.mjs";
3
- import { a as GithubRateLimit, i as githubToolsErrors, qt as resolveToolGuidance } from "./index-C3wlz660.mjs";
4
- import { a as resolveEveToolApproval, c as createEveGithubToolsDynamic, d as listResolvedEveToolNames, f as formatGithubEveToolOutput, i as resolveEveApproval, l as executeGithubEveTool, n as isEveApprovalDisabled, o as buildEveToolDefinition, p as hasGithubEveToolModelOutput, r as mapEveApprovalValue, s as buildEveToolMap, t as MISSING_EVE_MESSAGE, u as listEveToolDescriptors } from "./eve-runtime-CflZNuXD.mjs";
5
- export { AUTO_APPROVAL_TOOLS, type AllGithubTools, type AutoApprovalDecision, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubEvaluationOptions, type GithubRateLimit, type GithubTokenCall, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, autoApprovalDecision, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, evaluatePresets, evaluateTools, executeGithubEveTool, fallbackPresets, fallbackTools, formatGithubEveToolOutput, githubToolsErrors, hasGithubEveToolModelOutput, isEveApprovalDisabled, latestUserText, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, needsAutoApproval, resolveEveApproval, resolveEveToolApproval, resolveGithubToken, resolveToolGuidance, selectPresets, selectTools };
1
+ import { B as PRESET_TOOLS, C as fallbackTools, D as selectTools, E as selectPresets, G as GithubWriteToolName, H as GITHUB_TOOL_NAMES, I as GithubGuardrails, M as GithubTokenCall, O as GITHUB_WRITE_TOOLS, P as resolveGithubToken, R as CombinedPresetToolNames, S as fallbackPresets, T as needsAutoApproval, V as PresetToolName, W as GithubToolName, _ as AutoApprovalDecision, a as GithubToolsForPreset, b as evaluatePresets, c as CommitIdentity, k as AUTO_APPROVAL_TOOLS, n as GithubDryRunResult, o as PickGithubTools, r as AllGithubTools, t as GithubDryRunApproval, v as GithubEvaluationOptions, w as latestUserText, x as evaluateTools, y as autoApprovalDecision, z as GithubToolPreset } from "./dry-run-DXckOam2.mjs";
2
+ import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-C7O2lwwz.mjs";
3
+ import { $t as resolveToolGuidance, a as GithubRateLimit, i as githubToolsErrors } from "./index-CzzrtCVj.mjs";
4
+ import { a as resolveEveApproval, c as buildEveToolMap, d as listEveToolDescriptors, f as listResolvedEveToolNames, i as mapEveApprovalValue, l as createEveGithubToolsDynamic, m as hasGithubEveToolModelOutput, n as githubGuardrailViolation, o as resolveEveToolApproval, p as formatGithubEveToolOutput, r as isEveApprovalDisabled, s as buildEveToolDefinition, t as MISSING_EVE_MESSAGE, u as executeGithubEveTool } from "./eve-runtime-B_CJE9JV.mjs";
5
+ export { AUTO_APPROVAL_TOOLS, type AllGithubTools, type AutoApprovalDecision, type CombinedPresetToolNames, type CommitIdentity, type EveApprovalConfig, type EveApprovalValue, type EveGithubToolsOptions, type EveToolFactoryOptions, type EveToolOverrides, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, type GithubDryRunApproval, type GithubDryRunResult, type GithubEvaluationOptions, type GithubGuardrails, type GithubRateLimit, type GithubTokenCall, type GithubToolName, type GithubToolPreset, type GithubToolsForPreset, type GithubWriteToolName, MISSING_EVE_MESSAGE, PRESET_TOOLS, type PickGithubTools, type PresetToolName, autoApprovalDecision, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, evaluatePresets, evaluateTools, executeGithubEveTool, fallbackPresets, fallbackTools, formatGithubEveToolOutput, githubGuardrailViolation, githubToolsErrors, hasGithubEveToolModelOutput, isEveApprovalDisabled, latestUserText, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, needsAutoApproval, resolveEveApproval, resolveEveToolApproval, resolveGithubToken, resolveToolGuidance, selectPresets, selectTools };
@@ -1,4 +1,4 @@
1
- import { Aa as githubToolsErrors, _ as PRESET_TOOLS, h as GITHUB_TOOL_NAMES, r as resolveToolGuidance, s as AUTO_APPROVAL_TOOLS, t as GITHUB_WRITE_TOOLS, x as resolveGithubToken } from "./write-tools-DnGZw-RD.mjs";
2
- import { c as latestUserText, d as selectTools, i as evaluateTools, l as needsAutoApproval, n as autoApprovalDecision, o as fallbackPresets, r as evaluatePresets, s as fallbackTools, u as selectPresets } from "./evaluation-BtoHbxuQ.mjs";
3
- import { a as listEveToolDescriptors, c as hasGithubEveToolModelOutput, d as resolveEveApproval, f as resolveEveToolApproval, i as executeGithubEveTool, l as isEveApprovalDisabled, n as buildEveToolMap, o as listResolvedEveToolNames, p as MISSING_EVE_MESSAGE, r as createEveGithubToolsDynamic, s as formatGithubEveToolOutput, t as buildEveToolDefinition, u as mapEveApprovalValue } from "./eve-runtime-C-0doyHq.mjs";
4
- export { AUTO_APPROVAL_TOOLS, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, autoApprovalDecision, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, evaluatePresets, evaluateTools, executeGithubEveTool, fallbackPresets, fallbackTools, formatGithubEveToolOutput, githubToolsErrors, hasGithubEveToolModelOutput, isEveApprovalDisabled, latestUserText, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, needsAutoApproval, resolveEveApproval, resolveEveToolApproval, resolveGithubToken, resolveToolGuidance, selectPresets, selectTools };
1
+ import { S as resolveGithubToken, Za as githubToolsErrors, c as AUTO_APPROVAL_TOOLS, g as GITHUB_TOOL_NAMES, r as resolveToolGuidance, t as GITHUB_WRITE_TOOLS, v as PRESET_TOOLS } from "./write-tools-w-8tjnDQ.mjs";
2
+ import { c as latestUserText, d as selectTools, i as evaluateTools, l as needsAutoApproval, n as autoApprovalDecision, o as fallbackPresets, r as evaluatePresets, s as fallbackTools, u as selectPresets } from "./evaluation-DJHINyAu.mjs";
3
+ import { a as listEveToolDescriptors, c as formatGithubEveToolOutput, d as mapEveApprovalValue, f as resolveEveApproval, i as executeGithubEveTool, l as hasGithubEveToolModelOutput, m as MISSING_EVE_MESSAGE, n as buildEveToolMap, o as listResolvedEveToolNames, p as resolveEveToolApproval, r as createEveGithubToolsDynamic, s as githubGuardrailViolation, t as buildEveToolDefinition, u as isEveApprovalDisabled } from "./eve-runtime-DPzMPCLt.mjs";
4
+ export { AUTO_APPROVAL_TOOLS, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, autoApprovalDecision, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, evaluatePresets, evaluateTools, executeGithubEveTool, fallbackPresets, fallbackTools, formatGithubEveToolOutput, githubGuardrailViolation, githubToolsErrors, hasGithubEveToolModelOutput, isEveApprovalDisabled, latestUserText, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, needsAutoApproval, resolveEveApproval, resolveEveToolApproval, resolveGithubToken, resolveToolGuidance, selectPresets, selectTools };
package/dist/eve.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { B as GithubToolName, E as GITHUB_WRITE_TOOLS, F as GithubToolPreset, I as PRESET_TOOLS, L as PresetToolName, P as CombinedPresetToolNames, R as GITHUB_TOOL_NAMES, V as GithubWriteToolName, i as PickGithubTools, o as CommitIdentity, r as GithubToolsForPreset, t as AllGithubTools } from "./tool-types-OFyE3z0C.mjs";
2
- import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-ITYfXMtY.mjs";
3
- import { a as resolveEveToolApproval, c as createEveGithubToolsDynamic, d as listResolvedEveToolNames, i as resolveEveApproval, l as executeGithubEveTool, n as isEveApprovalDisabled, o as buildEveToolDefinition, r as mapEveApprovalValue, s as buildEveToolMap, t as MISSING_EVE_MESSAGE, u as listEveToolDescriptors } from "./eve-runtime-CflZNuXD.mjs";
1
+ import { B as PRESET_TOOLS, G as GithubWriteToolName, H as GITHUB_TOOL_NAMES, O as GITHUB_WRITE_TOOLS, R as CombinedPresetToolNames, V as PresetToolName, W as GithubToolName, a as GithubToolsForPreset, c as CommitIdentity, o as PickGithubTools, r as AllGithubTools, z as GithubToolPreset } from "./dry-run-DXckOam2.mjs";
2
+ import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-C7O2lwwz.mjs";
3
+ import { a as resolveEveApproval, c as buildEveToolMap, d as listEveToolDescriptors, f as listResolvedEveToolNames, i as mapEveApprovalValue, l as createEveGithubToolsDynamic, o as resolveEveToolApproval, r as isEveApprovalDisabled, s as buildEveToolDefinition, t as MISSING_EVE_MESSAGE, u as executeGithubEveTool } from "./eve-runtime-B_CJE9JV.mjs";
4
4
  //#region src/eve.d.ts
5
5
  /**
6
6
  * Register all GitHub tools (or a preset subset) as eve dynamic capabilities.
@@ -80,6 +80,13 @@ export declare const editFiles: (options?: EveToolFactoryOptions) => import("eve
80
80
  * instead. See https://github-tools.com/frameworks/eve-extension.
81
81
  */
82
82
  export declare const getBranchRules: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
83
+ /**
84
+ * Get a user's permission and role on a repository, to check whether they may trigger the bot or approve an action.
85
+ *
86
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
87
+ * instead. See https://github-tools.com/frameworks/eve-extension.
88
+ */
89
+ export declare const getCollaboratorPermission: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
83
90
  /**
84
91
  * List code scanning alerts for a repository.
85
92
  *
@@ -143,6 +150,13 @@ export declare const enablePullRequestAutoMerge: (options?: EveToolFactoryOption
143
150
  * instead. See https://github-tools.com/frameworks/eve-extension.
144
151
  */
145
152
  export declare const disablePullRequestAutoMerge: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
153
+ /**
154
+ * Bring a pull request branch up to date by merging its base branch into it. Requires approval by default.
155
+ *
156
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
157
+ * instead. See https://github-tools.com/frameworks/eve-extension.
158
+ */
159
+ export declare const updatePullRequestBranch: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
146
160
  /**
147
161
  * Add a comment to a pull request. Requires approval by default.
148
162
  *
@@ -227,6 +241,27 @@ export declare const addIssueComment: (options?: EveToolFactoryOptions) => impor
227
241
  * instead. See https://github-tools.com/frameworks/eve-extension.
228
242
  */
229
243
  export declare const closeIssue: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
244
+ /**
245
+ * List milestones in a GitHub repository with their due dates and issue counts.
246
+ *
247
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
248
+ * instead. See https://github-tools.com/frameworks/eve-extension.
249
+ */
250
+ export declare const listMilestones: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
251
+ /**
252
+ * List the sub-issues of an issue.
253
+ *
254
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
255
+ * instead. See https://github-tools.com/frameworks/eve-extension.
256
+ */
257
+ export declare const listSubIssues: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
258
+ /**
259
+ * Add an existing issue as a sub-issue of another issue. Requires approval by default.
260
+ *
261
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
262
+ * instead. See https://github-tools.com/frameworks/eve-extension.
263
+ */
264
+ export declare const addSubIssue: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
230
265
  /**
231
266
  * List labels available in a GitHub repository.
232
267
  *
@@ -402,6 +437,13 @@ export declare const cancelWorkflowRun: (options?: EveToolFactoryOptions) => imp
402
437
  * instead. See https://github-tools.com/frameworks/eve-extension.
403
438
  */
404
439
  export declare const rerunWorkflowRun: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
440
+ /**
441
+ * Report a result on a commit as a commit status. Requires approval by default.
442
+ *
443
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
444
+ * instead. See https://github-tools.com/frameworks/eve-extension.
445
+ */
446
+ export declare const createCommitStatus: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
405
447
  /**
406
448
  * Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.
407
449
  *
@@ -1 +1 @@
1
- {"version":3,"file":"eve.d.mts","names":[],"sources":["../src/e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;;;;;;;qBAob5B,sBAAmB,UApbZ,8CAAqB;;;;;;;qBA2b5B,oBAAiB,UA3bV,8CAAqB"}
package/dist/eve.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as PRESET_TOOLS, h as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-DnGZw-RD.mjs";
2
- import { a as listEveToolDescriptors, d as resolveEveApproval, f as resolveEveToolApproval, i as executeGithubEveTool, l as isEveApprovalDisabled, n as buildEveToolMap, o as listResolvedEveToolNames, p as MISSING_EVE_MESSAGE, r as createEveGithubToolsDynamic, t as buildEveToolDefinition, u as mapEveApprovalValue } from "./eve-runtime-C-0doyHq.mjs";
1
+ import { g as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS, v as PRESET_TOOLS } from "./write-tools-w-8tjnDQ.mjs";
2
+ import { a as listEveToolDescriptors, d as mapEveApprovalValue, f as resolveEveApproval, i as executeGithubEveTool, m as MISSING_EVE_MESSAGE, n as buildEveToolMap, o as listResolvedEveToolNames, p as resolveEveToolApproval, r as createEveGithubToolsDynamic, t as buildEveToolDefinition, u as isEveApprovalDisabled } from "./eve-runtime-DPzMPCLt.mjs";
3
3
  //#region src/eve.ts
4
4
  /**
5
5
  * Legacy eve registration for `agent/tools/` (direct import).
@@ -92,6 +92,13 @@ const editFiles = factory("editFiles");
92
92
  */
93
93
  const getBranchRules = factory("getBranchRules");
94
94
  /**
95
+ * Get a user's permission and role on a repository, to check whether they may trigger the bot or approve an action.
96
+ *
97
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
98
+ * instead. See https://github-tools.com/frameworks/eve-extension.
99
+ */
100
+ const getCollaboratorPermission = factory("getCollaboratorPermission");
101
+ /**
95
102
  * List code scanning alerts for a repository.
96
103
  *
97
104
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -155,6 +162,13 @@ const enablePullRequestAutoMerge = factory("enablePullRequestAutoMerge");
155
162
  */
156
163
  const disablePullRequestAutoMerge = factory("disablePullRequestAutoMerge");
157
164
  /**
165
+ * Bring a pull request branch up to date by merging its base branch into it. Requires approval by default.
166
+ *
167
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
168
+ * instead. See https://github-tools.com/frameworks/eve-extension.
169
+ */
170
+ const updatePullRequestBranch = factory("updatePullRequestBranch");
171
+ /**
158
172
  * Add a comment to a pull request. Requires approval by default.
159
173
  *
160
174
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -239,6 +253,27 @@ const addIssueComment = factory("addIssueComment");
239
253
  */
240
254
  const closeIssue = factory("closeIssue");
241
255
  /**
256
+ * List milestones in a GitHub repository with their due dates and issue counts.
257
+ *
258
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
259
+ * instead. See https://github-tools.com/frameworks/eve-extension.
260
+ */
261
+ const listMilestones = factory("listMilestones");
262
+ /**
263
+ * List the sub-issues of an issue.
264
+ *
265
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
266
+ * instead. See https://github-tools.com/frameworks/eve-extension.
267
+ */
268
+ const listSubIssues = factory("listSubIssues");
269
+ /**
270
+ * Add an existing issue as a sub-issue of another issue. Requires approval by default.
271
+ *
272
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
273
+ * instead. See https://github-tools.com/frameworks/eve-extension.
274
+ */
275
+ const addSubIssue = factory("addSubIssue");
276
+ /**
242
277
  * List labels available in a GitHub repository.
243
278
  *
244
279
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -414,6 +449,13 @@ const cancelWorkflowRun = factory("cancelWorkflowRun");
414
449
  */
415
450
  const rerunWorkflowRun = factory("rerunWorkflowRun");
416
451
  /**
452
+ * Report a result on a commit as a commit status. Requires approval by default.
453
+ *
454
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
455
+ * instead. See https://github-tools.com/frameworks/eve-extension.
456
+ */
457
+ const createCommitStatus = factory("createCommitStatus");
458
+ /**
417
459
  * Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.
418
460
  *
419
461
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -428,6 +470,6 @@ const getCiFailureContext = factory("getCiFailureContext");
428
470
  */
429
471
  const getReleaseContext = factory("getReleaseContext");
430
472
  //#endregion
431
- 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, createLabel, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, deleteLabel, disablePullRequestAutoMerge, editFiles, enablePullRequestAutoMerge, executeGithubEveTool, forkRepository, getBlame, getBranchRules, getCiFailureContext, getCommit, getFileContent, getGist, getIssue, getIssueContext, getPullRequest, getPullRequestContext, getReleaseContext, getRepository, getWorkflowRun, isEveApprovalDisabled, listBranches, listCodeScanningAlerts, listCommits, listDependabotAlerts, listEveToolDescriptors, listGistComments, listGists, listIssueComments, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listSecretScanningAlerts, listWorkflowJobs, listWorkflowRuns, listWorkflows, mapEveApprovalValue, mergePullRequest, removeLabel, rerunWorkflowRun, resolveEveApproval, resolveEveToolApproval, searchCode, searchRepositories, triggerWorkflow, updateGist, updateLabel };
473
+ export { GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, addIssueComment, addLabels, addPullRequestComment, addSubIssue, buildEveToolDefinition, buildEveToolMap, cancelWorkflowRun, closeIssue, createBranch, createCommitStatus, createEveGithubToolsDynamic, createGist, createGistComment, createGithubTools, createIssue, createLabel, createOrUpdateFile, createPullRequest, createPullRequestReview, createRepository, deleteGist, deleteLabel, disablePullRequestAutoMerge, editFiles, enablePullRequestAutoMerge, executeGithubEveTool, forkRepository, getBlame, getBranchRules, getCiFailureContext, getCollaboratorPermission, getCommit, getFileContent, getGist, getIssue, getIssueContext, getPullRequest, getPullRequestContext, getReleaseContext, getRepository, getWorkflowRun, isEveApprovalDisabled, listBranches, listCodeScanningAlerts, listCommits, listDependabotAlerts, listEveToolDescriptors, listGistComments, listGists, listIssueComments, listIssues, listLabels, listMilestones, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, listSecretScanningAlerts, listSubIssues, listWorkflowJobs, listWorkflowRuns, listWorkflows, mapEveApprovalValue, mergePullRequest, removeLabel, rerunWorkflowRun, resolveEveApproval, resolveEveToolApproval, searchCode, searchRepositories, triggerWorkflow, updateGist, updateLabel, updatePullRequestBranch };
432
474
 
433
475
  //# sourceMappingURL=eve.mjs.map
package/dist/eve.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"eve.mjs","names":[],"sources":["../src/eve.ts"],"sourcesContent":["/**\n * Legacy eve registration for `agent/tools/` (direct import).\n *\n * Prefer `@github-tools/eve-extension` for new agents. Shared runtime helpers\n * used by the extension live on `@github-tools/sdk/eve-runtime` — import those\n * from there rather than this subpath.\n */\n\nimport { buildEveToolDefinition, createEveGithubToolsDynamic } from './eve/build'\nimport type { EveToolFactoryOptions } from './eve/types'\n\nexport {\n buildEveToolDefinition,\n buildEveToolMap,\n createEveGithubToolsDynamic,\n listResolvedEveToolNames,\n listEveToolDescriptors,\n executeGithubEveTool,\n mapEveApprovalValue,\n resolveEveApproval,\n resolveEveToolApproval,\n isEveApprovalDisabled,\n PRESET_TOOLS,\n GITHUB_TOOL_NAMES,\n GITHUB_WRITE_TOOLS,\n MISSING_EVE_MESSAGE,\n} from './eve-runtime'\nexport type {\n EveApprovalConfig,\n EveApprovalValue,\n EveGithubToolsOptions,\n EveToolFactoryOptions,\n EveToolOverrides,\n GithubToolPreset,\n PresetToolName,\n CombinedPresetToolNames,\n GithubToolName,\n GithubWriteToolName,\n AllGithubTools,\n GithubToolsForPreset,\n PickGithubTools,\n CommitIdentity,\n} from './eve-runtime'\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 *\n * @deprecated Use the mountable `@github-tools/eve-extension` (`githubExtension`) instead — it is now the\n * recommended way to add GitHub tools to an eve agent. This direct import keeps working but is no longer\n * the recommended path. See https://github-tools.com/frameworks/eve-extension.\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/**\n * Get information about a GitHub repository including description, stars, forks, language, and default branch.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getRepository = factory('getRepository')\n/**\n * List branches in a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listBranches = factory('listBranches')\n/**\n * Get the content of a file from a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getFileContent = factory('getFileContent')\n/**\n * Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createBranch = factory('createBranch')\n/**\n * Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const forkRepository = factory('forkRepository')\n/**\n * Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createRepository = factory('createRepository')\n/**\n * Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createOrUpdateFile = factory('createOrUpdateFile')\n/**\n * Edit files in one commit, by exact text replacement or whole contents, on a new or existing branch, and optionally open a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const editFiles = factory('editFiles')\n/**\n * List the required checks, required reviews and other rules that protect a branch.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getBranchRules = factory('getBranchRules')\n/**\n * List code scanning alerts for a repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listCodeScanningAlerts = factory('listCodeScanningAlerts')\n/**\n * List Dependabot alerts for vulnerable dependencies.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listDependabotAlerts = factory('listDependabotAlerts')\n/**\n * List secret scanning alerts, without the secrets.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listSecretScanningAlerts = factory('listSecretScanningAlerts')\n/**\n * List pull requests for a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequests = factory('listPullRequests')\n/**\n * Get detailed information about a specific pull request.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getPullRequest = factory('getPullRequest')\n/**\n * Create a new pull request in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createPullRequest = factory('createPullRequest')\n/**\n * Merge a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const mergePullRequest = factory('mergePullRequest')\n/**\n * Merge a pull request once its required checks and reviews pass. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const enablePullRequestAutoMerge = factory('enablePullRequestAutoMerge')\n/**\n * Cancel a pending auto-merge. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const disablePullRequestAutoMerge = factory('disablePullRequestAutoMerge')\n/**\n * Add a comment to a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addPullRequestComment = factory('addPullRequestComment')\n/**\n * List files changed in a pull request, including diff status and patch content.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequestFiles = factory('listPullRequestFiles')\n/**\n * List reviews on a pull request (approvals, change requests, and comments).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequestReviews = factory('listPullRequestReviews')\n/**\n * Submit a pull request review with optional inline comments. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createPullRequestReview = factory('createPullRequestReview')\n/**\n * Fetch pull request details plus files, reviews, and optional CI checks in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getPullRequestContext = factory('getPullRequestContext')\n/**\n * Fetch an issue plus available label names and recent comments in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getIssueContext = factory('getIssueContext')\n/**\n * List issues for a GitHub repository (excludes pull requests).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listIssues = factory('listIssues')\n/**\n * Get detailed information about a specific issue.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getIssue = factory('getIssue')\n/**\n * List comments on a GitHub issue. Prefer getIssueContext for the first page when triaging.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listIssueComments = factory('listIssueComments')\n/**\n * Create a new issue in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createIssue = factory('createIssue')\n/**\n * Add a comment to a GitHub issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addIssueComment = factory('addIssueComment')\n/**\n * Close an open GitHub issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const closeIssue = factory('closeIssue')\n/**\n * List labels available in a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listLabels = factory('listLabels')\n/**\n * Add labels to an issue or pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addLabels = factory('addLabels')\n/**\n * Remove a label from an issue or pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const removeLabel = factory('removeLabel')\n/**\n * Create a label in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createLabel = factory('createLabel')\n/**\n * Update a label in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const updateLabel = factory('updateLabel')\n/**\n * Delete a label from a GitHub repository permanently. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const deleteLabel = factory('deleteLabel')\n/**\n * Search for code in GitHub repositories. Use qualifiers like \"repo:owner/name\" to scope the search.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const searchCode = factory('searchCode')\n/**\n * Search for GitHub repositories by keyword, topic, language, or other qualifiers.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const searchRepositories = factory('searchRepositories')\n/**\n * List commits for a GitHub repository. Filter by file path to see commits that touched a file.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listCommits = factory('listCommits')\n/**\n * Get detailed information about a specific commit, including files changed with additions and deletions.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCommit = factory('getCommit')\n/**\n * Line-level git blame for a file at a commit-like ref (branch, tag, or SHA).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getBlame = factory('getBlame')\n/**\n * List gists for the authenticated user or a specific user.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listGists = factory('listGists')\n/**\n * Get a gist by ID, including file contents.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getGist = factory('getGist')\n/**\n * List comments on a gist.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listGistComments = factory('listGistComments')\n/**\n * Create a new gist with one or more files. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createGist = factory('createGist')\n/**\n * Update an existing gist. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const updateGist = factory('updateGist')\n/**\n * Delete a gist permanently. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const deleteGist = factory('deleteGist')\n/**\n * Add a comment to a gist. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createGistComment = factory('createGistComment')\n/**\n * List GitHub Actions workflows in a repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflows = factory('listWorkflows')\n/**\n * List workflow runs for a repository, optionally filtered by workflow, branch, status, or event.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflowRuns = factory('listWorkflowRuns')\n/**\n * Get details of a specific workflow run including status, timing, and trigger info.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getWorkflowRun = factory('getWorkflowRun')\n/**\n * List jobs for a workflow run, including step-level status and timing.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflowJobs = factory('listWorkflowJobs')\n/**\n * Trigger a workflow via workflow_dispatch event. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const triggerWorkflow = factory('triggerWorkflow')\n/**\n * Cancel an in-progress workflow run. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const cancelWorkflowRun = factory('cancelWorkflowRun')\n/**\n * Re-run a workflow run, optionally only the failed jobs. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const rerunWorkflowRun = factory('rerunWorkflowRun')\n/**\n * Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCiFailureContext = factory('getCiFailureContext')\n/**\n * Fetch a release plus the previous release and tag comparison in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getReleaseContext = factory('getReleaseContext')\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,kBAAkB,SAAuD;CACvF,OAAO,4BAA4B,WAAW,CAAC,CAAC;AAClD;AAEA,SAAS,QAAQ,MAAoD;CACnE,QAAQ,YAAoC,uBAAuB,MAAM,OAAO;AAClF;;;;;;;AAQA,MAAa,gBAAgB,QAAQ,eAAe;;;;;;;AAOpD,MAAa,eAAe,QAAQ,cAAc;;;;;;;AAOlD,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,eAAe,QAAQ,cAA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Aa,cAAc,QAAQ,aAAa;;;;;;;AAOhD,MAAa,cAAc,QAAQ,aAAa;;;;;;;AAOhD,MAAa,cAAc,QAAQ,aAAa;;;;;;;AAOhD,MAAa,cAAc,QAAQ,aAAa;;;;;;;AAOhD,MAAa,aAAa,QAAQ,YAAY;;;;;;;AAO9C,MAAa,qBAAqB,QAAQ,oBAAoB;;;;;;;AAO9D,MAAa,cAAc,QAAQ,aAAa;;;;;;;AAOhD,MAAa,YAAY,QAAQ,WAAW;;;;;;;AAO5C,MAAa,WAAW,QAAQ,UAAU;;;;;;;AAO1C,MAAa,YAAY,QAAQ,WAAW;;;;;;;AAO5C,MAAa,UAAU,QAAQ,SAAS;;;;;;;AAOxC,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,aAAa,QAAQ,YAAY;;;;;;;AAO9C,MAAa,aAAa,QAAQ,YAAY;;;;;;;AAO9C,MAAa,aAAa,QAAQ,YAAY;;;;;;;AAO9C,MAAa,oBAAoB,QAAQ,mBAAmB;;;;;;;AAO5D,MAAa,gBAAgB,QAAQ,eAAe;;;;;;;AAOpD,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,kBAAkB,QAAQ,iBAAiB;;;;;;;AAOxD,MAAa,oBAAoB,QAAQ,mBAAmB;;;;;;;AAO5D,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,sBAAsB,QAAQ,qBAAqB;;;;;;;AAOhE,MAAa,oBAAoB,QAAQ,mBAAmB"}
1
+ {"version":3,"file":"eve.mjs","names":[],"sources":["../src/eve.ts"],"sourcesContent":["/**\n * Legacy eve registration for `agent/tools/` (direct import).\n *\n * Prefer `@github-tools/eve-extension` for new agents. Shared runtime helpers\n * used by the extension live on `@github-tools/sdk/eve-runtime` — import those\n * from there rather than this subpath.\n */\n\nimport { buildEveToolDefinition, createEveGithubToolsDynamic } from './eve/build'\nimport type { EveToolFactoryOptions } from './eve/types'\n\nexport {\n buildEveToolDefinition,\n buildEveToolMap,\n createEveGithubToolsDynamic,\n listResolvedEveToolNames,\n listEveToolDescriptors,\n executeGithubEveTool,\n mapEveApprovalValue,\n resolveEveApproval,\n resolveEveToolApproval,\n isEveApprovalDisabled,\n PRESET_TOOLS,\n GITHUB_TOOL_NAMES,\n GITHUB_WRITE_TOOLS,\n MISSING_EVE_MESSAGE,\n} from './eve-runtime'\nexport type {\n EveApprovalConfig,\n EveApprovalValue,\n EveGithubToolsOptions,\n EveToolFactoryOptions,\n EveToolOverrides,\n GithubToolPreset,\n PresetToolName,\n CombinedPresetToolNames,\n GithubToolName,\n GithubWriteToolName,\n AllGithubTools,\n GithubToolsForPreset,\n PickGithubTools,\n CommitIdentity,\n} from './eve-runtime'\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 *\n * @deprecated Use the mountable `@github-tools/eve-extension` (`githubExtension`) instead — it is now the\n * recommended way to add GitHub tools to an eve agent. This direct import keeps working but is no longer\n * the recommended path. See https://github-tools.com/frameworks/eve-extension.\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/**\n * Get information about a GitHub repository including description, stars, forks, language, and default branch.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getRepository = factory('getRepository')\n/**\n * List branches in a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listBranches = factory('listBranches')\n/**\n * Get the content of a file from a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getFileContent = factory('getFileContent')\n/**\n * Create a new branch in a GitHub repository from an existing branch or commit SHA. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createBranch = factory('createBranch')\n/**\n * Fork a GitHub repository to the authenticated user account or a specified organization. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const forkRepository = factory('forkRepository')\n/**\n * Create a new GitHub repository for the authenticated user or a specified organization. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createRepository = factory('createRepository')\n/**\n * Create or update a file in a GitHub repository. Provide the SHA when updating an existing file. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createOrUpdateFile = factory('createOrUpdateFile')\n/**\n * Edit files in one commit, by exact text replacement or whole contents, on a new or existing branch, and optionally open a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const editFiles = factory('editFiles')\n/**\n * List the required checks, required reviews and other rules that protect a branch.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getBranchRules = factory('getBranchRules')\n/**\n * Get a user's permission and role on a repository, to check whether they may trigger the bot or approve an action.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCollaboratorPermission = factory('getCollaboratorPermission')\n/**\n * List code scanning alerts for a repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listCodeScanningAlerts = factory('listCodeScanningAlerts')\n/**\n * List Dependabot alerts for vulnerable dependencies.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listDependabotAlerts = factory('listDependabotAlerts')\n/**\n * List secret scanning alerts, without the secrets.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listSecretScanningAlerts = factory('listSecretScanningAlerts')\n/**\n * List pull requests for a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequests = factory('listPullRequests')\n/**\n * Get detailed information about a specific pull request.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getPullRequest = factory('getPullRequest')\n/**\n * Create a new pull request in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createPullRequest = factory('createPullRequest')\n/**\n * Merge a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const mergePullRequest = factory('mergePullRequest')\n/**\n * Merge a pull request once its required checks and reviews pass. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const enablePullRequestAutoMerge = factory('enablePullRequestAutoMerge')\n/**\n * Cancel a pending auto-merge. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const disablePullRequestAutoMerge = factory('disablePullRequestAutoMerge')\n/**\n * Bring a pull request branch up to date by merging its base branch into it. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const updatePullRequestBranch = factory('updatePullRequestBranch')\n/**\n * Add a comment to a pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addPullRequestComment = factory('addPullRequestComment')\n/**\n * List files changed in a pull request, including diff status and patch content.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequestFiles = factory('listPullRequestFiles')\n/**\n * List reviews on a pull request (approvals, change requests, and comments).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listPullRequestReviews = factory('listPullRequestReviews')\n/**\n * Submit a pull request review with optional inline comments. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createPullRequestReview = factory('createPullRequestReview')\n/**\n * Fetch pull request details plus files, reviews, and optional CI checks in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getPullRequestContext = factory('getPullRequestContext')\n/**\n * Fetch an issue plus available label names and recent comments in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getIssueContext = factory('getIssueContext')\n/**\n * List issues for a GitHub repository (excludes pull requests).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listIssues = factory('listIssues')\n/**\n * Get detailed information about a specific issue.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getIssue = factory('getIssue')\n/**\n * List comments on a GitHub issue. Prefer getIssueContext for the first page when triaging.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listIssueComments = factory('listIssueComments')\n/**\n * Create a new issue in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createIssue = factory('createIssue')\n/**\n * Add a comment to a GitHub issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addIssueComment = factory('addIssueComment')\n/**\n * Close an open GitHub issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const closeIssue = factory('closeIssue')\n/**\n * List milestones in a GitHub repository with their due dates and issue counts.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listMilestones = factory('listMilestones')\n/**\n * List the sub-issues of an issue.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listSubIssues = factory('listSubIssues')\n/**\n * Add an existing issue as a sub-issue of another issue. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addSubIssue = factory('addSubIssue')\n/**\n * List labels available in a GitHub repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listLabels = factory('listLabels')\n/**\n * Add labels to an issue or pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const addLabels = factory('addLabels')\n/**\n * Remove a label from an issue or pull request. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const removeLabel = factory('removeLabel')\n/**\n * Create a label in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createLabel = factory('createLabel')\n/**\n * Update a label in a GitHub repository. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const updateLabel = factory('updateLabel')\n/**\n * Delete a label from a GitHub repository permanently. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const deleteLabel = factory('deleteLabel')\n/**\n * Search for code in GitHub repositories. Use qualifiers like \"repo:owner/name\" to scope the search.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const searchCode = factory('searchCode')\n/**\n * Search for GitHub repositories by keyword, topic, language, or other qualifiers.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const searchRepositories = factory('searchRepositories')\n/**\n * List commits for a GitHub repository. Filter by file path to see commits that touched a file.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listCommits = factory('listCommits')\n/**\n * Get detailed information about a specific commit, including files changed with additions and deletions.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCommit = factory('getCommit')\n/**\n * Line-level git blame for a file at a commit-like ref (branch, tag, or SHA).\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getBlame = factory('getBlame')\n/**\n * List gists for the authenticated user or a specific user.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listGists = factory('listGists')\n/**\n * Get a gist by ID, including file contents.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getGist = factory('getGist')\n/**\n * List comments on a gist.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listGistComments = factory('listGistComments')\n/**\n * Create a new gist with one or more files. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createGist = factory('createGist')\n/**\n * Update an existing gist. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const updateGist = factory('updateGist')\n/**\n * Delete a gist permanently. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const deleteGist = factory('deleteGist')\n/**\n * Add a comment to a gist. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createGistComment = factory('createGistComment')\n/**\n * List GitHub Actions workflows in a repository.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflows = factory('listWorkflows')\n/**\n * List workflow runs for a repository, optionally filtered by workflow, branch, status, or event.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflowRuns = factory('listWorkflowRuns')\n/**\n * Get details of a specific workflow run including status, timing, and trigger info.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getWorkflowRun = factory('getWorkflowRun')\n/**\n * List jobs for a workflow run, including step-level status and timing.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const listWorkflowJobs = factory('listWorkflowJobs')\n/**\n * Trigger a workflow via workflow_dispatch event. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const triggerWorkflow = factory('triggerWorkflow')\n/**\n * Cancel an in-progress workflow run. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const cancelWorkflowRun = factory('cancelWorkflowRun')\n/**\n * Re-run a workflow run, optionally only the failed jobs. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const rerunWorkflowRun = factory('rerunWorkflowRun')\n/**\n * Report a result on a commit as a commit status. Requires approval by default.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const createCommitStatus = factory('createCommitStatus')\n/**\n * Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getCiFailureContext = factory('getCiFailureContext')\n/**\n * Fetch a release plus the previous release and tag comparison in one call.\n *\n * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`\n * instead. See https://github-tools.com/frameworks/eve-extension.\n */\nexport const getReleaseContext = factory('getReleaseContext')\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA0DA,SAAgB,kBAAkB,SAAuD;CACvF,OAAO,4BAA4B,WAAW,CAAC,CAAC;AAClD;AAEA,SAAS,QAAQ,MAAoD;CACnE,QAAQ,YAAoC,uBAAuB,MAAM,OAAO;AAClF;;;;;;;AAQA,MAAa,gBAAgB,QAAQ,eAAe;;;;;;;AAOpD,MAAa,eAAe,QAAQ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