This directory contains modifications and additions to make gstack work seamlessly within the Windsurf IDE (Cascade) for Salesforce development workflows.
Main wrapper script that provides Salesforce-aware browser automation:
goto-org [org-alias]— Navigate to your Salesforce orggoto-record <record-id> [org-alias]— Navigate to a specific recordrecord-screenshot <record-id> [org-alias]— Navigate and screenshot a recordscreenshot [path]— Take screenshot of current pagebrowse <args...>— Pass through to gstack browse binary
Shell setup script that adds convenient aliases:
gstack— Main commandgsf— goto-org shortcutgss— screenshot shortcutgsb— browse shortcut
From Windsurf Cascade chat:
# Clone your fork (after forking on GitHub)
git clone https://github.com/YOUR_USERNAME/gstack.git ~/Repositories/gstack
# Install and build
cd ~/Repositories/gstack && ./setup
# Use from any project directory
~/Repositories/gstack/windsurf/gstack-windsurf goto-org mydevorgThe script integrates with sf CLI to get session tokens automatically:
# Ensure you're authenticated
sf org login -a mydevorg
# The wrapper will use your active session
~/Repositories/gstack/windsurf/gstack-windsurf record-screenshot a0AHp000010KISjMAO~/Repositories/gstack/windsurf/gstack-windsurf browse goto "https://415-dev-ed.my.salesforce.com/a0AHp000010KISjMAO"
sleep 10
~/Repositories/gstack/windsurf/gstack-windsurf screenshot /tmp/record.png# Navigate and check console
~/Repositories/gstack/windsurf/gstack-windsurf browse goto "https://415-dev-ed.lightning.force.com"
~/Repositories/gstack/windsurf/gstack-windsurf browse console --errors
# Get snapshot for interaction
~/Repositories/gstack/windsurf/gstack-windsurf browse snapshot -i
~/Repositories/gstack/windsurf/gstack-windsurf browse click @e5- Location: Original uses
~/.claude/skills/, this uses~/Repositories/gstack - Authentication: Added Salesforce
sidcookie injection fromsfCLI - Commands: Added
goto-recordandrecord-screenshothelpers - IDE: Optimized for Windsurf/Cascade environment
This is a fork-specific addition. To contribute improvements back to the original gstack:
- Make changes in
windsurf/directory - Test within Windsurf
- Submit PR to
garrytan/gstackwith Windsurf-specific documentation