Commit 18771b2
authored
feat/toggle cursor visibility (#87)
# Checklist
- [X] A link to a related issue in our repository:
https://linear.app/onkernel/issue/KERNEL-443/api-expose-option-to-hide-remote-browser-cursor-in-api
- [x] A description of the changes proposed in the pull request.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Introduces POST /computer/cursor to hide/show the cursor via
unclutter, updates OpenAPI and generated client/server code, adds
runtime dependency and docs for local testing.
>
> - **API/Backend**:
> - **New endpoint** `POST /computer/cursor` with `SetCursorRequest {
hidden: boolean }` to hide/show the cursor.
> - Implements `SetCursor` in `server/cmd/api/api/computer.go` (kills
existing `unclutter`, optionally starts new with `DISPLAY`, idle=0,
large jitter).
> - Updates generated OAPI code: models, client methods, server
handlers, routing, and response parsers; embeds updated swagger.
> - **Images**:
> - Adds `unclutter` to runtime packages in
`images/chromium-headful/Dockerfile`.
> - Minor build script: logs image index/name in `build-unikernel.sh`.
> - **Docs**:
> - Adds `images/README.md` with local testing steps and example curl
for the new endpoint.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
51ef3a0. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent bb066c5 commit 18771b2
File tree
6 files changed
+491
-118
lines changed- images
- chromium-headful
- server
- cmd/api/api
- lib/oapi
6 files changed
+491
-118
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
365 | 431 | | |
366 | 432 | | |
367 | 433 | | |
| |||
0 commit comments