feat: move unified generation to background worker

This commit is contained in:
2026-04-19 17:29:37 +08:00
parent 5318de670f
commit 6fb128955f
15 changed files with 632 additions and 285 deletions

View File

@@ -117,9 +117,9 @@ class StorybookResponse(StoryStatusMixin):
class GenerationResponse(StoryStatusMixin):
"""Unified generation response for the target workflow API."""
id: int
id: int | None = None
generation_job_id: str | None = None
title: str
title: str | None = None
mode: str
story_text: str | None = None
pages: list[StorybookPageResponse] | None = None