@contextableai/openclaw-memory-graphiti 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.ts +4 -3
- package/package.json +1 -1
package/config.ts
CHANGED
|
@@ -55,10 +55,11 @@ function assertAllowedKeys(value: Record<string, unknown>, allowed: string[], la
|
|
|
55
55
|
|
|
56
56
|
export const graphitiMemoryConfigSchema = {
|
|
57
57
|
parse(value: unknown): GraphitiMemoryConfig {
|
|
58
|
-
if (
|
|
59
|
-
throw new Error("openclaw-memory-graphiti config
|
|
58
|
+
if (Array.isArray(value)) {
|
|
59
|
+
throw new Error("openclaw-memory-graphiti config must be an object, not an array");
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
// Accept undefined/null (installer writes no config key) — treat as empty {}
|
|
62
|
+
const cfg = (value && typeof value === "object" ? value : {}) as Record<string, unknown>;
|
|
62
63
|
assertAllowedKeys(
|
|
63
64
|
cfg,
|
|
64
65
|
[
|
package/package.json
CHANGED