@smyslenny/agent-memory 4.0.0-alpha.1 → 4.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 +38 -0
- package/dist/bin/agent-memory.js +1171 -886
- package/dist/bin/agent-memory.js.map +1 -1
- package/dist/index.d.ts +52 -7
- package/dist/index.js +159 -16
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +175 -29
- package/dist/mcp/server.js.map +1 -1
- package/docs/design/.next-id +1 -0
- package/docs/design/0016-v41-warm-boot-surface-emotion.md +228 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.2.0 (2026-03-19)
|
|
4
|
+
|
|
5
|
+
### 🛡️ Anti-Noise Hardening
|
|
6
|
+
|
|
7
|
+
This release addresses the "heartbeat flood" problem where memory-sync cron
|
|
8
|
+
ingested hundreds of low-value status observations (e.g. "HEARTBEAT_OK",
|
|
9
|
+
"安静模式", "PR 无变化") into the curated memory store.
|
|
10
|
+
|
|
11
|
+
#### Guard improvements
|
|
12
|
+
- **Raised specificity threshold** for P2/P3 memories from 8 to 20 effective
|
|
13
|
+
characters
|
|
14
|
+
- **CJK-aware length calculation**: CJK characters count as 3 effective chars
|
|
15
|
+
(reflecting their higher information density vs ASCII), preventing false
|
|
16
|
+
rejections of legitimate Chinese content
|
|
17
|
+
|
|
18
|
+
#### Ingest noise filter
|
|
19
|
+
- Added `isIngestNoise()` pre-filter in `extractIngestItems()` that skips lines
|
|
20
|
+
matching known noise patterns before they reach the Write Guard:
|
|
21
|
+
- Heartbeat status: `HEARTBEAT_OK`, `安静模式`, `不打扰`, `继续安静待命`
|
|
22
|
+
- Empty deltas: `无新 delta`, `无变化`, `无紧急`, `无新进展`
|
|
23
|
+
- System dumps: `openclaw status`, `openclaw gateway status`, `session_status`
|
|
24
|
+
- Stale PR observations: `PR #NNN 无变化`, `基线未变`, `轻量复查`
|
|
25
|
+
- Cron noise: `cron 会话`, `距上次心跳`, `危险区协议`
|
|
26
|
+
|
|
27
|
+
#### Tidy expansion
|
|
28
|
+
- `getDecayedMemories()` now includes **P2 (knowledge)** in cleanup candidates
|
|
29
|
+
(previously only P3 event). This means decayed low-vitality knowledge entries
|
|
30
|
+
will be cleaned up during sleep tidy, not just events.
|
|
31
|
+
|
|
32
|
+
#### Govern env config
|
|
33
|
+
- `maxMemories` can now be set via `AGENT_MEMORY_MAX_MEMORIES` environment
|
|
34
|
+
variable (default: 200)
|
|
35
|
+
|
|
36
|
+
### ✅ Tests
|
|
37
|
+
- 66 tests passing (19 files)
|
|
38
|
+
- Added `tests/ingest/noise-filter.test.ts` covering heartbeat noise rejection,
|
|
39
|
+
meaningful content preservation, and mixed signal/noise handling
|
|
40
|
+
|
|
3
41
|
## 4.0.0-alpha.1 (2026-03-09)
|
|
4
42
|
|
|
5
43
|
### 🚀 Repositioning
|