Set up a Mac for a Federated Core, like CoreDesktop's configure
A macOS counterpart of CoreDesktop's configure, with the same drop-in items in configure.d/: - core: Mail, Calendar and Contacts through a configuration profile, Superpanel as an app, Nextcloud files through the Nextcloud app, and Element; with test-and-fix, password change and removal - tailscale: join the Core's network through headscale - backup: restic to Nextcloud through rclone, run by launchd through an app that can be given Full Disk Access - storage: SMB shares mounted the way Finder does, again at login and on network changes - agents, claude, opencode, hermes, sandbox: install the agents and run them in Anthropic's sandbox runtime (Seatbelt on macOS) - ai-servers: LLM servers on this Mac or the network, for the agents Apps and tools macOS lacks are offered for download, checked against their makers' Team IDs and notarization, or published SHA-256 sums. Everything runs on macOS' bash 3.2 with only built-in tools. smoketest/ runs scenarios in fresh macOS VMs with Tart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# shellcheck shell=bash
|
||||
DESCRIPTION="configure's menu, --list and an item run on bash 3.2 without errors"
|
||||
TIER=quick
|
||||
|
||||
list_quietly() {
|
||||
local out err
|
||||
err="$("$CONNECTOR/configure" --list 2>&1 > /dev/null < /dev/null)"
|
||||
[ -z "$err" ] || { echo "$err"; return 1; }
|
||||
}
|
||||
|
||||
lists() {
|
||||
"$CONNECTOR/configure" --list < /dev/null | grep -qE "^(to do|done) +$1 "
|
||||
}
|
||||
|
||||
scenario() {
|
||||
check "configure --help" "$CONNECTOR/configure" --help
|
||||
check "configure --list, nothing on stderr" list_quietly
|
||||
for item in core tailscale backup agents ai-servers storage; do
|
||||
check "--list has $item" lists "$item"
|
||||
done
|
||||
check_not "--list leaves out claude, opencode and hermes before they're installed" lists claude
|
||||
check_not "configure <unknown item> fails" "$CONNECTOR/configure" no-such-item
|
||||
check "the menu quits on q" bash -c "echo q | '$CONNECTOR/configure'"
|
||||
check "configure core asks for the Superpanel and rejects an empty one" \
|
||||
bash -c "printf '\n' | '$CONNECTOR/configure' core | grep -q \"That isn't a Superpanel address\""
|
||||
}
|
||||
Reference in New Issue
Block a user