Return the file path for a scope.
(self, scope: MemoryScope)
| 163 | # ------------------------------------------------------------------ |
| 164 | |
| 165 | def _scope_path(self, scope: MemoryScope) -> Path: |
| 166 | """Return the file path for a scope.""" |
| 167 | if scope == MemoryScope.GLOBAL: |
| 168 | return self._base_dir / "global.json" |
| 169 | return self._base_dir / "workspace" / f"{self._workspace_hash}.json" |
| 170 | |
| 171 | def _load(self, scope: MemoryScope) -> MemoryScopeFile: |
| 172 | """Load scope data from disk. Returns empty file if not found.""" |