Skip to content

v0.1.2 — 本地 GUI / 工作记忆 / 行为时间线

Choose a tag to compare

@Azurimson Azurimson released this 29 Oct 12:30
· 6 commits to main since this release

本版三件事:设置区卡片成为唯一 GUI(移除独立网页 GUI)、新增工作记忆层、行为记忆增强;并补齐 GitHub / 市场结构与用户画像迭代方向文档。

变化

# 变化 文件
1 设置区卡片成为唯一 GUI;移除独立网页 GUI 与 /memory-gui client/client.js、src/gui.js、src/index.js
2 新增工作记忆层 memories/working/(精确操作、低权重、短寿命) src/memory.js、src/store.js、src/index.js
3 行为记忆补充「本轮用了哪些工具」 src/index.js
4 巩固实测写入测试文档 测试文档.md
5 GitHub / 市场结构(LICENSE、CI、dsh.plugin.json) LICENSE、.github/、dsh.plugin.json
6 用户画像迭代方向文档 迭代方向-用户画像记忆.md

设置区卡片(唯一 GUI)

  • 注册到设置页左侧「记忆」分区(settings.section 槽)。
  • 顶部「打开记忆文件夹」+「刷新」;下方按权重倒序的记忆列表(层级、日期、内容、来源会话)。
  • 数据走 DSH 内置 Web 服务器的只读路由 /api/dsh-human-memory/memories 与 /open-folder,不占用独立端口。
  • 每行带删除按钮:点击即移入记忆库 trash/(不弹确认、文件保留),下次巩固时真正删除,可经 /restore 恢复。

工作记忆层

  • 新增 memories/working/(layer: "working"),每轮记录精确操作:运行命令 / 写文件 / 编辑文件 / 读取文件。
  • 权重刻意很低(workingMemory.importance 默认 0.05),模拟快速淡忘;不设条数上限,靠短 TTL 回收。

⚠️ 破坏性变更

独立网页 GUI、/memory-gui 命令、memory_gui 工具已移除。升级后请改用设置页的「记忆」分区。

测试

测试 结果
test/self-test.mjs ✅ 27 / 27
test/library-test.mjs ✅ 15 / 15
test/consolidate-test.mjs ✅ 10 / 10
test/gui-test.mjs ✅ 17 / 17

安装

git clone https://github.com/Azurimson/dsh-plugin.git
cd dsh-plugin
dsh plugin --profile <你的 profile> add ./dsh-human-memory

从插件市场安装:插件页 → 发现 → 添加索引源,填入
https://raw.githubusercontent.com/Azurimson/dsh-plugin/main/dsh-human-memory/dsh-market.json
可安装 v0.1.0 / v0.1.1 / v0.1.2 任一版本。

每个变化点的详细测试方法与预期结果见 更新文档.md。