Commit Graph

406 Commits

Author SHA1 Message Date
Aveline a1f90da665 fix 2025-11-19 14:56:02 +00:00
Aveline 75778673a5
Merge branch 'dev' into feat/cgo-rpc 2025-11-19 15:31:17 +01:00
Aveline 752fb55799
refactor: OTA (#912)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Adam Shiervani <adam.shiervani@gmail.com>
2025-11-19 15:20:59 +01:00
Siyuan 9eccc225f9 chore: add README.md for native process debugging 2025-11-18 12:11:43 +00:00
Siyuan ddce62438c fix: signal handling in the native process 2025-11-18 12:09:10 +00:00
Siyuan f3b854c407 refactor(cgo-rpc): rewrite the monitor process logic 2025-11-18 11:56:51 +00:00
Siyuan 9c0ac4e3d0 fix: multiple goroutines issues 2025-11-18 11:30:44 +00:00
Siyuan 6dee8a3e24 feat: add process ID to logger 2025-11-18 11:19:18 +00:00
Siyuan 61dcd77313 feat: add logger to restartProcess 2025-11-18 10:53:17 +00:00
Siyuan d84eb56c21 feat: allow to override max restart attempts 2025-11-18 10:47:58 +00:00
Siyuan 64ec70d030 feat: cancel all ongoing requests when closing the gRPC client 2025-11-18 10:08:54 +00:00
Siyuan 9c9c085690 chore: move setStream to handleEventStream 2025-11-18 09:39:02 +00:00
Nitish Agarwal d49e2680d0
fix: show HDMI overlays in fullscreen mode (#974) 2025-11-17 14:28:28 +01:00
Nitish Agarwal e293edb069
fix: normalize Unicode characters in paste modal for proper detection (#976) 2025-11-17 10:15:03 +01:00
Siyuan 470fcf4d64 fix: protect proxy methods from nil client 2025-11-13 16:43:59 +00:00
Siyuan 577424b236 fix: event may be nil 2025-11-13 16:13:18 +00:00
Siyuan b3a8d84770 add a simple README for the native package 2025-11-13 15:57:13 +00:00
Siyuan 953b9ded30 feat: simplify failsafe mode for native proxy 2025-11-13 15:50:22 +00:00
Siyuan 21641ffda5 chore: move generated methods to separate files 2025-11-13 15:02:30 +00:00
Siyuan 6e9d846471 feat: panic on max restart attempts 2025-11-13 14:29:55 +00:00
Siyuan afd8ab75bc reconfigure display on native restart 2025-11-13 14:24:52 +00:00
Siyuan 91d3b47ec3 clean up code 2025-11-13 12:56:05 +00:00
Adam Shiervani b074462ee7
feat: wait for channel to open before triggering initial state updates (#963) 2025-11-13 10:48:03 +01:00
Siyuan d6c97d17ef fix: event handler 2025-11-12 15:56:48 +00:00
Siyuan a494f2f15f feat: add env utils 2025-11-12 15:48:21 +00:00
Siyuan ac9999171b feat: add gdbserver support for native code debugging 2025-11-12 15:37:16 +00:00
Siyuan db53e89df1 chore: add vscode configuration for c development 2025-11-12 14:48:02 +00:00
Siyuan 2f868bc36d dead simple dual build target POC 2025-11-12 14:16:53 +00:00
Siyuan bca9afd1d7 first working POC 2025-11-12 11:53:06 +00:00
Siyuan ffc26ac4e7 wip: move cgo to separate process 2025-11-11 16:17:07 +00:00
Aveline 5fb4c629dd
feat: failsafe mode (#952)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Adam Shiervani <adam.shiervani@gmail.com>
Co-authored-by: Marc Brooks <IDisposable@gmail.com>
2025-11-11 13:13:42 +01:00
Aveline cf629bed46
feat: add remote IP address to connection stats sidebar (#944) 2025-11-11 12:00:37 +01:00
Marc Brooks 31ea366e51
chore: upgrade UI packages (except vite) (#954) 2025-11-10 14:53:18 +01:00
Marc Brooks 7f2dcc84b4
fix: don't reload page if we didn't attempt an upgrade. (#955) 2025-11-10 12:58:57 +01:00
Marc Brooks 6e1b84f39b
chore: clean up logger messaging 2025-11-07 13:21:38 +01:00
tadic-luka 36f06a064a
feat: add web route for sending WOL package to given mac addr (#945)
* feat: add web route for sending WOL package to given mac addr

```

adds a new route /device/send-wol/:mac-addr to send the magic WOL package
to the specified mac-addr.
Method is POST and is protected.

Useful for custom wake up scripts: example is sending HTTP request through iOS shortcut

Test plan:
calling the API with curl
```
$ curl -X POST   http://<jetkvm-ip>/device/send-wol/xx:xx:xx:xx:xx:xx
WOL sent to xx:xx:xx:xx:xx:xx
```

and observing the magic packet on my laptop/PC:
```
$ ncat -u -l 9 -k | xxd
00000000: ffff ffff ffff d050 9978 a620 d050 9978  .......P.x. .P.x
00000010: a620 d050 9978 a620 d050 9978 a620 d050  . .P.x. .P.x. .P
00000020: 9978 a620 d050 9978 a620 d050 9978 a620  .x. .P.x. .P.x.
00000030: d050 9978 a620 d050 9978 a620 d050 9978  .P.x. .P.x. .P.x
00000040: a620 d050 9978 a620 d050 9978 a620 d050  . .P.x. .P.x. .P
00000050: 9978 a620 d050 9978 a620 d050 9978 a620  .x. .P.x. .P.x.
```

calling the api with invalid mac addr returns HTTP 400 error
```
$ curl -X POST -v http://<jetkvm-ip>/device/send-wol/abcd
...
* Request completely sent off
< HTTP/1.1 400 Bad Request
...
...
Invalid mac address provided

* Resolve golint complaint

---------

Co-authored-by: Marc Brooks <IDisposable@gmail.com>
2025-11-06 21:39:22 +01:00
Adam Shiervani 5f15d8b2f6
refactor: More robust handling of jsonrpc calls (#915)
Co-authored-by: Marc Brooks <IDisposable@gmail.com>
2025-11-06 11:12:19 +01:00
Aveline 28919bf37c
fix: await sleep needs to be called inside async function (#946) 2025-11-05 13:25:13 -06:00
Marc Brooks 4090592112
chore: add delay before forced page-reload (#916) 2025-11-04 15:12:03 +01:00
dependabot[bot] 1d1e58f036
build(deps): bump github.com/prometheus/common from 0.66.1 to 0.67.2 (#932)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:29:20 +01:00
dependabot[bot] 09ddd21610
build(deps): bump github.com/go-co-op/gocron/v2 from 2.16.6 to 2.17.0 (#933)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:29:13 +01:00
dependabot[bot] 10c4c959a8
build(deps): bump react-router from 7.9.4 to 7.9.5 in /ui (#931)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:27:14 +01:00
dependabot[bot] 69b7682002
build(deps-dev): bump @eslint/compat from 1.4.0 to 1.4.1 in /ui (#924)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:27:03 +01:00
dependabot[bot] 92758c6337
build(deps-dev): bump @eslint/js from 9.38.0 to 9.39.0 in /ui (#936)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:26:36 +01:00
dependabot[bot] 2cde2c0ecb
build(deps): bump github.com/pion/webrtc/v4 from 4.1.4 to 4.1.6 (#927)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:25:57 +01:00
dependabot[bot] 6eb842885d
build(deps): bump github.com/coreos/go-oidc/v3 from 3.15.0 to 3.16.0 (#930)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:25:40 +01:00
dependabot[bot] bc1bc53fb2
build(deps): bump golang.org/x/net from 0.44.0 to 0.46.0 (#929)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:25:32 +01:00
dependabot[bot] cdffb3e32a
build(deps): bump actions/setup-node from 5 to 6 (#921)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:25:20 +01:00
dependabot[bot] 362540d83d
build(deps): bump actions/upload-artifact from 4 to 5 (#920)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:25:14 +01:00
dependabot[bot] 57c9cf324d
build(deps): bump github.com/prometheus/procfs from 0.17.0 to 0.19.2 (#925)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-02 14:23:21 +01:00