@humanlikememory/human-like-mem 0.3.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.
- package/LICENSE +190 -0
- package/README.md +70 -0
- package/README_ZH.md +70 -0
- package/index.js +1335 -0
- package/openclaw.plugin.json +151 -0
- package/package.json +57 -0
- package/plugin.js +2 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://openclaw.io/schemas/plugin.json",
|
|
3
|
+
"id": "human-like-mem",
|
|
4
|
+
"name": "Human-Like Memory Plugin",
|
|
5
|
+
"description": "Long-term memory plugin with automatic recall and storage.",
|
|
6
|
+
"version": "0.3.10",
|
|
7
|
+
"kind": "lifecycle",
|
|
8
|
+
"main": "./index.js",
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "hanlaomo"
|
|
11
|
+
},
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"keywords": [
|
|
14
|
+
"memory",
|
|
15
|
+
"openclaw",
|
|
16
|
+
"long-term-memory"
|
|
17
|
+
],
|
|
18
|
+
"configSchema": {
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"apiKey": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "API key (apply at https://human-like.me)"
|
|
24
|
+
},
|
|
25
|
+
"baseUrl": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Memory API base URL",
|
|
28
|
+
"default": "https://human-like.me"
|
|
29
|
+
},
|
|
30
|
+
"userId": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "User identifier",
|
|
33
|
+
"default": "openclaw-user"
|
|
34
|
+
},
|
|
35
|
+
"agentId": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Agent identifier"
|
|
38
|
+
},
|
|
39
|
+
"recallEnabled": {
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"description": "Enable memory recall",
|
|
42
|
+
"default": true
|
|
43
|
+
},
|
|
44
|
+
"addEnabled": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "Enable memory storage",
|
|
47
|
+
"default": true
|
|
48
|
+
},
|
|
49
|
+
"recallGlobal": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"description": "Search memories globally",
|
|
52
|
+
"default": true
|
|
53
|
+
},
|
|
54
|
+
"memoryLimitNumber": {
|
|
55
|
+
"type": "number",
|
|
56
|
+
"description": "Maximum number of recalled memories",
|
|
57
|
+
"default": 6
|
|
58
|
+
},
|
|
59
|
+
"minScore": {
|
|
60
|
+
"type": "number",
|
|
61
|
+
"description": "Minimum relevance score",
|
|
62
|
+
"default": 0.1
|
|
63
|
+
},
|
|
64
|
+
"tags": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"description": "Memory tags",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"minTurnsToStore": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"description": "Store once every N turns (stores latest N*2 turns)",
|
|
74
|
+
"default": 5
|
|
75
|
+
},
|
|
76
|
+
"sessionTimeoutMs": {
|
|
77
|
+
"type": "number",
|
|
78
|
+
"description": "Session timeout in milliseconds before auto-flush",
|
|
79
|
+
"default": 300000
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"config": {
|
|
84
|
+
"apiKey": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"description": "API key (apply at https://human-like.me)",
|
|
87
|
+
"env": "HUMAN_LIKE_MEM_API_KEY",
|
|
88
|
+
"required": true
|
|
89
|
+
},
|
|
90
|
+
"baseUrl": {
|
|
91
|
+
"type": "string",
|
|
92
|
+
"description": "Memory API base URL",
|
|
93
|
+
"default": "https://human-like.me",
|
|
94
|
+
"env": "HUMAN_LIKE_MEM_BASE_URL"
|
|
95
|
+
},
|
|
96
|
+
"userId": {
|
|
97
|
+
"type": "string",
|
|
98
|
+
"description": "User identifier",
|
|
99
|
+
"default": "openclaw-user",
|
|
100
|
+
"env": "HUMAN_LIKE_MEM_USER_ID"
|
|
101
|
+
},
|
|
102
|
+
"agentId": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"description": "Agent identifier",
|
|
105
|
+
"env": "HUMAN_LIKE_MEM_AGENT_ID"
|
|
106
|
+
},
|
|
107
|
+
"recallEnabled": {
|
|
108
|
+
"type": "boolean",
|
|
109
|
+
"description": "Enable memory recall",
|
|
110
|
+
"default": true
|
|
111
|
+
},
|
|
112
|
+
"addEnabled": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"description": "Enable memory storage",
|
|
115
|
+
"default": true
|
|
116
|
+
},
|
|
117
|
+
"recallGlobal": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"description": "Search memories globally",
|
|
120
|
+
"default": true
|
|
121
|
+
},
|
|
122
|
+
"memoryLimitNumber": {
|
|
123
|
+
"type": "number",
|
|
124
|
+
"description": "Maximum number of recalled memories",
|
|
125
|
+
"default": 6,
|
|
126
|
+
"env": "HUMAN_LIKE_MEM_LIMIT_NUMBER"
|
|
127
|
+
},
|
|
128
|
+
"minScore": {
|
|
129
|
+
"type": "number",
|
|
130
|
+
"description": "Minimum relevance score",
|
|
131
|
+
"default": 0.1,
|
|
132
|
+
"env": "HUMAN_LIKE_MEM_MIN_SCORE"
|
|
133
|
+
},
|
|
134
|
+
"tags": {
|
|
135
|
+
"type": "array",
|
|
136
|
+
"description": "Memory tags"
|
|
137
|
+
},
|
|
138
|
+
"minTurnsToStore": {
|
|
139
|
+
"type": "number",
|
|
140
|
+
"description": "Store once every N turns (stores latest N*2 turns)",
|
|
141
|
+
"default": 5,
|
|
142
|
+
"env": "HUMAN_LIKE_MEM_MIN_TURNS"
|
|
143
|
+
},
|
|
144
|
+
"sessionTimeoutMs": {
|
|
145
|
+
"type": "number",
|
|
146
|
+
"description": "Session timeout in milliseconds before auto-flush",
|
|
147
|
+
"default": 300000,
|
|
148
|
+
"env": "HUMAN_LIKE_MEM_SESSION_TIMEOUT"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@humanlikememory/human-like-mem",
|
|
3
|
+
"version": "0.3.10",
|
|
4
|
+
"description": "Long-term memory plugin for OpenClaw - AI Social Memory Integration",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"index.js",
|
|
9
|
+
"plugin.js",
|
|
10
|
+
"openclaw.plugin.json",
|
|
11
|
+
"README.md",
|
|
12
|
+
"README_ZH.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"openclaw": {
|
|
16
|
+
"extensions": [
|
|
17
|
+
"./index.js"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"format": "prettier --write ."
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"openclaw",
|
|
27
|
+
"openclaw-plugin",
|
|
28
|
+
"plugin",
|
|
29
|
+
"memory",
|
|
30
|
+
"ai",
|
|
31
|
+
"long-term-memory",
|
|
32
|
+
"ai-social",
|
|
33
|
+
"human-like-memory"
|
|
34
|
+
],
|
|
35
|
+
"author": "hanlaomo",
|
|
36
|
+
"license": "Apache-2.0",
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://gitlab.ttyuyin.com/personalization_group/human-like-mem-openclaw-plugin.git"
|
|
40
|
+
},
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://gitlab.ttyuyin.com/personalization_group/human-like-mem-openclaw-plugin/-/issues"
|
|
43
|
+
},
|
|
44
|
+
"homepage": "https://gitlab.ttyuyin.com/personalization_group/human-like-mem-openclaw-plugin#readme",
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=18.0.0"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"eslint": "^8.57.0",
|
|
50
|
+
"jest": "^29.7.0",
|
|
51
|
+
"prettier": "^3.2.0"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
package/plugin.js
ADDED