Skip to content

v0.2.0 — 首次公开发布

Choose a tag to compare

@heenljy heenljy released this 29 Nov 18:36
· 16 commits to main since this release

简体中文 | English


简体中文

⚠️ 本版已过时,请用最新版

最新版本:v0.2.3

本说明最后更新:2026-11-29 23:20 UTC

v0.2.0 是「首次公开发布」的历史快照,不建议安装 —— 它缺了后面三批修复,
其中两项属于「点了没反应」级别的功能缺陷。

v0.2.0 的已知问题(均已在后续版本修掉)

问题 表现 修复版本
元词召回不到 查「角色卡」「设定」「剧情」这类只写在 topics.index.md 的 keywords 里、卡正文没有的词,一张卡都召回不到 v0.2.1
会话窗口坍缩 DSH 的 agent id 改成 session-<uuid> 后,slice(0, 8) 让所有窗口名都成了 session-,当天 journal 全落进同一个文件 v0.2.1
管理页退回简化页 设置里的「记忆」只剩「L1 摘要 + 搜索 + 新增一条」,导入 / 导出与专题卡管理都不见了(插件拍平时漏带了 ui.html) v0.2.2
点「导出记忆」拿不到文件 用 Blob + <a download>,而 DSH App 的 WebView 没有 DownloadListener,点击被静默吞掉,文件从未落盘 v0.2.2
只能导出轻量内容 导出包不含 journal / archive / 配置,做不到整机迁移 v0.2.3

后续版本补了什么

  • v0.2.1 —— 引擎并入手机端验证过的那一版:关键词检索通道、~ 只检索不注入、
    routes 自动入索引、L1「最近收尾」运行时拼、12 项体检、滚动快照、硬路由触发率流水、
    updateEntries 原子批量写;新增 setWorkspace(),让 workspace_write 只在宿主显式
    给工作区时注册(核心库 / MCP 是 14 个工具,Android 插件 15 个)。
  • v0.2.2 —— src/ui.html 换成完整管理页;导出改为服务端直接写文件、返回绝对路径。
  • v0.2.3 —— 导出分 lite / full 两档,full 带 journal、reminders、archive 原始会话
    与三份配置;导入端配套还原,走 staging + rename 可回滚;补目录穿越校验。

以下为 v0.2.0 原始说明(保留存档)

首次公开发布。同批发出三个包,各自带自己的版本号。

资产 内容 大小 SHA-256
tan-memory-0.2.0.tgz 核心引擎:引擎 + 适配器 + CLI + 文档 100,778 B 7af53494d6b5d0882ab7c81b4cba4c3182707843038ff8b109230fdde0ca2e0c
tan-memory-dsh-1.1.0.tgz 桌面端 DSH 插件(内嵌引擎,装上后有设置里的「记忆」页) 83,609 B 85911432c68639928fad5c9bde499fa80dd2439d1e01758f86d3ab9d91c9cd52
dsh-memory-0.5.0.tgz Android 侧载插件(内嵌引擎,放进 /sdcard/DSH/plugins/ 后重启) 79,163 B bf7f8670462bc6c41eb7baf83ecff414f4f153b46e721b61409255b1c7380e67

装哪个

  • 只想要引擎 / MCP / CLI → tan-memory-0.2.0.tgz。核心包不通过 npm registry 分发,
    可以用 npm install /path/to/unpacked/package 从本地目录装,或直接把仓库源码放进来。
  • 桌面端 DSH → tan-memory-dsh-1.1.0.tgz。DSH 里「插件 → 添加插件 → 本地目录 / tgz」,
    装完在「设置 → 记忆」打开管理页。
  • Android 端 DSH → dsh-memory-0.5.0.tgz。adb push 到 /sdcard/DSH/plugins/ 后重启 App。

一个必须说清的差异

这三个包全部由仓库 src/ 构建,源码在库内、AGPL 义务闭环。

但 Android 包和你手机上可能在跑的自维护版本不是同一个东西:两者共用 0.5.x 版本号,
内容不同——自维护版多了关键词检索通道、~ 前缀、routes 自动入索引、L1 动态拼接、
12 项体检等一批功能(约 +1,100 行)。装机前先确认 tgz 来源,
android-plugin/README.md 里也写了这条警告。

许可

GNU AGPL-3.0-only,见 LICENSE。本仓库所有版本适用同一许可证,
不存在采用其它许可证的历史版本。需要闭源集成可联系作者取得商业授权。

Individual and commercial use are both permitted under AGPL-3.0; a separate
commercial license is available for closed-source integration.

注:原文「一个必须说清的差异」一节已作废 —— 自 v0.2.1 起 Android 包与手机端
使用的是同一份 src/engine.js,不再有内容差异。


English

⚠️ This release is outdated — use the latest one

Latest release: v0.2.3

This note was last updated: 2026-11-29 23:20 UTC

v0.2.0 is kept as the historical "first public release" snapshot and is not recommended
for installation
— it is missing the next three rounds of fixes, two of which are
"you click it and nothing happens" class defects.

Known issues in v0.2.0 (all fixed later)

Issue Symptom Fixed in
Meta-word recall misses entirely Queries like "character card", "settings" or "plot" — words that only exist in topics.index.md keywords and never in the card body — returned zero cards v0.2.1
Journal windows collapse After DSH changed the agent id to session-<uuid>, slice(0, 8) made every window name session-, so a day of journal entries all landed in one file v0.2.1
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 (the flattened plugin package dropped ui.html) v0.2.2
"Export memory" produced no file It used Blob + <a download>; the DSH App WebView has no DownloadListener, so the click was swallowed and nothing was ever written to disk 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

What later releases added

  • v0.2.1 — merged the engine that had been validated on Android: keyword retrieval
    channel, ~ prefix (searchable but never auto-injected), automatic routes indexing,
    runtime-composed "recent close-out" line, 12 health checks, rolling snapshots, route-hit
    logging, atomic batch writes in updateEntries; plus a new setWorkspace() so that
    workspace_write is registered only when the host provides a workspace (14 tools for the
    core library / MCP, 15 for the Android plugin).
  • v0.2.2 — src/ui.html is the full management page again; export now writes the file
    server-side and returns the absolute path.
  • v0.2.3 — export has lite / full scopes; full also carries journal, reminders,
    the raw session archive and three config files; the import side restores them through the
    existing staging + rename flow with rollback; path-traversal checks added.

Original v0.2.0 notes (kept for the record)

First public release. Three packages ship together, each carrying its own version number.

Asset Contents Size SHA-256
tan-memory-0.2.0.tgz Core engine: engine + adapters + CLI + docs 100,778 B 7af53494d6b5d0882ab7c81b4cba4c3182707843038ff8b109230fdde0ca2e0c
tan-memory-dsh-1.1.0.tgz Desktop DSH plugin (embedded engine; adds the Memory page in Settings) 83,609 B 85911432c68639928fad5c9bde499fa80dd2439d1e01758f86d3ab9d91c9cd52
dsh-memory-0.5.0.tgz Android sideload plugin (embedded engine; drop into /sdcard/DSH/plugins/ and restart) 79,163 B bf7f8670462bc6c41eb7baf83ecff414f4f153b46e721b61409255b1c7380e67

Which package to install

  • Only the engine / MCP / CLI → tan-memory-0.2.0.tgz. The core package is not distributed through the npm registry; install it from a local directory with npm install /path/to/unpacked/package, or simply use the repository source.
  • Desktop DSH → tan-memory-dsh-1.1.0.tgz. In DSH: "Plugins → Add plugin → local directory / tgz", then open the Memory page under "Settings → Memory".
  • Android DSH → dsh-memory-0.5.0.tgz. adb push it to /sdcard/DSH/plugins/ and restart the app.

A difference that had to be spelled out

All three packages are built from the repository src/, so the source ships with them and the AGPL obligation is closed.

But the Android package was not the same thing as the self-maintained build that might be running on your phone: both carried the 0.5.x version number while their contents differed — the self-maintained build additionally had the keyword retrieval channel, the ~ prefix, automatic routes indexing, the runtime-composed L1 line, 12 health checks and more (about +1,100 lines). Check where a tgz comes from before installing it; android-plugin/README.md carried the same warning.

License

GNU AGPL-3.0-only, see LICENSE. Every version in this repository is under the same
license; there is no historical version released under a different one. For closed-source
integration, ask the author about a commercial license.

Individual and commercial use are both permitted under AGPL-3.0; a separate commercial
license is available for closed-source integration.

Note: the original section "a difference that had to be spelled out" is obsolete —
since v0.2.1 the Android package and the on-device build share the same src/engine.js,
with no content difference.