Add accumulator retake workflow restore

This commit is contained in:
2026-06-28 10:27:05 +02:00
parent f681fe2949
commit d937c219ee
5 changed files with 158 additions and 22 deletions
+12
View File
@@ -7,6 +7,7 @@ try:
accumulator_delete_entries,
accumulator_list_entries,
accumulator_move_entry,
accumulator_retake_entry,
accumulator_save_entries,
)
from .prompt_builder import save_character_profile_payload
@@ -15,6 +16,7 @@ except ImportError: # Allows local smoke tests from the repository root.
accumulator_delete_entries,
accumulator_list_entries,
accumulator_move_entry,
accumulator_retake_entry,
accumulator_save_entries,
)
from prompt_builder import save_character_profile_payload
@@ -74,3 +76,13 @@ def accumulator_move_payload(payload: Any) -> dict[str, Any]:
target_index=int(data.get("target_index") or 0),
preview_limit=int(data.get("preview_limit") or 0),
)
def accumulator_retake_payload(payload: Any) -> dict[str, Any]:
data = _payload(payload)
return accumulator_retake_entry(
store_key=str(data.get("store_key") or ""),
preview_key=str(data.get("preview_key") or ""),
entry_id=str(data.get("entry_id") or ""),
index=int(data.get("index") or 0),
)