master-zapier-plan-draft/research/zapier/scripts/restart-grok.sh
George Lambert b4150c8250 Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe),
packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier
(CLI app), vendor/zapier-platform, and research/zapier vendor corpus.

Gate 0 structure checks pass. Product code and research are not yet wired.
2026-09-09 02:37:36 -04:00

23 lines
626 B
Bash
Executable file

#!/bin/sh
# Quit the current Grok TUI first (/quit), then run this from a normal shell.
# Brings up the Mongo tunnel and resumes the latest session in this workspace.
set -eu
ROOT="$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)"
cd "$ROOT"
export PATH="$HOME/.npm-global/bin:$PATH"
if [ -f "$HOME/.mcp-env" ]; then
# shellcheck disable=SC1091
. "$HOME/.mcp-env"
fi
"$ROOT/scripts/ensure-mongo-tunnel.sh"
if ! command -v grok >/dev/null 2>&1; then
echo "grok is not on PATH" >&2
exit 1
fi
echo "starting grok --resume in $ROOT"
echo "after it opens: /mcps (press r to refresh) then /zapier-build"
exec grok --resume