refactor(startup): simplify stack to Tauri-managed OpenFang + optional ChromeDriver

- Remove OpenFang CLI dependency from startup scripts
- OpenFang now bundled with Tauri and managed via gateway_start/gateway_status commands
- Add bootstrap screen in App.tsx to auto-start local gateway before UI loads
- Update Makefile: replace start-no-gateway with start-desktop-only
- Fix gateway config endpoints: use /api/config instead of /api/config/quick
- Add Playwright dependencies for future E2E testing
This commit is contained in:
iven
2026-03-17 14:08:03 +08:00
parent 6c6d21400c
commit 74dbf42644
81 changed files with 5729 additions and 128 deletions

View File

@@ -1,7 +1,7 @@
# ZCLAW Makefile
# Cross-platform task runner
.PHONY: help start start-dev start-no-browser start-no-gateway desktop desktop-build setup test clean
.PHONY: help start start-dev start-no-browser desktop desktop-build setup test clean
help: ## Show this help message
@echo "ZCLAW - OpenFang Desktop Client"
@@ -13,16 +13,16 @@ help: ## Show this help message
# === Startup Commands ===
start: ## Start all services (Windows: PowerShell)
@pwsh -File ./start.ps1
@powershell -ExecutionPolicy Bypass -File ./start-all.ps1
start-dev: ## Start all services in dev mode
@pwsh -File ./start.ps1 -Dev
@powershell -ExecutionPolicy Bypass -File ./start-all.ps1 -Dev
start-no-browser: ## Start without ChromeDriver
@pwsh -File ./start.ps1 -NoBrowser
@powershell -ExecutionPolicy Bypass -File ./start-all.ps1 -NoBrowser
start-no-gateway: ## Start without OpenFang gateway
@pwsh -File ./start.ps1 -NoGateway
start-desktop-only: ## Start desktop only (no external services)
@powershell -ExecutionPolicy Bypass -File ./start-all.ps1 -DesktopOnly
start-unix: ## Start all services (Unix: macOS/Linux)
@chmod +x ./start.sh && ./start.sh
@@ -54,12 +54,6 @@ typecheck: ## Run TypeScript type check
# === Services ===
gateway: ## Start OpenFang gateway
@openfang gateway start
gateway-status: ## Check gateway status
@openfang gateway status
chromedriver: ## Start ChromeDriver on port 4444
@chromedriver --port=4444