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.

435 B
Raw Blame
import { normalizeTypedName } from './typed-name-normalization'

/** Typed-name normalization makes Build/build collide; reject saves that would make both names unresolvable. */
export function findCollidingEnvironmentName<T extends { name: string }>(
  environments: readonly T[],
  name: string
): T | undefined {
  const key = normalizeTypedName(name)
  return environments.find((entry) => normalizeTypedName(entry.name) === key)
}