Add comprehensive startup scripts for managing all ZCLAW services: Windows (PowerShell): - start.ps1 / start-all.ps1 - Unified service launcher - Supports -NoBrowser, -NoGateway, -Dev, -Stop flags Unix (Bash): - start.sh - Cross-platform launcher for macOS/Linux Makefile: - make start / make start-unix - make desktop / make desktop-build - make setup / make test / make clean pnpm commands: - pnpm start - Start all services - pnpm start:dev - Development mode with hot reload - pnpm start:no-browser - Skip ChromeDriver - pnpm start:no-gateway - Skip OpenFang gateway - pnpm desktop - Start Tauri only - pnpm chromedriver - Start ChromeDriver only Services managed: 1. ChromeDriver (port 4444) - Browser automation 2. OpenFang Gateway (port 4200) - AI Agent runtime 3. Tauri Desktop - React + Rust frontend Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
51 lines
1.4 KiB
JSON
51 lines
1.4 KiB
JSON
{
|
|
"name": "zclaw",
|
|
"version": "0.2.0",
|
|
"description": "ZCLAW - OpenFang desktop client with Tauri, Chinese model providers, and Feishu integration",
|
|
"main": "dist/gateway/index.js",
|
|
"scripts": {
|
|
"dev": "tsx watch src/gateway/index.ts",
|
|
"build": "tsc",
|
|
"setup": "tsx scripts/setup.ts",
|
|
"test": "vitest run",
|
|
"gateway:start": "openfang gateway start",
|
|
"gateway:status": "openfang gateway status",
|
|
"gateway:doctor": "openfang doctor",
|
|
"start": "pwsh -File ./start-all.ps1",
|
|
"start:dev": "pwsh -File ./start-all.ps1 -Dev",
|
|
"start:no-browser": "pwsh -File ./start-all.ps1 -NoBrowser",
|
|
"start:no-gateway": "pwsh -File ./start-all.ps1 -NoGateway",
|
|
"start:stop": "pwsh -File ./start-all.ps1 -Stop",
|
|
"desktop": "cd desktop && pnpm tauri dev",
|
|
"desktop:build": "cd desktop && pnpm tauri build",
|
|
"chromedriver": "chromedriver --port=4444"
|
|
},
|
|
"keywords": [
|
|
"ai",
|
|
"agent",
|
|
"openfang",
|
|
"tauri",
|
|
"feishu",
|
|
"chinese-models"
|
|
],
|
|
"author": "ZCLAW Team",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"ws": "^8.16.0",
|
|
"zod": "^3.22.0"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/react": "^16.3.2",
|
|
"@types/node": "^20.11.0",
|
|
"@types/ws": "^8.5.10",
|
|
"@vitejs/plugin-react": "^5.1.4",
|
|
"@vitest/ui": "^4.0.18",
|
|
"jest": "^29.7.0",
|
|
"jsdom": "^28.1.0",
|
|
"node-fetch": "^3.3.2",
|
|
"tsx": "^4.7.0",
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|