D
dsh-session-import-codex
v0.1.1 · 3 天前发布
DeepSeek Harness plugin for importing Codex App Server conversation history
README
dsh-session-import-codex
English | 中文
这是一个独立于 DeepSeek Harness 源码树的插件和 PowerShell CLI,用于导入 Codex 对话历史。它通过官方 Codex App Server 稳定历史接口读取对话,把已结束的 turn 转换为经过验证的 Harness session event,通过目标 profile 的公开服务持久化,并按照历史工作目录创建或复用工作区。
首选用法是一次性 CLI。/import-codex 聊天命令继续保留,用于开发调试和按 thread id 导入。
CLI 会导入什么
thread/list 在 archived: false 条件下返回的全部未归档交互式 Codex 对话;codex-<thread-id> 形式的确定性 id。仍处于 active 状态的对话会跳过。已存在的目标 id 不会重写 session 日志;真实迁移重跑会刷新其冷态投影,并重复执行幂等的工作区关联。单条源数据异常只会记录失败,不会中止后续批次。
导入器不会读取 Codex rollout 文件、桌面应用状态、SQLite 数据库或私有 JSONL 文件,也不会直接写 Harness 的持久化文件。
从 npm 安装
要求:
^22.19 或 >=24;版本兼容矩阵
| 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-import-codex
- Repo
- git+https://github.com/xing01l/session-import-codex.git
- Engines
{"node":"^22.19 || >=24"}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"bundle":{"patch":"./cordis.patch.yml"}}