Refactor home scripts to be wrappers around component scripts

- Simplified build.sh to call individual component build scripts
- Refactored run.sh to call component run scripts with live log display
- Each service gets color-coded prefix ([SUPER], [OSIRS], [COORD])
- Run script keeps running and displays interleaved logs from all services
- Added proper signal handling for graceful shutdown of all services
- Updated README with new architecture and usage examples
This commit is contained in:
Timur Gordon
2025-11-04 17:05:41 +01:00
parent ac6020d883
commit 4aa1a20010
8 changed files with 1780 additions and 0 deletions

20
scripts/build.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -e
# Hero System Build Script - Wrapper
# Calls build.sh in each component repo
HERO_BASE="/Users/timurgordon/code/git.ourworld.tf/herocode"
echo "Building Hero System components..."
# Build coordinator
"$HERO_BASE/herocoordinator/scripts/build.sh"
# Build supervisor
"$HERO_BASE/supervisor/scripts/build.sh"
# Build osiris runner
"$HERO_BASE/runner_rust/scripts/build.sh"
echo "✅ All Hero System components built successfully"