kikikita commited on
Commit
81070c7
·
1 Parent(s): 6dcaba3

Refactor action handling and update UI elements

Browse files

- Changed action "strike" to "attack" in tick.py and updated related validation logic.
- Updated UI text in card_observe.html to reflect new features and improved descriptions.
- Modified e2e tests to check for visibility of updated UI elements.
- Adjusted action hints in test_action_pipeline.py to include "attack" instead of "strike".
- Removed deprecated health URL in test_api_server.py.
- Added new tests for country systems in test_country_systems.py to ensure proper functionality of two-country demo.
- Updated gradio app tests to reflect changes in error handling.
- Increased NPC count in living village smoke test to 16.
- Cleaned up observability perception tests by removing unused overseer context checks.
- Updated OpenAI connector tests to use "attack" instead of "strike" in tool calls.
- Adjusted player MCP tests to use "use" actions instead of deprecated actions like "build" and "gather".
- Refined survival loop tests to ensure LLM sees all public primitive tools and removed role gating for survival tools.

This view is limited to 50 files because it contains too many changes.   See raw diff
54 files changed +3482 -1552
Files changed (50)
config/game.llm.local.json+1-1
config/game.local.json+1-1
config/game.modal.a10.local.json+1-1
config/game.modal.b200.local.json+1-1
config/game.modal.local.json+1-1
config/game.modal.t4.local.json+1-1
config/model_profiles.jsonAdded+14
frontend/src/App.tsx-23
frontend/src/api.ts-51
frontend/src/components/AgentPanel.tsx+4-8
frontend/src/components/ChaosDock.tsxDeleted-107
frontend/src/components/GameOverOverlay.tsx+30-30
frontend/src/components/OverseerPanel.tsxDeleted-77
frontend/src/components/ScoreboardHeader.tsx+67-41
frontend/src/components/SimulationControls.tsx+1-7
frontend/src/components/modelStatus.ts+1-1
frontend/src/eventDecor.ts+30-23
frontend/src/hooks/useWorldSimulation.ts+5-154
frontend/src/scene/NpcLabelButton.tsx+8-5
frontend/src/scene/WorldView.tsx+56-1
frontend/src/styles.css+98-311
frontend/src/types.ts+49-29
goal.mdAdded+783
scripts/headless_sim.py+4-4
scripts/selfplay_sim.pyAdded+299
src/god_simulator/api/gradio_app.py+86-27
src/god_simulator/api/mcp_server.py+53-33
src/god_simulator/api/players.py+76-15
src/god_simulator/api/public_ui.py+93-4
src/god_simulator/api/runtime.py+268-182
src/god_simulator/api/server.py+4-35
src/god_simulator/domain.py+47
src/god_simulator/observability.py+3-1
src/god_simulator/rendering/scene_contract.py+52-13
src/god_simulator/simulation/actions/builtin.py+6-14
src/god_simulator/simulation/actions/hints.py+11-11
src/god_simulator/simulation/autopilot.py+1-1
src/god_simulator/simulation/connectors/base.py+9-2
src/god_simulator/simulation/connectors/openai_compatible.py+251-113
src/god_simulator/simulation/connectors/routing.py+19-1
src/god_simulator/simulation/spawning.py+86-55
src/god_simulator/simulation/survival.py+627-60
src/god_simulator/simulation/tick.py+26-10
src/god_simulator/ui/card_observe.html+5-5
tests/e2e/god-simulator-scene.spec.ts+1-1
tests/test_action_pipeline.py+1-1
tests/test_api_server.py-1
tests/test_country_systems.pyAdded+267
tests/test_gradio_app.py+1-2
tests/test_living_village_smoke.py+1-1