Skip to content

armgit / Orkas

Public Imported from GitHub
0

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.

688 B
Raw Blame
/**
 * Release process-wide main-process caches before deleting a per-test
 * workspace. Windows does not allow unlinking SQLite databases while a
 * connection is still open, and search can retain delayed flush timers.
 */
export async function drainMainRuntimeForTest(): Promise<void> {
  // `flushAll` settles deferred chat writes and releases the chat store's
  // SQLite handle, which Windows needs before the workspace can be removed.
  try {
    const searchIndexer = await import('../../src/main/features/search/indexer');
    await searchIndexer.flushAll();
  }
  finally {
    const kbVector = await import('../../src/main/features/kb_vector');
    kbVector.closeAllKb();
  }
}