( workflow: WorkflowManifestEntry, runtime: RuntimeKind, )
| 17 | * This checks the availability flag only, not predicates. |
| 18 | */ |
| 19 | export function isWorkflowAvailableForRuntime( |
| 20 | workflow: WorkflowManifestEntry, |
| 21 | runtime: RuntimeKind, |
| 22 | ): boolean { |
| 23 | if (runtime === 'daemon') { |
| 24 | return true; |
| 25 | } |
| 26 | return workflow.availability[runtime]; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Check if a workflow is enabled (visible) for the current runtime context. |
no outgoing calls
no test coverage detected