Build information
Commit Info
9f97b5f onAdd SessionStart hook for Claude Code on the web (#132)
Cosa fa
Aggiunge un SessionStart hook per le sessioni di Claude Code sul web, così che il toolchain Jekyll sia pronto all’avvio (lint/build/test funzionanti out of the box).
La PR ha come base dev — il branch dove vive il sorgente Jekyll — non
master (che contiene solo l’output statico deployato).
Modifiche
.claude/hooks/session-start.sh— gira solo in remoto (CLAUDE_CODE_REMOTE) e:- fissa Ruby 3.2.6 via rbenv (Jekyll 3.9 è incompatibile con Ruby 3.3+; il container parte con 3.3.6)
- imposta locale UTF-8 (
C.UTF-8), altrimenti Nokogiri/html-proofer leggono le pagine come US-ASCII e controllano 0 link - esegue
git submodule update --init --recursive(pluginpremonitioneSgEExt)- esegue
bundle installsuvendor/bundle(cache-friendly)
- esegue
- persiste
RBENV_VERSION/LANG/LC_ALLper la sessione viaCLAUDE_ENV_FILE .claude/settings.json— registra l’hook
Validazione (locale, in ambiente remoto)
- ✅ Esecuzione hook: exit 0, gem installate, submodule pronti, nessun
drift su
Gemfile.lock - ✅ Linter
jekyll doctor: “Everything looks fine.” - ✅ Test
jekyll build+htmlproofer ./_site --disable-external: 176 link interni su 71 file, “finished successfully”
Note
- Modalità hook: sincrona (garantisce le dipendenze pronte prima dell’avvio; avvio leggermente più lento). Convertibile in async se si preferisce.
- Una volta fatto il merge su
dev(branch di default per lo sviluppo), tutte le sessioni web future useranno l’hook automaticamente.
https://claude.ai/code/session_011N4vhbYFmNyLBYgVaFrzjp
Generated by Claude Code
Build
66 (26713153930)