|
1 | 1 | { |
2 | 2 | "name": "agent-browser", |
3 | | - "version": "0.4.0", |
| 3 | + "version": "0.4.1", |
4 | 4 | "description": "Headless browser automation CLI for AI agents", |
5 | 5 | "type": "module", |
6 | 6 | "main": "dist/daemon.js", |
|
15 | 15 | }, |
16 | 16 | "scripts": { |
17 | 17 | "prepare": "husky", |
| 18 | + "version:sync": "node scripts/sync-version.js", |
| 19 | + "version": "npm run version:sync && git add cli/Cargo.toml", |
18 | 20 | "build": "tsc", |
19 | | - "build:native": "cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js", |
20 | | - "build:linux": "docker compose -f docker/docker-compose.yml run --rm build-linux", |
21 | | - "build:macos": "(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", |
22 | | - "build:windows": "docker compose -f docker/docker-compose.yml run --rm build-windows", |
23 | | - "build:all-platforms": "(npm run build:linux & npm run build:windows & wait) && npm run build:macos", |
| 21 | + "build:native": "npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js", |
| 22 | + "build:linux": "npm run version:sync && docker compose -f docker/docker-compose.yml run --rm build-linux", |
| 23 | + "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", |
| 24 | + "build:windows": "npm run version:sync && docker compose -f docker/docker-compose.yml run --rm build-windows", |
| 25 | + "build:all-platforms": "npm run version:sync && (npm run build:linux & npm run build:windows & wait) && npm run build:macos", |
24 | 26 | "build:docker": "docker build -t agent-browser-builder -f docker/Dockerfile.build .", |
| 27 | + "release": "npm run version:sync && npm run build && npm run build:all-platforms && npm publish", |
25 | 28 | "start": "node dist/daemon.js", |
26 | 29 | "dev": "tsx src/daemon.ts", |
27 | 30 | "typecheck": "tsc --noEmit", |
|
0 commit comments