Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
// @vitest-environment jsdom
import { afterEach, describe, expect, it } from "vitest";
import { isDesktopShell, markDesktopShell } from "./desktop-shell";
const desktop = window as { lingerDesktop?: unknown };
describe("desktop shell", () => {
afterEach(() => {
delete desktop.lingerDesktop;
});
it("leaves the web layout alone in a browser", () => {
const root = document.createElement("html");
markDesktopShell(root);
expect(isDesktopShell()).toBe(false);
expect(root).not.toHaveAttribute("data-desktop-shell");
});
it("marks the page inside the desktop app", () => {
desktop.lingerDesktop = {};
const root = document.createElement("html");
markDesktopShell(root);
expect(isDesktopShell()).toBe(true);
expect(root).toHaveAttribute("data-desktop-shell", "");
});
});