Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

596 B
Raw Blame
import { createGenerationStore, type GenerationStore } from './generation-store'
import { createExpoGenerationFileSystem } from './generation-store-file-system'

let processStore: GenerationStore | null = null

// Share one store queue across native callers so host removal cannot interleave with generation/index/failure-log writes.
export function processGenerationStore(): GenerationStore {
  processStore ??= createGenerationStore({ fileSystem: createExpoGenerationFileSystem() })
  return processStore
}

export function resetProcessGenerationStoreForTests(): void {
  processStore = null
}