Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 13 additions & 31 deletions scripts/deploy_light.sh
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ resolve_opencode_bin() {
die "opencode binary not found in PATH: $OPENCODE_BIN"
}

run_python_http_check() {
run_python_http_check_with() {
local url="$1"
if command -v python3 >/dev/null 2>&1; then
python3 - "$url" <<'PY'
shift
"$@" - "$url" <<'PY'
import json
import sys
import urllib.request
Expand All @@ -318,37 +318,19 @@ with urllib.request.urlopen(url, timeout=1.5) as response:
if body:
json.loads(body)
PY
return 0
}

run_python_http_check() {
local url="$1"
if command -v python3 >/dev/null 2>&1; then
run_python_http_check_with "$url" python3
return
fi
if command -v python >/dev/null 2>&1; then
python - "$url" <<'PY'
import json
import sys
import urllib.request

url = sys.argv[1]
with urllib.request.urlopen(url, timeout=1.5) as response:
if response.status != 200:
raise SystemExit(1)
body = response.read().decode("utf-8")
if body:
json.loads(body)
PY
return 0
run_python_http_check_with "$url" python
return
fi
uv run python - "$url" <<'PY'
import json
import sys
import urllib.request

url = sys.argv[1]
with urllib.request.urlopen(url, timeout=1.5) as response:
if response.status != 200:
raise SystemExit(1)
body = response.read().decode("utf-8")
if body:
json.loads(body)
PY
run_python_http_check_with "$url" uv run python
}

wait_for_http_ready() {
Expand Down
1 change: 0 additions & 1 deletion src/opencode_a2a_server/extension_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from dataclasses import dataclass
from typing import Any

SHARED_METADATA_NAMESPACE = "shared"
SHARED_SESSION_BINDING_FIELD = "metadata.shared.session.id"
SHARED_SESSION_METADATA_FIELD = "metadata.shared.session"
SHARED_MODEL_SELECTION_FIELD = "metadata.shared.model"
Expand Down
Loading