import { z } from 'zod' /** 主编规划章节大纲 */ export default defineEventHandler(async (event) => { const projectId = param(event) getProject(projectId) const body = await readJson(event, z.object({ count: z.number().int().min(1).max(100).default(10), fromIndex: z.number().int().positive().optional() })) runExclusive(projectId, '规划章节大纲', signal => planOutline(projectId, signal, body)) return { started: true } })