mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 16:02:32 +00:00
12 lines
581 B
TypeScript
12 lines
581 B
TypeScript
/**
|
|
* Why: a repo reached over SSH runs the Orca CLI through the relay shim, which
|
|
* is always deployed as plain `orca` (Unix) / `orca.cmd` (Windows). The
|
|
* Linux-only `orca-ide` rename — which exists solely to avoid shadowing the
|
|
* GNOME Orca screen reader on a local desktop — must not be applied to those
|
|
* remotes, or `orca-ide claude-teams` lands on a PATH where it does not exist.
|
|
* `connectionId` is the SSH signal; WSL and local stay false.
|
|
*/
|
|
export function repoIsRemote(repo: { connectionId?: string | null }): boolean {
|
|
return Boolean(repo.connectionId)
|
|
}
|