fix(memory): load unconfigured lancedb metadata

This commit is contained in:
Vincent Koc
2026-05-03 01:57:36 -07:00
parent 5ecd01ff94
commit 31e2276fe9
3 changed files with 15 additions and 2 deletions

View File

@@ -84,6 +84,19 @@ describe("memory-lancedb config", () => {
}).toThrow("embedding config must include at least one setting");
});
it("allows missing embedding config in the manifest so setup can discover fields", () => {
const manifestResult = validateJsonSchemaValue({
schema: manifest.configSchema,
cacheKey: "memory-lancedb.manifest.missing-embedding",
value: {},
});
expect(manifestResult.ok).toBe(true);
expect(() => {
memoryConfigSchema.parse({});
}).toThrow("embedding config required");
});
it("rejects empty embedding providers", () => {
expect(() => {
memoryConfigSchema.parse({

View File

@@ -126,7 +126,6 @@
"type": "string"
}
}
},
"required": ["embedding"]
}
}
}