@legna-lnc/legnacode 1.4.6 → 1.4.7

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 CHANGED
@@ -4,6 +4,23 @@
4
4
 
5
5
  All notable changes to LegnaCode CLI will be documented in this file.
6
6
 
7
+ ## [1.4.7] - 2026-04-13
8
+
9
+ ### Features
10
+
11
+ - **claude-mem memory intelligence fusion** — Ported 5 lightweight techniques from claude-mem's persistent memory system into DrawerStore, zero new dependencies:
12
+ - **Content-hash deduplication** — `sha256(wing + room + content)` with 30-second window prevents duplicate observations during rapid compaction cycles
13
+ - **Token economics tracking** — Each drawer records `discoveryTokens` (cost to create) and `readTokens` (accumulated recall cost) for memory ROI analysis
14
+ - **Relevance feedback** — `relevanceCount` incremented on each search hit; frequently recalled memories get up to +100% importance boost via `importance * (1 + 0.1 * min(count, 10))`
15
+ - **90-day time decay** — `max(0.3, 1.0 - age_days / 90)` applied to both search similarity and importance ranking. Old memories fade but never fully disappear
16
+ - **Privacy tag filtering** — `<private>...</private>` content stripped to `[REDACTED]` before memory extraction. Zero config, just wrap sensitive text in tags
17
+
18
+ ### Architecture
19
+
20
+ - Modified `src/memdir/vectorStore/types.ts` — Drawer gains `discoveryTokens`, `readTokens`, `relevanceCount`, `contentHash` fields
21
+ - Modified `src/memdir/vectorStore/drawerStore.ts` — Schema migration (4 new columns), content-hash dedup in upsert, relevance feedback in search, time decay in search + topByImportance
22
+ - Modified `src/memdir/vectorStore/exchangeExtractor.ts` — `stripPrivate()` applied before pair extraction
23
+
7
24
  ## [1.4.6] - 2026-04-13
8
25
 
9
26
  ### Bug Fixes
package/README.md CHANGED
@@ -33,6 +33,7 @@ LegnaCode is built on top of [Claude Code CLI](https://github.com/anthropics/cla
33
33
 
34
34
  | Version | Summary |
35
35
  |---------|---------|
36
+ | **1.4.7** | claude-mem fusion (content-hash dedup, token economics, relevance feedback, 90-day decay, privacy tags) |
36
37
  | **1.4.6** | OML skill crash fix; plans + memory → project-local; compound engineering fusion |
37
38
  | **1.4.5** | OpenViking content tiering (L0/L1/L2 degradation + budget-capped injection) |
38
39
  | **1.4.4** | Status messages → spinner line; comparison doc |
package/README.zh-CN.md CHANGED
@@ -33,6 +33,7 @@ LegnaCode 基于 [Claude Code CLI](https://github.com/anthropics/claude-code)
33
33
 
34
34
  | 版本 | 摘要 |
35
35
  |------|------|
36
+ | **1.4.7** | claude-mem 融合(content-hash 去重、token 经济学、使用反馈、90 天衰减、隐私标签) |
36
37
  | **1.4.6** | OML skill 崩溃修复;计划+记忆改为项目本地;compound engineering 融合 |
37
38
  | **1.4.5** | OpenViking 内容分级融合(L0/L1/L2 降级 + 预算封顶注入) |
38
39
  | **1.4.4** | 状态提示改为 spinner 行显示;新增功能对比文档 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legna-lnc/legnacode",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "LegnaCode — legna.lnc's official CLI for coding assistance",
5
5
  "type": "module",
6
6
  "bin": {
@@ -142,11 +142,11 @@
142
142
  "bun": ">=1.2.0"
143
143
  },
144
144
  "optionalDependencies": {
145
- "@legna-lnc/legnacode-darwin-arm64": "1.4.6",
146
- "@legna-lnc/legnacode-darwin-x64": "1.4.6",
147
- "@legna-lnc/legnacode-linux-x64": "1.4.6",
148
- "@legna-lnc/legnacode-linux-arm64": "1.4.6",
149
- "@legna-lnc/legnacode-win32-x64": "1.4.6",
150
- "@legna-lnc/legnacode-win32-ia32": "1.4.6"
145
+ "@legna-lnc/legnacode-darwin-arm64": "1.4.7",
146
+ "@legna-lnc/legnacode-darwin-x64": "1.4.7",
147
+ "@legna-lnc/legnacode-linux-x64": "1.4.7",
148
+ "@legna-lnc/legnacode-linux-arm64": "1.4.7",
149
+ "@legna-lnc/legnacode-win32-x64": "1.4.7",
150
+ "@legna-lnc/legnacode-win32-ia32": "1.4.7"
151
151
  }
152
152
  }