Orkas is an open-source (MIT), local-first AI team for your desktop: a Commander turns your goal into to-dos and coordinates 16 built-in specialist agents plus Claude Code, Codex, OpenCode, OpenClaw and Hermes, with projects, scheduled automations and connectors. Free app for macOS & Windows; built-in models or your own keys.
JavaScript agent-collaborationagent-harnessagent-orchestrationagent-teamagent-workflowai-assistantai-automationai-employeeai-productivityai-teamai-workflowautonomous-agentsclaude-code-guiclaude-coworkdesktop-agentlocal-firstmulti-agentmulti-agent-systemself-evolving-agentstask-automation
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import { pathToFileURL } from 'node:url';
import type { Page } from '@playwright/test';
/** Keep report evidence at its original path, but load local HTML through a
* short path that Chromium's Windows file loader can open. The fixture's
* absolute base URL continues to own script, stylesheet and font resolution. */
export async function loadRetainedFilePage(page: Page, retainedFile: string) {
const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'orkas-page-'));
const file = path.join(directory, 'index.html');
try {
fs.copyFileSync(retainedFile, file);
await page.goto(pathToFileURL(file).href);
} finally {
// These fixtures do not reload the document after initial navigation.
// Remove only the two exact entries created above, never a recursive tree.
if (fs.existsSync(file)) fs.unlinkSync(file);
fs.rmdirSync(directory);
}
}