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.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
import { expect, it, vi } from "vitest";
const device = vi.hoisted(() => vi.fn());
vi.mock("@/lib/auth/device-store", () => ({ getApprovedDevice: device }));
import { liveCapabilityContext } from "./live-authority";
it("preserves and rechecks a delegated web principal after revocation or demotion", async () => {
const context = { principal: "web:owner-device", scope: "exec" as const };
device.mockResolvedValue({ role: "owner" }); expect((await liveCapabilityContext(context, "fs_write")).principal).toBe(context.principal);
device.mockResolvedValue({ role: "operator" }); await expect(liveCapabilityContext(context, "fs_write")).rejects.toThrow(/demoted/);
await expect(liveCapabilityContext(context)).rejects.toThrow(/demoted/);
device.mockResolvedValue(null); await expect(liveCapabilityContext(context, "fs_write")).rejects.toThrow(/revoked/);
});