跳到正文

x2802490130-prog/dsh-writing-remote

30最近提交 2026年8月15日

dsh-writing-remote DSH 插件

dsh-writing-remote 是一个独立包,连接 dsh-tool-writing 引擎(运行在 host Node.js)和 dsh-client-ui-writing 面板(运行在浏览器)。它通过 Typert remote 方法提供只读数据访问和编排触发,所有写操作仍在 host 侧引擎中完成。

如何安装 dsh-writing-remote DSH 插件

dsh plugin --profile web add dsh-writing-remote

复制不会执行命令。安装 dsh-writing-remote DSH 插件前请核对仓库和版本。

dsh-writing-remote DSH 插件数据来源

dsh-writing-remote DSH 插件快照日期:2026年8月16日

discovered

dsh-writing-remote DSH 插件能做什么

  • 返回工作区索引,包含分卷目录(字数、状态、摘要)和情节日志尾部
  • 提供项目状态,包括 manifest、分卷分组、总字数、章数
  • 列出章节列表并获取单章正文(截断预览)
  • 按分类(characters/world/timeline/foreshadowing/other)浏览设定文件
  • 使用 SQLite FTS5 进行项目全文检索
  • 列出书库条目并在书库中搜索
  • 显示演化条目(可按主体过滤)
  • 生成多线叙事线索图谱数据以支持 SVG 渲染
  • 触发章末自动编排(摘要、抽取、演化、伏笔提醒)
  • 非破坏式铺骨架(幂等,空目录一键初始化)

dsh-writing-remote DSH 插件适合哪些场景

  • 在写作面板中展示项目索引和分卷概览
  • 从面板搜索项目内容和书库
  • 按分类浏览和管理设定文件
  • 追踪演化版本和叙事线索图
  • 远程触发章节编排和骨架初始化

dsh-writing-remote DSH 插件适合谁

  • 使用 DSH 写作工具和客户端面板的作者
  • 需要访问 DSH 写作引擎数据以构建自定义 UI 的开发者

dsh-writing-remote DSH 插件的限制

  • 只提供只读数据访问,不向客户端暴露写能力
  • 需要 dsh-tool-writing@0.3.0 和 @deepseek-ai/dsh-typert-protocol 作为 peer 依赖
  • 仅支持 host 侧(Node.js),不兼容纯浏览器环境
  • 配置项仅限 libraryRoot,其他设置由引擎管理

dsh-writing-remote DSH 插件的仓库 README 摘录

以下文字摘自 dsh-writing-remote DSH 插件的上游仓库 x2802490130-prog/dsh-writing-remote 的 README,版权归原作者,仅作引用。

DeepSeek Harness(DSH)写作三件套的 **host 侧数据通道**:把 [dsh-tool-writing](https://github.com/x2802490130-prog/dsh-tool-writing) 引擎的项目/书库/检索数据,以 [Typert remote](https://www.npmjs.com/package/@deepseek-ai/dsh-typert-protocol) 的形式暴露给客户端 [dsh-client-ui-writing](https://github.com/x2802490130-prog/dsh-client-ui-writing) 面板。 ## 为什么单独一个包 引擎跑在 host(Node),面板跑在浏览器,两者之间隔着 Typert 协议。remote 就是那层适配:面板要什么,remote 就提供什么——**只读数据 + 编排触发**,所有写操作仍在 host 侧引擎里完成,不把生成能力暴露给客户端。 ## Remote 方法 | 方法 | 返回 | 面板用途 | |---|---|---| | `workspaceIndex` | 分卷目录(字数/状态/摘要)+ 全书统计 + 情节日志尾部 | 索引视图、项目 tab | | `projectStatus` | manifest、分卷分组、总字数、章数 | 项目概览 | | `chaptersList` / `chapterText` | 章节列表 / 单章正文(截断预览) | 目录与预览 | | `loreList` | 设定文件按分类(characters/world/timeline/foreshadowing/other) | 设定浏览 | | `projectSearch` | 项目全文检索(SQLite FTS5) | 搜索 tab | | `libraryList` / `librarySearch` | 书库列表 / 书库检索 | 书库 tab | | `evolutionList` | 演化条目(可按主体过滤) | 演化版本链 | | `threadGraph` | 多线叙事线索图谱数据 | SVG 线程图 | | `syncNow` | 章末自动编排(摘要+抽取+演化+伏笔提醒) | 「章末编排」按钮 | | `scaffoldNow` | 非破坏式铺骨架(幂等,空目录一键初始化) | 「一键初始化」按钮 | 所有方法都以 `projectRoot` 为第一参数定位小说工程,面板传当前工作区,host 侧实例化对应引擎。 ## 安装与配置 ```bash dsh plugin --profile web add dsh-writing-remote # 或 npm install dsh-wr

阅读完整 README仓库许可: MIT

dsh-writing-remote DSH 插件常见问题

如何安装 dsh-writing-remote?

可以使用 DSH 插件命令安装:`dsh plugin --profile web add dsh-writing-remote`。或者通过 npm 安装:`npm install dsh-writing-remote`。确保已安装 peer 依赖 dsh-tool-writing@0.3.0 和 @deepseek-ai/dsh-typert-protocol。

dsh-writing-remote 有哪些依赖?

该包需要 dsh-tool-writing@0.3.0(引擎本体)和 @deepseek-ai/dsh-typert-protocol(Typert 协议)作为 peer 依赖。你需要单独安装它们,或确保项目中已存在。配置项很少,只需设置 `libraryRoot`(默认 `$DSH_HOME/writing-library`)。

没有写作引擎可以使用 dsh-writing-remote 吗?

不行。dsh-writing-remote 是作为 dsh-tool-writing 引擎的数据通道设计的。它提供的远程方法依赖引擎来读取项目数据、设定和执行搜索。没有安装并配置引擎,插件无法正常工作。

如何使用 README 中列出的远程方法?

这些远程方法(如 workspaceIndex、projectStatus、chaptersList)通过 Typert 协议暴露。它们由客户端面板(如 dsh-client-ui-writing)调用,面板连接到 host 侧。每个方法以 `projectRoot` 作为第一个参数来定位小说工程。你不直接在代码中调用它们,而是由面板 UI 使用。

dsh-writing-remote 兼容所有 DSH 配置文件(profile)吗?

安装命令使用 `--profile web`,表明它主要用于 web 类的配置文件。该插件是 host 侧的远程通道,通过 Typert 与浏览器客户端通信。只要 DSH 配置文件支持 Typert 协议且安装了写作引擎,理论上应该可以工作。