@memoryrelay/plugin-memoryrelay-ai 0.6.0 → 0.6.2
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/LICENSE +1 -1
- package/README.md +184 -513
- package/index.ts +587 -300
- package/openclaw.plugin.json +25 -8
- package/package.json +11 -4
package/openclaw.plugin.json
CHANGED
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
"kind": "memory",
|
|
4
4
|
"name": "MemoryRelay AI",
|
|
5
5
|
"description": "AI memory service using MemoryRelay API (api.memoryrelay.net)",
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.6.2",
|
|
7
7
|
"uiHints": {
|
|
8
8
|
"apiKey": {
|
|
9
9
|
"label": "MemoryRelay API Key",
|
|
10
10
|
"sensitive": true,
|
|
11
11
|
"placeholder": "mem_prod_...",
|
|
12
|
-
"help": "API key from memoryrelay.io (or use ${MEMORYRELAY_API_KEY})"
|
|
12
|
+
"help": "API key from memoryrelay.io (or use ${MEMORYRELAY_API_KEY} env var)"
|
|
13
13
|
},
|
|
14
14
|
"agentId": {
|
|
15
15
|
"label": "Agent ID",
|
|
16
16
|
"placeholder": "iris",
|
|
17
|
-
"help": "Unique identifier for this agent in MemoryRelay"
|
|
17
|
+
"help": "Unique identifier for this agent in MemoryRelay (or use ${MEMORYRELAY_AGENT_ID} env var)"
|
|
18
18
|
},
|
|
19
19
|
"apiUrl": {
|
|
20
20
|
"label": "API URL",
|
|
21
21
|
"placeholder": "https://api.memoryrelay.net",
|
|
22
22
|
"advanced": true,
|
|
23
|
-
"help": "MemoryRelay API endpoint"
|
|
23
|
+
"help": "MemoryRelay API endpoint (or use ${MEMORYRELAY_API_URL} env var)"
|
|
24
24
|
},
|
|
25
25
|
"autoCapture": {
|
|
26
26
|
"label": "Auto-Capture",
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"autoRecall": {
|
|
30
30
|
"label": "Auto-Recall",
|
|
31
31
|
"help": "Automatically inject relevant memories into context"
|
|
32
|
+
},
|
|
33
|
+
"excludeChannels": {
|
|
34
|
+
"label": "Exclude Channels",
|
|
35
|
+
"help": "List of channel IDs to skip auto-recall (e.g., ['whatsapp:group_123', 'telegram:456'])",
|
|
36
|
+
"advanced": true
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
"configSchema": {
|
|
@@ -38,12 +43,12 @@
|
|
|
38
43
|
"apiKey": {
|
|
39
44
|
"type": "string",
|
|
40
45
|
"minLength": 1,
|
|
41
|
-
"description": "MemoryRelay API key (
|
|
46
|
+
"description": "MemoryRelay API key (optional, can use MEMORYRELAY_API_KEY env var)"
|
|
42
47
|
},
|
|
43
48
|
"agentId": {
|
|
44
49
|
"type": "string",
|
|
45
50
|
"minLength": 1,
|
|
46
|
-
"description": "Unique agent identifier (
|
|
51
|
+
"description": "Unique agent identifier (optional, can use MEMORYRELAY_AGENT_ID env var or agent name)"
|
|
47
52
|
},
|
|
48
53
|
"apiUrl": {
|
|
49
54
|
"type": "string",
|
|
@@ -59,11 +64,23 @@
|
|
|
59
64
|
},
|
|
60
65
|
"recallLimit": {
|
|
61
66
|
"type": "number",
|
|
62
|
-
"default": 5
|
|
67
|
+
"default": 5,
|
|
68
|
+
"minimum": 1,
|
|
69
|
+
"maximum": 20
|
|
63
70
|
},
|
|
64
71
|
"recallThreshold": {
|
|
65
72
|
"type": "number",
|
|
66
|
-
"default": 0.3
|
|
73
|
+
"default": 0.3,
|
|
74
|
+
"minimum": 0,
|
|
75
|
+
"maximum": 1
|
|
76
|
+
},
|
|
77
|
+
"excludeChannels": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"default": [],
|
|
83
|
+
"description": "List of channel IDs to exclude from auto-recall"
|
|
67
84
|
}
|
|
68
85
|
},
|
|
69
86
|
"required": []
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memoryrelay/plugin-memoryrelay-ai",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "OpenClaw memory plugin for MemoryRelay API - long-term memory with semantic search",
|
|
3
|
+
"version": "0.6.2",
|
|
4
|
+
"description": "OpenClaw memory plugin for MemoryRelay API - long-term memory with semantic search (ENHANCED)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"
|
|
8
|
+
"test": "vitest run",
|
|
9
|
+
"test:watch": "vitest",
|
|
10
|
+
"test:coverage": "vitest run --coverage",
|
|
11
|
+
"postinstall": "node -e \"console.log('\\n⚠️ CONFIGURATION REQUIRED\\n\\nAdd config after installation:\\n\\ncat ~/.openclaw/openclaw.json | jq \\'.plugins.entries.\\\"plugin-memoryrelay-ai\\\".config = {\\\"apiKey\\\": \\\"YOUR_KEY\\\", \\\"agentId\\\": \\\"YOUR_AGENT\\\"}\\' > /tmp/config.json && mv /tmp/config.json ~/.openclaw/openclaw.json\\n\\nOr use environment variables:\\nexport MEMORYRELAY_API_KEY=\\\"mem_prod_...\\\"\\nexport MEMORYRELAY_AGENT_ID=\\\"your-agent\\\"\\n\\nThen restart: openclaw gateway restart\\n\\nGet your API key from: https://memoryrelay.ai\\n')\""
|
|
9
12
|
},
|
|
10
13
|
"keywords": [
|
|
11
14
|
"openclaw",
|
|
@@ -30,10 +33,14 @@
|
|
|
30
33
|
"peerDependencies": {
|
|
31
34
|
"openclaw": ">=2026.2.0"
|
|
32
35
|
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"vitest": "^1.2.0",
|
|
38
|
+
"@vitest/coverage-v8": "^1.2.0"
|
|
39
|
+
},
|
|
33
40
|
"openclaw": {
|
|
34
41
|
"id": "plugin-memoryrelay-ai",
|
|
35
42
|
"extensions": [
|
|
36
|
-
"./"
|
|
43
|
+
"./index.ts"
|
|
37
44
|
]
|
|
38
45
|
},
|
|
39
46
|
"files": [
|