@memclaw/plugin 0.9.0 → 0.9.2
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 +23 -9
- package/dist/index.d.ts +100 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin-impl.d.ts +40 -0
- package/dist/plugin-impl.d.ts.map +1 -0
- package/dist/plugin-impl.js +445 -0
- package/dist/plugin-impl.js.map +1 -0
- package/dist/src/binaries.d.ts +29 -0
- package/dist/src/binaries.d.ts.map +1 -0
- package/dist/src/binaries.js +292 -0
- package/dist/src/binaries.js.map +1 -0
- package/dist/src/client.d.ts +88 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +131 -0
- package/dist/src/client.js.map +1 -0
- package/dist/src/config.d.ts +50 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +257 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/migrate.d.ts +26 -0
- package/dist/src/migrate.d.ts.map +1 -0
- package/dist/src/migrate.js +287 -0
- package/dist/src/migrate.js.map +1 -0
- package/openclaw.plugin.json +70 -70
- package/package.json +2 -2
- package/skill/references/setup.md +2 -41
package/openclaw.plugin.json
CHANGED
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
2
|
+
"id": "memclaw",
|
|
3
|
+
"name": "MemClaw",
|
|
4
|
+
"version": "0.9.2",
|
|
5
|
+
"description": "Layered semantic memory for OpenClaw with L0/L1/L2 tiered retrieval, easy setup, and migration from native memory",
|
|
6
|
+
"kind": "memory",
|
|
7
|
+
"skills": ["skill"],
|
|
8
|
+
"configSchema": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"serviceUrl": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Cortex Memory service URL",
|
|
14
|
+
"default": "http://127.0.0.1:8085"
|
|
15
|
+
},
|
|
16
|
+
"defaultSessionId": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Default session ID for memory operations",
|
|
19
|
+
"default": "default"
|
|
20
|
+
},
|
|
21
|
+
"searchLimit": {
|
|
22
|
+
"type": "integer",
|
|
23
|
+
"description": "Default number of search results",
|
|
24
|
+
"default": 10,
|
|
25
|
+
"minimum": 1,
|
|
26
|
+
"maximum": 50
|
|
27
|
+
},
|
|
28
|
+
"minScore": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"description": "Minimum relevance score for search results",
|
|
31
|
+
"default": 0.6,
|
|
32
|
+
"minimum": 0,
|
|
33
|
+
"maximum": 1
|
|
34
|
+
},
|
|
35
|
+
"tenantId": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Tenant ID for data isolation",
|
|
38
|
+
"default": "tenant_claw"
|
|
39
|
+
},
|
|
40
|
+
"autoStartServices": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"description": "Automatically start Qdrant and cortex-mem-service if not running",
|
|
43
|
+
"default": true
|
|
44
|
+
},
|
|
45
|
+
"qdrantPort": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"description": "Qdrant port (default: 6333 for HTTP, 6334 for gRPC)",
|
|
48
|
+
"default": 6334
|
|
49
|
+
},
|
|
50
|
+
"servicePort": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"description": "cortex-mem-service port",
|
|
53
|
+
"default": 8085
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": []
|
|
57
|
+
},
|
|
58
|
+
"uiHints": {
|
|
59
|
+
"serviceUrl": {
|
|
60
|
+
"label": "Service URL",
|
|
61
|
+
"description": "The HTTP endpoint of your cortex-mem-service instance"
|
|
62
|
+
},
|
|
63
|
+
"tenantId": {
|
|
64
|
+
"label": "Tenant ID",
|
|
65
|
+
"description": "Tenant identifier for data isolation"
|
|
66
|
+
},
|
|
67
|
+
"autoStartServices": {
|
|
68
|
+
"label": "Auto-start Services",
|
|
69
|
+
"description": "Automatically start Qdrant and cortex-mem-service when plugin loads"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
72
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memclaw/plugin",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "MemClaw - The Cortex Memory' plugin for OpenClaw. Layered semantic memory for OpenClaw with easy setup and migration",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@memclaw/bin-win-x64": "0.1.0"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
45
|
+
"node": ">=20.0.0"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
48
48
|
"dist/",
|
|
@@ -6,55 +6,16 @@ Installation and configuration guide for MemClaw.
|
|
|
6
6
|
|
|
7
7
|
| Requirement | Details |
|
|
8
8
|
|-------------|---------|
|
|
9
|
-
| **Platforms** | Windows
|
|
10
|
-
| **Node.js** | ≥
|
|
9
|
+
| **Platforms** | Windows x86, macOS Apple Silicon |
|
|
10
|
+
| **Node.js** | ≥ 20.0.0 |
|
|
11
11
|
| **OpenClaw** | Installed and configured |
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
|
-
### Method 1: Install from npm
|
|
16
|
-
|
|
17
15
|
```bash
|
|
18
16
|
openclaw plugins install @memclaw/plugin
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
### Method 2: Local Development Installation
|
|
22
|
-
|
|
23
|
-
For developers using a local version or developing the plugin:
|
|
24
|
-
|
|
25
|
-
```bash
|
|
26
|
-
# Clone the repository
|
|
27
|
-
git clone https://github.com/sopaco/cortex-mem.git
|
|
28
|
-
cd cortex-mem/examples/@memclaw/plugin
|
|
29
|
-
|
|
30
|
-
# Install dependencies
|
|
31
|
-
bun install
|
|
32
|
-
|
|
33
|
-
# Build the plugin
|
|
34
|
-
bun run build
|
|
35
|
-
|
|
36
|
-
# Create symlink to plugin directory
|
|
37
|
-
mkdir -p ~/.openclaw/plugins
|
|
38
|
-
ln -sf "$(pwd)" ~/.openclaw/plugins/memclaw
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
Configure in `openclaw.json` with local path:
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
{
|
|
45
|
-
"plugins": {
|
|
46
|
-
"entries": {
|
|
47
|
-
"memclaw": {
|
|
48
|
-
"enabled": true,
|
|
49
|
-
"path": "./plugins/memclaw"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
After code changes, rebuild with `bun run build` and restart OpenClaw.
|
|
57
|
-
|
|
58
19
|
## OpenClaw Configuration
|
|
59
20
|
|
|
60
21
|
Edit your `openclaw.json`:
|