#!/bin/sh # retoor # Spec: SPEC.md VER-03. Network purity: no networking library or raw socket outside aiohttpcpp. set -eu root=$(cd "$(dirname "$0")/.." && pwd) cd "$root" pattern='curl|poco|beast|AFNetworking|Alamofire|getaddrinfo|socket\((AF_|PF_)|::socket\(|SDL_net|libsoup|cpr/' hits=$(grep -rniE "$pattern" --include='*.cpp' --include='*.h' --include='*.hpp' --include='CMakeLists.txt' src tests spec tools CMakeLists.txt 2>/dev/null | grep -v 'tools/check-net.sh' | grep -v 'src/screens/components/EmojiCatalog.cpp' || true) if [ -n "$hits" ]; then echo "FAIL network purity: non-aiohttpcpp networking references found:" echo "$hits" exit 1 fi echo "OK network purity (scanned src tests spec tools; third_party, build and the emoji name table excluded)"