MCPcopy Index your code
hub / github.com/coder/mux / parseRuntimeConfig

Function parseRuntimeConfig

src/cli/workflow.ts:170–184  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

168}
169
170function 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
186function parseThinkingLevel(value: string | undefined): ParsedThinkingInput {
187 if (!value) return DEFAULT_THINKING_LEVEL;

Callers 2

createWorkflowContextFunction · 0.70
runWorkflowFunction · 0.70

Calls 1

parseRuntimeModeAndHostFunction · 0.90

Tested by

no test coverage detected