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

Function writeWorkspaceConfig

src/node/services/tools/task_list.test.ts:41–46  ·  view source on GitHub ↗
(tempDir: string, workspaces: Workspace[])

Source from the content-addressed store, hash-verified

39}
40
41async function writeWorkspaceConfig(tempDir: string, workspaces: Workspace[]): Promise<void> {
42 const config = new Config(tempDir);
43 const cfg = config.loadConfigOrDefault();
44 cfg.projects.set(path.join(tempDir, "project"), { workspaces });
45 await config.saveConfig(cfg);
46}
47
48function buildAgentTask(
49 taskId: string,

Callers 1

task_list.test.tsFile · 0.70

Calls 3

loadConfigOrDefaultMethod · 0.95
saveConfigMethod · 0.95
setMethod · 0.80

Tested by

no test coverage detected