This commit is contained in:
Mikan
2026-06-21 06:12:28 +03:00
parent 4dee4fb0a8
commit e98559a587
29 changed files with 1248 additions and 267 deletions

View File

@@ -76,10 +76,14 @@ async def get_state(
next_actions = recent_steps[-1]["suggested_actions"] if recent_steps else []
if world.intro_scene and not recent_steps:
next_actions = []
from app.core.time_utils import format_time_human
return {
"world": {
"id": str(world.id), "name": world.name, "current_time": world.current_time,
"id": str(world.id), "name": world.name,
"current_time": world.current_time,
"current_time_human": format_time_human(world.current_time, world.language),
"language": world.language, "intro_scene": world.intro_scene,
"status": world.status,
},
"environment": world.environment,
"recent_steps": recent_steps,