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.

500 B
Raw Blame
type LaunchSource = 'pairing-link' | 'notification'

const launchIntent = { discarded: false, consumedSources: new Set<LaunchSource>() }

export function consumeInitialLaunchIntent(
  source: LaunchSource
): { readonly discarded: boolean } | null {
  if (launchIntent.discarded || launchIntent.consumedSources.has(source)) {
    return null
  }
  launchIntent.consumedSources.add(source)
  return launchIntent
}

export function discardInitialLaunchIntent(): void {
  launchIntent.discarded = true
}