Computer use for the Pi coding agent — Windows apps, browsers and desktops through native UI trees, screenshots and real input.
TypeScript accessibilityagent-toolsai-agentbrowser-automationcomputer-usecuadesktop-automationelectronpipi-coding-agentpi-extensionpi-packageplaywrighttypescriptui-automationvisionwebview2windowswindows-automationwsl
import { expect, test } from "vitest";
import { localRunner } from "../src/runner.ts";
import { prepareWindowsTsx } from "../src/windows-tsx.ts";
test("cancelling before loader preparation does not start an installer", async () => {
let started = false;
const runner = { ...localRunner(), run: async () => { started = true; return "file:///C:/loader.mjs"; } };
await expect(prepareWindowsTsx(runner, AbortSignal.abort())).rejects.toThrow();
expect(started).toBe(false);
});