@memtensor/memos-cloud-openclaw-plugin 0.1.8-beta.1 → 0.1.8-beta.10

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.
@@ -1,164 +1,169 @@
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
- }
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.8",
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
+ "maxItemChars": {
82
+ "type": "integer",
83
+ "description": "Max chars per memory item when injecting prompt",
84
+ "default": 8000
85
+ },
86
+ "includeAssistant": {
87
+ "type": "boolean",
88
+ "default": true
89
+ },
90
+ "memoryLimitNumber": {
91
+ "type": "integer",
92
+ "default": 6
93
+ },
94
+ "preferenceLimitNumber": {
95
+ "type": "integer",
96
+ "default": 6
97
+ },
98
+ "includePreference": {
99
+ "type": "boolean",
100
+ "default": true
101
+ },
102
+ "includeToolMemory": {
103
+ "type": "boolean",
104
+ "default": false
105
+ },
106
+ "toolMemoryLimitNumber": {
107
+ "type": "integer",
108
+ "default": 6
109
+ },
110
+ "filter": {
111
+ "type": "object",
112
+ "description": "MemOS search filter"
113
+ },
114
+ "knowledgebaseIds": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string"
118
+ }
119
+ },
120
+ "tags": {
121
+ "type": "array",
122
+ "items": {
123
+ "type": "string"
124
+ }
125
+ },
126
+ "info": {
127
+ "type": "object",
128
+ "additionalProperties": true
129
+ },
130
+ "agentId": {
131
+ "type": "string"
132
+ },
133
+ "multiAgentMode": {
134
+ "type": "boolean",
135
+ "default": false
136
+ },
137
+ "appId": {
138
+ "type": "string"
139
+ },
140
+ "allowPublic": {
141
+ "type": "boolean",
142
+ "default": false
143
+ },
144
+ "allowKnowledgebaseIds": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "string"
148
+ }
149
+ },
150
+ "asyncMode": {
151
+ "type": "boolean",
152
+ "default": true
153
+ },
154
+ "timeoutMs": {
155
+ "type": "integer",
156
+ "default": 5000
157
+ },
158
+ "retries": {
159
+ "type": "integer",
160
+ "default": 1
161
+ },
162
+ "throttleMs": {
163
+ "type": "integer",
164
+ "default": 0
165
+ }
166
+ },
167
+ "additionalProperties": false
168
+ }
169
+ }
package/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@memtensor/memos-cloud-openclaw-plugin",
3
- "version": "0.1.8-beta.1",
4
- "description": "OpenClaw lifecycle plugin for MemOS Cloud (add + recall memory)",
5
- "scripts": {
6
- "sync-version": "node scripts/sync-version.js",
7
- "version": "npm run sync-version && git add openclaw.plugin.json moltbot.plugin.json clawdbot.plugin.json",
8
- "publish-beta": "npm publish --tag beta",
9
- "publish-beta-patch": "npm version prepatch --preid=beta && npm publish --tag beta",
10
- "publish-latest": "npm version $(node -p \"require('./package.json').version.split('-')[0]\") && npm publish",
11
- "publish-latest-patch": "npm version patch && npm publish"
12
- },
13
- "keywords": [
14
- "memos",
15
- "memos-cloud",
16
- "openclaw",
17
- "plugin",
18
- "memory"
19
- ],
20
- "homepage": "https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin#readme",
21
- "bugs": {
22
- "url": "https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin/issues"
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin.git"
27
- },
28
- "type": "module",
29
- "author": "MemTensor",
30
- "license": "MIT",
31
- "openclaw": {
32
- "extensions": [
33
- "./index.js"
34
- ]
35
- },
36
- "clawdbot": {
37
- "extensions": [
38
- "./index.js"
39
- ]
40
- },
41
- "moltbot": {
42
- "extensions": [
43
- "./index.js"
44
- ]
45
- }
46
- }
1
+ {
2
+ "name": "@memtensor/memos-cloud-openclaw-plugin",
3
+ "version": "0.1.8-beta.10",
4
+ "description": "OpenClaw lifecycle plugin for MemOS Cloud (add + recall memory)",
5
+ "scripts": {
6
+ "sync-version": "node scripts/sync-version.js",
7
+ "version": "npm run sync-version && git add openclaw.plugin.json moltbot.plugin.json clawdbot.plugin.json",
8
+ "publish-beta": "npm publish --tag beta",
9
+ "publish-beta-patch": "npm version prepatch --preid=beta && npm publish --tag beta",
10
+ "publish-latest": "npm version $(node -p \"require('./package.json').version.split('-')[0]\") && npm publish",
11
+ "publish-latest-patch": "npm version patch && npm publish"
12
+ },
13
+ "keywords": [
14
+ "memos",
15
+ "memos-cloud",
16
+ "openclaw",
17
+ "plugin",
18
+ "memory"
19
+ ],
20
+ "homepage": "https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin#readme",
21
+ "bugs": {
22
+ "url": "https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin/issues"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/MemTensor/MemOS-Cloud-OpenClaw-Plugin.git"
27
+ },
28
+ "type": "module",
29
+ "author": "MemTensor",
30
+ "license": "MIT",
31
+ "openclaw": {
32
+ "extensions": [
33
+ "./index.js"
34
+ ]
35
+ },
36
+ "clawdbot": {
37
+ "extensions": [
38
+ "./index.js"
39
+ ]
40
+ },
41
+ "moltbot": {
42
+ "extensions": [
43
+ "./index.js"
44
+ ]
45
+ }
46
+ }
@@ -1,45 +1,45 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import { fileURLToPath } from 'url';
4
-
5
- const __filename = fileURLToPath(import.meta.url);
6
- const __dirname = path.dirname(__filename);
7
-
8
- // Read the updated package.json to get the new version
9
- const packageJsonPath = path.resolve(__dirname, '../package.json');
10
- const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
11
- const newVersion = packageJson.version;
12
-
13
- console.log(`Syncing version to ${newVersion}...`);
14
-
15
- const filesToUpdate = [
16
- 'openclaw.plugin.json',
17
- 'moltbot.plugin.json',
18
- 'clawdbot.plugin.json'
19
- ];
20
-
21
- filesToUpdate.forEach(fileName => {
22
- const filePath = path.resolve(__dirname, '..', fileName);
23
-
24
- if (fs.existsSync(filePath)) {
25
- try {
26
- const content = JSON.parse(fs.readFileSync(filePath, 'utf8'));
27
-
28
- if (content.version !== newVersion) {
29
- content.version = newVersion;
30
- // Write back with 2 spaces indentation and a newline at the end
31
- fs.writeFileSync(filePath, JSON.stringify(content, null, 2) + '\n', 'utf8');
32
- console.log(`Updated ${fileName} to version ${newVersion}`);
33
- } else {
34
- console.log(`${fileName} is already at version ${newVersion}`);
35
- }
36
- } catch (error) {
37
- console.error(`Error updating ${fileName}:`, error.message);
38
- process.exit(1);
39
- }
40
- } else {
41
- console.warn(`Warning: ${fileName} not found, skipping.`);
42
- }
43
- });
44
-
45
- console.log('Version sync complete.');
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ import { fileURLToPath } from 'url';
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+
8
+ // Read the updated package.json to get the new version
9
+ const packageJsonPath = path.resolve(__dirname, '../package.json');
10
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
11
+ const newVersion = packageJson.version;
12
+
13
+ console.log(`Syncing version to ${newVersion}...`);
14
+
15
+ const filesToUpdate = [
16
+ 'openclaw.plugin.json',
17
+ 'moltbot.plugin.json',
18
+ 'clawdbot.plugin.json'
19
+ ];
20
+
21
+ filesToUpdate.forEach(fileName => {
22
+ const filePath = path.resolve(__dirname, '..', fileName);
23
+
24
+ if (fs.existsSync(filePath)) {
25
+ try {
26
+ const content = JSON.parse(fs.readFileSync(filePath, 'utf8'));
27
+
28
+ if (content.version !== newVersion) {
29
+ content.version = newVersion;
30
+ // Write back with 2 spaces indentation and a newline at the end
31
+ fs.writeFileSync(filePath, JSON.stringify(content, null, 2) + '\n', 'utf8');
32
+ console.log(`Updated ${fileName} to version ${newVersion}`);
33
+ } else {
34
+ console.log(`${fileName} is already at version ${newVersion}`);
35
+ }
36
+ } catch (error) {
37
+ console.error(`Error updating ${fileName}:`, error.message);
38
+ process.exit(1);
39
+ }
40
+ } else {
41
+ console.warn(`Warning: ${fileName} not found, skipping.`);
42
+ }
43
+ });
44
+
45
+ console.log('Version sync complete.');