OpenWriterControle/evals/results/serve.sh
darrenhinde f773b290ce chore(evals): comprehensive cleanup, documentation, and test infrastructure improvements
Documentation:
- Add ARCHITECTURE.md with comprehensive system review
- Add GETTING_STARTED.md for new users
- Add DOCUMENTATION_CLEANUP.md tracking cleanup changes
- Add SCRIPTS_ORGANIZATION.md documenting script reorganization
- Remove outdated docs (TESTING_CONFIDENCE.md, TEST_REVIEW.md, SESSION_STORAGE_FIX.md)
- Update README files with current information

Script Organization:
- Move 12 scripts from framework root to organized directories:
  - scripts/debug/ (4 files): Session debugging tools
  - scripts/test/ (6 files): Test execution scripts
  - scripts/utils/ (2 files): Utility scripts
- Add comprehensive scripts/README.md with usage examples

Test Infrastructure:
- Add 5 new context loading tests for openagent
- Add result-saver.ts for test result persistence
- Add interactive results dashboard (index.html)
- Add error-handling.test.ts for framework testing
- Add result-saver.test.ts with comprehensive unit tests

Evaluator Improvements:
- Enhance context-loading-evaluator with better detection
- Update run-sdk-tests.ts with improved result handling

Agent Configuration:
- Add .opencode/agent/AGENT.md for agent definition

Test Utilities:
- Add test-agent-manual.mjs for manual testing
- Update test_tmp/README.md with usage guidelines

This commit consolidates multiple improvements:
- Better organization (scripts, docs)
- Improved testing infrastructure
- Comprehensive documentation
- Cleaner codebase structure
2025-11-26 21:34:27 +00:00

49 lines
1.2 KiB
Bash
Executable file
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
# Simple HTTP server for viewing the dashboard
# Auto-opens browser and shuts down after timeout
# Usage: ./serve.sh [port] [timeout_seconds]
PORT=${1:-8000}
TIMEOUT=${2:-15}
cd "$(dirname "$0")"
echo "🚀 Starting HTTP server on port $PORT..."
echo "📊 Opening dashboard in browser..."
echo "⏱️ Server will auto-shutdown in ${TIMEOUT} seconds"
echo ""
# Start server in background
python3 -m http.server $PORT > /dev/null 2>&1 &
SERVER_PID=$!
# Wait for server to start
sleep 1
# Open browser
if command -v open > /dev/null; then
# macOS
open "http://localhost:$PORT"
elif command -v xdg-open > /dev/null; then
# Linux
xdg-open "http://localhost:$PORT"
elif command -v start > /dev/null; then
# Windows
start "http://localhost:$PORT"
else
echo "⚠️ Could not auto-open browser. Please visit: http://localhost:$PORT"
fi
echo "✅ Dashboard opened in browser"
echo "⏳ Waiting ${TIMEOUT} seconds for page to load..."
# Countdown
for i in $(seq $TIMEOUT -1 1); do
printf "\r⏱️ Shutting down in %2d seconds... (Press Ctrl+C to keep running)" $i
sleep 1
done
echo ""
echo "🛑 Stopping server..."
kill $SERVER_PID 2>/dev/null
echo "✅ Server stopped. Dashboard data is cached in your browser."