()
| 175 | } |
| 176 | |
| 177 | function 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 | |
| 185 | function getEvolutionDir() { |
| 186 | const baseDir = process.env.EVOLUTION_DIR || path.join(getMemoryDir(), 'evolution'); |
no outgoing calls
no test coverage detected