initial: novel-app snapshot

This commit is contained in:
omo
2026-08-17 17:11:30 +08:00
commit 1ae06209ac
34 changed files with 2821 additions and 0 deletions

7
services/__init__.py Normal file
View File

@@ -0,0 +1,7 @@
"""Service layer for the novel app.
Pure functions — no Flask imports. LLM access, book deconstruction (拆书),
and chapter writing with context assembly. All DB access goes through
explicit sqlite3 connections (row_factory=sqlite3.Row) and repository
functions. SSE framing helpers live here for use by routes/.
"""