Six new endpoints under /api/narrative/*: - GET /world/<sim_id> — full world state - POST /world/<sim_id>/rules — replace rules list - POST /world/<sim_id>/locations — upsert location - POST /godmode/<sim_id>/inject-event — inject world event - POST /godmode/<sim_id>/modify-emotion — overwrite emotions - POST /godmode/<sim_id>/kill — kill character Validation: - 400 on missing required fields (description, character_id, rules) - 400 on invalid round (must be non-negative int or null) - 404 on character not found (from ValueError in handlers) Smoke-tested via Flask test client — all 11 response codes correct. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| graph.py | ||
| narrative.py | ||
| report.py | ||
| simulation.py | ||