app
hook
Public Made by Adomby adom
Registry-native cross-agent auto-update hook, plus claude-rc, the keeper for Claude Remote Control. Keeps adom/core apps and skills current from wiki.adom.inc on every Claude Code and Codex prompt, and keeps `claude rc` alive so users can open AI threads on their container from the Claude mobile app or claude.ai/code.
← Commit history
check-updates.sh+22@@ -27,6 +27,28 @@ # silently no-ops ("command -v adom-wiki" fails). Put the CLI dir on PATH first. export PATH="$HOME/.local/bin:$PATH" +# --- 0. Self-heal a drifted hook FILE. ----------------------------------------+# This deployed file is shared mutable state: an OLD adom/hook's install.sh (for+# example a staging-era package pulled during testing, whose install script+# writes here regardless of any scratch prefix) can overwrite it with a version+# that probes retired tooling and silently updates nothing -- and because the+# fleet's installed adom/hook version stays current, install.sh never re-runs to+# fix it (observed 2026-08-28: a container sat 3 days at an old CLI while its+# clobbered hook bannered "updating" every 30 minutes). Compare THIS file against+# the installed package's canonical copy and re-assert on ANY drift. The swap is+# an mv (inode rename) so the currently-running read keeps its old inode safely;+# the healed script takes over from the next prompt.+SELF="${BASH_SOURCE[0]:-$0}"+for cand in "${ADOMPKG_PREFIX:+$ADOMPKG_PREFIX/adom_modules}" "$HOME/project/adom_modules" "$HOME/adom_modules"; do+ [ -n "$cand" ] && [ -f "$cand/adom/hook/check-updates.sh" ] || continue+ if ! cmp -s "$cand/adom/hook/check-updates.sh" "$SELF" 2>/dev/null; then+ if cp "$cand/adom/hook/check-updates.sh" "$SELF.new" 2>/dev/null && chmod 0755 "$SELF.new" 2>/dev/null && mv -f "$SELF.new" "$SELF" 2>/dev/null; then+ echo "adom: the auto-update hook file had drifted from the installed adom/hook package and was re-asserted; the healed hook runs from the next prompt on."+ fi+ fi+ break+done+ ADOM_DIR="${HOME}/.adom" STAMP="${ADOM_DIR}/last-core-check" LOG="${ADOM_DIR}/last-update.log" # combined output of the last update
package.json+9−2@@ -1,6 +1,6 @@ { "slug": "hook",- "version": "1.2.3",+ "version": "1.2.4", "type": "app", "org": "adom", "bundled": true,@@ -32,5 +32,12 @@ "subhead": "Registry-native auto-update for Claude + Codex", "screenshot": "docs/shot.png", "accent": "#7ee787"- }+ },+ "managed_files": [+ {+ "src": "check-updates.sh",+ "dest": "~/.adom/hooks/adom-core-update.sh",+ "mode": "0755"+ }+ ] }
page.json+9−2@@ -1,6 +1,6 @@ { "slug": "hook",- "version": "1.2.3",+ "version": "1.2.4", "type": "app", "org": "adom", "bundled": true,@@ -38,5 +38,12 @@ "author": { "name": "Kyle Bergstedt", "email": "[email protected]"- }+ },+ "managed_files": [+ {+ "src": "check-updates.sh",+ "dest": "~/.adom/hooks/adom-core-update.sh",+ "mode": "0755"+ }+ ] }