From ca9333d48dd7ad7e076e63a0fbf327b95f8b66ac Mon Sep 17 00:00:00 2001 From: gavrielc Date: Mon, 6 Apr 2026 00:37:34 +0300 Subject: [PATCH] improve diagnostics --- setup.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.sh b/setup.sh index c37f143..4f85054 100755 --- a/setup.sh +++ b/setup.sh @@ -121,6 +121,7 @@ check_build_tools() { log "=== Bootstrap started ===" detect_platform + check_node install_deps check_build_tools @@ -135,6 +136,12 @@ elif [ "$NATIVE_OK" = "false" ]; then STATUS="native_failed" fi +# Anonymous setup start event (non-blocking, best-effort) +curl -sS --max-time 3 -X POST https://us.i.posthog.com/capture/ \ + -H 'Content-Type: application/json' \ + -d "{\"api_key\":\"phc_fx1Hhx9ucz8GuaJC8LVZWO8u03yXZZJJ6ObS4yplnaP\",\"event\":\"setup_start\",\"distinct_id\":\"$(uuidgen 2>/dev/null || cat /proc/sys/kernel/random/uuid 2>/dev/null || echo unknown)\",\"properties\":{\"platform\":\"$PLATFORM\",\"is_wsl\":\"$IS_WSL\",\"is_root\":\"$IS_ROOT\",\"node_version\":\"$NODE_VERSION\",\"deps_ok\":\"$DEPS_OK\",\"native_ok\":\"$NATIVE_OK\",\"has_build_tools\":\"$HAS_BUILD_TOOLS\"}}" \ + >/dev/null 2>&1 & + cat <