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

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
@@ -376,7 +376,7 @@ const modelstudioMemoryPlugin = {
376
376
  configSchema: modelstudioMemoryConfigSchema,
377
377
 
378
378
  register(api: OpenClawPluginApi) {
379
- const cfg = modelstudioMemoryConfigSchema.parse(api.pluginConfig);
379
+ const cfg = modelstudioMemoryConfigSchema.parse(api.pluginishnConfig);
380
380
  const client = new BailianMemoryClient(
381
381
  cfg.baseUrl,
382
382
  cfg.apiKey,
@@ -726,11 +726,11 @@ const modelstudioMemoryPlugin = {
726
726
 
727
727
  // ========== autoRecall ==========
728
728
  if (cfg.autoRecall) {
729
- api.on("before_agent_start", async (event) => {
729
+ api.on("before_prompt_build", async (event) => {
730
730
  if (!cfg.apiKey) {
731
731
  api.logger.warn("modelstudio-memory: injecting config-required system prompt");
732
732
  return {
733
- systemContext: [
733
+ appendSystemContext: [
734
734
  "<memory-plugin-config-required>",
735
735
  "CRITICAL INSTRUCTION — YOU MUST FOLLOW THIS BEFORE ANYTHING ELSE:",
736
736
  "",
@@ -783,7 +783,7 @@ const modelstudioMemoryPlugin = {
783
783
  `modelstudio-memory: recalled ${memories.length} memories`
784
784
  );
785
785
  return {
786
- systemContext: formatMemoriesContext(memories),
786
+ appendSystemContext: formatMemoriesContext(memories),
787
787
  };
788
788
  }
789
789
  } catch (err) {
@@ -3,7 +3,7 @@
3
3
  "name": "modelstudio-memory-for-openclaw",
4
4
  "description": "阿里云百炼长期记忆服务,提供自动记忆捕获和召回能力",
5
5
  "kind": "memory",
6
- "version": "1.0.10",
6
+ "version": "1.0.12",
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.10",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "description": "阿里云百炼长期记忆服务 OpenClaw 插件",
6
6
  "license": "Apache-2.0",