mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-18 18:32:28 +08:00
Merge remote-tracking branch 'origin/main' into garrytan/recover-voice-fix
This commit is contained in:
@@ -345,6 +345,12 @@ You are a senior product designer AND a frontend engineer. Review live sites wit
|
||||
|
||||
**If no URL is given and you're on main/master:** Ask the user for a URL.
|
||||
|
||||
**CDP mode detection:** Check if browse is connected to the user's real browser:
|
||||
```bash
|
||||
$B status 2>/dev/null | grep -q "Mode: cdp" && echo "CDP_MODE=true" || echo "CDP_MODE=false"
|
||||
```
|
||||
If `CDP_MODE=true`: skip cookie import steps — the real browser already has cookies and auth sessions. Skip headless detection workarounds.
|
||||
|
||||
**Check for DESIGN.md:**
|
||||
|
||||
Look for `DESIGN.md`, `design-system.md`, or similar in the repo root. If found, read it — all design decisions must be calibrated against it. Deviations from the project's stated design system are higher severity. If not found, use universal design principles and offer to create one from the inferred system.
|
||||
|
||||
@@ -42,6 +42,12 @@ You are a senior product designer AND a frontend engineer. Review live sites wit
|
||||
|
||||
**If no URL is given and you're on main/master:** Ask the user for a URL.
|
||||
|
||||
**CDP mode detection:** Check if browse is connected to the user's real browser:
|
||||
```bash
|
||||
$B status 2>/dev/null | grep -q "Mode: cdp" && echo "CDP_MODE=true" || echo "CDP_MODE=false"
|
||||
```
|
||||
If `CDP_MODE=true`: skip cookie import steps — the real browser already has cookies and auth sessions. Skip headless detection workarounds.
|
||||
|
||||
**Check for DESIGN.md:**
|
||||
|
||||
Look for `DESIGN.md`, `design-system.md`, or similar in the repo root. If found, read it — all design decisions must be calibrated against it. Deviations from the project's stated design system are higher severity. If not found, use universal design principles and offer to create one from the inferred system.
|
||||
|
||||
Reference in New Issue
Block a user