( debug: boolean, existingConfig?: ProjectConfig, )
| 210 | } |
| 211 | |
| 212 | function getWorkflowOptions( |
| 213 | debug: boolean, |
| 214 | existingConfig?: ProjectConfig, |
| 215 | ): WorkflowManifestEntry[] { |
| 216 | const manifest = loadManifest(); |
| 217 | const config = getConfig(); |
| 218 | |
| 219 | const predicateContext = { |
| 220 | runtime: 'mcp' as const, |
| 221 | config: { |
| 222 | ...config, |
| 223 | ...existingConfig, |
| 224 | debug, |
| 225 | }, |
| 226 | runningUnderXcode: false, |
| 227 | }; |
| 228 | |
| 229 | return Array.from(manifest.workflows.values()) |
| 230 | .filter((workflow) => !WORKFLOW_EXCLUDES.has(workflow.id)) |
| 231 | .filter((workflow) => isWorkflowEnabledForRuntime(workflow, predicateContext)) |
| 232 | .sort((left, right) => left.id.localeCompare(right.id)); |
| 233 | } |
| 234 | |
| 235 | function getRecommendedWorkflowIds( |
| 236 | workflows: WorkflowManifestEntry[], |
no test coverage detected