mr-memory 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/index.ts +15 -0
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -137,6 +137,21 @@ const memoryRouterPlugin = {
137
137
  console.log(`\nRun: openclaw mr upload to upload your memories`);
138
138
  });
139
139
 
140
+ // Backward compat: `openclaw mr enable <key>` still works
141
+ mr.command("enable")
142
+ .description("Enable MemoryRouter with a memory key (alias)")
143
+ .argument("<key>", "Your MemoryRouter memory key (mk_xxx)")
144
+ .action(async (key: string) => {
145
+ if (!key.startsWith("mk")) {
146
+ console.error("Invalid key format. Keys start with 'mk' (e.g. mk_xxx)");
147
+ return;
148
+ }
149
+ await api.updatePluginConfig({ key });
150
+ await api.updatePluginEnabled(true);
151
+ console.log(`✓ MemoryRouter enabled. Key: ${key.slice(0, 6)}...${key.slice(-3)}`);
152
+ console.log(`\nRun: openclaw mr upload to upload your memories`);
153
+ });
154
+
140
155
  mr.command("off")
141
156
  .description("Disable MemoryRouter (removes key)")
142
157
  .action(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mr-memory",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "MemoryRouter persistent memory plugin for OpenClaw — your AI remembers every conversation",
5
5
  "type": "module",
6
6
  "keywords": [