D
dsh-session-ref
v0.1.2 · 0 天前发布
Cross-session reference (mention) for DeepSeek Harness: paste @[label](dsh-session:…) into any session — including one in another workspace — and the host resolves and injects the referenced session snapshot via the native session-reference pipeline. Incl
README
dsh-session-ref
!CI
跨会话引用(mention)插件 for DeepSeek Harness。
在任意会话(包括另一个工作区/文件夹的会话)里,粘贴@label 引用,宿主就会把被引用会话的内容快照注入给当前
模型阅读——跨文件夹的任务和对话可以直接 @ 引用,不再需要口头转述。
完整设计见 SPEC.md。英文版见 README.en.md。
特性(MVP)
agent/pre-step 解析 @label 与裸dsh-session:<id>,调用原生 sessionReferenceResolver.prepare() 注入快照(转录中渲染为独立的 Session recall 行),并把 mention 改写为
可读
@label。若部署未挂载 sessionReferenceResolver 服务(如 rc.6profile),插件会自动注册它。
mention(
@标题)。@deepseek-ai/dsh-session-reference 管线:并行读取、去重、预算(≤3 源 / ≤64KB)、自引用拒绝、untrusted 上下文警告。
重
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-session-ref
- Repo
- git+https://github.com/lacemou/dsh-session-ref.git
- Engines
{"node":">=22"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-slots"],"platform":"web"}}