Commit 4ef116e
authored
native press key, scroll, drag mouse (#78)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Adds new input endpoints (press_key, scroll, drag_mouse), serializes
input actions, updates OpenAPI/client, installs xdotool, and
expands/refactors e2e tests with dependency bumps.
>
> - **API/Backend**:
> - **New endpoints**: `POST /computer/press_key`, `POST
/computer/scroll`, `POST /computer/drag_mouse` with validation and
xdotool integration.
> - **Input serialization**: add `inputMu` to serialize
mouse/keyboard/screenshot actions; apply across `MoveMouse`,
`ClickMouse`, `TakeScreenshot`, `TypeText`.
> - **OpenAPI + Client**: extend `openapi.yaml`; regenerate `lib/oapi`
with new models/requests/responses and adjusted click button enums.
> - **Infrastructure**:
> - **Dockerfile** (headless): install `xdotool`.
> - **Tests**:
> - Add `TestInputEndpointsSmoke`; modernize e2e tests (use `require`,
simplify flows) and minor cleanups.
> - **Dependencies**:
> - Bump `testify`, `golang.org/x/sync`, add `samber/lo`,
`golang.org/x/text`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
2b85972. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent 0260b79 commit 4ef116e
File tree
8 files changed
+1629
-1178
lines changed- images/chromium-headless/image
- server
- cmd/api/api
- e2e
- lib/oapi
8 files changed
+1629
-1178
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
Large diffs are not rendered by default.
0 commit comments