852 B
852 B
AGENTS.md
XiaoHongShu / Playwright Hard Rules
These rules are mandatory for any workflow that uses tools/pw (directly or indirectly).
- Preflight before first browser action:
- Run
tools/pw --helponce with escalation (sandbox_permissions=require_escalated).
- Run
- All
tools/pw ...commands (including browse/like/comment/reply flows) must be executed with escalation (sandbox_permissions=require_escalated) by default. - If preflight or any
tools/pw ...command still fails with network sandbox signatures, rerun the same command with escalation immediately:ENOTFOUNDEAI_AGAINETIMEDOUTECONNREFUSEDregistry.npmjs.orgfetch failure
- Do not continue XiaoHongShu actions (browse/like/comment/reply) until preflight succeeds.
- Do not try alternate non-escalated workarounds for
tools/pw.