dsh-Openwrite
在 DeepSeek Harness 中规划、写作、审稿和管理长篇小说。
这是 [OpenWrite](https://github.com/LiPu-jpg/Openwrite/tree/native-core) 的 dsh 插件版本。 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 提供 Agent 与交互界面,OpenWrite Core 提供小说领域能力;人物、设定、大纲、正文和评审保存在本地作品目录。 ## 开发中:0.2.29(未发布) 增加 `pythonPath` / `OPENWRITE_PYTHON` 和显式依赖目录配置,允许使用已准备依赖的 Python, 跳过 uv 与解释器下载;补充 Android/Termux 的本机 external Studio 步骤,以及旧版安装选择诊断。 配置和边界见 [安装说明](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/INSTALL.md#bring-your-own-python)。同时补齐手机后台输入保留、独立 Studio 正文草稿恢复、触屏选区与下载,并加入 Chromium / WebKit 发布回归,见 [手机验收说明](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/MOBILE_READINESS.md)。正式可安装版本仍为下方的 0.2.28; 同时修复审稿证据漏填误判与机器批注污染,候选捆绑 Core 5.8.22,见 [#146 修复说明](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/ISSUE_146_REVIEW_EVIDENCE.md)。 Android 完整工具验收与宿主升级保护发布继续在 [#123](https://github.com/LiPu-jpg/Openwrite/issues/123) 跟踪。 ## 0.2.28 0.2.28 捆绑 Core 5.8.20,最终 22 项 CI 全部通过;修复正文最后输入漏存、审稿修订越过选区,以及真实 Markdown 编辑器格式转换导致的选区拒绝,见 [正文编辑与审稿补修](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/EDITOR_SAFETY_REPAIRS.md)。并包含前轮 [选区与升级补修](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/SELECTION_UPGRADE_REPAIRS.md)、[写作与审稿改进](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/ISSUES_121_123.md)。 [GitHub 0.2.28](https://github.com/LiPu-jpg/Openwrite/releases/tag/v0.2.28) 与 [npm 0.2.28](https://www.npmjs.com/package/dsh-openwrite/v/0.2.28) 均已发布,npm `latest` 已更新为 0.2.28;两处公开下载包均与 CI 原始安装包逐字节一致。#123 的宿主正式发布和 Android/Termux 真机两项仍未完成,作为已知限制继续跟踪。 ## 0.2.27 工作台新增 OpenCode Go Console 认证,捆绑 Core 5.8.16,自动读取本机官方 CLI 的有效凭据和工作区信息;不必手工复制会过期的 Console 令牌。评审首次调用遵守模型输出预算,补充旧会话永久别名和跨平台回归。真实工作台连接测试、流式写作及 Go 安全评审已通过。见 [OpenCode Go 接入](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/OPENCODE_GO.md) 和 [旧报告复核与待办](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/CLOSED_ISSUE_FOLLOWUPS.md)。正式发行状态、各平台验收和安装包校验值见 [发布验收](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/RELEASE_ACCEPTANCE.md)。 [GitHub 0.2.27](https://github.com/LiPu-jpg/Openwrite/releases/tag/v0.2.27) 与 [npm 0.2.27](https://www.npmjs.com/package/dsh-openwrite/v/0.2.27) 均已发布,`@latest` 已更新到 0.2.27。两处公开下载包均与 CI 验收包逐字节一致,可使用下方安装命令获取本次修复。 ## 0.2.26 更新 本版捆绑 Core **5.8.14**,包含旧会话恢复、精确 DSH `0.2.1-rc.3` 兼容、 Android/ARM 外部 Studio 诊断,以及连载写作可靠性、完整上下文预览和 Embedding 配置修复。 详见 [#105–#113 修复说明](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/ISSUES_105_113.md)、[连载报告修复](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/ISSUE_109_REPAIRS.md) 及 [OpenCode Go 配置及适配](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/OPENCODE_GO.md)。 ## 快速安装 **0.2.28 标准插件包**兼容精确 dsh 版本 **0.1.2-rc.1 / 0.1.5-alpha.1 / 0.2.0-rc.2 / 0.2.1-rc.2 / 0.2.1-rc.3**。五个版本均已完成 Web 工作台渲染与 DoG 数据读取验证;三系统原生安装和 Electron 回归通过,报告者也补齐了 Windows 历史会话恢复实测。可下载版本、各平台验收结果和 SHA-256 以 [GitHub Release](https://github.com/LiPu-jpg/Openwrite/releases/latest) 附件为准;验收方法见 [发布验收](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/RELEASE_ACCEPTANCE.md)。商城所需的精确预览版兼容性、验证范围和安装限制见 [DSH STORE 接入](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/DSH_STORE.md)。 正式发行状态以 [npm 版本列表](https://www.npmjs.com/package/dsh-openwrite?activeTab=versions) 和 [GitHub Release](https://github.com/LiPu-jpg/Openwrite/releases/latest) 为准。以下是 0.2.28 精确版本的安装命令;发布时两处使用同一份验收产物: ```sh dsh plugin --profile web add -w https://github.com/LiPu-jpg/Openwrite/releases/download/v0.2.28/dsh-openwrite-0.2.28.tgz dsh web ``` 已有匹配版本 dsh 的用户执行: ```sh dsh plugin --profile web add -w dsh-openwrite@latest dsh web ``` `@latest` 在执行安装或升级命令时选择 npm 最新发布版本,不会自动替换正在运行的服务。无需在安装时编译源码。升级前停止 dsh,并核对目标版本的宿主兼容说明。需要复现或回退时,使用 `dsh-openwrite@0.2.8` 等精确版本;对应版本的 [npm 包](https://www.npmjs.com/package/dsh-openwrite)与 [Release 预编译包](https://github.com/LiPu-jpg/Openwrite/releases) 为同一份已验收产物。 也可把这段话交给有终端权限的 Agent: ```text 请按 https://github.com/LiPu-jpg/Openwrite 的 README 和对应 Release 安装 OpenWrite。 先核对 Release 验收结果和精确 dsh 版本,再用 dsh plugin --profile web add -w dsh-openwrite@latest 安装。 如宿主不兼容,安装最后一个匹配且已验收的精确版本,不自动升级宿主。 已有本地安装先备份并迁移,保留作品、自定义预设、凭据和其他插件。 启动 dsh web,指导我点击 OpenWrite、准备环境并选择自己的作品。 不要调用写作模型做安装检查,不要自动升级宿主或放宽 pnpm 构建授权。 ``` 首次使用会下载固定版本的 uv、Python 3.12 和锁定依赖,保存在当前 dsh 的专属目录。无需预装 Python,也无需克隆两个分支。目标平台为 macOS arm64/x64、Linux x64、Windows x64;各平台通过情况以发布验收报告为准。模型费用另计。 具体的源码安装、升级、迁移和卸载见 [安装指南](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/INSTALL.md)。 ### dsh 0.2 桌面端升级 `0.2.28`(Core 5.8.20)已发布。升级前完全退出 Desktop(含托盘)及 dsh,备份 profile;宿主原生升级保护尚未正式发布,停机升级工具及限制见 [升级说明](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/ISSUES_98_100.md#离线升级和损坏修复)。完成后重启宿主并刷新界面。 `0.2.27`(Core 5.8.16)包含 Go 工作台认证、评审输出预算及后台重试补漏,并保留 #105–#113 与 #103/#104 的既有修复;原始场景仍待验证的条目见 [#123](https://github.com/LiPu-jpg/Openwrite/issues/123)。升级前完全退出 dsh/桌面客户端;安装后重新启动并刷新浏览器。原有作品、凭据和会话继续保留,历史版本预设用于恢复旧会话。受限平台使用外部 Studio,OpenCode Go 的服务商使用范围和配置要求见上述文档。 `0.2.25`(Core 5.8.12)已在 [GitHub Release](https://github.com/LiPu-jpg/Openwrite/releases/tag/v0.2.25) 与 [npm](https://www.npmjs.com/package/dsh-openwrite/v/0.2.25) 发布,新增连载体检、分段续写、共享术语/范本、章组审计和漂移裁决,并修复验收与任务可观测性。范围、离线升级工具及宿主侧限制见 [#98–#100 实现说明](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/ISSUES_98_100.md),完整验收见 [发布验收](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/RELEASE_ACCEPTANCE.md#025)。 `0.2.24`(Core 5.8.11)修复 [#88–#95](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/ISSUES_88_95.md):删章验收账本、结算降级、长文本流式生成、后台写章进度、统一字数门限、草稿发现与恢复及诊断/路由语义。[GitHub Release](https://github.com/LiPu-jpg/Openwrite/releases/tag/v0.2.24) 与 [npm](https://www.npmjs.com/package/dsh-openwrite/v/0.2.24) 均已发布,完整验收见 [发布验收](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/RELEASE_ACCEPTANCE.md#024)。升级后停止并重新启动 dsh,再刷新浏览器页面。 `0.2.23` 修复 [#83](https://github.com/LiPu-jpg/Openwrite/issues/83)/[#84](https://github.com/LiPu-jpg/Openwrite/issues/84)/[#85](https://github.com/LiPu-jpg/Openwrite/issues/85):根包与全部内嵌子包的兼容声明加入精确宿主 `0.2.1-rc.2`,安装和激活不再被宿主版本闸门拒绝,无需版本豁免或手工编辑 `compatibility.json`。已在 `0.2.1-rc.2` 完成 Web 客户端验收(启动、OpenWrite 入口、工作台三页签、DoG 面板与其他插件共存),`0.1.2-rc.1`、`0.2.0-rc.2` 回归通过;Windows Electron 桌面端未实机复测。该版本完整验收见 [发布验收](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/RELEASE_ACCEPTANCE.md#023)。升级后停止并重新启动 dsh,再刷新浏览器页面。 `0.2.21` 修复 [#79](https://github.com/LiPu-jpg/Openwrite/issues/79) 的 Windows Desktop 目录选择:宿主接口失败后使用桌面提供的系统文件夹对话框,覆盖侧栏进入与工作台内目录选择。Core 保持 5.8.10。排查与手填路径方式见 [安装指南](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/INSTALL.md#windows-desktop-目录选择)。 `0.2.20` 捆绑 Core 5.8.10,修复 [#76](https://github.com/LiPu-jpg/Openwrite/issues/76) 的草稿恢复、任务状态、编辑和审稿契约,并补充 [#65](https://github.com/LiPu-jpg/Openwrite/issues/65) 的英文使用支持。行为与范围见 [修复说明](https://github.com/LiPu-jpg/Openwrite/blob/main/docs/ISSUE_76_REPAIRS.md)。正式可下载版本以 npm `latest` 和 GitHub Release 为准。 `0.2.19` 候选包修复两个加载/工具问题:部分安装下「OpenWrite 创作」预设从列表消失、DoG 工具不可用(dsh-dog 宿主包解析失败,[#74](https://github.com/LiPu-jpg/Openwrite/issues/74)),以及 `novel_*` 工具的对象/数组参数在模型输出 JSON 字符串时预览失败、`data` 字段丢失([#75](https://github.com/LiPu-jpg/Openwrite/issues/75))。正式可下载版本以 npm `latest` 和 GitHub Release 为准。升级后需停止并重新启动 dsh,再刷新浏览器页面。 `0.2.18` 候选包修正 `auto:cheapest`(Core 5.8.9):零价模型不再参与比价,自动落到付费低价模型上。正式可下载版本以 npm `latest` 和 GitHub Release 为准。升级后需停止并重新启动 dsh,再刷新浏览器页面。 `0.2.17` 候选包新增自动选模(Core 5.8.8):模型档案的模型名写成 `auto:cheapest` 会自动选用服务商价格目录中总价最低且满足上下文/输出要求的模型(目录缓存一小时,价格变动自动跟随),写成 `auto:popular`(OpenRouter)则由官方 `openrouter/auto` 按社区用量自动选模型。正式可下载版本以 npm `latest` 和 GitHub Release 为准。升级后需停止并重新启动 dsh,再刷新浏览器页面。 `0.2.16` 候选包补漏 [#64](https://github.com/LiPu-jpg/Openwrite/issues/64)/[#67](https://github.com/LiPu-jpg/Openwrite/issues/67):字数精简重试耗尽后保稿时,`length_out_of_range`/`length_warning` 标记与校验问题现在随草稿产物持久化(Core 5.8.7),导出/审阅侧可追溯。正式可下载版本以 npm `latest` 和 GitHub Release 为准。升级后需停止并重新启动 dsh,再刷新浏览器页面。 `0.2.15` 候选包修复 [#63](https://github.com/LiPu-jpg/Openwrite/issues/63)/[#66](https://github.com/LiPu-jpg/Openwrite/issues/66)(Windows 残留 `project.lock` 永久阻断写作,报错 `[WinError 87]`;Core 5.8.6 自动清理死进程残留锁并带上下文报错)、[#64](https://github.com/LiPu-jpg/Openwrite/issues/64)/[#67](https://github.com/LiPu-jpg/Openwrite/issues/67)(`continuous_write` 单章失败即整队终止、`max_failures` 失效、字数超限丢弃初稿;现在按容错上限续跑并保留超长稿)、[#68](https://github.com/LiPu-jpg/Openwrite/issues/68)(横评进行中详情接口恒 400)和 [#69](https://github.com/LiPu-jpg/Openwrite/issues/69)(推理模型评审输出预算被锁死 4096 导致评审全灭)。正式可下载版本以 npm `latest` 和 GitHub Release 为准。升级后需停止并重新启动 dsh,使桥接服务端加载新代码,再刷新浏览器页面。 `0.2.14` 候选包修复 [#60](https://github.com/LiPu-jpg/Openwrite/issues/60) 和 [#61](https://github.com/LiPu-jpg/Openwrite/issues/61):系统代理下 `NO_PROXY` 含 `[::1]` 不再让所有模型连接测试误报"服务商拒绝了请求"(桥接层消毒 + Core 5.8.5 归类为本地配置错误);Embedding 连接测试的依赖预热、硬超时与收尾兜底,加上桥接层的健康探活与 stderr 落盘,不再出现"后端活着但不服务、只能重启 dsh"的僵尸态。正式可下载版本以 npm `latest` 和 GitHub Release 为准。升级后需停止并重新启动 dsh,使桥接服务端加载新代码,再刷新浏览器页面。 `0.2.13` 修复 [#57](https://github.com/LiPu-jpg/Openwrite/issues/57) 的创作页刷新循环:批注与版本读取不再作为写操作通知刷新,Core 的只读请求也不再增加工作区变更序号。正式可下载版本以 npm `latest` 和 GitHub Release 为准。升级后需停止并重新启动 dsh,使桥接服务端加载新代码,再刷新浏览器页面。 `0.2.12` 进一步修复 [#50](https://github.com/LiPu-jpg/Openwrite/issues/50)、[#51](https://github.com/LiPu-jpg/Openwrite/issues/51)、[#52](https://github.com/LiPu-jpg/Openwrite/issues/52) 的预设注册、导航、工作台挂载和 DoG 接口。连续审读按内容修订刷新,避免轮询闪烁([#54](https://github.com/LiPu-jpg/Openwrite/issues/54))。 `0.2.11` 修复 [#45](https://github.com/LiPu-jpg/Openwrite/issues/45),适配精确宿主版本 `0.2.0-rc.2`:工作台兼容新的 turn-tail list 槽位,DoG 调试面板使用新的 `sessionStatus`;根包和所有子包的兼容声明同步更新。已验证 0.2.0-rc.2 的 Web 客户端启动、OpenWrite 入口、DoG 面板及其他插件共存;Windows Electron 桌面端恢复链路尚未实机复测。 **`dsh-openwrite@0.2.10` 不包含这项修复,请升级到 `0.2.23` 或更高的已验收版本。** 不要通过给旧子包授权来代替升级:`dsh-openwrite` 的版本豁免不会覆盖 `@dsh-novel/studio-panel@