pi_coder_2/status.sh
dschlueter ca85c45a39 refactor: Single-GPU-Betrieb + System-Prompt-Rollen + /optimize-Bugfixes
Single-GPU-Umstellung:
- models.json auf ein Modell qwen3.5-single kollabiert; tote Provider
  (llama-cpp, llama-cpp-coder, llama-cpp-judge) entfernt
- Coder/Judge-Rolle via before_agent_start-Hook (Persona als System-Prompt)
  statt Modellwechsel; switchModel -> ensureSingleModel + selectRole
- Dual-GPU-Skripte entfernt (start-coder/judge/servers.sh); stop/status auf
  Single-Container reduziert

/optimize-Bugfixes:
- Crash behoben: ctx.ui.select positional aufrufen (verursachte
  "Cannot read properties of undefined (reading 'length')" bei SHIP/version)
- PASS WITH CONCERNS loest jetzt eine Coder-Fix-Runde aus; nur sauberes PASS
  gilt als bestanden (--approve-concerns bleibt Opt-out)
- Quick-Judge abgeschafft: immer voller Judge ab Runde 1
- Loop-Erkennung greift auch ohne Blocker-Abschnitt

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 02:28:42 +02:00

33 lines
851 B
Bash
Executable file

#!/usr/bin/env bash
check_server() {
local NAME="$1"
local PORT="$2"
local ALIAS="$3"
printf "%-28s" "$NAME (Port $PORT):"
# Docker-Status
if docker ps --format '{{.Names}}' | grep -q "^${NAME}\$"; then
printf " Container=\033[32mRUNNING\033[0m"
elif docker ps -a --format '{{.Names}}' | grep -q "^${NAME}\$"; then
printf " Container=\033[33mSTOPPED\033[0m"
else
printf " Container=\033[31mNOT FOUND\033[0m"
echo
return
fi
# HTTP-Erreichbarkeit
if curl -s --max-time 3 "http://localhost:${PORT}/health" >/dev/null 2>&1 || \
curl -s --max-time 3 "http://localhost:${PORT}/v1/models" >/dev/null 2>&1; then
printf " HTTP=\033[32mOK\033[0m"
else
printf " HTTP=\033[31mNOT READY\033[0m"
fi
echo
}
echo "=== LLaMA-Server Status ==="
check_server "qwen36-27b-single" 8001 "qwen3.5-single"