MCPcopy
hub / github.com/coder/mux / buildExperimentsObject

Function buildExperimentsObject

src/cli/workflow.ts:219–231  ·  view source on GitHub ↗
(experimentIds: readonly string[])

Source from the content-addressed store, hash-verified

217}
218
219function buildExperimentsObject(experimentIds: readonly string[]) {
220 return {
221 programmaticToolCalling: experimentIds.includes(EXPERIMENT_IDS.PROGRAMMATIC_TOOL_CALLING),
222 programmaticToolCallingExclusive: experimentIds.includes(
223 EXPERIMENT_IDS.PROGRAMMATIC_TOOL_CALLING_EXCLUSIVE
224 ),
225 execSubagentHardRestart: experimentIds.includes(EXPERIMENT_IDS.EXEC_SUBAGENT_HARD_RESTART),
226 // Invoking `mux workflow` is an explicit opt-in, so the dynamic-workflows
227 // experiment is enabled implicitly for this invocation (never persisted).
228 dynamicWorkflows: true,
229 workspaceHeartbeats: experimentIds.includes(EXPERIMENT_IDS.WORKSPACE_HEARTBEATS),
230 };
231}
232
233async function disposeWorkflowResources(input: {
234 tempDir: DisposableTempDir;

Callers 1

createWorkflowServiceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected