diff --git a/.claude/scripts/cockpit-serve.sh b/.claude/scripts/cockpit-serve.sh new file mode 100755 index 0000000..89b22af --- /dev/null +++ b/.claude/scripts/cockpit-serve.sh @@ -0,0 +1,369 @@ +#!/usr/bin/env bash +# cockpit-serve.sh — Phase 3a (issue #69) live HTTP serve mode for cockpit.sh. +# +# Wraps the EXISTING one-shot renderer (cockpit.sh) behind a tiny node +# `http` server: no new dependencies (node built-ins only), bound to +# 127.0.0.1 only. Rendering itself is never reimplemented here — every +# request shells back into `cockpit.sh` so there is exactly ONE HTML +# generator to keep in sync (mirrors cockpit.sh's own --parse-blocking seam). +# +# Usage: +# cockpit-serve.sh [port] [--fixtures