Skip to content

Releases

v0.3.0 功能增强

Choose a tag to compare

@yzx4036 yzx4036 released this 09 Oct 07:00

v0.3.0 功能增强

files 现在支持目录:目录自动收集其中 *.md(字典序、跳过 . 开头的目录),dirDepth 控制递归深度(默认 1 = 仅直属文件)。

新增四个配置(默认值贴合「精选 KB」场景):

  • dirDepth(默认 1)——目录递归深度
  • skipMissing(默认 false)——缺失/不可读条目静默跳过,多设备路径不一致时开启
  • freshness(默认 true)——快照头带生成时间、各文件头带最后修改时间,模型可据此判断记忆是否过时
  • stripFrontMatter(默认 true)——剥离文件头 YAML front-matter(未闭合不剥),先剥后截省预算

install.mjs 增强:

  • --uninstall:删除部署文件 + 从 patch 移除条目(其他内容原样保留)
  • --update:只刷新插件文件,patch 配置不动
  • 跨层 duplicate-id 预检:安装前扫描其他层(含 dsh plugin add 的 bundle 安装形态),冲突即拦截并给出两种解法(--force 跳过)

验证记录:54 unit + 12 e2e 全绿(66 条自动化测试;实机会话用例无凭证时自动跳过);install.mjs 全模式在隔离 DSH_HOME 实测(安装/更新/卸载/预检/--force)。

v0.2.0 生态就绪

Choose a tag to compare

@yzx4036 yzx4036 released this 09 Oct 06:31

v0.2.0 生态就绪

适配 dsh 0.2.x(要求 0.2.x;实测核验 0.2.0-rc.2)。修复一处硬兼容破坏:0.2.x 对 section 文本默认严格插值 {{变量}},记忆文件含 {{名字}} 会直接令会话失败——section 注册改为 interpolate: false,记忆快照永远按字面量注入(复现与修复记录见仓库任务目录)。

dsh.bundle 发布路线:仓库根新增 cordis.patch.yml 组合包层 + package.json 的 dsh.bundle manifest,正式进入 dsh plugin add 生态通道。

安装(两条路径二选一,别同时装两层,同 id 会报 duplicate loader entry id):

# A. dsh plugin add(profile 级)
dsh plugin --profile <你的profile> add github:yzx4036/dsh-memory-snapshot

# B. 本地脚本(home 级,免注册表)
node install.mjs

CI:GitHub Actions build + check + unit(node 22/24 矩阵)。

验证记录:

  • 三通道实测(dsh 0.2.0-rc.2,隔离环境):本地目录 / tarball / github 直装,均验证可装、可卸(remove 干净)、装配层与加载正确。
  • 装配取证:真实 dsh 会话的 session 记录中 system prompt 含注入全文,{{}} 字面量保留。
  • 测试:unit 35 + e2e 6 通过(e2e 实机会话需凭证,无凭证时 SKIP)。