( workflows: WorkflowManifestEntry[], ctx: PredicateContext, )
| 119 | * Get auto-include workflows (included when their predicates pass). |
| 120 | */ |
| 121 | export function getAutoIncludeWorkflows( |
| 122 | workflows: WorkflowManifestEntry[], |
| 123 | ctx: PredicateContext, |
| 124 | ): WorkflowManifestEntry[] { |
| 125 | return workflows.filter( |
| 126 | (wf) => wf.selection?.mcp?.autoInclude === true && isWorkflowEnabledForRuntime(wf, ctx), |
| 127 | ); |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Check if a resource is available for the current runtime. |
no test coverage detected