Skip to content

v0.2.3 — 导出分轻量/完整两档

Choose a tag to compare

@heenljy heenljy released this 29 Nov 22:36
· 12 commits to main since this release

简体中文 | English


简体中文

有新版本:v0.2.4
—— 增加了 mcp 子命令(npx tan-memory mcp 一行接入)和 ~ 路径展开修复;
本版只能通过 node /绝对路径/adapters/mcp.js 接入 MCP 客户端。

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

导出分成「轻量 / 完整」两档,导入端配套支持完整版还原。

资产 内容 大小 SHA-256
tan-memory-0.2.3.tgz 核心引擎:引擎 + 适配器 + CLI + 文档(含 src/ui.html) 125,034 B 29553d51f180d6ca1a9d65add6d6e34e5bb3fd989c08d01143f1234bd5da3cc7
tan-memory-dsh-1.1.3.tgz 桌面端 DSH 插件(内嵌引擎 + ui.html) 105,023 B 14ec7557a95d755dad6f853efdd4818a026f2a65e78ef95357ceef21ac204170
dsh-memory-0.5.3.tgz Android 侧载插件(内嵌引擎 + ui.html + workspace_write) 100,865 B 06a7922724512953822c791cd5bec909c1da9c2f3a8ef9551231a100312b7a28

版本

包 版本
核心 tan-memory 0.2.2 → 0.2.3
桌面插件 tan-memory-dsh 1.1.2 → 1.1.3
Android 插件 dsh-memory 0.5.2 → 0.5.3

两档导出的区别

lite(默认) full
L1 / 事实条目 / 专题卡 / 路由索引 ✅ ✅
journal/ 流水账 — ✅
reminders.md 催办清单 — ✅
archive/ 原始会话 — ✅
aliases.json / retrieval.json / entities.json — ✅

手机端实测:lite 156 KB(134 条 / 30 卡),full 22,685 KB,都未超默认 64 MB 上限。

导入

完整版 bundle 导入时会一并还原上述目录,仍走原有的 staging + rename,
旧数据先进 backups/、中途失败可回滚;轻量版导入不碰它们,旧格式 bundle 照常兼容。

导入校验也加严了:scope 取值校验,files 必须是 {name, content} 数组,
且 name 拒绝绝对路径与含 .. / 空段的路径(防目录穿越)。

验证

  • node --check 通过;92 项测试 / 91 通过 / 0 失败 / 1 跳过
  • 三个包内嵌的 engine.js、ui.html 与仓库源码 sha256 逐一相同

许可 AGPL-3.0-only。


English

Newer release available: v0.2.4
— adds the mcp subcommand (npx tan-memory mcp, one line) and a ~ expansion fix;
this version can only be reached through node /absolute/path/adapters/mcp.js.

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

Export is split into two scopes, and the import side restores full bundles.

Asset Contents Size SHA-256
tan-memory-0.2.3.tgz Core engine: engine + adapters + CLI + docs (includes src/ui.html) 125,034 B 29553d51f180d6ca1a9d65add6d6e34e5bb3fd989c08d01143f1234bd5da3cc7
tan-memory-dsh-1.1.3.tgz Desktop DSH plugin (embedded engine + ui.html) 105,023 B 14ec7557a95d755dad6f853efdd4818a026f2a65e78ef95357ceef21ac204170
dsh-memory-0.5.3.tgz Android sideload plugin (embedded engine + ui.html + workspace_write) 100,865 B 06a7922724512953822c791cd5bec909c1da9c2f3a8ef9551231a100312b7a28

Versions

Package Version
Core tan-memory 0.2.2 → 0.2.3
Desktop plugin tan-memory-dsh 1.1.2 → 1.1.3
Android plugin dsh-memory 0.5.2 → 0.5.3

The two export scopes

lite (default) full
L1 / fact entries / topic cards / route index ✅ ✅
journal/ close-out log — ✅
reminders.md reminder list — ✅
archive/ raw sessions — ✅
aliases.json / retrieval.json / entities.json — ✅

Measured on device: lite 156 KB (134 entries / 30 cards), full 22,685 KB; both stay under
the default 64 MB limit.

Import

Importing a full bundle restores the directories above through the existing staging +
rename flow: previous data goes to backups/ first and a mid-way failure rolls back.
A lite import leaves them untouched, and older bundle formats remain compatible.

Validation is stricter too: scope is checked, files must be a {name, content} array,
and name rejects absolute paths and any path containing .. or an empty segment
(directory-traversal guard).

Verification

  • node --check passes; 92 tests / 91 pass / 0 fail / 1 skipped
  • The engine.js and ui.html embedded in all three packages match the repository source
    byte for byte (sha256)

Licensed under AGPL-3.0-only.