@memtensor/memos-cloud-openclaw-plugin 0.1.7 → 0.1.8-beta.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/LICENSE +201 -201
- package/README.md +155 -145
- package/README_ZH.md +161 -151
- package/clawdbot.plugin.json +164 -160
- package/index.js +285 -259
- package/lib/memos-cloud-api.js +449 -443
- package/moltbot.plugin.json +164 -160
- package/openclaw.plugin.json +164 -160
- package/package.json +46 -46
- package/scripts/sync-version.js +45 -45
package/clawdbot.plugin.json
CHANGED
|
@@ -1,160 +1,164 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "memos-cloud-openclaw-plugin",
|
|
3
|
-
"name": "MemOS Cloud OpenClaw Plugin",
|
|
4
|
-
"description": "MemOS Cloud recall + add memory via lifecycle hooks",
|
|
5
|
-
"version": "0.1.
|
|
6
|
-
"kind": "lifecycle",
|
|
7
|
-
"main": "./index.js",
|
|
8
|
-
"configSchema": {
|
|
9
|
-
"type": "object",
|
|
10
|
-
"properties": {
|
|
11
|
-
"baseUrl": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "MemOS Cloud base URL"
|
|
14
|
-
},
|
|
15
|
-
"apiKey": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "MemOS API Key (Token auth; supports ~/.openclaw/.env, ~/.moltbot/.env, ~/.clawdbot/.env; falls back to process env)"
|
|
18
|
-
},
|
|
19
|
-
"userId": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "MemOS user_id (default: openclaw-user)",
|
|
22
|
-
"default": "openclaw-user"
|
|
23
|
-
},
|
|
24
|
-
"conversationId": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Override conversation_id"
|
|
27
|
-
},
|
|
28
|
-
"conversationIdPrefix": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "conversation_id prefix"
|
|
31
|
-
},
|
|
32
|
-
"conversationIdSuffix": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "conversation_id suffix"
|
|
35
|
-
},
|
|
36
|
-
"conversationSuffixMode": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"enum": [
|
|
39
|
-
"none",
|
|
40
|
-
"counter"
|
|
41
|
-
],
|
|
42
|
-
"default": "none"
|
|
43
|
-
},
|
|
44
|
-
"resetOnNew": {
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"default": true
|
|
47
|
-
},
|
|
48
|
-
"queryPrefix": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "Prefix added to search queries"
|
|
51
|
-
},
|
|
52
|
-
"maxQueryChars": {
|
|
53
|
-
"type": "integer",
|
|
54
|
-
"description": "Max chars for search query"
|
|
55
|
-
},
|
|
56
|
-
"recallEnabled": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"default": true
|
|
59
|
-
},
|
|
60
|
-
"recallGlobal": {
|
|
61
|
-
"type": "boolean",
|
|
62
|
-
"default": true
|
|
63
|
-
},
|
|
64
|
-
"addEnabled": {
|
|
65
|
-
"type": "boolean",
|
|
66
|
-
"default": true
|
|
67
|
-
},
|
|
68
|
-
"captureStrategy": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"enum": [
|
|
71
|
-
"last_turn",
|
|
72
|
-
"full_session"
|
|
73
|
-
],
|
|
74
|
-
"default": "last_turn"
|
|
75
|
-
},
|
|
76
|
-
"maxMessageChars": {
|
|
77
|
-
"type": "integer",
|
|
78
|
-
"description": "Max chars per message when adding",
|
|
79
|
-
"default": 20000
|
|
80
|
-
},
|
|
81
|
-
"includeAssistant": {
|
|
82
|
-
"type": "boolean",
|
|
83
|
-
"default": true
|
|
84
|
-
},
|
|
85
|
-
"memoryLimitNumber": {
|
|
86
|
-
"type": "integer",
|
|
87
|
-
"default": 6
|
|
88
|
-
},
|
|
89
|
-
"preferenceLimitNumber": {
|
|
90
|
-
"type": "integer",
|
|
91
|
-
"default": 6
|
|
92
|
-
},
|
|
93
|
-
"includePreference": {
|
|
94
|
-
"type": "boolean",
|
|
95
|
-
"default": true
|
|
96
|
-
},
|
|
97
|
-
"includeToolMemory": {
|
|
98
|
-
"type": "boolean",
|
|
99
|
-
"default": false
|
|
100
|
-
},
|
|
101
|
-
"toolMemoryLimitNumber": {
|
|
102
|
-
"type": "integer",
|
|
103
|
-
"default": 6
|
|
104
|
-
},
|
|
105
|
-
"filter": {
|
|
106
|
-
"type": "object",
|
|
107
|
-
"description": "MemOS search filter"
|
|
108
|
-
},
|
|
109
|
-
"knowledgebaseIds": {
|
|
110
|
-
"type": "array",
|
|
111
|
-
"items": {
|
|
112
|
-
"type": "string"
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"tags": {
|
|
116
|
-
"type": "array",
|
|
117
|
-
"items": {
|
|
118
|
-
"type": "string"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"info": {
|
|
122
|
-
"type": "object",
|
|
123
|
-
"additionalProperties": true
|
|
124
|
-
},
|
|
125
|
-
"agentId": {
|
|
126
|
-
"type": "string"
|
|
127
|
-
},
|
|
128
|
-
"
|
|
129
|
-
"type": "
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
"
|
|
134
|
-
},
|
|
135
|
-
"
|
|
136
|
-
"type": "
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
"
|
|
146
|
-
"type": "
|
|
147
|
-
"default":
|
|
148
|
-
},
|
|
149
|
-
"
|
|
150
|
-
"type": "integer",
|
|
151
|
-
"default":
|
|
152
|
-
},
|
|
153
|
-
"
|
|
154
|
-
"type": "integer",
|
|
155
|
-
"default":
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"id": "memos-cloud-openclaw-plugin",
|
|
3
|
+
"name": "MemOS Cloud OpenClaw Plugin",
|
|
4
|
+
"description": "MemOS Cloud recall + add memory via lifecycle hooks",
|
|
5
|
+
"version": "0.1.8-beta.1",
|
|
6
|
+
"kind": "lifecycle",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"configSchema": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"baseUrl": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "MemOS Cloud base URL"
|
|
14
|
+
},
|
|
15
|
+
"apiKey": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "MemOS API Key (Token auth; supports ~/.openclaw/.env, ~/.moltbot/.env, ~/.clawdbot/.env; falls back to process env)"
|
|
18
|
+
},
|
|
19
|
+
"userId": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "MemOS user_id (default: openclaw-user)",
|
|
22
|
+
"default": "openclaw-user"
|
|
23
|
+
},
|
|
24
|
+
"conversationId": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Override conversation_id"
|
|
27
|
+
},
|
|
28
|
+
"conversationIdPrefix": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "conversation_id prefix"
|
|
31
|
+
},
|
|
32
|
+
"conversationIdSuffix": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "conversation_id suffix"
|
|
35
|
+
},
|
|
36
|
+
"conversationSuffixMode": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"enum": [
|
|
39
|
+
"none",
|
|
40
|
+
"counter"
|
|
41
|
+
],
|
|
42
|
+
"default": "none"
|
|
43
|
+
},
|
|
44
|
+
"resetOnNew": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"default": true
|
|
47
|
+
},
|
|
48
|
+
"queryPrefix": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Prefix added to search queries"
|
|
51
|
+
},
|
|
52
|
+
"maxQueryChars": {
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"description": "Max chars for search query"
|
|
55
|
+
},
|
|
56
|
+
"recallEnabled": {
|
|
57
|
+
"type": "boolean",
|
|
58
|
+
"default": true
|
|
59
|
+
},
|
|
60
|
+
"recallGlobal": {
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": true
|
|
63
|
+
},
|
|
64
|
+
"addEnabled": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": true
|
|
67
|
+
},
|
|
68
|
+
"captureStrategy": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"enum": [
|
|
71
|
+
"last_turn",
|
|
72
|
+
"full_session"
|
|
73
|
+
],
|
|
74
|
+
"default": "last_turn"
|
|
75
|
+
},
|
|
76
|
+
"maxMessageChars": {
|
|
77
|
+
"type": "integer",
|
|
78
|
+
"description": "Max chars per message when adding",
|
|
79
|
+
"default": 20000
|
|
80
|
+
},
|
|
81
|
+
"includeAssistant": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"default": true
|
|
84
|
+
},
|
|
85
|
+
"memoryLimitNumber": {
|
|
86
|
+
"type": "integer",
|
|
87
|
+
"default": 6
|
|
88
|
+
},
|
|
89
|
+
"preferenceLimitNumber": {
|
|
90
|
+
"type": "integer",
|
|
91
|
+
"default": 6
|
|
92
|
+
},
|
|
93
|
+
"includePreference": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"default": true
|
|
96
|
+
},
|
|
97
|
+
"includeToolMemory": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"default": false
|
|
100
|
+
},
|
|
101
|
+
"toolMemoryLimitNumber": {
|
|
102
|
+
"type": "integer",
|
|
103
|
+
"default": 6
|
|
104
|
+
},
|
|
105
|
+
"filter": {
|
|
106
|
+
"type": "object",
|
|
107
|
+
"description": "MemOS search filter"
|
|
108
|
+
},
|
|
109
|
+
"knowledgebaseIds": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": {
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"tags": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"info": {
|
|
122
|
+
"type": "object",
|
|
123
|
+
"additionalProperties": true
|
|
124
|
+
},
|
|
125
|
+
"agentId": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
},
|
|
128
|
+
"multiAgentMode": {
|
|
129
|
+
"type": "boolean",
|
|
130
|
+
"default": false
|
|
131
|
+
},
|
|
132
|
+
"appId": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
"allowPublic": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"default": false
|
|
138
|
+
},
|
|
139
|
+
"allowKnowledgebaseIds": {
|
|
140
|
+
"type": "array",
|
|
141
|
+
"items": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"asyncMode": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"default": true
|
|
148
|
+
},
|
|
149
|
+
"timeoutMs": {
|
|
150
|
+
"type": "integer",
|
|
151
|
+
"default": 5000
|
|
152
|
+
},
|
|
153
|
+
"retries": {
|
|
154
|
+
"type": "integer",
|
|
155
|
+
"default": 1
|
|
156
|
+
},
|
|
157
|
+
"throttleMs": {
|
|
158
|
+
"type": "integer",
|
|
159
|
+
"default": 0
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"additionalProperties": false
|
|
163
|
+
}
|
|
164
|
+
}
|