mr-memory 1.0.4 → 1.0.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/README.md +4 -4
- package/index.ts +15 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ openclaw plugins install mr-memory
|
|
|
13
13
|
## Setup
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
openclaw mr
|
|
17
|
-
openclaw mr upload
|
|
16
|
+
openclaw mr <your-memory-key> # Get a key at memoryrouter.ai
|
|
17
|
+
openclaw mr upload # Upload workspace + session history
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Commands
|
|
@@ -25,7 +25,7 @@ openclaw mr upload # Upload workspace + sessions
|
|
|
25
25
|
openclaw mr upload --brain ~/.notopenclaw # Upload from a different agent
|
|
26
26
|
openclaw mr off # Disable
|
|
27
27
|
openclaw mr delete # Clear vault
|
|
28
|
-
openclaw mr
|
|
28
|
+
openclaw mr <key> # Enable with key
|
|
29
29
|
```
|
|
30
30
|
|
|
31
31
|
## Upload Options
|
|
@@ -44,7 +44,7 @@ Only direct user-to-AI conversation is stored. Tool use and subagent work are ex
|
|
|
44
44
|
|
|
45
45
|
## Config
|
|
46
46
|
|
|
47
|
-
After `openclaw mr
|
|
47
|
+
After `openclaw mr <key>`, config is stored at:
|
|
48
48
|
|
|
49
49
|
```json
|
|
50
50
|
{
|
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 () => {
|