UNPKG

@measey/mycoder-agent

Version:

Agent module for mycoder - an AI-powered software development assistant

66 lines 1.88 kB
import { z } from 'zod'; import { Tool } from '../../core/types.js'; declare const parameterSchema: z.ZodObject<{ command: z.ZodString; description: z.ZodString; timeout: z.ZodOptional<z.ZodNumber>; showStdIn: z.ZodOptional<z.ZodBoolean>; showStdout: z.ZodOptional<z.ZodBoolean>; stdinContent: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { command: string; description: string; timeout?: number | undefined; showStdIn?: boolean | undefined; showStdout?: boolean | undefined; stdinContent?: string | undefined; }, { command: string; description: string; timeout?: number | undefined; showStdIn?: boolean | undefined; showStdout?: boolean | undefined; stdinContent?: string | undefined; }>; declare const returnSchema: z.ZodUnion<[z.ZodObject<{ mode: z.ZodLiteral<"sync">; stdout: z.ZodString; stderr: z.ZodString; exitCode: z.ZodNumber; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { exitCode: number; mode: "sync"; stdout: string; stderr: string; error?: string | undefined; }, { exitCode: number; mode: "sync"; stdout: string; stderr: string; error?: string | undefined; }>, z.ZodObject<{ mode: z.ZodLiteral<"async">; shellId: z.ZodString; stdout: z.ZodString; stderr: z.ZodString; error: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { mode: "async"; stdout: string; stderr: string; shellId: string; error?: string | undefined; }, { mode: "async"; stdout: string; stderr: string; shellId: string; error?: string | undefined; }>]>; type Parameters = z.infer<typeof parameterSchema>; type ReturnType = z.infer<typeof returnSchema>; export declare const shellStartTool: Tool<Parameters, ReturnType>; export {}; //# sourceMappingURL=shellStart.d.ts.map