← Commit history
._README.mdadded
⋯ 1 unchanged line ⋯
._SKILL.mdadded
⋯ 1 unchanged line ⋯
._package.jsonadded
⋯ 1 unchanged line ⋯
._page.jsonadded
⋯ 1 unchanged line ⋯
._postinstall.shadded
⋯ 1 unchanged line ⋯
package.json+2−2
@@ -4,7 +4,7 @@   "type": "bootstrap",   "title": "Hydrogen Desktop (macOS / Lima)",   "brief": "The macOS platform layer for Hydrogen Desktop.",-  "version": "0.1.3",+  "version": "0.1.4",   "description": "The macOS platform layer for Hydrogen Desktop, where the workspace runs in a Lima Ubuntu VM hosting the Adom-Workspace systemd-nspawn machine. Depends on adom/hd-bootstrap (the platform-generic HD layer) and adds everything specific to the Lima/nspawn runtime: the container/networking/ports/setup/topology/volume/workspace-lifecycle hd-* skills (the macOS-runtime bucket), the in-machine workspace-updater daemon, and the macOS code-server workbench seed. Sibling layers adom/hd-windows-bootstrap (WSL2) and adom/hd-ubuntu-bootstrap depend on the same adom/hd-bootstrap. This is the package the golden Lima image installs.",   "org": "adom",   "tags": [@@ -35,7 +35,7 @@   ],   "hero": {     "headline": "Hydrogen Desktop for macOS",-    "subhead": "The Lima/nspawn workspace layer — AI-driven electronics design, native on Apple Silicon.",+    "subhead": "The Lima/nspawn workspace layer \u2014 AI-driven electronics design, native on Apple Silicon.",     "screenshot": "docs/hero.png"   } }\ No newline at end of file
page.json+40−2
@@ -3,13 +3,51 @@   "type": "bootstrap",   "slug": "hd-mac-bootstrap",   "title": "Hydrogen Desktop (macOS / Lima)",-  "brief": "The macOS platform layer for Hydrogen Desktop \u2014 converges a Lima/nspawn workspace to the HD-on-Mac runtime.",-  "version": "0.1.3",+  "brief": "The macOS platform layer for Hydrogen Desktop.",+  "version": "0.1.4",   "license": "proprietary",   "visibility": "public",   "metadata": {     "platform": "linux",     "host": "macos",     "kind": "bootstrap"+  },+  "description": "The macOS platform layer for Hydrogen Desktop, where the workspace runs in a Lima Ubuntu VM hosting the Adom-Workspace systemd-nspawn machine. Depends on adom/hd-bootstrap (the platform-generic HD layer) and adds everything specific to the Lima/nspawn runtime: the container/networking/ports/setup/topology/volume/workspace-lifecycle hd-* skills (the macOS-runtime bucket), the in-machine workspace-updater daemon, and the macOS code-server workbench seed. Sibling layers adom/hd-windows-bootstrap (WSL2) and adom/hd-ubuntu-bootstrap depend on the same adom/hd-bootstrap. This is the package the golden Lima image installs.",+  "org": "adom",+  "tags": [+    "bootstrap",+    "hydrogen-desktop",+    "hd",+    "macos",+    "mac",+    "lima",+    "nspawn"+  ],+  "needs_sudo": false,+  "scripts": {+    "postinstall": "./postinstall.sh"+  },+  "dependencies": {+    "adom/hd-bootstrap": "^0.2.0",+    "adom/adom-workspace-updater": "^0.1.0"+  },+  "files": [+    "postinstall.sh",+    "skills/**",+    "README.md",+    "SKILL.md",+    "page.json",+    "docs/**",+    "screenshots/**"+  ],+  "hero": {+    "type": "billboard",+    "headline": "Hydrogen Desktop for macOS",+    "subhead": "The Lima/nspawn workspace layer — AI-driven electronics design, native on Apple Silicon.",+    "screenshot": "docs/hero.png"+  },+  "author": {+    "name": "Kyle Bergstedt",+    "email": "[email protected]"   } }\ No newline at end of file
postinstall.sh+33−2
@@ -43,10 +43,41 @@ fi # `adom-cli hydrogen screenshot` prints a ~300 KB base64 dataUrl to stdout; raw in an AI # conversation that's ~85k wasted tokens per capture. `shot` decodes inline and prints only # the PNG path (the AI then Reads it). See hd-self-screenshot-mac for the doctrine.+# The canonical script lives at bin/shot in the PAGE repo, but the pkg tarball only ships+# a fixed file set (no bin/) — so the same script is EMBEDDED here. Keep the two in sync.+mkdir -p "$HOME/.local/bin" if [ -f "$HERE/bin/shot" ]; then-  mkdir -p "$HOME/.local/bin"   install -m 755 "$HERE/bin/shot" "$HOME/.local/bin/shot"-  log "installed the 'shot' screenshot helper -> ~/.local/bin/shot"+else+  cat > "$HOME/.local/bin/shot" <<'SHOT_EOF'+#!/usr/bin/env bash+# shot — one-call HD screenshot that prints ONLY a PNG path (keeps base64 out of the+# AI's context). Installed by adom/hd-mac-bootstrap (canonical source: bin/shot there).+#+#   shot                       # whole workspace (all panels)+#   shot screen                # entire screen (desktop, other apps)+#   shot panel --name "Foo"    # one panel's content+#   shot workspace --reason "verify the flow viewer rendered"+set -euo pipefail+scope="${1:-workspace}"+[ $# -gt 0 ] && shift+out="${SHOT_OUT:-/tmp/shot-${scope}-$(date +%s).png}"+adom-cli hydrogen screenshot "$scope" "$@" 2>/dev/null | python3 -c "+import sys, json, base64+raw = sys.stdin.read()+try:+    d = json.loads(raw)+except Exception:+    sys.stderr.write('shot: unexpected CLI output: ' + raw[:300] + '\n'); sys.exit(1)+u = d.get('dataUrl') or d.get('data_url') or ''+if not u.startswith('data:image'):+    sys.stderr.write('shot: no image returned: ' + json.dumps(d)[:400] + '\n'); sys.exit(1)+open('$out', 'wb').write(base64.b64decode(u.split(',', 1)[1]))+print('$out')+"+SHOT_EOF+  chmod 755 "$HOME/.local/bin/shot" fi+log "installed the 'shot' screenshot helper -> ~/.local/bin/shot"  log "macOS platform layer converged."
screenshots/._hero-v2.pngadded
⋯ 1 unchanged line ⋯