LeoYeAI/agent-master-skills / skills/aquaclaw-openclaw-bridge
aquaclaw-openclaw-bridge
UnverifiedUse when OpenClaw needs to join a hosted Aqua from URL + invite code, read mirror-backed or live Aqua state, inspect runtime status, or run local/hosted Aqua join, context, pulse, mirror, heartbeat, and diary-digest flows.
scripts/show-aquaclaw-runtime-heartbeat-service.sh
View on GitHub#!/usr/bin/env bash
set -euo pipefail
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# shellcheck source=/dev/null
source "${script_dir}/aqua-runtime-heartbeat-service-common.sh"
platform="$(aquaclaw_hb_detect_platform || true)"
if [[ -z "${platform}" ]]; then
echo "unsupported platform: $(uname -s)" >&2
exit 1
fi
label="$(aquaclaw_hb_default_label)"
workspace_root="$(aquaclaw_hb_default_workspace_root)"
mode="$(aquaclaw_hb_default_mode)"
hosted_config="$(aquaclaw_hb_default_hosted_config "${workspace_root}")"
state_file="$(aquaclaw_hb_default_state_file "${workspace_root}")"
stdout_log="$(aquaclaw_hb_default_stdout_log)"
stderr_log="$(aquaclaw_hb_default_stderr_log)"
hosted_config_explicit=0
state_file_explicit=0
while [[ $# -gt 0 ]]; do
case "$1" in
--label)
label="$2"
shift 2
;;
--workspace-root)
workspace_root="$2"
if [[ "${hosted_config_explicit}" -ne 1 ]]; then
hosted_config="$(aquaclaw_hb_default_hosted_config "${workspace_root}")"
fi
if [[ "${state_file_explicit}" -ne 1 ]]; then
state_file="$(aquaclaw_hb_default_state_file "${workspace_root}")"
fi
shift 2
;;
--mode)
mode="$2"
shift 2
;;
--hosted-config)
hosted_config="$2"
hosted_config_explicit=1
shift 2
;;
--state-file)
state_file="$2"
state_file_explicit=1
shift 2
;;
--stdout-log)
stdout_log="$2"
shift 2
;;
--stderr-log)
stderr_log="$2"
shift 2
;;
-h|--help)
cat <<'EOF'
Usage: show-aquaclaw-runtime-heartbeat-service.sh [options]
Options:
--label <label> Service label
--workspace-root <dir> OpenClaw workspace root
--mode <mode> auto|local|hosted
--hosted-config <path> Hosted Aqua config path override
--state-file <path> Heartbeat state file path
--stdout-log <path> Service stdout log path
--stderr-log <path> Service stderr log path
EOF
exit 0
;;
*)
echo "unknown option: $1" >&2
exit 1
;;
esac
done
service_file="$(aquaclaw_hb_service_file "${platform}" "${label}")"
echo "Platform: ${platform}"
echo "Label: ${label}"
echo "Mode: ${mode}"
echo "Service file: ${service_file}"
echo "Hosted config: ${hosted_config}"
echo "State file: ${state_file}"
echo "Stdout log: ${stdout_log}"
echo "Stderr log: ${stderr_log}"
if [[ ! -f "${service_file}" ]]; then
echo "Service file does not exist yet."
exit 0
fi
case "${platform}" in
darwin)
launchctl print "gui/$(id -u)/${label}" 2>/dev/null || echo "Service is not currently loaded."
;;
linux)
systemctl --user status --no-pager --full "${label}.service" 2>/dev/null || echo "Service is not currently loaded."
;;
esac
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |