MicroFish/backend/app/api
anadoris007 727f4403e3 feat(narrative): add narrative API blueprint
Five endpoints under /api/narrative/*:
- GET  /story/<sim_id>                — full story so far
- GET  /story/<sim_id>/round/<num>    — single round
- POST /translate                     — translate a round on demand
- GET  /characters/<sim_id>           — roster with emotional state
- POST /characters/<sim_id>/init      — bootstrap from OASIS profiles

Blueprint registered alongside existing graph/simulation/report
blueprints following the established pattern. Smoke-tested via Flask
test client.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-20 22:02:16 +05:30
..
__init__.py feat(narrative): add narrative API blueprint 2026-04-20 22:02:16 +05:30
graph.py fix(i18n): pass locale to background threads via thread-local storage 2026-04-01 16:55:51 +08:00
narrative.py feat(narrative): add narrative API blueprint 2026-04-20 22:02:16 +05:30
report.py fix(i18n): pass locale to background threads via thread-local storage 2026-04-01 16:55:51 +08:00
simulation.py fix(i18n): replace hardcoded Chinese stage names in simulation prepare SSE 2026-04-01 17:31:00 +08:00