72 lines
2.6 KiB
JSON
72 lines
2.6 KiB
JSON
{
|
|
"name": "agent-browser",
|
|
"version": "0.4.3",
|
|
"description": "Headless browser automation CLI for AI agents",
|
|
"type": "module",
|
|
"main": "dist/daemon.js",
|
|
"files": [
|
|
"dist",
|
|
"bin",
|
|
"scripts",
|
|
"skills"
|
|
],
|
|
"bin": {
|
|
"agent-browser": "./bin/agent-browser"
|
|
},
|
|
"scripts": {
|
|
"prepare": "husky",
|
|
"version:sync": "node scripts/sync-version.js",
|
|
"version": "npm run version:sync && git add cli/Cargo.toml",
|
|
"build": "tsc",
|
|
"build:native": "npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js",
|
|
"build:linux": "npm run version:sync && docker compose -f docker/docker-compose.yml run --rm build-linux",
|
|
"build:macos": "npm run version:sync && (cargo build --release --manifest-path cli/Cargo.toml --target aarch64-apple-darwin & cargo build --release --manifest-path cli/Cargo.toml --target x86_64-apple-darwin & wait) && cp cli/target/aarch64-apple-darwin/release/agent-browser bin/agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/agent-browser bin/agent-browser-darwin-x64",
|
|
"build:windows": "npm run version:sync && docker compose -f docker/docker-compose.yml run --rm build-windows",
|
|
"build:all-platforms": "npm run version:sync && (npm run build:linux & npm run build:windows & wait) && npm run build:macos",
|
|
"build:docker": "docker build -t agent-browser-builder -f docker/Dockerfile.build .",
|
|
"release": "npm run version:sync && npm run build && npm run build:all-platforms && npm publish",
|
|
"start": "node dist/daemon.js",
|
|
"dev": "tsx src/daemon.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"format": "prettier --write 'src/**/*.ts'",
|
|
"format:check": "prettier --check 'src/**/*.ts'",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"postinstall": "node scripts/postinstall.js"
|
|
},
|
|
"keywords": [
|
|
"browser",
|
|
"automation",
|
|
"headless",
|
|
"playwright",
|
|
"cli",
|
|
"agent"
|
|
],
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/vercel-labs/agent-browser.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/vercel-labs/agent-browser/issues"
|
|
},
|
|
"homepage": "https://github.com/vercel-labs/agent-browser#readme",
|
|
"dependencies": {
|
|
"playwright-core": "^1.57.0",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.10.0",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^15.2.11",
|
|
"playwright": "^1.57.0",
|
|
"prettier": "^3.7.4",
|
|
"tsx": "^4.6.0",
|
|
"typescript": "^5.3.0",
|
|
"vitest": "^4.0.16"
|
|
},
|
|
"lint-staged": {
|
|
"src/**/*.ts": "prettier --write"
|
|
}
|
|
}
|