Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

chore: renamed pdev to dev

Luigi Agosti0824a79732bf
diff --git a/.github/DEFINITION_OF_DONE.md b/.github/DEFINITION_OF_DONE.md
index 97066f88..cf3aacb2 100644
--- a/.github/DEFINITION_OF_DONE.md
+++ b/.github/DEFINITION_OF_DONE.md
@@ -3,7 +3,7 @@
## Automated ✅ (CI/GitHub enforces these)
These run automatically via `ci.yml`. If your PR fails them, fix and re-push.
- [ ] Go formatting & linting passes (gofmt, vet, golangci-lint)
-- [ ] Unit + E2E tests pass (`go test ./...` and `./pdev e2e`)
+- [ ] Unit + E2E tests pass (`go test ./...` and `./dev e2e`)
- [ ] Build succeeds (`go build`)
- [ ] CodeQL security scan passes
- [ ] Branch naming follows convention
@@ -20,7 +20,7 @@ These run automatically via `ci.yml`. If your PR fails them, fix and re-push.
## Manual — Testing (Required)
- [ ] **New/changed functionality has tests** — Same-package unit tests preferred
-- [ ] **Docker E2E tests run locally** — If you modified handlers/bridge/tabs, run: `./pdev e2e` (Docker curl E2E) and/or `./pdev e2e cli` (Docker CLI E2E)
+- [ ] **Docker E2E tests run locally** — If you modified handlers/bridge/tabs, run: `./dev e2e` (Docker curl E2E) and/or `./dev e2e cli` (Docker CLI E2E)
- [ ] **npm commands work** (if npm wrapper touched):
- `npm pack` in `/npm/` produces valid tarball
- `npm install -g pinchtab` (or from local tarball) succeeds
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 536b66f6..050f9915 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -5,7 +5,7 @@
```bash
git clone https://github.com/pinchtab/pinchtab.git
cd pinchtab
-./pdev doctor
+./dev doctor
```
Requires **Go 1.25+** and **Google Chrome**.
@@ -13,8 +13,8 @@ Requires **Go 1.25+** and **Google Chrome**.
## Development Workflow
1. Make your changes
-2. Run `./pdev check`
-3. Run `./pdev test`
+2. Run `./dev check`
+3. Run `./dev test`
4. Commit — pre-commit hook runs checks automatically
5. Push: `git pull --rebase && git push`
@@ -31,21 +31,21 @@ This significantly speeds up the merge process. Thank you! 🙏
## Checks and Tests
```bash
-./pdev doctor # setup environment and hooks
-./pdev check # format, vet, build, lint
-./pdev format dashboard
-./pdev test # unit + E2E tests
-./pdev test unit # unit tests only
-./pdev e2e # E2E tests (curl + CLI)
-./pdev e2e curl # curl tests only
-./pdev e2e cli # CLI tests only
+./dev doctor # setup environment and hooks
+./dev check # format, vet, build, lint
+./dev format dashboard
+./dev test # unit + E2E tests
+./dev test unit # unit tests only
+./dev e2e # E2E tests (curl + CLI)
+./dev e2e curl # curl tests only
+./dev e2e cli # CLI tests only
```
-If you want the raw commands instead of `pdev`:
+If you want the raw commands instead of `dev`:
```bash
go test ./... -count=1 -v
-./pdev e2e
+./dev e2e
```
## Style
@@ -59,7 +59,7 @@ go test ./... -count=1 -v
## Hooks
-`./pdev doctor` offers to install the git hooks. They enforce formatting and checks before commit.
+`./dev doctor` offers to install the git hooks. They enforce formatting and checks before commit.
You can also install them directly with:
```bash
diff --git a/TESTING.md b/TESTING.md
index 9137d927..5c71ed69 100644
--- a/TESTING.md
+++ b/TESTING.md
@@ -1,21 +1,21 @@
# Testing
-## Quick Start with pdev
+## Quick Start with dev
-The `pdev` developer toolkit is the easiest way to run checks and tests:
+The `dev` developer toolkit is the easiest way to run checks and tests:
```bash
-./pdev # Interactive picker
-./pdev test # All tests (unit + E2E)
-./pdev test unit # Unit tests only
-./pdev e2e # E2E tests (both curl and CLI)
-./pdev e2e curl # E2E curl tests only
-./pdev e2e cli # E2E CLI tests only
-./pdev check # All checks (format, vet, build, lint)
-./pdev check go # Go checks only
-./pdev check security # Gosec security scan
-./pdev format dashboard # Run Prettier on dashboard sources
-./pdev doctor # Setup dev environment
+./dev # Interactive picker
+./dev test # All tests (unit + E2E)
+./dev test unit # Unit tests only
+./dev e2e # E2E tests (both curl and CLI)
+./dev e2e curl # E2E curl tests only
+./dev e2e cli # E2E CLI tests only
+./dev check # All checks (format, vet, build, lint)
+./dev check go # Go checks only
+./dev check security # Gosec security scan
+./dev format dashboard # Run Prettier on dashboard sources
+./dev doctor # Setup dev environment
```
## Unit Tests
@@ -23,7 +23,7 @@ The `pdev` developer toolkit is the easiest way to run checks and tests:
```bash
go test ./...
# or
-./pdev test unit
+./dev test unit
```
Unit tests are standard Go tests that validate individual packages and functions without launching a full server.
@@ -35,7 +35,7 @@ End-to-end tests launch a real pinchtab server with Chrome and run integration-l
### Curl Tests (HTTP API)
```bash
-./pdev e2e curl
+./dev e2e curl
```
Runs 183 HTTP-level tests using curl against the server. Tests the REST API, navigation, snapshots, and other HTTP endpoints.
@@ -43,7 +43,7 @@ Runs 183 HTTP-level tests using curl against the server. Tests the REST API, nav
### CLI Tests
```bash
-./pdev e2e cli
+./dev e2e cli
```
Runs 41 CLI integration tests. Tests the command-line interface directly.
@@ -51,7 +51,7 @@ Runs 41 CLI integration tests. Tests the command-line interface directly.
### Both E2E Test Suites
```bash
-./pdev e2e
+./dev e2e
```
Runs all E2E tests (curl + CLI, 224 tests total).
@@ -79,7 +79,7 @@ Each E2E test run creates a single temp directory under `/tmp/pinchtab-test-*/`:
Everything is cleaned up automatically when tests finish. To inspect after a failure:
```bash
-PINCHTAB_TEST_KEEP_DIR=1 ./pdev e2e
+PINCHTAB_TEST_KEEP_DIR=1 ./dev e2e
```
## Test File Structure
diff --git a/pdev b/dev
similarity index 95%
rename from pdev
rename to dev
index a09061db..47431749 100755
--- a/pdev
+++ b/dev
@@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -euo pipefail
-# pdev — Pinchtab developer toolkit
-# Usage: pdev [command] [sub] Run a command directly
-# pdev Interactive picker
+# dev — Pinchtab developer toolkit
+# Usage: dev [command] [sub] Run a command directly
+# dev Interactive picker
cd "$(dirname "$0")"
@@ -17,18 +17,15 @@ NC=$'\033[0m'
# ── Commands ─────────────────────────────────────────────────────────
# name:emoji:description
COMMANDS=(
- "dev:🚀:Build & run"
"build:🔨:Build the application"
+ "dev:🚀:Build & run"
"run:🏃:Run the application"
"check:🧪:All checks"
- "test:🔬:All tests"
- " unit:🔬:Unit tests only"
- " integration:🔬:Integration tests only"
- " system:🔬:System tests only"
- "doctor:🩺:Setup dev environment"
- "e2e:🐳:E2E tests (Docker)"
- " curl:🐳:E2E curl tests"
+ "test:🔬:Unit tests"
+ "e2e:🐳:E2E tests"
+ " curl:🐳:E2E Curl tests"
" cli:🐳:E2E CLI tests"
+ "doctor:🩺:Setup dev environment"
"check go:🧪:Go only"
"check dashboard:🧪:Dashboard only"
"check security:🧪:Gosec security scan"
@@ -54,7 +51,7 @@ show_help() {
fi
done
echo ""
- echo " ${MUTED}Usage: pdev [command] [sub]${NC}"
+ echo " ${MUTED}Usage: dev [command] [sub]${NC}"
echo ""
}
diff --git a/docs/get-started.md b/docs/get-started.md
index 15d3862d..a6ebc427 100644
--- a/docs/get-started.md
+++ b/docs/get-started.md
@@ -45,7 +45,7 @@ curl http://localhost:9867/health
```bash
git clone https://github.com/pinchtab/pinchtab.git
cd pinchtab
-./pdev doctor
+./dev doctor
go build -o pinchtab ./cmd/pinchtab
./pinchtab --version
```
diff --git a/docs/guides/contributing.md b/docs/guides/contributing.md
index 86739802..ace8b348 100644
--- a/docs/guides/contributing.md
+++ b/docs/guides/contributing.md
@@ -31,7 +31,7 @@ git clone https://github.com/pinchtab/pinchtab.git
cd pinchtab
# 2. Run doctor (verifies environment, prompts before installing anything)
-./pdev doctor
+./dev doctor
# 3. Build and run
go build ./cmd/pinchtab
@@ -137,7 +137,7 @@ After cloning, run doctor to verify and set up your environment:
```bash
git clone https://github.com/pinchtab/pinchtab.git
cd pinchtab
-./pdev doctor
+./dev doctor
```
Doctor checks your environment and **asks before installing** anything:
@@ -146,7 +146,7 @@ Doctor checks your environment and **asks before installing** anything:
- Go dependencies (`go mod download`)
- Node.js, Bun, and dashboard deps (optional, for dashboard development)
-Run `./pdev doctor` anytime to verify or fix your environment.
+Run `./dev doctor` anytime to verify or fix your environment.
---
@@ -165,7 +165,7 @@ go build -o pinchtab ./cmd/pinchtab
> **Note:** This builds the Go server only. The dashboard will show a
> "not built" placeholder. To include the full React dashboard, use
-> `./pdev build` instead — it builds the dashboard, compiles Go, and
+> `./dev build` instead — it builds the dashboard, compiles Go, and
> runs the server in one step. Or run `./scripts/build-dashboard.sh`
> before `go build`.
@@ -235,21 +235,21 @@ go test ./... # Unit tests only
go test ./... -v # Verbose
go test ./... -v -coverprofile=coverage.out
go tool cover -html=coverage.out # View coverage
-./pdev e2e # Run E2E tests (curl + CLI)
+./dev e2e # Run E2E tests (curl + CLI)
```
-### Developer Toolkit (`pdev`)
+### Developer Toolkit (`dev`)
-All dev scripts are accessible through `./pdev`:
+All dev scripts are accessible through `./dev`:
```bash
-./pdev # Interactive picker (uses gum if installed, numbered fallback)
-./pdev check # Run a command directly
-./pdev test unit # Subcommands supported
-./pdev --help # List all commands
+./dev # Interactive picker (uses gum if installed, numbered fallback)
+./dev check # Run a command directly
+./dev test unit # Subcommands supported
+./dev --help # List all commands
```
-![pdev interactive menu](../media/pdev-menu.jpg)
+![dev interactive menu](../media/dev-menu.jpg)
**Available commands:**
@@ -272,24 +272,24 @@ All dev scripts are accessible through `./pdev`:
For the fancy interactive picker, install [gum](https://github.com/charmbracelet/gum): `brew install gum`
-**Tip:** Add this to `~/.zshrc` to use `pdev` without `./`:
+**Tip:** Add this to `~/.zshrc` to use `dev` without `./`:
```bash
-pdev() { if [ -x "./pdev" ]; then ./pdev "$@"; else echo "pdev not found in current directory"; return 1; fi }
+dev() { if [ -x "./dev" ]; then ./dev "$@"; else echo "dev not found in current directory"; return 1; fi }
```
### Code Quality
```bash
-./pdev check # Full non-test checks (recommended)
-./pdev format dashboard # Fix dashboard formatting
+./dev check # Full non-test checks (recommended)
+./dev format dashboard # Fix dashboard formatting
gofmt -w . # Format code
golangci-lint run # Lint
-./pdev doctor # Verify environment
+./dev doctor # Verify environment
```
### Git Hooks
-Git hooks are installed by `./pdev doctor` (or `./scripts/install-hooks.sh`). They run on every commit:
+Git hooks are installed by `./dev doctor` (or `./scripts/install-hooks.sh`). They run on every commit:
- `gofmt` — Format check
- `golangci-lint` — Linting
- `prettier` — Dashboard formatting
@@ -303,7 +303,7 @@ To manually reinstall hooks:
```bash
# 1. Setup (first time)
-./pdev doctor
+./dev doctor
# 2. Create feature branch
git checkout -b feat/my-feature
@@ -312,7 +312,7 @@ git checkout -b feat/my-feature
# ... edit files ...
# 4. Run checks before pushing
-./pdev check
+./dev check
# 5. Commit (hooks run automatically)
git commit -m "feat: description"
@@ -376,7 +376,7 @@ pinchtab --version
**First step:** Run doctor to verify your setup:
```bash
-./pdev doctor
+./dev doctor
```
This will tell you exactly what's missing or misconfigured.
@@ -393,7 +393,7 @@ This will tell you exactly what's missing or misconfigured.
**"Git hooks not running on commit"**
- Run: `./scripts/install-hooks.sh`
-- Or: `./pdev doctor` (prompts to install)
+- Or: `./dev doctor` (prompts to install)
**"Chrome not found"**
- Install Chromium: `brew install chromium` (macOS)
@@ -413,7 +413,7 @@ This will tell you exactly what's missing or misconfigured.
## Support
Issues? Check:
-1. Run `./pdev doctor` first
+1. Run `./dev doctor` first
2. All dependencies installed and correct versions?
3. Port 9867 available?
4. Check logs: `tail -f pinchtab.log`
diff --git a/internal/dashboard/dashboard.go b/internal/dashboard/dashboard.go
index 26078ce2..bbd243a0 100644
--- a/internal/dashboard/dashboard.go
+++ b/internal/dashboard/dashboard.go
@@ -231,7 +231,7 @@ const fallbackHTML = `<!DOCTYPE html>
<style>body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;display:flex;justify-content:center;align-items:center;min-height:100vh;margin:0;background:#0a0a0a;color:#e0e0e0}.c{text-align:center;max-width:480px;padding:2rem}h1{font-size:1.5rem;margin-bottom:.5rem}p{color:#888;line-height:1.6}code{background:#1a1a2e;padding:2px 8px;border-radius:4px;font-size:.9em}</style>
</head><body><div class="c"><h1>🦀 Dashboard not built</h1>
<p>The React dashboard needs to be compiled before use.<br/>
-Run <code>./pdev build</code> or <code>./scripts/build-dashboard.sh</code> then rebuild the Go binary.</p>
+Run <code>./dev build</code> or <code>./scripts/build-dashboard.sh</code> then rebuild the Go binary.</p>
</div></body></html>`
func (d *Dashboard) handleDashboardUI(w http.ResponseWriter, r *http.Request) {
diff --git a/scripts/README.md b/scripts/README.md
index ab0d366c..20f8fbf6 100644
--- a/scripts/README.md
+++ b/scripts/README.md
@@ -2,7 +2,7 @@
Development and CI scripts for PinchTab.
-> **Tip:** Use `./pdev` from the repo root for an interactive command picker, or `./pdev <command>` to run directly.
+> **Tip:** Use `./dev` from the repo root for an interactive command picker, or `./dev <command>` to run directly.
## Quality
diff --git a/tests/e2e/README.md b/tests/e2e/README.md
index 8cc5123b..14a1e505 100644
--- a/tests/e2e/README.md
+++ b/tests/e2e/README.md
@@ -7,7 +7,7 @@ End-to-end tests for PinchTab that exercise the full stack including browser aut
### With Docker (recommended)
```bash
-./pdev e2e
+./dev e2e
```
Or directly: