x2802490130-prog / dsh-writing-remote

已收录

Typert remote for dsh-tool-writing: exposes project, library and search data to the client writing panel.

main工具 查看源代码

安装

npm install dsh-writing-remote

此命令根据 GitHub 仓库地址生成。运行前请检查上游 README 与源代码;需要可复现安装时,请固定 release 或 commit。

README

维护者编写的文档快照。

在 GitHub 查看 ↗
提交版本 445fbf7同步于 2026年8月18日

dsh-writing-remote

npm version license

DeepSeek Harness(DSH)写作三件套的 host 侧数据通道:把 dsh-tool-writing 引擎的项目/书库/检索数据,以 Typert remote 的形式暴露给客户端 dsh-client-ui-writing 面板。

为什么单独一个包

引擎跑在 host(Node),面板跑在浏览器,两者之间隔着 Typert 协议。remote 就是那层适配:面板要什么,remote 就提供什么——只读数据 + 编排触发,所有写操作仍在 host 侧引擎里完成,不把生成能力暴露给客户端。

Remote 方法

方法返回面板用途
workspaceIndex分卷目录(字数/状态/摘要)+ 全书统计 + 情节日志尾部索引视图、项目 tab
projectStatusmanifest、分卷分组、总字数、章数项目概览
chaptersList / chapterText章节列表 / 单章正文(截断预览)目录与预览
loreList设定文件按分类(characters/world/timeline/foreshadowing/other)设定浏览
projectSearch项目全文检索(SQLite FTS5)搜索 tab
libraryList / librarySearch书库列表 / 书库检索书库 tab
evolutionList演化条目(可按主体过滤)演化版本链
threadGraph多线叙事线索图谱数据SVG 线程图
syncNow章末自动编排(摘要+抽取+演化+伏笔提醒)「章末编排」按钮
scaffoldNow非破坏式铺骨架(幂等,空目录一键初始化)「一键初始化」按钮

所有方法都以 projectRoot 为第一参数定位小说工程,面板传当前工作区,host 侧实例化对应引擎。

安装与配置

dsh plugin --profile web add dsh-writing-remote
# 或
npm install dsh-writing-remote

依赖:dsh-tool-writing@0.3.0(引擎本体)与 @deepseek-ai/dsh-typert-protocol(peer)。

配置项只有 libraryRoot(默认 $DSH_HOME/writing-library),与引擎共享书库根。

许可证

MIT。

仓库信息

开发语言
JavaScript
许可证
MIT
最后更新
2026年8月16日 17:17

谨慎安装

请检查源代码、权限、生命周期脚本、依赖与网络访问;不受信任的插件应先在隔离环境中测试。