evOo-local/packages/db/src/memory-config.ts
cynarAI 6c7eed7580 Initial clean evOo-local from f00577b
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.
2026-09-20 17:15:16 +02:00

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";
}