feat(hybrid-gateway): integrate muse-cli with Cloudflare netns isolation, symmetric sidechat routing, and 646-pip sync unblock

This commit is contained in:
operator
2026-10-04 22:54:01 +00:00
parent 3d5fbe5aeb
commit 1a271b1bbd
60 changed files with 5068 additions and 55 deletions
+2 -2
View File
@@ -29,10 +29,10 @@ fi
# 94x0 sequence (9410 muse, 9420 pip, 9430 646, 9440 opm, ...).
# Scan the registry and live listeners; first free wins.
used_ports() {
{ grep -oP '^\|\s*\K94\d0(?=\s*\|)' "$NODES_MD" 2>/dev/null || true; \
{ awk -F'|' 'NF>=5 && $5 ~ /94[0-9]0/ {gsub(/ /,"",$5); print $5}' "$NODES_MD" 2>/dev/null || true; \
ss -tln 2>/dev/null | grep -oP ':\K94\d0\b' || true; } | sort -u
}
PORT=9450
PORT=9410
while used_ports | grep -qx "$PORT"; do PORT=$((PORT+10)); done
[ "$PORT" -gt 9600 ] && { echo "port pool exhausted" >&2; exit 1; }