@memtensor/memos-cloud-openclaw-plugin 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -11,11 +11,15 @@ A minimal OpenClaw lifecycle plugin that **recalls** memories from MemOS Cloud b
11
11
 
12
12
  ## Install
13
13
 
14
- ### Option A — GitHub
14
+ ### Option A — NPM (Recommended)
15
15
  ```bash
16
- openclaw plugins install github:MemTensor/MemOS-Cloud-OpenClaw-Plugin
16
+ openclaw plugins install @memtensor/memos-cloud-openclaw-plugin
17
17
  openclaw gateway restart
18
18
  ```
19
+
20
+ > **Note for Windows Users**:
21
+ > If you encounter `Error: spawn EINVAL`, this is a known issue with OpenClaw's plugin installer on Windows. Please use **Option B** (Manual Install) below.
22
+
19
23
  Make sure it’s enabled in `~/.openclaw/openclaw.json`:
20
24
  ```json
21
25
  {
@@ -27,20 +31,27 @@ Make sure it’s enabled in `~/.openclaw/openclaw.json`:
27
31
  }
28
32
  ```
29
33
 
30
- ### Option B — Local path
31
- Copy this folder into an OpenClaw plugin path (e.g. `~/.openclaw/extensions/`) or use `plugins.load.paths` to point at it.
34
+ ### Option B — Manual Install (Workaround for Windows)
35
+ 1. Download the latest `.tgz` from [NPM](https://www.npmjs.com/package/@memtensor/memos-cloud-openclaw-plugin).
36
+ 2. Extract it to a local folder (e.g., `C:\Users\YourName\.openclaw\extensions\memos-cloud-openclaw-plugin`).
37
+ 3. Configure `~/.openclaw/openclaw.json` (or `%USERPROFILE%\.openclaw\openclaw.json`):
32
38
 
33
- Example `~/.openclaw/openclaw.json`:
34
39
  ```json
35
40
  {
36
41
  "plugins": {
37
42
  "entries": {
38
43
  "memos-cloud-openclaw-plugin": { "enabled": true }
39
44
  },
40
- "load": { "paths": ["/path/to/memos-cloud-openclaw-plugin"] }
45
+ "load": {
46
+ "paths": [
47
+ "C:\\Users\\YourName\\.openclaw\\extensions\\memos-cloud-openclaw-plugin\\package"
48
+ ]
49
+ }
41
50
  }
42
51
  }
43
52
  ```
53
+ *Note: The extracted folder usually contains a `package` subfolder. Point to the folder containing `package.json`.*
54
+
44
55
  Restart the gateway after config changes.
45
56
 
46
57
  ## Environment Variables
package/README_ZH.md CHANGED
@@ -13,11 +13,15 @@
13
13
 
14
14
  ## 安装
15
15
 
16
- ### 方式 A — GitHub
16
+ ### 方式 A — NPM(推荐)
17
17
  ```bash
18
- openclaw plugins install github:MemTensor/MemOS-Cloud-OpenClaw-Plugin
18
+ openclaw plugins install @memtensor/memos-cloud-openclaw-plugin
19
19
  openclaw gateway restart
20
20
  ```
21
+
22
+ > **Windows 用户注意**:
23
+ > 如果遇到 `Error: spawn EINVAL` 报错,这是 OpenClaw Windows 安装器的已知问题。请使用下方的 **方式 B**(手动安装)。
24
+
21
25
  确认 `~/.openclaw/openclaw.json` 中已启用:
22
26
  ```json
23
27
  {
@@ -29,20 +33,27 @@ openclaw gateway restart
29
33
  }
30
34
  ```
31
35
 
32
- ### 方式 B — 本地路径
33
- 把本目录放到 OpenClaw 插件路径(如 `~/.openclaw/extensions/`),或用 `plugins.load.paths` 指向它。
36
+ ### 方式 B — 手动安装(Windows 解决方案)
37
+ 1. [NPM](https://www.npmjs.com/package/@memtensor/memos-cloud-openclaw-plugin) 下载最新的 `.tgz` 包。
38
+ 2. 解压到本地目录(例如 `C:\Users\YourName\.openclaw\extensions\memos-cloud-openclaw-plugin`)。
39
+ 3. 修改配置 `~/.openclaw/openclaw.json`(或 `%USERPROFILE%\.openclaw\openclaw.json`):
34
40
 
35
- 示例 `~/.openclaw/openclaw.json`:
36
41
  ```json
37
42
  {
38
43
  "plugins": {
39
44
  "entries": {
40
45
  "memos-cloud-openclaw-plugin": { "enabled": true }
41
46
  },
42
- "load": { "paths": ["/path/to/memos-cloud-openclaw-plugin"] }
47
+ "load": {
48
+ "paths": [
49
+ "C:\\Users\\YourName\\.openclaw\\extensions\\memos-cloud-openclaw-plugin\\package"
50
+ ]
51
+ }
43
52
  }
44
53
  }
45
54
  ```
55
+ *注意:解压后的文件夹通常包含一个 `package` 子文件夹,请指向包含 `package.json` 的那层目录。*
56
+
46
57
  修改配置后需要重启 gateway。
47
58
 
48
59
  ## 环境变量
@@ -2,7 +2,7 @@
2
2
  "id": "memos-cloud-openclaw-plugin",
3
3
  "name": "MemOS Cloud OpenClaw Plugin",
4
4
  "description": "MemOS Cloud recall + add memory via lifecycle hooks",
5
- "version": "0.1.1",
5
+ "version": "0.1.3",
6
6
  "kind": "lifecycle",
7
7
  "main": "./index.js",
8
8
  "configSchema": {
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  import {
2
3
  addMessage,
3
4
  buildConfig,
@@ -2,7 +2,7 @@
2
2
  "id": "memos-cloud-openclaw-plugin",
3
3
  "name": "MemOS Cloud OpenClaw Plugin",
4
4
  "description": "MemOS Cloud recall + add memory via lifecycle hooks",
5
- "version": "0.1.1",
5
+ "version": "0.1.3",
6
6
  "kind": "lifecycle",
7
7
  "main": "./index.js",
8
8
  "configSchema": {
@@ -2,7 +2,7 @@
2
2
  "id": "memos-cloud-openclaw-plugin",
3
3
  "name": "MemOS Cloud OpenClaw Plugin",
4
4
  "description": "MemOS Cloud recall + add memory via lifecycle hooks",
5
- "version": "0.1.1",
5
+ "version": "0.1.3",
6
6
  "kind": "lifecycle",
7
7
  "main": "./index.js",
8
8
  "configSchema": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memtensor/memos-cloud-openclaw-plugin",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "OpenClaw lifecycle plugin for MemOS Cloud (add + recall memory)",
5
5
  "keywords": [
6
6
  "memos",