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.

365 B
Raw Blame
/** Longest name a runtime publishes for itself; local writers truncate past it, the RPC contract rejects. */
export const MACHINE_NAME_MAX_LENGTH = 255

/** Blank or invalid values select the detected name. */
export function normalizeMachineName(value: unknown): string {
  return typeof value === 'string' ? value.trim().slice(0, MACHINE_NAME_MAX_LENGTH) : ''
}