import { safeChartInput } from "../presentation/command-schema"; export const frontendChartSchema = safeChartInput; export const parseFrontendChart = (value: unknown) => { const parsed = frontendChartSchema.safeParse(value); return parsed.success ? parsed.data : null; };