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 type { OrkasTestApp } from './orkas';
/** Chat/Agent search journeys own their real indexes, not Library retrieval.
* Keep that unrelated semantic boundary explicitly model-free. */
export async function installEmptyLibrarySearch(app: OrkasTestApp, root: string): Promise<void> {
if (!app.electronApp) throw new Error('Orkas Electron app is unavailable');
await app.electronApp.evaluate((_electron, root) => {
const req = (process as any).mainModule.require.bind((process as any).mainModule);
(globalThis as any).__emptyLibrarySearchQueries = 0;
req(`${root}/src/main/features/kb_embed.ts`)._setEmbedChannelFactoryForTest(() => {
throw new Error('Real embedding is prohibited in the empty Library search fixture');
});
req(`${root}/src/main/features/search/index.ts`).__searchTestHooks.setLibraryContentSearchProvider({
embedQuery: async () => { (globalThis as any).__emptyLibrarySearchQueries++; return [1, 0]; },
searchGlobal: () => [],
listProjects: async () => [],
searchProject: () => [],
});
}, root);
}