chezmoi: forgejo skill ai-only templates; zed settings headless guard #86

Merged
william-admin merged 5 commits from william/chezmoi-templates into main 2026-10-24 01:40:24 -07:00 AGit
Member

forgejo skill: ai-host-only templates (893866d)

Wrap all 9 forgejo pi skill files (SKILL.md, NOTES.md,
references/api-routes.md, 6 scripts/executable_*.py) in the standard
{{ if hasSuffix "-ai" .chezmoi.username }} guard so they only
materialize 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)

  • Remove the {{ if .global.headless }} .config/zed {{ end }} ignore block.
  • Wrap dot_config/zed/settings.json.tmpl in {{ if not .global.headless }}
    so the config only applies on graphical machines.
  • .config/zed/prompts and .config/zed/themes remain 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).

## forgejo skill: ai-host-only templates (893866d) Wrap all 9 forgejo pi skill files (`SKILL.md`, `NOTES.md`, `references/api-routes.md`, 6 `scripts/executable_*.py`) in the standard `{{ if hasSuffix "-ai" .chezmoi.username }}` guard so they only materialize 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) - Remove the `{{ if .global.headless }} .config/zed {{ end }}` ignore block. - Wrap `dot_config/zed/settings.json.tmpl` in `{{ if not .global.headless }}` so the config only applies on graphical machines. - `.config/zed/prompts` and `.config/zed/themes` remain 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.
- qwen3.8-flash energy cost: 10k t/s prefill / 180 t/s decode (operator-set)
  @ 650 W, $0.37/kWh -> $0.0067 in / $0.3711 out per M (was 0.0386/0.5787)
- kimi-k3 -> kimi-k3.1-pro with its own Novita page: $2/$10/$0.2 per M,
  1M ctx, 1M max output (was k3's 3/15/0.3, 128K out)
- deepseek-v4.1-flash -> dated slug -1017 (live bifrost id)
- glm-5.3-flash: Novita promo expired, now $0.15/$0.50/$0.03 (was 0.075/0.25/0.015)
- remove retired undated deepseek + kimi-k3 STATIC entries
Wrap all forgejo pi skill files in the standard
'hasSuffix "-ai" .chezmoi.username' guard so they only
materialize on ai machines, matching the other ai-only
pi configs.
Remove .config/zed ignore entries and wrap settings.json.tmpl in
the not-headless guard so the config only applies on graphical
machines. prompts/ and themes/ are no longer ignored but nothing else
is tracked under them.
william changed title from zed: manage settings via headless guard instead of chezmoiignore to chezmoi: forgejo skill ai-only templates; zed settings headless guard 2026-10-24 01:39:54 -07:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
wak/chezmoi-wak!86
No description provided.