This commit is contained in:
Oleg Maslov
2026-09-02 10:14:22 +02:00
parent 0c3e2ead3b
commit b20b138fe4
771 changed files with 161561 additions and 9027 deletions

View File

@@ -164,6 +164,7 @@ export async function initialize(): Promise<void> {
_mindCache = new MultiMindCache({
maxOpen: 20,
getMindPath: (workspaceId: string) => _workspaceManager.getMindPath(workspaceId),
allowedRoot: path.join(_dataDir, 'workspaces'),
});
_initialized = true;
@@ -227,7 +228,7 @@ export function getWorkspaceMind(workspaceId: string): WorkspaceMindHandle | nul
export function shutdown(): void {
_workspaceMindLayerCache.clear();
_mindCache.closeAll();
_mindCache?.closeAll();
try { _personalDb?.close(); } catch { /* already closed */ }
_initialized = false;
}