#!/bin/sh
# audncode / openclaude — thin wrapper that runs the cross-platform JS launcher
# via bun. /opt/audncode/audncode-launch.mjs is filled in at install time. The JS launcher derives
# OPENCLAUDE_HOME from its own location and does everything in pure JS (routing
# env, subcommands, auth gate, onboarding seeding) — no python, no bash features.
BUN="$(command -v bun || echo /usr/local/bin/bun)"
[ -x "$BUN" ] || { echo "audncode: bun not found on PATH or at /usr/local/bin/bun — reinstall." >&2; exit 1; }
exec "$BUN" run "/opt/audncode/audncode-launch.mjs" "$@"
