← Commit history

Publish 0.2.37

John Lauer ·657775198f ·3mo ago ·parent c0a845a
3 files changed +28−3
install.sh+26−1
@@ -120,6 +120,31 @@ CSCONF # patches the WSL2 code-server install path and is therefore PLATFORM-SPECIFIC — # it lives in adom/hd-windows-bootstrap, not here. Mac/Ubuntu layers add their own. -# 6. tidy — install.mjs / tooling leave an empty ~/project/.mcp.json; remove it.+# 6. API-KEY PERSISTENCE (2026-08-04). /var/run is tmpfs — wiped on EVERY distro+#    boot — and HD's launch-time re-injection missed every other boot path+#    (workspace stop/start under a running HD, relay-exec auto-start, manual+#    wsl --terminate), so /var/run/adom/api-key vanished and every in-workspace+#    tool 401'd against carbon/wiki until the next HD relaunch. Fix is+#    DAEMONLESS: a systemd-tmpfiles rule (declarative, runs during sysinit,+#    before code-server) re-materializes the tmpfs key from a persistent copy+#    at ~/.adom/api-key on every boot. HD writes both copies whenever it holds+#    the session token (write-through, HD >= build a1e3b20); this section+#    installs the machinery and migrates a live key into the persistent copy,+#    so a plain `adom-wiki pkg update` retrofits already-running workspaces.+#    NO key material ships in this package — plumbing only.+log "api-key persistence: tmpfiles machinery + persistent-copy migration"+install -d -m 0700 "$HOME/.adom"+if [ -s /var/run/adom/api-key ] && [ ! -s "$HOME/.adom/api-key" ]; then+  cp /var/run/adom/api-key "$HOME/.adom/api-key" && chmod 600 "$HOME/.adom/api-key"+  log "  migrated live key to persistent copy"+fi+if printf 'd /run/adom 0755 root root -\nC /run/adom/api-key 0644 root root - %s/.adom/api-key\n' "$HOME" \+  | sudo tee /etc/tmpfiles.d/adom-api-key.conf >/dev/null 2>&1; then+  log "  tmpfiles.d/adom-api-key.conf installed (boot-time re-materialization)"+else+  log "  WARN: could not install tmpfiles snippet (no sudo?) — HD self-heal installs it on next start"+fi++# 7. tidy — install.mjs / tooling leave an empty ~/project/.mcp.json; remove it. rm -f "$HOME/project/.mcp.json" 2>/dev/null || true log "done"
package.json+1−1
@@ -4,7 +4,7 @@   "type": "bootstrap",   "title": "Hydrogen Desktop Bootstrap (apps + skills)",   "brief": "Layer Hydrogen Desktop's workspace onto a standard Adom workstation.",-  "version": "0.2.36",+  "version": "0.2.37",   "description": "Hydrogen Desktop's PLATFORM-GENERIC workspace layer on top of adom/core. Installs adom/core for the full Adom ecosystem, then adds everything common to running inside Hydrogen Desktop on ANY platform: the platform-generic hd-* skills (BUNDLED in this package by design; wsl2 skills ride adom/hd-windows-bootstrap, mac skills ride adom/hd-mac-bootstrap) and the generic HD editor configuration (Claude Code CLI + extension, VS Code settings, trusted domains). Platform-specific layers depend on THIS: adom/hd-windows-bootstrap, adom/hd-mac-bootstrap.",   "org": "adom",   "tags": [
page.json+1−1
@@ -4,7 +4,7 @@   "type": "bootstrap",   "title": "Hydrogen Desktop Bootstrap (apps + skills)",   "brief": "Layer Hydrogen Desktop's workspace onto a standard Adom workstation.",-  "version": "0.2.36",+  "version": "0.2.37",   "description": "Hydrogen Desktop's PLATFORM-GENERIC workspace layer on top of adom/core. Installs adom/core for the full Adom ecosystem, then adds everything common to running inside Hydrogen Desktop on ANY platform: the platform-generic hd-* skills (BUNDLED in this package by design; wsl2 skills ride adom/hd-windows-bootstrap, mac skills ride adom/hd-mac-bootstrap) and the generic HD editor configuration (Claude Code CLI + extension, VS Code settings, trusted domains). Platform-specific layers depend on THIS: adom/hd-windows-bootstrap, adom/hd-mac-bootstrap.",   "org": "adom",   "tags": [