Resolve the parent workspace's runtime mode from the injected MUX_RUNTIME env.
(config: ToolConfiguration)
| 65 | |
| 66 | /** Resolve the parent workspace's runtime mode from the injected MUX_RUNTIME env. */ |
| 67 | function resolveRuntimeMode(config: ToolConfiguration): RuntimeMode | undefined { |
| 68 | const runtimeValue = config.muxEnv?.MUX_RUNTIME; |
| 69 | return runtimeValue != null && Object.values(RUNTIME_MODE).includes(runtimeValue as RuntimeMode) |
| 70 | ? (runtimeValue as RuntimeMode) |
| 71 | : undefined; |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Build dynamic task tool description with runtime-specific workspace visibility |
no outgoing calls
no test coverage detected