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.

612 B
Raw Blame
import type { DeviceRole } from "./roles";

const VIEWER_APPS = new Set([
  "files-manager",
  "system-monitor",
  "media-viewer",
  "quicklinks",
  "docs",
  "os-settings",
]);
const OPERATOR_APPS = new Set([
  ...VIEWER_APPS,
  "camoufox-browser",
  "hermes",
  "openclaw",
  "9router",
  "orca",
]);

/** Unknown/runtime apps fail closed for delegated devices until explicitly classified. */
export function appAllowedForRole(appId: string, role: DeviceRole | null): boolean {
  if (role === "owner") return true;
  if (role === "operator") return OPERATOR_APPS.has(appId);
  return VIEWER_APPS.has(appId);
}