From a36bf7808299e82e6f7e6f822daf9dfe11512320 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Thu, 7 May 2026 14:00:53 +0200 Subject: [PATCH] Fix playground paths and complete playground interface testing - Added BASE_DIR and STAGE_DIR variables for proper path resolution - Fixed prerequisite check to use STAGE_DIR instead of relative path - Verified playground menu, progress view, certificates, reset all work - All 10 stages pass prerequisite validation - Blocked on wallet funding (genesis password/file issue) --- scripts/training/master_training_launcher.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/training/master_training_launcher.sh b/scripts/training/master_training_launcher.sh index 79cad0d5..f040ccb9 100755 --- a/scripts/training/master_training_launcher.sh +++ b/scripts/training/master_training_launcher.sh @@ -11,6 +11,8 @@ set -e # Training configuration TRAINING_PROGRAM="hermes AITBC Mastery Training" SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +BASE_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" +STAGE_DIR="$BASE_DIR/docs/agent-training" WALLET_NAME="hermes-trainee" # Initialize logging for master launcher @@ -278,7 +280,7 @@ check_prerequisites() { # Run prerequisite validation if [ -f "$SCRIPT_DIR/generate_prerequisite_checks.py" ]; then print_status "Checking prerequisites for Stage $stage_num..." - if python3 "$SCRIPT_DIR/generate_prerequisite_checks.py" "$SCRIPT_DIR/../docs/agent-training" 2>/dev/null; then + if python3 "$SCRIPT_DIR/generate_prerequisite_checks.py" "$STAGE_DIR" 2>/dev/null; then print_success "Prerequisites validated" return 0 else @@ -523,7 +525,7 @@ check_all_prerequisites() { if [ -f "$SCRIPT_DIR/generate_prerequisite_checks.py" ]; then print_status "Running prerequisite validation..." - python3 "$SCRIPT_DIR/generate_prerequisite_checks.py" "$SCRIPT_DIR/../docs/agent-training" + python3 "$SCRIPT_DIR/generate_prerequisite_checks.py" "$STAGE_DIR" else print_error "Prerequisite check script not found" fi