export const SHELL_BRIDGE_IDENTITY_PATH = '/__sootsim/bridge' export interface ShellBridgeIdentity { schema: 1 bridgePort: number } export function isShellBridgeIdentity(value: unknown): value is ShellBridgeIdentity { if (typeof value !== 'object' || value === null) return false return ( Reflect.get(value, 'schema') === 1 && Number.isInteger(Reflect.get(value, 'bridgePort')) && Reflect.get(value, 'bridgePort') > 0 ) }