( get: () => AppStoreState, workspaceName = get().currentUser?.workspace ?? "" )
| 31 | // Workspace segment for localStorage cache keys — "" for self-host (keys stay |
| 32 | // shared/unchanged), the workspace name for SaaS (keys are workspace-isolated). |
| 33 | export function getWorkspaceCacheScope( |
| 34 | get: () => AppStoreState, |
| 35 | workspaceName = get().currentUser?.workspace ?? "" |
| 36 | ): string { |
| 37 | return workspaceCacheScope(get().isSaaSMode(), workspaceName); |
| 38 | } |
| 39 | |
| 40 | export function readJson<T>(key: string, fallback: T): T { |
| 41 | try { |
no test coverage detected