export type PlanContext = { template: { id: string; name: string; about: string; how: string[] } fields: { key: string; label: string }[] current: Record weather: unknown } export function runPlan(ctx: PlanContext, opts?: { topic?: string; feedback?: string; fixed?: { question?: string; cards?: string[] } }): Promise<{ topic: string; copy: Record }>