{"_id":"z-agent-browser","_rev":"13-6ef69e24cf836fc82d6a2ebfb303e28d","name":"z-agent-browser","dist-tags":{"latest":"0.5.14"},"versions":{"0.5.1":{"name":"z-agent-browser","version":"0.5.1","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.1","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"91484c3bcd49557da8afedc5048778be095f782f","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.1.tgz","fileCount":38,"integrity":"sha512-dX2IHKIBisig8KO0GfNe/eiMjfM1y6RnfCvjpnu+G2EU6bu2GXX3rQUW681iOFexTtM9JwFh4a+3MWIzBD6TsQ==","signatures":[{"sig":"MEUCIAkQp+Yu+dDtjLJkMsr3uMZCdteGX7R70HbaS7LAEA0DAiEA2KQGj3qDITClcGUBkf+238vXEIZdkrXNiv83RtbgXqE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1074094},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"c94eec12781788b7208f591dd178f52a4af947b5","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.1_1768603332849_0.13198209796137284","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"z-agent-browser","version":"0.5.2","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.2","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"22d0a315ab2c93acd1eacf6db896b5037975fa99","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.2.tgz","fileCount":38,"integrity":"sha512-RpP+oMvkAdlryT480M1+vonp0vW1tF6psnOr/+J2EM0bgL/q7t1FBN+2T6trVcoRsniQnZncTOGghXf8TvhfnQ==","signatures":[{"sig":"MEUCIG3pw2zM2YUXVVfgwb8hhs6mp45OS2pi/X9tKcMoOQTqAiEAyZrfZ22hNvUxKxhdNHdKxbw+sbh23XeCvQ7j7MyIH8Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1091301},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"de20fdc1e1d44436ff3a4665d0bfe034edd00797","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.2_1768604925856_0.7011262544752155","host":"s3://npm-registry-packages-npm-production"}},"0.5.3":{"name":"z-agent-browser","version":"0.5.3","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.3","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"1e33f2a99b5a92f1bac0e225986289a3a8c1ed0b","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.3.tgz","fileCount":38,"integrity":"sha512-n0oVqcSb8M3QAEQTu6zBNfEcg+HSp834593UCEVdVSSMynKbGoQJpP4SufKkoqbWsLvSoeVNcSSc7ZNVSFkusA==","signatures":[{"sig":"MEUCIBYr9tbwCQpzbJ46yhZGBxnH1PWmFzbYDWDaF2OrYKCJAiEA4ela3gfBnWNLzMVlscQpVxfnCD135bM3zf4x0GI84L0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1091301},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"de20fdc1e1d44436ff3a4665d0bfe034edd00797","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.3_1768605080020_0.6107638367133044","host":"s3://npm-registry-packages-npm-production"}},"0.5.5":{"name":"z-agent-browser","version":"0.5.5","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.5","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"d84f136bcc8136ebb885ac111b568b9b0bf97541","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.5.tgz","fileCount":42,"integrity":"sha512-zsPJV4rn+9PA2OC21ef/jc5GGmv4fzrhs9UTOXjzJVzogfIu8657Ua3i5fpNkOdnaDZzvUAvXzNVXMEVY+6Z/w==","signatures":[{"sig":"MEUCIA+zTo/ebqQXRGL+iTMMalAP/kyt+2YzLzv3rryqVc5BAiEAhensEMUbdB7wz8Qyal88KVylGlWHExmC/5KTf4fLsTk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1141299},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"7ec483d50b3944f0a786d580103345752fdc42f0","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.5_1768611888630_0.18734539004734918","host":"s3://npm-registry-packages-npm-production"}},"0.5.6":{"name":"z-agent-browser","version":"0.5.6","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.6","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"732b7ee515effd82bd08ad72307dbdd8e95531dd","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.6.tgz","fileCount":42,"integrity":"sha512-FYHPYjI011n0lgAZvEyWlwOUOmoskuKJ6FX/nR1ooI0wSe5nQ1paM49tWovdWoJmVpoqo20g63IwcMWUOQNQlA==","signatures":[{"sig":"MEYCIQDgVFBkuC5f1Bnoyt+eUgY4AqKJzhSRtaHdJryJiWlsaAIhAIAreP1LJtbqn2DO0VonrjYtPdgXe7q52tBYGgfI1AmA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1141682},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"8a6a8e31bc1f451f133d3572e4fb43d060d1a3ed","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.6_1768612138872_0.007309988285079783","host":"s3://npm-registry-packages-npm-production"}},"0.5.7":{"name":"z-agent-browser","version":"0.5.7","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.7","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"ba287f80d07b1fcce882f4dfd7affe07f3b1b8f6","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.7.tgz","fileCount":42,"integrity":"sha512-9DlHNFkwjiNll6Z2V0WrN/KSteN0r/XB0AVmXFt98RhTerbgcBbdg6rvaUC7gsg4QeYRdXvy6pHdUGB+/CUpZQ==","signatures":[{"sig":"MEYCIQD5acdTQBFVfXzZwIbQb+WhuLD81GN5NYrRq0NpUKPN8gIhANYS2LI2IlyNd6Qvljnm+YIwfHK+z9OknwTk88k0qY+c","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1142928},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"f3bb35f835c71623c5cd853ae6db50ef6e7f03e4","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.7_1768612478435_0.5700327907283131","host":"s3://npm-registry-packages-npm-production"}},"0.5.8":{"name":"z-agent-browser","version":"0.5.8","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.8","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"d2b22ff9fd97e727a47a3212655ec1be2bc87ec0","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.8.tgz","fileCount":41,"integrity":"sha512-EmLUY8SiS2cqfk8o9v5Dlp3hbWCuhlzen/T4szw/tPY/of5l9ArAHTKeDRKrlEz534TuQxosZwMe/8jBeVdpNA==","signatures":[{"sig":"MEUCIDd9KgrWgR0BAi0hccTpv4zW4C0pLiSgv4NDWG0GAA7pAiEAricDhGlT6fpMBSMA4Rr6YEqodO1y2PCSC6YdHV++C7Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1132659},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"49c5d3035fe58adc149225daa101d2b947229ca5","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.8_1768619194759_0.9748505477710323","host":"s3://npm-registry-packages-npm-production"}},"0.5.9":{"name":"z-agent-browser","version":"0.5.9","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.9","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"e665674cd70e3d402ed8ba81964595b2c0f32022","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.9.tgz","fileCount":41,"integrity":"sha512-cYMXg5N58JWAUPxfh3vrNchXKbps3x6fKp9unYkyVGO/00QLm4khblm1CAgakhaIqysN7oHIB17ZWO831CH5Uw==","signatures":[{"sig":"MEUCIDmG0yvzlOl/Ah4K35UFM9rwJGsqfrGyXBVp1SJWKiGtAiEA17Y1Nxkvysuuu38BJqFd6Ih5nf4tjPUUvZ928nok1J8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1134676},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"75c0f347ecf827e13810dcb297c69ece01b9b3ca","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.9_1768635391917_0.3197944938818078","host":"s3://npm-registry-packages-npm-production"}},"0.5.10":{"name":"z-agent-browser","version":"0.5.10","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.10","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"f958e270dce89bd7c87e0d3d6d13df790753a890","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.10.tgz","fileCount":42,"integrity":"sha512-ErYSFlpUEQcfPhNX2XHSAsa7RdjPWnTFSgDLO2LoPo1ArfFbddfff8VkhzNoSSeh4lBBWbiZygK6LpSTZSLGjQ==","signatures":[{"sig":"MEYCIQCH31ezHzEGl48P7Nf2F0XEkkZAdY9mNqdHW3T7VzM5owIhAKHLv3ocqCdI1OuqMJAMwp/veNKzLMlZewavdRldGAVH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1831421},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"75c0f347ecf827e13810dcb297c69ece01b9b3ca","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.10_1768638297414_0.8712478693422709","host":"s3://npm-registry-packages-npm-production"}},"0.5.11":{"name":"z-agent-browser","version":"0.5.11","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.11","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"5362ae2d1096f412e61f2d722a7ee6fe1c43f39f","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.11.tgz","fileCount":42,"integrity":"sha512-c0Jz7wh590BxLufyrrmgKAmlqav0KqrFRzzrlmLk/9WHrQt34DM7n+DUg+w9E/tEqN+zM9tqFpCPiLoSLU8AMw==","signatures":[{"sig":"MEUCIQCfZgww8kehvJm8t5oovy25TUeXhlnTFmcQStR8vYeJ4gIgd86b6vFSMzeUg+Fbv4M8RHAGTyEq/YL9eSxGH5spD2I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1833498},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"13cb11aa1a3d1fba709b61b454d81a1bffb8654f","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.11_1768639864896_0.9985184609169144","host":"s3://npm-registry-packages-npm-production"}},"0.5.12":{"name":"z-agent-browser","version":"0.5.12","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.12","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"26185939703fac4524e4d54f63b16036ec27179b","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.12.tgz","fileCount":42,"integrity":"sha512-SrPocYeJj6Rp0KzTD2ZQ04bcu61YPCJmvaCaUKv9/nOLObjJEAgVJNpPA9kbrK/Fy51r89bcY18NARX9M/Fxjg==","signatures":[{"sig":"MEUCIQC2ZvKRjjQhQoxvjNlMKYl/LHQOZ0F2MT+AIiGzzFMolAIgRmCYQ4xPb/tc/aKj5Un3qCrJJqX+ZansjjtTsRNGylI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1833497},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"852bee9f2ff303924e9157239e5c221bab228a0c","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.12_1768664901033_0.8151351173195984","host":"s3://npm-registry-packages-npm-production"}},"0.5.13":{"name":"z-agent-browser","version":"0.5.13","keywords":["browser","automation","headless","playwright","cli","agent"],"license":"Apache-2.0","_id":"z-agent-browser@0.5.13","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"homepage":"https://github.com/zm2231/agent-browser#readme","bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"bin":{"z-agent-browser":"bin/z-agent-browser"},"dist":{"shasum":"8e80a4165c02c5397462a8245fc3f09ed829afa1","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.13.tgz","fileCount":42,"integrity":"sha512-4J8Q4vTjgWXxpLV3h6ThZy5X7pNfEY4tsqKSoeBxAHaoDBBCDsEdLP6zasLU+VlwPfv/dLTENsKhMW1/JSqXAg==","signatures":[{"sig":"MEQCIDkzYbnVYTb7R0SKTKheykAmRxknwqUSUQWpuwxhwAlQAiBdXJAaSoM9m5j1hVJonNhaCbIKSg2dsqdwL5lzxPozOg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1840963},"main":"dist/daemon.js","type":"module","types":"./dist/daemon.d.ts","gitHead":"8634419f70127028318604f9b57703f027fe62af","scripts":{"dev":"tsx src/daemon.ts","test":"vitest run","build":"tsc","start":"node dist/daemon.js","format":"prettier --write 'src/**/*.ts'","prepare":"husky","release":"npm run version:sync && npm run build && npm run build:all-platforms && npm publish","version":"npm run version:sync && git add cli/Cargo.toml","typecheck":"tsc --noEmit","test:watch":"vitest","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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-agent-browser-darwin-x64","postinstall":"node scripts/postinstall.js","build:docker":"docker build -t agent-browser-builder -f docker/Dockerfile.build .","build:native":"npm run version:sync && cargo build --release --manifest-path cli/Cargo.toml && node scripts/copy-native.js","format:check":"prettier --check 'src/**/*.ts'","version:sync":"node scripts/sync-version.js","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"},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"repository":{"url":"git+https://github.com/zm2231/agent-browser.git","type":"git"},"_npmVersion":"11.6.2","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","directories":{},"lint-staged":{"src/**/*.ts":"prettier --write"},"_nodeVersion":"25.2.1","dependencies":{"ws":"^8.19.0","zod":"^3.22.4","playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.6.0","husky":"^9.1.7","vitest":"^4.0.16","prettier":"^3.7.4","@types/ws":"^8.18.1","playwright":"^1.57.0","typescript":"^5.3.0","@types/node":"^20.10.0","lint-staged":"^15.2.11"},"_npmOperationalInternal":{"tmp":"tmp/z-agent-browser_0.5.13_1768669276650_0.5158079368329984","host":"s3://npm-registry-packages-npm-production"}},"0.5.14":{"name":"z-agent-browser","version":"0.5.14","description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","type":"module","main":"dist/daemon.js","bin":{"z-agent-browser":"bin/z-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/z-agent-browser bin/z-agent-browser-darwin-arm64 && cp cli/target/x86_64-apple-darwin/release/z-agent-browser bin/z-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/zm2231/agent-browser.git"},"bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"homepage":"https://github.com/zm2231/agent-browser#readme","dependencies":{"playwright-core":"^1.57.0","playwright-extra":"^4.3.6","puppeteer-extra-plugin-stealth":"^2.11.2","ws":"^8.19.0","zod":"^3.22.4"},"devDependencies":{"@types/node":"^20.10.0","@types/ws":"^8.18.1","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"},"gitHead":"7ea48aad4bd69fe40fd358025e76a9a9b91e6165","types":"./dist/daemon.d.ts","_id":"z-agent-browser@0.5.14","_nodeVersion":"25.2.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-KWc4RIrOsFvofsUwKsoleYNvFtp9KKTTeZguSb4/GAvu/SDW9kH9RM2QkDj0g7kgAX4qzpakJlga/zgZYDpfIw==","shasum":"0e9de2693835cc9b7db3d3715f76036f2f6ae948","tarball":"https://registry.npmjs.org/z-agent-browser/-/z-agent-browser-0.5.14.tgz","fileCount":42,"unpackedSize":1840963,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGp5gZpZcuxuqHcIpipx3yMuPPdTUvn/oUjH/S9m0rbqAiEAgvFvnYwy90TbK2r74ggjniYJpKWCEm0pdl9DV02ZwUI="}]},"_npmUser":{"name":"zmerchant","email":"merchantzains@gmail.com"},"directories":{},"maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/z-agent-browser_0.5.14_1768670165330_0.998537222323062"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-16T22:42:12.769Z","modified":"2026-01-17T17:16:05.697Z","0.5.1":"2026-01-16T22:42:13.043Z","0.5.2":"2026-01-16T23:08:46.028Z","0.5.3":"2026-01-16T23:11:20.245Z","0.5.5":"2026-01-17T01:04:48.870Z","0.5.6":"2026-01-17T01:08:59.039Z","0.5.7":"2026-01-17T01:14:38.676Z","0.5.8":"2026-01-17T03:06:34.913Z","0.5.9":"2026-01-17T07:36:32.148Z","0.5.10":"2026-01-17T08:24:57.621Z","0.5.11":"2026-01-17T08:51:05.179Z","0.5.12":"2026-01-17T15:48:21.230Z","0.5.13":"2026-01-17T17:01:16.919Z","0.5.14":"2026-01-17T17:16:05.587Z"},"bugs":{"url":"https://github.com/zm2231/agent-browser/issues"},"license":"Apache-2.0","homepage":"https://github.com/zm2231/agent-browser#readme","keywords":["browser","automation","headless","playwright","cli","agent"],"repository":{"type":"git","url":"git+https://github.com/zm2231/agent-browser.git"},"description":"Enhanced browser automation CLI for AI agents - stealth mode, auto-persistence, profile mode","maintainers":[{"name":"zmerchant","email":"merchantzains@gmail.com"}],"readme":"# z-agent-browser\n\nHeadless browser automation CLI for AI agents. Fast Rust CLI with Node.js fallback.\n\nThis is the **enhanced fork** of [vercel-labs/agent-browser](https://github.com/vercel-labs/agent-browser) with stealth mode, auto-persistence, profile mode, and more. Published to npm as `z-agent-browser`.\n\n## Installation\n\n### npm (recommended)\n\n```bash\nnpm install -g z-agent-browser\nz-agent-browser install  # Download Chromium\n```\n\n### From Source\n\n```bash\ngit clone https://github.com/zm2231/agent-browser\ncd agent-browser\npnpm install\npnpm build\npnpm build:native   # Requires Rust (https://rustup.rs)\npnpm link --global  # Makes z-agent-browser available globally\nz-agent-browser install\n```\n\n### Upstream (Basic Features Only)\n\nFor the original vercel-labs version without enhanced features:\n```bash\nnpm install -g agent-browser\n```\n\n### Linux Dependencies\n\nOn Linux, install system dependencies:\n\n```bash\nz-agent-browser install --with-deps\n# or manually: npx playwright install-deps chromium\n```\n\n## Quick Start\n\n```bash\nz-agent-browser open example.com\nz-agent-browser snapshot                    # Get accessibility tree with refs\nz-agent-browser click @e2                   # Click by ref from snapshot\nz-agent-browser fill @e3 \"test@example.com\" # Fill by ref\nz-agent-browser get text @e1                # Get text by ref\nz-agent-browser screenshot page.png\nz-agent-browser close\n```\n\n### Traditional Selectors (also supported)\n\n```bash\nz-agent-browser click \"#submit\"\nz-agent-browser fill \"#email\" \"test@example.com\"\nz-agent-browser find role button click --name \"Submit\"\n```\n\n## Commands\n\n### Core Commands\n\n```bash\nz-agent-browser open <url>              # Navigate to URL (aliases: goto, navigate)\nz-agent-browser click <sel>             # Click element\nz-agent-browser dblclick <sel>          # Double-click element\nz-agent-browser focus <sel>             # Focus element\nz-agent-browser type <sel> <text>       # Type into element\nz-agent-browser fill <sel> <text>       # Clear and fill\nz-agent-browser press <key>             # Press key (Enter, Tab, Control+a) (alias: key)\nz-agent-browser keydown <key>           # Hold key down\nz-agent-browser keyup <key>             # Release key\nz-agent-browser hover <sel>             # Hover element\nz-agent-browser select <sel> <val>      # Select dropdown option\nz-agent-browser check <sel>             # Check checkbox\nz-agent-browser uncheck <sel>           # Uncheck checkbox\nz-agent-browser scroll <dir> [px]       # Scroll (up/down/left/right)\nz-agent-browser scrollintoview <sel>    # Scroll element into view (alias: scrollinto)\nz-agent-browser drag <src> <tgt>        # Drag and drop\nz-agent-browser upload <sel> <files>    # Upload files\nz-agent-browser screenshot [path]       # Take screenshot (--full for full page)\nz-agent-browser pdf <path>              # Save as PDF\nz-agent-browser snapshot                # Accessibility tree with refs (best for AI)\nz-agent-browser eval <js>               # Run JavaScript\nz-agent-browser connect <port>          # Connect to browser via CDP\nz-agent-browser close                   # Close browser (aliases: quit, exit)\n```\n\n### Get Info\n\n```bash\nz-agent-browser get text <sel>          # Get text content\nz-agent-browser get html <sel>          # Get innerHTML\nz-agent-browser get value <sel>         # Get input value\nz-agent-browser get attr <sel> <attr>   # Get attribute\nz-agent-browser get title               # Get page title\nz-agent-browser get url                 # Get current URL\nz-agent-browser get count <sel>         # Count matching elements\nz-agent-browser get box <sel>           # Get bounding box\n```\n\n### Check State\n\n```bash\nz-agent-browser is visible <sel>        # Check if visible\nz-agent-browser is enabled <sel>        # Check if enabled\nz-agent-browser is checked <sel>        # Check if checked\n```\n\n### Find Elements (Semantic Locators)\n\n```bash\nz-agent-browser find role <role> <action> [value]       # By ARIA role\nz-agent-browser find text <text> <action>               # By text content\nz-agent-browser find label <label> <action> [value]     # By label\nz-agent-browser find placeholder <ph> <action> [value]  # By placeholder\nz-agent-browser find alt <text> <action>                # By alt text\nz-agent-browser find title <text> <action>              # By title attr\nz-agent-browser find testid <id> <action> [value]       # By data-testid\nz-agent-browser find first <sel> <action> [value]       # First match\nz-agent-browser find last <sel> <action> [value]        # Last match\nz-agent-browser find nth <n> <sel> <action> [value]     # Nth match\n```\n\n**Actions:** `click`, `fill`, `check`, `hover`, `text`\n\n**Examples:**\n```bash\nz-agent-browser find role button click --name \"Submit\"\nz-agent-browser find text \"Sign In\" click\nz-agent-browser find label \"Email\" fill \"test@test.com\"\nz-agent-browser find first \".item\" click\nz-agent-browser find nth 2 \"a\" text\n```\n\n### Wait\n\n```bash\nz-agent-browser wait <selector>         # Wait for element to be visible\nz-agent-browser wait <ms>               # Wait for time (milliseconds)\nz-agent-browser wait --text \"Welcome\"   # Wait for text to appear\nz-agent-browser wait --url \"**/dash\"    # Wait for URL pattern\nz-agent-browser wait --load networkidle # Wait for load state\nz-agent-browser wait --fn \"window.ready === true\"  # Wait for JS condition\n```\n\n**Load states:** `load`, `domcontentloaded`, `networkidle`\n\n### Mouse Control\n\n```bash\nz-agent-browser mouse move <x> <y>      # Move mouse\nz-agent-browser mouse down [button]     # Press button (left/right/middle)\nz-agent-browser mouse up [button]       # Release button\nz-agent-browser mouse wheel <dy> [dx]   # Scroll wheel\n```\n\n### Browser Settings\n\n```bash\nz-agent-browser set viewport <w> <h>    # Set viewport size\nz-agent-browser set device <name>       # Emulate device (\"iPhone 14\")\nz-agent-browser set geo <lat> <lng>     # Set geolocation\nz-agent-browser set offline [on|off]    # Toggle offline mode\nz-agent-browser set headers <json>      # Extra HTTP headers\nz-agent-browser set credentials <u> <p> # HTTP basic auth\nz-agent-browser set media [dark|light]  # Emulate color scheme\n```\n\n### Cookies & Storage\n\n```bash\nz-agent-browser cookies                 # Get all cookies\nz-agent-browser cookies set <name> <val> # Set cookie\nz-agent-browser cookies clear           # Clear cookies\n\nz-agent-browser storage local           # Get all localStorage\nz-agent-browser storage local <key>     # Get specific key\nz-agent-browser storage local set <k> <v>  # Set value\nz-agent-browser storage local clear     # Clear all\n\nz-agent-browser storage session         # Same for sessionStorage\n```\n\n### Network\n\n```bash\nz-agent-browser network route <url>              # Intercept requests\nz-agent-browser network route <url> --abort      # Block requests\nz-agent-browser network route <url> --body <json>  # Mock response\nz-agent-browser network unroute [url]            # Remove routes\nz-agent-browser network requests                 # View tracked requests\nz-agent-browser network requests --filter api    # Filter requests\n```\n\n### Tabs & Windows\n\n```bash\nz-agent-browser tab                     # List tabs\nz-agent-browser tab new [url]           # New tab (optionally with URL)\nz-agent-browser tab <n>                 # Switch to tab n\nz-agent-browser tab close [n]           # Close tab\nz-agent-browser window new              # New window\n```\n\n### Frames\n\n```bash\nz-agent-browser frame <sel>             # Switch to iframe\nz-agent-browser frame main              # Back to main frame\n```\n\n### Dialogs\n\n```bash\nz-agent-browser dialog accept [text]    # Accept (with optional prompt text)\nz-agent-browser dialog dismiss          # Dismiss\n```\n\n### Debug\n\n```bash\nz-agent-browser trace start [path]      # Start recording trace\nz-agent-browser trace stop [path]       # Stop and save trace\nz-agent-browser console                 # View console messages\nz-agent-browser console --clear         # Clear console\nz-agent-browser errors                  # View page errors\nz-agent-browser errors --clear          # Clear errors\nz-agent-browser highlight <sel>         # Highlight element\nz-agent-browser state save <path>       # Save auth state\nz-agent-browser state load <path>       # Load auth state\n```\n\n### Navigation\n\n```bash\nz-agent-browser back                    # Go back\nz-agent-browser forward                 # Go forward\nz-agent-browser reload                  # Reload page\n```\n\n### Setup\n\n```bash\nz-agent-browser install                 # Download Chromium browser\nz-agent-browser install --with-deps     # Also install system deps (Linux)\n```\n\n## Sessions\n\nRun multiple isolated browser instances:\n\n```bash\n# Different sessions\nz-agent-browser --session agent1 open site-a.com\nz-agent-browser --session agent2 open site-b.com\n\n# Or via environment variable\nAGENT_BROWSER_SESSION=agent1 z-agent-browser click \"#btn\"\n\n# List active sessions\nz-agent-browser session list\n# Output:\n# Active sessions:\n# -> default\n#    agent1\n\n# Show current session\nz-agent-browser session\n```\n\nEach session has its own:\n- Browser instance\n- Cookies and storage\n- Navigation history\n- Authentication state\n\n## Snapshot Options\n\nThe `snapshot` command supports filtering to reduce output size:\n\n```bash\nz-agent-browser snapshot                    # Full accessibility tree\nz-agent-browser snapshot -i                 # Interactive elements only (buttons, inputs, links)\nz-agent-browser snapshot -c                 # Compact (remove empty structural elements)\nz-agent-browser snapshot -d 3               # Limit depth to 3 levels\nz-agent-browser snapshot -s \"#main\"         # Scope to CSS selector\nz-agent-browser snapshot -i -c -d 5         # Combine options\n```\n\n| Option | Description |\n|--------|-------------|\n| `-i, --interactive` | Only show interactive elements (buttons, links, inputs) |\n| `-c, --compact` | Remove empty structural elements |\n| `-d, --depth <n>` | Limit tree depth |\n| `-s, --selector <sel>` | Scope to CSS selector |\n\n## Token Efficiency: eval vs snapshot\n\nFor AI agents, token efficiency is critical. Use the right tool for the job:\n\n### Use `snapshot -i` for navigation (finding what to click)\n```bash\nz-agent-browser snapshot -i   # Returns interactive elements with refs\n# Output: ~200-500 tokens for buttons, links, inputs\n```\n\n### Use `eval` for data extraction (getting information)\n```bash\n# Instead of parsing a 5000-token snapshot, run JS to get exactly what you need:\nz-agent-browser eval \"document.querySelectorAll('.item').length\"\nz-agent-browser eval \"[...document.querySelectorAll('a')].map(a => ({text: a.textContent, href: a.href}))\"\nz-agent-browser eval \"document.querySelector('h1').textContent\"\n```\n\n### When to use which\n\n| Task | Best Tool | Token Cost |\n|------|-----------|------------|\n| Find button to click | `snapshot -i` | ~200-500 |\n| Count items on page | `eval` | ~10 |\n| Extract all links | `eval` | ~50-200 |\n| Fill a form | `snapshot -i` + refs | ~200-500 |\n| Check if logged in | `eval` | ~10 |\n| Get table data | `eval` | ~100-500 |\n| Navigate complex UI | `snapshot -i` | ~200-500 |\n\n### Example: Extract data efficiently\n\n**Bad** (snapshot approach - ~5000 tokens):\n```bash\nz-agent-browser snapshot    # Returns full page, AI parses it\n```\n\n**Good** (eval approach - ~100 tokens):\n```bash\nz-agent-browser eval \"\n  const rows = [...document.querySelectorAll('tr')];\n  rows.slice(1, 11).map(r => ({\n    title: r.cells[0]?.textContent?.trim(),\n    link: r.querySelector('a')?.href\n  }));\n\"\n# Returns: [{title: \"...\", link: \"...\"}, ...]\n```\n\n**Rule of thumb**: \n- Need to CLICK/FILL something? → `snapshot -i` + refs\n- Need to READ/COUNT/EXTRACT data? → `eval`\n\n## Options\n\n| Option | Description |\n|--------|-------------|\n| `--session <name>` | Use isolated session (or `AGENT_BROWSER_SESSION` env) |\n| `--headers <json>` | Set HTTP headers scoped to the URL's origin |\n| `--executable-path <path>` | Custom browser executable (or `AGENT_BROWSER_EXECUTABLE_PATH` env) |\n| `--json` | JSON output (for agents) |\n| `--full, -f` | Full page screenshot |\n| `--name, -n` | Locator name filter |\n| `--exact` | Exact text match |\n| `--headed` | Show browser window (not headless) |\n| `--cdp <port>` | Connect via Chrome DevTools Protocol |\n| `--debug` | Debug output |\n\n## Selectors\n\n### Refs (Recommended for AI)\n\nRefs provide deterministic element selection from snapshots:\n\n```bash\n# 1. Get snapshot with refs\nz-agent-browser snapshot\n# Output:\n# - heading \"Example Domain\" [ref=e1] [level=1]\n# - button \"Submit\" [ref=e2]\n# - textbox \"Email\" [ref=e3]\n# - link \"Learn more\" [ref=e4]\n\n# 2. Use refs to interact\nz-agent-browser click @e2                   # Click the button\nz-agent-browser fill @e3 \"test@example.com\" # Fill the textbox\nz-agent-browser get text @e1                # Get heading text\nz-agent-browser hover @e4                   # Hover the link\n```\n\n**Why use refs?**\n- **Deterministic**: Ref points to exact element from snapshot\n- **Fast**: No DOM re-query needed\n- **AI-friendly**: Snapshot + ref workflow is optimal for LLMs\n\n### CSS Selectors\n\n```bash\nz-agent-browser click \"#id\"\nz-agent-browser click \".class\"\nz-agent-browser click \"div > button\"\n```\n\n### Text & XPath\n\n```bash\nz-agent-browser click \"text=Submit\"\nz-agent-browser click \"xpath=//button\"\n```\n\n### Semantic Locators\n\n```bash\nz-agent-browser find role button click --name \"Submit\"\nz-agent-browser find label \"Email\" fill \"test@test.com\"\n```\n\n## Agent Mode\n\nUse `--json` for machine-readable output:\n\n```bash\nz-agent-browser snapshot --json\n# Returns: {\"success\":true,\"data\":{\"snapshot\":\"...\",\"refs\":{\"e1\":{\"role\":\"heading\",\"name\":\"Title\"},...}}}\n\nz-agent-browser get text @e1 --json\nz-agent-browser is visible @e2 --json\n```\n\n### Optimal AI Workflow\n\n```bash\n# 1. Navigate and get snapshot\nz-agent-browser open example.com\nz-agent-browser snapshot -i --json   # AI parses tree and refs\n\n# 2. AI identifies target refs from snapshot\n# 3. Execute actions using refs\nz-agent-browser click @e2\nz-agent-browser fill @e3 \"input text\"\n\n# 4. Get new snapshot if page changed\nz-agent-browser snapshot -i --json\n```\n\n## Headed Mode\n\nShow the browser window for debugging:\n\n```bash\nz-agent-browser open example.com --headed\n```\n\nThis opens a visible browser window instead of running headless.\n\n## Authenticated Sessions\n\nUse `--headers` to set HTTP headers for a specific origin, enabling authentication without login flows:\n\n```bash\n# Headers are scoped to api.example.com only\nz-agent-browser open api.example.com --headers '{\"Authorization\": \"Bearer <token>\"}'\n\n# Requests to api.example.com include the auth header\nz-agent-browser snapshot -i --json\nz-agent-browser click @e2\n\n# Navigate to another domain - headers are NOT sent (safe!)\nz-agent-browser open other-site.com\n```\n\nThis is useful for:\n- **Skipping login flows** - Authenticate via headers instead of UI\n- **Switching users** - Start new sessions with different auth tokens\n- **API testing** - Access protected endpoints directly\n- **Security** - Headers are scoped to the origin, not leaked to other domains\n\nTo set headers for multiple origins, use `--headers` with each `open` command:\n\n```bash\nz-agent-browser open api.example.com --headers '{\"Authorization\": \"Bearer token1\"}'\nz-agent-browser open api.acme.com --headers '{\"Authorization\": \"Bearer token2\"}'\n```\n\nFor global headers (all domains), use `set headers`:\n\n```bash\nz-agent-browser set headers '{\"X-Custom-Header\": \"value\"}'\n```\n\n## Custom Browser Executable\n\nUse a custom browser executable instead of the bundled Chromium. This is useful for:\n- **Serverless deployment**: Use lightweight Chromium builds like `@sparticuz/chromium` (~50MB vs ~684MB)\n- **System browsers**: Use an existing Chrome/Chromium installation\n- **Custom builds**: Use modified browser builds\n\n### CLI Usage\n\n```bash\n# Via flag\nz-agent-browser --executable-path /path/to/chromium open example.com\n\n# Via environment variable\nAGENT_BROWSER_EXECUTABLE_PATH=/path/to/chromium z-agent-browser open example.com\n```\n\n### Serverless Example (Vercel/AWS Lambda)\n\n```typescript\nimport chromium from '@sparticuz/chromium';\nimport { BrowserManager } from 'agent-browser';\n\nexport async function handler() {\n  const browser = new BrowserManager();\n  await browser.launch({\n    executablePath: await chromium.executablePath(),\n    headless: true,\n  });\n  // ... use browser\n}\n```\n\n## CDP Mode\n\nConnect to an existing browser via Chrome DevTools Protocol:\n\n```bash\n# Start Chrome with remote debugging\ngoogle-chrome --remote-debugging-port=9222\n\n# Connect once, then run commands without --cdp\nz-agent-browser connect 9222\nz-agent-browser snapshot\nz-agent-browser tab\nz-agent-browser close\n\n# Or pass --cdp on each command\nz-agent-browser --cdp 9222 snapshot\n```\n\nThis enables control of:\n- Electron apps\n- Chrome/Chromium instances with remote debugging\n- WebView2 applications\n- Any browser exposing a CDP endpoint\n\n**Important:** In CDP mode, headless/headed is determined by how Chrome was launched, not by z-agent-browser. The `--headed` flag has no effect when connecting via CDP.\n\n```bash\n# Headed CDP (visible browser)\ngoogle-chrome --remote-debugging-port=9222 &\n\n# Headless CDP (no window) - use --headless=new flag when launching Chrome\ngoogle-chrome --headless=new --remote-debugging-port=9222 &\n```\n\n**For headless automation with your logins**, use Profile Mode instead (see above).\n\n## Playwright MCP Mode (Experimental)\n\nControl your existing browser session via the [Playwright MCP](https://github.com/microsoft/playwright-mcp) bridge extension. This allows AI agents to automate your actual browser instead of a separate headless instance.\n\n### Setup\n\n1. **Install the Chrome extension**\n   - Install \"Playwright MCP Bridge\" from the Chrome Web Store\n   - Or load unpacked from the playwright-mcp repo's `extension/` directory\n\n2. **Set your extension token and run**\n   ```bash\n   # Set the token from the Chrome extension\n   export PLAYWRIGHT_MCP_EXTENSION_TOKEN=your-token-here\n   export AGENT_BROWSER_BACKEND=playwright-mcp\n   \n   # Commands work the same as native mode\n   z-agent-browser open \"https://example.com\"\n   z-agent-browser snapshot -i\n   z-agent-browser click @e1\n   z-agent-browser back\n   z-agent-browser close\n   ```\n\nThe daemon spawns `npx @playwright/mcp@latest --extension` as a subprocess and communicates via stdio. No separate server needed.\n\n### Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `AGENT_BROWSER_BACKEND` | Set to `playwright-mcp` to use MCP mode (default: `native`) |\n| `PLAYWRIGHT_MCP_EXTENSION_TOKEN` | Token from the Chrome extension (required for extension mode) |\n| `PLAYWRIGHT_MCP_COMMAND` | Custom command to spawn MCP server (default: `npx`) |\n| `PLAYWRIGHT_MCP_ARGS` | Space-separated args (default: `@playwright/mcp@latest --extension`) |\n\n### Limitations\n\n- **Feature parity**: Not all commands are supported. Streaming, profile mode, and stealth mode are not available in MCP mode.\n- **Extension required**: The Chrome extension must be installed and connected for the MCP server to control your browser.\n\n### Use Cases\n\n- **AI-assisted browsing**: Let AI agents help you navigate complex web apps in your actual browser\n- **Testing with extensions**: Test sites that require specific browser extensions\n- **Debugging**: Watch AI actions in real-time in your browser\n\n## Streaming (Browser Preview)\n\nStream the browser viewport via WebSocket for live preview or \"pair browsing\" where a human can watch and interact alongside an AI agent.\n\n### Enable Streaming\n\nSet the `AGENT_BROWSER_STREAM_PORT` environment variable:\n\n```bash\nAGENT_BROWSER_STREAM_PORT=9223 z-agent-browser open example.com\n```\n\nThis starts a WebSocket server on the specified port that streams the browser viewport and accepts input events.\n\n### WebSocket Protocol\n\nConnect to `ws://localhost:9223` to receive frames and send input:\n\n**Receive frames:**\n```json\n{\n  \"type\": \"frame\",\n  \"data\": \"<base64-encoded-jpeg>\",\n  \"metadata\": {\n    \"deviceWidth\": 1280,\n    \"deviceHeight\": 720,\n    \"pageScaleFactor\": 1,\n    \"offsetTop\": 0,\n    \"scrollOffsetX\": 0,\n    \"scrollOffsetY\": 0\n  }\n}\n```\n\n**Send mouse events:**\n```json\n{\n  \"type\": \"input_mouse\",\n  \"eventType\": \"mousePressed\",\n  \"x\": 100,\n  \"y\": 200,\n  \"button\": \"left\",\n  \"clickCount\": 1\n}\n```\n\n**Send keyboard events:**\n```json\n{\n  \"type\": \"input_keyboard\",\n  \"eventType\": \"keyDown\",\n  \"key\": \"Enter\",\n  \"code\": \"Enter\"\n}\n```\n\n**Send touch events:**\n```json\n{\n  \"type\": \"input_touch\",\n  \"eventType\": \"touchStart\",\n  \"touchPoints\": [{ \"x\": 100, \"y\": 200 }]\n}\n```\n\n### Programmatic API\n\nFor advanced use, control streaming directly via the protocol:\n\n```typescript\nimport { BrowserManager } from 'agent-browser';\n\nconst browser = new BrowserManager();\nawait browser.launch({ headless: true });\nawait browser.navigate('https://example.com');\n\n// Start screencast\nawait browser.startScreencast((frame) => {\n  // frame.data is base64-encoded image\n  // frame.metadata contains viewport info\n  console.log('Frame received:', frame.metadata.deviceWidth, 'x', frame.metadata.deviceHeight);\n}, {\n  format: 'jpeg',\n  quality: 80,\n  maxWidth: 1280,\n  maxHeight: 720,\n});\n\n// Inject mouse events\nawait browser.injectMouseEvent({\n  type: 'mousePressed',\n  x: 100,\n  y: 200,\n  button: 'left',\n});\n\n// Inject keyboard events\nawait browser.injectKeyboardEvent({\n  type: 'keyDown',\n  key: 'Enter',\n  code: 'Enter',\n});\n\n// Stop when done\nawait browser.stopScreencast();\n```\n\n## Architecture\n\nz-agent-browser uses a client-daemon architecture:\n\n1. **Rust CLI** (fast native binary) - Parses commands, communicates with daemon\n2. **Node.js Daemon** - Manages Playwright browser instance\n3. **Fallback** - If native binary unavailable, uses Node.js directly\n\nThe daemon starts automatically on first command and persists between commands for fast subsequent operations.\n\n**Browser Engine:** Uses Chromium by default. The daemon also supports Firefox and WebKit via the Playwright protocol.\n\n## Platforms\n\n| Platform | Binary | Fallback |\n|----------|--------|----------|\n| macOS ARM64 | Native Rust | Node.js |\n| macOS x64 | Native Rust | Node.js |\n| Linux ARM64 | Native Rust | Node.js |\n| Linux x64 | Native Rust | Node.js |\n| Windows x64 | Native Rust | Node.js |\n\n## Usage with AI Agents\n\n### Just ask the agent\n\nThe simplest approach - just tell your agent to use it:\n\n```\nUse z-agent-browser to test the login flow. Run z-agent-browser --help to see available commands.\n```\n\nThe `--help` output is comprehensive and most agents can figure it out from there.\n\n### AGENTS.md / CLAUDE.md\n\nFor more consistent results, add to your project or global instructions file:\n\n```markdown\n## Browser Automation\n\nUse `z-agent-browser` for web automation. Run `z-agent-browser --help` for all commands.\n\nCore workflow:\n1. `z-agent-browser open <url>` - Navigate to page\n2. `z-agent-browser snapshot -i` - Get interactive elements with refs (@e1, @e2)\n3. `z-agent-browser click @e1` / `fill @e2 \"text\"` - Interact using refs\n4. Re-snapshot after page changes\n```\n\n### Claude Code Skill\n\nFor Claude Code, install the [browser-skill](https://github.com/zm2231/browser-skill):\n\n```\n/plugin marketplace add zm2231/browser-skill\n/plugin install browser-skill@browser-skill-marketplace\n```\n\nOr manually:\n\n```bash\nmkdir -p ~/.claude/skills/browser-automation\ncurl -o ~/.claude/skills/browser-automation/skill.md \\\n  https://raw.githubusercontent.com/zm2231/browser-skill/main/skills/browser-automation/skill.md\n```\n\n## Enhanced Fork Features\n\nThis fork (zm2231/agent-browser) adds features for bot detection bypass, persistent auth, custom profiles, and more.\n\n### Installation (Enhanced Fork)\n\n```bash\ngit clone https://github.com/zm2231/agent-browser.git\ncd agent-browser\npnpm install\npnpm build\npnpm build:native   # requires Rust: https://rustup.rs\nnpm link\nz-agent-browser install\n```\n\n### Stealth Mode\n\nBypass bot detection using playwright-extra with stealth plugin:\n\n```bash\nz-agent-browser --stealth open https://bot.sannysoft.com\nz-agent-browser snapshot -i\n# Most bot detection tests pass\n\n# Via environment variable\nAGENT_BROWSER_STEALTH=1 z-agent-browser open https://example.com\n```\n\nStealth mode applies evasions for: WebDriver detection, Chrome automation flags, permissions, plugins, languages, WebGL, and more.\n\n### Auto-Persistence\n\nSave and restore auth state automatically between sessions:\n\n```bash\n# First session: log in with --persist\nz-agent-browser --persist open \"https://github.com/login\" --headed\n# User logs in manually\nz-agent-browser close   # State saved to ~/.z-agent-browser/sessions/default.json\n\n# Later sessions: auth restored automatically\nz-agent-browser --persist open \"https://github.com\"   # Already logged in\n```\n\nUse explicit state file:\n```bash\nz-agent-browser --state ~/github-auth.json open \"https://github.com\"\n```\n\n### Profile Mode (Headless with Your Logins)\n\nUse a persistent Chrome profile directory to run **headless** with all your existing logins, extensions, and passwords:\n\n```bash\n# 1. Copy your Chrome profile (one-time setup)\ncp -R \"$HOME/Library/Application Support/Google/Chrome\" ~/.z-agent-browser/chrome-profile\n\n# 2. Run headless with your logins (DEFAULT - no browser window)\nz-agent-browser --profile ~/.z-agent-browser/chrome-profile open \"https://github.com\"\n# You're logged in! No visible browser.\n\n# 3. Or run headed if you need to see the browser\nz-agent-browser --profile ~/.z-agent-browser/chrome-profile --headed open \"https://github.com\"\n```\n\n**Key points:**\n- **Headless by default** - no `--headed` flag needed for background automation\n- Uses a **COPY** of your profile - your real Chrome data is safe\n- Keeps extensions, bookmarks, passwords, cookies, localStorage\n- Profile location: `~/.z-agent-browser/chrome-profile` (recommended)\n- Cannot combine with CDP mode\n\n**Headless Limitation:** Google, Gmail, and other strict sites detect headless Chromium and invalidate sessions. For these sites, use `--headed` or CDP Mode with real Chrome.app.\n\n**Profile Mode vs CDP Mode:**\n\n| Feature | Profile Mode | CDP Mode |\n|---------|--------------|----------|\n| Command | `--profile <path>` | `--cdp <port>` or `connect <port>` |\n| Headless support | Yes (default) | Depends on how Chrome was launched |\n| Profile data | Uses COPY (safe) | Uses running Chrome's profile |\n| Browser process | Playwright launches Chromium | Connects to existing Chrome |\n| Best for | Background automation with logins | Interactive debugging, user's actual browser |\n\n### Custom User-Agent\n\n```bash\nz-agent-browser --user-agent \"MyBot/1.0 (compatible)\" open https://httpbin.org/user-agent\n```\n\n### Browser Launch Arguments\n\nPass custom Chromium flags:\n\n```bash\nz-agent-browser --args \"--disable-gpu,--no-sandbox\" open https://example.com\n```\n\nCommon args:\n- `--disable-gpu`: disable GPU acceleration\n- `--no-sandbox`: required in some Docker containers\n- `--disable-dev-shm-usage`: overcome limited /dev/shm in Docker\n- `--window-size=1920,1080`: set initial window size\n\n### HTTPS Certificate Errors\n\nSkip SSL validation for local dev servers with self-signed certs:\n\n```bash\nz-agent-browser --ignore-https-errors open \"https://localhost:8443\"\n```\n\n**Note**: When changing launch options (like --ignore-https-errors), kill any existing daemon first:\n```bash\npkill -f \"node.*daemon\"; sleep 1\nz-agent-browser --ignore-https-errors open \"https://localhost:8443\"\n```\n\n### Video Recording\n\nRecord browser sessions to WebM:\n\n```bash\nz-agent-browser open \"https://example.com\" --headed\nz-agent-browser record start ./demo.webm\nz-agent-browser fill @e1 \"demo input\"\nz-agent-browser click @e2\nz-agent-browser record stop\n# Video saved to ./demo.webm\n\n# Restart recording with new file\nz-agent-browser record restart ./take2.webm\n```\n\nRecording creates a fresh context but preserves cookies and storage.\n\n### Tab New with URL\n\nOpen new tab directly at a URL:\n\n```bash\nz-agent-browser tab new https://example.com\n```\n\n### Screenshot to Base64\n\nOmit path to get base64-encoded PNG:\n\n```bash\nz-agent-browser screenshot --json\n# Returns: {\"success\":true,\"data\":{\"base64\":\"iVBORw0KGgo...\"}}\n```\n\n### Runtime State Load\n\nLoad auth state into a running browser (not just at launch):\n\n```bash\nz-agent-browser open \"https://github.com\"\nz-agent-browser state load ~/.browser/github-auth.json   # Loads into current session\n```\n\n### Connect Command\n\nEstablish persistent CDP connection; subsequent commands omit --cdp:\n\n```bash\n# Start Chrome with remote debugging\n\"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\" \\\n  --remote-debugging-port=9222 --user-data-dir=/tmp/chrome-debug &\n\n# Connect once\nz-agent-browser connect 9222\n\n# All subsequent commands use CDP automatically\nz-agent-browser open \"https://example.com\"\nz-agent-browser snapshot -i\nz-agent-browser close\n```\n\n### Special URL Schemes\n\nSupport for about:, data:, and file: URLs:\n\n```bash\nz-agent-browser open \"about:blank\"\nz-agent-browser open \"data:text/html,<h1>Hello</h1>\"\nz-agent-browser open \"file:///path/to/local.html\"\n```\n\n### Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `AGENT_BROWSER_SESSION` | Session name for isolation |\n| `AGENT_BROWSER_HEADED` | Set to \"1\" for visible browser |\n| `AGENT_BROWSER_STEALTH` | Set to \"1\" for stealth mode |\n| `AGENT_BROWSER_PERSIST` | Set to \"1\" for auto-persistence |\n| `AGENT_BROWSER_STATE` | Path to state file |\n| `AGENT_BROWSER_PROFILE` | Path to Chrome profile directory |\n| `AGENT_BROWSER_USER_AGENT` | Custom User-Agent string |\n| `AGENT_BROWSER_ARGS` | Comma-separated browser launch args |\n| `AGENT_BROWSER_IGNORE_HTTPS_ERRORS` | Set to \"1\" to skip SSL validation |\n| `AGENT_BROWSER_EXECUTABLE_PATH` | Custom browser binary path |\n| `AGENT_BROWSER_EXTENSIONS` | Path to browser extensions |\n| `AGENT_BROWSER_STREAM_PORT` | WebSocket port for streaming |\n| `AGENT_BROWSER_BACKEND` | Backend type: `native` (default) or `playwright-mcp` |\n| `PLAYWRIGHT_MCP_COMMAND` | Command to spawn MCP server (default: `npx`) |\n| `PLAYWRIGHT_MCP_ARGS` | Space-separated args for MCP server (default: `@playwright/mcp@latest`) |\n| `NO_COLOR` | Disable colored output |\n\n### Known Issues\n\n**--ignore-https-errors with existing daemon**: If daemon already has a browser context, new launch options may not apply. Kill daemon before changing options:\n```bash\npkill -f \"node.*daemon\"\n```\n\n## Acknowledgments\n\n- [Playwright MCP](https://github.com/microsoft/playwright-mcp) by Microsoft - Powers the experimental MCP backend mode\n- [Playwright](https://playwright.dev/) by Microsoft - Core browser automation engine\n- [vercel-labs/agent-browser](https://github.com/vercel-labs/agent-browser) - Original project this fork is based on\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}