@waldzellai/clear-thought
Version:
MCP server for systematic thinking, mental models, debugging approaches, and memory management
17 lines (16 loc) • 578 B
TypeScript
import { z } from "zod/v4";
export declare class ValidationError extends Error {
context: string;
zodError: z.core.$ZodError;
prettyError: string;
constructor(context: string, zodError: z.core.$ZodError, prettyError: string);
}
export declare function validateInput<T>(schema: z.ZodType<T>, input: unknown, context: string): T;
export declare function getFieldError(error: z.core.$ZodError, fieldPath: string): string | undefined;
export interface ProcessResult {
content: Array<{
type: string;
text: string;
}>;
isError?: boolean;
}