herdr-remote-relay 0.3.20 → 0.3.21
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.
|
@@ -185,6 +185,8 @@ export interface ServerUpdateStatusMessage {
|
|
|
185
185
|
latest: string;
|
|
186
186
|
updateAvailable: boolean;
|
|
187
187
|
restartPending: boolean;
|
|
188
|
+
/** The workstation has `herdr-remote update`, which installs and restarts in one step. */
|
|
189
|
+
updateCommand: boolean;
|
|
188
190
|
}
|
|
189
191
|
/** The workstation re-read its terminal font; sent to every window. */
|
|
190
192
|
export interface ServerTerminalFontMessage {
|
|
@@ -16,7 +16,7 @@ type Unchecked<T> = {
|
|
|
16
16
|
export declare function broadcastAgentStatus(relay: RelayContext, host: RelayHost, message: Unchecked<HostAgentStatusMessage>): void;
|
|
17
17
|
/**
|
|
18
18
|
* Whether the workstation runs the newest herdr-remote, for every window on
|
|
19
|
-
* it. Only version strings and
|
|
19
|
+
* it. Only version strings and three flags pass: this ends up as text in the
|
|
20
20
|
* browser, and the host is not the relay's to trust.
|
|
21
21
|
*/
|
|
22
22
|
export declare function broadcastUpdateStatus(relay: RelayContext, host: RelayHost, message: Unchecked<HostUpdateStatusMessage>): void;
|
|
@@ -51,7 +51,7 @@ export function broadcastAgentStatus(relay, host, message) {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Whether the workstation runs the newest herdr-remote, for every window on
|
|
54
|
-
* it. Only version strings and
|
|
54
|
+
* it. Only version strings and three flags pass: this ends up as text in the
|
|
55
55
|
* browser, and the host is not the relay's to trust.
|
|
56
56
|
*/
|
|
57
57
|
export function broadcastUpdateStatus(relay, host, message) {
|
|
@@ -67,6 +67,7 @@ export function broadcastUpdateStatus(relay, host, message) {
|
|
|
67
67
|
latest,
|
|
68
68
|
updateAvailable: message.updateAvailable === true,
|
|
69
69
|
restartPending: message.restartPending === true,
|
|
70
|
+
updateCommand: message.updateCommand === true,
|
|
70
71
|
};
|
|
71
72
|
host.updateStatus = payload;
|
|
72
73
|
broadcastToClients(relay, host, () => payload);
|