empty 1fd318c9e3 feat(engine): add faction power system with event triggers
- Add FactionData model with power and members fields
- Add FactionEventResult model for faction event responses
- Add faction field to AgentState
- Implement faction classification based on emotion
- Add faction event triggers (festival/panic) when power >= 5
- Update StepResponse to include triggered_faction_event
- Add tests for new faction system

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-30 12:01:07 +08:00

验收标准(你跑通就算成功):

打开 http://localhost:3000 能看到页面 在输入框发一句话(例如:下雨了 / 支持Alice / 制造混乱) 页面实时更新: tick 递增 weather / town_mood 改变 actions 出现两名 NPC 的“行动 + 台词” Node 服务和 Python 服务都能一键启动(两个终端)

Description
AI小镇
Readme 177 KiB
Languages
Python 72%
HTML 23.9%
TypeScript 4.1%