feat(mcp): подготовить сервер и доступ к приёмке

This commit is contained in:
Denozordec committed 2026-11-03 03:12:03 +07:00
commit bf3d50e1ff
3835 files changed
+537122

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
/** An explicit missing selection must never fall back to another peer. */
export function selectWgExportPeer<T extends { id?: string; rosId?: string }>(peers: readonly T[], peerId?: string | null): T | undefined {
return peerId == null ? peers[0] : peers.find(peer => peer.id === peerId || peer.rosId === peerId)
}