@etzelm/openclaw-memory-hindsight 0.1.1 → 0.2.0
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/CHANGELOG.md +74 -0
- package/README.md +142 -31
- package/dist/client.js +37 -4
- package/dist/config.js +29 -1
- package/dist/index.js +37 -14
- package/dist/retain-queue.js +493 -0
- package/dist/routing.js +13 -0
- package/dist/service.js +123 -13
- package/dist/tools.js +5 -7
- package/openclaw.plugin.json +54 -0
- package/package.json +3 -3
package/openclaw.plugin.json
CHANGED
|
@@ -45,10 +45,35 @@
|
|
|
45
45
|
"help": "Agent id to owner bank id, so several agents share one private bank (for example wb-dev and wb-dev2 to wb)",
|
|
46
46
|
"advanced": true
|
|
47
47
|
},
|
|
48
|
+
"allowInsecureHttp": {
|
|
49
|
+
"label": "Allow Insecure HTTP",
|
|
50
|
+
"help": "Permit plain http to a non-loopback host. Token and conversation text are sent unencrypted; prefer https or a loopback tunnel",
|
|
51
|
+
"advanced": true
|
|
52
|
+
},
|
|
53
|
+
"retainQueueEnabled": {
|
|
54
|
+
"label": "Offline Retain Queue",
|
|
55
|
+
"help": "Keep auto-retains that fail because Hindsight is unreachable (network error, timeout, 5xx) in a local file under the state dir and send them later to the same bank",
|
|
56
|
+
"advanced": true
|
|
57
|
+
},
|
|
58
|
+
"retainQueueMaxItems": {
|
|
59
|
+
"label": "Retain Queue Max Items",
|
|
60
|
+
"help": "Oldest queued retains are dropped beyond this count",
|
|
61
|
+
"advanced": true
|
|
62
|
+
},
|
|
63
|
+
"retainQueueMaxAgeMs": {
|
|
64
|
+
"label": "Retain Queue Max Age (ms)",
|
|
65
|
+
"help": "Queued retains older than this are dropped (default 7 days)",
|
|
66
|
+
"advanced": true
|
|
67
|
+
},
|
|
48
68
|
"retainMission": {
|
|
49
69
|
"label": "Retain Mission",
|
|
50
70
|
"help": "Applied to each bank before its first write: what Hindsight should extract",
|
|
51
71
|
"advanced": true
|
|
72
|
+
},
|
|
73
|
+
"retainTags": {
|
|
74
|
+
"label": "Retain Tags",
|
|
75
|
+
"help": "Tags added to every retained memory (for example source:openclaw)",
|
|
76
|
+
"advanced": true
|
|
52
77
|
}
|
|
53
78
|
},
|
|
54
79
|
"configSchema": {
|
|
@@ -66,6 +91,11 @@
|
|
|
66
91
|
"type": "string",
|
|
67
92
|
"enum": ["hybrid", "context", "tools"]
|
|
68
93
|
},
|
|
94
|
+
"allowInsecureHttp": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"default": false,
|
|
97
|
+
"description": "Allow plain http to a non-loopback hindsightApiUrl; the bearer token and conversation text then travel unencrypted"
|
|
98
|
+
},
|
|
69
99
|
"autoRecall": {
|
|
70
100
|
"type": "boolean"
|
|
71
101
|
},
|
|
@@ -95,6 +125,12 @@
|
|
|
95
125
|
"retainContext": {
|
|
96
126
|
"type": "string"
|
|
97
127
|
},
|
|
128
|
+
"retainTags": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": {
|
|
131
|
+
"type": "string"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
98
134
|
"excludeProviders": {
|
|
99
135
|
"type": "array",
|
|
100
136
|
"items": {
|
|
@@ -104,6 +140,24 @@
|
|
|
104
140
|
"skipOperationalSessions": {
|
|
105
141
|
"type": "boolean"
|
|
106
142
|
},
|
|
143
|
+
"retainQueueEnabled": {
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"default": true,
|
|
146
|
+
"description": "Queue auto-retains that fail because Hindsight is unreachable (network error, timeout, HTTP 5xx) in <state dir>/hindsight-native/retain-queue.jsonl (mode 600) and replay them to the same bank; 4xx answers are not queued"
|
|
147
|
+
},
|
|
148
|
+
"retainQueueMaxItems": {
|
|
149
|
+
"type": "integer",
|
|
150
|
+
"minimum": 1,
|
|
151
|
+
"maximum": 10000,
|
|
152
|
+
"default": 500,
|
|
153
|
+
"description": "Most queued retains kept; the oldest are dropped beyond this"
|
|
154
|
+
},
|
|
155
|
+
"retainQueueMaxAgeMs": {
|
|
156
|
+
"type": "integer",
|
|
157
|
+
"minimum": 1,
|
|
158
|
+
"default": 604800000,
|
|
159
|
+
"description": "Queued retains older than this many milliseconds are dropped (default 7 days)"
|
|
160
|
+
},
|
|
107
161
|
"agentBankMap": {
|
|
108
162
|
"type": "object",
|
|
109
163
|
"additionalProperties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etzelm/openclaw-memory-hindsight",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Native Hindsight memory engine for OpenClaw: memory slot provider runtime, auto-recall, auto-retain, pre-compaction flush and hindsight_* agent tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"hindsight",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"vitest": "5.1.0"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"openclaw": ">=2026.10.
|
|
56
|
+
"openclaw": ">=2026.10.10"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"openclaw": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"npmSpec": "@etzelm/openclaw-memory-hindsight",
|
|
72
72
|
"clawhubSpec": "clawhub:@etzelm/openclaw-memory-hindsight",
|
|
73
73
|
"defaultChoice": "npm",
|
|
74
|
-
"minHostVersion": ">=2026.10.
|
|
74
|
+
"minHostVersion": ">=2026.10.10"
|
|
75
75
|
},
|
|
76
76
|
"compat": {
|
|
77
77
|
"pluginApi": ">=2026.10.1"
|