livedesk 0.1.222 → 0.1.224

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3829,6 +3829,16 @@ export function createRemoteHub(options = {}) {
3829
3829
  hubAcknowledgedAtEpochMs: Date.now()
3830
3830
  });
3831
3831
  }
3832
+ if (message.type === 'input.error') {
3833
+ emitEvent('RemoteInputError', {
3834
+ deviceId: device.deviceId,
3835
+ inputSeq: Number(message.inputSeq || 0) || 0,
3836
+ inputType: safeString(message.inputType, 48),
3837
+ error: safeString(message.error, 600) || 'remote-input-failed',
3838
+ failedAtEpochMs: Number(message.failedAtEpochMs || 0) || 0,
3839
+ hubAcknowledgedAtEpochMs: Date.now()
3840
+ });
3841
+ }
3832
3842
  return;
3833
3843
  }
3834
3844
  if (state.frameOnly) {
package/hub/src/server.js CHANGED
@@ -73,15 +73,24 @@ function readPositiveIntegerEnv(name, fallback) {
73
73
  }
74
74
 
75
75
  function handleRemoteHubEvent(type, event) {
76
- if (type === 'RemoteInputApplied') {
76
+ if (type === 'RemoteInputApplied') {
77
77
  for (const ws of inputClients) {
78
78
  sendJson(ws, {
79
79
  type: 'RemoteInputApplied',
80
80
  ...event
81
81
  });
82
82
  }
83
- return;
84
- }
83
+ return;
84
+ }
85
+ if (type === 'RemoteInputError') {
86
+ for (const ws of inputClients) {
87
+ sendJson(ws, {
88
+ type: 'RemoteInputError',
89
+ ...event
90
+ });
91
+ }
92
+ return;
93
+ }
85
94
  if (type === 'RemoteDeviceConnected' || type === 'RemoteDeviceDisconnected') {
86
95
  connectedDeviceCount = Number(remoteHub.getStatus({ includeSecrets: false }).connectedDeviceCount || 0);
87
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "livedesk",
3
- "version": "0.1.222",
3
+ "version": "0.1.224",
4
4
  "description": "LiveDesk Hub and client launcher",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "@ffmpeg-installer/ffmpeg": "^1.1.0",
34
- "@livedesk/client": "0.1.126",
34
+ "@livedesk/client": "0.1.127",
35
35
  "@openai/codex-sdk": "0.144.5",
36
36
  "cors": "^2.8.5",
37
37
  "express": "^4.21.2",