~cytrogen/gstack

ref: a68244ab57aafd43e83764f603d43291e53aca74 gstack/browse/bin/find-browse -rwxr-xr-x 722 bytes
a68244ab — Garry Tan feat: /document-release skill — post-ship doc updates (v0.4.3) (#109) a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# Shim: delegates to compiled find-browse binary, falls back to basic discovery.
# The compiled binary handles git root detection for workspace-local installs.
DIR="$(cd "$(dirname "$0")/.." && pwd)/dist"
if test -x "$DIR/find-browse"; then
  exec "$DIR/find-browse" "$@"
fi
# Fallback: basic discovery
ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
if [ -n "$ROOT" ] && test -x "$ROOT/.claude/skills/gstack/browse/dist/browse"; then
  echo "$ROOT/.claude/skills/gstack/browse/dist/browse"
elif test -x "$HOME/.claude/skills/gstack/browse/dist/browse"; then
  echo "$HOME/.claude/skills/gstack/browse/dist/browse"
else
  echo "ERROR: browse binary not found. Run: cd <skill-dir> && ./setup" >&2
  exit 1
fi