@livedesk/hub 0.1.61 → 0.1.64
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/package.json +1 -1
- package/src/agents/agent-tool-registry.js +1 -1
- package/src/agents/codex-agent-runtime.js +5 -4
- package/src/auth/workspace-access.js +2 -0
- package/src/live-capture-transition-retry.mjs +25 -10
- package/src/plan-device-access.mjs +100 -0
- package/src/plan-device-access.test.mjs +97 -0
- package/src/pwa-runtime-diagnostic-store.mjs +365 -0
- package/src/remote-hub.js +1036 -407
- package/src/server.js +684 -180
- package/src/transport/relay-hub-control.js +10 -8
|
@@ -404,17 +404,19 @@ export function createHubRelayControl({
|
|
|
404
404
|
env = process.env,
|
|
405
405
|
pairToken,
|
|
406
406
|
onPeerSocket = () => {},
|
|
407
|
-
logEvent = () => {},
|
|
408
|
-
logWarn = () => {},
|
|
409
|
-
connect = options => net.createConnection(options),
|
|
410
|
-
randomBytes = size => crypto.randomBytes(size)
|
|
411
|
-
|
|
407
|
+
logEvent = () => {},
|
|
408
|
+
logWarn = () => {},
|
|
409
|
+
connect = options => net.createConnection(options),
|
|
410
|
+
randomBytes = size => crypto.randomBytes(size),
|
|
411
|
+
retiredPayloadRelayTestOnly = false
|
|
412
|
+
} = {}) {
|
|
412
413
|
const token = requirePairToken(pairToken);
|
|
413
414
|
const roomId = deriveRelayRoomId(token);
|
|
414
415
|
const registrationToken = deriveRelayRegistrationToken(token, roomId);
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
416
|
+
// Product runtime is permanently fail-closed. The private injection keeps
|
|
417
|
+
// dormant protocol tests executable while the retired implementation is
|
|
418
|
+
// removed separately; no environment setting can open a payload socket.
|
|
419
|
+
const enabled = retiredPayloadRelayTestOnly === true;
|
|
418
420
|
const host = safeText(
|
|
419
421
|
env.LIVEDESK_RELAY_HOST
|
|
420
422
|
|| env.LIVEDESK_UDP_RENDEZVOUS_HOST
|