( tool: ToolManifestEntry, workflow: WorkflowManifestEntry, ctx: PredicateContext, )
| 73 | * Both the workflow and tool must be enabled for the tool to be exposed. |
| 74 | */ |
| 75 | export function isToolInWorkflowExposed( |
| 76 | tool: ToolManifestEntry, |
| 77 | workflow: WorkflowManifestEntry, |
| 78 | ctx: PredicateContext, |
| 79 | ): boolean { |
| 80 | // Workflow must be enabled |
| 81 | if (!isWorkflowEnabledForRuntime(workflow, ctx)) { |
| 82 | return false; |
| 83 | } |
| 84 | |
| 85 | // Tool must be exposed |
| 86 | return isToolExposedForRuntime(tool, ctx); |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Filter tools based on exposure rules. |
no test coverage detected