UNPKG

@mastra/core

Version:
69 lines • 3.78 kB
import { z } from 'zod/v4'; /** * Base input schema for execute_command (no background param). * Extended with `background` in tools.ts when sandbox.processes exists. */ export declare const executeCommandInputSchema: z.ZodObject<{ command: z.ZodString; timeout: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNumber, unknown>>>; cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>; tail: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNumber, unknown>>>; }, z.core.$strip>; /** Schema with background param included. */ export declare const executeCommandWithBackgroundSchema: z.ZodObject<{ command: z.ZodString; timeout: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNumber, unknown>>>; cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>; tail: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNumber, unknown>>>; background: z.ZodOptional<z.ZodBoolean>; }, z.core.$strip>; /** Base schema with a required leading `description` (used when `requireDescription` is set). */ export declare const executeCommandWithDescriptionSchema: z.ZodObject<{ command: z.ZodString; timeout: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNumber, unknown>>>; cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>; tail: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNumber, unknown>>>; description: z.ZodString; }, z.core.$strip>; /** Background schema with a required leading `description`. */ export declare const executeCommandWithDescriptionAndBackgroundSchema: z.ZodObject<{ command: z.ZodString; timeout: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNumber, unknown>>>; cwd: z.ZodOptional<z.ZodNullable<z.ZodString>>; tail: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodNumber, unknown>>>; background: z.ZodOptional<z.ZodBoolean>; description: z.ZodString; }, z.core.$strip>; /** Foreground-only tool (no background param in schema). */ export declare const executeCommandTool: import("../../tools").Tool<{ command: string; timeout?: number | null | undefined; cwd?: string | null | undefined; tail?: number | null | undefined; }, string, unknown, unknown, import("../../tools").ToolExecutionContext<unknown, unknown, unknown>, "mastra_workspace_execute_command", unknown>; /** Tool with background param in schema (used when sandbox.processes exists). */ export declare const executeCommandWithBackgroundTool: import("../../tools").Tool<{ command: string; timeout?: number | null | undefined; cwd?: string | null | undefined; tail?: number | null | undefined; background?: boolean | undefined; }, string, unknown, unknown, import("../../tools").ToolExecutionContext<unknown, unknown, unknown>, "mastra_workspace_execute_command", unknown>; /** Foreground-only tool that requires a leading `description` arg. */ export declare const executeCommandWithDescriptionTool: import("../../tools").Tool<{ command: string; timeout?: number | null | undefined; cwd?: string | null | undefined; tail?: number | null | undefined; description: string; }, string, unknown, unknown, import("../../tools").ToolExecutionContext<unknown, unknown, unknown>, "mastra_workspace_execute_command", unknown>; /** Background-capable tool that requires a leading `description` arg. */ export declare const executeCommandWithDescriptionAndBackgroundTool: import("../../tools").Tool<{ command: string; timeout?: number | null | undefined; cwd?: string | null | undefined; tail?: number | null | undefined; background?: boolean | undefined; description: string; }, string, unknown, unknown, import("../../tools").ToolExecutionContext<unknown, unknown, unknown>, "mastra_workspace_execute_command", unknown>; //# sourceMappingURL=execute-command.d.ts.map