#!/usr/bin/env bash
# fibers — the CLI, from the plugin install location. This is the copy that
# is actually on PATH: Claude Code puts the installed plugin's bin/ on a
# session's PATH, so `fibers` in a session resolves here and NOT to
# ~/.fibers/bin (which nothing adds to PATH). The repo's own bin/fibers and
# the promoted launcher in ~/.fibers/bin are separate entry points.
#
# Unlike the hook launcher (bin/fibers-hook) this is NOT fail-open:
# interactive commands report their real exit code.
set -u

PLUGIN_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
# shellcheck source=../lib/runtime.sh
. "$PLUGIN_ROOT/lib/runtime.sh"
fibers_run_interactive "$@"
