Repository navigation
v0.2.1 — 并入手机端引擎
简体中文
⚠️ 本版已被取代,建议用最新版最新版本:v0.2.3
本说明最后更新:2026-11-29 23:20 UTC
v0.2.1 完成了「一个核心」的合并,但仍缺后面两批修复:
| 问题 | 表现 | 修复版本 |
|---|---|---|
| 管理页退回简化页 | 设置里的「记忆」只剩「L1 摘要 + 搜索 + 新增一条」,导入 / 导出与专题卡管理不见了 | v0.2.2 |
| 点「导出记忆」拿不到文件 | WebView 没有 DownloadListener,<a download> 被静默吞掉,文件从未落盘 |
v0.2.2 |
| 只能导出轻量内容 | 导出包不含 journal / archive / 配置,做不到整机迁移 | v0.2.3 |
以下为 v0.2.1 原始说明(保留存档)
把手机端跑的那版引擎并入仓库。三个包从此是同一份 src/engine.js,
不再有「仓库构建比手机端少功能」的分叉。
| 资产 | 内容 | 大小 | SHA-256 |
|---|---|---|---|
tan-memory-0.2.1.tgz |
核心引擎:引擎 + 适配器 + CLI + 文档 | 121,826 B | f4e9ff2f87fc35e9707677a196a881aaa412d8e18b6871d8d475eb3c353fcfd1 |
tan-memory-dsh-1.1.1.tgz |
桌面端 DSH 插件(内嵌引擎,装上后有设置里的「记忆」页) | 102,098 B | 36fa0547f56e52007c1bc95c1b519211d468b19ab3376c27d64b6a5f6a724f5b |
dsh-memory-0.5.1.tgz |
Android 侧载插件(内嵌引擎 + workspace_write) | 97,692 B | 47b81cec53f2195d95d7772ddd6abfcaaf33ff9c218936ee9627873458c9239b |
版本
| 包 | 版本 |
|---|---|
核心 tan-memory |
0.2.0 → 0.2.1 |
桌面插件 tan-memory-dsh |
1.1.0 → 1.1.1 |
Android 插件 dsh-memory |
0.5.0 → 0.5.1 |
新增能力(此前只在手机端)
关键词检索通道(buildKeywordIndex / keywordHitOf)、~ 前缀(只检索不注入)、
命中率排序、新卡按 routes 自动入索引、L1「最近收尾」改为运行时拼、
shortWindowOf 剥 session- 前缀、12 项体检 + 滚动快照 + 触发率流水、
updateEntries 批量原子写。
接口变化
- 新增
setWorkspace(dir):指定workspace_write的白名单根目录。
不调用就不注册这个工具——核心库 / MCP / CLI / 桌面插件仍是 14 个工具,
Android 插件(自动传/storage/emulated/0/DSH)是 15 个。 memory:l1段的text改为函数,按轮次注入会话头与「最近收尾」。memory_summarize的duplicate_ids标为required,无重复时返回[]
(旧契约会让字段取到undefined,正是工具层 lossless JSON 会拒收的形态)。
装哪个
- 引擎 / MCP / CLI →
tan-memory-0.2.1.tgz,npm install /path/to/unpacked/package或直接用仓库源码。 - 桌面端 DSH →
tan-memory-dsh-1.1.1.tgz,「插件 → 添加插件 → 本地目录 / tgz」。 - Android 端 DSH →
dsh-memory-0.5.1.tgz,adb push到/sdcard/DSH/plugins/后重启 App。
验证
node --test test/*.test.mjs:92 项 / 91 通过 / 0 失败 / 1 跳过,与合并前基线一致。
许可 AGPL-3.0-only,所有版本适用同一许可证。
English
⚠️ Superseded — use the latest releaseLatest release: v0.2.3
This note was last updated: 2026-11-29 23:20 UTC
v0.2.1 completed the "one core" merge but still lacks the next two rounds of fixes:
| Issue | Symptom | Fixed in |
|---|---|---|
| Management page fell back to the simplified view | Settings → Memory showed only "L1 summary + search + add one"; import/export and topic-card management were gone | v0.2.2 |
| "Export memory" produced no file | The WebView has no DownloadListener, so <a download> was swallowed and nothing was written |
v0.2.2 |
| Export was lite-only | The bundle carried no journal / archive / config, so it could not migrate a whole install | v0.2.3 |
Original v0.2.1 notes (kept for the record)
This release merged the engine that had been running on Android into the repository. From
here on, all three packages share one and the same src/engine.js, and the split where
"the repository build has fewer features than the phone build" is gone.
| Asset | Contents | Size | SHA-256 |
|---|---|---|---|
tan-memory-0.2.1.tgz |
Core engine: engine + adapters + CLI + docs | 121,826 B | f4e9ff2f87fc35e9707677a196a881aaa412d8e18b6871d8d475eb3c353fcfd1 |
tan-memory-dsh-1.1.1.tgz |
Desktop DSH plugin (embedded engine; adds the Memory page in Settings) | 102,098 B | 36fa0547f56e52007c1bc95c1b519211d468b19ab3376c27d64b6a5f6a724f5b |
dsh-memory-0.5.1.tgz |
Android sideload plugin (embedded engine + workspace_write) |
97,692 B | 47b81cec53f2195d95d7772ddd6abfcaaf33ff9c218936ee9627873458c9239b |
Versions
| Package | Version |
|---|---|
Core tan-memory |
0.2.0 → 0.2.1 |
Desktop plugin tan-memory-dsh |
1.1.0 → 1.1.1 |
Android plugin dsh-memory |
0.5.0 → 0.5.1 |
Capabilities brought over (previously Android-only)
Keyword retrieval channel (buildKeywordIndex / keywordHitOf), the ~ prefix
(searchable but never auto-injected), hit-ratio ranking, automatic routes indexing for new
cards, the runtime-composed "recent close-out" line in L1, shortWindowOf stripping the
session- prefix, 12 health checks + rolling snapshots + route-hit logging, and atomic
batch writes in updateEntries.
Interface changes
- New export
setWorkspace(dir): sets the allow-listed root forworkspace_write.
Without calling it the tool is not registered — the core library / MCP / CLI / desktop
plugin therefore still expose 14 tools, while the Android plugin (which passes
/storage/emulated/0/DSHautomatically) exposes 15. - The
textof thememory:l1section became a function so it can inject the session
header and the "recent close-out" line per turn. memory_summarize'sduplicate_idsis markedrequiredand returns[]when nothing
overlaps (the old contract let the field readundefined, which the tool layer's
lossless JSON refuses).
Which package to install
- Engine / MCP / CLI →
tan-memory-0.2.1.tgz;npm install /path/to/unpacked/packageor use the repository source directly. - Desktop DSH →
tan-memory-dsh-1.1.1.tgz; "Plugins → Add plugin → local directory / tgz". - Android DSH →
dsh-memory-0.5.1.tgz;adb pushto/sdcard/DSH/plugins/and restart the app.
Verification
node --test test/*.test.mjs: 92 tests / 91 pass / 0 fail / 1 skipped, identical to the pre-merge baseline.
Licensed under AGPL-3.0-only; every version uses the same license.