Skip to content

feat: add coordinate mouse endpoint#3377

Open
nicha16 wants to merge 1 commit into
jo-inc:masterfrom
nicha16:mouse-endpoint-20260517
Open

feat: add coordinate mouse endpoint#3377
nicha16 wants to merge 1 commit into
jo-inc:masterfrom
nicha16:mouse-endpoint-20260517

Conversation

@nicha16
Copy link
Copy Markdown
Contributor

@nicha16 nicha16 commented May 17, 2026

Summary

  • Adds POST /tabs/:tabId/mouse for viewport CSS-pixel mouse actions (click, move, down, up).
  • Validates coordinates, action, button, and click count; uses the existing per-user limit + tab lock path.
  • Documents the endpoint in OpenAPI and regenerates openapi.json.
  • Adds e2e coverage plus a test-client helper for coordinate mouse actions.

Test Plan

  • npm run generate-openapi
  • NODE_OPTIONS='--experimental-vm-modules' npx jest --runInBand --forceExit tests/unit/openapi.test.js
  • NODE_OPTIONS='--experimental-vm-modules' npx jest --config jest.config.e2e.cjs --runInBand --forceExit tests/e2e/mouse.test.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant