@memoryrelay/plugin-memoryrelay-ai 0.9.8 → 0.10.1
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 +2 -2
- package/openclaw.plugin.json +117 -1
- package/package.json +1 -2
package/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OpenClaw Memory Plugin - MemoryRelay (Single File Version)
|
|
3
|
-
* Version: 0.
|
|
3
|
+
* Version: 0.10.1
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { OpenClawPluginApi } from "openclaw/plugin-sdk";
|
|
@@ -110,7 +110,7 @@ class StatusReporter {
|
|
|
110
110
|
|
|
111
111
|
const DEFAULT_API_URL = "https://api.memoryrelay.net";
|
|
112
112
|
|
|
113
|
-
export default
|
|
113
|
+
export default function plugin(api: OpenClawPluginApi): void {
|
|
114
114
|
const cfg = api.pluginConfig as any;
|
|
115
115
|
|
|
116
116
|
const apiKey = cfg?.apiKey || process.env.MEMORYRELAY_API_KEY;
|
package/openclaw.plugin.json
CHANGED
|
@@ -1,8 +1,124 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "plugin-memoryrelay-ai",
|
|
3
|
+
"kind": "memory",
|
|
4
|
+
"name": "MemoryRelay AI",
|
|
5
|
+
"description": "AI memory service with sessions, decisions, patterns & projects (api.memoryrelay.net)",
|
|
6
|
+
"version": "0.9.6",
|
|
7
|
+
"uiHints": {
|
|
8
|
+
"apiKey": {
|
|
9
|
+
"label": "MemoryRelay API Key",
|
|
10
|
+
"sensitive": true,
|
|
11
|
+
"placeholder": "mem_prod_...",
|
|
12
|
+
"help": "API key from memoryrelay.ai (or use ${MEMORYRELAY_API_KEY} env var)"
|
|
13
|
+
},
|
|
14
|
+
"agentId": {
|
|
15
|
+
"label": "Agent ID",
|
|
16
|
+
"placeholder": "iris",
|
|
17
|
+
"help": "Unique identifier for this agent in MemoryRelay (or use ${MEMORYRELAY_AGENT_ID} env var)"
|
|
18
|
+
},
|
|
19
|
+
"apiUrl": {
|
|
20
|
+
"label": "API URL",
|
|
21
|
+
"placeholder": "https://api.memoryrelay.net",
|
|
22
|
+
"advanced": true,
|
|
23
|
+
"help": "MemoryRelay API endpoint (or use ${MEMORYRELAY_API_URL} env var)"
|
|
24
|
+
},
|
|
25
|
+
"defaultProject": {
|
|
26
|
+
"label": "Default Project",
|
|
27
|
+
"placeholder": "my-api",
|
|
28
|
+
"help": "Default project slug for scoping sessions, decisions, and memories"
|
|
29
|
+
},
|
|
30
|
+
"enabledTools": {
|
|
31
|
+
"label": "Enabled Tools",
|
|
32
|
+
"placeholder": "memory,entity,agent,session,decision,pattern,project,health",
|
|
33
|
+
"advanced": true,
|
|
34
|
+
"help": "Comma-separated list of tool groups to enable (default: all)"
|
|
35
|
+
},
|
|
36
|
+
"autoCapture": {
|
|
37
|
+
"label": "Auto-Capture",
|
|
38
|
+
"help": "Automatically capture important information from conversations"
|
|
39
|
+
},
|
|
40
|
+
"autoRecall": {
|
|
41
|
+
"label": "Auto-Recall",
|
|
42
|
+
"help": "Automatically inject relevant memories into context"
|
|
43
|
+
},
|
|
44
|
+
"excludeChannels": {
|
|
45
|
+
"label": "Exclude Channels",
|
|
46
|
+
"help": "List of channel IDs to skip auto-recall (e.g., ['whatsapp:group_123', 'telegram:456'])",
|
|
47
|
+
"advanced": true
|
|
48
|
+
}
|
|
49
|
+
},
|
|
3
50
|
"configSchema": {
|
|
4
51
|
"type": "object",
|
|
5
52
|
"additionalProperties": false,
|
|
6
|
-
"properties": {
|
|
53
|
+
"properties": {
|
|
54
|
+
"apiKey": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"minLength": 1,
|
|
57
|
+
"description": "MemoryRelay API key (optional, can use MEMORYRELAY_API_KEY env var)"
|
|
58
|
+
},
|
|
59
|
+
"agentId": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"minLength": 1,
|
|
62
|
+
"description": "Unique agent identifier (optional, can use MEMORYRELAY_AGENT_ID env var or agent name)"
|
|
63
|
+
},
|
|
64
|
+
"apiUrl": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"default": "https://api.memoryrelay.net"
|
|
67
|
+
},
|
|
68
|
+
"defaultProject": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "Default project slug for scoping sessions, decisions, and memories"
|
|
71
|
+
},
|
|
72
|
+
"enabledTools": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"description": "Comma-separated tool groups to enable: memory, entity, agent, session, decision, pattern, project, health, or 'all' (default: all)"
|
|
75
|
+
},
|
|
76
|
+
"autoCapture": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"default": false
|
|
79
|
+
},
|
|
80
|
+
"autoRecall": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"default": true
|
|
83
|
+
},
|
|
84
|
+
"recallLimit": {
|
|
85
|
+
"type": "number",
|
|
86
|
+
"default": 5,
|
|
87
|
+
"minimum": 1,
|
|
88
|
+
"maximum": 20
|
|
89
|
+
},
|
|
90
|
+
"recallThreshold": {
|
|
91
|
+
"type": "number",
|
|
92
|
+
"default": 0.3,
|
|
93
|
+
"minimum": 0,
|
|
94
|
+
"maximum": 1
|
|
95
|
+
},
|
|
96
|
+
"excludeChannels": {
|
|
97
|
+
"type": "array",
|
|
98
|
+
"items": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"default": [],
|
|
102
|
+
"description": "List of channel IDs to exclude from auto-recall"
|
|
103
|
+
},
|
|
104
|
+
"debug": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"default": false,
|
|
107
|
+
"description": "Enable debug logging of API calls"
|
|
108
|
+
},
|
|
109
|
+
"verbose": {
|
|
110
|
+
"type": "boolean",
|
|
111
|
+
"default": false,
|
|
112
|
+
"description": "Include request/response bodies in debug logs"
|
|
113
|
+
},
|
|
114
|
+
"maxLogEntries": {
|
|
115
|
+
"type": "number",
|
|
116
|
+
"default": 100,
|
|
117
|
+
"minimum": 10,
|
|
118
|
+
"maximum": 10000,
|
|
119
|
+
"description": "Circular buffer size for in-memory logs"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": []
|
|
7
123
|
}
|
|
8
124
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memoryrelay/plugin-memoryrelay-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "OpenClaw memory plugin for MemoryRelay API - sessions, decisions, patterns, projects & semantic search",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.ts",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"@vitest/coverage-v8": "^1.2.0"
|
|
38
38
|
},
|
|
39
39
|
"openclaw": {
|
|
40
|
-
"id": "plugin-memoryrelay-ai",
|
|
41
40
|
"extensions": [
|
|
42
41
|
"index.ts"
|
|
43
42
|
]
|