Fresh history cut from cynarAI/evoo antigravity-handoff/project-timeline (Voice First + project timeline). Brand docs/titles as evOo; keep @rakazo/* packages as tech debt. Excludes node_modules, caches, secrets, voice blobs.
17 lines
449 B
TypeScript
17 lines
449 B
TypeScript
import type { PrismaClient } from "./client.js";
|
|
|
|
export function findSpaceMemoryConfig(
|
|
prisma: Pick<PrismaClient, "spaceMemoryConfig">,
|
|
spaceId: string,
|
|
) {
|
|
return prisma.spaceMemoryConfig.findUnique({ where: { spaceId } });
|
|
}
|
|
|
|
export function effectiveMemoryScope(
|
|
botScope: string | null,
|
|
defaultScope: string,
|
|
): "isolated" | "shared" {
|
|
const scope = botScope ?? defaultScope;
|
|
return scope === "shared" ? "shared" : "isolated";
|
|
}
|