@livedesk/hub 0.1.49 → 0.1.51
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.
- package/README.md +1 -1
- package/package.json +4 -4
- package/src/agents/agent-manager.js +2 -2
- package/src/agents/agent-permissions.js +2 -2
- package/src/agents/agent-tool-registry.js +36 -36
- package/src/agents/codex-agent-runtime.js +16 -16
- package/src/agents/codex-mcp-server.js +5 -5
- package/src/filesystem/roots.js +20 -20
- package/src/filesystem/shared-folders.js +2 -2
- package/src/live-desk-update.js +9 -9
- package/src/remote-clipboard-contract.mjs +482 -482
- package/src/remote-hub.js +1063 -1035
- package/src/server.js +242 -196
- package/src/settings/effective-device-policy.js +31 -31
- package/src/settings/settings-schema.js +2 -2
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { effectiveDevicePolicy } from './settings-schema.js';
|
|
2
|
-
import { REMOTE_CLIPBOARD_LIMITS } from '../remote-clipboard-contract.mjs';
|
|
1
|
+
import { effectiveDevicePolicy } from './settings-schema.js';
|
|
2
|
+
import { REMOTE_CLIPBOARD_LIMITS } from '../remote-clipboard-contract.mjs';
|
|
3
3
|
|
|
4
|
-
export function buildEffectiveDevicePolicy(settings, { deviceId = '', capabilities = {} } = {}) {
|
|
5
|
-
const policy = effectiveDevicePolicy(settings);
|
|
6
|
-
const clipboardV1 = capabilities.clipboardProtocol === 'livedesk.clipboard.v1';
|
|
7
|
-
const clipboardCommonLimits = clipboardV1
|
|
8
|
-
&& capabilities.sessionBoundSideChannels === true
|
|
9
|
-
&& Number.isSafeInteger(Number(capabilities.clipboardMaxTextBytes))
|
|
10
|
-
&& Number(capabilities.clipboardMaxTextBytes) > 0
|
|
11
|
-
&& Number.isSafeInteger(Number(capabilities.clipboardMaxTotalBytes))
|
|
12
|
-
&& Number(capabilities.clipboardMaxTotalBytes) > 0
|
|
13
|
-
&& Number.isSafeInteger(Number(capabilities.clipboardMaxChunkBytes))
|
|
14
|
-
&& Number(capabilities.clipboardMaxChunkBytes) >= REMOTE_CLIPBOARD_LIMITS.maxChunkBytes;
|
|
15
|
-
const clipboardMaxImageBytes = Number(
|
|
16
|
-
capabilities.clipboardMaxImageBytes ?? capabilities.clipboardMaxPngBytes);
|
|
17
|
-
return {
|
|
4
|
+
export function buildEffectiveDevicePolicy(settings, { deviceId = '', capabilities = {} } = {}) {
|
|
5
|
+
const policy = effectiveDevicePolicy(settings);
|
|
6
|
+
const clipboardV1 = capabilities.clipboardProtocol === 'livedesk.clipboard.v1';
|
|
7
|
+
const clipboardCommonLimits = clipboardV1
|
|
8
|
+
&& capabilities.sessionBoundSideChannels === true
|
|
9
|
+
&& Number.isSafeInteger(Number(capabilities.clipboardMaxTextBytes))
|
|
10
|
+
&& Number(capabilities.clipboardMaxTextBytes) > 0
|
|
11
|
+
&& Number.isSafeInteger(Number(capabilities.clipboardMaxTotalBytes))
|
|
12
|
+
&& Number(capabilities.clipboardMaxTotalBytes) > 0
|
|
13
|
+
&& Number.isSafeInteger(Number(capabilities.clipboardMaxChunkBytes))
|
|
14
|
+
&& Number(capabilities.clipboardMaxChunkBytes) >= REMOTE_CLIPBOARD_LIMITS.maxChunkBytes;
|
|
15
|
+
const clipboardMaxImageBytes = Number(
|
|
16
|
+
capabilities.clipboardMaxImageBytes ?? capabilities.clipboardMaxPngBytes);
|
|
17
|
+
return {
|
|
18
18
|
...policy,
|
|
19
|
-
deviceId: String(deviceId || ''),
|
|
20
|
-
supported: {
|
|
21
|
-
control: capabilities.control !== false,
|
|
22
|
-
clipboardText: clipboardCommonLimits && capabilities.clipboardText === true,
|
|
23
|
-
clipboardImage: clipboardCommonLimits
|
|
24
|
-
&& capabilities.clipboardImage === true
|
|
25
|
-
&& Number.isSafeInteger(clipboardMaxImageBytes)
|
|
26
|
-
&& clipboardMaxImageBytes > 0,
|
|
27
|
-
clipboardFiles: clipboardCommonLimits
|
|
28
|
-
&& capabilities.clipboardFiles === true
|
|
29
|
-
&& Number.isSafeInteger(Number(capabilities.clipboardMaxFiles))
|
|
30
|
-
&& Number(capabilities.clipboardMaxFiles) > 0,
|
|
31
|
-
clipboardCopy: clipboardCommonLimits && capabilities.clipboardCopy === true,
|
|
32
|
-
clipboardPaste: clipboardCommonLimits && capabilities.clipboardPaste === true,
|
|
33
|
-
fileTransfer: capabilities.fileTransfer !== false,
|
|
19
|
+
deviceId: String(deviceId || ''),
|
|
20
|
+
supported: {
|
|
21
|
+
control: capabilities.control !== false,
|
|
22
|
+
clipboardText: clipboardCommonLimits && capabilities.clipboardText === true,
|
|
23
|
+
clipboardImage: clipboardCommonLimits
|
|
24
|
+
&& capabilities.clipboardImage === true
|
|
25
|
+
&& Number.isSafeInteger(clipboardMaxImageBytes)
|
|
26
|
+
&& clipboardMaxImageBytes > 0,
|
|
27
|
+
clipboardFiles: clipboardCommonLimits
|
|
28
|
+
&& capabilities.clipboardFiles === true
|
|
29
|
+
&& Number.isSafeInteger(Number(capabilities.clipboardMaxFiles))
|
|
30
|
+
&& Number(capabilities.clipboardMaxFiles) > 0,
|
|
31
|
+
clipboardCopy: clipboardCommonLimits && capabilities.clipboardCopy === true,
|
|
32
|
+
clipboardPaste: clipboardCommonLimits && capabilities.clipboardPaste === true,
|
|
33
|
+
fileTransfer: capabilities.fileTransfer !== false,
|
|
34
34
|
remoteAudio: capabilities.audio === true || capabilities.remoteAudio === true,
|
|
35
35
|
agent: Array.isArray(capabilities.agentTools) && capabilities.agentTools.length > 0
|
|
36
36
|
}
|
|
@@ -65,7 +65,7 @@ export const DEFAULT_LIVEDESK_SETTINGS = Object.freeze({
|
|
|
65
65
|
openReceivedFolder: false,
|
|
66
66
|
notifyTransferComplete: true,
|
|
67
67
|
allowOverwrite: false,
|
|
68
|
-
defaultReceiveFolder: 'Desktop/
|
|
68
|
+
defaultReceiveFolder: 'Desktop/VuvoDeskFiles',
|
|
69
69
|
maxFileSizeBytes: 1024 * 1024 * 1024,
|
|
70
70
|
allowRemoteAudio: true,
|
|
71
71
|
startAudioMuted: false,
|
|
@@ -76,7 +76,7 @@ export const DEFAULT_LIVEDESK_SETTINGS = Object.freeze({
|
|
|
76
76
|
recordingQuality: 'standard',
|
|
77
77
|
timelapseIntervalSeconds: 10,
|
|
78
78
|
includeRemoteCursor: true,
|
|
79
|
-
captureSaveLocation: '
|
|
79
|
+
captureSaveLocation: 'VuvoDesk Captures',
|
|
80
80
|
captureAutoDelete: 'never'
|
|
81
81
|
},
|
|
82
82
|
agent: {
|