Add OpenClaw as a desktop app and a coding agent
(cherry picked from commit eb56446c42)
(cherry picked from commit bde2584b5596412142d0a2039d44dd6a25949517)
30 lines
793 B
Bash
Executable File
30 lines
793 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Ensure the OpenClaw CLI is installed for the default agent
|
|
# omarchy:args=[--check|--now]
|
|
# omarchy:requires-sudo=true
|
|
|
|
# OpenClaw is not a mise tool: the openclaw pacman package is the one OpenClaw
|
|
# installation on the machine — the CLI, the gateway, and the Install > AI web
|
|
# app all share it, and the fast ring keeps it current. The default-agent flow
|
|
# talks to that package through the same --check/--now contract mise-backed
|
|
# agents get from mise itself.
|
|
|
|
set -euo pipefail
|
|
|
|
case "${1:---now}" in
|
|
--check)
|
|
omarchy-pkg-present openclaw
|
|
;;
|
|
--now)
|
|
if ! omarchy-pkg-present openclaw; then
|
|
echo "Installing OpenClaw..."
|
|
omarchy-pkg-add openclaw
|
|
fi
|
|
;;
|
|
*)
|
|
echo "Usage: omarchy-install-openclaw-cli [--check|--now]" >&2
|
|
exit 1
|
|
;;
|
|
esac
|