@github-tools/sdk 1.19.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 (64) hide show
  1. package/README.md +97 -30
  2. package/dist/approval-policy-CEMMPq92.mjs +17 -0
  3. package/dist/approval-policy-CEMMPq92.mjs.map +1 -0
  4. package/dist/connect/eve.d.mts +2 -2
  5. package/dist/connect/eve.d.mts.map +1 -1
  6. package/dist/connect/eve.mjs +1 -1
  7. package/dist/connect.d.mts +15 -24
  8. package/dist/connect.d.mts.map +1 -1
  9. package/dist/connect.mjs +2 -2
  10. package/dist/{cores-BeLZwcde.mjs → cores-meFAMt2D.mjs} +41 -2
  11. package/dist/cores-meFAMt2D.mjs.map +1 -0
  12. package/dist/{tool-types-CrC80SIL.d.mts → dry-run-DXckOam2.d.mts} +437 -54
  13. package/dist/dry-run-DXckOam2.d.mts.map +1 -0
  14. package/dist/evaluation-DJHINyAu.mjs +311 -0
  15. package/dist/evaluation-DJHINyAu.mjs.map +1 -0
  16. package/dist/{eve-runtime-DRh2QJI7.d.mts → eve-runtime-B_CJE9JV.d.mts} +21 -7
  17. package/dist/eve-runtime-B_CJE9JV.d.mts.map +1 -0
  18. package/dist/{eve-runtime-YTxfrWP-.mjs → eve-runtime-DPzMPCLt.mjs} +49 -15
  19. package/dist/eve-runtime-DPzMPCLt.mjs.map +1 -0
  20. package/dist/eve-runtime.d.mts +5 -5
  21. package/dist/eve-runtime.mjs +4 -4
  22. package/dist/eve.d.mts +95 -4
  23. package/dist/eve.d.mts.map +1 -1
  24. package/dist/eve.mjs +94 -3
  25. package/dist/eve.mjs.map +1 -1
  26. package/dist/{index-DkZvveZP.d.mts → index-CzzrtCVj.d.mts} +119 -348
  27. package/dist/index-CzzrtCVj.d.mts.map +1 -0
  28. package/dist/index.d.mts +3 -3
  29. package/dist/index.mjs +4 -3
  30. package/dist/{interrupts-C_lUXMdd.d.mts → interrupts-BSDPwdJ2.d.mts} +2 -2
  31. package/dist/interrupts-BSDPwdJ2.d.mts.map +1 -0
  32. package/dist/{src-Bx5p1Unc.mjs → src-BlhrSieS.mjs} +491 -23
  33. package/dist/src-BlhrSieS.mjs.map +1 -0
  34. package/dist/tanstack/interrupts.d.mts +1 -1
  35. package/dist/tanstack.d.mts +1705 -204
  36. package/dist/tanstack.d.mts.map +1 -1
  37. package/dist/tanstack.mjs +53 -19
  38. package/dist/tanstack.mjs.map +1 -1
  39. package/dist/{token-Bh8nPj66.mjs → token-BLps09gm.mjs} +36 -116
  40. package/dist/token-BLps09gm.mjs.map +1 -0
  41. package/dist/{types-BmwOpI5-.d.mts → types-Bln8U42J.d.mts} +3 -3
  42. package/dist/{types-BmwOpI5-.d.mts.map → types-Bln8U42J.d.mts.map} +1 -1
  43. package/dist/{types-CPAsEMzx.d.mts → types-C7O2lwwz.d.mts} +14 -2
  44. package/dist/{types-CPAsEMzx.d.mts.map → types-C7O2lwwz.d.mts.map} +1 -1
  45. package/dist/workflow.d.mts +41 -40
  46. package/dist/workflow.d.mts.map +1 -1
  47. package/dist/workflow.mjs +20 -47
  48. package/dist/workflow.mjs.map +1 -1
  49. package/dist/{write-tools-BaoTUCg7.mjs → write-tools-w-8tjnDQ.mjs} +1360 -124
  50. package/dist/write-tools-w-8tjnDQ.mjs.map +1 -0
  51. package/package.json +4 -6
  52. package/dist/cores-BeLZwcde.mjs.map +0 -1
  53. package/dist/evaluation-f-2QwBid.mjs +0 -210
  54. package/dist/evaluation-f-2QwBid.mjs.map +0 -1
  55. package/dist/eve-runtime-DRh2QJI7.d.mts.map +0 -1
  56. package/dist/eve-runtime-YTxfrWP-.mjs.map +0 -1
  57. package/dist/index-DkZvveZP.d.mts.map +0 -1
  58. package/dist/instructions-BuypoY0x.mjs +0 -148
  59. package/dist/instructions-BuypoY0x.mjs.map +0 -1
  60. package/dist/interrupts-C_lUXMdd.d.mts.map +0 -1
  61. package/dist/src-Bx5p1Unc.mjs.map +0 -1
  62. package/dist/token-Bh8nPj66.mjs.map +0 -1
  63. package/dist/tool-types-CrC80SIL.d.mts.map +0 -1
  64. package/dist/write-tools-BaoTUCg7.mjs.map +0 -1
@@ -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,\n }\n return runGithubToolStep(name, input, ctx)\n}\n"],"mappings":";;;;;;;;;;;;AAiBA,MAAa,sBACX;AAEF,SAAgB,cAA8B;CAC5C,OAAO;AACT;AAEA,SAAgB,wBAA2C;CACzD,OAAO;AACT;;;;;;;;AChBA,SAAgB,sBAAsB,OAA8C;CAClF,OAAO,UAAU,SAAS,UAAU;AACtC;AAEA,SAAgB,oBAAoB,OAAy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5 +1,5 @@
1
- import { o as githubToolsErrors, s as GithubRateLimit } from "./index-DkZvveZP.mjs";
2
- import { D as PRESET_TOOLS, E as GithubToolPreset, M as GithubWriteToolName, O as PresetToolName, S as GithubTokenCall, T as CombinedPresetToolNames, _ as needsAutoApproval, b as AUTO_APPROVAL_TOOLS, g as latestUserText, h as GithubEvaluationOptions, i as PickGithubTools, j as GithubToolName, k as GITHUB_TOOL_NAMES, o as CommitIdentity, r as GithubToolsForPreset, t as AllGithubTools, v as selectPresets, w as resolveGithubToken, y as GITHUB_WRITE_TOOLS } from "./tool-types-CrC80SIL.mjs";
3
- import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-CPAsEMzx.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-DRh2QJI7.mjs";
5
- export { AUTO_APPROVAL_TOOLS, type AllGithubTools, 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, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, executeGithubEveTool, formatGithubEveToolOutput, githubToolsErrors, hasGithubEveToolModelOutput, isEveApprovalDisabled, latestUserText, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, needsAutoApproval, resolveEveApproval, resolveEveToolApproval, resolveGithubToken, selectPresets };
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 { m as PRESET_TOOLS, n as GITHUB_TOOL_NAMES, oa as githubToolsErrors, s as AUTO_APPROVAL_TOOLS, t as GITHUB_WRITE_TOOLS, v as resolveGithubToken } from "./write-tools-BaoTUCg7.mjs";
2
- import { n as needsAutoApproval, r as selectPresets, t as latestUserText } from "./evaluation-f-2QwBid.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-YTxfrWP-.mjs";
4
- export { AUTO_APPROVAL_TOOLS, GITHUB_TOOL_NAMES, GITHUB_WRITE_TOOLS, MISSING_EVE_MESSAGE, PRESET_TOOLS, buildEveToolDefinition, buildEveToolMap, createEveGithubToolsDynamic, executeGithubEveTool, formatGithubEveToolOutput, githubToolsErrors, hasGithubEveToolModelOutput, isEveApprovalDisabled, latestUserText, listEveToolDescriptors, listResolvedEveToolNames, mapEveApprovalValue, needsAutoApproval, resolveEveApproval, resolveEveToolApproval, resolveGithubToken, selectPresets };
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 { D as PRESET_TOOLS, E as GithubToolPreset, M as GithubWriteToolName, O as PresetToolName, T as CombinedPresetToolNames, i as PickGithubTools, j as GithubToolName, k as GITHUB_TOOL_NAMES, o as CommitIdentity, r as GithubToolsForPreset, t as AllGithubTools, y as GITHUB_WRITE_TOOLS } from "./tool-types-CrC80SIL.mjs";
2
- import { a as EveToolOverrides, i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-CPAsEMzx.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-DRh2QJI7.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.
@@ -16,7 +16,7 @@ import { a as resolveEveToolApproval, c as createEveGithubToolsDynamic, d as lis
16
16
  * recommended way to add GitHub tools to an eve agent. This direct import keeps working but is no longer
17
17
  * the recommended path. See https://github-tools.com/frameworks/eve-extension.
18
18
  */
19
- export declare function createGithubTools(options?: EveGithubToolsOptions): import("eve").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve").DynamicContext>;
19
+ export declare function createGithubTools(options?: EveGithubToolsOptions): import("eve/tools").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve/tools").DynamicContext>;
20
20
  /**
21
21
  * Get information about a GitHub repository including description, stars, forks, language, and default branch.
22
22
  *
@@ -66,6 +66,48 @@ export declare const createRepository: (options?: EveToolFactoryOptions) => impo
66
66
  * instead. See https://github-tools.com/frameworks/eve-extension.
67
67
  */
68
68
  export declare const createOrUpdateFile: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
69
+ /**
70
+ * 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.
71
+ *
72
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
73
+ * instead. See https://github-tools.com/frameworks/eve-extension.
74
+ */
75
+ export declare const editFiles: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
76
+ /**
77
+ * List the required checks, required reviews and other rules that protect a branch.
78
+ *
79
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
80
+ * instead. See https://github-tools.com/frameworks/eve-extension.
81
+ */
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>;
90
+ /**
91
+ * List code scanning alerts for a repository.
92
+ *
93
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
94
+ * instead. See https://github-tools.com/frameworks/eve-extension.
95
+ */
96
+ export declare const listCodeScanningAlerts: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
97
+ /**
98
+ * List Dependabot alerts for vulnerable dependencies.
99
+ *
100
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
101
+ * instead. See https://github-tools.com/frameworks/eve-extension.
102
+ */
103
+ export declare const listDependabotAlerts: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
104
+ /**
105
+ * List secret scanning alerts, without the secrets.
106
+ *
107
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
108
+ * instead. See https://github-tools.com/frameworks/eve-extension.
109
+ */
110
+ export declare const listSecretScanningAlerts: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
69
111
  /**
70
112
  * List pull requests for a GitHub repository.
71
113
  *
@@ -94,6 +136,27 @@ export declare const createPullRequest: (options?: EveToolFactoryOptions) => imp
94
136
  * instead. See https://github-tools.com/frameworks/eve-extension.
95
137
  */
96
138
  export declare const mergePullRequest: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
139
+ /**
140
+ * Merge a pull request once its required checks and reviews pass. Requires approval by default.
141
+ *
142
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
143
+ * instead. See https://github-tools.com/frameworks/eve-extension.
144
+ */
145
+ export declare const enablePullRequestAutoMerge: (options?: EveToolFactoryOptions) => import("eve/tools").ToolDefinition<unknown, unknown>;
146
+ /**
147
+ * Cancel a pending auto-merge. Requires approval by default.
148
+ *
149
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
150
+ * instead. See https://github-tools.com/frameworks/eve-extension.
151
+ */
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>;
97
160
  /**
98
161
  * Add a comment to a pull request. Requires approval by default.
99
162
  *
@@ -178,6 +241,27 @@ export declare const addIssueComment: (options?: EveToolFactoryOptions) => impor
178
241
  * instead. See https://github-tools.com/frameworks/eve-extension.
179
242
  */
180
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>;
181
265
  /**
182
266
  * List labels available in a GitHub repository.
183
267
  *
@@ -353,6 +437,13 @@ export declare const cancelWorkflowRun: (options?: EveToolFactoryOptions) => imp
353
437
  * instead. See https://github-tools.com/frameworks/eve-extension.
354
438
  */
355
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>;
356
447
  /**
357
448
  * Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.
358
449
  *
@@ -1 +1 @@
1
- {"version":3,"file":"eve.d.mts","names":[],"sources":["../src/eve.ts"],"mappings":";;;;;;;;;;;;;;;;;;wBA0DgB,kBAAkB,UAAlB,sCAAuE,oCAAA,iCAAA;;;;;;;qBAc1E,gBAAa,UATN,8CAAqB;;;;;;;qBAgB5B,eAAY,UAhBL,8CAAqB;;;;;;;qBAuB5B,iBAAc,UAvBP,8CAAqB;;;;;;;qBA8B5B,eAAY,UA9BL,8CAAqB;;;;;;;qBAqC5B,iBAAc,UArCP,8CAAqB;;;;;;;qBA4C5B,mBAAgB,UA5CT,8CAAqB;;;;;;;qBAmD5B,qBAAkB,UAnDX,8CAAqB;;;;;;;qBA0D5B,mBAAgB,UA1DT,8CAAqB;;;;;;;qBAiE5B,iBAAc,UAjEP,8CAAqB;;;;;;;qBAwE5B,oBAAiB,UAxEV,8CAAqB;;;;;;;qBA+E5B,mBAAgB,UA/ET,8CAAqB;;;;;;;qBAsF5B,wBAAqB,UAtFd,8CAAqB;;;;;;;qBA6F5B,uBAAoB,UA7Fb,8CAAqB;;;;;;;qBAoG5B,yBAAsB,UApGf,8CAAqB;;;;;;;qBA2G5B,0BAAuB,UA3GhB,8CAAqB;;;;;;;qBAkH5B,wBAAqB,UAlHd,8CAAqB;;;;;;;qBAyH5B,kBAAe,UAzHR,8CAAqB;;;;;;;qBAgI5B,aAAU,UAhIH,8CAAqB;;;;;;;qBAuI5B,WAAQ,UAvID,8CAAqB;;;;;;;qBA8I5B,oBAAiB,UA9IV,8CAAqB;;;;;;;qBAqJ5B,cAAW,UArJJ,8CAAqB;;;;;;;qBA4J5B,kBAAe,UA5JR,8CAAqB;;;;;;;qBAmK5B,aAAU,UAnKH,8CAAqB;;;;;;;qBA0K5B,aAAU,UA1KH,8CAAqB;;;;;;;qBAiL5B,YAAS,UAjLF,8CAA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m as PRESET_TOOLS, n as GITHUB_TOOL_NAMES, t as GITHUB_WRITE_TOOLS } from "./write-tools-BaoTUCg7.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-YTxfrWP-.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).
@@ -78,6 +78,48 @@ const createRepository = factory("createRepository");
78
78
  */
79
79
  const createOrUpdateFile = factory("createOrUpdateFile");
80
80
  /**
81
+ * 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.
82
+ *
83
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
84
+ * instead. See https://github-tools.com/frameworks/eve-extension.
85
+ */
86
+ const editFiles = factory("editFiles");
87
+ /**
88
+ * List the required checks, required reviews and other rules that protect a branch.
89
+ *
90
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
91
+ * instead. See https://github-tools.com/frameworks/eve-extension.
92
+ */
93
+ const getBranchRules = factory("getBranchRules");
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
+ /**
102
+ * List code scanning alerts for a repository.
103
+ *
104
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
105
+ * instead. See https://github-tools.com/frameworks/eve-extension.
106
+ */
107
+ const listCodeScanningAlerts = factory("listCodeScanningAlerts");
108
+ /**
109
+ * List Dependabot alerts for vulnerable dependencies.
110
+ *
111
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
112
+ * instead. See https://github-tools.com/frameworks/eve-extension.
113
+ */
114
+ const listDependabotAlerts = factory("listDependabotAlerts");
115
+ /**
116
+ * List secret scanning alerts, without the secrets.
117
+ *
118
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
119
+ * instead. See https://github-tools.com/frameworks/eve-extension.
120
+ */
121
+ const listSecretScanningAlerts = factory("listSecretScanningAlerts");
122
+ /**
81
123
  * List pull requests for a GitHub repository.
82
124
  *
83
125
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -106,6 +148,27 @@ const createPullRequest = factory("createPullRequest");
106
148
  */
107
149
  const mergePullRequest = factory("mergePullRequest");
108
150
  /**
151
+ * Merge a pull request once its required checks and reviews pass. Requires approval by default.
152
+ *
153
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
154
+ * instead. See https://github-tools.com/frameworks/eve-extension.
155
+ */
156
+ const enablePullRequestAutoMerge = factory("enablePullRequestAutoMerge");
157
+ /**
158
+ * Cancel a pending auto-merge. Requires approval by default.
159
+ *
160
+ * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
161
+ * instead. See https://github-tools.com/frameworks/eve-extension.
162
+ */
163
+ const disablePullRequestAutoMerge = factory("disablePullRequestAutoMerge");
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
+ /**
109
172
  * Add a comment to a pull request. Requires approval by default.
110
173
  *
111
174
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -190,6 +253,27 @@ const addIssueComment = factory("addIssueComment");
190
253
  */
191
254
  const closeIssue = factory("closeIssue");
192
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
+ /**
193
277
  * List labels available in a GitHub repository.
194
278
  *
195
279
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -365,6 +449,13 @@ const cancelWorkflowRun = factory("cancelWorkflowRun");
365
449
  */
366
450
  const rerunWorkflowRun = factory("rerunWorkflowRun");
367
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
+ /**
368
459
  * Diagnose CI failures for a ref — combined status, failing checks, and failed workflow jobs in one call.
369
460
  *
370
461
  * @deprecated Cherry-picking eve tool factories directly is deprecated — mount `@github-tools/eve-extension`
@@ -379,6 +470,6 @@ const getCiFailureContext = factory("getCiFailureContext");
379
470
  */
380
471
  const getReleaseContext = factory("getReleaseContext");
381
472
  //#endregion
382
- 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, executeGithubEveTool, forkRepository, getBlame, getCiFailureContext, getCommit, getFileContent, getGist, getIssue, getIssueContext, getPullRequest, getPullRequestContext, getReleaseContext, getRepository, getWorkflowRun, isEveApprovalDisabled, listBranches, listCommits, listEveToolDescriptors, listGistComments, listGists, listIssueComments, listIssues, listLabels, listPullRequestFiles, listPullRequestReviews, listPullRequests, listResolvedEveToolNames, 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 };
383
474
 
384
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 * 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 * 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,cAAc;;;;;;;AAOlD,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,mBAAmB,QAAQ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;;;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,cAAc;;;;;;;AAOlD,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,eAAe,QAAQ,cAAc;;;;;;;AAOlD,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,mBAAmB,QAAQ,kBAAkB;;;;;;;AAO1D,MAAa,qBAAqB,QAAQ,oBAAoB;;;;;;;AAO9D,MAAa,YAAY,QAAQ,WAAW;;;;;;;AAO5C,MAAa,iBAAiB,QAAQ,gBAAgB;;;;;;;AAOtD,MAAa,4BAA4B,QAAQ,2BAA2B;;;;;;;AAO5E,MAAa,yBAAyB,QAAQ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