(value: string | undefined)
| 168 | } |
| 169 | |
| 170 | function parseRuntimeConfig(value: string | undefined): RuntimeConfig { |
| 171 | if (!value) return { type: "local" }; |
| 172 | const parsed = parseRuntimeModeAndHost(value); |
| 173 | if (!parsed) { |
| 174 | throw new Error( |
| 175 | `Invalid runtime: '${value}'. Use 'local'. Other runtimes are not supported by mux workflow yet.` |
| 176 | ); |
| 177 | } |
| 178 | if (parsed.mode !== RUNTIME_MODE.LOCAL) { |
| 179 | throw new Error( |
| 180 | `mux workflow currently supports only local runtime. Unsupported runtime: ${parsed.mode}` |
| 181 | ); |
| 182 | } |
| 183 | return { type: "local" }; |
| 184 | } |
| 185 | |
| 186 | function parseThinkingLevel(value: string | undefined): ParsedThinkingInput { |
| 187 | if (!value) return DEFAULT_THINKING_LEVEL; |
no test coverage detected