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.

547 B
Raw Blame
import { expect, it } from "vitest";
import { capabilityReportedFailure } from "./result-outcome";
it("classifies direct/nested MCP errors and failed processes without guessing from ordinary status data", () => {
  for (const result of [{ isError: true, content: [] }, { result: { isError: true } }, { code: 2, stdout: "", stderr: "failed" }]) expect(capabilityReportedFailure(result)).toBe(true);
  for (const result of [{ code: 404 }, { ok: false }, { result: { content: [] } }, null]) expect(capabilityReportedFailure(result)).toBe(false);
});