import { z } from "zod" /** * HistoryItem */ export const historyItemSchema = z.object({ id: z.string(), number: z.number(), ts: z.number(), task: z.string(), tokensIn: z.number(), tokensOut: z.number(), cacheWrites: z.number().optional(), cacheReads: z.number().optional(), totalCost: z.number(), size: z.number().optional(), workspace: z.string().optional(), mode: z.string().optional(), isFavorited: z.boolean().optional(), fileNotfound: z.boolean().optional(), }) export type HistoryItem = z.infer