(tool: ToolManifestEntry, runtime: RuntimeKind)
| 48 | * This checks the availability flag only, not predicates. |
| 49 | */ |
| 50 | export function isToolAvailableForRuntime(tool: ToolManifestEntry, runtime: RuntimeKind): boolean { |
| 51 | if (runtime === 'daemon') { |
| 52 | return true; |
| 53 | } |
| 54 | return tool.availability[runtime]; |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Check if a tool is exposed (visible) for the current runtime context. |
no outgoing calls
no test coverage detected