@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/package.json CHANGED
@@ -1,46 +1,46 @@
1
- {
2
- "name": "@memtensor/memos-cloud-openclaw-plugin",
3
- "version": "0.1.7",
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.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,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.');