Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienos.com/blob/main/om/alpha-page/check.sh # aienos.com Source of www.aienos.com, served from my own hardware Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienos.com / om / alpha-page / check.sh` 37 lines ยท 1696 bytes Raw Blame History 1 #!/bin/sh 2 # Host orchestration only. Omega emits HTML/JS and escapes captured terminal/source bytes. 3 # Source inputs are pinned release artifacts, never downloaded during a site build. 4 set -eu 5 cd "$(dirname "$0")" 6 omc=${OMEGA_OMC:-../hive-page/omc} 7 pin=$(tr -d ' \n' < ../hive-page/omc.sha256) 8 [ "$(sha256sum "$omc" | cut -d' ' -f1)" = "$pin" ] || { echo 'Compiler pin mismatch' >&2; exit 3; } 9 work=$(mktemp -d) 10 trap 'rm -rf "$work"' EXIT HUP INT TERM 11 "$omc" < page.om > "$work/page" 12 "$omc" < client.om > "$work/client" 13 chmod +x "$work/page" "$work/client" 14 "$work/page" 4< wizard.capture.txt 5< ../../public/alpha/wizard.om > "$work/first.html" 15 "$work/page" 4< wizard.capture.txt 5< ../../public/alpha/wizard.om > "$work/second.html" 16 "$work/client" > "$work/first.js" 17 "$work/client" > "$work/second.js" 18 cmp "$work/first.html" "$work/second.html" 19 cmp "$work/first.js" "$work/second.js" 20 [ -s "$work/first.html" ] && [ -s "$work/first.js" ] 21 # Negative control: missing capture input must refuse, not silently publish a blank capture. 22 if "$work/page" 4< /dev/null 5< ../../public/alpha/wizard.om > "$work/refused.html"; then 23 echo 'Empty capture wrongly accepted' >&2; exit 5 24 fi 25 stale=0 26 publish() { 27 if [ ! -f "$2" ] || ! cmp -s "$1" "$2"; then stale=1; fi 28 cp "$1" "$2" 29 sha256sum "$2" > "$3" 30 } 31 publish "$work/first.html" main.html main.html.sha256 32 publish "$work/first.js" ../../public/js/alpha.js alpha.js.sha256 33 sha256sum ../../public/alpha/wizard.om > wizard.om.sha256 34 if [ "$stale" = 1 ] && [ "${OMEGA_ACCEPT_CHANGE:-0}" != 1 ]; then 35 echo 'Artifacts changed; commit the generated files with their Omega sources' >&2; exit 4 36 fi 37 printf 'ALPHA-GENERATED PASS compiler=%s\n' "$pin"