#!/bin/sh # storebound launcher. On PATH while the Claude Code plugin is enabled; or symlink it anywhere. # Bun runs the sources; without Bun, Node 20+ runs the npm bundle (dist/storebound.mjs, in the npm package). here=$(cd "$(dirname "$0")" && pwd -P) if command -v bun >/dev/null 2>&1; then exec bun "$here/../cli/index.ts" "$@"; fi if [ -f "$here/../dist/storebound.mjs" ] && command -v node >/dev/null 2>&1; then exec node "$here/../dist/storebound.mjs" "$@"; fi echo "storebound: needs Bun (https://bun.sh) or Node 20+ with the npm package (npx storebound)" >&2 exit 127