openclaw-memory-alibaba-local 0.1.6 → 0.1.7

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 CHANGED
@@ -558,7 +558,7 @@ export const memoryConfigSchema = {
558
558
  enableFullContextMemory,
559
559
  enableSelfImprovingMemory,
560
560
  memoryExtractionMethod,
561
- autoRecall: cfg.autoRecall !== false,
561
+ autoRecall: cfg.autoRecall === true,
562
562
  autoCapture: cfg.autoCapture !== false,
563
563
  captureMaxChars: captureMaxChars ?? DEFAULT_CAPTURE_MAX_CHARS,
564
564
  enableMemoryDecay,
package/index.ts CHANGED
@@ -1216,7 +1216,8 @@ const memoryPlugin = {
1216
1216
  name: "openclaw-memory-alibaba-local",
1217
1217
  description:
1218
1218
  "Local LanceDB long-term memory (DashScope-friendly); user_memory_fact / user_memory_preference / user_memory_decision",
1219
- kind: "memory" as const,
1219
+ /** Custom kind: not OpenClaw `PluginKind` union; avoids `plugins.slots.memory` auto-switch on install. */
1220
+ kind: "rds_memory" as "memory",
1220
1221
  configSchema: memoryConfigSchema,
1221
1222
 
1222
1223
  register(api: OpenClawPluginApi) {
@@ -1262,8 +1263,9 @@ const memoryPlugin = {
1262
1263
  api.logger.warn("openclaw-memory-alibaba-local: registerHttpRoute missing — /plugins/memory HTML shell disabled");
1263
1264
  }
1264
1265
 
1265
- // --- Tools: memory_recall, memory_store, memory_forget ---
1266
+ // --- Tools: only when autoRecall (manual recall/store/forget + hook-driven recall share this switch) ---
1266
1267
 
1268
+ if (cfg.autoRecall) {
1267
1269
  api.registerTool(
1268
1270
  (ctx) => ({
1269
1271
  name: "memory_recall",
@@ -1514,6 +1516,11 @@ const memoryPlugin = {
1514
1516
  }),
1515
1517
  { name: "memory_forget" },
1516
1518
  );
1519
+ } else {
1520
+ api.logger.info(
1521
+ "openclaw-memory-alibaba-local: autoRecall is false — memory_recall / memory_store / memory_forget tools not registered",
1522
+ );
1523
+ }
1517
1524
 
1518
1525
  // --- Hooks: before_prompt_build (recall), agent_end (auto-capture) ---
1519
1526
 
@@ -2,6 +2,7 @@
2
2
  "id": "openclaw-memory-alibaba-local",
3
3
  "name": "openclaw-memory-alibaba-local",
4
4
  "description": "Local LanceDB long-term memory; user_memory_*, self_improving_*; DashScope-friendly defaults; table openclaw_memories_alibaba_local.",
5
+ "kind": "rds_memory",
5
6
  "configSchema": {
6
7
  "type": "object",
7
8
  "additionalProperties": false,
@@ -61,7 +62,7 @@
61
62
  "default": "llm",
62
63
  "description": "regex or llm; llm needs apiKey+model (plugin llm and/or openclaw.json bailian + agents.defaults.model)."
63
64
  },
64
- "autoRecall": { "type": "boolean", "default": true },
65
+ "autoRecall": { "type": "boolean", "default": false },
65
66
  "autoCapture": { "type": "boolean", "default": true },
66
67
  "captureMaxChars": { "type": "number", "default": 50000 },
67
68
  "enableMemoryDecay": {
@@ -205,7 +206,7 @@
205
206
  },
206
207
  "autoRecall": {
207
208
  "label": "Auto Recall",
208
- "help": "Inject memories at conversation start"
209
+ "help": "When true: inject memories before each prompt, register memory_recall / memory_store / memory_forget tools. When false (default): no auto recall and no agent tools (gateway admin routes unchanged)."
209
210
  },
210
211
  "autoCapture": {
211
212
  "label": "Auto Capture",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-memory-alibaba-local",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "OpenClaw memory plugin: local LanceDB + DashScope-compatible embeddings",
5
5
  "type": "module",
6
6
  "license": "MIT",