(tool: ToolManifestEntry, ctx: PredicateContext)
| 59 | * Checks both availability flag and all predicates. |
| 60 | */ |
| 61 | export function isToolExposedForRuntime(tool: ToolManifestEntry, ctx: PredicateContext): boolean { |
| 62 | // Check availability flag first |
| 63 | if (!isToolAvailableForRuntime(tool, ctx.runtime)) { |
| 64 | return false; |
| 65 | } |
| 66 | |
| 67 | // Then check predicates |
| 68 | return evalPredicates(tool.predicates, ctx); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Check if a tool within a workflow is exposed. |
no test coverage detected