Trim GStack 2: remove sidebar/terminal/classifier, pair-agent opt-in, anti-slop bar (#15)

# Conflicts:
#	bun.lock
#	package.json
This commit is contained in:
Sinabina
2026-07-21 18:10:13 -07:00
97 changed files with 459 additions and 16505 deletions
-7
View File
@@ -4,7 +4,6 @@
# Creates a self-contained .app with:
# - Compiled browse binary
# - Playwright's bundled Chromium
# - Chrome extension (sidebar)
# - Info.plist with bundle ID
#
# Output: dist/GStack Browser.app and dist/GStack-Browser.dmg
@@ -63,11 +62,6 @@ chmod +x "$APP_DIR/Contents/MacOS/gstack-browser"
cp "$BUILD_DIR/browse-app" "$APP_DIR/Contents/Resources/browse"
chmod +x "$APP_DIR/Contents/Resources/browse"
# Extension
cp -r "$ROOT/extension" "$APP_DIR/Contents/Resources/extension"
# Remove .auth.json if present (auth now via /health endpoint)
rm -f "$APP_DIR/Contents/Resources/extension/.auth.json"
# Server source (needed for `bun run server.ts` subprocess)
# The launcher sets BROWSE_SERVER_SCRIPT to point at this.
# Copy the full src/ directory since server.ts imports other modules.
@@ -163,7 +157,6 @@ echo ""
echo " $APP_NAME.app: $APP_SIZE"
echo " Contents/MacOS/gstack-browser (launcher)"
echo " Contents/Resources/browse ($(du -sh "$APP_DIR/Contents/Resources/browse" | cut -f1))"
echo " Contents/Resources/extension/ ($(du -sh "$APP_DIR/Contents/Resources/extension" | cut -f1))"
echo " Contents/Resources/chromium/ ($(du -sh "$APP_DIR/Contents/Resources/chromium" | cut -f1))"
# ─── Step 6: DMG (optional) ─────────────────────────────────────
-1
View File
@@ -32,7 +32,6 @@ case "$(uname -s)" in
;;
esac
"$BUN_CMD" run vendor:xterm
"$BUN_CMD" build --compile browse/src/cli.ts --outfile browse/dist/browse
"$BUN_CMD" build --compile browse/src/find-browse.ts --outfile browse/dist/find-browse
"$BUN_CMD" build --compile design/src/cli.ts --outfile design/dist/design
+2 -2
View File
@@ -169,8 +169,8 @@
"voice_line": null
},
"open-gstack-browser": {
"lead": "Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in.",
"routing": "Opens a visible browser window where you can watch every action in real time.\nThe sidebar shows a live activity feed and chat. Anti-bot stealth built in.\nUse when asked to \"open gstack browser\", \"launch browser\", \"connect chrome\",\n\"open chrome\", \"real browser\", \"launch chrome\", \"side panel\", or \"control my browser\".",
"lead": "Launch GStack Browser — AI-controlled Chromium you can watch in real time.",
"routing": "Opens a visible browser window where you see every action as it happens.\nAnti-bot stealth built in.\nUse when asked to \"open gstack browser\", \"launch browser\", \"connect chrome\",\n\"open chrome\", \"real browser\", \"launch chrome\", or \"control my browser\".",
"voice_line": "Voice triggers (speech-to-text aliases): \"show me the browser\"."
},
"pair-agent": {
+6 -7
View File
@@ -91,13 +91,12 @@ const WINDOWS_FRAGILE_PATTERNS: Array<{ pattern: RegExp; reason: string }> = [
// BROWSE_HEADLESS_SKIP=1 to skip the browser launch but still need a working
// server, which they don't get on Windows.
{ pattern: /BROWSE_HEADLESS_SKIP|spawn\(\[['"]bun['"],\s*['"]run['"]/, reason: 'spawns the browse server subprocess (Bun-driven path is Windows-broken)' },
// Tests that read browse/src/sidebar-agent.ts — deleted in v1.14.0.0
// sidebar refactor (replaced by sidepanel-terminal.js). 10 security tests
// still reference it and fail on import. They've been broken on every
// platform since v1.14, but Bun on macOS/Linux reports the failure as a
// module-load error (exit 0) while Bun on Windows treats it as a hard
// fail (exit 1). Tracked as a follow-up: update or delete these tests.
{ pattern: /sidebar-agent\.ts/, reason: 'reads deleted browse/src/sidebar-agent.ts (pre-existing breakage from v1.14.0.0 sidebar refactor)' },
// Guard: exclude any test that names the long-deleted
// browse/src/sidebar-agent.ts. The classifier/sidebar tests that used to
// read it are gone; remaining hits are comment-level references in tests
// that pass. Kept as a cheap tripwire so a reintroduced read can't sneak
// a Windows-CI hard-fail back in.
{ pattern: /sidebar-agent\.ts/, reason: 'names deleted browse/src/sidebar-agent.ts' },
];
// Explicit known-Windows-incompatible test files that don't fit a regex