#!/bin/bash
# Re-run the per-user setup (native host registration + opencode config) for
# the current user, e.g. for a second account on this Mac.
#   setup            browser tools only
#   setup --llama    ...and the llama.cpp provider
APP="/Library/Application Support/opencode-browser"
"$APP/bin/node" "$APP/user-setup.mjs" install "$APP"
[ "$1" = "--llama" ] && "$APP/bin/node" "$APP/user-setup.mjs" llama "$APP"
exit 0
