feat: glm settings, wakeonlan, MacBook vault path; drop OpenAI key

- dot_claude/settings-glm.json: the model map glm() passes to claude,
  carried from ben-pc; no other machine had it, so glm() failed everywhere
- core/wakeonlan in the dotup manifest, for the private tier's wakeup_tv
- sysjournal and the vault symlink now find the MacBook's personal vault,
  which Obsidian Sync named "Personal" rather than "Obsidian-Personal";
  candidates must contain .obsidian, so a plain ~/Documents/Personal folder
  or the stale Obsidian2 can no longer win
- zshrc: remove the zsh-ai openai provider case; OPENAI_API_KEY is gone

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FbsgpRXBucM8DAwLARhA6
This commit is contained in:
benandClaude Opus 5.5 committed 2026-11-18 22:43:58 -05:00
1 parent 28bcea9850
commit 1344c64819
7 files changed
+28 -10

No files matched your search

@@ -146,7 +146,7 @@ while [ "$#" -ge 2 ]; do
# -o env prints `KEY=VALUE`, where KEY is the secret's own name in bws.
# Comparing it to the name we asked for is a free integrity check on the
# map: an id that points OPENAI_API_KEY at the Groq secret is caught here
# map: an id that points GEMINI_API_KEY at the Groq secret is caught here
# rather than six months later as a confusing 401.
line="$(bws secret get "$id" -o env 2>/dev/null)" \
|| abort "could not fetch $name from bws (no network, or the token is wrong or revoked)"
+1 -1
View File
@@ -169,7 +169,7 @@ done
# go-tools is `go install`; without a go there is nothing to run it.
reset; sh $D toggle p:core/go >/dev/null
is "dropping go drops go-tools" "off" "$(on core/go-tools)"
# bws-secrets promised seven API keys and installed nothing to fetch them with.
# bws-secrets promised six API keys and installed nothing to fetch them with.
# The binary ships as a .zip and 24.04 minimal has no unzip, so the dependency
# is real rather than decorative.
reset; sh $D toggle p:private/bws-secrets >/dev/null
+7
View File
@@ -0,0 +1,7 @@
{
"env": {
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.7-flash",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.7",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-4.6"
}
}
+9 -6
View File
@@ -15,14 +15,17 @@
set -euo pipefail
# Vault location. SYSJOURNAL_VAULT always wins; otherwise take the first
# candidate that exists on this machine. Obsidian-Personal is the cutover
# target, so it is preferred wherever it has landed; the pre-split vault is
# the fallback for machines that have not synced the split yet, and it is
# named Obsidian25 on Linux but Obsidian2 on the MacBook.
# candidate on this machine that is an Obsidian vault (has a .obsidian dir).
# The split-off personal vault comes first: Obsidian Sync landed it as
# Obsidian-Personal on Linux but as plain "Personal" on the MacBook. The
# pre-split vault is the fallback for machines that have not synced the split
# yet, named Obsidian25 on Linux but Obsidian2 on the MacBook. Requiring
# .obsidian stops a generic ~/Documents/Personal folder from being mistaken
# for a vault, and stops the MacBook's stale Obsidian2 from winning.
sysjournal_default_vault() {
local c
for c in "Obsidian-Personal" "Obsidian25" "Obsidian2"; do
[ -d "$HOME/Documents/$c" ] && { printf '%s' "$HOME/Documents/$c"; return; }
for c in "Obsidian-Personal" "Personal" "Obsidian25" "Obsidian2"; do
[ -d "$HOME/Documents/$c/.obsidian" ] && { printf '%s' "$HOME/Documents/$c"; return; }
done
printf '%s' "$HOME/Documents/Obsidian-Personal" # for the error message
}
+9 -1
View File
@@ -1 +1,9 @@
{{ .chezmoi.homeDir }}/Documents/Obsidian-Personal/Meta/bin/vault
{{- /* The personal vault is Obsidian-Personal on Linux but "Personal" on the
MacBook (Obsidian Sync named it there). Same rule as sysjournal: first
candidate that is a vault wins, Obsidian-Personal when neither is. */ -}}
{{- $docs := joinPath .chezmoi.homeDir "Documents" -}}
{{- $vault := joinPath $docs "Obsidian-Personal" -}}
{{- if and (not (stat (joinPath $vault ".obsidian"))) (stat (joinPath $docs "Personal" ".obsidian")) -}}
{{- $vault = joinPath $docs "Personal" -}}
{{- end -}}
{{ $vault }}/Meta/bin/vault
+1
View File
@@ -93,6 +93,7 @@ core magic-wormhole safe magic-wormhole magic-wormhole snap wormhole on dev
core bitwarden-cli safe -snap bitwarden-cli snap bw on ubuntu
core mosh safe mosh mosh
core nmap safe nmap nmap
core wakeonlan safe wakeonlan wakeonlan for the wakeup_tv alias in the private tier's local.zsh
core binwalk safe binwalk binwalk
core pipx safe pipx pipx
core age safe age age general purpose only now
Can't render this file because it contains an unexpected character in line 17 and column 49.
-1
View File
@@ -127,7 +127,6 @@ plugins=(git zsh-autosuggestions sudo web-search dirhistory history)
# nothing else. ollama is local and needs no key.
case ${ZSH_AI_PROVIDER:-anthropic} in
gemini) _zai_key=GEMINI_API_KEY ;;
openai) _zai_key=OPENAI_API_KEY ;;
ollama) _zai_key= ;;
*) _zai_key=ANTHROPIC_API_KEY ;;
esac