Files
orca/src/cli/host-handler-groups.ts
Neil 02ad6d9671 feat(cli): add orca vm env doctor to check that an environment can run agents (#40120)
* feat(cli): add orca vm env doctor to check a workspace environment

Checks required CLIs (git plus what the repo manifests imply), agent CLIs
and their sign-in, Git fetch and a dry-run push, the orca.yaml setup script
(optionally re-running it with Orca's runner), and free disk. Pass/warn/fail
with --json; checks live in src/main/environment-doctor for runtime reuse.

* fix(env-doctor): ship the doctor modules in the packaged CLI and share the check formatter

* fix(env-doctor): run Git probes in the C locale so folder detection is locale-independent
2026-11-09 00:09:00 -08:00

43 lines
1.1 KiB
TypeScript

import type { HandlerGroup } from './handler-group-manifest'
// The machines Orca reaches: saved hosts and paired environments, the Orca servers it manages on
// them, and recipe VMs.
export const HOST_HANDLER_GROUPS: readonly HandlerGroup[] = [
{
name: 'environment',
keys: [
'host name',
'host list',
'host rm',
'environment add',
'environment list',
'environment show',
'environment rm'
],
load: async () => (await import('./handlers/environment.js')).ENVIRONMENT_HANDLERS
},
{
name: 'managed-server',
keys: [
'environment status',
'environment update',
'environment rollback',
'environment recover',
'environment stop',
'environment cancel-stop',
'environment forget'
],
load: async () => (await import('./handlers/managed-server.js')).MANAGED_SERVER_HANDLERS
},
{
name: 'vm',
keys: ['vm recipe doctor'],
load: async () => (await import('./handlers/vm.js')).VM_HANDLERS
},
{
name: 'vm-env',
keys: ['vm env doctor'],
load: async () => (await import('./handlers/vm-env.js')).VM_ENV_HANDLERS
}
]