This commit is contained in:
Lars committed 2026-08-25 17:16:35 +02:00
1 parent fd7102e3b3
commit 60f0d2830d
17 files changed
+1502 -257

No files matched your search

+3 -9
View File
@@ -144,16 +144,10 @@ def build_internal_context(
items.append({"type": "space_recent_sources", "sources": recent_sources})
if purpose == "journal_generate":
profile_rows = retrieve(profile_id, {"kind": "writing_profile"})
brief = (profile_rows[0].get("compiled_brief") if profile_rows else "") or ""
from writing_profile_store import compile_task_brief
brief = compile_task_brief(profile_id, "journal_generate")
items.append({"type": "writing_profile", "compiled_brief": brief})
sources = (profile_rows[0].get("sources") if profile_rows else []) or []
style_sources = [
item
for item in sources
if item.get("kind") in {"journal_entry", "imported_text", "dialogue_style"}
]
items.append({"type": "style_sources", "sources": style_sources})
if include_existing and existing_text:
items.append({"type": "existing_text", "body": plain_text(existing_text)})
elif purpose == "dialogue_turn":