import { JSONSchema, NAME, pattern, UI } from "commontools"; const InputSchema = { type: "object", properties: { title: { type: "string", default: "Untitled Research Report", asCell: true, }, content: { type: "string", default: "", asCell: true, }, }, required: ["content"], } as const satisfies JSONSchema; const OutputSchema = InputSchema; export default pattern( ({ title, content }: any) => { return { [NAME]: title, [UI]: (
), title, content, }; }, InputSchema, OutputSchema, );