MCPcopy Create free account
hub / github.com/buct2012dbl/Dorchestrator / setWorkspace

Method setWorkspace

src/main/graphConfigManager.js:10–24  ·  view source on GitHub ↗
(workspacePath)

Source from the content-addressed store, hash-verified

8 }
9
10 setWorkspace(workspacePath) {
11 if (!workspacePath) {
12 this.configDir = null;
13 this.configPath = null;
14 return;
15 }
16
17 this.configDir = path.join(workspacePath, '.dorchestrator');
18 this.configPath = path.join(this.configDir, 'graph-config.json');
19
20 // Ensure directory exists
21 if (!fs.existsSync(this.configDir)) {
22 fs.mkdirSync(this.configDir, { recursive: true });
23 }
24 }
25
26 saveGraphConfig(agents, edges) {
27 if (!this.configPath) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected