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

Function getSessionScope

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

Source from the content-addressed store, hash-verified

175}
176
177function getSessionScope() {
178 const raw = String(process.env.EVOLVER_SESSION_SCOPE || '').trim();
179 if (!raw) return null;
180 const safe = raw.replace(/[^a-zA-Z0-9_\-\.]/g, '_').slice(0, 128);
181 if (!safe || /^\.{1,2}$/.test(safe) || /\.\./.test(safe)) return null;
182 return safe;
183}
184
185function getEvolutionDir() {
186 const baseDir = process.env.EVOLUTION_DIR || path.join(getMemoryDir(), 'evolution');

Callers 5

paths.test.jsFile · 0.85
legacyGepAssetsDirFunction · 0.85
getEvolutionDirFunction · 0.85
getGepAssetsDirFunction · 0.85
getAgentSessionsDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected