@legna-lnc/legnacode 1.4.5 → 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,40 @@
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
+
24
+ ## [1.4.6] - 2026-04-13
25
+
26
+ ### Bug Fixes
27
+
28
+ - **OML skill crash fix** — All 40 OML skills (16 superpowers + 5 orchestrators + 19 agents) returned `string` instead of `ContentBlockParam[]` from `getPromptForCommand`, causing `result.filter is not a function` crash on `/ultrawork`, `/ralph`, `/autopilot`, etc. Now wrapped as `Promise<[{ type: 'text', text }]>`.
29
+ - **Statusline writes to wrong config dir** — `statuslineSetup` agent hardcoded `~/.claude/settings.json` and `~/.claude/statusline-command.sh`. Fixed to `~/.legna/`.
30
+
31
+ ### Improvements
32
+
33
+ - **Plans moved to project-local** — Default plan directory changed from `~/.legna/plans/` to `<cwd>/.legna/plans/`. Plans now live alongside the project they belong to.
34
+ - **Auto-memory moved to project-local** — Default auto-memory path changed from `~/.legna/projects/<slug>/memory/` to `<cwd>/.legna/memory/`. First startup auto-migrates files from the legacy global path (non-destructive, never overwrites).
35
+ - **Compound engineering seamless fusion** — Knowledge compounding from compound-engineering-plugin, injected into 3 existing automation points with zero new commands:
36
+ - `onPreCompress`: high-value exchange pairs auto-written to `docs/solutions/` (opt-in via `mkdir docs/solutions`)
37
+ - `prefetch`: auto-searches `docs/solutions/` for past learnings when user asks related questions
38
+ - `magicKeywords`: deep scope detection (refactor/migrate/architecture) appends a lightweight compound hint
39
+ - **Legacy path comments cleaned** — Updated stale `~/.claude/projects/` references in memdir, extractMemories, settings types
40
+
7
41
  ## [1.4.5] - 2026-04-13
8
42
 
9
43
  ### Features
package/README.md CHANGED
@@ -33,11 +33,12 @@ 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) |
37
+ | **1.4.6** | OML skill crash fix; plans + memory → project-local; compound engineering fusion |
36
38
  | **1.4.5** | OpenViking content tiering (L0/L1/L2 degradation + budget-capped injection) |
37
39
  | **1.4.4** | Status messages → spinner line; comparison doc |
38
40
  | **1.4.3** | Mempalace memory fusion (DrawerStore + TF-IDF + 4-layer stack + knowledge graph) |
39
41
  | **1.4.2** | Progress feedback (8 silent paths fixed); verbose default on |
40
- | **1.4.0** | MiniMax multimodal (6 tools); RPC execution; Memory Provider; smart routing |
41
42
 
42
43
  <details>
43
44
  <summary>Older versions</summary>
package/README.zh-CN.md CHANGED
@@ -33,11 +33,12 @@ 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 天衰减、隐私标签) |
37
+ | **1.4.6** | OML skill 崩溃修复;计划+记忆改为项目本地;compound engineering 融合 |
36
38
  | **1.4.5** | OpenViking 内容分级融合(L0/L1/L2 降级 + 预算封顶注入) |
37
39
  | **1.4.4** | 状态提示改为 spinner 行显示;新增功能对比文档 |
38
40
  | **1.4.3** | mempalace 记忆融合(DrawerStore + TF-IDF + 4 层栈 + 知识图谱) |
39
41
  | **1.4.2** | 进度反馈增强(8 个静默路径修复);verbose 默认开启 |
40
- | **1.4.0** | MiniMax 多模态(6 工具);RPC 执行;Memory Provider;智能路由 |
41
42
 
42
43
  <details>
43
44
  <summary>更早版本</summary>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@legna-lnc/legnacode",
3
- "version": "1.4.5",
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.5",
146
- "@legna-lnc/legnacode-darwin-x64": "1.4.5",
147
- "@legna-lnc/legnacode-linux-x64": "1.4.5",
148
- "@legna-lnc/legnacode-linux-arm64": "1.4.5",
149
- "@legna-lnc/legnacode-win32-x64": "1.4.5",
150
- "@legna-lnc/legnacode-win32-ia32": "1.4.5"
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
  }