app
adom-courier
Public Made by Adomby adom
App-neutral Google Chat human-in-the-loop middleware for Adom apps. Two directions: apps POST /requests to ask a human (Marv posts via adom-gchat, the reply comes back with identity + attachment bytes
#!/usr/bin/env bash
# adom-courier installer — Google Chat human-in-the-loop middleware. Runs in the container
# during `adom-wiki pkg install` (npm-style; this is package.json scripts.install). Self-contained:
# symlinks the CLI + skill onto PATH with plain shell — no package-manager helpers, so it survives
# tooling changes. The broker SERVICE (server.js) runs on a dedicated container — see
# service/deploy.sh. This package also gives any container the `adom-courier` CLI to talk to a
# running broker (set $ADOM_COURIER_URL to point at the remote service).
set -euo pipefail
HERE="$(cd "$(dirname "$0")" && pwd)"
cd "$HERE"
chmod +x bin/adom-courier server.js service/watchdog.sh service/deploy.sh 2>/dev/null || true
mkdir -p "$HOME/.local/bin" "$HOME/.claude/skills"
ln -sf "$HERE/bin/adom-courier" "$HOME/.local/bin/adom-courier" # CLI on PATH
ln -sf "$HERE/skills/adom-courier" "$HOME/.claude/skills/adom-courier" # skill for the agent
case ":$PATH:" in
*":$HOME/.local/bin:"*) ;;
*) echo "[adom-courier] NOTE: $HOME/.local/bin is not on PATH — add it to your shell rc." ;;
esac
echo "✅ adom-courier installed."
echo " CLI: adom-courier help (talks to \$ADOM_COURIER_URL, default http://127.0.0.1:8870)"
echo " Depends: adom-google (receive) + adom-gchat (post as Marv) — installed as deps."
echo " Service: to run the always-on broker on its own container: bash service/deploy.sh"