#!/bin/sh
set -eu
command -v node >/dev/null 2>&1 || { echo 'Install Node.js 22 or newer from https://nodejs.org, then run this command again.' >&2; exit 1; }
companion_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
exec node "$companion_dir/desktop/worker.mjs" "$@"
