{"_id":"playwright-write-guard","_rev":"12-a2f6cd9d532d2730147a99d210666db6","name":"playwright-write-guard","dist-tags":{"latest":"0.7.0"},"versions":{"0.0.0-stage":{"name":"playwright-write-guard","version":"0.0.0-stage","_id":"playwright-write-guard@0.0.0-stage","stub":true,"maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"dist":{"shasum":"085d7a2a391552e5abb14bc81125200f36049d6a","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.0.0-stage.tgz","fileCount":2,"integrity":"sha512-A02385xJNKOmQ5FFul/br37mxdRdK/Xzg0kZFmLX/gVXLRejIyj+BUMbg97LHcOddvxCR0ydC6/PQKLf0XkwcQ==","signatures":[{"sig":"MEUCIHeh8ehsThiuUuRJCgNAgXeMdSW5iR1ScBoZN25t76Z6AiEAzRnF2y4RDFwNQpDmHnO2pB2zYHUnQWNDdoWSwHU/Bt4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":344},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"deprecated":"npm staged-publishing placeholder, not a release","description":"Temporary package placeholder for staged publishing","directories":{}},"0.1.0":{"name":"playwright-write-guard","version":"0.1.0","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.1.0","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs"},"dist":{"shasum":"d1816affc63ddf0ad360dc4d5944c413ecc3e11b","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.1.0.tgz","fileCount":14,"integrity":"sha512-xYj1cCBUYGkO6voX1yFVy+nhX7kjLWvSlPQz1aytc5TV6gwZ9LqfoFQYYzqpq+5xYm+dR2DScFHXyEcS7u8WCA==","signatures":[{"sig":"MEUCIQDpruI5o4Vh/rfZJ8/AUw34h5LOAjdAqO7wpRIfADX+xwIgQcqSvHLjlyn470y9PNhMWsuL3wKcT2+cICPtOtp6j48=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQCL64d5+Ba8bxZecnCJCEUObhGggNz4l/IRkIRe6MpaeAIgTqJ1DDpN4s3ZhW0/MYx9CXsI1zf+PZs7KakhCYWoTOM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":70324},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"7b39f007c2fdcb4c6cdf10825fa8b5767caee027","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.59","@playwright/test":">=1.59"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.1.0_1791633690203_0.9512787335834991","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"playwright-write-guard","version":"0.1.1","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.1.1","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs"},"dist":{"shasum":"4ed9204e3eba62fda14b1848714805fba1847064","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.1.1.tgz","fileCount":14,"integrity":"sha512-Bm4m/MEUxw74gVWoVJI3DlQ9d9lzR2qLHvCEpJ8BgtDtTL0Cbdr+6+mGtlEYZmoycwArwJoW4lGt7v9D93HGxQ==","signatures":[{"sig":"MEYCIQD9f+d5ZDq2deTFMQYU7yKIjrYE1uTaisDw5B9OmbMhfwIhAIMtGhXB9AbgYnWUXc/6E+25ZkgvNsBIW5ik75j8mkJ3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDRfKtDveDA3zkHvzJ0zTfLSAVP3PDwiUZz9jT0oPgx+gIgK/+hHG0co4mhh+G+C5EBCvD065GgpI93V5CNwb2ZOUU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71790},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"07232361bb6faacba58cb68ca16f094a98c39484","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.59","@playwright/test":">=1.59"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.1.1_1791641732403_0.2974974117417195","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"playwright-write-guard","version":"0.2.0","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.2.0","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs"},"dist":{"shasum":"fb3d9d5b647e4c586795c23c6e6211fbbe81a7f2","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.2.0.tgz","fileCount":14,"integrity":"sha512-Cx0VEYassxJEwZrNB36J7kXV+OTG8OtafTSkerhw+QDb99b6n/RczzjQazi35u5TYIiFmXXGLSbMC4pSTgWSSQ==","signatures":[{"sig":"MEUCIC5N9yrC/IMB0ePnPovBJVbX2cFQR9lfbz5WnSTyQijeAiEAvu1S6aaXqpdy2ucQxqVW7i/zH1wJKzwav9Y53EsNdxE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCf3p96yKjGq3H3dSPlrLZY2ZAUbCPncEtP/cg954z47wIhAILeY0SLdKrkbOckO1XPgb9nGQeZEp7dSsfcJJ7D71Q6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92209},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"020ae71687c9b7b18e745b153b96185f393e3238","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.59","@playwright/test":">=1.59"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.2.0_1791699933840_0.8200325697620416","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"playwright-write-guard","version":"0.2.1","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.2.1","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs"},"dist":{"shasum":"d2aeb7009d56d4b287a4b706f4ce5e99bcd1b687","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.2.1.tgz","fileCount":14,"integrity":"sha512-VzKJRScj4iws8aD3+BmG0WpRTI+yhcjUOA8OJhY6iABcRQpMKjCwHjHBSgDT72OYj3BfvP0tUnvori893IZdpg==","signatures":[{"sig":"MEUCIQDcxNm2YremswpIZWJ6GrvLYQlI3RbYcAzK0sO25jD/PAIgBVYmU7gvdiTAHN5bsrC1FmLI9JhNU3lqplBoIxdj8Yo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDAKvcHCj8seQd8d/FxZmB0MeygiUgvcMoNOiDgMo2W0wIgdhX/q1ymL8vwngqbNGYCBE7dxUnF50Nm0YiriTf1CNI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":94848},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"1d3c35f674316b8e1c74c741520075359b452cf5","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.59","@playwright/test":">=1.59"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.2.1_1791780554801_0.6685323306838675","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"playwright-write-guard","version":"0.3.0","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.3.0","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs","playwright-write-guard-suggest":"bin/suggest.mjs"},"dist":{"shasum":"7d4314a0e41766d337b4967f3fa489a790d13cb7","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.3.0.tgz","fileCount":15,"integrity":"sha512-ScfXQwJWmvArnVlb0zLxhKTdC2QAlx780NIYH7iGHG10FRoTOE6dkLA9E1PGRv6XlssHiKapHSOIQ1Kijhdi6Q==","signatures":[{"sig":"MEQCIBaUX+6034hqIXZ4NWu9Sjh5AkcVud90R/YVc3iHpMv1AiBQen+lB3olq0HjE3b8NP4ZcwjwstUOTMVJcDF0s8mjBg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIFzds0LXMVqvRQZZTN9pQBWxkkUJq03KKxoDRkaRve63AiEA1BCe+Fw7/UtiWPY7RqvC+70pv5l3/KInh0UpaxU9oLM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":174929},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"3e81868934d328844f54af5ecb945a01d0a7adf9","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.59","@playwright/test":">=1.59"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.3.0_1791880371277_0.5204452522206626","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"playwright-write-guard","version":"0.4.0","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.4.0","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs","playwright-write-guard-suggest":"bin/suggest.mjs"},"dist":{"shasum":"194bcece68540668b3f989f1d6ae30399e299f1a","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.4.0.tgz","fileCount":15,"integrity":"sha512-dS6U6a3UO8ECqXTgolpoL8z0+ldfzaSrHnnFVvbTqh/+1x7ydEfowOxVafAHGMBSaiPORrHXQaVqhEsyfc8PfA==","signatures":[{"sig":"MEUCIDtaRD7JH/7ji8GzkOHnHrwRZC9ussXN/Ql8IjAI5GMOAiEAi/6C3SN5dJby+FlcNjFI6+Af7u+ngdw6uwg9v/8Xe1c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIHROINclq3yFpbiU0POsTVH9ZC0hxtmCYlI8pkzdnyn+AiAcQtprRVN5VitR01Jgz9qG7rkBWVUtVbLo+ypJOgxMng==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":183243},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"221d385e35dc9a793d98a502c4e9a6a870320c9e","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.59","@playwright/test":">=1.59"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.4.0_1792145747457_0.42845010560764374","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"playwright-write-guard","version":"0.5.0","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.5.0","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs","playwright-write-guard-suggest":"bin/suggest.mjs"},"dist":{"shasum":"3f127160d0a44bf877bbf09015200906e9991459","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.5.0.tgz","fileCount":15,"integrity":"sha512-sv/nIQ1nlxtF1bY4YKEr8868pgMOdzGSSEYLSYsS27rFTSqeWnqZYJFnlotudQTDxtZPGwK9IMIlMuIO6zDYyg==","signatures":[{"sig":"MEUCIQCB+R+L7lzww6dWG9BeRsOCMX7B6RLdjEcOsyDSJvDDdAIgdUbIPjMWUcIsWHXhNpk9ZtXA9dS+k4ye4ZeoEY4Cgc0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIGS7FNdWNnjZjSXsThegubyf1Im1FOO4n5uJ2/ubGysiAiEAl4EcYcwFCIurqjf0A2guFDINuMPr26RUeuxFWLuYckA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":100071},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"fb7502f36ac355799809ac141bed2ed63d09de02","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.64","@playwright/test":">=1.64"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.5.0_1792156080232_0.7969510810936813","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"playwright-write-guard","version":"0.6.0","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.6.0","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs","playwright-write-guard-suggest":"bin/suggest.mjs"},"dist":{"shasum":"9bfea5c8f3c72905046582d52ed2f5152317ec89","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.6.0.tgz","fileCount":15,"integrity":"sha512-sxp4XmG88m0Uiccaf8D+117UYMN43KeRW1DBrwY/9iJVrKbU0J5Lw3R4pq/41KxaItGG8Av6sIIa6xKXXA34rA==","signatures":[{"sig":"MEUCIQC8KhqxMSbAHKtaJY5EIJ7ViKTpbpxTmZE59v2x9IFRVAIgLjKB3BWUiJWO1fO45kfo8sfbWLpXilm/caKzlW6YVjg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQClz9c8dGlQfI89A8lag595rs4WYrp7qO2V55qA+fqD/wIgb1XqOESYIFnS1APWMIvECkCPA+AWyLQSm7kP4J+z6lw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89827},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"6491663fa3651e0b8a5526156adc66e1cc73f922","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.64","@playwright/test":">=1.64"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.6.0_1792235684997_0.7843325864050876","host":"s3://npm-registry-packages-npm-production"}},"0.6.1":{"name":"playwright-write-guard","version":"0.6.1","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","_id":"playwright-write-guard@0.6.1","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"bin":{"playwright-write-guard-browser":"bin/browser.mjs","playwright-write-guard-suggest":"bin/suggest.mjs"},"dist":{"shasum":"e4d5b477def5d5272d404cd42a4c95bc294edf9c","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.6.1.tgz","fileCount":15,"integrity":"sha512-ZGEfdQLWis9ZCAhfQuQP3vqba/U03vXJUJz8Xu1GhtqejtKLvTMByEyB/4cvIl0dpPIzWxjWMis5u/FAXYpRuw==","signatures":[{"sig":"MEUCIAp1r0SLtLT9TuivnjSvEf0BlrxauAnOPHrq5RS4xJceAiEAx4FzCLMU9z4CgI2vg5BRI0hXEK+PIbYAfLc5waTbxYg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDUj8ctKqE0qaGVYK5hn4GYNpelSrho/ySroV3BvqGnewIhALgcZaIZm4uSVRR/R/XgDtq44bYagbMinhFrZ7Cxxivx","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":86304},"type":"module","engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"2def34376237a7aa9013ee21991ec2e62c9ab619","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.64","@playwright/test":">=1.64"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/playwright-write-guard_0.6.1_1792306560805_0.1725866699887213","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"_id":"playwright-write-guard@0.7.0","bin":{"playwright-write-guard-browser":"bin/browser.mjs","playwright-write-guard-suggest":"bin/suggest.mjs"},"bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"dist":{"shasum":"4a61607c810bd7c27a5e2242b0ee61b9968a24fb","tarball":"https://registry.npmjs.org/playwright-write-guard/-/playwright-write-guard-0.7.0.tgz","fileCount":15,"integrity":"sha512-RRF/gV+uyfUfk9YD0RlI2WfJTb1vBBbvEzQL4vS8IFMR8DcOSxBV3+r/AsOAxsxBQxjZDj1/nNwievDVv/Am+Q==","signatures":[{"sig":"MEYCIQCc6QtIEdvO9PnMUGuhF8e6O6PBG2c1pZwXZHiGDo3xfgIhAPAPMW8wkqwg7hOo8j+icj7zj8hup4M9O4ruvv3YI62h","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDqOgHE84UQK0Edpv5TWztRxTYiIqklz1wJKylYMZlIAAiA+HaYbzkWLL4r+4JJ7tJGof2uOYqTdls6PvEeLjZ86kQ=="}],"unpackedSize":91945},"name":"playwright-write-guard","type":"module","author":{"name":"Venkata Sandeep Takasi"},"engines":{"node":">=20"},"exports":{".":{"types":"./types/core.d.ts","default":"./src/core.mjs"},"./test":{"types":"./types/test.d.ts","default":"./src/fixture.mjs"},"./browser":{"types":"./types/browser.d.ts","default":"./src/browser.mjs"},"./install":{"types":"./types/install.d.ts","default":"./src/install.mjs"},"./init-page":{"types":"./types/init-page.d.ts","default":"./src/init-page.mjs"}},"gitHead":"83deac3a72389fdae3709387f1c55bd75a675124","license":"MIT","scripts":{"test":"node --test test/*.test.mjs && playwright test --pass-with-no-tests"},"version":"0.7.0","_npmUser":{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"},"homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"_npmVersion":"8.18.0","description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","directories":{},"maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"_nodeVersion":"22.23.1","_hasShrinkwrap":false,"devDependencies":{"playwright-core":"1.64.0","@playwright/test":"1.64.0"},"peerDependencies":{"playwright-core":">=1.64","@playwright/test":">=1.64"},"peerDependenciesMeta":{"playwright-core":{"optional":true},"@playwright/test":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/playwright-write-guard_0.7.0_1792329376949_0.6226445705954646"}}},"time":{"created":"2026-10-10T12:00:34.247Z","modified":"2026-10-18T13:16:17.362Z","0.0.0-stage":"2026-10-10T12:00:34.247Z","0.1.0":"2026-10-10T12:01:30.437Z","0.1.1":"2026-10-10T14:15:32.502Z","0.2.0":"2026-10-11T06:25:33.938Z","0.2.1":"2026-10-12T04:49:14.889Z","0.3.0":"2026-10-13T08:32:51.388Z","0.4.0":"2026-10-16T10:15:47.560Z","0.5.0":"2026-10-16T13:08:00.335Z","0.6.0":"2026-10-17T11:14:45.073Z","0.6.1":"2026-10-18T06:56:00.879Z","0.7.0":"2026-10-18T13:16:17.029Z"},"bugs":{"url":"https://github.com/SandeepTakasi/playwright-write-guard/issues"},"author":{"name":"Venkata Sandeep Takasi"},"license":"MIT","homepage":"https://github.com/SandeepTakasi/playwright-write-guard#readme","keywords":["playwright","testing","read-only","safety","ai-agents","mcp"],"repository":{"url":"git+https://github.com/SandeepTakasi/playwright-write-guard.git","type":"git"},"description":"A read-only safety net for Playwright tests and AI browser agents: blocks writes at the network layer and refuses destructive clicks in the page.","maintainers":[{"name":"takasi-venkata-sandeep","email":"venkatasandeeptakasi@gmail.com"}],"readme":"# playwright-write-guard\n\nA read-only safety net for Playwright tests and AI browser agents: it blocks writes before they reach your app and logs what it blocked.\n\n![A real Claude Code session, asked to delete and refund test orders in a signed-in store admin, has all four clicks refused by the guard, stops and explains, while the server receives 0 writes](https://raw.githubusercontent.com/SandeepTakasi/playwright-write-guard/main/docs/demo.gif)\n\n*A real, unscripted Claude Code run through Playwright MCP, filmed with [`demo/shop/film.mjs`](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/demo/README.md): every line on the left is the agent's own, and the log on the right shows what reached the server.*\n\n## Quickstart\n\n**An AI agent** (Playwright MCP, starting already logged in):\n\n```\nnpm i -D playwright-write-guard\nnpx playwright install chromium\n# log in, then close the window\nnpx playwright codegen --save-storage=state.json https://app.example.com\nnpx playwright-write-guard-browser --storage-state state.json\n```\n\nThe launcher prints `endpoint: ws://...`. Point Playwright MCP at that endpoint with `--endpoint` (and without `--isolated`), then ask the agent to look around:\n\n```\nnpx @playwright/mcp@0.0.83 --endpoint ws://127.0.0.1:<port>/<id>\n```\n\n`--print-mcp-config` also prints the JSON to paste into an MCP client's settings. `state.json` holds a live session, so keep it out of version control (see [logging in](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#logging-in)). If the app needs no login, skip the codegen step and `--storage-state`.\n\n**Playwright Test:**\n\n```\nnpm i -D playwright-write-guard\nnpx playwright install chromium\n```\n\n```js\nimport { test, expect } from 'playwright-write-guard/test';\n```\n\nThat one import is the whole change. If the click check refuses a control your app uses for reading, set `\"defaultControls\": false` in `write-guard.config.json` and name your own verbs in `controls.text`.\n\n## What it is and why\n\nPointing an automated browser at a real app is risky when the run should only look: a test or an agent can press Save, Delete or Send, or fire a POST, and change real data. This package puts a read-only guard in front of the browser. Use it with Playwright Test, or with Playwright MCP and the Playwright CLI through an `initPage` entry or a launcher. No runtime dependencies, no build step. It is a safety net, not a security boundary: a restricted test account is the boundary.\n\n- **Requests.** A request that is not GET, HEAD or OPTIONS is blocked at the network layer unless your `allow` list says it is a read; `writes` always wins. [Rules](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/api.md#writes-and-controls).\n- **Clicks.** A click, submit or Enter or Space on a control labelled with a destructive verb (Save, Delete, Pay) is stopped in the page, with a console warning that says why. [How the guard works](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#how-the-guard-works).\n- **Log.** Every blocked, observed, mocked or suspect event is one JSON line. [The audit log](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#the-audit-log).\n- **Enforced:** every HTTP request of a guarded context is judged, except WebSocket messages and sends from a page being left, a `SharedWorker` or `fetchLater`. [WebSocket frames](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#websocket-frames-and-suspect-gets), [leaving pages](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#leaving-pages-shared-workers-and-fetchlater).\n- **Heuristic:** writes are told by method and controls by label, so apps that read over POST need an allow list and a harmless \"Save search\" is refused. [Writing an allow list](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#writing-an-allow-list).\n- **Not covered:** anything outside the guarded context, and code that removes the guard. See [What it cannot see](#what-it-cannot-see).\n- **Cost:** no HTTP cache, no service workers, slower WebSockets. [Limits](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/limits.md).\n\nSee it work end to end, with a local page and server, in the walkthrough at [demo/README.md](demo/README.md) (`node demo/run.mjs`).\n\n## Install\n\n```\nnpm i -D playwright-write-guard\nnpx playwright install chromium\n```\n\nIt needs Node 20 or newer and Playwright 1.64 or newer: `@playwright/test` for the fixture, and `playwright-core` for the launcher (`playwright-write-guard/browser`) and its command `playwright-write-guard-browser`. Using the `initPage` entry with an agent needs a Node that can `require` an ES module (see below).\n\n## Use with Playwright Test\n\nSwap one import:\n\n```js\n// before\n// import { test, expect } from '@playwright/test';\nimport { test, expect } from 'playwright-write-guard/test';\n\ntest('lists items without changing them', async ({ page }) => {\n  await page.goto('https://app.example.test/items');\n  await expect(page.getByRole('list')).toBeVisible();\n});\n```\n\nTests that only read through the page keep working. Under both policies, these change:\n\n- The `request` fixture, `page.request` and `context.request` work: a GET goes through, and a write is judged like a browser request. Under `read-only` it rejects without being sent, with `write-guard: POST <url> through APIRequestContext is refused under read-only`, and is recorded as a blocked `request` event (`via: \"request-client\"`); under `observe` it is recorded and sent. In a `beforeAll` or `afterAll` hook there is no test guard: a `request` fixture send there is judged (and refused under `read-only`) but not recorded.\n- Node's global `fetch` is judged the same way while the test's own function runs (events carry `via: \"node-fetch\"`). In hooks and in fixture setup and teardown it still throws.\n- `browser.newContext()` and `browser.newPage()` inside a test return a guarded context (record attached as `write-guard-<n>.json`); in hooks and fixture setup they throw, and so do `playwright.request.newContext()` and the browser types' `launch` and `connect` family. See [the guide](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#playwright-test-details).\n- A test can mock a write: a `page.route` handler that `fulfill`s or `abort`s it runs, and the guard records a `mocked` event (not `blocked`). A mock is not the server: count writes on a real local server.\n- Blocked requests other than page navigations are aborted, which the page's console reports as `net::ERR_BLOCKED_BY_CLIENT` errors, so a test that asserts a clean console needs to filter those out. Under `read-only` each one also gets a `write-guard refused <METHOD> <URL>: <reason>` console warning in its frame, which such a test filters out too.\n- Blocked writes do not fail a test by default. Set `writeGuardFailOnBlocked: true` (see below) to fail a test whose guard blocked something, or check the `blocked` count in the `write-guard.json` attachment. A write that one of your own routes fulfills or aborts is counted in `mocked`, not in `blocked`, so check `mocked` as well when the test must prove no write was attempted.\n\n**Dialogs.** Under `read-only` the guard declines every dialog first, so a suite's own `accept` or `dismiss` on it throws (catch the error), and a dismissed `beforeunload` keeps the page. See [Dialogs](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#dialogs).\n\nThe fixture guards each test's context, created with `serviceWorkers: 'block'`. By default it reads `write-guard.config.json` from the directory you run Playwright in. Every key is optional; a small example that lets a GraphQL endpoint's queries through and blocks its mutations:\n\n```json\n{\n  \"policy\": \"read-only\",\n  \"graphql\": [\"^https://app[.]example[.]test/graphql$\"],\n  \"controls\": { \"icons\": [\"icon-trash\"] }\n}\n```\n\nA POST to a `graphql` URL has its body read: a query is allowed, and a mutation or subscription is blocked even when `allow` matches. A body the guard cannot classify falls through to `allow` and the method rule, so it stays blocked. More in the [guide](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#allow-and-writes-examples).\n\nAn `allow` URL that matches the empty string (`.*`, `^`, `x?`) is refused, and one not anchored with `^` prints a warning. A `writes` signature always wins over `allow`, so a GraphQL endpoint's reads can be allowed while its mutations stay blocked, and reads that differ from writes only in a header (Next.js server actions) can be allowed by exact action ID. Examples of both are in the [guide](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#allow-and-writes-examples).\n\nTo set the config in the test file instead, use `test.use`:\n\n```js\ntest.use({ writeGuardConfig: { policy: 'read-only', allow: [] } });\n```\n\nTo fail a test whose guard blocked something, set the option `writeGuardFailOnBlocked` (off by default) with `test.use({ writeGuardFailOnBlocked: true })`, or in the config's `use`.\n\nEach test attaches what the guard saw as `write-guard.json` (open it from the HTML report or the test's attachments). Its `config_file` names the config file that was loaded, or is `null` when none was read. The fixture never writes a JSONL log file; use that attachment instead.\n\nIf you run Playwright with `-c` from another directory, the fixture will not find `write-guard.config.json` and silently falls back to the defaults. Set `WRITE_GUARD_CONFIG` to the config file's path:\n\n```\nWRITE_GUARD_CONFIG=/path/to/write-guard.config.json npx playwright test -c config/playwright.config.mjs\n```\n\nThe sections on [logging in](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#logging-in) and [writing an allow list](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#writing-an-allow-list) are in the guide.\n\n## Use with AI agents\n\nPick one mode for a given browser. Using both at once is refused: the second guard throws `write-guard: this context is already guarded by another process; use one mode, not both`, and Playwright MCP then fails every tool call with that message.\n\nConfig mode depends on denying the agent its code-running and routing tools (the example below is for Claude Code); if your agent cannot, use launcher mode. Both modes were checked with Playwright MCP 0.0.83 driving the demo app: the agent's Delete click was refused in the page, its `fetch` DELETE was blocked at the network, and the server received no writes. The agent sees a refused click only as a warning count in the click's result; the reason is in the console messages (`browser_console_messages`). A blocked request other than a navigation reports `Failed to fetch` and, under `read-only`, also leaves a `write-guard refused <METHOD> <URL>: <reason>` warning in the console messages of its frame.\n\n### Config mode: the `initPage` entry\n\nPlaywright MCP and the Playwright CLI can run a script on every new tab before any tool acts. Point them at this package's entry. For Playwright MCP, put this in a file and pass it with `--config`; for the Playwright CLI, put it in `.playwright/cli.config.json`:\n\n```json\n{\n  \"browser\": {\n    \"initPage\": [\"/absolute/path/to/node_modules/playwright-write-guard/src/init-page.mjs\"],\n    \"contextOptions\": { \"serviceWorkers\": \"block\" }\n  }\n}\n```\n\nThe entry is loaded with `require`, so the agent server's Node must be able to `require` an ES module: Node 20.19 or newer, or 22.12 or newer. The guard reads its config with `loadConfig()` from the agent server's working directory; set `WRITE_GUARD_CONFIG` to an absolute path when in doubt. The audit log is written there too.\n\nIn this mode the guard lives in the same process as the agent's tools, so the agent can remove it with its own code-running and routing tools. Deny those tools. In Claude Code, add these to `permissions.deny`:\n\n```json\n{\n  \"permissions\": {\n    \"deny\": [\n      \"mcp__playwright__browser_run_code_unsafe\",\n      \"mcp__playwright__browser_route\",\n      \"mcp__playwright__browser_unroute\",\n      \"Bash(playwright-cli run-code:*)\",\n      \"Bash(playwright-cli route:*)\",\n      \"Bash(playwright-cli unroute:*)\"\n    ]\n  }\n}\n```\n\nWithout those entries the agent can remove the guard.\n\n### Launcher mode: a guarded browser the agent attaches to\n\nThe launcher starts Chromium, guards its one context, and prints a WebSocket endpoint:\n\n```\nnpx playwright-write-guard-browser [--config <path>] [--headed] [--host <h>] [--port <n>] [--storage-state <path>] [--proxy <url>] [--ignore-https-errors] [--print-mcp-config]\n```\n\n`--storage-state` starts the browser logged in from a saved session file, `--proxy` sends its traffic through a proxy, and `--ignore-https-errors` accepts self-signed certificates (see [logging in](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md#logging-in)). It prints `config: <path>` (or `config: none, using the defaults`) as its first line, then `endpoint: <ws endpoint>`. Attach the agent to it:\n\n- Playwright MCP: start it with `--endpoint <ws endpoint>` and without `--isolated`. `--isolated` makes a new, unguarded context.\n- Playwright CLI: `playwright-cli attach --endpoint=<ws endpoint>`.\n\nThe guard runs in the launcher's process, not the agent's. The agent's own `unroute` and `unrouteAll` cannot remove it, and a `page.route` handler that calls `continue()`, with or without overrides, is still judged, because page handlers run before the owner's context route and the request reaches the guard with the overrides applied. Playwright MCP's own route tool only sets the headers and status of mocked responses, so this mode survives the MCP route tools the config mode has to deny. It does not survive arbitrary client code: see \"What it cannot see\" below. Tabs the agent opens in that context are guarded too. Stop it with Ctrl+C.\n\n## What it cannot see\n\nThe five limits that matter most. It is a safety net, not a security boundary.\n\n| Limit | What it means |\n|---|---|\n| Not a security boundary | Code in the guarded process, or an agent's own run-code tool or browser, can go around it. Give the run a restricted account that cannot write. |\n| WebSocket messages | Judged only for text frames that match `websocketWrites`; by default a socket is recorded when it opens and its messages are not judged. |\n| GETs that write | A GET is never blocked for its path; only a short built-in pattern (and `suspectGets`) records one as `suspect`. |\n| Clicks are judged by their labels | A control is refused or let through by the words on it, so a harmless \"Save search\" is refused and a writing \"Place order\" is missed. The network layer is the main layer. |\n| Sends from a page being left, a `SharedWorker` or `fetchLater` | Playwright does not route them. Under `read-only` the page script judges and refuses them but records nothing; under `observe` they are neither judged nor recorded. |\n\nThe [full list of limits](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/limits.md) has the rest, from redirects and toggles to the launcher's other contexts.\n\n## Documentation\n\n- [API reference](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/api.md): every entry point, the config keys, the decision rules, the installer, the fixture, the launcher, the suggest command, and the same list of limits.\n- [Guide](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/docs/guide.md): logging in, WebSocket frames and suspect GETs, the audit log, and writing an allow list.\n- [Changelog](https://github.com/SandeepTakasi/playwright-write-guard/blob/main/CHANGELOG.md): what changed in each release.\n\n## License\n\nMIT. See [LICENSE](LICENSE). Written by Venkata Sandeep Takasi.\n","readmeFilename":"README.md"}