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.

779 B
Raw Blame
export type RuntimeBrowserServerPlacement = Readonly<{ kind: 'server' }>

export type RuntimeBrowserClientPlacement = Readonly<{
  kind: 'client'
  browserHostClientId: string
  browserHostGeneration: number
  pageHostGeneration: number
}>

export type RuntimeBrowserPlacement = RuntimeBrowserServerPlacement | RuntimeBrowserClientPlacement

export function sameRuntimeBrowserPlacement(
  left: RuntimeBrowserPlacement,
  right: RuntimeBrowserPlacement
): boolean {
  return (
    left.kind === right.kind &&
    (left.kind === 'server' ||
      (right.kind === 'client' &&
        left.browserHostClientId === right.browserHostClientId &&
        left.browserHostGeneration === right.browserHostGeneration &&
        left.pageHostGeneration === right.pageHostGeneration))
  )
}