diff --git a/playbooks/dependencies/checks/lemonade-ready.md b/playbooks/dependencies/checks/lemonade-ready.md new file mode 100644 index 00000000..aca129c3 --- /dev/null +++ b/playbooks/dependencies/checks/lemonade-ready.md @@ -0,0 +1,43 @@ + + + + + +```powershell +$health = $null +for ($i = 0; $i -lt 120; $i++) { + $health = curl.exe -sf --max-time 2 http://127.0.0.1:13305/api/v1/health + if ($health) { break } + Start-Sleep -Seconds 1 +} +if (-not $health) { throw "Lemonade server not ready on http://127.0.0.1:13305/api/v1/health" } +Write-Host "OK: Lemonade server is ready" +``` + + + + + +```bash +set -euo pipefail +health="" +for i in $(seq 1 120); do + health="$(curl -sf --max-time 2 http://127.0.0.1:13305/api/v1/health || true)" + if [ -n "$health" ]; then break; fi + sleep 1 +done +if [ -z "$health" ]; then + echo "Lemonade server not ready on http://127.0.0.1:13305/api/v1/health" + exit 1 +fi +echo "OK: Lemonade server is ready" +``` + + diff --git a/playbooks/dependencies/registry.json b/playbooks/dependencies/registry.json index 6b56fca9..25734552 100644 --- a/playbooks/dependencies/registry.json +++ b/playbooks/dependencies/registry.json @@ -1,6 +1,6 @@ { "$schema": "./registry.schema.json", - "description": "Central registry of pre-installed software dependencies and setup steps for AMD Halo Developer Platform", + "description": "Central registry of shared require-able blocks (install dependencies, models, setup steps, and runtime checks)", "dependencies": { "comfyui": { "name": "ComfyUI", @@ -79,6 +79,17 @@ "windows": ["halo_box"] } }, + "lemonade-ready": { + "name": "Lemonade Readiness Check", + "description": "Waits for the Lemonade server to be reachable before dependent steps run", + "category": "check", + "platforms": ["windows", "linux"], + "file": "checks/lemonade-ready.md", + "preinstalled": { + "linux": [], + "windows": [] + } + }, "gaia": { "name": "GAIA", "description": "AMD framework for building AI agents on local hardware", diff --git a/playbooks/supplemental/hermes-lemonade-server/README.md b/playbooks/supplemental/hermes-lemonade-server/README.md index fb778aad..493d94a0 100644 --- a/playbooks/supplemental/hermes-lemonade-server/README.md +++ b/playbooks/supplemental/hermes-lemonade-server/README.md @@ -85,6 +85,7 @@ lemonade pull Qwen3.6-35B-A3B-GGUF Then load it with a large context window and save that setting for future runs: + ```bash lemonade unload diff --git a/playbooks/supplemental/openclaw-lemonade-server/README.md b/playbooks/supplemental/openclaw-lemonade-server/README.md index b1f2632f..c6200429 100644 --- a/playbooks/supplemental/openclaw-lemonade-server/README.md +++ b/playbooks/supplemental/openclaw-lemonade-server/README.md @@ -75,6 +75,7 @@ lemonade pull Qwen3.6-35B-A3B-GGUF Then load it with a large context window and save that setting for future runs: + ```bash lemonade unload