From 52150fd95590d2dcc73bf49f4909be946b08b270 Mon Sep 17 00:00:00 2001 From: Michal Date: Sun, 29 Mar 2026 22:42:52 +0100 Subject: [PATCH] fix: add command-debug to LabdBastionMessage protocol types Co-Authored-By: Claude Opus 4.6 (1M context) --- bastion/src/shared/src/protocol/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bastion/src/shared/src/protocol/index.ts b/bastion/src/shared/src/protocol/index.ts index 6670c54..231d84d 100644 --- a/bastion/src/shared/src/protocol/index.ts +++ b/bastion/src/shared/src/protocol/index.ts @@ -111,6 +111,7 @@ export type LabdBastionMessage = | { type: "command-install"; requestId: string; mac: string; hostname: string; disk?: string; role: string; os: string } | { type: "command-forget"; requestId: string; mac: string } | { type: "command-role-update"; requestId: string; mac: string; role: string } + | { type: "command-debug"; requestId: string; mac: string } | { type: "server-shutdown"; reconnectAfter: number }; export type BastionMessageType = BastionMessage["type"]; @@ -125,7 +126,7 @@ const BASTION_MESSAGE_TYPES = new Set([ const LABD_BASTION_MESSAGE_TYPES = new Set([ "bastion-enrolled", "bastion-heartbeat-ack", "command-install", - "command-forget", "command-role-update", "server-shutdown", + "command-forget", "command-role-update", "command-debug", "server-shutdown", ]); export function isBastionMessage(msg: unknown): msg is BastionMessage {