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.

541 B
Raw Blame
export function buildFreshShellProbeInputSequence(command: string): readonly string[] {
  // Avoid startup Ctrl+C on ConPTY: literal ^C can corrupt the next PowerShell command.
  return [command]
}

export function buildSettledShellProbeInputSequence(
  command: string,
  platform: NodeJS.Platform = process.platform
): readonly string[] {
  // Ctrl+U is POSIX-only; send native Windows Ctrl+C separately after readiness so ConPTY cannot join it to command input.
  return platform === 'win32' ? ['\x03', command] : ['\x03\x15', command]
}