Extract Krea POV action helpers

This commit is contained in:
2026-06-26 15:49:43 +02:00
parent 6c5a529e29
commit 0b9ee3b8b1
5 changed files with 409 additions and 344 deletions
+9 -6
View File
@@ -135,8 +135,8 @@ Owner: `krea_formatter.py`.
Keep here:
- Krea prose style;
- hardcore action sentence rewriting;
- POV sentence rewriting;
- Krea route orchestration;
- remaining hardcore action sentence dispatch;
- camera-scene preservation;
- fallback text parsing.
@@ -151,11 +151,14 @@ Already isolated:
POV formatter routes.
- `krea_pov.py` owns POV labels, POV label filtering, and POV camera/composition
support text.
- `krea_detail.py` owns generic detail-clause splitting, deduping, joining, and
density limiting for Krea action prose.
- `krea_pov_actions.py` owns POV hardcore action sentence rewriting and
first-person body geometry.
Improve later:
- split semantic blocks into modules:
`krea_actions.py`, `krea_pov_actions.py`;
- split the remaining non-POV hardcore action dispatcher into `krea_actions.py`;
- add route-level smoke fixtures for representative metadata rows;
- make `_hardcore_action_sentence` dispatch by action family instead of long
conditional chains.
@@ -282,7 +285,7 @@ Near-term:
Medium-term:
- Dispatch action rewriting by action family.
- Split Krea semantic helpers into smaller modules.
- Continue splitting remaining Krea semantic helpers into smaller modules.
### SDXL
@@ -336,7 +339,7 @@ Medium-term:
## Recommended Next Passes
1. Split Krea action/POV helpers into separate modules, using
1. Split the remaining Krea action dispatcher into `krea_actions.py`, using
`krea_cast.py` as the pattern for stable import aliases and smoke coverage.
2. Split `__init__.py` node classes by family after behavior is covered by smoke
checks.