Skip to content

Commit e0b13e4

Browse files
committed
feat: implement Phase 3 tool layer with real AlloyDB queries
1 parent 45acc65 commit e0b13e4

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

app/tools/timeline_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from typing import Optional
1212

13-
from app.tools.db import execute, fetch_all, fetch_one, transaction
13+
from app.tools.db import fetch_all, fetch_one, transaction
1414

1515

1616
async def get_current_locations() -> list[dict]:

app/tools/world_state_tools.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
from app.tools.db import execute, fetch_all, fetch_one
1515

16-
1716
# Phase order for advance_time calculations
1817
_PHASES = ["morning", "afternoon", "evening", "night", "dawn"]
1918

@@ -56,9 +55,7 @@ async def advance_time(phases_to_advance: int = 1) -> dict:
5655
Returns:
5756
dict with new day, new phase, and how many full days were advanced.
5857
"""
59-
current = await fetch_one(
60-
"SELECT current_day, current_phase FROM story_state WHERE id = 1"
61-
)
58+
current = await fetch_one("SELECT current_day, current_phase FROM story_state WHERE id = 1")
6259
if not current:
6360
return {"error": "World state not initialised"}
6461

0 commit comments

Comments
 (0)