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.

697 B
Raw Blame
import { hasReachedAppVersion } from './app-version'

// v1.4.214 is the first stable release containing the SQLite profile cutover.
export const SQLITE_PROFILE_RELEASE_FLOOR = '1.4.214'

export function profileStateBuildCompatibilityError(
  currentVersion: string,
  targetVersion: string
): string | null {
  if (
    !hasReachedAppVersion(currentVersion, SQLITE_PROFILE_RELEASE_FLOOR) ||
    hasReachedAppVersion(targetVersion, SQLITE_PROFILE_RELEASE_FLOOR)
  ) {
    return null
  }
  return 'This build predates SQLite profile storage. Quit Orca and run the current CLI’s “orca profile state rollback --latest-json --profile-id <id>” for each profile before installing it manually.'
}