Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

694 B
Raw Blame
import {
  Cloud,
  Code,
  File,
  Film,
  Folder,
  Gauge,
  Globe,
  Grid3x3,
  Image,
  Music,
  Settings,
  Sparkles,
  Terminal,
  type LucideIcon,
} from "lucide-react";

// Single source mapping the persisted glyph string → a lucide icon. Keeps the
// stored agent/skill shape JSON-serializable (no component refs in storage).
const MAP: Record<string, LucideIcon> = {
  folder: Folder,
  globe: Globe,
  film: Film,
  image: Image,
  gauge: Gauge,
  settings: Settings,
  code: Code,
  cloud: Cloud,
  music: Music,
  grid: Grid3x3,
  file: File,
  sparkles: Sparkles,
  terminal: Terminal,
};

export function glyphIcon(name: string): LucideIcon {
  return MAP[name] ?? Sparkles;
}