bootstrap
Adom Hydrogen (platform base)
Public Made by Adomby adom
Layer Hydrogen's workspace onto a standard Adom workstation.
← Commit history
install.sh+4−4@@ -278,7 +278,7 @@ fi # on purpose can keep it by removing the extension; the extension is the source here. for pair in "codex|openai.chatgpt|bin/linux-x86_64/codex|@openai/codex" "claude|anthropic.claude-code|resources/native-binary/claude|@anthropic-ai/claude-code"; do IFS='|' read -r cli ext rel npmpkg <<<"$pair"- bundled=$(ls -d "$HOME"/.local/share/code-server/extensions/${ext}-*/${rel} 2>/dev/null | sort -V | tail -1)+ bundled=$(ls -d "$HOME"/.local/share/code-server/extensions/${ext}-*/${rel} 2>/dev/null | sort -V | tail -1 || true) npmdir="$HOME/.local/lib/node_modules/$npmpkg" [ -n "$bundled" ] && [ -d "$npmdir" ] || continue freed=$(du -sh "$npmdir" 2>/dev/null | cut -f1)@@ -289,7 +289,7 @@ done # The wrappers themselves: (re)write when missing, empty, or replaced by something that is # not a wrapper while the extension's binary exists. Never touch a user's own symlink into # ~/.local/share/claude/versions (a deliberate `claude update` native install).-if bundled=$(ls -d "$HOME"/.local/share/code-server/extensions/openai.chatgpt-*/bin/linux-x86_64/codex 2>/dev/null | sort -V | tail -1) && [ -n "$bundled" ]; then+if bundled=$(ls -d "$HOME"/.local/share/code-server/extensions/openai.chatgpt-*/bin/linux-x86_64/codex 2>/dev/null | sort -V | tail -1 || true) && [ -n "$bundled" ]; then CW="$HOME/.local/bin/codex" if [ ! -s "$CW" ] || { [ ! -L "$CW" ] && ! grep -q "Adom golden image" "$CW"; }; then install -d -m 0755 "$HOME/.local/bin"@@ -309,7 +309,7 @@ CODEXW chmod 0755 "$CW"; echo " codex cli: wrapper onto the extension's binary restored" fi fi-if bundled=$(ls -d "$HOME"/.local/share/code-server/extensions/anthropic.claude-code-*/resources/native-binary/claude 2>/dev/null | sort -V | tail -1) && [ -n "$bundled" ]; then+if bundled=$(ls -d "$HOME"/.local/share/code-server/extensions/anthropic.claude-code-*/resources/native-binary/claude 2>/dev/null | sort -V | tail -1 || true) && [ -n "$bundled" ]; then CW="$HOME/.local/bin/claude" if [ ! -s "$CW" ] || { [ ! -L "$CW" ] && ! grep -q "Adom golden image" "$CW"; }; then install -d -m 0755 "$HOME/.local/bin"@@ -527,7 +527,7 @@ cs_gate() { floor="$(for pj in "$HOME"/.local/share/code-server/extensions/*/package.json; do [ -f "$pj" ] || continue python3 -c "import json,sys;print((json.load(open(sys.argv[1])).get('engines') or {}).get('vscode','') or '')" "$pj" 2>/dev/null- done | tr -d '^><=~ ' | grep -E '^[0-9]+\.[0-9]+' | sort -V | tail -1)"+ done | tr -d '^><=~ ' | grep -E '^[0-9]+\.[0-9]+' | sort -V | tail -1 || true)" if [ -n "$floor" ]; then # code-server's version tracks VS Code's minor: 4.131.0 ships Code 1.131.0. local code_ver="1.${target#*.}"
package.json+1−1@@ -4,7 +4,7 @@ "type": "bootstrap", "title": "Adom Hydrogen (platform base)", "brief": "Layer Hydrogen's workspace onto a standard Adom workstation.",- "version": "0.5.65",+ "version": "0.5.66", "description": "Hydrogen'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 on ANY platform: the runtime-neutral hydrogen-* skills and the generic editor configuration (Claude Code CLI + extension, VS Code settings, trusted domains). Platform-specific layers depend on THIS: adom/hydrogen-windows-bootstrap (WSL2), adom/hydrogen-mac-bootstrap, adom/hydrogen-ubuntu-bootstrap. The reference design other orgs copy to build their own bootstrap on adom/core.", "org": "adom", "tags": [
page.json+1−1@@ -4,7 +4,7 @@ "type": "bootstrap", "title": "Adom Hydrogen (platform base)", "brief": "Layer Hydrogen's workspace onto a standard Adom workstation.",- "version": "0.5.65",+ "version": "0.5.66", "description": "Hydrogen'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 on ANY platform: the runtime-neutral hydrogen-* skills and the generic editor configuration (Claude Code CLI + extension, VS Code settings, trusted domains). Platform-specific layers depend on THIS: adom/hydrogen-windows-bootstrap (WSL2), adom/hydrogen-mac-bootstrap, adom/hydrogen-ubuntu-bootstrap. The reference design other orgs copy to build their own bootstrap on adom/core.", "org": "adom", "tags": [