@modelstudio/modelstudio-memory-for-openclaw 1.0.9 → 1.0.10

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/index.ts CHANGED
@@ -92,10 +92,14 @@ function assertAllowedKeys(
92
92
 
93
93
  const modelstudioMemoryConfigSchema = {
94
94
  parse(value: unknown): BailianMemoryConfig {
95
- if (!value || typeof value !== "object" || Array.isArray(value)) {
96
- throw new Error("modelstudio-memory-for-openclaw config required");
97
- }
98
- const cfg = value as Record<string, unknown>;
95
+ const raw =
96
+ value && typeof value === "object" && !Array.isArray(value)
97
+ ? (value as Record<string, unknown>)
98
+ : {};
99
+ const cfg =
100
+ "config" in raw && raw.config && typeof raw.config === "object" && !Array.isArray(raw.config)
101
+ ? (raw.config as Record<string, unknown>)
102
+ : raw;
99
103
  assertAllowedKeys(cfg, ALLOWED_KEYS, "modelstudio-memory-for-openclaw config");
100
104
 
101
105
  // apiKey: allow empty at parse time; tools return config prompt when missing
@@ -3,7 +3,7 @@
3
3
  "name": "modelstudio-memory-for-openclaw",
4
4
  "description": "阿里云百炼长期记忆服务,提供自动记忆捕获和召回能力",
5
5
  "kind": "memory",
6
- "version": "1.0.9",
6
+ "version": "1.0.10",
7
7
  "configSchema": {
8
8
  "type": "object",
9
9
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modelstudio/modelstudio-memory-for-openclaw",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "type": "module",
5
5
  "description": "阿里云百炼长期记忆服务 OpenClaw 插件",
6
6
  "license": "Apache-2.0",