mirror of
https://github.com/stablyai/orca.git
synced 2026-10-31 17:17:38 +00:00
* fix(setup): let repos gate agent startup * test(setup): update runner call expectations
12 lines
483 B
TypeScript
12 lines
483 B
TypeScript
import type { SetupAgentStartupPolicy } from './orca-yaml-hook-types'
|
|
|
|
// Why: existing repos keep launching setup and agents side by side unless the user or
|
|
// committed project config requires setup to finish first.
|
|
export const DEFAULT_SETUP_AGENT_STARTUP_POLICY: SetupAgentStartupPolicy = 'start-immediately'
|
|
|
|
export function shouldWaitForSetupBeforeAgentStartup(
|
|
...policies: (SetupAgentStartupPolicy | undefined)[]
|
|
): boolean {
|
|
return policies.includes('wait-for-setup')
|
|
}
|