MicroFish/backend/app
anadoris007 d3bec344c7 feat(narrative): extend translator with world context + dead filter
- PROSE_PROMPT_TEMPLATE extended with world_rules, world_events,
  world_locations, and event_enforcement substitution fields
- EVENT_ENFORCEMENT_STRENGTH set to "hard" — opening line MUST
  reference the most recent world event (aligns with existing
  punchy, cinematic voice)
- Character summaries now resolve location id → name for prompts
- translate_round loads world_state and filters dead characters
  from both the roster and the action list before prose generation
- User-supplied strings (rules, events, locations) brace-escaped
  before str.format() to prevent KeyError on stray { or }

Tests: 36/36 passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 14:54:22 +05:30
..
api feat(narrative): add narrative API blueprint 2026-04-20 22:02:16 +05:30
models feat(i18n): replace hardcoded Chinese in backend SSE progress messages 2026-04-01 16:32:10 +08:00
services feat(narrative): extend translator with world context + dead filter 2026-04-22 14:54:22 +05:30
utils fix(i18n): validate Accept-Language header against registered locales 2026-04-02 14:20:15 +08:00
__init__.py feat(narrative): add narrative API blueprint 2026-04-20 22:02:16 +05:30
config.py fix(config): enable overriding of environment variables when loading .env file 2026-01-23 16:20:24 +08:00