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.

1.3 KB
Raw Blame

Windows local-side scripts

Load this when the user's desktop is Windows and you are scaffolding the local-side scripts. A bare .sh will not execute there. Either require WSL or Git Bash and point orca.yaml at a launcher such as bash ./scripts/orca-vm/<name>.sh through a .cmd file, or scaffold PowerShell equivalents.

The remote-side commands you run inside the Linux environment stay bash regardless of the desktop OS.

#requires -Version 5
$ErrorActionPreference = 'Stop'
# resolve env→state→fallback; run the provider CLI / ssh the same way;
# capture provider output; build the result object for the chosen mode and write ONE line of JSON to stdout.
# Orca-server mode: @{ schemaVersion=1; pairingCode=$pairingCode; projectRoot=$projectRoot; userData=@{...} }
# SSH mode:        @{ schemaVersion=1; connection=@{ type="ssh"; projectRoot=$projectRoot;
#                     target=@{ label=$label; host=$host; port=$port; username=$user } } }
($result | ConvertTo-Json -Compress -Depth 6)
# progress/errors → Write-Error / the error stream, never stdout.

The doctor's executable-bit check is a POSIX concept and is skipped on Windows, so a script that is unusable on the user's machine for a different reason still has to be caught by the --provision self-test.