chezmoi: forgejo skill ai-only templates; zed settings headless guard #86
Loading…
Reference in a new issue
No description provided.
Delete branch "william/chezmoi-templates"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
forgejo skill: ai-host-only templates (
893866d)Wrap all 9 forgejo pi skill files (
SKILL.md,NOTES.md,references/api-routes.md, 6scripts/executable_*.py) in the standard{{ if hasSuffix "-ai" .chezmoi.username }}guard so they onlymaterialize on ai machines, matching the other ai-only pi configs
(
web-search.json.tmpl, extensions,ai-*.sh).Rendered output on ai hosts is byte-identical to the previous plain files.
zed: headless guard instead of chezmoiignore (
1c32fe9){{ if .global.headless }} .config/zed {{ end }}ignore block.dot_config/zed/settings.json.tmplin{{ if not .global.headless }}so the config only applies on graphical machines.
.config/zed/promptsand.config/zed/themesremain ignored.Graphical-host render verified byte-identical to the previous output.
Note: this branch also carries 3 previously-unpushed pi commits
(compaction-rescue fix, bifrost catalog refresh, settings sync).
preparation.fileOps is pi's FileOperations {read, written, edited} — three Sets, not an array of ops. fileOps.filter() threw after every chunk had been summarized, so session_before_compact rejected, pi appended no compaction, and the session dead-ended over the threshold with no recovery path. Read the Sets (written union edited) and keep the whole details block inside a try: details is optional in CompactionOutput, so an unexpected shape costs file recall rather than the summary it would have discarded. Guard serializeConversation for the same reason. Verified: verify-rescue.mts 38/38 (mock now uses the real Set shape, plus regression cases for array-shaped/missing/empty fileOps and a throwing serializer); resuming a copy of the dead-ended lava session appended fromHook:true at 390,362 tokens-before and continued 40 entries error-free.zed: manage settings via headless guard instead of chezmoiignoreto chezmoi: forgejo skill ai-only templates; zed settings headless guard