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 { describe, expect, it } from "vitest";
import { parseSubagentArgs } from "./mso-agent-subagent.mjs";
describe("interactive /spawn argument contract", () => {
it("defaults to one read-only foreground worker", () => {
expect(parseSubagentArgs(["review", "auth"])).toEqual({ objective: "review auth", name: "worker", max_scope: "read" });
});
it("supports explicit name/scope/turn cap without changing the objective", () => {
expect(parseSubagentArgs(["--name", "reviewer", "--scope", "write", "--turns", "8", "fix", "tests"]))
.toEqual({ objective: "fix tests", name: "reviewer", max_scope: "write", max_turns: 8 });
});
it("rejects invalid scope, empty objective, and out-of-range turns", () => {
expect(() => parseSubagentArgs(["--scope", "root", "x"])).toThrow(/usage:/);
expect(() => parseSubagentArgs(["--name", "x"])).toThrow(/usage:/);
expect(() => parseSubagentArgs(["--turns", "99", "x"])).toThrow(/usage:/);
});
});