D
dsh-plugin-ima-sync
v0.4.7 · 0 天前发布
DSH plugin: auto-upload conversation progress to Tencent IMA (daily note + Work knowledge base), mirroring the local Claude Code ima-upload workflow
README
dsh-plugin-ima-sync
DSH(DeepSeek Harness)插件:把 DSH 的对话进度自动上传到腾讯 IMA(ima 笔记 + Work 知识库)。
灵感与行为对齐 Claude Code 的 ima 工作流:每轮对话结束自动生成一条进度记录,按天聚合到 [项目名] YYYY-MM-DD 笔记,可关联 IMA Work 知识库。
功能
| 触发时机 | 行为 |
| --- | --- |
| 每轮对话结束(turn/end) | 生成该轮进度记录并上传:用户输入、工具调用统计、todo 任务进度、回复摘要 |
| 会话销毁(agent/disposed) | 生成整场会话总结并上传(轮次列表 + 每轮摘要) |
| 手动 /ima-upload | 在 Web 输入框发送 /ima-upload 立即上传当前会话进度 |
只处理顶层会话(子代理会话不重复上报);上传全部 fire-and-forget、按会话串行排队,失败仅记日志,绝不影响对话。
工作原理
session/event(turn/start / user/message / tool/call / assistant/message / todo/write / turn/end)逐轮累积会话状态agent/disposed 生成会话总结# [项目名] YYYY-MM-DD,每轮一条 ### 轮次 #N~/.local/bin/ima-upload 脚本(复用项目映射 ~/.config/ima/projects.json 与每日笔记缓存 `~/.cache/ima/daily版本兼容矩阵
| 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-plugin-ima-sync
- Repo
- git+https://github.com/nan1010082085/dsh-plugin-ima-sync.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-settings"],"platform":"web"}}