Skip to content

Commit 03d1f67

Browse files
authored
Merge pull request #391 from knockout/claude/playwright-cli-fix
docs: use bunx @playwright/cli in AGENTS.md and process.md
2 parents 32c7e0c + 3614f43 commit 03d1f67

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Builds: `@tko/build.knockout` (backwards-compatible) and
4545
- **Bun** — package manager and script runner. Install via [mise](https://mise.jdx.dev/): `mise install` (reads `.tool-versions`), or [bun.sh](https://bun.sh).
4646
- Use `bun install` instead of `npm install`; `bunx` instead of `npx`.
4747
- In repo scripts (`tko.io/scripts`, `tools/`), prefer native Bun APIs — `Bun.Glob`, `Bun.file`, `Bun.write`, `Bun.$` — over `node:fs`, the `glob` export from `node:fs/promises`, or ad-hoc `child_process`. Runtime is pinned by `.tool-versions`, so there's no Node-version portability concern.
48-
- Browser automation uses `bunx playwright <cmd>` via the repo's `playwright` dependency (not `npx playwright`, not the deprecated `playwright-cli` package).
48+
- Browser automation uses `bunx @playwright/cli <cmd>`.
4949

5050
## Build Commands
5151

tko.io/public/agents/process.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ Minimum (any docs change):
7474

7575
For pages with runnable TSX examples, also run the headless Playwright flow:
7676

77-
- Use `playwright-cli` in headless mode. Do not use headed/browser-stealing runs unless the user explicitly asks for them.
77+
- Use `bunx @playwright/cli` in headless mode. Do not use headed/browser-stealing runs unless the user explicitly asks for them.
7878
- Prefer a live Astro dev server on `127.0.0.1:4321` so markdown/plugin edits reload while you work (`bun run dev` in `tko.io/`).
7979
- Verify each `Open in Playground` button on the page; if a page has multiple TSX examples, check every one, not just the first.
80-
- Standard flow: `playwright-cli close-all`, `playwright-cli open http://127.0.0.1:4321/...`, inspect the snapshot for playground refs, click each button, switch to the playground tab, and confirm `[data-role="status"]` (shows "esbuild ready"), `[data-role="compile-time"]`, and `[data-role="error-bar"]`.
80+
- Standard flow: `bunx @playwright/cli close-all`, `bunx @playwright/cli open http://127.0.0.1:4321/...`, inspect the snapshot for playground refs, click each button, switch to the playground tab, and confirm `[data-role="status"]` (shows "esbuild ready"), `[data-role="compile-time"]`, and `[data-role="error-bar"]`.
8181
- Treat docs example work as incomplete until the emitted playground payload compiles cleanly on the live site.
8282

8383
Generator-owned files: see the note at the top of this document under "Never ship docs that reference things that don't exist on the target branch."

0 commit comments

Comments
 (0)