#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")

case `uname` in
    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -z "$NODE_PATH" ]; then
  export NODE_PATH="/tmp/claude-1000/-home-z/2c3aae7b-3d4b-4729-b9c3-9bcbb475d2ef/scratchpad/sweep/hanzobot-core/node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/node_modules:/tmp/claude-1000/-home-z/2c3aae7b-3d4b-4729-b9c3-9bcbb475d2ef/scratchpad/sweep/hanzobot-core/node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/node_modules:/tmp/claude-1000/-home-z/2c3aae7b-3d4b-4729-b9c3-9bcbb475d2ef/scratchpad/sweep/hanzobot-core/node_modules/.pnpm/acorn@8.16.0/node_modules:/tmp/claude-1000/-home-z/2c3aae7b-3d4b-4729-b9c3-9bcbb475d2ef/scratchpad/sweep/hanzobot-core/node_modules/.pnpm/node_modules"
else
  export NODE_PATH="/tmp/claude-1000/-home-z/2c3aae7b-3d4b-4729-b9c3-9bcbb475d2ef/scratchpad/sweep/hanzobot-core/node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/node_modules:/tmp/claude-1000/-home-z/2c3aae7b-3d4b-4729-b9c3-9bcbb475d2ef/scratchpad/sweep/hanzobot-core/node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/node_modules:/tmp/claude-1000/-home-z/2c3aae7b-3d4b-4729-b9c3-9bcbb475d2ef/scratchpad/sweep/hanzobot-core/node_modules/.pnpm/acorn@8.16.0/node_modules:/tmp/claude-1000/-home-z/2c3aae7b-3d4b-4729-b9c3-9bcbb475d2ef/scratchpad/sweep/hanzobot-core/node_modules/.pnpm/node_modules:$NODE_PATH"
fi
if [ -x "$basedir/node" ]; then
  exec "$basedir/node"  "$basedir/../../../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/acorn" "$@"
else
  exec node  "$basedir/../../../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/bin/acorn" "$@"
fi
