UNPKG

@plastichub/osr-ai-tools

Version:

CLI and library for LLM tools

146 lines (145 loc) 3.94 kB
import { z } from 'zod'; /** Schema for listing files in a directory */ export declare const FileListingOptionsSchema: z.ZodObject<{ directory: z.ZodString; pattern: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { directory?: string; pattern?: string; }, { directory?: string; pattern?: string; }>; /** Schema for file removal operations */ export declare const FileRemovalOptionsSchema: z.ZodObject<{ path: z.ZodString; }, "strip", z.ZodTypeAny, { path?: string; }, { path?: string; }>; /** Schema for git commit operations */ export declare const GitCommitSchema: z.ZodObject<{ files: z.ZodArray<z.ZodString, "many">; message: z.ZodString; }, "strip", z.ZodTypeAny, { message?: string; files?: string[]; }, { message?: string; files?: string[]; }>; /** Schema for git revert operations */ export declare const GitRevertSchema: z.ZodObject<{ files: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { files?: string[]; }, { files?: string[]; }>; /** Schema for git version switch operations */ export declare const GitSwitchVersionSchema: z.ZodObject<{ branch: z.ZodString; remote: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { branch?: string; remote?: string; }, { branch?: string; remote?: string; }>; /** Schema for git raw file retrieval */ export declare const GitRawFileSchema: z.ZodEffects<z.ZodObject<{ url: z.ZodOptional<z.ZodString>; repo: z.ZodOptional<z.ZodString>; path: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { path?: string; url?: string; repo?: string; }, { path?: string; url?: string; repo?: string; }>, { path?: string; url?: string; repo?: string; }, { path?: string; url?: string; repo?: string; }>; /** Schema for npm run command */ export declare const NpmRunSchema: z.ZodObject<{ command: z.ZodString; args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { command?: string; args?: string[]; }, { command?: string; args?: string[]; }>; /** Schema for terminal command execution */ export declare const TerminalCommandSchema: z.ZodObject<{ command: z.ZodString; args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; cwd: z.ZodOptional<z.ZodString>; background: z.ZodOptional<z.ZodBoolean>; window: z.ZodOptional<z.ZodBoolean>; detached: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { command?: string; args?: string[]; cwd?: string; background?: boolean; window?: boolean; detached?: boolean; }, { command?: string; args?: string[]; cwd?: string; background?: boolean; window?: boolean; detached?: boolean; }>; /** Schema for tool invocation parameters */ export declare const InvokeToolSchema: z.ZodObject<{ tools: z.ZodString; function: z.ZodString; target: z.ZodDefault<z.ZodString>; params: z.ZodOptional<z.ZodString>; output: z.ZodOptional<z.ZodString>; env_key: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { function?: string; tools?: string; params?: string; target?: string; output?: string; env_key?: string; }, { function?: string; tools?: string; params?: string; target?: string; output?: string; env_key?: string; }>; /** Schema for list command options */ export declare const ListCommandSchema: z.ZodObject<{ output: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { output?: string; }, { output?: string; }>; /** Schema for tool listing options */ export declare const ToolListingOptionsSchema: z.ZodObject<{ output: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { output?: string; }, { output?: string; }>;