Commit Graph

437 Commits

Author SHA1 Message Date
Tommy D. Rossi a31812be8d skip overlapping labels using greedy placement algorithm
Labels are placed in DOM order, skipping any that would overlap
with already-placed labels. Uses AABB intersection test.
2026-01-03 15:28:07 +01:00
Tommy D. Rossi 355053cbf9 filter aria ref labels to only interactive roles
Reduces label clutter by ~66-88% by only showing labels for:
button, link, textbox, combobox, searchbox, checkbox, radio,
slider, spinbutton, switch, menuitem, option, tab, treeitem

Added interactiveOnly option (default: true) to showAriaRefLabels()
2026-01-03 15:25:33 +01:00
Tommy D. Rossi 802e6768e2 add showAriaRefLabels/hideAriaRefLabels for Vimium-style visual labels
- getAriaSnapshot() discovers aria refs and caches ElementHandles
- showAriaRefLabels() overlays yellow badges on interactive elements
- hideAriaRefLabels() removes labels from page
- test captures screenshots from HN, Google, GitHub
2026-01-03 15:17:47 +01:00
Tommy D. Rossi 22a255e1dd refactor extension with ConnectionManager. log memory usage 2026-01-02 14:41:37 +01:00
Tommy D. Rossi a53342f36a add reload packge.json script 2026-01-02 14:41:05 +01:00
Tommy D. Rossi 1392bb8dc6 Update prompt.md 2026-01-02 14:40:57 +01:00
Tommy D. Rossi 5cf7d2756e more logs when url is empty 2026-01-02 14:40:03 +01:00
Tommy D. Rossi 7630ab7538 Update mcp.test.ts 2026-01-02 14:39:50 +01:00
Tommy D. Rossi e3cb7fd1fd add test to find out how to remove sleep after extension connect 2026-01-02 14:24:15 +01:00
Tommy D. Rossi cc128236eb agents.md 2026-01-01 12:00:10 +01:00
Tommy D. Rossi 2b0a5db49e adding docs 2026-01-01 12:00:02 +01:00
Tommy D. Rossi 90179dea17 handle connecting ws 2026-01-01 03:12:30 +01:00
Tommy D. Rossi ef6ab59351 Fix auto-enable to work without delay by skipping duplicate Target.attachedToTarget
Move auto-create logic from onOpen to Target.setAutoAttach handler so it runs
synchronously in the CDP command flow. Add skipAttachedEvent option to extension's
attachTab to prevent sending Target.attachedToTarget when the relay will send it
via the Target.setAutoAttach response handler.
2026-01-01 02:53:10 +01:00
Tommy D. Rossi 002f72af2c more logs 2026-01-01 02:23:25 +01:00
Tommy D. Rossi f6ae01866d use ts relay in dev 2026-01-01 02:23:16 +01:00
Tommy D. Rossi 70dc79ef8c pass env in spawn subprocess 2026-01-01 01:54:40 +01:00
Tommy D. Rossi 178387ec97 Persistent WS connection and auto-create initial tab
- Connect WS at extension startup via maintainConnection() loop
- Auto-retry every 5 seconds silently (no connecting badge)
- Never disconnect WS based on tab count
- Rename ConnectionState 'disconnected' to 'idle', remove global 'connecting'
- Fix race condition with tabGroupQueue for syncTabGroup/disconnectEverything/onTabUpdated
- Add auto-create initial tab when Playwright connects (PLAYWRITER_AUTO_ENABLE env var)
- Add test for auto-create feature
2026-01-01 01:14:16 +01:00
Tommy D. Rossi c15cf5947a Add unified mcpLog for relay server and stderr logging 2025-12-31 22:41:32 +01:00
Tommy D. Rossi 240ce5be74 Bump version to 0.0.34 2025-12-31 16:15:51 +01:00
Tommy D. Rossi be1b9514d3 Add ping/pong keep-alive to prevent service worker termination 2025-12-31 16:15:17 +01:00
Tommy D. Rossi 02fda90578 add more logs on detach 2025-12-31 16:07:57 +01:00
Tommy D. Rossi 5dca4094c8 dont restart server if version is higher than mcp 2025-12-31 16:05:34 +01:00
Tommy D. Rossi 3d0d280f6a Fix context menu duplicate ID crash and add global error logging 2025-12-31 15:45:32 +01:00
Tommy D. Rossi 0f9591722d Add Playwright CDPSession compatibility and export classes
- Add ICDPSession interface for Playwright CDPSession compatibility
- Add method aliases: addListener, removeListener, once, detach
- Make on/off return 'this' for chaining
- Export CDPSession, Editor, Debugger classes from index
- Classes accept ICDPSession but use typed CDPSession internally
2025-12-31 11:51:03 +01:00
Tommy D. Rossi a5f57ea5d6 add example locators 2025-12-31 11:43:49 +01:00
Tommy D. Rossi 9ad8428be1 Update prompt.md 2025-12-31 10:55:03 +01:00
Tommy D. Rossi 4a5bf3c3a3 Update prompt.md 2025-12-31 10:38:55 +01:00
Tommy D. Rossi 1f68e59e64 Update prompt.md 2025-12-31 10:36:50 +01:00
Tommy D. Rossi 97d971a993 nicer resources urls 2025-12-31 10:34:56 +01:00
Tommy D. Rossi 6753e1953f Update vite.config.ts 2025-12-30 17:45:45 +01:00
Tommy D. Rossi 2890d82470 Update package.json 2025-12-30 17:45:37 +01:00
Tommy D. Rossi d37b2eee92 vercel react router 2025-12-30 17:44:41 +01:00
Tommy D. Rossi c97a6123b2 Update package.json 2025-12-30 17:43:01 +01:00
Tommy D. Rossi e7b4f07dd4 fix website 2025-12-30 17:41:44 +01:00
Tommy D. Rossi 45ca51bc35 Update _index.tsx 2025-12-30 17:39:52 +01:00
Tommy D. Rossi d88012324c fix: read prompt.md from src/ instead of dist/ 2025-12-30 15:22:54 +01:00
Tommy D. Rossi e4e509d638 Update react-router.config.ts 2025-12-30 14:35:40 +01:00
Tommy D. Rossi 2a8fb62995 Update react-router.config.ts 2025-12-30 14:35:35 +01:00
Tommy D. Rossi ab80c760c8 Bump playwriter to 0.0.32 2025-12-30 14:31:47 +01:00
Tommy D. Rossi 8604d06e7f Update README.md 2025-12-30 14:30:52 +01:00
Tommy D. Rossi 237f24d3f8 Generate MCP resources at build time and host on playwriter.dev
- Add build-resources.ts script to generate markdown API docs
- Resources now use https://playwriter.dev/resources/*.md URLs
- Output to both playwriter/dist/ and website/public/resources/
- Simplify mcp.ts resource handlers to read pre-built files
2025-12-30 14:30:30 +01:00
Tommy D. Rossi aca26896b4 Update README.md 2025-12-30 14:28:02 +01:00
Tommy D. Rossi 169f43599a Update pnpm-lock.yaml 2025-12-30 14:25:21 +01:00
Tommy D. Rossi 3decc28242 website 2025-12-30 14:25:19 +01:00
Tommy D. Rossi b19b7ae72d change colors of badges 2025-12-30 14:19:33 +01:00
Tommy D. Rossi 6fffe4b477 Update AGENTS.md 2025-12-30 14:02:06 +01:00
Tommy D. Rossi 449cd45e71 use addScriptToEvaluateOnNewDocument 2025-12-30 14:00:40 +01:00
Tommy D. Rossi 8eedbcf2e1 bump 2025-12-30 13:54:12 +01:00
Tommy D. Rossi f9a3c5b924 Update PLAYWRITER_AGENTS.md 2025-12-30 13:54:06 +01:00
Tommy D. Rossi de25a54a40 import examples from src 2025-12-30 13:37:35 +01:00