Files
site/.gitea/workflows/split.yml
T
teahubxyzandClaude Fable 5.1 f855ee15b7 split tooling: line-map splitter, post edits, node checks, harness fragments as modules over window.g, a workflow that performs a step
The harness fragments now run as inline modules (after app.js) and stub the renderer through render.setFetcher; harness.sh's loop mode goes over http + DevTools like resume (file:// cannot load modules; --dump-dom also hangs on current Chrome). No page change yet.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dhu3iHseRewQ2WpBSVLokG
2026-10-21 22:17:50 +00:00

47 lines
1.9 KiB
YAML

name: split
# One step of the module split, performed on the runner: rebuild from main's index.html with tools/split.js (the
# line map), apply tools/split-post.py, check, commit to the branch the workflow was dispatched on. Throwaway once
# the split has landed.
on:
workflow_dispatch:
inputs:
step:
description: "comma list of modules to extract (the rest stays inline), or all"
required: true
message:
description: "commit message (first line)"
required: true
permissions:
contents: write
jobs:
split:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
- name: rebuild from main's index.html
env:
STEP_IN: ${{ github.event.inputs.step }}
run: |
set -eu
git show origin/main:index.html > index.html
if [ "$STEP_IN" = all ]; then WRITE=1 node tools/split.js > /dev/null; else STEP="$STEP_IN" WRITE=1 node tools/split.js > /dev/null; fi
python3 tools/split-post.py
node --check $(ls *.js ui/*.js 2>/dev/null | grep -v -e brain.js -e sw.js)
if [ -f covers.js ] && [ -f render.js ]; then node tools/check-pure.mjs; fi
wc -l index.html *.js ui/*.js 2>/dev/null || true
- name: commit
env:
MSG: ${{ github.event.inputs.message }}
run: |
set -eu
git add -A
if git diff --cached --quiet; then echo "nothing changed"; exit 0; fi
git -c user.name='Claude Fable 5.1' -c user.email='noreply@anthropic.com' commit -q -m "$MSG" -m "Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>" -m "Claude-Session: https://claude.ai/code/session_01Dhu3iHseRewQ2WpBSVLokG"
git push -q origin "HEAD:${GITHUB_REF_NAME}"