Releases: ShadowQuill/DialogueContextBridge
Releases · ShadowQuill/DialogueContextBridge
Release list
DialogueContextBridge v0.3.0
DialogueContextBridge v0.3.0
跨会话记忆桥接 DSH 插件 —— 让新对话无需重复输入,即可继承上一轮对话的知识、决策与偏好。
DialogueContextBridge is a DSH plugin that bridges cross-session memory — a new conversation inherits the previous one's knowledge, decisions and preferences without repeating any input.
中文说明
新功能
- 无参免手打命令
/dcb-import-last//dcb-merge-last:在新对话中一键引入(inject)或融合(merge)最近一条快照。命令面板点选即执行,零手打、零气泡,绕开 DSH 0.1.x rc.2 下手打带参命令的「执行中…」常驻气泡摩擦。 /import不带 id 时渲染「最近 N 条快照」选择器:列出最近 10 条(常量RECENT_PICKER_LIMIT)可复制的/import <id> [--mode ...]命令,绕开手打 id 的摩擦。- 命令总数 15 → 17。
文档
- 同步 README / menu / website / docs 命令计数与清单到 17 个命令。
- 修正 README 状态行单测数(100 → 104)与版本徽章(→ 0.3.0)。
- 修正 README「已知限制」章节一处与无参命令行为自相矛盾的措辞。
兼容性
- 宿主:
dsh@0.1.1-rc.2(已端到端验证)。 - 运行时:Node ≥ 20。
- 向后兼容:仅新增命令,无破坏性变更。
升级方式
git pull
# 旧版本用户无需迁移数据,记忆库向后兼容
使用流程(跨会话记忆)
- 会话 A 聊完 → 运行
/compile编译三层快照,再/save落库(或直接/dcb-save一步到位)。 - 开新会话 B → 运行
/dcb-import-last(作为背景引入)或/dcb-merge-last(融合进当前上下文)。无需重述任何内容。
English
Features
- No-argument, tap-to-run commands
/dcb-import-last//dcb-merge-last: in a new conversation, one tap injects or merges the most recent snapshot — zero typing, zero bubble, sidestepping the persistent "running…" bubble friction of typed parameterized commands under DSH 0.1.x rc.2. /importnow renders a "recent N snapshots" picker when called without an id: lists the 10 most recent (constantRECENT_PICKER_LIMIT) copyable/import <id> [--mode ...]commands, removing the need to type an id by hand.- Command count 15 → 17.
Docs
- Synced README / menu / website / docs command counts and lists to 17 commands.
- Fixed README status line test count (100 → 104) and version badge (→ 0.3.0).
- Fixed a self-contradictory note in README's "Known Limitations" section regarding no-argument commands.
Compatibility
- Host:
dsh@0.1.1-rc.2(end-to-end verified). - Runtime: Node ≥ 20.
- Backward compatible: command additions only, no breaking changes.
Upgrade
git pull
# No data migration needed; the memory store is backward compatible.
Cross-session memory flow
- After conversation A → run
/compileto compile the three-layer snapshot, then/save(or just/dcb-savein one step). - Open a new conversation B → run
/dcb-import-last(inject as background) or/dcb-merge-last(merge into current context). No need to restate anything.
DialogueContextBridge v0.2.0: LLM 摘要器 + 加权合并裁决 + CI 修复
Features
- LLM 摘要器(summary.mode = llm):/compile 与 /import --mode merge 的摘要层新增 LLM 增强压缩模式,调用宿主 LLM 生成更连贯、更擅长跨片段归纳的摘要;失败时自动回退内置抽取式(零依赖、确定性可复现)。provider / model / maxTokens / temperature 经 DSH 设置面板热改。
- 加权合并裁决(merge.policy = weighted):快照粒度 weight 字段(经 /snapshot-weight 标记,继承到其全部条目);合并冲突时权重高者胜,平局回退当前对话胜。新增命令 /snapshot-weight,命令总数 14 → 15。
Fixes
- 应用配置兜底(apply):apply / applyLive 顶部统一 Config(config) 套用 Schema 默认值,兜底宿主传入残缺 config(如缺 summary 段)导致的崩溃,对真实 dsh(已填默认)幂等无害。
- CI(pnpm build / Node):修复 CI 干净环境 verify 矩阵全红——pnpm 9 默认不运行未白名单依赖的 build script,CI 从未批准过 better-sqlite3 的 build 致原生模块未编译、require 失败;package.json 新增 pnpm.onlyBuiltDependencies: ["better-sqlite3"] 令 CI 自动编译。Node 矩阵 [18,20,22] → [20,22](better-sqlite3@11 需 Node 20+),engines.node 改为 >=20。另修正 no-param-reassign lint 错误。
Docs
- 对齐 docs / website 到最新代码,新增「已知限制」章节;README / menu / 命令 docstring 同步命令计数。
Verification
- lint / typecheck 通过;100 单元测试 + 端到端 e2e 卡片预览通过;真实 dsh@0.1.1-rc.2 宿主启动并监听 127.0.0.1:3080,插件 apply() 成功加载。