import { d as GithubToolPreset, g as GithubWriteToolName, h as GithubToolName, p as PresetToolName, u as CombinedPresetToolNames } from "./tool-types-BsfalcyC.mjs"; import { i as EveToolFactoryOptions, n as EveApprovalValue, r as EveGithubToolsOptions, t as EveApprovalConfig } from "./types-BKXTeCqT.mjs"; import "./index-JH3DVh1R.mjs"; import { z } from "zod"; import { ToolDefinition, ToolModelOutput } from "eve/tools"; import { Approval, ApprovalPolicy } from "eve/tools/approval"; //#region src/eve/registry.d.ts /** Whether a GitHub tool has a built-in eve `toModelOutput` projection. */ declare function hasGithubEveToolModelOutput(name: GithubToolName): boolean; /** * Apply the built-in eve `toModelOutput` projection for a tool. * Strips `rateLimit` so it never reaches the model. Tools without a dedicated * formatter get `{ type: 'json', value }` of the remaining payload. * Used by `@github-tools/eve-extension` so the callback only closes over a serializable tool name. */ declare function formatGithubEveToolOutput(name: GithubToolName, output: unknown): ToolModelOutput; //#endregion //#region src/eve/build.d.ts type BuildOptions = EveGithubToolsOptions | (EveToolFactoryOptions & { preset?: EveGithubToolsOptions['preset']; }); type EveToolMap = Partial>; declare function buildEveToolDefinition(name: GithubToolName, options?: BuildOptions): ToolDefinition; declare function buildEveToolMap(options?: EveGithubToolsOptions): EveToolMap; declare function createEveGithubToolsDynamic(options?: EveGithubToolsOptions): import("eve/tools").DynamicSentinel>>>; declare function listResolvedEveToolNames(options?: { preset?: undefined; include?: undefined; exclude?: undefined; }): GithubToolName[]; declare function listResolvedEveToolNames

(options: { preset: P; include?: undefined; exclude?: undefined; }): PresetToolName

[]; declare function listResolvedEveToolNames

(options: { preset: P; include?: undefined; exclude?: undefined; }): CombinedPresetToolNames

[]; declare function listResolvedEveToolNames(options: Pick): GithubToolName[]; /** * Tool descriptors (no `execute`) for authored eve `defineTool` loops. * Prefer this when registering tools outside the SDK package so durable transforms can hoist inline execute. */ declare function listEveToolDescriptors(options?: EveGithubToolsOptions): { name: "getPullRequest" | "listPullRequests" | "listPullRequestFiles" | "listPullRequestReviews" | "listPullRequestReviewThreads" | "getPullRequestContext" | "getFileContent" | "listCommits" | "getCommit" | "getBlame" | "compareCommits" | "getRepository" | "listBranches" | "searchCode" | "listCheckRuns" | "getCombinedStatus" | "updatePullRequest" | "addPullRequestComment" | "updatePullRequestComment" | "deletePullRequestComment" | "createPullRequestReview" | "replyToReviewComment" | "resolveReviewThread" | "requestReviewers" | "listIssues" | "getIssueContext" | "listIssueComments" | "createIssue" | "addIssueComment" | "updateIssueComment" | "deleteIssueComment" | "closeIssue" | "updateIssue" | "addLabels" | "removeLabel" | "createLabel" | "updateLabel" | "deleteLabel" | "addAssignees" | "removeAssignees" | "listIssueReactions" | "addIssueReaction" | "listCommentReactions" | "addCommentReaction" | "searchRepositories" | "searchIssues" | "listWorkflows" | "listWorkflowRuns" | "getWorkflowRun" | "listWorkflowJobs" | "getWorkflowJobLogs" | "getCiFailureContext" | "triggerWorkflow" | "cancelWorkflowRun" | "rerunWorkflowRun" | "getRepositoryTree" | "getIssue" | "listDiscussions" | "getDiscussion" | "listLabels" | "listGists" | "getGist" | "listGistComments" | "listReleases" | "getLatestRelease" | "getRelease" | "getReleaseContext" | "createRelease" | "updateRelease" | "deleteRelease" | "addDiscussionComment" | "listNotifications" | "markNotificationRead" | "createBranch" | "deleteBranch" | "createOrUpdateFile" | "createPullRequest" | "forkRepository" | "createRepository" | "mergePullRequest" | "createGist" | "updateGist" | "deleteGist" | "createGistComment"; description: string; inputSchema: import("zod").ZodType>; writeTool: GithubWriteToolName | undefined; toModelOutput: ((output: unknown) => import("eve/tools").ToolModelOutput) | undefined; }[]; /** * Execute a GitHub tool by name with the given eve options (token/context/attribution). * Used by `@github-tools/eve-extension` so `execute` only closes over a serializable tool name. */ declare function executeGithubEveTool(name: GithubToolName, input: Record, options?: EveGithubToolsOptions): Promise; //#endregion //#region src/eve/approval.d.ts /** * `false` / `'never'` should omit the tool `approval` field entirely. * eve treats a missing `approval` like `never()`; attaching `never()` is * redundant and has caused approval UI noise on some channels. */ declare function isEveApprovalDisabled(value: EveApprovalValue | undefined): boolean; declare function mapEveApprovalValue(value: EveApprovalValue): ApprovalPolicy; declare function resolveEveApproval(toolName: GithubWriteToolName, config: EveApprovalConfig | undefined): ApprovalPolicy; /** * Approval to attach on a write tool, or `undefined` to omit the field. * Prefer this when building `defineTool` values so `false` / `'never'` do not * attach a redundant `never()` handler. */ declare function resolveEveToolApproval(toolName: GithubWriteToolName, config: EveApprovalConfig | undefined, override?: EveApprovalValue): Approval | undefined; //#endregion //#region src/eve/load-eve.d.ts /** * @deprecated Never thrown since eve moved to static ESM imports — a missing * `eve` package now fails at module resolution with the bundler/runtime's own * error. Kept only for backward compatibility of the public export; do not * match on it. Will be removed in the next major. */ declare const MISSING_EVE_MESSAGE = "The \"eve\" package is required to use @github-tools/sdk/eve. Install it with: pnpm add eve"; //#endregion export { resolveEveToolApproval as a, createEveGithubToolsDynamic as c, listResolvedEveToolNames as d, formatGithubEveToolOutput as f, resolveEveApproval as i, executeGithubEveTool as l, isEveApprovalDisabled as n, buildEveToolDefinition as o, hasGithubEveToolModelOutput as p, mapEveApprovalValue as r, buildEveToolMap as s, MISSING_EVE_MESSAGE as t, listEveToolDescriptors as u }; //# sourceMappingURL=eve-runtime-BnWUzXdV.d.mts.map