Summary for Repository Documentation Updates
This document provides a summary of recent code changes that should be reflected in the main repository’sCLAUDE.md and README.md files.
CLAUDE.md Updates Needed
Build System Section
Add information about circular dependency handling:Testing Section
Add CI-specific guidance:Terrain System Section
Add new terrain parameter system:README.md Updates Needed
Deployment Section
Add Vast.ai deployment information:- Filters for US-based machines
- Standard CUDA Docker images
- SSH key generation for secure access
- Runtime environment variable injection
Build System Section
Add circular dependency information:Key Changes Summary
Terrain System (High Priority)
-
TerrainHeightParams.ts: New centralized parameter file
- Single source of truth for all terrain constants
- Worker code generation via
buildGetBaseHeightAtJS() - Prevents parameter drift between threads
-
Worker Computation: Height and normal calculation in workers
- 63x reduction in main-thread noise evaluations
- Parallel processing across CPU cores
- Conditional fallback for flat zone tiles
Duel Arena (Medium Priority)
-
Combat AI Fixes: 6 bug fixes for agent duel gameplay
- 2H sword attack timing
- Teleport handling during fights
- Stale avatar cleanup
- FIGHT text display
- Health bar synchronization
-
Visual Enhancements:
- Lit torches at arena corners
- Procedural stone tile floor textures
- Fence posts and rails (replaced solid walls)
Build System (High Priority)
-
Circular Dependency Handling:
- procgen and plugin-hyperscape builds resilient to circular deps
- Uses
tsc || echoand--skipLibCheckpatterns - Prevents clean build failures
-
CI Improvements:
- Increased test timeouts for CI reliability
- Fixed invalid manifest JSONs
- Added Foundry for MUD contracts tests
Deployment (Medium Priority)
-
Vast.ai Support:
- Python 3.11+ requirement (bookworm-slim)
- vastai SDK installation with —break-system-packages
- SSH key generation in Docker
- US-based machine filtering
-
Docker Improvements:
- build-essential for native modules
- git-lfs for asset checks
- CI=true to skip asset download
- DNS configuration (Google DNS)
Documentation Files Updated
In This PR
- changelog.mdx: Added February 22, 2026 update section
- architecture.mdx: Added terrain system and circular dependency info
- packages/shared.mdx: Added terrain generation system section
- devops/troubleshooting.mdx: Added circular dependency and manifest validation sections
- devops/docker.mdx: Added production Docker image configurations
- guides/deployment.mdx: Added Vast.ai and CI/CD sections
- wiki/game-systems/terrain.mdx: Updated with TerrainHeightParams details
- wiki/game-systems/duel-arena.mdx: Added visual enhancements and combat AI fixes
- api-reference/terrain.mdx: New API reference for TerrainSystem and TerrainHeightParams
- guides/recent-updates.mdx: New migration guide for recent changes
Repository Files to Update Manually
These files are in the main repository (not the docs repo) and should be updated manually:- CLAUDE.md: Add sections for circular dependencies, CI test reliability, and terrain system
- README.md: Add Vast.ai deployment, Docker configurations, and build system notes
Line Count Summary
Total Documentation Changes: ~450 lines added across 10 files- changelog.mdx: ~150 lines (new update section)
- architecture.mdx: ~30 lines (terrain system, circular deps)
- packages/shared.mdx: ~50 lines (terrain generation)
- devops/troubleshooting.mdx: ~40 lines (build fixes, manifest validation)
- devops/docker.mdx: ~60 lines (production images)
- guides/deployment.mdx: ~50 lines (Vast.ai, CI/CD)
- wiki/game-systems/terrain.mdx: ~80 lines (parameter updates)
- wiki/game-systems/duel-arena.mdx: ~40 lines (visual enhancements)
- api-reference/terrain.mdx: ~300 lines (new file)
- guides/recent-updates.mdx: ~200 lines (new file)
- guides/repository-updates-summary.mdx: ~100 lines (this file)