Show her working: static page of the lowering chain from the real lowerer and scorer

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Weksa 2026-11-08 00:50:39 +00:00
commit 17f44144a5
5 changed files with 602 additions and 0 deletions

16
scripts/publish-show-working.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Build the "Show her working" page from the real lowerer and scorer, then publish it as a Mind preview.
# Run from the repository root, in a Mind's Self run (it writes only /srv/minds-web/<mind>/).
#
# scripts/publish-show-working.sh [--no-publish]
#
# Needs cargo, python3 and an Ollama embedder at 127.0.0.1:11434 (qwen3-embedding:0.6b): the scorer is not stubbed.
# publish-mind-preview.sh lives in the gamecult-ops checkout: set GAMECULT_OPS to it (default ../gamecult-ops).
set -euo pipefail
[ -f Cargo.toml ] && [ -d tools/show-working ] || { echo "run from the Weksa repository root" >&2; exit 2; }
out=${SHOW_WORKING_OUT:-tools/show-working/out}
rm -rf "$out"
python3 -I tools/show-working/build.py "$out"
[ "${1:-}" = --no-publish ] && { echo "built $out"; exit 0; }
ops=${GAMECULT_OPS:-../gamecult-ops}
exec "$ops/scripts/publish-mind-preview.sh" "$out" weksa-show-working