first commit

This commit is contained in:
2026-07-03 08:32:41 +00:00
commit df7649f34d
30 changed files with 4104 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Record a short SSE sample from a running HoneyPeer master.
set -euo pipefail
URL="${1:-https://viz.honeypeer.com}"
OUT="${2:-tests/fixtures/sse-sample.txt}"
mkdir -p "$(dirname "$OUT")"
echo "Recording from ${URL}/api/public/viz/stream → $OUT (Ctrl+C to stop)"
curl -N -sS -H 'Accept: text/event-stream' "${URL}/api/public/viz/stream" | head -n 200 > "$OUT"
echo "Wrote $(wc -l < "$OUT") lines"