Extract Krea hardcore action helpers

This commit is contained in:
2026-06-26 16:00:11 +02:00
parent 0b9ee3b8b1
commit 1c661b3c9d
4 changed files with 1144 additions and 1112 deletions
+7 -6
View File
@@ -136,7 +136,6 @@ Keep here:
- Krea prose style;
- Krea route orchestration;
- remaining hardcore action sentence dispatch;
- camera-scene preservation;
- fallback text parsing.
@@ -153,15 +152,17 @@ Already isolated:
support text.
- `krea_detail.py` owns generic detail-clause splitting, deduping, joining, and
density limiting for Krea action prose.
- `krea_actions.py` owns non-POV hardcore action sentence rewriting, pose
anchors, arrangements, climax detail cleanup, and action-position phrasing.
- `krea_pov_actions.py` owns POV hardcore action sentence rewriting and
first-person body geometry.
Improve later:
- split the remaining non-POV hardcore action dispatcher into `krea_actions.py`;
- split `krea_actions.py` by action family once the extracted module is stable;
- add route-level smoke fixtures for representative metadata rows;
- make `_hardcore_action_sentence` dispatch by action family instead of long
conditional chains.
- make `krea_actions.hardcore_action_sentence` dispatch by action family instead
of long conditional chains.
### SDXL Formatter Path
@@ -339,8 +340,8 @@ Medium-term:
## Recommended Next Passes
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.
1. Split `krea_actions.py` by action family, 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.
3. Add metadata fields such as `action_family` / `position_family` to reduce