import { _ as CommitIdentity, a as GithubTokenInput, d as GithubToolPreset, g as GithubWriteToolName, h as GithubToolName, s as GithubToolsContext } from "./tool-types-BsfalcyC.mjs"; import { z } from "zod"; import { ToolModelOutput } from "eve/tools"; import { Approval } from "eve/tools/approval"; //#region src/eve/types.d.ts /** * Approval value for eve tools. * - `true` / `'always'` → require approval on every call * - `false` / `'never'` → skip approval * - `'once'` → require approval only the first time per session * - predicate → input-dependent gate (eve `Approval` shape) * - eve helpers (`always()`, `once()`, `never()`) → passthrough */ type EveApprovalValue = boolean | 'always' | 'once' | 'never' | Approval; type EveApprovalConfig = boolean | Partial>; type EveToolOverrides = Partial ToolModelOutput | Promise; /** Zod (or Standard Schema) output schema — plain JSON objects are not supported by eve `defineTool`. */ outputSchema?: z.ZodType; }>>; type EveGithubToolsOptions = { /** GitHub token string or async provider. Defaults to `process.env.GITHUB_TOKEN`. */ token?: GithubTokenInput; /** * Restrict tools to a predefined preset. * * @see {@link GithubToolPreset} for available presets and included tools. */ preset?: GithubToolPreset | GithubToolPreset[]; /** * Hand-pick an exact set of tool names, either standalone (no `preset`) or * additively on top of a `preset` — the effective set is the union of both. * To remove specific tools from a `preset` (or from `include`), use `exclude`. */ include?: GithubToolName[]; /** * Remove specific tool names from the resolved set, applied after `preset` * and `include` are combined. Useful for taking a `preset` and dropping a * couple of tools you don't want exposed. */ exclude?: GithubToolName[]; /** * Control whether write operations require user approval before execution. * * @see {@link EveApprovalConfig} for global and per-tool options. */ requireApproval?: EveApprovalConfig; /** * Per-tool overrides for description, approval, output shaping, and output schema. * * @see {@link GithubToolName} for valid tool keys. */ overrides?: EveToolOverrides; /** Default author for commit-creating tools. Falls back to the authenticated user when omitted. */ author?: CommitIdentity; /** Default committer for commit-creating tools. Falls back to the authenticated user when omitted. */ committer?: CommitIdentity; /** Co-authors to attribute on all commits created by tools. */ coAuthors?: CommitIdentity[]; /** * Default owner / repo / PR / issue / ref values. * Softens matching tool input fields and fills them when omitted. */ context?: GithubToolsContext; }; type EveToolFactoryOptions = Omit; //#endregion export { EveToolOverrides as a, EveToolFactoryOptions as i, EveApprovalValue as n, EveGithubToolsOptions as r, EveApprovalConfig as t }; //# sourceMappingURL=types-BKXTeCqT.d.mts.map