fix(memory): initialize candidate schema on admin bootstrap
memind_adm CI / Test, build, and release script checks (push) Successful in 24s

This commit is contained in:
john
2026-07-21 22:55:19 +08:00
parent 2f78fbb436
commit 40fe362489
3 changed files with 63 additions and 2 deletions
@@ -0,0 +1,14 @@
import { importMemind } from './lib-path.mjs';
export async function initializePersonalMemoryCandidateStore(
pool,
{ importMemindModule = importMemind } = {},
) {
const {
createPersonalMemoryCandidateStore,
ensurePersonalMemoryCandidateSchema,
} = await importMemindModule('memory-v2-personal-store.mjs');
await ensurePersonalMemoryCandidateSchema(pool);
return createPersonalMemoryCandidateStore(pool);
}