Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -0,0 +1,21 @@
import { createSharedStore, type SharedStore } from "@hivegrid/shared-store";
let cachedStore: SharedStore | null = null;
let factory: () => SharedStore = () => createSharedStore({ namespace: "mcp", redisUrl: process.env.REDIS_URL });
export function getMcpSharedStore(): SharedStore {
if (cachedStore === null) {
cachedStore = factory();
}
return cachedStore;
}
export function __setMcpSharedStoreFactoryForTests(next: () => SharedStore): void {
factory = next;
cachedStore = null;
}
export function __resetMcpSharedStoreForTests(): void {
factory = () => createSharedStore({ namespace: "mcp", redisUrl: process.env.REDIS_URL });
cachedStore = null;
}