MCPcopy Create free account
hub / github.com/EvoMap/evolver / getWorkspaceRoot

Function getWorkspaceRoot

src/gep/paths.js:151–163  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149}
150
151function getWorkspaceRoot() {
152 if (process.env.OPENCLAW_WORKSPACE) {
153 return process.env.OPENCLAW_WORKSPACE;
154 }
155
156 const repoRoot = getRepoRoot();
157 const workspaceDir = path.join(repoRoot, 'workspace');
158 if (fs.existsSync(workspaceDir)) {
159 return workspaceDir;
160 }
161
162 return repoRoot;
163}
164
165function getLogsDir() {
166 return process.env.EVOLVER_LOGS_DIR || path.join(getWorkspaceRoot(), 'logs');

Callers 11

paths.test.jsFile · 0.85
getLogsDirFunction · 0.85
getMemoryDirFunction · 0.85
getGepAssetsDirFunction · 0.85
getSkillsDirFunction · 0.85
getWorkspaceIdFunction · 0.85
skills_monitor.jsFile · 0.85
repairFunction · 0.85
trigger.jsFile · 0.85
lifecycle.jsFile · 0.85
getObserverPathsFunction · 0.85

Calls 1

getRepoRootFunction · 0.85

Tested by

no test coverage detected